From 0a68b669bd8192cf665bb1f6b2906afc8e6e81c4 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 10 Dec 2024 16:01:18 -0600 Subject: [PATCH] Avoid generating `transmute` for input value type parameter bindings (#3377) --- crates/libs/bindgen/src/types/cpp_method.rs | 6 +- crates/libs/core/src/imp/com_bindings.rs | 9 +- .../Wdk/Devices/HumanInterfaceDevice/mod.rs | 10 +- .../windows/src/Windows/Wdk/Foundation/mod.rs | 4 +- .../src/Windows/Wdk/Graphics/Direct3D/mod.rs | 172 +- .../Windows/Wdk/NetworkManagement/Ndis/mod.rs | 194 +- .../WindowsFilteringPlatform/mod.rs | 290 +- .../Wdk/Storage/FileSystem/Minifilters/mod.rs | 593 ++- .../src/Windows/Wdk/Storage/FileSystem/mod.rs | 1478 +++---- .../windows/src/Windows/Wdk/System/IO/mod.rs | 13 +- .../src/Windows/Wdk/System/Memory/mod.rs | 12 +- .../Windows/Wdk/System/OfflineRegistry/mod.rs | 36 +- .../src/Windows/Wdk/System/Registry/mod.rs | 116 +- .../Wdk/System/SystemInformation/mod.rs | 4 +- .../Windows/Wdk/System/SystemServices/mod.rs | 1984 +++++---- .../src/Windows/Wdk/System/Threading/mod.rs | 48 +- .../Win32/AI/MachineLearning/DirectML/mod.rs | 18 +- .../Win32/AI/MachineLearning/WinML/mod.rs | 64 +- .../src/Windows/Win32/Data/HtmlHelp/mod.rs | 88 +- .../Win32/Data/RightsManagement/mod.rs | 165 +- .../src/Windows/Win32/Data/Xml/MsXml/mod.rs | 200 +- .../src/Windows/Win32/Data/Xml/XmlLite/mod.rs | 32 +- .../src/Windows/Win32/Devices/AllJoyn/mod.rs | 1006 ++--- .../Win32/Devices/BiometricFramework/mod.rs | 100 +- .../Windows/Win32/Devices/Bluetooth/mod.rs | 66 +- .../Win32/Devices/Communication/mod.rs | 42 +- .../Windows/Win32/Devices/DeviceAccess/mod.rs | 12 +- .../DeviceAndDriverInstallation/mod.rs | 1088 +++-- .../Windows/Win32/Devices/DeviceQuery/mod.rs | 67 +- .../src/Windows/Win32/Devices/Display/mod.rs | 182 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 62 +- .../src/Windows/Win32/Devices/Fax/mod.rs | 334 +- .../Win32/Devices/FunctionDiscovery/mod.rs | 58 +- .../Windows/Win32/Devices/Geolocation/mod.rs | 34 +- .../Win32/Devices/HumanInterfaceDevice/mod.rs | 378 +- .../Win32/Devices/ImageAcquisition/mod.rs | 208 +- .../Win32/Devices/PortableDevices/mod.rs | 194 +- .../src/Windows/Win32/Devices/Sensors/mod.rs | 76 +- .../Win32/Devices/SerialCommunication/mod.rs | 12 +- .../src/Windows/Win32/Devices/Tapi/mod.rs | 870 ++-- .../src/Windows/Win32/Devices/Usb/mod.rs | 68 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 96 +- .../src/Windows/Win32/Foundation/mod.rs | 20 +- .../windows/src/Windows/Win32/Gaming/mod.rs | 87 +- .../src/Windows/Win32/Globalization/mod.rs | 2185 +++++----- .../Graphics/CompositionSwapchain/mod.rs | 22 +- .../src/Windows/Win32/Graphics/DXCore/mod.rs | 28 +- .../Win32/Graphics/Direct2D/Common/mod.rs | 8 +- .../Windows/Win32/Graphics/Direct2D/mod.rs | 536 ++- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 72 +- .../Win32/Graphics/Direct3D/Fxc/mod.rs | 60 +- .../Windows/Win32/Graphics/Direct3D/mod.rs | 8 +- .../Windows/Win32/Graphics/Direct3D10/mod.rs | 342 +- .../Windows/Win32/Graphics/Direct3D11/mod.rs | 627 ++- .../Win32/Graphics/Direct3D11on12/mod.rs | 8 +- .../Windows/Win32/Graphics/Direct3D12/mod.rs | 474 +-- .../Windows/Win32/Graphics/Direct3D9/mod.rs | 298 +- .../Win32/Graphics/Direct3D9on12/mod.rs | 10 +- .../Win32/Graphics/DirectComposition/mod.rs | 298 +- .../Windows/Win32/Graphics/DirectDraw/mod.rs | 326 +- .../Win32/Graphics/DirectManipulation/mod.rs | 84 +- .../Windows/Win32/Graphics/DirectWrite/mod.rs | 500 +-- .../src/Windows/Win32/Graphics/Dwm/mod.rs | 50 +- .../src/Windows/Win32/Graphics/Dxgi/mod.rs | 194 +- .../src/Windows/Win32/Graphics/Gdi/mod.rs | 754 ++-- .../src/Windows/Win32/Graphics/GdiPlus/mod.rs | 796 ++-- .../Windows/Win32/Graphics/Imaging/D2D/mod.rs | 6 +- .../src/Windows/Win32/Graphics/Imaging/mod.rs | 208 +- .../src/Windows/Win32/Graphics/OpenGL/mod.rs | 754 ++-- .../Graphics/Printing/PrintTicket/mod.rs | 20 +- .../Windows/Win32/Graphics/Printing/mod.rs | 483 ++- .../MobileDeviceManagementRegistration/mod.rs | 4 +- .../src/Windows/Win32/Media/Audio/Apo/mod.rs | 28 +- .../Win32/Media/Audio/DirectMusic/mod.rs | 70 +- .../Win32/Media/Audio/DirectSound/mod.rs | 116 +- .../Win32/Media/Audio/Endpoints/mod.rs | 34 +- .../Windows/Win32/Media/Audio/XAudio2/mod.rs | 78 +- .../src/Windows/Win32/Media/Audio/mod.rs | 484 +-- .../Windows/Win32/Media/DeviceManager/mod.rs | 146 +- .../Windows/Win32/Media/DirectShow/Tv/mod.rs | 1194 +++--- .../src/Windows/Win32/Media/DirectShow/mod.rs | 1383 +++--- .../Windows/Win32/Media/DxMediaObjects/mod.rs | 68 +- .../Win32/Media/KernelStreaming/mod.rs | 110 +- .../Win32/Media/LibrarySharingServices/mod.rs | 20 +- .../Win32/Media/MediaFoundation/mod.rs | 1519 ++++--- .../Windows/Win32/Media/MediaPlayer/mod.rs | 382 +- .../src/Windows/Win32/Media/Multimedia/mod.rs | 339 +- .../Win32/Media/PictureAcquisition/mod.rs | 78 +- .../src/Windows/Win32/Media/Speech/mod.rs | 652 +-- .../Win32/Media/WindowsMediaFormat/mod.rs | 494 +-- .../windows/src/Windows/Win32/Media/mod.rs | 20 +- .../Win32/NetworkManagement/Dhcp/mod.rs | 320 +- .../Win32/NetworkManagement/Dns/mod.rs | 94 +- .../Win32/NetworkManagement/IpHelper/mod.rs | 338 +- .../NetworkManagement/MobileBroadband/mod.rs | 102 +- .../Win32/NetworkManagement/Multicast/mod.rs | 8 +- .../NetworkManagement/NetManagement/mod.rs | 326 +- .../Win32/NetworkManagement/NetShell/mod.rs | 12 +- .../NetworkDiagnosticsFramework/mod.rs | 20 +- .../NetworkPolicyServer/mod.rs | 22 +- .../Win32/NetworkManagement/P2P/mod.rs | 304 +- .../Win32/NetworkManagement/QoS/mod.rs | 62 +- .../Win32/NetworkManagement/Rras/mod.rs | 456 +- .../Win32/NetworkManagement/Snmp/mod.rs | 100 +- .../Win32/NetworkManagement/WNet/mod.rs | 100 +- .../Win32/NetworkManagement/WebDav/mod.rs | 10 +- .../Win32/NetworkManagement/WiFi/mod.rs | 150 +- .../WindowsConnectNow/mod.rs | 18 +- .../WindowsConnectionManager/mod.rs | 14 +- .../WindowsFilteringPlatform/mod.rs | 362 +- .../NetworkManagement/WindowsFirewall/mod.rs | 184 +- .../WindowsNetworkVirtualization/mod.rs | 2 +- .../Win32/Networking/ActiveDirectory/mod.rs | 514 +-- .../mod.rs | 104 +- .../Win32/Networking/Clustering/mod.rs | 822 ++-- .../Win32/Networking/HttpServer/mod.rs | 93 +- .../src/Windows/Win32/Networking/Ldap/mod.rs | 182 +- .../Networking/NetworkListManager/mod.rs | 36 +- .../RemoteDifferentialCompression/mod.rs | 58 +- .../Windows/Win32/Networking/WebSocket/mod.rs | 22 +- .../Windows/Win32/Networking/WinHttp/mod.rs | 102 +- .../Windows/Win32/Networking/WinInet/mod.rs | 450 +- .../Windows/Win32/Networking/WinSock/mod.rs | 369 +- .../Networking/WindowsWebServices/mod.rs | 442 +- .../Windows/Win32/Security/AppLocker/mod.rs | 18 +- .../Authentication/Identity/Provider/mod.rs | 52 +- .../Security/Authentication/Identity/mod.rs | 389 +- .../Win32/Security/Authorization/UI/mod.rs | 28 +- .../Win32/Security/Authorization/mod.rs | 313 +- .../Win32/Security/ConfigurationSnapin/mod.rs | 2 +- .../Windows/Win32/Security/Credentials/mod.rs | 200 +- .../Security/Cryptography/Catalog/mod.rs | 62 +- .../Security/Cryptography/Certificates/mod.rs | 942 ++--- .../Win32/Security/Cryptography/Sip/mod.rs | 16 +- .../Win32/Security/Cryptography/UI/mod.rs | 20 +- .../Win32/Security/Cryptography/mod.rs | 987 ++--- .../Win32/Security/DiagnosticDataQuery/mod.rs | 68 +- .../Win32/Security/DirectoryServices/mod.rs | 8 +- .../Win32/Security/EnterpriseData/mod.rs | 40 +- .../ExtensibleAuthenticationProtocol/mod.rs | 107 +- .../Windows/Win32/Security/Isolation/mod.rs | 12 +- .../Win32/Security/LicenseProtection/mod.rs | 2 +- .../src/Windows/Win32/Security/Tpm/mod.rs | 12 +- .../Windows/Win32/Security/WinTrust/mod.rs | 24 +- .../windows/src/Windows/Win32/Security/mod.rs | 380 +- .../src/Windows/Win32/Storage/Cabinets/mod.rs | 20 +- .../Windows/Win32/Storage/CloudFilters/mod.rs | 70 +- .../Windows/Win32/Storage/Compression/mod.rs | 24 +- .../Win32/Storage/DataDeduplication/mod.rs | 20 +- .../Storage/DistributedFileSystem/mod.rs | 36 +- .../Win32/Storage/EnhancedStorage/mod.rs | 6 +- .../Windows/Win32/Storage/FileHistory/mod.rs | 30 +- .../Storage/FileServerResourceManager/mod.rs | 232 +- .../Windows/Win32/Storage/FileSystem/mod.rs | 656 ++- .../src/Windows/Win32/Storage/Imapi/mod.rs | 204 +- .../Windows/Win32/Storage/IndexServer/mod.rs | 10 +- .../Storage/InstallableFileSystems/mod.rs | 40 +- .../Windows/Win32/Storage/IscsiDisc/mod.rs | 86 +- .../src/Windows/Win32/Storage/Jet/mod.rs | 442 +- .../Windows/Win32/Storage/OfflineFiles/mod.rs | 98 +- .../Win32/Storage/OperationRecorder/mod.rs | 4 +- .../Win32/Storage/Packaging/Appx/mod.rs | 134 +- .../Win32/Storage/Packaging/Opc/mod.rs | 30 +- .../Win32/Storage/ProjectedFileSystem/mod.rs | 30 +- .../src/Windows/Win32/Storage/Vhd/mod.rs | 56 +- .../Win32/Storage/VirtualDiskService/mod.rs | 196 +- .../src/Windows/Win32/Storage/Vss/mod.rs | 140 +- .../Windows/Win32/Storage/Xps/Printing/mod.rs | 8 +- .../src/Windows/Win32/Storage/Xps/mod.rs | 296 +- .../Windows/Win32/System/AddressBook/mod.rs | 304 +- .../Windows/Win32/System/Antimalware/mod.rs | 28 +- .../mod.rs | 608 ++- .../Win32/System/ApplicationVerifier/mod.rs | 2 +- .../Win32/System/AssessmentTool/mod.rs | 8 +- .../Windows/Win32/System/ClrHosting/mod.rs | 358 +- .../Windows/Win32/System/Com/CallObj/mod.rs | 46 +- .../System/Com/ChannelCredentials/mod.rs | 2 +- .../Windows/Win32/System/Com/Events/mod.rs | 16 +- .../Windows/Win32/System/Com/Marshal/mod.rs | 232 +- .../Win32/System/Com/StructuredStorage/mod.rs | 176 +- .../src/Windows/Win32/System/Com/UI/mod.rs | 4 +- .../Windows/Win32/System/Com/Urlmon/mod.rs | 258 +- .../src/Windows/Win32/System/Com/mod.rs | 482 +-- .../Win32/System/ComponentServices/mod.rs | 402 +- .../src/Windows/Win32/System/Console/mod.rs | 122 +- .../src/Windows/Win32/System/Contacts/mod.rs | 68 +- .../Win32/System/CorrelationVector/mod.rs | 4 +- .../Windows/Win32/System/DataExchange/mod.rs | 112 +- .../Win32/System/DeploymentServices/mod.rs | 224 +- .../Win32/System/DesktopSharing/mod.rs | 66 +- .../System/Diagnostics/ClrProfiling/mod.rs | 345 +- .../Diagnostics/Debug/ActiveScript/mod.rs | 340 +- .../Diagnostics/Debug/Extensions/mod.rs | 3752 ++++++++--------- .../Win32/System/Diagnostics/Debug/mod.rs | 595 ++- .../Win32/System/Diagnostics/Etw/mod.rs | 148 +- .../Diagnostics/ProcessSnapshotting/mod.rs | 18 +- .../Win32/System/Diagnostics/ToolHelp/mod.rs | 30 +- .../DistributedTransactionCoordinator/mod.rs | 122 +- .../Windows/Win32/System/Environment/mod.rs | 30 +- .../Win32/System/ErrorReporting/mod.rs | 58 +- .../Win32/System/EventCollector/mod.rs | 30 +- .../src/Windows/Win32/System/EventLog/mod.rs | 94 +- .../System/EventNotificationService/mod.rs | 24 +- .../Windows/Win32/System/GroupPolicy/mod.rs | 174 +- .../Win32/System/HostComputeNetwork/mod.rs | 74 +- .../Win32/System/HostComputeSystem/mod.rs | 92 +- .../Windows/Win32/System/Hypervisor/mod.rs | 222 +- .../src/Windows/Win32/System/IO/mod.rs | 22 +- .../src/Windows/Win32/System/Iis/mod.rs | 84 +- .../Windows/Win32/System/JobObjects/mod.rs | 22 +- .../src/Windows/Win32/System/Js/mod.rs | 136 +- .../src/Windows/Win32/System/Kernel/mod.rs | 6 +- .../Windows/Win32/System/LibraryLoader/mod.rs | 66 +- .../src/Windows/Win32/System/Mailslots/mod.rs | 8 +- .../Win32/System/Memory/NonVolatile/mod.rs | 14 +- .../src/Windows/Win32/System/Memory/mod.rs | 210 +- .../Win32/System/MessageQueuing/mod.rs | 222 +- .../src/Windows/Win32/System/Mmc/mod.rs | 212 +- .../src/Windows/Win32/System/Ole/mod.rs | 1145 +++-- .../Win32/System/PasswordManagement/mod.rs | 4 +- .../HardwareCounterProfiling/mod.rs | 8 +- .../Windows/Win32/System/Performance/mod.rs | 506 +-- .../src/Windows/Win32/System/Pipes/mod.rs | 61 +- .../src/Windows/Win32/System/Power/mod.rs | 126 +- .../Windows/Win32/System/ProcessStatus/mod.rs | 100 +- .../System/RealTimeCommunications/mod.rs | 186 +- .../src/Windows/Win32/System/Recovery/mod.rs | 8 +- .../src/Windows/Win32/System/Registry/mod.rs | 186 +- .../Win32/System/RemoteAssistance/mod.rs | 2 +- .../Windows/Win32/System/RemoteDesktop/mod.rs | 455 +- .../Win32/System/RemoteManagement/mod.rs | 92 +- .../Win32/System/RestartManager/mod.rs | 18 +- .../src/Windows/Win32/System/Restore/mod.rs | 6 +- .../src/Windows/Win32/System/Rpc/mod.rs | 554 +-- .../src/Windows/Win32/System/Search/mod.rs | 906 ++-- .../Win32/System/SecurityCenter/mod.rs | 10 +- .../Windows/Win32/System/ServerBackup/mod.rs | 8 +- .../src/Windows/Win32/System/Services/mod.rs | 138 +- .../SettingsManagementInfrastructure/mod.rs | 30 +- .../Win32/System/SetupAndMigration/mod.rs | 4 +- .../src/Windows/Win32/System/Shutdown/mod.rs | 22 +- .../src/Windows/Win32/System/SideShow/mod.rs | 34 +- .../Win32/System/StationsAndDesktops/mod.rs | 60 +- .../Win32/System/SubsystemForLinux/mod.rs | 4 +- .../Win32/System/SystemInformation/mod.rs | 52 +- .../Windows/Win32/System/TaskScheduler/mod.rs | 170 +- .../src/Windows/Win32/System/Threading/mod.rs | 550 ++- .../src/Windows/Win32/System/Time/mod.rs | 26 +- .../Win32/System/TpmBaseServices/mod.rs | 20 +- .../Win32/System/TransactionServer/mod.rs | 4 +- .../Windows/Win32/System/UpdateAgent/mod.rs | 102 +- .../Win32/System/UserAccessLogging/mod.rs | 6 +- .../src/Windows/Win32/System/Variant/mod.rs | 74 +- .../Windows/Win32/System/WinRT/AllJoyn/mod.rs | 8 +- .../Win32/System/WinRT/Composition/mod.rs | 16 +- .../Win32/System/WinRT/CoreInputView/mod.rs | 2 +- .../Windows/Win32/System/WinRT/Display/mod.rs | 4 +- .../System/WinRT/Graphics/Capture/mod.rs | 4 +- .../System/WinRT/Graphics/Direct2D/mod.rs | 4 +- .../System/WinRT/Graphics/Imaging/mod.rs | 2 +- .../Win32/System/WinRT/Holographic/mod.rs | 18 +- .../Win32/System/WinRT/Isolation/mod.rs | 2 +- .../src/Windows/Win32/System/WinRT/ML/mod.rs | 6 +- .../Windows/Win32/System/WinRT/Media/mod.rs | 2 +- .../Win32/System/WinRT/Metadata/mod.rs | 393 +- .../Win32/System/WinRT/Printing/mod.rs | 18 +- .../Windows/Win32/System/WinRT/Shell/mod.rs | 2 +- .../Windows/Win32/System/WinRT/Storage/mod.rs | 4 +- .../src/Windows/Win32/System/WinRT/mod.rs | 120 +- .../Win32/System/WindowsProgramming/mod.rs | 280 +- .../Windows/Win32/System/WindowsSync/mod.rs | 232 +- .../src/Windows/Win32/System/Wmi/mod.rs | 530 ++- .../src/Windows/Win32/UI/Accessibility/mod.rs | 528 +-- .../src/Windows/Win32/UI/Animation/mod.rs | 204 +- .../src/Windows/Win32/UI/ColorSystem/mod.rs | 224 +- .../Windows/Win32/UI/Controls/Dialogs/mod.rs | 2 +- .../Windows/Win32/UI/Controls/RichEdit/mod.rs | 510 +-- .../src/Windows/Win32/UI/Controls/mod.rs | 434 +- .../windows/src/Windows/Win32/UI/HiDpi/mod.rs | 46 +- .../src/Windows/Win32/UI/Input/Ime/mod.rs | 526 +-- .../src/Windows/Win32/UI/Input/Ink/mod.rs | 6 +- .../Win32/UI/Input/KeyboardAndMouse/mod.rs | 70 +- .../src/Windows/Win32/UI/Input/Pointer/mod.rs | 46 +- .../src/Windows/Win32/UI/Input/Radial/mod.rs | 6 +- .../src/Windows/Win32/UI/Input/Touch/mod.rs | 111 +- .../Win32/UI/Input/XboxController/mod.rs | 12 +- .../windows/src/Windows/Win32/UI/Input/mod.rs | 16 +- .../Win32/UI/InteractionContext/mod.rs | 58 +- .../LegacyWindowsEnvironmentFeatures/mod.rs | 24 +- .../src/Windows/Win32/UI/Magnification/mod.rs | 26 +- .../src/Windows/Win32/UI/Ribbon/mod.rs | 42 +- .../src/Windows/Win32/UI/Shell/Common/mod.rs | 4 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 170 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 2360 +++++------ .../src/Windows/Win32/UI/TabletPC/mod.rs | 520 +-- .../src/Windows/Win32/UI/TextServices/mod.rs | 696 +-- .../Win32/UI/WindowsAndMessaging/mod.rs | 634 +-- .../windows/src/Windows/Win32/UI/Wpf/mod.rs | 64 +- .../Windows/Win32/Web/InternetExplorer/mod.rs | 204 +- crates/tests/bindgen/src/bool_event.rs | 14 +- crates/tests/bindgen/src/fn_no_return_win.rs | 2 +- .../bindgen/src/struct_with_cpp_interface.rs | 8 +- crates/tests/bindgen/src/window_long_get_a.rs | 4 +- crates/tests/bindgen/src/window_long_get_w.rs | 4 +- crates/tests/bindgen/src/window_long_set_a.rs | 12 +- crates/tests/bindgen/src/window_long_set_w.rs | 12 +- 306 files changed, 31729 insertions(+), 33580 deletions(-) diff --git a/crates/libs/bindgen/src/types/cpp_method.rs b/crates/libs/bindgen/src/types/cpp_method.rs index 0a5f3ecd04..9886526d04 100644 --- a/crates/libs/bindgen/src/types/cpp_method.rs +++ b/crates/libs/bindgen/src/types/cpp_method.rs @@ -680,7 +680,11 @@ impl CppMethod { quote! { #name.into(), } } ParamHint::ValueType => { - quote! { core::mem::transmute(#name), } + if flags.contains(ParamAttributes::Out) { + quote! { core::mem::transmute(#name), } + } else { + quote! { #name, } + } } ParamHint::Blittable => { if matches!(ty, Type::PrimitiveOrEnum(_, _)) { diff --git a/crates/libs/core/src/imp/com_bindings.rs b/crates/libs/core/src/imp/com_bindings.rs index a196a54a38..15b7fcee7f 100644 --- a/crates/libs/core/src/imp/com_bindings.rs +++ b/crates/libs/core/src/imp/com_bindings.rs @@ -23,13 +23,8 @@ where { windows_targets::link!("ole32.dll" "system" fn RoGetAgileReference(options : AgileReferenceOptions, riid : *const windows_core::GUID, punk : * mut core::ffi::c_void, ppagilereference : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoGetAgileReference( - core::mem::transmute(options), - core::mem::transmute(riid), - punk.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + RoGetAgileReference(options, riid, punk.param().abi(), &mut result__) + .and_then(|| windows_core::Type::from_abi(result__)) } pub const AGILEREFERENCE_DEFAULT: AgileReferenceOptions = AgileReferenceOptions(0i32); #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs index d39c00351c..fbe47346b4 100644 --- a/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn VhfAsyncOperationComplete(vhfoperationhandle: *const core::ffi::c_void, completionstatus: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("vhfum.dll" "system" fn VhfAsyncOperationComplete(vhfoperationhandle : *const core::ffi::c_void, completionstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - VhfAsyncOperationComplete(core::mem::transmute(vhfoperationhandle), core::mem::transmute(completionstatus)) + VhfAsyncOperationComplete(vhfoperationhandle, completionstatus) } #[inline] pub unsafe fn VhfCreate(vhfconfig: *const VHF_CONFIG, vhfhandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("vhfum.dll" "system" fn VhfCreate(vhfconfig : *const VHF_CONFIG, vhfhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - VhfCreate(core::mem::transmute(vhfconfig), core::mem::transmute(vhfhandle)) + VhfCreate(vhfconfig, core::mem::transmute(vhfhandle)) } #[inline] pub unsafe fn VhfDelete(vhfhandle: *const core::ffi::c_void, wait: bool) { windows_targets::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : bool)); - VhfDelete(core::mem::transmute(vhfhandle), core::mem::transmute(wait)) + VhfDelete(vhfhandle, wait) } #[inline] pub unsafe fn VhfReadReportSubmit(vhfhandle: *const core::ffi::c_void, hidtransferpacket: *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("vhfum.dll" "system" fn VhfReadReportSubmit(vhfhandle : *const core::ffi::c_void, hidtransferpacket : *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation:: NTSTATUS); - VhfReadReportSubmit(core::mem::transmute(vhfhandle), core::mem::transmute(hidtransferpacket)) + VhfReadReportSubmit(vhfhandle, hidtransferpacket) } #[inline] pub unsafe fn VhfStart(vhfhandle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("vhfum.dll" "system" fn VhfStart(vhfhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - VhfStart(core::mem::transmute(vhfhandle)) + VhfStart(vhfhandle) } pub type EVT_VHF_ASYNC_OPERATION = Option; pub type EVT_VHF_CLEANUP = Option; diff --git a/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs b/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs index 474663c3de..4142443400 100644 --- a/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn NtClose(handle: super::super::Win32::Foundation::HANDLE) -> super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtClose(handle : super::super::Win32::Foundation:: HANDLE) -> super::super::Win32::Foundation:: NTSTATUS); - NtClose(core::mem::transmute(handle)) + NtClose(handle) } #[inline] pub unsafe fn NtQueryObject(handle: Option, objectinformationclass: OBJECT_INFORMATION_CLASS, objectinformation: Option<*mut core::ffi::c_void>, objectinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryObject(handle : super::super::Win32::Foundation:: HANDLE, objectinformationclass : OBJECT_INFORMATION_CLASS, objectinformation : *mut core::ffi::c_void, objectinformationlength : u32, returnlength : *mut u32) -> super::super::Win32::Foundation:: NTSTATUS); - NtQueryObject(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectinformationclass), core::mem::transmute(objectinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + NtQueryObject(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), objectinformationclass, core::mem::transmute(objectinformation.unwrap_or(core::mem::zeroed())), objectinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[repr(C)] #[cfg(all(feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] diff --git a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs index 30ebde9bd7..cc079b93fd 100644 --- a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -11,23 +11,23 @@ pub unsafe fn D3DKMTAcquireKeyedMutex2(param0: *mut D3DKMT_ACQUIREKEYEDMUTEX2) - #[inline] pub unsafe fn D3DKMTAdjustFullscreenGamma(param0: *const D3DKMT_ADJUSTFULLSCREENGAMMA) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTAdjustFullscreenGamma(param0 : *const D3DKMT_ADJUSTFULLSCREENGAMMA) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTAdjustFullscreenGamma(core::mem::transmute(param0)) + D3DKMTAdjustFullscreenGamma(param0) } #[inline] pub unsafe fn D3DKMTCancelPresents(param0: *const D3DKMT_CANCEL_PRESENTS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCancelPresents(param0 : *const D3DKMT_CANCEL_PRESENTS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCancelPresents(core::mem::transmute(param0)) + D3DKMTCancelPresents(param0) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn D3DKMTChangeSurfacePointer(param0: *const D3DKMT_CHANGESURFACEPOINTER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTChangeSurfacePointer(param0 : *const D3DKMT_CHANGESURFACEPOINTER) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTChangeSurfacePointer(core::mem::transmute(param0)) + D3DKMTChangeSurfacePointer(param0) } #[inline] pub unsafe fn D3DKMTChangeVideoMemoryReservation(param0: *const D3DKMT_CHANGEVIDEOMEMORYRESERVATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTChangeVideoMemoryReservation(param0 : *const D3DKMT_CHANGEVIDEOMEMORYRESERVATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTChangeVideoMemoryReservation(core::mem::transmute(param0)) + D3DKMTChangeVideoMemoryReservation(param0) } #[inline] pub unsafe fn D3DKMTCheckExclusiveOwnership() -> bool { @@ -37,7 +37,7 @@ pub unsafe fn D3DKMTCheckExclusiveOwnership() -> bool { #[inline] pub unsafe fn D3DKMTCheckMonitorPowerState(param0: *const D3DKMT_CHECKMONITORPOWERSTATE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckMonitorPowerState(param0 : *const D3DKMT_CHECKMONITORPOWERSTATE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCheckMonitorPowerState(core::mem::transmute(param0)) + D3DKMTCheckMonitorPowerState(param0) } #[inline] pub unsafe fn D3DKMTCheckMultiPlaneOverlaySupport(param0: *mut D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -57,27 +57,27 @@ pub unsafe fn D3DKMTCheckMultiPlaneOverlaySupport3(param0: *mut D3DKMT_CHECKMULT #[inline] pub unsafe fn D3DKMTCheckOcclusion(param0: *const D3DKMT_CHECKOCCLUSION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckOcclusion(param0 : *const D3DKMT_CHECKOCCLUSION) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCheckOcclusion(core::mem::transmute(param0)) + D3DKMTCheckOcclusion(param0) } #[inline] pub unsafe fn D3DKMTCheckSharedResourceAccess(param0: *const D3DKMT_CHECKSHAREDRESOURCEACCESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckSharedResourceAccess(param0 : *const D3DKMT_CHECKSHAREDRESOURCEACCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCheckSharedResourceAccess(core::mem::transmute(param0)) + D3DKMTCheckSharedResourceAccess(param0) } #[inline] pub unsafe fn D3DKMTCheckVidPnExclusiveOwnership(param0: *const D3DKMT_CHECKVIDPNEXCLUSIVEOWNERSHIP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckVidPnExclusiveOwnership(param0 : *const D3DKMT_CHECKVIDPNEXCLUSIVEOWNERSHIP) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCheckVidPnExclusiveOwnership(core::mem::transmute(param0)) + D3DKMTCheckVidPnExclusiveOwnership(param0) } #[inline] pub unsafe fn D3DKMTCloseAdapter(param0: *const D3DKMT_CLOSEADAPTER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCloseAdapter(param0 : *const D3DKMT_CLOSEADAPTER) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCloseAdapter(core::mem::transmute(param0)) + D3DKMTCloseAdapter(param0) } #[inline] pub unsafe fn D3DKMTConfigureSharedResource(param0: *const D3DKMT_CONFIGURESHAREDRESOURCE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTConfigureSharedResource(param0 : *const D3DKMT_CONFIGURESHAREDRESOURCE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTConfigureSharedResource(core::mem::transmute(param0)) + D3DKMTConfigureSharedResource(param0) } #[inline] pub unsafe fn D3DKMTCreateAllocation(param0: *mut D3DKMT_CREATEALLOCATION) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -97,7 +97,7 @@ pub unsafe fn D3DKMTCreateContext(param0: *mut D3DKMT_CREATECONTEXT) -> super::s #[inline] pub unsafe fn D3DKMTCreateContextVirtual(param0: *const D3DKMT_CREATECONTEXTVIRTUAL) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCreateContextVirtual(param0 : *const D3DKMT_CREATECONTEXTVIRTUAL) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCreateContextVirtual(core::mem::transmute(param0)) + D3DKMTCreateContextVirtual(param0) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -133,7 +133,7 @@ pub unsafe fn D3DKMTCreateKeyedMutex2(param0: *mut D3DKMT_CREATEKEYEDMUTEX2) -> #[inline] pub unsafe fn D3DKMTCreateOutputDupl(param0: *const D3DKMT_CREATE_OUTPUTDUPL) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTCreateOutputDupl(param0 : *const D3DKMT_CREATE_OUTPUTDUPL) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTCreateOutputDupl(core::mem::transmute(param0)) + D3DKMTCreateOutputDupl(param0) } #[inline] pub unsafe fn D3DKMTCreateOverlay(param0: *mut D3DKMT_CREATEOVERLAY) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -163,53 +163,53 @@ pub unsafe fn D3DKMTCreateSynchronizationObject2(param0: *mut D3DKMT_CREATESYNCH #[inline] pub unsafe fn D3DKMTDestroyAllocation(param0: *const D3DKMT_DESTROYALLOCATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyAllocation(param0 : *const D3DKMT_DESTROYALLOCATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyAllocation(core::mem::transmute(param0)) + D3DKMTDestroyAllocation(param0) } #[inline] pub unsafe fn D3DKMTDestroyAllocation2(param0: *const D3DKMT_DESTROYALLOCATION2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyAllocation2(param0 : *const D3DKMT_DESTROYALLOCATION2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyAllocation2(core::mem::transmute(param0)) + D3DKMTDestroyAllocation2(param0) } #[inline] pub unsafe fn D3DKMTDestroyContext(param0: *const D3DKMT_DESTROYCONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyContext(param0 : *const D3DKMT_DESTROYCONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyContext(core::mem::transmute(param0)) + D3DKMTDestroyContext(param0) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn D3DKMTDestroyDCFromMemory(param0: *const D3DKMT_DESTROYDCFROMMEMORY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyDCFromMemory(param0 : *const D3DKMT_DESTROYDCFROMMEMORY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyDCFromMemory(core::mem::transmute(param0)) + D3DKMTDestroyDCFromMemory(param0) } #[inline] pub unsafe fn D3DKMTDestroyDevice(param0: *const D3DKMT_DESTROYDEVICE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyDevice(param0 : *const D3DKMT_DESTROYDEVICE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyDevice(core::mem::transmute(param0)) + D3DKMTDestroyDevice(param0) } #[inline] pub unsafe fn D3DKMTDestroyHwContext(param0: *const D3DKMT_DESTROYHWCONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyHwContext(param0 : *const D3DKMT_DESTROYHWCONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyHwContext(core::mem::transmute(param0)) + D3DKMTDestroyHwContext(param0) } #[inline] pub unsafe fn D3DKMTDestroyHwQueue(param0: *const D3DKMT_DESTROYHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyHwQueue(param0 : *const D3DKMT_DESTROYHWQUEUE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyHwQueue(core::mem::transmute(param0)) + D3DKMTDestroyHwQueue(param0) } #[inline] pub unsafe fn D3DKMTDestroyKeyedMutex(param0: *const D3DKMT_DESTROYKEYEDMUTEX) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyKeyedMutex(param0 : *const D3DKMT_DESTROYKEYEDMUTEX) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyKeyedMutex(core::mem::transmute(param0)) + D3DKMTDestroyKeyedMutex(param0) } #[inline] pub unsafe fn D3DKMTDestroyOutputDupl(param0: *const D3DKMT_DESTROY_OUTPUTDUPL) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyOutputDupl(param0 : *const D3DKMT_DESTROY_OUTPUTDUPL) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyOutputDupl(core::mem::transmute(param0)) + D3DKMTDestroyOutputDupl(param0) } #[inline] pub unsafe fn D3DKMTDestroyOverlay(param0: *const D3DKMT_DESTROYOVERLAY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroyOverlay(param0 : *const D3DKMT_DESTROYOVERLAY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroyOverlay(core::mem::transmute(param0)) + D3DKMTDestroyOverlay(param0) } #[inline] pub unsafe fn D3DKMTDestroyPagingQueue(param0: *mut D3DDDI_DESTROYPAGINGQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -224,7 +224,7 @@ pub unsafe fn D3DKMTDestroyProtectedSession(param0: *mut D3DKMT_DESTROYPROTECTED #[inline] pub unsafe fn D3DKMTDestroySynchronizationObject(param0: *const D3DKMT_DESTROYSYNCHRONIZATIONOBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTDestroySynchronizationObject(param0 : *const D3DKMT_DESTROYSYNCHRONIZATIONOBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTDestroySynchronizationObject(core::mem::transmute(param0)) + D3DKMTDestroySynchronizationObject(param0) } #[inline] pub unsafe fn D3DKMTEnumAdapters(param0: *mut D3DKMT_ENUMADAPTERS) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -244,7 +244,7 @@ pub unsafe fn D3DKMTEnumAdapters3(param0: *mut D3DKMT_ENUMADAPTERS3) -> super::s #[inline] pub unsafe fn D3DKMTEscape(param0: *const D3DKMT_ESCAPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTEscape(param0 : *const D3DKMT_ESCAPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTEscape(core::mem::transmute(param0)) + D3DKMTEscape(param0) } #[inline] pub unsafe fn D3DKMTEvict(param0: *mut D3DKMT_EVICT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -254,22 +254,22 @@ pub unsafe fn D3DKMTEvict(param0: *mut D3DKMT_EVICT) -> super::super::super::Win #[inline] pub unsafe fn D3DKMTFlipOverlay(param0: *const D3DKMT_FLIPOVERLAY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTFlipOverlay(param0 : *const D3DKMT_FLIPOVERLAY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTFlipOverlay(core::mem::transmute(param0)) + D3DKMTFlipOverlay(param0) } #[inline] pub unsafe fn D3DKMTFlushHeapTransitions(param0: *const D3DKMT_FLUSHHEAPTRANSITIONS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTFlushHeapTransitions(param0 : *const D3DKMT_FLUSHHEAPTRANSITIONS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTFlushHeapTransitions(core::mem::transmute(param0)) + D3DKMTFlushHeapTransitions(param0) } #[inline] pub unsafe fn D3DKMTFreeGpuVirtualAddress(param0: *const D3DKMT_FREEGPUVIRTUALADDRESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTFreeGpuVirtualAddress(param0 : *const D3DKMT_FREEGPUVIRTUALADDRESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTFreeGpuVirtualAddress(core::mem::transmute(param0)) + D3DKMTFreeGpuVirtualAddress(param0) } #[inline] pub unsafe fn D3DKMTGetAllocationPriority(param0: *const D3DKMT_GETALLOCATIONPRIORITY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTGetAllocationPriority(param0 : *const D3DKMT_GETALLOCATIONPRIORITY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTGetAllocationPriority(core::mem::transmute(param0)) + D3DKMTGetAllocationPriority(param0) } #[inline] pub unsafe fn D3DKMTGetContextInProcessSchedulingPriority(param0: *mut D3DKMT_GETCONTEXTINPROCESSSCHEDULINGPRIORITY) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -284,7 +284,7 @@ pub unsafe fn D3DKMTGetContextSchedulingPriority(param0: *mut D3DKMT_GETCONTEXTS #[inline] pub unsafe fn D3DKMTGetDWMVerticalBlankEvent(param0: *const D3DKMT_GETVERTICALBLANKEVENT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTGetDWMVerticalBlankEvent(param0 : *const D3DKMT_GETVERTICALBLANKEVENT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTGetDWMVerticalBlankEvent(core::mem::transmute(param0)) + D3DKMTGetDWMVerticalBlankEvent(param0) } #[inline] pub unsafe fn D3DKMTGetDeviceState(param0: *mut D3DKMT_GETDEVICESTATE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -324,7 +324,7 @@ pub unsafe fn D3DKMTGetPresentHistory(param0: *mut D3DKMT_GETPRESENTHISTORY) -> #[inline] pub unsafe fn D3DKMTGetPresentQueueEvent(hadapter: u32, param1: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTGetPresentQueueEvent(hadapter : u32, param1 : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTGetPresentQueueEvent(core::mem::transmute(hadapter), core::mem::transmute(param1)) + D3DKMTGetPresentQueueEvent(hadapter, core::mem::transmute(param1)) } #[inline] pub unsafe fn D3DKMTGetProcessDeviceRemovalSupport(param0: *mut D3DKMT_GETPROCESSDEVICEREMOVALSUPPORT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -334,7 +334,7 @@ pub unsafe fn D3DKMTGetProcessDeviceRemovalSupport(param0: *mut D3DKMT_GETPROCES #[inline] pub unsafe fn D3DKMTGetProcessSchedulingPriorityClass(param0: super::super::super::Win32::Foundation::HANDLE, param1: *mut D3DKMT_SCHEDULINGPRIORITYCLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTGetProcessSchedulingPriorityClass(param0 : super::super::super::Win32::Foundation:: HANDLE, param1 : *mut D3DKMT_SCHEDULINGPRIORITYCLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTGetProcessSchedulingPriorityClass(core::mem::transmute(param0), core::mem::transmute(param1)) + D3DKMTGetProcessSchedulingPriorityClass(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn D3DKMTGetResourcePresentPrivateDriverData(param0: *mut D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -364,12 +364,12 @@ pub unsafe fn D3DKMTGetSharedResourceAdapterLuid(param0: *mut D3DKMT_GETSHAREDRE #[inline] pub unsafe fn D3DKMTInvalidateActiveVidPn(param0: *const D3DKMT_INVALIDATEACTIVEVIDPN) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTInvalidateActiveVidPn(param0 : *const D3DKMT_INVALIDATEACTIVEVIDPN) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTInvalidateActiveVidPn(core::mem::transmute(param0)) + D3DKMTInvalidateActiveVidPn(param0) } #[inline] pub unsafe fn D3DKMTInvalidateCache(param0: *const D3DKMT_INVALIDATECACHE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTInvalidateCache(param0 : *const D3DKMT_INVALIDATECACHE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTInvalidateCache(core::mem::transmute(param0)) + D3DKMTInvalidateCache(param0) } #[inline] pub unsafe fn D3DKMTLock(param0: *mut D3DKMT_LOCK) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -394,12 +394,12 @@ pub unsafe fn D3DKMTMapGpuVirtualAddress(param0: *mut D3DDDI_MAPGPUVIRTUALADDRES #[inline] pub unsafe fn D3DKMTMarkDeviceAsError(param0: *const D3DKMT_MARKDEVICEASERROR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTMarkDeviceAsError(param0 : *const D3DKMT_MARKDEVICEASERROR) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTMarkDeviceAsError(core::mem::transmute(param0)) + D3DKMTMarkDeviceAsError(param0) } #[inline] pub unsafe fn D3DKMTOfferAllocations(param0: *const D3DKMT_OFFERALLOCATIONS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTOfferAllocations(param0 : *const D3DKMT_OFFERALLOCATIONS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTOfferAllocations(core::mem::transmute(param0)) + D3DKMTOfferAllocations(param0) } #[inline] pub unsafe fn D3DKMTOpenAdapterFromDeviceName(param0: *mut D3DKMT_OPENADAPTERFROMDEVICENAME) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -502,12 +502,12 @@ pub unsafe fn D3DKMTOutputDuplGetPointerShapeData(param0: *mut D3DKMT_OUTPUTDUPL #[inline] pub unsafe fn D3DKMTOutputDuplPresent(param0: *const D3DKMT_OUTPUTDUPLPRESENT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTOutputDuplPresent(param0 : *const D3DKMT_OUTPUTDUPLPRESENT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTOutputDuplPresent(core::mem::transmute(param0)) + D3DKMTOutputDuplPresent(param0) } #[inline] pub unsafe fn D3DKMTOutputDuplPresentToHwQueue(param0: *const D3DKMT_OUTPUTDUPLPRESENTTOHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("api-ms-win-dx-d3dkmt-l1-1-4.dll" "system" fn D3DKMTOutputDuplPresentToHwQueue(param0 : *const D3DKMT_OUTPUTDUPLPRESENTTOHWQUEUE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTOutputDuplPresentToHwQueue(core::mem::transmute(param0)) + D3DKMTOutputDuplPresentToHwQueue(param0) } #[inline] pub unsafe fn D3DKMTOutputDuplReleaseFrame(param0: *mut D3DKMT_OUTPUTDUPL_RELEASE_FRAME) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -517,7 +517,7 @@ pub unsafe fn D3DKMTOutputDuplReleaseFrame(param0: *mut D3DKMT_OUTPUTDUPL_RELEAS #[inline] pub unsafe fn D3DKMTPollDisplayChildren(param0: *const D3DKMT_POLLDISPLAYCHILDREN) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTPollDisplayChildren(param0 : *const D3DKMT_POLLDISPLAYCHILDREN) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTPollDisplayChildren(core::mem::transmute(param0)) + D3DKMTPollDisplayChildren(param0) } #[inline] pub unsafe fn D3DKMTPresent(param0: *mut D3DKMT_PRESENT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -527,22 +527,22 @@ pub unsafe fn D3DKMTPresent(param0: *mut D3DKMT_PRESENT) -> super::super::super: #[inline] pub unsafe fn D3DKMTPresentMultiPlaneOverlay(param0: *const D3DKMT_PRESENT_MULTIPLANE_OVERLAY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTPresentMultiPlaneOverlay(param0 : *const D3DKMT_PRESENT_MULTIPLANE_OVERLAY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTPresentMultiPlaneOverlay(core::mem::transmute(param0)) + D3DKMTPresentMultiPlaneOverlay(param0) } #[inline] pub unsafe fn D3DKMTPresentMultiPlaneOverlay2(param0: *const D3DKMT_PRESENT_MULTIPLANE_OVERLAY2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTPresentMultiPlaneOverlay2(param0 : *const D3DKMT_PRESENT_MULTIPLANE_OVERLAY2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTPresentMultiPlaneOverlay2(core::mem::transmute(param0)) + D3DKMTPresentMultiPlaneOverlay2(param0) } #[inline] pub unsafe fn D3DKMTPresentMultiPlaneOverlay3(param0: *const D3DKMT_PRESENT_MULTIPLANE_OVERLAY3) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTPresentMultiPlaneOverlay3(param0 : *const D3DKMT_PRESENT_MULTIPLANE_OVERLAY3) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTPresentMultiPlaneOverlay3(core::mem::transmute(param0)) + D3DKMTPresentMultiPlaneOverlay3(param0) } #[inline] pub unsafe fn D3DKMTPresentRedirected(param0: *const D3DKMT_PRESENT_REDIRECTED) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTPresentRedirected(param0 : *const D3DKMT_PRESENT_REDIRECTED) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTPresentRedirected(core::mem::transmute(param0)) + D3DKMTPresentRedirected(param0) } #[inline] pub unsafe fn D3DKMTQueryAdapterInfo(param0: *mut D3DKMT_QUERYADAPTERINFO) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -552,7 +552,7 @@ pub unsafe fn D3DKMTQueryAdapterInfo(param0: *mut D3DKMT_QUERYADAPTERINFO) -> su #[inline] pub unsafe fn D3DKMTQueryAllocationResidency(param0: *const D3DKMT_QUERYALLOCATIONRESIDENCY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTQueryAllocationResidency(param0 : *const D3DKMT_QUERYALLOCATIONRESIDENCY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTQueryAllocationResidency(core::mem::transmute(param0)) + D3DKMTQueryAllocationResidency(param0) } #[inline] pub unsafe fn D3DKMTQueryClockCalibration(param0: *mut D3DKMT_QUERYCLOCKCALIBRATION) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -597,7 +597,7 @@ pub unsafe fn D3DKMTQueryResourceInfoFromNtHandle(param0: *mut D3DKMT_QUERYRESOU #[inline] pub unsafe fn D3DKMTQueryStatistics(param0: *const D3DKMT_QUERYSTATISTICS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTQueryStatistics(param0 : *const D3DKMT_QUERYSTATISTICS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTQueryStatistics(core::mem::transmute(param0)) + D3DKMTQueryStatistics(param0) } #[inline] pub unsafe fn D3DKMTQueryVidPnExclusiveOwnership(param0: *mut D3DKMT_QUERYVIDPNEXCLUSIVEOWNERSHIP) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -627,7 +627,7 @@ pub unsafe fn D3DKMTRegisterTrimNotification(param0: *mut D3DKMT_REGISTERTRIMNOT #[inline] pub unsafe fn D3DKMTRegisterVailProcess(param0: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTRegisterVailProcess(param0 : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTRegisterVailProcess(core::mem::transmute(param0)) + D3DKMTRegisterVailProcess(param0) } #[inline] pub unsafe fn D3DKMTReleaseKeyedMutex(param0: *mut D3DKMT_RELEASEKEYEDMUTEX) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -642,7 +642,7 @@ pub unsafe fn D3DKMTReleaseKeyedMutex2(param0: *mut D3DKMT_RELEASEKEYEDMUTEX2) - #[inline] pub unsafe fn D3DKMTReleaseProcessVidPnSourceOwners(param0: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTReleaseProcessVidPnSourceOwners(param0 : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTReleaseProcessVidPnSourceOwners(core::mem::transmute(param0)) + D3DKMTReleaseProcessVidPnSourceOwners(param0) } #[inline] pub unsafe fn D3DKMTRender(param0: *mut D3DKMT_RENDER) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -657,17 +657,17 @@ pub unsafe fn D3DKMTReserveGpuVirtualAddress(param0: *mut D3DDDI_RESERVEGPUVIRTU #[inline] pub unsafe fn D3DKMTSetAllocationPriority(param0: *const D3DKMT_SETALLOCATIONPRIORITY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetAllocationPriority(param0 : *const D3DKMT_SETALLOCATIONPRIORITY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetAllocationPriority(core::mem::transmute(param0)) + D3DKMTSetAllocationPriority(param0) } #[inline] pub unsafe fn D3DKMTSetContextInProcessSchedulingPriority(param0: *const D3DKMT_SETCONTEXTINPROCESSSCHEDULINGPRIORITY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetContextInProcessSchedulingPriority(param0 : *const D3DKMT_SETCONTEXTINPROCESSSCHEDULINGPRIORITY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetContextInProcessSchedulingPriority(core::mem::transmute(param0)) + D3DKMTSetContextInProcessSchedulingPriority(param0) } #[inline] pub unsafe fn D3DKMTSetContextSchedulingPriority(param0: *const D3DKMT_SETCONTEXTSCHEDULINGPRIORITY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetContextSchedulingPriority(param0 : *const D3DKMT_SETCONTEXTSCHEDULINGPRIORITY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetContextSchedulingPriority(core::mem::transmute(param0)) + D3DKMTSetContextSchedulingPriority(param0) } #[inline] pub unsafe fn D3DKMTSetDisplayMode(param0: *mut D3DKMT_SETDISPLAYMODE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -677,123 +677,123 @@ pub unsafe fn D3DKMTSetDisplayMode(param0: *mut D3DKMT_SETDISPLAYMODE) -> super: #[inline] pub unsafe fn D3DKMTSetDisplayPrivateDriverFormat(param0: *const D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetDisplayPrivateDriverFormat(param0 : *const D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetDisplayPrivateDriverFormat(core::mem::transmute(param0)) + D3DKMTSetDisplayPrivateDriverFormat(param0) } #[inline] pub unsafe fn D3DKMTSetFSEBlock(param0: *const D3DKMT_SETFSEBLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetFSEBlock(param0 : *const D3DKMT_SETFSEBLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetFSEBlock(core::mem::transmute(param0)) + D3DKMTSetFSEBlock(param0) } #[inline] pub unsafe fn D3DKMTSetGammaRamp(param0: *const D3DKMT_SETGAMMARAMP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetGammaRamp(param0 : *const D3DKMT_SETGAMMARAMP) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetGammaRamp(core::mem::transmute(param0)) + D3DKMTSetGammaRamp(param0) } #[inline] pub unsafe fn D3DKMTSetHwProtectionTeardownRecovery(param0: *const D3DKMT_SETHWPROTECTIONTEARDOWNRECOVERY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetHwProtectionTeardownRecovery(param0 : *const D3DKMT_SETHWPROTECTIONTEARDOWNRECOVERY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetHwProtectionTeardownRecovery(core::mem::transmute(param0)) + D3DKMTSetHwProtectionTeardownRecovery(param0) } #[inline] pub unsafe fn D3DKMTSetMonitorColorSpaceTransform(param0: *const D3DKMT_SET_COLORSPACE_TRANSFORM) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetMonitorColorSpaceTransform(param0 : *const D3DKMT_SET_COLORSPACE_TRANSFORM) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetMonitorColorSpaceTransform(core::mem::transmute(param0)) + D3DKMTSetMonitorColorSpaceTransform(param0) } #[inline] pub unsafe fn D3DKMTSetProcessSchedulingPriorityClass(param0: super::super::super::Win32::Foundation::HANDLE, param1: D3DKMT_SCHEDULINGPRIORITYCLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetProcessSchedulingPriorityClass(param0 : super::super::super::Win32::Foundation:: HANDLE, param1 : D3DKMT_SCHEDULINGPRIORITYCLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetProcessSchedulingPriorityClass(core::mem::transmute(param0), core::mem::transmute(param1)) + D3DKMTSetProcessSchedulingPriorityClass(param0, param1) } #[inline] pub unsafe fn D3DKMTSetQueuedLimit(param0: *const D3DKMT_SETQUEUEDLIMIT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetQueuedLimit(param0 : *const D3DKMT_SETQUEUEDLIMIT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetQueuedLimit(core::mem::transmute(param0)) + D3DKMTSetQueuedLimit(param0) } #[inline] pub unsafe fn D3DKMTSetStablePowerState(param0: *const D3DKMT_SETSTABLEPOWERSTATE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetStablePowerState(param0 : *const D3DKMT_SETSTABLEPOWERSTATE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetStablePowerState(core::mem::transmute(param0)) + D3DKMTSetStablePowerState(param0) } #[inline] pub unsafe fn D3DKMTSetSyncRefreshCountWaitTarget(param0: *const D3DKMT_SETSYNCREFRESHCOUNTWAITTARGET) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetSyncRefreshCountWaitTarget(param0 : *const D3DKMT_SETSYNCREFRESHCOUNTWAITTARGET) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetSyncRefreshCountWaitTarget(core::mem::transmute(param0)) + D3DKMTSetSyncRefreshCountWaitTarget(param0) } #[inline] pub unsafe fn D3DKMTSetVidPnSourceHwProtection(param0: *const D3DKMT_SETVIDPNSOURCEHWPROTECTION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetVidPnSourceHwProtection(param0 : *const D3DKMT_SETVIDPNSOURCEHWPROTECTION) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetVidPnSourceHwProtection(core::mem::transmute(param0)) + D3DKMTSetVidPnSourceHwProtection(param0) } #[inline] pub unsafe fn D3DKMTSetVidPnSourceOwner(param0: *const D3DKMT_SETVIDPNSOURCEOWNER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetVidPnSourceOwner(param0 : *const D3DKMT_SETVIDPNSOURCEOWNER) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetVidPnSourceOwner(core::mem::transmute(param0)) + D3DKMTSetVidPnSourceOwner(param0) } #[inline] pub unsafe fn D3DKMTSetVidPnSourceOwner1(param0: *const D3DKMT_SETVIDPNSOURCEOWNER1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetVidPnSourceOwner1(param0 : *const D3DKMT_SETVIDPNSOURCEOWNER1) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetVidPnSourceOwner1(core::mem::transmute(param0)) + D3DKMTSetVidPnSourceOwner1(param0) } #[inline] pub unsafe fn D3DKMTSetVidPnSourceOwner2(param0: *const D3DKMT_SETVIDPNSOURCEOWNER2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSetVidPnSourceOwner2(param0 : *const D3DKMT_SETVIDPNSOURCEOWNER2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSetVidPnSourceOwner2(core::mem::transmute(param0)) + D3DKMTSetVidPnSourceOwner2(param0) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn D3DKMTShareObjects(hobjects: &[u32], pobjectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, dwdesiredaccess: u32, phsharednthandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTShareObjects(cobjects : u32, hobjects : *const u32, pobjectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, dwdesiredaccess : u32, phsharednthandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTShareObjects(hobjects.len().try_into().unwrap(), core::mem::transmute(hobjects.as_ptr()), core::mem::transmute(pobjectattributes), core::mem::transmute(dwdesiredaccess), core::mem::transmute(phsharednthandle)) + D3DKMTShareObjects(hobjects.len().try_into().unwrap(), core::mem::transmute(hobjects.as_ptr()), pobjectattributes, dwdesiredaccess, core::mem::transmute(phsharednthandle)) } #[inline] pub unsafe fn D3DKMTSharedPrimaryLockNotification(param0: *const D3DKMT_SHAREDPRIMARYLOCKNOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSharedPrimaryLockNotification(param0 : *const D3DKMT_SHAREDPRIMARYLOCKNOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSharedPrimaryLockNotification(core::mem::transmute(param0)) + D3DKMTSharedPrimaryLockNotification(param0) } #[inline] pub unsafe fn D3DKMTSharedPrimaryUnLockNotification(param0: *const D3DKMT_SHAREDPRIMARYUNLOCKNOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSharedPrimaryUnLockNotification(param0 : *const D3DKMT_SHAREDPRIMARYUNLOCKNOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSharedPrimaryUnLockNotification(core::mem::transmute(param0)) + D3DKMTSharedPrimaryUnLockNotification(param0) } #[inline] pub unsafe fn D3DKMTSignalSynchronizationObject(param0: *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSignalSynchronizationObject(param0 : *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSignalSynchronizationObject(core::mem::transmute(param0)) + D3DKMTSignalSynchronizationObject(param0) } #[inline] pub unsafe fn D3DKMTSignalSynchronizationObject2(param0: *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECT2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSignalSynchronizationObject2(param0 : *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECT2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSignalSynchronizationObject2(core::mem::transmute(param0)) + D3DKMTSignalSynchronizationObject2(param0) } #[inline] pub unsafe fn D3DKMTSignalSynchronizationObjectFromCpu(param0: *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECTFROMCPU) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSignalSynchronizationObjectFromCpu(param0 : *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECTFROMCPU) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSignalSynchronizationObjectFromCpu(core::mem::transmute(param0)) + D3DKMTSignalSynchronizationObjectFromCpu(param0) } #[inline] pub unsafe fn D3DKMTSignalSynchronizationObjectFromGpu(param0: *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECTFROMGPU) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSignalSynchronizationObjectFromGpu(param0 : *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECTFROMGPU) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSignalSynchronizationObjectFromGpu(core::mem::transmute(param0)) + D3DKMTSignalSynchronizationObjectFromGpu(param0) } #[inline] pub unsafe fn D3DKMTSignalSynchronizationObjectFromGpu2(param0: *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECTFROMGPU2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSignalSynchronizationObjectFromGpu2(param0 : *const D3DKMT_SIGNALSYNCHRONIZATIONOBJECTFROMGPU2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSignalSynchronizationObjectFromGpu2(core::mem::transmute(param0)) + D3DKMTSignalSynchronizationObjectFromGpu2(param0) } #[inline] pub unsafe fn D3DKMTSubmitCommand(param0: *const D3DKMT_SUBMITCOMMAND) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSubmitCommand(param0 : *const D3DKMT_SUBMITCOMMAND) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSubmitCommand(core::mem::transmute(param0)) + D3DKMTSubmitCommand(param0) } #[inline] pub unsafe fn D3DKMTSubmitCommandToHwQueue(param0: *const D3DKMT_SUBMITCOMMANDTOHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSubmitCommandToHwQueue(param0 : *const D3DKMT_SUBMITCOMMANDTOHWQUEUE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSubmitCommandToHwQueue(core::mem::transmute(param0)) + D3DKMTSubmitCommandToHwQueue(param0) } #[inline] pub unsafe fn D3DKMTSubmitPresentBltToHwQueue(param0: *const D3DKMT_SUBMITPRESENTBLTTOHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("api-ms-win-dx-d3dkmt-l1-1-4.dll" "system" fn D3DKMTSubmitPresentBltToHwQueue(param0 : *const D3DKMT_SUBMITPRESENTBLTTOHWQUEUE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSubmitPresentBltToHwQueue(core::mem::transmute(param0)) + D3DKMTSubmitPresentBltToHwQueue(param0) } #[inline] pub unsafe fn D3DKMTSubmitPresentToHwQueue(param0: *mut D3DKMT_SUBMITPRESENTTOHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -803,12 +803,12 @@ pub unsafe fn D3DKMTSubmitPresentToHwQueue(param0: *mut D3DKMT_SUBMITPRESENTTOHW #[inline] pub unsafe fn D3DKMTSubmitSignalSyncObjectsToHwQueue(param0: *const D3DKMT_SUBMITSIGNALSYNCOBJECTSTOHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSubmitSignalSyncObjectsToHwQueue(param0 : *const D3DKMT_SUBMITSIGNALSYNCOBJECTSTOHWQUEUE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSubmitSignalSyncObjectsToHwQueue(core::mem::transmute(param0)) + D3DKMTSubmitSignalSyncObjectsToHwQueue(param0) } #[inline] pub unsafe fn D3DKMTSubmitWaitForSyncObjectsToHwQueue(param0: *const D3DKMT_SUBMITWAITFORSYNCOBJECTSTOHWQUEUE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTSubmitWaitForSyncObjectsToHwQueue(param0 : *const D3DKMT_SUBMITWAITFORSYNCOBJECTSTOHWQUEUE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTSubmitWaitForSyncObjectsToHwQueue(core::mem::transmute(param0)) + D3DKMTSubmitWaitForSyncObjectsToHwQueue(param0) } #[inline] pub unsafe fn D3DKMTTrimProcessCommitment(param0: *mut D3DKMT_TRIMPROCESSCOMMITMENT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -818,12 +818,12 @@ pub unsafe fn D3DKMTTrimProcessCommitment(param0: *mut D3DKMT_TRIMPROCESSCOMMITM #[inline] pub unsafe fn D3DKMTUnlock(param0: *const D3DKMT_UNLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTUnlock(param0 : *const D3DKMT_UNLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTUnlock(core::mem::transmute(param0)) + D3DKMTUnlock(param0) } #[inline] pub unsafe fn D3DKMTUnlock2(param0: *const D3DKMT_UNLOCK2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTUnlock2(param0 : *const D3DKMT_UNLOCK2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTUnlock2(core::mem::transmute(param0)) + D3DKMTUnlock2(param0) } #[inline] pub unsafe fn D3DKMTUnregisterTrimNotification(param0: *mut D3DKMT_UNREGISTERTRIMNOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -838,47 +838,47 @@ pub unsafe fn D3DKMTUpdateAllocationProperty(param0: *mut D3DDDI_UPDATEALLOCPROP #[inline] pub unsafe fn D3DKMTUpdateGpuVirtualAddress(param0: *const D3DKMT_UPDATEGPUVIRTUALADDRESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTUpdateGpuVirtualAddress(param0 : *const D3DKMT_UPDATEGPUVIRTUALADDRESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTUpdateGpuVirtualAddress(core::mem::transmute(param0)) + D3DKMTUpdateGpuVirtualAddress(param0) } #[inline] pub unsafe fn D3DKMTUpdateOverlay(param0: *const D3DKMT_UPDATEOVERLAY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTUpdateOverlay(param0 : *const D3DKMT_UPDATEOVERLAY) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTUpdateOverlay(core::mem::transmute(param0)) + D3DKMTUpdateOverlay(param0) } #[inline] pub unsafe fn D3DKMTWaitForIdle(param0: *const D3DKMT_WAITFORIDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForIdle(param0 : *const D3DKMT_WAITFORIDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForIdle(core::mem::transmute(param0)) + D3DKMTWaitForIdle(param0) } #[inline] pub unsafe fn D3DKMTWaitForSynchronizationObject(param0: *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForSynchronizationObject(param0 : *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForSynchronizationObject(core::mem::transmute(param0)) + D3DKMTWaitForSynchronizationObject(param0) } #[inline] pub unsafe fn D3DKMTWaitForSynchronizationObject2(param0: *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECT2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForSynchronizationObject2(param0 : *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECT2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForSynchronizationObject2(core::mem::transmute(param0)) + D3DKMTWaitForSynchronizationObject2(param0) } #[inline] pub unsafe fn D3DKMTWaitForSynchronizationObjectFromCpu(param0: *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECTFROMCPU) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForSynchronizationObjectFromCpu(param0 : *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECTFROMCPU) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForSynchronizationObjectFromCpu(core::mem::transmute(param0)) + D3DKMTWaitForSynchronizationObjectFromCpu(param0) } #[inline] pub unsafe fn D3DKMTWaitForSynchronizationObjectFromGpu(param0: *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECTFROMGPU) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForSynchronizationObjectFromGpu(param0 : *const D3DKMT_WAITFORSYNCHRONIZATIONOBJECTFROMGPU) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForSynchronizationObjectFromGpu(core::mem::transmute(param0)) + D3DKMTWaitForSynchronizationObjectFromGpu(param0) } #[inline] pub unsafe fn D3DKMTWaitForVerticalBlankEvent(param0: *const D3DKMT_WAITFORVERTICALBLANKEVENT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForVerticalBlankEvent(param0 : *const D3DKMT_WAITFORVERTICALBLANKEVENT) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForVerticalBlankEvent(core::mem::transmute(param0)) + D3DKMTWaitForVerticalBlankEvent(param0) } #[inline] pub unsafe fn D3DKMTWaitForVerticalBlankEvent2(param0: *const D3DKMT_WAITFORVERTICALBLANKEVENT2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("gdi32.dll" "system" fn D3DKMTWaitForVerticalBlankEvent2(param0 : *const D3DKMT_WAITFORVERTICALBLANKEVENT2) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTWaitForVerticalBlankEvent2(core::mem::transmute(param0)) + D3DKMTWaitForVerticalBlankEvent2(param0) } #[repr(C)] #[cfg(feature = "Win32_Graphics_Direct3D9")] diff --git a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs index bd83c89d50..b69c616c4f 100644 --- a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs @@ -1,45 +1,45 @@ #[inline] pub unsafe fn NdisAcquireReadWriteLock(lock: *mut NDIS_RW_LOCK, fwrite: bool, lockstate: *mut LOCK_STATE) { windows_targets::link!("ndis.sys" "system" fn NdisAcquireReadWriteLock(lock : *mut NDIS_RW_LOCK, fwrite : bool, lockstate : *mut LOCK_STATE)); - NdisAcquireReadWriteLock(core::mem::transmute(lock), core::mem::transmute(fwrite), core::mem::transmute(lockstate)) + NdisAcquireReadWriteLock(core::mem::transmute(lock), fwrite, core::mem::transmute(lockstate)) } #[inline] pub unsafe fn NdisAllocateMemoryWithTag(virtualaddress: *mut *mut core::ffi::c_void, length: u32, tag: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisAllocateMemoryWithTag(virtualaddress : *mut *mut core::ffi::c_void, length : u32, tag : u32) -> i32); - NdisAllocateMemoryWithTag(core::mem::transmute(virtualaddress), core::mem::transmute(length), core::mem::transmute(tag)) + NdisAllocateMemoryWithTag(core::mem::transmute(virtualaddress), length, tag) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisCancelTimer(timer: *const NDIS_TIMER) -> bool { windows_targets::link!("ndis.sys" "system" fn NdisCancelTimer(timer : *const NDIS_TIMER, timercancelled : *mut bool)); let mut result__ = core::mem::zeroed(); - NdisCancelTimer(core::mem::transmute(timer), &mut result__); + NdisCancelTimer(timer, &mut result__); result__ } #[inline] pub unsafe fn NdisClAddParty(ndisvchandle: *const core::ffi::c_void, protocolpartycontext: *const core::ffi::c_void, callparameters: *mut CO_CALL_PARAMETERS, ndispartyhandle: *mut *mut core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClAddParty(ndisvchandle : *const core::ffi::c_void, protocolpartycontext : *const core::ffi::c_void, callparameters : *mut CO_CALL_PARAMETERS, ndispartyhandle : *mut *mut core::ffi::c_void) -> i32); - NdisClAddParty(core::mem::transmute(ndisvchandle), core::mem::transmute(protocolpartycontext), core::mem::transmute(callparameters), core::mem::transmute(ndispartyhandle)) + NdisClAddParty(ndisvchandle, protocolpartycontext, core::mem::transmute(callparameters), core::mem::transmute(ndispartyhandle)) } #[inline] pub unsafe fn NdisClCloseAddressFamily(ndisafhandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClCloseAddressFamily(ndisafhandle : *const core::ffi::c_void) -> i32); - NdisClCloseAddressFamily(core::mem::transmute(ndisafhandle)) + NdisClCloseAddressFamily(ndisafhandle) } #[inline] pub unsafe fn NdisClCloseCall(ndisvchandle: *const core::ffi::c_void, ndispartyhandle: Option<*const core::ffi::c_void>, buffer: Option<*const core::ffi::c_void>, size: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClCloseCall(ndisvchandle : *const core::ffi::c_void, ndispartyhandle : *const core::ffi::c_void, buffer : *const core::ffi::c_void, size : u32) -> i32); - NdisClCloseCall(core::mem::transmute(ndisvchandle), core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + NdisClCloseCall(ndisvchandle, core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), size) } #[inline] pub unsafe fn NdisClDeregisterSap(ndissaphandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClDeregisterSap(ndissaphandle : *const core::ffi::c_void) -> i32); - NdisClDeregisterSap(core::mem::transmute(ndissaphandle)) + NdisClDeregisterSap(ndissaphandle) } #[inline] pub unsafe fn NdisClDropParty(ndispartyhandle: *const core::ffi::c_void, buffer: Option<*const core::ffi::c_void>, size: Option) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClDropParty(ndispartyhandle : *const core::ffi::c_void, buffer : *const core::ffi::c_void, size : u32) -> i32); - NdisClDropParty(core::mem::transmute(ndispartyhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size.unwrap_or(core::mem::zeroed()))) + NdisClDropParty(ndispartyhandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NdisClGetProtocolVcContextFromTapiCallId(tapicallid: super::super::super::Win32::Foundation::UNICODE_STRING, protocolvccontext: *mut *mut core::ffi::c_void) -> i32 { @@ -49,144 +49,144 @@ pub unsafe fn NdisClGetProtocolVcContextFromTapiCallId(tapicallid: super::super: #[inline] pub unsafe fn NdisClIncomingCallComplete(status: i32, ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) { windows_targets::link!("ndis.sys" "system" fn NdisClIncomingCallComplete(status : i32, ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS)); - NdisClIncomingCallComplete(core::mem::transmute(status), core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisClIncomingCallComplete(status, ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisClMakeCall(ndisvchandle: *const core::ffi::c_void, callparameters: *mut CO_CALL_PARAMETERS, protocolpartycontext: Option<*const core::ffi::c_void>, ndispartyhandle: Option<*mut *mut core::ffi::c_void>) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClMakeCall(ndisvchandle : *const core::ffi::c_void, callparameters : *mut CO_CALL_PARAMETERS, protocolpartycontext : *const core::ffi::c_void, ndispartyhandle : *mut *mut core::ffi::c_void) -> i32); - NdisClMakeCall(core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters), core::mem::transmute(protocolpartycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed()))) + NdisClMakeCall(ndisvchandle, core::mem::transmute(callparameters), core::mem::transmute(protocolpartycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NdisClModifyCallQoS(ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClModifyCallQoS(ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS) -> i32); - NdisClModifyCallQoS(core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisClModifyCallQoS(ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisClRegisterSap(ndisafhandle: *const core::ffi::c_void, protocolsapcontext: *const core::ffi::c_void, sap: *const CO_SAP, ndissaphandle: *mut *mut core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisClRegisterSap(ndisafhandle : *const core::ffi::c_void, protocolsapcontext : *const core::ffi::c_void, sap : *const CO_SAP, ndissaphandle : *mut *mut core::ffi::c_void) -> i32); - NdisClRegisterSap(core::mem::transmute(ndisafhandle), core::mem::transmute(protocolsapcontext), core::mem::transmute(sap), core::mem::transmute(ndissaphandle)) + NdisClRegisterSap(ndisafhandle, protocolsapcontext, sap, core::mem::transmute(ndissaphandle)) } #[inline] pub unsafe fn NdisCloseConfiguration(configurationhandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCloseConfiguration(configurationhandle : *const core::ffi::c_void)); - NdisCloseConfiguration(core::mem::transmute(configurationhandle)) + NdisCloseConfiguration(configurationhandle) } #[inline] pub unsafe fn NdisCloseFile(filehandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCloseFile(filehandle : *const core::ffi::c_void)); - NdisCloseFile(core::mem::transmute(filehandle)) + NdisCloseFile(filehandle) } #[inline] pub unsafe fn NdisCmActivateVc(ndisvchandle: *const core::ffi::c_void, callparameters: *mut CO_CALL_PARAMETERS) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCmActivateVc(ndisvchandle : *const core::ffi::c_void, callparameters : *mut CO_CALL_PARAMETERS) -> i32); - NdisCmActivateVc(core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisCmActivateVc(ndisvchandle, core::mem::transmute(callparameters)) } #[inline] pub unsafe fn NdisCmAddPartyComplete(status: i32, ndispartyhandle: *const core::ffi::c_void, callmgrpartycontext: Option<*const core::ffi::c_void>, callparameters: *const CO_CALL_PARAMETERS) { windows_targets::link!("ndis.sys" "system" fn NdisCmAddPartyComplete(status : i32, ndispartyhandle : *const core::ffi::c_void, callmgrpartycontext : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS)); - NdisCmAddPartyComplete(core::mem::transmute(status), core::mem::transmute(ndispartyhandle), core::mem::transmute(callmgrpartycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(callparameters)) + NdisCmAddPartyComplete(status, ndispartyhandle, core::mem::transmute(callmgrpartycontext.unwrap_or(core::mem::zeroed())), callparameters) } #[inline] pub unsafe fn NdisCmCloseAddressFamilyComplete(status: i32, ndisafhandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCmCloseAddressFamilyComplete(status : i32, ndisafhandle : *const core::ffi::c_void)); - NdisCmCloseAddressFamilyComplete(core::mem::transmute(status), core::mem::transmute(ndisafhandle)) + NdisCmCloseAddressFamilyComplete(status, ndisafhandle) } #[inline] pub unsafe fn NdisCmCloseCallComplete(status: i32, ndisvchandle: *const core::ffi::c_void, ndispartyhandle: Option<*const core::ffi::c_void>) { windows_targets::link!("ndis.sys" "system" fn NdisCmCloseCallComplete(status : i32, ndisvchandle : *const core::ffi::c_void, ndispartyhandle : *const core::ffi::c_void)); - NdisCmCloseCallComplete(core::mem::transmute(status), core::mem::transmute(ndisvchandle), core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed()))) + NdisCmCloseCallComplete(status, ndisvchandle, core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NdisCmDeactivateVc(ndisvchandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCmDeactivateVc(ndisvchandle : *const core::ffi::c_void) -> i32); - NdisCmDeactivateVc(core::mem::transmute(ndisvchandle)) + NdisCmDeactivateVc(ndisvchandle) } #[inline] pub unsafe fn NdisCmDeregisterSapComplete(status: i32, ndissaphandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCmDeregisterSapComplete(status : i32, ndissaphandle : *const core::ffi::c_void)); - NdisCmDeregisterSapComplete(core::mem::transmute(status), core::mem::transmute(ndissaphandle)) + NdisCmDeregisterSapComplete(status, ndissaphandle) } #[inline] pub unsafe fn NdisCmDispatchCallConnected(ndisvchandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCmDispatchCallConnected(ndisvchandle : *const core::ffi::c_void)); - NdisCmDispatchCallConnected(core::mem::transmute(ndisvchandle)) + NdisCmDispatchCallConnected(ndisvchandle) } #[inline] pub unsafe fn NdisCmDispatchIncomingCall(ndissaphandle: *const core::ffi::c_void, ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCmDispatchIncomingCall(ndissaphandle : *const core::ffi::c_void, ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS) -> i32); - NdisCmDispatchIncomingCall(core::mem::transmute(ndissaphandle), core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisCmDispatchIncomingCall(ndissaphandle, ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisCmDispatchIncomingCallQoSChange(ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) { windows_targets::link!("ndis.sys" "system" fn NdisCmDispatchIncomingCallQoSChange(ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS)); - NdisCmDispatchIncomingCallQoSChange(core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisCmDispatchIncomingCallQoSChange(ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisCmDispatchIncomingCloseCall(closestatus: i32, ndisvchandle: *const core::ffi::c_void, buffer: Option<*const core::ffi::c_void>, size: u32) { windows_targets::link!("ndis.sys" "system" fn NdisCmDispatchIncomingCloseCall(closestatus : i32, ndisvchandle : *const core::ffi::c_void, buffer : *const core::ffi::c_void, size : u32)); - NdisCmDispatchIncomingCloseCall(core::mem::transmute(closestatus), core::mem::transmute(ndisvchandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + NdisCmDispatchIncomingCloseCall(closestatus, ndisvchandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), size) } #[inline] pub unsafe fn NdisCmDispatchIncomingDropParty(dropstatus: i32, ndispartyhandle: *const core::ffi::c_void, buffer: Option<*const core::ffi::c_void>, size: u32) { windows_targets::link!("ndis.sys" "system" fn NdisCmDispatchIncomingDropParty(dropstatus : i32, ndispartyhandle : *const core::ffi::c_void, buffer : *const core::ffi::c_void, size : u32)); - NdisCmDispatchIncomingDropParty(core::mem::transmute(dropstatus), core::mem::transmute(ndispartyhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + NdisCmDispatchIncomingDropParty(dropstatus, ndispartyhandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), size) } #[inline] pub unsafe fn NdisCmDropPartyComplete(status: i32, ndispartyhandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCmDropPartyComplete(status : i32, ndispartyhandle : *const core::ffi::c_void)); - NdisCmDropPartyComplete(core::mem::transmute(status), core::mem::transmute(ndispartyhandle)) + NdisCmDropPartyComplete(status, ndispartyhandle) } #[inline] pub unsafe fn NdisCmMakeCallComplete(status: i32, ndisvchandle: *const core::ffi::c_void, ndispartyhandle: Option<*const core::ffi::c_void>, callmgrpartycontext: Option<*const core::ffi::c_void>, callparameters: *const CO_CALL_PARAMETERS) { windows_targets::link!("ndis.sys" "system" fn NdisCmMakeCallComplete(status : i32, ndisvchandle : *const core::ffi::c_void, ndispartyhandle : *const core::ffi::c_void, callmgrpartycontext : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS)); - NdisCmMakeCallComplete(core::mem::transmute(status), core::mem::transmute(ndisvchandle), core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(callmgrpartycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(callparameters)) + NdisCmMakeCallComplete(status, ndisvchandle, core::mem::transmute(ndispartyhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(callmgrpartycontext.unwrap_or(core::mem::zeroed())), callparameters) } #[inline] pub unsafe fn NdisCmModifyCallQoSComplete(status: i32, ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) { windows_targets::link!("ndis.sys" "system" fn NdisCmModifyCallQoSComplete(status : i32, ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS)); - NdisCmModifyCallQoSComplete(core::mem::transmute(status), core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisCmModifyCallQoSComplete(status, ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisCmOpenAddressFamilyComplete(status: i32, ndisafhandle: *const core::ffi::c_void, callmgrafcontext: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCmOpenAddressFamilyComplete(status : i32, ndisafhandle : *const core::ffi::c_void, callmgrafcontext : *const core::ffi::c_void)); - NdisCmOpenAddressFamilyComplete(core::mem::transmute(status), core::mem::transmute(ndisafhandle), core::mem::transmute(callmgrafcontext)) + NdisCmOpenAddressFamilyComplete(status, ndisafhandle, callmgrafcontext) } #[inline] pub unsafe fn NdisCmRegisterSapComplete(status: i32, ndissaphandle: *const core::ffi::c_void, callmgrsapcontext: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisCmRegisterSapComplete(status : i32, ndissaphandle : *const core::ffi::c_void, callmgrsapcontext : *const core::ffi::c_void)); - NdisCmRegisterSapComplete(core::mem::transmute(status), core::mem::transmute(ndissaphandle), core::mem::transmute(callmgrsapcontext)) + NdisCmRegisterSapComplete(status, ndissaphandle, callmgrsapcontext) } #[inline] pub unsafe fn NdisCoAssignInstanceName(ndisvchandle: *const core::ffi::c_void, baseinstancename: *const super::super::super::Win32::Foundation::UNICODE_STRING, vcinstancename: Option<*mut super::super::super::Win32::Foundation::UNICODE_STRING>) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCoAssignInstanceName(ndisvchandle : *const core::ffi::c_void, baseinstancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, vcinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> i32); - NdisCoAssignInstanceName(core::mem::transmute(ndisvchandle), core::mem::transmute(baseinstancename), core::mem::transmute(vcinstancename.unwrap_or(core::mem::zeroed()))) + NdisCoAssignInstanceName(ndisvchandle, baseinstancename, core::mem::transmute(vcinstancename.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NdisCoCreateVc(ndisbindinghandle: *const core::ffi::c_void, ndisafhandle: Option<*const core::ffi::c_void>, protocolvccontext: *const core::ffi::c_void, ndisvchandle: *mut *mut core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCoCreateVc(ndisbindinghandle : *const core::ffi::c_void, ndisafhandle : *const core::ffi::c_void, protocolvccontext : *const core::ffi::c_void, ndisvchandle : *mut *mut core::ffi::c_void) -> i32); - NdisCoCreateVc(core::mem::transmute(ndisbindinghandle), core::mem::transmute(ndisafhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(protocolvccontext), core::mem::transmute(ndisvchandle)) + NdisCoCreateVc(ndisbindinghandle, core::mem::transmute(ndisafhandle.unwrap_or(core::mem::zeroed())), protocolvccontext, core::mem::transmute(ndisvchandle)) } #[inline] pub unsafe fn NdisCoDeleteVc(ndisvchandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCoDeleteVc(ndisvchandle : *const core::ffi::c_void) -> i32); - NdisCoDeleteVc(core::mem::transmute(ndisvchandle)) + NdisCoDeleteVc(ndisvchandle) } #[inline] pub unsafe fn NdisCoGetTapiCallId(ndisvchandle: *const core::ffi::c_void, tapicallid: *mut VAR_STRING) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisCoGetTapiCallId(ndisvchandle : *const core::ffi::c_void, tapicallid : *mut VAR_STRING) -> i32); - NdisCoGetTapiCallId(core::mem::transmute(ndisvchandle), core::mem::transmute(tapicallid)) + NdisCoGetTapiCallId(ndisvchandle, core::mem::transmute(tapicallid)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NdisCompleteDmaTransfer(status: *mut i32, ndisdmahandle: *mut core::ffi::c_void, buffer: *mut super::super::Foundation::MDL, offset: u32, length: u32, writetodevice: bool) { windows_targets::link!("ndis.sys" "system" fn NdisCompleteDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : bool)); - NdisCompleteDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(writetodevice)) + NdisCompleteDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), offset, length, writetodevice) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NdisCopyBuffer(status: *mut i32, buffer: *mut *mut super::super::Foundation::MDL, poolhandle: *const core::ffi::c_void, memorydescriptor: *const core::ffi::c_void, offset: u32, length: u32) { windows_targets::link!("ndis.sys" "system" fn NdisCopyBuffer(status : *mut i32, buffer : *mut *mut super::super::Foundation:: MDL, poolhandle : *const core::ffi::c_void, memorydescriptor : *const core::ffi::c_void, offset : u32, length : u32)); - NdisCopyBuffer(core::mem::transmute(status), core::mem::transmute(buffer), core::mem::transmute(poolhandle), core::mem::transmute(memorydescriptor), core::mem::transmute(offset), core::mem::transmute(length)) + NdisCopyBuffer(core::mem::transmute(status), core::mem::transmute(buffer), poolhandle, memorydescriptor, offset, length) } #[inline] pub unsafe fn NdisDeregisterTdiCallBack() { @@ -196,7 +196,7 @@ pub unsafe fn NdisDeregisterTdiCallBack() { #[inline] pub unsafe fn NdisFreeMemory(virtualaddress: *const core::ffi::c_void, length: u32, memoryflags: u32) { windows_targets::link!("ndis.sys" "system" fn NdisFreeMemory(virtualaddress : *const core::ffi::c_void, length : u32, memoryflags : u32)); - NdisFreeMemory(core::mem::transmute(virtualaddress), core::mem::transmute(length), core::mem::transmute(memoryflags)) + NdisFreeMemory(virtualaddress, length, memoryflags) } #[inline] pub unsafe fn NdisGeneratePartialCancelId() -> u8 { @@ -218,7 +218,7 @@ pub unsafe fn NdisGetCurrentProcessorCpuUsage() -> u32 { #[inline] pub unsafe fn NdisGetRoutineAddress(ndisroutinename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> *mut core::ffi::c_void { windows_targets::link!("ndis.sys" "system" fn NdisGetRoutineAddress(ndisroutinename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> *mut core::ffi::c_void); - NdisGetRoutineAddress(core::mem::transmute(ndisroutinename)) + NdisGetRoutineAddress(ndisroutinename) } #[inline] pub unsafe fn NdisGetSharedDataAlignment() -> u32 { @@ -233,27 +233,27 @@ pub unsafe fn NdisGetVersion() -> u32 { #[inline] pub unsafe fn NdisIMAssociateMiniport(driverhandle: *const core::ffi::c_void, protocolhandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisIMAssociateMiniport(driverhandle : *const core::ffi::c_void, protocolhandle : *const core::ffi::c_void)); - NdisIMAssociateMiniport(core::mem::transmute(driverhandle), core::mem::transmute(protocolhandle)) + NdisIMAssociateMiniport(driverhandle, protocolhandle) } #[inline] pub unsafe fn NdisIMCancelInitializeDeviceInstance(driverhandle: *const core::ffi::c_void, deviceinstance: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisIMCancelInitializeDeviceInstance(driverhandle : *const core::ffi::c_void, deviceinstance : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> i32); - NdisIMCancelInitializeDeviceInstance(core::mem::transmute(driverhandle), core::mem::transmute(deviceinstance)) + NdisIMCancelInitializeDeviceInstance(driverhandle, deviceinstance) } #[inline] pub unsafe fn NdisIMDeInitializeDeviceInstance(ndisminiporthandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisIMDeInitializeDeviceInstance(ndisminiporthandle : *const core::ffi::c_void) -> i32); - NdisIMDeInitializeDeviceInstance(core::mem::transmute(ndisminiporthandle)) + NdisIMDeInitializeDeviceInstance(ndisminiporthandle) } #[inline] pub unsafe fn NdisIMGetBindingContext(ndisbindinghandle: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ndis.sys" "system" fn NdisIMGetBindingContext(ndisbindinghandle : *const core::ffi::c_void) -> *mut core::ffi::c_void); - NdisIMGetBindingContext(core::mem::transmute(ndisbindinghandle)) + NdisIMGetBindingContext(ndisbindinghandle) } #[inline] pub unsafe fn NdisIMInitializeDeviceInstanceEx(driverhandle: *const core::ffi::c_void, driverinstance: *const super::super::super::Win32::Foundation::UNICODE_STRING, devicecontext: Option<*const core::ffi::c_void>) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisIMInitializeDeviceInstanceEx(driverhandle : *const core::ffi::c_void, driverinstance : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicecontext : *const core::ffi::c_void) -> i32); - NdisIMInitializeDeviceInstanceEx(core::mem::transmute(driverhandle), core::mem::transmute(driverinstance), core::mem::transmute(devicecontext.unwrap_or(core::mem::zeroed()))) + NdisIMInitializeDeviceInstanceEx(driverhandle, driverinstance, core::mem::transmute(devicecontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -269,256 +269,256 @@ pub unsafe fn NdisInitializeReadWriteLock(lock: *mut NDIS_RW_LOCK) { #[inline] pub unsafe fn NdisInitializeString(destination: *mut super::super::super::Win32::Foundation::UNICODE_STRING, source: *const u8) { windows_targets::link!("ndis.sys" "system" fn NdisInitializeString(destination : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, source : *const u8)); - NdisInitializeString(core::mem::transmute(destination), core::mem::transmute(source)) + NdisInitializeString(core::mem::transmute(destination), source) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisInitializeTimer(timer: *mut NDIS_TIMER, timerfunction: PNDIS_TIMER_FUNCTION, functioncontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ndis.sys" "system" fn NdisInitializeTimer(timer : *mut NDIS_TIMER, timerfunction : PNDIS_TIMER_FUNCTION, functioncontext : *const core::ffi::c_void)); - NdisInitializeTimer(core::mem::transmute(timer), core::mem::transmute(timerfunction), core::mem::transmute(functioncontext.unwrap_or(core::mem::zeroed()))) + NdisInitializeTimer(core::mem::transmute(timer), timerfunction, core::mem::transmute(functioncontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NdisMAllocateSharedMemory(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: bool, virtualaddress: *mut *mut core::ffi::c_void, physicaladdress: *mut i64) { windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, virtualaddress : *mut *mut core::ffi::c_void, physicaladdress : *mut i64)); - NdisMAllocateSharedMemory(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), core::mem::transmute(cached), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) + NdisMAllocateSharedMemory(miniportadapterhandle, length, cached, core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) } #[inline] pub unsafe fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: bool, context: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, context : *const core::ffi::c_void) -> i32); - NdisMAllocateSharedMemoryAsync(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), core::mem::transmute(cached), core::mem::transmute(context)) + NdisMAllocateSharedMemoryAsync(miniportadapterhandle, length, cached, context) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisMCancelTimer(timer: *const NDIS_MINIPORT_TIMER) -> bool { windows_targets::link!("ndis.sys" "system" fn NdisMCancelTimer(timer : *const NDIS_MINIPORT_TIMER, timercancelled : *mut bool)); let mut result__ = core::mem::zeroed(); - NdisMCancelTimer(core::mem::transmute(timer), &mut result__); + NdisMCancelTimer(timer, &mut result__); result__ } #[inline] pub unsafe fn NdisMCloseLog(loghandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMCloseLog(loghandle : *const core::ffi::c_void)); - NdisMCloseLog(core::mem::transmute(loghandle)) + NdisMCloseLog(loghandle) } #[inline] pub unsafe fn NdisMCmActivateVc(ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMCmActivateVc(ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS) -> i32); - NdisMCmActivateVc(core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisMCmActivateVc(ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisMCmCreateVc(miniportadapterhandle: *const core::ffi::c_void, ndisafhandle: *const core::ffi::c_void, miniportvccontext: *const core::ffi::c_void, ndisvchandle: *mut *mut core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMCmCreateVc(miniportadapterhandle : *const core::ffi::c_void, ndisafhandle : *const core::ffi::c_void, miniportvccontext : *const core::ffi::c_void, ndisvchandle : *mut *mut core::ffi::c_void) -> i32); - NdisMCmCreateVc(core::mem::transmute(miniportadapterhandle), core::mem::transmute(ndisafhandle), core::mem::transmute(miniportvccontext), core::mem::transmute(ndisvchandle)) + NdisMCmCreateVc(miniportadapterhandle, ndisafhandle, miniportvccontext, core::mem::transmute(ndisvchandle)) } #[inline] pub unsafe fn NdisMCmDeactivateVc(ndisvchandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMCmDeactivateVc(ndisvchandle : *const core::ffi::c_void) -> i32); - NdisMCmDeactivateVc(core::mem::transmute(ndisvchandle)) + NdisMCmDeactivateVc(ndisvchandle) } #[inline] pub unsafe fn NdisMCmDeleteVc(ndisvchandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMCmDeleteVc(ndisvchandle : *const core::ffi::c_void) -> i32); - NdisMCmDeleteVc(core::mem::transmute(ndisvchandle)) + NdisMCmDeleteVc(ndisvchandle) } #[inline] pub unsafe fn NdisMCmRegisterAddressFamily(miniportadapterhandle: *mut core::ffi::c_void, addressfamily: *mut CO_ADDRESS_FAMILY, cmcharacteristics: *mut NDIS_CALL_MANAGER_CHARACTERISTICS, sizeofcmcharacteristics: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMCmRegisterAddressFamily(miniportadapterhandle : *mut core::ffi::c_void, addressfamily : *mut CO_ADDRESS_FAMILY, cmcharacteristics : *mut NDIS_CALL_MANAGER_CHARACTERISTICS, sizeofcmcharacteristics : u32) -> i32); - NdisMCmRegisterAddressFamily(core::mem::transmute(miniportadapterhandle), core::mem::transmute(addressfamily), core::mem::transmute(cmcharacteristics), core::mem::transmute(sizeofcmcharacteristics)) + NdisMCmRegisterAddressFamily(core::mem::transmute(miniportadapterhandle), core::mem::transmute(addressfamily), core::mem::transmute(cmcharacteristics), sizeofcmcharacteristics) } #[inline] pub unsafe fn NdisMCoActivateVcComplete(status: i32, ndisvchandle: *const core::ffi::c_void, callparameters: *const CO_CALL_PARAMETERS) { windows_targets::link!("ndis.sys" "system" fn NdisMCoActivateVcComplete(status : i32, ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS)); - NdisMCoActivateVcComplete(core::mem::transmute(status), core::mem::transmute(ndisvchandle), core::mem::transmute(callparameters)) + NdisMCoActivateVcComplete(status, ndisvchandle, callparameters) } #[inline] pub unsafe fn NdisMCoDeactivateVcComplete(status: i32, ndisvchandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMCoDeactivateVcComplete(status : i32, ndisvchandle : *const core::ffi::c_void)); - NdisMCoDeactivateVcComplete(core::mem::transmute(status), core::mem::transmute(ndisvchandle)) + NdisMCoDeactivateVcComplete(status, ndisvchandle) } #[inline] pub unsafe fn NdisMCreateLog(miniportadapterhandle: *const core::ffi::c_void, size: u32, loghandle: *mut *mut core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMCreateLog(miniportadapterhandle : *const core::ffi::c_void, size : u32, loghandle : *mut *mut core::ffi::c_void) -> i32); - NdisMCreateLog(core::mem::transmute(miniportadapterhandle), core::mem::transmute(size), core::mem::transmute(loghandle)) + NdisMCreateLog(miniportadapterhandle, size, core::mem::transmute(loghandle)) } #[inline] pub unsafe fn NdisMDeregisterDmaChannel(miniportdmahandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMDeregisterDmaChannel(miniportdmahandle : *const core::ffi::c_void)); - NdisMDeregisterDmaChannel(core::mem::transmute(miniportdmahandle)) + NdisMDeregisterDmaChannel(miniportdmahandle) } #[inline] pub unsafe fn NdisMDeregisterIoPortRange(miniportadapterhandle: *const core::ffi::c_void, initialport: u32, numberofports: u32, portoffset: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMDeregisterIoPortRange(miniportadapterhandle : *const core::ffi::c_void, initialport : u32, numberofports : u32, portoffset : *const core::ffi::c_void)); - NdisMDeregisterIoPortRange(core::mem::transmute(miniportadapterhandle), core::mem::transmute(initialport), core::mem::transmute(numberofports), core::mem::transmute(portoffset)) + NdisMDeregisterIoPortRange(miniportadapterhandle, initialport, numberofports, portoffset) } #[inline] pub unsafe fn NdisMFlushLog(loghandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMFlushLog(loghandle : *const core::ffi::c_void)); - NdisMFlushLog(core::mem::transmute(loghandle)) + NdisMFlushLog(loghandle) } #[inline] pub unsafe fn NdisMFreeSharedMemory(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: bool, virtualaddress: *const core::ffi::c_void, physicaladdress: i64) { windows_targets::link!("ndis.sys" "system" fn NdisMFreeSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, virtualaddress : *const core::ffi::c_void, physicaladdress : i64)); - NdisMFreeSharedMemory(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), core::mem::transmute(cached), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) + NdisMFreeSharedMemory(miniportadapterhandle, length, cached, virtualaddress, physicaladdress) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn NdisMGetDeviceProperty(miniportadapterhandle: *const core::ffi::c_void, physicaldeviceobject: Option<*mut *mut super::super::Foundation::DEVICE_OBJECT>, functionaldeviceobject: Option<*mut *mut super::super::Foundation::DEVICE_OBJECT>, nextdeviceobject: Option<*mut *mut super::super::Foundation::DEVICE_OBJECT>, allocatedresources: Option<*mut *mut super::super::System::SystemServices::CM_RESOURCE_LIST>, allocatedresourcestranslated: Option<*mut *mut super::super::System::SystemServices::CM_RESOURCE_LIST>) { windows_targets::link!("ndis.sys" "system" fn NdisMGetDeviceProperty(miniportadapterhandle : *const core::ffi::c_void, physicaldeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT, functionaldeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT, nextdeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT, allocatedresources : *mut *mut super::super::System::SystemServices:: CM_RESOURCE_LIST, allocatedresourcestranslated : *mut *mut super::super::System::SystemServices:: CM_RESOURCE_LIST)); - NdisMGetDeviceProperty(core::mem::transmute(miniportadapterhandle), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(functionaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextdeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocatedresources.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocatedresourcestranslated.unwrap_or(core::mem::zeroed()))) + NdisMGetDeviceProperty(miniportadapterhandle, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(functionaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextdeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocatedresources.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocatedresourcestranslated.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NdisMGetDmaAlignment(miniportadapterhandle: *const core::ffi::c_void) -> u32 { windows_targets::link!("ndis.sys" "system" fn NdisMGetDmaAlignment(miniportadapterhandle : *const core::ffi::c_void) -> u32); - NdisMGetDmaAlignment(core::mem::transmute(miniportadapterhandle)) + NdisMGetDmaAlignment(miniportadapterhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisMInitializeTimer(timer: *const NDIS_MINIPORT_TIMER, miniportadapterhandle: *const core::ffi::c_void, timerfunction: PNDIS_TIMER_FUNCTION, functioncontext: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMInitializeTimer(timer : *const NDIS_MINIPORT_TIMER, miniportadapterhandle : *const core::ffi::c_void, timerfunction : PNDIS_TIMER_FUNCTION, functioncontext : *const core::ffi::c_void)); - NdisMInitializeTimer(core::mem::transmute(timer), core::mem::transmute(miniportadapterhandle), core::mem::transmute(timerfunction), core::mem::transmute(functioncontext)) + NdisMInitializeTimer(timer, miniportadapterhandle, timerfunction, functioncontext) } #[inline] pub unsafe fn NdisMMapIoSpace(virtualaddress: *mut *mut core::ffi::c_void, miniportadapterhandle: *const core::ffi::c_void, physicaladdress: i64, length: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMMapIoSpace(virtualaddress : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, physicaladdress : i64, length : u32) -> i32); - NdisMMapIoSpace(core::mem::transmute(virtualaddress), core::mem::transmute(miniportadapterhandle), core::mem::transmute(physicaladdress), core::mem::transmute(length)) + NdisMMapIoSpace(core::mem::transmute(virtualaddress), miniportadapterhandle, physicaladdress, length) } #[inline] pub unsafe fn NdisMQueryAdapterInstanceName(padapterinstancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, miniporthandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMQueryAdapterInstanceName(padapterinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, miniporthandle : *const core::ffi::c_void) -> i32); - NdisMQueryAdapterInstanceName(core::mem::transmute(padapterinstancename), core::mem::transmute(miniporthandle)) + NdisMQueryAdapterInstanceName(core::mem::transmute(padapterinstancename), miniporthandle) } #[inline] pub unsafe fn NdisMReadDmaCounter(miniportdmahandle: *const core::ffi::c_void) -> u32 { windows_targets::link!("ndis.sys" "system" fn NdisMReadDmaCounter(miniportdmahandle : *const core::ffi::c_void) -> u32); - NdisMReadDmaCounter(core::mem::transmute(miniportdmahandle)) + NdisMReadDmaCounter(miniportdmahandle) } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] pub unsafe fn NdisMRegisterDmaChannel(miniportdmahandle: *mut *mut core::ffi::c_void, miniportadapterhandle: *const core::ffi::c_void, dmachannel: u32, dma32bitaddresses: bool, dmadescription: *const NDIS_DMA_DESCRIPTION, maximumlength: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMRegisterDmaChannel(miniportdmahandle : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, dmachannel : u32, dma32bitaddresses : bool, dmadescription : *const NDIS_DMA_DESCRIPTION, maximumlength : u32) -> i32); - NdisMRegisterDmaChannel(core::mem::transmute(miniportdmahandle), core::mem::transmute(miniportadapterhandle), core::mem::transmute(dmachannel), core::mem::transmute(dma32bitaddresses), core::mem::transmute(dmadescription), core::mem::transmute(maximumlength)) + NdisMRegisterDmaChannel(core::mem::transmute(miniportdmahandle), miniportadapterhandle, dmachannel, dma32bitaddresses, dmadescription, maximumlength) } #[inline] pub unsafe fn NdisMRegisterIoPortRange(portoffset: *mut *mut core::ffi::c_void, miniportadapterhandle: *const core::ffi::c_void, initialport: u32, numberofports: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMRegisterIoPortRange(portoffset : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, initialport : u32, numberofports : u32) -> i32); - NdisMRegisterIoPortRange(core::mem::transmute(portoffset), core::mem::transmute(miniportadapterhandle), core::mem::transmute(initialport), core::mem::transmute(numberofports)) + NdisMRegisterIoPortRange(core::mem::transmute(portoffset), miniportadapterhandle, initialport, numberofports) } #[inline] pub unsafe fn NdisMRemoveMiniport(miniporthandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMRemoveMiniport(miniporthandle : *const core::ffi::c_void) -> i32); - NdisMRemoveMiniport(core::mem::transmute(miniporthandle)) + NdisMRemoveMiniport(miniporthandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisMSetPeriodicTimer(timer: *const NDIS_MINIPORT_TIMER, millisecondperiod: u32) { windows_targets::link!("ndis.sys" "system" fn NdisMSetPeriodicTimer(timer : *const NDIS_MINIPORT_TIMER, millisecondperiod : u32)); - NdisMSetPeriodicTimer(core::mem::transmute(timer), core::mem::transmute(millisecondperiod)) + NdisMSetPeriodicTimer(timer, millisecondperiod) } #[inline] pub unsafe fn NdisMSleep(microsecondstosleep: u32) { windows_targets::link!("ndis.sys" "system" fn NdisMSleep(microsecondstosleep : u32)); - NdisMSleep(core::mem::transmute(microsecondstosleep)) + NdisMSleep(microsecondstosleep) } #[inline] pub unsafe fn NdisMUnmapIoSpace(miniportadapterhandle: *const core::ffi::c_void, virtualaddress: *const core::ffi::c_void, length: u32) { windows_targets::link!("ndis.sys" "system" fn NdisMUnmapIoSpace(miniportadapterhandle : *const core::ffi::c_void, virtualaddress : *const core::ffi::c_void, length : u32)); - NdisMUnmapIoSpace(core::mem::transmute(miniportadapterhandle), core::mem::transmute(virtualaddress), core::mem::transmute(length)) + NdisMUnmapIoSpace(miniportadapterhandle, virtualaddress, length) } #[inline] pub unsafe fn NdisMWriteLogData(loghandle: *const core::ffi::c_void, logbuffer: *const core::ffi::c_void, logbuffersize: u32) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisMWriteLogData(loghandle : *const core::ffi::c_void, logbuffer : *const core::ffi::c_void, logbuffersize : u32) -> i32); - NdisMWriteLogData(core::mem::transmute(loghandle), core::mem::transmute(logbuffer), core::mem::transmute(logbuffersize)) + NdisMWriteLogData(loghandle, logbuffer, logbuffersize) } #[inline] pub unsafe fn NdisMapFile(status: *mut i32, mappedbuffer: *mut *mut core::ffi::c_void, filehandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisMapFile(status : *mut i32, mappedbuffer : *mut *mut core::ffi::c_void, filehandle : *const core::ffi::c_void)); - NdisMapFile(core::mem::transmute(status), core::mem::transmute(mappedbuffer), core::mem::transmute(filehandle)) + NdisMapFile(core::mem::transmute(status), core::mem::transmute(mappedbuffer), filehandle) } #[inline] pub unsafe fn NdisOpenConfigurationKeyByIndex(status: *mut i32, configurationhandle: *const core::ffi::c_void, index: u32, keyname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, keyhandle: *mut *mut core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisOpenConfigurationKeyByIndex(status : *mut i32, configurationhandle : *const core::ffi::c_void, index : u32, keyname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, keyhandle : *mut *mut core::ffi::c_void)); - NdisOpenConfigurationKeyByIndex(core::mem::transmute(status), core::mem::transmute(configurationhandle), core::mem::transmute(index), core::mem::transmute(keyname), core::mem::transmute(keyhandle)) + NdisOpenConfigurationKeyByIndex(core::mem::transmute(status), configurationhandle, index, core::mem::transmute(keyname), core::mem::transmute(keyhandle)) } #[inline] pub unsafe fn NdisOpenConfigurationKeyByName(status: *mut i32, configurationhandle: *const core::ffi::c_void, subkeyname: *const super::super::super::Win32::Foundation::UNICODE_STRING, subkeyhandle: *mut *mut core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisOpenConfigurationKeyByName(status : *mut i32, configurationhandle : *const core::ffi::c_void, subkeyname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, subkeyhandle : *mut *mut core::ffi::c_void)); - NdisOpenConfigurationKeyByName(core::mem::transmute(status), core::mem::transmute(configurationhandle), core::mem::transmute(subkeyname), core::mem::transmute(subkeyhandle)) + NdisOpenConfigurationKeyByName(core::mem::transmute(status), configurationhandle, subkeyname, core::mem::transmute(subkeyhandle)) } #[inline] pub unsafe fn NdisOpenFile(status: *mut i32, filehandle: *mut *mut core::ffi::c_void, filelength: *mut u32, filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, highestacceptableaddress: i64) { windows_targets::link!("ndis.sys" "system" fn NdisOpenFile(status : *mut i32, filehandle : *mut *mut core::ffi::c_void, filelength : *mut u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, highestacceptableaddress : i64)); - NdisOpenFile(core::mem::transmute(status), core::mem::transmute(filehandle), core::mem::transmute(filelength), core::mem::transmute(filename), core::mem::transmute(highestacceptableaddress)) + NdisOpenFile(core::mem::transmute(status), core::mem::transmute(filehandle), core::mem::transmute(filelength), filename, highestacceptableaddress) } #[inline] pub unsafe fn NdisQueryAdapterInstanceName(padapterinstancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, ndisbindinghandle: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisQueryAdapterInstanceName(padapterinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, ndisbindinghandle : *const core::ffi::c_void) -> i32); - NdisQueryAdapterInstanceName(core::mem::transmute(padapterinstancename), core::mem::transmute(ndisbindinghandle)) + NdisQueryAdapterInstanceName(core::mem::transmute(padapterinstancename), ndisbindinghandle) } #[inline] pub unsafe fn NdisQueryBindInstanceName(padapterinstancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, bindingcontext: *const core::ffi::c_void) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisQueryBindInstanceName(padapterinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, bindingcontext : *const core::ffi::c_void) -> i32); - NdisQueryBindInstanceName(core::mem::transmute(padapterinstancename), core::mem::transmute(bindingcontext)) + NdisQueryBindInstanceName(core::mem::transmute(padapterinstancename), bindingcontext) } #[inline] pub unsafe fn NdisReEnumerateProtocolBindings(ndisprotocolhandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisReEnumerateProtocolBindings(ndisprotocolhandle : *const core::ffi::c_void)); - NdisReEnumerateProtocolBindings(core::mem::transmute(ndisprotocolhandle)) + NdisReEnumerateProtocolBindings(ndisprotocolhandle) } #[inline] pub unsafe fn NdisReadConfiguration(status: *mut i32, parametervalue: *mut *mut NDIS_CONFIGURATION_PARAMETER, configurationhandle: *const core::ffi::c_void, keyword: *const super::super::super::Win32::Foundation::UNICODE_STRING, parametertype: NDIS_PARAMETER_TYPE) { windows_targets::link!("ndis.sys" "system" fn NdisReadConfiguration(status : *mut i32, parametervalue : *mut *mut NDIS_CONFIGURATION_PARAMETER, configurationhandle : *const core::ffi::c_void, keyword : *const super::super::super::Win32::Foundation:: UNICODE_STRING, parametertype : NDIS_PARAMETER_TYPE)); - NdisReadConfiguration(core::mem::transmute(status), core::mem::transmute(parametervalue), core::mem::transmute(configurationhandle), core::mem::transmute(keyword), core::mem::transmute(parametertype)) + NdisReadConfiguration(core::mem::transmute(status), core::mem::transmute(parametervalue), configurationhandle, keyword, parametertype) } #[inline] pub unsafe fn NdisReadNetworkAddress(status: *mut i32, networkaddress: *mut *mut core::ffi::c_void, networkaddresslength: *mut u32, configurationhandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisReadNetworkAddress(status : *mut i32, networkaddress : *mut *mut core::ffi::c_void, networkaddresslength : *mut u32, configurationhandle : *const core::ffi::c_void)); - NdisReadNetworkAddress(core::mem::transmute(status), core::mem::transmute(networkaddress), core::mem::transmute(networkaddresslength), core::mem::transmute(configurationhandle)) + NdisReadNetworkAddress(core::mem::transmute(status), core::mem::transmute(networkaddress), core::mem::transmute(networkaddresslength), configurationhandle) } #[inline] pub unsafe fn NdisRegisterTdiCallBack(registercallback: TDI_REGISTER_CALLBACK, pnphandler: TDI_PNP_HANDLER) { windows_targets::link!("ndis.sys" "system" fn NdisRegisterTdiCallBack(registercallback : TDI_REGISTER_CALLBACK, pnphandler : TDI_PNP_HANDLER)); - NdisRegisterTdiCallBack(core::mem::transmute(registercallback), core::mem::transmute(pnphandler)) + NdisRegisterTdiCallBack(registercallback, pnphandler) } #[inline] pub unsafe fn NdisReleaseReadWriteLock(lock: *mut NDIS_RW_LOCK, lockstate: *const LOCK_STATE) { windows_targets::link!("ndis.sys" "system" fn NdisReleaseReadWriteLock(lock : *mut NDIS_RW_LOCK, lockstate : *const LOCK_STATE)); - NdisReleaseReadWriteLock(core::mem::transmute(lock), core::mem::transmute(lockstate)) + NdisReleaseReadWriteLock(core::mem::transmute(lock), lockstate) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisResetEvent(event: *const NDIS_EVENT) { windows_targets::link!("ndis.sys" "system" fn NdisResetEvent(event : *const NDIS_EVENT)); - NdisResetEvent(core::mem::transmute(event)) + NdisResetEvent(event) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisSetEvent(event: *const NDIS_EVENT) { windows_targets::link!("ndis.sys" "system" fn NdisSetEvent(event : *const NDIS_EVENT)); - NdisSetEvent(core::mem::transmute(event)) + NdisSetEvent(event) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisSetPeriodicTimer(ndistimer: *const NDIS_TIMER, millisecondsperiod: u32) { windows_targets::link!("ndis.sys" "system" fn NdisSetPeriodicTimer(ndistimer : *const NDIS_TIMER, millisecondsperiod : u32)); - NdisSetPeriodicTimer(core::mem::transmute(ndistimer), core::mem::transmute(millisecondsperiod)) + NdisSetPeriodicTimer(ndistimer, millisecondsperiod) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisSetTimer(timer: *const NDIS_TIMER, millisecondstodelay: u32) { windows_targets::link!("ndis.sys" "system" fn NdisSetTimer(timer : *const NDIS_TIMER, millisecondstodelay : u32)); - NdisSetTimer(core::mem::transmute(timer), core::mem::transmute(millisecondstodelay)) + NdisSetTimer(timer, millisecondstodelay) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisSetTimerEx(ndistimer: *const NDIS_TIMER, millisecondstodelay: u32, functioncontext: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisSetTimerEx(ndistimer : *const NDIS_TIMER, millisecondstodelay : u32, functioncontext : *const core::ffi::c_void)); - NdisSetTimerEx(core::mem::transmute(ndistimer), core::mem::transmute(millisecondstodelay), core::mem::transmute(functioncontext)) + NdisSetTimerEx(ndistimer, millisecondstodelay, functioncontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NdisSetupDmaTransfer(status: *mut i32, ndisdmahandle: *mut core::ffi::c_void, buffer: *mut super::super::Foundation::MDL, offset: u32, length: u32, writetodevice: bool) { windows_targets::link!("ndis.sys" "system" fn NdisSetupDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : bool)); - NdisSetupDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(writetodevice)) + NdisSetupDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), offset, length, writetodevice) } #[inline] pub unsafe fn NdisSystemProcessorCount() -> i8 { @@ -528,33 +528,33 @@ pub unsafe fn NdisSystemProcessorCount() -> i8 { #[inline] pub unsafe fn NdisUnmapFile(filehandle: *const core::ffi::c_void) { windows_targets::link!("ndis.sys" "system" fn NdisUnmapFile(filehandle : *const core::ffi::c_void)); - NdisUnmapFile(core::mem::transmute(filehandle)) + NdisUnmapFile(filehandle) } #[inline] pub unsafe fn NdisUpdateSharedMemory(ndisadapterhandle: *mut core::ffi::c_void, length: u32, virtualaddress: *mut core::ffi::c_void, physicaladdress: i64) { windows_targets::link!("ndis.sys" "system" fn NdisUpdateSharedMemory(ndisadapterhandle : *mut core::ffi::c_void, length : u32, virtualaddress : *mut core::ffi::c_void, physicaladdress : i64)); - NdisUpdateSharedMemory(core::mem::transmute(ndisadapterhandle), core::mem::transmute(length), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) + NdisUpdateSharedMemory(core::mem::transmute(ndisadapterhandle), length, core::mem::transmute(virtualaddress), physicaladdress) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NdisWaitEvent(event: *const NDIS_EVENT, mstowait: u32) -> bool { windows_targets::link!("ndis.sys" "system" fn NdisWaitEvent(event : *const NDIS_EVENT, mstowait : u32) -> bool); - NdisWaitEvent(core::mem::transmute(event), core::mem::transmute(mstowait)) + NdisWaitEvent(event, mstowait) } #[inline] pub unsafe fn NdisWriteConfiguration(status: *mut i32, configurationhandle: *const core::ffi::c_void, keyword: *const super::super::super::Win32::Foundation::UNICODE_STRING, parametervalue: *const NDIS_CONFIGURATION_PARAMETER) { windows_targets::link!("ndis.sys" "system" fn NdisWriteConfiguration(status : *mut i32, configurationhandle : *const core::ffi::c_void, keyword : *const super::super::super::Win32::Foundation:: UNICODE_STRING, parametervalue : *const NDIS_CONFIGURATION_PARAMETER)); - NdisWriteConfiguration(core::mem::transmute(status), core::mem::transmute(configurationhandle), core::mem::transmute(keyword), core::mem::transmute(parametervalue)) + NdisWriteConfiguration(core::mem::transmute(status), configurationhandle, keyword, parametervalue) } #[inline] pub unsafe fn NdisWriteErrorLogEntry(ndisadapterhandle: *const core::ffi::c_void, errorcode: u32, numberoferrorvalues: u32) { windows_targets::link!("ndis.sys" "cdecl" fn NdisWriteErrorLogEntry(ndisadapterhandle : *const core::ffi::c_void, errorcode : u32, numberoferrorvalues : u32)); - NdisWriteErrorLogEntry(core::mem::transmute(ndisadapterhandle), core::mem::transmute(errorcode), core::mem::transmute(numberoferrorvalues)) + NdisWriteErrorLogEntry(ndisadapterhandle, errorcode, numberoferrorvalues) } #[inline] pub unsafe fn NdisWriteEventLogEntry(loghandle: *const core::ffi::c_void, eventcode: i32, uniqueeventvalue: u32, numstrings: u16, stringslist: Option<*const core::ffi::c_void>, datasize: u32, data: Option<*const core::ffi::c_void>) -> i32 { windows_targets::link!("ndis.sys" "system" fn NdisWriteEventLogEntry(loghandle : *const core::ffi::c_void, eventcode : i32, uniqueeventvalue : u32, numstrings : u16, stringslist : *const core::ffi::c_void, datasize : u32, data : *const core::ffi::c_void) -> i32); - NdisWriteEventLogEntry(core::mem::transmute(loghandle), core::mem::transmute(eventcode), core::mem::transmute(uniqueeventvalue), core::mem::transmute(numstrings), core::mem::transmute(stringslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(datasize), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) + NdisWriteEventLogEntry(loghandle, eventcode, uniqueeventvalue, numstrings, core::mem::transmute(stringslist.unwrap_or(core::mem::zeroed())), datasize, core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) } pub const AUTHENTICATE: OFFLOAD_OPERATION_E = OFFLOAD_OPERATION_E(1i32); pub const BINARY_COMPATIBLE: u32 = 0u32; diff --git a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/WindowsFilteringPlatform/mod.rs b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/WindowsFilteringPlatform/mod.rs index 71fe5e8c67..57d508bab3 100644 --- a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -8,7 +8,7 @@ pub unsafe fn FwpmBfeStateGet0() -> super::super::super::Win32::NetworkManagemen #[inline] pub unsafe fn FwpmBfeStateSubscribeChanges0(deviceobject: *mut core::ffi::c_void, callback: FWPM_SERVICE_STATE_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpkclnt.sys" "system" fn FwpmBfeStateSubscribeChanges0(deviceobject : *mut core::ffi::c_void, callback : FWPM_SERVICE_STATE_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmBfeStateSubscribeChanges0(core::mem::transmute(deviceobject), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) + FwpmBfeStateSubscribeChanges0(core::mem::transmute(deviceobject), callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmBfeStateUnsubscribeChanges0(changehandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -19,93 +19,93 @@ pub unsafe fn FwpmBfeStateUnsubscribeChanges0(changehandle: super::super::super: #[inline] pub unsafe fn FwpmCalloutAdd0(enginehandle: super::super::super::Win32::Foundation::HANDLE, callout: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0, sd: Option, id: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, callout : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutAdd0(core::mem::transmute(enginehandle), core::mem::transmute(callout), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmCalloutAdd0(enginehandle, callout, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmCalloutCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmCalloutDeleteById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + FwpmCalloutDeleteById0(enginehandle, id) } #[inline] pub unsafe fn FwpmCalloutDeleteByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmCalloutDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmCalloutDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmCalloutDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmCalloutEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u32, callout: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u32, callout : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(callout)) + FwpmCalloutGetById0(enginehandle, id, core::mem::transmute(callout)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutGetByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, callout: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, callout : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(callout)) + FwpmCalloutGetByKey0(enginehandle, key, core::mem::transmute(callout)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutGetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmCalloutGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutSetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmCalloutSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmConnectionCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CONNECTION_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CONNECTION_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmConnectionCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmConnectionCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmConnectionDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmConnectionDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmConnectionDestroyEnumHandle0(enginehandle, enumhandle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmConnectionEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CONNECTION0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CONNECTION0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmConnectionEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmConnectionEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmConnectionGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, connection: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CONNECTION0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, connection : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CONNECTION0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmConnectionGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(connection)) + FwpmConnectionGetById0(enginehandle, id, core::mem::transmute(connection)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmConnectionGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmConnectionGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmConnectionSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmConnectionSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmEngineClose0(enginehandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -116,13 +116,13 @@ pub unsafe fn FwpmEngineClose0(enginehandle: super::super::super::Win32::Foundat #[inline] pub unsafe fn FwpmEngineGetOption0(enginehandle: super::super::super::Win32::Foundation::HANDLE, option: super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_ENGINE_OPTION, value: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWP_VALUE0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetOption0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, option : super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_ENGINE_OPTION, value : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWP_VALUE0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmEngineGetOption0(core::mem::transmute(enginehandle), core::mem::transmute(option), core::mem::transmute(value)) + FwpmEngineGetOption0(enginehandle, option, core::mem::transmute(value)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmEngineGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmEngineGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security", feature = "Win32_System_Rpc"))] #[inline] @@ -131,76 +131,76 @@ where P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineOpen0(servername : windows_core::PCWSTR, authnservice : u32, authidentity : *const super::super::super::Win32::System::Rpc:: SEC_WINNT_AUTH_IDENTITY_W, session : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SESSION0, enginehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmEngineOpen0(servername.param().abi(), core::mem::transmute(authnservice), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(enginehandle)) + FwpmEngineOpen0(servername.param().abi(), authnservice, core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(enginehandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmEngineSetOption0(enginehandle: super::super::super::Win32::Foundation::HANDLE, option: super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_ENGINE_OPTION, newvalue: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWP_VALUE0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineSetOption0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, option : super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_ENGINE_OPTION, newvalue : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWP_VALUE0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmEngineSetOption0(core::mem::transmute(enginehandle), core::mem::transmute(option), core::mem::transmute(newvalue)) + FwpmEngineSetOption0(enginehandle, option, newvalue) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmEngineSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmEngineSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterAdd0(enginehandle: super::super::super::Win32::Foundation::HANDLE, filter: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0, sd: Option, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, filter : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterAdd0(core::mem::transmute(enginehandle), core::mem::transmute(filter), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmFilterAdd0(enginehandle, filter, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmFilterCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmFilterDeleteById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + FwpmFilterDeleteById0(enginehandle, id) } #[inline] pub unsafe fn FwpmFilterDeleteByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmFilterDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmFilterDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmFilterDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmFilterEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, filter: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, filter : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(filter)) + FwpmFilterGetById0(enginehandle, id, core::mem::transmute(filter)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterGetByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, filter: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, filter : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(filter)) + FwpmFilterGetByKey0(enginehandle, key, core::mem::transmute(filter)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmFilterGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmFilterSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { @@ -211,658 +211,658 @@ pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn FwpmIPsecTunnelAdd0(enginehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0>, tunnelpolicy: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0, filterconditions: &[super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER_CONDITION0], sd: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmIPsecTunnelAdd0(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd0(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmIPsecTunnelAdd1(enginehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1>, tunnelpolicy: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1, filterconditions: &[super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, keymodkey : *const windows_core::GUID, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmIPsecTunnelAdd1(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd1(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmIPsecTunnelAdd2(enginehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2>, tunnelpolicy: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2, filterconditions: &[super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, keymodkey : *const windows_core::GUID, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmIPsecTunnelAdd2(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd2(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmIPsecTunnelAdd3(enginehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3>, tunnelpolicy: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3, filterconditions: &[super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, keymodkey : *const windows_core::GUID, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmIPsecTunnelAdd3(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd3(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmIPsecTunnelDeleteByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmIPsecTunnelDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmIPsecTunnelDeleteByKey0(enginehandle, key) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmLayerCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmLayerDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmLayerDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmLayerEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u16, layer: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u16, layer : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(layer)) + FwpmLayerGetById0(enginehandle, id, core::mem::transmute(layer)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerGetByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, layer: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, layer : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(layer)) + FwpmLayerGetByKey0(enginehandle, key, core::mem::transmute(layer)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerGetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmLayerGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerSetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmLayerSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmLayerSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmNetEventCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmNetEventDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmNetEventDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum1(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum2(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT2, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT2, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventEnum2(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum2(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum3(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT3, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT3, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventEnum3(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum3(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum4(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT4, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum4(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT4, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventEnum4(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum4(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum5(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT5, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum5(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT5, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventEnum5(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum5(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventsGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventsGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmNetEventsGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventsSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmNetEventsSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmNetEventsSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderAdd0(enginehandle: super::super::super::Win32::Foundation::HANDLE, provider: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER0, sd: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, provider : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderAdd0(core::mem::transmute(enginehandle), core::mem::transmute(provider), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmProviderAdd0(enginehandle, provider, core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd0(enginehandle: super::super::super::Win32::Foundation::HANDLE, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0, sd: Option, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextAdd0(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd0(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd1(enginehandle: super::super::super::Win32::Foundation::HANDLE, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1, sd: Option, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextAdd1(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd1(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd2(enginehandle: super::super::super::Win32::Foundation::HANDLE, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2, sd: Option, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextAdd2(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd2(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd3(enginehandle: super::super::super::Win32::Foundation::HANDLE, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3, sd: Option, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextAdd3(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd3(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderContextCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmProviderContextCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmProviderContextDeleteById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + FwpmProviderContextDeleteById0(enginehandle, id) } #[inline] pub unsafe fn FwpmProviderContextDeleteByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmProviderContextDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmProviderContextDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmProviderContextDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum1(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum2(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextEnum2(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum2(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum3(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextEnum3(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum3(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById0(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById1(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetById1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById1(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById2(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetById2(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById2(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById3(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetById3(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById3(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey0(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey1(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetByKey1(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey1(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey2(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetByKey2(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey2(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey3(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetByKey3(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey3(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmProviderContextGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmProviderCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmProviderDeleteByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmProviderDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmProviderDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmProviderDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderGetByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, provider: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, provider : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(provider)) + FwpmProviderGetByKey0(enginehandle, key, core::mem::transmute(provider)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderGetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmProviderGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderSetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmProviderSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSessionCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SESSION_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SESSION_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSessionCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmSessionCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmSessionDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSessionDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmSessionDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmSessionEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SESSION0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SESSION0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSessionEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmSessionEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmSubLayerAdd0(enginehandle: super::super::super::Win32::Foundation::HANDLE, sublayer: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER0, sd: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, sublayer : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerAdd0(core::mem::transmute(enginehandle), core::mem::transmute(sublayer), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmSubLayerAdd0(enginehandle, sublayer, core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSubLayerCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmSubLayerCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmSubLayerDeleteByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmSubLayerDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmSubLayerDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmSubLayerDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSubLayerEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmSubLayerEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSubLayerGetByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: *const windows_core::GUID, sublayer: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, sublayer : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER0) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(sublayer)) + FwpmSubLayerGetByKey0(enginehandle, key, core::mem::transmute(sublayer)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmSubLayerGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle: super::super::super::Win32::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmSubLayerSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmSubLayerSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmTransactionAbort0(enginehandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionAbort0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmTransactionAbort0(core::mem::transmute(enginehandle)) + FwpmTransactionAbort0(enginehandle) } #[inline] pub unsafe fn FwpmTransactionBegin0(enginehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionBegin0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmTransactionBegin0(core::mem::transmute(enginehandle), core::mem::transmute(flags)) + FwpmTransactionBegin0(enginehandle, flags) } #[inline] pub unsafe fn FwpmTransactionCommit0(enginehandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionCommit0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmTransactionCommit0(core::mem::transmute(enginehandle)) + FwpmTransactionCommit0(enginehandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmvSwitchEventsGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmvSwitchEventsGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmvSwitchEventsSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmvSwitchEventsSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecDospGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IPsecDospGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecDospGetStatistics0(enginehandle: super::super::super::Win32::Foundation::HANDLE, idpstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_DOSP_STATISTICS0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetStatistics0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, idpstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_DOSP_STATISTICS0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecDospGetStatistics0(core::mem::transmute(enginehandle), core::mem::transmute(idpstatistics)) + IPsecDospGetStatistics0(enginehandle, core::mem::transmute(idpstatistics)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecDospSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IPsecDospSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecDospStateCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_DOSP_STATE_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_DOSP_STATE_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecDospStateCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IPsecDospStateCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn IPsecDospStateDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecDospStateDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IPsecDospStateDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecDospStateEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_DOSP_STATE0, numentries: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_DOSP_STATE0, numentries : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecDospStateEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentries)) + IPsecDospStateEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecGetStatistics0(enginehandle: super::super::super::Win32::Foundation::HANDLE, ipsecstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_STATISTICS0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ipsecstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_STATISTICS0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecGetStatistics0(core::mem::transmute(enginehandle), core::mem::transmute(ipsecstatistics)) + IPsecGetStatistics0(enginehandle, core::mem::transmute(ipsecstatistics)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecGetStatistics1(enginehandle: super::super::super::Win32::Foundation::HANDLE, ipsecstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_STATISTICS1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ipsecstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_STATISTICS1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecGetStatistics1(core::mem::transmute(enginehandle), core::mem::transmute(ipsecstatistics)) + IPsecGetStatistics1(enginehandle, core::mem::transmute(ipsecstatistics)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddInbound0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, inboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, inboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextAddInbound0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(inboundbundle)) + IPsecSaContextAddInbound0(enginehandle, id, inboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddInbound1(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, inboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, inboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextAddInbound1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(inboundbundle)) + IPsecSaContextAddInbound1(enginehandle, id, inboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddOutbound0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, outboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, outboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextAddOutbound0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(outboundbundle)) + IPsecSaContextAddOutbound0(enginehandle, id, outboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddOutbound1(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, outboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, outboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextAddOutbound1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(outboundbundle)) + IPsecSaContextAddOutbound1(enginehandle, id, outboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextCreate0(enginehandle: super::super::super::Win32::Foundation::HANDLE, outboundtraffic: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_TRAFFIC0, inboundfilterid: Option<*mut u64>, id: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreate0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, outboundtraffic : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_TRAFFIC0, inboundfilterid : *mut u64, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextCreate0(core::mem::transmute(enginehandle), core::mem::transmute(outboundtraffic), core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) + IPsecSaContextCreate0(enginehandle, outboundtraffic, core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextCreate1(enginehandle: super::super::super::Win32::Foundation::HANDLE, outboundtraffic: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_TRAFFIC1, virtualiftunnelinfo: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_VIRTUAL_IF_TUNNEL_INFO0>, inboundfilterid: Option<*mut u64>, id: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreate1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, outboundtraffic : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_TRAFFIC1, virtualiftunnelinfo : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_VIRTUAL_IF_TUNNEL_INFO0, inboundfilterid : *mut u64, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextCreate1(core::mem::transmute(enginehandle), core::mem::transmute(outboundtraffic), core::mem::transmute(virtualiftunnelinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) + IPsecSaContextCreate1(enginehandle, outboundtraffic, core::mem::transmute(virtualiftunnelinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IPsecSaContextCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn IPsecSaContextDeleteById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + IPsecSaContextDeleteById0(enginehandle, id) } #[inline] pub unsafe fn IPsecSaContextDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IPsecSaContextDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaContextEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextEnum1(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaContextEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn IPsecSaContextExpire0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextExpire0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextExpire0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + IPsecSaContextExpire0(enginehandle, id) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, sacontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, sacontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(sacontext)) + IPsecSaContextGetById0(enginehandle, id, core::mem::transmute(sacontext)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextGetById1(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, sacontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, sacontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextGetById1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(sacontext)) + IPsecSaContextGetById1(enginehandle, id, core::mem::transmute(sacontext)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextGetSpi0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, getspi: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_GETSPI0, inboundspi: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, getspi : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_GETSPI0, inboundspi : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextGetSpi0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(getspi), core::mem::transmute(inboundspi)) + IPsecSaContextGetSpi0(enginehandle, id, getspi, core::mem::transmute(inboundspi)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextGetSpi1(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, getspi: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_GETSPI1, inboundspi: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, getspi : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_GETSPI1, inboundspi : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextGetSpi1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(getspi), core::mem::transmute(inboundspi)) + IPsecSaContextGetSpi1(enginehandle, id, getspi, core::mem::transmute(inboundspi)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextSetSpi0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, getspi: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_GETSPI1, inboundspi: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextSetSpi0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, getspi : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_GETSPI1, inboundspi : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextSetSpi0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(getspi), core::mem::transmute(inboundspi)) + IPsecSaContextSetSpi0(enginehandle, id, getspi, inboundspi) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextUpdate0(enginehandle: super::super::super::Win32::Foundation::HANDLE, flags: u64, newvalues: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextUpdate0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u64, newvalues : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextUpdate0(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(newvalues)) + IPsecSaContextUpdate0(enginehandle, flags, newvalues) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IPsecSaCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDbGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaDbGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IPsecSaDbGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDbSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaDbSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IPsecSaDbSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IPsecSaDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IPsecSaDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_DETAILS0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_DETAILS0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaEnum1(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_DETAILS1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_DETAILS1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextGetStatistics0(enginehandle: super::super::super::Win32::Foundation::HANDLE, ikeextstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_STATISTICS0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ikeextstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_STATISTICS0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextGetStatistics0(core::mem::transmute(enginehandle), core::mem::transmute(ikeextstatistics)) + IkeextGetStatistics0(enginehandle, core::mem::transmute(ikeextstatistics)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextGetStatistics1(enginehandle: super::super::super::Win32::Foundation::HANDLE, ikeextstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_STATISTICS1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ikeextstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_STATISTICS1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextGetStatistics1(core::mem::transmute(enginehandle), core::mem::transmute(ikeextstatistics)) + IkeextGetStatistics1(enginehandle, core::mem::transmute(ikeextstatistics)) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IkeextSaCreateEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumtemplate: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_ENUM_TEMPLATE0>, enumhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IkeextSaCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbGetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::super::Win32::Security::PSID, sidgroup: *mut super::super::super::Win32::Security::PSID, dacl: *mut *mut super::super::super::Win32::Security::ACL, sacl: *mut *mut super::super::super::Win32::Security::ACL, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDbGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaDbGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IkeextSaDbGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbSetSecurityInfo0(enginehandle: super::super::super::Win32::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::super::Win32::Security::SID>, sidgroup: Option<*const super::super::super::Win32::Security::SID>, dacl: Option<*const super::super::super::Win32::Security::ACL>, sacl: Option<*const super::super::super::Win32::Security::ACL>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDbSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaDbSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IkeextSaDbSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IkeextSaDeleteById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + IkeextSaDeleteById0(enginehandle, id) } #[inline] pub unsafe fn IkeextSaDestroyEnumHandle0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IkeextSaDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaEnum0(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IkeextSaEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaEnum1(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IkeextSaEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaEnum2(enginehandle: super::super::super::Win32::Foundation::HANDLE, enumhandle: super::super::super::Win32::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS2, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaEnum2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS2, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaEnum2(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IkeextSaEnum2(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaGetById0(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, sa: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS0) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, sa : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS0) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(sa)) + IkeextSaGetById0(enginehandle, id, core::mem::transmute(sa)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaGetById1(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, salookupcontext: Option<*const windows_core::GUID>, sa: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS1) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, salookupcontext : *const windows_core::GUID, sa : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS1) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaGetById1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) + IkeextSaGetById1(enginehandle, id, core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaGetById2(enginehandle: super::super::super::Win32::Foundation::HANDLE, id: u64, salookupcontext: Option<*const windows_core::GUID>, sa: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS2) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, salookupcontext : *const windows_core::GUID, sa : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS2) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaGetById2(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) + IkeextSaGetById2(enginehandle, id, core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] pub type FWPM_SERVICE_STATE_CHANGE_CALLBACK0 = Option; diff --git a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs index 735defd5d3..55453cdfd2 100644 --- a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn FltAcknowledgeEcp(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) { windows_targets::link!("fltmgr.sys" "system" fn FltAcknowledgeEcp(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void)); - FltAcknowledgeEcp(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) + FltAcknowledgeEcp(filter, ecpcontext) } #[inline] pub unsafe fn FltAcquirePushLockExclusive(pushlock: *mut usize) { @@ -11,7 +11,7 @@ pub unsafe fn FltAcquirePushLockExclusive(pushlock: *mut usize) { #[inline] pub unsafe fn FltAcquirePushLockExclusiveEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("fltmgr.sys" "system" fn FltAcquirePushLockExclusiveEx(pushlock : *mut usize, flags : u32)); - FltAcquirePushLockExclusiveEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + FltAcquirePushLockExclusiveEx(core::mem::transmute(pushlock), flags) } #[inline] pub unsafe fn FltAcquirePushLockShared(pushlock: *mut usize) { @@ -21,7 +21,7 @@ pub unsafe fn FltAcquirePushLockShared(pushlock: *mut usize) { #[inline] pub unsafe fn FltAcquirePushLockSharedEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("fltmgr.sys" "system" fn FltAcquirePushLockSharedEx(pushlock : *mut usize, flags : u32)); - FltAcquirePushLockSharedEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + FltAcquirePushLockSharedEx(core::mem::transmute(pushlock), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -39,30 +39,30 @@ pub unsafe fn FltAcquireResourceShared(resource: *mut super::super::super::Found #[inline] pub unsafe fn FltAddOpenReparseEntry(filter: PFLT_FILTER, data: *const FLT_CALLBACK_DATA, openreparseentry: *const super::OPEN_REPARSE_LIST_ENTRY) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAddOpenReparseEntry(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, openreparseentry : *const super:: OPEN_REPARSE_LIST_ENTRY) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAddOpenReparseEntry(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(openreparseentry)) + FltAddOpenReparseEntry(filter, data, openreparseentry) } #[inline] pub unsafe fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance: PFLT_INSTANCE, targetinstance: PFLT_INSTANCE, sourcedevicestacksizemodified: Option<*mut bool>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, sourcedevicestacksizemodified : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAdjustDeviceStackSizeForIoRedirection(core::mem::transmute(sourceinstance), core::mem::transmute(targetinstance), core::mem::transmute(sourcedevicestacksizemodified.unwrap_or(core::mem::zeroed()))) + FltAdjustDeviceStackSizeForIoRedirection(sourceinstance, targetinstance, core::mem::transmute(sourcedevicestacksizemodified.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltAllocateCallbackData(instance: PFLT_INSTANCE, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>, retnewcallbackdata: *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAllocateCallbackData(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, retnewcallbackdata : *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAllocateCallbackData(core::mem::transmute(instance), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(retnewcallbackdata)) + FltAllocateCallbackData(instance, core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(retnewcallbackdata)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltAllocateCallbackDataEx(instance: PFLT_INSTANCE, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>, flags: u32, retnewcallbackdata: *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAllocateCallbackDataEx(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, flags : u32, retnewcallbackdata : *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAllocateCallbackDataEx(core::mem::transmute(instance), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(retnewcallbackdata)) + FltAllocateCallbackDataEx(instance, core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(retnewcallbackdata)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltAllocateContext(filter: PFLT_FILTER, contexttype: u16, contextsize: usize, pooltype: super::super::super::Foundation::POOL_TYPE, returnedcontext: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAllocateContext(filter : PFLT_FILTER, contexttype : u16, contextsize : usize, pooltype : super::super::super::Foundation:: POOL_TYPE, returnedcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAllocateContext(core::mem::transmute(filter), core::mem::transmute(contexttype), core::mem::transmute(contextsize), core::mem::transmute(pooltype), core::mem::transmute(returnedcontext)) + FltAllocateContext(filter, contexttype, contextsize, pooltype, core::mem::transmute(returnedcontext)) } #[inline] pub unsafe fn FltAllocateDeferredIoWorkItem() -> PFLT_DEFERRED_IO_WORKITEM { @@ -72,18 +72,18 @@ pub unsafe fn FltAllocateDeferredIoWorkItem() -> PFLT_DEFERRED_IO_WORKITEM { #[inline] pub unsafe fn FltAllocateExtraCreateParameter(filter: PFLT_FILTER, ecptype: *const windows_core::GUID, sizeofcontext: u32, flags: u32, cleanupcallback: Option, pooltag: u32, ecpcontext: *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAllocateExtraCreateParameter(filter : PFLT_FILTER, ecptype : *const windows_core::GUID, sizeofcontext : u32, flags : u32, cleanupcallback : super:: PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, pooltag : u32, ecpcontext : *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAllocateExtraCreateParameter(core::mem::transmute(filter), core::mem::transmute(ecptype), core::mem::transmute(sizeofcontext), core::mem::transmute(flags), core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pooltag), core::mem::transmute(ecpcontext)) + FltAllocateExtraCreateParameter(filter, ecptype, sizeofcontext, flags, core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), pooltag, core::mem::transmute(ecpcontext)) } #[inline] pub unsafe fn FltAllocateExtraCreateParameterFromLookasideList(filter: PFLT_FILTER, ecptype: *const windows_core::GUID, sizeofcontext: u32, flags: u32, cleanupcallback: Option, lookasidelist: *mut core::ffi::c_void, ecpcontext: *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAllocateExtraCreateParameterFromLookasideList(filter : PFLT_FILTER, ecptype : *const windows_core::GUID, sizeofcontext : u32, flags : u32, cleanupcallback : super:: PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, lookasidelist : *mut core::ffi::c_void, ecpcontext : *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAllocateExtraCreateParameterFromLookasideList(core::mem::transmute(filter), core::mem::transmute(ecptype), core::mem::transmute(sizeofcontext), core::mem::transmute(flags), core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(lookasidelist), core::mem::transmute(ecpcontext)) + FltAllocateExtraCreateParameterFromLookasideList(filter, ecptype, sizeofcontext, flags, core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(lookasidelist), core::mem::transmute(ecpcontext)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltAllocateExtraCreateParameterList(filter: PFLT_FILTER, flags: u32, ecplist: *mut *mut super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAllocateExtraCreateParameterList(filter : PFLT_FILTER, flags : u32, ecplist : *mut *mut super::super::super::Foundation:: ECP_LIST) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAllocateExtraCreateParameterList(core::mem::transmute(filter), core::mem::transmute(flags), core::mem::transmute(ecplist)) + FltAllocateExtraCreateParameterList(filter, flags, core::mem::transmute(ecplist)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -100,53 +100,53 @@ pub unsafe fn FltAllocateGenericWorkItem() -> PFLT_GENERIC_WORKITEM { #[inline] pub unsafe fn FltAllocatePoolAlignedWithTag(instance: PFLT_INSTANCE, pooltype: super::super::super::Foundation::POOL_TYPE, numberofbytes: usize, tag: u32) -> *mut core::ffi::c_void { windows_targets::link!("fltmgr.sys" "system" fn FltAllocatePoolAlignedWithTag(instance : PFLT_INSTANCE, pooltype : super::super::super::Foundation:: POOL_TYPE, numberofbytes : usize, tag : u32) -> *mut core::ffi::c_void); - FltAllocatePoolAlignedWithTag(core::mem::transmute(instance), core::mem::transmute(pooltype), core::mem::transmute(numberofbytes), core::mem::transmute(tag)) + FltAllocatePoolAlignedWithTag(instance, pooltype, numberofbytes, tag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltApplyPriorityInfoThread(inputpriorityinfo: *const super::IO_PRIORITY_INFO, outputpriorityinfo: Option<*mut super::IO_PRIORITY_INFO>, thread: super::super::super::Foundation::PETHREAD) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltApplyPriorityInfoThread(inputpriorityinfo : *const super:: IO_PRIORITY_INFO, outputpriorityinfo : *mut super:: IO_PRIORITY_INFO, thread : super::super::super::Foundation:: PETHREAD) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltApplyPriorityInfoThread(core::mem::transmute(inputpriorityinfo), core::mem::transmute(outputpriorityinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(thread)) + FltApplyPriorityInfoThread(inputpriorityinfo, core::mem::transmute(outputpriorityinfo.unwrap_or(core::mem::zeroed())), thread) } #[inline] pub unsafe fn FltAttachVolume(filter: PFLT_FILTER, volume: PFLT_VOLUME, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, retinstance: Option<*mut PFLT_INSTANCE>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAttachVolume(filter : PFLT_FILTER, volume : PFLT_VOLUME, instancename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, retinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAttachVolume(core::mem::transmute(filter), core::mem::transmute(volume), core::mem::transmute(instancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(retinstance.unwrap_or(core::mem::zeroed()))) + FltAttachVolume(filter, volume, core::mem::transmute(instancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(retinstance.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltAttachVolumeAtAltitude(filter: PFLT_FILTER, volume: PFLT_VOLUME, altitude: *const super::super::super::super::Win32::Foundation::UNICODE_STRING, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, retinstance: Option<*mut PFLT_INSTANCE>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltAttachVolumeAtAltitude(filter : PFLT_FILTER, volume : PFLT_VOLUME, altitude : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, retinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAttachVolumeAtAltitude(core::mem::transmute(filter), core::mem::transmute(volume), core::mem::transmute(altitude), core::mem::transmute(instancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(retinstance.unwrap_or(core::mem::zeroed()))) + FltAttachVolumeAtAltitude(filter, volume, altitude, core::mem::transmute(instancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(retinstance.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FltBuildDefaultSecurityDescriptor(securitydescriptor: *mut super::super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltBuildDefaultSecurityDescriptor(securitydescriptor : *mut super::super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltBuildDefaultSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess)) + FltBuildDefaultSecurityDescriptor(core::mem::transmute(securitydescriptor), desiredaccess) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCancelFileOpen(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT) { windows_targets::link!("fltmgr.sys" "system" fn FltCancelFileOpen(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT)); - FltCancelFileOpen(core::mem::transmute(instance), core::mem::transmute(fileobject)) + FltCancelFileOpen(instance, fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCancelIo(callbackdata: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltCancelIo(callbackdata : *const FLT_CALLBACK_DATA) -> bool); - FltCancelIo(core::mem::transmute(callbackdata)) + FltCancelIo(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCancellableWaitForMultipleObjects(objectarray: &[*const core::ffi::c_void], waittype: super::super::super::super::Win32::System::Kernel::WAIT_TYPE, timeout: Option<*const i64>, waitblockarray: Option<*const super::super::super::Foundation::KWAIT_BLOCK>, callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCancellableWaitForMultipleObjects(count : u32, objectarray : *const *const core::ffi::c_void, waittype : super::super::super::super::Win32::System::Kernel:: WAIT_TYPE, timeout : *const i64, waitblockarray : *const super::super::super::Foundation:: KWAIT_BLOCK, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCancellableWaitForMultipleObjects(objectarray.len().try_into().unwrap(), core::mem::transmute(objectarray.as_ptr()), core::mem::transmute(waittype), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackdata)) + FltCancellableWaitForMultipleObjects(objectarray.len().try_into().unwrap(), core::mem::transmute(objectarray.as_ptr()), waittype, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed())), callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCancellableWaitForSingleObject(object: *const core::ffi::c_void, timeout: Option<*const i64>, callbackdata: Option<*const FLT_CALLBACK_DATA>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCancellableWaitForSingleObject(object : *const core::ffi::c_void, timeout : *const i64, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCancellableWaitForSingleObject(core::mem::transmute(object), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))) + FltCancellableWaitForSingleObject(object, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -164,19 +164,19 @@ pub unsafe fn FltCbdqEnable(cbdq: *mut FLT_CALLBACK_DATA_QUEUE) { #[inline] pub unsafe fn FltCbdqInitialize(instance: PFLT_INSTANCE, cbdq: *mut FLT_CALLBACK_DATA_QUEUE, cbdqinsertio: PFLT_CALLBACK_DATA_QUEUE_INSERT_IO, cbdqremoveio: PFLT_CALLBACK_DATA_QUEUE_REMOVE_IO, cbdqpeeknextio: PFLT_CALLBACK_DATA_QUEUE_PEEK_NEXT_IO, cbdqacquire: PFLT_CALLBACK_DATA_QUEUE_ACQUIRE, cbdqrelease: PFLT_CALLBACK_DATA_QUEUE_RELEASE, cbdqcompletecanceledio: PFLT_CALLBACK_DATA_QUEUE_COMPLETE_CANCELED_IO) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCbdqInitialize(instance : PFLT_INSTANCE, cbdq : *mut FLT_CALLBACK_DATA_QUEUE, cbdqinsertio : PFLT_CALLBACK_DATA_QUEUE_INSERT_IO, cbdqremoveio : PFLT_CALLBACK_DATA_QUEUE_REMOVE_IO, cbdqpeeknextio : PFLT_CALLBACK_DATA_QUEUE_PEEK_NEXT_IO, cbdqacquire : PFLT_CALLBACK_DATA_QUEUE_ACQUIRE, cbdqrelease : PFLT_CALLBACK_DATA_QUEUE_RELEASE, cbdqcompletecanceledio : PFLT_CALLBACK_DATA_QUEUE_COMPLETE_CANCELED_IO) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCbdqInitialize(core::mem::transmute(instance), core::mem::transmute(cbdq), core::mem::transmute(cbdqinsertio), core::mem::transmute(cbdqremoveio), core::mem::transmute(cbdqpeeknextio), core::mem::transmute(cbdqacquire), core::mem::transmute(cbdqrelease), core::mem::transmute(cbdqcompletecanceledio)) + FltCbdqInitialize(instance, core::mem::transmute(cbdq), cbdqinsertio, cbdqremoveio, cbdqpeeknextio, cbdqacquire, cbdqrelease, cbdqcompletecanceledio) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCbdqInsertIo(cbdq: *mut FLT_CALLBACK_DATA_QUEUE, cbd: *const FLT_CALLBACK_DATA, context: Option<*const super::super::super::System::SystemServices::IO_CSQ_IRP_CONTEXT>, insertcontext: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCbdqInsertIo(cbdq : *mut FLT_CALLBACK_DATA_QUEUE, cbd : *const FLT_CALLBACK_DATA, context : *const super::super::super::System::SystemServices:: IO_CSQ_IRP_CONTEXT, insertcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCbdqInsertIo(core::mem::transmute(cbdq), core::mem::transmute(cbd), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(insertcontext.unwrap_or(core::mem::zeroed()))) + FltCbdqInsertIo(core::mem::transmute(cbdq), cbd, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(insertcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCbdqRemoveIo(cbdq: *mut FLT_CALLBACK_DATA_QUEUE, context: *const super::super::super::System::SystemServices::IO_CSQ_IRP_CONTEXT) -> *mut FLT_CALLBACK_DATA { windows_targets::link!("fltmgr.sys" "system" fn FltCbdqRemoveIo(cbdq : *mut FLT_CALLBACK_DATA_QUEUE, context : *const super::super::super::System::SystemServices:: IO_CSQ_IRP_CONTEXT) -> *mut FLT_CALLBACK_DATA); - FltCbdqRemoveIo(core::mem::transmute(cbdq), core::mem::transmute(context)) + FltCbdqRemoveIo(core::mem::transmute(cbdq), context) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -187,31 +187,31 @@ pub unsafe fn FltCbdqRemoveNextIo(cbdq: *mut FLT_CALLBACK_DATA_QUEUE, peekcontex #[inline] pub unsafe fn FltCheckAndGrowNameControl(namectrl: *mut FLT_NAME_CONTROL, newsize: u16) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCheckAndGrowNameControl(namectrl : *mut FLT_NAME_CONTROL, newsize : u16) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCheckAndGrowNameControl(core::mem::transmute(namectrl), core::mem::transmute(newsize)) + FltCheckAndGrowNameControl(core::mem::transmute(namectrl), newsize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCheckLockForReadAccess(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForReadAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> bool); - FltCheckLockForReadAccess(core::mem::transmute(filelock), core::mem::transmute(callbackdata)) + FltCheckLockForReadAccess(filelock, callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCheckLockForWriteAccess(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForWriteAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> bool); - FltCheckLockForWriteAccess(core::mem::transmute(filelock), core::mem::transmute(callbackdata)) + FltCheckLockForWriteAccess(filelock, callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCheckOplock(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, context: Option<*const core::ffi::c_void>, waitcompletionroutine: Option, prepostcallbackdataroutine: Option) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCheckOplock(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, context : *const core::ffi::c_void, waitcompletionroutine : PFLTOPLOCK_WAIT_COMPLETE_ROUTINE, prepostcallbackdataroutine : PFLTOPLOCK_PREPOST_CALLBACKDATA_ROUTINE) -> FLT_PREOP_CALLBACK_STATUS); - FltCheckOplock(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) + FltCheckOplock(oplock, callbackdata, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCheckOplockEx(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, flags: u32, context: Option<*const core::ffi::c_void>, waitcompletionroutine: Option, prepostcallbackdataroutine: Option) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCheckOplockEx(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, flags : u32, context : *const core::ffi::c_void, waitcompletionroutine : PFLTOPLOCK_WAIT_COMPLETE_ROUTINE, prepostcallbackdataroutine : PFLTOPLOCK_PREPOST_CALLBACKDATA_ROUTINE) -> FLT_PREOP_CALLBACK_STATUS); - FltCheckOplockEx(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) + FltCheckOplockEx(oplock, callbackdata, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -223,132 +223,101 @@ pub unsafe fn FltClearCallbackDataDirty(data: *mut FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltClearCancelCompletion(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltClearCancelCompletion(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltClearCancelCompletion(core::mem::transmute(callbackdata)) + FltClearCancelCompletion(callbackdata) } #[inline] pub unsafe fn FltClose(filehandle: super::super::super::super::Win32::Foundation::HANDLE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltClose(filehandle : super::super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltClose(core::mem::transmute(filehandle)) + FltClose(filehandle) } #[inline] pub unsafe fn FltCloseClientPort(filter: PFLT_FILTER, clientport: *mut PFLT_PORT) { windows_targets::link!("fltmgr.sys" "system" fn FltCloseClientPort(filter : PFLT_FILTER, clientport : *mut PFLT_PORT)); - FltCloseClientPort(core::mem::transmute(filter), core::mem::transmute(clientport)) + FltCloseClientPort(filter, core::mem::transmute(clientport)) } #[inline] pub unsafe fn FltCloseCommunicationPort(serverport: PFLT_PORT) { windows_targets::link!("fltmgr.sys" "system" fn FltCloseCommunicationPort(serverport : PFLT_PORT)); - FltCloseCommunicationPort(core::mem::transmute(serverport)) + FltCloseCommunicationPort(serverport) } #[inline] pub unsafe fn FltCloseSectionForDataScan(sectioncontext: PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCloseSectionForDataScan(sectioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCloseSectionForDataScan(core::mem::transmute(sectioncontext)) + FltCloseSectionForDataScan(sectioncontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltCommitComplete(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: Option) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCommitComplete(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCommitComplete(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) + FltCommitComplete(instance, transaction, core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltCommitFinalizeComplete(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: Option) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCommitFinalizeComplete(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCommitFinalizeComplete(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) + FltCommitFinalizeComplete(instance, transaction, core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltCompareInstanceAltitudes(instance1: PFLT_INSTANCE, instance2: PFLT_INSTANCE) -> i32 { windows_targets::link!("fltmgr.sys" "system" fn FltCompareInstanceAltitudes(instance1 : PFLT_INSTANCE, instance2 : PFLT_INSTANCE) -> i32); - FltCompareInstanceAltitudes(core::mem::transmute(instance1), core::mem::transmute(instance2)) + FltCompareInstanceAltitudes(instance1, instance2) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCompletePendedPostOperation(callbackdata: *const FLT_CALLBACK_DATA) { windows_targets::link!("fltmgr.sys" "system" fn FltCompletePendedPostOperation(callbackdata : *const FLT_CALLBACK_DATA)); - FltCompletePendedPostOperation(core::mem::transmute(callbackdata)) + FltCompletePendedPostOperation(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCompletePendedPreOperation(callbackdata: *const FLT_CALLBACK_DATA, callbackstatus: FLT_PREOP_CALLBACK_STATUS, context: Option<*const core::ffi::c_void>) { windows_targets::link!("fltmgr.sys" "system" fn FltCompletePendedPreOperation(callbackdata : *const FLT_CALLBACK_DATA, callbackstatus : FLT_PREOP_CALLBACK_STATUS, context : *const core::ffi::c_void)); - FltCompletePendedPreOperation(core::mem::transmute(callbackdata), core::mem::transmute(callbackstatus), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + FltCompletePendedPreOperation(callbackdata, callbackstatus, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCopyOpenReparseList(filter: PFLT_FILTER, data: *const FLT_CALLBACK_DATA, ecplist: *mut super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCopyOpenReparseList(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, ecplist : *mut super::super::super::Foundation:: ECP_LIST) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCopyOpenReparseList(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(ecplist)) + FltCopyOpenReparseList(filter, data, core::mem::transmute(ecplist)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn FltCreateCommunicationPort(filter: PFLT_FILTER, serverport: *mut PFLT_PORT, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, serverportcookie: Option<*const core::ffi::c_void>, connectnotifycallback: PFLT_CONNECT_NOTIFY, disconnectnotifycallback: PFLT_DISCONNECT_NOTIFY, messagenotifycallback: Option, maxconnections: i32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateCommunicationPort(filter : PFLT_FILTER, serverport : *mut PFLT_PORT, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, serverportcookie : *const core::ffi::c_void, connectnotifycallback : PFLT_CONNECT_NOTIFY, disconnectnotifycallback : PFLT_DISCONNECT_NOTIFY, messagenotifycallback : PFLT_MESSAGE_NOTIFY, maxconnections : i32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateCommunicationPort(core::mem::transmute(filter), core::mem::transmute(serverport), core::mem::transmute(objectattributes), core::mem::transmute(serverportcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(connectnotifycallback), core::mem::transmute(disconnectnotifycallback), core::mem::transmute(messagenotifycallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(maxconnections)) + FltCreateCommunicationPort(filter, core::mem::transmute(serverport), objectattributes, core::mem::transmute(serverportcookie.unwrap_or(core::mem::zeroed())), connectnotifycallback, disconnectnotifycallback, core::mem::transmute(messagenotifycallback.unwrap_or(core::mem::zeroed())), maxconnections) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn FltCreateFile(filter: PFLT_FILTER, instance: Option, filehandle: *mut super::super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, createdisposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32, flags: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateFile(filter : PFLT_FILTER, instance : PFLT_INSTANCE, filehandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, createdisposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32, flags : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateFile( - core::mem::transmute(filter), - core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filehandle), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), - core::mem::transmute(iostatusblock), - core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileattributes), - core::mem::transmute(shareaccess), - core::mem::transmute(createdisposition), - core::mem::transmute(createoptions), - core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ealength), - core::mem::transmute(flags), - ) + FltCreateFile(filter, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCreateFileEx(filter: PFLT_FILTER, instance: Option, filehandle: *mut super::super::super::super::Win32::Foundation::HANDLE, fileobject: Option<*mut *mut super::super::super::Foundation::FILE_OBJECT>, desiredaccess: u32, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, createdisposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32, flags: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateFileEx(filter : PFLT_FILTER, instance : PFLT_INSTANCE, filehandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, fileobject : *mut *mut super::super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, createdisposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32, flags : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateFileEx( - core::mem::transmute(filter), - core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filehandle), - core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), - core::mem::transmute(iostatusblock), - core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileattributes), - core::mem::transmute(shareaccess), - core::mem::transmute(createdisposition), - core::mem::transmute(createoptions), - core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ealength), - core::mem::transmute(flags), - ) + FltCreateFileEx(filter, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(filehandle), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCreateFileEx2(filter: PFLT_FILTER, instance: Option, filehandle: *mut super::super::super::super::Win32::Foundation::HANDLE, fileobject: Option<*mut *mut super::super::super::Foundation::FILE_OBJECT>, desiredaccess: u32, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, createdisposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32, flags: u32, drivercontext: Option<*const super::super::super::System::SystemServices::IO_DRIVER_CREATE_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateFileEx2(filter : PFLT_FILTER, instance : PFLT_INSTANCE, filehandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, fileobject : *mut *mut super::super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, createdisposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32, flags : u32, drivercontext : *const super::super::super::System::SystemServices:: IO_DRIVER_CREATE_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltCreateFileEx2( - core::mem::transmute(filter), + filter, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(filehandle), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), + desiredaccess, + objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileattributes), - core::mem::transmute(shareaccess), - core::mem::transmute(createdisposition), - core::mem::transmute(createoptions), + fileattributes, + shareaccess, + createdisposition, + createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ealength), - core::mem::transmute(flags), + ealength, + flags, core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed())), ) } @@ -356,42 +325,29 @@ pub unsafe fn FltCreateFileEx2(filter: PFLT_FILTER, instance: Option, filehandle: *mut super::super::super::super::Win32::Foundation::HANDLE, fileobject: Option<*mut *mut super::super::super::Foundation::FILE_OBJECT>, desiredaccess: u32, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, createoptions: u32, mailslotquota: u32, maximummessagesize: u32, readtimeout: *const i64, drivercontext: Option<*const super::super::super::System::SystemServices::IO_DRIVER_CREATE_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateMailslotFile(filter : PFLT_FILTER, instance : PFLT_INSTANCE, filehandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, fileobject : *mut *mut super::super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, createoptions : u32, mailslotquota : u32, maximummessagesize : u32, readtimeout : *const i64, drivercontext : *const super::super::super::System::SystemServices:: IO_DRIVER_CREATE_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateMailslotFile( - core::mem::transmute(filter), - core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filehandle), - core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), - core::mem::transmute(iostatusblock), - core::mem::transmute(createoptions), - core::mem::transmute(mailslotquota), - core::mem::transmute(maximummessagesize), - core::mem::transmute(readtimeout), - core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed())), - ) + FltCreateMailslotFile(filter, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(filehandle), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), createoptions, mailslotquota, maximummessagesize, readtimeout, core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltCreateNamedPipeFile(filter: PFLT_FILTER, instance: Option, filehandle: *mut super::super::super::super::Win32::Foundation::HANDLE, fileobject: Option<*mut *mut super::super::super::Foundation::FILE_OBJECT>, desiredaccess: u32, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, shareaccess: u32, createdisposition: u32, createoptions: u32, namedpipetype: u32, readmode: u32, completionmode: u32, maximuminstances: u32, inboundquota: u32, outboundquota: u32, defaulttimeout: Option<*const i64>, drivercontext: Option<*const super::super::super::System::SystemServices::IO_DRIVER_CREATE_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateNamedPipeFile(filter : PFLT_FILTER, instance : PFLT_INSTANCE, filehandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, fileobject : *mut *mut super::super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, shareaccess : u32, createdisposition : u32, createoptions : u32, namedpipetype : u32, readmode : u32, completionmode : u32, maximuminstances : u32, inboundquota : u32, outboundquota : u32, defaulttimeout : *const i64, drivercontext : *const super::super::super::System::SystemServices:: IO_DRIVER_CREATE_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltCreateNamedPipeFile( - core::mem::transmute(filter), + filter, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(filehandle), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), + desiredaccess, + objectattributes, core::mem::transmute(iostatusblock), - core::mem::transmute(shareaccess), - core::mem::transmute(createdisposition), - core::mem::transmute(createoptions), - core::mem::transmute(namedpipetype), - core::mem::transmute(readmode), - core::mem::transmute(completionmode), - core::mem::transmute(maximuminstances), - core::mem::transmute(inboundquota), - core::mem::transmute(outboundquota), + shareaccess, + createdisposition, + createoptions, + namedpipetype, + readmode, + completionmode, + maximuminstances, + inboundquota, + outboundquota, core::mem::transmute(defaulttimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed())), ) @@ -400,124 +356,111 @@ pub unsafe fn FltCreateNamedPipeFile(filter: PFLT_FILTER, instance: Option, maximumsize: Option<*const i64>, sectionpageprotection: u32, allocationattributes: u32, flags: u32, sectionhandle: *mut super::super::super::super::Win32::Foundation::HANDLE, sectionobject: *mut *mut core::ffi::c_void, sectionfilesize: Option<*mut i64>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateSectionForDataScan(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, sectioncontext : PFLT_CONTEXT, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, flags : u32, sectionhandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, sectionobject : *mut *mut core::ffi::c_void, sectionfilesize : *mut i64) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateSectionForDataScan( - core::mem::transmute(instance), - core::mem::transmute(fileobject), - core::mem::transmute(sectioncontext), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sectionpageprotection), - core::mem::transmute(allocationattributes), - core::mem::transmute(flags), - core::mem::transmute(sectionhandle), - core::mem::transmute(sectionobject), - core::mem::transmute(sectionfilesize.unwrap_or(core::mem::zeroed())), - ) + FltCreateSectionForDataScan(instance, fileobject, sectioncontext, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), sectionpageprotection, allocationattributes, flags, core::mem::transmute(sectionhandle), core::mem::transmute(sectionobject), core::mem::transmute(sectionfilesize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltCreateSystemVolumeInformationFolder(instance: PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltCreateSystemVolumeInformationFolder(instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateSystemVolumeInformationFolder(core::mem::transmute(instance)) + FltCreateSystemVolumeInformationFolder(instance) } #[inline] pub unsafe fn FltCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool); - FltCurrentBatchOplock(core::mem::transmute(oplock)) + FltCurrentBatchOplock(oplock) } #[inline] pub unsafe fn FltCurrentOplock(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool); - FltCurrentOplock(core::mem::transmute(oplock)) + FltCurrentOplock(oplock) } #[inline] pub unsafe fn FltCurrentOplockH(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool); - FltCurrentOplockH(core::mem::transmute(oplock)) + FltCurrentOplockH(oplock) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltDecodeParameters(callbackdata: *const FLT_CALLBACK_DATA, mdladdresspointer: Option<*mut *mut *mut super::super::super::Foundation::MDL>, buffer: Option<*mut *mut *mut core::ffi::c_void>, length: Option<*mut *mut u32>, desiredaccess: Option<*mut super::super::super::System::SystemServices::LOCK_OPERATION>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDecodeParameters(callbackdata : *const FLT_CALLBACK_DATA, mdladdresspointer : *mut *mut *mut super::super::super::Foundation:: MDL, buffer : *mut *mut *mut core::ffi::c_void, length : *mut *mut u32, desiredaccess : *mut super::super::super::System::SystemServices:: LOCK_OPERATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDecodeParameters(core::mem::transmute(callbackdata), core::mem::transmute(mdladdresspointer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess.unwrap_or(core::mem::zeroed()))) + FltDecodeParameters(callbackdata, core::mem::transmute(mdladdresspointer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltDeleteContext(context: PFLT_CONTEXT) { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteContext(context : PFLT_CONTEXT)); - FltDeleteContext(core::mem::transmute(context)) + FltDeleteContext(context) } #[inline] pub unsafe fn FltDeleteExtraCreateParameterLookasideList(filter: Option, lookaside: *mut core::ffi::c_void, flags: u32) { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteExtraCreateParameterLookasideList(filter : PFLT_FILTER, lookaside : *mut core::ffi::c_void, flags : u32)); - FltDeleteExtraCreateParameterLookasideList(core::mem::transmute(filter.unwrap_or(core::mem::zeroed())), core::mem::transmute(lookaside), core::mem::transmute(flags)) + FltDeleteExtraCreateParameterLookasideList(core::mem::transmute(filter.unwrap_or(core::mem::zeroed())), core::mem::transmute(lookaside), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltDeleteFileContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteFileContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteFileContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltDeleteFileContext(instance, fileobject, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltDeleteInstanceContext(instance: PFLT_INSTANCE, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteInstanceContext(instance : PFLT_INSTANCE, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteInstanceContext(core::mem::transmute(instance), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltDeleteInstanceContext(instance, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltDeletePushLock(pushlock: *const usize) { windows_targets::link!("fltmgr.sys" "system" fn FltDeletePushLock(pushlock : *const usize)); - FltDeletePushLock(core::mem::transmute(pushlock)) + FltDeletePushLock(pushlock) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltDeleteStreamContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteStreamContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteStreamContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltDeleteStreamContext(instance, fileobject, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltDeleteStreamHandleContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteStreamHandleContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteStreamHandleContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltDeleteStreamHandleContext(instance, fileobject, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltDeleteTransactionContext(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteTransactionContext(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteTransactionContext(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltDeleteTransactionContext(instance, transaction, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltDeleteVolumeContext(filter: PFLT_FILTER, volume: PFLT_VOLUME, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteVolumeContext(filter : PFLT_FILTER, volume : PFLT_VOLUME, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteVolumeContext(core::mem::transmute(filter), core::mem::transmute(volume), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltDeleteVolumeContext(filter, volume, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltDetachVolume(filter: PFLT_FILTER, volume: PFLT_VOLUME, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDetachVolume(filter : PFLT_FILTER, volume : PFLT_VOLUME, instancename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDetachVolume(core::mem::transmute(filter), core::mem::transmute(volume), core::mem::transmute(instancename.unwrap_or(core::mem::zeroed()))) + FltDetachVolume(filter, volume, core::mem::transmute(instancename.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltDeviceIoControlFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, iocontrolcode: u32, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltDeviceIoControlFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iocontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeviceIoControlFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(iocontrolcode), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltDeviceIoControlFile(instance, fileobject, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltDoCompletionProcessingWhenSafe(data: *const FLT_CALLBACK_DATA, fltobjects: *const FLT_RELATED_OBJECTS, completioncontext: Option<*const core::ffi::c_void>, flags: u32, safepostcallback: PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus: *mut FLT_POSTOP_CALLBACK_STATUS) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltDoCompletionProcessingWhenSafe(data : *const FLT_CALLBACK_DATA, fltobjects : *const FLT_RELATED_OBJECTS, completioncontext : *const core::ffi::c_void, flags : u32, safepostcallback : PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus : *mut FLT_POSTOP_CALLBACK_STATUS) -> bool); - FltDoCompletionProcessingWhenSafe(core::mem::transmute(data), core::mem::transmute(fltobjects), core::mem::transmute(completioncontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(safepostcallback), core::mem::transmute(retpostoperationstatus)) + FltDoCompletionProcessingWhenSafe(data, fltobjects, core::mem::transmute(completioncontext.unwrap_or(core::mem::zeroed())), flags, safepostcallback, core::mem::transmute(retpostoperationstatus)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltEnlistInTransaction(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: PFLT_CONTEXT, notificationmask: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnlistInTransaction(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT, notificationmask : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnlistInTransaction(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext), core::mem::transmute(notificationmask)) + FltEnlistInTransaction(instance, transaction, transactioncontext, notificationmask) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltEnumerateFilterInformation(index: u32, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::FILTER_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateFilterInformation(index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: FILTER_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateFilterInformation(core::mem::transmute(index), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltEnumerateFilterInformation(index, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[inline] pub unsafe fn FltEnumerateFilters(filterlist: Option<&mut [PFLT_FILTER]>, numberfiltersreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { @@ -528,25 +471,25 @@ pub unsafe fn FltEnumerateFilters(filterlist: Option<&mut [PFLT_FILTER]>, number #[inline] pub unsafe fn FltEnumerateInstanceInformationByDeviceObject(deviceobject: *const super::super::super::Foundation::DEVICE_OBJECT, index: u32, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::INSTANCE_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateInstanceInformationByDeviceObject(deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT, index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: INSTANCE_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateInstanceInformationByDeviceObject(core::mem::transmute(deviceobject), core::mem::transmute(index), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltEnumerateInstanceInformationByDeviceObject(deviceobject, index, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltEnumerateInstanceInformationByFilter(filter: PFLT_FILTER, index: u32, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::INSTANCE_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateInstanceInformationByFilter(filter : PFLT_FILTER, index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: INSTANCE_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateInstanceInformationByFilter(core::mem::transmute(filter), core::mem::transmute(index), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltEnumerateInstanceInformationByFilter(filter, index, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltEnumerateInstanceInformationByVolume(volume: PFLT_VOLUME, index: u32, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::INSTANCE_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateInstanceInformationByVolume(volume : PFLT_VOLUME, index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: INSTANCE_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateInstanceInformationByVolume(core::mem::transmute(volume), core::mem::transmute(index), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltEnumerateInstanceInformationByVolume(volume, index, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltEnumerateInstanceInformationByVolumeName(volumename: *const super::super::super::super::Win32::Foundation::UNICODE_STRING, index: u32, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::INSTANCE_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateInstanceInformationByVolumeName(volumename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: INSTANCE_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateInstanceInformationByVolumeName(core::mem::transmute(volumename), core::mem::transmute(index), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltEnumerateInstanceInformationByVolumeName(volumename, index, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[inline] pub unsafe fn FltEnumerateInstances(volume: Option, filter: Option, instancelist: Option<&mut [PFLT_INSTANCE]>, numberinstancesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { @@ -557,133 +500,133 @@ pub unsafe fn FltEnumerateInstances(volume: Option, filter: Option< #[inline] pub unsafe fn FltEnumerateVolumeInformation(filter: PFLT_FILTER, index: u32, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::FILTER_VOLUME_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateVolumeInformation(filter : PFLT_FILTER, index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: FILTER_VOLUME_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateVolumeInformation(core::mem::transmute(filter), core::mem::transmute(index), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltEnumerateVolumeInformation(filter, index, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[inline] pub unsafe fn FltEnumerateVolumes(filter: PFLT_FILTER, volumelist: Option<&mut [PFLT_VOLUME]>, numbervolumesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateVolumes(filter : PFLT_FILTER, volumelist : *mut PFLT_VOLUME, volumelistsize : u32, numbervolumesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateVolumes(core::mem::transmute(filter), core::mem::transmute(volumelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), volumelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(numbervolumesreturned)) + FltEnumerateVolumes(filter, core::mem::transmute(volumelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), volumelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(numbervolumesreturned)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFastIoMdlRead(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::super::Foundation::MDL, iostatus: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlRead(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); - FltFastIoMdlRead(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) + FltFastIoMdlRead(initiatinginstance, fileobject, fileoffset, length, lockkey, core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFastIoMdlReadComplete(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::super::Foundation::MDL) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlReadComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::super::Foundation:: MDL) -> bool); - FltFastIoMdlReadComplete(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(mdlchain)) + FltFastIoMdlReadComplete(initiatinginstance, fileobject, mdlchain) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFastIoMdlWriteComplete(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::super::Foundation::MDL) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlWriteComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::super::Foundation:: MDL) -> bool); - FltFastIoMdlWriteComplete(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(mdlchain)) + FltFastIoMdlWriteComplete(initiatinginstance, fileobject, fileoffset, mdlchain) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFastIoPrepareMdlWrite(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::super::Foundation::MDL, iostatus: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltFastIoPrepareMdlWrite(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); - FltFastIoPrepareMdlWrite(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) + FltFastIoPrepareMdlWrite(initiatinginstance, fileobject, fileoffset, length, lockkey, core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltFindExtraCreateParameter(filter: PFLT_FILTER, ecplist: *const super::super::super::Foundation::ECP_LIST, ecptype: *const windows_core::GUID, ecpcontext: Option<*mut *mut core::ffi::c_void>, ecpcontextsize: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltFindExtraCreateParameter(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST, ecptype : *const windows_core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltFindExtraCreateParameter(core::mem::transmute(filter), core::mem::transmute(ecplist), core::mem::transmute(ecptype), core::mem::transmute(ecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) + FltFindExtraCreateParameter(filter, ecplist, ecptype, core::mem::transmute(ecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFlushBuffers(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltFlushBuffers(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltFlushBuffers(core::mem::transmute(instance), core::mem::transmute(fileobject)) + FltFlushBuffers(instance, fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFlushBuffers2(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, flushtype: u32, callbackdata: Option<*const FLT_CALLBACK_DATA>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltFlushBuffers2(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, flushtype : u32, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltFlushBuffers2(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(flushtype), core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))) + FltFlushBuffers2(instance, fileobject, flushtype, core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFreeCallbackData(callbackdata: *const FLT_CALLBACK_DATA) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeCallbackData(callbackdata : *const FLT_CALLBACK_DATA)); - FltFreeCallbackData(core::mem::transmute(callbackdata)) + FltFreeCallbackData(callbackdata) } #[inline] pub unsafe fn FltFreeDeferredIoWorkItem(fltworkitem: PFLT_DEFERRED_IO_WORKITEM) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeDeferredIoWorkItem(fltworkitem : PFLT_DEFERRED_IO_WORKITEM)); - FltFreeDeferredIoWorkItem(core::mem::transmute(fltworkitem)) + FltFreeDeferredIoWorkItem(fltworkitem) } #[inline] pub unsafe fn FltFreeExtraCreateParameter(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeExtraCreateParameter(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void)); - FltFreeExtraCreateParameter(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) + FltFreeExtraCreateParameter(filter, ecpcontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltFreeExtraCreateParameterList(filter: PFLT_FILTER, ecplist: *const super::super::super::Foundation::ECP_LIST) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeExtraCreateParameterList(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST)); - FltFreeExtraCreateParameterList(core::mem::transmute(filter), core::mem::transmute(ecplist)) + FltFreeExtraCreateParameterList(filter, ecplist) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFreeFileLock(filelock: *const super::FILE_LOCK) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeFileLock(filelock : *const super:: FILE_LOCK)); - FltFreeFileLock(core::mem::transmute(filelock)) + FltFreeFileLock(filelock) } #[inline] pub unsafe fn FltFreeGenericWorkItem(fltworkitem: PFLT_GENERIC_WORKITEM) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeGenericWorkItem(fltworkitem : PFLT_GENERIC_WORKITEM)); - FltFreeGenericWorkItem(core::mem::transmute(fltworkitem)) + FltFreeGenericWorkItem(fltworkitem) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltFreeOpenReparseList(filter: PFLT_FILTER, ecplist: *const super::super::super::Foundation::ECP_LIST) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeOpenReparseList(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST)); - FltFreeOpenReparseList(core::mem::transmute(filter), core::mem::transmute(ecplist)) + FltFreeOpenReparseList(filter, ecplist) } #[inline] pub unsafe fn FltFreePoolAlignedWithTag(instance: PFLT_INSTANCE, buffer: *const core::ffi::c_void, tag: u32) { windows_targets::link!("fltmgr.sys" "system" fn FltFreePoolAlignedWithTag(instance : PFLT_INSTANCE, buffer : *const core::ffi::c_void, tag : u32)); - FltFreePoolAlignedWithTag(core::mem::transmute(instance), core::mem::transmute(buffer), core::mem::transmute(tag)) + FltFreePoolAlignedWithTag(instance, buffer, tag) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FltFreeSecurityDescriptor(securitydescriptor: super::super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) { windows_targets::link!("fltmgr.sys" "system" fn FltFreeSecurityDescriptor(securitydescriptor : super::super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR)); - FltFreeSecurityDescriptor(core::mem::transmute(securitydescriptor)) + FltFreeSecurityDescriptor(securitydescriptor) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltFsControlFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fscontrolcode: u32, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltFsControlFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltFsControlFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fscontrolcode), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltFsControlFile(instance, fileobject, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetActivityIdCallbackData(callbackdata: *const FLT_CALLBACK_DATA, guid: *mut windows_core::GUID) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetActivityIdCallbackData(callbackdata : *const FLT_CALLBACK_DATA, guid : *mut windows_core::GUID) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetActivityIdCallbackData(core::mem::transmute(callbackdata), core::mem::transmute(guid)) + FltGetActivityIdCallbackData(callbackdata, core::mem::transmute(guid)) } #[inline] pub unsafe fn FltGetBottomInstance(volume: PFLT_VOLUME, instance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetBottomInstance(volume : PFLT_VOLUME, instance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetBottomInstance(core::mem::transmute(volume), core::mem::transmute(instance)) + FltGetBottomInstance(volume, core::mem::transmute(instance)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetContexts(fltobjects: *const FLT_RELATED_OBJECTS, desiredcontexts: u16, contexts: *mut FLT_RELATED_CONTEXTS) { windows_targets::link!("fltmgr.sys" "system" fn FltGetContexts(fltobjects : *const FLT_RELATED_OBJECTS, desiredcontexts : u16, contexts : *mut FLT_RELATED_CONTEXTS)); - FltGetContexts(core::mem::transmute(fltobjects), core::mem::transmute(desiredcontexts), core::mem::transmute(contexts)) + FltGetContexts(fltobjects, desiredcontexts, core::mem::transmute(contexts)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetContextsEx(fltobjects: *const FLT_RELATED_OBJECTS, desiredcontexts: u16, contextssize: usize, contexts: *mut FLT_RELATED_CONTEXTS_EX) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetContextsEx(fltobjects : *const FLT_RELATED_OBJECTS, desiredcontexts : u16, contextssize : usize, contexts : *mut FLT_RELATED_CONTEXTS_EX) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetContextsEx(core::mem::transmute(fltobjects), core::mem::transmute(desiredcontexts), core::mem::transmute(contextssize), core::mem::transmute(contexts)) + FltGetContextsEx(fltobjects, desiredcontexts, contextssize, core::mem::transmute(contexts)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -692,158 +635,158 @@ where P3: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetDestinationFileNameInformation(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, rootdirectory : super::super::super::super::Win32::Foundation:: HANDLE, filename : windows_core::PCWSTR, filenamelength : u32, nameoptions : u32, retfilenameinformation : *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetDestinationFileNameInformation(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(rootdirectory.unwrap_or(core::mem::zeroed())), filename.param().abi(), core::mem::transmute(filenamelength), core::mem::transmute(nameoptions), core::mem::transmute(retfilenameinformation)) + FltGetDestinationFileNameInformation(instance, fileobject, core::mem::transmute(rootdirectory.unwrap_or(core::mem::zeroed())), filename.param().abi(), filenamelength, nameoptions, core::mem::transmute(retfilenameinformation)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetDeviceObject(volume: PFLT_VOLUME, deviceobject: *mut *mut super::super::super::Foundation::DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetDeviceObject(volume : PFLT_VOLUME, deviceobject : *mut *mut super::super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetDeviceObject(core::mem::transmute(volume), core::mem::transmute(deviceobject)) + FltGetDeviceObject(volume, core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetDiskDeviceObject(volume: PFLT_VOLUME, diskdeviceobject: *mut *mut super::super::super::Foundation::DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetDiskDeviceObject(volume : PFLT_VOLUME, diskdeviceobject : *mut *mut super::super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetDiskDeviceObject(core::mem::transmute(volume), core::mem::transmute(diskdeviceobject)) + FltGetDiskDeviceObject(volume, core::mem::transmute(diskdeviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetEcpListFromCallbackData(filter: PFLT_FILTER, callbackdata: *const FLT_CALLBACK_DATA, ecplist: *mut *mut super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetEcpListFromCallbackData(filter : PFLT_FILTER, callbackdata : *const FLT_CALLBACK_DATA, ecplist : *mut *mut super::super::super::Foundation:: ECP_LIST) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetEcpListFromCallbackData(core::mem::transmute(filter), core::mem::transmute(callbackdata), core::mem::transmute(ecplist)) + FltGetEcpListFromCallbackData(filter, callbackdata, core::mem::transmute(ecplist)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetFileContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFileContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFileContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(context)) + FltGetFileContext(instance, fileobject, core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetFileNameInformation(callbackdata: *const FLT_CALLBACK_DATA, nameoptions: u32, filenameinformation: *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFileNameInformation(callbackdata : *const FLT_CALLBACK_DATA, nameoptions : u32, filenameinformation : *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFileNameInformation(core::mem::transmute(callbackdata), core::mem::transmute(nameoptions), core::mem::transmute(filenameinformation)) + FltGetFileNameInformation(callbackdata, nameoptions, core::mem::transmute(filenameinformation)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetFileNameInformationUnsafe(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: Option, nameoptions: u32, filenameinformation: *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFileNameInformationUnsafe(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, nameoptions : u32, filenameinformation : *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFileNameInformationUnsafe(core::mem::transmute(fileobject), core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(nameoptions), core::mem::transmute(filenameinformation)) + FltGetFileNameInformationUnsafe(fileobject, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), nameoptions, core::mem::transmute(filenameinformation)) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltGetFileSystemType(fltobject: *const core::ffi::c_void, filesystemtype: *mut super::super::super::super::Win32::Storage::InstallableFileSystems::FLT_FILESYSTEM_TYPE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFileSystemType(fltobject : *const core::ffi::c_void, filesystemtype : *mut super::super::super::super::Win32::Storage::InstallableFileSystems:: FLT_FILESYSTEM_TYPE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFileSystemType(core::mem::transmute(fltobject), core::mem::transmute(filesystemtype)) + FltGetFileSystemType(fltobject, core::mem::transmute(filesystemtype)) } #[inline] pub unsafe fn FltGetFilterFromInstance(instance: PFLT_INSTANCE, retfilter: *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFilterFromInstance(instance : PFLT_INSTANCE, retfilter : *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFilterFromInstance(core::mem::transmute(instance), core::mem::transmute(retfilter)) + FltGetFilterFromInstance(instance, core::mem::transmute(retfilter)) } #[inline] pub unsafe fn FltGetFilterFromName(filtername: *const super::super::super::super::Win32::Foundation::UNICODE_STRING, retfilter: *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFilterFromName(filtername : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, retfilter : *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFilterFromName(core::mem::transmute(filtername), core::mem::transmute(retfilter)) + FltGetFilterFromName(filtername, core::mem::transmute(retfilter)) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltGetFilterInformation(filter: PFLT_FILTER, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::FILTER_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFilterInformation(filter : PFLT_FILTER, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: FILTER_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFilterInformation(core::mem::transmute(filter), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltGetFilterInformation(filter, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetFsZeroingOffset(data: *const FLT_CALLBACK_DATA, zeroingoffset: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetFsZeroingOffset(data : *const FLT_CALLBACK_DATA, zeroingoffset : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFsZeroingOffset(core::mem::transmute(data), core::mem::transmute(zeroingoffset)) + FltGetFsZeroingOffset(data, core::mem::transmute(zeroingoffset)) } #[inline] pub unsafe fn FltGetInstanceContext(instance: PFLT_INSTANCE, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetInstanceContext(instance : PFLT_INSTANCE, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetInstanceContext(core::mem::transmute(instance), core::mem::transmute(context)) + FltGetInstanceContext(instance, core::mem::transmute(context)) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltGetInstanceInformation(instance: PFLT_INSTANCE, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::INSTANCE_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetInstanceInformation(instance : PFLT_INSTANCE, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: INSTANCE_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetInstanceInformation(core::mem::transmute(instance), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltGetInstanceInformation(instance, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetIoAttributionHandleFromCallbackData(data: *const FLT_CALLBACK_DATA) -> *mut core::ffi::c_void { windows_targets::link!("fltmgr.sys" "system" fn FltGetIoAttributionHandleFromCallbackData(data : *const FLT_CALLBACK_DATA) -> *mut core::ffi::c_void); - FltGetIoAttributionHandleFromCallbackData(core::mem::transmute(data)) + FltGetIoAttributionHandleFromCallbackData(data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetIoPriorityHint(data: *const FLT_CALLBACK_DATA) -> super::super::super::Foundation::IO_PRIORITY_HINT { windows_targets::link!("fltmgr.sys" "system" fn FltGetIoPriorityHint(data : *const FLT_CALLBACK_DATA) -> super::super::super::Foundation:: IO_PRIORITY_HINT); - FltGetIoPriorityHint(core::mem::transmute(data)) + FltGetIoPriorityHint(data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetIoPriorityHintFromCallbackData(data: *const FLT_CALLBACK_DATA) -> super::super::super::Foundation::IO_PRIORITY_HINT { windows_targets::link!("fltmgr.sys" "system" fn FltGetIoPriorityHintFromCallbackData(data : *const FLT_CALLBACK_DATA) -> super::super::super::Foundation:: IO_PRIORITY_HINT); - FltGetIoPriorityHintFromCallbackData(core::mem::transmute(data)) + FltGetIoPriorityHintFromCallbackData(data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetIoPriorityHintFromFileObject(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> super::super::super::Foundation::IO_PRIORITY_HINT { windows_targets::link!("fltmgr.sys" "system" fn FltGetIoPriorityHintFromFileObject(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::Foundation:: IO_PRIORITY_HINT); - FltGetIoPriorityHintFromFileObject(core::mem::transmute(fileobject)) + FltGetIoPriorityHintFromFileObject(fileobject) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltGetIoPriorityHintFromThread(thread: super::super::super::Foundation::PETHREAD) -> super::super::super::Foundation::IO_PRIORITY_HINT { windows_targets::link!("fltmgr.sys" "system" fn FltGetIoPriorityHintFromThread(thread : super::super::super::Foundation:: PETHREAD) -> super::super::super::Foundation:: IO_PRIORITY_HINT); - FltGetIoPriorityHintFromThread(core::mem::transmute(thread)) + FltGetIoPriorityHintFromThread(thread) } #[inline] pub unsafe fn FltGetIrpName(irpmajorcode: u8) -> windows_core::PSTR { windows_targets::link!("fltmgr.sys" "system" fn FltGetIrpName(irpmajorcode : u8) -> windows_core::PSTR); - FltGetIrpName(core::mem::transmute(irpmajorcode)) + FltGetIrpName(irpmajorcode) } #[inline] pub unsafe fn FltGetLowerInstance(currentinstance: PFLT_INSTANCE, lowerinstance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetLowerInstance(currentinstance : PFLT_INSTANCE, lowerinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetLowerInstance(core::mem::transmute(currentinstance), core::mem::transmute(lowerinstance)) + FltGetLowerInstance(currentinstance, core::mem::transmute(lowerinstance)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetNewSystemBufferAddress(callbackdata: *const FLT_CALLBACK_DATA) -> *mut core::ffi::c_void { windows_targets::link!("fltmgr.sys" "system" fn FltGetNewSystemBufferAddress(callbackdata : *const FLT_CALLBACK_DATA) -> *mut core::ffi::c_void); - FltGetNewSystemBufferAddress(core::mem::transmute(callbackdata)) + FltGetNewSystemBufferAddress(callbackdata) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltGetNextExtraCreateParameter(filter: PFLT_FILTER, ecplist: *const super::super::super::Foundation::ECP_LIST, currentecpcontext: Option<*const core::ffi::c_void>, nextecptype: Option<*mut windows_core::GUID>, nextecpcontext: Option<*mut *mut core::ffi::c_void>, nextecpcontextsize: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetNextExtraCreateParameter(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST, currentecpcontext : *const core::ffi::c_void, nextecptype : *mut windows_core::GUID, nextecpcontext : *mut *mut core::ffi::c_void, nextecpcontextsize : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetNextExtraCreateParameter(core::mem::transmute(filter), core::mem::transmute(ecplist), core::mem::transmute(currentecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontextsize.unwrap_or(core::mem::zeroed()))) + FltGetNextExtraCreateParameter(filter, ecplist, core::mem::transmute(currentecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontextsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetRequestorProcess(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::Foundation::PEPROCESS { windows_targets::link!("fltmgr.sys" "system" fn FltGetRequestorProcess(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::Foundation:: PEPROCESS); - FltGetRequestorProcess(core::mem::transmute(callbackdata)) + FltGetRequestorProcess(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetRequestorProcessId(callbackdata: *const FLT_CALLBACK_DATA) -> u32 { windows_targets::link!("fltmgr.sys" "system" fn FltGetRequestorProcessId(callbackdata : *const FLT_CALLBACK_DATA) -> u32); - FltGetRequestorProcessId(core::mem::transmute(callbackdata)) + FltGetRequestorProcessId(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetRequestorProcessIdEx(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::HANDLE { windows_targets::link!("fltmgr.sys" "system" fn FltGetRequestorProcessIdEx(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: HANDLE); - FltGetRequestorProcessIdEx(core::mem::transmute(callbackdata)) + FltGetRequestorProcessIdEx(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetRequestorSessionId(callbackdata: *const FLT_CALLBACK_DATA, sessionid: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetRequestorSessionId(callbackdata : *const FLT_CALLBACK_DATA, sessionid : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetRequestorSessionId(core::mem::transmute(callbackdata), core::mem::transmute(sessionid)) + FltGetRequestorSessionId(callbackdata, core::mem::transmute(sessionid)) } #[inline] pub unsafe fn FltGetRoutineAddress(fltmgrroutinename: P0) -> *mut core::ffi::c_void @@ -857,105 +800,105 @@ where #[inline] pub unsafe fn FltGetSectionContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetSectionContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetSectionContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(context)) + FltGetSectionContext(instance, fileobject, core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetStreamContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetStreamContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetStreamContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(context)) + FltGetStreamContext(instance, fileobject, core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetStreamHandleContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetStreamHandleContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetStreamHandleContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(context)) + FltGetStreamHandleContext(instance, fileobject, core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetSwappedBufferMdlAddress(callbackdata: *const FLT_CALLBACK_DATA) -> *mut super::super::super::Foundation::MDL { windows_targets::link!("fltmgr.sys" "system" fn FltGetSwappedBufferMdlAddress(callbackdata : *const FLT_CALLBACK_DATA) -> *mut super::super::super::Foundation:: MDL); - FltGetSwappedBufferMdlAddress(core::mem::transmute(callbackdata)) + FltGetSwappedBufferMdlAddress(callbackdata) } #[inline] pub unsafe fn FltGetTopInstance(volume: PFLT_VOLUME, instance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetTopInstance(volume : PFLT_VOLUME, instance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetTopInstance(core::mem::transmute(volume), core::mem::transmute(instance)) + FltGetTopInstance(volume, core::mem::transmute(instance)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltGetTransactionContext(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetTransactionContext(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetTransactionContext(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(context)) + FltGetTransactionContext(instance, transaction, core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetTunneledName(callbackdata: *const FLT_CALLBACK_DATA, filenameinformation: *const FLT_FILE_NAME_INFORMATION, rettunneledfilenameinformation: *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetTunneledName(callbackdata : *const FLT_CALLBACK_DATA, filenameinformation : *const FLT_FILE_NAME_INFORMATION, rettunneledfilenameinformation : *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetTunneledName(core::mem::transmute(callbackdata), core::mem::transmute(filenameinformation), core::mem::transmute(rettunneledfilenameinformation)) + FltGetTunneledName(callbackdata, filenameinformation, core::mem::transmute(rettunneledfilenameinformation)) } #[inline] pub unsafe fn FltGetUpperInstance(currentinstance: PFLT_INSTANCE, upperinstance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetUpperInstance(currentinstance : PFLT_INSTANCE, upperinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetUpperInstance(core::mem::transmute(currentinstance), core::mem::transmute(upperinstance)) + FltGetUpperInstance(currentinstance, core::mem::transmute(upperinstance)) } #[inline] pub unsafe fn FltGetVolumeContext(filter: PFLT_FILTER, volume: PFLT_VOLUME, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeContext(filter : PFLT_FILTER, volume : PFLT_VOLUME, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeContext(core::mem::transmute(filter), core::mem::transmute(volume), core::mem::transmute(context)) + FltGetVolumeContext(filter, volume, core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetVolumeFromDeviceObject(filter: PFLT_FILTER, deviceobject: *const super::super::super::Foundation::DEVICE_OBJECT, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeFromDeviceObject(filter : PFLT_FILTER, deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT, retvolume : *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeFromDeviceObject(core::mem::transmute(filter), core::mem::transmute(deviceobject), core::mem::transmute(retvolume)) + FltGetVolumeFromDeviceObject(filter, deviceobject, core::mem::transmute(retvolume)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltGetVolumeFromFileObject(filter: PFLT_FILTER, fileobject: *const super::super::super::Foundation::FILE_OBJECT, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeFromFileObject(filter : PFLT_FILTER, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, retvolume : *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeFromFileObject(core::mem::transmute(filter), core::mem::transmute(fileobject), core::mem::transmute(retvolume)) + FltGetVolumeFromFileObject(filter, fileobject, core::mem::transmute(retvolume)) } #[inline] pub unsafe fn FltGetVolumeFromInstance(instance: PFLT_INSTANCE, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeFromInstance(instance : PFLT_INSTANCE, retvolume : *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeFromInstance(core::mem::transmute(instance), core::mem::transmute(retvolume)) + FltGetVolumeFromInstance(instance, core::mem::transmute(retvolume)) } #[inline] pub unsafe fn FltGetVolumeFromName(filter: PFLT_FILTER, volumename: *const super::super::super::super::Win32::Foundation::UNICODE_STRING, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeFromName(filter : PFLT_FILTER, volumename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, retvolume : *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeFromName(core::mem::transmute(filter), core::mem::transmute(volumename), core::mem::transmute(retvolume)) + FltGetVolumeFromName(filter, volumename, core::mem::transmute(retvolume)) } #[inline] pub unsafe fn FltGetVolumeGuidName(volume: PFLT_VOLUME, volumeguidname: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>, buffersizeneeded: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeGuidName(volume : PFLT_VOLUME, volumeguidname : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING, buffersizeneeded : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeGuidName(core::mem::transmute(volume), core::mem::transmute(volumeguidname.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersizeneeded.unwrap_or(core::mem::zeroed()))) + FltGetVolumeGuidName(volume, core::mem::transmute(volumeguidname.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersizeneeded.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltGetVolumeInformation(volume: PFLT_VOLUME, informationclass: super::super::super::super::Win32::Storage::InstallableFileSystems::FILTER_VOLUME_INFORMATION_CLASS, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bytesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeInformation(volume : PFLT_VOLUME, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: FILTER_VOLUME_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeInformation(core::mem::transmute(volume), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bytesreturned)) + FltGetVolumeInformation(volume, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bytesreturned)) } #[inline] pub unsafe fn FltGetVolumeInstanceFromName(filter: Option, volume: PFLT_VOLUME, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, retinstance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeInstanceFromName(filter : PFLT_FILTER, volume : PFLT_VOLUME, instancename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, retinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeInstanceFromName(core::mem::transmute(filter.unwrap_or(core::mem::zeroed())), core::mem::transmute(volume), core::mem::transmute(instancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(retinstance)) + FltGetVolumeInstanceFromName(core::mem::transmute(filter.unwrap_or(core::mem::zeroed())), volume, core::mem::transmute(instancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(retinstance)) } #[inline] pub unsafe fn FltGetVolumeName(volume: PFLT_VOLUME, volumename: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>, buffersizeneeded: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeName(volume : PFLT_VOLUME, volumename : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING, buffersizeneeded : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeName(core::mem::transmute(volume), core::mem::transmute(volumename.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersizeneeded.unwrap_or(core::mem::zeroed()))) + FltGetVolumeName(volume, core::mem::transmute(volumename.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersizeneeded.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltGetVolumeProperties(volume: PFLT_VOLUME, volumeproperties: Option<*mut FLT_VOLUME_PROPERTIES>, volumepropertieslength: u32, lengthreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeProperties(volume : PFLT_VOLUME, volumeproperties : *mut FLT_VOLUME_PROPERTIES, volumepropertieslength : u32, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeProperties(core::mem::transmute(volume), core::mem::transmute(volumeproperties.unwrap_or(core::mem::zeroed())), core::mem::transmute(volumepropertieslength), core::mem::transmute(lengthreturned)) + FltGetVolumeProperties(volume, core::mem::transmute(volumeproperties.unwrap_or(core::mem::zeroed())), volumepropertieslength, core::mem::transmute(lengthreturned)) } #[inline] pub unsafe fn FltInitExtraCreateParameterLookasideList(filter: PFLT_FILTER, lookaside: *mut core::ffi::c_void, flags: u32, size: usize, tag: u32) { windows_targets::link!("fltmgr.sys" "system" fn FltInitExtraCreateParameterLookasideList(filter : PFLT_FILTER, lookaside : *mut core::ffi::c_void, flags : u32, size : usize, tag : u32)); - FltInitExtraCreateParameterLookasideList(core::mem::transmute(filter), core::mem::transmute(lookaside), core::mem::transmute(flags), core::mem::transmute(size), core::mem::transmute(tag)) + FltInitExtraCreateParameterLookasideList(filter, core::mem::transmute(lookaside), flags, size, tag) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -979,7 +922,7 @@ pub unsafe fn FltInitializePushLock() -> usize { #[inline] pub unsafe fn FltInsertExtraCreateParameter(filter: PFLT_FILTER, ecplist: *mut super::super::super::Foundation::ECP_LIST, ecpcontext: *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltInsertExtraCreateParameter(filter : PFLT_FILTER, ecplist : *mut super::super::super::Foundation:: ECP_LIST, ecpcontext : *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltInsertExtraCreateParameter(core::mem::transmute(filter), core::mem::transmute(ecplist), core::mem::transmute(ecpcontext)) + FltInsertExtraCreateParameter(filter, core::mem::transmute(ecplist), core::mem::transmute(ecpcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -991,91 +934,79 @@ pub unsafe fn FltIs32bitProcess(callbackdata: Option<*const FLT_CALLBACK_DATA>) #[inline] pub unsafe fn FltIsCallbackDataDirty(data: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltIsCallbackDataDirty(data : *const FLT_CALLBACK_DATA) -> bool); - FltIsCallbackDataDirty(core::mem::transmute(data)) + FltIsCallbackDataDirty(data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltIsDirectory(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: PFLT_INSTANCE, isdirectory: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltIsDirectory(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, isdirectory : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsDirectory(core::mem::transmute(fileobject), core::mem::transmute(instance), core::mem::transmute(isdirectory)) + FltIsDirectory(fileobject, instance, core::mem::transmute(isdirectory)) } #[inline] pub unsafe fn FltIsEcpAcknowledged(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpAcknowledged(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> bool); - FltIsEcpAcknowledged(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) + FltIsEcpAcknowledged(filter, ecpcontext) } #[inline] pub unsafe fn FltIsEcpFromUserMode(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpFromUserMode(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> bool); - FltIsEcpFromUserMode(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) + FltIsEcpFromUserMode(filter, ecpcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltIsFltMgrVolumeDeviceObject(deviceobject: *const super::super::super::Foundation::DEVICE_OBJECT) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltIsFltMgrVolumeDeviceObject(deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT) -> bool); - FltIsFltMgrVolumeDeviceObject(core::mem::transmute(deviceobject)) + FltIsFltMgrVolumeDeviceObject(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltIsIoCanceled(callbackdata: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltIsIoCanceled(callbackdata : *const FLT_CALLBACK_DATA) -> bool); - FltIsIoCanceled(core::mem::transmute(callbackdata)) + FltIsIoCanceled(callbackdata) } #[inline] pub unsafe fn FltIsIoRedirectionAllowed(sourceinstance: PFLT_INSTANCE, targetinstance: PFLT_INSTANCE, redirectionallowed: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowed(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, redirectionallowed : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsIoRedirectionAllowed(core::mem::transmute(sourceinstance), core::mem::transmute(targetinstance), core::mem::transmute(redirectionallowed)) + FltIsIoRedirectionAllowed(sourceinstance, targetinstance, core::mem::transmute(redirectionallowed)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltIsIoRedirectionAllowedForOperation(data: *const FLT_CALLBACK_DATA, targetinstance: PFLT_INSTANCE, redirectionallowedthisio: *mut bool, redirectionallowedallio: Option<*mut bool>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowedForOperation(data : *const FLT_CALLBACK_DATA, targetinstance : PFLT_INSTANCE, redirectionallowedthisio : *mut bool, redirectionallowedallio : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsIoRedirectionAllowedForOperation(core::mem::transmute(data), core::mem::transmute(targetinstance), core::mem::transmute(redirectionallowedthisio), core::mem::transmute(redirectionallowedallio.unwrap_or(core::mem::zeroed()))) + FltIsIoRedirectionAllowedForOperation(data, targetinstance, core::mem::transmute(redirectionallowedthisio), core::mem::transmute(redirectionallowedallio.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltIsOperationSynchronous(callbackdata: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltIsOperationSynchronous(callbackdata : *const FLT_CALLBACK_DATA) -> bool); - FltIsOperationSynchronous(core::mem::transmute(callbackdata)) + FltIsOperationSynchronous(callbackdata) } #[inline] pub unsafe fn FltIsVolumeSnapshot(fltobject: *const core::ffi::c_void, issnapshotvolume: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeSnapshot(fltobject : *const core::ffi::c_void, issnapshotvolume : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsVolumeSnapshot(core::mem::transmute(fltobject), core::mem::transmute(issnapshotvolume)) + FltIsVolumeSnapshot(fltobject, core::mem::transmute(issnapshotvolume)) } #[inline] pub unsafe fn FltIsVolumeWritable(fltobject: *const core::ffi::c_void, iswritable: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeWritable(fltobject : *const core::ffi::c_void, iswritable : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsVolumeWritable(core::mem::transmute(fltobject), core::mem::transmute(iswritable)) + FltIsVolumeWritable(fltobject, core::mem::transmute(iswritable)) } #[inline] pub unsafe fn FltLoadFilter(filtername: *const super::super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltLoadFilter(filtername : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltLoadFilter(core::mem::transmute(filtername)) + FltLoadFilter(filtername) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltLockUserBuffer(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltLockUserBuffer(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltLockUserBuffer(core::mem::transmute(callbackdata)) + FltLockUserBuffer(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltNotifyFilterChangeDirectory(notifysync: super::super::super::Foundation::PNOTIFY_SYNC, notifylist: *mut super::super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void, fulldirectoryname: *const super::super::super::super::Win32::System::Kernel::STRING, watchtree: bool, ignorebuffer: bool, completionfilter: u32, notifycallbackdata: *const FLT_CALLBACK_DATA, traversecallback: Option, subjectcontext: Option<*const super::super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, filtercallback: Option) { windows_targets::link!("fltmgr.sys" "system" fn FltNotifyFilterChangeDirectory(notifysync : super::super::super::Foundation:: PNOTIFY_SYNC, notifylist : *mut super::super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifycallbackdata : *const FLT_CALLBACK_DATA, traversecallback : super:: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : super:: PFILTER_REPORT_CHANGE)); - FltNotifyFilterChangeDirectory( - core::mem::transmute(notifysync), - core::mem::transmute(notifylist), - core::mem::transmute(fscontext), - core::mem::transmute(fulldirectoryname), - core::mem::transmute(watchtree), - core::mem::transmute(ignorebuffer), - core::mem::transmute(completionfilter), - core::mem::transmute(notifycallbackdata), - core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), - core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filtercallback.unwrap_or(core::mem::zeroed())), - ) + FltNotifyFilterChangeDirectory(notifysync, core::mem::transmute(notifylist), fscontext, fulldirectoryname, watchtree, ignorebuffer, completionfilter, notifycallbackdata, core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(filtercallback.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltObjectDereference(fltobject: *mut core::ffi::c_void) { @@ -1091,48 +1022,48 @@ pub unsafe fn FltObjectReference(fltobject: *mut core::ffi::c_void) -> super::su #[inline] pub unsafe fn FltOpenVolume(instance: PFLT_INSTANCE, volumehandle: *mut super::super::super::super::Win32::Foundation::HANDLE, volumefileobject: Option<*mut *mut super::super::super::Foundation::FILE_OBJECT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltOpenVolume(instance : PFLT_INSTANCE, volumehandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, volumefileobject : *mut *mut super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltOpenVolume(core::mem::transmute(instance), core::mem::transmute(volumehandle), core::mem::transmute(volumefileobject.unwrap_or(core::mem::zeroed()))) + FltOpenVolume(instance, core::mem::transmute(volumehandle), core::mem::transmute(volumefileobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltOplockBreakH(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, flags: u32, context: Option<*const core::ffi::c_void>, waitcompletionroutine: Option, prepostcallbackdataroutine: Option) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltOplockBreakH(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, flags : u32, context : *const core::ffi::c_void, waitcompletionroutine : PFLTOPLOCK_WAIT_COMPLETE_ROUTINE, prepostcallbackdataroutine : PFLTOPLOCK_PREPOST_CALLBACKDATA_ROUTINE) -> FLT_PREOP_CALLBACK_STATUS); - FltOplockBreakH(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) + FltOplockBreakH(oplock, callbackdata, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltOplockBreakToNone(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, context: Option<*const core::ffi::c_void>, waitcompletionroutine: Option, prepostcallbackdataroutine: Option) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltOplockBreakToNone(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, context : *const core::ffi::c_void, waitcompletionroutine : PFLTOPLOCK_WAIT_COMPLETE_ROUTINE, prepostcallbackdataroutine : PFLTOPLOCK_PREPOST_CALLBACKDATA_ROUTINE) -> FLT_PREOP_CALLBACK_STATUS); - FltOplockBreakToNone(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) + FltOplockBreakToNone(oplock, callbackdata, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltOplockBreakToNoneEx(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, flags: u32, context: Option<*const core::ffi::c_void>, waitcompletionroutine: Option, prepostcallbackdataroutine: Option) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltOplockBreakToNoneEx(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, flags : u32, context : *const core::ffi::c_void, waitcompletionroutine : PFLTOPLOCK_WAIT_COMPLETE_ROUTINE, prepostcallbackdataroutine : PFLTOPLOCK_PREPOST_CALLBACKDATA_ROUTINE) -> FLT_PREOP_CALLBACK_STATUS); - FltOplockBreakToNoneEx(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) + FltOplockBreakToNoneEx(oplock, callbackdata, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prepostcallbackdataroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltOplockFsctrl(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, opencount: u32) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltOplockFsctrl(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, opencount : u32) -> FLT_PREOP_CALLBACK_STATUS); - FltOplockFsctrl(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(opencount)) + FltOplockFsctrl(oplock, callbackdata, opencount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltOplockFsctrlEx(oplock: *const *const core::ffi::c_void, callbackdata: *const FLT_CALLBACK_DATA, opencount: u32, flags: u32) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltOplockFsctrlEx(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, opencount : u32, flags : u32) -> FLT_PREOP_CALLBACK_STATUS); - FltOplockFsctrlEx(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(opencount), core::mem::transmute(flags)) + FltOplockFsctrlEx(oplock, callbackdata, opencount, flags) } #[inline] pub unsafe fn FltOplockIsFastIoPossible(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool); - FltOplockIsFastIoPossible(core::mem::transmute(oplock)) + FltOplockIsFastIoPossible(oplock) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltOplockIsSharedRequest(callbackdata: *const FLT_CALLBACK_DATA) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsSharedRequest(callbackdata : *const FLT_CALLBACK_DATA) -> bool); - FltOplockIsSharedRequest(core::mem::transmute(callbackdata)) + FltOplockIsSharedRequest(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1143,7 +1074,7 @@ pub unsafe fn FltOplockKeysEqual(fo1: Option<*const super::super::super::Foundat #[inline] pub unsafe fn FltParseFileName(filename: *const super::super::super::super::Win32::Foundation::UNICODE_STRING, extension: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>, stream: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>, finalcomponent: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltParseFileName(filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, extension : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING, stream : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING, finalcomponent : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltParseFileName(core::mem::transmute(filename), core::mem::transmute(extension.unwrap_or(core::mem::zeroed())), core::mem::transmute(stream.unwrap_or(core::mem::zeroed())), core::mem::transmute(finalcomponent.unwrap_or(core::mem::zeroed()))) + FltParseFileName(filename, core::mem::transmute(extension.unwrap_or(core::mem::zeroed())), core::mem::transmute(stream.unwrap_or(core::mem::zeroed())), core::mem::transmute(finalcomponent.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltParseFileNameInformation(filenameinformation: *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation::NTSTATUS { @@ -1154,7 +1085,7 @@ pub unsafe fn FltParseFileNameInformation(filenameinformation: *mut FLT_FILE_NAM #[inline] pub unsafe fn FltPerformAsynchronousIo(callbackdata: *mut FLT_CALLBACK_DATA, callbackroutine: PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext: *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltPerformAsynchronousIo(callbackdata : *mut FLT_CALLBACK_DATA, callbackroutine : PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltPerformAsynchronousIo(core::mem::transmute(callbackdata), core::mem::transmute(callbackroutine), core::mem::transmute(callbackcontext)) + FltPerformAsynchronousIo(core::mem::transmute(callbackdata), callbackroutine, callbackcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1166,126 +1097,126 @@ pub unsafe fn FltPerformSynchronousIo(callbackdata: *mut FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltPrePrepareComplete(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: Option) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltPrePrepareComplete(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltPrePrepareComplete(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) + FltPrePrepareComplete(instance, transaction, core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltPrepareComplete(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: Option) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltPrepareComplete(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltPrepareComplete(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) + FltPrepareComplete(instance, transaction, core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltPrepareToReuseEcp(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) { windows_targets::link!("fltmgr.sys" "system" fn FltPrepareToReuseEcp(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void)); - FltPrepareToReuseEcp(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) + FltPrepareToReuseEcp(filter, ecpcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltProcessFileLock(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA, context: Option<*const core::ffi::c_void>) -> FLT_PREOP_CALLBACK_STATUS { windows_targets::link!("fltmgr.sys" "system" fn FltProcessFileLock(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA, context : *const core::ffi::c_void) -> FLT_PREOP_CALLBACK_STATUS); - FltProcessFileLock(core::mem::transmute(filelock), core::mem::transmute(callbackdata), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + FltProcessFileLock(filelock, callbackdata, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltPropagateActivityIdToThread(callbackdata: *const FLT_CALLBACK_DATA, propagateid: *mut windows_core::GUID, originalid: *mut *mut windows_core::GUID) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltPropagateActivityIdToThread(callbackdata : *const FLT_CALLBACK_DATA, propagateid : *mut windows_core::GUID, originalid : *mut *mut windows_core::GUID) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltPropagateActivityIdToThread(core::mem::transmute(callbackdata), core::mem::transmute(propagateid), core::mem::transmute(originalid)) + FltPropagateActivityIdToThread(callbackdata, core::mem::transmute(propagateid), core::mem::transmute(originalid)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltPropagateIrpExtension(sourcedata: *const FLT_CALLBACK_DATA, targetdata: *mut FLT_CALLBACK_DATA, flags: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltPropagateIrpExtension(sourcedata : *const FLT_CALLBACK_DATA, targetdata : *mut FLT_CALLBACK_DATA, flags : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltPropagateIrpExtension(core::mem::transmute(sourcedata), core::mem::transmute(targetdata), core::mem::transmute(flags)) + FltPropagateIrpExtension(sourcedata, core::mem::transmute(targetdata), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltPurgeFileNameInformationCache(instance: PFLT_INSTANCE, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltPurgeFileNameInformationCache(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltPurgeFileNameInformationCache(core::mem::transmute(instance), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed()))) + FltPurgeFileNameInformationCache(instance, core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryDirectoryFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS, returnsingleentry: bool, filename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryDirectoryFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(returnsingleentry), core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltQueryDirectoryFile(instance, fileobject, core::mem::transmute(fileinformation), length, fileinformationclass, returnsingleentry, core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), restartscan, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryDirectoryFileEx(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS, queryflags: u32, filename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFileEx(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryDirectoryFileEx(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(queryflags), core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltQueryDirectoryFileEx(instance, fileobject, core::mem::transmute(fileinformation), length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryEaFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, returnedeadata: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryEaFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryEaFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(returnedeadata), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltQueryEaFile(instance, fileobject, core::mem::transmute(returnedeadata), length, returnsingleentry, core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), ealistlength, core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn FltQueryInformationByName(filter: PFLT_FILTER, instance: Option, objectattributes: *const super::super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS, drivercontext: Option<*const super::super::super::System::SystemServices::IO_DRIVER_CREATE_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryInformationByName(filter : PFLT_FILTER, instance : PFLT_INSTANCE, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, drivercontext : *const super::super::super::System::SystemServices:: IO_DRIVER_CREATE_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryInformationByName(core::mem::transmute(filter), core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) + FltQueryInformationByName(filter, core::mem::transmute(instance.unwrap_or(core::mem::zeroed())), objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass, core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryInformationFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltQueryInformationFile(instance, fileobject, core::mem::transmute(fileinformation), length, fileinformationclass, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryQuotaInformationFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: Option<*const u32>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryQuotaInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryQuotaInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltQueryQuotaInformationFile(instance, fileobject, core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, returnsingleentry, core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), sidlistlength, core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), restartscan, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQuerySecurityObject(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, securityinformation: u32, securitydescriptor: Option, length: u32, lengthneeded: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQuerySecurityObject(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, securityinformation : u32, securitydescriptor : super::super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQuerySecurityObject(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(lengthneeded.unwrap_or(core::mem::zeroed()))) + FltQuerySecurityObject(instance, fileobject, securityinformation, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(lengthneeded.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FltQueryVolumeInformation(instance: PFLT_INSTANCE, iosb: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fsinformation: *mut core::ffi::c_void, length: u32, fsinformationclass: super::FS_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryVolumeInformation(instance : PFLT_INSTANCE, iosb : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : super:: FS_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryVolumeInformation(core::mem::transmute(instance), core::mem::transmute(iosb), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass)) + FltQueryVolumeInformation(instance, core::mem::transmute(iosb), core::mem::transmute(fsinformation), length, fsinformationclass) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryVolumeInformationFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fsinformation: *mut core::ffi::c_void, length: u32, fsinformationclass: super::FS_INFORMATION_CLASS, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueryVolumeInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : super:: FS_INFORMATION_CLASS, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryVolumeInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FltQueryVolumeInformationFile(instance, fileobject, core::mem::transmute(fsinformation), length, fsinformationclass, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueueDeferredIoWorkItem(fltworkitem: PFLT_DEFERRED_IO_WORKITEM, data: *const FLT_CALLBACK_DATA, workerroutine: PFLT_DEFERRED_IO_WORKITEM_ROUTINE, queuetype: super::super::super::System::SystemServices::WORK_QUEUE_TYPE, context: *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueueDeferredIoWorkItem(fltworkitem : PFLT_DEFERRED_IO_WORKITEM, data : *const FLT_CALLBACK_DATA, workerroutine : PFLT_DEFERRED_IO_WORKITEM_ROUTINE, queuetype : super::super::super::System::SystemServices:: WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueueDeferredIoWorkItem(core::mem::transmute(fltworkitem), core::mem::transmute(data), core::mem::transmute(workerroutine), core::mem::transmute(queuetype), core::mem::transmute(context)) + FltQueueDeferredIoWorkItem(fltworkitem, data, workerroutine, queuetype, context) } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] pub unsafe fn FltQueueGenericWorkItem(fltworkitem: PFLT_GENERIC_WORKITEM, fltobject: *const core::ffi::c_void, workerroutine: PFLT_GENERIC_WORKITEM_ROUTINE, queuetype: super::super::super::System::SystemServices::WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltQueueGenericWorkItem(fltworkitem : PFLT_GENERIC_WORKITEM, fltobject : *const core::ffi::c_void, workerroutine : PFLT_GENERIC_WORKITEM_ROUTINE, queuetype : super::super::super::System::SystemServices:: WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueueGenericWorkItem(core::mem::transmute(fltworkitem), core::mem::transmute(fltobject), core::mem::transmute(workerroutine), core::mem::transmute(queuetype), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + FltQueueGenericWorkItem(fltworkitem, fltobject, workerroutine, queuetype, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltReadFile(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, byteoffset: Option<*const i64>, length: u32, buffer: *mut core::ffi::c_void, flags: u32, bytesread: Option<*mut u32>, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltReadFile(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, byteoffset : *const i64, length : u32, buffer : *mut core::ffi::c_void, flags : u32, bytesread : *mut u32, callbackroutine : PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltReadFile(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(buffer), core::mem::transmute(flags), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + FltReadFile(initiatinginstance, fileobject, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(buffer), flags, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltReadFileEx(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, byteoffset: Option<*const i64>, length: u32, buffer: Option<*mut core::ffi::c_void>, flags: u32, bytesread: Option<*mut u32>, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>, key: Option<*const u32>, mdl: Option<*const super::super::super::Foundation::MDL>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltReadFileEx(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, byteoffset : *const i64, length : u32, buffer : *mut core::ffi::c_void, flags : u32, bytesread : *mut u32, callbackroutine : PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext : *const core::ffi::c_void, key : *const u32, mdl : *const super::super::super::Foundation:: MDL) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltReadFileEx( - core::mem::transmute(initiatinginstance), - core::mem::transmute(fileobject), + initiatinginstance, + fileobject, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(length), + length, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(flags), + flags, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), @@ -1296,49 +1227,49 @@ pub unsafe fn FltReadFileEx(initiatinginstance: PFLT_INSTANCE, fileobject: *cons #[inline] pub unsafe fn FltReferenceContext(context: PFLT_CONTEXT) { windows_targets::link!("fltmgr.sys" "system" fn FltReferenceContext(context : PFLT_CONTEXT)); - FltReferenceContext(core::mem::transmute(context)) + FltReferenceContext(context) } #[inline] pub unsafe fn FltReferenceFileNameInformation(filenameinformation: *const FLT_FILE_NAME_INFORMATION) { windows_targets::link!("fltmgr.sys" "system" fn FltReferenceFileNameInformation(filenameinformation : *const FLT_FILE_NAME_INFORMATION)); - FltReferenceFileNameInformation(core::mem::transmute(filenameinformation)) + FltReferenceFileNameInformation(filenameinformation) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_Storage_InstallableFileSystems", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRegisterFilter(driver: *const super::super::super::Foundation::DRIVER_OBJECT, registration: *const FLT_REGISTRATION, retfilter: *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRegisterFilter(driver : *const super::super::super::Foundation:: DRIVER_OBJECT, registration : *const FLT_REGISTRATION, retfilter : *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRegisterFilter(core::mem::transmute(driver), core::mem::transmute(registration), core::mem::transmute(retfilter)) + FltRegisterFilter(driver, registration, core::mem::transmute(retfilter)) } #[inline] pub unsafe fn FltRegisterForDataScan(instance: PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRegisterForDataScan(instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRegisterForDataScan(core::mem::transmute(instance)) + FltRegisterForDataScan(instance) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltReissueSynchronousIo(initiatinginstance: PFLT_INSTANCE, callbackdata: *const FLT_CALLBACK_DATA) { windows_targets::link!("fltmgr.sys" "system" fn FltReissueSynchronousIo(initiatinginstance : PFLT_INSTANCE, callbackdata : *const FLT_CALLBACK_DATA)); - FltReissueSynchronousIo(core::mem::transmute(initiatinginstance), core::mem::transmute(callbackdata)) + FltReissueSynchronousIo(initiatinginstance, callbackdata) } #[inline] pub unsafe fn FltReleaseContext(context: PFLT_CONTEXT) { windows_targets::link!("fltmgr.sys" "system" fn FltReleaseContext(context : PFLT_CONTEXT)); - FltReleaseContext(core::mem::transmute(context)) + FltReleaseContext(context) } #[inline] pub unsafe fn FltReleaseContexts(contexts: *const FLT_RELATED_CONTEXTS) { windows_targets::link!("fltmgr.sys" "system" fn FltReleaseContexts(contexts : *const FLT_RELATED_CONTEXTS)); - FltReleaseContexts(core::mem::transmute(contexts)) + FltReleaseContexts(contexts) } #[inline] pub unsafe fn FltReleaseContextsEx(contextssize: usize, contexts: *const FLT_RELATED_CONTEXTS_EX) { windows_targets::link!("fltmgr.sys" "system" fn FltReleaseContextsEx(contextssize : usize, contexts : *const FLT_RELATED_CONTEXTS_EX)); - FltReleaseContextsEx(core::mem::transmute(contextssize), core::mem::transmute(contexts)) + FltReleaseContextsEx(contextssize, contexts) } #[inline] pub unsafe fn FltReleaseFileNameInformation(filenameinformation: *const FLT_FILE_NAME_INFORMATION) { windows_targets::link!("fltmgr.sys" "system" fn FltReleaseFileNameInformation(filenameinformation : *const FLT_FILE_NAME_INFORMATION)); - FltReleaseFileNameInformation(core::mem::transmute(filenameinformation)) + FltReleaseFileNameInformation(filenameinformation) } #[inline] pub unsafe fn FltReleasePushLock(pushlock: *mut usize) { @@ -1348,7 +1279,7 @@ pub unsafe fn FltReleasePushLock(pushlock: *mut usize) { #[inline] pub unsafe fn FltReleasePushLockEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("fltmgr.sys" "system" fn FltReleasePushLockEx(pushlock : *mut usize, flags : u32)); - FltReleasePushLockEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + FltReleasePushLockEx(core::mem::transmute(pushlock), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1360,43 +1291,43 @@ pub unsafe fn FltReleaseResource(resource: *mut super::super::super::Foundation: #[inline] pub unsafe fn FltRemoveExtraCreateParameter(filter: PFLT_FILTER, ecplist: *mut super::super::super::Foundation::ECP_LIST, ecptype: *const windows_core::GUID, ecpcontext: *mut *mut core::ffi::c_void, ecpcontextsize: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRemoveExtraCreateParameter(filter : PFLT_FILTER, ecplist : *mut super::super::super::Foundation:: ECP_LIST, ecptype : *const windows_core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRemoveExtraCreateParameter(core::mem::transmute(filter), core::mem::transmute(ecplist), core::mem::transmute(ecptype), core::mem::transmute(ecpcontext), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) + FltRemoveExtraCreateParameter(filter, core::mem::transmute(ecplist), ecptype, core::mem::transmute(ecpcontext), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRemoveOpenReparseEntry(filter: PFLT_FILTER, data: *const FLT_CALLBACK_DATA, openreparseentry: *const super::OPEN_REPARSE_LIST_ENTRY) { windows_targets::link!("fltmgr.sys" "system" fn FltRemoveOpenReparseEntry(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, openreparseentry : *const super:: OPEN_REPARSE_LIST_ENTRY)); - FltRemoveOpenReparseEntry(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(openreparseentry)) + FltRemoveOpenReparseEntry(filter, data, openreparseentry) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRequestFileInfoOnCreateCompletion(filter: PFLT_FILTER, data: *const FLT_CALLBACK_DATA, infoclassflags: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRequestFileInfoOnCreateCompletion(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, infoclassflags : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRequestFileInfoOnCreateCompletion(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(infoclassflags)) + FltRequestFileInfoOnCreateCompletion(filter, data, infoclassflags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRequestOperationStatusCallback(data: *const FLT_CALLBACK_DATA, callbackroutine: PFLT_GET_OPERATION_STATUS_CALLBACK, requestercontext: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRequestOperationStatusCallback(data : *const FLT_CALLBACK_DATA, callbackroutine : PFLT_GET_OPERATION_STATUS_CALLBACK, requestercontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRequestOperationStatusCallback(core::mem::transmute(data), core::mem::transmute(callbackroutine), core::mem::transmute(requestercontext.unwrap_or(core::mem::zeroed()))) + FltRequestOperationStatusCallback(data, callbackroutine, core::mem::transmute(requestercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRetainSwappedBufferMdlAddress(callbackdata: *const FLT_CALLBACK_DATA) { windows_targets::link!("fltmgr.sys" "system" fn FltRetainSwappedBufferMdlAddress(callbackdata : *const FLT_CALLBACK_DATA)); - FltRetainSwappedBufferMdlAddress(core::mem::transmute(callbackdata)) + FltRetainSwappedBufferMdlAddress(callbackdata) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRetrieveFileInfoOnCreateCompletion(filter: PFLT_FILTER, data: *const FLT_CALLBACK_DATA, infoclass: u32, size: *mut u32) -> *mut core::ffi::c_void { windows_targets::link!("fltmgr.sys" "system" fn FltRetrieveFileInfoOnCreateCompletion(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, infoclass : u32, size : *mut u32) -> *mut core::ffi::c_void); - FltRetrieveFileInfoOnCreateCompletion(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(infoclass), core::mem::transmute(size)) + FltRetrieveFileInfoOnCreateCompletion(filter, data, infoclass, core::mem::transmute(size)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltRetrieveFileInfoOnCreateCompletionEx(filter: PFLT_FILTER, data: *const FLT_CALLBACK_DATA, infoclass: u32, retinfosize: *mut u32, retinfobuffer: *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRetrieveFileInfoOnCreateCompletionEx(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, infoclass : u32, retinfosize : *mut u32, retinfobuffer : *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRetrieveFileInfoOnCreateCompletionEx(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(infoclass), core::mem::transmute(retinfosize), core::mem::transmute(retinfobuffer)) + FltRetrieveFileInfoOnCreateCompletionEx(filter, data, infoclass, core::mem::transmute(retinfosize), core::mem::transmute(retinfobuffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1414,18 +1345,18 @@ pub unsafe fn FltReuseCallbackData(callbackdata: *mut FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltRollbackComplete(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: Option) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRollbackComplete(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRollbackComplete(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) + FltRollbackComplete(instance, transaction, core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltRollbackEnlistment(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: Option) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltRollbackEnlistment(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRollbackEnlistment(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) + FltRollbackEnlistment(instance, transaction, core::mem::transmute(transactioncontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltSendMessage(filter: PFLT_FILTER, clientport: *const PFLT_PORT, senderbuffer: *const core::ffi::c_void, senderbufferlength: u32, replybuffer: Option<*mut core::ffi::c_void>, replylength: Option<*mut u32>, timeout: Option<*const i64>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSendMessage(filter : PFLT_FILTER, clientport : *const PFLT_PORT, senderbuffer : *const core::ffi::c_void, senderbufferlength : u32, replybuffer : *mut core::ffi::c_void, replylength : *mut u32, timeout : *const i64) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSendMessage(core::mem::transmute(filter), core::mem::transmute(clientport), core::mem::transmute(senderbuffer), core::mem::transmute(senderbufferlength), core::mem::transmute(replybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(replylength.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + FltSendMessage(filter, clientport, senderbuffer, senderbufferlength, core::mem::transmute(replybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(replylength.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1443,199 +1374,199 @@ pub unsafe fn FltSetCallbackDataDirty(data: *mut FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltSetCancelCompletion(callbackdata: *const FLT_CALLBACK_DATA, canceledcallback: PFLT_COMPLETE_CANCELED_CALLBACK) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetCancelCompletion(callbackdata : *const FLT_CALLBACK_DATA, canceledcallback : PFLT_COMPLETE_CANCELED_CALLBACK) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetCancelCompletion(core::mem::transmute(callbackdata), core::mem::transmute(canceledcallback)) + FltSetCancelCompletion(callbackdata, canceledcallback) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetEaFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, eabuffer: *const core::ffi::c_void, length: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetEaFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, eabuffer : *const core::ffi::c_void, length : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetEaFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(eabuffer), core::mem::transmute(length)) + FltSetEaFile(instance, fileobject, eabuffer, length) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetEcpListIntoCallbackData(filter: PFLT_FILTER, callbackdata: *const FLT_CALLBACK_DATA, ecplist: *const super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetEcpListIntoCallbackData(filter : PFLT_FILTER, callbackdata : *const FLT_CALLBACK_DATA, ecplist : *const super::super::super::Foundation:: ECP_LIST) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetEcpListIntoCallbackData(core::mem::transmute(filter), core::mem::transmute(callbackdata), core::mem::transmute(ecplist)) + FltSetEcpListIntoCallbackData(filter, callbackdata, ecplist) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetFileContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, operation: FLT_SET_CONTEXT_OPERATION, newcontext: PFLT_CONTEXT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetFileContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, operation : FLT_SET_CONTEXT_OPERATION, newcontext : PFLT_CONTEXT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetFileContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(operation), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltSetFileContext(instance, fileobject, operation, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetFsZeroingOffset(data: *const FLT_CALLBACK_DATA, zeroingoffset: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetFsZeroingOffset(data : *const FLT_CALLBACK_DATA, zeroingoffset : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetFsZeroingOffset(core::mem::transmute(data), core::mem::transmute(zeroingoffset)) + FltSetFsZeroingOffset(data, zeroingoffset) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetFsZeroingOffsetRequired(data: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetFsZeroingOffsetRequired(data : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetFsZeroingOffsetRequired(core::mem::transmute(data)) + FltSetFsZeroingOffsetRequired(data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetInformationFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileinformation: *const core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *const core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + FltSetInformationFile(instance, fileobject, fileinformation, length, fileinformationclass) } #[inline] pub unsafe fn FltSetInstanceContext(instance: PFLT_INSTANCE, operation: FLT_SET_CONTEXT_OPERATION, newcontext: PFLT_CONTEXT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetInstanceContext(instance : PFLT_INSTANCE, operation : FLT_SET_CONTEXT_OPERATION, newcontext : PFLT_CONTEXT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetInstanceContext(core::mem::transmute(instance), core::mem::transmute(operation), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltSetInstanceContext(instance, operation, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetIoPriorityHintIntoCallbackData(data: *const FLT_CALLBACK_DATA, priorityhint: super::super::super::Foundation::IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetIoPriorityHintIntoCallbackData(data : *const FLT_CALLBACK_DATA, priorityhint : super::super::super::Foundation:: IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetIoPriorityHintIntoCallbackData(core::mem::transmute(data), core::mem::transmute(priorityhint)) + FltSetIoPriorityHintIntoCallbackData(data, priorityhint) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetIoPriorityHintIntoFileObject(fileobject: *const super::super::super::Foundation::FILE_OBJECT, priorityhint: super::super::super::Foundation::IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetIoPriorityHintIntoFileObject(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, priorityhint : super::super::super::Foundation:: IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetIoPriorityHintIntoFileObject(core::mem::transmute(fileobject), core::mem::transmute(priorityhint)) + FltSetIoPriorityHintIntoFileObject(fileobject, priorityhint) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltSetIoPriorityHintIntoThread(thread: super::super::super::Foundation::PETHREAD, priorityhint: super::super::super::Foundation::IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetIoPriorityHintIntoThread(thread : super::super::super::Foundation:: PETHREAD, priorityhint : super::super::super::Foundation:: IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetIoPriorityHintIntoThread(core::mem::transmute(thread), core::mem::transmute(priorityhint)) + FltSetIoPriorityHintIntoThread(thread, priorityhint) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetQuotaInformationFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, buffer: *const core::ffi::c_void, length: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetQuotaInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetQuotaInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(buffer), core::mem::transmute(length)) + FltSetQuotaInformationFile(instance, fileobject, buffer, length) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetSecurityObject(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, securityinformation: u32, securitydescriptor: super::super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetSecurityObject(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, securityinformation : u32, securitydescriptor : super::super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetSecurityObject(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor)) + FltSetSecurityObject(instance, fileobject, securityinformation, securitydescriptor) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetStreamContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, operation: FLT_SET_CONTEXT_OPERATION, newcontext: PFLT_CONTEXT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetStreamContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, operation : FLT_SET_CONTEXT_OPERATION, newcontext : PFLT_CONTEXT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetStreamContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(operation), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltSetStreamContext(instance, fileobject, operation, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSetStreamHandleContext(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, operation: FLT_SET_CONTEXT_OPERATION, newcontext: PFLT_CONTEXT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetStreamHandleContext(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, operation : FLT_SET_CONTEXT_OPERATION, newcontext : PFLT_CONTEXT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetStreamHandleContext(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(operation), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltSetStreamHandleContext(instance, fileobject, operation, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltSetTransactionContext(instance: PFLT_INSTANCE, transaction: *const super::super::super::Foundation::KTRANSACTION, operation: FLT_SET_CONTEXT_OPERATION, newcontext: PFLT_CONTEXT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetTransactionContext(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, operation : FLT_SET_CONTEXT_OPERATION, newcontext : PFLT_CONTEXT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetTransactionContext(core::mem::transmute(instance), core::mem::transmute(transaction), core::mem::transmute(operation), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltSetTransactionContext(instance, transaction, operation, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FltSetVolumeContext(volume: PFLT_VOLUME, operation: FLT_SET_CONTEXT_OPERATION, newcontext: PFLT_CONTEXT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetVolumeContext(volume : PFLT_VOLUME, operation : FLT_SET_CONTEXT_OPERATION, newcontext : PFLT_CONTEXT, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetVolumeContext(core::mem::transmute(volume), core::mem::transmute(operation), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + FltSetVolumeContext(volume, operation, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FltSetVolumeInformation(instance: PFLT_INSTANCE, iosb: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fsinformation: *mut core::ffi::c_void, length: u32, fsinformationclass: super::FS_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltSetVolumeInformation(instance : PFLT_INSTANCE, iosb : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : super:: FS_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltSetVolumeInformation(core::mem::transmute(instance), core::mem::transmute(iosb), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass)) + FltSetVolumeInformation(instance, core::mem::transmute(iosb), core::mem::transmute(fsinformation), length, fsinformationclass) } #[inline] pub unsafe fn FltStartFiltering(filter: PFLT_FILTER) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltStartFiltering(filter : PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltStartFiltering(core::mem::transmute(filter)) + FltStartFiltering(filter) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSupportsFileContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); - FltSupportsFileContexts(core::mem::transmute(fileobject)) + FltSupportsFileContexts(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSupportsFileContextsEx(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: Option) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContextsEx(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE) -> bool); - FltSupportsFileContextsEx(core::mem::transmute(fileobject), core::mem::transmute(instance.unwrap_or(core::mem::zeroed()))) + FltSupportsFileContextsEx(fileobject, core::mem::transmute(instance.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSupportsStreamContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); - FltSupportsStreamContexts(core::mem::transmute(fileobject)) + FltSupportsStreamContexts(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltSupportsStreamHandleContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> bool { windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamHandleContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); - FltSupportsStreamHandleContexts(core::mem::transmute(fileobject)) + FltSupportsStreamHandleContexts(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltTagFile(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, filetag: u32, guid: Option<*const windows_core::GUID>, databuffer: *const core::ffi::c_void, databufferlength: u16) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltTagFile(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, filetag : u32, guid : *const windows_core::GUID, databuffer : *const core::ffi::c_void, databufferlength : u16) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltTagFile(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(filetag), core::mem::transmute(guid.unwrap_or(core::mem::zeroed())), core::mem::transmute(databuffer), core::mem::transmute(databufferlength)) + FltTagFile(initiatinginstance, fileobject, filetag, core::mem::transmute(guid.unwrap_or(core::mem::zeroed())), databuffer, databufferlength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltTagFileEx(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, filetag: u32, guid: Option<*const windows_core::GUID>, databuffer: *const core::ffi::c_void, databufferlength: u16, existingfiletag: u32, existingguid: Option<*const windows_core::GUID>, flags: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltTagFileEx(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, filetag : u32, guid : *const windows_core::GUID, databuffer : *const core::ffi::c_void, databufferlength : u16, existingfiletag : u32, existingguid : *const windows_core::GUID, flags : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltTagFileEx(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(filetag), core::mem::transmute(guid.unwrap_or(core::mem::zeroed())), core::mem::transmute(databuffer), core::mem::transmute(databufferlength), core::mem::transmute(existingfiletag), core::mem::transmute(existingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + FltTagFileEx(initiatinginstance, fileobject, filetag, core::mem::transmute(guid.unwrap_or(core::mem::zeroed())), databuffer, databufferlength, existingfiletag, core::mem::transmute(existingguid.unwrap_or(core::mem::zeroed())), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltUninitializeFileLock(filelock: *const super::FILE_LOCK) { windows_targets::link!("fltmgr.sys" "system" fn FltUninitializeFileLock(filelock : *const super:: FILE_LOCK)); - FltUninitializeFileLock(core::mem::transmute(filelock)) + FltUninitializeFileLock(filelock) } #[inline] pub unsafe fn FltUninitializeOplock(oplock: *const *const core::ffi::c_void) { windows_targets::link!("fltmgr.sys" "system" fn FltUninitializeOplock(oplock : *const *const core::ffi::c_void)); - FltUninitializeOplock(core::mem::transmute(oplock)) + FltUninitializeOplock(oplock) } #[inline] pub unsafe fn FltUnloadFilter(filtername: *const super::super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltUnloadFilter(filtername : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltUnloadFilter(core::mem::transmute(filtername)) + FltUnloadFilter(filtername) } #[inline] pub unsafe fn FltUnregisterFilter(filter: PFLT_FILTER) { windows_targets::link!("fltmgr.sys" "system" fn FltUnregisterFilter(filter : PFLT_FILTER)); - FltUnregisterFilter(core::mem::transmute(filter)) + FltUnregisterFilter(filter) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltUntagFile(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, filetag: u32, guid: Option<*const windows_core::GUID>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltUntagFile(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, filetag : u32, guid : *const windows_core::GUID) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltUntagFile(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(filetag), core::mem::transmute(guid.unwrap_or(core::mem::zeroed()))) + FltUntagFile(initiatinginstance, fileobject, filetag, core::mem::transmute(guid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltVetoBypassIo(callbackdata: *const FLT_CALLBACK_DATA, fltobjects: *const FLT_RELATED_OBJECTS, operationstatus: super::super::super::super::Win32::Foundation::NTSTATUS, failurereason: *const super::super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltVetoBypassIo(callbackdata : *const FLT_CALLBACK_DATA, fltobjects : *const FLT_RELATED_OBJECTS, operationstatus : super::super::super::super::Win32::Foundation:: NTSTATUS, failurereason : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltVetoBypassIo(core::mem::transmute(callbackdata), core::mem::transmute(fltobjects), core::mem::transmute(operationstatus), core::mem::transmute(failurereason)) + FltVetoBypassIo(callbackdata, fltobjects, operationstatus, failurereason) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltWriteFile(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, byteoffset: Option<*const i64>, length: u32, buffer: *const core::ffi::c_void, flags: u32, byteswritten: Option<*mut u32>, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltWriteFile(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, byteoffset : *const i64, length : u32, buffer : *const core::ffi::c_void, flags : u32, byteswritten : *mut u32, callbackroutine : PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltWriteFile(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(buffer), core::mem::transmute(flags), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + FltWriteFile(initiatinginstance, fileobject, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), length, buffer, flags, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltWriteFileEx(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, byteoffset: Option<*const i64>, length: u32, buffer: Option<*const core::ffi::c_void>, flags: u32, byteswritten: Option<*mut u32>, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>, key: Option<*const u32>, mdl: Option<*const super::super::super::Foundation::MDL>) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltWriteFileEx(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, byteoffset : *const i64, length : u32, buffer : *const core::ffi::c_void, flags : u32, byteswritten : *mut u32, callbackroutine : PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext : *const core::ffi::c_void, key : *const u32, mdl : *const super::super::super::Foundation:: MDL) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltWriteFileEx( - core::mem::transmute(initiatinginstance), - core::mem::transmute(fileobject), + initiatinginstance, + fileobject, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(length), + length, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(flags), + flags, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), @@ -1647,7 +1578,7 @@ pub unsafe fn FltWriteFileEx(initiatinginstance: PFLT_INSTANCE, fileobject: *con #[inline] pub unsafe fn FltpTraceRedirectedFileIo(originatingfileobject: *const super::super::super::Foundation::FILE_OBJECT, childcallbackdata: *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("fltmgr.sys" "system" fn FltpTraceRedirectedFileIo(originatingfileobject : *const super::super::super::Foundation:: FILE_OBJECT, childcallbackdata : *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltpTraceRedirectedFileIo(core::mem::transmute(originatingfileobject), core::mem::transmute(childcallbackdata)) + FltpTraceRedirectedFileIo(originatingfileobject, core::mem::transmute(childcallbackdata)) } pub const FLTFL_CALLBACK_DATA_DIRTY: u32 = 2147483648u32; pub const FLTFL_CALLBACK_DATA_DRAINING_IO: u32 = 262144u32; diff --git a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs index ad5192beee..a629a3ab19 100644 --- a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs @@ -3,306 +3,306 @@ pub mod Minifilters; #[inline] pub unsafe fn ApplyControlToken(phcontext: *const SecHandle, pinput: *const SecBufferDesc) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ApplyControlToken(phcontext : *const SecHandle, pinput : *const SecBufferDesc) -> windows_core::HRESULT); - ApplyControlToken(core::mem::transmute(phcontext), core::mem::transmute(pinput)).ok() + ApplyControlToken(phcontext, pinput).ok() } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcAsyncCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: super::super::Foundation::PETHREAD, asyncreadcontext: *const CC_ASYNC_READ_CONTEXT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD, asyncreadcontext : *const CC_ASYNC_READ_CONTEXT) -> bool); - CcAsyncCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(ioissuerthread), core::mem::transmute(asyncreadcontext)) + CcAsyncCopyRead(fileobject, fileoffset, length, wait, core::mem::transmute(buffer), core::mem::transmute(iostatus), ioissuerthread, asyncreadcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcCanIWrite(fileobject: Option<*const super::super::Foundation::FILE_OBJECT>, bytestowrite: u32, wait: bool, retrying: u8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : bool, retrying : u8) -> bool); - CcCanIWrite(core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytestowrite), core::mem::transmute(wait), core::mem::transmute(retrying)) + CcCanIWrite(core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), bytestowrite, wait, retrying) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] pub unsafe fn CcCoherencyFlushAndPurgeCache(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, fileoffset: Option<*const i64>, length: u32, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, flags: Option) { windows_targets::link!("ntoskrnl.exe" "system" fn CcCoherencyFlushAndPurgeCache(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, flags : u32)); - CcCoherencyFlushAndPurgeCache(core::mem::transmute(sectionobjectpointer), core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(iostatus), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + CcCoherencyFlushAndPurgeCache(sectionobjectpointer, core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(iostatus), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); - CcCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(iostatus)) + CcCopyRead(fileobject, fileoffset, length, wait, core::mem::transmute(buffer), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcCopyReadEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: super::super::Foundation::PETHREAD) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool); - CcCopyReadEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(ioissuerthread)) + CcCopyReadEx(fileobject, fileoffset, length, wait, core::mem::transmute(buffer), core::mem::transmute(iostatus), ioissuerthread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void) -> bool); - CcCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer)) + CcCopyWrite(fileobject, fileoffset, length, wait, buffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcCopyWriteEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *const core::ffi::c_void, ioissuerthread: super::super::Foundation::PETHREAD) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool); - CcCopyWriteEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(ioissuerthread)) + CcCopyWriteEx(fileobject, fileoffset, length, wait, buffer, ioissuerthread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcCopyWriteWontFlush(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: Option<*const i64>, length: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteWontFlush(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32) -> bool); - CcCopyWriteWontFlush(core::mem::transmute(fileobject), core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length)) + CcCopyWriteWontFlush(fileobject, core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), length) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcDeferWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, postroutine: PCC_POST_DEFERRED_WRITE, context1: *const core::ffi::c_void, context2: *const core::ffi::c_void, bytestowrite: u32, retrying: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn CcDeferWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, postroutine : PCC_POST_DEFERRED_WRITE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void, bytestowrite : u32, retrying : bool)); - CcDeferWrite(core::mem::transmute(fileobject), core::mem::transmute(postroutine), core::mem::transmute(context1), core::mem::transmute(context2), core::mem::transmute(bytestowrite), core::mem::transmute(retrying)) + CcDeferWrite(fileobject, postroutine, context1, context2, bytestowrite, retrying) } #[inline] pub unsafe fn CcErrorCallbackRoutine(context: *const CC_ERROR_CALLBACK_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CcErrorCallbackRoutine(context : *const CC_ERROR_CALLBACK_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - CcErrorCallbackRoutine(core::mem::transmute(context)) + CcErrorCallbackRoutine(context) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcFastCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: u32, length: u32, pagecount: u32, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) { windows_targets::link!("ntoskrnl.exe" "system" fn CcFastCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : u32, length : u32, pagecount : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); - CcFastCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(pagecount), core::mem::transmute(buffer), core::mem::transmute(iostatus)) + CcFastCopyRead(fileobject, fileoffset, length, pagecount, core::mem::transmute(buffer), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcFastCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: u32, length: u32, buffer: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn CcFastCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : u32, length : u32, buffer : *const core::ffi::c_void)); - CcFastCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(buffer)) + CcFastCopyWrite(fileobject, fileoffset, length, buffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] pub unsafe fn CcFlushCache(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, fileoffset: Option<*const i64>, length: u32, iostatus: Option<*mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK>) { windows_targets::link!("ntoskrnl.exe" "system" fn CcFlushCache(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); - CcFlushCache(core::mem::transmute(sectionobjectpointer), core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(iostatus.unwrap_or(core::mem::zeroed()))) + CcFlushCache(sectionobjectpointer, core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(iostatus.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcGetDirtyPages(loghandle: *const core::ffi::c_void, dirtypageroutine: PDIRTY_PAGE_ROUTINE, context1: *const core::ffi::c_void, context2: *const core::ffi::c_void) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn CcGetDirtyPages(loghandle : *const core::ffi::c_void, dirtypageroutine : PDIRTY_PAGE_ROUTINE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void) -> i64); - CcGetDirtyPages(core::mem::transmute(loghandle), core::mem::transmute(dirtypageroutine), core::mem::transmute(context1), core::mem::transmute(context2)) + CcGetDirtyPages(loghandle, dirtypageroutine, context1, context2) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcGetFileObjectFromBcb(bcb: *const core::ffi::c_void) -> *mut super::super::Foundation::FILE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromBcb(bcb : *const core::ffi::c_void) -> *mut super::super::Foundation:: FILE_OBJECT); - CcGetFileObjectFromBcb(core::mem::transmute(bcb)) + CcGetFileObjectFromBcb(bcb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcGetFileObjectFromSectionPtrs(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation::FILE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromSectionPtrs(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation:: FILE_OBJECT); - CcGetFileObjectFromSectionPtrs(core::mem::transmute(sectionobjectpointer)) + CcGetFileObjectFromSectionPtrs(sectionobjectpointer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation::FILE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation:: FILE_OBJECT); - CcGetFileObjectFromSectionPtrsRef(core::mem::transmute(sectionobjectpointer)) + CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn CcGetFlushedValidData(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, bcblistheld: bool) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : bool) -> i64); - CcGetFlushedValidData(core::mem::transmute(sectionobjectpointer), core::mem::transmute(bcblistheld)) + CcGetFlushedValidData(sectionobjectpointer, bcblistheld) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcInitializeCacheMap(fileobject: *const super::super::Foundation::FILE_OBJECT, filesizes: *const CC_FILE_SIZES, pinaccess: bool, callbacks: *const CACHE_MANAGER_CALLBACKS, lazywritecontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void)); - CcInitializeCacheMap(core::mem::transmute(fileobject), core::mem::transmute(filesizes), core::mem::transmute(pinaccess), core::mem::transmute(callbacks), core::mem::transmute(lazywritecontext)) + CcInitializeCacheMap(fileobject, filesizes, pinaccess, callbacks, lazywritecontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcInitializeCacheMapEx(fileobject: *const super::super::Foundation::FILE_OBJECT, filesizes: *const CC_FILE_SIZES, pinaccess: bool, callbacks: *const CACHE_MANAGER_CALLBACKS, lazywritecontext: *const core::ffi::c_void, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32)); - CcInitializeCacheMapEx(core::mem::transmute(fileobject), core::mem::transmute(filesizes), core::mem::transmute(pinaccess), core::mem::transmute(callbacks), core::mem::transmute(lazywritecontext), core::mem::transmute(flags)) + CcInitializeCacheMapEx(fileobject, filesizes, pinaccess, callbacks, lazywritecontext, flags) } #[inline] pub unsafe fn CcIsCacheManagerCallbackNeeded(status: super::super::super::Win32::Foundation::NTSTATUS) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); - CcIsCacheManagerCallbackNeeded(core::mem::transmute(status)) + CcIsCacheManagerCallbackNeeded(status) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcIsThereDirtyData(vpb: *const super::super::Foundation::VPB) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyData(vpb : *const super::super::Foundation:: VPB) -> bool); - CcIsThereDirtyData(core::mem::transmute(vpb)) + CcIsThereDirtyData(vpb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcIsThereDirtyDataEx(vpb: *const super::super::Foundation::VPB, numberofdirtypages: Option<*const u32>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyDataEx(vpb : *const super::super::Foundation:: VPB, numberofdirtypages : *const u32) -> bool); - CcIsThereDirtyDataEx(core::mem::transmute(vpb), core::mem::transmute(numberofdirtypages.unwrap_or(core::mem::zeroed()))) + CcIsThereDirtyDataEx(vpb, core::mem::transmute(numberofdirtypages.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcMapData(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcMapData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); - CcMapData(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) + CcMapData(fileobject, fileoffset, length, flags, core::mem::transmute(bcb), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcMdlRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) { windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); - CcMdlRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) + CcMdlRead(fileobject, fileoffset, length, core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcMdlReadComplete(fileobject: *const super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::Foundation::MDL) { windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlReadComplete(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL)); - CcMdlReadComplete(core::mem::transmute(fileobject), core::mem::transmute(mdlchain)) + CcMdlReadComplete(fileobject, mdlchain) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcMdlWriteAbort(fileobject: *const super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::Foundation::MDL) { windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlWriteAbort(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL)); - CcMdlWriteAbort(core::mem::transmute(fileobject), core::mem::transmute(mdlchain)) + CcMdlWriteAbort(fileobject, mdlchain) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcMdlWriteComplete(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::Foundation::MDL) { windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlWriteComplete(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL)); - CcMdlWriteComplete(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(mdlchain)) + CcMdlWriteComplete(fileobject, fileoffset, mdlchain) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcPinMappedData(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcPinMappedData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void) -> bool); - CcPinMappedData(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(bcb)) + CcPinMappedData(fileobject, fileoffset, length, flags, core::mem::transmute(bcb)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcPinRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcPinRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); - CcPinRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) + CcPinRead(fileobject, fileoffset, length, flags, core::mem::transmute(bcb), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcPrepareMdlWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) { windows_targets::link!("ntoskrnl.exe" "system" fn CcPrepareMdlWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); - CcPrepareMdlWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) + CcPrepareMdlWrite(fileobject, fileoffset, length, core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcPreparePinWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, zero: bool, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : bool, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); - CcPreparePinWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(zero), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) + CcPreparePinWrite(fileobject, fileoffset, length, zero, flags, core::mem::transmute(bcb), core::mem::transmute(buffer)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn CcPurgeCacheSection(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, fileoffset: Option<*const i64>, length: u32, flags: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcPurgeCacheSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, flags : u32) -> bool); - CcPurgeCacheSection(core::mem::transmute(sectionobjectpointer), core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(flags)) + CcPurgeCacheSection(sectionobjectpointer, core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), length, flags) } #[inline] pub unsafe fn CcRemapBcb(bcb: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn CcRemapBcb(bcb : *const core::ffi::c_void) -> *mut core::ffi::c_void); - CcRemapBcb(core::mem::transmute(bcb)) + CcRemapBcb(bcb) } #[inline] pub unsafe fn CcRepinBcb(bcb: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn CcRepinBcb(bcb : *const core::ffi::c_void)); - CcRepinBcb(core::mem::transmute(bcb)) + CcRepinBcb(bcb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcScheduleReadAhead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn CcScheduleReadAhead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32)); - CcScheduleReadAhead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length)) + CcScheduleReadAhead(fileobject, fileoffset, length) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcScheduleReadAheadEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, ioissuerthread: super::super::Foundation::PETHREAD) { windows_targets::link!("ntoskrnl.exe" "system" fn CcScheduleReadAheadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, ioissuerthread : super::super::Foundation:: PETHREAD)); - CcScheduleReadAheadEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(ioissuerthread)) + CcScheduleReadAheadEx(fileobject, fileoffset, length, ioissuerthread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetAdditionalCacheAttributes(fileobject: *const super::super::Foundation::FILE_OBJECT, disablereadahead: bool, disablewritebehind: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : bool, disablewritebehind : bool)); - CcSetAdditionalCacheAttributes(core::mem::transmute(fileobject), core::mem::transmute(disablereadahead), core::mem::transmute(disablewritebehind)) + CcSetAdditionalCacheAttributes(fileobject, disablereadahead, disablewritebehind) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetAdditionalCacheAttributesEx(fileobject: *const super::super::Foundation::FILE_OBJECT, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributesEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, flags : u32)); - CcSetAdditionalCacheAttributesEx(core::mem::transmute(fileobject), core::mem::transmute(flags)) + CcSetAdditionalCacheAttributesEx(fileobject, flags) } #[inline] pub unsafe fn CcSetBcbOwnerPointer(bcb: *const core::ffi::c_void, ownerpointer: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetBcbOwnerPointer(bcb : *const core::ffi::c_void, ownerpointer : *const core::ffi::c_void)); - CcSetBcbOwnerPointer(core::mem::transmute(bcb), core::mem::transmute(ownerpointer)) + CcSetBcbOwnerPointer(bcb, ownerpointer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetDirtyPageThreshold(fileobject: *const super::super::Foundation::FILE_OBJECT, dirtypagethreshold: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetDirtyPageThreshold(fileobject : *const super::super::Foundation:: FILE_OBJECT, dirtypagethreshold : u32)); - CcSetDirtyPageThreshold(core::mem::transmute(fileobject), core::mem::transmute(dirtypagethreshold)) + CcSetDirtyPageThreshold(fileobject, dirtypagethreshold) } #[inline] pub unsafe fn CcSetDirtyPinnedData(bcbvoid: *const core::ffi::c_void, lsn: Option<*const i64>) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetDirtyPinnedData(bcbvoid : *const core::ffi::c_void, lsn : *const i64)); - CcSetDirtyPinnedData(core::mem::transmute(bcbvoid), core::mem::transmute(lsn.unwrap_or(core::mem::zeroed()))) + CcSetDirtyPinnedData(bcbvoid, core::mem::transmute(lsn.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetFileSizes(fileobject: *const super::super::Foundation::FILE_OBJECT, filesizes: *const CC_FILE_SIZES) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetFileSizes(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES)); - CcSetFileSizes(core::mem::transmute(fileobject), core::mem::transmute(filesizes)) + CcSetFileSizes(fileobject, filesizes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetFileSizesEx(fileobject: *const super::super::Foundation::FILE_OBJECT, filesizes: *const CC_FILE_SIZES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetFileSizesEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES) -> super::super::super::Win32::Foundation:: NTSTATUS); - CcSetFileSizesEx(core::mem::transmute(fileobject), core::mem::transmute(filesizes)) + CcSetFileSizesEx(fileobject, filesizes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetLogHandleForFile(fileobject: *const super::super::Foundation::FILE_OBJECT, loghandle: *const core::ffi::c_void, flushtolsnroutine: PFLUSH_TO_LSN) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetLogHandleForFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, loghandle : *const core::ffi::c_void, flushtolsnroutine : PFLUSH_TO_LSN)); - CcSetLogHandleForFile(core::mem::transmute(fileobject), core::mem::transmute(loghandle), core::mem::transmute(flushtolsnroutine)) + CcSetLogHandleForFile(fileobject, loghandle, flushtolsnroutine) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetParallelFlushFile(fileobject: *const super::super::Foundation::FILE_OBJECT, enableparallelflush: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : bool)); - CcSetParallelFlushFile(core::mem::transmute(fileobject), core::mem::transmute(enableparallelflush)) + CcSetParallelFlushFile(fileobject, enableparallelflush) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetReadAheadGranularity(fileobject: *const super::super::Foundation::FILE_OBJECT, granularity: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetReadAheadGranularity(fileobject : *const super::super::Foundation:: FILE_OBJECT, granularity : u32)); - CcSetReadAheadGranularity(core::mem::transmute(fileobject), core::mem::transmute(granularity)) + CcSetReadAheadGranularity(fileobject, granularity) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcUninitializeCacheMap(fileobject: *const super::super::Foundation::FILE_OBJECT, truncatesize: Option<*const i64>, uninitializeevent: Option<*const CACHE_UNINITIALIZE_EVENT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcUninitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, truncatesize : *const i64, uninitializeevent : *const CACHE_UNINITIALIZE_EVENT) -> bool); - CcUninitializeCacheMap(core::mem::transmute(fileobject), core::mem::transmute(truncatesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(uninitializeevent.unwrap_or(core::mem::zeroed()))) + CcUninitializeCacheMap(fileobject, core::mem::transmute(truncatesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(uninitializeevent.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CcUnpinData(bcb: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinData(bcb : *const core::ffi::c_void)); - CcUnpinData(core::mem::transmute(bcb)) + CcUnpinData(bcb) } #[inline] pub unsafe fn CcUnpinDataForThread(bcb: *const core::ffi::c_void, resourcethreadid: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinDataForThread(bcb : *const core::ffi::c_void, resourcethreadid : usize)); - CcUnpinDataForThread(core::mem::transmute(bcb), core::mem::transmute(resourcethreadid)) + CcUnpinDataForThread(bcb, resourcethreadid) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CcUnpinRepinnedBcb(bcb: *const core::ffi::c_void, writethrough: bool) -> super::super::super::Win32::System::IO::IO_STATUS_BLOCK { windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : bool, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); let mut result__ = core::mem::zeroed(); - CcUnpinRepinnedBcb(core::mem::transmute(bcb), core::mem::transmute(writethrough), &mut result__); + CcUnpinRepinnedBcb(bcb, writethrough, &mut result__); result__ } #[inline] @@ -314,95 +314,95 @@ pub unsafe fn CcWaitForCurrentLazyWriterActivity() -> super::super::super::Win32 #[inline] pub unsafe fn CcZeroData(fileobject: *const super::super::Foundation::FILE_OBJECT, startoffset: *const i64, endoffset: *const i64, wait: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : bool) -> bool); - CcZeroData(core::mem::transmute(fileobject), core::mem::transmute(startoffset), core::mem::transmute(endoffset), core::mem::transmute(wait)) + CcZeroData(fileobject, startoffset, endoffset, wait) } #[inline] pub unsafe fn CompleteAuthToken(phcontext: *const SecHandle, ptoken: *const SecBufferDesc) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn CompleteAuthToken(phcontext : *const SecHandle, ptoken : *const SecBufferDesc) -> windows_core::HRESULT); - CompleteAuthToken(core::mem::transmute(phcontext), core::mem::transmute(ptoken)).ok() + CompleteAuthToken(phcontext, ptoken).ok() } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExDisableResourceBoostLite(resource: *const super::super::Foundation::ERESOURCE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExDisableResourceBoostLite(resource : *const super::super::Foundation:: ERESOURCE)); - ExDisableResourceBoostLite(core::mem::transmute(resource)) + ExDisableResourceBoostLite(resource) } #[inline] pub unsafe fn ExQueryPoolBlockSize(poolblock: *const core::ffi::c_void, quotacharged: *mut bool) -> usize { windows_targets::link!("ntoskrnl.exe" "system" fn ExQueryPoolBlockSize(poolblock : *const core::ffi::c_void, quotacharged : *mut bool) -> usize); - ExQueryPoolBlockSize(core::mem::transmute(poolblock), core::mem::transmute(quotacharged)) + ExQueryPoolBlockSize(poolblock, core::mem::transmute(quotacharged)) } #[inline] pub unsafe fn ExportSecurityContext(phcontext: *const SecHandle, fflags: u32, ppackedcontext: *mut SecBuffer, ptoken: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ExportSecurityContext(phcontext : *const SecHandle, fflags : u32, ppackedcontext : *mut SecBuffer, ptoken : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ExportSecurityContext(core::mem::transmute(phcontext), core::mem::transmute(fflags), core::mem::transmute(ppackedcontext), core::mem::transmute(ptoken)).ok() + ExportSecurityContext(phcontext, fflags, core::mem::transmute(ppackedcontext), core::mem::transmute(ptoken)).ok() } #[inline] pub unsafe fn FsRtlAcknowledgeEcp(ecpcontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAcknowledgeEcp(ecpcontext : *const core::ffi::c_void)); - FsRtlAcknowledgeEcp(core::mem::transmute(ecpcontext)) + FsRtlAcknowledgeEcp(ecpcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlAcquireFileExclusive(fileobject: *const super::super::Foundation::FILE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAcquireFileExclusive(fileobject : *const super::super::Foundation:: FILE_OBJECT)); - FsRtlAcquireFileExclusive(core::mem::transmute(fileobject)) + FsRtlAcquireFileExclusive(fileobject) } #[inline] pub unsafe fn FsRtlAddBaseMcbEntry(mcb: *mut BASE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool); - FsRtlAddBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlAddBaseMcbEntry(core::mem::transmute(mcb), vbn, lbn, sectorcount) } #[inline] pub unsafe fn FsRtlAddBaseMcbEntryEx(mcb: *mut BASE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntryEx(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlAddBaseMcbEntryEx(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlAddBaseMcbEntryEx(core::mem::transmute(mcb), vbn, lbn, sectorcount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlAddLargeMcbEntry(mcb: *mut LARGE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool); - FsRtlAddLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlAddLargeMcbEntry(core::mem::transmute(mcb), vbn, lbn, sectorcount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlAddMcbEntry(mcb: *mut MCB, vbn: u32, lbn: u32, sectorcount: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddMcbEntry(mcb : *mut MCB, vbn : u32, lbn : u32, sectorcount : u32) -> bool); - FsRtlAddMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlAddMcbEntry(core::mem::transmute(mcb), vbn, lbn, sectorcount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlAddToTunnelCache(cache: *mut TUNNEL, directorykey: u64, shortname: *const super::super::super::Win32::Foundation::UNICODE_STRING, longname: *const super::super::super::Win32::Foundation::UNICODE_STRING, keybyshortname: bool, datalength: u32, data: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCache(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keybyshortname : bool, datalength : u32, data : *const core::ffi::c_void)); - FsRtlAddToTunnelCache(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(keybyshortname), core::mem::transmute(datalength), core::mem::transmute(data)) + FsRtlAddToTunnelCache(core::mem::transmute(cache), directorykey, shortname, longname, keybyshortname, datalength, data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlAddToTunnelCacheEx(cache: *mut TUNNEL, directorykey: u64, shortname: *const super::super::super::Win32::Foundation::UNICODE_STRING, longname: *const super::super::super::Win32::Foundation::UNICODE_STRING, flags: u32, datalength: u32, data: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCacheEx(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : u32, data : *const core::ffi::c_void)); - FsRtlAddToTunnelCacheEx(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(flags), core::mem::transmute(datalength), core::mem::transmute(data)) + FsRtlAddToTunnelCacheEx(core::mem::transmute(cache), directorykey, shortname, longname, flags, datalength, data) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlAllocateAePushLock(pooltype: super::super::Foundation::POOL_TYPE, tag: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateAePushLock(pooltype : super::super::Foundation:: POOL_TYPE, tag : u32) -> *mut core::ffi::c_void); - FsRtlAllocateAePushLock(core::mem::transmute(pooltype), core::mem::transmute(tag)) + FsRtlAllocateAePushLock(pooltype, tag) } #[inline] pub unsafe fn FsRtlAllocateExtraCreateParameter(ecptype: *const windows_core::GUID, sizeofcontext: u32, flags: u32, cleanupcallback: Option, pooltag: u32, ecpcontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParameter(ecptype : *const windows_core::GUID, sizeofcontext : u32, flags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, pooltag : u32, ecpcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlAllocateExtraCreateParameter(core::mem::transmute(ecptype), core::mem::transmute(sizeofcontext), core::mem::transmute(flags), core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pooltag), core::mem::transmute(ecpcontext)) + FsRtlAllocateExtraCreateParameter(ecptype, sizeofcontext, flags, core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), pooltag, core::mem::transmute(ecpcontext)) } #[inline] pub unsafe fn FsRtlAllocateExtraCreateParameterFromLookasideList(ecptype: *const windows_core::GUID, sizeofcontext: u32, flags: u32, cleanupcallback: Option, lookasidelist: *mut core::ffi::c_void, ecpcontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParameterFromLookasideList(ecptype : *const windows_core::GUID, sizeofcontext : u32, flags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, lookasidelist : *mut core::ffi::c_void, ecpcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlAllocateExtraCreateParameterFromLookasideList(core::mem::transmute(ecptype), core::mem::transmute(sizeofcontext), core::mem::transmute(flags), core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(lookasidelist), core::mem::transmute(ecpcontext)) + FsRtlAllocateExtraCreateParameterFromLookasideList(ecptype, sizeofcontext, flags, core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(lookasidelist), core::mem::transmute(ecpcontext)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlAllocateExtraCreateParameterList(flags: u32, ecplist: *mut *mut super::super::Foundation::ECP_LIST) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParameterList(flags : u32, ecplist : *mut *mut super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlAllocateExtraCreateParameterList(core::mem::transmute(flags), core::mem::transmute(ecplist)) + FsRtlAllocateExtraCreateParameterList(flags, core::mem::transmute(ecplist)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -419,19 +419,19 @@ pub unsafe fn FsRtlAllocateResource() -> *mut super::super::Foundation::ERESOURC #[inline] pub unsafe fn FsRtlAreNamesEqual(constantnamea: *const super::super::super::Win32::Foundation::UNICODE_STRING, constantnameb: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: Option<*const u16>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreNamesEqual(constantnamea : *const super::super::super::Win32::Foundation:: UNICODE_STRING, constantnameb : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : *const u16) -> bool); - FsRtlAreNamesEqual(core::mem::transmute(constantnamea), core::mem::transmute(constantnameb), core::mem::transmute(ignorecase), core::mem::transmute(upcasetable.unwrap_or(core::mem::zeroed()))) + FsRtlAreNamesEqual(constantnamea, constantnameb, ignorecase, core::mem::transmute(upcasetable.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock: *const FILE_LOCK) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock : *const FILE_LOCK) -> bool); - FsRtlAreThereCurrentOrInProgressFileLocks(core::mem::transmute(filelock)) + FsRtlAreThereCurrentOrInProgressFileLocks(filelock) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlAreThereWaitingFileLocks(filelock: *const FILE_LOCK) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereWaitingFileLocks(filelock : *const FILE_LOCK) -> bool); - FsRtlAreThereWaitingFileLocks(core::mem::transmute(filelock)) + FsRtlAreThereWaitingFileLocks(filelock) } #[inline] pub unsafe fn FsRtlAreVolumeStartupApplicationsComplete() -> bool { @@ -442,122 +442,111 @@ pub unsafe fn FsRtlAreVolumeStartupApplicationsComplete() -> bool { #[inline] pub unsafe fn FsRtlBalanceReads(targetdevice: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlBalanceReads(targetdevice : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlBalanceReads(core::mem::transmute(targetdevice)) + FsRtlBalanceReads(targetdevice) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCancellableWaitForMultipleObjects(objectarray: &[*const core::ffi::c_void], waittype: super::super::super::Win32::System::Kernel::WAIT_TYPE, timeout: Option<*const i64>, waitblockarray: Option<*const super::super::Foundation::KWAIT_BLOCK>, irp: Option<*const super::super::Foundation::IRP>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCancellableWaitForMultipleObjects(count : u32, objectarray : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, timeout : *const i64, waitblockarray : *const super::super::Foundation:: KWAIT_BLOCK, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCancellableWaitForMultipleObjects(objectarray.len().try_into().unwrap(), core::mem::transmute(objectarray.as_ptr()), core::mem::transmute(waittype), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) + FsRtlCancellableWaitForMultipleObjects(objectarray.len().try_into().unwrap(), core::mem::transmute(objectarray.as_ptr()), waittype, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCancellableWaitForSingleObject(object: *const core::ffi::c_void, timeout: Option<*const i64>, irp: Option<*const super::super::Foundation::IRP>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCancellableWaitForSingleObject(object : *const core::ffi::c_void, timeout : *const i64, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCancellableWaitForSingleObject(core::mem::transmute(object), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) + FsRtlCancellableWaitForSingleObject(object, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlChangeBackingFileObject(currentfileobject: Option<*const super::super::Foundation::FILE_OBJECT>, newfileobject: *const super::super::Foundation::FILE_OBJECT, changebackingtype: FSRTL_CHANGE_BACKING_TYPE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlChangeBackingFileObject(currentfileobject : *const super::super::Foundation:: FILE_OBJECT, newfileobject : *const super::super::Foundation:: FILE_OBJECT, changebackingtype : FSRTL_CHANGE_BACKING_TYPE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlChangeBackingFileObject(core::mem::transmute(currentfileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(newfileobject), core::mem::transmute(changebackingtype), core::mem::transmute(flags)) + FsRtlChangeBackingFileObject(core::mem::transmute(currentfileobject.unwrap_or(core::mem::zeroed())), newfileobject, changebackingtype, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckLockForOplockRequest(filelock: *const FILE_LOCK, allocationsize: *const i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForOplockRequest(filelock : *const FILE_LOCK, allocationsize : *const i64) -> bool); - FsRtlCheckLockForOplockRequest(core::mem::transmute(filelock), core::mem::transmute(allocationsize)) + FsRtlCheckLockForOplockRequest(filelock, allocationsize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckLockForReadAccess(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForReadAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool); - FsRtlCheckLockForReadAccess(core::mem::transmute(filelock), core::mem::transmute(irp)) + FsRtlCheckLockForReadAccess(filelock, irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckLockForWriteAccess(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForWriteAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool); - FsRtlCheckLockForWriteAccess(core::mem::transmute(filelock), core::mem::transmute(irp)) + FsRtlCheckLockForWriteAccess(filelock, irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckOplock(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, context: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplock(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCheckOplock(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) + FsRtlCheckOplock(oplock, irp, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckOplockEx(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, flags: u32, context: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplockEx(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCheckOplockEx(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) + FsRtlCheckOplockEx(oplock, irp, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckOplockEx2(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, flags: u32, flagsex2: u32, completionroutinecontext: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option, timeout: u64, notifycontext: Option<*const core::ffi::c_void>, notifyroutine: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplockEx2(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, flagsex2 : u32, completionroutinecontext : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP, timeout : u64, notifycontext : *const core::ffi::c_void, notifyroutine : POPLOCK_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCheckOplockEx2( - core::mem::transmute(oplock), - core::mem::transmute(irp), - core::mem::transmute(flags), - core::mem::transmute(flagsex2), - core::mem::transmute(completionroutinecontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(timeout), - core::mem::transmute(notifycontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(notifyroutine.unwrap_or(core::mem::zeroed())), - ) + FsRtlCheckOplockEx2(oplock, irp, flags, flagsex2, core::mem::transmute(completionroutinecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed())), timeout, core::mem::transmute(notifycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(notifyroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCheckUpperOplock(oplock: *const *const core::ffi::c_void, newloweroplockstate: u32, completionroutinecontext: Option<*const core::ffi::c_void>, completionroutine: Option, prependroutine: Option, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckUpperOplock(oplock : *const *const core::ffi::c_void, newloweroplockstate : u32, completionroutinecontext : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, prependroutine : POPLOCK_FS_PREPOST_IRP, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCheckUpperOplock(core::mem::transmute(oplock), core::mem::transmute(newloweroplockstate), core::mem::transmute(completionroutinecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prependroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + FsRtlCheckUpperOplock(oplock, newloweroplockstate, core::mem::transmute(completionroutinecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(prependroutine.unwrap_or(core::mem::zeroed())), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, lockkey: u32, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); - FsRtlCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(lockkey), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) + FsRtlCopyRead(fileobject, fileoffset, length, wait, lockkey, core::mem::transmute(buffer), core::mem::transmute(iostatus), deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, lockkey: u32, buffer: *const core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *const core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); - FsRtlCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(lockkey), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) + FsRtlCopyWrite(fileobject, fileoffset, length, wait, lockkey, buffer, core::mem::transmute(iostatus), deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlCreateSectionForDataScan(sectionhandle: *mut super::super::super::Win32::Foundation::HANDLE, sectionobject: *mut *mut core::ffi::c_void, sectionfilesize: Option<*mut i64>, fileobject: *const super::super::Foundation::FILE_OBJECT, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, maximumsize: Option<*const i64>, sectionpageprotection: u32, allocationattributes: u32, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCreateSectionForDataScan(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, sectionobject : *mut *mut core::ffi::c_void, sectionfilesize : *mut i64, fileobject : *const super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlCreateSectionForDataScan(core::mem::transmute(sectionhandle), core::mem::transmute(sectionobject), core::mem::transmute(sectionfilesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(fileobject), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectionpageprotection), core::mem::transmute(allocationattributes), core::mem::transmute(flags)) + FsRtlCreateSectionForDataScan(core::mem::transmute(sectionhandle), core::mem::transmute(sectionobject), core::mem::transmute(sectionfilesize.unwrap_or(core::mem::zeroed())), fileobject, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), sectionpageprotection, allocationattributes, flags) } #[inline] pub unsafe fn FsRtlCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool); - FsRtlCurrentBatchOplock(core::mem::transmute(oplock)) + FsRtlCurrentBatchOplock(oplock) } #[inline] pub unsafe fn FsRtlCurrentOplock(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool); - FsRtlCurrentOplock(core::mem::transmute(oplock)) + FsRtlCurrentOplock(oplock) } #[inline] pub unsafe fn FsRtlCurrentOplockH(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool); - FsRtlCurrentOplockH(core::mem::transmute(oplock)) + FsRtlCurrentOplockH(oplock) } #[inline] pub unsafe fn FsRtlDeleteExtraCreateParameterLookasideList(lookaside: *mut core::ffi::c_void, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDeleteExtraCreateParameterLookasideList(lookaside : *mut core::ffi::c_void, flags : u32)); - FsRtlDeleteExtraCreateParameterLookasideList(core::mem::transmute(lookaside), core::mem::transmute(flags)) + FsRtlDeleteExtraCreateParameterLookasideList(core::mem::transmute(lookaside), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlDeleteKeyFromTunnelCache(cache: *mut TUNNEL, directorykey: u64) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDeleteKeyFromTunnelCache(cache : *mut TUNNEL, directorykey : u64)); - FsRtlDeleteKeyFromTunnelCache(core::mem::transmute(cache), core::mem::transmute(directorykey)) + FsRtlDeleteKeyFromTunnelCache(core::mem::transmute(cache), directorykey) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -568,13 +557,13 @@ pub unsafe fn FsRtlDeleteTunnelCache(cache: *mut TUNNEL) { #[inline] pub unsafe fn FsRtlDeregisterUncProvider(handle: super::super::super::Win32::Foundation::HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDeregisterUncProvider(handle : super::super::super::Win32::Foundation:: HANDLE)); - FsRtlDeregisterUncProvider(core::mem::transmute(handle)) + FsRtlDeregisterUncProvider(handle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlDismountComplete(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, dismountstatus: super::super::super::Win32::Foundation::NTSTATUS) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDismountComplete(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, dismountstatus : super::super::super::Win32::Foundation:: NTSTATUS)); - FsRtlDismountComplete(core::mem::transmute(deviceobject), core::mem::transmute(dismountstatus)) + FsRtlDismountComplete(deviceobject, dismountstatus) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -591,60 +580,60 @@ pub unsafe fn FsRtlDissectName(path: super::super::super::Win32::Foundation::UNI #[inline] pub unsafe fn FsRtlDoesDbcsContainWildCards(name: *const super::super::super::Win32::System::Kernel::STRING) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesDbcsContainWildCards(name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool); - FsRtlDoesDbcsContainWildCards(core::mem::transmute(name)) + FsRtlDoesDbcsContainWildCards(name) } #[inline] pub unsafe fn FsRtlDoesNameContainWildCards(name: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesNameContainWildCards(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> bool); - FsRtlDoesNameContainWildCards(core::mem::transmute(name)) + FsRtlDoesNameContainWildCards(name) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFastCheckLockForRead(filelock: *const FILE_LOCK, startingbyte: *const i64, length: *const i64, key: u32, fileobject: *const super::super::Foundation::FILE_OBJECT, processid: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForRead(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : *const core::ffi::c_void) -> bool); - FsRtlFastCheckLockForRead(core::mem::transmute(filelock), core::mem::transmute(startingbyte), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(fileobject), core::mem::transmute(processid)) + FsRtlFastCheckLockForRead(filelock, startingbyte, length, key, fileobject, processid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFastCheckLockForWrite(filelock: *const FILE_LOCK, startingbyte: *const i64, length: *const i64, key: u32, fileobject: *const core::ffi::c_void, processid: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForWrite(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const core::ffi::c_void, processid : *const core::ffi::c_void) -> bool); - FsRtlFastCheckLockForWrite(core::mem::transmute(filelock), core::mem::transmute(startingbyte), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(fileobject), core::mem::transmute(processid)) + FsRtlFastCheckLockForWrite(filelock, startingbyte, length, key, fileobject, processid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFastUnlockAll(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, processid: super::super::Foundation::PEPROCESS, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockAll(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : super::super::Foundation:: PEPROCESS, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlFastUnlockAll(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(processid), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + FsRtlFastUnlockAll(filelock, fileobject, processid, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFastUnlockAllByKey(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, processid: super::super::Foundation::PEPROCESS, key: u32, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockAllByKey(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlFastUnlockAllByKey(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(processid), core::mem::transmute(key), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + FsRtlFastUnlockAllByKey(filelock, fileobject, processid, key, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFastUnlockSingle(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: *const i64, processid: super::super::Foundation::PEPROCESS, key: u32, context: Option<*const core::ffi::c_void>, alreadysynchronized: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockSingle(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void, alreadysynchronized : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlFastUnlockSingle(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(processid), core::mem::transmute(key), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(alreadysynchronized)) + FsRtlFastUnlockSingle(filelock, fileobject, fileoffset, length, processid, key, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), alreadysynchronized) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlFindExtraCreateParameter(ecplist: *const super::super::Foundation::ECP_LIST, ecptype: *const windows_core::GUID, ecpcontext: Option<*mut *mut core::ffi::c_void>, ecpcontextsize: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindExtraCreateParameter(ecplist : *const super::super::Foundation:: ECP_LIST, ecptype : *const windows_core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlFindExtraCreateParameter(core::mem::transmute(ecplist), core::mem::transmute(ecptype), core::mem::transmute(ecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) + FsRtlFindExtraCreateParameter(ecplist, ecptype, core::mem::transmute(ecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlFindInTunnelCache(cache: *const TUNNEL, directorykey: u64, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, shortname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, longname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, datalength: *mut u32, data: *mut core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCache(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool); - FsRtlFindInTunnelCache(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(name), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(datalength), core::mem::transmute(data)) + FsRtlFindInTunnelCache(cache, directorykey, name, core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(datalength), core::mem::transmute(data)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlFindInTunnelCacheEx(cache: *const TUNNEL, directorykey: u64, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, shortname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, longname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, flags: u32, datalength: *mut u32, data: *mut core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCacheEx(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool); - FsRtlFindInTunnelCacheEx(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(name), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(flags), core::mem::transmute(datalength), core::mem::transmute(data)) + FsRtlFindInTunnelCacheEx(cache, directorykey, name, core::mem::transmute(shortname), core::mem::transmute(longname), flags, core::mem::transmute(datalength), core::mem::transmute(data)) } #[inline] pub unsafe fn FsRtlFreeAePushLock(aepushlock: *mut core::ffi::c_void) { @@ -654,19 +643,19 @@ pub unsafe fn FsRtlFreeAePushLock(aepushlock: *mut core::ffi::c_void) { #[inline] pub unsafe fn FsRtlFreeExtraCreateParameter(ecpcontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFreeExtraCreateParameter(ecpcontext : *const core::ffi::c_void)); - FsRtlFreeExtraCreateParameter(core::mem::transmute(ecpcontext)) + FsRtlFreeExtraCreateParameter(ecpcontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlFreeExtraCreateParameterList(ecplist: *const super::super::Foundation::ECP_LIST) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFreeExtraCreateParameterList(ecplist : *const super::super::Foundation:: ECP_LIST)); - FsRtlFreeExtraCreateParameterList(core::mem::transmute(ecplist)) + FsRtlFreeExtraCreateParameterList(ecplist) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFreeFileLock(filelock: *const FILE_LOCK) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFreeFileLock(filelock : *const FILE_LOCK)); - FsRtlFreeFileLock(core::mem::transmute(filelock)) + FsRtlFreeFileLock(filelock) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -678,60 +667,60 @@ pub unsafe fn FsRtlGetCurrentProcessLoaderList() -> *mut super::super::super::Wi #[inline] pub unsafe fn FsRtlGetEcpListFromIrp(irp: *const super::super::Foundation::IRP, ecplist: *mut *mut super::super::Foundation::ECP_LIST) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetEcpListFromIrp(irp : *const super::super::Foundation:: IRP, ecplist : *mut *mut super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlGetEcpListFromIrp(core::mem::transmute(irp), core::mem::transmute(ecplist)) + FsRtlGetEcpListFromIrp(irp, core::mem::transmute(ecplist)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlGetFileSize(fileobject: *const super::super::Foundation::FILE_OBJECT, filesize: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetFileSize(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesize : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlGetFileSize(core::mem::transmute(fileobject), core::mem::transmute(filesize)) + FsRtlGetFileSize(fileobject, core::mem::transmute(filesize)) } #[inline] pub unsafe fn FsRtlGetNextBaseMcbEntry(mcb: *const BASE_MCB, runindex: u32, vbn: *mut i64, lbn: *mut i64, sectorcount: *mut i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextBaseMcbEntry(mcb : *const BASE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool); - FsRtlGetNextBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(runindex), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlGetNextBaseMcbEntry(mcb, runindex, core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlGetNextExtraCreateParameter(ecplist: *const super::super::Foundation::ECP_LIST, currentecpcontext: Option<*const core::ffi::c_void>, nextecptype: Option<*mut windows_core::GUID>, nextecpcontext: Option<*mut *mut core::ffi::c_void>, nextecpcontextsize: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextExtraCreateParameter(ecplist : *const super::super::Foundation:: ECP_LIST, currentecpcontext : *const core::ffi::c_void, nextecptype : *mut windows_core::GUID, nextecpcontext : *mut *mut core::ffi::c_void, nextecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlGetNextExtraCreateParameter(core::mem::transmute(ecplist), core::mem::transmute(currentecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontextsize.unwrap_or(core::mem::zeroed()))) + FsRtlGetNextExtraCreateParameter(ecplist, core::mem::transmute(currentecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextecpcontextsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlGetNextFileLock(filelock: *const FILE_LOCK, restart: bool) -> *mut FILE_LOCK_INFO { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : bool) -> *mut FILE_LOCK_INFO); - FsRtlGetNextFileLock(core::mem::transmute(filelock), core::mem::transmute(restart)) + FsRtlGetNextFileLock(filelock, restart) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlGetNextLargeMcbEntry(mcb: *const LARGE_MCB, runindex: u32, vbn: *mut i64, lbn: *mut i64, sectorcount: *mut i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextLargeMcbEntry(mcb : *const LARGE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool); - FsRtlGetNextLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(runindex), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlGetNextLargeMcbEntry(mcb, runindex, core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlGetNextMcbEntry(mcb: *const MCB, runindex: u32, vbn: *mut u32, lbn: *mut u32, sectorcount: *mut u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextMcbEntry(mcb : *const MCB, runindex : u32, vbn : *mut u32, lbn : *mut u32, sectorcount : *mut u32) -> bool); - FsRtlGetNextMcbEntry(core::mem::transmute(mcb), core::mem::transmute(runindex), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) + FsRtlGetNextMcbEntry(mcb, runindex, core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlGetSectorSizeInformation(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsizeinfo: *mut FILE_FS_SECTOR_SIZE_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetSectorSizeInformation(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsizeinfo : *mut FILE_FS_SECTOR_SIZE_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlGetSectorSizeInformation(core::mem::transmute(deviceobject), core::mem::transmute(sectorsizeinfo)) + FsRtlGetSectorSizeInformation(deviceobject, core::mem::transmute(sectorsizeinfo)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlGetSupportedFeatures(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, supportedfeatures: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetSupportedFeatures(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, supportedfeatures : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlGetSupportedFeatures(core::mem::transmute(deviceobject), core::mem::transmute(supportedfeatures)) + FsRtlGetSupportedFeatures(deviceobject, core::mem::transmute(supportedfeatures)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlGetVirtualDiskNestingLevel(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, nestinglevel: *mut u32, nestingflags: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetVirtualDiskNestingLevel(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, nestinglevel : *mut u32, nestingflags : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlGetVirtualDiskNestingLevel(core::mem::transmute(deviceobject), core::mem::transmute(nestinglevel), core::mem::transmute(nestingflags.unwrap_or(core::mem::zeroed()))) + FsRtlGetVirtualDiskNestingLevel(deviceobject, core::mem::transmute(nestinglevel), core::mem::transmute(nestingflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FsRtlIncrementCcFastMdlReadWait() { @@ -761,25 +750,25 @@ pub unsafe fn FsRtlIncrementCcFastReadWait() { #[inline] pub unsafe fn FsRtlInitExtraCreateParameterLookasideList(lookaside: *mut core::ffi::c_void, flags: u32, size: usize, tag: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitExtraCreateParameterLookasideList(lookaside : *mut core::ffi::c_void, flags : u32, size : usize, tag : u32)); - FsRtlInitExtraCreateParameterLookasideList(core::mem::transmute(lookaside), core::mem::transmute(flags), core::mem::transmute(size), core::mem::transmute(tag)) + FsRtlInitExtraCreateParameterLookasideList(core::mem::transmute(lookaside), flags, size, tag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlInitializeBaseMcb(mcb: *mut BASE_MCB, pooltype: super::super::Foundation::POOL_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcb(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE)); - FsRtlInitializeBaseMcb(core::mem::transmute(mcb), core::mem::transmute(pooltype)) + FsRtlInitializeBaseMcb(core::mem::transmute(mcb), pooltype) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlInitializeBaseMcbEx(mcb: *mut BASE_MCB, pooltype: super::super::Foundation::POOL_TYPE, flags: u16) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcbEx(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE, flags : u16) -> bool); - FsRtlInitializeBaseMcbEx(core::mem::transmute(mcb), core::mem::transmute(pooltype), core::mem::transmute(flags)) + FsRtlInitializeBaseMcbEx(core::mem::transmute(mcb), pooltype, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlInitializeExtraCreateParameter(ecp: *mut super::super::Foundation::ECP_HEADER, ecpflags: u32, cleanupcallback: Option, totalsize: u32, ecptype: *const windows_core::GUID, listallocatedfrom: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeExtraCreateParameter(ecp : *mut super::super::Foundation:: ECP_HEADER, ecpflags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, totalsize : u32, ecptype : *const windows_core::GUID, listallocatedfrom : *const core::ffi::c_void)); - FsRtlInitializeExtraCreateParameter(core::mem::transmute(ecp), core::mem::transmute(ecpflags), core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(totalsize), core::mem::transmute(ecptype), core::mem::transmute(listallocatedfrom.unwrap_or(core::mem::zeroed()))) + FsRtlInitializeExtraCreateParameter(core::mem::transmute(ecp), ecpflags, core::mem::transmute(cleanupcallback.unwrap_or(core::mem::zeroed())), totalsize, ecptype, core::mem::transmute(listallocatedfrom.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -797,13 +786,13 @@ pub unsafe fn FsRtlInitializeFileLock(filelock: *mut FILE_LOCK, completelockirpr #[inline] pub unsafe fn FsRtlInitializeLargeMcb(mcb: *mut LARGE_MCB, pooltype: super::super::Foundation::POOL_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeLargeMcb(mcb : *mut LARGE_MCB, pooltype : super::super::Foundation:: POOL_TYPE)); - FsRtlInitializeLargeMcb(core::mem::transmute(mcb), core::mem::transmute(pooltype)) + FsRtlInitializeLargeMcb(core::mem::transmute(mcb), pooltype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlInitializeMcb(mcb: *mut MCB, pooltype: super::super::Foundation::POOL_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeMcb(mcb : *mut MCB, pooltype : super::super::Foundation:: POOL_TYPE)); - FsRtlInitializeMcb(core::mem::transmute(mcb), core::mem::transmute(pooltype)) + FsRtlInitializeMcb(core::mem::transmute(mcb), pooltype) } #[inline] pub unsafe fn FsRtlInitializeOplock(oplock: *mut *mut core::ffi::c_void) { @@ -826,64 +815,64 @@ pub unsafe fn FsRtlInsertExtraCreateParameter(ecplist: *mut super::super::Founda #[inline] pub unsafe fn FsRtlInsertPerFileContext(perfilecontextpointer: *const *const core::ffi::c_void, ptr: *const FSRTL_PER_FILE_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ptr : *const FSRTL_PER_FILE_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlInsertPerFileContext(core::mem::transmute(perfilecontextpointer), core::mem::transmute(ptr)) + FsRtlInsertPerFileContext(perfilecontextpointer, ptr) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlInsertPerFileObjectContext(fileobject: *const super::super::Foundation::FILE_OBJECT, ptr: *const FSRTL_PER_FILEOBJECT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerFileObjectContext(fileobject : *const super::super::Foundation:: FILE_OBJECT, ptr : *const FSRTL_PER_FILEOBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlInsertPerFileObjectContext(core::mem::transmute(fileobject), core::mem::transmute(ptr)) + FsRtlInsertPerFileObjectContext(fileobject, ptr) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlInsertPerStreamContext(perstreamcontext: *const FSRTL_ADVANCED_FCB_HEADER, ptr: *const FSRTL_PER_STREAM_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerStreamContext(perstreamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ptr : *const FSRTL_PER_STREAM_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlInsertPerStreamContext(core::mem::transmute(perstreamcontext), core::mem::transmute(ptr)) + FsRtlInsertPerStreamContext(perstreamcontext, ptr) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlIs32BitProcess(process: super::super::Foundation::PEPROCESS) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> bool); - FsRtlIs32BitProcess(core::mem::transmute(process)) + FsRtlIs32BitProcess(process) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlIsDaxVolume(fileobject: *const super::super::Foundation::FILE_OBJECT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDaxVolume(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); - FsRtlIsDaxVolume(core::mem::transmute(fileobject)) + FsRtlIsDaxVolume(fileobject) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn FsRtlIsDbcsInExpression(expression: *const super::super::super::Win32::System::Kernel::STRING, name: *const super::super::super::Win32::System::Kernel::STRING) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDbcsInExpression(expression : *const super::super::super::Win32::System::Kernel:: STRING, name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool); - FsRtlIsDbcsInExpression(core::mem::transmute(expression), core::mem::transmute(name)) + FsRtlIsDbcsInExpression(expression, name) } #[inline] pub unsafe fn FsRtlIsEcpAcknowledged(ecpcontext: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpAcknowledged(ecpcontext : *const core::ffi::c_void) -> bool); - FsRtlIsEcpAcknowledged(core::mem::transmute(ecpcontext)) + FsRtlIsEcpAcknowledged(ecpcontext) } #[inline] pub unsafe fn FsRtlIsEcpFromUserMode(ecpcontext: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpFromUserMode(ecpcontext : *const core::ffi::c_void) -> bool); - FsRtlIsEcpFromUserMode(core::mem::transmute(ecpcontext)) + FsRtlIsEcpFromUserMode(ecpcontext) } #[inline] pub unsafe fn FsRtlIsExtentDangling(startpage: u32, numberofpages: u32, flags: u32) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsExtentDangling(startpage : u32, numberofpages : u32, flags : u32) -> u32); - FsRtlIsExtentDangling(core::mem::transmute(startpage), core::mem::transmute(numberofpages), core::mem::transmute(flags)) + FsRtlIsExtentDangling(startpage, numberofpages, flags) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn FsRtlIsFatDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: bool, pathnamepermissible: bool, leadingbackslashpermissible: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool); - FsRtlIsFatDbcsLegal(core::mem::transmute(dbcsname), core::mem::transmute(wildcardspermissible), core::mem::transmute(pathnamepermissible), core::mem::transmute(leadingbackslashpermissible)) + FsRtlIsFatDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible, pathnamepermissible, leadingbackslashpermissible) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn FsRtlIsHpfsDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: bool, pathnamepermissible: bool, leadingbackslashpermissible: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool); - FsRtlIsHpfsDbcsLegal(core::mem::transmute(dbcsname), core::mem::transmute(wildcardspermissible), core::mem::transmute(pathnamepermissible), core::mem::transmute(leadingbackslashpermissible)) + FsRtlIsHpfsDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible, pathnamepermissible, leadingbackslashpermissible) } #[inline] pub unsafe fn FsRtlIsMobileOS() -> bool { @@ -896,7 +885,7 @@ where P3: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_core::PCWSTR) -> bool); - FsRtlIsNameInExpression(core::mem::transmute(expression), core::mem::transmute(name), core::mem::transmute(ignorecase), upcasetable.param().abi()) + FsRtlIsNameInExpression(expression, name, ignorecase, upcasetable.param().abi()) } #[inline] pub unsafe fn FsRtlIsNameInUnUpcasedExpression(expression: *const super::super::super::Win32::Foundation::UNICODE_STRING, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: P3) -> bool @@ -904,209 +893,186 @@ where P3: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInUnUpcasedExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_core::PCWSTR) -> bool); - FsRtlIsNameInUnUpcasedExpression(core::mem::transmute(expression), core::mem::transmute(name), core::mem::transmute(ignorecase), upcasetable.param().abi()) + FsRtlIsNameInUnUpcasedExpression(expression, name, ignorecase, upcasetable.param().abi()) } #[inline] pub unsafe fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool); - FsRtlIsNonEmptyDirectoryReparsePointAllowed(core::mem::transmute(reparsetag)) + FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag) } #[inline] pub unsafe fn FsRtlIsNtstatusExpected(exception: super::super::super::Win32::Foundation::NTSTATUS) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); - FsRtlIsNtstatusExpected(core::mem::transmute(exception)) + FsRtlIsNtstatusExpected(exception) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlIsPagingFile(fileobject: *const super::super::Foundation::FILE_OBJECT) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsPagingFile(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> u32); - FsRtlIsPagingFile(core::mem::transmute(fileobject)) + FsRtlIsPagingFile(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlIsSystemPagingFile(fileobject: *const super::super::Foundation::FILE_OBJECT) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsSystemPagingFile(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> u32); - FsRtlIsSystemPagingFile(core::mem::transmute(fileobject)) + FsRtlIsSystemPagingFile(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlIssueDeviceIoControl(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, ioctl: u32, flags: u8, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*const core::ffi::c_void>, outputbufferlength: u32, iosbinformation: Option<*mut usize>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIssueDeviceIoControl(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, ioctl : u32, flags : u8, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *const core::ffi::c_void, outputbufferlength : u32, iosbinformation : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlIssueDeviceIoControl(core::mem::transmute(deviceobject), core::mem::transmute(ioctl), core::mem::transmute(flags), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength), core::mem::transmute(iosbinformation.unwrap_or(core::mem::zeroed()))) + FsRtlIssueDeviceIoControl(deviceobject, ioctl, flags, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength, core::mem::transmute(iosbinformation.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlKernelFsControlFile(fileobject: *const super::super::Foundation::FILE_OBJECT, fscontrolcode: u32, inputbuffer: *const core::ffi::c_void, inputbufferlength: u32, outputbuffer: *mut core::ffi::c_void, outputbufferlength: u32, retoutputbuffersize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlKernelFsControlFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, retoutputbuffersize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlKernelFsControlFile(core::mem::transmute(fileobject), core::mem::transmute(fscontrolcode), core::mem::transmute(inputbuffer), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer), core::mem::transmute(outputbufferlength), core::mem::transmute(retoutputbuffersize)) + FsRtlKernelFsControlFile(fileobject, fscontrolcode, inputbuffer, inputbufferlength, core::mem::transmute(outputbuffer), outputbufferlength, core::mem::transmute(retoutputbuffersize)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlLogCcFlushError(filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, flusherror: super::super::super::Win32::Foundation::NTSTATUS, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLogCcFlushError(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flusherror : super::super::super::Win32::Foundation:: NTSTATUS, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlLogCcFlushError(core::mem::transmute(filename), core::mem::transmute(deviceobject), core::mem::transmute(sectionobjectpointer), core::mem::transmute(flusherror), core::mem::transmute(flags)) + FsRtlLogCcFlushError(filename, deviceobject, sectionobjectpointer, flusherror, flags) } #[inline] pub unsafe fn FsRtlLookupBaseMcbEntry(mcb: *const BASE_MCB, vbn: i64, lbn: Option<*mut i64>, sectorcountfromlbn: Option<*mut i64>, startinglbn: Option<*mut i64>, sectorcountfromstartinglbn: Option<*mut i64>, index: Option<*mut u32>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupBaseMcbEntry(mcb : *const BASE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool); - FsRtlLookupBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromlbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(startinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromstartinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(index.unwrap_or(core::mem::zeroed()))) + FsRtlLookupBaseMcbEntry(mcb, vbn, core::mem::transmute(lbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromlbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(startinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromstartinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(index.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupLargeMcbEntry(mcb: *const LARGE_MCB, vbn: i64, lbn: Option<*mut i64>, sectorcountfromlbn: Option<*mut i64>, startinglbn: Option<*mut i64>, sectorcountfromstartinglbn: Option<*mut i64>, index: Option<*mut u32>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLargeMcbEntry(mcb : *const LARGE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool); - FsRtlLookupLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromlbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(startinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromstartinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(index.unwrap_or(core::mem::zeroed()))) + FsRtlLookupLargeMcbEntry(mcb, vbn, core::mem::transmute(lbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromlbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(startinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromstartinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(index.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FsRtlLookupLastBaseMcbEntry(mcb: *const BASE_MCB, vbn: *mut i64, lbn: *mut i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntry(mcb : *const BASE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool); - FsRtlLookupLastBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn)) + FsRtlLookupLastBaseMcbEntry(mcb, core::mem::transmute(vbn), core::mem::transmute(lbn)) } #[inline] pub unsafe fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb: *const BASE_MCB, largevbn: *mut i64, largelbn: *mut i64, index: *mut u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb : *const BASE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool); - FsRtlLookupLastBaseMcbEntryAndIndex(core::mem::transmute(opaquemcb), core::mem::transmute(largevbn), core::mem::transmute(largelbn), core::mem::transmute(index)) + FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb, core::mem::transmute(largevbn), core::mem::transmute(largelbn), core::mem::transmute(index)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupLastLargeMcbEntry(mcb: *const LARGE_MCB, vbn: *mut i64, lbn: *mut i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntry(mcb : *const LARGE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool); - FsRtlLookupLastLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn)) + FsRtlLookupLastLargeMcbEntry(mcb, core::mem::transmute(vbn), core::mem::transmute(lbn)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb: *const LARGE_MCB, largevbn: *mut i64, largelbn: *mut i64, index: *mut u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb : *const LARGE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool); - FsRtlLookupLastLargeMcbEntryAndIndex(core::mem::transmute(opaquemcb), core::mem::transmute(largevbn), core::mem::transmute(largelbn), core::mem::transmute(index)) + FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb, core::mem::transmute(largevbn), core::mem::transmute(largelbn), core::mem::transmute(index)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupLastMcbEntry(mcb: *const MCB, vbn: *mut u32, lbn: *mut u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastMcbEntry(mcb : *const MCB, vbn : *mut u32, lbn : *mut u32) -> bool); - FsRtlLookupLastMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn)) + FsRtlLookupLastMcbEntry(mcb, core::mem::transmute(vbn), core::mem::transmute(lbn)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupMcbEntry(mcb: *const MCB, vbn: u32, lbn: *mut u32, sectorcount: Option<*mut u32>, index: *mut u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupMcbEntry(mcb : *const MCB, vbn : u32, lbn : *mut u32, sectorcount : *mut u32, index : *mut u32) -> bool); - FsRtlLookupMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount.unwrap_or(core::mem::zeroed())), core::mem::transmute(index)) + FsRtlLookupMcbEntry(mcb, vbn, core::mem::transmute(lbn), core::mem::transmute(sectorcount.unwrap_or(core::mem::zeroed())), core::mem::transmute(index)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupPerFileContext(perfilecontextpointer: *const *const core::ffi::c_void, ownerid: Option<*const core::ffi::c_void>, instanceid: Option<*const core::ffi::c_void>) -> *mut FSRTL_PER_FILE_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILE_CONTEXT); - FsRtlLookupPerFileContext(core::mem::transmute(perfilecontextpointer), core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) + FsRtlLookupPerFileContext(perfilecontextpointer, core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlLookupPerFileObjectContext(fileobject: *const super::super::Foundation::FILE_OBJECT, ownerid: Option<*const core::ffi::c_void>, instanceid: Option<*const core::ffi::c_void>) -> *mut FSRTL_PER_FILEOBJECT_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerFileObjectContext(fileobject : *const super::super::Foundation:: FILE_OBJECT, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILEOBJECT_CONTEXT); - FsRtlLookupPerFileObjectContext(core::mem::transmute(fileobject), core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) + FsRtlLookupPerFileObjectContext(fileobject, core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlLookupPerStreamContextInternal(streamcontext: *const FSRTL_ADVANCED_FCB_HEADER, ownerid: Option<*const core::ffi::c_void>, instanceid: Option<*const core::ffi::c_void>) -> *mut FSRTL_PER_STREAM_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerStreamContextInternal(streamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_STREAM_CONTEXT); - FsRtlLookupPerStreamContextInternal(core::mem::transmute(streamcontext), core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) + FsRtlLookupPerStreamContextInternal(streamcontext, core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlMdlReadCompleteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::Foundation::MDL, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); - FsRtlMdlReadCompleteDev(core::mem::transmute(fileobject), core::mem::transmute(mdlchain), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) + FsRtlMdlReadCompleteDev(fileobject, mdlchain, core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlMdlReadDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); - FsRtlMdlReadDev(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) + FsRtlMdlReadDev(fileobject, fileoffset, length, lockkey, core::mem::transmute(mdlchain), core::mem::transmute(iostatus), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlMdlReadEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlMdlReadEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) + FsRtlMdlReadEx(fileobject, fileoffset, length, lockkey, core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlMdlWriteCompleteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::Foundation::MDL, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlWriteCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); - FsRtlMdlWriteCompleteDev(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(mdlchain), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) + FsRtlMdlWriteCompleteDev(fileobject, fileoffset, mdlchain, core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FsRtlMupGetProviderIdFromName(pprovidername: *const super::super::super::Win32::Foundation::UNICODE_STRING, pproviderid: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMupGetProviderIdFromName(pprovidername : *const super::super::super::Win32::Foundation:: UNICODE_STRING, pproviderid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlMupGetProviderIdFromName(core::mem::transmute(pprovidername), core::mem::transmute(pproviderid)) + FsRtlMupGetProviderIdFromName(pprovidername, core::mem::transmute(pproviderid)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlMupGetProviderInfoFromFileObject(pfileobject: *const super::super::Foundation::FILE_OBJECT, level: u32, pbuffer: *mut core::ffi::c_void, pbuffersize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMupGetProviderInfoFromFileObject(pfileobject : *const super::super::Foundation:: FILE_OBJECT, level : u32, pbuffer : *mut core::ffi::c_void, pbuffersize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlMupGetProviderInfoFromFileObject(core::mem::transmute(pfileobject), core::mem::transmute(level), core::mem::transmute(pbuffer), core::mem::transmute(pbuffersize)) + FsRtlMupGetProviderInfoFromFileObject(pfileobject, level, core::mem::transmute(pbuffer), core::mem::transmute(pbuffersize)) } #[inline] pub unsafe fn FsRtlNormalizeNtstatus(exception: super::super::super::Win32::Foundation::NTSTATUS, genericexception: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNormalizeNtstatus(exception : super::super::super::Win32::Foundation:: NTSTATUS, genericexception : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlNormalizeNtstatus(core::mem::transmute(exception), core::mem::transmute(genericexception)) + FsRtlNormalizeNtstatus(exception, genericexception) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyCleanup(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyCleanup(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void)); - FsRtlNotifyCleanup(core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fscontext)) + FsRtlNotifyCleanup(notifysync, notifylist, fscontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyCleanupAll(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyCleanupAll(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY)); - FsRtlNotifyCleanupAll(core::mem::transmute(notifysync), core::mem::transmute(notifylist)) + FsRtlNotifyCleanupAll(notifysync, notifylist) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlNotifyFilterChangeDirectory(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void, fulldirectoryname: *const super::super::super::Win32::System::Kernel::STRING, watchtree: bool, ignorebuffer: bool, completionfilter: u32, notifyirp: Option<*const super::super::Foundation::IRP>, traversecallback: Option, subjectcontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, filtercallback: Option) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : PFILTER_REPORT_CHANGE)); - FsRtlNotifyFilterChangeDirectory( - core::mem::transmute(notifysync), - core::mem::transmute(notifylist), - core::mem::transmute(fscontext), - core::mem::transmute(fulldirectoryname), - core::mem::transmute(watchtree), - core::mem::transmute(ignorebuffer), - core::mem::transmute(completionfilter), - core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), - core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), - core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filtercallback.unwrap_or(core::mem::zeroed())), - ) + FsRtlNotifyFilterChangeDirectory(notifysync, notifylist, fscontext, fulldirectoryname, watchtree, ignorebuffer, completionfilter, core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(filtercallback.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyFilterReportChange(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fulltargetname: *const super::super::super::Win32::System::Kernel::STRING, targetnameoffset: u16, streamname: Option<*const super::super::super::Win32::System::Kernel::STRING>, normalizedparentname: Option<*const super::super::super::Win32::System::Kernel::STRING>, filtermatch: u32, action: u32, targetcontext: Option<*const core::ffi::c_void>, filtercontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterReportChange(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fulltargetname : *const super::super::super::Win32::System::Kernel:: STRING, targetnameoffset : u16, streamname : *const super::super::super::Win32::System::Kernel:: STRING, normalizedparentname : *const super::super::super::Win32::System::Kernel:: STRING, filtermatch : u32, action : u32, targetcontext : *const core::ffi::c_void, filtercontext : *const core::ffi::c_void)); - FsRtlNotifyFilterReportChange( - core::mem::transmute(notifysync), - core::mem::transmute(notifylist), - core::mem::transmute(fulltargetname), - core::mem::transmute(targetnameoffset), - core::mem::transmute(streamname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(normalizedparentname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filtermatch), - core::mem::transmute(action), - core::mem::transmute(targetcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filtercontext.unwrap_or(core::mem::zeroed())), - ) + FsRtlNotifyFilterReportChange(notifysync, notifylist, fulltargetname, targetnameoffset, core::mem::transmute(streamname.unwrap_or(core::mem::zeroed())), core::mem::transmute(normalizedparentname.unwrap_or(core::mem::zeroed())), filtermatch, action, core::mem::transmute(targetcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(filtercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlNotifyFullChangeDirectory(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void, fulldirectoryname: *mut super::super::super::Win32::System::Kernel::STRING, watchtree: bool, ignorebuffer: bool, completionfilter: u32, notifyirp: Option<*const super::super::Foundation::IRP>, traversecallback: Option, subjectcontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *mut super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); - FsRtlNotifyFullChangeDirectory(core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fscontext), core::mem::transmute(fulldirectoryname), core::mem::transmute(watchtree), core::mem::transmute(ignorebuffer), core::mem::transmute(completionfilter), core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed()))) + FsRtlNotifyFullChangeDirectory(notifysync, notifylist, fscontext, core::mem::transmute(fulldirectoryname), watchtree, ignorebuffer, completionfilter, core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyFullReportChange(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fulltargetname: *const super::super::super::Win32::System::Kernel::STRING, targetnameoffset: u16, streamname: Option<*const super::super::super::Win32::System::Kernel::STRING>, normalizedparentname: Option<*const super::super::super::Win32::System::Kernel::STRING>, filtermatch: u32, action: u32, targetcontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullReportChange(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fulltargetname : *const super::super::super::Win32::System::Kernel:: STRING, targetnameoffset : u16, streamname : *const super::super::super::Win32::System::Kernel:: STRING, normalizedparentname : *const super::super::super::Win32::System::Kernel:: STRING, filtermatch : u32, action : u32, targetcontext : *const core::ffi::c_void)); - FsRtlNotifyFullReportChange(core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fulltargetname), core::mem::transmute(targetnameoffset), core::mem::transmute(streamname.unwrap_or(core::mem::zeroed())), core::mem::transmute(normalizedparentname.unwrap_or(core::mem::zeroed())), core::mem::transmute(filtermatch), core::mem::transmute(action), core::mem::transmute(targetcontext.unwrap_or(core::mem::zeroed()))) + FsRtlNotifyFullReportChange(notifysync, notifylist, fulltargetname, targetnameoffset, core::mem::transmute(streamname.unwrap_or(core::mem::zeroed())), core::mem::transmute(normalizedparentname.unwrap_or(core::mem::zeroed())), filtermatch, action, core::mem::transmute(targetcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1126,83 +1092,83 @@ pub unsafe fn FsRtlNotifyUninitializeSync(notifysync: *mut super::super::Foundat #[inline] pub unsafe fn FsRtlNotifyVolumeEvent(fileobject: *const super::super::Foundation::FILE_OBJECT, eventcode: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyVolumeEvent(fileobject : *const super::super::Foundation:: FILE_OBJECT, eventcode : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlNotifyVolumeEvent(core::mem::transmute(fileobject), core::mem::transmute(eventcode)) + FsRtlNotifyVolumeEvent(fileobject, eventcode) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlNotifyVolumeEventEx(fileobject: *const super::super::Foundation::FILE_OBJECT, eventcode: u32, event: *const super::super::Foundation::TARGET_DEVICE_CUSTOM_NOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyVolumeEventEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, eventcode : u32, event : *const super::super::Foundation:: TARGET_DEVICE_CUSTOM_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlNotifyVolumeEventEx(core::mem::transmute(fileobject), core::mem::transmute(eventcode), core::mem::transmute(event)) + FsRtlNotifyVolumeEventEx(fileobject, eventcode, event) } #[inline] pub unsafe fn FsRtlNumberOfRunsInBaseMcb(mcb: *const BASE_MCB) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNumberOfRunsInBaseMcb(mcb : *const BASE_MCB) -> u32); - FsRtlNumberOfRunsInBaseMcb(core::mem::transmute(mcb)) + FsRtlNumberOfRunsInBaseMcb(mcb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNumberOfRunsInLargeMcb(mcb: *const LARGE_MCB) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNumberOfRunsInLargeMcb(mcb : *const LARGE_MCB) -> u32); - FsRtlNumberOfRunsInLargeMcb(core::mem::transmute(mcb)) + FsRtlNumberOfRunsInLargeMcb(mcb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNumberOfRunsInMcb(mcb: *const MCB) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNumberOfRunsInMcb(mcb : *const MCB) -> u32); - FsRtlNumberOfRunsInMcb(core::mem::transmute(mcb)) + FsRtlNumberOfRunsInMcb(mcb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockBreakH(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, flags: u32, context: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakH(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlOplockBreakH(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) + FsRtlOplockBreakH(oplock, irp, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockBreakH2(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, flags: u32, context: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option, grantedaccess: Option<*const u32>, shareaccess: Option<*const u16>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakH2(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP, grantedaccess : *const u32, shareaccess : *const u16) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlOplockBreakH2(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(grantedaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(shareaccess.unwrap_or(core::mem::zeroed()))) + FsRtlOplockBreakH2(oplock, irp, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(grantedaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(shareaccess.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockBreakToNone(oplock: *mut *mut core::ffi::c_void, irpsp: Option<*const super::super::Foundation::IO_STACK_LOCATION>, irp: *const super::super::Foundation::IRP, context: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakToNone(oplock : *mut *mut core::ffi::c_void, irpsp : *const super::super::Foundation:: IO_STACK_LOCATION, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlOplockBreakToNone(core::mem::transmute(oplock), core::mem::transmute(irpsp.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) + FsRtlOplockBreakToNone(core::mem::transmute(oplock), core::mem::transmute(irpsp.unwrap_or(core::mem::zeroed())), irp, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockBreakToNoneEx(oplock: *mut *mut core::ffi::c_void, irp: *const super::super::Foundation::IRP, flags: u32, context: Option<*const core::ffi::c_void>, completionroutine: Option, postirproutine: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakToNoneEx(oplock : *mut *mut core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlOplockBreakToNoneEx(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) + FsRtlOplockBreakToNoneEx(core::mem::transmute(oplock), irp, flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(postirproutine.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockFsctrl(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, opencount: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockFsctrl(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlOplockFsctrl(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(opencount)) + FsRtlOplockFsctrl(oplock, irp, opencount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockFsctrlEx(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, opencount: u32, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockFsctrlEx(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlOplockFsctrlEx(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(opencount), core::mem::transmute(flags)) + FsRtlOplockFsctrlEx(oplock, irp, opencount, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlOplockGetAnyBreakOwnerProcess(oplock: *const *const core::ffi::c_void) -> super::super::Foundation::PEPROCESS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockGetAnyBreakOwnerProcess(oplock : *const *const core::ffi::c_void) -> super::super::Foundation:: PEPROCESS); - FsRtlOplockGetAnyBreakOwnerProcess(core::mem::transmute(oplock)) + FsRtlOplockGetAnyBreakOwnerProcess(oplock) } #[inline] pub unsafe fn FsRtlOplockIsFastIoPossible(oplock: *const *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool); - FsRtlOplockIsFastIoPossible(core::mem::transmute(oplock)) + FsRtlOplockIsFastIoPossible(oplock) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlOplockIsSharedRequest(irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsSharedRequest(irp : *const super::super::Foundation:: IRP) -> bool); - FsRtlOplockIsSharedRequest(core::mem::transmute(irp)) + FsRtlOplockIsSharedRequest(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1214,60 +1180,60 @@ pub unsafe fn FsRtlOplockKeysEqual(fo1: Option<*const super::super::Foundation:: #[inline] pub unsafe fn FsRtlPostPagingFileStackOverflow(context: *const core::ffi::c_void, event: *const super::super::Foundation::KEVENT, stackoverflowroutine: PFSRTL_STACK_OVERFLOW_ROUTINE) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPostPagingFileStackOverflow(context : *const core::ffi::c_void, event : *const super::super::Foundation:: KEVENT, stackoverflowroutine : PFSRTL_STACK_OVERFLOW_ROUTINE)); - FsRtlPostPagingFileStackOverflow(core::mem::transmute(context), core::mem::transmute(event), core::mem::transmute(stackoverflowroutine)) + FsRtlPostPagingFileStackOverflow(context, event, stackoverflowroutine) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlPostStackOverflow(context: *const core::ffi::c_void, event: *const super::super::Foundation::KEVENT, stackoverflowroutine: PFSRTL_STACK_OVERFLOW_ROUTINE) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPostStackOverflow(context : *const core::ffi::c_void, event : *const super::super::Foundation:: KEVENT, stackoverflowroutine : PFSRTL_STACK_OVERFLOW_ROUTINE)); - FsRtlPostStackOverflow(core::mem::transmute(context), core::mem::transmute(event), core::mem::transmute(stackoverflowroutine)) + FsRtlPostStackOverflow(context, event, stackoverflowroutine) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlPrepareMdlWriteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); - FsRtlPrepareMdlWriteDev(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) + FsRtlPrepareMdlWriteDev(fileobject, fileoffset, length, lockkey, core::mem::transmute(mdlchain), core::mem::transmute(iostatus), deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlPrepareMdlWriteEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlPrepareMdlWriteEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) + FsRtlPrepareMdlWriteEx(fileobject, fileoffset, length, lockkey, core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[inline] pub unsafe fn FsRtlPrepareToReuseEcp(ecpcontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareToReuseEcp(ecpcontext : *const core::ffi::c_void)); - FsRtlPrepareToReuseEcp(core::mem::transmute(ecpcontext)) + FsRtlPrepareToReuseEcp(ecpcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlPrivateLock(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: *const i64, processid: super::super::Foundation::PEPROCESS, key: u32, failimmediately: bool, exclusivelock: bool, iosb: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, irp: Option<*const super::super::Foundation::IRP>, context: Option<*const core::ffi::c_void>, alreadysynchronized: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrivateLock(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, failimmediately : bool, exclusivelock : bool, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : bool) -> bool); - FsRtlPrivateLock(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(processid), core::mem::transmute(key), core::mem::transmute(failimmediately), core::mem::transmute(exclusivelock), core::mem::transmute(iosb), core::mem::transmute(irp.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(alreadysynchronized)) + FsRtlPrivateLock(filelock, fileobject, fileoffset, length, processid, key, failimmediately, exclusivelock, core::mem::transmute(iosb), core::mem::transmute(irp.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), alreadysynchronized) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlProcessFileLock(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlProcessFileLock(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlProcessFileLock(core::mem::transmute(filelock), core::mem::transmute(irp), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + FsRtlProcessFileLock(filelock, irp, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlQueryCachedVdl(fileobject: *const super::super::Foundation::FILE_OBJECT, vdl: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryCachedVdl(fileobject : *const super::super::Foundation:: FILE_OBJECT, vdl : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlQueryCachedVdl(core::mem::transmute(fileobject), core::mem::transmute(vdl)) + FsRtlQueryCachedVdl(fileobject, core::mem::transmute(vdl)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlQueryInformationFile(fileobject: *const super::super::Foundation::FILE_OBJECT, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, retfileinformationsize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryInformationFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, retfileinformationsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlQueryInformationFile(core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(retfileinformationsize)) + FsRtlQueryInformationFile(fileobject, core::mem::transmute(fileinformation), length, fileinformationclass, core::mem::transmute(retfileinformationsize)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlQueryKernelEaFile(fileobject: *const super::super::Foundation::FILE_OBJECT, returnedeadata: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlQueryKernelEaFile(core::mem::transmute(fileobject), core::mem::transmute(returnedeadata), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + FsRtlQueryKernelEaFile(fileobject, core::mem::transmute(returnedeadata), length, returnsingleentry, core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), ealistlength, core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan, core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FsRtlQueryMaximumVirtualDiskNestingLevel() -> u32 { @@ -1278,76 +1244,76 @@ pub unsafe fn FsRtlQueryMaximumVirtualDiskNestingLevel() -> u32 { #[inline] pub unsafe fn FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject: *const super::super::Foundation::DRIVER_OBJECT, callbacks: *const FS_FILTER_CALLBACKS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject : *const super::super::Foundation:: DRIVER_OBJECT, callbacks : *const FS_FILTER_CALLBACKS) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRegisterFileSystemFilterCallbacks(core::mem::transmute(filterdriverobject), core::mem::transmute(callbacks)) + FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject, callbacks) } #[inline] pub unsafe fn FsRtlRegisterUncProvider(muphandle: *mut super::super::super::Win32::Foundation::HANDLE, redirectordevicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, mailslotssupported: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProvider(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirectordevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, mailslotssupported : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRegisterUncProvider(core::mem::transmute(muphandle), core::mem::transmute(redirectordevicename), core::mem::transmute(mailslotssupported)) + FsRtlRegisterUncProvider(core::mem::transmute(muphandle), redirectordevicename, mailslotssupported) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlRegisterUncProviderEx(muphandle: *mut super::super::super::Win32::Foundation::HANDLE, redirdevname: *const super::super::super::Win32::Foundation::UNICODE_STRING, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProviderEx(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirdevname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRegisterUncProviderEx(core::mem::transmute(muphandle), core::mem::transmute(redirdevname), core::mem::transmute(deviceobject), core::mem::transmute(flags)) + FsRtlRegisterUncProviderEx(core::mem::transmute(muphandle), redirdevname, deviceobject, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlRegisterUncProviderEx2(redirdevname: *const super::super::super::Win32::Foundation::UNICODE_STRING, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, registration: *const FSRTL_UNC_PROVIDER_REGISTRATION, muphandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProviderEx2(redirdevname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, registration : *const FSRTL_UNC_PROVIDER_REGISTRATION, muphandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRegisterUncProviderEx2(core::mem::transmute(redirdevname), core::mem::transmute(deviceobject), core::mem::transmute(registration), core::mem::transmute(muphandle)) + FsRtlRegisterUncProviderEx2(redirdevname, deviceobject, registration, core::mem::transmute(muphandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlReleaseFile(fileobject: *const super::super::Foundation::FILE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlReleaseFile(fileobject : *const super::super::Foundation:: FILE_OBJECT)); - FsRtlReleaseFile(core::mem::transmute(fileobject)) + FsRtlReleaseFile(fileobject) } #[inline] pub unsafe fn FsRtlRemoveBaseMcbEntry(mcb: *mut BASE_MCB, vbn: i64, sectorcount: i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, sectorcount : i64) -> bool); - FsRtlRemoveBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(sectorcount)) + FsRtlRemoveBaseMcbEntry(core::mem::transmute(mcb), vbn, sectorcount) } #[inline] pub unsafe fn FsRtlRemoveDotsFromPath(originalstring: windows_core::PWSTR, pathlength: u16, newlength: *mut u16) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveDotsFromPath(originalstring : windows_core::PWSTR, pathlength : u16, newlength : *mut u16) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRemoveDotsFromPath(core::mem::transmute(originalstring), core::mem::transmute(pathlength), core::mem::transmute(newlength)) + FsRtlRemoveDotsFromPath(core::mem::transmute(originalstring), pathlength, core::mem::transmute(newlength)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FsRtlRemoveExtraCreateParameter(ecplist: *mut super::super::Foundation::ECP_LIST, ecptype: *const windows_core::GUID, ecpcontext: *mut *mut core::ffi::c_void, ecpcontextsize: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveExtraCreateParameter(ecplist : *mut super::super::Foundation:: ECP_LIST, ecptype : *const windows_core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRemoveExtraCreateParameter(core::mem::transmute(ecplist), core::mem::transmute(ecptype), core::mem::transmute(ecpcontext), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) + FsRtlRemoveExtraCreateParameter(core::mem::transmute(ecplist), ecptype, core::mem::transmute(ecpcontext), core::mem::transmute(ecpcontextsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlRemoveLargeMcbEntry(mcb: *mut LARGE_MCB, vbn: i64, sectorcount: i64) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, sectorcount : i64)); - FsRtlRemoveLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(sectorcount)) + FsRtlRemoveLargeMcbEntry(core::mem::transmute(mcb), vbn, sectorcount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlRemoveMcbEntry(mcb: *mut MCB, vbn: u32, sectorcount: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveMcbEntry(mcb : *mut MCB, vbn : u32, sectorcount : u32)); - FsRtlRemoveMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(sectorcount)) + FsRtlRemoveMcbEntry(core::mem::transmute(mcb), vbn, sectorcount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlRemovePerFileContext(perfilecontextpointer: *const *const core::ffi::c_void, ownerid: Option<*const core::ffi::c_void>, instanceid: Option<*const core::ffi::c_void>) -> *mut FSRTL_PER_FILE_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILE_CONTEXT); - FsRtlRemovePerFileContext(core::mem::transmute(perfilecontextpointer), core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) + FsRtlRemovePerFileContext(perfilecontextpointer, core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlRemovePerFileObjectContext(fileobject: *const super::super::Foundation::FILE_OBJECT, ownerid: Option<*const core::ffi::c_void>, instanceid: Option<*const core::ffi::c_void>) -> *mut FSRTL_PER_FILEOBJECT_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerFileObjectContext(fileobject : *const super::super::Foundation:: FILE_OBJECT, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILEOBJECT_CONTEXT); - FsRtlRemovePerFileObjectContext(core::mem::transmute(fileobject), core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) + FsRtlRemovePerFileObjectContext(fileobject, core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlRemovePerStreamContext(streamcontext: *const FSRTL_ADVANCED_FCB_HEADER, ownerid: Option<*const core::ffi::c_void>, instanceid: Option<*const core::ffi::c_void>) -> *mut FSRTL_PER_STREAM_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerStreamContext(streamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_STREAM_CONTEXT); - FsRtlRemovePerStreamContext(core::mem::transmute(streamcontext), core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) + FsRtlRemovePerStreamContext(streamcontext, core::mem::transmute(ownerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(instanceid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FsRtlResetBaseMcb() -> BASE_MCB { @@ -1360,69 +1326,69 @@ pub unsafe fn FsRtlResetBaseMcb() -> BASE_MCB { #[inline] pub unsafe fn FsRtlResetLargeMcb(mcb: *mut LARGE_MCB, selfsynchronized: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : bool)); - FsRtlResetLargeMcb(core::mem::transmute(mcb), core::mem::transmute(selfsynchronized)) + FsRtlResetLargeMcb(core::mem::transmute(mcb), selfsynchronized) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlSetDriverBacking(driverobj: *const super::super::Foundation::DRIVER_OBJECT, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSetDriverBacking(driverobj : *const super::super::Foundation:: DRIVER_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlSetDriverBacking(core::mem::transmute(driverobj), core::mem::transmute(flags)) + FsRtlSetDriverBacking(driverobj, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlSetEcpListIntoIrp(irp: *mut super::super::Foundation::IRP, ecplist: *const super::super::Foundation::ECP_LIST) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSetEcpListIntoIrp(irp : *mut super::super::Foundation:: IRP, ecplist : *const super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlSetEcpListIntoIrp(core::mem::transmute(irp), core::mem::transmute(ecplist)) + FsRtlSetEcpListIntoIrp(core::mem::transmute(irp), ecplist) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlSetKernelEaFile(fileobject: *const super::super::Foundation::FILE_OBJECT, eabuffer: *const core::ffi::c_void, length: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSetKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, eabuffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlSetKernelEaFile(core::mem::transmute(fileobject), core::mem::transmute(eabuffer), core::mem::transmute(length)) + FsRtlSetKernelEaFile(fileobject, eabuffer, length) } #[inline] pub unsafe fn FsRtlSplitBaseMcb(mcb: *mut BASE_MCB, vbn: i64, amount: i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitBaseMcb(mcb : *mut BASE_MCB, vbn : i64, amount : i64) -> bool); - FsRtlSplitBaseMcb(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(amount)) + FsRtlSplitBaseMcb(core::mem::transmute(mcb), vbn, amount) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlSplitLargeMcb(mcb: *mut LARGE_MCB, vbn: i64, amount: i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitLargeMcb(mcb : *mut LARGE_MCB, vbn : i64, amount : i64) -> bool); - FsRtlSplitLargeMcb(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(amount)) + FsRtlSplitLargeMcb(core::mem::transmute(mcb), vbn, amount) } #[inline] pub unsafe fn FsRtlTeardownPerFileContexts(perfilecontextpointer: *const *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTeardownPerFileContexts(perfilecontextpointer : *const *const core::ffi::c_void)); - FsRtlTeardownPerFileContexts(core::mem::transmute(perfilecontextpointer)) + FsRtlTeardownPerFileContexts(perfilecontextpointer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlTeardownPerStreamContexts(advancedheader: *const FSRTL_ADVANCED_FCB_HEADER) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTeardownPerStreamContexts(advancedheader : *const FSRTL_ADVANCED_FCB_HEADER)); - FsRtlTeardownPerStreamContexts(core::mem::transmute(advancedheader)) + FsRtlTeardownPerStreamContexts(advancedheader) } #[inline] pub unsafe fn FsRtlTruncateBaseMcb(mcb: *mut BASE_MCB, vbn: i64) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTruncateBaseMcb(mcb : *mut BASE_MCB, vbn : i64)); - FsRtlTruncateBaseMcb(core::mem::transmute(mcb), core::mem::transmute(vbn)) + FsRtlTruncateBaseMcb(core::mem::transmute(mcb), vbn) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlTruncateLargeMcb(mcb: *mut LARGE_MCB, vbn: i64) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTruncateLargeMcb(mcb : *mut LARGE_MCB, vbn : i64)); - FsRtlTruncateLargeMcb(core::mem::transmute(mcb), core::mem::transmute(vbn)) + FsRtlTruncateLargeMcb(core::mem::transmute(mcb), vbn) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlTruncateMcb(mcb: *mut MCB, vbn: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTruncateMcb(mcb : *mut MCB, vbn : u32)); - FsRtlTruncateMcb(core::mem::transmute(mcb), core::mem::transmute(vbn)) + FsRtlTruncateMcb(core::mem::transmute(mcb), vbn) } #[inline] pub unsafe fn FsRtlUninitializeBaseMcb(mcb: *const BASE_MCB) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlUninitializeBaseMcb(mcb : *const BASE_MCB)); - FsRtlUninitializeBaseMcb(core::mem::transmute(mcb)) + FsRtlUninitializeBaseMcb(mcb) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1450,30 +1416,30 @@ pub unsafe fn FsRtlUninitializeOplock(oplock: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn FsRtlUpdateDiskCounters(bytesread: u64, byteswritten: u64) { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlUpdateDiskCounters(bytesread : u64, byteswritten : u64)); - FsRtlUpdateDiskCounters(core::mem::transmute(bytesread), core::mem::transmute(byteswritten)) + FsRtlUpdateDiskCounters(bytesread, byteswritten) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlUpperOplockFsctrl(oplock: *const *const core::ffi::c_void, irp: *const super::super::Foundation::IRP, opencount: u32, loweroplockstate: u32, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlUpperOplockFsctrl(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32, loweroplockstate : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlUpperOplockFsctrl(core::mem::transmute(oplock), core::mem::transmute(irp), core::mem::transmute(opencount), core::mem::transmute(loweroplockstate), core::mem::transmute(flags)) + FsRtlUpperOplockFsctrl(oplock, irp, opencount, loweroplockstate, flags) } #[inline] pub unsafe fn FsRtlValidateReparsePointBuffer(bufferlength: u32, reparsebuffer: *const REPARSE_DATA_BUFFER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlValidateReparsePointBuffer(bufferlength : u32, reparsebuffer : *const REPARSE_DATA_BUFFER) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlValidateReparsePointBuffer(core::mem::transmute(bufferlength), core::mem::transmute(reparsebuffer)) + FsRtlValidateReparsePointBuffer(bufferlength, reparsebuffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlVolumeDeviceToCorrelationId(volumedeviceobject: *const super::super::Foundation::DEVICE_OBJECT, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlVolumeDeviceToCorrelationId(volumedeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, guid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlVolumeDeviceToCorrelationId(core::mem::transmute(volumedeviceobject), core::mem::transmute(guid)) + FsRtlVolumeDeviceToCorrelationId(volumedeviceobject, core::mem::transmute(guid)) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn GetSecurityUserInfo(logonid: Option<*const super::super::super::Win32::Foundation::LUID>, flags: u32, userinformation: *mut *mut super::super::super::Win32::Security::Authentication::Identity::SECURITY_USER_DATA) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn GetSecurityUserInfo(logonid : *const super::super::super::Win32::Foundation:: LUID, flags : u32, userinformation : *mut *mut super::super::super::Win32::Security::Authentication::Identity:: SECURITY_USER_DATA) -> super::super::super::Win32::Foundation:: NTSTATUS); - GetSecurityUserInfo(core::mem::transmute(logonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(userinformation)) + GetSecurityUserInfo(core::mem::transmute(logonid.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(userinformation)) } #[inline] pub unsafe fn IoAcquireVpbSpinLock() -> u8 { @@ -1486,38 +1452,38 @@ pub unsafe fn IoAcquireVpbSpinLock() -> u8 { #[inline] pub unsafe fn IoApplyPriorityInfoThread(inputpriorityinfo: *const IO_PRIORITY_INFO, outputpriorityinfo: Option<*mut IO_PRIORITY_INFO>, thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoApplyPriorityInfoThread(inputpriorityinfo : *const IO_PRIORITY_INFO, outputpriorityinfo : *mut IO_PRIORITY_INFO, thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoApplyPriorityInfoThread(core::mem::transmute(inputpriorityinfo), core::mem::transmute(outputpriorityinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(thread)) + IoApplyPriorityInfoThread(inputpriorityinfo, core::mem::transmute(outputpriorityinfo.unwrap_or(core::mem::zeroed())), thread) } #[inline] pub unsafe fn IoCheckDesiredAccess(desiredaccess: *mut u32, grantedaccess: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckDesiredAccess(desiredaccess : *mut u32, grantedaccess : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckDesiredAccess(core::mem::transmute(desiredaccess), core::mem::transmute(grantedaccess)) + IoCheckDesiredAccess(core::mem::transmute(desiredaccess), grantedaccess) } #[inline] pub unsafe fn IoCheckEaBufferValidity(eabuffer: *const FILE_FULL_EA_INFORMATION, ealength: u32, erroroffset: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckEaBufferValidity(eabuffer : *const FILE_FULL_EA_INFORMATION, ealength : u32, erroroffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckEaBufferValidity(core::mem::transmute(eabuffer), core::mem::transmute(ealength), core::mem::transmute(erroroffset)) + IoCheckEaBufferValidity(eabuffer, ealength, core::mem::transmute(erroroffset)) } #[inline] pub unsafe fn IoCheckFunctionAccess(grantedaccess: u32, majorfunction: u8, minorfunction: u8, iocontrolcode: u32, arg1: Option<*const core::ffi::c_void>, arg2: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckFunctionAccess(grantedaccess : u32, majorfunction : u8, minorfunction : u8, iocontrolcode : u32, arg1 : *const core::ffi::c_void, arg2 : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckFunctionAccess(core::mem::transmute(grantedaccess), core::mem::transmute(majorfunction), core::mem::transmute(minorfunction), core::mem::transmute(iocontrolcode), core::mem::transmute(arg1.unwrap_or(core::mem::zeroed())), core::mem::transmute(arg2.unwrap_or(core::mem::zeroed()))) + IoCheckFunctionAccess(grantedaccess, majorfunction, minorfunction, iocontrolcode, core::mem::transmute(arg1.unwrap_or(core::mem::zeroed())), core::mem::transmute(arg2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoCheckQuerySetFileInformation(fileinformationclass: FILE_INFORMATION_CLASS, length: u32, setoperation: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuerySetFileInformation(core::mem::transmute(fileinformationclass), core::mem::transmute(length), core::mem::transmute(setoperation)) + IoCheckQuerySetFileInformation(fileinformationclass, length, setoperation) } #[inline] pub unsafe fn IoCheckQuerySetVolumeInformation(fsinformationclass: FS_INFORMATION_CLASS, length: u32, setoperation: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuerySetVolumeInformation(core::mem::transmute(fsinformationclass), core::mem::transmute(length), core::mem::transmute(setoperation)) + IoCheckQuerySetVolumeInformation(fsinformationclass, length, setoperation) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IoCheckQuotaBufferValidity(quotabuffer: *const FILE_QUOTA_INFORMATION, quotalength: u32, erroroffset: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuotaBufferValidity(quotabuffer : *const FILE_QUOTA_INFORMATION, quotalength : u32, erroroffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuotaBufferValidity(core::mem::transmute(quotabuffer), core::mem::transmute(quotalength), core::mem::transmute(erroroffset)) + IoCheckQuotaBufferValidity(quotabuffer, quotalength, core::mem::transmute(erroroffset)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1541,7 +1507,7 @@ pub unsafe fn IoCreateStreamFileObjectEx(fileobject: Option<*const super::super: #[inline] pub unsafe fn IoCreateStreamFileObjectEx2(createoptions: *const IO_CREATE_STREAM_FILE_OPTIONS, fileobject: Option<*const super::super::Foundation::FILE_OBJECT>, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, streamfileobject: *mut *mut super::super::Foundation::FILE_OBJECT, filehandle: Option<*mut super::super::super::Win32::Foundation::HANDLE>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateStreamFileObjectEx2(createoptions : *const IO_CREATE_STREAM_FILE_OPTIONS, fileobject : *const super::super::Foundation:: FILE_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, streamfileobject : *mut *mut super::super::Foundation:: FILE_OBJECT, filehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateStreamFileObjectEx2(core::mem::transmute(createoptions), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(streamfileobject), core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed()))) + IoCreateStreamFileObjectEx2(createoptions, core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(streamfileobject), core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1553,168 +1519,168 @@ pub unsafe fn IoCreateStreamFileObjectLite(fileobject: Option<*const super::supe #[inline] pub unsafe fn IoEnumerateDeviceObjectList(driverobject: *const super::super::Foundation::DRIVER_OBJECT, deviceobjectlist: Option<*mut *mut super::super::Foundation::DEVICE_OBJECT>, deviceobjectlistsize: u32, actualnumberdeviceobjects: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoEnumerateDeviceObjectList(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceobjectlist : *mut *mut super::super::Foundation:: DEVICE_OBJECT, deviceobjectlistsize : u32, actualnumberdeviceobjects : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoEnumerateDeviceObjectList(core::mem::transmute(driverobject), core::mem::transmute(deviceobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobjectlistsize), core::mem::transmute(actualnumberdeviceobjects)) + IoEnumerateDeviceObjectList(driverobject, core::mem::transmute(deviceobjectlist.unwrap_or(core::mem::zeroed())), deviceobjectlistsize, core::mem::transmute(actualnumberdeviceobjects)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoEnumerateRegisteredFiltersList(driverobjectlist: Option<*mut *mut super::super::Foundation::DRIVER_OBJECT>, driverobjectlistsize: u32, actualnumberdriverobjects: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoEnumerateRegisteredFiltersList(driverobjectlist : *mut *mut super::super::Foundation:: DRIVER_OBJECT, driverobjectlistsize : u32, actualnumberdriverobjects : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoEnumerateRegisteredFiltersList(core::mem::transmute(driverobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverobjectlistsize), core::mem::transmute(actualnumberdriverobjects)) + IoEnumerateRegisteredFiltersList(core::mem::transmute(driverobjectlist.unwrap_or(core::mem::zeroed())), driverobjectlistsize, core::mem::transmute(actualnumberdriverobjects)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn IoFastQueryNetworkAttributes(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, desiredaccess: u32, openoptions: u32, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut FILE_NETWORK_OPEN_INFORMATION) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoFastQueryNetworkAttributes(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, desiredaccess : u32, openoptions : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut FILE_NETWORK_OPEN_INFORMATION) -> bool); - IoFastQueryNetworkAttributes(core::mem::transmute(objectattributes), core::mem::transmute(desiredaccess), core::mem::transmute(openoptions), core::mem::transmute(iostatus), core::mem::transmute(buffer)) + IoFastQueryNetworkAttributes(objectattributes, desiredaccess, openoptions, core::mem::transmute(iostatus), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetAttachedDevice(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetAttachedDevice(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetAttachedDevice(core::mem::transmute(deviceobject)) + IoGetAttachedDevice(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetBaseFileSystemDeviceObject(fileobject: *const super::super::Foundation::FILE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetBaseFileSystemDeviceObject(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetBaseFileSystemDeviceObject(core::mem::transmute(fileobject)) + IoGetBaseFileSystemDeviceObject(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDeviceAttachmentBaseRef(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceAttachmentBaseRef(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetDeviceAttachmentBaseRef(core::mem::transmute(deviceobject)) + IoGetDeviceAttachmentBaseRef(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDeviceToVerify(thread: super::super::Foundation::PETHREAD) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceToVerify(thread : super::super::Foundation:: PETHREAD) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetDeviceToVerify(core::mem::transmute(thread)) + IoGetDeviceToVerify(thread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDiskDeviceObject(filesystemdeviceobject: *const super::super::Foundation::DEVICE_OBJECT, diskdeviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDiskDeviceObject(filesystemdeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, diskdeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDiskDeviceObject(core::mem::transmute(filesystemdeviceobject), core::mem::transmute(diskdeviceobject)) + IoGetDiskDeviceObject(filesystemdeviceobject, core::mem::transmute(diskdeviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetFsTrackOffsetState(irp: *const super::super::Foundation::IRP, retfstrackoffsetblob: *mut *mut super::super::super::Win32::System::Ioctl::IO_IRP_EXT_TRACK_OFFSET_HEADER, rettrackedoffset: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetFsTrackOffsetState(irp : *const super::super::Foundation:: IRP, retfstrackoffsetblob : *mut *mut super::super::super::Win32::System::Ioctl:: IO_IRP_EXT_TRACK_OFFSET_HEADER, rettrackedoffset : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetFsTrackOffsetState(core::mem::transmute(irp), core::mem::transmute(retfstrackoffsetblob), core::mem::transmute(rettrackedoffset)) + IoGetFsTrackOffsetState(irp, core::mem::transmute(retfstrackoffsetblob), core::mem::transmute(rettrackedoffset)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetLowerDeviceObject(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetLowerDeviceObject(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetLowerDeviceObject(core::mem::transmute(deviceobject)) + IoGetLowerDeviceObject(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetOplockKeyContext(fileobject: *const super::super::Foundation::FILE_OBJECT) -> *mut OPLOCK_KEY_ECP_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetOplockKeyContext(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut OPLOCK_KEY_ECP_CONTEXT); - IoGetOplockKeyContext(core::mem::transmute(fileobject)) + IoGetOplockKeyContext(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetOplockKeyContextEx(fileobject: *const super::super::Foundation::FILE_OBJECT) -> *mut OPLOCK_KEY_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetOplockKeyContextEx(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut OPLOCK_KEY_CONTEXT); - IoGetOplockKeyContextEx(core::mem::transmute(fileobject)) + IoGetOplockKeyContextEx(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetRequestorProcess(irp: *const super::super::Foundation::IRP) -> super::super::Foundation::PEPROCESS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetRequestorProcess(irp : *const super::super::Foundation:: IRP) -> super::super::Foundation:: PEPROCESS); - IoGetRequestorProcess(core::mem::transmute(irp)) + IoGetRequestorProcess(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetRequestorProcessId(irp: *const super::super::Foundation::IRP) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetRequestorProcessId(irp : *const super::super::Foundation:: IRP) -> u32); - IoGetRequestorProcessId(core::mem::transmute(irp)) + IoGetRequestorProcessId(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetRequestorSessionId(irp: *const super::super::Foundation::IRP, psessionid: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetRequestorSessionId(irp : *const super::super::Foundation:: IRP, psessionid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetRequestorSessionId(core::mem::transmute(irp), core::mem::transmute(psessionid)) + IoGetRequestorSessionId(irp, core::mem::transmute(psessionid)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoIrpHasFsTrackOffsetExtensionType(irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIrpHasFsTrackOffsetExtensionType(irp : *const super::super::Foundation:: IRP) -> bool); - IoIrpHasFsTrackOffsetExtensionType(core::mem::transmute(irp)) + IoIrpHasFsTrackOffsetExtensionType(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoIsOperationSynchronous(irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsOperationSynchronous(irp : *const super::super::Foundation:: IRP) -> bool); - IoIsOperationSynchronous(core::mem::transmute(irp)) + IoIsOperationSynchronous(irp) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoIsSystemThread(thread: super::super::Foundation::PETHREAD) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool); - IoIsSystemThread(core::mem::transmute(thread)) + IoIsSystemThread(thread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoIsValidNameGraftingBuffer(irp: *const super::super::Foundation::IRP, reparsebuffer: *const REPARSE_DATA_BUFFER) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidNameGraftingBuffer(irp : *const super::super::Foundation:: IRP, reparsebuffer : *const REPARSE_DATA_BUFFER) -> bool); - IoIsValidNameGraftingBuffer(core::mem::transmute(irp), core::mem::transmute(reparsebuffer)) + IoIsValidNameGraftingBuffer(irp, reparsebuffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoPageRead(fileobject: *const super::super::Foundation::FILE_OBJECT, memorydescriptorlist: *const super::super::Foundation::MDL, startingoffset: *const i64, event: *const super::super::Foundation::KEVENT, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoPageRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, memorydescriptorlist : *const super::super::Foundation:: MDL, startingoffset : *const i64, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoPageRead(core::mem::transmute(fileobject), core::mem::transmute(memorydescriptorlist), core::mem::transmute(startingoffset), core::mem::transmute(event), core::mem::transmute(iostatusblock)) + IoPageRead(fileobject, memorydescriptorlist, startingoffset, event, core::mem::transmute(iostatusblock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoQueryFileDosDeviceName(fileobject: *const super::super::Foundation::FILE_OBJECT, objectnameinformation: *mut *mut super::super::Foundation::OBJECT_NAME_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryFileDosDeviceName(fileobject : *const super::super::Foundation:: FILE_OBJECT, objectnameinformation : *mut *mut super::super::Foundation:: OBJECT_NAME_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryFileDosDeviceName(core::mem::transmute(fileobject), core::mem::transmute(objectnameinformation)) + IoQueryFileDosDeviceName(fileobject, core::mem::transmute(objectnameinformation)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoQueryFileInformation(fileobject: *const super::super::Foundation::FILE_OBJECT, fileinformationclass: FILE_INFORMATION_CLASS, length: u32, fileinformation: *mut core::ffi::c_void, returnedlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryFileInformation(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformationclass : FILE_INFORMATION_CLASS, length : u32, fileinformation : *mut core::ffi::c_void, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryFileInformation(core::mem::transmute(fileobject), core::mem::transmute(fileinformationclass), core::mem::transmute(length), core::mem::transmute(fileinformation), core::mem::transmute(returnedlength)) + IoQueryFileInformation(fileobject, fileinformationclass, length, core::mem::transmute(fileinformation), core::mem::transmute(returnedlength)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoQueryVolumeInformation(fileobject: *const super::super::Foundation::FILE_OBJECT, fsinformationclass: FS_INFORMATION_CLASS, length: u32, fsinformation: *mut core::ffi::c_void, returnedlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryVolumeInformation(fileobject : *const super::super::Foundation:: FILE_OBJECT, fsinformationclass : FS_INFORMATION_CLASS, length : u32, fsinformation : *mut core::ffi::c_void, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryVolumeInformation(core::mem::transmute(fileobject), core::mem::transmute(fsinformationclass), core::mem::transmute(length), core::mem::transmute(fsinformation), core::mem::transmute(returnedlength)) + IoQueryVolumeInformation(fileobject, fsinformationclass, length, core::mem::transmute(fsinformation), core::mem::transmute(returnedlength)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoQueueThreadIrp(irp: *const super::super::Foundation::IRP) { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueueThreadIrp(irp : *const super::super::Foundation:: IRP)); - IoQueueThreadIrp(core::mem::transmute(irp)) + IoQueueThreadIrp(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterFileSystem(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFileSystem(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoRegisterFileSystem(core::mem::transmute(deviceobject)) + IoRegisterFileSystem(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterFsRegistrationChange(driverobject: *const super::super::Foundation::DRIVER_OBJECT, drivernotificationroutine: super::super::Foundation::DRIVER_FS_NOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChange(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterFsRegistrationChange(core::mem::transmute(driverobject), core::mem::transmute(drivernotificationroutine)) + IoRegisterFsRegistrationChange(driverobject, drivernotificationroutine) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterFsRegistrationChangeMountAware(driverobject: *const super::super::Foundation::DRIVER_OBJECT, drivernotificationroutine: super::super::Foundation::DRIVER_FS_NOTIFICATION, synchronizewithmounts: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterFsRegistrationChangeMountAware(core::mem::transmute(driverobject), core::mem::transmute(drivernotificationroutine), core::mem::transmute(synchronizewithmounts)) + IoRegisterFsRegistrationChangeMountAware(driverobject, drivernotificationroutine, synchronizewithmounts) } #[inline] pub unsafe fn IoReleaseVpbSpinLock(irql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReleaseVpbSpinLock(irql : u8)); - IoReleaseVpbSpinLock(core::mem::transmute(irql)) + IoReleaseVpbSpinLock(irql) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1723,13 +1689,13 @@ where P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoReplaceFileObjectName(fileobject : *const super::super::Foundation:: FILE_OBJECT, newfilename : windows_core::PCWSTR, filenamelength : u16) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReplaceFileObjectName(core::mem::transmute(fileobject), newfilename.param().abi(), core::mem::transmute(filenamelength)) + IoReplaceFileObjectName(fileobject, newfilename.param().abi(), filenamelength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRequestDeviceRemovalForReset(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRequestDeviceRemovalForReset(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRequestDeviceRemovalForReset(core::mem::transmute(physicaldeviceobject), core::mem::transmute(flags)) + IoRequestDeviceRemovalForReset(physicaldeviceobject, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1741,55 +1707,55 @@ pub unsafe fn IoRetrievePriorityInfo(irp: Option<*const super::super::Foundation #[inline] pub unsafe fn IoSetDeviceToVerify(thread: super::super::Foundation::PETHREAD, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceToVerify(thread : super::super::Foundation:: PETHREAD, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoSetDeviceToVerify(core::mem::transmute(thread), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) + IoSetDeviceToVerify(thread, core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetFsTrackOffsetState(irp: *mut super::super::Foundation::IRP, fstrackoffsetblob: *const super::super::super::Win32::System::Ioctl::IO_IRP_EXT_TRACK_OFFSET_HEADER, trackedoffset: i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFsTrackOffsetState(irp : *mut super::super::Foundation:: IRP, fstrackoffsetblob : *const super::super::super::Win32::System::Ioctl:: IO_IRP_EXT_TRACK_OFFSET_HEADER, trackedoffset : i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetFsTrackOffsetState(core::mem::transmute(irp), core::mem::transmute(fstrackoffsetblob), core::mem::transmute(trackedoffset)) + IoSetFsTrackOffsetState(core::mem::transmute(irp), fstrackoffsetblob, trackedoffset) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetInformation(fileobject: *const super::super::Foundation::FILE_OBJECT, fileinformationclass: FILE_INFORMATION_CLASS, length: u32, fileinformation: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetInformation(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformationclass : FILE_INFORMATION_CLASS, length : u32, fileinformation : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetInformation(core::mem::transmute(fileobject), core::mem::transmute(fileinformationclass), core::mem::transmute(length), core::mem::transmute(fileinformation)) + IoSetInformation(fileobject, fileinformationclass, length, fileinformation) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSynchronousPageWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, memorydescriptorlist: *const super::super::Foundation::MDL, startingoffset: *const i64, event: *const super::super::Foundation::KEVENT, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSynchronousPageWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, memorydescriptorlist : *const super::super::Foundation:: MDL, startingoffset : *const i64, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSynchronousPageWrite(core::mem::transmute(fileobject), core::mem::transmute(memorydescriptorlist), core::mem::transmute(startingoffset), core::mem::transmute(event), core::mem::transmute(iostatusblock)) + IoSynchronousPageWrite(fileobject, memorydescriptorlist, startingoffset, event, core::mem::transmute(iostatusblock)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoThreadToProcess(thread: super::super::Foundation::PETHREAD) -> super::super::Foundation::PEPROCESS { windows_targets::link!("ntoskrnl.exe" "system" fn IoThreadToProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS); - IoThreadToProcess(core::mem::transmute(thread)) + IoThreadToProcess(thread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoUnregisterFileSystem(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterFileSystem(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoUnregisterFileSystem(core::mem::transmute(deviceobject)) + IoUnregisterFileSystem(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoUnregisterFsRegistrationChange(driverobject: *const super::super::Foundation::DRIVER_OBJECT, drivernotificationroutine: super::super::Foundation::DRIVER_FS_NOTIFICATION) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterFsRegistrationChange(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION)); - IoUnregisterFsRegistrationChange(core::mem::transmute(driverobject), core::mem::transmute(drivernotificationroutine)) + IoUnregisterFsRegistrationChange(driverobject, drivernotificationroutine) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoVerifyVolume(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, allowrawmount: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVerifyVolume(core::mem::transmute(deviceobject), core::mem::transmute(allowrawmount)) + IoVerifyVolume(deviceobject, allowrawmount) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeAcquireQueuedSpinLock(number: super::super::Foundation::KSPIN_LOCK_QUEUE_NUMBER) -> u8 { windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER) -> u8); - KeAcquireQueuedSpinLock(core::mem::transmute(number)) + KeAcquireQueuedSpinLock(number) } #[inline] pub unsafe fn KeAcquireSpinLockRaiseToSynch(spinlock: *mut usize) -> u8 { @@ -1800,7 +1766,7 @@ pub unsafe fn KeAcquireSpinLockRaiseToSynch(spinlock: *mut usize) -> u8 { #[inline] pub unsafe fn KeAttachProcess(process: super::super::Foundation::PRKPROCESS) { windows_targets::link!("ntoskrnl.exe" "system" fn KeAttachProcess(process : super::super::Foundation:: PRKPROCESS)); - KeAttachProcess(core::mem::transmute(process)) + KeAttachProcess(process) } #[inline] pub unsafe fn KeDetachProcess() { @@ -1811,13 +1777,13 @@ pub unsafe fn KeDetachProcess() { #[inline] pub unsafe fn KeInitializeMutant(mutant: *mut super::super::Foundation::KMUTANT, initialowner: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : bool)); - KeInitializeMutant(core::mem::transmute(mutant), core::mem::transmute(initialowner)) + KeInitializeMutant(core::mem::transmute(mutant), initialowner) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeInitializeQueue(queue: *mut super::super::Foundation::KQUEUE, count: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeQueue(queue : *mut super::super::Foundation:: KQUEUE, count : u32)); - KeInitializeQueue(core::mem::transmute(queue), core::mem::transmute(count)) + KeInitializeQueue(core::mem::transmute(queue), count) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1835,37 +1801,37 @@ pub unsafe fn KeInsertQueue(queue: *mut super::super::Foundation::KQUEUE, entry: #[inline] pub unsafe fn KeReadStateMutant(mutant: *const super::super::Foundation::KMUTANT) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateMutant(mutant : *const super::super::Foundation:: KMUTANT) -> i32); - KeReadStateMutant(core::mem::transmute(mutant)) + KeReadStateMutant(mutant) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReadStateQueue(queue: *const super::super::Foundation::KQUEUE) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateQueue(queue : *const super::super::Foundation:: KQUEUE) -> i32); - KeReadStateQueue(core::mem::transmute(queue)) + KeReadStateQueue(queue) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseMutant(mutant: *mut super::super::Foundation::KMUTANT, increment: i32, abandoned: bool, wait: bool) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : bool, wait : bool) -> i32); - KeReleaseMutant(core::mem::transmute(mutant), core::mem::transmute(increment), core::mem::transmute(abandoned), core::mem::transmute(wait)) + KeReleaseMutant(core::mem::transmute(mutant), increment, abandoned, wait) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeReleaseQueuedSpinLock(number: super::super::Foundation::KSPIN_LOCK_QUEUE_NUMBER, oldirql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER, oldirql : u8)); - KeReleaseQueuedSpinLock(core::mem::transmute(number), core::mem::transmute(oldirql)) + KeReleaseQueuedSpinLock(number, oldirql) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeRemoveQueue(queue: *mut super::super::Foundation::KQUEUE, waitmode: i8, timeout: Option<*const i64>) -> *mut super::super::super::Win32::System::Kernel::LIST_ENTRY { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueue(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, timeout : *const i64) -> *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY); - KeRemoveQueue(core::mem::transmute(queue), core::mem::transmute(waitmode), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + KeRemoveQueue(core::mem::transmute(queue), waitmode, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeRemoveQueueEx(queue: *mut super::super::Foundation::KQUEUE, waitmode: i8, alertable: bool, timeout: Option<*const i64>, entryarray: &mut [*mut super::super::super::Win32::System::Kernel::LIST_ENTRY]) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : bool, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32); - KeRemoveQueueEx(core::mem::transmute(queue), core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(entryarray.as_ptr()), entryarray.len().try_into().unwrap()) + KeRemoveQueueEx(core::mem::transmute(queue), waitmode, alertable, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(entryarray.as_ptr()), entryarray.len().try_into().unwrap()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1877,70 +1843,70 @@ pub unsafe fn KeRundownQueue(queue: *mut super::super::Foundation::KQUEUE) -> *m #[inline] pub unsafe fn KeSetIdealProcessorThread(thread: super::super::Foundation::PKTHREAD, processor: u8) -> u8 { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetIdealProcessorThread(thread : super::super::Foundation:: PKTHREAD, processor : u8) -> u8); - KeSetIdealProcessorThread(core::mem::transmute(thread), core::mem::transmute(processor)) + KeSetIdealProcessorThread(thread, processor) } #[inline] pub unsafe fn KeSetKernelStackSwapEnable(enable: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : bool) -> bool); - KeSetKernelStackSwapEnable(core::mem::transmute(enable)) + KeSetKernelStackSwapEnable(enable) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeStackAttachProcess(process: super::super::Foundation::PRKPROCESS, apcstate: *mut KAPC_STATE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeStackAttachProcess(process : super::super::Foundation:: PRKPROCESS, apcstate : *mut KAPC_STATE)); - KeStackAttachProcess(core::mem::transmute(process), core::mem::transmute(apcstate)) + KeStackAttachProcess(process, core::mem::transmute(apcstate)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeTryToAcquireQueuedSpinLock(number: super::super::Foundation::KSPIN_LOCK_QUEUE_NUMBER, oldirql: *mut u8) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER, oldirql : *mut u8) -> u32); - KeTryToAcquireQueuedSpinLock(core::mem::transmute(number), core::mem::transmute(oldirql)) + KeTryToAcquireQueuedSpinLock(number, core::mem::transmute(oldirql)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn KeUnstackDetachProcess(apcstate: *const KAPC_STATE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeUnstackDetachProcess(apcstate : *const KAPC_STATE)); - KeUnstackDetachProcess(core::mem::transmute(apcstate)) + KeUnstackDetachProcess(apcstate) } #[inline] pub unsafe fn MakeSignature(phcontext: *const SecHandle, fqop: u32, pmessage: *const SecBufferDesc, messageseqno: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn MakeSignature(phcontext : *const SecHandle, fqop : u32, pmessage : *const SecBufferDesc, messageseqno : u32) -> windows_core::HRESULT); - MakeSignature(core::mem::transmute(phcontext), core::mem::transmute(fqop), core::mem::transmute(pmessage), core::mem::transmute(messageseqno)).ok() + MakeSignature(phcontext, fqop, pmessage, messageseqno).ok() } #[inline] pub unsafe fn MapSecurityError(secstatus: windows_core::HRESULT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn MapSecurityError(secstatus : windows_core::HRESULT) -> super::super::super::Win32::Foundation:: NTSTATUS); - MapSecurityError(core::mem::transmute(secstatus)) + MapSecurityError(secstatus) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmCanFileBeTruncated(sectionpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, newfilesize: Option<*const i64>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmCanFileBeTruncated(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, newfilesize : *const i64) -> bool); - MmCanFileBeTruncated(core::mem::transmute(sectionpointer), core::mem::transmute(newfilesize.unwrap_or(core::mem::zeroed()))) + MmCanFileBeTruncated(sectionpointer, core::mem::transmute(newfilesize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmDoesFileHaveUserWritableReferences(sectionpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmDoesFileHaveUserWritableReferences(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> u32); - MmDoesFileHaveUserWritableReferences(core::mem::transmute(sectionpointer)) + MmDoesFileHaveUserWritableReferences(sectionpointer) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmFlushImageSection(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, flushtype: MMFLUSH_TYPE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmFlushImageSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flushtype : MMFLUSH_TYPE) -> bool); - MmFlushImageSection(core::mem::transmute(sectionobjectpointer), core::mem::transmute(flushtype)) + MmFlushImageSection(sectionobjectpointer, flushtype) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmForceSectionClosed(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, delayclose: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : bool) -> bool); - MmForceSectionClosed(core::mem::transmute(sectionobjectpointer), core::mem::transmute(delayclose)) + MmForceSectionClosed(sectionobjectpointer, delayclose) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmForceSectionClosedEx(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, forcecloseflags: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosedEx(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, forcecloseflags : u32) -> bool); - MmForceSectionClosedEx(core::mem::transmute(sectionobjectpointer), core::mem::transmute(forcecloseflags)) + MmForceSectionClosedEx(sectionobjectpointer, forcecloseflags) } #[inline] pub unsafe fn MmGetMaximumFileSectionSize() -> u64 { @@ -1951,7 +1917,7 @@ pub unsafe fn MmGetMaximumFileSectionSize() -> u64 { #[inline] pub unsafe fn MmIsFileSectionActive(fssectionpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, flags: u32, sectionisactive: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsFileSectionActive(fssectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flags : u32, sectionisactive : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmIsFileSectionActive(core::mem::transmute(fssectionpointer), core::mem::transmute(flags), core::mem::transmute(sectionisactive)) + MmIsFileSectionActive(fssectionpointer, flags, core::mem::transmute(sectionisactive)) } #[inline] pub unsafe fn MmIsRecursiveIoFault() -> bool { @@ -1962,7 +1928,7 @@ pub unsafe fn MmIsRecursiveIoFault() -> bool { #[inline] pub unsafe fn MmMdlPagesAreZero(mdl: *const super::super::Foundation::MDL) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmMdlPagesAreZero(mdl : *const super::super::Foundation:: MDL) -> u32); - MmMdlPagesAreZero(core::mem::transmute(mdl)) + MmMdlPagesAreZero(mdl) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1973,13 +1939,13 @@ pub unsafe fn MmPrefetchPages(readlists: &[*const READ_LIST]) -> super::super::s #[inline] pub unsafe fn MmSetAddressRangeModified(address: *const core::ffi::c_void, length: usize) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmSetAddressRangeModified(address : *const core::ffi::c_void, length : usize) -> bool); - MmSetAddressRangeModified(core::mem::transmute(address), core::mem::transmute(length)) + MmSetAddressRangeModified(address, length) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAccessCheckAndAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckAndAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypename), core::mem::transmute(objectname), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) + NtAccessCheckAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename, objectname, securitydescriptor, desiredaccess, genericmapping, objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2002,19 +1968,19 @@ pub unsafe fn NtAccessCheckByTypeAndAuditAlarm( ) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtAccessCheckByTypeAndAuditAlarm( - core::mem::transmute(subsystemname), + subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor), + objecttypename, + objectname, + securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), + desiredaccess, + audittype, + flags, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(genericmapping), - core::mem::transmute(objectcreation), + genericmapping, + objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -2041,24 +2007,7 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarm( generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckByTypeResultListAndAuditAlarm( - core::mem::transmute(subsystemname), - core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - core::mem::transmute(objectcreation), - core::mem::transmute(grantedaccess), - core::mem::transmute(accessstatus), - core::mem::transmute(generateonclose), - ) + NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename, objectname, securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2082,83 +2031,65 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle( generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckByTypeResultListAndAuditAlarmByHandle( - core::mem::transmute(subsystemname), - core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(clienttoken), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - core::mem::transmute(objectcreation), - core::mem::transmute(grantedaccess), - core::mem::transmute(accessstatus), - core::mem::transmute(generateonclose), - ) + NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), clienttoken, objecttypename, objectname, securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAdjustGroupsToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, resettodefault: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_GROUPS>, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAdjustGroupsToken(core::mem::transmute(tokenhandle), core::mem::transmute(resettodefault), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) + NtAdjustGroupsToken(tokenhandle, resettodefault, core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAdjustPrivilegesToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, disableallprivileges: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAdjustPrivilegesToken(core::mem::transmute(tokenhandle), core::mem::transmute(disableallprivileges), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + NtAdjustPrivilegesToken(tokenhandle, disableallprivileges, core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtAllocateVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, regionsize: *mut usize, allocationtype: u32, protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAllocateVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, regionsize : *mut usize, allocationtype : u32, protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAllocateVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(zerobits), core::mem::transmute(regionsize), core::mem::transmute(allocationtype), core::mem::transmute(protect)) + NtAllocateVirtualMemory(processhandle, core::mem::transmute(baseaddress), zerobits, core::mem::transmute(regionsize), allocationtype, protect) } #[cfg(feature = "Win32_System_Memory")] #[inline] pub unsafe fn NtAllocateVirtualMemoryEx(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, allocationtype: u32, pageprotection: u32, extendedparameters: Option<&mut [super::super::super::Win32::System::Memory::MEM_EXTENDED_PARAMETER]>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtAllocateVirtualMemoryEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, allocationtype : u32, pageprotection : u32, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAllocateVirtualMemoryEx(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(allocationtype), core::mem::transmute(pageprotection), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + NtAllocateVirtualMemoryEx(processhandle, core::mem::transmute(baseaddress), core::mem::transmute(regionsize), allocationtype, pageprotection, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtCancelIoFileEx(filehandle: super::super::super::Win32::Foundation::HANDLE, iorequesttocancel: Option<*const super::super::super::Win32::System::IO::IO_STATUS_BLOCK>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCancelIoFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, iorequesttocancel : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCancelIoFileEx(core::mem::transmute(filehandle), core::mem::transmute(iorequesttocancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) + NtCancelIoFileEx(filehandle, core::mem::transmute(iorequesttocancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) } #[inline] pub unsafe fn NtCloseObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCloseObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) + NtCloseObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateDirectoryObject(directoryhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtCreateDirectoryObject(core::mem::transmute(directoryhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NtCreateEvent(eventhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, eventtype: super::super::super::Win32::System::Kernel::EVENT_TYPE, initialstate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtype), core::mem::transmute(initialstate)) + NtCreateEvent(core::mem::transmute(eventhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), eventtype, initialstate) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtCreateFile(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: super::super::super::Win32::Storage::FileSystem::FILE_ACCESS_RIGHTS, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: super::super::super::Win32::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, shareaccess: super::super::super::Win32::Storage::FileSystem::FILE_SHARE_MODE, createdisposition: NTCREATEFILE_CREATE_DISPOSITION, createoptions: NTCREATEFILE_CREATE_OPTIONS, eabuffer: Option<*const core::ffi::c_void>, ealength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : super::super::super::Win32::Storage::FileSystem:: FILE_ACCESS_RIGHTS, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : super::super::super::Win32::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, shareaccess : super::super::super::Win32::Storage::FileSystem:: FILE_SHARE_MODE, createdisposition : NTCREATEFILE_CREATE_DISPOSITION, createoptions : NTCREATEFILE_CREATE_OPTIONS, eabuffer : *const core::ffi::c_void, ealength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateFile(core::mem::transmute(filehandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(fileattributes), core::mem::transmute(shareaccess), core::mem::transmute(createdisposition), core::mem::transmute(createoptions), core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealength)) + NtCreateFile(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateSection(sectionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, maximumsize: Option<*const i64>, sectionpageprotection: u32, allocationattributes: u32, filehandle: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateSection(core::mem::transmute(sectionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectionpageprotection), core::mem::transmute(allocationattributes), core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed()))) + NtCreateSection(core::mem::transmute(sectionhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), sectionpageprotection, allocationattributes, core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Memory"))] #[inline] @@ -2166,11 +2097,11 @@ pub unsafe fn NtCreateSectionEx(sectionhandle: *mut super::super::super::Win32:: windows_targets::link!("ntdll.dll" "system" fn NtCreateSectionEx(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); NtCreateSectionEx( core::mem::transmute(sectionhandle), - core::mem::transmute(desiredaccess), + desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sectionpageprotection), - core::mem::transmute(allocationattributes), + sectionpageprotection, + allocationattributes, core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -2180,357 +2111,321 @@ pub unsafe fn NtCreateSectionEx(sectionhandle: *mut super::super::super::Win32:: #[inline] pub unsafe fn NtDeleteFile(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDeleteFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeleteFile(core::mem::transmute(objectattributes)) + NtDeleteFile(objectattributes) } #[inline] pub unsafe fn NtDeleteObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeleteObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) + NtDeleteObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose) } #[inline] pub unsafe fn NtDuplicateObject(sourceprocesshandle: super::super::super::Win32::Foundation::HANDLE, sourcehandle: super::super::super::Win32::Foundation::HANDLE, targetprocesshandle: Option, targethandle: Option<*mut super::super::super::Win32::Foundation::HANDLE>, desiredaccess: u32, handleattributes: u32, options: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDuplicateObject(sourceprocesshandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, targetprocesshandle : super::super::super::Win32::Foundation:: HANDLE, targethandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDuplicateObject(core::mem::transmute(sourceprocesshandle), core::mem::transmute(sourcehandle), core::mem::transmute(targetprocesshandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(targethandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(handleattributes), core::mem::transmute(options)) + NtDuplicateObject(sourceprocesshandle, sourcehandle, core::mem::transmute(targetprocesshandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(targethandle.unwrap_or(core::mem::zeroed())), desiredaccess, handleattributes, options) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtDuplicateToken(existingtokenhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, effectiveonly: bool, tokentype: super::super::super::Win32::Security::TOKEN_TYPE, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(effectiveonly), core::mem::transmute(tokentype), core::mem::transmute(newtokenhandle)) + NtDuplicateToken(existingtokenhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), effectiveonly, tokentype, core::mem::transmute(newtokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtFilterToken(existingtokenhandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, sidstodisable: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, privilegestodelete: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, restrictedsids: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFilterToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFilterToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(flags), core::mem::transmute(sidstodisable.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegestodelete.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(newtokenhandle)) + NtFilterToken(existingtokenhandle, flags, core::mem::transmute(sidstodisable.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegestodelete.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(newtokenhandle)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtFlushBuffersFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFlushBuffersFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFlushBuffersFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock)) + NtFlushBuffersFile(filehandle, core::mem::transmute(iostatusblock)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtFlushBuffersFileEx(filehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, parameters: *const core::ffi::c_void, parameterssize: u32, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFlushBuffersFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, parameters : *const core::ffi::c_void, parameterssize : u32, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFlushBuffersFileEx(core::mem::transmute(filehandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(parameterssize), core::mem::transmute(iostatusblock)) + NtFlushBuffersFileEx(filehandle, flags, parameters, parameterssize, core::mem::transmute(iostatusblock)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtFlushVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFlushVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFlushVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(iostatus)) + NtFlushVirtualMemory(processhandle, core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(iostatus)) } #[inline] pub unsafe fn NtFreeVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, freetype: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFreeVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, freetype : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFreeVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(freetype)) + NtFreeVirtualMemory(processhandle, core::mem::transmute(baseaddress), core::mem::transmute(regionsize), freetype) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtFsControlFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fscontrolcode: u32, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFsControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFsControlFile( - core::mem::transmute(filehandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(iostatusblock), - core::mem::transmute(fscontrolcode), - core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(inputbufferlength), - core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(outputbufferlength), - ) + NtFsControlFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } #[inline] pub unsafe fn NtImpersonateAnonymousToken(threadhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtImpersonateAnonymousToken(core::mem::transmute(threadhandle)) + NtImpersonateAnonymousToken(threadhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtLockFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, byteoffset: *const i64, length: *const i64, key: u32, failimmediately: bool, exclusivelock: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtLockFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(failimmediately), core::mem::transmute(exclusivelock)) + NtLockFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), byteoffset, length, key, failimmediately, exclusivelock) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtNotifyChangeKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtNotifyChangeKey(core::mem::transmute(keyhandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), core::mem::transmute(watchtree), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(asynchronous)) + NtNotifyChangeKey(keyhandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), completionfilter, watchtree, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, asynchronous) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenDirectoryObject(directoryhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenDirectoryObject(core::mem::transmute(directoryhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtOpenFile(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, shareaccess: u32, openoptions: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, shareaccess : u32, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenFile(core::mem::transmute(filehandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(shareaccess), core::mem::transmute(openoptions)) + NtOpenFile(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), shareaccess, openoptions) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtOpenObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: Option, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenObjectAuditAlarm( - core::mem::transmute(subsystemname), - core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), - core::mem::transmute(clienttoken), - core::mem::transmute(desiredaccess), - core::mem::transmute(grantedaccess), - core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objectcreation), - core::mem::transmute(accessgranted), - core::mem::transmute(generateonclose), - ) + NtOpenObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename, objectname, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), clienttoken, desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), objectcreation, accessgranted, core::mem::transmute(generateonclose)) } #[inline] pub unsafe fn NtOpenProcessToken(processhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenProcessToken(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenProcessToken(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tokenhandle)) + NtOpenProcessToken(processhandle, desiredaccess, core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn NtOpenProcessTokenEx(processhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenProcessTokenEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenProcessTokenEx(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) + NtOpenProcessTokenEx(processhandle, desiredaccess, handleattributes, core::mem::transmute(tokenhandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenSymbolicLinkObject(linkhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenSymbolicLinkObject(linkhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenSymbolicLinkObject(core::mem::transmute(linkhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenSymbolicLinkObject(core::mem::transmute(linkhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn NtOpenThreadToken(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(tokenhandle)) + NtOpenThreadToken(threadhandle, desiredaccess, openasself, core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn NtOpenThreadTokenEx(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenThreadTokenEx(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) + NtOpenThreadTokenEx(threadhandle, desiredaccess, openasself, handleattributes, core::mem::transmute(tokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtPrivilegeCheck(clienttoken: super::super::super::Win32::Foundation::HANDLE, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegeCheck(core::mem::transmute(clienttoken), core::mem::transmute(requiredprivileges), core::mem::transmute(result)) + NtPrivilegeCheck(clienttoken, core::mem::transmute(requiredprivileges), core::mem::transmute(result)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtPrivilegeObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegeObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) + NtPrivilegeObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), clienttoken, desiredaccess, privileges, accessgranted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtPrivilegedServiceAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, clienttoken: super::super::super::Win32::Foundation::HANDLE, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegedServiceAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(servicename), core::mem::transmute(clienttoken), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) + NtPrivilegedServiceAuditAlarm(subsystemname, servicename, clienttoken, privileges, accessgranted) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryDirectoryFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, returnsingleentry: bool, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryDirectoryFile( - core::mem::transmute(filehandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(iostatusblock), - core::mem::transmute(fileinformation), - core::mem::transmute(length), - core::mem::transmute(fileinformationclass), - core::mem::transmute(returnsingleentry), - core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), - core::mem::transmute(restartscan), - ) + NtQueryDirectoryFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass, returnsingleentry, core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), restartscan) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryDirectoryFileEx(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, queryflags: u32, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryDirectoryFileEx(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(queryflags), core::mem::transmute(filename.unwrap_or(core::mem::zeroed()))) + NtQueryDirectoryFileEx(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtQueryDirectoryObject(directoryhandle: super::super::super::Win32::Foundation::HANDLE, buffer: Option<*mut core::ffi::c_void>, length: u32, returnsingleentry: bool, restartscan: bool, context: *mut u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(restartscan), core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + NtQueryDirectoryObject(directoryhandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), length, returnsingleentry, restartscan, core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryEaFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) + NtQueryEaFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, returnsingleentry, core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), ealistlength, core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtQueryFullAttributesFile(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, fileinformation: *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryFullAttributesFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, fileinformation : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryFullAttributesFile(core::mem::transmute(objectattributes), core::mem::transmute(fileinformation)) + NtQueryFullAttributesFile(objectattributes, core::mem::transmute(fileinformation)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtQueryInformationByName(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationByName(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationByName(core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + NtQueryInformationByName(objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + NtQueryInformationFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtQueryInformationToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: Option<*mut core::ffi::c_void>, tokeninformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationToken(core::mem::transmute(tokenhandle), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(tokeninformationlength), core::mem::transmute(returnlength)) + NtQueryInformationToken(tokenhandle, tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(core::mem::zeroed())), tokeninformationlength, core::mem::transmute(returnlength)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtQueryQuotaInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: Option, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) + NtQueryQuotaInformationFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, returnsingleentry, core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), sidlistlength, core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), restartscan) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtQuerySecurityObject(handle: super::super::super::Win32::Foundation::HANDLE, securityinformation: u32, securitydescriptor: Option, length: u32, lengthneeded: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQuerySecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQuerySecurityObject(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(lengthneeded)) + NtQuerySecurityObject(handle, securityinformation, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(lengthneeded)) } #[inline] pub unsafe fn NtQuerySymbolicLinkObject(linkhandle: super::super::super::Win32::Foundation::HANDLE, linktarget: *mut super::super::super::Win32::Foundation::UNICODE_STRING, returnedlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQuerySymbolicLinkObject(linkhandle : super::super::super::Win32::Foundation:: HANDLE, linktarget : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQuerySymbolicLinkObject(core::mem::transmute(linkhandle), core::mem::transmute(linktarget), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))) + NtQuerySymbolicLinkObject(linkhandle, core::mem::transmute(linktarget), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtQueryVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: Option<*const core::ffi::c_void>, memoryinformationclass: MEMORY_INFORMATION_CLASS, memoryinformation: *mut core::ffi::c_void, memoryinformationlength: usize, returnlength: Option<*mut usize>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, memoryinformationclass : MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationlength : usize, returnlength : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(memoryinformationclass), core::mem::transmute(memoryinformation), core::mem::transmute(memoryinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + NtQueryVirtualMemory(processhandle, core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), memoryinformationclass, core::mem::transmute(memoryinformation), memoryinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryVolumeInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fsinformation: *mut core::ffi::c_void, length: u32, fsinformationclass: FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryVolumeInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass)) + NtQueryVolumeInformationFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(fsinformation), length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtReadFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, byteoffset: Option<*const i64>, key: Option<*const u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtReadFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtReadFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) + NtReadFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtSetEaFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *const core::ffi::c_void, length: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length)) + NtSetEaFile(filehandle, core::mem::transmute(iostatusblock), buffer, length) } #[inline] pub unsafe fn NtSetEvent(eventhandle: super::super::super::Win32::Foundation::HANDLE, previousstate: Option<*mut i32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetEvent(eventhandle : super::super::super::Win32::Foundation:: HANDLE, previousstate : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetEvent(core::mem::transmute(eventhandle), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) + NtSetEvent(eventhandle, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtSetInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *const core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *const core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + NtSetInformationFile(filehandle, core::mem::transmute(iostatusblock), fileinformation, length, fileinformationclass) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtSetInformationToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationToken(core::mem::transmute(tokenhandle), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation), core::mem::transmute(tokeninformationlength)) + NtSetInformationToken(tokenhandle, tokeninformationclass, tokeninformation, tokeninformationlength) } #[inline] pub unsafe fn NtSetInformationVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, vminformationclass: VIRTUAL_MEMORY_INFORMATION_CLASS, virtualaddresses: &[MEMORY_RANGE_ENTRY], vminformation: *const core::ffi::c_void, vminformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, vminformationclass : VIRTUAL_MEMORY_INFORMATION_CLASS, numberofentries : usize, virtualaddresses : *const MEMORY_RANGE_ENTRY, vminformation : *const core::ffi::c_void, vminformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(vminformationclass), virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), core::mem::transmute(vminformation), core::mem::transmute(vminformationlength)) + NtSetInformationVirtualMemory(processhandle, vminformationclass, virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), vminformation, vminformationlength) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtSetQuotaInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *const core::ffi::c_void, length: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length)) + NtSetQuotaInformationFile(filehandle, core::mem::transmute(iostatusblock), buffer, length) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtSetSecurityObject(handle: super::super::super::Win32::Foundation::HANDLE, securityinformation: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetSecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetSecurityObject(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor)) + NtSetSecurityObject(handle, securityinformation, securitydescriptor) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtSetVolumeInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fsinformation: *const core::ffi::c_void, length: u32, fsinformationclass: FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *const core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetVolumeInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass)) + NtSetVolumeInformationFile(filehandle, core::mem::transmute(iostatusblock), fsinformation, length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtUnlockFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, byteoffset: *const i64, length: *const i64, key: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtUnlockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtUnlockFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key)) + NtUnlockFile(filehandle, core::mem::transmute(iostatusblock), byteoffset, length, key) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtWriteFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *const core::ffi::c_void, length: u32, byteoffset: Option<*const i64>, key: Option<*const u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtWriteFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtWriteFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) + NtWriteFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), buffer, length, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn ObInsertObject(object: *const core::ffi::c_void, passedaccessstate: Option<*mut super::super::Foundation::ACCESS_STATE>, desiredaccess: Option, objectpointerbias: u32, newobject: Option<*mut *mut core::ffi::c_void>, handle: Option<*mut super::super::super::Win32::Foundation::HANDLE>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObInsertObject(object : *const core::ffi::c_void, passedaccessstate : *mut super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objectpointerbias : u32, newobject : *mut *mut core::ffi::c_void, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObInsertObject(core::mem::transmute(object), core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectpointerbias), core::mem::transmute(newobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed()))) + ObInsertObject(object, core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess.unwrap_or(core::mem::zeroed())), objectpointerbias, core::mem::transmute(newobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ObIsKernelHandle(handle: super::super::super::Win32::Foundation::HANDLE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> bool); - ObIsKernelHandle(core::mem::transmute(handle)) + ObIsKernelHandle(handle) } #[inline] pub unsafe fn ObMakeTemporaryObject(object: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn ObMakeTemporaryObject(object : *const core::ffi::c_void)); - ObMakeTemporaryObject(core::mem::transmute(object)) + ObMakeTemporaryObject(object) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn ObOpenObjectByPointer(object: *const core::ffi::c_void, handleattributes: u32, passedaccessstate: Option<*const super::super::Foundation::ACCESS_STATE>, desiredaccess: u32, objecttype: Option, accessmode: i8, handle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointer(object : *const core::ffi::c_void, handleattributes : u32, passedaccessstate : *const super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObOpenObjectByPointer(core::mem::transmute(object), core::mem::transmute(handleattributes), core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode), core::mem::transmute(handle)) + ObOpenObjectByPointer(object, handleattributes, core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), desiredaccess, core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), accessmode, core::mem::transmute(handle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn ObOpenObjectByPointerWithTag(object: *const core::ffi::c_void, handleattributes: u32, passedaccessstate: Option<*const super::super::Foundation::ACCESS_STATE>, desiredaccess: u32, objecttype: Option, accessmode: i8, tag: u32, handle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointerWithTag(object : *const core::ffi::c_void, handleattributes : u32, passedaccessstate : *const super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, tag : u32, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObOpenObjectByPointerWithTag(core::mem::transmute(object), core::mem::transmute(handleattributes), core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode), core::mem::transmute(tag), core::mem::transmute(handle)) + ObOpenObjectByPointerWithTag(object, handleattributes, core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), desiredaccess, core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), accessmode, tag, core::mem::transmute(handle)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObQueryNameString(object: *const core::ffi::c_void, objectnameinfo: Option<*mut super::super::Foundation::OBJECT_NAME_INFORMATION>, length: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryNameString(object : *const core::ffi::c_void, objectnameinfo : *mut super::super::Foundation:: OBJECT_NAME_INFORMATION, length : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObQueryNameString(core::mem::transmute(object), core::mem::transmute(objectnameinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(returnlength)) + ObQueryNameString(object, core::mem::transmute(objectnameinfo.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn ObQueryObjectAuditingByHandle(handle: super::super::super::Win32::Foundation::HANDLE, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObQueryObjectAuditingByHandle(core::mem::transmute(handle), core::mem::transmute(generateonclose)) + ObQueryObjectAuditingByHandle(handle, core::mem::transmute(generateonclose)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn PfxFindPrefix(prefixtable: *const PREFIX_TABLE, fullname: *const super::super::super::Win32::System::Kernel::STRING) -> *mut PREFIX_TABLE_ENTRY { windows_targets::link!("ntdll.dll" "system" fn PfxFindPrefix(prefixtable : *const PREFIX_TABLE, fullname : *const super::super::super::Win32::System::Kernel:: STRING) -> *mut PREFIX_TABLE_ENTRY); - PfxFindPrefix(core::mem::transmute(prefixtable), core::mem::transmute(fullname)) + PfxFindPrefix(prefixtable, fullname) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2544,13 +2439,13 @@ pub unsafe fn PfxInitialize() -> PREFIX_TABLE { #[inline] pub unsafe fn PfxInsertPrefix(prefixtable: *const PREFIX_TABLE, prefix: *const super::super::super::Win32::System::Kernel::STRING, prefixtableentry: *mut PREFIX_TABLE_ENTRY) -> bool { windows_targets::link!("ntdll.dll" "system" fn PfxInsertPrefix(prefixtable : *const PREFIX_TABLE, prefix : *const super::super::super::Win32::System::Kernel:: STRING, prefixtableentry : *mut PREFIX_TABLE_ENTRY) -> bool); - PfxInsertPrefix(core::mem::transmute(prefixtable), core::mem::transmute(prefix), core::mem::transmute(prefixtableentry)) + PfxInsertPrefix(prefixtable, prefix, core::mem::transmute(prefixtableentry)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn PfxRemovePrefix(prefixtable: *const PREFIX_TABLE, prefixtableentry: *const PREFIX_TABLE_ENTRY) { windows_targets::link!("ntdll.dll" "system" fn PfxRemovePrefix(prefixtable : *const PREFIX_TABLE, prefixtableentry : *const PREFIX_TABLE_ENTRY)); - PfxRemovePrefix(core::mem::transmute(prefixtable), core::mem::transmute(prefixtableentry)) + PfxRemovePrefix(prefixtable, prefixtableentry) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2562,35 +2457,35 @@ pub unsafe fn PoQueueShutdownWorkItem(workitem: *mut super::super::Foundation::W #[inline] pub unsafe fn PsAssignImpersonationToken(thread: super::super::Foundation::PETHREAD, token: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsAssignImpersonationToken(thread : super::super::Foundation:: PETHREAD, token : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsAssignImpersonationToken(core::mem::transmute(thread), core::mem::transmute(token.unwrap_or(core::mem::zeroed()))) + PsAssignImpersonationToken(thread, core::mem::transmute(token.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsChargePoolQuota(process: super::super::Foundation::PEPROCESS, pooltype: super::super::Foundation::POOL_TYPE, amount: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn PsChargePoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize)); - PsChargePoolQuota(core::mem::transmute(process), core::mem::transmute(pooltype), core::mem::transmute(amount)) + PsChargePoolQuota(process, pooltype, amount) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsChargeProcessPoolQuota(process: super::super::Foundation::PEPROCESS, pooltype: super::super::Foundation::POOL_TYPE, amount: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsChargeProcessPoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsChargeProcessPoolQuota(core::mem::transmute(process), core::mem::transmute(pooltype), core::mem::transmute(amount)) + PsChargeProcessPoolQuota(process, pooltype, amount) } #[inline] pub unsafe fn PsDereferenceImpersonationToken(impersonationtoken: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn PsDereferenceImpersonationToken(impersonationtoken : *const core::ffi::c_void)); - PsDereferenceImpersonationToken(core::mem::transmute(impersonationtoken)) + PsDereferenceImpersonationToken(impersonationtoken) } #[inline] pub unsafe fn PsDereferencePrimaryToken(primarytoken: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn PsDereferencePrimaryToken(primarytoken : *const core::ffi::c_void)); - PsDereferencePrimaryToken(core::mem::transmute(primarytoken)) + PsDereferencePrimaryToken(primarytoken) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsDisableImpersonation(thread: super::super::Foundation::PETHREAD, impersonationstate: *mut super::super::super::Win32::Security::SE_IMPERSONATION_STATE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> bool); - PsDisableImpersonation(core::mem::transmute(thread), core::mem::transmute(impersonationstate)) + PsDisableImpersonation(thread, core::mem::transmute(impersonationstate)) } #[inline] pub unsafe fn PsGetProcessExitTime() -> i64 { @@ -2601,13 +2496,13 @@ pub unsafe fn PsGetProcessExitTime() -> i64 { #[inline] pub unsafe fn PsGetThreadProcess(thread: super::super::Foundation::PETHREAD) -> super::super::Foundation::PEPROCESS { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS); - PsGetThreadProcess(core::mem::transmute(thread)) + PsGetThreadProcess(thread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsImpersonateClient(thread: super::super::Foundation::PETHREAD, token: Option<*const core::ffi::c_void>, copyonopen: bool, effectiveonly: bool, impersonationlevel: super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : bool, effectiveonly : bool, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsImpersonateClient(core::mem::transmute(thread), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(copyonopen), core::mem::transmute(effectiveonly), core::mem::transmute(impersonationlevel)) + PsImpersonateClient(thread, core::mem::transmute(token.unwrap_or(core::mem::zeroed())), copyonopen, effectiveonly, impersonationlevel) } #[inline] pub unsafe fn PsIsDiskCountersEnabled() -> bool { @@ -2618,49 +2513,49 @@ pub unsafe fn PsIsDiskCountersEnabled() -> bool { #[inline] pub unsafe fn PsIsSystemThread(thread: super::super::Foundation::PETHREAD) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool); - PsIsSystemThread(core::mem::transmute(thread)) + PsIsSystemThread(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsIsThreadTerminating(thread: super::super::Foundation::PETHREAD) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> bool); - PsIsThreadTerminating(core::mem::transmute(thread)) + PsIsThreadTerminating(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsLookupProcessByProcessId(processid: super::super::super::Win32::Foundation::HANDLE, process: *mut super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsLookupProcessByProcessId(processid : super::super::super::Win32::Foundation:: HANDLE, process : *mut super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsLookupProcessByProcessId(core::mem::transmute(processid), core::mem::transmute(process)) + PsLookupProcessByProcessId(processid, core::mem::transmute(process)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsLookupThreadByThreadId(threadid: super::super::super::Win32::Foundation::HANDLE, thread: *mut super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsLookupThreadByThreadId(threadid : super::super::super::Win32::Foundation:: HANDLE, thread : *mut super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsLookupThreadByThreadId(core::mem::transmute(threadid), core::mem::transmute(thread)) + PsLookupThreadByThreadId(threadid, core::mem::transmute(thread)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsReferenceImpersonationToken(thread: super::super::Foundation::PETHREAD, copyonopen: *mut bool, effectiveonly: *mut bool, impersonationlevel: *mut super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut bool, effectiveonly : *mut bool, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void); - PsReferenceImpersonationToken(core::mem::transmute(thread), core::mem::transmute(copyonopen), core::mem::transmute(effectiveonly), core::mem::transmute(impersonationlevel)) + PsReferenceImpersonationToken(thread, core::mem::transmute(copyonopen), core::mem::transmute(effectiveonly), core::mem::transmute(impersonationlevel)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReferencePrimaryToken(process: super::super::Foundation::PEPROCESS) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn PsReferencePrimaryToken(process : super::super::Foundation:: PEPROCESS) -> *mut core::ffi::c_void); - PsReferencePrimaryToken(core::mem::transmute(process)) + PsReferencePrimaryToken(process) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsRestoreImpersonation(thread: super::super::Foundation::PETHREAD, impersonationstate: *const super::super::super::Win32::Security::SE_IMPERSONATION_STATE) { windows_targets::link!("ntoskrnl.exe" "system" fn PsRestoreImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *const super::super::super::Win32::Security:: SE_IMPERSONATION_STATE)); - PsRestoreImpersonation(core::mem::transmute(thread), core::mem::transmute(impersonationstate)) + PsRestoreImpersonation(thread, impersonationstate) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReturnPoolQuota(process: super::super::Foundation::PEPROCESS, pooltype: super::super::Foundation::POOL_TYPE, amount: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn PsReturnPoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize)); - PsReturnPoolQuota(core::mem::transmute(process), core::mem::transmute(pooltype), core::mem::transmute(amount)) + PsReturnPoolQuota(process, pooltype, amount) } #[inline] pub unsafe fn PsRevertToSelf() { @@ -2671,112 +2566,112 @@ pub unsafe fn PsRevertToSelf() { #[inline] pub unsafe fn PsUpdateDiskCounters(process: super::super::Foundation::PEPROCESS, bytesread: u64, byteswritten: u64, readoperationcount: u32, writeoperationcount: u32, flushoperationcount: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PsUpdateDiskCounters(process : super::super::Foundation:: PEPROCESS, bytesread : u64, byteswritten : u64, readoperationcount : u32, writeoperationcount : u32, flushoperationcount : u32)); - PsUpdateDiskCounters(core::mem::transmute(process), core::mem::transmute(bytesread), core::mem::transmute(byteswritten), core::mem::transmute(readoperationcount), core::mem::transmute(writeoperationcount), core::mem::transmute(flushoperationcount)) + PsUpdateDiskCounters(process, bytesread, byteswritten, readoperationcount, writeoperationcount, flushoperationcount) } #[inline] pub unsafe fn QuerySecurityContextToken(phcontext: *const SecHandle, token: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn QuerySecurityContextToken(phcontext : *const SecHandle, token : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - QuerySecurityContextToken(core::mem::transmute(phcontext), core::mem::transmute(token)).ok() + QuerySecurityContextToken(phcontext, core::mem::transmute(token)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAbsoluteToSelfRelativeSD(absolutesecuritydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, selfrelativesecuritydescriptor: Option, bufferlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAbsoluteToSelfRelativeSD(absolutesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, selfrelativesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, bufferlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAbsoluteToSelfRelativeSD(core::mem::transmute(absolutesecuritydescriptor), core::mem::transmute(selfrelativesecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength)) + RtlAbsoluteToSelfRelativeSD(absolutesecuritydescriptor, core::mem::transmute(selfrelativesecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAddAccessAllowedAce(acl: *mut super::super::super::Win32::Security::ACL, acerevision: u32, accessmask: u32, sid: super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAddAccessAllowedAce(acl : *mut super::super::super::Win32::Security:: ACL, acerevision : u32, accessmask : u32, sid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAddAccessAllowedAce(core::mem::transmute(acl), core::mem::transmute(acerevision), core::mem::transmute(accessmask), core::mem::transmute(sid)) + RtlAddAccessAllowedAce(core::mem::transmute(acl), acerevision, accessmask, sid) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAddAccessAllowedAceEx(acl: *mut super::super::super::Win32::Security::ACL, acerevision: u32, aceflags: u32, accessmask: u32, sid: super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAddAccessAllowedAceEx(acl : *mut super::super::super::Win32::Security:: ACL, acerevision : u32, aceflags : u32, accessmask : u32, sid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAddAccessAllowedAceEx(core::mem::transmute(acl), core::mem::transmute(acerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(sid)) + RtlAddAccessAllowedAceEx(core::mem::transmute(acl), acerevision, aceflags, accessmask, sid) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAddAce(acl: *mut super::super::super::Win32::Security::ACL, acerevision: u32, startingaceindex: u32, acelist: *const core::ffi::c_void, acelistlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAddAce(acl : *mut super::super::super::Win32::Security:: ACL, acerevision : u32, startingaceindex : u32, acelist : *const core::ffi::c_void, acelistlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAddAce(core::mem::transmute(acl), core::mem::transmute(acerevision), core::mem::transmute(startingaceindex), core::mem::transmute(acelist), core::mem::transmute(acelistlength)) + RtlAddAce(core::mem::transmute(acl), acerevision, startingaceindex, acelist, acelistlength) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAllocateAndInitializeSid(identifierauthority: *const super::super::super::Win32::Security::SID_IDENTIFIER_AUTHORITY, subauthoritycount: u8, subauthority0: u32, subauthority1: u32, subauthority2: u32, subauthority3: u32, subauthority4: u32, subauthority5: u32, subauthority6: u32, subauthority7: u32, sid: *mut super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAllocateAndInitializeSid(identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8, subauthority0 : u32, subauthority1 : u32, subauthority2 : u32, subauthority3 : u32, subauthority4 : u32, subauthority5 : u32, subauthority6 : u32, subauthority7 : u32, sid : *mut super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAllocateAndInitializeSid(core::mem::transmute(identifierauthority), core::mem::transmute(subauthoritycount), core::mem::transmute(subauthority0), core::mem::transmute(subauthority1), core::mem::transmute(subauthority2), core::mem::transmute(subauthority3), core::mem::transmute(subauthority4), core::mem::transmute(subauthority5), core::mem::transmute(subauthority6), core::mem::transmute(subauthority7), core::mem::transmute(sid)) + RtlAllocateAndInitializeSid(identifierauthority, subauthoritycount, subauthority0, subauthority1, subauthority2, subauthority3, subauthority4, subauthority5, subauthority6, subauthority7, core::mem::transmute(sid)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAllocateAndInitializeSidEx(identifierauthority: *const super::super::super::Win32::Security::SID_IDENTIFIER_AUTHORITY, subauthorities: &[u32], sid: *mut super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAllocateAndInitializeSidEx(identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8, subauthorities : *const u32, sid : *mut super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAllocateAndInitializeSidEx(core::mem::transmute(identifierauthority), subauthorities.len().try_into().unwrap(), core::mem::transmute(subauthorities.as_ptr()), core::mem::transmute(sid)) + RtlAllocateAndInitializeSidEx(identifierauthority, subauthorities.len().try_into().unwrap(), core::mem::transmute(subauthorities.as_ptr()), core::mem::transmute(sid)) } #[inline] pub unsafe fn RtlAllocateHeap(heaphandle: *const core::ffi::c_void, flags: Option, size: usize) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlAllocateHeap(heaphandle : *const core::ffi::c_void, flags : u32, size : usize) -> *mut core::ffi::c_void); - RtlAllocateHeap(core::mem::transmute(heaphandle), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + RtlAllocateHeap(heaphandle, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), size) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlAppendStringToString(destination: *mut super::super::super::Win32::System::Kernel::STRING, source: *const super::super::super::Win32::System::Kernel::STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAppendStringToString(destination : *mut super::super::super::Win32::System::Kernel:: STRING, source : *const super::super::super::Win32::System::Kernel:: STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAppendStringToString(core::mem::transmute(destination), core::mem::transmute(source)) + RtlAppendStringToString(core::mem::transmute(destination), source) } #[inline] pub unsafe fn RtlCompareAltitudes(altitude1: *const super::super::super::Win32::Foundation::UNICODE_STRING, altitude2: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlCompareAltitudes(altitude1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, altitude2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> i32); - RtlCompareAltitudes(core::mem::transmute(altitude1), core::mem::transmute(altitude2)) + RtlCompareAltitudes(altitude1, altitude2) } #[inline] pub unsafe fn RtlCompareMemoryUlong(source: *const core::ffi::c_void, length: usize, pattern: u32) -> usize { windows_targets::link!("ntdll.dll" "system" fn RtlCompareMemoryUlong(source : *const core::ffi::c_void, length : usize, pattern : u32) -> usize); - RtlCompareMemoryUlong(core::mem::transmute(source), core::mem::transmute(length), core::mem::transmute(pattern)) + RtlCompareMemoryUlong(source, length, pattern) } #[inline] pub unsafe fn RtlCompressBuffer(compressionformatandengine: u16, uncompressedbuffer: &[u8], compressedbuffer: &mut [u8], uncompressedchunksize: u32, finalcompressedsize: *mut u32, workspace: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCompressBuffer(compressionformatandengine : u16, uncompressedbuffer : *const u8, uncompressedbuffersize : u32, compressedbuffer : *mut u8, compressedbuffersize : u32, uncompressedchunksize : u32, finalcompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCompressBuffer(core::mem::transmute(compressionformatandengine), core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(uncompressedchunksize), core::mem::transmute(finalcompressedsize), core::mem::transmute(workspace)) + RtlCompressBuffer(compressionformatandengine, core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), uncompressedchunksize, core::mem::transmute(finalcompressedsize), workspace) } #[inline] pub unsafe fn RtlCompressChunks(uncompressedbuffer: &[u8], compressedbuffer: &mut [u8], compresseddatainfo: *mut COMPRESSED_DATA_INFO, compresseddatainfolength: u32, workspace: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlCompressChunks(uncompressedbuffer : *const u8, uncompressedbuffersize : u32, compressedbuffer : *mut u8, compressedbuffersize : u32, compresseddatainfo : *mut COMPRESSED_DATA_INFO, compresseddatainfolength : u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCompressChunks(core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(compresseddatainfo), core::mem::transmute(compresseddatainfolength), core::mem::transmute(workspace)) + RtlCompressChunks(core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(compresseddatainfo), compresseddatainfolength, workspace) } #[inline] pub unsafe fn RtlCopyLuid(destinationluid: *mut super::super::super::Win32::Foundation::LUID, sourceluid: *const super::super::super::Win32::Foundation::LUID) { windows_targets::link!("ntdll.dll" "system" fn RtlCopyLuid(destinationluid : *mut super::super::super::Win32::Foundation:: LUID, sourceluid : *const super::super::super::Win32::Foundation:: LUID)); - RtlCopyLuid(core::mem::transmute(destinationluid), core::mem::transmute(sourceluid)) + RtlCopyLuid(core::mem::transmute(destinationluid), sourceluid) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlCopySid(destinationsidlength: u32, destinationsid: super::super::super::Win32::Security::PSID, sourcesid: super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCopySid(destinationsidlength : u32, destinationsid : super::super::super::Win32::Security:: PSID, sourcesid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCopySid(core::mem::transmute(destinationsidlength), core::mem::transmute(destinationsid), core::mem::transmute(sourcesid)) + RtlCopySid(destinationsidlength, core::mem::transmute(destinationsid), sourcesid) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlCreateAcl(acl: *mut super::super::super::Win32::Security::ACL, acllength: u32, aclrevision: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCreateAcl(acl : *mut super::super::super::Win32::Security:: ACL, acllength : u32, aclrevision : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateAcl(core::mem::transmute(acl), core::mem::transmute(acllength), core::mem::transmute(aclrevision)) + RtlCreateAcl(core::mem::transmute(acl), acllength, aclrevision) } #[inline] pub unsafe fn RtlCreateHeap(flags: u32, heapbase: Option<*const core::ffi::c_void>, reservesize: Option, commitsize: Option, lock: Option<*const core::ffi::c_void>, parameters: Option<*const RTL_HEAP_PARAMETERS>) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlCreateHeap(flags : u32, heapbase : *const core::ffi::c_void, reservesize : usize, commitsize : usize, lock : *const core::ffi::c_void, parameters : *const RTL_HEAP_PARAMETERS) -> *mut core::ffi::c_void); - RtlCreateHeap(core::mem::transmute(flags), core::mem::transmute(heapbase.unwrap_or(core::mem::zeroed())), core::mem::transmute(reservesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(commitsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lock.unwrap_or(core::mem::zeroed())), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) + RtlCreateHeap(flags, core::mem::transmute(heapbase.unwrap_or(core::mem::zeroed())), core::mem::transmute(reservesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(commitsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lock.unwrap_or(core::mem::zeroed())), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlCreateServiceSid(servicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, servicesid: Option, servicesidlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCreateServiceSid(servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicesid : super::super::super::Win32::Security:: PSID, servicesidlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateServiceSid(core::mem::transmute(servicename), core::mem::transmute(servicesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(servicesidlength)) + RtlCreateServiceSid(servicename, core::mem::transmute(servicesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(servicesidlength)) } #[inline] pub unsafe fn RtlCreateSystemVolumeInformationFolder(volumerootpath: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCreateSystemVolumeInformationFolder(volumerootpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateSystemVolumeInformationFolder(core::mem::transmute(volumerootpath)) + RtlCreateSystemVolumeInformationFolder(volumerootpath) } #[inline] pub unsafe fn RtlCreateUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: P1) -> bool @@ -2790,58 +2685,58 @@ where #[inline] pub unsafe fn RtlCreateVirtualAccountSid(name: *const super::super::super::Win32::Foundation::UNICODE_STRING, basesubauthority: u32, sid: super::super::super::Win32::Security::PSID, sidlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCreateVirtualAccountSid(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, basesubauthority : u32, sid : super::super::super::Win32::Security:: PSID, sidlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateVirtualAccountSid(core::mem::transmute(name), core::mem::transmute(basesubauthority), core::mem::transmute(sid), core::mem::transmute(sidlength)) + RtlCreateVirtualAccountSid(name, basesubauthority, core::mem::transmute(sid), core::mem::transmute(sidlength)) } #[inline] pub unsafe fn RtlCustomCPToUnicodeN(customcp: *const CPTABLEINFO, unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, customcpstring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCustomCPToUnicodeN(customcp : *const CPTABLEINFO, unicodestring : windows_core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, customcpstring : windows_core::PCSTR, bytesincustomcpstring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCustomCPToUnicodeN(core::mem::transmute(customcp), core::mem::transmute(unicodestring), core::mem::transmute(maxbytesinunicodestring), core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap()) + RtlCustomCPToUnicodeN(customcp, core::mem::transmute(unicodestring), maxbytesinunicodestring, core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn RtlDecompressBuffer(compressionformat: u16, uncompressedbuffer: &mut [u8], compressedbuffer: &[u8], finaluncompressedsize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlDecompressBuffer(compressionformat : u16, uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, finaluncompressedsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDecompressBuffer(core::mem::transmute(compressionformat), core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(finaluncompressedsize)) + RtlDecompressBuffer(compressionformat, core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(finaluncompressedsize)) } #[inline] pub unsafe fn RtlDecompressBufferEx(compressionformat: u16, uncompressedbuffer: &mut [u8], compressedbuffer: &[u8], finaluncompressedsize: *mut u32, workspace: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlDecompressBufferEx(compressionformat : u16, uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDecompressBufferEx(core::mem::transmute(compressionformat), core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(finaluncompressedsize), core::mem::transmute(workspace.unwrap_or(core::mem::zeroed()))) + RtlDecompressBufferEx(compressionformat, core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(finaluncompressedsize), core::mem::transmute(workspace.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlDecompressBufferEx2(compressionformat: u16, uncompressedbuffer: &mut [u8], compressedbuffer: &[u8], uncompressedchunksize: u32, finaluncompressedsize: *mut u32, workspace: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlDecompressBufferEx2(compressionformat : u16, uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, uncompressedchunksize : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDecompressBufferEx2(core::mem::transmute(compressionformat), core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(uncompressedchunksize), core::mem::transmute(finaluncompressedsize), core::mem::transmute(workspace.unwrap_or(core::mem::zeroed()))) + RtlDecompressBufferEx2(compressionformat, core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), uncompressedchunksize, core::mem::transmute(finaluncompressedsize), core::mem::transmute(workspace.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlDecompressChunks(uncompressedbuffer: &mut [u8], compressedbuffer: &[u8], compressedtail: &[u8], compresseddatainfo: *const COMPRESSED_DATA_INFO) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlDecompressChunks(uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, compressedtail : *const u8, compressedtailsize : u32, compresseddatainfo : *const COMPRESSED_DATA_INFO) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDecompressChunks(core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedtail.as_ptr()), compressedtail.len().try_into().unwrap(), core::mem::transmute(compresseddatainfo)) + RtlDecompressChunks(core::mem::transmute(uncompressedbuffer.as_ptr()), uncompressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(compressedtail.as_ptr()), compressedtail.len().try_into().unwrap(), compresseddatainfo) } #[inline] pub unsafe fn RtlDecompressFragment(compressionformat: u16, uncompressedfragment: &mut [u8], compressedbuffer: &[u8], fragmentoffset: u32, finaluncompressedsize: *mut u32, workspace: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlDecompressFragment(compressionformat : u16, uncompressedfragment : *mut u8, uncompressedfragmentsize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, fragmentoffset : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDecompressFragment(core::mem::transmute(compressionformat), core::mem::transmute(uncompressedfragment.as_ptr()), uncompressedfragment.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(fragmentoffset), core::mem::transmute(finaluncompressedsize), core::mem::transmute(workspace)) + RtlDecompressFragment(compressionformat, core::mem::transmute(uncompressedfragment.as_ptr()), uncompressedfragment.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), fragmentoffset, core::mem::transmute(finaluncompressedsize), workspace) } #[inline] pub unsafe fn RtlDecompressFragmentEx(compressionformat: u16, uncompressedfragment: &mut [u8], compressedbuffer: &[u8], fragmentoffset: u32, uncompressedchunksize: u32, finaluncompressedsize: *mut u32, workspace: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlDecompressFragmentEx(compressionformat : u16, uncompressedfragment : *mut u8, uncompressedfragmentsize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, fragmentoffset : u32, uncompressedchunksize : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDecompressFragmentEx(core::mem::transmute(compressionformat), core::mem::transmute(uncompressedfragment.as_ptr()), uncompressedfragment.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), core::mem::transmute(fragmentoffset), core::mem::transmute(uncompressedchunksize), core::mem::transmute(finaluncompressedsize), core::mem::transmute(workspace)) + RtlDecompressFragmentEx(compressionformat, core::mem::transmute(uncompressedfragment.as_ptr()), uncompressedfragment.len().try_into().unwrap(), core::mem::transmute(compressedbuffer.as_ptr()), compressedbuffer.len().try_into().unwrap(), fragmentoffset, uncompressedchunksize, core::mem::transmute(finaluncompressedsize), workspace) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlDeleteAce(acl: *mut super::super::super::Win32::Security::ACL, aceindex: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteAce(acl : *mut super::super::super::Win32::Security:: ACL, aceindex : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDeleteAce(core::mem::transmute(acl), core::mem::transmute(aceindex)) + RtlDeleteAce(core::mem::transmute(acl), aceindex) } #[inline] pub unsafe fn RtlDescribeChunk(compressionformat: u16, compressedbuffer: *mut *mut u8, endofcompressedbufferplus1: *const u8, chunkbuffer: *mut *mut u8, chunksize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlDescribeChunk(compressionformat : u16, compressedbuffer : *mut *mut u8, endofcompressedbufferplus1 : *const u8, chunkbuffer : *mut *mut u8, chunksize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDescribeChunk(core::mem::transmute(compressionformat), core::mem::transmute(compressedbuffer), core::mem::transmute(endofcompressedbufferplus1), core::mem::transmute(chunkbuffer), core::mem::transmute(chunksize)) + RtlDescribeChunk(compressionformat, core::mem::transmute(compressedbuffer), endofcompressedbufferplus1, core::mem::transmute(chunkbuffer), core::mem::transmute(chunksize)) } #[inline] pub unsafe fn RtlDestroyHeap(heaphandle: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlDestroyHeap(heaphandle : *const core::ffi::c_void) -> *mut core::ffi::c_void); - RtlDestroyHeap(core::mem::transmute(heaphandle)) + RtlDestroyHeap(heaphandle) } #[inline] pub unsafe fn RtlDosPathNameToNtPathName_U_WithStatus(dosfilename: P0, ntfilename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, filepart: Option<*mut windows_core::PWSTR>, reserved: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS @@ -2854,87 +2749,87 @@ where #[inline] pub unsafe fn RtlDowncaseUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDowncaseUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlDowncaseUnicodeString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlDuplicateUnicodeString(flags: u32, stringin: *const super::super::super::Win32::Foundation::UNICODE_STRING, stringout: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlDuplicateUnicodeString(flags : u32, stringin : *const super::super::super::Win32::Foundation:: UNICODE_STRING, stringout : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDuplicateUnicodeString(core::mem::transmute(flags), core::mem::transmute(stringin), core::mem::transmute(stringout)) + RtlDuplicateUnicodeString(flags, stringin, core::mem::transmute(stringout)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlEqualPrefixSid(sid1: super::super::super::Win32::Security::PSID, sid2: super::super::super::Win32::Security::PSID) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool); - RtlEqualPrefixSid(core::mem::transmute(sid1), core::mem::transmute(sid2)) + RtlEqualPrefixSid(sid1, sid2) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlEqualSid(sid1: super::super::super::Win32::Security::PSID, sid2: super::super::super::Win32::Security::PSID) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool); - RtlEqualSid(core::mem::transmute(sid1), core::mem::transmute(sid2)) + RtlEqualSid(sid1, sid2) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlFindUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, fullname: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitiveindex: u32) -> *mut UNICODE_PREFIX_TABLE_ENTRY { windows_targets::link!("ntoskrnl.exe" "system" fn RtlFindUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, fullname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitiveindex : u32) -> *mut UNICODE_PREFIX_TABLE_ENTRY); - RtlFindUnicodePrefix(core::mem::transmute(prefixtable), core::mem::transmute(fullname), core::mem::transmute(caseinsensitiveindex)) + RtlFindUnicodePrefix(prefixtable, fullname, caseinsensitiveindex) } #[inline] pub unsafe fn RtlFreeHeap(heaphandle: *const core::ffi::c_void, flags: Option, baseaddress: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFreeHeap(heaphandle : *const core::ffi::c_void, flags : u32, baseaddress : *const core::ffi::c_void) -> u32); - RtlFreeHeap(core::mem::transmute(heaphandle), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed()))) + RtlFreeHeap(heaphandle, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlFreeSid(sid: super::super::super::Win32::Security::PSID) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlFreeSid(sid : super::super::super::Win32::Security:: PSID) -> *mut core::ffi::c_void); - RtlFreeSid(core::mem::transmute(sid)) + RtlFreeSid(sid) } #[inline] pub unsafe fn RtlGenerate8dot3Name(name: *const super::super::super::Win32::Foundation::UNICODE_STRING, allowextendedcharacters: bool, context: *mut GENERATE_NAME_CONTEXT, name8dot3: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : bool, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGenerate8dot3Name(core::mem::transmute(name), core::mem::transmute(allowextendedcharacters), core::mem::transmute(context), core::mem::transmute(name8dot3)) + RtlGenerate8dot3Name(name, allowextendedcharacters, core::mem::transmute(context), core::mem::transmute(name8dot3)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetAce(acl: *const super::super::super::Win32::Security::ACL, aceindex: u32, ace: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGetAce(acl : *const super::super::super::Win32::Security:: ACL, aceindex : u32, ace : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetAce(core::mem::transmute(acl), core::mem::transmute(aceindex), core::mem::transmute(ace)) + RtlGetAce(acl, aceindex, core::mem::transmute(ace)) } #[inline] pub unsafe fn RtlGetCompressionWorkSpaceSize(compressionformatandengine: u16, compressbufferworkspacesize: *mut u32, compressfragmentworkspacesize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGetCompressionWorkSpaceSize(compressionformatandengine : u16, compressbufferworkspacesize : *mut u32, compressfragmentworkspacesize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetCompressionWorkSpaceSize(core::mem::transmute(compressionformatandengine), core::mem::transmute(compressbufferworkspacesize), core::mem::transmute(compressfragmentworkspacesize)) + RtlGetCompressionWorkSpaceSize(compressionformatandengine, core::mem::transmute(compressbufferworkspacesize), core::mem::transmute(compressfragmentworkspacesize)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetDaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, daclpresent: *mut bool, dacl: *mut *mut super::super::super::Win32::Security::ACL, dacldefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut bool, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetDaclSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(daclpresent), core::mem::transmute(dacl), core::mem::transmute(dacldefaulted)) + RtlGetDaclSecurityDescriptor(securitydescriptor, core::mem::transmute(daclpresent), core::mem::transmute(dacl), core::mem::transmute(dacldefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetGroupSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, group: *mut super::super::super::Win32::Security::PSID, groupdefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Security:: PSID, groupdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetGroupSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(group), core::mem::transmute(groupdefaulted)) + RtlGetGroupSecurityDescriptor(securitydescriptor, core::mem::transmute(group), core::mem::transmute(groupdefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetOwnerSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, owner: *mut super::super::super::Win32::Security::PSID, ownerdefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Security:: PSID, ownerdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetOwnerSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(owner), core::mem::transmute(ownerdefaulted)) + RtlGetOwnerSecurityDescriptor(securitydescriptor, core::mem::transmute(owner), core::mem::transmute(ownerdefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetSaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, saclpresent: *mut bool, sacl: *mut *mut super::super::super::Win32::Security::ACL, sacldefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut bool, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetSaclSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(saclpresent), core::mem::transmute(sacl), core::mem::transmute(sacldefaulted)) + RtlGetSaclSecurityDescriptor(securitydescriptor, core::mem::transmute(saclpresent), core::mem::transmute(sacl), core::mem::transmute(sacldefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlIdentifierAuthoritySid(sid: super::super::super::Win32::Security::PSID) -> *mut super::super::super::Win32::Security::SID_IDENTIFIER_AUTHORITY { windows_targets::link!("ntdll.dll" "system" fn RtlIdentifierAuthoritySid(sid : super::super::super::Win32::Security:: PSID) -> *mut super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY); - RtlIdentifierAuthoritySid(core::mem::transmute(sid)) + RtlIdentifierAuthoritySid(sid) } #[inline] pub unsafe fn RtlIdnToAscii(flags: u32, sourcestring: P1, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -2942,7 +2837,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIdnToAscii(flags : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, destinationstring : windows_core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIdnToAscii(core::mem::transmute(flags), sourcestring.param().abi(), core::mem::transmute(sourcestringlength), core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) + RtlIdnToAscii(flags, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) } #[inline] pub unsafe fn RtlIdnToNameprepUnicode(flags: u32, sourcestring: P1, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -2950,7 +2845,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIdnToNameprepUnicode(flags : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, destinationstring : windows_core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIdnToNameprepUnicode(core::mem::transmute(flags), sourcestring.param().abi(), core::mem::transmute(sourcestringlength), core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) + RtlIdnToNameprepUnicode(flags, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) } #[inline] pub unsafe fn RtlIdnToUnicode(flags: u32, sourcestring: P1, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -2958,7 +2853,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIdnToUnicode(flags : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, destinationstring : windows_core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIdnToUnicode(core::mem::transmute(flags), sourcestring.param().abi(), core::mem::transmute(sourcestringlength), core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) + RtlIdnToUnicode(flags, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) } #[inline] pub unsafe fn RtlInitCodePageTable(tablebase: Option<&[u16; 2]>, codepagetable: *mut CPTABLEINFO) { @@ -2977,13 +2872,13 @@ where #[inline] pub unsafe fn RtlInitializeSid(sid: super::super::super::Win32::Security::PSID, identifierauthority: *const super::super::super::Win32::Security::SID_IDENTIFIER_AUTHORITY, subauthoritycount: u8) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlInitializeSid(sid : super::super::super::Win32::Security:: PSID, identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlInitializeSid(core::mem::transmute(sid), core::mem::transmute(identifierauthority), core::mem::transmute(subauthoritycount)) + RtlInitializeSid(core::mem::transmute(sid), identifierauthority, subauthoritycount) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlInitializeSidEx(sid: super::super::super::Win32::Security::PSID, identifierauthority: *const super::super::super::Win32::Security::SID_IDENTIFIER_AUTHORITY, subauthoritycount: u8) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "cdecl" fn RtlInitializeSidEx(sid : super::super::super::Win32::Security:: PSID, identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlInitializeSidEx(core::mem::transmute(sid), core::mem::transmute(identifierauthority), core::mem::transmute(subauthoritycount)) + RtlInitializeSidEx(core::mem::transmute(sid), identifierauthority, subauthoritycount) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2997,12 +2892,12 @@ pub unsafe fn RtlInitializeUnicodePrefix() -> UNICODE_PREFIX_TABLE { #[inline] pub unsafe fn RtlInsertUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, prefix: *const super::super::super::Win32::Foundation::UNICODE_STRING, prefixtableentry: *mut UNICODE_PREFIX_TABLE_ENTRY) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn RtlInsertUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefix : *const super::super::super::Win32::Foundation:: UNICODE_STRING, prefixtableentry : *mut UNICODE_PREFIX_TABLE_ENTRY) -> bool); - RtlInsertUnicodePrefix(core::mem::transmute(prefixtable), core::mem::transmute(prefix), core::mem::transmute(prefixtableentry)) + RtlInsertUnicodePrefix(prefixtable, prefix, core::mem::transmute(prefixtableentry)) } #[inline] pub unsafe fn RtlIsCloudFilesPlaceholder(fileattributes: u32, reparsetag: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlIsCloudFilesPlaceholder(fileattributes : u32, reparsetag : u32) -> bool); - RtlIsCloudFilesPlaceholder(core::mem::transmute(fileattributes), core::mem::transmute(reparsetag)) + RtlIsCloudFilesPlaceholder(fileattributes, reparsetag) } #[inline] pub unsafe fn RtlIsDosDeviceName_U(dosfilename: P0) -> u32 @@ -3015,7 +2910,7 @@ where #[inline] pub unsafe fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool); - RtlIsNonEmptyDirectoryReparsePointAllowed(core::mem::transmute(reparsetag)) + RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag) } #[inline] pub unsafe fn RtlIsNormalizedString(normform: u32, sourcestring: P1, sourcestringlength: i32, normalized: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3023,28 +2918,28 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, normalized : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsNormalizedString(core::mem::transmute(normform), sourcestring.param().abi(), core::mem::transmute(sourcestringlength), core::mem::transmute(normalized)) + RtlIsNormalizedString(normform, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(normalized)) } #[inline] pub unsafe fn RtlIsPartialPlaceholder(fileattributes: u32, reparsetag: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholder(fileattributes : u32, reparsetag : u32) -> bool); - RtlIsPartialPlaceholder(core::mem::transmute(fileattributes), core::mem::transmute(reparsetag)) + RtlIsPartialPlaceholder(fileattributes, reparsetag) } #[inline] pub unsafe fn RtlIsPartialPlaceholderFileHandle(filehandle: super::super::super::Win32::Foundation::HANDLE, ispartialplaceholder: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsPartialPlaceholderFileHandle(core::mem::transmute(filehandle), core::mem::transmute(ispartialplaceholder)) + RtlIsPartialPlaceholderFileHandle(filehandle, core::mem::transmute(ispartialplaceholder)) } #[inline] pub unsafe fn RtlIsPartialPlaceholderFileInfo(infobuffer: *const core::ffi::c_void, infoclass: FILE_INFORMATION_CLASS, ispartialplaceholder: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileInfo(infobuffer : *const core::ffi::c_void, infoclass : FILE_INFORMATION_CLASS, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsPartialPlaceholderFileInfo(core::mem::transmute(infobuffer), core::mem::transmute(infoclass), core::mem::transmute(ispartialplaceholder)) + RtlIsPartialPlaceholderFileInfo(infobuffer, infoclass, core::mem::transmute(ispartialplaceholder)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn RtlIsSandboxedToken(context: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, previousmode: i8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsSandboxedToken(context : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, previousmode : i8) -> bool); - RtlIsSandboxedToken(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousmode)) + RtlIsSandboxedToken(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), previousmode) } #[inline] pub unsafe fn RtlIsValidOemCharacter(char: windows_core::PWSTR) -> bool { @@ -3054,18 +2949,18 @@ pub unsafe fn RtlIsValidOemCharacter(char: windows_core::PWSTR) -> bool { #[inline] pub unsafe fn RtlLengthRequiredSid(subauthoritycount: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlLengthRequiredSid(subauthoritycount : u32) -> u32); - RtlLengthRequiredSid(core::mem::transmute(subauthoritycount)) + RtlLengthRequiredSid(subauthoritycount) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlLengthSid(sid: super::super::super::Win32::Security::PSID) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlLengthSid(sid : super::super::super::Win32::Security:: PSID) -> u32); - RtlLengthSid(core::mem::transmute(sid)) + RtlLengthSid(sid) } #[inline] pub unsafe fn RtlMultiByteToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, multibytestring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlMultiByteToUnicodeN(unicodestring : windows_core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, multibytestring : windows_core::PCSTR, bytesinmultibytestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlMultiByteToUnicodeN(core::mem::transmute(unicodestring), core::mem::transmute(maxbytesinunicodestring), core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap()) + RtlMultiByteToUnicodeN(core::mem::transmute(unicodestring), maxbytesinunicodestring, core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap()) } #[inline] pub unsafe fn RtlMultiByteToUnicodeSize(bytesinunicodestring: *mut u32, multibytestring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3076,7 +2971,7 @@ pub unsafe fn RtlMultiByteToUnicodeSize(bytesinunicodestring: *mut u32, multibyt #[inline] pub unsafe fn RtlNextUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, restart: bool) -> *mut UNICODE_PREFIX_TABLE_ENTRY { windows_targets::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : bool) -> *mut UNICODE_PREFIX_TABLE_ENTRY); - RtlNextUnicodePrefix(core::mem::transmute(prefixtable), core::mem::transmute(restart)) + RtlNextUnicodePrefix(prefixtable, restart) } #[inline] pub unsafe fn RtlNormalizeString(normform: u32, sourcestring: P1, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3084,45 +2979,45 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeString(normform : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, destinationstring : windows_core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlNormalizeString(core::mem::transmute(normform), sourcestring.param().abi(), core::mem::transmute(sourcestringlength), core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) + RtlNormalizeString(normform, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), core::mem::transmute(destinationstringlength)) } #[inline] pub unsafe fn RtlNtStatusToDosErrorNoTeb(status: super::super::super::Win32::Foundation::NTSTATUS) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNtStatusToDosErrorNoTeb(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32); - RtlNtStatusToDosErrorNoTeb(core::mem::transmute(status)) + RtlNtStatusToDosErrorNoTeb(status) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlOemStringToCountedUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlOemStringToCountedUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemStringToCountedUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlOemStringToCountedUnicodeString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlOemStringToUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlOemStringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlOemStringToUnicodeString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlOemToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, oemstring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlOemToUnicodeN(unicodestring : windows_core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, oemstring : windows_core::PCSTR, bytesinoemstring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemToUnicodeN(core::mem::transmute(unicodestring), core::mem::transmute(maxbytesinunicodestring), core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(oemstring.as_ptr()), oemstring.len().try_into().unwrap()) + RtlOemToUnicodeN(core::mem::transmute(unicodestring), maxbytesinunicodestring, core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(oemstring.as_ptr()), oemstring.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlPrefixString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlPrefixString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool); - RtlPrefixString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlPrefixString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlQueryPackageIdentity(tokenobject: *const core::ffi::c_void, packagefullname: windows_core::PWSTR, packagesize: *mut usize, appid: Option, appidsize: Option<*mut usize>, packaged: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentity(tokenobject : *const core::ffi::c_void, packagefullname : windows_core::PWSTR, packagesize : *mut usize, appid : windows_core::PWSTR, appidsize : *mut usize, packaged : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlQueryPackageIdentity(core::mem::transmute(tokenobject), core::mem::transmute(packagefullname), core::mem::transmute(packagesize), core::mem::transmute(appid.unwrap_or(core::mem::zeroed())), core::mem::transmute(appidsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(packaged.unwrap_or(core::mem::zeroed()))) + RtlQueryPackageIdentity(tokenobject, core::mem::transmute(packagefullname), core::mem::transmute(packagesize), core::mem::transmute(appid.unwrap_or(core::mem::zeroed())), core::mem::transmute(appidsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(packaged.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlQueryPackageIdentityEx(tokenobject: *const core::ffi::c_void, packagefullname: windows_core::PWSTR, packagesize: *mut usize, appid: Option, appidsize: Option<*mut usize>, dynamicid: Option<*mut windows_core::GUID>, flags: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentityEx(tokenobject : *const core::ffi::c_void, packagefullname : windows_core::PWSTR, packagesize : *mut usize, appid : windows_core::PWSTR, appidsize : *mut usize, dynamicid : *mut windows_core::GUID, flags : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlQueryPackageIdentityEx(core::mem::transmute(tokenobject), core::mem::transmute(packagefullname), core::mem::transmute(packagesize), core::mem::transmute(appid.unwrap_or(core::mem::zeroed())), core::mem::transmute(appidsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(dynamicid.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + RtlQueryPackageIdentityEx(tokenobject, core::mem::transmute(packagefullname), core::mem::transmute(packagesize), core::mem::transmute(appid.unwrap_or(core::mem::zeroed())), core::mem::transmute(appidsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(dynamicid.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlQueryProcessPlaceholderCompatibilityMode() -> i8 { @@ -3148,31 +3043,31 @@ pub unsafe fn RtlRandomEx(seed: *mut u32) -> u32 { #[inline] pub unsafe fn RtlRemoveUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, prefixtableentry: *const UNICODE_PREFIX_TABLE_ENTRY) { windows_targets::link!("ntoskrnl.exe" "system" fn RtlRemoveUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefixtableentry : *const UNICODE_PREFIX_TABLE_ENTRY)); - RtlRemoveUnicodePrefix(core::mem::transmute(prefixtable), core::mem::transmute(prefixtableentry)) + RtlRemoveUnicodePrefix(prefixtable, prefixtableentry) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlReplaceSidInSd(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, oldsid: super::super::super::Win32::Security::PSID, newsid: super::super::super::Win32::Security::PSID, numchanges: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlReplaceSidInSd(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, oldsid : super::super::super::Win32::Security:: PSID, newsid : super::super::super::Win32::Security:: PSID, numchanges : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlReplaceSidInSd(core::mem::transmute(securitydescriptor), core::mem::transmute(oldsid), core::mem::transmute(newsid), core::mem::transmute(numchanges)) + RtlReplaceSidInSd(core::mem::transmute(securitydescriptor), oldsid, newsid, core::mem::transmute(numchanges)) } #[inline] pub unsafe fn RtlReserveChunk(compressionformat: u16, compressedbuffer: *mut *mut u8, endofcompressedbufferplus1: *const u8, chunkbuffer: *mut *mut u8, chunksize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlReserveChunk(compressionformat : u16, compressedbuffer : *mut *mut u8, endofcompressedbufferplus1 : *const u8, chunkbuffer : *mut *mut u8, chunksize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlReserveChunk(core::mem::transmute(compressionformat), core::mem::transmute(compressedbuffer), core::mem::transmute(endofcompressedbufferplus1), core::mem::transmute(chunkbuffer), core::mem::transmute(chunksize)) + RtlReserveChunk(compressionformat, core::mem::transmute(compressedbuffer), endofcompressedbufferplus1, core::mem::transmute(chunkbuffer), chunksize) } #[inline] pub unsafe fn RtlSecondsSince1970ToTime(elapsedseconds: u32) -> i64 { windows_targets::link!("ntdll.dll" "system" fn RtlSecondsSince1970ToTime(elapsedseconds : u32, time : *mut i64)); let mut result__ = core::mem::zeroed(); - RtlSecondsSince1970ToTime(core::mem::transmute(elapsedseconds), &mut result__); + RtlSecondsSince1970ToTime(elapsedseconds, &mut result__); result__ } #[inline] pub unsafe fn RtlSecondsSince1980ToTime(elapsedseconds: u32) -> i64 { windows_targets::link!("ntdll.dll" "system" fn RtlSecondsSince1980ToTime(elapsedseconds : u32, time : *mut i64)); let mut result__ = core::mem::zeroed(); - RtlSecondsSince1980ToTime(core::mem::transmute(elapsedseconds), &mut result__); + RtlSecondsSince1980ToTime(elapsedseconds, &mut result__); result__ } #[cfg(feature = "Win32_Security")] @@ -3180,7 +3075,7 @@ pub unsafe fn RtlSecondsSince1980ToTime(elapsedseconds: u32) -> i64 { pub unsafe fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, absolutesecuritydescriptor: Option, absolutesecuritydescriptorsize: *mut u32, dacl: Option<*mut super::super::super::Win32::Security::ACL>, daclsize: *mut u32, sacl: Option<*mut super::super::super::Win32::Security::ACL>, saclsize: *mut u32, owner: Option, ownersize: *mut u32, primarygroup: Option, primarygroupsize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, absolutesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, absolutesecuritydescriptorsize : *mut u32, dacl : *mut super::super::super::Win32::Security:: ACL, daclsize : *mut u32, sacl : *mut super::super::super::Win32::Security:: ACL, saclsize : *mut u32, owner : super::super::super::Win32::Security:: PSID, ownersize : *mut u32, primarygroup : super::super::super::Win32::Security:: PSID, primarygroupsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlSelfRelativeToAbsoluteSD( - core::mem::transmute(selfrelativesecuritydescriptor), + selfrelativesecuritydescriptor, core::mem::transmute(absolutesecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(absolutesecuritydescriptorsize), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), @@ -3197,46 +3092,46 @@ pub unsafe fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor: super: #[inline] pub unsafe fn RtlSetGroupSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, group: Option, groupdefaulted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Security:: PSID, groupdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetGroupSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(group.unwrap_or(core::mem::zeroed())), core::mem::transmute(groupdefaulted)) + RtlSetGroupSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(group.unwrap_or(core::mem::zeroed())), groupdefaulted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetOwnerSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, owner: Option, ownerdefaulted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Security:: PSID, ownerdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetOwnerSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ownerdefaulted)) + RtlSetOwnerSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), ownerdefaulted) } #[inline] pub unsafe fn RtlSetProcessPlaceholderCompatibilityMode(mode: i8) -> i8 { windows_targets::link!("ntdll.dll" "system" fn RtlSetProcessPlaceholderCompatibilityMode(mode : i8) -> i8); - RtlSetProcessPlaceholderCompatibilityMode(core::mem::transmute(mode)) + RtlSetProcessPlaceholderCompatibilityMode(mode) } #[inline] pub unsafe fn RtlSetThreadPlaceholderCompatibilityMode(mode: i8) -> i8 { windows_targets::link!("ntdll.dll" "system" fn RtlSetThreadPlaceholderCompatibilityMode(mode : i8) -> i8); - RtlSetThreadPlaceholderCompatibilityMode(core::mem::transmute(mode)) + RtlSetThreadPlaceholderCompatibilityMode(mode) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSubAuthorityCountSid(sid: super::super::super::Win32::Security::PSID) -> *mut u8 { windows_targets::link!("ntdll.dll" "system" fn RtlSubAuthorityCountSid(sid : super::super::super::Win32::Security:: PSID) -> *mut u8); - RtlSubAuthorityCountSid(core::mem::transmute(sid)) + RtlSubAuthorityCountSid(sid) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSubAuthoritySid(sid: super::super::super::Win32::Security::PSID, subauthority: u32) -> *mut u32 { windows_targets::link!("ntdll.dll" "system" fn RtlSubAuthoritySid(sid : super::super::super::Win32::Security:: PSID, subauthority : u32) -> *mut u32); - RtlSubAuthoritySid(core::mem::transmute(sid), core::mem::transmute(subauthority)) + RtlSubAuthoritySid(sid, subauthority) } #[inline] pub unsafe fn RtlTimeToSecondsSince1980(time: *const i64, elapsedseconds: *mut u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1980(time : *const i64, elapsedseconds : *mut u32) -> bool); - RtlTimeToSecondsSince1980(core::mem::transmute(time), core::mem::transmute(elapsedseconds)) + RtlTimeToSecondsSince1980(time, core::mem::transmute(elapsedseconds)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToCountedOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlUnicodeToCustomCPN(customcp: *const CPTABLEINFO, customcpstring: &mut [u8], bytesincustomcpstring: Option<*mut u32>, unicodestring: P4, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3244,29 +3139,29 @@ where P4: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToCustomCPN(customcp : *const CPTABLEINFO, customcpstring : windows_core::PSTR, maxbytesincustomcpstring : u32, bytesincustomcpstring : *mut u32, unicodestring : windows_core::PCWSTR, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeToCustomCPN(core::mem::transmute(customcp), core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(core::mem::zeroed())), unicodestring.param().abi(), core::mem::transmute(bytesinunicodestring)) + RtlUnicodeToCustomCPN(customcp, core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(core::mem::zeroed())), unicodestring.param().abi(), bytesinunicodestring) } #[inline] pub unsafe fn RtlUnicodeToMultiByteN(multibytestring: &mut [u8], bytesinmultibytestring: Option<*mut u32>, unicodestring: *const u16, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToMultiByteN(multibytestring : windows_core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(unicodestring), core::mem::transmute(bytesinunicodestring)) + RtlUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(core::mem::zeroed())), unicodestring, bytesinunicodestring) } #[inline] pub unsafe fn RtlUnicodeToOemN(oemstring: &mut [u8], bytesinoemstring: Option<*mut u32>, unicodestring: *const u16, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToOemN(oemstring : windows_core::PSTR, maxbytesinoemstring : u32, bytesinoemstring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeToOemN(core::mem::transmute(oemstring.as_ptr()), oemstring.len().try_into().unwrap(), core::mem::transmute(bytesinoemstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(unicodestring), core::mem::transmute(bytesinunicodestring)) + RtlUnicodeToOemN(core::mem::transmute(oemstring.as_ptr()), oemstring.len().try_into().unwrap(), core::mem::transmute(bytesinoemstring.unwrap_or(core::mem::zeroed())), unicodestring, bytesinunicodestring) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUpcaseUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUpcaseUnicodeStringToOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUpcaseUnicodeStringToOemString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlUpcaseUnicodeToCustomCPN(customcp: *const CPTABLEINFO, customcpstring: &mut [u8], bytesincustomcpstring: Option<*mut u32>, unicodestring: P4, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3274,150 +3169,150 @@ where P4: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToCustomCPN(customcp : *const CPTABLEINFO, customcpstring : windows_core::PSTR, maxbytesincustomcpstring : u32, bytesincustomcpstring : *mut u32, unicodestring : windows_core::PCWSTR, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeToCustomCPN(core::mem::transmute(customcp), core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(core::mem::zeroed())), unicodestring.param().abi(), core::mem::transmute(bytesinunicodestring)) + RtlUpcaseUnicodeToCustomCPN(customcp, core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(core::mem::zeroed())), unicodestring.param().abi(), bytesinunicodestring) } #[inline] pub unsafe fn RtlUpcaseUnicodeToMultiByteN(multibytestring: &mut [u8], bytesinmultibytestring: Option<*mut u32>, unicodestring: *const u16, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToMultiByteN(multibytestring : windows_core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(unicodestring), core::mem::transmute(bytesinunicodestring)) + RtlUpcaseUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(core::mem::zeroed())), unicodestring, bytesinunicodestring) } #[inline] pub unsafe fn RtlUpcaseUnicodeToOemN(oemstring: &mut [u8], bytesinoemstring: Option<*mut u32>, unicodestring: *const u16, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToOemN(oemstring : windows_core::PSTR, maxbytesinoemstring : u32, bytesinoemstring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeToOemN(core::mem::transmute(oemstring.as_ptr()), oemstring.len().try_into().unwrap(), core::mem::transmute(bytesinoemstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(unicodestring), core::mem::transmute(bytesinunicodestring)) + RtlUpcaseUnicodeToOemN(core::mem::transmute(oemstring.as_ptr()), oemstring.len().try_into().unwrap(), core::mem::transmute(bytesinoemstring.unwrap_or(core::mem::zeroed())), unicodestring, bytesinunicodestring) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlValidSid(sid: super::super::super::Win32::Security::PSID) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Security:: PSID) -> bool); - RtlValidSid(core::mem::transmute(sid)) + RtlValidSid(sid) } #[inline] pub unsafe fn RtlValidateUnicodeString(flags: Option, string: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlValidateUnicodeString(flags : u32, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlValidateUnicodeString(core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(string)) + RtlValidateUnicodeString(core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), string) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlxOemStringToUnicodeSize(oemstring: *const super::super::super::Win32::System::Kernel::STRING) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlxOemStringToUnicodeSize(oemstring : *const super::super::super::Win32::System::Kernel:: STRING) -> u32); - RtlxOemStringToUnicodeSize(core::mem::transmute(oemstring)) + RtlxOemStringToUnicodeSize(oemstring) } #[inline] pub unsafe fn RtlxUnicodeStringToOemSize(unicodestring: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlxUnicodeStringToOemSize(unicodestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> u32); - RtlxUnicodeStringToOemSize(core::mem::transmute(unicodestring)) + RtlxUnicodeStringToOemSize(unicodestring) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAccessCheckFromState(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, primarytokeninformation: *const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION, clienttokeninformation: Option<*const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION>, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromState(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, clienttokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); - SeAccessCheckFromState(core::mem::transmute(securitydescriptor), core::mem::transmute(primarytokeninformation), core::mem::transmute(clienttokeninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) + SeAccessCheckFromState(securitydescriptor, primarytokeninformation, core::mem::transmute(clienttokeninformation.unwrap_or(core::mem::zeroed())), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), genericmapping, accessmode, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAccessCheckFromStateEx(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, primarytoken: *const core::ffi::c_void, clienttoken: Option<*const core::ffi::c_void>, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromStateEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytoken : *const core::ffi::c_void, clienttoken : *const core::ffi::c_void, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); - SeAccessCheckFromStateEx(core::mem::transmute(securitydescriptor), core::mem::transmute(primarytoken), core::mem::transmute(clienttoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) + SeAccessCheckFromStateEx(securitydescriptor, primarytoken, core::mem::transmute(clienttoken.unwrap_or(core::mem::zeroed())), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), genericmapping, accessmode, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAdjustAccessStateForAccessConstraints(objecttype: *const core::ffi::c_void, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *mut super::super::Foundation::ACCESS_STATE) { windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustAccessStateForAccessConstraints(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *mut super::super::Foundation:: ACCESS_STATE)); - SeAdjustAccessStateForAccessConstraints(core::mem::transmute(objecttype), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate)) + SeAdjustAccessStateForAccessConstraints(objecttype, securitydescriptor, core::mem::transmute(accessstate)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAdjustAccessStateForTrustLabel(objecttype: *const core::ffi::c_void, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *mut super::super::Foundation::ACCESS_STATE) { windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustAccessStateForTrustLabel(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *mut super::super::Foundation:: ACCESS_STATE)); - SeAdjustAccessStateForTrustLabel(core::mem::transmute(objecttype), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate)) + SeAdjustAccessStateForTrustLabel(objecttype, securitydescriptor, core::mem::transmute(accessstate)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAdjustObjectSecurity(objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, originaldescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, proposeddescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, adjusteddescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, applyadjusteddescriptor: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustObjectSecurity(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, originaldescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, proposeddescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, adjusteddescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, applyadjusteddescriptor : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAdjustObjectSecurity(core::mem::transmute(objectname), core::mem::transmute(originaldescriptor), core::mem::transmute(proposeddescriptor), core::mem::transmute(subjectsecuritycontext), core::mem::transmute(adjusteddescriptor), core::mem::transmute(applyadjusteddescriptor)) + SeAdjustObjectSecurity(objectname, originaldescriptor, proposeddescriptor, subjectsecuritycontext, core::mem::transmute(adjusteddescriptor), core::mem::transmute(applyadjusteddescriptor)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAppendPrivileges(accessstate: *mut super::super::Foundation::ACCESS_STATE, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeAppendPrivileges(accessstate : *mut super::super::Foundation:: ACCESS_STATE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAppendPrivileges(core::mem::transmute(accessstate), core::mem::transmute(privileges)) + SeAppendPrivileges(core::mem::transmute(accessstate), privileges) } #[inline] pub unsafe fn SeAuditFipsCryptoSelftests(bsuccess: bool, selftestcode: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : bool, selftestcode : u32)); - SeAuditFipsCryptoSelftests(core::mem::transmute(bsuccess), core::mem::transmute(selftestcode)) + SeAuditFipsCryptoSelftests(bsuccess, selftestcode) } #[inline] pub unsafe fn SeAuditHardLinkCreation(filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, linkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, bsuccess: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreation(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool)); - SeAuditHardLinkCreation(core::mem::transmute(filename), core::mem::transmute(linkname), core::mem::transmute(bsuccess)) + SeAuditHardLinkCreation(filename, linkname, bsuccess) } #[inline] pub unsafe fn SeAuditHardLinkCreationWithTransaction(filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, linkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, bsuccess: bool, transactionid: Option<*const windows_core::GUID>) { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreationWithTransaction(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool, transactionid : *const windows_core::GUID)); - SeAuditHardLinkCreationWithTransaction(core::mem::transmute(filename), core::mem::transmute(linkname), core::mem::transmute(bsuccess), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed()))) + SeAuditHardLinkCreationWithTransaction(filename, linkname, bsuccess, core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SeAuditTransactionStateChange(transactionid: *const windows_core::GUID, resourcemanagerid: *const windows_core::GUID, newtransactionstate: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditTransactionStateChange(transactionid : *const windows_core::GUID, resourcemanagerid : *const windows_core::GUID, newtransactionstate : u32)); - SeAuditTransactionStateChange(core::mem::transmute(transactionid), core::mem::transmute(resourcemanagerid), core::mem::transmute(newtransactionstate)) + SeAuditTransactionStateChange(transactionid, resourcemanagerid, newtransactionstate) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingAnyFileEventsWithContext(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); - SeAuditingAnyFileEventsWithContext(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) + SeAuditingAnyFileEventsWithContext(securitydescriptor, core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut bool>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool); - SeAuditingAnyFileEventsWithContextEx(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) + SeAuditingAnyFileEventsWithContextEx(securitydescriptor, core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAuditingFileEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); - SeAuditingFileEvents(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor)) + SeAuditingFileEvents(accessgranted, securitydescriptor) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingFileEventsWithContext(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); - SeAuditingFileEventsWithContext(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) + SeAuditingFileEventsWithContext(accessgranted, securitydescriptor, core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingFileEventsWithContextEx(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut bool>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool); - SeAuditingFileEventsWithContextEx(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) + SeAuditingFileEventsWithContextEx(accessgranted, securitydescriptor, core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingFileOrGlobalEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); - SeAuditingFileOrGlobalEvents(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext)) + SeAuditingFileOrGlobalEvents(accessgranted, securitydescriptor, subjectsecuritycontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAuditingHardLinkEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); - SeAuditingHardLinkEvents(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor)) + SeAuditingHardLinkEvents(accessgranted, securitydescriptor) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingHardLinkEventsWithContext(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); - SeAuditingHardLinkEventsWithContext(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) + SeAuditingHardLinkEventsWithContext(accessgranted, securitydescriptor, core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCaptureSubjectContextEx(thread: Option, process: super::super::Foundation::PEPROCESS) -> super::super::Foundation::SECURITY_SUBJECT_CONTEXT { windows_targets::link!("ntoskrnl.exe" "system" fn SeCaptureSubjectContextEx(thread : super::super::Foundation:: PETHREAD, process : super::super::Foundation:: PEPROCESS, subjectcontext : *mut super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); let mut result__ = core::mem::zeroed(); - SeCaptureSubjectContextEx(core::mem::transmute(thread.unwrap_or(core::mem::zeroed())), core::mem::transmute(process), &mut result__); + SeCaptureSubjectContextEx(core::mem::transmute(thread.unwrap_or(core::mem::zeroed())), process, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -3425,20 +3320,20 @@ pub unsafe fn SeCaptureSubjectContextEx(thread: Option bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeCheckForCriticalAceRemoval(currentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, aceremoved : *mut bool)); let mut result__ = core::mem::zeroed(); - SeCheckForCriticalAceRemoval(core::mem::transmute(currentdescriptor), core::mem::transmute(newdescriptor), core::mem::transmute(subjectsecuritycontext), &mut result__); + SeCheckForCriticalAceRemoval(currentdescriptor, newdescriptor, subjectsecuritycontext, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCreateClientSecurity(clientthread: super::super::Foundation::PETHREAD, clientsecurityqos: *const super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, remotesession: bool, clientcontext: *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurity(clientthread : super::super::Foundation:: PETHREAD, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, remotesession : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeCreateClientSecurity(core::mem::transmute(clientthread), core::mem::transmute(clientsecurityqos), core::mem::transmute(remotesession), core::mem::transmute(clientcontext)) + SeCreateClientSecurity(clientthread, clientsecurityqos, remotesession, core::mem::transmute(clientcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCreateClientSecurityFromSubjectContext(subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, clientsecurityqos: *const super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, serverisremote: bool, clientcontext: *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurityFromSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, serverisremote : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeCreateClientSecurityFromSubjectContext(core::mem::transmute(subjectcontext), core::mem::transmute(clientsecurityqos), core::mem::transmute(serverisremote), core::mem::transmute(clientcontext)) + SeCreateClientSecurityFromSubjectContext(subjectcontext, clientsecurityqos, serverisremote, core::mem::transmute(clientcontext)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3449,66 +3344,66 @@ pub unsafe fn SeDeleteClientSecurity(clientcontext: *mut SECURITY_CLIENT_CONTEXT #[inline] pub unsafe fn SeDeleteObjectAuditAlarm(object: *const core::ffi::c_void, handle: super::super::super::Win32::Foundation::HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarm(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE)); - SeDeleteObjectAuditAlarm(core::mem::transmute(object), core::mem::transmute(handle)) + SeDeleteObjectAuditAlarm(object, handle) } #[inline] pub unsafe fn SeDeleteObjectAuditAlarmWithTransaction(object: *const core::ffi::c_void, handle: super::super::super::Win32::Foundation::HANDLE, transactionid: Option<*const windows_core::GUID>) { windows_targets::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarmWithTransaction(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE, transactionid : *const windows_core::GUID)); - SeDeleteObjectAuditAlarmWithTransaction(core::mem::transmute(object), core::mem::transmute(handle), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed()))) + SeDeleteObjectAuditAlarmWithTransaction(object, handle, core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeExamineSacl(sacl: *const super::super::super::Win32::Security::ACL, resourcesacl: *const super::super::super::Win32::Security::ACL, token: *const core::ffi::c_void, desiredaccess: u32, accessgranted: bool, generateaudit: *mut bool, generatealarm: *mut bool) { windows_targets::link!("ntoskrnl.exe" "system" fn SeExamineSacl(sacl : *const super::super::super::Win32::Security:: ACL, resourcesacl : *const super::super::super::Win32::Security:: ACL, token : *const core::ffi::c_void, desiredaccess : u32, accessgranted : bool, generateaudit : *mut bool, generatealarm : *mut bool)); - SeExamineSacl(core::mem::transmute(sacl), core::mem::transmute(resourcesacl), core::mem::transmute(token), core::mem::transmute(desiredaccess), core::mem::transmute(accessgranted), core::mem::transmute(generateaudit), core::mem::transmute(generatealarm)) + SeExamineSacl(sacl, resourcesacl, token, desiredaccess, accessgranted, core::mem::transmute(generateaudit), core::mem::transmute(generatealarm)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeFilterToken(existingtoken: *const core::ffi::c_void, flags: u32, sidstodisable: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, privilegestodelete: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, restrictedsids: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, filteredtoken: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeFilterToken(existingtoken : *const core::ffi::c_void, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, filteredtoken : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeFilterToken(core::mem::transmute(existingtoken), core::mem::transmute(flags), core::mem::transmute(sidstodisable.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegestodelete.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(filteredtoken)) + SeFilterToken(existingtoken, flags, core::mem::transmute(sidstodisable.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegestodelete.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(filteredtoken)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeFreePrivileges(privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET) { windows_targets::link!("ntoskrnl.exe" "system" fn SeFreePrivileges(privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET)); - SeFreePrivileges(core::mem::transmute(privileges)) + SeFreePrivileges(privileges) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeImpersonateClient(clientcontext: *const SECURITY_CLIENT_CONTEXT, serverthread: Option) { windows_targets::link!("ntoskrnl.exe" "system" fn SeImpersonateClient(clientcontext : *const SECURITY_CLIENT_CONTEXT, serverthread : super::super::Foundation:: PETHREAD)); - SeImpersonateClient(core::mem::transmute(clientcontext), core::mem::transmute(serverthread.unwrap_or(core::mem::zeroed()))) + SeImpersonateClient(clientcontext, core::mem::transmute(serverthread.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeImpersonateClientEx(clientcontext: *const SECURITY_CLIENT_CONTEXT, serverthread: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeImpersonateClientEx(clientcontext : *const SECURITY_CLIENT_CONTEXT, serverthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeImpersonateClientEx(core::mem::transmute(clientcontext), core::mem::transmute(serverthread.unwrap_or(core::mem::zeroed()))) + SeImpersonateClientEx(clientcontext, core::mem::transmute(serverthread.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn SeLocateProcessImageName(process: super::super::Foundation::PEPROCESS, pimagefilename: *mut *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeLocateProcessImageName(process : super::super::Foundation:: PEPROCESS, pimagefilename : *mut *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeLocateProcessImageName(core::mem::transmute(process), core::mem::transmute(pimagefilename)) + SeLocateProcessImageName(process, core::mem::transmute(pimagefilename)) } #[inline] pub unsafe fn SeMarkLogonSessionForTerminationNotification(logonid: *const super::super::super::Win32::Foundation::LUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeMarkLogonSessionForTerminationNotification(logonid : *const super::super::super::Win32::Foundation:: LUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeMarkLogonSessionForTerminationNotification(core::mem::transmute(logonid)) + SeMarkLogonSessionForTerminationNotification(logonid) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn SeMarkLogonSessionForTerminationNotificationEx(logonid: *const super::super::super::Win32::Foundation::LUID, pserversilo: super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeMarkLogonSessionForTerminationNotificationEx(logonid : *const super::super::super::Win32::Foundation:: LUID, pserversilo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeMarkLogonSessionForTerminationNotificationEx(core::mem::transmute(logonid), core::mem::transmute(pserversilo)) + SeMarkLogonSessionForTerminationNotificationEx(logonid, pserversilo) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn SeOpenObjectAuditAlarm(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectAuditAlarm(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), &mut result__); + SeOpenObjectAuditAlarm(objecttypename, core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), securitydescriptor, accessstate, objectcreated, accessgranted, accessmode, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] @@ -3516,7 +3411,7 @@ pub unsafe fn SeOpenObjectAuditAlarm(objecttypename: *const super::super::super: pub unsafe fn SeOpenObjectAuditAlarmWithTransaction(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectAuditAlarmWithTransaction(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); + SeOpenObjectAuditAlarmWithTransaction(objecttypename, core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), securitydescriptor, accessstate, objectcreated, accessgranted, accessmode, core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] @@ -3524,7 +3419,7 @@ pub unsafe fn SeOpenObjectAuditAlarmWithTransaction(objecttypename: *const super pub unsafe fn SeOpenObjectForDeleteAuditAlarm(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectForDeleteAuditAlarm(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), &mut result__); + SeOpenObjectForDeleteAuditAlarm(objecttypename, core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), securitydescriptor, accessstate, objectcreated, accessgranted, accessmode, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] @@ -3532,180 +3427,168 @@ pub unsafe fn SeOpenObjectForDeleteAuditAlarm(objecttypename: *const super::supe pub unsafe fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectForDeleteAuditAlarmWithTransaction(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); + SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename, core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), securitydescriptor, accessstate, objectcreated, accessgranted, accessmode, core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SePrivilegeCheck(requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, accessmode: i8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SePrivilegeCheck(requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, accessmode : i8) -> bool); - SePrivilegeCheck(core::mem::transmute(requiredprivileges), core::mem::transmute(subjectsecuritycontext), core::mem::transmute(accessmode)) + SePrivilegeCheck(core::mem::transmute(requiredprivileges), subjectsecuritycontext, accessmode) } #[inline] pub unsafe fn SeQueryAuthenticationIdToken(token: *const core::ffi::c_void, authenticationid: *mut super::super::super::Win32::Foundation::LUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeQueryAuthenticationIdToken(token : *const core::ffi::c_void, authenticationid : *mut super::super::super::Win32::Foundation:: LUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeQueryAuthenticationIdToken(core::mem::transmute(token), core::mem::transmute(authenticationid)) + SeQueryAuthenticationIdToken(token, core::mem::transmute(authenticationid)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeQueryInformationToken(token: *const core::ffi::c_void, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeQueryInformationToken(token : *const core::ffi::c_void, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeQueryInformationToken(core::mem::transmute(token), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation)) + SeQueryInformationToken(token, tokeninformationclass, core::mem::transmute(tokeninformation)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeQuerySecurityDescriptorInfo(securityinformation: *const u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, length: *mut u32, objectssecuritydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySecurityDescriptorInfo(securityinformation : *const u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : *mut u32, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeQuerySecurityDescriptorInfo(core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor), core::mem::transmute(length), core::mem::transmute(objectssecuritydescriptor)) + SeQuerySecurityDescriptorInfo(securityinformation, core::mem::transmute(securitydescriptor), core::mem::transmute(length), core::mem::transmute(objectssecuritydescriptor)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn SeQueryServerSiloToken(token: *const core::ffi::c_void, pserversilo: *mut super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeQueryServerSiloToken(token : *const core::ffi::c_void, pserversilo : *mut super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeQueryServerSiloToken(core::mem::transmute(token), core::mem::transmute(pserversilo)) + SeQueryServerSiloToken(token, core::mem::transmute(pserversilo)) } #[inline] pub unsafe fn SeQuerySessionIdToken(token: *const core::ffi::c_void, sessionid: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdToken(token : *const core::ffi::c_void, sessionid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeQuerySessionIdToken(core::mem::transmute(token), core::mem::transmute(sessionid)) + SeQuerySessionIdToken(token, core::mem::transmute(sessionid)) } #[inline] pub unsafe fn SeQuerySessionIdTokenEx(token: *const core::ffi::c_void, sessionid: *mut u32, isservicesession: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdTokenEx(token : *const core::ffi::c_void, sessionid : *mut u32, isservicesession : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeQuerySessionIdTokenEx(core::mem::transmute(token), core::mem::transmute(sessionid), core::mem::transmute(isservicesession)) + SeQuerySessionIdTokenEx(token, core::mem::transmute(sessionid), core::mem::transmute(isservicesession)) } #[inline] pub unsafe fn SeRegisterLogonSessionTerminatedRoutine(callbackroutine: PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeRegisterLogonSessionTerminatedRoutine(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeRegisterLogonSessionTerminatedRoutine(core::mem::transmute(callbackroutine)) + SeRegisterLogonSessionTerminatedRoutine(callbackroutine) } #[inline] pub unsafe fn SeRegisterLogonSessionTerminatedRoutineEx(callbackroutine: PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeRegisterLogonSessionTerminatedRoutineEx(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeRegisterLogonSessionTerminatedRoutineEx(core::mem::transmute(callbackroutine), core::mem::transmute(context)) + SeRegisterLogonSessionTerminatedRoutineEx(callbackroutine, context) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn SeReportSecurityEventWithSubCategory(flags: u32, sourcename: *const super::super::super::Win32::Foundation::UNICODE_STRING, usersid: Option, auditparameters: *const super::super::super::Win32::Security::Authentication::Identity::SE_ADT_PARAMETER_ARRAY, auditsubcategoryid: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeReportSecurityEventWithSubCategory(flags : u32, sourcename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, usersid : super::super::super::Win32::Security:: PSID, auditparameters : *const super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY, auditsubcategoryid : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeReportSecurityEventWithSubCategory(core::mem::transmute(flags), core::mem::transmute(sourcename), core::mem::transmute(usersid.unwrap_or(core::mem::zeroed())), core::mem::transmute(auditparameters), core::mem::transmute(auditsubcategoryid)) + SeReportSecurityEventWithSubCategory(flags, sourcename, core::mem::transmute(usersid.unwrap_or(core::mem::zeroed())), auditparameters, auditsubcategoryid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn SeSetAccessStateGenericMapping(accessstate: *mut super::super::Foundation::ACCESS_STATE, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING) { windows_targets::link!("ntoskrnl.exe" "system" fn SeSetAccessStateGenericMapping(accessstate : *mut super::super::Foundation:: ACCESS_STATE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING)); - SeSetAccessStateGenericMapping(core::mem::transmute(accessstate), core::mem::transmute(genericmapping)) + SeSetAccessStateGenericMapping(core::mem::transmute(accessstate), genericmapping) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeSetSecurityDescriptorInfo(object: Option<*const core::ffi::c_void>, securityinformation: *const u32, modificationdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, pooltype: super::super::Foundation::POOL_TYPE, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeSetSecurityDescriptorInfo(object : *const core::ffi::c_void, securityinformation : *const u32, modificationdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, pooltype : super::super::Foundation:: POOL_TYPE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeSetSecurityDescriptorInfo(core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinformation), core::mem::transmute(modificationdescriptor), core::mem::transmute(objectssecuritydescriptor), core::mem::transmute(pooltype), core::mem::transmute(genericmapping)) + SeSetSecurityDescriptorInfo(core::mem::transmute(object.unwrap_or(core::mem::zeroed())), securityinformation, modificationdescriptor, core::mem::transmute(objectssecuritydescriptor), pooltype, genericmapping) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeSetSecurityDescriptorInfoEx(object: Option<*const core::ffi::c_void>, securityinformation: *const u32, modificationdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, autoinheritflags: u32, pooltype: super::super::Foundation::POOL_TYPE, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeSetSecurityDescriptorInfoEx(object : *const core::ffi::c_void, securityinformation : *const u32, modificationdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, autoinheritflags : u32, pooltype : super::super::Foundation:: POOL_TYPE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeSetSecurityDescriptorInfoEx(core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinformation), core::mem::transmute(modificationdescriptor), core::mem::transmute(objectssecuritydescriptor), core::mem::transmute(autoinheritflags), core::mem::transmute(pooltype), core::mem::transmute(genericmapping)) + SeSetSecurityDescriptorInfoEx(core::mem::transmute(object.unwrap_or(core::mem::zeroed())), securityinformation, modificationdescriptor, core::mem::transmute(objectssecuritydescriptor), autoinheritflags, pooltype, genericmapping) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] pub unsafe fn SeShouldCheckForAccessRightsFromParent(objecttype: *const core::ffi::c_void, childdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeShouldCheckForAccessRightsFromParent(objecttype : *const core::ffi::c_void, childdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE) -> bool); - SeShouldCheckForAccessRightsFromParent(core::mem::transmute(objecttype), core::mem::transmute(childdescriptor), core::mem::transmute(accessstate)) + SeShouldCheckForAccessRightsFromParent(objecttype, childdescriptor, accessstate) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeTokenFromAccessInformation(accessinformation: Option<*const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION>, token: Option<*mut core::ffi::c_void>, length: u32, requiredlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenFromAccessInformation(accessinformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, token : *mut core::ffi::c_void, length : u32, requiredlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeTokenFromAccessInformation(core::mem::transmute(accessinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(requiredlength)) + SeTokenFromAccessInformation(core::mem::transmute(accessinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(requiredlength)) } #[inline] pub unsafe fn SeTokenIsAdmin(token: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsAdmin(token : *const core::ffi::c_void) -> bool); - SeTokenIsAdmin(core::mem::transmute(token)) + SeTokenIsAdmin(token) } #[inline] pub unsafe fn SeTokenIsRestricted(token: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsRestricted(token : *const core::ffi::c_void) -> bool); - SeTokenIsRestricted(core::mem::transmute(token)) + SeTokenIsRestricted(token) } #[inline] pub unsafe fn SeTokenIsWriteRestricted(token: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsWriteRestricted(token : *const core::ffi::c_void) -> bool); - SeTokenIsWriteRestricted(core::mem::transmute(token)) + SeTokenIsWriteRestricted(token) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeTokenType(token: *const core::ffi::c_void) -> super::super::super::Win32::Security::TOKEN_TYPE { windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenType(token : *const core::ffi::c_void) -> super::super::super::Win32::Security:: TOKEN_TYPE); - SeTokenType(core::mem::transmute(token)) + SeTokenType(token) } #[inline] pub unsafe fn SeUnregisterLogonSessionTerminatedRoutine(callbackroutine: PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeUnregisterLogonSessionTerminatedRoutine(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeUnregisterLogonSessionTerminatedRoutine(core::mem::transmute(callbackroutine)) + SeUnregisterLogonSessionTerminatedRoutine(callbackroutine) } #[inline] pub unsafe fn SeUnregisterLogonSessionTerminatedRoutineEx(callbackroutine: PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeUnregisterLogonSessionTerminatedRoutineEx(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeUnregisterLogonSessionTerminatedRoutineEx(core::mem::transmute(callbackroutine), core::mem::transmute(context)) + SeUnregisterLogonSessionTerminatedRoutineEx(callbackroutine, context) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SecLookupAccountName(name: *const super::super::super::Win32::Foundation::UNICODE_STRING, sidsize: *mut u32, sid: super::super::super::Win32::Security::PSID, nameuse: *mut super::super::super::Win32::Security::SID_NAME_USE, domainsize: *mut u32, referenceddomain: Option<*mut super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn SecLookupAccountName(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, sidsize : *mut u32, sid : super::super::super::Win32::Security:: PSID, nameuse : *mut super::super::super::Win32::Security:: SID_NAME_USE, domainsize : *mut u32, referenceddomain : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecLookupAccountName(core::mem::transmute(name), core::mem::transmute(sidsize), core::mem::transmute(sid), core::mem::transmute(nameuse), core::mem::transmute(domainsize), core::mem::transmute(referenceddomain.unwrap_or(core::mem::zeroed()))) + SecLookupAccountName(name, core::mem::transmute(sidsize), core::mem::transmute(sid), core::mem::transmute(nameuse), core::mem::transmute(domainsize), core::mem::transmute(referenceddomain.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SecLookupAccountSid(sid: super::super::super::Win32::Security::PSID, namesize: *mut u32, namebuffer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, domainsize: *mut u32, domainbuffer: Option<*mut super::super::super::Win32::Foundation::UNICODE_STRING>, nameuse: *mut super::super::super::Win32::Security::SID_NAME_USE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn SecLookupAccountSid(sid : super::super::super::Win32::Security:: PSID, namesize : *mut u32, namebuffer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, domainsize : *mut u32, domainbuffer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, nameuse : *mut super::super::super::Win32::Security:: SID_NAME_USE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecLookupAccountSid(core::mem::transmute(sid), core::mem::transmute(namesize), core::mem::transmute(namebuffer), core::mem::transmute(domainsize), core::mem::transmute(domainbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nameuse)) + SecLookupAccountSid(sid, core::mem::transmute(namesize), core::mem::transmute(namebuffer), core::mem::transmute(domainsize), core::mem::transmute(domainbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nameuse)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SecLookupWellKnownSid(sidtype: super::super::super::Win32::Security::WELL_KNOWN_SID_TYPE, sid: super::super::super::Win32::Security::PSID, sidbuffersize: u32, sidsize: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn SecLookupWellKnownSid(sidtype : super::super::super::Win32::Security:: WELL_KNOWN_SID_TYPE, sid : super::super::super::Win32::Security:: PSID, sidbuffersize : u32, sidsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecLookupWellKnownSid(core::mem::transmute(sidtype), core::mem::transmute(sid), core::mem::transmute(sidbuffersize), core::mem::transmute(sidsize.unwrap_or(core::mem::zeroed()))) + SecLookupWellKnownSid(sidtype, core::mem::transmute(sid), sidbuffersize, core::mem::transmute(sidsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SecMakeSPN(serviceclass: *mut super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instanceport: u16, referrer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, spn: *mut super::super::super::Win32::Foundation::UNICODE_STRING, length: *mut u32, allocate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPN(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPN(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(spn), core::mem::transmute(length), core::mem::transmute(allocate)) + SecMakeSPN(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), instanceport, core::mem::transmute(referrer), core::mem::transmute(spn), core::mem::transmute(length), allocate) } #[inline] pub unsafe fn SecMakeSPNEx(serviceclass: *mut super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instanceport: u16, referrer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, targetinfo: *mut super::super::super::Win32::Foundation::UNICODE_STRING, spn: *mut super::super::super::Win32::Foundation::UNICODE_STRING, length: *mut u32, allocate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, targetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPNEx(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(targetinfo), core::mem::transmute(spn), core::mem::transmute(length), core::mem::transmute(allocate)) + SecMakeSPNEx(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), instanceport, core::mem::transmute(referrer), core::mem::transmute(targetinfo), core::mem::transmute(spn), core::mem::transmute(length), allocate) } #[inline] pub unsafe fn SecMakeSPNEx2(serviceclass: *mut super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instanceport: u16, referrer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, intargetinfo: *mut super::super::super::Win32::Foundation::UNICODE_STRING, spn: *mut super::super::super::Win32::Foundation::UNICODE_STRING, totalsize: *mut u32, allocate: bool, istargetinfomarshaled: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx2(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, intargetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, totalsize : *mut u32, allocate : bool, istargetinfomarshaled : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPNEx2(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(intargetinfo), core::mem::transmute(spn), core::mem::transmute(totalsize), core::mem::transmute(allocate), core::mem::transmute(istargetinfomarshaled)) + SecMakeSPNEx2(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), instanceport, core::mem::transmute(referrer), core::mem::transmute(intargetinfo), core::mem::transmute(spn), core::mem::transmute(totalsize), allocate, istargetinfomarshaled) } #[inline] pub unsafe fn SetContextAttributesW(phcontext: *const SecHandle, ulattribute: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SetContextAttributesW(phcontext : *const SecHandle, ulattribute : u32, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - SetContextAttributesW(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + SetContextAttributesW(phcontext, ulattribute, pbuffer, cbbuffer).ok() } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn SspiAcceptSecurityContextAsync(asynccontext: *mut super::super::Foundation::SspiAsyncContext, phcredential: Option<*const SecHandle>, phcontext: Option<*const SecHandle>, pinput: Option<*const SecBufferDesc>, fcontextreq: u32, targetdatarep: u32, phnewcontext: Option<*const SecHandle>, poutput: Option<*const SecBufferDesc>, pfcontextattr: *const u32, ptsexpiry: Option<*const i64>) -> windows_core::Result<()> { windows_targets::link!("ksecdd.sys" "system" fn SspiAcceptSecurityContextAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle, phcontext : *const SecHandle, pinput : *const SecBufferDesc, fcontextreq : u32, targetdatarep : u32, phnewcontext : *const SecHandle, poutput : *const SecBufferDesc, pfcontextattr : *const u32, ptsexpiry : *const i64) -> windows_core::HRESULT); - SspiAcceptSecurityContextAsync( - core::mem::transmute(asynccontext), - core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fcontextreq), - core::mem::transmute(targetdatarep), - core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfcontextattr), - core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), - ) - .ok() + SspiAcceptSecurityContextAsync(core::mem::transmute(asynccontext), core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), fcontextreq, targetdatarep, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security_Authentication_Identity"))] #[inline] @@ -3715,37 +3598,13 @@ where P2: windows_core::Param, { windows_targets::link!("ksecdd.sys" "system" fn SspiAcquireCredentialsHandleAsyncA(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, pszprincipal : windows_core::PCSTR, pszpackage : windows_core::PCSTR, fcredentialuse : u32, pvlogonid : *const core::ffi::c_void, pauthdata : *const core::ffi::c_void, pgetkeyfn : super::super::super::Win32::Security::Authentication::Identity:: SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, phcredential : *const SecHandle, ptsexpiry : *const i64) -> windows_core::HRESULT); - SspiAcquireCredentialsHandleAsyncA( - core::mem::transmute(asynccontext), - pszprincipal.param().abi(), - pszpackage.param().abi(), - core::mem::transmute(fcredentialuse), - core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phcredential), - core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), - ) - .ok() + SspiAcquireCredentialsHandleAsyncA(core::mem::transmute(asynccontext), pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security_Authentication_Identity"))] #[inline] pub unsafe fn SspiAcquireCredentialsHandleAsyncW(asynccontext: *mut super::super::Foundation::SspiAsyncContext, pszprincipal: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, pszpackage: *const super::super::super::Win32::Foundation::UNICODE_STRING, fcredentialuse: u32, pvlogonid: Option<*const core::ffi::c_void>, pauthdata: Option<*const core::ffi::c_void>, pgetkeyfn: Option, pvgetkeyargument: Option<*const core::ffi::c_void>, phcredential: *const SecHandle, ptsexpiry: Option<*const i64>) -> windows_core::Result<()> { windows_targets::link!("ksecdd.sys" "system" fn SspiAcquireCredentialsHandleAsyncW(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, pszprincipal : *const super::super::super::Win32::Foundation:: UNICODE_STRING, pszpackage : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fcredentialuse : u32, pvlogonid : *const core::ffi::c_void, pauthdata : *const core::ffi::c_void, pgetkeyfn : super::super::super::Win32::Security::Authentication::Identity:: SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, phcredential : *const SecHandle, ptsexpiry : *const i64) -> windows_core::HRESULT); - SspiAcquireCredentialsHandleAsyncW( - core::mem::transmute(asynccontext), - core::mem::transmute(pszprincipal.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pszpackage), - core::mem::transmute(fcredentialuse), - core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phcredential), - core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), - ) - .ok() + SspiAcquireCredentialsHandleAsyncW(core::mem::transmute(asynccontext), core::mem::transmute(pszprincipal.unwrap_or(core::mem::zeroed())), pszpackage, fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3757,7 +3616,7 @@ pub unsafe fn SspiCreateAsyncContext() -> *mut super::super::Foundation::SspiAsy #[inline] pub unsafe fn SspiDeleteSecurityContextAsync(asynccontext: *mut super::super::Foundation::SspiAsyncContext, phcontext: *const SecHandle) -> windows_core::Result<()> { windows_targets::link!("ksecdd.sys" "system" fn SspiDeleteSecurityContextAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcontext : *const SecHandle) -> windows_core::HRESULT); - SspiDeleteSecurityContextAsync(core::mem::transmute(asynccontext), core::mem::transmute(phcontext)).ok() + SspiDeleteSecurityContextAsync(core::mem::transmute(asynccontext), phcontext).ok() } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3769,13 +3628,13 @@ pub unsafe fn SspiFreeAsyncContext(handle: Option<*const super::super::Foundatio #[inline] pub unsafe fn SspiFreeCredentialsHandleAsync(asynccontext: *mut super::super::Foundation::SspiAsyncContext, phcredential: *const SecHandle) -> windows_core::Result<()> { windows_targets::link!("ksecdd.sys" "system" fn SspiFreeCredentialsHandleAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle) -> windows_core::HRESULT); - SspiFreeCredentialsHandleAsync(core::mem::transmute(asynccontext), core::mem::transmute(phcredential)).ok() + SspiFreeCredentialsHandleAsync(core::mem::transmute(asynccontext), phcredential).ok() } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn SspiGetAsyncCallStatus(handle: *const super::super::Foundation::SspiAsyncContext) -> windows_core::Result<()> { windows_targets::link!("ksecdd.sys" "system" fn SspiGetAsyncCallStatus(handle : *const super::super::Foundation:: SspiAsyncContext) -> windows_core::HRESULT); - SspiGetAsyncCallStatus(core::mem::transmute(handle)).ok() + SspiGetAsyncCallStatus(handle).ok() } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3789,14 +3648,14 @@ where core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), - core::mem::transmute(fcontextreq), - core::mem::transmute(reserved1), - core::mem::transmute(targetdatarep), + fcontextreq, + reserved1, + targetdatarep, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2), + reserved2, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfcontextattr), + pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), ) .ok() @@ -3810,14 +3669,14 @@ pub unsafe fn SspiInitializeSecurityContextAsyncW(asynccontext: *mut super::supe core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(psztargetname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fcontextreq), - core::mem::transmute(reserved1), - core::mem::transmute(targetdatarep), + fcontextreq, + reserved1, + targetdatarep, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2), + reserved2, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfcontextattr), + pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), ) .ok() @@ -3832,19 +3691,19 @@ pub unsafe fn SspiReinitAsyncContext(handle: *mut super::super::Foundation::Sspi #[inline] pub unsafe fn SspiSetAsyncNotifyCallback(context: *const super::super::Foundation::SspiAsyncContext, callback: SspiAsyncNotifyCallback, callbackdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("ksecdd.sys" "system" fn SspiSetAsyncNotifyCallback(context : *const super::super::Foundation:: SspiAsyncContext, callback : SspiAsyncNotifyCallback, callbackdata : *const core::ffi::c_void) -> windows_core::HRESULT); - SspiSetAsyncNotifyCallback(core::mem::transmute(context), core::mem::transmute(callback), core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))).ok() + SspiSetAsyncNotifyCallback(context, callback, core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn VerifySignature(phcontext: *const SecHandle, pmessage: *const SecBufferDesc, messageseqno: u32) -> windows_core::Result { windows_targets::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VerifySignature(core::mem::transmute(phcontext), core::mem::transmute(pmessage), core::mem::transmute(messageseqno), &mut result__).map(|| core::mem::transmute(result__)) + VerifySignature(phcontext, pmessage, messageseqno, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwAccessCheckAndAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAccessCheckAndAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypename), core::mem::transmute(objectname), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) + ZwAccessCheckAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename, objectname, securitydescriptor, desiredaccess, genericmapping, objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3867,19 +3726,19 @@ pub unsafe fn ZwAccessCheckByTypeAndAuditAlarm( ) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwAccessCheckByTypeAndAuditAlarm( - core::mem::transmute(subsystemname), + subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor), + objecttypename, + objectname, + securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), + desiredaccess, + audittype, + flags, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(genericmapping), - core::mem::transmute(objectcreation), + genericmapping, + objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -3906,24 +3765,7 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarm( generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAccessCheckByTypeResultListAndAuditAlarm( - core::mem::transmute(subsystemname), - core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - core::mem::transmute(objectcreation), - core::mem::transmute(grantedaccess), - core::mem::transmute(accessstatus), - core::mem::transmute(generateonclose), - ) + ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename, objectname, securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3947,71 +3789,53 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( - core::mem::transmute(subsystemname), - core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(clienttoken), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - core::mem::transmute(objectcreation), - core::mem::transmute(grantedaccess), - core::mem::transmute(accessstatus), - core::mem::transmute(generateonclose), - ) + ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), clienttoken, objecttypename, objectname, securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwAdjustGroupsToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, resettodefault: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_GROUPS>, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAdjustGroupsToken(core::mem::transmute(tokenhandle), core::mem::transmute(resettodefault), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) + ZwAdjustGroupsToken(tokenhandle, resettodefault, core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwAdjustPrivilegesToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, disableallprivileges: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAdjustPrivilegesToken(core::mem::transmute(tokenhandle), core::mem::transmute(disableallprivileges), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwAdjustPrivilegesToken(tokenhandle, disableallprivileges, core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwAllocateVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, regionsize: *mut usize, allocationtype: u32, protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAllocateVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, regionsize : *mut usize, allocationtype : u32, protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAllocateVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(zerobits), core::mem::transmute(regionsize), core::mem::transmute(allocationtype), core::mem::transmute(protect)) + ZwAllocateVirtualMemory(processhandle, core::mem::transmute(baseaddress), zerobits, core::mem::transmute(regionsize), allocationtype, protect) } #[cfg(feature = "Win32_System_Memory")] #[inline] pub unsafe fn ZwAllocateVirtualMemoryEx(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, allocationtype: u32, pageprotection: u32, extendedparameters: Option<&mut [super::super::super::Win32::System::Memory::MEM_EXTENDED_PARAMETER]>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwAllocateVirtualMemoryEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, allocationtype : u32, pageprotection : u32, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAllocateVirtualMemoryEx(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(allocationtype), core::mem::transmute(pageprotection), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ZwAllocateVirtualMemoryEx(processhandle, core::mem::transmute(baseaddress), core::mem::transmute(regionsize), allocationtype, pageprotection, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwCancelIoFileEx(filehandle: super::super::super::Win32::Foundation::HANDLE, iorequesttocancel: Option<*const super::super::super::Win32::System::IO::IO_STATUS_BLOCK>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCancelIoFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, iorequesttocancel : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCancelIoFileEx(core::mem::transmute(filehandle), core::mem::transmute(iorequesttocancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) + ZwCancelIoFileEx(filehandle, core::mem::transmute(iorequesttocancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) } #[inline] pub unsafe fn ZwCloseObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCloseObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) + ZwCloseObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateDirectoryObject(directoryhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwCreateDirectoryObject(core::mem::transmute(directoryhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ZwCreateEvent(eventhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, eventtype: super::super::super::Win32::System::Kernel::EVENT_TYPE, initialstate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtype), core::mem::transmute(initialstate)) + ZwCreateEvent(core::mem::transmute(eventhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), eventtype, initialstate) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Memory"))] #[inline] @@ -4019,11 +3843,11 @@ pub unsafe fn ZwCreateSectionEx(sectionhandle: *mut super::super::super::Win32:: windows_targets::link!("ntdll.dll" "system" fn ZwCreateSectionEx(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwCreateSectionEx( core::mem::transmute(sectionhandle), - core::mem::transmute(desiredaccess), + desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sectionpageprotection), - core::mem::transmute(allocationattributes), + sectionpageprotection, + allocationattributes, core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -4033,271 +3857,235 @@ pub unsafe fn ZwCreateSectionEx(sectionhandle: *mut super::super::super::Win32:: #[inline] pub unsafe fn ZwDeleteFile(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDeleteFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeleteFile(core::mem::transmute(objectattributes)) + ZwDeleteFile(objectattributes) } #[inline] pub unsafe fn ZwDeleteObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeleteObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) + ZwDeleteObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose) } #[inline] pub unsafe fn ZwDuplicateObject(sourceprocesshandle: super::super::super::Win32::Foundation::HANDLE, sourcehandle: super::super::super::Win32::Foundation::HANDLE, targetprocesshandle: Option, targethandle: Option<*mut super::super::super::Win32::Foundation::HANDLE>, desiredaccess: u32, handleattributes: u32, options: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateObject(sourceprocesshandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, targetprocesshandle : super::super::super::Win32::Foundation:: HANDLE, targethandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDuplicateObject(core::mem::transmute(sourceprocesshandle), core::mem::transmute(sourcehandle), core::mem::transmute(targetprocesshandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(targethandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(handleattributes), core::mem::transmute(options)) + ZwDuplicateObject(sourceprocesshandle, sourcehandle, core::mem::transmute(targetprocesshandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(targethandle.unwrap_or(core::mem::zeroed())), desiredaccess, handleattributes, options) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwDuplicateToken(existingtokenhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, effectiveonly: bool, tokentype: super::super::super::Win32::Security::TOKEN_TYPE, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(effectiveonly), core::mem::transmute(tokentype), core::mem::transmute(newtokenhandle)) + ZwDuplicateToken(existingtokenhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), effectiveonly, tokentype, core::mem::transmute(newtokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwFilterToken(existingtokenhandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, sidstodisable: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, privilegestodelete: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, restrictedsids: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFilterToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFilterToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(flags), core::mem::transmute(sidstodisable.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegestodelete.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(newtokenhandle)) + ZwFilterToken(existingtokenhandle, flags, core::mem::transmute(sidstodisable.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegestodelete.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(newtokenhandle)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFlushBuffersFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFlushBuffersFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFlushBuffersFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock)) + ZwFlushBuffersFile(filehandle, core::mem::transmute(iostatusblock)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFlushBuffersFileEx(filehandle: super::super::super::Win32::Foundation::HANDLE, flags: u32, parameters: *const core::ffi::c_void, parameterssize: u32, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFlushBuffersFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, parameters : *const core::ffi::c_void, parameterssize : u32, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFlushBuffersFileEx(core::mem::transmute(filehandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(parameterssize), core::mem::transmute(iostatusblock)) + ZwFlushBuffersFileEx(filehandle, flags, parameters, parameterssize, core::mem::transmute(iostatusblock)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFlushVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFlushVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFlushVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(iostatus)) + ZwFlushVirtualMemory(processhandle, core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(iostatus)) } #[inline] pub unsafe fn ZwFreeVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, freetype: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFreeVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, freetype : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFreeVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(regionsize), core::mem::transmute(freetype)) + ZwFreeVirtualMemory(processhandle, core::mem::transmute(baseaddress), core::mem::transmute(regionsize), freetype) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFsControlFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fscontrolcode: u32, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFsControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFsControlFile( - core::mem::transmute(filehandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(iostatusblock), - core::mem::transmute(fscontrolcode), - core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(inputbufferlength), - core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(outputbufferlength), - ) + ZwFsControlFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } #[inline] pub unsafe fn ZwImpersonateAnonymousToken(threadhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwImpersonateAnonymousToken(core::mem::transmute(threadhandle)) + ZwImpersonateAnonymousToken(threadhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwLockFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, byteoffset: *const i64, length: *const i64, key: u32, failimmediately: bool, exclusivelock: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwLockFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(failimmediately), core::mem::transmute(exclusivelock)) + ZwLockFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), byteoffset, length, key, failimmediately, exclusivelock) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwNotifyChangeKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwNotifyChangeKey(core::mem::transmute(keyhandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), core::mem::transmute(watchtree), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(asynchronous)) + ZwNotifyChangeKey(keyhandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), completionfilter, watchtree, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, asynchronous) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenDirectoryObject(directoryhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenDirectoryObject(core::mem::transmute(directoryhandle), desiredaccess, objectattributes) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwOpenObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: Option, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenObjectAuditAlarm( - core::mem::transmute(subsystemname), - core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypename), - core::mem::transmute(objectname), - core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), - core::mem::transmute(clienttoken), - core::mem::transmute(desiredaccess), - core::mem::transmute(grantedaccess), - core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objectcreation), - core::mem::transmute(accessgranted), - core::mem::transmute(generateonclose), - ) + ZwOpenObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename, objectname, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), clienttoken, desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), objectcreation, accessgranted, core::mem::transmute(generateonclose)) } #[inline] pub unsafe fn ZwOpenProcessToken(processhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenProcessToken(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenProcessToken(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tokenhandle)) + ZwOpenProcessToken(processhandle, desiredaccess, core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn ZwOpenProcessTokenEx(processhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenProcessTokenEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenProcessTokenEx(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) + ZwOpenProcessTokenEx(processhandle, desiredaccess, handleattributes, core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn ZwOpenThreadToken(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(tokenhandle)) + ZwOpenThreadToken(threadhandle, desiredaccess, openasself, core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn ZwOpenThreadTokenEx(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenThreadTokenEx(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) + ZwOpenThreadTokenEx(threadhandle, desiredaccess, openasself, handleattributes, core::mem::transmute(tokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwPrivilegeCheck(clienttoken: super::super::super::Win32::Foundation::HANDLE, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrivilegeCheck(core::mem::transmute(clienttoken), core::mem::transmute(requiredprivileges), core::mem::transmute(result)) + ZwPrivilegeCheck(clienttoken, core::mem::transmute(requiredprivileges), core::mem::transmute(result)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwPrivilegeObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrivilegeObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) + ZwPrivilegeObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), clienttoken, desiredaccess, privileges, accessgranted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwPrivilegedServiceAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, clienttoken: super::super::super::Win32::Foundation::HANDLE, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrivilegedServiceAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(servicename), core::mem::transmute(clienttoken), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) + ZwPrivilegedServiceAuditAlarm(subsystemname, servicename, clienttoken, privileges, accessgranted) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryDirectoryFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, returnsingleentry: bool, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryDirectoryFile( - core::mem::transmute(filehandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(iostatusblock), - core::mem::transmute(fileinformation), - core::mem::transmute(length), - core::mem::transmute(fileinformationclass), - core::mem::transmute(returnsingleentry), - core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), - core::mem::transmute(restartscan), - ) + ZwQueryDirectoryFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass, returnsingleentry, core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), restartscan) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryDirectoryFileEx(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, queryflags: u32, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryDirectoryFileEx(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(queryflags), core::mem::transmute(filename.unwrap_or(core::mem::zeroed()))) + ZwQueryDirectoryFileEx(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwQueryDirectoryObject(directoryhandle: super::super::super::Win32::Foundation::HANDLE, buffer: Option<*mut core::ffi::c_void>, length: u32, returnsingleentry: bool, restartscan: bool, context: *mut u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(restartscan), core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryDirectoryObject(directoryhandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), length, returnsingleentry, restartscan, core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryEaFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) + ZwQueryEaFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, returnsingleentry, core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), ealistlength, core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwQueryFullAttributesFile(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, fileinformation: *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryFullAttributesFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, fileinformation : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryFullAttributesFile(core::mem::transmute(objectattributes), core::mem::transmute(fileinformation)) + ZwQueryFullAttributesFile(objectattributes, core::mem::transmute(fileinformation)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwQueryInformationToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: Option<*mut core::ffi::c_void>, tokeninformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationToken(core::mem::transmute(tokenhandle), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(tokeninformationlength), core::mem::transmute(returnlength)) + ZwQueryInformationToken(tokenhandle, tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(core::mem::zeroed())), tokeninformationlength, core::mem::transmute(returnlength)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ZwQueryObject(handle: Option, objectinformationclass: super::super::Foundation::OBJECT_INFORMATION_CLASS, objectinformation: Option<*mut core::ffi::c_void>, objectinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryObject(handle : super::super::super::Win32::Foundation:: HANDLE, objectinformationclass : super::super::Foundation:: OBJECT_INFORMATION_CLASS, objectinformation : *mut core::ffi::c_void, objectinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryObject(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectinformationclass), core::mem::transmute(objectinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryObject(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), objectinformationclass, core::mem::transmute(objectinformation.unwrap_or(core::mem::zeroed())), objectinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwQueryQuotaInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: Option, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) + ZwQueryQuotaInformationFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, returnsingleentry, core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), sidlistlength, core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), restartscan) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwQuerySecurityObject(handle: super::super::super::Win32::Foundation::HANDLE, securityinformation: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, length: u32, lengthneeded: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQuerySecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQuerySecurityObject(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor), core::mem::transmute(length), core::mem::transmute(lengthneeded)) + ZwQuerySecurityObject(handle, securityinformation, core::mem::transmute(securitydescriptor), length, core::mem::transmute(lengthneeded)) } #[inline] pub unsafe fn ZwQueryVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: Option<*const core::ffi::c_void>, memoryinformationclass: MEMORY_INFORMATION_CLASS, memoryinformation: *mut core::ffi::c_void, memoryinformationlength: usize, returnlength: Option<*mut usize>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, memoryinformationclass : MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationlength : usize, returnlength : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(memoryinformationclass), core::mem::transmute(memoryinformation), core::mem::transmute(memoryinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryVirtualMemory(processhandle, core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), memoryinformationclass, core::mem::transmute(memoryinformation), memoryinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryVolumeInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fsinformation: *mut core::ffi::c_void, length: u32, fsinformationclass: FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryVolumeInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass)) + ZwQueryVolumeInformationFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(fsinformation), length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwSetEaFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *const core::ffi::c_void, length: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length)) + ZwSetEaFile(filehandle, core::mem::transmute(iostatusblock), buffer, length) } #[inline] pub unsafe fn ZwSetEvent(eventhandle: super::super::super::Win32::Foundation::HANDLE, previousstate: Option<*mut i32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetEvent(eventhandle : super::super::super::Win32::Foundation:: HANDLE, previousstate : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetEvent(core::mem::transmute(eventhandle), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) + ZwSetEvent(eventhandle, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwSetInformationToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationToken(core::mem::transmute(tokenhandle), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation), core::mem::transmute(tokeninformationlength)) + ZwSetInformationToken(tokenhandle, tokeninformationclass, tokeninformation, tokeninformationlength) } #[inline] pub unsafe fn ZwSetInformationVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, vminformationclass: VIRTUAL_MEMORY_INFORMATION_CLASS, virtualaddresses: &[MEMORY_RANGE_ENTRY], vminformation: *const core::ffi::c_void, vminformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, vminformationclass : VIRTUAL_MEMORY_INFORMATION_CLASS, numberofentries : usize, virtualaddresses : *const MEMORY_RANGE_ENTRY, vminformation : *const core::ffi::c_void, vminformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationVirtualMemory(core::mem::transmute(processhandle), core::mem::transmute(vminformationclass), virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), core::mem::transmute(vminformation), core::mem::transmute(vminformationlength)) + ZwSetInformationVirtualMemory(processhandle, vminformationclass, virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), vminformation, vminformationlength) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwSetQuotaInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *const core::ffi::c_void, length: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length)) + ZwSetQuotaInformationFile(filehandle, core::mem::transmute(iostatusblock), buffer, length) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwSetSecurityObject(handle: super::super::super::Win32::Foundation::HANDLE, securityinformation: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetSecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetSecurityObject(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor)) + ZwSetSecurityObject(handle, securityinformation, securitydescriptor) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwSetVolumeInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fsinformation: *const core::ffi::c_void, length: u32, fsinformationclass: FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *const core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetVolumeInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fsinformation), core::mem::transmute(length), core::mem::transmute(fsinformationclass)) + ZwSetVolumeInformationFile(filehandle, core::mem::transmute(iostatusblock), fsinformation, length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwUnlockFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, byteoffset: *const i64, length: *const i64, key: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwUnlockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwUnlockFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key)) + ZwUnlockFile(filehandle, core::mem::transmute(iostatusblock), byteoffset, length, key) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Wdk/System/IO/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/IO/mod.rs index f36523b58c..fd2ce370cb 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/IO/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/IO/mod.rs @@ -2,16 +2,5 @@ #[inline] pub unsafe fn NtDeviceIoControlFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, iocontrolcode: u32, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDeviceIoControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iocontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeviceIoControlFile( - core::mem::transmute(filehandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(iostatusblock), - core::mem::transmute(iocontrolcode), - core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(inputbufferlength), - core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(outputbufferlength), - ) + NtDeviceIoControlFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } diff --git a/crates/libs/windows/src/Windows/Wdk/System/Memory/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/Memory/mod.rs index 1a30c1e317..3c658a0f71 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Memory/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Memory/mod.rs @@ -1,34 +1,34 @@ #[inline] pub unsafe fn NtMapViewOfSection(sectionhandle: super::super::super::Win32::Foundation::HANDLE, processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, commitsize: usize, sectionoffset: Option<*mut i64>, viewsize: *mut usize, inheritdisposition: SECTION_INHERIT, allocationtype: u32, win32protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtMapViewOfSection(sectionhandle : super::super::super::Win32::Foundation:: HANDLE, processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, commitsize : usize, sectionoffset : *mut i64, viewsize : *mut usize, inheritdisposition : SECTION_INHERIT, allocationtype : u32, win32protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtMapViewOfSection(core::mem::transmute(sectionhandle), core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(zerobits), core::mem::transmute(commitsize), core::mem::transmute(sectionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(viewsize), core::mem::transmute(inheritdisposition), core::mem::transmute(allocationtype), core::mem::transmute(win32protect)) + NtMapViewOfSection(sectionhandle, processhandle, core::mem::transmute(baseaddress), zerobits, commitsize, core::mem::transmute(sectionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(viewsize), inheritdisposition, allocationtype, win32protect) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenSection(sectionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenSection(core::mem::transmute(sectionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenSection(core::mem::transmute(sectionhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn NtUnmapViewOfSection(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtUnmapViewOfSection(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtUnmapViewOfSection(core::mem::transmute(processhandle), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed()))) + NtUnmapViewOfSection(processhandle, core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwMapViewOfSection(sectionhandle: super::super::super::Win32::Foundation::HANDLE, processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, commitsize: usize, sectionoffset: Option<*mut i64>, viewsize: *mut usize, inheritdisposition: SECTION_INHERIT, allocationtype: u32, win32protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwMapViewOfSection(sectionhandle : super::super::super::Win32::Foundation:: HANDLE, processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, commitsize : usize, sectionoffset : *mut i64, viewsize : *mut usize, inheritdisposition : SECTION_INHERIT, allocationtype : u32, win32protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwMapViewOfSection(core::mem::transmute(sectionhandle), core::mem::transmute(processhandle), core::mem::transmute(baseaddress), core::mem::transmute(zerobits), core::mem::transmute(commitsize), core::mem::transmute(sectionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(viewsize), core::mem::transmute(inheritdisposition), core::mem::transmute(allocationtype), core::mem::transmute(win32protect)) + ZwMapViewOfSection(sectionhandle, processhandle, core::mem::transmute(baseaddress), zerobits, commitsize, core::mem::transmute(sectionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(viewsize), inheritdisposition, allocationtype, win32protect) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenSection(sectionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenSection(core::mem::transmute(sectionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenSection(core::mem::transmute(sectionhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn ZwUnmapViewOfSection(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwUnmapViewOfSection(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwUnmapViewOfSection(core::mem::transmute(processhandle), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed()))) + ZwUnmapViewOfSection(processhandle, core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed()))) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs index f527682e05..a64009b6dd 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn ORCloseHive(handle: ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORCloseHive(handle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORCloseHive(core::mem::transmute(handle)) + ORCloseHive(handle) } #[inline] pub unsafe fn ORCloseKey(keyhandle: ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORCloseKey(keyhandle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORCloseKey(core::mem::transmute(keyhandle)) + ORCloseKey(keyhandle) } #[inline] pub unsafe fn ORCreateHive(horkey: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { @@ -21,7 +21,7 @@ where P2: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORCreateKey(keyhandle : ORHKEY, lpsubkey : windows_core::PCWSTR, lpclass : windows_core::PCWSTR, dwoptions : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, phkresult : *mut ORHKEY, pdwdisposition : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORCreateKey(core::mem::transmute(keyhandle), lpsubkey.param().abi(), lpclass.param().abi(), core::mem::transmute(dwoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(pdwdisposition.unwrap_or(core::mem::zeroed()))) + ORCreateKey(keyhandle, lpsubkey.param().abi(), lpclass.param().abi(), core::mem::transmute(dwoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(pdwdisposition.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ORDeleteKey(handle: ORHKEY, lpsubkey: P1) -> super::super::super::Win32::Foundation::WIN32_ERROR @@ -29,7 +29,7 @@ where P1: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORDeleteKey(handle : ORHKEY, lpsubkey : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORDeleteKey(core::mem::transmute(handle), lpsubkey.param().abi()) + ORDeleteKey(handle, lpsubkey.param().abi()) } #[inline] pub unsafe fn ORDeleteValue(handle: ORHKEY, lpvaluename: P1) -> super::super::super::Win32::Foundation::WIN32_ERROR @@ -37,23 +37,23 @@ where P1: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORDeleteValue(handle : ORHKEY, lpvaluename : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORDeleteValue(core::mem::transmute(handle), lpvaluename.param().abi()) + ORDeleteValue(handle, lpvaluename.param().abi()) } #[inline] pub unsafe fn OREnumKey(handle: ORHKEY, dwindex: u32, lpname: windows_core::PWSTR, lpcname: *mut u32, lpclass: Option, lpcclass: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::super::Win32::Foundation::FILETIME>) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn OREnumKey(handle : ORHKEY, dwindex : u32, lpname : windows_core::PWSTR, lpcname : *mut u32, lpclass : windows_core::PWSTR, lpcclass : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - OREnumKey(core::mem::transmute(handle), core::mem::transmute(dwindex), core::mem::transmute(lpname), core::mem::transmute(lpcname), core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) + OREnumKey(handle, dwindex, core::mem::transmute(lpname), core::mem::transmute(lpcname), core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OREnumValue(handle: ORHKEY, dwindex: u32, lpvaluename: windows_core::PWSTR, lpcvaluename: *mut u32, lptype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn OREnumValue(handle : ORHKEY, dwindex : u32, lpvaluename : windows_core::PWSTR, lpcvaluename : *mut u32, lptype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - OREnumValue(core::mem::transmute(handle), core::mem::transmute(dwindex), core::mem::transmute(lpvaluename), core::mem::transmute(lpcvaluename), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + OREnumValue(handle, dwindex, core::mem::transmute(lpvaluename), core::mem::transmute(lpcvaluename), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ORGetKeySecurity(handle: ORHKEY, securityinformation: u32, psecuritydescriptor: Option, lpcbsecuritydescriptor: *mut u32) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORGetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORGetKeySecurity(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbsecuritydescriptor)) + ORGetKeySecurity(handle, securityinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbsecuritydescriptor)) } #[inline] pub unsafe fn ORGetValue(handle: ORHKEY, lpsubkey: P1, lpvalue: P2, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::super::Win32::Foundation::WIN32_ERROR @@ -62,7 +62,7 @@ where P2: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORGetValue(handle : ORHKEY, lpsubkey : windows_core::PCWSTR, lpvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORGetValue(core::mem::transmute(handle), lpsubkey.param().abi(), lpvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + ORGetValue(handle, lpsubkey.param().abi(), lpvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ORGetVersion(pdwmajorversion: *mut u32, pdwminorversion: *mut u32) -> super::super::super::Win32::Foundation::WIN32_ERROR { @@ -72,7 +72,7 @@ pub unsafe fn ORGetVersion(pdwmajorversion: *mut u32, pdwminorversion: *mut u32) #[inline] pub unsafe fn ORGetVirtualFlags(handle: ORHKEY, pdwflags: *mut u32) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORGetVirtualFlags(handle : ORHKEY, pdwflags : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORGetVirtualFlags(core::mem::transmute(handle), core::mem::transmute(pdwflags)) + ORGetVirtualFlags(handle, core::mem::transmute(pdwflags)) } #[inline] pub unsafe fn ORMergeHives(hivehandles: &[ORHKEY], phkresult: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { @@ -90,7 +90,7 @@ where #[inline] pub unsafe fn OROpenHiveByHandle(filehandle: super::super::super::Win32::Foundation::HANDLE, horkey: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn OROpenHiveByHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - OROpenHiveByHandle(core::mem::transmute(filehandle), core::mem::transmute(horkey)) + OROpenHiveByHandle(filehandle, core::mem::transmute(horkey)) } #[inline] pub unsafe fn OROpenKey(handle: ORHKEY, lpsubkey: P1, phkresult: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR @@ -98,13 +98,13 @@ where P1: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn OROpenKey(handle : ORHKEY, lpsubkey : windows_core::PCWSTR, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - OROpenKey(core::mem::transmute(handle), lpsubkey.param().abi(), core::mem::transmute(phkresult)) + OROpenKey(handle, lpsubkey.param().abi(), core::mem::transmute(phkresult)) } #[inline] pub unsafe fn ORQueryInfoKey(handle: ORHKEY, lpclass: Option, lpcclass: Option<*mut u32>, lpcsubkeys: Option<*mut u32>, lpcmaxsubkeylen: Option<*mut u32>, lpcmaxclasslen: Option<*mut u32>, lpcvalues: Option<*mut u32>, lpcmaxvaluenamelen: Option<*mut u32>, lpcmaxvaluelen: Option<*mut u32>, lpcbsecuritydescriptor: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::super::Win32::Foundation::FILETIME>) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORQueryInfoKey(handle : ORHKEY, lpclass : windows_core::PWSTR, lpcclass : *mut u32, lpcsubkeys : *mut u32, lpcmaxsubkeylen : *mut u32, lpcmaxclasslen : *mut u32, lpcvalues : *mut u32, lpcmaxvaluenamelen : *mut u32, lpcmaxvaluelen : *mut u32, lpcbsecuritydescriptor : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR); ORQueryInfoKey( - core::mem::transmute(handle), + handle, core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcsubkeys.unwrap_or(core::mem::zeroed())), @@ -123,7 +123,7 @@ where P1: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORRenameKey(handle : ORHKEY, lpnewname : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORRenameKey(core::mem::transmute(handle), lpnewname.param().abi()) + ORRenameKey(handle, lpnewname.param().abi()) } #[inline] pub unsafe fn ORSaveHive(horkey: ORHKEY, hivepath: P1, osmajorversion: u32, osminorversion: u32) -> super::super::super::Win32::Foundation::WIN32_ERROR @@ -131,13 +131,13 @@ where P1: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORSaveHive(horkey : ORHKEY, hivepath : windows_core::PCWSTR, osmajorversion : u32, osminorversion : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORSaveHive(core::mem::transmute(horkey), hivepath.param().abi(), core::mem::transmute(osmajorversion), core::mem::transmute(osminorversion)) + ORSaveHive(horkey, hivepath.param().abi(), osmajorversion, osminorversion) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ORSetKeySecurity(handle: ORHKEY, securityinformation: u32, psecuritydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORSetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORSetKeySecurity(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + ORSetKeySecurity(handle, securityinformation, psecuritydescriptor) } #[inline] pub unsafe fn ORSetValue(handle: ORHKEY, lpvaluename: P1, dwtype: u32, lpdata: Option<&[u8]>) -> super::super::super::Win32::Foundation::WIN32_ERROR @@ -145,12 +145,12 @@ where P1: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORSetValue(handle : ORHKEY, lpvaluename : windows_core::PCWSTR, dwtype : u32, lpdata : *const u8, cbdata : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORSetValue(core::mem::transmute(handle), lpvaluename.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ORSetValue(handle, lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn ORSetVirtualFlags(handle: ORHKEY, dwflags: u32) -> super::super::super::Win32::Foundation::WIN32_ERROR { windows_targets::link!("offreg.dll" "system" fn ORSetVirtualFlags(handle : ORHKEY, dwflags : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORSetVirtualFlags(core::mem::transmute(handle), core::mem::transmute(dwflags)) + ORSetVirtualFlags(handle, dwflags) } #[inline] pub unsafe fn ORShutdown() -> super::super::super::Win32::Foundation::WIN32_ERROR { diff --git a/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs index 89d89a77b8..4c75224a71 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs @@ -1,296 +1,296 @@ #[inline] pub unsafe fn NtCommitRegistryTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCommitRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCommitRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(flags)) + NtCommitRegistryTransaction(transactionhandle, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateKey(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, titleindex: Option, class: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: u32, disposition: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateKey(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions), core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) + NtCreateKey(core::mem::transmute(keyhandle), desiredaccess, objectattributes, core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), createoptions, core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateKeyTransacted(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, titleindex: Option, class: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: u32, transactionhandle: super::super::super::Win32::Foundation::HANDLE, disposition: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateKeyTransacted(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions), core::mem::transmute(transactionhandle), core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) + NtCreateKeyTransacted(core::mem::transmute(keyhandle), desiredaccess, objectattributes, core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), createoptions, transactionhandle, core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateRegistryTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) + NtCreateRegistryTransaction(core::mem::transmute(transactionhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtDeleteKey(keyhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDeleteKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeleteKey(core::mem::transmute(keyhandle)) + NtDeleteKey(keyhandle) } #[inline] pub unsafe fn NtDeleteValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDeleteValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeleteValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valuename)) + NtDeleteValueKey(keyhandle, valuename) } #[inline] pub unsafe fn NtEnumerateKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, index: u32, keyinformationclass: KEY_INFORMATION_CLASS, keyinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtEnumerateKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtEnumerateKey(core::mem::transmute(keyhandle), core::mem::transmute(index), core::mem::transmute(keyinformationclass), core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + NtEnumerateKey(keyhandle, index, keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn NtEnumerateValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, index: u32, keyvalueinformationclass: KEY_VALUE_INFORMATION_CLASS, keyvalueinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtEnumerateValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtEnumerateValueKey(core::mem::transmute(keyhandle), core::mem::transmute(index), core::mem::transmute(keyvalueinformationclass), core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + NtEnumerateValueKey(keyhandle, index, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn NtFlushKey(keyhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtFlushKey(core::mem::transmute(keyhandle)) + NtFlushKey(keyhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtNotifyChangeMultipleKeys(masterkeyhandle: super::super::super::Win32::Foundation::HANDLE, subordinateobjects: Option<&[super::super::Foundation::OBJECT_ATTRIBUTES]>, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtNotifyChangeMultipleKeys( - core::mem::transmute(masterkeyhandle), + masterkeyhandle, subordinateobjects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(subordinateobjects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), - core::mem::transmute(completionfilter), - core::mem::transmute(watchtree), + completionfilter, + watchtree, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(asynchronous), + buffersize, + asynchronous, ) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenKey(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenKey(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenKey(core::mem::transmute(keyhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenKeyEx(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, openoptions: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenKeyEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenKeyEx(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(openoptions)) + NtOpenKeyEx(core::mem::transmute(keyhandle), desiredaccess, objectattributes, openoptions) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenKeyTransacted(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, transactionhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenKeyTransacted(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(transactionhandle)) + NtOpenKeyTransacted(core::mem::transmute(keyhandle), desiredaccess, objectattributes, transactionhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenKeyTransactedEx(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, openoptions: u32, transactionhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenKeyTransactedEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenKeyTransactedEx(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(openoptions), core::mem::transmute(transactionhandle)) + NtOpenKeyTransactedEx(core::mem::transmute(keyhandle), desiredaccess, objectattributes, openoptions, transactionhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenRegistryTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenRegistryTransaction(core::mem::transmute(transactionhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn NtQueryKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, keyinformationclass: KEY_INFORMATION_CLASS, keyinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryKey(core::mem::transmute(keyhandle), core::mem::transmute(keyinformationclass), core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + NtQueryKey(keyhandle, keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn NtQueryMultipleValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valueentries: &mut [KEY_VALUE_ENTRY], valuebuffer: *mut core::ffi::c_void, bufferlength: *mut u32, requiredbufferlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryMultipleValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valueentries : *mut KEY_VALUE_ENTRY, entrycount : u32, valuebuffer : *mut core::ffi::c_void, bufferlength : *mut u32, requiredbufferlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryMultipleValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valueentries.as_ptr()), valueentries.len().try_into().unwrap(), core::mem::transmute(valuebuffer), core::mem::transmute(bufferlength), core::mem::transmute(requiredbufferlength.unwrap_or(core::mem::zeroed()))) + NtQueryMultipleValueKey(keyhandle, core::mem::transmute(valueentries.as_ptr()), valueentries.len().try_into().unwrap(), core::mem::transmute(valuebuffer), core::mem::transmute(bufferlength), core::mem::transmute(requiredbufferlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtQueryValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, keyvalueinformationclass: KEY_VALUE_INFORMATION_CLASS, keyvalueinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valuename), core::mem::transmute(keyvalueinformationclass), core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + NtQueryValueKey(keyhandle, valuename, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn NtRenameKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, newname: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRenameKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, newname : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRenameKey(core::mem::transmute(keyhandle), core::mem::transmute(newname)) + NtRenameKey(keyhandle, newname) } #[inline] pub unsafe fn NtRestoreKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, filehandle: Option, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRestoreKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRestoreKey(core::mem::transmute(keyhandle), core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + NtRestoreKey(keyhandle, core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn NtRollbackRegistryTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRollbackRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(flags)) + NtRollbackRegistryTransaction(transactionhandle, flags) } #[inline] pub unsafe fn NtSaveKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, filehandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSaveKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSaveKey(core::mem::transmute(keyhandle), core::mem::transmute(filehandle)) + NtSaveKey(keyhandle, filehandle) } #[inline] pub unsafe fn NtSaveKeyEx(keyhandle: super::super::super::Win32::Foundation::HANDLE, filehandle: super::super::super::Win32::Foundation::HANDLE, format: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSaveKeyEx(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, format : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSaveKeyEx(core::mem::transmute(keyhandle), core::mem::transmute(filehandle), core::mem::transmute(format)) + NtSaveKeyEx(keyhandle, filehandle, format) } #[inline] pub unsafe fn NtSetInformationKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, keysetinformationclass: KEY_SET_INFORMATION_CLASS, keysetinformation: *const core::ffi::c_void, keysetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keysetinformationclass : KEY_SET_INFORMATION_CLASS, keysetinformation : *const core::ffi::c_void, keysetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationKey(core::mem::transmute(keyhandle), core::mem::transmute(keysetinformationclass), core::mem::transmute(keysetinformation), core::mem::transmute(keysetinformationlength)) + NtSetInformationKey(keyhandle, keysetinformationclass, keysetinformation, keysetinformationlength) } #[inline] pub unsafe fn NtSetValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, titleindex: Option, r#type: u32, data: Option<*const core::ffi::c_void>, datasize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, titleindex : u32, r#type : u32, data : *const core::ffi::c_void, datasize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valuename), core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(datasize)) + NtSetValueKey(keyhandle, valuename, core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), r#type, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), datasize) } #[inline] pub unsafe fn ZwCommitRegistryTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCommitRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(flags)) + ZwCommitRegistryTransaction(transactionhandle, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateKey(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, titleindex: Option, class: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: u32, disposition: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateKey(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions), core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) + ZwCreateKey(core::mem::transmute(keyhandle), desiredaccess, objectattributes, core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), createoptions, core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateKeyTransacted(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, titleindex: Option, class: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: u32, transactionhandle: super::super::super::Win32::Foundation::HANDLE, disposition: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateKeyTransacted(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions), core::mem::transmute(transactionhandle), core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) + ZwCreateKeyTransacted(core::mem::transmute(keyhandle), desiredaccess, objectattributes, core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(class.unwrap_or(core::mem::zeroed())), createoptions, transactionhandle, core::mem::transmute(disposition.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateRegistryTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) + ZwCreateRegistryTransaction(core::mem::transmute(transactionhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwDeleteKey(keyhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDeleteKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeleteKey(core::mem::transmute(keyhandle)) + ZwDeleteKey(keyhandle) } #[inline] pub unsafe fn ZwDeleteValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDeleteValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeleteValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valuename)) + ZwDeleteValueKey(keyhandle, valuename) } #[inline] pub unsafe fn ZwEnumerateKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, index: u32, keyinformationclass: KEY_INFORMATION_CLASS, keyinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwEnumerateKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwEnumerateKey(core::mem::transmute(keyhandle), core::mem::transmute(index), core::mem::transmute(keyinformationclass), core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + ZwEnumerateKey(keyhandle, index, keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn ZwEnumerateValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, index: u32, keyvalueinformationclass: KEY_VALUE_INFORMATION_CLASS, keyvalueinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwEnumerateValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwEnumerateValueKey(core::mem::transmute(keyhandle), core::mem::transmute(index), core::mem::transmute(keyvalueinformationclass), core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + ZwEnumerateValueKey(keyhandle, index, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn ZwFlushKey(keyhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFlushKey(core::mem::transmute(keyhandle)) + ZwFlushKey(keyhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwNotifyChangeMultipleKeys(masterkeyhandle: super::super::super::Win32::Foundation::HANDLE, subordinateobjects: Option<&[super::super::Foundation::OBJECT_ATTRIBUTES]>, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwNotifyChangeMultipleKeys( - core::mem::transmute(masterkeyhandle), + masterkeyhandle, subordinateobjects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(subordinateobjects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), - core::mem::transmute(completionfilter), - core::mem::transmute(watchtree), + completionfilter, + watchtree, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(asynchronous), + buffersize, + asynchronous, ) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenKey(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenKey(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenKey(core::mem::transmute(keyhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenKeyEx(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, openoptions: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenKeyEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenKeyEx(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(openoptions)) + ZwOpenKeyEx(core::mem::transmute(keyhandle), desiredaccess, objectattributes, openoptions) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenKeyTransacted(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, transactionhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenKeyTransacted(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(transactionhandle)) + ZwOpenKeyTransacted(core::mem::transmute(keyhandle), desiredaccess, objectattributes, transactionhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenKeyTransactedEx(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, openoptions: u32, transactionhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenKeyTransactedEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenKeyTransactedEx(core::mem::transmute(keyhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(openoptions), core::mem::transmute(transactionhandle)) + ZwOpenKeyTransactedEx(core::mem::transmute(keyhandle), desiredaccess, objectattributes, openoptions, transactionhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenRegistryTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenRegistryTransaction(core::mem::transmute(transactionhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn ZwQueryKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, keyinformationclass: KEY_INFORMATION_CLASS, keyinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryKey(core::mem::transmute(keyhandle), core::mem::transmute(keyinformationclass), core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + ZwQueryKey(keyhandle, keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn ZwQueryMultipleValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valueentries: &mut [KEY_VALUE_ENTRY], valuebuffer: *mut core::ffi::c_void, bufferlength: *mut u32, requiredbufferlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryMultipleValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valueentries : *mut KEY_VALUE_ENTRY, entrycount : u32, valuebuffer : *mut core::ffi::c_void, bufferlength : *mut u32, requiredbufferlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryMultipleValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valueentries.as_ptr()), valueentries.len().try_into().unwrap(), core::mem::transmute(valuebuffer), core::mem::transmute(bufferlength), core::mem::transmute(requiredbufferlength.unwrap_or(core::mem::zeroed()))) + ZwQueryMultipleValueKey(keyhandle, core::mem::transmute(valueentries.as_ptr()), valueentries.len().try_into().unwrap(), core::mem::transmute(valuebuffer), core::mem::transmute(bufferlength), core::mem::transmute(requiredbufferlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwQueryValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, keyvalueinformationclass: KEY_VALUE_INFORMATION_CLASS, keyvalueinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valuename), core::mem::transmute(keyvalueinformationclass), core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(resultlength)) + ZwQueryValueKey(keyhandle, valuename, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(core::mem::zeroed())), length, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn ZwRenameKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, newname: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRenameKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, newname : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRenameKey(core::mem::transmute(keyhandle), core::mem::transmute(newname)) + ZwRenameKey(keyhandle, newname) } #[inline] pub unsafe fn ZwRestoreKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, filehandle: Option, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRestoreKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRestoreKey(core::mem::transmute(keyhandle), core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + ZwRestoreKey(keyhandle, core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn ZwRollbackRegistryTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRollbackRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollbackRegistryTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(flags)) + ZwRollbackRegistryTransaction(transactionhandle, flags) } #[inline] pub unsafe fn ZwSaveKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, filehandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSaveKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSaveKey(core::mem::transmute(keyhandle), core::mem::transmute(filehandle)) + ZwSaveKey(keyhandle, filehandle) } #[inline] pub unsafe fn ZwSaveKeyEx(keyhandle: super::super::super::Win32::Foundation::HANDLE, filehandle: super::super::super::Win32::Foundation::HANDLE, format: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSaveKeyEx(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, format : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSaveKeyEx(core::mem::transmute(keyhandle), core::mem::transmute(filehandle), core::mem::transmute(format)) + ZwSaveKeyEx(keyhandle, filehandle, format) } #[inline] pub unsafe fn ZwSetInformationKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, keysetinformationclass: KEY_SET_INFORMATION_CLASS, keysetinformation: *const core::ffi::c_void, keysetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keysetinformationclass : KEY_SET_INFORMATION_CLASS, keysetinformation : *const core::ffi::c_void, keysetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationKey(core::mem::transmute(keyhandle), core::mem::transmute(keysetinformationclass), core::mem::transmute(keysetinformation), core::mem::transmute(keysetinformationlength)) + ZwSetInformationKey(keyhandle, keysetinformationclass, keysetinformation, keysetinformationlength) } #[inline] pub unsafe fn ZwSetValueKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, titleindex: Option, r#type: u32, data: Option<*const core::ffi::c_void>, datasize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, titleindex : u32, r#type : u32, data : *const core::ffi::c_void, datasize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetValueKey(core::mem::transmute(keyhandle), core::mem::transmute(valuename), core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(datasize)) + ZwSetValueKey(keyhandle, valuename, core::mem::transmute(titleindex.unwrap_or(core::mem::zeroed())), r#type, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), datasize) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Wdk/System/SystemInformation/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/SystemInformation/mod.rs index 1a638bbaf4..7c1e3d701a 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/SystemInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/SystemInformation/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn NtQuerySystemInformation(systeminformationclass: SYSTEM_INFORMATION_CLASS, systeminformation: *mut core::ffi::c_void, systeminformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQuerySystemInformation(systeminformationclass : SYSTEM_INFORMATION_CLASS, systeminformation : *mut core::ffi::c_void, systeminformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQuerySystemInformation(core::mem::transmute(systeminformationclass), core::mem::transmute(systeminformation), core::mem::transmute(systeminformationlength), core::mem::transmute(returnlength)) + NtQuerySystemInformation(systeminformationclass, core::mem::transmute(systeminformation), systeminformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn NtQuerySystemTime(systemtime: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -16,7 +16,7 @@ pub unsafe fn NtQueryTimerResolution(maximumtime: *mut u32, minimumtime: *mut u3 #[inline] pub unsafe fn ZwQuerySystemInformation(systeminformationclass: SYSTEM_INFORMATION_CLASS, systeminformation: *mut core::ffi::c_void, systeminformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQuerySystemInformation(systeminformationclass : SYSTEM_INFORMATION_CLASS, systeminformation : *mut core::ffi::c_void, systeminformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQuerySystemInformation(core::mem::transmute(systeminformationclass), core::mem::transmute(systeminformation), core::mem::transmute(systeminformationlength), core::mem::transmute(returnlength)) + ZwQuerySystemInformation(systeminformationclass, core::mem::transmute(systeminformation), systeminformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn ZwQuerySystemTime(systemtime: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { diff --git a/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs index a1520c03a3..083ecf56b4 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs @@ -2,87 +2,87 @@ #[inline] pub unsafe fn ClfsAddLogContainer(plfolog: *const super::super::Foundation::FILE_OBJECT, pcbcontainer: *const u64, puszcontainerpath: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsAddLogContainer(plfolog : *const super::super::Foundation:: FILE_OBJECT, pcbcontainer : *const u64, puszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsAddLogContainer(core::mem::transmute(plfolog), core::mem::transmute(pcbcontainer), core::mem::transmute(puszcontainerpath)) + ClfsAddLogContainer(plfolog, pcbcontainer, puszcontainerpath) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsAddLogContainerSet(plfolog: *const super::super::Foundation::FILE_OBJECT, pcbcontainer: Option<*const u64>, rguszcontainerpath: &[super::super::super::Win32::Foundation::UNICODE_STRING]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsAddLogContainerSet(plfolog : *const super::super::Foundation:: FILE_OBJECT, ccontainers : u16, pcbcontainer : *const u64, rguszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsAddLogContainerSet(core::mem::transmute(plfolog), rguszcontainerpath.len().try_into().unwrap(), core::mem::transmute(pcbcontainer.unwrap_or(core::mem::zeroed())), core::mem::transmute(rguszcontainerpath.as_ptr())) + ClfsAddLogContainerSet(plfolog, rguszcontainerpath.len().try_into().unwrap(), core::mem::transmute(pcbcontainer.unwrap_or(core::mem::zeroed())), core::mem::transmute(rguszcontainerpath.as_ptr())) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsAdvanceLogBase(pvmarshalcontext: *mut core::ffi::c_void, plsnbase: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, fflags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsAdvanceLogBase(pvmarshalcontext : *mut core::ffi::c_void, plsnbase : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, fflags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsAdvanceLogBase(core::mem::transmute(pvmarshalcontext), core::mem::transmute(plsnbase), core::mem::transmute(fflags)) + ClfsAdvanceLogBase(core::mem::transmute(pvmarshalcontext), plsnbase, fflags) } #[inline] pub unsafe fn ClfsAlignReservedLog(pvmarshalcontext: *const core::ffi::c_void, rgcbreservation: &[i64], pcbalignreservation: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsAlignReservedLog(pvmarshalcontext : *const core::ffi::c_void, crecords : u32, rgcbreservation : *const i64, pcbalignreservation : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsAlignReservedLog(core::mem::transmute(pvmarshalcontext), rgcbreservation.len().try_into().unwrap(), core::mem::transmute(rgcbreservation.as_ptr()), core::mem::transmute(pcbalignreservation)) + ClfsAlignReservedLog(pvmarshalcontext, rgcbreservation.len().try_into().unwrap(), core::mem::transmute(rgcbreservation.as_ptr()), core::mem::transmute(pcbalignreservation)) } #[inline] pub unsafe fn ClfsAllocReservedLog(pvmarshalcontext: *const core::ffi::c_void, pcbadjustment: &[i64]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsAllocReservedLog(pvmarshalcontext : *const core::ffi::c_void, crecords : u32, pcbadjustment : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsAllocReservedLog(core::mem::transmute(pvmarshalcontext), pcbadjustment.len().try_into().unwrap(), core::mem::transmute(pcbadjustment.as_ptr())) + ClfsAllocReservedLog(pvmarshalcontext, pcbadjustment.len().try_into().unwrap(), core::mem::transmute(pcbadjustment.as_ptr())) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsCloseAndResetLogFile(plfolog: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsCloseAndResetLogFile(plfolog : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsCloseAndResetLogFile(core::mem::transmute(plfolog)) + ClfsCloseAndResetLogFile(plfolog) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsCloseLogFileObject(plfolog: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsCloseLogFileObject(plfolog : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsCloseLogFileObject(core::mem::transmute(plfolog)) + ClfsCloseLogFileObject(plfolog) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsCreateLogFile(pplfolog: *mut *mut super::super::Foundation::FILE_OBJECT, puszlogfilename: *const super::super::super::Win32::Foundation::UNICODE_STRING, fdesiredaccess: u32, dwsharemode: u32, psdlogfile: Option, fcreatedisposition: u32, fcreateoptions: u32, fflagsandattributes: u32, flogoptionflag: u32, pvcontext: Option<*const core::ffi::c_void>, cbcontext: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsCreateLogFile(pplfolog : *mut *mut super::super::Foundation:: FILE_OBJECT, puszlogfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fdesiredaccess : u32, dwsharemode : u32, psdlogfile : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, fcreatedisposition : u32, fcreateoptions : u32, fflagsandattributes : u32, flogoptionflag : u32, pvcontext : *const core::ffi::c_void, cbcontext : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsCreateLogFile(core::mem::transmute(pplfolog), core::mem::transmute(puszlogfilename), core::mem::transmute(fdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(psdlogfile.unwrap_or(core::mem::zeroed())), core::mem::transmute(fcreatedisposition), core::mem::transmute(fcreateoptions), core::mem::transmute(fflagsandattributes), core::mem::transmute(flogoptionflag), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbcontext)) + ClfsCreateLogFile(core::mem::transmute(pplfolog), puszlogfilename, fdesiredaccess, dwsharemode, core::mem::transmute(psdlogfile.unwrap_or(core::mem::zeroed())), fcreatedisposition, fcreateoptions, fflagsandattributes, flogoptionflag, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), cbcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsCreateMarshallingArea(plfolog: *const super::super::Foundation::FILE_OBJECT, epooltype: super::super::Foundation::POOL_TYPE, pfnallocbuffer: Option, pfnfreebuffer: Option, cbmarshallingbuffer: u32, cmaxwritebuffers: u32, cmaxreadbuffers: u32, ppvmarshalcontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsCreateMarshallingArea(plfolog : *const super::super::Foundation:: FILE_OBJECT, epooltype : super::super::Foundation:: POOL_TYPE, pfnallocbuffer : PALLOCATE_FUNCTION, pfnfreebuffer : super::super::Foundation:: PFREE_FUNCTION, cbmarshallingbuffer : u32, cmaxwritebuffers : u32, cmaxreadbuffers : u32, ppvmarshalcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsCreateMarshallingArea(core::mem::transmute(plfolog), core::mem::transmute(epooltype), core::mem::transmute(pfnallocbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfreebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmarshallingbuffer), core::mem::transmute(cmaxwritebuffers), core::mem::transmute(cmaxreadbuffers), core::mem::transmute(ppvmarshalcontext)) + ClfsCreateMarshallingArea(plfolog, epooltype, core::mem::transmute(pfnallocbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfreebuffer.unwrap_or(core::mem::zeroed())), cbmarshallingbuffer, cmaxwritebuffers, cmaxreadbuffers, core::mem::transmute(ppvmarshalcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsCreateMarshallingAreaEx(plfolog: *const super::super::Foundation::FILE_OBJECT, epooltype: super::super::Foundation::POOL_TYPE, pfnallocbuffer: Option, pfnfreebuffer: Option, cbmarshallingbuffer: u32, cmaxwritebuffers: u32, cmaxreadbuffers: u32, calignmentsize: u32, fflags: u64, ppvmarshalcontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsCreateMarshallingAreaEx(plfolog : *const super::super::Foundation:: FILE_OBJECT, epooltype : super::super::Foundation:: POOL_TYPE, pfnallocbuffer : PALLOCATE_FUNCTION, pfnfreebuffer : super::super::Foundation:: PFREE_FUNCTION, cbmarshallingbuffer : u32, cmaxwritebuffers : u32, cmaxreadbuffers : u32, calignmentsize : u32, fflags : u64, ppvmarshalcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsCreateMarshallingAreaEx(core::mem::transmute(plfolog), core::mem::transmute(epooltype), core::mem::transmute(pfnallocbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfreebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmarshallingbuffer), core::mem::transmute(cmaxwritebuffers), core::mem::transmute(cmaxreadbuffers), core::mem::transmute(calignmentsize), core::mem::transmute(fflags), core::mem::transmute(ppvmarshalcontext)) + ClfsCreateMarshallingAreaEx(plfolog, epooltype, core::mem::transmute(pfnallocbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfreebuffer.unwrap_or(core::mem::zeroed())), cbmarshallingbuffer, cmaxwritebuffers, cmaxreadbuffers, calignmentsize, fflags, core::mem::transmute(ppvmarshalcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsCreateScanContext(plfolog: *const super::super::Foundation::FILE_OBJECT, cfromcontainer: u32, ccontainers: u32, escanmode: u8, pcxscan: *mut super::super::super::Win32::Storage::FileSystem::CLS_SCAN_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsCreateScanContext(plfolog : *const super::super::Foundation:: FILE_OBJECT, cfromcontainer : u32, ccontainers : u32, escanmode : u8, pcxscan : *mut super::super::super::Win32::Storage::FileSystem:: CLS_SCAN_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsCreateScanContext(core::mem::transmute(plfolog), core::mem::transmute(cfromcontainer), core::mem::transmute(ccontainers), core::mem::transmute(escanmode), core::mem::transmute(pcxscan)) + ClfsCreateScanContext(plfolog, cfromcontainer, ccontainers, escanmode, core::mem::transmute(pcxscan)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsDeleteLogByPointer(plfolog: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsDeleteLogByPointer(plfolog : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsDeleteLogByPointer(core::mem::transmute(plfolog)) + ClfsDeleteLogByPointer(plfolog) } #[inline] pub unsafe fn ClfsDeleteLogFile(puszlogfilename: *const super::super::super::Win32::Foundation::UNICODE_STRING, pvreserved: Option<*const core::ffi::c_void>, flogoptionflag: u32, pvcontext: Option<*const core::ffi::c_void>, cbcontext: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsDeleteLogFile(puszlogfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, pvreserved : *const core::ffi::c_void, flogoptionflag : u32, pvcontext : *const core::ffi::c_void, cbcontext : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsDeleteLogFile(core::mem::transmute(puszlogfilename), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(flogoptionflag), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbcontext)) + ClfsDeleteLogFile(puszlogfilename, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), flogoptionflag, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), cbcontext) } #[inline] pub unsafe fn ClfsDeleteMarshallingArea(pvmarshalcontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsDeleteMarshallingArea(pvmarshalcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsDeleteMarshallingArea(core::mem::transmute(pvmarshalcontext)) + ClfsDeleteMarshallingArea(pvmarshalcontext) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsEarlierLsn(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Storage::FileSystem::CLS_LSN { windows_targets::link!("clfs.sys" "system" fn ClfsEarlierLsn(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Storage::FileSystem:: CLS_LSN); - ClfsEarlierLsn(core::mem::transmute(plsn)) + ClfsEarlierLsn(plsn) } #[inline] pub unsafe fn ClfsFinalize() { @@ -92,36 +92,36 @@ pub unsafe fn ClfsFinalize() { #[inline] pub unsafe fn ClfsFlushBuffers(pvmarshalcontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsFlushBuffers(pvmarshalcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsFlushBuffers(core::mem::transmute(pvmarshalcontext)) + ClfsFlushBuffers(pvmarshalcontext) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsFlushToLsn(pvmarshalcontext: *const core::ffi::c_void, plsnflush: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsnlastflushed: Option<*mut super::super::super::Win32::Storage::FileSystem::CLS_LSN>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsFlushToLsn(pvmarshalcontext : *const core::ffi::c_void, plsnflush : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnlastflushed : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsFlushToLsn(core::mem::transmute(pvmarshalcontext), core::mem::transmute(plsnflush), core::mem::transmute(plsnlastflushed.unwrap_or(core::mem::zeroed()))) + ClfsFlushToLsn(pvmarshalcontext, plsnflush, core::mem::transmute(plsnlastflushed.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClfsFreeReservedLog(pvmarshalcontext: *const core::ffi::c_void, pcbadjustment: &[i64]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsFreeReservedLog(pvmarshalcontext : *const core::ffi::c_void, crecords : u32, pcbadjustment : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsFreeReservedLog(core::mem::transmute(pvmarshalcontext), pcbadjustment.len().try_into().unwrap(), core::mem::transmute(pcbadjustment.as_ptr())) + ClfsFreeReservedLog(pvmarshalcontext, pcbadjustment.len().try_into().unwrap(), core::mem::transmute(pcbadjustment.as_ptr())) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsGetContainerName(plfolog: *const super::super::Foundation::FILE_OBJECT, cidlogicalcontainer: u32, puszcontainername: *mut super::super::super::Win32::Foundation::UNICODE_STRING, pcactuallencontainername: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsGetContainerName(plfolog : *const super::super::Foundation:: FILE_OBJECT, cidlogicalcontainer : u32, puszcontainername : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, pcactuallencontainername : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsGetContainerName(core::mem::transmute(plfolog), core::mem::transmute(cidlogicalcontainer), core::mem::transmute(puszcontainername), core::mem::transmute(pcactuallencontainername.unwrap_or(core::mem::zeroed()))) + ClfsGetContainerName(plfolog, cidlogicalcontainer, core::mem::transmute(puszcontainername), core::mem::transmute(pcactuallencontainername.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsGetIoStatistics(plfolog: *const super::super::Foundation::FILE_OBJECT, pvstatsbuffer: *mut core::ffi::c_void, cbstatsbuffer: u32, estatsclass: super::super::super::Win32::Storage::FileSystem::CLFS_IOSTATS_CLASS, pcbstatswritten: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsGetIoStatistics(plfolog : *const super::super::Foundation:: FILE_OBJECT, pvstatsbuffer : *mut core::ffi::c_void, cbstatsbuffer : u32, estatsclass : super::super::super::Win32::Storage::FileSystem:: CLFS_IOSTATS_CLASS, pcbstatswritten : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsGetIoStatistics(core::mem::transmute(plfolog), core::mem::transmute(pvstatsbuffer), core::mem::transmute(cbstatsbuffer), core::mem::transmute(estatsclass), core::mem::transmute(pcbstatswritten.unwrap_or(core::mem::zeroed()))) + ClfsGetIoStatistics(plfolog, core::mem::transmute(pvstatsbuffer), cbstatsbuffer, estatsclass, core::mem::transmute(pcbstatswritten.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsGetLogFileInformation(plfolog: *const super::super::Foundation::FILE_OBJECT, pinfobuffer: *mut super::super::super::Win32::Storage::FileSystem::CLS_INFORMATION, pcbinfobuffer: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsGetLogFileInformation(plfolog : *const super::super::Foundation:: FILE_OBJECT, pinfobuffer : *mut super::super::super::Win32::Storage::FileSystem:: CLS_INFORMATION, pcbinfobuffer : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsGetLogFileInformation(core::mem::transmute(plfolog), core::mem::transmute(pinfobuffer), core::mem::transmute(pcbinfobuffer)) + ClfsGetLogFileInformation(plfolog, core::mem::transmute(pinfobuffer), core::mem::transmute(pcbinfobuffer)) } #[inline] pub unsafe fn ClfsInitialize() -> super::super::super::Win32::Foundation::NTSTATUS { @@ -132,130 +132,130 @@ pub unsafe fn ClfsInitialize() -> super::super::super::Win32::Foundation::NTSTAT #[inline] pub unsafe fn ClfsLaterLsn(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Storage::FileSystem::CLS_LSN { windows_targets::link!("clfs.sys" "system" fn ClfsLaterLsn(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Storage::FileSystem:: CLS_LSN); - ClfsLaterLsn(core::mem::transmute(plsn)) + ClfsLaterLsn(plsn) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnBlockOffset(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> u32 { windows_targets::link!("clfs.sys" "system" fn ClfsLsnBlockOffset(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> u32); - ClfsLsnBlockOffset(core::mem::transmute(plsn)) + ClfsLsnBlockOffset(plsn) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnContainer(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> u32 { windows_targets::link!("clfs.sys" "system" fn ClfsLsnContainer(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> u32); - ClfsLsnContainer(core::mem::transmute(plsn)) + ClfsLsnContainer(plsn) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnCreate(cidcontainer: u32, offblock: u32, crecord: u32) -> super::super::super::Win32::Storage::FileSystem::CLS_LSN { windows_targets::link!("clfs.sys" "system" fn ClfsLsnCreate(cidcontainer : u32, offblock : u32, crecord : u32) -> super::super::super::Win32::Storage::FileSystem:: CLS_LSN); - ClfsLsnCreate(core::mem::transmute(cidcontainer), core::mem::transmute(offblock), core::mem::transmute(crecord)) + ClfsLsnCreate(cidcontainer, offblock, crecord) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnDifference(plsnstart: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsnfinish: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, cbcontainer: u32, cbmaxblock: u32, pcbdifference: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsLsnDifference(plsnstart : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnfinish : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, cbcontainer : u32, cbmaxblock : u32, pcbdifference : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsLsnDifference(core::mem::transmute(plsnstart), core::mem::transmute(plsnfinish), core::mem::transmute(cbcontainer), core::mem::transmute(cbmaxblock), core::mem::transmute(pcbdifference)) + ClfsLsnDifference(plsnstart, plsnfinish, cbcontainer, cbmaxblock, core::mem::transmute(pcbdifference)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnEqual(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { windows_targets::link!("clfs.sys" "system" fn ClfsLsnEqual(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); - ClfsLsnEqual(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) + ClfsLsnEqual(plsn1, plsn2) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnGreater(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { windows_targets::link!("clfs.sys" "system" fn ClfsLsnGreater(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); - ClfsLsnGreater(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) + ClfsLsnGreater(plsn1, plsn2) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnInvalid(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { windows_targets::link!("clfs.sys" "system" fn ClfsLsnInvalid(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); - ClfsLsnInvalid(core::mem::transmute(plsn)) + ClfsLsnInvalid(plsn) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnLess(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { windows_targets::link!("clfs.sys" "system" fn ClfsLsnLess(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); - ClfsLsnLess(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) + ClfsLsnLess(plsn1, plsn2) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnNull(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { windows_targets::link!("clfs.sys" "system" fn ClfsLsnNull(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); - ClfsLsnNull(core::mem::transmute(plsn)) + ClfsLsnNull(plsn) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsLsnRecordSequence(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> u32 { windows_targets::link!("clfs.sys" "system" fn ClfsLsnRecordSequence(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> u32); - ClfsLsnRecordSequence(core::mem::transmute(plsn)) + ClfsLsnRecordSequence(plsn) } #[inline] pub unsafe fn ClfsMgmtDeregisterManagedClient(clientcookie: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtDeregisterManagedClient(clientcookie : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtDeregisterManagedClient(core::mem::transmute(clientcookie)) + ClfsMgmtDeregisterManagedClient(clientcookie) } #[inline] pub unsafe fn ClfsMgmtHandleLogFileFull(client: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtHandleLogFileFull(client : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtHandleLogFileFull(core::mem::transmute(client)) + ClfsMgmtHandleLogFileFull(client) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsMgmtInstallPolicy(logfile: *const super::super::Foundation::FILE_OBJECT, policy: *const super::super::super::Win32::Storage::FileSystem::CLFS_MGMT_POLICY, policylength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtInstallPolicy(logfile : *const super::super::Foundation:: FILE_OBJECT, policy : *const super::super::super::Win32::Storage::FileSystem:: CLFS_MGMT_POLICY, policylength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtInstallPolicy(core::mem::transmute(logfile), core::mem::transmute(policy), core::mem::transmute(policylength)) + ClfsMgmtInstallPolicy(logfile, policy, policylength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsMgmtQueryPolicy(logfile: *const super::super::Foundation::FILE_OBJECT, policytype: super::super::super::Win32::Storage::FileSystem::CLFS_MGMT_POLICY_TYPE, policy: *mut super::super::super::Win32::Storage::FileSystem::CLFS_MGMT_POLICY, policylength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtQueryPolicy(logfile : *const super::super::Foundation:: FILE_OBJECT, policytype : super::super::super::Win32::Storage::FileSystem:: CLFS_MGMT_POLICY_TYPE, policy : *mut super::super::super::Win32::Storage::FileSystem:: CLFS_MGMT_POLICY, policylength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtQueryPolicy(core::mem::transmute(logfile), core::mem::transmute(policytype), core::mem::transmute(policy), core::mem::transmute(policylength)) + ClfsMgmtQueryPolicy(logfile, policytype, core::mem::transmute(policy), core::mem::transmute(policylength)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsMgmtRegisterManagedClient(logfile: *const super::super::Foundation::FILE_OBJECT, registrationdata: *const CLFS_MGMT_CLIENT_REGISTRATION, clientcookie: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtRegisterManagedClient(logfile : *const super::super::Foundation:: FILE_OBJECT, registrationdata : *const CLFS_MGMT_CLIENT_REGISTRATION, clientcookie : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtRegisterManagedClient(core::mem::transmute(logfile), core::mem::transmute(registrationdata), core::mem::transmute(clientcookie)) + ClfsMgmtRegisterManagedClient(logfile, registrationdata, core::mem::transmute(clientcookie)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsMgmtRemovePolicy(logfile: *const super::super::Foundation::FILE_OBJECT, policytype: super::super::super::Win32::Storage::FileSystem::CLFS_MGMT_POLICY_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtRemovePolicy(logfile : *const super::super::Foundation:: FILE_OBJECT, policytype : super::super::super::Win32::Storage::FileSystem:: CLFS_MGMT_POLICY_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtRemovePolicy(core::mem::transmute(logfile), core::mem::transmute(policytype)) + ClfsMgmtRemovePolicy(logfile, policytype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsMgmtSetLogFileSize(logfile: *const super::super::Foundation::FILE_OBJECT, newsizeincontainers: *const u64, resultingsizeincontainers: Option<*mut u64>, completionroutine: Option, completionroutinedata: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtSetLogFileSize(logfile : *const super::super::Foundation:: FILE_OBJECT, newsizeincontainers : *const u64, resultingsizeincontainers : *mut u64, completionroutine : PCLFS_SET_LOG_SIZE_COMPLETE_CALLBACK, completionroutinedata : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtSetLogFileSize(core::mem::transmute(logfile), core::mem::transmute(newsizeincontainers), core::mem::transmute(resultingsizeincontainers.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutinedata.unwrap_or(core::mem::zeroed()))) + ClfsMgmtSetLogFileSize(logfile, newsizeincontainers, core::mem::transmute(resultingsizeincontainers.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutinedata.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsMgmtSetLogFileSizeAsClient(logfile: *const super::super::Foundation::FILE_OBJECT, clientcookie: Option<*const *const core::ffi::c_void>, newsizeincontainers: *const u64, resultingsizeincontainers: Option<*mut u64>, completionroutine: Option, completionroutinedata: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtSetLogFileSizeAsClient(logfile : *const super::super::Foundation:: FILE_OBJECT, clientcookie : *const *const core::ffi::c_void, newsizeincontainers : *const u64, resultingsizeincontainers : *mut u64, completionroutine : PCLFS_SET_LOG_SIZE_COMPLETE_CALLBACK, completionroutinedata : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtSetLogFileSizeAsClient(core::mem::transmute(logfile), core::mem::transmute(clientcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsizeincontainers), core::mem::transmute(resultingsizeincontainers.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutinedata.unwrap_or(core::mem::zeroed()))) + ClfsMgmtSetLogFileSizeAsClient(logfile, core::mem::transmute(clientcookie.unwrap_or(core::mem::zeroed())), newsizeincontainers, core::mem::transmute(resultingsizeincontainers.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutinedata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClfsMgmtTailAdvanceFailure(client: *const core::ffi::c_void, reason: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsMgmtTailAdvanceFailure(client : *const core::ffi::c_void, reason : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsMgmtTailAdvanceFailure(core::mem::transmute(client), core::mem::transmute(reason)) + ClfsMgmtTailAdvanceFailure(client, reason) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsQueryLogFileInformation(plfolog: *const super::super::Foundation::FILE_OBJECT, einformationclass: super::super::super::Win32::Storage::FileSystem::CLS_LOG_INFORMATION_CLASS, pinfoinputbuffer: Option<*const core::ffi::c_void>, cbinfoinputbuffer: Option, pinfobuffer: *mut core::ffi::c_void, pcbinfobuffer: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsQueryLogFileInformation(plfolog : *const super::super::Foundation:: FILE_OBJECT, einformationclass : super::super::super::Win32::Storage::FileSystem:: CLS_LOG_INFORMATION_CLASS, pinfoinputbuffer : *const core::ffi::c_void, cbinfoinputbuffer : u32, pinfobuffer : *mut core::ffi::c_void, pcbinfobuffer : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsQueryLogFileInformation(core::mem::transmute(plfolog), core::mem::transmute(einformationclass), core::mem::transmute(pinfoinputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinfoinputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinfobuffer), core::mem::transmute(pcbinfobuffer)) + ClfsQueryLogFileInformation(plfolog, einformationclass, core::mem::transmute(pinfoinputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinfoinputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinfobuffer), core::mem::transmute(pcbinfobuffer)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsReadLogRecord(pvmarshalcontext: *const core::ffi::c_void, plsnfirst: *mut super::super::super::Win32::Storage::FileSystem::CLS_LSN, pecontextmode: super::super::super::Win32::Storage::FileSystem::CLFS_CONTEXT_MODE, ppvreadbuffer: *mut *mut core::ffi::c_void, pcbreadbuffer: *mut u32, perecordtype: *mut u8, plsnundonext: *mut super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsnprevious: *mut super::super::super::Win32::Storage::FileSystem::CLS_LSN, ppvreadcontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsReadLogRecord(pvmarshalcontext : *const core::ffi::c_void, plsnfirst : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN, pecontextmode : super::super::super::Win32::Storage::FileSystem:: CLFS_CONTEXT_MODE, ppvreadbuffer : *mut *mut core::ffi::c_void, pcbreadbuffer : *mut u32, perecordtype : *mut u8, plsnundonext : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnprevious : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN, ppvreadcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsReadLogRecord(core::mem::transmute(pvmarshalcontext), core::mem::transmute(plsnfirst), core::mem::transmute(pecontextmode), core::mem::transmute(ppvreadbuffer), core::mem::transmute(pcbreadbuffer), core::mem::transmute(perecordtype), core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), core::mem::transmute(ppvreadcontext)) + ClfsReadLogRecord(pvmarshalcontext, core::mem::transmute(plsnfirst), pecontextmode, core::mem::transmute(ppvreadbuffer), core::mem::transmute(pcbreadbuffer), core::mem::transmute(perecordtype), core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), core::mem::transmute(ppvreadcontext)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -267,7 +267,7 @@ pub unsafe fn ClfsReadNextLogRecord(pvreadcontext: *mut core::ffi::c_void, ppvbu #[inline] pub unsafe fn ClfsReadPreviousRestartArea(pvreadcontext: *const core::ffi::c_void, ppvrestartbuffer: *mut *mut core::ffi::c_void, pcbrestartbuffer: *mut u32, plsnrestart: *mut super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsReadPreviousRestartArea(pvreadcontext : *const core::ffi::c_void, ppvrestartbuffer : *mut *mut core::ffi::c_void, pcbrestartbuffer : *mut u32, plsnrestart : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsReadPreviousRestartArea(core::mem::transmute(pvreadcontext), core::mem::transmute(ppvrestartbuffer), core::mem::transmute(pcbrestartbuffer), core::mem::transmute(plsnrestart)) + ClfsReadPreviousRestartArea(pvreadcontext, core::mem::transmute(ppvrestartbuffer), core::mem::transmute(pcbrestartbuffer), core::mem::transmute(plsnrestart)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -279,27 +279,27 @@ pub unsafe fn ClfsReadRestartArea(pvmarshalcontext: *mut core::ffi::c_void, ppvr #[inline] pub unsafe fn ClfsRemoveLogContainer(plfolog: *const super::super::Foundation::FILE_OBJECT, puszcontainerpath: *const super::super::super::Win32::Foundation::UNICODE_STRING, fforce: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainer(plfolog : *const super::super::Foundation:: FILE_OBJECT, puszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsRemoveLogContainer(core::mem::transmute(plfolog), core::mem::transmute(puszcontainerpath), core::mem::transmute(fforce)) + ClfsRemoveLogContainer(plfolog, puszcontainerpath, fforce) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsRemoveLogContainerSet(plfolog: *const super::super::Foundation::FILE_OBJECT, rgwszcontainerpath: &[super::super::super::Win32::Foundation::UNICODE_STRING], fforce: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainerSet(plfolog : *const super::super::Foundation:: FILE_OBJECT, ccontainers : u16, rgwszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsRemoveLogContainerSet(core::mem::transmute(plfolog), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), core::mem::transmute(fforce)) + ClfsRemoveLogContainerSet(plfolog, rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsReserveAndAppendLog(pvmarshalcontext: *const core::ffi::c_void, rgwriteentries: Option<&[super::super::super::Win32::Storage::FileSystem::CLS_WRITE_ENTRY]>, plsnundonext: Option<*const super::super::super::Win32::Storage::FileSystem::CLS_LSN>, plsnprevious: Option<*const super::super::super::Win32::Storage::FileSystem::CLS_LSN>, rgcbreservation: Option<&mut [i64]>, fflags: u32, plsn: Option<*mut super::super::super::Win32::Storage::FileSystem::CLS_LSN>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsReserveAndAppendLog(pvmarshalcontext : *const core::ffi::c_void, rgwriteentries : *const super::super::super::Win32::Storage::FileSystem:: CLS_WRITE_ENTRY, cwriteentries : u32, plsnundonext : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnprevious : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : u32, plsn : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); ClfsReserveAndAppendLog( - core::mem::transmute(pvmarshalcontext), + pvmarshalcontext, core::mem::transmute(rgwriteentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgwriteentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plsnundonext.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsnprevious.unwrap_or(core::mem::zeroed())), rgcbreservation.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgcbreservation.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(fflags), + fflags, core::mem::transmute(plsn.unwrap_or(core::mem::zeroed())), ) } @@ -308,15 +308,15 @@ pub unsafe fn ClfsReserveAndAppendLog(pvmarshalcontext: *const core::ffi::c_void pub unsafe fn ClfsReserveAndAppendLogAligned(pvmarshalcontext: *const core::ffi::c_void, rgwriteentries: Option<&[super::super::super::Win32::Storage::FileSystem::CLS_WRITE_ENTRY]>, cbentryalignment: u32, plsnundonext: Option<*const super::super::super::Win32::Storage::FileSystem::CLS_LSN>, plsnprevious: Option<*const super::super::super::Win32::Storage::FileSystem::CLS_LSN>, rgcbreservation: Option<&mut [i64]>, fflags: u32, plsn: Option<*mut super::super::super::Win32::Storage::FileSystem::CLS_LSN>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsReserveAndAppendLogAligned(pvmarshalcontext : *const core::ffi::c_void, rgwriteentries : *const super::super::super::Win32::Storage::FileSystem:: CLS_WRITE_ENTRY, cwriteentries : u32, cbentryalignment : u32, plsnundonext : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnprevious : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : u32, plsn : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); ClfsReserveAndAppendLogAligned( - core::mem::transmute(pvmarshalcontext), + pvmarshalcontext, core::mem::transmute(rgwriteentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgwriteentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(cbentryalignment), + cbentryalignment, core::mem::transmute(plsnundonext.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsnprevious.unwrap_or(core::mem::zeroed())), rgcbreservation.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgcbreservation.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(fflags), + fflags, core::mem::transmute(plsn.unwrap_or(core::mem::zeroed())), ) } @@ -324,56 +324,56 @@ pub unsafe fn ClfsReserveAndAppendLogAligned(pvmarshalcontext: *const core::ffi: #[inline] pub unsafe fn ClfsScanLogContainers(pcxscan: *mut super::super::super::Win32::Storage::FileSystem::CLS_SCAN_CONTEXT, escanmode: u8) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsScanLogContainers(pcxscan : *mut super::super::super::Win32::Storage::FileSystem:: CLS_SCAN_CONTEXT, escanmode : u8) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsScanLogContainers(core::mem::transmute(pcxscan), core::mem::transmute(escanmode)) + ClfsScanLogContainers(core::mem::transmute(pcxscan), escanmode) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsSetArchiveTail(plfolog: *const super::super::Foundation::FILE_OBJECT, plsnarchivetail: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsSetArchiveTail(plfolog : *const super::super::Foundation:: FILE_OBJECT, plsnarchivetail : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsSetArchiveTail(core::mem::transmute(plfolog), core::mem::transmute(plsnarchivetail)) + ClfsSetArchiveTail(plfolog, plsnarchivetail) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsSetEndOfLog(plfolog: *const super::super::Foundation::FILE_OBJECT, plsnend: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsSetEndOfLog(plfolog : *const super::super::Foundation:: FILE_OBJECT, plsnend : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsSetEndOfLog(core::mem::transmute(plfolog), core::mem::transmute(plsnend)) + ClfsSetEndOfLog(plfolog, plsnend) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsSetLogFileInformation(plfolog: *const super::super::Foundation::FILE_OBJECT, einformationclass: super::super::super::Win32::Storage::FileSystem::CLS_LOG_INFORMATION_CLASS, pinfobuffer: *const core::ffi::c_void, cbbuffer: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsSetLogFileInformation(plfolog : *const super::super::Foundation:: FILE_OBJECT, einformationclass : super::super::super::Win32::Storage::FileSystem:: CLS_LOG_INFORMATION_CLASS, pinfobuffer : *const core::ffi::c_void, cbbuffer : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsSetLogFileInformation(core::mem::transmute(plfolog), core::mem::transmute(einformationclass), core::mem::transmute(pinfobuffer), core::mem::transmute(cbbuffer)) + ClfsSetLogFileInformation(plfolog, einformationclass, pinfobuffer, cbbuffer) } #[inline] pub unsafe fn ClfsTerminateReadLog(pvcursorcontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsTerminateReadLog(pvcursorcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsTerminateReadLog(core::mem::transmute(pvcursorcontext)) + ClfsTerminateReadLog(pvcursorcontext) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ClfsWriteRestartArea(pvmarshalcontext: *mut core::ffi::c_void, pvrestartbuffer: *const core::ffi::c_void, cbrestartbuffer: u32, plsnbase: Option<*const super::super::super::Win32::Storage::FileSystem::CLS_LSN>, fflags: u32, pcbwritten: Option<*mut u32>, plsnnext: Option<*mut super::super::super::Win32::Storage::FileSystem::CLS_LSN>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("clfs.sys" "system" fn ClfsWriteRestartArea(pvmarshalcontext : *mut core::ffi::c_void, pvrestartbuffer : *const core::ffi::c_void, cbrestartbuffer : u32, plsnbase : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, fflags : u32, pcbwritten : *mut u32, plsnnext : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsWriteRestartArea(core::mem::transmute(pvmarshalcontext), core::mem::transmute(pvrestartbuffer), core::mem::transmute(cbrestartbuffer), core::mem::transmute(plsnbase.unwrap_or(core::mem::zeroed())), core::mem::transmute(fflags), core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsnnext.unwrap_or(core::mem::zeroed()))) + ClfsWriteRestartArea(core::mem::transmute(pvmarshalcontext), pvrestartbuffer, cbrestartbuffer, core::mem::transmute(plsnbase.unwrap_or(core::mem::zeroed())), fflags, core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsnnext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CmCallbackGetKeyObjectID(cookie: *const i64, object: *const core::ffi::c_void, objectid: Option<*mut usize>, objectname: Option<*mut *mut super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CmCallbackGetKeyObjectID(cookie : *const i64, object : *const core::ffi::c_void, objectid : *mut usize, objectname : *mut *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - CmCallbackGetKeyObjectID(core::mem::transmute(cookie), core::mem::transmute(object), core::mem::transmute(objectid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectname.unwrap_or(core::mem::zeroed()))) + CmCallbackGetKeyObjectID(cookie, object, core::mem::transmute(objectid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CmCallbackGetKeyObjectIDEx(cookie: *const i64, object: *const core::ffi::c_void, objectid: Option<*mut usize>, objectname: Option<*mut *mut super::super::super::Win32::Foundation::UNICODE_STRING>, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CmCallbackGetKeyObjectIDEx(cookie : *const i64, object : *const core::ffi::c_void, objectid : *mut usize, objectname : *mut *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - CmCallbackGetKeyObjectIDEx(core::mem::transmute(cookie), core::mem::transmute(object), core::mem::transmute(objectid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + CmCallbackGetKeyObjectIDEx(cookie, object, core::mem::transmute(objectid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectname.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn CmCallbackReleaseKeyObjectIDEx(objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING) { windows_targets::link!("ntoskrnl.exe" "system" fn CmCallbackReleaseKeyObjectIDEx(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING)); - CmCallbackReleaseKeyObjectIDEx(core::mem::transmute(objectname)) + CmCallbackReleaseKeyObjectIDEx(objectname) } #[inline] pub unsafe fn CmGetBoundTransaction(cookie: *const i64, object: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn CmGetBoundTransaction(cookie : *const i64, object : *const core::ffi::c_void) -> *mut core::ffi::c_void); - CmGetBoundTransaction(core::mem::transmute(cookie), core::mem::transmute(object)) + CmGetBoundTransaction(cookie, object) } #[inline] pub unsafe fn CmGetCallbackVersion(major: Option<*mut u32>, minor: Option<*mut u32>) { @@ -383,27 +383,27 @@ pub unsafe fn CmGetCallbackVersion(major: Option<*mut u32>, minor: Option<*mut u #[inline] pub unsafe fn CmRegisterCallback(function: PEX_CALLBACK_FUNCTION, context: Option<*const core::ffi::c_void>, cookie: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CmRegisterCallback(function : PEX_CALLBACK_FUNCTION, context : *const core::ffi::c_void, cookie : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - CmRegisterCallback(core::mem::transmute(function), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(cookie)) + CmRegisterCallback(function, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(cookie)) } #[inline] pub unsafe fn CmRegisterCallbackEx(function: PEX_CALLBACK_FUNCTION, altitude: *const super::super::super::Win32::Foundation::UNICODE_STRING, driver: *const core::ffi::c_void, context: Option<*const core::ffi::c_void>, cookie: *mut i64, reserved: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CmRegisterCallbackEx(function : PEX_CALLBACK_FUNCTION, altitude : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driver : *const core::ffi::c_void, context : *const core::ffi::c_void, cookie : *mut i64, reserved : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - CmRegisterCallbackEx(core::mem::transmute(function), core::mem::transmute(altitude), core::mem::transmute(driver), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(cookie), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + CmRegisterCallbackEx(function, altitude, driver, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(cookie), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CmSetCallbackObjectContext(object: *mut core::ffi::c_void, cookie: *const i64, newcontext: *const core::ffi::c_void, oldcontext: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CmSetCallbackObjectContext(object : *mut core::ffi::c_void, cookie : *const i64, newcontext : *const core::ffi::c_void, oldcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - CmSetCallbackObjectContext(core::mem::transmute(object), core::mem::transmute(cookie), core::mem::transmute(newcontext), core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) + CmSetCallbackObjectContext(core::mem::transmute(object), cookie, newcontext, core::mem::transmute(oldcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CmUnRegisterCallback(cookie: i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn CmUnRegisterCallback(cookie : i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - CmUnRegisterCallback(core::mem::transmute(cookie)) + CmUnRegisterCallback(cookie) } #[inline] pub unsafe fn DbgBreakPointWithStatus(status: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn DbgBreakPointWithStatus(status : u32)); - DbgBreakPointWithStatus(core::mem::transmute(status)) + DbgBreakPointWithStatus(status) } #[inline] pub unsafe fn DbgPrint(format: P0) -> u32 @@ -419,7 +419,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdll.dll" "cdecl" fn DbgPrintEx(componentid : u32, level : u32, format : windows_core::PCSTR) -> u32); - DbgPrintEx(core::mem::transmute(componentid), core::mem::transmute(level), format.param().abi()) + DbgPrintEx(componentid, level, format.param().abi()) } #[inline] pub unsafe fn DbgPrintReturnControlC(format: P0) -> u32 @@ -440,65 +440,65 @@ where #[inline] pub unsafe fn DbgQueryDebugFilterState(componentid: u32, level: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn DbgQueryDebugFilterState(componentid : u32, level : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgQueryDebugFilterState(core::mem::transmute(componentid), core::mem::transmute(level)) + DbgQueryDebugFilterState(componentid, level) } #[inline] pub unsafe fn DbgSetDebugFilterState(componentid: u32, level: u32, state: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn DbgSetDebugFilterState(componentid : u32, level : u32, state : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgSetDebugFilterState(core::mem::transmute(componentid), core::mem::transmute(level), core::mem::transmute(state)) + DbgSetDebugFilterState(componentid, level, state) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn DbgSetDebugPrintCallback(debugprintcallback: PDEBUG_PRINT_CALLBACK, enable: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn DbgSetDebugPrintCallback(debugprintcallback : PDEBUG_PRINT_CALLBACK, enable : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgSetDebugPrintCallback(core::mem::transmute(debugprintcallback), core::mem::transmute(enable)) + DbgSetDebugPrintCallback(debugprintcallback, enable) } #[inline] pub unsafe fn EtwActivityIdControl(controlcode: u32, activityid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwActivityIdControl(controlcode : u32, activityid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwActivityIdControl(core::mem::transmute(controlcode), core::mem::transmute(activityid)) + EtwActivityIdControl(controlcode, core::mem::transmute(activityid)) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwEventEnabled(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, eventdescriptor: *const super::super::super::Win32::System::Diagnostics::Etw::EVENT_DESCRIPTOR) -> bool { windows_targets::link!("ntdll.dll" "system" fn EtwEventEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR) -> bool); - EtwEventEnabled(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor)) + EtwEventEnabled(reghandle, eventdescriptor) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwProviderEnabled(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, level: u8, keyword: u64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn EtwProviderEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, level : u8, keyword : u64) -> bool); - EtwProviderEnabled(core::mem::transmute(reghandle), core::mem::transmute(level), core::mem::transmute(keyword)) + EtwProviderEnabled(reghandle, level, keyword) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwRegister(providerid: *const windows_core::GUID, enablecallback: Option, callbackcontext: Option<*const core::ffi::c_void>, reghandle: *mut super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwRegister(providerid : *const windows_core::GUID, enablecallback : PETWENABLECALLBACK, callbackcontext : *const core::ffi::c_void, reghandle : *mut super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwRegister(core::mem::transmute(providerid), core::mem::transmute(enablecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(reghandle)) + EtwRegister(providerid, core::mem::transmute(enablecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(reghandle)) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwSetInformation(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, informationclass: super::super::super::Win32::System::Diagnostics::Etw::EVENT_INFO_CLASS, eventinformation: Option<*const core::ffi::c_void>, informationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwSetInformation(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, informationclass : super::super::super::Win32::System::Diagnostics::Etw:: EVENT_INFO_CLASS, eventinformation : *const core::ffi::c_void, informationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwSetInformation(core::mem::transmute(reghandle), core::mem::transmute(informationclass), core::mem::transmute(eventinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(informationlength)) + EtwSetInformation(reghandle, informationclass, core::mem::transmute(eventinformation.unwrap_or(core::mem::zeroed())), informationlength) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwUnregister(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwUnregister(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwUnregister(core::mem::transmute(reghandle)) + EtwUnregister(reghandle) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwWrite(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, eventdescriptor: *const super::super::super::Win32::System::Diagnostics::Etw::EVENT_DESCRIPTOR, activityid: Option<*const windows_core::GUID>, userdata: Option<&[super::super::super::Win32::System::Diagnostics::Etw::EVENT_DATA_DESCRIPTOR]>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwWrite(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR, activityid : *const windows_core::GUID, userdatacount : u32, userdata : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DATA_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwWrite(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor), core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + EtwWrite(reghandle, eventdescriptor, core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwWriteEx(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, eventdescriptor: *const super::super::super::Win32::System::Diagnostics::Etw::EVENT_DESCRIPTOR, filter: u64, flags: u32, activityid: Option<*const windows_core::GUID>, relatedactivityid: Option<*const windows_core::GUID>, userdata: Option<&[super::super::super::Win32::System::Diagnostics::Etw::EVENT_DATA_DESCRIPTOR]>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwWriteEx(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR, filter : u64, flags : u32, activityid : *const windows_core::GUID, relatedactivityid : *const windows_core::GUID, userdatacount : u32, userdata : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DATA_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwWriteEx(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor), core::mem::transmute(filter), core::mem::transmute(flags), core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + EtwWriteEx(reghandle, eventdescriptor, filter, flags, core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] @@ -507,13 +507,13 @@ where P4: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn EtwWriteString(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, level : u8, keyword : u64, activityid : *const windows_core::GUID, string : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwWriteString(core::mem::transmute(reghandle), core::mem::transmute(level), core::mem::transmute(keyword), core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), string.param().abi()) + EtwWriteString(reghandle, level, keyword, core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), string.param().abi()) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] pub unsafe fn EtwWriteTransfer(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, eventdescriptor: *const super::super::super::Win32::System::Diagnostics::Etw::EVENT_DESCRIPTOR, activityid: Option<*const windows_core::GUID>, relatedactivityid: Option<*const windows_core::GUID>, userdata: Option<&[super::super::super::Win32::System::Diagnostics::Etw::EVENT_DATA_DESCRIPTOR]>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn EtwWriteTransfer(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR, activityid : *const windows_core::GUID, relatedactivityid : *const windows_core::GUID, userdatacount : u32, userdata : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DATA_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwWriteTransfer(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor), core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + EtwWriteTransfer(reghandle, eventdescriptor, core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -530,24 +530,24 @@ pub unsafe fn ExAcquireFastMutexUnsafe(fastmutex: *mut super::super::Foundation: #[inline] pub unsafe fn ExAcquirePushLockExclusiveEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquirePushLockExclusiveEx(pushlock : *mut usize, flags : u32)); - ExAcquirePushLockExclusiveEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + ExAcquirePushLockExclusiveEx(core::mem::transmute(pushlock), flags) } #[inline] pub unsafe fn ExAcquirePushLockSharedEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquirePushLockSharedEx(pushlock : *mut usize, flags : u32)); - ExAcquirePushLockSharedEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + ExAcquirePushLockSharedEx(core::mem::transmute(pushlock), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExAcquireResourceExclusiveLite(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceExclusiveLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); - ExAcquireResourceExclusiveLite(core::mem::transmute(resource), core::mem::transmute(wait)) + ExAcquireResourceExclusiveLite(core::mem::transmute(resource), wait) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExAcquireResourceSharedLite(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceSharedLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); - ExAcquireResourceSharedLite(core::mem::transmute(resource), core::mem::transmute(wait)) + ExAcquireResourceSharedLite(core::mem::transmute(resource), wait) } #[inline] pub unsafe fn ExAcquireRundownProtection(runref: *mut EX_RUNDOWN_REF) -> bool { @@ -558,30 +558,30 @@ pub unsafe fn ExAcquireRundownProtection(runref: *mut EX_RUNDOWN_REF) -> bool { #[inline] pub unsafe fn ExAcquireRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE) -> bool); - ExAcquireRundownProtectionCacheAware(core::mem::transmute(runrefcacheaware)) + ExAcquireRundownProtectionCacheAware(runrefcacheaware) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE, count: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32) -> bool); - ExAcquireRundownProtectionCacheAwareEx(core::mem::transmute(runrefcacheaware), core::mem::transmute(count)) + ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware, count) } #[inline] pub unsafe fn ExAcquireRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionEx(runref : *mut EX_RUNDOWN_REF, count : u32) -> bool); - ExAcquireRundownProtectionEx(core::mem::transmute(runref), core::mem::transmute(count)) + ExAcquireRundownProtectionEx(core::mem::transmute(runref), count) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExAcquireSharedStarveExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedStarveExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); - ExAcquireSharedStarveExclusive(core::mem::transmute(resource), core::mem::transmute(wait)) + ExAcquireSharedStarveExclusive(core::mem::transmute(resource), wait) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExAcquireSharedWaitForExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedWaitForExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); - ExAcquireSharedWaitForExclusive(core::mem::transmute(resource), core::mem::transmute(wait)) + ExAcquireSharedWaitForExclusive(core::mem::transmute(resource), wait) } #[inline] pub unsafe fn ExAcquireSpinLockExclusive(spinlock: *mut i32) -> u8 { @@ -607,65 +607,65 @@ pub unsafe fn ExAcquireSpinLockSharedAtDpcLevel(spinlock: *mut i32) { #[inline] pub unsafe fn ExAllocateCacheAwareRundownProtection(pooltype: super::super::Foundation::POOL_TYPE, pooltag: u32) -> super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocateCacheAwareRundownProtection(pooltype : super::super::Foundation:: POOL_TYPE, pooltag : u32) -> super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE); - ExAllocateCacheAwareRundownProtection(core::mem::transmute(pooltype), core::mem::transmute(pooltag)) + ExAllocateCacheAwareRundownProtection(pooltype, pooltag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAllocatePool(pooltype: super::super::Foundation::POOL_TYPE, numberofbytes: usize) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePool(pooltype : super::super::Foundation:: POOL_TYPE, numberofbytes : usize) -> *mut core::ffi::c_void); - ExAllocatePool(core::mem::transmute(pooltype), core::mem::transmute(numberofbytes)) + ExAllocatePool(pooltype, numberofbytes) } #[inline] pub unsafe fn ExAllocatePool2(flags: u64, numberofbytes: usize, tag: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePool2(flags : u64, numberofbytes : usize, tag : u32) -> *mut core::ffi::c_void); - ExAllocatePool2(core::mem::transmute(flags), core::mem::transmute(numberofbytes), core::mem::transmute(tag)) + ExAllocatePool2(flags, numberofbytes, tag) } #[inline] pub unsafe fn ExAllocatePool3(flags: u64, numberofbytes: usize, tag: u32, extendedparameters: Option<&[POOL_EXTENDED_PARAMETER]>) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePool3(flags : u64, numberofbytes : usize, tag : u32, extendedparameters : *const POOL_EXTENDED_PARAMETER, extendedparameterscount : u32) -> *mut core::ffi::c_void); - ExAllocatePool3(core::mem::transmute(flags), core::mem::transmute(numberofbytes), core::mem::transmute(tag), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ExAllocatePool3(flags, numberofbytes, tag, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAllocatePoolWithQuota(pooltype: super::super::Foundation::POOL_TYPE, numberofbytes: usize) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePoolWithQuota(pooltype : super::super::Foundation:: POOL_TYPE, numberofbytes : usize) -> *mut core::ffi::c_void); - ExAllocatePoolWithQuota(core::mem::transmute(pooltype), core::mem::transmute(numberofbytes)) + ExAllocatePoolWithQuota(pooltype, numberofbytes) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAllocatePoolWithQuotaTag(pooltype: super::super::Foundation::POOL_TYPE, numberofbytes: usize, tag: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePoolWithQuotaTag(pooltype : super::super::Foundation:: POOL_TYPE, numberofbytes : usize, tag : u32) -> *mut core::ffi::c_void); - ExAllocatePoolWithQuotaTag(core::mem::transmute(pooltype), core::mem::transmute(numberofbytes), core::mem::transmute(tag)) + ExAllocatePoolWithQuotaTag(pooltype, numberofbytes, tag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAllocatePoolWithTag(pooltype: super::super::Foundation::POOL_TYPE, numberofbytes: usize, tag: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePoolWithTag(pooltype : super::super::Foundation:: POOL_TYPE, numberofbytes : usize, tag : u32) -> *mut core::ffi::c_void); - ExAllocatePoolWithTag(core::mem::transmute(pooltype), core::mem::transmute(numberofbytes), core::mem::transmute(tag)) + ExAllocatePoolWithTag(pooltype, numberofbytes, tag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAllocatePoolWithTagPriority(pooltype: super::super::Foundation::POOL_TYPE, numberofbytes: usize, tag: u32, priority: EX_POOL_PRIORITY) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePoolWithTagPriority(pooltype : super::super::Foundation:: POOL_TYPE, numberofbytes : usize, tag : u32, priority : EX_POOL_PRIORITY) -> *mut core::ffi::c_void); - ExAllocatePoolWithTagPriority(core::mem::transmute(pooltype), core::mem::transmute(numberofbytes), core::mem::transmute(tag), core::mem::transmute(priority)) + ExAllocatePoolWithTagPriority(pooltype, numberofbytes, tag, priority) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAllocateTimer(callback: Option, callbackcontext: Option<*const core::ffi::c_void>, attributes: u32) -> super::super::Foundation::PEX_TIMER { windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocateTimer(callback : PEXT_CALLBACK, callbackcontext : *const core::ffi::c_void, attributes : u32) -> super::super::Foundation:: PEX_TIMER); - ExAllocateTimer(core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(attributes)) + ExAllocateTimer(core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), attributes) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExCancelTimer(timer: super::super::Foundation::PEX_TIMER, parameters: Option<*const core::ffi::c_void>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExCancelTimer(timer : super::super::Foundation:: PEX_TIMER, parameters : *const core::ffi::c_void) -> bool); - ExCancelTimer(core::mem::transmute(timer), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) + ExCancelTimer(timer, core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExCleanupRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExCleanupRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExCleanupRundownProtectionCacheAware(core::mem::transmute(runrefcacheaware)) + ExCleanupRundownProtectionCacheAware(runrefcacheaware) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -677,12 +677,12 @@ pub unsafe fn ExConvertExclusiveToSharedLite(resource: *mut super::super::Founda #[inline] pub unsafe fn ExCreateCallback(callbackobject: *mut super::super::Foundation::PCALLBACK_OBJECT, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, create: bool, allowmultiplecallbacks: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExCreateCallback(callbackobject : *mut super::super::Foundation:: PCALLBACK_OBJECT, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, create : bool, allowmultiplecallbacks : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExCreateCallback(core::mem::transmute(callbackobject), core::mem::transmute(objectattributes), core::mem::transmute(create), core::mem::transmute(allowmultiplecallbacks)) + ExCreateCallback(core::mem::transmute(callbackobject), objectattributes, create, allowmultiplecallbacks) } #[inline] pub unsafe fn ExCreatePool(flags: u32, tag: usize, params: Option<*const POOL_CREATE_EXTENDED_PARAMS>, poolhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExCreatePool(flags : u32, tag : usize, params : *const POOL_CREATE_EXTENDED_PARAMS, poolhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExCreatePool(core::mem::transmute(flags), core::mem::transmute(tag), core::mem::transmute(params.unwrap_or(core::mem::zeroed())), core::mem::transmute(poolhandle)) + ExCreatePool(flags, tag, core::mem::transmute(params.unwrap_or(core::mem::zeroed())), core::mem::transmute(poolhandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -694,12 +694,12 @@ pub unsafe fn ExDeleteResourceLite(resource: *mut super::super::Foundation::ERES #[inline] pub unsafe fn ExDeleteTimer(timer: super::super::Foundation::PEX_TIMER, cancel: bool, wait: bool, parameters: Option<*const EXT_DELETE_PARAMETERS>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteTimer(timer : super::super::Foundation:: PEX_TIMER, cancel : bool, wait : bool, parameters : *const EXT_DELETE_PARAMETERS) -> bool); - ExDeleteTimer(core::mem::transmute(timer), core::mem::transmute(cancel), core::mem::transmute(wait), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) + ExDeleteTimer(timer, cancel, wait, core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExDestroyPool(poolhandle: super::super::super::Win32::Foundation::HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExDestroyPool(poolhandle : super::super::super::Win32::Foundation:: HANDLE)); - ExDestroyPool(core::mem::transmute(poolhandle)) + ExDestroyPool(poolhandle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -722,19 +722,19 @@ pub unsafe fn ExEnterCriticalRegionAndAcquireSharedWaitForExclusive(resource: *m #[inline] pub unsafe fn ExEnumerateSystemFirmwareTables(firmwaretableprovidersignature: u32, firmwaretablebuffer: Option<*mut core::ffi::c_void>, bufferlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExEnumerateSystemFirmwareTables(firmwaretableprovidersignature : u32, firmwaretablebuffer : *mut core::ffi::c_void, bufferlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExEnumerateSystemFirmwareTables(core::mem::transmute(firmwaretableprovidersignature), core::mem::transmute(firmwaretablebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ExEnumerateSystemFirmwareTables(firmwaretableprovidersignature, core::mem::transmute(firmwaretablebuffer.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn ExExtendZone(zone: *mut ZONE_HEADER, segment: *mut core::ffi::c_void, segmentsize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExExtendZone(zone : *mut ZONE_HEADER, segment : *mut core::ffi::c_void, segmentsize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExExtendZone(core::mem::transmute(zone), core::mem::transmute(segment), core::mem::transmute(segmentsize)) + ExExtendZone(core::mem::transmute(zone), core::mem::transmute(segment), segmentsize) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExFreeCacheAwareRundownProtection(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExFreeCacheAwareRundownProtection(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExFreeCacheAwareRundownProtection(core::mem::transmute(runrefcacheaware)) + ExFreeCacheAwareRundownProtection(runrefcacheaware) } #[inline] pub unsafe fn ExFreePool(p: *mut core::ffi::c_void) { @@ -744,23 +744,23 @@ pub unsafe fn ExFreePool(p: *mut core::ffi::c_void) { #[inline] pub unsafe fn ExFreePool2(p: *mut core::ffi::c_void, tag: u32, extendedparameters: Option<&[POOL_EXTENDED_PARAMETER]>) { windows_targets::link!("ntoskrnl.exe" "system" fn ExFreePool2(p : *mut core::ffi::c_void, tag : u32, extendedparameters : *const POOL_EXTENDED_PARAMETER, extendedparameterscount : u32)); - ExFreePool2(core::mem::transmute(p), core::mem::transmute(tag), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ExFreePool2(core::mem::transmute(p), tag, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn ExFreePoolWithTag(p: *mut core::ffi::c_void, tag: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExFreePoolWithTag(p : *mut core::ffi::c_void, tag : u32)); - ExFreePoolWithTag(core::mem::transmute(p), core::mem::transmute(tag)) + ExFreePoolWithTag(core::mem::transmute(p), tag) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExGetExclusiveWaiterCount(resource: *const super::super::Foundation::ERESOURCE) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn ExGetExclusiveWaiterCount(resource : *const super::super::Foundation:: ERESOURCE) -> u32); - ExGetExclusiveWaiterCount(core::mem::transmute(resource)) + ExGetExclusiveWaiterCount(resource) } #[inline] pub unsafe fn ExGetFirmwareEnvironmentVariable(variablename: *const super::super::super::Win32::Foundation::UNICODE_STRING, vendorguid: *const windows_core::GUID, value: Option<*mut core::ffi::c_void>, valuelength: *mut u32, attributes: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExGetFirmwareEnvironmentVariable(variablename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, vendorguid : *const windows_core::GUID, value : *mut core::ffi::c_void, valuelength : *mut u32, attributes : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExGetFirmwareEnvironmentVariable(core::mem::transmute(variablename), core::mem::transmute(vendorguid), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuelength), core::mem::transmute(attributes.unwrap_or(core::mem::zeroed()))) + ExGetFirmwareEnvironmentVariable(variablename, vendorguid, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuelength), core::mem::transmute(attributes.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -777,12 +777,12 @@ pub unsafe fn ExGetPreviousMode() -> i8 { #[inline] pub unsafe fn ExGetSharedWaiterCount(resource: *const super::super::Foundation::ERESOURCE) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn ExGetSharedWaiterCount(resource : *const super::super::Foundation:: ERESOURCE) -> u32); - ExGetSharedWaiterCount(core::mem::transmute(resource)) + ExGetSharedWaiterCount(resource) } #[inline] pub unsafe fn ExGetSystemFirmwareTable(firmwaretableprovidersignature: u32, firmwaretableid: u32, firmwaretablebuffer: Option<*mut core::ffi::c_void>, bufferlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExGetSystemFirmwareTable(firmwaretableprovidersignature : u32, firmwaretableid : u32, firmwaretablebuffer : *mut core::ffi::c_void, bufferlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExGetSystemFirmwareTable(core::mem::transmute(firmwaretableprovidersignature), core::mem::transmute(firmwaretableid), core::mem::transmute(firmwaretablebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ExGetSystemFirmwareTable(firmwaretableprovidersignature, firmwaretableid, core::mem::transmute(firmwaretablebuffer.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExInitializePushLock() -> usize { @@ -808,30 +808,30 @@ pub unsafe fn ExInitializeRundownProtection() -> EX_RUNDOWN_REF { #[inline] pub unsafe fn ExInitializeRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE, runrefsize: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn ExInitializeRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, runrefsize : usize)); - ExInitializeRundownProtectionCacheAware(core::mem::transmute(runrefcacheaware), core::mem::transmute(runrefsize)) + ExInitializeRundownProtectionCacheAware(runrefcacheaware, runrefsize) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, flags : u32)); - ExInitializeRundownProtectionCacheAwareEx(core::mem::transmute(runrefcacheaware), core::mem::transmute(flags)) + ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware, flags) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn ExInitializeZone(zone: *mut ZONE_HEADER, blocksize: u32, initialsegment: *mut core::ffi::c_void, initialsegmentsize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExInitializeZone(zone : *mut ZONE_HEADER, blocksize : u32, initialsegment : *mut core::ffi::c_void, initialsegmentsize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExInitializeZone(core::mem::transmute(zone), core::mem::transmute(blocksize), core::mem::transmute(initialsegment), core::mem::transmute(initialsegmentsize)) + ExInitializeZone(core::mem::transmute(zone), blocksize, core::mem::transmute(initialsegment), initialsegmentsize) } #[inline] pub unsafe fn ExInterlockedAddLargeInteger(addend: *mut i64, increment: i64, lock: *mut usize) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn ExInterlockedAddLargeInteger(addend : *mut i64, increment : i64, lock : *mut usize) -> i64); - ExInterlockedAddLargeInteger(core::mem::transmute(addend), core::mem::transmute(increment), core::mem::transmute(lock)) + ExInterlockedAddLargeInteger(core::mem::transmute(addend), increment, core::mem::transmute(lock)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn ExInterlockedExtendZone(zone: *mut ZONE_HEADER, segment: *mut core::ffi::c_void, segmentsize: u32, lock: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExInterlockedExtendZone(zone : *mut ZONE_HEADER, segment : *mut core::ffi::c_void, segmentsize : u32, lock : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExInterlockedExtendZone(core::mem::transmute(zone), core::mem::transmute(segment), core::mem::transmute(segmentsize), core::mem::transmute(lock)) + ExInterlockedExtendZone(core::mem::transmute(zone), core::mem::transmute(segment), segmentsize, core::mem::transmute(lock)) } #[inline] pub unsafe fn ExIsManufacturingModeEnabled() -> bool { @@ -841,19 +841,19 @@ pub unsafe fn ExIsManufacturingModeEnabled() -> bool { #[inline] pub unsafe fn ExIsProcessorFeaturePresent(processorfeature: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExIsProcessorFeaturePresent(processorfeature : u32) -> bool); - ExIsProcessorFeaturePresent(core::mem::transmute(processorfeature)) + ExIsProcessorFeaturePresent(processorfeature) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExIsResourceAcquiredExclusiveLite(resource: *const super::super::Foundation::ERESOURCE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredExclusiveLite(resource : *const super::super::Foundation:: ERESOURCE) -> bool); - ExIsResourceAcquiredExclusiveLite(core::mem::transmute(resource)) + ExIsResourceAcquiredExclusiveLite(resource) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExIsResourceAcquiredSharedLite(resource: *const super::super::Foundation::ERESOURCE) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredSharedLite(resource : *const super::super::Foundation:: ERESOURCE) -> u32); - ExIsResourceAcquiredSharedLite(core::mem::transmute(resource)) + ExIsResourceAcquiredSharedLite(resource) } #[inline] pub unsafe fn ExIsSoftBoot() -> bool { @@ -864,13 +864,13 @@ pub unsafe fn ExIsSoftBoot() -> bool { pub unsafe fn ExLocalTimeToSystemTime(localtime: *const i64) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn ExLocalTimeToSystemTime(localtime : *const i64, systemtime : *mut i64)); let mut result__ = core::mem::zeroed(); - ExLocalTimeToSystemTime(core::mem::transmute(localtime), &mut result__); + ExLocalTimeToSystemTime(localtime, &mut result__); result__ } #[inline] pub unsafe fn ExNotifyCallback(callbackobject: *const core::ffi::c_void, argument1: Option<*const core::ffi::c_void>, argument2: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn ExNotifyCallback(callbackobject : *const core::ffi::c_void, argument1 : *const core::ffi::c_void, argument2 : *const core::ffi::c_void)); - ExNotifyCallback(core::mem::transmute(callbackobject), core::mem::transmute(argument1.unwrap_or(core::mem::zeroed())), core::mem::transmute(argument2.unwrap_or(core::mem::zeroed()))) + ExNotifyCallback(callbackobject, core::mem::transmute(argument1.unwrap_or(core::mem::zeroed())), core::mem::transmute(argument2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExQueryTimerResolution(maximumtime: *mut u32, minimumtime: *mut u32, currenttime: *mut u32) { @@ -881,7 +881,7 @@ pub unsafe fn ExQueryTimerResolution(maximumtime: *mut u32, minimumtime: *mut u3 #[inline] pub unsafe fn ExQueueWorkItem(workitem: *mut super::super::Foundation::WORK_QUEUE_ITEM, queuetype: WORK_QUEUE_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExQueueWorkItem(workitem : *mut super::super::Foundation:: WORK_QUEUE_ITEM, queuetype : WORK_QUEUE_TYPE)); - ExQueueWorkItem(core::mem::transmute(workitem), core::mem::transmute(queuetype)) + ExQueueWorkItem(core::mem::transmute(workitem), queuetype) } #[inline] pub unsafe fn ExRaiseAccessViolation() { @@ -896,7 +896,7 @@ pub unsafe fn ExRaiseDatatypeMisalignment() { #[inline] pub unsafe fn ExRaiseStatus(status: super::super::super::Win32::Foundation::NTSTATUS) { windows_targets::link!("ntoskrnl.exe" "system" fn ExRaiseStatus(status : super::super::super::Win32::Foundation:: NTSTATUS)); - ExRaiseStatus(core::mem::transmute(status)) + ExRaiseStatus(status) } #[inline] pub unsafe fn ExReInitializeRundownProtection(runref: *mut EX_RUNDOWN_REF) { @@ -907,13 +907,13 @@ pub unsafe fn ExReInitializeRundownProtection(runref: *mut EX_RUNDOWN_REF) { #[inline] pub unsafe fn ExReInitializeRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReInitializeRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExReInitializeRundownProtectionCacheAware(core::mem::transmute(runrefcacheaware)) + ExReInitializeRundownProtectionCacheAware(runrefcacheaware) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExRegisterCallback(callbackobject: super::super::Foundation::PCALLBACK_OBJECT, callbackfunction: PCALLBACK_FUNCTION, callbackcontext: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn ExRegisterCallback(callbackobject : super::super::Foundation:: PCALLBACK_OBJECT, callbackfunction : PCALLBACK_FUNCTION, callbackcontext : *const core::ffi::c_void) -> *mut core::ffi::c_void); - ExRegisterCallback(core::mem::transmute(callbackobject), core::mem::transmute(callbackfunction), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + ExRegisterCallback(callbackobject, callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -936,12 +936,12 @@ pub unsafe fn ExReleaseFastMutexUnsafe(fastmutex: *mut super::super::Foundation: #[inline] pub unsafe fn ExReleasePushLockExclusiveEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleasePushLockExclusiveEx(pushlock : *mut usize, flags : u32)); - ExReleasePushLockExclusiveEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + ExReleasePushLockExclusiveEx(core::mem::transmute(pushlock), flags) } #[inline] pub unsafe fn ExReleasePushLockSharedEx(pushlock: *mut usize, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleasePushLockSharedEx(pushlock : *mut usize, flags : u32)); - ExReleasePushLockSharedEx(core::mem::transmute(pushlock), core::mem::transmute(flags)) + ExReleasePushLockSharedEx(core::mem::transmute(pushlock), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -953,7 +953,7 @@ pub unsafe fn ExReleaseResourceAndLeaveCriticalRegion(resource: *mut super::supe #[inline] pub unsafe fn ExReleaseResourceForThreadLite(resource: *mut super::super::Foundation::ERESOURCE, resourcethreadid: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseResourceForThreadLite(resource : *mut super::super::Foundation:: ERESOURCE, resourcethreadid : usize)); - ExReleaseResourceForThreadLite(core::mem::transmute(resource), core::mem::transmute(resourcethreadid)) + ExReleaseResourceForThreadLite(core::mem::transmute(resource), resourcethreadid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -970,23 +970,23 @@ pub unsafe fn ExReleaseRundownProtection(runref: *mut EX_RUNDOWN_REF) { #[inline] pub unsafe fn ExReleaseRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExReleaseRundownProtectionCacheAware(core::mem::transmute(runrefcacheaware)) + ExReleaseRundownProtectionCacheAware(runrefcacheaware) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExReleaseRundownProtectionCacheAwareEx(runref: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE, count: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseRundownProtectionCacheAwareEx(runref : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32)); - ExReleaseRundownProtectionCacheAwareEx(core::mem::transmute(runref), core::mem::transmute(count)) + ExReleaseRundownProtectionCacheAwareEx(runref, count) } #[inline] pub unsafe fn ExReleaseRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseRundownProtectionEx(runref : *mut EX_RUNDOWN_REF, count : u32)); - ExReleaseRundownProtectionEx(core::mem::transmute(runref), core::mem::transmute(count)) + ExReleaseRundownProtectionEx(core::mem::transmute(runref), count) } #[inline] pub unsafe fn ExReleaseSpinLockExclusive(spinlock: *mut i32, oldirql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseSpinLockExclusive(spinlock : *mut i32, oldirql : u8)); - ExReleaseSpinLockExclusive(core::mem::transmute(spinlock), core::mem::transmute(oldirql)) + ExReleaseSpinLockExclusive(core::mem::transmute(spinlock), oldirql) } #[inline] pub unsafe fn ExReleaseSpinLockExclusiveFromDpcLevel(spinlock: *mut i32) { @@ -996,7 +996,7 @@ pub unsafe fn ExReleaseSpinLockExclusiveFromDpcLevel(spinlock: *mut i32) { #[inline] pub unsafe fn ExReleaseSpinLockShared(spinlock: *mut i32, oldirql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseSpinLockShared(spinlock : *mut i32, oldirql : u8)); - ExReleaseSpinLockShared(core::mem::transmute(spinlock), core::mem::transmute(oldirql)) + ExReleaseSpinLockShared(core::mem::transmute(spinlock), oldirql) } #[inline] pub unsafe fn ExReleaseSpinLockSharedFromDpcLevel(spinlock: *mut i32) { @@ -1014,45 +1014,45 @@ pub unsafe fn ExRundownCompleted() -> EX_RUNDOWN_REF { #[inline] pub unsafe fn ExRundownCompletedCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExRundownCompletedCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExRundownCompletedCacheAware(core::mem::transmute(runrefcacheaware)) + ExRundownCompletedCacheAware(runrefcacheaware) } #[inline] pub unsafe fn ExSecurePoolUpdate(securepoolhandle: super::super::super::Win32::Foundation::HANDLE, tag: u32, allocation: *const core::ffi::c_void, cookie: usize, offset: usize, size: usize, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExSecurePoolUpdate(securepoolhandle : super::super::super::Win32::Foundation:: HANDLE, tag : u32, allocation : *const core::ffi::c_void, cookie : usize, offset : usize, size : usize, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExSecurePoolUpdate(core::mem::transmute(securepoolhandle), core::mem::transmute(tag), core::mem::transmute(allocation), core::mem::transmute(cookie), core::mem::transmute(offset), core::mem::transmute(size), core::mem::transmute(buffer)) + ExSecurePoolUpdate(securepoolhandle, tag, allocation, cookie, offset, size, buffer) } #[inline] pub unsafe fn ExSecurePoolValidate(securepoolhandle: super::super::super::Win32::Foundation::HANDLE, tag: u32, allocation: *const core::ffi::c_void, cookie: usize) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn ExSecurePoolValidate(securepoolhandle : super::super::super::Win32::Foundation:: HANDLE, tag : u32, allocation : *const core::ffi::c_void, cookie : usize) -> u32); - ExSecurePoolValidate(core::mem::transmute(securepoolhandle), core::mem::transmute(tag), core::mem::transmute(allocation), core::mem::transmute(cookie)) + ExSecurePoolValidate(securepoolhandle, tag, allocation, cookie) } #[inline] pub unsafe fn ExSetFirmwareEnvironmentVariable(variablename: *const super::super::super::Win32::Foundation::UNICODE_STRING, vendorguid: *const windows_core::GUID, value: Option<*const core::ffi::c_void>, valuelength: u32, attributes: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetFirmwareEnvironmentVariable(variablename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, vendorguid : *const windows_core::GUID, value : *const core::ffi::c_void, valuelength : u32, attributes : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExSetFirmwareEnvironmentVariable(core::mem::transmute(variablename), core::mem::transmute(vendorguid), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuelength), core::mem::transmute(attributes)) + ExSetFirmwareEnvironmentVariable(variablename, vendorguid, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), valuelength, attributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExSetResourceOwnerPointer(resource: *mut super::super::Foundation::ERESOURCE, ownerpointer: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetResourceOwnerPointer(resource : *mut super::super::Foundation:: ERESOURCE, ownerpointer : *const core::ffi::c_void)); - ExSetResourceOwnerPointer(core::mem::transmute(resource), core::mem::transmute(ownerpointer)) + ExSetResourceOwnerPointer(core::mem::transmute(resource), ownerpointer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExSetResourceOwnerPointerEx(resource: *mut super::super::Foundation::ERESOURCE, ownerpointer: *const core::ffi::c_void, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetResourceOwnerPointerEx(resource : *mut super::super::Foundation:: ERESOURCE, ownerpointer : *const core::ffi::c_void, flags : u32)); - ExSetResourceOwnerPointerEx(core::mem::transmute(resource), core::mem::transmute(ownerpointer), core::mem::transmute(flags)) + ExSetResourceOwnerPointerEx(core::mem::transmute(resource), ownerpointer, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExSetTimer(timer: super::super::Foundation::PEX_TIMER, duetime: i64, period: i64, parameters: Option<*const _EXT_SET_PARAMETERS_V0>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimer(timer : super::super::Foundation:: PEX_TIMER, duetime : i64, period : i64, parameters : *const _EXT_SET_PARAMETERS_V0) -> bool); - ExSetTimer(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) + ExSetTimer(timer, duetime, period, core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExSetTimerResolution(desiredtime: u32, setresolution: bool) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimerResolution(desiredtime : u32, setresolution : bool) -> u32); - ExSetTimerResolution(core::mem::transmute(desiredtime), core::mem::transmute(setresolution)) + ExSetTimerResolution(desiredtime, setresolution) } #[inline] pub unsafe fn ExSizeOfRundownProtectionCacheAware() -> usize { @@ -1063,7 +1063,7 @@ pub unsafe fn ExSizeOfRundownProtectionCacheAware() -> usize { pub unsafe fn ExSystemTimeToLocalTime(systemtime: *const i64) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn ExSystemTimeToLocalTime(systemtime : *const i64, localtime : *mut i64)); let mut result__ = core::mem::zeroed(); - ExSystemTimeToLocalTime(core::mem::transmute(systemtime), &mut result__); + ExSystemTimeToLocalTime(systemtime, &mut result__); result__ } #[inline] @@ -1101,7 +1101,7 @@ pub unsafe fn ExUuidCreate(uuid: *mut windows_core::GUID) -> super::super::super #[inline] pub unsafe fn ExVerifySuite(suitetype: super::super::super::Win32::System::Kernel::SUITE_TYPE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ExVerifySuite(suitetype : super::super::super::Win32::System::Kernel:: SUITE_TYPE) -> bool); - ExVerifySuite(core::mem::transmute(suitetype)) + ExVerifySuite(suitetype) } #[inline] pub unsafe fn ExWaitForRundownProtectionRelease(runref: *mut EX_RUNDOWN_REF) { @@ -1112,35 +1112,35 @@ pub unsafe fn ExWaitForRundownProtectionRelease(runref: *mut EX_RUNDOWN_REF) { #[inline] pub unsafe fn ExWaitForRundownProtectionReleaseCacheAware(runref: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) { windows_targets::link!("ntoskrnl.exe" "system" fn ExWaitForRundownProtectionReleaseCacheAware(runref : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExWaitForRundownProtectionReleaseCacheAware(core::mem::transmute(runref)) + ExWaitForRundownProtectionReleaseCacheAware(runref) } #[inline] pub unsafe fn FsRtlIsTotalDeviceFailure(status: super::super::super::Win32::Foundation::NTSTATUS) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsTotalDeviceFailure(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); - FsRtlIsTotalDeviceFailure(core::mem::transmute(status)) + FsRtlIsTotalDeviceFailure(status) } #[inline] pub unsafe fn HalAcquireDisplayOwnership(resetdisplayparameters: PHAL_RESET_DISPLAY_PARAMETERS) { windows_targets::link!("hal.dll" "system" fn HalAcquireDisplayOwnership(resetdisplayparameters : PHAL_RESET_DISPLAY_PARAMETERS)); - HalAcquireDisplayOwnership(core::mem::transmute(resetdisplayparameters)) + HalAcquireDisplayOwnership(resetdisplayparameters) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_IscsiDisc", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn HalAllocateAdapterChannel(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, wcb: *const WAIT_CONTEXT_BLOCK, numberofmapregisters: u32, executionroutine: super::super::Foundation::DRIVER_CONTROL) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("hal.dll" "system" fn HalAllocateAdapterChannel(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, wcb : *const WAIT_CONTEXT_BLOCK, numberofmapregisters : u32, executionroutine : super::super::Foundation:: DRIVER_CONTROL) -> super::super::super::Win32::Foundation:: NTSTATUS); - HalAllocateAdapterChannel(core::mem::transmute(adapterobject), core::mem::transmute(wcb), core::mem::transmute(numberofmapregisters), core::mem::transmute(executionroutine)) + HalAllocateAdapterChannel(adapterobject, wcb, numberofmapregisters, executionroutine) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalAllocateCommonBuffer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, length: u32, logicaladdress: *mut i64, cacheenabled: bool) -> *mut core::ffi::c_void { windows_targets::link!("hal.dll" "system" fn HalAllocateCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : *mut i64, cacheenabled : bool) -> *mut core::ffi::c_void); - HalAllocateCommonBuffer(core::mem::transmute(adapterobject), core::mem::transmute(length), core::mem::transmute(logicaladdress), core::mem::transmute(cacheenabled)) + HalAllocateCommonBuffer(adapterobject, length, core::mem::transmute(logicaladdress), cacheenabled) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalAllocateCrashDumpRegisters(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, numberofmapregisters: *mut u32) -> *mut core::ffi::c_void { windows_targets::link!("hal.dll" "system" fn HalAllocateCrashDumpRegisters(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, numberofmapregisters : *mut u32) -> *mut core::ffi::c_void); - HalAllocateCrashDumpRegisters(core::mem::transmute(adapterobject), core::mem::transmute(numberofmapregisters)) + HalAllocateCrashDumpRegisters(adapterobject, core::mem::transmute(numberofmapregisters)) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -1152,99 +1152,99 @@ pub unsafe fn HalAllocateHardwareCounters(groupaffinty: Option<&[super::super::s #[inline] pub unsafe fn HalAssignSlotResources(registrypath: *const super::super::super::Win32::Foundation::UNICODE_STRING, driverclassname: *const super::super::super::Win32::Foundation::UNICODE_STRING, driverobject: *const super::super::Foundation::DRIVER_OBJECT, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, bustype: INTERFACE_TYPE, busnumber: u32, slotnumber: u32, allocatedresources: *mut *mut CM_RESOURCE_LIST) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("hal.dll" "system" fn HalAssignSlotResources(registrypath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, bustype : INTERFACE_TYPE, busnumber : u32, slotnumber : u32, allocatedresources : *mut *mut CM_RESOURCE_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); - HalAssignSlotResources(core::mem::transmute(registrypath), core::mem::transmute(driverclassname), core::mem::transmute(driverobject), core::mem::transmute(deviceobject), core::mem::transmute(bustype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(allocatedresources)) + HalAssignSlotResources(registrypath, driverclassname, driverobject, deviceobject, bustype, busnumber, slotnumber, core::mem::transmute(allocatedresources)) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn HalBugCheckSystem(errorsource: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, errorrecord: *const WHEA_ERROR_RECORD) { windows_targets::link!("hal.dll" "system" fn HalBugCheckSystem(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, errorrecord : *const WHEA_ERROR_RECORD)); - HalBugCheckSystem(core::mem::transmute(errorsource), core::mem::transmute(errorrecord)) + HalBugCheckSystem(errorsource, errorrecord) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalDmaAllocateCrashDumpRegistersEx(adapter: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, numberofmapregisters: u32, r#type: HAL_DMA_CRASH_DUMP_REGISTER_TYPE, mapregisterbase: *mut *mut core::ffi::c_void, mapregistersavailable: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("hal.dll" "system" fn HalDmaAllocateCrashDumpRegistersEx(adapter : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, numberofmapregisters : u32, r#type : HAL_DMA_CRASH_DUMP_REGISTER_TYPE, mapregisterbase : *mut *mut core::ffi::c_void, mapregistersavailable : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - HalDmaAllocateCrashDumpRegistersEx(core::mem::transmute(adapter), core::mem::transmute(numberofmapregisters), core::mem::transmute(r#type), core::mem::transmute(mapregisterbase), core::mem::transmute(mapregistersavailable)) + HalDmaAllocateCrashDumpRegistersEx(adapter, numberofmapregisters, r#type, core::mem::transmute(mapregisterbase), core::mem::transmute(mapregistersavailable)) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalDmaFreeCrashDumpRegistersEx(adapter: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, r#type: HAL_DMA_CRASH_DUMP_REGISTER_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("hal.dll" "system" fn HalDmaFreeCrashDumpRegistersEx(adapter : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, r#type : HAL_DMA_CRASH_DUMP_REGISTER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - HalDmaFreeCrashDumpRegistersEx(core::mem::transmute(adapter), core::mem::transmute(r#type)) + HalDmaFreeCrashDumpRegistersEx(adapter, r#type) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn HalExamineMBR(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsize: u32, mbrtypeidentifier: u32, buffer: *mut *mut core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn HalExamineMBR(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, mbrtypeidentifier : u32, buffer : *mut *mut core::ffi::c_void)); - HalExamineMBR(core::mem::transmute(deviceobject), core::mem::transmute(sectorsize), core::mem::transmute(mbrtypeidentifier), core::mem::transmute(buffer)) + HalExamineMBR(deviceobject, sectorsize, mbrtypeidentifier, core::mem::transmute(buffer)) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalFreeCommonBuffer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, length: u32, logicaladdress: i64, virtualaddress: *const core::ffi::c_void, cacheenabled: bool) { windows_targets::link!("hal.dll" "system" fn HalFreeCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : i64, virtualaddress : *const core::ffi::c_void, cacheenabled : bool)); - HalFreeCommonBuffer(core::mem::transmute(adapterobject), core::mem::transmute(length), core::mem::transmute(logicaladdress), core::mem::transmute(virtualaddress), core::mem::transmute(cacheenabled)) + HalFreeCommonBuffer(adapterobject, length, logicaladdress, virtualaddress, cacheenabled) } #[inline] pub unsafe fn HalFreeHardwareCounters(countersethandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("hal.dll" "system" fn HalFreeHardwareCounters(countersethandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - HalFreeHardwareCounters(core::mem::transmute(countersethandle)) + HalFreeHardwareCounters(countersethandle) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalGetAdapter(devicedescription: *const DEVICE_DESCRIPTION, numberofmapregisters: *mut u32) -> *mut super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT { windows_targets::link!("hal.dll" "system" fn HalGetAdapter(devicedescription : *const DEVICE_DESCRIPTION, numberofmapregisters : *mut u32) -> *mut super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT); - HalGetAdapter(core::mem::transmute(devicedescription), core::mem::transmute(numberofmapregisters)) + HalGetAdapter(devicedescription, core::mem::transmute(numberofmapregisters)) } #[inline] pub unsafe fn HalGetBusData(busdatatype: BUS_DATA_TYPE, busnumber: u32, slotnumber: u32, buffer: *mut core::ffi::c_void, length: u32) -> u32 { windows_targets::link!("hal.dll" "system" fn HalGetBusData(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *mut core::ffi::c_void, length : u32) -> u32); - HalGetBusData(core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(buffer), core::mem::transmute(length)) + HalGetBusData(busdatatype, busnumber, slotnumber, core::mem::transmute(buffer), length) } #[inline] pub unsafe fn HalGetBusDataByOffset(busdatatype: BUS_DATA_TYPE, busnumber: u32, slotnumber: u32, buffer: *mut core::ffi::c_void, offset: u32, length: u32) -> u32 { windows_targets::link!("hal.dll" "system" fn HalGetBusDataByOffset(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *mut core::ffi::c_void, offset : u32, length : u32) -> u32); - HalGetBusDataByOffset(core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length)) + HalGetBusDataByOffset(busdatatype, busnumber, slotnumber, core::mem::transmute(buffer), offset, length) } #[inline] pub unsafe fn HalGetInterruptVector(interfacetype: INTERFACE_TYPE, busnumber: u32, businterruptlevel: u32, businterruptvector: u32, irql: *mut u8, affinity: *mut usize) -> u32 { windows_targets::link!("hal.dll" "system" fn HalGetInterruptVector(interfacetype : INTERFACE_TYPE, busnumber : u32, businterruptlevel : u32, businterruptvector : u32, irql : *mut u8, affinity : *mut usize) -> u32); - HalGetInterruptVector(core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(businterruptlevel), core::mem::transmute(businterruptvector), core::mem::transmute(irql), core::mem::transmute(affinity)) + HalGetInterruptVector(interfacetype, busnumber, businterruptlevel, businterruptvector, core::mem::transmute(irql), core::mem::transmute(affinity)) } #[inline] pub unsafe fn HalMakeBeep(frequency: u32) -> bool { windows_targets::link!("hal.dll" "system" fn HalMakeBeep(frequency : u32) -> bool); - HalMakeBeep(core::mem::transmute(frequency)) + HalMakeBeep(frequency) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalReadDmaCounter(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT) -> u32 { windows_targets::link!("hal.dll" "system" fn HalReadDmaCounter(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT) -> u32); - HalReadDmaCounter(core::mem::transmute(adapterobject)) + HalReadDmaCounter(adapterobject) } #[inline] pub unsafe fn HalSetBusData(busdatatype: BUS_DATA_TYPE, busnumber: u32, slotnumber: u32, buffer: *const core::ffi::c_void, length: u32) -> u32 { windows_targets::link!("hal.dll" "system" fn HalSetBusData(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *const core::ffi::c_void, length : u32) -> u32); - HalSetBusData(core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(buffer), core::mem::transmute(length)) + HalSetBusData(busdatatype, busnumber, slotnumber, buffer, length) } #[inline] pub unsafe fn HalSetBusDataByOffset(busdatatype: BUS_DATA_TYPE, busnumber: u32, slotnumber: u32, buffer: *const core::ffi::c_void, offset: u32, length: u32) -> u32 { windows_targets::link!("hal.dll" "system" fn HalSetBusDataByOffset(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *const core::ffi::c_void, offset : u32, length : u32) -> u32); - HalSetBusDataByOffset(core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length)) + HalSetBusDataByOffset(busdatatype, busnumber, slotnumber, buffer, offset, length) } #[inline] pub unsafe fn HalTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u32, busaddress: i64, addressspace: *mut u32, translatedaddress: *mut i64) -> bool { windows_targets::link!("hal.dll" "system" fn HalTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> bool); - HalTranslateBusAddress(core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(busaddress), core::mem::transmute(addressspace), core::mem::transmute(translatedaddress)) + HalTranslateBusAddress(interfacetype, busnumber, busaddress, core::mem::transmute(addressspace), core::mem::transmute(translatedaddress)) } #[inline] pub unsafe fn HvlRegisterWheaErrorNotification(callback: PHVL_WHEA_ERROR_NOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn HvlRegisterWheaErrorNotification(callback : PHVL_WHEA_ERROR_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - HvlRegisterWheaErrorNotification(core::mem::transmute(callback)) + HvlRegisterWheaErrorNotification(callback) } #[inline] pub unsafe fn HvlUnregisterWheaErrorNotification(callback: PHVL_WHEA_ERROR_NOTIFICATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn HvlUnregisterWheaErrorNotification(callback : PHVL_WHEA_ERROR_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - HvlUnregisterWheaErrorNotification(core::mem::transmute(callback)) + HvlUnregisterWheaErrorNotification(callback) } #[inline] pub unsafe fn IoAcquireCancelSpinLock() -> u8 { @@ -1257,13 +1257,13 @@ pub unsafe fn IoAcquireCancelSpinLock() -> u8 { #[inline] pub unsafe fn IoAcquireKsrPersistentMemory(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, buffer: *mut core::ffi::c_void, size: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAcquireKsrPersistentMemory(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, buffer : *mut core::ffi::c_void, size : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAcquireKsrPersistentMemory(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(size)) + IoAcquireKsrPersistentMemory(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(size)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAcquireKsrPersistentMemoryEx(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, physicaldeviceid: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, datatag: Option<*const u16>, dataversion: Option<*mut u32>, buffer: *mut core::ffi::c_void, size: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAcquireKsrPersistentMemoryEx(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, physicaldeviceid : *const super::super::super::Win32::Foundation:: UNICODE_STRING, datatag : *const u16, dataversion : *mut u32, buffer : *mut core::ffi::c_void, size : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAcquireKsrPersistentMemoryEx(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(datatag.unwrap_or(core::mem::zeroed())), core::mem::transmute(dataversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(size)) + IoAcquireKsrPersistentMemoryEx(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(datatag.unwrap_or(core::mem::zeroed())), core::mem::transmute(dataversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(size)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1272,144 +1272,144 @@ where P2: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoAcquireRemoveLockEx(removelock : *mut IO_REMOVE_LOCK, tag : *const core::ffi::c_void, file : windows_core::PCSTR, line : u32, remlocksize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAcquireRemoveLockEx(core::mem::transmute(removelock), core::mem::transmute(tag.unwrap_or(core::mem::zeroed())), file.param().abi(), core::mem::transmute(line), core::mem::transmute(remlocksize)) + IoAcquireRemoveLockEx(core::mem::transmute(removelock), core::mem::transmute(tag.unwrap_or(core::mem::zeroed())), file.param().abi(), line, remlocksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_IscsiDisc", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateAdapterChannel(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, numberofmapregisters: u32, executionroutine: super::super::Foundation::DRIVER_CONTROL, context: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateAdapterChannel(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, numberofmapregisters : u32, executionroutine : super::super::Foundation:: DRIVER_CONTROL, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAllocateAdapterChannel(core::mem::transmute(adapterobject), core::mem::transmute(deviceobject), core::mem::transmute(numberofmapregisters), core::mem::transmute(executionroutine), core::mem::transmute(context)) + IoAllocateAdapterChannel(adapterobject, deviceobject, numberofmapregisters, executionroutine, context) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateController(controllerobject: *const CONTROLLER_OBJECT, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, executionroutine: super::super::Foundation::DRIVER_CONTROL, context: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateController(controllerobject : *const CONTROLLER_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, executionroutine : super::super::Foundation:: DRIVER_CONTROL, context : *const core::ffi::c_void)); - IoAllocateController(core::mem::transmute(controllerobject), core::mem::transmute(deviceobject), core::mem::transmute(executionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoAllocateController(controllerobject, deviceobject, executionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateDriverObjectExtension(driverobject: *const super::super::Foundation::DRIVER_OBJECT, clientidentificationaddress: *const core::ffi::c_void, driverobjectextensionsize: u32, driverobjectextension: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateDriverObjectExtension(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, clientidentificationaddress : *const core::ffi::c_void, driverobjectextensionsize : u32, driverobjectextension : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAllocateDriverObjectExtension(core::mem::transmute(driverobject), core::mem::transmute(clientidentificationaddress), core::mem::transmute(driverobjectextensionsize), core::mem::transmute(driverobjectextension)) + IoAllocateDriverObjectExtension(driverobject, clientidentificationaddress, driverobjectextensionsize, core::mem::transmute(driverobjectextension)) } #[inline] pub unsafe fn IoAllocateErrorLogEntry(ioobject: *const core::ffi::c_void, entrysize: u8) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateErrorLogEntry(ioobject : *const core::ffi::c_void, entrysize : u8) -> *mut core::ffi::c_void); - IoAllocateErrorLogEntry(core::mem::transmute(ioobject), core::mem::transmute(entrysize)) + IoAllocateErrorLogEntry(ioobject, entrysize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateIrp(stacksize: i8, chargequota: bool) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrp(stacksize : i8, chargequota : bool) -> *mut super::super::Foundation:: IRP); - IoAllocateIrp(core::mem::transmute(stacksize), core::mem::transmute(chargequota)) + IoAllocateIrp(stacksize, chargequota) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateIrpEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, stacksize: i8, chargequota: bool) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8, chargequota : bool) -> *mut super::super::Foundation:: IRP); - IoAllocateIrpEx(core::mem::transmute(deviceobject), core::mem::transmute(stacksize), core::mem::transmute(chargequota)) + IoAllocateIrpEx(deviceobject, stacksize, chargequota) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateMdl(virtualaddress: Option<*const core::ffi::c_void>, length: u32, secondarybuffer: bool, chargequota: bool, irp: Option<*mut super::super::Foundation::IRP>) -> *mut super::super::Foundation::MDL { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateMdl(virtualaddress : *const core::ffi::c_void, length : u32, secondarybuffer : bool, chargequota : bool, irp : *mut super::super::Foundation:: IRP) -> *mut super::super::Foundation:: MDL); - IoAllocateMdl(core::mem::transmute(virtualaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(secondarybuffer), core::mem::transmute(chargequota), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) + IoAllocateMdl(core::mem::transmute(virtualaddress.unwrap_or(core::mem::zeroed())), length, secondarybuffer, chargequota, core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateSfioStreamIdentifier(fileobject: *const super::super::Foundation::FILE_OBJECT, length: u32, signature: *const core::ffi::c_void, streamidentifier: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateSfioStreamIdentifier(fileobject : *const super::super::Foundation:: FILE_OBJECT, length : u32, signature : *const core::ffi::c_void, streamidentifier : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAllocateSfioStreamIdentifier(core::mem::transmute(fileobject), core::mem::transmute(length), core::mem::transmute(signature), core::mem::transmute(streamidentifier)) + IoAllocateSfioStreamIdentifier(fileobject, length, signature, core::mem::transmute(streamidentifier)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateWorkItem(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::Foundation::PIO_WORKITEM { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateWorkItem(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::Foundation:: PIO_WORKITEM); - IoAllocateWorkItem(core::mem::transmute(deviceobject)) + IoAllocateWorkItem(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAssignResources(registrypath: *const super::super::super::Win32::Foundation::UNICODE_STRING, driverclassname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, driverobject: *const super::super::Foundation::DRIVER_OBJECT, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, requestedresources: Option<*const IO_RESOURCE_REQUIREMENTS_LIST>, allocatedresources: *mut *mut CM_RESOURCE_LIST) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAssignResources(registrypath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, requestedresources : *const IO_RESOURCE_REQUIREMENTS_LIST, allocatedresources : *mut *mut CM_RESOURCE_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAssignResources(core::mem::transmute(registrypath), core::mem::transmute(driverclassname.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverobject), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(requestedresources.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocatedresources)) + IoAssignResources(registrypath, core::mem::transmute(driverclassname.unwrap_or(core::mem::zeroed())), driverobject, core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(requestedresources.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocatedresources)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAttachDevice(sourcedevice: *const super::super::Foundation::DEVICE_OBJECT, targetdevice: *const super::super::super::Win32::Foundation::UNICODE_STRING, attacheddevice: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAttachDevice(sourcedevice : *const super::super::Foundation:: DEVICE_OBJECT, targetdevice : *const super::super::super::Win32::Foundation:: UNICODE_STRING, attacheddevice : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAttachDevice(core::mem::transmute(sourcedevice), core::mem::transmute(targetdevice), core::mem::transmute(attacheddevice)) + IoAttachDevice(sourcedevice, targetdevice, core::mem::transmute(attacheddevice)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAttachDeviceByPointer(sourcedevice: *const super::super::Foundation::DEVICE_OBJECT, targetdevice: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAttachDeviceByPointer(sourcedevice : *const super::super::Foundation:: DEVICE_OBJECT, targetdevice : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAttachDeviceByPointer(core::mem::transmute(sourcedevice), core::mem::transmute(targetdevice)) + IoAttachDeviceByPointer(sourcedevice, targetdevice) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAttachDeviceToDeviceStack(sourcedevice: *const super::super::Foundation::DEVICE_OBJECT, targetdevice: *const super::super::Foundation::DEVICE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoAttachDeviceToDeviceStack(sourcedevice : *const super::super::Foundation:: DEVICE_OBJECT, targetdevice : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoAttachDeviceToDeviceStack(core::mem::transmute(sourcedevice), core::mem::transmute(targetdevice)) + IoAttachDeviceToDeviceStack(sourcedevice, targetdevice) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAttachDeviceToDeviceStackSafe(sourcedevice: *const super::super::Foundation::DEVICE_OBJECT, targetdevice: *const super::super::Foundation::DEVICE_OBJECT, attachedtodeviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoAttachDeviceToDeviceStackSafe(sourcedevice : *const super::super::Foundation:: DEVICE_OBJECT, targetdevice : *const super::super::Foundation:: DEVICE_OBJECT, attachedtodeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoAttachDeviceToDeviceStackSafe(core::mem::transmute(sourcedevice), core::mem::transmute(targetdevice), core::mem::transmute(attachedtodeviceobject)) + IoAttachDeviceToDeviceStackSafe(sourcedevice, targetdevice, core::mem::transmute(attachedtodeviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoBuildAsynchronousFsdRequest(majorfunction: u32, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, buffer: Option<*mut core::ffi::c_void>, length: Option, startingoffset: Option<*const i64>, iostatusblock: Option<*const super::super::super::Win32::System::IO::IO_STATUS_BLOCK>) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildAsynchronousFsdRequest(majorfunction : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, buffer : *mut core::ffi::c_void, length : u32, startingoffset : *const i64, iostatusblock : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); - IoBuildAsynchronousFsdRequest(core::mem::transmute(majorfunction), core::mem::transmute(deviceobject), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length.unwrap_or(core::mem::zeroed())), core::mem::transmute(startingoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock.unwrap_or(core::mem::zeroed()))) + IoBuildAsynchronousFsdRequest(majorfunction, deviceobject, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length.unwrap_or(core::mem::zeroed())), core::mem::transmute(startingoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoBuildDeviceIoControlRequest(iocontrolcode: u32, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32, internaldeviceiocontrol: bool, event: Option<*const super::super::Foundation::KEVENT>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildDeviceIoControlRequest(iocontrolcode : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, internaldeviceiocontrol : bool, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); - IoBuildDeviceIoControlRequest(core::mem::transmute(iocontrolcode), core::mem::transmute(deviceobject), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength), core::mem::transmute(internaldeviceiocontrol), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) + IoBuildDeviceIoControlRequest(iocontrolcode, deviceobject, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength, internaldeviceiocontrol, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoBuildPartialMdl(sourcemdl: *const super::super::Foundation::MDL, targetmdl: *mut super::super::Foundation::MDL, virtualaddress: *mut core::ffi::c_void, length: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildPartialMdl(sourcemdl : *const super::super::Foundation:: MDL, targetmdl : *mut super::super::Foundation:: MDL, virtualaddress : *mut core::ffi::c_void, length : u32)); - IoBuildPartialMdl(core::mem::transmute(sourcemdl), core::mem::transmute(targetmdl), core::mem::transmute(virtualaddress), core::mem::transmute(length)) + IoBuildPartialMdl(sourcemdl, core::mem::transmute(targetmdl), core::mem::transmute(virtualaddress), length) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoBuildSynchronousFsdRequest(majorfunction: u32, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, buffer: *mut core::ffi::c_void, length: u32, startingoffset: Option<*const i64>, event: *const super::super::Foundation::KEVENT, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildSynchronousFsdRequest(majorfunction : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, buffer : *mut core::ffi::c_void, length : u32, startingoffset : *const i64, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); - IoBuildSynchronousFsdRequest(core::mem::transmute(majorfunction), core::mem::transmute(deviceobject), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(startingoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(event), core::mem::transmute(iostatusblock)) + IoBuildSynchronousFsdRequest(majorfunction, deviceobject, core::mem::transmute(buffer), length, core::mem::transmute(startingoffset.unwrap_or(core::mem::zeroed())), event, core::mem::transmute(iostatusblock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCancelFileOpen(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, fileobject: *const super::super::Foundation::FILE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelFileOpen(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fileobject : *const super::super::Foundation:: FILE_OBJECT)); - IoCancelFileOpen(core::mem::transmute(deviceobject), core::mem::transmute(fileobject)) + IoCancelFileOpen(deviceobject, fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCancelIrp(irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelIrp(irp : *const super::super::Foundation:: IRP) -> bool); - IoCancelIrp(core::mem::transmute(irp)) + IoCancelIrp(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCheckLinkShareAccess(desiredaccess: u32, desiredshareaccess: u32, fileobject: Option<*mut super::super::Foundation::FILE_OBJECT>, shareaccess: Option<*mut SHARE_ACCESS>, linkshareaccess: Option<*mut LINK_SHARE_ACCESS>, ioshareaccessflags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckLinkShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS, ioshareaccessflags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckLinkShareAccess(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(shareaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(ioshareaccessflags)) + IoCheckLinkShareAccess(desiredaccess, desiredshareaccess, core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(shareaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), ioshareaccessflags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCheckShareAccess(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, update: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckShareAccess(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(update)) + IoCheckShareAccess(desiredaccess, desiredshareaccess, core::mem::transmute(fileobject), core::mem::transmute(shareaccess), update) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCheckShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, update: bool, writepermission: Option<*const bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : bool, writepermission : *const bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckShareAccessEx(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(update), core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) + IoCheckShareAccessEx(desiredaccess, desiredshareaccess, core::mem::transmute(fileobject), core::mem::transmute(shareaccess), update, core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1420,7 +1420,7 @@ pub unsafe fn IoCleanupIrp(irp: *mut super::super::Foundation::IRP) { #[inline] pub unsafe fn IoClearActivityIdThread(originalid: *const windows_core::GUID) { windows_targets::link!("ntoskrnl.exe" "system" fn IoClearActivityIdThread(originalid : *const windows_core::GUID)); - IoClearActivityIdThread(core::mem::transmute(originalid)) + IoClearActivityIdThread(originalid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1432,7 +1432,7 @@ pub unsafe fn IoClearIrpExtraCreateParameter(irp: *mut super::super::Foundation: #[inline] pub unsafe fn IoConnectInterrupt(interruptobject: *mut super::super::Foundation::PKINTERRUPT, serviceroutine: PKSERVICE_ROUTINE, servicecontext: Option<*const core::ffi::c_void>, spinlock: Option<*const usize>, vector: u32, irql: u8, synchronizeirql: u8, interruptmode: KINTERRUPT_MODE, sharevector: bool, processorenablemask: usize, floatingsave: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoConnectInterrupt(interruptobject : *mut super::super::Foundation:: PKINTERRUPT, serviceroutine : PKSERVICE_ROUTINE, servicecontext : *const core::ffi::c_void, spinlock : *const usize, vector : u32, irql : u8, synchronizeirql : u8, interruptmode : KINTERRUPT_MODE, sharevector : bool, processorenablemask : usize, floatingsave : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoConnectInterrupt(core::mem::transmute(interruptobject), core::mem::transmute(serviceroutine), core::mem::transmute(servicecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(spinlock.unwrap_or(core::mem::zeroed())), core::mem::transmute(vector), core::mem::transmute(irql), core::mem::transmute(synchronizeirql), core::mem::transmute(interruptmode), core::mem::transmute(sharevector), core::mem::transmute(processorenablemask), core::mem::transmute(floatingsave)) + IoConnectInterrupt(core::mem::transmute(interruptobject), serviceroutine, core::mem::transmute(servicecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(spinlock.unwrap_or(core::mem::zeroed())), vector, irql, synchronizeirql, interruptmode, sharevector, processorenablemask, floatingsave) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1444,124 +1444,77 @@ pub unsafe fn IoConnectInterruptEx(parameters: *mut IO_CONNECT_INTERRUPT_PARAMET #[inline] pub unsafe fn IoCreateController(size: u32) -> *mut CONTROLLER_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateController(size : u32) -> *mut CONTROLLER_OBJECT); - IoCreateController(core::mem::transmute(size)) + IoCreateController(size) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCreateDevice(driverobject: *const super::super::Foundation::DRIVER_OBJECT, deviceextensionsize: u32, devicename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, devicetype: u32, devicecharacteristics: u32, exclusive: bool, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceextensionsize : u32, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicetype : u32, devicecharacteristics : u32, exclusive : bool, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateDevice(core::mem::transmute(driverobject), core::mem::transmute(deviceextensionsize), core::mem::transmute(devicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicetype), core::mem::transmute(devicecharacteristics), core::mem::transmute(exclusive), core::mem::transmute(deviceobject)) + IoCreateDevice(driverobject, deviceextensionsize, core::mem::transmute(devicename.unwrap_or(core::mem::zeroed())), devicetype, devicecharacteristics, exclusive, core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCreateDisk(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, disk: Option<*const super::super::super::Win32::System::Ioctl::CREATE_DISK>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDisk(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, disk : *const super::super::super::Win32::System::Ioctl:: CREATE_DISK) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateDisk(core::mem::transmute(deviceobject), core::mem::transmute(disk.unwrap_or(core::mem::zeroed()))) + IoCreateDisk(deviceobject, core::mem::transmute(disk.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn IoCreateFile(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, disposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32, createfiletype: CREATE_FILE_TYPE, internalparameters: Option<*const core::ffi::c_void>, options: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, disposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32, createfiletype : CREATE_FILE_TYPE, internalparameters : *const core::ffi::c_void, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateFile( - core::mem::transmute(filehandle), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), - core::mem::transmute(iostatusblock), - core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileattributes), - core::mem::transmute(shareaccess), - core::mem::transmute(disposition), - core::mem::transmute(createoptions), - core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ealength), - core::mem::transmute(createfiletype), - core::mem::transmute(internalparameters.unwrap_or(core::mem::zeroed())), - core::mem::transmute(options), - ) + IoCreateFile(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, disposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength, createfiletype, core::mem::transmute(internalparameters.unwrap_or(core::mem::zeroed())), options) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn IoCreateFileEx(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, disposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32, createfiletype: CREATE_FILE_TYPE, internalparameters: Option<*const core::ffi::c_void>, options: u32, drivercontext: Option<*const IO_DRIVER_CREATE_CONTEXT>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateFileEx(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, disposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32, createfiletype : CREATE_FILE_TYPE, internalparameters : *const core::ffi::c_void, options : u32, drivercontext : *const IO_DRIVER_CREATE_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateFileEx( - core::mem::transmute(filehandle), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), - core::mem::transmute(iostatusblock), - core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileattributes), - core::mem::transmute(shareaccess), - core::mem::transmute(disposition), - core::mem::transmute(createoptions), - core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ealength), - core::mem::transmute(createfiletype), - core::mem::transmute(internalparameters.unwrap_or(core::mem::zeroed())), - core::mem::transmute(options), - core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed())), - ) + IoCreateFileEx(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, disposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength, createfiletype, core::mem::transmute(internalparameters.unwrap_or(core::mem::zeroed())), options, core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn IoCreateFileSpecifyDeviceObjectHint(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, disposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32, createfiletype: CREATE_FILE_TYPE, internalparameters: Option<*const core::ffi::c_void>, options: u32, deviceobject: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateFileSpecifyDeviceObjectHint(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, disposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32, createfiletype : CREATE_FILE_TYPE, internalparameters : *const core::ffi::c_void, options : u32, deviceobject : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateFileSpecifyDeviceObjectHint( - core::mem::transmute(filehandle), - core::mem::transmute(desiredaccess), - core::mem::transmute(objectattributes), - core::mem::transmute(iostatusblock), - core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileattributes), - core::mem::transmute(shareaccess), - core::mem::transmute(disposition), - core::mem::transmute(createoptions), - core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ealength), - core::mem::transmute(createfiletype), - core::mem::transmute(internalparameters.unwrap_or(core::mem::zeroed())), - core::mem::transmute(options), - core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), - ) + IoCreateFileSpecifyDeviceObjectHint(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, disposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength, createfiletype, core::mem::transmute(internalparameters.unwrap_or(core::mem::zeroed())), options, core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoCreateNotificationEvent(eventname: *const super::super::super::Win32::Foundation::UNICODE_STRING, eventhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> *mut super::super::Foundation::KEVENT { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateNotificationEvent(eventname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> *mut super::super::Foundation:: KEVENT); - IoCreateNotificationEvent(core::mem::transmute(eventname), core::mem::transmute(eventhandle)) + IoCreateNotificationEvent(eventname, core::mem::transmute(eventhandle)) } #[inline] pub unsafe fn IoCreateSymbolicLink(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, devicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateSymbolicLink(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateSymbolicLink(core::mem::transmute(symboliclinkname), core::mem::transmute(devicename)) + IoCreateSymbolicLink(symboliclinkname, devicename) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoCreateSynchronizationEvent(eventname: *const super::super::super::Win32::Foundation::UNICODE_STRING, eventhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> *mut super::super::Foundation::KEVENT { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateSynchronizationEvent(eventname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> *mut super::super::Foundation:: KEVENT); - IoCreateSynchronizationEvent(core::mem::transmute(eventname), core::mem::transmute(eventhandle)) + IoCreateSynchronizationEvent(eventname, core::mem::transmute(eventhandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_WindowsProgramming"))] #[inline] pub unsafe fn IoCreateSystemThread(ioobject: *mut core::ffi::c_void, threadhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, processhandle: Option, clientid: Option<*mut super::super::super::Win32::System::WindowsProgramming::CLIENT_ID>, startroutine: PKSTART_ROUTINE, startcontext: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateSystemThread(ioobject : *mut core::ffi::c_void, threadhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, processhandle : super::super::super::Win32::Foundation:: HANDLE, clientid : *mut super::super::super::Win32::System::WindowsProgramming:: CLIENT_ID, startroutine : PKSTART_ROUTINE, startcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateSystemThread(core::mem::transmute(ioobject), core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientid.unwrap_or(core::mem::zeroed())), core::mem::transmute(startroutine), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed()))) + IoCreateSystemThread(core::mem::transmute(ioobject), core::mem::transmute(threadhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientid.unwrap_or(core::mem::zeroed())), startroutine, core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoCreateUnprotectedSymbolicLink(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, devicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateUnprotectedSymbolicLink(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateUnprotectedSymbolicLink(core::mem::transmute(symboliclinkname), core::mem::transmute(devicename)) + IoCreateUnprotectedSymbolicLink(symboliclinkname, devicename) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCsqInitialize(csq: *mut IO_CSQ, csqinsertirp: PIO_CSQ_INSERT_IRP, csqremoveirp: PIO_CSQ_REMOVE_IRP, csqpeeknextirp: PIO_CSQ_PEEK_NEXT_IRP, csqacquirelock: PIO_CSQ_ACQUIRE_LOCK, csqreleaselock: PIO_CSQ_RELEASE_LOCK, csqcompletecanceledirp: PIO_CSQ_COMPLETE_CANCELED_IRP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCsqInitialize(csq : *mut IO_CSQ, csqinsertirp : PIO_CSQ_INSERT_IRP, csqremoveirp : PIO_CSQ_REMOVE_IRP, csqpeeknextirp : PIO_CSQ_PEEK_NEXT_IRP, csqacquirelock : PIO_CSQ_ACQUIRE_LOCK, csqreleaselock : PIO_CSQ_RELEASE_LOCK, csqcompletecanceledirp : PIO_CSQ_COMPLETE_CANCELED_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCsqInitialize(core::mem::transmute(csq), core::mem::transmute(csqinsertirp), core::mem::transmute(csqremoveirp), core::mem::transmute(csqpeeknextirp), core::mem::transmute(csqacquirelock), core::mem::transmute(csqreleaselock), core::mem::transmute(csqcompletecanceledirp)) + IoCsqInitialize(core::mem::transmute(csq), csqinsertirp, csqremoveirp, csqpeeknextirp, csqacquirelock, csqreleaselock, csqcompletecanceledirp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCsqInitializeEx(csq: *mut IO_CSQ, csqinsertirp: PIO_CSQ_INSERT_IRP_EX, csqremoveirp: PIO_CSQ_REMOVE_IRP, csqpeeknextirp: PIO_CSQ_PEEK_NEXT_IRP, csqacquirelock: PIO_CSQ_ACQUIRE_LOCK, csqreleaselock: PIO_CSQ_RELEASE_LOCK, csqcompletecanceledirp: PIO_CSQ_COMPLETE_CANCELED_IRP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoCsqInitializeEx(csq : *mut IO_CSQ, csqinsertirp : PIO_CSQ_INSERT_IRP_EX, csqremoveirp : PIO_CSQ_REMOVE_IRP, csqpeeknextirp : PIO_CSQ_PEEK_NEXT_IRP, csqacquirelock : PIO_CSQ_ACQUIRE_LOCK, csqreleaselock : PIO_CSQ_RELEASE_LOCK, csqcompletecanceledirp : PIO_CSQ_COMPLETE_CANCELED_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCsqInitializeEx(core::mem::transmute(csq), core::mem::transmute(csqinsertirp), core::mem::transmute(csqremoveirp), core::mem::transmute(csqpeeknextirp), core::mem::transmute(csqacquirelock), core::mem::transmute(csqreleaselock), core::mem::transmute(csqcompletecanceledirp)) + IoCsqInitializeEx(core::mem::transmute(csq), csqinsertirp, csqremoveirp, csqpeeknextirp, csqacquirelock, csqreleaselock, csqcompletecanceledirp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1591,24 +1544,24 @@ pub unsafe fn IoCsqRemoveNextIrp(csq: *mut IO_CSQ, peekcontext: Option<*const co #[inline] pub unsafe fn IoDecrementKeepAliveCount(fileobject: *mut super::super::Foundation::FILE_OBJECT, process: super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoDecrementKeepAliveCount(fileobject : *mut super::super::Foundation:: FILE_OBJECT, process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoDecrementKeepAliveCount(core::mem::transmute(fileobject), core::mem::transmute(process)) + IoDecrementKeepAliveCount(core::mem::transmute(fileobject), process) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoDeleteController(controllerobject: *const CONTROLLER_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoDeleteController(controllerobject : *const CONTROLLER_OBJECT)); - IoDeleteController(core::mem::transmute(controllerobject)) + IoDeleteController(controllerobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoDeleteDevice(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoDeleteDevice(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoDeleteDevice(core::mem::transmute(deviceobject)) + IoDeleteDevice(deviceobject) } #[inline] pub unsafe fn IoDeleteSymbolicLink(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoDeleteSymbolicLink(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoDeleteSymbolicLink(core::mem::transmute(symboliclinkname)) + IoDeleteSymbolicLink(symboliclinkname) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1620,65 +1573,65 @@ pub unsafe fn IoDetachDevice(targetdevice: *mut super::super::Foundation::DEVICE #[inline] pub unsafe fn IoDisconnectInterrupt(interruptobject: super::super::Foundation::PKINTERRUPT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoDisconnectInterrupt(interruptobject : super::super::Foundation:: PKINTERRUPT)); - IoDisconnectInterrupt(core::mem::transmute(interruptobject)) + IoDisconnectInterrupt(interruptobject) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoDisconnectInterruptEx(parameters: *const IO_DISCONNECT_INTERRUPT_PARAMETERS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoDisconnectInterruptEx(parameters : *const IO_DISCONNECT_INTERRUPT_PARAMETERS)); - IoDisconnectInterruptEx(core::mem::transmute(parameters)) + IoDisconnectInterruptEx(parameters) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoEnumerateKsrPersistentMemoryEx(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, physicaldeviceid: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, callback: PIO_PERSISTED_MEMORY_ENUMERATION_CALLBACK, callbackcontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoEnumerateKsrPersistentMemoryEx(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, physicaldeviceid : *const super::super::super::Win32::Foundation:: UNICODE_STRING, callback : PIO_PERSISTED_MEMORY_ENUMERATION_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoEnumerateKsrPersistentMemoryEx(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(callbackcontext)) + IoEnumerateKsrPersistentMemoryEx(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), callback, callbackcontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_IscsiDisc"))] #[inline] pub unsafe fn IoFlushAdapterBuffers(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, mdl: *const super::super::Foundation::MDL, mapregisterbase: *const core::ffi::c_void, currentva: *const core::ffi::c_void, length: u32, writetodevice: bool) -> bool { windows_targets::link!("hal.dll" "system" fn IoFlushAdapterBuffers(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : u32, writetodevice : bool) -> bool); - IoFlushAdapterBuffers(core::mem::transmute(adapterobject), core::mem::transmute(mdl), core::mem::transmute(mapregisterbase), core::mem::transmute(currentva), core::mem::transmute(length), core::mem::transmute(writetodevice)) + IoFlushAdapterBuffers(adapterobject, mdl, mapregisterbase, currentva, length, writetodevice) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoForwardIrpSynchronously(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoForwardIrpSynchronously(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> bool); - IoForwardIrpSynchronously(core::mem::transmute(deviceobject), core::mem::transmute(irp)) + IoForwardIrpSynchronously(deviceobject, irp) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn IoFreeAdapterChannel(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT) { windows_targets::link!("hal.dll" "system" fn IoFreeAdapterChannel(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT)); - IoFreeAdapterChannel(core::mem::transmute(adapterobject)) + IoFreeAdapterChannel(adapterobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoFreeController(controllerobject: *const CONTROLLER_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeController(controllerobject : *const CONTROLLER_OBJECT)); - IoFreeController(core::mem::transmute(controllerobject)) + IoFreeController(controllerobject) } #[inline] pub unsafe fn IoFreeErrorLogEntry(elentry: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeErrorLogEntry(elentry : *const core::ffi::c_void)); - IoFreeErrorLogEntry(core::mem::transmute(elentry)) + IoFreeErrorLogEntry(elentry) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoFreeIrp(irp: *const super::super::Foundation::IRP) { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeIrp(irp : *const super::super::Foundation:: IRP)); - IoFreeIrp(core::mem::transmute(irp)) + IoFreeIrp(irp) } #[inline] pub unsafe fn IoFreeKsrPersistentMemory(datahandle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeKsrPersistentMemory(datahandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoFreeKsrPersistentMemory(core::mem::transmute(datahandle)) + IoFreeKsrPersistentMemory(datahandle) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn IoFreeMapRegisters(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, mapregisterbase: *const core::ffi::c_void, numberofmapregisters: u32) { windows_targets::link!("hal.dll" "system" fn IoFreeMapRegisters(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mapregisterbase : *const core::ffi::c_void, numberofmapregisters : u32)); - IoFreeMapRegisters(core::mem::transmute(adapterobject), core::mem::transmute(mapregisterbase), core::mem::transmute(numberofmapregisters)) + IoFreeMapRegisters(adapterobject, mapregisterbase, numberofmapregisters) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1690,19 +1643,19 @@ pub unsafe fn IoFreeMdl(mdl: *mut super::super::Foundation::MDL) { #[inline] pub unsafe fn IoFreeSfioStreamIdentifier(fileobject: *const super::super::Foundation::FILE_OBJECT, signature: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeSfioStreamIdentifier(fileobject : *const super::super::Foundation:: FILE_OBJECT, signature : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoFreeSfioStreamIdentifier(core::mem::transmute(fileobject), core::mem::transmute(signature)) + IoFreeSfioStreamIdentifier(fileobject, signature) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoFreeWorkItem(ioworkitem: super::super::Foundation::PIO_WORKITEM) { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM)); - IoFreeWorkItem(core::mem::transmute(ioworkitem)) + IoFreeWorkItem(ioworkitem) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetActivityIdIrp(irp: *const super::super::Foundation::IRP, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetActivityIdIrp(irp : *const super::super::Foundation:: IRP, guid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetActivityIdIrp(core::mem::transmute(irp), core::mem::transmute(guid)) + IoGetActivityIdIrp(irp, core::mem::transmute(guid)) } #[inline] pub unsafe fn IoGetActivityIdThread() -> *mut windows_core::GUID { @@ -1713,18 +1666,18 @@ pub unsafe fn IoGetActivityIdThread() -> *mut windows_core::GUID { #[inline] pub unsafe fn IoGetAffinityInterrupt(interruptobject: super::super::Foundation::PKINTERRUPT, groupaffinity: *mut super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetAffinityInterrupt(interruptobject : super::super::Foundation:: PKINTERRUPT, groupaffinity : *mut super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetAffinityInterrupt(core::mem::transmute(interruptobject), core::mem::transmute(groupaffinity)) + IoGetAffinityInterrupt(interruptobject, core::mem::transmute(groupaffinity)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetAttachedDeviceReference(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetAttachedDeviceReference(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetAttachedDeviceReference(core::mem::transmute(deviceobject)) + IoGetAttachedDeviceReference(deviceobject) } #[inline] pub unsafe fn IoGetBootDiskInformation(bootdiskinformation: *mut BOOTDISK_INFORMATION, size: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetBootDiskInformation(bootdiskinformation : *mut BOOTDISK_INFORMATION, size : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetBootDiskInformation(core::mem::transmute(bootdiskinformation), core::mem::transmute(size)) + IoGetBootDiskInformation(core::mem::transmute(bootdiskinformation), size) } #[inline] pub unsafe fn IoGetBootDiskInformationLite(bootdiskinformation: *mut *mut BOOTDISK_INFORMATION_LITE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -1739,7 +1692,7 @@ pub unsafe fn IoGetConfigurationInformation() -> *mut CONFIGURATION_INFORMATION #[inline] pub unsafe fn IoGetContainerInformation(informationclass: IO_CONTAINER_INFORMATION_CLASS, containerobject: Option<*const core::ffi::c_void>, buffer: Option<*mut core::ffi::c_void>, bufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetContainerInformation(informationclass : IO_CONTAINER_INFORMATION_CLASS, containerobject : *const core::ffi::c_void, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetContainerInformation(core::mem::transmute(informationclass), core::mem::transmute(containerobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength)) + IoGetContainerInformation(informationclass, core::mem::transmute(containerobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), bufferlength) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1751,66 +1704,66 @@ pub unsafe fn IoGetCurrentProcess() -> super::super::Foundation::PEPROCESS { #[inline] pub unsafe fn IoGetDeviceDirectory(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT, directorytype: DEVICE_DIRECTORY_TYPE, flags: u32, reserved: *const core::ffi::c_void, devicedirectoryhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceDirectory(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, directorytype : DEVICE_DIRECTORY_TYPE, flags : u32, reserved : *const core::ffi::c_void, devicedirectoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceDirectory(core::mem::transmute(physicaldeviceobject), core::mem::transmute(directorytype), core::mem::transmute(flags), core::mem::transmute(reserved), core::mem::transmute(devicedirectoryhandle)) + IoGetDeviceDirectory(physicaldeviceobject, directorytype, flags, reserved, core::mem::transmute(devicedirectoryhandle)) } #[inline] pub unsafe fn IoGetDeviceInterfaceAlias(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, aliasinterfaceclassguid: *const windows_core::GUID, aliassymboliclinkname: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceInterfaceAlias(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, aliasinterfaceclassguid : *const windows_core::GUID, aliassymboliclinkname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceInterfaceAlias(core::mem::transmute(symboliclinkname), core::mem::transmute(aliasinterfaceclassguid), core::mem::transmute(aliassymboliclinkname)) + IoGetDeviceInterfaceAlias(symboliclinkname, aliasinterfaceclassguid, core::mem::transmute(aliassymboliclinkname)) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn IoGetDeviceInterfacePropertyData(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, propertykey: *const super::super::super::Win32::Foundation::DEVPROPKEY, lcid: u32, flags: Option, size: u32, data: *mut core::ffi::c_void, requiredsize: *mut u32, r#type: *mut super::super::super::Win32::Devices::Properties::DEVPROPTYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceInterfacePropertyData(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, propertykey : *const super::super::super::Win32::Foundation:: DEVPROPKEY, lcid : u32, flags : u32, size : u32, data : *mut core::ffi::c_void, requiredsize : *mut u32, r#type : *mut super::super::super::Win32::Devices::Properties:: DEVPROPTYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceInterfacePropertyData(core::mem::transmute(symboliclinkname), core::mem::transmute(propertykey), core::mem::transmute(lcid), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(data), core::mem::transmute(requiredsize), core::mem::transmute(r#type)) + IoGetDeviceInterfacePropertyData(symboliclinkname, propertykey, lcid, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), size, core::mem::transmute(data), core::mem::transmute(requiredsize), core::mem::transmute(r#type)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDeviceInterfaces(interfaceclassguid: *const windows_core::GUID, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, flags: u32, symboliclinklist: *mut windows_core::PWSTR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceInterfaces(interfaceclassguid : *const windows_core::GUID, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32, symboliclinklist : *mut windows_core::PWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceInterfaces(core::mem::transmute(interfaceclassguid), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(symboliclinklist)) + IoGetDeviceInterfaces(interfaceclassguid, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(symboliclinklist)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDeviceNumaNode(pdo: *const super::super::Foundation::DEVICE_OBJECT, nodenumber: *mut u16) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceNumaNode(pdo : *const super::super::Foundation:: DEVICE_OBJECT, nodenumber : *mut u16) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceNumaNode(core::mem::transmute(pdo), core::mem::transmute(nodenumber)) + IoGetDeviceNumaNode(pdo, core::mem::transmute(nodenumber)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDeviceObjectPointer(objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, desiredaccess: u32, fileobject: *mut *mut super::super::Foundation::FILE_OBJECT, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceObjectPointer(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, desiredaccess : u32, fileobject : *mut *mut super::super::Foundation:: FILE_OBJECT, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceObjectPointer(core::mem::transmute(objectname), core::mem::transmute(desiredaccess), core::mem::transmute(fileobject), core::mem::transmute(deviceobject)) + IoGetDeviceObjectPointer(objectname, desiredaccess, core::mem::transmute(fileobject), core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDeviceProperty(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, deviceproperty: DEVICE_REGISTRY_PROPERTY, bufferlength: u32, propertybuffer: Option<*mut core::ffi::c_void>, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceProperty(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deviceproperty : DEVICE_REGISTRY_PROPERTY, bufferlength : u32, propertybuffer : *mut core::ffi::c_void, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDeviceProperty(core::mem::transmute(deviceobject), core::mem::transmute(deviceproperty), core::mem::transmute(bufferlength), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultlength)) + IoGetDeviceProperty(deviceobject, deviceproperty, bufferlength, core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultlength)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Devices_Properties", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDevicePropertyData(pdo: *const super::super::Foundation::DEVICE_OBJECT, propertykey: *const super::super::super::Win32::Foundation::DEVPROPKEY, lcid: u32, flags: Option, size: u32, data: *mut core::ffi::c_void, requiredsize: *mut u32, r#type: *mut super::super::super::Win32::Devices::Properties::DEVPROPTYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDevicePropertyData(pdo : *const super::super::Foundation:: DEVICE_OBJECT, propertykey : *const super::super::super::Win32::Foundation:: DEVPROPKEY, lcid : u32, flags : u32, size : u32, data : *mut core::ffi::c_void, requiredsize : *mut u32, r#type : *mut super::super::super::Win32::Devices::Properties:: DEVPROPTYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDevicePropertyData(core::mem::transmute(pdo), core::mem::transmute(propertykey), core::mem::transmute(lcid), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(data), core::mem::transmute(requiredsize), core::mem::transmute(r#type)) + IoGetDevicePropertyData(pdo, propertykey, lcid, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), size, core::mem::transmute(data), core::mem::transmute(requiredsize), core::mem::transmute(r#type)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDmaAdapter(physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicedescription: *const DEVICE_DESCRIPTION, numberofmapregisters: *mut u32) -> *mut DMA_ADAPTER { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDmaAdapter(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicedescription : *const DEVICE_DESCRIPTION, numberofmapregisters : *mut u32) -> *mut DMA_ADAPTER); - IoGetDmaAdapter(core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicedescription), core::mem::transmute(numberofmapregisters)) + IoGetDmaAdapter(core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), devicedescription, core::mem::transmute(numberofmapregisters)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDriverDirectory(driverobject: *const super::super::Foundation::DRIVER_OBJECT, directorytype: DRIVER_DIRECTORY_TYPE, flags: u32, driverdirectoryhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDriverDirectory(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, directorytype : DRIVER_DIRECTORY_TYPE, flags : u32, driverdirectoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetDriverDirectory(core::mem::transmute(driverobject), core::mem::transmute(directorytype), core::mem::transmute(flags), core::mem::transmute(driverdirectoryhandle)) + IoGetDriverDirectory(driverobject, directorytype, flags, core::mem::transmute(driverdirectoryhandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetDriverObjectExtension(driverobject: *const super::super::Foundation::DRIVER_OBJECT, clientidentificationaddress: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDriverObjectExtension(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, clientidentificationaddress : *const core::ffi::c_void) -> *mut core::ffi::c_void); - IoGetDriverObjectExtension(core::mem::transmute(driverobject), core::mem::transmute(clientidentificationaddress)) + IoGetDriverObjectExtension(driverobject, clientidentificationaddress) } #[cfg(feature = "Win32_Security")] #[inline] @@ -1822,7 +1775,7 @@ pub unsafe fn IoGetFileObjectGenericMapping() -> *mut super::super::super::Win32 #[inline] pub unsafe fn IoGetFsZeroingOffset(irp: *const super::super::Foundation::IRP, zeroingoffset: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetFsZeroingOffset(irp : *const super::super::Foundation:: IRP, zeroingoffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetFsZeroingOffset(core::mem::transmute(irp), core::mem::transmute(zeroingoffset)) + IoGetFsZeroingOffset(irp, core::mem::transmute(zeroingoffset)) } #[inline] pub unsafe fn IoGetInitialStack() -> *mut core::ffi::c_void { @@ -1833,65 +1786,65 @@ pub unsafe fn IoGetInitialStack() -> *mut core::ffi::c_void { #[inline] pub unsafe fn IoGetInitiatorProcess(fileobject: *const super::super::Foundation::FILE_OBJECT) -> super::super::Foundation::PEPROCESS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetInitiatorProcess(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::Foundation:: PEPROCESS); - IoGetInitiatorProcess(core::mem::transmute(fileobject)) + IoGetInitiatorProcess(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetIoAttributionHandle(irp: *const super::super::Foundation::IRP, ioattributionhandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetIoAttributionHandle(irp : *const super::super::Foundation:: IRP, ioattributionhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetIoAttributionHandle(core::mem::transmute(irp), core::mem::transmute(ioattributionhandle)) + IoGetIoAttributionHandle(irp, core::mem::transmute(ioattributionhandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetIoPriorityHint(irp: *const super::super::Foundation::IRP) -> super::super::Foundation::IO_PRIORITY_HINT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetIoPriorityHint(irp : *const super::super::Foundation:: IRP) -> super::super::Foundation:: IO_PRIORITY_HINT); - IoGetIoPriorityHint(core::mem::transmute(irp)) + IoGetIoPriorityHint(irp) } #[inline] pub unsafe fn IoGetIommuInterface(version: u32, interfaceout: *mut DMA_IOMMU_INTERFACE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetIommuInterface(version : u32, interfaceout : *mut DMA_IOMMU_INTERFACE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetIommuInterface(core::mem::transmute(version), core::mem::transmute(interfaceout)) + IoGetIommuInterface(version, core::mem::transmute(interfaceout)) } #[inline] pub unsafe fn IoGetIommuInterfaceEx(version: u32, flags: u64, interfaceout: *mut DMA_IOMMU_INTERFACE_EX) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetIommuInterfaceEx(version : u32, flags : u64, interfaceout : *mut DMA_IOMMU_INTERFACE_EX) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetIommuInterfaceEx(core::mem::transmute(version), core::mem::transmute(flags), core::mem::transmute(interfaceout)) + IoGetIommuInterfaceEx(version, flags, core::mem::transmute(interfaceout)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetIrpExtraCreateParameter(irp: *const super::super::Foundation::IRP, extracreateparameter: *mut *mut isize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetIrpExtraCreateParameter(irp : *const super::super::Foundation:: IRP, extracreateparameter : *mut *mut isize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoGetIrpExtraCreateParameter(core::mem::transmute(irp), core::mem::transmute(extracreateparameter)) + IoGetIrpExtraCreateParameter(irp, core::mem::transmute(extracreateparameter)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetPagingIoPriority(irp: *const super::super::Foundation::IRP) -> IO_PAGING_PRIORITY { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetPagingIoPriority(irp : *const super::super::Foundation:: IRP) -> IO_PAGING_PRIORITY); - IoGetPagingIoPriority(core::mem::transmute(irp)) + IoGetPagingIoPriority(irp) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetRelatedDeviceObject(fileobject: *const super::super::Foundation::FILE_OBJECT) -> *mut super::super::Foundation::DEVICE_OBJECT { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetRelatedDeviceObject(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetRelatedDeviceObject(core::mem::transmute(fileobject)) + IoGetRelatedDeviceObject(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetSfioStreamIdentifier(fileobject: *const super::super::Foundation::FILE_OBJECT, signature: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetSfioStreamIdentifier(fileobject : *const super::super::Foundation:: FILE_OBJECT, signature : *const core::ffi::c_void) -> *mut core::ffi::c_void); - IoGetSfioStreamIdentifier(core::mem::transmute(fileobject), core::mem::transmute(signature)) + IoGetSfioStreamIdentifier(fileobject, signature) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetSilo(fileobject: *const super::super::Foundation::FILE_OBJECT) -> super::super::Foundation::PESILO { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetSilo(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::Foundation:: PESILO); - IoGetSilo(core::mem::transmute(fileobject)) + IoGetSilo(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoGetSiloParameters(fileobject: *const super::super::Foundation::FILE_OBJECT) -> *mut IO_FOEXT_SILO_PARAMETERS { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetSiloParameters(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut IO_FOEXT_SILO_PARAMETERS); - IoGetSiloParameters(core::mem::transmute(fileobject)) + IoGetSiloParameters(fileobject) } #[inline] pub unsafe fn IoGetStackLimits(lowlimit: *mut usize, highlimit: *mut usize) { @@ -1908,55 +1861,55 @@ pub unsafe fn IoGetTopLevelIrp() -> *mut super::super::Foundation::IRP { #[inline] pub unsafe fn IoGetTransactionParameterBlock(fileobject: *const super::super::Foundation::FILE_OBJECT) -> *mut TXN_PARAMETER_BLOCK { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetTransactionParameterBlock(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut TXN_PARAMETER_BLOCK); - IoGetTransactionParameterBlock(core::mem::transmute(fileobject)) + IoGetTransactionParameterBlock(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoIncrementKeepAliveCount(fileobject: *mut super::super::Foundation::FILE_OBJECT, process: super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoIncrementKeepAliveCount(fileobject : *mut super::super::Foundation:: FILE_OBJECT, process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoIncrementKeepAliveCount(core::mem::transmute(fileobject), core::mem::transmute(process)) + IoIncrementKeepAliveCount(core::mem::transmute(fileobject), process) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoInitializeIrp(irp: *mut super::super::Foundation::IRP, packetsize: u16, stacksize: i8) { windows_targets::link!("ntoskrnl.exe" "system" fn IoInitializeIrp(irp : *mut super::super::Foundation:: IRP, packetsize : u16, stacksize : i8)); - IoInitializeIrp(core::mem::transmute(irp), core::mem::transmute(packetsize), core::mem::transmute(stacksize)) + IoInitializeIrp(core::mem::transmute(irp), packetsize, stacksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoInitializeIrpEx(irp: *mut super::super::Foundation::IRP, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, packetsize: u16, stacksize: i8) { windows_targets::link!("ntoskrnl.exe" "system" fn IoInitializeIrpEx(irp : *mut super::super::Foundation:: IRP, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, packetsize : u16, stacksize : i8)); - IoInitializeIrpEx(core::mem::transmute(irp), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(packetsize), core::mem::transmute(stacksize)) + IoInitializeIrpEx(core::mem::transmute(irp), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), packetsize, stacksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoInitializeRemoveLockEx(lock: *mut IO_REMOVE_LOCK, allocatetag: u32, maxlockedminutes: u32, highwatermark: u32, remlocksize: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoInitializeRemoveLockEx(lock : *mut IO_REMOVE_LOCK, allocatetag : u32, maxlockedminutes : u32, highwatermark : u32, remlocksize : u32)); - IoInitializeRemoveLockEx(core::mem::transmute(lock), core::mem::transmute(allocatetag), core::mem::transmute(maxlockedminutes), core::mem::transmute(highwatermark), core::mem::transmute(remlocksize)) + IoInitializeRemoveLockEx(core::mem::transmute(lock), allocatetag, maxlockedminutes, highwatermark, remlocksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoInitializeTimer(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, timerroutine: PIO_TIMER_ROUTINE, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoInitializeTimer(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, timerroutine : PIO_TIMER_ROUTINE, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoInitializeTimer(core::mem::transmute(deviceobject), core::mem::transmute(timerroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoInitializeTimer(deviceobject, timerroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoInitializeWorkItem(ioobject: *const core::ffi::c_void, ioworkitem: super::super::Foundation::PIO_WORKITEM) { windows_targets::link!("ntoskrnl.exe" "system" fn IoInitializeWorkItem(ioobject : *const core::ffi::c_void, ioworkitem : super::super::Foundation:: PIO_WORKITEM)); - IoInitializeWorkItem(core::mem::transmute(ioobject), core::mem::transmute(ioworkitem)) + IoInitializeWorkItem(ioobject, ioworkitem) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoInvalidateDeviceRelations(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, r#type: DEVICE_RELATION_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn IoInvalidateDeviceRelations(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, r#type : DEVICE_RELATION_TYPE)); - IoInvalidateDeviceRelations(core::mem::transmute(deviceobject), core::mem::transmute(r#type)) + IoInvalidateDeviceRelations(deviceobject, r#type) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoInvalidateDeviceState(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoInvalidateDeviceState(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoInvalidateDeviceState(core::mem::transmute(physicaldeviceobject)) + IoInvalidateDeviceState(physicaldeviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1968,70 +1921,70 @@ pub unsafe fn IoIs32bitProcess(irp: Option<*const super::super::Foundation::IRP> #[inline] pub unsafe fn IoIsFileObjectIgnoringSharing(fileobject: *const super::super::Foundation::FILE_OBJECT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileObjectIgnoringSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); - IoIsFileObjectIgnoringSharing(core::mem::transmute(fileobject)) + IoIsFileObjectIgnoringSharing(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoIsFileOriginRemote(fileobject: *const super::super::Foundation::FILE_OBJECT) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileOriginRemote(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); - IoIsFileOriginRemote(core::mem::transmute(fileobject)) + IoIsFileOriginRemote(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoIsInitiator32bitProcess(irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsInitiator32bitProcess(irp : *const super::super::Foundation:: IRP) -> bool); - IoIsInitiator32bitProcess(core::mem::transmute(irp)) + IoIsInitiator32bitProcess(irp) } #[inline] pub unsafe fn IoIsValidIrpStatus(status: super::super::super::Win32::Foundation::NTSTATUS) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidIrpStatus(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32); - IoIsValidIrpStatus(core::mem::transmute(status)) + IoIsValidIrpStatus(status) } #[inline] pub unsafe fn IoIsWdmVersionAvailable(majorversion: u8, minorversion: u8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsWdmVersionAvailable(majorversion : u8, minorversion : u8) -> bool); - IoIsWdmVersionAvailable(core::mem::transmute(majorversion), core::mem::transmute(minorversion)) + IoIsWdmVersionAvailable(majorversion, minorversion) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoMakeAssociatedIrp(irp: *const super::super::Foundation::IRP, stacksize: i8) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoMakeAssociatedIrp(irp : *const super::super::Foundation:: IRP, stacksize : i8) -> *mut super::super::Foundation:: IRP); - IoMakeAssociatedIrp(core::mem::transmute(irp), core::mem::transmute(stacksize)) + IoMakeAssociatedIrp(irp, stacksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoMakeAssociatedIrpEx(irp: *const super::super::Foundation::IRP, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, stacksize: i8) -> *mut super::super::Foundation::IRP { windows_targets::link!("ntoskrnl.exe" "system" fn IoMakeAssociatedIrpEx(irp : *const super::super::Foundation:: IRP, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8) -> *mut super::super::Foundation:: IRP); - IoMakeAssociatedIrpEx(core::mem::transmute(irp), core::mem::transmute(deviceobject), core::mem::transmute(stacksize)) + IoMakeAssociatedIrpEx(irp, deviceobject, stacksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_IscsiDisc"))] #[inline] pub unsafe fn IoMapTransfer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, mdl: *const super::super::Foundation::MDL, mapregisterbase: *const core::ffi::c_void, currentva: *const core::ffi::c_void, length: *mut u32, writetodevice: bool) -> i64 { windows_targets::link!("hal.dll" "system" fn IoMapTransfer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : *mut u32, writetodevice : bool) -> i64); - IoMapTransfer(core::mem::transmute(adapterobject), core::mem::transmute(mdl), core::mem::transmute(mapregisterbase), core::mem::transmute(currentva), core::mem::transmute(length), core::mem::transmute(writetodevice)) + IoMapTransfer(adapterobject, mdl, mapregisterbase, currentva, core::mem::transmute(length), writetodevice) } #[inline] pub unsafe fn IoOpenDeviceInterfaceRegistryKey(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, desiredaccess: u32, deviceinterfaceregkey: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoOpenDeviceInterfaceRegistryKey(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, desiredaccess : u32, deviceinterfaceregkey : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoOpenDeviceInterfaceRegistryKey(core::mem::transmute(symboliclinkname), core::mem::transmute(desiredaccess), core::mem::transmute(deviceinterfaceregkey)) + IoOpenDeviceInterfaceRegistryKey(symboliclinkname, desiredaccess, core::mem::transmute(deviceinterfaceregkey)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoOpenDeviceRegistryKey(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, devinstkeytype: u32, desiredaccess: u32, deviceregkey: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoOpenDeviceRegistryKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devinstkeytype : u32, desiredaccess : u32, deviceregkey : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoOpenDeviceRegistryKey(core::mem::transmute(deviceobject), core::mem::transmute(devinstkeytype), core::mem::transmute(desiredaccess), core::mem::transmute(deviceregkey)) + IoOpenDeviceRegistryKey(deviceobject, devinstkeytype, desiredaccess, core::mem::transmute(deviceregkey)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoOpenDriverRegistryKey(driverobject: *const super::super::Foundation::DRIVER_OBJECT, regkeytype: DRIVER_REGKEY_TYPE, desiredaccess: u32, flags: u32, driverregkey: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoOpenDriverRegistryKey(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, regkeytype : DRIVER_REGKEY_TYPE, desiredaccess : u32, flags : u32, driverregkey : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoOpenDriverRegistryKey(core::mem::transmute(driverobject), core::mem::transmute(regkeytype), core::mem::transmute(desiredaccess), core::mem::transmute(flags), core::mem::transmute(driverregkey)) + IoOpenDriverRegistryKey(driverobject, regkeytype, desiredaccess, flags, core::mem::transmute(driverregkey)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoPropagateActivityIdToThread(irp: *const super::super::Foundation::IRP, propagatedid: *mut windows_core::GUID, originalid: *mut *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoPropagateActivityIdToThread(irp : *const super::super::Foundation:: IRP, propagatedid : *mut windows_core::GUID, originalid : *mut *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoPropagateActivityIdToThread(core::mem::transmute(irp), core::mem::transmute(propagatedid), core::mem::transmute(originalid)) + IoPropagateActivityIdToThread(irp, core::mem::transmute(propagatedid), core::mem::transmute(originalid)) } #[inline] pub unsafe fn IoQueryDeviceDescription(bustype: Option<*const INTERFACE_TYPE>, busnumber: Option<*const u32>, controllertype: Option<*const CONFIGURATION_TYPE>, controllernumber: Option<*const u32>, peripheraltype: Option<*const CONFIGURATION_TYPE>, peripheralnumber: Option<*const u32>, calloutroutine: PIO_QUERY_DEVICE_ROUTINE, context: Option<*mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2043,7 +1996,7 @@ pub unsafe fn IoQueryDeviceDescription(bustype: Option<*const INTERFACE_TYPE>, b core::mem::transmute(controllernumber.unwrap_or(core::mem::zeroed())), core::mem::transmute(peripheraltype.unwrap_or(core::mem::zeroed())), core::mem::transmute(peripheralnumber.unwrap_or(core::mem::zeroed())), - core::mem::transmute(calloutroutine), + calloutroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), ) } @@ -2051,247 +2004,237 @@ pub unsafe fn IoQueryDeviceDescription(bustype: Option<*const INTERFACE_TYPE>, b #[inline] pub unsafe fn IoQueryFullDriverPath(driverobject: *const super::super::Foundation::DRIVER_OBJECT, fullpath: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryFullDriverPath(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, fullpath : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryFullDriverPath(core::mem::transmute(driverobject), core::mem::transmute(fullpath)) + IoQueryFullDriverPath(driverobject, core::mem::transmute(fullpath)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn IoQueryInformationByName(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::super::Storage::FileSystem::FILE_INFORMATION_CLASS, options: u32, drivercontext: Option<*const IO_DRIVER_CREATE_CONTEXT>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryInformationByName(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super::super::Storage::FileSystem:: FILE_INFORMATION_CLASS, options : u32, drivercontext : *const IO_DRIVER_CREATE_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryInformationByName(core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(options), core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) + IoQueryInformationByName(objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass, options, core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoQueryKsrPersistentMemorySize(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, buffersize: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryKsrPersistentMemorySize(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, buffersize : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryKsrPersistentMemorySize(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + IoQueryKsrPersistentMemorySize(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoQueryKsrPersistentMemorySizeEx(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, physicaldeviceid: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, datatag: Option<*const u16>, dataversion: Option<*mut u32>, buffersize: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueryKsrPersistentMemorySizeEx(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, physicaldeviceid : *const super::super::super::Win32::Foundation:: UNICODE_STRING, datatag : *const u16, dataversion : *mut u32, buffersize : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoQueryKsrPersistentMemorySizeEx(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(datatag.unwrap_or(core::mem::zeroed())), core::mem::transmute(dataversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + IoQueryKsrPersistentMemorySizeEx(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(datatag.unwrap_or(core::mem::zeroed())), core::mem::transmute(dataversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoQueueWorkItem(ioworkitem: super::super::Foundation::PIO_WORKITEM, workerroutine: PIO_WORKITEM_ROUTINE, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueueWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void)); - IoQueueWorkItem(core::mem::transmute(ioworkitem), core::mem::transmute(workerroutine), core::mem::transmute(queuetype), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoQueueWorkItem(ioworkitem, workerroutine, queuetype, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoQueueWorkItemEx(ioworkitem: super::super::Foundation::PIO_WORKITEM, workerroutine: PIO_WORKITEM_ROUTINE_EX, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoQueueWorkItemEx(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE_EX, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void)); - IoQueueWorkItemEx(core::mem::transmute(ioworkitem), core::mem::transmute(workerroutine), core::mem::transmute(queuetype), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoQueueWorkItemEx(ioworkitem, workerroutine, queuetype, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRaiseHardError(irp: *const super::super::Foundation::IRP, vpb: Option<*const super::super::Foundation::VPB>, realdeviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseHardError(irp : *const super::super::Foundation:: IRP, vpb : *const super::super::Foundation:: VPB, realdeviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoRaiseHardError(core::mem::transmute(irp), core::mem::transmute(vpb.unwrap_or(core::mem::zeroed())), core::mem::transmute(realdeviceobject)) + IoRaiseHardError(irp, core::mem::transmute(vpb.unwrap_or(core::mem::zeroed())), realdeviceobject) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoRaiseInformationalHardError(errorstatus: super::super::super::Win32::Foundation::NTSTATUS, string: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, thread: Option) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseInformationalHardError(errorstatus : super::super::super::Win32::Foundation:: NTSTATUS, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, thread : super::super::Foundation:: PKTHREAD) -> bool); - IoRaiseInformationalHardError(core::mem::transmute(errorstatus), core::mem::transmute(string.unwrap_or(core::mem::zeroed())), core::mem::transmute(thread.unwrap_or(core::mem::zeroed()))) + IoRaiseInformationalHardError(errorstatus, core::mem::transmute(string.unwrap_or(core::mem::zeroed())), core::mem::transmute(thread.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReadDiskSignature(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, bytespersector: u32, signature: *mut DISK_SIGNATURE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReadDiskSignature(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, bytespersector : u32, signature : *mut DISK_SIGNATURE) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReadDiskSignature(core::mem::transmute(deviceobject), core::mem::transmute(bytespersector), core::mem::transmute(signature)) + IoReadDiskSignature(deviceobject, bytespersector, core::mem::transmute(signature)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReadPartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsize: u32, returnrecognizedpartitions: bool, partitionbuffer: *mut *mut super::super::super::Win32::System::Ioctl::DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, returnrecognizedpartitions : bool, partitionbuffer : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReadPartitionTable(core::mem::transmute(deviceobject), core::mem::transmute(sectorsize), core::mem::transmute(returnrecognizedpartitions), core::mem::transmute(partitionbuffer)) + IoReadPartitionTable(deviceobject, sectorsize, returnrecognizedpartitions, core::mem::transmute(partitionbuffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReadPartitionTableEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, drivelayout: *mut *mut super::super::super::Win32::System::Ioctl::DRIVE_LAYOUT_INFORMATION_EX) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTableEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, drivelayout : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION_EX) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReadPartitionTableEx(core::mem::transmute(deviceobject), core::mem::transmute(drivelayout)) + IoReadPartitionTableEx(deviceobject, core::mem::transmute(drivelayout)) } #[inline] pub unsafe fn IoRecordIoAttribution(opaquehandle: *mut core::ffi::c_void, attributioninformation: *const IO_ATTRIBUTION_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRecordIoAttribution(opaquehandle : *mut core::ffi::c_void, attributioninformation : *const IO_ATTRIBUTION_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRecordIoAttribution(core::mem::transmute(opaquehandle), core::mem::transmute(attributioninformation)) + IoRecordIoAttribution(core::mem::transmute(opaquehandle), attributioninformation) } #[inline] pub unsafe fn IoRegisterBootDriverCallback(callbackfunction: PBOOT_DRIVER_CALLBACK_FUNCTION, callbackcontext: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterBootDriverCallback(callbackfunction : PBOOT_DRIVER_CALLBACK_FUNCTION, callbackcontext : *const core::ffi::c_void) -> *mut core::ffi::c_void); - IoRegisterBootDriverCallback(core::mem::transmute(callbackfunction), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + IoRegisterBootDriverCallback(callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterBootDriverReinitialization(driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverreinitializationroutine: super::super::Foundation::DRIVER_REINITIALIZE, context: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterBootDriverReinitialization(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverreinitializationroutine : super::super::Foundation:: DRIVER_REINITIALIZE, context : *const core::ffi::c_void)); - IoRegisterBootDriverReinitialization(core::mem::transmute(driverobject), core::mem::transmute(driverreinitializationroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoRegisterBootDriverReinitialization(driverobject, driverreinitializationroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoRegisterContainerNotification(notificationclass: IO_CONTAINER_NOTIFICATION_CLASS, callbackfunction: PIO_CONTAINER_NOTIFICATION_FUNCTION, notificationinformation: Option<*const core::ffi::c_void>, notificationinformationlength: u32, callbackregistration: *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterContainerNotification(notificationclass : IO_CONTAINER_NOTIFICATION_CLASS, callbackfunction : PIO_CONTAINER_NOTIFICATION_FUNCTION, notificationinformation : *const core::ffi::c_void, notificationinformationlength : u32, callbackregistration : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterContainerNotification(core::mem::transmute(notificationclass), core::mem::transmute(callbackfunction), core::mem::transmute(notificationinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationinformationlength), core::mem::transmute(callbackregistration)) + IoRegisterContainerNotification(notificationclass, callbackfunction, core::mem::transmute(notificationinformation.unwrap_or(core::mem::zeroed())), notificationinformationlength, core::mem::transmute(callbackregistration)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterDeviceInterface(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT, interfaceclassguid: *const windows_core::GUID, referencestring: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, symboliclinkname: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterDeviceInterface(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, interfaceclassguid : *const windows_core::GUID, referencestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, symboliclinkname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterDeviceInterface(core::mem::transmute(physicaldeviceobject), core::mem::transmute(interfaceclassguid), core::mem::transmute(referencestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(symboliclinkname)) + IoRegisterDeviceInterface(physicaldeviceobject, interfaceclassguid, core::mem::transmute(referencestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(symboliclinkname)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterDriverReinitialization(driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverreinitializationroutine: super::super::Foundation::DRIVER_REINITIALIZE, context: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterDriverReinitialization(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverreinitializationroutine : super::super::Foundation:: DRIVER_REINITIALIZE, context : *const core::ffi::c_void)); - IoRegisterDriverReinitialization(core::mem::transmute(driverobject), core::mem::transmute(driverreinitializationroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoRegisterDriverReinitialization(driverobject, driverreinitializationroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterLastChanceShutdownNotification(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterLastChanceShutdownNotification(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterLastChanceShutdownNotification(core::mem::transmute(deviceobject)) + IoRegisterLastChanceShutdownNotification(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterPlugPlayNotification(eventcategory: IO_NOTIFICATION_EVENT_CATEGORY, eventcategoryflags: u32, eventcategorydata: Option<*const core::ffi::c_void>, driverobject: *const super::super::Foundation::DRIVER_OBJECT, callbackroutine: super::super::Foundation::DRIVER_NOTIFICATION_CALLBACK_ROUTINE, context: Option<*mut core::ffi::c_void>, notificationentry: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterPlugPlayNotification(eventcategory : IO_NOTIFICATION_EVENT_CATEGORY, eventcategoryflags : u32, eventcategorydata : *const core::ffi::c_void, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, callbackroutine : super::super::Foundation:: DRIVER_NOTIFICATION_CALLBACK_ROUTINE, context : *mut core::ffi::c_void, notificationentry : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterPlugPlayNotification(core::mem::transmute(eventcategory), core::mem::transmute(eventcategoryflags), core::mem::transmute(eventcategorydata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverobject), core::mem::transmute(callbackroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationentry)) + IoRegisterPlugPlayNotification(eventcategory, eventcategoryflags, core::mem::transmute(eventcategorydata.unwrap_or(core::mem::zeroed())), driverobject, callbackroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationentry)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterShutdownNotification(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterShutdownNotification(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterShutdownNotification(core::mem::transmute(deviceobject)) + IoRegisterShutdownNotification(deviceobject) } #[inline] pub unsafe fn IoReleaseCancelSpinLock(irql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReleaseCancelSpinLock(irql : u8)); - IoReleaseCancelSpinLock(core::mem::transmute(irql)) + IoReleaseCancelSpinLock(irql) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoReleaseRemoveLockAndWaitEx(removelock: *mut IO_REMOVE_LOCK, tag: Option<*const core::ffi::c_void>, remlocksize: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReleaseRemoveLockAndWaitEx(removelock : *mut IO_REMOVE_LOCK, tag : *const core::ffi::c_void, remlocksize : u32)); - IoReleaseRemoveLockAndWaitEx(core::mem::transmute(removelock), core::mem::transmute(tag.unwrap_or(core::mem::zeroed())), core::mem::transmute(remlocksize)) + IoReleaseRemoveLockAndWaitEx(core::mem::transmute(removelock), core::mem::transmute(tag.unwrap_or(core::mem::zeroed())), remlocksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn IoReleaseRemoveLockEx(removelock: *mut IO_REMOVE_LOCK, tag: Option<*const core::ffi::c_void>, remlocksize: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReleaseRemoveLockEx(removelock : *mut IO_REMOVE_LOCK, tag : *const core::ffi::c_void, remlocksize : u32)); - IoReleaseRemoveLockEx(core::mem::transmute(removelock), core::mem::transmute(tag.unwrap_or(core::mem::zeroed())), core::mem::transmute(remlocksize)) + IoReleaseRemoveLockEx(core::mem::transmute(removelock), core::mem::transmute(tag.unwrap_or(core::mem::zeroed())), remlocksize) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRemoveLinkShareAccess(fileobject: *const super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, linkshareaccess: Option<*mut LINK_SHARE_ACCESS>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRemoveLinkShareAccess(fileobject : *const super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS)); - IoRemoveLinkShareAccess(core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed()))) + IoRemoveLinkShareAccess(fileobject, core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRemoveLinkShareAccessEx(fileobject: *const super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, linkshareaccess: Option<*mut LINK_SHARE_ACCESS>, ioshareaccessflags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRemoveLinkShareAccessEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS, ioshareaccessflags : u32)); - IoRemoveLinkShareAccessEx(core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(ioshareaccessflags)) + IoRemoveLinkShareAccessEx(fileobject, core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), ioshareaccessflags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRemoveShareAccess(fileobject: *const super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRemoveShareAccess(fileobject : *const super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS)); - IoRemoveShareAccess(core::mem::transmute(fileobject), core::mem::transmute(shareaccess)) + IoRemoveShareAccess(fileobject, core::mem::transmute(shareaccess)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReplacePartitionUnit(targetpdo: *const super::super::Foundation::DEVICE_OBJECT, sparepdo: *const super::super::Foundation::DEVICE_OBJECT, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReplacePartitionUnit(targetpdo : *const super::super::Foundation:: DEVICE_OBJECT, sparepdo : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReplacePartitionUnit(core::mem::transmute(targetpdo), core::mem::transmute(sparepdo), core::mem::transmute(flags)) + IoReplacePartitionUnit(targetpdo, sparepdo, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportDetectedDevice(driverobject: *const super::super::Foundation::DRIVER_OBJECT, legacybustype: INTERFACE_TYPE, busnumber: u32, slotnumber: u32, resourcelist: Option<*const CM_RESOURCE_LIST>, resourcerequirements: Option<*const IO_RESOURCE_REQUIREMENTS_LIST>, resourceassigned: bool, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportDetectedDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, legacybustype : INTERFACE_TYPE, busnumber : u32, slotnumber : u32, resourcelist : *const CM_RESOURCE_LIST, resourcerequirements : *const IO_RESOURCE_REQUIREMENTS_LIST, resourceassigned : bool, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportDetectedDevice(core::mem::transmute(driverobject), core::mem::transmute(legacybustype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(resourcelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourcerequirements.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourceassigned), core::mem::transmute(deviceobject)) + IoReportDetectedDevice(driverobject, legacybustype, busnumber, slotnumber, core::mem::transmute(resourcelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourcerequirements.unwrap_or(core::mem::zeroed())), resourceassigned, core::mem::transmute(deviceobject)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoReportInterruptActive(parameters: *const IO_REPORT_INTERRUPT_ACTIVE_STATE_PARAMETERS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportInterruptActive(parameters : *const IO_REPORT_INTERRUPT_ACTIVE_STATE_PARAMETERS)); - IoReportInterruptActive(core::mem::transmute(parameters)) + IoReportInterruptActive(parameters) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoReportInterruptInactive(parameters: *const IO_REPORT_INTERRUPT_ACTIVE_STATE_PARAMETERS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportInterruptInactive(parameters : *const IO_REPORT_INTERRUPT_ACTIVE_STATE_PARAMETERS)); - IoReportInterruptInactive(core::mem::transmute(parameters)) + IoReportInterruptInactive(parameters) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportResourceForDetection(driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverlist: Option<*const CM_RESOURCE_LIST>, driverlistsize: Option, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: Option, conflictdetected: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceForDetection(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, conflictdetected : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportResourceForDetection(core::mem::transmute(driverobject), core::mem::transmute(driverlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverlistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(conflictdetected)) + IoReportResourceForDetection(driverobject, core::mem::transmute(driverlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverlistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(conflictdetected)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportResourceUsage(driverclassname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverlist: Option<*const CM_RESOURCE_LIST>, driverlistsize: Option, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: Option, overrideconflict: bool, conflictdetected: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceUsage(driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, overrideconflict : bool, conflictdetected : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportResourceUsage( - core::mem::transmute(driverclassname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(driverobject), - core::mem::transmute(driverlist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(driverlistsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), - core::mem::transmute(devicelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(devicelistsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(overrideconflict), - core::mem::transmute(conflictdetected), - ) + IoReportResourceUsage(core::mem::transmute(driverclassname.unwrap_or(core::mem::zeroed())), driverobject, core::mem::transmute(driverlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverlistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelistsize.unwrap_or(core::mem::zeroed())), overrideconflict, core::mem::transmute(conflictdetected)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportRootDevice(driverobject: *const super::super::Foundation::DRIVER_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportRootDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportRootDevice(core::mem::transmute(driverobject)) + IoReportRootDevice(driverobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportTargetDeviceChange(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT, notificationstructure: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportTargetDeviceChange(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, notificationstructure : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportTargetDeviceChange(core::mem::transmute(physicaldeviceobject), core::mem::transmute(notificationstructure)) + IoReportTargetDeviceChange(physicaldeviceobject, notificationstructure) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportTargetDeviceChangeAsynchronous(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT, notificationstructure: *const core::ffi::c_void, callback: Option, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReportTargetDeviceChangeAsynchronous(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, notificationstructure : *const core::ffi::c_void, callback : PDEVICE_CHANGE_COMPLETE_CALLBACK, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportTargetDeviceChangeAsynchronous(core::mem::transmute(physicaldeviceobject), core::mem::transmute(notificationstructure), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoReportTargetDeviceChangeAsynchronous(physicaldeviceobject, notificationstructure, core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRequestDeviceEject(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoRequestDeviceEject(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoRequestDeviceEject(core::mem::transmute(physicaldeviceobject)) + IoRequestDeviceEject(physicaldeviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRequestDeviceEjectEx(physicaldeviceobject: *const super::super::Foundation::DEVICE_OBJECT, callback: Option, context: Option<*const core::ffi::c_void>, driverobject: Option<*const super::super::Foundation::DRIVER_OBJECT>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoRequestDeviceEjectEx(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, callback : PIO_DEVICE_EJECT_CALLBACK, context : *const core::ffi::c_void, driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRequestDeviceEjectEx(core::mem::transmute(physicaldeviceobject), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverobject.unwrap_or(core::mem::zeroed()))) + IoRequestDeviceEjectEx(physicaldeviceobject, core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReserveKsrPersistentMemory(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, size: usize, flags: u32, datahandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReserveKsrPersistentMemory(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, size : usize, flags : u32, datahandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReserveKsrPersistentMemory(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(flags), core::mem::transmute(datahandle)) + IoReserveKsrPersistentMemory(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), size, flags, core::mem::transmute(datahandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReserveKsrPersistentMemoryEx(driverobject: *const super::super::Foundation::DRIVER_OBJECT, physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, physicaldeviceid: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, datatag: Option<*const u16>, dataversion: u32, size: usize, flags: u32, datahandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoReserveKsrPersistentMemoryEx(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, physicaldeviceid : *const super::super::super::Win32::Foundation:: UNICODE_STRING, datatag : *const u16, dataversion : u32, size : usize, flags : u32, datahandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReserveKsrPersistentMemoryEx(core::mem::transmute(driverobject), core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(datatag.unwrap_or(core::mem::zeroed())), core::mem::transmute(dataversion), core::mem::transmute(size), core::mem::transmute(flags), core::mem::transmute(datahandle)) + IoReserveKsrPersistentMemoryEx(driverobject, core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(physicaldeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(datatag.unwrap_or(core::mem::zeroed())), dataversion, size, flags, core::mem::transmute(datahandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReuseIrp(irp: *mut super::super::Foundation::IRP, iostatus: super::super::super::Win32::Foundation::NTSTATUS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoReuseIrp(irp : *mut super::super::Foundation:: IRP, iostatus : super::super::super::Win32::Foundation:: NTSTATUS)); - IoReuseIrp(core::mem::transmute(irp), core::mem::transmute(iostatus)) + IoReuseIrp(core::mem::transmute(irp), iostatus) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2302,47 +2245,47 @@ pub unsafe fn IoSetActivityIdIrp(irp: *mut super::super::Foundation::IRP, guid: #[inline] pub unsafe fn IoSetActivityIdThread(activityid: *const windows_core::GUID) -> *mut windows_core::GUID { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetActivityIdThread(activityid : *const windows_core::GUID) -> *mut windows_core::GUID); - IoSetActivityIdThread(core::mem::transmute(activityid)) + IoSetActivityIdThread(activityid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetCompletionRoutineEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP, completionroutine: super::super::Foundation::PIO_COMPLETION_ROUTINE, context: Option<*const core::ffi::c_void>, invokeonsuccess: bool, invokeonerror: bool, invokeoncancel: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetCompletionRoutineEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, completionroutine : super::super::Foundation:: PIO_COMPLETION_ROUTINE, context : *const core::ffi::c_void, invokeonsuccess : bool, invokeonerror : bool, invokeoncancel : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetCompletionRoutineEx(core::mem::transmute(deviceobject), core::mem::transmute(irp), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(invokeonsuccess), core::mem::transmute(invokeonerror), core::mem::transmute(invokeoncancel)) + IoSetCompletionRoutineEx(deviceobject, irp, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), invokeonsuccess, invokeonerror, invokeoncancel) } #[inline] pub unsafe fn IoSetDeviceInterfacePropertyData(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, propertykey: *const super::super::super::Win32::Foundation::DEVPROPKEY, lcid: u32, flags: u32, r#type: u32, size: u32, data: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfacePropertyData(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, propertykey : *const super::super::super::Win32::Foundation:: DEVPROPKEY, lcid : u32, flags : u32, r#type : u32, size : u32, data : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetDeviceInterfacePropertyData(core::mem::transmute(symboliclinkname), core::mem::transmute(propertykey), core::mem::transmute(lcid), core::mem::transmute(flags), core::mem::transmute(r#type), core::mem::transmute(size), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) + IoSetDeviceInterfacePropertyData(symboliclinkname, propertykey, lcid, flags, r#type, size, core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoSetDeviceInterfaceState(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, enable: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfaceState(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, enable : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetDeviceInterfaceState(core::mem::transmute(symboliclinkname), core::mem::transmute(enable)) + IoSetDeviceInterfaceState(symboliclinkname, enable) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetDevicePropertyData(pdo: *const super::super::Foundation::DEVICE_OBJECT, propertykey: *const super::super::super::Win32::Foundation::DEVPROPKEY, lcid: u32, flags: u32, r#type: u32, size: u32, data: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDevicePropertyData(pdo : *const super::super::Foundation:: DEVICE_OBJECT, propertykey : *const super::super::super::Win32::Foundation:: DEVPROPKEY, lcid : u32, flags : u32, r#type : u32, size : u32, data : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetDevicePropertyData(core::mem::transmute(pdo), core::mem::transmute(propertykey), core::mem::transmute(lcid), core::mem::transmute(flags), core::mem::transmute(r#type), core::mem::transmute(size), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) + IoSetDevicePropertyData(pdo, propertykey, lcid, flags, r#type, size, core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetFileObjectIgnoreSharing(fileobject: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileObjectIgnoreSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetFileObjectIgnoreSharing(core::mem::transmute(fileobject)) + IoSetFileObjectIgnoreSharing(fileobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetFileOrigin(fileobject: *const super::super::Foundation::FILE_OBJECT, remote: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileOrigin(fileobject : *const super::super::Foundation:: FILE_OBJECT, remote : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetFileOrigin(core::mem::transmute(fileobject), core::mem::transmute(remote)) + IoSetFileOrigin(fileobject, remote) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetFsZeroingOffset(irp: *mut super::super::Foundation::IRP, zeroingoffset: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFsZeroingOffset(irp : *mut super::super::Foundation:: IRP, zeroingoffset : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetFsZeroingOffset(core::mem::transmute(irp), core::mem::transmute(zeroingoffset)) + IoSetFsZeroingOffset(core::mem::transmute(irp), zeroingoffset) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2354,77 +2297,77 @@ pub unsafe fn IoSetFsZeroingOffsetRequired(irp: *mut super::super::Foundation::I #[inline] pub unsafe fn IoSetHardErrorOrVerifyDevice(irp: *const super::super::Foundation::IRP, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetHardErrorOrVerifyDevice(irp : *const super::super::Foundation:: IRP, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoSetHardErrorOrVerifyDevice(core::mem::transmute(irp), core::mem::transmute(deviceobject)) + IoSetHardErrorOrVerifyDevice(irp, deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetIoAttributionIrp(irp: *mut super::super::Foundation::IRP, attributionsource: *const core::ffi::c_void, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetIoAttributionIrp(irp : *mut super::super::Foundation:: IRP, attributionsource : *const core::ffi::c_void, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetIoAttributionIrp(core::mem::transmute(irp), core::mem::transmute(attributionsource), core::mem::transmute(flags)) + IoSetIoAttributionIrp(core::mem::transmute(irp), attributionsource, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetIoPriorityHint(irp: *const super::super::Foundation::IRP, priorityhint: super::super::Foundation::IO_PRIORITY_HINT) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetIoPriorityHint(irp : *const super::super::Foundation:: IRP, priorityhint : super::super::Foundation:: IO_PRIORITY_HINT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetIoPriorityHint(core::mem::transmute(irp), core::mem::transmute(priorityhint)) + IoSetIoPriorityHint(irp, priorityhint) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetIrpExtraCreateParameter(irp: *mut super::super::Foundation::IRP, extracreateparameter: *const isize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetIrpExtraCreateParameter(irp : *mut super::super::Foundation:: IRP, extracreateparameter : *const isize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetIrpExtraCreateParameter(core::mem::transmute(irp), core::mem::transmute(extracreateparameter)) + IoSetIrpExtraCreateParameter(core::mem::transmute(irp), extracreateparameter) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetLinkShareAccess(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, linkshareaccess: Option<*mut LINK_SHARE_ACCESS>, ioshareaccessflags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetLinkShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS, ioshareaccessflags : u32)); - IoSetLinkShareAccess(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(ioshareaccessflags)) + IoSetLinkShareAccess(desiredaccess, desiredshareaccess, core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), ioshareaccessflags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetMasterIrpStatus(masterirp: *mut super::super::Foundation::IRP, status: super::super::super::Win32::Foundation::NTSTATUS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetMasterIrpStatus(masterirp : *mut super::super::Foundation:: IRP, status : super::super::super::Win32::Foundation:: NTSTATUS)); - IoSetMasterIrpStatus(core::mem::transmute(masterirp), core::mem::transmute(status)) + IoSetMasterIrpStatus(core::mem::transmute(masterirp), status) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetPartitionInformation(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsize: u32, partitionnumber: u32, partitiontype: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetPartitionInformation(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, partitionnumber : u32, partitiontype : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetPartitionInformation(core::mem::transmute(deviceobject), core::mem::transmute(sectorsize), core::mem::transmute(partitionnumber), core::mem::transmute(partitiontype)) + IoSetPartitionInformation(deviceobject, sectorsize, partitionnumber, partitiontype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetPartitionInformationEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, partitionnumber: u32, partitioninfo: *const super::super::super::Win32::System::Ioctl::SET_PARTITION_INFORMATION_EX) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetPartitionInformationEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, partitionnumber : u32, partitioninfo : *const super::super::super::Win32::System::Ioctl:: SET_PARTITION_INFORMATION_EX) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetPartitionInformationEx(core::mem::transmute(deviceobject), core::mem::transmute(partitionnumber), core::mem::transmute(partitioninfo)) + IoSetPartitionInformationEx(deviceobject, partitionnumber, partitioninfo) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetShareAccess(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS)); - IoSetShareAccess(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess)) + IoSetShareAccess(desiredaccess, desiredshareaccess, core::mem::transmute(fileobject), core::mem::transmute(shareaccess)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, writepermission: Option<*const bool>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, writepermission : *const bool)); - IoSetShareAccessEx(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) + IoSetShareAccessEx(desiredaccess, desiredshareaccess, core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetStartIoAttributes(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, deferredstartio: bool, noncancelable: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetStartIoAttributes(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deferredstartio : bool, noncancelable : bool)); - IoSetStartIoAttributes(core::mem::transmute(deviceobject), core::mem::transmute(deferredstartio), core::mem::transmute(noncancelable)) + IoSetStartIoAttributes(deviceobject, deferredstartio, noncancelable) } #[inline] pub unsafe fn IoSetSystemPartition(volumenamestring: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetSystemPartition(volumenamestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetSystemPartition(core::mem::transmute(volumenamestring)) + IoSetSystemPartition(volumenamestring) } #[inline] pub unsafe fn IoSetThreadHardErrorMode(enableharderrors: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetThreadHardErrorMode(enableharderrors : bool) -> bool); - IoSetThreadHardErrorMode(core::mem::transmute(enableharderrors)) + IoSetThreadHardErrorMode(enableharderrors) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2436,7 +2379,7 @@ pub unsafe fn IoSetTopLevelIrp(irp: Option<*const super::super::Foundation::IRP> #[inline] pub unsafe fn IoSizeOfIrpEx(deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, stacksize: i8) -> u16 { windows_targets::link!("ntoskrnl.exe" "system" fn IoSizeOfIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8) -> u16); - IoSizeOfIrpEx(core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(stacksize)) + IoSizeOfIrpEx(core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), stacksize) } #[inline] pub unsafe fn IoSizeofWorkItem() -> u32 { @@ -2447,171 +2390,171 @@ pub unsafe fn IoSizeofWorkItem() -> u32 { #[inline] pub unsafe fn IoStartNextPacket(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, cancelable: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : bool)); - IoStartNextPacket(core::mem::transmute(deviceobject), core::mem::transmute(cancelable)) + IoStartNextPacket(deviceobject, cancelable) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoStartNextPacketByKey(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, cancelable: bool, key: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacketByKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : bool, key : u32)); - IoStartNextPacketByKey(core::mem::transmute(deviceobject), core::mem::transmute(cancelable), core::mem::transmute(key)) + IoStartNextPacketByKey(deviceobject, cancelable, key) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoStartPacket(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP, key: Option<*const u32>, cancelfunction: Option) { windows_targets::link!("ntoskrnl.exe" "system" fn IoStartPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, key : *const u32, cancelfunction : super::super::Foundation:: DRIVER_CANCEL)); - IoStartPacket(core::mem::transmute(deviceobject), core::mem::transmute(irp), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(cancelfunction.unwrap_or(core::mem::zeroed()))) + IoStartPacket(deviceobject, irp, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(cancelfunction.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoStartTimer(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoStartTimer(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoStartTimer(core::mem::transmute(deviceobject)) + IoStartTimer(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoStopTimer(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoStopTimer(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoStopTimer(core::mem::transmute(deviceobject)) + IoStopTimer(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSynchronousCallDriver(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoSynchronousCallDriver(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSynchronousCallDriver(core::mem::transmute(deviceobject), core::mem::transmute(irp)) + IoSynchronousCallDriver(deviceobject, irp) } #[inline] pub unsafe fn IoTransferActivityId(activityid: *const windows_core::GUID, relatedactivityid: *const windows_core::GUID) { windows_targets::link!("ntoskrnl.exe" "system" fn IoTransferActivityId(activityid : *const windows_core::GUID, relatedactivityid : *const windows_core::GUID)); - IoTransferActivityId(core::mem::transmute(activityid), core::mem::transmute(relatedactivityid)) + IoTransferActivityId(activityid, relatedactivityid) } #[inline] pub unsafe fn IoTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u32, busaddress: i64, addressspace: *mut u32, translatedaddress: *mut i64) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> bool); - IoTranslateBusAddress(core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(busaddress), core::mem::transmute(addressspace), core::mem::transmute(translatedaddress)) + IoTranslateBusAddress(interfacetype, busnumber, busaddress, core::mem::transmute(addressspace), core::mem::transmute(translatedaddress)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoTryQueueWorkItem(ioworkitem: super::super::Foundation::PIO_WORKITEM, workerroutine: PIO_WORKITEM_ROUTINE_EX, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn IoTryQueueWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE_EX, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> bool); - IoTryQueueWorkItem(core::mem::transmute(ioworkitem), core::mem::transmute(workerroutine), core::mem::transmute(queuetype), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoTryQueueWorkItem(ioworkitem, workerroutine, queuetype, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoUninitializeWorkItem(ioworkitem: super::super::Foundation::PIO_WORKITEM) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUninitializeWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM)); - IoUninitializeWorkItem(core::mem::transmute(ioworkitem)) + IoUninitializeWorkItem(ioworkitem) } #[inline] pub unsafe fn IoUnregisterBootDriverCallback(callbackhandle: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterBootDriverCallback(callbackhandle : *const core::ffi::c_void)); - IoUnregisterBootDriverCallback(core::mem::transmute(callbackhandle)) + IoUnregisterBootDriverCallback(callbackhandle) } #[inline] pub unsafe fn IoUnregisterContainerNotification(callbackregistration: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterContainerNotification(callbackregistration : *const core::ffi::c_void)); - IoUnregisterContainerNotification(core::mem::transmute(callbackregistration)) + IoUnregisterContainerNotification(callbackregistration) } #[inline] pub unsafe fn IoUnregisterPlugPlayNotification(notificationentry: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterPlugPlayNotification(notificationentry : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoUnregisterPlugPlayNotification(core::mem::transmute(notificationentry)) + IoUnregisterPlugPlayNotification(notificationentry) } #[inline] pub unsafe fn IoUnregisterPlugPlayNotificationEx(notificationentry: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterPlugPlayNotificationEx(notificationentry : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoUnregisterPlugPlayNotificationEx(core::mem::transmute(notificationentry)) + IoUnregisterPlugPlayNotificationEx(notificationentry) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoUnregisterShutdownNotification(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterShutdownNotification(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoUnregisterShutdownNotification(core::mem::transmute(deviceobject)) + IoUnregisterShutdownNotification(deviceobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoUpdateLinkShareAccess(fileobject: *const super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, linkshareaccess: Option<*mut LINK_SHARE_ACCESS>) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUpdateLinkShareAccess(fileobject : *const super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS)); - IoUpdateLinkShareAccess(core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed()))) + IoUpdateLinkShareAccess(fileobject, core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoUpdateLinkShareAccessEx(fileobject: *const super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, linkshareaccess: Option<*mut LINK_SHARE_ACCESS>, ioshareaccessflags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUpdateLinkShareAccessEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS, ioshareaccessflags : u32)); - IoUpdateLinkShareAccessEx(core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(ioshareaccessflags)) + IoUpdateLinkShareAccessEx(fileobject, core::mem::transmute(shareaccess), core::mem::transmute(linkshareaccess.unwrap_or(core::mem::zeroed())), ioshareaccessflags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoUpdateShareAccess(fileobject: *const super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS) { windows_targets::link!("ntoskrnl.exe" "system" fn IoUpdateShareAccess(fileobject : *const super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS)); - IoUpdateShareAccess(core::mem::transmute(fileobject), core::mem::transmute(shareaccess)) + IoUpdateShareAccess(fileobject, core::mem::transmute(shareaccess)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoValidateDeviceIoControlAccess(irp: *const super::super::Foundation::IRP, requiredaccess: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoValidateDeviceIoControlAccess(irp : *const super::super::Foundation:: IRP, requiredaccess : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoValidateDeviceIoControlAccess(core::mem::transmute(irp), core::mem::transmute(requiredaccess)) + IoValidateDeviceIoControlAccess(irp, requiredaccess) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoVerifyPartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, fixerrors: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fixerrors : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVerifyPartitionTable(core::mem::transmute(deviceobject), core::mem::transmute(fixerrors)) + IoVerifyPartitionTable(deviceobject, fixerrors) } #[inline] pub unsafe fn IoVolumeDeviceNameToGuid(volumedevicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceNameToGuid(volumedevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, guid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVolumeDeviceNameToGuid(core::mem::transmute(volumedevicename), core::mem::transmute(guid)) + IoVolumeDeviceNameToGuid(volumedevicename, core::mem::transmute(guid)) } #[inline] pub unsafe fn IoVolumeDeviceNameToGuidPath(volumedevicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, guidpath: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceNameToGuidPath(volumedevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, guidpath : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVolumeDeviceNameToGuidPath(core::mem::transmute(volumedevicename), core::mem::transmute(guidpath)) + IoVolumeDeviceNameToGuidPath(volumedevicename, core::mem::transmute(guidpath)) } #[inline] pub unsafe fn IoVolumeDeviceToDosName(volumedeviceobject: *const core::ffi::c_void, dosname: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceToDosName(volumedeviceobject : *const core::ffi::c_void, dosname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVolumeDeviceToDosName(core::mem::transmute(volumedeviceobject), core::mem::transmute(dosname)) + IoVolumeDeviceToDosName(volumedeviceobject, core::mem::transmute(dosname)) } #[inline] pub unsafe fn IoVolumeDeviceToGuid(volumedeviceobject: *const core::ffi::c_void, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceToGuid(volumedeviceobject : *const core::ffi::c_void, guid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVolumeDeviceToGuid(core::mem::transmute(volumedeviceobject), core::mem::transmute(guid)) + IoVolumeDeviceToGuid(volumedeviceobject, core::mem::transmute(guid)) } #[inline] pub unsafe fn IoVolumeDeviceToGuidPath(volumedeviceobject: *const core::ffi::c_void, guidpath: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceToGuidPath(volumedeviceobject : *const core::ffi::c_void, guidpath : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVolumeDeviceToGuidPath(core::mem::transmute(volumedeviceobject), core::mem::transmute(guidpath)) + IoVolumeDeviceToGuidPath(volumedeviceobject, core::mem::transmute(guidpath)) } #[inline] pub unsafe fn IoWMIAllocateInstanceIds(guid: *const windows_core::GUID, instancecount: u32, firstinstanceid: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIAllocateInstanceIds(guid : *const windows_core::GUID, instancecount : u32, firstinstanceid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIAllocateInstanceIds(core::mem::transmute(guid), core::mem::transmute(instancecount), core::mem::transmute(firstinstanceid)) + IoWMIAllocateInstanceIds(guid, instancecount, core::mem::transmute(firstinstanceid)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoWMIDeviceObjectToInstanceName(datablockobject: *const core::ffi::c_void, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIDeviceObjectToInstanceName(datablockobject : *const core::ffi::c_void, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIDeviceObjectToInstanceName(core::mem::transmute(datablockobject), core::mem::transmute(deviceobject), core::mem::transmute(instancename)) + IoWMIDeviceObjectToInstanceName(datablockobject, deviceobject, core::mem::transmute(instancename)) } #[inline] pub unsafe fn IoWMIExecuteMethod(datablockobject: *const core::ffi::c_void, instancename: *const super::super::super::Win32::Foundation::UNICODE_STRING, methodid: u32, inbuffersize: u32, outbuffersize: *mut u32, inoutbuffer: Option<*mut u8>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIExecuteMethod(datablockobject : *const core::ffi::c_void, instancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, methodid : u32, inbuffersize : u32, outbuffersize : *mut u32, inoutbuffer : *mut u8) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIExecuteMethod(core::mem::transmute(datablockobject), core::mem::transmute(instancename), core::mem::transmute(methodid), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffersize), core::mem::transmute(inoutbuffer.unwrap_or(core::mem::zeroed()))) + IoWMIExecuteMethod(datablockobject, instancename, methodid, inbuffersize, core::mem::transmute(outbuffersize), core::mem::transmute(inoutbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoWMIHandleToInstanceName(datablockobject: *const core::ffi::c_void, filehandle: super::super::super::Win32::Foundation::HANDLE, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIHandleToInstanceName(datablockobject : *const core::ffi::c_void, filehandle : super::super::super::Win32::Foundation:: HANDLE, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIHandleToInstanceName(core::mem::transmute(datablockobject), core::mem::transmute(filehandle), core::mem::transmute(instancename)) + IoWMIHandleToInstanceName(datablockobject, filehandle, core::mem::transmute(instancename)) } #[inline] pub unsafe fn IoWMIOpenBlock(guid: *const windows_core::GUID, desiredaccess: u32, datablockobject: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIOpenBlock(guid : *const windows_core::GUID, desiredaccess : u32, datablockobject : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIOpenBlock(core::mem::transmute(guid), core::mem::transmute(desiredaccess), core::mem::transmute(datablockobject)) + IoWMIOpenBlock(guid, desiredaccess, core::mem::transmute(datablockobject)) } #[inline] pub unsafe fn IoWMIQueryAllData(datablockobject: *const core::ffi::c_void, inoutbuffersize: *mut u32, outbuffer: Option<*mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIQueryAllData(datablockobject : *const core::ffi::c_void, inoutbuffersize : *mut u32, outbuffer : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIQueryAllData(core::mem::transmute(datablockobject), core::mem::transmute(inoutbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed()))) + IoWMIQueryAllData(datablockobject, core::mem::transmute(inoutbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoWMIQueryAllDataMultiple(datablockobjectlist: &[*const core::ffi::c_void], inoutbuffersize: *mut u32, outbuffer: Option<*mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2621,39 +2564,39 @@ pub unsafe fn IoWMIQueryAllDataMultiple(datablockobjectlist: &[*const core::ffi: #[inline] pub unsafe fn IoWMIQuerySingleInstance(datablockobject: *const core::ffi::c_void, instancename: *const super::super::super::Win32::Foundation::UNICODE_STRING, inoutbuffersize: *mut u32, outbuffer: Option<*mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIQuerySingleInstance(datablockobject : *const core::ffi::c_void, instancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, inoutbuffersize : *mut u32, outbuffer : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIQuerySingleInstance(core::mem::transmute(datablockobject), core::mem::transmute(instancename), core::mem::transmute(inoutbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed()))) + IoWMIQuerySingleInstance(datablockobject, instancename, core::mem::transmute(inoutbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoWMIQuerySingleInstanceMultiple(datablockobjectlist: *const *const core::ffi::c_void, instancenames: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectcount: u32, inoutbuffersize: *mut u32, outbuffer: Option<*mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIQuerySingleInstanceMultiple(datablockobjectlist : *const *const core::ffi::c_void, instancenames : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectcount : u32, inoutbuffersize : *mut u32, outbuffer : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIQuerySingleInstanceMultiple(core::mem::transmute(datablockobjectlist), core::mem::transmute(instancenames), core::mem::transmute(objectcount), core::mem::transmute(inoutbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed()))) + IoWMIQuerySingleInstanceMultiple(datablockobjectlist, instancenames, objectcount, core::mem::transmute(inoutbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoWMIRegistrationControl(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, action: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIRegistrationControl(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, action : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMIRegistrationControl(core::mem::transmute(deviceobject), core::mem::transmute(action)) + IoWMIRegistrationControl(deviceobject, action) } #[inline] pub unsafe fn IoWMISetNotificationCallback(object: *mut core::ffi::c_void, callback: WMI_NOTIFICATION_CALLBACK, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISetNotificationCallback(object : *mut core::ffi::c_void, callback : WMI_NOTIFICATION_CALLBACK, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMISetNotificationCallback(core::mem::transmute(object), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + IoWMISetNotificationCallback(core::mem::transmute(object), callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IoWMISetSingleInstance(datablockobject: *const core::ffi::c_void, instancename: *const super::super::super::Win32::Foundation::UNICODE_STRING, version: u32, valuebuffersize: u32, valuebuffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISetSingleInstance(datablockobject : *const core::ffi::c_void, instancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, version : u32, valuebuffersize : u32, valuebuffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMISetSingleInstance(core::mem::transmute(datablockobject), core::mem::transmute(instancename), core::mem::transmute(version), core::mem::transmute(valuebuffersize), core::mem::transmute(valuebuffer)) + IoWMISetSingleInstance(datablockobject, instancename, version, valuebuffersize, valuebuffer) } #[inline] pub unsafe fn IoWMISetSingleItem(datablockobject: *const core::ffi::c_void, instancename: *const super::super::super::Win32::Foundation::UNICODE_STRING, dataitemid: u32, version: u32, valuebuffersize: u32, valuebuffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISetSingleItem(datablockobject : *const core::ffi::c_void, instancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, dataitemid : u32, version : u32, valuebuffersize : u32, valuebuffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMISetSingleItem(core::mem::transmute(datablockobject), core::mem::transmute(instancename), core::mem::transmute(dataitemid), core::mem::transmute(version), core::mem::transmute(valuebuffersize), core::mem::transmute(valuebuffer)) + IoWMISetSingleItem(datablockobject, instancename, dataitemid, version, valuebuffersize, valuebuffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoWMISuggestInstanceName(physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, symboliclinkname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, combinenames: bool, suggestedinstancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISuggestInstanceName(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, combinenames : bool, suggestedinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMISuggestInstanceName(core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(symboliclinkname.unwrap_or(core::mem::zeroed())), core::mem::transmute(combinenames), core::mem::transmute(suggestedinstancename)) + IoWMISuggestInstanceName(core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(symboliclinkname.unwrap_or(core::mem::zeroed())), combinenames, core::mem::transmute(suggestedinstancename)) } #[inline] pub unsafe fn IoWMIWriteEvent(wnodeeventitem: *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2663,46 +2606,46 @@ pub unsafe fn IoWMIWriteEvent(wnodeeventitem: *mut core::ffi::c_void) -> super:: #[inline] pub unsafe fn IoWithinStackLimits(regionstart: usize, regionsize: usize) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn IoWithinStackLimits(regionstart : usize, regionsize : usize) -> u32); - IoWithinStackLimits(core::mem::transmute(regionstart), core::mem::transmute(regionsize)) + IoWithinStackLimits(regionstart, regionsize) } #[inline] pub unsafe fn IoWriteErrorLogEntry(elentry: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn IoWriteErrorLogEntry(elentry : *const core::ffi::c_void)); - IoWriteErrorLogEntry(core::mem::transmute(elentry)) + IoWriteErrorLogEntry(elentry) } #[inline] pub unsafe fn IoWriteKsrPersistentMemory(datahandle: *const core::ffi::c_void, buffer: *const core::ffi::c_void, size: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWriteKsrPersistentMemory(datahandle : *const core::ffi::c_void, buffer : *const core::ffi::c_void, size : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWriteKsrPersistentMemory(core::mem::transmute(datahandle), core::mem::transmute(buffer), core::mem::transmute(size)) + IoWriteKsrPersistentMemory(datahandle, buffer, size) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoWritePartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsize: u32, sectorspertrack: u32, numberofheads: u32, partitionbuffer: *const super::super::super::Win32::System::Ioctl::DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWritePartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, sectorspertrack : u32, numberofheads : u32, partitionbuffer : *const super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWritePartitionTable(core::mem::transmute(deviceobject), core::mem::transmute(sectorsize), core::mem::transmute(sectorspertrack), core::mem::transmute(numberofheads), core::mem::transmute(partitionbuffer)) + IoWritePartitionTable(deviceobject, sectorsize, sectorspertrack, numberofheads, partitionbuffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoWritePartitionTableEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, drivelayout: *const super::super::super::Win32::System::Ioctl::DRIVE_LAYOUT_INFORMATION_EX) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IoWritePartitionTableEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, drivelayout : *const super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION_EX) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWritePartitionTableEx(core::mem::transmute(deviceobject), core::mem::transmute(drivelayout)) + IoWritePartitionTableEx(deviceobject, drivelayout) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IofCallDriver(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *mut super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn IofCallDriver(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *mut super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - IofCallDriver(core::mem::transmute(deviceobject), core::mem::transmute(irp)) + IofCallDriver(deviceobject, core::mem::transmute(irp)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IofCompleteRequest(irp: *const super::super::Foundation::IRP, priorityboost: i8) { windows_targets::link!("ntoskrnl.exe" "system" fn IofCompleteRequest(irp : *const super::super::Foundation:: IRP, priorityboost : i8)); - IofCompleteRequest(core::mem::transmute(irp), core::mem::transmute(priorityboost)) + IofCompleteRequest(irp, priorityboost) } #[inline] pub unsafe fn KdChangeOption(option: KD_OPTION, inbufferbytes: u32, inbuffer: *const core::ffi::c_void, outbufferbytes: u32, outbuffer: *mut core::ffi::c_void, outbufferneeded: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KdChangeOption(option : KD_OPTION, inbufferbytes : u32, inbuffer : *const core::ffi::c_void, outbufferbytes : u32, outbuffer : *mut core::ffi::c_void, outbufferneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - KdChangeOption(core::mem::transmute(option), core::mem::transmute(inbufferbytes), core::mem::transmute(inbuffer), core::mem::transmute(outbufferbytes), core::mem::transmute(outbuffer), core::mem::transmute(outbufferneeded)) + KdChangeOption(option, inbufferbytes, inbuffer, outbufferbytes, core::mem::transmute(outbuffer), core::mem::transmute(outbufferneeded)) } #[inline] pub unsafe fn KdDisableDebugger() -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2750,7 +2693,7 @@ pub unsafe fn KeAcquireInStackQueuedSpinLockForDpc(spinlock: *mut usize, lockhan #[inline] pub unsafe fn KeAcquireInterruptSpinLock(interrupt: super::super::Foundation::PKINTERRUPT) -> u8 { windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireInterruptSpinLock(interrupt : super::super::Foundation:: PKINTERRUPT) -> u8); - KeAcquireInterruptSpinLock(core::mem::transmute(interrupt)) + KeAcquireInterruptSpinLock(interrupt) } #[inline] pub unsafe fn KeAcquireSpinLockForDpc(spinlock: *mut usize) -> u8 { @@ -2761,7 +2704,7 @@ pub unsafe fn KeAcquireSpinLockForDpc(spinlock: *mut usize) -> u8 { #[inline] pub unsafe fn KeAddTriageDumpDataBlock(ktriagedumpdataarray: *mut KTRIAGE_DUMP_DATA_ARRAY, address: *const core::ffi::c_void, size: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeAddTriageDumpDataBlock(ktriagedumpdataarray : *mut KTRIAGE_DUMP_DATA_ARRAY, address : *const core::ffi::c_void, size : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeAddTriageDumpDataBlock(core::mem::transmute(ktriagedumpdataarray), core::mem::transmute(address), core::mem::transmute(size)) + KeAddTriageDumpDataBlock(core::mem::transmute(ktriagedumpdataarray), address, size) } #[inline] pub unsafe fn KeAreAllApcsDisabled() -> bool { @@ -2777,13 +2720,13 @@ pub unsafe fn KeAreApcsDisabled() -> bool { #[inline] pub unsafe fn KeBugCheck(bugcheckcode: super::super::super::Win32::System::Diagnostics::Debug::BUGCHECK_ERROR) { windows_targets::link!("ntoskrnl.exe" "system" fn KeBugCheck(bugcheckcode : super::super::super::Win32::System::Diagnostics::Debug:: BUGCHECK_ERROR)); - KeBugCheck(core::mem::transmute(bugcheckcode)) + KeBugCheck(bugcheckcode) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn KeBugCheckEx(bugcheckcode: super::super::super::Win32::System::Diagnostics::Debug::BUGCHECK_ERROR, bugcheckparameter1: usize, bugcheckparameter2: usize, bugcheckparameter3: usize, bugcheckparameter4: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn KeBugCheckEx(bugcheckcode : super::super::super::Win32::System::Diagnostics::Debug:: BUGCHECK_ERROR, bugcheckparameter1 : usize, bugcheckparameter2 : usize, bugcheckparameter3 : usize, bugcheckparameter4 : usize)); - KeBugCheckEx(core::mem::transmute(bugcheckcode), core::mem::transmute(bugcheckparameter1), core::mem::transmute(bugcheckparameter2), core::mem::transmute(bugcheckparameter3), core::mem::transmute(bugcheckparameter4)) + KeBugCheckEx(bugcheckcode, bugcheckparameter1, bugcheckparameter2, bugcheckparameter3, bugcheckparameter4) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2800,22 +2743,22 @@ pub unsafe fn KeClearEvent(event: *mut super::super::Foundation::KEVENT) { #[inline] pub unsafe fn KeConvertAuxiliaryCounterToPerformanceCounter(auxiliarycountervalue: u64, performancecountervalue: *mut u64, conversionerror: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeConvertAuxiliaryCounterToPerformanceCounter(auxiliarycountervalue : u64, performancecountervalue : *mut u64, conversionerror : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeConvertAuxiliaryCounterToPerformanceCounter(core::mem::transmute(auxiliarycountervalue), core::mem::transmute(performancecountervalue), core::mem::transmute(conversionerror.unwrap_or(core::mem::zeroed()))) + KeConvertAuxiliaryCounterToPerformanceCounter(auxiliarycountervalue, core::mem::transmute(performancecountervalue), core::mem::transmute(conversionerror.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeConvertPerformanceCounterToAuxiliaryCounter(performancecountervalue: u64, auxiliarycountervalue: *mut u64, conversionerror: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeConvertPerformanceCounterToAuxiliaryCounter(performancecountervalue : u64, auxiliarycountervalue : *mut u64, conversionerror : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeConvertPerformanceCounterToAuxiliaryCounter(core::mem::transmute(performancecountervalue), core::mem::transmute(auxiliarycountervalue), core::mem::transmute(conversionerror.unwrap_or(core::mem::zeroed()))) + KeConvertPerformanceCounterToAuxiliaryCounter(performancecountervalue, core::mem::transmute(auxiliarycountervalue), core::mem::transmute(conversionerror.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeDelayExecutionThread(waitmode: i8, alertable: bool, interval: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeDelayExecutionThread(waitmode : i8, alertable : bool, interval : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeDelayExecutionThread(core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(interval)) + KeDelayExecutionThread(waitmode, alertable, interval) } #[inline] pub unsafe fn KeDeregisterBoundCallback(handle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBoundCallback(handle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeDeregisterBoundCallback(core::mem::transmute(handle)) + KeDeregisterBoundCallback(handle) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -2832,12 +2775,12 @@ pub unsafe fn KeDeregisterBugCheckReasonCallback(callbackrecord: *mut KBUGCHECK_ #[inline] pub unsafe fn KeDeregisterNmiCallback(handle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterNmiCallback(handle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeDeregisterNmiCallback(core::mem::transmute(handle)) + KeDeregisterNmiCallback(handle) } #[inline] pub unsafe fn KeDeregisterProcessorChangeCallback(callbackhandle: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterProcessorChangeCallback(callbackhandle : *const core::ffi::c_void)); - KeDeregisterProcessorChangeCallback(core::mem::transmute(callbackhandle)) + KeDeregisterProcessorChangeCallback(callbackhandle) } #[inline] pub unsafe fn KeEnterCriticalRegion() { @@ -2852,18 +2795,18 @@ pub unsafe fn KeEnterGuardedRegion() { #[inline] pub unsafe fn KeExpandKernelStackAndCallout(callout: PEXPAND_STACK_CALLOUT, parameter: Option<*const core::ffi::c_void>, size: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCallout(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeExpandKernelStackAndCallout(core::mem::transmute(callout), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + KeExpandKernelStackAndCallout(callout, core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), size) } #[inline] pub unsafe fn KeExpandKernelStackAndCalloutEx(callout: PEXPAND_STACK_CALLOUT, parameter: Option<*const core::ffi::c_void>, size: usize, wait: bool, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCalloutEx(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize, wait : bool, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeExpandKernelStackAndCalloutEx(core::mem::transmute(callout), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(wait), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + KeExpandKernelStackAndCalloutEx(callout, core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), size, wait, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeFlushIoBuffers(mdl: *const super::super::Foundation::MDL, readoperation: bool, dmaoperation: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushIoBuffers(mdl : *const super::super::Foundation:: MDL, readoperation : bool, dmaoperation : bool)); - KeFlushIoBuffers(core::mem::transmute(mdl), core::mem::transmute(readoperation), core::mem::transmute(dmaoperation)) + KeFlushIoBuffers(mdl, readoperation, dmaoperation) } #[inline] pub unsafe fn KeFlushQueuedDpcs() { @@ -2895,13 +2838,13 @@ pub unsafe fn KeGetCurrentProcessorNumberEx(procnumber: Option<*mut super::super #[inline] pub unsafe fn KeGetProcessorIndexFromNumber(procnumber: *const super::super::super::Win32::System::Kernel::PROCESSOR_NUMBER) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeGetProcessorIndexFromNumber(procnumber : *const super::super::super::Win32::System::Kernel:: PROCESSOR_NUMBER) -> u32); - KeGetProcessorIndexFromNumber(core::mem::transmute(procnumber)) + KeGetProcessorIndexFromNumber(procnumber) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn KeGetProcessorNumberFromIndex(procindex: u32, procnumber: *mut super::super::super::Win32::System::Kernel::PROCESSOR_NUMBER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeGetProcessorNumberFromIndex(procindex : u32, procnumber : *mut super::super::super::Win32::System::Kernel:: PROCESSOR_NUMBER) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeGetProcessorNumberFromIndex(core::mem::transmute(procindex), core::mem::transmute(procnumber)) + KeGetProcessorNumberFromIndex(procindex, core::mem::transmute(procnumber)) } #[inline] pub unsafe fn KeGetRecommendedSharedDataAlignment() -> u32 { @@ -2911,7 +2854,7 @@ pub unsafe fn KeGetRecommendedSharedDataAlignment() -> u32 { #[inline] pub unsafe fn KeInitializeCrashDumpHeader(dumptype: u32, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeCrashDumpHeader(dumptype : u32, flags : u32, buffer : *mut core::ffi::c_void, buffersize : u32, bufferneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeInitializeCrashDumpHeader(core::mem::transmute(dumptype), core::mem::transmute(flags), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))) + KeInitializeCrashDumpHeader(dumptype, flags, core::mem::transmute(buffer), buffersize, core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2923,13 +2866,13 @@ pub unsafe fn KeInitializeDeviceQueue(devicequeue: *mut super::super::Foundation #[inline] pub unsafe fn KeInitializeDpc(dpc: *mut super::super::Foundation::KDPC, deferredroutine: super::super::Foundation::PKDEFERRED_ROUTINE, deferredcontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeDpc(dpc : *mut super::super::Foundation:: KDPC, deferredroutine : super::super::Foundation:: PKDEFERRED_ROUTINE, deferredcontext : *const core::ffi::c_void)); - KeInitializeDpc(core::mem::transmute(dpc), core::mem::transmute(deferredroutine), core::mem::transmute(deferredcontext.unwrap_or(core::mem::zeroed()))) + KeInitializeDpc(core::mem::transmute(dpc), deferredroutine, core::mem::transmute(deferredcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeInitializeEvent(event: *mut super::super::Foundation::KEVENT, r#type: super::super::super::Win32::System::Kernel::EVENT_TYPE, state: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeEvent(event : *mut super::super::Foundation:: KEVENT, r#type : super::super::super::Win32::System::Kernel:: EVENT_TYPE, state : bool)); - KeInitializeEvent(core::mem::transmute(event), core::mem::transmute(r#type), core::mem::transmute(state)) + KeInitializeEvent(core::mem::transmute(event), r#type, state) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2941,13 +2884,13 @@ pub unsafe fn KeInitializeGuardedMutex(mutex: *mut super::super::Foundation::FAS #[inline] pub unsafe fn KeInitializeMutex(mutex: *mut super::super::Foundation::KMUTANT, level: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutex(mutex : *mut super::super::Foundation:: KMUTANT, level : u32)); - KeInitializeMutex(core::mem::transmute(mutex), core::mem::transmute(level)) + KeInitializeMutex(core::mem::transmute(mutex), level) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeInitializeSemaphore(semaphore: *mut KSEMAPHORE, count: i32, limit: i32) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeSemaphore(semaphore : *mut KSEMAPHORE, count : i32, limit : i32)); - KeInitializeSemaphore(core::mem::transmute(semaphore), core::mem::transmute(count), core::mem::transmute(limit)) + KeInitializeSemaphore(core::mem::transmute(semaphore), count, limit) } #[inline] pub unsafe fn KeInitializeSpinLock() -> usize { @@ -2960,7 +2903,7 @@ pub unsafe fn KeInitializeSpinLock() -> usize { #[inline] pub unsafe fn KeInitializeThreadedDpc(dpc: *mut super::super::Foundation::KDPC, deferredroutine: super::super::Foundation::PKDEFERRED_ROUTINE, deferredcontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeThreadedDpc(dpc : *mut super::super::Foundation:: KDPC, deferredroutine : super::super::Foundation:: PKDEFERRED_ROUTINE, deferredcontext : *const core::ffi::c_void)); - KeInitializeThreadedDpc(core::mem::transmute(dpc), core::mem::transmute(deferredroutine), core::mem::transmute(deferredcontext.unwrap_or(core::mem::zeroed()))) + KeInitializeThreadedDpc(core::mem::transmute(dpc), deferredroutine, core::mem::transmute(deferredcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2972,19 +2915,19 @@ pub unsafe fn KeInitializeTimer(timer: *mut KTIMER) { #[inline] pub unsafe fn KeInitializeTimerEx(timer: *mut KTIMER, r#type: super::super::super::Win32::System::Kernel::TIMER_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeTimerEx(timer : *mut KTIMER, r#type : super::super::super::Win32::System::Kernel:: TIMER_TYPE)); - KeInitializeTimerEx(core::mem::transmute(timer), core::mem::transmute(r#type)) + KeInitializeTimerEx(core::mem::transmute(timer), r#type) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn KeInitializeTriageDumpDataArray(ktriagedumpdataarray: *mut KTRIAGE_DUMP_DATA_ARRAY, size: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeTriageDumpDataArray(ktriagedumpdataarray : *mut KTRIAGE_DUMP_DATA_ARRAY, size : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeInitializeTriageDumpDataArray(core::mem::transmute(ktriagedumpdataarray), core::mem::transmute(size)) + KeInitializeTriageDumpDataArray(core::mem::transmute(ktriagedumpdataarray), size) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeInsertByKeyDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY, sortkey: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY, sortkey : u32) -> bool); - KeInsertByKeyDeviceQueue(core::mem::transmute(devicequeue), core::mem::transmute(devicequeueentry), core::mem::transmute(sortkey)) + KeInsertByKeyDeviceQueue(core::mem::transmute(devicequeue), core::mem::transmute(devicequeueentry), sortkey) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3006,12 +2949,12 @@ pub unsafe fn KeInvalidateAllCaches() -> bool { #[inline] pub unsafe fn KeInvalidateRangeAllCaches(baseaddress: *const core::ffi::c_void, length: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn KeInvalidateRangeAllCaches(baseaddress : *const core::ffi::c_void, length : u32)); - KeInvalidateRangeAllCaches(core::mem::transmute(baseaddress), core::mem::transmute(length)) + KeInvalidateRangeAllCaches(baseaddress, length) } #[inline] pub unsafe fn KeIpiGenericCall(broadcastfunction: PKIPI_BROADCAST_WORKER, context: usize) -> usize { windows_targets::link!("ntoskrnl.exe" "system" fn KeIpiGenericCall(broadcastfunction : PKIPI_BROADCAST_WORKER, context : usize) -> usize); - KeIpiGenericCall(core::mem::transmute(broadcastfunction), core::mem::transmute(context)) + KeIpiGenericCall(broadcastfunction, context) } #[inline] pub unsafe fn KeIsExecutingDpc() -> u32 { @@ -3032,7 +2975,7 @@ pub unsafe fn KeLeaveGuardedRegion() { #[inline] pub unsafe fn KePulseEvent(event: *mut super::super::Foundation::KEVENT, increment: i32, wait: bool) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KePulseEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : bool) -> i32); - KePulseEvent(core::mem::transmute(event), core::mem::transmute(increment), core::mem::transmute(wait)) + KePulseEvent(core::mem::transmute(event), increment, wait) } #[inline] pub unsafe fn KeQueryActiveGroupCount() -> u16 { @@ -3047,7 +2990,7 @@ pub unsafe fn KeQueryActiveProcessorCount(activeprocessors: Option<*mut usize>) #[inline] pub unsafe fn KeQueryActiveProcessorCountEx(groupnumber: u16) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryActiveProcessorCountEx(groupnumber : u16) -> u32); - KeQueryActiveProcessorCountEx(core::mem::transmute(groupnumber)) + KeQueryActiveProcessorCountEx(groupnumber) } #[inline] pub unsafe fn KeQueryActiveProcessors() -> usize { @@ -3067,7 +3010,7 @@ pub unsafe fn KeQueryDpcWatchdogInformation(watchdoginformation: *mut KDPC_WATCH #[inline] pub unsafe fn KeQueryGroupAffinity(groupnumber: u16) -> usize { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryGroupAffinity(groupnumber : u16) -> usize); - KeQueryGroupAffinity(core::mem::transmute(groupnumber)) + KeQueryGroupAffinity(groupnumber) } #[inline] pub unsafe fn KeQueryHardwareCounterConfiguration(counterarray: &mut [HARDWARE_COUNTER], count: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3088,7 +3031,7 @@ pub unsafe fn KeQueryInterruptTimePrecise(qpctimestamp: *mut u64) -> u64 { #[inline] pub unsafe fn KeQueryLogicalProcessorRelationship(processornumber: Option<*const super::super::super::Win32::System::Kernel::PROCESSOR_NUMBER>, relationshiptype: super::super::super::Win32::System::SystemInformation::LOGICAL_PROCESSOR_RELATIONSHIP, information: Option<*mut super::super::super::Win32::System::SystemInformation::SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX>, length: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryLogicalProcessorRelationship(processornumber : *const super::super::super::Win32::System::Kernel:: PROCESSOR_NUMBER, relationshiptype : super::super::super::Win32::System::SystemInformation:: LOGICAL_PROCESSOR_RELATIONSHIP, information : *mut super::super::super::Win32::System::SystemInformation:: SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, length : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeQueryLogicalProcessorRelationship(core::mem::transmute(processornumber.unwrap_or(core::mem::zeroed())), core::mem::transmute(relationshiptype), core::mem::transmute(information.unwrap_or(core::mem::zeroed())), core::mem::transmute(length)) + KeQueryLogicalProcessorRelationship(core::mem::transmute(processornumber.unwrap_or(core::mem::zeroed())), relationshiptype, core::mem::transmute(information.unwrap_or(core::mem::zeroed())), core::mem::transmute(length)) } #[inline] pub unsafe fn KeQueryMaximumGroupCount() -> u16 { @@ -3103,29 +3046,29 @@ pub unsafe fn KeQueryMaximumProcessorCount() -> u32 { #[inline] pub unsafe fn KeQueryMaximumProcessorCountEx(groupnumber: u16) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryMaximumProcessorCountEx(groupnumber : u16) -> u32); - KeQueryMaximumProcessorCountEx(core::mem::transmute(groupnumber)) + KeQueryMaximumProcessorCountEx(groupnumber) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn KeQueryNodeActiveAffinity(nodenumber: u16, affinity: Option<*mut super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY>, count: Option<*mut u16>) { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryNodeActiveAffinity(nodenumber : u16, affinity : *mut super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY, count : *mut u16)); - KeQueryNodeActiveAffinity(core::mem::transmute(nodenumber), core::mem::transmute(affinity.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + KeQueryNodeActiveAffinity(nodenumber, core::mem::transmute(affinity.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn KeQueryNodeActiveAffinity2(nodenumber: u16, groupaffinities: Option<&mut [super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY]>, groupaffinitiesrequired: *mut u16) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryNodeActiveAffinity2(nodenumber : u16, groupaffinities : *mut super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY, groupaffinitiescount : u16, groupaffinitiesrequired : *mut u16) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeQueryNodeActiveAffinity2(core::mem::transmute(nodenumber), core::mem::transmute(groupaffinities.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), groupaffinities.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(groupaffinitiesrequired)) + KeQueryNodeActiveAffinity2(nodenumber, core::mem::transmute(groupaffinities.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), groupaffinities.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(groupaffinitiesrequired)) } #[inline] pub unsafe fn KeQueryNodeActiveProcessorCount(nodenumber: u16) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryNodeActiveProcessorCount(nodenumber : u16) -> u32); - KeQueryNodeActiveProcessorCount(core::mem::transmute(nodenumber)) + KeQueryNodeActiveProcessorCount(nodenumber) } #[inline] pub unsafe fn KeQueryNodeMaximumProcessorCount(nodenumber: u16) -> u16 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryNodeMaximumProcessorCount(nodenumber : u16) -> u16); - KeQueryNodeMaximumProcessorCount(core::mem::transmute(nodenumber)) + KeQueryNodeMaximumProcessorCount(nodenumber) } #[inline] pub unsafe fn KeQueryPerformanceCounter(performancefrequency: Option<*mut i64>) -> i64 { @@ -3136,13 +3079,13 @@ pub unsafe fn KeQueryPerformanceCounter(performancefrequency: Option<*mut i64>) #[inline] pub unsafe fn KeQueryPriorityThread(thread: super::super::Foundation::PKTHREAD) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryPriorityThread(thread : super::super::Foundation:: PKTHREAD) -> i32); - KeQueryPriorityThread(core::mem::transmute(thread)) + KeQueryPriorityThread(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeQueryRuntimeThread(thread: super::super::Foundation::PKTHREAD, usertime: *mut u32) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryRuntimeThread(thread : super::super::Foundation:: PKTHREAD, usertime : *mut u32) -> u32); - KeQueryRuntimeThread(core::mem::transmute(thread), core::mem::transmute(usertime)) + KeQueryRuntimeThread(thread, core::mem::transmute(usertime)) } #[inline] pub unsafe fn KeQuerySystemTimePrecise() -> i64 { @@ -3160,7 +3103,7 @@ pub unsafe fn KeQueryTimeIncrement() -> u32 { #[inline] pub unsafe fn KeQueryTotalCycleTimeThread(thread: super::super::Foundation::PKTHREAD, cycletimestamp: *mut u64) -> u64 { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryTotalCycleTimeThread(thread : super::super::Foundation:: PKTHREAD, cycletimestamp : *mut u64) -> u64); - KeQueryTotalCycleTimeThread(core::mem::transmute(thread), core::mem::transmute(cycletimestamp)) + KeQueryTotalCycleTimeThread(thread, core::mem::transmute(cycletimestamp)) } #[inline] pub unsafe fn KeQueryUnbiasedInterruptTime() -> u64 { @@ -3176,52 +3119,52 @@ pub unsafe fn KeQueryUnbiasedInterruptTimePrecise(qpctimestamp: *mut u64) -> u64 #[inline] pub unsafe fn KeReadStateEvent(event: *const super::super::Foundation::KEVENT) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateEvent(event : *const super::super::Foundation:: KEVENT) -> i32); - KeReadStateEvent(core::mem::transmute(event)) + KeReadStateEvent(event) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReadStateMutex(mutex: *const super::super::Foundation::KMUTANT) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateMutex(mutex : *const super::super::Foundation:: KMUTANT) -> i32); - KeReadStateMutex(core::mem::transmute(mutex)) + KeReadStateMutex(mutex) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReadStateSemaphore(semaphore: *const KSEMAPHORE) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateSemaphore(semaphore : *const KSEMAPHORE) -> i32); - KeReadStateSemaphore(core::mem::transmute(semaphore)) + KeReadStateSemaphore(semaphore) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReadStateTimer(timer: *const KTIMER) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateTimer(timer : *const KTIMER) -> bool); - KeReadStateTimer(core::mem::transmute(timer)) + KeReadStateTimer(timer) } #[inline] pub unsafe fn KeRegisterBoundCallback(callbackroutine: PBOUND_CALLBACK) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBoundCallback(callbackroutine : PBOUND_CALLBACK) -> *mut core::ffi::c_void); - KeRegisterBoundCallback(core::mem::transmute(callbackroutine)) + KeRegisterBoundCallback(callbackroutine) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn KeRegisterBugCheckCallback(callbackrecord: *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine: PKBUGCHECK_CALLBACK_ROUTINE, buffer: Option<*const core::ffi::c_void>, length: u32, component: *const u8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_CALLBACK_ROUTINE, buffer : *const core::ffi::c_void, length : u32, component : *const u8) -> bool); - KeRegisterBugCheckCallback(core::mem::transmute(callbackrecord), core::mem::transmute(callbackroutine), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(component)) + KeRegisterBugCheckCallback(core::mem::transmute(callbackrecord), callbackroutine, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), length, component) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn KeRegisterBugCheckReasonCallback(callbackrecord: *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine: PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason: KBUGCHECK_CALLBACK_REASON, component: *const u8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason : KBUGCHECK_CALLBACK_REASON, component : *const u8) -> bool); - KeRegisterBugCheckReasonCallback(core::mem::transmute(callbackrecord), core::mem::transmute(callbackroutine), core::mem::transmute(reason), core::mem::transmute(component)) + KeRegisterBugCheckReasonCallback(core::mem::transmute(callbackrecord), callbackroutine, reason, component) } #[inline] pub unsafe fn KeRegisterNmiCallback(callbackroutine: PNMI_CALLBACK, context: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterNmiCallback(callbackroutine : PNMI_CALLBACK, context : *const core::ffi::c_void) -> *mut core::ffi::c_void); - KeRegisterNmiCallback(core::mem::transmute(callbackroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + KeRegisterNmiCallback(callbackroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeRegisterProcessorChangeCallback(callbackfunction: PPROCESSOR_CALLBACK_FUNCTION, callbackcontext: Option<*const core::ffi::c_void>, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterProcessorChangeCallback(callbackfunction : PPROCESSOR_CALLBACK_FUNCTION, callbackcontext : *const core::ffi::c_void, flags : u32) -> *mut core::ffi::c_void); - KeRegisterProcessorChangeCallback(core::mem::transmute(callbackfunction), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + KeRegisterProcessorChangeCallback(callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3238,52 +3181,52 @@ pub unsafe fn KeReleaseGuardedMutexUnsafe(fastmutex: *mut super::super::Foundati #[inline] pub unsafe fn KeReleaseInStackQueuedSpinLock(lockhandle: *const KLOCK_QUEUE_HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInStackQueuedSpinLock(lockhandle : *const KLOCK_QUEUE_HANDLE)); - KeReleaseInStackQueuedSpinLock(core::mem::transmute(lockhandle)) + KeReleaseInStackQueuedSpinLock(lockhandle) } #[inline] pub unsafe fn KeReleaseInStackQueuedSpinLockForDpc(lockhandle: *const KLOCK_QUEUE_HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInStackQueuedSpinLockForDpc(lockhandle : *const KLOCK_QUEUE_HANDLE)); - KeReleaseInStackQueuedSpinLockForDpc(core::mem::transmute(lockhandle)) + KeReleaseInStackQueuedSpinLockForDpc(lockhandle) } #[inline] pub unsafe fn KeReleaseInStackQueuedSpinLockFromDpcLevel(lockhandle: *const KLOCK_QUEUE_HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInStackQueuedSpinLockFromDpcLevel(lockhandle : *const KLOCK_QUEUE_HANDLE)); - KeReleaseInStackQueuedSpinLockFromDpcLevel(core::mem::transmute(lockhandle)) + KeReleaseInStackQueuedSpinLockFromDpcLevel(lockhandle) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeReleaseInterruptSpinLock(interrupt: super::super::Foundation::PKINTERRUPT, oldirql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInterruptSpinLock(interrupt : super::super::Foundation:: PKINTERRUPT, oldirql : u8)); - KeReleaseInterruptSpinLock(core::mem::transmute(interrupt), core::mem::transmute(oldirql)) + KeReleaseInterruptSpinLock(interrupt, oldirql) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseMutex(mutex: *mut super::super::Foundation::KMUTANT, wait: bool) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutex(mutex : *mut super::super::Foundation:: KMUTANT, wait : bool) -> i32); - KeReleaseMutex(core::mem::transmute(mutex), core::mem::transmute(wait)) + KeReleaseMutex(core::mem::transmute(mutex), wait) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseSemaphore(semaphore: *mut KSEMAPHORE, increment: i32, adjustment: i32, wait: bool) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSemaphore(semaphore : *mut KSEMAPHORE, increment : i32, adjustment : i32, wait : bool) -> i32); - KeReleaseSemaphore(core::mem::transmute(semaphore), core::mem::transmute(increment), core::mem::transmute(adjustment), core::mem::transmute(wait)) + KeReleaseSemaphore(core::mem::transmute(semaphore), increment, adjustment, wait) } #[inline] pub unsafe fn KeReleaseSpinLockForDpc(spinlock: *mut usize, oldirql: u8) { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSpinLockForDpc(spinlock : *mut usize, oldirql : u8)); - KeReleaseSpinLockForDpc(core::mem::transmute(spinlock), core::mem::transmute(oldirql)) + KeReleaseSpinLockForDpc(core::mem::transmute(spinlock), oldirql) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeRemoveByKeyDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, sortkey: u32) -> *mut KDEVICE_QUEUE_ENTRY { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, sortkey : u32) -> *mut KDEVICE_QUEUE_ENTRY); - KeRemoveByKeyDeviceQueue(core::mem::transmute(devicequeue), core::mem::transmute(sortkey)) + KeRemoveByKeyDeviceQueue(core::mem::transmute(devicequeue), sortkey) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeRemoveByKeyDeviceQueueIfBusy(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, sortkey: u32) -> *mut KDEVICE_QUEUE_ENTRY { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveByKeyDeviceQueueIfBusy(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, sortkey : u32) -> *mut KDEVICE_QUEUE_ENTRY); - KeRemoveByKeyDeviceQueueIfBusy(core::mem::transmute(devicequeue), core::mem::transmute(sortkey)) + KeRemoveByKeyDeviceQueueIfBusy(core::mem::transmute(devicequeue), sortkey) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3307,7 +3250,7 @@ pub unsafe fn KeRemoveQueueDpc(dpc: *mut super::super::Foundation::KDPC) -> bool #[inline] pub unsafe fn KeRemoveQueueDpcEx(dpc: *mut super::super::Foundation::KDPC, waitifactive: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpcEx(dpc : *mut super::super::Foundation:: KDPC, waitifactive : bool) -> bool); - KeRemoveQueueDpcEx(core::mem::transmute(dpc), core::mem::transmute(waitifactive)) + KeRemoveQueueDpcEx(core::mem::transmute(dpc), waitifactive) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3319,7 +3262,7 @@ pub unsafe fn KeResetEvent(event: *mut super::super::Foundation::KEVENT) -> i32 #[inline] pub unsafe fn KeRestoreExtendedProcessorState(xstatesave: *const XSTATE_SAVE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeRestoreExtendedProcessorState(xstatesave : *const XSTATE_SAVE)); - KeRestoreExtendedProcessorState(core::mem::transmute(xstatesave)) + KeRestoreExtendedProcessorState(xstatesave) } #[inline] pub unsafe fn KeRevertToUserAffinityThread() { @@ -3329,37 +3272,37 @@ pub unsafe fn KeRevertToUserAffinityThread() { #[inline] pub unsafe fn KeRevertToUserAffinityThreadEx(affinity: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn KeRevertToUserAffinityThreadEx(affinity : usize)); - KeRevertToUserAffinityThreadEx(core::mem::transmute(affinity)) + KeRevertToUserAffinityThreadEx(affinity) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn KeRevertToUserGroupAffinityThread(previousaffinity: *const super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY) { windows_targets::link!("ntoskrnl.exe" "system" fn KeRevertToUserGroupAffinityThread(previousaffinity : *const super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY)); - KeRevertToUserGroupAffinityThread(core::mem::transmute(previousaffinity)) + KeRevertToUserGroupAffinityThread(previousaffinity) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn KeSaveExtendedProcessorState(mask: u64, xstatesave: *mut XSTATE_SAVE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeSaveExtendedProcessorState(mask : u64, xstatesave : *mut XSTATE_SAVE) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeSaveExtendedProcessorState(core::mem::transmute(mask), core::mem::transmute(xstatesave)) + KeSaveExtendedProcessorState(mask, core::mem::transmute(xstatesave)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeSetBasePriorityThread(thread: super::super::Foundation::PKTHREAD, increment: i32) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetBasePriorityThread(thread : super::super::Foundation:: PKTHREAD, increment : i32) -> i32); - KeSetBasePriorityThread(core::mem::transmute(thread), core::mem::transmute(increment)) + KeSetBasePriorityThread(thread, increment) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetCoalescableTimer(timer: *mut KTIMER, duetime: i64, period: u32, tolerabledelay: u32, dpc: Option<*const super::super::Foundation::KDPC>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetCoalescableTimer(timer : *mut KTIMER, duetime : i64, period : u32, tolerabledelay : u32, dpc : *const super::super::Foundation:: KDPC) -> bool); - KeSetCoalescableTimer(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(tolerabledelay), core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) + KeSetCoalescableTimer(core::mem::transmute(timer), duetime, period, tolerabledelay, core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetEvent(event: *mut super::super::Foundation::KEVENT, increment: i32, wait: bool) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : bool) -> i32); - KeSetEvent(core::mem::transmute(event), core::mem::transmute(increment), core::mem::transmute(wait)) + KeSetEvent(core::mem::transmute(event), increment, wait) } #[inline] pub unsafe fn KeSetHardwareCounterConfiguration(counterarray: &[HARDWARE_COUNTER]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3370,53 +3313,53 @@ pub unsafe fn KeSetHardwareCounterConfiguration(counterarray: &[HARDWARE_COUNTER #[inline] pub unsafe fn KeSetImportanceDpc(dpc: *mut super::super::Foundation::KDPC, importance: KDPC_IMPORTANCE) { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetImportanceDpc(dpc : *mut super::super::Foundation:: KDPC, importance : KDPC_IMPORTANCE)); - KeSetImportanceDpc(core::mem::transmute(dpc), core::mem::transmute(importance)) + KeSetImportanceDpc(core::mem::transmute(dpc), importance) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeSetPriorityThread(thread: super::super::Foundation::PKTHREAD, priority: i32) -> i32 { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetPriorityThread(thread : super::super::Foundation:: PKTHREAD, priority : i32) -> i32); - KeSetPriorityThread(core::mem::transmute(thread), core::mem::transmute(priority)) + KeSetPriorityThread(thread, priority) } #[inline] pub unsafe fn KeSetSystemAffinityThread(affinity: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetSystemAffinityThread(affinity : usize)); - KeSetSystemAffinityThread(core::mem::transmute(affinity)) + KeSetSystemAffinityThread(affinity) } #[inline] pub unsafe fn KeSetSystemAffinityThreadEx(affinity: usize) -> usize { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetSystemAffinityThreadEx(affinity : usize) -> usize); - KeSetSystemAffinityThreadEx(core::mem::transmute(affinity)) + KeSetSystemAffinityThreadEx(affinity) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn KeSetSystemGroupAffinityThread(affinity: *const super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY, previousaffinity: Option<*mut super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY>) { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetSystemGroupAffinityThread(affinity : *const super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY, previousaffinity : *mut super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY)); - KeSetSystemGroupAffinityThread(core::mem::transmute(affinity), core::mem::transmute(previousaffinity.unwrap_or(core::mem::zeroed()))) + KeSetSystemGroupAffinityThread(affinity, core::mem::transmute(previousaffinity.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetTargetProcessorDpc(dpc: *mut super::super::Foundation::KDPC, number: i8) { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTargetProcessorDpc(dpc : *mut super::super::Foundation:: KDPC, number : i8)); - KeSetTargetProcessorDpc(core::mem::transmute(dpc), core::mem::transmute(number)) + KeSetTargetProcessorDpc(core::mem::transmute(dpc), number) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetTargetProcessorDpcEx(dpc: *mut super::super::Foundation::KDPC, procnumber: *const super::super::super::Win32::System::Kernel::PROCESSOR_NUMBER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTargetProcessorDpcEx(dpc : *mut super::super::Foundation:: KDPC, procnumber : *const super::super::super::Win32::System::Kernel:: PROCESSOR_NUMBER) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeSetTargetProcessorDpcEx(core::mem::transmute(dpc), core::mem::transmute(procnumber)) + KeSetTargetProcessorDpcEx(core::mem::transmute(dpc), procnumber) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetTimer(timer: *mut KTIMER, duetime: i64, dpc: Option<*const super::super::Foundation::KDPC>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimer(timer : *mut KTIMER, duetime : i64, dpc : *const super::super::Foundation:: KDPC) -> bool); - KeSetTimer(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) + KeSetTimer(core::mem::transmute(timer), duetime, core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetTimerEx(timer: *mut KTIMER, duetime: i64, period: i32, dpc: Option<*const super::super::Foundation::KDPC>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimerEx(timer : *mut KTIMER, duetime : i64, period : i32, dpc : *const super::super::Foundation:: KDPC) -> bool); - KeSetTimerEx(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) + KeSetTimerEx(core::mem::transmute(timer), duetime, period, core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeShouldYieldProcessor() -> u32 { @@ -3426,18 +3369,18 @@ pub unsafe fn KeShouldYieldProcessor() -> u32 { #[inline] pub unsafe fn KeStallExecutionProcessor(microseconds: u32) { windows_targets::link!("hal.dll" "system" fn KeStallExecutionProcessor(microseconds : u32)); - KeStallExecutionProcessor(core::mem::transmute(microseconds)) + KeStallExecutionProcessor(microseconds) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeSynchronizeExecution(interrupt: super::super::Foundation::PKINTERRUPT, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: Option<*const core::ffi::c_void>) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeSynchronizeExecution(interrupt : super::super::Foundation:: PKINTERRUPT, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> bool); - KeSynchronizeExecution(core::mem::transmute(interrupt), core::mem::transmute(synchronizeroutine), core::mem::transmute(synchronizecontext.unwrap_or(core::mem::zeroed()))) + KeSynchronizeExecution(interrupt, synchronizeroutine, core::mem::transmute(synchronizecontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeTestSpinLock(spinlock: *const usize) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn KeTestSpinLock(spinlock : *const usize) -> bool); - KeTestSpinLock(core::mem::transmute(spinlock)) + KeTestSpinLock(spinlock) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3454,73 +3397,73 @@ pub unsafe fn KeTryToAcquireSpinLockAtDpcLevel(spinlock: *mut usize) -> bool { #[inline] pub unsafe fn KeWaitForMultipleObjects(object: &[*const core::ffi::c_void], waittype: super::super::super::Win32::System::Kernel::WAIT_TYPE, waitreason: KWAIT_REASON, waitmode: i8, alertable: bool, timeout: Option<*const i64>, waitblockarray: Option<*mut super::super::Foundation::KWAIT_BLOCK>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForMultipleObjects(count : u32, object : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, waitreason : KWAIT_REASON, waitmode : i8, alertable : bool, timeout : *const i64, waitblockarray : *mut super::super::Foundation:: KWAIT_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeWaitForMultipleObjects(object.len().try_into().unwrap(), core::mem::transmute(object.as_ptr()), core::mem::transmute(waittype), core::mem::transmute(waitreason), core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed()))) + KeWaitForMultipleObjects(object.len().try_into().unwrap(), core::mem::transmute(object.as_ptr()), waittype, waitreason, waitmode, alertable, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeWaitForSingleObject(object: *const core::ffi::c_void, waitreason: KWAIT_REASON, waitmode: i8, alertable: bool, timeout: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForSingleObject(object : *const core::ffi::c_void, waitreason : KWAIT_REASON, waitmode : i8, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeWaitForSingleObject(core::mem::transmute(object), core::mem::transmute(waitreason), core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + KeWaitForSingleObject(object, waitreason, waitmode, alertable, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KfRaiseIrql(newirql: u8) -> u8 { windows_targets::link!("ntoskrnl.exe" "system" fn KfRaiseIrql(newirql : u8) -> u8); - KfRaiseIrql(core::mem::transmute(newirql)) + KfRaiseIrql(newirql) } #[inline] pub unsafe fn MmAddPhysicalMemory(startaddress: *const i64, numberofbytes: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmAddPhysicalMemory(startaddress : *const i64, numberofbytes : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmAddPhysicalMemory(core::mem::transmute(startaddress), core::mem::transmute(numberofbytes)) + MmAddPhysicalMemory(startaddress, core::mem::transmute(numberofbytes)) } #[inline] pub unsafe fn MmAddVerifierSpecialThunks(entryroutine: usize, thunkbuffer: *const core::ffi::c_void, thunkbuffersize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmAddVerifierSpecialThunks(entryroutine : usize, thunkbuffer : *const core::ffi::c_void, thunkbuffersize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmAddVerifierSpecialThunks(core::mem::transmute(entryroutine), core::mem::transmute(thunkbuffer), core::mem::transmute(thunkbuffersize)) + MmAddVerifierSpecialThunks(entryroutine, thunkbuffer, thunkbuffersize) } #[inline] pub unsafe fn MmAddVerifierThunks(thunkbuffer: *const core::ffi::c_void, thunkbuffersize: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmAddVerifierThunks(thunkbuffer : *const core::ffi::c_void, thunkbuffersize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmAddVerifierThunks(core::mem::transmute(thunkbuffer), core::mem::transmute(thunkbuffersize)) + MmAddVerifierThunks(thunkbuffer, thunkbuffersize) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmAdvanceMdl(mdl: *mut super::super::Foundation::MDL, numberofbytes: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmAdvanceMdl(mdl : *mut super::super::Foundation:: MDL, numberofbytes : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmAdvanceMdl(core::mem::transmute(mdl), core::mem::transmute(numberofbytes)) + MmAdvanceMdl(core::mem::transmute(mdl), numberofbytes) } #[inline] pub unsafe fn MmAllocateContiguousMemory(numberofbytes: usize, highestacceptableaddress: i64) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateContiguousMemory(numberofbytes : usize, highestacceptableaddress : i64) -> *mut core::ffi::c_void); - MmAllocateContiguousMemory(core::mem::transmute(numberofbytes), core::mem::transmute(highestacceptableaddress)) + MmAllocateContiguousMemory(numberofbytes, highestacceptableaddress) } #[inline] pub unsafe fn MmAllocateContiguousMemoryEx(numberofbytes: *const usize, lowestacceptableaddress: i64, highestacceptableaddress: i64, boundaryaddressmultiple: i64, preferrednode: u32, protect: u32, partitionobject: Option<*const core::ffi::c_void>, tag: u32, flags: u32, baseaddress: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateContiguousMemoryEx(numberofbytes : *const usize, lowestacceptableaddress : i64, highestacceptableaddress : i64, boundaryaddressmultiple : i64, preferrednode : u32, protect : u32, partitionobject : *const core::ffi::c_void, tag : u32, flags : u32, baseaddress : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmAllocateContiguousMemoryEx(core::mem::transmute(numberofbytes), core::mem::transmute(lowestacceptableaddress), core::mem::transmute(highestacceptableaddress), core::mem::transmute(boundaryaddressmultiple), core::mem::transmute(preferrednode), core::mem::transmute(protect), core::mem::transmute(partitionobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(tag), core::mem::transmute(flags), core::mem::transmute(baseaddress)) + MmAllocateContiguousMemoryEx(numberofbytes, lowestacceptableaddress, highestacceptableaddress, boundaryaddressmultiple, preferrednode, protect, core::mem::transmute(partitionobject.unwrap_or(core::mem::zeroed())), tag, flags, core::mem::transmute(baseaddress)) } #[inline] pub unsafe fn MmAllocateContiguousMemorySpecifyCache(numberofbytes: usize, lowestacceptableaddress: i64, highestacceptableaddress: i64, boundaryaddressmultiple: Option, cachetype: MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateContiguousMemorySpecifyCache(numberofbytes : usize, lowestacceptableaddress : i64, highestacceptableaddress : i64, boundaryaddressmultiple : i64, cachetype : MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void); - MmAllocateContiguousMemorySpecifyCache(core::mem::transmute(numberofbytes), core::mem::transmute(lowestacceptableaddress), core::mem::transmute(highestacceptableaddress), core::mem::transmute(boundaryaddressmultiple.unwrap_or(core::mem::zeroed())), core::mem::transmute(cachetype)) + MmAllocateContiguousMemorySpecifyCache(numberofbytes, lowestacceptableaddress, highestacceptableaddress, core::mem::transmute(boundaryaddressmultiple.unwrap_or(core::mem::zeroed())), cachetype) } #[inline] pub unsafe fn MmAllocateContiguousMemorySpecifyCacheNode(numberofbytes: usize, lowestacceptableaddress: i64, highestacceptableaddress: i64, boundaryaddressmultiple: Option, cachetype: MEMORY_CACHING_TYPE, preferrednode: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateContiguousMemorySpecifyCacheNode(numberofbytes : usize, lowestacceptableaddress : i64, highestacceptableaddress : i64, boundaryaddressmultiple : i64, cachetype : MEMORY_CACHING_TYPE, preferrednode : u32) -> *mut core::ffi::c_void); - MmAllocateContiguousMemorySpecifyCacheNode(core::mem::transmute(numberofbytes), core::mem::transmute(lowestacceptableaddress), core::mem::transmute(highestacceptableaddress), core::mem::transmute(boundaryaddressmultiple.unwrap_or(core::mem::zeroed())), core::mem::transmute(cachetype), core::mem::transmute(preferrednode)) + MmAllocateContiguousMemorySpecifyCacheNode(numberofbytes, lowestacceptableaddress, highestacceptableaddress, core::mem::transmute(boundaryaddressmultiple.unwrap_or(core::mem::zeroed())), cachetype, preferrednode) } #[inline] pub unsafe fn MmAllocateContiguousNodeMemory(numberofbytes: usize, lowestacceptableaddress: i64, highestacceptableaddress: i64, boundaryaddressmultiple: Option, protect: u32, preferrednode: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateContiguousNodeMemory(numberofbytes : usize, lowestacceptableaddress : i64, highestacceptableaddress : i64, boundaryaddressmultiple : i64, protect : u32, preferrednode : u32) -> *mut core::ffi::c_void); - MmAllocateContiguousNodeMemory(core::mem::transmute(numberofbytes), core::mem::transmute(lowestacceptableaddress), core::mem::transmute(highestacceptableaddress), core::mem::transmute(boundaryaddressmultiple.unwrap_or(core::mem::zeroed())), core::mem::transmute(protect), core::mem::transmute(preferrednode)) + MmAllocateContiguousNodeMemory(numberofbytes, lowestacceptableaddress, highestacceptableaddress, core::mem::transmute(boundaryaddressmultiple.unwrap_or(core::mem::zeroed())), protect, preferrednode) } #[inline] pub unsafe fn MmAllocateMappingAddress(numberofbytes: usize, pooltag: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateMappingAddress(numberofbytes : usize, pooltag : u32) -> *mut core::ffi::c_void); - MmAllocateMappingAddress(core::mem::transmute(numberofbytes), core::mem::transmute(pooltag)) + MmAllocateMappingAddress(numberofbytes, pooltag) } #[inline] pub unsafe fn MmAllocateMappingAddressEx(numberofbytes: usize, pooltag: u32, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateMappingAddressEx(numberofbytes : usize, pooltag : u32, flags : u32) -> *mut core::ffi::c_void); - MmAllocateMappingAddressEx(core::mem::transmute(numberofbytes), core::mem::transmute(pooltag), core::mem::transmute(flags)) + MmAllocateMappingAddressEx(numberofbytes, pooltag, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3532,36 +3475,36 @@ pub unsafe fn MmAllocateMdlForIoSpace(physicaladdresslist: &[MM_PHYSICAL_ADDRESS #[inline] pub unsafe fn MmAllocateNodePagesForMdlEx(lowaddress: i64, highaddress: i64, skipbytes: i64, totalbytes: usize, cachetype: MEMORY_CACHING_TYPE, idealnode: u32, flags: u32) -> *mut super::super::Foundation::MDL { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateNodePagesForMdlEx(lowaddress : i64, highaddress : i64, skipbytes : i64, totalbytes : usize, cachetype : MEMORY_CACHING_TYPE, idealnode : u32, flags : u32) -> *mut super::super::Foundation:: MDL); - MmAllocateNodePagesForMdlEx(core::mem::transmute(lowaddress), core::mem::transmute(highaddress), core::mem::transmute(skipbytes), core::mem::transmute(totalbytes), core::mem::transmute(cachetype), core::mem::transmute(idealnode), core::mem::transmute(flags)) + MmAllocateNodePagesForMdlEx(lowaddress, highaddress, skipbytes, totalbytes, cachetype, idealnode, flags) } #[inline] pub unsafe fn MmAllocateNonCachedMemory(numberofbytes: usize) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocateNonCachedMemory(numberofbytes : usize) -> *mut core::ffi::c_void); - MmAllocateNonCachedMemory(core::mem::transmute(numberofbytes)) + MmAllocateNonCachedMemory(numberofbytes) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmAllocatePagesForMdl(lowaddress: i64, highaddress: i64, skipbytes: i64, totalbytes: usize) -> *mut super::super::Foundation::MDL { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocatePagesForMdl(lowaddress : i64, highaddress : i64, skipbytes : i64, totalbytes : usize) -> *mut super::super::Foundation:: MDL); - MmAllocatePagesForMdl(core::mem::transmute(lowaddress), core::mem::transmute(highaddress), core::mem::transmute(skipbytes), core::mem::transmute(totalbytes)) + MmAllocatePagesForMdl(lowaddress, highaddress, skipbytes, totalbytes) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmAllocatePagesForMdlEx(lowaddress: i64, highaddress: i64, skipbytes: i64, totalbytes: usize, cachetype: MEMORY_CACHING_TYPE, flags: u32) -> *mut super::super::Foundation::MDL { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocatePagesForMdlEx(lowaddress : i64, highaddress : i64, skipbytes : i64, totalbytes : usize, cachetype : MEMORY_CACHING_TYPE, flags : u32) -> *mut super::super::Foundation:: MDL); - MmAllocatePagesForMdlEx(core::mem::transmute(lowaddress), core::mem::transmute(highaddress), core::mem::transmute(skipbytes), core::mem::transmute(totalbytes), core::mem::transmute(cachetype), core::mem::transmute(flags)) + MmAllocatePagesForMdlEx(lowaddress, highaddress, skipbytes, totalbytes, cachetype, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmAllocatePartitionNodePagesForMdlEx(lowaddress: i64, highaddress: i64, skipbytes: i64, totalbytes: usize, cachetype: MEMORY_CACHING_TYPE, idealnode: u32, flags: u32, partitionobject: Option<*const core::ffi::c_void>) -> *mut super::super::Foundation::MDL { windows_targets::link!("ntoskrnl.exe" "system" fn MmAllocatePartitionNodePagesForMdlEx(lowaddress : i64, highaddress : i64, skipbytes : i64, totalbytes : usize, cachetype : MEMORY_CACHING_TYPE, idealnode : u32, flags : u32, partitionobject : *const core::ffi::c_void) -> *mut super::super::Foundation:: MDL); - MmAllocatePartitionNodePagesForMdlEx(core::mem::transmute(lowaddress), core::mem::transmute(highaddress), core::mem::transmute(skipbytes), core::mem::transmute(totalbytes), core::mem::transmute(cachetype), core::mem::transmute(idealnode), core::mem::transmute(flags), core::mem::transmute(partitionobject.unwrap_or(core::mem::zeroed()))) + MmAllocatePartitionNodePagesForMdlEx(lowaddress, highaddress, skipbytes, totalbytes, cachetype, idealnode, flags, core::mem::transmute(partitionobject.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmAreMdlPagesCached(memorydescriptorlist: *const super::super::Foundation::MDL) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmAreMdlPagesCached(memorydescriptorlist : *const super::super::Foundation:: MDL) -> u32); - MmAreMdlPagesCached(core::mem::transmute(memorydescriptorlist)) + MmAreMdlPagesCached(memorydescriptorlist) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3572,13 +3515,13 @@ pub unsafe fn MmBuildMdlForNonPagedPool(memorydescriptorlist: *mut super::super: #[inline] pub unsafe fn MmCopyMemory(targetaddress: *const core::ffi::c_void, sourceaddress: MM_COPY_ADDRESS, numberofbytes: usize, flags: u32, numberofbytestransferred: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmCopyMemory(targetaddress : *const core::ffi::c_void, sourceaddress : MM_COPY_ADDRESS, numberofbytes : usize, flags : u32, numberofbytestransferred : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmCopyMemory(core::mem::transmute(targetaddress), core::mem::transmute(sourceaddress), core::mem::transmute(numberofbytes), core::mem::transmute(flags), core::mem::transmute(numberofbytestransferred)) + MmCopyMemory(targetaddress, core::mem::transmute(sourceaddress), numberofbytes, flags, core::mem::transmute(numberofbytestransferred)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmCreateMdl(memorydescriptorlist: Option<*mut super::super::Foundation::MDL>, base: Option<*const core::ffi::c_void>, length: usize) -> *mut super::super::Foundation::MDL { windows_targets::link!("ntoskrnl.exe" "system" fn MmCreateMdl(memorydescriptorlist : *mut super::super::Foundation:: MDL, base : *const core::ffi::c_void, length : usize) -> *mut super::super::Foundation:: MDL); - MmCreateMdl(core::mem::transmute(memorydescriptorlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(length)) + MmCreateMdl(core::mem::transmute(memorydescriptorlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed())), length) } #[inline] pub unsafe fn MmCreateMirror() -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3588,22 +3531,22 @@ pub unsafe fn MmCreateMirror() -> super::super::super::Win32::Foundation::NTSTAT #[inline] pub unsafe fn MmFreeContiguousMemory(baseaddress: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn MmFreeContiguousMemory(baseaddress : *const core::ffi::c_void)); - MmFreeContiguousMemory(core::mem::transmute(baseaddress)) + MmFreeContiguousMemory(baseaddress) } #[inline] pub unsafe fn MmFreeContiguousMemorySpecifyCache(baseaddress: *const core::ffi::c_void, numberofbytes: usize, cachetype: MEMORY_CACHING_TYPE) { windows_targets::link!("ntoskrnl.exe" "system" fn MmFreeContiguousMemorySpecifyCache(baseaddress : *const core::ffi::c_void, numberofbytes : usize, cachetype : MEMORY_CACHING_TYPE)); - MmFreeContiguousMemorySpecifyCache(core::mem::transmute(baseaddress), core::mem::transmute(numberofbytes), core::mem::transmute(cachetype)) + MmFreeContiguousMemorySpecifyCache(baseaddress, numberofbytes, cachetype) } #[inline] pub unsafe fn MmFreeMappingAddress(baseaddress: *const core::ffi::c_void, pooltag: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn MmFreeMappingAddress(baseaddress : *const core::ffi::c_void, pooltag : u32)); - MmFreeMappingAddress(core::mem::transmute(baseaddress), core::mem::transmute(pooltag)) + MmFreeMappingAddress(baseaddress, pooltag) } #[inline] pub unsafe fn MmFreeNonCachedMemory(baseaddress: *const core::ffi::c_void, numberofbytes: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn MmFreeNonCachedMemory(baseaddress : *const core::ffi::c_void, numberofbytes : usize)); - MmFreeNonCachedMemory(core::mem::transmute(baseaddress), core::mem::transmute(numberofbytes)) + MmFreeNonCachedMemory(baseaddress, numberofbytes) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3615,22 +3558,22 @@ pub unsafe fn MmFreePagesFromMdl(memorydescriptorlist: *mut super::super::Founda #[inline] pub unsafe fn MmFreePagesFromMdlEx(memorydescriptorlist: *mut super::super::Foundation::MDL, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn MmFreePagesFromMdlEx(memorydescriptorlist : *mut super::super::Foundation:: MDL, flags : u32)); - MmFreePagesFromMdlEx(core::mem::transmute(memorydescriptorlist), core::mem::transmute(flags)) + MmFreePagesFromMdlEx(core::mem::transmute(memorydescriptorlist), flags) } #[inline] pub unsafe fn MmGetCacheAttribute(physicaladdress: i64, cachetype: *mut MEMORY_CACHING_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmGetCacheAttribute(physicaladdress : i64, cachetype : *mut MEMORY_CACHING_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmGetCacheAttribute(core::mem::transmute(physicaladdress), core::mem::transmute(cachetype)) + MmGetCacheAttribute(physicaladdress, core::mem::transmute(cachetype)) } #[inline] pub unsafe fn MmGetCacheAttributeEx(physicaladdress: i64, flags: u32, cachetype: *mut MEMORY_CACHING_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmGetCacheAttributeEx(physicaladdress : i64, flags : u32, cachetype : *mut MEMORY_CACHING_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmGetCacheAttributeEx(core::mem::transmute(physicaladdress), core::mem::transmute(flags), core::mem::transmute(cachetype)) + MmGetCacheAttributeEx(physicaladdress, flags, core::mem::transmute(cachetype)) } #[inline] pub unsafe fn MmGetPhysicalAddress(baseaddress: *const core::ffi::c_void) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn MmGetPhysicalAddress(baseaddress : *const core::ffi::c_void) -> i64); - MmGetPhysicalAddress(core::mem::transmute(baseaddress)) + MmGetPhysicalAddress(baseaddress) } #[inline] pub unsafe fn MmGetPhysicalMemoryRanges() -> *mut PHYSICAL_MEMORY_RANGE { @@ -3645,49 +3588,49 @@ pub unsafe fn MmGetPhysicalMemoryRangesEx(partitionobject: Option<*const core::f #[inline] pub unsafe fn MmGetPhysicalMemoryRangesEx2(partitionobject: Option<*const core::ffi::c_void>, flags: u32) -> *mut PHYSICAL_MEMORY_RANGE { windows_targets::link!("ntoskrnl.exe" "system" fn MmGetPhysicalMemoryRangesEx2(partitionobject : *const core::ffi::c_void, flags : u32) -> *mut PHYSICAL_MEMORY_RANGE); - MmGetPhysicalMemoryRangesEx2(core::mem::transmute(partitionobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + MmGetPhysicalMemoryRangesEx2(core::mem::transmute(partitionobject.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn MmGetSystemRoutineAddress(systemroutinename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmGetSystemRoutineAddress(systemroutinename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> *mut core::ffi::c_void); - MmGetSystemRoutineAddress(core::mem::transmute(systemroutinename)) + MmGetSystemRoutineAddress(systemroutinename) } #[inline] pub unsafe fn MmGetVirtualForPhysical(physicaladdress: i64) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmGetVirtualForPhysical(physicaladdress : i64) -> *mut core::ffi::c_void); - MmGetVirtualForPhysical(core::mem::transmute(physicaladdress)) + MmGetVirtualForPhysical(physicaladdress) } #[inline] pub unsafe fn MmIsAddressValid(virtualaddress: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsAddressValid(virtualaddress : *const core::ffi::c_void) -> bool); - MmIsAddressValid(core::mem::transmute(virtualaddress)) + MmIsAddressValid(virtualaddress) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn MmIsDriverSuspectForVerifier(driverobject: *const super::super::Foundation::DRIVER_OBJECT) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsDriverSuspectForVerifier(driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> u32); - MmIsDriverSuspectForVerifier(core::mem::transmute(driverobject)) + MmIsDriverSuspectForVerifier(driverobject) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn MmIsDriverVerifying(driverobject: *const super::super::Foundation::DRIVER_OBJECT) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsDriverVerifying(driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> u32); - MmIsDriverVerifying(core::mem::transmute(driverobject)) + MmIsDriverVerifying(driverobject) } #[inline] pub unsafe fn MmIsDriverVerifyingByAddress(addresswithinsection: *const core::ffi::c_void) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsDriverVerifyingByAddress(addresswithinsection : *const core::ffi::c_void) -> u32); - MmIsDriverVerifyingByAddress(core::mem::transmute(addresswithinsection)) + MmIsDriverVerifyingByAddress(addresswithinsection) } #[inline] pub unsafe fn MmIsIoSpaceActive(startaddress: i64, numberofbytes: usize) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsIoSpaceActive(startaddress : i64, numberofbytes : usize) -> u32); - MmIsIoSpaceActive(core::mem::transmute(startaddress), core::mem::transmute(numberofbytes)) + MmIsIoSpaceActive(startaddress, numberofbytes) } #[inline] pub unsafe fn MmIsNonPagedSystemAddressValid(virtualaddress: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn MmIsNonPagedSystemAddressValid(virtualaddress : *const core::ffi::c_void) -> bool); - MmIsNonPagedSystemAddressValid(core::mem::transmute(virtualaddress)) + MmIsNonPagedSystemAddressValid(virtualaddress) } #[inline] pub unsafe fn MmIsThisAnNtAsSystem() -> bool { @@ -3702,122 +3645,122 @@ pub unsafe fn MmIsVerifierEnabled(verifierflags: *mut u32) -> super::super::supe #[inline] pub unsafe fn MmLockPagableDataSection(addresswithinsection: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmLockPagableDataSection(addresswithinsection : *const core::ffi::c_void) -> *mut core::ffi::c_void); - MmLockPagableDataSection(core::mem::transmute(addresswithinsection)) + MmLockPagableDataSection(addresswithinsection) } #[inline] pub unsafe fn MmLockPagableSectionByHandle(imagesectionhandle: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn MmLockPagableSectionByHandle(imagesectionhandle : *const core::ffi::c_void)); - MmLockPagableSectionByHandle(core::mem::transmute(imagesectionhandle)) + MmLockPagableSectionByHandle(imagesectionhandle) } #[inline] pub unsafe fn MmMapIoSpace(physicaladdress: i64, numberofbytes: usize, cachetype: MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapIoSpace(physicaladdress : i64, numberofbytes : usize, cachetype : MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void); - MmMapIoSpace(core::mem::transmute(physicaladdress), core::mem::transmute(numberofbytes), core::mem::transmute(cachetype)) + MmMapIoSpace(physicaladdress, numberofbytes, cachetype) } #[inline] pub unsafe fn MmMapIoSpaceEx(physicaladdress: i64, numberofbytes: usize, protect: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapIoSpaceEx(physicaladdress : i64, numberofbytes : usize, protect : u32) -> *mut core::ffi::c_void); - MmMapIoSpaceEx(core::mem::transmute(physicaladdress), core::mem::transmute(numberofbytes), core::mem::transmute(protect)) + MmMapIoSpaceEx(physicaladdress, numberofbytes, protect) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmMapLockedPages(memorydescriptorlist: *mut super::super::Foundation::MDL, accessmode: i8) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapLockedPages(memorydescriptorlist : *mut super::super::Foundation:: MDL, accessmode : i8) -> *mut core::ffi::c_void); - MmMapLockedPages(core::mem::transmute(memorydescriptorlist), core::mem::transmute(accessmode)) + MmMapLockedPages(core::mem::transmute(memorydescriptorlist), accessmode) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmMapLockedPagesSpecifyCache(memorydescriptorlist: *mut super::super::Foundation::MDL, accessmode: i8, cachetype: MEMORY_CACHING_TYPE, requestedaddress: Option<*const core::ffi::c_void>, bugcheckonfailure: u32, priority: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapLockedPagesSpecifyCache(memorydescriptorlist : *mut super::super::Foundation:: MDL, accessmode : i8, cachetype : MEMORY_CACHING_TYPE, requestedaddress : *const core::ffi::c_void, bugcheckonfailure : u32, priority : u32) -> *mut core::ffi::c_void); - MmMapLockedPagesSpecifyCache(core::mem::transmute(memorydescriptorlist), core::mem::transmute(accessmode), core::mem::transmute(cachetype), core::mem::transmute(requestedaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(bugcheckonfailure), core::mem::transmute(priority)) + MmMapLockedPagesSpecifyCache(core::mem::transmute(memorydescriptorlist), accessmode, cachetype, core::mem::transmute(requestedaddress.unwrap_or(core::mem::zeroed())), bugcheckonfailure, priority) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmMapLockedPagesWithReservedMapping(mappingaddress: *const core::ffi::c_void, pooltag: u32, memorydescriptorlist: *mut super::super::Foundation::MDL, cachetype: MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapLockedPagesWithReservedMapping(mappingaddress : *const core::ffi::c_void, pooltag : u32, memorydescriptorlist : *mut super::super::Foundation:: MDL, cachetype : MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void); - MmMapLockedPagesWithReservedMapping(core::mem::transmute(mappingaddress), core::mem::transmute(pooltag), core::mem::transmute(memorydescriptorlist), core::mem::transmute(cachetype)) + MmMapLockedPagesWithReservedMapping(mappingaddress, pooltag, core::mem::transmute(memorydescriptorlist), cachetype) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmMapMdl(memorydescriptorlist: *mut super::super::Foundation::MDL, protection: u32, driverroutine: PMM_MDL_ROUTINE, drivercontext: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapMdl(memorydescriptorlist : *mut super::super::Foundation:: MDL, protection : u32, driverroutine : PMM_MDL_ROUTINE, drivercontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapMdl(core::mem::transmute(memorydescriptorlist), core::mem::transmute(protection), core::mem::transmute(driverroutine), core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) + MmMapMdl(core::mem::transmute(memorydescriptorlist), protection, driverroutine, core::mem::transmute(drivercontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmMapMemoryDumpMdlEx(va: *const core::ffi::c_void, pagetotal: u32, memorydumpmdl: *mut super::super::Foundation::MDL, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapMemoryDumpMdlEx(va : *const core::ffi::c_void, pagetotal : u32, memorydumpmdl : *mut super::super::Foundation:: MDL, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapMemoryDumpMdlEx(core::mem::transmute(va), core::mem::transmute(pagetotal), core::mem::transmute(memorydumpmdl), core::mem::transmute(flags)) + MmMapMemoryDumpMdlEx(va, pagetotal, core::mem::transmute(memorydumpmdl), flags) } #[inline] pub unsafe fn MmMapUserAddressesToPage(baseaddress: *const core::ffi::c_void, numberofbytes: usize, pageaddress: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapUserAddressesToPage(baseaddress : *const core::ffi::c_void, numberofbytes : usize, pageaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapUserAddressesToPage(core::mem::transmute(baseaddress), core::mem::transmute(numberofbytes), core::mem::transmute(pageaddress)) + MmMapUserAddressesToPage(baseaddress, numberofbytes, pageaddress) } #[inline] pub unsafe fn MmMapVideoDisplay(physicaladdress: i64, numberofbytes: usize, cachetype: MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapVideoDisplay(physicaladdress : i64, numberofbytes : usize, cachetype : MEMORY_CACHING_TYPE) -> *mut core::ffi::c_void); - MmMapVideoDisplay(core::mem::transmute(physicaladdress), core::mem::transmute(numberofbytes), core::mem::transmute(cachetype)) + MmMapVideoDisplay(physicaladdress, numberofbytes, cachetype) } #[inline] pub unsafe fn MmMapViewInSessionSpace(section: *const core::ffi::c_void, mappedbase: *mut *mut core::ffi::c_void, viewsize: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapViewInSessionSpace(section : *const core::ffi::c_void, mappedbase : *mut *mut core::ffi::c_void, viewsize : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapViewInSessionSpace(core::mem::transmute(section), core::mem::transmute(mappedbase), core::mem::transmute(viewsize)) + MmMapViewInSessionSpace(section, core::mem::transmute(mappedbase), core::mem::transmute(viewsize)) } #[inline] pub unsafe fn MmMapViewInSessionSpaceEx(section: *const core::ffi::c_void, mappedbase: *mut *mut core::ffi::c_void, viewsize: *mut usize, sectionoffset: *mut i64, flags: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapViewInSessionSpaceEx(section : *const core::ffi::c_void, mappedbase : *mut *mut core::ffi::c_void, viewsize : *mut usize, sectionoffset : *mut i64, flags : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapViewInSessionSpaceEx(core::mem::transmute(section), core::mem::transmute(mappedbase), core::mem::transmute(viewsize), core::mem::transmute(sectionoffset), core::mem::transmute(flags)) + MmMapViewInSessionSpaceEx(section, core::mem::transmute(mappedbase), core::mem::transmute(viewsize), core::mem::transmute(sectionoffset), flags) } #[inline] pub unsafe fn MmMapViewInSystemSpace(section: *const core::ffi::c_void, mappedbase: *mut *mut core::ffi::c_void, viewsize: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapViewInSystemSpace(section : *const core::ffi::c_void, mappedbase : *mut *mut core::ffi::c_void, viewsize : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapViewInSystemSpace(core::mem::transmute(section), core::mem::transmute(mappedbase), core::mem::transmute(viewsize)) + MmMapViewInSystemSpace(section, core::mem::transmute(mappedbase), core::mem::transmute(viewsize)) } #[inline] pub unsafe fn MmMapViewInSystemSpaceEx(section: *const core::ffi::c_void, mappedbase: *mut *mut core::ffi::c_void, viewsize: *mut usize, sectionoffset: *mut i64, flags: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmMapViewInSystemSpaceEx(section : *const core::ffi::c_void, mappedbase : *mut *mut core::ffi::c_void, viewsize : *mut usize, sectionoffset : *mut i64, flags : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmMapViewInSystemSpaceEx(core::mem::transmute(section), core::mem::transmute(mappedbase), core::mem::transmute(viewsize), core::mem::transmute(sectionoffset), core::mem::transmute(flags)) + MmMapViewInSystemSpaceEx(section, core::mem::transmute(mappedbase), core::mem::transmute(viewsize), core::mem::transmute(sectionoffset), flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmMdlPageContentsState(memorydescriptorlist: *mut super::super::Foundation::MDL, state: MM_MDL_PAGE_CONTENTS_STATE) -> MM_MDL_PAGE_CONTENTS_STATE { windows_targets::link!("ntoskrnl.exe" "system" fn MmMdlPageContentsState(memorydescriptorlist : *mut super::super::Foundation:: MDL, state : MM_MDL_PAGE_CONTENTS_STATE) -> MM_MDL_PAGE_CONTENTS_STATE); - MmMdlPageContentsState(core::mem::transmute(memorydescriptorlist), core::mem::transmute(state)) + MmMdlPageContentsState(core::mem::transmute(memorydescriptorlist), state) } #[inline] pub unsafe fn MmPageEntireDriver(addresswithinsection: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn MmPageEntireDriver(addresswithinsection : *const core::ffi::c_void) -> *mut core::ffi::c_void); - MmPageEntireDriver(core::mem::transmute(addresswithinsection)) + MmPageEntireDriver(addresswithinsection) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmProbeAndLockPages(memorydescriptorlist: *mut super::super::Foundation::MDL, accessmode: i8, operation: LOCK_OPERATION) { windows_targets::link!("ntoskrnl.exe" "system" fn MmProbeAndLockPages(memorydescriptorlist : *mut super::super::Foundation:: MDL, accessmode : i8, operation : LOCK_OPERATION)); - MmProbeAndLockPages(core::mem::transmute(memorydescriptorlist), core::mem::transmute(accessmode), core::mem::transmute(operation)) + MmProbeAndLockPages(core::mem::transmute(memorydescriptorlist), accessmode, operation) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmProbeAndLockProcessPages(memorydescriptorlist: *mut super::super::Foundation::MDL, process: super::super::Foundation::PEPROCESS, accessmode: i8, operation: LOCK_OPERATION) { windows_targets::link!("ntoskrnl.exe" "system" fn MmProbeAndLockProcessPages(memorydescriptorlist : *mut super::super::Foundation:: MDL, process : super::super::Foundation:: PEPROCESS, accessmode : i8, operation : LOCK_OPERATION)); - MmProbeAndLockProcessPages(core::mem::transmute(memorydescriptorlist), core::mem::transmute(process), core::mem::transmute(accessmode), core::mem::transmute(operation)) + MmProbeAndLockProcessPages(core::mem::transmute(memorydescriptorlist), process, accessmode, operation) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_FileSystem"))] #[inline] pub unsafe fn MmProbeAndLockSelectedPages(memorydescriptorlist: *mut super::super::Foundation::MDL, segmentarray: *const super::super::super::Win32::Storage::FileSystem::FILE_SEGMENT_ELEMENT, accessmode: i8, operation: LOCK_OPERATION) { windows_targets::link!("ntoskrnl.exe" "system" fn MmProbeAndLockSelectedPages(memorydescriptorlist : *mut super::super::Foundation:: MDL, segmentarray : *const super::super::super::Win32::Storage::FileSystem:: FILE_SEGMENT_ELEMENT, accessmode : i8, operation : LOCK_OPERATION)); - MmProbeAndLockSelectedPages(core::mem::transmute(memorydescriptorlist), core::mem::transmute(segmentarray), core::mem::transmute(accessmode), core::mem::transmute(operation)) + MmProbeAndLockSelectedPages(core::mem::transmute(memorydescriptorlist), segmentarray, accessmode, operation) } #[inline] pub unsafe fn MmProtectDriverSection(addresswithinsection: *const core::ffi::c_void, size: usize, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmProtectDriverSection(addresswithinsection : *const core::ffi::c_void, size : usize, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmProtectDriverSection(core::mem::transmute(addresswithinsection), core::mem::transmute(size), core::mem::transmute(flags)) + MmProtectDriverSection(addresswithinsection, size, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmProtectMdlSystemAddress(memorydescriptorlist: *const super::super::Foundation::MDL, newprotect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmProtectMdlSystemAddress(memorydescriptorlist : *const super::super::Foundation:: MDL, newprotect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmProtectMdlSystemAddress(core::mem::transmute(memorydescriptorlist), core::mem::transmute(newprotect)) + MmProtectMdlSystemAddress(memorydescriptorlist, newprotect) } #[inline] pub unsafe fn MmQuerySystemSize() -> MM_SYSTEMSIZE { @@ -3827,43 +3770,43 @@ pub unsafe fn MmQuerySystemSize() -> MM_SYSTEMSIZE { #[inline] pub unsafe fn MmRemovePhysicalMemory(startaddress: *const i64, numberofbytes: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmRemovePhysicalMemory(startaddress : *const i64, numberofbytes : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmRemovePhysicalMemory(core::mem::transmute(startaddress), core::mem::transmute(numberofbytes)) + MmRemovePhysicalMemory(startaddress, core::mem::transmute(numberofbytes)) } #[inline] pub unsafe fn MmResetDriverPaging(addresswithinsection: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn MmResetDriverPaging(addresswithinsection : *const core::ffi::c_void)); - MmResetDriverPaging(core::mem::transmute(addresswithinsection)) + MmResetDriverPaging(addresswithinsection) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmRotatePhysicalView(virtualaddress: *const core::ffi::c_void, numberofbytes: *mut usize, newmdl: Option<*const super::super::Foundation::MDL>, direction: MM_ROTATE_DIRECTION, copyfunction: PMM_ROTATE_COPY_CALLBACK_FUNCTION, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmRotatePhysicalView(virtualaddress : *const core::ffi::c_void, numberofbytes : *mut usize, newmdl : *const super::super::Foundation:: MDL, direction : MM_ROTATE_DIRECTION, copyfunction : PMM_ROTATE_COPY_CALLBACK_FUNCTION, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmRotatePhysicalView(core::mem::transmute(virtualaddress), core::mem::transmute(numberofbytes), core::mem::transmute(newmdl.unwrap_or(core::mem::zeroed())), core::mem::transmute(direction), core::mem::transmute(copyfunction), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + MmRotatePhysicalView(virtualaddress, core::mem::transmute(numberofbytes), core::mem::transmute(newmdl.unwrap_or(core::mem::zeroed())), direction, copyfunction, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MmSecureVirtualMemory(address: *const core::ffi::c_void, size: usize, probemode: u32) -> super::super::super::Win32::Foundation::HANDLE { windows_targets::link!("ntoskrnl.exe" "system" fn MmSecureVirtualMemory(address : *const core::ffi::c_void, size : usize, probemode : u32) -> super::super::super::Win32::Foundation:: HANDLE); - MmSecureVirtualMemory(core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(probemode)) + MmSecureVirtualMemory(address, size, probemode) } #[inline] pub unsafe fn MmSecureVirtualMemoryEx(address: *const core::ffi::c_void, size: usize, probemode: u32, flags: u32) -> super::super::super::Win32::Foundation::HANDLE { windows_targets::link!("ntoskrnl.exe" "system" fn MmSecureVirtualMemoryEx(address : *const core::ffi::c_void, size : usize, probemode : u32, flags : u32) -> super::super::super::Win32::Foundation:: HANDLE); - MmSecureVirtualMemoryEx(core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(probemode), core::mem::transmute(flags)) + MmSecureVirtualMemoryEx(address, size, probemode, flags) } #[inline] pub unsafe fn MmSetPermanentCacheAttribute(startaddress: i64, numberofbytes: i64, cachetype: MEMORY_CACHING_TYPE, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmSetPermanentCacheAttribute(startaddress : i64, numberofbytes : i64, cachetype : MEMORY_CACHING_TYPE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmSetPermanentCacheAttribute(core::mem::transmute(startaddress), core::mem::transmute(numberofbytes), core::mem::transmute(cachetype), core::mem::transmute(flags)) + MmSetPermanentCacheAttribute(startaddress, numberofbytes, cachetype, flags) } #[inline] pub unsafe fn MmSizeOfMdl(base: Option<*const core::ffi::c_void>, length: usize) -> usize { windows_targets::link!("ntoskrnl.exe" "system" fn MmSizeOfMdl(base : *const core::ffi::c_void, length : usize) -> usize); - MmSizeOfMdl(core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(length)) + MmSizeOfMdl(core::mem::transmute(base.unwrap_or(core::mem::zeroed())), length) } #[inline] pub unsafe fn MmUnlockPagableImageSection(imagesectionhandle: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnlockPagableImageSection(imagesectionhandle : *const core::ffi::c_void)); - MmUnlockPagableImageSection(core::mem::transmute(imagesectionhandle)) + MmUnlockPagableImageSection(imagesectionhandle) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3874,39 +3817,39 @@ pub unsafe fn MmUnlockPages(memorydescriptorlist: *mut super::super::Foundation: #[inline] pub unsafe fn MmUnmapIoSpace(baseaddress: *const core::ffi::c_void, numberofbytes: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnmapIoSpace(baseaddress : *const core::ffi::c_void, numberofbytes : usize)); - MmUnmapIoSpace(core::mem::transmute(baseaddress), core::mem::transmute(numberofbytes)) + MmUnmapIoSpace(baseaddress, numberofbytes) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmUnmapLockedPages(baseaddress: *const core::ffi::c_void, memorydescriptorlist: *mut super::super::Foundation::MDL) { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnmapLockedPages(baseaddress : *const core::ffi::c_void, memorydescriptorlist : *mut super::super::Foundation:: MDL)); - MmUnmapLockedPages(core::mem::transmute(baseaddress), core::mem::transmute(memorydescriptorlist)) + MmUnmapLockedPages(baseaddress, core::mem::transmute(memorydescriptorlist)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn MmUnmapReservedMapping(baseaddress: *const core::ffi::c_void, pooltag: u32, memorydescriptorlist: *mut super::super::Foundation::MDL) { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnmapReservedMapping(baseaddress : *const core::ffi::c_void, pooltag : u32, memorydescriptorlist : *mut super::super::Foundation:: MDL)); - MmUnmapReservedMapping(core::mem::transmute(baseaddress), core::mem::transmute(pooltag), core::mem::transmute(memorydescriptorlist)) + MmUnmapReservedMapping(baseaddress, pooltag, core::mem::transmute(memorydescriptorlist)) } #[inline] pub unsafe fn MmUnmapVideoDisplay(baseaddress: *const core::ffi::c_void, numberofbytes: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnmapVideoDisplay(baseaddress : *const core::ffi::c_void, numberofbytes : usize)); - MmUnmapVideoDisplay(core::mem::transmute(baseaddress), core::mem::transmute(numberofbytes)) + MmUnmapVideoDisplay(baseaddress, numberofbytes) } #[inline] pub unsafe fn MmUnmapViewInSessionSpace(mappedbase: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnmapViewInSessionSpace(mappedbase : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmUnmapViewInSessionSpace(core::mem::transmute(mappedbase)) + MmUnmapViewInSessionSpace(mappedbase) } #[inline] pub unsafe fn MmUnmapViewInSystemSpace(mappedbase: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnmapViewInSystemSpace(mappedbase : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - MmUnmapViewInSystemSpace(core::mem::transmute(mappedbase)) + MmUnmapViewInSystemSpace(mappedbase) } #[inline] pub unsafe fn MmUnsecureVirtualMemory(securehandle: super::super::super::Win32::Foundation::HANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnsecureVirtualMemory(securehandle : super::super::super::Win32::Foundation:: HANDLE)); - MmUnsecureVirtualMemory(core::mem::transmute(securehandle)) + MmUnsecureVirtualMemory(securehandle) } #[inline] pub unsafe fn NtAllocateLocallyUniqueId(luid: *mut super::super::super::Win32::Foundation::LUID) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3916,29 +3859,29 @@ pub unsafe fn NtAllocateLocallyUniqueId(luid: *mut super::super::super::Win32::F #[inline] pub unsafe fn NtCommitComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCommitComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCommitComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtCommitComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtCommitEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCommitEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCommitEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtCommitEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtCommitTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCommitTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) + NtCommitTransaction(transactionhandle, wait) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, transactionhandle: super::super::super::Win32::Foundation::HANDLE, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: Option, notificationmask: u32, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32, notificationmask : u32, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(desiredaccess), core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionhandle), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationmask), core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) + NtCreateEnlistment(core::mem::transmute(enlistmenthandle), desiredaccess, resourcemanagerhandle, transactionhandle, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtCreateResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: super::super::super::Win32::Foundation::HANDLE, rmguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: Option, description: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateResourceManager(resourcemanagerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tmhandle : super::super::super::Win32::Foundation:: HANDLE, rmguid : *const windows_core::GUID, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32, description : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tmhandle), core::mem::transmute(rmguid), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.unwrap_or(core::mem::zeroed()))) + NtCreateResourceManager(core::mem::transmute(resourcemanagerhandle), desiredaccess, tmhandle, rmguid, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -3946,7 +3889,7 @@ pub unsafe fn NtCreateTransaction(transactionhandle: *mut super::super::super::W windows_targets::link!("ntdll.dll" "system" fn NtCreateTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, uow : *const windows_core::GUID, tmhandle : super::super::super::Win32::Foundation:: HANDLE, createoptions : u32, isolationlevel : u32, isolationflags : u32, timeout : *const i64, description : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); NtCreateTransaction( core::mem::transmute(transactionhandle), - core::mem::transmute(desiredaccess), + desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(uow.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed())), @@ -3961,222 +3904,222 @@ pub unsafe fn NtCreateTransaction(transactionhandle: *mut super::super::super::W #[inline] pub unsafe fn NtCreateTransactionManager(tmhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, logfilename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: Option, commitstrength: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateTransactionManager(tmhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, commitstrength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateTransactionManager(core::mem::transmute(tmhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(commitstrength.unwrap_or(core::mem::zeroed()))) + NtCreateTransactionManager(core::mem::transmute(tmhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(commitstrength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtDisplayString(string: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtDisplayString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDisplayString(core::mem::transmute(string)) + NtDisplayString(string) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtEnumerateTransactionObject(rootobjecthandle: Option, querytype: super::super::super::Win32::System::SystemServices::KTMOBJECT_TYPE, objectcursor: *mut super::super::super::Win32::System::SystemServices::KTMOBJECT_CURSOR, objectcursorlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtEnumerateTransactionObject(rootobjecthandle : super::super::super::Win32::Foundation:: HANDLE, querytype : super::super::super::Win32::System::SystemServices:: KTMOBJECT_TYPE, objectcursor : *mut super::super::super::Win32::System::SystemServices:: KTMOBJECT_CURSOR, objectcursorlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtEnumerateTransactionObject(core::mem::transmute(rootobjecthandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(querytype), core::mem::transmute(objectcursor), core::mem::transmute(objectcursorlength), core::mem::transmute(returnlength)) + NtEnumerateTransactionObject(core::mem::transmute(rootobjecthandle.unwrap_or(core::mem::zeroed())), querytype, core::mem::transmute(objectcursor), objectcursorlength, core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn NtGetNotificationResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, transactionnotification: *mut super::super::super::Win32::Storage::FileSystem::TRANSACTION_NOTIFICATION, notificationlength: u32, timeout: Option<*const i64>, returnlength: Option<*mut u32>, asynchronous: u32, asynchronouscontext: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtGetNotificationResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionnotification : *mut super::super::super::Win32::Storage::FileSystem:: TRANSACTION_NOTIFICATION, notificationlength : u32, timeout : *const i64, returnlength : *mut u32, asynchronous : u32, asynchronouscontext : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtGetNotificationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionnotification), core::mem::transmute(notificationlength), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(asynchronous), core::mem::transmute(asynchronouscontext.unwrap_or(core::mem::zeroed()))) + NtGetNotificationResourceManager(resourcemanagerhandle, core::mem::transmute(transactionnotification), notificationlength, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed())), asynchronous, core::mem::transmute(asynchronouscontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtLoadDriver(driverservicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtLoadDriver(driverservicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtLoadDriver(core::mem::transmute(driverservicename)) + NtLoadDriver(driverservicename) } #[inline] pub unsafe fn NtMakeTemporaryObject(handle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtMakeTemporaryObject(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtMakeTemporaryObject(core::mem::transmute(handle)) + NtMakeTemporaryObject(handle) } #[inline] pub unsafe fn NtManagePartition(targethandle: super::super::super::Win32::Foundation::HANDLE, sourcehandle: Option, partitioninformationclass: PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtManagePartition(targethandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, partitioninformationclass : PARTITION_INFORMATION_CLASS, partitioninformation : *mut core::ffi::c_void, partitioninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtManagePartition(core::mem::transmute(targethandle), core::mem::transmute(sourcehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(partitioninformationclass), core::mem::transmute(partitioninformation), core::mem::transmute(partitioninformationlength)) + NtManagePartition(targethandle, core::mem::transmute(sourcehandle.unwrap_or(core::mem::zeroed())), partitioninformationclass, core::mem::transmute(partitioninformation), partitioninformationlength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, enlistmentguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentguid : *const windows_core::GUID, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(desiredaccess), core::mem::transmute(resourcemanagerhandle), core::mem::transmute(enlistmentguid), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) + NtOpenEnlistment(core::mem::transmute(enlistmenthandle), desiredaccess, resourcemanagerhandle, enlistmentguid, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerguid: Option<*const windows_core::GUID>, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenResourceManager(resourcemanagerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tmhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerguid : *const windows_core::GUID, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tmhandle), core::mem::transmute(resourcemanagerguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) + NtOpenResourceManager(core::mem::transmute(resourcemanagerhandle), desiredaccess, tmhandle, core::mem::transmute(resourcemanagerguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, uow: *const windows_core::GUID, tmhandle: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, uow : *const windows_core::GUID, tmhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(uow), core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed()))) + NtOpenTransaction(core::mem::transmute(transactionhandle), desiredaccess, objectattributes, uow, core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenTransactionManager(tmhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, logfilename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, tmidentity: Option<*const windows_core::GUID>, openoptions: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenTransactionManager(tmhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, tmidentity : *const windows_core::GUID, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenTransactionManager(core::mem::transmute(tmhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(openoptions.unwrap_or(core::mem::zeroed()))) + NtOpenTransactionManager(core::mem::transmute(tmhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(openoptions.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Power")] #[inline] pub unsafe fn NtPowerInformation(informationlevel: super::super::super::Win32::System::Power::POWER_INFORMATION_LEVEL, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPowerInformation(informationlevel : super::super::super::Win32::System::Power:: POWER_INFORMATION_LEVEL, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPowerInformation(core::mem::transmute(informationlevel), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength)) + NtPowerInformation(informationlevel, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } #[inline] pub unsafe fn NtPrePrepareComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrePrepareComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrePrepareComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtPrePrepareComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtPrePrepareEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrePrepareEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrePrepareEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtPrePrepareEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtPrepareComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrepareComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrepareComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtPrepareComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtPrepareEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPrepareEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrepareEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtPrepareEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtPropagationComplete(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, requestcookie: u32, bufferlength: u32, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPropagationComplete(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, requestcookie : u32, bufferlength : u32, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPropagationComplete(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(requestcookie), core::mem::transmute(bufferlength), core::mem::transmute(buffer)) + NtPropagationComplete(resourcemanagerhandle, requestcookie, bufferlength, buffer) } #[inline] pub unsafe fn NtPropagationFailed(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, requestcookie: u32, propstatus: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtPropagationFailed(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, requestcookie : u32, propstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPropagationFailed(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(requestcookie), core::mem::transmute(propstatus)) + NtPropagationFailed(resourcemanagerhandle, requestcookie, propstatus) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, enlistmentinformationclass: super::super::super::Win32::System::SystemServices::ENLISTMENT_INFORMATION_CLASS, enlistmentinformation: *mut core::ffi::c_void, enlistmentinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentinformationclass : super::super::super::Win32::System::SystemServices:: ENLISTMENT_INFORMATION_CLASS, enlistmentinformation : *mut core::ffi::c_void, enlistmentinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentinformationclass), core::mem::transmute(enlistmentinformation), core::mem::transmute(enlistmentinformationlength), core::mem::transmute(returnlength)) + NtQueryInformationEnlistment(enlistmenthandle, enlistmentinformationclass, core::mem::transmute(enlistmentinformation), enlistmentinformationlength, core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerinformationclass: super::super::super::Win32::System::SystemServices::RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation: *mut core::ffi::c_void, resourcemanagerinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerinformationclass : super::super::super::Win32::System::SystemServices:: RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation : *mut core::ffi::c_void, resourcemanagerinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(resourcemanagerinformationclass), core::mem::transmute(resourcemanagerinformation), core::mem::transmute(resourcemanagerinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + NtQueryInformationResourceManager(resourcemanagerhandle, resourcemanagerinformationclass, core::mem::transmute(resourcemanagerinformation), resourcemanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, transactioninformationclass: super::super::super::Win32::System::SystemServices::TRANSACTION_INFORMATION_CLASS, transactioninformation: *mut core::ffi::c_void, transactioninformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, transactioninformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTION_INFORMATION_CLASS, transactioninformation : *mut core::ffi::c_void, transactioninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(transactioninformationclass), core::mem::transmute(transactioninformation), core::mem::transmute(transactioninformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + NtQueryInformationTransaction(transactionhandle, transactioninformationclass, core::mem::transmute(transactioninformation), transactioninformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE, transactionmanagerinformationclass: super::super::super::Win32::System::SystemServices::TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation: *mut core::ffi::c_void, transactionmanagerinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionmanagerinformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation : *mut core::ffi::c_void, transactionmanagerinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationTransactionManager(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(transactionmanagerinformationclass), core::mem::transmute(transactionmanagerinformation), core::mem::transmute(transactionmanagerinformationlength), core::mem::transmute(returnlength)) + NtQueryInformationTransactionManager(transactionmanagerhandle, transactionmanagerinformationclass, core::mem::transmute(transactionmanagerinformation), transactionmanagerinformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn NtReadOnlyEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtReadOnlyEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtReadOnlyEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtReadOnlyEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtRecoverEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRecoverEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRecoverEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) + NtRecoverEnlistment(enlistmenthandle, core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtRecoverResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRecoverResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRecoverResourceManager(core::mem::transmute(resourcemanagerhandle)) + NtRecoverResourceManager(resourcemanagerhandle) } #[inline] pub unsafe fn NtRecoverTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRecoverTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRecoverTransactionManager(core::mem::transmute(transactionmanagerhandle)) + NtRecoverTransactionManager(transactionmanagerhandle) } #[inline] pub unsafe fn NtRegisterProtocolAddressInformation(resourcemanager: super::super::super::Win32::Foundation::HANDLE, protocolid: *const windows_core::GUID, protocolinformationsize: u32, protocolinformation: *const core::ffi::c_void, createoptions: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRegisterProtocolAddressInformation(resourcemanager : super::super::super::Win32::Foundation:: HANDLE, protocolid : *const windows_core::GUID, protocolinformationsize : u32, protocolinformation : *const core::ffi::c_void, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRegisterProtocolAddressInformation(core::mem::transmute(resourcemanager), core::mem::transmute(protocolid), core::mem::transmute(protocolinformationsize), core::mem::transmute(protocolinformation), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) + NtRegisterProtocolAddressInformation(resourcemanager, protocolid, protocolinformationsize, protocolinformation, core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtRenameTransactionManager(logfilename: *const super::super::super::Win32::Foundation::UNICODE_STRING, existingtransactionmanagerguid: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRenameTransactionManager(logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, existingtransactionmanagerguid : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRenameTransactionManager(core::mem::transmute(logfilename), core::mem::transmute(existingtransactionmanagerguid)) + NtRenameTransactionManager(logfilename, existingtransactionmanagerguid) } #[inline] pub unsafe fn NtRollbackComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRollbackComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtRollbackComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtRollbackEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRollbackEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtRollbackEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtRollbackTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) + NtRollbackTransaction(transactionhandle, wait) } #[inline] pub unsafe fn NtRollforwardTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtRollforwardTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollforwardTransactionManager(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtRollforwardTransactionManager(transactionmanagerhandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationEnlistment(enlistmenthandle: Option, enlistmentinformationclass: super::super::super::Win32::System::SystemServices::ENLISTMENT_INFORMATION_CLASS, enlistmentinformation: *const core::ffi::c_void, enlistmentinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentinformationclass : super::super::super::Win32::System::SystemServices:: ENLISTMENT_INFORMATION_CLASS, enlistmentinformation : *const core::ffi::c_void, enlistmentinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationEnlistment(core::mem::transmute(enlistmenthandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(enlistmentinformationclass), core::mem::transmute(enlistmentinformation), core::mem::transmute(enlistmentinformationlength)) + NtSetInformationEnlistment(core::mem::transmute(enlistmenthandle.unwrap_or(core::mem::zeroed())), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerinformationclass: super::super::super::Win32::System::SystemServices::RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation: *const core::ffi::c_void, resourcemanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerinformationclass : super::super::super::Win32::System::SystemServices:: RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation : *const core::ffi::c_void, resourcemanagerinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(resourcemanagerinformationclass), core::mem::transmute(resourcemanagerinformation), core::mem::transmute(resourcemanagerinformationlength)) + NtSetInformationResourceManager(resourcemanagerhandle, resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, transactioninformationclass: super::super::super::Win32::System::SystemServices::TRANSACTION_INFORMATION_CLASS, transactioninformation: *const core::ffi::c_void, transactioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, transactioninformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTION_INFORMATION_CLASS, transactioninformation : *const core::ffi::c_void, transactioninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(transactioninformationclass), core::mem::transmute(transactioninformation), core::mem::transmute(transactioninformationlength)) + NtSetInformationTransaction(transactionhandle, transactioninformationclass, transactioninformation, transactioninformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationTransactionManager(tmhandle: Option, transactionmanagerinformationclass: super::super::super::Win32::System::SystemServices::TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation: *const core::ffi::c_void, transactionmanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationTransactionManager(tmhandle : super::super::super::Win32::Foundation:: HANDLE, transactionmanagerinformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation : *const core::ffi::c_void, transactionmanagerinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationTransactionManager(core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(transactionmanagerinformationclass), core::mem::transmute(transactionmanagerinformation), core::mem::transmute(transactionmanagerinformationlength)) + NtSetInformationTransactionManager(core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed())), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength) } #[inline] pub unsafe fn NtSinglePhaseReject(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSinglePhaseReject(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSinglePhaseReject(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + NtSinglePhaseReject(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtUnloadDriver(driverservicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtUnloadDriver(driverservicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtUnloadDriver(core::mem::transmute(driverservicename)) + NtUnloadDriver(driverservicename) } #[inline] pub unsafe fn ObCloseHandle(handle: super::super::super::Win32::Foundation::HANDLE, previousmode: i8) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObCloseHandle(handle : super::super::super::Win32::Foundation:: HANDLE, previousmode : i8) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObCloseHandle(core::mem::transmute(handle), core::mem::transmute(previousmode)) + ObCloseHandle(handle, previousmode) } #[inline] pub unsafe fn ObDereferenceObjectDeferDelete(object: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn ObDereferenceObjectDeferDelete(object : *const core::ffi::c_void)); - ObDereferenceObjectDeferDelete(core::mem::transmute(object)) + ObDereferenceObjectDeferDelete(object) } #[inline] pub unsafe fn ObDereferenceObjectDeferDeleteWithTag(object: *const core::ffi::c_void, tag: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ObDereferenceObjectDeferDeleteWithTag(object : *const core::ffi::c_void, tag : u32)); - ObDereferenceObjectDeferDeleteWithTag(core::mem::transmute(object), core::mem::transmute(tag)) + ObDereferenceObjectDeferDeleteWithTag(object, tag) } #[inline] pub unsafe fn ObGetFilterVersion() -> u16 { @@ -4187,132 +4130,132 @@ pub unsafe fn ObGetFilterVersion() -> u16 { #[inline] pub unsafe fn ObGetObjectSecurity(object: *const core::ffi::c_void, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, memoryallocated: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObGetObjectSecurity(object : *const core::ffi::c_void, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObGetObjectSecurity(core::mem::transmute(object), core::mem::transmute(securitydescriptor), core::mem::transmute(memoryallocated)) + ObGetObjectSecurity(object, core::mem::transmute(securitydescriptor), core::mem::transmute(memoryallocated)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByHandle(handle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objecttype: Option, accessmode: i8, object: *mut *mut core::ffi::c_void, handleinformation: Option<*mut OBJECT_HANDLE_INFORMATION>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, object : *mut *mut core::ffi::c_void, handleinformation : *mut OBJECT_HANDLE_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObReferenceObjectByHandle(core::mem::transmute(handle), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode), core::mem::transmute(object), core::mem::transmute(handleinformation.unwrap_or(core::mem::zeroed()))) + ObReferenceObjectByHandle(handle, desiredaccess, core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), accessmode, core::mem::transmute(object), core::mem::transmute(handleinformation.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByHandleWithTag(handle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objecttype: Option, accessmode: i8, tag: u32, object: *mut *mut core::ffi::c_void, handleinformation: Option<*mut OBJECT_HANDLE_INFORMATION>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByHandleWithTag(handle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, tag : u32, object : *mut *mut core::ffi::c_void, handleinformation : *mut OBJECT_HANDLE_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObReferenceObjectByHandleWithTag(core::mem::transmute(handle), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode), core::mem::transmute(tag), core::mem::transmute(object), core::mem::transmute(handleinformation.unwrap_or(core::mem::zeroed()))) + ObReferenceObjectByHandleWithTag(handle, desiredaccess, core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), accessmode, tag, core::mem::transmute(object), core::mem::transmute(handleinformation.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByPointer(object: *const core::ffi::c_void, desiredaccess: u32, objecttype: Option, accessmode: i8) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByPointer(object : *const core::ffi::c_void, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObReferenceObjectByPointer(core::mem::transmute(object), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode)) + ObReferenceObjectByPointer(object, desiredaccess, core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), accessmode) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByPointerWithTag(object: *const core::ffi::c_void, desiredaccess: u32, objecttype: Option, accessmode: i8, tag: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByPointerWithTag(object : *const core::ffi::c_void, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, tag : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObReferenceObjectByPointerWithTag(core::mem::transmute(object), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode), core::mem::transmute(tag)) + ObReferenceObjectByPointerWithTag(object, desiredaccess, core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), accessmode, tag) } #[inline] pub unsafe fn ObReferenceObjectSafe(object: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafe(object : *const core::ffi::c_void) -> bool); - ObReferenceObjectSafe(core::mem::transmute(object)) + ObReferenceObjectSafe(object) } #[inline] pub unsafe fn ObReferenceObjectSafeWithTag(object: *const core::ffi::c_void, tag: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafeWithTag(object : *const core::ffi::c_void, tag : u32) -> bool); - ObReferenceObjectSafeWithTag(core::mem::transmute(object), core::mem::transmute(tag)) + ObReferenceObjectSafeWithTag(object, tag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObRegisterCallbacks(callbackregistration: *const OB_CALLBACK_REGISTRATION, registrationhandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn ObRegisterCallbacks(callbackregistration : *const OB_CALLBACK_REGISTRATION, registrationhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObRegisterCallbacks(core::mem::transmute(callbackregistration), core::mem::transmute(registrationhandle)) + ObRegisterCallbacks(callbackregistration, core::mem::transmute(registrationhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ObReleaseObjectSecurity(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, memoryallocated: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn ObReleaseObjectSecurity(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : bool)); - ObReleaseObjectSecurity(core::mem::transmute(securitydescriptor), core::mem::transmute(memoryallocated)) + ObReleaseObjectSecurity(securitydescriptor, memoryallocated) } #[inline] pub unsafe fn ObUnRegisterCallbacks(registrationhandle: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn ObUnRegisterCallbacks(registrationhandle : *const core::ffi::c_void)); - ObUnRegisterCallbacks(core::mem::transmute(registrationhandle)) + ObUnRegisterCallbacks(registrationhandle) } #[inline] pub unsafe fn ObfDereferenceObject(object: *const core::ffi::c_void) -> isize { windows_targets::link!("ntoskrnl.exe" "system" fn ObfDereferenceObject(object : *const core::ffi::c_void) -> isize); - ObfDereferenceObject(core::mem::transmute(object)) + ObfDereferenceObject(object) } #[inline] pub unsafe fn ObfDereferenceObjectWithTag(object: *const core::ffi::c_void, tag: u32) -> isize { windows_targets::link!("ntoskrnl.exe" "system" fn ObfDereferenceObjectWithTag(object : *const core::ffi::c_void, tag : u32) -> isize); - ObfDereferenceObjectWithTag(core::mem::transmute(object), core::mem::transmute(tag)) + ObfDereferenceObjectWithTag(object, tag) } #[inline] pub unsafe fn ObfReferenceObject(object: *const core::ffi::c_void) -> isize { windows_targets::link!("ntoskrnl.exe" "system" fn ObfReferenceObject(object : *const core::ffi::c_void) -> isize); - ObfReferenceObject(core::mem::transmute(object)) + ObfReferenceObject(object) } #[inline] pub unsafe fn ObfReferenceObjectWithTag(object: *const core::ffi::c_void, tag: u32) -> isize { windows_targets::link!("ntoskrnl.exe" "system" fn ObfReferenceObjectWithTag(object : *const core::ffi::c_void, tag : u32) -> isize); - ObfReferenceObjectWithTag(core::mem::transmute(object), core::mem::transmute(tag)) + ObfReferenceObjectWithTag(object, tag) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwAddInstance(buffer: super::super::Foundation::PPCW_BUFFER, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, id: u32, data: &[PCW_DATA]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PcwAddInstance(buffer : super::super::Foundation:: PPCW_BUFFER, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, id : u32, count : u32, data : *const PCW_DATA) -> super::super::super::Win32::Foundation:: NTSTATUS); - PcwAddInstance(core::mem::transmute(buffer), core::mem::transmute(name), core::mem::transmute(id), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) + PcwAddInstance(buffer, name, id, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwCloseInstance(instance: super::super::Foundation::PPCW_INSTANCE) { windows_targets::link!("ntoskrnl.exe" "system" fn PcwCloseInstance(instance : super::super::Foundation:: PPCW_INSTANCE)); - PcwCloseInstance(core::mem::transmute(instance)) + PcwCloseInstance(instance) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwCreateInstance(instance: *mut super::super::Foundation::PPCW_INSTANCE, registration: super::super::Foundation::PPCW_REGISTRATION, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, data: &[PCW_DATA]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PcwCreateInstance(instance : *mut super::super::Foundation:: PPCW_INSTANCE, registration : super::super::Foundation:: PPCW_REGISTRATION, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, count : u32, data : *const PCW_DATA) -> super::super::super::Win32::Foundation:: NTSTATUS); - PcwCreateInstance(core::mem::transmute(instance), core::mem::transmute(registration), core::mem::transmute(name), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) + PcwCreateInstance(core::mem::transmute(instance), registration, name, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwRegister(registration: *mut super::super::Foundation::PPCW_REGISTRATION, info: *const PCW_REGISTRATION_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PcwRegister(registration : *mut super::super::Foundation:: PPCW_REGISTRATION, info : *const PCW_REGISTRATION_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - PcwRegister(core::mem::transmute(registration), core::mem::transmute(info)) + PcwRegister(core::mem::transmute(registration), info) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwUnregister(registration: super::super::Foundation::PPCW_REGISTRATION) { windows_targets::link!("ntoskrnl.exe" "system" fn PcwUnregister(registration : super::super::Foundation:: PPCW_REGISTRATION)); - PcwUnregister(core::mem::transmute(registration)) + PcwUnregister(registration) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoCallDriver(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *mut super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoCallDriver(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *mut super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoCallDriver(core::mem::transmute(deviceobject), core::mem::transmute(irp)) + PoCallDriver(deviceobject, core::mem::transmute(irp)) } #[cfg(feature = "Win32_System_Power")] #[inline] pub unsafe fn PoClearPowerRequest(powerrequest: *mut core::ffi::c_void, r#type: super::super::super::Win32::System::Power::POWER_REQUEST_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoClearPowerRequest(powerrequest : *mut core::ffi::c_void, r#type : super::super::super::Win32::System::Power:: POWER_REQUEST_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoClearPowerRequest(core::mem::transmute(powerrequest), core::mem::transmute(r#type)) + PoClearPowerRequest(core::mem::transmute(powerrequest), r#type) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoCreatePowerRequest(powerrequest: *mut *mut core::ffi::c_void, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, context: Option<*const COUNTED_REASON_CONTEXT>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoCreatePowerRequest(powerrequest : *mut *mut core::ffi::c_void, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, context : *const COUNTED_REASON_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoCreatePowerRequest(core::mem::transmute(powerrequest), core::mem::transmute(deviceobject), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + PoCreatePowerRequest(core::mem::transmute(powerrequest), deviceobject, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoCreateThermalRequest(thermalrequest: *mut *mut core::ffi::c_void, targetdeviceobject: *const super::super::Foundation::DEVICE_OBJECT, policydeviceobject: *const super::super::Foundation::DEVICE_OBJECT, context: *const COUNTED_REASON_CONTEXT, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoCreateThermalRequest(thermalrequest : *mut *mut core::ffi::c_void, targetdeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, policydeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, context : *const COUNTED_REASON_CONTEXT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoCreateThermalRequest(core::mem::transmute(thermalrequest), core::mem::transmute(targetdeviceobject), core::mem::transmute(policydeviceobject), core::mem::transmute(context), core::mem::transmute(flags)) + PoCreateThermalRequest(core::mem::transmute(thermalrequest), targetdeviceobject, policydeviceobject, context, flags) } #[inline] pub unsafe fn PoDeletePowerRequest(powerrequest: *mut core::ffi::c_void) { @@ -4333,185 +4276,185 @@ pub unsafe fn PoEndDeviceBusy(idlepointer: *mut u32) { #[inline] pub unsafe fn PoFxActivateComponent(handle: super::super::Foundation::POHANDLE, component: u32, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxActivateComponent(handle : super::super::Foundation:: POHANDLE, component : u32, flags : u32)); - PoFxActivateComponent(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(flags)) + PoFxActivateComponent(handle, component, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteDevicePowerNotRequired(handle: super::super::Foundation::POHANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteDevicePowerNotRequired(handle : super::super::Foundation:: POHANDLE)); - PoFxCompleteDevicePowerNotRequired(core::mem::transmute(handle)) + PoFxCompleteDevicePowerNotRequired(handle) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteDirectedPowerDown(handle: super::super::Foundation::POHANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteDirectedPowerDown(handle : super::super::Foundation:: POHANDLE)); - PoFxCompleteDirectedPowerDown(core::mem::transmute(handle)) + PoFxCompleteDirectedPowerDown(handle) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteIdleCondition(handle: super::super::Foundation::POHANDLE, component: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteIdleCondition(handle : super::super::Foundation:: POHANDLE, component : u32)); - PoFxCompleteIdleCondition(core::mem::transmute(handle), core::mem::transmute(component)) + PoFxCompleteIdleCondition(handle, component) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteIdleState(handle: super::super::Foundation::POHANDLE, component: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteIdleState(handle : super::super::Foundation:: POHANDLE, component : u32)); - PoFxCompleteIdleState(core::mem::transmute(handle), core::mem::transmute(component)) + PoFxCompleteIdleState(handle, component) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxIdleComponent(handle: super::super::Foundation::POHANDLE, component: u32, flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxIdleComponent(handle : super::super::Foundation:: POHANDLE, component : u32, flags : u32)); - PoFxIdleComponent(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(flags)) + PoFxIdleComponent(handle, component, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxIssueComponentPerfStateChange(handle: super::super::Foundation::POHANDLE, flags: u32, component: u32, perfchange: *const PO_FX_PERF_STATE_CHANGE, context: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxIssueComponentPerfStateChange(handle : super::super::Foundation:: POHANDLE, flags : u32, component : u32, perfchange : *const PO_FX_PERF_STATE_CHANGE, context : *const core::ffi::c_void)); - PoFxIssueComponentPerfStateChange(core::mem::transmute(handle), core::mem::transmute(flags), core::mem::transmute(component), core::mem::transmute(perfchange), core::mem::transmute(context)) + PoFxIssueComponentPerfStateChange(handle, flags, component, perfchange, context) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxIssueComponentPerfStateChangeMultiple(handle: super::super::Foundation::POHANDLE, flags: u32, component: u32, perfchangescount: u32, perfchanges: *const PO_FX_PERF_STATE_CHANGE, context: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxIssueComponentPerfStateChangeMultiple(handle : super::super::Foundation:: POHANDLE, flags : u32, component : u32, perfchangescount : u32, perfchanges : *const PO_FX_PERF_STATE_CHANGE, context : *const core::ffi::c_void)); - PoFxIssueComponentPerfStateChangeMultiple(core::mem::transmute(handle), core::mem::transmute(flags), core::mem::transmute(component), core::mem::transmute(perfchangescount), core::mem::transmute(perfchanges), core::mem::transmute(context)) + PoFxIssueComponentPerfStateChangeMultiple(handle, flags, component, perfchangescount, perfchanges, context) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoFxNotifySurprisePowerOn(pdo: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxNotifySurprisePowerOn(pdo : *const super::super::Foundation:: DEVICE_OBJECT)); - PoFxNotifySurprisePowerOn(core::mem::transmute(pdo)) + PoFxNotifySurprisePowerOn(pdo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxPowerControl(handle: super::super::Foundation::POHANDLE, powercontrolcode: *const windows_core::GUID, inbuffer: Option<*const core::ffi::c_void>, inbuffersize: usize, outbuffer: Option<*mut core::ffi::c_void>, outbuffersize: usize, bytesreturned: Option<*mut usize>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxPowerControl(handle : super::super::Foundation:: POHANDLE, powercontrolcode : *const windows_core::GUID, inbuffer : *const core::ffi::c_void, inbuffersize : usize, outbuffer : *mut core::ffi::c_void, outbuffersize : usize, bytesreturned : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxPowerControl(core::mem::transmute(handle), core::mem::transmute(powercontrolcode), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outbuffersize), core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed()))) + PoFxPowerControl(handle, powercontrolcode, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outbuffersize, core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxPowerOnCrashdumpDevice(handle: super::super::Foundation::POHANDLE, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxPowerOnCrashdumpDevice(handle : super::super::Foundation:: POHANDLE, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxPowerOnCrashdumpDevice(core::mem::transmute(handle), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + PoFxPowerOnCrashdumpDevice(handle, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxQueryCurrentComponentPerfState(handle: super::super::Foundation::POHANDLE, flags: u32, component: u32, setindex: u32, currentperf: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxQueryCurrentComponentPerfState(handle : super::super::Foundation:: POHANDLE, flags : u32, component : u32, setindex : u32, currentperf : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxQueryCurrentComponentPerfState(core::mem::transmute(handle), core::mem::transmute(flags), core::mem::transmute(component), core::mem::transmute(setindex), core::mem::transmute(currentperf)) + PoFxQueryCurrentComponentPerfState(handle, flags, component, setindex, core::mem::transmute(currentperf)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxRegisterComponentPerfStates(handle: super::super::Foundation::POHANDLE, component: u32, flags: u64, componentperfstatecallback: PPO_FX_COMPONENT_PERF_STATE_CALLBACK, inputstateinfo: *const PO_FX_COMPONENT_PERF_INFO, outputstateinfo: *mut *mut PO_FX_COMPONENT_PERF_INFO) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterComponentPerfStates(handle : super::super::Foundation:: POHANDLE, component : u32, flags : u64, componentperfstatecallback : PPO_FX_COMPONENT_PERF_STATE_CALLBACK, inputstateinfo : *const PO_FX_COMPONENT_PERF_INFO, outputstateinfo : *mut *mut PO_FX_COMPONENT_PERF_INFO) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxRegisterComponentPerfStates(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(flags), core::mem::transmute(componentperfstatecallback), core::mem::transmute(inputstateinfo), core::mem::transmute(outputstateinfo)) + PoFxRegisterComponentPerfStates(handle, component, flags, componentperfstatecallback, inputstateinfo, core::mem::transmute(outputstateinfo)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxRegisterCrashdumpDevice(handle: super::super::Foundation::POHANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterCrashdumpDevice(handle : super::super::Foundation:: POHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxRegisterCrashdumpDevice(core::mem::transmute(handle)) + PoFxRegisterCrashdumpDevice(handle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoFxRegisterDevice(pdo: *const super::super::Foundation::DEVICE_OBJECT, device: *const PO_FX_DEVICE_V1, handle: *mut super::super::Foundation::POHANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDevice(pdo : *const super::super::Foundation:: DEVICE_OBJECT, device : *const PO_FX_DEVICE_V1, handle : *mut super::super::Foundation:: POHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxRegisterDevice(core::mem::transmute(pdo), core::mem::transmute(device), core::mem::transmute(handle)) + PoFxRegisterDevice(pdo, device, core::mem::transmute(handle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoFxRegisterDripsWatchdogCallback(handle: super::super::Foundation::POHANDLE, callback: PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices: bool, matchingdriverobject: Option<*const super::super::Foundation::DRIVER_OBJECT>) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDripsWatchdogCallback(handle : super::super::Foundation:: POHANDLE, callback : PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices : bool, matchingdriverobject : *const super::super::Foundation:: DRIVER_OBJECT)); - PoFxRegisterDripsWatchdogCallback(core::mem::transmute(handle), core::mem::transmute(callback), core::mem::transmute(includechilddevices), core::mem::transmute(matchingdriverobject.unwrap_or(core::mem::zeroed()))) + PoFxRegisterDripsWatchdogCallback(handle, callback, includechilddevices, core::mem::transmute(matchingdriverobject.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxReportDevicePoweredOn(handle: super::super::Foundation::POHANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxReportDevicePoweredOn(handle : super::super::Foundation:: POHANDLE)); - PoFxReportDevicePoweredOn(core::mem::transmute(handle)) + PoFxReportDevicePoweredOn(handle) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentLatency(handle: super::super::Foundation::POHANDLE, component: u32, latency: u64) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentLatency(handle : super::super::Foundation:: POHANDLE, component : u32, latency : u64)); - PoFxSetComponentLatency(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(latency)) + PoFxSetComponentLatency(handle, component, latency) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentResidency(handle: super::super::Foundation::POHANDLE, component: u32, residency: u64) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentResidency(handle : super::super::Foundation:: POHANDLE, component : u32, residency : u64)); - PoFxSetComponentResidency(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(residency)) + PoFxSetComponentResidency(handle, component, residency) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentWake(handle: super::super::Foundation::POHANDLE, component: u32, wakehint: bool) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentWake(handle : super::super::Foundation:: POHANDLE, component : u32, wakehint : bool)); - PoFxSetComponentWake(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(wakehint)) + PoFxSetComponentWake(handle, component, wakehint) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetDeviceIdleTimeout(handle: super::super::Foundation::POHANDLE, idletimeout: u64) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetDeviceIdleTimeout(handle : super::super::Foundation:: POHANDLE, idletimeout : u64)); - PoFxSetDeviceIdleTimeout(core::mem::transmute(handle), core::mem::transmute(idletimeout)) + PoFxSetDeviceIdleTimeout(handle, idletimeout) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoFxSetTargetDripsDevicePowerState(handle: super::super::Foundation::POHANDLE, targetstate: super::super::super::Win32::System::Power::DEVICE_POWER_STATE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetTargetDripsDevicePowerState(handle : super::super::Foundation:: POHANDLE, targetstate : super::super::super::Win32::System::Power:: DEVICE_POWER_STATE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxSetTargetDripsDevicePowerState(core::mem::transmute(handle), core::mem::transmute(targetstate)) + PoFxSetTargetDripsDevicePowerState(handle, targetstate) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxStartDevicePowerManagement(handle: super::super::Foundation::POHANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxStartDevicePowerManagement(handle : super::super::Foundation:: POHANDLE)); - PoFxStartDevicePowerManagement(core::mem::transmute(handle)) + PoFxStartDevicePowerManagement(handle) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxUnregisterDevice(handle: super::super::Foundation::POHANDLE) { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxUnregisterDevice(handle : super::super::Foundation:: POHANDLE)); - PoFxUnregisterDevice(core::mem::transmute(handle)) + PoFxUnregisterDevice(handle) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoGetSystemWake(irp: *const super::super::Foundation::IRP) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PoGetSystemWake(irp : *const super::super::Foundation:: IRP) -> bool); - PoGetSystemWake(core::mem::transmute(irp)) + PoGetSystemWake(irp) } #[inline] pub unsafe fn PoGetThermalRequestSupport(thermalrequest: *const core::ffi::c_void, r#type: PO_THERMAL_REQUEST_TYPE) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PoGetThermalRequestSupport(thermalrequest : *const core::ffi::c_void, r#type : PO_THERMAL_REQUEST_TYPE) -> bool); - PoGetThermalRequestSupport(core::mem::transmute(thermalrequest), core::mem::transmute(r#type)) + PoGetThermalRequestSupport(thermalrequest, r#type) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoQueryWatchdogTime(pdo: *const super::super::Foundation::DEVICE_OBJECT, secondsremaining: *mut u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PoQueryWatchdogTime(pdo : *const super::super::Foundation:: DEVICE_OBJECT, secondsremaining : *mut u32) -> bool); - PoQueryWatchdogTime(core::mem::transmute(pdo), core::mem::transmute(secondsremaining)) + PoQueryWatchdogTime(pdo, core::mem::transmute(secondsremaining)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoRegisterDeviceForIdleDetection(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, conservationidletime: u32, performanceidletime: u32, state: super::super::super::Win32::System::Power::DEVICE_POWER_STATE) -> *mut u32 { windows_targets::link!("ntoskrnl.exe" "system" fn PoRegisterDeviceForIdleDetection(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, conservationidletime : u32, performanceidletime : u32, state : super::super::super::Win32::System::Power:: DEVICE_POWER_STATE) -> *mut u32); - PoRegisterDeviceForIdleDetection(core::mem::transmute(deviceobject), core::mem::transmute(conservationidletime), core::mem::transmute(performanceidletime), core::mem::transmute(state)) + PoRegisterDeviceForIdleDetection(deviceobject, conservationidletime, performanceidletime, state) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoRegisterPowerSettingCallback(deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, settingguid: *const windows_core::GUID, callback: PPOWER_SETTING_CALLBACK, context: Option<*const core::ffi::c_void>, handle: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoRegisterPowerSettingCallback(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, settingguid : *const windows_core::GUID, callback : PPOWER_SETTING_CALLBACK, context : *const core::ffi::c_void, handle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoRegisterPowerSettingCallback(core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(settingguid), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed()))) + PoRegisterPowerSettingCallback(core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), settingguid, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PoRegisterSystemState(statehandle: Option<*mut core::ffi::c_void>, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn PoRegisterSystemState(statehandle : *mut core::ffi::c_void, flags : u32) -> *mut core::ffi::c_void); - PoRegisterSystemState(core::mem::transmute(statehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + PoRegisterSystemState(core::mem::transmute(statehandle.unwrap_or(core::mem::zeroed())), flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoRequestPowerIrp(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, minorfunction: u8, powerstate: POWER_STATE, completionfunction: Option, context: Option<*const core::ffi::c_void>, irp: Option<*mut *mut super::super::Foundation::IRP>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoRequestPowerIrp(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, minorfunction : u8, powerstate : POWER_STATE, completionfunction : PREQUEST_POWER_COMPLETE, context : *const core::ffi::c_void, irp : *mut *mut super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoRequestPowerIrp(core::mem::transmute(deviceobject), core::mem::transmute(minorfunction), core::mem::transmute(powerstate), core::mem::transmute(completionfunction.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) + PoRequestPowerIrp(deviceobject, minorfunction, core::mem::transmute(powerstate), core::mem::transmute(completionfunction.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PoSetDeviceBusyEx(idlepointer: *mut u32) { @@ -4521,24 +4464,24 @@ pub unsafe fn PoSetDeviceBusyEx(idlepointer: *mut u32) { #[inline] pub unsafe fn PoSetHiberRange(memorymap: Option<*const core::ffi::c_void>, flags: u32, address: *const core::ffi::c_void, length: usize, tag: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetHiberRange(memorymap : *const core::ffi::c_void, flags : u32, address : *const core::ffi::c_void, length : usize, tag : u32)); - PoSetHiberRange(core::mem::transmute(memorymap.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(address), core::mem::transmute(length), core::mem::transmute(tag)) + PoSetHiberRange(core::mem::transmute(memorymap.unwrap_or(core::mem::zeroed())), flags, address, length, tag) } #[cfg(feature = "Win32_System_Power")] #[inline] pub unsafe fn PoSetPowerRequest(powerrequest: *mut core::ffi::c_void, r#type: super::super::super::Win32::System::Power::POWER_REQUEST_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetPowerRequest(powerrequest : *mut core::ffi::c_void, r#type : super::super::super::Win32::System::Power:: POWER_REQUEST_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoSetPowerRequest(core::mem::transmute(powerrequest), core::mem::transmute(r#type)) + PoSetPowerRequest(core::mem::transmute(powerrequest), r#type) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoSetPowerState(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, r#type: POWER_STATE_TYPE, state: POWER_STATE) -> POWER_STATE { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetPowerState(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, r#type : POWER_STATE_TYPE, state : POWER_STATE) -> POWER_STATE); - PoSetPowerState(core::mem::transmute(deviceobject), core::mem::transmute(r#type), core::mem::transmute(state)) + PoSetPowerState(deviceobject, r#type, core::mem::transmute(state)) } #[inline] pub unsafe fn PoSetSystemState(flags: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetSystemState(flags : u32)); - PoSetSystemState(core::mem::transmute(flags)) + PoSetSystemState(flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -4550,17 +4493,17 @@ pub unsafe fn PoSetSystemWake(irp: *mut super::super::Foundation::IRP) { #[inline] pub unsafe fn PoSetSystemWakeDevice(deviceobject: *const super::super::Foundation::DEVICE_OBJECT) { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetSystemWakeDevice(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - PoSetSystemWakeDevice(core::mem::transmute(deviceobject)) + PoSetSystemWakeDevice(deviceobject) } #[inline] pub unsafe fn PoSetThermalActiveCooling(thermalrequest: *mut core::ffi::c_void, engaged: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalActiveCooling(thermalrequest : *mut core::ffi::c_void, engaged : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoSetThermalActiveCooling(core::mem::transmute(thermalrequest), core::mem::transmute(engaged)) + PoSetThermalActiveCooling(core::mem::transmute(thermalrequest), engaged) } #[inline] pub unsafe fn PoSetThermalPassiveCooling(thermalrequest: *mut core::ffi::c_void, throttle: u8) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalPassiveCooling(thermalrequest : *mut core::ffi::c_void, throttle : u8) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoSetThermalPassiveCooling(core::mem::transmute(thermalrequest), core::mem::transmute(throttle)) + PoSetThermalPassiveCooling(core::mem::transmute(thermalrequest), throttle) } #[inline] pub unsafe fn PoStartDeviceBusy(idlepointer: *mut u32) { @@ -4586,23 +4529,23 @@ pub unsafe fn PoUnregisterSystemState(statehandle: *mut core::ffi::c_void) { #[inline] pub unsafe fn ProbeForRead(address: *const core::ffi::c_void, length: usize, alignment: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ProbeForRead(address : *const core::ffi::c_void, length : usize, alignment : u32)); - ProbeForRead(core::mem::transmute(address), core::mem::transmute(length), core::mem::transmute(alignment)) + ProbeForRead(address, length, alignment) } #[inline] pub unsafe fn ProbeForWrite(address: *mut core::ffi::c_void, length: usize, alignment: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn ProbeForWrite(address : *mut core::ffi::c_void, length : usize, alignment : u32)); - ProbeForWrite(core::mem::transmute(address), core::mem::transmute(length), core::mem::transmute(alignment)) + ProbeForWrite(core::mem::transmute(address), length, alignment) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsAcquireSiloHardReference(silo: super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsAcquireSiloHardReference(silo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsAcquireSiloHardReference(core::mem::transmute(silo)) + PsAcquireSiloHardReference(silo) } #[inline] pub unsafe fn PsAllocSiloContextSlot(reserved: usize, returnedcontextslot: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsAllocSiloContextSlot(reserved : usize, returnedcontextslot : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsAllocSiloContextSlot(core::mem::transmute(reserved), core::mem::transmute(returnedcontextslot)) + PsAllocSiloContextSlot(reserved, core::mem::transmute(returnedcontextslot)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4614,41 +4557,41 @@ pub unsafe fn PsAllocateAffinityToken(affinitytoken: *mut super::super::Foundati #[inline] pub unsafe fn PsAttachSiloToCurrentThread(silo: super::super::Foundation::PESILO) -> super::super::Foundation::PESILO { windows_targets::link!("ntoskrnl.exe" "system" fn PsAttachSiloToCurrentThread(silo : super::super::Foundation:: PESILO) -> super::super::Foundation:: PESILO); - PsAttachSiloToCurrentThread(core::mem::transmute(silo)) + PsAttachSiloToCurrentThread(silo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsCreateSiloContext(silo: super::super::Foundation::PESILO, size: u32, pooltype: super::super::Foundation::POOL_TYPE, contextcleanupcallback: Option, returnedsilocontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsCreateSiloContext(silo : super::super::Foundation:: PESILO, size : u32, pooltype : super::super::Foundation:: POOL_TYPE, contextcleanupcallback : SILO_CONTEXT_CLEANUP_CALLBACK, returnedsilocontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsCreateSiloContext(core::mem::transmute(silo), core::mem::transmute(size), core::mem::transmute(pooltype), core::mem::transmute(contextcleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnedsilocontext)) + PsCreateSiloContext(silo, size, pooltype, core::mem::transmute(contextcleanupcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnedsilocontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_WindowsProgramming"))] #[inline] pub unsafe fn PsCreateSystemThread(threadhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, processhandle: Option, clientid: Option<*mut super::super::super::Win32::System::WindowsProgramming::CLIENT_ID>, startroutine: PKSTART_ROUTINE, startcontext: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsCreateSystemThread(threadhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, processhandle : super::super::super::Win32::Foundation:: HANDLE, clientid : *mut super::super::super::Win32::System::WindowsProgramming:: CLIENT_ID, startroutine : PKSTART_ROUTINE, startcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsCreateSystemThread(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientid.unwrap_or(core::mem::zeroed())), core::mem::transmute(startroutine), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed()))) + PsCreateSystemThread(core::mem::transmute(threadhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientid.unwrap_or(core::mem::zeroed())), startroutine, core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PsDereferenceSiloContext(silocontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn PsDereferenceSiloContext(silocontext : *const core::ffi::c_void)); - PsDereferenceSiloContext(core::mem::transmute(silocontext)) + PsDereferenceSiloContext(silocontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsDetachSiloFromCurrentThread(previoussilo: super::super::Foundation::PESILO) { windows_targets::link!("ntoskrnl.exe" "system" fn PsDetachSiloFromCurrentThread(previoussilo : super::super::Foundation:: PESILO)); - PsDetachSiloFromCurrentThread(core::mem::transmute(previoussilo)) + PsDetachSiloFromCurrentThread(previoussilo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsFreeAffinityToken(affinitytoken: super::super::Foundation::PAFFINITY_TOKEN) { windows_targets::link!("ntoskrnl.exe" "system" fn PsFreeAffinityToken(affinitytoken : super::super::Foundation:: PAFFINITY_TOKEN)); - PsFreeAffinityToken(core::mem::transmute(affinitytoken)) + PsFreeAffinityToken(affinitytoken) } #[inline] pub unsafe fn PsFreeSiloContextSlot(contextslot: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsFreeSiloContextSlot(contextslot : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsFreeSiloContextSlot(core::mem::transmute(contextslot)) + PsFreeSiloContextSlot(contextslot) } #[inline] pub unsafe fn PsGetCurrentProcessId() -> super::super::super::Win32::Foundation::HANDLE { @@ -4686,7 +4629,7 @@ pub unsafe fn PsGetCurrentThreadTeb() -> *mut core::ffi::c_void { #[inline] pub unsafe fn PsGetEffectiveServerSilo(silo: super::super::Foundation::PESILO) -> super::super::Foundation::PESILO { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetEffectiveServerSilo(silo : super::super::Foundation:: PESILO) -> super::super::Foundation:: PESILO); - PsGetEffectiveServerSilo(core::mem::transmute(silo)) + PsGetEffectiveServerSilo(silo) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4704,7 +4647,7 @@ pub unsafe fn PsGetJobServerSilo(job: Option, s #[inline] pub unsafe fn PsGetJobSilo(job: super::super::Foundation::PEJOB, silo: *mut super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetJobSilo(job : super::super::Foundation:: PEJOB, silo : *mut super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetJobSilo(core::mem::transmute(job), core::mem::transmute(silo)) + PsGetJobSilo(job, core::mem::transmute(silo)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4716,91 +4659,91 @@ pub unsafe fn PsGetParentSilo(job: Option) -> s #[inline] pub unsafe fn PsGetPermanentSiloContext(silo: super::super::Foundation::PESILO, contextslot: u32, returnedsilocontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetPermanentSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, returnedsilocontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetPermanentSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(returnedsilocontext)) + PsGetPermanentSiloContext(silo, contextslot, core::mem::transmute(returnedsilocontext)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessCreateTimeQuadPart(process: super::super::Foundation::PEPROCESS) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessCreateTimeQuadPart(process : super::super::Foundation:: PEPROCESS) -> i64); - PsGetProcessCreateTimeQuadPart(core::mem::transmute(process)) + PsGetProcessCreateTimeQuadPart(process) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessExitStatus(process: super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessExitStatus(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetProcessExitStatus(core::mem::transmute(process)) + PsGetProcessExitStatus(process) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessId(process: super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::HANDLE { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessId(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: HANDLE); - PsGetProcessId(core::mem::transmute(process)) + PsGetProcessId(process) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessStartKey(process: super::super::Foundation::PEPROCESS) -> u64 { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessStartKey(process : super::super::Foundation:: PEPROCESS) -> u64); - PsGetProcessStartKey(core::mem::transmute(process)) + PsGetProcessStartKey(process) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetServerSiloServiceSessionId(silo: super::super::Foundation::PESILO) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetServerSiloServiceSessionId(silo : super::super::Foundation:: PESILO) -> u32); - PsGetServerSiloServiceSessionId(core::mem::transmute(silo)) + PsGetServerSiloServiceSessionId(silo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetSiloContainerId(silo: super::super::Foundation::PESILO) -> *mut windows_core::GUID { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetSiloContainerId(silo : super::super::Foundation:: PESILO) -> *mut windows_core::GUID); - PsGetSiloContainerId(core::mem::transmute(silo)) + PsGetSiloContainerId(silo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetSiloContext(silo: super::super::Foundation::PESILO, contextslot: u32, returnedsilocontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, returnedsilocontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(returnedsilocontext)) + PsGetSiloContext(silo, contextslot, core::mem::transmute(returnedsilocontext)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetSiloMonitorContextSlot(monitor: super::super::Foundation::PSILO_MONITOR) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetSiloMonitorContextSlot(monitor : super::super::Foundation:: PSILO_MONITOR) -> u32); - PsGetSiloMonitorContextSlot(core::mem::transmute(monitor)) + PsGetSiloMonitorContextSlot(monitor) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadCreateTime(thread: super::super::Foundation::PETHREAD) -> i64 { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadCreateTime(thread : super::super::Foundation:: PETHREAD) -> i64); - PsGetThreadCreateTime(core::mem::transmute(thread)) + PsGetThreadCreateTime(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadExitStatus(thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadExitStatus(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetThreadExitStatus(core::mem::transmute(thread)) + PsGetThreadExitStatus(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadId(thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::HANDLE { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadId(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: HANDLE); - PsGetThreadId(core::mem::transmute(thread)) + PsGetThreadId(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadProcessId(thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::HANDLE { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProcessId(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: HANDLE); - PsGetThreadProcessId(core::mem::transmute(thread)) + PsGetThreadProcessId(thread) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadProperty(thread: super::super::Foundation::PETHREAD, key: usize, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProperty(thread : super::super::Foundation:: PETHREAD, key : usize, flags : u32) -> *mut core::ffi::c_void); - PsGetThreadProperty(core::mem::transmute(thread), core::mem::transmute(key), core::mem::transmute(flags)) + PsGetThreadProperty(thread, key, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadServerSilo(thread: super::super::Foundation::PETHREAD) -> super::super::Foundation::PESILO { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadServerSilo(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PESILO); - PsGetThreadServerSilo(core::mem::transmute(thread)) + PsGetThreadServerSilo(thread) } #[inline] pub unsafe fn PsGetVersion(majorversion: Option<*mut u32>, minorversion: Option<*mut u32>, buildnumber: Option<*mut u32>, csdversion: Option<*mut super::super::super::Win32::Foundation::UNICODE_STRING>) -> bool { @@ -4811,13 +4754,13 @@ pub unsafe fn PsGetVersion(majorversion: Option<*mut u32>, minorversion: Option< #[inline] pub unsafe fn PsInsertPermanentSiloContext(silo: super::super::Foundation::PESILO, contextslot: u32, silocontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsInsertPermanentSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, silocontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsInsertPermanentSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(silocontext)) + PsInsertPermanentSiloContext(silo, contextslot, silocontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsInsertSiloContext(silo: super::super::Foundation::PESILO, contextslot: u32, silocontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsInsertSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, silocontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsInsertSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(silocontext)) + PsInsertSiloContext(silo, contextslot, silocontext) } #[inline] pub unsafe fn PsIsCurrentThreadInServerSilo() -> bool { @@ -4833,134 +4776,134 @@ pub unsafe fn PsIsCurrentThreadPrefetching() -> bool { #[inline] pub unsafe fn PsIsHostSilo(silo: super::super::Foundation::PESILO) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PsIsHostSilo(silo : super::super::Foundation:: PESILO) -> bool); - PsIsHostSilo(core::mem::transmute(silo)) + PsIsHostSilo(silo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsMakeSiloContextPermanent(silo: super::super::Foundation::PESILO, contextslot: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsMakeSiloContextPermanent(silo : super::super::Foundation:: PESILO, contextslot : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsMakeSiloContextPermanent(core::mem::transmute(silo), core::mem::transmute(contextslot)) + PsMakeSiloContextPermanent(silo, contextslot) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsQueryTotalCycleTimeProcess(process: super::super::Foundation::PEPROCESS, cycletimestamp: *mut u64) -> u64 { windows_targets::link!("ntoskrnl.exe" "system" fn PsQueryTotalCycleTimeProcess(process : super::super::Foundation:: PEPROCESS, cycletimestamp : *mut u64) -> u64); - PsQueryTotalCycleTimeProcess(core::mem::transmute(process), core::mem::transmute(cycletimestamp)) + PsQueryTotalCycleTimeProcess(process, core::mem::transmute(cycletimestamp)) } #[inline] pub unsafe fn PsReferenceSiloContext(silocontext: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceSiloContext(silocontext : *const core::ffi::c_void)); - PsReferenceSiloContext(core::mem::transmute(silocontext)) + PsReferenceSiloContext(silocontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsRegisterSiloMonitor(registration: *const SILO_MONITOR_REGISTRATION, returnedmonitor: *mut super::super::Foundation::PSILO_MONITOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsRegisterSiloMonitor(registration : *const SILO_MONITOR_REGISTRATION, returnedmonitor : *mut super::super::Foundation:: PSILO_MONITOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsRegisterSiloMonitor(core::mem::transmute(registration), core::mem::transmute(returnedmonitor)) + PsRegisterSiloMonitor(registration, core::mem::transmute(returnedmonitor)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReleaseSiloHardReference(silo: super::super::Foundation::PESILO) { windows_targets::link!("ntoskrnl.exe" "system" fn PsReleaseSiloHardReference(silo : super::super::Foundation:: PESILO)); - PsReleaseSiloHardReference(core::mem::transmute(silo)) + PsReleaseSiloHardReference(silo) } #[inline] pub unsafe fn PsRemoveCreateThreadNotifyRoutine(notifyroutine: PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsRemoveCreateThreadNotifyRoutine(notifyroutine : PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsRemoveCreateThreadNotifyRoutine(core::mem::transmute(notifyroutine)) + PsRemoveCreateThreadNotifyRoutine(notifyroutine) } #[inline] pub unsafe fn PsRemoveLoadImageNotifyRoutine(notifyroutine: PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsRemoveLoadImageNotifyRoutine(notifyroutine : PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsRemoveLoadImageNotifyRoutine(core::mem::transmute(notifyroutine)) + PsRemoveLoadImageNotifyRoutine(notifyroutine) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsRemoveSiloContext(silo: super::super::Foundation::PESILO, contextslot: u32, removedsilocontext: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsRemoveSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, removedsilocontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsRemoveSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(removedsilocontext.unwrap_or(core::mem::zeroed()))) + PsRemoveSiloContext(silo, contextslot, core::mem::transmute(removedsilocontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReplaceSiloContext(silo: super::super::Foundation::PESILO, contextslot: u32, newsilocontext: *const core::ffi::c_void, oldsilocontext: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsReplaceSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, newsilocontext : *const core::ffi::c_void, oldsilocontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsReplaceSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(newsilocontext), core::mem::transmute(oldsilocontext.unwrap_or(core::mem::zeroed()))) + PsReplaceSiloContext(silo, contextslot, newsilocontext, core::mem::transmute(oldsilocontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsRevertToUserMultipleGroupAffinityThread(affinitytoken: super::super::Foundation::PAFFINITY_TOKEN) { windows_targets::link!("ntoskrnl.exe" "system" fn PsRevertToUserMultipleGroupAffinityThread(affinitytoken : super::super::Foundation:: PAFFINITY_TOKEN)); - PsRevertToUserMultipleGroupAffinityThread(core::mem::transmute(affinitytoken)) + PsRevertToUserMultipleGroupAffinityThread(affinitytoken) } #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutine(notifyroutine: PCREATE_PROCESS_NOTIFY_ROUTINE, remove: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutine(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutine(core::mem::transmute(notifyroutine), core::mem::transmute(remove)) + PsSetCreateProcessNotifyRoutine(notifyroutine, remove) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power", feature = "Win32_System_WindowsProgramming"))] #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutineEx(notifyroutine: PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutineEx(core::mem::transmute(notifyroutine), core::mem::transmute(remove)) + PsSetCreateProcessNotifyRoutineEx(notifyroutine, remove) } #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutineEx2(notifytype: PSCREATEPROCESSNOTIFYTYPE, notifyinformation: *const core::ffi::c_void, remove: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx2(notifytype : PSCREATEPROCESSNOTIFYTYPE, notifyinformation : *const core::ffi::c_void, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutineEx2(core::mem::transmute(notifytype), core::mem::transmute(notifyinformation), core::mem::transmute(remove)) + PsSetCreateProcessNotifyRoutineEx2(notifytype, notifyinformation, remove) } #[inline] pub unsafe fn PsSetCreateThreadNotifyRoutine(notifyroutine: PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateThreadNotifyRoutine(notifyroutine : PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateThreadNotifyRoutine(core::mem::transmute(notifyroutine)) + PsSetCreateThreadNotifyRoutine(notifyroutine) } #[inline] pub unsafe fn PsSetCreateThreadNotifyRoutineEx(notifytype: PSCREATETHREADNOTIFYTYPE, notifyinformation: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateThreadNotifyRoutineEx(notifytype : PSCREATETHREADNOTIFYTYPE, notifyinformation : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateThreadNotifyRoutineEx(core::mem::transmute(notifytype), core::mem::transmute(notifyinformation)) + PsSetCreateThreadNotifyRoutineEx(notifytype, notifyinformation) } #[inline] pub unsafe fn PsSetCurrentThreadPrefetching(prefetching: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCurrentThreadPrefetching(prefetching : bool) -> bool); - PsSetCurrentThreadPrefetching(core::mem::transmute(prefetching)) + PsSetCurrentThreadPrefetching(prefetching) } #[inline] pub unsafe fn PsSetLoadImageNotifyRoutine(notifyroutine: PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetLoadImageNotifyRoutine(notifyroutine : PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetLoadImageNotifyRoutine(core::mem::transmute(notifyroutine)) + PsSetLoadImageNotifyRoutine(notifyroutine) } #[inline] pub unsafe fn PsSetLoadImageNotifyRoutineEx(notifyroutine: PLOAD_IMAGE_NOTIFY_ROUTINE, flags: usize) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetLoadImageNotifyRoutineEx(notifyroutine : PLOAD_IMAGE_NOTIFY_ROUTINE, flags : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetLoadImageNotifyRoutineEx(core::mem::transmute(notifyroutine), core::mem::transmute(flags)) + PsSetLoadImageNotifyRoutineEx(notifyroutine, flags) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn PsSetSystemMultipleGroupAffinityThread(groupaffinities: &[super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY], affinitytoken: super::super::Foundation::PAFFINITY_TOKEN) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetSystemMultipleGroupAffinityThread(groupaffinities : *const super::super::super::Win32::System::SystemInformation:: GROUP_AFFINITY, groupcount : u16, affinitytoken : super::super::Foundation:: PAFFINITY_TOKEN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetSystemMultipleGroupAffinityThread(core::mem::transmute(groupaffinities.as_ptr()), groupaffinities.len().try_into().unwrap(), core::mem::transmute(affinitytoken)) + PsSetSystemMultipleGroupAffinityThread(core::mem::transmute(groupaffinities.as_ptr()), groupaffinities.len().try_into().unwrap(), affinitytoken) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsStartSiloMonitor(monitor: super::super::Foundation::PSILO_MONITOR) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsStartSiloMonitor(monitor : super::super::Foundation:: PSILO_MONITOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsStartSiloMonitor(core::mem::transmute(monitor)) + PsStartSiloMonitor(monitor) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsTerminateServerSilo(serversilo: super::super::Foundation::PESILO, exitstatus: super::super::super::Win32::Foundation::NTSTATUS) { windows_targets::link!("ntoskrnl.exe" "system" fn PsTerminateServerSilo(serversilo : super::super::Foundation:: PESILO, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS)); - PsTerminateServerSilo(core::mem::transmute(serversilo), core::mem::transmute(exitstatus)) + PsTerminateServerSilo(serversilo, exitstatus) } #[inline] pub unsafe fn PsTerminateSystemThread(exitstatus: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn PsTerminateSystemThread(exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsTerminateSystemThread(core::mem::transmute(exitstatus)) + PsTerminateSystemThread(exitstatus) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsUnregisterSiloMonitor(monitor: super::super::Foundation::PSILO_MONITOR) { windows_targets::link!("ntoskrnl.exe" "system" fn PsUnregisterSiloMonitor(monitor : super::super::Foundation:: PSILO_MONITOR)); - PsUnregisterSiloMonitor(core::mem::transmute(monitor)) + PsUnregisterSiloMonitor(monitor) } #[inline] pub unsafe fn PsWrapApcWow64Thread(apccontext: *mut *mut core::ffi::c_void, apcroutine: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -4970,12 +4913,12 @@ pub unsafe fn PsWrapApcWow64Thread(apccontext: *mut *mut core::ffi::c_void, apcr #[inline] pub unsafe fn PshedAllocateMemory(size: u32) -> *mut core::ffi::c_void { windows_targets::link!("pshed.dll" "system" fn PshedAllocateMemory(size : u32) -> *mut core::ffi::c_void); - PshedAllocateMemory(core::mem::transmute(size)) + PshedAllocateMemory(size) } #[inline] pub unsafe fn PshedFreeMemory(address: *const core::ffi::c_void) { windows_targets::link!("pshed.dll" "system" fn PshedFreeMemory(address : *const core::ffi::c_void)); - PshedFreeMemory(core::mem::transmute(address)) + PshedFreeMemory(address) } #[inline] pub unsafe fn PshedIsSystemWheaEnabled() -> bool { @@ -4992,17 +4935,17 @@ pub unsafe fn PshedRegisterPlugin(packet: *mut WHEA_PSHED_PLUGIN_REGISTRATION_PA #[inline] pub unsafe fn PshedSynchronizeExecution(errorsource: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: *const core::ffi::c_void) -> bool { windows_targets::link!("pshed.dll" "system" fn PshedSynchronizeExecution(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> bool); - PshedSynchronizeExecution(core::mem::transmute(errorsource), core::mem::transmute(synchronizeroutine), core::mem::transmute(synchronizecontext)) + PshedSynchronizeExecution(errorsource, synchronizeroutine, synchronizecontext) } #[inline] pub unsafe fn PshedUnregisterPlugin(pluginhandle: *const core::ffi::c_void) { windows_targets::link!("pshed.dll" "system" fn PshedUnregisterPlugin(pluginhandle : *const core::ffi::c_void)); - PshedUnregisterPlugin(core::mem::transmute(pluginhandle)) + PshedUnregisterPlugin(pluginhandle) } #[inline] pub unsafe fn RtlAppendUnicodeStringToString(destination: *mut super::super::super::Win32::Foundation::UNICODE_STRING, source: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAppendUnicodeStringToString(destination : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, source : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAppendUnicodeStringToString(core::mem::transmute(destination), core::mem::transmute(source)) + RtlAppendUnicodeStringToString(core::mem::transmute(destination), source) } #[inline] pub unsafe fn RtlAppendUnicodeToString(destination: *mut super::super::super::Win32::Foundation::UNICODE_STRING, source: P1) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5015,12 +4958,12 @@ where #[inline] pub unsafe fn RtlAreBitsClear(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsClear(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> bool); - RtlAreBitsClear(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(length)) + RtlAreBitsClear(bitmapheader, startingindex, length) } #[inline] pub unsafe fn RtlAreBitsSet(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsSet(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> bool); - RtlAreBitsSet(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(length)) + RtlAreBitsSet(bitmapheader, startingindex, length) } #[inline] pub unsafe fn RtlAssert(voidfailedassertion: *const core::ffi::c_void, voidfilename: *const core::ffi::c_void, linenumber: u32, mutablemessage: P3) @@ -5028,7 +4971,7 @@ where P3: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlAssert(voidfailedassertion : *const core::ffi::c_void, voidfilename : *const core::ffi::c_void, linenumber : u32, mutablemessage : windows_core::PCSTR)); - RtlAssert(core::mem::transmute(voidfailedassertion), core::mem::transmute(voidfilename), core::mem::transmute(linenumber), mutablemessage.param().abi()) + RtlAssert(voidfailedassertion, voidfilename, linenumber, mutablemessage.param().abi()) } #[inline] pub unsafe fn RtlCheckRegistryKey(relativeto: u32, path: P1) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5036,58 +4979,58 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCheckRegistryKey(relativeto : u32, path : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCheckRegistryKey(core::mem::transmute(relativeto), path.param().abi()) + RtlCheckRegistryKey(relativeto, path.param().abi()) } #[inline] pub unsafe fn RtlClearAllBits(bitmapheader: *const RTL_BITMAP) { windows_targets::link!("ntdll.dll" "system" fn RtlClearAllBits(bitmapheader : *const RTL_BITMAP)); - RtlClearAllBits(core::mem::transmute(bitmapheader)) + RtlClearAllBits(bitmapheader) } #[inline] pub unsafe fn RtlClearBit(bitmapheader: *const RTL_BITMAP, bitnumber: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlClearBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32)); - RtlClearBit(core::mem::transmute(bitmapheader), core::mem::transmute(bitnumber)) + RtlClearBit(bitmapheader, bitnumber) } #[inline] pub unsafe fn RtlClearBits(bitmapheader: *const RTL_BITMAP, startingindex: u32, numbertoclear: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlClearBits(bitmapheader : *const RTL_BITMAP, startingindex : u32, numbertoclear : u32)); - RtlClearBits(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(numbertoclear)) + RtlClearBits(bitmapheader, startingindex, numbertoclear) } #[inline] pub unsafe fn RtlCmDecodeMemIoResource(descriptor: *const CM_PARTIAL_RESOURCE_DESCRIPTOR, start: Option<*mut u64>) -> u64 { windows_targets::link!("ntdll.dll" "system" fn RtlCmDecodeMemIoResource(descriptor : *const CM_PARTIAL_RESOURCE_DESCRIPTOR, start : *mut u64) -> u64); - RtlCmDecodeMemIoResource(core::mem::transmute(descriptor), core::mem::transmute(start.unwrap_or(core::mem::zeroed()))) + RtlCmDecodeMemIoResource(descriptor, core::mem::transmute(start.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlCmEncodeMemIoResource(descriptor: *const CM_PARTIAL_RESOURCE_DESCRIPTOR, r#type: u8, length: u64, start: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCmEncodeMemIoResource(descriptor : *const CM_PARTIAL_RESOURCE_DESCRIPTOR, r#type : u8, length : u64, start : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCmEncodeMemIoResource(core::mem::transmute(descriptor), core::mem::transmute(r#type), core::mem::transmute(length), core::mem::transmute(start)) + RtlCmEncodeMemIoResource(descriptor, r#type, length, start) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlCompareString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlCompareString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> i32); - RtlCompareString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlCompareString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlCompareUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> i32); - RtlCompareUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlCompareUnicodeString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlCompareUnicodeStrings(string1: &[u16], string2: &[u16], caseinsensitive: bool) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeStrings(string1 : *const u16, string1length : usize, string2 : *const u16, string2length : usize, caseinsensitive : bool) -> i32); - RtlCompareUnicodeStrings(core::mem::transmute(string1.as_ptr()), string1.len().try_into().unwrap(), core::mem::transmute(string2.as_ptr()), string2.len().try_into().unwrap(), core::mem::transmute(caseinsensitive)) + RtlCompareUnicodeStrings(core::mem::transmute(string1.as_ptr()), string1.len().try_into().unwrap(), core::mem::transmute(string2.as_ptr()), string2.len().try_into().unwrap(), caseinsensitive) } #[inline] pub unsafe fn RtlContractHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlContractHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> bool); - RtlContractHashTable(core::mem::transmute(hashtable)) + RtlContractHashTable(hashtable) } #[inline] pub unsafe fn RtlCopyBitMap(source: *const RTL_BITMAP, destination: *const RTL_BITMAP, targetbit: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlCopyBitMap(source : *const RTL_BITMAP, destination : *const RTL_BITMAP, targetbit : u32)); - RtlCopyBitMap(core::mem::transmute(source), core::mem::transmute(destination), core::mem::transmute(targetbit)) + RtlCopyBitMap(source, destination, targetbit) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -5103,12 +5046,12 @@ pub unsafe fn RtlCopyUnicodeString(destinationstring: *mut super::super::super:: #[inline] pub unsafe fn RtlCreateHashTable(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, shift: u32, flags: Option) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTable(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, shift : u32, flags : u32) -> bool); - RtlCreateHashTable(core::mem::transmute(hashtable), core::mem::transmute(shift), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + RtlCreateHashTable(core::mem::transmute(hashtable), shift, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlCreateHashTableEx(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize: u32, shift: u32, flags: Option) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTableEx(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize : u32, shift : u32, flags : u32) -> bool); - RtlCreateHashTableEx(core::mem::transmute(hashtable), core::mem::transmute(initialsize), core::mem::transmute(shift), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + RtlCreateHashTableEx(core::mem::transmute(hashtable), initialsize, shift, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlCreateRegistryKey(relativeto: u32, path: P1) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5116,46 +5059,46 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCreateRegistryKey(relativeto : u32, path : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateRegistryKey(core::mem::transmute(relativeto), path.param().abi()) + RtlCreateRegistryKey(relativeto, path.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlCreateSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, revision: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCreateSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, revision : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(revision)) + RtlCreateSecurityDescriptor(core::mem::transmute(securitydescriptor), revision) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlDelete(links: *const super::super::Foundation::RTL_SPLAY_LINKS) -> *mut super::super::Foundation::RTL_SPLAY_LINKS { windows_targets::link!("ntdll.dll" "system" fn RtlDelete(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); - RtlDelete(core::mem::transmute(links)) + RtlDelete(links) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlDeleteElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void) -> bool); - RtlDeleteElementGenericTable(core::mem::transmute(table), core::mem::transmute(buffer)) + RtlDeleteElementGenericTable(table, buffer) } #[inline] pub unsafe fn RtlDeleteElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void) -> bool); - RtlDeleteElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(buffer)) + RtlDeleteElementGenericTableAvl(table, buffer) } #[inline] pub unsafe fn RtlDeleteElementGenericTableAvlEx(table: *const RTL_AVL_TABLE, nodeorparent: *const core::ffi::c_void) { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvlEx(table : *const RTL_AVL_TABLE, nodeorparent : *const core::ffi::c_void)); - RtlDeleteElementGenericTableAvlEx(core::mem::transmute(table), core::mem::transmute(nodeorparent)) + RtlDeleteElementGenericTableAvlEx(table, nodeorparent) } #[inline] pub unsafe fn RtlDeleteHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE)); - RtlDeleteHashTable(core::mem::transmute(hashtable)) + RtlDeleteHashTable(hashtable) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlDeleteNoSplay(links: *const super::super::Foundation::RTL_SPLAY_LINKS, root: *mut *mut super::super::Foundation::RTL_SPLAY_LINKS) { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteNoSplay(links : *const super::super::Foundation:: RTL_SPLAY_LINKS, root : *mut *mut super::super::Foundation:: RTL_SPLAY_LINKS)); - RtlDeleteNoSplay(core::mem::transmute(links), core::mem::transmute(root)) + RtlDeleteNoSplay(links, core::mem::transmute(root)) } #[inline] pub unsafe fn RtlDeleteRegistryValue(relativeto: u32, path: P1, valuename: P2) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5164,144 +5107,144 @@ where P2: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteRegistryValue(relativeto : u32, path : windows_core::PCWSTR, valuename : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDeleteRegistryValue(core::mem::transmute(relativeto), path.param().abi(), valuename.param().abi()) + RtlDeleteRegistryValue(relativeto, path.param().abi(), valuename.param().abi()) } #[inline] pub unsafe fn RtlDowncaseUnicodeChar(sourcecharacter: u16) -> u16 { windows_targets::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeChar(sourcecharacter : u16) -> u16); - RtlDowncaseUnicodeChar(core::mem::transmute(sourcecharacter)) + RtlDowncaseUnicodeChar(sourcecharacter) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlEndEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) { windows_targets::link!("ntdll.dll" "system" fn RtlEndEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR)); - RtlEndEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlEndEnumerationHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlEndStrongEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) { windows_targets::link!("ntdll.dll" "system" fn RtlEndStrongEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR)); - RtlEndStrongEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlEndStrongEnumerationHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlEndWeakEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) { windows_targets::link!("ntdll.dll" "system" fn RtlEndWeakEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR)); - RtlEndWeakEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlEndWeakEnumerationHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlEnumerateEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); - RtlEnumerateEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlEnumerateEntryHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlEnumerateGenericTable(table: *const RTL_GENERIC_TABLE, restart: bool) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTable(table : *const RTL_GENERIC_TABLE, restart : bool) -> *mut core::ffi::c_void); - RtlEnumerateGenericTable(core::mem::transmute(table), core::mem::transmute(restart)) + RtlEnumerateGenericTable(table, restart) } #[inline] pub unsafe fn RtlEnumerateGenericTableAvl(table: *const RTL_AVL_TABLE, restart: bool) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableAvl(table : *const RTL_AVL_TABLE, restart : bool) -> *mut core::ffi::c_void); - RtlEnumerateGenericTableAvl(core::mem::transmute(table), core::mem::transmute(restart)) + RtlEnumerateGenericTableAvl(table, restart) } #[inline] pub unsafe fn RtlEnumerateGenericTableLikeADirectory(table: *const RTL_AVL_TABLE, matchfunction: Option, matchdata: Option<*const core::ffi::c_void>, nextflag: u32, restartkey: *mut *mut core::ffi::c_void, deletecount: *mut u32, buffer: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableLikeADirectory(table : *const RTL_AVL_TABLE, matchfunction : PRTL_AVL_MATCH_FUNCTION, matchdata : *const core::ffi::c_void, nextflag : u32, restartkey : *mut *mut core::ffi::c_void, deletecount : *mut u32, buffer : *const core::ffi::c_void) -> *mut core::ffi::c_void); - RtlEnumerateGenericTableLikeADirectory(core::mem::transmute(table), core::mem::transmute(matchfunction.unwrap_or(core::mem::zeroed())), core::mem::transmute(matchdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(nextflag), core::mem::transmute(restartkey), core::mem::transmute(deletecount), core::mem::transmute(buffer)) + RtlEnumerateGenericTableLikeADirectory(table, core::mem::transmute(matchfunction.unwrap_or(core::mem::zeroed())), core::mem::transmute(matchdata.unwrap_or(core::mem::zeroed())), nextflag, core::mem::transmute(restartkey), core::mem::transmute(deletecount), buffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlEnumerateGenericTableWithoutSplaying(table: *const RTL_GENERIC_TABLE, restartkey: *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableWithoutSplaying(table : *const RTL_GENERIC_TABLE, restartkey : *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void); - RtlEnumerateGenericTableWithoutSplaying(core::mem::transmute(table), core::mem::transmute(restartkey)) + RtlEnumerateGenericTableWithoutSplaying(table, core::mem::transmute(restartkey)) } #[inline] pub unsafe fn RtlEnumerateGenericTableWithoutSplayingAvl(table: *const RTL_AVL_TABLE, restartkey: *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableWithoutSplayingAvl(table : *const RTL_AVL_TABLE, restartkey : *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void); - RtlEnumerateGenericTableWithoutSplayingAvl(core::mem::transmute(table), core::mem::transmute(restartkey)) + RtlEnumerateGenericTableWithoutSplayingAvl(table, core::mem::transmute(restartkey)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlEqualString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlEqualString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool); - RtlEqualString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlEqualString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlEqualUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlEqualUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); - RtlEqualUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlEqualUnicodeString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlExpandHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlExpandHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> bool); - RtlExpandHashTable(core::mem::transmute(hashtable)) + RtlExpandHashTable(hashtable) } #[inline] pub unsafe fn RtlExtractBitMap(source: *const RTL_BITMAP, destination: *const RTL_BITMAP, targetbit: u32, numberofbits: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlExtractBitMap(source : *const RTL_BITMAP, destination : *const RTL_BITMAP, targetbit : u32, numberofbits : u32)); - RtlExtractBitMap(core::mem::transmute(source), core::mem::transmute(destination), core::mem::transmute(targetbit), core::mem::transmute(numberofbits)) + RtlExtractBitMap(source, destination, targetbit, numberofbits) } #[inline] pub unsafe fn RtlFindClearBits(bitmapheader: *const RTL_BITMAP, numbertofind: u32, hintindex: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindClearBits(bitmapheader : *const RTL_BITMAP, numbertofind : u32, hintindex : u32) -> u32); - RtlFindClearBits(core::mem::transmute(bitmapheader), core::mem::transmute(numbertofind), core::mem::transmute(hintindex)) + RtlFindClearBits(bitmapheader, numbertofind, hintindex) } #[inline] pub unsafe fn RtlFindClearBitsAndSet(bitmapheader: *const RTL_BITMAP, numbertofind: u32, hintindex: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindClearBitsAndSet(bitmapheader : *const RTL_BITMAP, numbertofind : u32, hintindex : u32) -> u32); - RtlFindClearBitsAndSet(core::mem::transmute(bitmapheader), core::mem::transmute(numbertofind), core::mem::transmute(hintindex)) + RtlFindClearBitsAndSet(bitmapheader, numbertofind, hintindex) } #[inline] pub unsafe fn RtlFindClearRuns(bitmapheader: *const RTL_BITMAP, runarray: &mut [RTL_BITMAP_RUN], locatelongestruns: bool) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindClearRuns(bitmapheader : *const RTL_BITMAP, runarray : *mut RTL_BITMAP_RUN, sizeofrunarray : u32, locatelongestruns : bool) -> u32); - RtlFindClearRuns(core::mem::transmute(bitmapheader), core::mem::transmute(runarray.as_ptr()), runarray.len().try_into().unwrap(), core::mem::transmute(locatelongestruns)) + RtlFindClearRuns(bitmapheader, core::mem::transmute(runarray.as_ptr()), runarray.len().try_into().unwrap(), locatelongestruns) } #[inline] pub unsafe fn RtlFindClosestEncodableLength(sourcelength: u64, targetlength: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlFindClosestEncodableLength(sourcelength : u64, targetlength : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlFindClosestEncodableLength(core::mem::transmute(sourcelength), core::mem::transmute(targetlength)) + RtlFindClosestEncodableLength(sourcelength, core::mem::transmute(targetlength)) } #[inline] pub unsafe fn RtlFindFirstRunClear(bitmapheader: *const RTL_BITMAP, startingindex: *mut u32) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn RtlFindFirstRunClear(bitmapheader : *const RTL_BITMAP, startingindex : *mut u32) -> u32); - RtlFindFirstRunClear(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex)) + RtlFindFirstRunClear(bitmapheader, core::mem::transmute(startingindex)) } #[inline] pub unsafe fn RtlFindLastBackwardRunClear(bitmapheader: *const RTL_BITMAP, fromindex: u32, startingrunindex: *mut u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindLastBackwardRunClear(bitmapheader : *const RTL_BITMAP, fromindex : u32, startingrunindex : *mut u32) -> u32); - RtlFindLastBackwardRunClear(core::mem::transmute(bitmapheader), core::mem::transmute(fromindex), core::mem::transmute(startingrunindex)) + RtlFindLastBackwardRunClear(bitmapheader, fromindex, core::mem::transmute(startingrunindex)) } #[inline] pub unsafe fn RtlFindLeastSignificantBit(set: u64) -> i8 { windows_targets::link!("ntdll.dll" "system" fn RtlFindLeastSignificantBit(set : u64) -> i8); - RtlFindLeastSignificantBit(core::mem::transmute(set)) + RtlFindLeastSignificantBit(set) } #[inline] pub unsafe fn RtlFindLongestRunClear(bitmapheader: *const RTL_BITMAP, startingindex: *mut u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindLongestRunClear(bitmapheader : *const RTL_BITMAP, startingindex : *mut u32) -> u32); - RtlFindLongestRunClear(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex)) + RtlFindLongestRunClear(bitmapheader, core::mem::transmute(startingindex)) } #[inline] pub unsafe fn RtlFindMostSignificantBit(set: u64) -> i8 { windows_targets::link!("ntdll.dll" "system" fn RtlFindMostSignificantBit(set : u64) -> i8); - RtlFindMostSignificantBit(core::mem::transmute(set)) + RtlFindMostSignificantBit(set) } #[inline] pub unsafe fn RtlFindNextForwardRunClear(bitmapheader: *const RTL_BITMAP, fromindex: u32, startingrunindex: *mut u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindNextForwardRunClear(bitmapheader : *const RTL_BITMAP, fromindex : u32, startingrunindex : *mut u32) -> u32); - RtlFindNextForwardRunClear(core::mem::transmute(bitmapheader), core::mem::transmute(fromindex), core::mem::transmute(startingrunindex)) + RtlFindNextForwardRunClear(bitmapheader, fromindex, core::mem::transmute(startingrunindex)) } #[inline] pub unsafe fn RtlFindSetBits(bitmapheader: *const RTL_BITMAP, numbertofind: u32, hintindex: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindSetBits(bitmapheader : *const RTL_BITMAP, numbertofind : u32, hintindex : u32) -> u32); - RtlFindSetBits(core::mem::transmute(bitmapheader), core::mem::transmute(numbertofind), core::mem::transmute(hintindex)) + RtlFindSetBits(bitmapheader, numbertofind, hintindex) } #[inline] pub unsafe fn RtlFindSetBitsAndClear(bitmapheader: *const RTL_BITMAP, numbertofind: u32, hintindex: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFindSetBitsAndClear(bitmapheader : *const RTL_BITMAP, numbertofind : u32, hintindex : u32) -> u32); - RtlFindSetBitsAndClear(core::mem::transmute(bitmapheader), core::mem::transmute(numbertofind), core::mem::transmute(hintindex)) + RtlFindSetBitsAndClear(bitmapheader, numbertofind, hintindex) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -5312,12 +5255,12 @@ pub unsafe fn RtlFreeUTF8String(utf8string: Option<*mut super::super::super::Win #[inline] pub unsafe fn RtlGUIDFromString(guidstring: *const super::super::super::Win32::Foundation::UNICODE_STRING, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlGUIDFromString(guidstring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, guid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGUIDFromString(core::mem::transmute(guidstring), core::mem::transmute(guid)) + RtlGUIDFromString(guidstring, core::mem::transmute(guid)) } #[inline] pub unsafe fn RtlGenerateClass5Guid(namespaceguid: *const windows_core::GUID, buffer: *const core::ffi::c_void, buffersize: u32, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlGenerateClass5Guid(namespaceguid : *const windows_core::GUID, buffer : *const core::ffi::c_void, buffersize : u32, guid : *mut windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGenerateClass5Guid(core::mem::transmute(namespaceguid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(guid)) + RtlGenerateClass5Guid(namespaceguid, buffer, buffersize, core::mem::transmute(guid)) } #[inline] pub unsafe fn RtlGetActiveConsoleId() -> u32 { @@ -5338,23 +5281,23 @@ pub unsafe fn RtlGetConsoleSessionForegroundProcessId() -> u64 { #[inline] pub unsafe fn RtlGetElementGenericTable(table: *const RTL_GENERIC_TABLE, i: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlGetElementGenericTable(table : *const RTL_GENERIC_TABLE, i : u32) -> *mut core::ffi::c_void); - RtlGetElementGenericTable(core::mem::transmute(table), core::mem::transmute(i)) + RtlGetElementGenericTable(table, i) } #[inline] pub unsafe fn RtlGetElementGenericTableAvl(table: *const RTL_AVL_TABLE, i: u32) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlGetElementGenericTableAvl(table : *const RTL_AVL_TABLE, i : u32) -> *mut core::ffi::c_void); - RtlGetElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(i)) + RtlGetElementGenericTableAvl(table, i) } #[inline] pub unsafe fn RtlGetEnabledExtendedFeatures(featuremask: u64) -> u64 { windows_targets::link!("ntdll.dll" "system" fn RtlGetEnabledExtendedFeatures(featuremask : u64) -> u64); - RtlGetEnabledExtendedFeatures(core::mem::transmute(featuremask)) + RtlGetEnabledExtendedFeatures(featuremask) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlGetNextEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, context: *const RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlGetNextEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, context : *const RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); - RtlGetNextEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(context)) + RtlGetNextEntryHashTable(hashtable, context) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -5375,7 +5318,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlGetPersistedStateLocation(sourceid : windows_core::PCWSTR, customvalue : windows_core::PCWSTR, defaultpath : windows_core::PCWSTR, statelocationtype : STATE_LOCATION_TYPE, targetpath : windows_core::PWSTR, bufferlengthin : u32, bufferlengthout : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetPersistedStateLocation(sourceid.param().abi(), customvalue.param().abi(), defaultpath.param().abi(), core::mem::transmute(statelocationtype), core::mem::transmute(targetpath.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlengthin), core::mem::transmute(bufferlengthout.unwrap_or(core::mem::zeroed()))) + RtlGetPersistedStateLocation(sourceid.param().abi(), customvalue.param().abi(), defaultpath.param().abi(), statelocationtype, core::mem::transmute(targetpath.unwrap_or(core::mem::zeroed())), bufferlengthin, core::mem::transmute(bufferlengthout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlGetSuiteMask() -> u32 { @@ -5391,19 +5334,19 @@ pub unsafe fn RtlGetVersion(lpversioninformation: *mut super::super::super::Win3 #[inline] pub unsafe fn RtlHashUnicodeString(string: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool, hashalgorithm: u32, hashvalue: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlHashUnicodeString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool, hashalgorithm : u32, hashvalue : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlHashUnicodeString(core::mem::transmute(string), core::mem::transmute(caseinsensitive), core::mem::transmute(hashalgorithm), core::mem::transmute(hashvalue)) + RtlHashUnicodeString(string, caseinsensitive, hashalgorithm, core::mem::transmute(hashvalue)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlInitEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlInitEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); - RtlInitEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlInitEnumerationHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlInitStrongEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlInitStrongEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); - RtlInitStrongEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlInitStrongEnumerationHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -5421,7 +5364,7 @@ pub unsafe fn RtlInitUTF8StringEx(destinationstring: *mut super::super::super::W #[inline] pub unsafe fn RtlInitWeakEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlInitWeakEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); - RtlInitWeakEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlInitWeakEnumerationHashTable(hashtable, core::mem::transmute(enumerator)) } #[inline] pub unsafe fn RtlInitializeBitMap(bitmapheader: *mut RTL_BITMAP, bitmapbuffer: Option<*const u32>, sizeofbitmap: Option) { @@ -5432,60 +5375,60 @@ pub unsafe fn RtlInitializeBitMap(bitmapheader: *mut RTL_BITMAP, bitmapbuffer: O #[inline] pub unsafe fn RtlInitializeGenericTable(table: *mut RTL_GENERIC_TABLE, compareroutine: PRTL_GENERIC_COMPARE_ROUTINE, allocateroutine: PRTL_GENERIC_ALLOCATE_ROUTINE, freeroutine: PRTL_GENERIC_FREE_ROUTINE, tablecontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ntdll.dll" "system" fn RtlInitializeGenericTable(table : *mut RTL_GENERIC_TABLE, compareroutine : PRTL_GENERIC_COMPARE_ROUTINE, allocateroutine : PRTL_GENERIC_ALLOCATE_ROUTINE, freeroutine : PRTL_GENERIC_FREE_ROUTINE, tablecontext : *const core::ffi::c_void)); - RtlInitializeGenericTable(core::mem::transmute(table), core::mem::transmute(compareroutine), core::mem::transmute(allocateroutine), core::mem::transmute(freeroutine), core::mem::transmute(tablecontext.unwrap_or(core::mem::zeroed()))) + RtlInitializeGenericTable(core::mem::transmute(table), compareroutine, allocateroutine, freeroutine, core::mem::transmute(tablecontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlInitializeGenericTableAvl(table: *mut RTL_AVL_TABLE, compareroutine: PRTL_AVL_COMPARE_ROUTINE, allocateroutine: PRTL_AVL_ALLOCATE_ROUTINE, freeroutine: PRTL_AVL_FREE_ROUTINE, tablecontext: Option<*const core::ffi::c_void>) { windows_targets::link!("ntdll.dll" "system" fn RtlInitializeGenericTableAvl(table : *mut RTL_AVL_TABLE, compareroutine : PRTL_AVL_COMPARE_ROUTINE, allocateroutine : PRTL_AVL_ALLOCATE_ROUTINE, freeroutine : PRTL_AVL_FREE_ROUTINE, tablecontext : *const core::ffi::c_void)); - RtlInitializeGenericTableAvl(core::mem::transmute(table), core::mem::transmute(compareroutine), core::mem::transmute(allocateroutine), core::mem::transmute(freeroutine), core::mem::transmute(tablecontext.unwrap_or(core::mem::zeroed()))) + RtlInitializeGenericTableAvl(core::mem::transmute(table), compareroutine, allocateroutine, freeroutine, core::mem::transmute(tablecontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlInsertElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool) -> *mut core::ffi::c_void); - RtlInsertElementGenericTable(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed()))) + RtlInsertElementGenericTable(table, buffer, buffersize, core::mem::transmute(newelement.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlInsertElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool) -> *mut core::ffi::c_void); - RtlInsertElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed()))) + RtlInsertElementGenericTableAvl(table, buffer, buffersize, core::mem::transmute(newelement.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlInsertElementGenericTableFull(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>, nodeorparent: *const core::ffi::c_void, searchresult: TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFull(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); - RtlInsertElementGenericTableFull(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) + RtlInsertElementGenericTableFull(table, buffer, buffersize, core::mem::transmute(newelement.unwrap_or(core::mem::zeroed())), nodeorparent, searchresult) } #[inline] pub unsafe fn RtlInsertElementGenericTableFullAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>, nodeorparent: *const core::ffi::c_void, searchresult: TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFullAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); - RtlInsertElementGenericTableFullAvl(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) + RtlInsertElementGenericTableFullAvl(table, buffer, buffersize, core::mem::transmute(newelement.unwrap_or(core::mem::zeroed())), nodeorparent, searchresult) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlInsertEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, entry: *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature: usize, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlInsertEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature : usize, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> bool); - RtlInsertEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(entry), core::mem::transmute(signature), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + RtlInsertEntryHashTable(hashtable, entry, signature, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlInt64ToUnicodeString(value: u64, base: Option, string: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlInt64ToUnicodeString(value : u64, base : u32, string : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlInt64ToUnicodeString(core::mem::transmute(value), core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(string)) + RtlInt64ToUnicodeString(value, core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(string)) } #[inline] pub unsafe fn RtlIntegerToUnicodeString(value: u32, base: Option, string: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlIntegerToUnicodeString(value : u32, base : u32, string : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIntegerToUnicodeString(core::mem::transmute(value), core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(string)) + RtlIntegerToUnicodeString(value, core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(string)) } #[inline] pub unsafe fn RtlIoDecodeMemIoResource(descriptor: *const IO_RESOURCE_DESCRIPTOR, alignment: Option<*mut u64>, minimumaddress: Option<*mut u64>, maximumaddress: Option<*mut u64>) -> u64 { windows_targets::link!("ntdll.dll" "system" fn RtlIoDecodeMemIoResource(descriptor : *const IO_RESOURCE_DESCRIPTOR, alignment : *mut u64, minimumaddress : *mut u64, maximumaddress : *mut u64) -> u64); - RtlIoDecodeMemIoResource(core::mem::transmute(descriptor), core::mem::transmute(alignment.unwrap_or(core::mem::zeroed())), core::mem::transmute(minimumaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumaddress.unwrap_or(core::mem::zeroed()))) + RtlIoDecodeMemIoResource(descriptor, core::mem::transmute(alignment.unwrap_or(core::mem::zeroed())), core::mem::transmute(minimumaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumaddress.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlIoEncodeMemIoResource(descriptor: *const IO_RESOURCE_DESCRIPTOR, r#type: u8, length: u64, alignment: u64, minimumaddress: u64, maximumaddress: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlIoEncodeMemIoResource(descriptor : *const IO_RESOURCE_DESCRIPTOR, r#type : u8, length : u64, alignment : u64, minimumaddress : u64, maximumaddress : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIoEncodeMemIoResource(core::mem::transmute(descriptor), core::mem::transmute(r#type), core::mem::transmute(length), core::mem::transmute(alignment), core::mem::transmute(minimumaddress), core::mem::transmute(maximumaddress)) + RtlIoEncodeMemIoResource(descriptor, r#type, length, alignment, minimumaddress, maximumaddress) } #[inline] pub unsafe fn RtlIsApiSetImplemented(apisetname: P0) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5499,12 +5442,12 @@ where #[inline] pub unsafe fn RtlIsGenericTableEmpty(table: *const RTL_GENERIC_TABLE) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmpty(table : *const RTL_GENERIC_TABLE) -> bool); - RtlIsGenericTableEmpty(core::mem::transmute(table)) + RtlIsGenericTableEmpty(table) } #[inline] pub unsafe fn RtlIsGenericTableEmptyAvl(table: *const RTL_AVL_TABLE) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmptyAvl(table : *const RTL_AVL_TABLE) -> bool); - RtlIsGenericTableEmptyAvl(core::mem::transmute(table)) + RtlIsGenericTableEmptyAvl(table) } #[inline] pub unsafe fn RtlIsMultiSessionSku() -> bool { @@ -5519,12 +5462,12 @@ pub unsafe fn RtlIsMultiUsersInSessionSku() -> bool { #[inline] pub unsafe fn RtlIsNtDdiVersionAvailable(version: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsNtDdiVersionAvailable(version : u32) -> bool); - RtlIsNtDdiVersionAvailable(core::mem::transmute(version)) + RtlIsNtDdiVersionAvailable(version) } #[inline] pub unsafe fn RtlIsServicePackVersionInstalled(version: u32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsServicePackVersionInstalled(version : u32) -> bool); - RtlIsServicePackVersionInstalled(core::mem::transmute(version)) + RtlIsServicePackVersionInstalled(version) } #[inline] pub unsafe fn RtlIsStateSeparationEnabled() -> bool { @@ -5540,103 +5483,103 @@ pub unsafe fn RtlIsUntrustedObject(handle: Option u32 { windows_targets::link!("ntdll.dll" "system" fn RtlLengthSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> u32); - RtlLengthSecurityDescriptor(core::mem::transmute(securitydescriptor)) + RtlLengthSecurityDescriptor(securitydescriptor) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlLookupElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlLookupElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void) -> *mut core::ffi::c_void); - RtlLookupElementGenericTable(core::mem::transmute(table), core::mem::transmute(buffer)) + RtlLookupElementGenericTable(table, buffer) } #[inline] pub unsafe fn RtlLookupElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlLookupElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void) -> *mut core::ffi::c_void); - RtlLookupElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(buffer)) + RtlLookupElementGenericTableAvl(table, buffer) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlLookupElementGenericTableFull(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, nodeorparent: *mut *mut core::ffi::c_void, searchresult: *mut TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlLookupElementGenericTableFull(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, nodeorparent : *mut *mut core::ffi::c_void, searchresult : *mut TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); - RtlLookupElementGenericTableFull(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) + RtlLookupElementGenericTableFull(table, buffer, core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) } #[inline] pub unsafe fn RtlLookupElementGenericTableFullAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, nodeorparent: *mut *mut core::ffi::c_void, searchresult: *mut TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlLookupElementGenericTableFullAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, nodeorparent : *mut *mut core::ffi::c_void, searchresult : *mut TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); - RtlLookupElementGenericTableFullAvl(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) + RtlLookupElementGenericTableFullAvl(table, buffer, core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlLookupEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, signature: usize, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlLookupEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, signature : usize, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); - RtlLookupEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(signature), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + RtlLookupEntryHashTable(hashtable, signature, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlLookupFirstMatchingElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, restartkey: *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("ntdll.dll" "system" fn RtlLookupFirstMatchingElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, restartkey : *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void); - RtlLookupFirstMatchingElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(restartkey)) + RtlLookupFirstMatchingElementGenericTableAvl(table, buffer, core::mem::transmute(restartkey)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlMapGenericMask(accessmask: *mut u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING) { windows_targets::link!("ntdll.dll" "system" fn RtlMapGenericMask(accessmask : *mut u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING)); - RtlMapGenericMask(core::mem::transmute(accessmask), core::mem::transmute(genericmapping)) + RtlMapGenericMask(core::mem::transmute(accessmask), genericmapping) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: bool) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : bool) -> bool); - RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorlength), core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(checkonly)) + RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), securitydescriptorlength, core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), checkonly) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlNumberGenericTableElements(table: *const RTL_GENERIC_TABLE) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberGenericTableElements(table : *const RTL_GENERIC_TABLE) -> u32); - RtlNumberGenericTableElements(core::mem::transmute(table)) + RtlNumberGenericTableElements(table) } #[inline] pub unsafe fn RtlNumberGenericTableElementsAvl(table: *const RTL_AVL_TABLE) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberGenericTableElementsAvl(table : *const RTL_AVL_TABLE) -> u32); - RtlNumberGenericTableElementsAvl(core::mem::transmute(table)) + RtlNumberGenericTableElementsAvl(table) } #[inline] pub unsafe fn RtlNumberOfClearBits(bitmapheader: *const RTL_BITMAP) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfClearBits(bitmapheader : *const RTL_BITMAP) -> u32); - RtlNumberOfClearBits(core::mem::transmute(bitmapheader)) + RtlNumberOfClearBits(bitmapheader) } #[inline] pub unsafe fn RtlNumberOfClearBitsInRange(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfClearBitsInRange(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> u32); - RtlNumberOfClearBitsInRange(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(length)) + RtlNumberOfClearBitsInRange(bitmapheader, startingindex, length) } #[inline] pub unsafe fn RtlNumberOfSetBits(bitmapheader: *const RTL_BITMAP) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfSetBits(bitmapheader : *const RTL_BITMAP) -> u32); - RtlNumberOfSetBits(core::mem::transmute(bitmapheader)) + RtlNumberOfSetBits(bitmapheader) } #[inline] pub unsafe fn RtlNumberOfSetBitsInRange(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfSetBitsInRange(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> u32); - RtlNumberOfSetBitsInRange(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(length)) + RtlNumberOfSetBitsInRange(bitmapheader, startingindex, length) } #[inline] pub unsafe fn RtlNumberOfSetBitsUlongPtr(target: usize) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfSetBitsUlongPtr(target : usize) -> u32); - RtlNumberOfSetBitsUlongPtr(core::mem::transmute(target)) + RtlNumberOfSetBitsUlongPtr(target) } #[inline] pub unsafe fn RtlPrefetchMemoryNonTemporal(source: *const core::ffi::c_void, length: usize) { windows_targets::link!("ntoskrnl.exe" "system" fn RtlPrefetchMemoryNonTemporal(source : *const core::ffi::c_void, length : usize)); - RtlPrefetchMemoryNonTemporal(core::mem::transmute(source), core::mem::transmute(length)) + RtlPrefetchMemoryNonTemporal(source, length) } #[inline] pub unsafe fn RtlPrefixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlPrefixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); - RtlPrefixUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlPrefixUnicodeString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlQueryRegistryValueWithFallback(primaryhandle: Option, fallbackhandle: Option, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, valuelength: u32, valuetype: Option<*mut u32>, valuedata: *mut core::ffi::c_void, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlQueryRegistryValueWithFallback(primaryhandle : super::super::super::Win32::Foundation:: HANDLE, fallbackhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, valuelength : u32, valuetype : *mut u32, valuedata : *mut core::ffi::c_void, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlQueryRegistryValueWithFallback(core::mem::transmute(primaryhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(fallbackhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuename), core::mem::transmute(valuelength), core::mem::transmute(valuetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuedata), core::mem::transmute(resultlength)) + RtlQueryRegistryValueWithFallback(core::mem::transmute(primaryhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(fallbackhandle.unwrap_or(core::mem::zeroed())), valuename, valuelength, core::mem::transmute(valuetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuedata), core::mem::transmute(resultlength)) } #[inline] pub unsafe fn RtlQueryRegistryValues(relativeto: u32, path: P1, querytable: *mut RTL_QUERY_REGISTRY_TABLE, context: Option<*const core::ffi::c_void>, environment: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5644,7 +5587,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlQueryRegistryValues(relativeto : u32, path : windows_core::PCWSTR, querytable : *mut RTL_QUERY_REGISTRY_TABLE, context : *const core::ffi::c_void, environment : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlQueryRegistryValues(core::mem::transmute(relativeto), path.param().abi(), core::mem::transmute(querytable), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(environment.unwrap_or(core::mem::zeroed()))) + RtlQueryRegistryValues(relativeto, path.param().abi(), core::mem::transmute(querytable), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(environment.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlQueryValidationRunlevel(componentname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> u32 { @@ -5655,37 +5598,37 @@ pub unsafe fn RtlQueryValidationRunlevel(componentname: Option<*const super::sup #[inline] pub unsafe fn RtlRealPredecessor(links: *const super::super::Foundation::RTL_SPLAY_LINKS) -> *mut super::super::Foundation::RTL_SPLAY_LINKS { windows_targets::link!("ntdll.dll" "system" fn RtlRealPredecessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); - RtlRealPredecessor(core::mem::transmute(links)) + RtlRealPredecessor(links) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlRealSuccessor(links: *const super::super::Foundation::RTL_SPLAY_LINKS) -> *mut super::super::Foundation::RTL_SPLAY_LINKS { windows_targets::link!("ntdll.dll" "system" fn RtlRealSuccessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); - RtlRealSuccessor(core::mem::transmute(links)) + RtlRealSuccessor(links) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlRemoveEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, entry: *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlRemoveEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> bool); - RtlRemoveEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(entry), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + RtlRemoveEntryHashTable(hashtable, entry, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn RtlRunOnceBeginInitialize(runonce: *mut super::super::super::Win32::System::Threading::INIT_ONCE, flags: u32, context: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlRunOnceBeginInitialize(runonce : *mut super::super::super::Win32::System::Threading:: INIT_ONCE, flags : u32, context : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlRunOnceBeginInitialize(core::mem::transmute(runonce), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + RtlRunOnceBeginInitialize(core::mem::transmute(runonce), flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn RtlRunOnceComplete(runonce: *mut super::super::super::Win32::System::Threading::INIT_ONCE, flags: u32, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlRunOnceComplete(runonce : *mut super::super::super::Win32::System::Threading:: INIT_ONCE, flags : u32, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlRunOnceComplete(core::mem::transmute(runonce), core::mem::transmute(flags), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + RtlRunOnceComplete(core::mem::transmute(runonce), flags, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn RtlRunOnceExecuteOnce(runonce: *mut super::super::super::Win32::System::Threading::INIT_ONCE, initfn: PRTL_RUN_ONCE_INIT_FN, parameter: Option<*mut core::ffi::c_void>, context: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlRunOnceExecuteOnce(runonce : *mut super::super::super::Win32::System::Threading:: INIT_ONCE, initfn : PRTL_RUN_ONCE_INIT_FN, parameter : *mut core::ffi::c_void, context : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlRunOnceExecuteOnce(core::mem::transmute(runonce), core::mem::transmute(initfn), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + RtlRunOnceExecuteOnce(core::mem::transmute(runonce), initfn, core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Threading")] #[inline] @@ -5698,29 +5641,29 @@ pub unsafe fn RtlRunOnceInitialize() -> super::super::super::Win32::System::Thre #[inline] pub unsafe fn RtlSetAllBits(bitmapheader: *const RTL_BITMAP) { windows_targets::link!("ntdll.dll" "system" fn RtlSetAllBits(bitmapheader : *const RTL_BITMAP)); - RtlSetAllBits(core::mem::transmute(bitmapheader)) + RtlSetAllBits(bitmapheader) } #[inline] pub unsafe fn RtlSetBit(bitmapheader: *const RTL_BITMAP, bitnumber: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlSetBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32)); - RtlSetBit(core::mem::transmute(bitmapheader), core::mem::transmute(bitnumber)) + RtlSetBit(bitmapheader, bitnumber) } #[inline] pub unsafe fn RtlSetBits(bitmapheader: *const RTL_BITMAP, startingindex: u32, numbertoset: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlSetBits(bitmapheader : *const RTL_BITMAP, startingindex : u32, numbertoset : u32)); - RtlSetBits(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(numbertoset)) + RtlSetBits(bitmapheader, startingindex, numbertoset) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetDaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, daclpresent: bool, dacl: Option<*const super::super::super::Win32::Security::ACL>, dacldefaulted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlSetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : bool, dacl : *const super::super::super::Win32::Security:: ACL, dacldefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetDaclSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(daclpresent), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacldefaulted)) + RtlSetDaclSecurityDescriptor(core::mem::transmute(securitydescriptor), daclpresent, core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), dacldefaulted) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn RtlSetSystemGlobalData(dataid: super::super::super::Win32::System::SystemInformation::RTL_SYSTEM_GLOBAL_DATA_ID, buffer: *const core::ffi::c_void, size: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlSetSystemGlobalData(dataid : super::super::super::Win32::System::SystemInformation:: RTL_SYSTEM_GLOBAL_DATA_ID, buffer : *const core::ffi::c_void, size : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetSystemGlobalData(core::mem::transmute(dataid), core::mem::transmute(buffer), core::mem::transmute(size)) + RtlSetSystemGlobalData(dataid, buffer, size) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -5731,134 +5674,134 @@ pub unsafe fn RtlSplay(links: *mut super::super::Foundation::RTL_SPLAY_LINKS) -> #[inline] pub unsafe fn RtlStringFromGUID(guid: *const windows_core::GUID, guidstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlStringFromGUID(guid : *const windows_core::GUID, guidstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlStringFromGUID(core::mem::transmute(guid), core::mem::transmute(guidstring)) + RtlStringFromGUID(guid, core::mem::transmute(guidstring)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlStronglyEnumerateEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlStronglyEnumerateEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); - RtlStronglyEnumerateEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlStronglyEnumerateEntryHashTable(hashtable, core::mem::transmute(enumerator)) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlSubtreePredecessor(links: *const super::super::Foundation::RTL_SPLAY_LINKS) -> *mut super::super::Foundation::RTL_SPLAY_LINKS { windows_targets::link!("ntdll.dll" "system" fn RtlSubtreePredecessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); - RtlSubtreePredecessor(core::mem::transmute(links)) + RtlSubtreePredecessor(links) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlSubtreeSuccessor(links: *const super::super::Foundation::RTL_SPLAY_LINKS) -> *mut super::super::Foundation::RTL_SPLAY_LINKS { windows_targets::link!("ntdll.dll" "system" fn RtlSubtreeSuccessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); - RtlSubtreeSuccessor(core::mem::transmute(links)) + RtlSubtreeSuccessor(links) } #[inline] pub unsafe fn RtlSuffixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn RtlSuffixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); - RtlSuffixUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) + RtlSuffixUnicodeString(string1, string2, caseinsensitive) } #[inline] pub unsafe fn RtlTestBit(bitmapheader: *const RTL_BITMAP, bitnumber: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlTestBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32) -> bool); - RtlTestBit(core::mem::transmute(bitmapheader), core::mem::transmute(bitnumber)) + RtlTestBit(bitmapheader, bitnumber) } #[inline] pub unsafe fn RtlTimeFieldsToTime(timefields: *const TIME_FIELDS, time: *mut i64) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlTimeFieldsToTime(timefields : *const TIME_FIELDS, time : *mut i64) -> bool); - RtlTimeFieldsToTime(core::mem::transmute(timefields), core::mem::transmute(time)) + RtlTimeFieldsToTime(timefields, core::mem::transmute(time)) } #[inline] pub unsafe fn RtlTimeToTimeFields(time: *const i64) -> TIME_FIELDS { windows_targets::link!("ntdll.dll" "system" fn RtlTimeToTimeFields(time : *const i64, timefields : *mut TIME_FIELDS)); let mut result__ = core::mem::zeroed(); - RtlTimeToTimeFields(core::mem::transmute(time), &mut result__); + RtlTimeToTimeFields(time, &mut result__); result__ } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUTF8StringToUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUTF8StringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUTF8StringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUTF8StringToUnicodeString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlUTF8ToUnicodeN(unicodestringdestination: windows_core::PWSTR, unicodestringmaxbytecount: u32, unicodestringactualbytecount: *mut u32, utf8stringsource: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUTF8ToUnicodeN(unicodestringdestination : windows_core::PWSTR, unicodestringmaxbytecount : u32, unicodestringactualbytecount : *mut u32, utf8stringsource : windows_core::PCSTR, utf8stringbytecount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUTF8ToUnicodeN(core::mem::transmute(unicodestringdestination), core::mem::transmute(unicodestringmaxbytecount), core::mem::transmute(unicodestringactualbytecount), core::mem::transmute(utf8stringsource.as_ptr()), utf8stringsource.len().try_into().unwrap()) + RtlUTF8ToUnicodeN(core::mem::transmute(unicodestringdestination), unicodestringmaxbytecount, core::mem::transmute(unicodestringactualbytecount), core::mem::transmute(utf8stringsource.as_ptr()), utf8stringsource.len().try_into().unwrap()) } #[inline] pub unsafe fn RtlUnicodeStringToInt64(string: *const super::super::super::Win32::Foundation::UNICODE_STRING, base: Option, number: *mut i64, endpointer: Option<*mut windows_core::PWSTR>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlUnicodeStringToInt64(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, base : u32, number : *mut i64, endpointer : *mut windows_core::PWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToInt64(core::mem::transmute(string), core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(number), core::mem::transmute(endpointer.unwrap_or(core::mem::zeroed()))) + RtlUnicodeStringToInt64(string, core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(number), core::mem::transmute(endpointer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlUnicodeStringToInteger(string: *const super::super::super::Win32::Foundation::UNICODE_STRING, base: Option, value: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToInteger(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, base : u32, value : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToInteger(core::mem::transmute(string), core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(value)) + RtlUnicodeStringToInteger(string, core::mem::transmute(base.unwrap_or(core::mem::zeroed())), core::mem::transmute(value)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToUTF8String(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToUTF8String(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToUTF8String(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUnicodeStringToUTF8String(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlUnicodeToUTF8N(utf8stringdestination: &mut [u8], utf8stringactualbytecount: *mut u32, unicodestringsource: *const u16, unicodestringbytecount: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToUTF8N(utf8stringdestination : windows_core::PSTR, utf8stringmaxbytecount : u32, utf8stringactualbytecount : *mut u32, unicodestringsource : *const u16, unicodestringbytecount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeToUTF8N(core::mem::transmute(utf8stringdestination.as_ptr()), utf8stringdestination.len().try_into().unwrap(), core::mem::transmute(utf8stringactualbytecount), core::mem::transmute(unicodestringsource), core::mem::transmute(unicodestringbytecount)) + RtlUnicodeToUTF8N(core::mem::transmute(utf8stringdestination.as_ptr()), utf8stringdestination.len().try_into().unwrap(), core::mem::transmute(utf8stringactualbytecount), unicodestringsource, unicodestringbytecount) } #[inline] pub unsafe fn RtlUpcaseUnicodeChar(sourcecharacter: u16) -> u16 { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeChar(sourcecharacter : u16) -> u16); - RtlUpcaseUnicodeChar(core::mem::transmute(sourcecharacter)) + RtlUpcaseUnicodeChar(sourcecharacter) } #[inline] pub unsafe fn RtlUpcaseUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUpcaseUnicodeString(core::mem::transmute(destinationstring), sourcestring, allocatedestinationstring) } #[inline] pub unsafe fn RtlUpperChar(character: i8) -> i8 { windows_targets::link!("ntdll.dll" "system" fn RtlUpperChar(character : i8) -> i8); - RtlUpperChar(core::mem::transmute(character)) + RtlUpperChar(character) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUpperString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING) { windows_targets::link!("ntdll.dll" "system" fn RtlUpperString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING)); - RtlUpperString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring)) + RtlUpperString(core::mem::transmute(destinationstring), sourcestring) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, requiredinformation: u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, requiredinformation : u32) -> bool); - RtlValidRelativeSecurityDescriptor(core::mem::transmute(securitydescriptorinput), core::mem::transmute(securitydescriptorlength), core::mem::transmute(requiredinformation)) + RtlValidRelativeSecurityDescriptor(securitydescriptorinput, securitydescriptorlength, requiredinformation) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlValidSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlValidSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); - RtlValidSecurityDescriptor(core::mem::transmute(securitydescriptor)) + RtlValidSecurityDescriptor(securitydescriptor) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn RtlVerifyVersionInfo(versioninfo: *const super::super::super::Win32::System::SystemInformation::OSVERSIONINFOEXW, typemask: u32, conditionmask: u64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlVerifyVersionInfo(versioninfo : *const super::super::super::Win32::System::SystemInformation:: OSVERSIONINFOEXW, typemask : u32, conditionmask : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlVerifyVersionInfo(core::mem::transmute(versioninfo), core::mem::transmute(typemask), core::mem::transmute(conditionmask)) + RtlVerifyVersionInfo(versioninfo, typemask, conditionmask) } #[inline] pub unsafe fn RtlVolumeDeviceToDosName(volumedeviceobject: *const core::ffi::c_void, dosname: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn RtlVolumeDeviceToDosName(volumedeviceobject : *const core::ffi::c_void, dosname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlVolumeDeviceToDosName(core::mem::transmute(volumedeviceobject), core::mem::transmute(dosname)) + RtlVolumeDeviceToDosName(volumedeviceobject, core::mem::transmute(dosname)) } #[inline] pub unsafe fn RtlWalkFrameChain(callers: *mut *mut core::ffi::c_void, count: u32, flags: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlWalkFrameChain(callers : *mut *mut core::ffi::c_void, count : u32, flags : u32) -> u32); - RtlWalkFrameChain(core::mem::transmute(callers), core::mem::transmute(count), core::mem::transmute(flags)) + RtlWalkFrameChain(core::mem::transmute(callers), count, flags) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlWeaklyEnumerateEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlWeaklyEnumerateEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); - RtlWeaklyEnumerateEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) + RtlWeaklyEnumerateEntryHashTable(hashtable, core::mem::transmute(enumerator)) } #[inline] pub unsafe fn RtlWriteRegistryValue(relativeto: u32, path: P1, valuename: P2, valuetype: u32, valuedata: Option<*const core::ffi::c_void>, valuelength: u32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -5867,36 +5810,36 @@ where P2: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlWriteRegistryValue(relativeto : u32, path : windows_core::PCWSTR, valuename : windows_core::PCWSTR, valuetype : u32, valuedata : *const core::ffi::c_void, valuelength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlWriteRegistryValue(core::mem::transmute(relativeto), path.param().abi(), valuename.param().abi(), core::mem::transmute(valuetype), core::mem::transmute(valuedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuelength)) + RtlWriteRegistryValue(relativeto, path.param().abi(), valuename.param().abi(), valuetype, core::mem::transmute(valuedata.unwrap_or(core::mem::zeroed())), valuelength) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlxAnsiStringToUnicodeSize(ansistring: *const super::super::super::Win32::System::Kernel::STRING) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlxAnsiStringToUnicodeSize(ansistring : *const super::super::super::Win32::System::Kernel:: STRING) -> u32); - RtlxAnsiStringToUnicodeSize(core::mem::transmute(ansistring)) + RtlxAnsiStringToUnicodeSize(ansistring) } #[inline] pub unsafe fn RtlxUnicodeStringToAnsiSize(unicodestring: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlxUnicodeStringToAnsiSize(unicodestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> u32); - RtlxUnicodeStringToAnsiSize(core::mem::transmute(unicodestring)) + RtlxUnicodeStringToAnsiSize(unicodestring) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAccessCheck(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, subjectcontextlocked: bool, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheck(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, subjectcontextlocked : bool, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); - SeAccessCheck(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext), core::mem::transmute(subjectcontextlocked), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) + SeAccessCheck(securitydescriptor, subjectsecuritycontext, subjectcontextlocked, desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), genericmapping, accessmode, core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAssignSecurity(parentdescriptor: Option, explicitdescriptor: Option, newdescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, isdirectoryobject: bool, subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, pooltype: super::super::Foundation::POOL_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurity(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, isdirectoryobject : bool, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAssignSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(isdirectoryobject), core::mem::transmute(subjectcontext), core::mem::transmute(genericmapping), core::mem::transmute(pooltype)) + SeAssignSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), isdirectoryobject, subjectcontext, genericmapping, pooltype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAssignSecurityEx(parentdescriptor: Option, explicitdescriptor: Option, newdescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: bool, autoinheritflags: u32, subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, pooltype: super::super::Foundation::POOL_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurityEx(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : bool, autoinheritflags : u32, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAssignSecurityEx(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(isdirectoryobject), core::mem::transmute(autoinheritflags), core::mem::transmute(subjectcontext), core::mem::transmute(genericmapping), core::mem::transmute(pooltype)) + SeAssignSecurityEx(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), isdirectoryobject, autoinheritflags, subjectcontext, genericmapping, pooltype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -5910,7 +5853,7 @@ pub unsafe fn SeCaptureSubjectContext() -> super::super::Foundation::SECURITY_SU #[inline] pub unsafe fn SeComputeAutoInheritByObjectType(objecttype: *const core::ffi::c_void, securitydescriptor: Option, parentsecuritydescriptor: Option) -> u32 { windows_targets::link!("ntoskrnl.exe" "system" fn SeComputeAutoInheritByObjectType(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, parentsecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> u32); - SeComputeAutoInheritByObjectType(core::mem::transmute(objecttype), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(parentsecuritydescriptor.unwrap_or(core::mem::zeroed()))) + SeComputeAutoInheritByObjectType(objecttype, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(parentsecuritydescriptor.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -5921,18 +5864,18 @@ pub unsafe fn SeDeassignSecurity(securitydescriptor: *mut super::super::super::W #[inline] pub unsafe fn SeEtwWriteKMCveEvent(cveid: *const super::super::super::Win32::Foundation::UNICODE_STRING, additionaldetails: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeEtwWriteKMCveEvent(cveid : *const super::super::super::Win32::Foundation:: UNICODE_STRING, additionaldetails : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeEtwWriteKMCveEvent(core::mem::transmute(cveid), core::mem::transmute(additionaldetails.unwrap_or(core::mem::zeroed()))) + SeEtwWriteKMCveEvent(cveid, core::mem::transmute(additionaldetails.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeLockSubjectContext(subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) { windows_targets::link!("ntoskrnl.exe" "system" fn SeLockSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); - SeLockSubjectContext(core::mem::transmute(subjectcontext)) + SeLockSubjectContext(subjectcontext) } #[inline] pub unsafe fn SeRegisterImageVerificationCallback(imagetype: SE_IMAGE_TYPE, callbacktype: SE_IMAGE_VERIFICATION_CALLBACK_TYPE, callbackfunction: PSE_IMAGE_VERIFICATION_CALLBACK_FUNCTION, callbackcontext: Option<*const core::ffi::c_void>, token: Option<*const core::ffi::c_void>, callbackhandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeRegisterImageVerificationCallback(imagetype : SE_IMAGE_TYPE, callbacktype : SE_IMAGE_VERIFICATION_CALLBACK_TYPE, callbackfunction : PSE_IMAGE_VERIFICATION_CALLBACK_FUNCTION, callbackcontext : *const core::ffi::c_void, token : *const core::ffi::c_void, callbackhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeRegisterImageVerificationCallback(core::mem::transmute(imagetype), core::mem::transmute(callbacktype), core::mem::transmute(callbackfunction), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackhandle)) + SeRegisterImageVerificationCallback(imagetype, callbacktype, callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackhandle)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -5944,244 +5887,244 @@ pub unsafe fn SeReleaseSubjectContext(subjectcontext: *mut super::super::Foundat #[inline] pub unsafe fn SeReportSecurityEvent(flags: u32, sourcename: *const super::super::super::Win32::Foundation::UNICODE_STRING, usersid: Option, auditparameters: *const super::super::super::Win32::Security::Authentication::Identity::SE_ADT_PARAMETER_ARRAY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeReportSecurityEvent(flags : u32, sourcename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, usersid : super::super::super::Win32::Security:: PSID, auditparameters : *const super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeReportSecurityEvent(core::mem::transmute(flags), core::mem::transmute(sourcename), core::mem::transmute(usersid.unwrap_or(core::mem::zeroed())), core::mem::transmute(auditparameters)) + SeReportSecurityEvent(flags, sourcename, core::mem::transmute(usersid.unwrap_or(core::mem::zeroed())), auditparameters) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn SeSetAuditParameter(auditparameters: *mut super::super::super::Win32::Security::Authentication::Identity::SE_ADT_PARAMETER_ARRAY, r#type: super::super::super::Win32::Security::Authentication::Identity::SE_ADT_PARAMETER_TYPE, index: u32, data: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn SeSetAuditParameter(auditparameters : *mut super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY, r#type : super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_TYPE, index : u32, data : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeSetAuditParameter(core::mem::transmute(auditparameters), core::mem::transmute(r#type), core::mem::transmute(index), core::mem::transmute(data)) + SeSetAuditParameter(core::mem::transmute(auditparameters), r#type, index, data) } #[inline] pub unsafe fn SeSinglePrivilegeCheck(privilegevalue: super::super::super::Win32::Foundation::LUID, previousmode: i8) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeSinglePrivilegeCheck(privilegevalue : super::super::super::Win32::Foundation:: LUID, previousmode : i8) -> bool); - SeSinglePrivilegeCheck(core::mem::transmute(privilegevalue), core::mem::transmute(previousmode)) + SeSinglePrivilegeCheck(core::mem::transmute(privilegevalue), previousmode) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeUnlockSubjectContext(subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) { windows_targets::link!("ntoskrnl.exe" "system" fn SeUnlockSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); - SeUnlockSubjectContext(core::mem::transmute(subjectcontext)) + SeUnlockSubjectContext(subjectcontext) } #[inline] pub unsafe fn SeUnregisterImageVerificationCallback(callbackhandle: *const core::ffi::c_void) { windows_targets::link!("ntoskrnl.exe" "system" fn SeUnregisterImageVerificationCallback(callbackhandle : *const core::ffi::c_void)); - SeUnregisterImageVerificationCallback(core::mem::transmute(callbackhandle)) + SeUnregisterImageVerificationCallback(callbackhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeValidSecurityDescriptor(length: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn SeValidSecurityDescriptor(length : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); - SeValidSecurityDescriptor(core::mem::transmute(length), core::mem::transmute(securitydescriptor)) + SeValidSecurityDescriptor(length, securitydescriptor) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmCommitComplete(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitComplete(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmCommitComplete(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + TmCommitComplete(enlistment, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmCommitEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmCommitEnlistment(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock)) + TmCommitEnlistment(enlistment, tmvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmCommitTransaction(transaction: *const super::super::Foundation::KTRANSACTION, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmCommitTransaction(core::mem::transmute(transaction), core::mem::transmute(wait)) + TmCommitTransaction(transaction, wait) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn TmCreateEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, previousmode: i8, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, resourcemanager: *const isize, transaction: *const super::super::Foundation::KTRANSACTION, createoptions: Option, notificationmask: u32, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmCreateEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, previousmode : i8, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, resourcemanager : *const isize, transaction : *const super::super::Foundation:: KTRANSACTION, createoptions : u32, notificationmask : u32, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmCreateEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(previousmode), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(resourcemanager), core::mem::transmute(transaction), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationmask), core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) + TmCreateEnlistment(core::mem::transmute(enlistmenthandle), previousmode, desiredaccess, objectattributes, resourcemanager, transaction, core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmDereferenceEnlistmentKey(enlistment: *const super::super::Foundation::KENLISTMENT, lastreference: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmDereferenceEnlistmentKey(enlistment : *const super::super::Foundation:: KENLISTMENT, lastreference : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmDereferenceEnlistmentKey(core::mem::transmute(enlistment), core::mem::transmute(lastreference.unwrap_or(core::mem::zeroed()))) + TmDereferenceEnlistmentKey(enlistment, core::mem::transmute(lastreference.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmEnableCallbacks(resourcemanager: *const super::super::Foundation::KRESOURCEMANAGER, callbackroutine: PTM_RM_NOTIFICATION, rmkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmEnableCallbacks(resourcemanager : *const super::super::Foundation:: KRESOURCEMANAGER, callbackroutine : PTM_RM_NOTIFICATION, rmkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmEnableCallbacks(core::mem::transmute(resourcemanager), core::mem::transmute(callbackroutine), core::mem::transmute(rmkey.unwrap_or(core::mem::zeroed()))) + TmEnableCallbacks(resourcemanager, callbackroutine, core::mem::transmute(rmkey.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmGetTransactionId(transaction: *const super::super::Foundation::KTRANSACTION) -> windows_core::GUID { windows_targets::link!("ntoskrnl.exe" "system" fn TmGetTransactionId(transaction : *const super::super::Foundation:: KTRANSACTION, transactionid : *mut windows_core::GUID)); let mut result__ = core::mem::zeroed(); - TmGetTransactionId(core::mem::transmute(transaction), &mut result__); + TmGetTransactionId(transaction, &mut result__); result__ } #[inline] pub unsafe fn TmInitializeTransactionManager(transactionmanager: *const isize, logfilename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, tmid: Option<*const windows_core::GUID>, createoptions: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmInitializeTransactionManager(transactionmanager : *const isize, logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, tmid : *const windows_core::GUID, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmInitializeTransactionManager(core::mem::transmute(transactionmanager), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmid.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions)) + TmInitializeTransactionManager(transactionmanager, core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmid.unwrap_or(core::mem::zeroed())), createoptions) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmIsTransactionActive(transaction: *const super::super::Foundation::KTRANSACTION) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn TmIsTransactionActive(transaction : *const super::super::Foundation:: KTRANSACTION) -> bool); - TmIsTransactionActive(core::mem::transmute(transaction)) + TmIsTransactionActive(transaction) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmPrePrepareComplete(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmPrePrepareComplete(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmPrePrepareComplete(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock)) + TmPrePrepareComplete(enlistment, tmvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmPrePrepareEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmPrePrepareEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmPrePrepareEnlistment(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock)) + TmPrePrepareEnlistment(enlistment, tmvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmPrepareComplete(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmPrepareComplete(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmPrepareComplete(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + TmPrepareComplete(enlistment, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmPrepareEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmPrepareEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmPrepareEnlistment(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock)) + TmPrepareEnlistment(enlistment, tmvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmPropagationComplete(resourcemanager: *const super::super::Foundation::KRESOURCEMANAGER, requestcookie: u32, bufferlength: u32, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmPropagationComplete(resourcemanager : *const super::super::Foundation:: KRESOURCEMANAGER, requestcookie : u32, bufferlength : u32, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmPropagationComplete(core::mem::transmute(resourcemanager), core::mem::transmute(requestcookie), core::mem::transmute(bufferlength), core::mem::transmute(buffer)) + TmPropagationComplete(resourcemanager, requestcookie, bufferlength, buffer) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmPropagationFailed(resourcemanager: *const super::super::Foundation::KRESOURCEMANAGER, requestcookie: u32, status: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmPropagationFailed(resourcemanager : *const super::super::Foundation:: KRESOURCEMANAGER, requestcookie : u32, status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmPropagationFailed(core::mem::transmute(resourcemanager), core::mem::transmute(requestcookie), core::mem::transmute(status)) + TmPropagationFailed(resourcemanager, requestcookie, status) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmReadOnlyEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmReadOnlyEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmReadOnlyEnlistment(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + TmReadOnlyEnlistment(enlistment, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRecoverEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, enlistmentkey: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRecoverEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRecoverEnlistment(core::mem::transmute(enlistment), core::mem::transmute(enlistmentkey)) + TmRecoverEnlistment(enlistment, enlistmentkey) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRecoverResourceManager(resourcemanager: *const super::super::Foundation::KRESOURCEMANAGER) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRecoverResourceManager(resourcemanager : *const super::super::Foundation:: KRESOURCEMANAGER) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRecoverResourceManager(core::mem::transmute(resourcemanager)) + TmRecoverResourceManager(resourcemanager) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRecoverTransactionManager(tm: *const super::super::Foundation::KTM, targetvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRecoverTransactionManager(tm : *const super::super::Foundation:: KTM, targetvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRecoverTransactionManager(core::mem::transmute(tm), core::mem::transmute(targetvirtualclock)) + TmRecoverTransactionManager(tm, targetvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmReferenceEnlistmentKey(enlistment: *const super::super::Foundation::KENLISTMENT, key: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmReferenceEnlistmentKey(enlistment : *const super::super::Foundation:: KENLISTMENT, key : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmReferenceEnlistmentKey(core::mem::transmute(enlistment), core::mem::transmute(key)) + TmReferenceEnlistmentKey(enlistment, core::mem::transmute(key)) } #[inline] pub unsafe fn TmRenameTransactionManager(logfilename: *const super::super::super::Win32::Foundation::UNICODE_STRING, existingtransactionmanagerguid: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRenameTransactionManager(logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, existingtransactionmanagerguid : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRenameTransactionManager(core::mem::transmute(logfilename), core::mem::transmute(existingtransactionmanagerguid)) + TmRenameTransactionManager(logfilename, existingtransactionmanagerguid) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRequestOutcomeEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRequestOutcomeEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRequestOutcomeEnlistment(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock)) + TmRequestOutcomeEnlistment(enlistment, tmvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRollbackComplete(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackComplete(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRollbackComplete(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + TmRollbackComplete(enlistment, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRollbackEnlistment(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRollbackEnlistment(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + TmRollbackEnlistment(enlistment, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRollbackTransaction(transaction: *const super::super::Foundation::KTRANSACTION, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRollbackTransaction(core::mem::transmute(transaction), core::mem::transmute(wait)) + TmRollbackTransaction(transaction, wait) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmSinglePhaseReject(enlistment: *const super::super::Foundation::KENLISTMENT, tmvirtualclock: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn TmSinglePhaseReject(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmSinglePhaseReject(core::mem::transmute(enlistment), core::mem::transmute(tmvirtualclock)) + TmSinglePhaseReject(enlistment, tmvirtualclock) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn VslCreateSecureSection(handle: *mut super::super::super::Win32::Foundation::HANDLE, targetprocess: super::super::Foundation::PEPROCESS, mdl: *const super::super::Foundation::MDL, devicepageprotection: u32, attributes: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn VslCreateSecureSection(handle : *mut super::super::super::Win32::Foundation:: HANDLE, targetprocess : super::super::Foundation:: PEPROCESS, mdl : *const super::super::Foundation:: MDL, devicepageprotection : u32, attributes : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - VslCreateSecureSection(core::mem::transmute(handle), core::mem::transmute(targetprocess), core::mem::transmute(mdl), core::mem::transmute(devicepageprotection), core::mem::transmute(attributes)) + VslCreateSecureSection(core::mem::transmute(handle), targetprocess, mdl, devicepageprotection, attributes) } #[inline] pub unsafe fn VslDeleteSecureSection(globalhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn VslDeleteSecureSection(globalhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - VslDeleteSecureSection(core::mem::transmute(globalhandle)) + VslDeleteSecureSection(globalhandle) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaAddErrorSource(errorsource: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaAddErrorSource(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaAddErrorSource(core::mem::transmute(errorsource), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + WheaAddErrorSource(errorsource, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaAddErrorSourceDeviceDriver(context: Option<*mut core::ffi::c_void>, configuration: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER, numberpreallocatederrorreports: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaAddErrorSourceDeviceDriver(context : *mut core::ffi::c_void, configuration : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER, numberpreallocatederrorreports : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaAddErrorSourceDeviceDriver(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(configuration), core::mem::transmute(numberpreallocatederrorreports)) + WheaAddErrorSourceDeviceDriver(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), configuration, numberpreallocatederrorreports) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaAddErrorSourceDeviceDriverV1(context: Option<*mut core::ffi::c_void>, configuration: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER, numbufferstopreallocate: u32, maxdatalength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaAddErrorSourceDeviceDriverV1(context : *mut core::ffi::c_void, configuration : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER, numbufferstopreallocate : u32, maxdatalength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaAddErrorSourceDeviceDriverV1(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(configuration), core::mem::transmute(numbufferstopreallocate), core::mem::transmute(maxdatalength)) + WheaAddErrorSourceDeviceDriverV1(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), configuration, numbufferstopreallocate, maxdatalength) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaAddHwErrorReportSectionDeviceDriver(errorhandle: *const core::ffi::c_void, sectiondatalength: u32, bufferset: *mut super::super::super::Win32::System::Diagnostics::Debug::WHEA_DRIVER_BUFFER_SET) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaAddHwErrorReportSectionDeviceDriver(errorhandle : *const core::ffi::c_void, sectiondatalength : u32, bufferset : *mut super::super::super::Win32::System::Diagnostics::Debug:: WHEA_DRIVER_BUFFER_SET) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaAddHwErrorReportSectionDeviceDriver(core::mem::transmute(errorhandle), core::mem::transmute(sectiondatalength), core::mem::transmute(bufferset)) + WheaAddHwErrorReportSectionDeviceDriver(errorhandle, sectiondatalength, core::mem::transmute(bufferset)) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaConfigureErrorSource(sourcetype: super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_TYPE, configuration: *const WHEA_ERROR_SOURCE_CONFIGURATION) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaConfigureErrorSource(sourcetype : super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_TYPE, configuration : *const WHEA_ERROR_SOURCE_CONFIGURATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaConfigureErrorSource(core::mem::transmute(sourcetype), core::mem::transmute(configuration)) + WheaConfigureErrorSource(sourcetype, configuration) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn WheaCreateHwErrorReportDeviceDriver(errorsourceid: u32, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> *mut core::ffi::c_void { windows_targets::link!("ntoskrnl.exe" "system" fn WheaCreateHwErrorReportDeviceDriver(errorsourceid : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut core::ffi::c_void); - WheaCreateHwErrorReportDeviceDriver(core::mem::transmute(errorsourceid), core::mem::transmute(deviceobject)) + WheaCreateHwErrorReportDeviceDriver(errorsourceid, deviceobject) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaErrorSourceGetState(errorsourceid: u32) -> super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_STATE { windows_targets::link!("ntoskrnl.exe" "system" fn WheaErrorSourceGetState(errorsourceid : u32) -> super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_STATE); - WheaErrorSourceGetState(core::mem::transmute(errorsourceid)) + WheaErrorSourceGetState(errorsourceid) } #[inline] pub unsafe fn WheaGetNotifyAllOfflinesPolicy() -> bool { @@ -6192,7 +6135,7 @@ pub unsafe fn WheaGetNotifyAllOfflinesPolicy() -> bool { #[inline] pub unsafe fn WheaHighIrqlLogSelEventHandlerRegister(handler: PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context: *const core::ffi::c_void) -> bool { windows_targets::link!("ntoskrnl.exe" "system" fn WheaHighIrqlLogSelEventHandlerRegister(handler : PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context : *const core::ffi::c_void) -> bool); - WheaHighIrqlLogSelEventHandlerRegister(core::mem::transmute(handler), core::mem::transmute(context)) + WheaHighIrqlLogSelEventHandlerRegister(handler, context) } #[inline] pub unsafe fn WheaHighIrqlLogSelEventHandlerUnregister() { @@ -6202,23 +6145,23 @@ pub unsafe fn WheaHighIrqlLogSelEventHandlerUnregister() { #[inline] pub unsafe fn WheaHwErrorReportAbandonDeviceDriver(errorhandle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportAbandonDeviceDriver(errorhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaHwErrorReportAbandonDeviceDriver(core::mem::transmute(errorhandle)) + WheaHwErrorReportAbandonDeviceDriver(errorhandle) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaHwErrorReportSetSectionNameDeviceDriver(bufferset: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_DRIVER_BUFFER_SET, name: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportSetSectionNameDeviceDriver(bufferset : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_DRIVER_BUFFER_SET, namelength : u32, name : *const u8) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaHwErrorReportSetSectionNameDeviceDriver(core::mem::transmute(bufferset), name.len().try_into().unwrap(), core::mem::transmute(name.as_ptr())) + WheaHwErrorReportSetSectionNameDeviceDriver(bufferset, name.len().try_into().unwrap(), core::mem::transmute(name.as_ptr())) } #[inline] pub unsafe fn WheaHwErrorReportSetSeverityDeviceDriver(errorhandle: *const core::ffi::c_void, errorseverity: WHEA_ERROR_SEVERITY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportSetSeverityDeviceDriver(errorhandle : *const core::ffi::c_void, errorseverity : WHEA_ERROR_SEVERITY) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaHwErrorReportSetSeverityDeviceDriver(core::mem::transmute(errorhandle), core::mem::transmute(errorseverity)) + WheaHwErrorReportSetSeverityDeviceDriver(errorhandle, errorseverity) } #[inline] pub unsafe fn WheaHwErrorReportSubmitDeviceDriver(errorhandle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportSubmitDeviceDriver(errorhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaHwErrorReportSubmitDeviceDriver(core::mem::transmute(errorhandle)) + WheaHwErrorReportSubmitDeviceDriver(errorhandle) } #[inline] pub unsafe fn WheaInitializeRecordHeader(header: *mut WHEA_ERROR_RECORD_HEADER) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -6233,22 +6176,22 @@ pub unsafe fn WheaIsCriticalState() -> bool { #[inline] pub unsafe fn WheaLogInternalEvent(entry: *const WHEA_EVENT_LOG_ENTRY) { windows_targets::link!("ntoskrnl.exe" "system" fn WheaLogInternalEvent(entry : *const WHEA_EVENT_LOG_ENTRY)); - WheaLogInternalEvent(core::mem::transmute(entry)) + WheaLogInternalEvent(entry) } #[inline] pub unsafe fn WheaRegisterInUsePageOfflineNotification(callback: PFN_IN_USE_PAGE_OFFLINE_NOTIFY, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaRegisterInUsePageOfflineNotification(callback : PFN_IN_USE_PAGE_OFFLINE_NOTIFY, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaRegisterInUsePageOfflineNotification(core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + WheaRegisterInUsePageOfflineNotification(callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WheaRemoveErrorSource(errorsourceid: u32) { windows_targets::link!("ntoskrnl.exe" "system" fn WheaRemoveErrorSource(errorsourceid : u32)); - WheaRemoveErrorSource(core::mem::transmute(errorsourceid)) + WheaRemoveErrorSource(errorsourceid) } #[inline] pub unsafe fn WheaRemoveErrorSourceDeviceDriver(errorsourceid: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaRemoveErrorSourceDeviceDriver(errorsourceid : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaRemoveErrorSourceDeviceDriver(core::mem::transmute(errorsourceid)) + WheaRemoveErrorSourceDeviceDriver(errorsourceid) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] @@ -6263,23 +6206,23 @@ where P6: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn WheaReportHwErrorDeviceDriver(errorsourceid : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, errordata : *const u8, errordatalength : u32, sectiontypeguid : *const windows_core::GUID, errorseverity : WHEA_ERROR_SEVERITY, devicefriendlyname : windows_core::PCSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaReportHwErrorDeviceDriver(core::mem::transmute(errorsourceid), core::mem::transmute(deviceobject), core::mem::transmute(errordata.as_ptr()), errordata.len().try_into().unwrap(), core::mem::transmute(sectiontypeguid), core::mem::transmute(errorseverity), devicefriendlyname.param().abi()) + WheaReportHwErrorDeviceDriver(errorsourceid, deviceobject, core::mem::transmute(errordata.as_ptr()), errordata.len().try_into().unwrap(), sectiontypeguid, errorseverity, devicefriendlyname.param().abi()) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] pub unsafe fn WheaUnconfigureErrorSource(sourcetype: super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaUnconfigureErrorSource(sourcetype : super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaUnconfigureErrorSource(core::mem::transmute(sourcetype)) + WheaUnconfigureErrorSource(sourcetype) } #[inline] pub unsafe fn WheaUnregisterInUsePageOfflineNotification(callback: PFN_IN_USE_PAGE_OFFLINE_NOTIFY) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WheaUnregisterInUsePageOfflineNotification(callback : PFN_IN_USE_PAGE_OFFLINE_NOTIFY) -> super::super::super::Win32::Foundation:: NTSTATUS); - WheaUnregisterInUsePageOfflineNotification(core::mem::transmute(callback)) + WheaUnregisterInUsePageOfflineNotification(callback) } #[inline] pub unsafe fn WmiQueryTraceInformation(traceinformationclass: TRACE_INFORMATION_CLASS, traceinformation: *mut core::ffi::c_void, traceinformationlength: u32, requiredlength: Option<*mut u32>, buffer: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntoskrnl.exe" "system" fn WmiQueryTraceInformation(traceinformationclass : TRACE_INFORMATION_CLASS, traceinformation : *mut core::ffi::c_void, traceinformationlength : u32, requiredlength : *mut u32, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - WmiQueryTraceInformation(core::mem::transmute(traceinformationclass), core::mem::transmute(traceinformation), core::mem::transmute(traceinformationlength), core::mem::transmute(requiredlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + WmiQueryTraceInformation(traceinformationclass, core::mem::transmute(traceinformation), traceinformationlength, core::mem::transmute(requiredlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwAllocateLocallyUniqueId(luid: *mut super::super::super::Win32::Foundation::LUID) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -6289,46 +6232,46 @@ pub unsafe fn ZwAllocateLocallyUniqueId(luid: *mut super::super::super::Win32::F #[inline] pub unsafe fn ZwClose(handle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwClose(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwClose(core::mem::transmute(handle)) + ZwClose(handle) } #[inline] pub unsafe fn ZwCommitComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCommitComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwCommitComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwCommitEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCommitEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwCommitEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwCommitTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) + ZwCommitTransaction(transactionhandle, wait) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, transactionhandle: super::super::super::Win32::Foundation::HANDLE, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: Option, notificationmask: u32, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32, notificationmask : u32, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(desiredaccess), core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionhandle), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationmask), core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) + ZwCreateEnlistment(core::mem::transmute(enlistmenthandle), desiredaccess, resourcemanagerhandle, transactionhandle, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwCreateFile(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, allocationsize: Option<*const i64>, fileattributes: u32, shareaccess: u32, createdisposition: u32, createoptions: u32, eabuffer: Option<*const core::ffi::c_void>, ealength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : u32, shareaccess : u32, createdisposition : u32, createoptions : u32, eabuffer : *const core::ffi::c_void, ealength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateFile(core::mem::transmute(filehandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(fileattributes), core::mem::transmute(shareaccess), core::mem::transmute(createdisposition), core::mem::transmute(createoptions), core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealength)) + ZwCreateFile(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(allocationsize.unwrap_or(core::mem::zeroed())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(core::mem::zeroed())), ealength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerguid: Option<*const windows_core::GUID>, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: Option, description: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateResourceManager(resourcemanagerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tmhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerguid : *const windows_core::GUID, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32, description : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tmhandle), core::mem::transmute(resourcemanagerguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.unwrap_or(core::mem::zeroed()))) + ZwCreateResourceManager(core::mem::transmute(resourcemanagerhandle), desiredaccess, tmhandle, core::mem::transmute(resourcemanagerguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwCreateSection(sectionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, maximumsize: Option<*const i64>, sectionpageprotection: u32, allocationattributes: u32, filehandle: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateSection(core::mem::transmute(sectionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectionpageprotection), core::mem::transmute(allocationattributes), core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed()))) + ZwCreateSection(core::mem::transmute(sectionhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), sectionpageprotection, allocationattributes, core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -6336,7 +6279,7 @@ pub unsafe fn ZwCreateTransaction(transactionhandle: *mut super::super::super::W windows_targets::link!("ntdll.dll" "system" fn ZwCreateTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, uow : *const windows_core::GUID, tmhandle : super::super::super::Win32::Foundation:: HANDLE, createoptions : u32, isolationlevel : u32, isolationflags : u32, timeout : *const i64, description : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwCreateTransaction( core::mem::transmute(transactionhandle), - core::mem::transmute(desiredaccess), + desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(uow.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed())), @@ -6351,271 +6294,260 @@ pub unsafe fn ZwCreateTransaction(transactionhandle: *mut super::super::super::W #[inline] pub unsafe fn ZwCreateTransactionManager(tmhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, logfilename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: Option, commitstrength: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateTransactionManager(tmhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, commitstrength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateTransactionManager(core::mem::transmute(tmhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(commitstrength.unwrap_or(core::mem::zeroed()))) + ZwCreateTransactionManager(core::mem::transmute(tmhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(commitstrength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwDeviceIoControlFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, iocontrolcode: u32, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDeviceIoControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iocontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeviceIoControlFile( - core::mem::transmute(filehandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(iostatusblock), - core::mem::transmute(iocontrolcode), - core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(inputbufferlength), - core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(outputbufferlength), - ) + ZwDeviceIoControlFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } #[inline] pub unsafe fn ZwDisplayString(string: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwDisplayString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDisplayString(core::mem::transmute(string)) + ZwDisplayString(string) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwEnumerateTransactionObject(rootobjecthandle: Option, querytype: super::super::super::Win32::System::SystemServices::KTMOBJECT_TYPE, objectcursor: *mut super::super::super::Win32::System::SystemServices::KTMOBJECT_CURSOR, objectcursorlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwEnumerateTransactionObject(rootobjecthandle : super::super::super::Win32::Foundation:: HANDLE, querytype : super::super::super::Win32::System::SystemServices:: KTMOBJECT_TYPE, objectcursor : *mut super::super::super::Win32::System::SystemServices:: KTMOBJECT_CURSOR, objectcursorlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwEnumerateTransactionObject(core::mem::transmute(rootobjecthandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(querytype), core::mem::transmute(objectcursor), core::mem::transmute(objectcursorlength), core::mem::transmute(returnlength)) + ZwEnumerateTransactionObject(core::mem::transmute(rootobjecthandle.unwrap_or(core::mem::zeroed())), querytype, core::mem::transmute(objectcursor), objectcursorlength, core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ZwGetNotificationResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, transactionnotification: *mut super::super::super::Win32::Storage::FileSystem::TRANSACTION_NOTIFICATION, notificationlength: u32, timeout: *const i64, returnlength: Option<*mut u32>, asynchronous: u32, asynchronouscontext: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwGetNotificationResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionnotification : *mut super::super::super::Win32::Storage::FileSystem:: TRANSACTION_NOTIFICATION, notificationlength : u32, timeout : *const i64, returnlength : *mut u32, asynchronous : u32, asynchronouscontext : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwGetNotificationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionnotification), core::mem::transmute(notificationlength), core::mem::transmute(timeout), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(asynchronous), core::mem::transmute(asynchronouscontext.unwrap_or(core::mem::zeroed()))) + ZwGetNotificationResourceManager(resourcemanagerhandle, core::mem::transmute(transactionnotification), notificationlength, timeout, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed())), asynchronous, core::mem::transmute(asynchronouscontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwLoadDriver(driverservicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwLoadDriver(driverservicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwLoadDriver(core::mem::transmute(driverservicename)) + ZwLoadDriver(driverservicename) } #[inline] pub unsafe fn ZwMakeTemporaryObject(handle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwMakeTemporaryObject(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwMakeTemporaryObject(core::mem::transmute(handle)) + ZwMakeTemporaryObject(handle) } #[inline] pub unsafe fn ZwManagePartition(targethandle: super::super::super::Win32::Foundation::HANDLE, sourcehandle: Option, partitioninformationclass: PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwManagePartition(targethandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, partitioninformationclass : PARTITION_INFORMATION_CLASS, partitioninformation : *mut core::ffi::c_void, partitioninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwManagePartition(core::mem::transmute(targethandle), core::mem::transmute(sourcehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(partitioninformationclass), core::mem::transmute(partitioninformation), core::mem::transmute(partitioninformationlength)) + ZwManagePartition(targethandle, core::mem::transmute(sourcehandle.unwrap_or(core::mem::zeroed())), partitioninformationclass, core::mem::transmute(partitioninformation), partitioninformationlength) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, rmhandle: super::super::super::Win32::Foundation::HANDLE, enlistmentguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, rmhandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentguid : *const windows_core::GUID, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(desiredaccess), core::mem::transmute(rmhandle), core::mem::transmute(enlistmentguid), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) + ZwOpenEnlistment(core::mem::transmute(enlistmenthandle), desiredaccess, rmhandle, enlistmentguid, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwOpenFile(filehandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, shareaccess: u32, openoptions: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, shareaccess : u32, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenFile(core::mem::transmute(filehandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(shareaccess), core::mem::transmute(openoptions)) + ZwOpenFile(core::mem::transmute(filehandle), desiredaccess, objectattributes, core::mem::transmute(iostatusblock), shareaccess, openoptions) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenResourceManager(resourcemanagerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tmhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerguid : *const windows_core::GUID, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tmhandle), core::mem::transmute(resourcemanagerguid), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) + ZwOpenResourceManager(core::mem::transmute(resourcemanagerhandle), desiredaccess, tmhandle, resourcemanagerguid, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenSymbolicLinkObject(linkhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenSymbolicLinkObject(linkhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenSymbolicLinkObject(core::mem::transmute(linkhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenSymbolicLinkObject(core::mem::transmute(linkhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, uow: *const windows_core::GUID, tmhandle: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, uow : *const windows_core::GUID, tmhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(uow), core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed()))) + ZwOpenTransaction(core::mem::transmute(transactionhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), uow, core::mem::transmute(tmhandle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenTransactionManager(tmhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, logfilename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, tmidentity: Option<*const windows_core::GUID>, openoptions: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenTransactionManager(tmhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, tmidentity : *const windows_core::GUID, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenTransactionManager(core::mem::transmute(tmhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(openoptions.unwrap_or(core::mem::zeroed()))) + ZwOpenTransactionManager(core::mem::transmute(tmhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(tmidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(openoptions.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Power")] #[inline] pub unsafe fn ZwPowerInformation(informationlevel: super::super::super::Win32::System::Power::POWER_INFORMATION_LEVEL, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPowerInformation(informationlevel : super::super::super::Win32::System::Power:: POWER_INFORMATION_LEVEL, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPowerInformation(core::mem::transmute(informationlevel), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength)) + ZwPowerInformation(informationlevel, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } #[inline] pub unsafe fn ZwPrePrepareComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrePrepareComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrePrepareComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwPrePrepareComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwPrePrepareEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrePrepareEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrePrepareEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwPrePrepareEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwPrepareComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrepareComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrepareComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwPrepareComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwPrepareEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPrepareEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrepareEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwPrepareEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwPropagationComplete(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, requestcookie: u32, bufferlength: u32, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPropagationComplete(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, requestcookie : u32, bufferlength : u32, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPropagationComplete(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(requestcookie), core::mem::transmute(bufferlength), core::mem::transmute(buffer)) + ZwPropagationComplete(resourcemanagerhandle, requestcookie, bufferlength, buffer) } #[inline] pub unsafe fn ZwPropagationFailed(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, requestcookie: u32, propstatus: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwPropagationFailed(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, requestcookie : u32, propstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPropagationFailed(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(requestcookie), core::mem::transmute(propstatus)) + ZwPropagationFailed(resourcemanagerhandle, requestcookie, propstatus) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwQueryInformationByName(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::super::Storage::FileSystem::FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationByName(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super::super::Storage::FileSystem:: FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationByName(core::mem::transmute(objectattributes), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + ZwQueryInformationByName(objectattributes, core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, enlistmentinformationclass: super::super::super::Win32::System::SystemServices::ENLISTMENT_INFORMATION_CLASS, enlistmentinformation: *mut core::ffi::c_void, enlistmentinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentinformationclass : super::super::super::Win32::System::SystemServices:: ENLISTMENT_INFORMATION_CLASS, enlistmentinformation : *mut core::ffi::c_void, enlistmentinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentinformationclass), core::mem::transmute(enlistmentinformation), core::mem::transmute(enlistmentinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryInformationEnlistment(enlistmenthandle, enlistmentinformationclass, core::mem::transmute(enlistmentinformation), enlistmentinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwQueryInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::super::Storage::FileSystem::FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super::super::Storage::FileSystem:: FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + ZwQueryInformationFile(filehandle, core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), length, fileinformationclass) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerinformationclass: super::super::super::Win32::System::SystemServices::RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation: *mut core::ffi::c_void, resourcemanagerinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerinformationclass : super::super::super::Win32::System::SystemServices:: RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation : *mut core::ffi::c_void, resourcemanagerinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(resourcemanagerinformationclass), core::mem::transmute(resourcemanagerinformation), core::mem::transmute(resourcemanagerinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryInformationResourceManager(resourcemanagerhandle, resourcemanagerinformationclass, core::mem::transmute(resourcemanagerinformation), resourcemanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, transactioninformationclass: super::super::super::Win32::System::SystemServices::TRANSACTION_INFORMATION_CLASS, transactioninformation: *mut core::ffi::c_void, transactioninformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, transactioninformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTION_INFORMATION_CLASS, transactioninformation : *mut core::ffi::c_void, transactioninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(transactioninformationclass), core::mem::transmute(transactioninformation), core::mem::transmute(transactioninformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryInformationTransaction(transactionhandle, transactioninformationclass, core::mem::transmute(transactioninformation), transactioninformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE, transactionmanagerinformationclass: super::super::super::Win32::System::SystemServices::TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation: *mut core::ffi::c_void, transactionmanagerinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionmanagerinformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation : *mut core::ffi::c_void, transactionmanagerinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationTransactionManager(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(transactionmanagerinformationclass), core::mem::transmute(transactionmanagerinformation), core::mem::transmute(transactionmanagerinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + ZwQueryInformationTransactionManager(transactionmanagerhandle, transactionmanagerinformationclass, core::mem::transmute(transactionmanagerinformation), transactionmanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwQuerySymbolicLinkObject(linkhandle: super::super::super::Win32::Foundation::HANDLE, linktarget: *mut super::super::super::Win32::Foundation::UNICODE_STRING, returnedlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQuerySymbolicLinkObject(linkhandle : super::super::super::Win32::Foundation:: HANDLE, linktarget : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQuerySymbolicLinkObject(core::mem::transmute(linkhandle), core::mem::transmute(linktarget), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))) + ZwQuerySymbolicLinkObject(linkhandle, core::mem::transmute(linktarget), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwReadFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, byteoffset: Option<*const i64>, key: Option<*const u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwReadFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwReadFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) + ZwReadFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), length, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwReadOnlyEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwReadOnlyEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwReadOnlyEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwReadOnlyEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwRecoverEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRecoverEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRecoverEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) + ZwRecoverEnlistment(enlistmenthandle, core::mem::transmute(enlistmentkey.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwRecoverResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRecoverResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRecoverResourceManager(core::mem::transmute(resourcemanagerhandle)) + ZwRecoverResourceManager(resourcemanagerhandle) } #[inline] pub unsafe fn ZwRecoverTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRecoverTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRecoverTransactionManager(core::mem::transmute(transactionmanagerhandle)) + ZwRecoverTransactionManager(transactionmanagerhandle) } #[inline] pub unsafe fn ZwRegisterProtocolAddressInformation(resourcemanager: super::super::super::Win32::Foundation::HANDLE, protocolid: *const windows_core::GUID, protocolinformationsize: u32, protocolinformation: *const core::ffi::c_void, createoptions: Option) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRegisterProtocolAddressInformation(resourcemanager : super::super::super::Win32::Foundation:: HANDLE, protocolid : *const windows_core::GUID, protocolinformationsize : u32, protocolinformation : *const core::ffi::c_void, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRegisterProtocolAddressInformation(core::mem::transmute(resourcemanager), core::mem::transmute(protocolid), core::mem::transmute(protocolinformationsize), core::mem::transmute(protocolinformation), core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) + ZwRegisterProtocolAddressInformation(resourcemanager, protocolid, protocolinformationsize, protocolinformation, core::mem::transmute(createoptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwRenameTransactionManager(logfilename: *const super::super::super::Win32::Foundation::UNICODE_STRING, existingtransactionmanagerguid: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRenameTransactionManager(logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, existingtransactionmanagerguid : *const windows_core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRenameTransactionManager(core::mem::transmute(logfilename), core::mem::transmute(existingtransactionmanagerguid)) + ZwRenameTransactionManager(logfilename, existingtransactionmanagerguid) } #[inline] pub unsafe fn ZwRollbackComplete(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRollbackComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollbackComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwRollbackComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwRollbackEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRollbackEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollbackEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwRollbackEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwRollbackTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollbackTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) + ZwRollbackTransaction(transactionhandle, wait) } #[inline] pub unsafe fn ZwRollforwardTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwRollforwardTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollforwardTransactionManager(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwRollforwardTransactionManager(transactionmanagerhandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationEnlistment(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, enlistmentinformationclass: super::super::super::Win32::System::SystemServices::ENLISTMENT_INFORMATION_CLASS, enlistmentinformation: *const core::ffi::c_void, enlistmentinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentinformationclass : super::super::super::Win32::System::SystemServices:: ENLISTMENT_INFORMATION_CLASS, enlistmentinformation : *const core::ffi::c_void, enlistmentinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentinformationclass), core::mem::transmute(enlistmentinformation), core::mem::transmute(enlistmentinformationlength)) + ZwSetInformationEnlistment(enlistmenthandle, enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength) } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwSetInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *const core::ffi::c_void, length: u32, fileinformationclass: super::super::Storage::FileSystem::FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *const core::ffi::c_void, length : u32, fileinformationclass : super::super::Storage::FileSystem:: FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass)) + ZwSetInformationFile(filehandle, core::mem::transmute(iostatusblock), fileinformation, length, fileinformationclass) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationResourceManager(resourcemanagerhandle: super::super::super::Win32::Foundation::HANDLE, resourcemanagerinformationclass: super::super::super::Win32::System::SystemServices::RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation: *const core::ffi::c_void, resourcemanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, resourcemanagerinformationclass : super::super::super::Win32::System::SystemServices:: RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation : *const core::ffi::c_void, resourcemanagerinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(resourcemanagerinformationclass), core::mem::transmute(resourcemanagerinformation), core::mem::transmute(resourcemanagerinformationlength)) + ZwSetInformationResourceManager(resourcemanagerhandle, resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, transactioninformationclass: super::super::super::Win32::System::SystemServices::TRANSACTION_INFORMATION_CLASS, transactioninformation: *const core::ffi::c_void, transactioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, transactioninformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTION_INFORMATION_CLASS, transactioninformation : *const core::ffi::c_void, transactioninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(transactioninformationclass), core::mem::transmute(transactioninformation), core::mem::transmute(transactioninformationlength)) + ZwSetInformationTransaction(transactionhandle, transactioninformationclass, transactioninformation, transactioninformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationTransactionManager(tmhandle: super::super::super::Win32::Foundation::HANDLE, transactionmanagerinformationclass: super::super::super::Win32::System::SystemServices::TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation: *const core::ffi::c_void, transactionmanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationTransactionManager(tmhandle : super::super::super::Win32::Foundation:: HANDLE, transactionmanagerinformationclass : super::super::super::Win32::System::SystemServices:: TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation : *const core::ffi::c_void, transactionmanagerinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationTransactionManager(core::mem::transmute(tmhandle), core::mem::transmute(transactionmanagerinformationclass), core::mem::transmute(transactionmanagerinformation), core::mem::transmute(transactionmanagerinformationlength)) + ZwSetInformationTransactionManager(tmhandle, transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength) } #[inline] pub unsafe fn ZwSinglePhaseReject(enlistmenthandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSinglePhaseReject(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSinglePhaseReject(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) + ZwSinglePhaseReject(enlistmenthandle, core::mem::transmute(tmvirtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwUnloadDriver(driverservicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwUnloadDriver(driverservicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwUnloadDriver(core::mem::transmute(driverservicename)) + ZwUnloadDriver(driverservicename) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwWriteFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *const core::ffi::c_void, length: u32, byteoffset: Option<*const i64>, key: Option<*const u32>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwWriteFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwWriteFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) + ZwWriteFile(filehandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), buffer, length, core::mem::transmute(byteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn vDbgPrintEx(componentid: u32, level: u32, format: P2, arglist: *const i8) -> u32 @@ -6623,7 +6555,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn vDbgPrintEx(componentid : u32, level : u32, format : windows_core::PCSTR, arglist : *const i8) -> u32); - vDbgPrintEx(core::mem::transmute(componentid), core::mem::transmute(level), format.param().abi(), core::mem::transmute(arglist)) + vDbgPrintEx(componentid, level, format.param().abi(), arglist) } #[inline] pub unsafe fn vDbgPrintExWithPrefix(prefix: P0, componentid: u32, level: u32, format: P3, arglist: *const i8) -> u32 @@ -6632,7 +6564,7 @@ where P3: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn vDbgPrintExWithPrefix(prefix : windows_core::PCSTR, componentid : u32, level : u32, format : windows_core::PCSTR, arglist : *const i8) -> u32); - vDbgPrintExWithPrefix(prefix.param().abi(), core::mem::transmute(componentid), core::mem::transmute(level), format.param().abi(), core::mem::transmute(arglist)) + vDbgPrintExWithPrefix(prefix.param().abi(), componentid, level, format.param().abi(), arglist) } pub const ACPIBus: INTERFACE_TYPE = INTERFACE_TYPE(17i32); #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs index dfacf6573b..e24fa1cbe9 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs @@ -1,132 +1,132 @@ #[inline] pub unsafe fn NtCancelTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, currentstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCancelTimer(core::mem::transmute(timerhandle), core::mem::transmute(currentstate.unwrap_or(core::mem::zeroed()))) + NtCancelTimer(timerhandle, core::mem::transmute(currentstate.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NtCreateTimer(timerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, timertype: super::super::super::Win32::System::Kernel::TIMER_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtCreateTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, timertype : super::super::super::Win32::System::Kernel:: TIMER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateTimer(core::mem::transmute(timerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(timertype)) + NtCreateTimer(core::mem::transmute(timerhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), timertype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenEvent(eventhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenEvent(core::mem::transmute(eventhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_WindowsProgramming"))] #[inline] pub unsafe fn NtOpenProcess(processhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, clientid: Option<*const super::super::super::Win32::System::WindowsProgramming::CLIENT_ID>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenProcess(processhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, clientid : *const super::super::super::Win32::System::WindowsProgramming:: CLIENT_ID) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenProcess(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(clientid.unwrap_or(core::mem::zeroed()))) + NtOpenProcess(core::mem::transmute(processhandle), desiredaccess, objectattributes, core::mem::transmute(clientid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtOpenTimer(timerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtOpenTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenTimer(core::mem::transmute(timerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + NtOpenTimer(core::mem::transmute(timerhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn NtQueryInformationProcess(processhandle: super::super::super::Win32::Foundation::HANDLE, processinformationclass: PROCESSINFOCLASS, processinformation: *mut core::ffi::c_void, processinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, processinformationclass : PROCESSINFOCLASS, processinformation : *mut core::ffi::c_void, processinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationProcess(core::mem::transmute(processhandle), core::mem::transmute(processinformationclass), core::mem::transmute(processinformation), core::mem::transmute(processinformationlength), core::mem::transmute(returnlength)) + NtQueryInformationProcess(processhandle, processinformationclass, core::mem::transmute(processinformation), processinformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn NtQueryInformationThread(threadhandle: super::super::super::Win32::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *mut core::ffi::c_void, threadinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *mut core::ffi::c_void, threadinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryInformationThread(core::mem::transmute(threadhandle), core::mem::transmute(threadinformationclass), core::mem::transmute(threadinformation), core::mem::transmute(threadinformationlength), core::mem::transmute(returnlength)) + NtQueryInformationThread(threadhandle, threadinformationclass, core::mem::transmute(threadinformation), threadinformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn NtSetInformationThread(threadhandle: super::super::super::Win32::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *const core::ffi::c_void, threadinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *const core::ffi::c_void, threadinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetInformationThread(core::mem::transmute(threadhandle), core::mem::transmute(threadinformationclass), core::mem::transmute(threadinformation), core::mem::transmute(threadinformationlength)) + NtSetInformationThread(threadhandle, threadinformationclass, threadinformation, threadinformationlength) } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] pub unsafe fn NtSetTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, duetime: *const i64, timerapcroutine: Option, timercontext: Option<*const core::ffi::c_void>, resumetimer: bool, period: Option, previousstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetTimer(core::mem::transmute(timerhandle), core::mem::transmute(duetime), core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(resumetimer), core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) + NtSetTimer(timerhandle, duetime, core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), resumetimer, core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtSetTimerEx(timerhandle: super::super::super::Win32::Foundation::HANDLE, timersetinformationclass: TIMER_SET_INFORMATION_CLASS, timersetinformation: Option<*mut core::ffi::c_void>, timersetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtSetTimerEx(timerhandle : super::super::super::Win32::Foundation:: HANDLE, timersetinformationclass : TIMER_SET_INFORMATION_CLASS, timersetinformation : *mut core::ffi::c_void, timersetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetTimerEx(core::mem::transmute(timerhandle), core::mem::transmute(timersetinformationclass), core::mem::transmute(timersetinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(timersetinformationlength)) + NtSetTimerEx(timerhandle, timersetinformationclass, core::mem::transmute(timersetinformation.unwrap_or(core::mem::zeroed())), timersetinformationlength) } #[inline] pub unsafe fn NtTerminateProcess(processhandle: Option, exitstatus: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtTerminateProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtTerminateProcess(core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(exitstatus)) + NtTerminateProcess(core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), exitstatus) } #[inline] pub unsafe fn NtWaitForSingleObject(handle: super::super::super::Win32::Foundation::HANDLE, alertable: bool, timeout: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtWaitForSingleObject(core::mem::transmute(handle), core::mem::transmute(alertable), core::mem::transmute(timeout)) + NtWaitForSingleObject(handle, alertable, core::mem::transmute(timeout)) } #[inline] pub unsafe fn ZwCancelTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, currentstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCancelTimer(core::mem::transmute(timerhandle), core::mem::transmute(currentstate.unwrap_or(core::mem::zeroed()))) + ZwCancelTimer(timerhandle, core::mem::transmute(currentstate.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ZwCreateTimer(timerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, timertype: super::super::super::Win32::System::Kernel::TIMER_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwCreateTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, timertype : super::super::super::Win32::System::Kernel:: TIMER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateTimer(core::mem::transmute(timerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(timertype)) + ZwCreateTimer(core::mem::transmute(timerhandle), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), timertype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenEvent(eventhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenEvent(core::mem::transmute(eventhandle), desiredaccess, objectattributes) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_WindowsProgramming"))] #[inline] pub unsafe fn ZwOpenProcess(processhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, clientid: Option<*const super::super::super::Win32::System::WindowsProgramming::CLIENT_ID>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenProcess(processhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, clientid : *const super::super::super::Win32::System::WindowsProgramming:: CLIENT_ID) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenProcess(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes), core::mem::transmute(clientid.unwrap_or(core::mem::zeroed()))) + ZwOpenProcess(core::mem::transmute(processhandle), desiredaccess, objectattributes, core::mem::transmute(clientid.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwOpenTimer(timerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwOpenTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenTimer(core::mem::transmute(timerhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes)) + ZwOpenTimer(core::mem::transmute(timerhandle), desiredaccess, objectattributes) } #[inline] pub unsafe fn ZwQueryInformationProcess(processhandle: super::super::super::Win32::Foundation::HANDLE, processinformationclass: PROCESSINFOCLASS, processinformation: *mut core::ffi::c_void, processinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, processinformationclass : PROCESSINFOCLASS, processinformation : *mut core::ffi::c_void, processinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationProcess(core::mem::transmute(processhandle), core::mem::transmute(processinformationclass), core::mem::transmute(processinformation), core::mem::transmute(processinformationlength), core::mem::transmute(returnlength)) + ZwQueryInformationProcess(processhandle, processinformationclass, core::mem::transmute(processinformation), processinformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn ZwQueryInformationThread(threadhandle: super::super::super::Win32::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *mut core::ffi::c_void, threadinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *mut core::ffi::c_void, threadinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryInformationThread(core::mem::transmute(threadhandle), core::mem::transmute(threadinformationclass), core::mem::transmute(threadinformation), core::mem::transmute(threadinformationlength), core::mem::transmute(returnlength)) + ZwQueryInformationThread(threadhandle, threadinformationclass, core::mem::transmute(threadinformation), threadinformationlength, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn ZwSetInformationThread(threadhandle: super::super::super::Win32::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *const core::ffi::c_void, threadinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *const core::ffi::c_void, threadinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetInformationThread(core::mem::transmute(threadhandle), core::mem::transmute(threadinformationclass), core::mem::transmute(threadinformation), core::mem::transmute(threadinformationlength)) + ZwSetInformationThread(threadhandle, threadinformationclass, threadinformation, threadinformationlength) } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] pub unsafe fn ZwSetTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, duetime: *const i64, timerapcroutine: Option, timercontext: Option<*const core::ffi::c_void>, resumetimer: bool, period: Option, previousstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetTimer(core::mem::transmute(timerhandle), core::mem::transmute(duetime), core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(resumetimer), core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) + ZwSetTimer(timerhandle, duetime, core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), resumetimer, core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwSetTimerEx(timerhandle: super::super::super::Win32::Foundation::HANDLE, timersetinformationclass: TIMER_SET_INFORMATION_CLASS, timersetinformation: Option<*mut core::ffi::c_void>, timersetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwSetTimerEx(timerhandle : super::super::super::Win32::Foundation:: HANDLE, timersetinformationclass : TIMER_SET_INFORMATION_CLASS, timersetinformation : *mut core::ffi::c_void, timersetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetTimerEx(core::mem::transmute(timerhandle), core::mem::transmute(timersetinformationclass), core::mem::transmute(timersetinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(timersetinformationlength)) + ZwSetTimerEx(timerhandle, timersetinformationclass, core::mem::transmute(timersetinformation.unwrap_or(core::mem::zeroed())), timersetinformationlength) } #[inline] pub unsafe fn ZwTerminateProcess(processhandle: Option, exitstatus: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwTerminateProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwTerminateProcess(core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(exitstatus)) + ZwTerminateProcess(core::mem::transmute(processhandle.unwrap_or(core::mem::zeroed())), exitstatus) } #[inline] pub unsafe fn ZwWaitForSingleObject(handle: super::super::super::Win32::Foundation::HANDLE, alertable: bool, timeout: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwWaitForSingleObject(core::mem::transmute(handle), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + ZwWaitForSingleObject(handle, alertable, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } pub const MaxProcessInfoClass: PROCESSINFOCLASS = PROCESSINFOCLASS(83i32); pub const MaxThreadInfoClass: THREADINFOCLASS = THREADINFOCLASS(56i32); diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs index 0841192c9a..81e6f818ff 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs @@ -6,7 +6,7 @@ where T: windows_core::Interface, { windows_targets::link!("directml.dll" "system" fn DMLCreateDevice(d3d12device : * mut core::ffi::c_void, flags : DML_CREATE_DEVICE_FLAGS, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DMLCreateDevice(d3d12device.param().abi(), core::mem::transmute(flags), &T::IID, result__ as *mut _ as *mut _).ok() + DMLCreateDevice(d3d12device.param().abi(), flags, &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] #[inline] @@ -16,7 +16,7 @@ where T: windows_core::Interface, { windows_targets::link!("directml.dll" "system" fn DMLCreateDevice1(d3d12device : * mut core::ffi::c_void, flags : DML_CREATE_DEVICE_FLAGS, minimumfeaturelevel : DML_FEATURE_LEVEL, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DMLCreateDevice1(d3d12device.param().abi(), core::mem::transmute(flags), core::mem::transmute(minimumfeaturelevel), &T::IID, result__ as *mut _ as *mut _).ok() + DMLCreateDevice1(d3d12device.param().abi(), flags, minimumfeaturelevel, &T::IID, result__ as *mut _ as *mut _).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -2928,20 +2928,20 @@ impl core::ops::Deref for IDMLDevice { windows_core::imp::interface_hierarchy!(IDMLDevice, windows_core::IUnknown, IDMLObject); impl IDMLDevice { pub unsafe fn CheckFeatureSupport(&self, feature: DML_FEATURE, featurequerydatasize: u32, featurequerydata: Option<*const core::ffi::c_void>, featuresupportdatasize: u32, featuresupportdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(feature), core::mem::transmute(featurequerydatasize), core::mem::transmute(featurequerydata.unwrap_or(core::mem::zeroed())), core::mem::transmute(featuresupportdatasize), core::mem::transmute(featuresupportdata)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, featurequerydatasize, core::mem::transmute(featurequerydata.unwrap_or(core::mem::zeroed())), featuresupportdatasize, core::mem::transmute(featuresupportdata)).ok() } pub unsafe fn CreateOperator(&self, desc: *const DML_OPERATOR_DESC, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateOperator)(windows_core::Interface::as_raw(self), core::mem::transmute(desc), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateOperator)(windows_core::Interface::as_raw(self), desc, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CompileOperator(&self, op: P0, flags: DML_EXECUTION_FLAGS, result__: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CompileOperator)(windows_core::Interface::as_raw(self), op.param().abi(), core::mem::transmute(flags), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CompileOperator)(windows_core::Interface::as_raw(self), op.param().abi(), flags, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateOperatorInitializer(&self, operators: Option<&[Option]>) -> windows_core::Result where @@ -3088,7 +3088,7 @@ impl IDMLDevice1 { where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CompileGraph)(windows_core::Interface::as_raw(self), core::mem::transmute(desc), core::mem::transmute(flags), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CompileGraph)(windows_core::Interface::as_raw(self), desc, flags, &T::IID, result__ as *mut _ as *mut _).ok() } } #[repr(C)] @@ -3193,16 +3193,16 @@ windows_core::imp::define_interface!(IDMLObject, IDMLObject_Vtbl, 0xc8263aac_9e0 windows_core::imp::interface_hierarchy!(IDMLObject, windows_core::IUnknown); impl IDMLObject { pub unsafe fn GetPrivateData(&self, guid: *const windows_core::GUID, datasize: *mut u32, data: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(datasize), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, data: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(data.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), data.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs index 1cbdeda3f7..0fdf22f74d 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs @@ -18,26 +18,26 @@ impl IMLOperatorAttributes { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeElementCount)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributeElementCount)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, &mut result__).map(|| result__) } pub unsafe fn GetAttribute(&self, name: P0, r#type: MLOperatorAttributeType, elementcount: u32, elementbytesize: usize, value: *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(elementcount), core::mem::transmute(elementbytesize), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, elementcount, elementbytesize, core::mem::transmute(value)).ok() } pub unsafe fn GetStringAttributeElementLength(&self, name: P0, elementindex: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringAttributeElementLength)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(elementindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringAttributeElementLength)(windows_core::Interface::as_raw(self), name.param().abi(), elementindex, &mut result__).map(|| result__) } pub unsafe fn GetStringAttributeElement(&self, name: P0, elementindex: u32, attributeelement: &mut [u8]) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(elementindex), attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() } } #[repr(C)] @@ -133,19 +133,19 @@ windows_core::imp::interface_hierarchy!(IMLOperatorKernelContext, windows_core:: impl IMLOperatorKernelContext { pub unsafe fn GetInputTensor(&self, inputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputTensor)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputTensor)(windows_core::Interface::as_raw(self), inputindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputTensor(&self, outputindex: u32, dimensionsizes: &[u32]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputTensor)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), dimensionsizes.len().try_into().unwrap(), core::mem::transmute(dimensionsizes.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputTensor)(windows_core::Interface::as_raw(self), outputindex, dimensionsizes.len().try_into().unwrap(), core::mem::transmute(dimensionsizes.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputTensor2(&self, outputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputTensor2)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputTensor2)(windows_core::Interface::as_raw(self), outputindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AllocateTemporaryData(&self, size: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateTemporaryData)(windows_core::Interface::as_raw(self), core::mem::transmute(size), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocateTemporaryData)(windows_core::Interface::as_raw(self), size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetExecutionInterface(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -245,18 +245,18 @@ impl IMLOperatorKernelCreationContext { (windows_core::Interface::vtable(self).GetOutputCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn IsInputValid(&self, inputindex: u32) -> bool { - (windows_core::Interface::vtable(self).IsInputValid)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex)) + (windows_core::Interface::vtable(self).IsInputValid)(windows_core::Interface::as_raw(self), inputindex) } pub unsafe fn IsOutputValid(&self, outputindex: u32) -> bool { - (windows_core::Interface::vtable(self).IsOutputValid)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex)) + (windows_core::Interface::vtable(self).IsOutputValid)(windows_core::Interface::as_raw(self), outputindex) } pub unsafe fn GetInputEdgeDescription(&self, inputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputEdgeDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputEdgeDescription)(windows_core::Interface::as_raw(self), inputindex, &mut result__).map(|| result__) } pub unsafe fn GetOutputEdgeDescription(&self, outputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputEdgeDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputEdgeDescription)(windows_core::Interface::as_raw(self), outputindex, &mut result__).map(|| result__) } pub unsafe fn HasTensorShapeDescription(&self) -> bool { (windows_core::Interface::vtable(self).HasTensorShapeDescription)(windows_core::Interface::as_raw(self)) @@ -415,14 +415,14 @@ impl IMLOperatorRegistry { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterOperatorSetSchema)(windows_core::Interface::as_raw(self), core::mem::transmute(operatorsetid), core::mem::transmute(baselineversion), core::mem::transmute(schema.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), schema.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), typeinferrer.param().abi(), shapeinferrer.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterOperatorSetSchema)(windows_core::Interface::as_raw(self), operatorsetid, baselineversion, core::mem::transmute(schema.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), schema.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), typeinferrer.param().abi(), shapeinferrer.param().abi()).ok() } pub unsafe fn RegisterOperatorKernel(&self, operatorkernel: *const MLOperatorKernelDescription, operatorkernelfactory: P1, shapeinferrer: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterOperatorKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(operatorkernel), operatorkernelfactory.param().abi(), shapeinferrer.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterOperatorKernel)(windows_core::Interface::as_raw(self), operatorkernel, operatorkernelfactory.param().abi(), shapeinferrer.param().abi()).ok() } } #[repr(C)] @@ -472,24 +472,24 @@ impl IMLOperatorShapeInferenceContext { (windows_core::Interface::vtable(self).GetOutputCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn IsInputValid(&self, inputindex: u32) -> bool { - (windows_core::Interface::vtable(self).IsInputValid)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex)) + (windows_core::Interface::vtable(self).IsInputValid)(windows_core::Interface::as_raw(self), inputindex) } pub unsafe fn IsOutputValid(&self, outputindex: u32) -> bool { - (windows_core::Interface::vtable(self).IsOutputValid)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex)) + (windows_core::Interface::vtable(self).IsOutputValid)(windows_core::Interface::as_raw(self), outputindex) } pub unsafe fn GetInputEdgeDescription(&self, inputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputEdgeDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputEdgeDescription)(windows_core::Interface::as_raw(self), inputindex, &mut result__).map(|| result__) } pub unsafe fn GetInputTensorDimensionCount(&self, inputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputTensorDimensionCount)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputTensorDimensionCount)(windows_core::Interface::as_raw(self), inputindex, &mut result__).map(|| result__) } pub unsafe fn GetInputTensorShape(&self, inputindex: u32, dimensions: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputTensorShape)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), dimensions.len().try_into().unwrap(), core::mem::transmute(dimensions.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetInputTensorShape)(windows_core::Interface::as_raw(self), inputindex, dimensions.len().try_into().unwrap(), core::mem::transmute(dimensions.as_ptr())).ok() } pub unsafe fn SetOutputTensorShape(&self, outputindex: u32, dimensioncount: u32, dimensions: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputTensorShape)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), core::mem::transmute(dimensioncount), core::mem::transmute(dimensions)).ok() + (windows_core::Interface::vtable(self).SetOutputTensorShape)(windows_core::Interface::as_raw(self), outputindex, dimensioncount, dimensions).ok() } } #[repr(C)] @@ -706,20 +706,20 @@ windows_core::imp::interface_hierarchy!(IMLOperatorTensorShapeDescription, windo impl IMLOperatorTensorShapeDescription { pub unsafe fn GetInputTensorDimensionCount(&self, inputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputTensorDimensionCount)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputTensorDimensionCount)(windows_core::Interface::as_raw(self), inputindex, &mut result__).map(|| result__) } pub unsafe fn GetInputTensorShape(&self, inputindex: u32, dimensions: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputTensorShape)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), dimensions.len().try_into().unwrap(), core::mem::transmute(dimensions.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetInputTensorShape)(windows_core::Interface::as_raw(self), inputindex, dimensions.len().try_into().unwrap(), core::mem::transmute(dimensions.as_ptr())).ok() } pub unsafe fn HasOutputShapeDescription(&self) -> bool { (windows_core::Interface::vtable(self).HasOutputShapeDescription)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetOutputTensorDimensionCount(&self, outputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputTensorDimensionCount)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputTensorDimensionCount)(windows_core::Interface::as_raw(self), outputindex, &mut result__).map(|| result__) } pub unsafe fn GetOutputTensorShape(&self, outputindex: u32, dimensions: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputTensorShape)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), dimensions.len().try_into().unwrap(), core::mem::transmute(dimensions.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetOutputTensorShape)(windows_core::Interface::as_raw(self), outputindex, dimensions.len().try_into().unwrap(), core::mem::transmute(dimensions.as_ptr())).ok() } } #[repr(C)] @@ -802,17 +802,17 @@ impl IMLOperatorTypeInferenceContext { (windows_core::Interface::vtable(self).GetOutputCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn IsInputValid(&self, inputindex: u32) -> bool { - (windows_core::Interface::vtable(self).IsInputValid)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex)) + (windows_core::Interface::vtable(self).IsInputValid)(windows_core::Interface::as_raw(self), inputindex) } pub unsafe fn IsOutputValid(&self, outputindex: u32) -> bool { - (windows_core::Interface::vtable(self).IsOutputValid)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex)) + (windows_core::Interface::vtable(self).IsOutputValid)(windows_core::Interface::as_raw(self), outputindex) } pub unsafe fn GetInputEdgeDescription(&self, inputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputEdgeDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputEdgeDescription)(windows_core::Interface::as_raw(self), inputindex, &mut result__).map(|| result__) } pub unsafe fn SetOutputEdgeDescription(&self, outputindex: u32, edgedescription: *const MLOperatorEdgeDescription) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputEdgeDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(outputindex), core::mem::transmute(edgedescription)).ok() + (windows_core::Interface::vtable(self).SetOutputEdgeDescription)(windows_core::Interface::as_raw(self), outputindex, edgedescription).ok() } } #[repr(C)] @@ -991,15 +991,15 @@ impl IWinMLModel { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn EnumerateMetadata(&self, index: u32, pkey: *mut windows_core::PCWSTR, pvalue: *mut windows_core::PCWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pkey), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).EnumerateMetadata)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pkey), core::mem::transmute(pvalue)).ok() } pub unsafe fn EnumerateModelInputs(&self, index: u32) -> windows_core::Result<*mut WINML_VARIABLE_DESC> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateModelInputs)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnumerateModelInputs)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn EnumerateModelOutputs(&self, index: u32) -> windows_core::Result<*mut WINML_VARIABLE_DESC> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateModelOutputs)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnumerateModelOutputs)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } } #[repr(C)] @@ -1151,7 +1151,7 @@ windows_core::imp::interface_hierarchy!(IWinMLRuntimeFactory, windows_core::IUnk impl IWinMLRuntimeFactory { pub unsafe fn CreateRuntime(&self, runtimetype: WINML_RUNTIME_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRuntime)(windows_core::Interface::as_raw(self), core::mem::transmute(runtimetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRuntime)(windows_core::Interface::as_raw(self), runtimetype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs index 10f2ca4277..ae37ef41c4 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs @@ -4,7 +4,7 @@ where P1: windows_core::Param, { windows_targets::link!("hhctrl.ocx" "system" fn HtmlHelpA(hwndcaller : super::super::Foundation:: HWND, pszfile : windows_core::PCSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: HWND); - HtmlHelpA(core::mem::transmute(hwndcaller.unwrap_or(core::mem::zeroed())), pszfile.param().abi(), ucommand.0 as _, core::mem::transmute(dwdata)) + HtmlHelpA(core::mem::transmute(hwndcaller.unwrap_or(core::mem::zeroed())), pszfile.param().abi(), ucommand.0 as _, dwdata) } #[inline] pub unsafe fn HtmlHelpW(hwndcaller: Option, pszfile: P1, ucommand: HTML_HELP_COMMAND, dwdata: usize) -> super::super::Foundation::HWND @@ -12,7 +12,7 @@ where P1: windows_core::Param, { windows_targets::link!("hhctrl.ocx" "system" fn HtmlHelpW(hwndcaller : super::super::Foundation:: HWND, pszfile : windows_core::PCWSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: HWND); - HtmlHelpW(core::mem::transmute(hwndcaller.unwrap_or(core::mem::zeroed())), pszfile.param().abi(), ucommand.0 as _, core::mem::transmute(dwdata)) + HtmlHelpW(core::mem::transmute(hwndcaller.unwrap_or(core::mem::zeroed())), pszfile.param().abi(), ucommand.0 as _, dwdata) } pub const CLSID_IITCmdInt: windows_core::GUID = windows_core::GUID::from_u128(0x4662daa2_d393_11d0_9a56_00c04fb68bf7); pub const CLSID_IITDatabase: windows_core::GUID = windows_core::GUID::from_u128(0x66673452_8c23_11d0_a84e_00aa006c7d01); @@ -498,22 +498,22 @@ impl IITDatabase { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), lpszhost.param().abi(), lpszmoniker.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), lpszhost.param().abi(), lpszmoniker.param().abi(), dwflags).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CreateObject(&self, rclsid: *const windows_core::GUID, pdwobjinstance: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(pdwobjinstance)).ok() + (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), rclsid, core::mem::transmute(pdwobjinstance)).ok() } pub unsafe fn GetObject(&self, dwobjinstance: u32, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobjinstance), core::mem::transmute(riid), core::mem::transmute(ppvobj)).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), dwobjinstance, riid, core::mem::transmute(ppvobj)).ok() } pub unsafe fn GetObjectPersistence(&self, lpwszobject: P0, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjectPersistence)(windows_core::Interface::as_raw(self), lpwszobject.param().abi(), core::mem::transmute(dwobjinstance), core::mem::transmute(ppvpersistence), fstream.into()).ok() + (windows_core::Interface::vtable(self).GetObjectPersistence)(windows_core::Interface::as_raw(self), lpwszobject.param().abi(), dwobjinstance, core::mem::transmute(ppvpersistence), fstream.into()).ok() } } #[repr(C)] @@ -585,19 +585,19 @@ impl IITPropList { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), lpszwstring.param().abi(), core::mem::transmute(dwoperation)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), propid, lpszwstring.param().abi(), dwoperation).ok() } pub unsafe fn Set2(&self, propid: u32, lpvdata: *mut core::ffi::c_void, cbdata: u32, dwoperation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set2)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(lpvdata), core::mem::transmute(cbdata), core::mem::transmute(dwoperation)).ok() + (windows_core::Interface::vtable(self).Set2)(windows_core::Interface::as_raw(self), propid, core::mem::transmute(lpvdata), cbdata, dwoperation).ok() } pub unsafe fn Set3(&self, propid: u32, dwdata: u32, dwoperation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set3)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(dwdata), core::mem::transmute(dwoperation)).ok() + (windows_core::Interface::vtable(self).Set3)(windows_core::Interface::as_raw(self), propid, dwdata, dwoperation).ok() } pub unsafe fn Add(&self, prop: *mut CProperty) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(prop)).ok() } pub unsafe fn Get(&self, propid: u32, property: *mut CProperty) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(property)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), propid, core::mem::transmute(property)).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -606,7 +606,7 @@ impl IITPropList { (windows_core::Interface::vtable(self).SetPersist)(windows_core::Interface::as_raw(self), fpersist.into()).ok() } pub unsafe fn SetPersist2(&self, propid: u32, fpersist: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPersist2)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), fpersist.into()).ok() + (windows_core::Interface::vtable(self).SetPersist2)(windows_core::Interface::as_raw(self), propid, fpersist.into()).ok() } pub unsafe fn GetFirst(&self, property: *mut CProperty) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFirst)(windows_core::Interface::as_raw(self), core::mem::transmute(property)).ok() @@ -618,29 +618,29 @@ impl IITPropList { (windows_core::Interface::vtable(self).GetPropCount)(windows_core::Interface::as_raw(self), core::mem::transmute(cprop)).ok() } pub unsafe fn SaveHeader(&self, lpvdata: *mut core::ffi::c_void, dwhdrsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveHeader)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvdata), core::mem::transmute(dwhdrsize)).ok() + (windows_core::Interface::vtable(self).SaveHeader)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvdata), dwhdrsize).ok() } pub unsafe fn SaveData(&self, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvheader), core::mem::transmute(dwhdrsize), core::mem::transmute(lpvdata), core::mem::transmute(dwbufsize)).ok() + (windows_core::Interface::vtable(self).SaveData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvheader), dwhdrsize, core::mem::transmute(lpvdata), dwbufsize).ok() } pub unsafe fn GetHeaderSize(&self, dwhdrsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetHeaderSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhdrsize)).ok() } pub unsafe fn GetDataSize(&self, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, dwdatasize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDataSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvheader), core::mem::transmute(dwhdrsize), core::mem::transmute(dwdatasize)).ok() + (windows_core::Interface::vtable(self).GetDataSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvheader), dwhdrsize, core::mem::transmute(dwdatasize)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveDataToStream(&self, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, pstream: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDataToStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvheader), core::mem::transmute(dwhdrsize), pstream.param().abi()).ok() + (windows_core::Interface::vtable(self).SaveDataToStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvheader), dwhdrsize, pstream.param().abi()).ok() } pub unsafe fn LoadFromMem(&self, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadFromMem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvdata), core::mem::transmute(dwbufsize)).ok() + (windows_core::Interface::vtable(self).LoadFromMem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvdata), dwbufsize).ok() } pub unsafe fn SaveToMem(&self, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveToMem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvdata), core::mem::transmute(dwbufsize)).ok() + (windows_core::Interface::vtable(self).SaveToMem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvdata), dwbufsize).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -797,25 +797,25 @@ windows_core::imp::define_interface!(IITResultSet, IITResultSet_Vtbl, 0x3bb91d41 windows_core::imp::interface_hierarchy!(IITResultSet, windows_core::IUnknown); impl IITResultSet { pub unsafe fn SetColumnPriority(&self, lcolumnindex: i32, columnpriority: PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lcolumnindex), core::mem::transmute(columnpriority)).ok() + (windows_core::Interface::vtable(self).SetColumnPriority)(windows_core::Interface::as_raw(self), lcolumnindex, columnpriority).ok() } pub unsafe fn SetColumnHeap(&self, lcolumnindex: i32, lpvheap: *mut core::ffi::c_void, pfncolheapfree: PFNCOLHEAPFREE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(lcolumnindex), core::mem::transmute(lpvheap), core::mem::transmute(pfncolheapfree)).ok() + (windows_core::Interface::vtable(self).SetColumnHeap)(windows_core::Interface::as_raw(self), lcolumnindex, core::mem::transmute(lpvheap), pfncolheapfree).ok() } pub unsafe fn SetKeyProp(&self, propid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeyProp)(windows_core::Interface::as_raw(self), core::mem::transmute(propid)).ok() + (windows_core::Interface::vtable(self).SetKeyProp)(windows_core::Interface::as_raw(self), propid).ok() } pub unsafe fn Add(&self, propid: u32, dwdefaultdata: u32, priority: PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(dwdefaultdata), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), propid, dwdefaultdata, priority).ok() } pub unsafe fn Add2(&self, propid: u32, lpszwdefault: P1, priority: PRIORITY) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Add2)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), lpszwdefault.param().abi(), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).Add2)(windows_core::Interface::as_raw(self), propid, lpszwdefault.param().abi(), priority).ok() } pub unsafe fn Add3(&self, propid: u32, lpvdefaultdata: *mut core::ffi::c_void, cbdata: u32, priority: PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add3)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(lpvdefaultdata), core::mem::transmute(cbdata), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).Add3)(windows_core::Interface::as_raw(self), propid, core::mem::transmute(lpvdefaultdata), cbdata, priority).ok() } pub unsafe fn Add4(&self, lpvhdr: *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Add4)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvhdr)).ok() @@ -824,19 +824,19 @@ impl IITResultSet { (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvhdr), core::mem::transmute(lpvdata)).ok() } pub unsafe fn Set(&self, lrowindex: i32, lcolumnindex: i32, lpvdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowindex), core::mem::transmute(lcolumnindex), core::mem::transmute(lpvdata), core::mem::transmute(cbdata)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), lrowindex, lcolumnindex, core::mem::transmute(lpvdata), cbdata).ok() } pub unsafe fn Set2(&self, lrowindex: i32, lcolumnindex: i32, lpwstr: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Set2)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowindex), core::mem::transmute(lcolumnindex), lpwstr.param().abi()).ok() + (windows_core::Interface::vtable(self).Set2)(windows_core::Interface::as_raw(self), lrowindex, lcolumnindex, lpwstr.param().abi()).ok() } pub unsafe fn Set3(&self, lrowindex: i32, lcolumnindex: i32, dwdata: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set3)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowindex), core::mem::transmute(lcolumnindex), core::mem::transmute(dwdata)).ok() + (windows_core::Interface::vtable(self).Set3)(windows_core::Interface::as_raw(self), lrowindex, lcolumnindex, dwdata).ok() } pub unsafe fn Set4(&self, lrowindex: i32, lpvhdr: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set4)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowindex), core::mem::transmute(lpvhdr), core::mem::transmute(lpvdata)).ok() + (windows_core::Interface::vtable(self).Set4)(windows_core::Interface::as_raw(self), lrowindex, core::mem::transmute(lpvhdr), core::mem::transmute(lpvdata)).ok() } pub unsafe fn Copy(&self, prscopy: P0) -> windows_core::Result<()> where @@ -848,16 +848,16 @@ impl IITResultSet { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendRows)(windows_core::Interface::as_raw(self), pressrc.param().abi(), core::mem::transmute(lrowsrcfirst), core::mem::transmute(csrcrows), core::mem::transmute(lrowfirstdest)).ok() + (windows_core::Interface::vtable(self).AppendRows)(windows_core::Interface::as_raw(self), pressrc.param().abi(), lrowsrcfirst, csrcrows, core::mem::transmute(lrowfirstdest)).ok() } pub unsafe fn Get(&self, lrowindex: i32, lcolumnindex: i32, prop: *mut CProperty) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowindex), core::mem::transmute(lcolumnindex), core::mem::transmute(prop)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), lrowindex, lcolumnindex, core::mem::transmute(prop)).ok() } pub unsafe fn GetKeyProp(&self, keypropid: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKeyProp)(windows_core::Interface::as_raw(self), core::mem::transmute(keypropid)).ok() } pub unsafe fn GetColumnPriority(&self, lcolumnindex: i32, columnpriority: *mut PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lcolumnindex), core::mem::transmute(columnpriority)).ok() + (windows_core::Interface::vtable(self).GetColumnPriority)(windows_core::Interface::as_raw(self), lcolumnindex, core::mem::transmute(columnpriority)).ok() } pub unsafe fn GetRowCount(&self, lnumberofrows: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRowCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lnumberofrows)).ok() @@ -866,13 +866,13 @@ impl IITResultSet { (windows_core::Interface::vtable(self).GetColumnCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lnumberofcolumns)).ok() } pub unsafe fn GetColumn(&self, lcolumnindex: i32, propid: *mut u32, dwtype: *mut u32, lpvdefaultvalue: *mut *mut core::ffi::c_void, cbsize: *mut u32, columnpriority: *mut PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(lcolumnindex), core::mem::transmute(propid), core::mem::transmute(dwtype), core::mem::transmute(lpvdefaultvalue), core::mem::transmute(cbsize), core::mem::transmute(columnpriority)).ok() + (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), lcolumnindex, core::mem::transmute(propid), core::mem::transmute(dwtype), core::mem::transmute(lpvdefaultvalue), core::mem::transmute(cbsize), core::mem::transmute(columnpriority)).ok() } pub unsafe fn GetColumn2(&self, lcolumnindex: i32, propid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumn2)(windows_core::Interface::as_raw(self), core::mem::transmute(lcolumnindex), core::mem::transmute(propid)).ok() + (windows_core::Interface::vtable(self).GetColumn2)(windows_core::Interface::as_raw(self), lcolumnindex, core::mem::transmute(propid)).ok() } pub unsafe fn GetColumnFromPropID(&self, propid: u32, lcolumnindex: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnFromPropID)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(lcolumnindex)).ok() + (windows_core::Interface::vtable(self).GetColumnFromPropID)(windows_core::Interface::as_raw(self), propid, core::mem::transmute(lcolumnindex)).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -893,7 +893,7 @@ impl IITResultSet { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), fpause.into()).ok() } pub unsafe fn GetRowStatus(&self, lrowfirst: i32, crows: i32, lprowstatus: *mut ROWSTATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRowStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowfirst), core::mem::transmute(crows), core::mem::transmute(lprowstatus)).ok() + (windows_core::Interface::vtable(self).GetRowStatus)(windows_core::Interface::as_raw(self), lrowfirst, crows, core::mem::transmute(lprowstatus)).ok() } pub unsafe fn GetColumnStatus(&self, lpcolstatus: *mut COLUMNSTATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetColumnStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lpcolstatus)).ok() @@ -1135,13 +1135,13 @@ impl IStemSink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), core::mem::transmute(cwc)).ok() + (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc).ok() } pub unsafe fn PutWord(&self, pwcinbuf: P0, cwc: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), core::mem::transmute(cwc)).ok() + (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc).ok() } } #[repr(C)] @@ -1175,13 +1175,13 @@ windows_core::imp::define_interface!(IStemmerConfig, IStemmerConfig_Vtbl, 0x8fa0 windows_core::imp::interface_hierarchy!(IStemmerConfig, windows_core::IUnknown); impl IStemmerConfig { pub unsafe fn SetLocaleInfo(&self, dwcodepageid: u32, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocaleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcodepageid), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetLocaleInfo)(windows_core::Interface::as_raw(self), dwcodepageid, lcid).ok() } pub unsafe fn GetLocaleInfo(&self, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLocaleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcodepageid), core::mem::transmute(plcid)).ok() } pub unsafe fn SetControlInfo(&self, grfstemflags: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(grfstemflags), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetControlInfo)(windows_core::Interface::as_raw(self), grfstemflags, dwreserved).ok() } pub unsafe fn GetControlInfo(&self, pgrfstemflags: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetControlInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pgrfstemflags), core::mem::transmute(pdwreserved)).ok() @@ -1191,7 +1191,7 @@ impl IStemmerConfig { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadExternalStemmerData)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(dwextdatatype)).ok() + (windows_core::Interface::vtable(self).LoadExternalStemmerData)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwextdatatype).ok() } } #[repr(C)] @@ -1261,19 +1261,19 @@ windows_core::imp::define_interface!(IWordBreakerConfig, IWordBreakerConfig_Vtbl windows_core::imp::interface_hierarchy!(IWordBreakerConfig, windows_core::IUnknown); impl IWordBreakerConfig { pub unsafe fn SetLocaleInfo(&self, dwcodepageid: u32, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocaleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcodepageid), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetLocaleInfo)(windows_core::Interface::as_raw(self), dwcodepageid, lcid).ok() } pub unsafe fn GetLocaleInfo(&self, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLocaleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcodepageid), core::mem::transmute(plcid)).ok() } pub unsafe fn SetBreakWordType(&self, dwbreakwordtype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakWordType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbreakwordtype)).ok() + (windows_core::Interface::vtable(self).SetBreakWordType)(windows_core::Interface::as_raw(self), dwbreakwordtype).ok() } pub unsafe fn GetBreakWordType(&self, pdwbreakwordtype: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBreakWordType)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwbreakwordtype)).ok() } pub unsafe fn SetControlInfo(&self, grfbreakflags: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(grfbreakflags), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetControlInfo)(windows_core::Interface::as_raw(self), grfbreakflags, dwreserved).ok() } pub unsafe fn GetControlInfo(&self, pgrfbreakflags: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetControlInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pgrfbreakflags), core::mem::transmute(pdwreserved)).ok() @@ -1283,14 +1283,14 @@ impl IWordBreakerConfig { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadExternalBreakerData)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(dwextdatatype)).ok() + (windows_core::Interface::vtable(self).LoadExternalBreakerData)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwextdatatype).ok() } #[cfg(feature = "Win32_System_Search")] pub unsafe fn SetWordStemmer(&self, rclsid: *const windows_core::GUID, pstemmer: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWordStemmer)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), pstemmer.param().abi()).ok() + (windows_core::Interface::vtable(self).SetWordStemmer)(windows_core::Interface::as_raw(self), rclsid, pstemmer.param().abi()).ok() } #[cfg(feature = "Win32_System_Search")] pub unsafe fn GetWordStemmer(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs index 52b554a404..3e545de562 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs @@ -5,7 +5,7 @@ where P2: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMAcquireAdvisories(hlicensestorage : u32, wszlicense : windows_core::PCWSTR, wszurl : windows_core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - DRMAcquireAdvisories(core::mem::transmute(hlicensestorage), wszlicense.param().abi(), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() + DRMAcquireAdvisories(hlicensestorage, wszlicense.param().abi(), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() } #[inline] pub unsafe fn DRMAcquireIssuanceLicenseTemplate(hclient: u32, uflags: u32, pvreserved: *mut core::ffi::c_void, pwsztemplateids: Option<&[windows_core::PCWSTR]>, wszurl: P5, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -13,7 +13,7 @@ where P5: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMAcquireIssuanceLicenseTemplate(hclient : u32, uflags : u32, pvreserved : *mut core::ffi::c_void, ctemplates : u32, pwsztemplateids : *const windows_core::PCWSTR, wszurl : windows_core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - DRMAcquireIssuanceLicenseTemplate(core::mem::transmute(hclient), core::mem::transmute(uflags), core::mem::transmute(pvreserved), pwsztemplateids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pwsztemplateids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() + DRMAcquireIssuanceLicenseTemplate(hclient, uflags, core::mem::transmute(pvreserved), pwsztemplateids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pwsztemplateids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() } #[inline] pub unsafe fn DRMAcquireLicense(hsession: u32, uflags: u32, wszgroupidentitycredential: P2, wszrequestedrights: P3, wszcustomdata: P4, wszurl: P5, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -24,12 +24,12 @@ where P5: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMAcquireLicense(hsession : u32, uflags : u32, wszgroupidentitycredential : windows_core::PCWSTR, wszrequestedrights : windows_core::PCWSTR, wszcustomdata : windows_core::PCWSTR, wszurl : windows_core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - DRMAcquireLicense(core::mem::transmute(hsession), core::mem::transmute(uflags), wszgroupidentitycredential.param().abi(), wszrequestedrights.param().abi(), wszcustomdata.param().abi(), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() + DRMAcquireLicense(hsession, uflags, wszgroupidentitycredential.param().abi(), wszrequestedrights.param().abi(), wszcustomdata.param().abi(), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() } #[inline] pub unsafe fn DRMActivate(hclient: u32, uflags: u32, ulangid: u32, pactservinfo: *mut DRM_ACTSERV_INFO, pvcontext: *mut core::ffi::c_void, hparentwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMActivate(hclient : u32, uflags : u32, ulangid : u32, pactservinfo : *mut DRM_ACTSERV_INFO, pvcontext : *mut core::ffi::c_void, hparentwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DRMActivate(core::mem::transmute(hclient), core::mem::transmute(uflags), core::mem::transmute(ulangid), core::mem::transmute(pactservinfo), core::mem::transmute(pvcontext), core::mem::transmute(hparentwnd)).ok() + DRMActivate(hclient, uflags, ulangid, core::mem::transmute(pactservinfo), core::mem::transmute(pvcontext), hparentwnd).ok() } #[inline] pub unsafe fn DRMAddLicense(hlicensestorage: u32, uflags: u32, wszlicense: P2) -> windows_core::Result<()> @@ -37,12 +37,12 @@ where P2: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMAddLicense(hlicensestorage : u32, uflags : u32, wszlicense : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMAddLicense(core::mem::transmute(hlicensestorage), core::mem::transmute(uflags), wszlicense.param().abi()).ok() + DRMAddLicense(hlicensestorage, uflags, wszlicense.param().abi()).ok() } #[inline] pub unsafe fn DRMAddRightWithUser(hissuancelicense: u32, hright: u32, huser: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMAddRightWithUser(hissuancelicense : u32, hright : u32, huser : u32) -> windows_core::HRESULT); - DRMAddRightWithUser(core::mem::transmute(hissuancelicense), core::mem::transmute(hright), core::mem::transmute(huser)).ok() + DRMAddRightWithUser(hissuancelicense, hright, huser).ok() } #[inline] pub unsafe fn DRMAttest(henablingprincipal: u32, wszdata: P1, etype: DRMATTESTTYPE, pcattestedblob: *mut u32, wszattestedblob: windows_core::PWSTR) -> windows_core::Result<()> @@ -50,42 +50,42 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMAttest(henablingprincipal : u32, wszdata : windows_core::PCWSTR, etype : DRMATTESTTYPE, pcattestedblob : *mut u32, wszattestedblob : windows_core::PWSTR) -> windows_core::HRESULT); - DRMAttest(core::mem::transmute(henablingprincipal), wszdata.param().abi(), core::mem::transmute(etype), core::mem::transmute(pcattestedblob), core::mem::transmute(wszattestedblob)).ok() + DRMAttest(henablingprincipal, wszdata.param().abi(), etype, core::mem::transmute(pcattestedblob), core::mem::transmute(wszattestedblob)).ok() } #[inline] pub unsafe fn DRMCheckSecurity(henv: u32, clevel: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMCheckSecurity(henv : u32, clevel : u32) -> windows_core::HRESULT); - DRMCheckSecurity(core::mem::transmute(henv), core::mem::transmute(clevel)).ok() + DRMCheckSecurity(henv, clevel).ok() } #[inline] pub unsafe fn DRMClearAllRights(hissuancelicense: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMClearAllRights(hissuancelicense : u32) -> windows_core::HRESULT); - DRMClearAllRights(core::mem::transmute(hissuancelicense)).ok() + DRMClearAllRights(hissuancelicense).ok() } #[inline] pub unsafe fn DRMCloseEnvironmentHandle(henv: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMCloseEnvironmentHandle(henv : u32) -> windows_core::HRESULT); - DRMCloseEnvironmentHandle(core::mem::transmute(henv)).ok() + DRMCloseEnvironmentHandle(henv).ok() } #[inline] pub unsafe fn DRMCloseHandle(handle: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMCloseHandle(handle : u32) -> windows_core::HRESULT); - DRMCloseHandle(core::mem::transmute(handle)).ok() + DRMCloseHandle(handle).ok() } #[inline] pub unsafe fn DRMClosePubHandle(hpub: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMClosePubHandle(hpub : u32) -> windows_core::HRESULT); - DRMClosePubHandle(core::mem::transmute(hpub)).ok() + DRMClosePubHandle(hpub).ok() } #[inline] pub unsafe fn DRMCloseQueryHandle(hquery: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMCloseQueryHandle(hquery : u32) -> windows_core::HRESULT); - DRMCloseQueryHandle(core::mem::transmute(hquery)).ok() + DRMCloseQueryHandle(hquery).ok() } #[inline] pub unsafe fn DRMCloseSession(hsession: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMCloseSession(hsession : u32) -> windows_core::HRESULT); - DRMCloseSession(core::mem::transmute(hsession)).ok() + DRMCloseSession(hsession).ok() } #[inline] pub unsafe fn DRMConstructCertificateChain(rgwszcertificates: &[windows_core::PCWSTR], pcchain: *mut u32, wszchain: Option) -> windows_core::Result<()> { @@ -98,7 +98,7 @@ where P2: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateBoundLicense(henv : u32, pparams : *mut DRMBOUNDLICENSEPARAMS, wszlicensechain : windows_core::PCWSTR, phboundlicense : *mut u32, pherrorlog : *mut u32) -> windows_core::HRESULT); - DRMCreateBoundLicense(core::mem::transmute(henv), core::mem::transmute(pparams), wszlicensechain.param().abi(), core::mem::transmute(phboundlicense), core::mem::transmute(pherrorlog)).ok() + DRMCreateBoundLicense(henv, core::mem::transmute(pparams), wszlicensechain.param().abi(), core::mem::transmute(phboundlicense), core::mem::transmute(pherrorlog)).ok() } #[inline] pub unsafe fn DRMCreateClientSession(pfncallback: DRMCALLBACK, ucallbackversion: u32, wszgroupidprovidertype: P2, wszgroupid: P3, phclient: *mut u32) -> windows_core::Result<()> @@ -107,7 +107,7 @@ where P3: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateClientSession(pfncallback : DRMCALLBACK, ucallbackversion : u32, wszgroupidprovidertype : windows_core::PCWSTR, wszgroupid : windows_core::PCWSTR, phclient : *mut u32) -> windows_core::HRESULT); - DRMCreateClientSession(core::mem::transmute(pfncallback), core::mem::transmute(ucallbackversion), wszgroupidprovidertype.param().abi(), wszgroupid.param().abi(), core::mem::transmute(phclient)).ok() + DRMCreateClientSession(pfncallback, ucallbackversion, wszgroupidprovidertype.param().abi(), wszgroupid.param().abi(), core::mem::transmute(phclient)).ok() } #[inline] pub unsafe fn DRMCreateEnablingBitsDecryptor(hboundlicense: u32, wszright: P1, hauxlib: u32, wszauxplug: P3, phdecryptor: *mut u32) -> windows_core::Result<()> @@ -116,7 +116,7 @@ where P3: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateEnablingBitsDecryptor(hboundlicense : u32, wszright : windows_core::PCWSTR, hauxlib : u32, wszauxplug : windows_core::PCWSTR, phdecryptor : *mut u32) -> windows_core::HRESULT); - DRMCreateEnablingBitsDecryptor(core::mem::transmute(hboundlicense), wszright.param().abi(), core::mem::transmute(hauxlib), wszauxplug.param().abi(), core::mem::transmute(phdecryptor)).ok() + DRMCreateEnablingBitsDecryptor(hboundlicense, wszright.param().abi(), hauxlib, wszauxplug.param().abi(), core::mem::transmute(phdecryptor)).ok() } #[inline] pub unsafe fn DRMCreateEnablingBitsEncryptor(hboundlicense: u32, wszright: P1, hauxlib: u32, wszauxplug: P3, phencryptor: *mut u32) -> windows_core::Result<()> @@ -125,7 +125,7 @@ where P3: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateEnablingBitsEncryptor(hboundlicense : u32, wszright : windows_core::PCWSTR, hauxlib : u32, wszauxplug : windows_core::PCWSTR, phencryptor : *mut u32) -> windows_core::HRESULT); - DRMCreateEnablingBitsEncryptor(core::mem::transmute(hboundlicense), wszright.param().abi(), core::mem::transmute(hauxlib), wszauxplug.param().abi(), core::mem::transmute(phencryptor)).ok() + DRMCreateEnablingBitsEncryptor(hboundlicense, wszright.param().abi(), hauxlib, wszauxplug.param().abi(), core::mem::transmute(phencryptor)).ok() } #[inline] pub unsafe fn DRMCreateEnablingPrincipal(henv: u32, hlibrary: u32, wszobject: P2, pidprincipal: *mut DRMID, wszcredentials: P4, phenablingprincipal: *mut u32) -> windows_core::Result<()> @@ -134,7 +134,7 @@ where P4: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateEnablingPrincipal(henv : u32, hlibrary : u32, wszobject : windows_core::PCWSTR, pidprincipal : *mut DRMID, wszcredentials : windows_core::PCWSTR, phenablingprincipal : *mut u32) -> windows_core::HRESULT); - DRMCreateEnablingPrincipal(core::mem::transmute(henv), core::mem::transmute(hlibrary), wszobject.param().abi(), core::mem::transmute(pidprincipal), wszcredentials.param().abi(), core::mem::transmute(phenablingprincipal)).ok() + DRMCreateEnablingPrincipal(henv, hlibrary, wszobject.param().abi(), core::mem::transmute(pidprincipal), wszcredentials.param().abi(), core::mem::transmute(phenablingprincipal)).ok() } #[inline] pub unsafe fn DRMCreateIssuanceLicense(psttimefrom: *mut super::super::Foundation::SYSTEMTIME, psttimeuntil: *mut super::super::Foundation::SYSTEMTIME, wszreferralinfoname: P2, wszreferralinfourl: P3, howner: u32, wszissuancelicense: P5, hboundlicense: u32, phissuancelicense: *mut u32) -> windows_core::Result<()> @@ -144,7 +144,7 @@ where P5: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateIssuanceLicense(psttimefrom : *mut super::super::Foundation:: SYSTEMTIME, psttimeuntil : *mut super::super::Foundation:: SYSTEMTIME, wszreferralinfoname : windows_core::PCWSTR, wszreferralinfourl : windows_core::PCWSTR, howner : u32, wszissuancelicense : windows_core::PCWSTR, hboundlicense : u32, phissuancelicense : *mut u32) -> windows_core::HRESULT); - DRMCreateIssuanceLicense(core::mem::transmute(psttimefrom), core::mem::transmute(psttimeuntil), wszreferralinfoname.param().abi(), wszreferralinfourl.param().abi(), core::mem::transmute(howner), wszissuancelicense.param().abi(), core::mem::transmute(hboundlicense), core::mem::transmute(phissuancelicense)).ok() + DRMCreateIssuanceLicense(core::mem::transmute(psttimefrom), core::mem::transmute(psttimeuntil), wszreferralinfoname.param().abi(), wszreferralinfourl.param().abi(), howner, wszissuancelicense.param().abi(), hboundlicense, core::mem::transmute(phissuancelicense)).ok() } #[inline] pub unsafe fn DRMCreateLicenseStorageSession(henv: u32, hdefaultlibrary: u32, hclient: u32, uflags: u32, wszissuancelicense: P4, phlicensestorage: *mut u32) -> windows_core::Result<()> @@ -152,7 +152,7 @@ where P4: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateLicenseStorageSession(henv : u32, hdefaultlibrary : u32, hclient : u32, uflags : u32, wszissuancelicense : windows_core::PCWSTR, phlicensestorage : *mut u32) -> windows_core::HRESULT); - DRMCreateLicenseStorageSession(core::mem::transmute(henv), core::mem::transmute(hdefaultlibrary), core::mem::transmute(hclient), core::mem::transmute(uflags), wszissuancelicense.param().abi(), core::mem::transmute(phlicensestorage)).ok() + DRMCreateLicenseStorageSession(henv, hdefaultlibrary, hclient, uflags, wszissuancelicense.param().abi(), core::mem::transmute(phlicensestorage)).ok() } #[inline] pub unsafe fn DRMCreateRight(wszrightname: P0, pstfrom: *mut super::super::Foundation::SYSTEMTIME, pstuntil: *mut super::super::Foundation::SYSTEMTIME, cextendedinfo: u32, pwszextendedinfoname: Option<*const windows_core::PCWSTR>, pwszextendedinfovalue: Option<*const windows_core::PCWSTR>, phright: *mut u32) -> windows_core::Result<()> @@ -160,7 +160,7 @@ where P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateRight(wszrightname : windows_core::PCWSTR, pstfrom : *mut super::super::Foundation:: SYSTEMTIME, pstuntil : *mut super::super::Foundation:: SYSTEMTIME, cextendedinfo : u32, pwszextendedinfoname : *const windows_core::PCWSTR, pwszextendedinfovalue : *const windows_core::PCWSTR, phright : *mut u32) -> windows_core::HRESULT); - DRMCreateRight(wszrightname.param().abi(), core::mem::transmute(pstfrom), core::mem::transmute(pstuntil), core::mem::transmute(cextendedinfo), core::mem::transmute(pwszextendedinfoname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwszextendedinfovalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(phright)).ok() + DRMCreateRight(wszrightname.param().abi(), core::mem::transmute(pstfrom), core::mem::transmute(pstuntil), cextendedinfo, core::mem::transmute(pwszextendedinfoname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwszextendedinfovalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(phright)).ok() } #[inline] pub unsafe fn DRMCreateUser(wszusername: P0, wszuserid: P1, wszuseridtype: P2, phuser: *mut u32) -> windows_core::Result<()> @@ -187,12 +187,12 @@ where P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMDeconstructCertificateChain(wszchain : windows_core::PCWSTR, iwhich : u32, pccert : *mut u32, wszcert : windows_core::PWSTR) -> windows_core::HRESULT); - DRMDeconstructCertificateChain(wszchain.param().abi(), core::mem::transmute(iwhich), core::mem::transmute(pccert), core::mem::transmute(wszcert.unwrap_or(core::mem::zeroed()))).ok() + DRMDeconstructCertificateChain(wszchain.param().abi(), iwhich, core::mem::transmute(pccert), core::mem::transmute(wszcert.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMDecrypt(hcryptoprovider: u32, iposition: u32, cnuminbytes: u32, pbindata: *mut u8, pcnumoutbytes: *mut u32, pboutdata: *mut u8) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMDecrypt(hcryptoprovider : u32, iposition : u32, cnuminbytes : u32, pbindata : *mut u8, pcnumoutbytes : *mut u32, pboutdata : *mut u8) -> windows_core::HRESULT); - DRMDecrypt(core::mem::transmute(hcryptoprovider), core::mem::transmute(iposition), core::mem::transmute(cnuminbytes), core::mem::transmute(pbindata), core::mem::transmute(pcnumoutbytes), core::mem::transmute(pboutdata)).ok() + DRMDecrypt(hcryptoprovider, iposition, cnuminbytes, core::mem::transmute(pbindata), core::mem::transmute(pcnumoutbytes), core::mem::transmute(pboutdata)).ok() } #[inline] pub unsafe fn DRMDeleteLicense(hsession: u32, wszlicenseid: P1) -> windows_core::Result<()> @@ -200,27 +200,27 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMDeleteLicense(hsession : u32, wszlicenseid : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMDeleteLicense(core::mem::transmute(hsession), wszlicenseid.param().abi()).ok() + DRMDeleteLicense(hsession, wszlicenseid.param().abi()).ok() } #[inline] pub unsafe fn DRMDuplicateEnvironmentHandle(htocopy: u32, phcopy: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMDuplicateEnvironmentHandle(htocopy : u32, phcopy : *mut u32) -> windows_core::HRESULT); - DRMDuplicateEnvironmentHandle(core::mem::transmute(htocopy), core::mem::transmute(phcopy)).ok() + DRMDuplicateEnvironmentHandle(htocopy, core::mem::transmute(phcopy)).ok() } #[inline] pub unsafe fn DRMDuplicateHandle(htocopy: u32, phcopy: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMDuplicateHandle(htocopy : u32, phcopy : *mut u32) -> windows_core::HRESULT); - DRMDuplicateHandle(core::mem::transmute(htocopy), core::mem::transmute(phcopy)).ok() + DRMDuplicateHandle(htocopy, core::mem::transmute(phcopy)).ok() } #[inline] pub unsafe fn DRMDuplicatePubHandle(hpubin: u32, phpubout: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMDuplicatePubHandle(hpubin : u32, phpubout : *mut u32) -> windows_core::HRESULT); - DRMDuplicatePubHandle(core::mem::transmute(hpubin), core::mem::transmute(phpubout)).ok() + DRMDuplicatePubHandle(hpubin, core::mem::transmute(phpubout)).ok() } #[inline] pub unsafe fn DRMDuplicateSession(hsessionin: u32, phsessionout: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMDuplicateSession(hsessionin : u32, phsessionout : *mut u32) -> windows_core::HRESULT); - DRMDuplicateSession(core::mem::transmute(hsessionin), core::mem::transmute(phsessionout)).ok() + DRMDuplicateSession(hsessionin, core::mem::transmute(phsessionout)).ok() } #[inline] pub unsafe fn DRMEncode(wszalgid: P0, udatalen: u32, pbdecodeddata: *mut u8, puencodedstringlen: *mut u32, wszencodedstring: Option) -> windows_core::Result<()> @@ -228,22 +228,22 @@ where P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMEncode(wszalgid : windows_core::PCWSTR, udatalen : u32, pbdecodeddata : *mut u8, puencodedstringlen : *mut u32, wszencodedstring : windows_core::PWSTR) -> windows_core::HRESULT); - DRMEncode(wszalgid.param().abi(), core::mem::transmute(udatalen), core::mem::transmute(pbdecodeddata), core::mem::transmute(puencodedstringlen), core::mem::transmute(wszencodedstring.unwrap_or(core::mem::zeroed()))).ok() + DRMEncode(wszalgid.param().abi(), udatalen, core::mem::transmute(pbdecodeddata), core::mem::transmute(puencodedstringlen), core::mem::transmute(wszencodedstring.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMEncrypt(hcryptoprovider: u32, iposition: u32, cnuminbytes: u32, pbindata: *mut u8, pcnumoutbytes: *mut u32, pboutdata: *mut u8) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMEncrypt(hcryptoprovider : u32, iposition : u32, cnuminbytes : u32, pbindata : *mut u8, pcnumoutbytes : *mut u32, pboutdata : *mut u8) -> windows_core::HRESULT); - DRMEncrypt(core::mem::transmute(hcryptoprovider), core::mem::transmute(iposition), core::mem::transmute(cnuminbytes), core::mem::transmute(pbindata), core::mem::transmute(pcnumoutbytes), core::mem::transmute(pboutdata)).ok() + DRMEncrypt(hcryptoprovider, iposition, cnuminbytes, core::mem::transmute(pbindata), core::mem::transmute(pcnumoutbytes), core::mem::transmute(pboutdata)).ok() } #[inline] pub unsafe fn DRMEnumerateLicense(hsession: u32, uflags: u32, uindex: u32, pfsharedflag: *mut super::super::Foundation::BOOL, pucertificatedatalen: *mut u32, wszcertificatedata: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMEnumerateLicense(hsession : u32, uflags : u32, uindex : u32, pfsharedflag : *mut super::super::Foundation:: BOOL, pucertificatedatalen : *mut u32, wszcertificatedata : windows_core::PWSTR) -> windows_core::HRESULT); - DRMEnumerateLicense(core::mem::transmute(hsession), core::mem::transmute(uflags), core::mem::transmute(uindex), core::mem::transmute(pfsharedflag), core::mem::transmute(pucertificatedatalen), core::mem::transmute(wszcertificatedata.unwrap_or(core::mem::zeroed()))).ok() + DRMEnumerateLicense(hsession, uflags, uindex, core::mem::transmute(pfsharedflag), core::mem::transmute(pucertificatedatalen), core::mem::transmute(wszcertificatedata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetApplicationSpecificData(hissuancelicense: u32, uindex: u32, punamelength: *mut u32, wszname: Option, puvaluelength: *mut u32, wszvalue: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetApplicationSpecificData(hissuancelicense : u32, uindex : u32, punamelength : *mut u32, wszname : windows_core::PWSTR, puvaluelength : *mut u32, wszvalue : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetApplicationSpecificData(core::mem::transmute(hissuancelicense), core::mem::transmute(uindex), core::mem::transmute(punamelength), core::mem::transmute(wszname.unwrap_or(core::mem::zeroed())), core::mem::transmute(puvaluelength), core::mem::transmute(wszvalue.unwrap_or(core::mem::zeroed()))).ok() + DRMGetApplicationSpecificData(hissuancelicense, uindex, core::mem::transmute(punamelength), core::mem::transmute(wszname.unwrap_or(core::mem::zeroed())), core::mem::transmute(puvaluelength), core::mem::transmute(wszvalue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseAttribute(hqueryroot: u32, wszattribute: P1, iwhich: u32, peencoding: *mut DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> @@ -251,7 +251,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetBoundLicenseAttribute(hqueryroot : u32, wszattribute : windows_core::PCWSTR, iwhich : u32, peencoding : *mut DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_core::HRESULT); - DRMGetBoundLicenseAttribute(core::mem::transmute(hqueryroot), wszattribute.param().abi(), core::mem::transmute(iwhich), core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() + DRMGetBoundLicenseAttribute(hqueryroot, wszattribute.param().abi(), iwhich, core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseAttributeCount(hqueryroot: u32, wszattribute: P1, pcattributes: *mut u32) -> windows_core::Result<()> @@ -259,7 +259,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetBoundLicenseAttributeCount(hqueryroot : u32, wszattribute : windows_core::PCWSTR, pcattributes : *mut u32) -> windows_core::HRESULT); - DRMGetBoundLicenseAttributeCount(core::mem::transmute(hqueryroot), wszattribute.param().abi(), core::mem::transmute(pcattributes)).ok() + DRMGetBoundLicenseAttributeCount(hqueryroot, wszattribute.param().abi(), core::mem::transmute(pcattributes)).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseObject(hqueryroot: u32, wszsubobjecttype: P1, iwhich: u32, phsubobject: *mut u32) -> windows_core::Result<()> @@ -267,7 +267,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetBoundLicenseObject(hqueryroot : u32, wszsubobjecttype : windows_core::PCWSTR, iwhich : u32, phsubobject : *mut u32) -> windows_core::HRESULT); - DRMGetBoundLicenseObject(core::mem::transmute(hqueryroot), wszsubobjecttype.param().abi(), core::mem::transmute(iwhich), core::mem::transmute(phsubobject)).ok() + DRMGetBoundLicenseObject(hqueryroot, wszsubobjecttype.param().abi(), iwhich, core::mem::transmute(phsubobject)).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseObjectCount(hqueryroot: u32, wszsubobjecttype: P1, pcsubobjects: *mut u32) -> windows_core::Result<()> @@ -275,7 +275,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetBoundLicenseObjectCount(hqueryroot : u32, wszsubobjecttype : windows_core::PCWSTR, pcsubobjects : *mut u32) -> windows_core::HRESULT); - DRMGetBoundLicenseObjectCount(core::mem::transmute(hqueryroot), wszsubobjecttype.param().abi(), core::mem::transmute(pcsubobjects)).ok() + DRMGetBoundLicenseObjectCount(hqueryroot, wszsubobjecttype.param().abi(), core::mem::transmute(pcsubobjects)).ok() } #[inline] pub unsafe fn DRMGetCertificateChainCount(wszchain: P0, pccertcount: *mut u32) -> windows_core::Result<()> @@ -296,7 +296,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetEnvironmentInfo(handle : u32, wszattribute : windows_core::PCWSTR, peencoding : *mut DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_core::HRESULT); - DRMGetEnvironmentInfo(core::mem::transmute(handle), wszattribute.param().abi(), core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() + DRMGetEnvironmentInfo(handle, wszattribute.param().abi(), core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() } #[inline] pub unsafe fn DRMGetInfo(handle: u32, wszattribute: P1, peencoding: *const DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> @@ -304,28 +304,28 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetInfo(handle : u32, wszattribute : windows_core::PCWSTR, peencoding : *const DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_core::HRESULT); - DRMGetInfo(core::mem::transmute(handle), wszattribute.param().abi(), core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() + DRMGetInfo(handle, wszattribute.param().abi(), peencoding, core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() } #[inline] pub unsafe fn DRMGetIntervalTime(hissuancelicense: u32, pcdays: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetIntervalTime(hissuancelicense : u32, pcdays : *mut u32) -> windows_core::HRESULT); - DRMGetIntervalTime(core::mem::transmute(hissuancelicense), core::mem::transmute(pcdays)).ok() + DRMGetIntervalTime(hissuancelicense, core::mem::transmute(pcdays)).ok() } #[inline] pub unsafe fn DRMGetIssuanceLicenseInfo(hissuancelicense: u32, psttimefrom: *mut super::super::Foundation::SYSTEMTIME, psttimeuntil: *mut super::super::Foundation::SYSTEMTIME, uflags: u32, pudistributionpointnamelength: *mut u32, wszdistributionpointname: Option, pudistributionpointurllength: *mut u32, wszdistributionpointurl: Option, phowner: *mut u32, pfofficial: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetIssuanceLicenseInfo(hissuancelicense : u32, psttimefrom : *mut super::super::Foundation:: SYSTEMTIME, psttimeuntil : *mut super::super::Foundation:: SYSTEMTIME, uflags : u32, pudistributionpointnamelength : *mut u32, wszdistributionpointname : windows_core::PWSTR, pudistributionpointurllength : *mut u32, wszdistributionpointurl : windows_core::PWSTR, phowner : *mut u32, pfofficial : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DRMGetIssuanceLicenseInfo(core::mem::transmute(hissuancelicense), core::mem::transmute(psttimefrom), core::mem::transmute(psttimeuntil), core::mem::transmute(uflags), core::mem::transmute(pudistributionpointnamelength), core::mem::transmute(wszdistributionpointname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pudistributionpointurllength), core::mem::transmute(wszdistributionpointurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(phowner), core::mem::transmute(pfofficial)).ok() + DRMGetIssuanceLicenseInfo(hissuancelicense, core::mem::transmute(psttimefrom), core::mem::transmute(psttimeuntil), uflags, core::mem::transmute(pudistributionpointnamelength), core::mem::transmute(wszdistributionpointname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pudistributionpointurllength), core::mem::transmute(wszdistributionpointurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(phowner), core::mem::transmute(pfofficial)).ok() } #[inline] pub unsafe fn DRMGetIssuanceLicenseTemplate(hissuancelicense: u32, puissuancelicensetemplatelength: *mut u32, wszissuancelicensetemplate: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetIssuanceLicenseTemplate(hissuancelicense : u32, puissuancelicensetemplatelength : *mut u32, wszissuancelicensetemplate : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetIssuanceLicenseTemplate(core::mem::transmute(hissuancelicense), core::mem::transmute(puissuancelicensetemplatelength), core::mem::transmute(wszissuancelicensetemplate.unwrap_or(core::mem::zeroed()))).ok() + DRMGetIssuanceLicenseTemplate(hissuancelicense, core::mem::transmute(puissuancelicensetemplatelength), core::mem::transmute(wszissuancelicensetemplate.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetMetaData(hissuancelicense: u32, pucontentidlength: *mut u32, wszcontentid: Option, pucontentidtypelength: *mut u32, wszcontentidtype: Option, puskuidlength: *mut u32, wszskuid: Option, puskuidtypelength: *mut u32, wszskuidtype: Option, pucontenttypelength: *mut u32, wszcontenttype: Option, pucontentnamelength: *mut u32, wszcontentname: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetMetaData(hissuancelicense : u32, pucontentidlength : *mut u32, wszcontentid : windows_core::PWSTR, pucontentidtypelength : *mut u32, wszcontentidtype : windows_core::PWSTR, puskuidlength : *mut u32, wszskuid : windows_core::PWSTR, puskuidtypelength : *mut u32, wszskuidtype : windows_core::PWSTR, pucontenttypelength : *mut u32, wszcontenttype : windows_core::PWSTR, pucontentnamelength : *mut u32, wszcontentname : windows_core::PWSTR) -> windows_core::HRESULT); DRMGetMetaData( - core::mem::transmute(hissuancelicense), + hissuancelicense, core::mem::transmute(pucontentidlength), core::mem::transmute(wszcontentid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pucontentidtypelength), @@ -344,12 +344,12 @@ pub unsafe fn DRMGetMetaData(hissuancelicense: u32, pucontentidlength: *mut u32, #[inline] pub unsafe fn DRMGetNameAndDescription(hissuancelicense: u32, uindex: u32, pulcid: *mut u32, punamelength: *mut u32, wszname: Option, pudescriptionlength: *mut u32, wszdescription: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetNameAndDescription(hissuancelicense : u32, uindex : u32, pulcid : *mut u32, punamelength : *mut u32, wszname : windows_core::PWSTR, pudescriptionlength : *mut u32, wszdescription : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetNameAndDescription(core::mem::transmute(hissuancelicense), core::mem::transmute(uindex), core::mem::transmute(pulcid), core::mem::transmute(punamelength), core::mem::transmute(wszname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pudescriptionlength), core::mem::transmute(wszdescription.unwrap_or(core::mem::zeroed()))).ok() + DRMGetNameAndDescription(hissuancelicense, uindex, core::mem::transmute(pulcid), core::mem::transmute(punamelength), core::mem::transmute(wszname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pudescriptionlength), core::mem::transmute(wszdescription.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetOwnerLicense(hissuancelicense: u32, puownerlicenselength: *mut u32, wszownerlicense: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetOwnerLicense(hissuancelicense : u32, puownerlicenselength : *mut u32, wszownerlicense : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetOwnerLicense(core::mem::transmute(hissuancelicense), core::mem::transmute(puownerlicenselength), core::mem::transmute(wszownerlicense.unwrap_or(core::mem::zeroed()))).ok() + DRMGetOwnerLicense(hissuancelicense, core::mem::transmute(puownerlicenselength), core::mem::transmute(wszownerlicense.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetProcAddress(hlibrary: u32, wszprocname: P1, ppfnprocaddress: *mut super::super::Foundation::FARPROC) -> windows_core::Result<()> @@ -357,13 +357,13 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetProcAddress(hlibrary : u32, wszprocname : windows_core::PCWSTR, ppfnprocaddress : *mut super::super::Foundation:: FARPROC) -> windows_core::HRESULT); - DRMGetProcAddress(core::mem::transmute(hlibrary), wszprocname.param().abi(), core::mem::transmute(ppfnprocaddress)).ok() + DRMGetProcAddress(hlibrary, wszprocname.param().abi(), core::mem::transmute(ppfnprocaddress)).ok() } #[inline] pub unsafe fn DRMGetRevocationPoint(hissuancelicense: u32, puidlength: *mut u32, wszid: Option, puidtypelength: *mut u32, wszidtype: Option, puurllength: *mut u32, wszrl: Option, pstfrequency: *mut super::super::Foundation::SYSTEMTIME, punamelength: *mut u32, wszname: Option, pupublickeylength: *mut u32, wszpublickey: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetRevocationPoint(hissuancelicense : u32, puidlength : *mut u32, wszid : windows_core::PWSTR, puidtypelength : *mut u32, wszidtype : windows_core::PWSTR, puurllength : *mut u32, wszrl : windows_core::PWSTR, pstfrequency : *mut super::super::Foundation:: SYSTEMTIME, punamelength : *mut u32, wszname : windows_core::PWSTR, pupublickeylength : *mut u32, wszpublickey : windows_core::PWSTR) -> windows_core::HRESULT); DRMGetRevocationPoint( - core::mem::transmute(hissuancelicense), + hissuancelicense, core::mem::transmute(puidlength), core::mem::transmute(wszid.unwrap_or(core::mem::zeroed())), core::mem::transmute(puidtypelength), @@ -381,17 +381,17 @@ pub unsafe fn DRMGetRevocationPoint(hissuancelicense: u32, puidlength: *mut u32, #[inline] pub unsafe fn DRMGetRightExtendedInfo(hright: u32, uindex: u32, puextendedinfonamelength: *mut u32, wszextendedinfoname: Option, puextendedinfovaluelength: *mut u32, wszextendedinfovalue: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetRightExtendedInfo(hright : u32, uindex : u32, puextendedinfonamelength : *mut u32, wszextendedinfoname : windows_core::PWSTR, puextendedinfovaluelength : *mut u32, wszextendedinfovalue : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetRightExtendedInfo(core::mem::transmute(hright), core::mem::transmute(uindex), core::mem::transmute(puextendedinfonamelength), core::mem::transmute(wszextendedinfoname.unwrap_or(core::mem::zeroed())), core::mem::transmute(puextendedinfovaluelength), core::mem::transmute(wszextendedinfovalue.unwrap_or(core::mem::zeroed()))).ok() + DRMGetRightExtendedInfo(hright, uindex, core::mem::transmute(puextendedinfonamelength), core::mem::transmute(wszextendedinfoname.unwrap_or(core::mem::zeroed())), core::mem::transmute(puextendedinfovaluelength), core::mem::transmute(wszextendedinfovalue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetRightInfo(hright: u32, purightnamelength: *mut u32, wszrightname: Option, pstfrom: *mut super::super::Foundation::SYSTEMTIME, pstuntil: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetRightInfo(hright : u32, purightnamelength : *mut u32, wszrightname : windows_core::PWSTR, pstfrom : *mut super::super::Foundation:: SYSTEMTIME, pstuntil : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::HRESULT); - DRMGetRightInfo(core::mem::transmute(hright), core::mem::transmute(purightnamelength), core::mem::transmute(wszrightname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstfrom), core::mem::transmute(pstuntil)).ok() + DRMGetRightInfo(hright, core::mem::transmute(purightnamelength), core::mem::transmute(wszrightname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstfrom), core::mem::transmute(pstuntil)).ok() } #[inline] pub unsafe fn DRMGetSecurityProvider(uflags: u32, putypelen: *mut u32, wsztype: Option, pupathlen: *mut u32, wszpath: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetSecurityProvider(uflags : u32, putypelen : *mut u32, wsztype : windows_core::PWSTR, pupathlen : *mut u32, wszpath : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetSecurityProvider(core::mem::transmute(uflags), core::mem::transmute(putypelen), core::mem::transmute(wsztype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pupathlen), core::mem::transmute(wszpath.unwrap_or(core::mem::zeroed()))).ok() + DRMGetSecurityProvider(uflags, core::mem::transmute(putypelen), core::mem::transmute(wsztype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pupathlen), core::mem::transmute(wszpath.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetServiceLocation(hclient: u32, uservicetype: u32, uservicelocation: u32, wszissuancelicense: P3, puserviceurllength: *mut u32, wszserviceurl: Option) -> windows_core::Result<()> @@ -399,7 +399,7 @@ where P3: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetServiceLocation(hclient : u32, uservicetype : u32, uservicelocation : u32, wszissuancelicense : windows_core::PCWSTR, puserviceurllength : *mut u32, wszserviceurl : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetServiceLocation(core::mem::transmute(hclient), core::mem::transmute(uservicetype), core::mem::transmute(uservicelocation), wszissuancelicense.param().abi(), core::mem::transmute(puserviceurllength), core::mem::transmute(wszserviceurl.unwrap_or(core::mem::zeroed()))).ok() + DRMGetServiceLocation(hclient, uservicetype, uservicelocation, wszissuancelicense.param().abi(), core::mem::transmute(puserviceurllength), core::mem::transmute(wszserviceurl.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetSignedIssuanceLicense(henv: u32, hissuancelicense: u32, uflags: u32, pbsymkey: *mut u8, cbsymkey: u32, wszsymkeytype: P5, wszclientlicensorcertificate: P6, pfncallback: DRMCALLBACK, wszurl: P8, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -409,7 +409,7 @@ where P8: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetSignedIssuanceLicense(henv : u32, hissuancelicense : u32, uflags : u32, pbsymkey : *mut u8, cbsymkey : u32, wszsymkeytype : windows_core::PCWSTR, wszclientlicensorcertificate : windows_core::PCWSTR, pfncallback : DRMCALLBACK, wszurl : windows_core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - DRMGetSignedIssuanceLicense(core::mem::transmute(henv), core::mem::transmute(hissuancelicense), core::mem::transmute(uflags), core::mem::transmute(pbsymkey), core::mem::transmute(cbsymkey), wszsymkeytype.param().abi(), wszclientlicensorcertificate.param().abi(), core::mem::transmute(pfncallback), wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() + DRMGetSignedIssuanceLicense(henv, hissuancelicense, uflags, core::mem::transmute(pbsymkey), cbsymkey, wszsymkeytype.param().abi(), wszclientlicensorcertificate.param().abi(), pfncallback, wszurl.param().abi(), core::mem::transmute(pvcontext)).ok() } #[inline] pub unsafe fn DRMGetSignedIssuanceLicenseEx(henv: u32, hissuancelicense: u32, uflags: u32, pbsymkey: Option<&[u8]>, wszsymkeytype: P5, pvreserved: Option<*const core::ffi::c_void>, henablingprincipal: u32, hboundlicenseclc: u32, pfncallback: DRMCALLBACK, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> @@ -417,25 +417,12 @@ where P5: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetSignedIssuanceLicenseEx(henv : u32, hissuancelicense : u32, uflags : u32, pbsymkey : *const u8, cbsymkey : u32, wszsymkeytype : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, henablingprincipal : u32, hboundlicenseclc : u32, pfncallback : DRMCALLBACK, pvcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DRMGetSignedIssuanceLicenseEx( - core::mem::transmute(henv), - core::mem::transmute(hissuancelicense), - core::mem::transmute(uflags), - core::mem::transmute(pbsymkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbsymkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - wszsymkeytype.param().abi(), - core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), - core::mem::transmute(henablingprincipal), - core::mem::transmute(hboundlicenseclc), - core::mem::transmute(pfncallback), - core::mem::transmute(pvcontext), - ) - .ok() + DRMGetSignedIssuanceLicenseEx(henv, hissuancelicense, uflags, core::mem::transmute(pbsymkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsymkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), wszsymkeytype.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), henablingprincipal, hboundlicenseclc, pfncallback, pvcontext).ok() } #[inline] pub unsafe fn DRMGetTime(henv: u32, etimeridtype: DRMTIMETYPE, potimeobject: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetTime(henv : u32, etimeridtype : DRMTIMETYPE, potimeobject : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::HRESULT); - DRMGetTime(core::mem::transmute(henv), core::mem::transmute(etimeridtype), core::mem::transmute(potimeobject)).ok() + DRMGetTime(henv, etimeridtype, core::mem::transmute(potimeobject)).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseAttribute(hqueryroot: u32, wszattributetype: P1, iwhich: u32, peencoding: *mut DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> @@ -443,7 +430,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseAttribute(hqueryroot : u32, wszattributetype : windows_core::PCWSTR, iwhich : u32, peencoding : *mut DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_core::HRESULT); - DRMGetUnboundLicenseAttribute(core::mem::transmute(hqueryroot), wszattributetype.param().abi(), core::mem::transmute(iwhich), core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() + DRMGetUnboundLicenseAttribute(hqueryroot, wszattributetype.param().abi(), iwhich, core::mem::transmute(peencoding), core::mem::transmute(pcbuffer), core::mem::transmute(pbbuffer)).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseAttributeCount(hqueryroot: u32, wszattributetype: P1, pcattributes: *mut u32) -> windows_core::Result<()> @@ -451,7 +438,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseAttributeCount(hqueryroot : u32, wszattributetype : windows_core::PCWSTR, pcattributes : *mut u32) -> windows_core::HRESULT); - DRMGetUnboundLicenseAttributeCount(core::mem::transmute(hqueryroot), wszattributetype.param().abi(), core::mem::transmute(pcattributes)).ok() + DRMGetUnboundLicenseAttributeCount(hqueryroot, wszattributetype.param().abi(), core::mem::transmute(pcattributes)).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseObject(hqueryroot: u32, wszsubobjecttype: P1, iindex: u32, phsubquery: *mut u32) -> windows_core::Result<()> @@ -459,7 +446,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseObject(hqueryroot : u32, wszsubobjecttype : windows_core::PCWSTR, iindex : u32, phsubquery : *mut u32) -> windows_core::HRESULT); - DRMGetUnboundLicenseObject(core::mem::transmute(hqueryroot), wszsubobjecttype.param().abi(), core::mem::transmute(iindex), core::mem::transmute(phsubquery)).ok() + DRMGetUnboundLicenseObject(hqueryroot, wszsubobjecttype.param().abi(), iindex, core::mem::transmute(phsubquery)).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseObjectCount(hqueryroot: u32, wszsubobjecttype: P1, pcsubobjects: *mut u32) -> windows_core::Result<()> @@ -467,14 +454,14 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseObjectCount(hqueryroot : u32, wszsubobjecttype : windows_core::PCWSTR, pcsubobjects : *mut u32) -> windows_core::HRESULT); - DRMGetUnboundLicenseObjectCount(core::mem::transmute(hqueryroot), wszsubobjecttype.param().abi(), core::mem::transmute(pcsubobjects)).ok() + DRMGetUnboundLicenseObjectCount(hqueryroot, wszsubobjecttype.param().abi(), core::mem::transmute(pcsubobjects)).ok() } #[inline] pub unsafe fn DRMGetUsagePolicy(hissuancelicense: u32, uindex: u32, peusagepolicytype: *mut DRM_USAGEPOLICY_TYPE, pfexclusion: *mut super::super::Foundation::BOOL, punamelength: *mut u32, wszname: Option, puminversionlength: *mut u32, wszminversion: Option, pumaxversionlength: *mut u32, wszmaxversion: Option, pupublickeylength: *mut u32, wszpublickey: Option, pudigestalgorithmlength: *mut u32, wszdigestalgorithm: Option, pcbdigest: *mut u32, pbdigest: *mut u8) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetUsagePolicy(hissuancelicense : u32, uindex : u32, peusagepolicytype : *mut DRM_USAGEPOLICY_TYPE, pfexclusion : *mut super::super::Foundation:: BOOL, punamelength : *mut u32, wszname : windows_core::PWSTR, puminversionlength : *mut u32, wszminversion : windows_core::PWSTR, pumaxversionlength : *mut u32, wszmaxversion : windows_core::PWSTR, pupublickeylength : *mut u32, wszpublickey : windows_core::PWSTR, pudigestalgorithmlength : *mut u32, wszdigestalgorithm : windows_core::PWSTR, pcbdigest : *mut u32, pbdigest : *mut u8) -> windows_core::HRESULT); DRMGetUsagePolicy( - core::mem::transmute(hissuancelicense), - core::mem::transmute(uindex), + hissuancelicense, + uindex, core::mem::transmute(peusagepolicytype), core::mem::transmute(pfexclusion), core::mem::transmute(punamelength), @@ -495,17 +482,17 @@ pub unsafe fn DRMGetUsagePolicy(hissuancelicense: u32, uindex: u32, peusagepolic #[inline] pub unsafe fn DRMGetUserInfo(huser: u32, puusernamelength: *mut u32, wszusername: Option, puuseridlength: *mut u32, wszuserid: Option, puuseridtypelength: *mut u32, wszuseridtype: Option) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetUserInfo(huser : u32, puusernamelength : *mut u32, wszusername : windows_core::PWSTR, puuseridlength : *mut u32, wszuserid : windows_core::PWSTR, puuseridtypelength : *mut u32, wszuseridtype : windows_core::PWSTR) -> windows_core::HRESULT); - DRMGetUserInfo(core::mem::transmute(huser), core::mem::transmute(puusernamelength), core::mem::transmute(wszusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(puuseridlength), core::mem::transmute(wszuserid.unwrap_or(core::mem::zeroed())), core::mem::transmute(puuseridtypelength), core::mem::transmute(wszuseridtype.unwrap_or(core::mem::zeroed()))).ok() + DRMGetUserInfo(huser, core::mem::transmute(puusernamelength), core::mem::transmute(wszusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(puuseridlength), core::mem::transmute(wszuserid.unwrap_or(core::mem::zeroed())), core::mem::transmute(puuseridtypelength), core::mem::transmute(wszuseridtype.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DRMGetUserRights(hissuancelicense: u32, huser: u32, uindex: u32, phright: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetUserRights(hissuancelicense : u32, huser : u32, uindex : u32, phright : *mut u32) -> windows_core::HRESULT); - DRMGetUserRights(core::mem::transmute(hissuancelicense), core::mem::transmute(huser), core::mem::transmute(uindex), core::mem::transmute(phright)).ok() + DRMGetUserRights(hissuancelicense, huser, uindex, core::mem::transmute(phright)).ok() } #[inline] pub unsafe fn DRMGetUsers(hissuancelicense: u32, uindex: u32, phuser: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMGetUsers(hissuancelicense : u32, uindex : u32, phuser : *mut u32) -> windows_core::HRESULT); - DRMGetUsers(core::mem::transmute(hissuancelicense), core::mem::transmute(uindex), core::mem::transmute(phuser)).ok() + DRMGetUsers(hissuancelicense, uindex, core::mem::transmute(phuser)).ok() } #[inline] pub unsafe fn DRMInitEnvironment(esecurityprovidertype: DRMSECURITYPROVIDERTYPE, especification: DRMSPECTYPE, wszsecurityprovider: P2, wszmanifestcredentials: P3, wszmachinecredentials: P4, phenv: *mut u32, phdefaultlibrary: *mut u32) -> windows_core::Result<()> @@ -515,17 +502,17 @@ where P4: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMInitEnvironment(esecurityprovidertype : DRMSECURITYPROVIDERTYPE, especification : DRMSPECTYPE, wszsecurityprovider : windows_core::PCWSTR, wszmanifestcredentials : windows_core::PCWSTR, wszmachinecredentials : windows_core::PCWSTR, phenv : *mut u32, phdefaultlibrary : *mut u32) -> windows_core::HRESULT); - DRMInitEnvironment(core::mem::transmute(esecurityprovidertype), core::mem::transmute(especification), wszsecurityprovider.param().abi(), wszmanifestcredentials.param().abi(), wszmachinecredentials.param().abi(), core::mem::transmute(phenv), core::mem::transmute(phdefaultlibrary)).ok() + DRMInitEnvironment(esecurityprovidertype, especification, wszsecurityprovider.param().abi(), wszmanifestcredentials.param().abi(), wszmachinecredentials.param().abi(), core::mem::transmute(phenv), core::mem::transmute(phdefaultlibrary)).ok() } #[inline] pub unsafe fn DRMIsActivated(hclient: u32, uflags: u32, pactservinfo: *mut DRM_ACTSERV_INFO) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMIsActivated(hclient : u32, uflags : u32, pactservinfo : *mut DRM_ACTSERV_INFO) -> windows_core::HRESULT); - DRMIsActivated(core::mem::transmute(hclient), core::mem::transmute(uflags), core::mem::transmute(pactservinfo)).ok() + DRMIsActivated(hclient, uflags, core::mem::transmute(pactservinfo)).ok() } #[inline] pub unsafe fn DRMIsWindowProtected(hwnd: super::super::Foundation::HWND, pfprotected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMIsWindowProtected(hwnd : super::super::Foundation:: HWND, pfprotected : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DRMIsWindowProtected(core::mem::transmute(hwnd), core::mem::transmute(pfprotected)).ok() + DRMIsWindowProtected(hwnd, core::mem::transmute(pfprotected)).ok() } #[inline] pub unsafe fn DRMLoadLibrary(henv: u32, especification: DRMSPECTYPE, wszlibraryprovider: P2, wszcredentials: P3, phlibrary: *mut u32) -> windows_core::Result<()> @@ -534,7 +521,7 @@ where P3: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMLoadLibrary(henv : u32, especification : DRMSPECTYPE, wszlibraryprovider : windows_core::PCWSTR, wszcredentials : windows_core::PCWSTR, phlibrary : *mut u32) -> windows_core::HRESULT); - DRMLoadLibrary(core::mem::transmute(henv), core::mem::transmute(especification), wszlibraryprovider.param().abi(), wszcredentials.param().abi(), core::mem::transmute(phlibrary)).ok() + DRMLoadLibrary(henv, especification, wszlibraryprovider.param().abi(), wszcredentials.param().abi(), core::mem::transmute(phlibrary)).ok() } #[inline] pub unsafe fn DRMParseUnboundLicense(wszcertificate: P0, phqueryroot: *mut u32) -> windows_core::Result<()> @@ -552,7 +539,7 @@ pub unsafe fn DRMRegisterContent(fregister: bool) -> windows_core::Result<()> { #[inline] pub unsafe fn DRMRegisterProtectedWindow(henv: u32, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMRegisterProtectedWindow(henv : u32, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DRMRegisterProtectedWindow(core::mem::transmute(henv), core::mem::transmute(hwnd)).ok() + DRMRegisterProtectedWindow(henv, hwnd).ok() } #[inline] pub unsafe fn DRMRegisterRevocationList(henv: u32, wszrevocationlist: P1) -> windows_core::Result<()> @@ -560,7 +547,7 @@ where P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMRegisterRevocationList(henv : u32, wszrevocationlist : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMRegisterRevocationList(core::mem::transmute(henv), wszrevocationlist.param().abi()).ok() + DRMRegisterRevocationList(henv, wszrevocationlist.param().abi()).ok() } #[inline] pub unsafe fn DRMRepair() -> windows_core::Result<()> { @@ -574,17 +561,17 @@ where P3: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMSetApplicationSpecificData(hissuancelicense : u32, fdelete : super::super::Foundation:: BOOL, wszname : windows_core::PCWSTR, wszvalue : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMSetApplicationSpecificData(core::mem::transmute(hissuancelicense), fdelete.into(), wszname.param().abi(), wszvalue.param().abi()).ok() + DRMSetApplicationSpecificData(hissuancelicense, fdelete.into(), wszname.param().abi(), wszvalue.param().abi()).ok() } #[inline] pub unsafe fn DRMSetGlobalOptions(eglobaloptions: DRMGLOBALOPTIONS, pvdata: *mut core::ffi::c_void, dwlen: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMSetGlobalOptions(eglobaloptions : DRMGLOBALOPTIONS, pvdata : *mut core::ffi::c_void, dwlen : u32) -> windows_core::HRESULT); - DRMSetGlobalOptions(core::mem::transmute(eglobaloptions), core::mem::transmute(pvdata), core::mem::transmute(dwlen)).ok() + DRMSetGlobalOptions(eglobaloptions, core::mem::transmute(pvdata), dwlen).ok() } #[inline] pub unsafe fn DRMSetIntervalTime(hissuancelicense: u32, cdays: u32) -> windows_core::Result<()> { windows_targets::link!("msdrm.dll" "system" fn DRMSetIntervalTime(hissuancelicense : u32, cdays : u32) -> windows_core::HRESULT); - DRMSetIntervalTime(core::mem::transmute(hissuancelicense), core::mem::transmute(cdays)).ok() + DRMSetIntervalTime(hissuancelicense, cdays).ok() } #[inline] pub unsafe fn DRMSetMetaData(hissuancelicense: u32, wszcontentid: P1, wszcontentidtype: P2, wszskuid: P3, wszskuidtype: P4, wszcontenttype: P5, wszcontentname: P6) -> windows_core::Result<()> @@ -597,7 +584,7 @@ where P6: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMSetMetaData(hissuancelicense : u32, wszcontentid : windows_core::PCWSTR, wszcontentidtype : windows_core::PCWSTR, wszskuid : windows_core::PCWSTR, wszskuidtype : windows_core::PCWSTR, wszcontenttype : windows_core::PCWSTR, wszcontentname : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMSetMetaData(core::mem::transmute(hissuancelicense), wszcontentid.param().abi(), wszcontentidtype.param().abi(), wszskuid.param().abi(), wszskuidtype.param().abi(), wszcontenttype.param().abi(), wszcontentname.param().abi()).ok() + DRMSetMetaData(hissuancelicense, wszcontentid.param().abi(), wszcontentidtype.param().abi(), wszskuid.param().abi(), wszskuidtype.param().abi(), wszcontenttype.param().abi(), wszcontentname.param().abi()).ok() } #[inline] pub unsafe fn DRMSetNameAndDescription(hissuancelicense: u32, fdelete: bool, lcid: u32, wszname: P3, wszdescription: P4) -> windows_core::Result<()> @@ -606,7 +593,7 @@ where P4: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMSetNameAndDescription(hissuancelicense : u32, fdelete : super::super::Foundation:: BOOL, lcid : u32, wszname : windows_core::PCWSTR, wszdescription : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMSetNameAndDescription(core::mem::transmute(hissuancelicense), fdelete.into(), core::mem::transmute(lcid), wszname.param().abi(), wszdescription.param().abi()).ok() + DRMSetNameAndDescription(hissuancelicense, fdelete.into(), lcid, wszname.param().abi(), wszdescription.param().abi()).ok() } #[inline] pub unsafe fn DRMSetRevocationPoint(hissuancelicense: u32, fdelete: bool, wszid: P2, wszidtype: P3, wszurl: P4, pstfrequency: *mut super::super::Foundation::SYSTEMTIME, wszname: P6, wszpublickey: P7) -> windows_core::Result<()> @@ -618,7 +605,7 @@ where P7: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMSetRevocationPoint(hissuancelicense : u32, fdelete : super::super::Foundation:: BOOL, wszid : windows_core::PCWSTR, wszidtype : windows_core::PCWSTR, wszurl : windows_core::PCWSTR, pstfrequency : *mut super::super::Foundation:: SYSTEMTIME, wszname : windows_core::PCWSTR, wszpublickey : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMSetRevocationPoint(core::mem::transmute(hissuancelicense), fdelete.into(), wszid.param().abi(), wszidtype.param().abi(), wszurl.param().abi(), core::mem::transmute(pstfrequency), wszname.param().abi(), wszpublickey.param().abi()).ok() + DRMSetRevocationPoint(hissuancelicense, fdelete.into(), wszid.param().abi(), wszidtype.param().abi(), wszurl.param().abi(), core::mem::transmute(pstfrequency), wszname.param().abi(), wszpublickey.param().abi()).ok() } #[inline] pub unsafe fn DRMSetUsagePolicy(hissuancelicense: u32, eusagepolicytype: DRM_USAGEPOLICY_TYPE, fdelete: bool, fexclusion: bool, wszname: P4, wszminversion: P5, wszmaxversion: P6, wszpublickey: P7, wszdigestalgorithm: P8, pbdigest: *mut u8, cbdigest: u32) -> windows_core::Result<()> @@ -630,7 +617,7 @@ where P8: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMSetUsagePolicy(hissuancelicense : u32, eusagepolicytype : DRM_USAGEPOLICY_TYPE, fdelete : super::super::Foundation:: BOOL, fexclusion : super::super::Foundation:: BOOL, wszname : windows_core::PCWSTR, wszminversion : windows_core::PCWSTR, wszmaxversion : windows_core::PCWSTR, wszpublickey : windows_core::PCWSTR, wszdigestalgorithm : windows_core::PCWSTR, pbdigest : *mut u8, cbdigest : u32) -> windows_core::HRESULT); - DRMSetUsagePolicy(core::mem::transmute(hissuancelicense), core::mem::transmute(eusagepolicytype), fdelete.into(), fexclusion.into(), wszname.param().abi(), wszminversion.param().abi(), wszmaxversion.param().abi(), wszpublickey.param().abi(), wszdigestalgorithm.param().abi(), core::mem::transmute(pbdigest), core::mem::transmute(cbdigest)).ok() + DRMSetUsagePolicy(hissuancelicense, eusagepolicytype, fdelete.into(), fexclusion.into(), wszname.param().abi(), wszminversion.param().abi(), wszmaxversion.param().abi(), wszpublickey.param().abi(), wszdigestalgorithm.param().abi(), core::mem::transmute(pbdigest), cbdigest).ok() } #[inline] pub unsafe fn DRMVerify(wszdata: P0, pcattesteddata: *mut u32, wszattesteddata: Option, petype: *mut DRMATTESTTYPE, pcprincipal: *mut u32, wszprincipal: Option, pcmanifest: *mut u32, wszmanifest: Option) -> windows_core::Result<()> diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs index 4c763567bd..de9fb5d676 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs @@ -574,35 +574,35 @@ impl IMXAttributes { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn addAttributeFromIndex(&self, varatts: &super::super::super::System::Variant::VARIANT, nindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addAttributeFromIndex)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varatts), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).addAttributeFromIndex)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varatts), nindex).ok() } pub unsafe fn clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn removeAttribute(&self, nindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), nindex).ok() } pub unsafe fn setAttribute(&self, nindex: i32, struri: &windows_core::BSTR, strlocalname: &windows_core::BSTR, strqname: &windows_core::BSTR, strtype: &windows_core::BSTR, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(struri), core::mem::transmute_copy(strlocalname), core::mem::transmute_copy(strqname), core::mem::transmute_copy(strtype), core::mem::transmute_copy(strvalue)).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(struri), core::mem::transmute_copy(strlocalname), core::mem::transmute_copy(strqname), core::mem::transmute_copy(strtype), core::mem::transmute_copy(strvalue)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn setAttributes(&self, varatts: &super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).setAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varatts)).ok() } pub unsafe fn setLocalName(&self, nindex: i32, strlocalname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setLocalName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(strlocalname)).ok() + (windows_core::Interface::vtable(self).setLocalName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(strlocalname)).ok() } pub unsafe fn setQName(&self, nindex: i32, strqname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setQName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(strqname)).ok() + (windows_core::Interface::vtable(self).setQName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(strqname)).ok() } pub unsafe fn setType(&self, nindex: i32, strtype: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setType)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(strtype)).ok() + (windows_core::Interface::vtable(self).setType)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(strtype)).ok() } pub unsafe fn setURI(&self, nindex: i32, struri: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setURI)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(struri)).ok() + (windows_core::Interface::vtable(self).setURI)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(struri)).ok() } pub unsafe fn setValue(&self, nindex: i32, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setValue)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(strvalue)).ok() + (windows_core::Interface::vtable(self).setValue)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(strvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -713,7 +713,7 @@ windows_core::imp::define_interface!(IMXNamespaceManager, IMXNamespaceManager_Vt windows_core::imp::interface_hierarchy!(IMXNamespaceManager, windows_core::IUnknown); impl IMXNamespaceManager { pub unsafe fn putAllowOverride(&self, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).putAllowOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(foverride)).ok() + (windows_core::Interface::vtable(self).putAllowOverride)(windows_core::Interface::as_raw(self), foverride).ok() } pub unsafe fn getAllowOverride(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -730,7 +730,7 @@ impl IMXNamespaceManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.param().abi(), core::mem::transmute(fdeep)).ok() + (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.param().abi(), fdeep).ok() } pub unsafe fn popContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).popContext)(windows_core::Interface::as_raw(self)).ok() @@ -743,13 +743,13 @@ impl IMXNamespaceManager { (windows_core::Interface::vtable(self).declarePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi(), namespaceuri.param().abi()).ok() } pub unsafe fn getDeclaredPrefix(&self, nindex: i32, pwchprefix: windows_core::PWSTR, pcchprefix: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getDeclaredPrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(pwchprefix), core::mem::transmute(pcchprefix)).ok() + (windows_core::Interface::vtable(self).getDeclaredPrefix)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(pwchprefix), core::mem::transmute(pcchprefix)).ok() } pub unsafe fn getPrefix(&self, pwsznamespaceuri: P0, nindex: i32, pwchprefix: windows_core::PWSTR, pcchprefix: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getPrefix)(windows_core::Interface::as_raw(self), pwsznamespaceuri.param().abi(), core::mem::transmute(nindex), core::mem::transmute(pwchprefix), core::mem::transmute(pcchprefix)).ok() + (windows_core::Interface::vtable(self).getPrefix)(windows_core::Interface::as_raw(self), pwsznamespaceuri.param().abi(), nindex, core::mem::transmute(pwchprefix), core::mem::transmute(pcchprefix)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getURI(&self, pwchprefix: P0, pcontextnode: P1, pwchuri: windows_core::PWSTR, pcchuri: *mut i32) -> windows_core::Result<()> @@ -877,7 +877,7 @@ windows_core::imp::interface_hierarchy!(IMXNamespacePrefixes, windows_core::IUnk impl IMXNamespacePrefixes { pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1088,28 +1088,28 @@ impl IMXWriter { (windows_core::Interface::vtable(self).encoding)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetbyteOrderMark(&self, fwritebyteordermark: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetbyteOrderMark)(windows_core::Interface::as_raw(self), core::mem::transmute(fwritebyteordermark)).ok() + (windows_core::Interface::vtable(self).SetbyteOrderMark)(windows_core::Interface::as_raw(self), fwritebyteordermark).ok() } pub unsafe fn byteOrderMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).byteOrderMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Setindent(&self, findentmode: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setindent)(windows_core::Interface::as_raw(self), core::mem::transmute(findentmode)).ok() + (windows_core::Interface::vtable(self).Setindent)(windows_core::Interface::as_raw(self), findentmode).ok() } pub unsafe fn indent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).indent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Setstandalone(&self, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setstandalone)(windows_core::Interface::as_raw(self), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).Setstandalone)(windows_core::Interface::as_raw(self), fvalue).ok() } pub unsafe fn standalone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).standalone)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetomitXMLDeclaration(&self, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetomitXMLDeclaration)(windows_core::Interface::as_raw(self), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).SetomitXMLDeclaration)(windows_core::Interface::as_raw(self), fvalue).ok() } pub unsafe fn omitXMLDeclaration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1123,7 +1123,7 @@ impl IMXWriter { (windows_core::Interface::vtable(self).version)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetdisableOutputEscaping(&self, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetdisableOutputEscaping)(windows_core::Interface::as_raw(self), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).SetdisableOutputEscaping)(windows_core::Interface::as_raw(self), fvalue).ok() } pub unsafe fn disableOutputEscaping(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1345,7 +1345,7 @@ impl IMXXMLFilter { (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), &mut result__).map(|| result__) } pub unsafe fn putFeature(&self, strname: &windows_core::BSTR, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), fvalue).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getProperty(&self, strname: &windows_core::BSTR) -> windows_core::Result { @@ -1552,16 +1552,16 @@ impl ISAXAttributes { (windows_core::Interface::vtable(self).getLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn getURI(&self, nindex: i32, ppwchuri: *mut *mut u16, pcchuri: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(ppwchuri), core::mem::transmute(pcchuri)).ok() + (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(ppwchuri), core::mem::transmute(pcchuri)).ok() } pub unsafe fn getLocalName(&self, nindex: i32, ppwchlocalname: *mut *mut u16, pcchlocalname: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getLocalName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(ppwchlocalname), core::mem::transmute(pcchlocalname)).ok() + (windows_core::Interface::vtable(self).getLocalName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(ppwchlocalname), core::mem::transmute(pcchlocalname)).ok() } pub unsafe fn getQName(&self, nindex: i32, ppwchqname: *mut *mut u16, pcchqname: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getQName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(ppwchqname), core::mem::transmute(pcchqname)).ok() + (windows_core::Interface::vtable(self).getQName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(ppwchqname), core::mem::transmute(pcchqname)).ok() } pub unsafe fn getName(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).getName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(ppwchuri), core::mem::transmute(pcchuri), core::mem::transmute(ppwchlocalname), core::mem::transmute(pcchlocalname), core::mem::transmute(ppwchqname), core::mem::transmute(pcchqname)).ok() + (windows_core::Interface::vtable(self).getName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(ppwchuri), core::mem::transmute(pcchuri), core::mem::transmute(ppwchlocalname), core::mem::transmute(pcchlocalname), core::mem::transmute(ppwchqname), core::mem::transmute(pcchqname)).ok() } pub unsafe fn getIndexFromName(&self, pwchuri: P0, cchuri: i32, pwchlocalname: P2, cchlocalname: i32) -> windows_core::Result where @@ -1569,46 +1569,46 @@ impl ISAXAttributes { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getIndexFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), core::mem::transmute(cchuri), pwchlocalname.param().abi(), core::mem::transmute(cchlocalname), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getIndexFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), cchuri, pwchlocalname.param().abi(), cchlocalname, &mut result__).map(|| result__) } pub unsafe fn getIndexFromQName(&self, pwchqname: P0, cchqname: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getIndexFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), core::mem::transmute(cchqname), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getIndexFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), cchqname, &mut result__).map(|| result__) } pub unsafe fn getType(&self, nindex: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getType)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(ppwchtype), core::mem::transmute(pcchtype)).ok() + (windows_core::Interface::vtable(self).getType)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(ppwchtype), core::mem::transmute(pcchtype)).ok() } pub unsafe fn getTypeFromName(&self, pwchuri: P0, cchuri: i32, pwchlocalname: P2, cchlocalname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).getTypeFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), core::mem::transmute(cchuri), pwchlocalname.param().abi(), core::mem::transmute(cchlocalname), core::mem::transmute(ppwchtype), core::mem::transmute(pcchtype)).ok() + (windows_core::Interface::vtable(self).getTypeFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), cchuri, pwchlocalname.param().abi(), cchlocalname, core::mem::transmute(ppwchtype), core::mem::transmute(pcchtype)).ok() } pub unsafe fn getTypeFromQName(&self, pwchqname: P0, cchqname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getTypeFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), core::mem::transmute(cchqname), core::mem::transmute(ppwchtype), core::mem::transmute(pcchtype)).ok() + (windows_core::Interface::vtable(self).getTypeFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), cchqname, core::mem::transmute(ppwchtype), core::mem::transmute(pcchtype)).ok() } pub unsafe fn getValue(&self, nindex: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getValue)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(ppwchvalue), core::mem::transmute(pcchvalue)).ok() + (windows_core::Interface::vtable(self).getValue)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(ppwchvalue), core::mem::transmute(pcchvalue)).ok() } pub unsafe fn getValueFromName(&self, pwchuri: P0, cchuri: i32, pwchlocalname: P2, cchlocalname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).getValueFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), core::mem::transmute(cchuri), pwchlocalname.param().abi(), core::mem::transmute(cchlocalname), core::mem::transmute(ppwchvalue), core::mem::transmute(pcchvalue)).ok() + (windows_core::Interface::vtable(self).getValueFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), cchuri, pwchlocalname.param().abi(), cchlocalname, core::mem::transmute(ppwchvalue), core::mem::transmute(pcchvalue)).ok() } pub unsafe fn getValueFromQName(&self, pwchqname: P0, cchqname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getValueFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), core::mem::transmute(cchqname), core::mem::transmute(ppwchvalue), core::mem::transmute(pcchvalue)).ok() + (windows_core::Interface::vtable(self).getValueFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), cchqname, core::mem::transmute(ppwchvalue), core::mem::transmute(pcchvalue)).ok() } } #[repr(C)] @@ -1757,13 +1757,13 @@ impl ISAXContentHandler { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).startPrefixMapping)(windows_core::Interface::as_raw(self), pwchprefix.param().abi(), core::mem::transmute(cchprefix), pwchuri.param().abi(), core::mem::transmute(cchuri)).ok() + (windows_core::Interface::vtable(self).startPrefixMapping)(windows_core::Interface::as_raw(self), pwchprefix.param().abi(), cchprefix, pwchuri.param().abi(), cchuri).ok() } pub unsafe fn endPrefixMapping(&self, pwchprefix: P0, cchprefix: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).endPrefixMapping)(windows_core::Interface::as_raw(self), pwchprefix.param().abi(), core::mem::transmute(cchprefix)).ok() + (windows_core::Interface::vtable(self).endPrefixMapping)(windows_core::Interface::as_raw(self), pwchprefix.param().abi(), cchprefix).ok() } pub unsafe fn startElement(&self, pwchnamespaceuri: P0, cchnamespaceuri: i32, pwchlocalname: P2, cchlocalname: i32, pwchqname: P4, cchqname: i32, pattributes: P6) -> windows_core::Result<()> where @@ -1772,7 +1772,7 @@ impl ISAXContentHandler { P4: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).startElement)(windows_core::Interface::as_raw(self), pwchnamespaceuri.param().abi(), core::mem::transmute(cchnamespaceuri), pwchlocalname.param().abi(), core::mem::transmute(cchlocalname), pwchqname.param().abi(), core::mem::transmute(cchqname), pattributes.param().abi()).ok() + (windows_core::Interface::vtable(self).startElement)(windows_core::Interface::as_raw(self), pwchnamespaceuri.param().abi(), cchnamespaceuri, pwchlocalname.param().abi(), cchlocalname, pwchqname.param().abi(), cchqname, pattributes.param().abi()).ok() } pub unsafe fn endElement(&self, pwchnamespaceuri: P0, cchnamespaceuri: i32, pwchlocalname: P2, cchlocalname: i32, pwchqname: P4, cchqname: i32) -> windows_core::Result<()> where @@ -1780,32 +1780,32 @@ impl ISAXContentHandler { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).endElement)(windows_core::Interface::as_raw(self), pwchnamespaceuri.param().abi(), core::mem::transmute(cchnamespaceuri), pwchlocalname.param().abi(), core::mem::transmute(cchlocalname), pwchqname.param().abi(), core::mem::transmute(cchqname)).ok() + (windows_core::Interface::vtable(self).endElement)(windows_core::Interface::as_raw(self), pwchnamespaceuri.param().abi(), cchnamespaceuri, pwchlocalname.param().abi(), cchlocalname, pwchqname.param().abi(), cchqname).ok() } pub unsafe fn characters(&self, pwchchars: P0, cchchars: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).characters)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), core::mem::transmute(cchchars)).ok() + (windows_core::Interface::vtable(self).characters)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), cchchars).ok() } pub unsafe fn ignorableWhitespace(&self, pwchchars: P0, cchchars: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ignorableWhitespace)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), core::mem::transmute(cchchars)).ok() + (windows_core::Interface::vtable(self).ignorableWhitespace)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), cchchars).ok() } pub unsafe fn processingInstruction(&self, pwchtarget: P0, cchtarget: i32, pwchdata: P2, cchdata: i32) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).processingInstruction)(windows_core::Interface::as_raw(self), pwchtarget.param().abi(), core::mem::transmute(cchtarget), pwchdata.param().abi(), core::mem::transmute(cchdata)).ok() + (windows_core::Interface::vtable(self).processingInstruction)(windows_core::Interface::as_raw(self), pwchtarget.param().abi(), cchtarget, pwchdata.param().abi(), cchdata).ok() } pub unsafe fn skippedEntity(&self, pwchname: P0, cchname: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).skippedEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname)).ok() + (windows_core::Interface::vtable(self).skippedEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname).ok() } } #[repr(C)] @@ -1911,7 +1911,7 @@ impl ISAXDTDHandler { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).notationDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname), pwchpublicid.param().abi(), core::mem::transmute(cchpublicid), pwchsystemid.param().abi(), core::mem::transmute(cchsystemid)).ok() + (windows_core::Interface::vtable(self).notationDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname, pwchpublicid.param().abi(), cchpublicid, pwchsystemid.param().abi(), cchsystemid).ok() } pub unsafe fn unparsedEntityDecl(&self, pwchname: P0, cchname: i32, pwchpublicid: P2, cchpublicid: i32, pwchsystemid: P4, cchsystemid: i32, pwchnotationname: P6, cchnotationname: i32) -> windows_core::Result<()> where @@ -1920,7 +1920,7 @@ impl ISAXDTDHandler { P4: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).unparsedEntityDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname), pwchpublicid.param().abi(), core::mem::transmute(cchpublicid), pwchsystemid.param().abi(), core::mem::transmute(cchsystemid), pwchnotationname.param().abi(), core::mem::transmute(cchnotationname)).ok() + (windows_core::Interface::vtable(self).unparsedEntityDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname, pwchpublicid.param().abi(), cchpublicid, pwchsystemid.param().abi(), cchsystemid, pwchnotationname.param().abi(), cchnotationname).ok() } } #[repr(C)] @@ -1962,7 +1962,7 @@ impl ISAXDeclHandler { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).elementDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname), pwchmodel.param().abi(), core::mem::transmute(cchmodel)).ok() + (windows_core::Interface::vtable(self).elementDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname, pwchmodel.param().abi(), cchmodel).ok() } pub unsafe fn attributeDecl(&self, pwchelementname: P0, cchelementname: i32, pwchattributename: P2, cchattributename: i32, pwchtype: P4, cchtype: i32, pwchvaluedefault: P6, cchvaluedefault: i32, pwchvalue: P8, cchvalue: i32) -> windows_core::Result<()> where @@ -1972,14 +1972,14 @@ impl ISAXDeclHandler { P6: windows_core::Param, P8: windows_core::Param, { - (windows_core::Interface::vtable(self).attributeDecl)(windows_core::Interface::as_raw(self), pwchelementname.param().abi(), core::mem::transmute(cchelementname), pwchattributename.param().abi(), core::mem::transmute(cchattributename), pwchtype.param().abi(), core::mem::transmute(cchtype), pwchvaluedefault.param().abi(), core::mem::transmute(cchvaluedefault), pwchvalue.param().abi(), core::mem::transmute(cchvalue)).ok() + (windows_core::Interface::vtable(self).attributeDecl)(windows_core::Interface::as_raw(self), pwchelementname.param().abi(), cchelementname, pwchattributename.param().abi(), cchattributename, pwchtype.param().abi(), cchtype, pwchvaluedefault.param().abi(), cchvaluedefault, pwchvalue.param().abi(), cchvalue).ok() } pub unsafe fn internalEntityDecl(&self, pwchname: P0, cchname: i32, pwchvalue: P2, cchvalue: i32) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).internalEntityDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname), pwchvalue.param().abi(), core::mem::transmute(cchvalue)).ok() + (windows_core::Interface::vtable(self).internalEntityDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname, pwchvalue.param().abi(), cchvalue).ok() } pub unsafe fn externalEntityDecl(&self, pwchname: P0, cchname: i32, pwchpublicid: P2, cchpublicid: i32, pwchsystemid: P4, cchsystemid: i32) -> windows_core::Result<()> where @@ -1987,7 +1987,7 @@ impl ISAXDeclHandler { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).externalEntityDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname), pwchpublicid.param().abi(), core::mem::transmute(cchpublicid), pwchsystemid.param().abi(), core::mem::transmute(cchsystemid)).ok() + (windows_core::Interface::vtable(self).externalEntityDecl)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname, pwchpublicid.param().abi(), cchpublicid, pwchsystemid.param().abi(), cchsystemid).ok() } } #[repr(C)] @@ -2089,21 +2089,21 @@ impl ISAXErrorHandler { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), core::mem::transmute(hrerrorcode)).ok() + (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), hrerrorcode).ok() } pub unsafe fn fatalError(&self, plocator: P0, pwcherrormessage: P1, hrerrorcode: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), core::mem::transmute(hrerrorcode)).ok() + (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), hrerrorcode).ok() } pub unsafe fn ignorableWarning(&self, plocator: P0, pwcherrormessage: P1, hrerrorcode: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), core::mem::transmute(hrerrorcode)).ok() + (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), hrerrorcode).ok() } } #[repr(C)] @@ -2153,7 +2153,7 @@ impl ISAXLexicalHandler { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).startDTD)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname), pwchpublicid.param().abi(), core::mem::transmute(cchpublicid), pwchsystemid.param().abi(), core::mem::transmute(cchsystemid)).ok() + (windows_core::Interface::vtable(self).startDTD)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname, pwchpublicid.param().abi(), cchpublicid, pwchsystemid.param().abi(), cchsystemid).ok() } pub unsafe fn endDTD(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).endDTD)(windows_core::Interface::as_raw(self)).ok() @@ -2162,13 +2162,13 @@ impl ISAXLexicalHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).startEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname)).ok() + (windows_core::Interface::vtable(self).startEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname).ok() } pub unsafe fn endEntity(&self, pwchname: P0, cchname: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).endEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(cchname)).ok() + (windows_core::Interface::vtable(self).endEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname).ok() } pub unsafe fn startCDATA(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).startCDATA)(windows_core::Interface::as_raw(self)).ok() @@ -2180,7 +2180,7 @@ impl ISAXLexicalHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).comment)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), core::mem::transmute(cchchars)).ok() + (windows_core::Interface::vtable(self).comment)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), cchchars).ok() } } #[repr(C)] @@ -2408,7 +2408,7 @@ impl ISAXXMLReader { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), pwchname.param().abi(), core::mem::transmute(vfvalue)).ok() + (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), pwchname.param().abi(), vfvalue).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getProperty(&self, pwchname: P0) -> windows_core::Result @@ -3775,7 +3775,7 @@ windows_core::imp::interface_hierarchy!(ISchemaItemCollection, windows_core::IUn impl ISchemaItemCollection { pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn itemByName(&self, name: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4086,7 +4086,7 @@ windows_core::imp::interface_hierarchy!(ISchemaStringCollection, windows_core::I impl ISchemaStringCollection { pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4515,7 +4515,7 @@ windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl IServerXMLHTTPRequest { pub unsafe fn setTimeouts(&self, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setTimeouts)(windows_core::Interface::as_raw(self), core::mem::transmute(resolvetimeout), core::mem::transmute(connecttimeout), core::mem::transmute(sendtimeout), core::mem::transmute(receivetimeout)).ok() + (windows_core::Interface::vtable(self).setTimeouts)(windows_core::Interface::as_raw(self), resolvetimeout, connecttimeout, sendtimeout, receivetimeout).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn waitForResponse(&self, timeoutinseconds: &super::super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -4525,11 +4525,11 @@ impl IServerXMLHTTPRequest { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getOption(&self, option: SERVERXMLHTTP_OPTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getOption)(windows_core::Interface::as_raw(self), core::mem::transmute(option), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getOption)(windows_core::Interface::as_raw(self), option, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn setOption(&self, option: SERVERXMLHTTP_OPTION, value: &super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setOption)(windows_core::Interface::as_raw(self), core::mem::transmute(option), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).setOption)(windows_core::Interface::as_raw(self), option, core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4617,7 +4617,7 @@ windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest2, windows_core::IU impl IServerXMLHTTPRequest2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn setProxy(&self, proxysetting: SXH_PROXY_SETTING, varproxyserver: &super::super::super::System::Variant::VARIANT, varbypasslist: &super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(proxysetting), core::mem::transmute_copy(varproxyserver), core::mem::transmute_copy(varbypasslist)).ok() + (windows_core::Interface::vtable(self).setProxy)(windows_core::Interface::as_raw(self), proxysetting, core::mem::transmute_copy(varproxyserver), core::mem::transmute_copy(varbypasslist)).ok() } pub unsafe fn setProxyCredentials(&self, bstrusername: &windows_core::BSTR, bstrpassword: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).setProxyCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword)).ok() @@ -4675,7 +4675,7 @@ windows_core::imp::interface_hierarchy!(IVBMXNamespaceManager, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl IVBMXNamespaceManager { pub unsafe fn SetallowOverride(&self, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetallowOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(foverride)).ok() + (windows_core::Interface::vtable(self).SetallowOverride)(windows_core::Interface::as_raw(self), foverride).ok() } pub unsafe fn allowOverride(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4691,7 +4691,7 @@ impl IVBMXNamespaceManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.param().abi(), core::mem::transmute(fdeep)).ok() + (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.param().abi(), fdeep).ok() } pub unsafe fn popContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).popContext)(windows_core::Interface::as_raw(self)).ok() @@ -4874,15 +4874,15 @@ impl IVBSAXAttributes { } pub unsafe fn getURI(&self, nindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn getLocalName(&self, nindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getLocalName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getLocalName)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn getQName(&self, nindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getQName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getQName)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn getIndexFromName(&self, struri: &windows_core::BSTR, strlocalname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4894,7 +4894,7 @@ impl IVBSAXAttributes { } pub unsafe fn getType(&self, nindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getType)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getType)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn getTypeFromName(&self, struri: &windows_core::BSTR, strlocalname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4906,7 +4906,7 @@ impl IVBSAXAttributes { } pub unsafe fn getValue(&self, nindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getValue)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getValue)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn getValueFromName(&self, struri: &windows_core::BSTR, strlocalname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5445,19 +5445,19 @@ impl IVBSAXErrorHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), core::mem::transmute(nerrorcode)).ok() + (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() } pub unsafe fn fatalError(&self, olocator: P0, strerrormessage: *mut windows_core::BSTR, nerrorcode: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), core::mem::transmute(nerrorcode)).ok() + (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() } pub unsafe fn ignorableWarning(&self, olocator: P0, strerrormessage: *mut windows_core::BSTR, nerrorcode: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), core::mem::transmute(nerrorcode)).ok() + (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5793,7 +5793,7 @@ impl IVBSAXXMLReader { (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), &mut result__).map(|| result__) } pub unsafe fn putFeature(&self, strname: &windows_core::BSTR, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), fvalue).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getProperty(&self, strname: &windows_core::BSTR) -> windows_core::Result { @@ -6281,19 +6281,19 @@ impl IXMLDOMCharacterData { } pub unsafe fn substringData(&self, offset: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).substringData)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(count), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).substringData)(windows_core::Interface::as_raw(self), offset, count, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn appendData(&self, data: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).appendData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(data)).ok() } pub unsafe fn insertData(&self, offset: i32, data: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).insertData)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute_copy(data)).ok() + (windows_core::Interface::vtable(self).insertData)(windows_core::Interface::as_raw(self), offset, core::mem::transmute_copy(data)).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).deleteData)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).deleteData)(windows_core::Interface::as_raw(self), offset, count).ok() } pub unsafe fn replaceData(&self, offset: i32, count: i32, data: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).replaceData)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(count), core::mem::transmute_copy(data)).ok() + (windows_core::Interface::vtable(self).replaceData)(windows_core::Interface::as_raw(self), offset, count, core::mem::transmute_copy(data)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6518,7 +6518,7 @@ impl IXMLDOMDocument { (windows_core::Interface::vtable(self).r#async)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Setasync(&self, isasync: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), core::mem::transmute(isasync)).ok() + (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), isasync).ok() } pub unsafe fn abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).abort)(windows_core::Interface::as_raw(self)).ok() @@ -6536,21 +6536,21 @@ impl IXMLDOMDocument { (windows_core::Interface::vtable(self).validateOnParse)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetvalidateOnParse(&self, isvalidating: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetvalidateOnParse)(windows_core::Interface::as_raw(self), core::mem::transmute(isvalidating)).ok() + (windows_core::Interface::vtable(self).SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating).ok() } pub unsafe fn resolveExternals(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).resolveExternals)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetresolveExternals(&self, isresolving: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetresolveExternals)(windows_core::Interface::as_raw(self), core::mem::transmute(isresolving)).ok() + (windows_core::Interface::vtable(self).SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving).ok() } pub unsafe fn preserveWhiteSpace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).preserveWhiteSpace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetpreserveWhiteSpace(&self, ispreserving: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(ispreserving)).ok() + (windows_core::Interface::vtable(self).SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Setonreadystatechange(&self, readystatechangesink: &super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -7137,7 +7137,7 @@ impl IXMLDOMDocument3 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).importNode)(windows_core::Interface::as_raw(self), node.param().abi(), core::mem::transmute(deep), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).importNode)(windows_core::Interface::as_raw(self), node.param().abi(), deep, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7685,7 +7685,7 @@ impl IXMLDOMNamedNodeMap { } pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7954,7 +7954,7 @@ impl IXMLDOMNode { } pub unsafe fn cloneNode(&self, deep: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).cloneNode)(windows_core::Interface::as_raw(self), core::mem::transmute(deep), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).cloneNode)(windows_core::Interface::as_raw(self), deep, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8530,7 +8530,7 @@ windows_core::imp::interface_hierarchy!(IXMLDOMNodeList, windows_core::IUnknown, impl IXMLDOMNodeList { pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8878,7 +8878,7 @@ impl IXMLDOMParseError2 { } pub unsafe fn errorParameters(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).errorParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).errorParameters)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn errorParametersCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8973,7 +8973,7 @@ windows_core::imp::interface_hierarchy!(IXMLDOMParseErrorCollection, windows_cor impl IXMLDOMParseErrorCollection { pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9180,7 +9180,7 @@ impl IXMLDOMSchemaCollection { } pub unsafe fn get_namespaceURI(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_namespaceURI)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_namespaceURI)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn addCollection(&self, othercollection: P0) -> windows_core::Result<()> where @@ -9307,7 +9307,7 @@ impl IXMLDOMSchemaCollection2 { (windows_core::Interface::vtable(self).validate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetvalidateOnLoad(&self, validateonload: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetvalidateOnLoad)(windows_core::Interface::as_raw(self), core::mem::transmute(validateonload)).ok() + (windows_core::Interface::vtable(self).SetvalidateOnLoad)(windows_core::Interface::as_raw(self), validateonload).ok() } pub unsafe fn validateOnLoad(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9622,7 +9622,7 @@ windows_core::imp::interface_hierarchy!(IXMLDOMText, windows_core::IUnknown, sup impl IXMLDOMText { pub unsafe fn splitText(&self, offset: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).splitText)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).splitText)(windows_core::Interface::as_raw(self), offset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -10101,7 +10101,7 @@ impl IXMLDocument2 { (windows_core::Interface::vtable(self).r#async)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Setasync(&self, f: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), core::mem::transmute(f)).ok() + (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), f).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10373,7 +10373,7 @@ impl IXMLElement { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi(), core::mem::transmute(lindex), core::mem::transmute(lreserved)).ok() + (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi(), lindex, lreserved).ok() } pub unsafe fn removeChild(&self, pchildelem: P0) -> windows_core::Result<()> where @@ -10584,7 +10584,7 @@ impl IXMLElement2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi(), core::mem::transmute(lindex), core::mem::transmute(lreserved)).ok() + (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi(), lindex, lreserved).ok() } pub unsafe fn removeChild(&self, pchildelem: P0) -> windows_core::Result<()> where @@ -10771,7 +10771,7 @@ windows_core::imp::interface_hierarchy!(IXMLElementCollection, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl IXMLElementCollection { pub unsafe fn Setlength(&self, v: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setlength)(windows_core::Interface::as_raw(self), core::mem::transmute(v)).ok() + (windows_core::Interface::vtable(self).Setlength)(windows_core::Interface::as_raw(self), v).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11162,14 +11162,14 @@ impl IXMLHTTPRequest2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), pbody.param().abi(), core::mem::transmute(cbbody)).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), pbody.param().abi(), cbbody).ok() } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCookie(&self, pcookie: *const XHR_COOKIE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetCookie)(windows_core::Interface::as_raw(self), core::mem::transmute(pcookie), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetCookie)(windows_core::Interface::as_raw(self), pcookie, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCustomResponseStream(&self, psequentialstream: P0) -> windows_core::Result<()> @@ -11179,7 +11179,7 @@ impl IXMLHTTPRequest2 { (windows_core::Interface::vtable(self).SetCustomResponseStream)(windows_core::Interface::as_raw(self), psequentialstream.param().abi()).ok() } pub unsafe fn SetProperty(&self, eproperty: XHR_PROPERTY, ullvalue: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(eproperty), core::mem::transmute(ullvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), eproperty, ullvalue).ok() } pub unsafe fn SetRequestHeader(&self, pwszheader: P0, pwszvalue: P1) -> windows_core::Result<()> where @@ -11197,7 +11197,7 @@ impl IXMLHTTPRequest2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCookie)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pwszname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pccookies), core::mem::transmute(ppcookies)).ok() + (windows_core::Interface::vtable(self).GetCookie)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pwszname.param().abi(), dwflags, core::mem::transmute(pccookies), core::mem::transmute(ppcookies)).ok() } pub unsafe fn GetResponseHeader(&self, pwszheader: P0) -> windows_core::Result<*mut u16> where @@ -11336,7 +11336,7 @@ impl IXMLHTTPRequest2Callback { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnHeadersAvailable)(windows_core::Interface::as_raw(self), pxhr.param().abi(), core::mem::transmute(dwstatus), pwszstatus.param().abi()).ok() + (windows_core::Interface::vtable(self).OnHeadersAvailable)(windows_core::Interface::as_raw(self), pxhr.param().abi(), dwstatus, pwszstatus.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnDataAvailable(&self, pxhr: P0, presponsestream: P1) -> windows_core::Result<()> @@ -11358,7 +11358,7 @@ impl IXMLHTTPRequest2Callback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), pxhr.param().abi(), core::mem::transmute(hrerror)).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), pxhr.param().abi(), hrerror).ok() } } #[repr(C)] @@ -11475,7 +11475,7 @@ impl IXMLHTTPRequest3Callback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnServerCertificateReceived)(windows_core::Interface::as_raw(self), pxhr.param().abi(), core::mem::transmute(dwcertificateerrors), rgservercertificatechain.len().try_into().unwrap(), core::mem::transmute(rgservercertificatechain.as_ptr())).ok() + (windows_core::Interface::vtable(self).OnServerCertificateReceived)(windows_core::Interface::as_raw(self), pxhr.param().abi(), dwcertificateerrors, rgservercertificatechain.len().try_into().unwrap(), core::mem::transmute(rgservercertificatechain.as_ptr())).ok() } pub unsafe fn OnClientCertificateRequested(&self, pxhr: P0, rgpwszissuerlist: &[*const u16]) -> windows_core::Result<()> where @@ -11904,11 +11904,11 @@ impl IXTLRuntime { } pub unsafe fn formatIndex(&self, lindex: i32, bstrformat: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).formatIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute_copy(bstrformat), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).formatIndex)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute_copy(bstrformat), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn formatNumber(&self, dblnumber: f64, bstrformat: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).formatNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dblnumber), core::mem::transmute_copy(bstrformat), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).formatNumber)(windows_core::Interface::as_raw(self), dblnumber, core::mem::transmute_copy(bstrformat), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn formatDate(&self, vardate: &super::super::super::System::Variant::VARIANT, bstrformat: &windows_core::BSTR, vardestlocale: &super::super::super::System::Variant::VARIANT) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs index cbe892af3a..a01cf7eaf0 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs @@ -5,7 +5,7 @@ where P2: windows_core::Param, { windows_targets::link!("xmllite.dll" "system" fn CreateXmlReader(riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void) -> windows_core::HRESULT); - CreateXmlReader(core::mem::transmute(riid), core::mem::transmute(ppvobject), pmalloc.param().abi()).ok() + CreateXmlReader(riid, core::mem::transmute(ppvobject), pmalloc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -17,7 +17,7 @@ where { windows_targets::link!("xmllite.dll" "system" fn CreateXmlReaderInputWithEncodingCodePage(pinputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, nencodingcodepage : u32, fencodinghint : super::super::super::Foundation:: BOOL, pwszbaseuri : windows_core::PCWSTR, ppinput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateXmlReaderInputWithEncodingCodePage(pinputstream.param().abi(), pmalloc.param().abi(), core::mem::transmute(nencodingcodepage), fencodinghint.into(), pwszbaseuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateXmlReaderInputWithEncodingCodePage(pinputstream.param().abi(), pmalloc.param().abi(), nencodingcodepage, fencodinghint.into(), pwszbaseuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -39,7 +39,7 @@ where P2: windows_core::Param, { windows_targets::link!("xmllite.dll" "system" fn CreateXmlWriter(riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void) -> windows_core::HRESULT); - CreateXmlWriter(core::mem::transmute(riid), core::mem::transmute(ppvobject), pmalloc.param().abi()).ok() + CreateXmlWriter(riid, core::mem::transmute(ppvobject), pmalloc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -50,7 +50,7 @@ where { windows_targets::link!("xmllite.dll" "system" fn CreateXmlWriterOutputWithEncodingCodePage(poutputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, nencodingcodepage : u32, ppoutput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateXmlWriterOutputWithEncodingCodePage(poutputstream.param().abi(), pmalloc.param().abi(), core::mem::transmute(nencodingcodepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateXmlWriterOutputWithEncodingCodePage(poutputstream.param().abi(), pmalloc.param().abi(), nencodingcodepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -80,10 +80,10 @@ impl IXmlReader { } pub unsafe fn GetProperty(&self, nproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), nproperty, &mut result__).map(|| result__) } pub unsafe fn SetProperty(&self, nproperty: u32, pvalue: Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperty), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), nproperty, core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Read(&self, pnodetype: Option<*mut XmlNodeType>) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pnodetype.unwrap_or(core::mem::zeroed()))) @@ -420,10 +420,10 @@ impl IXmlWriter { } pub unsafe fn GetProperty(&self, nproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), nproperty, &mut result__).map(|| result__) } pub unsafe fn SetProperty(&self, nproperty: u32, pvalue: Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperty), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), nproperty, core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteAttributes(&self, preader: P0, fwritedefaultattributes: bool) -> windows_core::Result<()> where @@ -447,7 +447,7 @@ impl IXmlWriter { (windows_core::Interface::vtable(self).WriteCData)(windows_core::Interface::as_raw(self), pwsztext.param().abi()).ok() } pub unsafe fn WriteCharEntity(&self, wch: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteCharEntity)(windows_core::Interface::as_raw(self), core::mem::transmute(wch)).ok() + (windows_core::Interface::vtable(self).WriteCharEntity)(windows_core::Interface::as_raw(self), wch).ok() } pub unsafe fn WriteChars(&self, pwch: Option<&[u16]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteChars)(windows_core::Interface::as_raw(self), core::mem::transmute(pwch.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwch.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -539,7 +539,7 @@ impl IXmlWriter { (windows_core::Interface::vtable(self).WriteRawChars)(windows_core::Interface::as_raw(self), core::mem::transmute(pwch.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwch.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn WriteStartDocument(&self, standalone: XmlStandalone) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteStartDocument)(windows_core::Interface::as_raw(self), core::mem::transmute(standalone)).ok() + (windows_core::Interface::vtable(self).WriteStartDocument)(windows_core::Interface::as_raw(self), standalone).ok() } pub unsafe fn WriteStartElement(&self, pwszprefix: P0, pwszlocalname: P1, pwsznamespaceuri: P2) -> windows_core::Result<()> where @@ -556,7 +556,7 @@ impl IXmlWriter { (windows_core::Interface::vtable(self).WriteString)(windows_core::Interface::as_raw(self), pwsztext.param().abi()).ok() } pub unsafe fn WriteSurrogateCharEntity(&self, wchlow: u16, wchhigh: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteSurrogateCharEntity)(windows_core::Interface::as_raw(self), core::mem::transmute(wchlow), core::mem::transmute(wchhigh)).ok() + (windows_core::Interface::vtable(self).WriteSurrogateCharEntity)(windows_core::Interface::as_raw(self), wchlow, wchhigh).ok() } pub unsafe fn WriteWhitespace(&self, pwszwhitespace: P0) -> windows_core::Result<()> where @@ -805,10 +805,10 @@ impl IXmlWriterLite { } pub unsafe fn GetProperty(&self, nproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), nproperty, &mut result__).map(|| result__) } pub unsafe fn SetProperty(&self, nproperty: u32, pvalue: Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperty), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), nproperty, core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteAttributes(&self, preader: P0, fwritedefaultattributes: bool) -> windows_core::Result<()> where @@ -826,7 +826,7 @@ impl IXmlWriterLite { (windows_core::Interface::vtable(self).WriteCData)(windows_core::Interface::as_raw(self), pwsztext.param().abi()).ok() } pub unsafe fn WriteCharEntity(&self, wch: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteCharEntity)(windows_core::Interface::as_raw(self), core::mem::transmute(wch)).ok() + (windows_core::Interface::vtable(self).WriteCharEntity)(windows_core::Interface::as_raw(self), wch).ok() } pub unsafe fn WriteChars(&self, pwch: Option<&[u16]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteChars)(windows_core::Interface::as_raw(self), core::mem::transmute(pwch.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwch.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -908,7 +908,7 @@ impl IXmlWriterLite { (windows_core::Interface::vtable(self).WriteRawChars)(windows_core::Interface::as_raw(self), core::mem::transmute(pwch.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwch.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn WriteStartDocument(&self, standalone: XmlStandalone) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteStartDocument)(windows_core::Interface::as_raw(self), core::mem::transmute(standalone)).ok() + (windows_core::Interface::vtable(self).WriteStartDocument)(windows_core::Interface::as_raw(self), standalone).ok() } pub unsafe fn WriteStartElement(&self, pwszqname: &[u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteStartElement)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszqname.as_ptr()), pwszqname.len().try_into().unwrap()).ok() @@ -920,7 +920,7 @@ impl IXmlWriterLite { (windows_core::Interface::vtable(self).WriteString)(windows_core::Interface::as_raw(self), pwsztext.param().abi()).ok() } pub unsafe fn WriteSurrogateCharEntity(&self, wchlow: u16, wchhigh: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteSurrogateCharEntity)(windows_core::Interface::as_raw(self), core::mem::transmute(wchlow), core::mem::transmute(wchhigh)).ok() + (windows_core::Interface::vtable(self).WriteSurrogateCharEntity)(windows_core::Interface::as_raw(self), wchlow, wchhigh).ok() } pub unsafe fn WriteWhitespace(&self, pwszwhitespace: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs index 2f8ab67c95..7c234a3115 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn AllJoynAcceptBusConnection(serverbushandle: super::super::Foundation::HANDLE, abortevent: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("msajapi.dll" "system" fn AllJoynAcceptBusConnection(serverbushandle : super::super::Foundation:: HANDLE, abortevent : super::super::Foundation:: HANDLE) -> u32); - AllJoynAcceptBusConnection(core::mem::transmute(serverbushandle), core::mem::transmute(abortevent)) + AllJoynAcceptBusConnection(serverbushandle, abortevent) } #[inline] pub unsafe fn AllJoynCloseBusHandle(bushandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("msajapi.dll" "system" fn AllJoynCloseBusHandle(bushandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AllJoynCloseBusHandle(core::mem::transmute(bushandle)).ok() + AllJoynCloseBusHandle(bushandle).ok() } #[inline] pub unsafe fn AllJoynConnectToBus(connectionspec: P0) -> windows_core::Result @@ -21,32 +21,32 @@ where #[inline] pub unsafe fn AllJoynCreateBus(outbuffersize: u32, inbuffersize: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> super::super::Foundation::HANDLE { windows_targets::link!("msajapi.dll" "system" fn AllJoynCreateBus(outbuffersize : u32, inbuffersize : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - AllJoynCreateBus(core::mem::transmute(outbuffersize), core::mem::transmute(inbuffersize), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) + AllJoynCreateBus(outbuffersize, inbuffersize, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn AllJoynEnumEvents(connectedbushandle: super::super::Foundation::HANDLE, eventtoreset: Option, eventtypes: *mut u32) -> windows_core::Result<()> { windows_targets::link!("msajapi.dll" "system" fn AllJoynEnumEvents(connectedbushandle : super::super::Foundation:: HANDLE, eventtoreset : super::super::Foundation:: HANDLE, eventtypes : *mut u32) -> super::super::Foundation:: BOOL); - AllJoynEnumEvents(core::mem::transmute(connectedbushandle), core::mem::transmute(eventtoreset.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtypes)).ok() + AllJoynEnumEvents(connectedbushandle, core::mem::transmute(eventtoreset.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtypes)).ok() } #[inline] pub unsafe fn AllJoynEventSelect(connectedbushandle: super::super::Foundation::HANDLE, eventhandle: super::super::Foundation::HANDLE, eventtypes: u32) -> windows_core::Result<()> { windows_targets::link!("msajapi.dll" "system" fn AllJoynEventSelect(connectedbushandle : super::super::Foundation:: HANDLE, eventhandle : super::super::Foundation:: HANDLE, eventtypes : u32) -> super::super::Foundation:: BOOL); - AllJoynEventSelect(core::mem::transmute(connectedbushandle), core::mem::transmute(eventhandle), core::mem::transmute(eventtypes)).ok() + AllJoynEventSelect(connectedbushandle, eventhandle, eventtypes).ok() } #[inline] pub unsafe fn AllJoynReceiveFromBus(connectedbushandle: super::super::Foundation::HANDLE, buffer: Option<*mut core::ffi::c_void>, bytestoread: u32, bytestransferred: Option<*mut u32>, reserved: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("msajapi.dll" "system" fn AllJoynReceiveFromBus(connectedbushandle : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bytestoread : u32, bytestransferred : *mut u32, reserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - AllJoynReceiveFromBus(core::mem::transmute(connectedbushandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytestoread), core::mem::transmute(bytestransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved)).ok() + AllJoynReceiveFromBus(connectedbushandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), bytestoread, core::mem::transmute(bytestransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved)).ok() } #[inline] pub unsafe fn AllJoynSendToBus(connectedbushandle: super::super::Foundation::HANDLE, buffer: Option<*const core::ffi::c_void>, bytestowrite: u32, bytestransferred: Option<*mut u32>, reserved: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("msajapi.dll" "system" fn AllJoynSendToBus(connectedbushandle : super::super::Foundation:: HANDLE, buffer : *const core::ffi::c_void, bytestowrite : u32, bytestransferred : *mut u32, reserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - AllJoynSendToBus(core::mem::transmute(connectedbushandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytestowrite), core::mem::transmute(bytestransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved)).ok() + AllJoynSendToBus(connectedbushandle, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), bytestowrite, core::mem::transmute(bytestransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved)).ok() } #[inline] pub unsafe fn QCC_StatusText(status: QStatus) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn QCC_StatusText(status : QStatus) -> windows_core::PCSTR); - QCC_StatusText(core::mem::transmute(status)) + QCC_StatusText(status) } #[inline] pub unsafe fn alljoyn_aboutdata_create(defaultlanguage: P0) -> alljoyn_aboutdata @@ -67,7 +67,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_create_full(arg : alljoyn_msgarg, language : windows_core::PCSTR) -> alljoyn_aboutdata); - alljoyn_aboutdata_create_full(core::mem::transmute(arg), language.param().abi()) + alljoyn_aboutdata_create_full(arg, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_createfrommsgarg(data: alljoyn_aboutdata, arg: alljoyn_msgarg, language: P2) -> QStatus @@ -75,7 +75,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_createfrommsgarg(data : alljoyn_aboutdata, arg : alljoyn_msgarg, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_createfrommsgarg(core::mem::transmute(data), core::mem::transmute(arg), language.param().abi()) + alljoyn_aboutdata_createfrommsgarg(data, arg, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_createfromxml(data: alljoyn_aboutdata, aboutdataxml: P1) -> QStatus @@ -83,12 +83,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_createfromxml(data : alljoyn_aboutdata, aboutdataxml : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_createfromxml(core::mem::transmute(data), aboutdataxml.param().abi()) + alljoyn_aboutdata_createfromxml(data, aboutdataxml.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_destroy(data: alljoyn_aboutdata) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_destroy(data : alljoyn_aboutdata)); - alljoyn_aboutdata_destroy(core::mem::transmute(data)) + alljoyn_aboutdata_destroy(data) } #[inline] pub unsafe fn alljoyn_aboutdata_getaboutdata(data: alljoyn_aboutdata, msgarg: alljoyn_msgarg, language: P2) -> QStatus @@ -96,22 +96,22 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getaboutdata(data : alljoyn_aboutdata, msgarg : alljoyn_msgarg, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_getaboutdata(core::mem::transmute(data), core::mem::transmute(msgarg), language.param().abi()) + alljoyn_aboutdata_getaboutdata(data, msgarg, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getajsoftwareversion(data: alljoyn_aboutdata, ajsoftwareversion: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getajsoftwareversion(data : alljoyn_aboutdata, ajsoftwareversion : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getajsoftwareversion(core::mem::transmute(data), core::mem::transmute(ajsoftwareversion)) + alljoyn_aboutdata_getajsoftwareversion(data, core::mem::transmute(ajsoftwareversion)) } #[inline] pub unsafe fn alljoyn_aboutdata_getannouncedaboutdata(data: alljoyn_aboutdata, msgarg: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getannouncedaboutdata(data : alljoyn_aboutdata, msgarg : alljoyn_msgarg) -> QStatus); - alljoyn_aboutdata_getannouncedaboutdata(core::mem::transmute(data), core::mem::transmute(msgarg)) + alljoyn_aboutdata_getannouncedaboutdata(data, msgarg) } #[inline] pub unsafe fn alljoyn_aboutdata_getappid(data: alljoyn_aboutdata, appid: *mut *mut u8, num: *mut usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getappid(data : alljoyn_aboutdata, appid : *mut *mut u8, num : *mut usize) -> QStatus); - alljoyn_aboutdata_getappid(core::mem::transmute(data), core::mem::transmute(appid), core::mem::transmute(num)) + alljoyn_aboutdata_getappid(data, core::mem::transmute(appid), core::mem::transmute(num)) } #[inline] pub unsafe fn alljoyn_aboutdata_getappname(data: alljoyn_aboutdata, appname: *mut *mut i8, language: P2) -> QStatus @@ -119,17 +119,17 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getappname(data : alljoyn_aboutdata, appname : *mut *mut i8, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_getappname(core::mem::transmute(data), core::mem::transmute(appname), language.param().abi()) + alljoyn_aboutdata_getappname(data, core::mem::transmute(appname), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getdateofmanufacture(data: alljoyn_aboutdata, dateofmanufacture: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdateofmanufacture(data : alljoyn_aboutdata, dateofmanufacture : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getdateofmanufacture(core::mem::transmute(data), core::mem::transmute(dateofmanufacture)) + alljoyn_aboutdata_getdateofmanufacture(data, core::mem::transmute(dateofmanufacture)) } #[inline] pub unsafe fn alljoyn_aboutdata_getdefaultlanguage(data: alljoyn_aboutdata, defaultlanguage: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdefaultlanguage(data : alljoyn_aboutdata, defaultlanguage : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getdefaultlanguage(core::mem::transmute(data), core::mem::transmute(defaultlanguage)) + alljoyn_aboutdata_getdefaultlanguage(data, core::mem::transmute(defaultlanguage)) } #[inline] pub unsafe fn alljoyn_aboutdata_getdescription(data: alljoyn_aboutdata, description: *mut *mut i8, language: P2) -> QStatus @@ -137,12 +137,12 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdescription(data : alljoyn_aboutdata, description : *mut *mut i8, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_getdescription(core::mem::transmute(data), core::mem::transmute(description), language.param().abi()) + alljoyn_aboutdata_getdescription(data, core::mem::transmute(description), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getdeviceid(data: alljoyn_aboutdata, deviceid: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdeviceid(data : alljoyn_aboutdata, deviceid : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getdeviceid(core::mem::transmute(data), core::mem::transmute(deviceid)) + alljoyn_aboutdata_getdeviceid(data, core::mem::transmute(deviceid)) } #[inline] pub unsafe fn alljoyn_aboutdata_getdevicename(data: alljoyn_aboutdata, devicename: *mut *mut i8, language: P2) -> QStatus @@ -150,7 +150,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdevicename(data : alljoyn_aboutdata, devicename : *mut *mut i8, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_getdevicename(core::mem::transmute(data), core::mem::transmute(devicename), language.param().abi()) + alljoyn_aboutdata_getdevicename(data, core::mem::transmute(devicename), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getfield(data: alljoyn_aboutdata, name: P1, value: *mut alljoyn_msgarg, language: P3) -> QStatus @@ -159,12 +159,12 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getfield(data : alljoyn_aboutdata, name : windows_core::PCSTR, value : *mut alljoyn_msgarg, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_getfield(core::mem::transmute(data), name.param().abi(), core::mem::transmute(value), language.param().abi()) + alljoyn_aboutdata_getfield(data, name.param().abi(), core::mem::transmute(value), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getfields(data: alljoyn_aboutdata, fields: *const *const i8, num_fields: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getfields(data : alljoyn_aboutdata, fields : *const *const i8, num_fields : usize) -> usize); - alljoyn_aboutdata_getfields(core::mem::transmute(data), core::mem::transmute(fields), core::mem::transmute(num_fields)) + alljoyn_aboutdata_getfields(data, fields, num_fields) } #[inline] pub unsafe fn alljoyn_aboutdata_getfieldsignature(data: alljoyn_aboutdata, fieldname: P1) -> windows_core::PCSTR @@ -172,12 +172,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getfieldsignature(data : alljoyn_aboutdata, fieldname : windows_core::PCSTR) -> windows_core::PCSTR); - alljoyn_aboutdata_getfieldsignature(core::mem::transmute(data), fieldname.param().abi()) + alljoyn_aboutdata_getfieldsignature(data, fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_gethardwareversion(data: alljoyn_aboutdata, hardwareversion: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_gethardwareversion(data : alljoyn_aboutdata, hardwareversion : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_gethardwareversion(core::mem::transmute(data), core::mem::transmute(hardwareversion)) + alljoyn_aboutdata_gethardwareversion(data, core::mem::transmute(hardwareversion)) } #[inline] pub unsafe fn alljoyn_aboutdata_getmanufacturer(data: alljoyn_aboutdata, manufacturer: *mut *mut i8, language: P2) -> QStatus @@ -185,27 +185,27 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getmanufacturer(data : alljoyn_aboutdata, manufacturer : *mut *mut i8, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_getmanufacturer(core::mem::transmute(data), core::mem::transmute(manufacturer), language.param().abi()) + alljoyn_aboutdata_getmanufacturer(data, core::mem::transmute(manufacturer), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getmodelnumber(data: alljoyn_aboutdata, modelnumber: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getmodelnumber(data : alljoyn_aboutdata, modelnumber : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getmodelnumber(core::mem::transmute(data), core::mem::transmute(modelnumber)) + alljoyn_aboutdata_getmodelnumber(data, core::mem::transmute(modelnumber)) } #[inline] pub unsafe fn alljoyn_aboutdata_getsoftwareversion(data: alljoyn_aboutdata, softwareversion: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getsoftwareversion(data : alljoyn_aboutdata, softwareversion : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getsoftwareversion(core::mem::transmute(data), core::mem::transmute(softwareversion)) + alljoyn_aboutdata_getsoftwareversion(data, core::mem::transmute(softwareversion)) } #[inline] pub unsafe fn alljoyn_aboutdata_getsupportedlanguages(data: alljoyn_aboutdata, languagetags: *const *const i8, num: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getsupportedlanguages(data : alljoyn_aboutdata, languagetags : *const *const i8, num : usize) -> usize); - alljoyn_aboutdata_getsupportedlanguages(core::mem::transmute(data), core::mem::transmute(languagetags), core::mem::transmute(num)) + alljoyn_aboutdata_getsupportedlanguages(data, languagetags, num) } #[inline] pub unsafe fn alljoyn_aboutdata_getsupporturl(data: alljoyn_aboutdata, supporturl: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getsupporturl(data : alljoyn_aboutdata, supporturl : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getsupporturl(core::mem::transmute(data), core::mem::transmute(supporturl)) + alljoyn_aboutdata_getsupporturl(data, core::mem::transmute(supporturl)) } #[inline] pub unsafe fn alljoyn_aboutdata_isfieldannounced(data: alljoyn_aboutdata, fieldname: P1) -> u8 @@ -213,7 +213,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_isfieldannounced(data : alljoyn_aboutdata, fieldname : windows_core::PCSTR) -> u8); - alljoyn_aboutdata_isfieldannounced(core::mem::transmute(data), fieldname.param().abi()) + alljoyn_aboutdata_isfieldannounced(data, fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_isfieldlocalized(data: alljoyn_aboutdata, fieldname: P1) -> u8 @@ -221,7 +221,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_isfieldlocalized(data : alljoyn_aboutdata, fieldname : windows_core::PCSTR) -> u8); - alljoyn_aboutdata_isfieldlocalized(core::mem::transmute(data), fieldname.param().abi()) + alljoyn_aboutdata_isfieldlocalized(data, fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_isfieldrequired(data: alljoyn_aboutdata, fieldname: P1) -> u8 @@ -229,7 +229,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_isfieldrequired(data : alljoyn_aboutdata, fieldname : windows_core::PCSTR) -> u8); - alljoyn_aboutdata_isfieldrequired(core::mem::transmute(data), fieldname.param().abi()) + alljoyn_aboutdata_isfieldrequired(data, fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_isvalid(data: alljoyn_aboutdata, language: P1) -> u8 @@ -237,12 +237,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_isvalid(data : alljoyn_aboutdata, language : windows_core::PCSTR) -> u8); - alljoyn_aboutdata_isvalid(core::mem::transmute(data), language.param().abi()) + alljoyn_aboutdata_isvalid(data, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setappid(data: alljoyn_aboutdata, appid: *const u8, num: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setappid(data : alljoyn_aboutdata, appid : *const u8, num : usize) -> QStatus); - alljoyn_aboutdata_setappid(core::mem::transmute(data), core::mem::transmute(appid), core::mem::transmute(num)) + alljoyn_aboutdata_setappid(data, appid, num) } #[inline] pub unsafe fn alljoyn_aboutdata_setappid_fromstring(data: alljoyn_aboutdata, appid: P1) -> QStatus @@ -250,7 +250,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setappid_fromstring(data : alljoyn_aboutdata, appid : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setappid_fromstring(core::mem::transmute(data), appid.param().abi()) + alljoyn_aboutdata_setappid_fromstring(data, appid.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setappname(data: alljoyn_aboutdata, appname: P1, language: P2) -> QStatus @@ -259,7 +259,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setappname(data : alljoyn_aboutdata, appname : windows_core::PCSTR, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setappname(core::mem::transmute(data), appname.param().abi(), language.param().abi()) + alljoyn_aboutdata_setappname(data, appname.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdateofmanufacture(data: alljoyn_aboutdata, dateofmanufacture: P1) -> QStatus @@ -267,7 +267,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setdateofmanufacture(data : alljoyn_aboutdata, dateofmanufacture : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setdateofmanufacture(core::mem::transmute(data), dateofmanufacture.param().abi()) + alljoyn_aboutdata_setdateofmanufacture(data, dateofmanufacture.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdefaultlanguage(data: alljoyn_aboutdata, defaultlanguage: P1) -> QStatus @@ -275,7 +275,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setdefaultlanguage(data : alljoyn_aboutdata, defaultlanguage : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setdefaultlanguage(core::mem::transmute(data), defaultlanguage.param().abi()) + alljoyn_aboutdata_setdefaultlanguage(data, defaultlanguage.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdescription(data: alljoyn_aboutdata, description: P1, language: P2) -> QStatus @@ -284,7 +284,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setdescription(data : alljoyn_aboutdata, description : windows_core::PCSTR, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setdescription(core::mem::transmute(data), description.param().abi(), language.param().abi()) + alljoyn_aboutdata_setdescription(data, description.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdeviceid(data: alljoyn_aboutdata, deviceid: P1) -> QStatus @@ -292,7 +292,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setdeviceid(data : alljoyn_aboutdata, deviceid : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setdeviceid(core::mem::transmute(data), deviceid.param().abi()) + alljoyn_aboutdata_setdeviceid(data, deviceid.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdevicename(data: alljoyn_aboutdata, devicename: P1, language: P2) -> QStatus @@ -301,7 +301,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setdevicename(data : alljoyn_aboutdata, devicename : windows_core::PCSTR, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setdevicename(core::mem::transmute(data), devicename.param().abi(), language.param().abi()) + alljoyn_aboutdata_setdevicename(data, devicename.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setfield(data: alljoyn_aboutdata, name: P1, value: alljoyn_msgarg, language: P3) -> QStatus @@ -310,7 +310,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setfield(data : alljoyn_aboutdata, name : windows_core::PCSTR, value : alljoyn_msgarg, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setfield(core::mem::transmute(data), name.param().abi(), core::mem::transmute(value), language.param().abi()) + alljoyn_aboutdata_setfield(data, name.param().abi(), value, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_sethardwareversion(data: alljoyn_aboutdata, hardwareversion: P1) -> QStatus @@ -318,7 +318,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_sethardwareversion(data : alljoyn_aboutdata, hardwareversion : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_sethardwareversion(core::mem::transmute(data), hardwareversion.param().abi()) + alljoyn_aboutdata_sethardwareversion(data, hardwareversion.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setmanufacturer(data: alljoyn_aboutdata, manufacturer: P1, language: P2) -> QStatus @@ -327,7 +327,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setmanufacturer(data : alljoyn_aboutdata, manufacturer : windows_core::PCSTR, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setmanufacturer(core::mem::transmute(data), manufacturer.param().abi(), language.param().abi()) + alljoyn_aboutdata_setmanufacturer(data, manufacturer.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setmodelnumber(data: alljoyn_aboutdata, modelnumber: P1) -> QStatus @@ -335,7 +335,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setmodelnumber(data : alljoyn_aboutdata, modelnumber : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setmodelnumber(core::mem::transmute(data), modelnumber.param().abi()) + alljoyn_aboutdata_setmodelnumber(data, modelnumber.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setsoftwareversion(data: alljoyn_aboutdata, softwareversion: P1) -> QStatus @@ -343,7 +343,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setsoftwareversion(data : alljoyn_aboutdata, softwareversion : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setsoftwareversion(core::mem::transmute(data), softwareversion.param().abi()) + alljoyn_aboutdata_setsoftwareversion(data, softwareversion.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setsupportedlanguage(data: alljoyn_aboutdata, language: P1) -> QStatus @@ -351,7 +351,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setsupportedlanguage(data : alljoyn_aboutdata, language : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setsupportedlanguage(core::mem::transmute(data), language.param().abi()) + alljoyn_aboutdata_setsupportedlanguage(data, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setsupporturl(data: alljoyn_aboutdata, supporturl: P1) -> QStatus @@ -359,22 +359,22 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setsupporturl(data : alljoyn_aboutdata, supporturl : windows_core::PCSTR) -> QStatus); - alljoyn_aboutdata_setsupporturl(core::mem::transmute(data), supporturl.param().abi()) + alljoyn_aboutdata_setsupporturl(data, supporturl.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdatalistener_create(callbacks: *const alljoyn_aboutdatalistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_aboutdatalistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdatalistener_create(callbacks : *const alljoyn_aboutdatalistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_aboutdatalistener); - alljoyn_aboutdatalistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_aboutdatalistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_aboutdatalistener_destroy(listener: alljoyn_aboutdatalistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdatalistener_destroy(listener : alljoyn_aboutdatalistener)); - alljoyn_aboutdatalistener_destroy(core::mem::transmute(listener)) + alljoyn_aboutdatalistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_abouticon_clear(icon: alljoyn_abouticon) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_clear(icon : alljoyn_abouticon)); - alljoyn_abouticon_clear(core::mem::transmute(icon)) + alljoyn_abouticon_clear(icon) } #[inline] pub unsafe fn alljoyn_abouticon_create() -> alljoyn_abouticon { @@ -384,17 +384,17 @@ pub unsafe fn alljoyn_abouticon_create() -> alljoyn_abouticon { #[inline] pub unsafe fn alljoyn_abouticon_destroy(icon: alljoyn_abouticon) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_destroy(icon : alljoyn_abouticon)); - alljoyn_abouticon_destroy(core::mem::transmute(icon)) + alljoyn_abouticon_destroy(icon) } #[inline] pub unsafe fn alljoyn_abouticon_getcontent(icon: alljoyn_abouticon, data: *const *const u8, size: *mut usize) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_getcontent(icon : alljoyn_abouticon, data : *const *const u8, size : *mut usize)); - alljoyn_abouticon_getcontent(core::mem::transmute(icon), core::mem::transmute(data), core::mem::transmute(size)) + alljoyn_abouticon_getcontent(icon, data, core::mem::transmute(size)) } #[inline] pub unsafe fn alljoyn_abouticon_geturl(icon: alljoyn_abouticon, r#type: *const *const i8, url: *const *const i8) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_geturl(icon : alljoyn_abouticon, r#type : *const *const i8, url : *const *const i8)); - alljoyn_abouticon_geturl(core::mem::transmute(icon), core::mem::transmute(r#type), core::mem::transmute(url)) + alljoyn_abouticon_geturl(icon, r#type, url) } #[inline] pub unsafe fn alljoyn_abouticon_setcontent(icon: alljoyn_abouticon, r#type: P1, data: *mut u8, csize: usize, ownsdata: u8) -> QStatus @@ -402,12 +402,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_setcontent(icon : alljoyn_abouticon, r#type : windows_core::PCSTR, data : *mut u8, csize : usize, ownsdata : u8) -> QStatus); - alljoyn_abouticon_setcontent(core::mem::transmute(icon), r#type.param().abi(), core::mem::transmute(data), core::mem::transmute(csize), core::mem::transmute(ownsdata)) + alljoyn_abouticon_setcontent(icon, r#type.param().abi(), core::mem::transmute(data), csize, ownsdata) } #[inline] pub unsafe fn alljoyn_abouticon_setcontent_frommsgarg(icon: alljoyn_abouticon, arg: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_setcontent_frommsgarg(icon : alljoyn_abouticon, arg : alljoyn_msgarg) -> QStatus); - alljoyn_abouticon_setcontent_frommsgarg(core::mem::transmute(icon), core::mem::transmute(arg)) + alljoyn_abouticon_setcontent_frommsgarg(icon, arg) } #[inline] pub unsafe fn alljoyn_abouticon_seturl(icon: alljoyn_abouticon, r#type: P1, url: P2) -> QStatus @@ -416,17 +416,17 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_seturl(icon : alljoyn_abouticon, r#type : windows_core::PCSTR, url : windows_core::PCSTR) -> QStatus); - alljoyn_abouticon_seturl(core::mem::transmute(icon), r#type.param().abi(), url.param().abi()) + alljoyn_abouticon_seturl(icon, r#type.param().abi(), url.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticonobj_create(bus: alljoyn_busattachment, icon: alljoyn_abouticon) -> alljoyn_abouticonobj { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonobj_create(bus : alljoyn_busattachment, icon : alljoyn_abouticon) -> alljoyn_abouticonobj); - alljoyn_abouticonobj_create(core::mem::transmute(bus), core::mem::transmute(icon)) + alljoyn_abouticonobj_create(bus, icon) } #[inline] pub unsafe fn alljoyn_abouticonobj_destroy(icon: alljoyn_abouticonobj) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonobj_destroy(icon : alljoyn_abouticonobj)); - alljoyn_abouticonobj_destroy(core::mem::transmute(icon)) + alljoyn_abouticonobj_destroy(icon) } #[inline] pub unsafe fn alljoyn_abouticonproxy_create(bus: alljoyn_busattachment, busname: P1, sessionid: u32) -> alljoyn_abouticonproxy @@ -434,62 +434,62 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_create(bus : alljoyn_busattachment, busname : windows_core::PCSTR, sessionid : u32) -> alljoyn_abouticonproxy); - alljoyn_abouticonproxy_create(core::mem::transmute(bus), busname.param().abi(), core::mem::transmute(sessionid)) + alljoyn_abouticonproxy_create(bus, busname.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_abouticonproxy_destroy(proxy: alljoyn_abouticonproxy) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_destroy(proxy : alljoyn_abouticonproxy)); - alljoyn_abouticonproxy_destroy(core::mem::transmute(proxy)) + alljoyn_abouticonproxy_destroy(proxy) } #[inline] pub unsafe fn alljoyn_abouticonproxy_geticon(proxy: alljoyn_abouticonproxy, icon: alljoyn_abouticon) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_geticon(proxy : alljoyn_abouticonproxy, icon : alljoyn_abouticon) -> QStatus); - alljoyn_abouticonproxy_geticon(core::mem::transmute(proxy), core::mem::transmute(icon)) + alljoyn_abouticonproxy_geticon(proxy, icon) } #[inline] pub unsafe fn alljoyn_abouticonproxy_getversion(proxy: alljoyn_abouticonproxy, version: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_getversion(proxy : alljoyn_abouticonproxy, version : *mut u16) -> QStatus); - alljoyn_abouticonproxy_getversion(core::mem::transmute(proxy), core::mem::transmute(version)) + alljoyn_abouticonproxy_getversion(proxy, core::mem::transmute(version)) } #[inline] pub unsafe fn alljoyn_aboutlistener_create(callback: *const alljoyn_aboutlistener_callback, context: *const core::ffi::c_void) -> alljoyn_aboutlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutlistener_create(callback : *const alljoyn_aboutlistener_callback, context : *const core::ffi::c_void) -> alljoyn_aboutlistener); - alljoyn_aboutlistener_create(core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_aboutlistener_create(callback, context) } #[inline] pub unsafe fn alljoyn_aboutlistener_destroy(listener: alljoyn_aboutlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutlistener_destroy(listener : alljoyn_aboutlistener)); - alljoyn_aboutlistener_destroy(core::mem::transmute(listener)) + alljoyn_aboutlistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_aboutobj_announce(obj: alljoyn_aboutobj, sessionport: u16, aboutdata: alljoyn_aboutdata) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_announce(obj : alljoyn_aboutobj, sessionport : u16, aboutdata : alljoyn_aboutdata) -> QStatus); - alljoyn_aboutobj_announce(core::mem::transmute(obj), core::mem::transmute(sessionport), core::mem::transmute(aboutdata)) + alljoyn_aboutobj_announce(obj, sessionport, aboutdata) } #[inline] pub unsafe fn alljoyn_aboutobj_announce_using_datalistener(obj: alljoyn_aboutobj, sessionport: u16, aboutlistener: alljoyn_aboutdatalistener) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_announce_using_datalistener(obj : alljoyn_aboutobj, sessionport : u16, aboutlistener : alljoyn_aboutdatalistener) -> QStatus); - alljoyn_aboutobj_announce_using_datalistener(core::mem::transmute(obj), core::mem::transmute(sessionport), core::mem::transmute(aboutlistener)) + alljoyn_aboutobj_announce_using_datalistener(obj, sessionport, aboutlistener) } #[inline] pub unsafe fn alljoyn_aboutobj_create(bus: alljoyn_busattachment, isannounced: alljoyn_about_announceflag) -> alljoyn_aboutobj { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_create(bus : alljoyn_busattachment, isannounced : alljoyn_about_announceflag) -> alljoyn_aboutobj); - alljoyn_aboutobj_create(core::mem::transmute(bus), core::mem::transmute(isannounced)) + alljoyn_aboutobj_create(bus, isannounced) } #[inline] pub unsafe fn alljoyn_aboutobj_destroy(obj: alljoyn_aboutobj) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_destroy(obj : alljoyn_aboutobj)); - alljoyn_aboutobj_destroy(core::mem::transmute(obj)) + alljoyn_aboutobj_destroy(obj) } #[inline] pub unsafe fn alljoyn_aboutobj_unannounce(obj: alljoyn_aboutobj) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_unannounce(obj : alljoyn_aboutobj) -> QStatus); - alljoyn_aboutobj_unannounce(core::mem::transmute(obj)) + alljoyn_aboutobj_unannounce(obj) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_clear(description: alljoyn_aboutobjectdescription) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_clear(description : alljoyn_aboutobjectdescription)); - alljoyn_aboutobjectdescription_clear(core::mem::transmute(description)) + alljoyn_aboutobjectdescription_clear(description) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_create() -> alljoyn_aboutobjectdescription { @@ -499,17 +499,17 @@ pub unsafe fn alljoyn_aboutobjectdescription_create() -> alljoyn_aboutobjectdesc #[inline] pub unsafe fn alljoyn_aboutobjectdescription_create_full(arg: alljoyn_msgarg) -> alljoyn_aboutobjectdescription { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_create_full(arg : alljoyn_msgarg) -> alljoyn_aboutobjectdescription); - alljoyn_aboutobjectdescription_create_full(core::mem::transmute(arg)) + alljoyn_aboutobjectdescription_create_full(arg) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_createfrommsgarg(description: alljoyn_aboutobjectdescription, arg: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_createfrommsgarg(description : alljoyn_aboutobjectdescription, arg : alljoyn_msgarg) -> QStatus); - alljoyn_aboutobjectdescription_createfrommsgarg(core::mem::transmute(description), core::mem::transmute(arg)) + alljoyn_aboutobjectdescription_createfrommsgarg(description, arg) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_destroy(description: alljoyn_aboutobjectdescription) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_destroy(description : alljoyn_aboutobjectdescription)); - alljoyn_aboutobjectdescription_destroy(core::mem::transmute(description)) + alljoyn_aboutobjectdescription_destroy(description) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getinterfacepaths(description: alljoyn_aboutobjectdescription, interfacename: P1, paths: *const *const i8, numpaths: usize) -> usize @@ -517,7 +517,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_getinterfacepaths(description : alljoyn_aboutobjectdescription, interfacename : windows_core::PCSTR, paths : *const *const i8, numpaths : usize) -> usize); - alljoyn_aboutobjectdescription_getinterfacepaths(core::mem::transmute(description), interfacename.param().abi(), core::mem::transmute(paths), core::mem::transmute(numpaths)) + alljoyn_aboutobjectdescription_getinterfacepaths(description, interfacename.param().abi(), paths, numpaths) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getinterfaces(description: alljoyn_aboutobjectdescription, path: P1, interfaces: *const *const i8, numinterfaces: usize) -> usize @@ -525,17 +525,17 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_getinterfaces(description : alljoyn_aboutobjectdescription, path : windows_core::PCSTR, interfaces : *const *const i8, numinterfaces : usize) -> usize); - alljoyn_aboutobjectdescription_getinterfaces(core::mem::transmute(description), path.param().abi(), core::mem::transmute(interfaces), core::mem::transmute(numinterfaces)) + alljoyn_aboutobjectdescription_getinterfaces(description, path.param().abi(), interfaces, numinterfaces) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getmsgarg(description: alljoyn_aboutobjectdescription, msgarg: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_getmsgarg(description : alljoyn_aboutobjectdescription, msgarg : alljoyn_msgarg) -> QStatus); - alljoyn_aboutobjectdescription_getmsgarg(core::mem::transmute(description), core::mem::transmute(msgarg)) + alljoyn_aboutobjectdescription_getmsgarg(description, msgarg) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getpaths(description: alljoyn_aboutobjectdescription, paths: *const *const i8, numpaths: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_getpaths(description : alljoyn_aboutobjectdescription, paths : *const *const i8, numpaths : usize) -> usize); - alljoyn_aboutobjectdescription_getpaths(core::mem::transmute(description), core::mem::transmute(paths), core::mem::transmute(numpaths)) + alljoyn_aboutobjectdescription_getpaths(description, paths, numpaths) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_hasinterface(description: alljoyn_aboutobjectdescription, interfacename: P1) -> u8 @@ -543,7 +543,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_hasinterface(description : alljoyn_aboutobjectdescription, interfacename : windows_core::PCSTR) -> u8); - alljoyn_aboutobjectdescription_hasinterface(core::mem::transmute(description), interfacename.param().abi()) + alljoyn_aboutobjectdescription_hasinterface(description, interfacename.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_hasinterfaceatpath(description: alljoyn_aboutobjectdescription, path: P1, interfacename: P2) -> u8 @@ -552,7 +552,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_hasinterfaceatpath(description : alljoyn_aboutobjectdescription, path : windows_core::PCSTR, interfacename : windows_core::PCSTR) -> u8); - alljoyn_aboutobjectdescription_hasinterfaceatpath(core::mem::transmute(description), path.param().abi(), interfacename.param().abi()) + alljoyn_aboutobjectdescription_hasinterfaceatpath(description, path.param().abi(), interfacename.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_haspath(description: alljoyn_aboutobjectdescription, path: P1) -> u8 @@ -560,7 +560,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_haspath(description : alljoyn_aboutobjectdescription, path : windows_core::PCSTR) -> u8); - alljoyn_aboutobjectdescription_haspath(core::mem::transmute(description), path.param().abi()) + alljoyn_aboutobjectdescription_haspath(description, path.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutproxy_create(bus: alljoyn_busattachment, busname: P1, sessionid: u32) -> alljoyn_aboutproxy @@ -568,12 +568,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_create(bus : alljoyn_busattachment, busname : windows_core::PCSTR, sessionid : u32) -> alljoyn_aboutproxy); - alljoyn_aboutproxy_create(core::mem::transmute(bus), busname.param().abi(), core::mem::transmute(sessionid)) + alljoyn_aboutproxy_create(bus, busname.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_aboutproxy_destroy(proxy: alljoyn_aboutproxy) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_destroy(proxy : alljoyn_aboutproxy)); - alljoyn_aboutproxy_destroy(core::mem::transmute(proxy)) + alljoyn_aboutproxy_destroy(proxy) } #[inline] pub unsafe fn alljoyn_aboutproxy_getaboutdata(proxy: alljoyn_aboutproxy, language: P1, data: alljoyn_msgarg) -> QStatus @@ -581,62 +581,62 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_getaboutdata(proxy : alljoyn_aboutproxy, language : windows_core::PCSTR, data : alljoyn_msgarg) -> QStatus); - alljoyn_aboutproxy_getaboutdata(core::mem::transmute(proxy), language.param().abi(), core::mem::transmute(data)) + alljoyn_aboutproxy_getaboutdata(proxy, language.param().abi(), data) } #[inline] pub unsafe fn alljoyn_aboutproxy_getobjectdescription(proxy: alljoyn_aboutproxy, objectdesc: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_getobjectdescription(proxy : alljoyn_aboutproxy, objectdesc : alljoyn_msgarg) -> QStatus); - alljoyn_aboutproxy_getobjectdescription(core::mem::transmute(proxy), core::mem::transmute(objectdesc)) + alljoyn_aboutproxy_getobjectdescription(proxy, objectdesc) } #[inline] pub unsafe fn alljoyn_aboutproxy_getversion(proxy: alljoyn_aboutproxy, version: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_getversion(proxy : alljoyn_aboutproxy, version : *mut u16) -> QStatus); - alljoyn_aboutproxy_getversion(core::mem::transmute(proxy), core::mem::transmute(version)) + alljoyn_aboutproxy_getversion(proxy, core::mem::transmute(version)) } #[inline] pub unsafe fn alljoyn_applicationstatelistener_create(callbacks: *const alljoyn_applicationstatelistener_callbacks, context: *mut core::ffi::c_void) -> alljoyn_applicationstatelistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_applicationstatelistener_create(callbacks : *const alljoyn_applicationstatelistener_callbacks, context : *mut core::ffi::c_void) -> alljoyn_applicationstatelistener); - alljoyn_applicationstatelistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_applicationstatelistener_create(callbacks, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_applicationstatelistener_destroy(listener: alljoyn_applicationstatelistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_applicationstatelistener_destroy(listener : alljoyn_applicationstatelistener)); - alljoyn_applicationstatelistener_destroy(core::mem::transmute(listener)) + alljoyn_applicationstatelistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_authlistener_create(callbacks: *const alljoyn_authlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_authlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_create(callbacks : *const alljoyn_authlistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_authlistener); - alljoyn_authlistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_authlistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_authlistener_destroy(listener: alljoyn_authlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_destroy(listener : alljoyn_authlistener)); - alljoyn_authlistener_destroy(core::mem::transmute(listener)) + alljoyn_authlistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_authlistener_requestcredentialsresponse(listener: alljoyn_authlistener, authcontext: *mut core::ffi::c_void, accept: i32, credentials: alljoyn_credentials) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_requestcredentialsresponse(listener : alljoyn_authlistener, authcontext : *mut core::ffi::c_void, accept : i32, credentials : alljoyn_credentials) -> QStatus); - alljoyn_authlistener_requestcredentialsresponse(core::mem::transmute(listener), core::mem::transmute(authcontext), core::mem::transmute(accept), core::mem::transmute(credentials)) + alljoyn_authlistener_requestcredentialsresponse(listener, core::mem::transmute(authcontext), accept, credentials) } #[inline] pub unsafe fn alljoyn_authlistener_setsharedsecret(listener: alljoyn_authlistener, sharedsecret: *const u8, sharedsecretsize: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_setsharedsecret(listener : alljoyn_authlistener, sharedsecret : *const u8, sharedsecretsize : usize) -> QStatus); - alljoyn_authlistener_setsharedsecret(core::mem::transmute(listener), core::mem::transmute(sharedsecret), core::mem::transmute(sharedsecretsize)) + alljoyn_authlistener_setsharedsecret(listener, sharedsecret, sharedsecretsize) } #[inline] pub unsafe fn alljoyn_authlistener_verifycredentialsresponse(listener: alljoyn_authlistener, authcontext: *mut core::ffi::c_void, accept: i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_verifycredentialsresponse(listener : alljoyn_authlistener, authcontext : *mut core::ffi::c_void, accept : i32) -> QStatus); - alljoyn_authlistener_verifycredentialsresponse(core::mem::transmute(listener), core::mem::transmute(authcontext), core::mem::transmute(accept)) + alljoyn_authlistener_verifycredentialsresponse(listener, core::mem::transmute(authcontext), accept) } #[inline] pub unsafe fn alljoyn_authlistenerasync_create(callbacks: *const alljoyn_authlistenerasync_callbacks, context: *const core::ffi::c_void) -> alljoyn_authlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistenerasync_create(callbacks : *const alljoyn_authlistenerasync_callbacks, context : *const core::ffi::c_void) -> alljoyn_authlistener); - alljoyn_authlistenerasync_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_authlistenerasync_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_authlistenerasync_destroy(listener: alljoyn_authlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistenerasync_destroy(listener : alljoyn_authlistener)); - alljoyn_authlistenerasync_destroy(core::mem::transmute(listener)) + alljoyn_authlistenerasync_destroy(listener) } #[inline] pub unsafe fn alljoyn_autopinger_adddestination(autopinger: alljoyn_autopinger, group: P1, destination: P2) -> QStatus @@ -645,7 +645,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_adddestination(autopinger : alljoyn_autopinger, group : windows_core::PCSTR, destination : windows_core::PCSTR) -> QStatus); - alljoyn_autopinger_adddestination(core::mem::transmute(autopinger), group.param().abi(), destination.param().abi()) + alljoyn_autopinger_adddestination(autopinger, group.param().abi(), destination.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_addpinggroup(autopinger: alljoyn_autopinger, group: P1, listener: alljoyn_pinglistener, pinginterval: u32) @@ -653,22 +653,22 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_addpinggroup(autopinger : alljoyn_autopinger, group : windows_core::PCSTR, listener : alljoyn_pinglistener, pinginterval : u32)); - alljoyn_autopinger_addpinggroup(core::mem::transmute(autopinger), group.param().abi(), core::mem::transmute(listener), core::mem::transmute(pinginterval)) + alljoyn_autopinger_addpinggroup(autopinger, group.param().abi(), listener, pinginterval) } #[inline] pub unsafe fn alljoyn_autopinger_create(bus: alljoyn_busattachment) -> alljoyn_autopinger { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_create(bus : alljoyn_busattachment) -> alljoyn_autopinger); - alljoyn_autopinger_create(core::mem::transmute(bus)) + alljoyn_autopinger_create(bus) } #[inline] pub unsafe fn alljoyn_autopinger_destroy(autopinger: alljoyn_autopinger) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_destroy(autopinger : alljoyn_autopinger)); - alljoyn_autopinger_destroy(core::mem::transmute(autopinger)) + alljoyn_autopinger_destroy(autopinger) } #[inline] pub unsafe fn alljoyn_autopinger_pause(autopinger: alljoyn_autopinger) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_pause(autopinger : alljoyn_autopinger)); - alljoyn_autopinger_pause(core::mem::transmute(autopinger)) + alljoyn_autopinger_pause(autopinger) } #[inline] pub unsafe fn alljoyn_autopinger_removedestination(autopinger: alljoyn_autopinger, group: P1, destination: P2, removeall: i32) -> QStatus @@ -677,7 +677,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_removedestination(autopinger : alljoyn_autopinger, group : windows_core::PCSTR, destination : windows_core::PCSTR, removeall : i32) -> QStatus); - alljoyn_autopinger_removedestination(core::mem::transmute(autopinger), group.param().abi(), destination.param().abi(), core::mem::transmute(removeall)) + alljoyn_autopinger_removedestination(autopinger, group.param().abi(), destination.param().abi(), removeall) } #[inline] pub unsafe fn alljoyn_autopinger_removepinggroup(autopinger: alljoyn_autopinger, group: P1) @@ -685,12 +685,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_removepinggroup(autopinger : alljoyn_autopinger, group : windows_core::PCSTR)); - alljoyn_autopinger_removepinggroup(core::mem::transmute(autopinger), group.param().abi()) + alljoyn_autopinger_removepinggroup(autopinger, group.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_resume(autopinger: alljoyn_autopinger) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_resume(autopinger : alljoyn_autopinger)); - alljoyn_autopinger_resume(core::mem::transmute(autopinger)) + alljoyn_autopinger_resume(autopinger) } #[inline] pub unsafe fn alljoyn_autopinger_setpinginterval(autopinger: alljoyn_autopinger, group: P1, pinginterval: u32) -> QStatus @@ -698,7 +698,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_setpinginterval(autopinger : alljoyn_autopinger, group : windows_core::PCSTR, pinginterval : u32) -> QStatus); - alljoyn_autopinger_setpinginterval(core::mem::transmute(autopinger), group.param().abi(), core::mem::transmute(pinginterval)) + alljoyn_autopinger_setpinginterval(autopinger, group.param().abi(), pinginterval) } #[inline] pub unsafe fn alljoyn_busattachment_addlogonentry(bus: alljoyn_busattachment, authmechanism: P1, username: P2, password: P3) -> QStatus @@ -708,7 +708,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_addlogonentry(bus : alljoyn_busattachment, authmechanism : windows_core::PCSTR, username : windows_core::PCSTR, password : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_addlogonentry(core::mem::transmute(bus), authmechanism.param().abi(), username.param().abi(), password.param().abi()) + alljoyn_busattachment_addlogonentry(bus, authmechanism.param().abi(), username.param().abi(), password.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_addmatch(bus: alljoyn_busattachment, rule: P1) -> QStatus @@ -716,7 +716,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_addmatch(bus : alljoyn_busattachment, rule : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_addmatch(core::mem::transmute(bus), rule.param().abi()) + alljoyn_busattachment_addmatch(bus, rule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_advertisename(bus: alljoyn_busattachment, name: P1, transports: u16) -> QStatus @@ -724,12 +724,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_advertisename(bus : alljoyn_busattachment, name : windows_core::PCSTR, transports : u16) -> QStatus); - alljoyn_busattachment_advertisename(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(transports)) + alljoyn_busattachment_advertisename(bus, name.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_bindsessionport(bus: alljoyn_busattachment, sessionport: *mut u16, opts: alljoyn_sessionopts, listener: alljoyn_sessionportlistener) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_bindsessionport(bus : alljoyn_busattachment, sessionport : *mut u16, opts : alljoyn_sessionopts, listener : alljoyn_sessionportlistener) -> QStatus); - alljoyn_busattachment_bindsessionport(core::mem::transmute(bus), core::mem::transmute(sessionport), core::mem::transmute(opts), core::mem::transmute(listener)) + alljoyn_busattachment_bindsessionport(bus, core::mem::transmute(sessionport), opts, listener) } #[inline] pub unsafe fn alljoyn_busattachment_canceladvertisename(bus: alljoyn_busattachment, name: P1, transports: u16) -> QStatus @@ -737,7 +737,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_canceladvertisename(bus : alljoyn_busattachment, name : windows_core::PCSTR, transports : u16) -> QStatus); - alljoyn_busattachment_canceladvertisename(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(transports)) + alljoyn_busattachment_canceladvertisename(bus, name.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_cancelfindadvertisedname(bus: alljoyn_busattachment, nameprefix: P1) -> QStatus @@ -745,7 +745,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_cancelfindadvertisedname(bus : alljoyn_busattachment, nameprefix : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_cancelfindadvertisedname(core::mem::transmute(bus), nameprefix.param().abi()) + alljoyn_busattachment_cancelfindadvertisedname(bus, nameprefix.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_cancelfindadvertisednamebytransport(bus: alljoyn_busattachment, nameprefix: P1, transports: u16) -> QStatus @@ -753,7 +753,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_cancelfindadvertisednamebytransport(bus : alljoyn_busattachment, nameprefix : windows_core::PCSTR, transports : u16) -> QStatus); - alljoyn_busattachment_cancelfindadvertisednamebytransport(core::mem::transmute(bus), nameprefix.param().abi(), core::mem::transmute(transports)) + alljoyn_busattachment_cancelfindadvertisednamebytransport(bus, nameprefix.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_cancelwhoimplements_interface(bus: alljoyn_busattachment, implementsinterface: P1) -> QStatus @@ -761,12 +761,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_cancelwhoimplements_interface(bus : alljoyn_busattachment, implementsinterface : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_cancelwhoimplements_interface(core::mem::transmute(bus), implementsinterface.param().abi()) + alljoyn_busattachment_cancelwhoimplements_interface(bus, implementsinterface.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_cancelwhoimplements_interfaces(bus: alljoyn_busattachment, implementsinterfaces: *const *const i8, numberinterfaces: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_cancelwhoimplements_interfaces(bus : alljoyn_busattachment, implementsinterfaces : *const *const i8, numberinterfaces : usize) -> QStatus); - alljoyn_busattachment_cancelwhoimplements_interfaces(core::mem::transmute(bus), core::mem::transmute(implementsinterfaces), core::mem::transmute(numberinterfaces)) + alljoyn_busattachment_cancelwhoimplements_interfaces(bus, implementsinterfaces, numberinterfaces) } #[inline] pub unsafe fn alljoyn_busattachment_clearkeys(bus: alljoyn_busattachment, guid: P1) -> QStatus @@ -774,12 +774,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_clearkeys(bus : alljoyn_busattachment, guid : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_clearkeys(core::mem::transmute(bus), guid.param().abi()) + alljoyn_busattachment_clearkeys(bus, guid.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_clearkeystore(bus: alljoyn_busattachment) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_clearkeystore(bus : alljoyn_busattachment)); - alljoyn_busattachment_clearkeystore(core::mem::transmute(bus)) + alljoyn_busattachment_clearkeystore(bus) } #[inline] pub unsafe fn alljoyn_busattachment_connect(bus: alljoyn_busattachment, connectspec: P1) -> QStatus @@ -787,7 +787,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_connect(bus : alljoyn_busattachment, connectspec : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_connect(core::mem::transmute(bus), connectspec.param().abi()) + alljoyn_busattachment_connect(bus, connectspec.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_create(applicationname: P0, allowremotemessages: i32) -> alljoyn_busattachment @@ -795,7 +795,7 @@ where P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_create(applicationname : windows_core::PCSTR, allowremotemessages : i32) -> alljoyn_busattachment); - alljoyn_busattachment_create(applicationname.param().abi(), core::mem::transmute(allowremotemessages)) + alljoyn_busattachment_create(applicationname.param().abi(), allowremotemessages) } #[inline] pub unsafe fn alljoyn_busattachment_create_concurrency(applicationname: P0, allowremotemessages: i32, concurrency: u32) -> alljoyn_busattachment @@ -803,7 +803,7 @@ where P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_create_concurrency(applicationname : windows_core::PCSTR, allowremotemessages : i32, concurrency : u32) -> alljoyn_busattachment); - alljoyn_busattachment_create_concurrency(applicationname.param().abi(), core::mem::transmute(allowremotemessages), core::mem::transmute(concurrency)) + alljoyn_busattachment_create_concurrency(applicationname.param().abi(), allowremotemessages, concurrency) } #[inline] pub unsafe fn alljoyn_busattachment_createinterface(bus: alljoyn_busattachment, name: P1, iface: *mut alljoyn_interfacedescription) -> QStatus @@ -811,7 +811,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_createinterface(bus : alljoyn_busattachment, name : windows_core::PCSTR, iface : *mut alljoyn_interfacedescription) -> QStatus); - alljoyn_busattachment_createinterface(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(iface)) + alljoyn_busattachment_createinterface(bus, name.param().abi(), core::mem::transmute(iface)) } #[inline] pub unsafe fn alljoyn_busattachment_createinterface_secure(bus: alljoyn_busattachment, name: P1, iface: *mut alljoyn_interfacedescription, secpolicy: alljoyn_interfacedescription_securitypolicy) -> QStatus @@ -819,7 +819,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_createinterface_secure(bus : alljoyn_busattachment, name : windows_core::PCSTR, iface : *mut alljoyn_interfacedescription, secpolicy : alljoyn_interfacedescription_securitypolicy) -> QStatus); - alljoyn_busattachment_createinterface_secure(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(iface), core::mem::transmute(secpolicy)) + alljoyn_busattachment_createinterface_secure(bus, name.param().abi(), core::mem::transmute(iface), secpolicy) } #[inline] pub unsafe fn alljoyn_busattachment_createinterfacesfromxml(bus: alljoyn_busattachment, xml: P1) -> QStatus @@ -827,7 +827,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_createinterfacesfromxml(bus : alljoyn_busattachment, xml : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_createinterfacesfromxml(core::mem::transmute(bus), xml.param().abi()) + alljoyn_busattachment_createinterfacesfromxml(bus, xml.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_deletedefaultkeystore(applicationname: P0) -> QStatus @@ -840,12 +840,12 @@ where #[inline] pub unsafe fn alljoyn_busattachment_deleteinterface(bus: alljoyn_busattachment, iface: alljoyn_interfacedescription) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_deleteinterface(bus : alljoyn_busattachment, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_busattachment_deleteinterface(core::mem::transmute(bus), core::mem::transmute(iface)) + alljoyn_busattachment_deleteinterface(bus, iface) } #[inline] pub unsafe fn alljoyn_busattachment_destroy(bus: alljoyn_busattachment) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_destroy(bus : alljoyn_busattachment)); - alljoyn_busattachment_destroy(core::mem::transmute(bus)) + alljoyn_busattachment_destroy(bus) } #[inline] pub unsafe fn alljoyn_busattachment_disconnect(bus: alljoyn_busattachment, unused: P1) -> QStatus @@ -853,12 +853,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_disconnect(bus : alljoyn_busattachment, unused : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_disconnect(core::mem::transmute(bus), unused.param().abi()) + alljoyn_busattachment_disconnect(bus, unused.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_enableconcurrentcallbacks(bus: alljoyn_busattachment) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_enableconcurrentcallbacks(bus : alljoyn_busattachment)); - alljoyn_busattachment_enableconcurrentcallbacks(core::mem::transmute(bus)) + alljoyn_busattachment_enableconcurrentcallbacks(bus) } #[inline] pub unsafe fn alljoyn_busattachment_enablepeersecurity(bus: alljoyn_busattachment, authmechanisms: P1, listener: alljoyn_authlistener, keystorefilename: P3, isshared: i32) -> QStatus @@ -867,7 +867,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_enablepeersecurity(bus : alljoyn_busattachment, authmechanisms : windows_core::PCSTR, listener : alljoyn_authlistener, keystorefilename : windows_core::PCSTR, isshared : i32) -> QStatus); - alljoyn_busattachment_enablepeersecurity(core::mem::transmute(bus), authmechanisms.param().abi(), core::mem::transmute(listener), keystorefilename.param().abi(), core::mem::transmute(isshared)) + alljoyn_busattachment_enablepeersecurity(bus, authmechanisms.param().abi(), listener, keystorefilename.param().abi(), isshared) } #[inline] pub unsafe fn alljoyn_busattachment_enablepeersecuritywithpermissionconfigurationlistener(bus: alljoyn_busattachment, authmechanisms: P1, authlistener: alljoyn_authlistener, keystorefilename: P3, isshared: i32, permissionconfigurationlistener: alljoyn_permissionconfigurationlistener) -> QStatus @@ -876,7 +876,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_enablepeersecuritywithpermissionconfigurationlistener(bus : alljoyn_busattachment, authmechanisms : windows_core::PCSTR, authlistener : alljoyn_authlistener, keystorefilename : windows_core::PCSTR, isshared : i32, permissionconfigurationlistener : alljoyn_permissionconfigurationlistener) -> QStatus); - alljoyn_busattachment_enablepeersecuritywithpermissionconfigurationlistener(core::mem::transmute(bus), authmechanisms.param().abi(), core::mem::transmute(authlistener), keystorefilename.param().abi(), core::mem::transmute(isshared), core::mem::transmute(permissionconfigurationlistener)) + alljoyn_busattachment_enablepeersecuritywithpermissionconfigurationlistener(bus, authmechanisms.param().abi(), authlistener, keystorefilename.param().abi(), isshared, permissionconfigurationlistener) } #[inline] pub unsafe fn alljoyn_busattachment_findadvertisedname(bus: alljoyn_busattachment, nameprefix: P1) -> QStatus @@ -884,7 +884,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_findadvertisedname(bus : alljoyn_busattachment, nameprefix : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_findadvertisedname(core::mem::transmute(bus), nameprefix.param().abi()) + alljoyn_busattachment_findadvertisedname(bus, nameprefix.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_findadvertisednamebytransport(bus: alljoyn_busattachment, nameprefix: P1, transports: u16) -> QStatus @@ -892,37 +892,37 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_findadvertisednamebytransport(bus : alljoyn_busattachment, nameprefix : windows_core::PCSTR, transports : u16) -> QStatus); - alljoyn_busattachment_findadvertisednamebytransport(core::mem::transmute(bus), nameprefix.param().abi(), core::mem::transmute(transports)) + alljoyn_busattachment_findadvertisednamebytransport(bus, nameprefix.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_getalljoyndebugobj(bus: alljoyn_busattachment) -> alljoyn_proxybusobject { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getalljoyndebugobj(bus : alljoyn_busattachment) -> alljoyn_proxybusobject); - alljoyn_busattachment_getalljoyndebugobj(core::mem::transmute(bus)) + alljoyn_busattachment_getalljoyndebugobj(bus) } #[inline] pub unsafe fn alljoyn_busattachment_getalljoynproxyobj(bus: alljoyn_busattachment) -> alljoyn_proxybusobject { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getalljoynproxyobj(bus : alljoyn_busattachment) -> alljoyn_proxybusobject); - alljoyn_busattachment_getalljoynproxyobj(core::mem::transmute(bus)) + alljoyn_busattachment_getalljoynproxyobj(bus) } #[inline] pub unsafe fn alljoyn_busattachment_getconcurrency(bus: alljoyn_busattachment) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getconcurrency(bus : alljoyn_busattachment) -> u32); - alljoyn_busattachment_getconcurrency(core::mem::transmute(bus)) + alljoyn_busattachment_getconcurrency(bus) } #[inline] pub unsafe fn alljoyn_busattachment_getconnectspec(bus: alljoyn_busattachment) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getconnectspec(bus : alljoyn_busattachment) -> windows_core::PCSTR); - alljoyn_busattachment_getconnectspec(core::mem::transmute(bus)) + alljoyn_busattachment_getconnectspec(bus) } #[inline] pub unsafe fn alljoyn_busattachment_getdbusproxyobj(bus: alljoyn_busattachment) -> alljoyn_proxybusobject { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getdbusproxyobj(bus : alljoyn_busattachment) -> alljoyn_proxybusobject); - alljoyn_busattachment_getdbusproxyobj(core::mem::transmute(bus)) + alljoyn_busattachment_getdbusproxyobj(bus) } #[inline] pub unsafe fn alljoyn_busattachment_getglobalguidstring(bus: alljoyn_busattachment) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getglobalguidstring(bus : alljoyn_busattachment) -> windows_core::PCSTR); - alljoyn_busattachment_getglobalguidstring(core::mem::transmute(bus)) + alljoyn_busattachment_getglobalguidstring(bus) } #[inline] pub unsafe fn alljoyn_busattachment_getinterface(bus: alljoyn_busattachment, name: P1) -> alljoyn_interfacedescription @@ -930,12 +930,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getinterface(bus : alljoyn_busattachment, name : windows_core::PCSTR) -> alljoyn_interfacedescription); - alljoyn_busattachment_getinterface(core::mem::transmute(bus), name.param().abi()) + alljoyn_busattachment_getinterface(bus, name.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getinterfaces(bus: alljoyn_busattachment, ifaces: *const alljoyn_interfacedescription, numifaces: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getinterfaces(bus : alljoyn_busattachment, ifaces : *const alljoyn_interfacedescription, numifaces : usize) -> usize); - alljoyn_busattachment_getinterfaces(core::mem::transmute(bus), core::mem::transmute(ifaces), core::mem::transmute(numifaces)) + alljoyn_busattachment_getinterfaces(bus, ifaces, numifaces) } #[inline] pub unsafe fn alljoyn_busattachment_getkeyexpiration(bus: alljoyn_busattachment, guid: P1, timeout: *mut u32) -> QStatus @@ -943,7 +943,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getkeyexpiration(bus : alljoyn_busattachment, guid : windows_core::PCSTR, timeout : *mut u32) -> QStatus); - alljoyn_busattachment_getkeyexpiration(core::mem::transmute(bus), guid.param().abi(), core::mem::transmute(timeout)) + alljoyn_busattachment_getkeyexpiration(bus, guid.param().abi(), core::mem::transmute(timeout)) } #[inline] pub unsafe fn alljoyn_busattachment_getpeerguid(bus: alljoyn_busattachment, name: P1, guid: P2, guidsz: *mut usize) -> QStatus @@ -952,12 +952,12 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getpeerguid(bus : alljoyn_busattachment, name : windows_core::PCSTR, guid : windows_core::PCSTR, guidsz : *mut usize) -> QStatus); - alljoyn_busattachment_getpeerguid(core::mem::transmute(bus), name.param().abi(), guid.param().abi(), core::mem::transmute(guidsz)) + alljoyn_busattachment_getpeerguid(bus, name.param().abi(), guid.param().abi(), core::mem::transmute(guidsz)) } #[inline] pub unsafe fn alljoyn_busattachment_getpermissionconfigurator(bus: alljoyn_busattachment) -> alljoyn_permissionconfigurator { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getpermissionconfigurator(bus : alljoyn_busattachment) -> alljoyn_permissionconfigurator); - alljoyn_busattachment_getpermissionconfigurator(core::mem::transmute(bus)) + alljoyn_busattachment_getpermissionconfigurator(bus) } #[inline] pub unsafe fn alljoyn_busattachment_gettimestamp() -> u32 { @@ -967,32 +967,32 @@ pub unsafe fn alljoyn_busattachment_gettimestamp() -> u32 { #[inline] pub unsafe fn alljoyn_busattachment_getuniquename(bus: alljoyn_busattachment) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getuniquename(bus : alljoyn_busattachment) -> windows_core::PCSTR); - alljoyn_busattachment_getuniquename(core::mem::transmute(bus)) + alljoyn_busattachment_getuniquename(bus) } #[inline] pub unsafe fn alljoyn_busattachment_isconnected(bus: alljoyn_busattachment) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_isconnected(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_isconnected(core::mem::transmute(bus)) + alljoyn_busattachment_isconnected(bus) } #[inline] pub unsafe fn alljoyn_busattachment_ispeersecurityenabled(bus: alljoyn_busattachment) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_ispeersecurityenabled(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_ispeersecurityenabled(core::mem::transmute(bus)) + alljoyn_busattachment_ispeersecurityenabled(bus) } #[inline] pub unsafe fn alljoyn_busattachment_isstarted(bus: alljoyn_busattachment) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_isstarted(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_isstarted(core::mem::transmute(bus)) + alljoyn_busattachment_isstarted(bus) } #[inline] pub unsafe fn alljoyn_busattachment_isstopping(bus: alljoyn_busattachment) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_isstopping(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_isstopping(core::mem::transmute(bus)) + alljoyn_busattachment_isstopping(bus) } #[inline] pub unsafe fn alljoyn_busattachment_join(bus: alljoyn_busattachment) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_join(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_join(core::mem::transmute(bus)) + alljoyn_busattachment_join(bus) } #[inline] pub unsafe fn alljoyn_busattachment_joinsession(bus: alljoyn_busattachment, sessionhost: P1, sessionport: u16, listener: alljoyn_sessionlistener, sessionid: *mut u32, opts: alljoyn_sessionopts) -> QStatus @@ -1000,7 +1000,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_joinsession(bus : alljoyn_busattachment, sessionhost : windows_core::PCSTR, sessionport : u16, listener : alljoyn_sessionlistener, sessionid : *mut u32, opts : alljoyn_sessionopts) -> QStatus); - alljoyn_busattachment_joinsession(core::mem::transmute(bus), sessionhost.param().abi(), core::mem::transmute(sessionport), core::mem::transmute(listener), core::mem::transmute(sessionid), core::mem::transmute(opts)) + alljoyn_busattachment_joinsession(bus, sessionhost.param().abi(), sessionport, listener, core::mem::transmute(sessionid), opts) } #[inline] pub unsafe fn alljoyn_busattachment_joinsessionasync(bus: alljoyn_busattachment, sessionhost: P1, sessionport: u16, listener: alljoyn_sessionlistener, opts: alljoyn_sessionopts, callback: alljoyn_busattachment_joinsessioncb_ptr, context: *mut core::ffi::c_void) -> QStatus @@ -1008,12 +1008,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_joinsessionasync(bus : alljoyn_busattachment, sessionhost : windows_core::PCSTR, sessionport : u16, listener : alljoyn_sessionlistener, opts : alljoyn_sessionopts, callback : alljoyn_busattachment_joinsessioncb_ptr, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_busattachment_joinsessionasync(core::mem::transmute(bus), sessionhost.param().abi(), core::mem::transmute(sessionport), core::mem::transmute(listener), core::mem::transmute(opts), core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_busattachment_joinsessionasync(bus, sessionhost.param().abi(), sessionport, listener, opts, callback, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_busattachment_leavesession(bus: alljoyn_busattachment, sessionid: u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_leavesession(bus : alljoyn_busattachment, sessionid : u32) -> QStatus); - alljoyn_busattachment_leavesession(core::mem::transmute(bus), core::mem::transmute(sessionid)) + alljoyn_busattachment_leavesession(bus, sessionid) } #[inline] pub unsafe fn alljoyn_busattachment_namehasowner(bus: alljoyn_busattachment, name: P1, hasowner: *mut i32) -> QStatus @@ -1021,7 +1021,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_namehasowner(bus : alljoyn_busattachment, name : windows_core::PCSTR, hasowner : *mut i32) -> QStatus); - alljoyn_busattachment_namehasowner(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(hasowner)) + alljoyn_busattachment_namehasowner(bus, name.param().abi(), core::mem::transmute(hasowner)) } #[inline] pub unsafe fn alljoyn_busattachment_ping(bus: alljoyn_busattachment, name: P1, timeout: u32) -> QStatus @@ -1029,37 +1029,37 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_ping(bus : alljoyn_busattachment, name : windows_core::PCSTR, timeout : u32) -> QStatus); - alljoyn_busattachment_ping(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(timeout)) + alljoyn_busattachment_ping(bus, name.param().abi(), timeout) } #[inline] pub unsafe fn alljoyn_busattachment_registeraboutlistener(bus: alljoyn_busattachment, aboutlistener: alljoyn_aboutlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registeraboutlistener(bus : alljoyn_busattachment, aboutlistener : alljoyn_aboutlistener)); - alljoyn_busattachment_registeraboutlistener(core::mem::transmute(bus), core::mem::transmute(aboutlistener)) + alljoyn_busattachment_registeraboutlistener(bus, aboutlistener) } #[inline] pub unsafe fn alljoyn_busattachment_registerapplicationstatelistener(bus: alljoyn_busattachment, listener: alljoyn_applicationstatelistener) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerapplicationstatelistener(bus : alljoyn_busattachment, listener : alljoyn_applicationstatelistener) -> QStatus); - alljoyn_busattachment_registerapplicationstatelistener(core::mem::transmute(bus), core::mem::transmute(listener)) + alljoyn_busattachment_registerapplicationstatelistener(bus, listener) } #[inline] pub unsafe fn alljoyn_busattachment_registerbuslistener(bus: alljoyn_busattachment, listener: alljoyn_buslistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerbuslistener(bus : alljoyn_busattachment, listener : alljoyn_buslistener)); - alljoyn_busattachment_registerbuslistener(core::mem::transmute(bus), core::mem::transmute(listener)) + alljoyn_busattachment_registerbuslistener(bus, listener) } #[inline] pub unsafe fn alljoyn_busattachment_registerbusobject(bus: alljoyn_busattachment, obj: alljoyn_busobject) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerbusobject(bus : alljoyn_busattachment, obj : alljoyn_busobject) -> QStatus); - alljoyn_busattachment_registerbusobject(core::mem::transmute(bus), core::mem::transmute(obj)) + alljoyn_busattachment_registerbusobject(bus, obj) } #[inline] pub unsafe fn alljoyn_busattachment_registerbusobject_secure(bus: alljoyn_busattachment, obj: alljoyn_busobject) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerbusobject_secure(bus : alljoyn_busattachment, obj : alljoyn_busobject) -> QStatus); - alljoyn_busattachment_registerbusobject_secure(core::mem::transmute(bus), core::mem::transmute(obj)) + alljoyn_busattachment_registerbusobject_secure(bus, obj) } #[inline] pub unsafe fn alljoyn_busattachment_registerkeystorelistener(bus: alljoyn_busattachment, listener: alljoyn_keystorelistener) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerkeystorelistener(bus : alljoyn_busattachment, listener : alljoyn_keystorelistener) -> QStatus); - alljoyn_busattachment_registerkeystorelistener(core::mem::transmute(bus), core::mem::transmute(listener)) + alljoyn_busattachment_registerkeystorelistener(bus, listener) } #[inline] pub unsafe fn alljoyn_busattachment_registersignalhandler(bus: alljoyn_busattachment, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, srcpath: P3) -> QStatus @@ -1067,7 +1067,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registersignalhandler(bus : alljoyn_busattachment, signal_handler : alljoyn_messagereceiver_signalhandler_ptr, member : alljoyn_interfacedescription_member, srcpath : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_registersignalhandler(core::mem::transmute(bus), core::mem::transmute(signal_handler), core::mem::transmute(member), srcpath.param().abi()) + alljoyn_busattachment_registersignalhandler(bus, signal_handler, core::mem::transmute(member), srcpath.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registersignalhandlerwithrule(bus: alljoyn_busattachment, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, matchrule: P3) -> QStatus @@ -1075,7 +1075,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registersignalhandlerwithrule(bus : alljoyn_busattachment, signal_handler : alljoyn_messagereceiver_signalhandler_ptr, member : alljoyn_interfacedescription_member, matchrule : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_registersignalhandlerwithrule(core::mem::transmute(bus), core::mem::transmute(signal_handler), core::mem::transmute(member), matchrule.param().abi()) + alljoyn_busattachment_registersignalhandlerwithrule(bus, signal_handler, core::mem::transmute(member), matchrule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_releasename(bus: alljoyn_busattachment, name: P1) -> QStatus @@ -1083,12 +1083,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_releasename(bus : alljoyn_busattachment, name : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_releasename(core::mem::transmute(bus), name.param().abi()) + alljoyn_busattachment_releasename(bus, name.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_reloadkeystore(bus: alljoyn_busattachment) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_reloadkeystore(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_reloadkeystore(core::mem::transmute(bus)) + alljoyn_busattachment_reloadkeystore(bus) } #[inline] pub unsafe fn alljoyn_busattachment_removematch(bus: alljoyn_busattachment, rule: P1) -> QStatus @@ -1096,7 +1096,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_removematch(bus : alljoyn_busattachment, rule : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_removematch(core::mem::transmute(bus), rule.param().abi()) + alljoyn_busattachment_removematch(bus, rule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_removesessionmember(bus: alljoyn_busattachment, sessionid: u32, membername: P2) -> QStatus @@ -1104,7 +1104,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_removesessionmember(bus : alljoyn_busattachment, sessionid : u32, membername : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_removesessionmember(core::mem::transmute(bus), core::mem::transmute(sessionid), membername.param().abi()) + alljoyn_busattachment_removesessionmember(bus, sessionid, membername.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_requestname(bus: alljoyn_busattachment, requestedname: P1, flags: u32) -> QStatus @@ -1112,7 +1112,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_requestname(bus : alljoyn_busattachment, requestedname : windows_core::PCSTR, flags : u32) -> QStatus); - alljoyn_busattachment_requestname(core::mem::transmute(bus), requestedname.param().abi(), core::mem::transmute(flags)) + alljoyn_busattachment_requestname(bus, requestedname.param().abi(), flags) } #[inline] pub unsafe fn alljoyn_busattachment_secureconnection(bus: alljoyn_busattachment, name: P1, forceauth: i32) -> QStatus @@ -1120,7 +1120,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_secureconnection(bus : alljoyn_busattachment, name : windows_core::PCSTR, forceauth : i32) -> QStatus); - alljoyn_busattachment_secureconnection(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(forceauth)) + alljoyn_busattachment_secureconnection(bus, name.param().abi(), forceauth) } #[inline] pub unsafe fn alljoyn_busattachment_secureconnectionasync(bus: alljoyn_busattachment, name: P1, forceauth: i32) -> QStatus @@ -1128,7 +1128,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_secureconnectionasync(bus : alljoyn_busattachment, name : windows_core::PCSTR, forceauth : i32) -> QStatus); - alljoyn_busattachment_secureconnectionasync(core::mem::transmute(bus), name.param().abi(), core::mem::transmute(forceauth)) + alljoyn_busattachment_secureconnectionasync(bus, name.param().abi(), forceauth) } #[inline] pub unsafe fn alljoyn_busattachment_setdaemondebug(bus: alljoyn_busattachment, module: P1, level: u32) -> QStatus @@ -1136,7 +1136,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setdaemondebug(bus : alljoyn_busattachment, module : windows_core::PCSTR, level : u32) -> QStatus); - alljoyn_busattachment_setdaemondebug(core::mem::transmute(bus), module.param().abi(), core::mem::transmute(level)) + alljoyn_busattachment_setdaemondebug(bus, module.param().abi(), level) } #[inline] pub unsafe fn alljoyn_busattachment_setkeyexpiration(bus: alljoyn_busattachment, guid: P1, timeout: u32) -> QStatus @@ -1144,67 +1144,67 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setkeyexpiration(bus : alljoyn_busattachment, guid : windows_core::PCSTR, timeout : u32) -> QStatus); - alljoyn_busattachment_setkeyexpiration(core::mem::transmute(bus), guid.param().abi(), core::mem::transmute(timeout)) + alljoyn_busattachment_setkeyexpiration(bus, guid.param().abi(), timeout) } #[inline] pub unsafe fn alljoyn_busattachment_setlinktimeout(bus: alljoyn_busattachment, sessionid: u32, linktimeout: *mut u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setlinktimeout(bus : alljoyn_busattachment, sessionid : u32, linktimeout : *mut u32) -> QStatus); - alljoyn_busattachment_setlinktimeout(core::mem::transmute(bus), core::mem::transmute(sessionid), core::mem::transmute(linktimeout)) + alljoyn_busattachment_setlinktimeout(bus, sessionid, core::mem::transmute(linktimeout)) } #[inline] pub unsafe fn alljoyn_busattachment_setlinktimeoutasync(bus: alljoyn_busattachment, sessionid: u32, linktimeout: u32, callback: alljoyn_busattachment_setlinktimeoutcb_ptr, context: *mut core::ffi::c_void) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setlinktimeoutasync(bus : alljoyn_busattachment, sessionid : u32, linktimeout : u32, callback : alljoyn_busattachment_setlinktimeoutcb_ptr, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_busattachment_setlinktimeoutasync(core::mem::transmute(bus), core::mem::transmute(sessionid), core::mem::transmute(linktimeout), core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_busattachment_setlinktimeoutasync(bus, sessionid, linktimeout, callback, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_busattachment_setsessionlistener(bus: alljoyn_busattachment, sessionid: u32, listener: alljoyn_sessionlistener) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setsessionlistener(bus : alljoyn_busattachment, sessionid : u32, listener : alljoyn_sessionlistener) -> QStatus); - alljoyn_busattachment_setsessionlistener(core::mem::transmute(bus), core::mem::transmute(sessionid), core::mem::transmute(listener)) + alljoyn_busattachment_setsessionlistener(bus, sessionid, listener) } #[inline] pub unsafe fn alljoyn_busattachment_start(bus: alljoyn_busattachment) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_start(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_start(core::mem::transmute(bus)) + alljoyn_busattachment_start(bus) } #[inline] pub unsafe fn alljoyn_busattachment_stop(bus: alljoyn_busattachment) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_stop(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_stop(core::mem::transmute(bus)) + alljoyn_busattachment_stop(bus) } #[inline] pub unsafe fn alljoyn_busattachment_unbindsessionport(bus: alljoyn_busattachment, sessionport: u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unbindsessionport(bus : alljoyn_busattachment, sessionport : u16) -> QStatus); - alljoyn_busattachment_unbindsessionport(core::mem::transmute(bus), core::mem::transmute(sessionport)) + alljoyn_busattachment_unbindsessionport(bus, sessionport) } #[inline] pub unsafe fn alljoyn_busattachment_unregisteraboutlistener(bus: alljoyn_busattachment, aboutlistener: alljoyn_aboutlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisteraboutlistener(bus : alljoyn_busattachment, aboutlistener : alljoyn_aboutlistener)); - alljoyn_busattachment_unregisteraboutlistener(core::mem::transmute(bus), core::mem::transmute(aboutlistener)) + alljoyn_busattachment_unregisteraboutlistener(bus, aboutlistener) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterallaboutlisteners(bus: alljoyn_busattachment) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterallaboutlisteners(bus : alljoyn_busattachment)); - alljoyn_busattachment_unregisterallaboutlisteners(core::mem::transmute(bus)) + alljoyn_busattachment_unregisterallaboutlisteners(bus) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterallhandlers(bus: alljoyn_busattachment) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterallhandlers(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_unregisterallhandlers(core::mem::transmute(bus)) + alljoyn_busattachment_unregisterallhandlers(bus) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterapplicationstatelistener(bus: alljoyn_busattachment, listener: alljoyn_applicationstatelistener) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterapplicationstatelistener(bus : alljoyn_busattachment, listener : alljoyn_applicationstatelistener) -> QStatus); - alljoyn_busattachment_unregisterapplicationstatelistener(core::mem::transmute(bus), core::mem::transmute(listener)) + alljoyn_busattachment_unregisterapplicationstatelistener(bus, listener) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterbuslistener(bus: alljoyn_busattachment, listener: alljoyn_buslistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterbuslistener(bus : alljoyn_busattachment, listener : alljoyn_buslistener)); - alljoyn_busattachment_unregisterbuslistener(core::mem::transmute(bus), core::mem::transmute(listener)) + alljoyn_busattachment_unregisterbuslistener(bus, listener) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterbusobject(bus: alljoyn_busattachment, object: alljoyn_busobject) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterbusobject(bus : alljoyn_busattachment, object : alljoyn_busobject)); - alljoyn_busattachment_unregisterbusobject(core::mem::transmute(bus), core::mem::transmute(object)) + alljoyn_busattachment_unregisterbusobject(bus, object) } #[inline] pub unsafe fn alljoyn_busattachment_unregistersignalhandler(bus: alljoyn_busattachment, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, srcpath: P3) -> QStatus @@ -1212,7 +1212,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregistersignalhandler(bus : alljoyn_busattachment, signal_handler : alljoyn_messagereceiver_signalhandler_ptr, member : alljoyn_interfacedescription_member, srcpath : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_unregistersignalhandler(core::mem::transmute(bus), core::mem::transmute(signal_handler), core::mem::transmute(member), srcpath.param().abi()) + alljoyn_busattachment_unregistersignalhandler(bus, signal_handler, core::mem::transmute(member), srcpath.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregistersignalhandlerwithrule(bus: alljoyn_busattachment, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, matchrule: P3) -> QStatus @@ -1220,7 +1220,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregistersignalhandlerwithrule(bus : alljoyn_busattachment, signal_handler : alljoyn_messagereceiver_signalhandler_ptr, member : alljoyn_interfacedescription_member, matchrule : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_unregistersignalhandlerwithrule(core::mem::transmute(bus), core::mem::transmute(signal_handler), core::mem::transmute(member), matchrule.param().abi()) + alljoyn_busattachment_unregistersignalhandlerwithrule(bus, signal_handler, core::mem::transmute(member), matchrule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_whoimplements_interface(bus: alljoyn_busattachment, implementsinterface: P1) -> QStatus @@ -1228,52 +1228,52 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_whoimplements_interface(bus : alljoyn_busattachment, implementsinterface : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_whoimplements_interface(core::mem::transmute(bus), implementsinterface.param().abi()) + alljoyn_busattachment_whoimplements_interface(bus, implementsinterface.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_whoimplements_interfaces(bus: alljoyn_busattachment, implementsinterfaces: *const *const i8, numberinterfaces: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_whoimplements_interfaces(bus : alljoyn_busattachment, implementsinterfaces : *const *const i8, numberinterfaces : usize) -> QStatus); - alljoyn_busattachment_whoimplements_interfaces(core::mem::transmute(bus), core::mem::transmute(implementsinterfaces), core::mem::transmute(numberinterfaces)) + alljoyn_busattachment_whoimplements_interfaces(bus, implementsinterfaces, numberinterfaces) } #[inline] pub unsafe fn alljoyn_buslistener_create(callbacks: *const alljoyn_buslistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_buslistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_buslistener_create(callbacks : *const alljoyn_buslistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_buslistener); - alljoyn_buslistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_buslistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_buslistener_destroy(listener: alljoyn_buslistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_buslistener_destroy(listener : alljoyn_buslistener)); - alljoyn_buslistener_destroy(core::mem::transmute(listener)) + alljoyn_buslistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_busobject_addinterface(bus: alljoyn_busobject, iface: alljoyn_interfacedescription) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addinterface(bus : alljoyn_busobject, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_busobject_addinterface(core::mem::transmute(bus), core::mem::transmute(iface)) + alljoyn_busobject_addinterface(bus, iface) } #[inline] pub unsafe fn alljoyn_busobject_addinterface_announced(bus: alljoyn_busobject, iface: alljoyn_interfacedescription) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addinterface_announced(bus : alljoyn_busobject, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_busobject_addinterface_announced(core::mem::transmute(bus), core::mem::transmute(iface)) + alljoyn_busobject_addinterface_announced(bus, iface) } #[inline] pub unsafe fn alljoyn_busobject_addmethodhandler(bus: alljoyn_busobject, member: alljoyn_interfacedescription_member, handler: alljoyn_messagereceiver_methodhandler_ptr, context: *mut core::ffi::c_void) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addmethodhandler(bus : alljoyn_busobject, member : alljoyn_interfacedescription_member, handler : alljoyn_messagereceiver_methodhandler_ptr, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_busobject_addmethodhandler(core::mem::transmute(bus), core::mem::transmute(member), core::mem::transmute(handler), core::mem::transmute(context)) + alljoyn_busobject_addmethodhandler(bus, core::mem::transmute(member), handler, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_busobject_addmethodhandlers(bus: alljoyn_busobject, entries: *const alljoyn_busobject_methodentry, numentries: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addmethodhandlers(bus : alljoyn_busobject, entries : *const alljoyn_busobject_methodentry, numentries : usize) -> QStatus); - alljoyn_busobject_addmethodhandlers(core::mem::transmute(bus), core::mem::transmute(entries), core::mem::transmute(numentries)) + alljoyn_busobject_addmethodhandlers(bus, entries, numentries) } #[inline] pub unsafe fn alljoyn_busobject_cancelsessionlessmessage(bus: alljoyn_busobject, msg: alljoyn_message) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_cancelsessionlessmessage(bus : alljoyn_busobject, msg : alljoyn_message) -> QStatus); - alljoyn_busobject_cancelsessionlessmessage(core::mem::transmute(bus), core::mem::transmute(msg)) + alljoyn_busobject_cancelsessionlessmessage(bus, msg) } #[inline] pub unsafe fn alljoyn_busobject_cancelsessionlessmessage_serial(bus: alljoyn_busobject, serialnumber: u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_cancelsessionlessmessage_serial(bus : alljoyn_busobject, serialnumber : u32) -> QStatus); - alljoyn_busobject_cancelsessionlessmessage_serial(core::mem::transmute(bus), core::mem::transmute(serialnumber)) + alljoyn_busobject_cancelsessionlessmessage_serial(bus, serialnumber) } #[inline] pub unsafe fn alljoyn_busobject_create(path: P0, isplaceholder: i32, callbacks_in: *const alljoyn_busobject_callbacks, context_in: *const core::ffi::c_void) -> alljoyn_busobject @@ -1281,12 +1281,12 @@ where P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_create(path : windows_core::PCSTR, isplaceholder : i32, callbacks_in : *const alljoyn_busobject_callbacks, context_in : *const core::ffi::c_void) -> alljoyn_busobject); - alljoyn_busobject_create(path.param().abi(), core::mem::transmute(isplaceholder), core::mem::transmute(callbacks_in), core::mem::transmute(context_in)) + alljoyn_busobject_create(path.param().abi(), isplaceholder, callbacks_in, context_in) } #[inline] pub unsafe fn alljoyn_busobject_destroy(bus: alljoyn_busobject) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_destroy(bus : alljoyn_busobject)); - alljoyn_busobject_destroy(core::mem::transmute(bus)) + alljoyn_busobject_destroy(bus) } #[inline] pub unsafe fn alljoyn_busobject_emitpropertieschanged(bus: alljoyn_busobject, ifcname: P1, propnames: *const *const i8, numprops: usize, id: u32) @@ -1294,7 +1294,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_emitpropertieschanged(bus : alljoyn_busobject, ifcname : windows_core::PCSTR, propnames : *const *const i8, numprops : usize, id : u32)); - alljoyn_busobject_emitpropertieschanged(core::mem::transmute(bus), ifcname.param().abi(), core::mem::transmute(propnames), core::mem::transmute(numprops), core::mem::transmute(id)) + alljoyn_busobject_emitpropertieschanged(bus, ifcname.param().abi(), propnames, numprops, id) } #[inline] pub unsafe fn alljoyn_busobject_emitpropertychanged(bus: alljoyn_busobject, ifcname: P1, propname: P2, val: alljoyn_msgarg, id: u32) @@ -1303,17 +1303,17 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_emitpropertychanged(bus : alljoyn_busobject, ifcname : windows_core::PCSTR, propname : windows_core::PCSTR, val : alljoyn_msgarg, id : u32)); - alljoyn_busobject_emitpropertychanged(core::mem::transmute(bus), ifcname.param().abi(), propname.param().abi(), core::mem::transmute(val), core::mem::transmute(id)) + alljoyn_busobject_emitpropertychanged(bus, ifcname.param().abi(), propname.param().abi(), val, id) } #[inline] pub unsafe fn alljoyn_busobject_getannouncedinterfacenames(bus: alljoyn_busobject, interfaces: *const *const i8, numinterfaces: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getannouncedinterfacenames(bus : alljoyn_busobject, interfaces : *const *const i8, numinterfaces : usize) -> usize); - alljoyn_busobject_getannouncedinterfacenames(core::mem::transmute(bus), core::mem::transmute(interfaces), core::mem::transmute(numinterfaces)) + alljoyn_busobject_getannouncedinterfacenames(bus, interfaces, numinterfaces) } #[inline] pub unsafe fn alljoyn_busobject_getbusattachment(bus: alljoyn_busobject) -> alljoyn_busattachment { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getbusattachment(bus : alljoyn_busobject) -> alljoyn_busattachment); - alljoyn_busobject_getbusattachment(core::mem::transmute(bus)) + alljoyn_busobject_getbusattachment(bus) } #[inline] pub unsafe fn alljoyn_busobject_getname(bus: alljoyn_busobject, buffer: P1, buffersz: usize) -> usize @@ -1321,22 +1321,22 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getname(bus : alljoyn_busobject, buffer : windows_core::PCSTR, buffersz : usize) -> usize); - alljoyn_busobject_getname(core::mem::transmute(bus), buffer.param().abi(), core::mem::transmute(buffersz)) + alljoyn_busobject_getname(bus, buffer.param().abi(), buffersz) } #[inline] pub unsafe fn alljoyn_busobject_getpath(bus: alljoyn_busobject) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getpath(bus : alljoyn_busobject) -> windows_core::PCSTR); - alljoyn_busobject_getpath(core::mem::transmute(bus)) + alljoyn_busobject_getpath(bus) } #[inline] pub unsafe fn alljoyn_busobject_issecure(bus: alljoyn_busobject) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_issecure(bus : alljoyn_busobject) -> i32); - alljoyn_busobject_issecure(core::mem::transmute(bus)) + alljoyn_busobject_issecure(bus) } #[inline] pub unsafe fn alljoyn_busobject_methodreply_args(bus: alljoyn_busobject, msg: alljoyn_message, args: alljoyn_msgarg, numargs: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_methodreply_args(bus : alljoyn_busobject, msg : alljoyn_message, args : alljoyn_msgarg, numargs : usize) -> QStatus); - alljoyn_busobject_methodreply_args(core::mem::transmute(bus), core::mem::transmute(msg), core::mem::transmute(args), core::mem::transmute(numargs)) + alljoyn_busobject_methodreply_args(bus, msg, args, numargs) } #[inline] pub unsafe fn alljoyn_busobject_methodreply_err(bus: alljoyn_busobject, msg: alljoyn_message, error: P2, errormessage: P3) -> QStatus @@ -1345,17 +1345,17 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_methodreply_err(bus : alljoyn_busobject, msg : alljoyn_message, error : windows_core::PCSTR, errormessage : windows_core::PCSTR) -> QStatus); - alljoyn_busobject_methodreply_err(core::mem::transmute(bus), core::mem::transmute(msg), error.param().abi(), errormessage.param().abi()) + alljoyn_busobject_methodreply_err(bus, msg, error.param().abi(), errormessage.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_methodreply_status(bus: alljoyn_busobject, msg: alljoyn_message, status: QStatus) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_methodreply_status(bus : alljoyn_busobject, msg : alljoyn_message, status : QStatus) -> QStatus); - alljoyn_busobject_methodreply_status(core::mem::transmute(bus), core::mem::transmute(msg), core::mem::transmute(status)) + alljoyn_busobject_methodreply_status(bus, msg, status) } #[inline] pub unsafe fn alljoyn_busobject_setannounceflag(bus: alljoyn_busobject, iface: alljoyn_interfacedescription, isannounced: alljoyn_about_announceflag) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_setannounceflag(bus : alljoyn_busobject, iface : alljoyn_interfacedescription, isannounced : alljoyn_about_announceflag) -> QStatus); - alljoyn_busobject_setannounceflag(core::mem::transmute(bus), core::mem::transmute(iface), core::mem::transmute(isannounced)) + alljoyn_busobject_setannounceflag(bus, iface, isannounced) } #[inline] pub unsafe fn alljoyn_busobject_signal(bus: alljoyn_busobject, destination: P1, sessionid: u32, signal: alljoyn_interfacedescription_member, args: alljoyn_msgarg, numargs: usize, timetolive: u16, flags: u8, msg: alljoyn_message) -> QStatus @@ -1363,12 +1363,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_signal(bus : alljoyn_busobject, destination : windows_core::PCSTR, sessionid : u32, signal : alljoyn_interfacedescription_member, args : alljoyn_msgarg, numargs : usize, timetolive : u16, flags : u8, msg : alljoyn_message) -> QStatus); - alljoyn_busobject_signal(core::mem::transmute(bus), destination.param().abi(), core::mem::transmute(sessionid), core::mem::transmute(signal), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(timetolive), core::mem::transmute(flags), core::mem::transmute(msg)) + alljoyn_busobject_signal(bus, destination.param().abi(), sessionid, core::mem::transmute(signal), args, numargs, timetolive, flags, msg) } #[inline] pub unsafe fn alljoyn_credentials_clear(cred: alljoyn_credentials) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_clear(cred : alljoyn_credentials)); - alljoyn_credentials_clear(core::mem::transmute(cred)) + alljoyn_credentials_clear(cred) } #[inline] pub unsafe fn alljoyn_credentials_create() -> alljoyn_credentials { @@ -1378,42 +1378,42 @@ pub unsafe fn alljoyn_credentials_create() -> alljoyn_credentials { #[inline] pub unsafe fn alljoyn_credentials_destroy(cred: alljoyn_credentials) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_destroy(cred : alljoyn_credentials)); - alljoyn_credentials_destroy(core::mem::transmute(cred)) + alljoyn_credentials_destroy(cred) } #[inline] pub unsafe fn alljoyn_credentials_getcertchain(cred: alljoyn_credentials) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getcertchain(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getcertchain(core::mem::transmute(cred)) + alljoyn_credentials_getcertchain(cred) } #[inline] pub unsafe fn alljoyn_credentials_getexpiration(cred: alljoyn_credentials) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getexpiration(cred : alljoyn_credentials) -> u32); - alljoyn_credentials_getexpiration(core::mem::transmute(cred)) + alljoyn_credentials_getexpiration(cred) } #[inline] pub unsafe fn alljoyn_credentials_getlogonentry(cred: alljoyn_credentials) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getlogonentry(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getlogonentry(core::mem::transmute(cred)) + alljoyn_credentials_getlogonentry(cred) } #[inline] pub unsafe fn alljoyn_credentials_getpassword(cred: alljoyn_credentials) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getpassword(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getpassword(core::mem::transmute(cred)) + alljoyn_credentials_getpassword(cred) } #[inline] pub unsafe fn alljoyn_credentials_getprivateKey(cred: alljoyn_credentials) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getprivateKey(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getprivateKey(core::mem::transmute(cred)) + alljoyn_credentials_getprivateKey(cred) } #[inline] pub unsafe fn alljoyn_credentials_getusername(cred: alljoyn_credentials) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getusername(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getusername(core::mem::transmute(cred)) + alljoyn_credentials_getusername(cred) } #[inline] pub unsafe fn alljoyn_credentials_isset(cred: alljoyn_credentials, creds: u16) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_isset(cred : alljoyn_credentials, creds : u16) -> i32); - alljoyn_credentials_isset(core::mem::transmute(cred), core::mem::transmute(creds)) + alljoyn_credentials_isset(cred, creds) } #[inline] pub unsafe fn alljoyn_credentials_setcertchain(cred: alljoyn_credentials, certchain: P1) @@ -1421,12 +1421,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setcertchain(cred : alljoyn_credentials, certchain : windows_core::PCSTR)); - alljoyn_credentials_setcertchain(core::mem::transmute(cred), certchain.param().abi()) + alljoyn_credentials_setcertchain(cred, certchain.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setexpiration(cred: alljoyn_credentials, expiration: u32) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setexpiration(cred : alljoyn_credentials, expiration : u32)); - alljoyn_credentials_setexpiration(core::mem::transmute(cred), core::mem::transmute(expiration)) + alljoyn_credentials_setexpiration(cred, expiration) } #[inline] pub unsafe fn alljoyn_credentials_setlogonentry(cred: alljoyn_credentials, logonentry: P1) @@ -1434,7 +1434,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setlogonentry(cred : alljoyn_credentials, logonentry : windows_core::PCSTR)); - alljoyn_credentials_setlogonentry(core::mem::transmute(cred), logonentry.param().abi()) + alljoyn_credentials_setlogonentry(cred, logonentry.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setpassword(cred: alljoyn_credentials, pwd: P1) @@ -1442,7 +1442,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setpassword(cred : alljoyn_credentials, pwd : windows_core::PCSTR)); - alljoyn_credentials_setpassword(core::mem::transmute(cred), pwd.param().abi()) + alljoyn_credentials_setpassword(cred, pwd.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setprivatekey(cred: alljoyn_credentials, pk: P1) @@ -1450,7 +1450,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setprivatekey(cred : alljoyn_credentials, pk : windows_core::PCSTR)); - alljoyn_credentials_setprivatekey(core::mem::transmute(cred), pk.param().abi()) + alljoyn_credentials_setprivatekey(cred, pk.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setusername(cred: alljoyn_credentials, username: P1) @@ -1458,7 +1458,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setusername(cred : alljoyn_credentials, username : windows_core::PCSTR)); - alljoyn_credentials_setusername(core::mem::transmute(cred), username.param().abi()) + alljoyn_credentials_setusername(cred, username.param().abi()) } #[inline] pub unsafe fn alljoyn_getbuildinfo() -> windows_core::PCSTR { @@ -1483,7 +1483,7 @@ pub unsafe fn alljoyn_init() -> QStatus { #[inline] pub unsafe fn alljoyn_interfacedescription_activate(iface: alljoyn_interfacedescription) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_activate(iface : alljoyn_interfacedescription)); - alljoyn_interfacedescription_activate(core::mem::transmute(iface)) + alljoyn_interfacedescription_activate(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_addannotation(iface: alljoyn_interfacedescription, name: P1, value: P2) -> QStatus @@ -1492,7 +1492,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addannotation(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, value : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_addannotation(core::mem::transmute(iface), name.param().abi(), value.param().abi()) + alljoyn_interfacedescription_addannotation(iface, name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addargannotation(iface: alljoyn_interfacedescription, member: P1, argname: P2, name: P3, value: P4) -> QStatus @@ -1503,7 +1503,7 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addargannotation(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, argname : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_addargannotation(core::mem::transmute(iface), member.param().abi(), argname.param().abi(), name.param().abi(), value.param().abi()) + alljoyn_interfacedescription_addargannotation(iface, member.param().abi(), argname.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addmember(iface: alljoyn_interfacedescription, r#type: alljoyn_messagetype, name: P2, inputsig: P3, outsig: P4, argnames: P5, annotation: u8) -> QStatus @@ -1514,7 +1514,7 @@ where P5: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addmember(iface : alljoyn_interfacedescription, r#type : alljoyn_messagetype, name : windows_core::PCSTR, inputsig : windows_core::PCSTR, outsig : windows_core::PCSTR, argnames : windows_core::PCSTR, annotation : u8) -> QStatus); - alljoyn_interfacedescription_addmember(core::mem::transmute(iface), core::mem::transmute(r#type), name.param().abi(), inputsig.param().abi(), outsig.param().abi(), argnames.param().abi(), core::mem::transmute(annotation)) + alljoyn_interfacedescription_addmember(iface, r#type, name.param().abi(), inputsig.param().abi(), outsig.param().abi(), argnames.param().abi(), annotation) } #[inline] pub unsafe fn alljoyn_interfacedescription_addmemberannotation(iface: alljoyn_interfacedescription, member: P1, name: P2, value: P3) -> QStatus @@ -1524,7 +1524,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addmemberannotation(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_addmemberannotation(core::mem::transmute(iface), member.param().abi(), name.param().abi(), value.param().abi()) + alljoyn_interfacedescription_addmemberannotation(iface, member.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addmethod(iface: alljoyn_interfacedescription, name: P1, inputsig: P2, outsig: P3, argnames: P4, annotation: u8, accessperms: P6) -> QStatus @@ -1536,7 +1536,7 @@ where P6: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addmethod(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, inputsig : windows_core::PCSTR, outsig : windows_core::PCSTR, argnames : windows_core::PCSTR, annotation : u8, accessperms : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_addmethod(core::mem::transmute(iface), name.param().abi(), inputsig.param().abi(), outsig.param().abi(), argnames.param().abi(), core::mem::transmute(annotation), accessperms.param().abi()) + alljoyn_interfacedescription_addmethod(iface, name.param().abi(), inputsig.param().abi(), outsig.param().abi(), argnames.param().abi(), annotation, accessperms.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addproperty(iface: alljoyn_interfacedescription, name: P1, signature: P2, access: u8) -> QStatus @@ -1545,7 +1545,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addproperty(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, signature : windows_core::PCSTR, access : u8) -> QStatus); - alljoyn_interfacedescription_addproperty(core::mem::transmute(iface), name.param().abi(), signature.param().abi(), core::mem::transmute(access)) + alljoyn_interfacedescription_addproperty(iface, name.param().abi(), signature.param().abi(), access) } #[inline] pub unsafe fn alljoyn_interfacedescription_addpropertyannotation(iface: alljoyn_interfacedescription, property: P1, name: P2, value: P3) -> QStatus @@ -1555,7 +1555,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addpropertyannotation(iface : alljoyn_interfacedescription, property : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_addpropertyannotation(core::mem::transmute(iface), property.param().abi(), name.param().abi(), value.param().abi()) + alljoyn_interfacedescription_addpropertyannotation(iface, property.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addsignal(iface: alljoyn_interfacedescription, name: P1, sig: P2, argnames: P3, annotation: u8, accessperms: P5) -> QStatus @@ -1566,12 +1566,12 @@ where P5: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_addsignal(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, sig : windows_core::PCSTR, argnames : windows_core::PCSTR, annotation : u8, accessperms : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_addsignal(core::mem::transmute(iface), name.param().abi(), sig.param().abi(), argnames.param().abi(), core::mem::transmute(annotation), accessperms.param().abi()) + alljoyn_interfacedescription_addsignal(iface, name.param().abi(), sig.param().abi(), argnames.param().abi(), annotation, accessperms.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_eql(one: alljoyn_interfacedescription, other: alljoyn_interfacedescription) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_eql(one : alljoyn_interfacedescription, other : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_eql(core::mem::transmute(one), core::mem::transmute(other)) + alljoyn_interfacedescription_eql(one, other) } #[inline] pub unsafe fn alljoyn_interfacedescription_getannotation(iface: alljoyn_interfacedescription, name: P1, value: P2, value_size: *mut usize) -> i32 @@ -1580,7 +1580,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getannotation(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, value : windows_core::PCSTR, value_size : *mut usize) -> i32); - alljoyn_interfacedescription_getannotation(core::mem::transmute(iface), name.param().abi(), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_getannotation(iface, name.param().abi(), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getannotationatindex(iface: alljoyn_interfacedescription, index: usize, name: P2, name_size: *mut usize, value: P4, value_size: *mut usize) @@ -1589,12 +1589,12 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getannotationatindex(iface : alljoyn_interfacedescription, index : usize, name : windows_core::PCSTR, name_size : *mut usize, value : windows_core::PCSTR, value_size : *mut usize)); - alljoyn_interfacedescription_getannotationatindex(core::mem::transmute(iface), core::mem::transmute(index), name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_getannotationatindex(iface, index, name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getannotationscount(iface: alljoyn_interfacedescription) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getannotationscount(iface : alljoyn_interfacedescription) -> usize); - alljoyn_interfacedescription_getannotationscount(core::mem::transmute(iface)) + alljoyn_interfacedescription_getannotationscount(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_getargdescriptionforlanguage(iface: alljoyn_interfacedescription, member: P1, arg: P2, description: P3, maxlanguagelength: usize, languagetag: P5) -> usize @@ -1605,7 +1605,7 @@ where P5: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getargdescriptionforlanguage(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, arg : windows_core::PCSTR, description : windows_core::PCSTR, maxlanguagelength : usize, languagetag : windows_core::PCSTR) -> usize); - alljoyn_interfacedescription_getargdescriptionforlanguage(core::mem::transmute(iface), member.param().abi(), arg.param().abi(), description.param().abi(), core::mem::transmute(maxlanguagelength), languagetag.param().abi()) + alljoyn_interfacedescription_getargdescriptionforlanguage(iface, member.param().abi(), arg.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptionforlanguage(iface: alljoyn_interfacedescription, description: P1, maxlanguagelength: usize, languagetag: P3) -> usize @@ -1614,12 +1614,12 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getdescriptionforlanguage(iface : alljoyn_interfacedescription, description : windows_core::PCSTR, maxlanguagelength : usize, languagetag : windows_core::PCSTR) -> usize); - alljoyn_interfacedescription_getdescriptionforlanguage(core::mem::transmute(iface), description.param().abi(), core::mem::transmute(maxlanguagelength), languagetag.param().abi()) + alljoyn_interfacedescription_getdescriptionforlanguage(iface, description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptionlanguages(iface: alljoyn_interfacedescription, languages: *const *const i8, size: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getdescriptionlanguages(iface : alljoyn_interfacedescription, languages : *const *const i8, size : usize) -> usize); - alljoyn_interfacedescription_getdescriptionlanguages(core::mem::transmute(iface), core::mem::transmute(languages), core::mem::transmute(size)) + alljoyn_interfacedescription_getdescriptionlanguages(iface, languages, size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptionlanguages2(iface: alljoyn_interfacedescription, languages: P1, languagessize: usize) -> usize @@ -1627,12 +1627,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getdescriptionlanguages2(iface : alljoyn_interfacedescription, languages : windows_core::PCSTR, languagessize : usize) -> usize); - alljoyn_interfacedescription_getdescriptionlanguages2(core::mem::transmute(iface), languages.param().abi(), core::mem::transmute(languagessize)) + alljoyn_interfacedescription_getdescriptionlanguages2(iface, languages.param().abi(), languagessize) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptiontranslationcallback(iface: alljoyn_interfacedescription) -> alljoyn_interfacedescription_translation_callback_ptr { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getdescriptiontranslationcallback(iface : alljoyn_interfacedescription) -> alljoyn_interfacedescription_translation_callback_ptr); - alljoyn_interfacedescription_getdescriptiontranslationcallback(core::mem::transmute(iface)) + alljoyn_interfacedescription_getdescriptiontranslationcallback(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmember(iface: alljoyn_interfacedescription, name: P1, member: *mut alljoyn_interfacedescription_member) -> i32 @@ -1640,7 +1640,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmember(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, member : *mut alljoyn_interfacedescription_member) -> i32); - alljoyn_interfacedescription_getmember(core::mem::transmute(iface), name.param().abi(), core::mem::transmute(member)) + alljoyn_interfacedescription_getmember(iface, name.param().abi(), core::mem::transmute(member)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmemberannotation(iface: alljoyn_interfacedescription, member: P1, name: P2, value: P3, value_size: *mut usize) -> i32 @@ -1650,7 +1650,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmemberannotation(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR, value_size : *mut usize) -> i32); - alljoyn_interfacedescription_getmemberannotation(core::mem::transmute(iface), member.param().abi(), name.param().abi(), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_getmemberannotation(iface, member.param().abi(), name.param().abi(), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmemberargannotation(iface: alljoyn_interfacedescription, member: P1, argname: P2, name: P3, value: P4, value_size: *mut usize) -> i32 @@ -1661,7 +1661,7 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmemberargannotation(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, argname : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR, value_size : *mut usize) -> i32); - alljoyn_interfacedescription_getmemberargannotation(core::mem::transmute(iface), member.param().abi(), argname.param().abi(), name.param().abi(), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_getmemberargannotation(iface, member.param().abi(), argname.param().abi(), name.param().abi(), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmemberdescriptionforlanguage(iface: alljoyn_interfacedescription, member: P1, description: P2, maxlanguagelength: usize, languagetag: P4) -> usize @@ -1671,12 +1671,12 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmemberdescriptionforlanguage(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, description : windows_core::PCSTR, maxlanguagelength : usize, languagetag : windows_core::PCSTR) -> usize); - alljoyn_interfacedescription_getmemberdescriptionforlanguage(core::mem::transmute(iface), member.param().abi(), description.param().abi(), core::mem::transmute(maxlanguagelength), languagetag.param().abi()) + alljoyn_interfacedescription_getmemberdescriptionforlanguage(iface, member.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmembers(iface: alljoyn_interfacedescription, members: *mut alljoyn_interfacedescription_member, nummembers: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmembers(iface : alljoyn_interfacedescription, members : *mut alljoyn_interfacedescription_member, nummembers : usize) -> usize); - alljoyn_interfacedescription_getmembers(core::mem::transmute(iface), core::mem::transmute(members), core::mem::transmute(nummembers)) + alljoyn_interfacedescription_getmembers(iface, core::mem::transmute(members), nummembers) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmethod(iface: alljoyn_interfacedescription, name: P1, member: *mut alljoyn_interfacedescription_member) -> i32 @@ -1684,17 +1684,17 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmethod(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, member : *mut alljoyn_interfacedescription_member) -> i32); - alljoyn_interfacedescription_getmethod(core::mem::transmute(iface), name.param().abi(), core::mem::transmute(member)) + alljoyn_interfacedescription_getmethod(iface, name.param().abi(), core::mem::transmute(member)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getname(iface: alljoyn_interfacedescription) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getname(iface : alljoyn_interfacedescription) -> windows_core::PCSTR); - alljoyn_interfacedescription_getname(core::mem::transmute(iface)) + alljoyn_interfacedescription_getname(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_getproperties(iface: alljoyn_interfacedescription, props: *mut alljoyn_interfacedescription_property, numprops: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getproperties(iface : alljoyn_interfacedescription, props : *mut alljoyn_interfacedescription_property, numprops : usize) -> usize); - alljoyn_interfacedescription_getproperties(core::mem::transmute(iface), core::mem::transmute(props), core::mem::transmute(numprops)) + alljoyn_interfacedescription_getproperties(iface, core::mem::transmute(props), numprops) } #[inline] pub unsafe fn alljoyn_interfacedescription_getproperty(iface: alljoyn_interfacedescription, name: P1, property: *mut alljoyn_interfacedescription_property) -> i32 @@ -1702,7 +1702,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getproperty(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, property : *mut alljoyn_interfacedescription_property) -> i32); - alljoyn_interfacedescription_getproperty(core::mem::transmute(iface), name.param().abi(), core::mem::transmute(property)) + alljoyn_interfacedescription_getproperty(iface, name.param().abi(), core::mem::transmute(property)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getpropertyannotation(iface: alljoyn_interfacedescription, property: P1, name: P2, value: P3, str_size: *mut usize) -> i32 @@ -1712,7 +1712,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getpropertyannotation(iface : alljoyn_interfacedescription, property : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR, str_size : *mut usize) -> i32); - alljoyn_interfacedescription_getpropertyannotation(core::mem::transmute(iface), property.param().abi(), name.param().abi(), value.param().abi(), core::mem::transmute(str_size)) + alljoyn_interfacedescription_getpropertyannotation(iface, property.param().abi(), name.param().abi(), value.param().abi(), core::mem::transmute(str_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_getpropertydescriptionforlanguage(iface: alljoyn_interfacedescription, property: P1, description: P2, maxlanguagelength: usize, languagetag: P4) -> usize @@ -1722,12 +1722,12 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getpropertydescriptionforlanguage(iface : alljoyn_interfacedescription, property : windows_core::PCSTR, description : windows_core::PCSTR, maxlanguagelength : usize, languagetag : windows_core::PCSTR) -> usize); - alljoyn_interfacedescription_getpropertydescriptionforlanguage(core::mem::transmute(iface), property.param().abi(), description.param().abi(), core::mem::transmute(maxlanguagelength), languagetag.param().abi()) + alljoyn_interfacedescription_getpropertydescriptionforlanguage(iface, property.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getsecuritypolicy(iface: alljoyn_interfacedescription) -> alljoyn_interfacedescription_securitypolicy { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getsecuritypolicy(iface : alljoyn_interfacedescription) -> alljoyn_interfacedescription_securitypolicy); - alljoyn_interfacedescription_getsecuritypolicy(core::mem::transmute(iface)) + alljoyn_interfacedescription_getsecuritypolicy(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_getsignal(iface: alljoyn_interfacedescription, name: P1, member: *mut alljoyn_interfacedescription_member) -> i32 @@ -1735,12 +1735,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getsignal(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, member : *mut alljoyn_interfacedescription_member) -> i32); - alljoyn_interfacedescription_getsignal(core::mem::transmute(iface), name.param().abi(), core::mem::transmute(member)) + alljoyn_interfacedescription_getsignal(iface, name.param().abi(), core::mem::transmute(member)) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasdescription(iface: alljoyn_interfacedescription) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_hasdescription(iface : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_hasdescription(core::mem::transmute(iface)) + alljoyn_interfacedescription_hasdescription(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasmember(iface: alljoyn_interfacedescription, name: P1, insig: P2, outsig: P3) -> i32 @@ -1750,12 +1750,12 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_hasmember(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, insig : windows_core::PCSTR, outsig : windows_core::PCSTR) -> i32); - alljoyn_interfacedescription_hasmember(core::mem::transmute(iface), name.param().abi(), insig.param().abi(), outsig.param().abi()) + alljoyn_interfacedescription_hasmember(iface, name.param().abi(), insig.param().abi(), outsig.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasproperties(iface: alljoyn_interfacedescription) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_hasproperties(iface : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_hasproperties(core::mem::transmute(iface)) + alljoyn_interfacedescription_hasproperties(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasproperty(iface: alljoyn_interfacedescription, name: P1) -> i32 @@ -1763,7 +1763,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_hasproperty(iface : alljoyn_interfacedescription, name : windows_core::PCSTR) -> i32); - alljoyn_interfacedescription_hasproperty(core::mem::transmute(iface), name.param().abi()) + alljoyn_interfacedescription_hasproperty(iface, name.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_introspect(iface: alljoyn_interfacedescription, str: P1, buf: usize, indent: usize) -> usize @@ -1771,12 +1771,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_introspect(iface : alljoyn_interfacedescription, str : windows_core::PCSTR, buf : usize, indent : usize) -> usize); - alljoyn_interfacedescription_introspect(core::mem::transmute(iface), str.param().abi(), core::mem::transmute(buf), core::mem::transmute(indent)) + alljoyn_interfacedescription_introspect(iface, str.param().abi(), buf, indent) } #[inline] pub unsafe fn alljoyn_interfacedescription_issecure(iface: alljoyn_interfacedescription) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_issecure(iface : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_issecure(core::mem::transmute(iface)) + alljoyn_interfacedescription_issecure(iface) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_eql(one: alljoyn_interfacedescription_member, other: alljoyn_interfacedescription_member) -> i32 { @@ -1799,7 +1799,7 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_member_getannotationatindex(member : alljoyn_interfacedescription_member, index : usize, name : windows_core::PCSTR, name_size : *mut usize, value : windows_core::PCSTR, value_size : *mut usize)); - alljoyn_interfacedescription_member_getannotationatindex(core::mem::transmute(member), core::mem::transmute(index), name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_member_getannotationatindex(core::mem::transmute(member), index, name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_getannotationscount(member: alljoyn_interfacedescription_member) -> usize { @@ -1824,7 +1824,7 @@ where P5: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_member_getargannotationatindex(member : alljoyn_interfacedescription_member, argname : windows_core::PCSTR, index : usize, name : windows_core::PCSTR, name_size : *mut usize, value : windows_core::PCSTR, value_size : *mut usize)); - alljoyn_interfacedescription_member_getargannotationatindex(core::mem::transmute(member), argname.param().abi(), core::mem::transmute(index), name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_member_getargannotationatindex(core::mem::transmute(member), argname.param().abi(), index, name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_getargannotationscount(member: alljoyn_interfacedescription_member, argname: P1) -> usize @@ -1855,7 +1855,7 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_property_getannotationatindex(property : alljoyn_interfacedescription_property, index : usize, name : windows_core::PCSTR, name_size : *mut usize, value : windows_core::PCSTR, value_size : *mut usize)); - alljoyn_interfacedescription_property_getannotationatindex(core::mem::transmute(property), core::mem::transmute(index), name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) + alljoyn_interfacedescription_property_getannotationatindex(core::mem::transmute(property), index, name.param().abi(), core::mem::transmute(name_size), value.param().abi(), core::mem::transmute(value_size)) } #[inline] pub unsafe fn alljoyn_interfacedescription_property_getannotationscount(property: alljoyn_interfacedescription_property) -> usize { @@ -1870,7 +1870,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setargdescription(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, argname : windows_core::PCSTR, description : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setargdescription(core::mem::transmute(iface), member.param().abi(), argname.param().abi(), description.param().abi()) + alljoyn_interfacedescription_setargdescription(iface, member.param().abi(), argname.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setargdescriptionforlanguage(iface: alljoyn_interfacedescription, member: P1, arg: P2, description: P3, languagetag: P4) -> QStatus @@ -1881,7 +1881,7 @@ where P4: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setargdescriptionforlanguage(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, arg : windows_core::PCSTR, description : windows_core::PCSTR, languagetag : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setargdescriptionforlanguage(core::mem::transmute(iface), member.param().abi(), arg.param().abi(), description.param().abi(), languagetag.param().abi()) + alljoyn_interfacedescription_setargdescriptionforlanguage(iface, member.param().abi(), arg.param().abi(), description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescription(iface: alljoyn_interfacedescription, description: P1) @@ -1889,7 +1889,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescription(iface : alljoyn_interfacedescription, description : windows_core::PCSTR)); - alljoyn_interfacedescription_setdescription(core::mem::transmute(iface), description.param().abi()) + alljoyn_interfacedescription_setdescription(iface, description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescriptionforlanguage(iface: alljoyn_interfacedescription, description: P1, languagetag: P2) -> QStatus @@ -1898,7 +1898,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescriptionforlanguage(iface : alljoyn_interfacedescription, description : windows_core::PCSTR, languagetag : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setdescriptionforlanguage(core::mem::transmute(iface), description.param().abi(), languagetag.param().abi()) + alljoyn_interfacedescription_setdescriptionforlanguage(iface, description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescriptionlanguage(iface: alljoyn_interfacedescription, language: P1) @@ -1906,12 +1906,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescriptionlanguage(iface : alljoyn_interfacedescription, language : windows_core::PCSTR)); - alljoyn_interfacedescription_setdescriptionlanguage(core::mem::transmute(iface), language.param().abi()) + alljoyn_interfacedescription_setdescriptionlanguage(iface, language.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescriptiontranslationcallback(iface: alljoyn_interfacedescription, translationcallback: alljoyn_interfacedescription_translation_callback_ptr) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescriptiontranslationcallback(iface : alljoyn_interfacedescription, translationcallback : alljoyn_interfacedescription_translation_callback_ptr)); - alljoyn_interfacedescription_setdescriptiontranslationcallback(core::mem::transmute(iface), core::mem::transmute(translationcallback)) + alljoyn_interfacedescription_setdescriptiontranslationcallback(iface, translationcallback) } #[inline] pub unsafe fn alljoyn_interfacedescription_setmemberdescription(iface: alljoyn_interfacedescription, member: P1, description: P2) -> QStatus @@ -1920,7 +1920,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setmemberdescription(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, description : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setmemberdescription(core::mem::transmute(iface), member.param().abi(), description.param().abi()) + alljoyn_interfacedescription_setmemberdescription(iface, member.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setmemberdescriptionforlanguage(iface: alljoyn_interfacedescription, member: P1, description: P2, languagetag: P3) -> QStatus @@ -1930,7 +1930,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setmemberdescriptionforlanguage(iface : alljoyn_interfacedescription, member : windows_core::PCSTR, description : windows_core::PCSTR, languagetag : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setmemberdescriptionforlanguage(core::mem::transmute(iface), member.param().abi(), description.param().abi(), languagetag.param().abi()) + alljoyn_interfacedescription_setmemberdescriptionforlanguage(iface, member.param().abi(), description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setpropertydescription(iface: alljoyn_interfacedescription, name: P1, description: P2) -> QStatus @@ -1939,7 +1939,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setpropertydescription(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, description : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setpropertydescription(core::mem::transmute(iface), name.param().abi(), description.param().abi()) + alljoyn_interfacedescription_setpropertydescription(iface, name.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setpropertydescriptionforlanguage(iface: alljoyn_interfacedescription, name: P1, description: P2, languagetag: P3) -> QStatus @@ -1949,17 +1949,17 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setpropertydescriptionforlanguage(iface : alljoyn_interfacedescription, name : windows_core::PCSTR, description : windows_core::PCSTR, languagetag : windows_core::PCSTR) -> QStatus); - alljoyn_interfacedescription_setpropertydescriptionforlanguage(core::mem::transmute(iface), name.param().abi(), description.param().abi(), languagetag.param().abi()) + alljoyn_interfacedescription_setpropertydescriptionforlanguage(iface, name.param().abi(), description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_keystorelistener_create(callbacks: *const alljoyn_keystorelistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_keystorelistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_keystorelistener_create(callbacks : *const alljoyn_keystorelistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_keystorelistener); - alljoyn_keystorelistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_keystorelistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_keystorelistener_destroy(listener: alljoyn_keystorelistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_keystorelistener_destroy(listener : alljoyn_keystorelistener)); - alljoyn_keystorelistener_destroy(core::mem::transmute(listener)) + alljoyn_keystorelistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_keystorelistener_getkeys(listener: alljoyn_keystorelistener, keystore: alljoyn_keystore, sink: P2, sink_sz: *mut usize) -> QStatus @@ -1967,7 +1967,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_keystorelistener_getkeys(listener : alljoyn_keystorelistener, keystore : alljoyn_keystore, sink : windows_core::PCSTR, sink_sz : *mut usize) -> QStatus); - alljoyn_keystorelistener_getkeys(core::mem::transmute(listener), core::mem::transmute(keystore), sink.param().abi(), core::mem::transmute(sink_sz)) + alljoyn_keystorelistener_getkeys(listener, keystore, sink.param().abi(), core::mem::transmute(sink_sz)) } #[inline] pub unsafe fn alljoyn_keystorelistener_putkeys(listener: alljoyn_keystorelistener, keystore: alljoyn_keystore, source: P2, password: P3) -> QStatus @@ -1976,17 +1976,17 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_keystorelistener_putkeys(listener : alljoyn_keystorelistener, keystore : alljoyn_keystore, source : windows_core::PCSTR, password : windows_core::PCSTR) -> QStatus); - alljoyn_keystorelistener_putkeys(core::mem::transmute(listener), core::mem::transmute(keystore), source.param().abi(), password.param().abi()) + alljoyn_keystorelistener_putkeys(listener, keystore, source.param().abi(), password.param().abi()) } #[inline] pub unsafe fn alljoyn_keystorelistener_with_synchronization_create(callbacks: *const alljoyn_keystorelistener_with_synchronization_callbacks, context: *mut core::ffi::c_void) -> alljoyn_keystorelistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_keystorelistener_with_synchronization_create(callbacks : *const alljoyn_keystorelistener_with_synchronization_callbacks, context : *mut core::ffi::c_void) -> alljoyn_keystorelistener); - alljoyn_keystorelistener_with_synchronization_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_keystorelistener_with_synchronization_create(callbacks, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_message_create(bus: alljoyn_busattachment) -> alljoyn_message { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_create(bus : alljoyn_busattachment) -> alljoyn_message); - alljoyn_message_create(core::mem::transmute(bus)) + alljoyn_message_create(bus) } #[inline] pub unsafe fn alljoyn_message_description(msg: alljoyn_message, str: P1, buf: usize) -> usize @@ -1994,47 +1994,47 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_description(msg : alljoyn_message, str : windows_core::PCSTR, buf : usize) -> usize); - alljoyn_message_description(core::mem::transmute(msg), str.param().abi(), core::mem::transmute(buf)) + alljoyn_message_description(msg, str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_message_destroy(msg: alljoyn_message) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_destroy(msg : alljoyn_message)); - alljoyn_message_destroy(core::mem::transmute(msg)) + alljoyn_message_destroy(msg) } #[inline] pub unsafe fn alljoyn_message_eql(one: alljoyn_message, other: alljoyn_message) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_eql(one : alljoyn_message, other : alljoyn_message) -> i32); - alljoyn_message_eql(core::mem::transmute(one), core::mem::transmute(other)) + alljoyn_message_eql(one, other) } #[inline] pub unsafe fn alljoyn_message_getarg(msg: alljoyn_message, argn: usize) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getarg(msg : alljoyn_message, argn : usize) -> alljoyn_msgarg); - alljoyn_message_getarg(core::mem::transmute(msg), core::mem::transmute(argn)) + alljoyn_message_getarg(msg, argn) } #[inline] pub unsafe fn alljoyn_message_getargs(msg: alljoyn_message, numargs: *mut usize, args: *mut alljoyn_msgarg) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getargs(msg : alljoyn_message, numargs : *mut usize, args : *mut alljoyn_msgarg)); - alljoyn_message_getargs(core::mem::transmute(msg), core::mem::transmute(numargs), core::mem::transmute(args)) + alljoyn_message_getargs(msg, core::mem::transmute(numargs), core::mem::transmute(args)) } #[inline] pub unsafe fn alljoyn_message_getauthmechanism(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getauthmechanism(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getauthmechanism(core::mem::transmute(msg)) + alljoyn_message_getauthmechanism(msg) } #[inline] pub unsafe fn alljoyn_message_getcallserial(msg: alljoyn_message) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getcallserial(msg : alljoyn_message) -> u32); - alljoyn_message_getcallserial(core::mem::transmute(msg)) + alljoyn_message_getcallserial(msg) } #[inline] pub unsafe fn alljoyn_message_getcompressiontoken(msg: alljoyn_message) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getcompressiontoken(msg : alljoyn_message) -> u32); - alljoyn_message_getcompressiontoken(core::mem::transmute(msg)) + alljoyn_message_getcompressiontoken(msg) } #[inline] pub unsafe fn alljoyn_message_getdestination(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getdestination(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getdestination(core::mem::transmute(msg)) + alljoyn_message_getdestination(msg) } #[inline] pub unsafe fn alljoyn_message_geterrorname(msg: alljoyn_message, errormessage: P1, errormessage_size: *mut usize) -> windows_core::PCSTR @@ -2042,92 +2042,92 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_geterrorname(msg : alljoyn_message, errormessage : windows_core::PCSTR, errormessage_size : *mut usize) -> windows_core::PCSTR); - alljoyn_message_geterrorname(core::mem::transmute(msg), errormessage.param().abi(), core::mem::transmute(errormessage_size)) + alljoyn_message_geterrorname(msg, errormessage.param().abi(), core::mem::transmute(errormessage_size)) } #[inline] pub unsafe fn alljoyn_message_getflags(msg: alljoyn_message) -> u8 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getflags(msg : alljoyn_message) -> u8); - alljoyn_message_getflags(core::mem::transmute(msg)) + alljoyn_message_getflags(msg) } #[inline] pub unsafe fn alljoyn_message_getinterface(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getinterface(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getinterface(core::mem::transmute(msg)) + alljoyn_message_getinterface(msg) } #[inline] pub unsafe fn alljoyn_message_getmembername(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getmembername(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getmembername(core::mem::transmute(msg)) + alljoyn_message_getmembername(msg) } #[inline] pub unsafe fn alljoyn_message_getobjectpath(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getobjectpath(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getobjectpath(core::mem::transmute(msg)) + alljoyn_message_getobjectpath(msg) } #[inline] pub unsafe fn alljoyn_message_getreceiveendpointname(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getreceiveendpointname(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getreceiveendpointname(core::mem::transmute(msg)) + alljoyn_message_getreceiveendpointname(msg) } #[inline] pub unsafe fn alljoyn_message_getreplyserial(msg: alljoyn_message) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getreplyserial(msg : alljoyn_message) -> u32); - alljoyn_message_getreplyserial(core::mem::transmute(msg)) + alljoyn_message_getreplyserial(msg) } #[inline] pub unsafe fn alljoyn_message_getsender(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getsender(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getsender(core::mem::transmute(msg)) + alljoyn_message_getsender(msg) } #[inline] pub unsafe fn alljoyn_message_getsessionid(msg: alljoyn_message) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getsessionid(msg : alljoyn_message) -> u32); - alljoyn_message_getsessionid(core::mem::transmute(msg)) + alljoyn_message_getsessionid(msg) } #[inline] pub unsafe fn alljoyn_message_getsignature(msg: alljoyn_message) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getsignature(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getsignature(core::mem::transmute(msg)) + alljoyn_message_getsignature(msg) } #[inline] pub unsafe fn alljoyn_message_gettimestamp(msg: alljoyn_message) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_gettimestamp(msg : alljoyn_message) -> u32); - alljoyn_message_gettimestamp(core::mem::transmute(msg)) + alljoyn_message_gettimestamp(msg) } #[inline] pub unsafe fn alljoyn_message_gettype(msg: alljoyn_message) -> alljoyn_messagetype { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_gettype(msg : alljoyn_message) -> alljoyn_messagetype); - alljoyn_message_gettype(core::mem::transmute(msg)) + alljoyn_message_gettype(msg) } #[inline] pub unsafe fn alljoyn_message_isbroadcastsignal(msg: alljoyn_message) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isbroadcastsignal(msg : alljoyn_message) -> i32); - alljoyn_message_isbroadcastsignal(core::mem::transmute(msg)) + alljoyn_message_isbroadcastsignal(msg) } #[inline] pub unsafe fn alljoyn_message_isencrypted(msg: alljoyn_message) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isencrypted(msg : alljoyn_message) -> i32); - alljoyn_message_isencrypted(core::mem::transmute(msg)) + alljoyn_message_isencrypted(msg) } #[inline] pub unsafe fn alljoyn_message_isexpired(msg: alljoyn_message, tillexpirems: *mut u32) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isexpired(msg : alljoyn_message, tillexpirems : *mut u32) -> i32); - alljoyn_message_isexpired(core::mem::transmute(msg), core::mem::transmute(tillexpirems)) + alljoyn_message_isexpired(msg, core::mem::transmute(tillexpirems)) } #[inline] pub unsafe fn alljoyn_message_isglobalbroadcast(msg: alljoyn_message) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isglobalbroadcast(msg : alljoyn_message) -> i32); - alljoyn_message_isglobalbroadcast(core::mem::transmute(msg)) + alljoyn_message_isglobalbroadcast(msg) } #[inline] pub unsafe fn alljoyn_message_issessionless(msg: alljoyn_message) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_issessionless(msg : alljoyn_message) -> i32); - alljoyn_message_issessionless(core::mem::transmute(msg)) + alljoyn_message_issessionless(msg) } #[inline] pub unsafe fn alljoyn_message_isunreliable(msg: alljoyn_message) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isunreliable(msg : alljoyn_message) -> i32); - alljoyn_message_isunreliable(core::mem::transmute(msg)) + alljoyn_message_isunreliable(msg) } #[inline] pub unsafe fn alljoyn_message_parseargs(msg: alljoyn_message, signature: P1) -> QStatus @@ -2135,12 +2135,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_message_parseargs(msg : alljoyn_message, signature : windows_core::PCSTR) -> QStatus); - alljoyn_message_parseargs(core::mem::transmute(msg), signature.param().abi()) + alljoyn_message_parseargs(msg, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_message_setendianess(endian: i8) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_setendianess(endian : i8)); - alljoyn_message_setendianess(core::mem::transmute(endian)) + alljoyn_message_setendianess(endian) } #[inline] pub unsafe fn alljoyn_message_tostring(msg: alljoyn_message, str: P1, buf: usize) -> usize @@ -2148,17 +2148,17 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_tostring(msg : alljoyn_message, str : windows_core::PCSTR, buf : usize) -> usize); - alljoyn_message_tostring(core::mem::transmute(msg), str.param().abi(), core::mem::transmute(buf)) + alljoyn_message_tostring(msg, str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_msgarg_array_create(size: usize) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_array_create(size : usize) -> alljoyn_msgarg); - alljoyn_msgarg_array_create(core::mem::transmute(size)) + alljoyn_msgarg_array_create(size) } #[inline] pub unsafe fn alljoyn_msgarg_array_element(arg: alljoyn_msgarg, index: usize) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_array_element(arg : alljoyn_msgarg, index : usize) -> alljoyn_msgarg); - alljoyn_msgarg_array_element(core::mem::transmute(arg), core::mem::transmute(index)) + alljoyn_msgarg_array_element(arg, index) } #[inline] pub unsafe fn alljoyn_msgarg_array_get(args: alljoyn_msgarg, numargs: usize, signature: P2) -> QStatus @@ -2166,7 +2166,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_array_get(args : alljoyn_msgarg, numargs : usize, signature : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_array_get(core::mem::transmute(args), core::mem::transmute(numargs), signature.param().abi()) + alljoyn_msgarg_array_get(args, numargs, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_array_set(args: alljoyn_msgarg, numargs: *mut usize, signature: P2) -> QStatus @@ -2174,7 +2174,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_array_set(args : alljoyn_msgarg, numargs : *mut usize, signature : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_array_set(core::mem::transmute(args), core::mem::transmute(numargs), signature.param().abi()) + alljoyn_msgarg_array_set(args, core::mem::transmute(numargs), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_array_set_offset(args: alljoyn_msgarg, argoffset: usize, numargs: *mut usize, signature: P3) -> QStatus @@ -2182,7 +2182,7 @@ where P3: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_array_set_offset(args : alljoyn_msgarg, argoffset : usize, numargs : *mut usize, signature : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_array_set_offset(core::mem::transmute(args), core::mem::transmute(argoffset), core::mem::transmute(numargs), signature.param().abi()) + alljoyn_msgarg_array_set_offset(args, argoffset, core::mem::transmute(numargs), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_array_signature(values: alljoyn_msgarg, numvalues: usize, str: P2, buf: usize) -> usize @@ -2190,7 +2190,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_array_signature(values : alljoyn_msgarg, numvalues : usize, str : windows_core::PCSTR, buf : usize) -> usize); - alljoyn_msgarg_array_signature(core::mem::transmute(values), core::mem::transmute(numvalues), str.param().abi(), core::mem::transmute(buf)) + alljoyn_msgarg_array_signature(values, numvalues, str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_msgarg_array_tostring(args: alljoyn_msgarg, numargs: usize, str: P2, buf: usize, indent: usize) -> usize @@ -2198,22 +2198,22 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_array_tostring(args : alljoyn_msgarg, numargs : usize, str : windows_core::PCSTR, buf : usize, indent : usize) -> usize); - alljoyn_msgarg_array_tostring(core::mem::transmute(args), core::mem::transmute(numargs), str.param().abi(), core::mem::transmute(buf), core::mem::transmute(indent)) + alljoyn_msgarg_array_tostring(args, numargs, str.param().abi(), buf, indent) } #[inline] pub unsafe fn alljoyn_msgarg_clear(arg: alljoyn_msgarg) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_clear(arg : alljoyn_msgarg)); - alljoyn_msgarg_clear(core::mem::transmute(arg)) + alljoyn_msgarg_clear(arg) } #[inline] pub unsafe fn alljoyn_msgarg_clone(destination: alljoyn_msgarg, source: alljoyn_msgarg) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_clone(destination : alljoyn_msgarg, source : alljoyn_msgarg)); - alljoyn_msgarg_clone(core::mem::transmute(destination), core::mem::transmute(source)) + alljoyn_msgarg_clone(destination, source) } #[inline] pub unsafe fn alljoyn_msgarg_copy(source: alljoyn_msgarg) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_copy(source : alljoyn_msgarg) -> alljoyn_msgarg); - alljoyn_msgarg_copy(core::mem::transmute(source)) + alljoyn_msgarg_copy(source) } #[inline] pub unsafe fn alljoyn_msgarg_create() -> alljoyn_msgarg { @@ -2231,12 +2231,12 @@ where #[inline] pub unsafe fn alljoyn_msgarg_destroy(arg: alljoyn_msgarg) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_destroy(arg : alljoyn_msgarg)); - alljoyn_msgarg_destroy(core::mem::transmute(arg)) + alljoyn_msgarg_destroy(arg) } #[inline] pub unsafe fn alljoyn_msgarg_equal(lhv: alljoyn_msgarg, rhv: alljoyn_msgarg) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_equal(lhv : alljoyn_msgarg, rhv : alljoyn_msgarg) -> i32); - alljoyn_msgarg_equal(core::mem::transmute(lhv), core::mem::transmute(rhv)) + alljoyn_msgarg_equal(lhv, rhv) } #[inline] pub unsafe fn alljoyn_msgarg_get(arg: alljoyn_msgarg, signature: P1) -> QStatus @@ -2244,132 +2244,132 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_get(arg : alljoyn_msgarg, signature : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_get(core::mem::transmute(arg), signature.param().abi()) + alljoyn_msgarg_get(arg, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_get_array_element(arg: alljoyn_msgarg, index: usize, element: *mut alljoyn_msgarg) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_array_element(arg : alljoyn_msgarg, index : usize, element : *mut alljoyn_msgarg)); - alljoyn_msgarg_get_array_element(core::mem::transmute(arg), core::mem::transmute(index), core::mem::transmute(element)) + alljoyn_msgarg_get_array_element(arg, index, core::mem::transmute(element)) } #[inline] pub unsafe fn alljoyn_msgarg_get_array_elementsignature(arg: alljoyn_msgarg, index: usize) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_array_elementsignature(arg : alljoyn_msgarg, index : usize) -> windows_core::PCSTR); - alljoyn_msgarg_get_array_elementsignature(core::mem::transmute(arg), core::mem::transmute(index)) + alljoyn_msgarg_get_array_elementsignature(arg, index) } #[inline] pub unsafe fn alljoyn_msgarg_get_array_numberofelements(arg: alljoyn_msgarg) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_array_numberofelements(arg : alljoyn_msgarg) -> usize); - alljoyn_msgarg_get_array_numberofelements(core::mem::transmute(arg)) + alljoyn_msgarg_get_array_numberofelements(arg) } #[inline] pub unsafe fn alljoyn_msgarg_get_bool(arg: alljoyn_msgarg, b: *mut i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_bool(arg : alljoyn_msgarg, b : *mut i32) -> QStatus); - alljoyn_msgarg_get_bool(core::mem::transmute(arg), core::mem::transmute(b)) + alljoyn_msgarg_get_bool(arg, core::mem::transmute(b)) } #[inline] pub unsafe fn alljoyn_msgarg_get_bool_array(arg: alljoyn_msgarg, length: *mut usize, ab: *mut i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_bool_array(arg : alljoyn_msgarg, length : *mut usize, ab : *mut i32) -> QStatus); - alljoyn_msgarg_get_bool_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ab)) + alljoyn_msgarg_get_bool_array(arg, core::mem::transmute(length), core::mem::transmute(ab)) } #[inline] pub unsafe fn alljoyn_msgarg_get_double(arg: alljoyn_msgarg, d: *mut f64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_double(arg : alljoyn_msgarg, d : *mut f64) -> QStatus); - alljoyn_msgarg_get_double(core::mem::transmute(arg), core::mem::transmute(d)) + alljoyn_msgarg_get_double(arg, core::mem::transmute(d)) } #[inline] pub unsafe fn alljoyn_msgarg_get_double_array(arg: alljoyn_msgarg, length: *mut usize, ad: *mut f64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_double_array(arg : alljoyn_msgarg, length : *mut usize, ad : *mut f64) -> QStatus); - alljoyn_msgarg_get_double_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ad)) + alljoyn_msgarg_get_double_array(arg, core::mem::transmute(length), core::mem::transmute(ad)) } #[inline] pub unsafe fn alljoyn_msgarg_get_int16(arg: alljoyn_msgarg, n: *mut i16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int16(arg : alljoyn_msgarg, n : *mut i16) -> QStatus); - alljoyn_msgarg_get_int16(core::mem::transmute(arg), core::mem::transmute(n)) + alljoyn_msgarg_get_int16(arg, core::mem::transmute(n)) } #[inline] pub unsafe fn alljoyn_msgarg_get_int16_array(arg: alljoyn_msgarg, length: *mut usize, an: *mut i16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int16_array(arg : alljoyn_msgarg, length : *mut usize, an : *mut i16) -> QStatus); - alljoyn_msgarg_get_int16_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(an)) + alljoyn_msgarg_get_int16_array(arg, core::mem::transmute(length), core::mem::transmute(an)) } #[inline] pub unsafe fn alljoyn_msgarg_get_int32(arg: alljoyn_msgarg, i: *mut i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int32(arg : alljoyn_msgarg, i : *mut i32) -> QStatus); - alljoyn_msgarg_get_int32(core::mem::transmute(arg), core::mem::transmute(i)) + alljoyn_msgarg_get_int32(arg, core::mem::transmute(i)) } #[inline] pub unsafe fn alljoyn_msgarg_get_int32_array(arg: alljoyn_msgarg, length: *mut usize, ai: *mut i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int32_array(arg : alljoyn_msgarg, length : *mut usize, ai : *mut i32) -> QStatus); - alljoyn_msgarg_get_int32_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ai)) + alljoyn_msgarg_get_int32_array(arg, core::mem::transmute(length), core::mem::transmute(ai)) } #[inline] pub unsafe fn alljoyn_msgarg_get_int64(arg: alljoyn_msgarg, x: *mut i64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int64(arg : alljoyn_msgarg, x : *mut i64) -> QStatus); - alljoyn_msgarg_get_int64(core::mem::transmute(arg), core::mem::transmute(x)) + alljoyn_msgarg_get_int64(arg, core::mem::transmute(x)) } #[inline] pub unsafe fn alljoyn_msgarg_get_int64_array(arg: alljoyn_msgarg, length: *mut usize, ax: *mut i64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int64_array(arg : alljoyn_msgarg, length : *mut usize, ax : *mut i64) -> QStatus); - alljoyn_msgarg_get_int64_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ax)) + alljoyn_msgarg_get_int64_array(arg, core::mem::transmute(length), core::mem::transmute(ax)) } #[inline] pub unsafe fn alljoyn_msgarg_get_objectpath(arg: alljoyn_msgarg, o: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_objectpath(arg : alljoyn_msgarg, o : *mut *mut i8) -> QStatus); - alljoyn_msgarg_get_objectpath(core::mem::transmute(arg), core::mem::transmute(o)) + alljoyn_msgarg_get_objectpath(arg, core::mem::transmute(o)) } #[inline] pub unsafe fn alljoyn_msgarg_get_signature(arg: alljoyn_msgarg, g: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_signature(arg : alljoyn_msgarg, g : *mut *mut i8) -> QStatus); - alljoyn_msgarg_get_signature(core::mem::transmute(arg), core::mem::transmute(g)) + alljoyn_msgarg_get_signature(arg, core::mem::transmute(g)) } #[inline] pub unsafe fn alljoyn_msgarg_get_string(arg: alljoyn_msgarg, s: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_string(arg : alljoyn_msgarg, s : *mut *mut i8) -> QStatus); - alljoyn_msgarg_get_string(core::mem::transmute(arg), core::mem::transmute(s)) + alljoyn_msgarg_get_string(arg, core::mem::transmute(s)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint16(arg: alljoyn_msgarg, q: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint16(arg : alljoyn_msgarg, q : *mut u16) -> QStatus); - alljoyn_msgarg_get_uint16(core::mem::transmute(arg), core::mem::transmute(q)) + alljoyn_msgarg_get_uint16(arg, core::mem::transmute(q)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint16_array(arg: alljoyn_msgarg, length: *mut usize, aq: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint16_array(arg : alljoyn_msgarg, length : *mut usize, aq : *mut u16) -> QStatus); - alljoyn_msgarg_get_uint16_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(aq)) + alljoyn_msgarg_get_uint16_array(arg, core::mem::transmute(length), core::mem::transmute(aq)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint32(arg: alljoyn_msgarg, u: *mut u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint32(arg : alljoyn_msgarg, u : *mut u32) -> QStatus); - alljoyn_msgarg_get_uint32(core::mem::transmute(arg), core::mem::transmute(u)) + alljoyn_msgarg_get_uint32(arg, core::mem::transmute(u)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint32_array(arg: alljoyn_msgarg, length: *mut usize, au: *mut u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint32_array(arg : alljoyn_msgarg, length : *mut usize, au : *mut u32) -> QStatus); - alljoyn_msgarg_get_uint32_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(au)) + alljoyn_msgarg_get_uint32_array(arg, core::mem::transmute(length), core::mem::transmute(au)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint64(arg: alljoyn_msgarg, t: *mut u64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint64(arg : alljoyn_msgarg, t : *mut u64) -> QStatus); - alljoyn_msgarg_get_uint64(core::mem::transmute(arg), core::mem::transmute(t)) + alljoyn_msgarg_get_uint64(arg, core::mem::transmute(t)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint64_array(arg: alljoyn_msgarg, length: *mut usize, at: *mut u64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint64_array(arg : alljoyn_msgarg, length : *mut usize, at : *mut u64) -> QStatus); - alljoyn_msgarg_get_uint64_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(at)) + alljoyn_msgarg_get_uint64_array(arg, core::mem::transmute(length), core::mem::transmute(at)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint8(arg: alljoyn_msgarg, y: *mut u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint8(arg : alljoyn_msgarg, y : *mut u8) -> QStatus); - alljoyn_msgarg_get_uint8(core::mem::transmute(arg), core::mem::transmute(y)) + alljoyn_msgarg_get_uint8(arg, core::mem::transmute(y)) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint8_array(arg: alljoyn_msgarg, length: *mut usize, ay: *mut u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint8_array(arg : alljoyn_msgarg, length : *mut usize, ay : *mut u8) -> QStatus); - alljoyn_msgarg_get_uint8_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ay)) + alljoyn_msgarg_get_uint8_array(arg, core::mem::transmute(length), core::mem::transmute(ay)) } #[inline] pub unsafe fn alljoyn_msgarg_get_variant(arg: alljoyn_msgarg, v: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_variant(arg : alljoyn_msgarg, v : alljoyn_msgarg) -> QStatus); - alljoyn_msgarg_get_variant(core::mem::transmute(arg), core::mem::transmute(v)) + alljoyn_msgarg_get_variant(arg, v) } #[inline] pub unsafe fn alljoyn_msgarg_get_variant_array(arg: alljoyn_msgarg, signature: P1, length: *mut usize, av: *mut alljoyn_msgarg) -> QStatus @@ -2377,7 +2377,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_variant_array(arg : alljoyn_msgarg, signature : windows_core::PCSTR, length : *mut usize, av : *mut alljoyn_msgarg) -> QStatus); - alljoyn_msgarg_get_variant_array(core::mem::transmute(arg), signature.param().abi(), core::mem::transmute(length), core::mem::transmute(av)) + alljoyn_msgarg_get_variant_array(arg, signature.param().abi(), core::mem::transmute(length), core::mem::transmute(av)) } #[inline] pub unsafe fn alljoyn_msgarg_getdictelement(arg: alljoyn_msgarg, elemsig: P1) -> QStatus @@ -2385,32 +2385,32 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_getdictelement(arg : alljoyn_msgarg, elemsig : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_getdictelement(core::mem::transmute(arg), elemsig.param().abi()) + alljoyn_msgarg_getdictelement(arg, elemsig.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_getkey(arg: alljoyn_msgarg) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getkey(arg : alljoyn_msgarg) -> alljoyn_msgarg); - alljoyn_msgarg_getkey(core::mem::transmute(arg)) + alljoyn_msgarg_getkey(arg) } #[inline] pub unsafe fn alljoyn_msgarg_getmember(arg: alljoyn_msgarg, index: usize) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getmember(arg : alljoyn_msgarg, index : usize) -> alljoyn_msgarg); - alljoyn_msgarg_getmember(core::mem::transmute(arg), core::mem::transmute(index)) + alljoyn_msgarg_getmember(arg, index) } #[inline] pub unsafe fn alljoyn_msgarg_getnummembers(arg: alljoyn_msgarg) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getnummembers(arg : alljoyn_msgarg) -> usize); - alljoyn_msgarg_getnummembers(core::mem::transmute(arg)) + alljoyn_msgarg_getnummembers(arg) } #[inline] pub unsafe fn alljoyn_msgarg_gettype(arg: alljoyn_msgarg) -> alljoyn_typeid { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_gettype(arg : alljoyn_msgarg) -> alljoyn_typeid); - alljoyn_msgarg_gettype(core::mem::transmute(arg)) + alljoyn_msgarg_gettype(arg) } #[inline] pub unsafe fn alljoyn_msgarg_getvalue(arg: alljoyn_msgarg) -> alljoyn_msgarg { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getvalue(arg : alljoyn_msgarg) -> alljoyn_msgarg); - alljoyn_msgarg_getvalue(core::mem::transmute(arg)) + alljoyn_msgarg_getvalue(arg) } #[inline] pub unsafe fn alljoyn_msgarg_hassignature(arg: alljoyn_msgarg, signature: P1) -> i32 @@ -2418,7 +2418,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_hassignature(arg : alljoyn_msgarg, signature : windows_core::PCSTR) -> i32); - alljoyn_msgarg_hassignature(core::mem::transmute(arg), signature.param().abi()) + alljoyn_msgarg_hassignature(arg, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set(arg: alljoyn_msgarg, signature: P1) -> QStatus @@ -2426,7 +2426,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_set(arg : alljoyn_msgarg, signature : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_set(core::mem::transmute(arg), signature.param().abi()) + alljoyn_msgarg_set(arg, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_and_stabilize(arg: alljoyn_msgarg, signature: P1) -> QStatus @@ -2434,57 +2434,57 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_set_and_stabilize(arg : alljoyn_msgarg, signature : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_set_and_stabilize(core::mem::transmute(arg), signature.param().abi()) + alljoyn_msgarg_set_and_stabilize(arg, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_bool(arg: alljoyn_msgarg, b: i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_bool(arg : alljoyn_msgarg, b : i32) -> QStatus); - alljoyn_msgarg_set_bool(core::mem::transmute(arg), core::mem::transmute(b)) + alljoyn_msgarg_set_bool(arg, b) } #[inline] pub unsafe fn alljoyn_msgarg_set_bool_array(arg: alljoyn_msgarg, length: usize, ab: *mut i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_bool_array(arg : alljoyn_msgarg, length : usize, ab : *mut i32) -> QStatus); - alljoyn_msgarg_set_bool_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ab)) + alljoyn_msgarg_set_bool_array(arg, length, core::mem::transmute(ab)) } #[inline] pub unsafe fn alljoyn_msgarg_set_double(arg: alljoyn_msgarg, d: f64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_double(arg : alljoyn_msgarg, d : f64) -> QStatus); - alljoyn_msgarg_set_double(core::mem::transmute(arg), core::mem::transmute(d)) + alljoyn_msgarg_set_double(arg, d) } #[inline] pub unsafe fn alljoyn_msgarg_set_double_array(arg: alljoyn_msgarg, length: usize, ad: *mut f64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_double_array(arg : alljoyn_msgarg, length : usize, ad : *mut f64) -> QStatus); - alljoyn_msgarg_set_double_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ad)) + alljoyn_msgarg_set_double_array(arg, length, core::mem::transmute(ad)) } #[inline] pub unsafe fn alljoyn_msgarg_set_int16(arg: alljoyn_msgarg, n: i16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int16(arg : alljoyn_msgarg, n : i16) -> QStatus); - alljoyn_msgarg_set_int16(core::mem::transmute(arg), core::mem::transmute(n)) + alljoyn_msgarg_set_int16(arg, n) } #[inline] pub unsafe fn alljoyn_msgarg_set_int16_array(arg: alljoyn_msgarg, length: usize, an: *mut i16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int16_array(arg : alljoyn_msgarg, length : usize, an : *mut i16) -> QStatus); - alljoyn_msgarg_set_int16_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(an)) + alljoyn_msgarg_set_int16_array(arg, length, core::mem::transmute(an)) } #[inline] pub unsafe fn alljoyn_msgarg_set_int32(arg: alljoyn_msgarg, i: i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int32(arg : alljoyn_msgarg, i : i32) -> QStatus); - alljoyn_msgarg_set_int32(core::mem::transmute(arg), core::mem::transmute(i)) + alljoyn_msgarg_set_int32(arg, i) } #[inline] pub unsafe fn alljoyn_msgarg_set_int32_array(arg: alljoyn_msgarg, length: usize, ai: *mut i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int32_array(arg : alljoyn_msgarg, length : usize, ai : *mut i32) -> QStatus); - alljoyn_msgarg_set_int32_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ai)) + alljoyn_msgarg_set_int32_array(arg, length, core::mem::transmute(ai)) } #[inline] pub unsafe fn alljoyn_msgarg_set_int64(arg: alljoyn_msgarg, x: i64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int64(arg : alljoyn_msgarg, x : i64) -> QStatus); - alljoyn_msgarg_set_int64(core::mem::transmute(arg), core::mem::transmute(x)) + alljoyn_msgarg_set_int64(arg, x) } #[inline] pub unsafe fn alljoyn_msgarg_set_int64_array(arg: alljoyn_msgarg, length: usize, ax: *mut i64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int64_array(arg : alljoyn_msgarg, length : usize, ax : *mut i64) -> QStatus); - alljoyn_msgarg_set_int64_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ax)) + alljoyn_msgarg_set_int64_array(arg, length, core::mem::transmute(ax)) } #[inline] pub unsafe fn alljoyn_msgarg_set_objectpath(arg: alljoyn_msgarg, o: P1) -> QStatus @@ -2492,12 +2492,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_objectpath(arg : alljoyn_msgarg, o : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_set_objectpath(core::mem::transmute(arg), o.param().abi()) + alljoyn_msgarg_set_objectpath(arg, o.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_objectpath_array(arg: alljoyn_msgarg, length: usize, ao: *const *const i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_objectpath_array(arg : alljoyn_msgarg, length : usize, ao : *const *const i8) -> QStatus); - alljoyn_msgarg_set_objectpath_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ao)) + alljoyn_msgarg_set_objectpath_array(arg, length, ao) } #[inline] pub unsafe fn alljoyn_msgarg_set_signature(arg: alljoyn_msgarg, g: P1) -> QStatus @@ -2505,12 +2505,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_signature(arg : alljoyn_msgarg, g : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_set_signature(core::mem::transmute(arg), g.param().abi()) + alljoyn_msgarg_set_signature(arg, g.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_signature_array(arg: alljoyn_msgarg, length: usize, ag: *const *const i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_signature_array(arg : alljoyn_msgarg, length : usize, ag : *const *const i8) -> QStatus); - alljoyn_msgarg_set_signature_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ag)) + alljoyn_msgarg_set_signature_array(arg, length, ag) } #[inline] pub unsafe fn alljoyn_msgarg_set_string(arg: alljoyn_msgarg, s: P1) -> QStatus @@ -2518,62 +2518,62 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_string(arg : alljoyn_msgarg, s : windows_core::PCSTR) -> QStatus); - alljoyn_msgarg_set_string(core::mem::transmute(arg), s.param().abi()) + alljoyn_msgarg_set_string(arg, s.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_string_array(arg: alljoyn_msgarg, length: usize, r#as: *const *const i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_string_array(arg : alljoyn_msgarg, length : usize, r#as : *const *const i8) -> QStatus); - alljoyn_msgarg_set_string_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(r#as)) + alljoyn_msgarg_set_string_array(arg, length, r#as) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint16(arg: alljoyn_msgarg, q: u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint16(arg : alljoyn_msgarg, q : u16) -> QStatus); - alljoyn_msgarg_set_uint16(core::mem::transmute(arg), core::mem::transmute(q)) + alljoyn_msgarg_set_uint16(arg, q) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint16_array(arg: alljoyn_msgarg, length: usize, aq: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint16_array(arg : alljoyn_msgarg, length : usize, aq : *mut u16) -> QStatus); - alljoyn_msgarg_set_uint16_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(aq)) + alljoyn_msgarg_set_uint16_array(arg, length, core::mem::transmute(aq)) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint32(arg: alljoyn_msgarg, u: u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint32(arg : alljoyn_msgarg, u : u32) -> QStatus); - alljoyn_msgarg_set_uint32(core::mem::transmute(arg), core::mem::transmute(u)) + alljoyn_msgarg_set_uint32(arg, u) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint32_array(arg: alljoyn_msgarg, length: usize, au: *mut u32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint32_array(arg : alljoyn_msgarg, length : usize, au : *mut u32) -> QStatus); - alljoyn_msgarg_set_uint32_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(au)) + alljoyn_msgarg_set_uint32_array(arg, length, core::mem::transmute(au)) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint64(arg: alljoyn_msgarg, t: u64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint64(arg : alljoyn_msgarg, t : u64) -> QStatus); - alljoyn_msgarg_set_uint64(core::mem::transmute(arg), core::mem::transmute(t)) + alljoyn_msgarg_set_uint64(arg, t) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint64_array(arg: alljoyn_msgarg, length: usize, at: *mut u64) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint64_array(arg : alljoyn_msgarg, length : usize, at : *mut u64) -> QStatus); - alljoyn_msgarg_set_uint64_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(at)) + alljoyn_msgarg_set_uint64_array(arg, length, core::mem::transmute(at)) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint8(arg: alljoyn_msgarg, y: u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint8(arg : alljoyn_msgarg, y : u8) -> QStatus); - alljoyn_msgarg_set_uint8(core::mem::transmute(arg), core::mem::transmute(y)) + alljoyn_msgarg_set_uint8(arg, y) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint8_array(arg: alljoyn_msgarg, length: usize, ay: *mut u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint8_array(arg : alljoyn_msgarg, length : usize, ay : *mut u8) -> QStatus); - alljoyn_msgarg_set_uint8_array(core::mem::transmute(arg), core::mem::transmute(length), core::mem::transmute(ay)) + alljoyn_msgarg_set_uint8_array(arg, length, core::mem::transmute(ay)) } #[inline] pub unsafe fn alljoyn_msgarg_setdictentry(arg: alljoyn_msgarg, key: alljoyn_msgarg, value: alljoyn_msgarg) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_setdictentry(arg : alljoyn_msgarg, key : alljoyn_msgarg, value : alljoyn_msgarg) -> QStatus); - alljoyn_msgarg_setdictentry(core::mem::transmute(arg), core::mem::transmute(key), core::mem::transmute(value)) + alljoyn_msgarg_setdictentry(arg, key, value) } #[inline] pub unsafe fn alljoyn_msgarg_setstruct(arg: alljoyn_msgarg, struct_members: alljoyn_msgarg, num_members: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_setstruct(arg : alljoyn_msgarg, struct_members : alljoyn_msgarg, num_members : usize) -> QStatus); - alljoyn_msgarg_setstruct(core::mem::transmute(arg), core::mem::transmute(struct_members), core::mem::transmute(num_members)) + alljoyn_msgarg_setstruct(arg, struct_members, num_members) } #[inline] pub unsafe fn alljoyn_msgarg_signature(arg: alljoyn_msgarg, str: P1, buf: usize) -> usize @@ -2581,12 +2581,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_signature(arg : alljoyn_msgarg, str : windows_core::PCSTR, buf : usize) -> usize); - alljoyn_msgarg_signature(core::mem::transmute(arg), str.param().abi(), core::mem::transmute(buf)) + alljoyn_msgarg_signature(arg, str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_msgarg_stabilize(arg: alljoyn_msgarg) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_stabilize(arg : alljoyn_msgarg)); - alljoyn_msgarg_stabilize(core::mem::transmute(arg)) + alljoyn_msgarg_stabilize(arg) } #[inline] pub unsafe fn alljoyn_msgarg_tostring(arg: alljoyn_msgarg, str: P1, buf: usize, indent: usize) -> usize @@ -2594,17 +2594,17 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_tostring(arg : alljoyn_msgarg, str : windows_core::PCSTR, buf : usize, indent : usize) -> usize); - alljoyn_msgarg_tostring(core::mem::transmute(arg), str.param().abi(), core::mem::transmute(buf), core::mem::transmute(indent)) + alljoyn_msgarg_tostring(arg, str.param().abi(), buf, indent) } #[inline] pub unsafe fn alljoyn_observer_create(bus: alljoyn_busattachment, mandatoryinterfaces: *const *const i8, nummandatoryinterfaces: usize) -> alljoyn_observer { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_create(bus : alljoyn_busattachment, mandatoryinterfaces : *const *const i8, nummandatoryinterfaces : usize) -> alljoyn_observer); - alljoyn_observer_create(core::mem::transmute(bus), core::mem::transmute(mandatoryinterfaces), core::mem::transmute(nummandatoryinterfaces)) + alljoyn_observer_create(bus, mandatoryinterfaces, nummandatoryinterfaces) } #[inline] pub unsafe fn alljoyn_observer_destroy(observer: alljoyn_observer) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_destroy(observer : alljoyn_observer)); - alljoyn_observer_destroy(core::mem::transmute(observer)) + alljoyn_observer_destroy(observer) } #[inline] pub unsafe fn alljoyn_observer_get(observer: alljoyn_observer, uniquebusname: P1, objectpath: P2) -> alljoyn_proxybusobject_ref @@ -2613,42 +2613,42 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_get(observer : alljoyn_observer, uniquebusname : windows_core::PCSTR, objectpath : windows_core::PCSTR) -> alljoyn_proxybusobject_ref); - alljoyn_observer_get(core::mem::transmute(observer), uniquebusname.param().abi(), objectpath.param().abi()) + alljoyn_observer_get(observer, uniquebusname.param().abi(), objectpath.param().abi()) } #[inline] pub unsafe fn alljoyn_observer_getfirst(observer: alljoyn_observer) -> alljoyn_proxybusobject_ref { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_getfirst(observer : alljoyn_observer) -> alljoyn_proxybusobject_ref); - alljoyn_observer_getfirst(core::mem::transmute(observer)) + alljoyn_observer_getfirst(observer) } #[inline] pub unsafe fn alljoyn_observer_getnext(observer: alljoyn_observer, proxyref: alljoyn_proxybusobject_ref) -> alljoyn_proxybusobject_ref { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_getnext(observer : alljoyn_observer, proxyref : alljoyn_proxybusobject_ref) -> alljoyn_proxybusobject_ref); - alljoyn_observer_getnext(core::mem::transmute(observer), core::mem::transmute(proxyref)) + alljoyn_observer_getnext(observer, proxyref) } #[inline] pub unsafe fn alljoyn_observer_registerlistener(observer: alljoyn_observer, listener: alljoyn_observerlistener, triggeronexisting: i32) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_registerlistener(observer : alljoyn_observer, listener : alljoyn_observerlistener, triggeronexisting : i32)); - alljoyn_observer_registerlistener(core::mem::transmute(observer), core::mem::transmute(listener), core::mem::transmute(triggeronexisting)) + alljoyn_observer_registerlistener(observer, listener, triggeronexisting) } #[inline] pub unsafe fn alljoyn_observer_unregisteralllisteners(observer: alljoyn_observer) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_unregisteralllisteners(observer : alljoyn_observer)); - alljoyn_observer_unregisteralllisteners(core::mem::transmute(observer)) + alljoyn_observer_unregisteralllisteners(observer) } #[inline] pub unsafe fn alljoyn_observer_unregisterlistener(observer: alljoyn_observer, listener: alljoyn_observerlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_unregisterlistener(observer : alljoyn_observer, listener : alljoyn_observerlistener)); - alljoyn_observer_unregisterlistener(core::mem::transmute(observer), core::mem::transmute(listener)) + alljoyn_observer_unregisterlistener(observer, listener) } #[inline] pub unsafe fn alljoyn_observerlistener_create(callback: *const alljoyn_observerlistener_callback, context: *const core::ffi::c_void) -> alljoyn_observerlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observerlistener_create(callback : *const alljoyn_observerlistener_callback, context : *const core::ffi::c_void) -> alljoyn_observerlistener); - alljoyn_observerlistener_create(core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_observerlistener_create(callback, context) } #[inline] pub unsafe fn alljoyn_observerlistener_destroy(listener: alljoyn_observerlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observerlistener_destroy(listener : alljoyn_observerlistener)); - alljoyn_observerlistener_destroy(core::mem::transmute(listener)) + alljoyn_observerlistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_passwordmanager_setcredentials(authmechanism: P0, password: P1) -> QStatus @@ -2662,12 +2662,12 @@ where #[inline] pub unsafe fn alljoyn_permissionconfigurationlistener_create(callbacks: *const alljoyn_permissionconfigurationlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_permissionconfigurationlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurationlistener_create(callbacks : *const alljoyn_permissionconfigurationlistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_permissionconfigurationlistener); - alljoyn_permissionconfigurationlistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_permissionconfigurationlistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_permissionconfigurationlistener_destroy(listener: alljoyn_permissionconfigurationlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurationlistener_destroy(listener : alljoyn_permissionconfigurationlistener)); - alljoyn_permissionconfigurationlistener_destroy(core::mem::transmute(listener)) + alljoyn_permissionconfigurationlistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_certificatechain_destroy(certificatechain: *mut i8) { @@ -2687,27 +2687,27 @@ pub unsafe fn alljoyn_permissionconfigurator_certificateidarray_cleanup(certific #[inline] pub unsafe fn alljoyn_permissionconfigurator_claim(configurator: alljoyn_permissionconfigurator, cakey: *mut i8, identitycertificatechain: *mut i8, groupid: *const u8, groupsize: usize, groupauthority: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_claim(configurator : alljoyn_permissionconfigurator, cakey : *mut i8, identitycertificatechain : *mut i8, groupid : *const u8, groupsize : usize, groupauthority : *mut i8, manifestsxmls : *mut *mut i8, manifestscount : usize) -> QStatus); - alljoyn_permissionconfigurator_claim(core::mem::transmute(configurator), core::mem::transmute(cakey), core::mem::transmute(identitycertificatechain), core::mem::transmute(groupid), core::mem::transmute(groupsize), core::mem::transmute(groupauthority), core::mem::transmute(manifestsxmls), core::mem::transmute(manifestscount)) + alljoyn_permissionconfigurator_claim(configurator, core::mem::transmute(cakey), core::mem::transmute(identitycertificatechain), groupid, groupsize, core::mem::transmute(groupauthority), core::mem::transmute(manifestsxmls), manifestscount) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_endmanagement(configurator: alljoyn_permissionconfigurator) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_endmanagement(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_endmanagement(core::mem::transmute(configurator)) + alljoyn_permissionconfigurator_endmanagement(configurator) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getapplicationstate(configurator: alljoyn_permissionconfigurator, state: *mut alljoyn_applicationstate) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getapplicationstate(configurator : alljoyn_permissionconfigurator, state : *mut alljoyn_applicationstate) -> QStatus); - alljoyn_permissionconfigurator_getapplicationstate(core::mem::transmute(configurator), core::mem::transmute(state)) + alljoyn_permissionconfigurator_getapplicationstate(configurator, core::mem::transmute(state)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getclaimcapabilities(configurator: alljoyn_permissionconfigurator, claimcapabilities: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getclaimcapabilities(configurator : alljoyn_permissionconfigurator, claimcapabilities : *mut u16) -> QStatus); - alljoyn_permissionconfigurator_getclaimcapabilities(core::mem::transmute(configurator), core::mem::transmute(claimcapabilities)) + alljoyn_permissionconfigurator_getclaimcapabilities(configurator, core::mem::transmute(claimcapabilities)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator: alljoyn_permissionconfigurator, additionalinfo: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator : alljoyn_permissionconfigurator, additionalinfo : *mut u16) -> QStatus); - alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(core::mem::transmute(configurator), core::mem::transmute(additionalinfo)) + alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator, core::mem::transmute(additionalinfo)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getdefaultclaimcapabilities() -> u16 { @@ -2717,52 +2717,52 @@ pub unsafe fn alljoyn_permissionconfigurator_getdefaultclaimcapabilities() -> u1 #[inline] pub unsafe fn alljoyn_permissionconfigurator_getdefaultpolicy(configurator: alljoyn_permissionconfigurator, policyxml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getdefaultpolicy(configurator : alljoyn_permissionconfigurator, policyxml : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getdefaultpolicy(core::mem::transmute(configurator), core::mem::transmute(policyxml)) + alljoyn_permissionconfigurator_getdefaultpolicy(configurator, core::mem::transmute(policyxml)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getidentity(configurator: alljoyn_permissionconfigurator, identitycertificatechain: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getidentity(configurator : alljoyn_permissionconfigurator, identitycertificatechain : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getidentity(core::mem::transmute(configurator), core::mem::transmute(identitycertificatechain)) + alljoyn_permissionconfigurator_getidentity(configurator, core::mem::transmute(identitycertificatechain)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getidentitycertificateid(configurator: alljoyn_permissionconfigurator, certificateid: *mut alljoyn_certificateid) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getidentitycertificateid(configurator : alljoyn_permissionconfigurator, certificateid : *mut alljoyn_certificateid) -> QStatus); - alljoyn_permissionconfigurator_getidentitycertificateid(core::mem::transmute(configurator), core::mem::transmute(certificateid)) + alljoyn_permissionconfigurator_getidentitycertificateid(configurator, core::mem::transmute(certificateid)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getmanifests(configurator: alljoyn_permissionconfigurator, manifestarray: *mut alljoyn_manifestarray) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getmanifests(configurator : alljoyn_permissionconfigurator, manifestarray : *mut alljoyn_manifestarray) -> QStatus); - alljoyn_permissionconfigurator_getmanifests(core::mem::transmute(configurator), core::mem::transmute(manifestarray)) + alljoyn_permissionconfigurator_getmanifests(configurator, core::mem::transmute(manifestarray)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getmanifesttemplate(configurator: alljoyn_permissionconfigurator, manifesttemplatexml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getmanifesttemplate(configurator : alljoyn_permissionconfigurator, manifesttemplatexml : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getmanifesttemplate(core::mem::transmute(configurator), core::mem::transmute(manifesttemplatexml)) + alljoyn_permissionconfigurator_getmanifesttemplate(configurator, core::mem::transmute(manifesttemplatexml)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getmembershipsummaries(configurator: alljoyn_permissionconfigurator, certificateids: *mut alljoyn_certificateidarray) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getmembershipsummaries(configurator : alljoyn_permissionconfigurator, certificateids : *mut alljoyn_certificateidarray) -> QStatus); - alljoyn_permissionconfigurator_getmembershipsummaries(core::mem::transmute(configurator), core::mem::transmute(certificateids)) + alljoyn_permissionconfigurator_getmembershipsummaries(configurator, core::mem::transmute(certificateids)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getpolicy(configurator: alljoyn_permissionconfigurator, policyxml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getpolicy(configurator : alljoyn_permissionconfigurator, policyxml : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getpolicy(core::mem::transmute(configurator), core::mem::transmute(policyxml)) + alljoyn_permissionconfigurator_getpolicy(configurator, core::mem::transmute(policyxml)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getpublickey(configurator: alljoyn_permissionconfigurator, publickey: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getpublickey(configurator : alljoyn_permissionconfigurator, publickey : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getpublickey(core::mem::transmute(configurator), core::mem::transmute(publickey)) + alljoyn_permissionconfigurator_getpublickey(configurator, core::mem::transmute(publickey)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_installmanifests(configurator: alljoyn_permissionconfigurator, manifestsxmls: *mut *mut i8, manifestscount: usize, append: i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_installmanifests(configurator : alljoyn_permissionconfigurator, manifestsxmls : *mut *mut i8, manifestscount : usize, append : i32) -> QStatus); - alljoyn_permissionconfigurator_installmanifests(core::mem::transmute(configurator), core::mem::transmute(manifestsxmls), core::mem::transmute(manifestscount), core::mem::transmute(append)) + alljoyn_permissionconfigurator_installmanifests(configurator, core::mem::transmute(manifestsxmls), manifestscount, append) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_installmembership(configurator: alljoyn_permissionconfigurator, membershipcertificatechain: *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_installmembership(configurator : alljoyn_permissionconfigurator, membershipcertificatechain : *mut i8) -> QStatus); - alljoyn_permissionconfigurator_installmembership(core::mem::transmute(configurator), core::mem::transmute(membershipcertificatechain)) + alljoyn_permissionconfigurator_installmembership(configurator, core::mem::transmute(membershipcertificatechain)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_manifestarray_cleanup(manifestarray: *mut alljoyn_manifestarray) { @@ -2787,72 +2787,72 @@ pub unsafe fn alljoyn_permissionconfigurator_publickey_destroy(publickey: *mut i #[inline] pub unsafe fn alljoyn_permissionconfigurator_removemembership(configurator: alljoyn_permissionconfigurator, serial: *const u8, seriallen: usize, issuerpublickey: *mut i8, issueraki: *const u8, issuerakilen: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_removemembership(configurator : alljoyn_permissionconfigurator, serial : *const u8, seriallen : usize, issuerpublickey : *mut i8, issueraki : *const u8, issuerakilen : usize) -> QStatus); - alljoyn_permissionconfigurator_removemembership(core::mem::transmute(configurator), core::mem::transmute(serial), core::mem::transmute(seriallen), core::mem::transmute(issuerpublickey), core::mem::transmute(issueraki), core::mem::transmute(issuerakilen)) + alljoyn_permissionconfigurator_removemembership(configurator, serial, seriallen, core::mem::transmute(issuerpublickey), issueraki, issuerakilen) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_reset(configurator: alljoyn_permissionconfigurator) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_reset(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_reset(core::mem::transmute(configurator)) + alljoyn_permissionconfigurator_reset(configurator) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_resetpolicy(configurator: alljoyn_permissionconfigurator) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_resetpolicy(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_resetpolicy(core::mem::transmute(configurator)) + alljoyn_permissionconfigurator_resetpolicy(configurator) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setapplicationstate(configurator: alljoyn_permissionconfigurator, state: alljoyn_applicationstate) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setapplicationstate(configurator : alljoyn_permissionconfigurator, state : alljoyn_applicationstate) -> QStatus); - alljoyn_permissionconfigurator_setapplicationstate(core::mem::transmute(configurator), core::mem::transmute(state)) + alljoyn_permissionconfigurator_setapplicationstate(configurator, state) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setclaimcapabilities(configurator: alljoyn_permissionconfigurator, claimcapabilities: u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setclaimcapabilities(configurator : alljoyn_permissionconfigurator, claimcapabilities : u16) -> QStatus); - alljoyn_permissionconfigurator_setclaimcapabilities(core::mem::transmute(configurator), core::mem::transmute(claimcapabilities)) + alljoyn_permissionconfigurator_setclaimcapabilities(configurator, claimcapabilities) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator: alljoyn_permissionconfigurator, additionalinfo: u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator : alljoyn_permissionconfigurator, additionalinfo : u16) -> QStatus); - alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(core::mem::transmute(configurator), core::mem::transmute(additionalinfo)) + alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator, additionalinfo) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator: alljoyn_permissionconfigurator, manifesttemplatexml: *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator : alljoyn_permissionconfigurator, manifesttemplatexml : *mut i8) -> QStatus); - alljoyn_permissionconfigurator_setmanifesttemplatefromxml(core::mem::transmute(configurator), core::mem::transmute(manifesttemplatexml)) + alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator, core::mem::transmute(manifesttemplatexml)) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_startmanagement(configurator: alljoyn_permissionconfigurator) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_startmanagement(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_startmanagement(core::mem::transmute(configurator)) + alljoyn_permissionconfigurator_startmanagement(configurator) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_updateidentity(configurator: alljoyn_permissionconfigurator, identitycertificatechain: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_updateidentity(configurator : alljoyn_permissionconfigurator, identitycertificatechain : *mut i8, manifestsxmls : *mut *mut i8, manifestscount : usize) -> QStatus); - alljoyn_permissionconfigurator_updateidentity(core::mem::transmute(configurator), core::mem::transmute(identitycertificatechain), core::mem::transmute(manifestsxmls), core::mem::transmute(manifestscount)) + alljoyn_permissionconfigurator_updateidentity(configurator, core::mem::transmute(identitycertificatechain), core::mem::transmute(manifestsxmls), manifestscount) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_updatepolicy(configurator: alljoyn_permissionconfigurator, policyxml: *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_updatepolicy(configurator : alljoyn_permissionconfigurator, policyxml : *mut i8) -> QStatus); - alljoyn_permissionconfigurator_updatepolicy(core::mem::transmute(configurator), core::mem::transmute(policyxml)) + alljoyn_permissionconfigurator_updatepolicy(configurator, core::mem::transmute(policyxml)) } #[inline] pub unsafe fn alljoyn_pinglistener_create(callback: *const alljoyn_pinglistener_callback, context: *const core::ffi::c_void) -> alljoyn_pinglistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_pinglistener_create(callback : *const alljoyn_pinglistener_callback, context : *const core::ffi::c_void) -> alljoyn_pinglistener); - alljoyn_pinglistener_create(core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_pinglistener_create(callback, context) } #[inline] pub unsafe fn alljoyn_pinglistener_destroy(listener: alljoyn_pinglistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_pinglistener_destroy(listener : alljoyn_pinglistener)); - alljoyn_pinglistener_destroy(core::mem::transmute(listener)) + alljoyn_pinglistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_proxybusobject_addchild(proxyobj: alljoyn_proxybusobject, child: alljoyn_proxybusobject) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_addchild(proxyobj : alljoyn_proxybusobject, child : alljoyn_proxybusobject) -> QStatus); - alljoyn_proxybusobject_addchild(core::mem::transmute(proxyobj), core::mem::transmute(child)) + alljoyn_proxybusobject_addchild(proxyobj, child) } #[inline] pub unsafe fn alljoyn_proxybusobject_addinterface(proxyobj: alljoyn_proxybusobject, iface: alljoyn_interfacedescription) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_addinterface(proxyobj : alljoyn_proxybusobject, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_proxybusobject_addinterface(core::mem::transmute(proxyobj), core::mem::transmute(iface)) + alljoyn_proxybusobject_addinterface(proxyobj, iface) } #[inline] pub unsafe fn alljoyn_proxybusobject_addinterface_by_name(proxyobj: alljoyn_proxybusobject, name: P1) -> QStatus @@ -2860,12 +2860,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_addinterface_by_name(proxyobj : alljoyn_proxybusobject, name : windows_core::PCSTR) -> QStatus); - alljoyn_proxybusobject_addinterface_by_name(core::mem::transmute(proxyobj), name.param().abi()) + alljoyn_proxybusobject_addinterface_by_name(proxyobj, name.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_copy(source: alljoyn_proxybusobject) -> alljoyn_proxybusobject { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_copy(source : alljoyn_proxybusobject) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_copy(core::mem::transmute(source)) + alljoyn_proxybusobject_copy(source) } #[inline] pub unsafe fn alljoyn_proxybusobject_create(bus: alljoyn_busattachment, service: P1, path: P2, sessionid: u32) -> alljoyn_proxybusobject @@ -2874,7 +2874,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_create(bus : alljoyn_busattachment, service : windows_core::PCSTR, path : windows_core::PCSTR, sessionid : u32) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_create(core::mem::transmute(bus), service.param().abi(), path.param().abi(), core::mem::transmute(sessionid)) + alljoyn_proxybusobject_create(bus, service.param().abi(), path.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_proxybusobject_create_secure(bus: alljoyn_busattachment, service: P1, path: P2, sessionid: u32) -> alljoyn_proxybusobject @@ -2883,17 +2883,17 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_create_secure(bus : alljoyn_busattachment, service : windows_core::PCSTR, path : windows_core::PCSTR, sessionid : u32) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_create_secure(core::mem::transmute(bus), service.param().abi(), path.param().abi(), core::mem::transmute(sessionid)) + alljoyn_proxybusobject_create_secure(bus, service.param().abi(), path.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_proxybusobject_destroy(proxyobj: alljoyn_proxybusobject) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_destroy(proxyobj : alljoyn_proxybusobject)); - alljoyn_proxybusobject_destroy(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_destroy(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_enablepropertycaching(proxyobj: alljoyn_proxybusobject) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_enablepropertycaching(proxyobj : alljoyn_proxybusobject)); - alljoyn_proxybusobject_enablepropertycaching(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_enablepropertycaching(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_getallproperties(proxyobj: alljoyn_proxybusobject, iface: P1, values: alljoyn_msgarg) -> QStatus @@ -2901,7 +2901,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getallproperties(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, values : alljoyn_msgarg) -> QStatus); - alljoyn_proxybusobject_getallproperties(core::mem::transmute(proxyobj), iface.param().abi(), core::mem::transmute(values)) + alljoyn_proxybusobject_getallproperties(proxyobj, iface.param().abi(), values) } #[inline] pub unsafe fn alljoyn_proxybusobject_getallpropertiesasync(proxyobj: alljoyn_proxybusobject, iface: P1, callback: alljoyn_proxybusobject_listener_getallpropertiescb_ptr, timeout: u32, context: *mut core::ffi::c_void) -> QStatus @@ -2909,7 +2909,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getallpropertiesasync(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, callback : alljoyn_proxybusobject_listener_getallpropertiescb_ptr, timeout : u32, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_proxybusobject_getallpropertiesasync(core::mem::transmute(proxyobj), iface.param().abi(), core::mem::transmute(callback), core::mem::transmute(timeout), core::mem::transmute(context)) + alljoyn_proxybusobject_getallpropertiesasync(proxyobj, iface.param().abi(), callback, timeout, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_proxybusobject_getchild(proxyobj: alljoyn_proxybusobject, path: P1) -> alljoyn_proxybusobject @@ -2917,12 +2917,12 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getchild(proxyobj : alljoyn_proxybusobject, path : windows_core::PCSTR) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_getchild(core::mem::transmute(proxyobj), path.param().abi()) + alljoyn_proxybusobject_getchild(proxyobj, path.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getchildren(proxyobj: alljoyn_proxybusobject, children: *mut alljoyn_proxybusobject, numchildren: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getchildren(proxyobj : alljoyn_proxybusobject, children : *mut alljoyn_proxybusobject, numchildren : usize) -> usize); - alljoyn_proxybusobject_getchildren(core::mem::transmute(proxyobj), core::mem::transmute(children), core::mem::transmute(numchildren)) + alljoyn_proxybusobject_getchildren(proxyobj, core::mem::transmute(children), numchildren) } #[inline] pub unsafe fn alljoyn_proxybusobject_getinterface(proxyobj: alljoyn_proxybusobject, iface: P1) -> alljoyn_interfacedescription @@ -2930,17 +2930,17 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getinterface(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR) -> alljoyn_interfacedescription); - alljoyn_proxybusobject_getinterface(core::mem::transmute(proxyobj), iface.param().abi()) + alljoyn_proxybusobject_getinterface(proxyobj, iface.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getinterfaces(proxyobj: alljoyn_proxybusobject, ifaces: *const alljoyn_interfacedescription, numifaces: usize) -> usize { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getinterfaces(proxyobj : alljoyn_proxybusobject, ifaces : *const alljoyn_interfacedescription, numifaces : usize) -> usize); - alljoyn_proxybusobject_getinterfaces(core::mem::transmute(proxyobj), core::mem::transmute(ifaces), core::mem::transmute(numifaces)) + alljoyn_proxybusobject_getinterfaces(proxyobj, ifaces, numifaces) } #[inline] pub unsafe fn alljoyn_proxybusobject_getpath(proxyobj: alljoyn_proxybusobject) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getpath(proxyobj : alljoyn_proxybusobject) -> windows_core::PCSTR); - alljoyn_proxybusobject_getpath(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_getpath(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_getproperty(proxyobj: alljoyn_proxybusobject, iface: P1, property: P2, value: alljoyn_msgarg) -> QStatus @@ -2949,7 +2949,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getproperty(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, property : windows_core::PCSTR, value : alljoyn_msgarg) -> QStatus); - alljoyn_proxybusobject_getproperty(core::mem::transmute(proxyobj), iface.param().abi(), property.param().abi(), core::mem::transmute(value)) + alljoyn_proxybusobject_getproperty(proxyobj, iface.param().abi(), property.param().abi(), value) } #[inline] pub unsafe fn alljoyn_proxybusobject_getpropertyasync(proxyobj: alljoyn_proxybusobject, iface: P1, property: P2, callback: alljoyn_proxybusobject_listener_getpropertycb_ptr, timeout: u32, context: *mut core::ffi::c_void) -> QStatus @@ -2958,22 +2958,22 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getpropertyasync(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, property : windows_core::PCSTR, callback : alljoyn_proxybusobject_listener_getpropertycb_ptr, timeout : u32, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_proxybusobject_getpropertyasync(core::mem::transmute(proxyobj), iface.param().abi(), property.param().abi(), core::mem::transmute(callback), core::mem::transmute(timeout), core::mem::transmute(context)) + alljoyn_proxybusobject_getpropertyasync(proxyobj, iface.param().abi(), property.param().abi(), callback, timeout, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_proxybusobject_getservicename(proxyobj: alljoyn_proxybusobject) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getservicename(proxyobj : alljoyn_proxybusobject) -> windows_core::PCSTR); - alljoyn_proxybusobject_getservicename(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_getservicename(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_getsessionid(proxyobj: alljoyn_proxybusobject) -> u32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getsessionid(proxyobj : alljoyn_proxybusobject) -> u32); - alljoyn_proxybusobject_getsessionid(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_getsessionid(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_getuniquename(proxyobj: alljoyn_proxybusobject) -> windows_core::PCSTR { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getuniquename(proxyobj : alljoyn_proxybusobject) -> windows_core::PCSTR); - alljoyn_proxybusobject_getuniquename(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_getuniquename(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_implementsinterface(proxyobj: alljoyn_proxybusobject, iface: P1) -> i32 @@ -2981,27 +2981,27 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_implementsinterface(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR) -> i32); - alljoyn_proxybusobject_implementsinterface(core::mem::transmute(proxyobj), iface.param().abi()) + alljoyn_proxybusobject_implementsinterface(proxyobj, iface.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_introspectremoteobject(proxyobj: alljoyn_proxybusobject) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_introspectremoteobject(proxyobj : alljoyn_proxybusobject) -> QStatus); - alljoyn_proxybusobject_introspectremoteobject(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_introspectremoteobject(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_introspectremoteobjectasync(proxyobj: alljoyn_proxybusobject, callback: alljoyn_proxybusobject_listener_introspectcb_ptr, context: *mut core::ffi::c_void) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_introspectremoteobjectasync(proxyobj : alljoyn_proxybusobject, callback : alljoyn_proxybusobject_listener_introspectcb_ptr, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_proxybusobject_introspectremoteobjectasync(core::mem::transmute(proxyobj), core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_proxybusobject_introspectremoteobjectasync(proxyobj, callback, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_proxybusobject_issecure(proxyobj: alljoyn_proxybusobject) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_issecure(proxyobj : alljoyn_proxybusobject) -> i32); - alljoyn_proxybusobject_issecure(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_issecure(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_isvalid(proxyobj: alljoyn_proxybusobject) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_isvalid(proxyobj : alljoyn_proxybusobject) -> i32); - alljoyn_proxybusobject_isvalid(core::mem::transmute(proxyobj)) + alljoyn_proxybusobject_isvalid(proxyobj) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall(proxyobj: alljoyn_proxybusobject, ifacename: P1, methodname: P2, args: alljoyn_msgarg, numargs: usize, replymsg: alljoyn_message, timeout: u32, flags: u8) -> QStatus @@ -3010,17 +3010,17 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_methodcall(proxyobj : alljoyn_proxybusobject, ifacename : windows_core::PCSTR, methodname : windows_core::PCSTR, args : alljoyn_msgarg, numargs : usize, replymsg : alljoyn_message, timeout : u32, flags : u8) -> QStatus); - alljoyn_proxybusobject_methodcall(core::mem::transmute(proxyobj), ifacename.param().abi(), methodname.param().abi(), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(replymsg), core::mem::transmute(timeout), core::mem::transmute(flags)) + alljoyn_proxybusobject_methodcall(proxyobj, ifacename.param().abi(), methodname.param().abi(), args, numargs, replymsg, timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall_member(proxyobj: alljoyn_proxybusobject, method: alljoyn_interfacedescription_member, args: alljoyn_msgarg, numargs: usize, replymsg: alljoyn_message, timeout: u32, flags: u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_methodcall_member(proxyobj : alljoyn_proxybusobject, method : alljoyn_interfacedescription_member, args : alljoyn_msgarg, numargs : usize, replymsg : alljoyn_message, timeout : u32, flags : u8) -> QStatus); - alljoyn_proxybusobject_methodcall_member(core::mem::transmute(proxyobj), core::mem::transmute(method), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(replymsg), core::mem::transmute(timeout), core::mem::transmute(flags)) + alljoyn_proxybusobject_methodcall_member(proxyobj, core::mem::transmute(method), args, numargs, replymsg, timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall_member_noreply(proxyobj: alljoyn_proxybusobject, method: alljoyn_interfacedescription_member, args: alljoyn_msgarg, numargs: usize, flags: u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_methodcall_member_noreply(proxyobj : alljoyn_proxybusobject, method : alljoyn_interfacedescription_member, args : alljoyn_msgarg, numargs : usize, flags : u8) -> QStatus); - alljoyn_proxybusobject_methodcall_member_noreply(core::mem::transmute(proxyobj), core::mem::transmute(method), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(flags)) + alljoyn_proxybusobject_methodcall_member_noreply(proxyobj, core::mem::transmute(method), args, numargs, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall_noreply(proxyobj: alljoyn_proxybusobject, ifacename: P1, methodname: P2, args: alljoyn_msgarg, numargs: usize, flags: u8) -> QStatus @@ -3029,7 +3029,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_methodcall_noreply(proxyobj : alljoyn_proxybusobject, ifacename : windows_core::PCSTR, methodname : windows_core::PCSTR, args : alljoyn_msgarg, numargs : usize, flags : u8) -> QStatus); - alljoyn_proxybusobject_methodcall_noreply(core::mem::transmute(proxyobj), ifacename.param().abi(), methodname.param().abi(), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(flags)) + alljoyn_proxybusobject_methodcall_noreply(proxyobj, ifacename.param().abi(), methodname.param().abi(), args, numargs, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcallasync(proxyobj: alljoyn_proxybusobject, ifacename: P1, methodname: P2, replyfunc: alljoyn_messagereceiver_replyhandler_ptr, args: alljoyn_msgarg, numargs: usize, context: *mut core::ffi::c_void, timeout: u32, flags: u8) -> QStatus @@ -3038,12 +3038,12 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_methodcallasync(proxyobj : alljoyn_proxybusobject, ifacename : windows_core::PCSTR, methodname : windows_core::PCSTR, replyfunc : alljoyn_messagereceiver_replyhandler_ptr, args : alljoyn_msgarg, numargs : usize, context : *mut core::ffi::c_void, timeout : u32, flags : u8) -> QStatus); - alljoyn_proxybusobject_methodcallasync(core::mem::transmute(proxyobj), ifacename.param().abi(), methodname.param().abi(), core::mem::transmute(replyfunc), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(context), core::mem::transmute(timeout), core::mem::transmute(flags)) + alljoyn_proxybusobject_methodcallasync(proxyobj, ifacename.param().abi(), methodname.param().abi(), replyfunc, args, numargs, core::mem::transmute(context), timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcallasync_member(proxyobj: alljoyn_proxybusobject, method: alljoyn_interfacedescription_member, replyfunc: alljoyn_messagereceiver_replyhandler_ptr, args: alljoyn_msgarg, numargs: usize, context: *mut core::ffi::c_void, timeout: u32, flags: u8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_methodcallasync_member(proxyobj : alljoyn_proxybusobject, method : alljoyn_interfacedescription_member, replyfunc : alljoyn_messagereceiver_replyhandler_ptr, args : alljoyn_msgarg, numargs : usize, context : *mut core::ffi::c_void, timeout : u32, flags : u8) -> QStatus); - alljoyn_proxybusobject_methodcallasync_member(core::mem::transmute(proxyobj), core::mem::transmute(method), core::mem::transmute(replyfunc), core::mem::transmute(args), core::mem::transmute(numargs), core::mem::transmute(context), core::mem::transmute(timeout), core::mem::transmute(flags)) + alljoyn_proxybusobject_methodcallasync_member(proxyobj, core::mem::transmute(method), replyfunc, args, numargs, core::mem::transmute(context), timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_parsexml(proxyobj: alljoyn_proxybusobject, xml: P1, identifier: P2) -> QStatus @@ -3052,27 +3052,27 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_parsexml(proxyobj : alljoyn_proxybusobject, xml : windows_core::PCSTR, identifier : windows_core::PCSTR) -> QStatus); - alljoyn_proxybusobject_parsexml(core::mem::transmute(proxyobj), xml.param().abi(), identifier.param().abi()) + alljoyn_proxybusobject_parsexml(proxyobj, xml.param().abi(), identifier.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_create(proxy: alljoyn_proxybusobject) -> alljoyn_proxybusobject_ref { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_create(proxy : alljoyn_proxybusobject) -> alljoyn_proxybusobject_ref); - alljoyn_proxybusobject_ref_create(core::mem::transmute(proxy)) + alljoyn_proxybusobject_ref_create(proxy) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_decref(r#ref: alljoyn_proxybusobject_ref) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_decref(r#ref : alljoyn_proxybusobject_ref)); - alljoyn_proxybusobject_ref_decref(core::mem::transmute(r#ref)) + alljoyn_proxybusobject_ref_decref(r#ref) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_get(r#ref: alljoyn_proxybusobject_ref) -> alljoyn_proxybusobject { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_get(r#ref : alljoyn_proxybusobject_ref) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_ref_get(core::mem::transmute(r#ref)) + alljoyn_proxybusobject_ref_get(r#ref) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_incref(r#ref: alljoyn_proxybusobject_ref) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_incref(r#ref : alljoyn_proxybusobject_ref)); - alljoyn_proxybusobject_ref_incref(core::mem::transmute(r#ref)) + alljoyn_proxybusobject_ref_incref(r#ref) } #[inline] pub unsafe fn alljoyn_proxybusobject_registerpropertieschangedlistener(proxyobj: alljoyn_proxybusobject, iface: P1, properties: *const *const i8, numproperties: usize, callback: alljoyn_proxybusobject_listener_propertieschanged_ptr, context: *mut core::ffi::c_void) -> QStatus @@ -3080,7 +3080,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_registerpropertieschangedlistener(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, properties : *const *const i8, numproperties : usize, callback : alljoyn_proxybusobject_listener_propertieschanged_ptr, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_proxybusobject_registerpropertieschangedlistener(core::mem::transmute(proxyobj), iface.param().abi(), core::mem::transmute(properties), core::mem::transmute(numproperties), core::mem::transmute(callback), core::mem::transmute(context)) + alljoyn_proxybusobject_registerpropertieschangedlistener(proxyobj, iface.param().abi(), properties, numproperties, callback, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_proxybusobject_removechild(proxyobj: alljoyn_proxybusobject, path: P1) -> QStatus @@ -3088,17 +3088,17 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_removechild(proxyobj : alljoyn_proxybusobject, path : windows_core::PCSTR) -> QStatus); - alljoyn_proxybusobject_removechild(core::mem::transmute(proxyobj), path.param().abi()) + alljoyn_proxybusobject_removechild(proxyobj, path.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_secureconnection(proxyobj: alljoyn_proxybusobject, forceauth: i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_secureconnection(proxyobj : alljoyn_proxybusobject, forceauth : i32) -> QStatus); - alljoyn_proxybusobject_secureconnection(core::mem::transmute(proxyobj), core::mem::transmute(forceauth)) + alljoyn_proxybusobject_secureconnection(proxyobj, forceauth) } #[inline] pub unsafe fn alljoyn_proxybusobject_secureconnectionasync(proxyobj: alljoyn_proxybusobject, forceauth: i32) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_secureconnectionasync(proxyobj : alljoyn_proxybusobject, forceauth : i32) -> QStatus); - alljoyn_proxybusobject_secureconnectionasync(core::mem::transmute(proxyobj), core::mem::transmute(forceauth)) + alljoyn_proxybusobject_secureconnectionasync(proxyobj, forceauth) } #[inline] pub unsafe fn alljoyn_proxybusobject_setproperty(proxyobj: alljoyn_proxybusobject, iface: P1, property: P2, value: alljoyn_msgarg) -> QStatus @@ -3107,7 +3107,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_setproperty(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, property : windows_core::PCSTR, value : alljoyn_msgarg) -> QStatus); - alljoyn_proxybusobject_setproperty(core::mem::transmute(proxyobj), iface.param().abi(), property.param().abi(), core::mem::transmute(value)) + alljoyn_proxybusobject_setproperty(proxyobj, iface.param().abi(), property.param().abi(), value) } #[inline] pub unsafe fn alljoyn_proxybusobject_setpropertyasync(proxyobj: alljoyn_proxybusobject, iface: P1, property: P2, value: alljoyn_msgarg, callback: alljoyn_proxybusobject_listener_setpropertycb_ptr, timeout: u32, context: *mut core::ffi::c_void) -> QStatus @@ -3116,7 +3116,7 @@ where P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_setpropertyasync(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, property : windows_core::PCSTR, value : alljoyn_msgarg, callback : alljoyn_proxybusobject_listener_setpropertycb_ptr, timeout : u32, context : *mut core::ffi::c_void) -> QStatus); - alljoyn_proxybusobject_setpropertyasync(core::mem::transmute(proxyobj), iface.param().abi(), property.param().abi(), core::mem::transmute(value), core::mem::transmute(callback), core::mem::transmute(timeout), core::mem::transmute(context)) + alljoyn_proxybusobject_setpropertyasync(proxyobj, iface.param().abi(), property.param().abi(), value, callback, timeout, core::mem::transmute(context)) } #[inline] pub unsafe fn alljoyn_proxybusobject_unregisterpropertieschangedlistener(proxyobj: alljoyn_proxybusobject, iface: P1, callback: alljoyn_proxybusobject_listener_propertieschanged_ptr) -> QStatus @@ -3124,7 +3124,7 @@ where P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_unregisterpropertieschangedlistener(proxyobj : alljoyn_proxybusobject, iface : windows_core::PCSTR, callback : alljoyn_proxybusobject_listener_propertieschanged_ptr) -> QStatus); - alljoyn_proxybusobject_unregisterpropertieschangedlistener(core::mem::transmute(proxyobj), iface.param().abi(), core::mem::transmute(callback)) + alljoyn_proxybusobject_unregisterpropertieschangedlistener(proxyobj, iface.param().abi(), callback) } #[inline] pub unsafe fn alljoyn_routerinit() -> QStatus { @@ -3144,7 +3144,7 @@ pub unsafe fn alljoyn_routershutdown() -> QStatus { #[inline] pub unsafe fn alljoyn_securityapplicationproxy_claim(proxy: alljoyn_securityapplicationproxy, cakey: *mut i8, identitycertificatechain: *mut i8, groupid: *const u8, groupsize: usize, groupauthority: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_claim(proxy : alljoyn_securityapplicationproxy, cakey : *mut i8, identitycertificatechain : *mut i8, groupid : *const u8, groupsize : usize, groupauthority : *mut i8, manifestsxmls : *mut *mut i8, manifestscount : usize) -> QStatus); - alljoyn_securityapplicationproxy_claim(core::mem::transmute(proxy), core::mem::transmute(cakey), core::mem::transmute(identitycertificatechain), core::mem::transmute(groupid), core::mem::transmute(groupsize), core::mem::transmute(groupauthority), core::mem::transmute(manifestsxmls), core::mem::transmute(manifestscount)) + alljoyn_securityapplicationproxy_claim(proxy, core::mem::transmute(cakey), core::mem::transmute(identitycertificatechain), groupid, groupsize, core::mem::transmute(groupauthority), core::mem::transmute(manifestsxmls), manifestscount) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_computemanifestdigest(unsignedmanifestxml: *mut i8, identitycertificatepem: *mut i8, digest: *mut *mut u8, digestsize: *mut usize) -> QStatus { @@ -3154,12 +3154,12 @@ pub unsafe fn alljoyn_securityapplicationproxy_computemanifestdigest(unsignedman #[inline] pub unsafe fn alljoyn_securityapplicationproxy_create(bus: alljoyn_busattachment, appbusname: *mut i8, sessionid: u32) -> alljoyn_securityapplicationproxy { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_create(bus : alljoyn_busattachment, appbusname : *mut i8, sessionid : u32) -> alljoyn_securityapplicationproxy); - alljoyn_securityapplicationproxy_create(core::mem::transmute(bus), core::mem::transmute(appbusname), core::mem::transmute(sessionid)) + alljoyn_securityapplicationproxy_create(bus, core::mem::transmute(appbusname), sessionid) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_destroy(proxy: alljoyn_securityapplicationproxy) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_destroy(proxy : alljoyn_securityapplicationproxy)); - alljoyn_securityapplicationproxy_destroy(core::mem::transmute(proxy)) + alljoyn_securityapplicationproxy_destroy(proxy) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_digest_destroy(digest: *mut u8) { @@ -3174,37 +3174,37 @@ pub unsafe fn alljoyn_securityapplicationproxy_eccpublickey_destroy(eccpublickey #[inline] pub unsafe fn alljoyn_securityapplicationproxy_endmanagement(proxy: alljoyn_securityapplicationproxy) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_endmanagement(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_endmanagement(core::mem::transmute(proxy)) + alljoyn_securityapplicationproxy_endmanagement(proxy) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getapplicationstate(proxy: alljoyn_securityapplicationproxy, applicationstate: *mut alljoyn_applicationstate) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getapplicationstate(proxy : alljoyn_securityapplicationproxy, applicationstate : *mut alljoyn_applicationstate) -> QStatus); - alljoyn_securityapplicationproxy_getapplicationstate(core::mem::transmute(proxy), core::mem::transmute(applicationstate)) + alljoyn_securityapplicationproxy_getapplicationstate(proxy, core::mem::transmute(applicationstate)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getclaimcapabilities(proxy: alljoyn_securityapplicationproxy, capabilities: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getclaimcapabilities(proxy : alljoyn_securityapplicationproxy, capabilities : *mut u16) -> QStatus); - alljoyn_securityapplicationproxy_getclaimcapabilities(core::mem::transmute(proxy), core::mem::transmute(capabilities)) + alljoyn_securityapplicationproxy_getclaimcapabilities(proxy, core::mem::transmute(capabilities)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy: alljoyn_securityapplicationproxy, additionalinfo: *mut u16) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy : alljoyn_securityapplicationproxy, additionalinfo : *mut u16) -> QStatus); - alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(core::mem::transmute(proxy), core::mem::transmute(additionalinfo)) + alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy, core::mem::transmute(additionalinfo)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getdefaultpolicy(proxy: alljoyn_securityapplicationproxy, policyxml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getdefaultpolicy(proxy : alljoyn_securityapplicationproxy, policyxml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_getdefaultpolicy(core::mem::transmute(proxy), core::mem::transmute(policyxml)) + alljoyn_securityapplicationproxy_getdefaultpolicy(proxy, core::mem::transmute(policyxml)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_geteccpublickey(proxy: alljoyn_securityapplicationproxy, eccpublickey: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_geteccpublickey(proxy : alljoyn_securityapplicationproxy, eccpublickey : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_geteccpublickey(core::mem::transmute(proxy), core::mem::transmute(eccpublickey)) + alljoyn_securityapplicationproxy_geteccpublickey(proxy, core::mem::transmute(eccpublickey)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getmanifesttemplate(proxy: alljoyn_securityapplicationproxy, manifesttemplatexml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getmanifesttemplate(proxy : alljoyn_securityapplicationproxy, manifesttemplatexml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_getmanifesttemplate(core::mem::transmute(proxy), core::mem::transmute(manifesttemplatexml)) + alljoyn_securityapplicationproxy_getmanifesttemplate(proxy, core::mem::transmute(manifesttemplatexml)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getpermissionmanagementsessionport() -> u16 { @@ -3214,12 +3214,12 @@ pub unsafe fn alljoyn_securityapplicationproxy_getpermissionmanagementsessionpor #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getpolicy(proxy: alljoyn_securityapplicationproxy, policyxml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getpolicy(proxy : alljoyn_securityapplicationproxy, policyxml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_getpolicy(core::mem::transmute(proxy), core::mem::transmute(policyxml)) + alljoyn_securityapplicationproxy_getpolicy(proxy, core::mem::transmute(policyxml)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_installmembership(proxy: alljoyn_securityapplicationproxy, membershipcertificatechain: *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_installmembership(proxy : alljoyn_securityapplicationproxy, membershipcertificatechain : *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_installmembership(core::mem::transmute(proxy), core::mem::transmute(membershipcertificatechain)) + alljoyn_securityapplicationproxy_installmembership(proxy, core::mem::transmute(membershipcertificatechain)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_manifest_destroy(signedmanifestxml: *mut i8) { @@ -3239,17 +3239,17 @@ pub unsafe fn alljoyn_securityapplicationproxy_policy_destroy(policyxml: *mut i8 #[inline] pub unsafe fn alljoyn_securityapplicationproxy_reset(proxy: alljoyn_securityapplicationproxy) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_reset(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_reset(core::mem::transmute(proxy)) + alljoyn_securityapplicationproxy_reset(proxy) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_resetpolicy(proxy: alljoyn_securityapplicationproxy) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_resetpolicy(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_resetpolicy(core::mem::transmute(proxy)) + alljoyn_securityapplicationproxy_resetpolicy(proxy) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_setmanifestsignature(unsignedmanifestxml: *mut i8, identitycertificatepem: *mut i8, signature: *const u8, signaturesize: usize, signedmanifestxml: *mut *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_setmanifestsignature(unsignedmanifestxml : *mut i8, identitycertificatepem : *mut i8, signature : *const u8, signaturesize : usize, signedmanifestxml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_setmanifestsignature(core::mem::transmute(unsignedmanifestxml), core::mem::transmute(identitycertificatepem), core::mem::transmute(signature), core::mem::transmute(signaturesize), core::mem::transmute(signedmanifestxml)) + alljoyn_securityapplicationproxy_setmanifestsignature(core::mem::transmute(unsignedmanifestxml), core::mem::transmute(identitycertificatepem), signature, signaturesize, core::mem::transmute(signedmanifestxml)) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_signmanifest(unsignedmanifestxml: *mut i8, identitycertificatepem: *mut i8, signingprivatekeypem: *mut i8, signedmanifestxml: *mut *mut i8) -> QStatus { @@ -3259,97 +3259,97 @@ pub unsafe fn alljoyn_securityapplicationproxy_signmanifest(unsignedmanifestxml: #[inline] pub unsafe fn alljoyn_securityapplicationproxy_startmanagement(proxy: alljoyn_securityapplicationproxy) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_startmanagement(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_startmanagement(core::mem::transmute(proxy)) + alljoyn_securityapplicationproxy_startmanagement(proxy) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_updateidentity(proxy: alljoyn_securityapplicationproxy, identitycertificatechain: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_updateidentity(proxy : alljoyn_securityapplicationproxy, identitycertificatechain : *mut i8, manifestsxmls : *mut *mut i8, manifestscount : usize) -> QStatus); - alljoyn_securityapplicationproxy_updateidentity(core::mem::transmute(proxy), core::mem::transmute(identitycertificatechain), core::mem::transmute(manifestsxmls), core::mem::transmute(manifestscount)) + alljoyn_securityapplicationproxy_updateidentity(proxy, core::mem::transmute(identitycertificatechain), core::mem::transmute(manifestsxmls), manifestscount) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_updatepolicy(proxy: alljoyn_securityapplicationproxy, policyxml: *mut i8) -> QStatus { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_updatepolicy(proxy : alljoyn_securityapplicationproxy, policyxml : *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_updatepolicy(core::mem::transmute(proxy), core::mem::transmute(policyxml)) + alljoyn_securityapplicationproxy_updatepolicy(proxy, core::mem::transmute(policyxml)) } #[inline] pub unsafe fn alljoyn_sessionlistener_create(callbacks: *const alljoyn_sessionlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_sessionlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionlistener_create(callbacks : *const alljoyn_sessionlistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_sessionlistener); - alljoyn_sessionlistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_sessionlistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_sessionlistener_destroy(listener: alljoyn_sessionlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionlistener_destroy(listener : alljoyn_sessionlistener)); - alljoyn_sessionlistener_destroy(core::mem::transmute(listener)) + alljoyn_sessionlistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_sessionopts_cmp(one: alljoyn_sessionopts, other: alljoyn_sessionopts) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_cmp(one : alljoyn_sessionopts, other : alljoyn_sessionopts) -> i32); - alljoyn_sessionopts_cmp(core::mem::transmute(one), core::mem::transmute(other)) + alljoyn_sessionopts_cmp(one, other) } #[inline] pub unsafe fn alljoyn_sessionopts_create(traffic: u8, ismultipoint: i32, proximity: u8, transports: u16) -> alljoyn_sessionopts { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_create(traffic : u8, ismultipoint : i32, proximity : u8, transports : u16) -> alljoyn_sessionopts); - alljoyn_sessionopts_create(core::mem::transmute(traffic), core::mem::transmute(ismultipoint), core::mem::transmute(proximity), core::mem::transmute(transports)) + alljoyn_sessionopts_create(traffic, ismultipoint, proximity, transports) } #[inline] pub unsafe fn alljoyn_sessionopts_destroy(opts: alljoyn_sessionopts) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_destroy(opts : alljoyn_sessionopts)); - alljoyn_sessionopts_destroy(core::mem::transmute(opts)) + alljoyn_sessionopts_destroy(opts) } #[inline] pub unsafe fn alljoyn_sessionopts_get_multipoint(opts: alljoyn_sessionopts) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_multipoint(opts : alljoyn_sessionopts) -> i32); - alljoyn_sessionopts_get_multipoint(core::mem::transmute(opts)) + alljoyn_sessionopts_get_multipoint(opts) } #[inline] pub unsafe fn alljoyn_sessionopts_get_proximity(opts: alljoyn_sessionopts) -> u8 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_proximity(opts : alljoyn_sessionopts) -> u8); - alljoyn_sessionopts_get_proximity(core::mem::transmute(opts)) + alljoyn_sessionopts_get_proximity(opts) } #[inline] pub unsafe fn alljoyn_sessionopts_get_traffic(opts: alljoyn_sessionopts) -> u8 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_traffic(opts : alljoyn_sessionopts) -> u8); - alljoyn_sessionopts_get_traffic(core::mem::transmute(opts)) + alljoyn_sessionopts_get_traffic(opts) } #[inline] pub unsafe fn alljoyn_sessionopts_get_transports(opts: alljoyn_sessionopts) -> u16 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_transports(opts : alljoyn_sessionopts) -> u16); - alljoyn_sessionopts_get_transports(core::mem::transmute(opts)) + alljoyn_sessionopts_get_transports(opts) } #[inline] pub unsafe fn alljoyn_sessionopts_iscompatible(one: alljoyn_sessionopts, other: alljoyn_sessionopts) -> i32 { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_iscompatible(one : alljoyn_sessionopts, other : alljoyn_sessionopts) -> i32); - alljoyn_sessionopts_iscompatible(core::mem::transmute(one), core::mem::transmute(other)) + alljoyn_sessionopts_iscompatible(one, other) } #[inline] pub unsafe fn alljoyn_sessionopts_set_multipoint(opts: alljoyn_sessionopts, ismultipoint: i32) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_multipoint(opts : alljoyn_sessionopts, ismultipoint : i32)); - alljoyn_sessionopts_set_multipoint(core::mem::transmute(opts), core::mem::transmute(ismultipoint)) + alljoyn_sessionopts_set_multipoint(opts, ismultipoint) } #[inline] pub unsafe fn alljoyn_sessionopts_set_proximity(opts: alljoyn_sessionopts, proximity: u8) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_proximity(opts : alljoyn_sessionopts, proximity : u8)); - alljoyn_sessionopts_set_proximity(core::mem::transmute(opts), core::mem::transmute(proximity)) + alljoyn_sessionopts_set_proximity(opts, proximity) } #[inline] pub unsafe fn alljoyn_sessionopts_set_traffic(opts: alljoyn_sessionopts, traffic: u8) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_traffic(opts : alljoyn_sessionopts, traffic : u8)); - alljoyn_sessionopts_set_traffic(core::mem::transmute(opts), core::mem::transmute(traffic)) + alljoyn_sessionopts_set_traffic(opts, traffic) } #[inline] pub unsafe fn alljoyn_sessionopts_set_transports(opts: alljoyn_sessionopts, transports: u16) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_transports(opts : alljoyn_sessionopts, transports : u16)); - alljoyn_sessionopts_set_transports(core::mem::transmute(opts), core::mem::transmute(transports)) + alljoyn_sessionopts_set_transports(opts, transports) } #[inline] pub unsafe fn alljoyn_sessionportlistener_create(callbacks: *const alljoyn_sessionportlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_sessionportlistener { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionportlistener_create(callbacks : *const alljoyn_sessionportlistener_callbacks, context : *const core::ffi::c_void) -> alljoyn_sessionportlistener); - alljoyn_sessionportlistener_create(core::mem::transmute(callbacks), core::mem::transmute(context)) + alljoyn_sessionportlistener_create(callbacks, context) } #[inline] pub unsafe fn alljoyn_sessionportlistener_destroy(listener: alljoyn_sessionportlistener) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionportlistener_destroy(listener : alljoyn_sessionportlistener)); - alljoyn_sessionportlistener_destroy(core::mem::transmute(listener)) + alljoyn_sessionportlistener_destroy(listener) } #[inline] pub unsafe fn alljoyn_shutdown() -> QStatus { @@ -3364,7 +3364,7 @@ pub unsafe fn alljoyn_unity_deferred_callbacks_process() -> i32 { #[inline] pub unsafe fn alljoyn_unity_set_deferred_callback_mainthread_only(mainthread_only: i32) { windows_targets::link!("msajapi.dll" "system" fn alljoyn_unity_set_deferred_callback_mainthread_only(mainthread_only : i32)); - alljoyn_unity_set_deferred_callback_mainthread_only(core::mem::transmute(mainthread_only)) + alljoyn_unity_set_deferred_callback_mainthread_only(mainthread_only) } pub const AJ_IFC_SECURITY_INHERIT: alljoyn_interfacedescription_securitypolicy = alljoyn_interfacedescription_securitypolicy(0i32); pub const AJ_IFC_SECURITY_OFF: alljoyn_interfacedescription_securitypolicy = alljoyn_interfacedescription_securitypolicy(2i32); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs index ff12583e26..d746efa2de 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs @@ -6,39 +6,39 @@ pub unsafe fn WinBioAcquireFocus() -> windows_core::Result<()> { #[inline] pub unsafe fn WinBioAsyncEnumBiometricUnits(frameworkhandle: u32, factor: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioAsyncEnumBiometricUnits(frameworkhandle : u32, factor : u32) -> windows_core::HRESULT); - WinBioAsyncEnumBiometricUnits(core::mem::transmute(frameworkhandle), core::mem::transmute(factor)).ok() + WinBioAsyncEnumBiometricUnits(frameworkhandle, factor).ok() } #[inline] pub unsafe fn WinBioAsyncEnumDatabases(frameworkhandle: u32, factor: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioAsyncEnumDatabases(frameworkhandle : u32, factor : u32) -> windows_core::HRESULT); - WinBioAsyncEnumDatabases(core::mem::transmute(frameworkhandle), core::mem::transmute(factor)).ok() + WinBioAsyncEnumDatabases(frameworkhandle, factor).ok() } #[inline] pub unsafe fn WinBioAsyncEnumServiceProviders(frameworkhandle: u32, factor: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioAsyncEnumServiceProviders(frameworkhandle : u32, factor : u32) -> windows_core::HRESULT); - WinBioAsyncEnumServiceProviders(core::mem::transmute(frameworkhandle), core::mem::transmute(factor)).ok() + WinBioAsyncEnumServiceProviders(frameworkhandle, factor).ok() } #[inline] pub unsafe fn WinBioAsyncMonitorFrameworkChanges(frameworkhandle: u32, changetypes: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioAsyncMonitorFrameworkChanges(frameworkhandle : u32, changetypes : u32) -> windows_core::HRESULT); - WinBioAsyncMonitorFrameworkChanges(core::mem::transmute(frameworkhandle), core::mem::transmute(changetypes)).ok() + WinBioAsyncMonitorFrameworkChanges(frameworkhandle, changetypes).ok() } #[inline] pub unsafe fn WinBioAsyncOpenFramework(notificationmethod: WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow: Option, messagecode: Option, callbackroutine: Option, userdata: Option<*const core::ffi::c_void>, asynchronousopen: bool, frameworkhandle: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioAsyncOpenFramework(notificationmethod : WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow : super::super::Foundation:: HWND, messagecode : u32, callbackroutine : PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata : *const core::ffi::c_void, asynchronousopen : super::super::Foundation:: BOOL, frameworkhandle : *mut u32) -> windows_core::HRESULT); - WinBioAsyncOpenFramework(core::mem::transmute(notificationmethod), core::mem::transmute(targetwindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(messagecode.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed())), asynchronousopen.into(), core::mem::transmute(frameworkhandle.unwrap_or(core::mem::zeroed()))).ok() + WinBioAsyncOpenFramework(notificationmethod, core::mem::transmute(targetwindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(messagecode.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed())), asynchronousopen.into(), core::mem::transmute(frameworkhandle.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioAsyncOpenSession(factor: u32, pooltype: WINBIO_POOL, flags: u32, unitarray: Option<&[u32]>, databaseid: Option<*const windows_core::GUID>, notificationmethod: WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow: Option, messagecode: Option, callbackroutine: Option, userdata: Option<*const core::ffi::c_void>, asynchronousopen: bool, sessionhandle: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioAsyncOpenSession(factor : u32, pooltype : WINBIO_POOL, flags : u32, unitarray : *const u32, unitcount : usize, databaseid : *const windows_core::GUID, notificationmethod : WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow : super::super::Foundation:: HWND, messagecode : u32, callbackroutine : PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata : *const core::ffi::c_void, asynchronousopen : super::super::Foundation:: BOOL, sessionhandle : *mut u32) -> windows_core::HRESULT); WinBioAsyncOpenSession( - core::mem::transmute(factor), - core::mem::transmute(pooltype), - core::mem::transmute(flags), + factor, + pooltype, + flags, core::mem::transmute(unitarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), unitarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(databaseid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(notificationmethod), + notificationmethod, core::mem::transmute(targetwindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(messagecode.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), @@ -51,103 +51,103 @@ pub unsafe fn WinBioAsyncOpenSession(factor: u32, pooltype: WINBIO_POOL, flags: #[inline] pub unsafe fn WinBioCancel(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioCancel(sessionhandle : u32) -> windows_core::HRESULT); - WinBioCancel(core::mem::transmute(sessionhandle)).ok() + WinBioCancel(sessionhandle).ok() } #[inline] pub unsafe fn WinBioCaptureSample(sessionhandle: u32, purpose: u8, flags: u8, unitid: Option<*mut u32>, sample: *mut *mut WINBIO_BIR, samplesize: Option<*mut usize>, rejectdetail: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioCaptureSample(sessionhandle : u32, purpose : u8, flags : u8, unitid : *mut u32, sample : *mut *mut WINBIO_BIR, samplesize : *mut usize, rejectdetail : *mut u32) -> windows_core::HRESULT); - WinBioCaptureSample(core::mem::transmute(sessionhandle), core::mem::transmute(purpose), core::mem::transmute(flags), core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(sample), core::mem::transmute(samplesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() + WinBioCaptureSample(sessionhandle, purpose, flags, core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(sample), core::mem::transmute(samplesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioCaptureSampleWithCallback(sessionhandle: u32, purpose: u8, flags: u8, capturecallback: PWINBIO_CAPTURE_CALLBACK, capturecallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioCaptureSampleWithCallback(sessionhandle : u32, purpose : u8, flags : u8, capturecallback : PWINBIO_CAPTURE_CALLBACK, capturecallbackcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioCaptureSampleWithCallback(core::mem::transmute(sessionhandle), core::mem::transmute(purpose), core::mem::transmute(flags), core::mem::transmute(capturecallback), core::mem::transmute(capturecallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + WinBioCaptureSampleWithCallback(sessionhandle, purpose, flags, capturecallback, core::mem::transmute(capturecallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioCloseFramework(frameworkhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioCloseFramework(frameworkhandle : u32) -> windows_core::HRESULT); - WinBioCloseFramework(core::mem::transmute(frameworkhandle)).ok() + WinBioCloseFramework(frameworkhandle).ok() } #[inline] pub unsafe fn WinBioCloseSession(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioCloseSession(sessionhandle : u32) -> windows_core::HRESULT); - WinBioCloseSession(core::mem::transmute(sessionhandle)).ok() + WinBioCloseSession(sessionhandle).ok() } #[inline] pub unsafe fn WinBioControlUnit(sessionhandle: u32, unitid: u32, component: WINBIO_COMPONENT, controlcode: u32, sendbuffer: &[u8], receivebuffer: &mut [u8], receivedatasize: *mut usize, operationstatus: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioControlUnit(sessionhandle : u32, unitid : u32, component : WINBIO_COMPONENT, controlcode : u32, sendbuffer : *const u8, sendbuffersize : usize, receivebuffer : *mut u8, receivebuffersize : usize, receivedatasize : *mut usize, operationstatus : *mut u32) -> windows_core::HRESULT); - WinBioControlUnit(core::mem::transmute(sessionhandle), core::mem::transmute(unitid), core::mem::transmute(component), core::mem::transmute(controlcode), core::mem::transmute(sendbuffer.as_ptr()), sendbuffer.len().try_into().unwrap(), core::mem::transmute(receivebuffer.as_ptr()), receivebuffer.len().try_into().unwrap(), core::mem::transmute(receivedatasize), core::mem::transmute(operationstatus.unwrap_or(core::mem::zeroed()))).ok() + WinBioControlUnit(sessionhandle, unitid, component, controlcode, core::mem::transmute(sendbuffer.as_ptr()), sendbuffer.len().try_into().unwrap(), core::mem::transmute(receivebuffer.as_ptr()), receivebuffer.len().try_into().unwrap(), core::mem::transmute(receivedatasize), core::mem::transmute(operationstatus.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioControlUnitPrivileged(sessionhandle: u32, unitid: u32, component: WINBIO_COMPONENT, controlcode: u32, sendbuffer: &[u8], receivebuffer: &mut [u8], receivedatasize: *mut usize, operationstatus: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioControlUnitPrivileged(sessionhandle : u32, unitid : u32, component : WINBIO_COMPONENT, controlcode : u32, sendbuffer : *const u8, sendbuffersize : usize, receivebuffer : *mut u8, receivebuffersize : usize, receivedatasize : *mut usize, operationstatus : *mut u32) -> windows_core::HRESULT); - WinBioControlUnitPrivileged(core::mem::transmute(sessionhandle), core::mem::transmute(unitid), core::mem::transmute(component), core::mem::transmute(controlcode), core::mem::transmute(sendbuffer.as_ptr()), sendbuffer.len().try_into().unwrap(), core::mem::transmute(receivebuffer.as_ptr()), receivebuffer.len().try_into().unwrap(), core::mem::transmute(receivedatasize), core::mem::transmute(operationstatus.unwrap_or(core::mem::zeroed()))).ok() + WinBioControlUnitPrivileged(sessionhandle, unitid, component, controlcode, core::mem::transmute(sendbuffer.as_ptr()), sendbuffer.len().try_into().unwrap(), core::mem::transmute(receivebuffer.as_ptr()), receivebuffer.len().try_into().unwrap(), core::mem::transmute(receivedatasize), core::mem::transmute(operationstatus.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioDeleteTemplate(sessionhandle: u32, unitid: u32, identity: *const WINBIO_IDENTITY, subfactor: u8) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioDeleteTemplate(sessionhandle : u32, unitid : u32, identity : *const WINBIO_IDENTITY, subfactor : u8) -> windows_core::HRESULT); - WinBioDeleteTemplate(core::mem::transmute(sessionhandle), core::mem::transmute(unitid), core::mem::transmute(identity), core::mem::transmute(subfactor)).ok() + WinBioDeleteTemplate(sessionhandle, unitid, identity, subfactor).ok() } #[inline] pub unsafe fn WinBioEnrollBegin(sessionhandle: u32, subfactor: u8, unitid: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnrollBegin(sessionhandle : u32, subfactor : u8, unitid : u32) -> windows_core::HRESULT); - WinBioEnrollBegin(core::mem::transmute(sessionhandle), core::mem::transmute(subfactor), core::mem::transmute(unitid)).ok() + WinBioEnrollBegin(sessionhandle, subfactor, unitid).ok() } #[inline] pub unsafe fn WinBioEnrollCapture(sessionhandle: u32, rejectdetail: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnrollCapture(sessionhandle : u32, rejectdetail : *mut u32) -> windows_core::HRESULT); - WinBioEnrollCapture(core::mem::transmute(sessionhandle), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() + WinBioEnrollCapture(sessionhandle, core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioEnrollCaptureWithCallback(sessionhandle: u32, enrollcallback: PWINBIO_ENROLL_CAPTURE_CALLBACK, enrollcallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnrollCaptureWithCallback(sessionhandle : u32, enrollcallback : PWINBIO_ENROLL_CAPTURE_CALLBACK, enrollcallbackcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioEnrollCaptureWithCallback(core::mem::transmute(sessionhandle), core::mem::transmute(enrollcallback), core::mem::transmute(enrollcallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + WinBioEnrollCaptureWithCallback(sessionhandle, enrollcallback, core::mem::transmute(enrollcallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioEnrollCommit(sessionhandle: u32, identity: Option<*mut WINBIO_IDENTITY>, isnewtemplate: Option<*mut u8>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnrollCommit(sessionhandle : u32, identity : *mut WINBIO_IDENTITY, isnewtemplate : *mut u8) -> windows_core::HRESULT); - WinBioEnrollCommit(core::mem::transmute(sessionhandle), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(isnewtemplate.unwrap_or(core::mem::zeroed()))).ok() + WinBioEnrollCommit(sessionhandle, core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(isnewtemplate.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioEnrollDiscard(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnrollDiscard(sessionhandle : u32) -> windows_core::HRESULT); - WinBioEnrollDiscard(core::mem::transmute(sessionhandle)).ok() + WinBioEnrollDiscard(sessionhandle).ok() } #[inline] pub unsafe fn WinBioEnrollSelect(sessionhandle: u32, selectorvalue: u64) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnrollSelect(sessionhandle : u32, selectorvalue : u64) -> windows_core::HRESULT); - WinBioEnrollSelect(core::mem::transmute(sessionhandle), core::mem::transmute(selectorvalue)).ok() + WinBioEnrollSelect(sessionhandle, selectorvalue).ok() } #[inline] pub unsafe fn WinBioEnumBiometricUnits(factor: u32, unitschemaarray: *mut *mut WINBIO_UNIT_SCHEMA, unitcount: *mut usize) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnumBiometricUnits(factor : u32, unitschemaarray : *mut *mut WINBIO_UNIT_SCHEMA, unitcount : *mut usize) -> windows_core::HRESULT); - WinBioEnumBiometricUnits(core::mem::transmute(factor), core::mem::transmute(unitschemaarray), core::mem::transmute(unitcount)).ok() + WinBioEnumBiometricUnits(factor, core::mem::transmute(unitschemaarray), core::mem::transmute(unitcount)).ok() } #[inline] pub unsafe fn WinBioEnumDatabases(factor: u32, storageschemaarray: *mut *mut WINBIO_STORAGE_SCHEMA, storagecount: *mut usize) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnumDatabases(factor : u32, storageschemaarray : *mut *mut WINBIO_STORAGE_SCHEMA, storagecount : *mut usize) -> windows_core::HRESULT); - WinBioEnumDatabases(core::mem::transmute(factor), core::mem::transmute(storageschemaarray), core::mem::transmute(storagecount)).ok() + WinBioEnumDatabases(factor, core::mem::transmute(storageschemaarray), core::mem::transmute(storagecount)).ok() } #[inline] pub unsafe fn WinBioEnumEnrollments(sessionhandle: u32, unitid: u32, identity: *const WINBIO_IDENTITY, subfactorarray: *mut *mut u8, subfactorcount: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnumEnrollments(sessionhandle : u32, unitid : u32, identity : *const WINBIO_IDENTITY, subfactorarray : *mut *mut u8, subfactorcount : *mut usize) -> windows_core::HRESULT); - WinBioEnumEnrollments(core::mem::transmute(sessionhandle), core::mem::transmute(unitid), core::mem::transmute(identity), core::mem::transmute(subfactorarray), core::mem::transmute(subfactorcount.unwrap_or(core::mem::zeroed()))).ok() + WinBioEnumEnrollments(sessionhandle, unitid, identity, core::mem::transmute(subfactorarray), core::mem::transmute(subfactorcount.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioEnumServiceProviders(factor: u32, bspschemaarray: *mut *mut WINBIO_BSP_SCHEMA, bspcount: *mut usize) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioEnumServiceProviders(factor : u32, bspschemaarray : *mut *mut WINBIO_BSP_SCHEMA, bspcount : *mut usize) -> windows_core::HRESULT); - WinBioEnumServiceProviders(core::mem::transmute(factor), core::mem::transmute(bspschemaarray), core::mem::transmute(bspcount)).ok() + WinBioEnumServiceProviders(factor, core::mem::transmute(bspschemaarray), core::mem::transmute(bspcount)).ok() } #[inline] pub unsafe fn WinBioFree(address: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioFree(address : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioFree(core::mem::transmute(address)).ok() + WinBioFree(address).ok() } #[inline] pub unsafe fn WinBioGetCredentialState(identity: WINBIO_IDENTITY, r#type: WINBIO_CREDENTIAL_TYPE) -> windows_core::Result { windows_targets::link!("winbio.dll" "system" fn WinBioGetCredentialState(identity : WINBIO_IDENTITY, r#type : WINBIO_CREDENTIAL_TYPE, credentialstate : *mut WINBIO_CREDENTIAL_STATE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WinBioGetCredentialState(core::mem::transmute(identity), core::mem::transmute(r#type), &mut result__).map(|| core::mem::transmute(result__)) + WinBioGetCredentialState(core::mem::transmute(identity), r#type, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WinBioGetDomainLogonSetting(value: *mut u8, source: *mut WINBIO_SETTING_SOURCE) { @@ -163,7 +163,7 @@ pub unsafe fn WinBioGetEnabledSetting(value: *mut u8, source: *mut WINBIO_SETTIN pub unsafe fn WinBioGetEnrolledFactors(accountowner: *const WINBIO_IDENTITY) -> windows_core::Result { windows_targets::link!("winbio.dll" "system" fn WinBioGetEnrolledFactors(accountowner : *const WINBIO_IDENTITY, enrolledfactors : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WinBioGetEnrolledFactors(core::mem::transmute(accountowner), &mut result__).map(|| core::mem::transmute(result__)) + WinBioGetEnrolledFactors(accountowner, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WinBioGetLogonSetting(value: *mut u8, source: *mut WINBIO_SETTING_SOURCE) { @@ -173,63 +173,63 @@ pub unsafe fn WinBioGetLogonSetting(value: *mut u8, source: *mut WINBIO_SETTING_ #[inline] pub unsafe fn WinBioGetProperty(sessionhandle: u32, propertytype: u32, propertyid: u32, unitid: Option, identity: Option<*const WINBIO_IDENTITY>, subfactor: Option, propertybuffer: *mut *mut core::ffi::c_void, propertybuffersize: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioGetProperty(sessionhandle : u32, propertytype : u32, propertyid : u32, unitid : u32, identity : *const WINBIO_IDENTITY, subfactor : u8, propertybuffer : *mut *mut core::ffi::c_void, propertybuffersize : *mut usize) -> windows_core::HRESULT); - WinBioGetProperty(core::mem::transmute(sessionhandle), core::mem::transmute(propertytype), core::mem::transmute(propertyid), core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(subfactor.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer), core::mem::transmute(propertybuffersize.unwrap_or(core::mem::zeroed()))).ok() + WinBioGetProperty(sessionhandle, propertytype, propertyid, core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(subfactor.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer), core::mem::transmute(propertybuffersize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioIdentify(sessionhandle: u32, unitid: Option<*mut u32>, identity: Option<*mut WINBIO_IDENTITY>, subfactor: Option<*mut u8>, rejectdetail: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioIdentify(sessionhandle : u32, unitid : *mut u32, identity : *mut WINBIO_IDENTITY, subfactor : *mut u8, rejectdetail : *mut u32) -> windows_core::HRESULT); - WinBioIdentify(core::mem::transmute(sessionhandle), core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(subfactor.unwrap_or(core::mem::zeroed())), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() + WinBioIdentify(sessionhandle, core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(subfactor.unwrap_or(core::mem::zeroed())), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioIdentifyWithCallback(sessionhandle: u32, identifycallback: PWINBIO_IDENTIFY_CALLBACK, identifycallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioIdentifyWithCallback(sessionhandle : u32, identifycallback : PWINBIO_IDENTIFY_CALLBACK, identifycallbackcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioIdentifyWithCallback(core::mem::transmute(sessionhandle), core::mem::transmute(identifycallback), core::mem::transmute(identifycallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + WinBioIdentifyWithCallback(sessionhandle, identifycallback, core::mem::transmute(identifycallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioImproveBegin(sessionhandle: u32, unitid: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioImproveBegin(sessionhandle : u32, unitid : u32) -> windows_core::HRESULT); - WinBioImproveBegin(core::mem::transmute(sessionhandle), core::mem::transmute(unitid)).ok() + WinBioImproveBegin(sessionhandle, unitid).ok() } #[inline] pub unsafe fn WinBioImproveEnd(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioImproveEnd(sessionhandle : u32) -> windows_core::HRESULT); - WinBioImproveEnd(core::mem::transmute(sessionhandle)).ok() + WinBioImproveEnd(sessionhandle).ok() } #[inline] pub unsafe fn WinBioLocateSensor(sessionhandle: u32, unitid: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioLocateSensor(sessionhandle : u32, unitid : *mut u32) -> windows_core::HRESULT); - WinBioLocateSensor(core::mem::transmute(sessionhandle), core::mem::transmute(unitid.unwrap_or(core::mem::zeroed()))).ok() + WinBioLocateSensor(sessionhandle, core::mem::transmute(unitid.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioLocateSensorWithCallback(sessionhandle: u32, locatecallback: PWINBIO_LOCATE_SENSOR_CALLBACK, locatecallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioLocateSensorWithCallback(sessionhandle : u32, locatecallback : PWINBIO_LOCATE_SENSOR_CALLBACK, locatecallbackcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioLocateSensorWithCallback(core::mem::transmute(sessionhandle), core::mem::transmute(locatecallback), core::mem::transmute(locatecallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + WinBioLocateSensorWithCallback(sessionhandle, locatecallback, core::mem::transmute(locatecallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioLockUnit(sessionhandle: u32, unitid: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioLockUnit(sessionhandle : u32, unitid : u32) -> windows_core::HRESULT); - WinBioLockUnit(core::mem::transmute(sessionhandle), core::mem::transmute(unitid)).ok() + WinBioLockUnit(sessionhandle, unitid).ok() } #[inline] pub unsafe fn WinBioLogonIdentifiedUser(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioLogonIdentifiedUser(sessionhandle : u32) -> windows_core::HRESULT); - WinBioLogonIdentifiedUser(core::mem::transmute(sessionhandle)).ok() + WinBioLogonIdentifiedUser(sessionhandle).ok() } #[inline] pub unsafe fn WinBioMonitorPresence(sessionhandle: u32, unitid: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioMonitorPresence(sessionhandle : u32, unitid : u32) -> windows_core::HRESULT); - WinBioMonitorPresence(core::mem::transmute(sessionhandle), core::mem::transmute(unitid)).ok() + WinBioMonitorPresence(sessionhandle, unitid).ok() } #[inline] pub unsafe fn WinBioOpenSession(factor: u32, pooltype: WINBIO_POOL, flags: u32, unitarray: Option<&[u32]>, databaseid: Option<*const windows_core::GUID>) -> windows_core::Result { windows_targets::link!("winbio.dll" "system" fn WinBioOpenSession(factor : u32, pooltype : WINBIO_POOL, flags : u32, unitarray : *const u32, unitcount : usize, databaseid : *const windows_core::GUID, sessionhandle : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WinBioOpenSession(core::mem::transmute(factor), core::mem::transmute(pooltype), core::mem::transmute(flags), core::mem::transmute(unitarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), unitarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(databaseid.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + WinBioOpenSession(factor, pooltype, flags, core::mem::transmute(unitarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), unitarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(databaseid.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WinBioRegisterEventMonitor(sessionhandle: u32, eventmask: u32, eventcallback: PWINBIO_EVENT_CALLBACK, eventcallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioRegisterEventMonitor(sessionhandle : u32, eventmask : u32, eventcallback : PWINBIO_EVENT_CALLBACK, eventcallbackcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioRegisterEventMonitor(core::mem::transmute(sessionhandle), core::mem::transmute(eventmask), core::mem::transmute(eventcallback), core::mem::transmute(eventcallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + WinBioRegisterEventMonitor(sessionhandle, eventmask, eventcallback, core::mem::transmute(eventcallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioReleaseFocus() -> windows_core::Result<()> { @@ -249,42 +249,42 @@ pub unsafe fn WinBioRemoveAllDomainCredentials() -> windows_core::Result<()> { #[inline] pub unsafe fn WinBioRemoveCredential(identity: WINBIO_IDENTITY, r#type: WINBIO_CREDENTIAL_TYPE) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioRemoveCredential(identity : WINBIO_IDENTITY, r#type : WINBIO_CREDENTIAL_TYPE) -> windows_core::HRESULT); - WinBioRemoveCredential(core::mem::transmute(identity), core::mem::transmute(r#type)).ok() + WinBioRemoveCredential(core::mem::transmute(identity), r#type).ok() } #[inline] pub unsafe fn WinBioSetCredential(r#type: WINBIO_CREDENTIAL_TYPE, credential: &[u8], format: WINBIO_CREDENTIAL_FORMAT) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioSetCredential(r#type : WINBIO_CREDENTIAL_TYPE, credential : *const u8, credentialsize : usize, format : WINBIO_CREDENTIAL_FORMAT) -> windows_core::HRESULT); - WinBioSetCredential(core::mem::transmute(r#type), core::mem::transmute(credential.as_ptr()), credential.len().try_into().unwrap(), core::mem::transmute(format)).ok() + WinBioSetCredential(r#type, core::mem::transmute(credential.as_ptr()), credential.len().try_into().unwrap(), format).ok() } #[inline] pub unsafe fn WinBioSetProperty(sessionhandle: u32, propertytype: u32, propertyid: u32, unitid: Option, identity: Option<*const WINBIO_IDENTITY>, subfactor: Option, propertybuffer: *const core::ffi::c_void, propertybuffersize: usize) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioSetProperty(sessionhandle : u32, propertytype : u32, propertyid : u32, unitid : u32, identity : *const WINBIO_IDENTITY, subfactor : u8, propertybuffer : *const core::ffi::c_void, propertybuffersize : usize) -> windows_core::HRESULT); - WinBioSetProperty(core::mem::transmute(sessionhandle), core::mem::transmute(propertytype), core::mem::transmute(propertyid), core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(subfactor.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer), core::mem::transmute(propertybuffersize)).ok() + WinBioSetProperty(sessionhandle, propertytype, propertyid, core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(identity.unwrap_or(core::mem::zeroed())), core::mem::transmute(subfactor.unwrap_or(core::mem::zeroed())), propertybuffer, propertybuffersize).ok() } #[inline] pub unsafe fn WinBioUnlockUnit(sessionhandle: u32, unitid: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioUnlockUnit(sessionhandle : u32, unitid : u32) -> windows_core::HRESULT); - WinBioUnlockUnit(core::mem::transmute(sessionhandle), core::mem::transmute(unitid)).ok() + WinBioUnlockUnit(sessionhandle, unitid).ok() } #[inline] pub unsafe fn WinBioUnregisterEventMonitor(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioUnregisterEventMonitor(sessionhandle : u32) -> windows_core::HRESULT); - WinBioUnregisterEventMonitor(core::mem::transmute(sessionhandle)).ok() + WinBioUnregisterEventMonitor(sessionhandle).ok() } #[inline] pub unsafe fn WinBioVerify(sessionhandle: u32, identity: *const WINBIO_IDENTITY, subfactor: u8, unitid: Option<*mut u32>, r#match: Option<*mut u8>, rejectdetail: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioVerify(sessionhandle : u32, identity : *const WINBIO_IDENTITY, subfactor : u8, unitid : *mut u32, r#match : *mut u8, rejectdetail : *mut u32) -> windows_core::HRESULT); - WinBioVerify(core::mem::transmute(sessionhandle), core::mem::transmute(identity), core::mem::transmute(subfactor), core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#match.unwrap_or(core::mem::zeroed())), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() + WinBioVerify(sessionhandle, identity, subfactor, core::mem::transmute(unitid.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#match.unwrap_or(core::mem::zeroed())), core::mem::transmute(rejectdetail.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioVerifyWithCallback(sessionhandle: u32, identity: *const WINBIO_IDENTITY, subfactor: u8, verifycallback: PWINBIO_VERIFY_CALLBACK, verifycallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioVerifyWithCallback(sessionhandle : u32, identity : *const WINBIO_IDENTITY, subfactor : u8, verifycallback : PWINBIO_VERIFY_CALLBACK, verifycallbackcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WinBioVerifyWithCallback(core::mem::transmute(sessionhandle), core::mem::transmute(identity), core::mem::transmute(subfactor), core::mem::transmute(verifycallback), core::mem::transmute(verifycallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + WinBioVerifyWithCallback(sessionhandle, identity, subfactor, verifycallback, core::mem::transmute(verifycallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinBioWait(sessionhandle: u32) -> windows_core::Result<()> { windows_targets::link!("winbio.dll" "system" fn WinBioWait(sessionhandle : u32) -> windows_core::HRESULT); - WinBioWait(core::mem::transmute(sessionhandle)).ok() + WinBioWait(sessionhandle).ok() } pub const FACILITY_NONE: u32 = 0u32; pub const FACILITY_WINBIO: u32 = 9u32; diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs index bcf4a5fee9..73177ebaba 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -6,7 +6,7 @@ pub unsafe fn BluetoothAuthenticateDevice(hwndparent: Option, hradioin: Option, pbtdiinout: *mut BLUETOOTH_DEVICE_INFO, pbtoobdata: Option<*const BLUETOOTH_OOB_DATA_INFO>, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32 { windows_targets::link!("bthprops.cpl" "system" fn BluetoothAuthenticateDeviceEx(hwndparentin : super::super::Foundation:: HWND, hradioin : super::super::Foundation:: HANDLE, pbtdiinout : *mut BLUETOOTH_DEVICE_INFO, pbtoobdata : *const BLUETOOTH_OOB_DATA_INFO, authenticationrequirement : AUTHENTICATION_REQUIREMENTS) -> u32); - BluetoothAuthenticateDeviceEx(core::mem::transmute(hwndparentin.unwrap_or(core::mem::zeroed())), core::mem::transmute(hradioin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbtdiinout), core::mem::transmute(pbtoobdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(authenticationrequirement)) + BluetoothAuthenticateDeviceEx(core::mem::transmute(hwndparentin.unwrap_or(core::mem::zeroed())), core::mem::transmute(hradioin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbtdiinout), core::mem::transmute(pbtoobdata.unwrap_or(core::mem::zeroed())), authenticationrequirement) } #[inline] pub unsafe fn BluetoothAuthenticateMultipleDevices(hwndparent: Option, hradio: Option, rgbtdi: &mut [BLUETOOTH_DEVICE_INFO]) -> u32 { @@ -31,104 +31,104 @@ pub unsafe fn BluetoothEnableIncomingConnections(hradio: Option, pbtdi: *const BLUETOOTH_DEVICE_INFO, pcserviceinout: *mut u32, pguidservices: Option<*mut windows_core::GUID>) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnumerateInstalledServices(hradio : super::super::Foundation:: HANDLE, pbtdi : *const BLUETOOTH_DEVICE_INFO, pcserviceinout : *mut u32, pguidservices : *mut windows_core::GUID) -> u32); - BluetoothEnumerateInstalledServices(core::mem::transmute(hradio.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbtdi), core::mem::transmute(pcserviceinout), core::mem::transmute(pguidservices.unwrap_or(core::mem::zeroed()))) + BluetoothEnumerateInstalledServices(core::mem::transmute(hradio.unwrap_or(core::mem::zeroed())), pbtdi, core::mem::transmute(pcserviceinout), core::mem::transmute(pguidservices.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BluetoothFindDeviceClose(hfind: HBLUETOOTH_DEVICE_FIND) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindDeviceClose(hfind : HBLUETOOTH_DEVICE_FIND) -> super::super::Foundation:: BOOL); - BluetoothFindDeviceClose(core::mem::transmute(hfind)).ok() + BluetoothFindDeviceClose(hfind).ok() } #[inline] pub unsafe fn BluetoothFindFirstDevice(pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindFirstDevice(pbtsp : *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> HBLUETOOTH_DEVICE_FIND); - let result__ = BluetoothFindFirstDevice(core::mem::transmute(pbtsp), core::mem::transmute(pbtdi)); + let result__ = BluetoothFindFirstDevice(pbtsp, core::mem::transmute(pbtdi)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn BluetoothFindFirstRadio(pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS, phradio: *mut super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindFirstRadio(pbtfrp : *const BLUETOOTH_FIND_RADIO_PARAMS, phradio : *mut super::super::Foundation:: HANDLE) -> HBLUETOOTH_RADIO_FIND); - let result__ = BluetoothFindFirstRadio(core::mem::transmute(pbtfrp), core::mem::transmute(phradio)); + let result__ = BluetoothFindFirstRadio(pbtfrp, core::mem::transmute(phradio)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn BluetoothFindNextDevice(hfind: HBLUETOOTH_DEVICE_FIND, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextDevice(hfind : HBLUETOOTH_DEVICE_FIND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation:: BOOL); - BluetoothFindNextDevice(core::mem::transmute(hfind), core::mem::transmute(pbtdi)).ok() + BluetoothFindNextDevice(hfind, core::mem::transmute(pbtdi)).ok() } #[inline] pub unsafe fn BluetoothFindNextRadio(hfind: HBLUETOOTH_RADIO_FIND, phradio: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextRadio(hfind : HBLUETOOTH_RADIO_FIND, phradio : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - BluetoothFindNextRadio(core::mem::transmute(hfind), core::mem::transmute(phradio)).ok() + BluetoothFindNextRadio(hfind, core::mem::transmute(phradio)).ok() } #[inline] pub unsafe fn BluetoothFindRadioClose(hfind: HBLUETOOTH_RADIO_FIND) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindRadioClose(hfind : HBLUETOOTH_RADIO_FIND) -> super::super::Foundation:: BOOL); - BluetoothFindRadioClose(core::mem::transmute(hfind)).ok() + BluetoothFindRadioClose(hfind).ok() } #[inline] pub unsafe fn BluetoothGATTAbortReliableWrite(hdevice: super::super::Foundation::HANDLE, reliablewritecontext: u64, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTAbortReliableWrite(hdevice : super::super::Foundation:: HANDLE, reliablewritecontext : u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTAbortReliableWrite(core::mem::transmute(hdevice), core::mem::transmute(reliablewritecontext), core::mem::transmute(flags)).ok() + BluetoothGATTAbortReliableWrite(hdevice, reliablewritecontext, flags).ok() } #[inline] pub unsafe fn BluetoothGATTBeginReliableWrite(hdevice: super::super::Foundation::HANDLE, reliablewritecontext: *mut u64, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTBeginReliableWrite(hdevice : super::super::Foundation:: HANDLE, reliablewritecontext : *mut u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTBeginReliableWrite(core::mem::transmute(hdevice), core::mem::transmute(reliablewritecontext), core::mem::transmute(flags)).ok() + BluetoothGATTBeginReliableWrite(hdevice, core::mem::transmute(reliablewritecontext), flags).ok() } #[inline] pub unsafe fn BluetoothGATTEndReliableWrite(hdevice: super::super::Foundation::HANDLE, reliablewritecontext: u64, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTEndReliableWrite(hdevice : super::super::Foundation:: HANDLE, reliablewritecontext : u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTEndReliableWrite(core::mem::transmute(hdevice), core::mem::transmute(reliablewritecontext), core::mem::transmute(flags)).ok() + BluetoothGATTEndReliableWrite(hdevice, reliablewritecontext, flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetCharacteristicValue(hdevice: super::super::Foundation::HANDLE, characteristic: *const BTH_LE_GATT_CHARACTERISTIC, characteristicvaluedatasize: u32, characteristicvalue: Option<*mut BTH_LE_GATT_CHARACTERISTIC_VALUE>, characteristicvaluesizerequired: Option<*mut u16>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTGetCharacteristicValue(hdevice : super::super::Foundation:: HANDLE, characteristic : *const BTH_LE_GATT_CHARACTERISTIC, characteristicvaluedatasize : u32, characteristicvalue : *mut BTH_LE_GATT_CHARACTERISTIC_VALUE, characteristicvaluesizerequired : *mut u16, flags : u32) -> windows_core::HRESULT); - BluetoothGATTGetCharacteristicValue(core::mem::transmute(hdevice), core::mem::transmute(characteristic), core::mem::transmute(characteristicvaluedatasize), core::mem::transmute(characteristicvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(characteristicvaluesizerequired.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + BluetoothGATTGetCharacteristicValue(hdevice, characteristic, characteristicvaluedatasize, core::mem::transmute(characteristicvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(characteristicvaluesizerequired.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetCharacteristics(hdevice: super::super::Foundation::HANDLE, service: Option<*const BTH_LE_GATT_SERVICE>, characteristicsbuffer: Option<&mut [BTH_LE_GATT_CHARACTERISTIC]>, characteristicsbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTGetCharacteristics(hdevice : super::super::Foundation:: HANDLE, service : *const BTH_LE_GATT_SERVICE, characteristicsbuffercount : u16, characteristicsbuffer : *mut BTH_LE_GATT_CHARACTERISTIC, characteristicsbufferactual : *mut u16, flags : u32) -> windows_core::HRESULT); - BluetoothGATTGetCharacteristics(core::mem::transmute(hdevice), core::mem::transmute(service.unwrap_or(core::mem::zeroed())), characteristicsbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(characteristicsbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(characteristicsbufferactual), core::mem::transmute(flags)).ok() + BluetoothGATTGetCharacteristics(hdevice, core::mem::transmute(service.unwrap_or(core::mem::zeroed())), characteristicsbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(characteristicsbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(characteristicsbufferactual), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetDescriptorValue(hdevice: super::super::Foundation::HANDLE, descriptor: *const BTH_LE_GATT_DESCRIPTOR, descriptorvaluedatasize: u32, descriptorvalue: Option<*mut BTH_LE_GATT_DESCRIPTOR_VALUE>, descriptorvaluesizerequired: Option<*mut u16>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTGetDescriptorValue(hdevice : super::super::Foundation:: HANDLE, descriptor : *const BTH_LE_GATT_DESCRIPTOR, descriptorvaluedatasize : u32, descriptorvalue : *mut BTH_LE_GATT_DESCRIPTOR_VALUE, descriptorvaluesizerequired : *mut u16, flags : u32) -> windows_core::HRESULT); - BluetoothGATTGetDescriptorValue(core::mem::transmute(hdevice), core::mem::transmute(descriptor), core::mem::transmute(descriptorvaluedatasize), core::mem::transmute(descriptorvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(descriptorvaluesizerequired.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + BluetoothGATTGetDescriptorValue(hdevice, descriptor, descriptorvaluedatasize, core::mem::transmute(descriptorvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(descriptorvaluesizerequired.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetDescriptors(hdevice: super::super::Foundation::HANDLE, characteristic: *const BTH_LE_GATT_CHARACTERISTIC, descriptorsbuffer: Option<&mut [BTH_LE_GATT_DESCRIPTOR]>, descriptorsbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTGetDescriptors(hdevice : super::super::Foundation:: HANDLE, characteristic : *const BTH_LE_GATT_CHARACTERISTIC, descriptorsbuffercount : u16, descriptorsbuffer : *mut BTH_LE_GATT_DESCRIPTOR, descriptorsbufferactual : *mut u16, flags : u32) -> windows_core::HRESULT); - BluetoothGATTGetDescriptors(core::mem::transmute(hdevice), core::mem::transmute(characteristic), descriptorsbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(descriptorsbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(descriptorsbufferactual), core::mem::transmute(flags)).ok() + BluetoothGATTGetDescriptors(hdevice, characteristic, descriptorsbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(descriptorsbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(descriptorsbufferactual), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetIncludedServices(hdevice: super::super::Foundation::HANDLE, parentservice: Option<*const BTH_LE_GATT_SERVICE>, includedservicesbuffer: Option<&mut [BTH_LE_GATT_SERVICE]>, includedservicesbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTGetIncludedServices(hdevice : super::super::Foundation:: HANDLE, parentservice : *const BTH_LE_GATT_SERVICE, includedservicesbuffercount : u16, includedservicesbuffer : *mut BTH_LE_GATT_SERVICE, includedservicesbufferactual : *mut u16, flags : u32) -> windows_core::HRESULT); - BluetoothGATTGetIncludedServices(core::mem::transmute(hdevice), core::mem::transmute(parentservice.unwrap_or(core::mem::zeroed())), includedservicesbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(includedservicesbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(includedservicesbufferactual), core::mem::transmute(flags)).ok() + BluetoothGATTGetIncludedServices(hdevice, core::mem::transmute(parentservice.unwrap_or(core::mem::zeroed())), includedservicesbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(includedservicesbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(includedservicesbufferactual), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetServices(hdevice: super::super::Foundation::HANDLE, servicesbuffer: Option<&mut [BTH_LE_GATT_SERVICE]>, servicesbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTGetServices(hdevice : super::super::Foundation:: HANDLE, servicesbuffercount : u16, servicesbuffer : *mut BTH_LE_GATT_SERVICE, servicesbufferactual : *mut u16, flags : u32) -> windows_core::HRESULT); - BluetoothGATTGetServices(core::mem::transmute(hdevice), servicesbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(servicesbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(servicesbufferactual), core::mem::transmute(flags)).ok() + BluetoothGATTGetServices(hdevice, servicesbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(servicesbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(servicesbufferactual), flags).ok() } #[inline] pub unsafe fn BluetoothGATTRegisterEvent(hservice: super::super::Foundation::HANDLE, eventtype: BTH_LE_GATT_EVENT_TYPE, eventparameterin: *const core::ffi::c_void, callback: PFNBLUETOOTH_GATT_EVENT_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>, peventhandle: *mut isize, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTRegisterEvent(hservice : super::super::Foundation:: HANDLE, eventtype : BTH_LE_GATT_EVENT_TYPE, eventparameterin : *const core::ffi::c_void, callback : PFNBLUETOOTH_GATT_EVENT_CALLBACK, callbackcontext : *const core::ffi::c_void, peventhandle : *mut isize, flags : u32) -> windows_core::HRESULT); - BluetoothGATTRegisterEvent(core::mem::transmute(hservice), core::mem::transmute(eventtype), core::mem::transmute(eventparameterin), core::mem::transmute(callback), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(peventhandle), core::mem::transmute(flags)).ok() + BluetoothGATTRegisterEvent(hservice, eventtype, eventparameterin, callback, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(peventhandle), flags).ok() } #[inline] pub unsafe fn BluetoothGATTSetCharacteristicValue(hdevice: super::super::Foundation::HANDLE, characteristic: *const BTH_LE_GATT_CHARACTERISTIC, characteristicvalue: *const BTH_LE_GATT_CHARACTERISTIC_VALUE, reliablewritecontext: Option, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTSetCharacteristicValue(hdevice : super::super::Foundation:: HANDLE, characteristic : *const BTH_LE_GATT_CHARACTERISTIC, characteristicvalue : *const BTH_LE_GATT_CHARACTERISTIC_VALUE, reliablewritecontext : u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTSetCharacteristicValue(core::mem::transmute(hdevice), core::mem::transmute(characteristic), core::mem::transmute(characteristicvalue), core::mem::transmute(reliablewritecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + BluetoothGATTSetCharacteristicValue(hdevice, characteristic, characteristicvalue, core::mem::transmute(reliablewritecontext.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn BluetoothGATTSetDescriptorValue(hdevice: super::super::Foundation::HANDLE, descriptor: *const BTH_LE_GATT_DESCRIPTOR, descriptorvalue: *const BTH_LE_GATT_DESCRIPTOR_VALUE, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTSetDescriptorValue(hdevice : super::super::Foundation:: HANDLE, descriptor : *const BTH_LE_GATT_DESCRIPTOR, descriptorvalue : *const BTH_LE_GATT_DESCRIPTOR_VALUE, flags : u32) -> windows_core::HRESULT); - BluetoothGATTSetDescriptorValue(core::mem::transmute(hdevice), core::mem::transmute(descriptor), core::mem::transmute(descriptorvalue), core::mem::transmute(flags)).ok() + BluetoothGATTSetDescriptorValue(hdevice, descriptor, descriptorvalue, flags).ok() } #[inline] pub unsafe fn BluetoothGATTUnregisterEvent(eventhandle: isize, flags: u32) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTUnregisterEvent(eventhandle : isize, flags : u32) -> windows_core::HRESULT); - BluetoothGATTUnregisterEvent(core::mem::transmute(eventhandle), core::mem::transmute(flags)).ok() + BluetoothGATTUnregisterEvent(eventhandle, flags).ok() } #[inline] pub unsafe fn BluetoothGetDeviceInfo(hradio: Option, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> u32 { @@ -138,7 +138,7 @@ pub unsafe fn BluetoothGetDeviceInfo(hradio: Option u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGetRadioInfo(hradio : super::super::Foundation:: HANDLE, pradioinfo : *mut BLUETOOTH_RADIO_INFO) -> u32); - BluetoothGetRadioInfo(core::mem::transmute(hradio), core::mem::transmute(pradioinfo)) + BluetoothGetRadioInfo(hradio, core::mem::transmute(pradioinfo)) } #[inline] pub unsafe fn BluetoothIsConnectable(hradio: Option) -> super::super::Foundation::BOOL { @@ -153,7 +153,7 @@ pub unsafe fn BluetoothIsDiscoverable(hradio: Option super::super::Foundation::BOOL { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsVersionAvailable(majorversion : u8, minorversion : u8) -> super::super::Foundation:: BOOL); - BluetoothIsVersionAvailable(core::mem::transmute(majorversion), core::mem::transmute(minorversion)) + BluetoothIsVersionAvailable(majorversion, minorversion) } #[inline] pub unsafe fn BluetoothRegisterForAuthentication(pbtdi: Option<*const BLUETOOTH_DEVICE_INFO>, phreghandle: *mut isize, pfncallback: Option, pvparam: Option<*const core::ffi::c_void>) -> u32 { @@ -168,17 +168,17 @@ pub unsafe fn BluetoothRegisterForAuthenticationEx(pbtdiin: Option<*const BLUETO #[inline] pub unsafe fn BluetoothRemoveDevice(paddress: *const BLUETOOTH_ADDRESS) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothRemoveDevice(paddress : *const BLUETOOTH_ADDRESS) -> u32); - BluetoothRemoveDevice(core::mem::transmute(paddress)) + BluetoothRemoveDevice(paddress) } #[inline] pub unsafe fn BluetoothSdpEnumAttributes(psdpstream: &[u8], pfncallback: PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, pvparam: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSdpEnumAttributes(psdpstream : *const u8, cbstreamsize : u32, pfncallback : PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, pvparam : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - BluetoothSdpEnumAttributes(core::mem::transmute(psdpstream.as_ptr()), psdpstream.len().try_into().unwrap(), core::mem::transmute(pfncallback), core::mem::transmute(pvparam)).ok() + BluetoothSdpEnumAttributes(core::mem::transmute(psdpstream.as_ptr()), psdpstream.len().try_into().unwrap(), pfncallback, pvparam).ok() } #[inline] pub unsafe fn BluetoothSdpGetAttributeValue(precordstream: &[u8], usattributeid: u16, pattributedata: *mut SDP_ELEMENT_DATA) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSdpGetAttributeValue(precordstream : *const u8, cbrecordlength : u32, usattributeid : u16, pattributedata : *mut SDP_ELEMENT_DATA) -> u32); - BluetoothSdpGetAttributeValue(core::mem::transmute(precordstream.as_ptr()), precordstream.len().try_into().unwrap(), core::mem::transmute(usattributeid), core::mem::transmute(pattributedata)) + BluetoothSdpGetAttributeValue(core::mem::transmute(precordstream.as_ptr()), precordstream.len().try_into().unwrap(), usattributeid, core::mem::transmute(pattributedata)) } #[inline] pub unsafe fn BluetoothSdpGetContainerElementData(pcontainerstream: &[u8], pelement: *mut isize, pdata: *mut SDP_ELEMENT_DATA) -> u32 { @@ -193,7 +193,7 @@ pub unsafe fn BluetoothSdpGetElementData(psdpstream: &[u8], pdata: *mut SDP_ELEM #[inline] pub unsafe fn BluetoothSdpGetString(precordstream: &[u8], pstringdata: Option<*const SDP_STRING_TYPE_DATA>, usstringoffset: u16, pszstring: windows_core::PWSTR, pcchstringlength: *mut u32) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSdpGetString(precordstream : *const u8, cbrecordlength : u32, pstringdata : *const SDP_STRING_TYPE_DATA, usstringoffset : u16, pszstring : windows_core::PWSTR, pcchstringlength : *mut u32) -> u32); - BluetoothSdpGetString(core::mem::transmute(precordstream.as_ptr()), precordstream.len().try_into().unwrap(), core::mem::transmute(pstringdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(usstringoffset), core::mem::transmute(pszstring), core::mem::transmute(pcchstringlength)) + BluetoothSdpGetString(core::mem::transmute(precordstream.as_ptr()), precordstream.len().try_into().unwrap(), core::mem::transmute(pstringdata.unwrap_or(core::mem::zeroed())), usstringoffset, core::mem::transmute(pszstring), core::mem::transmute(pcchstringlength)) } #[inline] pub unsafe fn BluetoothSelectDevices(pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> windows_core::Result<()> { @@ -211,32 +211,32 @@ where P2: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSendAuthenticationResponse(hradio : super::super::Foundation:: HANDLE, pbtdi : *const BLUETOOTH_DEVICE_INFO, pszpasskey : windows_core::PCWSTR) -> u32); - BluetoothSendAuthenticationResponse(core::mem::transmute(hradio.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbtdi), pszpasskey.param().abi()) + BluetoothSendAuthenticationResponse(core::mem::transmute(hradio.unwrap_or(core::mem::zeroed())), pbtdi, pszpasskey.param().abi()) } #[inline] pub unsafe fn BluetoothSendAuthenticationResponseEx(hradioin: Option, pauthresponse: *const BLUETOOTH_AUTHENTICATE_RESPONSE) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSendAuthenticationResponseEx(hradioin : super::super::Foundation:: HANDLE, pauthresponse : *const BLUETOOTH_AUTHENTICATE_RESPONSE) -> u32); - BluetoothSendAuthenticationResponseEx(core::mem::transmute(hradioin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthresponse)) + BluetoothSendAuthenticationResponseEx(core::mem::transmute(hradioin.unwrap_or(core::mem::zeroed())), pauthresponse) } #[inline] pub unsafe fn BluetoothSetLocalServiceInfo(hradioin: Option, pclassguid: *const windows_core::GUID, ulinstance: u32, pserviceinfoin: *const BLUETOOTH_LOCAL_SERVICE_INFO) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSetLocalServiceInfo(hradioin : super::super::Foundation:: HANDLE, pclassguid : *const windows_core::GUID, ulinstance : u32, pserviceinfoin : *const BLUETOOTH_LOCAL_SERVICE_INFO) -> u32); - BluetoothSetLocalServiceInfo(core::mem::transmute(hradioin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pclassguid), core::mem::transmute(ulinstance), core::mem::transmute(pserviceinfoin)) + BluetoothSetLocalServiceInfo(core::mem::transmute(hradioin.unwrap_or(core::mem::zeroed())), pclassguid, ulinstance, pserviceinfoin) } #[inline] pub unsafe fn BluetoothSetServiceState(hradio: Option, pbtdi: *const BLUETOOTH_DEVICE_INFO, pguidservice: *const windows_core::GUID, dwserviceflags: u32) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSetServiceState(hradio : super::super::Foundation:: HANDLE, pbtdi : *const BLUETOOTH_DEVICE_INFO, pguidservice : *const windows_core::GUID, dwserviceflags : u32) -> u32); - BluetoothSetServiceState(core::mem::transmute(hradio.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbtdi), core::mem::transmute(pguidservice), core::mem::transmute(dwserviceflags)) + BluetoothSetServiceState(core::mem::transmute(hradio.unwrap_or(core::mem::zeroed())), pbtdi, pguidservice, dwserviceflags) } #[inline] pub unsafe fn BluetoothUnregisterAuthentication(hreghandle: isize) -> windows_core::Result<()> { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothUnregisterAuthentication(hreghandle : isize) -> super::super::Foundation:: BOOL); - BluetoothUnregisterAuthentication(core::mem::transmute(hreghandle)).ok() + BluetoothUnregisterAuthentication(hreghandle).ok() } #[inline] pub unsafe fn BluetoothUpdateDeviceRecord(pbtdi: *const BLUETOOTH_DEVICE_INFO) -> u32 { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothUpdateDeviceRecord(pbtdi : *const BLUETOOTH_DEVICE_INFO) -> u32); - BluetoothUpdateDeviceRecord(core::mem::transmute(pbtdi)) + BluetoothUpdateDeviceRecord(pbtdi) } pub const A2DP_SINK_SUPPORTED_FEATURES_AMPLIFIER: u32 = 8u32; pub const A2DP_SINK_SUPPORTED_FEATURES_HEADPHONE: u32 = 1u32; diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs index b9e446a05a..7ebbe8c0aa 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs @@ -33,12 +33,12 @@ where #[inline] pub unsafe fn ClearCommBreak(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ClearCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ClearCommBreak(core::mem::transmute(hfile)).ok() + ClearCommBreak(hfile).ok() } #[inline] pub unsafe fn ClearCommError(hfile: super::super::Foundation::HANDLE, lperrors: Option<*mut CLEAR_COMM_ERROR_FLAGS>, lpstat: Option<*mut COMSTAT>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ClearCommError(hfile : super::super::Foundation:: HANDLE, lperrors : *mut CLEAR_COMM_ERROR_FLAGS, lpstat : *mut COMSTAT) -> super::super::Foundation:: BOOL); - ClearCommError(core::mem::transmute(hfile), core::mem::transmute(lperrors.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpstat.unwrap_or(core::mem::zeroed()))).ok() + ClearCommError(hfile, core::mem::transmute(lperrors.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpstat.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CommConfigDialogA(lpszname: P0, hwnd: Option, lpcc: *mut COMMCONFIG) -> windows_core::Result<()> @@ -59,22 +59,22 @@ where #[inline] pub unsafe fn EscapeCommFunction(hfile: super::super::Foundation::HANDLE, dwfunc: ESCAPE_COMM_FUNCTION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EscapeCommFunction(hfile : super::super::Foundation:: HANDLE, dwfunc : ESCAPE_COMM_FUNCTION) -> super::super::Foundation:: BOOL); - EscapeCommFunction(core::mem::transmute(hfile), core::mem::transmute(dwfunc)).ok() + EscapeCommFunction(hfile, dwfunc).ok() } #[inline] pub unsafe fn GetCommConfig(hcommdev: super::super::Foundation::HANDLE, lpcc: Option<*mut COMMCONFIG>, lpdwsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - GetCommConfig(core::mem::transmute(hcommdev), core::mem::transmute(lpcc.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwsize)).ok() + GetCommConfig(hcommdev, core::mem::transmute(lpcc.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwsize)).ok() } #[inline] pub unsafe fn GetCommMask(hfile: super::super::Foundation::HANDLE, lpevtmask: *mut COMM_EVENT_MASK) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCommMask(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); - GetCommMask(core::mem::transmute(hfile), core::mem::transmute(lpevtmask)).ok() + GetCommMask(hfile, core::mem::transmute(lpevtmask)).ok() } #[inline] pub unsafe fn GetCommModemStatus(hfile: super::super::Foundation::HANDLE, lpmodemstat: *mut MODEM_STATUS_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCommModemStatus(hfile : super::super::Foundation:: HANDLE, lpmodemstat : *mut MODEM_STATUS_FLAGS) -> super::super::Foundation:: BOOL); - GetCommModemStatus(core::mem::transmute(hfile), core::mem::transmute(lpmodemstat)).ok() + GetCommModemStatus(hfile, core::mem::transmute(lpmodemstat)).ok() } #[inline] pub unsafe fn GetCommPorts(lpportnumbers: &mut [u32], puportnumbersfound: *mut u32) -> u32 { @@ -84,17 +84,17 @@ pub unsafe fn GetCommPorts(lpportnumbers: &mut [u32], puportnumbersfound: *mut u #[inline] pub unsafe fn GetCommProperties(hfile: super::super::Foundation::HANDLE, lpcommprop: *mut COMMPROP) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCommProperties(hfile : super::super::Foundation:: HANDLE, lpcommprop : *mut COMMPROP) -> super::super::Foundation:: BOOL); - GetCommProperties(core::mem::transmute(hfile), core::mem::transmute(lpcommprop)).ok() + GetCommProperties(hfile, core::mem::transmute(lpcommprop)).ok() } #[inline] pub unsafe fn GetCommState(hfile: super::super::Foundation::HANDLE, lpdcb: *mut DCB) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); - GetCommState(core::mem::transmute(hfile), core::mem::transmute(lpdcb)).ok() + GetCommState(hfile, core::mem::transmute(lpdcb)).ok() } #[inline] pub unsafe fn GetCommTimeouts(hfile: super::super::Foundation::HANDLE, lpcommtimeouts: *mut COMMTIMEOUTS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); - GetCommTimeouts(core::mem::transmute(hfile), core::mem::transmute(lpcommtimeouts)).ok() + GetCommTimeouts(hfile, core::mem::transmute(lpcommtimeouts)).ok() } #[inline] pub unsafe fn GetDefaultCommConfigA(lpszname: P0, lpcc: *mut COMMCONFIG, lpdwsize: *mut u32) -> windows_core::Result<()> @@ -115,37 +115,37 @@ where #[inline] pub unsafe fn OpenCommPort(uportnumber: u32, dwdesiredaccess: u32, dwflagsandattributes: u32) -> super::super::Foundation::HANDLE { windows_targets::link!("api-ms-win-core-comm-l1-1-1.dll" "system" fn OpenCommPort(uportnumber : u32, dwdesiredaccess : u32, dwflagsandattributes : u32) -> super::super::Foundation:: HANDLE); - OpenCommPort(core::mem::transmute(uportnumber), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwflagsandattributes)) + OpenCommPort(uportnumber, dwdesiredaccess, dwflagsandattributes) } #[inline] pub unsafe fn PurgeComm(hfile: super::super::Foundation::HANDLE, dwflags: PURGE_COMM_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PurgeComm(hfile : super::super::Foundation:: HANDLE, dwflags : PURGE_COMM_FLAGS) -> super::super::Foundation:: BOOL); - PurgeComm(core::mem::transmute(hfile), core::mem::transmute(dwflags)).ok() + PurgeComm(hfile, dwflags).ok() } #[inline] pub unsafe fn SetCommBreak(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetCommBreak(core::mem::transmute(hfile)).ok() + SetCommBreak(hfile).ok() } #[inline] pub unsafe fn SetCommConfig(hcommdev: super::super::Foundation::HANDLE, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); - SetCommConfig(core::mem::transmute(hcommdev), core::mem::transmute(lpcc), core::mem::transmute(dwsize)).ok() + SetCommConfig(hcommdev, lpcc, dwsize).ok() } #[inline] pub unsafe fn SetCommMask(hfile: super::super::Foundation::HANDLE, dwevtmask: COMM_EVENT_MASK) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetCommMask(hfile : super::super::Foundation:: HANDLE, dwevtmask : COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); - SetCommMask(core::mem::transmute(hfile), core::mem::transmute(dwevtmask)).ok() + SetCommMask(hfile, dwevtmask).ok() } #[inline] pub unsafe fn SetCommState(hfile: super::super::Foundation::HANDLE, lpdcb: *const DCB) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *const DCB) -> super::super::Foundation:: BOOL); - SetCommState(core::mem::transmute(hfile), core::mem::transmute(lpdcb)).ok() + SetCommState(hfile, lpdcb).ok() } #[inline] pub unsafe fn SetCommTimeouts(hfile: super::super::Foundation::HANDLE, lpcommtimeouts: *const COMMTIMEOUTS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *const COMMTIMEOUTS) -> super::super::Foundation:: BOOL); - SetCommTimeouts(core::mem::transmute(hfile), core::mem::transmute(lpcommtimeouts)).ok() + SetCommTimeouts(hfile, lpcommtimeouts).ok() } #[inline] pub unsafe fn SetDefaultCommConfigA(lpszname: P0, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> @@ -153,7 +153,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetDefaultCommConfigA(lpszname : windows_core::PCSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); - SetDefaultCommConfigA(lpszname.param().abi(), core::mem::transmute(lpcc), core::mem::transmute(dwsize)).ok() + SetDefaultCommConfigA(lpszname.param().abi(), lpcc, dwsize).ok() } #[inline] pub unsafe fn SetDefaultCommConfigW(lpszname: P0, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> @@ -161,23 +161,23 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetDefaultCommConfigW(lpszname : windows_core::PCWSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); - SetDefaultCommConfigW(lpszname.param().abi(), core::mem::transmute(lpcc), core::mem::transmute(dwsize)).ok() + SetDefaultCommConfigW(lpszname.param().abi(), lpcc, dwsize).ok() } #[inline] pub unsafe fn SetupComm(hfile: super::super::Foundation::HANDLE, dwinqueue: u32, dwoutqueue: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetupComm(hfile : super::super::Foundation:: HANDLE, dwinqueue : u32, dwoutqueue : u32) -> super::super::Foundation:: BOOL); - SetupComm(core::mem::transmute(hfile), core::mem::transmute(dwinqueue), core::mem::transmute(dwoutqueue)).ok() + SetupComm(hfile, dwinqueue, dwoutqueue).ok() } #[inline] pub unsafe fn TransmitCommChar(hfile: super::super::Foundation::HANDLE, cchar: i8) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TransmitCommChar(hfile : super::super::Foundation:: HANDLE, cchar : i8) -> super::super::Foundation:: BOOL); - TransmitCommChar(core::mem::transmute(hfile), core::mem::transmute(cchar)).ok() + TransmitCommChar(hfile, cchar).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WaitCommEvent(hfile: super::super::Foundation::HANDLE, lpevtmask: *mut COMM_EVENT_MASK, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WaitCommEvent(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WaitCommEvent(core::mem::transmute(hfile), core::mem::transmute(lpevtmask), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + WaitCommEvent(hfile, core::mem::transmute(lpevtmask), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } pub const CE_BREAK: CLEAR_COMM_ERROR_FLAGS = CLEAR_COMM_ERROR_FLAGS(16u32); pub const CE_FRAME: CLEAR_COMM_ERROR_FLAGS = CLEAR_COMM_ERROR_FLAGS(8u32); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs index 7679d4974b..d659fa203e 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs @@ -5,7 +5,7 @@ where { windows_targets::link!("deviceaccess.dll" "system" fn CreateDeviceAccessInstance(deviceinterfacepath : windows_core::PCWSTR, desiredaccess : u32, createasync : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateDeviceAccessInstance(deviceinterfacepath.param().abi(), core::mem::transmute(desiredaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDeviceAccessInstance(deviceinterfacepath.param().abi(), desiredaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub const CLSID_DeviceIoControl: windows_core::GUID = windows_core::GUID::from_u128(0x12d3e372_874b_457d_9fdf_73977778686c); pub const DEV_PORT_1394: u32 = 8u32; @@ -59,7 +59,7 @@ impl ICreateDeviceAccessAsync { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Wait(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -121,7 +121,7 @@ windows_core::imp::define_interface!(IDeviceIoControl, IDeviceIoControl_Vtbl, 0x windows_core::imp::interface_hierarchy!(IDeviceIoControl, windows_core::IUnknown); impl IDeviceIoControl { pub unsafe fn DeviceIoControlSync(&self, iocontrolcode: u32, inputbuffer: Option<&[u8]>, outputbuffer: Option<&mut [u8]>, bytesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceIoControlSync)(windows_core::Interface::as_raw(self), core::mem::transmute(iocontrolcode), core::mem::transmute(inputbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), inputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(outputbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), outputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(bytesreturned)).ok() + (windows_core::Interface::vtable(self).DeviceIoControlSync)(windows_core::Interface::as_raw(self), iocontrolcode, core::mem::transmute(inputbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), inputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(outputbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), outputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(bytesreturned)).ok() } pub unsafe fn DeviceIoControlAsync(&self, iocontrolcode: u32, inputbuffer: Option<&[u8]>, outputbuffer: Option<&mut [u8]>, requestcompletioncallback: P5, cancelcontext: Option<*mut usize>) -> windows_core::Result<()> where @@ -129,7 +129,7 @@ impl IDeviceIoControl { { (windows_core::Interface::vtable(self).DeviceIoControlAsync)( windows_core::Interface::as_raw(self), - core::mem::transmute(iocontrolcode), + iocontrolcode, core::mem::transmute(inputbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), inputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(outputbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -140,7 +140,7 @@ impl IDeviceIoControl { .ok() } pub unsafe fn CancelOperation(&self, cancelcontext: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(cancelcontext)).ok() + (windows_core::Interface::vtable(self).CancelOperation)(windows_core::Interface::as_raw(self), cancelcontext).ok() } } #[repr(C)] @@ -185,7 +185,7 @@ windows_core::imp::define_interface!(IDeviceRequestCompletionCallback, IDeviceRe windows_core::imp::interface_hierarchy!(IDeviceRequestCompletionCallback, windows_core::IUnknown); impl IDeviceRequestCompletionCallback { pub unsafe fn Invoke(&self, requestresult: windows_core::HRESULT, bytesreturned: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(requestresult), core::mem::transmute(bytesreturned)).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), requestresult, bytesreturned).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index bdbfebe7da..55f4f2e3e4 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -1,19 +1,19 @@ #[inline] pub unsafe fn CMP_WaitNoPendingInstallEvents(dwtimeout: u32) -> u32 { windows_targets::link!("cfgmgr32.dll" "system" fn CMP_WaitNoPendingInstallEvents(dwtimeout : u32) -> u32); - CMP_WaitNoPendingInstallEvents(core::mem::transmute(dwtimeout)) + CMP_WaitNoPendingInstallEvents(dwtimeout) } #[cfg(feature = "Win32_Data_HtmlHelp")] #[inline] pub unsafe fn CM_Add_Empty_Log_Conf(plclogconf: *mut usize, dndevinst: u32, priority: super::super::Data::HtmlHelp::PRIORITY, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_Empty_Log_Conf(plclogconf : *mut usize, dndevinst : u32, priority : super::super::Data::HtmlHelp:: PRIORITY, ulflags : u32) -> CONFIGRET); - CM_Add_Empty_Log_Conf(core::mem::transmute(plclogconf), core::mem::transmute(dndevinst), core::mem::transmute(priority), core::mem::transmute(ulflags)) + CM_Add_Empty_Log_Conf(core::mem::transmute(plclogconf), dndevinst, priority, ulflags) } #[cfg(feature = "Win32_Data_HtmlHelp")] #[inline] pub unsafe fn CM_Add_Empty_Log_Conf_Ex(plclogconf: *mut usize, dndevinst: u32, priority: super::super::Data::HtmlHelp::PRIORITY, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_Empty_Log_Conf_Ex(plclogconf : *mut usize, dndevinst : u32, priority : super::super::Data::HtmlHelp:: PRIORITY, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Add_Empty_Log_Conf_Ex(core::mem::transmute(plclogconf), core::mem::transmute(dndevinst), core::mem::transmute(priority), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Add_Empty_Log_Conf_Ex(core::mem::transmute(plclogconf), dndevinst, priority, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Add_IDA(dndevinst: u32, pszid: P1, ulflags: u32) -> CONFIGRET @@ -21,7 +21,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_IDA(dndevinst : u32, pszid : windows_core::PCSTR, ulflags : u32) -> CONFIGRET); - CM_Add_IDA(core::mem::transmute(dndevinst), pszid.param().abi(), core::mem::transmute(ulflags)) + CM_Add_IDA(dndevinst, pszid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Add_IDW(dndevinst: u32, pszid: P1, ulflags: u32) -> CONFIGRET @@ -29,7 +29,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_IDW(dndevinst : u32, pszid : windows_core::PCWSTR, ulflags : u32) -> CONFIGRET); - CM_Add_IDW(core::mem::transmute(dndevinst), pszid.param().abi(), core::mem::transmute(ulflags)) + CM_Add_IDW(dndevinst, pszid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Add_ID_ExA(dndevinst: u32, pszid: P1, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -37,7 +37,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_ID_ExA(dndevinst : u32, pszid : windows_core::PCSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Add_ID_ExA(core::mem::transmute(dndevinst), pszid.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Add_ID_ExA(dndevinst, pszid.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Add_ID_ExW(dndevinst: u32, pszid: P1, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -45,22 +45,22 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_ID_ExW(dndevinst : u32, pszid : windows_core::PCWSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Add_ID_ExW(core::mem::transmute(dndevinst), pszid.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Add_ID_ExW(dndevinst, pszid.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Add_Range(ullstartvalue: u64, ullendvalue: u64, rlh: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_Range(ullstartvalue : u64, ullendvalue : u64, rlh : usize, ulflags : u32) -> CONFIGRET); - CM_Add_Range(core::mem::transmute(ullstartvalue), core::mem::transmute(ullendvalue), core::mem::transmute(rlh), core::mem::transmute(ulflags)) + CM_Add_Range(ullstartvalue, ullendvalue, rlh, ulflags) } #[inline] pub unsafe fn CM_Add_Res_Des(prdresdes: Option<*mut usize>, lclogconf: usize, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_Res_Des(prdresdes : *mut usize, lclogconf : usize, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, ulflags : u32) -> CONFIGRET); - CM_Add_Res_Des(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lclogconf), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(ulflags)) + CM_Add_Res_Des(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), lclogconf, resourceid, resourcedata, resourcelen, ulflags) } #[inline] pub unsafe fn CM_Add_Res_Des_Ex(prdresdes: Option<*mut usize>, lclogconf: usize, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Add_Res_Des_Ex(prdresdes : *mut usize, lclogconf : usize, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Add_Res_Des_Ex(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lclogconf), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Add_Res_Des_Ex(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), lclogconf, resourceid, resourcedata, resourcelen, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Connect_MachineA(uncservername: P0, phmachine: *mut isize) -> CONFIGRET @@ -84,7 +84,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Create_DevNodeA(pdndevinst : *mut u32, pdeviceid : windows_core::PCSTR, dnparent : u32, ulflags : u32) -> CONFIGRET); - CM_Create_DevNodeA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(dnparent), core::mem::transmute(ulflags)) + CM_Create_DevNodeA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), dnparent, ulflags) } #[inline] pub unsafe fn CM_Create_DevNodeW(pdndevinst: *mut u32, pdeviceid: P1, dnparent: u32, ulflags: u32) -> CONFIGRET @@ -92,7 +92,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Create_DevNodeW(pdndevinst : *mut u32, pdeviceid : windows_core::PCWSTR, dnparent : u32, ulflags : u32) -> CONFIGRET); - CM_Create_DevNodeW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(dnparent), core::mem::transmute(ulflags)) + CM_Create_DevNodeW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), dnparent, ulflags) } #[inline] pub unsafe fn CM_Create_DevNode_ExA(pdndevinst: *mut u32, pdeviceid: P1, dnparent: u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -100,7 +100,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Create_DevNode_ExA(pdndevinst : *mut u32, pdeviceid : windows_core::PCSTR, dnparent : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Create_DevNode_ExA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(dnparent), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Create_DevNode_ExA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), dnparent, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Create_DevNode_ExW(pdndevinst: *mut u32, pdeviceid: P1, dnparent: u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -108,32 +108,32 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Create_DevNode_ExW(pdndevinst : *mut u32, pdeviceid : windows_core::PCWSTR, dnparent : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Create_DevNode_ExW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(dnparent), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Create_DevNode_ExW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), dnparent, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Create_Range_List(prlh: *mut usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Create_Range_List(prlh : *mut usize, ulflags : u32) -> CONFIGRET); - CM_Create_Range_List(core::mem::transmute(prlh), core::mem::transmute(ulflags)) + CM_Create_Range_List(core::mem::transmute(prlh), ulflags) } #[inline] pub unsafe fn CM_Delete_Class_Key(classguid: *const windows_core::GUID, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Class_Key(classguid : *const windows_core::GUID, ulflags : u32) -> CONFIGRET); - CM_Delete_Class_Key(core::mem::transmute(classguid), core::mem::transmute(ulflags)) + CM_Delete_Class_Key(classguid, ulflags) } #[inline] pub unsafe fn CM_Delete_Class_Key_Ex(classguid: *const windows_core::GUID, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Class_Key_Ex(classguid : *const windows_core::GUID, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Delete_Class_Key_Ex(core::mem::transmute(classguid), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Delete_Class_Key_Ex(classguid, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Delete_DevNode_Key(dndevnode: u32, ulhardwareprofile: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_DevNode_Key(dndevnode : u32, ulhardwareprofile : u32, ulflags : u32) -> CONFIGRET); - CM_Delete_DevNode_Key(core::mem::transmute(dndevnode), core::mem::transmute(ulhardwareprofile), core::mem::transmute(ulflags)) + CM_Delete_DevNode_Key(dndevnode, ulhardwareprofile, ulflags) } #[inline] pub unsafe fn CM_Delete_DevNode_Key_Ex(dndevnode: u32, ulhardwareprofile: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_DevNode_Key_Ex(dndevnode : u32, ulhardwareprofile : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Delete_DevNode_Key_Ex(core::mem::transmute(dndevnode), core::mem::transmute(ulhardwareprofile), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Delete_DevNode_Key_Ex(dndevnode, ulhardwareprofile, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Delete_Device_Interface_KeyA(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET @@ -141,7 +141,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Device_Interface_KeyA(pszdeviceinterface : windows_core::PCSTR, ulflags : u32) -> CONFIGRET); - CM_Delete_Device_Interface_KeyA(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags)) + CM_Delete_Device_Interface_KeyA(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Delete_Device_Interface_KeyW(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET @@ -149,7 +149,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Device_Interface_KeyW(pszdeviceinterface : windows_core::PCWSTR, ulflags : u32) -> CONFIGRET); - CM_Delete_Device_Interface_KeyW(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags)) + CM_Delete_Device_Interface_KeyW(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Delete_Device_Interface_Key_ExA(pszdeviceinterface: P0, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -157,7 +157,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Device_Interface_Key_ExA(pszdeviceinterface : windows_core::PCSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Delete_Device_Interface_Key_ExA(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Delete_Device_Interface_Key_ExA(pszdeviceinterface.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Delete_Device_Interface_Key_ExW(pszdeviceinterface: P0, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -165,32 +165,32 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Device_Interface_Key_ExW(pszdeviceinterface : windows_core::PCWSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Delete_Device_Interface_Key_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Delete_Device_Interface_Key_ExW(pszdeviceinterface.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Delete_Range(ullstartvalue: u64, ullendvalue: u64, rlh: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Delete_Range(ullstartvalue : u64, ullendvalue : u64, rlh : usize, ulflags : u32) -> CONFIGRET); - CM_Delete_Range(core::mem::transmute(ullstartvalue), core::mem::transmute(ullendvalue), core::mem::transmute(rlh), core::mem::transmute(ulflags)) + CM_Delete_Range(ullstartvalue, ullendvalue, rlh, ulflags) } #[inline] pub unsafe fn CM_Detect_Resource_Conflict(dndevinst: u32, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, pbconflictdetected: *mut super::super::Foundation::BOOL, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Detect_Resource_Conflict(dndevinst : u32, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, pbconflictdetected : *mut super::super::Foundation:: BOOL, ulflags : u32) -> CONFIGRET); - CM_Detect_Resource_Conflict(core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(pbconflictdetected), core::mem::transmute(ulflags)) + CM_Detect_Resource_Conflict(dndevinst, resourceid, resourcedata, resourcelen, core::mem::transmute(pbconflictdetected), ulflags) } #[inline] pub unsafe fn CM_Detect_Resource_Conflict_Ex(dndevinst: u32, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, pbconflictdetected: *mut super::super::Foundation::BOOL, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Detect_Resource_Conflict_Ex(dndevinst : u32, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, pbconflictdetected : *mut super::super::Foundation:: BOOL, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Detect_Resource_Conflict_Ex(core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(pbconflictdetected), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Detect_Resource_Conflict_Ex(dndevinst, resourceid, resourcedata, resourcelen, core::mem::transmute(pbconflictdetected), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Disable_DevNode(dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Disable_DevNode(dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Disable_DevNode(core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Disable_DevNode(dndevinst, ulflags) } #[inline] pub unsafe fn CM_Disable_DevNode_Ex(dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Disable_DevNode_Ex(dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Disable_DevNode_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Disable_DevNode_Ex(dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Disconnect_Machine(hmachine: Option) -> CONFIGRET { @@ -200,189 +200,189 @@ pub unsafe fn CM_Disconnect_Machine(hmachine: Option) -> CONFIGRET { #[inline] pub unsafe fn CM_Dup_Range_List(rlhold: usize, rlhnew: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Dup_Range_List(rlhold : usize, rlhnew : usize, ulflags : u32) -> CONFIGRET); - CM_Dup_Range_List(core::mem::transmute(rlhold), core::mem::transmute(rlhnew), core::mem::transmute(ulflags)) + CM_Dup_Range_List(rlhold, rlhnew, ulflags) } #[inline] pub unsafe fn CM_Enable_DevNode(dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enable_DevNode(dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Enable_DevNode(core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Enable_DevNode(dndevinst, ulflags) } #[inline] pub unsafe fn CM_Enable_DevNode_Ex(dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enable_DevNode_Ex(dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Enable_DevNode_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Enable_DevNode_Ex(dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Enumerate_Classes(ulclassindex: u32, classguid: *mut windows_core::GUID, ulflags: CM_ENUMERATE_FLAGS) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enumerate_Classes(ulclassindex : u32, classguid : *mut windows_core::GUID, ulflags : CM_ENUMERATE_FLAGS) -> CONFIGRET); - CM_Enumerate_Classes(core::mem::transmute(ulclassindex), core::mem::transmute(classguid), core::mem::transmute(ulflags)) + CM_Enumerate_Classes(ulclassindex, core::mem::transmute(classguid), ulflags) } #[inline] pub unsafe fn CM_Enumerate_Classes_Ex(ulclassindex: u32, classguid: *mut windows_core::GUID, ulflags: CM_ENUMERATE_FLAGS, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enumerate_Classes_Ex(ulclassindex : u32, classguid : *mut windows_core::GUID, ulflags : CM_ENUMERATE_FLAGS, hmachine : isize) -> CONFIGRET); - CM_Enumerate_Classes_Ex(core::mem::transmute(ulclassindex), core::mem::transmute(classguid), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Enumerate_Classes_Ex(ulclassindex, core::mem::transmute(classguid), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Enumerate_EnumeratorsA(ulenumindex: u32, buffer: windows_core::PSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enumerate_EnumeratorsA(ulenumindex : u32, buffer : windows_core::PSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Enumerate_EnumeratorsA(core::mem::transmute(ulenumindex), core::mem::transmute(buffer), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Enumerate_EnumeratorsA(ulenumindex, core::mem::transmute(buffer), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Enumerate_EnumeratorsW(ulenumindex: u32, buffer: windows_core::PWSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enumerate_EnumeratorsW(ulenumindex : u32, buffer : windows_core::PWSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Enumerate_EnumeratorsW(core::mem::transmute(ulenumindex), core::mem::transmute(buffer), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Enumerate_EnumeratorsW(ulenumindex, core::mem::transmute(buffer), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Enumerate_Enumerators_ExA(ulenumindex: u32, buffer: windows_core::PSTR, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enumerate_Enumerators_ExA(ulenumindex : u32, buffer : windows_core::PSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Enumerate_Enumerators_ExA(core::mem::transmute(ulenumindex), core::mem::transmute(buffer), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Enumerate_Enumerators_ExA(ulenumindex, core::mem::transmute(buffer), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Enumerate_Enumerators_ExW(ulenumindex: u32, buffer: windows_core::PWSTR, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Enumerate_Enumerators_ExW(ulenumindex : u32, buffer : windows_core::PWSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Enumerate_Enumerators_ExW(core::mem::transmute(ulenumindex), core::mem::transmute(buffer), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Enumerate_Enumerators_ExW(ulenumindex, core::mem::transmute(buffer), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Find_Range(pullstart: *mut u64, ullstart: u64, ullength: u32, ullalignment: u64, ullend: u64, rlh: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Find_Range(pullstart : *mut u64, ullstart : u64, ullength : u32, ullalignment : u64, ullend : u64, rlh : usize, ulflags : u32) -> CONFIGRET); - CM_Find_Range(core::mem::transmute(pullstart), core::mem::transmute(ullstart), core::mem::transmute(ullength), core::mem::transmute(ullalignment), core::mem::transmute(ullend), core::mem::transmute(rlh), core::mem::transmute(ulflags)) + CM_Find_Range(core::mem::transmute(pullstart), ullstart, ullength, ullalignment, ullend, rlh, ulflags) } #[inline] pub unsafe fn CM_First_Range(rlh: usize, pullstart: *mut u64, pullend: *mut u64, preelement: *mut usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_First_Range(rlh : usize, pullstart : *mut u64, pullend : *mut u64, preelement : *mut usize, ulflags : u32) -> CONFIGRET); - CM_First_Range(core::mem::transmute(rlh), core::mem::transmute(pullstart), core::mem::transmute(pullend), core::mem::transmute(preelement), core::mem::transmute(ulflags)) + CM_First_Range(rlh, core::mem::transmute(pullstart), core::mem::transmute(pullend), core::mem::transmute(preelement), ulflags) } #[inline] pub unsafe fn CM_Free_Log_Conf(lclogconftobefreed: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Log_Conf(lclogconftobefreed : usize, ulflags : u32) -> CONFIGRET); - CM_Free_Log_Conf(core::mem::transmute(lclogconftobefreed), core::mem::transmute(ulflags)) + CM_Free_Log_Conf(lclogconftobefreed, ulflags) } #[inline] pub unsafe fn CM_Free_Log_Conf_Ex(lclogconftobefreed: usize, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Log_Conf_Ex(lclogconftobefreed : usize, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Free_Log_Conf_Ex(core::mem::transmute(lclogconftobefreed), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Free_Log_Conf_Ex(lclogconftobefreed, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Free_Log_Conf_Handle(lclogconf: usize) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Log_Conf_Handle(lclogconf : usize) -> CONFIGRET); - CM_Free_Log_Conf_Handle(core::mem::transmute(lclogconf)) + CM_Free_Log_Conf_Handle(lclogconf) } #[inline] pub unsafe fn CM_Free_Range_List(rlh: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Range_List(rlh : usize, ulflags : u32) -> CONFIGRET); - CM_Free_Range_List(core::mem::transmute(rlh), core::mem::transmute(ulflags)) + CM_Free_Range_List(rlh, ulflags) } #[inline] pub unsafe fn CM_Free_Res_Des(prdresdes: Option<*mut usize>, rdresdes: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Res_Des(prdresdes : *mut usize, rdresdes : usize, ulflags : u32) -> CONFIGRET); - CM_Free_Res_Des(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), core::mem::transmute(rdresdes), core::mem::transmute(ulflags)) + CM_Free_Res_Des(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), rdresdes, ulflags) } #[inline] pub unsafe fn CM_Free_Res_Des_Ex(prdresdes: Option<*mut usize>, rdresdes: usize, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Res_Des_Ex(prdresdes : *mut usize, rdresdes : usize, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Free_Res_Des_Ex(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), core::mem::transmute(rdresdes), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Free_Res_Des_Ex(core::mem::transmute(prdresdes.unwrap_or(core::mem::zeroed())), rdresdes, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Free_Res_Des_Handle(rdresdes: usize) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Res_Des_Handle(rdresdes : usize) -> CONFIGRET); - CM_Free_Res_Des_Handle(core::mem::transmute(rdresdes)) + CM_Free_Res_Des_Handle(rdresdes) } #[inline] pub unsafe fn CM_Free_Resource_Conflict_Handle(clconflictlist: usize) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Free_Resource_Conflict_Handle(clconflictlist : usize) -> CONFIGRET); - CM_Free_Resource_Conflict_Handle(core::mem::transmute(clconflictlist)) + CM_Free_Resource_Conflict_Handle(clconflictlist) } #[inline] pub unsafe fn CM_Get_Child(pdndevinst: *mut u32, dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Child(pdndevinst : *mut u32, dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Child(core::mem::transmute(pdndevinst), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_Child(core::mem::transmute(pdndevinst), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_Child_Ex(pdndevinst: *mut u32, dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Child_Ex(pdndevinst : *mut u32, dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Child_Ex(core::mem::transmute(pdndevinst), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Child_Ex(core::mem::transmute(pdndevinst), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_Key_NameA(classguid: *const windows_core::GUID, pszkeyname: Option, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Key_NameA(classguid : *const windows_core::GUID, pszkeyname : windows_core::PSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Class_Key_NameA(core::mem::transmute(classguid), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_Class_Key_NameA(classguid, core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_Class_Key_NameW(classguid: *const windows_core::GUID, pszkeyname: Option, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Key_NameW(classguid : *const windows_core::GUID, pszkeyname : windows_core::PWSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Class_Key_NameW(core::mem::transmute(classguid), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_Class_Key_NameW(classguid, core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_Class_Key_Name_ExA(classguid: *const windows_core::GUID, pszkeyname: Option, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Key_Name_ExA(classguid : *const windows_core::GUID, pszkeyname : windows_core::PSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Key_Name_ExA(core::mem::transmute(classguid), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Key_Name_ExA(classguid, core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_Key_Name_ExW(classguid: *const windows_core::GUID, pszkeyname: Option, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Key_Name_ExW(classguid : *const windows_core::GUID, pszkeyname : windows_core::PWSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Key_Name_ExW(core::mem::transmute(classguid), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Key_Name_ExW(classguid, core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_NameA(classguid: *const windows_core::GUID, buffer: Option, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_NameA(classguid : *const windows_core::GUID, buffer : windows_core::PSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Class_NameA(core::mem::transmute(classguid), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_Class_NameA(classguid, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_Class_NameW(classguid: *const windows_core::GUID, buffer: Option, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_NameW(classguid : *const windows_core::GUID, buffer : windows_core::PWSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Class_NameW(core::mem::transmute(classguid), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_Class_NameW(classguid, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_Class_Name_ExA(classguid: *const windows_core::GUID, buffer: Option, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Name_ExA(classguid : *const windows_core::GUID, buffer : windows_core::PSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Name_ExA(core::mem::transmute(classguid), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Name_ExA(classguid, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_Name_ExW(classguid: *const windows_core::GUID, buffer: Option, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Name_ExW(classguid : *const windows_core::GUID, buffer : windows_core::PWSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Name_ExW(core::mem::transmute(classguid), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Name_ExW(classguid, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_Class_PropertyW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<*mut u8>, propertybuffersize: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_PropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Class_PropertyW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), core::mem::transmute(ulflags)) + CM_Get_Class_PropertyW(classguid, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_Class_Property_ExW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<*mut u8>, propertybuffersize: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Property_ExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Property_ExW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Property_ExW(classguid, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_Property_Keys(classguid: *const windows_core::GUID, propertykeyarray: Option<*mut super::super::Foundation::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Property_Keys(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Class_Property_Keys(core::mem::transmute(classguid), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), core::mem::transmute(ulflags)) + CM_Get_Class_Property_Keys(classguid, core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), ulflags) } #[inline] pub unsafe fn CM_Get_Class_Property_Keys_Ex(classguid: *const windows_core::GUID, propertykeyarray: Option<*mut super::super::Foundation::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Property_Keys_Ex(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Property_Keys_Ex(core::mem::transmute(classguid), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Property_Keys_Ex(classguid, core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_Registry_PropertyA(classguid: *const windows_core::GUID, ulproperty: u32, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Registry_PropertyA(classguid : *const windows_core::GUID, ulproperty : u32, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Registry_PropertyA(core::mem::transmute(classguid), core::mem::transmute(ulproperty), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Registry_PropertyA(classguid, ulproperty, core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Class_Registry_PropertyW(classguid: *const windows_core::GUID, ulproperty: u32, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Class_Registry_PropertyW(classguid : *const windows_core::GUID, ulproperty : u32, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Class_Registry_PropertyW(core::mem::transmute(classguid), core::mem::transmute(ulproperty), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Class_Registry_PropertyW(classguid, ulproperty, core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Depth(puldepth: *mut u32, dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Depth(puldepth : *mut u32, dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Depth(core::mem::transmute(puldepth), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_Depth(core::mem::transmute(puldepth), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_Depth_Ex(puldepth: *mut u32, dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Depth_Ex(puldepth : *mut u32, dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Depth_Ex(core::mem::transmute(puldepth), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Depth_Ex(core::mem::transmute(puldepth), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_PropertyA(dndevinst: u32, pszcustompropertyname: P1, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32) -> CONFIGRET @@ -390,7 +390,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Custom_PropertyA(dndevinst : u32, pszcustompropertyname : windows_core::PCSTR, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_Custom_PropertyA(core::mem::transmute(dndevinst), pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_DevNode_Custom_PropertyA(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_PropertyW(dndevinst: u32, pszcustompropertyname: P1, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32) -> CONFIGRET @@ -398,7 +398,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Custom_PropertyW(dndevinst : u32, pszcustompropertyname : windows_core::PCWSTR, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_Custom_PropertyW(core::mem::transmute(dndevinst), pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_DevNode_Custom_PropertyW(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_Property_ExA(dndevinst: u32, pszcustompropertyname: P1, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -406,7 +406,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Custom_Property_ExA(dndevinst : u32, pszcustompropertyname : windows_core::PCSTR, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Custom_Property_ExA(core::mem::transmute(dndevinst), pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Custom_Property_ExA(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_Property_ExW(dndevinst: u32, pszcustompropertyname: P1, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -414,79 +414,79 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Custom_Property_ExW(dndevinst : u32, pszcustompropertyname : windows_core::PCWSTR, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Custom_Property_ExW(core::mem::transmute(dndevinst), pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Custom_Property_ExW(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_DevNode_PropertyW(dndevinst: u32, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<*mut u8>, propertybuffersize: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_PropertyW(dndevinst : u32, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_PropertyW(core::mem::transmute(dndevinst), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), core::mem::transmute(ulflags)) + CM_Get_DevNode_PropertyW(dndevinst, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_DevNode_Property_ExW(dndevinst: u32, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<*mut u8>, propertybuffersize: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Property_ExW(dndevinst : u32, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Property_ExW(core::mem::transmute(dndevinst), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Property_ExW(dndevinst, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_DevNode_Property_Keys(dndevinst: u32, propertykeyarray: Option<*mut super::super::Foundation::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Property_Keys(dndevinst : u32, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_Property_Keys(core::mem::transmute(dndevinst), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), core::mem::transmute(ulflags)) + CM_Get_DevNode_Property_Keys(dndevinst, core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Property_Keys_Ex(dndevinst: u32, propertykeyarray: Option<*mut super::super::Foundation::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Property_Keys_Ex(dndevinst : u32, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Property_Keys_Ex(core::mem::transmute(dndevinst), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Property_Keys_Ex(dndevinst, core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_DevNode_Registry_PropertyA(dndevinst: u32, ulproperty: u32, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Registry_PropertyA(dndevinst : u32, ulproperty : u32, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_Registry_PropertyA(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_DevNode_Registry_PropertyA(dndevinst, ulproperty, core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Registry_PropertyW(dndevinst: u32, ulproperty: u32, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Registry_PropertyW(dndevinst : u32, ulproperty : u32, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_Registry_PropertyW(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_DevNode_Registry_PropertyW(dndevinst, ulproperty, core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Registry_Property_ExA(dndevinst: u32, ulproperty: u32, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Registry_Property_ExA(dndevinst : u32, ulproperty : u32, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Registry_Property_ExA(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Registry_Property_ExA(dndevinst, ulproperty, core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_DevNode_Registry_Property_ExW(dndevinst: u32, ulproperty: u32, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Registry_Property_ExW(dndevinst : u32, ulproperty : u32, pulregdatatype : *mut u32, buffer : *mut core::ffi::c_void, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Registry_Property_ExW(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Registry_Property_ExW(dndevinst, ulproperty, core::mem::transmute(pulregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_DevNode_Status(pulstatus: *mut CM_DEVNODE_STATUS_FLAGS, pulproblemnumber: *mut CM_PROB, dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Status(pulstatus : *mut CM_DEVNODE_STATUS_FLAGS, pulproblemnumber : *mut CM_PROB, dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Get_DevNode_Status(core::mem::transmute(pulstatus), core::mem::transmute(pulproblemnumber), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_DevNode_Status(core::mem::transmute(pulstatus), core::mem::transmute(pulproblemnumber), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Status_Ex(pulstatus: *mut CM_DEVNODE_STATUS_FLAGS, pulproblemnumber: *mut CM_PROB, dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_DevNode_Status_Ex(pulstatus : *mut CM_DEVNODE_STATUS_FLAGS, pulproblemnumber : *mut CM_PROB, dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_DevNode_Status_Ex(core::mem::transmute(pulstatus), core::mem::transmute(pulproblemnumber), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_DevNode_Status_Ex(core::mem::transmute(pulstatus), core::mem::transmute(pulproblemnumber), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_IDA(dndevinst: u32, buffer: &mut [u8], ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_IDA(dndevinst : u32, buffer : windows_core::PSTR, bufferlen : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_IDA(core::mem::transmute(dndevinst), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags)) + CM_Get_Device_IDA(dndevinst, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_IDW(dndevinst: u32, buffer: &mut [u16], ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_IDW(dndevinst : u32, buffer : windows_core::PWSTR, bufferlen : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_IDW(core::mem::transmute(dndevinst), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags)) + CM_Get_Device_IDW(dndevinst, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_ExA(dndevinst: u32, buffer: &mut [u8], ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_ExA(dndevinst : u32, buffer : windows_core::PSTR, bufferlen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_ExA(core::mem::transmute(dndevinst), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_ExA(dndevinst, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_ID_ExW(dndevinst: u32, buffer: &mut [u16], ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_ExW(dndevinst : u32, buffer : windows_core::PWSTR, bufferlen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_ExW(core::mem::transmute(dndevinst), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_ExW(dndevinst, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_ID_ListA(pszfilter: P0, buffer: &mut [u8], ulflags: u32) -> CONFIGRET @@ -494,7 +494,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_ListA(pszfilter : windows_core::PCSTR, buffer : windows_core::PSTR, bufferlen : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_ID_ListA(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags)) + CM_Get_Device_ID_ListA(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_ListW(pszfilter: P0, buffer: &mut [u16], ulflags: u32) -> CONFIGRET @@ -502,7 +502,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_ListW(pszfilter : windows_core::PCWSTR, buffer : windows_core::PWSTR, bufferlen : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_ID_ListW(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags)) + CM_Get_Device_ID_ListW(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_List_ExA(pszfilter: P0, buffer: &mut [u8], ulflags: u32, hmachine: Option) -> CONFIGRET @@ -510,7 +510,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_List_ExA(pszfilter : windows_core::PCSTR, buffer : windows_core::PSTR, bufferlen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_List_ExA(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_List_ExA(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_ID_List_ExW(pszfilter: P0, buffer: &mut [u16], ulflags: u32, hmachine: Option) -> CONFIGRET @@ -518,7 +518,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_List_ExW(pszfilter : windows_core::PCWSTR, buffer : windows_core::PWSTR, bufferlen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_List_ExW(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_List_ExW(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_ID_List_SizeA(pullen: *mut u32, pszfilter: P1, ulflags: u32) -> CONFIGRET @@ -526,7 +526,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_List_SizeA(pullen : *mut u32, pszfilter : windows_core::PCSTR, ulflags : u32) -> CONFIGRET); - CM_Get_Device_ID_List_SizeA(core::mem::transmute(pullen), pszfilter.param().abi(), core::mem::transmute(ulflags)) + CM_Get_Device_ID_List_SizeA(core::mem::transmute(pullen), pszfilter.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_List_SizeW(pullen: *mut u32, pszfilter: P1, ulflags: u32) -> CONFIGRET @@ -534,7 +534,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_List_SizeW(pullen : *mut u32, pszfilter : windows_core::PCWSTR, ulflags : u32) -> CONFIGRET); - CM_Get_Device_ID_List_SizeW(core::mem::transmute(pullen), pszfilter.param().abi(), core::mem::transmute(ulflags)) + CM_Get_Device_ID_List_SizeW(core::mem::transmute(pullen), pszfilter.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_List_Size_ExA(pullen: *mut u32, pszfilter: P1, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -542,7 +542,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_List_Size_ExA(pullen : *mut u32, pszfilter : windows_core::PCSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_List_Size_ExA(core::mem::transmute(pullen), pszfilter.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_List_Size_ExA(core::mem::transmute(pullen), pszfilter.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_ID_List_Size_ExW(pullen: *mut u32, pszfilter: P1, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -550,17 +550,17 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_List_Size_ExW(pullen : *mut u32, pszfilter : windows_core::PCWSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_List_Size_ExW(core::mem::transmute(pullen), pszfilter.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_List_Size_ExW(core::mem::transmute(pullen), pszfilter.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_ID_Size(pullen: *mut u32, dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_Size(pullen : *mut u32, dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_ID_Size(core::mem::transmute(pullen), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_Device_ID_Size(core::mem::transmute(pullen), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_Size_Ex(pullen: *mut u32, dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_ID_Size_Ex(pullen : *mut u32, dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_ID_Size_Ex(core::mem::transmute(pullen), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_ID_Size_Ex(core::mem::transmute(pullen), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_AliasA(pszdeviceinterface: P0, aliasinterfaceguid: *const windows_core::GUID, pszaliasdeviceinterface: windows_core::PSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET @@ -568,7 +568,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_AliasA(pszdeviceinterface : windows_core::PCSTR, aliasinterfaceguid : *const windows_core::GUID, pszaliasdeviceinterface : windows_core::PSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_Interface_AliasA(pszdeviceinterface.param().abi(), core::mem::transmute(aliasinterfaceguid), core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_AliasA(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_AliasW(pszdeviceinterface: P0, aliasinterfaceguid: *const windows_core::GUID, pszaliasdeviceinterface: windows_core::PWSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET @@ -576,7 +576,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_AliasW(pszdeviceinterface : windows_core::PCWSTR, aliasinterfaceguid : *const windows_core::GUID, pszaliasdeviceinterface : windows_core::PWSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_Interface_AliasW(pszdeviceinterface.param().abi(), core::mem::transmute(aliasinterfaceguid), core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_AliasW(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_Alias_ExA(pszdeviceinterface: P0, aliasinterfaceguid: *const windows_core::GUID, pszaliasdeviceinterface: windows_core::PSTR, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -584,7 +584,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Alias_ExA(pszdeviceinterface : windows_core::PCSTR, aliasinterfaceguid : *const windows_core::GUID, pszaliasdeviceinterface : windows_core::PSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_Alias_ExA(pszdeviceinterface.param().abi(), core::mem::transmute(aliasinterfaceguid), core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_Alias_ExA(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_Alias_ExW(pszdeviceinterface: P0, aliasinterfaceguid: *const windows_core::GUID, pszaliasdeviceinterface: windows_core::PWSTR, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -592,7 +592,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Alias_ExW(pszdeviceinterface : windows_core::PCWSTR, aliasinterfaceguid : *const windows_core::GUID, pszaliasdeviceinterface : windows_core::PWSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_Alias_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(aliasinterfaceguid), core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_Alias_ExW(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_ListA(interfaceclassguid: *const windows_core::GUID, pdeviceid: P1, buffer: &mut [u8], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET @@ -600,7 +600,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_ListA(interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCSTR, buffer : windows_core::PSTR, bufferlen : u32, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET); - CM_Get_Device_Interface_ListA(core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_ListA(interfaceclassguid, pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_ListW(interfaceclassguid: *const windows_core::GUID, pdeviceid: P1, buffer: &mut [u16], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET @@ -608,7 +608,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_ListW(interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCWSTR, buffer : windows_core::PWSTR, bufferlen : u32, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET); - CM_Get_Device_Interface_ListW(core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_ListW(interfaceclassguid, pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_ExA(interfaceclassguid: *const windows_core::GUID, pdeviceid: P1, buffer: &mut [u8], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: Option) -> CONFIGRET @@ -616,7 +616,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_List_ExA(interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCSTR, buffer : windows_core::PSTR, bufferlen : u32, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_List_ExA(core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_List_ExA(interfaceclassguid, pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_ExW(interfaceclassguid: *const windows_core::GUID, pdeviceid: P1, buffer: &mut [u16], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: Option) -> CONFIGRET @@ -624,7 +624,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_List_ExW(interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCWSTR, buffer : windows_core::PWSTR, bufferlen : u32, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_List_ExW(core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_List_ExW(interfaceclassguid, pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_SizeA(pullen: *mut u32, interfaceclassguid: *const windows_core::GUID, pdeviceid: P2, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET @@ -632,7 +632,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_List_SizeA(pullen : *mut u32, interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCSTR, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET); - CM_Get_Device_Interface_List_SizeA(core::mem::transmute(pullen), core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_List_SizeA(core::mem::transmute(pullen), interfaceclassguid, pdeviceid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_SizeW(pullen: *mut u32, interfaceclassguid: *const windows_core::GUID, pdeviceid: P2, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET @@ -640,7 +640,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_List_SizeW(pullen : *mut u32, interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCWSTR, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET); - CM_Get_Device_Interface_List_SizeW(core::mem::transmute(pullen), core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_List_SizeW(core::mem::transmute(pullen), interfaceclassguid, pdeviceid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_Size_ExA(pullen: *mut u32, interfaceclassguid: *const windows_core::GUID, pdeviceid: P2, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: Option) -> CONFIGRET @@ -648,7 +648,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_List_Size_ExA(pullen : *mut u32, interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCSTR, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_List_Size_ExA(core::mem::transmute(pullen), core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_List_Size_ExA(core::mem::transmute(pullen), interfaceclassguid, pdeviceid.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_Size_ExW(pullen: *mut u32, interfaceclassguid: *const windows_core::GUID, pdeviceid: P2, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: Option) -> CONFIGRET @@ -656,7 +656,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_List_Size_ExW(pullen : *mut u32, interfaceclassguid : *const windows_core::GUID, pdeviceid : windows_core::PCWSTR, ulflags : CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_List_Size_ExW(core::mem::transmute(pullen), core::mem::transmute(interfaceclassguid), pdeviceid.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_List_Size_ExW(core::mem::transmute(pullen), interfaceclassguid, pdeviceid.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -665,7 +665,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_PropertyW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_Interface_PropertyW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_PropertyW(pszdeviceinterface.param().abi(), propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -674,7 +674,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Property_ExW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_Property_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_Property_ExW(pszdeviceinterface.param().abi(), propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffersize), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface: P0, propertykeyarray: Option<*mut super::super::Foundation::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32) -> CONFIGRET @@ -682,7 +682,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface : windows_core::PCWSTR, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), core::mem::transmute(ulflags)) + CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), ulflags) } #[inline] pub unsafe fn CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface: P0, propertykeyarray: Option<*mut super::super::Foundation::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -690,27 +690,27 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface : windows_core::PCWSTR, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertykeycount), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_First_Log_Conf(plclogconf: Option<*mut usize>, dndevinst: u32, ulflags: CM_LOG_CONF) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_First_Log_Conf(plclogconf : *mut usize, dndevinst : u32, ulflags : CM_LOG_CONF) -> CONFIGRET); - CM_Get_First_Log_Conf(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_First_Log_Conf(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_First_Log_Conf_Ex(plclogconf: Option<*mut usize>, dndevinst: u32, ulflags: CM_LOG_CONF, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_First_Log_Conf_Ex(plclogconf : *mut usize, dndevinst : u32, ulflags : CM_LOG_CONF, hmachine : isize) -> CONFIGRET); - CM_Get_First_Log_Conf_Ex(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_First_Log_Conf_Ex(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Global_State(pulstate: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Global_State(pulstate : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Global_State(core::mem::transmute(pulstate), core::mem::transmute(ulflags)) + CM_Get_Global_State(core::mem::transmute(pulstate), ulflags) } #[inline] pub unsafe fn CM_Get_Global_State_Ex(pulstate: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Global_State_Ex(pulstate : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Global_State_Ex(core::mem::transmute(pulstate), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Global_State_Ex(core::mem::transmute(pulstate), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_HW_Prof_FlagsA(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32) -> CONFIGRET @@ -718,7 +718,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_HW_Prof_FlagsA(pdeviceid : windows_core::PCSTR, ulhardwareprofile : u32, pulvalue : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_HW_Prof_FlagsA(pdeviceid.param().abi(), core::mem::transmute(ulhardwareprofile), core::mem::transmute(pulvalue), core::mem::transmute(ulflags)) + CM_Get_HW_Prof_FlagsA(pdeviceid.param().abi(), ulhardwareprofile, core::mem::transmute(pulvalue), ulflags) } #[inline] pub unsafe fn CM_Get_HW_Prof_FlagsW(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32) -> CONFIGRET @@ -726,7 +726,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_HW_Prof_FlagsW(pdeviceid : windows_core::PCWSTR, ulhardwareprofile : u32, pulvalue : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_HW_Prof_FlagsW(pdeviceid.param().abi(), core::mem::transmute(ulhardwareprofile), core::mem::transmute(pulvalue), core::mem::transmute(ulflags)) + CM_Get_HW_Prof_FlagsW(pdeviceid.param().abi(), ulhardwareprofile, core::mem::transmute(pulvalue), ulflags) } #[inline] pub unsafe fn CM_Get_HW_Prof_Flags_ExA(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -734,7 +734,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_HW_Prof_Flags_ExA(pdeviceid : windows_core::PCSTR, ulhardwareprofile : u32, pulvalue : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_HW_Prof_Flags_ExA(pdeviceid.param().abi(), core::mem::transmute(ulhardwareprofile), core::mem::transmute(pulvalue), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_HW_Prof_Flags_ExA(pdeviceid.param().abi(), ulhardwareprofile, core::mem::transmute(pulvalue), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_HW_Prof_Flags_ExW(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -742,112 +742,112 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_HW_Prof_Flags_ExW(pdeviceid : windows_core::PCWSTR, ulhardwareprofile : u32, pulvalue : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_HW_Prof_Flags_ExW(pdeviceid.param().abi(), core::mem::transmute(ulhardwareprofile), core::mem::transmute(pulvalue), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_HW_Prof_Flags_ExW(pdeviceid.param().abi(), ulhardwareprofile, core::mem::transmute(pulvalue), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Hardware_Profile_InfoA(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_A, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Hardware_Profile_InfoA(ulindex : u32, phwprofileinfo : *mut HWPROFILEINFO_A, ulflags : u32) -> CONFIGRET); - CM_Get_Hardware_Profile_InfoA(core::mem::transmute(ulindex), core::mem::transmute(phwprofileinfo), core::mem::transmute(ulflags)) + CM_Get_Hardware_Profile_InfoA(ulindex, core::mem::transmute(phwprofileinfo), ulflags) } #[inline] pub unsafe fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_W, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Hardware_Profile_InfoW(ulindex : u32, phwprofileinfo : *mut HWPROFILEINFO_W, ulflags : u32) -> CONFIGRET); - CM_Get_Hardware_Profile_InfoW(core::mem::transmute(ulindex), core::mem::transmute(phwprofileinfo), core::mem::transmute(ulflags)) + CM_Get_Hardware_Profile_InfoW(ulindex, core::mem::transmute(phwprofileinfo), ulflags) } #[inline] pub unsafe fn CM_Get_Hardware_Profile_Info_ExA(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_A, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Hardware_Profile_Info_ExA(ulindex : u32, phwprofileinfo : *mut HWPROFILEINFO_A, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Hardware_Profile_Info_ExA(core::mem::transmute(ulindex), core::mem::transmute(phwprofileinfo), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Hardware_Profile_Info_ExA(ulindex, core::mem::transmute(phwprofileinfo), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_W, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Hardware_Profile_Info_ExW(ulindex : u32, phwprofileinfo : *mut HWPROFILEINFO_W, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Hardware_Profile_Info_ExW(core::mem::transmute(ulindex), core::mem::transmute(phwprofileinfo), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Hardware_Profile_Info_ExW(ulindex, core::mem::transmute(phwprofileinfo), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Log_Conf_Priority(lclogconf: usize, ppriority: *mut u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Log_Conf_Priority(lclogconf : usize, ppriority : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Log_Conf_Priority(core::mem::transmute(lclogconf), core::mem::transmute(ppriority), core::mem::transmute(ulflags)) + CM_Get_Log_Conf_Priority(lclogconf, core::mem::transmute(ppriority), ulflags) } #[inline] pub unsafe fn CM_Get_Log_Conf_Priority_Ex(lclogconf: usize, ppriority: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Log_Conf_Priority_Ex(lclogconf : usize, ppriority : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Log_Conf_Priority_Ex(core::mem::transmute(lclogconf), core::mem::transmute(ppriority), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Log_Conf_Priority_Ex(lclogconf, core::mem::transmute(ppriority), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Next_Log_Conf(plclogconf: Option<*mut usize>, lclogconf: usize, ulflags: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Next_Log_Conf(plclogconf : *mut usize, lclogconf : usize, ulflags : u32) -> CONFIGRET); - CM_Get_Next_Log_Conf(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), core::mem::transmute(lclogconf), core::mem::transmute(ulflags.unwrap_or(core::mem::zeroed()))) + CM_Get_Next_Log_Conf(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), lclogconf, core::mem::transmute(ulflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Next_Log_Conf_Ex(plclogconf: Option<*mut usize>, lclogconf: usize, ulflags: Option, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Next_Log_Conf_Ex(plclogconf : *mut usize, lclogconf : usize, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Next_Log_Conf_Ex(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), core::mem::transmute(lclogconf), core::mem::transmute(ulflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Next_Log_Conf_Ex(core::mem::transmute(plclogconf.unwrap_or(core::mem::zeroed())), lclogconf, core::mem::transmute(ulflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Next_Res_Des(prdresdes: *mut usize, rdresdes: usize, forresource: CM_RESTYPE, presourceid: Option<*mut CM_RESTYPE>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Next_Res_Des(prdresdes : *mut usize, rdresdes : usize, forresource : CM_RESTYPE, presourceid : *mut CM_RESTYPE, ulflags : u32) -> CONFIGRET); - CM_Get_Next_Res_Des(core::mem::transmute(prdresdes), core::mem::transmute(rdresdes), core::mem::transmute(forresource), core::mem::transmute(presourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags)) + CM_Get_Next_Res_Des(core::mem::transmute(prdresdes), rdresdes, forresource, core::mem::transmute(presourceid.unwrap_or(core::mem::zeroed())), ulflags) } #[inline] pub unsafe fn CM_Get_Next_Res_Des_Ex(prdresdes: *mut usize, rdresdes: usize, forresource: CM_RESTYPE, presourceid: Option<*mut CM_RESTYPE>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Next_Res_Des_Ex(prdresdes : *mut usize, rdresdes : usize, forresource : CM_RESTYPE, presourceid : *mut CM_RESTYPE, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Next_Res_Des_Ex(core::mem::transmute(prdresdes), core::mem::transmute(rdresdes), core::mem::transmute(forresource), core::mem::transmute(presourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Next_Res_Des_Ex(core::mem::transmute(prdresdes), rdresdes, forresource, core::mem::transmute(presourceid.unwrap_or(core::mem::zeroed())), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Parent(pdndevinst: *mut u32, dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Parent(pdndevinst : *mut u32, dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Parent(core::mem::transmute(pdndevinst), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_Parent(core::mem::transmute(pdndevinst), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_Parent_Ex(pdndevinst: *mut u32, dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Parent_Ex(pdndevinst : *mut u32, dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Parent_Ex(core::mem::transmute(pdndevinst), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Parent_Ex(core::mem::transmute(pdndevinst), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Res_Des_Data(rdresdes: usize, buffer: *mut core::ffi::c_void, bufferlen: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Res_Des_Data(rdresdes : usize, buffer : *mut core::ffi::c_void, bufferlen : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Res_Des_Data(core::mem::transmute(rdresdes), core::mem::transmute(buffer), core::mem::transmute(bufferlen), core::mem::transmute(ulflags)) + CM_Get_Res_Des_Data(rdresdes, core::mem::transmute(buffer), bufferlen, ulflags) } #[inline] pub unsafe fn CM_Get_Res_Des_Data_Ex(rdresdes: usize, buffer: *mut core::ffi::c_void, bufferlen: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Res_Des_Data_Ex(rdresdes : usize, buffer : *mut core::ffi::c_void, bufferlen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Res_Des_Data_Ex(core::mem::transmute(rdresdes), core::mem::transmute(buffer), core::mem::transmute(bufferlen), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Res_Des_Data_Ex(rdresdes, core::mem::transmute(buffer), bufferlen, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Res_Des_Data_Size(pulsize: *mut u32, rdresdes: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Res_Des_Data_Size(pulsize : *mut u32, rdresdes : usize, ulflags : u32) -> CONFIGRET); - CM_Get_Res_Des_Data_Size(core::mem::transmute(pulsize), core::mem::transmute(rdresdes), core::mem::transmute(ulflags)) + CM_Get_Res_Des_Data_Size(core::mem::transmute(pulsize), rdresdes, ulflags) } #[inline] pub unsafe fn CM_Get_Res_Des_Data_Size_Ex(pulsize: *mut u32, rdresdes: usize, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Res_Des_Data_Size_Ex(pulsize : *mut u32, rdresdes : usize, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Res_Des_Data_Size_Ex(core::mem::transmute(pulsize), core::mem::transmute(rdresdes), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Res_Des_Data_Size_Ex(core::mem::transmute(pulsize), rdresdes, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Resource_Conflict_Count(clconflictlist: usize, pulcount: *mut u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Resource_Conflict_Count(clconflictlist : usize, pulcount : *mut u32) -> CONFIGRET); - CM_Get_Resource_Conflict_Count(core::mem::transmute(clconflictlist), core::mem::transmute(pulcount)) + CM_Get_Resource_Conflict_Count(clconflictlist, core::mem::transmute(pulcount)) } #[inline] pub unsafe fn CM_Get_Resource_Conflict_DetailsA(clconflictlist: usize, ulindex: u32, pconflictdetails: *mut CONFLICT_DETAILS_A) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Resource_Conflict_DetailsA(clconflictlist : usize, ulindex : u32, pconflictdetails : *mut CONFLICT_DETAILS_A) -> CONFIGRET); - CM_Get_Resource_Conflict_DetailsA(core::mem::transmute(clconflictlist), core::mem::transmute(ulindex), core::mem::transmute(pconflictdetails)) + CM_Get_Resource_Conflict_DetailsA(clconflictlist, ulindex, core::mem::transmute(pconflictdetails)) } #[inline] pub unsafe fn CM_Get_Resource_Conflict_DetailsW(clconflictlist: usize, ulindex: u32, pconflictdetails: *mut CONFLICT_DETAILS_W) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Resource_Conflict_DetailsW(clconflictlist : usize, ulindex : u32, pconflictdetails : *mut CONFLICT_DETAILS_W) -> CONFIGRET); - CM_Get_Resource_Conflict_DetailsW(core::mem::transmute(clconflictlist), core::mem::transmute(ulindex), core::mem::transmute(pconflictdetails)) + CM_Get_Resource_Conflict_DetailsW(clconflictlist, ulindex, core::mem::transmute(pconflictdetails)) } #[inline] pub unsafe fn CM_Get_Sibling(pdndevinst: *mut u32, dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Sibling(pdndevinst : *mut u32, dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Get_Sibling(core::mem::transmute(pdndevinst), core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Get_Sibling(core::mem::transmute(pdndevinst), dndevinst, ulflags) } #[inline] pub unsafe fn CM_Get_Sibling_Ex(pdndevinst: *mut u32, dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Sibling_Ex(pdndevinst : *mut u32, dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Sibling_Ex(core::mem::transmute(pdndevinst), core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Get_Sibling_Ex(core::mem::transmute(pdndevinst), dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Get_Version() -> u16 { @@ -862,12 +862,12 @@ pub unsafe fn CM_Get_Version_Ex(hmachine: Option) -> u16 { #[inline] pub unsafe fn CM_Intersect_Range_List(rlhold1: usize, rlhold2: usize, rlhnew: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Intersect_Range_List(rlhold1 : usize, rlhold2 : usize, rlhnew : usize, ulflags : u32) -> CONFIGRET); - CM_Intersect_Range_List(core::mem::transmute(rlhold1), core::mem::transmute(rlhold2), core::mem::transmute(rlhnew), core::mem::transmute(ulflags)) + CM_Intersect_Range_List(rlhold1, rlhold2, rlhnew, ulflags) } #[inline] pub unsafe fn CM_Invert_Range_List(rlhold: usize, rlhnew: usize, ullmaxvalue: u64, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Invert_Range_List(rlhold : usize, rlhnew : usize, ullmaxvalue : u64, ulflags : u32) -> CONFIGRET); - CM_Invert_Range_List(core::mem::transmute(rlhold), core::mem::transmute(rlhnew), core::mem::transmute(ullmaxvalue), core::mem::transmute(ulflags)) + CM_Invert_Range_List(rlhold, rlhnew, ullmaxvalue, ulflags) } #[inline] pub unsafe fn CM_Is_Dock_Station_Present(pbpresent: *mut super::super::Foundation::BOOL) -> CONFIGRET { @@ -882,12 +882,12 @@ pub unsafe fn CM_Is_Dock_Station_Present_Ex(pbpresent: *mut super::super::Founda #[inline] pub unsafe fn CM_Is_Version_Available(wversion: u16) -> super::super::Foundation::BOOL { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Version_Available(wversion : u16) -> super::super::Foundation:: BOOL); - CM_Is_Version_Available(core::mem::transmute(wversion)) + CM_Is_Version_Available(wversion) } #[inline] pub unsafe fn CM_Is_Version_Available_Ex(wversion: u16, hmachine: Option) -> super::super::Foundation::BOOL { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Version_Available_Ex(wversion : u16, hmachine : isize) -> super::super::Foundation:: BOOL); - CM_Is_Version_Available_Ex(core::mem::transmute(wversion), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Is_Version_Available_Ex(wversion, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Locate_DevNodeA(pdndevinst: *mut u32, pdeviceid: P1, ulflags: CM_LOCATE_DEVNODE_FLAGS) -> CONFIGRET @@ -895,7 +895,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Locate_DevNodeA(pdndevinst : *mut u32, pdeviceid : windows_core::PCSTR, ulflags : CM_LOCATE_DEVNODE_FLAGS) -> CONFIGRET); - CM_Locate_DevNodeA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(ulflags)) + CM_Locate_DevNodeA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Locate_DevNodeW(pdndevinst: *mut u32, pdeviceid: P1, ulflags: CM_LOCATE_DEVNODE_FLAGS) -> CONFIGRET @@ -903,7 +903,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Locate_DevNodeW(pdndevinst : *mut u32, pdeviceid : windows_core::PCWSTR, ulflags : CM_LOCATE_DEVNODE_FLAGS) -> CONFIGRET); - CM_Locate_DevNodeW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(ulflags)) + CM_Locate_DevNodeW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Locate_DevNode_ExA(pdndevinst: *mut u32, pdeviceid: P1, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -911,7 +911,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Locate_DevNode_ExA(pdndevinst : *mut u32, pdeviceid : windows_core::PCSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Locate_DevNode_ExA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Locate_DevNode_ExA(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Locate_DevNode_ExW(pdndevinst: *mut u32, pdeviceid: P1, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -919,42 +919,42 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Locate_DevNode_ExW(pdndevinst : *mut u32, pdeviceid : windows_core::PCWSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Locate_DevNode_ExW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Locate_DevNode_ExW(core::mem::transmute(pdndevinst), pdeviceid.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_MapCrToWin32Err(cmreturncode: CONFIGRET, defaulterr: u32) -> u32 { windows_targets::link!("cfgmgr32.dll" "system" fn CM_MapCrToWin32Err(cmreturncode : CONFIGRET, defaulterr : u32) -> u32); - CM_MapCrToWin32Err(core::mem::transmute(cmreturncode), core::mem::transmute(defaulterr)) + CM_MapCrToWin32Err(cmreturncode, defaulterr) } #[inline] pub unsafe fn CM_Merge_Range_List(rlhold1: usize, rlhold2: usize, rlhnew: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Merge_Range_List(rlhold1 : usize, rlhold2 : usize, rlhnew : usize, ulflags : u32) -> CONFIGRET); - CM_Merge_Range_List(core::mem::transmute(rlhold1), core::mem::transmute(rlhold2), core::mem::transmute(rlhnew), core::mem::transmute(ulflags)) + CM_Merge_Range_List(rlhold1, rlhold2, rlhnew, ulflags) } #[inline] pub unsafe fn CM_Modify_Res_Des(prdresdes: *mut usize, rdresdes: usize, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Modify_Res_Des(prdresdes : *mut usize, rdresdes : usize, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, ulflags : u32) -> CONFIGRET); - CM_Modify_Res_Des(core::mem::transmute(prdresdes), core::mem::transmute(rdresdes), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(ulflags)) + CM_Modify_Res_Des(core::mem::transmute(prdresdes), rdresdes, resourceid, resourcedata, resourcelen, ulflags) } #[inline] pub unsafe fn CM_Modify_Res_Des_Ex(prdresdes: *mut usize, rdresdes: usize, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Modify_Res_Des_Ex(prdresdes : *mut usize, rdresdes : usize, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Modify_Res_Des_Ex(core::mem::transmute(prdresdes), core::mem::transmute(rdresdes), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Modify_Res_Des_Ex(core::mem::transmute(prdresdes), rdresdes, resourceid, resourcedata, resourcelen, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Move_DevNode(dnfromdevinst: u32, dntodevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Move_DevNode(dnfromdevinst : u32, dntodevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Move_DevNode(core::mem::transmute(dnfromdevinst), core::mem::transmute(dntodevinst), core::mem::transmute(ulflags)) + CM_Move_DevNode(dnfromdevinst, dntodevinst, ulflags) } #[inline] pub unsafe fn CM_Move_DevNode_Ex(dnfromdevinst: u32, dntodevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Move_DevNode_Ex(dnfromdevinst : u32, dntodevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Move_DevNode_Ex(core::mem::transmute(dnfromdevinst), core::mem::transmute(dntodevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Move_DevNode_Ex(dnfromdevinst, dntodevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Next_Range(preelement: *mut usize, pullstart: *mut u64, pullend: *mut u64, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Next_Range(preelement : *mut usize, pullstart : *mut u64, pullend : *mut u64, ulflags : u32) -> CONFIGRET); - CM_Next_Range(core::mem::transmute(preelement), core::mem::transmute(pullstart), core::mem::transmute(pullend), core::mem::transmute(ulflags)) + CM_Next_Range(core::mem::transmute(preelement), core::mem::transmute(pullstart), core::mem::transmute(pullend), ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -963,7 +963,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Class_KeyA(classguid : *const windows_core::GUID, pszclassname : windows_core::PCSTR, samdesired : u32, disposition : u32, phkclass : *mut super::super::System::Registry:: HKEY, ulflags : u32) -> CONFIGRET); - CM_Open_Class_KeyA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkclass), core::mem::transmute(ulflags)) + CM_Open_Class_KeyA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), samdesired, disposition, core::mem::transmute(phkclass), ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -972,7 +972,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Class_KeyW(classguid : *const windows_core::GUID, pszclassname : windows_core::PCWSTR, samdesired : u32, disposition : u32, phkclass : *mut super::super::System::Registry:: HKEY, ulflags : u32) -> CONFIGRET); - CM_Open_Class_KeyW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkclass), core::mem::transmute(ulflags)) + CM_Open_Class_KeyW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), samdesired, disposition, core::mem::transmute(phkclass), ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -981,7 +981,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Class_Key_ExA(classguid : *const windows_core::GUID, pszclassname : windows_core::PCSTR, samdesired : u32, disposition : u32, phkclass : *mut super::super::System::Registry:: HKEY, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Open_Class_Key_ExA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkclass), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Open_Class_Key_ExA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), samdesired, disposition, core::mem::transmute(phkclass), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -990,19 +990,19 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Class_Key_ExW(classguid : *const windows_core::GUID, pszclassname : windows_core::PCWSTR, samdesired : u32, disposition : u32, phkclass : *mut super::super::System::Registry:: HKEY, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Open_Class_Key_ExW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkclass), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Open_Class_Key_ExW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), pszclassname.param().abi(), samdesired, disposition, core::mem::transmute(phkclass), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_DevNode_Key(dndevnode: u32, samdesired: u32, ulhardwareprofile: u32, disposition: u32, phkdevice: *mut super::super::System::Registry::HKEY, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_DevNode_Key(dndevnode : u32, samdesired : u32, ulhardwareprofile : u32, disposition : u32, phkdevice : *mut super::super::System::Registry:: HKEY, ulflags : u32) -> CONFIGRET); - CM_Open_DevNode_Key(core::mem::transmute(dndevnode), core::mem::transmute(samdesired), core::mem::transmute(ulhardwareprofile), core::mem::transmute(disposition), core::mem::transmute(phkdevice), core::mem::transmute(ulflags)) + CM_Open_DevNode_Key(dndevnode, samdesired, ulhardwareprofile, disposition, core::mem::transmute(phkdevice), ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_DevNode_Key_Ex(dndevnode: u32, samdesired: u32, ulhardwareprofile: u32, disposition: u32, phkdevice: *mut super::super::System::Registry::HKEY, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_DevNode_Key_Ex(dndevnode : u32, samdesired : u32, ulhardwareprofile : u32, disposition : u32, phkdevice : *mut super::super::System::Registry:: HKEY, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Open_DevNode_Key_Ex(core::mem::transmute(dndevnode), core::mem::transmute(samdesired), core::mem::transmute(ulhardwareprofile), core::mem::transmute(disposition), core::mem::transmute(phkdevice), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Open_DevNode_Key_Ex(dndevnode, samdesired, ulhardwareprofile, disposition, core::mem::transmute(phkdevice), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1011,7 +1011,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Device_Interface_KeyA(pszdeviceinterface : windows_core::PCSTR, samdesired : u32, disposition : u32, phkdeviceinterface : *mut super::super::System::Registry:: HKEY, ulflags : u32) -> CONFIGRET); - CM_Open_Device_Interface_KeyA(pszdeviceinterface.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkdeviceinterface), core::mem::transmute(ulflags)) + CM_Open_Device_Interface_KeyA(pszdeviceinterface.param().abi(), samdesired, disposition, core::mem::transmute(phkdeviceinterface), ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1020,7 +1020,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Device_Interface_KeyW(pszdeviceinterface : windows_core::PCWSTR, samdesired : u32, disposition : u32, phkdeviceinterface : *mut super::super::System::Registry:: HKEY, ulflags : u32) -> CONFIGRET); - CM_Open_Device_Interface_KeyW(pszdeviceinterface.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkdeviceinterface), core::mem::transmute(ulflags)) + CM_Open_Device_Interface_KeyW(pszdeviceinterface.param().abi(), samdesired, disposition, core::mem::transmute(phkdeviceinterface), ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1029,7 +1029,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Device_Interface_Key_ExA(pszdeviceinterface : windows_core::PCSTR, samdesired : u32, disposition : u32, phkdeviceinterface : *mut super::super::System::Registry:: HKEY, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Open_Device_Interface_Key_ExA(pszdeviceinterface.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkdeviceinterface), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Open_Device_Interface_Key_ExA(pszdeviceinterface.param().abi(), samdesired, disposition, core::mem::transmute(phkdeviceinterface), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1038,82 +1038,82 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Open_Device_Interface_Key_ExW(pszdeviceinterface : windows_core::PCWSTR, samdesired : u32, disposition : u32, phkdeviceinterface : *mut super::super::System::Registry:: HKEY, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Open_Device_Interface_Key_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(disposition), core::mem::transmute(phkdeviceinterface), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Open_Device_Interface_Key_ExW(pszdeviceinterface.param().abi(), samdesired, disposition, core::mem::transmute(phkdeviceinterface), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Query_And_Remove_SubTreeA(dnancestor: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u8]>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_And_Remove_SubTreeA(dnancestor : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PSTR, ulnamelength : u32, ulflags : u32) -> CONFIGRET); - CM_Query_And_Remove_SubTreeA(core::mem::transmute(dnancestor), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Query_And_Remove_SubTreeA(dnancestor, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[inline] pub unsafe fn CM_Query_And_Remove_SubTreeW(dnancestor: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u16]>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_And_Remove_SubTreeW(dnancestor : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PWSTR, ulnamelength : u32, ulflags : u32) -> CONFIGRET); - CM_Query_And_Remove_SubTreeW(core::mem::transmute(dnancestor), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Query_And_Remove_SubTreeW(dnancestor, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[inline] pub unsafe fn CM_Query_And_Remove_SubTree_ExA(dnancestor: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u8]>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_And_Remove_SubTree_ExA(dnancestor : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PSTR, ulnamelength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Query_And_Remove_SubTree_ExA(core::mem::transmute(dnancestor), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Query_And_Remove_SubTree_ExA(dnancestor, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Query_And_Remove_SubTree_ExW(dnancestor: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u16]>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_And_Remove_SubTree_ExW(dnancestor : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PWSTR, ulnamelength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Query_And_Remove_SubTree_ExW(core::mem::transmute(dnancestor), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Query_And_Remove_SubTree_ExW(dnancestor, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Query_Arbitrator_Free_Data(pdata: *mut core::ffi::c_void, datalen: u32, dndevinst: u32, resourceid: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Arbitrator_Free_Data(pdata : *mut core::ffi::c_void, datalen : u32, dndevinst : u32, resourceid : u32, ulflags : u32) -> CONFIGRET); - CM_Query_Arbitrator_Free_Data(core::mem::transmute(pdata), core::mem::transmute(datalen), core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(ulflags)) + CM_Query_Arbitrator_Free_Data(core::mem::transmute(pdata), datalen, dndevinst, resourceid, ulflags) } #[inline] pub unsafe fn CM_Query_Arbitrator_Free_Data_Ex(pdata: *mut core::ffi::c_void, datalen: u32, dndevinst: u32, resourceid: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Arbitrator_Free_Data_Ex(pdata : *mut core::ffi::c_void, datalen : u32, dndevinst : u32, resourceid : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Query_Arbitrator_Free_Data_Ex(core::mem::transmute(pdata), core::mem::transmute(datalen), core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Query_Arbitrator_Free_Data_Ex(core::mem::transmute(pdata), datalen, dndevinst, resourceid, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Query_Arbitrator_Free_Size(pulsize: *mut u32, dndevinst: u32, resourceid: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Arbitrator_Free_Size(pulsize : *mut u32, dndevinst : u32, resourceid : u32, ulflags : u32) -> CONFIGRET); - CM_Query_Arbitrator_Free_Size(core::mem::transmute(pulsize), core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(ulflags)) + CM_Query_Arbitrator_Free_Size(core::mem::transmute(pulsize), dndevinst, resourceid, ulflags) } #[inline] pub unsafe fn CM_Query_Arbitrator_Free_Size_Ex(pulsize: *mut u32, dndevinst: u32, resourceid: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Arbitrator_Free_Size_Ex(pulsize : *mut u32, dndevinst : u32, resourceid : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Query_Arbitrator_Free_Size_Ex(core::mem::transmute(pulsize), core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Query_Arbitrator_Free_Size_Ex(core::mem::transmute(pulsize), dndevinst, resourceid, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Query_Remove_SubTree(dnancestor: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Remove_SubTree(dnancestor : u32, ulflags : u32) -> CONFIGRET); - CM_Query_Remove_SubTree(core::mem::transmute(dnancestor), core::mem::transmute(ulflags)) + CM_Query_Remove_SubTree(dnancestor, ulflags) } #[inline] pub unsafe fn CM_Query_Remove_SubTree_Ex(dnancestor: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Remove_SubTree_Ex(dnancestor : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Query_Remove_SubTree_Ex(core::mem::transmute(dnancestor), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Query_Remove_SubTree_Ex(dnancestor, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Query_Resource_Conflict_List(pclconflictlist: *mut usize, dndevinst: u32, resourceid: CM_RESTYPE, resourcedata: *const core::ffi::c_void, resourcelen: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Query_Resource_Conflict_List(pclconflictlist : *mut usize, dndevinst : u32, resourceid : CM_RESTYPE, resourcedata : *const core::ffi::c_void, resourcelen : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Query_Resource_Conflict_List(core::mem::transmute(pclconflictlist), core::mem::transmute(dndevinst), core::mem::transmute(resourceid), core::mem::transmute(resourcedata), core::mem::transmute(resourcelen), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Query_Resource_Conflict_List(core::mem::transmute(pclconflictlist), dndevinst, resourceid, resourcedata, resourcelen, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Reenumerate_DevNode(dndevinst: u32, ulflags: CM_REENUMERATE_FLAGS) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Reenumerate_DevNode(dndevinst : u32, ulflags : CM_REENUMERATE_FLAGS) -> CONFIGRET); - CM_Reenumerate_DevNode(core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Reenumerate_DevNode(dndevinst, ulflags) } #[inline] pub unsafe fn CM_Reenumerate_DevNode_Ex(dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Reenumerate_DevNode_Ex(dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Reenumerate_DevNode_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Reenumerate_DevNode_Ex(dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Register_Device_Driver(dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Device_Driver(dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Register_Device_Driver(core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Register_Device_Driver(dndevinst, ulflags) } #[inline] pub unsafe fn CM_Register_Device_Driver_Ex(dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Device_Driver_Ex(dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Register_Device_Driver_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Register_Device_Driver_Ex(dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Register_Device_InterfaceA(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P2, pszdeviceinterface: windows_core::PSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET @@ -1121,7 +1121,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Device_InterfaceA(dndevinst : u32, interfaceclassguid : *const windows_core::GUID, pszreference : windows_core::PCSTR, pszdeviceinterface : windows_core::PSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Register_Device_InterfaceA(core::mem::transmute(dndevinst), core::mem::transmute(interfaceclassguid), pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Register_Device_InterfaceA(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Register_Device_InterfaceW(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P2, pszdeviceinterface: windows_core::PWSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET @@ -1129,7 +1129,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Device_InterfaceW(dndevinst : u32, interfaceclassguid : *const windows_core::GUID, pszreference : windows_core::PCWSTR, pszdeviceinterface : windows_core::PWSTR, pullength : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Register_Device_InterfaceW(core::mem::transmute(dndevinst), core::mem::transmute(interfaceclassguid), pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags)) + CM_Register_Device_InterfaceW(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), ulflags) } #[inline] pub unsafe fn CM_Register_Device_Interface_ExA(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P2, pszdeviceinterface: windows_core::PSTR, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -1137,7 +1137,7 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Device_Interface_ExA(dndevinst : u32, interfaceclassguid : *const windows_core::GUID, pszreference : windows_core::PCSTR, pszdeviceinterface : windows_core::PSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Register_Device_Interface_ExA(core::mem::transmute(dndevinst), core::mem::transmute(interfaceclassguid), pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Register_Device_Interface_ExA(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Register_Device_Interface_ExW(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P2, pszdeviceinterface: windows_core::PWSTR, pullength: *mut u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -1145,42 +1145,42 @@ where P2: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Device_Interface_ExW(dndevinst : u32, interfaceclassguid : *const windows_core::GUID, pszreference : windows_core::PCWSTR, pszdeviceinterface : windows_core::PWSTR, pullength : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Register_Device_Interface_ExW(core::mem::transmute(dndevinst), core::mem::transmute(interfaceclassguid), pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Register_Device_Interface_ExW(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), core::mem::transmute(pullength), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Register_Notification(pfilter: *const CM_NOTIFY_FILTER, pcontext: Option<*const core::ffi::c_void>, pcallback: PCM_NOTIFY_CALLBACK, pnotifycontext: *mut HCMNOTIFICATION) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Register_Notification(pfilter : *const CM_NOTIFY_FILTER, pcontext : *const core::ffi::c_void, pcallback : PCM_NOTIFY_CALLBACK, pnotifycontext : *mut HCMNOTIFICATION) -> CONFIGRET); - CM_Register_Notification(core::mem::transmute(pfilter), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcallback), core::mem::transmute(pnotifycontext)) + CM_Register_Notification(pfilter, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), pcallback, core::mem::transmute(pnotifycontext)) } #[inline] pub unsafe fn CM_Remove_SubTree(dnancestor: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Remove_SubTree(dnancestor : u32, ulflags : u32) -> CONFIGRET); - CM_Remove_SubTree(core::mem::transmute(dnancestor), core::mem::transmute(ulflags)) + CM_Remove_SubTree(dnancestor, ulflags) } #[inline] pub unsafe fn CM_Remove_SubTree_Ex(dnancestor: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Remove_SubTree_Ex(dnancestor : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Remove_SubTree_Ex(core::mem::transmute(dnancestor), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Remove_SubTree_Ex(dnancestor, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Request_Device_EjectA(dndevinst: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u8]>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Request_Device_EjectA(dndevinst : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PSTR, ulnamelength : u32, ulflags : u32) -> CONFIGRET); - CM_Request_Device_EjectA(core::mem::transmute(dndevinst), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Request_Device_EjectA(dndevinst, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[inline] pub unsafe fn CM_Request_Device_EjectW(dndevinst: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u16]>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Request_Device_EjectW(dndevinst : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PWSTR, ulnamelength : u32, ulflags : u32) -> CONFIGRET); - CM_Request_Device_EjectW(core::mem::transmute(dndevinst), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Request_Device_EjectW(dndevinst, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[inline] pub unsafe fn CM_Request_Device_Eject_ExA(dndevinst: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u8]>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Request_Device_Eject_ExA(dndevinst : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PSTR, ulnamelength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Request_Device_Eject_ExA(core::mem::transmute(dndevinst), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Request_Device_Eject_ExA(dndevinst, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Request_Device_Eject_ExW(dndevinst: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u16]>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Request_Device_Eject_ExW(dndevinst : u32, pvetotype : *mut PNP_VETO_TYPE, pszvetoname : windows_core::PWSTR, ulnamelength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Request_Device_Eject_ExW(core::mem::transmute(dndevinst), core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Request_Device_Eject_ExW(dndevinst, core::mem::transmute(pvetotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszvetoname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszvetoname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Request_Eject_PC() -> CONFIGRET { @@ -1195,76 +1195,76 @@ pub unsafe fn CM_Request_Eject_PC_Ex(hmachine: Option) -> CONFIGRET { #[inline] pub unsafe fn CM_Run_Detection(ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Run_Detection(ulflags : u32) -> CONFIGRET); - CM_Run_Detection(core::mem::transmute(ulflags)) + CM_Run_Detection(ulflags) } #[inline] pub unsafe fn CM_Run_Detection_Ex(ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Run_Detection_Ex(ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Run_Detection_Ex(core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Run_Detection_Ex(ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Set_Class_PropertyW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Class_PropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32) -> CONFIGRET); - CM_Set_Class_PropertyW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Set_Class_PropertyW(classguid, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Set_Class_Property_ExW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Class_Property_ExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_Class_Property_ExW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_Class_Property_ExW(classguid, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_Class_Registry_PropertyA(classguid: *const windows_core::GUID, ulproperty: u32, buffer: Option<*const core::ffi::c_void>, ullength: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Class_Registry_PropertyA(classguid : *const windows_core::GUID, ulproperty : u32, buffer : *const core::ffi::c_void, ullength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_Class_Registry_PropertyA(core::mem::transmute(classguid), core::mem::transmute(ulproperty), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_Class_Registry_PropertyA(classguid, ulproperty, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), ullength, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_Class_Registry_PropertyW(classguid: *const windows_core::GUID, ulproperty: u32, buffer: Option<*const core::ffi::c_void>, ullength: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Class_Registry_PropertyW(classguid : *const windows_core::GUID, ulproperty : u32, buffer : *const core::ffi::c_void, ullength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_Class_Registry_PropertyW(core::mem::transmute(classguid), core::mem::transmute(ulproperty), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_Class_Registry_PropertyW(classguid, ulproperty, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), ullength, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_DevNode_Problem(dndevinst: u32, ulproblem: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Problem(dndevinst : u32, ulproblem : u32, ulflags : u32) -> CONFIGRET); - CM_Set_DevNode_Problem(core::mem::transmute(dndevinst), core::mem::transmute(ulproblem), core::mem::transmute(ulflags)) + CM_Set_DevNode_Problem(dndevinst, ulproblem, ulflags) } #[inline] pub unsafe fn CM_Set_DevNode_Problem_Ex(dndevinst: u32, ulproblem: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Problem_Ex(dndevinst : u32, ulproblem : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_DevNode_Problem_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulproblem), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_DevNode_Problem_Ex(dndevinst, ulproblem, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Set_DevNode_PropertyW(dndevinst: u32, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_PropertyW(dndevinst : u32, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32) -> CONFIGRET); - CM_Set_DevNode_PropertyW(core::mem::transmute(dndevinst), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Set_DevNode_PropertyW(dndevinst, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Set_DevNode_Property_ExW(dndevinst: u32, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Property_ExW(dndevinst : u32, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_DevNode_Property_ExW(core::mem::transmute(dndevinst), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_DevNode_Property_ExW(dndevinst, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_DevNode_Registry_PropertyA(dndevinst: u32, ulproperty: u32, buffer: Option<*const core::ffi::c_void>, ullength: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Registry_PropertyA(dndevinst : u32, ulproperty : u32, buffer : *const core::ffi::c_void, ullength : u32, ulflags : u32) -> CONFIGRET); - CM_Set_DevNode_Registry_PropertyA(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullength), core::mem::transmute(ulflags)) + CM_Set_DevNode_Registry_PropertyA(dndevinst, ulproperty, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), ullength, ulflags) } #[inline] pub unsafe fn CM_Set_DevNode_Registry_PropertyW(dndevinst: u32, ulproperty: u32, buffer: Option<*const core::ffi::c_void>, ullength: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Registry_PropertyW(dndevinst : u32, ulproperty : u32, buffer : *const core::ffi::c_void, ullength : u32, ulflags : u32) -> CONFIGRET); - CM_Set_DevNode_Registry_PropertyW(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullength), core::mem::transmute(ulflags)) + CM_Set_DevNode_Registry_PropertyW(dndevinst, ulproperty, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), ullength, ulflags) } #[inline] pub unsafe fn CM_Set_DevNode_Registry_Property_ExA(dndevinst: u32, ulproperty: u32, buffer: Option<*const core::ffi::c_void>, ullength: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Registry_Property_ExA(dndevinst : u32, ulproperty : u32, buffer : *const core::ffi::c_void, ullength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_DevNode_Registry_Property_ExA(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_DevNode_Registry_Property_ExA(dndevinst, ulproperty, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), ullength, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_DevNode_Registry_Property_ExW(dndevinst: u32, ulproperty: u32, buffer: Option<*const core::ffi::c_void>, ullength: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_DevNode_Registry_Property_ExW(dndevinst : u32, ulproperty : u32, buffer : *const core::ffi::c_void, ullength : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_DevNode_Registry_Property_ExW(core::mem::transmute(dndevinst), core::mem::transmute(ulproperty), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullength), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_DevNode_Registry_Property_ExW(dndevinst, ulproperty, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), ullength, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -1273,7 +1273,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Device_Interface_PropertyW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32) -> CONFIGRET); - CM_Set_Device_Interface_PropertyW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags)) + CM_Set_Device_Interface_PropertyW(pszdeviceinterface.param().abi(), propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -1282,17 +1282,17 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Device_Interface_Property_ExW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_Device_Interface_Property_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_Device_Interface_Property_ExW(pszdeviceinterface.param().abi(), propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_HW_Prof(ulhardwareprofile: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_HW_Prof(ulhardwareprofile : u32, ulflags : u32) -> CONFIGRET); - CM_Set_HW_Prof(core::mem::transmute(ulhardwareprofile), core::mem::transmute(ulflags)) + CM_Set_HW_Prof(ulhardwareprofile, ulflags) } #[inline] pub unsafe fn CM_Set_HW_Prof_Ex(ulhardwareprofile: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_HW_Prof_Ex(ulhardwareprofile : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_HW_Prof_Ex(core::mem::transmute(ulhardwareprofile), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_HW_Prof_Ex(ulhardwareprofile, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_HW_Prof_FlagsA(pdeviceid: P0, ulconfig: u32, ulvalue: u32, ulflags: u32) -> CONFIGRET @@ -1300,7 +1300,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_HW_Prof_FlagsA(pdeviceid : windows_core::PCSTR, ulconfig : u32, ulvalue : u32, ulflags : u32) -> CONFIGRET); - CM_Set_HW_Prof_FlagsA(pdeviceid.param().abi(), core::mem::transmute(ulconfig), core::mem::transmute(ulvalue), core::mem::transmute(ulflags)) + CM_Set_HW_Prof_FlagsA(pdeviceid.param().abi(), ulconfig, ulvalue, ulflags) } #[inline] pub unsafe fn CM_Set_HW_Prof_FlagsW(pdeviceid: P0, ulconfig: u32, ulvalue: u32, ulflags: u32) -> CONFIGRET @@ -1308,7 +1308,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_HW_Prof_FlagsW(pdeviceid : windows_core::PCWSTR, ulconfig : u32, ulvalue : u32, ulflags : u32) -> CONFIGRET); - CM_Set_HW_Prof_FlagsW(pdeviceid.param().abi(), core::mem::transmute(ulconfig), core::mem::transmute(ulvalue), core::mem::transmute(ulflags)) + CM_Set_HW_Prof_FlagsW(pdeviceid.param().abi(), ulconfig, ulvalue, ulflags) } #[inline] pub unsafe fn CM_Set_HW_Prof_Flags_ExA(pdeviceid: P0, ulconfig: u32, ulvalue: u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -1316,7 +1316,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_HW_Prof_Flags_ExA(pdeviceid : windows_core::PCSTR, ulconfig : u32, ulvalue : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_HW_Prof_Flags_ExA(pdeviceid.param().abi(), core::mem::transmute(ulconfig), core::mem::transmute(ulvalue), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_HW_Prof_Flags_ExA(pdeviceid.param().abi(), ulconfig, ulvalue, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Set_HW_Prof_Flags_ExW(pdeviceid: P0, ulconfig: u32, ulvalue: u32, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -1324,32 +1324,32 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_HW_Prof_Flags_ExW(pdeviceid : windows_core::PCWSTR, ulconfig : u32, ulvalue : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_HW_Prof_Flags_ExW(pdeviceid.param().abi(), core::mem::transmute(ulconfig), core::mem::transmute(ulvalue), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Set_HW_Prof_Flags_ExW(pdeviceid.param().abi(), ulconfig, ulvalue, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Setup_DevNode(dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Setup_DevNode(dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Setup_DevNode(core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Setup_DevNode(dndevinst, ulflags) } #[inline] pub unsafe fn CM_Setup_DevNode_Ex(dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Setup_DevNode_Ex(dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Setup_DevNode_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Setup_DevNode_Ex(dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Test_Range_Available(ullstartvalue: u64, ullendvalue: u64, rlh: usize, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Test_Range_Available(ullstartvalue : u64, ullendvalue : u64, rlh : usize, ulflags : u32) -> CONFIGRET); - CM_Test_Range_Available(core::mem::transmute(ullstartvalue), core::mem::transmute(ullendvalue), core::mem::transmute(rlh), core::mem::transmute(ulflags)) + CM_Test_Range_Available(ullstartvalue, ullendvalue, rlh, ulflags) } #[inline] pub unsafe fn CM_Uninstall_DevNode(dndevinst: u32, ulflags: u32) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Uninstall_DevNode(dndevinst : u32, ulflags : u32) -> CONFIGRET); - CM_Uninstall_DevNode(core::mem::transmute(dndevinst), core::mem::transmute(ulflags)) + CM_Uninstall_DevNode(dndevinst, ulflags) } #[inline] pub unsafe fn CM_Uninstall_DevNode_Ex(dndevinst: u32, ulflags: u32, hmachine: Option) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Uninstall_DevNode_Ex(dndevinst : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Uninstall_DevNode_Ex(core::mem::transmute(dndevinst), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Uninstall_DevNode_Ex(dndevinst, ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Unregister_Device_InterfaceA(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET @@ -1357,7 +1357,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Unregister_Device_InterfaceA(pszdeviceinterface : windows_core::PCSTR, ulflags : u32) -> CONFIGRET); - CM_Unregister_Device_InterfaceA(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags)) + CM_Unregister_Device_InterfaceA(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Unregister_Device_InterfaceW(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET @@ -1365,7 +1365,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Unregister_Device_InterfaceW(pszdeviceinterface : windows_core::PCWSTR, ulflags : u32) -> CONFIGRET); - CM_Unregister_Device_InterfaceW(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags)) + CM_Unregister_Device_InterfaceW(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Unregister_Device_Interface_ExA(pszdeviceinterface: P0, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -1373,7 +1373,7 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Unregister_Device_Interface_ExA(pszdeviceinterface : windows_core::PCSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Unregister_Device_Interface_ExA(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Unregister_Device_Interface_ExA(pszdeviceinterface.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Unregister_Device_Interface_ExW(pszdeviceinterface: P0, ulflags: u32, hmachine: Option) -> CONFIGRET @@ -1381,17 +1381,17 @@ where P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Unregister_Device_Interface_ExW(pszdeviceinterface : windows_core::PCWSTR, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Unregister_Device_Interface_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) + CM_Unregister_Device_Interface_ExW(pszdeviceinterface.param().abi(), ulflags, core::mem::transmute(hmachine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CM_Unregister_Notification(notifycontext: HCMNOTIFICATION) -> CONFIGRET { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Unregister_Notification(notifycontext : HCMNOTIFICATION) -> CONFIGRET); - CM_Unregister_Notification(core::mem::transmute(notifycontext)) + CM_Unregister_Notification(notifycontext) } #[inline] pub unsafe fn DiInstallDevice(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, driverinfodata: Option<*const SP_DRVINFO_DATA_V2_W>, flags: DIINSTALLDEVICE_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("newdev.dll" "system" fn DiInstallDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, flags : DIINSTALLDEVICE_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiInstallDevice(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(driverinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiInstallDevice(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), deviceinfoset, deviceinfodata, core::mem::transmute(driverinfodata.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiInstallDriverA(hwndparent: Option, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> @@ -1399,7 +1399,7 @@ where P1: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn DiInstallDriverA(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCSTR, flags : DIINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiInstallDriverA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiInstallDriverA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiInstallDriverW(hwndparent: Option, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> @@ -1407,17 +1407,17 @@ where P1: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn DiInstallDriverW(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCWSTR, flags : DIINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiInstallDriverW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiInstallDriverW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiRollbackDriver(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, hwndparent: Option, flags: DIROLLBACKDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("newdev.dll" "system" fn DiRollbackDriver(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, hwndparent : super::super::Foundation:: HWND, flags : DIROLLBACKDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiRollbackDriver(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiRollbackDriver(deviceinfoset, deviceinfodata, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiShowUpdateDevice(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("newdev.dll" "system" fn DiShowUpdateDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, flags : u32, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiShowUpdateDevice(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiShowUpdateDevice(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), deviceinfoset, deviceinfodata, flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiShowUpdateDriver(hwndparent: Option, filepath: P1, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> super::super::Foundation::BOOL @@ -1425,12 +1425,12 @@ where P1: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn DiShowUpdateDriver(hwndparent : super::super::Foundation:: HWND, filepath : windows_core::PCWSTR, flags : u32, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiShowUpdateDriver(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), filepath.param().abi(), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))) + DiShowUpdateDriver(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), filepath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DiUninstallDevice(hwndparent: super::super::Foundation::HWND, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("newdev.dll" "system" fn DiUninstallDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, flags : u32, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiUninstallDevice(core::mem::transmute(hwndparent), core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiUninstallDevice(hwndparent, deviceinfoset, deviceinfodata, flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiUninstallDriverA(hwndparent: Option, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> @@ -1438,7 +1438,7 @@ where P1: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn DiUninstallDriverA(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCSTR, flags : DIUNINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiUninstallDriverA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiUninstallDriverA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DiUninstallDriverW(hwndparent: Option, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> @@ -1446,7 +1446,7 @@ where P1: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn DiUninstallDriverW(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCWSTR, flags : DIUNINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DiUninstallDriverW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), core::mem::transmute(flags), core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() + DiUninstallDriverW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InstallHinfSectionA(window: super::super::Foundation::HWND, modulehandle: super::super::Foundation::HINSTANCE, commandline: P2, showcommand: i32) @@ -1454,7 +1454,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn InstallHinfSectionA(window : super::super::Foundation:: HWND, modulehandle : super::super::Foundation:: HINSTANCE, commandline : windows_core::PCSTR, showcommand : i32)); - InstallHinfSectionA(core::mem::transmute(window), core::mem::transmute(modulehandle), commandline.param().abi(), core::mem::transmute(showcommand)) + InstallHinfSectionA(window, modulehandle, commandline.param().abi(), showcommand) } #[inline] pub unsafe fn InstallHinfSectionW(window: super::super::Foundation::HWND, modulehandle: super::super::Foundation::HINSTANCE, commandline: P2, showcommand: i32) @@ -1462,7 +1462,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn InstallHinfSectionW(window : super::super::Foundation:: HWND, modulehandle : super::super::Foundation:: HINSTANCE, commandline : windows_core::PCWSTR, showcommand : i32)); - InstallHinfSectionW(core::mem::transmute(window), core::mem::transmute(modulehandle), commandline.param().abi(), core::mem::transmute(showcommand)) + InstallHinfSectionW(window, modulehandle, commandline.param().abi(), showcommand) } #[inline] pub unsafe fn SetupAddInstallSectionToDiskSpaceListA(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, layoutinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1470,7 +1470,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddInstallSectionToDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAddInstallSectionToDiskSpaceListA(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAddInstallSectionToDiskSpaceListA(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAddInstallSectionToDiskSpaceListW(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, layoutinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1478,7 +1478,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddInstallSectionToDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAddInstallSectionToDiskSpaceListW(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAddInstallSectionToDiskSpaceListW(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAddSectionToDiskSpaceListA(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1486,7 +1486,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddSectionToDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAddSectionToDiskSpaceListA(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAddSectionToDiskSpaceListA(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAddSectionToDiskSpaceListW(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1494,7 +1494,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddSectionToDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAddSectionToDiskSpaceListW(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAddSectionToDiskSpaceListW(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAddToDiskSpaceListA(diskspace: *const core::ffi::c_void, targetfilespec: P1, filesize: i64, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1502,7 +1502,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddToDiskSpaceListA(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCSTR, filesize : i64, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAddToDiskSpaceListA(core::mem::transmute(diskspace), targetfilespec.param().abi(), core::mem::transmute(filesize), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAddToDiskSpaceListA(diskspace, targetfilespec.param().abi(), filesize, operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAddToDiskSpaceListW(diskspace: *const core::ffi::c_void, targetfilespec: P1, filesize: i64, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1510,7 +1510,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddToDiskSpaceListW(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCWSTR, filesize : i64, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAddToDiskSpaceListW(core::mem::transmute(diskspace), targetfilespec.param().abi(), core::mem::transmute(filesize), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAddToDiskSpaceListW(diskspace, targetfilespec.param().abi(), filesize, operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAddToSourceListA(flags: u32, source: P1) -> windows_core::Result<()> @@ -1518,7 +1518,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListA(flags : u32, source : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupAddToSourceListA(core::mem::transmute(flags), source.param().abi()).ok() + SetupAddToSourceListA(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupAddToSourceListW(flags: u32, source: P1) -> windows_core::Result<()> @@ -1526,7 +1526,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListW(flags : u32, source : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupAddToSourceListW(core::mem::transmute(flags), source.param().abi()).ok() + SetupAddToSourceListW(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupAdjustDiskSpaceListA(diskspace: *const core::ffi::c_void, driveroot: P1, amount: i64, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1534,7 +1534,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAdjustDiskSpaceListA(diskspace : *const core::ffi::c_void, driveroot : windows_core::PCSTR, amount : i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAdjustDiskSpaceListA(core::mem::transmute(diskspace), driveroot.param().abi(), core::mem::transmute(amount), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAdjustDiskSpaceListA(diskspace, driveroot.param().abi(), amount, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupAdjustDiskSpaceListW(diskspace: *const core::ffi::c_void, driveroot: P1, amount: i64, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -1542,7 +1542,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAdjustDiskSpaceListW(diskspace : *const core::ffi::c_void, driveroot : windows_core::PCWSTR, amount : i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupAdjustDiskSpaceListW(core::mem::transmute(diskspace), driveroot.param().abi(), core::mem::transmute(amount), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupAdjustDiskSpaceListW(diskspace, driveroot.param().abi(), amount, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupBackupErrorA(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 @@ -1552,7 +1552,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupBackupErrorA(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCSTR, sourcefile : windows_core::PCSTR, targetfile : windows_core::PCSTR, win32errorcode : u32, style : u32) -> u32); - SetupBackupErrorA(core::mem::transmute(hwndparent), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style)) + SetupBackupErrorA(hwndparent, dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupBackupErrorW(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 @@ -1562,7 +1562,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupBackupErrorW(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCWSTR, sourcefile : windows_core::PCWSTR, targetfile : windows_core::PCWSTR, win32errorcode : u32, style : u32) -> u32); - SetupBackupErrorW(core::mem::transmute(hwndparent), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style)) + SetupBackupErrorW(hwndparent, dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupCancelTemporarySourceList() -> windows_core::Result<()> { @@ -1572,12 +1572,12 @@ pub unsafe fn SetupCancelTemporarySourceList() -> windows_core::Result<()> { #[inline] pub unsafe fn SetupCloseFileQueue(queuehandle: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("setupapi.dll" "system" fn SetupCloseFileQueue(queuehandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupCloseFileQueue(core::mem::transmute(queuehandle)) + SetupCloseFileQueue(queuehandle) } #[inline] pub unsafe fn SetupCloseInfFile(infhandle: *const core::ffi::c_void) { windows_targets::link!("setupapi.dll" "system" fn SetupCloseInfFile(infhandle : *const core::ffi::c_void)); - SetupCloseInfFile(core::mem::transmute(infhandle)) + SetupCloseInfFile(infhandle) } #[inline] pub unsafe fn SetupCloseLog() { @@ -1587,12 +1587,12 @@ pub unsafe fn SetupCloseLog() { #[inline] pub unsafe fn SetupCommitFileQueueA(owner: Option, queuehandle: *const core::ffi::c_void, msghandler: PSP_FILE_CALLBACK_A, context: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupCommitFileQueueA(owner : super::super::Foundation:: HWND, queuehandle : *const core::ffi::c_void, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupCommitFileQueueA(core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), core::mem::transmute(queuehandle), core::mem::transmute(msghandler), core::mem::transmute(context)).ok() + SetupCommitFileQueueA(core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), queuehandle, msghandler, context).ok() } #[inline] pub unsafe fn SetupCommitFileQueueW(owner: Option, queuehandle: *const core::ffi::c_void, msghandler: PSP_FILE_CALLBACK_W, context: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupCommitFileQueueW(owner : super::super::Foundation:: HWND, queuehandle : *const core::ffi::c_void, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupCommitFileQueueW(core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), core::mem::transmute(queuehandle), core::mem::transmute(msghandler), core::mem::transmute(context)).ok() + SetupCommitFileQueueW(core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), queuehandle, msghandler, context).ok() } #[inline] pub unsafe fn SetupConfigureWmiFromInfSectionA(infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32) -> super::super::Foundation::BOOL @@ -1600,7 +1600,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupConfigureWmiFromInfSectionA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : u32) -> super::super::Foundation:: BOOL); - SetupConfigureWmiFromInfSectionA(core::mem::transmute(infhandle), sectionname.param().abi(), core::mem::transmute(flags)) + SetupConfigureWmiFromInfSectionA(infhandle, sectionname.param().abi(), flags) } #[inline] pub unsafe fn SetupConfigureWmiFromInfSectionW(infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32) -> super::super::Foundation::BOOL @@ -1608,7 +1608,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupConfigureWmiFromInfSectionW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - SetupConfigureWmiFromInfSectionW(core::mem::transmute(infhandle), sectionname.param().abi(), core::mem::transmute(flags)) + SetupConfigureWmiFromInfSectionW(infhandle, sectionname.param().abi(), flags) } #[inline] pub unsafe fn SetupCopyErrorA(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, diskname: P2, pathtosource: P3, sourcefile: P4, targetpathfile: P5, win32errorcode: u32, style: u32, pathbuffer: Option<&mut [u8]>, pathrequiredsize: Option<*mut u32>) -> u32 @@ -1620,7 +1620,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupCopyErrorA(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCSTR, diskname : windows_core::PCSTR, pathtosource : windows_core::PCSTR, sourcefile : windows_core::PCSTR, targetpathfile : windows_core::PCSTR, win32errorcode : u32, style : u32, pathbuffer : windows_core::PSTR, pathbuffersize : u32, pathrequiredsize : *mut u32) -> u32); - SetupCopyErrorA(core::mem::transmute(hwndparent), dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), sourcefile.param().abi(), targetpathfile.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style), core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) + SetupCopyErrorA(hwndparent, dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), sourcefile.param().abi(), targetpathfile.param().abi(), win32errorcode, style, core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupCopyErrorW(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, diskname: P2, pathtosource: P3, sourcefile: P4, targetpathfile: P5, win32errorcode: u32, style: u32, pathbuffer: Option<&mut [u16]>, pathrequiredsize: Option<*mut u32>) -> u32 @@ -1632,7 +1632,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupCopyErrorW(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCWSTR, diskname : windows_core::PCWSTR, pathtosource : windows_core::PCWSTR, sourcefile : windows_core::PCWSTR, targetpathfile : windows_core::PCWSTR, win32errorcode : u32, style : u32, pathbuffer : windows_core::PWSTR, pathbuffersize : u32, pathrequiredsize : *mut u32) -> u32); - SetupCopyErrorW(core::mem::transmute(hwndparent), dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), sourcefile.param().abi(), targetpathfile.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style), core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) + SetupCopyErrorW(hwndparent, dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), sourcefile.param().abi(), targetpathfile.param().abi(), win32errorcode, style, core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupCopyOEMInfA(sourceinffilename: P0, oemsourcemedialocation: P1, oemsourcemediatype: OEM_SOURCE_MEDIA_TYPE, copystyle: SP_COPY_STYLE, destinationinffilename: Option<&mut [u8]>, requiredsize: Option<*mut u32>, destinationinffilenamecomponent: Option<*mut windows_core::PSTR>) -> windows_core::Result<()> @@ -1641,17 +1641,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupCopyOEMInfA(sourceinffilename : windows_core::PCSTR, oemsourcemedialocation : windows_core::PCSTR, oemsourcemediatype : OEM_SOURCE_MEDIA_TYPE, copystyle : SP_COPY_STYLE, destinationinffilename : windows_core::PSTR, destinationinffilenamesize : u32, requiredsize : *mut u32, destinationinffilenamecomponent : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); - SetupCopyOEMInfA( - sourceinffilename.param().abi(), - oemsourcemedialocation.param().abi(), - core::mem::transmute(oemsourcemediatype), - core::mem::transmute(copystyle), - core::mem::transmute(destinationinffilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - destinationinffilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(destinationinffilenamecomponent.unwrap_or(core::mem::zeroed())), - ) - .ok() + SetupCopyOEMInfA(sourceinffilename.param().abi(), oemsourcemedialocation.param().abi(), oemsourcemediatype, copystyle, core::mem::transmute(destinationinffilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), destinationinffilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(destinationinffilenamecomponent.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupCopyOEMInfW(sourceinffilename: P0, oemsourcemedialocation: P1, oemsourcemediatype: OEM_SOURCE_MEDIA_TYPE, copystyle: SP_COPY_STYLE, destinationinffilename: Option<&mut [u16]>, requiredsize: Option<*mut u32>, destinationinffilenamecomponent: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -1660,27 +1650,17 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupCopyOEMInfW(sourceinffilename : windows_core::PCWSTR, oemsourcemedialocation : windows_core::PCWSTR, oemsourcemediatype : OEM_SOURCE_MEDIA_TYPE, copystyle : SP_COPY_STYLE, destinationinffilename : windows_core::PWSTR, destinationinffilenamesize : u32, requiredsize : *mut u32, destinationinffilenamecomponent : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - SetupCopyOEMInfW( - sourceinffilename.param().abi(), - oemsourcemedialocation.param().abi(), - core::mem::transmute(oemsourcemediatype), - core::mem::transmute(copystyle), - core::mem::transmute(destinationinffilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - destinationinffilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(destinationinffilenamecomponent.unwrap_or(core::mem::zeroed())), - ) - .ok() + SetupCopyOEMInfW(sourceinffilename.param().abi(), oemsourcemedialocation.param().abi(), oemsourcemediatype, copystyle, core::mem::transmute(destinationinffilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), destinationinffilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(destinationinffilenamecomponent.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupCreateDiskSpaceListA(reserved1: Option<*const core::ffi::c_void>, reserved2: Option, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("setupapi.dll" "system" fn SetupCreateDiskSpaceListA(reserved1 : *const core::ffi::c_void, reserved2 : u32, flags : u32) -> *mut core::ffi::c_void); - SetupCreateDiskSpaceListA(core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + SetupCreateDiskSpaceListA(core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SetupCreateDiskSpaceListW(reserved1: Option<*const core::ffi::c_void>, reserved2: Option, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("setupapi.dll" "system" fn SetupCreateDiskSpaceListW(reserved1 : *const core::ffi::c_void, reserved2 : u32, flags : u32) -> *mut core::ffi::c_void); - SetupCreateDiskSpaceListW(core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + SetupCreateDiskSpaceListW(core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SetupDecompressOrCopyFileA(sourcefilename: P0, targetfilename: P1, compressiontype: Option<*const FILE_COMPRESSION_TYPE>) -> u32 @@ -1703,12 +1683,12 @@ where #[inline] pub unsafe fn SetupDefaultQueueCallbackA(context: *const core::ffi::c_void, notification: u32, param1: usize, param2: usize) -> u32 { windows_targets::link!("setupapi.dll" "system" fn SetupDefaultQueueCallbackA(context : *const core::ffi::c_void, notification : u32, param1 : usize, param2 : usize) -> u32); - SetupDefaultQueueCallbackA(core::mem::transmute(context), core::mem::transmute(notification), core::mem::transmute(param1), core::mem::transmute(param2)) + SetupDefaultQueueCallbackA(context, notification, param1, param2) } #[inline] pub unsafe fn SetupDefaultQueueCallbackW(context: *const core::ffi::c_void, notification: u32, param1: usize, param2: usize) -> u32 { windows_targets::link!("setupapi.dll" "system" fn SetupDefaultQueueCallbackW(context : *const core::ffi::c_void, notification : u32, param1 : usize, param2 : usize) -> u32); - SetupDefaultQueueCallbackW(core::mem::transmute(context), core::mem::transmute(notification), core::mem::transmute(param1), core::mem::transmute(param2)) + SetupDefaultQueueCallbackW(context, notification, param1, param2) } #[inline] pub unsafe fn SetupDeleteErrorA(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, file: P2, win32errorcode: u32, style: u32) -> u32 @@ -1717,7 +1697,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDeleteErrorA(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCSTR, file : windows_core::PCSTR, win32errorcode : u32, style : u32) -> u32); - SetupDeleteErrorA(core::mem::transmute(hwndparent), dialogtitle.param().abi(), file.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style)) + SetupDeleteErrorA(hwndparent, dialogtitle.param().abi(), file.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupDeleteErrorW(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, file: P2, win32errorcode: u32, style: u32) -> u32 @@ -1726,7 +1706,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDeleteErrorW(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCWSTR, file : windows_core::PCWSTR, win32errorcode : u32, style : u32) -> u32); - SetupDeleteErrorW(core::mem::transmute(hwndparent), dialogtitle.param().abi(), file.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style)) + SetupDeleteErrorW(hwndparent, dialogtitle.param().abi(), file.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupDestroyDiskSpaceList(diskspace: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1736,12 +1716,12 @@ pub unsafe fn SetupDestroyDiskSpaceList(diskspace: *mut core::ffi::c_void) -> wi #[inline] pub unsafe fn SetupDiAskForOEMDisk(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiAskForOEMDisk(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiAskForOEMDisk(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiAskForOEMDisk(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiBuildClassInfoList(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoList(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiBuildClassInfoList(core::mem::transmute(flags), core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize)).ok() + SetupDiBuildClassInfoList(flags, core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize)).ok() } #[inline] pub unsafe fn SetupDiBuildClassInfoListExA(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1749,7 +1729,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoListExA(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiBuildClassInfoListExA(core::mem::transmute(flags), core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiBuildClassInfoListExA(flags, core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiBuildClassInfoListExW(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1757,27 +1737,27 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoListExW(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiBuildClassInfoListExW(core::mem::transmute(flags), core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiBuildClassInfoListExW(flags, core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiBuildDriverInfoList(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildDriverInfoList(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE) -> super::super::Foundation:: BOOL); - SetupDiBuildDriverInfoList(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(drivertype)).ok() + SetupDiBuildDriverInfoList(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), drivertype).ok() } #[inline] pub unsafe fn SetupDiCallClassInstaller(installfunction: DI_FUNCTION, deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiCallClassInstaller(installfunction : DI_FUNCTION, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiCallClassInstaller(core::mem::transmute(installfunction), core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiCallClassInstaller(installfunction, deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiCancelDriverInfoSearch(deviceinfoset: HDEVINFO) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiCancelDriverInfoSearch(deviceinfoset : HDEVINFO) -> super::super::Foundation:: BOOL); - SetupDiCancelDriverInfoSearch(core::mem::transmute(deviceinfoset)).ok() + SetupDiCancelDriverInfoSearch(deviceinfoset).ok() } #[inline] pub unsafe fn SetupDiChangeState(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiChangeState(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiChangeState(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiChangeState(deviceinfoset, core::mem::transmute(deviceinfodata)).ok() } #[inline] pub unsafe fn SetupDiClassGuidsFromNameA(classname: P0, classguidlist: &mut [windows_core::GUID], requiredsize: *mut u32) -> windows_core::Result<()> @@ -1816,7 +1796,7 @@ where #[inline] pub unsafe fn SetupDiClassNameFromGuidA(classguid: *const windows_core::GUID, classname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidA(classguid : *const windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiClassNameFromGuidA(core::mem::transmute(classguid), core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiClassNameFromGuidA(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiClassNameFromGuidExA(classguid: *const windows_core::GUID, classname: &mut [u8], requiredsize: Option<*mut u32>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1824,7 +1804,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidExA(classguid : *const windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiClassNameFromGuidExA(core::mem::transmute(classguid), core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiClassNameFromGuidExA(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiClassNameFromGuidExW(classguid: *const windows_core::GUID, classname: &mut [u16], requiredsize: Option<*mut u32>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1832,12 +1812,12 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidExW(classguid : *const windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiClassNameFromGuidExW(core::mem::transmute(classguid), core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiClassNameFromGuidExW(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiClassNameFromGuidW(classguid: *const windows_core::GUID, classname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidW(classguid : *const windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiClassNameFromGuidW(core::mem::transmute(classguid), core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiClassNameFromGuidW(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1846,7 +1826,7 @@ where P6: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDevRegKeyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, scope : u32, hwprofile : u32, keytype : u32, infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiCreateDevRegKeyA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(scope), core::mem::transmute(hwprofile), core::mem::transmute(keytype), core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); + let result__ = SetupDiCreateDevRegKeyA(deviceinfoset, deviceinfodata, scope, hwprofile, keytype, core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] @@ -1856,7 +1836,7 @@ where P6: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDevRegKeyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, scope : u32, hwprofile : u32, keytype : u32, infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiCreateDevRegKeyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(scope), core::mem::transmute(hwprofile), core::mem::transmute(keytype), core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); + let result__ = SetupDiCreateDevRegKeyW(deviceinfoset, deviceinfodata, scope, hwprofile, keytype, core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1866,7 +1846,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoA(deviceinfoset : HDEVINFO, devicename : windows_core::PCSTR, classguid : *const windows_core::GUID, devicedescription : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, creationflags : SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiCreateDeviceInfoA(core::mem::transmute(deviceinfoset), devicename.param().abi(), core::mem::transmute(classguid), devicedescription.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(creationflags), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiCreateDeviceInfoA(deviceinfoset, devicename.param().abi(), classguid, devicedescription.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), creationflags, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiCreateDeviceInfoList(classguid: Option<*const windows_core::GUID>, hwndparent: Option) -> windows_core::Result { @@ -1899,7 +1879,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoW(deviceinfoset : HDEVINFO, devicename : windows_core::PCWSTR, classguid : *const windows_core::GUID, devicedescription : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, creationflags : SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiCreateDeviceInfoW(core::mem::transmute(deviceinfoset), devicename.param().abi(), core::mem::transmute(classguid), devicedescription.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(creationflags), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiCreateDeviceInfoW(deviceinfoset, devicename.param().abi(), classguid, devicedescription.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), creationflags, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiCreateDeviceInterfaceA(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, interfaceclassguid: *const windows_core::GUID, referencestring: P3, creationflags: u32, deviceinterfacedata: Option<*mut SP_DEVICE_INTERFACE_DATA>) -> windows_core::Result<()> @@ -1907,7 +1887,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, referencestring : windows_core::PCSTR, creationflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiCreateDeviceInterfaceA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(interfaceclassguid), referencestring.param().abi(), core::mem::transmute(creationflags), core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiCreateDeviceInterfaceA(deviceinfoset, deviceinfodata, interfaceclassguid, referencestring.param().abi(), creationflags, core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1916,7 +1896,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceRegKeyA(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32, samdesired : u32, infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiCreateDeviceInterfaceRegKeyA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); + let result__ = SetupDiCreateDeviceInterfaceRegKeyA(deviceinfoset, deviceinterfacedata, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] @@ -1926,7 +1906,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceRegKeyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32, samdesired : u32, infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiCreateDeviceInterfaceRegKeyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); + let result__ = SetupDiCreateDeviceInterfaceRegKeyW(deviceinfoset, deviceinterfacedata, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), infsectionname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1935,81 +1915,81 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, referencestring : windows_core::PCWSTR, creationflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiCreateDeviceInterfaceW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(interfaceclassguid), referencestring.param().abi(), core::mem::transmute(creationflags), core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiCreateDeviceInterfaceW(deviceinfoset, deviceinfodata, interfaceclassguid, referencestring.param().abi(), creationflags, core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiDeleteDevRegKey(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDevRegKey(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, scope : u32, hwprofile : u32, keytype : u32) -> super::super::Foundation:: BOOL); - SetupDiDeleteDevRegKey(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(scope), core::mem::transmute(hwprofile), core::mem::transmute(keytype)).ok() + SetupDiDeleteDevRegKey(deviceinfoset, deviceinfodata, scope, hwprofile, keytype).ok() } #[inline] pub unsafe fn SetupDiDeleteDeviceInfo(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiDeleteDeviceInfo(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiDeleteDeviceInfo(deviceinfoset, deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiDeleteDeviceInterfaceData(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceData(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiDeleteDeviceInterfaceData(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata)).ok() + SetupDiDeleteDeviceInterfaceData(deviceinfoset, deviceinterfacedata).ok() } #[inline] pub unsafe fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: Option) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32) -> super::super::Foundation:: BOOL); - SetupDiDeleteDeviceInterfaceRegKey(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset, deviceinterfacedata, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiDestroyClassImageList(classimagelistdata: *const SP_CLASSIMAGELIST_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyClassImageList(classimagelistdata : *const SP_CLASSIMAGELIST_DATA) -> super::super::Foundation:: BOOL); - SetupDiDestroyClassImageList(core::mem::transmute(classimagelistdata)).ok() + SetupDiDestroyClassImageList(classimagelistdata).ok() } #[inline] pub unsafe fn SetupDiDestroyDeviceInfoList(deviceinfoset: HDEVINFO) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDeviceInfoList(deviceinfoset : HDEVINFO) -> super::super::Foundation:: BOOL); - SetupDiDestroyDeviceInfoList(core::mem::transmute(deviceinfoset)).ok() + SetupDiDestroyDeviceInfoList(deviceinfoset).ok() } #[inline] pub unsafe fn SetupDiDestroyDriverInfoList(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDriverInfoList(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE) -> super::super::Foundation:: BOOL); - SetupDiDestroyDriverInfoList(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(drivertype)).ok() + SetupDiDestroyDriverInfoList(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), drivertype).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetupDiDrawMiniIcon(hdc: super::super::Graphics::Gdi::HDC, rc: super::super::Foundation::RECT, miniiconindex: i32, flags: u32) -> i32 { windows_targets::link!("setupapi.dll" "system" fn SetupDiDrawMiniIcon(hdc : super::super::Graphics::Gdi:: HDC, rc : super::super::Foundation:: RECT, miniiconindex : i32, flags : u32) -> i32); - SetupDiDrawMiniIcon(core::mem::transmute(hdc), core::mem::transmute(rc), core::mem::transmute(miniiconindex), core::mem::transmute(flags)) + SetupDiDrawMiniIcon(hdc, core::mem::transmute(rc), miniiconindex, flags) } #[inline] pub unsafe fn SetupDiEnumDeviceInfo(deviceinfoset: HDEVINFO, memberindex: u32, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInfo(deviceinfoset : HDEVINFO, memberindex : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiEnumDeviceInfo(core::mem::transmute(deviceinfoset), core::mem::transmute(memberindex), core::mem::transmute(deviceinfodata)).ok() + SetupDiEnumDeviceInfo(deviceinfoset, memberindex, core::mem::transmute(deviceinfodata)).ok() } #[inline] pub unsafe fn SetupDiEnumDeviceInterfaces(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, interfaceclassguid: *const windows_core::GUID, memberindex: u32, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, memberindex : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiEnumDeviceInterfaces(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(interfaceclassguid), core::mem::transmute(memberindex), core::mem::transmute(deviceinterfacedata)).ok() + SetupDiEnumDeviceInterfaces(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), interfaceclassguid, memberindex, core::mem::transmute(deviceinterfacedata)).ok() } #[inline] pub unsafe fn SetupDiEnumDriverInfoA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE, memberindex: u32, driverinfodata: *mut SP_DRVINFO_DATA_V2_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDriverInfoA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE, memberindex : u32, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> super::super::Foundation:: BOOL); - SetupDiEnumDriverInfoA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(drivertype), core::mem::transmute(memberindex), core::mem::transmute(driverinfodata)).ok() + SetupDiEnumDriverInfoA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), drivertype, memberindex, core::mem::transmute(driverinfodata)).ok() } #[inline] pub unsafe fn SetupDiEnumDriverInfoW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE, memberindex: u32, driverinfodata: *mut SP_DRVINFO_DATA_V2_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDriverInfoW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE, memberindex : u32, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> super::super::Foundation:: BOOL); - SetupDiEnumDriverInfoW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(drivertype), core::mem::transmute(memberindex), core::mem::transmute(driverinfodata)).ok() + SetupDiEnumDriverInfoW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), drivertype, memberindex, core::mem::transmute(driverinfodata)).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupDiGetActualModelsSectionA(context: *const INFCONTEXT, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsectionwithext: Option<&mut [u8]>, requiredsize: Option<*mut u32>, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualModelsSectionA(context : *const INFCONTEXT, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetActualModelsSectionA(core::mem::transmute(context), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetActualModelsSectionA(context, core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupDiGetActualModelsSectionW(context: *const INFCONTEXT, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsectionwithext: Option<&mut [u16]>, requiredsize: Option<*mut u32>, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualModelsSectionW(context : *const INFCONTEXT, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetActualModelsSectionW(core::mem::transmute(context), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetActualModelsSectionW(context, core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetActualSectionToInstallA(infhandle: *const core::ffi::c_void, infsectionname: P1, infsectionwithext: Option<&mut [u8]>, requiredsize: Option<*mut u32>, extension: Option<*mut windows_core::PSTR>) -> windows_core::Result<()> @@ -2017,7 +1997,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallA(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); - SetupDiGetActualSectionToInstallA(core::mem::transmute(infhandle), infsectionname.param().abi(), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(extension.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetActualSectionToInstallA(infhandle, infsectionname.param().abi(), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(extension.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] @@ -2027,7 +2007,7 @@ where { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallExA(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); SetupDiGetActualSectionToInstallExA( - core::mem::transmute(infhandle), + infhandle, infsectionname.param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -2046,7 +2026,7 @@ where { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallExW(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); SetupDiGetActualSectionToInstallExW( - core::mem::transmute(infhandle), + infhandle, infsectionname.param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -2063,7 +2043,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallW(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - SetupDiGetActualSectionToInstallW(core::mem::transmute(infhandle), infsectionname.param().abi(), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(extension.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetActualSectionToInstallW(infhandle, infsectionname.param().abi(), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(extension.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassBitmapIndex(classguid: Option<*const windows_core::GUID>, miniiconindex: *mut i32) -> windows_core::Result<()> { @@ -2073,7 +2053,7 @@ pub unsafe fn SetupDiGetClassBitmapIndex(classguid: Option<*const windows_core:: #[inline] pub unsafe fn SetupDiGetClassDescriptionA(classguid: *const windows_core::GUID, classdescription: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionA(classguid : *const windows_core::GUID, classdescription : windows_core::PSTR, classdescriptionsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassDescriptionA(core::mem::transmute(classguid), core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassDescriptionA(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassDescriptionExA(classguid: *const windows_core::GUID, classdescription: &mut [u8], requiredsize: Option<*mut u32>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2081,7 +2061,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionExA(classguid : *const windows_core::GUID, classdescription : windows_core::PSTR, classdescriptionsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassDescriptionExA(core::mem::transmute(classguid), core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassDescriptionExA(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassDescriptionExW(classguid: *const windows_core::GUID, classdescription: &mut [u16], requiredsize: Option<*mut u32>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2089,24 +2069,24 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionExW(classguid : *const windows_core::GUID, classdescription : windows_core::PWSTR, classdescriptionsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassDescriptionExW(core::mem::transmute(classguid), core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassDescriptionExW(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassDescriptionW(classguid: *const windows_core::GUID, classdescription: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionW(classguid : *const windows_core::GUID, classdescription : windows_core::PWSTR, classdescriptionsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassDescriptionW(core::mem::transmute(classguid), core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassDescriptionW(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SetupDiGetClassDevPropertySheetsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, propertysheetheader: *const super::super::UI::Controls::PROPSHEETHEADERA_V2, propertysheetheaderpagelistsize: u32, requiredsize: Option<*mut u32>, propertysheettype: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevPropertySheetsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertysheetheader : *const super::super::UI::Controls:: PROPSHEETHEADERA_V2, propertysheetheaderpagelistsize : u32, requiredsize : *mut u32, propertysheettype : u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassDevPropertySheetsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertysheetheader), core::mem::transmute(propertysheetheaderpagelistsize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertysheettype)).ok() + SetupDiGetClassDevPropertySheetsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), propertysheetheader, propertysheetheaderpagelistsize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), propertysheettype).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SetupDiGetClassDevPropertySheetsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, propertysheetheader: *const super::super::UI::Controls::PROPSHEETHEADERW_V2, propertysheetheaderpagelistsize: u32, requiredsize: Option<*mut u32>, propertysheettype: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevPropertySheetsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertysheetheader : *const super::super::UI::Controls:: PROPSHEETHEADERW_V2, propertysheetheaderpagelistsize : u32, requiredsize : *mut u32, propertysheettype : u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassDevPropertySheetsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertysheetheader), core::mem::transmute(propertysheetheaderpagelistsize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertysheettype)).ok() + SetupDiGetClassDevPropertySheetsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), propertysheetheader, propertysheetheaderpagelistsize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), propertysheettype).ok() } #[inline] pub unsafe fn SetupDiGetClassDevsA(classguid: Option<*const windows_core::GUID>, enumerator: P1, hwndparent: Option, flags: SETUP_DI_GET_CLASS_DEVS_FLAGS) -> windows_core::Result @@ -2114,7 +2094,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevsA(classguid : *const windows_core::GUID, enumerator : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, flags : SETUP_DI_GET_CLASS_DEVS_FLAGS) -> HDEVINFO); - let result__ = SetupDiGetClassDevsA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)); + let result__ = SetupDiGetClassDevsA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2124,7 +2104,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevsExA(classguid : *const windows_core::GUID, enumerator : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, flags : SETUP_DI_GET_CLASS_DEVS_FLAGS, deviceinfoset : HDEVINFO, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> HDEVINFO); - let result__ = SetupDiGetClassDevsExA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); + let result__ = SetupDiGetClassDevsExA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2134,7 +2114,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevsExW(classguid : *const windows_core::GUID, enumerator : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, flags : SETUP_DI_GET_CLASS_DEVS_FLAGS, deviceinfoset : HDEVINFO, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> HDEVINFO); - let result__ = SetupDiGetClassDevsExW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); + let result__ = SetupDiGetClassDevsExW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2143,14 +2123,14 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevsW(classguid : *const windows_core::GUID, enumerator : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, flags : SETUP_DI_GET_CLASS_DEVS_FLAGS) -> HDEVINFO); - let result__ = SetupDiGetClassDevsW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)); + let result__ = SetupDiGetClassDevsW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), enumerator.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiGetClassImageIndex(classimagelistdata: *const SP_CLASSIMAGELIST_DATA, classguid: *const windows_core::GUID, imageindex: *mut i32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageIndex(classimagelistdata : *const SP_CLASSIMAGELIST_DATA, classguid : *const windows_core::GUID, imageindex : *mut i32) -> super::super::Foundation:: BOOL); - SetupDiGetClassImageIndex(core::mem::transmute(classimagelistdata), core::mem::transmute(classguid), core::mem::transmute(imageindex)).ok() + SetupDiGetClassImageIndex(classimagelistdata, classguid, core::mem::transmute(imageindex)).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] @@ -2179,12 +2159,12 @@ where #[inline] pub unsafe fn SetupDiGetClassInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*mut SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *mut SP_CLASSINSTALL_HEADER, classinstallparamssize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassInstallParamsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparamssize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassInstallParamsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), classinstallparamssize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*mut SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *mut SP_CLASSINSTALL_HEADER, classinstallparamssize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassInstallParamsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparamssize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassInstallParamsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), classinstallparamssize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -2193,12 +2173,12 @@ where P7: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassPropertyExW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassPropertyExW(classguid, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassPropertyKeys(classguid: *const windows_core::GUID, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeys(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassPropertyKeys(core::mem::transmute(classguid), core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SetupDiGetClassPropertyKeys(classguid, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn SetupDiGetClassPropertyKeysExW(classguid: *const windows_core::GUID, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32, machinename: P5, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2206,13 +2186,13 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeysExW(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassPropertyKeysExW(core::mem::transmute(classguid), core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassPropertyKeysExW(classguid, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetClassPropertyW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetClassPropertyW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SetupDiGetClassPropertyW(classguid, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn SetupDiGetClassRegistryPropertyA(classguid: *const windows_core::GUID, property: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>, machinename: P6, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2220,7 +2200,7 @@ where P6: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassRegistryPropertyA(classguid : *const windows_core::GUID, property : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassRegistryPropertyA(core::mem::transmute(classguid), core::mem::transmute(property), core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassRegistryPropertyA(classguid, property, core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetClassRegistryPropertyW(classguid: *const windows_core::GUID, property: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>, machinename: P6, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2228,7 +2208,7 @@ where P6: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassRegistryPropertyW(classguid : *const windows_core::GUID, property : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassRegistryPropertyW(core::mem::transmute(classguid), core::mem::transmute(property), core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetClassRegistryPropertyW(classguid, property, core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetCustomDevicePropertyA(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, custompropertyname: P2, flags: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -2236,7 +2216,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetCustomDevicePropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, custompropertyname : windows_core::PCSTR, flags : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetCustomDevicePropertyA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), custompropertyname.param().abi(), core::mem::transmute(flags), core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetCustomDevicePropertyA(deviceinfoset, deviceinfodata, custompropertyname.param().abi(), flags, core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetCustomDevicePropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, custompropertyname: P2, flags: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -2244,114 +2224,114 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetCustomDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, custompropertyname : windows_core::PCWSTR, flags : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetCustomDevicePropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), custompropertyname.param().abi(), core::mem::transmute(flags), core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetCustomDevicePropertyW(deviceinfoset, deviceinfodata, custompropertyname.param().abi(), flags, core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInfoListClass(deviceinfoset: HDEVINFO, classguid: *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListClass(deviceinfoset : HDEVINFO, classguid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInfoListClass(core::mem::transmute(deviceinfoset), core::mem::transmute(classguid)).ok() + SetupDiGetDeviceInfoListClass(deviceinfoset, core::mem::transmute(classguid)).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInfoListDetailA(deviceinfoset: HDEVINFO, deviceinfosetdetaildata: *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailA(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInfoListDetailA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfosetdetaildata)).ok() + SetupDiGetDeviceInfoListDetailA(deviceinfoset, core::mem::transmute(deviceinfosetdetaildata)).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInfoListDetailW(deviceinfoset: HDEVINFO, deviceinfosetdetaildata: *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailW(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInfoListDetailW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfosetdetaildata)).ok() + SetupDiGetDeviceInfoListDetailW(deviceinfoset, core::mem::transmute(deviceinfosetdetaildata)).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *mut SP_DEVINSTALL_PARAMS_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *mut SP_DEVINSTALL_PARAMS_A) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInstallParamsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinstallparams)).ok() + SetupDiGetDeviceInstallParamsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinstallparams)).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *mut SP_DEVINSTALL_PARAMS_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *mut SP_DEVINSTALL_PARAMS_W) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInstallParamsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinstallparams)).ok() + SetupDiGetDeviceInstallParamsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinstallparams)).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstanceIdA(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, deviceinstanceid: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstanceIdA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstanceid : windows_core::PSTR, deviceinstanceidsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInstanceIdA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(deviceinstanceid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), deviceinstanceid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDeviceInstanceIdA(deviceinfoset, deviceinfodata, core::mem::transmute(deviceinstanceid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), deviceinstanceid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstanceIdW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, deviceinstanceid: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstanceIdW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstanceid : windows_core::PWSTR, deviceinstanceidsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInstanceIdW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(deviceinstanceid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), deviceinstanceid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDeviceInstanceIdW(deviceinfoset, deviceinfodata, core::mem::transmute(deviceinstanceid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), deviceinstanceid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceAlias(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, aliasinterfaceclassguid: *const windows_core::GUID, aliasdeviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceAlias(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, aliasinterfaceclassguid : *const windows_core::GUID, aliasdeviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfaceAlias(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(aliasinterfaceclassguid), core::mem::transmute(aliasdeviceinterfacedata)).ok() + SetupDiGetDeviceInterfaceAlias(deviceinfoset, deviceinterfacedata, aliasinterfaceclassguid, core::mem::transmute(aliasdeviceinterfacedata)).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceDetailA(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata: Option<*mut SP_DEVICE_INTERFACE_DETAIL_DATA_A>, deviceinterfacedetaildatasize: u32, requiredsize: Option<*mut u32>, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceDetailA(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata : *mut SP_DEVICE_INTERFACE_DETAIL_DATA_A, deviceinterfacedetaildatasize : u32, requiredsize : *mut u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfaceDetailA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(deviceinterfacedetaildata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinterfacedetaildatasize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDeviceInterfaceDetailA(deviceinfoset, deviceinterfacedata, core::mem::transmute(deviceinterfacedetaildata.unwrap_or(core::mem::zeroed())), deviceinterfacedetaildatasize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceDetailW(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata: Option<*mut SP_DEVICE_INTERFACE_DETAIL_DATA_W>, deviceinterfacedetaildatasize: u32, requiredsize: Option<*mut u32>, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceDetailW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata : *mut SP_DEVICE_INTERFACE_DETAIL_DATA_W, deviceinterfacedetaildatasize : u32, requiredsize : *mut u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfaceDetailW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(deviceinterfacedetaildata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinterfacedetaildatasize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDeviceInterfaceDetailW(deviceinfoset, deviceinterfacedata, core::mem::transmute(deviceinterfacedetaildata.unwrap_or(core::mem::zeroed())), deviceinterfacedetaildatasize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfacePropertyKeys(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset, deviceinterfacedata, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), flags).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfacePropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SetupDiGetDeviceInterfacePropertyW(deviceinfoset, deviceinterfacedata, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn SetupDiGetDevicePropertyKeys(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyKeys(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDevicePropertyKeys(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SetupDiGetDevicePropertyKeys(deviceinfoset, deviceinfodata, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredpropertykeycount.unwrap_or(core::mem::zeroed())), flags).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDevicePropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDevicePropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SetupDiGetDevicePropertyW(deviceinfoset, deviceinfodata, propertykey, core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn SetupDiGetDeviceRegistryPropertyA(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype: Option<*mut u32>, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceRegistryPropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceRegistryPropertyA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(property), core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDeviceRegistryPropertyA(deviceinfoset, deviceinfodata, property, core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceRegistryPropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype: Option<*mut u32>, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceRegistryPropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceRegistryPropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(property), core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDeviceRegistryPropertyW(deviceinfoset, deviceinfodata, property, core::mem::transmute(propertyregdatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDriverInfoDetailA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinfodetaildata: Option<*mut SP_DRVINFO_DETAIL_DATA_A>, driverinfodetaildatasize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInfoDetailA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinfodetaildata : *mut SP_DRVINFO_DETAIL_DATA_A, driverinfodetaildatasize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetDriverInfoDetailA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata), core::mem::transmute(driverinfodetaildata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodetaildatasize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDriverInfoDetailA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), driverinfodata, core::mem::transmute(driverinfodetaildata.unwrap_or(core::mem::zeroed())), driverinfodetaildatasize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDriverInfoDetailW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinfodetaildata: Option<*mut SP_DRVINFO_DETAIL_DATA_W>, driverinfodetaildatasize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInfoDetailW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinfodetaildata : *mut SP_DRVINFO_DETAIL_DATA_W, driverinfodetaildatasize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetDriverInfoDetailW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata), core::mem::transmute(driverinfodetaildata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodetaildatasize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetDriverInfoDetailW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), driverinfodata, core::mem::transmute(driverinfodetaildata.unwrap_or(core::mem::zeroed())), driverinfodetaildatasize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetDriverInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinstallparams: *mut SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinstallparams : *mut SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); - SetupDiGetDriverInstallParamsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata), core::mem::transmute(driverinstallparams)).ok() + SetupDiGetDriverInstallParamsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), driverinfodata, core::mem::transmute(driverinstallparams)).ok() } #[inline] pub unsafe fn SetupDiGetDriverInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinstallparams: *mut SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinstallparams : *mut SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); - SetupDiGetDriverInstallParamsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata), core::mem::transmute(driverinstallparams)).ok() + SetupDiGetDriverInstallParamsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), driverinfodata, core::mem::transmute(driverinstallparams)).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameA(hwprofile: u32, friendlyname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameA(hwprofile : u32, friendlyname : windows_core::PSTR, friendlynamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetHwProfileFriendlyNameA(core::mem::transmute(hwprofile), core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetHwProfileFriendlyNameA(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameExA(hwprofile: u32, friendlyname: &mut [u8], requiredsize: Option<*mut u32>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2359,7 +2339,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameExA(hwprofile : u32, friendlyname : windows_core::PSTR, friendlynamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetHwProfileFriendlyNameExA(core::mem::transmute(hwprofile), core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetHwProfileFriendlyNameExA(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameExW(hwprofile: u32, friendlyname: &mut [u16], requiredsize: Option<*mut u32>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2367,12 +2347,12 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameExW(hwprofile : u32, friendlyname : windows_core::PWSTR, friendlynamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetHwProfileFriendlyNameExW(core::mem::transmute(hwprofile), core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetHwProfileFriendlyNameExW(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameW(hwprofile: u32, friendlyname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameW(hwprofile : u32, friendlyname : windows_core::PWSTR, friendlynamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetHwProfileFriendlyNameW(core::mem::transmute(hwprofile), core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupDiGetHwProfileFriendlyNameW(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileList(hwprofilelist: &mut [u32], requiredsize: *mut u32, currentlyactiveindex: Option<*mut u32>) -> windows_core::Result<()> { @@ -2414,23 +2394,23 @@ where #[inline] pub unsafe fn SetupDiGetSelectedDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiGetSelectedDevice(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiGetSelectedDevice(deviceinfoset, core::mem::transmute(deviceinfodata)).ok() } #[inline] pub unsafe fn SetupDiGetSelectedDriverA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *mut SP_DRVINFO_DATA_V2_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDriverA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> super::super::Foundation:: BOOL); - SetupDiGetSelectedDriverA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata)).ok() + SetupDiGetSelectedDriverA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata)).ok() } #[inline] pub unsafe fn SetupDiGetSelectedDriverW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *mut SP_DRVINFO_DATA_V2_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDriverW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> super::super::Foundation:: BOOL); - SetupDiGetSelectedDriverW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata)).ok() + SetupDiGetSelectedDriverW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata)).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiGetWizardPage(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, installwizarddata: *const SP_INSTALLWIZARD_DATA, pagetype: u32, flags: u32) -> super::super::UI::Controls::HPROPSHEETPAGE { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetWizardPage(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, installwizarddata : *const SP_INSTALLWIZARD_DATA, pagetype : u32, flags : u32) -> super::super::UI::Controls:: HPROPSHEETPAGE); - SetupDiGetWizardPage(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(installwizarddata), core::mem::transmute(pagetype), core::mem::transmute(flags)) + SetupDiGetWizardPage(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), installwizarddata, pagetype, flags) } #[inline] pub unsafe fn SetupDiInstallClassA(hwndparent: Option, inffilename: P1, flags: u32, filequeue: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2438,7 +2418,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassA(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCSTR, flags : u32, filequeue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiInstallClassA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), core::mem::transmute(flags), core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed()))).ok() + SetupDiInstallClassA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiInstallClassExA(hwndparent: Option, inffilename: P1, flags: u32, filequeue: Option<*const core::ffi::c_void>, interfaceclassguid: Option<*const windows_core::GUID>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2446,7 +2426,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassExA(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCSTR, flags : u32, filequeue : *const core::ffi::c_void, interfaceclassguid : *const windows_core::GUID, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiInstallClassExA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), core::mem::transmute(flags), core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed())), core::mem::transmute(interfaceclassguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupDiInstallClassExA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed())), core::mem::transmute(interfaceclassguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiInstallClassExW(hwndparent: Option, inffilename: P1, flags: u32, filequeue: Option<*const core::ffi::c_void>, interfaceclassguid: Option<*const windows_core::GUID>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2454,7 +2434,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassExW(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCWSTR, flags : u32, filequeue : *const core::ffi::c_void, interfaceclassguid : *const windows_core::GUID, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiInstallClassExW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), core::mem::transmute(flags), core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed())), core::mem::transmute(interfaceclassguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupDiInstallClassExW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed())), core::mem::transmute(interfaceclassguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiInstallClassW(hwndparent: Option, inffilename: P1, flags: u32, filequeue: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2462,40 +2442,40 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassW(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCWSTR, flags : u32, filequeue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiInstallClassW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), core::mem::transmute(flags), core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed()))).ok() + SetupDiInstallClassW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiInstallDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiInstallDevice(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiInstallDevice(deviceinfoset, core::mem::transmute(deviceinfodata)).ok() } #[inline] pub unsafe fn SetupDiInstallDeviceInterfaces(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiInstallDeviceInterfaces(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiInstallDeviceInterfaces(deviceinfoset, deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiInstallDriverFiles(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDriverFiles(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiInstallDriverFiles(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiInstallDriverFiles(deviceinfoset, deviceinfodata).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetupDiLoadClassIcon(classguid: *const windows_core::GUID, largeicon: Option<*mut super::super::UI::WindowsAndMessaging::HICON>, miniiconindex: Option<*mut i32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiLoadClassIcon(classguid : *const windows_core::GUID, largeicon : *mut super::super::UI::WindowsAndMessaging:: HICON, miniiconindex : *mut i32) -> super::super::Foundation:: BOOL); - SetupDiLoadClassIcon(core::mem::transmute(classguid), core::mem::transmute(largeicon.unwrap_or(core::mem::zeroed())), core::mem::transmute(miniiconindex.unwrap_or(core::mem::zeroed()))).ok() + SetupDiLoadClassIcon(classguid, core::mem::transmute(largeicon.unwrap_or(core::mem::zeroed())), core::mem::transmute(miniiconindex.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetupDiLoadDeviceIcon(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, cxicon: u32, cyicon: u32, flags: u32, hicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiLoadDeviceIcon(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, cxicon : u32, cyicon : u32, flags : u32, hicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> super::super::Foundation:: BOOL); - SetupDiLoadDeviceIcon(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(cxicon), core::mem::transmute(cyicon), core::mem::transmute(flags), core::mem::transmute(hicon)).ok() + SetupDiLoadDeviceIcon(deviceinfoset, deviceinfodata, cxicon, cyicon, flags, core::mem::transmute(hicon)).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiOpenClassRegKey(classguid: Option<*const windows_core::GUID>, samdesired: u32) -> windows_core::Result { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenClassRegKey(classguid : *const windows_core::GUID, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiOpenClassRegKey(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired)); + let result__ = SetupDiOpenClassRegKey(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] @@ -2505,7 +2485,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenClassRegKeyExA(classguid : *const windows_core::GUID, samdesired : u32, flags : u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiOpenClassRegKeyExA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(flags), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); + let result__ = SetupDiOpenClassRegKeyExA(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), samdesired, flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] @@ -2515,14 +2495,14 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenClassRegKeyExW(classguid : *const windows_core::GUID, samdesired : u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiOpenClassRegKeyExW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(flags), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); + let result__ = SetupDiOpenClassRegKeyExW(core::mem::transmute(classguid.unwrap_or(core::mem::zeroed())), samdesired, flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiOpenDevRegKey(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32, samdesired: u32) -> windows_core::Result { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDevRegKey(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, scope : u32, hwprofile : u32, keytype : u32, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiOpenDevRegKey(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(scope), core::mem::transmute(hwprofile), core::mem::transmute(keytype), core::mem::transmute(samdesired)); + let result__ = SetupDiOpenDevRegKey(deviceinfoset, deviceinfodata, scope, hwprofile, keytype, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2531,7 +2511,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInfoA(deviceinfoset : HDEVINFO, deviceinstanceid : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, openflags : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiOpenDeviceInfoA(core::mem::transmute(deviceinfoset), deviceinstanceid.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(openflags), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiOpenDeviceInfoA(deviceinfoset, deviceinstanceid.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), openflags, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiOpenDeviceInfoW(deviceinfoset: HDEVINFO, deviceinstanceid: P1, hwndparent: Option, openflags: u32, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> @@ -2539,7 +2519,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInfoW(deviceinfoset : HDEVINFO, deviceinstanceid : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, openflags : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiOpenDeviceInfoW(core::mem::transmute(deviceinfoset), deviceinstanceid.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(openflags), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiOpenDeviceInfoW(deviceinfoset, deviceinstanceid.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), openflags, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiOpenDeviceInterfaceA(deviceinfoset: HDEVINFO, devicepath: P1, openflags: u32, deviceinterfacedata: Option<*mut SP_DEVICE_INTERFACE_DATA>) -> windows_core::Result<()> @@ -2547,13 +2527,13 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceA(deviceinfoset : HDEVINFO, devicepath : windows_core::PCSTR, openflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiOpenDeviceInterfaceA(core::mem::transmute(deviceinfoset), devicepath.param().abi(), core::mem::transmute(openflags), core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiOpenDeviceInterfaceA(deviceinfoset, devicepath.param().abi(), openflags, core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiOpenDeviceInterfaceRegKey(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: Option, samdesired: u32) -> windows_core::Result { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceRegKey(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = SetupDiOpenDeviceInterfaceRegKey(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired)); + let result__ = SetupDiOpenDeviceInterfaceRegKey(deviceinfoset, deviceinterfacedata, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2562,57 +2542,57 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceW(deviceinfoset : HDEVINFO, devicepath : windows_core::PCWSTR, openflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiOpenDeviceInterfaceW(core::mem::transmute(deviceinfoset), devicepath.param().abi(), core::mem::transmute(openflags), core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiOpenDeviceInterfaceW(deviceinfoset, devicepath.param().abi(), openflags, core::mem::transmute(deviceinterfacedata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiRegisterCoDeviceInstallers(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterCoDeviceInstallers(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRegisterCoDeviceInstallers(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiRegisterCoDeviceInstallers(deviceinfoset, deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiRegisterDeviceInfo(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA, flags: u32, compareproc: Option, comparecontext: Option<*const core::ffi::c_void>, dupdeviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, flags : u32, compareproc : PSP_DETSIG_CMPPROC, comparecontext : *const core::ffi::c_void, dupdeviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRegisterDeviceInfo(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(flags), core::mem::transmute(compareproc.unwrap_or(core::mem::zeroed())), core::mem::transmute(comparecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dupdeviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiRegisterDeviceInfo(deviceinfoset, core::mem::transmute(deviceinfodata), flags, core::mem::transmute(compareproc.unwrap_or(core::mem::zeroed())), core::mem::transmute(comparecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dupdeviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiRemoveDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> super::super::Foundation::BOOL { windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRemoveDevice(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)) + SetupDiRemoveDevice(deviceinfoset, core::mem::transmute(deviceinfodata)) } #[inline] pub unsafe fn SetupDiRemoveDeviceInterface(deviceinfoset: HDEVINFO, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDeviceInterface(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiRemoveDeviceInterface(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata)).ok() + SetupDiRemoveDeviceInterface(deviceinfoset, core::mem::transmute(deviceinterfacedata)).ok() } #[inline] pub unsafe fn SetupDiRestartDevices(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiRestartDevices(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRestartDevices(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiRestartDevices(deviceinfoset, core::mem::transmute(deviceinfodata)).ok() } #[inline] pub unsafe fn SetupDiSelectBestCompatDrv(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectBestCompatDrv(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSelectBestCompatDrv(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSelectBestCompatDrv(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiSelectDevice(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSelectDevice(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSelectDevice(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiSelectOEMDrv(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectOEMDrv(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSelectOEMDrv(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSelectOEMDrv(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiSetClassInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*const SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *const SP_CLASSINSTALL_HEADER, classinstallparamssize : u32) -> super::super::Foundation:: BOOL); - SetupDiSetClassInstallParamsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparamssize)).ok() + SetupDiSetClassInstallParamsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), classinstallparamssize).ok() } #[inline] pub unsafe fn SetupDiSetClassInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*const SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *const SP_CLASSINSTALL_HEADER, classinstallparamssize : u32) -> super::super::Foundation:: BOOL); - SetupDiSetClassInstallParamsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparamssize)).ok() + SetupDiSetClassInstallParamsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(classinstallparams.unwrap_or(core::mem::zeroed())), classinstallparamssize).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -2621,13 +2601,13 @@ where P6: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiSetClassPropertyExW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSetClassPropertyExW(classguid, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetClassPropertyW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiSetClassPropertyW(core::mem::transmute(classguid), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + SetupDiSetClassPropertyW(classguid, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } #[inline] pub unsafe fn SetupDiSetClassRegistryPropertyA(classguid: *const windows_core::GUID, property: u32, propertybuffer: Option<&[u8]>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2635,7 +2615,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassRegistryPropertyA(classguid : *const windows_core::GUID, property : u32, propertybuffer : *const u8, propertybuffersize : u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiSetClassRegistryPropertyA(core::mem::transmute(classguid), core::mem::transmute(property), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSetClassRegistryPropertyA(classguid, property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiSetClassRegistryPropertyW(classguid: *const windows_core::GUID, property: u32, propertybuffer: Option<&[u8]>, machinename: P4, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2643,94 +2623,94 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassRegistryPropertyW(classguid : *const windows_core::GUID, property : u32, propertybuffer : *const u8, propertybuffersize : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiSetClassRegistryPropertyW(core::mem::transmute(classguid), core::mem::transmute(property), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSetClassRegistryPropertyW(classguid, property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiSetDeviceInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *const SP_DEVINSTALL_PARAMS_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *const SP_DEVINSTALL_PARAMS_A) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceInstallParamsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinstallparams)).ok() + SetupDiSetDeviceInstallParamsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), deviceinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetDeviceInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *const SP_DEVINSTALL_PARAMS_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *const SP_DEVINSTALL_PARAMS_W) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceInstallParamsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinstallparams)).ok() + SetupDiSetDeviceInstallParamsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), deviceinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetDeviceInterfaceDefault(deviceinfoset: HDEVINFO, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfaceDefault(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceInterfaceDefault(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(flags), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSetDeviceInterfaceDefault(deviceinfoset, core::mem::transmute(deviceinterfacedata), flags, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceInterfacePropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinterfacedata), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + SetupDiSetDeviceInterfacePropertyW(deviceinfoset, deviceinterfacedata, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetDevicePropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiSetDevicePropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(propertykey), core::mem::transmute(propertytype), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + SetupDiSetDevicePropertyW(deviceinfoset, deviceinfodata, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } #[inline] pub unsafe fn SetupDiSetDeviceRegistryPropertyA(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertybuffer: Option<&[u8]>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceRegistryPropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertybuffer : *const u8, propertybuffersize : u32) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceRegistryPropertyA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(property), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + SetupDiSetDeviceRegistryPropertyA(deviceinfoset, core::mem::transmute(deviceinfodata), property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn SetupDiSetDeviceRegistryPropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertybuffer: Option<&[u8]>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceRegistryPropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertybuffer : *const u8, propertybuffersize : u32) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceRegistryPropertyW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata), core::mem::transmute(property), core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + SetupDiSetDeviceRegistryPropertyW(deviceinfoset, core::mem::transmute(deviceinfodata), property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn SetupDiSetDriverInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinstallparams: *const SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDriverInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinstallparams : *const SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); - SetupDiSetDriverInstallParamsA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata), core::mem::transmute(driverinstallparams)).ok() + SetupDiSetDriverInstallParamsA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), driverinfodata, driverinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetDriverInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinstallparams: *const SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDriverInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinstallparams : *const SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); - SetupDiSetDriverInstallParamsW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata), core::mem::transmute(driverinstallparams)).ok() + SetupDiSetDriverInstallParamsW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), driverinfodata, driverinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetSelectedDevice(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSetSelectedDevice(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiSetSelectedDevice(deviceinfoset, deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiSetSelectedDriverA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, driverinfodata: Option<*mut SP_DRVINFO_DATA_V2_A>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDriverA(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> super::super::Foundation:: BOOL); - SetupDiSetSelectedDriverA(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSetSelectedDriverA(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiSetSelectedDriverW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, driverinfodata: Option<*mut SP_DRVINFO_DATA_V2_W>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDriverW(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> super::super::Foundation:: BOOL); - SetupDiSetSelectedDriverW(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata.unwrap_or(core::mem::zeroed()))).ok() + SetupDiSetSelectedDriverW(deviceinfoset, core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupDiUnremoveDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupDiUnremoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiUnremoveDevice(core::mem::transmute(deviceinfoset), core::mem::transmute(deviceinfodata)).ok() + SetupDiUnremoveDevice(deviceinfoset, core::mem::transmute(deviceinfodata)).ok() } #[inline] pub unsafe fn SetupDuplicateDiskSpaceListA(diskspace: *const core::ffi::c_void, reserved1: Option<*const core::ffi::c_void>, reserved2: Option, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("setupapi.dll" "system" fn SetupDuplicateDiskSpaceListA(diskspace : *const core::ffi::c_void, reserved1 : *const core::ffi::c_void, reserved2 : u32, flags : u32) -> *mut core::ffi::c_void); - SetupDuplicateDiskSpaceListA(core::mem::transmute(diskspace), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + SetupDuplicateDiskSpaceListA(diskspace, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SetupDuplicateDiskSpaceListW(diskspace: *const core::ffi::c_void, reserved1: Option<*const core::ffi::c_void>, reserved2: Option, flags: u32) -> *mut core::ffi::c_void { windows_targets::link!("setupapi.dll" "system" fn SetupDuplicateDiskSpaceListW(diskspace : *const core::ffi::c_void, reserved1 : *const core::ffi::c_void, reserved2 : u32, flags : u32) -> *mut core::ffi::c_void); - SetupDuplicateDiskSpaceListW(core::mem::transmute(diskspace), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + SetupDuplicateDiskSpaceListW(diskspace, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SetupEnumInfSectionsA(infhandle: *const core::ffi::c_void, index: u32, buffer: Option<&mut [u8]>, sizeneeded: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupEnumInfSectionsA(infhandle : *const core::ffi::c_void, index : u32, buffer : windows_core::PSTR, size : u32, sizeneeded : *mut u32) -> super::super::Foundation:: BOOL); - SetupEnumInfSectionsA(core::mem::transmute(infhandle), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sizeneeded.unwrap_or(core::mem::zeroed()))).ok() + SetupEnumInfSectionsA(infhandle, index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sizeneeded.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupEnumInfSectionsW(infhandle: *const core::ffi::c_void, index: u32, buffer: Option<&mut [u16]>, sizeneeded: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupEnumInfSectionsW(infhandle : *const core::ffi::c_void, index : u32, buffer : windows_core::PWSTR, size : u32, sizeneeded : *mut u32) -> super::super::Foundation:: BOOL); - SetupEnumInfSectionsW(core::mem::transmute(infhandle), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sizeneeded.unwrap_or(core::mem::zeroed()))).ok() + SetupEnumInfSectionsW(infhandle, index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sizeneeded.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupFindFirstLineA(infhandle: *const core::ffi::c_void, section: P1, key: P2, context: *mut INFCONTEXT) -> windows_core::Result<()> @@ -2739,7 +2719,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupFindFirstLineA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, key : windows_core::PCSTR, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupFindFirstLineA(core::mem::transmute(infhandle), section.param().abi(), key.param().abi(), core::mem::transmute(context)).ok() + SetupFindFirstLineA(infhandle, section.param().abi(), key.param().abi(), core::mem::transmute(context)).ok() } #[inline] pub unsafe fn SetupFindFirstLineW(infhandle: *const core::ffi::c_void, section: P1, key: P2, context: *mut INFCONTEXT) -> windows_core::Result<()> @@ -2748,12 +2728,12 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupFindFirstLineW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, key : windows_core::PCWSTR, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupFindFirstLineW(core::mem::transmute(infhandle), section.param().abi(), key.param().abi(), core::mem::transmute(context)).ok() + SetupFindFirstLineW(infhandle, section.param().abi(), key.param().abi(), core::mem::transmute(context)).ok() } #[inline] pub unsafe fn SetupFindNextLine(contextin: *const INFCONTEXT, contextout: *mut INFCONTEXT) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupFindNextLine(contextin : *const INFCONTEXT, contextout : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupFindNextLine(core::mem::transmute(contextin), core::mem::transmute(contextout)).ok() + SetupFindNextLine(contextin, core::mem::transmute(contextout)).ok() } #[inline] pub unsafe fn SetupFindNextMatchLineA(contextin: *const INFCONTEXT, key: P1, contextout: *mut INFCONTEXT) -> windows_core::Result<()> @@ -2761,7 +2741,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupFindNextMatchLineA(contextin : *const INFCONTEXT, key : windows_core::PCSTR, contextout : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupFindNextMatchLineA(core::mem::transmute(contextin), key.param().abi(), core::mem::transmute(contextout)).ok() + SetupFindNextMatchLineA(contextin, key.param().abi(), core::mem::transmute(contextout)).ok() } #[inline] pub unsafe fn SetupFindNextMatchLineW(contextin: *const INFCONTEXT, key: P1, contextout: *mut INFCONTEXT) -> windows_core::Result<()> @@ -2769,7 +2749,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupFindNextMatchLineW(contextin : *const INFCONTEXT, key : windows_core::PCWSTR, contextout : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupFindNextMatchLineW(core::mem::transmute(contextin), key.param().abi(), core::mem::transmute(contextout)).ok() + SetupFindNextMatchLineW(contextin, key.param().abi(), core::mem::transmute(contextout)).ok() } #[inline] pub unsafe fn SetupFreeSourceListA(list: &mut [*mut windows_core::PCSTR]) -> windows_core::Result<()> { @@ -2784,22 +2764,22 @@ pub unsafe fn SetupFreeSourceListW(list: &mut [*mut windows_core::PCWSTR]) -> wi #[inline] pub unsafe fn SetupGetBackupInformationA(queuehandle: *const core::ffi::c_void, backupparams: *mut SP_BACKUP_QUEUE_PARAMS_V2_A) -> super::super::Foundation::BOOL { windows_targets::link!("setupapi.dll" "system" fn SetupGetBackupInformationA(queuehandle : *const core::ffi::c_void, backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_A) -> super::super::Foundation:: BOOL); - SetupGetBackupInformationA(core::mem::transmute(queuehandle), core::mem::transmute(backupparams)) + SetupGetBackupInformationA(queuehandle, core::mem::transmute(backupparams)) } #[inline] pub unsafe fn SetupGetBackupInformationW(queuehandle: *const core::ffi::c_void, backupparams: *mut SP_BACKUP_QUEUE_PARAMS_V2_W) -> super::super::Foundation::BOOL { windows_targets::link!("setupapi.dll" "system" fn SetupGetBackupInformationW(queuehandle : *const core::ffi::c_void, backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_W) -> super::super::Foundation:: BOOL); - SetupGetBackupInformationW(core::mem::transmute(queuehandle), core::mem::transmute(backupparams)) + SetupGetBackupInformationW(queuehandle, core::mem::transmute(backupparams)) } #[inline] pub unsafe fn SetupGetBinaryField(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetBinaryField(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : *mut u8, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetBinaryField(core::mem::transmute(context), core::mem::transmute(fieldindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetBinaryField(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetFieldCount(context: *const INFCONTEXT) -> u32 { windows_targets::link!("setupapi.dll" "system" fn SetupGetFieldCount(context : *const INFCONTEXT) -> u32); - SetupGetFieldCount(core::mem::transmute(context)) + SetupGetFieldCount(context) } #[inline] pub unsafe fn SetupGetFileCompressionInfoA(sourcefilename: P0, actualsourcefilename: *mut windows_core::PSTR, sourcefilesize: *mut u32, targetfilesize: *mut u32, compressiontype: *mut FILE_COMPRESSION_TYPE) -> u32 @@ -2836,12 +2816,12 @@ where #[inline] pub unsafe fn SetupGetFileQueueCount(filequeue: *const core::ffi::c_void, subqueuefileop: u32, numoperations: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetFileQueueCount(filequeue : *const core::ffi::c_void, subqueuefileop : u32, numoperations : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetFileQueueCount(core::mem::transmute(filequeue), core::mem::transmute(subqueuefileop), core::mem::transmute(numoperations)).ok() + SetupGetFileQueueCount(filequeue, subqueuefileop, core::mem::transmute(numoperations)).ok() } #[inline] pub unsafe fn SetupGetFileQueueFlags(filequeue: *const core::ffi::c_void, flags: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetFileQueueFlags(filequeue : *const core::ffi::c_void, flags : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetFileQueueFlags(core::mem::transmute(filequeue), core::mem::transmute(flags)).ok() + SetupGetFileQueueFlags(filequeue, core::mem::transmute(flags)).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] @@ -2869,7 +2849,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfFileListA(directorypath : windows_core::PCSTR, infstyle : INF_STYLE, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfFileListA(directorypath.param().abi(), core::mem::transmute(infstyle), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetInfFileListA(directorypath.param().abi(), infstyle, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetInfFileListW(directorypath: P0, infstyle: INF_STYLE, returnbuffer: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -2877,17 +2857,17 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfFileListW(directorypath : windows_core::PCWSTR, infstyle : INF_STYLE, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfFileListW(directorypath.param().abi(), core::mem::transmute(infstyle), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetInfFileListW(directorypath.param().abi(), infstyle, core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetInfInformationA(infspec: *const core::ffi::c_void, searchcontrol: u32, returnbuffer: Option<*mut SP_INF_INFORMATION>, returnbuffersize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfInformationA(infspec : *const core::ffi::c_void, searchcontrol : u32, returnbuffer : *mut SP_INF_INFORMATION, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfInformationA(core::mem::transmute(infspec), core::mem::transmute(searchcontrol), core::mem::transmute(returnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnbuffersize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetInfInformationA(infspec, searchcontrol, core::mem::transmute(returnbuffer.unwrap_or(core::mem::zeroed())), returnbuffersize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetInfInformationW(infspec: *const core::ffi::c_void, searchcontrol: u32, returnbuffer: Option<*mut SP_INF_INFORMATION>, returnbuffersize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfInformationW(infspec : *const core::ffi::c_void, searchcontrol : u32, returnbuffer : *mut SP_INF_INFORMATION, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfInformationW(core::mem::transmute(infspec), core::mem::transmute(searchcontrol), core::mem::transmute(returnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnbuffersize), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetInfInformationW(infspec, searchcontrol, core::mem::transmute(returnbuffer.unwrap_or(core::mem::zeroed())), returnbuffersize, core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetInfPublishedNameA(driverstorelocation: P0, returnbuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -2908,7 +2888,7 @@ where #[inline] pub unsafe fn SetupGetIntField(context: *const INFCONTEXT, fieldindex: u32, integervalue: *mut i32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetIntField(context : *const INFCONTEXT, fieldindex : u32, integervalue : *mut i32) -> super::super::Foundation:: BOOL); - SetupGetIntField(core::mem::transmute(context), core::mem::transmute(fieldindex), core::mem::transmute(integervalue)).ok() + SetupGetIntField(context, fieldindex, core::mem::transmute(integervalue)).ok() } #[inline] pub unsafe fn SetupGetLineByIndexA(infhandle: *const core::ffi::c_void, section: P1, index: u32, context: *mut INFCONTEXT) -> windows_core::Result<()> @@ -2916,7 +2896,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineByIndexA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, index : u32, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupGetLineByIndexA(core::mem::transmute(infhandle), section.param().abi(), core::mem::transmute(index), core::mem::transmute(context)).ok() + SetupGetLineByIndexA(infhandle, section.param().abi(), index, core::mem::transmute(context)).ok() } #[inline] pub unsafe fn SetupGetLineByIndexW(infhandle: *const core::ffi::c_void, section: P1, index: u32, context: *mut INFCONTEXT) -> windows_core::Result<()> @@ -2924,7 +2904,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineByIndexW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, index : u32, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); - SetupGetLineByIndexW(core::mem::transmute(infhandle), section.param().abi(), core::mem::transmute(index), core::mem::transmute(context)).ok() + SetupGetLineByIndexW(infhandle, section.param().abi(), index, core::mem::transmute(context)).ok() } #[inline] pub unsafe fn SetupGetLineCountA(infhandle: *const core::ffi::c_void, section: P1) -> i32 @@ -2932,7 +2912,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineCountA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> i32); - SetupGetLineCountA(core::mem::transmute(infhandle), section.param().abi()) + SetupGetLineCountA(infhandle, section.param().abi()) } #[inline] pub unsafe fn SetupGetLineCountW(infhandle: *const core::ffi::c_void, section: P1) -> i32 @@ -2940,7 +2920,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineCountW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> i32); - SetupGetLineCountW(core::mem::transmute(infhandle), section.param().abi()) + SetupGetLineCountW(infhandle, section.param().abi()) } #[inline] pub unsafe fn SetupGetLineTextA(context: Option<*const INFCONTEXT>, infhandle: Option<*const core::ffi::c_void>, section: P2, key: P3, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -2963,12 +2943,12 @@ where #[inline] pub unsafe fn SetupGetMultiSzFieldA(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetMultiSzFieldA(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetMultiSzFieldA(core::mem::transmute(context), core::mem::transmute(fieldindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetMultiSzFieldA(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetMultiSzFieldW(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetMultiSzFieldW(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetMultiSzFieldW(core::mem::transmute(context), core::mem::transmute(fieldindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetMultiSzFieldW(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetNonInteractiveMode() -> super::super::Foundation::BOOL { @@ -2981,7 +2961,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileLocationA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCSTR, sourceid : *mut u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetSourceFileLocationA(core::mem::transmute(infhandle), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), core::mem::transmute(sourceid), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetSourceFileLocationA(infhandle, core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), core::mem::transmute(sourceid), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetSourceFileLocationW(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P2, sourceid: *mut u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -2989,7 +2969,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileLocationW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCWSTR, sourceid : *mut u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetSourceFileLocationW(core::mem::transmute(infhandle), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), core::mem::transmute(sourceid), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetSourceFileLocationW(infhandle, core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), core::mem::transmute(sourceid), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetSourceFileSizeA(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P2, section: P3, filesize: *mut u32, roundingfactor: u32) -> windows_core::Result<()> @@ -2998,7 +2978,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileSizeA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCSTR, section : windows_core::PCSTR, filesize : *mut u32, roundingfactor : u32) -> super::super::Foundation:: BOOL); - SetupGetSourceFileSizeA(core::mem::transmute(infhandle), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), section.param().abi(), core::mem::transmute(filesize), core::mem::transmute(roundingfactor)).ok() + SetupGetSourceFileSizeA(infhandle, core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), section.param().abi(), core::mem::transmute(filesize), roundingfactor).ok() } #[inline] pub unsafe fn SetupGetSourceFileSizeW(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P2, section: P3, filesize: *mut u32, roundingfactor: u32) -> windows_core::Result<()> @@ -3007,27 +2987,27 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileSizeW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCWSTR, section : windows_core::PCWSTR, filesize : *mut u32, roundingfactor : u32) -> super::super::Foundation:: BOOL); - SetupGetSourceFileSizeW(core::mem::transmute(infhandle), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), section.param().abi(), core::mem::transmute(filesize), core::mem::transmute(roundingfactor)).ok() + SetupGetSourceFileSizeW(infhandle, core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), filename.param().abi(), section.param().abi(), core::mem::transmute(filesize), roundingfactor).ok() } #[inline] pub unsafe fn SetupGetSourceInfoA(infhandle: *const core::ffi::c_void, sourceid: u32, infodesired: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceInfoA(infhandle : *const core::ffi::c_void, sourceid : u32, infodesired : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetSourceInfoA(core::mem::transmute(infhandle), core::mem::transmute(sourceid), core::mem::transmute(infodesired), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetSourceInfoA(infhandle, sourceid, infodesired, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetSourceInfoW(infhandle: *const core::ffi::c_void, sourceid: u32, infodesired: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceInfoW(infhandle : *const core::ffi::c_void, sourceid : u32, infodesired : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetSourceInfoW(core::mem::transmute(infhandle), core::mem::transmute(sourceid), core::mem::transmute(infodesired), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetSourceInfoW(infhandle, sourceid, infodesired, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetStringFieldA(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetStringFieldA(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetStringFieldA(core::mem::transmute(context), core::mem::transmute(fieldindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetStringFieldA(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetStringFieldW(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupGetStringFieldW(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetStringFieldW(core::mem::transmute(context), core::mem::transmute(fieldindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetStringFieldW(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetTargetPathA(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, section: P2, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -3035,7 +3015,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetTargetPathA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, section : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetTargetPathA(core::mem::transmute(infhandle), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), section.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetTargetPathA(infhandle, core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), section.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetTargetPathW(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, section: P2, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -3043,7 +3023,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetTargetPathW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, section : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetTargetPathW(core::mem::transmute(infhandle), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), section.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupGetTargetPathW(infhandle, core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), section.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupGetThreadLogToken() -> u64 { @@ -3058,7 +3038,7 @@ pub unsafe fn SetupInitDefaultQueueCallback(ownerwindow: Option, alternateprogresswindow: Option, progressmessage: u32, reserved1: Option, reserved2: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("setupapi.dll" "system" fn SetupInitDefaultQueueCallbackEx(ownerwindow : super::super::Foundation:: HWND, alternateprogresswindow : super::super::Foundation:: HWND, progressmessage : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> *mut core::ffi::c_void); - SetupInitDefaultQueueCallbackEx(core::mem::transmute(ownerwindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(alternateprogresswindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(progressmessage), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) + SetupInitDefaultQueueCallbackEx(core::mem::transmute(ownerwindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(alternateprogresswindow.unwrap_or(core::mem::zeroed())), progressmessage, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupInitializeFileLogA(logfilename: P0, flags: u32) -> *mut core::ffi::c_void @@ -3066,7 +3046,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInitializeFileLogA(logfilename : windows_core::PCSTR, flags : u32) -> *mut core::ffi::c_void); - SetupInitializeFileLogA(logfilename.param().abi(), core::mem::transmute(flags)) + SetupInitializeFileLogA(logfilename.param().abi(), flags) } #[inline] pub unsafe fn SetupInitializeFileLogW(logfilename: P0, flags: u32) -> *mut core::ffi::c_void @@ -3074,7 +3054,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInitializeFileLogW(logfilename : windows_core::PCWSTR, flags : u32) -> *mut core::ffi::c_void); - SetupInitializeFileLogW(logfilename.param().abi(), core::mem::transmute(flags)) + SetupInitializeFileLogW(logfilename.param().abi(), flags) } #[inline] pub unsafe fn SetupInstallFileA(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -3084,7 +3064,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCSTR, sourcepathroot : windows_core::PCSTR, destinationname : windows_core::PCSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupInstallFileA(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), core::mem::transmute(copystyle), core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + SetupInstallFileA(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupInstallFileExA(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>, filewasinuse: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> @@ -3094,7 +3074,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileExA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCSTR, sourcepathroot : windows_core::PCSTR, destinationname : windows_core::PCSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void, filewasinuse : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetupInstallFileExA(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), core::mem::transmute(copystyle), core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(filewasinuse)).ok() + SetupInstallFileExA(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(filewasinuse)).ok() } #[inline] pub unsafe fn SetupInstallFileExW(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>, filewasinuse: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> @@ -3104,7 +3084,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileExW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCWSTR, sourcepathroot : windows_core::PCWSTR, destinationname : windows_core::PCWSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void, filewasinuse : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetupInstallFileExW(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), core::mem::transmute(copystyle), core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(filewasinuse)).ok() + SetupInstallFileExW(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(filewasinuse)).ok() } #[inline] pub unsafe fn SetupInstallFileW(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -3114,7 +3094,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCWSTR, sourcepathroot : windows_core::PCWSTR, destinationname : windows_core::PCWSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupInstallFileW(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), core::mem::transmute(copystyle), core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + SetupInstallFileW(core::mem::transmute(infhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(infcontext.unwrap_or(core::mem::zeroed())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, core::mem::transmute(copymsghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupInstallFilesFromInfSectionA(infhandle: *const core::ffi::c_void, layoutinfhandle: Option<*const core::ffi::c_void>, filequeue: *const core::ffi::c_void, sectionname: P3, sourcerootpath: P4, copyflags: u32) -> windows_core::Result<()> @@ -3123,7 +3103,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFilesFromInfSectionA(infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, filequeue : *const core::ffi::c_void, sectionname : windows_core::PCSTR, sourcerootpath : windows_core::PCSTR, copyflags : u32) -> super::super::Foundation:: BOOL); - SetupInstallFilesFromInfSectionA(core::mem::transmute(infhandle), core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(filequeue), sectionname.param().abi(), sourcerootpath.param().abi(), core::mem::transmute(copyflags)).ok() + SetupInstallFilesFromInfSectionA(infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), filequeue, sectionname.param().abi(), sourcerootpath.param().abi(), copyflags).ok() } #[inline] pub unsafe fn SetupInstallFilesFromInfSectionW(infhandle: *const core::ffi::c_void, layoutinfhandle: Option<*const core::ffi::c_void>, filequeue: *const core::ffi::c_void, sectionname: P3, sourcerootpath: P4, copyflags: u32) -> windows_core::Result<()> @@ -3132,7 +3112,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFilesFromInfSectionW(infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, filequeue : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, sourcerootpath : windows_core::PCWSTR, copyflags : u32) -> super::super::Foundation:: BOOL); - SetupInstallFilesFromInfSectionW(core::mem::transmute(infhandle), core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(filequeue), sectionname.param().abi(), sourcerootpath.param().abi(), core::mem::transmute(copyflags)).ok() + SetupInstallFilesFromInfSectionW(infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), filequeue, sectionname.param().abi(), sourcerootpath.param().abi(), copyflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3142,20 +3122,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFromInfSectionA(owner : super::super::Foundation:: HWND, infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : u32, relativekeyroot : super::super::System::Registry:: HKEY, sourcerootpath : windows_core::PCSTR, copyflags : u32, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupInstallFromInfSectionA( - core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(infhandle), - sectionname.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(relativekeyroot.unwrap_or(core::mem::zeroed())), - sourcerootpath.param().abi(), - core::mem::transmute(copyflags), - core::mem::transmute(msghandler.unwrap_or(core::mem::zeroed())), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), - ) - .ok() + SetupInstallFromInfSectionA(core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), infhandle, sectionname.param().abi(), flags, core::mem::transmute(relativekeyroot.unwrap_or(core::mem::zeroed())), sourcerootpath.param().abi(), copyflags, core::mem::transmute(msghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3165,20 +3132,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallFromInfSectionW(owner : super::super::Foundation:: HWND, infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : u32, relativekeyroot : super::super::System::Registry:: HKEY, sourcerootpath : windows_core::PCWSTR, copyflags : u32, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupInstallFromInfSectionW( - core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(infhandle), - sectionname.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(relativekeyroot.unwrap_or(core::mem::zeroed())), - sourcerootpath.param().abi(), - core::mem::transmute(copyflags), - core::mem::transmute(msghandler.unwrap_or(core::mem::zeroed())), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), - ) - .ok() + SetupInstallFromInfSectionW(core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), infhandle, sectionname.param().abi(), flags, core::mem::transmute(relativekeyroot.unwrap_or(core::mem::zeroed())), sourcerootpath.param().abi(), copyflags, core::mem::transmute(msghandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionA(infhandle: *const core::ffi::c_void, sectionname: P1, flags: SPSVCINST_FLAGS) -> windows_core::Result<()> @@ -3186,7 +3140,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : SPSVCINST_FLAGS) -> super::super::Foundation:: BOOL); - SetupInstallServicesFromInfSectionA(core::mem::transmute(infhandle), sectionname.param().abi(), core::mem::transmute(flags)).ok() + SetupInstallServicesFromInfSectionA(infhandle, sectionname.param().abi(), flags).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionExA(infhandle: *const core::ffi::c_void, sectionname: P1, flags: SPSVCINST_FLAGS, deviceinfoset: Option, deviceinfodata: Option<*const SP_DEVINFO_DATA>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -3194,7 +3148,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionExA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : SPSVCINST_FLAGS, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupInstallServicesFromInfSectionExA(core::mem::transmute(infhandle), sectionname.param().abi(), core::mem::transmute(flags), core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupInstallServicesFromInfSectionExA(infhandle, sectionname.param().abi(), flags, core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionExW(infhandle: *const core::ffi::c_void, sectionname: P1, flags: SPSVCINST_FLAGS, deviceinfoset: Option, deviceinfodata: Option<*const SP_DEVINFO_DATA>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -3202,7 +3156,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionExW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : SPSVCINST_FLAGS, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupInstallServicesFromInfSectionExW(core::mem::transmute(infhandle), sectionname.param().abi(), core::mem::transmute(flags), core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupInstallServicesFromInfSectionExW(infhandle, sectionname.param().abi(), flags, core::mem::transmute(deviceinfoset.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceinfodata.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionW(infhandle: *const core::ffi::c_void, sectionname: P1, flags: SPSVCINST_FLAGS) -> windows_core::Result<()> @@ -3210,7 +3164,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : SPSVCINST_FLAGS) -> super::super::Foundation:: BOOL); - SetupInstallServicesFromInfSectionW(core::mem::transmute(infhandle), sectionname.param().abi(), core::mem::transmute(flags)).ok() + SetupInstallServicesFromInfSectionW(infhandle, sectionname.param().abi(), flags).ok() } #[inline] pub unsafe fn SetupIterateCabinetA(cabinetfile: P0, reserved: Option, msghandler: PSP_FILE_CALLBACK_A, context: *const core::ffi::c_void) -> windows_core::Result<()> @@ -3218,7 +3172,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupIterateCabinetA(cabinetfile : windows_core::PCSTR, reserved : u32, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupIterateCabinetA(cabinetfile.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(msghandler), core::mem::transmute(context)).ok() + SetupIterateCabinetA(cabinetfile.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), msghandler, context).ok() } #[inline] pub unsafe fn SetupIterateCabinetW(cabinetfile: P0, reserved: Option, msghandler: PSP_FILE_CALLBACK_W, context: *const core::ffi::c_void) -> windows_core::Result<()> @@ -3226,7 +3180,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupIterateCabinetW(cabinetfile : windows_core::PCWSTR, reserved : u32, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupIterateCabinetW(cabinetfile.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(msghandler), core::mem::transmute(context)).ok() + SetupIterateCabinetW(cabinetfile.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), msghandler, context).ok() } #[inline] pub unsafe fn SetupLogErrorA(messagestring: P0, severity: u32) -> windows_core::Result<()> @@ -3234,7 +3188,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorA(messagestring : windows_core::PCSTR, severity : u32) -> super::super::Foundation:: BOOL); - SetupLogErrorA(messagestring.param().abi(), core::mem::transmute(severity)).ok() + SetupLogErrorA(messagestring.param().abi(), severity).ok() } #[inline] pub unsafe fn SetupLogErrorW(messagestring: P0, severity: u32) -> windows_core::Result<()> @@ -3242,7 +3196,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorW(messagestring : windows_core::PCWSTR, severity : u32) -> super::super::Foundation:: BOOL); - SetupLogErrorW(messagestring.param().abi(), core::mem::transmute(severity)).ok() + SetupLogErrorW(messagestring.param().abi(), severity).ok() } #[inline] pub unsafe fn SetupLogFileA(fileloghandle: *const core::ffi::c_void, logsectionname: P1, sourcefilename: P2, targetfilename: P3, checksum: u32, disktagfile: P5, diskdescription: P6, otherinfo: P7, flags: u32) -> windows_core::Result<()> @@ -3255,7 +3209,7 @@ where P7: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupLogFileA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, checksum : u32, disktagfile : windows_core::PCSTR, diskdescription : windows_core::PCSTR, otherinfo : windows_core::PCSTR, flags : u32) -> super::super::Foundation:: BOOL); - SetupLogFileA(core::mem::transmute(fileloghandle), logsectionname.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), core::mem::transmute(checksum), disktagfile.param().abi(), diskdescription.param().abi(), otherinfo.param().abi(), core::mem::transmute(flags)).ok() + SetupLogFileA(fileloghandle, logsectionname.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), checksum, disktagfile.param().abi(), diskdescription.param().abi(), otherinfo.param().abi(), flags).ok() } #[inline] pub unsafe fn SetupLogFileW(fileloghandle: *const core::ffi::c_void, logsectionname: P1, sourcefilename: P2, targetfilename: P3, checksum: u32, disktagfile: P5, diskdescription: P6, otherinfo: P7, flags: u32) -> windows_core::Result<()> @@ -3268,7 +3222,7 @@ where P7: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupLogFileW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, checksum : u32, disktagfile : windows_core::PCWSTR, diskdescription : windows_core::PCWSTR, otherinfo : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - SetupLogFileW(core::mem::transmute(fileloghandle), logsectionname.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), core::mem::transmute(checksum), disktagfile.param().abi(), diskdescription.param().abi(), otherinfo.param().abi(), core::mem::transmute(flags)).ok() + SetupLogFileW(fileloghandle, logsectionname.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), checksum, disktagfile.param().abi(), diskdescription.param().abi(), otherinfo.param().abi(), flags).ok() } #[inline] pub unsafe fn SetupOpenAppendInfFileA(filename: P0, infhandle: *const core::ffi::c_void, errorline: Option<*mut u32>) -> windows_core::Result<()> @@ -3276,7 +3230,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupOpenAppendInfFileA(filename : windows_core::PCSTR, infhandle : *const core::ffi::c_void, errorline : *mut u32) -> super::super::Foundation:: BOOL); - SetupOpenAppendInfFileA(filename.param().abi(), core::mem::transmute(infhandle), core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))).ok() + SetupOpenAppendInfFileA(filename.param().abi(), infhandle, core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupOpenAppendInfFileW(filename: P0, infhandle: *const core::ffi::c_void, errorline: Option<*mut u32>) -> windows_core::Result<()> @@ -3284,7 +3238,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupOpenAppendInfFileW(filename : windows_core::PCWSTR, infhandle : *const core::ffi::c_void, errorline : *mut u32) -> super::super::Foundation:: BOOL); - SetupOpenAppendInfFileW(filename.param().abi(), core::mem::transmute(infhandle), core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))).ok() + SetupOpenAppendInfFileW(filename.param().abi(), infhandle, core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupOpenFileQueue() -> *mut core::ffi::c_void { @@ -3298,7 +3252,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupOpenInfFileA(filename : windows_core::PCSTR, infclass : windows_core::PCSTR, infstyle : INF_STYLE, errorline : *mut u32) -> *mut core::ffi::c_void); - SetupOpenInfFileA(filename.param().abi(), infclass.param().abi(), core::mem::transmute(infstyle), core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))) + SetupOpenInfFileA(filename.param().abi(), infclass.param().abi(), infstyle, core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupOpenInfFileW(filename: P0, infclass: P1, infstyle: INF_STYLE, errorline: Option<*mut u32>) -> *mut core::ffi::c_void @@ -3307,7 +3261,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupOpenInfFileW(filename : windows_core::PCWSTR, infclass : windows_core::PCWSTR, infstyle : INF_STYLE, errorline : *mut u32) -> *mut core::ffi::c_void); - SetupOpenInfFileW(filename.param().abi(), infclass.param().abi(), core::mem::transmute(infstyle), core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))) + SetupOpenInfFileW(filename.param().abi(), infclass.param().abi(), infstyle, core::mem::transmute(errorline.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupOpenLog(erase: bool) -> windows_core::Result<()> { @@ -3325,7 +3279,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupPrepareQueueForRestoreA(queuehandle : *const core::ffi::c_void, backuppath : windows_core::PCSTR, restoreflags : u32) -> super::super::Foundation:: BOOL); - SetupPrepareQueueForRestoreA(core::mem::transmute(queuehandle), backuppath.param().abi(), core::mem::transmute(restoreflags)) + SetupPrepareQueueForRestoreA(queuehandle, backuppath.param().abi(), restoreflags) } #[inline] pub unsafe fn SetupPrepareQueueForRestoreW(queuehandle: *const core::ffi::c_void, backuppath: P1, restoreflags: u32) -> super::super::Foundation::BOOL @@ -3333,7 +3287,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupPrepareQueueForRestoreW(queuehandle : *const core::ffi::c_void, backuppath : windows_core::PCWSTR, restoreflags : u32) -> super::super::Foundation:: BOOL); - SetupPrepareQueueForRestoreW(core::mem::transmute(queuehandle), backuppath.param().abi(), core::mem::transmute(restoreflags)) + SetupPrepareQueueForRestoreW(queuehandle, backuppath.param().abi(), restoreflags) } #[inline] pub unsafe fn SetupPromptForDiskA(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, diskname: P2, pathtosource: P3, filesought: P4, tagfile: P5, diskpromptstyle: u32, pathbuffer: Option<&mut [u8]>, pathrequiredsize: Option<*mut u32>) -> u32 @@ -3345,7 +3299,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupPromptForDiskA(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCSTR, diskname : windows_core::PCSTR, pathtosource : windows_core::PCSTR, filesought : windows_core::PCSTR, tagfile : windows_core::PCSTR, diskpromptstyle : u32, pathbuffer : windows_core::PSTR, pathbuffersize : u32, pathrequiredsize : *mut u32) -> u32); - SetupPromptForDiskA(core::mem::transmute(hwndparent), dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), filesought.param().abi(), tagfile.param().abi(), core::mem::transmute(diskpromptstyle), core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) + SetupPromptForDiskA(hwndparent, dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), filesought.param().abi(), tagfile.param().abi(), diskpromptstyle, core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupPromptForDiskW(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, diskname: P2, pathtosource: P3, filesought: P4, tagfile: P5, diskpromptstyle: u32, pathbuffer: Option<&mut [u16]>, pathrequiredsize: Option<*mut u32>) -> u32 @@ -3357,7 +3311,7 @@ where P5: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupPromptForDiskW(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCWSTR, diskname : windows_core::PCWSTR, pathtosource : windows_core::PCWSTR, filesought : windows_core::PCWSTR, tagfile : windows_core::PCWSTR, diskpromptstyle : u32, pathbuffer : windows_core::PWSTR, pathbuffersize : u32, pathrequiredsize : *mut u32) -> u32); - SetupPromptForDiskW(core::mem::transmute(hwndparent), dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), filesought.param().abi(), tagfile.param().abi(), core::mem::transmute(diskpromptstyle), core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) + SetupPromptForDiskW(hwndparent, dialogtitle.param().abi(), diskname.param().abi(), pathtosource.param().abi(), filesought.param().abi(), tagfile.param().abi(), diskpromptstyle, core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathrequiredsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupPromptReboot(filequeue: Option<*const core::ffi::c_void>, owner: Option, scanonly: bool) -> i32 { @@ -3367,12 +3321,12 @@ pub unsafe fn SetupPromptReboot(filequeue: Option<*const core::ffi::c_void>, own #[inline] pub unsafe fn SetupQueryDrivesInDiskSpaceListA(diskspace: *const core::ffi::c_void, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueryDrivesInDiskSpaceListA(diskspace : *const core::ffi::c_void, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryDrivesInDiskSpaceListA(core::mem::transmute(diskspace), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryDrivesInDiskSpaceListA(diskspace, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueryDrivesInDiskSpaceListW(diskspace: *const core::ffi::c_void, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueryDrivesInDiskSpaceListW(diskspace : *const core::ffi::c_void, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryDrivesInDiskSpaceListW(core::mem::transmute(diskspace), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryDrivesInDiskSpaceListW(diskspace, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueryFileLogA(fileloghandle: *const core::ffi::c_void, logsectionname: P1, targetfilename: P2, desiredinfo: SetupFileLogInfo, dataout: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -3381,7 +3335,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueryFileLogA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, targetfilename : windows_core::PCSTR, desiredinfo : SetupFileLogInfo, dataout : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryFileLogA(core::mem::transmute(fileloghandle), logsectionname.param().abi(), targetfilename.param().abi(), core::mem::transmute(desiredinfo), core::mem::transmute(dataout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dataout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryFileLogA(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi(), desiredinfo, core::mem::transmute(dataout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dataout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueryFileLogW(fileloghandle: *const core::ffi::c_void, logsectionname: P1, targetfilename: P2, desiredinfo: SetupFileLogInfo, dataout: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -3390,29 +3344,29 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueryFileLogW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, desiredinfo : SetupFileLogInfo, dataout : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryFileLogW(core::mem::transmute(fileloghandle), logsectionname.param().abi(), targetfilename.param().abi(), core::mem::transmute(desiredinfo), core::mem::transmute(dataout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dataout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryFileLogW(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi(), desiredinfo, core::mem::transmute(dataout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dataout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueryInfFileInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfFileInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryInfFileInformationA(core::mem::transmute(infinformation), core::mem::transmute(infindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryInfFileInformationA(infinformation, infindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueryInfFileInformationW(infinformation: *const SP_INF_INFORMATION, infindex: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfFileInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryInfFileInformationW(core::mem::transmute(infinformation), core::mem::transmute(infindex), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryInfFileInformationW(infinformation, infindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupQueryInfOriginalFileInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, originalfileinfo: *mut SP_ORIGINAL_FILE_INFO_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfOriginalFileInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, originalfileinfo : *mut SP_ORIGINAL_FILE_INFO_A) -> super::super::Foundation:: BOOL); - SetupQueryInfOriginalFileInformationA(core::mem::transmute(infinformation), core::mem::transmute(infindex), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(originalfileinfo)).ok() + SetupQueryInfOriginalFileInformationA(infinformation, infindex, core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(originalfileinfo)).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupQueryInfOriginalFileInformationW(infinformation: *const SP_INF_INFORMATION, infindex: u32, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, originalfileinfo: *mut SP_ORIGINAL_FILE_INFO_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfOriginalFileInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, originalfileinfo : *mut SP_ORIGINAL_FILE_INFO_W) -> super::super::Foundation:: BOOL); - SetupQueryInfOriginalFileInformationW(core::mem::transmute(infinformation), core::mem::transmute(infindex), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(originalfileinfo)).ok() + SetupQueryInfOriginalFileInformationW(infinformation, infindex, core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(originalfileinfo)).ok() } #[inline] pub unsafe fn SetupQueryInfVersionInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, key: P2, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -3420,7 +3374,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfVersionInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, key : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryInfVersionInformationA(core::mem::transmute(infinformation), core::mem::transmute(infindex), key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryInfVersionInformationA(infinformation, infindex, key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueryInfVersionInformationW(infinformation: *const SP_INF_INFORMATION, infindex: u32, key: P2, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> @@ -3428,17 +3382,17 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfVersionInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, key : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupQueryInfVersionInformationW(core::mem::transmute(infinformation), core::mem::transmute(infindex), key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() + SetupQueryInfVersionInformationW(infinformation, infindex, key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQuerySourceListA(flags: u32, list: *mut *mut windows_core::PCSTR, count: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQuerySourceListA(flags : u32, list : *mut *mut windows_core::PCSTR, count : *mut u32) -> super::super::Foundation:: BOOL); - SetupQuerySourceListA(core::mem::transmute(flags), core::mem::transmute(list), core::mem::transmute(count)).ok() + SetupQuerySourceListA(flags, core::mem::transmute(list), core::mem::transmute(count)).ok() } #[inline] pub unsafe fn SetupQuerySourceListW(flags: u32, list: *mut *mut windows_core::PCWSTR, count: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQuerySourceListW(flags : u32, list : *mut *mut windows_core::PCWSTR, count : *mut u32) -> super::super::Foundation:: BOOL); - SetupQuerySourceListW(core::mem::transmute(flags), core::mem::transmute(list), core::mem::transmute(count)).ok() + SetupQuerySourceListW(flags, core::mem::transmute(list), core::mem::transmute(count)).ok() } #[inline] pub unsafe fn SetupQuerySpaceRequiredOnDriveA(diskspace: *const core::ffi::c_void, drivespec: P1, spacerequired: *mut i64, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3446,7 +3400,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQuerySpaceRequiredOnDriveA(diskspace : *const core::ffi::c_void, drivespec : windows_core::PCSTR, spacerequired : *mut i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupQuerySpaceRequiredOnDriveA(core::mem::transmute(diskspace), drivespec.param().abi(), core::mem::transmute(spacerequired), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupQuerySpaceRequiredOnDriveA(diskspace, drivespec.param().abi(), core::mem::transmute(spacerequired), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQuerySpaceRequiredOnDriveW(diskspace: *const core::ffi::c_void, drivespec: P1, spacerequired: *mut i64, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3454,7 +3408,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQuerySpaceRequiredOnDriveW(diskspace : *const core::ffi::c_void, drivespec : windows_core::PCWSTR, spacerequired : *mut i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupQuerySpaceRequiredOnDriveW(core::mem::transmute(diskspace), drivespec.param().abi(), core::mem::transmute(spacerequired), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupQuerySpaceRequiredOnDriveW(diskspace, drivespec.param().abi(), core::mem::transmute(spacerequired), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupQueueCopyA(queuehandle: *const core::ffi::c_void, sourcerootpath: P1, sourcepath: P2, sourcefilename: P3, sourcedescription: P4, sourcetagfile: P5, targetdirectory: P6, targetfilename: P7, copystyle: u32) -> windows_core::Result<()> @@ -3468,17 +3422,17 @@ where P7: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyA(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, sourcepath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, sourcedescription : windows_core::PCSTR, sourcetagfile : windows_core::PCSTR, targetdirectory : windows_core::PCSTR, targetfilename : windows_core::PCSTR, copystyle : u32) -> super::super::Foundation:: BOOL); - SetupQueueCopyA(core::mem::transmute(queuehandle), sourcerootpath.param().abi(), sourcepath.param().abi(), sourcefilename.param().abi(), sourcedescription.param().abi(), sourcetagfile.param().abi(), targetdirectory.param().abi(), targetfilename.param().abi(), core::mem::transmute(copystyle)).ok() + SetupQueueCopyA(queuehandle, sourcerootpath.param().abi(), sourcepath.param().abi(), sourcefilename.param().abi(), sourcedescription.param().abi(), sourcetagfile.param().abi(), targetdirectory.param().abi(), targetfilename.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueCopyIndirectA(copyparams: *const SP_FILE_COPY_PARAMS_A) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyIndirectA(copyparams : *const SP_FILE_COPY_PARAMS_A) -> super::super::Foundation:: BOOL); - SetupQueueCopyIndirectA(core::mem::transmute(copyparams)).ok() + SetupQueueCopyIndirectA(copyparams).ok() } #[inline] pub unsafe fn SetupQueueCopyIndirectW(copyparams: *const SP_FILE_COPY_PARAMS_W) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyIndirectW(copyparams : *const SP_FILE_COPY_PARAMS_W) -> super::super::Foundation:: BOOL); - SetupQueueCopyIndirectW(core::mem::transmute(copyparams)).ok() + SetupQueueCopyIndirectW(copyparams).ok() } #[inline] pub unsafe fn SetupQueueCopySectionA(queuehandle: *const core::ffi::c_void, sourcerootpath: P1, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P4, copystyle: u32) -> windows_core::Result<()> @@ -3487,7 +3441,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopySectionA(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR, copystyle : u32) -> super::super::Foundation:: BOOL); - SetupQueueCopySectionA(core::mem::transmute(queuehandle), sourcerootpath.param().abi(), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi(), core::mem::transmute(copystyle)).ok() + SetupQueueCopySectionA(queuehandle, sourcerootpath.param().abi(), infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueCopySectionW(queuehandle: *const core::ffi::c_void, sourcerootpath: P1, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P4, copystyle: u32) -> windows_core::Result<()> @@ -3496,7 +3450,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopySectionW(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, copystyle : u32) -> super::super::Foundation:: BOOL); - SetupQueueCopySectionW(core::mem::transmute(queuehandle), sourcerootpath.param().abi(), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi(), core::mem::transmute(copystyle)).ok() + SetupQueueCopySectionW(queuehandle, sourcerootpath.param().abi(), infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueCopyW(queuehandle: *const core::ffi::c_void, sourcerootpath: P1, sourcepath: P2, sourcefilename: P3, sourcedescription: P4, sourcetagfile: P5, targetdirectory: P6, targetfilename: P7, copystyle: u32) -> windows_core::Result<()> @@ -3510,7 +3464,7 @@ where P7: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyW(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, sourcepath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, sourcedescription : windows_core::PCWSTR, sourcetagfile : windows_core::PCWSTR, targetdirectory : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, copystyle : u32) -> super::super::Foundation:: BOOL); - SetupQueueCopyW(core::mem::transmute(queuehandle), sourcerootpath.param().abi(), sourcepath.param().abi(), sourcefilename.param().abi(), sourcedescription.param().abi(), sourcetagfile.param().abi(), targetdirectory.param().abi(), targetfilename.param().abi(), core::mem::transmute(copystyle)).ok() + SetupQueueCopyW(queuehandle, sourcerootpath.param().abi(), sourcepath.param().abi(), sourcefilename.param().abi(), sourcedescription.param().abi(), sourcetagfile.param().abi(), targetdirectory.param().abi(), targetfilename.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueDefaultCopyA(queuehandle: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, sourcerootpath: P2, sourcefilename: P3, targetfilename: P4, copystyle: u32) -> windows_core::Result<()> @@ -3520,7 +3474,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueDefaultCopyA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, copystyle : u32) -> super::super::Foundation:: BOOL); - SetupQueueDefaultCopyA(core::mem::transmute(queuehandle), core::mem::transmute(infhandle), sourcerootpath.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), core::mem::transmute(copystyle)).ok() + SetupQueueDefaultCopyA(queuehandle, infhandle, sourcerootpath.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueDefaultCopyW(queuehandle: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, sourcerootpath: P2, sourcefilename: P3, targetfilename: P4, copystyle: u32) -> windows_core::Result<()> @@ -3530,7 +3484,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueDefaultCopyW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, copystyle : u32) -> super::super::Foundation:: BOOL); - SetupQueueDefaultCopyW(core::mem::transmute(queuehandle), core::mem::transmute(infhandle), sourcerootpath.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), core::mem::transmute(copystyle)).ok() + SetupQueueDefaultCopyW(queuehandle, infhandle, sourcerootpath.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueDeleteA(queuehandle: *const core::ffi::c_void, pathpart1: P1, pathpart2: P2) -> windows_core::Result<()> @@ -3539,7 +3493,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteA(queuehandle : *const core::ffi::c_void, pathpart1 : windows_core::PCSTR, pathpart2 : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupQueueDeleteA(core::mem::transmute(queuehandle), pathpart1.param().abi(), pathpart2.param().abi()).ok() + SetupQueueDeleteA(queuehandle, pathpart1.param().abi(), pathpart2.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueDeleteSectionA(queuehandle: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P3) -> windows_core::Result<()> @@ -3547,7 +3501,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteSectionA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupQueueDeleteSectionA(core::mem::transmute(queuehandle), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() + SetupQueueDeleteSectionA(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueDeleteSectionW(queuehandle: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P3) -> windows_core::Result<()> @@ -3555,7 +3509,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteSectionW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupQueueDeleteSectionW(core::mem::transmute(queuehandle), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() + SetupQueueDeleteSectionW(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueDeleteW(queuehandle: *const core::ffi::c_void, pathpart1: P1, pathpart2: P2) -> windows_core::Result<()> @@ -3564,7 +3518,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteW(queuehandle : *const core::ffi::c_void, pathpart1 : windows_core::PCWSTR, pathpart2 : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupQueueDeleteW(core::mem::transmute(queuehandle), pathpart1.param().abi(), pathpart2.param().abi()).ok() + SetupQueueDeleteW(queuehandle, pathpart1.param().abi(), pathpart2.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueRenameA(queuehandle: *const core::ffi::c_void, sourcepath: P1, sourcefilename: P2, targetpath: P3, targetfilename: P4) -> windows_core::Result<()> @@ -3575,7 +3529,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameA(queuehandle : *const core::ffi::c_void, sourcepath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetpath : windows_core::PCSTR, targetfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupQueueRenameA(core::mem::transmute(queuehandle), sourcepath.param().abi(), sourcefilename.param().abi(), targetpath.param().abi(), targetfilename.param().abi()).ok() + SetupQueueRenameA(queuehandle, sourcepath.param().abi(), sourcefilename.param().abi(), targetpath.param().abi(), targetfilename.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueRenameSectionA(queuehandle: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P3) -> windows_core::Result<()> @@ -3583,7 +3537,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameSectionA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupQueueRenameSectionA(core::mem::transmute(queuehandle), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() + SetupQueueRenameSectionA(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueRenameSectionW(queuehandle: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P3) -> windows_core::Result<()> @@ -3591,7 +3545,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameSectionW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupQueueRenameSectionW(core::mem::transmute(queuehandle), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() + SetupQueueRenameSectionW(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), section.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueRenameW(queuehandle: *const core::ffi::c_void, sourcepath: P1, sourcefilename: P2, targetpath: P3, targetfilename: P4) -> windows_core::Result<()> @@ -3602,7 +3556,7 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameW(queuehandle : *const core::ffi::c_void, sourcepath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetpath : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupQueueRenameW(core::mem::transmute(queuehandle), sourcepath.param().abi(), sourcefilename.param().abi(), targetpath.param().abi(), targetfilename.param().abi()).ok() + SetupQueueRenameW(queuehandle, sourcepath.param().abi(), sourcefilename.param().abi(), targetpath.param().abi(), targetfilename.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFileLogEntryA(fileloghandle: *const core::ffi::c_void, logsectionname: P1, targetfilename: P2) -> windows_core::Result<()> @@ -3611,7 +3565,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFileLogEntryA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, targetfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupRemoveFileLogEntryA(core::mem::transmute(fileloghandle), logsectionname.param().abi(), targetfilename.param().abi()).ok() + SetupRemoveFileLogEntryA(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFileLogEntryW(fileloghandle: *const core::ffi::c_void, logsectionname: P1, targetfilename: P2) -> windows_core::Result<()> @@ -3620,7 +3574,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFileLogEntryW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupRemoveFileLogEntryW(core::mem::transmute(fileloghandle), logsectionname.param().abi(), targetfilename.param().abi()).ok() + SetupRemoveFileLogEntryW(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFromDiskSpaceListA(diskspace: *const core::ffi::c_void, targetfilespec: P1, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3628,7 +3582,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromDiskSpaceListA(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupRemoveFromDiskSpaceListA(core::mem::transmute(diskspace), targetfilespec.param().abi(), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupRemoveFromDiskSpaceListA(diskspace, targetfilespec.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupRemoveFromDiskSpaceListW(diskspace: *const core::ffi::c_void, targetfilespec: P1, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3636,7 +3590,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromDiskSpaceListW(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupRemoveFromDiskSpaceListW(core::mem::transmute(diskspace), targetfilespec.param().abi(), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupRemoveFromDiskSpaceListW(diskspace, targetfilespec.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupRemoveFromSourceListA(flags: u32, source: P1) -> windows_core::Result<()> @@ -3644,7 +3598,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListA(flags : u32, source : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupRemoveFromSourceListA(core::mem::transmute(flags), source.param().abi()).ok() + SetupRemoveFromSourceListA(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFromSourceListW(flags: u32, source: P1) -> windows_core::Result<()> @@ -3652,7 +3606,7 @@ where P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListW(flags : u32, source : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupRemoveFromSourceListW(core::mem::transmute(flags), source.param().abi()).ok() + SetupRemoveFromSourceListW(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveInstallSectionFromDiskSpaceListA(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, layoutinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3660,7 +3614,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveInstallSectionFromDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupRemoveInstallSectionFromDiskSpaceListA(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupRemoveInstallSectionFromDiskSpaceListA(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupRemoveInstallSectionFromDiskSpaceListW(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, layoutinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3668,7 +3622,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveInstallSectionFromDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupRemoveInstallSectionFromDiskSpaceListW(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupRemoveInstallSectionFromDiskSpaceListW(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupRemoveSectionFromDiskSpaceListA(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3676,7 +3630,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveSectionFromDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupRemoveSectionFromDiskSpaceListA(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupRemoveSectionFromDiskSpaceListA(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupRemoveSectionFromDiskSpaceListW(diskspace: *const core::ffi::c_void, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, sectionname: P3, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: Option) -> windows_core::Result<()> @@ -3684,7 +3638,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveSectionFromDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); - SetupRemoveSectionFromDiskSpaceListW(core::mem::transmute(diskspace), core::mem::transmute(infhandle), core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), core::mem::transmute(operation), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupRemoveSectionFromDiskSpaceListW(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(core::mem::zeroed())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupRenameErrorA(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 @@ -3694,7 +3648,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRenameErrorA(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCSTR, sourcefile : windows_core::PCSTR, targetfile : windows_core::PCSTR, win32errorcode : u32, style : u32) -> u32); - SetupRenameErrorA(core::mem::transmute(hwndparent), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style)) + SetupRenameErrorA(hwndparent, dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupRenameErrorW(hwndparent: super::super::Foundation::HWND, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 @@ -3704,17 +3658,17 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRenameErrorW(hwndparent : super::super::Foundation:: HWND, dialogtitle : windows_core::PCWSTR, sourcefile : windows_core::PCWSTR, targetfile : windows_core::PCWSTR, win32errorcode : u32, style : u32) -> u32); - SetupRenameErrorW(core::mem::transmute(hwndparent), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), core::mem::transmute(win32errorcode), core::mem::transmute(style)) + SetupRenameErrorW(hwndparent, dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupScanFileQueueA(filequeue: *const core::ffi::c_void, flags: SETUPSCANFILEQUEUE_FLAGS, window: Option, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>, result: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupScanFileQueueA(filequeue : *const core::ffi::c_void, flags : SETUPSCANFILEQUEUE_FLAGS, window : super::super::Foundation:: HWND, callbackroutine : PSP_FILE_CALLBACK_A, callbackcontext : *const core::ffi::c_void, result : *mut u32) -> super::super::Foundation:: BOOL); - SetupScanFileQueueA(core::mem::transmute(filequeue), core::mem::transmute(flags), core::mem::transmute(window.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(result)).ok() + SetupScanFileQueueA(filequeue, flags, core::mem::transmute(window.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(result)).ok() } #[inline] pub unsafe fn SetupScanFileQueueW(filequeue: *const core::ffi::c_void, flags: SETUPSCANFILEQUEUE_FLAGS, window: Option, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>, result: *mut u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupScanFileQueueW(filequeue : *const core::ffi::c_void, flags : SETUPSCANFILEQUEUE_FLAGS, window : super::super::Foundation:: HWND, callbackroutine : PSP_FILE_CALLBACK_W, callbackcontext : *const core::ffi::c_void, result : *mut u32) -> super::super::Foundation:: BOOL); - SetupScanFileQueueW(core::mem::transmute(filequeue), core::mem::transmute(flags), core::mem::transmute(window.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(result)).ok() + SetupScanFileQueueW(filequeue, flags, core::mem::transmute(window.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(result)).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdA(infhandle: *const core::ffi::c_void, id: u32, directory: P2) -> windows_core::Result<()> @@ -3722,7 +3676,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdA(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupSetDirectoryIdA(core::mem::transmute(infhandle), core::mem::transmute(id), directory.param().abi()).ok() + SetupSetDirectoryIdA(infhandle, id, directory.param().abi()).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdExA(infhandle: *const core::ffi::c_void, id: u32, directory: P2, flags: u32, reserved1: Option, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -3730,7 +3684,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdExA(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCSTR, flags : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupSetDirectoryIdExA(core::mem::transmute(infhandle), core::mem::transmute(id), directory.param().abi(), core::mem::transmute(flags), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupSetDirectoryIdExA(infhandle, id, directory.param().abi(), flags, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdExW(infhandle: *const core::ffi::c_void, id: u32, directory: P2, flags: u32, reserved1: Option, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -3738,7 +3692,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdExW(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCWSTR, flags : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupSetDirectoryIdExW(core::mem::transmute(infhandle), core::mem::transmute(id), directory.param().abi(), core::mem::transmute(flags), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() + SetupSetDirectoryIdExW(infhandle, id, directory.param().abi(), flags, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdW(infhandle: *const core::ffi::c_void, id: u32, directory: P2) -> windows_core::Result<()> @@ -3746,7 +3700,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdW(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupSetDirectoryIdW(core::mem::transmute(infhandle), core::mem::transmute(id), directory.param().abi()).ok() + SetupSetDirectoryIdW(infhandle, id, directory.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] @@ -3755,7 +3709,7 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueAlternatePlatformA(queuehandle : *const core::ffi::c_void, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, alternatedefaultcatalogfile : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupSetFileQueueAlternatePlatformA(core::mem::transmute(queuehandle), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), alternatedefaultcatalogfile.param().abi()).ok() + SetupSetFileQueueAlternatePlatformA(queuehandle, core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), alternatedefaultcatalogfile.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] @@ -3764,12 +3718,12 @@ where P2: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueAlternatePlatformW(queuehandle : *const core::ffi::c_void, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, alternatedefaultcatalogfile : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupSetFileQueueAlternatePlatformW(core::mem::transmute(queuehandle), core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), alternatedefaultcatalogfile.param().abi()).ok() + SetupSetFileQueueAlternatePlatformW(queuehandle, core::mem::transmute(alternateplatforminfo.unwrap_or(core::mem::zeroed())), alternatedefaultcatalogfile.param().abi()).ok() } #[inline] pub unsafe fn SetupSetFileQueueFlags(filequeue: *const core::ffi::c_void, flagmask: u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueFlags(filequeue : *const core::ffi::c_void, flagmask : u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupSetFileQueueFlags(core::mem::transmute(filequeue), core::mem::transmute(flagmask), core::mem::transmute(flags)).ok() + SetupSetFileQueueFlags(filequeue, flagmask, flags).ok() } #[inline] pub unsafe fn SetupSetNonInteractiveMode(noninteractiveflag: bool) -> super::super::Foundation::BOOL { @@ -3795,32 +3749,32 @@ where #[inline] pub unsafe fn SetupSetSourceListA(flags: u32, sourcelist: &[windows_core::PCSTR]) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupSetSourceListA(flags : u32, sourcelist : *const windows_core::PCSTR, sourcecount : u32) -> super::super::Foundation:: BOOL); - SetupSetSourceListA(core::mem::transmute(flags), core::mem::transmute(sourcelist.as_ptr()), sourcelist.len().try_into().unwrap()).ok() + SetupSetSourceListA(flags, core::mem::transmute(sourcelist.as_ptr()), sourcelist.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SetupSetSourceListW(flags: u32, sourcelist: &[windows_core::PCWSTR]) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupSetSourceListW(flags : u32, sourcelist : *const windows_core::PCWSTR, sourcecount : u32) -> super::super::Foundation:: BOOL); - SetupSetSourceListW(core::mem::transmute(flags), core::mem::transmute(sourcelist.as_ptr()), sourcelist.len().try_into().unwrap()).ok() + SetupSetSourceListW(flags, core::mem::transmute(sourcelist.as_ptr()), sourcelist.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SetupSetThreadLogToken(logtoken: u64) { windows_targets::link!("setupapi.dll" "system" fn SetupSetThreadLogToken(logtoken : u64)); - SetupSetThreadLogToken(core::mem::transmute(logtoken)) + SetupSetThreadLogToken(logtoken) } #[inline] pub unsafe fn SetupTermDefaultQueueCallback(context: *const core::ffi::c_void) { windows_targets::link!("setupapi.dll" "system" fn SetupTermDefaultQueueCallback(context : *const core::ffi::c_void)); - SetupTermDefaultQueueCallback(core::mem::transmute(context)) + SetupTermDefaultQueueCallback(context) } #[inline] pub unsafe fn SetupTerminateFileLog(fileloghandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupTerminateFileLog(fileloghandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupTerminateFileLog(core::mem::transmute(fileloghandle)).ok() + SetupTerminateFileLog(fileloghandle).ok() } #[inline] pub unsafe fn SetupUninstallNewlyCopiedInfs(filequeue: *const core::ffi::c_void, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("setupapi.dll" "system" fn SetupUninstallNewlyCopiedInfs(filequeue : *const core::ffi::c_void, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupUninstallNewlyCopiedInfs(core::mem::transmute(filequeue), core::mem::transmute(flags), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + SetupUninstallNewlyCopiedInfs(filequeue, flags, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetupUninstallOEMInfA(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -3828,7 +3782,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupUninstallOEMInfA(inffilename : windows_core::PCSTR, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupUninstallOEMInfA(inffilename.param().abi(), core::mem::transmute(flags), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + SetupUninstallOEMInfA(inffilename.param().abi(), flags, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetupUninstallOEMInfW(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -3836,7 +3790,7 @@ where P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupUninstallOEMInfW(inffilename : windows_core::PCWSTR, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupUninstallOEMInfW(inffilename.param().abi(), core::mem::transmute(flags), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + SetupUninstallOEMInfW(inffilename.param().abi(), flags, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] @@ -3862,7 +3816,7 @@ where P3: windows_core::Param, { windows_targets::link!("setupapi.dll" "cdecl" fn SetupWriteTextLog(logtoken : u64, category : u32, flags : u32, messagestr : windows_core::PCSTR)); - SetupWriteTextLog(core::mem::transmute(logtoken), core::mem::transmute(category), core::mem::transmute(flags), messagestr.param().abi()) + SetupWriteTextLog(logtoken, category, flags, messagestr.param().abi()) } #[inline] pub unsafe fn SetupWriteTextLogError(logtoken: u64, category: u32, logflags: u32, error: u32, messagestr: P4) @@ -3870,12 +3824,12 @@ where P4: windows_core::Param, { windows_targets::link!("setupapi.dll" "cdecl" fn SetupWriteTextLogError(logtoken : u64, category : u32, logflags : u32, error : u32, messagestr : windows_core::PCSTR)); - SetupWriteTextLogError(core::mem::transmute(logtoken), core::mem::transmute(category), core::mem::transmute(logflags), core::mem::transmute(error), messagestr.param().abi()) + SetupWriteTextLogError(logtoken, category, logflags, error, messagestr.param().abi()) } #[inline] pub unsafe fn SetupWriteTextLogInfLine(logtoken: u64, flags: u32, infhandle: *const core::ffi::c_void, context: *const INFCONTEXT) { windows_targets::link!("setupapi.dll" "system" fn SetupWriteTextLogInfLine(logtoken : u64, flags : u32, infhandle : *const core::ffi::c_void, context : *const INFCONTEXT)); - SetupWriteTextLogInfLine(core::mem::transmute(logtoken), core::mem::transmute(flags), core::mem::transmute(infhandle), core::mem::transmute(context)) + SetupWriteTextLogInfLine(logtoken, flags, infhandle, context) } #[inline] pub unsafe fn UpdateDriverForPlugAndPlayDevicesA(hwndparent: Option, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> @@ -3884,7 +3838,7 @@ where P2: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn UpdateDriverForPlugAndPlayDevicesA(hwndparent : super::super::Foundation:: HWND, hardwareid : windows_core::PCSTR, fullinfpath : windows_core::PCSTR, installflags : UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - UpdateDriverForPlugAndPlayDevicesA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), hardwareid.param().abi(), fullinfpath.param().abi(), core::mem::transmute(installflags), core::mem::transmute(brebootrequired.unwrap_or(core::mem::zeroed()))).ok() + UpdateDriverForPlugAndPlayDevicesA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), hardwareid.param().abi(), fullinfpath.param().abi(), installflags, core::mem::transmute(brebootrequired.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UpdateDriverForPlugAndPlayDevicesW(hwndparent: Option, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> @@ -3893,7 +3847,7 @@ where P2: windows_core::Param, { windows_targets::link!("newdev.dll" "system" fn UpdateDriverForPlugAndPlayDevicesW(hwndparent : super::super::Foundation:: HWND, hardwareid : windows_core::PCWSTR, fullinfpath : windows_core::PCWSTR, installflags : UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - UpdateDriverForPlugAndPlayDevicesW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), hardwareid.param().abi(), fullinfpath.param().abi(), core::mem::transmute(installflags), core::mem::transmute(brebootrequired.unwrap_or(core::mem::zeroed()))).ok() + UpdateDriverForPlugAndPlayDevicesW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), hardwareid.param().abi(), fullinfpath.param().abi(), installflags, core::mem::transmute(brebootrequired.unwrap_or(core::mem::zeroed()))).ok() } pub const ALLOC_LOG_CONF: CM_LOG_CONF = CM_LOG_CONF(2u32); pub const BASIC_LOG_CONF: CM_LOG_CONF = CM_LOG_CONF(0u32); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs index 8fa207fc7f..bfc9adf5a8 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs @@ -1,25 +1,14 @@ #[inline] pub unsafe fn DevCloseObjectQuery(hdevquery: HDEVQUERY) { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCloseObjectQuery(hdevquery : HDEVQUERY)); - DevCloseObjectQuery(core::mem::transmute(hdevquery)) + DevCloseObjectQuery(hdevquery) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn DevCreateObjectQuery(objecttype: DEV_OBJECT_TYPE, queryflags: u32, prequestedproperties: Option<&[super::Properties::DEVPROPCOMPKEY]>, pfilter: Option<&[DEVPROP_FILTER_EXPRESSION]>, pcallback: PDEV_QUERY_RESULT_CALLBACK, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCreateObjectQuery(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DevCreateObjectQuery( - core::mem::transmute(objecttype), - core::mem::transmute(queryflags), - prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcallback), - core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), - &mut result__, - ) - .map(|| core::mem::transmute(result__)) + DevCreateObjectQuery(objecttype, queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -27,15 +16,15 @@ pub unsafe fn DevCreateObjectQueryEx(objecttype: DEV_OBJECT_TYPE, queryflags: u3 windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" fn DevCreateObjectQueryEx(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); DevCreateObjectQueryEx( - core::mem::transmute(objecttype), - core::mem::transmute(queryflags), + objecttype, + queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pextendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pextendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcallback), + pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__, ) @@ -50,14 +39,14 @@ where windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCreateObjectQueryFromId(objecttype : DEV_OBJECT_TYPE, pszobjectid : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); DevCreateObjectQueryFromId( - core::mem::transmute(objecttype), + objecttype, pszobjectid.param().abi(), - core::mem::transmute(queryflags), + queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcallback), + pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__, ) @@ -72,16 +61,16 @@ where windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" fn DevCreateObjectQueryFromIdEx(objecttype : DEV_OBJECT_TYPE, pszobjectid : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); DevCreateObjectQueryFromIdEx( - core::mem::transmute(objecttype), + objecttype, pszobjectid.param().abi(), - core::mem::transmute(queryflags), + queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pextendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pextendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcallback), + pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__, ) @@ -96,14 +85,14 @@ where windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCreateObjectQueryFromIds(objecttype : DEV_OBJECT_TYPE, pszzobjectids : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); DevCreateObjectQueryFromIds( - core::mem::transmute(objecttype), + objecttype, pszzobjectids.param().abi(), - core::mem::transmute(queryflags), + queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcallback), + pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__, ) @@ -118,16 +107,16 @@ where windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" fn DevCreateObjectQueryFromIdsEx(objecttype : DEV_OBJECT_TYPE, pszzobjectids : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); DevCreateObjectQueryFromIdsEx( - core::mem::transmute(objecttype), + objecttype, pszzobjectids.param().abi(), - core::mem::transmute(queryflags), + queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pextendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pextendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcallback), + pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__, ) @@ -140,7 +129,7 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevFindProperty(pkey : *const super::super::Foundation:: DEVPROPKEY, store : super::Properties:: DEVPROPSTORE, pszlocalename : windows_core::PCWSTR, cproperties : u32, pproperties : *const super::Properties:: DEVPROPERTY) -> *mut super::Properties:: DEVPROPERTY); - DevFindProperty(core::mem::transmute(pkey), core::mem::transmute(store), pszlocalename.param().abi(), pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + DevFindProperty(pkey, store, pszlocalename.param().abi(), pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -161,7 +150,7 @@ where P1: windows_core::Param, { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevGetObjectProperties(objecttype : DEV_OBJECT_TYPE, pszobjectid : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, pcpropertycount : *mut u32, ppproperties : *mut *mut super::Properties:: DEVPROPERTY) -> windows_core::HRESULT); - DevGetObjectProperties(core::mem::transmute(objecttype), pszobjectid.param().abi(), core::mem::transmute(queryflags), prequestedproperties.len().try_into().unwrap(), core::mem::transmute(prequestedproperties.as_ptr()), core::mem::transmute(pcpropertycount), core::mem::transmute(ppproperties)).ok() + DevGetObjectProperties(objecttype, pszobjectid.param().abi(), queryflags, prequestedproperties.len().try_into().unwrap(), core::mem::transmute(prequestedproperties.as_ptr()), core::mem::transmute(pcpropertycount), core::mem::transmute(ppproperties)).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -170,31 +159,21 @@ where P1: windows_core::Param, { windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" fn DevGetObjectPropertiesEx(objecttype : DEV_OBJECT_TYPE, pszobjectid : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcpropertycount : *mut u32, ppproperties : *mut *mut super::Properties:: DEVPROPERTY) -> windows_core::HRESULT); - DevGetObjectPropertiesEx(core::mem::transmute(objecttype), pszobjectid.param().abi(), core::mem::transmute(queryflags), prequestedproperties.len().try_into().unwrap(), core::mem::transmute(prequestedproperties.as_ptr()), pextendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pextendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcpropertycount), core::mem::transmute(ppproperties)).ok() + DevGetObjectPropertiesEx(objecttype, pszobjectid.param().abi(), queryflags, prequestedproperties.len().try_into().unwrap(), core::mem::transmute(prequestedproperties.as_ptr()), pextendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pextendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcpropertycount), core::mem::transmute(ppproperties)).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn DevGetObjects(objecttype: DEV_OBJECT_TYPE, queryflags: u32, prequestedproperties: Option<&[super::Properties::DEVPROPCOMPKEY]>, pfilter: Option<&[DEVPROP_FILTER_EXPRESSION]>, pcobjectcount: *mut u32, ppobjects: *mut *mut DEV_OBJECT) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevGetObjects(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcobjectcount : *mut u32, ppobjects : *mut *mut DEV_OBJECT) -> windows_core::HRESULT); - DevGetObjects( - core::mem::transmute(objecttype), - core::mem::transmute(queryflags), - prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pcobjectcount), - core::mem::transmute(ppobjects), - ) - .ok() + DevGetObjects(objecttype, queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcobjectcount), core::mem::transmute(ppobjects)).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn DevGetObjectsEx(objecttype: DEV_OBJECT_TYPE, queryflags: u32, prequestedproperties: Option<&[super::Properties::DEVPROPCOMPKEY]>, pfilter: Option<&[DEVPROP_FILTER_EXPRESSION]>, pextendedparameters: Option<&[DEV_QUERY_PARAMETER]>, pcobjectcount: *mut u32, ppobjects: *mut *mut DEV_OBJECT) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" fn DevGetObjectsEx(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcobjectcount : *mut u32, ppobjects : *mut *mut DEV_OBJECT) -> windows_core::HRESULT); DevGetObjectsEx( - core::mem::transmute(objecttype), - core::mem::transmute(queryflags), + objecttype, + queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs index 901da72ef0..8790bdcfc0 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -6,7 +6,7 @@ pub unsafe fn BRUSHOBJ_hGetColorTransform(pbo: *mut BRUSHOBJ) -> super::super::F #[inline] pub unsafe fn BRUSHOBJ_pvAllocRbrush(pbo: *mut BRUSHOBJ, cj: u32) -> *mut core::ffi::c_void { windows_targets::link!("gdi32.dll" "system" fn BRUSHOBJ_pvAllocRbrush(pbo : *mut BRUSHOBJ, cj : u32) -> *mut core::ffi::c_void); - BRUSHOBJ_pvAllocRbrush(core::mem::transmute(pbo), core::mem::transmute(cj)) + BRUSHOBJ_pvAllocRbrush(core::mem::transmute(pbo), cj) } #[inline] pub unsafe fn BRUSHOBJ_pvGetRbrush(pbo: *mut BRUSHOBJ) -> *mut core::ffi::c_void { @@ -21,12 +21,12 @@ pub unsafe fn BRUSHOBJ_ulGetBrushColor(pbo: *mut BRUSHOBJ) -> u32 { #[inline] pub unsafe fn CLIPOBJ_bEnum(pco: *mut CLIPOBJ, cj: u32, pul: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn CLIPOBJ_bEnum(pco : *mut CLIPOBJ, cj : u32, pul : *mut u32) -> super::super::Foundation:: BOOL); - CLIPOBJ_bEnum(core::mem::transmute(pco), core::mem::transmute(cj), core::mem::transmute(pul)) + CLIPOBJ_bEnum(core::mem::transmute(pco), cj, core::mem::transmute(pul)) } #[inline] pub unsafe fn CLIPOBJ_cEnumStart(pco: *mut CLIPOBJ, ball: bool, itype: u32, idirection: u32, climit: u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn CLIPOBJ_cEnumStart(pco : *mut CLIPOBJ, ball : super::super::Foundation:: BOOL, itype : u32, idirection : u32, climit : u32) -> u32); - CLIPOBJ_cEnumStart(core::mem::transmute(pco), ball.into(), core::mem::transmute(itype), core::mem::transmute(idirection), core::mem::transmute(climit)) + CLIPOBJ_cEnumStart(core::mem::transmute(pco), ball.into(), itype, idirection, climit) } #[inline] pub unsafe fn CLIPOBJ_ppoGetPath(pco: *mut CLIPOBJ) -> *mut PATHOBJ { @@ -36,17 +36,17 @@ pub unsafe fn CLIPOBJ_ppoGetPath(pco: *mut CLIPOBJ) -> *mut PATHOBJ { #[inline] pub unsafe fn CapabilitiesRequestAndCapabilitiesReply(hmonitor: super::super::Foundation::HANDLE, pszasciicapabilitiesstring: &mut [u8]) -> i32 { windows_targets::link!("dxva2.dll" "system" fn CapabilitiesRequestAndCapabilitiesReply(hmonitor : super::super::Foundation:: HANDLE, pszasciicapabilitiesstring : windows_core::PSTR, dwcapabilitiesstringlengthincharacters : u32) -> i32); - CapabilitiesRequestAndCapabilitiesReply(core::mem::transmute(hmonitor), core::mem::transmute(pszasciicapabilitiesstring.as_ptr()), pszasciicapabilitiesstring.len().try_into().unwrap()) + CapabilitiesRequestAndCapabilitiesReply(hmonitor, core::mem::transmute(pszasciicapabilitiesstring.as_ptr()), pszasciicapabilitiesstring.len().try_into().unwrap()) } #[inline] pub unsafe fn DegaussMonitor(hmonitor: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn DegaussMonitor(hmonitor : super::super::Foundation:: HANDLE) -> i32); - DegaussMonitor(core::mem::transmute(hmonitor)) + DegaussMonitor(hmonitor) } #[inline] pub unsafe fn DestroyPhysicalMonitor(hmonitor: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("dxva2.dll" "system" fn DestroyPhysicalMonitor(hmonitor : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DestroyPhysicalMonitor(core::mem::transmute(hmonitor)).ok() + DestroyPhysicalMonitor(hmonitor).ok() } #[inline] pub unsafe fn DestroyPhysicalMonitors(pphysicalmonitorarray: &[PHYSICAL_MONITOR]) -> windows_core::Result<()> { @@ -61,12 +61,12 @@ pub unsafe fn DisplayConfigGetDeviceInfo(requestpacket: *mut DISPLAYCONFIG_DEVIC #[inline] pub unsafe fn DisplayConfigSetDeviceInfo(setpacket: *const DISPLAYCONFIG_DEVICE_INFO_HEADER) -> i32 { windows_targets::link!("user32.dll" "system" fn DisplayConfigSetDeviceInfo(setpacket : *const DISPLAYCONFIG_DEVICE_INFO_HEADER) -> i32); - DisplayConfigSetDeviceInfo(core::mem::transmute(setpacket)) + DisplayConfigSetDeviceInfo(setpacket) } #[inline] pub unsafe fn EngAcquireSemaphore(hsem: HSEMAPHORE) { windows_targets::link!("gdi32.dll" "system" fn EngAcquireSemaphore(hsem : HSEMAPHORE)); - EngAcquireSemaphore(core::mem::transmute(hsem)) + EngAcquireSemaphore(hsem) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -77,12 +77,12 @@ pub unsafe fn EngAlphaBlend(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *m #[inline] pub unsafe fn EngAssociateSurface(hsurf: HSURF, hdev: HDEV, flhooks: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngAssociateSurface(hsurf : HSURF, hdev : HDEV, flhooks : u32) -> super::super::Foundation:: BOOL); - EngAssociateSurface(core::mem::transmute(hsurf), core::mem::transmute(hdev), core::mem::transmute(flhooks)) + EngAssociateSurface(hsurf, hdev, flhooks) } #[inline] pub unsafe fn EngBitBlt(psotrg: *const SURFOBJ, psosrc: *const SURFOBJ, psomask: *const SURFOBJ, pco: *const CLIPOBJ, pxlo: *const XLATEOBJ, prcltrg: *const super::super::Foundation::RECTL, pptlsrc: *const super::super::Foundation::POINTL, pptlmask: *const super::super::Foundation::POINTL, pbo: *const BRUSHOBJ, pptlbrush: *const super::super::Foundation::POINTL, rop4: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngBitBlt(psotrg : *const SURFOBJ, psosrc : *const SURFOBJ, psomask : *const SURFOBJ, pco : *const CLIPOBJ, pxlo : *const XLATEOBJ, prcltrg : *const super::super::Foundation:: RECTL, pptlsrc : *const super::super::Foundation:: POINTL, pptlmask : *const super::super::Foundation:: POINTL, pbo : *const BRUSHOBJ, pptlbrush : *const super::super::Foundation:: POINTL, rop4 : u32) -> super::super::Foundation:: BOOL); - EngBitBlt(core::mem::transmute(psotrg), core::mem::transmute(psosrc), core::mem::transmute(psomask), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(prcltrg), core::mem::transmute(pptlsrc), core::mem::transmute(pptlmask), core::mem::transmute(pbo), core::mem::transmute(pptlbrush), core::mem::transmute(rop4)) + EngBitBlt(psotrg, psosrc, psomask, pco, pxlo, prcltrg, pptlsrc, pptlmask, pbo, pptlbrush, rop4) } #[inline] pub unsafe fn EngCheckAbort(pso: *mut SURFOBJ) -> super::super::Foundation::BOOL { @@ -92,7 +92,7 @@ pub unsafe fn EngCheckAbort(pso: *mut SURFOBJ) -> super::super::Foundation::BOOL #[inline] pub unsafe fn EngComputeGlyphSet(ncodepage: i32, nfirstchar: i32, cchars: i32) -> *mut FD_GLYPHSET { windows_targets::link!("gdi32.dll" "system" fn EngComputeGlyphSet(ncodepage : i32, nfirstchar : i32, cchars : i32) -> *mut FD_GLYPHSET); - EngComputeGlyphSet(core::mem::transmute(ncodepage), core::mem::transmute(nfirstchar), core::mem::transmute(cchars)) + EngComputeGlyphSet(ncodepage, nfirstchar, cchars) } #[inline] pub unsafe fn EngCopyBits(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, prcldest: *mut super::super::Foundation::RECTL, pptlsrc: *mut super::super::Foundation::POINTL) -> super::super::Foundation::BOOL { @@ -103,7 +103,7 @@ pub unsafe fn EngCopyBits(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *mut #[inline] pub unsafe fn EngCreateBitmap(sizl: super::super::Foundation::SIZE, lwidth: i32, iformat: u32, fl: u32, pvbits: *mut core::ffi::c_void) -> super::super::Graphics::Gdi::HBITMAP { windows_targets::link!("gdi32.dll" "system" fn EngCreateBitmap(sizl : super::super::Foundation:: SIZE, lwidth : i32, iformat : u32, fl : u32, pvbits : *mut core::ffi::c_void) -> super::super::Graphics::Gdi:: HBITMAP); - EngCreateBitmap(core::mem::transmute(sizl), core::mem::transmute(lwidth), core::mem::transmute(iformat), core::mem::transmute(fl), core::mem::transmute(pvbits)) + EngCreateBitmap(core::mem::transmute(sizl), lwidth, iformat, fl, core::mem::transmute(pvbits)) } #[inline] pub unsafe fn EngCreateClip() -> *mut CLIPOBJ { @@ -114,18 +114,18 @@ pub unsafe fn EngCreateClip() -> *mut CLIPOBJ { #[inline] pub unsafe fn EngCreateDeviceBitmap(dhsurf: DHSURF, sizl: super::super::Foundation::SIZE, iformatcompat: u32) -> super::super::Graphics::Gdi::HBITMAP { windows_targets::link!("gdi32.dll" "system" fn EngCreateDeviceBitmap(dhsurf : DHSURF, sizl : super::super::Foundation:: SIZE, iformatcompat : u32) -> super::super::Graphics::Gdi:: HBITMAP); - EngCreateDeviceBitmap(core::mem::transmute(dhsurf), core::mem::transmute(sizl), core::mem::transmute(iformatcompat)) + EngCreateDeviceBitmap(dhsurf, core::mem::transmute(sizl), iformatcompat) } #[inline] pub unsafe fn EngCreateDeviceSurface(dhsurf: DHSURF, sizl: super::super::Foundation::SIZE, iformatcompat: u32) -> HSURF { windows_targets::link!("gdi32.dll" "system" fn EngCreateDeviceSurface(dhsurf : DHSURF, sizl : super::super::Foundation:: SIZE, iformatcompat : u32) -> HSURF); - EngCreateDeviceSurface(core::mem::transmute(dhsurf), core::mem::transmute(sizl), core::mem::transmute(iformatcompat)) + EngCreateDeviceSurface(dhsurf, core::mem::transmute(sizl), iformatcompat) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EngCreatePalette(imode: u32, ccolors: u32, pulcolors: *mut u32, flred: u32, flgreen: u32, flblue: u32) -> super::super::Graphics::Gdi::HPALETTE { windows_targets::link!("gdi32.dll" "system" fn EngCreatePalette(imode : u32, ccolors : u32, pulcolors : *mut u32, flred : u32, flgreen : u32, flblue : u32) -> super::super::Graphics::Gdi:: HPALETTE); - EngCreatePalette(core::mem::transmute(imode), core::mem::transmute(ccolors), core::mem::transmute(pulcolors), core::mem::transmute(flred), core::mem::transmute(flgreen), core::mem::transmute(flblue)) + EngCreatePalette(imode, ccolors, core::mem::transmute(pulcolors), flred, flgreen, flblue) } #[inline] pub unsafe fn EngCreateSemaphore() -> HSEMAPHORE { @@ -141,7 +141,7 @@ pub unsafe fn EngDeleteClip(pco: Option<*const CLIPOBJ>) { #[inline] pub unsafe fn EngDeletePalette(hpal: super::super::Graphics::Gdi::HPALETTE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngDeletePalette(hpal : super::super::Graphics::Gdi:: HPALETTE) -> super::super::Foundation:: BOOL); - EngDeletePalette(core::mem::transmute(hpal)) + EngDeletePalette(hpal) } #[inline] pub unsafe fn EngDeletePath(ppo: *mut PATHOBJ) { @@ -151,32 +151,32 @@ pub unsafe fn EngDeletePath(ppo: *mut PATHOBJ) { #[inline] pub unsafe fn EngDeleteSemaphore(hsem: HSEMAPHORE) { windows_targets::link!("gdi32.dll" "system" fn EngDeleteSemaphore(hsem : HSEMAPHORE)); - EngDeleteSemaphore(core::mem::transmute(hsem)) + EngDeleteSemaphore(hsem) } #[inline] pub unsafe fn EngDeleteSurface(hsurf: HSURF) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngDeleteSurface(hsurf : HSURF) -> super::super::Foundation:: BOOL); - EngDeleteSurface(core::mem::transmute(hsurf)) + EngDeleteSurface(hsurf) } #[inline] pub unsafe fn EngEraseSurface(pso: *mut SURFOBJ, prcl: *mut super::super::Foundation::RECTL, icolor: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngEraseSurface(pso : *mut SURFOBJ, prcl : *mut super::super::Foundation:: RECTL, icolor : u32) -> super::super::Foundation:: BOOL); - EngEraseSurface(core::mem::transmute(pso), core::mem::transmute(prcl), core::mem::transmute(icolor)) + EngEraseSurface(core::mem::transmute(pso), core::mem::transmute(prcl), icolor) } #[inline] pub unsafe fn EngFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mix: u32, floptions: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngFillPath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mix : u32, floptions : u32) -> super::super::Foundation:: BOOL); - EngFillPath(core::mem::transmute(pso), core::mem::transmute(ppo), core::mem::transmute(pco), core::mem::transmute(pbo), core::mem::transmute(pptlbrushorg), core::mem::transmute(mix), core::mem::transmute(floptions)) + EngFillPath(core::mem::transmute(pso), core::mem::transmute(ppo), core::mem::transmute(pco), core::mem::transmute(pbo), core::mem::transmute(pptlbrushorg), mix, floptions) } #[inline] pub unsafe fn EngFindResource(h: super::super::Foundation::HANDLE, iname: i32, itype: i32, pulsize: *mut u32) -> *mut core::ffi::c_void { windows_targets::link!("gdi32.dll" "system" fn EngFindResource(h : super::super::Foundation:: HANDLE, iname : i32, itype : i32, pulsize : *mut u32) -> *mut core::ffi::c_void); - EngFindResource(core::mem::transmute(h), core::mem::transmute(iname), core::mem::transmute(itype), core::mem::transmute(pulsize)) + EngFindResource(h, iname, itype, core::mem::transmute(pulsize)) } #[inline] pub unsafe fn EngFreeModule(h: super::super::Foundation::HANDLE) { windows_targets::link!("gdi32.dll" "system" fn EngFreeModule(h : super::super::Foundation:: HANDLE)); - EngFreeModule(core::mem::transmute(h)) + EngFreeModule(h) } #[inline] pub unsafe fn EngGetCurrentCodePage(oemcodepage: *mut u16, ansicodepage: *mut u16) { @@ -186,23 +186,23 @@ pub unsafe fn EngGetCurrentCodePage(oemcodepage: *mut u16, ansicodepage: *mut u1 #[inline] pub unsafe fn EngGetDriverName(hdev: HDEV) -> windows_core::PWSTR { windows_targets::link!("gdi32.dll" "system" fn EngGetDriverName(hdev : HDEV) -> windows_core::PWSTR); - EngGetDriverName(core::mem::transmute(hdev)) + EngGetDriverName(hdev) } #[inline] pub unsafe fn EngGetPrinterDataFileName(hdev: HDEV) -> windows_core::PWSTR { windows_targets::link!("gdi32.dll" "system" fn EngGetPrinterDataFileName(hdev : HDEV) -> windows_core::PWSTR); - EngGetPrinterDataFileName(core::mem::transmute(hdev)) + EngGetPrinterDataFileName(hdev) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EngGradientFill(psodest: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pvertex: *mut super::super::Graphics::Gdi::TRIVERTEX, nvertex: u32, pmesh: *mut core::ffi::c_void, nmesh: u32, prclextents: *mut super::super::Foundation::RECTL, pptlditherorg: *mut super::super::Foundation::POINTL, ulmode: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngGradientFill(psodest : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pvertex : *mut super::super::Graphics::Gdi:: TRIVERTEX, nvertex : u32, pmesh : *mut core::ffi::c_void, nmesh : u32, prclextents : *mut super::super::Foundation:: RECTL, pptlditherorg : *mut super::super::Foundation:: POINTL, ulmode : u32) -> super::super::Foundation:: BOOL); - EngGradientFill(core::mem::transmute(psodest), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pvertex), core::mem::transmute(nvertex), core::mem::transmute(pmesh), core::mem::transmute(nmesh), core::mem::transmute(prclextents), core::mem::transmute(pptlditherorg), core::mem::transmute(ulmode)) + EngGradientFill(core::mem::transmute(psodest), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pvertex), nvertex, core::mem::transmute(pmesh), nmesh, core::mem::transmute(prclextents), core::mem::transmute(pptlditherorg), ulmode) } #[inline] pub unsafe fn EngLineTo(pso: *mut SURFOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, x1: i32, y1: i32, x2: i32, y2: i32, prclbounds: *mut super::super::Foundation::RECTL, mix: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngLineTo(pso : *mut SURFOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, x1 : i32, y1 : i32, x2 : i32, y2 : i32, prclbounds : *mut super::super::Foundation:: RECTL, mix : u32) -> super::super::Foundation:: BOOL); - EngLineTo(core::mem::transmute(pso), core::mem::transmute(pco), core::mem::transmute(pbo), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(prclbounds), core::mem::transmute(mix)) + EngLineTo(core::mem::transmute(pso), core::mem::transmute(pco), core::mem::transmute(pbo), x1, y1, x2, y2, core::mem::transmute(prclbounds), mix) } #[inline] pub unsafe fn EngLoadModule(pwsz: P0) -> super::super::Foundation::HANDLE @@ -215,39 +215,39 @@ where #[inline] pub unsafe fn EngLockSurface(hsurf: HSURF) -> *mut SURFOBJ { windows_targets::link!("gdi32.dll" "system" fn EngLockSurface(hsurf : HSURF) -> *mut SURFOBJ); - EngLockSurface(core::mem::transmute(hsurf)) + EngLockSurface(hsurf) } #[inline] pub unsafe fn EngMarkBandingSurface(hsurf: HSURF) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngMarkBandingSurface(hsurf : HSURF) -> super::super::Foundation:: BOOL); - EngMarkBandingSurface(core::mem::transmute(hsurf)) + EngMarkBandingSurface(hsurf) } #[inline] pub unsafe fn EngMultiByteToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, multibytestring: &[u8]) { windows_targets::link!("gdi32.dll" "system" fn EngMultiByteToUnicodeN(unicodestring : windows_core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, multibytestring : windows_core::PCSTR, bytesinmultibytestring : u32)); - EngMultiByteToUnicodeN(core::mem::transmute(unicodestring), core::mem::transmute(maxbytesinunicodestring), core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap()) + EngMultiByteToUnicodeN(core::mem::transmute(unicodestring), maxbytesinunicodestring, core::mem::transmute(bytesinunicodestring.unwrap_or(core::mem::zeroed())), core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap()) } #[inline] pub unsafe fn EngMultiByteToWideChar(codepage: u32, widecharstring: Option, bytesinwidecharstring: i32, multibytestring: Option<&[u8]>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EngMultiByteToWideChar(codepage : u32, widecharstring : windows_core::PWSTR, bytesinwidecharstring : i32, multibytestring : windows_core::PCSTR, bytesinmultibytestring : i32) -> i32); - EngMultiByteToWideChar(core::mem::transmute(codepage), core::mem::transmute(widecharstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytesinwidecharstring), core::mem::transmute(multibytestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), multibytestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + EngMultiByteToWideChar(codepage, core::mem::transmute(widecharstring.unwrap_or(core::mem::zeroed())), bytesinwidecharstring, core::mem::transmute(multibytestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), multibytestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn EngPaint(pso: *mut SURFOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mix: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngPaint(pso : *mut SURFOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mix : u32) -> super::super::Foundation:: BOOL); - EngPaint(core::mem::transmute(pso), core::mem::transmute(pco), core::mem::transmute(pbo), core::mem::transmute(pptlbrushorg), core::mem::transmute(mix)) + EngPaint(core::mem::transmute(pso), core::mem::transmute(pco), core::mem::transmute(pbo), core::mem::transmute(pptlbrushorg), mix) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EngPlgBlt(psotrg: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomsk: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlbrushorg: *mut super::super::Foundation::POINTL, pptfx: *mut POINTFIX, prcl: *mut super::super::Foundation::RECTL, pptl: *mut super::super::Foundation::POINTL, imode: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngPlgBlt(psotrg : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomsk : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlbrushorg : *mut super::super::Foundation:: POINTL, pptfx : *mut POINTFIX, prcl : *mut super::super::Foundation:: RECTL, pptl : *mut super::super::Foundation:: POINTL, imode : u32) -> super::super::Foundation:: BOOL); - EngPlgBlt(core::mem::transmute(psotrg), core::mem::transmute(psosrc), core::mem::transmute(psomsk), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pca), core::mem::transmute(pptlbrushorg), core::mem::transmute(pptfx), core::mem::transmute(prcl), core::mem::transmute(pptl), core::mem::transmute(imode)) + EngPlgBlt(core::mem::transmute(psotrg), core::mem::transmute(psosrc), core::mem::transmute(psomsk), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pca), core::mem::transmute(pptlbrushorg), core::mem::transmute(pptfx), core::mem::transmute(prcl), core::mem::transmute(pptl), imode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EngQueryEMFInfo(hdev: HDEV, pemfinfo: *mut EMFINFO) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngQueryEMFInfo(hdev : HDEV, pemfinfo : *mut EMFINFO) -> super::super::Foundation:: BOOL); - EngQueryEMFInfo(core::mem::transmute(hdev), core::mem::transmute(pemfinfo)) + EngQueryEMFInfo(hdev, core::mem::transmute(pemfinfo)) } #[inline] pub unsafe fn EngQueryLocalTime() -> ENG_TIME_FIELDS { @@ -259,39 +259,39 @@ pub unsafe fn EngQueryLocalTime() -> ENG_TIME_FIELDS { #[inline] pub unsafe fn EngReleaseSemaphore(hsem: HSEMAPHORE) { windows_targets::link!("gdi32.dll" "system" fn EngReleaseSemaphore(hsem : HSEMAPHORE)); - EngReleaseSemaphore(core::mem::transmute(hsem)) + EngReleaseSemaphore(hsem) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EngStretchBlt(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomask: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlhtorg: *mut super::super::Foundation::POINTL, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pptlmask: *mut super::super::Foundation::POINTL, imode: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngStretchBlt(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomask : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlhtorg : *mut super::super::Foundation:: POINTL, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pptlmask : *mut super::super::Foundation:: POINTL, imode : u32) -> super::super::Foundation:: BOOL); - EngStretchBlt(core::mem::transmute(psodest), core::mem::transmute(psosrc), core::mem::transmute(psomask), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pca), core::mem::transmute(pptlhtorg), core::mem::transmute(prcldest), core::mem::transmute(prclsrc), core::mem::transmute(pptlmask), core::mem::transmute(imode)) + EngStretchBlt(core::mem::transmute(psodest), core::mem::transmute(psosrc), core::mem::transmute(psomask), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pca), core::mem::transmute(pptlhtorg), core::mem::transmute(prcldest), core::mem::transmute(prclsrc), core::mem::transmute(pptlmask), imode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EngStretchBltROP(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomask: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlhtorg: *mut super::super::Foundation::POINTL, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pptlmask: *mut super::super::Foundation::POINTL, imode: u32, pbo: *mut BRUSHOBJ, rop4: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngStretchBltROP(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomask : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlhtorg : *mut super::super::Foundation:: POINTL, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pptlmask : *mut super::super::Foundation:: POINTL, imode : u32, pbo : *mut BRUSHOBJ, rop4 : u32) -> super::super::Foundation:: BOOL); - EngStretchBltROP(core::mem::transmute(psodest), core::mem::transmute(psosrc), core::mem::transmute(psomask), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pca), core::mem::transmute(pptlhtorg), core::mem::transmute(prcldest), core::mem::transmute(prclsrc), core::mem::transmute(pptlmask), core::mem::transmute(imode), core::mem::transmute(pbo), core::mem::transmute(rop4)) + EngStretchBltROP(core::mem::transmute(psodest), core::mem::transmute(psosrc), core::mem::transmute(psomask), core::mem::transmute(pco), core::mem::transmute(pxlo), core::mem::transmute(pca), core::mem::transmute(pptlhtorg), core::mem::transmute(prcldest), core::mem::transmute(prclsrc), core::mem::transmute(pptlmask), imode, core::mem::transmute(pbo), rop4) } #[inline] pub unsafe fn EngStrokeAndFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pxo: *mut XFORMOBJ, pbostroke: *mut BRUSHOBJ, plineattrs: *mut LINEATTRS, pbofill: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mixfill: u32, floptions: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngStrokeAndFillPath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pxo : *mut XFORMOBJ, pbostroke : *mut BRUSHOBJ, plineattrs : *mut LINEATTRS, pbofill : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mixfill : u32, floptions : u32) -> super::super::Foundation:: BOOL); - EngStrokeAndFillPath(core::mem::transmute(pso), core::mem::transmute(ppo), core::mem::transmute(pco), core::mem::transmute(pxo), core::mem::transmute(pbostroke), core::mem::transmute(plineattrs), core::mem::transmute(pbofill), core::mem::transmute(pptlbrushorg), core::mem::transmute(mixfill), core::mem::transmute(floptions)) + EngStrokeAndFillPath(core::mem::transmute(pso), core::mem::transmute(ppo), core::mem::transmute(pco), core::mem::transmute(pxo), core::mem::transmute(pbostroke), core::mem::transmute(plineattrs), core::mem::transmute(pbofill), core::mem::transmute(pptlbrushorg), mixfill, floptions) } #[inline] pub unsafe fn EngStrokePath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pxo: *mut XFORMOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, plineattrs: *mut LINEATTRS, mix: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngStrokePath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pxo : *mut XFORMOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, plineattrs : *mut LINEATTRS, mix : u32) -> super::super::Foundation:: BOOL); - EngStrokePath(core::mem::transmute(pso), core::mem::transmute(ppo), core::mem::transmute(pco), core::mem::transmute(pxo), core::mem::transmute(pbo), core::mem::transmute(pptlbrushorg), core::mem::transmute(plineattrs), core::mem::transmute(mix)) + EngStrokePath(core::mem::transmute(pso), core::mem::transmute(ppo), core::mem::transmute(pco), core::mem::transmute(pxo), core::mem::transmute(pbo), core::mem::transmute(pptlbrushorg), core::mem::transmute(plineattrs), mix) } #[inline] pub unsafe fn EngTextOut(pso: *mut SURFOBJ, pstro: *mut STROBJ, pfo: *mut FONTOBJ, pco: *mut CLIPOBJ, prclextra: *mut super::super::Foundation::RECTL, prclopaque: *mut super::super::Foundation::RECTL, pbofore: *mut BRUSHOBJ, pboopaque: *mut BRUSHOBJ, pptlorg: *mut super::super::Foundation::POINTL, mix: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngTextOut(pso : *mut SURFOBJ, pstro : *mut STROBJ, pfo : *mut FONTOBJ, pco : *mut CLIPOBJ, prclextra : *mut super::super::Foundation:: RECTL, prclopaque : *mut super::super::Foundation:: RECTL, pbofore : *mut BRUSHOBJ, pboopaque : *mut BRUSHOBJ, pptlorg : *mut super::super::Foundation:: POINTL, mix : u32) -> super::super::Foundation:: BOOL); - EngTextOut(core::mem::transmute(pso), core::mem::transmute(pstro), core::mem::transmute(pfo), core::mem::transmute(pco), core::mem::transmute(prclextra), core::mem::transmute(prclopaque), core::mem::transmute(pbofore), core::mem::transmute(pboopaque), core::mem::transmute(pptlorg), core::mem::transmute(mix)) + EngTextOut(core::mem::transmute(pso), core::mem::transmute(pstro), core::mem::transmute(pfo), core::mem::transmute(pco), core::mem::transmute(prclextra), core::mem::transmute(prclopaque), core::mem::transmute(pbofore), core::mem::transmute(pboopaque), core::mem::transmute(pptlorg), mix) } #[inline] pub unsafe fn EngTransparentBlt(psodst: *const SURFOBJ, psosrc: *const SURFOBJ, pco: Option<*const CLIPOBJ>, pxlo: Option<*const XLATEOBJ>, prcldst: *const super::super::Foundation::RECTL, prclsrc: *const super::super::Foundation::RECTL, transcolor: u32, bcalledfrombitblt: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EngTransparentBlt(psodst : *const SURFOBJ, psosrc : *const SURFOBJ, pco : *const CLIPOBJ, pxlo : *const XLATEOBJ, prcldst : *const super::super::Foundation:: RECTL, prclsrc : *const super::super::Foundation:: RECTL, transcolor : u32, bcalledfrombitblt : u32) -> super::super::Foundation:: BOOL); - EngTransparentBlt(core::mem::transmute(psodst), core::mem::transmute(psosrc), core::mem::transmute(pco.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxlo.unwrap_or(core::mem::zeroed())), core::mem::transmute(prcldst), core::mem::transmute(prclsrc), core::mem::transmute(transcolor), core::mem::transmute(bcalledfrombitblt)) + EngTransparentBlt(psodst, psosrc, core::mem::transmute(pco.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxlo.unwrap_or(core::mem::zeroed())), prcldst, prclsrc, transcolor, bcalledfrombitblt) } #[inline] pub unsafe fn EngUnicodeToMultiByteN(multibytestring: &mut [u8], bytesinmultibytestring: Option<*mut u32>, unicodestring: P3, bytesinunicodestring: u32) @@ -299,7 +299,7 @@ where P3: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngUnicodeToMultiByteN(multibytestring : windows_core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : windows_core::PCWSTR, bytesinunicodestring : u32)); - EngUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(core::mem::zeroed())), unicodestring.param().abi(), core::mem::transmute(bytesinunicodestring)) + EngUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(core::mem::zeroed())), unicodestring.param().abi(), bytesinunicodestring) } #[inline] pub unsafe fn EngUnlockSurface(pso: *mut SURFOBJ) { @@ -312,7 +312,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngWideCharToMultiByte(codepage : u32, widecharstring : windows_core::PCWSTR, bytesinwidecharstring : i32, multibytestring : windows_core::PSTR, bytesinmultibytestring : i32) -> i32); - EngWideCharToMultiByte(core::mem::transmute(codepage), widecharstring.param().abi(), core::mem::transmute(bytesinwidecharstring), core::mem::transmute(multibytestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), multibytestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + EngWideCharToMultiByte(codepage, widecharstring.param().abi(), bytesinwidecharstring, core::mem::transmute(multibytestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), multibytestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn FONTOBJ_cGetAllGlyphHandles(pfo: *mut FONTOBJ, phg: *mut u32) -> u32 { @@ -322,12 +322,12 @@ pub unsafe fn FONTOBJ_cGetAllGlyphHandles(pfo: *mut FONTOBJ, phg: *mut u32) -> u #[inline] pub unsafe fn FONTOBJ_cGetGlyphs(pfo: *mut FONTOBJ, imode: u32, cglyph: u32, phg: *mut u32, ppvglyph: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("gdi32.dll" "system" fn FONTOBJ_cGetGlyphs(pfo : *mut FONTOBJ, imode : u32, cglyph : u32, phg : *mut u32, ppvglyph : *mut *mut core::ffi::c_void) -> u32); - FONTOBJ_cGetGlyphs(core::mem::transmute(pfo), core::mem::transmute(imode), core::mem::transmute(cglyph), core::mem::transmute(phg), core::mem::transmute(ppvglyph)) + FONTOBJ_cGetGlyphs(core::mem::transmute(pfo), imode, cglyph, core::mem::transmute(phg), core::mem::transmute(ppvglyph)) } #[inline] pub unsafe fn FONTOBJ_pQueryGlyphAttrs(pfo: *mut FONTOBJ, imode: u32) -> *mut FD_GLYPHATTR { windows_targets::link!("gdi32.dll" "system" fn FONTOBJ_pQueryGlyphAttrs(pfo : *mut FONTOBJ, imode : u32) -> *mut FD_GLYPHATTR); - FONTOBJ_pQueryGlyphAttrs(core::mem::transmute(pfo), core::mem::transmute(imode)) + FONTOBJ_pQueryGlyphAttrs(core::mem::transmute(pfo), imode) } #[inline] pub unsafe fn FONTOBJ_pfdg(pfo: *mut FONTOBJ) -> *mut FD_GLYPHSET { @@ -338,7 +338,7 @@ pub unsafe fn FONTOBJ_pfdg(pfo: *mut FONTOBJ) -> *mut FD_GLYPHSET { #[inline] pub unsafe fn FONTOBJ_pifi(pfo: *const FONTOBJ) -> *mut IFIMETRICS { windows_targets::link!("gdi32.dll" "system" fn FONTOBJ_pifi(pfo : *const FONTOBJ) -> *mut IFIMETRICS); - FONTOBJ_pifi(core::mem::transmute(pfo)) + FONTOBJ_pifi(pfo) } #[inline] pub unsafe fn FONTOBJ_pvTrueTypeFontFile(pfo: *mut FONTOBJ, pcjfile: *mut u32) -> *mut core::ffi::c_void { @@ -348,12 +348,12 @@ pub unsafe fn FONTOBJ_pvTrueTypeFontFile(pfo: *mut FONTOBJ, pcjfile: *mut u32) - #[inline] pub unsafe fn FONTOBJ_pxoGetXform(pfo: *const FONTOBJ) -> *mut XFORMOBJ { windows_targets::link!("gdi32.dll" "system" fn FONTOBJ_pxoGetXform(pfo : *const FONTOBJ) -> *mut XFORMOBJ); - FONTOBJ_pxoGetXform(core::mem::transmute(pfo)) + FONTOBJ_pxoGetXform(pfo) } #[inline] pub unsafe fn FONTOBJ_vGetInfo(pfo: *mut FONTOBJ, cjsize: u32, pfi: *mut FONTINFO) { windows_targets::link!("gdi32.dll" "system" fn FONTOBJ_vGetInfo(pfo : *mut FONTOBJ, cjsize : u32, pfi : *mut FONTINFO)); - FONTOBJ_vGetInfo(core::mem::transmute(pfo), core::mem::transmute(cjsize), core::mem::transmute(pfi)) + FONTOBJ_vGetInfo(core::mem::transmute(pfo), cjsize, core::mem::transmute(pfi)) } #[inline] pub unsafe fn GetAutoRotationState(pstate: *mut AR_STATE) -> super::super::Foundation::BOOL { @@ -363,7 +363,7 @@ pub unsafe fn GetAutoRotationState(pstate: *mut AR_STATE) -> super::super::Found #[inline] pub unsafe fn GetCapabilitiesStringLength(hmonitor: super::super::Foundation::HANDLE, pdwcapabilitiesstringlengthincharacters: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetCapabilitiesStringLength(hmonitor : super::super::Foundation:: HANDLE, pdwcapabilitiesstringlengthincharacters : *mut u32) -> i32); - GetCapabilitiesStringLength(core::mem::transmute(hmonitor), core::mem::transmute(pdwcapabilitiesstringlengthincharacters)) + GetCapabilitiesStringLength(hmonitor, core::mem::transmute(pdwcapabilitiesstringlengthincharacters)) } #[inline] pub unsafe fn GetDisplayAutoRotationPreferences(porientation: *mut ORIENTATION_PREFERENCE) -> super::super::Foundation::BOOL { @@ -373,58 +373,58 @@ pub unsafe fn GetDisplayAutoRotationPreferences(porientation: *mut ORIENTATION_P #[inline] pub unsafe fn GetDisplayConfigBufferSizes(flags: QUERY_DISPLAY_CONFIG_FLAGS, numpatharrayelements: *mut u32, nummodeinfoarrayelements: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("user32.dll" "system" fn GetDisplayConfigBufferSizes(flags : QUERY_DISPLAY_CONFIG_FLAGS, numpatharrayelements : *mut u32, nummodeinfoarrayelements : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetDisplayConfigBufferSizes(core::mem::transmute(flags), core::mem::transmute(numpatharrayelements), core::mem::transmute(nummodeinfoarrayelements)) + GetDisplayConfigBufferSizes(flags, core::mem::transmute(numpatharrayelements), core::mem::transmute(nummodeinfoarrayelements)) } #[inline] pub unsafe fn GetMonitorBrightness(hmonitor: super::super::Foundation::HANDLE, pdwminimumbrightness: *mut u32, pdwcurrentbrightness: *mut u32, pdwmaximumbrightness: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorBrightness(hmonitor : super::super::Foundation:: HANDLE, pdwminimumbrightness : *mut u32, pdwcurrentbrightness : *mut u32, pdwmaximumbrightness : *mut u32) -> i32); - GetMonitorBrightness(core::mem::transmute(hmonitor), core::mem::transmute(pdwminimumbrightness), core::mem::transmute(pdwcurrentbrightness), core::mem::transmute(pdwmaximumbrightness)) + GetMonitorBrightness(hmonitor, core::mem::transmute(pdwminimumbrightness), core::mem::transmute(pdwcurrentbrightness), core::mem::transmute(pdwmaximumbrightness)) } #[inline] pub unsafe fn GetMonitorCapabilities(hmonitor: super::super::Foundation::HANDLE, pdwmonitorcapabilities: *mut u32, pdwsupportedcolortemperatures: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorCapabilities(hmonitor : super::super::Foundation:: HANDLE, pdwmonitorcapabilities : *mut u32, pdwsupportedcolortemperatures : *mut u32) -> i32); - GetMonitorCapabilities(core::mem::transmute(hmonitor), core::mem::transmute(pdwmonitorcapabilities), core::mem::transmute(pdwsupportedcolortemperatures)) + GetMonitorCapabilities(hmonitor, core::mem::transmute(pdwmonitorcapabilities), core::mem::transmute(pdwsupportedcolortemperatures)) } #[inline] pub unsafe fn GetMonitorColorTemperature(hmonitor: super::super::Foundation::HANDLE, pctcurrentcolortemperature: *mut MC_COLOR_TEMPERATURE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorColorTemperature(hmonitor : super::super::Foundation:: HANDLE, pctcurrentcolortemperature : *mut MC_COLOR_TEMPERATURE) -> i32); - GetMonitorColorTemperature(core::mem::transmute(hmonitor), core::mem::transmute(pctcurrentcolortemperature)) + GetMonitorColorTemperature(hmonitor, core::mem::transmute(pctcurrentcolortemperature)) } #[inline] pub unsafe fn GetMonitorContrast(hmonitor: super::super::Foundation::HANDLE, pdwminimumcontrast: *mut u32, pdwcurrentcontrast: *mut u32, pdwmaximumcontrast: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorContrast(hmonitor : super::super::Foundation:: HANDLE, pdwminimumcontrast : *mut u32, pdwcurrentcontrast : *mut u32, pdwmaximumcontrast : *mut u32) -> i32); - GetMonitorContrast(core::mem::transmute(hmonitor), core::mem::transmute(pdwminimumcontrast), core::mem::transmute(pdwcurrentcontrast), core::mem::transmute(pdwmaximumcontrast)) + GetMonitorContrast(hmonitor, core::mem::transmute(pdwminimumcontrast), core::mem::transmute(pdwcurrentcontrast), core::mem::transmute(pdwmaximumcontrast)) } #[inline] pub unsafe fn GetMonitorDisplayAreaPosition(hmonitor: super::super::Foundation::HANDLE, ptpositiontype: MC_POSITION_TYPE, pdwminimumposition: *mut u32, pdwcurrentposition: *mut u32, pdwmaximumposition: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorDisplayAreaPosition(hmonitor : super::super::Foundation:: HANDLE, ptpositiontype : MC_POSITION_TYPE, pdwminimumposition : *mut u32, pdwcurrentposition : *mut u32, pdwmaximumposition : *mut u32) -> i32); - GetMonitorDisplayAreaPosition(core::mem::transmute(hmonitor), core::mem::transmute(ptpositiontype), core::mem::transmute(pdwminimumposition), core::mem::transmute(pdwcurrentposition), core::mem::transmute(pdwmaximumposition)) + GetMonitorDisplayAreaPosition(hmonitor, ptpositiontype, core::mem::transmute(pdwminimumposition), core::mem::transmute(pdwcurrentposition), core::mem::transmute(pdwmaximumposition)) } #[inline] pub unsafe fn GetMonitorDisplayAreaSize(hmonitor: super::super::Foundation::HANDLE, stsizetype: MC_SIZE_TYPE, pdwminimumwidthorheight: *mut u32, pdwcurrentwidthorheight: *mut u32, pdwmaximumwidthorheight: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorDisplayAreaSize(hmonitor : super::super::Foundation:: HANDLE, stsizetype : MC_SIZE_TYPE, pdwminimumwidthorheight : *mut u32, pdwcurrentwidthorheight : *mut u32, pdwmaximumwidthorheight : *mut u32) -> i32); - GetMonitorDisplayAreaSize(core::mem::transmute(hmonitor), core::mem::transmute(stsizetype), core::mem::transmute(pdwminimumwidthorheight), core::mem::transmute(pdwcurrentwidthorheight), core::mem::transmute(pdwmaximumwidthorheight)) + GetMonitorDisplayAreaSize(hmonitor, stsizetype, core::mem::transmute(pdwminimumwidthorheight), core::mem::transmute(pdwcurrentwidthorheight), core::mem::transmute(pdwmaximumwidthorheight)) } #[inline] pub unsafe fn GetMonitorRedGreenOrBlueDrive(hmonitor: super::super::Foundation::HANDLE, dtdrivetype: MC_DRIVE_TYPE, pdwminimumdrive: *mut u32, pdwcurrentdrive: *mut u32, pdwmaximumdrive: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorRedGreenOrBlueDrive(hmonitor : super::super::Foundation:: HANDLE, dtdrivetype : MC_DRIVE_TYPE, pdwminimumdrive : *mut u32, pdwcurrentdrive : *mut u32, pdwmaximumdrive : *mut u32) -> i32); - GetMonitorRedGreenOrBlueDrive(core::mem::transmute(hmonitor), core::mem::transmute(dtdrivetype), core::mem::transmute(pdwminimumdrive), core::mem::transmute(pdwcurrentdrive), core::mem::transmute(pdwmaximumdrive)) + GetMonitorRedGreenOrBlueDrive(hmonitor, dtdrivetype, core::mem::transmute(pdwminimumdrive), core::mem::transmute(pdwcurrentdrive), core::mem::transmute(pdwmaximumdrive)) } #[inline] pub unsafe fn GetMonitorRedGreenOrBlueGain(hmonitor: super::super::Foundation::HANDLE, gtgaintype: MC_GAIN_TYPE, pdwminimumgain: *mut u32, pdwcurrentgain: *mut u32, pdwmaximumgain: *mut u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorRedGreenOrBlueGain(hmonitor : super::super::Foundation:: HANDLE, gtgaintype : MC_GAIN_TYPE, pdwminimumgain : *mut u32, pdwcurrentgain : *mut u32, pdwmaximumgain : *mut u32) -> i32); - GetMonitorRedGreenOrBlueGain(core::mem::transmute(hmonitor), core::mem::transmute(gtgaintype), core::mem::transmute(pdwminimumgain), core::mem::transmute(pdwcurrentgain), core::mem::transmute(pdwmaximumgain)) + GetMonitorRedGreenOrBlueGain(hmonitor, gtgaintype, core::mem::transmute(pdwminimumgain), core::mem::transmute(pdwcurrentgain), core::mem::transmute(pdwmaximumgain)) } #[inline] pub unsafe fn GetMonitorTechnologyType(hmonitor: super::super::Foundation::HANDLE, pdtydisplaytechnologytype: *mut MC_DISPLAY_TECHNOLOGY_TYPE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetMonitorTechnologyType(hmonitor : super::super::Foundation:: HANDLE, pdtydisplaytechnologytype : *mut MC_DISPLAY_TECHNOLOGY_TYPE) -> i32); - GetMonitorTechnologyType(core::mem::transmute(hmonitor), core::mem::transmute(pdtydisplaytechnologytype)) + GetMonitorTechnologyType(hmonitor, core::mem::transmute(pdtydisplaytechnologytype)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor: super::super::Graphics::Gdi::HMONITOR, pdwnumberofphysicalmonitors: *mut u32) -> windows_core::Result<()> { windows_targets::link!("dxva2.dll" "system" fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, pdwnumberofphysicalmonitors : *mut u32) -> super::super::Foundation:: BOOL); - GetNumberOfPhysicalMonitorsFromHMONITOR(core::mem::transmute(hmonitor), core::mem::transmute(pdwnumberofphysicalmonitors)).ok() + GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor, core::mem::transmute(pdwnumberofphysicalmonitors)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] @@ -440,7 +440,7 @@ where #[inline] pub unsafe fn GetPhysicalMonitorsFromHMONITOR(hmonitor: super::super::Graphics::Gdi::HMONITOR, pphysicalmonitorarray: &mut [PHYSICAL_MONITOR]) -> windows_core::Result<()> { windows_targets::link!("dxva2.dll" "system" fn GetPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, dwphysicalmonitorarraysize : u32, pphysicalmonitorarray : *mut PHYSICAL_MONITOR) -> super::super::Foundation:: BOOL); - GetPhysicalMonitorsFromHMONITOR(core::mem::transmute(hmonitor), pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() + GetPhysicalMonitorsFromHMONITOR(hmonitor, pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] @@ -454,24 +454,24 @@ where #[inline] pub unsafe fn GetTimingReport(hmonitor: super::super::Foundation::HANDLE, pmtrmonitortimingreport: *mut MC_TIMING_REPORT) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetTimingReport(hmonitor : super::super::Foundation:: HANDLE, pmtrmonitortimingreport : *mut MC_TIMING_REPORT) -> i32); - GetTimingReport(core::mem::transmute(hmonitor), core::mem::transmute(pmtrmonitortimingreport)) + GetTimingReport(hmonitor, core::mem::transmute(pmtrmonitortimingreport)) } #[inline] pub unsafe fn GetVCPFeatureAndVCPFeatureReply(hmonitor: super::super::Foundation::HANDLE, bvcpcode: u8, pvct: Option<*mut MC_VCP_CODE_TYPE>, pdwcurrentvalue: *mut u32, pdwmaximumvalue: Option<*mut u32>) -> i32 { windows_targets::link!("dxva2.dll" "system" fn GetVCPFeatureAndVCPFeatureReply(hmonitor : super::super::Foundation:: HANDLE, bvcpcode : u8, pvct : *mut MC_VCP_CODE_TYPE, pdwcurrentvalue : *mut u32, pdwmaximumvalue : *mut u32) -> i32); - GetVCPFeatureAndVCPFeatureReply(core::mem::transmute(hmonitor), core::mem::transmute(bvcpcode), core::mem::transmute(pvct.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwcurrentvalue), core::mem::transmute(pdwmaximumvalue.unwrap_or(core::mem::zeroed()))) + GetVCPFeatureAndVCPFeatureReply(hmonitor, bvcpcode, core::mem::transmute(pvct.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwcurrentvalue), core::mem::transmute(pdwmaximumvalue.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HT_Get8BPPFormatPalette(ppaletteentry: Option<*mut super::super::Graphics::Gdi::PALETTEENTRY>, redgamma: u16, greengamma: u16, bluegamma: u16) -> i32 { windows_targets::link!("gdi32.dll" "system" fn HT_Get8BPPFormatPalette(ppaletteentry : *mut super::super::Graphics::Gdi:: PALETTEENTRY, redgamma : u16, greengamma : u16, bluegamma : u16) -> i32); - HT_Get8BPPFormatPalette(core::mem::transmute(ppaletteentry.unwrap_or(core::mem::zeroed())), core::mem::transmute(redgamma), core::mem::transmute(greengamma), core::mem::transmute(bluegamma)) + HT_Get8BPPFormatPalette(core::mem::transmute(ppaletteentry.unwrap_or(core::mem::zeroed())), redgamma, greengamma, bluegamma) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HT_Get8BPPMaskPalette(ppaletteentry: Option<*mut super::super::Graphics::Gdi::PALETTEENTRY>, use8bppmaskpal: bool, cmymask: u8, redgamma: u16, greengamma: u16, bluegamma: u16) -> i32 { windows_targets::link!("gdi32.dll" "system" fn HT_Get8BPPMaskPalette(ppaletteentry : *mut super::super::Graphics::Gdi:: PALETTEENTRY, use8bppmaskpal : super::super::Foundation:: BOOL, cmymask : u8, redgamma : u16, greengamma : u16, bluegamma : u16) -> i32); - HT_Get8BPPMaskPalette(core::mem::transmute(ppaletteentry.unwrap_or(core::mem::zeroed())), use8bppmaskpal.into(), core::mem::transmute(cmymask), core::mem::transmute(redgamma), core::mem::transmute(greengamma), core::mem::transmute(bluegamma)) + HT_Get8BPPMaskPalette(core::mem::transmute(ppaletteentry.unwrap_or(core::mem::zeroed())), use8bppmaskpal.into(), cmymask, redgamma, greengamma, bluegamma) } #[inline] pub unsafe fn PATHOBJ_bEnum(ppo: *mut PATHOBJ, ppd: *mut PATHDATA) -> super::super::Foundation::BOOL { @@ -481,7 +481,7 @@ pub unsafe fn PATHOBJ_bEnum(ppo: *mut PATHOBJ, ppd: *mut PATHDATA) -> super::sup #[inline] pub unsafe fn PATHOBJ_bEnumClipLines(ppo: *mut PATHOBJ, cb: u32, pcl: *mut CLIPLINE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PATHOBJ_bEnumClipLines(ppo : *mut PATHOBJ, cb : u32, pcl : *mut CLIPLINE) -> super::super::Foundation:: BOOL); - PATHOBJ_bEnumClipLines(core::mem::transmute(ppo), core::mem::transmute(cb), core::mem::transmute(pcl)) + PATHOBJ_bEnumClipLines(core::mem::transmute(ppo), cb, core::mem::transmute(pcl)) } #[inline] pub unsafe fn PATHOBJ_vEnumStart(ppo: *mut PATHOBJ) { @@ -501,17 +501,17 @@ pub unsafe fn PATHOBJ_vGetBounds(ppo: *mut PATHOBJ, prectfx: *mut RECTFX) { #[inline] pub unsafe fn QueryDisplayConfig(flags: QUERY_DISPLAY_CONFIG_FLAGS, numpatharrayelements: *mut u32, patharray: *mut DISPLAYCONFIG_PATH_INFO, nummodeinfoarrayelements: *mut u32, modeinfoarray: *mut DISPLAYCONFIG_MODE_INFO, currenttopologyid: Option<*mut DISPLAYCONFIG_TOPOLOGY_ID>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("user32.dll" "system" fn QueryDisplayConfig(flags : QUERY_DISPLAY_CONFIG_FLAGS, numpatharrayelements : *mut u32, patharray : *mut DISPLAYCONFIG_PATH_INFO, nummodeinfoarrayelements : *mut u32, modeinfoarray : *mut DISPLAYCONFIG_MODE_INFO, currenttopologyid : *mut DISPLAYCONFIG_TOPOLOGY_ID) -> super::super::Foundation:: WIN32_ERROR); - QueryDisplayConfig(core::mem::transmute(flags), core::mem::transmute(numpatharrayelements), core::mem::transmute(patharray), core::mem::transmute(nummodeinfoarrayelements), core::mem::transmute(modeinfoarray), core::mem::transmute(currenttopologyid.unwrap_or(core::mem::zeroed()))) + QueryDisplayConfig(flags, core::mem::transmute(numpatharrayelements), core::mem::transmute(patharray), core::mem::transmute(nummodeinfoarrayelements), core::mem::transmute(modeinfoarray), core::mem::transmute(currenttopologyid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RestoreMonitorFactoryColorDefaults(hmonitor: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn RestoreMonitorFactoryColorDefaults(hmonitor : super::super::Foundation:: HANDLE) -> i32); - RestoreMonitorFactoryColorDefaults(core::mem::transmute(hmonitor)) + RestoreMonitorFactoryColorDefaults(hmonitor) } #[inline] pub unsafe fn RestoreMonitorFactoryDefaults(hmonitor: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn RestoreMonitorFactoryDefaults(hmonitor : super::super::Foundation:: HANDLE) -> i32); - RestoreMonitorFactoryDefaults(core::mem::transmute(hmonitor)) + RestoreMonitorFactoryDefaults(hmonitor) } #[inline] pub unsafe fn STROBJ_bEnum(pstro: *mut STROBJ, pc: *mut u32, ppgpos: *mut *mut GLYPHPOS) -> super::super::Foundation::BOOL { @@ -526,7 +526,7 @@ pub unsafe fn STROBJ_bEnumPositionsOnly(pstro: *mut STROBJ, pc: *mut u32, ppgpos #[inline] pub unsafe fn STROBJ_bGetAdvanceWidths(pso: *mut STROBJ, ifirst: u32, c: u32, pptqd: *mut POINTQF) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn STROBJ_bGetAdvanceWidths(pso : *mut STROBJ, ifirst : u32, c : u32, pptqd : *mut POINTQF) -> super::super::Foundation:: BOOL); - STROBJ_bGetAdvanceWidths(core::mem::transmute(pso), core::mem::transmute(ifirst), core::mem::transmute(c), core::mem::transmute(pptqd)) + STROBJ_bGetAdvanceWidths(core::mem::transmute(pso), ifirst, c, core::mem::transmute(pptqd)) } #[inline] pub unsafe fn STROBJ_dwGetCodePage(pstro: *mut STROBJ) -> u32 { @@ -541,77 +541,77 @@ pub unsafe fn STROBJ_vEnumStart(pstro: *mut STROBJ) { #[inline] pub unsafe fn SaveCurrentMonitorSettings(hmonitor: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SaveCurrentMonitorSettings(hmonitor : super::super::Foundation:: HANDLE) -> i32); - SaveCurrentMonitorSettings(core::mem::transmute(hmonitor)) + SaveCurrentMonitorSettings(hmonitor) } #[inline] pub unsafe fn SaveCurrentSettings(hmonitor: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SaveCurrentSettings(hmonitor : super::super::Foundation:: HANDLE) -> i32); - SaveCurrentSettings(core::mem::transmute(hmonitor)) + SaveCurrentSettings(hmonitor) } #[inline] pub unsafe fn SetDisplayAutoRotationPreferences(orientation: ORIENTATION_PREFERENCE) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SetDisplayAutoRotationPreferences(orientation : ORIENTATION_PREFERENCE) -> super::super::Foundation:: BOOL); - SetDisplayAutoRotationPreferences(core::mem::transmute(orientation)) + SetDisplayAutoRotationPreferences(orientation) } #[inline] pub unsafe fn SetDisplayConfig(patharray: Option<&[DISPLAYCONFIG_PATH_INFO]>, modeinfoarray: Option<&[DISPLAYCONFIG_MODE_INFO]>, flags: SET_DISPLAY_CONFIG_FLAGS) -> i32 { windows_targets::link!("user32.dll" "system" fn SetDisplayConfig(numpatharrayelements : u32, patharray : *const DISPLAYCONFIG_PATH_INFO, nummodeinfoarrayelements : u32, modeinfoarray : *const DISPLAYCONFIG_MODE_INFO, flags : SET_DISPLAY_CONFIG_FLAGS) -> i32); - SetDisplayConfig(patharray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(patharray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), modeinfoarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(modeinfoarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(flags)) + SetDisplayConfig(patharray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(patharray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), modeinfoarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(modeinfoarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), flags) } #[inline] pub unsafe fn SetMonitorBrightness(hmonitor: super::super::Foundation::HANDLE, dwnewbrightness: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorBrightness(hmonitor : super::super::Foundation:: HANDLE, dwnewbrightness : u32) -> i32); - SetMonitorBrightness(core::mem::transmute(hmonitor), core::mem::transmute(dwnewbrightness)) + SetMonitorBrightness(hmonitor, dwnewbrightness) } #[inline] pub unsafe fn SetMonitorColorTemperature(hmonitor: super::super::Foundation::HANDLE, ctcurrentcolortemperature: MC_COLOR_TEMPERATURE) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorColorTemperature(hmonitor : super::super::Foundation:: HANDLE, ctcurrentcolortemperature : MC_COLOR_TEMPERATURE) -> i32); - SetMonitorColorTemperature(core::mem::transmute(hmonitor), core::mem::transmute(ctcurrentcolortemperature)) + SetMonitorColorTemperature(hmonitor, ctcurrentcolortemperature) } #[inline] pub unsafe fn SetMonitorContrast(hmonitor: super::super::Foundation::HANDLE, dwnewcontrast: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorContrast(hmonitor : super::super::Foundation:: HANDLE, dwnewcontrast : u32) -> i32); - SetMonitorContrast(core::mem::transmute(hmonitor), core::mem::transmute(dwnewcontrast)) + SetMonitorContrast(hmonitor, dwnewcontrast) } #[inline] pub unsafe fn SetMonitorDisplayAreaPosition(hmonitor: super::super::Foundation::HANDLE, ptpositiontype: MC_POSITION_TYPE, dwnewposition: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorDisplayAreaPosition(hmonitor : super::super::Foundation:: HANDLE, ptpositiontype : MC_POSITION_TYPE, dwnewposition : u32) -> i32); - SetMonitorDisplayAreaPosition(core::mem::transmute(hmonitor), core::mem::transmute(ptpositiontype), core::mem::transmute(dwnewposition)) + SetMonitorDisplayAreaPosition(hmonitor, ptpositiontype, dwnewposition) } #[inline] pub unsafe fn SetMonitorDisplayAreaSize(hmonitor: super::super::Foundation::HANDLE, stsizetype: MC_SIZE_TYPE, dwnewdisplayareawidthorheight: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorDisplayAreaSize(hmonitor : super::super::Foundation:: HANDLE, stsizetype : MC_SIZE_TYPE, dwnewdisplayareawidthorheight : u32) -> i32); - SetMonitorDisplayAreaSize(core::mem::transmute(hmonitor), core::mem::transmute(stsizetype), core::mem::transmute(dwnewdisplayareawidthorheight)) + SetMonitorDisplayAreaSize(hmonitor, stsizetype, dwnewdisplayareawidthorheight) } #[inline] pub unsafe fn SetMonitorRedGreenOrBlueDrive(hmonitor: super::super::Foundation::HANDLE, dtdrivetype: MC_DRIVE_TYPE, dwnewdrive: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorRedGreenOrBlueDrive(hmonitor : super::super::Foundation:: HANDLE, dtdrivetype : MC_DRIVE_TYPE, dwnewdrive : u32) -> i32); - SetMonitorRedGreenOrBlueDrive(core::mem::transmute(hmonitor), core::mem::transmute(dtdrivetype), core::mem::transmute(dwnewdrive)) + SetMonitorRedGreenOrBlueDrive(hmonitor, dtdrivetype, dwnewdrive) } #[inline] pub unsafe fn SetMonitorRedGreenOrBlueGain(hmonitor: super::super::Foundation::HANDLE, gtgaintype: MC_GAIN_TYPE, dwnewgain: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetMonitorRedGreenOrBlueGain(hmonitor : super::super::Foundation:: HANDLE, gtgaintype : MC_GAIN_TYPE, dwnewgain : u32) -> i32); - SetMonitorRedGreenOrBlueGain(core::mem::transmute(hmonitor), core::mem::transmute(gtgaintype), core::mem::transmute(dwnewgain)) + SetMonitorRedGreenOrBlueGain(hmonitor, gtgaintype, dwnewgain) } #[inline] pub unsafe fn SetVCPFeature(hmonitor: super::super::Foundation::HANDLE, bvcpcode: u8, dwnewvalue: u32) -> i32 { windows_targets::link!("dxva2.dll" "system" fn SetVCPFeature(hmonitor : super::super::Foundation:: HANDLE, bvcpcode : u8, dwnewvalue : u32) -> i32); - SetVCPFeature(core::mem::transmute(hmonitor), core::mem::transmute(bvcpcode), core::mem::transmute(dwnewvalue)) + SetVCPFeature(hmonitor, bvcpcode, dwnewvalue) } #[inline] pub unsafe fn XFORMOBJ_bApplyXform(pxo: *mut XFORMOBJ, imode: u32, cpoints: u32, pvin: *mut core::ffi::c_void, pvout: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn XFORMOBJ_bApplyXform(pxo : *mut XFORMOBJ, imode : u32, cpoints : u32, pvin : *mut core::ffi::c_void, pvout : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - XFORMOBJ_bApplyXform(core::mem::transmute(pxo), core::mem::transmute(imode), core::mem::transmute(cpoints), core::mem::transmute(pvin), core::mem::transmute(pvout)) + XFORMOBJ_bApplyXform(core::mem::transmute(pxo), imode, cpoints, core::mem::transmute(pvin), core::mem::transmute(pvout)) } #[inline] pub unsafe fn XFORMOBJ_iGetXform(pxo: *const XFORMOBJ, pxform: Option<*mut XFORML>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn XFORMOBJ_iGetXform(pxo : *const XFORMOBJ, pxform : *mut XFORML) -> u32); - XFORMOBJ_iGetXform(core::mem::transmute(pxo), core::mem::transmute(pxform.unwrap_or(core::mem::zeroed()))) + XFORMOBJ_iGetXform(pxo, core::mem::transmute(pxform.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn XLATEOBJ_cGetPalette(pxlo: *mut XLATEOBJ, ipal: u32, cpal: u32, ppal: *mut u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn XLATEOBJ_cGetPalette(pxlo : *mut XLATEOBJ, ipal : u32, cpal : u32, ppal : *mut u32) -> u32); - XLATEOBJ_cGetPalette(core::mem::transmute(pxlo), core::mem::transmute(ipal), core::mem::transmute(cpal), core::mem::transmute(ppal)) + XLATEOBJ_cGetPalette(core::mem::transmute(pxlo), ipal, cpal, core::mem::transmute(ppal)) } #[inline] pub unsafe fn XLATEOBJ_hGetColorTransform(pxlo: *mut XLATEOBJ) -> super::super::Foundation::HANDLE { @@ -621,7 +621,7 @@ pub unsafe fn XLATEOBJ_hGetColorTransform(pxlo: *mut XLATEOBJ) -> super::super:: #[inline] pub unsafe fn XLATEOBJ_iXlate(pxlo: *mut XLATEOBJ, icolor: u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn XLATEOBJ_iXlate(pxlo : *mut XLATEOBJ, icolor : u32) -> u32); - XLATEOBJ_iXlate(core::mem::transmute(pxlo), core::mem::transmute(icolor)) + XLATEOBJ_iXlate(core::mem::transmute(pxlo), icolor) } #[inline] pub unsafe fn XLATEOBJ_piVector(pxlo: *mut XLATEOBJ) -> *mut u32 { @@ -2903,19 +2903,19 @@ impl ICloneViewHelper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(pulcount), core::mem::transmute(pulid), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(pulcount), core::mem::transmute(pulid), ulflags).ok() } pub unsafe fn GetActiveTopology(&self, wszadaptorname: P0, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(ulsourceid), core::mem::transmute(pulcount), core::mem::transmute(pultargetid)).ok() + (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), ulsourceid, core::mem::transmute(pulcount), core::mem::transmute(pultargetid)).ok() } pub unsafe fn SetActiveTopology(&self, wszadaptorname: P0, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(ulsourceid), core::mem::transmute(ulcount), core::mem::transmute(pultargetid)).ok() + (windows_core::Interface::vtable(self).SetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), ulsourceid, ulcount, pultargetid).ok() } pub unsafe fn Commit(&self, ffinalcall: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), ffinalcall.into()).ok() @@ -3323,19 +3323,19 @@ impl IViewHelper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(pulcount), core::mem::transmute(pulid), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(pulcount), core::mem::transmute(pulid), ulflags).ok() } pub unsafe fn GetActiveTopology(&self, wszadaptorname: P0, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(ulsourceid), core::mem::transmute(pulcount), core::mem::transmute(pultargetid)).ok() + (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), ulsourceid, core::mem::transmute(pulcount), core::mem::transmute(pultargetid)).ok() } pub unsafe fn SetActiveTopology(&self, wszadaptorname: P0, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), core::mem::transmute(ulsourceid), core::mem::transmute(ulcount), core::mem::transmute(pultargetid)).ok() + (windows_core::Interface::vtable(self).SetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), ulsourceid, ulcount, pultargetid).ok() } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs index eb26e19d8c..69b7dbab4d 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn SwDeviceClose(hswdevice: HSWDEVICE) { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceClose(hswdevice : HSWDEVICE)); - SwDeviceClose(core::mem::transmute(hswdevice)) + SwDeviceClose(hswdevice) } #[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Security"))] #[inline] @@ -12,13 +12,13 @@ where { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceCreate(pszenumeratorname : windows_core::PCWSTR, pszparentdeviceinstance : windows_core::PCWSTR, pcreateinfo : *const SW_DEVICE_CREATE_INFO, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY, pcallback : SW_DEVICE_CREATE_CALLBACK, pcontext : *const core::ffi::c_void, phswdevice : *mut HSWDEVICE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SwDeviceCreate(pszenumeratorname.param().abi(), pszparentdeviceinstance.param().abi(), core::mem::transmute(pcreateinfo), pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcallback), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + SwDeviceCreate(pszenumeratorname.param().abi(), pszparentdeviceinstance.param().abi(), pcreateinfo, pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SwDeviceGetLifetime(hswdevice: HSWDEVICE) -> windows_core::Result { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceGetLifetime(hswdevice : HSWDEVICE, plifetime : *mut SW_DEVICE_LIFETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SwDeviceGetLifetime(core::mem::transmute(hswdevice), &mut result__).map(|| core::mem::transmute(result__)) + SwDeviceGetLifetime(hswdevice, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -27,7 +27,7 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfacePropertySet(hswdevice : HSWDEVICE, pszdeviceinterfaceid : windows_core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> windows_core::HRESULT); - SwDeviceInterfacePropertySet(core::mem::transmute(hswdevice), pszdeviceinterfaceid.param().abi(), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() + SwDeviceInterfacePropertySet(hswdevice, pszdeviceinterfaceid.param().abi(), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -37,7 +37,7 @@ where { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceRegister(hswdevice : HSWDEVICE, pinterfaceclassguid : *const windows_core::GUID, pszreferencestring : windows_core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY, fenabled : super::super::super::Foundation:: BOOL, ppszdeviceinterfaceid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SwDeviceInterfaceRegister(core::mem::transmute(hswdevice), core::mem::transmute(pinterfaceclassguid), pszreferencestring.param().abi(), pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fenabled.into(), &mut result__).map(|| core::mem::transmute(result__)) + SwDeviceInterfaceRegister(hswdevice, pinterfaceclassguid, pszreferencestring.param().abi(), pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fenabled.into(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SwDeviceInterfaceSetState(hswdevice: HSWDEVICE, pszdeviceinterfaceid: P1, fenabled: bool) -> windows_core::Result<()> @@ -45,23 +45,23 @@ where P1: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceSetState(hswdevice : HSWDEVICE, pszdeviceinterfaceid : windows_core::PCWSTR, fenabled : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - SwDeviceInterfaceSetState(core::mem::transmute(hswdevice), pszdeviceinterfaceid.param().abi(), fenabled.into()).ok() + SwDeviceInterfaceSetState(hswdevice, pszdeviceinterfaceid.param().abi(), fenabled.into()).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SwDevicePropertySet(hswdevice: HSWDEVICE, pproperties: &[super::super::Properties::DEVPROPERTY]) -> windows_core::Result<()> { windows_targets::link!("cfgmgr32.dll" "system" fn SwDevicePropertySet(hswdevice : HSWDEVICE, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> windows_core::HRESULT); - SwDevicePropertySet(core::mem::transmute(hswdevice), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() + SwDevicePropertySet(hswdevice, pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() } #[inline] pub unsafe fn SwDeviceSetLifetime(hswdevice: HSWDEVICE, lifetime: SW_DEVICE_LIFETIME) -> windows_core::Result<()> { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceSetLifetime(hswdevice : HSWDEVICE, lifetime : SW_DEVICE_LIFETIME) -> windows_core::HRESULT); - SwDeviceSetLifetime(core::mem::transmute(hswdevice), core::mem::transmute(lifetime)).ok() + SwDeviceSetLifetime(hswdevice, lifetime).ok() } #[inline] pub unsafe fn SwMemFree(pmem: *const core::ffi::c_void) { windows_targets::link!("cfgmgr32.dll" "system" fn SwMemFree(pmem : *const core::ffi::c_void)); - SwMemFree(core::mem::transmute(pmem)) + SwMemFree(pmem) } pub const ADDRESS_FAMILY_VALUE_NAME: windows_core::PCWSTR = windows_core::w!("AddressFamily"); pub const FAULT_ACTION_SPECIFIC_BASE: u32 = 600u32; @@ -97,7 +97,7 @@ windows_core::imp::define_interface!(IUPnPAddressFamilyControl, IUPnPAddressFami windows_core::imp::interface_hierarchy!(IUPnPAddressFamilyControl, windows_core::IUnknown); impl IUPnPAddressFamilyControl { pub unsafe fn SetAddressFamily(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAddressFamily)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetAddressFamily)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetAddressFamily(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -145,7 +145,7 @@ windows_core::imp::define_interface!(IUPnPAsyncResult, IUPnPAsyncResult_Vtbl, 0x windows_core::imp::interface_hierarchy!(IUPnPAsyncResult, windows_core::IUnknown); impl IUPnPAsyncResult { pub unsafe fn AsyncOperationComplete(&self, ullrequestid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AsyncOperationComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(ullrequestid)).ok() + (windows_core::Interface::vtable(self).AsyncOperationComplete)(windows_core::Interface::as_raw(self), ullrequestid).ok() } } #[repr(C)] @@ -309,7 +309,7 @@ windows_core::imp::define_interface!(IUPnPDescriptionDocumentCallback, IUPnPDesc windows_core::imp::interface_hierarchy!(IUPnPDescriptionDocumentCallback, windows_core::IUnknown); impl IUPnPDescriptionDocumentCallback { pub unsafe fn LoadComplete(&self, hrloadresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrloadresult)).ok() + (windows_core::Interface::vtable(self).LoadComplete)(windows_core::Interface::as_raw(self), hrloadresult).ok() } } #[repr(C)] @@ -416,7 +416,7 @@ impl IUPnPDevice { } pub unsafe fn IconURL(&self, bstrencodingformat: &windows_core::BSTR, lsizex: i32, lsizey: i32, lbitdepth: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IconURL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrencodingformat), core::mem::transmute(lsizex), core::mem::transmute(lsizey), core::mem::transmute(lbitdepth), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).IconURL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrencodingformat), lsizex, lsizey, lbitdepth, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Services(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -866,20 +866,20 @@ windows_core::imp::interface_hierarchy!(IUPnPDeviceFinder, windows_core::IUnknow impl IUPnPDeviceFinder { pub unsafe fn FindByType(&self, bstrtypeuri: &windows_core::BSTR, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindByType)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtypeuri), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindByType)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtypeuri), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAsyncFind(&self, bstrtypeuri: &windows_core::BSTR, dwflags: u32, punkdevicefindercallback: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAsyncFind)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtypeuri), core::mem::transmute(dwflags), punkdevicefindercallback.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateAsyncFind)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtypeuri), dwflags, punkdevicefindercallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StartAsyncFind(&self, lfinddata: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartAsyncFind)(windows_core::Interface::as_raw(self), core::mem::transmute(lfinddata)).ok() + (windows_core::Interface::vtable(self).StartAsyncFind)(windows_core::Interface::as_raw(self), lfinddata).ok() } pub unsafe fn CancelAsyncFind(&self, lfinddata: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelAsyncFind)(windows_core::Interface::as_raw(self), core::mem::transmute(lfinddata)).ok() + (windows_core::Interface::vtable(self).CancelAsyncFind)(windows_core::Interface::as_raw(self), lfinddata).ok() } pub unsafe fn FindByUDN(&self, bstrudn: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -968,7 +968,7 @@ impl IUPnPDeviceFinderAddCallbackWithInterface { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceAddedWithInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(lfinddata), pdevice.param().abi(), core::mem::transmute(pguidinterface)).ok() + (windows_core::Interface::vtable(self).DeviceAddedWithInterface)(windows_core::Interface::as_raw(self), lfinddata, pdevice.param().abi(), pguidinterface).ok() } } #[repr(C)] @@ -1006,13 +1006,13 @@ impl IUPnPDeviceFinderCallback { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceAdded)(windows_core::Interface::as_raw(self), core::mem::transmute(lfinddata), pdevice.param().abi()).ok() + (windows_core::Interface::vtable(self).DeviceAdded)(windows_core::Interface::as_raw(self), lfinddata, pdevice.param().abi()).ok() } pub unsafe fn DeviceRemoved(&self, lfinddata: i32, bstrudn: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceRemoved)(windows_core::Interface::as_raw(self), core::mem::transmute(lfinddata), core::mem::transmute_copy(bstrudn)).ok() + (windows_core::Interface::vtable(self).DeviceRemoved)(windows_core::Interface::as_raw(self), lfinddata, core::mem::transmute_copy(bstrudn)).ok() } pub unsafe fn SearchComplete(&self, lfinddata: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SearchComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(lfinddata)).ok() + (windows_core::Interface::vtable(self).SearchComplete)(windows_core::Interface::as_raw(self), lfinddata).ok() } } #[repr(C)] @@ -1306,14 +1306,14 @@ windows_core::imp::interface_hierarchy!(IUPnPRegistrar, windows_core::IUnknown); impl IUPnPRegistrar { pub unsafe fn RegisterDevice(&self, bstrxmldesc: &windows_core::BSTR, bstrprogiddevicecontrolclass: &windows_core::BSTR, bstrinitstring: &windows_core::BSTR, bstrcontainerid: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxmldesc), core::mem::transmute_copy(bstrprogiddevicecontrolclass), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrcontainerid), core::mem::transmute_copy(bstrresourcepath), core::mem::transmute(nlifetime), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).RegisterDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxmldesc), core::mem::transmute_copy(bstrprogiddevicecontrolclass), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrcontainerid), core::mem::transmute_copy(bstrresourcepath), nlifetime, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RegisterRunningDevice(&self, bstrxmldesc: &windows_core::BSTR, punkdevicecontrol: P1, bstrinitstring: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterRunningDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxmldesc), punkdevicecontrol.param().abi(), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrresourcepath), core::mem::transmute(nlifetime), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).RegisterRunningDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxmldesc), punkdevicecontrol.param().abi(), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrresourcepath), nlifetime, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RegisterDeviceProvider(&self, bstrprovidername: &windows_core::BSTR, bstrprogidproviderclass: &windows_core::BSTR, bstrinitstring: &windows_core::BSTR, bstrcontainerid: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprovidername), core::mem::transmute_copy(bstrprogidproviderclass), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrcontainerid)).ok() @@ -1482,13 +1482,13 @@ windows_core::imp::define_interface!(IUPnPReregistrar, IUPnPReregistrar_Vtbl, 0x windows_core::imp::interface_hierarchy!(IUPnPReregistrar, windows_core::IUnknown); impl IUPnPReregistrar { pub unsafe fn ReregisterDevice(&self, bstrdeviceidentifier: &windows_core::BSTR, bstrxmldesc: &windows_core::BSTR, bstrprogiddevicecontrolclass: &windows_core::BSTR, bstrinitstring: &windows_core::BSTR, bstrcontainerid: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReregisterDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceidentifier), core::mem::transmute_copy(bstrxmldesc), core::mem::transmute_copy(bstrprogiddevicecontrolclass), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrcontainerid), core::mem::transmute_copy(bstrresourcepath), core::mem::transmute(nlifetime)).ok() + (windows_core::Interface::vtable(self).ReregisterDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceidentifier), core::mem::transmute_copy(bstrxmldesc), core::mem::transmute_copy(bstrprogiddevicecontrolclass), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrcontainerid), core::mem::transmute_copy(bstrresourcepath), nlifetime).ok() } pub unsafe fn ReregisterRunningDevice(&self, bstrdeviceidentifier: &windows_core::BSTR, bstrxmldesc: &windows_core::BSTR, punkdevicecontrol: P2, bstrinitstring: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReregisterRunningDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceidentifier), core::mem::transmute_copy(bstrxmldesc), punkdevicecontrol.param().abi(), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrresourcepath), core::mem::transmute(nlifetime)).ok() + (windows_core::Interface::vtable(self).ReregisterRunningDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceidentifier), core::mem::transmute_copy(bstrxmldesc), punkdevicecontrol.param().abi(), core::mem::transmute_copy(bstrinitstring), core::mem::transmute_copy(bstrresourcepath), nlifetime).ok() } } #[repr(C)] @@ -1676,7 +1676,7 @@ impl IUPnPServiceAsync { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn EndInvokeAction(&self, ullrequestid: u64, pvoutactionargs: *mut super::super::super::System::Variant::VARIANT, pvretval: *mut super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndInvokeAction)(windows_core::Interface::as_raw(self), core::mem::transmute(ullrequestid), core::mem::transmute(pvoutactionargs), core::mem::transmute(pvretval)).ok() + (windows_core::Interface::vtable(self).EndInvokeAction)(windows_core::Interface::as_raw(self), ullrequestid, core::mem::transmute(pvoutactionargs), core::mem::transmute(pvretval)).ok() } pub unsafe fn BeginQueryStateVariable(&self, bstrvariablename: &windows_core::BSTR, pasyncresult: P1) -> windows_core::Result where @@ -1687,7 +1687,7 @@ impl IUPnPServiceAsync { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn EndQueryStateVariable(&self, ullrequestid: u64, pvalue: *mut super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndQueryStateVariable)(windows_core::Interface::as_raw(self), core::mem::transmute(ullrequestid), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).EndQueryStateVariable)(windows_core::Interface::as_raw(self), ullrequestid, core::mem::transmute(pvalue)).ok() } pub unsafe fn BeginSubscribeToEvents(&self, punkcallback: P0, pasyncresult: P1) -> windows_core::Result where @@ -1698,7 +1698,7 @@ impl IUPnPServiceAsync { (windows_core::Interface::vtable(self).BeginSubscribeToEvents)(windows_core::Interface::as_raw(self), punkcallback.param().abi(), pasyncresult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndSubscribeToEvents(&self, ullrequestid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSubscribeToEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(ullrequestid)).ok() + (windows_core::Interface::vtable(self).EndSubscribeToEvents)(windows_core::Interface::as_raw(self), ullrequestid).ok() } pub unsafe fn BeginSCPDDownload(&self, pasyncresult: P0) -> windows_core::Result where @@ -1709,10 +1709,10 @@ impl IUPnPServiceAsync { } pub unsafe fn EndSCPDDownload(&self, ullrequestid: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndSCPDDownload)(windows_core::Interface::as_raw(self), core::mem::transmute(ullrequestid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EndSCPDDownload)(windows_core::Interface::as_raw(self), ullrequestid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CancelAsyncOperation(&self, ullrequestid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelAsyncOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(ullrequestid)).ok() + (windows_core::Interface::vtable(self).CancelAsyncOperation)(windows_core::Interface::as_raw(self), ullrequestid).ok() } } #[repr(C)] @@ -1955,7 +1955,7 @@ windows_core::imp::define_interface!(IUPnPServiceEnumProperty, IUPnPServiceEnumP windows_core::imp::interface_hierarchy!(IUPnPServiceEnumProperty, windows_core::IUnknown); impl IUPnPServiceEnumProperty { pub unsafe fn SetServiceEnumProperty(&self, dwmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetServiceEnumProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).SetServiceEnumProperty)(windows_core::Interface::as_raw(self), dwmask).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs index 5333767808..93050e016e 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs @@ -6,17 +6,17 @@ pub unsafe fn CanSendToFaxRecipient() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn FaxAbort(faxhandle: super::super::Foundation::HANDLE, jobid: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winfax.dll" "system" fn FaxAbort(faxhandle : super::super::Foundation:: HANDLE, jobid : u32) -> super::super::Foundation:: BOOL); - FaxAbort(core::mem::transmute(faxhandle), core::mem::transmute(jobid)) + FaxAbort(faxhandle, jobid) } #[inline] pub unsafe fn FaxAccessCheck(faxhandle: super::super::Foundation::HANDLE, accessmask: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winfax.dll" "system" fn FaxAccessCheck(faxhandle : super::super::Foundation:: HANDLE, accessmask : u32) -> super::super::Foundation:: BOOL); - FaxAccessCheck(core::mem::transmute(faxhandle), core::mem::transmute(accessmask)) + FaxAccessCheck(faxhandle, accessmask) } #[inline] pub unsafe fn FaxClose(faxhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winfax.dll" "system" fn FaxClose(faxhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FaxClose(core::mem::transmute(faxhandle)) + FaxClose(faxhandle) } #[inline] pub unsafe fn FaxCompleteJobParamsA(jobparams: *mut *mut FAX_JOB_PARAMA, coverpageinfo: *mut *mut FAX_COVERPAGE_INFOA) -> super::super::Foundation::BOOL { @@ -50,7 +50,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxEnableRoutingMethodA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, enabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - FaxEnableRoutingMethodA(core::mem::transmute(faxporthandle), routingguid.param().abi(), enabled.into()).ok() + FaxEnableRoutingMethodA(faxporthandle, routingguid.param().abi(), enabled.into()).ok() } #[inline] pub unsafe fn FaxEnableRoutingMethodW(faxporthandle: super::super::Foundation::HANDLE, routingguid: P1, enabled: bool) -> windows_core::Result<()> @@ -58,47 +58,47 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxEnableRoutingMethodW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, enabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - FaxEnableRoutingMethodW(core::mem::transmute(faxporthandle), routingguid.param().abi(), enabled.into()).ok() + FaxEnableRoutingMethodW(faxporthandle, routingguid.param().abi(), enabled.into()).ok() } #[inline] pub unsafe fn FaxEnumGlobalRoutingInfoA(faxhandle: super::super::Foundation::HANDLE, routinginfo: *mut *mut FAX_GLOBAL_ROUTING_INFOA, methodsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *mut *mut FAX_GLOBAL_ROUTING_INFOA, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumGlobalRoutingInfoA(core::mem::transmute(faxhandle), core::mem::transmute(routinginfo), core::mem::transmute(methodsreturned)).ok() + FaxEnumGlobalRoutingInfoA(faxhandle, core::mem::transmute(routinginfo), core::mem::transmute(methodsreturned)).ok() } #[inline] pub unsafe fn FaxEnumGlobalRoutingInfoW(faxhandle: super::super::Foundation::HANDLE, routinginfo: *mut *mut FAX_GLOBAL_ROUTING_INFOW, methodsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *mut *mut FAX_GLOBAL_ROUTING_INFOW, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumGlobalRoutingInfoW(core::mem::transmute(faxhandle), core::mem::transmute(routinginfo), core::mem::transmute(methodsreturned)).ok() + FaxEnumGlobalRoutingInfoW(faxhandle, core::mem::transmute(routinginfo), core::mem::transmute(methodsreturned)).ok() } #[inline] pub unsafe fn FaxEnumJobsA(faxhandle: super::super::Foundation::HANDLE, jobentry: *mut *mut FAX_JOB_ENTRYA, jobsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumJobsA(faxhandle : super::super::Foundation:: HANDLE, jobentry : *mut *mut FAX_JOB_ENTRYA, jobsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumJobsA(core::mem::transmute(faxhandle), core::mem::transmute(jobentry), core::mem::transmute(jobsreturned)).ok() + FaxEnumJobsA(faxhandle, core::mem::transmute(jobentry), core::mem::transmute(jobsreturned)).ok() } #[inline] pub unsafe fn FaxEnumJobsW(faxhandle: super::super::Foundation::HANDLE, jobentry: *mut *mut FAX_JOB_ENTRYW, jobsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumJobsW(faxhandle : super::super::Foundation:: HANDLE, jobentry : *mut *mut FAX_JOB_ENTRYW, jobsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumJobsW(core::mem::transmute(faxhandle), core::mem::transmute(jobentry), core::mem::transmute(jobsreturned)).ok() + FaxEnumJobsW(faxhandle, core::mem::transmute(jobentry), core::mem::transmute(jobsreturned)).ok() } #[inline] pub unsafe fn FaxEnumPortsA(faxhandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOA, portsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumPortsA(faxhandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA, portsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumPortsA(core::mem::transmute(faxhandle), core::mem::transmute(portinfo), core::mem::transmute(portsreturned)).ok() + FaxEnumPortsA(faxhandle, core::mem::transmute(portinfo), core::mem::transmute(portsreturned)).ok() } #[inline] pub unsafe fn FaxEnumPortsW(faxhandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOW, portsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumPortsW(faxhandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW, portsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumPortsW(core::mem::transmute(faxhandle), core::mem::transmute(portinfo), core::mem::transmute(portsreturned)).ok() + FaxEnumPortsW(faxhandle, core::mem::transmute(portinfo), core::mem::transmute(portsreturned)).ok() } #[inline] pub unsafe fn FaxEnumRoutingMethodsA(faxporthandle: super::super::Foundation::HANDLE, routingmethod: *mut *mut FAX_ROUTING_METHODA, methodsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumRoutingMethodsA(faxporthandle : super::super::Foundation:: HANDLE, routingmethod : *mut *mut FAX_ROUTING_METHODA, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumRoutingMethodsA(core::mem::transmute(faxporthandle), core::mem::transmute(routingmethod), core::mem::transmute(methodsreturned)).ok() + FaxEnumRoutingMethodsA(faxporthandle, core::mem::transmute(routingmethod), core::mem::transmute(methodsreturned)).ok() } #[inline] pub unsafe fn FaxEnumRoutingMethodsW(faxporthandle: super::super::Foundation::HANDLE, routingmethod: *mut *mut FAX_ROUTING_METHODW, methodsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxEnumRoutingMethodsW(faxporthandle : super::super::Foundation:: HANDLE, routingmethod : *mut *mut FAX_ROUTING_METHODW, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); - FaxEnumRoutingMethodsW(core::mem::transmute(faxporthandle), core::mem::transmute(routingmethod), core::mem::transmute(methodsreturned)).ok() + FaxEnumRoutingMethodsW(faxporthandle, core::mem::transmute(routingmethod), core::mem::transmute(methodsreturned)).ok() } #[inline] pub unsafe fn FaxFreeBuffer(buffer: *mut core::ffi::c_void) { @@ -108,57 +108,57 @@ pub unsafe fn FaxFreeBuffer(buffer: *mut core::ffi::c_void) { #[inline] pub unsafe fn FaxGetConfigurationA(faxhandle: super::super::Foundation::HANDLE, faxconfig: *mut *mut FAX_CONFIGURATIONA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONA) -> super::super::Foundation:: BOOL); - FaxGetConfigurationA(core::mem::transmute(faxhandle), core::mem::transmute(faxconfig)).ok() + FaxGetConfigurationA(faxhandle, core::mem::transmute(faxconfig)).ok() } #[inline] pub unsafe fn FaxGetConfigurationW(faxhandle: super::super::Foundation::HANDLE, faxconfig: *mut *mut FAX_CONFIGURATIONW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONW) -> super::super::Foundation:: BOOL); - FaxGetConfigurationW(core::mem::transmute(faxhandle), core::mem::transmute(faxconfig)).ok() + FaxGetConfigurationW(faxhandle, core::mem::transmute(faxconfig)).ok() } #[inline] pub unsafe fn FaxGetDeviceStatusA(faxporthandle: super::super::Foundation::HANDLE, devicestatus: *mut *mut FAX_DEVICE_STATUSA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusA(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSA) -> super::super::Foundation:: BOOL); - FaxGetDeviceStatusA(core::mem::transmute(faxporthandle), core::mem::transmute(devicestatus)).ok() + FaxGetDeviceStatusA(faxporthandle, core::mem::transmute(devicestatus)).ok() } #[inline] pub unsafe fn FaxGetDeviceStatusW(faxporthandle: super::super::Foundation::HANDLE, devicestatus: *mut *mut FAX_DEVICE_STATUSW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusW(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSW) -> super::super::Foundation:: BOOL); - FaxGetDeviceStatusW(core::mem::transmute(faxporthandle), core::mem::transmute(devicestatus)).ok() + FaxGetDeviceStatusW(faxporthandle, core::mem::transmute(devicestatus)).ok() } #[inline] pub unsafe fn FaxGetJobA(faxhandle: super::super::Foundation::HANDLE, jobid: u32, jobentry: *mut *mut FAX_JOB_ENTRYA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetJobA(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, jobentry : *mut *mut FAX_JOB_ENTRYA) -> super::super::Foundation:: BOOL); - FaxGetJobA(core::mem::transmute(faxhandle), core::mem::transmute(jobid), core::mem::transmute(jobentry)).ok() + FaxGetJobA(faxhandle, jobid, core::mem::transmute(jobentry)).ok() } #[inline] pub unsafe fn FaxGetJobW(faxhandle: super::super::Foundation::HANDLE, jobid: u32, jobentry: *mut *mut FAX_JOB_ENTRYW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetJobW(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, jobentry : *mut *mut FAX_JOB_ENTRYW) -> super::super::Foundation:: BOOL); - FaxGetJobW(core::mem::transmute(faxhandle), core::mem::transmute(jobid), core::mem::transmute(jobentry)).ok() + FaxGetJobW(faxhandle, jobid, core::mem::transmute(jobentry)).ok() } #[inline] pub unsafe fn FaxGetLoggingCategoriesA(faxhandle: super::super::Foundation::HANDLE, categories: *mut *mut FAX_LOG_CATEGORYA, numbercategories: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetLoggingCategoriesA(faxhandle : super::super::Foundation:: HANDLE, categories : *mut *mut FAX_LOG_CATEGORYA, numbercategories : *mut u32) -> super::super::Foundation:: BOOL); - FaxGetLoggingCategoriesA(core::mem::transmute(faxhandle), core::mem::transmute(categories), core::mem::transmute(numbercategories)).ok() + FaxGetLoggingCategoriesA(faxhandle, core::mem::transmute(categories), core::mem::transmute(numbercategories)).ok() } #[inline] pub unsafe fn FaxGetLoggingCategoriesW(faxhandle: super::super::Foundation::HANDLE, categories: *mut *mut FAX_LOG_CATEGORYW, numbercategories: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetLoggingCategoriesW(faxhandle : super::super::Foundation:: HANDLE, categories : *mut *mut FAX_LOG_CATEGORYW, numbercategories : *mut u32) -> super::super::Foundation:: BOOL); - FaxGetLoggingCategoriesW(core::mem::transmute(faxhandle), core::mem::transmute(categories), core::mem::transmute(numbercategories)).ok() + FaxGetLoggingCategoriesW(faxhandle, core::mem::transmute(categories), core::mem::transmute(numbercategories)).ok() } #[inline] pub unsafe fn FaxGetPageData(faxhandle: super::super::Foundation::HANDLE, jobid: u32, buffer: *mut *mut u8, buffersize: *mut u32, imagewidth: *mut u32, imageheight: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winfax.dll" "system" fn FaxGetPageData(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, buffer : *mut *mut u8, buffersize : *mut u32, imagewidth : *mut u32, imageheight : *mut u32) -> super::super::Foundation:: BOOL); - FaxGetPageData(core::mem::transmute(faxhandle), core::mem::transmute(jobid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(imagewidth), core::mem::transmute(imageheight)) + FaxGetPageData(faxhandle, jobid, core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(imagewidth), core::mem::transmute(imageheight)) } #[inline] pub unsafe fn FaxGetPortA(faxporthandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA) -> super::super::Foundation:: BOOL); - FaxGetPortA(core::mem::transmute(faxporthandle), core::mem::transmute(portinfo)).ok() + FaxGetPortA(faxporthandle, core::mem::transmute(portinfo)).ok() } #[inline] pub unsafe fn FaxGetPortW(faxporthandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxGetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW) -> super::super::Foundation:: BOOL); - FaxGetPortW(core::mem::transmute(faxporthandle), core::mem::transmute(portinfo)).ok() + FaxGetPortW(faxporthandle, core::mem::transmute(portinfo)).ok() } #[inline] pub unsafe fn FaxGetRoutingInfoA(faxporthandle: super::super::Foundation::HANDLE, routingguid: P1, routinginfobuffer: *mut *mut u8, routinginfobuffersize: *mut u32) -> windows_core::Result<()> @@ -166,7 +166,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetRoutingInfoA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, routinginfobuffer : *mut *mut u8, routinginfobuffersize : *mut u32) -> super::super::Foundation:: BOOL); - FaxGetRoutingInfoA(core::mem::transmute(faxporthandle), routingguid.param().abi(), core::mem::transmute(routinginfobuffer), core::mem::transmute(routinginfobuffersize)).ok() + FaxGetRoutingInfoA(faxporthandle, routingguid.param().abi(), core::mem::transmute(routinginfobuffer), core::mem::transmute(routinginfobuffersize)).ok() } #[inline] pub unsafe fn FaxGetRoutingInfoW(faxporthandle: super::super::Foundation::HANDLE, routingguid: P1, routinginfobuffer: *mut *mut u8, routinginfobuffersize: *mut u32) -> windows_core::Result<()> @@ -174,29 +174,29 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetRoutingInfoW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, routinginfobuffer : *mut *mut u8, routinginfobuffersize : *mut u32) -> super::super::Foundation:: BOOL); - FaxGetRoutingInfoW(core::mem::transmute(faxporthandle), routingguid.param().abi(), core::mem::transmute(routinginfobuffer), core::mem::transmute(routinginfobuffersize)).ok() + FaxGetRoutingInfoW(faxporthandle, routingguid.param().abi(), core::mem::transmute(routinginfobuffer), core::mem::transmute(routinginfobuffersize)).ok() } #[inline] pub unsafe fn FaxInitializeEventQueue(faxhandle: super::super::Foundation::HANDLE, completionport: super::super::Foundation::HANDLE, completionkey: usize, hwnd: super::super::Foundation::HWND, messagestart: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winfax.dll" "system" fn FaxInitializeEventQueue(faxhandle : super::super::Foundation:: HANDLE, completionport : super::super::Foundation:: HANDLE, completionkey : usize, hwnd : super::super::Foundation:: HWND, messagestart : u32) -> super::super::Foundation:: BOOL); - FaxInitializeEventQueue(core::mem::transmute(faxhandle), core::mem::transmute(completionport), core::mem::transmute(completionkey), core::mem::transmute(hwnd), core::mem::transmute(messagestart)) + FaxInitializeEventQueue(faxhandle, completionport, completionkey, hwnd, messagestart) } #[inline] pub unsafe fn FaxOpenPort(faxhandle: super::super::Foundation::HANDLE, deviceid: u32, flags: u32, faxporthandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winfax.dll" "system" fn FaxOpenPort(faxhandle : super::super::Foundation:: HANDLE, deviceid : u32, flags : u32, faxporthandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FaxOpenPort(core::mem::transmute(faxhandle), core::mem::transmute(deviceid), core::mem::transmute(flags), core::mem::transmute(faxporthandle)) + FaxOpenPort(faxhandle, deviceid, flags, core::mem::transmute(faxporthandle)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn FaxPrintCoverPageA(faxcontextinfo: *const FAX_CONTEXT_INFOA, coverpageinfo: *const FAX_COVERPAGE_INFOA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxPrintCoverPageA(faxcontextinfo : *const FAX_CONTEXT_INFOA, coverpageinfo : *const FAX_COVERPAGE_INFOA) -> super::super::Foundation:: BOOL); - FaxPrintCoverPageA(core::mem::transmute(faxcontextinfo), core::mem::transmute(coverpageinfo)).ok() + FaxPrintCoverPageA(faxcontextinfo, coverpageinfo).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn FaxPrintCoverPageW(faxcontextinfo: *const FAX_CONTEXT_INFOW, coverpageinfo: *const FAX_COVERPAGE_INFOW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxPrintCoverPageW(faxcontextinfo : *const FAX_CONTEXT_INFOW, coverpageinfo : *const FAX_COVERPAGE_INFOW) -> super::super::Foundation:: BOOL); - FaxPrintCoverPageW(core::mem::transmute(faxcontextinfo), core::mem::transmute(coverpageinfo)).ok() + FaxPrintCoverPageW(faxcontextinfo, coverpageinfo).ok() } #[inline] pub unsafe fn FaxRegisterRoutingExtensionW(faxhandle: super::super::Foundation::HANDLE, extensionname: P1, friendlyname: P2, imagename: P3, callback: PFAX_ROUTING_INSTALLATION_CALLBACKW, context: *const core::ffi::c_void) -> windows_core::Result<()> @@ -206,7 +206,7 @@ where P3: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxRegisterRoutingExtensionW(faxhandle : super::super::Foundation:: HANDLE, extensionname : windows_core::PCWSTR, friendlyname : windows_core::PCWSTR, imagename : windows_core::PCWSTR, callback : PFAX_ROUTING_INSTALLATION_CALLBACKW, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FaxRegisterRoutingExtensionW(core::mem::transmute(faxhandle), extensionname.param().abi(), friendlyname.param().abi(), imagename.param().abi(), core::mem::transmute(callback), core::mem::transmute(context)).ok() + FaxRegisterRoutingExtensionW(faxhandle, extensionname.param().abi(), friendlyname.param().abi(), imagename.param().abi(), callback, context).ok() } #[inline] pub unsafe fn FaxRegisterServiceProviderW(deviceprovider: P0, friendlyname: P1, imagename: P2, tspname: P3) -> windows_core::Result<()> @@ -225,7 +225,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, jobparams : *const FAX_JOB_PARAMA, coverpageinfo : *const FAX_COVERPAGE_INFOA, faxjobid : *mut u32) -> super::super::Foundation:: BOOL); - FaxSendDocumentA(core::mem::transmute(faxhandle), filename.param().abi(), core::mem::transmute(jobparams), core::mem::transmute(coverpageinfo), core::mem::transmute(faxjobid)).ok() + FaxSendDocumentA(faxhandle, filename.param().abi(), jobparams, coverpageinfo, core::mem::transmute(faxjobid)).ok() } #[inline] pub unsafe fn FaxSendDocumentForBroadcastA(faxhandle: super::super::Foundation::HANDLE, filename: P1, faxjobid: *mut u32, faxrecipientcallback: PFAX_RECIPIENT_CALLBACKA, context: *const core::ffi::c_void) -> windows_core::Result<()> @@ -233,7 +233,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentForBroadcastA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, faxjobid : *mut u32, faxrecipientcallback : PFAX_RECIPIENT_CALLBACKA, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FaxSendDocumentForBroadcastA(core::mem::transmute(faxhandle), filename.param().abi(), core::mem::transmute(faxjobid), core::mem::transmute(faxrecipientcallback), core::mem::transmute(context)).ok() + FaxSendDocumentForBroadcastA(faxhandle, filename.param().abi(), core::mem::transmute(faxjobid), faxrecipientcallback, context).ok() } #[inline] pub unsafe fn FaxSendDocumentForBroadcastW(faxhandle: super::super::Foundation::HANDLE, filename: P1, faxjobid: *mut u32, faxrecipientcallback: PFAX_RECIPIENT_CALLBACKW, context: *const core::ffi::c_void) -> windows_core::Result<()> @@ -241,7 +241,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentForBroadcastW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, faxjobid : *mut u32, faxrecipientcallback : PFAX_RECIPIENT_CALLBACKW, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FaxSendDocumentForBroadcastW(core::mem::transmute(faxhandle), filename.param().abi(), core::mem::transmute(faxjobid), core::mem::transmute(faxrecipientcallback), core::mem::transmute(context)).ok() + FaxSendDocumentForBroadcastW(faxhandle, filename.param().abi(), core::mem::transmute(faxjobid), faxrecipientcallback, context).ok() } #[inline] pub unsafe fn FaxSendDocumentW(faxhandle: super::super::Foundation::HANDLE, filename: P1, jobparams: *const FAX_JOB_PARAMW, coverpageinfo: *const FAX_COVERPAGE_INFOW, faxjobid: *mut u32) -> windows_core::Result<()> @@ -249,57 +249,57 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, jobparams : *const FAX_JOB_PARAMW, coverpageinfo : *const FAX_COVERPAGE_INFOW, faxjobid : *mut u32) -> super::super::Foundation:: BOOL); - FaxSendDocumentW(core::mem::transmute(faxhandle), filename.param().abi(), core::mem::transmute(jobparams), core::mem::transmute(coverpageinfo), core::mem::transmute(faxjobid)).ok() + FaxSendDocumentW(faxhandle, filename.param().abi(), jobparams, coverpageinfo, core::mem::transmute(faxjobid)).ok() } #[inline] pub unsafe fn FaxSetConfigurationA(faxhandle: super::super::Foundation::HANDLE, faxconfig: *const FAX_CONFIGURATIONA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONA) -> super::super::Foundation:: BOOL); - FaxSetConfigurationA(core::mem::transmute(faxhandle), core::mem::transmute(faxconfig)).ok() + FaxSetConfigurationA(faxhandle, faxconfig).ok() } #[inline] pub unsafe fn FaxSetConfigurationW(faxhandle: super::super::Foundation::HANDLE, faxconfig: *const FAX_CONFIGURATIONW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONW) -> super::super::Foundation:: BOOL); - FaxSetConfigurationW(core::mem::transmute(faxhandle), core::mem::transmute(faxconfig)).ok() + FaxSetConfigurationW(faxhandle, faxconfig).ok() } #[inline] pub unsafe fn FaxSetGlobalRoutingInfoA(faxhandle: super::super::Foundation::HANDLE, routinginfo: *const FAX_GLOBAL_ROUTING_INFOA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOA) -> super::super::Foundation:: BOOL); - FaxSetGlobalRoutingInfoA(core::mem::transmute(faxhandle), core::mem::transmute(routinginfo)).ok() + FaxSetGlobalRoutingInfoA(faxhandle, routinginfo).ok() } #[inline] pub unsafe fn FaxSetGlobalRoutingInfoW(faxhandle: super::super::Foundation::HANDLE, routinginfo: *const FAX_GLOBAL_ROUTING_INFOW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOW) -> super::super::Foundation:: BOOL); - FaxSetGlobalRoutingInfoW(core::mem::transmute(faxhandle), core::mem::transmute(routinginfo)).ok() + FaxSetGlobalRoutingInfoW(faxhandle, routinginfo).ok() } #[inline] pub unsafe fn FaxSetJobA(faxhandle: super::super::Foundation::HANDLE, jobid: u32, command: u32, jobentry: *const FAX_JOB_ENTRYA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetJobA(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, command : u32, jobentry : *const FAX_JOB_ENTRYA) -> super::super::Foundation:: BOOL); - FaxSetJobA(core::mem::transmute(faxhandle), core::mem::transmute(jobid), core::mem::transmute(command), core::mem::transmute(jobentry)).ok() + FaxSetJobA(faxhandle, jobid, command, jobentry).ok() } #[inline] pub unsafe fn FaxSetJobW(faxhandle: super::super::Foundation::HANDLE, jobid: u32, command: u32, jobentry: *const FAX_JOB_ENTRYW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetJobW(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, command : u32, jobentry : *const FAX_JOB_ENTRYW) -> super::super::Foundation:: BOOL); - FaxSetJobW(core::mem::transmute(faxhandle), core::mem::transmute(jobid), core::mem::transmute(command), core::mem::transmute(jobentry)).ok() + FaxSetJobW(faxhandle, jobid, command, jobentry).ok() } #[inline] pub unsafe fn FaxSetLoggingCategoriesA(faxhandle: super::super::Foundation::HANDLE, categories: *const FAX_LOG_CATEGORYA, numbercategories: u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetLoggingCategoriesA(faxhandle : super::super::Foundation:: HANDLE, categories : *const FAX_LOG_CATEGORYA, numbercategories : u32) -> super::super::Foundation:: BOOL); - FaxSetLoggingCategoriesA(core::mem::transmute(faxhandle), core::mem::transmute(categories), core::mem::transmute(numbercategories)).ok() + FaxSetLoggingCategoriesA(faxhandle, categories, numbercategories).ok() } #[inline] pub unsafe fn FaxSetLoggingCategoriesW(faxhandle: super::super::Foundation::HANDLE, categories: *const FAX_LOG_CATEGORYW, numbercategories: u32) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetLoggingCategoriesW(faxhandle : super::super::Foundation:: HANDLE, categories : *const FAX_LOG_CATEGORYW, numbercategories : u32) -> super::super::Foundation:: BOOL); - FaxSetLoggingCategoriesW(core::mem::transmute(faxhandle), core::mem::transmute(categories), core::mem::transmute(numbercategories)).ok() + FaxSetLoggingCategoriesW(faxhandle, categories, numbercategories).ok() } #[inline] pub unsafe fn FaxSetPortA(faxporthandle: super::super::Foundation::HANDLE, portinfo: *const FAX_PORT_INFOA) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOA) -> super::super::Foundation:: BOOL); - FaxSetPortA(core::mem::transmute(faxporthandle), core::mem::transmute(portinfo)).ok() + FaxSetPortA(faxporthandle, portinfo).ok() } #[inline] pub unsafe fn FaxSetPortW(faxporthandle: super::super::Foundation::HANDLE, portinfo: *const FAX_PORT_INFOW) -> windows_core::Result<()> { windows_targets::link!("winfax.dll" "system" fn FaxSetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOW) -> super::super::Foundation:: BOOL); - FaxSetPortW(core::mem::transmute(faxporthandle), core::mem::transmute(portinfo)).ok() + FaxSetPortW(faxporthandle, portinfo).ok() } #[inline] pub unsafe fn FaxSetRoutingInfoA(faxporthandle: super::super::Foundation::HANDLE, routingguid: P1, routinginfobuffer: *const u8, routinginfobuffersize: u32) -> windows_core::Result<()> @@ -307,7 +307,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetRoutingInfoA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, routinginfobuffer : *const u8, routinginfobuffersize : u32) -> super::super::Foundation:: BOOL); - FaxSetRoutingInfoA(core::mem::transmute(faxporthandle), routingguid.param().abi(), core::mem::transmute(routinginfobuffer), core::mem::transmute(routinginfobuffersize)).ok() + FaxSetRoutingInfoA(faxporthandle, routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } #[inline] pub unsafe fn FaxSetRoutingInfoW(faxporthandle: super::super::Foundation::HANDLE, routingguid: P1, routinginfobuffer: *const u8, routinginfobuffersize: u32) -> windows_core::Result<()> @@ -315,7 +315,7 @@ where P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetRoutingInfoW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, routinginfobuffer : *const u8, routinginfobuffersize : u32) -> super::super::Foundation:: BOOL); - FaxSetRoutingInfoW(core::mem::transmute(faxporthandle), routingguid.param().abi(), core::mem::transmute(routinginfobuffer), core::mem::transmute(routinginfobuffersize)).ok() + FaxSetRoutingInfoW(faxporthandle, routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -324,7 +324,7 @@ where P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxStartPrintJobA(printername : windows_core::PCSTR, printinfo : *const FAX_PRINT_INFOA, faxjobid : *mut u32, faxcontextinfo : *mut FAX_CONTEXT_INFOA) -> super::super::Foundation:: BOOL); - FaxStartPrintJobA(printername.param().abi(), core::mem::transmute(printinfo), core::mem::transmute(faxjobid), core::mem::transmute(faxcontextinfo)).ok() + FaxStartPrintJobA(printername.param().abi(), printinfo, core::mem::transmute(faxjobid), core::mem::transmute(faxcontextinfo)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -333,7 +333,7 @@ where P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxStartPrintJobW(printername : windows_core::PCWSTR, printinfo : *const FAX_PRINT_INFOW, faxjobid : *mut u32, faxcontextinfo : *mut FAX_CONTEXT_INFOW) -> super::super::Foundation:: BOOL); - FaxStartPrintJobW(printername.param().abi(), core::mem::transmute(printinfo), core::mem::transmute(faxjobid), core::mem::transmute(faxcontextinfo)).ok() + FaxStartPrintJobW(printername.param().abi(), printinfo, core::mem::transmute(faxjobid), core::mem::transmute(faxcontextinfo)).ok() } #[inline] pub unsafe fn FaxUnregisterServiceProviderW(deviceprovider: P0) -> super::super::Foundation::BOOL @@ -349,7 +349,7 @@ where P1: windows_core::Param, { windows_targets::link!("fxsutility.dll" "system" fn SendToFaxRecipient(sndmode : SendToMode, lpfilename : windows_core::PCWSTR) -> u32); - SendToFaxRecipient(core::mem::transmute(sndmode), lpfilename.param().abi()) + SendToFaxRecipient(sndmode, lpfilename.param().abi()) } #[inline] pub unsafe fn StiCreateInstanceW(hinst: super::super::Foundation::HINSTANCE, dwver: u32, ppsti: *mut Option, punkouter: P3) -> windows_core::Result<()> @@ -357,7 +357,7 @@ where P3: windows_core::Param, { windows_targets::link!("sti.dll" "system" fn StiCreateInstanceW(hinst : super::super::Foundation:: HINSTANCE, dwver : u32, ppsti : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - StiCreateInstanceW(core::mem::transmute(hinst), core::mem::transmute(dwver), core::mem::transmute(ppsti), punkouter.param().abi()).ok() + StiCreateInstanceW(hinst, dwver, core::mem::transmute(ppsti), punkouter.param().abi()).ok() } pub const CF_MSFAXSRV_DEVICE_ID: windows_core::PCWSTR = windows_core::w!("FAXSRV_DeviceID"); pub const CF_MSFAXSRV_FSP_GUID: windows_core::PCWSTR = windows_core::w!("FAXSRV_FSPGuid"); @@ -1262,7 +1262,7 @@ impl IFaxAccount { (windows_core::Interface::vtable(self).Folders)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ListenToAccountEvents(&self, eventtypes: FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ListenToAccountEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(eventtypes)).ok() + (windows_core::Interface::vtable(self).ListenToAccountEvents)(windows_core::Interface::as_raw(self), eventtypes).ok() } pub unsafe fn RegisteredEvents(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1465,7 +1465,7 @@ impl IFaxAccountIncomingArchive { } pub unsafe fn GetMessages(&self, lprefetchsize: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(lprefetchsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), lprefetchsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMessage(&self, bstrmessageid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1676,13 +1676,13 @@ impl IFaxAccountNotify { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingMessageAdded)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), core::mem::transmute_copy(bstrmessageid), core::mem::transmute(faddedtoreceivefolder)).ok() + (windows_core::Interface::vtable(self).OnIncomingMessageAdded)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), core::mem::transmute_copy(bstrmessageid), faddedtoreceivefolder).ok() } pub unsafe fn OnIncomingMessageRemoved(&self, pfaxaccount: P0, bstrmessageid: &windows_core::BSTR, fremovedfromreceivefolder: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), core::mem::transmute_copy(bstrmessageid), core::mem::transmute(fremovedfromreceivefolder)).ok() + (windows_core::Interface::vtable(self).OnIncomingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), core::mem::transmute_copy(bstrmessageid), fremovedfromreceivefolder).ok() } pub unsafe fn OnOutgoingMessageAdded(&self, pfaxaccount: P0, bstrmessageid: &windows_core::BSTR) -> windows_core::Result<()> where @@ -1827,7 +1827,7 @@ impl IFaxAccountOutgoingArchive { } pub unsafe fn GetMessages(&self, lprefetchsize: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(lprefetchsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), lprefetchsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMessage(&self, bstrmessageid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2300,14 +2300,14 @@ impl IFaxActivityLogging { (windows_core::Interface::vtable(self).LogIncoming)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogIncoming(&self, blogincoming: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogIncoming)(windows_core::Interface::as_raw(self), core::mem::transmute(blogincoming)).ok() + (windows_core::Interface::vtable(self).SetLogIncoming)(windows_core::Interface::as_raw(self), blogincoming).ok() } pub unsafe fn LogOutgoing(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogOutgoing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogOutgoing(&self, blogoutgoing: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogOutgoing)(windows_core::Interface::as_raw(self), core::mem::transmute(blogoutgoing)).ok() + (windows_core::Interface::vtable(self).SetLogOutgoing)(windows_core::Interface::as_raw(self), blogoutgoing).ok() } pub unsafe fn DatabasePath(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2436,7 +2436,7 @@ impl IFaxConfiguration { (windows_core::Interface::vtable(self).UseArchive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseArchive(&self, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), core::mem::transmute(busearchive)).ok() + (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive).ok() } pub unsafe fn ArchiveLocation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2450,28 +2450,28 @@ impl IFaxConfiguration { (windows_core::Interface::vtable(self).SizeQuotaWarning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSizeQuotaWarning(&self, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), core::mem::transmute(bsizequotawarning)).ok() + (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning).ok() } pub unsafe fn HighQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HighQuotaWaterMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighQuotaWaterMark(&self, lhighquotawatermark: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighQuotaWaterMark)(windows_core::Interface::as_raw(self), core::mem::transmute(lhighquotawatermark)).ok() + (windows_core::Interface::vtable(self).SetHighQuotaWaterMark)(windows_core::Interface::as_raw(self), lhighquotawatermark).ok() } pub unsafe fn LowQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LowQuotaWaterMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLowQuotaWaterMark(&self, llowquotawatermark: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowQuotaWaterMark)(windows_core::Interface::as_raw(self), core::mem::transmute(llowquotawatermark)).ok() + (windows_core::Interface::vtable(self).SetLowQuotaWaterMark)(windows_core::Interface::as_raw(self), llowquotawatermark).ok() } pub unsafe fn ArchiveAgeLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ArchiveAgeLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetArchiveAgeLimit(&self, larchiveagelimit: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetArchiveAgeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(larchiveagelimit)).ok() + (windows_core::Interface::vtable(self).SetArchiveAgeLimit)(windows_core::Interface::as_raw(self), larchiveagelimit).ok() } pub unsafe fn ArchiveSizeLow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2486,91 +2486,91 @@ impl IFaxConfiguration { (windows_core::Interface::vtable(self).OutgoingQueueBlocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutgoingQueueBlocked(&self, boutgoingblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutgoingQueueBlocked)(windows_core::Interface::as_raw(self), core::mem::transmute(boutgoingblocked)).ok() + (windows_core::Interface::vtable(self).SetOutgoingQueueBlocked)(windows_core::Interface::as_raw(self), boutgoingblocked).ok() } pub unsafe fn OutgoingQueuePaused(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OutgoingQueuePaused)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutgoingQueuePaused(&self, boutgoingpaused: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutgoingQueuePaused)(windows_core::Interface::as_raw(self), core::mem::transmute(boutgoingpaused)).ok() + (windows_core::Interface::vtable(self).SetOutgoingQueuePaused)(windows_core::Interface::as_raw(self), boutgoingpaused).ok() } pub unsafe fn AllowPersonalCoverPages(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowPersonalCoverPages)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowPersonalCoverPages(&self, ballowpersonalcoverpages: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), core::mem::transmute(ballowpersonalcoverpages)).ok() + (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), ballowpersonalcoverpages).ok() } pub unsafe fn UseDeviceTSID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UseDeviceTSID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseDeviceTSID(&self, busedevicetsid: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), core::mem::transmute(busedevicetsid)).ok() + (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), busedevicetsid).ok() } pub unsafe fn Retries(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Retries)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRetries(&self, lretries: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRetries)(windows_core::Interface::as_raw(self), core::mem::transmute(lretries)).ok() + (windows_core::Interface::vtable(self).SetRetries)(windows_core::Interface::as_raw(self), lretries).ok() } pub unsafe fn RetryDelay(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RetryDelay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRetryDelay(&self, lretrydelay: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRetryDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(lretrydelay)).ok() + (windows_core::Interface::vtable(self).SetRetryDelay)(windows_core::Interface::as_raw(self), lretrydelay).ok() } pub unsafe fn DiscountRateStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DiscountRateStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDiscountRateStart(&self, datediscountratestart: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiscountRateStart)(windows_core::Interface::as_raw(self), core::mem::transmute(datediscountratestart)).ok() + (windows_core::Interface::vtable(self).SetDiscountRateStart)(windows_core::Interface::as_raw(self), datediscountratestart).ok() } pub unsafe fn DiscountRateEnd(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DiscountRateEnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDiscountRateEnd(&self, datediscountrateend: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiscountRateEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(datediscountrateend)).ok() + (windows_core::Interface::vtable(self).SetDiscountRateEnd)(windows_core::Interface::as_raw(self), datediscountrateend).ok() } pub unsafe fn OutgoingQueueAgeLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OutgoingQueueAgeLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutgoingQueueAgeLimit(&self, loutgoingqueueagelimit: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutgoingQueueAgeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(loutgoingqueueagelimit)).ok() + (windows_core::Interface::vtable(self).SetOutgoingQueueAgeLimit)(windows_core::Interface::as_raw(self), loutgoingqueueagelimit).ok() } pub unsafe fn Branding(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Branding)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBranding(&self, bbranding: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), core::mem::transmute(bbranding)).ok() + (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), bbranding).ok() } pub unsafe fn IncomingQueueBlocked(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IncomingQueueBlocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIncomingQueueBlocked(&self, bincomingblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncomingQueueBlocked)(windows_core::Interface::as_raw(self), core::mem::transmute(bincomingblocked)).ok() + (windows_core::Interface::vtable(self).SetIncomingQueueBlocked)(windows_core::Interface::as_raw(self), bincomingblocked).ok() } pub unsafe fn AutoCreateAccountOnConnect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoCreateAccountOnConnect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoCreateAccountOnConnect(&self, bautocreateaccountonconnect: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoCreateAccountOnConnect)(windows_core::Interface::as_raw(self), core::mem::transmute(bautocreateaccountonconnect)).ok() + (windows_core::Interface::vtable(self).SetAutoCreateAccountOnConnect)(windows_core::Interface::as_raw(self), bautocreateaccountonconnect).ok() } pub unsafe fn IncomingFaxesArePublic(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IncomingFaxesArePublic)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIncomingFaxesArePublic(&self, bincomingfaxesarepublic: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncomingFaxesArePublic)(windows_core::Interface::as_raw(self), core::mem::transmute(bincomingfaxesarepublic)).ok() + (windows_core::Interface::vtable(self).SetIncomingFaxesArePublic)(windows_core::Interface::as_raw(self), bincomingfaxesarepublic).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -3074,21 +3074,21 @@ impl IFaxDevice { (windows_core::Interface::vtable(self).SendEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSendEnabled(&self, bsendenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSendEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(bsendenabled)).ok() + (windows_core::Interface::vtable(self).SetSendEnabled)(windows_core::Interface::as_raw(self), bsendenabled).ok() } pub unsafe fn ReceiveMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReceiveMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReceiveMode(&self, receivemode: FAX_DEVICE_RECEIVE_MODE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReceiveMode)(windows_core::Interface::as_raw(self), core::mem::transmute(receivemode)).ok() + (windows_core::Interface::vtable(self).SetReceiveMode)(windows_core::Interface::as_raw(self), receivemode).ok() } pub unsafe fn RingsBeforeAnswer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RingsBeforeAnswer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRingsBeforeAnswer(&self, lringsbeforeanswer: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRingsBeforeAnswer)(windows_core::Interface::as_raw(self), core::mem::transmute(lringsbeforeanswer)).ok() + (windows_core::Interface::vtable(self).SetRingsBeforeAnswer)(windows_core::Interface::as_raw(self), lringsbeforeanswer).ok() } pub unsafe fn CSID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3120,7 +3120,7 @@ impl IFaxDevice { (windows_core::Interface::vtable(self).SetExtensionProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguid), core::mem::transmute_copy(vproperty)).ok() } pub unsafe fn UseRoutingMethod(&self, bstrmethodguid: &windows_core::BSTR, buse: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UseRoutingMethod)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmethodguid), core::mem::transmute(buse)).ok() + (windows_core::Interface::vtable(self).UseRoutingMethod)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmethodguid), buse).ok() } pub unsafe fn RingingNow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3451,20 +3451,20 @@ impl IFaxDeviceIds { } pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| result__) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Add(&self, ldeviceid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(ldeviceid)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), ldeviceid).ok() } pub unsafe fn Remove(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lindex).ok() } pub unsafe fn SetOrder(&self, ldeviceid: i32, lneworder: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(ldeviceid), core::mem::transmute(lneworder)).ok() + (windows_core::Interface::vtable(self).SetOrder)(windows_core::Interface::as_raw(self), ldeviceid, lneworder).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3909,7 +3909,7 @@ impl IFaxDevices { } pub unsafe fn get_ItemById(&self, lid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemById)(windows_core::Interface::as_raw(self), core::mem::transmute(lid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemById)(windows_core::Interface::as_raw(self), lid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4042,7 +4042,7 @@ impl IFaxDocument { (windows_core::Interface::vtable(self).ScheduleTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScheduleTime(&self, datescheduletime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScheduleTime)(windows_core::Interface::as_raw(self), core::mem::transmute(datescheduletime)).ok() + (windows_core::Interface::vtable(self).SetScheduleTime)(windows_core::Interface::as_raw(self), datescheduletime).ok() } pub unsafe fn ReceiptAddress(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4063,42 +4063,42 @@ impl IFaxDocument { (windows_core::Interface::vtable(self).CallHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCallHandle(&self, lcallhandle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCallHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lcallhandle)).ok() + (windows_core::Interface::vtable(self).SetCallHandle)(windows_core::Interface::as_raw(self), lcallhandle).ok() } pub unsafe fn CoverPageType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CoverPageType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCoverPageType(&self, coverpagetype: FAX_COVERPAGE_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoverPageType)(windows_core::Interface::as_raw(self), core::mem::transmute(coverpagetype)).ok() + (windows_core::Interface::vtable(self).SetCoverPageType)(windows_core::Interface::as_raw(self), coverpagetype).ok() } pub unsafe fn ScheduleType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ScheduleType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScheduleType(&self, scheduletype: FAX_SCHEDULE_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScheduleType)(windows_core::Interface::as_raw(self), core::mem::transmute(scheduletype)).ok() + (windows_core::Interface::vtable(self).SetScheduleType)(windows_core::Interface::as_raw(self), scheduletype).ok() } pub unsafe fn ReceiptType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReceiptType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReceiptType(&self, receipttype: FAX_RECEIPT_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReceiptType)(windows_core::Interface::as_raw(self), core::mem::transmute(receipttype)).ok() + (windows_core::Interface::vtable(self).SetReceiptType)(windows_core::Interface::as_raw(self), receipttype).ok() } pub unsafe fn GroupBroadcastReceipts(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GroupBroadcastReceipts)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGroupBroadcastReceipts(&self, busegrouping: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupBroadcastReceipts)(windows_core::Interface::as_raw(self), core::mem::transmute(busegrouping)).ok() + (windows_core::Interface::vtable(self).SetGroupBroadcastReceipts)(windows_core::Interface::as_raw(self), busegrouping).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, priority: FAX_PRIORITY_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), priority).ok() } pub unsafe fn TapiConnection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4128,7 +4128,7 @@ impl IFaxDocument { (windows_core::Interface::vtable(self).AttachFaxToReceipt)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachFaxToReceipt(&self, battachfax: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachFaxToReceipt)(windows_core::Interface::as_raw(self), core::mem::transmute(battachfax)).ok() + (windows_core::Interface::vtable(self).SetAttachFaxToReceipt)(windows_core::Interface::as_raw(self), battachfax).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4646,28 +4646,28 @@ impl IFaxEventLogging { (windows_core::Interface::vtable(self).InitEventsLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitEventsLevel(&self, initeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitEventsLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(initeventlevel)).ok() + (windows_core::Interface::vtable(self).SetInitEventsLevel)(windows_core::Interface::as_raw(self), initeventlevel).ok() } pub unsafe fn InboundEventsLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InboundEventsLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInboundEventsLevel(&self, inboundeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInboundEventsLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(inboundeventlevel)).ok() + (windows_core::Interface::vtable(self).SetInboundEventsLevel)(windows_core::Interface::as_raw(self), inboundeventlevel).ok() } pub unsafe fn OutboundEventsLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OutboundEventsLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutboundEventsLevel(&self, outboundeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutboundEventsLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(outboundeventlevel)).ok() + (windows_core::Interface::vtable(self).SetOutboundEventsLevel)(windows_core::Interface::as_raw(self), outboundeventlevel).ok() } pub unsafe fn GeneralEventsLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GeneralEventsLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGeneralEventsLevel(&self, generaleventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGeneralEventsLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(generaleventlevel)).ok() + (windows_core::Interface::vtable(self).SetGeneralEventsLevel)(windows_core::Interface::as_raw(self), generaleventlevel).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -5317,7 +5317,7 @@ impl IFaxInboundRoutingMethod { (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lpriority).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -5554,7 +5554,7 @@ impl IFaxIncomingArchive { (windows_core::Interface::vtable(self).UseArchive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseArchive(&self, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), core::mem::transmute(busearchive)).ok() + (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive).ok() } pub unsafe fn ArchiveFolder(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5568,28 +5568,28 @@ impl IFaxIncomingArchive { (windows_core::Interface::vtable(self).SizeQuotaWarning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSizeQuotaWarning(&self, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), core::mem::transmute(bsizequotawarning)).ok() + (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning).ok() } pub unsafe fn HighQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HighQuotaWaterMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighQuotaWaterMark(&self, lhighquotawatermark: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighQuotaWaterMark)(windows_core::Interface::as_raw(self), core::mem::transmute(lhighquotawatermark)).ok() + (windows_core::Interface::vtable(self).SetHighQuotaWaterMark)(windows_core::Interface::as_raw(self), lhighquotawatermark).ok() } pub unsafe fn LowQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LowQuotaWaterMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLowQuotaWaterMark(&self, llowquotawatermark: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowQuotaWaterMark)(windows_core::Interface::as_raw(self), core::mem::transmute(llowquotawatermark)).ok() + (windows_core::Interface::vtable(self).SetLowQuotaWaterMark)(windows_core::Interface::as_raw(self), llowquotawatermark).ok() } pub unsafe fn AgeLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AgeLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAgeLimit(&self, lagelimit: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAgeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(lagelimit)).ok() + (windows_core::Interface::vtable(self).SetAgeLimit)(windows_core::Interface::as_raw(self), lagelimit).ok() } pub unsafe fn SizeLow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5607,7 +5607,7 @@ impl IFaxIncomingArchive { } pub unsafe fn GetMessages(&self, lprefetchsize: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(lprefetchsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), lprefetchsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMessage(&self, bstrmessageid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6529,7 +6529,7 @@ impl IFaxIncomingMessage2 { (windows_core::Interface::vtable(self).HasCoverPage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHasCoverPage(&self, bhascoverpage: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHasCoverPage)(windows_core::Interface::as_raw(self), core::mem::transmute(bhascoverpage)).ok() + (windows_core::Interface::vtable(self).SetHasCoverPage)(windows_core::Interface::as_raw(self), bhascoverpage).ok() } pub unsafe fn Recipients(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6547,7 +6547,7 @@ impl IFaxIncomingMessage2 { (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRead(&self, bread: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), core::mem::transmute(bread)).ok() + (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), bread).ok() } pub unsafe fn ReAssign(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReAssign)(windows_core::Interface::as_raw(self)).ok() @@ -6756,7 +6756,7 @@ impl IFaxIncomingMessageIterator { (windows_core::Interface::vtable(self).PrefetchSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrefetchSize(&self, lprefetchsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrefetchSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lprefetchsize)).ok() + (windows_core::Interface::vtable(self).SetPrefetchSize)(windows_core::Interface::as_raw(self), lprefetchsize).ok() } pub unsafe fn AtEOF(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6868,7 +6868,7 @@ impl IFaxIncomingQueue { (windows_core::Interface::vtable(self).Blocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBlocked(&self, bblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), core::mem::transmute(bblocked)).ok() + (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), bblocked).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -7665,14 +7665,14 @@ impl IFaxOutboundRoutingRule { (windows_core::Interface::vtable(self).UseDevice)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseDevice(&self, busedevice: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(busedevice)).ok() + (windows_core::Interface::vtable(self).SetUseDevice)(windows_core::Interface::as_raw(self), busedevice).ok() } pub unsafe fn DeviceId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DeviceId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDeviceId(&self, deviceid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeviceId)(windows_core::Interface::as_raw(self), core::mem::transmute(deviceid)).ok() + (windows_core::Interface::vtable(self).SetDeviceId)(windows_core::Interface::as_raw(self), deviceid).ok() } pub unsafe fn GroupName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7841,7 +7841,7 @@ impl IFaxOutboundRoutingRules { } pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7849,17 +7849,17 @@ impl IFaxOutboundRoutingRules { } pub unsafe fn ItemByCountryAndArea(&self, lcountrycode: i32, lareacode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ItemByCountryAndArea)(windows_core::Interface::as_raw(self), core::mem::transmute(lcountrycode), core::mem::transmute(lareacode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ItemByCountryAndArea)(windows_core::Interface::as_raw(self), lcountrycode, lareacode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveByCountryAndArea(&self, lcountrycode: i32, lareacode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveByCountryAndArea)(windows_core::Interface::as_raw(self), core::mem::transmute(lcountrycode), core::mem::transmute(lareacode)).ok() + (windows_core::Interface::vtable(self).RemoveByCountryAndArea)(windows_core::Interface::as_raw(self), lcountrycode, lareacode).ok() } pub unsafe fn Remove(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lindex).ok() } pub unsafe fn Add(&self, lcountrycode: i32, lareacode: i32, busedevice: super::super::Foundation::VARIANT_BOOL, bstrgroupname: &windows_core::BSTR, ldeviceid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(lcountrycode), core::mem::transmute(lareacode), core::mem::transmute(busedevice), core::mem::transmute_copy(bstrgroupname), core::mem::transmute(ldeviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lcountrycode, lareacode, busedevice, core::mem::transmute_copy(bstrgroupname), ldeviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7980,7 +7980,7 @@ impl IFaxOutgoingArchive { (windows_core::Interface::vtable(self).UseArchive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseArchive(&self, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), core::mem::transmute(busearchive)).ok() + (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive).ok() } pub unsafe fn ArchiveFolder(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7994,28 +7994,28 @@ impl IFaxOutgoingArchive { (windows_core::Interface::vtable(self).SizeQuotaWarning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSizeQuotaWarning(&self, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), core::mem::transmute(bsizequotawarning)).ok() + (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning).ok() } pub unsafe fn HighQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HighQuotaWaterMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighQuotaWaterMark(&self, lhighquotawatermark: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighQuotaWaterMark)(windows_core::Interface::as_raw(self), core::mem::transmute(lhighquotawatermark)).ok() + (windows_core::Interface::vtable(self).SetHighQuotaWaterMark)(windows_core::Interface::as_raw(self), lhighquotawatermark).ok() } pub unsafe fn LowQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LowQuotaWaterMark)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLowQuotaWaterMark(&self, llowquotawatermark: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowQuotaWaterMark)(windows_core::Interface::as_raw(self), core::mem::transmute(llowquotawatermark)).ok() + (windows_core::Interface::vtable(self).SetLowQuotaWaterMark)(windows_core::Interface::as_raw(self), llowquotawatermark).ok() } pub unsafe fn AgeLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AgeLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAgeLimit(&self, lagelimit: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAgeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(lagelimit)).ok() + (windows_core::Interface::vtable(self).SetAgeLimit)(windows_core::Interface::as_raw(self), lagelimit).ok() } pub unsafe fn SizeLow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8033,7 +8033,7 @@ impl IFaxOutgoingArchive { } pub unsafe fn GetMessages(&self, lprefetchsize: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(lprefetchsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessages)(windows_core::Interface::as_raw(self), lprefetchsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMessage(&self, bstrmessageid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9317,7 +9317,7 @@ impl IFaxOutgoingMessage2 { (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRead(&self, bread: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), core::mem::transmute(bread)).ok() + (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), bread).ok() } pub unsafe fn Save(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self)).ok() @@ -9446,7 +9446,7 @@ impl IFaxOutgoingMessageIterator { (windows_core::Interface::vtable(self).PrefetchSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrefetchSize(&self, lprefetchsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrefetchSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lprefetchsize)).ok() + (windows_core::Interface::vtable(self).SetPrefetchSize)(windows_core::Interface::as_raw(self), lprefetchsize).ok() } pub unsafe fn MoveFirst(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MoveFirst)(windows_core::Interface::as_raw(self)).ok() @@ -9554,70 +9554,70 @@ impl IFaxOutgoingQueue { (windows_core::Interface::vtable(self).Blocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBlocked(&self, bblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), core::mem::transmute(bblocked)).ok() + (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), bblocked).ok() } pub unsafe fn Paused(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Paused)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPaused(&self, bpaused: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPaused)(windows_core::Interface::as_raw(self), core::mem::transmute(bpaused)).ok() + (windows_core::Interface::vtable(self).SetPaused)(windows_core::Interface::as_raw(self), bpaused).ok() } pub unsafe fn AllowPersonalCoverPages(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowPersonalCoverPages)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowPersonalCoverPages(&self, ballowpersonalcoverpages: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), core::mem::transmute(ballowpersonalcoverpages)).ok() + (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), ballowpersonalcoverpages).ok() } pub unsafe fn UseDeviceTSID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UseDeviceTSID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseDeviceTSID(&self, busedevicetsid: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), core::mem::transmute(busedevicetsid)).ok() + (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), busedevicetsid).ok() } pub unsafe fn Retries(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Retries)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRetries(&self, lretries: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRetries)(windows_core::Interface::as_raw(self), core::mem::transmute(lretries)).ok() + (windows_core::Interface::vtable(self).SetRetries)(windows_core::Interface::as_raw(self), lretries).ok() } pub unsafe fn RetryDelay(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RetryDelay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRetryDelay(&self, lretrydelay: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRetryDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(lretrydelay)).ok() + (windows_core::Interface::vtable(self).SetRetryDelay)(windows_core::Interface::as_raw(self), lretrydelay).ok() } pub unsafe fn DiscountRateStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DiscountRateStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDiscountRateStart(&self, datediscountratestart: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiscountRateStart)(windows_core::Interface::as_raw(self), core::mem::transmute(datediscountratestart)).ok() + (windows_core::Interface::vtable(self).SetDiscountRateStart)(windows_core::Interface::as_raw(self), datediscountratestart).ok() } pub unsafe fn DiscountRateEnd(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DiscountRateEnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDiscountRateEnd(&self, datediscountrateend: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiscountRateEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(datediscountrateend)).ok() + (windows_core::Interface::vtable(self).SetDiscountRateEnd)(windows_core::Interface::as_raw(self), datediscountrateend).ok() } pub unsafe fn AgeLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AgeLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAgeLimit(&self, lagelimit: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAgeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(lagelimit)).ok() + (windows_core::Interface::vtable(self).SetAgeLimit)(windows_core::Interface::as_raw(self), lagelimit).ok() } pub unsafe fn Branding(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Branding)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBranding(&self, bbranding: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), core::mem::transmute(bbranding)).ok() + (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), bbranding).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -9913,7 +9913,7 @@ impl IFaxReceiptOptions { (windows_core::Interface::vtable(self).AuthenticationType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationType(&self, r#type: FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn SMTPServer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9927,7 +9927,7 @@ impl IFaxReceiptOptions { (windows_core::Interface::vtable(self).SMTPPort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSMTPPort(&self, lsmtpport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSMTPPort)(windows_core::Interface::as_raw(self), core::mem::transmute(lsmtpport)).ok() + (windows_core::Interface::vtable(self).SetSMTPPort)(windows_core::Interface::as_raw(self), lsmtpport).ok() } pub unsafe fn SMTPSender(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9948,7 +9948,7 @@ impl IFaxReceiptOptions { (windows_core::Interface::vtable(self).AllowedReceipts)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowedReceipts(&self, allowedreceipts: FAX_RECEIPT_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowedReceipts)(windows_core::Interface::as_raw(self), core::mem::transmute(allowedreceipts)).ok() + (windows_core::Interface::vtable(self).SetAllowedReceipts)(windows_core::Interface::as_raw(self), allowedreceipts).ok() } pub unsafe fn SMTPPassword(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9968,7 +9968,7 @@ impl IFaxReceiptOptions { (windows_core::Interface::vtable(self).UseForInboundRouting)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseForInboundRouting(&self, buseforinboundrouting: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseForInboundRouting)(windows_core::Interface::as_raw(self), core::mem::transmute(buseforinboundrouting)).ok() + (windows_core::Interface::vtable(self).SetUseForInboundRouting)(windows_core::Interface::as_raw(self), buseforinboundrouting).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10274,7 +10274,7 @@ impl IFaxRecipients { } pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10285,7 +10285,7 @@ impl IFaxRecipients { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfaxnumber), core::mem::transmute_copy(bstrrecipientname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lindex).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10405,7 +10405,7 @@ impl IFaxSecurity { (windows_core::Interface::vtable(self).InformationType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInformationType(&self, linformationtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInformationType)(windows_core::Interface::as_raw(self), core::mem::transmute(linformationtype)).ok() + (windows_core::Interface::vtable(self).SetInformationType)(windows_core::Interface::as_raw(self), linformationtype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10539,7 +10539,7 @@ impl IFaxSecurity2 { (windows_core::Interface::vtable(self).InformationType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInformationType(&self, linformationtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInformationType)(windows_core::Interface::as_raw(self), core::mem::transmute(linformationtype)).ok() + (windows_core::Interface::vtable(self).SetInformationType)(windows_core::Interface::as_raw(self), linformationtype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11212,10 +11212,10 @@ impl IFaxServer { (windows_core::Interface::vtable(self).SetExtensionProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguid), core::mem::transmute_copy(vproperty)).ok() } pub unsafe fn ListenToServerEvents(&self, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ListenToServerEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(eventtypes)).ok() + (windows_core::Interface::vtable(self).ListenToServerEvents)(windows_core::Interface::as_raw(self), eventtypes).ok() } pub unsafe fn RegisterDeviceProvider(&self, bstrguid: &windows_core::BSTR, bstrfriendlyname: &windows_core::BSTR, bstrimagename: &windows_core::BSTR, tspname: &windows_core::BSTR, lfspiversion: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguid), core::mem::transmute_copy(bstrfriendlyname), core::mem::transmute_copy(bstrimagename), core::mem::transmute_copy(tspname), core::mem::transmute(lfspiversion)).ok() + (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguid), core::mem::transmute_copy(bstrfriendlyname), core::mem::transmute_copy(bstrimagename), core::mem::transmute_copy(tspname), lfspiversion).ok() } pub unsafe fn UnregisterDeviceProvider(&self, bstruniquename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstruniquename)).ok() @@ -11827,19 +11827,19 @@ impl IFaxServerNotify2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnServerActivityChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), core::mem::transmute(lincomingmessages), core::mem::transmute(lroutingmessages), core::mem::transmute(loutgoingmessages), core::mem::transmute(lqueuedmessages)).ok() + (windows_core::Interface::vtable(self).OnServerActivityChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), lincomingmessages, lroutingmessages, loutgoingmessages, lqueuedmessages).ok() } pub unsafe fn OnQueuesStatusChange(&self, pfaxserver: P0, boutgoingqueueblocked: super::super::Foundation::VARIANT_BOOL, boutgoingqueuepaused: super::super::Foundation::VARIANT_BOOL, bincomingqueueblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQueuesStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), core::mem::transmute(boutgoingqueueblocked), core::mem::transmute(boutgoingqueuepaused), core::mem::transmute(bincomingqueueblocked)).ok() + (windows_core::Interface::vtable(self).OnQueuesStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), boutgoingqueueblocked, boutgoingqueuepaused, bincomingqueueblocked).ok() } pub unsafe fn OnNewCall(&self, pfaxserver: P0, lcallid: i32, ldeviceid: i32, bstrcallerid: &windows_core::BSTR) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNewCall)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), core::mem::transmute(lcallid), core::mem::transmute(ldeviceid), core::mem::transmute_copy(bstrcallerid)).ok() + (windows_core::Interface::vtable(self).OnNewCall)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), lcallid, ldeviceid, core::mem::transmute_copy(bstrcallerid)).ok() } pub unsafe fn OnServerShutDown(&self, pfaxserver: P0) -> windows_core::Result<()> where @@ -11851,7 +11851,7 @@ impl IFaxServerNotify2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeviceStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), core::mem::transmute(ldeviceid), core::mem::transmute(bpoweredoff), core::mem::transmute(bsending), core::mem::transmute(breceiving), core::mem::transmute(bringing)).ok() + (windows_core::Interface::vtable(self).OnDeviceStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), ldeviceid, bpoweredoff, bsending, breceiving, bringing).ok() } pub unsafe fn OnGeneralServerConfigChanged(&self, pfaxserver: P0) -> windows_core::Result<()> where @@ -12072,7 +12072,7 @@ impl IStiDevice { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hinst), pwszdevicename.param().abi(), core::mem::transmute(dwversion), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hinst, pwszdevicename.param().abi(), dwversion, dwmode).ok() } pub unsafe fn GetCapabilities(&self, pdevcaps: *mut STI_DEV_CAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevcaps)).ok() @@ -12087,14 +12087,14 @@ impl IStiDevice { (windows_core::Interface::vtable(self).Diagnostic)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer)).ok() } pub unsafe fn Escape(&self, escapefunction: u32, lpindata: *const core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, dwoutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(escapefunction), core::mem::transmute(lpindata), core::mem::transmute(cbindatasize), core::mem::transmute(poutdata), core::mem::transmute(dwoutdatasize), core::mem::transmute(pdwactualdata)).ok() + (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), escapefunction, lpindata, cbindatasize, core::mem::transmute(poutdata), dwoutdatasize, core::mem::transmute(pdwactualdata)).ok() } pub unsafe fn GetLastError(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn LockDevice(&self, dwtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout)).ok() + (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), dwtimeout).ok() } pub unsafe fn UnLockDevice(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnLockDevice)(windows_core::Interface::as_raw(self)).ok() @@ -12105,7 +12105,7 @@ impl IStiDevice { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawWriteData(&self, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawWriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytes), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).RawWriteData)(windows_core::Interface::as_raw(self), lpbuffer, nnumberofbytes, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawReadCommand(&self, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { @@ -12113,7 +12113,7 @@ impl IStiDevice { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawWriteCommand(&self, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawWriteCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytes), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).RawWriteCommand)(windows_core::Interface::as_raw(self), lpbuffer, nnumberofbytes, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Subscribe(&self, lpsubsribe: *mut STISUBSCRIBE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Subscribe)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsubsribe)).ok() @@ -12292,7 +12292,7 @@ impl IStiDeviceControl { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdevicetype), core::mem::transmute(dwmode), pwszportname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), dwdevicetype, dwmode, pwszportname.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawReadData(&self, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { @@ -12300,7 +12300,7 @@ impl IStiDeviceControl { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawWriteData(&self, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawWriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytes), core::mem::transmute(lpoverlapped)).ok() + (windows_core::Interface::vtable(self).RawWriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), nnumberofbytes, core::mem::transmute(lpoverlapped)).ok() } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawReadCommand(&self, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { @@ -12308,10 +12308,10 @@ impl IStiDeviceControl { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawWriteCommand(&self, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawWriteCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytes), core::mem::transmute(lpoverlapped)).ok() + (windows_core::Interface::vtable(self).RawWriteCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), nnumberofbytes, core::mem::transmute(lpoverlapped)).ok() } pub unsafe fn RawDeviceControl(&self, escapefunction: u32, lpindata: *mut core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, dwoutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawDeviceControl)(windows_core::Interface::as_raw(self), core::mem::transmute(escapefunction), core::mem::transmute(lpindata), core::mem::transmute(cbindatasize), core::mem::transmute(poutdata), core::mem::transmute(dwoutdatasize), core::mem::transmute(pdwactualdata)).ok() + (windows_core::Interface::vtable(self).RawDeviceControl)(windows_core::Interface::as_raw(self), escapefunction, core::mem::transmute(lpindata), cbindatasize, core::mem::transmute(poutdata), dwoutdatasize, core::mem::transmute(pdwactualdata)).ok() } pub unsafe fn GetLastError(&self, lpdwlasterror: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), core::mem::transmute(lpdwlasterror)).ok() @@ -12329,7 +12329,7 @@ impl IStiDeviceControl { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmessagetype), pszmessage.param().abi(), core::mem::transmute(dwerrorcode)).ok() + (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.param().abi(), dwerrorcode).ok() } } #[repr(C)] @@ -12449,7 +12449,7 @@ impl IStiUSD { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pheldcb.param().abi(), core::mem::transmute(dwstiversion), core::mem::transmute(hparameterskey)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pheldcb.param().abi(), dwstiversion, hparameterskey).ok() } pub unsafe fn GetCapabilities(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12465,7 +12465,7 @@ impl IStiUSD { (windows_core::Interface::vtable(self).Diagnostic)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer)).ok() } pub unsafe fn Escape(&self, escapefunction: u32, lpindata: *const core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, cboutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(escapefunction), core::mem::transmute(lpindata), core::mem::transmute(cbindatasize), core::mem::transmute(poutdata), core::mem::transmute(cboutdatasize), core::mem::transmute(pdwactualdata)).ok() + (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), escapefunction, lpindata, cbindatasize, core::mem::transmute(poutdata), cboutdatasize, core::mem::transmute(pdwactualdata)).ok() } pub unsafe fn GetLastError(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12483,7 +12483,7 @@ impl IStiUSD { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawWriteData(&self, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawWriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytes), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).RawWriteData)(windows_core::Interface::as_raw(self), lpbuffer, nnumberofbytes, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawReadCommand(&self, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { @@ -12491,7 +12491,7 @@ impl IStiUSD { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn RawWriteCommand(&self, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RawWriteCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytes), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).RawWriteCommand)(windows_core::Interface::as_raw(self), lpbuffer, nnumberofbytes, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetNotificationHandle(&self, hevent: Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetNotificationHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent.unwrap_or(core::mem::zeroed()))).ok() @@ -12666,10 +12666,10 @@ windows_core::imp::define_interface!(IStillImageW, IStillImageW_Vtbl, 0x641bd880 windows_core::imp::interface_hierarchy!(IStillImageW, windows_core::IUnknown); impl IStillImageW { pub unsafe fn Initialize(&self, hinst: super::super::Foundation::HINSTANCE, dwversion: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hinst), core::mem::transmute(dwversion)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hinst, dwversion).ok() } pub unsafe fn GetDeviceList(&self, dwtype: u32, dwflags: u32, pdwitemsreturned: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceList)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtype), core::mem::transmute(dwflags), core::mem::transmute(pdwitemsreturned), core::mem::transmute(ppbuffer)).ok() + (windows_core::Interface::vtable(self).GetDeviceList)(windows_core::Interface::as_raw(self), dwtype, dwflags, core::mem::transmute(pdwitemsreturned), core::mem::transmute(ppbuffer)).ok() } pub unsafe fn GetDeviceInfo(&self, pwszdevicename: P0, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where @@ -12682,7 +12682,7 @@ impl IStillImageW { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), core::mem::transmute(dwmode), core::mem::transmute(pdevice), punkouter.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), dwmode, core::mem::transmute(pdevice), punkouter.param().abi()).ok() } pub unsafe fn GetDeviceValue(&self, pwszdevicename: P0, pvaluename: P1, ptype: *mut u32, pdata: *mut u8, cbdata: *mut u32) -> windows_core::Result<()> where @@ -12696,7 +12696,7 @@ impl IStillImageW { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeviceValue)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), pvaluename.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetDeviceValue)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()).ok() } pub unsafe fn GetSTILaunchInformation(&self, pwszdevicename: &mut [u16; 128], pdweventcode: Option<*mut u32>, pwszeventname: &mut [u16; 128]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSTILaunchInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszdevicename.as_ptr()), core::mem::transmute(pdweventcode.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwszeventname.as_ptr())).ok() @@ -12738,7 +12738,7 @@ impl IStillImageW { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchApplicationForDevice)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), pwszappname.param().abi(), core::mem::transmute(pstinotify)).ok() + (windows_core::Interface::vtable(self).LaunchApplicationForDevice)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), pwszappname.param().abi(), pstinotify).ok() } pub unsafe fn SetupDeviceParameters(&self, param0: *mut STI_DEVICE_INFORMATIONW) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetupDeviceParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -12747,7 +12747,7 @@ impl IStillImageW { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmessagetype), pszmessage.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs index d5fb44ff3b..92d7d83fdb 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs @@ -121,7 +121,7 @@ impl IFunctionDiscovery { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(enumsystemvisibility), pszcategory.param().abi(), pszsubcategory.param().abi(), pszcategoryidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddInstance)(windows_core::Interface::as_raw(self), enumsystemvisibility, pszcategory.param().abi(), pszsubcategory.param().abi(), pszcategoryidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveInstance(&self, enumsystemvisibility: SystemVisibilityFlags, pszcategory: P1, pszsubcategory: P2, pszcategoryidentity: P3) -> windows_core::Result<()> where @@ -129,7 +129,7 @@ impl IFunctionDiscovery { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(enumsystemvisibility), pszcategory.param().abi(), pszsubcategory.param().abi(), pszcategoryidentity.param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveInstance)(windows_core::Interface::as_raw(self), enumsystemvisibility, pszcategory.param().abi(), pszsubcategory.param().abi(), pszcategoryidentity.param().abi()).ok() } } #[repr(C)] @@ -238,19 +238,19 @@ impl IFunctionDiscoveryNotification { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(enumqueryupdateaction), core::mem::transmute(fdqcquerycontext), pifunctioninstance.param().abi()).ok() + (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), enumqueryupdateaction, fdqcquerycontext, pifunctioninstance.param().abi()).ok() } pub unsafe fn OnError(&self, hr: windows_core::HRESULT, fdqcquerycontext: u64, pszprovider: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), core::mem::transmute(fdqcquerycontext), pszprovider.param().abi()).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hr, fdqcquerycontext, pszprovider.param().abi()).ok() } pub unsafe fn OnEvent(&self, dweventid: u32, fdqcquerycontext: u64, pszprovider: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dweventid), core::mem::transmute(fdqcquerycontext), pszprovider.param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dweventid, fdqcquerycontext, pszprovider.param().abi()).ok() } } #[repr(C)] @@ -306,7 +306,7 @@ impl IFunctionDiscoveryProvider { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pifunctiondiscoveryproviderfactory.param().abi(), pifunctiondiscoverynotification.param().abi(), core::mem::transmute(lciduserdefault), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pifunctiondiscoveryproviderfactory.param().abi(), pifunctiondiscoverynotification.param().abi(), lciduserdefault, &mut result__).map(|| result__) } pub unsafe fn Query(&self, pifunctiondiscoveryproviderquery: P0) -> windows_core::Result where @@ -323,7 +323,7 @@ impl IFunctionDiscoveryProvider { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancePropertyStoreValidateAccess)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), core::mem::transmute(dwstgaccess)).ok() + (windows_core::Interface::vtable(self).InstancePropertyStoreValidateAccess)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, dwstgaccess).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn InstancePropertyStoreOpen(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, dwstgaccess: u32) -> windows_core::Result @@ -331,14 +331,14 @@ impl IFunctionDiscoveryProvider { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InstancePropertyStoreOpen)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), core::mem::transmute(dwstgaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InstancePropertyStoreOpen)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, dwstgaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancePropertyStoreFlush(&self, pifunctioninstance: P0, iproviderinstancecontext: isize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancePropertyStoreFlush)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext)).ok() + (windows_core::Interface::vtable(self).InstancePropertyStoreFlush)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstanceQueryService(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result @@ -346,14 +346,14 @@ impl IFunctionDiscoveryProvider { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InstanceQueryService)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), core::mem::transmute(guidservice), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InstanceQueryService)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, guidservice, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstanceReleased(&self, pifunctioninstance: P0, iproviderinstancecontext: isize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstanceReleased)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext)).ok() + (windows_core::Interface::vtable(self).InstanceReleased)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext).ok() } } #[repr(C)] @@ -488,7 +488,7 @@ impl IFunctionDiscoveryProviderFactory { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi(), pszproviderinstanceidentity.param().abi(), core::mem::transmute(iproviderinstancecontext), pipropertystore.param().abi(), pifunctiondiscoveryprovider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi(), pszproviderinstanceidentity.param().abi(), iproviderinstancecontext, pipropertystore.param().abi(), pifunctiondiscoveryprovider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFunctionInstanceCollection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -699,7 +699,7 @@ impl IFunctionInstance { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn OpenPropertyStore(&self, dwstgaccess: super::super::System::Com::STGM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstgaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenPropertyStore)(windows_core::Interface::as_raw(self), dwstgaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCategory(&self, ppszcomemcategory: *mut *mut u16, ppszcomemsubcategory: *mut *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszcomemcategory), core::mem::transmute(ppszcomemsubcategory)).ok() @@ -793,7 +793,7 @@ impl IFunctionInstanceCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pifunctioninstance: P0) -> windows_core::Result<()> @@ -805,10 +805,10 @@ impl IFunctionInstanceCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Remove(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), dwindex).ok() } pub unsafe fn DeleteAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAll)(windows_core::Interface::as_raw(self)).ok() @@ -931,7 +931,7 @@ impl IFunctionInstanceCollectionQuery { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyConstraint(&self, key: *const super::super::Foundation::PROPERTYKEY, pv: *const super::super::System::Com::StructuredStorage::PROPVARIANT, enumpropertyconstraint: PropertyConstraint) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyConstraint)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(pv), core::mem::transmute(enumpropertyconstraint)).ok() + (windows_core::Interface::vtable(self).AddPropertyConstraint)(windows_core::Interface::as_raw(self), key, core::mem::transmute(pv), enumpropertyconstraint).ok() } pub unsafe fn Execute(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1171,7 +1171,7 @@ impl IPropertyStoreCollection { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Item(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Add(&self, pipropertystore: P0) -> windows_core::Result<()> @@ -1183,10 +1183,10 @@ impl IPropertyStoreCollection { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Remove(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), dwindex).ok() } pub unsafe fn DeleteAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAll)(windows_core::Interface::as_raw(self)).ok() @@ -1306,14 +1306,14 @@ impl IProviderProperties { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAt(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, dwindex: u32, pkey: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), core::mem::transmute(dwindex), core::mem::transmute(pkey)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, dwindex, core::mem::transmute(pkey)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result @@ -1321,14 +1321,14 @@ impl IProviderProperties { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, key, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, key: *const super::super::Foundation::PROPERTYKEY, ppropvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), core::mem::transmute(iproviderinstancecontext), core::mem::transmute(key), core::mem::transmute(ppropvar)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, key, core::mem::transmute(ppropvar)).ok() } } #[repr(C)] @@ -1412,11 +1412,11 @@ impl IProviderPropertyConstraintCollection { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Get(&self, key: *const super::super::Foundation::PROPERTYKEY, ppropvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pdwpropertyconstraint: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(ppropvar), core::mem::transmute(pdwpropertyconstraint)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), key, core::mem::transmute(ppropvar), core::mem::transmute(pdwpropertyconstraint)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Item(&self, dwindex: u32, pkey: *mut super::super::Foundation::PROPERTYKEY, ppropvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pdwpropertyconstraint: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pkey), core::mem::transmute(ppropvar), core::mem::transmute(pdwpropertyconstraint)).ok() + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pkey), core::mem::transmute(ppropvar), core::mem::transmute(pdwpropertyconstraint)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Next(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, ppropvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pdwpropertyconstraint: *mut u32) -> windows_core::Result<()> { @@ -1516,14 +1516,14 @@ impl IProviderPublishing { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(enumvisibilityflags), pszsubcategory.param().abi(), pszproviderinstanceidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), enumvisibilityflags, pszsubcategory.param().abi(), pszproviderinstanceidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveInstance(&self, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: P1, pszproviderinstanceidentity: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(enumvisibilityflags), pszsubcategory.param().abi(), pszproviderinstanceidentity.param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveInstance)(windows_core::Interface::as_raw(self), enumvisibilityflags, pszsubcategory.param().abi(), pszproviderinstanceidentity.param().abi()).ok() } } #[repr(C)] @@ -1584,7 +1584,7 @@ impl IProviderQueryConstraintCollection { (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), pszconstraintname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Item(&self, dwindex: u32, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(ppszconstraintname), core::mem::transmute(ppszconstraintvalue)).ok() + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(ppszconstraintname), core::mem::transmute(ppszconstraintvalue)).ok() } pub unsafe fn Next(&self, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszconstraintname), core::mem::transmute(ppszconstraintvalue)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs index 5fd756232c..64f8464e42 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs @@ -1224,11 +1224,11 @@ impl IDefaultLocation { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReport)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), plocationreport.param().abi()).ok() + (windows_core::Interface::vtable(self).SetReport)(windows_core::Interface::as_raw(self), reporttype, plocationreport.param().abi()).ok() } pub unsafe fn GetReport(&self, reporttype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReport)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReport)(windows_core::Interface::as_raw(self), reporttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1747,34 +1747,34 @@ impl ILocation { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForReport)(windows_core::Interface::as_raw(self), pevents.param().abi(), core::mem::transmute(reporttype), core::mem::transmute(dwrequestedreportinterval)).ok() + (windows_core::Interface::vtable(self).RegisterForReport)(windows_core::Interface::as_raw(self), pevents.param().abi(), reporttype, dwrequestedreportinterval).ok() } pub unsafe fn UnregisterForReport(&self, reporttype: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterForReport)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype)).ok() + (windows_core::Interface::vtable(self).UnregisterForReport)(windows_core::Interface::as_raw(self), reporttype).ok() } pub unsafe fn GetReport(&self, reporttype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReport)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReport)(windows_core::Interface::as_raw(self), reporttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetReportStatus(&self, reporttype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReportStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetReportStatus)(windows_core::Interface::as_raw(self), reporttype, &mut result__).map(|| result__) } pub unsafe fn GetReportInterval(&self, reporttype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReportInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetReportInterval)(windows_core::Interface::as_raw(self), reporttype, &mut result__).map(|| result__) } pub unsafe fn SetReportInterval(&self, reporttype: *const windows_core::GUID, millisecondsrequested: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), core::mem::transmute(millisecondsrequested)).ok() + (windows_core::Interface::vtable(self).SetReportInterval)(windows_core::Interface::as_raw(self), reporttype, millisecondsrequested).ok() } #[cfg(feature = "Win32_Devices_Sensors")] pub unsafe fn GetDesiredAccuracy(&self, reporttype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDesiredAccuracy)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDesiredAccuracy)(windows_core::Interface::as_raw(self), reporttype, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Devices_Sensors")] pub unsafe fn SetDesiredAccuracy(&self, reporttype: *const windows_core::GUID, desiredaccuracy: super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredAccuracy)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), core::mem::transmute(desiredaccuracy)).ok() + (windows_core::Interface::vtable(self).SetDesiredAccuracy)(windows_core::Interface::as_raw(self), reporttype, desiredaccuracy).ok() } pub unsafe fn RequestPermissions(&self, hparent: Option, preporttypes: &[windows_core::GUID], fmodal: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), core::mem::transmute(hparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(preporttypes.as_ptr()), preporttypes.len().try_into().unwrap(), fmodal.into()).ok() @@ -1900,10 +1900,10 @@ impl ILocationEvents { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLocationChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), plocationreport.param().abi()).ok() + (windows_core::Interface::vtable(self).OnLocationChanged)(windows_core::Interface::as_raw(self), reporttype, plocationreport.param().abi()).ok() } pub unsafe fn OnStatusChanged(&self, reporttype: *const windows_core::GUID, newstatus: LOCATION_REPORT_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), core::mem::transmute(newstatus)).ok() + (windows_core::Interface::vtable(self).OnStatusChanged)(windows_core::Interface::as_raw(self), reporttype, newstatus).ok() } } #[repr(C)] @@ -1988,7 +1988,7 @@ impl ILocationReport { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, pkey: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), pkey, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -2067,7 +2067,7 @@ windows_core::imp::interface_hierarchy!(ILocationReportFactory, windows_core::IU #[cfg(feature = "Win32_System_Com")] impl ILocationReportFactory { pub unsafe fn ListenForReports(&self, requestedreportinterval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ListenForReports)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedreportinterval)).ok() + (windows_core::Interface::vtable(self).ListenForReports)(windows_core::Interface::as_raw(self), requestedreportinterval).ok() } pub unsafe fn StopListeningForReports(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopListeningForReports)(windows_core::Interface::as_raw(self)).ok() @@ -2081,17 +2081,17 @@ impl ILocationReportFactory { (windows_core::Interface::vtable(self).ReportInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReportInterval(&self, millisecondsrequested: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(millisecondsrequested)).ok() + (windows_core::Interface::vtable(self).SetReportInterval)(windows_core::Interface::as_raw(self), millisecondsrequested).ok() } pub unsafe fn DesiredAccuracy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredAccuracy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredAccuracy(&self, desiredaccuracy: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredAccuracy)(windows_core::Interface::as_raw(self), core::mem::transmute(desiredaccuracy)).ok() + (windows_core::Interface::vtable(self).SetDesiredAccuracy)(windows_core::Interface::as_raw(self), desiredaccuracy).ok() } pub unsafe fn RequestPermissions(&self, hwnd: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), hwnd).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs index f83f74de9a..6953256806 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -4,32 +4,32 @@ where P4: windows_core::Param, { windows_targets::link!("dinput8.dll" "system" fn DirectInput8Create(hinst : super::super::Foundation:: HINSTANCE, dwversion : u32, riidltf : *const windows_core::GUID, ppvout : *mut *mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectInput8Create(core::mem::transmute(hinst), core::mem::transmute(dwversion), core::mem::transmute(riidltf), core::mem::transmute(ppvout), punkouter.param().abi()).ok() + DirectInput8Create(hinst, dwversion, riidltf, core::mem::transmute(ppvout), punkouter.param().abi()).ok() } #[inline] pub unsafe fn HidD_FlushQueue(hiddeviceobject: super::super::Foundation::HANDLE) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_FlushQueue(hiddeviceobject : super::super::Foundation:: HANDLE) -> bool); - HidD_FlushQueue(core::mem::transmute(hiddeviceobject)) + HidD_FlushQueue(hiddeviceobject) } #[inline] pub unsafe fn HidD_FreePreparsedData(preparseddata: PHIDP_PREPARSED_DATA) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_FreePreparsedData(preparseddata : PHIDP_PREPARSED_DATA) -> bool); - HidD_FreePreparsedData(core::mem::transmute(preparseddata)) + HidD_FreePreparsedData(preparseddata) } #[inline] pub unsafe fn HidD_GetAttributes(hiddeviceobject: super::super::Foundation::HANDLE, attributes: *mut HIDD_ATTRIBUTES) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetAttributes(hiddeviceobject : super::super::Foundation:: HANDLE, attributes : *mut HIDD_ATTRIBUTES) -> bool); - HidD_GetAttributes(core::mem::transmute(hiddeviceobject), core::mem::transmute(attributes)) + HidD_GetAttributes(hiddeviceobject, core::mem::transmute(attributes)) } #[inline] pub unsafe fn HidD_GetConfiguration(hiddeviceobject: super::super::Foundation::HANDLE, configuration: *mut HIDD_CONFIGURATION, configurationlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *mut HIDD_CONFIGURATION, configurationlength : u32) -> bool); - HidD_GetConfiguration(core::mem::transmute(hiddeviceobject), core::mem::transmute(configuration), core::mem::transmute(configurationlength)) + HidD_GetConfiguration(hiddeviceobject, core::mem::transmute(configuration), configurationlength) } #[inline] pub unsafe fn HidD_GetFeature(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> bool); - HidD_GetFeature(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) + HidD_GetFeature(hiddeviceobject, core::mem::transmute(reportbuffer), reportbufferlength) } #[inline] pub unsafe fn HidD_GetHidGuid() -> windows_core::GUID { @@ -41,202 +41,202 @@ pub unsafe fn HidD_GetHidGuid() -> windows_core::GUID { #[inline] pub unsafe fn HidD_GetIndexedString(hiddeviceobject: super::super::Foundation::HANDLE, stringindex: u32, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetIndexedString(hiddeviceobject : super::super::Foundation:: HANDLE, stringindex : u32, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); - HidD_GetIndexedString(core::mem::transmute(hiddeviceobject), core::mem::transmute(stringindex), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + HidD_GetIndexedString(hiddeviceobject, stringindex, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn HidD_GetInputReport(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetInputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> bool); - HidD_GetInputReport(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) + HidD_GetInputReport(hiddeviceobject, core::mem::transmute(reportbuffer), reportbufferlength) } #[inline] pub unsafe fn HidD_GetManufacturerString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetManufacturerString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); - HidD_GetManufacturerString(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + HidD_GetManufacturerString(hiddeviceobject, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn HidD_GetMsGenreDescriptor(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetMsGenreDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); - HidD_GetMsGenreDescriptor(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + HidD_GetMsGenreDescriptor(hiddeviceobject, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn HidD_GetNumInputBuffers(hiddeviceobject: super::super::Foundation::HANDLE, numberbuffers: *mut u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : *mut u32) -> bool); - HidD_GetNumInputBuffers(core::mem::transmute(hiddeviceobject), core::mem::transmute(numberbuffers)) + HidD_GetNumInputBuffers(hiddeviceobject, core::mem::transmute(numberbuffers)) } #[inline] pub unsafe fn HidD_GetPhysicalDescriptor(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetPhysicalDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); - HidD_GetPhysicalDescriptor(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + HidD_GetPhysicalDescriptor(hiddeviceobject, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn HidD_GetPreparsedData(hiddeviceobject: super::super::Foundation::HANDLE, preparseddata: *mut PHIDP_PREPARSED_DATA) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetPreparsedData(hiddeviceobject : super::super::Foundation:: HANDLE, preparseddata : *mut PHIDP_PREPARSED_DATA) -> bool); - HidD_GetPreparsedData(core::mem::transmute(hiddeviceobject), core::mem::transmute(preparseddata)) + HidD_GetPreparsedData(hiddeviceobject, core::mem::transmute(preparseddata)) } #[inline] pub unsafe fn HidD_GetProductString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetProductString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); - HidD_GetProductString(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + HidD_GetProductString(hiddeviceobject, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn HidD_GetSerialNumberString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_GetSerialNumberString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); - HidD_GetSerialNumberString(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + HidD_GetSerialNumberString(hiddeviceobject, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn HidD_SetConfiguration(hiddeviceobject: super::super::Foundation::HANDLE, configuration: *const HIDD_CONFIGURATION, configurationlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_SetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *const HIDD_CONFIGURATION, configurationlength : u32) -> bool); - HidD_SetConfiguration(core::mem::transmute(hiddeviceobject), core::mem::transmute(configuration), core::mem::transmute(configurationlength)) + HidD_SetConfiguration(hiddeviceobject, configuration, configurationlength) } #[inline] pub unsafe fn HidD_SetFeature(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_SetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> bool); - HidD_SetFeature(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) + HidD_SetFeature(hiddeviceobject, reportbuffer, reportbufferlength) } #[inline] pub unsafe fn HidD_SetNumInputBuffers(hiddeviceobject: super::super::Foundation::HANDLE, numberbuffers: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_SetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : u32) -> bool); - HidD_SetNumInputBuffers(core::mem::transmute(hiddeviceobject), core::mem::transmute(numberbuffers)) + HidD_SetNumInputBuffers(hiddeviceobject, numberbuffers) } #[inline] pub unsafe fn HidD_SetOutputReport(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> bool { windows_targets::link!("hid.dll" "system" fn HidD_SetOutputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> bool); - HidD_SetOutputReport(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) + HidD_SetOutputReport(hiddeviceobject, reportbuffer, reportbufferlength) } #[inline] pub unsafe fn HidP_GetButtonArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, buttondata: *mut HIDP_BUTTON_ARRAY_DATA, buttondatalength: *mut u16, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetButtonArray(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, buttondata : *mut HIDP_BUTTON_ARRAY_DATA, buttondatalength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetButtonArray(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(buttondata), core::mem::transmute(buttondatalength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetButtonArray(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, core::mem::transmute(buttondata), core::mem::transmute(buttondatalength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetButtonCaps(reporttype: HIDP_REPORT_TYPE, buttoncaps: *mut HIDP_BUTTON_CAPS, buttoncapslength: *mut u16, preparseddata: PHIDP_PREPARSED_DATA) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetButtonCaps(reporttype : HIDP_REPORT_TYPE, buttoncaps : *mut HIDP_BUTTON_CAPS, buttoncapslength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: NTSTATUS); - HidP_GetButtonCaps(core::mem::transmute(reporttype), core::mem::transmute(buttoncaps), core::mem::transmute(buttoncapslength), core::mem::transmute(preparseddata)) + HidP_GetButtonCaps(reporttype, core::mem::transmute(buttoncaps), core::mem::transmute(buttoncapslength), preparseddata) } #[inline] pub unsafe fn HidP_GetCaps(preparseddata: PHIDP_PREPARSED_DATA, capabilities: *mut HIDP_CAPS) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetCaps(preparseddata : PHIDP_PREPARSED_DATA, capabilities : *mut HIDP_CAPS) -> super::super::Foundation:: NTSTATUS); - HidP_GetCaps(core::mem::transmute(preparseddata), core::mem::transmute(capabilities)) + HidP_GetCaps(preparseddata, core::mem::transmute(capabilities)) } #[inline] pub unsafe fn HidP_GetData(reporttype: HIDP_REPORT_TYPE, datalist: *mut HIDP_DATA, datalength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetData(reporttype : HIDP_REPORT_TYPE, datalist : *mut HIDP_DATA, datalength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetData(core::mem::transmute(reporttype), core::mem::transmute(datalist), core::mem::transmute(datalength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetData(reporttype, core::mem::transmute(datalist), core::mem::transmute(datalength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetExtendedAttributes(reporttype: HIDP_REPORT_TYPE, dataindex: u16, preparseddata: PHIDP_PREPARSED_DATA, attributes: *mut HIDP_EXTENDED_ATTRIBUTES, lengthattributes: *mut u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetExtendedAttributes(reporttype : HIDP_REPORT_TYPE, dataindex : u16, preparseddata : PHIDP_PREPARSED_DATA, attributes : *mut HIDP_EXTENDED_ATTRIBUTES, lengthattributes : *mut u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetExtendedAttributes(core::mem::transmute(reporttype), core::mem::transmute(dataindex), core::mem::transmute(preparseddata), core::mem::transmute(attributes), core::mem::transmute(lengthattributes)) + HidP_GetExtendedAttributes(reporttype, dataindex, preparseddata, core::mem::transmute(attributes), core::mem::transmute(lengthattributes)) } #[inline] pub unsafe fn HidP_GetLinkCollectionNodes(linkcollectionnodes: *mut HIDP_LINK_COLLECTION_NODE, linkcollectionnodeslength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetLinkCollectionNodes(linkcollectionnodes : *mut HIDP_LINK_COLLECTION_NODE, linkcollectionnodeslength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: NTSTATUS); - HidP_GetLinkCollectionNodes(core::mem::transmute(linkcollectionnodes), core::mem::transmute(linkcollectionnodeslength), core::mem::transmute(preparseddata)) + HidP_GetLinkCollectionNodes(core::mem::transmute(linkcollectionnodes), core::mem::transmute(linkcollectionnodeslength), preparseddata) } #[inline] pub unsafe fn HidP_GetScaledUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, usagevalue: *mut i32, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetScaledUsageValue(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, usagevalue : *mut i32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetScaledUsageValue(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(usagevalue), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetScaledUsageValue(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, core::mem::transmute(usagevalue), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetSpecificButtonCaps(reporttype: HIDP_REPORT_TYPE, usagepage: Option, linkcollection: Option, usage: Option, buttoncaps: *mut HIDP_BUTTON_CAPS, buttoncapslength: *mut u16, preparseddata: PHIDP_PREPARSED_DATA) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetSpecificButtonCaps(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, buttoncaps : *mut HIDP_BUTTON_CAPS, buttoncapslength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: NTSTATUS); - HidP_GetSpecificButtonCaps(core::mem::transmute(reporttype), core::mem::transmute(usagepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage.unwrap_or(core::mem::zeroed())), core::mem::transmute(buttoncaps), core::mem::transmute(buttoncapslength), core::mem::transmute(preparseddata)) + HidP_GetSpecificButtonCaps(reporttype, core::mem::transmute(usagepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage.unwrap_or(core::mem::zeroed())), core::mem::transmute(buttoncaps), core::mem::transmute(buttoncapslength), preparseddata) } #[inline] pub unsafe fn HidP_GetSpecificValueCaps(reporttype: HIDP_REPORT_TYPE, usagepage: Option, linkcollection: Option, usage: Option, valuecaps: *mut HIDP_VALUE_CAPS, valuecapslength: *mut u16, preparseddata: PHIDP_PREPARSED_DATA) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetSpecificValueCaps(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, valuecaps : *mut HIDP_VALUE_CAPS, valuecapslength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: NTSTATUS); - HidP_GetSpecificValueCaps(core::mem::transmute(reporttype), core::mem::transmute(usagepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuecaps), core::mem::transmute(valuecapslength), core::mem::transmute(preparseddata)) + HidP_GetSpecificValueCaps(reporttype, core::mem::transmute(usagepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuecaps), core::mem::transmute(valuecapslength), preparseddata) } #[inline] pub unsafe fn HidP_GetUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, usagevalue: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetUsageValue(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, usagevalue : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetUsageValue(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(usagevalue), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsageValue(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, core::mem::transmute(usagevalue), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetUsageValueArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, usagevalue: &mut [u8], preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetUsageValueArray(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, usagevalue : windows_core::PSTR, usagevaluebytelength : u16, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetUsageValueArray(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsageValueArray(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetUsages(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usagelist: *mut u16, usagelength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetUsages(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usagelist : *mut u16, usagelength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetUsages(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usagelist), core::mem::transmute(usagelength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsages(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usagelist), core::mem::transmute(usagelength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetUsagesEx(reporttype: HIDP_REPORT_TYPE, linkcollection: Option, buttonlist: *mut USAGE_AND_PAGE, usagelength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetUsagesEx(reporttype : HIDP_REPORT_TYPE, linkcollection : u16, buttonlist : *mut USAGE_AND_PAGE, usagelength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_GetUsagesEx(core::mem::transmute(reporttype), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(buttonlist), core::mem::transmute(usagelength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsagesEx(reporttype, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(buttonlist), core::mem::transmute(usagelength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetValueCaps(reporttype: HIDP_REPORT_TYPE, valuecaps: *mut HIDP_VALUE_CAPS, valuecapslength: *mut u16, preparseddata: PHIDP_PREPARSED_DATA) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_GetValueCaps(reporttype : HIDP_REPORT_TYPE, valuecaps : *mut HIDP_VALUE_CAPS, valuecapslength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: NTSTATUS); - HidP_GetValueCaps(core::mem::transmute(reporttype), core::mem::transmute(valuecaps), core::mem::transmute(valuecapslength), core::mem::transmute(preparseddata)) + HidP_GetValueCaps(reporttype, core::mem::transmute(valuecaps), core::mem::transmute(valuecapslength), preparseddata) } #[inline] pub unsafe fn HidP_InitializeReportForID(reporttype: HIDP_REPORT_TYPE, reportid: u8, preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_InitializeReportForID(reporttype : HIDP_REPORT_TYPE, reportid : u8, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_InitializeReportForID(core::mem::transmute(reporttype), core::mem::transmute(reportid), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_InitializeReportForID(reporttype, reportid, preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_MaxDataListLength(reporttype: HIDP_REPORT_TYPE, preparseddata: PHIDP_PREPARSED_DATA) -> u32 { windows_targets::link!("hid.dll" "system" fn HidP_MaxDataListLength(reporttype : HIDP_REPORT_TYPE, preparseddata : PHIDP_PREPARSED_DATA) -> u32); - HidP_MaxDataListLength(core::mem::transmute(reporttype), core::mem::transmute(preparseddata)) + HidP_MaxDataListLength(reporttype, preparseddata) } #[inline] pub unsafe fn HidP_MaxUsageListLength(reporttype: HIDP_REPORT_TYPE, usagepage: Option, preparseddata: PHIDP_PREPARSED_DATA) -> u32 { windows_targets::link!("hid.dll" "system" fn HidP_MaxUsageListLength(reporttype : HIDP_REPORT_TYPE, usagepage : u16, preparseddata : PHIDP_PREPARSED_DATA) -> u32); - HidP_MaxUsageListLength(core::mem::transmute(reporttype), core::mem::transmute(usagepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(preparseddata)) + HidP_MaxUsageListLength(reporttype, core::mem::transmute(usagepage.unwrap_or(core::mem::zeroed())), preparseddata) } #[inline] pub unsafe fn HidP_SetButtonArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, buttondata: &[HIDP_BUTTON_ARRAY_DATA], preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_SetButtonArray(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, buttondata : *const HIDP_BUTTON_ARRAY_DATA, buttondatalength : u16, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_SetButtonArray(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(buttondata.as_ptr()), buttondata.len().try_into().unwrap(), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetButtonArray(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, core::mem::transmute(buttondata.as_ptr()), buttondata.len().try_into().unwrap(), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetData(reporttype: HIDP_REPORT_TYPE, datalist: *mut HIDP_DATA, datalength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_SetData(reporttype : HIDP_REPORT_TYPE, datalist : *mut HIDP_DATA, datalength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_SetData(core::mem::transmute(reporttype), core::mem::transmute(datalist), core::mem::transmute(datalength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetData(reporttype, core::mem::transmute(datalist), core::mem::transmute(datalength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetScaledUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, usagevalue: i32, preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_SetScaledUsageValue(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, usagevalue : i32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_SetScaledUsageValue(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(usagevalue), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetScaledUsageValue(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, usagevalue, preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, usagevalue: u32, preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_SetUsageValue(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, usagevalue : u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_SetUsageValue(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(usagevalue), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetUsageValue(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, usagevalue, preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetUsageValueArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usage: u16, usagevalue: &[u8], preparseddata: PHIDP_PREPARSED_DATA, report: &mut [u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_SetUsageValueArray(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, usagevalue : windows_core::PCSTR, usagevaluebytelength : u16, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_SetUsageValueArray(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usage), core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetUsageValueArray(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), usage, core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetUsages(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usagelist: *mut u16, usagelength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_SetUsages(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usagelist : *mut u16, usagelength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_SetUsages(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usagelist), core::mem::transmute(usagelength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetUsages(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usagelist), core::mem::transmute(usagelength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_TranslateUsagesToI8042ScanCodes(changedusagelist: &[u16], keyaction: HIDP_KEYBOARD_DIRECTION, modifierstate: *mut HIDP_KEYBOARD_MODIFIER_STATE, insertcodesprocedure: PHIDP_INSERT_SCANCODES, insertcodescontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_TranslateUsagesToI8042ScanCodes(changedusagelist : *const u16, usagelistlength : u32, keyaction : HIDP_KEYBOARD_DIRECTION, modifierstate : *mut HIDP_KEYBOARD_MODIFIER_STATE, insertcodesprocedure : PHIDP_INSERT_SCANCODES, insertcodescontext : *const core::ffi::c_void) -> super::super::Foundation:: NTSTATUS); - HidP_TranslateUsagesToI8042ScanCodes(core::mem::transmute(changedusagelist.as_ptr()), changedusagelist.len().try_into().unwrap(), core::mem::transmute(keyaction), core::mem::transmute(modifierstate), core::mem::transmute(insertcodesprocedure), core::mem::transmute(insertcodescontext.unwrap_or(core::mem::zeroed()))) + HidP_TranslateUsagesToI8042ScanCodes(core::mem::transmute(changedusagelist.as_ptr()), changedusagelist.len().try_into().unwrap(), keyaction, core::mem::transmute(modifierstate), insertcodesprocedure, core::mem::transmute(insertcodescontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HidP_UnsetUsages(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: Option, usagelist: *mut u16, usagelength: *mut u32, preparseddata: PHIDP_PREPARSED_DATA, report: &[u8]) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_UnsetUsages(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usagelist : *mut u16, usagelength : *mut u32, preparseddata : PHIDP_PREPARSED_DATA, report : windows_core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_UnsetUsages(core::mem::transmute(reporttype), core::mem::transmute(usagepage), core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usagelist), core::mem::transmute(usagelength), core::mem::transmute(preparseddata), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_UnsetUsages(reporttype, usagepage, core::mem::transmute(linkcollection.unwrap_or(core::mem::zeroed())), core::mem::transmute(usagelist), core::mem::transmute(usagelength), preparseddata, core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_UsageListDifference(previoususagelist: *const u16, currentusagelist: *const u16, breakusagelist: *mut u16, makeusagelist: *mut u16, usagelistlength: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("hid.dll" "system" fn HidP_UsageListDifference(previoususagelist : *const u16, currentusagelist : *const u16, breakusagelist : *mut u16, makeusagelist : *mut u16, usagelistlength : u32) -> super::super::Foundation:: NTSTATUS); - HidP_UsageListDifference(core::mem::transmute(previoususagelist), core::mem::transmute(currentusagelist), core::mem::transmute(breakusagelist), core::mem::transmute(makeusagelist), core::mem::transmute(usagelistlength)) + HidP_UsageListDifference(previoususagelist, currentusagelist, core::mem::transmute(breakusagelist), core::mem::transmute(makeusagelist), usagelistlength) } #[inline] pub unsafe fn joyConfigChanged(dwflags: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyConfigChanged(dwflags : u32) -> u32); - joyConfigChanged(core::mem::transmute(dwflags)) + joyConfigChanged(dwflags) } pub const BALLPOINT_I8042_HARDWARE: u32 = 8u32; pub const BALLPOINT_SERIAL_HARDWARE: u32 = 16u32; @@ -3999,7 +3999,7 @@ impl IDirectInput2A { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), core::mem::transmute(param2)).ok() } } #[repr(C)] @@ -4036,7 +4036,7 @@ impl IDirectInput2W { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), core::mem::transmute(param2)).ok() } } #[repr(C)] @@ -4073,7 +4073,7 @@ impl IDirectInput7A { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.param().abi()).ok() } } #[repr(C)] @@ -4110,7 +4110,7 @@ impl IDirectInput7W { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.param().abi()).ok() } } #[repr(C)] @@ -4141,34 +4141,34 @@ impl IDirectInput8A { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P1, param2: *mut windows_core::GUID) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), core::mem::transmute(param2)).ok() } pub unsafe fn EnumDevicesBySemantics(&self, param0: P0, param1: *mut DIACTIONFORMATA, param2: LPDIENUMDEVICESBYSEMANTICSCBA, param3: *mut core::ffi::c_void, param4: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), param2, core::mem::transmute(param3), param4).ok() } pub unsafe fn ConfigureDevices(&self, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSA, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).ConfigureDevices)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2, core::mem::transmute(param3)).ok() } } #[repr(C)] @@ -4251,34 +4251,34 @@ impl IDirectInput8W { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P1, param2: *mut windows_core::GUID) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), core::mem::transmute(param2)).ok() } pub unsafe fn EnumDevicesBySemantics(&self, param0: P0, param1: *mut DIACTIONFORMATW, param2: LPDIENUMDEVICESBYSEMANTICSCBW, param3: *mut core::ffi::c_void, param4: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), param2, core::mem::transmute(param3), param4).ok() } pub unsafe fn ConfigureDevices(&self, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSW, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).ConfigureDevices)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2, core::mem::transmute(param3)).ok() } } #[repr(C)] @@ -4361,19 +4361,19 @@ impl IDirectInputA { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1).ok() } } #[repr(C)] @@ -4441,22 +4441,22 @@ impl IDirectInputDevice2A { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn EnumEffects(&self, param0: LPDIENUMEFFECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetEffectInfo(&self, param0: *mut DIEFFECTINFOA, param1: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn GetForceFeedbackState(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetForceFeedbackState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SendForceFeedbackCommand(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn EnumCreatedEffectObjects(&self, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Escape(&self, param0: *mut DIEFFESCAPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -4465,7 +4465,7 @@ impl IDirectInputDevice2A { (windows_core::Interface::vtable(self).Poll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SendDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } } #[repr(C)] @@ -4561,22 +4561,22 @@ impl IDirectInputDevice2W { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn EnumEffects(&self, param0: LPDIENUMEFFECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetEffectInfo(&self, param0: *mut DIEFFECTINFOW, param1: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn GetForceFeedbackState(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetForceFeedbackState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SendForceFeedbackCommand(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn EnumCreatedEffectObjects(&self, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Escape(&self, param0: *mut DIEFFESCAPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -4585,7 +4585,7 @@ impl IDirectInputDevice2W { (windows_core::Interface::vtable(self).Poll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SendDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } } #[repr(C)] @@ -4681,13 +4681,13 @@ impl IDirectInputDevice7A { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } } #[repr(C)] @@ -4734,13 +4734,13 @@ impl IDirectInputDevice7W { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } } #[repr(C)] @@ -4781,13 +4781,13 @@ impl IDirectInputDevice8A { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn Acquire(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Acquire)(windows_core::Interface::as_raw(self)).ok() @@ -4796,52 +4796,52 @@ impl IDirectInputDevice8A { (windows_core::Interface::vtable(self).Unacquire)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDeviceState(&self, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn GetDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn SetDataFormat(&self, param0: *mut DIDATAFORMAT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDataFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SetEventNotification(&self, param0: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn GetDeviceInfo(&self, param0: *mut DIDEVICEINSTANCEA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeviceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn EnumEffects(&self, param0: LPDIENUMEFFECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetEffectInfo(&self, param0: *mut DIEFFECTINFOA, param1: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn GetForceFeedbackState(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetForceFeedbackState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SendForceFeedbackCommand(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn EnumCreatedEffectObjects(&self, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Escape(&self, param0: *mut DIEFFESCAPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -4850,31 +4850,31 @@ impl IDirectInputDevice8A { (windows_core::Interface::vtable(self).Poll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SendDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn EnumEffectsInFile(&self, param0: P0, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn BuildActionMap(&self, param0: *mut DIACTIONFORMATA, param1: P1, param2: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), param2).ok() } pub unsafe fn SetActionMap(&self, param0: *mut DIACTIONFORMATA, param1: P1, param2: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), param2).ok() } pub unsafe fn GetImageInfo(&self, param0: *mut DIDEVICEIMAGEINFOHEADERA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -5107,13 +5107,13 @@ impl IDirectInputDevice8W { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn Acquire(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Acquire)(windows_core::Interface::as_raw(self)).ok() @@ -5122,52 +5122,52 @@ impl IDirectInputDevice8W { (windows_core::Interface::vtable(self).Unacquire)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDeviceState(&self, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn GetDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn SetDataFormat(&self, param0: *mut DIDATAFORMAT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDataFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SetEventNotification(&self, param0: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn GetDeviceInfo(&self, param0: *mut DIDEVICEINSTANCEW) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeviceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn EnumEffects(&self, param0: LPDIENUMEFFECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumEffects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetEffectInfo(&self, param0: *mut DIEFFECTINFOW, param1: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetEffectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn GetForceFeedbackState(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetForceFeedbackState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SendForceFeedbackCommand(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn EnumCreatedEffectObjects(&self, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumCreatedEffectObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Escape(&self, param0: *mut DIEFFESCAPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -5176,31 +5176,31 @@ impl IDirectInputDevice8W { (windows_core::Interface::vtable(self).Poll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SendDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SendDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn EnumEffectsInFile(&self, param0: P0, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn BuildActionMap(&self, param0: *mut DIACTIONFORMATW, param1: P1, param2: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), param2).ok() } pub unsafe fn SetActionMap(&self, param0: *mut DIACTIONFORMATW, param1: P1, param2: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), param2).ok() } pub unsafe fn GetImageInfo(&self, param0: *mut DIDEVICEIMAGEINFOHEADERW) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -5433,13 +5433,13 @@ impl IDirectInputDeviceA { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn Acquire(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Acquire)(windows_core::Interface::as_raw(self)).ok() @@ -5448,31 +5448,31 @@ impl IDirectInputDeviceA { (windows_core::Interface::vtable(self).Unacquire)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDeviceState(&self, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn GetDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn SetDataFormat(&self, param0: *mut DIDATAFORMAT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDataFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SetEventNotification(&self, param0: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn GetDeviceInfo(&self, param0: *mut DIDEVICEINSTANCEA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeviceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } #[repr(C)] @@ -5604,13 +5604,13 @@ impl IDirectInputDeviceW { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn Acquire(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Acquire)(windows_core::Interface::as_raw(self)).ok() @@ -5619,31 +5619,31 @@ impl IDirectInputDeviceW { (windows_core::Interface::vtable(self).Unacquire)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDeviceState(&self, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetDeviceState)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn GetDeviceData(&self, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).GetDeviceData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn SetDataFormat(&self, param0: *mut DIDATAFORMAT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDataFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SetEventNotification(&self, param0: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn GetDeviceInfo(&self, param0: *mut DIDEVICEINSTANCEW) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeviceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } #[repr(C)] @@ -5772,19 +5772,19 @@ windows_core::imp::define_interface!(IDirectInputEffect, IDirectInputEffect_Vtbl windows_core::imp::interface_hierarchy!(IDirectInputEffect, windows_core::IUnknown); impl IDirectInputEffect { pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } pub unsafe fn GetEffectGuid(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEffectGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetParameters(&self, param0: *mut DIEFFECT, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn SetParameters(&self, param0: *mut DIEFFECT, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn Start(&self, param0: u32, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -5893,37 +5893,37 @@ windows_core::imp::define_interface!(IDirectInputEffectDriver, IDirectInputEffec windows_core::imp::interface_hierarchy!(IDirectInputEffectDriver, windows_core::IUnknown); impl IDirectInputEffectDriver { pub unsafe fn DeviceID(&self, param0: u32, param1: u32, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceID)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).DeviceID)(windows_core::Interface::as_raw(self), param0, param1, param2, param3, core::mem::transmute(param4)).ok() } pub unsafe fn GetVersions(&self, param0: *mut DIDRIVERVERSIONS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVersions)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn Escape(&self, param0: u32, param1: u32, param2: *mut DIEFFESCAPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2)).ok() } pub unsafe fn SetGain(&self, param0: u32, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGain)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetGain)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SendForceFeedbackCommand(&self, param0: u32, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SendForceFeedbackCommand)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetForceFeedbackState(&self, param0: u32, param1: *mut DIDEVICESTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetForceFeedbackState)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetForceFeedbackState)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn DownloadEffect(&self, param0: u32, param1: u32, param2: *mut u32, param3: *mut DIEFFECT, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DownloadEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).DownloadEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), core::mem::transmute(param3), param4).ok() } pub unsafe fn DestroyEffect(&self, param0: u32, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).DestroyEffect)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn StartEffect(&self, param0: u32, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).StartEffect)(windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() } pub unsafe fn StopEffect(&self, param0: u32, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).StopEffect)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetEffectStatus(&self, param0: u32, param1: u32, param2: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetEffectStatus)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2)).ok() } } #[repr(C)] @@ -6030,25 +6030,25 @@ impl IDirectInputJoyConfig { (windows_core::Interface::vtable(self).Unacquire)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SendNotify(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendNotify)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumTypes(&self, param0: LPDIJOYTYPECALLBACK, param1: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumTypes)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn GetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), param2).ok() } pub unsafe fn SetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), param2).ok() } pub unsafe fn DeleteType(&self, param0: P0) -> windows_core::Result<()> where @@ -6057,33 +6057,33 @@ impl IDirectInputJoyConfig { (windows_core::Interface::vtable(self).DeleteType)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn GetConfig(&self, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn SetConfig(&self, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).SetConfig)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn DeleteConfig(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).DeleteConfig)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetUserValues(&self, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn SetUserValues(&self, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn AddNewHardware(&self, param0: super::super::Foundation::HWND, param1: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), param0, param1).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn OpenTypeKey(&self, param0: P0, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2)).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn OpenConfigKey(&self, param0: u32, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenConfigKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).OpenConfigKey)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2)).ok() } } #[repr(C)] @@ -6234,26 +6234,26 @@ impl IDirectInputJoyConfig8 { (windows_core::Interface::vtable(self).Unacquire)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SendNotify(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendNotify)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumTypes(&self, param0: LPDIJOYTYPECALLBACK, param1: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumTypes)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn GetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), param2).ok() } pub unsafe fn SetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32, param3: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), param2, param3.param().abi()).ok() } pub unsafe fn DeleteType(&self, param0: P0) -> windows_core::Result<()> where @@ -6262,29 +6262,29 @@ impl IDirectInputJoyConfig8 { (windows_core::Interface::vtable(self).DeleteType)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn GetConfig(&self, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn SetConfig(&self, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).SetConfig)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn DeleteConfig(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).DeleteConfig)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetUserValues(&self, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn SetUserValues(&self, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetUserValues)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn AddNewHardware(&self, param0: super::super::Foundation::HWND, param1: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), param0, param1).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn OpenTypeKey(&self, param0: P0, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2)).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn OpenAppStatusKey(&self, param0: *mut super::super::System::Registry::HKEY) -> windows_core::Result<()> { @@ -6436,19 +6436,19 @@ impl IDirectInputW { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3).ok() } pub unsafe fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetDeviceStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn RunControlPanel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0, param1).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs index 8c60dcd5a1..c709789576 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs @@ -154,10 +154,10 @@ windows_core::imp::define_interface!(IEnumWIA_DEV_CAPS, IEnumWIA_DEV_CAPS_Vtbl, windows_core::imp::interface_hierarchy!(IEnumWIA_DEV_CAPS, windows_core::IUnknown); impl IEnumWIA_DEV_CAPS { pub unsafe fn Next(&self, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -239,10 +239,10 @@ windows_core::imp::define_interface!(IEnumWIA_DEV_INFO, IEnumWIA_DEV_INFO_Vtbl, windows_core::imp::interface_hierarchy!(IEnumWIA_DEV_INFO, windows_core::IUnknown); impl IEnumWIA_DEV_INFO { pub unsafe fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -324,10 +324,10 @@ windows_core::imp::define_interface!(IEnumWIA_FORMAT_INFO, IEnumWIA_FORMAT_INFO_ windows_core::imp::interface_hierarchy!(IEnumWIA_FORMAT_INFO, windows_core::IUnknown); impl IEnumWIA_FORMAT_INFO { pub unsafe fn Next(&self, celt: u32, rgelt: *mut WIA_FORMAT_INFO, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -409,10 +409,10 @@ windows_core::imp::define_interface!(IEnumWiaItem, IEnumWiaItem_Vtbl, 0x5e8383fc windows_core::imp::interface_hierarchy!(IEnumWiaItem, windows_core::IUnknown); impl IEnumWiaItem { pub unsafe fn Next(&self, celt: u32, ppiwiaitem: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppiwiaitem), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppiwiaitem), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -494,10 +494,10 @@ windows_core::imp::define_interface!(IEnumWiaItem2, IEnumWiaItem2_Vtbl, 0x59970a windows_core::imp::interface_hierarchy!(IEnumWiaItem2, windows_core::IUnknown); impl IEnumWiaItem2 { pub unsafe fn Next(&self, celt: u32, ppiwiaitem2: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppiwiaitem2), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppiwiaitem2), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -599,7 +599,7 @@ impl IWiaAppErrorHandler { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pwiaitem2.param().abi(), core::mem::transmute(hrstatus), core::mem::transmute(lpercentcomplete)).ok() + (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.param().abi(), hrstatus, lpercentcomplete).ok() } } #[repr(C)] @@ -643,7 +643,7 @@ windows_core::imp::define_interface!(IWiaDataCallback, IWiaDataCallback_Vtbl, 0x windows_core::imp::interface_hierarchy!(IWiaDataCallback, windows_core::IUnknown); impl IWiaDataCallback { pub unsafe fn BandedDataCallback(&self, lmessage: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, lreserved: i32, lreslength: i32, pbbuffer: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BandedDataCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(lmessage), core::mem::transmute(lstatus), core::mem::transmute(lpercentcomplete), core::mem::transmute(loffset), core::mem::transmute(llength), core::mem::transmute(lreserved), core::mem::transmute(lreslength), core::mem::transmute(pbbuffer)).ok() + (windows_core::Interface::vtable(self).BandedDataCallback)(windows_core::Interface::as_raw(self), lmessage, lstatus, lpercentcomplete, loffset, llength, lreserved, lreslength, core::mem::transmute(pbbuffer)).ok() } } #[repr(C)] @@ -763,39 +763,39 @@ windows_core::imp::interface_hierarchy!(IWiaDevMgr, windows_core::IUnknown); impl IWiaDevMgr { pub unsafe fn EnumDeviceInfo(&self, lflag: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumDeviceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lflag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumDeviceInfo)(windows_core::Interface::as_raw(self), lflag, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDevice(&self, bstrdeviceid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR, ppitemroot: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ldevicetype), core::mem::transmute(lflags), core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent, ldevicetype, lflags, core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() } pub unsafe fn SelectDeviceDlgID(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ldevicetype), core::mem::transmute(lflags), core::mem::transmute(pbstrdeviceid)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), hwndparent, ldevicetype, lflags, core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn GetImageDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: P4, bstrfilename: &windows_core::BSTR, pguidformat: *mut windows_core::GUID) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ldevicetype), core::mem::transmute(lflags), core::mem::transmute(lintent), pitemroot.param().abi(), core::mem::transmute_copy(bstrfilename), core::mem::transmute(pguidformat)).ok() + (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), hwndparent, ldevicetype, lflags, lintent, pitemroot.param().abi(), core::mem::transmute_copy(bstrfilename), core::mem::transmute(pguidformat)).ok() } pub unsafe fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, peventguid: *const windows_core::GUID, bstrcommandline: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrdescription: &windows_core::BSTR, bstricon: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(peventguid), core::mem::transmute_copy(bstrcommandline), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), peventguid, core::mem::transmute_copy(bstrcommandline), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() } pub unsafe fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, peventguid: *const windows_core::GUID, piwiaeventcallback: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEventCallbackInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(peventguid), piwiaeventcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterEventCallbackInterface)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), peventguid, piwiaeventcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: &windows_core::BSTR, bstrdescription: &windows_core::BSTR, bstricon: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(peventguid), core::mem::transmute(pclsid), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), peventguid, pclsid, core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() } pub unsafe fn AddDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDeviceDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).AddDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent, lflags).ok() } } #[repr(C)] @@ -901,33 +901,33 @@ windows_core::imp::interface_hierarchy!(IWiaDevMgr2, windows_core::IUnknown); impl IWiaDevMgr2 { pub unsafe fn EnumDeviceInfo(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumDeviceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumDeviceInfo)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDevice(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR, ppitemroot: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ldevicetype), core::mem::transmute(lflags), core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent, ldevicetype, lflags, core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() } pub unsafe fn SelectDeviceDlgID(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ldevicetype), core::mem::transmute(lflags), core::mem::transmute(pbstrdeviceid)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), hwndparent, ldevicetype, lflags, core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, peventguid: *const windows_core::GUID, piwiaeventcallback: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEventCallbackInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(peventguid), piwiaeventcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterEventCallbackInterface)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), peventguid, piwiaeventcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, peventguid: *const windows_core::GUID, bstrfullappname: &windows_core::BSTR, bstrcommandlinearg: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrdescription: &windows_core::BSTR, bstricon: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(peventguid), core::mem::transmute_copy(bstrfullappname), core::mem::transmute_copy(bstrcommandlinearg), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), peventguid, core::mem::transmute_copy(bstrfullappname), core::mem::transmute_copy(bstrcommandlinearg), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() } pub unsafe fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: &windows_core::BSTR, bstrdescription: &windows_core::BSTR, bstricon: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(peventguid), core::mem::transmute(pclsid), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), peventguid, pclsid, core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrdescription), core::mem::transmute_copy(bstricon)).ok() } pub unsafe fn GetImageDlg(&self, lflags: i32, bstrdeviceid: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstrfoldername: &windows_core::BSTR, bstrfilename: &windows_core::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(hwndparent), core::mem::transmute_copy(bstrfoldername), core::mem::transmute_copy(bstrfilename), core::mem::transmute(plnumfiles), core::mem::transmute(ppbstrfilepaths), core::mem::transmute(ppitem)).ok() + (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrdeviceid), hwndparent, core::mem::transmute_copy(bstrfoldername), core::mem::transmute_copy(bstrfilename), core::mem::transmute(plnumfiles), core::mem::transmute(ppbstrfilepaths), core::mem::transmute(ppitem)).ok() } } #[repr(C)] @@ -1047,14 +1047,14 @@ impl IWiaDrvItem { (windows_core::Interface::vtable(self).AddItemToFolder)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0004.param().abi()).ok() } pub unsafe fn UnlinkItemTree(&self, __midl__iwiadrvitem0005: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlinkItemTree)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiadrvitem0005)).ok() + (windows_core::Interface::vtable(self).UnlinkItemTree)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0005).ok() } pub unsafe fn RemoveItemFromFolder(&self, __midl__iwiadrvitem0006: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveItemFromFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiadrvitem0006)).ok() + (windows_core::Interface::vtable(self).RemoveItemFromFolder)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0006).ok() } pub unsafe fn FindItemByName(&self, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiadrvitem0007), core::mem::transmute_copy(__midl__iwiadrvitem0008), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0007, core::mem::transmute_copy(__midl__iwiadrvitem0008), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindChildItemByName(&self, __midl__iwiadrvitem0010: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1252,14 +1252,14 @@ impl IWiaErrorHandler { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(hwndparent), pwiaitem2.param().abi(), core::mem::transmute(hrstatus), core::mem::transmute(lpercentcomplete)).ok() + (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), lflags, hwndparent, pwiaitem2.param().abi(), hrstatus, lpercentcomplete).ok() } pub unsafe fn GetStatusDescription(&self, lflags: i32, pwiaitem2: P1, hrstatus: windows_core::HRESULT) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pwiaitem2.param().abi(), core::mem::transmute(hrstatus), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStatusDescription)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.param().abi(), hrstatus, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -1303,7 +1303,7 @@ windows_core::imp::define_interface!(IWiaEventCallback, IWiaEventCallback_Vtbl, windows_core::imp::interface_hierarchy!(IWiaEventCallback, windows_core::IUnknown); impl IWiaEventCallback { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).ImageEventCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(peventguid), core::mem::transmute_copy(bstreventdescription), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute_copy(bstrdevicedescription), core::mem::transmute(dwdevicetype), core::mem::transmute_copy(bstrfullitemname), core::mem::transmute(puleventtype), core::mem::transmute(ulreserved)).ok() + (windows_core::Interface::vtable(self).ImageEventCallback)(windows_core::Interface::as_raw(self), peventguid, core::mem::transmute_copy(bstreventdescription), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute_copy(bstrdevicedescription), dwdevicetype, core::mem::transmute_copy(bstrfullitemname), core::mem::transmute(puleventtype), ulreserved).ok() } } #[repr(C)] @@ -1349,7 +1349,7 @@ impl IWiaImageFilter { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).FilterPreviewImage)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pwiachilditem2.param().abi(), core::mem::transmute(inputimageextents), pinputstream.param().abi()).ok() + (windows_core::Interface::vtable(self).FilterPreviewImage)(windows_core::Interface::as_raw(self), lflags, pwiachilditem2.param().abi(), core::mem::transmute(inputimageextents), pinputstream.param().abi()).ok() } pub unsafe fn ApplyProperties(&self, pwiapropertystorage: P0) -> windows_core::Result<()> where @@ -1417,32 +1417,32 @@ impl IWiaItem { (windows_core::Interface::vtable(self).GetItemType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AnalyzeItem(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AnalyzeItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).AnalyzeItem)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn EnumChildItems(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnumChildItems)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn CreateChildItem(&self, lflags: i32, bstritemname: &windows_core::BSTR, bstrfullitemname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumRegisterEventInfo(&self, lflags: i32, peventguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterEventInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(peventguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterEventInfo)(windows_core::Interface::as_raw(self), lflags, peventguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindItemByName(&self, lflags: i32, bstrfullitemname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeviceDlg(&self, hwndparent: super::super::Foundation::HWND, lflags: i32, lintent: i32, plitemcount: *mut i32, ppiwiaitem: *mut *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(lflags), core::mem::transmute(lintent), core::mem::transmute(plitemcount), core::mem::transmute(ppiwiaitem)).ok() + (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), hwndparent, lflags, lintent, core::mem::transmute(plitemcount), core::mem::transmute(ppiwiaitem)).ok() } pub unsafe fn DeviceCommand(&self, lflags: i32, pcmdguid: *const windows_core::GUID, piwiaitem: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pcmdguid), core::mem::transmute(piwiaitem)).ok() + (windows_core::Interface::vtable(self).DeviceCommand)(windows_core::Interface::as_raw(self), lflags, pcmdguid, core::mem::transmute(piwiaitem)).ok() } pub unsafe fn GetRootItem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1450,7 +1450,7 @@ impl IWiaItem { } pub unsafe fn EnumDeviceCapabilities(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumDeviceCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumDeviceCapabilities)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DumpItemData(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1655,10 +1655,10 @@ windows_core::imp::interface_hierarchy!(IWiaItem2, windows_core::IUnknown); impl IWiaItem2 { pub unsafe fn CreateChildItem(&self, litemflags: i32, lcreationflags: i32, bstritemname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), core::mem::transmute(litemflags), core::mem::transmute(lcreationflags), core::mem::transmute_copy(bstritemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), litemflags, lcreationflags, core::mem::transmute_copy(bstritemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn EnumChildItems(&self, pcategoryguid: Option<*const windows_core::GUID>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1666,7 +1666,7 @@ impl IWiaItem2 { } pub unsafe fn FindItemByName(&self, lflags: i32, bstrfullitemname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetItemCategory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1677,20 +1677,20 @@ impl IWiaItem2 { (windows_core::Interface::vtable(self).GetItemType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DeviceDlg(&self, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: &windows_core::BSTR, bstrfilename: &windows_core::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(hwndparent), core::mem::transmute_copy(bstrfoldername), core::mem::transmute_copy(bstrfilename), core::mem::transmute(plnumfiles), core::mem::transmute(ppbstrfilepaths), core::mem::transmute(ppitem.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), lflags, hwndparent, core::mem::transmute_copy(bstrfoldername), core::mem::transmute_copy(bstrfilename), core::mem::transmute(plnumfiles), core::mem::transmute(ppbstrfilepaths), core::mem::transmute(ppitem.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DeviceCommand(&self, lflags: i32, pcmdguid: *const windows_core::GUID, ppiwiaitem2: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pcmdguid), core::mem::transmute(ppiwiaitem2)).ok() + (windows_core::Interface::vtable(self).DeviceCommand)(windows_core::Interface::as_raw(self), lflags, pcmdguid, core::mem::transmute(ppiwiaitem2)).ok() } pub unsafe fn EnumDeviceCapabilities(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumDeviceCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumDeviceCapabilities)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CheckExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrname), core::mem::transmute(riidextensioninterface), core::mem::transmute(pbextensionexists)).ok() + (windows_core::Interface::vtable(self).CheckExtension)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrname), riidextensioninterface, core::mem::transmute(pbextensionexists)).ok() } pub unsafe fn GetExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrname), core::mem::transmute(riidextensioninterface), core::mem::transmute(ppout)).ok() + (windows_core::Interface::vtable(self).GetExtension)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrname), riidextensioninterface, core::mem::transmute(ppout)).ok() } pub unsafe fn GetParentItem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1702,11 +1702,11 @@ impl IWiaItem2 { } pub unsafe fn GetPreviewComponent(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreviewComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPreviewComponent)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumRegisterEventInfo(&self, lflags: i32, peventguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterEventInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(peventguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterEventInfo)(windows_core::Interface::as_raw(self), lflags, peventguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Diagnostic(&self, pbuffer: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Diagnostic)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr())).ok() @@ -1909,7 +1909,7 @@ impl IWiaItemExtras { (windows_core::Interface::vtable(self).GetExtendedErrorInfo)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Escape(&self, dwescapecode: u32, lpindata: &[u8], poutdata: &mut [u8], pdwactualdatasize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(dwescapecode), core::mem::transmute(lpindata.as_ptr()), lpindata.len().try_into().unwrap(), core::mem::transmute(poutdata.as_ptr()), poutdata.len().try_into().unwrap(), core::mem::transmute(pdwactualdatasize)).ok() + (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), dwescapecode, core::mem::transmute(lpindata.as_ptr()), lpindata.len().try_into().unwrap(), core::mem::transmute(poutdata.as_ptr()), poutdata.len().try_into().unwrap(), core::mem::transmute(pdwactualdatasize)).ok() } pub unsafe fn CancelPendingIO(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelPendingIO)(windows_core::Interface::as_raw(self)).ok() @@ -1963,13 +1963,13 @@ windows_core::imp::define_interface!(IWiaLog, IWiaLog_Vtbl, 0xa00c10b6_82a1_452f windows_core::imp::interface_hierarchy!(IWiaLog, windows_core::IUnknown); impl IWiaLog { pub unsafe fn InitializeLog(&self, hinstance: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeLog)(windows_core::Interface::as_raw(self), core::mem::transmute(hinstance)).ok() + (windows_core::Interface::vtable(self).InitializeLog)(windows_core::Interface::as_raw(self), hinstance).ok() } pub unsafe fn hResult(&self, hresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).hResult)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult)).ok() + (windows_core::Interface::vtable(self).hResult)(windows_core::Interface::as_raw(self), hresult).ok() } pub unsafe fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(lresid), core::mem::transmute(ldetail), core::mem::transmute_copy(bstrtext)).ok() + (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), lflags, lresid, ldetail, core::mem::transmute_copy(bstrtext)).ok() } } #[repr(C)] @@ -2014,19 +2014,19 @@ windows_core::imp::define_interface!(IWiaLogEx, IWiaLogEx_Vtbl, 0xaf1f22ac_7a40_ windows_core::imp::interface_hierarchy!(IWiaLogEx, windows_core::IUnknown); impl IWiaLogEx { pub unsafe fn InitializeLogEx(&self, hinstance: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeLogEx)(windows_core::Interface::as_raw(self), core::mem::transmute(hinstance)).ok() + (windows_core::Interface::vtable(self).InitializeLogEx)(windows_core::Interface::as_raw(self), hinstance).ok() } pub unsafe fn hResult(&self, hresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).hResult)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult)).ok() + (windows_core::Interface::vtable(self).hResult)(windows_core::Interface::as_raw(self), hresult).ok() } pub unsafe fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(lresid), core::mem::transmute(ldetail), core::mem::transmute_copy(bstrtext)).ok() + (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), lflags, lresid, ldetail, core::mem::transmute_copy(bstrtext)).ok() } pub unsafe fn hResultEx(&self, lmethodid: i32, hresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).hResultEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lmethodid), core::mem::transmute(hresult)).ok() + (windows_core::Interface::vtable(self).hResultEx)(windows_core::Interface::as_raw(self), lmethodid, hresult).ok() } pub unsafe fn LogEx(&self, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LogEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lmethodid), core::mem::transmute(lflags), core::mem::transmute(lresid), core::mem::transmute(ldetail), core::mem::transmute_copy(bstrtext)).ok() + (windows_core::Interface::vtable(self).LogEx)(windows_core::Interface::as_raw(self), lmethodid, lflags, lresid, ldetail, core::mem::transmute_copy(bstrtext)).ok() } } #[repr(C)] @@ -2089,65 +2089,65 @@ impl IWiaMiniDrv { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).drvInitializeWia)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0000), core::mem::transmute(__midl__iwiaminidrv0001), core::mem::transmute_copy(__midl__iwiaminidrv0002), core::mem::transmute_copy(__midl__iwiaminidrv0003), __midl__iwiaminidrv0004.param().abi(), __midl__iwiaminidrv0005.param().abi(), core::mem::transmute(__midl__iwiaminidrv0006), core::mem::transmute(__midl__iwiaminidrv0007), core::mem::transmute(__midl__iwiaminidrv0008)).ok() + (windows_core::Interface::vtable(self).drvInitializeWia)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0000, __midl__iwiaminidrv0001, core::mem::transmute_copy(__midl__iwiaminidrv0002), core::mem::transmute_copy(__midl__iwiaminidrv0003), __midl__iwiaminidrv0004.param().abi(), __midl__iwiaminidrv0005.param().abi(), core::mem::transmute(__midl__iwiaminidrv0006), core::mem::transmute(__midl__iwiaminidrv0007), core::mem::transmute(__midl__iwiaminidrv0008)).ok() } pub unsafe fn drvAcquireItemData(&self, __midl__iwiaminidrv0009: *const u8, __midl__iwiaminidrv0010: i32, __midl__iwiaminidrv0011: *mut MINIDRV_TRANSFER_CONTEXT, __midl__iwiaminidrv0012: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvAcquireItemData)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0009), core::mem::transmute(__midl__iwiaminidrv0010), core::mem::transmute(__midl__iwiaminidrv0011), core::mem::transmute(__midl__iwiaminidrv0012)).ok() + (windows_core::Interface::vtable(self).drvAcquireItemData)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0009, __midl__iwiaminidrv0010, core::mem::transmute(__midl__iwiaminidrv0011), core::mem::transmute(__midl__iwiaminidrv0012)).ok() } pub unsafe fn drvInitItemProperties(&self, __midl__iwiaminidrv0013: *const u8, __midl__iwiaminidrv0014: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvInitItemProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0013), core::mem::transmute(__midl__iwiaminidrv0014), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvInitItemProperties)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0013, __midl__iwiaminidrv0014, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn drvValidateItemProperties(&self, __midl__iwiaminidrv0016: *const u8, __midl__iwiaminidrv0017: i32, __midl__iwiaminidrv0018: u32, __midl__iwiaminidrv0019: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvValidateItemProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0016), core::mem::transmute(__midl__iwiaminidrv0017), core::mem::transmute(__midl__iwiaminidrv0018), core::mem::transmute(__midl__iwiaminidrv0019), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvValidateItemProperties)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0016, __midl__iwiaminidrv0017, __midl__iwiaminidrv0018, __midl__iwiaminidrv0019, &mut result__).map(|| result__) } pub unsafe fn drvWriteItemProperties(&self, __midl__iwiaminidrv0021: *const u8, __midl__iwiaminidrv0022: i32, __midl__iwiaminidrv0023: *const MINIDRV_TRANSFER_CONTEXT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvWriteItemProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0021), core::mem::transmute(__midl__iwiaminidrv0022), core::mem::transmute(__midl__iwiaminidrv0023), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvWriteItemProperties)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0021, __midl__iwiaminidrv0022, core::mem::transmute(__midl__iwiaminidrv0023), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn drvReadItemProperties(&self, __midl__iwiaminidrv0025: *const u8, __midl__iwiaminidrv0026: i32, __midl__iwiaminidrv0027: u32, __midl__iwiaminidrv0028: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvReadItemProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0025), core::mem::transmute(__midl__iwiaminidrv0026), core::mem::transmute(__midl__iwiaminidrv0027), core::mem::transmute(__midl__iwiaminidrv0028), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvReadItemProperties)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0025, __midl__iwiaminidrv0026, __midl__iwiaminidrv0027, __midl__iwiaminidrv0028, &mut result__).map(|| result__) } pub unsafe fn drvLockWiaDevice(&self, __midl__iwiaminidrv0030: *const u8, __midl__iwiaminidrv0031: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvLockWiaDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0030), core::mem::transmute(__midl__iwiaminidrv0031), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvLockWiaDevice)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0030, __midl__iwiaminidrv0031, &mut result__).map(|| result__) } pub unsafe fn drvUnLockWiaDevice(&self, __midl__iwiaminidrv0033: *const u8, __midl__iwiaminidrv0034: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvUnLockWiaDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0033), core::mem::transmute(__midl__iwiaminidrv0034), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvUnLockWiaDevice)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0033, __midl__iwiaminidrv0034, &mut result__).map(|| result__) } pub unsafe fn drvAnalyzeItem(&self, __midl__iwiaminidrv0036: *const u8, __midl__iwiaminidrv0037: i32, __midl__iwiaminidrv0038: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvAnalyzeItem)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0036), core::mem::transmute(__midl__iwiaminidrv0037), core::mem::transmute(__midl__iwiaminidrv0038)).ok() + (windows_core::Interface::vtable(self).drvAnalyzeItem)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0036, __midl__iwiaminidrv0037, __midl__iwiaminidrv0038).ok() } pub unsafe fn drvGetDeviceErrorStr(&self, __midl__iwiaminidrv0039: i32, __midl__iwiaminidrv0040: i32, __midl__iwiaminidrv0041: *mut windows_core::PWSTR, __midl__iwiaminidrv0042: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvGetDeviceErrorStr)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0039), core::mem::transmute(__midl__iwiaminidrv0040), core::mem::transmute(__midl__iwiaminidrv0041), core::mem::transmute(__midl__iwiaminidrv0042)).ok() + (windows_core::Interface::vtable(self).drvGetDeviceErrorStr)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0039, __midl__iwiaminidrv0040, core::mem::transmute(__midl__iwiaminidrv0041), core::mem::transmute(__midl__iwiaminidrv0042)).ok() } pub unsafe fn drvDeviceCommand(&self, __midl__iwiaminidrv0043: *const u8, __midl__iwiaminidrv0044: i32, __midl__iwiaminidrv0045: *const windows_core::GUID, __midl__iwiaminidrv0046: *mut Option, __midl__iwiaminidrv0047: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvDeviceCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0043), core::mem::transmute(__midl__iwiaminidrv0044), core::mem::transmute(__midl__iwiaminidrv0045), core::mem::transmute(__midl__iwiaminidrv0046), core::mem::transmute(__midl__iwiaminidrv0047)).ok() + (windows_core::Interface::vtable(self).drvDeviceCommand)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0043, __midl__iwiaminidrv0044, __midl__iwiaminidrv0045, core::mem::transmute(__midl__iwiaminidrv0046), core::mem::transmute(__midl__iwiaminidrv0047)).ok() } pub unsafe fn drvGetCapabilities(&self, __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::Result<()> { - (windows_core::Interface::vtable(self).drvGetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0048), core::mem::transmute(__midl__iwiaminidrv0049), core::mem::transmute(__midl__iwiaminidrv0050), core::mem::transmute(__midl__iwiaminidrv0051), core::mem::transmute(__midl__iwiaminidrv0052)).ok() + (windows_core::Interface::vtable(self).drvGetCapabilities)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0048, __midl__iwiaminidrv0049, core::mem::transmute(__midl__iwiaminidrv0050), core::mem::transmute(__midl__iwiaminidrv0051), core::mem::transmute(__midl__iwiaminidrv0052)).ok() } pub unsafe fn drvDeleteItem(&self, __midl__iwiaminidrv0053: *const u8, __midl__iwiaminidrv0054: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvDeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0053), core::mem::transmute(__midl__iwiaminidrv0054), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvDeleteItem)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0053, __midl__iwiaminidrv0054, &mut result__).map(|| result__) } pub unsafe fn drvFreeDrvItemContext(&self, __midl__iwiaminidrv0056: i32, __midl__iwiaminidrv0057: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).drvFreeDrvItemContext)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0056), core::mem::transmute(__midl__iwiaminidrv0057), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).drvFreeDrvItemContext)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0056, __midl__iwiaminidrv0057, &mut result__).map(|| result__) } pub unsafe fn drvGetWiaFormatInfo(&self, __midl__iwiaminidrv0059: *const u8, __midl__iwiaminidrv0060: i32, __midl__iwiaminidrv0061: *mut i32, __midl__iwiaminidrv0062: *mut *mut WIA_FORMAT_INFO, __midl__iwiaminidrv0063: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvGetWiaFormatInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0059), core::mem::transmute(__midl__iwiaminidrv0060), core::mem::transmute(__midl__iwiaminidrv0061), core::mem::transmute(__midl__iwiaminidrv0062), core::mem::transmute(__midl__iwiaminidrv0063)).ok() + (windows_core::Interface::vtable(self).drvGetWiaFormatInfo)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0059, __midl__iwiaminidrv0060, core::mem::transmute(__midl__iwiaminidrv0061), core::mem::transmute(__midl__iwiaminidrv0062), core::mem::transmute(__midl__iwiaminidrv0063)).ok() } pub unsafe fn drvNotifyPnpEvent(&self, peventguid: *const windows_core::GUID, bstrdeviceid: &windows_core::BSTR, ulreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvNotifyPnpEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(peventguid), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(ulreserved)).ok() + (windows_core::Interface::vtable(self).drvNotifyPnpEvent)(windows_core::Interface::as_raw(self), peventguid, core::mem::transmute_copy(bstrdeviceid), ulreserved).ok() } pub unsafe fn drvUnInitializeWia(&self, __midl__iwiaminidrv0064: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).drvUnInitializeWia)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iwiaminidrv0064)).ok() + (windows_core::Interface::vtable(self).drvUnInitializeWia)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0064).ok() } } #[repr(C)] @@ -2359,7 +2359,7 @@ windows_core::imp::define_interface!(IWiaMiniDrvCallBack, IWiaMiniDrvCallBack_Vt windows_core::imp::interface_hierarchy!(IWiaMiniDrvCallBack, windows_core::IUnknown); impl IWiaMiniDrvCallBack { pub unsafe fn MiniDrvCallback(&self, lreason: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, ptranctx: *const MINIDRV_TRANSFER_CONTEXT, lreserved: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MiniDrvCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(lreason), core::mem::transmute(lstatus), core::mem::transmute(lpercentcomplete), core::mem::transmute(loffset), core::mem::transmute(llength), core::mem::transmute(ptranctx), core::mem::transmute(lreserved)).ok() + (windows_core::Interface::vtable(self).MiniDrvCallback)(windows_core::Interface::as_raw(self), lreason, lstatus, lpercentcomplete, loffset, llength, core::mem::transmute(ptranctx), lreserved).ok() } } #[repr(C)] @@ -2389,10 +2389,10 @@ impl IWiaMiniDrvTransferCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextStream(&self, lflags: i32, bstritemname: &windows_core::BSTR, bstrfullitemname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SendMessage(&self, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pwiatransferparams)).ok() + (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), lflags, pwiatransferparams).ok() } } #[repr(C)] @@ -2474,17 +2474,17 @@ impl IWiaPreview { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNewPreview)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pwiaitem2.param().abi(), pwiatransfercallback.param().abi()).ok() + (windows_core::Interface::vtable(self).GetNewPreview)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.param().abi(), pwiatransfercallback.param().abi()).ok() } pub unsafe fn UpdatePreview(&self, lflags: i32, pchildwiaitem2: P1, pwiatransfercallback: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePreview)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pchildwiaitem2.param().abi(), pwiatransfercallback.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdatePreview)(windows_core::Interface::as_raw(self), lflags, pchildwiaitem2.param().abi(), pwiatransfercallback.param().abi()).ok() } pub unsafe fn DetectRegions(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DetectRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).DetectRegions)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -2541,11 +2541,11 @@ impl IWiaPropertyStorage { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn ReadMultiple(&self, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadMultiple)(windows_core::Interface::as_raw(self), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ReadMultiple)(windows_core::Interface::as_raw(self), cpspec, rgpspec, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn WriteMultiple(&self, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT, propidnamefirst: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMultiple)(windows_core::Interface::as_raw(self), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), core::mem::transmute(rgpropvar), core::mem::transmute(propidnamefirst)).ok() + (windows_core::Interface::vtable(self).WriteMultiple)(windows_core::Interface::as_raw(self), cpspec, rgpspec, core::mem::transmute(rgpropvar), propidnamefirst).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn DeleteMultiple(&self, rgpspec: &[super::super::System::Com::StructuredStorage::PROPSPEC]) -> windows_core::Result<()> { @@ -2553,16 +2553,16 @@ impl IWiaPropertyStorage { } pub unsafe fn ReadPropertyNames(&self, cpropid: u32, rgpropid: *const u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadPropertyNames)(windows_core::Interface::as_raw(self), core::mem::transmute(cpropid), core::mem::transmute(rgpropid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadPropertyNames)(windows_core::Interface::as_raw(self), cpropid, rgpropid, &mut result__).map(|| result__) } pub unsafe fn WritePropertyNames(&self, cpropid: u32, rgpropid: *const u32, rglpwstrname: *const windows_core::PCWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePropertyNames)(windows_core::Interface::as_raw(self), core::mem::transmute(cpropid), core::mem::transmute(rgpropid), core::mem::transmute(rglpwstrname)).ok() + (windows_core::Interface::vtable(self).WritePropertyNames)(windows_core::Interface::as_raw(self), cpropid, rgpropid, rglpwstrname).ok() } pub unsafe fn DeletePropertyNames(&self, rgpropid: &[u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeletePropertyNames)(windows_core::Interface::as_raw(self), rgpropid.len().try_into().unwrap(), core::mem::transmute(rgpropid.as_ptr())).ok() } pub unsafe fn Commit(&self, grfcommitflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(grfcommitflags)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), grfcommitflags).ok() } pub unsafe fn Revert(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Revert)(windows_core::Interface::as_raw(self)).ok() @@ -2573,10 +2573,10 @@ impl IWiaPropertyStorage { (windows_core::Interface::vtable(self).Enum)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetTimes(&self, pctime: *const super::super::Foundation::FILETIME, patime: *const super::super::Foundation::FILETIME, pmtime: *const super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pctime), core::mem::transmute(patime), core::mem::transmute(pmtime)).ok() + (windows_core::Interface::vtable(self).SetTimes)(windows_core::Interface::as_raw(self), pctime, patime, pmtime).ok() } pub unsafe fn SetClass(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), clsid).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Stat(&self, pstatpsstg: *mut super::super::System::Com::StructuredStorage::STATPROPSETSTG) -> windows_core::Result<()> { @@ -2584,7 +2584,7 @@ impl IWiaPropertyStorage { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetPropertyAttributes(&self, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgflags: *mut u32, rgpropvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), core::mem::transmute(rgflags), core::mem::transmute(rgpropvar)).ok() + (windows_core::Interface::vtable(self).GetPropertyAttributes)(windows_core::Interface::as_raw(self), cpspec, rgpspec, core::mem::transmute(rgflags), core::mem::transmute(rgpropvar)).ok() } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2791,7 +2791,7 @@ impl IWiaSegmentationFilter { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pinputstream.param().abi(), pwiaitem2.param().abi()).ok() + (windows_core::Interface::vtable(self).DetectRegions)(windows_core::Interface::as_raw(self), lflags, pinputstream.param().abi(), pwiaitem2.param().abi()).ok() } } #[repr(C)] @@ -2828,7 +2828,7 @@ impl IWiaTransfer { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), piwiatransfercallback.param().abi()).ok() + (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), lflags, piwiatransfercallback.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Upload(&self, lflags: i32, psource: P1, piwiatransfercallback: P2) -> windows_core::Result<()> @@ -2836,7 +2836,7 @@ impl IWiaTransfer { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Upload)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), psource.param().abi(), piwiatransfercallback.param().abi()).ok() + (windows_core::Interface::vtable(self).Upload)(windows_core::Interface::as_raw(self), lflags, psource.param().abi(), piwiatransfercallback.param().abi()).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -2907,12 +2907,12 @@ windows_core::imp::define_interface!(IWiaTransferCallback, IWiaTransferCallback_ windows_core::imp::interface_hierarchy!(IWiaTransferCallback, windows_core::IUnknown); impl IWiaTransferCallback { pub unsafe fn TransferCallback(&self, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TransferCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pwiatransferparams)).ok() + (windows_core::Interface::vtable(self).TransferCallback)(windows_core::Interface::as_raw(self), lflags, pwiatransferparams).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextStream(&self, lflags: i32, bstritemname: &windows_core::BSTR, bstrfullitemname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrfullitemname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2966,11 +2966,11 @@ impl IWiaUIExtension { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetDeviceIcon(&self, bstrdeviceid: &windows_core::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(phicon), core::mem::transmute(nsize)).ok() + (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(phicon), nsize).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDeviceBitmapLogo(&self, bstrdeviceid: &windows_core::BSTR, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceBitmapLogo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(phbitmap), core::mem::transmute(nmaxwidth), core::mem::transmute(nmaxheight)).ok() + (windows_core::Interface::vtable(self).GetDeviceBitmapLogo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(phbitmap), nmaxwidth, nmaxheight).ok() } } #[repr(C)] @@ -3028,7 +3028,7 @@ impl IWiaUIExtension2 { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetDeviceIcon(&self, bstrdeviceid: &windows_core::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(phicon), core::mem::transmute(nsize)).ok() + (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdeviceid), core::mem::transmute(phicon), nsize).ok() } } #[repr(C)] @@ -3086,13 +3086,13 @@ impl IWiaVideo { (windows_core::Interface::vtable(self).SetImagesDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrimagedirectory)).ok() } pub unsafe fn CreateVideoByWiaDevID(&self, bstrwiadeviceid: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: bool, bautobeginplayback: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateVideoByWiaDevID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrwiadeviceid), core::mem::transmute(hwndparent), bstretchtofitparent.into(), bautobeginplayback.into()).ok() + (windows_core::Interface::vtable(self).CreateVideoByWiaDevID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrwiadeviceid), hwndparent, bstretchtofitparent.into(), bautobeginplayback.into()).ok() } pub unsafe fn CreateVideoByDevNum(&self, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: bool, bautobeginplayback: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateVideoByDevNum)(windows_core::Interface::as_raw(self), core::mem::transmute(uidevicenumber), core::mem::transmute(hwndparent), bstretchtofitparent.into(), bautobeginplayback.into()).ok() + (windows_core::Interface::vtable(self).CreateVideoByDevNum)(windows_core::Interface::as_raw(self), uidevicenumber, hwndparent, bstretchtofitparent.into(), bautobeginplayback.into()).ok() } pub unsafe fn CreateVideoByName(&self, bstrfriendlyname: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: bool, bautobeginplayback: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateVideoByName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfriendlyname), core::mem::transmute(hwndparent), bstretchtofitparent.into(), bautobeginplayback.into()).ok() + (windows_core::Interface::vtable(self).CreateVideoByName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfriendlyname), hwndparent, bstretchtofitparent.into(), bautobeginplayback.into()).ok() } pub unsafe fn DestroyVideo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DestroyVideo)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs index f7e7852853..9dfa845c65 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -96,7 +96,7 @@ windows_core::imp::define_interface!(IConnectionRequestCallback, IConnectionRequ windows_core::imp::interface_hierarchy!(IConnectionRequestCallback, windows_core::IUnknown); impl IConnectionRequestCallback { pub unsafe fn OnComplete(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), hrstatus).ok() } } #[repr(C)] @@ -127,7 +127,7 @@ impl IEnumPortableDeviceConnectors { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pconnectors.len().try_into().unwrap(), core::mem::transmute(pconnectors.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cconnectors: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cconnectors)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cconnectors).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -195,7 +195,7 @@ impl IEnumPortableDeviceObjectIDs { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pobjids.len().try_into().unwrap(), core::mem::transmute(pobjids.as_ptr()), core::mem::transmute(pcfetched)) } pub unsafe fn Skip(&self, cobjects: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cobjects)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cobjects) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -274,7 +274,7 @@ impl IMediaRadioManager { (windows_core::Interface::vtable(self).GetRadioInstances)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnSystemRadioStateChange(&self, sysradiostate: SYSTEM_RADIO_STATE, utimeoutsec: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSystemRadioStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(sysradiostate), core::mem::transmute(utimeoutsec)).ok() + (windows_core::Interface::vtable(self).OnSystemRadioStateChange)(windows_core::Interface::as_raw(self), sysradiostate, utimeoutsec).ok() } } #[repr(C)] @@ -327,7 +327,7 @@ impl IMediaRadioManagerNotifySink { (windows_core::Interface::vtable(self).OnInstanceRemove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrradioinstanceid)).ok() } pub unsafe fn OnInstanceRadioChange(&self, bstrradioinstanceid: &windows_core::BSTR, radiostate: DEVICE_RADIO_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInstanceRadioChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrradioinstanceid), core::mem::transmute(radiostate)).ok() + (windows_core::Interface::vtable(self).OnInstanceRadioChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrradioinstanceid), radiostate).ok() } } #[repr(C)] @@ -385,7 +385,7 @@ impl IPortableDevice { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), dwflags, pparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Content(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -407,7 +407,7 @@ impl IPortableDevice { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pcallback.param().abi(), pparameters.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), dwflags, pcallback.param().abi(), pparameters.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, pszcookie: P0) -> windows_core::Result<()> where @@ -539,7 +539,7 @@ impl IPortableDeviceCapabilities { } pub unsafe fn GetCommandOptions(&self, command: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCommandOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(command), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCommandOptions)(windows_core::Interface::as_raw(self), command, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFunctionalCategories(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -547,23 +547,23 @@ impl IPortableDeviceCapabilities { } pub unsafe fn GetFunctionalObjects(&self, category: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionalObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(category), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFunctionalObjects)(windows_core::Interface::as_raw(self), category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedContentTypes(&self, category: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedContentTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(category), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedContentTypes)(windows_core::Interface::as_raw(self), category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedFormats(&self, contenttype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedFormats)(windows_core::Interface::as_raw(self), contenttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedFormatProperties(&self, format: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedFormatProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedFormatProperties)(windows_core::Interface::as_raw(self), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFixedPropertyAttributes(&self, format: *const windows_core::GUID, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFixedPropertyAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFixedPropertyAttributes)(windows_core::Interface::as_raw(self), format, key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -574,7 +574,7 @@ impl IPortableDeviceCapabilities { } pub unsafe fn GetEventOptions(&self, event: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(event), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEventOptions)(windows_core::Interface::as_raw(self), event, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -754,11 +754,11 @@ impl IPortableDeviceConnector { } #[cfg(feature = "Win32_Devices_Properties")] pub unsafe fn GetProperty(&self, ppropertykey: *const super::super::Foundation::DEVPROPKEY, ppropertytype: *mut super::Properties::DEVPROPTYPE, ppdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(ppropertykey), core::mem::transmute(ppropertytype), core::mem::transmute(ppdata), core::mem::transmute(pcbdata)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), ppropertykey, core::mem::transmute(ppropertytype), core::mem::transmute(ppdata), core::mem::transmute(pcbdata)).ok() } #[cfg(feature = "Win32_Devices_Properties")] pub unsafe fn SetProperty(&self, ppropertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, pdata: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(ppropertykey), core::mem::transmute(propertytype), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), ppropertykey, propertytype, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()).ok() } pub unsafe fn GetPnPID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -848,7 +848,7 @@ impl IPortableDeviceContent { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszparentobjectid.param().abi(), pfilter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), dwflags, pszparentobjectid.param().abi(), pfilter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Properties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -875,7 +875,7 @@ impl IPortableDeviceContent { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions), pobjectids.param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), dwoptions, pobjectids.param().abi(), core::mem::transmute(ppresults)).ok() } pub unsafe fn GetObjectIDsFromPersistentUniqueIDs(&self, ppersistentuniqueids: P0) -> windows_core::Result where @@ -1209,19 +1209,19 @@ windows_core::imp::define_interface!(IPortableDeviceKeyCollection, IPortableDevi windows_core::imp::interface_hierarchy!(IPortableDeviceKeyCollection, windows_core::IUnknown); impl IPortableDeviceKeyCollection { pub unsafe fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelems)).ok() + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pcelems).ok() } pub unsafe fn GetAt(&self, dwindex: u32, pkey: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pkey)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), dwindex, pkey).ok() } pub unsafe fn Add(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), key).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemoveAt(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), dwindex).ok() } } #[repr(C)] @@ -1384,11 +1384,11 @@ windows_core::imp::define_interface!(IPortableDevicePropVariantCollection, IPort windows_core::imp::interface_hierarchy!(IPortableDevicePropVariantCollection, windows_core::IUnknown); impl IPortableDevicePropVariantCollection { pub unsafe fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelems)).ok() + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pcelems).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetAt(&self, dwindex: u32, pvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, pvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { @@ -1399,13 +1399,13 @@ impl IPortableDevicePropVariantCollection { (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ChangeType(&self, vt: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeType)(windows_core::Interface::as_raw(self), core::mem::transmute(vt)).ok() + (windows_core::Interface::vtable(self).ChangeType)(windows_core::Interface::as_raw(self), vt).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemoveAt(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), dwindex).ok() } } #[repr(C)] @@ -1504,7 +1504,7 @@ impl IPortableDeviceProperties { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyAttributes)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyAttributes)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetValues(&self, pszobjectid: P0, pkeys: P1) -> windows_core::Result where @@ -1635,7 +1635,7 @@ impl IPortableDevicePropertiesBulk { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueueGetValuesByObjectFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidobjectformat), pszparentobjectid.param().abi(), core::mem::transmute(dwdepth), pkeys.param().abi(), pcallback.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueueGetValuesByObjectFormat)(windows_core::Interface::as_raw(self), pguidobjectformat, pszparentobjectid.param().abi(), dwdepth, pkeys.param().abi(), pcallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn QueueSetValuesByObjectList(&self, pobjectvalues: P0, pcallback: P1) -> windows_core::Result where @@ -1646,10 +1646,10 @@ impl IPortableDevicePropertiesBulk { (windows_core::Interface::vtable(self).QueueSetValuesByObjectList)(windows_core::Interface::as_raw(self), pobjectvalues.param().abi(), pcallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Start(&self, pcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), pcontext).ok() } pub unsafe fn Cancel(&self, pcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), pcontext).ok() } } #[repr(C)] @@ -1726,16 +1726,16 @@ windows_core::imp::define_interface!(IPortableDevicePropertiesBulkCallback, IPor windows_core::imp::interface_hierarchy!(IPortableDevicePropertiesBulkCallback, windows_core::IUnknown); impl IPortableDevicePropertiesBulkCallback { pub unsafe fn OnStart(&self, pcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).OnStart)(windows_core::Interface::as_raw(self), pcontext).ok() } pub unsafe fn OnProgress(&self, pcontext: *const windows_core::GUID, presults: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(pcontext), presults.param().abi()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), pcontext, presults.param().abi()).ok() } pub unsafe fn OnEnd(&self, pcontext: *const windows_core::GUID, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pcontext), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnEnd)(windows_core::Interface::as_raw(self), pcontext, hrstatus).ok() } } #[repr(C)] @@ -1791,14 +1791,14 @@ impl IPortableDeviceResources { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceAttributes)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResourceAttributes)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStream(&self, pszobjectid: P0, key: *const super::super::Foundation::PROPERTYKEY, dwmode: u32, pdwoptimalbuffersize: *mut u32, ppstream: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), core::mem::transmute(key), core::mem::transmute(dwmode), core::mem::transmute(pdwoptimalbuffersize), core::mem::transmute(ppstream)).ok() + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), key, dwmode, core::mem::transmute(pdwoptimalbuffersize), core::mem::transmute(ppstream)).ok() } pub unsafe fn Delete(&self, pszobjectid: P0, pkeys: P1) -> windows_core::Result<()> where @@ -1940,7 +1940,7 @@ impl IPortableDeviceService { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pcallback.param().abi(), pparameters.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), dwflags, pcallback.param().abi(), pparameters.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, pszcookie: P0) -> windows_core::Result<()> where @@ -1953,7 +1953,7 @@ impl IPortableDeviceService { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), dwflags, pparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2147,15 +2147,15 @@ impl IPortableDeviceServiceCapabilities { } pub unsafe fn GetSupportedMethodsByFormat(&self, format: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedMethodsByFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedMethodsByFormat)(windows_core::Interface::as_raw(self), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMethodAttributes(&self, method: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMethodAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(method), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMethodAttributes)(windows_core::Interface::as_raw(self), method, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMethodParameterAttributes(&self, method: *const windows_core::GUID, parameter: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMethodParameterAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(method), core::mem::transmute(parameter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMethodParameterAttributes)(windows_core::Interface::as_raw(self), method, parameter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedFormats(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2163,15 +2163,15 @@ impl IPortableDeviceServiceCapabilities { } pub unsafe fn GetFormatAttributes(&self, format: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormatAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormatAttributes)(windows_core::Interface::as_raw(self), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedFormatProperties(&self, format: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedFormatProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedFormatProperties)(windows_core::Interface::as_raw(self), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFormatPropertyAttributes(&self, format: *const windows_core::GUID, property: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormatPropertyAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(property), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormatPropertyAttributes)(windows_core::Interface::as_raw(self), format, property, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedEvents(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2179,19 +2179,19 @@ impl IPortableDeviceServiceCapabilities { } pub unsafe fn GetEventAttributes(&self, event: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(event), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEventAttributes)(windows_core::Interface::as_raw(self), event, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEventParameterAttributes(&self, event: *const windows_core::GUID, parameter: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventParameterAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(event), core::mem::transmute(parameter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEventParameterAttributes)(windows_core::Interface::as_raw(self), event, parameter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInheritedServices(&self, dwinheritancetype: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInheritedServices)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinheritancetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInheritedServices)(windows_core::Interface::as_raw(self), dwinheritancetype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFormatRenderingProfiles(&self, format: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormatRenderingProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormatRenderingProfiles)(windows_core::Interface::as_raw(self), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSupportedCommands(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2199,7 +2199,7 @@ impl IPortableDeviceServiceCapabilities { } pub unsafe fn GetCommandOptions(&self, command: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCommandOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(command), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCommandOptions)(windows_core::Interface::as_raw(self), command, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -2431,7 +2431,7 @@ impl IPortableDeviceServiceManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceServices)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), core::mem::transmute(guidservicecategory), core::mem::transmute(pservices), core::mem::transmute(pcservices)).ok() + (windows_core::Interface::vtable(self).GetDeviceServices)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), guidservicecategory, core::mem::transmute(pservices), core::mem::transmute(pcservices)).ok() } pub unsafe fn GetDeviceForService(&self, pszpnpserviceid: P0) -> windows_core::Result where @@ -2485,7 +2485,7 @@ impl IPortableDeviceServiceMethodCallback { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus), presults.param().abi()).ok() + (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), hrstatus, presults.param().abi()).ok() } } #[repr(C)] @@ -2516,14 +2516,14 @@ impl IPortableDeviceServiceMethods { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(method), pparameters.param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), method, pparameters.param().abi(), core::mem::transmute(ppresults)).ok() } pub unsafe fn InvokeAsync(&self, method: *const windows_core::GUID, pparameters: P1, pcallback: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(method), pparameters.param().abi(), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeAsync)(windows_core::Interface::as_raw(self), method, pparameters.param().abi(), pcallback.param().abi()).ok() } pub unsafe fn Cancel(&self, pcallback: P0) -> windows_core::Result<()> where @@ -2574,7 +2574,7 @@ windows_core::imp::define_interface!(IPortableDeviceServiceOpenCallback, IPortab windows_core::imp::interface_hierarchy!(IPortableDeviceServiceOpenCallback, windows_core::IUnknown); impl IPortableDeviceServiceOpenCallback { pub unsafe fn OnComplete(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), hrstatus).ok() } } #[repr(C)] @@ -2602,7 +2602,7 @@ windows_core::imp::define_interface!(IPortableDeviceUnitsStream, IPortableDevice windows_core::imp::interface_hierarchy!(IPortableDeviceUnitsStream, windows_core::IUnknown); impl IPortableDeviceUnitsStream { pub unsafe fn SeekInUnits(&self, dlibmove: i64, units: WPD_STREAM_UNITS, dworigin: u32, plibnewposition: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeekInUnits)(windows_core::Interface::as_raw(self), core::mem::transmute(dlibmove), core::mem::transmute(units), core::mem::transmute(dworigin), core::mem::transmute(plibnewposition.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SeekInUnits)(windows_core::Interface::as_raw(self), dlibmove, units, dworigin, core::mem::transmute(plibnewposition.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -2639,151 +2639,151 @@ windows_core::imp::define_interface!(IPortableDeviceValues, IPortableDeviceValue windows_core::imp::interface_hierarchy!(IPortableDeviceValues, windows_core::IUnknown); impl IPortableDeviceValues { pub unsafe fn GetCount(&self, pcelt: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelt)).ok() + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pcelt).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetAt(&self, index: u32, pkey: *mut super::super::Foundation::PROPERTYKEY, pvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pkey), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pkey), core::mem::transmute(pvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), key, core::mem::transmute(pvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetStringValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), value.param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), key, value.param().abi()).ok() } pub unsafe fn GetStringValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetUnsignedIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnsignedIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetUnsignedIntegerValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetUnsignedIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUnsignedIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUnsignedIntegerValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetSignedIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignedIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSignedIntegerValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetSignedIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSignedIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSignedIntegerValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetUnsignedLargeIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnsignedLargeIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetUnsignedLargeIntegerValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetUnsignedLargeIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUnsignedLargeIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUnsignedLargeIntegerValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetSignedLargeIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignedLargeIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSignedLargeIntegerValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetSignedLargeIntegerValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSignedLargeIntegerValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSignedLargeIntegerValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetFloatValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFloatValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetFloatValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetFloatValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFloatValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFloatValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetErrorValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetErrorValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetErrorValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetErrorValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetKeyValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetKeyValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetKeyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetKeyValue)(windows_core::Interface::as_raw(self), key, core::mem::transmute(pvalue)).ok() } pub unsafe fn SetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoolValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), value.into()).ok() + (windows_core::Interface::vtable(self).SetBoolValue)(windows_core::Interface::as_raw(self), key, value.into()).ok() } pub unsafe fn GetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBoolValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBoolValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetIUnknownValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIUnknownValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), pvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIUnknownValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } pub unsafe fn GetIUnknownValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIUnknownValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIUnknownValue)(windows_core::Interface::as_raw(self), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetGuidValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGuidValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetGuidValue)(windows_core::Interface::as_raw(self), key, value).ok() } pub unsafe fn GetGuidValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGuidValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGuidValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn SetBufferValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetBufferValue)(windows_core::Interface::as_raw(self), key, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn GetBufferValue(&self, key: *const super::super::Foundation::PROPERTYKEY, ppvalue: *mut *mut u8, pcbvalue: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBufferValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(ppvalue), core::mem::transmute(pcbvalue)).ok() + (windows_core::Interface::vtable(self).GetBufferValue)(windows_core::Interface::as_raw(self), key, core::mem::transmute(ppvalue), core::mem::transmute(pcbvalue)).ok() } pub unsafe fn SetIPortableDeviceValuesValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDeviceValuesValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), pvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDeviceValuesValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } pub unsafe fn GetIPortableDeviceValuesValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIPortableDeviceValuesValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIPortableDeviceValuesValue)(windows_core::Interface::as_raw(self), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetIPortableDevicePropVariantCollectionValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDevicePropVariantCollectionValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), pvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDevicePropVariantCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } pub unsafe fn GetIPortableDevicePropVariantCollectionValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIPortableDevicePropVariantCollectionValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIPortableDevicePropVariantCollectionValue)(windows_core::Interface::as_raw(self), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetIPortableDeviceKeyCollectionValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDeviceKeyCollectionValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), pvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDeviceKeyCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } pub unsafe fn GetIPortableDeviceKeyCollectionValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIPortableDeviceKeyCollectionValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIPortableDeviceKeyCollectionValue)(windows_core::Interface::as_raw(self), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetIPortableDeviceValuesCollectionValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDeviceValuesCollectionValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), pvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDeviceValuesCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } pub unsafe fn GetIPortableDeviceValuesCollectionValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIPortableDeviceValuesCollectionValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIPortableDeviceValuesCollectionValue)(windows_core::Interface::as_raw(self), key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).RemoveValue)(windows_core::Interface::as_raw(self), key).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CopyValuesFromPropertyStore(&self, pstore: P0) -> windows_core::Result<()> @@ -3212,11 +3212,11 @@ windows_core::imp::define_interface!(IPortableDeviceValuesCollection, IPortableD windows_core::imp::interface_hierarchy!(IPortableDeviceValuesCollection, windows_core::IUnknown); impl IPortableDeviceValuesCollection { pub unsafe fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelems)).ok() + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pcelems).ok() } pub unsafe fn GetAt(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Add(&self, pvalues: P0) -> windows_core::Result<()> where @@ -3228,7 +3228,7 @@ impl IPortableDeviceValuesCollection { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemoveAt(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), dwindex).ok() } } #[repr(C)] @@ -3368,14 +3368,14 @@ impl IRadioInstance { } pub unsafe fn GetFriendlyName(&self, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFriendlyName)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFriendlyName)(windows_core::Interface::as_raw(self), lcid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetRadioState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadioState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadioState(&self, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadioState)(windows_core::Interface::as_raw(self), core::mem::transmute(radiostate), core::mem::transmute(utimeoutsec)).ok() + (windows_core::Interface::vtable(self).SetRadioState)(windows_core::Interface::as_raw(self), radiostate, utimeoutsec).ok() } pub unsafe fn IsMultiComm(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsMultiComm)(windows_core::Interface::as_raw(self)) @@ -3483,7 +3483,7 @@ impl IRadioInstanceCollection { } pub unsafe fn GetAt(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), uindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs index 782ab23f60..a824ebba40 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -19,7 +19,7 @@ pub unsafe fn CollectionsListDeserializeFromBuffer(sourcebuffer: &[u8], targetco #[inline] pub unsafe fn CollectionsListGetFillableCount(buffersizebytes: u32) -> u32 { windows_targets::link!("sensorsutilsv2.dll" "system" fn CollectionsListGetFillableCount(buffersizebytes : u32) -> u32); - CollectionsListGetFillableCount(core::mem::transmute(buffersizebytes)) + CollectionsListGetFillableCount(buffersizebytes) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -86,7 +86,7 @@ pub unsafe fn InitPropVariantFromCLSIDArray(members: &[windows_core::GUID]) -> w pub unsafe fn InitPropVariantFromFloat(fltval: f32) -> windows_core::Result { windows_targets::link!("sensorsutilsv2.dll" "system" fn InitPropVariantFromFloat(fltval : f32, ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromFloat(core::mem::transmute(fltval), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromFloat(fltval, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -97,18 +97,18 @@ pub unsafe fn IsCollectionListSame(lista: *const SENSOR_COLLECTION_LIST, listb: #[inline] pub unsafe fn IsGUIDPresentInList(guidarray: &[windows_core::GUID], guidelem: *const windows_core::GUID) -> bool { windows_targets::link!("sensorsutilsv2.dll" "system" fn IsGUIDPresentInList(guidarray : *const windows_core::GUID, arraylength : u32, guidelem : *const windows_core::GUID) -> bool); - IsGUIDPresentInList(core::mem::transmute(guidarray.as_ptr()), guidarray.len().try_into().unwrap(), core::mem::transmute(guidelem)) + IsGUIDPresentInList(core::mem::transmute(guidarray.as_ptr()), guidarray.len().try_into().unwrap(), guidelem) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn IsKeyPresentInCollectionList(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY) -> bool { windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInCollectionList(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool); - IsKeyPresentInCollectionList(core::mem::transmute(plist), core::mem::transmute(pkey)) + IsKeyPresentInCollectionList(core::mem::transmute(plist), pkey) } #[inline] pub unsafe fn IsKeyPresentInPropertyList(plist: *const SENSOR_PROPERTY_LIST, pkey: *const super::super::Foundation::PROPERTYKEY) -> bool { windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInPropertyList(plist : *const SENSOR_PROPERTY_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool); - IsKeyPresentInPropertyList(core::mem::transmute(plist), core::mem::transmute(pkey)) + IsKeyPresentInPropertyList(plist, pkey) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -120,85 +120,85 @@ pub unsafe fn IsSensorSubscribed(subscriptionlist: *const SENSOR_COLLECTION_LIST #[inline] pub unsafe fn PropKeyFindKeyGetBool(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetBool(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetBool(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetBool(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetDouble(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut f64) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetDouble(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut f64) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetDouble(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetDouble(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetFileTime(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetFileTime(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetFileTime(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetFileTime(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetFloat(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut f32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetFloat(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut f32) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetFloat(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetFloat(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetGuid(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut windows_core::GUID) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetGuid(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut windows_core::GUID) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetGuid(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetGuid(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetInt32(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut i32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetInt32(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut i32) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetInt32(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetInt32(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetInt64(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut i64) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetInt64(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut i64) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetInt64(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetInt64(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetNthInt64(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, occurrence: u32, pretvalue: *mut i64) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthInt64(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut i64) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetNthInt64(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(occurrence), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetNthInt64(core::mem::transmute(plist), pkey, occurrence, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetNthUlong(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, occurrence: u32, pretvalue: *mut u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthUlong(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut u32) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetNthUlong(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(occurrence), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetNthUlong(core::mem::transmute(plist), pkey, occurrence, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetNthUshort(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, occurrence: u32, pretvalue: *mut u16) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthUshort(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut u16) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetNthUshort(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(occurrence), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetNthUshort(core::mem::transmute(plist), pkey, occurrence, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetPropVariant(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, typecheck: bool, pvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetPropVariant(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(typecheck), core::mem::transmute(pvalue)) + PropKeyFindKeyGetPropVariant(core::mem::transmute(plist), pkey, typecheck, core::mem::transmute(pvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetUlong(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetUlong(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut u32) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetUlong(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetUlong(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetUshort(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut u16) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetUshort(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut u16) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetUshort(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(pretvalue)) + PropKeyFindKeyGetUshort(core::mem::transmute(plist), pkey, core::mem::transmute(pretvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeySetPropVariant(plist: *mut SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, typecheck: bool, pvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeySetPropVariant(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(typecheck), core::mem::transmute(pvalue)) + PropKeyFindKeySetPropVariant(core::mem::transmute(plist), pkey, typecheck, core::mem::transmute(pvalue)) } #[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -209,23 +209,23 @@ pub unsafe fn PropVariantGetInformation(propvariantvalue: *const super::super::S #[inline] pub unsafe fn PropertiesListCopy(target: *mut SENSOR_PROPERTY_LIST, source: *const SENSOR_PROPERTY_LIST) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropertiesListCopy(target : *mut SENSOR_PROPERTY_LIST, source : *const SENSOR_PROPERTY_LIST) -> super::super::Foundation:: NTSTATUS); - PropertiesListCopy(core::mem::transmute(target), core::mem::transmute(source)) + PropertiesListCopy(core::mem::transmute(target), source) } #[inline] pub unsafe fn PropertiesListGetFillableCount(buffersizebytes: u32) -> u32 { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropertiesListGetFillableCount(buffersizebytes : u32) -> u32); - PropertiesListGetFillableCount(core::mem::transmute(buffersizebytes)) + PropertiesListGetFillableCount(buffersizebytes) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SensorCollectionGetAt(index: u32, psensorslist: *const SENSOR_COLLECTION_LIST, pkey: Option<*mut super::super::Foundation::PROPERTYKEY>, pvalue: Option<*mut super::super::System::Com::StructuredStorage::PROPVARIANT>) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn SensorCollectionGetAt(index : u32, psensorslist : *const SENSOR_COLLECTION_LIST, pkey : *mut super::super::Foundation:: PROPERTYKEY, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); - SensorCollectionGetAt(core::mem::transmute(index), core::mem::transmute(psensorslist), core::mem::transmute(pkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))) + SensorCollectionGetAt(index, core::mem::transmute(psensorslist), core::mem::transmute(pkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SerializationBufferAllocate(sizeinbytes: u32, pbuffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS { windows_targets::link!("sensorsutilsv2.dll" "system" fn SerializationBufferAllocate(sizeinbytes : u32, pbuffer : *mut *mut u8) -> super::super::Foundation:: NTSTATUS); - SerializationBufferAllocate(core::mem::transmute(sizeinbytes), core::mem::transmute(pbuffer)) + SerializationBufferAllocate(sizeinbytes, core::mem::transmute(pbuffer)) } #[inline] pub unsafe fn SerializationBufferFree(buffer: Option<*const u8>) { @@ -319,7 +319,7 @@ impl ILocationPermissions { (windows_core::Interface::vtable(self).GetGlobalLocationPermission)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CheckLocationCapability(&self, dwclientthreadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckLocationCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclientthreadid)).ok() + (windows_core::Interface::vtable(self).CheckLocationCapability)(windows_core::Interface::as_raw(self), dwclientthreadid).ok() } } #[repr(C)] @@ -381,7 +381,7 @@ impl ISensor { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn GetProperties(&self, pkeys: P0) -> windows_core::Result @@ -406,7 +406,7 @@ impl ISensor { } pub unsafe fn SupportsDataField(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SupportsDataField)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SupportsDataField)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -418,7 +418,7 @@ impl ISensor { } pub unsafe fn SupportsEvent(&self, eventguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SupportsEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SupportsEvent)(windows_core::Interface::as_raw(self), eventguid, &mut result__).map(|| result__) } pub unsafe fn GetEventInterest(&self, ppvalues: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(ppvalues), core::mem::transmute(pcount)).ok() @@ -647,7 +647,7 @@ windows_core::imp::interface_hierarchy!(ISensorCollection, windows_core::IUnknow impl ISensorCollection { pub unsafe fn GetAt(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), ulindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -666,7 +666,7 @@ impl ISensorCollection { (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), psensor.param().abi()).ok() } pub unsafe fn RemoveByID(&self, sensorid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveByID)(windows_core::Interface::as_raw(self), core::mem::transmute(sensorid)).ok() + (windows_core::Interface::vtable(self).RemoveByID)(windows_core::Interface::as_raw(self), sensorid).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -753,7 +753,7 @@ impl ISensorDataReport { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetSensorValue(&self, pkey: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSensorValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSensorValue)(windows_core::Interface::as_raw(self), pkey, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn GetSensorValues(&self, pkeys: P0) -> windows_core::Result @@ -836,7 +836,7 @@ impl ISensorEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), psensor.param().abi(), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), psensor.param().abi(), state).ok() } pub unsafe fn OnDataUpdated(&self, psensor: P0, pnewdata: P1) -> windows_core::Result<()> where @@ -851,10 +851,10 @@ impl ISensorEvents { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), psensor.param().abi(), core::mem::transmute(eventid), peventdata.param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), psensor.param().abi(), eventid, peventdata.param().abi()).ok() } pub unsafe fn OnLeave(&self, id: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLeave)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).OnLeave)(windows_core::Interface::as_raw(self), id).ok() } } #[repr(C)] @@ -913,15 +913,15 @@ windows_core::imp::interface_hierarchy!(ISensorManager, windows_core::IUnknown); impl ISensorManager { pub unsafe fn GetSensorsByCategory(&self, sensorcategory: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSensorsByCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(sensorcategory), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSensorsByCategory)(windows_core::Interface::as_raw(self), sensorcategory, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSensorsByType(&self, sensortype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSensorsByType)(windows_core::Interface::as_raw(self), core::mem::transmute(sensortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSensorsByType)(windows_core::Interface::as_raw(self), sensortype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSensorByID(&self, sensorid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSensorByID)(windows_core::Interface::as_raw(self), core::mem::transmute(sensorid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSensorByID)(windows_core::Interface::as_raw(self), sensorid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetEventSink(&self, pevents: P0) -> windows_core::Result<()> where @@ -933,7 +933,7 @@ impl ISensorManager { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), core::mem::transmute(hparent), psensors.param().abi(), fmodal.into()).ok() + (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), hparent, psensors.param().abi(), fmodal.into()).ok() } } #[repr(C)] @@ -1013,7 +1013,7 @@ impl ISensorManagerEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSensorEnter)(windows_core::Interface::as_raw(self), psensor.param().abi(), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).OnSensorEnter)(windows_core::Interface::as_raw(self), psensor.param().abi(), state).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs index dc92ae0e43..1e198dbe89 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn ComDBClaimNextFreePort(hcomdb: HCOMDB, comnumber: *mut u32) -> i32 { windows_targets::link!("msports.dll" "system" fn ComDBClaimNextFreePort(hcomdb : HCOMDB, comnumber : *mut u32) -> i32); - ComDBClaimNextFreePort(core::mem::transmute(hcomdb), core::mem::transmute(comnumber)) + ComDBClaimNextFreePort(hcomdb, core::mem::transmute(comnumber)) } #[inline] pub unsafe fn ComDBClaimPort(hcomdb: HCOMDB, comnumber: u32, forceclaim: bool, forced: Option<*mut super::super::Foundation::BOOL>) -> i32 { windows_targets::link!("msports.dll" "system" fn ComDBClaimPort(hcomdb : HCOMDB, comnumber : u32, forceclaim : super::super::Foundation:: BOOL, forced : *mut super::super::Foundation:: BOOL) -> i32); - ComDBClaimPort(core::mem::transmute(hcomdb), core::mem::transmute(comnumber), forceclaim.into(), core::mem::transmute(forced.unwrap_or(core::mem::zeroed()))) + ComDBClaimPort(hcomdb, comnumber, forceclaim.into(), core::mem::transmute(forced.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ComDBClose(hcomdb: HCOMDB) -> i32 { windows_targets::link!("msports.dll" "system" fn ComDBClose(hcomdb : HCOMDB) -> i32); - ComDBClose(core::mem::transmute(hcomdb)) + ComDBClose(hcomdb) } #[inline] pub unsafe fn ComDBGetCurrentPortUsage(hcomdb: HCOMDB, buffer: Option<&mut [u8]>, reporttype: u32, maxportsreported: Option<*mut u32>) -> i32 { windows_targets::link!("msports.dll" "system" fn ComDBGetCurrentPortUsage(hcomdb : HCOMDB, buffer : *mut u8, buffersize : u32, reporttype : u32, maxportsreported : *mut u32) -> i32); - ComDBGetCurrentPortUsage(core::mem::transmute(hcomdb), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(reporttype), core::mem::transmute(maxportsreported.unwrap_or(core::mem::zeroed()))) + ComDBGetCurrentPortUsage(hcomdb, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), reporttype, core::mem::transmute(maxportsreported.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ComDBOpen(phcomdb: *mut HCOMDB) -> i32 { @@ -26,12 +26,12 @@ pub unsafe fn ComDBOpen(phcomdb: *mut HCOMDB) -> i32 { #[inline] pub unsafe fn ComDBReleasePort(hcomdb: HCOMDB, comnumber: u32) -> i32 { windows_targets::link!("msports.dll" "system" fn ComDBReleasePort(hcomdb : HCOMDB, comnumber : u32) -> i32); - ComDBReleasePort(core::mem::transmute(hcomdb), core::mem::transmute(comnumber)) + ComDBReleasePort(hcomdb, comnumber) } #[inline] pub unsafe fn ComDBResizeDatabase(hcomdb: HCOMDB, newsize: u32) -> i32 { windows_targets::link!("msports.dll" "system" fn ComDBResizeDatabase(hcomdb : HCOMDB, newsize : u32) -> i32); - ComDBResizeDatabase(core::mem::transmute(hcomdb), core::mem::transmute(newsize)) + ComDBResizeDatabase(hcomdb, newsize) } pub const CDB_REPORT_BITS: u32 = 0u32; pub const CDB_REPORT_BYTES: u32 = 1u32; diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs index f607bfd878..f0cf7f3fb4 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs @@ -15,7 +15,7 @@ where P4: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn OpenTnefStream(lpvsupport : *mut core::ffi::c_void, lpstream : * mut core::ffi::c_void, lpszstreamname : *const i8, ulflags : u32, lpmessage : * mut core::ffi::c_void, wkeyval : u16, lpptnef : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - OpenTnefStream(core::mem::transmute(lpvsupport), lpstream.param().abi(), core::mem::transmute(lpszstreamname), core::mem::transmute(ulflags), lpmessage.param().abi(), core::mem::transmute(wkeyval), core::mem::transmute(lpptnef)).ok() + OpenTnefStream(core::mem::transmute(lpvsupport), lpstream.param().abi(), lpszstreamname, ulflags, lpmessage.param().abi(), wkeyval, core::mem::transmute(lpptnef)).ok() } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] #[inline] @@ -26,7 +26,7 @@ where P6: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn OpenTnefStreamEx(lpvsupport : *mut core::ffi::c_void, lpstream : * mut core::ffi::c_void, lpszstreamname : *const i8, ulflags : u32, lpmessage : * mut core::ffi::c_void, wkeyval : u16, lpadressbook : * mut core::ffi::c_void, lpptnef : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - OpenTnefStreamEx(core::mem::transmute(lpvsupport), lpstream.param().abi(), core::mem::transmute(lpszstreamname), core::mem::transmute(ulflags), lpmessage.param().abi(), core::mem::transmute(wkeyval), lpadressbook.param().abi(), core::mem::transmute(lpptnef)).ok() + OpenTnefStreamEx(core::mem::transmute(lpvsupport), lpstream.param().abi(), lpszstreamname, ulflags, lpmessage.param().abi(), wkeyval, lpadressbook.param().abi(), core::mem::transmute(lpptnef)).ok() } #[inline] pub unsafe fn lineAccept(hcall: u32, lpsuseruserinfo: P1, dwsize: u32) -> i32 @@ -34,7 +34,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAccept(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineAccept(core::mem::transmute(hcall), lpsuseruserinfo.param().abi(), core::mem::transmute(dwsize)) + lineAccept(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineAddProvider(lpszproviderfilename: P0, hwndowner: super::super::Foundation::HWND, lpdwpermanentproviderid: *mut u32) -> i32 @@ -42,7 +42,7 @@ where P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAddProvider(lpszproviderfilename : windows_core::PCSTR, hwndowner : super::super::Foundation:: HWND, lpdwpermanentproviderid : *mut u32) -> i32); - lineAddProvider(lpszproviderfilename.param().abi(), core::mem::transmute(hwndowner), core::mem::transmute(lpdwpermanentproviderid)) + lineAddProvider(lpszproviderfilename.param().abi(), hwndowner, core::mem::transmute(lpdwpermanentproviderid)) } #[inline] pub unsafe fn lineAddProviderA(lpszproviderfilename: P0, hwndowner: super::super::Foundation::HWND, lpdwpermanentproviderid: *mut u32) -> i32 @@ -50,7 +50,7 @@ where P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAddProviderA(lpszproviderfilename : windows_core::PCSTR, hwndowner : super::super::Foundation:: HWND, lpdwpermanentproviderid : *mut u32) -> i32); - lineAddProviderA(lpszproviderfilename.param().abi(), core::mem::transmute(hwndowner), core::mem::transmute(lpdwpermanentproviderid)) + lineAddProviderA(lpszproviderfilename.param().abi(), hwndowner, core::mem::transmute(lpdwpermanentproviderid)) } #[inline] pub unsafe fn lineAddProviderW(lpszproviderfilename: P0, hwndowner: super::super::Foundation::HWND, lpdwpermanentproviderid: *mut u32) -> i32 @@ -58,17 +58,17 @@ where P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAddProviderW(lpszproviderfilename : windows_core::PCWSTR, hwndowner : super::super::Foundation:: HWND, lpdwpermanentproviderid : *mut u32) -> i32); - lineAddProviderW(lpszproviderfilename.param().abi(), core::mem::transmute(hwndowner), core::mem::transmute(lpdwpermanentproviderid)) + lineAddProviderW(lpszproviderfilename.param().abi(), hwndowner, core::mem::transmute(lpdwpermanentproviderid)) } #[inline] pub unsafe fn lineAddToConference(hconfcall: u32, hconsultcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineAddToConference(hconfcall : u32, hconsultcall : u32) -> i32); - lineAddToConference(core::mem::transmute(hconfcall), core::mem::transmute(hconsultcall)) + lineAddToConference(hconfcall, hconsultcall) } #[inline] pub unsafe fn lineAgentSpecific(hline: u32, dwaddressid: u32, dwagentextensionidindex: u32, lpparams: *mut core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineAgentSpecific(hline : u32, dwaddressid : u32, dwagentextensionidindex : u32, lpparams : *mut core::ffi::c_void, dwsize : u32) -> i32); - lineAgentSpecific(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(dwagentextensionidindex), core::mem::transmute(lpparams), core::mem::transmute(dwsize)) + lineAgentSpecific(hline, dwaddressid, dwagentextensionidindex, core::mem::transmute(lpparams), dwsize) } #[inline] pub unsafe fn lineAnswer(hcall: u32, lpsuseruserinfo: P1, dwsize: u32) -> i32 @@ -76,7 +76,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAnswer(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineAnswer(core::mem::transmute(hcall), lpsuseruserinfo.param().abi(), core::mem::transmute(dwsize)) + lineAnswer(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineBlindTransfer(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -84,7 +84,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineBlindTransfer(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineBlindTransfer(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineBlindTransfer(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineBlindTransferA(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -92,7 +92,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineBlindTransferA(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineBlindTransferA(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineBlindTransferA(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineBlindTransferW(hcall: u32, lpszdestaddressw: P1, dwcountrycode: u32) -> i32 @@ -100,22 +100,22 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineBlindTransferW(hcall : u32, lpszdestaddressw : windows_core::PCWSTR, dwcountrycode : u32) -> i32); - lineBlindTransferW(core::mem::transmute(hcall), lpszdestaddressw.param().abi(), core::mem::transmute(dwcountrycode)) + lineBlindTransferW(hcall, lpszdestaddressw.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineClose(hline: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineClose(hline : u32) -> i32); - lineClose(core::mem::transmute(hline)) + lineClose(hline) } #[inline] pub unsafe fn lineCompleteCall(hcall: u32, lpdwcompletionid: *mut u32, dwcompletionmode: u32, dwmessageid: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineCompleteCall(hcall : u32, lpdwcompletionid : *mut u32, dwcompletionmode : u32, dwmessageid : u32) -> i32); - lineCompleteCall(core::mem::transmute(hcall), core::mem::transmute(lpdwcompletionid), core::mem::transmute(dwcompletionmode), core::mem::transmute(dwmessageid)) + lineCompleteCall(hcall, core::mem::transmute(lpdwcompletionid), dwcompletionmode, dwmessageid) } #[inline] pub unsafe fn lineCompleteTransfer(hcall: u32, hconsultcall: u32, lphconfcall: *mut u32, dwtransfermode: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineCompleteTransfer(hcall : u32, hconsultcall : u32, lphconfcall : *mut u32, dwtransfermode : u32) -> i32); - lineCompleteTransfer(core::mem::transmute(hcall), core::mem::transmute(hconsultcall), core::mem::transmute(lphconfcall), core::mem::transmute(dwtransfermode)) + lineCompleteTransfer(hcall, hconsultcall, core::mem::transmute(lphconfcall), dwtransfermode) } #[inline] pub unsafe fn lineConfigDialog(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2) -> i32 @@ -123,7 +123,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialog(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineConfigDialog(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi()) + lineConfigDialog(dwdeviceid, hwndowner, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineConfigDialogA(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2) -> i32 @@ -131,7 +131,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogA(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineConfigDialogA(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi()) + lineConfigDialogA(dwdeviceid, hwndowner, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineConfigDialogEdit(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2, lpdeviceconfigin: *const core::ffi::c_void, dwsize: u32, lpdeviceconfigout: *mut VARSTRING) -> i32 @@ -139,7 +139,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogEdit(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR, lpdeviceconfigin : *const core::ffi::c_void, dwsize : u32, lpdeviceconfigout : *mut VARSTRING) -> i32); - lineConfigDialogEdit(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi(), core::mem::transmute(lpdeviceconfigin), core::mem::transmute(dwsize), core::mem::transmute(lpdeviceconfigout)) + lineConfigDialogEdit(dwdeviceid, hwndowner, lpszdeviceclass.param().abi(), lpdeviceconfigin, dwsize, core::mem::transmute(lpdeviceconfigout)) } #[inline] pub unsafe fn lineConfigDialogEditA(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2, lpdeviceconfigin: *const core::ffi::c_void, dwsize: u32, lpdeviceconfigout: *mut VARSTRING) -> i32 @@ -147,7 +147,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogEditA(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR, lpdeviceconfigin : *const core::ffi::c_void, dwsize : u32, lpdeviceconfigout : *mut VARSTRING) -> i32); - lineConfigDialogEditA(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi(), core::mem::transmute(lpdeviceconfigin), core::mem::transmute(dwsize), core::mem::transmute(lpdeviceconfigout)) + lineConfigDialogEditA(dwdeviceid, hwndowner, lpszdeviceclass.param().abi(), lpdeviceconfigin, dwsize, core::mem::transmute(lpdeviceconfigout)) } #[inline] pub unsafe fn lineConfigDialogEditW(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2, lpdeviceconfigin: *const core::ffi::c_void, dwsize: u32, lpdeviceconfigout: *mut VARSTRING) -> i32 @@ -155,7 +155,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogEditW(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCWSTR, lpdeviceconfigin : *const core::ffi::c_void, dwsize : u32, lpdeviceconfigout : *mut VARSTRING) -> i32); - lineConfigDialogEditW(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi(), core::mem::transmute(lpdeviceconfigin), core::mem::transmute(dwsize), core::mem::transmute(lpdeviceconfigout)) + lineConfigDialogEditW(dwdeviceid, hwndowner, lpszdeviceclass.param().abi(), lpdeviceconfigin, dwsize, core::mem::transmute(lpdeviceconfigout)) } #[inline] pub unsafe fn lineConfigDialogW(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2) -> i32 @@ -163,12 +163,12 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogW(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCWSTR) -> i32); - lineConfigDialogW(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi()) + lineConfigDialogW(dwdeviceid, hwndowner, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineConfigProvider(hwndowner: super::super::Foundation::HWND, dwpermanentproviderid: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineConfigProvider(hwndowner : super::super::Foundation:: HWND, dwpermanentproviderid : u32) -> i32); - lineConfigProvider(core::mem::transmute(hwndowner), core::mem::transmute(dwpermanentproviderid)) + lineConfigProvider(hwndowner, dwpermanentproviderid) } #[inline] pub unsafe fn lineCreateAgentA(hline: u32, lpszagentid: P1, lpszagentpin: P2, lphagent: *mut u32) -> i32 @@ -177,7 +177,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineCreateAgentA(hline : u32, lpszagentid : windows_core::PCSTR, lpszagentpin : windows_core::PCSTR, lphagent : *mut u32) -> i32); - lineCreateAgentA(core::mem::transmute(hline), lpszagentid.param().abi(), lpszagentpin.param().abi(), core::mem::transmute(lphagent)) + lineCreateAgentA(hline, lpszagentid.param().abi(), lpszagentpin.param().abi(), core::mem::transmute(lphagent)) } #[inline] pub unsafe fn lineCreateAgentSessionA(hline: u32, hagent: u32, lpszagentpin: P2, dwworkingaddressid: u32, lpgroupid: *mut windows_core::GUID, lphagentsession: *mut u32) -> i32 @@ -185,7 +185,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineCreateAgentSessionA(hline : u32, hagent : u32, lpszagentpin : windows_core::PCSTR, dwworkingaddressid : u32, lpgroupid : *mut windows_core::GUID, lphagentsession : *mut u32) -> i32); - lineCreateAgentSessionA(core::mem::transmute(hline), core::mem::transmute(hagent), lpszagentpin.param().abi(), core::mem::transmute(dwworkingaddressid), core::mem::transmute(lpgroupid), core::mem::transmute(lphagentsession)) + lineCreateAgentSessionA(hline, hagent, lpszagentpin.param().abi(), dwworkingaddressid, core::mem::transmute(lpgroupid), core::mem::transmute(lphagentsession)) } #[inline] pub unsafe fn lineCreateAgentSessionW(hline: u32, hagent: u32, lpszagentpin: P2, dwworkingaddressid: u32, lpgroupid: *mut windows_core::GUID, lphagentsession: *mut u32) -> i32 @@ -193,7 +193,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineCreateAgentSessionW(hline : u32, hagent : u32, lpszagentpin : windows_core::PCWSTR, dwworkingaddressid : u32, lpgroupid : *mut windows_core::GUID, lphagentsession : *mut u32) -> i32); - lineCreateAgentSessionW(core::mem::transmute(hline), core::mem::transmute(hagent), lpszagentpin.param().abi(), core::mem::transmute(dwworkingaddressid), core::mem::transmute(lpgroupid), core::mem::transmute(lphagentsession)) + lineCreateAgentSessionW(hline, hagent, lpszagentpin.param().abi(), dwworkingaddressid, core::mem::transmute(lpgroupid), core::mem::transmute(lphagentsession)) } #[inline] pub unsafe fn lineCreateAgentW(hline: u32, lpszagentid: P1, lpszagentpin: P2, lphagent: *mut u32) -> i32 @@ -202,22 +202,22 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineCreateAgentW(hline : u32, lpszagentid : windows_core::PCWSTR, lpszagentpin : windows_core::PCWSTR, lphagent : *mut u32) -> i32); - lineCreateAgentW(core::mem::transmute(hline), lpszagentid.param().abi(), lpszagentpin.param().abi(), core::mem::transmute(lphagent)) + lineCreateAgentW(hline, lpszagentid.param().abi(), lpszagentpin.param().abi(), core::mem::transmute(lphagent)) } #[inline] pub unsafe fn lineDeallocateCall(hcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineDeallocateCall(hcall : u32) -> i32); - lineDeallocateCall(core::mem::transmute(hcall)) + lineDeallocateCall(hcall) } #[inline] pub unsafe fn lineDevSpecific(hline: u32, dwaddressid: u32, hcall: u32, lpparams: *mut core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineDevSpecific(hline : u32, dwaddressid : u32, hcall : u32, lpparams : *mut core::ffi::c_void, dwsize : u32) -> i32); - lineDevSpecific(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(hcall), core::mem::transmute(lpparams), core::mem::transmute(dwsize)) + lineDevSpecific(hline, dwaddressid, hcall, core::mem::transmute(lpparams), dwsize) } #[inline] pub unsafe fn lineDevSpecificFeature(hline: u32, dwfeature: u32, lpparams: *mut core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineDevSpecificFeature(hline : u32, dwfeature : u32, lpparams : *mut core::ffi::c_void, dwsize : u32) -> i32); - lineDevSpecificFeature(core::mem::transmute(hline), core::mem::transmute(dwfeature), core::mem::transmute(lpparams), core::mem::transmute(dwsize)) + lineDevSpecificFeature(hline, dwfeature, core::mem::transmute(lpparams), dwsize) } #[inline] pub unsafe fn lineDial(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -225,7 +225,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDial(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineDial(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineDial(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineDialA(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -233,7 +233,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDialA(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineDialA(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineDialA(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineDialW(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -241,7 +241,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDialW(hcall : u32, lpszdestaddress : windows_core::PCWSTR, dwcountrycode : u32) -> i32); - lineDialW(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineDialW(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineDrop(hcall: u32, lpsuseruserinfo: P1, dwsize: u32) -> i32 @@ -249,22 +249,22 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDrop(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineDrop(core::mem::transmute(hcall), lpsuseruserinfo.param().abi(), core::mem::transmute(dwsize)) + lineDrop(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineForward(hline: u32, balladdresses: u32, dwaddressid: u32, lpforwardlist: *const LINEFORWARDLIST, dwnumringsnoanswer: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineForward(hline : u32, balladdresses : u32, dwaddressid : u32, lpforwardlist : *const LINEFORWARDLIST, dwnumringsnoanswer : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineForward(core::mem::transmute(hline), core::mem::transmute(balladdresses), core::mem::transmute(dwaddressid), core::mem::transmute(lpforwardlist), core::mem::transmute(dwnumringsnoanswer), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + lineForward(hline, balladdresses, dwaddressid, lpforwardlist, dwnumringsnoanswer, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineForwardA(hline: u32, balladdresses: u32, dwaddressid: u32, lpforwardlist: *const LINEFORWARDLIST, dwnumringsnoanswer: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineForwardA(hline : u32, balladdresses : u32, dwaddressid : u32, lpforwardlist : *const LINEFORWARDLIST, dwnumringsnoanswer : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineForwardA(core::mem::transmute(hline), core::mem::transmute(balladdresses), core::mem::transmute(dwaddressid), core::mem::transmute(lpforwardlist), core::mem::transmute(dwnumringsnoanswer), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + lineForwardA(hline, balladdresses, dwaddressid, lpforwardlist, dwnumringsnoanswer, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineForwardW(hline: u32, balladdresses: u32, dwaddressid: u32, lpforwardlist: *const LINEFORWARDLIST, dwnumringsnoanswer: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineForwardW(hline : u32, balladdresses : u32, dwaddressid : u32, lpforwardlist : *const LINEFORWARDLIST, dwnumringsnoanswer : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineForwardW(core::mem::transmute(hline), core::mem::transmute(balladdresses), core::mem::transmute(dwaddressid), core::mem::transmute(lpforwardlist), core::mem::transmute(dwnumringsnoanswer), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + lineForwardW(hline, balladdresses, dwaddressid, lpforwardlist, dwnumringsnoanswer, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineGatherDigits(hcall: u32, dwdigitmodes: u32, lpsdigits: Option<&mut [u8]>, lpszterminationdigits: P4, dwfirstdigittimeout: u32, dwinterdigittimeout: u32) -> i32 @@ -272,7 +272,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGatherDigits(hcall : u32, dwdigitmodes : u32, lpsdigits : windows_core::PSTR, dwnumdigits : u32, lpszterminationdigits : windows_core::PCSTR, dwfirstdigittimeout : u32, dwinterdigittimeout : u32) -> i32); - lineGatherDigits(core::mem::transmute(hcall), core::mem::transmute(dwdigitmodes), core::mem::transmute(lpsdigits.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpsdigits.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszterminationdigits.param().abi(), core::mem::transmute(dwfirstdigittimeout), core::mem::transmute(dwinterdigittimeout)) + lineGatherDigits(hcall, dwdigitmodes, core::mem::transmute(lpsdigits.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpsdigits.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszterminationdigits.param().abi(), dwfirstdigittimeout, dwinterdigittimeout) } #[inline] pub unsafe fn lineGatherDigitsA(hcall: u32, dwdigitmodes: u32, lpsdigits: Option<&mut [u8]>, lpszterminationdigits: P4, dwfirstdigittimeout: u32, dwinterdigittimeout: u32) -> i32 @@ -280,7 +280,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGatherDigitsA(hcall : u32, dwdigitmodes : u32, lpsdigits : windows_core::PSTR, dwnumdigits : u32, lpszterminationdigits : windows_core::PCSTR, dwfirstdigittimeout : u32, dwinterdigittimeout : u32) -> i32); - lineGatherDigitsA(core::mem::transmute(hcall), core::mem::transmute(dwdigitmodes), core::mem::transmute(lpsdigits.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpsdigits.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszterminationdigits.param().abi(), core::mem::transmute(dwfirstdigittimeout), core::mem::transmute(dwinterdigittimeout)) + lineGatherDigitsA(hcall, dwdigitmodes, core::mem::transmute(lpsdigits.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpsdigits.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszterminationdigits.param().abi(), dwfirstdigittimeout, dwinterdigittimeout) } #[inline] pub unsafe fn lineGatherDigitsW(hcall: u32, dwdigitmodes: u32, lpsdigits: Option<&mut [u16]>, lpszterminationdigits: P4, dwfirstdigittimeout: u32, dwinterdigittimeout: u32) -> i32 @@ -288,7 +288,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGatherDigitsW(hcall : u32, dwdigitmodes : u32, lpsdigits : windows_core::PWSTR, dwnumdigits : u32, lpszterminationdigits : windows_core::PCWSTR, dwfirstdigittimeout : u32, dwinterdigittimeout : u32) -> i32); - lineGatherDigitsW(core::mem::transmute(hcall), core::mem::transmute(dwdigitmodes), core::mem::transmute(lpsdigits.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpsdigits.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszterminationdigits.param().abi(), core::mem::transmute(dwfirstdigittimeout), core::mem::transmute(dwinterdigittimeout)) + lineGatherDigitsW(hcall, dwdigitmodes, core::mem::transmute(lpsdigits.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpsdigits.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszterminationdigits.param().abi(), dwfirstdigittimeout, dwinterdigittimeout) } #[inline] pub unsafe fn lineGenerateDigits(hcall: u32, dwdigitmode: u32, lpszdigits: P2, dwduration: u32) -> i32 @@ -296,7 +296,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGenerateDigits(hcall : u32, dwdigitmode : u32, lpszdigits : windows_core::PCSTR, dwduration : u32) -> i32); - lineGenerateDigits(core::mem::transmute(hcall), core::mem::transmute(dwdigitmode), lpszdigits.param().abi(), core::mem::transmute(dwduration)) + lineGenerateDigits(hcall, dwdigitmode, lpszdigits.param().abi(), dwduration) } #[inline] pub unsafe fn lineGenerateDigitsA(hcall: u32, dwdigitmode: u32, lpszdigits: P2, dwduration: u32) -> i32 @@ -304,7 +304,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGenerateDigitsA(hcall : u32, dwdigitmode : u32, lpszdigits : windows_core::PCSTR, dwduration : u32) -> i32); - lineGenerateDigitsA(core::mem::transmute(hcall), core::mem::transmute(dwdigitmode), lpszdigits.param().abi(), core::mem::transmute(dwduration)) + lineGenerateDigitsA(hcall, dwdigitmode, lpszdigits.param().abi(), dwduration) } #[inline] pub unsafe fn lineGenerateDigitsW(hcall: u32, dwdigitmode: u32, lpszdigits: P2, dwduration: u32) -> i32 @@ -312,27 +312,27 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGenerateDigitsW(hcall : u32, dwdigitmode : u32, lpszdigits : windows_core::PCWSTR, dwduration : u32) -> i32); - lineGenerateDigitsW(core::mem::transmute(hcall), core::mem::transmute(dwdigitmode), lpszdigits.param().abi(), core::mem::transmute(dwduration)) + lineGenerateDigitsW(hcall, dwdigitmode, lpszdigits.param().abi(), dwduration) } #[inline] pub unsafe fn lineGenerateTone(hcall: u32, dwtonemode: u32, dwduration: u32, dwnumtones: u32, lptones: *const LINEGENERATETONE) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGenerateTone(hcall : u32, dwtonemode : u32, dwduration : u32, dwnumtones : u32, lptones : *const LINEGENERATETONE) -> i32); - lineGenerateTone(core::mem::transmute(hcall), core::mem::transmute(dwtonemode), core::mem::transmute(dwduration), core::mem::transmute(dwnumtones), core::mem::transmute(lptones)) + lineGenerateTone(hcall, dwtonemode, dwduration, dwnumtones, lptones) } #[inline] pub unsafe fn lineGetAddressCaps(hlineapp: u32, dwdeviceid: u32, dwaddressid: u32, dwapiversion: u32, dwextversion: u32, lpaddresscaps: *mut LINEADDRESSCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressCaps(hlineapp : u32, dwdeviceid : u32, dwaddressid : u32, dwapiversion : u32, dwextversion : u32, lpaddresscaps : *mut LINEADDRESSCAPS) -> i32); - lineGetAddressCaps(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwaddressid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lpaddresscaps)) + lineGetAddressCaps(hlineapp, dwdeviceid, dwaddressid, dwapiversion, dwextversion, core::mem::transmute(lpaddresscaps)) } #[inline] pub unsafe fn lineGetAddressCapsA(hlineapp: u32, dwdeviceid: u32, dwaddressid: u32, dwapiversion: u32, dwextversion: u32, lpaddresscaps: *mut LINEADDRESSCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressCapsA(hlineapp : u32, dwdeviceid : u32, dwaddressid : u32, dwapiversion : u32, dwextversion : u32, lpaddresscaps : *mut LINEADDRESSCAPS) -> i32); - lineGetAddressCapsA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwaddressid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lpaddresscaps)) + lineGetAddressCapsA(hlineapp, dwdeviceid, dwaddressid, dwapiversion, dwextversion, core::mem::transmute(lpaddresscaps)) } #[inline] pub unsafe fn lineGetAddressCapsW(hlineapp: u32, dwdeviceid: u32, dwaddressid: u32, dwapiversion: u32, dwextversion: u32, lpaddresscaps: *mut LINEADDRESSCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressCapsW(hlineapp : u32, dwdeviceid : u32, dwaddressid : u32, dwapiversion : u32, dwextversion : u32, lpaddresscaps : *mut LINEADDRESSCAPS) -> i32); - lineGetAddressCapsW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwaddressid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lpaddresscaps)) + lineGetAddressCapsW(hlineapp, dwdeviceid, dwaddressid, dwapiversion, dwextversion, core::mem::transmute(lpaddresscaps)) } #[inline] pub unsafe fn lineGetAddressID(hline: u32, lpdwaddressid: *mut u32, dwaddressmode: u32, lpsaddress: P3, dwsize: u32) -> i32 @@ -340,7 +340,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressID(hline : u32, lpdwaddressid : *mut u32, dwaddressmode : u32, lpsaddress : windows_core::PCSTR, dwsize : u32) -> i32); - lineGetAddressID(core::mem::transmute(hline), core::mem::transmute(lpdwaddressid), core::mem::transmute(dwaddressmode), lpsaddress.param().abi(), core::mem::transmute(dwsize)) + lineGetAddressID(hline, core::mem::transmute(lpdwaddressid), dwaddressmode, lpsaddress.param().abi(), dwsize) } #[inline] pub unsafe fn lineGetAddressIDA(hline: u32, lpdwaddressid: *mut u32, dwaddressmode: u32, lpsaddress: P3, dwsize: u32) -> i32 @@ -348,7 +348,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressIDA(hline : u32, lpdwaddressid : *mut u32, dwaddressmode : u32, lpsaddress : windows_core::PCSTR, dwsize : u32) -> i32); - lineGetAddressIDA(core::mem::transmute(hline), core::mem::transmute(lpdwaddressid), core::mem::transmute(dwaddressmode), lpsaddress.param().abi(), core::mem::transmute(dwsize)) + lineGetAddressIDA(hline, core::mem::transmute(lpdwaddressid), dwaddressmode, lpsaddress.param().abi(), dwsize) } #[inline] pub unsafe fn lineGetAddressIDW(hline: u32, lpdwaddressid: *mut u32, dwaddressmode: u32, lpsaddress: P3, dwsize: u32) -> i32 @@ -356,79 +356,79 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressIDW(hline : u32, lpdwaddressid : *mut u32, dwaddressmode : u32, lpsaddress : windows_core::PCWSTR, dwsize : u32) -> i32); - lineGetAddressIDW(core::mem::transmute(hline), core::mem::transmute(lpdwaddressid), core::mem::transmute(dwaddressmode), lpsaddress.param().abi(), core::mem::transmute(dwsize)) + lineGetAddressIDW(hline, core::mem::transmute(lpdwaddressid), dwaddressmode, lpsaddress.param().abi(), dwsize) } #[inline] pub unsafe fn lineGetAddressStatus(hline: u32, dwaddressid: u32, lpaddressstatus: *mut LINEADDRESSSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressStatus(hline : u32, dwaddressid : u32, lpaddressstatus : *mut LINEADDRESSSTATUS) -> i32); - lineGetAddressStatus(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpaddressstatus)) + lineGetAddressStatus(hline, dwaddressid, core::mem::transmute(lpaddressstatus)) } #[inline] pub unsafe fn lineGetAddressStatusA(hline: u32, dwaddressid: u32, lpaddressstatus: *mut LINEADDRESSSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressStatusA(hline : u32, dwaddressid : u32, lpaddressstatus : *mut LINEADDRESSSTATUS) -> i32); - lineGetAddressStatusA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpaddressstatus)) + lineGetAddressStatusA(hline, dwaddressid, core::mem::transmute(lpaddressstatus)) } #[inline] pub unsafe fn lineGetAddressStatusW(hline: u32, dwaddressid: u32, lpaddressstatus: *mut LINEADDRESSSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAddressStatusW(hline : u32, dwaddressid : u32, lpaddressstatus : *mut LINEADDRESSSTATUS) -> i32); - lineGetAddressStatusW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpaddressstatus)) + lineGetAddressStatusW(hline, dwaddressid, core::mem::transmute(lpaddressstatus)) } #[inline] pub unsafe fn lineGetAgentActivityListA(hline: u32, dwaddressid: u32, lpagentactivitylist: *mut LINEAGENTACTIVITYLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentActivityListA(hline : u32, dwaddressid : u32, lpagentactivitylist : *mut LINEAGENTACTIVITYLIST) -> i32); - lineGetAgentActivityListA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentactivitylist)) + lineGetAgentActivityListA(hline, dwaddressid, core::mem::transmute(lpagentactivitylist)) } #[inline] pub unsafe fn lineGetAgentActivityListW(hline: u32, dwaddressid: u32, lpagentactivitylist: *mut LINEAGENTACTIVITYLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentActivityListW(hline : u32, dwaddressid : u32, lpagentactivitylist : *mut LINEAGENTACTIVITYLIST) -> i32); - lineGetAgentActivityListW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentactivitylist)) + lineGetAgentActivityListW(hline, dwaddressid, core::mem::transmute(lpagentactivitylist)) } #[inline] pub unsafe fn lineGetAgentCapsA(hlineapp: u32, dwdeviceid: u32, dwaddressid: u32, dwappapiversion: u32, lpagentcaps: *mut LINEAGENTCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentCapsA(hlineapp : u32, dwdeviceid : u32, dwaddressid : u32, dwappapiversion : u32, lpagentcaps : *mut LINEAGENTCAPS) -> i32); - lineGetAgentCapsA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwaddressid), core::mem::transmute(dwappapiversion), core::mem::transmute(lpagentcaps)) + lineGetAgentCapsA(hlineapp, dwdeviceid, dwaddressid, dwappapiversion, core::mem::transmute(lpagentcaps)) } #[inline] pub unsafe fn lineGetAgentCapsW(hlineapp: u32, dwdeviceid: u32, dwaddressid: u32, dwappapiversion: u32, lpagentcaps: *mut LINEAGENTCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentCapsW(hlineapp : u32, dwdeviceid : u32, dwaddressid : u32, dwappapiversion : u32, lpagentcaps : *mut LINEAGENTCAPS) -> i32); - lineGetAgentCapsW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwaddressid), core::mem::transmute(dwappapiversion), core::mem::transmute(lpagentcaps)) + lineGetAgentCapsW(hlineapp, dwdeviceid, dwaddressid, dwappapiversion, core::mem::transmute(lpagentcaps)) } #[inline] pub unsafe fn lineGetAgentGroupListA(hline: u32, dwaddressid: u32, lpagentgrouplist: *mut LINEAGENTGROUPLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentGroupListA(hline : u32, dwaddressid : u32, lpagentgrouplist : *mut LINEAGENTGROUPLIST) -> i32); - lineGetAgentGroupListA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentgrouplist)) + lineGetAgentGroupListA(hline, dwaddressid, core::mem::transmute(lpagentgrouplist)) } #[inline] pub unsafe fn lineGetAgentGroupListW(hline: u32, dwaddressid: u32, lpagentgrouplist: *mut LINEAGENTGROUPLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentGroupListW(hline : u32, dwaddressid : u32, lpagentgrouplist : *mut LINEAGENTGROUPLIST) -> i32); - lineGetAgentGroupListW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentgrouplist)) + lineGetAgentGroupListW(hline, dwaddressid, core::mem::transmute(lpagentgrouplist)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn lineGetAgentInfo(hline: u32, hagent: u32, lpagentinfo: *mut LINEAGENTINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentInfo(hline : u32, hagent : u32, lpagentinfo : *mut LINEAGENTINFO) -> i32); - lineGetAgentInfo(core::mem::transmute(hline), core::mem::transmute(hagent), core::mem::transmute(lpagentinfo)) + lineGetAgentInfo(hline, hagent, core::mem::transmute(lpagentinfo)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn lineGetAgentSessionInfo(hline: u32, hagentsession: u32, lpagentsessioninfo: *mut LINEAGENTSESSIONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentSessionInfo(hline : u32, hagentsession : u32, lpagentsessioninfo : *mut LINEAGENTSESSIONINFO) -> i32); - lineGetAgentSessionInfo(core::mem::transmute(hline), core::mem::transmute(hagentsession), core::mem::transmute(lpagentsessioninfo)) + lineGetAgentSessionInfo(hline, hagentsession, core::mem::transmute(lpagentsessioninfo)) } #[inline] pub unsafe fn lineGetAgentSessionList(hline: u32, hagent: u32, lpagentsessionlist: *mut LINEAGENTSESSIONLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentSessionList(hline : u32, hagent : u32, lpagentsessionlist : *mut LINEAGENTSESSIONLIST) -> i32); - lineGetAgentSessionList(core::mem::transmute(hline), core::mem::transmute(hagent), core::mem::transmute(lpagentsessionlist)) + lineGetAgentSessionList(hline, hagent, core::mem::transmute(lpagentsessionlist)) } #[inline] pub unsafe fn lineGetAgentStatusA(hline: u32, dwaddressid: u32, lpagentstatus: *mut LINEAGENTSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentStatusA(hline : u32, dwaddressid : u32, lpagentstatus : *mut LINEAGENTSTATUS) -> i32); - lineGetAgentStatusA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentstatus)) + lineGetAgentStatusA(hline, dwaddressid, core::mem::transmute(lpagentstatus)) } #[inline] pub unsafe fn lineGetAgentStatusW(hline: u32, dwaddressid: u32, lpagentstatus: *mut LINEAGENTSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetAgentStatusW(hline : u32, dwaddressid : u32, lpagentstatus : *mut LINEAGENTSTATUS) -> i32); - lineGetAgentStatusW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentstatus)) + lineGetAgentStatusW(hline, dwaddressid, core::mem::transmute(lpagentstatus)) } #[inline] pub unsafe fn lineGetAppPriority(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpextensionname: *mut VARSTRING, lpdwpriority: *mut u32) -> i32 @@ -436,7 +436,7 @@ where P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetAppPriority(lpszappfilename : windows_core::PCSTR, dwmediamode : u32, lpextensionid : *mut LINEEXTENSIONID, dwrequestmode : u32, lpextensionname : *mut VARSTRING, lpdwpriority : *mut u32) -> i32); - lineGetAppPriority(lpszappfilename.param().abi(), core::mem::transmute(dwmediamode), core::mem::transmute(lpextensionid), core::mem::transmute(dwrequestmode), core::mem::transmute(lpextensionname), core::mem::transmute(lpdwpriority)) + lineGetAppPriority(lpszappfilename.param().abi(), dwmediamode, core::mem::transmute(lpextensionid), dwrequestmode, core::mem::transmute(lpextensionname), core::mem::transmute(lpdwpriority)) } #[inline] pub unsafe fn lineGetAppPriorityA(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpextensionname: *mut VARSTRING, lpdwpriority: *mut u32) -> i32 @@ -444,7 +444,7 @@ where P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetAppPriorityA(lpszappfilename : windows_core::PCSTR, dwmediamode : u32, lpextensionid : *mut LINEEXTENSIONID, dwrequestmode : u32, lpextensionname : *mut VARSTRING, lpdwpriority : *mut u32) -> i32); - lineGetAppPriorityA(lpszappfilename.param().abi(), core::mem::transmute(dwmediamode), core::mem::transmute(lpextensionid), core::mem::transmute(dwrequestmode), core::mem::transmute(lpextensionname), core::mem::transmute(lpdwpriority)) + lineGetAppPriorityA(lpszappfilename.param().abi(), dwmediamode, core::mem::transmute(lpextensionid), dwrequestmode, core::mem::transmute(lpextensionname), core::mem::transmute(lpdwpriority)) } #[inline] pub unsafe fn lineGetAppPriorityW(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpextensionname: *mut VARSTRING, lpdwpriority: *mut u32) -> i32 @@ -452,62 +452,62 @@ where P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetAppPriorityW(lpszappfilename : windows_core::PCWSTR, dwmediamode : u32, lpextensionid : *mut LINEEXTENSIONID, dwrequestmode : u32, lpextensionname : *mut VARSTRING, lpdwpriority : *mut u32) -> i32); - lineGetAppPriorityW(lpszappfilename.param().abi(), core::mem::transmute(dwmediamode), core::mem::transmute(lpextensionid), core::mem::transmute(dwrequestmode), core::mem::transmute(lpextensionname), core::mem::transmute(lpdwpriority)) + lineGetAppPriorityW(lpszappfilename.param().abi(), dwmediamode, core::mem::transmute(lpextensionid), dwrequestmode, core::mem::transmute(lpextensionname), core::mem::transmute(lpdwpriority)) } #[inline] pub unsafe fn lineGetCallInfo(hcall: u32, lpcallinfo: *mut LINECALLINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCallInfo(hcall : u32, lpcallinfo : *mut LINECALLINFO) -> i32); - lineGetCallInfo(core::mem::transmute(hcall), core::mem::transmute(lpcallinfo)) + lineGetCallInfo(hcall, core::mem::transmute(lpcallinfo)) } #[inline] pub unsafe fn lineGetCallInfoA(hcall: u32, lpcallinfo: *mut LINECALLINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCallInfoA(hcall : u32, lpcallinfo : *mut LINECALLINFO) -> i32); - lineGetCallInfoA(core::mem::transmute(hcall), core::mem::transmute(lpcallinfo)) + lineGetCallInfoA(hcall, core::mem::transmute(lpcallinfo)) } #[inline] pub unsafe fn lineGetCallInfoW(hcall: u32, lpcallinfo: *mut LINECALLINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCallInfoW(hcall : u32, lpcallinfo : *mut LINECALLINFO) -> i32); - lineGetCallInfoW(core::mem::transmute(hcall), core::mem::transmute(lpcallinfo)) + lineGetCallInfoW(hcall, core::mem::transmute(lpcallinfo)) } #[inline] pub unsafe fn lineGetCallStatus(hcall: u32, lpcallstatus: *mut LINECALLSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCallStatus(hcall : u32, lpcallstatus : *mut LINECALLSTATUS) -> i32); - lineGetCallStatus(core::mem::transmute(hcall), core::mem::transmute(lpcallstatus)) + lineGetCallStatus(hcall, core::mem::transmute(lpcallstatus)) } #[inline] pub unsafe fn lineGetConfRelatedCalls(hcall: u32, lpcalllist: *mut LINECALLLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetConfRelatedCalls(hcall : u32, lpcalllist : *mut LINECALLLIST) -> i32); - lineGetConfRelatedCalls(core::mem::transmute(hcall), core::mem::transmute(lpcalllist)) + lineGetConfRelatedCalls(hcall, core::mem::transmute(lpcalllist)) } #[inline] pub unsafe fn lineGetCountry(dwcountryid: u32, dwapiversion: u32, lplinecountrylist: *mut LINECOUNTRYLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCountry(dwcountryid : u32, dwapiversion : u32, lplinecountrylist : *mut LINECOUNTRYLIST) -> i32); - lineGetCountry(core::mem::transmute(dwcountryid), core::mem::transmute(dwapiversion), core::mem::transmute(lplinecountrylist)) + lineGetCountry(dwcountryid, dwapiversion, core::mem::transmute(lplinecountrylist)) } #[inline] pub unsafe fn lineGetCountryA(dwcountryid: u32, dwapiversion: u32, lplinecountrylist: *mut LINECOUNTRYLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCountryA(dwcountryid : u32, dwapiversion : u32, lplinecountrylist : *mut LINECOUNTRYLIST) -> i32); - lineGetCountryA(core::mem::transmute(dwcountryid), core::mem::transmute(dwapiversion), core::mem::transmute(lplinecountrylist)) + lineGetCountryA(dwcountryid, dwapiversion, core::mem::transmute(lplinecountrylist)) } #[inline] pub unsafe fn lineGetCountryW(dwcountryid: u32, dwapiversion: u32, lplinecountrylist: *mut LINECOUNTRYLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetCountryW(dwcountryid : u32, dwapiversion : u32, lplinecountrylist : *mut LINECOUNTRYLIST) -> i32); - lineGetCountryW(core::mem::transmute(dwcountryid), core::mem::transmute(dwapiversion), core::mem::transmute(lplinecountrylist)) + lineGetCountryW(dwcountryid, dwapiversion, core::mem::transmute(lplinecountrylist)) } #[inline] pub unsafe fn lineGetDevCaps(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextversion: u32, lplinedevcaps: *mut LINEDEVCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetDevCaps(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextversion : u32, lplinedevcaps : *mut LINEDEVCAPS) -> i32); - lineGetDevCaps(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lplinedevcaps)) + lineGetDevCaps(hlineapp, dwdeviceid, dwapiversion, dwextversion, core::mem::transmute(lplinedevcaps)) } #[inline] pub unsafe fn lineGetDevCapsA(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextversion: u32, lplinedevcaps: *mut LINEDEVCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetDevCapsA(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextversion : u32, lplinedevcaps : *mut LINEDEVCAPS) -> i32); - lineGetDevCapsA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lplinedevcaps)) + lineGetDevCapsA(hlineapp, dwdeviceid, dwapiversion, dwextversion, core::mem::transmute(lplinedevcaps)) } #[inline] pub unsafe fn lineGetDevCapsW(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextversion: u32, lplinedevcaps: *mut LINEDEVCAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetDevCapsW(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextversion : u32, lplinedevcaps : *mut LINEDEVCAPS) -> i32); - lineGetDevCapsW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lplinedevcaps)) + lineGetDevCapsW(hlineapp, dwdeviceid, dwapiversion, dwextversion, core::mem::transmute(lplinedevcaps)) } #[inline] pub unsafe fn lineGetDevConfig(dwdeviceid: u32, lpdeviceconfig: *mut VARSTRING, lpszdeviceclass: P2) -> i32 @@ -515,7 +515,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetDevConfig(dwdeviceid : u32, lpdeviceconfig : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineGetDevConfig(core::mem::transmute(dwdeviceid), core::mem::transmute(lpdeviceconfig), lpszdeviceclass.param().abi()) + lineGetDevConfig(dwdeviceid, core::mem::transmute(lpdeviceconfig), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetDevConfigA(dwdeviceid: u32, lpdeviceconfig: *mut VARSTRING, lpszdeviceclass: P2) -> i32 @@ -523,7 +523,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetDevConfigA(dwdeviceid : u32, lpdeviceconfig : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineGetDevConfigA(core::mem::transmute(dwdeviceid), core::mem::transmute(lpdeviceconfig), lpszdeviceclass.param().abi()) + lineGetDevConfigA(dwdeviceid, core::mem::transmute(lpdeviceconfig), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetDevConfigW(dwdeviceid: u32, lpdeviceconfig: *mut VARSTRING, lpszdeviceclass: P2) -> i32 @@ -531,17 +531,17 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetDevConfigW(dwdeviceid : u32, lpdeviceconfig : *mut VARSTRING, lpszdeviceclass : windows_core::PCWSTR) -> i32); - lineGetDevConfigW(core::mem::transmute(dwdeviceid), core::mem::transmute(lpdeviceconfig), lpszdeviceclass.param().abi()) + lineGetDevConfigW(dwdeviceid, core::mem::transmute(lpdeviceconfig), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetGroupListA(hline: u32, lpgrouplist: *mut LINEAGENTGROUPLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetGroupListA(hline : u32, lpgrouplist : *mut LINEAGENTGROUPLIST) -> i32); - lineGetGroupListA(core::mem::transmute(hline), core::mem::transmute(lpgrouplist)) + lineGetGroupListA(hline, core::mem::transmute(lpgrouplist)) } #[inline] pub unsafe fn lineGetGroupListW(hline: u32, lpgrouplist: *mut LINEAGENTGROUPLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetGroupListW(hline : u32, lpgrouplist : *mut LINEAGENTGROUPLIST) -> i32); - lineGetGroupListW(core::mem::transmute(hline), core::mem::transmute(lpgrouplist)) + lineGetGroupListW(hline, core::mem::transmute(lpgrouplist)) } #[inline] pub unsafe fn lineGetID(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P5) -> i32 @@ -549,7 +549,7 @@ where P5: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetID(hline : u32, dwaddressid : u32, hcall : u32, dwselect : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineGetID(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(hcall), core::mem::transmute(dwselect), core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) + lineGetID(hline, dwaddressid, hcall, dwselect, core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetIDA(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P5) -> i32 @@ -557,7 +557,7 @@ where P5: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetIDA(hline : u32, dwaddressid : u32, hcall : u32, dwselect : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineGetIDA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(hcall), core::mem::transmute(dwselect), core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) + lineGetIDA(hline, dwaddressid, hcall, dwselect, core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetIDW(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P5) -> i32 @@ -565,7 +565,7 @@ where P5: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetIDW(hline : u32, dwaddressid : u32, hcall : u32, dwselect : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCWSTR) -> i32); - lineGetIDW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(hcall), core::mem::transmute(dwselect), core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) + lineGetIDW(hline, dwaddressid, hcall, dwselect, core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -574,7 +574,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetIcon(dwdeviceid : u32, lpszdeviceclass : windows_core::PCSTR, lphicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> i32); - lineGetIcon(core::mem::transmute(dwdeviceid), lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) + lineGetIcon(dwdeviceid, lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -583,7 +583,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetIconA(dwdeviceid : u32, lpszdeviceclass : windows_core::PCSTR, lphicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> i32); - lineGetIconA(core::mem::transmute(dwdeviceid), lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) + lineGetIconA(dwdeviceid, lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -592,107 +592,107 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetIconW(dwdeviceid : u32, lpszdeviceclass : windows_core::PCWSTR, lphicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> i32); - lineGetIconW(core::mem::transmute(dwdeviceid), lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) + lineGetIconW(dwdeviceid, lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) } #[inline] pub unsafe fn lineGetLineDevStatus(hline: u32, lplinedevstatus: *mut LINEDEVSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetLineDevStatus(hline : u32, lplinedevstatus : *mut LINEDEVSTATUS) -> i32); - lineGetLineDevStatus(core::mem::transmute(hline), core::mem::transmute(lplinedevstatus)) + lineGetLineDevStatus(hline, core::mem::transmute(lplinedevstatus)) } #[inline] pub unsafe fn lineGetLineDevStatusA(hline: u32, lplinedevstatus: *mut LINEDEVSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetLineDevStatusA(hline : u32, lplinedevstatus : *mut LINEDEVSTATUS) -> i32); - lineGetLineDevStatusA(core::mem::transmute(hline), core::mem::transmute(lplinedevstatus)) + lineGetLineDevStatusA(hline, core::mem::transmute(lplinedevstatus)) } #[inline] pub unsafe fn lineGetLineDevStatusW(hline: u32, lplinedevstatus: *mut LINEDEVSTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetLineDevStatusW(hline : u32, lplinedevstatus : *mut LINEDEVSTATUS) -> i32); - lineGetLineDevStatusW(core::mem::transmute(hline), core::mem::transmute(lplinedevstatus)) + lineGetLineDevStatusW(hline, core::mem::transmute(lplinedevstatus)) } #[inline] pub unsafe fn lineGetMessage(hlineapp: u32, lpmessage: *mut LINEMESSAGE, dwtimeout: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetMessage(hlineapp : u32, lpmessage : *mut LINEMESSAGE, dwtimeout : u32) -> i32); - lineGetMessage(core::mem::transmute(hlineapp), core::mem::transmute(lpmessage), core::mem::transmute(dwtimeout)) + lineGetMessage(hlineapp, core::mem::transmute(lpmessage), dwtimeout) } #[inline] pub unsafe fn lineGetNewCalls(hline: u32, dwaddressid: u32, dwselect: u32, lpcalllist: *mut LINECALLLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetNewCalls(hline : u32, dwaddressid : u32, dwselect : u32, lpcalllist : *mut LINECALLLIST) -> i32); - lineGetNewCalls(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(dwselect), core::mem::transmute(lpcalllist)) + lineGetNewCalls(hline, dwaddressid, dwselect, core::mem::transmute(lpcalllist)) } #[inline] pub unsafe fn lineGetNumRings(hline: u32, dwaddressid: u32, lpdwnumrings: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetNumRings(hline : u32, dwaddressid : u32, lpdwnumrings : *mut u32) -> i32); - lineGetNumRings(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpdwnumrings)) + lineGetNumRings(hline, dwaddressid, core::mem::transmute(lpdwnumrings)) } #[inline] pub unsafe fn lineGetProviderList(dwapiversion: u32, lpproviderlist: *mut LINEPROVIDERLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetProviderList(dwapiversion : u32, lpproviderlist : *mut LINEPROVIDERLIST) -> i32); - lineGetProviderList(core::mem::transmute(dwapiversion), core::mem::transmute(lpproviderlist)) + lineGetProviderList(dwapiversion, core::mem::transmute(lpproviderlist)) } #[inline] pub unsafe fn lineGetProviderListA(dwapiversion: u32, lpproviderlist: *mut LINEPROVIDERLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetProviderListA(dwapiversion : u32, lpproviderlist : *mut LINEPROVIDERLIST) -> i32); - lineGetProviderListA(core::mem::transmute(dwapiversion), core::mem::transmute(lpproviderlist)) + lineGetProviderListA(dwapiversion, core::mem::transmute(lpproviderlist)) } #[inline] pub unsafe fn lineGetProviderListW(dwapiversion: u32, lpproviderlist: *mut LINEPROVIDERLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetProviderListW(dwapiversion : u32, lpproviderlist : *mut LINEPROVIDERLIST) -> i32); - lineGetProviderListW(core::mem::transmute(dwapiversion), core::mem::transmute(lpproviderlist)) + lineGetProviderListW(dwapiversion, core::mem::transmute(lpproviderlist)) } #[inline] pub unsafe fn lineGetProxyStatus(hlineapp: u32, dwdeviceid: u32, dwappapiversion: u32, lplineproxyreqestlist: *mut LINEPROXYREQUESTLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetProxyStatus(hlineapp : u32, dwdeviceid : u32, dwappapiversion : u32, lplineproxyreqestlist : *mut LINEPROXYREQUESTLIST) -> i32); - lineGetProxyStatus(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwappapiversion), core::mem::transmute(lplineproxyreqestlist)) + lineGetProxyStatus(hlineapp, dwdeviceid, dwappapiversion, core::mem::transmute(lplineproxyreqestlist)) } #[inline] pub unsafe fn lineGetQueueInfo(hline: u32, dwqueueid: u32, lplinequeueinfo: *mut LINEQUEUEINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetQueueInfo(hline : u32, dwqueueid : u32, lplinequeueinfo : *mut LINEQUEUEINFO) -> i32); - lineGetQueueInfo(core::mem::transmute(hline), core::mem::transmute(dwqueueid), core::mem::transmute(lplinequeueinfo)) + lineGetQueueInfo(hline, dwqueueid, core::mem::transmute(lplinequeueinfo)) } #[inline] pub unsafe fn lineGetQueueListA(hline: u32, lpgroupid: *mut windows_core::GUID, lpqueuelist: *mut LINEQUEUELIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetQueueListA(hline : u32, lpgroupid : *mut windows_core::GUID, lpqueuelist : *mut LINEQUEUELIST) -> i32); - lineGetQueueListA(core::mem::transmute(hline), core::mem::transmute(lpgroupid), core::mem::transmute(lpqueuelist)) + lineGetQueueListA(hline, core::mem::transmute(lpgroupid), core::mem::transmute(lpqueuelist)) } #[inline] pub unsafe fn lineGetQueueListW(hline: u32, lpgroupid: *mut windows_core::GUID, lpqueuelist: *mut LINEQUEUELIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetQueueListW(hline : u32, lpgroupid : *mut windows_core::GUID, lpqueuelist : *mut LINEQUEUELIST) -> i32); - lineGetQueueListW(core::mem::transmute(hline), core::mem::transmute(lpgroupid), core::mem::transmute(lpqueuelist)) + lineGetQueueListW(hline, core::mem::transmute(lpgroupid), core::mem::transmute(lpqueuelist)) } #[inline] pub unsafe fn lineGetRequest(hlineapp: u32, dwrequestmode: u32, lprequestbuffer: *mut core::ffi::c_void) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetRequest(hlineapp : u32, dwrequestmode : u32, lprequestbuffer : *mut core::ffi::c_void) -> i32); - lineGetRequest(core::mem::transmute(hlineapp), core::mem::transmute(dwrequestmode), core::mem::transmute(lprequestbuffer)) + lineGetRequest(hlineapp, dwrequestmode, core::mem::transmute(lprequestbuffer)) } #[inline] pub unsafe fn lineGetRequestA(hlineapp: u32, dwrequestmode: u32, lprequestbuffer: *mut core::ffi::c_void) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetRequestA(hlineapp : u32, dwrequestmode : u32, lprequestbuffer : *mut core::ffi::c_void) -> i32); - lineGetRequestA(core::mem::transmute(hlineapp), core::mem::transmute(dwrequestmode), core::mem::transmute(lprequestbuffer)) + lineGetRequestA(hlineapp, dwrequestmode, core::mem::transmute(lprequestbuffer)) } #[inline] pub unsafe fn lineGetRequestW(hlineapp: u32, dwrequestmode: u32, lprequestbuffer: *mut core::ffi::c_void) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetRequestW(hlineapp : u32, dwrequestmode : u32, lprequestbuffer : *mut core::ffi::c_void) -> i32); - lineGetRequestW(core::mem::transmute(hlineapp), core::mem::transmute(dwrequestmode), core::mem::transmute(lprequestbuffer)) + lineGetRequestW(hlineapp, dwrequestmode, core::mem::transmute(lprequestbuffer)) } #[inline] pub unsafe fn lineGetStatusMessages(hline: u32, lpdwlinestates: *mut u32, lpdwaddressstates: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetStatusMessages(hline : u32, lpdwlinestates : *mut u32, lpdwaddressstates : *mut u32) -> i32); - lineGetStatusMessages(core::mem::transmute(hline), core::mem::transmute(lpdwlinestates), core::mem::transmute(lpdwaddressstates)) + lineGetStatusMessages(hline, core::mem::transmute(lpdwlinestates), core::mem::transmute(lpdwaddressstates)) } #[inline] pub unsafe fn lineGetTranslateCaps(hlineapp: u32, dwapiversion: u32, lptranslatecaps: *mut LINETRANSLATECAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetTranslateCaps(hlineapp : u32, dwapiversion : u32, lptranslatecaps : *mut LINETRANSLATECAPS) -> i32); - lineGetTranslateCaps(core::mem::transmute(hlineapp), core::mem::transmute(dwapiversion), core::mem::transmute(lptranslatecaps)) + lineGetTranslateCaps(hlineapp, dwapiversion, core::mem::transmute(lptranslatecaps)) } #[inline] pub unsafe fn lineGetTranslateCapsA(hlineapp: u32, dwapiversion: u32, lptranslatecaps: *mut LINETRANSLATECAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetTranslateCapsA(hlineapp : u32, dwapiversion : u32, lptranslatecaps : *mut LINETRANSLATECAPS) -> i32); - lineGetTranslateCapsA(core::mem::transmute(hlineapp), core::mem::transmute(dwapiversion), core::mem::transmute(lptranslatecaps)) + lineGetTranslateCapsA(hlineapp, dwapiversion, core::mem::transmute(lptranslatecaps)) } #[inline] pub unsafe fn lineGetTranslateCapsW(hlineapp: u32, dwapiversion: u32, lptranslatecaps: *mut LINETRANSLATECAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineGetTranslateCapsW(hlineapp : u32, dwapiversion : u32, lptranslatecaps : *mut LINETRANSLATECAPS) -> i32); - lineGetTranslateCapsW(core::mem::transmute(hlineapp), core::mem::transmute(dwapiversion), core::mem::transmute(lptranslatecaps)) + lineGetTranslateCapsW(hlineapp, dwapiversion, core::mem::transmute(lptranslatecaps)) } #[inline] pub unsafe fn lineHandoff(hcall: u32, lpszfilename: P1, dwmediamode: u32) -> i32 @@ -700,7 +700,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineHandoff(hcall : u32, lpszfilename : windows_core::PCSTR, dwmediamode : u32) -> i32); - lineHandoff(core::mem::transmute(hcall), lpszfilename.param().abi(), core::mem::transmute(dwmediamode)) + lineHandoff(hcall, lpszfilename.param().abi(), dwmediamode) } #[inline] pub unsafe fn lineHandoffA(hcall: u32, lpszfilename: P1, dwmediamode: u32) -> i32 @@ -708,7 +708,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineHandoffA(hcall : u32, lpszfilename : windows_core::PCSTR, dwmediamode : u32) -> i32); - lineHandoffA(core::mem::transmute(hcall), lpszfilename.param().abi(), core::mem::transmute(dwmediamode)) + lineHandoffA(hcall, lpszfilename.param().abi(), dwmediamode) } #[inline] pub unsafe fn lineHandoffW(hcall: u32, lpszfilename: P1, dwmediamode: u32) -> i32 @@ -716,12 +716,12 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineHandoffW(hcall : u32, lpszfilename : windows_core::PCWSTR, dwmediamode : u32) -> i32); - lineHandoffW(core::mem::transmute(hcall), lpszfilename.param().abi(), core::mem::transmute(dwmediamode)) + lineHandoffW(hcall, lpszfilename.param().abi(), dwmediamode) } #[inline] pub unsafe fn lineHold(hcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineHold(hcall : u32) -> i32); - lineHold(core::mem::transmute(hcall)) + lineHold(hcall) } #[inline] pub unsafe fn lineInitialize(lphlineapp: *mut u32, hinstance: super::super::Foundation::HINSTANCE, lpfncallback: LINECALLBACK, lpszappname: P3, lpdwnumdevs: *mut u32) -> i32 @@ -729,7 +729,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineInitialize(lphlineapp : *mut u32, hinstance : super::super::Foundation:: HINSTANCE, lpfncallback : LINECALLBACK, lpszappname : windows_core::PCSTR, lpdwnumdevs : *mut u32) -> i32); - lineInitialize(core::mem::transmute(lphlineapp), core::mem::transmute(hinstance), core::mem::transmute(lpfncallback), lpszappname.param().abi(), core::mem::transmute(lpdwnumdevs)) + lineInitialize(core::mem::transmute(lphlineapp), hinstance, lpfncallback, lpszappname.param().abi(), core::mem::transmute(lpdwnumdevs)) } #[inline] pub unsafe fn lineInitializeExA(lphlineapp: *mut u32, hinstance: super::super::Foundation::HINSTANCE, lpfncallback: LINECALLBACK, lpszfriendlyappname: P3, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lplineinitializeexparams: *mut LINEINITIALIZEEXPARAMS) -> i32 @@ -737,7 +737,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineInitializeExA(lphlineapp : *mut u32, hinstance : super::super::Foundation:: HINSTANCE, lpfncallback : LINECALLBACK, lpszfriendlyappname : windows_core::PCSTR, lpdwnumdevs : *mut u32, lpdwapiversion : *mut u32, lplineinitializeexparams : *mut LINEINITIALIZEEXPARAMS) -> i32); - lineInitializeExA(core::mem::transmute(lphlineapp), core::mem::transmute(hinstance), core::mem::transmute(lpfncallback), lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lplineinitializeexparams)) + lineInitializeExA(core::mem::transmute(lphlineapp), hinstance, lpfncallback, lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lplineinitializeexparams)) } #[inline] pub unsafe fn lineInitializeExW(lphlineapp: *mut u32, hinstance: super::super::Foundation::HINSTANCE, lpfncallback: LINECALLBACK, lpszfriendlyappname: P3, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lplineinitializeexparams: *mut LINEINITIALIZEEXPARAMS) -> i32 @@ -745,7 +745,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineInitializeExW(lphlineapp : *mut u32, hinstance : super::super::Foundation:: HINSTANCE, lpfncallback : LINECALLBACK, lpszfriendlyappname : windows_core::PCWSTR, lpdwnumdevs : *mut u32, lpdwapiversion : *mut u32, lplineinitializeexparams : *mut LINEINITIALIZEEXPARAMS) -> i32); - lineInitializeExW(core::mem::transmute(lphlineapp), core::mem::transmute(hinstance), core::mem::transmute(lpfncallback), lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lplineinitializeexparams)) + lineInitializeExW(core::mem::transmute(lphlineapp), hinstance, lpfncallback, lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lplineinitializeexparams)) } #[inline] pub unsafe fn lineMakeCall(hline: u32, lphcall: *mut u32, lpszdestaddress: P2, dwcountrycode: u32, lpcallparams: *const LINECALLPARAMS) -> i32 @@ -753,7 +753,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineMakeCall(hline : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineMakeCall(core::mem::transmute(hline), core::mem::transmute(lphcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode), core::mem::transmute(lpcallparams)) + lineMakeCall(hline, core::mem::transmute(lphcall), lpszdestaddress.param().abi(), dwcountrycode, lpcallparams) } #[inline] pub unsafe fn lineMakeCallA(hline: u32, lphcall: *mut u32, lpszdestaddress: P2, dwcountrycode: u32, lpcallparams: *const LINECALLPARAMS) -> i32 @@ -761,7 +761,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineMakeCallA(hline : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineMakeCallA(core::mem::transmute(hline), core::mem::transmute(lphcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode), core::mem::transmute(lpcallparams)) + lineMakeCallA(hline, core::mem::transmute(lphcall), lpszdestaddress.param().abi(), dwcountrycode, lpcallparams) } #[inline] pub unsafe fn lineMakeCallW(hline: u32, lphcall: *mut u32, lpszdestaddress: P2, dwcountrycode: u32, lpcallparams: *const LINECALLPARAMS) -> i32 @@ -769,47 +769,47 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineMakeCallW(hline : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCWSTR, dwcountrycode : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineMakeCallW(core::mem::transmute(hline), core::mem::transmute(lphcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode), core::mem::transmute(lpcallparams)) + lineMakeCallW(hline, core::mem::transmute(lphcall), lpszdestaddress.param().abi(), dwcountrycode, lpcallparams) } #[inline] pub unsafe fn lineMonitorDigits(hcall: u32, dwdigitmodes: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineMonitorDigits(hcall : u32, dwdigitmodes : u32) -> i32); - lineMonitorDigits(core::mem::transmute(hcall), core::mem::transmute(dwdigitmodes)) + lineMonitorDigits(hcall, dwdigitmodes) } #[inline] pub unsafe fn lineMonitorMedia(hcall: u32, dwmediamodes: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineMonitorMedia(hcall : u32, dwmediamodes : u32) -> i32); - lineMonitorMedia(core::mem::transmute(hcall), core::mem::transmute(dwmediamodes)) + lineMonitorMedia(hcall, dwmediamodes) } #[inline] pub unsafe fn lineMonitorTones(hcall: u32, lptonelist: *const LINEMONITORTONE, dwnumentries: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineMonitorTones(hcall : u32, lptonelist : *const LINEMONITORTONE, dwnumentries : u32) -> i32); - lineMonitorTones(core::mem::transmute(hcall), core::mem::transmute(lptonelist), core::mem::transmute(dwnumentries)) + lineMonitorTones(hcall, lptonelist, dwnumentries) } #[inline] pub unsafe fn lineNegotiateAPIVersion(hlineapp: u32, dwdeviceid: u32, dwapilowversion: u32, dwapihighversion: u32, lpdwapiversion: *mut u32, lpextensionid: *mut LINEEXTENSIONID) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineNegotiateAPIVersion(hlineapp : u32, dwdeviceid : u32, dwapilowversion : u32, dwapihighversion : u32, lpdwapiversion : *mut u32, lpextensionid : *mut LINEEXTENSIONID) -> i32); - lineNegotiateAPIVersion(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapilowversion), core::mem::transmute(dwapihighversion), core::mem::transmute(lpdwapiversion), core::mem::transmute(lpextensionid)) + lineNegotiateAPIVersion(hlineapp, dwdeviceid, dwapilowversion, dwapihighversion, core::mem::transmute(lpdwapiversion), core::mem::transmute(lpextensionid)) } #[inline] pub unsafe fn lineNegotiateExtVersion(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextlowversion: u32, dwexthighversion: u32, lpdwextversion: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineNegotiateExtVersion(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextlowversion : u32, dwexthighversion : u32, lpdwextversion : *mut u32) -> i32); - lineNegotiateExtVersion(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextlowversion), core::mem::transmute(dwexthighversion), core::mem::transmute(lpdwextversion)) + lineNegotiateExtVersion(hlineapp, dwdeviceid, dwapiversion, dwextlowversion, dwexthighversion, core::mem::transmute(lpdwextversion)) } #[inline] pub unsafe fn lineOpen(hlineapp: u32, dwdeviceid: u32, lphline: *mut u32, dwapiversion: u32, dwextversion: u32, dwcallbackinstance: usize, dwprivileges: u32, dwmediamodes: u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineOpen(hlineapp : u32, dwdeviceid : u32, lphline : *mut u32, dwapiversion : u32, dwextversion : u32, dwcallbackinstance : usize, dwprivileges : u32, dwmediamodes : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineOpen(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(lphline), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(dwcallbackinstance), core::mem::transmute(dwprivileges), core::mem::transmute(dwmediamodes), core::mem::transmute(lpcallparams)) + lineOpen(hlineapp, dwdeviceid, core::mem::transmute(lphline), dwapiversion, dwextversion, dwcallbackinstance, dwprivileges, dwmediamodes, lpcallparams) } #[inline] pub unsafe fn lineOpenA(hlineapp: u32, dwdeviceid: u32, lphline: *mut u32, dwapiversion: u32, dwextversion: u32, dwcallbackinstance: usize, dwprivileges: u32, dwmediamodes: u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineOpenA(hlineapp : u32, dwdeviceid : u32, lphline : *mut u32, dwapiversion : u32, dwextversion : u32, dwcallbackinstance : usize, dwprivileges : u32, dwmediamodes : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineOpenA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(lphline), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(dwcallbackinstance), core::mem::transmute(dwprivileges), core::mem::transmute(dwmediamodes), core::mem::transmute(lpcallparams)) + lineOpenA(hlineapp, dwdeviceid, core::mem::transmute(lphline), dwapiversion, dwextversion, dwcallbackinstance, dwprivileges, dwmediamodes, lpcallparams) } #[inline] pub unsafe fn lineOpenW(hlineapp: u32, dwdeviceid: u32, lphline: *mut u32, dwapiversion: u32, dwextversion: u32, dwcallbackinstance: usize, dwprivileges: u32, dwmediamodes: u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineOpenW(hlineapp : u32, dwdeviceid : u32, lphline : *mut u32, dwapiversion : u32, dwextversion : u32, dwcallbackinstance : usize, dwprivileges : u32, dwmediamodes : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineOpenW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(lphline), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(dwcallbackinstance), core::mem::transmute(dwprivileges), core::mem::transmute(dwmediamodes), core::mem::transmute(lpcallparams)) + lineOpenW(hlineapp, dwdeviceid, core::mem::transmute(lphline), dwapiversion, dwextversion, dwcallbackinstance, dwprivileges, dwmediamodes, lpcallparams) } #[inline] pub unsafe fn linePark(hcall: u32, dwparkmode: u32, lpszdiraddress: P2, lpnondiraddress: *mut VARSTRING) -> i32 @@ -817,7 +817,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn linePark(hcall : u32, dwparkmode : u32, lpszdiraddress : windows_core::PCSTR, lpnondiraddress : *mut VARSTRING) -> i32); - linePark(core::mem::transmute(hcall), core::mem::transmute(dwparkmode), lpszdiraddress.param().abi(), core::mem::transmute(lpnondiraddress)) + linePark(hcall, dwparkmode, lpszdiraddress.param().abi(), core::mem::transmute(lpnondiraddress)) } #[inline] pub unsafe fn lineParkA(hcall: u32, dwparkmode: u32, lpszdiraddress: P2, lpnondiraddress: *mut VARSTRING) -> i32 @@ -825,7 +825,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineParkA(hcall : u32, dwparkmode : u32, lpszdiraddress : windows_core::PCSTR, lpnondiraddress : *mut VARSTRING) -> i32); - lineParkA(core::mem::transmute(hcall), core::mem::transmute(dwparkmode), lpszdiraddress.param().abi(), core::mem::transmute(lpnondiraddress)) + lineParkA(hcall, dwparkmode, lpszdiraddress.param().abi(), core::mem::transmute(lpnondiraddress)) } #[inline] pub unsafe fn lineParkW(hcall: u32, dwparkmode: u32, lpszdiraddress: P2, lpnondiraddress: *mut VARSTRING) -> i32 @@ -833,7 +833,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineParkW(hcall : u32, dwparkmode : u32, lpszdiraddress : windows_core::PCWSTR, lpnondiraddress : *mut VARSTRING) -> i32); - lineParkW(core::mem::transmute(hcall), core::mem::transmute(dwparkmode), lpszdiraddress.param().abi(), core::mem::transmute(lpnondiraddress)) + lineParkW(hcall, dwparkmode, lpszdiraddress.param().abi(), core::mem::transmute(lpnondiraddress)) } #[inline] pub unsafe fn linePickup(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P3, lpszgroupid: P4) -> i32 @@ -842,7 +842,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn linePickup(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR, lpszgroupid : windows_core::PCSTR) -> i32); - linePickup(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lphcall), lpszdestaddress.param().abi(), lpszgroupid.param().abi()) + linePickup(hline, dwaddressid, core::mem::transmute(lphcall), lpszdestaddress.param().abi(), lpszgroupid.param().abi()) } #[inline] pub unsafe fn linePickupA(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P3, lpszgroupid: P4) -> i32 @@ -851,7 +851,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn linePickupA(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR, lpszgroupid : windows_core::PCSTR) -> i32); - linePickupA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lphcall), lpszdestaddress.param().abi(), lpszgroupid.param().abi()) + linePickupA(hline, dwaddressid, core::mem::transmute(lphcall), lpszdestaddress.param().abi(), lpszgroupid.param().abi()) } #[inline] pub unsafe fn linePickupW(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P3, lpszgroupid: P4) -> i32 @@ -860,33 +860,33 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn linePickupW(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCWSTR, lpszgroupid : windows_core::PCWSTR) -> i32); - linePickupW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lphcall), lpszdestaddress.param().abi(), lpszgroupid.param().abi()) + linePickupW(hline, dwaddressid, core::mem::transmute(lphcall), lpszdestaddress.param().abi(), lpszgroupid.param().abi()) } #[inline] pub unsafe fn linePrepareAddToConference(hconfcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn linePrepareAddToConference(hconfcall : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - linePrepareAddToConference(core::mem::transmute(hconfcall), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + linePrepareAddToConference(hconfcall, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn linePrepareAddToConferenceA(hconfcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn linePrepareAddToConferenceA(hconfcall : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - linePrepareAddToConferenceA(core::mem::transmute(hconfcall), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + linePrepareAddToConferenceA(hconfcall, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn linePrepareAddToConferenceW(hconfcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn linePrepareAddToConferenceW(hconfcall : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - linePrepareAddToConferenceW(core::mem::transmute(hconfcall), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + linePrepareAddToConferenceW(hconfcall, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineProxyMessage(hline: u32, hcall: u32, dwmsg: u32, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineProxyMessage(hline : u32, hcall : u32, dwmsg : u32, dwparam1 : u32, dwparam2 : u32, dwparam3 : u32) -> i32); - lineProxyMessage(core::mem::transmute(hline), core::mem::transmute(hcall), core::mem::transmute(dwmsg), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)) + lineProxyMessage(hline, hcall, dwmsg, dwparam1, dwparam2, dwparam3) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn lineProxyResponse(hline: u32, lpproxyrequest: *mut LINEPROXYREQUEST, dwresult: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineProxyResponse(hline : u32, lpproxyrequest : *mut LINEPROXYREQUEST, dwresult : u32) -> i32); - lineProxyResponse(core::mem::transmute(hline), core::mem::transmute(lpproxyrequest), core::mem::transmute(dwresult)) + lineProxyResponse(hline, core::mem::transmute(lpproxyrequest), dwresult) } #[inline] pub unsafe fn lineRedirect(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -894,7 +894,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRedirect(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineRedirect(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineRedirect(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineRedirectA(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -902,7 +902,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRedirectA(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineRedirectA(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineRedirectA(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineRedirectW(hcall: u32, lpszdestaddress: P1, dwcountrycode: u32) -> i32 @@ -910,32 +910,32 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRedirectW(hcall : u32, lpszdestaddress : windows_core::PCWSTR, dwcountrycode : u32) -> i32); - lineRedirectW(core::mem::transmute(hcall), lpszdestaddress.param().abi(), core::mem::transmute(dwcountrycode)) + lineRedirectW(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineRegisterRequestRecipient(hlineapp: u32, dwregistrationinstance: u32, dwrequestmode: u32, benable: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineRegisterRequestRecipient(hlineapp : u32, dwregistrationinstance : u32, dwrequestmode : u32, benable : u32) -> i32); - lineRegisterRequestRecipient(core::mem::transmute(hlineapp), core::mem::transmute(dwregistrationinstance), core::mem::transmute(dwrequestmode), core::mem::transmute(benable)) + lineRegisterRequestRecipient(hlineapp, dwregistrationinstance, dwrequestmode, benable) } #[inline] pub unsafe fn lineReleaseUserUserInfo(hcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineReleaseUserUserInfo(hcall : u32) -> i32); - lineReleaseUserUserInfo(core::mem::transmute(hcall)) + lineReleaseUserUserInfo(hcall) } #[inline] pub unsafe fn lineRemoveFromConference(hcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineRemoveFromConference(hcall : u32) -> i32); - lineRemoveFromConference(core::mem::transmute(hcall)) + lineRemoveFromConference(hcall) } #[inline] pub unsafe fn lineRemoveProvider(dwpermanentproviderid: u32, hwndowner: super::super::Foundation::HWND) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineRemoveProvider(dwpermanentproviderid : u32, hwndowner : super::super::Foundation:: HWND) -> i32); - lineRemoveProvider(core::mem::transmute(dwpermanentproviderid), core::mem::transmute(hwndowner)) + lineRemoveProvider(dwpermanentproviderid, hwndowner) } #[inline] pub unsafe fn lineSecureCall(hcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSecureCall(hcall : u32) -> i32); - lineSecureCall(core::mem::transmute(hcall)) + lineSecureCall(hcall) } #[inline] pub unsafe fn lineSendUserUserInfo(hcall: u32, lpsuseruserinfo: P1, dwsize: u32) -> i32 @@ -943,37 +943,37 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSendUserUserInfo(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineSendUserUserInfo(core::mem::transmute(hcall), lpsuseruserinfo.param().abi(), core::mem::transmute(dwsize)) + lineSendUserUserInfo(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineSetAgentActivity(hline: u32, dwaddressid: u32, dwactivityid: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAgentActivity(hline : u32, dwaddressid : u32, dwactivityid : u32) -> i32); - lineSetAgentActivity(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(dwactivityid)) + lineSetAgentActivity(hline, dwaddressid, dwactivityid) } #[inline] pub unsafe fn lineSetAgentGroup(hline: u32, dwaddressid: u32, lpagentgrouplist: *mut LINEAGENTGROUPLIST) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAgentGroup(hline : u32, dwaddressid : u32, lpagentgrouplist : *mut LINEAGENTGROUPLIST) -> i32); - lineSetAgentGroup(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lpagentgrouplist)) + lineSetAgentGroup(hline, dwaddressid, core::mem::transmute(lpagentgrouplist)) } #[inline] pub unsafe fn lineSetAgentMeasurementPeriod(hline: u32, hagent: u32, dwmeasurementperiod: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAgentMeasurementPeriod(hline : u32, hagent : u32, dwmeasurementperiod : u32) -> i32); - lineSetAgentMeasurementPeriod(core::mem::transmute(hline), core::mem::transmute(hagent), core::mem::transmute(dwmeasurementperiod)) + lineSetAgentMeasurementPeriod(hline, hagent, dwmeasurementperiod) } #[inline] pub unsafe fn lineSetAgentSessionState(hline: u32, hagentsession: u32, dwagentsessionstate: u32, dwnextagentsessionstate: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAgentSessionState(hline : u32, hagentsession : u32, dwagentsessionstate : u32, dwnextagentsessionstate : u32) -> i32); - lineSetAgentSessionState(core::mem::transmute(hline), core::mem::transmute(hagentsession), core::mem::transmute(dwagentsessionstate), core::mem::transmute(dwnextagentsessionstate)) + lineSetAgentSessionState(hline, hagentsession, dwagentsessionstate, dwnextagentsessionstate) } #[inline] pub unsafe fn lineSetAgentState(hline: u32, dwaddressid: u32, dwagentstate: u32, dwnextagentstate: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAgentState(hline : u32, dwaddressid : u32, dwagentstate : u32, dwnextagentstate : u32) -> i32); - lineSetAgentState(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(dwagentstate), core::mem::transmute(dwnextagentstate)) + lineSetAgentState(hline, dwaddressid, dwagentstate, dwnextagentstate) } #[inline] pub unsafe fn lineSetAgentStateEx(hline: u32, hagent: u32, dwagentstate: u32, dwnextagentstate: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAgentStateEx(hline : u32, hagent : u32, dwagentstate : u32, dwnextagentstate : u32) -> i32); - lineSetAgentStateEx(core::mem::transmute(hline), core::mem::transmute(hagent), core::mem::transmute(dwagentstate), core::mem::transmute(dwnextagentstate)) + lineSetAgentStateEx(hline, hagent, dwagentstate, dwnextagentstate) } #[inline] pub unsafe fn lineSetAppPriority(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpszextensionname: P4, dwpriority: u32) -> i32 @@ -982,7 +982,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetAppPriority(lpszappfilename : windows_core::PCSTR, dwmediamode : u32, lpextensionid : *mut LINEEXTENSIONID, dwrequestmode : u32, lpszextensionname : windows_core::PCSTR, dwpriority : u32) -> i32); - lineSetAppPriority(lpszappfilename.param().abi(), core::mem::transmute(dwmediamode), core::mem::transmute(lpextensionid), core::mem::transmute(dwrequestmode), lpszextensionname.param().abi(), core::mem::transmute(dwpriority)) + lineSetAppPriority(lpszappfilename.param().abi(), dwmediamode, core::mem::transmute(lpextensionid), dwrequestmode, lpszextensionname.param().abi(), dwpriority) } #[inline] pub unsafe fn lineSetAppPriorityA(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpszextensionname: P4, dwpriority: u32) -> i32 @@ -991,7 +991,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetAppPriorityA(lpszappfilename : windows_core::PCSTR, dwmediamode : u32, lpextensionid : *mut LINEEXTENSIONID, dwrequestmode : u32, lpszextensionname : windows_core::PCSTR, dwpriority : u32) -> i32); - lineSetAppPriorityA(lpszappfilename.param().abi(), core::mem::transmute(dwmediamode), core::mem::transmute(lpextensionid), core::mem::transmute(dwrequestmode), lpszextensionname.param().abi(), core::mem::transmute(dwpriority)) + lineSetAppPriorityA(lpszappfilename.param().abi(), dwmediamode, core::mem::transmute(lpextensionid), dwrequestmode, lpszextensionname.param().abi(), dwpriority) } #[inline] pub unsafe fn lineSetAppPriorityW(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpszextensionname: P4, dwpriority: u32) -> i32 @@ -1000,42 +1000,42 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetAppPriorityW(lpszappfilename : windows_core::PCWSTR, dwmediamode : u32, lpextensionid : *mut LINEEXTENSIONID, dwrequestmode : u32, lpszextensionname : windows_core::PCWSTR, dwpriority : u32) -> i32); - lineSetAppPriorityW(lpszappfilename.param().abi(), core::mem::transmute(dwmediamode), core::mem::transmute(lpextensionid), core::mem::transmute(dwrequestmode), lpszextensionname.param().abi(), core::mem::transmute(dwpriority)) + lineSetAppPriorityW(lpszappfilename.param().abi(), dwmediamode, core::mem::transmute(lpextensionid), dwrequestmode, lpszextensionname.param().abi(), dwpriority) } #[inline] pub unsafe fn lineSetAppSpecific(hcall: u32, dwappspecific: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetAppSpecific(hcall : u32, dwappspecific : u32) -> i32); - lineSetAppSpecific(core::mem::transmute(hcall), core::mem::transmute(dwappspecific)) + lineSetAppSpecific(hcall, dwappspecific) } #[inline] pub unsafe fn lineSetCallData(hcall: u32, lpcalldata: *mut core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetCallData(hcall : u32, lpcalldata : *mut core::ffi::c_void, dwsize : u32) -> i32); - lineSetCallData(core::mem::transmute(hcall), core::mem::transmute(lpcalldata), core::mem::transmute(dwsize)) + lineSetCallData(hcall, core::mem::transmute(lpcalldata), dwsize) } #[inline] pub unsafe fn lineSetCallParams(hcall: u32, dwbearermode: u32, dwminrate: u32, dwmaxrate: u32, lpdialparams: *const LINEDIALPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetCallParams(hcall : u32, dwbearermode : u32, dwminrate : u32, dwmaxrate : u32, lpdialparams : *const LINEDIALPARAMS) -> i32); - lineSetCallParams(core::mem::transmute(hcall), core::mem::transmute(dwbearermode), core::mem::transmute(dwminrate), core::mem::transmute(dwmaxrate), core::mem::transmute(lpdialparams)) + lineSetCallParams(hcall, dwbearermode, dwminrate, dwmaxrate, lpdialparams) } #[inline] pub unsafe fn lineSetCallPrivilege(hcall: u32, dwcallprivilege: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetCallPrivilege(hcall : u32, dwcallprivilege : u32) -> i32); - lineSetCallPrivilege(core::mem::transmute(hcall), core::mem::transmute(dwcallprivilege)) + lineSetCallPrivilege(hcall, dwcallprivilege) } #[inline] pub unsafe fn lineSetCallQualityOfService(hcall: u32, lpsendingflowspec: *mut core::ffi::c_void, dwsendingflowspecsize: u32, lpreceivingflowspec: *mut core::ffi::c_void, dwreceivingflowspecsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetCallQualityOfService(hcall : u32, lpsendingflowspec : *mut core::ffi::c_void, dwsendingflowspecsize : u32, lpreceivingflowspec : *mut core::ffi::c_void, dwreceivingflowspecsize : u32) -> i32); - lineSetCallQualityOfService(core::mem::transmute(hcall), core::mem::transmute(lpsendingflowspec), core::mem::transmute(dwsendingflowspecsize), core::mem::transmute(lpreceivingflowspec), core::mem::transmute(dwreceivingflowspecsize)) + lineSetCallQualityOfService(hcall, core::mem::transmute(lpsendingflowspec), dwsendingflowspecsize, core::mem::transmute(lpreceivingflowspec), dwreceivingflowspecsize) } #[inline] pub unsafe fn lineSetCallTreatment(hcall: u32, dwtreatment: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetCallTreatment(hcall : u32, dwtreatment : u32) -> i32); - lineSetCallTreatment(core::mem::transmute(hcall), core::mem::transmute(dwtreatment)) + lineSetCallTreatment(hcall, dwtreatment) } #[inline] pub unsafe fn lineSetCurrentLocation(hlineapp: u32, dwlocation: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetCurrentLocation(hlineapp : u32, dwlocation : u32) -> i32); - lineSetCurrentLocation(core::mem::transmute(hlineapp), core::mem::transmute(dwlocation)) + lineSetCurrentLocation(hlineapp, dwlocation) } #[inline] pub unsafe fn lineSetDevConfig(dwdeviceid: u32, lpdeviceconfig: *const core::ffi::c_void, dwsize: u32, lpszdeviceclass: P3) -> i32 @@ -1043,7 +1043,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetDevConfig(dwdeviceid : u32, lpdeviceconfig : *const core::ffi::c_void, dwsize : u32, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineSetDevConfig(core::mem::transmute(dwdeviceid), core::mem::transmute(lpdeviceconfig), core::mem::transmute(dwsize), lpszdeviceclass.param().abi()) + lineSetDevConfig(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineSetDevConfigA(dwdeviceid: u32, lpdeviceconfig: *const core::ffi::c_void, dwsize: u32, lpszdeviceclass: P3) -> i32 @@ -1051,7 +1051,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetDevConfigA(dwdeviceid : u32, lpdeviceconfig : *const core::ffi::c_void, dwsize : u32, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineSetDevConfigA(core::mem::transmute(dwdeviceid), core::mem::transmute(lpdeviceconfig), core::mem::transmute(dwsize), lpszdeviceclass.param().abi()) + lineSetDevConfigA(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineSetDevConfigW(dwdeviceid: u32, lpdeviceconfig: *const core::ffi::c_void, dwsize: u32, lpszdeviceclass: P3) -> i32 @@ -1059,42 +1059,42 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetDevConfigW(dwdeviceid : u32, lpdeviceconfig : *const core::ffi::c_void, dwsize : u32, lpszdeviceclass : windows_core::PCWSTR) -> i32); - lineSetDevConfigW(core::mem::transmute(dwdeviceid), core::mem::transmute(lpdeviceconfig), core::mem::transmute(dwsize), lpszdeviceclass.param().abi()) + lineSetDevConfigW(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineSetLineDevStatus(hline: u32, dwstatustochange: u32, fstatus: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetLineDevStatus(hline : u32, dwstatustochange : u32, fstatus : u32) -> i32); - lineSetLineDevStatus(core::mem::transmute(hline), core::mem::transmute(dwstatustochange), core::mem::transmute(fstatus)) + lineSetLineDevStatus(hline, dwstatustochange, fstatus) } #[inline] pub unsafe fn lineSetMediaControl(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdigitlist: *const LINEMEDIACONTROLDIGIT, dwdigitnumentries: u32, lpmedialist: *const LINEMEDIACONTROLMEDIA, dwmedianumentries: u32, lptonelist: *const LINEMEDIACONTROLTONE, dwtonenumentries: u32, lpcallstatelist: *const LINEMEDIACONTROLCALLSTATE, dwcallstatenumentries: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetMediaControl(hline : u32, dwaddressid : u32, hcall : u32, dwselect : u32, lpdigitlist : *const LINEMEDIACONTROLDIGIT, dwdigitnumentries : u32, lpmedialist : *const LINEMEDIACONTROLMEDIA, dwmedianumentries : u32, lptonelist : *const LINEMEDIACONTROLTONE, dwtonenumentries : u32, lpcallstatelist : *const LINEMEDIACONTROLCALLSTATE, dwcallstatenumentries : u32) -> i32); - lineSetMediaControl(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(hcall), core::mem::transmute(dwselect), core::mem::transmute(lpdigitlist), core::mem::transmute(dwdigitnumentries), core::mem::transmute(lpmedialist), core::mem::transmute(dwmedianumentries), core::mem::transmute(lptonelist), core::mem::transmute(dwtonenumentries), core::mem::transmute(lpcallstatelist), core::mem::transmute(dwcallstatenumentries)) + lineSetMediaControl(hline, dwaddressid, hcall, dwselect, lpdigitlist, dwdigitnumentries, lpmedialist, dwmedianumentries, lptonelist, dwtonenumentries, lpcallstatelist, dwcallstatenumentries) } #[inline] pub unsafe fn lineSetMediaMode(hcall: u32, dwmediamodes: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetMediaMode(hcall : u32, dwmediamodes : u32) -> i32); - lineSetMediaMode(core::mem::transmute(hcall), core::mem::transmute(dwmediamodes)) + lineSetMediaMode(hcall, dwmediamodes) } #[inline] pub unsafe fn lineSetNumRings(hline: u32, dwaddressid: u32, dwnumrings: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetNumRings(hline : u32, dwaddressid : u32, dwnumrings : u32) -> i32); - lineSetNumRings(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(dwnumrings)) + lineSetNumRings(hline, dwaddressid, dwnumrings) } #[inline] pub unsafe fn lineSetQueueMeasurementPeriod(hline: u32, dwqueueid: u32, dwmeasurementperiod: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetQueueMeasurementPeriod(hline : u32, dwqueueid : u32, dwmeasurementperiod : u32) -> i32); - lineSetQueueMeasurementPeriod(core::mem::transmute(hline), core::mem::transmute(dwqueueid), core::mem::transmute(dwmeasurementperiod)) + lineSetQueueMeasurementPeriod(hline, dwqueueid, dwmeasurementperiod) } #[inline] pub unsafe fn lineSetStatusMessages(hline: u32, dwlinestates: u32, dwaddressstates: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetStatusMessages(hline : u32, dwlinestates : u32, dwaddressstates : u32) -> i32); - lineSetStatusMessages(core::mem::transmute(hline), core::mem::transmute(dwlinestates), core::mem::transmute(dwaddressstates)) + lineSetStatusMessages(hline, dwlinestates, dwaddressstates) } #[inline] pub unsafe fn lineSetTerminal(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, dwterminalmodes: u32, dwterminalid: u32, benable: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetTerminal(hline : u32, dwaddressid : u32, hcall : u32, dwselect : u32, dwterminalmodes : u32, dwterminalid : u32, benable : u32) -> i32); - lineSetTerminal(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(hcall), core::mem::transmute(dwselect), core::mem::transmute(dwterminalmodes), core::mem::transmute(dwterminalid), core::mem::transmute(benable)) + lineSetTerminal(hline, dwaddressid, hcall, dwselect, dwterminalmodes, dwterminalid, benable) } #[inline] pub unsafe fn lineSetTollList(hlineapp: u32, dwdeviceid: u32, lpszaddressin: P2, dwtolllistoption: u32) -> i32 @@ -1102,7 +1102,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetTollList(hlineapp : u32, dwdeviceid : u32, lpszaddressin : windows_core::PCSTR, dwtolllistoption : u32) -> i32); - lineSetTollList(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), lpszaddressin.param().abi(), core::mem::transmute(dwtolllistoption)) + lineSetTollList(hlineapp, dwdeviceid, lpszaddressin.param().abi(), dwtolllistoption) } #[inline] pub unsafe fn lineSetTollListA(hlineapp: u32, dwdeviceid: u32, lpszaddressin: P2, dwtolllistoption: u32) -> i32 @@ -1110,7 +1110,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetTollListA(hlineapp : u32, dwdeviceid : u32, lpszaddressin : windows_core::PCSTR, dwtolllistoption : u32) -> i32); - lineSetTollListA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), lpszaddressin.param().abi(), core::mem::transmute(dwtolllistoption)) + lineSetTollListA(hlineapp, dwdeviceid, lpszaddressin.param().abi(), dwtolllistoption) } #[inline] pub unsafe fn lineSetTollListW(hlineapp: u32, dwdeviceid: u32, lpszaddressinw: P2, dwtolllistoption: u32) -> i32 @@ -1118,47 +1118,47 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetTollListW(hlineapp : u32, dwdeviceid : u32, lpszaddressinw : windows_core::PCWSTR, dwtolllistoption : u32) -> i32); - lineSetTollListW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), lpszaddressinw.param().abi(), core::mem::transmute(dwtolllistoption)) + lineSetTollListW(hlineapp, dwdeviceid, lpszaddressinw.param().abi(), dwtolllistoption) } #[inline] pub unsafe fn lineSetupConference(hcall: u32, hline: u32, lphconfcall: *mut u32, lphconsultcall: *mut u32, dwnumparties: u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetupConference(hcall : u32, hline : u32, lphconfcall : *mut u32, lphconsultcall : *mut u32, dwnumparties : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineSetupConference(core::mem::transmute(hcall), core::mem::transmute(hline), core::mem::transmute(lphconfcall), core::mem::transmute(lphconsultcall), core::mem::transmute(dwnumparties), core::mem::transmute(lpcallparams)) + lineSetupConference(hcall, hline, core::mem::transmute(lphconfcall), core::mem::transmute(lphconsultcall), dwnumparties, lpcallparams) } #[inline] pub unsafe fn lineSetupConferenceA(hcall: u32, hline: u32, lphconfcall: *mut u32, lphconsultcall: *mut u32, dwnumparties: u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetupConferenceA(hcall : u32, hline : u32, lphconfcall : *mut u32, lphconsultcall : *mut u32, dwnumparties : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineSetupConferenceA(core::mem::transmute(hcall), core::mem::transmute(hline), core::mem::transmute(lphconfcall), core::mem::transmute(lphconsultcall), core::mem::transmute(dwnumparties), core::mem::transmute(lpcallparams)) + lineSetupConferenceA(hcall, hline, core::mem::transmute(lphconfcall), core::mem::transmute(lphconsultcall), dwnumparties, lpcallparams) } #[inline] pub unsafe fn lineSetupConferenceW(hcall: u32, hline: u32, lphconfcall: *mut u32, lphconsultcall: *mut u32, dwnumparties: u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetupConferenceW(hcall : u32, hline : u32, lphconfcall : *mut u32, lphconsultcall : *mut u32, dwnumparties : u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineSetupConferenceW(core::mem::transmute(hcall), core::mem::transmute(hline), core::mem::transmute(lphconfcall), core::mem::transmute(lphconsultcall), core::mem::transmute(dwnumparties), core::mem::transmute(lpcallparams)) + lineSetupConferenceW(hcall, hline, core::mem::transmute(lphconfcall), core::mem::transmute(lphconsultcall), dwnumparties, lpcallparams) } #[inline] pub unsafe fn lineSetupTransfer(hcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetupTransfer(hcall : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineSetupTransfer(core::mem::transmute(hcall), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + lineSetupTransfer(hcall, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineSetupTransferA(hcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetupTransferA(hcall : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineSetupTransferA(core::mem::transmute(hcall), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + lineSetupTransferA(hcall, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineSetupTransferW(hcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSetupTransferW(hcall : u32, lphconsultcall : *mut u32, lpcallparams : *const LINECALLPARAMS) -> i32); - lineSetupTransferW(core::mem::transmute(hcall), core::mem::transmute(lphconsultcall), core::mem::transmute(lpcallparams)) + lineSetupTransferW(hcall, core::mem::transmute(lphconsultcall), lpcallparams) } #[inline] pub unsafe fn lineShutdown(hlineapp: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineShutdown(hlineapp : u32) -> i32); - lineShutdown(core::mem::transmute(hlineapp)) + lineShutdown(hlineapp) } #[inline] pub unsafe fn lineSwapHold(hactivecall: u32, hheldcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineSwapHold(hactivecall : u32, hheldcall : u32) -> i32); - lineSwapHold(core::mem::transmute(hactivecall), core::mem::transmute(hheldcall)) + lineSwapHold(hactivecall, hheldcall) } #[inline] pub unsafe fn lineTranslateAddress(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, lpszaddressin: P3, dwcard: u32, dwtranslateoptions: u32, lptranslateoutput: *mut LINETRANSLATEOUTPUT) -> i32 @@ -1166,7 +1166,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineTranslateAddress(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, lpszaddressin : windows_core::PCSTR, dwcard : u32, dwtranslateoptions : u32, lptranslateoutput : *mut LINETRANSLATEOUTPUT) -> i32); - lineTranslateAddress(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), lpszaddressin.param().abi(), core::mem::transmute(dwcard), core::mem::transmute(dwtranslateoptions), core::mem::transmute(lptranslateoutput)) + lineTranslateAddress(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.param().abi(), dwcard, dwtranslateoptions, core::mem::transmute(lptranslateoutput)) } #[inline] pub unsafe fn lineTranslateAddressA(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, lpszaddressin: P3, dwcard: u32, dwtranslateoptions: u32, lptranslateoutput: *mut LINETRANSLATEOUTPUT) -> i32 @@ -1174,7 +1174,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineTranslateAddressA(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, lpszaddressin : windows_core::PCSTR, dwcard : u32, dwtranslateoptions : u32, lptranslateoutput : *mut LINETRANSLATEOUTPUT) -> i32); - lineTranslateAddressA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), lpszaddressin.param().abi(), core::mem::transmute(dwcard), core::mem::transmute(dwtranslateoptions), core::mem::transmute(lptranslateoutput)) + lineTranslateAddressA(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.param().abi(), dwcard, dwtranslateoptions, core::mem::transmute(lptranslateoutput)) } #[inline] pub unsafe fn lineTranslateAddressW(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, lpszaddressin: P3, dwcard: u32, dwtranslateoptions: u32, lptranslateoutput: *mut LINETRANSLATEOUTPUT) -> i32 @@ -1182,7 +1182,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineTranslateAddressW(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, lpszaddressin : windows_core::PCWSTR, dwcard : u32, dwtranslateoptions : u32, lptranslateoutput : *mut LINETRANSLATEOUTPUT) -> i32); - lineTranslateAddressW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), lpszaddressin.param().abi(), core::mem::transmute(dwcard), core::mem::transmute(dwtranslateoptions), core::mem::transmute(lptranslateoutput)) + lineTranslateAddressW(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.param().abi(), dwcard, dwtranslateoptions, core::mem::transmute(lptranslateoutput)) } #[inline] pub unsafe fn lineTranslateDialog(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, hwndowner: super::super::Foundation::HWND, lpszaddressin: P4) -> i32 @@ -1190,7 +1190,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineTranslateDialog(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, hwndowner : super::super::Foundation:: HWND, lpszaddressin : windows_core::PCSTR) -> i32); - lineTranslateDialog(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(hwndowner), lpszaddressin.param().abi()) + lineTranslateDialog(hlineapp, dwdeviceid, dwapiversion, hwndowner, lpszaddressin.param().abi()) } #[inline] pub unsafe fn lineTranslateDialogA(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, hwndowner: super::super::Foundation::HWND, lpszaddressin: P4) -> i32 @@ -1198,7 +1198,7 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineTranslateDialogA(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, hwndowner : super::super::Foundation:: HWND, lpszaddressin : windows_core::PCSTR) -> i32); - lineTranslateDialogA(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(hwndowner), lpszaddressin.param().abi()) + lineTranslateDialogA(hlineapp, dwdeviceid, dwapiversion, hwndowner, lpszaddressin.param().abi()) } #[inline] pub unsafe fn lineTranslateDialogW(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, hwndowner: super::super::Foundation::HWND, lpszaddressin: P4) -> i32 @@ -1206,17 +1206,17 @@ where P4: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineTranslateDialogW(hlineapp : u32, dwdeviceid : u32, dwapiversion : u32, hwndowner : super::super::Foundation:: HWND, lpszaddressin : windows_core::PCWSTR) -> i32); - lineTranslateDialogW(core::mem::transmute(hlineapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(hwndowner), lpszaddressin.param().abi()) + lineTranslateDialogW(hlineapp, dwdeviceid, dwapiversion, hwndowner, lpszaddressin.param().abi()) } #[inline] pub unsafe fn lineUncompleteCall(hline: u32, dwcompletionid: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineUncompleteCall(hline : u32, dwcompletionid : u32) -> i32); - lineUncompleteCall(core::mem::transmute(hline), core::mem::transmute(dwcompletionid)) + lineUncompleteCall(hline, dwcompletionid) } #[inline] pub unsafe fn lineUnhold(hcall: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn lineUnhold(hcall : u32) -> i32); - lineUnhold(core::mem::transmute(hcall)) + lineUnhold(hcall) } #[inline] pub unsafe fn lineUnpark(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P3) -> i32 @@ -1224,7 +1224,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineUnpark(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR) -> i32); - lineUnpark(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lphcall), lpszdestaddress.param().abi()) + lineUnpark(hline, dwaddressid, core::mem::transmute(lphcall), lpszdestaddress.param().abi()) } #[inline] pub unsafe fn lineUnparkA(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P3) -> i32 @@ -1232,7 +1232,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineUnparkA(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR) -> i32); - lineUnparkA(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lphcall), lpszdestaddress.param().abi()) + lineUnparkA(hline, dwaddressid, core::mem::transmute(lphcall), lpszdestaddress.param().abi()) } #[inline] pub unsafe fn lineUnparkW(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P3) -> i32 @@ -1240,12 +1240,12 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineUnparkW(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCWSTR) -> i32); - lineUnparkW(core::mem::transmute(hline), core::mem::transmute(dwaddressid), core::mem::transmute(lphcall), lpszdestaddress.param().abi()) + lineUnparkW(hline, dwaddressid, core::mem::transmute(lphcall), lpszdestaddress.param().abi()) } #[inline] pub unsafe fn phoneClose(hphone: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneClose(hphone : u32) -> i32); - phoneClose(core::mem::transmute(hphone)) + phoneClose(hphone) } #[inline] pub unsafe fn phoneConfigDialog(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2) -> i32 @@ -1253,7 +1253,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneConfigDialog(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneConfigDialog(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi()) + phoneConfigDialog(dwdeviceid, hwndowner, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneConfigDialogA(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2) -> i32 @@ -1261,7 +1261,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneConfigDialogA(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneConfigDialogA(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi()) + phoneConfigDialogA(dwdeviceid, hwndowner, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneConfigDialogW(dwdeviceid: u32, hwndowner: super::super::Foundation::HWND, lpszdeviceclass: P2) -> i32 @@ -1269,62 +1269,62 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneConfigDialogW(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCWSTR) -> i32); - phoneConfigDialogW(core::mem::transmute(dwdeviceid), core::mem::transmute(hwndowner), lpszdeviceclass.param().abi()) + phoneConfigDialogW(dwdeviceid, hwndowner, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneDevSpecific(hphone: u32, lpparams: *mut core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneDevSpecific(hphone : u32, lpparams : *mut core::ffi::c_void, dwsize : u32) -> i32); - phoneDevSpecific(core::mem::transmute(hphone), core::mem::transmute(lpparams), core::mem::transmute(dwsize)) + phoneDevSpecific(hphone, core::mem::transmute(lpparams), dwsize) } #[inline] pub unsafe fn phoneGetButtonInfo(hphone: u32, dwbuttonlampid: u32, lpbuttoninfo: *mut PHONEBUTTONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetButtonInfo(hphone : u32, dwbuttonlampid : u32, lpbuttoninfo : *mut PHONEBUTTONINFO) -> i32); - phoneGetButtonInfo(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpbuttoninfo)) + phoneGetButtonInfo(hphone, dwbuttonlampid, core::mem::transmute(lpbuttoninfo)) } #[inline] pub unsafe fn phoneGetButtonInfoA(hphone: u32, dwbuttonlampid: u32, lpbuttoninfo: *mut PHONEBUTTONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetButtonInfoA(hphone : u32, dwbuttonlampid : u32, lpbuttoninfo : *mut PHONEBUTTONINFO) -> i32); - phoneGetButtonInfoA(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpbuttoninfo)) + phoneGetButtonInfoA(hphone, dwbuttonlampid, core::mem::transmute(lpbuttoninfo)) } #[inline] pub unsafe fn phoneGetButtonInfoW(hphone: u32, dwbuttonlampid: u32, lpbuttoninfo: *mut PHONEBUTTONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetButtonInfoW(hphone : u32, dwbuttonlampid : u32, lpbuttoninfo : *mut PHONEBUTTONINFO) -> i32); - phoneGetButtonInfoW(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpbuttoninfo)) + phoneGetButtonInfoW(hphone, dwbuttonlampid, core::mem::transmute(lpbuttoninfo)) } #[inline] pub unsafe fn phoneGetData(hphone: u32, dwdataid: u32, lpdata: *mut core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetData(hphone : u32, dwdataid : u32, lpdata : *mut core::ffi::c_void, dwsize : u32) -> i32); - phoneGetData(core::mem::transmute(hphone), core::mem::transmute(dwdataid), core::mem::transmute(lpdata), core::mem::transmute(dwsize)) + phoneGetData(hphone, dwdataid, core::mem::transmute(lpdata), dwsize) } #[inline] pub unsafe fn phoneGetDevCaps(hphoneapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextversion: u32, lpphonecaps: *mut PHONECAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetDevCaps(hphoneapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextversion : u32, lpphonecaps : *mut PHONECAPS) -> i32); - phoneGetDevCaps(core::mem::transmute(hphoneapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lpphonecaps)) + phoneGetDevCaps(hphoneapp, dwdeviceid, dwapiversion, dwextversion, core::mem::transmute(lpphonecaps)) } #[inline] pub unsafe fn phoneGetDevCapsA(hphoneapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextversion: u32, lpphonecaps: *mut PHONECAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetDevCapsA(hphoneapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextversion : u32, lpphonecaps : *mut PHONECAPS) -> i32); - phoneGetDevCapsA(core::mem::transmute(hphoneapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lpphonecaps)) + phoneGetDevCapsA(hphoneapp, dwdeviceid, dwapiversion, dwextversion, core::mem::transmute(lpphonecaps)) } #[inline] pub unsafe fn phoneGetDevCapsW(hphoneapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextversion: u32, lpphonecaps: *mut PHONECAPS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetDevCapsW(hphoneapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextversion : u32, lpphonecaps : *mut PHONECAPS) -> i32); - phoneGetDevCapsW(core::mem::transmute(hphoneapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(lpphonecaps)) + phoneGetDevCapsW(hphoneapp, dwdeviceid, dwapiversion, dwextversion, core::mem::transmute(lpphonecaps)) } #[inline] pub unsafe fn phoneGetDisplay(hphone: u32, lpdisplay: *mut VARSTRING) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetDisplay(hphone : u32, lpdisplay : *mut VARSTRING) -> i32); - phoneGetDisplay(core::mem::transmute(hphone), core::mem::transmute(lpdisplay)) + phoneGetDisplay(hphone, core::mem::transmute(lpdisplay)) } #[inline] pub unsafe fn phoneGetGain(hphone: u32, dwhookswitchdev: u32, lpdwgain: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetGain(hphone : u32, dwhookswitchdev : u32, lpdwgain : *mut u32) -> i32); - phoneGetGain(core::mem::transmute(hphone), core::mem::transmute(dwhookswitchdev), core::mem::transmute(lpdwgain)) + phoneGetGain(hphone, dwhookswitchdev, core::mem::transmute(lpdwgain)) } #[inline] pub unsafe fn phoneGetHookSwitch(hphone: u32, lpdwhookswitchdevs: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetHookSwitch(hphone : u32, lpdwhookswitchdevs : *mut u32) -> i32); - phoneGetHookSwitch(core::mem::transmute(hphone), core::mem::transmute(lpdwhookswitchdevs)) + phoneGetHookSwitch(hphone, core::mem::transmute(lpdwhookswitchdevs)) } #[inline] pub unsafe fn phoneGetID(hphone: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P2) -> i32 @@ -1332,7 +1332,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetID(hphone : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneGetID(core::mem::transmute(hphone), core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) + phoneGetID(hphone, core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneGetIDA(hphone: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P2) -> i32 @@ -1340,7 +1340,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIDA(hphone : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneGetIDA(core::mem::transmute(hphone), core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) + phoneGetIDA(hphone, core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneGetIDW(hphone: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P2) -> i32 @@ -1348,7 +1348,7 @@ where P2: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIDW(hphone : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCWSTR) -> i32); - phoneGetIDW(core::mem::transmute(hphone), core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) + phoneGetIDW(hphone, core::mem::transmute(lpdeviceid), lpszdeviceclass.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -1357,7 +1357,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIcon(dwdeviceid : u32, lpszdeviceclass : windows_core::PCSTR, lphicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> i32); - phoneGetIcon(core::mem::transmute(dwdeviceid), lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) + phoneGetIcon(dwdeviceid, lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -1366,7 +1366,7 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIconA(dwdeviceid : u32, lpszdeviceclass : windows_core::PCSTR, lphicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> i32); - phoneGetIconA(core::mem::transmute(dwdeviceid), lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) + phoneGetIconA(dwdeviceid, lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -1375,47 +1375,47 @@ where P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIconW(dwdeviceid : u32, lpszdeviceclass : windows_core::PCWSTR, lphicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> i32); - phoneGetIconW(core::mem::transmute(dwdeviceid), lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) + phoneGetIconW(dwdeviceid, lpszdeviceclass.param().abi(), core::mem::transmute(lphicon)) } #[inline] pub unsafe fn phoneGetLamp(hphone: u32, dwbuttonlampid: u32, lpdwlampmode: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetLamp(hphone : u32, dwbuttonlampid : u32, lpdwlampmode : *mut u32) -> i32); - phoneGetLamp(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpdwlampmode)) + phoneGetLamp(hphone, dwbuttonlampid, core::mem::transmute(lpdwlampmode)) } #[inline] pub unsafe fn phoneGetMessage(hphoneapp: u32, lpmessage: *mut PHONEMESSAGE, dwtimeout: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetMessage(hphoneapp : u32, lpmessage : *mut PHONEMESSAGE, dwtimeout : u32) -> i32); - phoneGetMessage(core::mem::transmute(hphoneapp), core::mem::transmute(lpmessage), core::mem::transmute(dwtimeout)) + phoneGetMessage(hphoneapp, core::mem::transmute(lpmessage), dwtimeout) } #[inline] pub unsafe fn phoneGetRing(hphone: u32, lpdwringmode: *mut u32, lpdwvolume: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetRing(hphone : u32, lpdwringmode : *mut u32, lpdwvolume : *mut u32) -> i32); - phoneGetRing(core::mem::transmute(hphone), core::mem::transmute(lpdwringmode), core::mem::transmute(lpdwvolume)) + phoneGetRing(hphone, core::mem::transmute(lpdwringmode), core::mem::transmute(lpdwvolume)) } #[inline] pub unsafe fn phoneGetStatus(hphone: u32, lpphonestatus: *mut PHONESTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetStatus(hphone : u32, lpphonestatus : *mut PHONESTATUS) -> i32); - phoneGetStatus(core::mem::transmute(hphone), core::mem::transmute(lpphonestatus)) + phoneGetStatus(hphone, core::mem::transmute(lpphonestatus)) } #[inline] pub unsafe fn phoneGetStatusA(hphone: u32, lpphonestatus: *mut PHONESTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetStatusA(hphone : u32, lpphonestatus : *mut PHONESTATUS) -> i32); - phoneGetStatusA(core::mem::transmute(hphone), core::mem::transmute(lpphonestatus)) + phoneGetStatusA(hphone, core::mem::transmute(lpphonestatus)) } #[inline] pub unsafe fn phoneGetStatusMessages(hphone: u32, lpdwphonestates: *mut u32, lpdwbuttonmodes: *mut u32, lpdwbuttonstates: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetStatusMessages(hphone : u32, lpdwphonestates : *mut u32, lpdwbuttonmodes : *mut u32, lpdwbuttonstates : *mut u32) -> i32); - phoneGetStatusMessages(core::mem::transmute(hphone), core::mem::transmute(lpdwphonestates), core::mem::transmute(lpdwbuttonmodes), core::mem::transmute(lpdwbuttonstates)) + phoneGetStatusMessages(hphone, core::mem::transmute(lpdwphonestates), core::mem::transmute(lpdwbuttonmodes), core::mem::transmute(lpdwbuttonstates)) } #[inline] pub unsafe fn phoneGetStatusW(hphone: u32, lpphonestatus: *mut PHONESTATUS) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetStatusW(hphone : u32, lpphonestatus : *mut PHONESTATUS) -> i32); - phoneGetStatusW(core::mem::transmute(hphone), core::mem::transmute(lpphonestatus)) + phoneGetStatusW(hphone, core::mem::transmute(lpphonestatus)) } #[inline] pub unsafe fn phoneGetVolume(hphone: u32, dwhookswitchdev: u32, lpdwvolume: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneGetVolume(hphone : u32, dwhookswitchdev : u32, lpdwvolume : *mut u32) -> i32); - phoneGetVolume(core::mem::transmute(hphone), core::mem::transmute(dwhookswitchdev), core::mem::transmute(lpdwvolume)) + phoneGetVolume(hphone, dwhookswitchdev, core::mem::transmute(lpdwvolume)) } #[inline] pub unsafe fn phoneInitialize(lphphoneapp: *mut u32, hinstance: super::super::Foundation::HINSTANCE, lpfncallback: PHONECALLBACK, lpszappname: P3, lpdwnumdevs: *mut u32) -> i32 @@ -1423,7 +1423,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneInitialize(lphphoneapp : *mut u32, hinstance : super::super::Foundation:: HINSTANCE, lpfncallback : PHONECALLBACK, lpszappname : windows_core::PCSTR, lpdwnumdevs : *mut u32) -> i32); - phoneInitialize(core::mem::transmute(lphphoneapp), core::mem::transmute(hinstance), core::mem::transmute(lpfncallback), lpszappname.param().abi(), core::mem::transmute(lpdwnumdevs)) + phoneInitialize(core::mem::transmute(lphphoneapp), hinstance, lpfncallback, lpszappname.param().abi(), core::mem::transmute(lpdwnumdevs)) } #[inline] pub unsafe fn phoneInitializeExA(lphphoneapp: *mut u32, hinstance: super::super::Foundation::HINSTANCE, lpfncallback: PHONECALLBACK, lpszfriendlyappname: P3, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lpphoneinitializeexparams: *mut PHONEINITIALIZEEXPARAMS) -> i32 @@ -1431,7 +1431,7 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneInitializeExA(lphphoneapp : *mut u32, hinstance : super::super::Foundation:: HINSTANCE, lpfncallback : PHONECALLBACK, lpszfriendlyappname : windows_core::PCSTR, lpdwnumdevs : *mut u32, lpdwapiversion : *mut u32, lpphoneinitializeexparams : *mut PHONEINITIALIZEEXPARAMS) -> i32); - phoneInitializeExA(core::mem::transmute(lphphoneapp), core::mem::transmute(hinstance), core::mem::transmute(lpfncallback), lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lpphoneinitializeexparams)) + phoneInitializeExA(core::mem::transmute(lphphoneapp), hinstance, lpfncallback, lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lpphoneinitializeexparams)) } #[inline] pub unsafe fn phoneInitializeExW(lphphoneapp: *mut u32, hinstance: super::super::Foundation::HINSTANCE, lpfncallback: PHONECALLBACK, lpszfriendlyappname: P3, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lpphoneinitializeexparams: *mut PHONEINITIALIZEEXPARAMS) -> i32 @@ -1439,42 +1439,42 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneInitializeExW(lphphoneapp : *mut u32, hinstance : super::super::Foundation:: HINSTANCE, lpfncallback : PHONECALLBACK, lpszfriendlyappname : windows_core::PCWSTR, lpdwnumdevs : *mut u32, lpdwapiversion : *mut u32, lpphoneinitializeexparams : *mut PHONEINITIALIZEEXPARAMS) -> i32); - phoneInitializeExW(core::mem::transmute(lphphoneapp), core::mem::transmute(hinstance), core::mem::transmute(lpfncallback), lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lpphoneinitializeexparams)) + phoneInitializeExW(core::mem::transmute(lphphoneapp), hinstance, lpfncallback, lpszfriendlyappname.param().abi(), core::mem::transmute(lpdwnumdevs), core::mem::transmute(lpdwapiversion), core::mem::transmute(lpphoneinitializeexparams)) } #[inline] pub unsafe fn phoneNegotiateAPIVersion(hphoneapp: u32, dwdeviceid: u32, dwapilowversion: u32, dwapihighversion: u32, lpdwapiversion: *mut u32, lpextensionid: *mut PHONEEXTENSIONID) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneNegotiateAPIVersion(hphoneapp : u32, dwdeviceid : u32, dwapilowversion : u32, dwapihighversion : u32, lpdwapiversion : *mut u32, lpextensionid : *mut PHONEEXTENSIONID) -> i32); - phoneNegotiateAPIVersion(core::mem::transmute(hphoneapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapilowversion), core::mem::transmute(dwapihighversion), core::mem::transmute(lpdwapiversion), core::mem::transmute(lpextensionid)) + phoneNegotiateAPIVersion(hphoneapp, dwdeviceid, dwapilowversion, dwapihighversion, core::mem::transmute(lpdwapiversion), core::mem::transmute(lpextensionid)) } #[inline] pub unsafe fn phoneNegotiateExtVersion(hphoneapp: u32, dwdeviceid: u32, dwapiversion: u32, dwextlowversion: u32, dwexthighversion: u32, lpdwextversion: *mut u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneNegotiateExtVersion(hphoneapp : u32, dwdeviceid : u32, dwapiversion : u32, dwextlowversion : u32, dwexthighversion : u32, lpdwextversion : *mut u32) -> i32); - phoneNegotiateExtVersion(core::mem::transmute(hphoneapp), core::mem::transmute(dwdeviceid), core::mem::transmute(dwapiversion), core::mem::transmute(dwextlowversion), core::mem::transmute(dwexthighversion), core::mem::transmute(lpdwextversion)) + phoneNegotiateExtVersion(hphoneapp, dwdeviceid, dwapiversion, dwextlowversion, dwexthighversion, core::mem::transmute(lpdwextversion)) } #[inline] pub unsafe fn phoneOpen(hphoneapp: u32, dwdeviceid: u32, lphphone: *mut u32, dwapiversion: u32, dwextversion: u32, dwcallbackinstance: usize, dwprivilege: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneOpen(hphoneapp : u32, dwdeviceid : u32, lphphone : *mut u32, dwapiversion : u32, dwextversion : u32, dwcallbackinstance : usize, dwprivilege : u32) -> i32); - phoneOpen(core::mem::transmute(hphoneapp), core::mem::transmute(dwdeviceid), core::mem::transmute(lphphone), core::mem::transmute(dwapiversion), core::mem::transmute(dwextversion), core::mem::transmute(dwcallbackinstance), core::mem::transmute(dwprivilege)) + phoneOpen(hphoneapp, dwdeviceid, core::mem::transmute(lphphone), dwapiversion, dwextversion, dwcallbackinstance, dwprivilege) } #[inline] pub unsafe fn phoneSetButtonInfo(hphone: u32, dwbuttonlampid: u32, lpbuttoninfo: *const PHONEBUTTONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetButtonInfo(hphone : u32, dwbuttonlampid : u32, lpbuttoninfo : *const PHONEBUTTONINFO) -> i32); - phoneSetButtonInfo(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpbuttoninfo)) + phoneSetButtonInfo(hphone, dwbuttonlampid, lpbuttoninfo) } #[inline] pub unsafe fn phoneSetButtonInfoA(hphone: u32, dwbuttonlampid: u32, lpbuttoninfo: *const PHONEBUTTONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetButtonInfoA(hphone : u32, dwbuttonlampid : u32, lpbuttoninfo : *const PHONEBUTTONINFO) -> i32); - phoneSetButtonInfoA(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpbuttoninfo)) + phoneSetButtonInfoA(hphone, dwbuttonlampid, lpbuttoninfo) } #[inline] pub unsafe fn phoneSetButtonInfoW(hphone: u32, dwbuttonlampid: u32, lpbuttoninfo: *const PHONEBUTTONINFO) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetButtonInfoW(hphone : u32, dwbuttonlampid : u32, lpbuttoninfo : *const PHONEBUTTONINFO) -> i32); - phoneSetButtonInfoW(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(lpbuttoninfo)) + phoneSetButtonInfoW(hphone, dwbuttonlampid, lpbuttoninfo) } #[inline] pub unsafe fn phoneSetData(hphone: u32, dwdataid: u32, lpdata: *const core::ffi::c_void, dwsize: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetData(hphone : u32, dwdataid : u32, lpdata : *const core::ffi::c_void, dwsize : u32) -> i32); - phoneSetData(core::mem::transmute(hphone), core::mem::transmute(dwdataid), core::mem::transmute(lpdata), core::mem::transmute(dwsize)) + phoneSetData(hphone, dwdataid, lpdata, dwsize) } #[inline] pub unsafe fn phoneSetDisplay(hphone: u32, dwrow: u32, dwcolumn: u32, lpsdisplay: P3, dwsize: u32) -> i32 @@ -1482,42 +1482,42 @@ where P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneSetDisplay(hphone : u32, dwrow : u32, dwcolumn : u32, lpsdisplay : windows_core::PCSTR, dwsize : u32) -> i32); - phoneSetDisplay(core::mem::transmute(hphone), core::mem::transmute(dwrow), core::mem::transmute(dwcolumn), lpsdisplay.param().abi(), core::mem::transmute(dwsize)) + phoneSetDisplay(hphone, dwrow, dwcolumn, lpsdisplay.param().abi(), dwsize) } #[inline] pub unsafe fn phoneSetGain(hphone: u32, dwhookswitchdev: u32, dwgain: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetGain(hphone : u32, dwhookswitchdev : u32, dwgain : u32) -> i32); - phoneSetGain(core::mem::transmute(hphone), core::mem::transmute(dwhookswitchdev), core::mem::transmute(dwgain)) + phoneSetGain(hphone, dwhookswitchdev, dwgain) } #[inline] pub unsafe fn phoneSetHookSwitch(hphone: u32, dwhookswitchdevs: u32, dwhookswitchmode: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetHookSwitch(hphone : u32, dwhookswitchdevs : u32, dwhookswitchmode : u32) -> i32); - phoneSetHookSwitch(core::mem::transmute(hphone), core::mem::transmute(dwhookswitchdevs), core::mem::transmute(dwhookswitchmode)) + phoneSetHookSwitch(hphone, dwhookswitchdevs, dwhookswitchmode) } #[inline] pub unsafe fn phoneSetLamp(hphone: u32, dwbuttonlampid: u32, dwlampmode: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetLamp(hphone : u32, dwbuttonlampid : u32, dwlampmode : u32) -> i32); - phoneSetLamp(core::mem::transmute(hphone), core::mem::transmute(dwbuttonlampid), core::mem::transmute(dwlampmode)) + phoneSetLamp(hphone, dwbuttonlampid, dwlampmode) } #[inline] pub unsafe fn phoneSetRing(hphone: u32, dwringmode: u32, dwvolume: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetRing(hphone : u32, dwringmode : u32, dwvolume : u32) -> i32); - phoneSetRing(core::mem::transmute(hphone), core::mem::transmute(dwringmode), core::mem::transmute(dwvolume)) + phoneSetRing(hphone, dwringmode, dwvolume) } #[inline] pub unsafe fn phoneSetStatusMessages(hphone: u32, dwphonestates: u32, dwbuttonmodes: u32, dwbuttonstates: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetStatusMessages(hphone : u32, dwphonestates : u32, dwbuttonmodes : u32, dwbuttonstates : u32) -> i32); - phoneSetStatusMessages(core::mem::transmute(hphone), core::mem::transmute(dwphonestates), core::mem::transmute(dwbuttonmodes), core::mem::transmute(dwbuttonstates)) + phoneSetStatusMessages(hphone, dwphonestates, dwbuttonmodes, dwbuttonstates) } #[inline] pub unsafe fn phoneSetVolume(hphone: u32, dwhookswitchdev: u32, dwvolume: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneSetVolume(hphone : u32, dwhookswitchdev : u32, dwvolume : u32) -> i32); - phoneSetVolume(core::mem::transmute(hphone), core::mem::transmute(dwhookswitchdev), core::mem::transmute(dwvolume)) + phoneSetVolume(hphone, dwhookswitchdev, dwvolume) } #[inline] pub unsafe fn phoneShutdown(hphoneapp: u32) -> i32 { windows_targets::link!("tapi32.dll" "system" fn phoneShutdown(hphoneapp : u32) -> i32); - phoneShutdown(core::mem::transmute(hphoneapp)) + phoneShutdown(hphoneapp) } #[inline] pub unsafe fn tapiGetLocationInfo(lpszcountrycode: &mut [u8; 8], lpszcitycode: &mut [u8; 8]) -> i32 { @@ -1537,7 +1537,7 @@ pub unsafe fn tapiGetLocationInfoW(lpszcountrycodew: &mut [u16; 8], lpszcitycode #[inline] pub unsafe fn tapiRequestDrop(hwnd: super::super::Foundation::HWND, wrequestid: super::super::Foundation::WPARAM) -> i32 { windows_targets::link!("tapi32.dll" "system" fn tapiRequestDrop(hwnd : super::super::Foundation:: HWND, wrequestid : super::super::Foundation:: WPARAM) -> i32); - tapiRequestDrop(core::mem::transmute(hwnd), core::mem::transmute(wrequestid)) + tapiRequestDrop(hwnd, wrequestid) } #[inline] pub unsafe fn tapiRequestMakeCall(lpszdestaddress: P0, lpszappname: P1, lpszcalledparty: P2, lpszcomment: P3) -> i32 @@ -1583,7 +1583,7 @@ where P9: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestMediaCall(hwnd : super::super::Foundation:: HWND, wrequestid : super::super::Foundation:: WPARAM, lpszdeviceclass : windows_core::PCSTR, lpdeviceid : windows_core::PCSTR, dwsize : u32, dwsecure : u32, lpszdestaddress : windows_core::PCSTR, lpszappname : windows_core::PCSTR, lpszcalledparty : windows_core::PCSTR, lpszcomment : windows_core::PCSTR) -> i32); - tapiRequestMediaCall(core::mem::transmute(hwnd), core::mem::transmute(wrequestid), lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), core::mem::transmute(dwsize), core::mem::transmute(dwsecure), lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) + tapiRequestMediaCall(hwnd, wrequestid, lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), dwsize, dwsecure, lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } #[inline] pub unsafe fn tapiRequestMediaCallA(hwnd: super::super::Foundation::HWND, wrequestid: super::super::Foundation::WPARAM, lpszdeviceclass: P2, lpdeviceid: P3, dwsize: u32, dwsecure: u32, lpszdestaddress: P6, lpszappname: P7, lpszcalledparty: P8, lpszcomment: P9) -> i32 @@ -1596,7 +1596,7 @@ where P9: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestMediaCallA(hwnd : super::super::Foundation:: HWND, wrequestid : super::super::Foundation:: WPARAM, lpszdeviceclass : windows_core::PCSTR, lpdeviceid : windows_core::PCSTR, dwsize : u32, dwsecure : u32, lpszdestaddress : windows_core::PCSTR, lpszappname : windows_core::PCSTR, lpszcalledparty : windows_core::PCSTR, lpszcomment : windows_core::PCSTR) -> i32); - tapiRequestMediaCallA(core::mem::transmute(hwnd), core::mem::transmute(wrequestid), lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), core::mem::transmute(dwsize), core::mem::transmute(dwsecure), lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) + tapiRequestMediaCallA(hwnd, wrequestid, lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), dwsize, dwsecure, lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } #[inline] pub unsafe fn tapiRequestMediaCallW(hwnd: super::super::Foundation::HWND, wrequestid: super::super::Foundation::WPARAM, lpszdeviceclass: P2, lpdeviceid: P3, dwsize: u32, dwsecure: u32, lpszdestaddress: P6, lpszappname: P7, lpszcalledparty: P8, lpszcomment: P9) -> i32 @@ -1609,7 +1609,7 @@ where P9: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestMediaCallW(hwnd : super::super::Foundation:: HWND, wrequestid : super::super::Foundation:: WPARAM, lpszdeviceclass : windows_core::PCWSTR, lpdeviceid : windows_core::PCWSTR, dwsize : u32, dwsecure : u32, lpszdestaddress : windows_core::PCWSTR, lpszappname : windows_core::PCWSTR, lpszcalledparty : windows_core::PCWSTR, lpszcomment : windows_core::PCWSTR) -> i32); - tapiRequestMediaCallW(core::mem::transmute(hwnd), core::mem::transmute(wrequestid), lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), core::mem::transmute(dwsize), core::mem::transmute(dwsecure), lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) + tapiRequestMediaCallW(hwnd, wrequestid, lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), dwsize, dwsecure, lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } pub const ACDGE_GROUP_REMOVED: ACDGROUP_EVENT = ACDGROUP_EVENT(1i32); pub const ACDGE_NEW_GROUP: ACDGROUP_EVENT = ACDGROUP_EVENT(0i32); @@ -2120,13 +2120,13 @@ windows_core::imp::interface_hierarchy!(IEnumACDGroup, windows_core::IUnknown); impl IEnumACDGroup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2201,7 +2201,7 @@ impl IEnumAddress { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2270,13 +2270,13 @@ windows_core::imp::interface_hierarchy!(IEnumAgent, windows_core::IUnknown); impl IEnumAgent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2345,13 +2345,13 @@ windows_core::imp::interface_hierarchy!(IEnumAgentHandler, windows_core::IUnknow impl IEnumAgentHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2420,13 +2420,13 @@ windows_core::imp::interface_hierarchy!(IEnumAgentSession, windows_core::IUnknow impl IEnumAgentSession { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2500,7 +2500,7 @@ impl IEnumBstr { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2563,13 +2563,13 @@ windows_core::imp::interface_hierarchy!(IEnumCall, windows_core::IUnknown); impl IEnumCall { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2644,7 +2644,7 @@ impl IEnumCallHub { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2713,13 +2713,13 @@ windows_core::imp::interface_hierarchy!(IEnumCallingCard, windows_core::IUnknown impl IEnumCallingCard { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2793,7 +2793,7 @@ impl IEnumDialableAddrs { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2862,7 +2862,7 @@ impl IEnumDirectory { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2937,7 +2937,7 @@ impl IEnumDirectoryObject { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3006,13 +3006,13 @@ windows_core::imp::interface_hierarchy!(IEnumLocation, windows_core::IUnknown); impl IEnumLocation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3081,13 +3081,13 @@ windows_core::imp::interface_hierarchy!(IEnumMcastScope, windows_core::IUnknown) impl IEnumMcastScope { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppscopes: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppscopes), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppscopes), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3162,7 +3162,7 @@ impl IEnumPhone { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3237,7 +3237,7 @@ impl IEnumPluggableSuperclassInfo { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3312,7 +3312,7 @@ impl IEnumPluggableTerminalClassInfo { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3381,13 +3381,13 @@ windows_core::imp::interface_hierarchy!(IEnumQueue, windows_core::IUnknown); impl IEnumQueue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3456,13 +3456,13 @@ windows_core::imp::interface_hierarchy!(IEnumStream, windows_core::IUnknown); impl IEnumStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3531,13 +3531,13 @@ windows_core::imp::interface_hierarchy!(IEnumSubStream, windows_core::IUnknown); impl IEnumSubStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3606,13 +3606,13 @@ windows_core::imp::interface_hierarchy!(IEnumTerminal, windows_core::IUnknown); impl IEnumTerminal { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppelements), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3686,7 +3686,7 @@ impl IEnumTerminalClass { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3771,14 +3771,14 @@ impl IMcastAddressAllocation { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestAddress)(windows_core::Interface::as_raw(self), pscope.param().abi(), core::mem::transmute(leasestarttime), core::mem::transmute(leasestoptime), core::mem::transmute(numaddresses), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAddress)(windows_core::Interface::as_raw(self), pscope.param().abi(), leasestarttime, leasestoptime, numaddresses, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RenewAddress(&self, lreserved: i32, prenewrequest: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RenewAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(lreserved), prenewrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RenewAddress)(windows_core::Interface::as_raw(self), lreserved, prenewrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReleaseAddress(&self, preleaserequest: P0) -> windows_core::Result<()> where @@ -3792,12 +3792,12 @@ impl IMcastAddressAllocation { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLeaseInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(leasestarttime), core::mem::transmute(leasestoptime), core::mem::transmute(dwnumaddresses), core::mem::transmute(ppaddresses), prequestid.param().abi(), pserveraddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLeaseInfo)(windows_core::Interface::as_raw(self), leasestarttime, leasestoptime, dwnumaddresses, ppaddresses, prequestid.param().abi(), pserveraddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateLeaseInfoFromVariant(&self, leasestarttime: f64, leasestoptime: f64, vaddresses: &super::super::System::Variant::VARIANT, prequestid: &windows_core::BSTR, pserveraddress: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLeaseInfoFromVariant)(windows_core::Interface::as_raw(self), core::mem::transmute(leasestarttime), core::mem::transmute(leasestoptime), core::mem::transmute_copy(vaddresses), core::mem::transmute_copy(prequestid), core::mem::transmute_copy(pserveraddress), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLeaseInfoFromVariant)(windows_core::Interface::as_raw(self), leasestarttime, leasestoptime, core::mem::transmute_copy(vaddresses), core::mem::transmute_copy(prequestid), core::mem::transmute_copy(pserveraddress), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3934,14 +3934,14 @@ impl IMcastLeaseInfo { (windows_core::Interface::vtable(self).LeaseStartTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeaseStartTime(&self, time: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeaseStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(time)).ok() + (windows_core::Interface::vtable(self).SetLeaseStartTime)(windows_core::Interface::as_raw(self), time).ok() } pub unsafe fn LeaseStopTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LeaseStopTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeaseStopTime(&self, time: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeaseStopTime)(windows_core::Interface::as_raw(self), core::mem::transmute(time)).ok() + (windows_core::Interface::vtable(self).SetLeaseStopTime)(windows_core::Interface::as_raw(self), time).ok() } pub unsafe fn AddressCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4560,7 +4560,7 @@ impl ITAddress { } pub unsafe fn CreateCall(&self, pdestaddress: &windows_core::BSTR, laddresstype: i32, lmediatypes: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdestaddress), core::mem::transmute(laddresstype), core::mem::transmute(lmediatypes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdestaddress), laddresstype, lmediatypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Calls(&self) -> windows_core::Result { @@ -4591,14 +4591,14 @@ impl ITAddress { (windows_core::Interface::vtable(self).CurrentForwardInfo)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMessageWaiting(&self, fmessagewaiting: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageWaiting)(windows_core::Interface::as_raw(self), core::mem::transmute(fmessagewaiting)).ok() + (windows_core::Interface::vtable(self).SetMessageWaiting)(windows_core::Interface::as_raw(self), fmessagewaiting).ok() } pub unsafe fn MessageWaiting(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MessageWaiting)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDoNotDisturb(&self, fdonotdisturb: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDoNotDisturb)(windows_core::Interface::as_raw(self), core::mem::transmute(fdonotdisturb)).ok() + (windows_core::Interface::vtable(self).SetDoNotDisturb)(windows_core::Interface::as_raw(self), fdonotdisturb).ok() } pub unsafe fn DoNotDisturb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4846,16 +4846,16 @@ impl ITAddress2 { } pub unsafe fn get_EventFilter(&self, tapievent: TAPI_EVENT, lsubevent: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(tapievent), core::mem::transmute(lsubevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, &mut result__).map(|| result__) } pub unsafe fn put_EventFilter(&self, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(tapievent), core::mem::transmute(lsubevent), core::mem::transmute(benable)).ok() + (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, benable).ok() } pub unsafe fn DeviceSpecific(&self, pcall: P0, pparams: *const u8, dwsize: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSpecific)(windows_core::Interface::as_raw(self), pcall.param().abi(), core::mem::transmute(pparams), core::mem::transmute(dwsize)).ok() + (windows_core::Interface::vtable(self).DeviceSpecific)(windows_core::Interface::as_raw(self), pcall.param().abi(), pparams, dwsize).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeviceSpecificVariant(&self, pcall: P0, vardevspecificbytearray: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> @@ -4866,7 +4866,7 @@ impl ITAddress2 { } pub unsafe fn NegotiateExtVersion(&self, llowversion: i32, lhighversion: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NegotiateExtVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(llowversion), core::mem::transmute(lhighversion), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).NegotiateExtVersion)(windows_core::Interface::as_raw(self), llowversion, lhighversion, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5026,11 +5026,11 @@ windows_core::imp::interface_hierarchy!(ITAddressCapabilities, windows_core::IUn impl ITAddressCapabilities { pub unsafe fn get_AddressCapability(&self, addresscap: ADDRESS_CAPABILITY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AddressCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(addresscap), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_AddressCapability)(windows_core::Interface::as_raw(self), addresscap, &mut result__).map(|| result__) } pub unsafe fn get_AddressCapabilityString(&self, addresscapstring: ADDRESS_CAPABILITY_STRING) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AddressCapabilityString)(windows_core::Interface::as_raw(self), core::mem::transmute(addresscapstring), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_AddressCapabilityString)(windows_core::Interface::as_raw(self), addresscapstring, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CallTreatments(&self) -> windows_core::Result { @@ -5415,10 +5415,10 @@ windows_core::imp::interface_hierarchy!(ITAddressTranslation, windows_core::IUnk impl ITAddressTranslation { pub unsafe fn TranslateAddress(&self, paddresstotranslate: &windows_core::BSTR, lcard: i32, ltranslateoptions: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TranslateAddress)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(paddresstotranslate), core::mem::transmute(lcard), core::mem::transmute(ltranslateoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TranslateAddress)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(paddresstotranslate), lcard, ltranslateoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TranslateDialog(&self, hwndowner: isize, paddressin: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner), core::mem::transmute_copy(paddressin)).ok() + (windows_core::Interface::vtable(self).TranslateDialog)(windows_core::Interface::as_raw(self), hwndowner, core::mem::transmute_copy(paddressin)).ok() } pub unsafe fn EnumerateLocations(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5700,14 +5700,14 @@ impl ITAgent { (windows_core::Interface::vtable(self).User)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetState(&self, agentstate: AGENT_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(agentstate)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), agentstate).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).State)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMeasurementPeriod(&self, lperiod: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMeasurementPeriod)(windows_core::Interface::as_raw(self), core::mem::transmute(lperiod)).ok() + (windows_core::Interface::vtable(self).SetMeasurementPeriod)(windows_core::Interface::as_raw(self), lperiod).ok() } pub unsafe fn MeasurementPeriod(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6306,7 +6306,7 @@ impl ITAgentSession { (windows_core::Interface::vtable(self).ACDGroup)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetState(&self, sessionstate: AGENT_SESSION_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionstate)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), sessionstate).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6675,7 +6675,7 @@ windows_core::imp::interface_hierarchy!(ITAllocatorProperties, windows_core::IUn impl ITAllocatorProperties { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn SetAllocatorProperties(&self, pallocproperties: *const super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllocatorProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pallocproperties)).ok() + (windows_core::Interface::vtable(self).SetAllocatorProperties)(windows_core::Interface::as_raw(self), pallocproperties).ok() } #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn GetAllocatorProperties(&self) -> windows_core::Result { @@ -6690,7 +6690,7 @@ impl ITAllocatorProperties { (windows_core::Interface::vtable(self).GetAllocateBuffers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferSize(&self, buffersize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferSize)(windows_core::Interface::as_raw(self), core::mem::transmute(buffersize)).ok() + (windows_core::Interface::vtable(self).SetBufferSize)(windows_core::Interface::as_raw(self), buffersize).ok() } pub unsafe fn GetBufferSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6797,7 +6797,7 @@ windows_core::imp::interface_hierarchy!(ITAutomatedPhoneControl, windows_core::I #[cfg(feature = "Win32_System_Com")] impl ITAutomatedPhoneControl { pub unsafe fn StartTone(&self, tone: PHONE_TONE, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartTone)(windows_core::Interface::as_raw(self), core::mem::transmute(tone), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).StartTone)(windows_core::Interface::as_raw(self), tone, lduration).ok() } pub unsafe fn StopTone(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopTone)(windows_core::Interface::as_raw(self)).ok() @@ -6807,7 +6807,7 @@ impl ITAutomatedPhoneControl { (windows_core::Interface::vtable(self).Tone)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn StartRinger(&self, lringmode: i32, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartRinger)(windows_core::Interface::as_raw(self), core::mem::transmute(lringmode), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).StartRinger)(windows_core::Interface::as_raw(self), lringmode, lduration).ok() } pub unsafe fn StopRinger(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopRinger)(windows_core::Interface::as_raw(self)).ok() @@ -6817,77 +6817,77 @@ impl ITAutomatedPhoneControl { (windows_core::Interface::vtable(self).Ringer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPhoneHandlingEnabled(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPhoneHandlingEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetPhoneHandlingEnabled)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn PhoneHandlingEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PhoneHandlingEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoEndOfNumberTimeout(&self, ltimeout: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoEndOfNumberTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout)).ok() + (windows_core::Interface::vtable(self).SetAutoEndOfNumberTimeout)(windows_core::Interface::as_raw(self), ltimeout).ok() } pub unsafe fn AutoEndOfNumberTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoEndOfNumberTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoDialtone(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoDialtone)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetAutoDialtone)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn AutoDialtone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoDialtone)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoStopTonesOnOnHook(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoStopTonesOnOnHook)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetAutoStopTonesOnOnHook)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn AutoStopTonesOnOnHook(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoStopTonesOnOnHook)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoStopRingOnOffHook(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoStopRingOnOffHook)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetAutoStopRingOnOffHook)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn AutoStopRingOnOffHook(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoStopRingOnOffHook)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoKeypadTones(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoKeypadTones)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetAutoKeypadTones)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn AutoKeypadTones(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoKeypadTones)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoKeypadTonesMinimumDuration(&self, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoKeypadTonesMinimumDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).SetAutoKeypadTonesMinimumDuration)(windows_core::Interface::as_raw(self), lduration).ok() } pub unsafe fn AutoKeypadTonesMinimumDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoKeypadTonesMinimumDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoVolumeControl(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoVolumeControl)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetAutoVolumeControl)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn AutoVolumeControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoVolumeControl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoVolumeControlStep(&self, lstepsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoVolumeControlStep)(windows_core::Interface::as_raw(self), core::mem::transmute(lstepsize)).ok() + (windows_core::Interface::vtable(self).SetAutoVolumeControlStep)(windows_core::Interface::as_raw(self), lstepsize).ok() } pub unsafe fn AutoVolumeControlStep(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoVolumeControlStep)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoVolumeControlRepeatDelay(&self, ldelay: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoVolumeControlRepeatDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(ldelay)).ok() + (windows_core::Interface::vtable(self).SetAutoVolumeControlRepeatDelay)(windows_core::Interface::as_raw(self), ldelay).ok() } pub unsafe fn AutoVolumeControlRepeatDelay(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoVolumeControlRepeatDelay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoVolumeControlRepeatPeriod(&self, lperiod: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoVolumeControlRepeatPeriod)(windows_core::Interface::as_raw(self), core::mem::transmute(lperiod)).ok() + (windows_core::Interface::vtable(self).SetAutoVolumeControlRepeatPeriod)(windows_core::Interface::as_raw(self), lperiod).ok() } pub unsafe fn AutoVolumeControlRepeatPeriod(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6897,7 +6897,7 @@ impl ITAutomatedPhoneControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectCall)(windows_core::Interface::as_raw(self), pcall.param().abi(), core::mem::transmute(fselectdefaultterminals)).ok() + (windows_core::Interface::vtable(self).SelectCall)(windows_core::Interface::as_raw(self), pcall.param().abi(), fselectdefaultterminals).ok() } pub unsafe fn UnselectCall(&self, pcall: P0) -> windows_core::Result<()> where @@ -7267,14 +7267,14 @@ windows_core::imp::interface_hierarchy!(ITBasicAudioTerminal, windows_core::IUnk #[cfg(feature = "Win32_System_Com")] impl ITBasicAudioTerminal { pub unsafe fn SetVolume(&self, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), lvolume).ok() } pub unsafe fn Volume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Volume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBalance(&self, lbalance: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(lbalance)).ok() + (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), lbalance).ok() } pub unsafe fn Balance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7356,34 +7356,34 @@ windows_core::imp::interface_hierarchy!(ITBasicCallControl, windows_core::IUnkno #[cfg(feature = "Win32_System_Com")] impl ITBasicCallControl { pub unsafe fn Connect(&self, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), core::mem::transmute(fsync)).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), fsync).ok() } pub unsafe fn Answer(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Answer)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Disconnect(&self, code: DISCONNECT_CODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(code)).ok() + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), code).ok() } pub unsafe fn Hold(&self, fhold: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Hold)(windows_core::Interface::as_raw(self), core::mem::transmute(fhold)).ok() + (windows_core::Interface::vtable(self).Hold)(windows_core::Interface::as_raw(self), fhold).ok() } pub unsafe fn HandoffDirect(&self, papplicationname: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HandoffDirect)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(papplicationname)).ok() } pub unsafe fn HandoffIndirect(&self, lmediatype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandoffIndirect)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype)).ok() + (windows_core::Interface::vtable(self).HandoffIndirect)(windows_core::Interface::as_raw(self), lmediatype).ok() } pub unsafe fn Conference(&self, pcall: P0, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Conference)(windows_core::Interface::as_raw(self), pcall.param().abi(), core::mem::transmute(fsync)).ok() + (windows_core::Interface::vtable(self).Conference)(windows_core::Interface::as_raw(self), pcall.param().abi(), fsync).ok() } pub unsafe fn Transfer(&self, pcall: P0, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Transfer)(windows_core::Interface::as_raw(self), pcall.param().abi(), core::mem::transmute(fsync)).ok() + (windows_core::Interface::vtable(self).Transfer)(windows_core::Interface::as_raw(self), pcall.param().abi(), fsync).ok() } pub unsafe fn BlindTransfer(&self, pdestaddress: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BlindTransfer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdestaddress)).ok() @@ -7405,7 +7405,7 @@ impl ITBasicCallControl { (windows_core::Interface::vtable(self).Unpark)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetQOS(&self, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQOS)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), core::mem::transmute(servicelevel)).ok() + (windows_core::Interface::vtable(self).SetQOS)(windows_core::Interface::as_raw(self), lmediatype, servicelevel).ok() } pub unsafe fn Pickup(&self, pgroupid: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pickup)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pgroupid)).ok() @@ -7414,7 +7414,7 @@ impl ITBasicCallControl { (windows_core::Interface::vtable(self).Dial)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdestaddress)).ok() } pub unsafe fn Finish(&self, finishmode: FINISH_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), core::mem::transmute(finishmode)).ok() + (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), finishmode).ok() } pub unsafe fn RemoveFromConference(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveFromConference)(windows_core::Interface::as_raw(self)).ok() @@ -7588,7 +7588,7 @@ windows_core::imp::interface_hierarchy!(ITBasicCallControl2, windows_core::IUnkn impl ITBasicCallControl2 { pub unsafe fn RequestTerminal(&self, bstrterminalclassguid: &windows_core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestTerminal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrterminalclassguid), core::mem::transmute(lmediatype), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestTerminal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrterminalclassguid), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectTerminalOnCall(&self, pterminal: P0) -> windows_core::Result<()> where @@ -7885,32 +7885,32 @@ impl ITCallInfo { } pub unsafe fn get_CallInfoLong(&self, callinfolong: CALLINFO_LONG) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CallInfoLong)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfolong), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_CallInfoLong)(windows_core::Interface::as_raw(self), callinfolong, &mut result__).map(|| result__) } pub unsafe fn put_CallInfoLong(&self, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_CallInfoLong)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfolong), core::mem::transmute(lcallinfolongval)).ok() + (windows_core::Interface::vtable(self).put_CallInfoLong)(windows_core::Interface::as_raw(self), callinfolong, lcallinfolongval).ok() } pub unsafe fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CallInfoString)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfostring), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_CallInfoString)(windows_core::Interface::as_raw(self), callinfostring, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_CallInfoString)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfostring), core::mem::transmute_copy(pcallinfostring)).ok() + (windows_core::Interface::vtable(self).put_CallInfoString)(windows_core::Interface::as_raw(self), callinfostring, core::mem::transmute_copy(pcallinfostring)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CallInfoBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfobuffer), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_CallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn put_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_CallInfoBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfobuffer), core::mem::transmute_copy(pcallinfobuffer)).ok() + (windows_core::Interface::vtable(self).put_CallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, core::mem::transmute_copy(pcallinfobuffer)).ok() } pub unsafe fn GetCallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pdwsize: *mut u32, ppcallinfobuffer: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCallInfoBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfobuffer), core::mem::transmute(pdwsize), core::mem::transmute(ppcallinfobuffer)).ok() + (windows_core::Interface::vtable(self).GetCallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, core::mem::transmute(pdwsize), core::mem::transmute(ppcallinfobuffer)).ok() } pub unsafe fn SetCallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCallInfoBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(callinfobuffer), pcallinfobuffer.len().try_into().unwrap(), core::mem::transmute(pcallinfobuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetCallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, pcallinfobuffer.len().try_into().unwrap(), core::mem::transmute(pcallinfobuffer.as_ptr())).ok() } pub unsafe fn ReleaseUserUserInfo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseUserUserInfo)(windows_core::Interface::as_raw(self)).ok() @@ -8091,10 +8091,10 @@ windows_core::imp::interface_hierarchy!(ITCallInfo2, windows_core::IUnknown, sup impl ITCallInfo2 { pub unsafe fn get_EventFilter(&self, tapievent: TAPI_EVENT, lsubevent: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(tapievent), core::mem::transmute(lsubevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, &mut result__).map(|| result__) } pub unsafe fn put_EventFilter(&self, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(tapievent), core::mem::transmute(lsubevent), core::mem::transmute(benable)).ok() + (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, benable).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8724,7 +8724,7 @@ impl ITCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8809,10 +8809,10 @@ windows_core::imp::interface_hierarchy!(ITCollection2, windows_core::IUnknown, s impl ITCollection2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, index: i32, pvariant: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pvariant)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pvariant)).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8867,28 +8867,28 @@ impl ITCustomTone { (windows_core::Interface::vtable(self).Frequency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFrequency(&self, lfrequency: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(lfrequency)).ok() + (windows_core::Interface::vtable(self).SetFrequency)(windows_core::Interface::as_raw(self), lfrequency).ok() } pub unsafe fn CadenceOn(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CadenceOn)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCadenceOn(&self, cadenceon: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCadenceOn)(windows_core::Interface::as_raw(self), core::mem::transmute(cadenceon)).ok() + (windows_core::Interface::vtable(self).SetCadenceOn)(windows_core::Interface::as_raw(self), cadenceon).ok() } pub unsafe fn CadenceOff(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CadenceOff)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCadenceOff(&self, lcadenceoff: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCadenceOff)(windows_core::Interface::as_raw(self), core::mem::transmute(lcadenceoff)).ok() + (windows_core::Interface::vtable(self).SetCadenceOff)(windows_core::Interface::as_raw(self), lcadenceoff).ok() } pub unsafe fn Volume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Volume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVolume(&self, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), lvolume).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9010,21 +9010,21 @@ impl ITDetectTone { (windows_core::Interface::vtable(self).AppSpecific)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(lappspecific)).ok() + (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), lappspecific).ok() } pub unsafe fn Duration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Duration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDuration(&self, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), lduration).ok() } pub unsafe fn get_Frequency(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Frequency)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_Frequency)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn put_Frequency(&self, index: i32, lfrequency: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Frequency)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(lfrequency)).ok() + (windows_core::Interface::vtable(self).put_Frequency)(windows_core::Interface::as_raw(self), index, lfrequency).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9481,16 +9481,16 @@ impl ITDirectory { (windows_core::Interface::vtable(self).DefaultObjectTTL)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultObjectTTL(&self, ttl: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultObjectTTL)(windows_core::Interface::as_raw(self), core::mem::transmute(ttl)).ok() + (windows_core::Interface::vtable(self).SetDefaultObjectTTL)(windows_core::Interface::as_raw(self), ttl).ok() } pub unsafe fn EnableAutoRefresh(&self, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableAutoRefresh)(windows_core::Interface::as_raw(self), core::mem::transmute(fenable)).ok() + (windows_core::Interface::vtable(self).EnableAutoRefresh)(windows_core::Interface::as_raw(self), fenable).ok() } pub unsafe fn Connect(&self, fsecure: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), core::mem::transmute(fsecure)).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), fsecure).ok() } pub unsafe fn Bind(&self, pdomainname: &windows_core::BSTR, pusername: &windows_core::BSTR, ppassword: &windows_core::BSTR, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdomainname), core::mem::transmute_copy(pusername), core::mem::transmute_copy(ppassword), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdomainname), core::mem::transmute_copy(pusername), core::mem::transmute_copy(ppassword), lflags).ok() } pub unsafe fn AddDirectoryObject(&self, pdirectoryobject: P0) -> windows_core::Result<()> where @@ -9519,11 +9519,11 @@ impl ITDirectory { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_DirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DirectoryObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(directoryobjecttype), core::mem::transmute_copy(pname), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_DirectoryObjects)(windows_core::Interface::as_raw(self), directoryobjecttype, core::mem::transmute_copy(pname), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EnumerateDirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateDirectoryObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(directoryobjecttype), core::mem::transmute_copy(pname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateDirectoryObjects)(windows_core::Interface::as_raw(self), directoryobjecttype, core::mem::transmute_copy(pname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -9711,11 +9711,11 @@ impl ITDirectoryObject { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_DialableAddrs(&self, dwaddresstype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DialableAddrs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaddresstype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_DialableAddrs)(windows_core::Interface::as_raw(self), dwaddresstype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EnumerateDialableAddrs(&self, dwaddresstype: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateDialableAddrs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaddresstype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateDialableAddrs)(windows_core::Interface::as_raw(self), dwaddresstype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SecurityDescriptor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9860,7 +9860,7 @@ impl ITDirectoryObjectConference { (windows_core::Interface::vtable(self).AdvertisingScope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAdvertisingScope(&self, advertisingscope: RND_ADVERTISING_SCOPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAdvertisingScope)(windows_core::Interface::as_raw(self), core::mem::transmute(advertisingscope)).ok() + (windows_core::Interface::vtable(self).SetAdvertisingScope)(windows_core::Interface::as_raw(self), advertisingscope).ok() } pub unsafe fn Url(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9881,21 +9881,21 @@ impl ITDirectoryObjectConference { (windows_core::Interface::vtable(self).IsEncrypted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsEncrypted(&self, fencrypted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsEncrypted)(windows_core::Interface::as_raw(self), core::mem::transmute(fencrypted)).ok() + (windows_core::Interface::vtable(self).SetIsEncrypted)(windows_core::Interface::as_raw(self), fencrypted).ok() } pub unsafe fn StartTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartTime(&self, date: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(date)).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), date).ok() } pub unsafe fn StopTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StopTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStopTime(&self, date: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopTime)(windows_core::Interface::as_raw(self), core::mem::transmute(date)).ok() + (windows_core::Interface::vtable(self).SetStopTime)(windows_core::Interface::as_raw(self), date).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10471,25 +10471,25 @@ windows_core::imp::interface_hierarchy!(ITForwardInformation, windows_core::IUnk #[cfg(feature = "Win32_System_Com")] impl ITForwardInformation { pub unsafe fn SetNumRingsNoAnswer(&self, lnumrings: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumRingsNoAnswer)(windows_core::Interface::as_raw(self), core::mem::transmute(lnumrings)).ok() + (windows_core::Interface::vtable(self).SetNumRingsNoAnswer)(windows_core::Interface::as_raw(self), lnumrings).ok() } pub unsafe fn NumRingsNoAnswer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NumRingsNoAnswer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForwardType(&self, forwardtype: i32, pdestaddress: &windows_core::BSTR, pcalleraddress: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForwardType)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), core::mem::transmute_copy(pdestaddress), core::mem::transmute_copy(pcalleraddress)).ok() + (windows_core::Interface::vtable(self).SetForwardType)(windows_core::Interface::as_raw(self), forwardtype, core::mem::transmute_copy(pdestaddress), core::mem::transmute_copy(pcalleraddress)).ok() } pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ForwardTypeDestination)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_ForwardTypeDestination)(windows_core::Interface::as_raw(self), forwardtype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_ForwardTypeCaller(&self, forwardtype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ForwardTypeCaller)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_ForwardTypeCaller)(windows_core::Interface::as_raw(self), forwardtype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: *mut windows_core::BSTR, ppcalleraddress: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetForwardType)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), core::mem::transmute(ppdestinationaddress), core::mem::transmute(ppcalleraddress)).ok() + (windows_core::Interface::vtable(self).GetForwardType)(windows_core::Interface::as_raw(self), forwardtype, core::mem::transmute(ppdestinationaddress), core::mem::transmute(ppcalleraddress)).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -10597,18 +10597,18 @@ windows_core::imp::interface_hierarchy!(ITForwardInformation2, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ITForwardInformation2 { pub unsafe fn SetForwardType2(&self, forwardtype: i32, pdestaddress: &windows_core::BSTR, destaddresstype: i32, pcalleraddress: &windows_core::BSTR, calleraddresstype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForwardType2)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), core::mem::transmute_copy(pdestaddress), core::mem::transmute(destaddresstype), core::mem::transmute_copy(pcalleraddress), core::mem::transmute(calleraddresstype)).ok() + (windows_core::Interface::vtable(self).SetForwardType2)(windows_core::Interface::as_raw(self), forwardtype, core::mem::transmute_copy(pdestaddress), destaddresstype, core::mem::transmute_copy(pcalleraddress), calleraddresstype).ok() } pub unsafe fn GetForwardType2(&self, forwardtype: i32, ppdestinationaddress: *mut windows_core::BSTR, pdestaddresstype: *mut i32, ppcalleraddress: *mut windows_core::BSTR, pcalleraddresstype: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetForwardType2)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), core::mem::transmute(ppdestinationaddress), core::mem::transmute(pdestaddresstype), core::mem::transmute(ppcalleraddress), core::mem::transmute(pcalleraddresstype)).ok() + (windows_core::Interface::vtable(self).GetForwardType2)(windows_core::Interface::as_raw(self), forwardtype, core::mem::transmute(ppdestinationaddress), core::mem::transmute(pdestaddresstype), core::mem::transmute(ppcalleraddress), core::mem::transmute(pcalleraddresstype)).ok() } pub unsafe fn get_ForwardTypeDestinationAddressType(&self, forwardtype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ForwardTypeDestinationAddressType)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ForwardTypeDestinationAddressType)(windows_core::Interface::as_raw(self), forwardtype, &mut result__).map(|| result__) } pub unsafe fn get_ForwardTypeCallerAddressType(&self, forwardtype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ForwardTypeCallerAddressType)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ForwardTypeCallerAddressType)(windows_core::Interface::as_raw(self), forwardtype, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10690,7 +10690,7 @@ impl ITILSConfig { (windows_core::Interface::vtable(self).Port)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPort(&self, port: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), core::mem::transmute(port)).ok() + (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), port).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10795,10 +10795,10 @@ impl core::ops::Deref for ITLegacyAddressMediaControl2 { windows_core::imp::interface_hierarchy!(ITLegacyAddressMediaControl2, windows_core::IUnknown, ITLegacyAddressMediaControl); impl ITLegacyAddressMediaControl2 { pub unsafe fn ConfigDialog(&self, hwndowner: super::super::Foundation::HWND, pdeviceclass: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner), core::mem::transmute_copy(pdeviceclass)).ok() + (windows_core::Interface::vtable(self).ConfigDialog)(windows_core::Interface::as_raw(self), hwndowner, core::mem::transmute_copy(pdeviceclass)).ok() } pub unsafe fn ConfigDialogEdit(&self, hwndowner: super::super::Foundation::HWND, pdeviceclass: &windows_core::BSTR, pdeviceconfigin: &[u8], pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigDialogEdit)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner), core::mem::transmute_copy(pdeviceclass), pdeviceconfigin.len().try_into().unwrap(), core::mem::transmute(pdeviceconfigin.as_ptr()), core::mem::transmute(pdwsizeout), core::mem::transmute(ppdeviceconfigout)).ok() + (windows_core::Interface::vtable(self).ConfigDialogEdit)(windows_core::Interface::as_raw(self), hwndowner, core::mem::transmute_copy(pdeviceclass), pdeviceconfigin.len().try_into().unwrap(), core::mem::transmute(pdeviceconfigin.as_ptr()), core::mem::transmute(pdwsizeout), core::mem::transmute(ppdeviceconfigout)).ok() } } #[repr(C)] @@ -10846,19 +10846,19 @@ windows_core::imp::interface_hierarchy!(ITLegacyCallMediaControl, windows_core:: #[cfg(feature = "Win32_System_Com")] impl ITLegacyCallMediaControl { pub unsafe fn DetectDigits(&self, digitmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DetectDigits)(windows_core::Interface::as_raw(self), core::mem::transmute(digitmode)).ok() + (windows_core::Interface::vtable(self).DetectDigits)(windows_core::Interface::as_raw(self), digitmode).ok() } pub unsafe fn GenerateDigits(&self, pdigits: &windows_core::BSTR, digitmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GenerateDigits)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdigits), core::mem::transmute(digitmode)).ok() + (windows_core::Interface::vtable(self).GenerateDigits)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdigits), digitmode).ok() } pub unsafe fn GetID(&self, pdeviceclass: &windows_core::BSTR, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdeviceclass), core::mem::transmute(pdwsize), core::mem::transmute(ppdeviceid)).ok() } pub unsafe fn SetMediaType(&self, lmediatype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype)).ok() + (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), lmediatype).ok() } pub unsafe fn MonitorMedia(&self, lmediatype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MonitorMedia)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype)).ok() + (windows_core::Interface::vtable(self).MonitorMedia)(windows_core::Interface::as_raw(self), lmediatype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10931,13 +10931,13 @@ windows_core::imp::interface_hierarchy!(ITLegacyCallMediaControl2, windows_core: #[cfg(feature = "Win32_System_Com")] impl ITLegacyCallMediaControl2 { pub unsafe fn GenerateDigits2(&self, pdigits: &windows_core::BSTR, digitmode: i32, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GenerateDigits2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdigits), core::mem::transmute(digitmode), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).GenerateDigits2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pdigits), digitmode, lduration).ok() } pub unsafe fn GatherDigits(&self, digitmode: i32, lnumdigits: i32, pterminationdigits: &windows_core::BSTR, lfirstdigittimeout: i32, linterdigittimeout: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GatherDigits)(windows_core::Interface::as_raw(self), core::mem::transmute(digitmode), core::mem::transmute(lnumdigits), core::mem::transmute_copy(pterminationdigits), core::mem::transmute(lfirstdigittimeout), core::mem::transmute(linterdigittimeout)).ok() + (windows_core::Interface::vtable(self).GatherDigits)(windows_core::Interface::as_raw(self), digitmode, lnumdigits, core::mem::transmute_copy(pterminationdigits), lfirstdigittimeout, linterdigittimeout).ok() } pub unsafe fn DetectTones(&self, ptonelist: *const TAPI_DETECTTONE, lnumtones: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DetectTones)(windows_core::Interface::as_raw(self), core::mem::transmute(ptonelist), core::mem::transmute(lnumtones)).ok() + (windows_core::Interface::vtable(self).DetectTones)(windows_core::Interface::as_raw(self), ptonelist, lnumtones).ok() } pub unsafe fn DetectTonesByCollection(&self, pdetecttonecollection: P0) -> windows_core::Result<()> where @@ -10946,16 +10946,16 @@ impl ITLegacyCallMediaControl2 { (windows_core::Interface::vtable(self).DetectTonesByCollection)(windows_core::Interface::as_raw(self), pdetecttonecollection.param().abi()).ok() } pub unsafe fn GenerateTone(&self, tonemode: TAPI_TONEMODE, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GenerateTone)(windows_core::Interface::as_raw(self), core::mem::transmute(tonemode), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).GenerateTone)(windows_core::Interface::as_raw(self), tonemode, lduration).ok() } pub unsafe fn GenerateCustomTones(&self, ptonelist: *const TAPI_CUSTOMTONE, lnumtones: i32, lduration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GenerateCustomTones)(windows_core::Interface::as_raw(self), core::mem::transmute(ptonelist), core::mem::transmute(lnumtones), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).GenerateCustomTones)(windows_core::Interface::as_raw(self), ptonelist, lnumtones, lduration).ok() } pub unsafe fn GenerateCustomTonesByCollection(&self, pcustomtonecollection: P0, lduration: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateCustomTonesByCollection)(windows_core::Interface::as_raw(self), pcustomtonecollection.param().abi(), core::mem::transmute(lduration)).ok() + (windows_core::Interface::vtable(self).GenerateCustomTonesByCollection)(windows_core::Interface::as_raw(self), pcustomtonecollection.param().abi(), lduration).ok() } pub unsafe fn CreateDetectToneObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11358,7 +11358,7 @@ windows_core::imp::define_interface!(ITMSPAddress, ITMSPAddress_Vtbl, 0xee3bd600 windows_core::imp::interface_hierarchy!(ITMSPAddress, windows_core::IUnknown); impl ITMSPAddress { pub unsafe fn Initialize(&self, hevent: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hevent).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -11368,7 +11368,7 @@ impl ITMSPAddress { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMSPCall)(windows_core::Interface::as_raw(self), core::mem::transmute(hcall), core::mem::transmute(dwreserved), core::mem::transmute(dwmediatype), pouterunknown.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMSPCall)(windows_core::Interface::as_raw(self), hcall, dwreserved, dwmediatype, pouterunknown.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShutdownMSPCall(&self, pstreamcontrol: P0) -> windows_core::Result<()> where @@ -11684,7 +11684,7 @@ impl ITMediaSupport { } pub unsafe fn QueryMediaType(&self, lmediatype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryMediaType)(windows_core::Interface::as_raw(self), lmediatype, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11758,7 +11758,7 @@ impl ITMultiTrackTerminal { } pub unsafe fn CreateTrackTerminal(&self, mediatype: i32, terminaldirection: TERMINAL_DIRECTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTrackTerminal)(windows_core::Interface::as_raw(self), core::mem::transmute(mediatype), core::mem::transmute(terminaldirection), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTrackTerminal)(windows_core::Interface::as_raw(self), mediatype, terminaldirection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MediaTypesInUse(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11885,7 +11885,7 @@ windows_core::imp::interface_hierarchy!(ITPhone, windows_core::IUnknown, super:: #[cfg(feature = "Win32_System_Com")] impl ITPhone { pub unsafe fn Open(&self, privilege: PHONE_PRIVILEGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(privilege)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), privilege).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -11901,11 +11901,11 @@ impl ITPhone { } pub unsafe fn get_PhoneCapsLong(&self, pclcap: PHONECAPS_LONG) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PhoneCapsLong)(windows_core::Interface::as_raw(self), core::mem::transmute(pclcap), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_PhoneCapsLong)(windows_core::Interface::as_raw(self), pclcap, &mut result__).map(|| result__) } pub unsafe fn get_PhoneCapsString(&self, pcscap: PHONECAPS_STRING) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PhoneCapsString)(windows_core::Interface::as_raw(self), core::mem::transmute(pcscap), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PhoneCapsString)(windows_core::Interface::as_raw(self), pcscap, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Terminals(&self, paddress: P0) -> windows_core::Result @@ -11924,45 +11924,45 @@ impl ITPhone { } pub unsafe fn get_ButtonMode(&self, lbuttonid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ButtonMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ButtonMode)(windows_core::Interface::as_raw(self), lbuttonid, &mut result__).map(|| result__) } pub unsafe fn put_ButtonMode(&self, lbuttonid: i32, buttonmode: PHONE_BUTTON_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ButtonMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), core::mem::transmute(buttonmode)).ok() + (windows_core::Interface::vtable(self).put_ButtonMode)(windows_core::Interface::as_raw(self), lbuttonid, buttonmode).ok() } pub unsafe fn get_ButtonFunction(&self, lbuttonid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ButtonFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ButtonFunction)(windows_core::Interface::as_raw(self), lbuttonid, &mut result__).map(|| result__) } pub unsafe fn put_ButtonFunction(&self, lbuttonid: i32, buttonfunction: PHONE_BUTTON_FUNCTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ButtonFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), core::mem::transmute(buttonfunction)).ok() + (windows_core::Interface::vtable(self).put_ButtonFunction)(windows_core::Interface::as_raw(self), lbuttonid, buttonfunction).ok() } pub unsafe fn get_ButtonText(&self, lbuttonid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ButtonText)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_ButtonText)(windows_core::Interface::as_raw(self), lbuttonid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_ButtonText(&self, lbuttonid: i32, bstrbuttontext: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ButtonText)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), core::mem::transmute_copy(bstrbuttontext)).ok() + (windows_core::Interface::vtable(self).put_ButtonText)(windows_core::Interface::as_raw(self), lbuttonid, core::mem::transmute_copy(bstrbuttontext)).ok() } pub unsafe fn get_ButtonState(&self, lbuttonid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ButtonState)(windows_core::Interface::as_raw(self), core::mem::transmute(lbuttonid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ButtonState)(windows_core::Interface::as_raw(self), lbuttonid, &mut result__).map(|| result__) } pub unsafe fn get_HookSwitchState(&self, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_HookSwitchState)(windows_core::Interface::as_raw(self), core::mem::transmute(hookswitchdevice), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_HookSwitchState)(windows_core::Interface::as_raw(self), hookswitchdevice, &mut result__).map(|| result__) } pub unsafe fn put_HookSwitchState(&self, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, hookswitchstate: PHONE_HOOK_SWITCH_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_HookSwitchState)(windows_core::Interface::as_raw(self), core::mem::transmute(hookswitchdevice), core::mem::transmute(hookswitchstate)).ok() + (windows_core::Interface::vtable(self).put_HookSwitchState)(windows_core::Interface::as_raw(self), hookswitchdevice, hookswitchstate).ok() } pub unsafe fn SetRingMode(&self, lringmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lringmode)).ok() + (windows_core::Interface::vtable(self).SetRingMode)(windows_core::Interface::as_raw(self), lringmode).ok() } pub unsafe fn RingMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RingMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRingVolume(&self, lringvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRingVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lringvolume)).ok() + (windows_core::Interface::vtable(self).SetRingVolume)(windows_core::Interface::as_raw(self), lringvolume).ok() } pub unsafe fn RingVolume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11973,26 +11973,26 @@ impl ITPhone { (windows_core::Interface::vtable(self).Privilege)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPhoneCapsBuffer(&self, pcbcaps: PHONECAPS_BUFFER, pdwsize: *mut u32, ppphonecapsbuffer: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPhoneCapsBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbcaps), core::mem::transmute(pdwsize), core::mem::transmute(ppphonecapsbuffer)).ok() + (windows_core::Interface::vtable(self).GetPhoneCapsBuffer)(windows_core::Interface::as_raw(self), pcbcaps, core::mem::transmute(pdwsize), core::mem::transmute(ppphonecapsbuffer)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_PhoneCapsBuffer(&self, pcbcaps: PHONECAPS_BUFFER) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PhoneCapsBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbcaps), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PhoneCapsBuffer)(windows_core::Interface::as_raw(self), pcbcaps, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_LampMode(&self, llampid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_LampMode)(windows_core::Interface::as_raw(self), core::mem::transmute(llampid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_LampMode)(windows_core::Interface::as_raw(self), llampid, &mut result__).map(|| result__) } pub unsafe fn put_LampMode(&self, llampid: i32, lampmode: PHONE_LAMP_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_LampMode)(windows_core::Interface::as_raw(self), core::mem::transmute(llampid), core::mem::transmute(lampmode)).ok() + (windows_core::Interface::vtable(self).put_LampMode)(windows_core::Interface::as_raw(self), llampid, lampmode).ok() } pub unsafe fn Display(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Display)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetDisplay(&self, lrow: i32, lcolumn: i32, bstrdisplay: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(lrow), core::mem::transmute(lcolumn), core::mem::transmute_copy(bstrdisplay)).ok() + (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), lrow, lcolumn, core::mem::transmute_copy(bstrdisplay)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PreferredAddresses(&self) -> windows_core::Result { @@ -12004,7 +12004,7 @@ impl ITPhone { (windows_core::Interface::vtable(self).EnumeratePreferredAddresses)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeviceSpecific(&self, pparams: *const u8, dwsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(pparams), core::mem::transmute(dwsize)).ok() + (windows_core::Interface::vtable(self).DeviceSpecific)(windows_core::Interface::as_raw(self), pparams, dwsize).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeviceSpecificVariant(&self, vardevspecificbytearray: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -12012,7 +12012,7 @@ impl ITPhone { } pub unsafe fn NegotiateExtVersion(&self, llowversion: i32, lhighversion: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NegotiateExtVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(llowversion), core::mem::transmute(lhighversion), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).NegotiateExtVersion)(windows_core::Interface::as_raw(self), llowversion, lhighversion, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -13211,7 +13211,7 @@ windows_core::imp::interface_hierarchy!(ITQueue, windows_core::IUnknown, super:: #[cfg(feature = "Win32_System_Com")] impl ITQueue { pub unsafe fn SetMeasurementPeriod(&self, lperiod: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMeasurementPeriod)(windows_core::Interface::as_raw(self), core::mem::transmute(lperiod)).ok() + (windows_core::Interface::vtable(self).SetMeasurementPeriod)(windows_core::Interface::as_raw(self), lperiod).ok() } pub unsafe fn MeasurementPeriod(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13518,11 +13518,11 @@ impl ITRendezvous { } pub unsafe fn CreateDirectory(&self, directorytype: DIRECTORY_TYPE, pname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(directorytype), core::mem::transmute_copy(pname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirectory)(windows_core::Interface::as_raw(self), directorytype, core::mem::transmute_copy(pname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDirectoryObject(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirectoryObject)(windows_core::Interface::as_raw(self), core::mem::transmute(directoryobjecttype), core::mem::transmute_copy(pname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirectoryObject)(windows_core::Interface::as_raw(self), directoryobjecttype, core::mem::transmute_copy(pname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -13798,42 +13798,42 @@ impl ITScriptableAudioFormat { (windows_core::Interface::vtable(self).Channels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannels(&self, nnewval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannels)(windows_core::Interface::as_raw(self), core::mem::transmute(nnewval)).ok() + (windows_core::Interface::vtable(self).SetChannels)(windows_core::Interface::as_raw(self), nnewval).ok() } pub unsafe fn SamplesPerSec(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SamplesPerSec)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSamplesPerSec(&self, nnewval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSamplesPerSec)(windows_core::Interface::as_raw(self), core::mem::transmute(nnewval)).ok() + (windows_core::Interface::vtable(self).SetSamplesPerSec)(windows_core::Interface::as_raw(self), nnewval).ok() } pub unsafe fn AvgBytesPerSec(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AvgBytesPerSec)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAvgBytesPerSec(&self, nnewval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAvgBytesPerSec)(windows_core::Interface::as_raw(self), core::mem::transmute(nnewval)).ok() + (windows_core::Interface::vtable(self).SetAvgBytesPerSec)(windows_core::Interface::as_raw(self), nnewval).ok() } pub unsafe fn BlockAlign(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BlockAlign)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBlockAlign(&self, nnewval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlockAlign)(windows_core::Interface::as_raw(self), core::mem::transmute(nnewval)).ok() + (windows_core::Interface::vtable(self).SetBlockAlign)(windows_core::Interface::as_raw(self), nnewval).ok() } pub unsafe fn BitsPerSample(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BitsPerSample)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBitsPerSample(&self, nnewval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBitsPerSample)(windows_core::Interface::as_raw(self), core::mem::transmute(nnewval)).ok() + (windows_core::Interface::vtable(self).SetBitsPerSample)(windows_core::Interface::as_raw(self), nnewval).ok() } pub unsafe fn FormatTag(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FormatTag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFormatTag(&self, nnewval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormatTag)(windows_core::Interface::as_raw(self), core::mem::transmute(nnewval)).ok() + (windows_core::Interface::vtable(self).SetFormatTag)(windows_core::Interface::as_raw(self), nnewval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14221,7 +14221,7 @@ windows_core::imp::interface_hierarchy!(ITStreamControl, windows_core::IUnknown, impl ITStreamControl { pub unsafe fn CreateStream(&self, lmediatype: i32, td: TERMINAL_DIRECTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), core::mem::transmute(td), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), lmediatype, td, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveStream(&self, pstream: P0) -> windows_core::Result<()> where @@ -14591,10 +14591,10 @@ impl ITTAPI { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterCallNotifications)(windows_core::Interface::as_raw(self), paddress.param().abi(), core::mem::transmute(fmonitor), core::mem::transmute(fowner), core::mem::transmute(lmediatypes), core::mem::transmute(lcallbackinstance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterCallNotifications)(windows_core::Interface::as_raw(self), paddress.param().abi(), fmonitor, fowner, lmediatypes, lcallbackinstance, &mut result__).map(|| result__) } pub unsafe fn UnregisterNotifications(&self, lregister: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterNotifications)(windows_core::Interface::as_raw(self), core::mem::transmute(lregister)).ok() + (windows_core::Interface::vtable(self).UnregisterNotifications)(windows_core::Interface::as_raw(self), lregister).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CallHubs(&self) -> windows_core::Result { @@ -14607,7 +14607,7 @@ impl ITTAPI { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetCallHubTracking(&self, paddresses: &super::super::System::Variant::VARIANT, btracking: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCallHubTracking)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(paddresses), core::mem::transmute(btracking)).ok() + (windows_core::Interface::vtable(self).SetCallHubTracking)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(paddresses), btracking).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumeratePrivateTAPIObjects(&self) -> windows_core::Result { @@ -14620,16 +14620,16 @@ impl ITTAPI { (windows_core::Interface::vtable(self).PrivateTAPIObjects)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RegisterRequestRecipient(&self, lregistrationinstance: i32, lrequestmode: i32, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterRequestRecipient)(windows_core::Interface::as_raw(self), core::mem::transmute(lregistrationinstance), core::mem::transmute(lrequestmode), core::mem::transmute(fenable)).ok() + (windows_core::Interface::vtable(self).RegisterRequestRecipient)(windows_core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable).ok() } pub unsafe fn SetAssistedTelephonyPriority(&self, pappfilename: &windows_core::BSTR, fpriority: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssistedTelephonyPriority)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pappfilename), core::mem::transmute(fpriority)).ok() + (windows_core::Interface::vtable(self).SetAssistedTelephonyPriority)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pappfilename), fpriority).ok() } pub unsafe fn SetApplicationPriority(&self, pappfilename: &windows_core::BSTR, lmediatype: i32, fpriority: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetApplicationPriority)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pappfilename), core::mem::transmute(lmediatype), core::mem::transmute(fpriority)).ok() + (windows_core::Interface::vtable(self).SetApplicationPriority)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pappfilename), lmediatype, fpriority).ok() } pub unsafe fn SetEventFilter(&self, lfiltermask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(lfiltermask)).ok() + (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), lfiltermask).ok() } pub unsafe fn EventFilter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15032,7 +15032,7 @@ impl ITTAPIEventNotification { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), core::mem::transmute(tapievent), pevent.param().abi()).ok() + (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), tapievent, pevent.param().abi()).ok() } } #[repr(C)] @@ -15470,11 +15470,11 @@ impl ITTerminalSupport { } pub unsafe fn CreateTerminal(&self, pterminalclass: &windows_core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTerminal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pterminalclass), core::mem::transmute(lmediatype), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTerminal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pterminalclass), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultStaticTerminal(&self, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultStaticTerminal)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultStaticTerminal)(windows_core::Interface::as_raw(self), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -15607,11 +15607,11 @@ impl ITTerminalSupport2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_PluggableTerminalClasses(&self, bstrterminalsuperclass: &windows_core::BSTR, lmediatype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PluggableTerminalClasses)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrterminalsuperclass), core::mem::transmute(lmediatype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PluggableTerminalClasses)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrterminalsuperclass), lmediatype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EnumeratePluggableTerminalClasses(&self, iidterminalsuperclass: windows_core::GUID, lmediatype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumeratePluggableTerminalClasses)(windows_core::Interface::as_raw(self), core::mem::transmute(iidterminalsuperclass), core::mem::transmute(lmediatype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumeratePluggableTerminalClasses)(windows_core::Interface::as_raw(self), core::mem::transmute(iidterminalsuperclass), lmediatype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -15887,14 +15887,14 @@ windows_core::imp::interface_hierarchy!(ITnef, windows_core::IUnknown); impl ITnef { #[cfg(feature = "Win32_System_AddressBook")] pub unsafe fn AddProps(&self, ulflags: u32, ulelemid: u32, lpvdata: *mut core::ffi::c_void, lpproplist: *mut super::super::System::AddressBook::SPropTagArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(ulelemid), core::mem::transmute(lpvdata), core::mem::transmute(lpproplist)).ok() + (windows_core::Interface::vtable(self).AddProps)(windows_core::Interface::as_raw(self), ulflags, ulelemid, core::mem::transmute(lpvdata), core::mem::transmute(lpproplist)).ok() } #[cfg(feature = "Win32_System_AddressBook")] pub unsafe fn ExtractProps(&self, ulflags: u32, lpproplist: *mut super::super::System::AddressBook::SPropTagArray, lpproblems: *mut *mut STnefProblemArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExtractProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpproplist), core::mem::transmute(lpproblems)).ok() + (windows_core::Interface::vtable(self).ExtractProps)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpproplist), core::mem::transmute(lpproblems)).ok() } pub unsafe fn Finish(&self, ulflags: u32, lpkey: *mut u16, lpproblems: *mut *mut STnefProblemArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpkey), core::mem::transmute(lpproblems)).ok() + (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpkey), core::mem::transmute(lpproblems)).ok() } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] pub unsafe fn OpenTaggedBody(&self, lpmessage: P0, ulflags: u32) -> windows_core::Result @@ -15902,22 +15902,22 @@ impl ITnef { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenTaggedBody)(windows_core::Interface::as_raw(self), lpmessage.param().abi(), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenTaggedBody)(windows_core::Interface::as_raw(self), lpmessage.param().abi(), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] pub unsafe fn SetProps(&self, ulflags: u32, ulelemid: u32, cvalues: u32, lpprops: *mut super::super::System::AddressBook::SPropValue) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(ulelemid), core::mem::transmute(cvalues), core::mem::transmute(lpprops)).ok() + (windows_core::Interface::vtable(self).SetProps)(windows_core::Interface::as_raw(self), ulflags, ulelemid, cvalues, core::mem::transmute(lpprops)).ok() } #[cfg(feature = "Win32_System_AddressBook")] pub unsafe fn EncodeRecips(&self, ulflags: u32, lprecipienttable: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeRecips)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), lprecipienttable.param().abi()).ok() + (windows_core::Interface::vtable(self).EncodeRecips)(windows_core::Interface::as_raw(self), ulflags, lprecipienttable.param().abi()).ok() } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] pub unsafe fn FinishComponent(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).FinishComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(ulcomponentid), core::mem::transmute(lpcustomproplist), core::mem::transmute(lpcustomprops), core::mem::transmute(lpproplist), core::mem::transmute(lpproblems)).ok() + (windows_core::Interface::vtable(self).FinishComponent)(windows_core::Interface::as_raw(self), ulflags, ulcomponentid, core::mem::transmute(lpcustomproplist), core::mem::transmute(lpcustomprops), core::mem::transmute(lpproplist), core::mem::transmute(lpproblems)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs index 540443c12b..67fd6973d6 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs @@ -1,180 +1,180 @@ #[inline] pub unsafe fn WinUsb_AbortPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_AbortPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); - WinUsb_AbortPipe(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid)).ok() + WinUsb_AbortPipe(interfacehandle, pipeid).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ControlTransfer(interfacehandle: WINUSB_INTERFACE_HANDLE, setuppacket: WINUSB_SETUP_PACKET, buffer: Option<&mut [u8]>, lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_ControlTransfer(interfacehandle : WINUSB_INTERFACE_HANDLE, setuppacket : WINUSB_SETUP_PACKET, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_ControlTransfer(core::mem::transmute(interfacehandle), core::mem::transmute(setuppacket), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lengthtransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_ControlTransfer(interfacehandle, core::mem::transmute(setuppacket), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lengthtransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinUsb_FlushPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_FlushPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); - WinUsb_FlushPipe(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid)).ok() + WinUsb_FlushPipe(interfacehandle, pipeid).ok() } #[inline] pub unsafe fn WinUsb_Free(interfacehandle: WINUSB_INTERFACE_HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winusb.dll" "system" fn WinUsb_Free(interfacehandle : WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); - WinUsb_Free(core::mem::transmute(interfacehandle)) + WinUsb_Free(interfacehandle) } #[inline] pub unsafe fn WinUsb_GetAdjustedFrameNumber(currentframenumber: *mut u32, timestamp: i64) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetAdjustedFrameNumber(currentframenumber : *mut u32, timestamp : i64) -> super::super::Foundation:: BOOL); - WinUsb_GetAdjustedFrameNumber(core::mem::transmute(currentframenumber), core::mem::transmute(timestamp)).ok() + WinUsb_GetAdjustedFrameNumber(core::mem::transmute(currentframenumber), timestamp).ok() } #[inline] pub unsafe fn WinUsb_GetAssociatedInterface(interfacehandle: WINUSB_INTERFACE_HANDLE, associatedinterfaceindex: u8, associatedinterfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetAssociatedInterface(interfacehandle : WINUSB_INTERFACE_HANDLE, associatedinterfaceindex : u8, associatedinterfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); - WinUsb_GetAssociatedInterface(core::mem::transmute(interfacehandle), core::mem::transmute(associatedinterfaceindex), core::mem::transmute(associatedinterfacehandle)).ok() + WinUsb_GetAssociatedInterface(interfacehandle, associatedinterfaceindex, core::mem::transmute(associatedinterfacehandle)).ok() } #[inline] pub unsafe fn WinUsb_GetCurrentAlternateSetting(interfacehandle: WINUSB_INTERFACE_HANDLE, settingnumber: *mut u8) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : *mut u8) -> super::super::Foundation:: BOOL); - WinUsb_GetCurrentAlternateSetting(core::mem::transmute(interfacehandle), core::mem::transmute(settingnumber)).ok() + WinUsb_GetCurrentAlternateSetting(interfacehandle, core::mem::transmute(settingnumber)).ok() } #[inline] pub unsafe fn WinUsb_GetCurrentFrameNumber(interfacehandle: WINUSB_INTERFACE_HANDLE, currentframenumber: *mut u32, timestamp: *mut i64) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentFrameNumber(interfacehandle : WINUSB_INTERFACE_HANDLE, currentframenumber : *mut u32, timestamp : *mut i64) -> super::super::Foundation:: BOOL); - WinUsb_GetCurrentFrameNumber(core::mem::transmute(interfacehandle), core::mem::transmute(currentframenumber), core::mem::transmute(timestamp)).ok() + WinUsb_GetCurrentFrameNumber(interfacehandle, core::mem::transmute(currentframenumber), core::mem::transmute(timestamp)).ok() } #[inline] pub unsafe fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle: WINUSB_INTERFACE_HANDLE, frameqpcinfo: *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle : WINUSB_INTERFACE_HANDLE, frameqpcinfo : *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL); - WinUsb_GetCurrentFrameNumberAndQpc(core::mem::transmute(interfacehandle), core::mem::transmute(frameqpcinfo)).ok() + WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle, frameqpcinfo).ok() } #[inline] pub unsafe fn WinUsb_GetDescriptor(interfacehandle: WINUSB_INTERFACE_HANDLE, descriptortype: u8, index: u8, languageid: u16, buffer: Option<&mut [u8]>, lengthtransferred: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetDescriptor(interfacehandle : WINUSB_INTERFACE_HANDLE, descriptortype : u8, index : u8, languageid : u16, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32) -> super::super::Foundation:: BOOL); - WinUsb_GetDescriptor(core::mem::transmute(interfacehandle), core::mem::transmute(descriptortype), core::mem::transmute(index), core::mem::transmute(languageid), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lengthtransferred)).ok() + WinUsb_GetDescriptor(interfacehandle, descriptortype, index, languageid, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lengthtransferred)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_GetOverlappedResult(interfacehandle: WINUSB_INTERFACE_HANDLE, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetOverlappedResult(interfacehandle : WINUSB_INTERFACE_HANDLE, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WinUsb_GetOverlappedResult(core::mem::transmute(interfacehandle), core::mem::transmute(lpoverlapped), core::mem::transmute(lpnumberofbytestransferred), bwait.into()).ok() + WinUsb_GetOverlappedResult(interfacehandle, lpoverlapped, core::mem::transmute(lpnumberofbytestransferred), bwait.into()).ok() } #[inline] pub unsafe fn WinUsb_GetPipePolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: *mut u32, value: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetPipePolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, policytype : WINUSB_PIPE_POLICY, valuelength : *mut u32, value : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_GetPipePolicy(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid), core::mem::transmute(policytype), core::mem::transmute(valuelength), core::mem::transmute(value)).ok() + WinUsb_GetPipePolicy(interfacehandle, pipeid, policytype, core::mem::transmute(valuelength), core::mem::transmute(value)).ok() } #[inline] pub unsafe fn WinUsb_GetPowerPolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, policytype: WINUSB_POWER_POLICY, valuelength: *mut u32, value: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : *mut u32, value : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_GetPowerPolicy(core::mem::transmute(interfacehandle), core::mem::transmute(policytype), core::mem::transmute(valuelength), core::mem::transmute(value)).ok() + WinUsb_GetPowerPolicy(interfacehandle, policytype, core::mem::transmute(valuelength), core::mem::transmute(value)).ok() } #[inline] pub unsafe fn WinUsb_Initialize(devicehandle: super::super::Foundation::HANDLE, interfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_Initialize(devicehandle : super::super::Foundation:: HANDLE, interfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); - WinUsb_Initialize(core::mem::transmute(devicehandle), core::mem::transmute(interfacehandle)).ok() + WinUsb_Initialize(devicehandle, core::mem::transmute(interfacehandle)).ok() } #[inline] pub unsafe fn WinUsb_ParseConfigurationDescriptor(configurationdescriptor: *const USB_CONFIGURATION_DESCRIPTOR, startposition: *const core::ffi::c_void, interfacenumber: i32, alternatesetting: i32, interfaceclass: i32, interfacesubclass: i32, interfaceprotocol: i32) -> *mut USB_INTERFACE_DESCRIPTOR { windows_targets::link!("winusb.dll" "system" fn WinUsb_ParseConfigurationDescriptor(configurationdescriptor : *const USB_CONFIGURATION_DESCRIPTOR, startposition : *const core::ffi::c_void, interfacenumber : i32, alternatesetting : i32, interfaceclass : i32, interfacesubclass : i32, interfaceprotocol : i32) -> *mut USB_INTERFACE_DESCRIPTOR); - WinUsb_ParseConfigurationDescriptor(core::mem::transmute(configurationdescriptor), core::mem::transmute(startposition), core::mem::transmute(interfacenumber), core::mem::transmute(alternatesetting), core::mem::transmute(interfaceclass), core::mem::transmute(interfacesubclass), core::mem::transmute(interfaceprotocol)) + WinUsb_ParseConfigurationDescriptor(configurationdescriptor, startposition, interfacenumber, alternatesetting, interfaceclass, interfacesubclass, interfaceprotocol) } #[inline] pub unsafe fn WinUsb_ParseDescriptors(descriptorbuffer: *const core::ffi::c_void, totallength: u32, startposition: *const core::ffi::c_void, descriptortype: i32) -> *mut USB_COMMON_DESCRIPTOR { windows_targets::link!("winusb.dll" "system" fn WinUsb_ParseDescriptors(descriptorbuffer : *const core::ffi::c_void, totallength : u32, startposition : *const core::ffi::c_void, descriptortype : i32) -> *mut USB_COMMON_DESCRIPTOR); - WinUsb_ParseDescriptors(core::mem::transmute(descriptorbuffer), core::mem::transmute(totallength), core::mem::transmute(startposition), core::mem::transmute(descriptortype)) + WinUsb_ParseDescriptors(descriptorbuffer, totallength, startposition, descriptortype) } #[inline] pub unsafe fn WinUsb_QueryDeviceInformation(interfacehandle: WINUSB_INTERFACE_HANDLE, informationtype: u32, bufferlength: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryDeviceInformation(interfacehandle : WINUSB_INTERFACE_HANDLE, informationtype : u32, bufferlength : *mut u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_QueryDeviceInformation(core::mem::transmute(interfacehandle), core::mem::transmute(informationtype), core::mem::transmute(bufferlength), core::mem::transmute(buffer)).ok() + WinUsb_QueryDeviceInformation(interfacehandle, informationtype, core::mem::transmute(bufferlength), core::mem::transmute(buffer)).ok() } #[inline] pub unsafe fn WinUsb_QueryInterfaceSettings(interfacehandle: WINUSB_INTERFACE_HANDLE, alternateinterfacenumber: u8, usbaltinterfacedescriptor: *mut USB_INTERFACE_DESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryInterfaceSettings(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, usbaltinterfacedescriptor : *mut USB_INTERFACE_DESCRIPTOR) -> super::super::Foundation:: BOOL); - WinUsb_QueryInterfaceSettings(core::mem::transmute(interfacehandle), core::mem::transmute(alternateinterfacenumber), core::mem::transmute(usbaltinterfacedescriptor)).ok() + WinUsb_QueryInterfaceSettings(interfacehandle, alternateinterfacenumber, core::mem::transmute(usbaltinterfacedescriptor)).ok() } #[inline] pub unsafe fn WinUsb_QueryPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, alternateinterfacenumber: u8, pipeindex: u8, pipeinformation: *mut WINUSB_PIPE_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, pipeindex : u8, pipeinformation : *mut WINUSB_PIPE_INFORMATION) -> super::super::Foundation:: BOOL); - WinUsb_QueryPipe(core::mem::transmute(interfacehandle), core::mem::transmute(alternateinterfacenumber), core::mem::transmute(pipeindex), core::mem::transmute(pipeinformation)).ok() + WinUsb_QueryPipe(interfacehandle, alternateinterfacenumber, pipeindex, core::mem::transmute(pipeinformation)).ok() } #[inline] pub unsafe fn WinUsb_QueryPipeEx(interfacehandle: WINUSB_INTERFACE_HANDLE, alternatesettingnumber: u8, pipeindex: u8, pipeinformationex: *mut WINUSB_PIPE_INFORMATION_EX) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryPipeEx(interfacehandle : WINUSB_INTERFACE_HANDLE, alternatesettingnumber : u8, pipeindex : u8, pipeinformationex : *mut WINUSB_PIPE_INFORMATION_EX) -> super::super::Foundation:: BOOL); - WinUsb_QueryPipeEx(core::mem::transmute(interfacehandle), core::mem::transmute(alternatesettingnumber), core::mem::transmute(pipeindex), core::mem::transmute(pipeinformationex)).ok() + WinUsb_QueryPipeEx(interfacehandle, alternatesettingnumber, pipeindex, core::mem::transmute(pipeinformationex)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadIsochPipe(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, framenumber: *mut u32, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadIsochPipe(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, framenumber : *mut u32, numberofpackets : u32, isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_ReadIsochPipe(core::mem::transmute(bufferhandle), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(framenumber), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_ReadIsochPipe(bufferhandle, offset, length, core::mem::transmute(framenumber), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadIsochPipeAsap(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, continuestream: bool, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadIsochPipeAsap(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, continuestream : super::super::Foundation:: BOOL, numberofpackets : u32, isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_ReadIsochPipeAsap(core::mem::transmute(bufferhandle), core::mem::transmute(offset), core::mem::transmute(length), continuestream.into(), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_ReadIsochPipeAsap(bufferhandle, offset, length, continuestream.into(), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, buffer: Option<&mut [u8]>, lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_ReadPipe(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lengthtransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_ReadPipe(interfacehandle, pipeid, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lengthtransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WinUsb_RegisterIsochBuffer(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, buffer: &mut [u8], isochbufferhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_RegisterIsochBuffer(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *mut u8, bufferlength : u32, isochbufferhandle : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_RegisterIsochBuffer(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(isochbufferhandle)).ok() + WinUsb_RegisterIsochBuffer(interfacehandle, pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(isochbufferhandle)).ok() } #[inline] pub unsafe fn WinUsb_ResetPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_ResetPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); - WinUsb_ResetPipe(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid)).ok() + WinUsb_ResetPipe(interfacehandle, pipeid).ok() } #[inline] pub unsafe fn WinUsb_SetCurrentAlternateSetting(interfacehandle: WINUSB_INTERFACE_HANDLE, settingnumber: u8) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_SetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : u8) -> super::super::Foundation:: BOOL); - WinUsb_SetCurrentAlternateSetting(core::mem::transmute(interfacehandle), core::mem::transmute(settingnumber)).ok() + WinUsb_SetCurrentAlternateSetting(interfacehandle, settingnumber).ok() } #[inline] pub unsafe fn WinUsb_SetPipePolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: u32, value: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_SetPipePolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, policytype : WINUSB_PIPE_POLICY, valuelength : u32, value : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_SetPipePolicy(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid), core::mem::transmute(policytype), core::mem::transmute(valuelength), core::mem::transmute(value)).ok() + WinUsb_SetPipePolicy(interfacehandle, pipeid, policytype, valuelength, value).ok() } #[inline] pub unsafe fn WinUsb_SetPowerPolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, policytype: WINUSB_POWER_POLICY, valuelength: u32, value: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_SetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : u32, value : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_SetPowerPolicy(core::mem::transmute(interfacehandle), core::mem::transmute(policytype), core::mem::transmute(valuelength), core::mem::transmute(value)).ok() + WinUsb_SetPowerPolicy(interfacehandle, policytype, valuelength, value).ok() } #[inline] pub unsafe fn WinUsb_StartTrackingForTimeSync(interfacehandle: WINUSB_INTERFACE_HANDLE, starttrackinginfo: *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_StartTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, starttrackinginfo : *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL); - WinUsb_StartTrackingForTimeSync(core::mem::transmute(interfacehandle), core::mem::transmute(starttrackinginfo)).ok() + WinUsb_StartTrackingForTimeSync(interfacehandle, starttrackinginfo).ok() } #[inline] pub unsafe fn WinUsb_StopTrackingForTimeSync(interfacehandle: WINUSB_INTERFACE_HANDLE, stoptrackinginfo: *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_StopTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, stoptrackinginfo : *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL); - WinUsb_StopTrackingForTimeSync(core::mem::transmute(interfacehandle), core::mem::transmute(stoptrackinginfo)).ok() + WinUsb_StopTrackingForTimeSync(interfacehandle, stoptrackinginfo).ok() } #[inline] pub unsafe fn WinUsb_UnregisterIsochBuffer(isochbufferhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_UnregisterIsochBuffer(isochbufferhandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinUsb_UnregisterIsochBuffer(core::mem::transmute(isochbufferhandle)).ok() + WinUsb_UnregisterIsochBuffer(isochbufferhandle).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WriteIsochPipe(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, framenumber: *mut u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_WriteIsochPipe(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, framenumber : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_WriteIsochPipe(core::mem::transmute(bufferhandle), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(framenumber), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_WriteIsochPipe(bufferhandle, offset, length, core::mem::transmute(framenumber), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WriteIsochPipeAsap(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, continuestream: bool, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_WriteIsochPipeAsap(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, continuestream : super::super::Foundation:: BOOL, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_WriteIsochPipeAsap(core::mem::transmute(bufferhandle), core::mem::transmute(offset), core::mem::transmute(length), continuestream.into(), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_WriteIsochPipeAsap(bufferhandle, offset, length, continuestream.into(), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WritePipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, buffer: &[u8], lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("winusb.dll" "system" fn WinUsb_WritePipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *const u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WinUsb_WritePipe(core::mem::transmute(interfacehandle), core::mem::transmute(pipeid), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(lengthtransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + WinUsb_WritePipe(interfacehandle, pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(lengthtransferred.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } pub const ALLOW_PARTIAL_READS: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(5u32); pub const ALL_PIPE: PIPE_TYPE = PIPE_TYPE(3i32); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs index 8d27a73c1f..d99bdeb00c 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn WSDAllocateLinkedMemory(pparent: *mut core::ffi::c_void, cbsize: usize) -> *mut core::ffi::c_void { windows_targets::link!("wsdapi.dll" "system" fn WSDAllocateLinkedMemory(pparent : *mut core::ffi::c_void, cbsize : usize) -> *mut core::ffi::c_void); - WSDAllocateLinkedMemory(core::mem::transmute(pparent), core::mem::transmute(cbsize)) + WSDAllocateLinkedMemory(core::mem::transmute(pparent), cbsize) } #[inline] pub unsafe fn WSDAttachLinkedMemory(pparent: *mut core::ffi::c_void, pchild: *mut core::ffi::c_void) { @@ -168,17 +168,17 @@ where { windows_targets::link!("wsdapi.dll" "system" fn WSDGenerateFaultEx(pcode : *const WSDXML_NAME, psubcode : *const WSDXML_NAME, preasons : *const WSD_LOCALIZED_STRING_LIST, pszdetail : windows_core::PCWSTR, ppfault : *mut *mut WSD_SOAP_FAULT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WSDGenerateFaultEx(core::mem::transmute(pcode), core::mem::transmute(psubcode.unwrap_or(core::mem::zeroed())), core::mem::transmute(preasons), pszdetail.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WSDGenerateFaultEx(pcode, core::mem::transmute(psubcode.unwrap_or(core::mem::zeroed())), preasons, pszdetail.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WSDGetConfigurationOption(dwoption: u32, pvoid: *mut core::ffi::c_void, cboutbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("wsdapi.dll" "system" fn WSDGetConfigurationOption(dwoption : u32, pvoid : *mut core::ffi::c_void, cboutbuffer : u32) -> windows_core::HRESULT); - WSDGetConfigurationOption(core::mem::transmute(dwoption), core::mem::transmute(pvoid), core::mem::transmute(cboutbuffer)).ok() + WSDGetConfigurationOption(dwoption, core::mem::transmute(pvoid), cboutbuffer).ok() } #[inline] pub unsafe fn WSDSetConfigurationOption(dwoption: u32, pvoid: *const core::ffi::c_void, cbinbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("wsdapi.dll" "system" fn WSDSetConfigurationOption(dwoption : u32, pvoid : *const core::ffi::c_void, cbinbuffer : u32) -> windows_core::HRESULT); - WSDSetConfigurationOption(core::mem::transmute(dwoption), core::mem::transmute(pvoid), core::mem::transmute(cbinbuffer)).ok() + WSDSetConfigurationOption(dwoption, pvoid, cbinbuffer).ok() } #[inline] pub unsafe fn WSDUriDecode(source: &[u16], destout: *mut windows_core::PWSTR, cchdestout: Option<*mut u32>) -> windows_core::Result<()> { @@ -329,7 +329,7 @@ impl IWSDAsyncResult { (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pasyncstate.param().abi()).ok() } pub unsafe fn SetWaitHandle(&self, hwaithandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWaitHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hwaithandle)).ok() + (windows_core::Interface::vtable(self).SetWaitHandle)(windows_core::Interface::as_raw(self), hwaithandle).ok() } pub unsafe fn HasCompleted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HasCompleted)(windows_core::Interface::as_raw(self)).ok() @@ -457,7 +457,7 @@ impl IWSDDeviceHost { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(ullinstanceid), core::mem::transmute(pscopelist), pnotificationsink.param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ullinstanceid, pscopelist, pnotificationsink.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -466,10 +466,10 @@ impl IWSDDeviceHost { (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RegisterPortType(&self, pporttype: *const WSD_PORT_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterPortType)(windows_core::Interface::as_raw(self), core::mem::transmute(pporttype)).ok() + (windows_core::Interface::vtable(self).RegisterPortType)(windows_core::Interface::as_raw(self), pporttype).ok() } pub unsafe fn SetMetadata(&self, pthismodelmetadata: *const WSD_THIS_MODEL_METADATA, pthisdevicemetadata: *const WSD_THIS_DEVICE_METADATA, phostmetadata: Option<*const WSD_HOST_METADATA>, pcustommetadata: Option<*const WSD_METADATA_SECTION_LIST>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pthismodelmetadata), core::mem::transmute(pthisdevicemetadata), core::mem::transmute(phostmetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcustommetadata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetMetadata)(windows_core::Interface::as_raw(self), pthismodelmetadata, pthisdevicemetadata, core::mem::transmute(phostmetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcustommetadata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RegisterService(&self, pszserviceid: P0, pservice: P1) -> windows_core::Result<()> where @@ -508,7 +508,7 @@ impl IWSDDeviceHost { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SignalEvent)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), core::mem::transmute(pbody.unwrap_or(core::mem::zeroed())), core::mem::transmute(poperation)).ok() + (windows_core::Interface::vtable(self).SignalEvent)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), core::mem::transmute(pbody.unwrap_or(core::mem::zeroed())), poperation).ok() } } #[repr(C)] @@ -698,7 +698,7 @@ impl IWSDDeviceProxy { } pub unsafe fn GetServiceProxyByType(&self, ptype: *const WSDXML_NAME) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceProxyByType)(windows_core::Interface::as_raw(self), core::mem::transmute(ptype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceProxyByType)(windows_core::Interface::as_raw(self), ptype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEndpointProxy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -844,10 +844,10 @@ windows_core::imp::define_interface!(IWSDEndpointProxy, IWSDEndpointProxy_Vtbl, windows_core::imp::interface_hierarchy!(IWSDEndpointProxy, windows_core::IUnknown); impl IWSDEndpointProxy { pub unsafe fn SendOneWayRequest(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendOneWayRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody), core::mem::transmute(poperation)).ok() + (windows_core::Interface::vtable(self).SendOneWayRequest)(windows_core::Interface::as_raw(self), pbody, poperation).ok() } pub unsafe fn SendTwoWayRequest(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, presponsecontext: Option<*const WSD_SYNCHRONOUS_RESPONSE_CONTEXT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendTwoWayRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody), core::mem::transmute(poperation), core::mem::transmute(presponsecontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SendTwoWayRequest)(windows_core::Interface::as_raw(self), pbody, poperation, core::mem::transmute(presponsecontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SendTwoWayRequestAsync(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: P2, pcallback: P3) -> windows_core::Result where @@ -855,7 +855,7 @@ impl IWSDEndpointProxy { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SendTwoWayRequestAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody), core::mem::transmute(poperation), pasyncstate.param().abi(), pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SendTwoWayRequestAsync)(windows_core::Interface::as_raw(self), pbody, poperation, pasyncstate.param().abi(), pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AbortAsyncOperation(&self, pasyncresult: P0) -> windows_core::Result<()> where @@ -864,7 +864,7 @@ impl IWSDEndpointProxy { (windows_core::Interface::vtable(self).AbortAsyncOperation)(windows_core::Interface::as_raw(self), pasyncresult.param().abi()).ok() } pub unsafe fn ProcessFault(&self, pfault: *const WSD_SOAP_FAULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessFault)(windows_core::Interface::as_raw(self), core::mem::transmute(pfault)).ok() + (windows_core::Interface::vtable(self).ProcessFault)(windows_core::Interface::as_raw(self), pfault).ok() } pub unsafe fn GetErrorInfo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -972,7 +972,7 @@ impl IWSDEventingStatus { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscriptionRenewalFailed)(windows_core::Interface::as_raw(self), pszsubscriptionaction.param().abi(), core::mem::transmute(hr)) + (windows_core::Interface::vtable(self).SubscriptionRenewalFailed)(windows_core::Interface::as_raw(self), pszsubscriptionaction.param().abi(), hr) } pub unsafe fn SubscriptionEnded(&self, pszsubscriptionaction: P0) where @@ -1676,13 +1676,13 @@ impl IWSDServiceMessaging { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SendResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody.unwrap_or(core::mem::zeroed())), core::mem::transmute(poperation), pmessageparameters.param().abi()).ok() + (windows_core::Interface::vtable(self).SendResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody.unwrap_or(core::mem::zeroed())), poperation, pmessageparameters.param().abi()).ok() } pub unsafe fn FaultRequest(&self, prequestheader: *const WSD_SOAP_HEADER, pmessageparameters: P1, pfault: Option<*const WSD_SOAP_FAULT>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FaultRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(prequestheader), pmessageparameters.param().abi(), core::mem::transmute(pfault.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FaultRequest)(windows_core::Interface::as_raw(self), prequestheader, pmessageparameters.param().abi(), core::mem::transmute(pfault.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -1744,10 +1744,10 @@ impl IWSDServiceProxy { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscribeToOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(poperation), punknown.param().abi(), core::mem::transmute(pany), core::mem::transmute(ppany.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SubscribeToOperation)(windows_core::Interface::as_raw(self), poperation, punknown.param().abi(), pany, core::mem::transmute(ppany.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnsubscribeToOperation(&self, poperation: *const WSD_OPERATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnsubscribeToOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(poperation)).ok() + (windows_core::Interface::vtable(self).UnsubscribeToOperation)(windows_core::Interface::as_raw(self), poperation).ok() } pub unsafe fn SetEventingStatusCallback(&self, pstatus: P0) -> windows_core::Result<()> where @@ -1881,7 +1881,7 @@ impl IWSDServiceProxyEventing { (windows_core::Interface::vtable(self).EndSubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), presult.param().abi(), core::mem::transmute(ppexpires.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppany.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnsubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], pany: *const WSDXML_ELEMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnsubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pany)).ok() + (windows_core::Interface::vtable(self).UnsubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), pany).ok() } pub unsafe fn BeginUnsubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], pany: Option<*const WSDXML_ELEMENT>, pasyncstate: P3, pasynccallback: P4) -> windows_core::Result where @@ -2156,7 +2156,7 @@ impl IWSDTransportAddress { (windows_core::Interface::vtable(self).GetPort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPort(&self, wport: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), core::mem::transmute(wport)).ok() + (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), wport).ok() } pub unsafe fn GetTransportAddress(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2254,7 +2254,7 @@ windows_core::imp::interface_hierarchy!(IWSDUdpAddress, windows_core::IUnknown, impl IWSDUdpAddress { #[cfg(feature = "Win32_Networking_WinSock")] pub unsafe fn SetSockaddr(&self, psockaddr: *const super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSockaddr)(windows_core::Interface::as_raw(self), core::mem::transmute(psockaddr)).ok() + (windows_core::Interface::vtable(self).SetSockaddr)(windows_core::Interface::as_raw(self), psockaddr).ok() } #[cfg(feature = "Win32_Networking_WinSock")] pub unsafe fn GetSockaddr(&self, psockaddr: *mut super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::Result<()> { @@ -2267,21 +2267,21 @@ impl IWSDUdpAddress { (windows_core::Interface::vtable(self).GetExclusive)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetMessageType(&self, messagetype: WSDUdpMessageType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageType)(windows_core::Interface::as_raw(self), core::mem::transmute(messagetype)).ok() + (windows_core::Interface::vtable(self).SetMessageType)(windows_core::Interface::as_raw(self), messagetype).ok() } pub unsafe fn GetMessageType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMessageType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTTL(&self, dwttl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTTL)(windows_core::Interface::as_raw(self), core::mem::transmute(dwttl)).ok() + (windows_core::Interface::vtable(self).SetTTL)(windows_core::Interface::as_raw(self), dwttl).ok() } pub unsafe fn GetTTL(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTTL)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlias(&self, palias: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlias)(windows_core::Interface::as_raw(self), core::mem::transmute(palias)).ok() + (windows_core::Interface::vtable(self).SetAlias)(windows_core::Interface::as_raw(self), palias).ok() } pub unsafe fn GetAlias(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2412,7 +2412,7 @@ impl core::ops::Deref for IWSDUdpMessageParameters { windows_core::imp::interface_hierarchy!(IWSDUdpMessageParameters, windows_core::IUnknown, IWSDMessageParameters); impl IWSDUdpMessageParameters { pub unsafe fn SetRetransmitParams(&self, pparams: *const WSDUdpRetransmitParams) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRetransmitParams)(windows_core::Interface::as_raw(self), core::mem::transmute(pparams)).ok() + (windows_core::Interface::vtable(self).SetRetransmitParams)(windows_core::Interface::as_raw(self), pparams).ok() } pub unsafe fn GetRetransmitParams(&self, pparams: *mut WSDUdpRetransmitParams) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRetransmitParams)(windows_core::Interface::as_raw(self), core::mem::transmute(pparams)).ok() @@ -2467,10 +2467,10 @@ impl IWSDXMLContext { (windows_core::Interface::vtable(self).AddNameToNamespace)(windows_core::Interface::as_raw(self), pszuri.param().abi(), pszname.param().abi(), core::mem::transmute(ppname.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetNamespaces(&self, pnamespaces: &[*const WSDXML_NAMESPACE], blayernumber: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNamespaces)(windows_core::Interface::as_raw(self), core::mem::transmute(pnamespaces.as_ptr()), pnamespaces.len().try_into().unwrap(), core::mem::transmute(blayernumber)).ok() + (windows_core::Interface::vtable(self).SetNamespaces)(windows_core::Interface::as_raw(self), core::mem::transmute(pnamespaces.as_ptr()), pnamespaces.len().try_into().unwrap(), blayernumber).ok() } pub unsafe fn SetTypes(&self, ptypes: &[*const WSDXML_TYPE], blayernumber: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ptypes.as_ptr()), ptypes.len().try_into().unwrap(), core::mem::transmute(blayernumber)).ok() + (windows_core::Interface::vtable(self).SetTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ptypes.as_ptr()), ptypes.len().try_into().unwrap(), blayernumber).ok() } } #[repr(C)] @@ -2723,7 +2723,7 @@ windows_core::imp::define_interface!(IWSDiscoveryProvider, IWSDiscoveryProvider_ windows_core::imp::interface_hierarchy!(IWSDiscoveryProvider, windows_core::IUnknown); impl IWSDiscoveryProvider { pub unsafe fn SetAddressFamily(&self, dwaddressfamily: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAddressFamily)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaddressfamily)).ok() + (windows_core::Interface::vtable(self).SetAddressFamily)(windows_core::Interface::as_raw(self), dwaddressfamily).ok() } pub unsafe fn Attach(&self, psink: P0) -> windows_core::Result<()> where @@ -2851,7 +2851,7 @@ impl IWSDiscoveryProviderNotify { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SearchFailed)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), psztag.param().abi()).ok() + (windows_core::Interface::vtable(self).SearchFailed)(windows_core::Interface::as_raw(self), hr, psztag.param().abi()).ok() } pub unsafe fn SearchComplete(&self, psztag: P0) -> windows_core::Result<()> where @@ -2909,7 +2909,7 @@ windows_core::imp::define_interface!(IWSDiscoveryPublisher, IWSDiscoveryPublishe windows_core::imp::interface_hierarchy!(IWSDiscoveryPublisher, windows_core::IUnknown); impl IWSDiscoveryPublisher { pub unsafe fn SetAddressFamily(&self, dwaddressfamily: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAddressFamily)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaddressfamily)).ok() + (windows_core::Interface::vtable(self).SetAddressFamily)(windows_core::Interface::as_raw(self), dwaddressfamily).ok() } pub unsafe fn RegisterNotificationSink(&self, psink: P0) -> windows_core::Result<()> where @@ -2928,14 +2928,14 @@ impl IWSDiscoveryPublisher { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Publish)(windows_core::Interface::as_raw(self), pszid.param().abi(), core::mem::transmute(ullmetadataversion), core::mem::transmute(ullinstanceid), core::mem::transmute(ullmessagenumber), pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxaddrslist.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Publish)(windows_core::Interface::as_raw(self), pszid.param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxaddrslist.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnPublish(&self, pszid: P0, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P3, pany: Option<*const WSDXML_ELEMENT>) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UnPublish)(windows_core::Interface::as_raw(self), pszid.param().abi(), core::mem::transmute(ullinstanceid), core::mem::transmute(ullmessagenumber), pszsessionid.param().abi(), core::mem::transmute(pany.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).UnPublish)(windows_core::Interface::as_raw(self), pszid.param().abi(), ullinstanceid, ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(pany.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn MatchProbe(&self, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: P1, pszid: P2, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P6, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pxaddrslist: Option<*const WSD_URI_LIST>) -> windows_core::Result<()> where @@ -2943,7 +2943,7 @@ impl IWSDiscoveryPublisher { P2: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).MatchProbe)(windows_core::Interface::as_raw(self), core::mem::transmute(pprobemessage), pmessageparameters.param().abi(), pszid.param().abi(), core::mem::transmute(ullmetadataversion), core::mem::transmute(ullinstanceid), core::mem::transmute(ullmessagenumber), pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxaddrslist.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MatchProbe)(windows_core::Interface::as_raw(self), pprobemessage, pmessageparameters.param().abi(), pszid.param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxaddrslist.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn MatchResolve(&self, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: P1, pszid: P2, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P6, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pxaddrslist: Option<*const WSD_URI_LIST>) -> windows_core::Result<()> where @@ -2951,7 +2951,7 @@ impl IWSDiscoveryPublisher { P2: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).MatchResolve)(windows_core::Interface::as_raw(self), core::mem::transmute(presolvemessage), pmessageparameters.param().abi(), pszid.param().abi(), core::mem::transmute(ullmetadataversion), core::mem::transmute(ullinstanceid), core::mem::transmute(ullmessagenumber), pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxaddrslist.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MatchResolve)(windows_core::Interface::as_raw(self), presolvemessage, pmessageparameters.param().abi(), pszid.param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pxaddrslist.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn PublishEx(&self, pszid: P0, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P4, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pxaddrslist: Option<*const WSD_URI_LIST>, pheaderany: Option<*const WSDXML_ELEMENT>, preferenceparameterany: Option<*const WSDXML_ELEMENT>, ppolicyany: Option<*const WSDXML_ELEMENT>, pendpointreferenceany: Option<*const WSDXML_ELEMENT>, pany: Option<*const WSDXML_ELEMENT>) -> windows_core::Result<()> where @@ -2961,9 +2961,9 @@ impl IWSDiscoveryPublisher { (windows_core::Interface::vtable(self).PublishEx)( windows_core::Interface::as_raw(self), pszid.param().abi(), - core::mem::transmute(ullmetadataversion), - core::mem::transmute(ullinstanceid), - core::mem::transmute(ullmessagenumber), + ullmetadataversion, + ullinstanceid, + ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), @@ -2984,12 +2984,12 @@ impl IWSDiscoveryPublisher { { (windows_core::Interface::vtable(self).MatchProbeEx)( windows_core::Interface::as_raw(self), - core::mem::transmute(pprobemessage), + pprobemessage, pmessageparameters.param().abi(), pszid.param().abi(), - core::mem::transmute(ullmetadataversion), - core::mem::transmute(ullinstanceid), - core::mem::transmute(ullmessagenumber), + ullmetadataversion, + ullinstanceid, + ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), @@ -3010,12 +3010,12 @@ impl IWSDiscoveryPublisher { { (windows_core::Interface::vtable(self).MatchResolveEx)( windows_core::Interface::as_raw(self), - core::mem::transmute(presolvemessage), + presolvemessage, pmessageparameters.param().abi(), pszid.param().abi(), - core::mem::transmute(ullmetadataversion), - core::mem::transmute(ullinstanceid), - core::mem::transmute(ullmessagenumber), + ullmetadataversion, + ullinstanceid, + ullmessagenumber, pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pscopeslist.unwrap_or(core::mem::zeroed())), @@ -3218,13 +3218,13 @@ impl IWSDiscoveryPublisherNotify { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProbeHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(psoap), pmessageparameters.param().abi()).ok() + (windows_core::Interface::vtable(self).ProbeHandler)(windows_core::Interface::as_raw(self), psoap, pmessageparameters.param().abi()).ok() } pub unsafe fn ResolveHandler(&self, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(psoap), pmessageparameters.param().abi()).ok() + (windows_core::Interface::vtable(self).ResolveHandler)(windows_core::Interface::as_raw(self), psoap, pmessageparameters.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index c5bea0a41a..72f899cec1 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn CloseHandle(hobject: HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL); - CloseHandle(core::mem::transmute(hobject)).ok() + CloseHandle(hobject).ok() } #[inline] pub unsafe fn CompareObjectHandles(hfirstobjecthandle: HANDLE, hsecondobjecthandle: HANDLE) -> BOOL { windows_targets::link!("api-ms-win-core-handle-l1-1-0.dll" "system" fn CompareObjectHandles(hfirstobjecthandle : HANDLE, hsecondobjecthandle : HANDLE) -> BOOL); - CompareObjectHandles(core::mem::transmute(hfirstobjecthandle), core::mem::transmute(hsecondobjecthandle)) + CompareObjectHandles(hfirstobjecthandle, hsecondobjecthandle) } #[inline] pub unsafe fn DuplicateHandle(hsourceprocesshandle: HANDLE, hsourcehandle: HANDLE, htargetprocesshandle: HANDLE, lptargethandle: *mut HANDLE, dwdesiredaccess: u32, binherithandle: bool, dwoptions: DUPLICATE_HANDLE_OPTIONS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DuplicateHandle(hsourceprocesshandle : HANDLE, hsourcehandle : HANDLE, htargetprocesshandle : HANDLE, lptargethandle : *mut HANDLE, dwdesiredaccess : u32, binherithandle : BOOL, dwoptions : DUPLICATE_HANDLE_OPTIONS) -> BOOL); - DuplicateHandle(core::mem::transmute(hsourceprocesshandle), core::mem::transmute(hsourcehandle), core::mem::transmute(htargetprocesshandle), core::mem::transmute(lptargethandle), core::mem::transmute(dwdesiredaccess), binherithandle.into(), core::mem::transmute(dwoptions)).ok() + DuplicateHandle(hsourceprocesshandle, hsourcehandle, htargetprocesshandle, core::mem::transmute(lptargethandle), dwdesiredaccess, binherithandle.into(), dwoptions).ok() } #[inline] pub unsafe fn FreeLibrary(hlibmodule: HMODULE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FreeLibrary(hlibmodule : HMODULE) -> BOOL); - FreeLibrary(core::mem::transmute(hlibmodule)).ok() + FreeLibrary(hlibmodule).ok() } #[inline] pub unsafe fn GetHandleInformation(hobject: HANDLE, lpdwflags: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetHandleInformation(hobject : HANDLE, lpdwflags : *mut u32) -> BOOL); - GetHandleInformation(core::mem::transmute(hobject), core::mem::transmute(lpdwflags)).ok() + GetHandleInformation(hobject, core::mem::transmute(lpdwflags)).ok() } #[inline] pub unsafe fn GetLastError() -> WIN32_ERROR { @@ -42,22 +42,22 @@ pub unsafe fn LocalFree(hmem: Option) -> HLOCAL { #[inline] pub unsafe fn RtlNtStatusToDosError(status: NTSTATUS) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlNtStatusToDosError(status : NTSTATUS) -> u32); - RtlNtStatusToDosError(core::mem::transmute(status)) + RtlNtStatusToDosError(status) } #[inline] pub unsafe fn SetHandleInformation(hobject: HANDLE, dwmask: u32, dwflags: HANDLE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetHandleInformation(hobject : HANDLE, dwmask : u32, dwflags : HANDLE_FLAGS) -> BOOL); - SetHandleInformation(core::mem::transmute(hobject), core::mem::transmute(dwmask), core::mem::transmute(dwflags)).ok() + SetHandleInformation(hobject, dwmask, dwflags).ok() } #[inline] pub unsafe fn SetLastError(dwerrcode: WIN32_ERROR) { windows_targets::link!("kernel32.dll" "system" fn SetLastError(dwerrcode : WIN32_ERROR)); - SetLastError(core::mem::transmute(dwerrcode)) + SetLastError(dwerrcode) } #[inline] pub unsafe fn SetLastErrorEx(dwerrcode: WIN32_ERROR, dwtype: u32) { windows_targets::link!("user32.dll" "system" fn SetLastErrorEx(dwerrcode : WIN32_ERROR, dwtype : u32)); - SetLastErrorEx(core::mem::transmute(dwerrcode), core::mem::transmute(dwtype)) + SetLastErrorEx(dwerrcode, dwtype) } #[inline] pub unsafe fn SysAddRefString(bstrstring: &windows_core::BSTR) -> windows_core::Result<()> { @@ -101,7 +101,7 @@ where P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysReAllocStringLen(pbstr : *mut * mut core::ffi::c_void, psz : windows_core::PCWSTR, len : u32) -> i32); - SysReAllocStringLen(core::mem::transmute(pbstr), psz.param().abi(), core::mem::transmute(len)) + SysReAllocStringLen(core::mem::transmute(pbstr), psz.param().abi(), len) } #[inline] pub unsafe fn SysReleaseString(bstrstring: &windows_core::BSTR) { diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs index 0653e12d54..cd6385a177 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs @@ -2,7 +2,7 @@ pub unsafe fn CheckGamingPrivilegeSilently(privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-1.dll" "system" fn CheckGamingPrivilegeSilently(privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, hasprivilege : *mut super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CheckGamingPrivilegeSilently(core::mem::transmute(privilegeid), core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| core::mem::transmute(result__)) + CheckGamingPrivilegeSilently(privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CheckGamingPrivilegeSilentlyForUser(user: P0, privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result @@ -11,12 +11,12 @@ where { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeSilentlyForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, hasprivilege : *mut super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CheckGamingPrivilegeSilentlyForUser(user.param().abi(), core::mem::transmute(privilegeid), core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| core::mem::transmute(result__)) + CheckGamingPrivilegeSilentlyForUser(user.param().abi(), privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CheckGamingPrivilegeWithUI(privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING, friendlymessage: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-1.dll" "system" fn CheckGamingPrivilegeWithUI(privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, friendlymessage : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - CheckGamingPrivilegeWithUI(core::mem::transmute(privilegeid), core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), core::mem::transmute_copy(friendlymessage), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + CheckGamingPrivilegeWithUI(privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), core::mem::transmute_copy(friendlymessage), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CheckGamingPrivilegeWithUIForUser(user: P0, privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING, friendlymessage: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -24,7 +24,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeWithUIForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, friendlymessage : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - CheckGamingPrivilegeWithUIForUser(user.param().abi(), core::mem::transmute(privilegeid), core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), core::mem::transmute_copy(friendlymessage), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + CheckGamingPrivilegeWithUIForUser(user.param().abi(), privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), core::mem::transmute_copy(friendlymessage), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetExpandedResourceExclusiveCpuCount() -> windows_core::Result { @@ -57,7 +57,7 @@ pub unsafe fn ReleaseExclusiveCpuSets() -> windows_core::Result<()> { #[inline] pub unsafe fn ShowChangeFriendRelationshipUI(targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowChangeFriendRelationshipUI(targetuserxuid : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowChangeFriendRelationshipUI(core::mem::transmute_copy(targetuserxuid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowChangeFriendRelationshipUI(core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowChangeFriendRelationshipUIForUser(user: P0, targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -65,12 +65,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowChangeFriendRelationshipUIForUser(user : * mut core::ffi::c_void, targetuserxuid : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowChangeFriendRelationshipUIForUser(user.param().abi(), core::mem::transmute_copy(targetuserxuid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowChangeFriendRelationshipUIForUser(user.param().abi(), core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowCustomizeUserProfileUI(completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowCustomizeUserProfileUI(completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowCustomizeUserProfileUI(core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowCustomizeUserProfileUI(completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowCustomizeUserProfileUIForUser(user: P0, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -78,12 +78,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowCustomizeUserProfileUIForUser(user : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowCustomizeUserProfileUIForUser(user.param().abi(), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowCustomizeUserProfileUIForUser(user.param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowFindFriendsUI(completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowFindFriendsUI(completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowFindFriendsUI(core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowFindFriendsUI(completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowFindFriendsUIForUser(user: P0, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -91,12 +91,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowFindFriendsUIForUser(user : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowFindFriendsUIForUser(user.param().abi(), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowFindFriendsUIForUser(user.param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowGameInfoUI(titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowGameInfoUI(titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInfoUI(core::mem::transmute(titleid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowGameInfoUI(titleid, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowGameInfoUIForUser(user: P0, titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -104,12 +104,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowGameInfoUIForUser(user : * mut core::ffi::c_void, titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInfoUIForUser(user.param().abi(), core::mem::transmute(titleid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowGameInfoUIForUser(user.param().abi(), titleid, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowGameInviteUI(serviceconfigurationid: &windows_core::HSTRING, sessiontemplatename: &windows_core::HSTRING, sessionid: &windows_core::HSTRING, invitationdisplaytext: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowGameInviteUI(serviceconfigurationid : * mut core::ffi::c_void, sessiontemplatename : * mut core::ffi::c_void, sessionid : * mut core::ffi::c_void, invitationdisplaytext : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInviteUI(core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowGameInviteUI(core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowGameInviteUIForUser(user: P0, serviceconfigurationid: &windows_core::HSTRING, sessiontemplatename: &windows_core::HSTRING, sessionid: &windows_core::HSTRING, invitationdisplaytext: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -117,12 +117,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowGameInviteUIForUser(user : * mut core::ffi::c_void, serviceconfigurationid : * mut core::ffi::c_void, sessiontemplatename : * mut core::ffi::c_void, sessionid : * mut core::ffi::c_void, invitationdisplaytext : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInviteUIForUser(user.param().abi(), core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowGameInviteUIForUser(user.param().abi(), core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowGameInviteUIWithContext(serviceconfigurationid: &windows_core::HSTRING, sessiontemplatename: &windows_core::HSTRING, sessionid: &windows_core::HSTRING, invitationdisplaytext: &windows_core::HSTRING, customactivationcontext: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-3.dll" "system" fn ShowGameInviteUIWithContext(serviceconfigurationid : * mut core::ffi::c_void, sessiontemplatename : * mut core::ffi::c_void, sessionid : * mut core::ffi::c_void, invitationdisplaytext : * mut core::ffi::c_void, customactivationcontext : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInviteUIWithContext(core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), core::mem::transmute_copy(customactivationcontext), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowGameInviteUIWithContext(core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), core::mem::transmute_copy(customactivationcontext), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowGameInviteUIWithContextForUser(user: P0, serviceconfigurationid: &windows_core::HSTRING, sessiontemplatename: &windows_core::HSTRING, sessionid: &windows_core::HSTRING, invitationdisplaytext: &windows_core::HSTRING, customactivationcontext: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -130,23 +130,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-3.dll" "system" fn ShowGameInviteUIWithContextForUser(user : * mut core::ffi::c_void, serviceconfigurationid : * mut core::ffi::c_void, sessiontemplatename : * mut core::ffi::c_void, sessionid : * mut core::ffi::c_void, invitationdisplaytext : * mut core::ffi::c_void, customactivationcontext : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInviteUIWithContextForUser(user.param().abi(), core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), core::mem::transmute_copy(customactivationcontext), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowGameInviteUIWithContextForUser(user.param().abi(), core::mem::transmute_copy(serviceconfigurationid), core::mem::transmute_copy(sessiontemplatename), core::mem::transmute_copy(sessionid), core::mem::transmute_copy(invitationdisplaytext), core::mem::transmute_copy(customactivationcontext), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowPlayerPickerUI(promptdisplaytext: &windows_core::HSTRING, xuids: &[windows_core::HSTRING], preselectedxuids: Option<&[windows_core::HSTRING]>, minselectioncount: usize, maxselectioncount: usize, completionroutine: PlayerPickerUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowPlayerPickerUI(promptdisplaytext : * mut core::ffi::c_void, xuids : *const * mut core::ffi::c_void, xuidscount : usize, preselectedxuids : *const * mut core::ffi::c_void, preselectedxuidscount : usize, minselectioncount : usize, maxselectioncount : usize, completionroutine : PlayerPickerUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowPlayerPickerUI( - core::mem::transmute_copy(promptdisplaytext), - core::mem::transmute(xuids.as_ptr()), - xuids.len().try_into().unwrap(), - core::mem::transmute(preselectedxuids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - preselectedxuids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(minselectioncount), - core::mem::transmute(maxselectioncount), - core::mem::transmute(completionroutine), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - ) - .ok() + ShowPlayerPickerUI(core::mem::transmute_copy(promptdisplaytext), core::mem::transmute(xuids.as_ptr()), xuids.len().try_into().unwrap(), core::mem::transmute(preselectedxuids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), preselectedxuids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), minselectioncount, maxselectioncount, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowPlayerPickerUIForUser(user: P0, promptdisplaytext: &windows_core::HSTRING, xuids: &[windows_core::HSTRING], preselectedxuids: Option<&[windows_core::HSTRING]>, minselectioncount: usize, maxselectioncount: usize, completionroutine: PlayerPickerUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -154,24 +143,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowPlayerPickerUIForUser(user : * mut core::ffi::c_void, promptdisplaytext : * mut core::ffi::c_void, xuids : *const * mut core::ffi::c_void, xuidscount : usize, preselectedxuids : *const * mut core::ffi::c_void, preselectedxuidscount : usize, minselectioncount : usize, maxselectioncount : usize, completionroutine : PlayerPickerUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowPlayerPickerUIForUser( - user.param().abi(), - core::mem::transmute_copy(promptdisplaytext), - core::mem::transmute(xuids.as_ptr()), - xuids.len().try_into().unwrap(), - core::mem::transmute(preselectedxuids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - preselectedxuids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(minselectioncount), - core::mem::transmute(maxselectioncount), - core::mem::transmute(completionroutine), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - ) - .ok() + ShowPlayerPickerUIForUser(user.param().abi(), core::mem::transmute_copy(promptdisplaytext), core::mem::transmute(xuids.as_ptr()), xuids.len().try_into().unwrap(), core::mem::transmute(preselectedxuids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), preselectedxuids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), minselectioncount, maxselectioncount, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowProfileCardUI(targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowProfileCardUI(targetuserxuid : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowProfileCardUI(core::mem::transmute_copy(targetuserxuid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowProfileCardUI(core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowProfileCardUIForUser(user: P0, targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -179,12 +156,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowProfileCardUIForUser(user : * mut core::ffi::c_void, targetuserxuid : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowProfileCardUIForUser(user.param().abi(), core::mem::transmute_copy(targetuserxuid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowProfileCardUIForUser(user.param().abi(), core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowTitleAchievementsUI(titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowTitleAchievementsUI(titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowTitleAchievementsUI(core::mem::transmute(titleid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowTitleAchievementsUI(titleid, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowTitleAchievementsUIForUser(user: P0, titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -192,12 +169,12 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowTitleAchievementsUIForUser(user : * mut core::ffi::c_void, titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowTitleAchievementsUIForUser(user.param().abi(), core::mem::transmute(titleid), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowTitleAchievementsUIForUser(user.param().abi(), titleid, completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowUserSettingsUI(completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowUserSettingsUI(completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowUserSettingsUI(core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowUserSettingsUI(completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ShowUserSettingsUIForUser(user: P0, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -205,7 +182,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowUserSettingsUIForUser(user : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowUserSettingsUIForUser(user.param().abi(), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + ShowUserSettingsUIForUser(user.param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn TryCancelPendingGameUI() -> super::Foundation::BOOL { @@ -264,7 +241,7 @@ windows_core::imp::define_interface!(IGameExplorer, IGameExplorer_Vtbl, 0xe7b2fb windows_core::imp::interface_hierarchy!(IGameExplorer, windows_core::IUnknown); impl IGameExplorer { pub unsafe fn AddGame(&self, bstrgdfbinarypath: &windows_core::BSTR, bstrgameinstalldirectory: &windows_core::BSTR, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddGame)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrgdfbinarypath), core::mem::transmute_copy(bstrgameinstalldirectory), core::mem::transmute(installscope), core::mem::transmute(pguidinstanceid)).ok() + (windows_core::Interface::vtable(self).AddGame)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrgdfbinarypath), core::mem::transmute_copy(bstrgameinstalldirectory), installscope, core::mem::transmute(pguidinstanceid)).ok() } pub unsafe fn RemoveGame(&self, guidinstanceid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveGame)(windows_core::Interface::as_raw(self), core::mem::transmute(guidinstanceid)).ok() @@ -336,7 +313,7 @@ impl IGameExplorer2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallGame)(windows_core::Interface::as_raw(self), binarygdfpath.param().abi(), installdirectory.param().abi(), core::mem::transmute(installscope)).ok() + (windows_core::Interface::vtable(self).InstallGame)(windows_core::Interface::as_raw(self), binarygdfpath.param().abi(), installdirectory.param().abi(), installscope).ok() } pub unsafe fn UninstallGame(&self, binarygdfpath: P0) -> windows_core::Result<()> where @@ -423,27 +400,27 @@ impl IGameStatistics { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCategoryTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryindex), title.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCategoryTitle)(windows_core::Interface::as_raw(self), categoryindex, title.param().abi()).ok() } pub unsafe fn GetCategoryTitle(&self, categoryindex: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCategoryTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCategoryTitle)(windows_core::Interface::as_raw(self), categoryindex, &mut result__).map(|| result__) } pub unsafe fn GetStatistic(&self, categoryindex: u16, statindex: u16, pname: Option<*mut windows_core::PWSTR>, pvalue: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatistic)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryindex), core::mem::transmute(statindex), core::mem::transmute(pname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStatistic)(windows_core::Interface::as_raw(self), categoryindex, statindex, core::mem::transmute(pname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetStatistic(&self, categoryindex: u16, statindex: u16, name: P2, value: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatistic)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryindex), core::mem::transmute(statindex), name.param().abi(), value.param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatistic)(windows_core::Interface::as_raw(self), categoryindex, statindex, name.param().abi(), value.param().abi()).ok() } pub unsafe fn Save(&self, trackchanges: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), trackchanges.into()).ok() } pub unsafe fn SetLastPlayedCategory(&self, categoryindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLastPlayedCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryindex)).ok() + (windows_core::Interface::vtable(self).SetLastPlayedCategory)(windows_core::Interface::as_raw(self), categoryindex).ok() } pub unsafe fn GetLastPlayedCategory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -600,7 +577,7 @@ impl IGameStatisticsMgr { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGameStatistics)(windows_core::Interface::as_raw(self), gdfbinarypath.param().abi(), core::mem::transmute(opentype), core::mem::transmute(popenresult), core::mem::transmute(ppistats)).ok() + (windows_core::Interface::vtable(self).GetGameStatistics)(windows_core::Interface::as_raw(self), gdfbinarypath.param().abi(), opentype, core::mem::transmute(popenresult), core::mem::transmute(ppistats)).ok() } pub unsafe fn RemoveGameStatistics(&self, gdfbinarypath: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 8faf961c58..1c2e9aa9ba 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn AdjustCalendarDate(lpcaldatetime: *mut CALDATETIME, calunit: CALDATETIME_DATEUNIT, amount: i32) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn AdjustCalendarDate(lpcaldatetime : *mut CALDATETIME, calunit : CALDATETIME_DATEUNIT, amount : i32) -> super::Foundation:: BOOL); - AdjustCalendarDate(core::mem::transmute(lpcaldatetime), core::mem::transmute(calunit), core::mem::transmute(amount)) + AdjustCalendarDate(core::mem::transmute(lpcaldatetime), calunit, amount) } #[inline] pub unsafe fn CompareStringA(locale: u32, dwcmpflags: u32, lpstring1: &[i8], lpstring2: &[i8]) -> COMPARESTRING_RESULT { windows_targets::link!("kernel32.dll" "system" fn CompareStringA(locale : u32, dwcmpflags : u32, lpstring1 : *const i8, cchcount1 : i32, lpstring2 : *const i8, cchcount2 : i32) -> COMPARESTRING_RESULT); - CompareStringA(core::mem::transmute(locale), core::mem::transmute(dwcmpflags), core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap()) + CompareStringA(locale, dwcmpflags, core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap()) } #[inline] pub unsafe fn CompareStringEx(lplocalename: P0, dwcmpflags: COMPARE_STRING_FLAGS, lpstring1: &[u16], lpstring2: &[u16], lpversioninformation: Option<*const NLSVERSIONINFO>, lpreserved: Option<*const core::ffi::c_void>, lparam: Option) -> COMPARESTRING_RESULT @@ -14,7 +14,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CompareStringEx(lplocalename : windows_core::PCWSTR, dwcmpflags : COMPARE_STRING_FLAGS, lpstring1 : windows_core::PCWSTR, cchcount1 : i32, lpstring2 : windows_core::PCWSTR, cchcount2 : i32, lpversioninformation : *const NLSVERSIONINFO, lpreserved : *const core::ffi::c_void, lparam : super::Foundation:: LPARAM) -> COMPARESTRING_RESULT); - CompareStringEx(lplocalename.param().abi(), core::mem::transmute(dwcmpflags), core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap(), core::mem::transmute(lpversioninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) + CompareStringEx(lplocalename.param().abi(), dwcmpflags, core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap(), core::mem::transmute(lpversioninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CompareStringOrdinal(lpstring1: &[u16], lpstring2: &[u16], bignorecase: bool) -> COMPARESTRING_RESULT { @@ -24,32 +24,32 @@ pub unsafe fn CompareStringOrdinal(lpstring1: &[u16], lpstring2: &[u16], bignore #[inline] pub unsafe fn CompareStringW(locale: u32, dwcmpflags: u32, lpstring1: &[u16], lpstring2: &[u16]) -> COMPARESTRING_RESULT { windows_targets::link!("kernel32.dll" "system" fn CompareStringW(locale : u32, dwcmpflags : u32, lpstring1 : windows_core::PCWSTR, cchcount1 : i32, lpstring2 : windows_core::PCWSTR, cchcount2 : i32) -> COMPARESTRING_RESULT); - CompareStringW(core::mem::transmute(locale), core::mem::transmute(dwcmpflags), core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap()) + CompareStringW(locale, dwcmpflags, core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap()) } #[inline] pub unsafe fn ConvertCalDateTimeToSystemTime(lpcaldatetime: *const CALDATETIME, lpsystime: *mut super::Foundation::SYSTEMTIME) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn ConvertCalDateTimeToSystemTime(lpcaldatetime : *const CALDATETIME, lpsystime : *mut super::Foundation:: SYSTEMTIME) -> super::Foundation:: BOOL); - ConvertCalDateTimeToSystemTime(core::mem::transmute(lpcaldatetime), core::mem::transmute(lpsystime)) + ConvertCalDateTimeToSystemTime(lpcaldatetime, core::mem::transmute(lpsystime)) } #[inline] pub unsafe fn ConvertDefaultLocale(locale: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn ConvertDefaultLocale(locale : u32) -> u32); - ConvertDefaultLocale(core::mem::transmute(locale)) + ConvertDefaultLocale(locale) } #[inline] pub unsafe fn ConvertSystemTimeToCalDateTime(lpsystime: *const super::Foundation::SYSTEMTIME, calid: u32, lpcaldatetime: *mut CALDATETIME) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn ConvertSystemTimeToCalDateTime(lpsystime : *const super::Foundation:: SYSTEMTIME, calid : u32, lpcaldatetime : *mut CALDATETIME) -> super::Foundation:: BOOL); - ConvertSystemTimeToCalDateTime(core::mem::transmute(lpsystime), core::mem::transmute(calid), core::mem::transmute(lpcaldatetime)) + ConvertSystemTimeToCalDateTime(lpsystime, calid, core::mem::transmute(lpcaldatetime)) } #[inline] pub unsafe fn EnumCalendarInfoA(lpcalinfoenumproc: CALINFO_ENUMPROCA, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoA(lpcalinfoenumproc : CALINFO_ENUMPROCA, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); - EnumCalendarInfoA(core::mem::transmute(lpcalinfoenumproc), core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype)).ok() + EnumCalendarInfoA(lpcalinfoenumproc, locale, calendar, caltype).ok() } #[inline] pub unsafe fn EnumCalendarInfoExA(lpcalinfoenumprocex: CALINFO_ENUMPROCEXA, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExA(lpcalinfoenumprocex : CALINFO_ENUMPROCEXA, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); - EnumCalendarInfoExA(core::mem::transmute(lpcalinfoenumprocex), core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype)).ok() + EnumCalendarInfoExA(lpcalinfoenumprocex, locale, calendar, caltype).ok() } #[inline] pub unsafe fn EnumCalendarInfoExEx(pcalinfoenumprocexex: CALINFO_ENUMPROCEXEX, lplocalename: P1, calendar: u32, lpreserved: P3, caltype: u32, lparam: super::Foundation::LPARAM) -> windows_core::Result<()> @@ -58,27 +58,27 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExEx(pcalinfoenumprocexex : CALINFO_ENUMPROCEXEX, lplocalename : windows_core::PCWSTR, calendar : u32, lpreserved : windows_core::PCWSTR, caltype : u32, lparam : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); - EnumCalendarInfoExEx(core::mem::transmute(pcalinfoenumprocexex), lplocalename.param().abi(), core::mem::transmute(calendar), lpreserved.param().abi(), core::mem::transmute(caltype), core::mem::transmute(lparam)).ok() + EnumCalendarInfoExEx(pcalinfoenumprocexex, lplocalename.param().abi(), calendar, lpreserved.param().abi(), caltype, lparam).ok() } #[inline] pub unsafe fn EnumCalendarInfoExW(lpcalinfoenumprocex: CALINFO_ENUMPROCEXW, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExW(lpcalinfoenumprocex : CALINFO_ENUMPROCEXW, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); - EnumCalendarInfoExW(core::mem::transmute(lpcalinfoenumprocex), core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype)).ok() + EnumCalendarInfoExW(lpcalinfoenumprocex, locale, calendar, caltype).ok() } #[inline] pub unsafe fn EnumCalendarInfoW(lpcalinfoenumproc: CALINFO_ENUMPROCW, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoW(lpcalinfoenumproc : CALINFO_ENUMPROCW, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); - EnumCalendarInfoW(core::mem::transmute(lpcalinfoenumproc), core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype)).ok() + EnumCalendarInfoW(lpcalinfoenumproc, locale, calendar, caltype).ok() } #[inline] pub unsafe fn EnumDateFormatsA(lpdatefmtenumproc: DATEFMT_ENUMPROCA, locale: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsA(lpdatefmtenumproc : DATEFMT_ENUMPROCA, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); - EnumDateFormatsA(core::mem::transmute(lpdatefmtenumproc), core::mem::transmute(locale), core::mem::transmute(dwflags)).ok() + EnumDateFormatsA(lpdatefmtenumproc, locale, dwflags).ok() } #[inline] pub unsafe fn EnumDateFormatsExA(lpdatefmtenumprocex: DATEFMT_ENUMPROCEXA, locale: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExA(lpdatefmtenumprocex : DATEFMT_ENUMPROCEXA, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); - EnumDateFormatsExA(core::mem::transmute(lpdatefmtenumprocex), core::mem::transmute(locale), core::mem::transmute(dwflags)).ok() + EnumDateFormatsExA(lpdatefmtenumprocex, locale, dwflags).ok() } #[inline] pub unsafe fn EnumDateFormatsExEx(lpdatefmtenumprocexex: DATEFMT_ENUMPROCEXEX, lplocalename: P1, dwflags: ENUM_DATE_FORMATS_FLAGS, lparam: super::Foundation::LPARAM) -> windows_core::Result<()> @@ -86,77 +86,77 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExEx(lpdatefmtenumprocexex : DATEFMT_ENUMPROCEXEX, lplocalename : windows_core::PCWSTR, dwflags : ENUM_DATE_FORMATS_FLAGS, lparam : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); - EnumDateFormatsExEx(core::mem::transmute(lpdatefmtenumprocexex), lplocalename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumDateFormatsExEx(lpdatefmtenumprocexex, lplocalename.param().abi(), dwflags, lparam).ok() } #[inline] pub unsafe fn EnumDateFormatsExW(lpdatefmtenumprocex: DATEFMT_ENUMPROCEXW, locale: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExW(lpdatefmtenumprocex : DATEFMT_ENUMPROCEXW, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); - EnumDateFormatsExW(core::mem::transmute(lpdatefmtenumprocex), core::mem::transmute(locale), core::mem::transmute(dwflags)).ok() + EnumDateFormatsExW(lpdatefmtenumprocex, locale, dwflags).ok() } #[inline] pub unsafe fn EnumDateFormatsW(lpdatefmtenumproc: DATEFMT_ENUMPROCW, locale: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsW(lpdatefmtenumproc : DATEFMT_ENUMPROCW, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); - EnumDateFormatsW(core::mem::transmute(lpdatefmtenumproc), core::mem::transmute(locale), core::mem::transmute(dwflags)).ok() + EnumDateFormatsW(lpdatefmtenumproc, locale, dwflags).ok() } #[inline] pub unsafe fn EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc: LANGGROUPLOCALE_ENUMPROCA, languagegroup: u32, dwflags: u32, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc : LANGGROUPLOCALE_ENUMPROCA, languagegroup : u32, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); - EnumLanguageGroupLocalesA(core::mem::transmute(lplanggrouplocaleenumproc), core::mem::transmute(languagegroup), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc, languagegroup, dwflags, lparam).ok() } #[inline] pub unsafe fn EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc: LANGGROUPLOCALE_ENUMPROCW, languagegroup: u32, dwflags: u32, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc : LANGGROUPLOCALE_ENUMPROCW, languagegroup : u32, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); - EnumLanguageGroupLocalesW(core::mem::transmute(lplanggrouplocaleenumproc), core::mem::transmute(languagegroup), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc, languagegroup, dwflags, lparam).ok() } #[inline] pub unsafe fn EnumSystemCodePagesA(lpcodepageenumproc: CODEPAGE_ENUMPROCA, dwflags: ENUM_SYSTEM_CODE_PAGES_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemCodePagesA(lpcodepageenumproc : CODEPAGE_ENUMPROCA, dwflags : ENUM_SYSTEM_CODE_PAGES_FLAGS) -> super::Foundation:: BOOL); - EnumSystemCodePagesA(core::mem::transmute(lpcodepageenumproc), core::mem::transmute(dwflags)).ok() + EnumSystemCodePagesA(lpcodepageenumproc, dwflags).ok() } #[inline] pub unsafe fn EnumSystemCodePagesW(lpcodepageenumproc: CODEPAGE_ENUMPROCW, dwflags: ENUM_SYSTEM_CODE_PAGES_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemCodePagesW(lpcodepageenumproc : CODEPAGE_ENUMPROCW, dwflags : ENUM_SYSTEM_CODE_PAGES_FLAGS) -> super::Foundation:: BOOL); - EnumSystemCodePagesW(core::mem::transmute(lpcodepageenumproc), core::mem::transmute(dwflags)).ok() + EnumSystemCodePagesW(lpcodepageenumproc, dwflags).ok() } #[inline] pub unsafe fn EnumSystemGeoID(geoclass: u32, parentgeoid: i32, lpgeoenumproc: GEO_ENUMPROC) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoID(geoclass : u32, parentgeoid : i32, lpgeoenumproc : GEO_ENUMPROC) -> super::Foundation:: BOOL); - EnumSystemGeoID(core::mem::transmute(geoclass), core::mem::transmute(parentgeoid), core::mem::transmute(lpgeoenumproc)).ok() + EnumSystemGeoID(geoclass, parentgeoid, lpgeoenumproc).ok() } #[inline] pub unsafe fn EnumSystemGeoNames(geoclass: u32, geoenumproc: GEO_ENUMNAMEPROC, data: super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoNames(geoclass : u32, geoenumproc : GEO_ENUMNAMEPROC, data : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); - EnumSystemGeoNames(core::mem::transmute(geoclass), core::mem::transmute(geoenumproc), core::mem::transmute(data)).ok() + EnumSystemGeoNames(geoclass, geoenumproc, data).ok() } #[inline] pub unsafe fn EnumSystemLanguageGroupsA(lplanguagegroupenumproc: LANGUAGEGROUP_ENUMPROCA, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemLanguageGroupsA(lplanguagegroupenumproc : LANGUAGEGROUP_ENUMPROCA, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam : isize) -> super::Foundation:: BOOL); - EnumSystemLanguageGroupsA(core::mem::transmute(lplanguagegroupenumproc), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumSystemLanguageGroupsA(lplanguagegroupenumproc, dwflags, lparam).ok() } #[inline] pub unsafe fn EnumSystemLanguageGroupsW(lplanguagegroupenumproc: LANGUAGEGROUP_ENUMPROCW, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemLanguageGroupsW(lplanguagegroupenumproc : LANGUAGEGROUP_ENUMPROCW, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam : isize) -> super::Foundation:: BOOL); - EnumSystemLanguageGroupsW(core::mem::transmute(lplanguagegroupenumproc), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumSystemLanguageGroupsW(lplanguagegroupenumproc, dwflags, lparam).ok() } #[inline] pub unsafe fn EnumSystemLocalesA(lplocaleenumproc: LOCALE_ENUMPROCA, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesA(lplocaleenumproc : LOCALE_ENUMPROCA, dwflags : u32) -> super::Foundation:: BOOL); - EnumSystemLocalesA(core::mem::transmute(lplocaleenumproc), core::mem::transmute(dwflags)).ok() + EnumSystemLocalesA(lplocaleenumproc, dwflags).ok() } #[inline] pub unsafe fn EnumSystemLocalesEx(lplocaleenumprocex: LOCALE_ENUMPROCEX, dwflags: u32, lparam: super::Foundation::LPARAM, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesEx(lplocaleenumprocex : LOCALE_ENUMPROCEX, dwflags : u32, lparam : super::Foundation:: LPARAM, lpreserved : *const core::ffi::c_void) -> super::Foundation:: BOOL); - EnumSystemLocalesEx(core::mem::transmute(lplocaleenumprocex), core::mem::transmute(dwflags), core::mem::transmute(lparam), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + EnumSystemLocalesEx(lplocaleenumprocex, dwflags, lparam, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnumSystemLocalesW(lplocaleenumproc: LOCALE_ENUMPROCW, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesW(lplocaleenumproc : LOCALE_ENUMPROCW, dwflags : u32) -> super::Foundation:: BOOL); - EnumSystemLocalesW(core::mem::transmute(lplocaleenumproc), core::mem::transmute(dwflags)).ok() + EnumSystemLocalesW(lplocaleenumproc, dwflags).ok() } #[inline] pub unsafe fn EnumTimeFormatsA(lptimefmtenumproc: TIMEFMT_ENUMPROCA, locale: u32, dwflags: TIME_FORMAT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsA(lptimefmtenumproc : TIMEFMT_ENUMPROCA, locale : u32, dwflags : TIME_FORMAT_FLAGS) -> super::Foundation:: BOOL); - EnumTimeFormatsA(core::mem::transmute(lptimefmtenumproc), core::mem::transmute(locale), core::mem::transmute(dwflags)).ok() + EnumTimeFormatsA(lptimefmtenumproc, locale, dwflags).ok() } #[inline] pub unsafe fn EnumTimeFormatsEx(lptimefmtenumprocex: TIMEFMT_ENUMPROCEX, lplocalename: P1, dwflags: u32, lparam: super::Foundation::LPARAM) -> windows_core::Result<()> @@ -164,27 +164,27 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsEx(lptimefmtenumprocex : TIMEFMT_ENUMPROCEX, lplocalename : windows_core::PCWSTR, dwflags : u32, lparam : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); - EnumTimeFormatsEx(core::mem::transmute(lptimefmtenumprocex), lplocalename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumTimeFormatsEx(lptimefmtenumprocex, lplocalename.param().abi(), dwflags, lparam).ok() } #[inline] pub unsafe fn EnumTimeFormatsW(lptimefmtenumproc: TIMEFMT_ENUMPROCW, locale: u32, dwflags: TIME_FORMAT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsW(lptimefmtenumproc : TIMEFMT_ENUMPROCW, locale : u32, dwflags : TIME_FORMAT_FLAGS) -> super::Foundation:: BOOL); - EnumTimeFormatsW(core::mem::transmute(lptimefmtenumproc), core::mem::transmute(locale), core::mem::transmute(dwflags)).ok() + EnumTimeFormatsW(lptimefmtenumproc, locale, dwflags).ok() } #[inline] pub unsafe fn EnumUILanguagesA(lpuilanguageenumproc: UILANGUAGE_ENUMPROCA, dwflags: u32, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumUILanguagesA(lpuilanguageenumproc : UILANGUAGE_ENUMPROCA, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); - EnumUILanguagesA(core::mem::transmute(lpuilanguageenumproc), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumUILanguagesA(lpuilanguageenumproc, dwflags, lparam).ok() } #[inline] pub unsafe fn EnumUILanguagesW(lpuilanguageenumproc: UILANGUAGE_ENUMPROCW, dwflags: u32, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumUILanguagesW(lpuilanguageenumproc : UILANGUAGE_ENUMPROCW, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); - EnumUILanguagesW(core::mem::transmute(lpuilanguageenumproc), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + EnumUILanguagesW(lpuilanguageenumproc, dwflags, lparam).ok() } #[inline] pub unsafe fn FindNLSString(locale: u32, dwfindnlsstringflags: u32, lpstringsource: &[u16], lpstringvalue: &[u16], pcchfound: Option<*mut i32>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn FindNLSString(locale : u32, dwfindnlsstringflags : u32, lpstringsource : windows_core::PCWSTR, cchsource : i32, lpstringvalue : windows_core::PCWSTR, cchvalue : i32, pcchfound : *mut i32) -> i32); - FindNLSString(core::mem::transmute(locale), core::mem::transmute(dwfindnlsstringflags), core::mem::transmute(lpstringsource.as_ptr()), lpstringsource.len().try_into().unwrap(), core::mem::transmute(lpstringvalue.as_ptr()), lpstringvalue.len().try_into().unwrap(), core::mem::transmute(pcchfound.unwrap_or(core::mem::zeroed()))) + FindNLSString(locale, dwfindnlsstringflags, core::mem::transmute(lpstringsource.as_ptr()), lpstringsource.len().try_into().unwrap(), core::mem::transmute(lpstringvalue.as_ptr()), lpstringvalue.len().try_into().unwrap(), core::mem::transmute(pcchfound.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FindNLSStringEx(lplocalename: P0, dwfindnlsstringflags: u32, lpstringsource: &[u16], lpstringvalue: &[u16], pcchfound: Option<*mut i32>, lpversioninformation: Option<*const NLSVERSIONINFO>, lpreserved: Option<*const core::ffi::c_void>, sorthandle: super::Foundation::LPARAM) -> i32 @@ -192,33 +192,22 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNLSStringEx(lplocalename : windows_core::PCWSTR, dwfindnlsstringflags : u32, lpstringsource : windows_core::PCWSTR, cchsource : i32, lpstringvalue : windows_core::PCWSTR, cchvalue : i32, pcchfound : *mut i32, lpversioninformation : *const NLSVERSIONINFO, lpreserved : *const core::ffi::c_void, sorthandle : super::Foundation:: LPARAM) -> i32); - FindNLSStringEx( - lplocalename.param().abi(), - core::mem::transmute(dwfindnlsstringflags), - core::mem::transmute(lpstringsource.as_ptr()), - lpstringsource.len().try_into().unwrap(), - core::mem::transmute(lpstringvalue.as_ptr()), - lpstringvalue.len().try_into().unwrap(), - core::mem::transmute(pcchfound.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpversioninformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sorthandle), - ) + FindNLSStringEx(lplocalename.param().abi(), dwfindnlsstringflags, core::mem::transmute(lpstringsource.as_ptr()), lpstringsource.len().try_into().unwrap(), core::mem::transmute(lpstringvalue.as_ptr()), lpstringvalue.len().try_into().unwrap(), core::mem::transmute(pcchfound.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpversioninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), sorthandle) } #[inline] pub unsafe fn FindStringOrdinal(dwfindstringordinalflags: u32, lpstringsource: &[u16], lpstringvalue: &[u16], bignorecase: bool) -> i32 { windows_targets::link!("kernel32.dll" "system" fn FindStringOrdinal(dwfindstringordinalflags : u32, lpstringsource : windows_core::PCWSTR, cchsource : i32, lpstringvalue : windows_core::PCWSTR, cchvalue : i32, bignorecase : super::Foundation:: BOOL) -> i32); - FindStringOrdinal(core::mem::transmute(dwfindstringordinalflags), core::mem::transmute(lpstringsource.as_ptr()), lpstringsource.len().try_into().unwrap(), core::mem::transmute(lpstringvalue.as_ptr()), lpstringvalue.len().try_into().unwrap(), bignorecase.into()) + FindStringOrdinal(dwfindstringordinalflags, core::mem::transmute(lpstringsource.as_ptr()), lpstringsource.len().try_into().unwrap(), core::mem::transmute(lpstringvalue.as_ptr()), lpstringvalue.len().try_into().unwrap(), bignorecase.into()) } #[inline] pub unsafe fn FoldStringA(dwmapflags: FOLD_STRING_MAP_FLAGS, lpsrcstr: &[u8], lpdeststr: Option<&mut [u8]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn FoldStringA(dwmapflags : FOLD_STRING_MAP_FLAGS, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpdeststr : windows_core::PSTR, cchdest : i32) -> i32); - FoldStringA(core::mem::transmute(dwmapflags), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdeststr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + FoldStringA(dwmapflags, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdeststr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn FoldStringW(dwmapflags: FOLD_STRING_MAP_FLAGS, lpsrcstr: &[u16], lpdeststr: Option<&mut [u16]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn FoldStringW(dwmapflags : FOLD_STRING_MAP_FLAGS, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpdeststr : windows_core::PWSTR, cchdest : i32) -> i32); - FoldStringW(core::mem::transmute(dwmapflags), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdeststr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + FoldStringW(dwmapflags, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdeststr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetACP() -> u32 { @@ -228,17 +217,17 @@ pub unsafe fn GetACP() -> u32 { #[inline] pub unsafe fn GetCPInfo(codepage: u32, lpcpinfo: *mut CPINFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCPInfo(codepage : u32, lpcpinfo : *mut CPINFO) -> super::Foundation:: BOOL); - GetCPInfo(core::mem::transmute(codepage), core::mem::transmute(lpcpinfo)).ok() + GetCPInfo(codepage, core::mem::transmute(lpcpinfo)).ok() } #[inline] pub unsafe fn GetCPInfoExA(codepage: u32, dwflags: u32, lpcpinfoex: *mut CPINFOEXA) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCPInfoExA(codepage : u32, dwflags : u32, lpcpinfoex : *mut CPINFOEXA) -> super::Foundation:: BOOL); - GetCPInfoExA(core::mem::transmute(codepage), core::mem::transmute(dwflags), core::mem::transmute(lpcpinfoex)).ok() + GetCPInfoExA(codepage, dwflags, core::mem::transmute(lpcpinfoex)).ok() } #[inline] pub unsafe fn GetCPInfoExW(codepage: u32, dwflags: u32, lpcpinfoex: *mut CPINFOEXW) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCPInfoExW(codepage : u32, dwflags : u32, lpcpinfoex : *mut CPINFOEXW) -> super::Foundation:: BOOL); - GetCPInfoExW(core::mem::transmute(codepage), core::mem::transmute(dwflags), core::mem::transmute(lpcpinfoex)).ok() + GetCPInfoExW(codepage, dwflags, core::mem::transmute(lpcpinfoex)).ok() } #[inline] pub unsafe fn GetCalendarDateFormatEx(lpszlocale: P0, dwflags: u32, lpcaldatetime: *const CALDATETIME, lpformat: P3, lpdatestr: windows_core::PWSTR, cchdate: i32) -> super::Foundation::BOOL @@ -247,12 +236,12 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCalendarDateFormatEx(lpszlocale : windows_core::PCWSTR, dwflags : u32, lpcaldatetime : *const CALDATETIME, lpformat : windows_core::PCWSTR, lpdatestr : windows_core::PWSTR, cchdate : i32) -> super::Foundation:: BOOL); - GetCalendarDateFormatEx(lpszlocale.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpcaldatetime), lpformat.param().abi(), core::mem::transmute(lpdatestr), core::mem::transmute(cchdate)) + GetCalendarDateFormatEx(lpszlocale.param().abi(), dwflags, lpcaldatetime, lpformat.param().abi(), core::mem::transmute(lpdatestr), cchdate) } #[inline] pub unsafe fn GetCalendarInfoA(locale: u32, calendar: u32, caltype: u32, lpcaldata: Option<&mut [u8]>, lpvalue: Option<*mut u32>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetCalendarInfoA(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PSTR, cchdata : i32, lpvalue : *mut u32) -> i32); - GetCalendarInfoA(core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype), core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed()))) + GetCalendarInfoA(locale, calendar, caltype, core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCalendarInfoEx(lplocalename: P0, calendar: u32, lpreserved: P2, caltype: u32, lpcaldata: Option<&mut [u16]>, lpvalue: Option<*mut u32>) -> i32 @@ -261,17 +250,17 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCalendarInfoEx(lplocalename : windows_core::PCWSTR, calendar : u32, lpreserved : windows_core::PCWSTR, caltype : u32, lpcaldata : windows_core::PWSTR, cchdata : i32, lpvalue : *mut u32) -> i32); - GetCalendarInfoEx(lplocalename.param().abi(), core::mem::transmute(calendar), lpreserved.param().abi(), core::mem::transmute(caltype), core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed()))) + GetCalendarInfoEx(lplocalename.param().abi(), calendar, lpreserved.param().abi(), caltype, core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCalendarInfoW(locale: u32, calendar: u32, caltype: u32, lpcaldata: Option<&mut [u16]>, lpvalue: Option<*mut u32>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetCalendarInfoW(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PWSTR, cchdata : i32, lpvalue : *mut u32) -> i32); - GetCalendarInfoW(core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype), core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed()))) + GetCalendarInfoW(locale, calendar, caltype, core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCalendarSupportedDateRange(calendar: u32, lpcalmindatetime: *mut CALDATETIME, lpcalmaxdatetime: *mut CALDATETIME) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetCalendarSupportedDateRange(calendar : u32, lpcalmindatetime : *mut CALDATETIME, lpcalmaxdatetime : *mut CALDATETIME) -> super::Foundation:: BOOL); - GetCalendarSupportedDateRange(core::mem::transmute(calendar), core::mem::transmute(lpcalmindatetime), core::mem::transmute(lpcalmaxdatetime)) + GetCalendarSupportedDateRange(calendar, core::mem::transmute(lpcalmindatetime), core::mem::transmute(lpcalmaxdatetime)) } #[inline] pub unsafe fn GetCurrencyFormatA(locale: u32, dwflags: u32, lpvalue: P2, lpformat: Option<*const CURRENCYFMTA>, lpcurrencystr: Option<&mut [u8]>) -> i32 @@ -279,7 +268,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCurrencyFormatA(locale : u32, dwflags : u32, lpvalue : windows_core::PCSTR, lpformat : *const CURRENCYFMTA, lpcurrencystr : windows_core::PSTR, cchcurrency : i32) -> i32); - GetCurrencyFormatA(core::mem::transmute(locale), core::mem::transmute(dwflags), lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurrencystr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcurrencystr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetCurrencyFormatA(locale, dwflags, lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurrencystr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcurrencystr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetCurrencyFormatEx(lplocalename: P0, dwflags: u32, lpvalue: P2, lpformat: Option<*const CURRENCYFMTW>, lpcurrencystr: Option<&mut [u16]>) -> i32 @@ -288,7 +277,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCurrencyFormatEx(lplocalename : windows_core::PCWSTR, dwflags : u32, lpvalue : windows_core::PCWSTR, lpformat : *const CURRENCYFMTW, lpcurrencystr : windows_core::PWSTR, cchcurrency : i32) -> i32); - GetCurrencyFormatEx(lplocalename.param().abi(), core::mem::transmute(dwflags), lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurrencystr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcurrencystr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetCurrencyFormatEx(lplocalename.param().abi(), dwflags, lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurrencystr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcurrencystr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetCurrencyFormatW(locale: u32, dwflags: u32, lpvalue: P2, lpformat: Option<*const CURRENCYFMTW>, lpcurrencystr: Option<&mut [u16]>) -> i32 @@ -296,7 +285,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCurrencyFormatW(locale : u32, dwflags : u32, lpvalue : windows_core::PCWSTR, lpformat : *const CURRENCYFMTW, lpcurrencystr : windows_core::PWSTR, cchcurrency : i32) -> i32); - GetCurrencyFormatW(core::mem::transmute(locale), core::mem::transmute(dwflags), lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurrencystr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcurrencystr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetCurrencyFormatW(locale, dwflags, lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurrencystr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcurrencystr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetDateFormatA(locale: u32, dwflags: u32, lpdate: Option<*const super::Foundation::SYSTEMTIME>, lpformat: P3, lpdatestr: Option<&mut [u8]>) -> i32 @@ -304,7 +293,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDateFormatA(locale : u32, dwflags : u32, lpdate : *const super::Foundation:: SYSTEMTIME, lpformat : windows_core::PCSTR, lpdatestr : windows_core::PSTR, cchdate : i32) -> i32); - GetDateFormatA(core::mem::transmute(locale), core::mem::transmute(dwflags), core::mem::transmute(lpdate.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lpdatestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdatestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetDateFormatA(locale, dwflags, core::mem::transmute(lpdate.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lpdatestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdatestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetDateFormatEx(lplocalename: P0, dwflags: ENUM_DATE_FORMATS_FLAGS, lpdate: Option<*const super::Foundation::SYSTEMTIME>, lpformat: P3, lpdatestr: Option<&mut [u16]>, lpcalendar: P6) -> i32 @@ -314,7 +303,7 @@ where P6: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDateFormatEx(lplocalename : windows_core::PCWSTR, dwflags : ENUM_DATE_FORMATS_FLAGS, lpdate : *const super::Foundation:: SYSTEMTIME, lpformat : windows_core::PCWSTR, lpdatestr : windows_core::PWSTR, cchdate : i32, lpcalendar : windows_core::PCWSTR) -> i32); - GetDateFormatEx(lplocalename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpdate.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lpdatestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdatestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcalendar.param().abi()) + GetDateFormatEx(lplocalename.param().abi(), dwflags, core::mem::transmute(lpdate.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lpdatestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdatestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcalendar.param().abi()) } #[inline] pub unsafe fn GetDateFormatW(locale: u32, dwflags: u32, lpdate: Option<*const super::Foundation::SYSTEMTIME>, lpformat: P3, lpdatestr: Option<&mut [u16]>) -> i32 @@ -322,7 +311,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDateFormatW(locale : u32, dwflags : u32, lpdate : *const super::Foundation:: SYSTEMTIME, lpformat : windows_core::PCWSTR, lpdatestr : windows_core::PWSTR, cchdate : i32) -> i32); - GetDateFormatW(core::mem::transmute(locale), core::mem::transmute(dwflags), core::mem::transmute(lpdate.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lpdatestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdatestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetDateFormatW(locale, dwflags, core::mem::transmute(lpdate.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lpdatestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdatestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetDistanceOfClosestLanguageInList(pszlanguage: P0, pszlanguageslist: P1, wchlistdelimiter: u16) -> windows_core::Result @@ -332,7 +321,7 @@ where { windows_targets::link!("bcp47mrm.dll" "system" fn GetDistanceOfClosestLanguageInList(pszlanguage : windows_core::PCWSTR, pszlanguageslist : windows_core::PCWSTR, wchlistdelimiter : u16, pclosestdistance : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetDistanceOfClosestLanguageInList(pszlanguage.param().abi(), pszlanguageslist.param().abi(), core::mem::transmute(wchlistdelimiter), &mut result__).map(|| core::mem::transmute(result__)) + GetDistanceOfClosestLanguageInList(pszlanguage.param().abi(), pszlanguageslist.param().abi(), wchlistdelimiter, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetDurationFormat(locale: u32, dwflags: u32, lpduration: Option<*const super::Foundation::SYSTEMTIME>, ullduration: u64, lpformat: P4, lpdurationstr: Option<&mut [u16]>) -> i32 @@ -340,7 +329,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDurationFormat(locale : u32, dwflags : u32, lpduration : *const super::Foundation:: SYSTEMTIME, ullduration : u64, lpformat : windows_core::PCWSTR, lpdurationstr : windows_core::PWSTR, cchduration : i32) -> i32); - GetDurationFormat(core::mem::transmute(locale), core::mem::transmute(dwflags), core::mem::transmute(lpduration.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullduration), lpformat.param().abi(), core::mem::transmute(lpdurationstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdurationstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetDurationFormat(locale, dwflags, core::mem::transmute(lpduration.unwrap_or(core::mem::zeroed())), ullduration, lpformat.param().abi(), core::mem::transmute(lpdurationstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdurationstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetDurationFormatEx(lplocalename: P0, dwflags: u32, lpduration: Option<*const super::Foundation::SYSTEMTIME>, ullduration: u64, lpformat: P4, lpdurationstr: Option<&mut [u16]>) -> i32 @@ -349,7 +338,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDurationFormatEx(lplocalename : windows_core::PCWSTR, dwflags : u32, lpduration : *const super::Foundation:: SYSTEMTIME, ullduration : u64, lpformat : windows_core::PCWSTR, lpdurationstr : windows_core::PWSTR, cchduration : i32) -> i32); - GetDurationFormatEx(lplocalename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpduration.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullduration), lpformat.param().abi(), core::mem::transmute(lpdurationstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdurationstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetDurationFormatEx(lplocalename.param().abi(), dwflags, core::mem::transmute(lpduration.unwrap_or(core::mem::zeroed())), ullduration, lpformat.param().abi(), core::mem::transmute(lpdurationstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdurationstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetFileMUIInfo(dwflags: u32, pcwszfilepath: P1, pfilemuiinfo: Option<*mut FILEMUIINFO>, pcbfilemuiinfo: *mut u32) -> windows_core::Result<()> @@ -357,7 +346,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileMUIInfo(dwflags : u32, pcwszfilepath : windows_core::PCWSTR, pfilemuiinfo : *mut FILEMUIINFO, pcbfilemuiinfo : *mut u32) -> super::Foundation:: BOOL); - GetFileMUIInfo(core::mem::transmute(dwflags), pcwszfilepath.param().abi(), core::mem::transmute(pfilemuiinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbfilemuiinfo)).ok() + GetFileMUIInfo(dwflags, pcwszfilepath.param().abi(), core::mem::transmute(pfilemuiinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbfilemuiinfo)).ok() } #[inline] pub unsafe fn GetFileMUIPath(dwflags: u32, pcwszfilepath: P1, pwszlanguage: Option, pcchlanguage: *mut u32, pwszfilemuipath: Option, pcchfilemuipath: *mut u32, pululenumerator: *mut u64) -> windows_core::Result<()> @@ -365,12 +354,12 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileMUIPath(dwflags : u32, pcwszfilepath : windows_core::PCWSTR, pwszlanguage : windows_core::PWSTR, pcchlanguage : *mut u32, pwszfilemuipath : windows_core::PWSTR, pcchfilemuipath : *mut u32, pululenumerator : *mut u64) -> super::Foundation:: BOOL); - GetFileMUIPath(core::mem::transmute(dwflags), pcwszfilepath.param().abi(), core::mem::transmute(pwszlanguage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguage), core::mem::transmute(pwszfilemuipath.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchfilemuipath), core::mem::transmute(pululenumerator)).ok() + GetFileMUIPath(dwflags, pcwszfilepath.param().abi(), core::mem::transmute(pwszlanguage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguage), core::mem::transmute(pwszfilemuipath.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchfilemuipath), core::mem::transmute(pululenumerator)).ok() } #[inline] pub unsafe fn GetGeoInfoA(location: i32, geotype: SYSGEOTYPE, lpgeodata: Option<&mut [u8]>, langid: u16) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetGeoInfoA(location : i32, geotype : SYSGEOTYPE, lpgeodata : windows_core::PSTR, cchdata : i32, langid : u16) -> i32); - GetGeoInfoA(core::mem::transmute(location), core::mem::transmute(geotype), core::mem::transmute(lpgeodata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpgeodata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(langid)) + GetGeoInfoA(location, geotype, core::mem::transmute(lpgeodata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpgeodata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), langid) } #[inline] pub unsafe fn GetGeoInfoEx(location: P0, geotype: SYSGEOTYPE, geodata: Option<&mut [u16]>) -> i32 @@ -378,17 +367,17 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetGeoInfoEx(location : windows_core::PCWSTR, geotype : SYSGEOTYPE, geodata : windows_core::PWSTR, geodatacount : i32) -> i32); - GetGeoInfoEx(location.param().abi(), core::mem::transmute(geotype), core::mem::transmute(geodata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), geodata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetGeoInfoEx(location.param().abi(), geotype, core::mem::transmute(geodata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), geodata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetGeoInfoW(location: i32, geotype: SYSGEOTYPE, lpgeodata: Option<&mut [u16]>, langid: u16) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetGeoInfoW(location : i32, geotype : SYSGEOTYPE, lpgeodata : windows_core::PWSTR, cchdata : i32, langid : u16) -> i32); - GetGeoInfoW(core::mem::transmute(location), core::mem::transmute(geotype), core::mem::transmute(lpgeodata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpgeodata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(langid)) + GetGeoInfoW(location, geotype, core::mem::transmute(lpgeodata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpgeodata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), langid) } #[inline] pub unsafe fn GetLocaleInfoA(locale: u32, lctype: u32, lplcdata: Option<&mut [u8]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetLocaleInfoA(locale : u32, lctype : u32, lplcdata : windows_core::PSTR, cchdata : i32) -> i32); - GetLocaleInfoA(core::mem::transmute(locale), core::mem::transmute(lctype), core::mem::transmute(lplcdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplcdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetLocaleInfoA(locale, lctype, core::mem::transmute(lplcdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplcdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetLocaleInfoEx(lplocalename: P0, lctype: u32, lplcdata: Option<&mut [u16]>) -> i32 @@ -396,17 +385,17 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetLocaleInfoEx(lplocalename : windows_core::PCWSTR, lctype : u32, lplcdata : windows_core::PWSTR, cchdata : i32) -> i32); - GetLocaleInfoEx(lplocalename.param().abi(), core::mem::transmute(lctype), core::mem::transmute(lplcdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplcdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetLocaleInfoEx(lplocalename.param().abi(), lctype, core::mem::transmute(lplcdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplcdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetLocaleInfoW(locale: u32, lctype: u32, lplcdata: Option<&mut [u16]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetLocaleInfoW(locale : u32, lctype : u32, lplcdata : windows_core::PWSTR, cchdata : i32) -> i32); - GetLocaleInfoW(core::mem::transmute(locale), core::mem::transmute(lctype), core::mem::transmute(lplcdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplcdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetLocaleInfoW(locale, lctype, core::mem::transmute(lplcdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplcdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetNLSVersion(function: u32, locale: u32, lpversioninformation: *mut NLSVERSIONINFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNLSVersion(function : u32, locale : u32, lpversioninformation : *mut NLSVERSIONINFO) -> super::Foundation:: BOOL); - GetNLSVersion(core::mem::transmute(function), core::mem::transmute(locale), core::mem::transmute(lpversioninformation)).ok() + GetNLSVersion(function, locale, core::mem::transmute(lpversioninformation)).ok() } #[inline] pub unsafe fn GetNLSVersionEx(function: u32, lplocalename: P1, lpversioninformation: *mut NLSVERSIONINFOEX) -> windows_core::Result<()> @@ -414,7 +403,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNLSVersionEx(function : u32, lplocalename : windows_core::PCWSTR, lpversioninformation : *mut NLSVERSIONINFOEX) -> super::Foundation:: BOOL); - GetNLSVersionEx(core::mem::transmute(function), lplocalename.param().abi(), core::mem::transmute(lpversioninformation)).ok() + GetNLSVersionEx(function, lplocalename.param().abi(), core::mem::transmute(lpversioninformation)).ok() } #[inline] pub unsafe fn GetNumberFormatA(locale: u32, dwflags: u32, lpvalue: P2, lpformat: Option<*const NUMBERFMTA>, lpnumberstr: Option<&mut [u8]>) -> i32 @@ -422,7 +411,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNumberFormatA(locale : u32, dwflags : u32, lpvalue : windows_core::PCSTR, lpformat : *const NUMBERFMTA, lpnumberstr : windows_core::PSTR, cchnumber : i32) -> i32); - GetNumberFormatA(core::mem::transmute(locale), core::mem::transmute(dwflags), lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnumberstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnumberstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetNumberFormatA(locale, dwflags, lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnumberstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnumberstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetNumberFormatEx(lplocalename: P0, dwflags: u32, lpvalue: P2, lpformat: Option<*const NUMBERFMTW>, lpnumberstr: Option<&mut [u16]>) -> i32 @@ -431,7 +420,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNumberFormatEx(lplocalename : windows_core::PCWSTR, dwflags : u32, lpvalue : windows_core::PCWSTR, lpformat : *const NUMBERFMTW, lpnumberstr : windows_core::PWSTR, cchnumber : i32) -> i32); - GetNumberFormatEx(lplocalename.param().abi(), core::mem::transmute(dwflags), lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnumberstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnumberstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetNumberFormatEx(lplocalename.param().abi(), dwflags, lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnumberstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnumberstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetNumberFormatW(locale: u32, dwflags: u32, lpvalue: P2, lpformat: Option<*const NUMBERFMTW>, lpnumberstr: Option<&mut [u16]>) -> i32 @@ -439,7 +428,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNumberFormatW(locale : u32, dwflags : u32, lpvalue : windows_core::PCWSTR, lpformat : *const NUMBERFMTW, lpnumberstr : windows_core::PWSTR, cchnumber : i32) -> i32); - GetNumberFormatW(core::mem::transmute(locale), core::mem::transmute(dwflags), lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnumberstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnumberstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetNumberFormatW(locale, dwflags, lpvalue.param().abi(), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnumberstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnumberstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetOEMCP() -> u32 { @@ -449,7 +438,7 @@ pub unsafe fn GetOEMCP() -> u32 { #[inline] pub unsafe fn GetProcessPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); - GetProcessPreferredUILanguages(core::mem::transmute(dwflags), core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() + GetProcessPreferredUILanguages(dwflags, core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() } #[inline] pub unsafe fn GetStringScripts(dwflags: u32, lpstring: P1, cchstring: i32, lpscripts: Option<&mut [u16]>) -> i32 @@ -457,12 +446,12 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetStringScripts(dwflags : u32, lpstring : windows_core::PCWSTR, cchstring : i32, lpscripts : windows_core::PWSTR, cchscripts : i32) -> i32); - GetStringScripts(core::mem::transmute(dwflags), lpstring.param().abi(), core::mem::transmute(cchstring), core::mem::transmute(lpscripts.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpscripts.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetStringScripts(dwflags, lpstring.param().abi(), cchstring, core::mem::transmute(lpscripts.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpscripts.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetStringTypeA(locale: u32, dwinfotype: u32, lpsrcstr: &[u8], lpchartype: *mut u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetStringTypeA(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); - GetStringTypeA(core::mem::transmute(locale), core::mem::transmute(dwinfotype), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpchartype)).ok() + GetStringTypeA(locale, dwinfotype, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpchartype)).ok() } #[inline] pub unsafe fn GetStringTypeExA(locale: u32, dwinfotype: u32, lpsrcstr: P2, cchsrc: i32, lpchartype: *mut u16) -> super::Foundation::BOOL @@ -470,7 +459,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetStringTypeExA(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); - GetStringTypeExA(core::mem::transmute(locale), core::mem::transmute(dwinfotype), lpsrcstr.param().abi(), core::mem::transmute(cchsrc), core::mem::transmute(lpchartype)) + GetStringTypeExA(locale, dwinfotype, lpsrcstr.param().abi(), cchsrc, core::mem::transmute(lpchartype)) } #[inline] pub unsafe fn GetStringTypeExW(locale: u32, dwinfotype: u32, lpsrcstr: P2, cchsrc: i32, lpchartype: *mut u16) -> windows_core::Result<()> @@ -478,12 +467,12 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetStringTypeExW(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); - GetStringTypeExW(core::mem::transmute(locale), core::mem::transmute(dwinfotype), lpsrcstr.param().abi(), core::mem::transmute(cchsrc), core::mem::transmute(lpchartype)).ok() + GetStringTypeExW(locale, dwinfotype, lpsrcstr.param().abi(), cchsrc, core::mem::transmute(lpchartype)).ok() } #[inline] pub unsafe fn GetStringTypeW(dwinfotype: u32, lpsrcstr: &[u16], lpchartype: *mut u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetStringTypeW(dwinfotype : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); - GetStringTypeW(core::mem::transmute(dwinfotype), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpchartype)).ok() + GetStringTypeW(dwinfotype, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpchartype)).ok() } #[inline] pub unsafe fn GetSystemDefaultLCID() -> u32 { @@ -508,19 +497,19 @@ pub unsafe fn GetSystemDefaultUILanguage() -> u16 { #[inline] pub unsafe fn GetSystemPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetSystemPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); - GetSystemPreferredUILanguages(core::mem::transmute(dwflags), core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() + GetSystemPreferredUILanguages(dwflags, core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetTextCharset(hdc: super::Graphics::Gdi::HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetTextCharset(hdc : super::Graphics::Gdi:: HDC) -> i32); - GetTextCharset(core::mem::transmute(hdc)) + GetTextCharset(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetTextCharsetInfo(hdc: super::Graphics::Gdi::HDC, lpsig: Option<*mut FONTSIGNATURE>, dwflags: u32) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetTextCharsetInfo(hdc : super::Graphics::Gdi:: HDC, lpsig : *mut FONTSIGNATURE, dwflags : u32) -> i32); - GetTextCharsetInfo(core::mem::transmute(hdc), core::mem::transmute(lpsig.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + GetTextCharsetInfo(hdc, core::mem::transmute(lpsig.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn GetThreadLocale() -> u32 { @@ -530,7 +519,7 @@ pub unsafe fn GetThreadLocale() -> u32 { #[inline] pub unsafe fn GetThreadPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); - GetThreadPreferredUILanguages(core::mem::transmute(dwflags), core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() + GetThreadPreferredUILanguages(dwflags, core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() } #[inline] pub unsafe fn GetThreadUILanguage() -> u16 { @@ -543,7 +532,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetTimeFormatA(locale : u32, dwflags : u32, lptime : *const super::Foundation:: SYSTEMTIME, lpformat : windows_core::PCSTR, lptimestr : windows_core::PSTR, cchtime : i32) -> i32); - GetTimeFormatA(core::mem::transmute(locale), core::mem::transmute(dwflags), core::mem::transmute(lptime.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lptimestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptimestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetTimeFormatA(locale, dwflags, core::mem::transmute(lptime.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lptimestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptimestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetTimeFormatEx(lplocalename: P0, dwflags: TIME_FORMAT_FLAGS, lptime: Option<*const super::Foundation::SYSTEMTIME>, lpformat: P3, lptimestr: Option<&mut [u16]>) -> i32 @@ -552,7 +541,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetTimeFormatEx(lplocalename : windows_core::PCWSTR, dwflags : TIME_FORMAT_FLAGS, lptime : *const super::Foundation:: SYSTEMTIME, lpformat : windows_core::PCWSTR, lptimestr : windows_core::PWSTR, cchtime : i32) -> i32); - GetTimeFormatEx(lplocalename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lptime.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lptimestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptimestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetTimeFormatEx(lplocalename.param().abi(), dwflags, core::mem::transmute(lptime.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lptimestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptimestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetTimeFormatW(locale: u32, dwflags: u32, lptime: Option<*const super::Foundation::SYSTEMTIME>, lpformat: P3, lptimestr: Option<&mut [u16]>) -> i32 @@ -560,7 +549,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetTimeFormatW(locale : u32, dwflags : u32, lptime : *const super::Foundation:: SYSTEMTIME, lpformat : windows_core::PCWSTR, lptimestr : windows_core::PWSTR, cchtime : i32) -> i32); - GetTimeFormatW(core::mem::transmute(locale), core::mem::transmute(dwflags), core::mem::transmute(lptime.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lptimestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptimestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetTimeFormatW(locale, dwflags, core::mem::transmute(lptime.unwrap_or(core::mem::zeroed())), lpformat.param().abi(), core::mem::transmute(lptimestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptimestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetUILanguageInfo(dwflags: u32, pwmszlanguage: P1, pwszfallbacklanguages: Option, pcchfallbacklanguages: Option<*mut u32>, pattributes: *mut u32) -> windows_core::Result<()> @@ -568,7 +557,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetUILanguageInfo(dwflags : u32, pwmszlanguage : windows_core::PCWSTR, pwszfallbacklanguages : windows_core::PWSTR, pcchfallbacklanguages : *mut u32, pattributes : *mut u32) -> super::Foundation:: BOOL); - GetUILanguageInfo(core::mem::transmute(dwflags), pwmszlanguage.param().abi(), core::mem::transmute(pwszfallbacklanguages.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchfallbacklanguages.unwrap_or(core::mem::zeroed())), core::mem::transmute(pattributes)).ok() + GetUILanguageInfo(dwflags, pwmszlanguage.param().abi(), core::mem::transmute(pwszfallbacklanguages.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchfallbacklanguages.unwrap_or(core::mem::zeroed())), core::mem::transmute(pattributes)).ok() } #[inline] pub unsafe fn GetUserDefaultGeoName(geoname: &mut [u16]) -> i32 { @@ -598,72 +587,72 @@ pub unsafe fn GetUserDefaultUILanguage() -> u16 { #[inline] pub unsafe fn GetUserGeoID(geoclass: SYSGEOCLASS) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetUserGeoID(geoclass : SYSGEOCLASS) -> i32); - GetUserGeoID(core::mem::transmute(geoclass)) + GetUserGeoID(geoclass) } #[inline] pub unsafe fn GetUserPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetUserPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); - GetUserPreferredUILanguages(core::mem::transmute(dwflags), core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() + GetUserPreferredUILanguages(dwflags, core::mem::transmute(pulnumlanguages), core::mem::transmute(pwszlanguagesbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlanguagesbuffer)).ok() } #[inline] pub unsafe fn IdnToAscii(dwflags: u32, lpunicodecharstr: &[u16], lpasciicharstr: Option<&mut [u16]>) -> i32 { windows_targets::link!("normaliz.dll" "system" fn IdnToAscii(dwflags : u32, lpunicodecharstr : windows_core::PCWSTR, cchunicodechar : i32, lpasciicharstr : windows_core::PWSTR, cchasciichar : i32) -> i32); - IdnToAscii(core::mem::transmute(dwflags), core::mem::transmute(lpunicodecharstr.as_ptr()), lpunicodecharstr.len().try_into().unwrap(), core::mem::transmute(lpasciicharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpasciicharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + IdnToAscii(dwflags, core::mem::transmute(lpunicodecharstr.as_ptr()), lpunicodecharstr.len().try_into().unwrap(), core::mem::transmute(lpasciicharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpasciicharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn IdnToNameprepUnicode(dwflags: u32, lpunicodecharstr: &[u16], lpnameprepcharstr: Option<&mut [u16]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn IdnToNameprepUnicode(dwflags : u32, lpunicodecharstr : windows_core::PCWSTR, cchunicodechar : i32, lpnameprepcharstr : windows_core::PWSTR, cchnameprepchar : i32) -> i32); - IdnToNameprepUnicode(core::mem::transmute(dwflags), core::mem::transmute(lpunicodecharstr.as_ptr()), lpunicodecharstr.len().try_into().unwrap(), core::mem::transmute(lpnameprepcharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnameprepcharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + IdnToNameprepUnicode(dwflags, core::mem::transmute(lpunicodecharstr.as_ptr()), lpunicodecharstr.len().try_into().unwrap(), core::mem::transmute(lpnameprepcharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpnameprepcharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn IdnToUnicode(dwflags: u32, lpasciicharstr: &[u16], lpunicodecharstr: Option<&mut [u16]>) -> i32 { windows_targets::link!("normaliz.dll" "system" fn IdnToUnicode(dwflags : u32, lpasciicharstr : windows_core::PCWSTR, cchasciichar : i32, lpunicodecharstr : windows_core::PWSTR, cchunicodechar : i32) -> i32); - IdnToUnicode(core::mem::transmute(dwflags), core::mem::transmute(lpasciicharstr.as_ptr()), lpasciicharstr.len().try_into().unwrap(), core::mem::transmute(lpunicodecharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpunicodecharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + IdnToUnicode(dwflags, core::mem::transmute(lpasciicharstr.as_ptr()), lpasciicharstr.len().try_into().unwrap(), core::mem::transmute(lpunicodecharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpunicodecharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn IsCalendarLeapYear(calid: u32, year: u32, era: u32) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsCalendarLeapYear(calid : u32, year : u32, era : u32) -> super::Foundation:: BOOL); - IsCalendarLeapYear(core::mem::transmute(calid), core::mem::transmute(year), core::mem::transmute(era)) + IsCalendarLeapYear(calid, year, era) } #[inline] pub unsafe fn IsDBCSLeadByte(testchar: u8) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsDBCSLeadByte(testchar : u8) -> super::Foundation:: BOOL); - IsDBCSLeadByte(core::mem::transmute(testchar)).ok() + IsDBCSLeadByte(testchar).ok() } #[inline] pub unsafe fn IsDBCSLeadByteEx(codepage: u32, testchar: u8) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsDBCSLeadByteEx(codepage : u32, testchar : u8) -> super::Foundation:: BOOL); - IsDBCSLeadByteEx(core::mem::transmute(codepage), core::mem::transmute(testchar)).ok() + IsDBCSLeadByteEx(codepage, testchar).ok() } #[inline] pub unsafe fn IsNLSDefinedString(function: u32, dwflags: u32, lpversioninformation: *const NLSVERSIONINFO, lpstring: &[u16]) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsNLSDefinedString(function : u32, dwflags : u32, lpversioninformation : *const NLSVERSIONINFO, lpstring : windows_core::PCWSTR, cchstr : i32) -> super::Foundation:: BOOL); - IsNLSDefinedString(core::mem::transmute(function), core::mem::transmute(dwflags), core::mem::transmute(lpversioninformation), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()).ok() + IsNLSDefinedString(function, dwflags, lpversioninformation, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn IsNormalizedString(normform: NORM_FORM, lpstring: &[u16]) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsNormalizedString(normform : NORM_FORM, lpstring : windows_core::PCWSTR, cwlength : i32) -> super::Foundation:: BOOL); - IsNormalizedString(core::mem::transmute(normform), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()).ok() + IsNormalizedString(normform, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn IsTextUnicode(lpv: *const core::ffi::c_void, isize: i32, lpiresult: Option<*mut IS_TEXT_UNICODE_RESULT>) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn IsTextUnicode(lpv : *const core::ffi::c_void, isize : i32, lpiresult : *mut IS_TEXT_UNICODE_RESULT) -> super::Foundation:: BOOL); - IsTextUnicode(core::mem::transmute(lpv), core::mem::transmute(isize), core::mem::transmute(lpiresult.unwrap_or(core::mem::zeroed()))) + IsTextUnicode(lpv, isize, core::mem::transmute(lpiresult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IsValidCodePage(codepage: u32) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsValidCodePage(codepage : u32) -> super::Foundation:: BOOL); - IsValidCodePage(core::mem::transmute(codepage)) + IsValidCodePage(codepage) } #[inline] pub unsafe fn IsValidLanguageGroup(languagegroup: u32, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsValidLanguageGroup(languagegroup : u32, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS) -> super::Foundation:: BOOL); - IsValidLanguageGroup(core::mem::transmute(languagegroup), core::mem::transmute(dwflags)) + IsValidLanguageGroup(languagegroup, dwflags) } #[inline] pub unsafe fn IsValidLocale(locale: u32, dwflags: IS_VALID_LOCALE_FLAGS) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsValidLocale(locale : u32, dwflags : IS_VALID_LOCALE_FLAGS) -> super::Foundation:: BOOL); - IsValidLocale(core::mem::transmute(locale), core::mem::transmute(dwflags)) + IsValidLocale(locale, dwflags) } #[inline] pub unsafe fn IsValidLocaleName(lplocalename: P0) -> super::Foundation::BOOL @@ -679,7 +668,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsValidNLSVersion(function : u32, lplocalename : windows_core::PCWSTR, lpversioninformation : *const NLSVERSIONINFOEX) -> u32); - IsValidNLSVersion(core::mem::transmute(function), lplocalename.param().abi(), core::mem::transmute(lpversioninformation)) + IsValidNLSVersion(function, lplocalename.param().abi(), lpversioninformation) } #[inline] pub unsafe fn IsWellFormedTag(psztag: P0) -> u8 @@ -692,12 +681,12 @@ where #[inline] pub unsafe fn LCIDToLocaleName(locale: u32, lpname: Option<&mut [u16]>, dwflags: u32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LCIDToLocaleName(locale : u32, lpname : windows_core::PWSTR, cchname : i32, dwflags : u32) -> i32); - LCIDToLocaleName(core::mem::transmute(locale), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags)) + LCIDToLocaleName(locale, core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags) } #[inline] pub unsafe fn LCMapStringA(locale: u32, dwmapflags: u32, lpsrcstr: &[u8], lpdeststr: Option, cchdest: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LCMapStringA(locale : u32, dwmapflags : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpdeststr : windows_core::PSTR, cchdest : i32) -> i32); - LCMapStringA(core::mem::transmute(locale), core::mem::transmute(dwmapflags), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchdest)) + LCMapStringA(locale, dwmapflags, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.unwrap_or(core::mem::zeroed())), cchdest) } #[inline] pub unsafe fn LCMapStringEx(lplocalename: P0, dwmapflags: u32, lpsrcstr: &[u16], lpdeststr: Option<&mut [u16]>, lpversioninformation: Option<*const NLSVERSIONINFO>, lpreserved: Option<*const core::ffi::c_void>, sorthandle: super::Foundation::LPARAM) -> i32 @@ -705,12 +694,12 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LCMapStringEx(lplocalename : windows_core::PCWSTR, dwmapflags : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpdeststr : windows_core::PWSTR, cchdest : i32, lpversioninformation : *const NLSVERSIONINFO, lpreserved : *const core::ffi::c_void, sorthandle : super::Foundation:: LPARAM) -> i32); - LCMapStringEx(lplocalename.param().abi(), core::mem::transmute(dwmapflags), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdeststr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpversioninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(sorthandle)) + LCMapStringEx(lplocalename.param().abi(), dwmapflags, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdeststr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpversioninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), sorthandle) } #[inline] pub unsafe fn LCMapStringW(locale: u32, dwmapflags: u32, lpsrcstr: &[u16], lpdeststr: Option, cchdest: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LCMapStringW(locale : u32, dwmapflags : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpdeststr : windows_core::PWSTR, cchdest : i32) -> i32); - LCMapStringW(core::mem::transmute(locale), core::mem::transmute(dwmapflags), core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchdest)) + LCMapStringW(locale, dwmapflags, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), core::mem::transmute(lpdeststr.unwrap_or(core::mem::zeroed())), cchdest) } #[inline] pub unsafe fn LocaleNameToLCID(lpname: P0, dwflags: u32) -> u32 @@ -718,7 +707,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocaleNameToLCID(lpname : windows_core::PCWSTR, dwflags : u32) -> u32); - LocaleNameToLCID(lpname.param().abi(), core::mem::transmute(dwflags)) + LocaleNameToLCID(lpname.param().abi(), dwflags) } #[inline] pub unsafe fn MappingDoAction(pbag: *mut MAPPING_PROPERTY_BAG, dwrangeindex: u32, pszactionid: P2) -> windows_core::Result<()> @@ -726,17 +715,17 @@ where P2: windows_core::Param, { windows_targets::link!("elscore.dll" "system" fn MappingDoAction(pbag : *mut MAPPING_PROPERTY_BAG, dwrangeindex : u32, pszactionid : windows_core::PCWSTR) -> windows_core::HRESULT); - MappingDoAction(core::mem::transmute(pbag), core::mem::transmute(dwrangeindex), pszactionid.param().abi()).ok() + MappingDoAction(core::mem::transmute(pbag), dwrangeindex, pszactionid.param().abi()).ok() } #[inline] pub unsafe fn MappingFreePropertyBag(pbag: *const MAPPING_PROPERTY_BAG) -> windows_core::Result<()> { windows_targets::link!("elscore.dll" "system" fn MappingFreePropertyBag(pbag : *const MAPPING_PROPERTY_BAG) -> windows_core::HRESULT); - MappingFreePropertyBag(core::mem::transmute(pbag)).ok() + MappingFreePropertyBag(pbag).ok() } #[inline] pub unsafe fn MappingFreeServices(pserviceinfo: *const MAPPING_SERVICE_INFO) -> windows_core::Result<()> { windows_targets::link!("elscore.dll" "system" fn MappingFreeServices(pserviceinfo : *const MAPPING_SERVICE_INFO) -> windows_core::HRESULT); - MappingFreeServices(core::mem::transmute(pserviceinfo)).ok() + MappingFreeServices(pserviceinfo).ok() } #[inline] pub unsafe fn MappingGetServices(poptions: Option<*const MAPPING_ENUM_OPTIONS>, prgservices: *mut *mut MAPPING_SERVICE_INFO, pdwservicescount: *mut u32) -> windows_core::Result<()> { @@ -746,17 +735,17 @@ pub unsafe fn MappingGetServices(poptions: Option<*const MAPPING_ENUM_OPTIONS>, #[inline] pub unsafe fn MappingRecognizeText(pserviceinfo: *const MAPPING_SERVICE_INFO, psztext: &[u16], dwindex: u32, poptions: Option<*const MAPPING_OPTIONS>, pbag: *mut MAPPING_PROPERTY_BAG) -> windows_core::Result<()> { windows_targets::link!("elscore.dll" "system" fn MappingRecognizeText(pserviceinfo : *const MAPPING_SERVICE_INFO, psztext : windows_core::PCWSTR, dwlength : u32, dwindex : u32, poptions : *const MAPPING_OPTIONS, pbag : *mut MAPPING_PROPERTY_BAG) -> windows_core::HRESULT); - MappingRecognizeText(core::mem::transmute(pserviceinfo), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), core::mem::transmute(dwindex), core::mem::transmute(poptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbag)).ok() + MappingRecognizeText(pserviceinfo, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwindex, core::mem::transmute(poptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbag)).ok() } #[inline] pub unsafe fn MultiByteToWideChar(codepage: u32, dwflags: MULTI_BYTE_TO_WIDE_CHAR_FLAGS, lpmultibytestr: &[u8], lpwidecharstr: Option<&mut [u16]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn MultiByteToWideChar(codepage : u32, dwflags : MULTI_BYTE_TO_WIDE_CHAR_FLAGS, lpmultibytestr : windows_core::PCSTR, cbmultibyte : i32, lpwidecharstr : windows_core::PWSTR, cchwidechar : i32) -> i32); - MultiByteToWideChar(core::mem::transmute(codepage), core::mem::transmute(dwflags), core::mem::transmute(lpmultibytestr.as_ptr()), lpmultibytestr.len().try_into().unwrap(), core::mem::transmute(lpwidecharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpwidecharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + MultiByteToWideChar(codepage, dwflags, core::mem::transmute(lpmultibytestr.as_ptr()), lpmultibytestr.len().try_into().unwrap(), core::mem::transmute(lpwidecharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpwidecharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn NormalizeString(normform: NORM_FORM, lpsrcstring: &[u16], lpdststring: Option<&mut [u16]>) -> i32 { windows_targets::link!("kernel32.dll" "system" fn NormalizeString(normform : NORM_FORM, lpsrcstring : windows_core::PCWSTR, cwsrclength : i32, lpdststring : windows_core::PWSTR, cwdstlength : i32) -> i32); - NormalizeString(core::mem::transmute(normform), core::mem::transmute(lpsrcstring.as_ptr()), lpsrcstring.len().try_into().unwrap(), core::mem::transmute(lpdststring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdststring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + NormalizeString(normform, core::mem::transmute(lpsrcstring.as_ptr()), lpsrcstring.len().try_into().unwrap(), core::mem::transmute(lpdststring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdststring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn NotifyUILanguageChange(dwflags: u32, pcwstrnewlanguage: P1, pcwstrpreviouslanguage: P2, dwreserved: Option, pdwstatusrtrn: Option<*mut u32>) -> super::Foundation::BOOL @@ -765,7 +754,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn NotifyUILanguageChange(dwflags : u32, pcwstrnewlanguage : windows_core::PCWSTR, pcwstrpreviouslanguage : windows_core::PCWSTR, dwreserved : u32, pdwstatusrtrn : *mut u32) -> super::Foundation:: BOOL); - NotifyUILanguageChange(core::mem::transmute(dwflags), pcwstrnewlanguage.param().abi(), pcwstrpreviouslanguage.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstatusrtrn.unwrap_or(core::mem::zeroed()))) + NotifyUILanguageChange(dwflags, pcwstrnewlanguage.param().abi(), pcwstrpreviouslanguage.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstatusrtrn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResolveLocaleName(lpnametoresolve: P0, lplocalename: Option<&mut [u16]>) -> i32 @@ -778,18 +767,18 @@ where #[inline] pub unsafe fn RestoreThreadPreferredUILanguages(snapshot: HSAVEDUILANGUAGES) { windows_targets::link!("kernel32.dll" "system" fn RestoreThreadPreferredUILanguages(snapshot : HSAVEDUILANGUAGES)); - RestoreThreadPreferredUILanguages(core::mem::transmute(snapshot)) + RestoreThreadPreferredUILanguages(snapshot) } #[inline] pub unsafe fn ScriptApplyDigitSubstitution(psds: *const SCRIPT_DIGITSUBSTITUTE, psc: *mut SCRIPT_CONTROL, pss: *mut SCRIPT_STATE) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptApplyDigitSubstitution(psds : *const SCRIPT_DIGITSUBSTITUTE, psc : *mut SCRIPT_CONTROL, pss : *mut SCRIPT_STATE) -> windows_core::HRESULT); - ScriptApplyDigitSubstitution(core::mem::transmute(psds), core::mem::transmute(psc), core::mem::transmute(pss)).ok() + ScriptApplyDigitSubstitution(psds, core::mem::transmute(psc), core::mem::transmute(pss)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptApplyLogicalWidth(pidx: *const i32, cchars: i32, cglyphs: i32, pwlogclust: *const u16, psva: *const SCRIPT_VISATTR, piadvance: *const i32, psa: *const SCRIPT_ANALYSIS, pabc: Option<*mut super::Graphics::Gdi::ABC>, pijustify: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptApplyLogicalWidth(pidx : *const i32, cchars : i32, cglyphs : i32, pwlogclust : *const u16, psva : *const SCRIPT_VISATTR, piadvance : *const i32, psa : *const SCRIPT_ANALYSIS, pabc : *mut super::Graphics::Gdi:: ABC, pijustify : *mut i32) -> windows_core::HRESULT); - ScriptApplyLogicalWidth(core::mem::transmute(pidx), core::mem::transmute(cchars), core::mem::transmute(cglyphs), core::mem::transmute(pwlogclust), core::mem::transmute(psva), core::mem::transmute(piadvance), core::mem::transmute(psa), core::mem::transmute(pabc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pijustify)).ok() + ScriptApplyLogicalWidth(pidx, cchars, cglyphs, pwlogclust, psva, piadvance, psa, core::mem::transmute(pabc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pijustify)).ok() } #[inline] pub unsafe fn ScriptBreak(pwcchars: P0, cchars: i32, psa: *const SCRIPT_ANALYSIS) -> windows_core::Result @@ -798,18 +787,18 @@ where { windows_targets::link!("usp10.dll" "system" fn ScriptBreak(pwcchars : windows_core::PCWSTR, cchars : i32, psa : *const SCRIPT_ANALYSIS, psla : *mut SCRIPT_LOGATTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ScriptBreak(pwcchars.param().abi(), core::mem::transmute(cchars), core::mem::transmute(psa), &mut result__).map(|| core::mem::transmute(result__)) + ScriptBreak(pwcchars.param().abi(), cchars, psa, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ScriptCPtoX(icp: i32, ftrailing: bool, cglyphs: i32, pwlogclust: &[u16], psva: *const SCRIPT_VISATTR, piadvance: *const i32, psa: *const SCRIPT_ANALYSIS, pix: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptCPtoX(icp : i32, ftrailing : super::Foundation:: BOOL, cchars : i32, cglyphs : i32, pwlogclust : *const u16, psva : *const SCRIPT_VISATTR, piadvance : *const i32, psa : *const SCRIPT_ANALYSIS, pix : *mut i32) -> windows_core::HRESULT); - ScriptCPtoX(core::mem::transmute(icp), ftrailing.into(), pwlogclust.len().try_into().unwrap(), core::mem::transmute(cglyphs), core::mem::transmute(pwlogclust.as_ptr()), core::mem::transmute(psva), core::mem::transmute(piadvance), core::mem::transmute(psa), core::mem::transmute(pix)).ok() + ScriptCPtoX(icp, ftrailing.into(), pwlogclust.len().try_into().unwrap(), cglyphs, core::mem::transmute(pwlogclust.as_ptr()), psva, piadvance, psa, core::mem::transmute(pix)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptCacheGetHeight(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut core::ffi::c_void, tmheight: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptCacheGetHeight(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, tmheight : *mut i32) -> windows_core::HRESULT); - ScriptCacheGetHeight(core::mem::transmute(hdc), core::mem::transmute(psc), core::mem::transmute(tmheight)).ok() + ScriptCacheGetHeight(hdc, core::mem::transmute(psc), core::mem::transmute(tmheight)).ok() } #[inline] pub unsafe fn ScriptFreeCache(psc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -823,31 +812,31 @@ where P2: windows_core::Param, { windows_targets::link!("usp10.dll" "system" fn ScriptGetCMap(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, pwcinchars : windows_core::PCWSTR, cchars : i32, dwflags : u32, pwoutglyphs : *mut u16) -> windows_core::HRESULT); - ScriptGetCMap(core::mem::transmute(hdc), core::mem::transmute(psc), pwcinchars.param().abi(), core::mem::transmute(cchars), core::mem::transmute(dwflags), core::mem::transmute(pwoutglyphs)).ok() + ScriptGetCMap(hdc, core::mem::transmute(psc), pwcinchars.param().abi(), cchars, dwflags, core::mem::transmute(pwoutglyphs)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontAlternateGlyphs(hdc: Option, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, tagscript: u32, taglangsys: u32, tagfeature: u32, wglyphid: u16, palternateglyphs: &mut [u16], pcalternates: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptGetFontAlternateGlyphs(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *const SCRIPT_ANALYSIS, tagscript : u32, taglangsys : u32, tagfeature : u32, wglyphid : u16, cmaxalternates : i32, palternateglyphs : *mut u16, pcalternates : *mut i32) -> windows_core::HRESULT); - ScriptGetFontAlternateGlyphs(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), core::mem::transmute(tagscript), core::mem::transmute(taglangsys), core::mem::transmute(tagfeature), core::mem::transmute(wglyphid), palternateglyphs.len().try_into().unwrap(), core::mem::transmute(palternateglyphs.as_ptr()), core::mem::transmute(pcalternates)).ok() + ScriptGetFontAlternateGlyphs(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), tagscript, taglangsys, tagfeature, wglyphid, palternateglyphs.len().try_into().unwrap(), core::mem::transmute(palternateglyphs.as_ptr()), core::mem::transmute(pcalternates)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontFeatureTags(hdc: Option, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, tagscript: u32, taglangsys: u32, pfeaturetags: &mut [u32], pctags: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptGetFontFeatureTags(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *const SCRIPT_ANALYSIS, tagscript : u32, taglangsys : u32, cmaxtags : i32, pfeaturetags : *mut u32, pctags : *mut i32) -> windows_core::HRESULT); - ScriptGetFontFeatureTags(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), core::mem::transmute(tagscript), core::mem::transmute(taglangsys), pfeaturetags.len().try_into().unwrap(), core::mem::transmute(pfeaturetags.as_ptr()), core::mem::transmute(pctags)).ok() + ScriptGetFontFeatureTags(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), tagscript, taglangsys, pfeaturetags.len().try_into().unwrap(), core::mem::transmute(pfeaturetags.as_ptr()), core::mem::transmute(pctags)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontLanguageTags(hdc: Option, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, tagscript: u32, plangsystags: &mut [u32], pctags: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptGetFontLanguageTags(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *const SCRIPT_ANALYSIS, tagscript : u32, cmaxtags : i32, plangsystags : *mut u32, pctags : *mut i32) -> windows_core::HRESULT); - ScriptGetFontLanguageTags(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), core::mem::transmute(tagscript), plangsystags.len().try_into().unwrap(), core::mem::transmute(plangsystags.as_ptr()), core::mem::transmute(pctags)).ok() + ScriptGetFontLanguageTags(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), tagscript, plangsystags.len().try_into().unwrap(), core::mem::transmute(plangsystags.as_ptr()), core::mem::transmute(pctags)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontProperties(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut core::ffi::c_void, sfp: *mut SCRIPT_FONTPROPERTIES) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptGetFontProperties(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, sfp : *mut SCRIPT_FONTPROPERTIES) -> windows_core::HRESULT); - ScriptGetFontProperties(core::mem::transmute(hdc), core::mem::transmute(psc), core::mem::transmute(sfp)).ok() + ScriptGetFontProperties(hdc, core::mem::transmute(psc), core::mem::transmute(sfp)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -859,12 +848,12 @@ pub unsafe fn ScriptGetFontScriptTags(hdc: Option, ps #[inline] pub unsafe fn ScriptGetGlyphABCWidth(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut core::ffi::c_void, wglyph: u16, pabc: *mut super::Graphics::Gdi::ABC) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptGetGlyphABCWidth(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, wglyph : u16, pabc : *mut super::Graphics::Gdi:: ABC) -> windows_core::HRESULT); - ScriptGetGlyphABCWidth(core::mem::transmute(hdc), core::mem::transmute(psc), core::mem::transmute(wglyph), core::mem::transmute(pabc)).ok() + ScriptGetGlyphABCWidth(hdc, core::mem::transmute(psc), wglyph, core::mem::transmute(pabc)).ok() } #[inline] pub unsafe fn ScriptGetLogicalWidths(psa: *const SCRIPT_ANALYSIS, cchars: i32, cglyphs: i32, piglyphwidth: *const i32, pwlogclust: *const u16, psva: *const SCRIPT_VISATTR, pidx: *const i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptGetLogicalWidths(psa : *const SCRIPT_ANALYSIS, cchars : i32, cglyphs : i32, piglyphwidth : *const i32, pwlogclust : *const u16, psva : *const SCRIPT_VISATTR, pidx : *const i32) -> windows_core::HRESULT); - ScriptGetLogicalWidths(core::mem::transmute(psa), core::mem::transmute(cchars), core::mem::transmute(cglyphs), core::mem::transmute(piglyphwidth), core::mem::transmute(pwlogclust), core::mem::transmute(psva), core::mem::transmute(pidx)).ok() + ScriptGetLogicalWidths(psa, cchars, cglyphs, piglyphwidth, pwlogclust, psva, pidx).ok() } #[inline] pub unsafe fn ScriptGetProperties(ppsp: *mut *mut *mut SCRIPT_PROPERTIES, pinumscripts: *mut i32) -> windows_core::Result<()> { @@ -874,7 +863,7 @@ pub unsafe fn ScriptGetProperties(ppsp: *mut *mut *mut SCRIPT_PROPERTIES, pinums #[inline] pub unsafe fn ScriptIsComplex(pwcinchars: &[u16], dwflags: SCRIPT_IS_COMPLEX_FLAGS) -> windows_core::HRESULT { windows_targets::link!("usp10.dll" "system" fn ScriptIsComplex(pwcinchars : windows_core::PCWSTR, cinchars : i32, dwflags : SCRIPT_IS_COMPLEX_FLAGS) -> windows_core::HRESULT); - ScriptIsComplex(core::mem::transmute(pwcinchars.as_ptr()), pwcinchars.len().try_into().unwrap(), core::mem::transmute(dwflags)) + ScriptIsComplex(core::mem::transmute(pwcinchars.as_ptr()), pwcinchars.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn ScriptItemize(pwcinchars: &[u16], pscontrol: Option<*const SCRIPT_CONTROL>, psstate: Option<*const SCRIPT_STATE>, pitems: &mut [SCRIPT_ITEM], pcitems: *mut i32) -> windows_core::Result<()> { @@ -884,24 +873,24 @@ pub unsafe fn ScriptItemize(pwcinchars: &[u16], pscontrol: Option<*const SCRIPT_ #[inline] pub unsafe fn ScriptItemizeOpenType(pwcinchars: &[u16], cmaxitems: i32, pscontrol: Option<*const SCRIPT_CONTROL>, psstate: Option<*const SCRIPT_STATE>, pitems: *mut SCRIPT_ITEM, pscripttags: *mut u32, pcitems: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptItemizeOpenType(pwcinchars : windows_core::PCWSTR, cinchars : i32, cmaxitems : i32, pscontrol : *const SCRIPT_CONTROL, psstate : *const SCRIPT_STATE, pitems : *mut SCRIPT_ITEM, pscripttags : *mut u32, pcitems : *mut i32) -> windows_core::HRESULT); - ScriptItemizeOpenType(core::mem::transmute(pwcinchars.as_ptr()), pwcinchars.len().try_into().unwrap(), core::mem::transmute(cmaxitems), core::mem::transmute(pscontrol.unwrap_or(core::mem::zeroed())), core::mem::transmute(psstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pitems), core::mem::transmute(pscripttags), core::mem::transmute(pcitems)).ok() + ScriptItemizeOpenType(core::mem::transmute(pwcinchars.as_ptr()), pwcinchars.len().try_into().unwrap(), cmaxitems, core::mem::transmute(pscontrol.unwrap_or(core::mem::zeroed())), core::mem::transmute(psstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pitems), core::mem::transmute(pscripttags), core::mem::transmute(pcitems)).ok() } #[inline] pub unsafe fn ScriptJustify(psva: *const SCRIPT_VISATTR, piadvance: *const i32, cglyphs: i32, idx: i32, iminkashida: i32) -> windows_core::Result { windows_targets::link!("usp10.dll" "system" fn ScriptJustify(psva : *const SCRIPT_VISATTR, piadvance : *const i32, cglyphs : i32, idx : i32, iminkashida : i32, pijustify : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ScriptJustify(core::mem::transmute(psva), core::mem::transmute(piadvance), core::mem::transmute(cglyphs), core::mem::transmute(idx), core::mem::transmute(iminkashida), &mut result__).map(|| core::mem::transmute(result__)) + ScriptJustify(psva, piadvance, cglyphs, idx, iminkashida, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ScriptLayout(cruns: i32, pblevel: *const u8, pivisualtological: Option<*mut i32>, pilogicaltovisual: Option<*mut i32>) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptLayout(cruns : i32, pblevel : *const u8, pivisualtological : *mut i32, pilogicaltovisual : *mut i32) -> windows_core::HRESULT); - ScriptLayout(core::mem::transmute(cruns), core::mem::transmute(pblevel), core::mem::transmute(pivisualtological.unwrap_or(core::mem::zeroed())), core::mem::transmute(pilogicaltovisual.unwrap_or(core::mem::zeroed()))).ok() + ScriptLayout(cruns, pblevel, core::mem::transmute(pivisualtological.unwrap_or(core::mem::zeroed())), core::mem::transmute(pilogicaltovisual.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptPlace(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut core::ffi::c_void, pwglyphs: *const u16, cglyphs: i32, psva: *const SCRIPT_VISATTR, psa: *mut SCRIPT_ANALYSIS, piadvance: *mut i32, pgoffset: Option<*mut GOFFSET>, pabc: *mut super::Graphics::Gdi::ABC) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptPlace(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, pwglyphs : *const u16, cglyphs : i32, psva : *const SCRIPT_VISATTR, psa : *mut SCRIPT_ANALYSIS, piadvance : *mut i32, pgoffset : *mut GOFFSET, pabc : *mut super::Graphics::Gdi:: ABC) -> windows_core::HRESULT); - ScriptPlace(core::mem::transmute(hdc), core::mem::transmute(psc), core::mem::transmute(pwglyphs), core::mem::transmute(cglyphs), core::mem::transmute(psva), core::mem::transmute(psa), core::mem::transmute(piadvance), core::mem::transmute(pgoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(pabc)).ok() + ScriptPlace(hdc, core::mem::transmute(psc), pwglyphs, cglyphs, psva, core::mem::transmute(psa), core::mem::transmute(piadvance), core::mem::transmute(pgoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(pabc)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -914,18 +903,18 @@ where core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa), - core::mem::transmute(tagscript), - core::mem::transmute(taglangsys), + tagscript, + taglangsys, core::mem::transmute(rcrangechars.unwrap_or(core::mem::zeroed())), core::mem::transmute(rprangeproperties.unwrap_or(core::mem::zeroed())), - core::mem::transmute(cranges), + cranges, pwcchars.param().abi(), - core::mem::transmute(pwlogclust), - core::mem::transmute(pcharprops), - core::mem::transmute(cchars), - core::mem::transmute(pwglyphs), - core::mem::transmute(pglyphprops), - core::mem::transmute(cglyphs), + pwlogclust, + pcharprops, + cchars, + pwglyphs, + pglyphprops, + cglyphs, core::mem::transmute(piadvance), core::mem::transmute(pgoffset), core::mem::transmute(pabc.unwrap_or(core::mem::zeroed())), @@ -936,13 +925,13 @@ where #[inline] pub unsafe fn ScriptPositionSingleGlyph(hdc: Option, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, tagscript: u32, taglangsys: u32, tagfeature: u32, lparameter: i32, wglyphid: u16, iadvance: i32, goffset: GOFFSET, pioutadvance: *mut i32, poutgoffset: *mut GOFFSET) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptPositionSingleGlyph(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *const SCRIPT_ANALYSIS, tagscript : u32, taglangsys : u32, tagfeature : u32, lparameter : i32, wglyphid : u16, iadvance : i32, goffset : GOFFSET, pioutadvance : *mut i32, poutgoffset : *mut GOFFSET) -> windows_core::HRESULT); - ScriptPositionSingleGlyph(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), core::mem::transmute(tagscript), core::mem::transmute(taglangsys), core::mem::transmute(tagfeature), core::mem::transmute(lparameter), core::mem::transmute(wglyphid), core::mem::transmute(iadvance), core::mem::transmute(goffset), core::mem::transmute(pioutadvance), core::mem::transmute(poutgoffset)).ok() + ScriptPositionSingleGlyph(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), tagscript, taglangsys, tagfeature, lparameter, wglyphid, iadvance, core::mem::transmute(goffset), core::mem::transmute(pioutadvance), core::mem::transmute(poutgoffset)).ok() } #[inline] pub unsafe fn ScriptRecordDigitSubstitution(locale: u32) -> windows_core::Result { windows_targets::link!("usp10.dll" "system" fn ScriptRecordDigitSubstitution(locale : u32, psds : *mut SCRIPT_DIGITSUBSTITUTE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ScriptRecordDigitSubstitution(core::mem::transmute(locale), &mut result__).map(|| core::mem::transmute(result__)) + ScriptRecordDigitSubstitution(locale, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -951,7 +940,7 @@ where P2: windows_core::Param, { windows_targets::link!("usp10.dll" "system" fn ScriptShape(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, pwcchars : windows_core::PCWSTR, cchars : i32, cmaxglyphs : i32, psa : *mut SCRIPT_ANALYSIS, pwoutglyphs : *mut u16, pwlogclust : *mut u16, psva : *mut SCRIPT_VISATTR, pcglyphs : *mut i32) -> windows_core::HRESULT); - ScriptShape(core::mem::transmute(hdc), core::mem::transmute(psc), pwcchars.param().abi(), core::mem::transmute(cchars), core::mem::transmute(cmaxglyphs), core::mem::transmute(psa), core::mem::transmute(pwoutglyphs), core::mem::transmute(pwlogclust), core::mem::transmute(psva), core::mem::transmute(pcglyphs)).ok() + ScriptShape(hdc, core::mem::transmute(psc), pwcchars.param().abi(), cchars, cmaxglyphs, core::mem::transmute(psa), core::mem::transmute(pwoutglyphs), core::mem::transmute(pwlogclust), core::mem::transmute(psva), core::mem::transmute(pcglyphs)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -964,14 +953,14 @@ where core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa), - core::mem::transmute(tagscript), - core::mem::transmute(taglangsys), + tagscript, + taglangsys, core::mem::transmute(rcrangechars.unwrap_or(core::mem::zeroed())), core::mem::transmute(rprangeproperties.unwrap_or(core::mem::zeroed())), - core::mem::transmute(cranges), + cranges, pwcchars.param().abi(), - core::mem::transmute(cchars), - core::mem::transmute(cmaxglyphs), + cchars, + cmaxglyphs, core::mem::transmute(pwlogclust), core::mem::transmute(pcharprops), core::mem::transmute(pwoutglyphs), @@ -984,28 +973,13 @@ where #[inline] pub unsafe fn ScriptStringAnalyse(hdc: super::Graphics::Gdi::HDC, pstring: *const core::ffi::c_void, cstring: i32, cglyphs: i32, icharset: i32, dwflags: u32, ireqwidth: i32, pscontrol: Option<*const SCRIPT_CONTROL>, psstate: Option<*const SCRIPT_STATE>, pidx: Option<*const i32>, ptabdef: Option<*const SCRIPT_TABDEF>, pbinclass: *const u8, pssa: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptStringAnalyse(hdc : super::Graphics::Gdi:: HDC, pstring : *const core::ffi::c_void, cstring : i32, cglyphs : i32, icharset : i32, dwflags : u32, ireqwidth : i32, pscontrol : *const SCRIPT_CONTROL, psstate : *const SCRIPT_STATE, pidx : *const i32, ptabdef : *const SCRIPT_TABDEF, pbinclass : *const u8, pssa : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ScriptStringAnalyse( - core::mem::transmute(hdc), - core::mem::transmute(pstring), - core::mem::transmute(cstring), - core::mem::transmute(cglyphs), - core::mem::transmute(icharset), - core::mem::transmute(dwflags), - core::mem::transmute(ireqwidth), - core::mem::transmute(pscontrol.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psstate.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pidx.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ptabdef.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pbinclass), - core::mem::transmute(pssa), - ) - .ok() + ScriptStringAnalyse(hdc, pstring, cstring, cglyphs, icharset, dwflags, ireqwidth, core::mem::transmute(pscontrol.unwrap_or(core::mem::zeroed())), core::mem::transmute(psstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pidx.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptabdef.unwrap_or(core::mem::zeroed())), pbinclass, core::mem::transmute(pssa)).ok() } #[inline] pub unsafe fn ScriptStringCPtoX(ssa: *const core::ffi::c_void, icp: i32, ftrailing: bool) -> windows_core::Result { windows_targets::link!("usp10.dll" "system" fn ScriptStringCPtoX(ssa : *const core::ffi::c_void, icp : i32, ftrailing : super::Foundation:: BOOL, px : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ScriptStringCPtoX(core::mem::transmute(ssa), core::mem::transmute(icp), ftrailing.into(), &mut result__).map(|| core::mem::transmute(result__)) + ScriptStringCPtoX(ssa, icp, ftrailing.into(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ScriptStringFree(pssa: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1015,49 +989,49 @@ pub unsafe fn ScriptStringFree(pssa: *mut *mut core::ffi::c_void) -> windows_cor #[inline] pub unsafe fn ScriptStringGetLogicalWidths(ssa: *const core::ffi::c_void, pidx: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptStringGetLogicalWidths(ssa : *const core::ffi::c_void, pidx : *mut i32) -> windows_core::HRESULT); - ScriptStringGetLogicalWidths(core::mem::transmute(ssa), core::mem::transmute(pidx)).ok() + ScriptStringGetLogicalWidths(ssa, core::mem::transmute(pidx)).ok() } #[inline] pub unsafe fn ScriptStringGetOrder(ssa: *const core::ffi::c_void, puorder: *mut u32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptStringGetOrder(ssa : *const core::ffi::c_void, puorder : *mut u32) -> windows_core::HRESULT); - ScriptStringGetOrder(core::mem::transmute(ssa), core::mem::transmute(puorder)).ok() + ScriptStringGetOrder(ssa, core::mem::transmute(puorder)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptStringOut(ssa: *const core::ffi::c_void, ix: i32, iy: i32, uoptions: super::Graphics::Gdi::ETO_OPTIONS, prc: Option<*const super::Foundation::RECT>, iminsel: i32, imaxsel: i32, fdisabled: bool) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptStringOut(ssa : *const core::ffi::c_void, ix : i32, iy : i32, uoptions : super::Graphics::Gdi:: ETO_OPTIONS, prc : *const super::Foundation:: RECT, iminsel : i32, imaxsel : i32, fdisabled : super::Foundation:: BOOL) -> windows_core::HRESULT); - ScriptStringOut(core::mem::transmute(ssa), core::mem::transmute(ix), core::mem::transmute(iy), core::mem::transmute(uoptions), core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), core::mem::transmute(iminsel), core::mem::transmute(imaxsel), fdisabled.into()).ok() + ScriptStringOut(ssa, ix, iy, uoptions, core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), iminsel, imaxsel, fdisabled.into()).ok() } #[inline] pub unsafe fn ScriptStringValidate(ssa: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptStringValidate(ssa : *const core::ffi::c_void) -> windows_core::HRESULT); - ScriptStringValidate(core::mem::transmute(ssa)).ok() + ScriptStringValidate(ssa).ok() } #[inline] pub unsafe fn ScriptStringXtoCP(ssa: *const core::ffi::c_void, ix: i32, pich: *mut i32, pitrailing: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptStringXtoCP(ssa : *const core::ffi::c_void, ix : i32, pich : *mut i32, pitrailing : *mut i32) -> windows_core::HRESULT); - ScriptStringXtoCP(core::mem::transmute(ssa), core::mem::transmute(ix), core::mem::transmute(pich), core::mem::transmute(pitrailing)).ok() + ScriptStringXtoCP(ssa, ix, core::mem::transmute(pich), core::mem::transmute(pitrailing)).ok() } #[inline] pub unsafe fn ScriptString_pLogAttr(ssa: *const core::ffi::c_void) -> *mut SCRIPT_LOGATTR { windows_targets::link!("usp10.dll" "system" fn ScriptString_pLogAttr(ssa : *const core::ffi::c_void) -> *mut SCRIPT_LOGATTR); - ScriptString_pLogAttr(core::mem::transmute(ssa)) + ScriptString_pLogAttr(ssa) } #[inline] pub unsafe fn ScriptString_pSize(ssa: *const core::ffi::c_void) -> *mut super::Foundation::SIZE { windows_targets::link!("usp10.dll" "system" fn ScriptString_pSize(ssa : *const core::ffi::c_void) -> *mut super::Foundation:: SIZE); - ScriptString_pSize(core::mem::transmute(ssa)) + ScriptString_pSize(ssa) } #[inline] pub unsafe fn ScriptString_pcOutChars(ssa: *const core::ffi::c_void) -> *mut i32 { windows_targets::link!("usp10.dll" "system" fn ScriptString_pcOutChars(ssa : *const core::ffi::c_void) -> *mut i32); - ScriptString_pcOutChars(core::mem::transmute(ssa)) + ScriptString_pcOutChars(ssa) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptSubstituteSingleGlyph(hdc: Option, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, tagscript: u32, taglangsys: u32, tagfeature: u32, lparameter: i32, wglyphid: u16, pwoutglyphid: *mut u16) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptSubstituteSingleGlyph(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *const SCRIPT_ANALYSIS, tagscript : u32, taglangsys : u32, tagfeature : u32, lparameter : i32, wglyphid : u16, pwoutglyphid : *mut u16) -> windows_core::HRESULT); - ScriptSubstituteSingleGlyph(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), core::mem::transmute(tagscript), core::mem::transmute(taglangsys), core::mem::transmute(tagfeature), core::mem::transmute(lparameter), core::mem::transmute(wglyphid), core::mem::transmute(pwoutglyphid)).ok() + ScriptSubstituteSingleGlyph(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(psc), core::mem::transmute(psa.unwrap_or(core::mem::zeroed())), tagscript, taglangsys, tagfeature, lparameter, wglyphid, core::mem::transmute(pwoutglyphid)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1066,28 +1040,12 @@ where P7: windows_core::Param, { windows_targets::link!("usp10.dll" "system" fn ScriptTextOut(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, x : i32, y : i32, fuoptions : u32, lprc : *const super::Foundation:: RECT, psa : *const SCRIPT_ANALYSIS, pwcreserved : windows_core::PCWSTR, ireserved : i32, pwglyphs : *const u16, cglyphs : i32, piadvance : *const i32, pijustify : *const i32, pgoffset : *const GOFFSET) -> windows_core::HRESULT); - ScriptTextOut( - core::mem::transmute(hdc), - core::mem::transmute(psc), - core::mem::transmute(x), - core::mem::transmute(y), - core::mem::transmute(fuoptions), - core::mem::transmute(lprc.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psa), - pwcreserved.param().abi(), - core::mem::transmute(ireserved.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pwglyphs), - core::mem::transmute(cglyphs), - core::mem::transmute(piadvance), - core::mem::transmute(pijustify.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgoffset), - ) - .ok() + ScriptTextOut(hdc, core::mem::transmute(psc), x, y, fuoptions, core::mem::transmute(lprc.unwrap_or(core::mem::zeroed())), psa, pwcreserved.param().abi(), core::mem::transmute(ireserved.unwrap_or(core::mem::zeroed())), pwglyphs, cglyphs, piadvance, core::mem::transmute(pijustify.unwrap_or(core::mem::zeroed())), pgoffset).ok() } #[inline] pub unsafe fn ScriptXtoCP(ix: i32, cglyphs: i32, pwlogclust: &[u16], psva: *const SCRIPT_VISATTR, piadvance: *const i32, psa: *const SCRIPT_ANALYSIS, picp: *mut i32, pitrailing: *mut i32) -> windows_core::Result<()> { windows_targets::link!("usp10.dll" "system" fn ScriptXtoCP(ix : i32, cchars : i32, cglyphs : i32, pwlogclust : *const u16, psva : *const SCRIPT_VISATTR, piadvance : *const i32, psa : *const SCRIPT_ANALYSIS, picp : *mut i32, pitrailing : *mut i32) -> windows_core::HRESULT); - ScriptXtoCP(core::mem::transmute(ix), pwlogclust.len().try_into().unwrap(), core::mem::transmute(cglyphs), core::mem::transmute(pwlogclust.as_ptr()), core::mem::transmute(psva), core::mem::transmute(piadvance), core::mem::transmute(psa), core::mem::transmute(picp), core::mem::transmute(pitrailing)).ok() + ScriptXtoCP(ix, pwlogclust.len().try_into().unwrap(), cglyphs, core::mem::transmute(pwlogclust.as_ptr()), psva, piadvance, psa, core::mem::transmute(picp), core::mem::transmute(pitrailing)).ok() } #[inline] pub unsafe fn SetCalendarInfoA(locale: u32, calendar: u32, caltype: u32, lpcaldata: P3) -> windows_core::Result<()> @@ -1095,7 +1053,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCalendarInfoA(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PCSTR) -> super::Foundation:: BOOL); - SetCalendarInfoA(core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype), lpcaldata.param().abi()).ok() + SetCalendarInfoA(locale, calendar, caltype, lpcaldata.param().abi()).ok() } #[inline] pub unsafe fn SetCalendarInfoW(locale: u32, calendar: u32, caltype: u32, lpcaldata: P3) -> windows_core::Result<()> @@ -1103,7 +1061,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCalendarInfoW(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PCWSTR) -> super::Foundation:: BOOL); - SetCalendarInfoW(core::mem::transmute(locale), core::mem::transmute(calendar), core::mem::transmute(caltype), lpcaldata.param().abi()).ok() + SetCalendarInfoW(locale, calendar, caltype, lpcaldata.param().abi()).ok() } #[inline] pub unsafe fn SetLocaleInfoA(locale: u32, lctype: u32, lplcdata: P2) -> windows_core::Result<()> @@ -1111,7 +1069,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoA(locale : u32, lctype : u32, lplcdata : windows_core::PCSTR) -> super::Foundation:: BOOL); - SetLocaleInfoA(core::mem::transmute(locale), core::mem::transmute(lctype), lplcdata.param().abi()).ok() + SetLocaleInfoA(locale, lctype, lplcdata.param().abi()).ok() } #[inline] pub unsafe fn SetLocaleInfoW(locale: u32, lctype: u32, lplcdata: P2) -> windows_core::Result<()> @@ -1119,7 +1077,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoW(locale : u32, lctype : u32, lplcdata : windows_core::PCWSTR) -> super::Foundation:: BOOL); - SetLocaleInfoW(core::mem::transmute(locale), core::mem::transmute(lctype), lplcdata.param().abi()).ok() + SetLocaleInfoW(locale, lctype, lplcdata.param().abi()).ok() } #[inline] pub unsafe fn SetProcessPreferredUILanguages(dwflags: u32, pwszlanguagesbuffer: P1, pulnumlanguages: Option<*mut u32>) -> windows_core::Result<()> @@ -1127,12 +1085,12 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> super::Foundation:: BOOL); - SetProcessPreferredUILanguages(core::mem::transmute(dwflags), pwszlanguagesbuffer.param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(core::mem::zeroed()))).ok() + SetProcessPreferredUILanguages(dwflags, pwszlanguagesbuffer.param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetThreadLocale(locale: u32) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetThreadLocale(locale : u32) -> super::Foundation:: BOOL); - SetThreadLocale(core::mem::transmute(locale)) + SetThreadLocale(locale) } #[inline] pub unsafe fn SetThreadPreferredUILanguages(dwflags: u32, pwszlanguagesbuffer: P1, pulnumlanguages: Option<*mut u32>) -> super::Foundation::BOOL @@ -1140,7 +1098,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> super::Foundation:: BOOL); - SetThreadPreferredUILanguages(core::mem::transmute(dwflags), pwszlanguagesbuffer.param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(core::mem::zeroed()))) + SetThreadPreferredUILanguages(dwflags, pwszlanguagesbuffer.param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetThreadPreferredUILanguages2(flags: u32, languages: P1, numlanguagesset: Option<*mut u32>, snapshot: Option<*mut HSAVEDUILANGUAGES>) -> super::Foundation::BOOL @@ -1148,17 +1106,17 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages2(flags : u32, languages : windows_core::PCWSTR, numlanguagesset : *mut u32, snapshot : *mut HSAVEDUILANGUAGES) -> super::Foundation:: BOOL); - SetThreadPreferredUILanguages2(core::mem::transmute(flags), languages.param().abi(), core::mem::transmute(numlanguagesset.unwrap_or(core::mem::zeroed())), core::mem::transmute(snapshot.unwrap_or(core::mem::zeroed()))) + SetThreadPreferredUILanguages2(flags, languages.param().abi(), core::mem::transmute(numlanguagesset.unwrap_or(core::mem::zeroed())), core::mem::transmute(snapshot.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetThreadUILanguage(langid: u16) -> u16 { windows_targets::link!("kernel32.dll" "system" fn SetThreadUILanguage(langid : u16) -> u16); - SetThreadUILanguage(core::mem::transmute(langid)) + SetThreadUILanguage(langid) } #[inline] pub unsafe fn SetUserGeoID(geoid: i32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetUserGeoID(geoid : i32) -> super::Foundation:: BOOL); - SetUserGeoID(core::mem::transmute(geoid)).ok() + SetUserGeoID(geoid).ok() } #[inline] pub unsafe fn SetUserGeoName(geoname: P0) -> windows_core::Result<()> @@ -1171,27 +1129,27 @@ where #[inline] pub unsafe fn TranslateCharsetInfo(lpsrc: *mut u32, lpcs: *mut CHARSETINFO, dwflags: TRANSLATE_CHARSET_INFO_FLAGS) -> windows_core::Result<()> { windows_targets::link!("gdi32.dll" "system" fn TranslateCharsetInfo(lpsrc : *mut u32, lpcs : *mut CHARSETINFO, dwflags : TRANSLATE_CHARSET_INFO_FLAGS) -> super::Foundation:: BOOL); - TranslateCharsetInfo(core::mem::transmute(lpsrc), core::mem::transmute(lpcs), core::mem::transmute(dwflags)).ok() + TranslateCharsetInfo(core::mem::transmute(lpsrc), core::mem::transmute(lpcs), dwflags).ok() } #[inline] pub unsafe fn UCNV_FROM_U_CALLBACK_ESCAPE(context: *const core::ffi::c_void, fromuargs: *mut UConverterFromUnicodeArgs, codeunits: *const u16, length: i32, codepoint: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_FROM_U_CALLBACK_ESCAPE(context : *const core::ffi::c_void, fromuargs : *mut UConverterFromUnicodeArgs, codeunits : *const u16, length : i32, codepoint : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_FROM_U_CALLBACK_ESCAPE(core::mem::transmute(context), core::mem::transmute(fromuargs), core::mem::transmute(codeunits), core::mem::transmute(length), core::mem::transmute(codepoint), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_FROM_U_CALLBACK_ESCAPE(context, core::mem::transmute(fromuargs), codeunits, length, codepoint, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_FROM_U_CALLBACK_SKIP(context: *const core::ffi::c_void, fromuargs: *mut UConverterFromUnicodeArgs, codeunits: *const u16, length: i32, codepoint: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_FROM_U_CALLBACK_SKIP(context : *const core::ffi::c_void, fromuargs : *mut UConverterFromUnicodeArgs, codeunits : *const u16, length : i32, codepoint : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_FROM_U_CALLBACK_SKIP(core::mem::transmute(context), core::mem::transmute(fromuargs), core::mem::transmute(codeunits), core::mem::transmute(length), core::mem::transmute(codepoint), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_FROM_U_CALLBACK_SKIP(context, core::mem::transmute(fromuargs), codeunits, length, codepoint, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_FROM_U_CALLBACK_STOP(context: *const core::ffi::c_void, fromuargs: *mut UConverterFromUnicodeArgs, codeunits: *const u16, length: i32, codepoint: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_FROM_U_CALLBACK_STOP(context : *const core::ffi::c_void, fromuargs : *mut UConverterFromUnicodeArgs, codeunits : *const u16, length : i32, codepoint : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_FROM_U_CALLBACK_STOP(core::mem::transmute(context), core::mem::transmute(fromuargs), core::mem::transmute(codeunits), core::mem::transmute(length), core::mem::transmute(codepoint), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_FROM_U_CALLBACK_STOP(context, core::mem::transmute(fromuargs), codeunits, length, codepoint, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_FROM_U_CALLBACK_SUBSTITUTE(context: *const core::ffi::c_void, fromuargs: *mut UConverterFromUnicodeArgs, codeunits: *const u16, length: i32, codepoint: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_FROM_U_CALLBACK_SUBSTITUTE(context : *const core::ffi::c_void, fromuargs : *mut UConverterFromUnicodeArgs, codeunits : *const u16, length : i32, codepoint : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_FROM_U_CALLBACK_SUBSTITUTE(core::mem::transmute(context), core::mem::transmute(fromuargs), core::mem::transmute(codeunits), core::mem::transmute(length), core::mem::transmute(codepoint), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_FROM_U_CALLBACK_SUBSTITUTE(context, core::mem::transmute(fromuargs), codeunits, length, codepoint, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_ESCAPE(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P2, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) @@ -1199,7 +1157,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_TO_U_CALLBACK_ESCAPE(context : *const core::ffi::c_void, touargs : *mut UConverterToUnicodeArgs, codeunits : windows_core::PCSTR, length : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_TO_U_CALLBACK_ESCAPE(core::mem::transmute(context), core::mem::transmute(touargs), codeunits.param().abi(), core::mem::transmute(length), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_TO_U_CALLBACK_ESCAPE(context, core::mem::transmute(touargs), codeunits.param().abi(), length, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_SKIP(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P2, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) @@ -1207,7 +1165,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_TO_U_CALLBACK_SKIP(context : *const core::ffi::c_void, touargs : *mut UConverterToUnicodeArgs, codeunits : windows_core::PCSTR, length : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_TO_U_CALLBACK_SKIP(core::mem::transmute(context), core::mem::transmute(touargs), codeunits.param().abi(), core::mem::transmute(length), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_TO_U_CALLBACK_SKIP(context, core::mem::transmute(touargs), codeunits.param().abi(), length, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_STOP(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P2, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) @@ -1215,7 +1173,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_TO_U_CALLBACK_STOP(context : *const core::ffi::c_void, touargs : *mut UConverterToUnicodeArgs, codeunits : windows_core::PCSTR, length : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_TO_U_CALLBACK_STOP(core::mem::transmute(context), core::mem::transmute(touargs), codeunits.param().abi(), core::mem::transmute(length), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_TO_U_CALLBACK_STOP(context, core::mem::transmute(touargs), codeunits.param().abi(), length, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_SUBSTITUTE(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P2, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) @@ -1223,7 +1181,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn UCNV_TO_U_CALLBACK_SUBSTITUTE(context : *const core::ffi::c_void, touargs : *mut UConverterToUnicodeArgs, codeunits : windows_core::PCSTR, length : i32, reason : UConverterCallbackReason, err : *mut UErrorCode)); - UCNV_TO_U_CALLBACK_SUBSTITUTE(core::mem::transmute(context), core::mem::transmute(touargs), codeunits.param().abi(), core::mem::transmute(length), core::mem::transmute(reason), core::mem::transmute(err)) + UCNV_TO_U_CALLBACK_SUBSTITUTE(context, core::mem::transmute(touargs), codeunits.param().abi(), length, reason, core::mem::transmute(err)) } #[inline] pub unsafe fn UpdateCalendarDayOfWeek(lpcaldatetime: *mut CALDATETIME) -> super::Foundation::BOOL { @@ -1237,7 +1195,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn VerifyScripts(dwflags : u32, lplocalescripts : windows_core::PCWSTR, cchlocalescripts : i32, lptestscripts : windows_core::PCWSTR, cchtestscripts : i32) -> super::Foundation:: BOOL); - VerifyScripts(core::mem::transmute(dwflags), lplocalescripts.param().abi(), core::mem::transmute(cchlocalescripts), lptestscripts.param().abi(), core::mem::transmute(cchtestscripts)).ok() + VerifyScripts(dwflags, lplocalescripts.param().abi(), cchlocalescripts, lptestscripts.param().abi(), cchtestscripts).ok() } #[inline] pub unsafe fn WideCharToMultiByte(codepage: u32, dwflags: u32, lpwidecharstr: &[u16], lpmultibytestr: Option<&mut [u8]>, lpdefaultchar: P6, lpuseddefaultchar: Option<*mut super::Foundation::BOOL>) -> i32 @@ -1245,7 +1203,7 @@ where P6: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WideCharToMultiByte(codepage : u32, dwflags : u32, lpwidecharstr : windows_core::PCWSTR, cchwidechar : i32, lpmultibytestr : windows_core::PSTR, cbmultibyte : i32, lpdefaultchar : windows_core::PCSTR, lpuseddefaultchar : *mut super::Foundation:: BOOL) -> i32); - WideCharToMultiByte(core::mem::transmute(codepage), core::mem::transmute(dwflags), core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap(), core::mem::transmute(lpmultibytestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpmultibytestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpdefaultchar.param().abi(), core::mem::transmute(lpuseddefaultchar.unwrap_or(core::mem::zeroed()))) + WideCharToMultiByte(codepage, dwflags, core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap(), core::mem::transmute(lpmultibytestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpmultibytestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpdefaultchar.param().abi(), core::mem::transmute(lpuseddefaultchar.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn lstrcatA(lpstring1: windows_core::PSTR, lpstring2: P1) -> windows_core::PSTR @@ -1353,7 +1311,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_UCharsToChars(us : *const u16, cs : windows_core::PCSTR, length : i32)); - u_UCharsToChars(core::mem::transmute(us), cs.param().abi(), core::mem::transmute(length)) + u_UCharsToChars(us, cs.param().abi(), length) } #[inline] pub unsafe fn u_austrcpy(dst: P0, src: *const u16) -> windows_core::PSTR @@ -1361,7 +1319,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_austrcpy(dst : windows_core::PCSTR, src : *const u16) -> windows_core::PSTR); - u_austrcpy(dst.param().abi(), core::mem::transmute(src)) + u_austrcpy(dst.param().abi(), src) } #[inline] pub unsafe fn u_austrncpy(dst: P0, src: *const u16, n: i32) -> windows_core::PSTR @@ -1369,7 +1327,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_austrncpy(dst : windows_core::PCSTR, src : *const u16, n : i32) -> windows_core::PSTR); - u_austrncpy(dst.param().abi(), core::mem::transmute(src), core::mem::transmute(n)) + u_austrncpy(dst.param().abi(), src, n) } #[inline] pub unsafe fn u_catclose(catd: *mut UResourceBundle) { @@ -1379,7 +1337,7 @@ pub unsafe fn u_catclose(catd: *mut UResourceBundle) { #[inline] pub unsafe fn u_catgets(catd: *mut UResourceBundle, set_num: i32, msg_num: i32, s: *const u16, len: *mut i32, ec: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_catgets(catd : *mut UResourceBundle, set_num : i32, msg_num : i32, s : *const u16, len : *mut i32, ec : *mut UErrorCode) -> *mut u16); - u_catgets(core::mem::transmute(catd), core::mem::transmute(set_num), core::mem::transmute(msg_num), core::mem::transmute(s), core::mem::transmute(len), core::mem::transmute(ec)) + u_catgets(core::mem::transmute(catd), set_num, msg_num, s, core::mem::transmute(len), core::mem::transmute(ec)) } #[inline] pub unsafe fn u_catopen(name: P0, locale: P1, ec: *mut UErrorCode) -> *mut UResourceBundle @@ -1393,17 +1351,17 @@ where #[inline] pub unsafe fn u_charAge(c: i32, versionarray: *mut u8) { windows_targets::link!("icuuc.dll" "cdecl" fn u_charAge(c : i32, versionarray : *mut u8)); - u_charAge(core::mem::transmute(c), core::mem::transmute(versionarray)) + u_charAge(c, core::mem::transmute(versionarray)) } #[inline] pub unsafe fn u_charDigitValue(c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_charDigitValue(c : i32) -> i32); - u_charDigitValue(core::mem::transmute(c)) + u_charDigitValue(c) } #[inline] pub unsafe fn u_charDirection(c: i32) -> UCharDirection { windows_targets::link!("icuuc.dll" "cdecl" fn u_charDirection(c : i32) -> UCharDirection); - u_charDirection(core::mem::transmute(c)) + u_charDirection(c) } #[inline] pub unsafe fn u_charFromName(namechoice: UCharNameChoice, name: P1, perrorcode: *mut UErrorCode) -> i32 @@ -1411,12 +1369,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_charFromName(namechoice : UCharNameChoice, name : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> i32); - u_charFromName(core::mem::transmute(namechoice), name.param().abi(), core::mem::transmute(perrorcode)) + u_charFromName(namechoice, name.param().abi(), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_charMirror(c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_charMirror(c : i32) -> i32); - u_charMirror(core::mem::transmute(c)) + u_charMirror(c) } #[inline] pub unsafe fn u_charName(code: i32, namechoice: UCharNameChoice, buffer: P2, bufferlength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -1424,12 +1382,12 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_charName(code : i32, namechoice : UCharNameChoice, buffer : windows_core::PCSTR, bufferlength : i32, perrorcode : *mut UErrorCode) -> i32); - u_charName(core::mem::transmute(code), core::mem::transmute(namechoice), buffer.param().abi(), core::mem::transmute(bufferlength), core::mem::transmute(perrorcode)) + u_charName(code, namechoice, buffer.param().abi(), bufferlength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_charType(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_charType(c : i32) -> i8); - u_charType(core::mem::transmute(c)) + u_charType(c) } #[inline] pub unsafe fn u_charsToUChars(cs: P0, us: *mut u16, length: i32) @@ -1437,7 +1395,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_charsToUChars(cs : windows_core::PCSTR, us : *mut u16, length : i32)); - u_charsToUChars(cs.param().abi(), core::mem::transmute(us), core::mem::transmute(length)) + u_charsToUChars(cs.param().abi(), core::mem::transmute(us), length) } #[inline] pub unsafe fn u_cleanup() { @@ -1447,37 +1405,37 @@ pub unsafe fn u_cleanup() { #[inline] pub unsafe fn u_countChar32(s: *const u16, length: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_countChar32(s : *const u16, length : i32) -> i32); - u_countChar32(core::mem::transmute(s), core::mem::transmute(length)) + u_countChar32(s, length) } #[inline] pub unsafe fn u_digit(ch: i32, radix: i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_digit(ch : i32, radix : i8) -> i32); - u_digit(core::mem::transmute(ch), core::mem::transmute(radix)) + u_digit(ch, radix) } #[inline] pub unsafe fn u_enumCharNames(start: i32, limit: i32, r#fn: *mut UEnumCharNamesFn, context: *mut core::ffi::c_void, namechoice: UCharNameChoice, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn u_enumCharNames(start : i32, limit : i32, r#fn : *mut UEnumCharNamesFn, context : *mut core::ffi::c_void, namechoice : UCharNameChoice, perrorcode : *mut UErrorCode)); - u_enumCharNames(core::mem::transmute(start), core::mem::transmute(limit), core::mem::transmute(r#fn), core::mem::transmute(context), core::mem::transmute(namechoice), core::mem::transmute(perrorcode)) + u_enumCharNames(start, limit, core::mem::transmute(r#fn), core::mem::transmute(context), namechoice, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_enumCharTypes(enumrange: *mut UCharEnumTypeRange, context: *const core::ffi::c_void) { windows_targets::link!("icuuc.dll" "cdecl" fn u_enumCharTypes(enumrange : *mut UCharEnumTypeRange, context : *const core::ffi::c_void)); - u_enumCharTypes(core::mem::transmute(enumrange), core::mem::transmute(context)) + u_enumCharTypes(core::mem::transmute(enumrange), context) } #[inline] pub unsafe fn u_errorName(code: UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn u_errorName(code : UErrorCode) -> windows_core::PCSTR); - u_errorName(core::mem::transmute(code)) + u_errorName(code) } #[inline] pub unsafe fn u_foldCase(c: i32, options: u32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_foldCase(c : i32, options : u32) -> i32); - u_foldCase(core::mem::transmute(c), core::mem::transmute(options)) + u_foldCase(c, options) } #[inline] pub unsafe fn u_forDigit(digit: i32, radix: i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_forDigit(digit : i32, radix : i8) -> i32); - u_forDigit(core::mem::transmute(digit), core::mem::transmute(radix)) + u_forDigit(digit, radix) } #[inline] pub unsafe fn u_formatMessage(locale: P0, pattern: *const u16, patternlength: i32, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 @@ -1485,7 +1443,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_formatMessage(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - u_formatMessage(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + u_formatMessage(locale.param().abi(), pattern, patternlength, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn u_formatMessageWithError(locale: P0, pattern: *const u16, patternlength: i32, result: *mut u16, resultlength: i32, parseerror: *mut UParseError, status: *mut UErrorCode) -> i32 @@ -1493,22 +1451,22 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_formatMessageWithError(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, result : *mut u16, resultlength : i32, parseerror : *mut UParseError, status : *mut UErrorCode) -> i32); - u_formatMessageWithError(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(parseerror), core::mem::transmute(status)) + u_formatMessageWithError(locale.param().abi(), pattern, patternlength, core::mem::transmute(result), resultlength, core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn u_getBidiPairedBracket(c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getBidiPairedBracket(c : i32) -> i32); - u_getBidiPairedBracket(core::mem::transmute(c)) + u_getBidiPairedBracket(c) } #[inline] pub unsafe fn u_getBinaryPropertySet(property: UProperty, perrorcode: *mut UErrorCode) -> *mut USet { windows_targets::link!("icu.dll" "cdecl" fn u_getBinaryPropertySet(property : UProperty, perrorcode : *mut UErrorCode) -> *mut USet); - u_getBinaryPropertySet(core::mem::transmute(property), core::mem::transmute(perrorcode)) + u_getBinaryPropertySet(property, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_getCombiningClass(c: i32) -> u8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getCombiningClass(c : i32) -> u8); - u_getCombiningClass(core::mem::transmute(c)) + u_getCombiningClass(c) } #[inline] pub unsafe fn u_getDataVersion(dataversionfillin: *mut u8, status: *mut UErrorCode) { @@ -1518,32 +1476,32 @@ pub unsafe fn u_getDataVersion(dataversionfillin: *mut u8, status: *mut UErrorCo #[inline] pub unsafe fn u_getFC_NFKC_Closure(c: i32, dest: *mut u16, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getFC_NFKC_Closure(c : i32, dest : *mut u16, destcapacity : i32, perrorcode : *mut UErrorCode) -> i32); - u_getFC_NFKC_Closure(core::mem::transmute(c), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(perrorcode)) + u_getFC_NFKC_Closure(c, core::mem::transmute(dest), destcapacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_getIntPropertyMap(property: UProperty, perrorcode: *mut UErrorCode) -> *mut UCPMap { windows_targets::link!("icu.dll" "cdecl" fn u_getIntPropertyMap(property : UProperty, perrorcode : *mut UErrorCode) -> *mut UCPMap); - u_getIntPropertyMap(core::mem::transmute(property), core::mem::transmute(perrorcode)) + u_getIntPropertyMap(property, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_getIntPropertyMaxValue(which: UProperty) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getIntPropertyMaxValue(which : UProperty) -> i32); - u_getIntPropertyMaxValue(core::mem::transmute(which)) + u_getIntPropertyMaxValue(which) } #[inline] pub unsafe fn u_getIntPropertyMinValue(which: UProperty) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getIntPropertyMinValue(which : UProperty) -> i32); - u_getIntPropertyMinValue(core::mem::transmute(which)) + u_getIntPropertyMinValue(which) } #[inline] pub unsafe fn u_getIntPropertyValue(c: i32, which: UProperty) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getIntPropertyValue(c : i32, which : UProperty) -> i32); - u_getIntPropertyValue(core::mem::transmute(c), core::mem::transmute(which)) + u_getIntPropertyValue(c, which) } #[inline] pub unsafe fn u_getNumericValue(c: i32) -> f64 { windows_targets::link!("icuuc.dll" "cdecl" fn u_getNumericValue(c : i32) -> f64); - u_getNumericValue(core::mem::transmute(c)) + u_getNumericValue(c) } #[inline] pub unsafe fn u_getPropertyEnum(alias: P0) -> UProperty @@ -1556,7 +1514,7 @@ where #[inline] pub unsafe fn u_getPropertyName(property: UProperty, namechoice: UPropertyNameChoice) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn u_getPropertyName(property : UProperty, namechoice : UPropertyNameChoice) -> windows_core::PCSTR); - u_getPropertyName(core::mem::transmute(property), core::mem::transmute(namechoice)) + u_getPropertyName(property, namechoice) } #[inline] pub unsafe fn u_getPropertyValueEnum(property: UProperty, alias: P1) -> i32 @@ -1564,12 +1522,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_getPropertyValueEnum(property : UProperty, alias : windows_core::PCSTR) -> i32); - u_getPropertyValueEnum(core::mem::transmute(property), alias.param().abi()) + u_getPropertyValueEnum(property, alias.param().abi()) } #[inline] pub unsafe fn u_getPropertyValueName(property: UProperty, value: i32, namechoice: UPropertyNameChoice) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn u_getPropertyValueName(property : UProperty, value : i32, namechoice : UPropertyNameChoice) -> windows_core::PCSTR); - u_getPropertyValueName(core::mem::transmute(property), core::mem::transmute(value), core::mem::transmute(namechoice)) + u_getPropertyValueName(property, value, namechoice) } #[inline] pub unsafe fn u_getUnicodeVersion(versionarray: *mut u8) { @@ -1584,7 +1542,7 @@ pub unsafe fn u_getVersion(versionarray: *mut u8) { #[inline] pub unsafe fn u_hasBinaryProperty(c: i32, which: UProperty) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_hasBinaryProperty(c : i32, which : UProperty) -> i8); - u_hasBinaryProperty(core::mem::transmute(c), core::mem::transmute(which)) + u_hasBinaryProperty(c, which) } #[inline] pub unsafe fn u_init(status: *mut UErrorCode) { @@ -1594,192 +1552,192 @@ pub unsafe fn u_init(status: *mut UErrorCode) { #[inline] pub unsafe fn u_isIDIgnorable(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isIDIgnorable(c : i32) -> i8); - u_isIDIgnorable(core::mem::transmute(c)) + u_isIDIgnorable(c) } #[inline] pub unsafe fn u_isIDPart(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isIDPart(c : i32) -> i8); - u_isIDPart(core::mem::transmute(c)) + u_isIDPart(c) } #[inline] pub unsafe fn u_isIDStart(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isIDStart(c : i32) -> i8); - u_isIDStart(core::mem::transmute(c)) + u_isIDStart(c) } #[inline] pub unsafe fn u_isISOControl(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isISOControl(c : i32) -> i8); - u_isISOControl(core::mem::transmute(c)) + u_isISOControl(c) } #[inline] pub unsafe fn u_isJavaIDPart(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isJavaIDPart(c : i32) -> i8); - u_isJavaIDPart(core::mem::transmute(c)) + u_isJavaIDPart(c) } #[inline] pub unsafe fn u_isJavaIDStart(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isJavaIDStart(c : i32) -> i8); - u_isJavaIDStart(core::mem::transmute(c)) + u_isJavaIDStart(c) } #[inline] pub unsafe fn u_isJavaSpaceChar(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isJavaSpaceChar(c : i32) -> i8); - u_isJavaSpaceChar(core::mem::transmute(c)) + u_isJavaSpaceChar(c) } #[inline] pub unsafe fn u_isMirrored(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isMirrored(c : i32) -> i8); - u_isMirrored(core::mem::transmute(c)) + u_isMirrored(c) } #[inline] pub unsafe fn u_isUAlphabetic(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isUAlphabetic(c : i32) -> i8); - u_isUAlphabetic(core::mem::transmute(c)) + u_isUAlphabetic(c) } #[inline] pub unsafe fn u_isULowercase(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isULowercase(c : i32) -> i8); - u_isULowercase(core::mem::transmute(c)) + u_isULowercase(c) } #[inline] pub unsafe fn u_isUUppercase(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isUUppercase(c : i32) -> i8); - u_isUUppercase(core::mem::transmute(c)) + u_isUUppercase(c) } #[inline] pub unsafe fn u_isUWhiteSpace(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isUWhiteSpace(c : i32) -> i8); - u_isUWhiteSpace(core::mem::transmute(c)) + u_isUWhiteSpace(c) } #[inline] pub unsafe fn u_isWhitespace(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isWhitespace(c : i32) -> i8); - u_isWhitespace(core::mem::transmute(c)) + u_isWhitespace(c) } #[inline] pub unsafe fn u_isalnum(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isalnum(c : i32) -> i8); - u_isalnum(core::mem::transmute(c)) + u_isalnum(c) } #[inline] pub unsafe fn u_isalpha(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isalpha(c : i32) -> i8); - u_isalpha(core::mem::transmute(c)) + u_isalpha(c) } #[inline] pub unsafe fn u_isbase(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isbase(c : i32) -> i8); - u_isbase(core::mem::transmute(c)) + u_isbase(c) } #[inline] pub unsafe fn u_isblank(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isblank(c : i32) -> i8); - u_isblank(core::mem::transmute(c)) + u_isblank(c) } #[inline] pub unsafe fn u_iscntrl(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_iscntrl(c : i32) -> i8); - u_iscntrl(core::mem::transmute(c)) + u_iscntrl(c) } #[inline] pub unsafe fn u_isdefined(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isdefined(c : i32) -> i8); - u_isdefined(core::mem::transmute(c)) + u_isdefined(c) } #[inline] pub unsafe fn u_isdigit(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isdigit(c : i32) -> i8); - u_isdigit(core::mem::transmute(c)) + u_isdigit(c) } #[inline] pub unsafe fn u_isgraph(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isgraph(c : i32) -> i8); - u_isgraph(core::mem::transmute(c)) + u_isgraph(c) } #[inline] pub unsafe fn u_islower(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_islower(c : i32) -> i8); - u_islower(core::mem::transmute(c)) + u_islower(c) } #[inline] pub unsafe fn u_isprint(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isprint(c : i32) -> i8); - u_isprint(core::mem::transmute(c)) + u_isprint(c) } #[inline] pub unsafe fn u_ispunct(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_ispunct(c : i32) -> i8); - u_ispunct(core::mem::transmute(c)) + u_ispunct(c) } #[inline] pub unsafe fn u_isspace(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isspace(c : i32) -> i8); - u_isspace(core::mem::transmute(c)) + u_isspace(c) } #[inline] pub unsafe fn u_istitle(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_istitle(c : i32) -> i8); - u_istitle(core::mem::transmute(c)) + u_istitle(c) } #[inline] pub unsafe fn u_isupper(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isupper(c : i32) -> i8); - u_isupper(core::mem::transmute(c)) + u_isupper(c) } #[inline] pub unsafe fn u_isxdigit(c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_isxdigit(c : i32) -> i8); - u_isxdigit(core::mem::transmute(c)) + u_isxdigit(c) } #[inline] pub unsafe fn u_memcasecmp(s1: *const u16, s2: *const u16, length: i32, options: u32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memcasecmp(s1 : *const u16, s2 : *const u16, length : i32, options : u32) -> i32); - u_memcasecmp(core::mem::transmute(s1), core::mem::transmute(s2), core::mem::transmute(length), core::mem::transmute(options)) + u_memcasecmp(s1, s2, length, options) } #[inline] pub unsafe fn u_memchr(s: *const u16, c: u16, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memchr(s : *const u16, c : u16, count : i32) -> *mut u16); - u_memchr(core::mem::transmute(s), core::mem::transmute(c), core::mem::transmute(count)) + u_memchr(s, c, count) } #[inline] pub unsafe fn u_memchr32(s: *const u16, c: i32, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memchr32(s : *const u16, c : i32, count : i32) -> *mut u16); - u_memchr32(core::mem::transmute(s), core::mem::transmute(c), core::mem::transmute(count)) + u_memchr32(s, c, count) } #[inline] pub unsafe fn u_memcmp(buf1: *const u16, buf2: *const u16, count: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memcmp(buf1 : *const u16, buf2 : *const u16, count : i32) -> i32); - u_memcmp(core::mem::transmute(buf1), core::mem::transmute(buf2), core::mem::transmute(count)) + u_memcmp(buf1, buf2, count) } #[inline] pub unsafe fn u_memcmpCodePointOrder(s1: *const u16, s2: *const u16, count: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memcmpCodePointOrder(s1 : *const u16, s2 : *const u16, count : i32) -> i32); - u_memcmpCodePointOrder(core::mem::transmute(s1), core::mem::transmute(s2), core::mem::transmute(count)) + u_memcmpCodePointOrder(s1, s2, count) } #[inline] pub unsafe fn u_memcpy(dest: *mut u16, src: *const u16, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memcpy(dest : *mut u16, src : *const u16, count : i32) -> *mut u16); - u_memcpy(core::mem::transmute(dest), core::mem::transmute(src), core::mem::transmute(count)) + u_memcpy(core::mem::transmute(dest), src, count) } #[inline] pub unsafe fn u_memmove(dest: *mut u16, src: *const u16, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memmove(dest : *mut u16, src : *const u16, count : i32) -> *mut u16); - u_memmove(core::mem::transmute(dest), core::mem::transmute(src), core::mem::transmute(count)) + u_memmove(core::mem::transmute(dest), src, count) } #[inline] pub unsafe fn u_memrchr(s: *const u16, c: u16, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memrchr(s : *const u16, c : u16, count : i32) -> *mut u16); - u_memrchr(core::mem::transmute(s), core::mem::transmute(c), core::mem::transmute(count)) + u_memrchr(s, c, count) } #[inline] pub unsafe fn u_memrchr32(s: *const u16, c: i32, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memrchr32(s : *const u16, c : i32, count : i32) -> *mut u16); - u_memrchr32(core::mem::transmute(s), core::mem::transmute(c), core::mem::transmute(count)) + u_memrchr32(s, c, count) } #[inline] pub unsafe fn u_memset(dest: *mut u16, c: u16, count: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_memset(dest : *mut u16, c : u16, count : i32) -> *mut u16); - u_memset(core::mem::transmute(dest), core::mem::transmute(c), core::mem::transmute(count)) + u_memset(core::mem::transmute(dest), c, count) } #[inline] pub unsafe fn u_parseMessage(locale: P0, pattern: *const u16, patternlength: i32, source: *const u16, sourcelength: i32, status: *mut UErrorCode) @@ -1787,7 +1745,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_parseMessage(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, source : *const u16, sourcelength : i32, status : *mut UErrorCode)); - u_parseMessage(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(status)) + u_parseMessage(locale.param().abi(), pattern, patternlength, source, sourcelength, core::mem::transmute(status)) } #[inline] pub unsafe fn u_parseMessageWithError(locale: P0, pattern: *const u16, patternlength: i32, source: *const u16, sourcelength: i32, parseerror: *mut UParseError, status: *mut UErrorCode) @@ -1795,47 +1753,47 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_parseMessageWithError(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, source : *const u16, sourcelength : i32, parseerror : *mut UParseError, status : *mut UErrorCode)); - u_parseMessageWithError(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(parseerror), core::mem::transmute(status)) + u_parseMessageWithError(locale.param().abi(), pattern, patternlength, source, sourcelength, core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn u_setMemoryFunctions(context: *const core::ffi::c_void, a: *mut UMemAllocFn, r: *mut UMemReallocFn, f: *mut UMemFreeFn, status: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn u_setMemoryFunctions(context : *const core::ffi::c_void, a : *mut UMemAllocFn, r : *mut UMemReallocFn, f : *mut UMemFreeFn, status : *mut UErrorCode)); - u_setMemoryFunctions(core::mem::transmute(context), core::mem::transmute(a), core::mem::transmute(r), core::mem::transmute(f), core::mem::transmute(status)) + u_setMemoryFunctions(context, core::mem::transmute(a), core::mem::transmute(r), core::mem::transmute(f), core::mem::transmute(status)) } #[inline] pub unsafe fn u_shapeArabic(source: *const u16, sourcelength: i32, dest: *mut u16, destsize: i32, options: u32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_shapeArabic(source : *const u16, sourcelength : i32, dest : *mut u16, destsize : i32, options : u32, perrorcode : *mut UErrorCode) -> i32); - u_shapeArabic(core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(dest), core::mem::transmute(destsize), core::mem::transmute(options), core::mem::transmute(perrorcode)) + u_shapeArabic(source, sourcelength, core::mem::transmute(dest), destsize, options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strCaseCompare(s1: *const u16, length1: i32, s2: *const u16, length2: i32, options: u32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strCaseCompare(s1 : *const u16, length1 : i32, s2 : *const u16, length2 : i32, options : u32, perrorcode : *mut UErrorCode) -> i32); - u_strCaseCompare(core::mem::transmute(s1), core::mem::transmute(length1), core::mem::transmute(s2), core::mem::transmute(length2), core::mem::transmute(options), core::mem::transmute(perrorcode)) + u_strCaseCompare(s1, length1, s2, length2, options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strCompare(s1: *const u16, length1: i32, s2: *const u16, length2: i32, codepointorder: i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strCompare(s1 : *const u16, length1 : i32, s2 : *const u16, length2 : i32, codepointorder : i8) -> i32); - u_strCompare(core::mem::transmute(s1), core::mem::transmute(length1), core::mem::transmute(s2), core::mem::transmute(length2), core::mem::transmute(codepointorder)) + u_strCompare(s1, length1, s2, length2, codepointorder) } #[inline] pub unsafe fn u_strCompareIter(iter1: *mut UCharIterator, iter2: *mut UCharIterator, codepointorder: i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strCompareIter(iter1 : *mut UCharIterator, iter2 : *mut UCharIterator, codepointorder : i8) -> i32); - u_strCompareIter(core::mem::transmute(iter1), core::mem::transmute(iter2), core::mem::transmute(codepointorder)) + u_strCompareIter(core::mem::transmute(iter1), core::mem::transmute(iter2), codepointorder) } #[inline] pub unsafe fn u_strFindFirst(s: *const u16, length: i32, substring: *const u16, sublength: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFindFirst(s : *const u16, length : i32, substring : *const u16, sublength : i32) -> *mut u16); - u_strFindFirst(core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(substring), core::mem::transmute(sublength)) + u_strFindFirst(s, length, substring, sublength) } #[inline] pub unsafe fn u_strFindLast(s: *const u16, length: i32, substring: *const u16, sublength: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFindLast(s : *const u16, length : i32, substring : *const u16, sublength : i32) -> *mut u16); - u_strFindLast(core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(substring), core::mem::transmute(sublength)) + u_strFindLast(s, length, substring, sublength) } #[inline] pub unsafe fn u_strFoldCase(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, options: u32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFoldCase(dest : *mut u16, destcapacity : i32, src : *const u16, srclength : i32, options : u32, perrorcode : *mut UErrorCode) -> i32); - u_strFoldCase(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(options), core::mem::transmute(perrorcode)) + u_strFoldCase(core::mem::transmute(dest), destcapacity, src, srclength, options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromJavaModifiedUTF8WithSub(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P3, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> *mut u16 @@ -1843,17 +1801,17 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromJavaModifiedUTF8WithSub(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : windows_core::PCSTR, srclength : i32, subchar : i32, pnumsubstitutions : *mut i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromJavaModifiedUTF8WithSub(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(subchar), core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) + u_strFromJavaModifiedUTF8WithSub(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src.param().abi(), srclength, subchar, core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromUTF32(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: *const i32, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromUTF32(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : *const i32, srclength : i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromUTF32(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strFromUTF32(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromUTF32WithSub(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: *const i32, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromUTF32WithSub(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : *const i32, srclength : i32, subchar : i32, pnumsubstitutions : *mut i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromUTF32WithSub(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(subchar), core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) + u_strFromUTF32WithSub(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src, srclength, subchar, core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromUTF8(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 @@ -1861,7 +1819,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromUTF8(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromUTF8(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strFromUTF8(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromUTF8Lenient(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 @@ -1869,7 +1827,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromUTF8Lenient(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromUTF8Lenient(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strFromUTF8Lenient(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromUTF8WithSub(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P3, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> *mut u16 @@ -1877,7 +1835,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromUTF8WithSub(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : windows_core::PCSTR, srclength : i32, subchar : i32, pnumsubstitutions : *mut i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromUTF8WithSub(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(subchar), core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) + u_strFromUTF8WithSub(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src.param().abi(), srclength, subchar, core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strFromWCS(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 @@ -1885,12 +1843,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strFromWCS(dest : *mut u16, destcapacity : i32, pdestlength : *mut i32, src : windows_core::PCWSTR, srclength : i32, perrorcode : *mut UErrorCode) -> *mut u16); - u_strFromWCS(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strFromWCS(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strHasMoreChar32Than(s: *const u16, length: i32, number: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strHasMoreChar32Than(s : *const u16, length : i32, number : i32) -> i8); - u_strHasMoreChar32Than(core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(number)) + u_strHasMoreChar32Than(s, length, number) } #[inline] pub unsafe fn u_strToJavaModifiedUTF8(dest: P0, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> windows_core::PSTR @@ -1898,7 +1856,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToJavaModifiedUTF8(dest : windows_core::PCSTR, destcapacity : i32, pdestlength : *mut i32, src : *const u16, srclength : i32, perrorcode : *mut UErrorCode) -> windows_core::PSTR); - u_strToJavaModifiedUTF8(dest.param().abi(), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strToJavaModifiedUTF8(dest.param().abi(), destcapacity, core::mem::transmute(pdestlength), src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToLower(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, locale: P4, perrorcode: *mut UErrorCode) -> i32 @@ -1906,7 +1864,7 @@ where P4: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToLower(dest : *mut u16, destcapacity : i32, src : *const u16, srclength : i32, locale : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> i32); - u_strToLower(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(src), core::mem::transmute(srclength), locale.param().abi(), core::mem::transmute(perrorcode)) + u_strToLower(core::mem::transmute(dest), destcapacity, src, srclength, locale.param().abi(), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToTitle(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, titleiter: *mut UBreakIterator, locale: P5, perrorcode: *mut UErrorCode) -> i32 @@ -1914,17 +1872,17 @@ where P5: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToTitle(dest : *mut u16, destcapacity : i32, src : *const u16, srclength : i32, titleiter : *mut UBreakIterator, locale : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> i32); - u_strToTitle(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(titleiter), locale.param().abi(), core::mem::transmute(perrorcode)) + u_strToTitle(core::mem::transmute(dest), destcapacity, src, srclength, core::mem::transmute(titleiter), locale.param().abi(), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToUTF32(dest: *mut i32, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> *mut i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToUTF32(dest : *mut i32, destcapacity : i32, pdestlength : *mut i32, src : *const u16, srclength : i32, perrorcode : *mut UErrorCode) -> *mut i32); - u_strToUTF32(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strToUTF32(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToUTF32WithSub(dest: *mut i32, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> *mut i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToUTF32WithSub(dest : *mut i32, destcapacity : i32, pdestlength : *mut i32, src : *const u16, srclength : i32, subchar : i32, pnumsubstitutions : *mut i32, perrorcode : *mut UErrorCode) -> *mut i32); - u_strToUTF32WithSub(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(subchar), core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) + u_strToUTF32WithSub(core::mem::transmute(dest), destcapacity, core::mem::transmute(pdestlength), src, srclength, subchar, core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToUTF8(dest: P0, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> windows_core::PSTR @@ -1932,7 +1890,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToUTF8(dest : windows_core::PCSTR, destcapacity : i32, pdestlength : *mut i32, src : *const u16, srclength : i32, perrorcode : *mut UErrorCode) -> windows_core::PSTR); - u_strToUTF8(dest.param().abi(), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strToUTF8(dest.param().abi(), destcapacity, core::mem::transmute(pdestlength), src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToUTF8WithSub(dest: P0, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> windows_core::PSTR @@ -1940,7 +1898,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToUTF8WithSub(dest : windows_core::PCSTR, destcapacity : i32, pdestlength : *mut i32, src : *const u16, srclength : i32, subchar : i32, pnumsubstitutions : *mut i32, perrorcode : *mut UErrorCode) -> windows_core::PSTR); - u_strToUTF8WithSub(dest.param().abi(), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(subchar), core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) + u_strToUTF8WithSub(dest.param().abi(), destcapacity, core::mem::transmute(pdestlength), src, srclength, subchar, core::mem::transmute(pnumsubstitutions), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToUpper(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, locale: P4, perrorcode: *mut UErrorCode) -> i32 @@ -1948,7 +1906,7 @@ where P4: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToUpper(dest : *mut u16, destcapacity : i32, src : *const u16, srclength : i32, locale : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> i32); - u_strToUpper(core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(src), core::mem::transmute(srclength), locale.param().abi(), core::mem::transmute(perrorcode)) + u_strToUpper(core::mem::transmute(dest), destcapacity, src, srclength, locale.param().abi(), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strToWCS(dest: P0, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> windows_core::PWSTR @@ -1956,127 +1914,127 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_strToWCS(dest : windows_core::PCWSTR, destcapacity : i32, pdestlength : *mut i32, src : *const u16, srclength : i32, perrorcode : *mut UErrorCode) -> windows_core::PWSTR); - u_strToWCS(dest.param().abi(), core::mem::transmute(destcapacity), core::mem::transmute(pdestlength), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + u_strToWCS(dest.param().abi(), destcapacity, core::mem::transmute(pdestlength), src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn u_strcasecmp(s1: *const u16, s2: *const u16, options: u32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strcasecmp(s1 : *const u16, s2 : *const u16, options : u32) -> i32); - u_strcasecmp(core::mem::transmute(s1), core::mem::transmute(s2), core::mem::transmute(options)) + u_strcasecmp(s1, s2, options) } #[inline] pub unsafe fn u_strcat(dst: *mut u16, src: *const u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strcat(dst : *mut u16, src : *const u16) -> *mut u16); - u_strcat(core::mem::transmute(dst), core::mem::transmute(src)) + u_strcat(core::mem::transmute(dst), src) } #[inline] pub unsafe fn u_strchr(s: *const u16, c: u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strchr(s : *const u16, c : u16) -> *mut u16); - u_strchr(core::mem::transmute(s), core::mem::transmute(c)) + u_strchr(s, c) } #[inline] pub unsafe fn u_strchr32(s: *const u16, c: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strchr32(s : *const u16, c : i32) -> *mut u16); - u_strchr32(core::mem::transmute(s), core::mem::transmute(c)) + u_strchr32(s, c) } #[inline] pub unsafe fn u_strcmp(s1: *const u16, s2: *const u16) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strcmp(s1 : *const u16, s2 : *const u16) -> i32); - u_strcmp(core::mem::transmute(s1), core::mem::transmute(s2)) + u_strcmp(s1, s2) } #[inline] pub unsafe fn u_strcmpCodePointOrder(s1: *const u16, s2: *const u16) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strcmpCodePointOrder(s1 : *const u16, s2 : *const u16) -> i32); - u_strcmpCodePointOrder(core::mem::transmute(s1), core::mem::transmute(s2)) + u_strcmpCodePointOrder(s1, s2) } #[inline] pub unsafe fn u_strcpy(dst: *mut u16, src: *const u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strcpy(dst : *mut u16, src : *const u16) -> *mut u16); - u_strcpy(core::mem::transmute(dst), core::mem::transmute(src)) + u_strcpy(core::mem::transmute(dst), src) } #[inline] pub unsafe fn u_strcspn(string: *const u16, matchset: *const u16) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strcspn(string : *const u16, matchset : *const u16) -> i32); - u_strcspn(core::mem::transmute(string), core::mem::transmute(matchset)) + u_strcspn(string, matchset) } #[inline] pub unsafe fn u_strlen(s: *const u16) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strlen(s : *const u16) -> i32); - u_strlen(core::mem::transmute(s)) + u_strlen(s) } #[inline] pub unsafe fn u_strncasecmp(s1: *const u16, s2: *const u16, n: i32, options: u32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strncasecmp(s1 : *const u16, s2 : *const u16, n : i32, options : u32) -> i32); - u_strncasecmp(core::mem::transmute(s1), core::mem::transmute(s2), core::mem::transmute(n), core::mem::transmute(options)) + u_strncasecmp(s1, s2, n, options) } #[inline] pub unsafe fn u_strncat(dst: *mut u16, src: *const u16, n: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strncat(dst : *mut u16, src : *const u16, n : i32) -> *mut u16); - u_strncat(core::mem::transmute(dst), core::mem::transmute(src), core::mem::transmute(n)) + u_strncat(core::mem::transmute(dst), src, n) } #[inline] pub unsafe fn u_strncmp(ucs1: *const u16, ucs2: *const u16, n: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strncmp(ucs1 : *const u16, ucs2 : *const u16, n : i32) -> i32); - u_strncmp(core::mem::transmute(ucs1), core::mem::transmute(ucs2), core::mem::transmute(n)) + u_strncmp(ucs1, ucs2, n) } #[inline] pub unsafe fn u_strncmpCodePointOrder(s1: *const u16, s2: *const u16, n: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strncmpCodePointOrder(s1 : *const u16, s2 : *const u16, n : i32) -> i32); - u_strncmpCodePointOrder(core::mem::transmute(s1), core::mem::transmute(s2), core::mem::transmute(n)) + u_strncmpCodePointOrder(s1, s2, n) } #[inline] pub unsafe fn u_strncpy(dst: *mut u16, src: *const u16, n: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strncpy(dst : *mut u16, src : *const u16, n : i32) -> *mut u16); - u_strncpy(core::mem::transmute(dst), core::mem::transmute(src), core::mem::transmute(n)) + u_strncpy(core::mem::transmute(dst), src, n) } #[inline] pub unsafe fn u_strpbrk(string: *const u16, matchset: *const u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strpbrk(string : *const u16, matchset : *const u16) -> *mut u16); - u_strpbrk(core::mem::transmute(string), core::mem::transmute(matchset)) + u_strpbrk(string, matchset) } #[inline] pub unsafe fn u_strrchr(s: *const u16, c: u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strrchr(s : *const u16, c : u16) -> *mut u16); - u_strrchr(core::mem::transmute(s), core::mem::transmute(c)) + u_strrchr(s, c) } #[inline] pub unsafe fn u_strrchr32(s: *const u16, c: i32) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strrchr32(s : *const u16, c : i32) -> *mut u16); - u_strrchr32(core::mem::transmute(s), core::mem::transmute(c)) + u_strrchr32(s, c) } #[inline] pub unsafe fn u_strrstr(s: *const u16, substring: *const u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strrstr(s : *const u16, substring : *const u16) -> *mut u16); - u_strrstr(core::mem::transmute(s), core::mem::transmute(substring)) + u_strrstr(s, substring) } #[inline] pub unsafe fn u_strspn(string: *const u16, matchset: *const u16) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strspn(string : *const u16, matchset : *const u16) -> i32); - u_strspn(core::mem::transmute(string), core::mem::transmute(matchset)) + u_strspn(string, matchset) } #[inline] pub unsafe fn u_strstr(s: *const u16, substring: *const u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strstr(s : *const u16, substring : *const u16) -> *mut u16); - u_strstr(core::mem::transmute(s), core::mem::transmute(substring)) + u_strstr(s, substring) } #[inline] pub unsafe fn u_strtok_r(src: *mut u16, delim: *const u16, savestate: *mut *mut u16) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn u_strtok_r(src : *mut u16, delim : *const u16, savestate : *mut *mut u16) -> *mut u16); - u_strtok_r(core::mem::transmute(src), core::mem::transmute(delim), core::mem::transmute(savestate)) + u_strtok_r(core::mem::transmute(src), delim, core::mem::transmute(savestate)) } #[inline] pub unsafe fn u_tolower(c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_tolower(c : i32) -> i32); - u_tolower(core::mem::transmute(c)) + u_tolower(c) } #[inline] pub unsafe fn u_totitle(c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_totitle(c : i32) -> i32); - u_totitle(core::mem::transmute(c)) + u_totitle(c) } #[inline] pub unsafe fn u_toupper(c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_toupper(c : i32) -> i32); - u_toupper(core::mem::transmute(c)) + u_toupper(c) } #[inline] pub unsafe fn u_uastrcpy(dst: *mut u16, src: P1) -> *mut u16 @@ -2092,7 +2050,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_uastrncpy(dst : *mut u16, src : windows_core::PCSTR, n : i32) -> *mut u16); - u_uastrncpy(core::mem::transmute(dst), src.param().abi(), core::mem::transmute(n)) + u_uastrncpy(core::mem::transmute(dst), src.param().abi(), n) } #[inline] pub unsafe fn u_unescape(src: P0, dest: *mut u16, destcapacity: i32) -> i32 @@ -2100,12 +2058,12 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_unescape(src : windows_core::PCSTR, dest : *mut u16, destcapacity : i32) -> i32); - u_unescape(src.param().abi(), core::mem::transmute(dest), core::mem::transmute(destcapacity)) + u_unescape(src.param().abi(), core::mem::transmute(dest), destcapacity) } #[inline] pub unsafe fn u_unescapeAt(charat: UNESCAPE_CHAR_AT, offset: *mut i32, length: i32, context: *mut core::ffi::c_void) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn u_unescapeAt(charat : UNESCAPE_CHAR_AT, offset : *mut i32, length : i32, context : *mut core::ffi::c_void) -> i32); - u_unescapeAt(core::mem::transmute(charat), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(context)) + u_unescapeAt(charat, core::mem::transmute(offset), length, core::mem::transmute(context)) } #[inline] pub unsafe fn u_versionFromString(versionarray: *mut u8, versionstring: P1) @@ -2118,7 +2076,7 @@ where #[inline] pub unsafe fn u_versionFromUString(versionarray: *mut u8, versionstring: *const u16) { windows_targets::link!("icuuc.dll" "cdecl" fn u_versionFromUString(versionarray : *mut u8, versionstring : *const u16)); - u_versionFromUString(core::mem::transmute(versionarray), core::mem::transmute(versionstring)) + u_versionFromUString(core::mem::transmute(versionarray), versionstring) } #[inline] pub unsafe fn u_versionToString(versionarray: *const u8, versionstring: P1) @@ -2126,7 +2084,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn u_versionToString(versionarray : *const u8, versionstring : windows_core::PCSTR)); - u_versionToString(core::mem::transmute(versionarray), versionstring.param().abi()) + u_versionToString(versionarray, versionstring.param().abi()) } #[inline] pub unsafe fn u_vformatMessage(locale: P0, pattern: *const u16, patternlength: i32, result: *mut u16, resultlength: i32, ap: *mut i8, status: *mut UErrorCode) -> i32 @@ -2134,7 +2092,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_vformatMessage(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, result : *mut u16, resultlength : i32, ap : *mut i8, status : *mut UErrorCode) -> i32); - u_vformatMessage(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(ap), core::mem::transmute(status)) + u_vformatMessage(locale.param().abi(), pattern, patternlength, core::mem::transmute(result), resultlength, core::mem::transmute(ap), core::mem::transmute(status)) } #[inline] pub unsafe fn u_vformatMessageWithError(locale: P0, pattern: *const u16, patternlength: i32, result: *mut u16, resultlength: i32, parseerror: *mut UParseError, ap: *mut i8, status: *mut UErrorCode) -> i32 @@ -2142,7 +2100,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_vformatMessageWithError(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, result : *mut u16, resultlength : i32, parseerror : *mut UParseError, ap : *mut i8, status : *mut UErrorCode) -> i32); - u_vformatMessageWithError(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(parseerror), core::mem::transmute(ap), core::mem::transmute(status)) + u_vformatMessageWithError(locale.param().abi(), pattern, patternlength, core::mem::transmute(result), resultlength, core::mem::transmute(parseerror), core::mem::transmute(ap), core::mem::transmute(status)) } #[inline] pub unsafe fn u_vparseMessage(locale: P0, pattern: *const u16, patternlength: i32, source: *const u16, sourcelength: i32, ap: *mut i8, status: *mut UErrorCode) @@ -2150,7 +2108,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_vparseMessage(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, source : *const u16, sourcelength : i32, ap : *mut i8, status : *mut UErrorCode)); - u_vparseMessage(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(ap), core::mem::transmute(status)) + u_vparseMessage(locale.param().abi(), pattern, patternlength, source, sourcelength, core::mem::transmute(ap), core::mem::transmute(status)) } #[inline] pub unsafe fn u_vparseMessageWithError(locale: P0, pattern: *const u16, patternlength: i32, source: *const u16, sourcelength: i32, ap: *mut i8, parseerror: *mut UParseError, status: *mut UErrorCode) @@ -2158,7 +2116,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn u_vparseMessageWithError(locale : windows_core::PCSTR, pattern : *const u16, patternlength : i32, source : *const u16, sourcelength : i32, ap : *mut i8, parseerror : *mut UParseError, status : *mut UErrorCode)); - u_vparseMessageWithError(locale.param().abi(), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(ap), core::mem::transmute(parseerror), core::mem::transmute(status)) + u_vparseMessageWithError(locale.param().abi(), pattern, patternlength, source, sourcelength, core::mem::transmute(ap), core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn ubidi_close(pbidi: *mut UBiDi) { @@ -2178,32 +2136,32 @@ pub unsafe fn ubidi_countRuns(pbidi: *mut UBiDi, perrorcode: *mut UErrorCode) -> #[inline] pub unsafe fn ubidi_getBaseDirection(text: *const u16, length: i32) -> UBiDiDirection { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getBaseDirection(text : *const u16, length : i32) -> UBiDiDirection); - ubidi_getBaseDirection(core::mem::transmute(text), core::mem::transmute(length)) + ubidi_getBaseDirection(text, length) } #[inline] pub unsafe fn ubidi_getClassCallback(pbidi: *mut UBiDi, r#fn: *mut UBiDiClassCallback, context: *const *const core::ffi::c_void) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getClassCallback(pbidi : *mut UBiDi, r#fn : *mut UBiDiClassCallback, context : *const *const core::ffi::c_void)); - ubidi_getClassCallback(core::mem::transmute(pbidi), core::mem::transmute(r#fn), core::mem::transmute(context)) + ubidi_getClassCallback(core::mem::transmute(pbidi), core::mem::transmute(r#fn), context) } #[inline] pub unsafe fn ubidi_getCustomizedClass(pbidi: *mut UBiDi, c: i32) -> UCharDirection { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getCustomizedClass(pbidi : *mut UBiDi, c : i32) -> UCharDirection); - ubidi_getCustomizedClass(core::mem::transmute(pbidi), core::mem::transmute(c)) + ubidi_getCustomizedClass(core::mem::transmute(pbidi), c) } #[inline] pub unsafe fn ubidi_getDirection(pbidi: *const UBiDi) -> UBiDiDirection { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getDirection(pbidi : *const UBiDi) -> UBiDiDirection); - ubidi_getDirection(core::mem::transmute(pbidi)) + ubidi_getDirection(pbidi) } #[inline] pub unsafe fn ubidi_getLength(pbidi: *const UBiDi) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getLength(pbidi : *const UBiDi) -> i32); - ubidi_getLength(core::mem::transmute(pbidi)) + ubidi_getLength(pbidi) } #[inline] pub unsafe fn ubidi_getLevelAt(pbidi: *const UBiDi, charindex: i32) -> u8 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getLevelAt(pbidi : *const UBiDi, charindex : i32) -> u8); - ubidi_getLevelAt(core::mem::transmute(pbidi), core::mem::transmute(charindex)) + ubidi_getLevelAt(pbidi, charindex) } #[inline] pub unsafe fn ubidi_getLevels(pbidi: *mut UBiDi, perrorcode: *mut UErrorCode) -> *mut u8 { @@ -2213,7 +2171,7 @@ pub unsafe fn ubidi_getLevels(pbidi: *mut UBiDi, perrorcode: *mut UErrorCode) -> #[inline] pub unsafe fn ubidi_getLogicalIndex(pbidi: *mut UBiDi, visualindex: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getLogicalIndex(pbidi : *mut UBiDi, visualindex : i32, perrorcode : *mut UErrorCode) -> i32); - ubidi_getLogicalIndex(core::mem::transmute(pbidi), core::mem::transmute(visualindex), core::mem::transmute(perrorcode)) + ubidi_getLogicalIndex(core::mem::transmute(pbidi), visualindex, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_getLogicalMap(pbidi: *mut UBiDi, indexmap: *mut i32, perrorcode: *mut UErrorCode) { @@ -2223,27 +2181,27 @@ pub unsafe fn ubidi_getLogicalMap(pbidi: *mut UBiDi, indexmap: *mut i32, perrorc #[inline] pub unsafe fn ubidi_getLogicalRun(pbidi: *const UBiDi, logicalposition: i32, plogicallimit: *mut i32, plevel: *mut u8) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getLogicalRun(pbidi : *const UBiDi, logicalposition : i32, plogicallimit : *mut i32, plevel : *mut u8)); - ubidi_getLogicalRun(core::mem::transmute(pbidi), core::mem::transmute(logicalposition), core::mem::transmute(plogicallimit), core::mem::transmute(plevel)) + ubidi_getLogicalRun(pbidi, logicalposition, core::mem::transmute(plogicallimit), core::mem::transmute(plevel)) } #[inline] pub unsafe fn ubidi_getParaLevel(pbidi: *const UBiDi) -> u8 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getParaLevel(pbidi : *const UBiDi) -> u8); - ubidi_getParaLevel(core::mem::transmute(pbidi)) + ubidi_getParaLevel(pbidi) } #[inline] pub unsafe fn ubidi_getParagraph(pbidi: *const UBiDi, charindex: i32, pparastart: *mut i32, pparalimit: *mut i32, pparalevel: *mut u8, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getParagraph(pbidi : *const UBiDi, charindex : i32, pparastart : *mut i32, pparalimit : *mut i32, pparalevel : *mut u8, perrorcode : *mut UErrorCode) -> i32); - ubidi_getParagraph(core::mem::transmute(pbidi), core::mem::transmute(charindex), core::mem::transmute(pparastart), core::mem::transmute(pparalimit), core::mem::transmute(pparalevel), core::mem::transmute(perrorcode)) + ubidi_getParagraph(pbidi, charindex, core::mem::transmute(pparastart), core::mem::transmute(pparalimit), core::mem::transmute(pparalevel), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_getParagraphByIndex(pbidi: *const UBiDi, paraindex: i32, pparastart: *mut i32, pparalimit: *mut i32, pparalevel: *mut u8, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getParagraphByIndex(pbidi : *const UBiDi, paraindex : i32, pparastart : *mut i32, pparalimit : *mut i32, pparalevel : *mut u8, perrorcode : *mut UErrorCode)); - ubidi_getParagraphByIndex(core::mem::transmute(pbidi), core::mem::transmute(paraindex), core::mem::transmute(pparastart), core::mem::transmute(pparalimit), core::mem::transmute(pparalevel), core::mem::transmute(perrorcode)) + ubidi_getParagraphByIndex(pbidi, paraindex, core::mem::transmute(pparastart), core::mem::transmute(pparalimit), core::mem::transmute(pparalevel), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_getProcessedLength(pbidi: *const UBiDi) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getProcessedLength(pbidi : *const UBiDi) -> i32); - ubidi_getProcessedLength(core::mem::transmute(pbidi)) + ubidi_getProcessedLength(pbidi) } #[inline] pub unsafe fn ubidi_getReorderingMode(pbidi: *mut UBiDi) -> UBiDiReorderingMode { @@ -2258,17 +2216,17 @@ pub unsafe fn ubidi_getReorderingOptions(pbidi: *mut UBiDi) -> u32 { #[inline] pub unsafe fn ubidi_getResultLength(pbidi: *const UBiDi) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getResultLength(pbidi : *const UBiDi) -> i32); - ubidi_getResultLength(core::mem::transmute(pbidi)) + ubidi_getResultLength(pbidi) } #[inline] pub unsafe fn ubidi_getText(pbidi: *const UBiDi) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getText(pbidi : *const UBiDi) -> *mut u16); - ubidi_getText(core::mem::transmute(pbidi)) + ubidi_getText(pbidi) } #[inline] pub unsafe fn ubidi_getVisualIndex(pbidi: *mut UBiDi, logicalindex: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getVisualIndex(pbidi : *mut UBiDi, logicalindex : i32, perrorcode : *mut UErrorCode) -> i32); - ubidi_getVisualIndex(core::mem::transmute(pbidi), core::mem::transmute(logicalindex), core::mem::transmute(perrorcode)) + ubidi_getVisualIndex(core::mem::transmute(pbidi), logicalindex, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_getVisualMap(pbidi: *mut UBiDi, indexmap: *mut i32, perrorcode: *mut UErrorCode) { @@ -2278,12 +2236,12 @@ pub unsafe fn ubidi_getVisualMap(pbidi: *mut UBiDi, indexmap: *mut i32, perrorco #[inline] pub unsafe fn ubidi_getVisualRun(pbidi: *mut UBiDi, runindex: i32, plogicalstart: *mut i32, plength: *mut i32) -> UBiDiDirection { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_getVisualRun(pbidi : *mut UBiDi, runindex : i32, plogicalstart : *mut i32, plength : *mut i32) -> UBiDiDirection); - ubidi_getVisualRun(core::mem::transmute(pbidi), core::mem::transmute(runindex), core::mem::transmute(plogicalstart), core::mem::transmute(plength)) + ubidi_getVisualRun(core::mem::transmute(pbidi), runindex, core::mem::transmute(plogicalstart), core::mem::transmute(plength)) } #[inline] pub unsafe fn ubidi_invertMap(srcmap: *const i32, destmap: *mut i32, length: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_invertMap(srcmap : *const i32, destmap : *mut i32, length : i32)); - ubidi_invertMap(core::mem::transmute(srcmap), core::mem::transmute(destmap), core::mem::transmute(length)) + ubidi_invertMap(srcmap, core::mem::transmute(destmap), length) } #[inline] pub unsafe fn ubidi_isInverse(pbidi: *mut UBiDi) -> i8 { @@ -2303,67 +2261,67 @@ pub unsafe fn ubidi_open() -> *mut UBiDi { #[inline] pub unsafe fn ubidi_openSized(maxlength: i32, maxruncount: i32, perrorcode: *mut UErrorCode) -> *mut UBiDi { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_openSized(maxlength : i32, maxruncount : i32, perrorcode : *mut UErrorCode) -> *mut UBiDi); - ubidi_openSized(core::mem::transmute(maxlength), core::mem::transmute(maxruncount), core::mem::transmute(perrorcode)) + ubidi_openSized(maxlength, maxruncount, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_orderParagraphsLTR(pbidi: *mut UBiDi, orderparagraphsltr: i8) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_orderParagraphsLTR(pbidi : *mut UBiDi, orderparagraphsltr : i8)); - ubidi_orderParagraphsLTR(core::mem::transmute(pbidi), core::mem::transmute(orderparagraphsltr)) + ubidi_orderParagraphsLTR(core::mem::transmute(pbidi), orderparagraphsltr) } #[inline] pub unsafe fn ubidi_reorderLogical(levels: *const u8, length: i32, indexmap: *mut i32) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_reorderLogical(levels : *const u8, length : i32, indexmap : *mut i32)); - ubidi_reorderLogical(core::mem::transmute(levels), core::mem::transmute(length), core::mem::transmute(indexmap)) + ubidi_reorderLogical(levels, length, core::mem::transmute(indexmap)) } #[inline] pub unsafe fn ubidi_reorderVisual(levels: *const u8, length: i32, indexmap: *mut i32) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_reorderVisual(levels : *const u8, length : i32, indexmap : *mut i32)); - ubidi_reorderVisual(core::mem::transmute(levels), core::mem::transmute(length), core::mem::transmute(indexmap)) + ubidi_reorderVisual(levels, length, core::mem::transmute(indexmap)) } #[inline] pub unsafe fn ubidi_setClassCallback(pbidi: *mut UBiDi, newfn: UBiDiClassCallback, newcontext: *const core::ffi::c_void, oldfn: *mut UBiDiClassCallback, oldcontext: *const *const core::ffi::c_void, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setClassCallback(pbidi : *mut UBiDi, newfn : UBiDiClassCallback, newcontext : *const core::ffi::c_void, oldfn : *mut UBiDiClassCallback, oldcontext : *const *const core::ffi::c_void, perrorcode : *mut UErrorCode)); - ubidi_setClassCallback(core::mem::transmute(pbidi), core::mem::transmute(newfn), core::mem::transmute(newcontext), core::mem::transmute(oldfn), core::mem::transmute(oldcontext), core::mem::transmute(perrorcode)) + ubidi_setClassCallback(core::mem::transmute(pbidi), newfn, newcontext, core::mem::transmute(oldfn), oldcontext, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_setContext(pbidi: *mut UBiDi, prologue: *const u16, prolength: i32, epilogue: *const u16, epilength: i32, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setContext(pbidi : *mut UBiDi, prologue : *const u16, prolength : i32, epilogue : *const u16, epilength : i32, perrorcode : *mut UErrorCode)); - ubidi_setContext(core::mem::transmute(pbidi), core::mem::transmute(prologue), core::mem::transmute(prolength), core::mem::transmute(epilogue), core::mem::transmute(epilength), core::mem::transmute(perrorcode)) + ubidi_setContext(core::mem::transmute(pbidi), prologue, prolength, epilogue, epilength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_setInverse(pbidi: *mut UBiDi, isinverse: i8) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setInverse(pbidi : *mut UBiDi, isinverse : i8)); - ubidi_setInverse(core::mem::transmute(pbidi), core::mem::transmute(isinverse)) + ubidi_setInverse(core::mem::transmute(pbidi), isinverse) } #[inline] pub unsafe fn ubidi_setLine(pparabidi: *const UBiDi, start: i32, limit: i32, plinebidi: *mut UBiDi, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setLine(pparabidi : *const UBiDi, start : i32, limit : i32, plinebidi : *mut UBiDi, perrorcode : *mut UErrorCode)); - ubidi_setLine(core::mem::transmute(pparabidi), core::mem::transmute(start), core::mem::transmute(limit), core::mem::transmute(plinebidi), core::mem::transmute(perrorcode)) + ubidi_setLine(pparabidi, start, limit, core::mem::transmute(plinebidi), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_setPara(pbidi: *mut UBiDi, text: *const u16, length: i32, paralevel: u8, embeddinglevels: *mut u8, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setPara(pbidi : *mut UBiDi, text : *const u16, length : i32, paralevel : u8, embeddinglevels : *mut u8, perrorcode : *mut UErrorCode)); - ubidi_setPara(core::mem::transmute(pbidi), core::mem::transmute(text), core::mem::transmute(length), core::mem::transmute(paralevel), core::mem::transmute(embeddinglevels), core::mem::transmute(perrorcode)) + ubidi_setPara(core::mem::transmute(pbidi), text, length, paralevel, core::mem::transmute(embeddinglevels), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_setReorderingMode(pbidi: *mut UBiDi, reorderingmode: UBiDiReorderingMode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setReorderingMode(pbidi : *mut UBiDi, reorderingmode : UBiDiReorderingMode)); - ubidi_setReorderingMode(core::mem::transmute(pbidi), core::mem::transmute(reorderingmode)) + ubidi_setReorderingMode(core::mem::transmute(pbidi), reorderingmode) } #[inline] pub unsafe fn ubidi_setReorderingOptions(pbidi: *mut UBiDi, reorderingoptions: u32) { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_setReorderingOptions(pbidi : *mut UBiDi, reorderingoptions : u32)); - ubidi_setReorderingOptions(core::mem::transmute(pbidi), core::mem::transmute(reorderingoptions)) + ubidi_setReorderingOptions(core::mem::transmute(pbidi), reorderingoptions) } #[inline] pub unsafe fn ubidi_writeReordered(pbidi: *mut UBiDi, dest: *mut u16, destsize: i32, options: u16, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_writeReordered(pbidi : *mut UBiDi, dest : *mut u16, destsize : i32, options : u16, perrorcode : *mut UErrorCode) -> i32); - ubidi_writeReordered(core::mem::transmute(pbidi), core::mem::transmute(dest), core::mem::transmute(destsize), core::mem::transmute(options), core::mem::transmute(perrorcode)) + ubidi_writeReordered(core::mem::transmute(pbidi), core::mem::transmute(dest), destsize, options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubidi_writeReverse(src: *const u16, srclength: i32, dest: *mut u16, destsize: i32, options: u16, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubidi_writeReverse(src : *const u16, srclength : i32, dest : *mut u16, destsize : i32, options : u16, perrorcode : *mut UErrorCode) -> i32); - ubidi_writeReverse(core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(dest), core::mem::transmute(destsize), core::mem::transmute(options), core::mem::transmute(perrorcode)) + ubidi_writeReverse(src, srclength, core::mem::transmute(dest), destsize, options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ubiditransform_close(pbiditransform: *mut UBiDiTransform) { @@ -2378,12 +2336,12 @@ pub unsafe fn ubiditransform_open(perrorcode: *mut UErrorCode) -> *mut UBiDiTran #[inline] pub unsafe fn ubiditransform_transform(pbiditransform: *mut UBiDiTransform, src: *const u16, srclength: i32, dest: *mut u16, destsize: i32, inparalevel: u8, inorder: UBiDiOrder, outparalevel: u8, outorder: UBiDiOrder, domirroring: UBiDiMirroring, shapingoptions: u32, perrorcode: *mut UErrorCode) -> u32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubiditransform_transform(pbiditransform : *mut UBiDiTransform, src : *const u16, srclength : i32, dest : *mut u16, destsize : i32, inparalevel : u8, inorder : UBiDiOrder, outparalevel : u8, outorder : UBiDiOrder, domirroring : UBiDiMirroring, shapingoptions : u32, perrorcode : *mut UErrorCode) -> u32); - ubiditransform_transform(core::mem::transmute(pbiditransform), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(dest), core::mem::transmute(destsize), core::mem::transmute(inparalevel), core::mem::transmute(inorder), core::mem::transmute(outparalevel), core::mem::transmute(outorder), core::mem::transmute(domirroring), core::mem::transmute(shapingoptions), core::mem::transmute(perrorcode)) + ubiditransform_transform(core::mem::transmute(pbiditransform), src, srclength, core::mem::transmute(dest), destsize, inparalevel, inorder, outparalevel, outorder, domirroring, shapingoptions, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ublock_getCode(c: i32) -> UBlockCode { windows_targets::link!("icuuc.dll" "cdecl" fn ublock_getCode(c : i32) -> UBlockCode); - ublock_getCode(core::mem::transmute(c)) + ublock_getCode(c) } #[inline] pub unsafe fn ubrk_close(bi: *mut UBreakIterator) { @@ -2398,7 +2356,7 @@ pub unsafe fn ubrk_countAvailable() -> i32 { #[inline] pub unsafe fn ubrk_current(bi: *const UBreakIterator) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_current(bi : *const UBreakIterator) -> i32); - ubrk_current(core::mem::transmute(bi)) + ubrk_current(bi) } #[inline] pub unsafe fn ubrk_first(bi: *mut UBreakIterator) -> i32 { @@ -2408,22 +2366,22 @@ pub unsafe fn ubrk_first(bi: *mut UBreakIterator) -> i32 { #[inline] pub unsafe fn ubrk_following(bi: *mut UBreakIterator, offset: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_following(bi : *mut UBreakIterator, offset : i32) -> i32); - ubrk_following(core::mem::transmute(bi), core::mem::transmute(offset)) + ubrk_following(core::mem::transmute(bi), offset) } #[inline] pub unsafe fn ubrk_getAvailable(index: i32) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_getAvailable(index : i32) -> windows_core::PCSTR); - ubrk_getAvailable(core::mem::transmute(index)) + ubrk_getAvailable(index) } #[inline] pub unsafe fn ubrk_getBinaryRules(bi: *mut UBreakIterator, binaryrules: *mut u8, rulescapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_getBinaryRules(bi : *mut UBreakIterator, binaryrules : *mut u8, rulescapacity : i32, status : *mut UErrorCode) -> i32); - ubrk_getBinaryRules(core::mem::transmute(bi), core::mem::transmute(binaryrules), core::mem::transmute(rulescapacity), core::mem::transmute(status)) + ubrk_getBinaryRules(core::mem::transmute(bi), core::mem::transmute(binaryrules), rulescapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_getLocaleByType(bi: *const UBreakIterator, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_getLocaleByType(bi : *const UBreakIterator, r#type : ULocDataLocaleType, status : *mut UErrorCode) -> windows_core::PCSTR); - ubrk_getLocaleByType(core::mem::transmute(bi), core::mem::transmute(r#type), core::mem::transmute(status)) + ubrk_getLocaleByType(bi, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_getRuleStatus(bi: *mut UBreakIterator) -> i32 { @@ -2433,12 +2391,12 @@ pub unsafe fn ubrk_getRuleStatus(bi: *mut UBreakIterator) -> i32 { #[inline] pub unsafe fn ubrk_getRuleStatusVec(bi: *mut UBreakIterator, fillinvec: *mut i32, capacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_getRuleStatusVec(bi : *mut UBreakIterator, fillinvec : *mut i32, capacity : i32, status : *mut UErrorCode) -> i32); - ubrk_getRuleStatusVec(core::mem::transmute(bi), core::mem::transmute(fillinvec), core::mem::transmute(capacity), core::mem::transmute(status)) + ubrk_getRuleStatusVec(core::mem::transmute(bi), core::mem::transmute(fillinvec), capacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_isBoundary(bi: *mut UBreakIterator, offset: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_isBoundary(bi : *mut UBreakIterator, offset : i32) -> i8); - ubrk_isBoundary(core::mem::transmute(bi), core::mem::transmute(offset)) + ubrk_isBoundary(core::mem::transmute(bi), offset) } #[inline] pub unsafe fn ubrk_last(bi: *mut UBreakIterator) -> i32 { @@ -2456,22 +2414,22 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_open(r#type : UBreakIteratorType, locale : windows_core::PCSTR, text : *const u16, textlength : i32, status : *mut UErrorCode) -> *mut UBreakIterator); - ubrk_open(core::mem::transmute(r#type), locale.param().abi(), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + ubrk_open(r#type, locale.param().abi(), text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_openBinaryRules(binaryrules: *const u8, ruleslength: i32, text: *const u16, textlength: i32, status: *mut UErrorCode) -> *mut UBreakIterator { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_openBinaryRules(binaryrules : *const u8, ruleslength : i32, text : *const u16, textlength : i32, status : *mut UErrorCode) -> *mut UBreakIterator); - ubrk_openBinaryRules(core::mem::transmute(binaryrules), core::mem::transmute(ruleslength), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + ubrk_openBinaryRules(binaryrules, ruleslength, text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_openRules(rules: *const u16, ruleslength: i32, text: *const u16, textlength: i32, parseerr: *mut UParseError, status: *mut UErrorCode) -> *mut UBreakIterator { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_openRules(rules : *const u16, ruleslength : i32, text : *const u16, textlength : i32, parseerr : *mut UParseError, status : *mut UErrorCode) -> *mut UBreakIterator); - ubrk_openRules(core::mem::transmute(rules), core::mem::transmute(ruleslength), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parseerr), core::mem::transmute(status)) + ubrk_openRules(rules, ruleslength, text, textlength, core::mem::transmute(parseerr), core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_preceding(bi: *mut UBreakIterator, offset: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_preceding(bi : *mut UBreakIterator, offset : i32) -> i32); - ubrk_preceding(core::mem::transmute(bi), core::mem::transmute(offset)) + ubrk_preceding(core::mem::transmute(bi), offset) } #[inline] pub unsafe fn ubrk_previous(bi: *mut UBreakIterator) -> i32 { @@ -2486,12 +2444,12 @@ pub unsafe fn ubrk_refreshUText(bi: *mut UBreakIterator, text: *mut UText, statu #[inline] pub unsafe fn ubrk_safeClone(bi: *const UBreakIterator, stackbuffer: *mut core::ffi::c_void, pbuffersize: *mut i32, status: *mut UErrorCode) -> *mut UBreakIterator { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_safeClone(bi : *const UBreakIterator, stackbuffer : *mut core::ffi::c_void, pbuffersize : *mut i32, status : *mut UErrorCode) -> *mut UBreakIterator); - ubrk_safeClone(core::mem::transmute(bi), core::mem::transmute(stackbuffer), core::mem::transmute(pbuffersize), core::mem::transmute(status)) + ubrk_safeClone(bi, core::mem::transmute(stackbuffer), core::mem::transmute(pbuffersize), core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_setText(bi: *mut UBreakIterator, text: *const u16, textlength: i32, status: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ubrk_setText(bi : *mut UBreakIterator, text : *const u16, textlength : i32, status : *mut UErrorCode)); - ubrk_setText(core::mem::transmute(bi), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + ubrk_setText(core::mem::transmute(bi), text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ubrk_setUText(bi: *mut UBreakIterator, text: *mut UText, status: *mut UErrorCode) { @@ -2501,7 +2459,7 @@ pub unsafe fn ubrk_setUText(bi: *mut UBreakIterator, text: *mut UText, status: * #[inline] pub unsafe fn ucal_add(cal: *mut *mut core::ffi::c_void, field: UCalendarDateFields, amount: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_add(cal : *mut *mut core::ffi::c_void, field : UCalendarDateFields, amount : i32, status : *mut UErrorCode)); - ucal_add(core::mem::transmute(cal), core::mem::transmute(field), core::mem::transmute(amount), core::mem::transmute(status)) + ucal_add(core::mem::transmute(cal), field, amount, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_clear(calendar: *mut *mut core::ffi::c_void) { @@ -2511,12 +2469,12 @@ pub unsafe fn ucal_clear(calendar: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn ucal_clearField(cal: *mut *mut core::ffi::c_void, field: UCalendarDateFields) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_clearField(cal : *mut *mut core::ffi::c_void, field : UCalendarDateFields)); - ucal_clearField(core::mem::transmute(cal), core::mem::transmute(field)) + ucal_clearField(core::mem::transmute(cal), field) } #[inline] pub unsafe fn ucal_clone(cal: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn ucal_clone(cal : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - ucal_clone(core::mem::transmute(cal), core::mem::transmute(status)) + ucal_clone(cal, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_close(cal: *mut *mut core::ffi::c_void) { @@ -2531,57 +2489,57 @@ pub unsafe fn ucal_countAvailable() -> i32 { #[inline] pub unsafe fn ucal_equivalentTo(cal1: *const *const core::ffi::c_void, cal2: *const *const core::ffi::c_void) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_equivalentTo(cal1 : *const *const core::ffi::c_void, cal2 : *const *const core::ffi::c_void) -> i8); - ucal_equivalentTo(core::mem::transmute(cal1), core::mem::transmute(cal2)) + ucal_equivalentTo(cal1, cal2) } #[inline] pub unsafe fn ucal_get(cal: *const *const core::ffi::c_void, field: UCalendarDateFields, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_get(cal : *const *const core::ffi::c_void, field : UCalendarDateFields, status : *mut UErrorCode) -> i32); - ucal_get(core::mem::transmute(cal), core::mem::transmute(field), core::mem::transmute(status)) + ucal_get(cal, field, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getAttribute(cal: *const *const core::ffi::c_void, attr: UCalendarAttribute) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getAttribute(cal : *const *const core::ffi::c_void, attr : UCalendarAttribute) -> i32); - ucal_getAttribute(core::mem::transmute(cal), core::mem::transmute(attr)) + ucal_getAttribute(cal, attr) } #[inline] pub unsafe fn ucal_getAvailable(localeindex: i32) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getAvailable(localeindex : i32) -> windows_core::PCSTR); - ucal_getAvailable(core::mem::transmute(localeindex)) + ucal_getAvailable(localeindex) } #[inline] pub unsafe fn ucal_getCanonicalTimeZoneID(id: *const u16, len: i32, result: *mut u16, resultcapacity: i32, issystemid: *mut i8, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getCanonicalTimeZoneID(id : *const u16, len : i32, result : *mut u16, resultcapacity : i32, issystemid : *mut i8, status : *mut UErrorCode) -> i32); - ucal_getCanonicalTimeZoneID(core::mem::transmute(id), core::mem::transmute(len), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(issystemid), core::mem::transmute(status)) + ucal_getCanonicalTimeZoneID(id, len, core::mem::transmute(result), resultcapacity, core::mem::transmute(issystemid), core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getDSTSavings(zoneid: *const u16, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getDSTSavings(zoneid : *const u16, ec : *mut UErrorCode) -> i32); - ucal_getDSTSavings(core::mem::transmute(zoneid), core::mem::transmute(ec)) + ucal_getDSTSavings(zoneid, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucal_getDayOfWeekType(cal: *const *const core::ffi::c_void, dayofweek: UCalendarDaysOfWeek, status: *mut UErrorCode) -> UCalendarWeekdayType { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getDayOfWeekType(cal : *const *const core::ffi::c_void, dayofweek : UCalendarDaysOfWeek, status : *mut UErrorCode) -> UCalendarWeekdayType); - ucal_getDayOfWeekType(core::mem::transmute(cal), core::mem::transmute(dayofweek), core::mem::transmute(status)) + ucal_getDayOfWeekType(cal, dayofweek, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getDefaultTimeZone(result: *mut u16, resultcapacity: i32, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getDefaultTimeZone(result : *mut u16, resultcapacity : i32, ec : *mut UErrorCode) -> i32); - ucal_getDefaultTimeZone(core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(ec)) + ucal_getDefaultTimeZone(core::mem::transmute(result), resultcapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucal_getFieldDifference(cal: *mut *mut core::ffi::c_void, target: f64, field: UCalendarDateFields, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getFieldDifference(cal : *mut *mut core::ffi::c_void, target : f64, field : UCalendarDateFields, status : *mut UErrorCode) -> i32); - ucal_getFieldDifference(core::mem::transmute(cal), core::mem::transmute(target), core::mem::transmute(field), core::mem::transmute(status)) + ucal_getFieldDifference(core::mem::transmute(cal), target, field, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getGregorianChange(cal: *const *const core::ffi::c_void, perrorcode: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getGregorianChange(cal : *const *const core::ffi::c_void, perrorcode : *mut UErrorCode) -> f64); - ucal_getGregorianChange(core::mem::transmute(cal), core::mem::transmute(perrorcode)) + ucal_getGregorianChange(cal, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucal_getHostTimeZone(result: *mut u16, resultcapacity: i32, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucal_getHostTimeZone(result : *mut u16, resultcapacity : i32, ec : *mut UErrorCode) -> i32); - ucal_getHostTimeZone(core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(ec)) + ucal_getHostTimeZone(core::mem::transmute(result), resultcapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucal_getKeywordValuesForLocale(key: P0, locale: P1, commonlyused: i8, status: *mut UErrorCode) -> *mut UEnumeration @@ -2590,22 +2548,22 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getKeywordValuesForLocale(key : windows_core::PCSTR, locale : windows_core::PCSTR, commonlyused : i8, status : *mut UErrorCode) -> *mut UEnumeration); - ucal_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), core::mem::transmute(commonlyused), core::mem::transmute(status)) + ucal_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), commonlyused, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getLimit(cal: *const *const core::ffi::c_void, field: UCalendarDateFields, r#type: UCalendarLimitType, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getLimit(cal : *const *const core::ffi::c_void, field : UCalendarDateFields, r#type : UCalendarLimitType, status : *mut UErrorCode) -> i32); - ucal_getLimit(core::mem::transmute(cal), core::mem::transmute(field), core::mem::transmute(r#type), core::mem::transmute(status)) + ucal_getLimit(cal, field, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getLocaleByType(cal: *const *const core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getLocaleByType(cal : *const *const core::ffi::c_void, r#type : ULocDataLocaleType, status : *mut UErrorCode) -> windows_core::PCSTR); - ucal_getLocaleByType(core::mem::transmute(cal), core::mem::transmute(r#type), core::mem::transmute(status)) + ucal_getLocaleByType(cal, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getMillis(cal: *const *const core::ffi::c_void, status: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getMillis(cal : *const *const core::ffi::c_void, status : *mut UErrorCode) -> f64); - ucal_getMillis(core::mem::transmute(cal), core::mem::transmute(status)) + ucal_getMillis(cal, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getNow() -> f64 { @@ -2623,12 +2581,12 @@ where P2: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getTimeZoneDisplayName(cal : *const *const core::ffi::c_void, r#type : UCalendarDisplayNameType, locale : windows_core::PCSTR, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - ucal_getTimeZoneDisplayName(core::mem::transmute(cal), core::mem::transmute(r#type), locale.param().abi(), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + ucal_getTimeZoneDisplayName(cal, r#type, locale.param().abi(), core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getTimeZoneID(cal: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getTimeZoneID(cal : *const *const core::ffi::c_void, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - ucal_getTimeZoneID(core::mem::transmute(cal), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + ucal_getTimeZoneID(cal, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getTimeZoneIDForWindowsID(winid: *const u16, len: i32, region: P2, id: *mut u16, idcapacity: i32, status: *mut UErrorCode) -> i32 @@ -2636,42 +2594,42 @@ where P2: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getTimeZoneIDForWindowsID(winid : *const u16, len : i32, region : windows_core::PCSTR, id : *mut u16, idcapacity : i32, status : *mut UErrorCode) -> i32); - ucal_getTimeZoneIDForWindowsID(core::mem::transmute(winid), core::mem::transmute(len), region.param().abi(), core::mem::transmute(id), core::mem::transmute(idcapacity), core::mem::transmute(status)) + ucal_getTimeZoneIDForWindowsID(winid, len, region.param().abi(), core::mem::transmute(id), idcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getTimeZoneTransitionDate(cal: *const *const core::ffi::c_void, r#type: UTimeZoneTransitionType, transition: *mut f64, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getTimeZoneTransitionDate(cal : *const *const core::ffi::c_void, r#type : UTimeZoneTransitionType, transition : *mut f64, status : *mut UErrorCode) -> i8); - ucal_getTimeZoneTransitionDate(core::mem::transmute(cal), core::mem::transmute(r#type), core::mem::transmute(transition), core::mem::transmute(status)) + ucal_getTimeZoneTransitionDate(cal, r#type, core::mem::transmute(transition), core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getType(cal: *const *const core::ffi::c_void, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getType(cal : *const *const core::ffi::c_void, status : *mut UErrorCode) -> windows_core::PCSTR); - ucal_getType(core::mem::transmute(cal), core::mem::transmute(status)) + ucal_getType(cal, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getWeekendTransition(cal: *const *const core::ffi::c_void, dayofweek: UCalendarDaysOfWeek, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getWeekendTransition(cal : *const *const core::ffi::c_void, dayofweek : UCalendarDaysOfWeek, status : *mut UErrorCode) -> i32); - ucal_getWeekendTransition(core::mem::transmute(cal), core::mem::transmute(dayofweek), core::mem::transmute(status)) + ucal_getWeekendTransition(cal, dayofweek, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_getWindowsTimeZoneID(id: *const u16, len: i32, winid: *mut u16, winidcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_getWindowsTimeZoneID(id : *const u16, len : i32, winid : *mut u16, winidcapacity : i32, status : *mut UErrorCode) -> i32); - ucal_getWindowsTimeZoneID(core::mem::transmute(id), core::mem::transmute(len), core::mem::transmute(winid), core::mem::transmute(winidcapacity), core::mem::transmute(status)) + ucal_getWindowsTimeZoneID(id, len, core::mem::transmute(winid), winidcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_inDaylightTime(cal: *const *const core::ffi::c_void, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_inDaylightTime(cal : *const *const core::ffi::c_void, status : *mut UErrorCode) -> i8); - ucal_inDaylightTime(core::mem::transmute(cal), core::mem::transmute(status)) + ucal_inDaylightTime(cal, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_isSet(cal: *const *const core::ffi::c_void, field: UCalendarDateFields) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_isSet(cal : *const *const core::ffi::c_void, field : UCalendarDateFields) -> i8); - ucal_isSet(core::mem::transmute(cal), core::mem::transmute(field)) + ucal_isSet(cal, field) } #[inline] pub unsafe fn ucal_isWeekend(cal: *const *const core::ffi::c_void, date: f64, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucal_isWeekend(cal : *const *const core::ffi::c_void, date : f64, status : *mut UErrorCode) -> i8); - ucal_isWeekend(core::mem::transmute(cal), core::mem::transmute(date), core::mem::transmute(status)) + ucal_isWeekend(cal, date, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_open(zoneid: *const u16, len: i32, locale: P2, r#type: UCalendarType, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void @@ -2679,7 +2637,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucal_open(zoneid : *const u16, len : i32, locale : windows_core::PCSTR, r#type : UCalendarType, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - ucal_open(core::mem::transmute(zoneid), core::mem::transmute(len), locale.param().abi(), core::mem::transmute(r#type), core::mem::transmute(status)) + ucal_open(zoneid, len, locale.param().abi(), r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_openCountryTimeZones(country: P0, ec: *mut UErrorCode) -> *mut UEnumeration @@ -2695,7 +2653,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucal_openTimeZoneIDEnumeration(zonetype : USystemTimeZoneType, region : windows_core::PCSTR, rawoffset : *const i32, ec : *mut UErrorCode) -> *mut UEnumeration); - ucal_openTimeZoneIDEnumeration(core::mem::transmute(zonetype), region.param().abi(), core::mem::transmute(rawoffset), core::mem::transmute(ec)) + ucal_openTimeZoneIDEnumeration(zonetype, region.param().abi(), rawoffset, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucal_openTimeZones(ec: *mut UErrorCode) -> *mut UEnumeration { @@ -2705,47 +2663,47 @@ pub unsafe fn ucal_openTimeZones(ec: *mut UErrorCode) -> *mut UEnumeration { #[inline] pub unsafe fn ucal_roll(cal: *mut *mut core::ffi::c_void, field: UCalendarDateFields, amount: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_roll(cal : *mut *mut core::ffi::c_void, field : UCalendarDateFields, amount : i32, status : *mut UErrorCode)); - ucal_roll(core::mem::transmute(cal), core::mem::transmute(field), core::mem::transmute(amount), core::mem::transmute(status)) + ucal_roll(core::mem::transmute(cal), field, amount, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_set(cal: *mut *mut core::ffi::c_void, field: UCalendarDateFields, value: i32) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_set(cal : *mut *mut core::ffi::c_void, field : UCalendarDateFields, value : i32)); - ucal_set(core::mem::transmute(cal), core::mem::transmute(field), core::mem::transmute(value)) + ucal_set(core::mem::transmute(cal), field, value) } #[inline] pub unsafe fn ucal_setAttribute(cal: *mut *mut core::ffi::c_void, attr: UCalendarAttribute, newvalue: i32) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setAttribute(cal : *mut *mut core::ffi::c_void, attr : UCalendarAttribute, newvalue : i32)); - ucal_setAttribute(core::mem::transmute(cal), core::mem::transmute(attr), core::mem::transmute(newvalue)) + ucal_setAttribute(core::mem::transmute(cal), attr, newvalue) } #[inline] pub unsafe fn ucal_setDate(cal: *mut *mut core::ffi::c_void, year: i32, month: i32, date: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setDate(cal : *mut *mut core::ffi::c_void, year : i32, month : i32, date : i32, status : *mut UErrorCode)); - ucal_setDate(core::mem::transmute(cal), core::mem::transmute(year), core::mem::transmute(month), core::mem::transmute(date), core::mem::transmute(status)) + ucal_setDate(core::mem::transmute(cal), year, month, date, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_setDateTime(cal: *mut *mut core::ffi::c_void, year: i32, month: i32, date: i32, hour: i32, minute: i32, second: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setDateTime(cal : *mut *mut core::ffi::c_void, year : i32, month : i32, date : i32, hour : i32, minute : i32, second : i32, status : *mut UErrorCode)); - ucal_setDateTime(core::mem::transmute(cal), core::mem::transmute(year), core::mem::transmute(month), core::mem::transmute(date), core::mem::transmute(hour), core::mem::transmute(minute), core::mem::transmute(second), core::mem::transmute(status)) + ucal_setDateTime(core::mem::transmute(cal), year, month, date, hour, minute, second, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_setDefaultTimeZone(zoneid: *const u16, ec: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setDefaultTimeZone(zoneid : *const u16, ec : *mut UErrorCode)); - ucal_setDefaultTimeZone(core::mem::transmute(zoneid), core::mem::transmute(ec)) + ucal_setDefaultTimeZone(zoneid, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucal_setGregorianChange(cal: *mut *mut core::ffi::c_void, date: f64, perrorcode: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setGregorianChange(cal : *mut *mut core::ffi::c_void, date : f64, perrorcode : *mut UErrorCode)); - ucal_setGregorianChange(core::mem::transmute(cal), core::mem::transmute(date), core::mem::transmute(perrorcode)) + ucal_setGregorianChange(core::mem::transmute(cal), date, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucal_setMillis(cal: *mut *mut core::ffi::c_void, datetime: f64, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setMillis(cal : *mut *mut core::ffi::c_void, datetime : f64, status : *mut UErrorCode)); - ucal_setMillis(core::mem::transmute(cal), core::mem::transmute(datetime), core::mem::transmute(status)) + ucal_setMillis(core::mem::transmute(cal), datetime, core::mem::transmute(status)) } #[inline] pub unsafe fn ucal_setTimeZone(cal: *mut *mut core::ffi::c_void, zoneid: *const u16, len: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucal_setTimeZone(cal : *mut *mut core::ffi::c_void, zoneid : *const u16, len : i32, status : *mut UErrorCode)); - ucal_setTimeZone(core::mem::transmute(cal), core::mem::transmute(zoneid), core::mem::transmute(len), core::mem::transmute(status)) + ucal_setTimeZone(core::mem::transmute(cal), zoneid, len, core::mem::transmute(status)) } #[inline] pub unsafe fn ucasemap_close(csm: *mut UCaseMap) { @@ -2755,17 +2713,17 @@ pub unsafe fn ucasemap_close(csm: *mut UCaseMap) { #[inline] pub unsafe fn ucasemap_getBreakIterator(csm: *const UCaseMap) -> *mut UBreakIterator { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_getBreakIterator(csm : *const UCaseMap) -> *mut UBreakIterator); - ucasemap_getBreakIterator(core::mem::transmute(csm)) + ucasemap_getBreakIterator(csm) } #[inline] pub unsafe fn ucasemap_getLocale(csm: *const UCaseMap) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_getLocale(csm : *const UCaseMap) -> windows_core::PCSTR); - ucasemap_getLocale(core::mem::transmute(csm)) + ucasemap_getLocale(csm) } #[inline] pub unsafe fn ucasemap_getOptions(csm: *const UCaseMap) -> u32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_getOptions(csm : *const UCaseMap) -> u32); - ucasemap_getOptions(core::mem::transmute(csm)) + ucasemap_getOptions(csm) } #[inline] pub unsafe fn ucasemap_open(locale: P0, options: u32, perrorcode: *mut UErrorCode) -> *mut UCaseMap @@ -2773,7 +2731,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_open(locale : windows_core::PCSTR, options : u32, perrorcode : *mut UErrorCode) -> *mut UCaseMap); - ucasemap_open(locale.param().abi(), core::mem::transmute(options), core::mem::transmute(perrorcode)) + ucasemap_open(locale.param().abi(), options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucasemap_setBreakIterator(csm: *mut UCaseMap, itertoadopt: *mut UBreakIterator, perrorcode: *mut UErrorCode) { @@ -2791,12 +2749,12 @@ where #[inline] pub unsafe fn ucasemap_setOptions(csm: *mut UCaseMap, options: u32, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_setOptions(csm : *mut UCaseMap, options : u32, perrorcode : *mut UErrorCode)); - ucasemap_setOptions(core::mem::transmute(csm), core::mem::transmute(options), core::mem::transmute(perrorcode)) + ucasemap_setOptions(core::mem::transmute(csm), options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucasemap_toTitle(csm: *mut UCaseMap, dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_toTitle(csm : *mut UCaseMap, dest : *mut u16, destcapacity : i32, src : *const u16, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucasemap_toTitle(core::mem::transmute(csm), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucasemap_toTitle(core::mem::transmute(csm), core::mem::transmute(dest), destcapacity, src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucasemap_utf8FoldCase(csm: *const UCaseMap, dest: P1, destcapacity: i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -2805,7 +2763,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_utf8FoldCase(csm : *const UCaseMap, dest : windows_core::PCSTR, destcapacity : i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucasemap_utf8FoldCase(core::mem::transmute(csm), dest.param().abi(), core::mem::transmute(destcapacity), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucasemap_utf8FoldCase(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucasemap_utf8ToLower(csm: *const UCaseMap, dest: P1, destcapacity: i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -2814,7 +2772,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_utf8ToLower(csm : *const UCaseMap, dest : windows_core::PCSTR, destcapacity : i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucasemap_utf8ToLower(core::mem::transmute(csm), dest.param().abi(), core::mem::transmute(destcapacity), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucasemap_utf8ToLower(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucasemap_utf8ToTitle(csm: *mut UCaseMap, dest: P1, destcapacity: i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -2823,7 +2781,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_utf8ToTitle(csm : *mut UCaseMap, dest : windows_core::PCSTR, destcapacity : i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucasemap_utf8ToTitle(core::mem::transmute(csm), dest.param().abi(), core::mem::transmute(destcapacity), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucasemap_utf8ToTitle(core::mem::transmute(csm), dest.param().abi(), destcapacity, src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucasemap_utf8ToUpper(csm: *const UCaseMap, dest: P1, destcapacity: i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -2832,7 +2790,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucasemap_utf8ToUpper(csm : *const UCaseMap, dest : windows_core::PCSTR, destcapacity : i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucasemap_utf8ToUpper(core::mem::transmute(csm), dest.param().abi(), core::mem::transmute(destcapacity), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucasemap_utf8ToUpper(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucfpos_close(ucfpos: *mut UConstrainedFieldPosition) { @@ -2842,37 +2800,37 @@ pub unsafe fn ucfpos_close(ucfpos: *mut UConstrainedFieldPosition) { #[inline] pub unsafe fn ucfpos_constrainCategory(ucfpos: *mut UConstrainedFieldPosition, category: i32, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_constrainCategory(ucfpos : *mut UConstrainedFieldPosition, category : i32, ec : *mut UErrorCode)); - ucfpos_constrainCategory(core::mem::transmute(ucfpos), core::mem::transmute(category), core::mem::transmute(ec)) + ucfpos_constrainCategory(core::mem::transmute(ucfpos), category, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_constrainField(ucfpos: *mut UConstrainedFieldPosition, category: i32, field: i32, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_constrainField(ucfpos : *mut UConstrainedFieldPosition, category : i32, field : i32, ec : *mut UErrorCode)); - ucfpos_constrainField(core::mem::transmute(ucfpos), core::mem::transmute(category), core::mem::transmute(field), core::mem::transmute(ec)) + ucfpos_constrainField(core::mem::transmute(ucfpos), category, field, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_getCategory(ucfpos: *const UConstrainedFieldPosition, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_getCategory(ucfpos : *const UConstrainedFieldPosition, ec : *mut UErrorCode) -> i32); - ucfpos_getCategory(core::mem::transmute(ucfpos), core::mem::transmute(ec)) + ucfpos_getCategory(ucfpos, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_getField(ucfpos: *const UConstrainedFieldPosition, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_getField(ucfpos : *const UConstrainedFieldPosition, ec : *mut UErrorCode) -> i32); - ucfpos_getField(core::mem::transmute(ucfpos), core::mem::transmute(ec)) + ucfpos_getField(ucfpos, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_getIndexes(ucfpos: *const UConstrainedFieldPosition, pstart: *mut i32, plimit: *mut i32, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_getIndexes(ucfpos : *const UConstrainedFieldPosition, pstart : *mut i32, plimit : *mut i32, ec : *mut UErrorCode)); - ucfpos_getIndexes(core::mem::transmute(ucfpos), core::mem::transmute(pstart), core::mem::transmute(plimit), core::mem::transmute(ec)) + ucfpos_getIndexes(ucfpos, core::mem::transmute(pstart), core::mem::transmute(plimit), core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_getInt64IterationContext(ucfpos: *const UConstrainedFieldPosition, ec: *mut UErrorCode) -> i64 { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_getInt64IterationContext(ucfpos : *const UConstrainedFieldPosition, ec : *mut UErrorCode) -> i64); - ucfpos_getInt64IterationContext(core::mem::transmute(ucfpos), core::mem::transmute(ec)) + ucfpos_getInt64IterationContext(ucfpos, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_matchesField(ucfpos: *const UConstrainedFieldPosition, category: i32, field: i32, ec: *mut UErrorCode) -> i8 { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_matchesField(ucfpos : *const UConstrainedFieldPosition, category : i32, field : i32, ec : *mut UErrorCode) -> i8); - ucfpos_matchesField(core::mem::transmute(ucfpos), core::mem::transmute(category), core::mem::transmute(field), core::mem::transmute(ec)) + ucfpos_matchesField(ucfpos, category, field, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_open(ec: *mut UErrorCode) -> *mut UConstrainedFieldPosition { @@ -2887,12 +2845,12 @@ pub unsafe fn ucfpos_reset(ucfpos: *mut UConstrainedFieldPosition, ec: *mut UErr #[inline] pub unsafe fn ucfpos_setInt64IterationContext(ucfpos: *mut UConstrainedFieldPosition, context: i64, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_setInt64IterationContext(ucfpos : *mut UConstrainedFieldPosition, context : i64, ec : *mut UErrorCode)); - ucfpos_setInt64IterationContext(core::mem::transmute(ucfpos), core::mem::transmute(context), core::mem::transmute(ec)) + ucfpos_setInt64IterationContext(core::mem::transmute(ucfpos), context, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucfpos_setState(ucfpos: *mut UConstrainedFieldPosition, category: i32, field: i32, start: i32, limit: i32, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ucfpos_setState(ucfpos : *mut UConstrainedFieldPosition, category : i32, field : i32, start : i32, limit : i32, ec : *mut UErrorCode)); - ucfpos_setState(core::mem::transmute(ucfpos), core::mem::transmute(category), core::mem::transmute(field), core::mem::transmute(start), core::mem::transmute(limit), core::mem::transmute(ec)) + ucfpos_setState(core::mem::transmute(ucfpos), category, field, start, limit, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucnv_cbFromUWriteBytes(args: *mut UConverterFromUnicodeArgs, source: P1, length: i32, offsetindex: i32, err: *mut UErrorCode) @@ -2900,27 +2858,27 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_cbFromUWriteBytes(args : *mut UConverterFromUnicodeArgs, source : windows_core::PCSTR, length : i32, offsetindex : i32, err : *mut UErrorCode)); - ucnv_cbFromUWriteBytes(core::mem::transmute(args), source.param().abi(), core::mem::transmute(length), core::mem::transmute(offsetindex), core::mem::transmute(err)) + ucnv_cbFromUWriteBytes(core::mem::transmute(args), source.param().abi(), length, offsetindex, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_cbFromUWriteSub(args: *mut UConverterFromUnicodeArgs, offsetindex: i32, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_cbFromUWriteSub(args : *mut UConverterFromUnicodeArgs, offsetindex : i32, err : *mut UErrorCode)); - ucnv_cbFromUWriteSub(core::mem::transmute(args), core::mem::transmute(offsetindex), core::mem::transmute(err)) + ucnv_cbFromUWriteSub(core::mem::transmute(args), offsetindex, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_cbFromUWriteUChars(args: *mut UConverterFromUnicodeArgs, source: *const *const u16, sourcelimit: *const u16, offsetindex: i32, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_cbFromUWriteUChars(args : *mut UConverterFromUnicodeArgs, source : *const *const u16, sourcelimit : *const u16, offsetindex : i32, err : *mut UErrorCode)); - ucnv_cbFromUWriteUChars(core::mem::transmute(args), core::mem::transmute(source), core::mem::transmute(sourcelimit), core::mem::transmute(offsetindex), core::mem::transmute(err)) + ucnv_cbFromUWriteUChars(core::mem::transmute(args), source, sourcelimit, offsetindex, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_cbToUWriteSub(args: *mut UConverterToUnicodeArgs, offsetindex: i32, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_cbToUWriteSub(args : *mut UConverterToUnicodeArgs, offsetindex : i32, err : *mut UErrorCode)); - ucnv_cbToUWriteSub(core::mem::transmute(args), core::mem::transmute(offsetindex), core::mem::transmute(err)) + ucnv_cbToUWriteSub(core::mem::transmute(args), offsetindex, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_cbToUWriteUChars(args: *mut UConverterToUnicodeArgs, source: *const u16, length: i32, offsetindex: i32, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_cbToUWriteUChars(args : *mut UConverterToUnicodeArgs, source : *const u16, length : i32, offsetindex : i32, err : *mut UErrorCode)); - ucnv_cbToUWriteUChars(core::mem::transmute(args), core::mem::transmute(source), core::mem::transmute(length), core::mem::transmute(offsetindex), core::mem::transmute(err)) + ucnv_cbToUWriteUChars(core::mem::transmute(args), source, length, offsetindex, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_close(converter: *mut UConverter) { @@ -2945,7 +2903,7 @@ where P4: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_convert(toconvertername : windows_core::PCSTR, fromconvertername : windows_core::PCSTR, target : windows_core::PCSTR, targetcapacity : i32, source : windows_core::PCSTR, sourcelength : i32, perrorcode : *mut UErrorCode) -> i32); - ucnv_convert(toconvertername.param().abi(), fromconvertername.param().abi(), target.param().abi(), core::mem::transmute(targetcapacity), source.param().abi(), core::mem::transmute(sourcelength), core::mem::transmute(perrorcode)) + ucnv_convert(toconvertername.param().abi(), fromconvertername.param().abi(), target.param().abi(), targetcapacity, source.param().abi(), sourcelength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_convertEx(targetcnv: *mut UConverter, sourcecnv: *mut UConverter, target: *mut *mut i8, targetlimit: P3, source: *const *const i8, sourcelimit: P5, pivotstart: *mut u16, pivotsource: *mut *mut u16, pivottarget: *mut *mut u16, pivotlimit: *const u16, reset: i8, flush: i8, perrorcode: *mut UErrorCode) @@ -2954,7 +2912,7 @@ where P5: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_convertEx(targetcnv : *mut UConverter, sourcecnv : *mut UConverter, target : *mut *mut i8, targetlimit : windows_core::PCSTR, source : *const *const i8, sourcelimit : windows_core::PCSTR, pivotstart : *mut u16, pivotsource : *mut *mut u16, pivottarget : *mut *mut u16, pivotlimit : *const u16, reset : i8, flush : i8, perrorcode : *mut UErrorCode)); - ucnv_convertEx(core::mem::transmute(targetcnv), core::mem::transmute(sourcecnv), core::mem::transmute(target), targetlimit.param().abi(), core::mem::transmute(source), sourcelimit.param().abi(), core::mem::transmute(pivotstart), core::mem::transmute(pivotsource), core::mem::transmute(pivottarget), core::mem::transmute(pivotlimit), core::mem::transmute(reset), core::mem::transmute(flush), core::mem::transmute(perrorcode)) + ucnv_convertEx(core::mem::transmute(targetcnv), core::mem::transmute(sourcecnv), core::mem::transmute(target), targetlimit.param().abi(), source, sourcelimit.param().abi(), core::mem::transmute(pivotstart), core::mem::transmute(pivotsource), core::mem::transmute(pivottarget), pivotlimit, reset, flush, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_countAliases(alias: P0, perrorcode: *mut UErrorCode) -> u16 @@ -2980,12 +2938,12 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_detectUnicodeSignature(source : windows_core::PCSTR, sourcelength : i32, signaturelength : *mut i32, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_detectUnicodeSignature(source.param().abi(), core::mem::transmute(sourcelength), core::mem::transmute(signaturelength), core::mem::transmute(perrorcode)) + ucnv_detectUnicodeSignature(source.param().abi(), sourcelength, core::mem::transmute(signaturelength), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_fixFileSeparator(cnv: *const UConverter, source: *mut u16, sourcelen: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_fixFileSeparator(cnv : *const UConverter, source : *mut u16, sourcelen : i32)); - ucnv_fixFileSeparator(core::mem::transmute(cnv), core::mem::transmute(source), core::mem::transmute(sourcelen)) + ucnv_fixFileSeparator(cnv, core::mem::transmute(source), sourcelen) } #[inline] pub unsafe fn ucnv_flushCache() -> i32 { @@ -2999,7 +2957,7 @@ where P4: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_fromAlgorithmic(cnv : *mut UConverter, algorithmictype : UConverterType, target : windows_core::PCSTR, targetcapacity : i32, source : windows_core::PCSTR, sourcelength : i32, perrorcode : *mut UErrorCode) -> i32); - ucnv_fromAlgorithmic(core::mem::transmute(cnv), core::mem::transmute(algorithmictype), target.param().abi(), core::mem::transmute(targetcapacity), source.param().abi(), core::mem::transmute(sourcelength), core::mem::transmute(perrorcode)) + ucnv_fromAlgorithmic(core::mem::transmute(cnv), algorithmictype, target.param().abi(), targetcapacity, source.param().abi(), sourcelength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_fromUChars(cnv: *mut UConverter, dest: P1, destcapacity: i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -3007,12 +2965,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_fromUChars(cnv : *mut UConverter, dest : windows_core::PCSTR, destcapacity : i32, src : *const u16, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucnv_fromUChars(core::mem::transmute(cnv), dest.param().abi(), core::mem::transmute(destcapacity), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucnv_fromUChars(core::mem::transmute(cnv), dest.param().abi(), destcapacity, src, srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_fromUCountPending(cnv: *const UConverter, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_fromUCountPending(cnv : *const UConverter, status : *mut UErrorCode) -> i32); - ucnv_fromUCountPending(core::mem::transmute(cnv), core::mem::transmute(status)) + ucnv_fromUCountPending(cnv, core::mem::transmute(status)) } #[inline] pub unsafe fn ucnv_fromUnicode(converter: *mut UConverter, target: *mut *mut i8, targetlimit: P2, source: *const *const u16, sourcelimit: *const u16, offsets: *mut i32, flush: i8, err: *mut UErrorCode) @@ -3020,7 +2978,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_fromUnicode(converter : *mut UConverter, target : *mut *mut i8, targetlimit : windows_core::PCSTR, source : *const *const u16, sourcelimit : *const u16, offsets : *mut i32, flush : i8, err : *mut UErrorCode)); - ucnv_fromUnicode(core::mem::transmute(converter), core::mem::transmute(target), targetlimit.param().abi(), core::mem::transmute(source), core::mem::transmute(sourcelimit), core::mem::transmute(offsets), core::mem::transmute(flush), core::mem::transmute(err)) + ucnv_fromUnicode(core::mem::transmute(converter), core::mem::transmute(target), targetlimit.param().abi(), source, sourcelimit, core::mem::transmute(offsets), flush, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getAlias(alias: P0, n: u16, perrorcode: *mut UErrorCode) -> windows_core::PCSTR @@ -3028,7 +2986,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getAlias(alias : windows_core::PCSTR, n : u16, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_getAlias(alias.param().abi(), core::mem::transmute(n), core::mem::transmute(perrorcode)) + ucnv_getAlias(alias.param().abi(), n, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_getAliases(alias: P0, aliases: *const *const i8, perrorcode: *mut UErrorCode) @@ -3036,17 +2994,17 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getAliases(alias : windows_core::PCSTR, aliases : *const *const i8, perrorcode : *mut UErrorCode)); - ucnv_getAliases(alias.param().abi(), core::mem::transmute(aliases), core::mem::transmute(perrorcode)) + ucnv_getAliases(alias.param().abi(), aliases, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_getAvailableName(n: i32) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getAvailableName(n : i32) -> windows_core::PCSTR); - ucnv_getAvailableName(core::mem::transmute(n)) + ucnv_getAvailableName(n) } #[inline] pub unsafe fn ucnv_getCCSID(converter: *const UConverter, err: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getCCSID(converter : *const UConverter, err : *mut UErrorCode) -> i32); - ucnv_getCCSID(core::mem::transmute(converter), core::mem::transmute(err)) + ucnv_getCCSID(converter, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getCanonicalName(alias: P0, standard: P1, perrorcode: *mut UErrorCode) -> windows_core::PCSTR @@ -3068,12 +3026,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getDisplayName(converter : *const UConverter, displaylocale : windows_core::PCSTR, displayname : *mut u16, displaynamecapacity : i32, err : *mut UErrorCode) -> i32); - ucnv_getDisplayName(core::mem::transmute(converter), displaylocale.param().abi(), core::mem::transmute(displayname), core::mem::transmute(displaynamecapacity), core::mem::transmute(err)) + ucnv_getDisplayName(converter, displaylocale.param().abi(), core::mem::transmute(displayname), displaynamecapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getFromUCallBack(converter: *const UConverter, action: *mut UConverterFromUCallback, context: *const *const core::ffi::c_void) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getFromUCallBack(converter : *const UConverter, action : *mut UConverterFromUCallback, context : *const *const core::ffi::c_void)); - ucnv_getFromUCallBack(core::mem::transmute(converter), core::mem::transmute(action), core::mem::transmute(context)) + ucnv_getFromUCallBack(converter, core::mem::transmute(action), context) } #[inline] pub unsafe fn ucnv_getInvalidChars(converter: *const UConverter, errbytes: P1, len: *mut i8, err: *mut UErrorCode) @@ -3081,27 +3039,27 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getInvalidChars(converter : *const UConverter, errbytes : windows_core::PCSTR, len : *mut i8, err : *mut UErrorCode)); - ucnv_getInvalidChars(core::mem::transmute(converter), errbytes.param().abi(), core::mem::transmute(len), core::mem::transmute(err)) + ucnv_getInvalidChars(converter, errbytes.param().abi(), core::mem::transmute(len), core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getInvalidUChars(converter: *const UConverter, erruchars: *mut u16, len: *mut i8, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getInvalidUChars(converter : *const UConverter, erruchars : *mut u16, len : *mut i8, err : *mut UErrorCode)); - ucnv_getInvalidUChars(core::mem::transmute(converter), core::mem::transmute(erruchars), core::mem::transmute(len), core::mem::transmute(err)) + ucnv_getInvalidUChars(converter, core::mem::transmute(erruchars), core::mem::transmute(len), core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getMaxCharSize(converter: *const UConverter) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getMaxCharSize(converter : *const UConverter) -> i8); - ucnv_getMaxCharSize(core::mem::transmute(converter)) + ucnv_getMaxCharSize(converter) } #[inline] pub unsafe fn ucnv_getMinCharSize(converter: *const UConverter) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getMinCharSize(converter : *const UConverter) -> i8); - ucnv_getMinCharSize(core::mem::transmute(converter)) + ucnv_getMinCharSize(converter) } #[inline] pub unsafe fn ucnv_getName(converter: *const UConverter, err: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getName(converter : *const UConverter, err : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_getName(core::mem::transmute(converter), core::mem::transmute(err)) + ucnv_getName(converter, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getNextUChar(converter: *mut UConverter, source: *const *const i8, sourcelimit: P2, err: *mut UErrorCode) -> i32 @@ -3109,17 +3067,17 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getNextUChar(converter : *mut UConverter, source : *const *const i8, sourcelimit : windows_core::PCSTR, err : *mut UErrorCode) -> i32); - ucnv_getNextUChar(core::mem::transmute(converter), core::mem::transmute(source), sourcelimit.param().abi(), core::mem::transmute(err)) + ucnv_getNextUChar(core::mem::transmute(converter), source, sourcelimit.param().abi(), core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getPlatform(converter: *const UConverter, err: *mut UErrorCode) -> UConverterPlatform { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getPlatform(converter : *const UConverter, err : *mut UErrorCode) -> UConverterPlatform); - ucnv_getPlatform(core::mem::transmute(converter), core::mem::transmute(err)) + ucnv_getPlatform(converter, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getStandard(n: u16, perrorcode: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getStandard(n : u16, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_getStandard(core::mem::transmute(n), core::mem::transmute(perrorcode)) + ucnv_getStandard(n, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_getStandardName(name: P0, standard: P1, perrorcode: *mut UErrorCode) -> windows_core::PCSTR @@ -3133,7 +3091,7 @@ where #[inline] pub unsafe fn ucnv_getStarters(converter: *const UConverter, starters: *mut i8, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getStarters(converter : *const UConverter, starters : *mut i8, err : *mut UErrorCode)); - ucnv_getStarters(core::mem::transmute(converter), core::mem::transmute(starters), core::mem::transmute(err)) + ucnv_getStarters(converter, core::mem::transmute(starters), core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getSubstChars(converter: *const UConverter, subchars: P1, len: *mut i8, err: *mut UErrorCode) @@ -3141,27 +3099,27 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getSubstChars(converter : *const UConverter, subchars : windows_core::PCSTR, len : *mut i8, err : *mut UErrorCode)); - ucnv_getSubstChars(core::mem::transmute(converter), subchars.param().abi(), core::mem::transmute(len), core::mem::transmute(err)) + ucnv_getSubstChars(converter, subchars.param().abi(), core::mem::transmute(len), core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_getToUCallBack(converter: *const UConverter, action: *mut UConverterToUCallback, context: *const *const core::ffi::c_void) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getToUCallBack(converter : *const UConverter, action : *mut UConverterToUCallback, context : *const *const core::ffi::c_void)); - ucnv_getToUCallBack(core::mem::transmute(converter), core::mem::transmute(action), core::mem::transmute(context)) + ucnv_getToUCallBack(converter, core::mem::transmute(action), context) } #[inline] pub unsafe fn ucnv_getType(converter: *const UConverter) -> UConverterType { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getType(converter : *const UConverter) -> UConverterType); - ucnv_getType(core::mem::transmute(converter)) + ucnv_getType(converter) } #[inline] pub unsafe fn ucnv_getUnicodeSet(cnv: *const UConverter, setfillin: *mut USet, whichset: UConverterUnicodeSet, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_getUnicodeSet(cnv : *const UConverter, setfillin : *mut USet, whichset : UConverterUnicodeSet, perrorcode : *mut UErrorCode)); - ucnv_getUnicodeSet(core::mem::transmute(cnv), core::mem::transmute(setfillin), core::mem::transmute(whichset), core::mem::transmute(perrorcode)) + ucnv_getUnicodeSet(cnv, core::mem::transmute(setfillin), whichset, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_isAmbiguous(cnv: *const UConverter) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_isAmbiguous(cnv : *const UConverter) -> i8); - ucnv_isAmbiguous(core::mem::transmute(cnv)) + ucnv_isAmbiguous(cnv) } #[inline] pub unsafe fn ucnv_isFixedWidth(cnv: *mut UConverter, status: *mut UErrorCode) -> i8 { @@ -3184,7 +3142,7 @@ pub unsafe fn ucnv_openAllNames(perrorcode: *mut UErrorCode) -> *mut UEnumeratio #[inline] pub unsafe fn ucnv_openCCSID(codepage: i32, platform: UConverterPlatform, err: *mut UErrorCode) -> *mut UConverter { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_openCCSID(codepage : i32, platform : UConverterPlatform, err : *mut UErrorCode) -> *mut UConverter); - ucnv_openCCSID(core::mem::transmute(codepage), core::mem::transmute(platform), core::mem::transmute(err)) + ucnv_openCCSID(codepage, platform, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_openPackage(packagename: P0, convertername: P1, err: *mut UErrorCode) -> *mut UConverter @@ -3207,7 +3165,7 @@ where #[inline] pub unsafe fn ucnv_openU(name: *const u16, err: *mut UErrorCode) -> *mut UConverter { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_openU(name : *const u16, err : *mut UErrorCode) -> *mut UConverter); - ucnv_openU(core::mem::transmute(name), core::mem::transmute(err)) + ucnv_openU(name, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_reset(converter: *mut UConverter) { @@ -3227,7 +3185,7 @@ pub unsafe fn ucnv_resetToUnicode(converter: *mut UConverter) { #[inline] pub unsafe fn ucnv_safeClone(cnv: *const UConverter, stackbuffer: *mut core::ffi::c_void, pbuffersize: *mut i32, status: *mut UErrorCode) -> *mut UConverter { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_safeClone(cnv : *const UConverter, stackbuffer : *mut core::ffi::c_void, pbuffersize : *mut i32, status : *mut UErrorCode) -> *mut UConverter); - ucnv_safeClone(core::mem::transmute(cnv), core::mem::transmute(stackbuffer), core::mem::transmute(pbuffersize), core::mem::transmute(status)) + ucnv_safeClone(cnv, core::mem::transmute(stackbuffer), core::mem::transmute(pbuffersize), core::mem::transmute(status)) } #[inline] pub unsafe fn ucnv_setDefaultName(name: P0) @@ -3240,12 +3198,12 @@ where #[inline] pub unsafe fn ucnv_setFallback(cnv: *mut UConverter, usesfallback: i8) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_setFallback(cnv : *mut UConverter, usesfallback : i8)); - ucnv_setFallback(core::mem::transmute(cnv), core::mem::transmute(usesfallback)) + ucnv_setFallback(core::mem::transmute(cnv), usesfallback) } #[inline] pub unsafe fn ucnv_setFromUCallBack(converter: *mut UConverter, newaction: UConverterFromUCallback, newcontext: *const core::ffi::c_void, oldaction: *mut UConverterFromUCallback, oldcontext: *const *const core::ffi::c_void, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_setFromUCallBack(converter : *mut UConverter, newaction : UConverterFromUCallback, newcontext : *const core::ffi::c_void, oldaction : *mut UConverterFromUCallback, oldcontext : *const *const core::ffi::c_void, err : *mut UErrorCode)); - ucnv_setFromUCallBack(core::mem::transmute(converter), core::mem::transmute(newaction), core::mem::transmute(newcontext), core::mem::transmute(oldaction), core::mem::transmute(oldcontext), core::mem::transmute(err)) + ucnv_setFromUCallBack(core::mem::transmute(converter), newaction, newcontext, core::mem::transmute(oldaction), oldcontext, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_setSubstChars(converter: *mut UConverter, subchars: P1, len: i8, err: *mut UErrorCode) @@ -3253,17 +3211,17 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_setSubstChars(converter : *mut UConverter, subchars : windows_core::PCSTR, len : i8, err : *mut UErrorCode)); - ucnv_setSubstChars(core::mem::transmute(converter), subchars.param().abi(), core::mem::transmute(len), core::mem::transmute(err)) + ucnv_setSubstChars(core::mem::transmute(converter), subchars.param().abi(), len, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_setSubstString(cnv: *mut UConverter, s: *const u16, length: i32, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_setSubstString(cnv : *mut UConverter, s : *const u16, length : i32, err : *mut UErrorCode)); - ucnv_setSubstString(core::mem::transmute(cnv), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(err)) + ucnv_setSubstString(core::mem::transmute(cnv), s, length, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_setToUCallBack(converter: *mut UConverter, newaction: UConverterToUCallback, newcontext: *const core::ffi::c_void, oldaction: *mut UConverterToUCallback, oldcontext: *const *const core::ffi::c_void, err: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_setToUCallBack(converter : *mut UConverter, newaction : UConverterToUCallback, newcontext : *const core::ffi::c_void, oldaction : *mut UConverterToUCallback, oldcontext : *const *const core::ffi::c_void, err : *mut UErrorCode)); - ucnv_setToUCallBack(core::mem::transmute(converter), core::mem::transmute(newaction), core::mem::transmute(newcontext), core::mem::transmute(oldaction), core::mem::transmute(oldcontext), core::mem::transmute(err)) + ucnv_setToUCallBack(core::mem::transmute(converter), newaction, newcontext, core::mem::transmute(oldaction), oldcontext, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_toAlgorithmic(algorithmictype: UConverterType, cnv: *mut UConverter, target: P2, targetcapacity: i32, source: P4, sourcelength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -3272,7 +3230,7 @@ where P4: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_toAlgorithmic(algorithmictype : UConverterType, cnv : *mut UConverter, target : windows_core::PCSTR, targetcapacity : i32, source : windows_core::PCSTR, sourcelength : i32, perrorcode : *mut UErrorCode) -> i32); - ucnv_toAlgorithmic(core::mem::transmute(algorithmictype), core::mem::transmute(cnv), target.param().abi(), core::mem::transmute(targetcapacity), source.param().abi(), core::mem::transmute(sourcelength), core::mem::transmute(perrorcode)) + ucnv_toAlgorithmic(algorithmictype, core::mem::transmute(cnv), target.param().abi(), targetcapacity, source.param().abi(), sourcelength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_toUChars(cnv: *mut UConverter, dest: *mut u16, destcapacity: i32, src: P3, srclength: i32, perrorcode: *mut UErrorCode) -> i32 @@ -3280,12 +3238,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_toUChars(cnv : *mut UConverter, dest : *mut u16, destcapacity : i32, src : windows_core::PCSTR, srclength : i32, perrorcode : *mut UErrorCode) -> i32); - ucnv_toUChars(core::mem::transmute(cnv), core::mem::transmute(dest), core::mem::transmute(destcapacity), src.param().abi(), core::mem::transmute(srclength), core::mem::transmute(perrorcode)) + ucnv_toUChars(core::mem::transmute(cnv), core::mem::transmute(dest), destcapacity, src.param().abi(), srclength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucnv_toUCountPending(cnv: *const UConverter, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_toUCountPending(cnv : *const UConverter, status : *mut UErrorCode) -> i32); - ucnv_toUCountPending(core::mem::transmute(cnv), core::mem::transmute(status)) + ucnv_toUCountPending(cnv, core::mem::transmute(status)) } #[inline] pub unsafe fn ucnv_toUnicode(converter: *mut UConverter, target: *mut *mut u16, targetlimit: *const u16, source: *const *const i8, sourcelimit: P4, offsets: *mut i32, flush: i8, err: *mut UErrorCode) @@ -3293,12 +3251,12 @@ where P4: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_toUnicode(converter : *mut UConverter, target : *mut *mut u16, targetlimit : *const u16, source : *const *const i8, sourcelimit : windows_core::PCSTR, offsets : *mut i32, flush : i8, err : *mut UErrorCode)); - ucnv_toUnicode(core::mem::transmute(converter), core::mem::transmute(target), core::mem::transmute(targetlimit), core::mem::transmute(source), sourcelimit.param().abi(), core::mem::transmute(offsets), core::mem::transmute(flush), core::mem::transmute(err)) + ucnv_toUnicode(core::mem::transmute(converter), core::mem::transmute(target), targetlimit, source, sourcelimit.param().abi(), core::mem::transmute(offsets), flush, core::mem::transmute(err)) } #[inline] pub unsafe fn ucnv_usesFallback(cnv: *const UConverter) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnv_usesFallback(cnv : *const UConverter) -> i8); - ucnv_usesFallback(core::mem::transmute(cnv)) + ucnv_usesFallback(cnv) } #[inline] pub unsafe fn ucnvsel_close(sel: *mut UConverterSelector) { @@ -3308,17 +3266,17 @@ pub unsafe fn ucnvsel_close(sel: *mut UConverterSelector) { #[inline] pub unsafe fn ucnvsel_open(converterlist: *const *const i8, converterlistsize: i32, excludedcodepoints: *const USet, whichset: UConverterUnicodeSet, status: *mut UErrorCode) -> *mut UConverterSelector { windows_targets::link!("icuuc.dll" "cdecl" fn ucnvsel_open(converterlist : *const *const i8, converterlistsize : i32, excludedcodepoints : *const USet, whichset : UConverterUnicodeSet, status : *mut UErrorCode) -> *mut UConverterSelector); - ucnvsel_open(core::mem::transmute(converterlist), core::mem::transmute(converterlistsize), core::mem::transmute(excludedcodepoints), core::mem::transmute(whichset), core::mem::transmute(status)) + ucnvsel_open(converterlist, converterlistsize, excludedcodepoints, whichset, core::mem::transmute(status)) } #[inline] pub unsafe fn ucnvsel_openFromSerialized(buffer: *const core::ffi::c_void, length: i32, status: *mut UErrorCode) -> *mut UConverterSelector { windows_targets::link!("icuuc.dll" "cdecl" fn ucnvsel_openFromSerialized(buffer : *const core::ffi::c_void, length : i32, status : *mut UErrorCode) -> *mut UConverterSelector); - ucnvsel_openFromSerialized(core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(status)) + ucnvsel_openFromSerialized(buffer, length, core::mem::transmute(status)) } #[inline] pub unsafe fn ucnvsel_selectForString(sel: *const UConverterSelector, s: *const u16, length: i32, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuuc.dll" "cdecl" fn ucnvsel_selectForString(sel : *const UConverterSelector, s : *const u16, length : i32, status : *mut UErrorCode) -> *mut UEnumeration); - ucnvsel_selectForString(core::mem::transmute(sel), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(status)) + ucnvsel_selectForString(sel, s, length, core::mem::transmute(status)) } #[inline] pub unsafe fn ucnvsel_selectForUTF8(sel: *const UConverterSelector, s: P1, length: i32, status: *mut UErrorCode) -> *mut UEnumeration @@ -3326,17 +3284,17 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucnvsel_selectForUTF8(sel : *const UConverterSelector, s : windows_core::PCSTR, length : i32, status : *mut UErrorCode) -> *mut UEnumeration); - ucnvsel_selectForUTF8(core::mem::transmute(sel), s.param().abi(), core::mem::transmute(length), core::mem::transmute(status)) + ucnvsel_selectForUTF8(sel, s.param().abi(), length, core::mem::transmute(status)) } #[inline] pub unsafe fn ucnvsel_serialize(sel: *const UConverterSelector, buffer: *mut core::ffi::c_void, buffercapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucnvsel_serialize(sel : *const UConverterSelector, buffer : *mut core::ffi::c_void, buffercapacity : i32, status : *mut UErrorCode) -> i32); - ucnvsel_serialize(core::mem::transmute(sel), core::mem::transmute(buffer), core::mem::transmute(buffercapacity), core::mem::transmute(status)) + ucnvsel_serialize(sel, core::mem::transmute(buffer), buffercapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_cloneBinary(coll: *const UCollator, buffer: *mut u8, capacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_cloneBinary(coll : *const UCollator, buffer : *mut u8, capacity : i32, status : *mut UErrorCode) -> i32); - ucol_cloneBinary(core::mem::transmute(coll), core::mem::transmute(buffer), core::mem::transmute(capacity), core::mem::transmute(status)) + ucol_cloneBinary(coll, core::mem::transmute(buffer), capacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_close(coll: *mut UCollator) { @@ -3356,27 +3314,27 @@ pub unsafe fn ucol_countAvailable() -> i32 { #[inline] pub unsafe fn ucol_equal(coll: *const UCollator, source: *const u16, sourcelength: i32, target: *const u16, targetlength: i32) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_equal(coll : *const UCollator, source : *const u16, sourcelength : i32, target : *const u16, targetlength : i32) -> i8); - ucol_equal(core::mem::transmute(coll), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(target), core::mem::transmute(targetlength)) + ucol_equal(coll, source, sourcelength, target, targetlength) } #[inline] pub unsafe fn ucol_getAttribute(coll: *const UCollator, attr: UColAttribute, status: *mut UErrorCode) -> UColAttributeValue { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getAttribute(coll : *const UCollator, attr : UColAttribute, status : *mut UErrorCode) -> UColAttributeValue); - ucol_getAttribute(core::mem::transmute(coll), core::mem::transmute(attr), core::mem::transmute(status)) + ucol_getAttribute(coll, attr, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getAvailable(localeindex: i32) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getAvailable(localeindex : i32) -> windows_core::PCSTR); - ucol_getAvailable(core::mem::transmute(localeindex)) + ucol_getAvailable(localeindex) } #[inline] pub unsafe fn ucol_getBound(source: *const u8, sourcelength: i32, boundtype: UColBoundMode, nooflevels: u32, result: *mut u8, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getBound(source : *const u8, sourcelength : i32, boundtype : UColBoundMode, nooflevels : u32, result : *mut u8, resultlength : i32, status : *mut UErrorCode) -> i32); - ucol_getBound(core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(boundtype), core::mem::transmute(nooflevels), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + ucol_getBound(source, sourcelength, boundtype, nooflevels, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getContractionsAndExpansions(coll: *const UCollator, contractions: *mut USet, expansions: *mut USet, addprefixes: i8, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getContractionsAndExpansions(coll : *const UCollator, contractions : *mut USet, expansions : *mut USet, addprefixes : i8, status : *mut UErrorCode)); - ucol_getContractionsAndExpansions(core::mem::transmute(coll), core::mem::transmute(contractions), core::mem::transmute(expansions), core::mem::transmute(addprefixes), core::mem::transmute(status)) + ucol_getContractionsAndExpansions(coll, core::mem::transmute(contractions), core::mem::transmute(expansions), addprefixes, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getDisplayName(objloc: P0, disploc: P1, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 @@ -3385,12 +3343,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getDisplayName(objloc : windows_core::PCSTR, disploc : windows_core::PCSTR, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - ucol_getDisplayName(objloc.param().abi(), disploc.param().abi(), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + ucol_getDisplayName(objloc.param().abi(), disploc.param().abi(), core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getEquivalentReorderCodes(reordercode: i32, dest: *mut i32, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getEquivalentReorderCodes(reordercode : i32, dest : *mut i32, destcapacity : i32, perrorcode : *mut UErrorCode) -> i32); - ucol_getEquivalentReorderCodes(core::mem::transmute(reordercode), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(perrorcode)) + ucol_getEquivalentReorderCodes(reordercode, core::mem::transmute(dest), destcapacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucol_getFunctionalEquivalent(result: P0, resultcapacity: i32, keyword: P2, locale: P3, isavailable: *mut i8, status: *mut UErrorCode) -> i32 @@ -3400,7 +3358,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getFunctionalEquivalent(result : windows_core::PCSTR, resultcapacity : i32, keyword : windows_core::PCSTR, locale : windows_core::PCSTR, isavailable : *mut i8, status : *mut UErrorCode) -> i32); - ucol_getFunctionalEquivalent(result.param().abi(), core::mem::transmute(resultcapacity), keyword.param().abi(), locale.param().abi(), core::mem::transmute(isavailable), core::mem::transmute(status)) + ucol_getFunctionalEquivalent(result.param().abi(), resultcapacity, keyword.param().abi(), locale.param().abi(), core::mem::transmute(isavailable), core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getKeywordValues(keyword: P0, status: *mut UErrorCode) -> *mut UEnumeration @@ -3417,7 +3375,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getKeywordValuesForLocale(key : windows_core::PCSTR, locale : windows_core::PCSTR, commonlyused : i8, status : *mut UErrorCode) -> *mut UEnumeration); - ucol_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), core::mem::transmute(commonlyused), core::mem::transmute(status)) + ucol_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), commonlyused, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getKeywords(status: *mut UErrorCode) -> *mut UEnumeration { @@ -3427,87 +3385,87 @@ pub unsafe fn ucol_getKeywords(status: *mut UErrorCode) -> *mut UEnumeration { #[inline] pub unsafe fn ucol_getLocaleByType(coll: *const UCollator, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getLocaleByType(coll : *const UCollator, r#type : ULocDataLocaleType, status : *mut UErrorCode) -> windows_core::PCSTR); - ucol_getLocaleByType(core::mem::transmute(coll), core::mem::transmute(r#type), core::mem::transmute(status)) + ucol_getLocaleByType(coll, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getMaxExpansion(elems: *const UCollationElements, order: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getMaxExpansion(elems : *const UCollationElements, order : i32) -> i32); - ucol_getMaxExpansion(core::mem::transmute(elems), core::mem::transmute(order)) + ucol_getMaxExpansion(elems, order) } #[inline] pub unsafe fn ucol_getMaxVariable(coll: *const UCollator) -> UColReorderCode { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getMaxVariable(coll : *const UCollator) -> UColReorderCode); - ucol_getMaxVariable(core::mem::transmute(coll)) + ucol_getMaxVariable(coll) } #[inline] pub unsafe fn ucol_getOffset(elems: *const UCollationElements) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getOffset(elems : *const UCollationElements) -> i32); - ucol_getOffset(core::mem::transmute(elems)) + ucol_getOffset(elems) } #[inline] pub unsafe fn ucol_getReorderCodes(coll: *const UCollator, dest: *mut i32, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getReorderCodes(coll : *const UCollator, dest : *mut i32, destcapacity : i32, perrorcode : *mut UErrorCode) -> i32); - ucol_getReorderCodes(core::mem::transmute(coll), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(perrorcode)) + ucol_getReorderCodes(coll, core::mem::transmute(dest), destcapacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucol_getRules(coll: *const UCollator, length: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getRules(coll : *const UCollator, length : *mut i32) -> *mut u16); - ucol_getRules(core::mem::transmute(coll), core::mem::transmute(length)) + ucol_getRules(coll, core::mem::transmute(length)) } #[inline] pub unsafe fn ucol_getRulesEx(coll: *const UCollator, delta: UColRuleOption, buffer: *mut u16, bufferlen: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getRulesEx(coll : *const UCollator, delta : UColRuleOption, buffer : *mut u16, bufferlen : i32) -> i32); - ucol_getRulesEx(core::mem::transmute(coll), core::mem::transmute(delta), core::mem::transmute(buffer), core::mem::transmute(bufferlen)) + ucol_getRulesEx(coll, delta, core::mem::transmute(buffer), bufferlen) } #[inline] pub unsafe fn ucol_getSortKey(coll: *const UCollator, source: *const u16, sourcelength: i32, result: *mut u8, resultlength: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getSortKey(coll : *const UCollator, source : *const u16, sourcelength : i32, result : *mut u8, resultlength : i32) -> i32); - ucol_getSortKey(core::mem::transmute(coll), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(result), core::mem::transmute(resultlength)) + ucol_getSortKey(coll, source, sourcelength, core::mem::transmute(result), resultlength) } #[inline] pub unsafe fn ucol_getStrength(coll: *const UCollator) -> UColAttributeValue { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getStrength(coll : *const UCollator) -> UColAttributeValue); - ucol_getStrength(core::mem::transmute(coll)) + ucol_getStrength(coll) } #[inline] pub unsafe fn ucol_getTailoredSet(coll: *const UCollator, status: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getTailoredSet(coll : *const UCollator, status : *mut UErrorCode) -> *mut USet); - ucol_getTailoredSet(core::mem::transmute(coll), core::mem::transmute(status)) + ucol_getTailoredSet(coll, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getUCAVersion(coll: *const UCollator, info: *mut u8) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getUCAVersion(coll : *const UCollator, info : *mut u8)); - ucol_getUCAVersion(core::mem::transmute(coll), core::mem::transmute(info)) + ucol_getUCAVersion(coll, core::mem::transmute(info)) } #[inline] pub unsafe fn ucol_getVariableTop(coll: *const UCollator, status: *mut UErrorCode) -> u32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getVariableTop(coll : *const UCollator, status : *mut UErrorCode) -> u32); - ucol_getVariableTop(core::mem::transmute(coll), core::mem::transmute(status)) + ucol_getVariableTop(coll, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_getVersion(coll: *const UCollator, info: *mut u8) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_getVersion(coll : *const UCollator, info : *mut u8)); - ucol_getVersion(core::mem::transmute(coll), core::mem::transmute(info)) + ucol_getVersion(coll, core::mem::transmute(info)) } #[inline] pub unsafe fn ucol_greater(coll: *const UCollator, source: *const u16, sourcelength: i32, target: *const u16, targetlength: i32) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_greater(coll : *const UCollator, source : *const u16, sourcelength : i32, target : *const u16, targetlength : i32) -> i8); - ucol_greater(core::mem::transmute(coll), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(target), core::mem::transmute(targetlength)) + ucol_greater(coll, source, sourcelength, target, targetlength) } #[inline] pub unsafe fn ucol_greaterOrEqual(coll: *const UCollator, source: *const u16, sourcelength: i32, target: *const u16, targetlength: i32) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_greaterOrEqual(coll : *const UCollator, source : *const u16, sourcelength : i32, target : *const u16, targetlength : i32) -> i8); - ucol_greaterOrEqual(core::mem::transmute(coll), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(target), core::mem::transmute(targetlength)) + ucol_greaterOrEqual(coll, source, sourcelength, target, targetlength) } #[inline] pub unsafe fn ucol_keyHashCode(key: *const u8, length: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_keyHashCode(key : *const u8, length : i32) -> i32); - ucol_keyHashCode(core::mem::transmute(key), core::mem::transmute(length)) + ucol_keyHashCode(key, length) } #[inline] pub unsafe fn ucol_mergeSortkeys(src1: *const u8, src1length: i32, src2: *const u8, src2length: i32, dest: *mut u8, destcapacity: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_mergeSortkeys(src1 : *const u8, src1length : i32, src2 : *const u8, src2length : i32, dest : *mut u8, destcapacity : i32) -> i32); - ucol_mergeSortkeys(core::mem::transmute(src1), core::mem::transmute(src1length), core::mem::transmute(src2), core::mem::transmute(src2length), core::mem::transmute(dest), core::mem::transmute(destcapacity)) + ucol_mergeSortkeys(src1, src1length, src2, src2length, core::mem::transmute(dest), destcapacity) } #[inline] pub unsafe fn ucol_next(elems: *mut UCollationElements, status: *mut UErrorCode) -> i32 { @@ -3517,7 +3475,7 @@ pub unsafe fn ucol_next(elems: *mut UCollationElements, status: *mut UErrorCode) #[inline] pub unsafe fn ucol_nextSortKeyPart(coll: *const UCollator, iter: *mut UCharIterator, state: *mut u32, dest: *mut u8, count: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_nextSortKeyPart(coll : *const UCollator, iter : *mut UCharIterator, state : *mut u32, dest : *mut u8, count : i32, status : *mut UErrorCode) -> i32); - ucol_nextSortKeyPart(core::mem::transmute(coll), core::mem::transmute(iter), core::mem::transmute(state), core::mem::transmute(dest), core::mem::transmute(count), core::mem::transmute(status)) + ucol_nextSortKeyPart(coll, core::mem::transmute(iter), core::mem::transmute(state), core::mem::transmute(dest), count, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_open(loc: P0, status: *mut UErrorCode) -> *mut UCollator @@ -3535,17 +3493,17 @@ pub unsafe fn ucol_openAvailableLocales(status: *mut UErrorCode) -> *mut UEnumer #[inline] pub unsafe fn ucol_openBinary(bin: *const u8, length: i32, base: *const UCollator, status: *mut UErrorCode) -> *mut UCollator { windows_targets::link!("icuin.dll" "cdecl" fn ucol_openBinary(bin : *const u8, length : i32, base : *const UCollator, status : *mut UErrorCode) -> *mut UCollator); - ucol_openBinary(core::mem::transmute(bin), core::mem::transmute(length), core::mem::transmute(base), core::mem::transmute(status)) + ucol_openBinary(bin, length, base, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_openElements(coll: *const UCollator, text: *const u16, textlength: i32, status: *mut UErrorCode) -> *mut UCollationElements { windows_targets::link!("icuin.dll" "cdecl" fn ucol_openElements(coll : *const UCollator, text : *const u16, textlength : i32, status : *mut UErrorCode) -> *mut UCollationElements); - ucol_openElements(core::mem::transmute(coll), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + ucol_openElements(coll, text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_openRules(rules: *const u16, ruleslength: i32, normalizationmode: UColAttributeValue, strength: UColAttributeValue, parseerror: *mut UParseError, status: *mut UErrorCode) -> *mut UCollator { windows_targets::link!("icuin.dll" "cdecl" fn ucol_openRules(rules : *const u16, ruleslength : i32, normalizationmode : UColAttributeValue, strength : UColAttributeValue, parseerror : *mut UParseError, status : *mut UErrorCode) -> *mut UCollator); - ucol_openRules(core::mem::transmute(rules), core::mem::transmute(ruleslength), core::mem::transmute(normalizationmode), core::mem::transmute(strength), core::mem::transmute(parseerror), core::mem::transmute(status)) + ucol_openRules(rules, ruleslength, normalizationmode, strength, core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_previous(elems: *mut UCollationElements, status: *mut UErrorCode) -> i32 { @@ -3555,7 +3513,7 @@ pub unsafe fn ucol_previous(elems: *mut UCollationElements, status: *mut UErrorC #[inline] pub unsafe fn ucol_primaryOrder(order: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_primaryOrder(order : i32) -> i32); - ucol_primaryOrder(core::mem::transmute(order)) + ucol_primaryOrder(order) } #[inline] pub unsafe fn ucol_reset(elems: *mut UCollationElements) { @@ -3565,52 +3523,52 @@ pub unsafe fn ucol_reset(elems: *mut UCollationElements) { #[inline] pub unsafe fn ucol_safeClone(coll: *const UCollator, stackbuffer: *mut core::ffi::c_void, pbuffersize: *mut i32, status: *mut UErrorCode) -> *mut UCollator { windows_targets::link!("icuin.dll" "cdecl" fn ucol_safeClone(coll : *const UCollator, stackbuffer : *mut core::ffi::c_void, pbuffersize : *mut i32, status : *mut UErrorCode) -> *mut UCollator); - ucol_safeClone(core::mem::transmute(coll), core::mem::transmute(stackbuffer), core::mem::transmute(pbuffersize), core::mem::transmute(status)) + ucol_safeClone(coll, core::mem::transmute(stackbuffer), core::mem::transmute(pbuffersize), core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_secondaryOrder(order: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_secondaryOrder(order : i32) -> i32); - ucol_secondaryOrder(core::mem::transmute(order)) + ucol_secondaryOrder(order) } #[inline] pub unsafe fn ucol_setAttribute(coll: *mut UCollator, attr: UColAttribute, value: UColAttributeValue, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_setAttribute(coll : *mut UCollator, attr : UColAttribute, value : UColAttributeValue, status : *mut UErrorCode)); - ucol_setAttribute(core::mem::transmute(coll), core::mem::transmute(attr), core::mem::transmute(value), core::mem::transmute(status)) + ucol_setAttribute(core::mem::transmute(coll), attr, value, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_setMaxVariable(coll: *mut UCollator, group: UColReorderCode, perrorcode: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_setMaxVariable(coll : *mut UCollator, group : UColReorderCode, perrorcode : *mut UErrorCode)); - ucol_setMaxVariable(core::mem::transmute(coll), core::mem::transmute(group), core::mem::transmute(perrorcode)) + ucol_setMaxVariable(core::mem::transmute(coll), group, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucol_setOffset(elems: *mut UCollationElements, offset: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_setOffset(elems : *mut UCollationElements, offset : i32, status : *mut UErrorCode)); - ucol_setOffset(core::mem::transmute(elems), core::mem::transmute(offset), core::mem::transmute(status)) + ucol_setOffset(core::mem::transmute(elems), offset, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_setReorderCodes(coll: *mut UCollator, reordercodes: *const i32, reordercodeslength: i32, perrorcode: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_setReorderCodes(coll : *mut UCollator, reordercodes : *const i32, reordercodeslength : i32, perrorcode : *mut UErrorCode)); - ucol_setReorderCodes(core::mem::transmute(coll), core::mem::transmute(reordercodes), core::mem::transmute(reordercodeslength), core::mem::transmute(perrorcode)) + ucol_setReorderCodes(core::mem::transmute(coll), reordercodes, reordercodeslength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucol_setStrength(coll: *mut UCollator, strength: UColAttributeValue) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_setStrength(coll : *mut UCollator, strength : UColAttributeValue)); - ucol_setStrength(core::mem::transmute(coll), core::mem::transmute(strength)) + ucol_setStrength(core::mem::transmute(coll), strength) } #[inline] pub unsafe fn ucol_setText(elems: *mut UCollationElements, text: *const u16, textlength: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn ucol_setText(elems : *mut UCollationElements, text : *const u16, textlength : i32, status : *mut UErrorCode)); - ucol_setText(core::mem::transmute(elems), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + ucol_setText(core::mem::transmute(elems), text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_strcoll(coll: *const UCollator, source: *const u16, sourcelength: i32, target: *const u16, targetlength: i32) -> UCollationResult { windows_targets::link!("icuin.dll" "cdecl" fn ucol_strcoll(coll : *const UCollator, source : *const u16, sourcelength : i32, target : *const u16, targetlength : i32) -> UCollationResult); - ucol_strcoll(core::mem::transmute(coll), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(target), core::mem::transmute(targetlength)) + ucol_strcoll(coll, source, sourcelength, target, targetlength) } #[inline] pub unsafe fn ucol_strcollIter(coll: *const UCollator, siter: *mut UCharIterator, titer: *mut UCharIterator, status: *mut UErrorCode) -> UCollationResult { windows_targets::link!("icuin.dll" "cdecl" fn ucol_strcollIter(coll : *const UCollator, siter : *mut UCharIterator, titer : *mut UCharIterator, status : *mut UErrorCode) -> UCollationResult); - ucol_strcollIter(core::mem::transmute(coll), core::mem::transmute(siter), core::mem::transmute(titer), core::mem::transmute(status)) + ucol_strcollIter(coll, core::mem::transmute(siter), core::mem::transmute(titer), core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_strcollUTF8(coll: *const UCollator, source: P1, sourcelength: i32, target: P3, targetlength: i32, status: *mut UErrorCode) -> UCollationResult @@ -3619,22 +3577,22 @@ where P3: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucol_strcollUTF8(coll : *const UCollator, source : windows_core::PCSTR, sourcelength : i32, target : windows_core::PCSTR, targetlength : i32, status : *mut UErrorCode) -> UCollationResult); - ucol_strcollUTF8(core::mem::transmute(coll), source.param().abi(), core::mem::transmute(sourcelength), target.param().abi(), core::mem::transmute(targetlength), core::mem::transmute(status)) + ucol_strcollUTF8(coll, source.param().abi(), sourcelength, target.param().abi(), targetlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ucol_tertiaryOrder(order: i32) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucol_tertiaryOrder(order : i32) -> i32); - ucol_tertiaryOrder(core::mem::transmute(order)) + ucol_tertiaryOrder(order) } #[inline] pub unsafe fn ucpmap_get(map: *const UCPMap, c: i32) -> u32 { windows_targets::link!("icu.dll" "cdecl" fn ucpmap_get(map : *const UCPMap, c : i32) -> u32); - ucpmap_get(core::mem::transmute(map), core::mem::transmute(c)) + ucpmap_get(map, c) } #[inline] pub unsafe fn ucpmap_getRange(map: *const UCPMap, start: i32, option: UCPMapRangeOption, surrogatevalue: u32, filter: *mut UCPMapValueFilter, context: *const core::ffi::c_void, pvalue: *mut u32) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucpmap_getRange(map : *const UCPMap, start : i32, option : UCPMapRangeOption, surrogatevalue : u32, filter : *mut UCPMapValueFilter, context : *const core::ffi::c_void, pvalue : *mut u32) -> i32); - ucpmap_getRange(core::mem::transmute(map), core::mem::transmute(start), core::mem::transmute(option), core::mem::transmute(surrogatevalue), core::mem::transmute(filter), core::mem::transmute(context), core::mem::transmute(pvalue)) + ucpmap_getRange(map, start, option, surrogatevalue, core::mem::transmute(filter), context, core::mem::transmute(pvalue)) } #[inline] pub unsafe fn ucptrie_close(trie: *mut UCPTrie) { @@ -3644,47 +3602,47 @@ pub unsafe fn ucptrie_close(trie: *mut UCPTrie) { #[inline] pub unsafe fn ucptrie_get(trie: *const UCPTrie, c: i32) -> u32 { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_get(trie : *const UCPTrie, c : i32) -> u32); - ucptrie_get(core::mem::transmute(trie), core::mem::transmute(c)) + ucptrie_get(trie, c) } #[inline] pub unsafe fn ucptrie_getRange(trie: *const UCPTrie, start: i32, option: UCPMapRangeOption, surrogatevalue: u32, filter: *mut UCPMapValueFilter, context: *const core::ffi::c_void, pvalue: *mut u32) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_getRange(trie : *const UCPTrie, start : i32, option : UCPMapRangeOption, surrogatevalue : u32, filter : *mut UCPMapValueFilter, context : *const core::ffi::c_void, pvalue : *mut u32) -> i32); - ucptrie_getRange(core::mem::transmute(trie), core::mem::transmute(start), core::mem::transmute(option), core::mem::transmute(surrogatevalue), core::mem::transmute(filter), core::mem::transmute(context), core::mem::transmute(pvalue)) + ucptrie_getRange(trie, start, option, surrogatevalue, core::mem::transmute(filter), context, core::mem::transmute(pvalue)) } #[inline] pub unsafe fn ucptrie_getType(trie: *const UCPTrie) -> UCPTrieType { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_getType(trie : *const UCPTrie) -> UCPTrieType); - ucptrie_getType(core::mem::transmute(trie)) + ucptrie_getType(trie) } #[inline] pub unsafe fn ucptrie_getValueWidth(trie: *const UCPTrie) -> UCPTrieValueWidth { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_getValueWidth(trie : *const UCPTrie) -> UCPTrieValueWidth); - ucptrie_getValueWidth(core::mem::transmute(trie)) + ucptrie_getValueWidth(trie) } #[inline] pub unsafe fn ucptrie_internalSmallIndex(trie: *const UCPTrie, c: i32) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_internalSmallIndex(trie : *const UCPTrie, c : i32) -> i32); - ucptrie_internalSmallIndex(core::mem::transmute(trie), core::mem::transmute(c)) + ucptrie_internalSmallIndex(trie, c) } #[inline] pub unsafe fn ucptrie_internalSmallU8Index(trie: *const UCPTrie, lt1: i32, t2: u8, t3: u8) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_internalSmallU8Index(trie : *const UCPTrie, lt1 : i32, t2 : u8, t3 : u8) -> i32); - ucptrie_internalSmallU8Index(core::mem::transmute(trie), core::mem::transmute(lt1), core::mem::transmute(t2), core::mem::transmute(t3)) + ucptrie_internalSmallU8Index(trie, lt1, t2, t3) } #[inline] pub unsafe fn ucptrie_internalU8PrevIndex(trie: *const UCPTrie, c: i32, start: *const u8, src: *const u8) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_internalU8PrevIndex(trie : *const UCPTrie, c : i32, start : *const u8, src : *const u8) -> i32); - ucptrie_internalU8PrevIndex(core::mem::transmute(trie), core::mem::transmute(c), core::mem::transmute(start), core::mem::transmute(src)) + ucptrie_internalU8PrevIndex(trie, c, start, src) } #[inline] pub unsafe fn ucptrie_openFromBinary(r#type: UCPTrieType, valuewidth: UCPTrieValueWidth, data: *const core::ffi::c_void, length: i32, pactuallength: *mut i32, perrorcode: *mut UErrorCode) -> *mut UCPTrie { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_openFromBinary(r#type : UCPTrieType, valuewidth : UCPTrieValueWidth, data : *const core::ffi::c_void, length : i32, pactuallength : *mut i32, perrorcode : *mut UErrorCode) -> *mut UCPTrie); - ucptrie_openFromBinary(core::mem::transmute(r#type), core::mem::transmute(valuewidth), core::mem::transmute(data), core::mem::transmute(length), core::mem::transmute(pactuallength), core::mem::transmute(perrorcode)) + ucptrie_openFromBinary(r#type, valuewidth, data, length, core::mem::transmute(pactuallength), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucptrie_toBinary(trie: *const UCPTrie, data: *mut core::ffi::c_void, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn ucptrie_toBinary(trie : *const UCPTrie, data : *mut core::ffi::c_void, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - ucptrie_toBinary(core::mem::transmute(trie), core::mem::transmute(data), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + ucptrie_toBinary(trie, core::mem::transmute(data), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucsdet_close(ucsd: *mut UCharsetDetector) { @@ -3704,37 +3662,37 @@ pub unsafe fn ucsdet_detectAll(ucsd: *mut UCharsetDetector, matchesfound: *mut i #[inline] pub unsafe fn ucsdet_enableInputFilter(ucsd: *mut UCharsetDetector, filter: i8) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_enableInputFilter(ucsd : *mut UCharsetDetector, filter : i8) -> i8); - ucsdet_enableInputFilter(core::mem::transmute(ucsd), core::mem::transmute(filter)) + ucsdet_enableInputFilter(core::mem::transmute(ucsd), filter) } #[inline] pub unsafe fn ucsdet_getAllDetectableCharsets(ucsd: *const UCharsetDetector, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_getAllDetectableCharsets(ucsd : *const UCharsetDetector, status : *mut UErrorCode) -> *mut UEnumeration); - ucsdet_getAllDetectableCharsets(core::mem::transmute(ucsd), core::mem::transmute(status)) + ucsdet_getAllDetectableCharsets(ucsd, core::mem::transmute(status)) } #[inline] pub unsafe fn ucsdet_getConfidence(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_getConfidence(ucsm : *const UCharsetMatch, status : *mut UErrorCode) -> i32); - ucsdet_getConfidence(core::mem::transmute(ucsm), core::mem::transmute(status)) + ucsdet_getConfidence(ucsm, core::mem::transmute(status)) } #[inline] pub unsafe fn ucsdet_getLanguage(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_getLanguage(ucsm : *const UCharsetMatch, status : *mut UErrorCode) -> windows_core::PCSTR); - ucsdet_getLanguage(core::mem::transmute(ucsm), core::mem::transmute(status)) + ucsdet_getLanguage(ucsm, core::mem::transmute(status)) } #[inline] pub unsafe fn ucsdet_getName(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_getName(ucsm : *const UCharsetMatch, status : *mut UErrorCode) -> windows_core::PCSTR); - ucsdet_getName(core::mem::transmute(ucsm), core::mem::transmute(status)) + ucsdet_getName(ucsm, core::mem::transmute(status)) } #[inline] pub unsafe fn ucsdet_getUChars(ucsm: *const UCharsetMatch, buf: *mut u16, cap: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_getUChars(ucsm : *const UCharsetMatch, buf : *mut u16, cap : i32, status : *mut UErrorCode) -> i32); - ucsdet_getUChars(core::mem::transmute(ucsm), core::mem::transmute(buf), core::mem::transmute(cap), core::mem::transmute(status)) + ucsdet_getUChars(ucsm, core::mem::transmute(buf), cap, core::mem::transmute(status)) } #[inline] pub unsafe fn ucsdet_isInputFilterEnabled(ucsd: *const UCharsetDetector) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_isInputFilterEnabled(ucsd : *const UCharsetDetector) -> i8); - ucsdet_isInputFilterEnabled(core::mem::transmute(ucsd)) + ucsdet_isInputFilterEnabled(ucsd) } #[inline] pub unsafe fn ucsdet_open(status: *mut UErrorCode) -> *mut UCharsetDetector { @@ -3747,7 +3705,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_setDeclaredEncoding(ucsd : *mut UCharsetDetector, encoding : windows_core::PCSTR, length : i32, status : *mut UErrorCode)); - ucsdet_setDeclaredEncoding(core::mem::transmute(ucsd), encoding.param().abi(), core::mem::transmute(length), core::mem::transmute(status)) + ucsdet_setDeclaredEncoding(core::mem::transmute(ucsd), encoding.param().abi(), length, core::mem::transmute(status)) } #[inline] pub unsafe fn ucsdet_setText(ucsd: *mut UCharsetDetector, textin: P1, len: i32, status: *mut UErrorCode) @@ -3755,7 +3713,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ucsdet_setText(ucsd : *mut UCharsetDetector, textin : windows_core::PCSTR, len : i32, status : *mut UErrorCode)); - ucsdet_setText(core::mem::transmute(ucsd), textin.param().abi(), core::mem::transmute(len), core::mem::transmute(status)) + ucsdet_setText(core::mem::transmute(ucsd), textin.param().abi(), len, core::mem::transmute(status)) } #[inline] pub unsafe fn ucurr_countCurrencies(locale: P0, date: f64, ec: *mut UErrorCode) -> i32 @@ -3763,7 +3721,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_countCurrencies(locale : windows_core::PCSTR, date : f64, ec : *mut UErrorCode) -> i32); - ucurr_countCurrencies(locale.param().abi(), core::mem::transmute(date), core::mem::transmute(ec)) + ucurr_countCurrencies(locale.param().abi(), date, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_forLocale(locale: P0, buff: *mut u16, buffcapacity: i32, ec: *mut UErrorCode) -> i32 @@ -3771,7 +3729,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_forLocale(locale : windows_core::PCSTR, buff : *mut u16, buffcapacity : i32, ec : *mut UErrorCode) -> i32); - ucurr_forLocale(locale.param().abi(), core::mem::transmute(buff), core::mem::transmute(buffcapacity), core::mem::transmute(ec)) + ucurr_forLocale(locale.param().abi(), core::mem::transmute(buff), buffcapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_forLocaleAndDate(locale: P0, date: f64, index: i32, buff: *mut u16, buffcapacity: i32, ec: *mut UErrorCode) -> i32 @@ -3779,17 +3737,17 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_forLocaleAndDate(locale : windows_core::PCSTR, date : f64, index : i32, buff : *mut u16, buffcapacity : i32, ec : *mut UErrorCode) -> i32); - ucurr_forLocaleAndDate(locale.param().abi(), core::mem::transmute(date), core::mem::transmute(index), core::mem::transmute(buff), core::mem::transmute(buffcapacity), core::mem::transmute(ec)) + ucurr_forLocaleAndDate(locale.param().abi(), date, index, core::mem::transmute(buff), buffcapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_getDefaultFractionDigits(currency: *const u16, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getDefaultFractionDigits(currency : *const u16, ec : *mut UErrorCode) -> i32); - ucurr_getDefaultFractionDigits(core::mem::transmute(currency), core::mem::transmute(ec)) + ucurr_getDefaultFractionDigits(currency, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_getDefaultFractionDigitsForUsage(currency: *const u16, usage: UCurrencyUsage, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getDefaultFractionDigitsForUsage(currency : *const u16, usage : UCurrencyUsage, ec : *mut UErrorCode) -> i32); - ucurr_getDefaultFractionDigitsForUsage(core::mem::transmute(currency), core::mem::transmute(usage), core::mem::transmute(ec)) + ucurr_getDefaultFractionDigitsForUsage(currency, usage, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_getKeywordValuesForLocale(key: P0, locale: P1, commonlyused: i8, status: *mut UErrorCode) -> *mut UEnumeration @@ -3798,7 +3756,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getKeywordValuesForLocale(key : windows_core::PCSTR, locale : windows_core::PCSTR, commonlyused : i8, status : *mut UErrorCode) -> *mut UEnumeration); - ucurr_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), core::mem::transmute(commonlyused), core::mem::transmute(status)) + ucurr_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), commonlyused, core::mem::transmute(status)) } #[inline] pub unsafe fn ucurr_getName(currency: *const u16, locale: P1, namestyle: UCurrNameStyle, ischoiceformat: *mut i8, len: *mut i32, ec: *mut UErrorCode) -> *mut u16 @@ -3806,12 +3764,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getName(currency : *const u16, locale : windows_core::PCSTR, namestyle : UCurrNameStyle, ischoiceformat : *mut i8, len : *mut i32, ec : *mut UErrorCode) -> *mut u16); - ucurr_getName(core::mem::transmute(currency), locale.param().abi(), core::mem::transmute(namestyle), core::mem::transmute(ischoiceformat), core::mem::transmute(len), core::mem::transmute(ec)) + ucurr_getName(currency, locale.param().abi(), namestyle, core::mem::transmute(ischoiceformat), core::mem::transmute(len), core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_getNumericCode(currency: *const u16) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getNumericCode(currency : *const u16) -> i32); - ucurr_getNumericCode(core::mem::transmute(currency)) + ucurr_getNumericCode(currency) } #[inline] pub unsafe fn ucurr_getPluralName(currency: *const u16, locale: P1, ischoiceformat: *mut i8, pluralcount: P3, len: *mut i32, ec: *mut UErrorCode) -> *mut u16 @@ -3820,27 +3778,27 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getPluralName(currency : *const u16, locale : windows_core::PCSTR, ischoiceformat : *mut i8, pluralcount : windows_core::PCSTR, len : *mut i32, ec : *mut UErrorCode) -> *mut u16); - ucurr_getPluralName(core::mem::transmute(currency), locale.param().abi(), core::mem::transmute(ischoiceformat), pluralcount.param().abi(), core::mem::transmute(len), core::mem::transmute(ec)) + ucurr_getPluralName(currency, locale.param().abi(), core::mem::transmute(ischoiceformat), pluralcount.param().abi(), core::mem::transmute(len), core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_getRoundingIncrement(currency: *const u16, ec: *mut UErrorCode) -> f64 { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getRoundingIncrement(currency : *const u16, ec : *mut UErrorCode) -> f64); - ucurr_getRoundingIncrement(core::mem::transmute(currency), core::mem::transmute(ec)) + ucurr_getRoundingIncrement(currency, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_getRoundingIncrementForUsage(currency: *const u16, usage: UCurrencyUsage, ec: *mut UErrorCode) -> f64 { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_getRoundingIncrementForUsage(currency : *const u16, usage : UCurrencyUsage, ec : *mut UErrorCode) -> f64); - ucurr_getRoundingIncrementForUsage(core::mem::transmute(currency), core::mem::transmute(usage), core::mem::transmute(ec)) + ucurr_getRoundingIncrementForUsage(currency, usage, core::mem::transmute(ec)) } #[inline] pub unsafe fn ucurr_isAvailable(isocode: *const u16, from: f64, to: f64, errorcode: *mut UErrorCode) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_isAvailable(isocode : *const u16, from : f64, to : f64, errorcode : *mut UErrorCode) -> i8); - ucurr_isAvailable(core::mem::transmute(isocode), core::mem::transmute(from), core::mem::transmute(to), core::mem::transmute(errorcode)) + ucurr_isAvailable(isocode, from, to, core::mem::transmute(errorcode)) } #[inline] pub unsafe fn ucurr_openISOCurrencies(currtype: u32, perrorcode: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_openISOCurrencies(currtype : u32, perrorcode : *mut UErrorCode) -> *mut UEnumeration); - ucurr_openISOCurrencies(core::mem::transmute(currtype), core::mem::transmute(perrorcode)) + ucurr_openISOCurrencies(currtype, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ucurr_register(isocode: *const u16, locale: P1, status: *mut UErrorCode) -> *mut core::ffi::c_void @@ -3848,7 +3806,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ucurr_register(isocode : *const u16, locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut core::ffi::c_void); - ucurr_register(core::mem::transmute(isocode), locale.param().abi(), core::mem::transmute(status)) + ucurr_register(isocode, locale.param().abi(), core::mem::transmute(status)) } #[inline] pub unsafe fn ucurr_unregister(key: *mut core::ffi::c_void, status: *mut UErrorCode) -> i8 { @@ -3863,17 +3821,17 @@ pub unsafe fn udat_adoptNumberFormat(fmt: *mut *mut core::ffi::c_void, numberfor #[inline] pub unsafe fn udat_adoptNumberFormatForFields(fmt: *mut *mut core::ffi::c_void, fields: *const u16, numberformattoset: *mut *mut core::ffi::c_void, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn udat_adoptNumberFormatForFields(fmt : *mut *mut core::ffi::c_void, fields : *const u16, numberformattoset : *mut *mut core::ffi::c_void, status : *mut UErrorCode)); - udat_adoptNumberFormatForFields(core::mem::transmute(fmt), core::mem::transmute(fields), core::mem::transmute(numberformattoset), core::mem::transmute(status)) + udat_adoptNumberFormatForFields(core::mem::transmute(fmt), fields, core::mem::transmute(numberformattoset), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_applyPattern(format: *mut *mut core::ffi::c_void, localized: i8, pattern: *const u16, patternlength: i32) { windows_targets::link!("icuin.dll" "cdecl" fn udat_applyPattern(format : *mut *mut core::ffi::c_void, localized : i8, pattern : *const u16, patternlength : i32)); - udat_applyPattern(core::mem::transmute(format), core::mem::transmute(localized), core::mem::transmute(pattern), core::mem::transmute(patternlength)) + udat_applyPattern(core::mem::transmute(format), localized, pattern, patternlength) } #[inline] pub unsafe fn udat_clone(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn udat_clone(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - udat_clone(core::mem::transmute(fmt), core::mem::transmute(status)) + udat_clone(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_close(format: *mut *mut core::ffi::c_void) { @@ -3888,77 +3846,77 @@ pub unsafe fn udat_countAvailable() -> i32 { #[inline] pub unsafe fn udat_countSymbols(fmt: *const *const core::ffi::c_void, r#type: UDateFormatSymbolType) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_countSymbols(fmt : *const *const core::ffi::c_void, r#type : UDateFormatSymbolType) -> i32); - udat_countSymbols(core::mem::transmute(fmt), core::mem::transmute(r#type)) + udat_countSymbols(fmt, r#type) } #[inline] pub unsafe fn udat_format(format: *const *const core::ffi::c_void, datetoformat: f64, result: *mut u16, resultlength: i32, position: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_format(format : *const *const core::ffi::c_void, datetoformat : f64, result : *mut u16, resultlength : i32, position : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - udat_format(core::mem::transmute(format), core::mem::transmute(datetoformat), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(position), core::mem::transmute(status)) + udat_format(format, datetoformat, core::mem::transmute(result), resultlength, core::mem::transmute(position), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_formatCalendar(format: *const *const core::ffi::c_void, calendar: *mut *mut core::ffi::c_void, result: *mut u16, capacity: i32, position: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_formatCalendar(format : *const *const core::ffi::c_void, calendar : *mut *mut core::ffi::c_void, result : *mut u16, capacity : i32, position : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - udat_formatCalendar(core::mem::transmute(format), core::mem::transmute(calendar), core::mem::transmute(result), core::mem::transmute(capacity), core::mem::transmute(position), core::mem::transmute(status)) + udat_formatCalendar(format, core::mem::transmute(calendar), core::mem::transmute(result), capacity, core::mem::transmute(position), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_formatCalendarForFields(format: *const *const core::ffi::c_void, calendar: *mut *mut core::ffi::c_void, result: *mut u16, capacity: i32, fpositer: *mut UFieldPositionIterator, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_formatCalendarForFields(format : *const *const core::ffi::c_void, calendar : *mut *mut core::ffi::c_void, result : *mut u16, capacity : i32, fpositer : *mut UFieldPositionIterator, status : *mut UErrorCode) -> i32); - udat_formatCalendarForFields(core::mem::transmute(format), core::mem::transmute(calendar), core::mem::transmute(result), core::mem::transmute(capacity), core::mem::transmute(fpositer), core::mem::transmute(status)) + udat_formatCalendarForFields(format, core::mem::transmute(calendar), core::mem::transmute(result), capacity, core::mem::transmute(fpositer), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_formatForFields(format: *const *const core::ffi::c_void, datetoformat: f64, result: *mut u16, resultlength: i32, fpositer: *mut UFieldPositionIterator, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_formatForFields(format : *const *const core::ffi::c_void, datetoformat : f64, result : *mut u16, resultlength : i32, fpositer : *mut UFieldPositionIterator, status : *mut UErrorCode) -> i32); - udat_formatForFields(core::mem::transmute(format), core::mem::transmute(datetoformat), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(fpositer), core::mem::transmute(status)) + udat_formatForFields(format, datetoformat, core::mem::transmute(result), resultlength, core::mem::transmute(fpositer), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_get2DigitYearStart(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn udat_get2DigitYearStart(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> f64); - udat_get2DigitYearStart(core::mem::transmute(fmt), core::mem::transmute(status)) + udat_get2DigitYearStart(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_getAvailable(localeindex: i32) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn udat_getAvailable(localeindex : i32) -> windows_core::PCSTR); - udat_getAvailable(core::mem::transmute(localeindex)) + udat_getAvailable(localeindex) } #[inline] pub unsafe fn udat_getBooleanAttribute(fmt: *const *const core::ffi::c_void, attr: UDateFormatBooleanAttribute, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn udat_getBooleanAttribute(fmt : *const *const core::ffi::c_void, attr : UDateFormatBooleanAttribute, status : *mut UErrorCode) -> i8); - udat_getBooleanAttribute(core::mem::transmute(fmt), core::mem::transmute(attr), core::mem::transmute(status)) + udat_getBooleanAttribute(fmt, attr, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_getCalendar(fmt: *const *const core::ffi::c_void) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn udat_getCalendar(fmt : *const *const core::ffi::c_void) -> *mut *mut core::ffi::c_void); - udat_getCalendar(core::mem::transmute(fmt)) + udat_getCalendar(fmt) } #[inline] pub unsafe fn udat_getContext(fmt: *const *const core::ffi::c_void, r#type: UDisplayContextType, status: *mut UErrorCode) -> UDisplayContext { windows_targets::link!("icuin.dll" "cdecl" fn udat_getContext(fmt : *const *const core::ffi::c_void, r#type : UDisplayContextType, status : *mut UErrorCode) -> UDisplayContext); - udat_getContext(core::mem::transmute(fmt), core::mem::transmute(r#type), core::mem::transmute(status)) + udat_getContext(fmt, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_getLocaleByType(fmt: *const *const core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn udat_getLocaleByType(fmt : *const *const core::ffi::c_void, r#type : ULocDataLocaleType, status : *mut UErrorCode) -> windows_core::PCSTR); - udat_getLocaleByType(core::mem::transmute(fmt), core::mem::transmute(r#type), core::mem::transmute(status)) + udat_getLocaleByType(fmt, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_getNumberFormat(fmt: *const *const core::ffi::c_void) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn udat_getNumberFormat(fmt : *const *const core::ffi::c_void) -> *mut *mut core::ffi::c_void); - udat_getNumberFormat(core::mem::transmute(fmt)) + udat_getNumberFormat(fmt) } #[inline] pub unsafe fn udat_getNumberFormatForField(fmt: *const *const core::ffi::c_void, field: u16) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn udat_getNumberFormatForField(fmt : *const *const core::ffi::c_void, field : u16) -> *mut *mut core::ffi::c_void); - udat_getNumberFormatForField(core::mem::transmute(fmt), core::mem::transmute(field)) + udat_getNumberFormatForField(fmt, field) } #[inline] pub unsafe fn udat_getSymbols(fmt: *const *const core::ffi::c_void, r#type: UDateFormatSymbolType, symbolindex: i32, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_getSymbols(fmt : *const *const core::ffi::c_void, r#type : UDateFormatSymbolType, symbolindex : i32, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - udat_getSymbols(core::mem::transmute(fmt), core::mem::transmute(r#type), core::mem::transmute(symbolindex), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + udat_getSymbols(fmt, r#type, symbolindex, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_isLenient(fmt: *const *const core::ffi::c_void) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn udat_isLenient(fmt : *const *const core::ffi::c_void) -> i8); - udat_isLenient(core::mem::transmute(fmt)) + udat_isLenient(fmt) } #[inline] pub unsafe fn udat_open(timestyle: UDateFormatStyle, datestyle: UDateFormatStyle, locale: P2, tzid: *const u16, tzidlength: i32, pattern: *const u16, patternlength: i32, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void @@ -3966,72 +3924,72 @@ where P2: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn udat_open(timestyle : UDateFormatStyle, datestyle : UDateFormatStyle, locale : windows_core::PCSTR, tzid : *const u16, tzidlength : i32, pattern : *const u16, patternlength : i32, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - udat_open(core::mem::transmute(timestyle), core::mem::transmute(datestyle), locale.param().abi(), core::mem::transmute(tzid), core::mem::transmute(tzidlength), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(status)) + udat_open(timestyle, datestyle, locale.param().abi(), tzid, tzidlength, pattern, patternlength, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_parse(format: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, status: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn udat_parse(format : *const *const core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, status : *mut UErrorCode) -> f64); - udat_parse(core::mem::transmute(format), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(status)) + udat_parse(format, text, textlength, core::mem::transmute(parsepos), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_parseCalendar(format: *const *const core::ffi::c_void, calendar: *mut *mut core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn udat_parseCalendar(format : *const *const core::ffi::c_void, calendar : *mut *mut core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, status : *mut UErrorCode)); - udat_parseCalendar(core::mem::transmute(format), core::mem::transmute(calendar), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(status)) + udat_parseCalendar(format, core::mem::transmute(calendar), text, textlength, core::mem::transmute(parsepos), core::mem::transmute(status)) } #[inline] pub unsafe fn udat_set2DigitYearStart(fmt: *mut *mut core::ffi::c_void, d: f64, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn udat_set2DigitYearStart(fmt : *mut *mut core::ffi::c_void, d : f64, status : *mut UErrorCode)); - udat_set2DigitYearStart(core::mem::transmute(fmt), core::mem::transmute(d), core::mem::transmute(status)) + udat_set2DigitYearStart(core::mem::transmute(fmt), d, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_setBooleanAttribute(fmt: *mut *mut core::ffi::c_void, attr: UDateFormatBooleanAttribute, newvalue: i8, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn udat_setBooleanAttribute(fmt : *mut *mut core::ffi::c_void, attr : UDateFormatBooleanAttribute, newvalue : i8, status : *mut UErrorCode)); - udat_setBooleanAttribute(core::mem::transmute(fmt), core::mem::transmute(attr), core::mem::transmute(newvalue), core::mem::transmute(status)) + udat_setBooleanAttribute(core::mem::transmute(fmt), attr, newvalue, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_setCalendar(fmt: *mut *mut core::ffi::c_void, calendartoset: *const *const core::ffi::c_void) { windows_targets::link!("icuin.dll" "cdecl" fn udat_setCalendar(fmt : *mut *mut core::ffi::c_void, calendartoset : *const *const core::ffi::c_void)); - udat_setCalendar(core::mem::transmute(fmt), core::mem::transmute(calendartoset)) + udat_setCalendar(core::mem::transmute(fmt), calendartoset) } #[inline] pub unsafe fn udat_setContext(fmt: *mut *mut core::ffi::c_void, value: UDisplayContext, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn udat_setContext(fmt : *mut *mut core::ffi::c_void, value : UDisplayContext, status : *mut UErrorCode)); - udat_setContext(core::mem::transmute(fmt), core::mem::transmute(value), core::mem::transmute(status)) + udat_setContext(core::mem::transmute(fmt), value, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_setLenient(fmt: *mut *mut core::ffi::c_void, islenient: i8) { windows_targets::link!("icuin.dll" "cdecl" fn udat_setLenient(fmt : *mut *mut core::ffi::c_void, islenient : i8)); - udat_setLenient(core::mem::transmute(fmt), core::mem::transmute(islenient)) + udat_setLenient(core::mem::transmute(fmt), islenient) } #[inline] pub unsafe fn udat_setNumberFormat(fmt: *mut *mut core::ffi::c_void, numberformattoset: *const *const core::ffi::c_void) { windows_targets::link!("icuin.dll" "cdecl" fn udat_setNumberFormat(fmt : *mut *mut core::ffi::c_void, numberformattoset : *const *const core::ffi::c_void)); - udat_setNumberFormat(core::mem::transmute(fmt), core::mem::transmute(numberformattoset)) + udat_setNumberFormat(core::mem::transmute(fmt), numberformattoset) } #[inline] pub unsafe fn udat_setSymbols(format: *mut *mut core::ffi::c_void, r#type: UDateFormatSymbolType, symbolindex: i32, value: *mut u16, valuelength: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn udat_setSymbols(format : *mut *mut core::ffi::c_void, r#type : UDateFormatSymbolType, symbolindex : i32, value : *mut u16, valuelength : i32, status : *mut UErrorCode)); - udat_setSymbols(core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(symbolindex), core::mem::transmute(value), core::mem::transmute(valuelength), core::mem::transmute(status)) + udat_setSymbols(core::mem::transmute(format), r#type, symbolindex, core::mem::transmute(value), valuelength, core::mem::transmute(status)) } #[inline] pub unsafe fn udat_toCalendarDateField(field: UDateFormatField) -> UCalendarDateFields { windows_targets::link!("icuin.dll" "cdecl" fn udat_toCalendarDateField(field : UDateFormatField) -> UCalendarDateFields); - udat_toCalendarDateField(core::mem::transmute(field)) + udat_toCalendarDateField(field) } #[inline] pub unsafe fn udat_toPattern(fmt: *const *const core::ffi::c_void, localized: i8, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udat_toPattern(fmt : *const *const core::ffi::c_void, localized : i8, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - udat_toPattern(core::mem::transmute(fmt), core::mem::transmute(localized), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + udat_toPattern(fmt, localized, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn udatpg_addPattern(dtpg: *mut *mut core::ffi::c_void, pattern: *const u16, patternlength: i32, r#override: i8, conflictingpattern: *mut u16, capacity: i32, plength: *mut i32, perrorcode: *mut UErrorCode) -> UDateTimePatternConflict { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_addPattern(dtpg : *mut *mut core::ffi::c_void, pattern : *const u16, patternlength : i32, r#override : i8, conflictingpattern : *mut u16, capacity : i32, plength : *mut i32, perrorcode : *mut UErrorCode) -> UDateTimePatternConflict); - udatpg_addPattern(core::mem::transmute(dtpg), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(r#override), core::mem::transmute(conflictingpattern), core::mem::transmute(capacity), core::mem::transmute(plength), core::mem::transmute(perrorcode)) + udatpg_addPattern(core::mem::transmute(dtpg), pattern, patternlength, r#override, core::mem::transmute(conflictingpattern), capacity, core::mem::transmute(plength), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_clone(dtpg: *const *const core::ffi::c_void, perrorcode: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_clone(dtpg : *const *const core::ffi::c_void, perrorcode : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - udatpg_clone(core::mem::transmute(dtpg), core::mem::transmute(perrorcode)) + udatpg_clone(dtpg, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_close(dtpg: *mut *mut core::ffi::c_void) { @@ -4041,52 +3999,52 @@ pub unsafe fn udatpg_close(dtpg: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn udatpg_getAppendItemFormat(dtpg: *const *const core::ffi::c_void, field: UDateTimePatternField, plength: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getAppendItemFormat(dtpg : *const *const core::ffi::c_void, field : UDateTimePatternField, plength : *mut i32) -> *mut u16); - udatpg_getAppendItemFormat(core::mem::transmute(dtpg), core::mem::transmute(field), core::mem::transmute(plength)) + udatpg_getAppendItemFormat(dtpg, field, core::mem::transmute(plength)) } #[inline] pub unsafe fn udatpg_getAppendItemName(dtpg: *const *const core::ffi::c_void, field: UDateTimePatternField, plength: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getAppendItemName(dtpg : *const *const core::ffi::c_void, field : UDateTimePatternField, plength : *mut i32) -> *mut u16); - udatpg_getAppendItemName(core::mem::transmute(dtpg), core::mem::transmute(field), core::mem::transmute(plength)) + udatpg_getAppendItemName(dtpg, field, core::mem::transmute(plength)) } #[inline] pub unsafe fn udatpg_getBaseSkeleton(unuseddtpg: *mut *mut core::ffi::c_void, pattern: *const u16, length: i32, baseskeleton: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getBaseSkeleton(unuseddtpg : *mut *mut core::ffi::c_void, pattern : *const u16, length : i32, baseskeleton : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_getBaseSkeleton(core::mem::transmute(unuseddtpg), core::mem::transmute(pattern), core::mem::transmute(length), core::mem::transmute(baseskeleton), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + udatpg_getBaseSkeleton(core::mem::transmute(unuseddtpg), pattern, length, core::mem::transmute(baseskeleton), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_getBestPattern(dtpg: *mut *mut core::ffi::c_void, skeleton: *const u16, length: i32, bestpattern: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getBestPattern(dtpg : *mut *mut core::ffi::c_void, skeleton : *const u16, length : i32, bestpattern : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_getBestPattern(core::mem::transmute(dtpg), core::mem::transmute(skeleton), core::mem::transmute(length), core::mem::transmute(bestpattern), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + udatpg_getBestPattern(core::mem::transmute(dtpg), skeleton, length, core::mem::transmute(bestpattern), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_getBestPatternWithOptions(dtpg: *mut *mut core::ffi::c_void, skeleton: *const u16, length: i32, options: UDateTimePatternMatchOptions, bestpattern: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getBestPatternWithOptions(dtpg : *mut *mut core::ffi::c_void, skeleton : *const u16, length : i32, options : UDateTimePatternMatchOptions, bestpattern : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_getBestPatternWithOptions(core::mem::transmute(dtpg), core::mem::transmute(skeleton), core::mem::transmute(length), core::mem::transmute(options), core::mem::transmute(bestpattern), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + udatpg_getBestPatternWithOptions(core::mem::transmute(dtpg), skeleton, length, options, core::mem::transmute(bestpattern), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_getDateTimeFormat(dtpg: *const *const core::ffi::c_void, plength: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getDateTimeFormat(dtpg : *const *const core::ffi::c_void, plength : *mut i32) -> *mut u16); - udatpg_getDateTimeFormat(core::mem::transmute(dtpg), core::mem::transmute(plength)) + udatpg_getDateTimeFormat(dtpg, core::mem::transmute(plength)) } #[inline] pub unsafe fn udatpg_getDecimal(dtpg: *const *const core::ffi::c_void, plength: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getDecimal(dtpg : *const *const core::ffi::c_void, plength : *mut i32) -> *mut u16); - udatpg_getDecimal(core::mem::transmute(dtpg), core::mem::transmute(plength)) + udatpg_getDecimal(dtpg, core::mem::transmute(plength)) } #[inline] pub unsafe fn udatpg_getFieldDisplayName(dtpg: *const *const core::ffi::c_void, field: UDateTimePatternField, width: UDateTimePGDisplayWidth, fieldname: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn udatpg_getFieldDisplayName(dtpg : *const *const core::ffi::c_void, field : UDateTimePatternField, width : UDateTimePGDisplayWidth, fieldname : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_getFieldDisplayName(core::mem::transmute(dtpg), core::mem::transmute(field), core::mem::transmute(width), core::mem::transmute(fieldname), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + udatpg_getFieldDisplayName(dtpg, field, width, core::mem::transmute(fieldname), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_getPatternForSkeleton(dtpg: *const *const core::ffi::c_void, skeleton: *const u16, skeletonlength: i32, plength: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getPatternForSkeleton(dtpg : *const *const core::ffi::c_void, skeleton : *const u16, skeletonlength : i32, plength : *mut i32) -> *mut u16); - udatpg_getPatternForSkeleton(core::mem::transmute(dtpg), core::mem::transmute(skeleton), core::mem::transmute(skeletonlength), core::mem::transmute(plength)) + udatpg_getPatternForSkeleton(dtpg, skeleton, skeletonlength, core::mem::transmute(plength)) } #[inline] pub unsafe fn udatpg_getSkeleton(unuseddtpg: *mut *mut core::ffi::c_void, pattern: *const u16, length: i32, skeleton: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_getSkeleton(unuseddtpg : *mut *mut core::ffi::c_void, pattern : *const u16, length : i32, skeleton : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_getSkeleton(core::mem::transmute(unuseddtpg), core::mem::transmute(pattern), core::mem::transmute(length), core::mem::transmute(skeleton), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + udatpg_getSkeleton(core::mem::transmute(unuseddtpg), pattern, length, core::mem::transmute(skeleton), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_open(locale: P0, perrorcode: *mut UErrorCode) -> *mut *mut core::ffi::c_void @@ -4099,7 +4057,7 @@ where #[inline] pub unsafe fn udatpg_openBaseSkeletons(dtpg: *const *const core::ffi::c_void, perrorcode: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_openBaseSkeletons(dtpg : *const *const core::ffi::c_void, perrorcode : *mut UErrorCode) -> *mut UEnumeration); - udatpg_openBaseSkeletons(core::mem::transmute(dtpg), core::mem::transmute(perrorcode)) + udatpg_openBaseSkeletons(dtpg, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_openEmpty(perrorcode: *mut UErrorCode) -> *mut *mut core::ffi::c_void { @@ -4109,37 +4067,37 @@ pub unsafe fn udatpg_openEmpty(perrorcode: *mut UErrorCode) -> *mut *mut core::f #[inline] pub unsafe fn udatpg_openSkeletons(dtpg: *const *const core::ffi::c_void, perrorcode: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_openSkeletons(dtpg : *const *const core::ffi::c_void, perrorcode : *mut UErrorCode) -> *mut UEnumeration); - udatpg_openSkeletons(core::mem::transmute(dtpg), core::mem::transmute(perrorcode)) + udatpg_openSkeletons(dtpg, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_replaceFieldTypes(dtpg: *mut *mut core::ffi::c_void, pattern: *const u16, patternlength: i32, skeleton: *const u16, skeletonlength: i32, dest: *mut u16, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_replaceFieldTypes(dtpg : *mut *mut core::ffi::c_void, pattern : *const u16, patternlength : i32, skeleton : *const u16, skeletonlength : i32, dest : *mut u16, destcapacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_replaceFieldTypes(core::mem::transmute(dtpg), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(skeleton), core::mem::transmute(skeletonlength), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(perrorcode)) + udatpg_replaceFieldTypes(core::mem::transmute(dtpg), pattern, patternlength, skeleton, skeletonlength, core::mem::transmute(dest), destcapacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_replaceFieldTypesWithOptions(dtpg: *mut *mut core::ffi::c_void, pattern: *const u16, patternlength: i32, skeleton: *const u16, skeletonlength: i32, options: UDateTimePatternMatchOptions, dest: *mut u16, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_replaceFieldTypesWithOptions(dtpg : *mut *mut core::ffi::c_void, pattern : *const u16, patternlength : i32, skeleton : *const u16, skeletonlength : i32, options : UDateTimePatternMatchOptions, dest : *mut u16, destcapacity : i32, perrorcode : *mut UErrorCode) -> i32); - udatpg_replaceFieldTypesWithOptions(core::mem::transmute(dtpg), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(skeleton), core::mem::transmute(skeletonlength), core::mem::transmute(options), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(perrorcode)) + udatpg_replaceFieldTypesWithOptions(core::mem::transmute(dtpg), pattern, patternlength, skeleton, skeletonlength, options, core::mem::transmute(dest), destcapacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn udatpg_setAppendItemFormat(dtpg: *mut *mut core::ffi::c_void, field: UDateTimePatternField, value: *const u16, length: i32) { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_setAppendItemFormat(dtpg : *mut *mut core::ffi::c_void, field : UDateTimePatternField, value : *const u16, length : i32)); - udatpg_setAppendItemFormat(core::mem::transmute(dtpg), core::mem::transmute(field), core::mem::transmute(value), core::mem::transmute(length)) + udatpg_setAppendItemFormat(core::mem::transmute(dtpg), field, value, length) } #[inline] pub unsafe fn udatpg_setAppendItemName(dtpg: *mut *mut core::ffi::c_void, field: UDateTimePatternField, value: *const u16, length: i32) { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_setAppendItemName(dtpg : *mut *mut core::ffi::c_void, field : UDateTimePatternField, value : *const u16, length : i32)); - udatpg_setAppendItemName(core::mem::transmute(dtpg), core::mem::transmute(field), core::mem::transmute(value), core::mem::transmute(length)) + udatpg_setAppendItemName(core::mem::transmute(dtpg), field, value, length) } #[inline] pub unsafe fn udatpg_setDateTimeFormat(dtpg: *const *const core::ffi::c_void, dtformat: *const u16, length: i32) { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_setDateTimeFormat(dtpg : *const *const core::ffi::c_void, dtformat : *const u16, length : i32)); - udatpg_setDateTimeFormat(core::mem::transmute(dtpg), core::mem::transmute(dtformat), core::mem::transmute(length)) + udatpg_setDateTimeFormat(dtpg, dtformat, length) } #[inline] pub unsafe fn udatpg_setDecimal(dtpg: *mut *mut core::ffi::c_void, decimal: *const u16, length: i32) { windows_targets::link!("icuin.dll" "cdecl" fn udatpg_setDecimal(dtpg : *mut *mut core::ffi::c_void, decimal : *const u16, length : i32)); - udatpg_setDecimal(core::mem::transmute(dtpg), core::mem::transmute(decimal), core::mem::transmute(length)) + udatpg_setDecimal(core::mem::transmute(dtpg), decimal, length) } #[inline] pub unsafe fn udtitvfmt_close(formatter: *mut UDateIntervalFormat) { @@ -4154,7 +4112,7 @@ pub unsafe fn udtitvfmt_closeResult(uresult: *mut UFormattedDateInterval) { #[inline] pub unsafe fn udtitvfmt_format(formatter: *const UDateIntervalFormat, fromdate: f64, todate: f64, result: *mut u16, resultcapacity: i32, position: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn udtitvfmt_format(formatter : *const UDateIntervalFormat, fromdate : f64, todate : f64, result : *mut u16, resultcapacity : i32, position : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - udtitvfmt_format(core::mem::transmute(formatter), core::mem::transmute(fromdate), core::mem::transmute(todate), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(position), core::mem::transmute(status)) + udtitvfmt_format(formatter, fromdate, todate, core::mem::transmute(result), resultcapacity, core::mem::transmute(position), core::mem::transmute(status)) } #[inline] pub unsafe fn udtitvfmt_open(locale: P0, skeleton: *const u16, skeletonlength: i32, tzid: *const u16, tzidlength: i32, status: *mut UErrorCode) -> *mut UDateIntervalFormat @@ -4162,7 +4120,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn udtitvfmt_open(locale : windows_core::PCSTR, skeleton : *const u16, skeletonlength : i32, tzid : *const u16, tzidlength : i32, status : *mut UErrorCode) -> *mut UDateIntervalFormat); - udtitvfmt_open(locale.param().abi(), core::mem::transmute(skeleton), core::mem::transmute(skeletonlength), core::mem::transmute(tzid), core::mem::transmute(tzidlength), core::mem::transmute(status)) + udtitvfmt_open(locale.param().abi(), skeleton, skeletonlength, tzid, tzidlength, core::mem::transmute(status)) } #[inline] pub unsafe fn udtitvfmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedDateInterval { @@ -4172,7 +4130,7 @@ pub unsafe fn udtitvfmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedDateIn #[inline] pub unsafe fn udtitvfmt_resultAsValue(uresult: *const UFormattedDateInterval, ec: *mut UErrorCode) -> *mut UFormattedValue { windows_targets::link!("icu.dll" "cdecl" fn udtitvfmt_resultAsValue(uresult : *const UFormattedDateInterval, ec : *mut UErrorCode) -> *mut UFormattedValue); - udtitvfmt_resultAsValue(core::mem::transmute(uresult), core::mem::transmute(ec)) + udtitvfmt_resultAsValue(uresult, core::mem::transmute(ec)) } #[inline] pub unsafe fn uenum_close(en: *mut UEnumeration) { @@ -4192,12 +4150,12 @@ pub unsafe fn uenum_next(en: *mut UEnumeration, resultlength: *mut i32, status: #[inline] pub unsafe fn uenum_openCharStringsEnumeration(strings: *const *const i8, count: i32, ec: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuuc.dll" "cdecl" fn uenum_openCharStringsEnumeration(strings : *const *const i8, count : i32, ec : *mut UErrorCode) -> *mut UEnumeration); - uenum_openCharStringsEnumeration(core::mem::transmute(strings), core::mem::transmute(count), core::mem::transmute(ec)) + uenum_openCharStringsEnumeration(strings, count, core::mem::transmute(ec)) } #[inline] pub unsafe fn uenum_openUCharStringsEnumeration(strings: *const *const u16, count: i32, ec: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuuc.dll" "cdecl" fn uenum_openUCharStringsEnumeration(strings : *const *const u16, count : i32, ec : *mut UErrorCode) -> *mut UEnumeration); - uenum_openUCharStringsEnumeration(core::mem::transmute(strings), core::mem::transmute(count), core::mem::transmute(ec)) + uenum_openUCharStringsEnumeration(strings, count, core::mem::transmute(ec)) } #[inline] pub unsafe fn uenum_reset(en: *mut UEnumeration, status: *mut UErrorCode) { @@ -4232,17 +4190,17 @@ pub unsafe fn ufmt_close(fmt: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn ufmt_getArrayItemByIndex(fmt: *mut *mut core::ffi::c_void, n: i32, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn ufmt_getArrayItemByIndex(fmt : *mut *mut core::ffi::c_void, n : i32, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - ufmt_getArrayItemByIndex(core::mem::transmute(fmt), core::mem::transmute(n), core::mem::transmute(status)) + ufmt_getArrayItemByIndex(core::mem::transmute(fmt), n, core::mem::transmute(status)) } #[inline] pub unsafe fn ufmt_getArrayLength(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ufmt_getArrayLength(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> i32); - ufmt_getArrayLength(core::mem::transmute(fmt), core::mem::transmute(status)) + ufmt_getArrayLength(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn ufmt_getDate(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn ufmt_getDate(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> f64); - ufmt_getDate(core::mem::transmute(fmt), core::mem::transmute(status)) + ufmt_getDate(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn ufmt_getDecNumChars(fmt: *mut *mut core::ffi::c_void, len: *mut i32, status: *mut UErrorCode) -> windows_core::PCSTR { @@ -4267,12 +4225,12 @@ pub unsafe fn ufmt_getLong(fmt: *mut *mut core::ffi::c_void, status: *mut UError #[inline] pub unsafe fn ufmt_getObject(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn ufmt_getObject(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut core::ffi::c_void); - ufmt_getObject(core::mem::transmute(fmt), core::mem::transmute(status)) + ufmt_getObject(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn ufmt_getType(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> UFormattableType { windows_targets::link!("icuin.dll" "cdecl" fn ufmt_getType(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> UFormattableType); - ufmt_getType(core::mem::transmute(fmt), core::mem::transmute(status)) + ufmt_getType(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn ufmt_getUChars(fmt: *mut *mut core::ffi::c_void, len: *mut i32, status: *mut UErrorCode) -> *mut u16 { @@ -4282,7 +4240,7 @@ pub unsafe fn ufmt_getUChars(fmt: *mut *mut core::ffi::c_void, len: *mut i32, st #[inline] pub unsafe fn ufmt_isNumeric(fmt: *const *const core::ffi::c_void) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn ufmt_isNumeric(fmt : *const *const core::ffi::c_void) -> i8); - ufmt_isNumeric(core::mem::transmute(fmt)) + ufmt_isNumeric(fmt) } #[inline] pub unsafe fn ufmt_open(status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { @@ -4292,12 +4250,12 @@ pub unsafe fn ufmt_open(status: *mut UErrorCode) -> *mut *mut core::ffi::c_void #[inline] pub unsafe fn ufmtval_getString(ufmtval: *const UFormattedValue, plength: *mut i32, ec: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icu.dll" "cdecl" fn ufmtval_getString(ufmtval : *const UFormattedValue, plength : *mut i32, ec : *mut UErrorCode) -> *mut u16); - ufmtval_getString(core::mem::transmute(ufmtval), core::mem::transmute(plength), core::mem::transmute(ec)) + ufmtval_getString(ufmtval, core::mem::transmute(plength), core::mem::transmute(ec)) } #[inline] pub unsafe fn ufmtval_nextPosition(ufmtval: *const UFormattedValue, ucfpos: *mut UConstrainedFieldPosition, ec: *mut UErrorCode) -> i8 { windows_targets::link!("icu.dll" "cdecl" fn ufmtval_nextPosition(ufmtval : *const UFormattedValue, ucfpos : *mut UConstrainedFieldPosition, ec : *mut UErrorCode) -> i8); - ufmtval_nextPosition(core::mem::transmute(ufmtval), core::mem::transmute(ucfpos), core::mem::transmute(ec)) + ufmtval_nextPosition(ufmtval, core::mem::transmute(ucfpos), core::mem::transmute(ec)) } #[inline] pub unsafe fn ugender_getInstance(locale: P0, status: *mut UErrorCode) -> *mut UGenderInfo @@ -4310,7 +4268,7 @@ where #[inline] pub unsafe fn ugender_getListGender(genderinfo: *const UGenderInfo, genders: *const UGender, size: i32, status: *mut UErrorCode) -> UGender { windows_targets::link!("icuin.dll" "cdecl" fn ugender_getListGender(genderinfo : *const UGenderInfo, genders : *const UGender, size : i32, status : *mut UErrorCode) -> UGender); - ugender_getListGender(core::mem::transmute(genderinfo), core::mem::transmute(genders), core::mem::transmute(size), core::mem::transmute(status)) + ugender_getListGender(genderinfo, genders, size, core::mem::transmute(status)) } #[inline] pub unsafe fn uidna_close(idna: *mut UIDNA) { @@ -4320,7 +4278,7 @@ pub unsafe fn uidna_close(idna: *mut UIDNA) { #[inline] pub unsafe fn uidna_labelToASCII(idna: *const UIDNA, label: *const u16, length: i32, dest: *mut u16, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_labelToASCII(idna : *const UIDNA, label : *const u16, length : i32, dest : *mut u16, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_labelToASCII(core::mem::transmute(idna), core::mem::transmute(label), core::mem::transmute(length), core::mem::transmute(dest), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_labelToASCII(idna, label, length, core::mem::transmute(dest), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_labelToASCII_UTF8(idna: *const UIDNA, label: P1, length: i32, dest: P3, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 @@ -4329,12 +4287,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_labelToASCII_UTF8(idna : *const UIDNA, label : windows_core::PCSTR, length : i32, dest : windows_core::PCSTR, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_labelToASCII_UTF8(core::mem::transmute(idna), label.param().abi(), core::mem::transmute(length), dest.param().abi(), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_labelToASCII_UTF8(idna, label.param().abi(), length, dest.param().abi(), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_labelToUnicode(idna: *const UIDNA, label: *const u16, length: i32, dest: *mut u16, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_labelToUnicode(idna : *const UIDNA, label : *const u16, length : i32, dest : *mut u16, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_labelToUnicode(core::mem::transmute(idna), core::mem::transmute(label), core::mem::transmute(length), core::mem::transmute(dest), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_labelToUnicode(idna, label, length, core::mem::transmute(dest), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_labelToUnicodeUTF8(idna: *const UIDNA, label: P1, length: i32, dest: P3, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 @@ -4343,12 +4301,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_labelToUnicodeUTF8(idna : *const UIDNA, label : windows_core::PCSTR, length : i32, dest : windows_core::PCSTR, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_labelToUnicodeUTF8(core::mem::transmute(idna), label.param().abi(), core::mem::transmute(length), dest.param().abi(), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_labelToUnicodeUTF8(idna, label.param().abi(), length, dest.param().abi(), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_nameToASCII(idna: *const UIDNA, name: *const u16, length: i32, dest: *mut u16, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_nameToASCII(idna : *const UIDNA, name : *const u16, length : i32, dest : *mut u16, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_nameToASCII(core::mem::transmute(idna), core::mem::transmute(name), core::mem::transmute(length), core::mem::transmute(dest), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_nameToASCII(idna, name, length, core::mem::transmute(dest), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_nameToASCII_UTF8(idna: *const UIDNA, name: P1, length: i32, dest: P3, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 @@ -4357,12 +4315,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_nameToASCII_UTF8(idna : *const UIDNA, name : windows_core::PCSTR, length : i32, dest : windows_core::PCSTR, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_nameToASCII_UTF8(core::mem::transmute(idna), name.param().abi(), core::mem::transmute(length), dest.param().abi(), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_nameToASCII_UTF8(idna, name.param().abi(), length, dest.param().abi(), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_nameToUnicode(idna: *const UIDNA, name: *const u16, length: i32, dest: *mut u16, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_nameToUnicode(idna : *const UIDNA, name : *const u16, length : i32, dest : *mut u16, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_nameToUnicode(core::mem::transmute(idna), core::mem::transmute(name), core::mem::transmute(length), core::mem::transmute(dest), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_nameToUnicode(idna, name, length, core::mem::transmute(dest), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_nameToUnicodeUTF8(idna: *const UIDNA, name: P1, length: i32, dest: P3, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 @@ -4371,12 +4329,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_nameToUnicodeUTF8(idna : *const UIDNA, name : windows_core::PCSTR, length : i32, dest : windows_core::PCSTR, capacity : i32, pinfo : *mut UIDNAInfo, perrorcode : *mut UErrorCode) -> i32); - uidna_nameToUnicodeUTF8(core::mem::transmute(idna), name.param().abi(), core::mem::transmute(length), dest.param().abi(), core::mem::transmute(capacity), core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) + uidna_nameToUnicodeUTF8(idna, name.param().abi(), length, dest.param().abi(), capacity, core::mem::transmute(pinfo), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uidna_openUTS46(options: u32, perrorcode: *mut UErrorCode) -> *mut UIDNA { windows_targets::link!("icuuc.dll" "cdecl" fn uidna_openUTS46(options : u32, perrorcode : *mut UErrorCode) -> *mut UIDNA); - uidna_openUTS46(core::mem::transmute(options), core::mem::transmute(perrorcode)) + uidna_openUTS46(options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uiter_current32(iter: *mut UCharIterator) -> i32 { @@ -4386,7 +4344,7 @@ pub unsafe fn uiter_current32(iter: *mut UCharIterator) -> i32 { #[inline] pub unsafe fn uiter_getState(iter: *const UCharIterator) -> u32 { windows_targets::link!("icuuc.dll" "cdecl" fn uiter_getState(iter : *const UCharIterator) -> u32); - uiter_getState(core::mem::transmute(iter)) + uiter_getState(iter) } #[inline] pub unsafe fn uiter_next32(iter: *mut UCharIterator) -> i32 { @@ -4401,12 +4359,12 @@ pub unsafe fn uiter_previous32(iter: *mut UCharIterator) -> i32 { #[inline] pub unsafe fn uiter_setState(iter: *mut UCharIterator, state: u32, perrorcode: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn uiter_setState(iter : *mut UCharIterator, state : u32, perrorcode : *mut UErrorCode)); - uiter_setState(core::mem::transmute(iter), core::mem::transmute(state), core::mem::transmute(perrorcode)) + uiter_setState(core::mem::transmute(iter), state, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uiter_setString(iter: *mut UCharIterator, s: *const u16, length: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uiter_setString(iter : *mut UCharIterator, s : *const u16, length : i32)); - uiter_setString(core::mem::transmute(iter), core::mem::transmute(s), core::mem::transmute(length)) + uiter_setString(core::mem::transmute(iter), s, length) } #[inline] pub unsafe fn uiter_setUTF16BE(iter: *mut UCharIterator, s: P1, length: i32) @@ -4414,7 +4372,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uiter_setUTF16BE(iter : *mut UCharIterator, s : windows_core::PCSTR, length : i32)); - uiter_setUTF16BE(core::mem::transmute(iter), s.param().abi(), core::mem::transmute(length)) + uiter_setUTF16BE(core::mem::transmute(iter), s.param().abi(), length) } #[inline] pub unsafe fn uiter_setUTF8(iter: *mut UCharIterator, s: P1, length: i32) @@ -4422,7 +4380,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uiter_setUTF8(iter : *mut UCharIterator, s : windows_core::PCSTR, length : i32)); - uiter_setUTF8(core::mem::transmute(iter), s.param().abi(), core::mem::transmute(length)) + uiter_setUTF8(core::mem::transmute(iter), s.param().abi(), length) } #[inline] pub unsafe fn uldn_close(ldn: *mut ULocaleDisplayNames) { @@ -4432,17 +4390,17 @@ pub unsafe fn uldn_close(ldn: *mut ULocaleDisplayNames) { #[inline] pub unsafe fn uldn_getContext(ldn: *const ULocaleDisplayNames, r#type: UDisplayContextType, perrorcode: *mut UErrorCode) -> UDisplayContext { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_getContext(ldn : *const ULocaleDisplayNames, r#type : UDisplayContextType, perrorcode : *mut UErrorCode) -> UDisplayContext); - uldn_getContext(core::mem::transmute(ldn), core::mem::transmute(r#type), core::mem::transmute(perrorcode)) + uldn_getContext(ldn, r#type, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_getDialectHandling(ldn: *const ULocaleDisplayNames) -> UDialectHandling { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_getDialectHandling(ldn : *const ULocaleDisplayNames) -> UDialectHandling); - uldn_getDialectHandling(core::mem::transmute(ldn)) + uldn_getDialectHandling(ldn) } #[inline] pub unsafe fn uldn_getLocale(ldn: *const ULocaleDisplayNames) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_getLocale(ldn : *const ULocaleDisplayNames) -> windows_core::PCSTR); - uldn_getLocale(core::mem::transmute(ldn)) + uldn_getLocale(ldn) } #[inline] pub unsafe fn uldn_keyDisplayName(ldn: *const ULocaleDisplayNames, key: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4450,7 +4408,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_keyDisplayName(ldn : *const ULocaleDisplayNames, key : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_keyDisplayName(core::mem::transmute(ldn), key.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_keyDisplayName(ldn, key.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_keyValueDisplayName(ldn: *const ULocaleDisplayNames, key: P1, value: P2, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4459,7 +4417,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_keyValueDisplayName(ldn : *const ULocaleDisplayNames, key : windows_core::PCSTR, value : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_keyValueDisplayName(core::mem::transmute(ldn), key.param().abi(), value.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_keyValueDisplayName(ldn, key.param().abi(), value.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_languageDisplayName(ldn: *const ULocaleDisplayNames, lang: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4467,7 +4425,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_languageDisplayName(ldn : *const ULocaleDisplayNames, lang : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_languageDisplayName(core::mem::transmute(ldn), lang.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_languageDisplayName(ldn, lang.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_localeDisplayName(ldn: *const ULocaleDisplayNames, locale: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4475,7 +4433,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_localeDisplayName(ldn : *const ULocaleDisplayNames, locale : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_localeDisplayName(core::mem::transmute(ldn), locale.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_localeDisplayName(ldn, locale.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_open(locale: P0, dialecthandling: UDialectHandling, perrorcode: *mut UErrorCode) -> *mut ULocaleDisplayNames @@ -4483,7 +4441,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_open(locale : windows_core::PCSTR, dialecthandling : UDialectHandling, perrorcode : *mut UErrorCode) -> *mut ULocaleDisplayNames); - uldn_open(locale.param().abi(), core::mem::transmute(dialecthandling), core::mem::transmute(perrorcode)) + uldn_open(locale.param().abi(), dialecthandling, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_openForContext(locale: P0, contexts: *mut UDisplayContext, length: i32, perrorcode: *mut UErrorCode) -> *mut ULocaleDisplayNames @@ -4491,7 +4449,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_openForContext(locale : windows_core::PCSTR, contexts : *mut UDisplayContext, length : i32, perrorcode : *mut UErrorCode) -> *mut ULocaleDisplayNames); - uldn_openForContext(locale.param().abi(), core::mem::transmute(contexts), core::mem::transmute(length), core::mem::transmute(perrorcode)) + uldn_openForContext(locale.param().abi(), core::mem::transmute(contexts), length, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_regionDisplayName(ldn: *const ULocaleDisplayNames, region: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4499,12 +4457,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_regionDisplayName(ldn : *const ULocaleDisplayNames, region : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_regionDisplayName(core::mem::transmute(ldn), region.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_regionDisplayName(ldn, region.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_scriptCodeDisplayName(ldn: *const ULocaleDisplayNames, scriptcode: UScriptCode, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_scriptCodeDisplayName(ldn : *const ULocaleDisplayNames, scriptcode : UScriptCode, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_scriptCodeDisplayName(core::mem::transmute(ldn), core::mem::transmute(scriptcode), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_scriptCodeDisplayName(ldn, scriptcode, core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_scriptDisplayName(ldn: *const ULocaleDisplayNames, script: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4512,7 +4470,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_scriptDisplayName(ldn : *const ULocaleDisplayNames, script : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_scriptDisplayName(core::mem::transmute(ldn), script.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_scriptDisplayName(ldn, script.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uldn_variantDisplayName(ldn: *const ULocaleDisplayNames, variant: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 @@ -4520,7 +4478,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uldn_variantDisplayName(ldn : *const ULocaleDisplayNames, variant : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_variantDisplayName(core::mem::transmute(ldn), variant.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(perrorcode)) + uldn_variantDisplayName(ldn, variant.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn ulistfmt_close(listfmt: *mut UListFormatter) { @@ -4535,12 +4493,12 @@ pub unsafe fn ulistfmt_closeResult(uresult: *mut UFormattedList) { #[inline] pub unsafe fn ulistfmt_format(listfmt: *const UListFormatter, strings: *const *const u16, stringlengths: *const i32, stringcount: i32, result: *mut u16, resultcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ulistfmt_format(listfmt : *const UListFormatter, strings : *const *const u16, stringlengths : *const i32, stringcount : i32, result : *mut u16, resultcapacity : i32, status : *mut UErrorCode) -> i32); - ulistfmt_format(core::mem::transmute(listfmt), core::mem::transmute(strings), core::mem::transmute(stringlengths), core::mem::transmute(stringcount), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(status)) + ulistfmt_format(listfmt, strings, stringlengths, stringcount, core::mem::transmute(result), resultcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ulistfmt_formatStringsToResult(listfmt: *const UListFormatter, strings: *const *const u16, stringlengths: *const i32, stringcount: i32, uresult: *mut UFormattedList, status: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ulistfmt_formatStringsToResult(listfmt : *const UListFormatter, strings : *const *const u16, stringlengths : *const i32, stringcount : i32, uresult : *mut UFormattedList, status : *mut UErrorCode)); - ulistfmt_formatStringsToResult(core::mem::transmute(listfmt), core::mem::transmute(strings), core::mem::transmute(stringlengths), core::mem::transmute(stringcount), core::mem::transmute(uresult), core::mem::transmute(status)) + ulistfmt_formatStringsToResult(listfmt, strings, stringlengths, stringcount, core::mem::transmute(uresult), core::mem::transmute(status)) } #[inline] pub unsafe fn ulistfmt_open(locale: P0, status: *mut UErrorCode) -> *mut UListFormatter @@ -4556,7 +4514,7 @@ where P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ulistfmt_openForType(locale : windows_core::PCSTR, r#type : UListFormatterType, width : UListFormatterWidth, status : *mut UErrorCode) -> *mut UListFormatter); - ulistfmt_openForType(locale.param().abi(), core::mem::transmute(r#type), core::mem::transmute(width), core::mem::transmute(status)) + ulistfmt_openForType(locale.param().abi(), r#type, width, core::mem::transmute(status)) } #[inline] pub unsafe fn ulistfmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedList { @@ -4566,7 +4524,7 @@ pub unsafe fn ulistfmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedList { #[inline] pub unsafe fn ulistfmt_resultAsValue(uresult: *const UFormattedList, ec: *mut UErrorCode) -> *mut UFormattedValue { windows_targets::link!("icu.dll" "cdecl" fn ulistfmt_resultAsValue(uresult : *const UFormattedList, ec : *mut UErrorCode) -> *mut UFormattedValue); - ulistfmt_resultAsValue(core::mem::transmute(uresult), core::mem::transmute(ec)) + ulistfmt_resultAsValue(uresult, core::mem::transmute(ec)) } #[inline] pub unsafe fn uloc_acceptLanguage(result: P0, resultavailable: i32, outresult: *mut UAcceptResult, acceptlist: *const *const i8, acceptlistcount: i32, availablelocales: *mut UEnumeration, status: *mut UErrorCode) -> i32 @@ -4574,7 +4532,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_acceptLanguage(result : windows_core::PCSTR, resultavailable : i32, outresult : *mut UAcceptResult, acceptlist : *const *const i8, acceptlistcount : i32, availablelocales : *mut UEnumeration, status : *mut UErrorCode) -> i32); - uloc_acceptLanguage(result.param().abi(), core::mem::transmute(resultavailable), core::mem::transmute(outresult), core::mem::transmute(acceptlist), core::mem::transmute(acceptlistcount), core::mem::transmute(availablelocales), core::mem::transmute(status)) + uloc_acceptLanguage(result.param().abi(), resultavailable, core::mem::transmute(outresult), acceptlist, acceptlistcount, core::mem::transmute(availablelocales), core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_acceptLanguageFromHTTP(result: P0, resultavailable: i32, outresult: *mut UAcceptResult, httpacceptlanguage: P3, availablelocales: *mut UEnumeration, status: *mut UErrorCode) -> i32 @@ -4583,7 +4541,7 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_acceptLanguageFromHTTP(result : windows_core::PCSTR, resultavailable : i32, outresult : *mut UAcceptResult, httpacceptlanguage : windows_core::PCSTR, availablelocales : *mut UEnumeration, status : *mut UErrorCode) -> i32); - uloc_acceptLanguageFromHTTP(result.param().abi(), core::mem::transmute(resultavailable), core::mem::transmute(outresult), httpacceptlanguage.param().abi(), core::mem::transmute(availablelocales), core::mem::transmute(status)) + uloc_acceptLanguageFromHTTP(result.param().abi(), resultavailable, core::mem::transmute(outresult), httpacceptlanguage.param().abi(), core::mem::transmute(availablelocales), core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_addLikelySubtags(localeid: P0, maximizedlocaleid: P1, maximizedlocaleidcapacity: i32, err: *mut UErrorCode) -> i32 @@ -4592,7 +4550,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_addLikelySubtags(localeid : windows_core::PCSTR, maximizedlocaleid : windows_core::PCSTR, maximizedlocaleidcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_addLikelySubtags(localeid.param().abi(), maximizedlocaleid.param().abi(), core::mem::transmute(maximizedlocaleidcapacity), core::mem::transmute(err)) + uloc_addLikelySubtags(localeid.param().abi(), maximizedlocaleid.param().abi(), maximizedlocaleidcapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_canonicalize(localeid: P0, name: P1, namecapacity: i32, err: *mut UErrorCode) -> i32 @@ -4601,7 +4559,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_canonicalize(localeid : windows_core::PCSTR, name : windows_core::PCSTR, namecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_canonicalize(localeid.param().abi(), name.param().abi(), core::mem::transmute(namecapacity), core::mem::transmute(err)) + uloc_canonicalize(localeid.param().abi(), name.param().abi(), namecapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_countAvailable() -> i32 { @@ -4615,12 +4573,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_forLanguageTag(langtag : windows_core::PCSTR, localeid : windows_core::PCSTR, localeidcapacity : i32, parsedlength : *mut i32, err : *mut UErrorCode) -> i32); - uloc_forLanguageTag(langtag.param().abi(), localeid.param().abi(), core::mem::transmute(localeidcapacity), core::mem::transmute(parsedlength), core::mem::transmute(err)) + uloc_forLanguageTag(langtag.param().abi(), localeid.param().abi(), localeidcapacity, core::mem::transmute(parsedlength), core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getAvailable(n: i32) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getAvailable(n : i32) -> windows_core::PCSTR); - uloc_getAvailable(core::mem::transmute(n)) + uloc_getAvailable(n) } #[inline] pub unsafe fn uloc_getBaseName(localeid: P0, name: P1, namecapacity: i32, err: *mut UErrorCode) -> i32 @@ -4629,7 +4587,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getBaseName(localeid : windows_core::PCSTR, name : windows_core::PCSTR, namecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getBaseName(localeid.param().abi(), name.param().abi(), core::mem::transmute(namecapacity), core::mem::transmute(err)) + uloc_getBaseName(localeid.param().abi(), name.param().abi(), namecapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getCharacterOrientation(localeid: P0, status: *mut UErrorCode) -> ULayoutType @@ -4646,7 +4604,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getCountry(localeid : windows_core::PCSTR, country : windows_core::PCSTR, countrycapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getCountry(localeid.param().abi(), country.param().abi(), core::mem::transmute(countrycapacity), core::mem::transmute(err)) + uloc_getCountry(localeid.param().abi(), country.param().abi(), countrycapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getDefault() -> windows_core::PCSTR { @@ -4660,7 +4618,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayCountry(locale : windows_core::PCSTR, displaylocale : windows_core::PCSTR, country : *mut u16, countrycapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getDisplayCountry(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(country), core::mem::transmute(countrycapacity), core::mem::transmute(status)) + uloc_getDisplayCountry(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(country), countrycapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getDisplayKeyword(keyword: P0, displaylocale: P1, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 @@ -4669,7 +4627,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayKeyword(keyword : windows_core::PCSTR, displaylocale : windows_core::PCSTR, dest : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getDisplayKeyword(keyword.param().abi(), displaylocale.param().abi(), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uloc_getDisplayKeyword(keyword.param().abi(), displaylocale.param().abi(), core::mem::transmute(dest), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getDisplayKeywordValue(locale: P0, keyword: P1, displaylocale: P2, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 @@ -4679,7 +4637,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayKeywordValue(locale : windows_core::PCSTR, keyword : windows_core::PCSTR, displaylocale : windows_core::PCSTR, dest : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getDisplayKeywordValue(locale.param().abi(), keyword.param().abi(), displaylocale.param().abi(), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uloc_getDisplayKeywordValue(locale.param().abi(), keyword.param().abi(), displaylocale.param().abi(), core::mem::transmute(dest), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getDisplayLanguage(locale: P0, displaylocale: P1, language: *mut u16, languagecapacity: i32, status: *mut UErrorCode) -> i32 @@ -4688,7 +4646,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayLanguage(locale : windows_core::PCSTR, displaylocale : windows_core::PCSTR, language : *mut u16, languagecapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getDisplayLanguage(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(language), core::mem::transmute(languagecapacity), core::mem::transmute(status)) + uloc_getDisplayLanguage(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(language), languagecapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getDisplayName(localeid: P0, inlocaleid: P1, result: *mut u16, maxresultsize: i32, err: *mut UErrorCode) -> i32 @@ -4697,7 +4655,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayName(localeid : windows_core::PCSTR, inlocaleid : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, err : *mut UErrorCode) -> i32); - uloc_getDisplayName(localeid.param().abi(), inlocaleid.param().abi(), core::mem::transmute(result), core::mem::transmute(maxresultsize), core::mem::transmute(err)) + uloc_getDisplayName(localeid.param().abi(), inlocaleid.param().abi(), core::mem::transmute(result), maxresultsize, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getDisplayScript(locale: P0, displaylocale: P1, script: *mut u16, scriptcapacity: i32, status: *mut UErrorCode) -> i32 @@ -4706,7 +4664,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayScript(locale : windows_core::PCSTR, displaylocale : windows_core::PCSTR, script : *mut u16, scriptcapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getDisplayScript(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(script), core::mem::transmute(scriptcapacity), core::mem::transmute(status)) + uloc_getDisplayScript(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(script), scriptcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getDisplayVariant(locale: P0, displaylocale: P1, variant: *mut u16, variantcapacity: i32, status: *mut UErrorCode) -> i32 @@ -4715,7 +4673,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getDisplayVariant(locale : windows_core::PCSTR, displaylocale : windows_core::PCSTR, variant : *mut u16, variantcapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getDisplayVariant(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(variant), core::mem::transmute(variantcapacity), core::mem::transmute(status)) + uloc_getDisplayVariant(locale.param().abi(), displaylocale.param().abi(), core::mem::transmute(variant), variantcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getISO3Country(localeid: P0) -> windows_core::PCSTR @@ -4751,7 +4709,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getKeywordValue(localeid : windows_core::PCSTR, keywordname : windows_core::PCSTR, buffer : windows_core::PCSTR, buffercapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getKeywordValue(localeid.param().abi(), keywordname.param().abi(), buffer.param().abi(), core::mem::transmute(buffercapacity), core::mem::transmute(status)) + uloc_getKeywordValue(localeid.param().abi(), keywordname.param().abi(), buffer.param().abi(), buffercapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getLCID(localeid: P0) -> u32 @@ -4768,7 +4726,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getLanguage(localeid : windows_core::PCSTR, language : windows_core::PCSTR, languagecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getLanguage(localeid.param().abi(), language.param().abi(), core::mem::transmute(languagecapacity), core::mem::transmute(err)) + uloc_getLanguage(localeid.param().abi(), language.param().abi(), languagecapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getLineOrientation(localeid: P0, status: *mut UErrorCode) -> ULayoutType @@ -4784,7 +4742,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getLocaleForLCID(hostid : u32, locale : windows_core::PCSTR, localecapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getLocaleForLCID(core::mem::transmute(hostid), locale.param().abi(), core::mem::transmute(localecapacity), core::mem::transmute(status)) + uloc_getLocaleForLCID(hostid, locale.param().abi(), localecapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_getName(localeid: P0, name: P1, namecapacity: i32, err: *mut UErrorCode) -> i32 @@ -4793,7 +4751,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getName(localeid : windows_core::PCSTR, name : windows_core::PCSTR, namecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getName(localeid.param().abi(), name.param().abi(), core::mem::transmute(namecapacity), core::mem::transmute(err)) + uloc_getName(localeid.param().abi(), name.param().abi(), namecapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getParent(localeid: P0, parent: P1, parentcapacity: i32, err: *mut UErrorCode) -> i32 @@ -4802,7 +4760,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getParent(localeid : windows_core::PCSTR, parent : windows_core::PCSTR, parentcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getParent(localeid.param().abi(), parent.param().abi(), core::mem::transmute(parentcapacity), core::mem::transmute(err)) + uloc_getParent(localeid.param().abi(), parent.param().abi(), parentcapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getScript(localeid: P0, script: P1, scriptcapacity: i32, err: *mut UErrorCode) -> i32 @@ -4811,7 +4769,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getScript(localeid : windows_core::PCSTR, script : windows_core::PCSTR, scriptcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getScript(localeid.param().abi(), script.param().abi(), core::mem::transmute(scriptcapacity), core::mem::transmute(err)) + uloc_getScript(localeid.param().abi(), script.param().abi(), scriptcapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_getVariant(localeid: P0, variant: P1, variantcapacity: i32, err: *mut UErrorCode) -> i32 @@ -4820,7 +4778,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_getVariant(localeid : windows_core::PCSTR, variant : windows_core::PCSTR, variantcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getVariant(localeid.param().abi(), variant.param().abi(), core::mem::transmute(variantcapacity), core::mem::transmute(err)) + uloc_getVariant(localeid.param().abi(), variant.param().abi(), variantcapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_isRightToLeft(locale: P0) -> i8 @@ -4837,12 +4795,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_minimizeSubtags(localeid : windows_core::PCSTR, minimizedlocaleid : windows_core::PCSTR, minimizedlocaleidcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_minimizeSubtags(localeid.param().abi(), minimizedlocaleid.param().abi(), core::mem::transmute(minimizedlocaleidcapacity), core::mem::transmute(err)) + uloc_minimizeSubtags(localeid.param().abi(), minimizedlocaleid.param().abi(), minimizedlocaleidcapacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_openAvailableByType(r#type: ULocAvailableType, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icu.dll" "cdecl" fn uloc_openAvailableByType(r#type : ULocAvailableType, status : *mut UErrorCode) -> *mut UEnumeration); - uloc_openAvailableByType(core::mem::transmute(r#type), core::mem::transmute(status)) + uloc_openAvailableByType(r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_openKeywords(localeid: P0, status: *mut UErrorCode) -> *mut UEnumeration @@ -4868,7 +4826,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_setKeywordValue(keywordname : windows_core::PCSTR, keywordvalue : windows_core::PCSTR, buffer : windows_core::PCSTR, buffercapacity : i32, status : *mut UErrorCode) -> i32); - uloc_setKeywordValue(keywordname.param().abi(), keywordvalue.param().abi(), buffer.param().abi(), core::mem::transmute(buffercapacity), core::mem::transmute(status)) + uloc_setKeywordValue(keywordname.param().abi(), keywordvalue.param().abi(), buffer.param().abi(), buffercapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uloc_toLanguageTag(localeid: P0, langtag: P1, langtagcapacity: i32, strict: i8, err: *mut UErrorCode) -> i32 @@ -4877,7 +4835,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uloc_toLanguageTag(localeid : windows_core::PCSTR, langtag : windows_core::PCSTR, langtagcapacity : i32, strict : i8, err : *mut UErrorCode) -> i32); - uloc_toLanguageTag(localeid.param().abi(), langtag.param().abi(), core::mem::transmute(langtagcapacity), core::mem::transmute(strict), core::mem::transmute(err)) + uloc_toLanguageTag(localeid.param().abi(), langtag.param().abi(), langtagcapacity, strict, core::mem::transmute(err)) } #[inline] pub unsafe fn uloc_toLegacyKey(keyword: P0) -> windows_core::PCSTR @@ -4926,22 +4884,22 @@ pub unsafe fn ulocdata_getCLDRVersion(versionarray: *mut u8, status: *mut UError #[inline] pub unsafe fn ulocdata_getDelimiter(uld: *mut ULocaleData, r#type: ULocaleDataDelimiterType, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ulocdata_getDelimiter(uld : *mut ULocaleData, r#type : ULocaleDataDelimiterType, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - ulocdata_getDelimiter(core::mem::transmute(uld), core::mem::transmute(r#type), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + ulocdata_getDelimiter(core::mem::transmute(uld), r#type, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn ulocdata_getExemplarSet(uld: *mut ULocaleData, fillin: *mut USet, options: u32, extype: ULocaleDataExemplarSetType, status: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuin.dll" "cdecl" fn ulocdata_getExemplarSet(uld : *mut ULocaleData, fillin : *mut USet, options : u32, extype : ULocaleDataExemplarSetType, status : *mut UErrorCode) -> *mut USet); - ulocdata_getExemplarSet(core::mem::transmute(uld), core::mem::transmute(fillin), core::mem::transmute(options), core::mem::transmute(extype), core::mem::transmute(status)) + ulocdata_getExemplarSet(core::mem::transmute(uld), core::mem::transmute(fillin), options, extype, core::mem::transmute(status)) } #[inline] pub unsafe fn ulocdata_getLocaleDisplayPattern(uld: *mut ULocaleData, pattern: *mut u16, patterncapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ulocdata_getLocaleDisplayPattern(uld : *mut ULocaleData, pattern : *mut u16, patterncapacity : i32, status : *mut UErrorCode) -> i32); - ulocdata_getLocaleDisplayPattern(core::mem::transmute(uld), core::mem::transmute(pattern), core::mem::transmute(patterncapacity), core::mem::transmute(status)) + ulocdata_getLocaleDisplayPattern(core::mem::transmute(uld), core::mem::transmute(pattern), patterncapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ulocdata_getLocaleSeparator(uld: *mut ULocaleData, separator: *mut u16, separatorcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ulocdata_getLocaleSeparator(uld : *mut ULocaleData, separator : *mut u16, separatorcapacity : i32, status : *mut UErrorCode) -> i32); - ulocdata_getLocaleSeparator(core::mem::transmute(uld), core::mem::transmute(separator), core::mem::transmute(separatorcapacity), core::mem::transmute(status)) + ulocdata_getLocaleSeparator(core::mem::transmute(uld), core::mem::transmute(separator), separatorcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ulocdata_getMeasurementSystem(localeid: P0, status: *mut UErrorCode) -> UMeasurementSystem @@ -4975,22 +4933,22 @@ where #[inline] pub unsafe fn ulocdata_setNoSubstitute(uld: *mut ULocaleData, setting: i8) { windows_targets::link!("icuin.dll" "cdecl" fn ulocdata_setNoSubstitute(uld : *mut ULocaleData, setting : i8)); - ulocdata_setNoSubstitute(core::mem::transmute(uld), core::mem::transmute(setting)) + ulocdata_setNoSubstitute(core::mem::transmute(uld), setting) } #[inline] pub unsafe fn umsg_applyPattern(fmt: *mut *mut core::ffi::c_void, pattern: *const u16, patternlength: i32, parseerror: *mut UParseError, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn umsg_applyPattern(fmt : *mut *mut core::ffi::c_void, pattern : *const u16, patternlength : i32, parseerror : *mut UParseError, status : *mut UErrorCode)); - umsg_applyPattern(core::mem::transmute(fmt), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(parseerror), core::mem::transmute(status)) + umsg_applyPattern(core::mem::transmute(fmt), pattern, patternlength, core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_autoQuoteApostrophe(pattern: *const u16, patternlength: i32, dest: *mut u16, destcapacity: i32, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn umsg_autoQuoteApostrophe(pattern : *const u16, patternlength : i32, dest : *mut u16, destcapacity : i32, ec : *mut UErrorCode) -> i32); - umsg_autoQuoteApostrophe(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(ec)) + umsg_autoQuoteApostrophe(pattern, patternlength, core::mem::transmute(dest), destcapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn umsg_clone(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn umsg_clone(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut core::ffi::c_void); - umsg_clone(core::mem::transmute(fmt), core::mem::transmute(status)) + umsg_clone(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_close(format: *mut *mut core::ffi::c_void) { @@ -5000,12 +4958,12 @@ pub unsafe fn umsg_close(format: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn umsg_format(fmt: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn umsg_format(fmt : *const *const core::ffi::c_void, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - umsg_format(core::mem::transmute(fmt), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + umsg_format(fmt, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_getLocale(fmt: *const *const core::ffi::c_void) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn umsg_getLocale(fmt : *const *const core::ffi::c_void) -> windows_core::PCSTR); - umsg_getLocale(core::mem::transmute(fmt)) + umsg_getLocale(fmt) } #[inline] pub unsafe fn umsg_open(pattern: *const u16, patternlength: i32, locale: P2, parseerror: *mut UParseError, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void @@ -5013,12 +4971,12 @@ where P2: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn umsg_open(pattern : *const u16, patternlength : i32, locale : windows_core::PCSTR, parseerror : *mut UParseError, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - umsg_open(core::mem::transmute(pattern), core::mem::transmute(patternlength), locale.param().abi(), core::mem::transmute(parseerror), core::mem::transmute(status)) + umsg_open(pattern, patternlength, locale.param().abi(), core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_parse(fmt: *const *const core::ffi::c_void, source: *const u16, sourcelength: i32, count: *mut i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn umsg_parse(fmt : *const *const core::ffi::c_void, source : *const u16, sourcelength : i32, count : *mut i32, status : *mut UErrorCode)); - umsg_parse(core::mem::transmute(fmt), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(count), core::mem::transmute(status)) + umsg_parse(fmt, source, sourcelength, core::mem::transmute(count), core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_setLocale(fmt: *mut *mut core::ffi::c_void, locale: P1) @@ -5031,27 +4989,27 @@ where #[inline] pub unsafe fn umsg_toPattern(fmt: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn umsg_toPattern(fmt : *const *const core::ffi::c_void, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - umsg_toPattern(core::mem::transmute(fmt), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + umsg_toPattern(fmt, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_vformat(fmt: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, ap: *mut i8, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn umsg_vformat(fmt : *const *const core::ffi::c_void, result : *mut u16, resultlength : i32, ap : *mut i8, status : *mut UErrorCode) -> i32); - umsg_vformat(core::mem::transmute(fmt), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(ap), core::mem::transmute(status)) + umsg_vformat(fmt, core::mem::transmute(result), resultlength, core::mem::transmute(ap), core::mem::transmute(status)) } #[inline] pub unsafe fn umsg_vparse(fmt: *const *const core::ffi::c_void, source: *const u16, sourcelength: i32, count: *mut i32, ap: *mut i8, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn umsg_vparse(fmt : *const *const core::ffi::c_void, source : *const u16, sourcelength : i32, count : *mut i32, ap : *mut i8, status : *mut UErrorCode)); - umsg_vparse(core::mem::transmute(fmt), core::mem::transmute(source), core::mem::transmute(sourcelength), core::mem::transmute(count), core::mem::transmute(ap), core::mem::transmute(status)) + umsg_vparse(fmt, source, sourcelength, core::mem::transmute(count), core::mem::transmute(ap), core::mem::transmute(status)) } #[inline] pub unsafe fn umutablecptrie_buildImmutable(trie: *mut UMutableCPTrie, r#type: UCPTrieType, valuewidth: UCPTrieValueWidth, perrorcode: *mut UErrorCode) -> *mut UCPTrie { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_buildImmutable(trie : *mut UMutableCPTrie, r#type : UCPTrieType, valuewidth : UCPTrieValueWidth, perrorcode : *mut UErrorCode) -> *mut UCPTrie); - umutablecptrie_buildImmutable(core::mem::transmute(trie), core::mem::transmute(r#type), core::mem::transmute(valuewidth), core::mem::transmute(perrorcode)) + umutablecptrie_buildImmutable(core::mem::transmute(trie), r#type, valuewidth, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn umutablecptrie_clone(other: *const UMutableCPTrie, perrorcode: *mut UErrorCode) -> *mut UMutableCPTrie { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_clone(other : *const UMutableCPTrie, perrorcode : *mut UErrorCode) -> *mut UMutableCPTrie); - umutablecptrie_clone(core::mem::transmute(other), core::mem::transmute(perrorcode)) + umutablecptrie_clone(other, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn umutablecptrie_close(trie: *mut UMutableCPTrie) { @@ -5061,42 +5019,42 @@ pub unsafe fn umutablecptrie_close(trie: *mut UMutableCPTrie) { #[inline] pub unsafe fn umutablecptrie_fromUCPMap(map: *const UCPMap, perrorcode: *mut UErrorCode) -> *mut UMutableCPTrie { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_fromUCPMap(map : *const UCPMap, perrorcode : *mut UErrorCode) -> *mut UMutableCPTrie); - umutablecptrie_fromUCPMap(core::mem::transmute(map), core::mem::transmute(perrorcode)) + umutablecptrie_fromUCPMap(map, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn umutablecptrie_fromUCPTrie(trie: *const UCPTrie, perrorcode: *mut UErrorCode) -> *mut UMutableCPTrie { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_fromUCPTrie(trie : *const UCPTrie, perrorcode : *mut UErrorCode) -> *mut UMutableCPTrie); - umutablecptrie_fromUCPTrie(core::mem::transmute(trie), core::mem::transmute(perrorcode)) + umutablecptrie_fromUCPTrie(trie, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn umutablecptrie_get(trie: *const UMutableCPTrie, c: i32) -> u32 { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_get(trie : *const UMutableCPTrie, c : i32) -> u32); - umutablecptrie_get(core::mem::transmute(trie), core::mem::transmute(c)) + umutablecptrie_get(trie, c) } #[inline] pub unsafe fn umutablecptrie_getRange(trie: *const UMutableCPTrie, start: i32, option: UCPMapRangeOption, surrogatevalue: u32, filter: *mut UCPMapValueFilter, context: *const core::ffi::c_void, pvalue: *mut u32) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_getRange(trie : *const UMutableCPTrie, start : i32, option : UCPMapRangeOption, surrogatevalue : u32, filter : *mut UCPMapValueFilter, context : *const core::ffi::c_void, pvalue : *mut u32) -> i32); - umutablecptrie_getRange(core::mem::transmute(trie), core::mem::transmute(start), core::mem::transmute(option), core::mem::transmute(surrogatevalue), core::mem::transmute(filter), core::mem::transmute(context), core::mem::transmute(pvalue)) + umutablecptrie_getRange(trie, start, option, surrogatevalue, core::mem::transmute(filter), context, core::mem::transmute(pvalue)) } #[inline] pub unsafe fn umutablecptrie_open(initialvalue: u32, errorvalue: u32, perrorcode: *mut UErrorCode) -> *mut UMutableCPTrie { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_open(initialvalue : u32, errorvalue : u32, perrorcode : *mut UErrorCode) -> *mut UMutableCPTrie); - umutablecptrie_open(core::mem::transmute(initialvalue), core::mem::transmute(errorvalue), core::mem::transmute(perrorcode)) + umutablecptrie_open(initialvalue, errorvalue, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn umutablecptrie_set(trie: *mut UMutableCPTrie, c: i32, value: u32, perrorcode: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_set(trie : *mut UMutableCPTrie, c : i32, value : u32, perrorcode : *mut UErrorCode)); - umutablecptrie_set(core::mem::transmute(trie), core::mem::transmute(c), core::mem::transmute(value), core::mem::transmute(perrorcode)) + umutablecptrie_set(core::mem::transmute(trie), c, value, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn umutablecptrie_setRange(trie: *mut UMutableCPTrie, start: i32, end: i32, value: u32, perrorcode: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn umutablecptrie_setRange(trie : *mut UMutableCPTrie, start : i32, end : i32, value : u32, perrorcode : *mut UErrorCode)); - umutablecptrie_setRange(core::mem::transmute(trie), core::mem::transmute(start), core::mem::transmute(end), core::mem::transmute(value), core::mem::transmute(perrorcode)) + umutablecptrie_setRange(core::mem::transmute(trie), start, end, value, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_append(norm2: *const UNormalizer2, first: *mut u16, firstlength: i32, firstcapacity: i32, second: *const u16, secondlength: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_append(norm2 : *const UNormalizer2, first : *mut u16, firstlength : i32, firstcapacity : i32, second : *const u16, secondlength : i32, perrorcode : *mut UErrorCode) -> i32); - unorm2_append(core::mem::transmute(norm2), core::mem::transmute(first), core::mem::transmute(firstlength), core::mem::transmute(firstcapacity), core::mem::transmute(second), core::mem::transmute(secondlength), core::mem::transmute(perrorcode)) + unorm2_append(norm2, core::mem::transmute(first), firstlength, firstcapacity, second, secondlength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_close(norm2: *mut UNormalizer2) { @@ -5106,17 +5064,17 @@ pub unsafe fn unorm2_close(norm2: *mut UNormalizer2) { #[inline] pub unsafe fn unorm2_composePair(norm2: *const UNormalizer2, a: i32, b: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_composePair(norm2 : *const UNormalizer2, a : i32, b : i32) -> i32); - unorm2_composePair(core::mem::transmute(norm2), core::mem::transmute(a), core::mem::transmute(b)) + unorm2_composePair(norm2, a, b) } #[inline] pub unsafe fn unorm2_getCombiningClass(norm2: *const UNormalizer2, c: i32) -> u8 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_getCombiningClass(norm2 : *const UNormalizer2, c : i32) -> u8); - unorm2_getCombiningClass(core::mem::transmute(norm2), core::mem::transmute(c)) + unorm2_getCombiningClass(norm2, c) } #[inline] pub unsafe fn unorm2_getDecomposition(norm2: *const UNormalizer2, c: i32, decomposition: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_getDecomposition(norm2 : *const UNormalizer2, c : i32, decomposition : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - unorm2_getDecomposition(core::mem::transmute(norm2), core::mem::transmute(c), core::mem::transmute(decomposition), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + unorm2_getDecomposition(norm2, c, core::mem::transmute(decomposition), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_getInstance(packagename: P0, name: P1, mode: UNormalization2Mode, perrorcode: *mut UErrorCode) -> *mut UNormalizer2 @@ -5125,7 +5083,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_getInstance(packagename : windows_core::PCSTR, name : windows_core::PCSTR, mode : UNormalization2Mode, perrorcode : *mut UErrorCode) -> *mut UNormalizer2); - unorm2_getInstance(packagename.param().abi(), name.param().abi(), core::mem::transmute(mode), core::mem::transmute(perrorcode)) + unorm2_getInstance(packagename.param().abi(), name.param().abi(), mode, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_getNFCInstance(perrorcode: *mut UErrorCode) -> *mut UNormalizer2 { @@ -5155,67 +5113,67 @@ pub unsafe fn unorm2_getNFKDInstance(perrorcode: *mut UErrorCode) -> *mut UNorma #[inline] pub unsafe fn unorm2_getRawDecomposition(norm2: *const UNormalizer2, c: i32, decomposition: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_getRawDecomposition(norm2 : *const UNormalizer2, c : i32, decomposition : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - unorm2_getRawDecomposition(core::mem::transmute(norm2), core::mem::transmute(c), core::mem::transmute(decomposition), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + unorm2_getRawDecomposition(norm2, c, core::mem::transmute(decomposition), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_hasBoundaryAfter(norm2: *const UNormalizer2, c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_hasBoundaryAfter(norm2 : *const UNormalizer2, c : i32) -> i8); - unorm2_hasBoundaryAfter(core::mem::transmute(norm2), core::mem::transmute(c)) + unorm2_hasBoundaryAfter(norm2, c) } #[inline] pub unsafe fn unorm2_hasBoundaryBefore(norm2: *const UNormalizer2, c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_hasBoundaryBefore(norm2 : *const UNormalizer2, c : i32) -> i8); - unorm2_hasBoundaryBefore(core::mem::transmute(norm2), core::mem::transmute(c)) + unorm2_hasBoundaryBefore(norm2, c) } #[inline] pub unsafe fn unorm2_isInert(norm2: *const UNormalizer2, c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_isInert(norm2 : *const UNormalizer2, c : i32) -> i8); - unorm2_isInert(core::mem::transmute(norm2), core::mem::transmute(c)) + unorm2_isInert(norm2, c) } #[inline] pub unsafe fn unorm2_isNormalized(norm2: *const UNormalizer2, s: *const u16, length: i32, perrorcode: *mut UErrorCode) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_isNormalized(norm2 : *const UNormalizer2, s : *const u16, length : i32, perrorcode : *mut UErrorCode) -> i8); - unorm2_isNormalized(core::mem::transmute(norm2), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(perrorcode)) + unorm2_isNormalized(norm2, s, length, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_normalize(norm2: *const UNormalizer2, src: *const u16, length: i32, dest: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_normalize(norm2 : *const UNormalizer2, src : *const u16, length : i32, dest : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - unorm2_normalize(core::mem::transmute(norm2), core::mem::transmute(src), core::mem::transmute(length), core::mem::transmute(dest), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + unorm2_normalize(norm2, src, length, core::mem::transmute(dest), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_normalizeSecondAndAppend(norm2: *const UNormalizer2, first: *mut u16, firstlength: i32, firstcapacity: i32, second: *const u16, secondlength: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_normalizeSecondAndAppend(norm2 : *const UNormalizer2, first : *mut u16, firstlength : i32, firstcapacity : i32, second : *const u16, secondlength : i32, perrorcode : *mut UErrorCode) -> i32); - unorm2_normalizeSecondAndAppend(core::mem::transmute(norm2), core::mem::transmute(first), core::mem::transmute(firstlength), core::mem::transmute(firstcapacity), core::mem::transmute(second), core::mem::transmute(secondlength), core::mem::transmute(perrorcode)) + unorm2_normalizeSecondAndAppend(norm2, core::mem::transmute(first), firstlength, firstcapacity, second, secondlength, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_openFiltered(norm2: *const UNormalizer2, filterset: *const USet, perrorcode: *mut UErrorCode) -> *mut UNormalizer2 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_openFiltered(norm2 : *const UNormalizer2, filterset : *const USet, perrorcode : *mut UErrorCode) -> *mut UNormalizer2); - unorm2_openFiltered(core::mem::transmute(norm2), core::mem::transmute(filterset), core::mem::transmute(perrorcode)) + unorm2_openFiltered(norm2, filterset, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_quickCheck(norm2: *const UNormalizer2, s: *const u16, length: i32, perrorcode: *mut UErrorCode) -> UNormalizationCheckResult { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_quickCheck(norm2 : *const UNormalizer2, s : *const u16, length : i32, perrorcode : *mut UErrorCode) -> UNormalizationCheckResult); - unorm2_quickCheck(core::mem::transmute(norm2), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(perrorcode)) + unorm2_quickCheck(norm2, s, length, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm2_spanQuickCheckYes(norm2: *const UNormalizer2, s: *const u16, length: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm2_spanQuickCheckYes(norm2 : *const UNormalizer2, s : *const u16, length : i32, perrorcode : *mut UErrorCode) -> i32); - unorm2_spanQuickCheckYes(core::mem::transmute(norm2), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(perrorcode)) + unorm2_spanQuickCheckYes(norm2, s, length, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unorm_compare(s1: *const u16, length1: i32, s2: *const u16, length2: i32, options: u32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn unorm_compare(s1 : *const u16, length1 : i32, s2 : *const u16, length2 : i32, options : u32, perrorcode : *mut UErrorCode) -> i32); - unorm_compare(core::mem::transmute(s1), core::mem::transmute(length1), core::mem::transmute(s2), core::mem::transmute(length2), core::mem::transmute(options), core::mem::transmute(perrorcode)) + unorm_compare(s1, length1, s2, length2, options, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn unum_applyPattern(format: *mut *mut core::ffi::c_void, localized: i8, pattern: *const u16, patternlength: i32, parseerror: *mut UParseError, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn unum_applyPattern(format : *mut *mut core::ffi::c_void, localized : i8, pattern : *const u16, patternlength : i32, parseerror : *mut UParseError, status : *mut UErrorCode)); - unum_applyPattern(core::mem::transmute(format), core::mem::transmute(localized), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(parseerror), core::mem::transmute(status)) + unum_applyPattern(core::mem::transmute(format), localized, pattern, patternlength, core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_clone(fmt: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn unum_clone(fmt : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - unum_clone(core::mem::transmute(fmt), core::mem::transmute(status)) + unum_clone(fmt, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_close(fmt: *mut *mut core::ffi::c_void) { @@ -5230,7 +5188,7 @@ pub unsafe fn unum_countAvailable() -> i32 { #[inline] pub unsafe fn unum_format(fmt: *const *const core::ffi::c_void, number: i32, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_format(fmt : *const *const core::ffi::c_void, number : i32, result : *mut u16, resultlength : i32, pos : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - unum_format(core::mem::transmute(fmt), core::mem::transmute(number), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(pos), core::mem::transmute(status)) + unum_format(fmt, number, core::mem::transmute(result), resultlength, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_formatDecimal(fmt: *const *const core::ffi::c_void, number: P1, length: i32, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 @@ -5238,67 +5196,67 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn unum_formatDecimal(fmt : *const *const core::ffi::c_void, number : windows_core::PCSTR, length : i32, result : *mut u16, resultlength : i32, pos : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - unum_formatDecimal(core::mem::transmute(fmt), number.param().abi(), core::mem::transmute(length), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(pos), core::mem::transmute(status)) + unum_formatDecimal(fmt, number.param().abi(), length, core::mem::transmute(result), resultlength, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_formatDouble(fmt: *const *const core::ffi::c_void, number: f64, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_formatDouble(fmt : *const *const core::ffi::c_void, number : f64, result : *mut u16, resultlength : i32, pos : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - unum_formatDouble(core::mem::transmute(fmt), core::mem::transmute(number), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(pos), core::mem::transmute(status)) + unum_formatDouble(fmt, number, core::mem::transmute(result), resultlength, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_formatDoubleCurrency(fmt: *const *const core::ffi::c_void, number: f64, currency: *mut u16, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_formatDoubleCurrency(fmt : *const *const core::ffi::c_void, number : f64, currency : *mut u16, result : *mut u16, resultlength : i32, pos : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - unum_formatDoubleCurrency(core::mem::transmute(fmt), core::mem::transmute(number), core::mem::transmute(currency), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(pos), core::mem::transmute(status)) + unum_formatDoubleCurrency(fmt, number, core::mem::transmute(currency), core::mem::transmute(result), resultlength, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_formatDoubleForFields(format: *const *const core::ffi::c_void, number: f64, result: *mut u16, resultlength: i32, fpositer: *mut UFieldPositionIterator, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_formatDoubleForFields(format : *const *const core::ffi::c_void, number : f64, result : *mut u16, resultlength : i32, fpositer : *mut UFieldPositionIterator, status : *mut UErrorCode) -> i32); - unum_formatDoubleForFields(core::mem::transmute(format), core::mem::transmute(number), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(fpositer), core::mem::transmute(status)) + unum_formatDoubleForFields(format, number, core::mem::transmute(result), resultlength, core::mem::transmute(fpositer), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_formatInt64(fmt: *const *const core::ffi::c_void, number: i64, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_formatInt64(fmt : *const *const core::ffi::c_void, number : i64, result : *mut u16, resultlength : i32, pos : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - unum_formatInt64(core::mem::transmute(fmt), core::mem::transmute(number), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(pos), core::mem::transmute(status)) + unum_formatInt64(fmt, number, core::mem::transmute(result), resultlength, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_formatUFormattable(fmt: *const *const core::ffi::c_void, number: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_formatUFormattable(fmt : *const *const core::ffi::c_void, number : *const *const core::ffi::c_void, result : *mut u16, resultlength : i32, pos : *mut UFieldPosition, status : *mut UErrorCode) -> i32); - unum_formatUFormattable(core::mem::transmute(fmt), core::mem::transmute(number), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(pos), core::mem::transmute(status)) + unum_formatUFormattable(fmt, number, core::mem::transmute(result), resultlength, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_getAttribute(fmt: *const *const core::ffi::c_void, attr: UNumberFormatAttribute) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_getAttribute(fmt : *const *const core::ffi::c_void, attr : UNumberFormatAttribute) -> i32); - unum_getAttribute(core::mem::transmute(fmt), core::mem::transmute(attr)) + unum_getAttribute(fmt, attr) } #[inline] pub unsafe fn unum_getAvailable(localeindex: i32) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn unum_getAvailable(localeindex : i32) -> windows_core::PCSTR); - unum_getAvailable(core::mem::transmute(localeindex)) + unum_getAvailable(localeindex) } #[inline] pub unsafe fn unum_getContext(fmt: *const *const core::ffi::c_void, r#type: UDisplayContextType, status: *mut UErrorCode) -> UDisplayContext { windows_targets::link!("icuin.dll" "cdecl" fn unum_getContext(fmt : *const *const core::ffi::c_void, r#type : UDisplayContextType, status : *mut UErrorCode) -> UDisplayContext); - unum_getContext(core::mem::transmute(fmt), core::mem::transmute(r#type), core::mem::transmute(status)) + unum_getContext(fmt, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_getDoubleAttribute(fmt: *const *const core::ffi::c_void, attr: UNumberFormatAttribute) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn unum_getDoubleAttribute(fmt : *const *const core::ffi::c_void, attr : UNumberFormatAttribute) -> f64); - unum_getDoubleAttribute(core::mem::transmute(fmt), core::mem::transmute(attr)) + unum_getDoubleAttribute(fmt, attr) } #[inline] pub unsafe fn unum_getLocaleByType(fmt: *const *const core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn unum_getLocaleByType(fmt : *const *const core::ffi::c_void, r#type : ULocDataLocaleType, status : *mut UErrorCode) -> windows_core::PCSTR); - unum_getLocaleByType(core::mem::transmute(fmt), core::mem::transmute(r#type), core::mem::transmute(status)) + unum_getLocaleByType(fmt, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_getSymbol(fmt: *const *const core::ffi::c_void, symbol: UNumberFormatSymbol, buffer: *mut u16, size: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_getSymbol(fmt : *const *const core::ffi::c_void, symbol : UNumberFormatSymbol, buffer : *mut u16, size : i32, status : *mut UErrorCode) -> i32); - unum_getSymbol(core::mem::transmute(fmt), core::mem::transmute(symbol), core::mem::transmute(buffer), core::mem::transmute(size), core::mem::transmute(status)) + unum_getSymbol(fmt, symbol, core::mem::transmute(buffer), size, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_getTextAttribute(fmt: *const *const core::ffi::c_void, tag: UNumberFormatTextAttribute, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_getTextAttribute(fmt : *const *const core::ffi::c_void, tag : UNumberFormatTextAttribute, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - unum_getTextAttribute(core::mem::transmute(fmt), core::mem::transmute(tag), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + unum_getTextAttribute(fmt, tag, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_open(style: UNumberFormatStyle, pattern: *const u16, patternlength: i32, locale: P3, parseerr: *mut UParseError, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void @@ -5306,12 +5264,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn unum_open(style : UNumberFormatStyle, pattern : *const u16, patternlength : i32, locale : windows_core::PCSTR, parseerr : *mut UParseError, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - unum_open(core::mem::transmute(style), core::mem::transmute(pattern), core::mem::transmute(patternlength), locale.param().abi(), core::mem::transmute(parseerr), core::mem::transmute(status)) + unum_open(style, pattern, patternlength, locale.param().abi(), core::mem::transmute(parseerr), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_parse(fmt: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_parse(fmt : *const *const core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, status : *mut UErrorCode) -> i32); - unum_parse(core::mem::transmute(fmt), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(status)) + unum_parse(fmt, text, textlength, core::mem::transmute(parsepos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_parseDecimal(fmt: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, outbuf: P4, outbuflength: i32, status: *mut UErrorCode) -> i32 @@ -5319,57 +5277,57 @@ where P4: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn unum_parseDecimal(fmt : *const *const core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, outbuf : windows_core::PCSTR, outbuflength : i32, status : *mut UErrorCode) -> i32); - unum_parseDecimal(core::mem::transmute(fmt), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), outbuf.param().abi(), core::mem::transmute(outbuflength), core::mem::transmute(status)) + unum_parseDecimal(fmt, text, textlength, core::mem::transmute(parsepos), outbuf.param().abi(), outbuflength, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_parseDouble(fmt: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, status: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn unum_parseDouble(fmt : *const *const core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, status : *mut UErrorCode) -> f64); - unum_parseDouble(core::mem::transmute(fmt), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(status)) + unum_parseDouble(fmt, text, textlength, core::mem::transmute(parsepos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_parseDoubleCurrency(fmt: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, currency: *mut u16, status: *mut UErrorCode) -> f64 { windows_targets::link!("icuin.dll" "cdecl" fn unum_parseDoubleCurrency(fmt : *const *const core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, currency : *mut u16, status : *mut UErrorCode) -> f64); - unum_parseDoubleCurrency(core::mem::transmute(fmt), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(currency), core::mem::transmute(status)) + unum_parseDoubleCurrency(fmt, text, textlength, core::mem::transmute(parsepos), core::mem::transmute(currency), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_parseInt64(fmt: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn unum_parseInt64(fmt : *const *const core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, status : *mut UErrorCode) -> i64); - unum_parseInt64(core::mem::transmute(fmt), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(status)) + unum_parseInt64(fmt, text, textlength, core::mem::transmute(parsepos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_parseToUFormattable(fmt: *const *const core::ffi::c_void, result: *mut *mut core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn unum_parseToUFormattable(fmt : *const *const core::ffi::c_void, result : *mut *mut core::ffi::c_void, text : *const u16, textlength : i32, parsepos : *mut i32, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - unum_parseToUFormattable(core::mem::transmute(fmt), core::mem::transmute(result), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(parsepos), core::mem::transmute(status)) + unum_parseToUFormattable(fmt, core::mem::transmute(result), text, textlength, core::mem::transmute(parsepos), core::mem::transmute(status)) } #[inline] pub unsafe fn unum_setAttribute(fmt: *mut *mut core::ffi::c_void, attr: UNumberFormatAttribute, newvalue: i32) { windows_targets::link!("icuin.dll" "cdecl" fn unum_setAttribute(fmt : *mut *mut core::ffi::c_void, attr : UNumberFormatAttribute, newvalue : i32)); - unum_setAttribute(core::mem::transmute(fmt), core::mem::transmute(attr), core::mem::transmute(newvalue)) + unum_setAttribute(core::mem::transmute(fmt), attr, newvalue) } #[inline] pub unsafe fn unum_setContext(fmt: *mut *mut core::ffi::c_void, value: UDisplayContext, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn unum_setContext(fmt : *mut *mut core::ffi::c_void, value : UDisplayContext, status : *mut UErrorCode)); - unum_setContext(core::mem::transmute(fmt), core::mem::transmute(value), core::mem::transmute(status)) + unum_setContext(core::mem::transmute(fmt), value, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_setDoubleAttribute(fmt: *mut *mut core::ffi::c_void, attr: UNumberFormatAttribute, newvalue: f64) { windows_targets::link!("icuin.dll" "cdecl" fn unum_setDoubleAttribute(fmt : *mut *mut core::ffi::c_void, attr : UNumberFormatAttribute, newvalue : f64)); - unum_setDoubleAttribute(core::mem::transmute(fmt), core::mem::transmute(attr), core::mem::transmute(newvalue)) + unum_setDoubleAttribute(core::mem::transmute(fmt), attr, newvalue) } #[inline] pub unsafe fn unum_setSymbol(fmt: *mut *mut core::ffi::c_void, symbol: UNumberFormatSymbol, value: *const u16, length: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn unum_setSymbol(fmt : *mut *mut core::ffi::c_void, symbol : UNumberFormatSymbol, value : *const u16, length : i32, status : *mut UErrorCode)); - unum_setSymbol(core::mem::transmute(fmt), core::mem::transmute(symbol), core::mem::transmute(value), core::mem::transmute(length), core::mem::transmute(status)) + unum_setSymbol(core::mem::transmute(fmt), symbol, value, length, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_setTextAttribute(fmt: *mut *mut core::ffi::c_void, tag: UNumberFormatTextAttribute, newvalue: *const u16, newvaluelength: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn unum_setTextAttribute(fmt : *mut *mut core::ffi::c_void, tag : UNumberFormatTextAttribute, newvalue : *const u16, newvaluelength : i32, status : *mut UErrorCode)); - unum_setTextAttribute(core::mem::transmute(fmt), core::mem::transmute(tag), core::mem::transmute(newvalue), core::mem::transmute(newvaluelength), core::mem::transmute(status)) + unum_setTextAttribute(core::mem::transmute(fmt), tag, newvalue, newvaluelength, core::mem::transmute(status)) } #[inline] pub unsafe fn unum_toPattern(fmt: *const *const core::ffi::c_void, ispatternlocalized: i8, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unum_toPattern(fmt : *const *const core::ffi::c_void, ispatternlocalized : i8, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - unum_toPattern(core::mem::transmute(fmt), core::mem::transmute(ispatternlocalized), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + unum_toPattern(fmt, ispatternlocalized, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn unumf_close(uformatter: *mut UNumberFormatter) { @@ -5387,17 +5345,17 @@ where P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn unumf_formatDecimal(uformatter : *const UNumberFormatter, value : windows_core::PCSTR, valuelen : i32, uresult : *mut UFormattedNumber, ec : *mut UErrorCode)); - unumf_formatDecimal(core::mem::transmute(uformatter), value.param().abi(), core::mem::transmute(valuelen), core::mem::transmute(uresult), core::mem::transmute(ec)) + unumf_formatDecimal(uformatter, value.param().abi(), valuelen, core::mem::transmute(uresult), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_formatDouble(uformatter: *const UNumberFormatter, value: f64, uresult: *mut UFormattedNumber, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn unumf_formatDouble(uformatter : *const UNumberFormatter, value : f64, uresult : *mut UFormattedNumber, ec : *mut UErrorCode)); - unumf_formatDouble(core::mem::transmute(uformatter), core::mem::transmute(value), core::mem::transmute(uresult), core::mem::transmute(ec)) + unumf_formatDouble(uformatter, value, core::mem::transmute(uresult), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_formatInt(uformatter: *const UNumberFormatter, value: i64, uresult: *mut UFormattedNumber, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn unumf_formatInt(uformatter : *const UNumberFormatter, value : i64, uresult : *mut UFormattedNumber, ec : *mut UErrorCode)); - unumf_formatInt(core::mem::transmute(uformatter), core::mem::transmute(value), core::mem::transmute(uresult), core::mem::transmute(ec)) + unumf_formatInt(uformatter, value, core::mem::transmute(uresult), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_openForSkeletonAndLocale(skeleton: *const u16, skeletonlen: i32, locale: P2, ec: *mut UErrorCode) -> *mut UNumberFormatter @@ -5405,7 +5363,7 @@ where P2: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn unumf_openForSkeletonAndLocale(skeleton : *const u16, skeletonlen : i32, locale : windows_core::PCSTR, ec : *mut UErrorCode) -> *mut UNumberFormatter); - unumf_openForSkeletonAndLocale(core::mem::transmute(skeleton), core::mem::transmute(skeletonlen), locale.param().abi(), core::mem::transmute(ec)) + unumf_openForSkeletonAndLocale(skeleton, skeletonlen, locale.param().abi(), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_openForSkeletonAndLocaleWithError(skeleton: *const u16, skeletonlen: i32, locale: P2, perror: *mut UParseError, ec: *mut UErrorCode) -> *mut UNumberFormatter @@ -5413,7 +5371,7 @@ where P2: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn unumf_openForSkeletonAndLocaleWithError(skeleton : *const u16, skeletonlen : i32, locale : windows_core::PCSTR, perror : *mut UParseError, ec : *mut UErrorCode) -> *mut UNumberFormatter); - unumf_openForSkeletonAndLocaleWithError(core::mem::transmute(skeleton), core::mem::transmute(skeletonlen), locale.param().abi(), core::mem::transmute(perror), core::mem::transmute(ec)) + unumf_openForSkeletonAndLocaleWithError(skeleton, skeletonlen, locale.param().abi(), core::mem::transmute(perror), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_openResult(ec: *mut UErrorCode) -> *mut UFormattedNumber { @@ -5423,22 +5381,22 @@ pub unsafe fn unumf_openResult(ec: *mut UErrorCode) -> *mut UFormattedNumber { #[inline] pub unsafe fn unumf_resultAsValue(uresult: *const UFormattedNumber, ec: *mut UErrorCode) -> *mut UFormattedValue { windows_targets::link!("icu.dll" "cdecl" fn unumf_resultAsValue(uresult : *const UFormattedNumber, ec : *mut UErrorCode) -> *mut UFormattedValue); - unumf_resultAsValue(core::mem::transmute(uresult), core::mem::transmute(ec)) + unumf_resultAsValue(uresult, core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_resultGetAllFieldPositions(uresult: *const UFormattedNumber, ufpositer: *mut UFieldPositionIterator, ec: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn unumf_resultGetAllFieldPositions(uresult : *const UFormattedNumber, ufpositer : *mut UFieldPositionIterator, ec : *mut UErrorCode)); - unumf_resultGetAllFieldPositions(core::mem::transmute(uresult), core::mem::transmute(ufpositer), core::mem::transmute(ec)) + unumf_resultGetAllFieldPositions(uresult, core::mem::transmute(ufpositer), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_resultNextFieldPosition(uresult: *const UFormattedNumber, ufpos: *mut UFieldPosition, ec: *mut UErrorCode) -> i8 { windows_targets::link!("icu.dll" "cdecl" fn unumf_resultNextFieldPosition(uresult : *const UFormattedNumber, ufpos : *mut UFieldPosition, ec : *mut UErrorCode) -> i8); - unumf_resultNextFieldPosition(core::mem::transmute(uresult), core::mem::transmute(ufpos), core::mem::transmute(ec)) + unumf_resultNextFieldPosition(uresult, core::mem::transmute(ufpos), core::mem::transmute(ec)) } #[inline] pub unsafe fn unumf_resultToString(uresult: *const UFormattedNumber, buffer: *mut u16, buffercapacity: i32, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn unumf_resultToString(uresult : *const UFormattedNumber, buffer : *mut u16, buffercapacity : i32, ec : *mut UErrorCode) -> i32); - unumf_resultToString(core::mem::transmute(uresult), core::mem::transmute(buffer), core::mem::transmute(buffercapacity), core::mem::transmute(ec)) + unumf_resultToString(uresult, core::mem::transmute(buffer), buffercapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn unumsys_close(unumsys: *mut UNumberingSystem) { @@ -5448,22 +5406,22 @@ pub unsafe fn unumsys_close(unumsys: *mut UNumberingSystem) { #[inline] pub unsafe fn unumsys_getDescription(unumsys: *const UNumberingSystem, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unumsys_getDescription(unumsys : *const UNumberingSystem, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - unumsys_getDescription(core::mem::transmute(unumsys), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + unumsys_getDescription(unumsys, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn unumsys_getName(unumsys: *const UNumberingSystem) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn unumsys_getName(unumsys : *const UNumberingSystem) -> windows_core::PCSTR); - unumsys_getName(core::mem::transmute(unumsys)) + unumsys_getName(unumsys) } #[inline] pub unsafe fn unumsys_getRadix(unumsys: *const UNumberingSystem) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn unumsys_getRadix(unumsys : *const UNumberingSystem) -> i32); - unumsys_getRadix(core::mem::transmute(unumsys)) + unumsys_getRadix(unumsys) } #[inline] pub unsafe fn unumsys_isAlgorithmic(unumsys: *const UNumberingSystem) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn unumsys_isAlgorithmic(unumsys : *const UNumberingSystem) -> i8); - unumsys_isAlgorithmic(core::mem::transmute(unumsys)) + unumsys_isAlgorithmic(unumsys) } #[inline] pub unsafe fn unumsys_open(locale: P0, status: *mut UErrorCode) -> *mut UNumberingSystem @@ -5494,7 +5452,7 @@ pub unsafe fn uplrules_close(uplrules: *mut UPluralRules) { #[inline] pub unsafe fn uplrules_getKeywords(uplrules: *const UPluralRules, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn uplrules_getKeywords(uplrules : *const UPluralRules, status : *mut UErrorCode) -> *mut UEnumeration); - uplrules_getKeywords(core::mem::transmute(uplrules), core::mem::transmute(status)) + uplrules_getKeywords(uplrules, core::mem::transmute(status)) } #[inline] pub unsafe fn uplrules_open(locale: P0, status: *mut UErrorCode) -> *mut UPluralRules @@ -5510,22 +5468,22 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uplrules_openForType(locale : windows_core::PCSTR, r#type : UPluralType, status : *mut UErrorCode) -> *mut UPluralRules); - uplrules_openForType(locale.param().abi(), core::mem::transmute(r#type), core::mem::transmute(status)) + uplrules_openForType(locale.param().abi(), r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn uplrules_select(uplrules: *const UPluralRules, number: f64, keyword: *mut u16, capacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uplrules_select(uplrules : *const UPluralRules, number : f64, keyword : *mut u16, capacity : i32, status : *mut UErrorCode) -> i32); - uplrules_select(core::mem::transmute(uplrules), core::mem::transmute(number), core::mem::transmute(keyword), core::mem::transmute(capacity), core::mem::transmute(status)) + uplrules_select(uplrules, number, core::mem::transmute(keyword), capacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uplrules_selectFormatted(uplrules: *const UPluralRules, number: *const UFormattedNumber, keyword: *mut u16, capacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icu.dll" "cdecl" fn uplrules_selectFormatted(uplrules : *const UPluralRules, number : *const UFormattedNumber, keyword : *mut u16, capacity : i32, status : *mut UErrorCode) -> i32); - uplrules_selectFormatted(core::mem::transmute(uplrules), core::mem::transmute(number), core::mem::transmute(keyword), core::mem::transmute(capacity), core::mem::transmute(status)) + uplrules_selectFormatted(uplrules, number, core::mem::transmute(keyword), capacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_appendReplacement(regexp: *mut URegularExpression, replacementtext: *const u16, replacementlength: i32, destbuf: *mut *mut u16, destcapacity: *mut i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_appendReplacement(regexp : *mut URegularExpression, replacementtext : *const u16, replacementlength : i32, destbuf : *mut *mut u16, destcapacity : *mut i32, status : *mut UErrorCode) -> i32); - uregex_appendReplacement(core::mem::transmute(regexp), core::mem::transmute(replacementtext), core::mem::transmute(replacementlength), core::mem::transmute(destbuf), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uregex_appendReplacement(core::mem::transmute(regexp), replacementtext, replacementlength, core::mem::transmute(destbuf), core::mem::transmute(destcapacity), core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_appendReplacementUText(regexp: *mut URegularExpression, replacementtext: *mut UText, dest: *mut UText, status: *mut UErrorCode) { @@ -5545,7 +5503,7 @@ pub unsafe fn uregex_appendTailUText(regexp: *mut URegularExpression, dest: *mut #[inline] pub unsafe fn uregex_clone(regexp: *const URegularExpression, status: *mut UErrorCode) -> *mut URegularExpression { windows_targets::link!("icuin.dll" "cdecl" fn uregex_clone(regexp : *const URegularExpression, status : *mut UErrorCode) -> *mut URegularExpression); - uregex_clone(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_clone(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_close(regexp: *mut URegularExpression) { @@ -5555,22 +5513,22 @@ pub unsafe fn uregex_close(regexp: *mut URegularExpression) { #[inline] pub unsafe fn uregex_end(regexp: *mut URegularExpression, groupnum: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_end(regexp : *mut URegularExpression, groupnum : i32, status : *mut UErrorCode) -> i32); - uregex_end(core::mem::transmute(regexp), core::mem::transmute(groupnum), core::mem::transmute(status)) + uregex_end(core::mem::transmute(regexp), groupnum, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_end64(regexp: *mut URegularExpression, groupnum: i32, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_end64(regexp : *mut URegularExpression, groupnum : i32, status : *mut UErrorCode) -> i64); - uregex_end64(core::mem::transmute(regexp), core::mem::transmute(groupnum), core::mem::transmute(status)) + uregex_end64(core::mem::transmute(regexp), groupnum, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_find(regexp: *mut URegularExpression, startindex: i32, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_find(regexp : *mut URegularExpression, startindex : i32, status : *mut UErrorCode) -> i8); - uregex_find(core::mem::transmute(regexp), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_find(core::mem::transmute(regexp), startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_find64(regexp: *mut URegularExpression, startindex: i64, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_find64(regexp : *mut URegularExpression, startindex : i64, status : *mut UErrorCode) -> i8); - uregex_find64(core::mem::transmute(regexp), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_find64(core::mem::transmute(regexp), startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_findNext(regexp: *mut URegularExpression, status: *mut UErrorCode) -> i8 { @@ -5580,22 +5538,22 @@ pub unsafe fn uregex_findNext(regexp: *mut URegularExpression, status: *mut UErr #[inline] pub unsafe fn uregex_flags(regexp: *const URegularExpression, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_flags(regexp : *const URegularExpression, status : *mut UErrorCode) -> i32); - uregex_flags(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_flags(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_getFindProgressCallback(regexp: *const URegularExpression, callback: *mut URegexFindProgressCallback, context: *const *const core::ffi::c_void, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_getFindProgressCallback(regexp : *const URegularExpression, callback : *mut URegexFindProgressCallback, context : *const *const core::ffi::c_void, status : *mut UErrorCode)); - uregex_getFindProgressCallback(core::mem::transmute(regexp), core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(status)) + uregex_getFindProgressCallback(regexp, core::mem::transmute(callback), context, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_getMatchCallback(regexp: *const URegularExpression, callback: *mut URegexMatchCallback, context: *const *const core::ffi::c_void, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_getMatchCallback(regexp : *const URegularExpression, callback : *mut URegexMatchCallback, context : *const *const core::ffi::c_void, status : *mut UErrorCode)); - uregex_getMatchCallback(core::mem::transmute(regexp), core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(status)) + uregex_getMatchCallback(regexp, core::mem::transmute(callback), context, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_getStackLimit(regexp: *const URegularExpression, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_getStackLimit(regexp : *const URegularExpression, status : *mut UErrorCode) -> i32); - uregex_getStackLimit(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_getStackLimit(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_getText(regexp: *mut URegularExpression, textlength: *mut i32, status: *mut UErrorCode) -> *mut u16 { @@ -5605,7 +5563,7 @@ pub unsafe fn uregex_getText(regexp: *mut URegularExpression, textlength: *mut i #[inline] pub unsafe fn uregex_getTimeLimit(regexp: *const URegularExpression, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_getTimeLimit(regexp : *const URegularExpression, status : *mut UErrorCode) -> i32); - uregex_getTimeLimit(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_getTimeLimit(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_getUText(regexp: *mut URegularExpression, dest: *mut UText, status: *mut UErrorCode) -> *mut UText { @@ -5615,7 +5573,7 @@ pub unsafe fn uregex_getUText(regexp: *mut URegularExpression, dest: *mut UText, #[inline] pub unsafe fn uregex_group(regexp: *mut URegularExpression, groupnum: i32, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_group(regexp : *mut URegularExpression, groupnum : i32, dest : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - uregex_group(core::mem::transmute(regexp), core::mem::transmute(groupnum), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uregex_group(core::mem::transmute(regexp), groupnum, core::mem::transmute(dest), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_groupCount(regexp: *mut URegularExpression, status: *mut UErrorCode) -> i32 { @@ -5628,57 +5586,57 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uregex_groupNumberFromCName(regexp : *mut URegularExpression, groupname : windows_core::PCSTR, namelength : i32, status : *mut UErrorCode) -> i32); - uregex_groupNumberFromCName(core::mem::transmute(regexp), groupname.param().abi(), core::mem::transmute(namelength), core::mem::transmute(status)) + uregex_groupNumberFromCName(core::mem::transmute(regexp), groupname.param().abi(), namelength, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_groupNumberFromName(regexp: *mut URegularExpression, groupname: *const u16, namelength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_groupNumberFromName(regexp : *mut URegularExpression, groupname : *const u16, namelength : i32, status : *mut UErrorCode) -> i32); - uregex_groupNumberFromName(core::mem::transmute(regexp), core::mem::transmute(groupname), core::mem::transmute(namelength), core::mem::transmute(status)) + uregex_groupNumberFromName(core::mem::transmute(regexp), groupname, namelength, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_groupUText(regexp: *mut URegularExpression, groupnum: i32, dest: *mut UText, grouplength: *mut i64, status: *mut UErrorCode) -> *mut UText { windows_targets::link!("icuin.dll" "cdecl" fn uregex_groupUText(regexp : *mut URegularExpression, groupnum : i32, dest : *mut UText, grouplength : *mut i64, status : *mut UErrorCode) -> *mut UText); - uregex_groupUText(core::mem::transmute(regexp), core::mem::transmute(groupnum), core::mem::transmute(dest), core::mem::transmute(grouplength), core::mem::transmute(status)) + uregex_groupUText(core::mem::transmute(regexp), groupnum, core::mem::transmute(dest), core::mem::transmute(grouplength), core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_hasAnchoringBounds(regexp: *const URegularExpression, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_hasAnchoringBounds(regexp : *const URegularExpression, status : *mut UErrorCode) -> i8); - uregex_hasAnchoringBounds(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_hasAnchoringBounds(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_hasTransparentBounds(regexp: *const URegularExpression, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_hasTransparentBounds(regexp : *const URegularExpression, status : *mut UErrorCode) -> i8); - uregex_hasTransparentBounds(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_hasTransparentBounds(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_hitEnd(regexp: *const URegularExpression, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_hitEnd(regexp : *const URegularExpression, status : *mut UErrorCode) -> i8); - uregex_hitEnd(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_hitEnd(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_lookingAt(regexp: *mut URegularExpression, startindex: i32, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_lookingAt(regexp : *mut URegularExpression, startindex : i32, status : *mut UErrorCode) -> i8); - uregex_lookingAt(core::mem::transmute(regexp), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_lookingAt(core::mem::transmute(regexp), startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_lookingAt64(regexp: *mut URegularExpression, startindex: i64, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_lookingAt64(regexp : *mut URegularExpression, startindex : i64, status : *mut UErrorCode) -> i8); - uregex_lookingAt64(core::mem::transmute(regexp), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_lookingAt64(core::mem::transmute(regexp), startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_matches(regexp: *mut URegularExpression, startindex: i32, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_matches(regexp : *mut URegularExpression, startindex : i32, status : *mut UErrorCode) -> i8); - uregex_matches(core::mem::transmute(regexp), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_matches(core::mem::transmute(regexp), startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_matches64(regexp: *mut URegularExpression, startindex: i64, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_matches64(regexp : *mut URegularExpression, startindex : i64, status : *mut UErrorCode) -> i8); - uregex_matches64(core::mem::transmute(regexp), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_matches64(core::mem::transmute(regexp), startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_open(pattern: *const u16, patternlength: i32, flags: u32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut URegularExpression { windows_targets::link!("icuin.dll" "cdecl" fn uregex_open(pattern : *const u16, patternlength : i32, flags : u32, pe : *mut UParseError, status : *mut UErrorCode) -> *mut URegularExpression); - uregex_open(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(flags), core::mem::transmute(pe), core::mem::transmute(status)) + uregex_open(pattern, patternlength, flags, core::mem::transmute(pe), core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_openC(pattern: P0, flags: u32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut URegularExpression @@ -5686,22 +5644,22 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uregex_openC(pattern : windows_core::PCSTR, flags : u32, pe : *mut UParseError, status : *mut UErrorCode) -> *mut URegularExpression); - uregex_openC(pattern.param().abi(), core::mem::transmute(flags), core::mem::transmute(pe), core::mem::transmute(status)) + uregex_openC(pattern.param().abi(), flags, core::mem::transmute(pe), core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_openUText(pattern: *mut UText, flags: u32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut URegularExpression { windows_targets::link!("icuin.dll" "cdecl" fn uregex_openUText(pattern : *mut UText, flags : u32, pe : *mut UParseError, status : *mut UErrorCode) -> *mut URegularExpression); - uregex_openUText(core::mem::transmute(pattern), core::mem::transmute(flags), core::mem::transmute(pe), core::mem::transmute(status)) + uregex_openUText(core::mem::transmute(pattern), flags, core::mem::transmute(pe), core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_pattern(regexp: *const URegularExpression, patlength: *mut i32, status: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_pattern(regexp : *const URegularExpression, patlength : *mut i32, status : *mut UErrorCode) -> *mut u16); - uregex_pattern(core::mem::transmute(regexp), core::mem::transmute(patlength), core::mem::transmute(status)) + uregex_pattern(regexp, core::mem::transmute(patlength), core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_patternUText(regexp: *const URegularExpression, status: *mut UErrorCode) -> *mut UText { windows_targets::link!("icuin.dll" "cdecl" fn uregex_patternUText(regexp : *const URegularExpression, status : *mut UErrorCode) -> *mut UText); - uregex_patternUText(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_patternUText(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_refreshUText(regexp: *mut URegularExpression, text: *mut UText, status: *mut UErrorCode) { @@ -5711,27 +5669,27 @@ pub unsafe fn uregex_refreshUText(regexp: *mut URegularExpression, text: *mut UT #[inline] pub unsafe fn uregex_regionEnd(regexp: *const URegularExpression, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_regionEnd(regexp : *const URegularExpression, status : *mut UErrorCode) -> i32); - uregex_regionEnd(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_regionEnd(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_regionEnd64(regexp: *const URegularExpression, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_regionEnd64(regexp : *const URegularExpression, status : *mut UErrorCode) -> i64); - uregex_regionEnd64(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_regionEnd64(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_regionStart(regexp: *const URegularExpression, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_regionStart(regexp : *const URegularExpression, status : *mut UErrorCode) -> i32); - uregex_regionStart(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_regionStart(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_regionStart64(regexp: *const URegularExpression, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_regionStart64(regexp : *const URegularExpression, status : *mut UErrorCode) -> i64); - uregex_regionStart64(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_regionStart64(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_replaceAll(regexp: *mut URegularExpression, replacementtext: *const u16, replacementlength: i32, destbuf: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_replaceAll(regexp : *mut URegularExpression, replacementtext : *const u16, replacementlength : i32, destbuf : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - uregex_replaceAll(core::mem::transmute(regexp), core::mem::transmute(replacementtext), core::mem::transmute(replacementlength), core::mem::transmute(destbuf), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uregex_replaceAll(core::mem::transmute(regexp), replacementtext, replacementlength, core::mem::transmute(destbuf), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_replaceAllUText(regexp: *mut URegularExpression, replacement: *mut UText, dest: *mut UText, status: *mut UErrorCode) -> *mut UText { @@ -5741,7 +5699,7 @@ pub unsafe fn uregex_replaceAllUText(regexp: *mut URegularExpression, replacemen #[inline] pub unsafe fn uregex_replaceFirst(regexp: *mut URegularExpression, replacementtext: *const u16, replacementlength: i32, destbuf: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_replaceFirst(regexp : *mut URegularExpression, replacementtext : *const u16, replacementlength : i32, destbuf : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - uregex_replaceFirst(core::mem::transmute(regexp), core::mem::transmute(replacementtext), core::mem::transmute(replacementlength), core::mem::transmute(destbuf), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uregex_replaceFirst(core::mem::transmute(regexp), replacementtext, replacementlength, core::mem::transmute(destbuf), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_replaceFirstUText(regexp: *mut URegularExpression, replacement: *mut UText, dest: *mut UText, status: *mut UErrorCode) -> *mut UText { @@ -5751,57 +5709,57 @@ pub unsafe fn uregex_replaceFirstUText(regexp: *mut URegularExpression, replacem #[inline] pub unsafe fn uregex_requireEnd(regexp: *const URegularExpression, status: *mut UErrorCode) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_requireEnd(regexp : *const URegularExpression, status : *mut UErrorCode) -> i8); - uregex_requireEnd(core::mem::transmute(regexp), core::mem::transmute(status)) + uregex_requireEnd(regexp, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_reset(regexp: *mut URegularExpression, index: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_reset(regexp : *mut URegularExpression, index : i32, status : *mut UErrorCode)); - uregex_reset(core::mem::transmute(regexp), core::mem::transmute(index), core::mem::transmute(status)) + uregex_reset(core::mem::transmute(regexp), index, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_reset64(regexp: *mut URegularExpression, index: i64, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_reset64(regexp : *mut URegularExpression, index : i64, status : *mut UErrorCode)); - uregex_reset64(core::mem::transmute(regexp), core::mem::transmute(index), core::mem::transmute(status)) + uregex_reset64(core::mem::transmute(regexp), index, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setFindProgressCallback(regexp: *mut URegularExpression, callback: URegexFindProgressCallback, context: *const core::ffi::c_void, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setFindProgressCallback(regexp : *mut URegularExpression, callback : URegexFindProgressCallback, context : *const core::ffi::c_void, status : *mut UErrorCode)); - uregex_setFindProgressCallback(core::mem::transmute(regexp), core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(status)) + uregex_setFindProgressCallback(core::mem::transmute(regexp), callback, context, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setMatchCallback(regexp: *mut URegularExpression, callback: URegexMatchCallback, context: *const core::ffi::c_void, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setMatchCallback(regexp : *mut URegularExpression, callback : URegexMatchCallback, context : *const core::ffi::c_void, status : *mut UErrorCode)); - uregex_setMatchCallback(core::mem::transmute(regexp), core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(status)) + uregex_setMatchCallback(core::mem::transmute(regexp), callback, context, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setRegion(regexp: *mut URegularExpression, regionstart: i32, regionlimit: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setRegion(regexp : *mut URegularExpression, regionstart : i32, regionlimit : i32, status : *mut UErrorCode)); - uregex_setRegion(core::mem::transmute(regexp), core::mem::transmute(regionstart), core::mem::transmute(regionlimit), core::mem::transmute(status)) + uregex_setRegion(core::mem::transmute(regexp), regionstart, regionlimit, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setRegion64(regexp: *mut URegularExpression, regionstart: i64, regionlimit: i64, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setRegion64(regexp : *mut URegularExpression, regionstart : i64, regionlimit : i64, status : *mut UErrorCode)); - uregex_setRegion64(core::mem::transmute(regexp), core::mem::transmute(regionstart), core::mem::transmute(regionlimit), core::mem::transmute(status)) + uregex_setRegion64(core::mem::transmute(regexp), regionstart, regionlimit, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setRegionAndStart(regexp: *mut URegularExpression, regionstart: i64, regionlimit: i64, startindex: i64, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setRegionAndStart(regexp : *mut URegularExpression, regionstart : i64, regionlimit : i64, startindex : i64, status : *mut UErrorCode)); - uregex_setRegionAndStart(core::mem::transmute(regexp), core::mem::transmute(regionstart), core::mem::transmute(regionlimit), core::mem::transmute(startindex), core::mem::transmute(status)) + uregex_setRegionAndStart(core::mem::transmute(regexp), regionstart, regionlimit, startindex, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setStackLimit(regexp: *mut URegularExpression, limit: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setStackLimit(regexp : *mut URegularExpression, limit : i32, status : *mut UErrorCode)); - uregex_setStackLimit(core::mem::transmute(regexp), core::mem::transmute(limit), core::mem::transmute(status)) + uregex_setStackLimit(core::mem::transmute(regexp), limit, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setText(regexp: *mut URegularExpression, text: *const u16, textlength: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setText(regexp : *mut URegularExpression, text : *const u16, textlength : i32, status : *mut UErrorCode)); - uregex_setText(core::mem::transmute(regexp), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + uregex_setText(core::mem::transmute(regexp), text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setTimeLimit(regexp: *mut URegularExpression, limit: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_setTimeLimit(regexp : *mut URegularExpression, limit : i32, status : *mut UErrorCode)); - uregex_setTimeLimit(core::mem::transmute(regexp), core::mem::transmute(limit), core::mem::transmute(status)) + uregex_setTimeLimit(core::mem::transmute(regexp), limit, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_setUText(regexp: *mut URegularExpression, text: *mut UText, status: *mut UErrorCode) { @@ -5811,82 +5769,82 @@ pub unsafe fn uregex_setUText(regexp: *mut URegularExpression, text: *mut UText, #[inline] pub unsafe fn uregex_split(regexp: *mut URegularExpression, destbuf: *mut u16, destcapacity: i32, requiredcapacity: *mut i32, destfields: *mut *mut u16, destfieldscapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_split(regexp : *mut URegularExpression, destbuf : *mut u16, destcapacity : i32, requiredcapacity : *mut i32, destfields : *mut *mut u16, destfieldscapacity : i32, status : *mut UErrorCode) -> i32); - uregex_split(core::mem::transmute(regexp), core::mem::transmute(destbuf), core::mem::transmute(destcapacity), core::mem::transmute(requiredcapacity), core::mem::transmute(destfields), core::mem::transmute(destfieldscapacity), core::mem::transmute(status)) + uregex_split(core::mem::transmute(regexp), core::mem::transmute(destbuf), destcapacity, core::mem::transmute(requiredcapacity), core::mem::transmute(destfields), destfieldscapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_splitUText(regexp: *mut URegularExpression, destfields: *mut *mut UText, destfieldscapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_splitUText(regexp : *mut URegularExpression, destfields : *mut *mut UText, destfieldscapacity : i32, status : *mut UErrorCode) -> i32); - uregex_splitUText(core::mem::transmute(regexp), core::mem::transmute(destfields), core::mem::transmute(destfieldscapacity), core::mem::transmute(status)) + uregex_splitUText(core::mem::transmute(regexp), core::mem::transmute(destfields), destfieldscapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_start(regexp: *mut URegularExpression, groupnum: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_start(regexp : *mut URegularExpression, groupnum : i32, status : *mut UErrorCode) -> i32); - uregex_start(core::mem::transmute(regexp), core::mem::transmute(groupnum), core::mem::transmute(status)) + uregex_start(core::mem::transmute(regexp), groupnum, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_start64(regexp: *mut URegularExpression, groupnum: i32, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn uregex_start64(regexp : *mut URegularExpression, groupnum : i32, status : *mut UErrorCode) -> i64); - uregex_start64(core::mem::transmute(regexp), core::mem::transmute(groupnum), core::mem::transmute(status)) + uregex_start64(core::mem::transmute(regexp), groupnum, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_useAnchoringBounds(regexp: *mut URegularExpression, b: i8, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_useAnchoringBounds(regexp : *mut URegularExpression, b : i8, status : *mut UErrorCode)); - uregex_useAnchoringBounds(core::mem::transmute(regexp), core::mem::transmute(b), core::mem::transmute(status)) + uregex_useAnchoringBounds(core::mem::transmute(regexp), b, core::mem::transmute(status)) } #[inline] pub unsafe fn uregex_useTransparentBounds(regexp: *mut URegularExpression, b: i8, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uregex_useTransparentBounds(regexp : *mut URegularExpression, b : i8, status : *mut UErrorCode)); - uregex_useTransparentBounds(core::mem::transmute(regexp), core::mem::transmute(b), core::mem::transmute(status)) + uregex_useTransparentBounds(core::mem::transmute(regexp), b, core::mem::transmute(status)) } #[inline] pub unsafe fn uregion_areEqual(uregion: *const URegion, otherregion: *const URegion) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregion_areEqual(uregion : *const URegion, otherregion : *const URegion) -> i8); - uregion_areEqual(core::mem::transmute(uregion), core::mem::transmute(otherregion)) + uregion_areEqual(uregion, otherregion) } #[inline] pub unsafe fn uregion_contains(uregion: *const URegion, otherregion: *const URegion) -> i8 { windows_targets::link!("icuin.dll" "cdecl" fn uregion_contains(uregion : *const URegion, otherregion : *const URegion) -> i8); - uregion_contains(core::mem::transmute(uregion), core::mem::transmute(otherregion)) + uregion_contains(uregion, otherregion) } #[inline] pub unsafe fn uregion_getAvailable(r#type: URegionType, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getAvailable(r#type : URegionType, status : *mut UErrorCode) -> *mut UEnumeration); - uregion_getAvailable(core::mem::transmute(r#type), core::mem::transmute(status)) + uregion_getAvailable(r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn uregion_getContainedRegions(uregion: *const URegion, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getContainedRegions(uregion : *const URegion, status : *mut UErrorCode) -> *mut UEnumeration); - uregion_getContainedRegions(core::mem::transmute(uregion), core::mem::transmute(status)) + uregion_getContainedRegions(uregion, core::mem::transmute(status)) } #[inline] pub unsafe fn uregion_getContainedRegionsOfType(uregion: *const URegion, r#type: URegionType, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getContainedRegionsOfType(uregion : *const URegion, r#type : URegionType, status : *mut UErrorCode) -> *mut UEnumeration); - uregion_getContainedRegionsOfType(core::mem::transmute(uregion), core::mem::transmute(r#type), core::mem::transmute(status)) + uregion_getContainedRegionsOfType(uregion, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn uregion_getContainingRegion(uregion: *const URegion) -> *mut URegion { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getContainingRegion(uregion : *const URegion) -> *mut URegion); - uregion_getContainingRegion(core::mem::transmute(uregion)) + uregion_getContainingRegion(uregion) } #[inline] pub unsafe fn uregion_getContainingRegionOfType(uregion: *const URegion, r#type: URegionType) -> *mut URegion { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getContainingRegionOfType(uregion : *const URegion, r#type : URegionType) -> *mut URegion); - uregion_getContainingRegionOfType(core::mem::transmute(uregion), core::mem::transmute(r#type)) + uregion_getContainingRegionOfType(uregion, r#type) } #[inline] pub unsafe fn uregion_getNumericCode(uregion: *const URegion) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getNumericCode(uregion : *const URegion) -> i32); - uregion_getNumericCode(core::mem::transmute(uregion)) + uregion_getNumericCode(uregion) } #[inline] pub unsafe fn uregion_getPreferredValues(uregion: *const URegion, status: *mut UErrorCode) -> *mut UEnumeration { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getPreferredValues(uregion : *const URegion, status : *mut UErrorCode) -> *mut UEnumeration); - uregion_getPreferredValues(core::mem::transmute(uregion), core::mem::transmute(status)) + uregion_getPreferredValues(uregion, core::mem::transmute(status)) } #[inline] pub unsafe fn uregion_getRegionCode(uregion: *const URegion) -> windows_core::PCSTR { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getRegionCode(uregion : *const URegion) -> windows_core::PCSTR); - uregion_getRegionCode(core::mem::transmute(uregion)) + uregion_getRegionCode(uregion) } #[inline] pub unsafe fn uregion_getRegionFromCode(regioncode: P0, status: *mut UErrorCode) -> *mut URegion @@ -5899,12 +5857,12 @@ where #[inline] pub unsafe fn uregion_getRegionFromNumericCode(code: i32, status: *mut UErrorCode) -> *mut URegion { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getRegionFromNumericCode(code : i32, status : *mut UErrorCode) -> *mut URegion); - uregion_getRegionFromNumericCode(core::mem::transmute(code), core::mem::transmute(status)) + uregion_getRegionFromNumericCode(code, core::mem::transmute(status)) } #[inline] pub unsafe fn uregion_getType(uregion: *const URegion) -> URegionType { windows_targets::link!("icuin.dll" "cdecl" fn uregion_getType(uregion : *const URegion) -> URegionType); - uregion_getType(core::mem::transmute(uregion)) + uregion_getType(uregion) } #[inline] pub unsafe fn ureldatefmt_close(reldatefmt: *mut URelativeDateTimeFormatter) { @@ -5919,27 +5877,27 @@ pub unsafe fn ureldatefmt_closeResult(ufrdt: *mut UFormattedRelativeDateTime) { #[inline] pub unsafe fn ureldatefmt_combineDateAndTime(reldatefmt: *const URelativeDateTimeFormatter, relativedatestring: *const u16, relativedatestringlen: i32, timestring: *const u16, timestringlen: i32, result: *mut u16, resultcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ureldatefmt_combineDateAndTime(reldatefmt : *const URelativeDateTimeFormatter, relativedatestring : *const u16, relativedatestringlen : i32, timestring : *const u16, timestringlen : i32, result : *mut u16, resultcapacity : i32, status : *mut UErrorCode) -> i32); - ureldatefmt_combineDateAndTime(core::mem::transmute(reldatefmt), core::mem::transmute(relativedatestring), core::mem::transmute(relativedatestringlen), core::mem::transmute(timestring), core::mem::transmute(timestringlen), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(status)) + ureldatefmt_combineDateAndTime(reldatefmt, relativedatestring, relativedatestringlen, timestring, timestringlen, core::mem::transmute(result), resultcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ureldatefmt_format(reldatefmt: *const URelativeDateTimeFormatter, offset: f64, unit: URelativeDateTimeUnit, result: *mut u16, resultcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ureldatefmt_format(reldatefmt : *const URelativeDateTimeFormatter, offset : f64, unit : URelativeDateTimeUnit, result : *mut u16, resultcapacity : i32, status : *mut UErrorCode) -> i32); - ureldatefmt_format(core::mem::transmute(reldatefmt), core::mem::transmute(offset), core::mem::transmute(unit), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(status)) + ureldatefmt_format(reldatefmt, offset, unit, core::mem::transmute(result), resultcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ureldatefmt_formatNumeric(reldatefmt: *const URelativeDateTimeFormatter, offset: f64, unit: URelativeDateTimeUnit, result: *mut u16, resultcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn ureldatefmt_formatNumeric(reldatefmt : *const URelativeDateTimeFormatter, offset : f64, unit : URelativeDateTimeUnit, result : *mut u16, resultcapacity : i32, status : *mut UErrorCode) -> i32); - ureldatefmt_formatNumeric(core::mem::transmute(reldatefmt), core::mem::transmute(offset), core::mem::transmute(unit), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(status)) + ureldatefmt_formatNumeric(reldatefmt, offset, unit, core::mem::transmute(result), resultcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn ureldatefmt_formatNumericToResult(reldatefmt: *const URelativeDateTimeFormatter, offset: f64, unit: URelativeDateTimeUnit, result: *mut UFormattedRelativeDateTime, status: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ureldatefmt_formatNumericToResult(reldatefmt : *const URelativeDateTimeFormatter, offset : f64, unit : URelativeDateTimeUnit, result : *mut UFormattedRelativeDateTime, status : *mut UErrorCode)); - ureldatefmt_formatNumericToResult(core::mem::transmute(reldatefmt), core::mem::transmute(offset), core::mem::transmute(unit), core::mem::transmute(result), core::mem::transmute(status)) + ureldatefmt_formatNumericToResult(reldatefmt, offset, unit, core::mem::transmute(result), core::mem::transmute(status)) } #[inline] pub unsafe fn ureldatefmt_formatToResult(reldatefmt: *const URelativeDateTimeFormatter, offset: f64, unit: URelativeDateTimeUnit, result: *mut UFormattedRelativeDateTime, status: *mut UErrorCode) { windows_targets::link!("icu.dll" "cdecl" fn ureldatefmt_formatToResult(reldatefmt : *const URelativeDateTimeFormatter, offset : f64, unit : URelativeDateTimeUnit, result : *mut UFormattedRelativeDateTime, status : *mut UErrorCode)); - ureldatefmt_formatToResult(core::mem::transmute(reldatefmt), core::mem::transmute(offset), core::mem::transmute(unit), core::mem::transmute(result), core::mem::transmute(status)) + ureldatefmt_formatToResult(reldatefmt, offset, unit, core::mem::transmute(result), core::mem::transmute(status)) } #[inline] pub unsafe fn ureldatefmt_open(locale: P0, nftoadopt: *mut *mut core::ffi::c_void, width: UDateRelativeDateTimeFormatterStyle, capitalizationcontext: UDisplayContext, status: *mut UErrorCode) -> *mut URelativeDateTimeFormatter @@ -5947,7 +5905,7 @@ where P0: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn ureldatefmt_open(locale : windows_core::PCSTR, nftoadopt : *mut *mut core::ffi::c_void, width : UDateRelativeDateTimeFormatterStyle, capitalizationcontext : UDisplayContext, status : *mut UErrorCode) -> *mut URelativeDateTimeFormatter); - ureldatefmt_open(locale.param().abi(), core::mem::transmute(nftoadopt), core::mem::transmute(width), core::mem::transmute(capitalizationcontext), core::mem::transmute(status)) + ureldatefmt_open(locale.param().abi(), core::mem::transmute(nftoadopt), width, capitalizationcontext, core::mem::transmute(status)) } #[inline] pub unsafe fn ureldatefmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedRelativeDateTime { @@ -5957,7 +5915,7 @@ pub unsafe fn ureldatefmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedRela #[inline] pub unsafe fn ureldatefmt_resultAsValue(ufrdt: *const UFormattedRelativeDateTime, ec: *mut UErrorCode) -> *mut UFormattedValue { windows_targets::link!("icu.dll" "cdecl" fn ureldatefmt_resultAsValue(ufrdt : *const UFormattedRelativeDateTime, ec : *mut UErrorCode) -> *mut UFormattedValue); - ureldatefmt_resultAsValue(core::mem::transmute(ufrdt), core::mem::transmute(ec)) + ureldatefmt_resultAsValue(ufrdt, core::mem::transmute(ec)) } #[inline] pub unsafe fn ures_close(resourcebundle: *mut UResourceBundle) { @@ -5967,12 +5925,12 @@ pub unsafe fn ures_close(resourcebundle: *mut UResourceBundle) { #[inline] pub unsafe fn ures_getBinary(resourcebundle: *const UResourceBundle, len: *mut i32, status: *mut UErrorCode) -> *mut u8 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getBinary(resourcebundle : *const UResourceBundle, len : *mut i32, status : *mut UErrorCode) -> *mut u8); - ures_getBinary(core::mem::transmute(resourcebundle), core::mem::transmute(len), core::mem::transmute(status)) + ures_getBinary(resourcebundle, core::mem::transmute(len), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getByIndex(resourcebundle: *const UResourceBundle, indexr: i32, fillin: *mut UResourceBundle, status: *mut UErrorCode) -> *mut UResourceBundle { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getByIndex(resourcebundle : *const UResourceBundle, indexr : i32, fillin : *mut UResourceBundle, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_getByIndex(core::mem::transmute(resourcebundle), core::mem::transmute(indexr), core::mem::transmute(fillin), core::mem::transmute(status)) + ures_getByIndex(resourcebundle, indexr, core::mem::transmute(fillin), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getByKey(resourcebundle: *const UResourceBundle, key: P1, fillin: *mut UResourceBundle, status: *mut UErrorCode) -> *mut UResourceBundle @@ -5980,27 +5938,27 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getByKey(resourcebundle : *const UResourceBundle, key : windows_core::PCSTR, fillin : *mut UResourceBundle, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_getByKey(core::mem::transmute(resourcebundle), key.param().abi(), core::mem::transmute(fillin), core::mem::transmute(status)) + ures_getByKey(resourcebundle, key.param().abi(), core::mem::transmute(fillin), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getInt(resourcebundle: *const UResourceBundle, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getInt(resourcebundle : *const UResourceBundle, status : *mut UErrorCode) -> i32); - ures_getInt(core::mem::transmute(resourcebundle), core::mem::transmute(status)) + ures_getInt(resourcebundle, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getIntVector(resourcebundle: *const UResourceBundle, len: *mut i32, status: *mut UErrorCode) -> *mut i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getIntVector(resourcebundle : *const UResourceBundle, len : *mut i32, status : *mut UErrorCode) -> *mut i32); - ures_getIntVector(core::mem::transmute(resourcebundle), core::mem::transmute(len), core::mem::transmute(status)) + ures_getIntVector(resourcebundle, core::mem::transmute(len), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getKey(resourcebundle: *const UResourceBundle) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getKey(resourcebundle : *const UResourceBundle) -> windows_core::PCSTR); - ures_getKey(core::mem::transmute(resourcebundle)) + ures_getKey(resourcebundle) } #[inline] pub unsafe fn ures_getLocaleByType(resourcebundle: *const UResourceBundle, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getLocaleByType(resourcebundle : *const UResourceBundle, r#type : ULocDataLocaleType, status : *mut UErrorCode) -> windows_core::PCSTR); - ures_getLocaleByType(core::mem::transmute(resourcebundle), core::mem::transmute(r#type), core::mem::transmute(status)) + ures_getLocaleByType(resourcebundle, r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getNextResource(resourcebundle: *mut UResourceBundle, fillin: *mut UResourceBundle, status: *mut UErrorCode) -> *mut UResourceBundle { @@ -6010,22 +5968,22 @@ pub unsafe fn ures_getNextResource(resourcebundle: *mut UResourceBundle, fillin: #[inline] pub unsafe fn ures_getNextString(resourcebundle: *mut UResourceBundle, len: *mut i32, key: *const *const i8, status: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getNextString(resourcebundle : *mut UResourceBundle, len : *mut i32, key : *const *const i8, status : *mut UErrorCode) -> *mut u16); - ures_getNextString(core::mem::transmute(resourcebundle), core::mem::transmute(len), core::mem::transmute(key), core::mem::transmute(status)) + ures_getNextString(core::mem::transmute(resourcebundle), core::mem::transmute(len), key, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getSize(resourcebundle: *const UResourceBundle) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getSize(resourcebundle : *const UResourceBundle) -> i32); - ures_getSize(core::mem::transmute(resourcebundle)) + ures_getSize(resourcebundle) } #[inline] pub unsafe fn ures_getString(resourcebundle: *const UResourceBundle, len: *mut i32, status: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getString(resourcebundle : *const UResourceBundle, len : *mut i32, status : *mut UErrorCode) -> *mut u16); - ures_getString(core::mem::transmute(resourcebundle), core::mem::transmute(len), core::mem::transmute(status)) + ures_getString(resourcebundle, core::mem::transmute(len), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getStringByIndex(resourcebundle: *const UResourceBundle, indexs: i32, len: *mut i32, status: *mut UErrorCode) -> *mut u16 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getStringByIndex(resourcebundle : *const UResourceBundle, indexs : i32, len : *mut i32, status : *mut UErrorCode) -> *mut u16); - ures_getStringByIndex(core::mem::transmute(resourcebundle), core::mem::transmute(indexs), core::mem::transmute(len), core::mem::transmute(status)) + ures_getStringByIndex(resourcebundle, indexs, core::mem::transmute(len), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getStringByKey(resb: *const UResourceBundle, key: P1, len: *mut i32, status: *mut UErrorCode) -> *mut u16 @@ -6033,17 +5991,17 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getStringByKey(resb : *const UResourceBundle, key : windows_core::PCSTR, len : *mut i32, status : *mut UErrorCode) -> *mut u16); - ures_getStringByKey(core::mem::transmute(resb), key.param().abi(), core::mem::transmute(len), core::mem::transmute(status)) + ures_getStringByKey(resb, key.param().abi(), core::mem::transmute(len), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getType(resourcebundle: *const UResourceBundle) -> UResType { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getType(resourcebundle : *const UResourceBundle) -> UResType); - ures_getType(core::mem::transmute(resourcebundle)) + ures_getType(resourcebundle) } #[inline] pub unsafe fn ures_getUInt(resourcebundle: *const UResourceBundle, status: *mut UErrorCode) -> u32 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getUInt(resourcebundle : *const UResourceBundle, status : *mut UErrorCode) -> u32); - ures_getUInt(core::mem::transmute(resourcebundle), core::mem::transmute(status)) + ures_getUInt(resourcebundle, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getUTF8String(resb: *const UResourceBundle, dest: P1, length: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> windows_core::PCSTR @@ -6051,7 +6009,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getUTF8String(resb : *const UResourceBundle, dest : windows_core::PCSTR, length : *mut i32, forcecopy : i8, status : *mut UErrorCode) -> windows_core::PCSTR); - ures_getUTF8String(core::mem::transmute(resb), dest.param().abi(), core::mem::transmute(length), core::mem::transmute(forcecopy), core::mem::transmute(status)) + ures_getUTF8String(resb, dest.param().abi(), core::mem::transmute(length), forcecopy, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getUTF8StringByIndex(resb: *const UResourceBundle, stringindex: i32, dest: P2, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> windows_core::PCSTR @@ -6059,7 +6017,7 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getUTF8StringByIndex(resb : *const UResourceBundle, stringindex : i32, dest : windows_core::PCSTR, plength : *mut i32, forcecopy : i8, status : *mut UErrorCode) -> windows_core::PCSTR); - ures_getUTF8StringByIndex(core::mem::transmute(resb), core::mem::transmute(stringindex), dest.param().abi(), core::mem::transmute(plength), core::mem::transmute(forcecopy), core::mem::transmute(status)) + ures_getUTF8StringByIndex(resb, stringindex, dest.param().abi(), core::mem::transmute(plength), forcecopy, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getUTF8StringByKey(resb: *const UResourceBundle, key: P1, dest: P2, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> windows_core::PCSTR @@ -6068,17 +6026,17 @@ where P2: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getUTF8StringByKey(resb : *const UResourceBundle, key : windows_core::PCSTR, dest : windows_core::PCSTR, plength : *mut i32, forcecopy : i8, status : *mut UErrorCode) -> windows_core::PCSTR); - ures_getUTF8StringByKey(core::mem::transmute(resb), key.param().abi(), dest.param().abi(), core::mem::transmute(plength), core::mem::transmute(forcecopy), core::mem::transmute(status)) + ures_getUTF8StringByKey(resb, key.param().abi(), dest.param().abi(), core::mem::transmute(plength), forcecopy, core::mem::transmute(status)) } #[inline] pub unsafe fn ures_getVersion(resb: *const UResourceBundle, versioninfo: *mut u8) { windows_targets::link!("icuuc.dll" "cdecl" fn ures_getVersion(resb : *const UResourceBundle, versioninfo : *mut u8)); - ures_getVersion(core::mem::transmute(resb), core::mem::transmute(versioninfo)) + ures_getVersion(resb, core::mem::transmute(versioninfo)) } #[inline] pub unsafe fn ures_hasNext(resourcebundle: *const UResourceBundle) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn ures_hasNext(resourcebundle : *const UResourceBundle) -> i8); - ures_hasNext(core::mem::transmute(resourcebundle)) + ures_hasNext(resourcebundle) } #[inline] pub unsafe fn ures_open(packagename: P0, locale: P1, status: *mut UErrorCode) -> *mut UResourceBundle @@ -6112,7 +6070,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn ures_openU(packagename : *const u16, locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_openU(core::mem::transmute(packagename), locale.param().abi(), core::mem::transmute(status)) + ures_openU(packagename, locale.param().abi(), core::mem::transmute(status)) } #[inline] pub unsafe fn ures_resetIterator(resourcebundle: *mut UResourceBundle) { @@ -6122,7 +6080,7 @@ pub unsafe fn ures_resetIterator(resourcebundle: *mut UResourceBundle) { #[inline] pub unsafe fn uscript_breaksBetweenLetters(script: UScriptCode) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_breaksBetweenLetters(script : UScriptCode) -> i8); - uscript_breaksBetweenLetters(core::mem::transmute(script)) + uscript_breaksBetweenLetters(script) } #[inline] pub unsafe fn uscript_getCode(nameorabbrorlocale: P0, fillin: *mut UScriptCode, capacity: i32, err: *mut UErrorCode) -> i32 @@ -6130,52 +6088,52 @@ where P0: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getCode(nameorabbrorlocale : windows_core::PCSTR, fillin : *mut UScriptCode, capacity : i32, err : *mut UErrorCode) -> i32); - uscript_getCode(nameorabbrorlocale.param().abi(), core::mem::transmute(fillin), core::mem::transmute(capacity), core::mem::transmute(err)) + uscript_getCode(nameorabbrorlocale.param().abi(), core::mem::transmute(fillin), capacity, core::mem::transmute(err)) } #[inline] pub unsafe fn uscript_getName(scriptcode: UScriptCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getName(scriptcode : UScriptCode) -> windows_core::PCSTR); - uscript_getName(core::mem::transmute(scriptcode)) + uscript_getName(scriptcode) } #[inline] pub unsafe fn uscript_getSampleString(script: UScriptCode, dest: *mut u16, capacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getSampleString(script : UScriptCode, dest : *mut u16, capacity : i32, perrorcode : *mut UErrorCode) -> i32); - uscript_getSampleString(core::mem::transmute(script), core::mem::transmute(dest), core::mem::transmute(capacity), core::mem::transmute(perrorcode)) + uscript_getSampleString(script, core::mem::transmute(dest), capacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uscript_getScript(codepoint: i32, err: *mut UErrorCode) -> UScriptCode { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getScript(codepoint : i32, err : *mut UErrorCode) -> UScriptCode); - uscript_getScript(core::mem::transmute(codepoint), core::mem::transmute(err)) + uscript_getScript(codepoint, core::mem::transmute(err)) } #[inline] pub unsafe fn uscript_getScriptExtensions(c: i32, scripts: *mut UScriptCode, capacity: i32, errorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getScriptExtensions(c : i32, scripts : *mut UScriptCode, capacity : i32, errorcode : *mut UErrorCode) -> i32); - uscript_getScriptExtensions(core::mem::transmute(c), core::mem::transmute(scripts), core::mem::transmute(capacity), core::mem::transmute(errorcode)) + uscript_getScriptExtensions(c, core::mem::transmute(scripts), capacity, core::mem::transmute(errorcode)) } #[inline] pub unsafe fn uscript_getShortName(scriptcode: UScriptCode) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getShortName(scriptcode : UScriptCode) -> windows_core::PCSTR); - uscript_getShortName(core::mem::transmute(scriptcode)) + uscript_getShortName(scriptcode) } #[inline] pub unsafe fn uscript_getUsage(script: UScriptCode) -> UScriptUsage { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_getUsage(script : UScriptCode) -> UScriptUsage); - uscript_getUsage(core::mem::transmute(script)) + uscript_getUsage(script) } #[inline] pub unsafe fn uscript_hasScript(c: i32, sc: UScriptCode) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_hasScript(c : i32, sc : UScriptCode) -> i8); - uscript_hasScript(core::mem::transmute(c), core::mem::transmute(sc)) + uscript_hasScript(c, sc) } #[inline] pub unsafe fn uscript_isCased(script: UScriptCode) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_isCased(script : UScriptCode) -> i8); - uscript_isCased(core::mem::transmute(script)) + uscript_isCased(script) } #[inline] pub unsafe fn uscript_isRightToLeft(script: UScriptCode) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uscript_isRightToLeft(script : UScriptCode) -> i8); - uscript_isRightToLeft(core::mem::transmute(script)) + uscript_isRightToLeft(script) } #[inline] pub unsafe fn usearch_close(searchiter: *mut UStringSearch) { @@ -6190,52 +6148,52 @@ pub unsafe fn usearch_first(strsrch: *mut UStringSearch, status: *mut UErrorCode #[inline] pub unsafe fn usearch_following(strsrch: *mut UStringSearch, position: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_following(strsrch : *mut UStringSearch, position : i32, status : *mut UErrorCode) -> i32); - usearch_following(core::mem::transmute(strsrch), core::mem::transmute(position), core::mem::transmute(status)) + usearch_following(core::mem::transmute(strsrch), position, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_getAttribute(strsrch: *const UStringSearch, attribute: USearchAttribute) -> USearchAttributeValue { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getAttribute(strsrch : *const UStringSearch, attribute : USearchAttribute) -> USearchAttributeValue); - usearch_getAttribute(core::mem::transmute(strsrch), core::mem::transmute(attribute)) + usearch_getAttribute(strsrch, attribute) } #[inline] pub unsafe fn usearch_getBreakIterator(strsrch: *const UStringSearch) -> *mut UBreakIterator { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getBreakIterator(strsrch : *const UStringSearch) -> *mut UBreakIterator); - usearch_getBreakIterator(core::mem::transmute(strsrch)) + usearch_getBreakIterator(strsrch) } #[inline] pub unsafe fn usearch_getCollator(strsrch: *const UStringSearch) -> *mut UCollator { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getCollator(strsrch : *const UStringSearch) -> *mut UCollator); - usearch_getCollator(core::mem::transmute(strsrch)) + usearch_getCollator(strsrch) } #[inline] pub unsafe fn usearch_getMatchedLength(strsrch: *const UStringSearch) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getMatchedLength(strsrch : *const UStringSearch) -> i32); - usearch_getMatchedLength(core::mem::transmute(strsrch)) + usearch_getMatchedLength(strsrch) } #[inline] pub unsafe fn usearch_getMatchedStart(strsrch: *const UStringSearch) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getMatchedStart(strsrch : *const UStringSearch) -> i32); - usearch_getMatchedStart(core::mem::transmute(strsrch)) + usearch_getMatchedStart(strsrch) } #[inline] pub unsafe fn usearch_getMatchedText(strsrch: *const UStringSearch, result: *mut u16, resultcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getMatchedText(strsrch : *const UStringSearch, result : *mut u16, resultcapacity : i32, status : *mut UErrorCode) -> i32); - usearch_getMatchedText(core::mem::transmute(strsrch), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(status)) + usearch_getMatchedText(strsrch, core::mem::transmute(result), resultcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_getOffset(strsrch: *const UStringSearch) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getOffset(strsrch : *const UStringSearch) -> i32); - usearch_getOffset(core::mem::transmute(strsrch)) + usearch_getOffset(strsrch) } #[inline] pub unsafe fn usearch_getPattern(strsrch: *const UStringSearch, length: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getPattern(strsrch : *const UStringSearch, length : *mut i32) -> *mut u16); - usearch_getPattern(core::mem::transmute(strsrch), core::mem::transmute(length)) + usearch_getPattern(strsrch, core::mem::transmute(length)) } #[inline] pub unsafe fn usearch_getText(strsrch: *const UStringSearch, length: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_getText(strsrch : *const UStringSearch, length : *mut i32) -> *mut u16); - usearch_getText(core::mem::transmute(strsrch), core::mem::transmute(length)) + usearch_getText(strsrch, core::mem::transmute(length)) } #[inline] pub unsafe fn usearch_last(strsrch: *mut UStringSearch, status: *mut UErrorCode) -> i32 { @@ -6253,17 +6211,17 @@ where P4: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn usearch_open(pattern : *const u16, patternlength : i32, text : *const u16, textlength : i32, locale : windows_core::PCSTR, breakiter : *mut UBreakIterator, status : *mut UErrorCode) -> *mut UStringSearch); - usearch_open(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(text), core::mem::transmute(textlength), locale.param().abi(), core::mem::transmute(breakiter), core::mem::transmute(status)) + usearch_open(pattern, patternlength, text, textlength, locale.param().abi(), core::mem::transmute(breakiter), core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_openFromCollator(pattern: *const u16, patternlength: i32, text: *const u16, textlength: i32, collator: *const UCollator, breakiter: *mut UBreakIterator, status: *mut UErrorCode) -> *mut UStringSearch { windows_targets::link!("icuin.dll" "cdecl" fn usearch_openFromCollator(pattern : *const u16, patternlength : i32, text : *const u16, textlength : i32, collator : *const UCollator, breakiter : *mut UBreakIterator, status : *mut UErrorCode) -> *mut UStringSearch); - usearch_openFromCollator(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(collator), core::mem::transmute(breakiter), core::mem::transmute(status)) + usearch_openFromCollator(pattern, patternlength, text, textlength, collator, core::mem::transmute(breakiter), core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_preceding(strsrch: *mut UStringSearch, position: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn usearch_preceding(strsrch : *mut UStringSearch, position : i32, status : *mut UErrorCode) -> i32); - usearch_preceding(core::mem::transmute(strsrch), core::mem::transmute(position), core::mem::transmute(status)) + usearch_preceding(core::mem::transmute(strsrch), position, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_previous(strsrch: *mut UStringSearch, status: *mut UErrorCode) -> i32 { @@ -6278,7 +6236,7 @@ pub unsafe fn usearch_reset(strsrch: *mut UStringSearch) { #[inline] pub unsafe fn usearch_setAttribute(strsrch: *mut UStringSearch, attribute: USearchAttribute, value: USearchAttributeValue, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn usearch_setAttribute(strsrch : *mut UStringSearch, attribute : USearchAttribute, value : USearchAttributeValue, status : *mut UErrorCode)); - usearch_setAttribute(core::mem::transmute(strsrch), core::mem::transmute(attribute), core::mem::transmute(value), core::mem::transmute(status)) + usearch_setAttribute(core::mem::transmute(strsrch), attribute, value, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_setBreakIterator(strsrch: *mut UStringSearch, breakiter: *mut UBreakIterator, status: *mut UErrorCode) { @@ -6288,67 +6246,67 @@ pub unsafe fn usearch_setBreakIterator(strsrch: *mut UStringSearch, breakiter: * #[inline] pub unsafe fn usearch_setCollator(strsrch: *mut UStringSearch, collator: *const UCollator, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn usearch_setCollator(strsrch : *mut UStringSearch, collator : *const UCollator, status : *mut UErrorCode)); - usearch_setCollator(core::mem::transmute(strsrch), core::mem::transmute(collator), core::mem::transmute(status)) + usearch_setCollator(core::mem::transmute(strsrch), collator, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_setOffset(strsrch: *mut UStringSearch, position: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn usearch_setOffset(strsrch : *mut UStringSearch, position : i32, status : *mut UErrorCode)); - usearch_setOffset(core::mem::transmute(strsrch), core::mem::transmute(position), core::mem::transmute(status)) + usearch_setOffset(core::mem::transmute(strsrch), position, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_setPattern(strsrch: *mut UStringSearch, pattern: *const u16, patternlength: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn usearch_setPattern(strsrch : *mut UStringSearch, pattern : *const u16, patternlength : i32, status : *mut UErrorCode)); - usearch_setPattern(core::mem::transmute(strsrch), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(status)) + usearch_setPattern(core::mem::transmute(strsrch), pattern, patternlength, core::mem::transmute(status)) } #[inline] pub unsafe fn usearch_setText(strsrch: *mut UStringSearch, text: *const u16, textlength: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn usearch_setText(strsrch : *mut UStringSearch, text : *const u16, textlength : i32, status : *mut UErrorCode)); - usearch_setText(core::mem::transmute(strsrch), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(status)) + usearch_setText(core::mem::transmute(strsrch), text, textlength, core::mem::transmute(status)) } #[inline] pub unsafe fn uset_add(set: *mut USet, c: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_add(set : *mut USet, c : i32)); - uset_add(core::mem::transmute(set), core::mem::transmute(c)) + uset_add(core::mem::transmute(set), c) } #[inline] pub unsafe fn uset_addAll(set: *mut USet, additionalset: *const USet) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_addAll(set : *mut USet, additionalset : *const USet)); - uset_addAll(core::mem::transmute(set), core::mem::transmute(additionalset)) + uset_addAll(core::mem::transmute(set), additionalset) } #[inline] pub unsafe fn uset_addAllCodePoints(set: *mut USet, str: *const u16, strlen: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_addAllCodePoints(set : *mut USet, str : *const u16, strlen : i32)); - uset_addAllCodePoints(core::mem::transmute(set), core::mem::transmute(str), core::mem::transmute(strlen)) + uset_addAllCodePoints(core::mem::transmute(set), str, strlen) } #[inline] pub unsafe fn uset_addRange(set: *mut USet, start: i32, end: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_addRange(set : *mut USet, start : i32, end : i32)); - uset_addRange(core::mem::transmute(set), core::mem::transmute(start), core::mem::transmute(end)) + uset_addRange(core::mem::transmute(set), start, end) } #[inline] pub unsafe fn uset_addString(set: *mut USet, str: *const u16, strlen: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_addString(set : *mut USet, str : *const u16, strlen : i32)); - uset_addString(core::mem::transmute(set), core::mem::transmute(str), core::mem::transmute(strlen)) + uset_addString(core::mem::transmute(set), str, strlen) } #[inline] pub unsafe fn uset_applyIntPropertyValue(set: *mut USet, prop: UProperty, value: i32, ec: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_applyIntPropertyValue(set : *mut USet, prop : UProperty, value : i32, ec : *mut UErrorCode)); - uset_applyIntPropertyValue(core::mem::transmute(set), core::mem::transmute(prop), core::mem::transmute(value), core::mem::transmute(ec)) + uset_applyIntPropertyValue(core::mem::transmute(set), prop, value, core::mem::transmute(ec)) } #[inline] pub unsafe fn uset_applyPattern(set: *mut USet, pattern: *const u16, patternlength: i32, options: u32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_applyPattern(set : *mut USet, pattern : *const u16, patternlength : i32, options : u32, status : *mut UErrorCode) -> i32); - uset_applyPattern(core::mem::transmute(set), core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(options), core::mem::transmute(status)) + uset_applyPattern(core::mem::transmute(set), pattern, patternlength, options, core::mem::transmute(status)) } #[inline] pub unsafe fn uset_applyPropertyAlias(set: *mut USet, prop: *const u16, proplength: i32, value: *const u16, valuelength: i32, ec: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_applyPropertyAlias(set : *mut USet, prop : *const u16, proplength : i32, value : *const u16, valuelength : i32, ec : *mut UErrorCode)); - uset_applyPropertyAlias(core::mem::transmute(set), core::mem::transmute(prop), core::mem::transmute(proplength), core::mem::transmute(value), core::mem::transmute(valuelength), core::mem::transmute(ec)) + uset_applyPropertyAlias(core::mem::transmute(set), prop, proplength, value, valuelength, core::mem::transmute(ec)) } #[inline] pub unsafe fn uset_charAt(set: *const USet, charindex: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_charAt(set : *const USet, charindex : i32) -> i32); - uset_charAt(core::mem::transmute(set), core::mem::transmute(charindex)) + uset_charAt(set, charindex) } #[inline] pub unsafe fn uset_clear(set: *mut USet) { @@ -6358,12 +6316,12 @@ pub unsafe fn uset_clear(set: *mut USet) { #[inline] pub unsafe fn uset_clone(set: *const USet) -> *mut USet { windows_targets::link!("icuuc.dll" "cdecl" fn uset_clone(set : *const USet) -> *mut USet); - uset_clone(core::mem::transmute(set)) + uset_clone(set) } #[inline] pub unsafe fn uset_cloneAsThawed(set: *const USet) -> *mut USet { windows_targets::link!("icuuc.dll" "cdecl" fn uset_cloneAsThawed(set : *const USet) -> *mut USet); - uset_cloneAsThawed(core::mem::transmute(set)) + uset_cloneAsThawed(set) } #[inline] pub unsafe fn uset_close(set: *mut USet) { @@ -6373,7 +6331,7 @@ pub unsafe fn uset_close(set: *mut USet) { #[inline] pub unsafe fn uset_closeOver(set: *mut USet, attributes: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_closeOver(set : *mut USet, attributes : i32)); - uset_closeOver(core::mem::transmute(set), core::mem::transmute(attributes)) + uset_closeOver(core::mem::transmute(set), attributes) } #[inline] pub unsafe fn uset_compact(set: *mut USet) { @@ -6388,47 +6346,47 @@ pub unsafe fn uset_complement(set: *mut USet) { #[inline] pub unsafe fn uset_complementAll(set: *mut USet, complement: *const USet) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_complementAll(set : *mut USet, complement : *const USet)); - uset_complementAll(core::mem::transmute(set), core::mem::transmute(complement)) + uset_complementAll(core::mem::transmute(set), complement) } #[inline] pub unsafe fn uset_contains(set: *const USet, c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_contains(set : *const USet, c : i32) -> i8); - uset_contains(core::mem::transmute(set), core::mem::transmute(c)) + uset_contains(set, c) } #[inline] pub unsafe fn uset_containsAll(set1: *const USet, set2: *const USet) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_containsAll(set1 : *const USet, set2 : *const USet) -> i8); - uset_containsAll(core::mem::transmute(set1), core::mem::transmute(set2)) + uset_containsAll(set1, set2) } #[inline] pub unsafe fn uset_containsAllCodePoints(set: *const USet, str: *const u16, strlen: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_containsAllCodePoints(set : *const USet, str : *const u16, strlen : i32) -> i8); - uset_containsAllCodePoints(core::mem::transmute(set), core::mem::transmute(str), core::mem::transmute(strlen)) + uset_containsAllCodePoints(set, str, strlen) } #[inline] pub unsafe fn uset_containsNone(set1: *const USet, set2: *const USet) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_containsNone(set1 : *const USet, set2 : *const USet) -> i8); - uset_containsNone(core::mem::transmute(set1), core::mem::transmute(set2)) + uset_containsNone(set1, set2) } #[inline] pub unsafe fn uset_containsRange(set: *const USet, start: i32, end: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_containsRange(set : *const USet, start : i32, end : i32) -> i8); - uset_containsRange(core::mem::transmute(set), core::mem::transmute(start), core::mem::transmute(end)) + uset_containsRange(set, start, end) } #[inline] pub unsafe fn uset_containsSome(set1: *const USet, set2: *const USet) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_containsSome(set1 : *const USet, set2 : *const USet) -> i8); - uset_containsSome(core::mem::transmute(set1), core::mem::transmute(set2)) + uset_containsSome(set1, set2) } #[inline] pub unsafe fn uset_containsString(set: *const USet, str: *const u16, strlen: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_containsString(set : *const USet, str : *const u16, strlen : i32) -> i8); - uset_containsString(core::mem::transmute(set), core::mem::transmute(str), core::mem::transmute(strlen)) + uset_containsString(set, str, strlen) } #[inline] pub unsafe fn uset_equals(set1: *const USet, set2: *const USet) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_equals(set1 : *const USet, set2 : *const USet) -> i8); - uset_equals(core::mem::transmute(set1), core::mem::transmute(set2)) + uset_equals(set1, set2) } #[inline] pub unsafe fn uset_freeze(set: *mut USet) { @@ -6438,47 +6396,47 @@ pub unsafe fn uset_freeze(set: *mut USet) { #[inline] pub unsafe fn uset_getItem(set: *const USet, itemindex: i32, start: *mut i32, end: *mut i32, str: *mut u16, strcapacity: i32, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_getItem(set : *const USet, itemindex : i32, start : *mut i32, end : *mut i32, str : *mut u16, strcapacity : i32, ec : *mut UErrorCode) -> i32); - uset_getItem(core::mem::transmute(set), core::mem::transmute(itemindex), core::mem::transmute(start), core::mem::transmute(end), core::mem::transmute(str), core::mem::transmute(strcapacity), core::mem::transmute(ec)) + uset_getItem(set, itemindex, core::mem::transmute(start), core::mem::transmute(end), core::mem::transmute(str), strcapacity, core::mem::transmute(ec)) } #[inline] pub unsafe fn uset_getItemCount(set: *const USet) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_getItemCount(set : *const USet) -> i32); - uset_getItemCount(core::mem::transmute(set)) + uset_getItemCount(set) } #[inline] pub unsafe fn uset_getSerializedRange(set: *const USerializedSet, rangeindex: i32, pstart: *mut i32, pend: *mut i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_getSerializedRange(set : *const USerializedSet, rangeindex : i32, pstart : *mut i32, pend : *mut i32) -> i8); - uset_getSerializedRange(core::mem::transmute(set), core::mem::transmute(rangeindex), core::mem::transmute(pstart), core::mem::transmute(pend)) + uset_getSerializedRange(set, rangeindex, core::mem::transmute(pstart), core::mem::transmute(pend)) } #[inline] pub unsafe fn uset_getSerializedRangeCount(set: *const USerializedSet) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_getSerializedRangeCount(set : *const USerializedSet) -> i32); - uset_getSerializedRangeCount(core::mem::transmute(set)) + uset_getSerializedRangeCount(set) } #[inline] pub unsafe fn uset_getSerializedSet(fillset: *mut USerializedSet, src: *const u16, srclength: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_getSerializedSet(fillset : *mut USerializedSet, src : *const u16, srclength : i32) -> i8); - uset_getSerializedSet(core::mem::transmute(fillset), core::mem::transmute(src), core::mem::transmute(srclength)) + uset_getSerializedSet(core::mem::transmute(fillset), src, srclength) } #[inline] pub unsafe fn uset_indexOf(set: *const USet, c: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_indexOf(set : *const USet, c : i32) -> i32); - uset_indexOf(core::mem::transmute(set), core::mem::transmute(c)) + uset_indexOf(set, c) } #[inline] pub unsafe fn uset_isEmpty(set: *const USet) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_isEmpty(set : *const USet) -> i8); - uset_isEmpty(core::mem::transmute(set)) + uset_isEmpty(set) } #[inline] pub unsafe fn uset_isFrozen(set: *const USet) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_isFrozen(set : *const USet) -> i8); - uset_isFrozen(core::mem::transmute(set)) + uset_isFrozen(set) } #[inline] pub unsafe fn uset_open(start: i32, end: i32) -> *mut USet { windows_targets::link!("icuuc.dll" "cdecl" fn uset_open(start : i32, end : i32) -> *mut USet); - uset_open(core::mem::transmute(start), core::mem::transmute(end)) + uset_open(start, end) } #[inline] pub unsafe fn uset_openEmpty() -> *mut USet { @@ -6488,22 +6446,22 @@ pub unsafe fn uset_openEmpty() -> *mut USet { #[inline] pub unsafe fn uset_openPattern(pattern: *const u16, patternlength: i32, ec: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuuc.dll" "cdecl" fn uset_openPattern(pattern : *const u16, patternlength : i32, ec : *mut UErrorCode) -> *mut USet); - uset_openPattern(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(ec)) + uset_openPattern(pattern, patternlength, core::mem::transmute(ec)) } #[inline] pub unsafe fn uset_openPatternOptions(pattern: *const u16, patternlength: i32, options: u32, ec: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuuc.dll" "cdecl" fn uset_openPatternOptions(pattern : *const u16, patternlength : i32, options : u32, ec : *mut UErrorCode) -> *mut USet); - uset_openPatternOptions(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(options), core::mem::transmute(ec)) + uset_openPatternOptions(pattern, patternlength, options, core::mem::transmute(ec)) } #[inline] pub unsafe fn uset_remove(set: *mut USet, c: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_remove(set : *mut USet, c : i32)); - uset_remove(core::mem::transmute(set), core::mem::transmute(c)) + uset_remove(core::mem::transmute(set), c) } #[inline] pub unsafe fn uset_removeAll(set: *mut USet, removeset: *const USet) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_removeAll(set : *mut USet, removeset : *const USet)); - uset_removeAll(core::mem::transmute(set), core::mem::transmute(removeset)) + uset_removeAll(core::mem::transmute(set), removeset) } #[inline] pub unsafe fn uset_removeAllStrings(set: *mut USet) { @@ -6513,62 +6471,62 @@ pub unsafe fn uset_removeAllStrings(set: *mut USet) { #[inline] pub unsafe fn uset_removeRange(set: *mut USet, start: i32, end: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_removeRange(set : *mut USet, start : i32, end : i32)); - uset_removeRange(core::mem::transmute(set), core::mem::transmute(start), core::mem::transmute(end)) + uset_removeRange(core::mem::transmute(set), start, end) } #[inline] pub unsafe fn uset_removeString(set: *mut USet, str: *const u16, strlen: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_removeString(set : *mut USet, str : *const u16, strlen : i32)); - uset_removeString(core::mem::transmute(set), core::mem::transmute(str), core::mem::transmute(strlen)) + uset_removeString(core::mem::transmute(set), str, strlen) } #[inline] pub unsafe fn uset_resemblesPattern(pattern: *const u16, patternlength: i32, pos: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_resemblesPattern(pattern : *const u16, patternlength : i32, pos : i32) -> i8); - uset_resemblesPattern(core::mem::transmute(pattern), core::mem::transmute(patternlength), core::mem::transmute(pos)) + uset_resemblesPattern(pattern, patternlength, pos) } #[inline] pub unsafe fn uset_retain(set: *mut USet, start: i32, end: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_retain(set : *mut USet, start : i32, end : i32)); - uset_retain(core::mem::transmute(set), core::mem::transmute(start), core::mem::transmute(end)) + uset_retain(core::mem::transmute(set), start, end) } #[inline] pub unsafe fn uset_retainAll(set: *mut USet, retain: *const USet) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_retainAll(set : *mut USet, retain : *const USet)); - uset_retainAll(core::mem::transmute(set), core::mem::transmute(retain)) + uset_retainAll(core::mem::transmute(set), retain) } #[inline] pub unsafe fn uset_serialize(set: *const USet, dest: *mut u16, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_serialize(set : *const USet, dest : *mut u16, destcapacity : i32, perrorcode : *mut UErrorCode) -> i32); - uset_serialize(core::mem::transmute(set), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(perrorcode)) + uset_serialize(set, core::mem::transmute(dest), destcapacity, core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uset_serializedContains(set: *const USerializedSet, c: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_serializedContains(set : *const USerializedSet, c : i32) -> i8); - uset_serializedContains(core::mem::transmute(set), core::mem::transmute(c)) + uset_serializedContains(set, c) } #[inline] pub unsafe fn uset_set(set: *mut USet, start: i32, end: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_set(set : *mut USet, start : i32, end : i32)); - uset_set(core::mem::transmute(set), core::mem::transmute(start), core::mem::transmute(end)) + uset_set(core::mem::transmute(set), start, end) } #[inline] pub unsafe fn uset_setSerializedToOne(fillset: *mut USerializedSet, c: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn uset_setSerializedToOne(fillset : *mut USerializedSet, c : i32)); - uset_setSerializedToOne(core::mem::transmute(fillset), core::mem::transmute(c)) + uset_setSerializedToOne(core::mem::transmute(fillset), c) } #[inline] pub unsafe fn uset_size(set: *const USet) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_size(set : *const USet) -> i32); - uset_size(core::mem::transmute(set)) + uset_size(set) } #[inline] pub unsafe fn uset_span(set: *const USet, s: *const u16, length: i32, spancondition: USetSpanCondition) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_span(set : *const USet, s : *const u16, length : i32, spancondition : USetSpanCondition) -> i32); - uset_span(core::mem::transmute(set), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(spancondition)) + uset_span(set, s, length, spancondition) } #[inline] pub unsafe fn uset_spanBack(set: *const USet, s: *const u16, length: i32, spancondition: USetSpanCondition) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_spanBack(set : *const USet, s : *const u16, length : i32, spancondition : USetSpanCondition) -> i32); - uset_spanBack(core::mem::transmute(set), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(spancondition)) + uset_spanBack(set, s, length, spancondition) } #[inline] pub unsafe fn uset_spanBackUTF8(set: *const USet, s: P1, length: i32, spancondition: USetSpanCondition) -> i32 @@ -6576,7 +6534,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uset_spanBackUTF8(set : *const USet, s : windows_core::PCSTR, length : i32, spancondition : USetSpanCondition) -> i32); - uset_spanBackUTF8(core::mem::transmute(set), s.param().abi(), core::mem::transmute(length), core::mem::transmute(spancondition)) + uset_spanBackUTF8(set, s.param().abi(), length, spancondition) } #[inline] pub unsafe fn uset_spanUTF8(set: *const USet, s: P1, length: i32, spancondition: USetSpanCondition) -> i32 @@ -6584,17 +6542,17 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn uset_spanUTF8(set : *const USet, s : windows_core::PCSTR, length : i32, spancondition : USetSpanCondition) -> i32); - uset_spanUTF8(core::mem::transmute(set), s.param().abi(), core::mem::transmute(length), core::mem::transmute(spancondition)) + uset_spanUTF8(set, s.param().abi(), length, spancondition) } #[inline] pub unsafe fn uset_toPattern(set: *const USet, result: *mut u16, resultcapacity: i32, escapeunprintable: i8, ec: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn uset_toPattern(set : *const USet, result : *mut u16, resultcapacity : i32, escapeunprintable : i8, ec : *mut UErrorCode) -> i32); - uset_toPattern(core::mem::transmute(set), core::mem::transmute(result), core::mem::transmute(resultcapacity), core::mem::transmute(escapeunprintable), core::mem::transmute(ec)) + uset_toPattern(set, core::mem::transmute(result), resultcapacity, escapeunprintable, core::mem::transmute(ec)) } #[inline] pub unsafe fn uspoof_areConfusable(sc: *const USpoofChecker, id1: *const u16, length1: i32, id2: *const u16, length2: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_areConfusable(sc : *const USpoofChecker, id1 : *const u16, length1 : i32, id2 : *const u16, length2 : i32, status : *mut UErrorCode) -> i32); - uspoof_areConfusable(core::mem::transmute(sc), core::mem::transmute(id1), core::mem::transmute(length1), core::mem::transmute(id2), core::mem::transmute(length2), core::mem::transmute(status)) + uspoof_areConfusable(sc, id1, length1, id2, length2, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_areConfusableUTF8(sc: *const USpoofChecker, id1: P1, length1: i32, id2: P3, length2: i32, status: *mut UErrorCode) -> i32 @@ -6603,17 +6561,17 @@ where P3: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_areConfusableUTF8(sc : *const USpoofChecker, id1 : windows_core::PCSTR, length1 : i32, id2 : windows_core::PCSTR, length2 : i32, status : *mut UErrorCode) -> i32); - uspoof_areConfusableUTF8(core::mem::transmute(sc), id1.param().abi(), core::mem::transmute(length1), id2.param().abi(), core::mem::transmute(length2), core::mem::transmute(status)) + uspoof_areConfusableUTF8(sc, id1.param().abi(), length1, id2.param().abi(), length2, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_check(sc: *const USpoofChecker, id: *const u16, length: i32, position: *mut i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_check(sc : *const USpoofChecker, id : *const u16, length : i32, position : *mut i32, status : *mut UErrorCode) -> i32); - uspoof_check(core::mem::transmute(sc), core::mem::transmute(id), core::mem::transmute(length), core::mem::transmute(position), core::mem::transmute(status)) + uspoof_check(sc, id, length, core::mem::transmute(position), core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_check2(sc: *const USpoofChecker, id: *const u16, length: i32, checkresult: *mut USpoofCheckResult, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_check2(sc : *const USpoofChecker, id : *const u16, length : i32, checkresult : *mut USpoofCheckResult, status : *mut UErrorCode) -> i32); - uspoof_check2(core::mem::transmute(sc), core::mem::transmute(id), core::mem::transmute(length), core::mem::transmute(checkresult), core::mem::transmute(status)) + uspoof_check2(sc, id, length, core::mem::transmute(checkresult), core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_check2UTF8(sc: *const USpoofChecker, id: P1, length: i32, checkresult: *mut USpoofCheckResult, status: *mut UErrorCode) -> i32 @@ -6621,7 +6579,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_check2UTF8(sc : *const USpoofChecker, id : windows_core::PCSTR, length : i32, checkresult : *mut USpoofCheckResult, status : *mut UErrorCode) -> i32); - uspoof_check2UTF8(core::mem::transmute(sc), id.param().abi(), core::mem::transmute(length), core::mem::transmute(checkresult), core::mem::transmute(status)) + uspoof_check2UTF8(sc, id.param().abi(), length, core::mem::transmute(checkresult), core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_checkUTF8(sc: *const USpoofChecker, id: P1, length: i32, position: *mut i32, status: *mut UErrorCode) -> i32 @@ -6629,12 +6587,12 @@ where P1: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_checkUTF8(sc : *const USpoofChecker, id : windows_core::PCSTR, length : i32, position : *mut i32, status : *mut UErrorCode) -> i32); - uspoof_checkUTF8(core::mem::transmute(sc), id.param().abi(), core::mem::transmute(length), core::mem::transmute(position), core::mem::transmute(status)) + uspoof_checkUTF8(sc, id.param().abi(), length, core::mem::transmute(position), core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_clone(sc: *const USpoofChecker, status: *mut UErrorCode) -> *mut USpoofChecker { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_clone(sc : *const USpoofChecker, status : *mut UErrorCode) -> *mut USpoofChecker); - uspoof_clone(core::mem::transmute(sc), core::mem::transmute(status)) + uspoof_clone(sc, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_close(sc: *mut USpoofChecker) { @@ -6649,7 +6607,7 @@ pub unsafe fn uspoof_closeCheckResult(checkresult: *mut USpoofCheckResult) { #[inline] pub unsafe fn uspoof_getAllowedChars(sc: *const USpoofChecker, status: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getAllowedChars(sc : *const USpoofChecker, status : *mut UErrorCode) -> *mut USet); - uspoof_getAllowedChars(core::mem::transmute(sc), core::mem::transmute(status)) + uspoof_getAllowedChars(sc, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_getAllowedLocales(sc: *mut USpoofChecker, status: *mut UErrorCode) -> windows_core::PCSTR { @@ -6659,22 +6617,22 @@ pub unsafe fn uspoof_getAllowedLocales(sc: *mut USpoofChecker, status: *mut UErr #[inline] pub unsafe fn uspoof_getCheckResultChecks(checkresult: *const USpoofCheckResult, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getCheckResultChecks(checkresult : *const USpoofCheckResult, status : *mut UErrorCode) -> i32); - uspoof_getCheckResultChecks(core::mem::transmute(checkresult), core::mem::transmute(status)) + uspoof_getCheckResultChecks(checkresult, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_getCheckResultNumerics(checkresult: *const USpoofCheckResult, status: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getCheckResultNumerics(checkresult : *const USpoofCheckResult, status : *mut UErrorCode) -> *mut USet); - uspoof_getCheckResultNumerics(core::mem::transmute(checkresult), core::mem::transmute(status)) + uspoof_getCheckResultNumerics(checkresult, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_getCheckResultRestrictionLevel(checkresult: *const USpoofCheckResult, status: *mut UErrorCode) -> URestrictionLevel { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getCheckResultRestrictionLevel(checkresult : *const USpoofCheckResult, status : *mut UErrorCode) -> URestrictionLevel); - uspoof_getCheckResultRestrictionLevel(core::mem::transmute(checkresult), core::mem::transmute(status)) + uspoof_getCheckResultRestrictionLevel(checkresult, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_getChecks(sc: *const USpoofChecker, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getChecks(sc : *const USpoofChecker, status : *mut UErrorCode) -> i32); - uspoof_getChecks(core::mem::transmute(sc), core::mem::transmute(status)) + uspoof_getChecks(sc, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_getInclusionSet(status: *mut UErrorCode) -> *mut USet { @@ -6689,12 +6647,12 @@ pub unsafe fn uspoof_getRecommendedSet(status: *mut UErrorCode) -> *mut USet { #[inline] pub unsafe fn uspoof_getRestrictionLevel(sc: *const USpoofChecker) -> URestrictionLevel { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getRestrictionLevel(sc : *const USpoofChecker) -> URestrictionLevel); - uspoof_getRestrictionLevel(core::mem::transmute(sc)) + uspoof_getRestrictionLevel(sc) } #[inline] pub unsafe fn uspoof_getSkeleton(sc: *const USpoofChecker, r#type: u32, id: *const u16, length: i32, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getSkeleton(sc : *const USpoofChecker, r#type : u32, id : *const u16, length : i32, dest : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - uspoof_getSkeleton(core::mem::transmute(sc), core::mem::transmute(r#type), core::mem::transmute(id), core::mem::transmute(length), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uspoof_getSkeleton(sc, r#type, id, length, core::mem::transmute(dest), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_getSkeletonUTF8(sc: *const USpoofChecker, r#type: u32, id: P2, length: i32, dest: P4, destcapacity: i32, status: *mut UErrorCode) -> i32 @@ -6703,7 +6661,7 @@ where P4: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_getSkeletonUTF8(sc : *const USpoofChecker, r#type : u32, id : windows_core::PCSTR, length : i32, dest : windows_core::PCSTR, destcapacity : i32, status : *mut UErrorCode) -> i32); - uspoof_getSkeletonUTF8(core::mem::transmute(sc), core::mem::transmute(r#type), id.param().abi(), core::mem::transmute(length), dest.param().abi(), core::mem::transmute(destcapacity), core::mem::transmute(status)) + uspoof_getSkeletonUTF8(sc, r#type, id.param().abi(), length, dest.param().abi(), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_open(status: *mut UErrorCode) -> *mut USpoofChecker { @@ -6718,7 +6676,7 @@ pub unsafe fn uspoof_openCheckResult(status: *mut UErrorCode) -> *mut USpoofChec #[inline] pub unsafe fn uspoof_openFromSerialized(data: *const core::ffi::c_void, length: i32, pactuallength: *mut i32, perrorcode: *mut UErrorCode) -> *mut USpoofChecker { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_openFromSerialized(data : *const core::ffi::c_void, length : i32, pactuallength : *mut i32, perrorcode : *mut UErrorCode) -> *mut USpoofChecker); - uspoof_openFromSerialized(core::mem::transmute(data), core::mem::transmute(length), core::mem::transmute(pactuallength), core::mem::transmute(perrorcode)) + uspoof_openFromSerialized(data, length, core::mem::transmute(pactuallength), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn uspoof_openFromSource(confusables: P0, confusableslen: i32, confusableswholescript: P2, confusableswholescriptlen: i32, errtype: *mut i32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut USpoofChecker @@ -6727,17 +6685,17 @@ where P2: windows_core::Param, { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_openFromSource(confusables : windows_core::PCSTR, confusableslen : i32, confusableswholescript : windows_core::PCSTR, confusableswholescriptlen : i32, errtype : *mut i32, pe : *mut UParseError, status : *mut UErrorCode) -> *mut USpoofChecker); - uspoof_openFromSource(confusables.param().abi(), core::mem::transmute(confusableslen), confusableswholescript.param().abi(), core::mem::transmute(confusableswholescriptlen), core::mem::transmute(errtype), core::mem::transmute(pe), core::mem::transmute(status)) + uspoof_openFromSource(confusables.param().abi(), confusableslen, confusableswholescript.param().abi(), confusableswholescriptlen, core::mem::transmute(errtype), core::mem::transmute(pe), core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_serialize(sc: *mut USpoofChecker, data: *mut core::ffi::c_void, capacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_serialize(sc : *mut USpoofChecker, data : *mut core::ffi::c_void, capacity : i32, status : *mut UErrorCode) -> i32); - uspoof_serialize(core::mem::transmute(sc), core::mem::transmute(data), core::mem::transmute(capacity), core::mem::transmute(status)) + uspoof_serialize(core::mem::transmute(sc), core::mem::transmute(data), capacity, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_setAllowedChars(sc: *mut USpoofChecker, chars: *const USet, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_setAllowedChars(sc : *mut USpoofChecker, chars : *const USet, status : *mut UErrorCode)); - uspoof_setAllowedChars(core::mem::transmute(sc), core::mem::transmute(chars), core::mem::transmute(status)) + uspoof_setAllowedChars(core::mem::transmute(sc), chars, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_setAllowedLocales(sc: *mut USpoofChecker, localeslist: P1, status: *mut UErrorCode) @@ -6750,12 +6708,12 @@ where #[inline] pub unsafe fn uspoof_setChecks(sc: *mut USpoofChecker, checks: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_setChecks(sc : *mut USpoofChecker, checks : i32, status : *mut UErrorCode)); - uspoof_setChecks(core::mem::transmute(sc), core::mem::transmute(checks), core::mem::transmute(status)) + uspoof_setChecks(core::mem::transmute(sc), checks, core::mem::transmute(status)) } #[inline] pub unsafe fn uspoof_setRestrictionLevel(sc: *mut USpoofChecker, restrictionlevel: URestrictionLevel) { windows_targets::link!("icuin.dll" "cdecl" fn uspoof_setRestrictionLevel(sc : *mut USpoofChecker, restrictionlevel : URestrictionLevel)); - uspoof_setRestrictionLevel(core::mem::transmute(sc), core::mem::transmute(restrictionlevel)) + uspoof_setRestrictionLevel(core::mem::transmute(sc), restrictionlevel) } #[inline] pub unsafe fn usprep_close(profile: *mut UStringPrepProfile) { @@ -6774,22 +6732,22 @@ where #[inline] pub unsafe fn usprep_openByType(r#type: UStringPrepProfileType, status: *mut UErrorCode) -> *mut UStringPrepProfile { windows_targets::link!("icuuc.dll" "cdecl" fn usprep_openByType(r#type : UStringPrepProfileType, status : *mut UErrorCode) -> *mut UStringPrepProfile); - usprep_openByType(core::mem::transmute(r#type), core::mem::transmute(status)) + usprep_openByType(r#type, core::mem::transmute(status)) } #[inline] pub unsafe fn usprep_prepare(prep: *const UStringPrepProfile, src: *const u16, srclength: i32, dest: *mut u16, destcapacity: i32, options: i32, parseerror: *mut UParseError, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn usprep_prepare(prep : *const UStringPrepProfile, src : *const u16, srclength : i32, dest : *mut u16, destcapacity : i32, options : i32, parseerror : *mut UParseError, status : *mut UErrorCode) -> i32); - usprep_prepare(core::mem::transmute(prep), core::mem::transmute(src), core::mem::transmute(srclength), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(options), core::mem::transmute(parseerror), core::mem::transmute(status)) + usprep_prepare(prep, src, srclength, core::mem::transmute(dest), destcapacity, options, core::mem::transmute(parseerror), core::mem::transmute(status)) } #[inline] pub unsafe fn utext_char32At(ut: *mut UText, nativeindex: i64) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_char32At(ut : *mut UText, nativeindex : i64) -> i32); - utext_char32At(core::mem::transmute(ut), core::mem::transmute(nativeindex)) + utext_char32At(core::mem::transmute(ut), nativeindex) } #[inline] pub unsafe fn utext_clone(dest: *mut UText, src: *const UText, deep: i8, readonly: i8, status: *mut UErrorCode) -> *mut UText { windows_targets::link!("icuuc.dll" "cdecl" fn utext_clone(dest : *mut UText, src : *const UText, deep : i8, readonly : i8, status : *mut UErrorCode) -> *mut UText); - utext_clone(core::mem::transmute(dest), core::mem::transmute(src), core::mem::transmute(deep), core::mem::transmute(readonly), core::mem::transmute(status)) + utext_clone(core::mem::transmute(dest), src, deep, readonly, core::mem::transmute(status)) } #[inline] pub unsafe fn utext_close(ut: *mut UText) -> *mut UText { @@ -6799,7 +6757,7 @@ pub unsafe fn utext_close(ut: *mut UText) -> *mut UText { #[inline] pub unsafe fn utext_copy(ut: *mut UText, nativestart: i64, nativelimit: i64, destindex: i64, r#move: i8, status: *mut UErrorCode) { windows_targets::link!("icuuc.dll" "cdecl" fn utext_copy(ut : *mut UText, nativestart : i64, nativelimit : i64, destindex : i64, r#move : i8, status : *mut UErrorCode)); - utext_copy(core::mem::transmute(ut), core::mem::transmute(nativestart), core::mem::transmute(nativelimit), core::mem::transmute(destindex), core::mem::transmute(r#move), core::mem::transmute(status)) + utext_copy(core::mem::transmute(ut), nativestart, nativelimit, destindex, r#move, core::mem::transmute(status)) } #[inline] pub unsafe fn utext_current32(ut: *mut UText) -> i32 { @@ -6809,12 +6767,12 @@ pub unsafe fn utext_current32(ut: *mut UText) -> i32 { #[inline] pub unsafe fn utext_equals(a: *const UText, b: *const UText) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_equals(a : *const UText, b : *const UText) -> i8); - utext_equals(core::mem::transmute(a), core::mem::transmute(b)) + utext_equals(a, b) } #[inline] pub unsafe fn utext_extract(ut: *mut UText, nativestart: i64, nativelimit: i64, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_extract(ut : *mut UText, nativestart : i64, nativelimit : i64, dest : *mut u16, destcapacity : i32, status : *mut UErrorCode) -> i32); - utext_extract(core::mem::transmute(ut), core::mem::transmute(nativestart), core::mem::transmute(nativelimit), core::mem::transmute(dest), core::mem::transmute(destcapacity), core::mem::transmute(status)) + utext_extract(core::mem::transmute(ut), nativestart, nativelimit, core::mem::transmute(dest), destcapacity, core::mem::transmute(status)) } #[inline] pub unsafe fn utext_freeze(ut: *mut UText) { @@ -6824,7 +6782,7 @@ pub unsafe fn utext_freeze(ut: *mut UText) { #[inline] pub unsafe fn utext_getNativeIndex(ut: *const UText) -> i64 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_getNativeIndex(ut : *const UText) -> i64); - utext_getNativeIndex(core::mem::transmute(ut)) + utext_getNativeIndex(ut) } #[inline] pub unsafe fn utext_getPreviousNativeIndex(ut: *mut UText) -> i64 { @@ -6834,22 +6792,22 @@ pub unsafe fn utext_getPreviousNativeIndex(ut: *mut UText) -> i64 { #[inline] pub unsafe fn utext_hasMetaData(ut: *const UText) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_hasMetaData(ut : *const UText) -> i8); - utext_hasMetaData(core::mem::transmute(ut)) + utext_hasMetaData(ut) } #[inline] pub unsafe fn utext_isLengthExpensive(ut: *const UText) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_isLengthExpensive(ut : *const UText) -> i8); - utext_isLengthExpensive(core::mem::transmute(ut)) + utext_isLengthExpensive(ut) } #[inline] pub unsafe fn utext_isWritable(ut: *const UText) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_isWritable(ut : *const UText) -> i8); - utext_isWritable(core::mem::transmute(ut)) + utext_isWritable(ut) } #[inline] pub unsafe fn utext_moveIndex32(ut: *mut UText, delta: i32) -> i8 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_moveIndex32(ut : *mut UText, delta : i32) -> i8); - utext_moveIndex32(core::mem::transmute(ut), core::mem::transmute(delta)) + utext_moveIndex32(core::mem::transmute(ut), delta) } #[inline] pub unsafe fn utext_nativeLength(ut: *mut UText) -> i64 { @@ -6864,12 +6822,12 @@ pub unsafe fn utext_next32(ut: *mut UText) -> i32 { #[inline] pub unsafe fn utext_next32From(ut: *mut UText, nativeindex: i64) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_next32From(ut : *mut UText, nativeindex : i64) -> i32); - utext_next32From(core::mem::transmute(ut), core::mem::transmute(nativeindex)) + utext_next32From(core::mem::transmute(ut), nativeindex) } #[inline] pub unsafe fn utext_openUChars(ut: *mut UText, s: *const u16, length: i64, status: *mut UErrorCode) -> *mut UText { windows_targets::link!("icuuc.dll" "cdecl" fn utext_openUChars(ut : *mut UText, s : *const u16, length : i64, status : *mut UErrorCode) -> *mut UText); - utext_openUChars(core::mem::transmute(ut), core::mem::transmute(s), core::mem::transmute(length), core::mem::transmute(status)) + utext_openUChars(core::mem::transmute(ut), s, length, core::mem::transmute(status)) } #[inline] pub unsafe fn utext_openUTF8(ut: *mut UText, s: P1, length: i64, status: *mut UErrorCode) -> *mut UText @@ -6877,7 +6835,7 @@ where P1: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn utext_openUTF8(ut : *mut UText, s : windows_core::PCSTR, length : i64, status : *mut UErrorCode) -> *mut UText); - utext_openUTF8(core::mem::transmute(ut), s.param().abi(), core::mem::transmute(length), core::mem::transmute(status)) + utext_openUTF8(core::mem::transmute(ut), s.param().abi(), length, core::mem::transmute(status)) } #[inline] pub unsafe fn utext_previous32(ut: *mut UText) -> i32 { @@ -6887,57 +6845,57 @@ pub unsafe fn utext_previous32(ut: *mut UText) -> i32 { #[inline] pub unsafe fn utext_previous32From(ut: *mut UText, nativeindex: i64) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_previous32From(ut : *mut UText, nativeindex : i64) -> i32); - utext_previous32From(core::mem::transmute(ut), core::mem::transmute(nativeindex)) + utext_previous32From(core::mem::transmute(ut), nativeindex) } #[inline] pub unsafe fn utext_replace(ut: *mut UText, nativestart: i64, nativelimit: i64, replacementtext: *const u16, replacementlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utext_replace(ut : *mut UText, nativestart : i64, nativelimit : i64, replacementtext : *const u16, replacementlength : i32, status : *mut UErrorCode) -> i32); - utext_replace(core::mem::transmute(ut), core::mem::transmute(nativestart), core::mem::transmute(nativelimit), core::mem::transmute(replacementtext), core::mem::transmute(replacementlength), core::mem::transmute(status)) + utext_replace(core::mem::transmute(ut), nativestart, nativelimit, replacementtext, replacementlength, core::mem::transmute(status)) } #[inline] pub unsafe fn utext_setNativeIndex(ut: *mut UText, nativeindex: i64) { windows_targets::link!("icuuc.dll" "cdecl" fn utext_setNativeIndex(ut : *mut UText, nativeindex : i64)); - utext_setNativeIndex(core::mem::transmute(ut), core::mem::transmute(nativeindex)) + utext_setNativeIndex(core::mem::transmute(ut), nativeindex) } #[inline] pub unsafe fn utext_setup(ut: *mut UText, extraspace: i32, status: *mut UErrorCode) -> *mut UText { windows_targets::link!("icuuc.dll" "cdecl" fn utext_setup(ut : *mut UText, extraspace : i32, status : *mut UErrorCode) -> *mut UText); - utext_setup(core::mem::transmute(ut), core::mem::transmute(extraspace), core::mem::transmute(status)) + utext_setup(core::mem::transmute(ut), extraspace, core::mem::transmute(status)) } #[inline] pub unsafe fn utf8_appendCharSafeBody(s: *mut u8, i: i32, length: i32, c: i32, piserror: *mut i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utf8_appendCharSafeBody(s : *mut u8, i : i32, length : i32, c : i32, piserror : *mut i8) -> i32); - utf8_appendCharSafeBody(core::mem::transmute(s), core::mem::transmute(i), core::mem::transmute(length), core::mem::transmute(c), core::mem::transmute(piserror)) + utf8_appendCharSafeBody(core::mem::transmute(s), i, length, c, core::mem::transmute(piserror)) } #[inline] pub unsafe fn utf8_back1SafeBody(s: *const u8, start: i32, i: i32) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utf8_back1SafeBody(s : *const u8, start : i32, i : i32) -> i32); - utf8_back1SafeBody(core::mem::transmute(s), core::mem::transmute(start), core::mem::transmute(i)) + utf8_back1SafeBody(s, start, i) } #[inline] pub unsafe fn utf8_nextCharSafeBody(s: *const u8, pi: *mut i32, length: i32, c: i32, strict: i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utf8_nextCharSafeBody(s : *const u8, pi : *mut i32, length : i32, c : i32, strict : i8) -> i32); - utf8_nextCharSafeBody(core::mem::transmute(s), core::mem::transmute(pi), core::mem::transmute(length), core::mem::transmute(c), core::mem::transmute(strict)) + utf8_nextCharSafeBody(s, core::mem::transmute(pi), length, c, strict) } #[inline] pub unsafe fn utf8_prevCharSafeBody(s: *const u8, start: i32, pi: *mut i32, c: i32, strict: i8) -> i32 { windows_targets::link!("icuuc.dll" "cdecl" fn utf8_prevCharSafeBody(s : *const u8, start : i32, pi : *mut i32, c : i32, strict : i8) -> i32); - utf8_prevCharSafeBody(core::mem::transmute(s), core::mem::transmute(start), core::mem::transmute(pi), core::mem::transmute(c), core::mem::transmute(strict)) + utf8_prevCharSafeBody(s, start, core::mem::transmute(pi), c, strict) } #[inline] pub unsafe fn utmscale_fromInt64(othertime: i64, timescale: UDateTimeScale, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn utmscale_fromInt64(othertime : i64, timescale : UDateTimeScale, status : *mut UErrorCode) -> i64); - utmscale_fromInt64(core::mem::transmute(othertime), core::mem::transmute(timescale), core::mem::transmute(status)) + utmscale_fromInt64(othertime, timescale, core::mem::transmute(status)) } #[inline] pub unsafe fn utmscale_getTimeScaleValue(timescale: UDateTimeScale, value: UTimeScaleValue, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn utmscale_getTimeScaleValue(timescale : UDateTimeScale, value : UTimeScaleValue, status : *mut UErrorCode) -> i64); - utmscale_getTimeScaleValue(core::mem::transmute(timescale), core::mem::transmute(value), core::mem::transmute(status)) + utmscale_getTimeScaleValue(timescale, value, core::mem::transmute(status)) } #[inline] pub unsafe fn utmscale_toInt64(universaltime: i64, timescale: UDateTimeScale, status: *mut UErrorCode) -> i64 { windows_targets::link!("icuin.dll" "cdecl" fn utmscale_toInt64(universaltime : i64, timescale : UDateTimeScale, status : *mut UErrorCode) -> i64); - utmscale_toInt64(core::mem::transmute(universaltime), core::mem::transmute(timescale), core::mem::transmute(status)) + utmscale_toInt64(universaltime, timescale, core::mem::transmute(status)) } #[inline] pub unsafe fn utrace_format(outbuf: P0, capacity: i32, indent: i32, fmt: P3) -> i32 @@ -6946,17 +6904,17 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn utrace_format(outbuf : windows_core::PCSTR, capacity : i32, indent : i32, fmt : windows_core::PCSTR) -> i32); - utrace_format(outbuf.param().abi(), core::mem::transmute(capacity), core::mem::transmute(indent), fmt.param().abi()) + utrace_format(outbuf.param().abi(), capacity, indent, fmt.param().abi()) } #[inline] pub unsafe fn utrace_functionName(fnnumber: i32) -> windows_core::PCSTR { windows_targets::link!("icuuc.dll" "cdecl" fn utrace_functionName(fnnumber : i32) -> windows_core::PCSTR); - utrace_functionName(core::mem::transmute(fnnumber)) + utrace_functionName(fnnumber) } #[inline] pub unsafe fn utrace_getFunctions(context: *const *const core::ffi::c_void, e: *mut UTraceEntry, x: *mut UTraceExit, d: *mut UTraceData) { windows_targets::link!("icuuc.dll" "cdecl" fn utrace_getFunctions(context : *const *const core::ffi::c_void, e : *mut UTraceEntry, x : *mut UTraceExit, d : *mut UTraceData)); - utrace_getFunctions(core::mem::transmute(context), core::mem::transmute(e), core::mem::transmute(x), core::mem::transmute(d)) + utrace_getFunctions(context, core::mem::transmute(e), core::mem::transmute(x), core::mem::transmute(d)) } #[inline] pub unsafe fn utrace_getLevel() -> i32 { @@ -6966,12 +6924,12 @@ pub unsafe fn utrace_getLevel() -> i32 { #[inline] pub unsafe fn utrace_setFunctions(context: *const core::ffi::c_void, e: UTraceEntry, x: UTraceExit, d: UTraceData) { windows_targets::link!("icuuc.dll" "cdecl" fn utrace_setFunctions(context : *const core::ffi::c_void, e : UTraceEntry, x : UTraceExit, d : UTraceData)); - utrace_setFunctions(core::mem::transmute(context), core::mem::transmute(e), core::mem::transmute(x), core::mem::transmute(d)) + utrace_setFunctions(context, e, x, d) } #[inline] pub unsafe fn utrace_setLevel(tracelevel: i32) { windows_targets::link!("icuuc.dll" "cdecl" fn utrace_setLevel(tracelevel : i32)); - utrace_setLevel(core::mem::transmute(tracelevel)) + utrace_setLevel(tracelevel) } #[inline] pub unsafe fn utrace_vformat(outbuf: P0, capacity: i32, indent: i32, fmt: P3, args: *mut i8) -> i32 @@ -6980,12 +6938,12 @@ where P3: windows_core::Param, { windows_targets::link!("icuuc.dll" "cdecl" fn utrace_vformat(outbuf : windows_core::PCSTR, capacity : i32, indent : i32, fmt : windows_core::PCSTR, args : *mut i8) -> i32); - utrace_vformat(outbuf.param().abi(), core::mem::transmute(capacity), core::mem::transmute(indent), fmt.param().abi(), core::mem::transmute(args)) + utrace_vformat(outbuf.param().abi(), capacity, indent, fmt.param().abi(), core::mem::transmute(args)) } #[inline] pub unsafe fn utrans_clone(trans: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn utrans_clone(trans : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - utrans_clone(core::mem::transmute(trans), core::mem::transmute(status)) + utrans_clone(trans, core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_close(trans: *mut *mut core::ffi::c_void) { @@ -7000,12 +6958,12 @@ pub unsafe fn utrans_countAvailableIDs() -> i32 { #[inline] pub unsafe fn utrans_getSourceSet(trans: *const *const core::ffi::c_void, ignorefilter: i8, fillin: *mut USet, status: *mut UErrorCode) -> *mut USet { windows_targets::link!("icuin.dll" "cdecl" fn utrans_getSourceSet(trans : *const *const core::ffi::c_void, ignorefilter : i8, fillin : *mut USet, status : *mut UErrorCode) -> *mut USet); - utrans_getSourceSet(core::mem::transmute(trans), core::mem::transmute(ignorefilter), core::mem::transmute(fillin), core::mem::transmute(status)) + utrans_getSourceSet(trans, ignorefilter, core::mem::transmute(fillin), core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_getUnicodeID(trans: *const *const core::ffi::c_void, resultlength: *mut i32) -> *mut u16 { windows_targets::link!("icuin.dll" "cdecl" fn utrans_getUnicodeID(trans : *const *const core::ffi::c_void, resultlength : *mut i32) -> *mut u16); - utrans_getUnicodeID(core::mem::transmute(trans), core::mem::transmute(resultlength)) + utrans_getUnicodeID(trans, core::mem::transmute(resultlength)) } #[inline] pub unsafe fn utrans_openIDs(perrorcode: *mut UErrorCode) -> *mut UEnumeration { @@ -7015,12 +6973,12 @@ pub unsafe fn utrans_openIDs(perrorcode: *mut UErrorCode) -> *mut UEnumeration { #[inline] pub unsafe fn utrans_openInverse(trans: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn utrans_openInverse(trans : *const *const core::ffi::c_void, status : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - utrans_openInverse(core::mem::transmute(trans), core::mem::transmute(status)) + utrans_openInverse(trans, core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_openU(id: *const u16, idlength: i32, dir: UTransDirection, rules: *const u16, ruleslength: i32, parseerror: *mut UParseError, perrorcode: *mut UErrorCode) -> *mut *mut core::ffi::c_void { windows_targets::link!("icuin.dll" "cdecl" fn utrans_openU(id : *const u16, idlength : i32, dir : UTransDirection, rules : *const u16, ruleslength : i32, parseerror : *mut UParseError, perrorcode : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - utrans_openU(core::mem::transmute(id), core::mem::transmute(idlength), core::mem::transmute(dir), core::mem::transmute(rules), core::mem::transmute(ruleslength), core::mem::transmute(parseerror), core::mem::transmute(perrorcode)) + utrans_openU(id, idlength, dir, rules, ruleslength, core::mem::transmute(parseerror), core::mem::transmute(perrorcode)) } #[inline] pub unsafe fn utrans_register(adoptedtrans: *mut *mut core::ffi::c_void, status: *mut UErrorCode) { @@ -7030,37 +6988,37 @@ pub unsafe fn utrans_register(adoptedtrans: *mut *mut core::ffi::c_void, status: #[inline] pub unsafe fn utrans_setFilter(trans: *mut *mut core::ffi::c_void, filterpattern: *const u16, filterpatternlen: i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn utrans_setFilter(trans : *mut *mut core::ffi::c_void, filterpattern : *const u16, filterpatternlen : i32, status : *mut UErrorCode)); - utrans_setFilter(core::mem::transmute(trans), core::mem::transmute(filterpattern), core::mem::transmute(filterpatternlen), core::mem::transmute(status)) + utrans_setFilter(core::mem::transmute(trans), filterpattern, filterpatternlen, core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_toRules(trans: *const *const core::ffi::c_void, escapeunprintable: i8, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { windows_targets::link!("icuin.dll" "cdecl" fn utrans_toRules(trans : *const *const core::ffi::c_void, escapeunprintable : i8, result : *mut u16, resultlength : i32, status : *mut UErrorCode) -> i32); - utrans_toRules(core::mem::transmute(trans), core::mem::transmute(escapeunprintable), core::mem::transmute(result), core::mem::transmute(resultlength), core::mem::transmute(status)) + utrans_toRules(trans, escapeunprintable, core::mem::transmute(result), resultlength, core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_trans(trans: *const *const core::ffi::c_void, rep: *mut *mut core::ffi::c_void, repfunc: *const UReplaceableCallbacks, start: i32, limit: *mut i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn utrans_trans(trans : *const *const core::ffi::c_void, rep : *mut *mut core::ffi::c_void, repfunc : *const UReplaceableCallbacks, start : i32, limit : *mut i32, status : *mut UErrorCode)); - utrans_trans(core::mem::transmute(trans), core::mem::transmute(rep), core::mem::transmute(repfunc), core::mem::transmute(start), core::mem::transmute(limit), core::mem::transmute(status)) + utrans_trans(trans, core::mem::transmute(rep), repfunc, start, core::mem::transmute(limit), core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_transIncremental(trans: *const *const core::ffi::c_void, rep: *mut *mut core::ffi::c_void, repfunc: *const UReplaceableCallbacks, pos: *mut UTransPosition, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn utrans_transIncremental(trans : *const *const core::ffi::c_void, rep : *mut *mut core::ffi::c_void, repfunc : *const UReplaceableCallbacks, pos : *mut UTransPosition, status : *mut UErrorCode)); - utrans_transIncremental(core::mem::transmute(trans), core::mem::transmute(rep), core::mem::transmute(repfunc), core::mem::transmute(pos), core::mem::transmute(status)) + utrans_transIncremental(trans, core::mem::transmute(rep), repfunc, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_transIncrementalUChars(trans: *const *const core::ffi::c_void, text: *mut u16, textlength: *mut i32, textcapacity: i32, pos: *mut UTransPosition, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn utrans_transIncrementalUChars(trans : *const *const core::ffi::c_void, text : *mut u16, textlength : *mut i32, textcapacity : i32, pos : *mut UTransPosition, status : *mut UErrorCode)); - utrans_transIncrementalUChars(core::mem::transmute(trans), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(textcapacity), core::mem::transmute(pos), core::mem::transmute(status)) + utrans_transIncrementalUChars(trans, core::mem::transmute(text), core::mem::transmute(textlength), textcapacity, core::mem::transmute(pos), core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_transUChars(trans: *const *const core::ffi::c_void, text: *mut u16, textlength: *mut i32, textcapacity: i32, start: i32, limit: *mut i32, status: *mut UErrorCode) { windows_targets::link!("icuin.dll" "cdecl" fn utrans_transUChars(trans : *const *const core::ffi::c_void, text : *mut u16, textlength : *mut i32, textcapacity : i32, start : i32, limit : *mut i32, status : *mut UErrorCode)); - utrans_transUChars(core::mem::transmute(trans), core::mem::transmute(text), core::mem::transmute(textlength), core::mem::transmute(textcapacity), core::mem::transmute(start), core::mem::transmute(limit), core::mem::transmute(status)) + utrans_transUChars(trans, core::mem::transmute(text), core::mem::transmute(textlength), textcapacity, start, core::mem::transmute(limit), core::mem::transmute(status)) } #[inline] pub unsafe fn utrans_unregisterID(id: *const u16, idlength: i32) { windows_targets::link!("icuin.dll" "cdecl" fn utrans_unregisterID(id : *const u16, idlength : i32)); - utrans_unregisterID(core::mem::transmute(id), core::mem::transmute(idlength)) + utrans_unregisterID(id, idlength) } pub const ALL_SERVICES: u32 = 0u32; pub const ALL_SERVICE_TYPES: u32 = 0u32; @@ -7725,13 +7683,13 @@ impl IEnumCodePage { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenum.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Next(&self, celt: u32, rgelt: *mut MIMECPINFO, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } } #[repr(C)] @@ -7786,13 +7744,13 @@ impl IEnumRfc1766 { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenum.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Next(&self, celt: u32, rgelt: *mut RFC1766INFO, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } } #[repr(C)] @@ -7847,13 +7805,13 @@ impl IEnumScript { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenum.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Next(&self, celt: u32, rgelt: *mut SCRIPTINFO, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } } #[repr(C)] @@ -7934,18 +7892,18 @@ windows_core::imp::interface_hierarchy!(IMLangCodePages, windows_core::IUnknown) impl IMLangCodePages { pub unsafe fn GetCharCodePages(&self, chsrc: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCharCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(chsrc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCharCodePages)(windows_core::Interface::as_raw(self), chsrc, &mut result__).map(|| result__) } pub unsafe fn GetStrCodePages(&self, pszsrc: &[u16], dwprioritycodepages: u32, pdwcodepages: Option<*mut u32>, pcchcodepages: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStrCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(dwprioritycodepages), core::mem::transmute(pdwcodepages.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcodepages.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStrCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), dwprioritycodepages, core::mem::transmute(pdwcodepages.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcodepages.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CodePageToCodePages(&self, ucodepage: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CodePageToCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(ucodepage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CodePageToCodePages)(windows_core::Interface::as_raw(self), ucodepage, &mut result__).map(|| result__) } pub unsafe fn CodePagesToCodePage(&self, dwcodepages: u32, udefaultcodepage: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CodePagesToCodePage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcodepages), core::mem::transmute(udefaultcodepage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CodePagesToCodePage)(windows_core::Interface::as_raw(self), dwcodepages, udefaultcodepage, &mut result__).map(|| result__) } } #[repr(C)] @@ -8015,7 +7973,7 @@ windows_core::imp::define_interface!(IMLangConvertCharset, IMLangConvertCharset_ windows_core::imp::interface_hierarchy!(IMLangConvertCharset, windows_core::IUnknown); impl IMLangConvertCharset { pub unsafe fn Initialize(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(uisrccodepage), core::mem::transmute(uidstcodepage), core::mem::transmute(dwproperty)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), uisrccodepage, uidstcodepage, dwproperty).ok() } pub unsafe fn GetSourceCodePage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8030,7 +7988,7 @@ impl IMLangConvertCharset { (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DoConversion(&self, psrcstr: *const u8, pcsrcsize: Option<*mut u32>, pdststr: *mut u8, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoConversion)(windows_core::Interface::as_raw(self), core::mem::transmute(psrcstr), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DoConversion)(windows_core::Interface::as_raw(self), psrcstr, core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DoConversionToUnicode(&self, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where @@ -8140,15 +8098,15 @@ windows_core::imp::interface_hierarchy!(IMLangFontLink, windows_core::IUnknown, impl IMLangFontLink { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFontCodePages(&self, hdc: super::Graphics::Gdi::HDC, hfont: super::Graphics::Gdi::HFONT, pdwcodepages: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(hfont), core::mem::transmute(pdwcodepages.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), hdc, hfont, core::mem::transmute(pdwcodepages.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn MapFont(&self, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, hsrcfont: super::Graphics::Gdi::HFONT, phdestfont: Option<*mut super::Graphics::Gdi::HFONT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(dwcodepages), core::mem::transmute(hsrcfont), core::mem::transmute(phdestfont.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), hdc, dwcodepages, hsrcfont, core::mem::transmute(phdestfont.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseFont(&self, hfont: super::Graphics::Gdi::HFONT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), core::mem::transmute(hfont)).ok() + (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), hfont).ok() } pub unsafe fn ResetFontMapping(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetFontMapping)(windows_core::Interface::as_raw(self)).ok() @@ -8222,29 +8180,29 @@ windows_core::imp::interface_hierarchy!(IMLangFontLink2, windows_core::IUnknown, impl IMLangFontLink2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFontCodePages(&self, hdc: super::Graphics::Gdi::HDC, hfont: super::Graphics::Gdi::HFONT, pdwcodepages: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(hfont), core::mem::transmute(pdwcodepages.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), hdc, hfont, core::mem::transmute(pdwcodepages.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseFont(&self, hfont: super::Graphics::Gdi::HFONT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), core::mem::transmute(hfont)).ok() + (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), hfont).ok() } pub unsafe fn ResetFontMapping(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetFontMapping)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn MapFont(&self, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, chsrc: u16, pfont: Option<*mut super::Graphics::Gdi::HFONT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(dwcodepages), core::mem::transmute(chsrc), core::mem::transmute(pfont.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), hdc, dwcodepages, chsrc, core::mem::transmute(pfont.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFontUnicodeRanges(&self, hdc: super::Graphics::Gdi::HDC, puiranges: *const u32, puranges: Option<*mut UNICODERANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontUnicodeRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(puiranges), core::mem::transmute(puranges.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontUnicodeRanges)(windows_core::Interface::as_raw(self), hdc, puiranges, core::mem::transmute(puranges.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetScriptFontInfo(&self, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: Option<*mut SCRIPTFONTINFO>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScriptFontInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(sid), core::mem::transmute(dwflags), core::mem::transmute(puifonts), core::mem::transmute(pscriptfont.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetScriptFontInfo)(windows_core::Interface::as_raw(self), sid, dwflags, core::mem::transmute(puifonts), core::mem::transmute(pscriptfont.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CodePageToScriptID(&self, uicodepage: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CodePageToScriptID)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CodePageToScriptID)(windows_core::Interface::as_raw(self), uicodepage, &mut result__).map(|| result__) } } #[repr(C)] @@ -8341,13 +8299,13 @@ impl IMLangLineBreakConsole { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BreakLineML)(windows_core::Interface::as_raw(self), psrcmlstr.param().abi(), core::mem::transmute(lsrcpos), core::mem::transmute(lsrclen), core::mem::transmute(cmincolumns), core::mem::transmute(cmaxcolumns), core::mem::transmute(pllinelen.unwrap_or(core::mem::zeroed())), core::mem::transmute(plskiplen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).BreakLineML)(windows_core::Interface::as_raw(self), psrcmlstr.param().abi(), lsrcpos, lsrclen, cmincolumns, cmaxcolumns, core::mem::transmute(pllinelen.unwrap_or(core::mem::zeroed())), core::mem::transmute(plskiplen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn BreakLineW(&self, locale: u32, pszsrc: &[u16], cmaxcolumns: i32, pcchline: Option<*mut i32>, pcchskip: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BreakLineW)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(cmaxcolumns), core::mem::transmute(pcchline.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchskip.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).BreakLineW)(windows_core::Interface::as_raw(self), locale, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), cmaxcolumns, core::mem::transmute(pcchline.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchskip.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn BreakLineA(&self, locale: u32, ucodepage: u32, pszsrc: &[u8], cmaxcolumns: i32, pcchline: Option<*mut i32>, pcchskip: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BreakLineA)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), core::mem::transmute(ucodepage), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(cmaxcolumns), core::mem::transmute(pcchline.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchskip.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).BreakLineA)(windows_core::Interface::as_raw(self), locale, ucodepage, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), cmaxcolumns, core::mem::transmute(pcchline.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchskip.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -8401,13 +8359,13 @@ impl IMLangString { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMLStr)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), psrcmlstr.param().abi(), core::mem::transmute(lsrcpos), core::mem::transmute(lsrclen)).ok() + (windows_core::Interface::vtable(self).SetMLStr)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcmlstr.param().abi(), lsrcpos, lsrclen).ok() } pub unsafe fn GetMLStr(&self, lsrcpos: i32, lsrclen: i32, punkouter: P2, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: *mut Option, pldestpos: Option<*mut i32>, pldestlen: Option<*mut i32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMLStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrclen), punkouter.param().abi(), core::mem::transmute(dwclscontext), core::mem::transmute(piid), core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(core::mem::zeroed())), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetMLStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, punkouter.param().abi(), dwclscontext, piid, core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(core::mem::zeroed())), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -8465,42 +8423,31 @@ impl core::ops::Deref for IMLangStringAStr { windows_core::imp::interface_hierarchy!(IMLangStringAStr, windows_core::IUnknown, IMLangString); impl IMLangStringAStr { pub unsafe fn SetAStr(&self, ldestpos: i32, ldestlen: i32, ucodepage: u32, pszsrc: &[u8], pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAStr)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), core::mem::transmute(ucodepage), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetAStr)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, ucodepage, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetStrBufA(&self, ldestpos: i32, ldestlen: i32, ucodepage: u32, psrcbuf: P3, pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrBufA)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), core::mem::transmute(ucodepage), psrcbuf.param().abi(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetStrBufA)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, ucodepage, psrcbuf.param().abi(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetAStr(&self, lsrcpos: i32, lsrclen: i32, ucodepagein: u32, pucodepageout: Option<*const u32>, pszdest: Option<&mut [u8]>, pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAStr)( - windows_core::Interface::as_raw(self), - core::mem::transmute(lsrcpos), - core::mem::transmute(lsrclen), - core::mem::transmute(ucodepagein), - core::mem::transmute(pucodepageout.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pszdest.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pszdest.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), - core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetAStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, ucodepagein, core::mem::transmute(pucodepageout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszdest.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdest.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStrBufA(&self, lsrcpos: i32, lsrcmaxlen: i32, pudestcodepage: Option<*mut u32>, ppdestbuf: *mut Option, pldestlen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStrBufA)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrcmaxlen), core::mem::transmute(pudestcodepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdestbuf), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStrBufA)(windows_core::Interface::as_raw(self), lsrcpos, lsrcmaxlen, core::mem::transmute(pudestcodepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdestbuf), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn LockAStr(&self, lsrcpos: i32, lsrclen: i32, lflags: i32, ucodepagein: u32, cchrequest: i32, pucodepageout: Option<*mut u32>, ppszdest: Option<*mut windows_core::PSTR>, pcchdest: Option<*mut i32>, pldestlen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockAStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrclen), core::mem::transmute(lflags), core::mem::transmute(ucodepagein), core::mem::transmute(cchrequest), core::mem::transmute(pucodepageout.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppszdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).LockAStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, lflags, ucodepagein, cchrequest, core::mem::transmute(pucodepageout.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppszdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnlockAStr(&self, pszsrc: &[u8], pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnlockAStr)(windows_core::Interface::as_raw(self), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetLocale(&self, ldestpos: i32, ldestlen: i32, locale: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), core::mem::transmute(locale)).ok() + (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, locale).ok() } pub unsafe fn GetLocale(&self, lsrcpos: i32, lsrcmaxlen: i32, plocale: Option<*mut u32>, pllocalepos: Option<*mut i32>, pllocalelen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrcmaxlen), core::mem::transmute(plocale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalepos.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalelen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLocale)(windows_core::Interface::as_raw(self), lsrcpos, lsrcmaxlen, core::mem::transmute(plocale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalepos.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalelen.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -8583,19 +8530,19 @@ impl IMLangStringBufA { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(plflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn LockBuf(&self, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut i8, pcchbuf: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockBuf)(windows_core::Interface::as_raw(self), core::mem::transmute(cchoffset), core::mem::transmute(cchmaxlock), core::mem::transmute(ppszbuf), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).LockBuf)(windows_core::Interface::as_raw(self), cchoffset, cchmaxlock, core::mem::transmute(ppszbuf), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnlockBuf(&self, pszbuf: P0, cchoffset: i32, cchwrite: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockBuf)(windows_core::Interface::as_raw(self), pszbuf.param().abi(), core::mem::transmute(cchoffset), core::mem::transmute(cchwrite)).ok() + (windows_core::Interface::vtable(self).UnlockBuf)(windows_core::Interface::as_raw(self), pszbuf.param().abi(), cchoffset, cchwrite).ok() } pub unsafe fn Insert(&self, cchoffset: i32, cchmaxinsert: i32, pcchactual: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(cchoffset), core::mem::transmute(cchmaxinsert), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), cchoffset, cchmaxinsert, core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Delete(&self, cchoffset: i32, cchdelete: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(cchoffset), core::mem::transmute(cchdelete)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), cchoffset, cchdelete).ok() } } #[repr(C)] @@ -8657,19 +8604,19 @@ impl IMLangStringBufW { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(plflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn LockBuf(&self, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut u16, pcchbuf: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockBuf)(windows_core::Interface::as_raw(self), core::mem::transmute(cchoffset), core::mem::transmute(cchmaxlock), core::mem::transmute(ppszbuf), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).LockBuf)(windows_core::Interface::as_raw(self), cchoffset, cchmaxlock, core::mem::transmute(ppszbuf), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnlockBuf(&self, pszbuf: P0, cchoffset: i32, cchwrite: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockBuf)(windows_core::Interface::as_raw(self), pszbuf.param().abi(), core::mem::transmute(cchoffset), core::mem::transmute(cchwrite)).ok() + (windows_core::Interface::vtable(self).UnlockBuf)(windows_core::Interface::as_raw(self), pszbuf.param().abi(), cchoffset, cchwrite).ok() } pub unsafe fn Insert(&self, cchoffset: i32, cchmaxinsert: i32, pcchactual: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(cchoffset), core::mem::transmute(cchmaxinsert), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), cchoffset, cchmaxinsert, core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Delete(&self, cchoffset: i32, cchdelete: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(cchoffset), core::mem::transmute(cchdelete)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), cchoffset, cchdelete).ok() } } #[repr(C)] @@ -8734,31 +8681,31 @@ impl core::ops::Deref for IMLangStringWStr { windows_core::imp::interface_hierarchy!(IMLangStringWStr, windows_core::IUnknown, IMLangString); impl IMLangStringWStr { pub unsafe fn SetWStr(&self, ldestpos: i32, ldestlen: i32, pszsrc: &[u16], pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetWStr)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetStrBufW(&self, ldestpos: i32, ldestlen: i32, psrcbuf: P2, pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrBufW)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), psrcbuf.param().abi(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetStrBufW)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcbuf.param().abi(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetWStr(&self, lsrcpos: i32, lsrclen: i32, pszdest: Option<&mut [u16]>, pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrclen), core::mem::transmute(pszdest.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdest.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetWStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, core::mem::transmute(pszdest.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdest.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStrBufW(&self, lsrcpos: i32, lsrcmaxlen: i32, ppdestbuf: *mut Option, pldestlen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStrBufW)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrcmaxlen), core::mem::transmute(ppdestbuf), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStrBufW)(windows_core::Interface::as_raw(self), lsrcpos, lsrcmaxlen, core::mem::transmute(ppdestbuf), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn LockWStr(&self, lsrcpos: i32, lsrclen: i32, lflags: i32, cchrequest: i32, ppszdest: Option<*mut windows_core::PWSTR>, pcchdest: Option<*mut i32>, pldestlen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrclen), core::mem::transmute(lflags), core::mem::transmute(cchrequest), core::mem::transmute(ppszdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).LockWStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, lflags, cchrequest, core::mem::transmute(ppszdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pldestlen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UnlockWStr(&self, pszsrc: &[u16], pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnlockWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(plactuallen.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetLocale(&self, ldestpos: i32, ldestlen: i32, locale: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(ldestpos), core::mem::transmute(ldestlen), core::mem::transmute(locale)).ok() + (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, locale).ok() } pub unsafe fn GetLocale(&self, lsrcpos: i32, lsrcmaxlen: i32, plocale: Option<*mut u32>, pllocalepos: Option<*mut i32>, pllocalelen: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrcpos), core::mem::transmute(lsrcmaxlen), core::mem::transmute(plocale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalepos.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalelen.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLocale)(windows_core::Interface::as_raw(self), lsrcpos, lsrcmaxlen, core::mem::transmute(plocale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalepos.unwrap_or(core::mem::zeroed())), core::mem::transmute(pllocalelen.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -8842,43 +8789,43 @@ impl IMultiLanguage { (windows_core::Interface::vtable(self).GetNumberOfCodePageInfo)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetCodePageInfo(&self, uicodepage: u32, pcodepageinfo: *mut MIMECPINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodePageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), core::mem::transmute(pcodepageinfo)).ok() + (windows_core::Interface::vtable(self).GetCodePageInfo)(windows_core::Interface::as_raw(self), uicodepage, core::mem::transmute(pcodepageinfo)).ok() } pub unsafe fn GetFamilyCodePage(&self, uicodepage: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFamilyCodePage)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFamilyCodePage)(windows_core::Interface::as_raw(self), uicodepage, &mut result__).map(|| result__) } pub unsafe fn EnumCodePages(&self, grfflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(grfflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCodePages)(windows_core::Interface::as_raw(self), grfflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCharsetInfo(&self, charset: &windows_core::BSTR, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCharsetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(charset), core::mem::transmute(pcharsetinfo)).ok() } pub unsafe fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsConvertible)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsrcencoding), core::mem::transmute(dwdstencoding)).ok() + (windows_core::Interface::vtable(self).IsConvertible)(windows_core::Interface::as_raw(self), dwsrcencoding, dwdstencoding).ok() } pub unsafe fn ConvertString(&self, pdwmode: Option<*mut u32>, dwsrcencoding: u32, dwdstencoding: u32, psrcstr: Option<*const u8>, pcsrcsize: Option<*mut u32>, pdststr: Option<*mut u8>, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertString)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsrcencoding), core::mem::transmute(dwdstencoding), core::mem::transmute(psrcstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertString)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwsrcencoding, dwdstencoding, core::mem::transmute(psrcstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertStringToUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P2, pcsrcsize: Option<*mut u32>, pdststr: Option, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencoding), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertStringFromUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P2, pcsrcsize: Option<*mut u32>, pdststr: Option, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencoding), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertStringReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertStringReset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRfc1766FromLcid)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRfc1766FromLcid)(windows_core::Interface::as_raw(self), locale, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), core::mem::transmute(plocale), core::mem::transmute_copy(bstrrfc1766)).ok() @@ -8888,11 +8835,11 @@ impl IMultiLanguage { (windows_core::Interface::vtable(self).EnumRfc1766)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRfc1766Info(&self, locale: u32, prfc1766info: *mut RFC1766INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRfc1766Info)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), core::mem::transmute(prfc1766info)).ok() + (windows_core::Interface::vtable(self).GetRfc1766Info)(windows_core::Interface::as_raw(self), locale, core::mem::transmute(prfc1766info)).ok() } pub unsafe fn CreateConvertCharset(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateConvertCharset)(windows_core::Interface::as_raw(self), core::mem::transmute(uisrccodepage), core::mem::transmute(uidstcodepage), core::mem::transmute(dwproperty), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateConvertCharset)(windows_core::Interface::as_raw(self), uisrccodepage, uidstcodepage, dwproperty, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9061,57 +9008,57 @@ impl IMultiLanguage2 { (windows_core::Interface::vtable(self).GetNumberOfCodePageInfo)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetCodePageInfo(&self, uicodepage: u32, langid: u16, pcodepageinfo: *mut MIMECPINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodePageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), core::mem::transmute(langid), core::mem::transmute(pcodepageinfo)).ok() + (windows_core::Interface::vtable(self).GetCodePageInfo)(windows_core::Interface::as_raw(self), uicodepage, langid, core::mem::transmute(pcodepageinfo)).ok() } pub unsafe fn GetFamilyCodePage(&self, uicodepage: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFamilyCodePage)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFamilyCodePage)(windows_core::Interface::as_raw(self), uicodepage, &mut result__).map(|| result__) } pub unsafe fn EnumCodePages(&self, grfflags: u32, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCodePages)(windows_core::Interface::as_raw(self), core::mem::transmute(grfflags), core::mem::transmute(langid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCodePages)(windows_core::Interface::as_raw(self), grfflags, langid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCharsetInfo(&self, charset: &windows_core::BSTR, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCharsetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(charset), core::mem::transmute(pcharsetinfo)).ok() } pub unsafe fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsConvertible)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsrcencoding), core::mem::transmute(dwdstencoding)).ok() + (windows_core::Interface::vtable(self).IsConvertible)(windows_core::Interface::as_raw(self), dwsrcencoding, dwdstencoding).ok() } pub unsafe fn ConvertString(&self, pdwmode: Option<*mut u32>, dwsrcencoding: u32, dwdstencoding: u32, psrcstr: Option<*const u8>, pcsrcsize: Option<*mut u32>, pdststr: Option<*mut u8>, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertString)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsrcencoding), core::mem::transmute(dwdstencoding), core::mem::transmute(psrcstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertString)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwsrcencoding, dwdstencoding, core::mem::transmute(psrcstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertStringToUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P2, pcsrcsize: Option<*mut u32>, pdststr: Option, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencoding), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertStringFromUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P2, pcsrcsize: Option<*mut u32>, pdststr: Option, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencoding), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertStringReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertStringReset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRfc1766FromLcid)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRfc1766FromLcid)(windows_core::Interface::as_raw(self), locale, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), core::mem::transmute(plocale), core::mem::transmute_copy(bstrrfc1766)).ok() } pub unsafe fn EnumRfc1766(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRfc1766)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRfc1766)(windows_core::Interface::as_raw(self), langid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRfc1766Info(&self, locale: u32, langid: u16, prfc1766info: *mut RFC1766INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRfc1766Info)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), core::mem::transmute(langid), core::mem::transmute(prfc1766info)).ok() + (windows_core::Interface::vtable(self).GetRfc1766Info)(windows_core::Interface::as_raw(self), locale, langid, core::mem::transmute(prfc1766info)).ok() } pub unsafe fn CreateConvertCharset(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateConvertCharset)(windows_core::Interface::as_raw(self), core::mem::transmute(uisrccodepage), core::mem::transmute(uidstcodepage), core::mem::transmute(dwproperty), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateConvertCharset)(windows_core::Interface::as_raw(self), uisrccodepage, uidstcodepage, dwproperty, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConvertStringInIStream(&self, pdwmode: Option<*mut u32>, dwflag: u32, lpfallback: P2, dwsrcencoding: u32, dwdstencoding: u32, pstmin: P5, pstmout: P6) -> windows_core::Result<()> @@ -9120,46 +9067,46 @@ impl IMultiLanguage2 { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflag), lpfallback.param().abi(), core::mem::transmute(dwsrcencoding), core::mem::transmute(dwdstencoding), pstmin.param().abi(), pstmout.param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertStringInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwflag, lpfallback.param().abi(), dwsrcencoding, dwdstencoding, pstmin.param().abi(), pstmout.param().abi()).ok() } pub unsafe fn ConvertStringToUnicodeEx(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P2, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>, dwflag: u32, lpfallback: P7) -> windows_core::Result<()> where P2: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringToUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencoding), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflag), lpfallback.param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertStringToUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed())), dwflag, lpfallback.param().abi()).ok() } pub unsafe fn ConvertStringFromUnicodeEx(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P2, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>, dwflag: u32, lpfallback: P7) -> windows_core::Result<()> where P2: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringFromUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencoding), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflag), lpfallback.param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertStringFromUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(core::mem::zeroed())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(core::mem::zeroed())), dwflag, lpfallback.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectCodepageInIStream(&self, dwflag: u32, dwprefwincodepage: u32, pstmin: P2, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectCodepageInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflag), core::mem::transmute(dwprefwincodepage), pstmin.param().abi(), core::mem::transmute(lpencoding), core::mem::transmute(pnscores)).ok() + (windows_core::Interface::vtable(self).DetectCodepageInIStream)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, pstmin.param().abi(), core::mem::transmute(lpencoding), core::mem::transmute(pnscores)).ok() } pub unsafe fn DetectInputCodepage(&self, dwflag: u32, dwprefwincodepage: u32, psrcstr: P2, pcsrcsize: *mut i32, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectInputCodepage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflag), core::mem::transmute(dwprefwincodepage), psrcstr.param().abi(), core::mem::transmute(pcsrcsize), core::mem::transmute(lpencoding), core::mem::transmute(pnscores)).ok() + (windows_core::Interface::vtable(self).DetectInputCodepage)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, psrcstr.param().abi(), core::mem::transmute(pcsrcsize), core::mem::transmute(lpencoding), core::mem::transmute(pnscores)).ok() } pub unsafe fn ValidateCodePage(&self, uicodepage: u32, hwnd: super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ValidateCodePage)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).ValidateCodePage)(windows_core::Interface::as_raw(self), uicodepage, hwnd).ok() } pub unsafe fn GetCodePageDescription(&self, uicodepage: u32, lcid: u32, lpwidecharstr: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodePageDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), core::mem::transmute(lcid), core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetCodePageDescription)(windows_core::Interface::as_raw(self), uicodepage, lcid, core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap()).ok() } pub unsafe fn IsCodePageInstallable(&self, uicodepage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsCodePageInstallable)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage)).ok() + (windows_core::Interface::vtable(self).IsCodePageInstallable)(windows_core::Interface::as_raw(self), uicodepage).ok() } pub unsafe fn SetMimeDBSource(&self, dwsource: MIMECONTF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMimeDBSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsource)).ok() + (windows_core::Interface::vtable(self).SetMimeDBSource)(windows_core::Interface::as_raw(self), dwsource).ok() } pub unsafe fn GetNumberOfScripts(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9167,10 +9114,10 @@ impl IMultiLanguage2 { } pub unsafe fn EnumScripts(&self, dwflags: u32, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumScripts)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(langid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumScripts)(windows_core::Interface::as_raw(self), dwflags, langid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ValidateCodePageEx(&self, uicodepage: u32, hwnd: super::Foundation::HWND, dwfiodcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ValidateCodePageEx)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage), core::mem::transmute(hwnd), core::mem::transmute(dwfiodcontrol)).ok() + (windows_core::Interface::vtable(self).ValidateCodePageEx)(windows_core::Interface::as_raw(self), uicodepage, hwnd, dwfiodcontrol).ok() } } #[repr(C)] @@ -9449,7 +9396,7 @@ impl IMultiLanguage3 { where P7: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectOutboundCodePage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap(), core::mem::transmute(puipreferredcodepages.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), puipreferredcodepages.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puidetectedcodepages), core::mem::transmute(pndetectedcodepages), lpspecialchar.param().abi()).ok() + (windows_core::Interface::vtable(self).DetectOutboundCodePage)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap(), core::mem::transmute(puipreferredcodepages.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), puipreferredcodepages.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puidetectedcodepages), core::mem::transmute(pndetectedcodepages), lpspecialchar.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectOutboundCodePageInIStream(&self, dwflags: u32, pstrin: P1, puipreferredcodepages: Option<&[u32]>, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: P6) -> windows_core::Result<()> @@ -9457,7 +9404,7 @@ impl IMultiLanguage3 { P1: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectOutboundCodePageInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pstrin.param().abi(), core::mem::transmute(puipreferredcodepages.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), puipreferredcodepages.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puidetectedcodepages), core::mem::transmute(pndetectedcodepages), lpspecialchar.param().abi()).ok() + (windows_core::Interface::vtable(self).DetectOutboundCodePageInIStream)(windows_core::Interface::as_raw(self), dwflags, pstrin.param().abi(), core::mem::transmute(puipreferredcodepages.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), puipreferredcodepages.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puidetectedcodepages), core::mem::transmute(pndetectedcodepages), lpspecialchar.param().abi()).ok() } } #[repr(C)] @@ -9680,7 +9627,7 @@ impl ISpellCheckProvider { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOptionValue)(windows_core::Interface::as_raw(self), optionid.param().abi(), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOptionValue)(windows_core::Interface::as_raw(self), optionid.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OptionIds(&self) -> windows_core::Result { @@ -9707,7 +9654,7 @@ impl ISpellCheckProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeWordlist)(windows_core::Interface::as_raw(self), core::mem::transmute(wordlisttype), words.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeWordlist)(windows_core::Interface::as_raw(self), wordlisttype, words.param().abi()).ok() } } #[repr(C)] @@ -10011,7 +9958,7 @@ impl ISpellChecker { (windows_core::Interface::vtable(self).add_SpellCheckerChanged)(windows_core::Interface::as_raw(self), handler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn remove_SpellCheckerChanged(&self, eventcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).remove_SpellCheckerChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(eventcookie)).ok() + (windows_core::Interface::vtable(self).remove_SpellCheckerChanged)(windows_core::Interface::as_raw(self), eventcookie).ok() } pub unsafe fn GetOptionDescription(&self, optionid: P0) -> windows_core::Result where diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs index daa387c9c9..bec54dc9a6 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs @@ -327,7 +327,7 @@ windows_core::imp::define_interface!(IPresentationContent, IPresentationContent_ windows_core::imp::interface_hierarchy!(IPresentationContent, windows_core::IUnknown); impl IPresentationContent { pub unsafe fn SetTag(&self, tag: usize) { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), core::mem::transmute(tag)) + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), tag) } } #[repr(C)] @@ -421,7 +421,7 @@ impl IPresentationManager { } pub unsafe fn CreatePresentationSurface(&self, compositionsurfacehandle: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePresentationSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(compositionsurfacehandle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePresentationSurface)(windows_core::Interface::as_raw(self), compositionsurfacehandle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNextPresentId(&self) -> u64 { (windows_core::Interface::vtable(self).GetNextPresentId)(windows_core::Interface::as_raw(self)) @@ -433,7 +433,7 @@ impl IPresentationManager { (windows_core::Interface::vtable(self).SetPreferredPresentDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(preferredduration), core::mem::transmute(deviationtolerance)).ok() } pub unsafe fn ForceVSyncInterrupt(&self, forcevsyncinterrupt: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ForceVSyncInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(forcevsyncinterrupt)).ok() + (windows_core::Interface::vtable(self).ForceVSyncInterrupt)(windows_core::Interface::as_raw(self), forcevsyncinterrupt).ok() } pub unsafe fn Present(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self)).ok() @@ -446,7 +446,7 @@ impl IPresentationManager { (windows_core::Interface::vtable(self).GetPresentRetiringFence)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CancelPresentsFrom(&self, presentidtocancelfrom: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelPresentsFrom)(windows_core::Interface::as_raw(self), core::mem::transmute(presentidtocancelfrom)).ok() + (windows_core::Interface::vtable(self).CancelPresentsFrom)(windows_core::Interface::as_raw(self), presentidtocancelfrom).ok() } pub unsafe fn GetLostEvent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -457,7 +457,7 @@ impl IPresentationManager { (windows_core::Interface::vtable(self).GetPresentStatisticsAvailableEvent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn EnablePresentStatisticsKind(&self, presentstatisticskind: PresentStatisticsKind, enabled: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnablePresentStatisticsKind)(windows_core::Interface::as_raw(self), core::mem::transmute(presentstatisticskind), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).EnablePresentStatisticsKind)(windows_core::Interface::as_raw(self), presentstatisticskind, enabled).ok() } pub unsafe fn GetNextPresentStatistics(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -619,17 +619,17 @@ impl IPresentationSurface { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace)).ok() + (windows_core::Interface::vtable(self).SetColorSpace)(windows_core::Interface::as_raw(self), colorspace).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetAlphaMode(&self, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlphaMode)(windows_core::Interface::as_raw(self), core::mem::transmute(alphamode)).ok() + (windows_core::Interface::vtable(self).SetAlphaMode)(windows_core::Interface::as_raw(self), alphamode).ok() } pub unsafe fn SetSourceRect(&self, sourcerect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceRect)(windows_core::Interface::as_raw(self), core::mem::transmute(sourcerect)).ok() + (windows_core::Interface::vtable(self).SetSourceRect)(windows_core::Interface::as_raw(self), sourcerect).ok() } pub unsafe fn SetTransform(&self, transform: *const PresentationTransform) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)).ok() + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform).ok() } pub unsafe fn RestrictToOutput(&self, output: P0) -> windows_core::Result<()> where @@ -638,10 +638,10 @@ impl IPresentationSurface { (windows_core::Interface::vtable(self).RestrictToOutput)(windows_core::Interface::as_raw(self), output.param().abi()).ok() } pub unsafe fn SetDisableReadback(&self, value: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisableReadback)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDisableReadback)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetLetterboxingMargins(&self, leftletterboxsize: f32, topletterboxsize: f32, rightletterboxsize: f32, bottomletterboxsize: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLetterboxingMargins)(windows_core::Interface::as_raw(self), core::mem::transmute(leftletterboxsize), core::mem::transmute(topletterboxsize), core::mem::transmute(rightletterboxsize), core::mem::transmute(bottomletterboxsize)).ok() + (windows_core::Interface::vtable(self).SetLetterboxingMargins)(windows_core::Interface::as_raw(self), leftletterboxsize, topletterboxsize, rightletterboxsize, bottomletterboxsize).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs index 025cada29b..0f5eaabe7a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs @@ -99,29 +99,29 @@ impl IDXCoreAdapter { (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self)) } pub unsafe fn IsAttributeSupported(&self, attributeguid: *const windows_core::GUID) -> bool { - (windows_core::Interface::vtable(self).IsAttributeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(attributeguid)) + (windows_core::Interface::vtable(self).IsAttributeSupported)(windows_core::Interface::as_raw(self), attributeguid) } pub unsafe fn IsPropertySupported(&self, property: DXCoreAdapterProperty) -> bool { - (windows_core::Interface::vtable(self).IsPropertySupported)(windows_core::Interface::as_raw(self), core::mem::transmute(property)) + (windows_core::Interface::vtable(self).IsPropertySupported)(windows_core::Interface::as_raw(self), property) } pub unsafe fn GetProperty(&self, property: DXCoreAdapterProperty, buffersize: usize, propertydata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(buffersize), core::mem::transmute(propertydata)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), property, buffersize, core::mem::transmute(propertydata)).ok() } pub unsafe fn GetPropertySize(&self, property: DXCoreAdapterProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertySize)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPropertySize)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| result__) } pub unsafe fn IsQueryStateSupported(&self, property: DXCoreAdapterState) -> bool { - (windows_core::Interface::vtable(self).IsQueryStateSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(property)) + (windows_core::Interface::vtable(self).IsQueryStateSupported)(windows_core::Interface::as_raw(self), property) } pub unsafe fn QueryState(&self, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: Option<*const core::ffi::c_void>, outputbuffersize: usize, outputbuffer: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryState)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(inputstatedetailssize), core::mem::transmute(inputstatedetails.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbuffersize), core::mem::transmute(outputbuffer)).ok() + (windows_core::Interface::vtable(self).QueryState)(windows_core::Interface::as_raw(self), state, inputstatedetailssize, core::mem::transmute(inputstatedetails.unwrap_or(core::mem::zeroed())), outputbuffersize, core::mem::transmute(outputbuffer)).ok() } pub unsafe fn IsSetStateSupported(&self, property: DXCoreAdapterState) -> bool { - (windows_core::Interface::vtable(self).IsSetStateSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(property)) + (windows_core::Interface::vtable(self).IsSetStateSupported)(windows_core::Interface::as_raw(self), property) } pub unsafe fn SetState(&self, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: Option<*const core::ffi::c_void>, inputdatasize: usize, inputdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(inputstatedetailssize), core::mem::transmute(inputstatedetails.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputdatasize), core::mem::transmute(inputdata)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state, inputstatedetailssize, core::mem::transmute(inputstatedetails.unwrap_or(core::mem::zeroed())), inputdatasize, inputdata).ok() } pub unsafe fn GetFactory(&self) -> windows_core::Result where @@ -239,20 +239,20 @@ impl IDXCoreAdapterFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAdapterByLuid)(windows_core::Interface::as_raw(self), core::mem::transmute(adapterluid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAdapterByLuid)(windows_core::Interface::as_raw(self), adapterluid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsNotificationTypeSupported(&self, notificationtype: DXCoreNotificationType) -> bool { - (windows_core::Interface::vtable(self).IsNotificationTypeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(notificationtype)) + (windows_core::Interface::vtable(self).IsNotificationTypeSupported)(windows_core::Interface::as_raw(self), notificationtype) } pub unsafe fn RegisterEventNotification(&self, dxcoreobject: P0, notificationtype: DXCoreNotificationType, callbackfunction: PFN_DXCORE_NOTIFICATION_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEventNotification)(windows_core::Interface::as_raw(self), dxcoreobject.param().abi(), core::mem::transmute(notificationtype), core::mem::transmute(callbackfunction), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterEventNotification)(windows_core::Interface::as_raw(self), dxcoreobject.param().abi(), notificationtype, callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } pub unsafe fn UnregisterEventNotification(&self, eventcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterEventNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(eventcookie)).ok() + (windows_core::Interface::vtable(self).UnregisterEventNotification)(windows_core::Interface::as_raw(self), eventcookie).ok() } } #[repr(C)] @@ -321,7 +321,7 @@ impl IDXCoreAdapterList { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAdapter)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAdapter)(windows_core::Interface::as_raw(self), index, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAdapterCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetAdapterCount)(windows_core::Interface::as_raw(self)) @@ -340,7 +340,7 @@ impl IDXCoreAdapterList { (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), preferences.len().try_into().unwrap(), core::mem::transmute(preferences.as_ptr())).ok() } pub unsafe fn IsAdapterPreferenceSupported(&self, preference: DXCoreAdapterPreference) -> bool { - (windows_core::Interface::vtable(self).IsAdapterPreferenceSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(preference)) + (windows_core::Interface::vtable(self).IsAdapterPreferenceSupported)(windows_core::Interface::as_raw(self), preference) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs index bb6e06583f..aa357abb00 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs @@ -438,13 +438,13 @@ windows_core::imp::define_interface!(ID2D1SimplifiedGeometrySink, ID2D1Simplifie windows_core::imp::interface_hierarchy!(ID2D1SimplifiedGeometrySink, windows_core::IUnknown); impl ID2D1SimplifiedGeometrySink { pub unsafe fn SetFillMode(&self, fillmode: D2D1_FILL_MODE) { - (windows_core::Interface::vtable(self).SetFillMode)(windows_core::Interface::as_raw(self), core::mem::transmute(fillmode)) + (windows_core::Interface::vtable(self).SetFillMode)(windows_core::Interface::as_raw(self), fillmode) } pub unsafe fn SetSegmentFlags(&self, vertexflags: D2D1_PATH_SEGMENT) { - (windows_core::Interface::vtable(self).SetSegmentFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexflags)) + (windows_core::Interface::vtable(self).SetSegmentFlags)(windows_core::Interface::as_raw(self), vertexflags) } pub unsafe fn BeginFigure(&self, startpoint: D2D_POINT_2F, figurebegin: D2D1_FIGURE_BEGIN) { - (windows_core::Interface::vtable(self).BeginFigure)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint), core::mem::transmute(figurebegin)) + (windows_core::Interface::vtable(self).BeginFigure)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint), figurebegin) } pub unsafe fn AddLines(&self, points: &[D2D_POINT_2F]) { (windows_core::Interface::vtable(self).AddLines)(windows_core::Interface::as_raw(self), core::mem::transmute(points.as_ptr()), points.len().try_into().unwrap()) @@ -453,7 +453,7 @@ impl ID2D1SimplifiedGeometrySink { (windows_core::Interface::vtable(self).AddBeziers)(windows_core::Interface::as_raw(self), core::mem::transmute(beziers.as_ptr()), beziers.len().try_into().unwrap()) } pub unsafe fn EndFigure(&self, figureend: D2D1_FIGURE_END) { - (windows_core::Interface::vtable(self).EndFigure)(windows_core::Interface::as_raw(self), core::mem::transmute(figureend)) + (windows_core::Interface::vtable(self).EndFigure)(windows_core::Interface::as_raw(self), figureend) } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs index 4efe43c72d..9411516529 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs @@ -4,13 +4,13 @@ pub mod Common; #[inline] pub unsafe fn D2D1ComputeMaximumScaleFactor(matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> f32 { windows_targets::link!("d2d1.dll" "system" fn D2D1ComputeMaximumScaleFactor(matrix : *const super::super::super::Foundation::Numerics:: Matrix3x2) -> f32); - D2D1ComputeMaximumScaleFactor(core::mem::transmute(matrix)) + D2D1ComputeMaximumScaleFactor(matrix) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[inline] pub unsafe fn D2D1ConvertColorSpace(sourcecolorspace: D2D1_COLOR_SPACE, destinationcolorspace: D2D1_COLOR_SPACE, color: *const Common::D2D1_COLOR_F) -> Common::D2D1_COLOR_F { windows_targets::link!("d2d1.dll" "system" fn D2D1ConvertColorSpace(sourcecolorspace : D2D1_COLOR_SPACE, destinationcolorspace : D2D1_COLOR_SPACE, color : *const Common:: D2D1_COLOR_F) -> Common:: D2D1_COLOR_F); - D2D1ConvertColorSpace(core::mem::transmute(sourcecolorspace), core::mem::transmute(destinationcolorspace), core::mem::transmute(color)) + D2D1ConvertColorSpace(sourcecolorspace, destinationcolorspace, color) } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] @@ -39,30 +39,13 @@ where { windows_targets::link!("d2d1.dll" "system" fn D2D1CreateFactory(factorytype : D2D1_FACTORY_TYPE, riid : *const windows_core::GUID, pfactoryoptions : *const D2D1_FACTORY_OPTIONS, ppifactory : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - D2D1CreateFactory(core::mem::transmute(factorytype), &T::IID, core::mem::transmute(pfactoryoptions.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D2D1CreateFactory(factorytype, &T::IID, core::mem::transmute(pfactoryoptions.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[inline] pub unsafe fn D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0: *const Common::D2D_POINT_2F, ppoint1: *const Common::D2D_POINT_2F, ppoint2: *const Common::D2D_POINT_2F, ppoint3: *const Common::D2D_POINT_2F, ppoint4: *const Common::D2D_POINT_2F, ppoint5: *const Common::D2D_POINT_2F, ppoint6: *const Common::D2D_POINT_2F, ppoint7: *const Common::D2D_POINT_2F, ppoint8: *const Common::D2D_POINT_2F, ppoint9: *const Common::D2D_POINT_2F, ppoint10: *const Common::D2D_POINT_2F, ppoint11: *const Common::D2D_POINT_2F, ptensorpoint11: *mut Common::D2D_POINT_2F, ptensorpoint12: *mut Common::D2D_POINT_2F, ptensorpoint21: *mut Common::D2D_POINT_2F, ptensorpoint22: *mut Common::D2D_POINT_2F) { windows_targets::link!("d2d1.dll" "system" fn D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0 : *const Common:: D2D_POINT_2F, ppoint1 : *const Common:: D2D_POINT_2F, ppoint2 : *const Common:: D2D_POINT_2F, ppoint3 : *const Common:: D2D_POINT_2F, ppoint4 : *const Common:: D2D_POINT_2F, ppoint5 : *const Common:: D2D_POINT_2F, ppoint6 : *const Common:: D2D_POINT_2F, ppoint7 : *const Common:: D2D_POINT_2F, ppoint8 : *const Common:: D2D_POINT_2F, ppoint9 : *const Common:: D2D_POINT_2F, ppoint10 : *const Common:: D2D_POINT_2F, ppoint11 : *const Common:: D2D_POINT_2F, ptensorpoint11 : *mut Common:: D2D_POINT_2F, ptensorpoint12 : *mut Common:: D2D_POINT_2F, ptensorpoint21 : *mut Common:: D2D_POINT_2F, ptensorpoint22 : *mut Common:: D2D_POINT_2F)); - D2D1GetGradientMeshInteriorPointsFromCoonsPatch( - core::mem::transmute(ppoint0), - core::mem::transmute(ppoint1), - core::mem::transmute(ppoint2), - core::mem::transmute(ppoint3), - core::mem::transmute(ppoint4), - core::mem::transmute(ppoint5), - core::mem::transmute(ppoint6), - core::mem::transmute(ppoint7), - core::mem::transmute(ppoint8), - core::mem::transmute(ppoint9), - core::mem::transmute(ppoint10), - core::mem::transmute(ppoint11), - core::mem::transmute(ptensorpoint11), - core::mem::transmute(ptensorpoint12), - core::mem::transmute(ptensorpoint21), - core::mem::transmute(ptensorpoint22), - ) + D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0, ppoint1, ppoint2, ppoint3, ppoint4, ppoint5, ppoint6, ppoint7, ppoint8, ppoint9, ppoint10, ppoint11, core::mem::transmute(ptensorpoint11), core::mem::transmute(ptensorpoint12), core::mem::transmute(ptensorpoint21), core::mem::transmute(ptensorpoint22)) } #[cfg(feature = "Foundation_Numerics")] #[inline] @@ -74,34 +57,34 @@ pub unsafe fn D2D1InvertMatrix(matrix: *mut super::super::super::Foundation::Num #[inline] pub unsafe fn D2D1IsMatrixInvertible(matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> super::super::Foundation::BOOL { windows_targets::link!("d2d1.dll" "system" fn D2D1IsMatrixInvertible(matrix : *const super::super::super::Foundation::Numerics:: Matrix3x2) -> super::super::Foundation:: BOOL); - D2D1IsMatrixInvertible(core::mem::transmute(matrix)) + D2D1IsMatrixInvertible(matrix) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] #[inline] pub unsafe fn D2D1MakeRotateMatrix(angle: f32, center: Common::D2D_POINT_2F, matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) { windows_targets::link!("d2d1.dll" "system" fn D2D1MakeRotateMatrix(angle : f32, center : Common:: D2D_POINT_2F, matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2)); - D2D1MakeRotateMatrix(core::mem::transmute(angle), core::mem::transmute(center), core::mem::transmute(matrix)) + D2D1MakeRotateMatrix(angle, core::mem::transmute(center), core::mem::transmute(matrix)) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] #[inline] pub unsafe fn D2D1MakeSkewMatrix(anglex: f32, angley: f32, center: Common::D2D_POINT_2F, matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) { windows_targets::link!("d2d1.dll" "system" fn D2D1MakeSkewMatrix(anglex : f32, angley : f32, center : Common:: D2D_POINT_2F, matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2)); - D2D1MakeSkewMatrix(core::mem::transmute(anglex), core::mem::transmute(angley), core::mem::transmute(center), core::mem::transmute(matrix)) + D2D1MakeSkewMatrix(anglex, angley, core::mem::transmute(center), core::mem::transmute(matrix)) } #[inline] pub unsafe fn D2D1SinCos(angle: f32, s: *mut f32, c: *mut f32) { windows_targets::link!("d2d1.dll" "system" fn D2D1SinCos(angle : f32, s : *mut f32, c : *mut f32)); - D2D1SinCos(core::mem::transmute(angle), core::mem::transmute(s), core::mem::transmute(c)) + D2D1SinCos(angle, core::mem::transmute(s), core::mem::transmute(c)) } #[inline] pub unsafe fn D2D1Tan(angle: f32) -> f32 { windows_targets::link!("d2d1.dll" "system" fn D2D1Tan(angle : f32) -> f32); - D2D1Tan(core::mem::transmute(angle)) + D2D1Tan(angle) } #[inline] pub unsafe fn D2D1Vec3Length(x: f32, y: f32, z: f32) -> f32 { windows_targets::link!("d2d1.dll" "system" fn D2D1Vec3Length(x : f32, y : f32, z : f32) -> f32); - D2D1Vec3Length(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + D2D1Vec3Length(x, y, z) } pub const CLSID_D2D12DAffineTransform: windows_core::GUID = windows_core::GUID::from_u128(0x6aa97485_6354_4cfc_908c_e4a74f62c96c); pub const CLSID_D2D13DPerspectiveTransform: windows_core::GUID = windows_core::GUID::from_u128(0xc2844d0b_3d86_46e7_85ba_526c9240f3fb); @@ -2656,7 +2639,7 @@ impl ID2D1Bitmap { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CopyFromMemory(&self, dstrect: Option<*const Common::D2D_RECT_U>, srcdata: *const core::ffi::c_void, pitch: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(dstrect.unwrap_or(core::mem::zeroed())), core::mem::transmute(srcdata), core::mem::transmute(pitch)).ok() + (windows_core::Interface::vtable(self).CopyFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(dstrect.unwrap_or(core::mem::zeroed())), srcdata, pitch).ok() } } #[repr(C)] @@ -2774,7 +2757,7 @@ impl ID2D1Bitmap1 { } pub unsafe fn Map(&self, options: D2D1_MAP_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), options, &mut result__).map(|| result__) } pub unsafe fn Unmap(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self)).ok() @@ -2864,13 +2847,13 @@ impl core::ops::Deref for ID2D1BitmapBrush { windows_core::imp::interface_hierarchy!(ID2D1BitmapBrush, windows_core::IUnknown, ID2D1Resource, ID2D1Brush); impl ID2D1BitmapBrush { pub unsafe fn SetExtendModeX(&self, extendmodex: D2D1_EXTEND_MODE) { - (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmodex)) + (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), extendmodex) } pub unsafe fn SetExtendModeY(&self, extendmodey: D2D1_EXTEND_MODE) { - (windows_core::Interface::vtable(self).SetExtendModeY)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmodey)) + (windows_core::Interface::vtable(self).SetExtendModeY)(windows_core::Interface::as_raw(self), extendmodey) } pub unsafe fn SetInterpolationMode(&self, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE) { - (windows_core::Interface::vtable(self).SetInterpolationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(interpolationmode)) + (windows_core::Interface::vtable(self).SetInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode) } pub unsafe fn SetBitmap(&self, bitmap: P0) where @@ -2983,7 +2966,7 @@ impl core::ops::Deref for ID2D1BitmapBrush1 { windows_core::imp::interface_hierarchy!(ID2D1BitmapBrush1, windows_core::IUnknown, ID2D1Resource, ID2D1Brush, ID2D1BitmapBrush); impl ID2D1BitmapBrush1 { pub unsafe fn SetInterpolationMode1(&self, interpolationmode: D2D1_INTERPOLATION_MODE) { - (windows_core::Interface::vtable(self).SetInterpolationMode1)(windows_core::Interface::as_raw(self), core::mem::transmute(interpolationmode)) + (windows_core::Interface::vtable(self).SetInterpolationMode1)(windows_core::Interface::as_raw(self), interpolationmode) } pub unsafe fn GetInterpolationMode1(&self) -> D2D1_INTERPOLATION_MODE { (windows_core::Interface::vtable(self).GetInterpolationMode1)(windows_core::Interface::as_raw(self)) @@ -3085,7 +3068,7 @@ impl core::ops::Deref for ID2D1BlendTransform { windows_core::imp::interface_hierarchy!(ID2D1BlendTransform, windows_core::IUnknown, ID2D1TransformNode, ID2D1ConcreteTransform); impl ID2D1BlendTransform { pub unsafe fn SetDescription(&self, description: *const D2D1_BLEND_DESCRIPTION) { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(description)) + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description) } pub unsafe fn GetDescription(&self, description: *mut D2D1_BLEND_DESCRIPTION) { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(description)) @@ -3134,10 +3117,10 @@ impl core::ops::Deref for ID2D1BorderTransform { windows_core::imp::interface_hierarchy!(ID2D1BorderTransform, windows_core::IUnknown, ID2D1TransformNode, ID2D1ConcreteTransform); impl ID2D1BorderTransform { pub unsafe fn SetExtendModeX(&self, extendmode: D2D1_EXTEND_MODE) { - (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmode)) + (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), extendmode) } pub unsafe fn SetExtendModeY(&self, extendmode: D2D1_EXTEND_MODE) { - (windows_core::Interface::vtable(self).SetExtendModeY)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmode)) + (windows_core::Interface::vtable(self).SetExtendModeY)(windows_core::Interface::as_raw(self), extendmode) } pub unsafe fn GetExtendModeX(&self) -> D2D1_EXTEND_MODE { (windows_core::Interface::vtable(self).GetExtendModeX)(windows_core::Interface::as_raw(self)) @@ -3203,7 +3186,7 @@ impl core::ops::Deref for ID2D1BoundsAdjustmentTransform { windows_core::imp::interface_hierarchy!(ID2D1BoundsAdjustmentTransform, windows_core::IUnknown, ID2D1TransformNode); impl ID2D1BoundsAdjustmentTransform { pub unsafe fn SetOutputBounds(&self, outputbounds: *const super::super::Foundation::RECT) { - (windows_core::Interface::vtable(self).SetOutputBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(outputbounds)) + (windows_core::Interface::vtable(self).SetOutputBounds)(windows_core::Interface::as_raw(self), outputbounds) } pub unsafe fn GetOutputBounds(&self) -> super::super::Foundation::RECT { let mut result__ = core::mem::zeroed(); @@ -3254,11 +3237,11 @@ impl core::ops::Deref for ID2D1Brush { windows_core::imp::interface_hierarchy!(ID2D1Brush, windows_core::IUnknown, ID2D1Resource); impl ID2D1Brush { pub unsafe fn SetOpacity(&self, opacity: f32) { - (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), core::mem::transmute(opacity)) + (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), opacity) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)) + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform) } pub unsafe fn GetOpacity(&self) -> f32 { (windows_core::Interface::vtable(self).GetOpacity)(windows_core::Interface::as_raw(self)) @@ -3515,13 +3498,13 @@ impl ID2D1CommandSink { (windows_core::Interface::vtable(self).EndDraw)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAntialiasMode)(windows_core::Interface::as_raw(self), core::mem::transmute(antialiasmode)).ok() + (windows_core::Interface::vtable(self).SetAntialiasMode)(windows_core::Interface::as_raw(self), antialiasmode).ok() } pub unsafe fn SetTags(&self, tag1: u64, tag2: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTags)(windows_core::Interface::as_raw(self), core::mem::transmute(tag1), core::mem::transmute(tag2)).ok() + (windows_core::Interface::vtable(self).SetTags)(windows_core::Interface::as_raw(self), tag1, tag2).ok() } pub unsafe fn SetTextAntialiasMode(&self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextAntialiasMode)(windows_core::Interface::as_raw(self), core::mem::transmute(textantialiasmode)).ok() + (windows_core::Interface::vtable(self).SetTextAntialiasMode)(windows_core::Interface::as_raw(self), textantialiasmode).ok() } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> @@ -3532,13 +3515,13 @@ impl ID2D1CommandSink { } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)).ok() + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform).ok() } pub unsafe fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrimitiveBlend)(windows_core::Interface::as_raw(self), core::mem::transmute(primitiveblend)).ok() + (windows_core::Interface::vtable(self).SetPrimitiveBlend)(windows_core::Interface::as_raw(self), primitiveblend).ok() } pub unsafe fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnitMode)(windows_core::Interface::as_raw(self), core::mem::transmute(unitmode)).ok() + (windows_core::Interface::vtable(self).SetUnitMode)(windows_core::Interface::as_raw(self), unitmode).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Clear(&self, color: Option<*const Common::D2D1_COLOR_F>) -> windows_core::Result<()> { @@ -3549,7 +3532,7 @@ impl ID2D1CommandSink { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), foregroundbrush.param().abi(), core::mem::transmute(measuringmode)).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), foregroundbrush.param().abi(), measuringmode).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P2, strokewidth: f32, strokestyle: P4) -> windows_core::Result<()> @@ -3557,7 +3540,7 @@ impl ID2D1CommandSink { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.param().abi(), strokewidth, strokestyle.param().abi()).ok() } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P3) -> windows_core::Result<()> where @@ -3565,7 +3548,7 @@ impl ID2D1CommandSink { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), strokewidth, strokestyle.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P1, strokewidth: f32, strokestyle: P3) -> windows_core::Result<()> @@ -3573,21 +3556,21 @@ impl ID2D1CommandSink { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(rect), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.param().abi(), strokewidth, strokestyle.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap(&self, bitmap: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: Option<*const Common::D2D_RECT_F>, perspectivetransform: Option<*const Common::D2D_MATRIX_4X4_F>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(opacity), core::mem::transmute(interpolationmode), core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(perspectivetransform.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(perspectivetransform.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawImage(&self, image: P0, targetoffset: Option<*const Common::D2D_POINT_2F>, imagerectangle: Option<*const Common::D2D_RECT_F>, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: Common::D2D1_COMPOSITE_MODE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(interpolationmode), core::mem::transmute(compositemode)).ok() + (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), interpolationmode, compositemode).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) -> windows_core::Result<()> @@ -3624,11 +3607,11 @@ impl ID2D1CommandSink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(rect), brush.param().abi()).ok() + (windows_core::Interface::vtable(self).FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushAxisAlignedClip)(windows_core::Interface::as_raw(self), core::mem::transmute(cliprect), core::mem::transmute(antialiasmode)).ok() + (windows_core::Interface::vtable(self).PushAxisAlignedClip)(windows_core::Interface::as_raw(self), cliprect, antialiasmode).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P1) -> windows_core::Result<()> @@ -3892,7 +3875,7 @@ impl core::ops::Deref for ID2D1CommandSink1 { windows_core::imp::interface_hierarchy!(ID2D1CommandSink1, windows_core::IUnknown, ID2D1CommandSink); impl ID2D1CommandSink1 { pub unsafe fn SetPrimitiveBlend1(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrimitiveBlend1)(windows_core::Interface::as_raw(self), core::mem::transmute(primitiveblend)).ok() + (windows_core::Interface::vtable(self).SetPrimitiveBlend1)(windows_core::Interface::as_raw(self), primitiveblend).ok() } } #[repr(C)] @@ -4016,7 +3999,7 @@ impl ID2D1CommandSink3 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), core::mem::transmute(startindex), core::mem::transmute(spritecount), bitmap.param().abi(), core::mem::transmute(interpolationmode), core::mem::transmute(spriteoptions)).ok() + (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions).ok() } } #[repr(C)] @@ -4057,7 +4040,7 @@ impl core::ops::Deref for ID2D1CommandSink4 { windows_core::imp::interface_hierarchy!(ID2D1CommandSink4, windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2, ID2D1CommandSink3); impl ID2D1CommandSink4 { pub unsafe fn SetPrimitiveBlend2(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrimitiveBlend2)(windows_core::Interface::as_raw(self), core::mem::transmute(primitiveblend)).ok() + (windows_core::Interface::vtable(self).SetPrimitiveBlend2)(windows_core::Interface::as_raw(self), primitiveblend).ok() } } #[repr(C)] @@ -4102,7 +4085,7 @@ impl ID2D1CommandSink5 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(blendmode), core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(interpolationmode)).ok() + (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), interpolationmode).ok() } } #[repr(C)] @@ -4149,13 +4132,13 @@ impl ID2D1ComputeInfo { (windows_core::Interface::vtable(self).SetComputeShaderConstantBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()).ok() } pub unsafe fn SetComputeShader(&self, shaderid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderid)).ok() + (windows_core::Interface::vtable(self).SetComputeShader)(windows_core::Interface::as_raw(self), shaderid).ok() } pub unsafe fn SetResourceTexture(&self, textureindex: u32, resourcetexture: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(textureindex), resourcetexture.param().abi()).ok() + (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), textureindex, resourcetexture.param().abi()).ok() } } #[repr(C)] @@ -4214,7 +4197,7 @@ impl ID2D1ComputeTransform { (windows_core::Interface::vtable(self).SetComputeInfo)(windows_core::Interface::as_raw(self), computeinfo.param().abi()).ok() } pub unsafe fn CalculateThreadgroups(&self, outputrect: *const super::super::Foundation::RECT, dimensionx: *mut u32, dimensiony: *mut u32, dimensionz: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CalculateThreadgroups)(windows_core::Interface::as_raw(self), core::mem::transmute(outputrect), core::mem::transmute(dimensionx), core::mem::transmute(dimensiony), core::mem::transmute(dimensionz)).ok() + (windows_core::Interface::vtable(self).CalculateThreadgroups)(windows_core::Interface::as_raw(self), outputrect, core::mem::transmute(dimensionx), core::mem::transmute(dimensiony), core::mem::transmute(dimensionz)).ok() } } #[repr(C)] @@ -4260,7 +4243,7 @@ impl core::ops::Deref for ID2D1ConcreteTransform { windows_core::imp::interface_hierarchy!(ID2D1ConcreteTransform, windows_core::IUnknown, ID2D1TransformNode); impl ID2D1ConcreteTransform { pub unsafe fn SetOutputBuffer(&self, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferprecision), core::mem::transmute(channeldepth)).ok() + (windows_core::Interface::vtable(self).SetOutputBuffer)(windows_core::Interface::as_raw(self), bufferprecision, channeldepth).ok() } pub unsafe fn SetCached(&self, iscached: bool) { (windows_core::Interface::vtable(self).SetCached)(windows_core::Interface::as_raw(self), iscached.into()) @@ -4310,7 +4293,7 @@ windows_core::imp::interface_hierarchy!(ID2D1DCRenderTarget, windows_core::IUnkn impl ID2D1DCRenderTarget { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn BindDC(&self, hdc: super::Gdi::HDC, psubrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindDC)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(psubrect)).ok() + (windows_core::Interface::vtable(self).BindDC)(windows_core::Interface::as_raw(self), hdc, psubrect).ok() } } #[repr(C)] @@ -4355,7 +4338,7 @@ windows_core::imp::interface_hierarchy!(ID2D1Device, windows_core::IUnknown, ID2 impl ID2D1Device { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] pub unsafe fn CreatePrintControl(&self, wicfactory: P0, documenttarget: P1, printcontrolproperties: Option<*const D2D1_PRINT_CONTROL_PROPERTIES>) -> windows_core::Result @@ -4367,13 +4350,13 @@ impl ID2D1Device { (windows_core::Interface::vtable(self).CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { - (windows_core::Interface::vtable(self).SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(maximuminbytes)) + (windows_core::Interface::vtable(self).SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) } pub unsafe fn GetMaximumTextureMemory(&self) -> u64 { (windows_core::Interface::vtable(self).GetMaximumTextureMemory)(windows_core::Interface::as_raw(self)) } pub unsafe fn ClearResources(&self, millisecondssinceuse: u32) { - (windows_core::Interface::vtable(self).ClearResources)(windows_core::Interface::as_raw(self), core::mem::transmute(millisecondssinceuse)) + (windows_core::Interface::vtable(self).ClearResources)(windows_core::Interface::as_raw(self), millisecondssinceuse) } } #[repr(C)] @@ -4463,11 +4446,11 @@ impl ID2D1Device1 { (windows_core::Interface::vtable(self).GetRenderingPriority)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetRenderingPriority(&self, renderingpriority: D2D1_RENDERING_PRIORITY) { - (windows_core::Interface::vtable(self).SetRenderingPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(renderingpriority)) + (windows_core::Interface::vtable(self).SetRenderingPriority)(windows_core::Interface::as_raw(self), renderingpriority) } pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4532,7 +4515,7 @@ windows_core::imp::interface_hierarchy!(ID2D1Device2, windows_core::IUnknown, ID impl ID2D1Device2 { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where @@ -4617,7 +4600,7 @@ windows_core::imp::interface_hierarchy!(ID2D1Device3, windows_core::IUnknown, ID impl ID2D1Device3 { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4665,10 +4648,10 @@ windows_core::imp::interface_hierarchy!(ID2D1Device4, windows_core::IUnknown, ID impl ID2D1Device4 { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumColorGlyphCacheMemory(&self, maximuminbytes: u64) { - (windows_core::Interface::vtable(self).SetMaximumColorGlyphCacheMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(maximuminbytes)) + (windows_core::Interface::vtable(self).SetMaximumColorGlyphCacheMemory)(windows_core::Interface::as_raw(self), maximuminbytes) } pub unsafe fn GetMaximumColorGlyphCacheMemory(&self) -> u64 { (windows_core::Interface::vtable(self).GetMaximumColorGlyphCacheMemory)(windows_core::Interface::as_raw(self)) @@ -4736,7 +4719,7 @@ windows_core::imp::interface_hierarchy!(ID2D1Device5, windows_core::IUnknown, ID impl ID2D1Device5 { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4784,7 +4767,7 @@ windows_core::imp::interface_hierarchy!(ID2D1Device6, windows_core::IUnknown, ID impl ID2D1Device6 { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4832,7 +4815,7 @@ windows_core::imp::interface_hierarchy!(ID2D1Device7, windows_core::IUnknown, ID impl ID2D1Device7 { pub unsafe fn CreateDeviceContext(&self, options: D2D1_DEVICE_CONTEXT_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceContext)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4881,7 +4864,7 @@ impl ID2D1DeviceContext { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateBitmap(&self, size: Common::D2D_SIZE_U, sourcedata: Option<*const core::ffi::c_void>, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(sourcedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pitch), core::mem::transmute(bitmapproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(sourcedata.unwrap_or(core::mem::zeroed())), pitch, core::mem::transmute(bitmapproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result @@ -4893,7 +4876,7 @@ impl ID2D1DeviceContext { } pub unsafe fn CreateColorContext(&self, space: D2D1_COLOR_SPACE, profile: Option<&[u8]>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContext)(windows_core::Interface::as_raw(self), core::mem::transmute(space), core::mem::transmute(profile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), profile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContext)(windows_core::Interface::as_raw(self), space, core::mem::transmute(profile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), profile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where @@ -4920,12 +4903,12 @@ impl ID2D1DeviceContext { } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), effectid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateGradientStopCollection(&self, straightalphagradientstops: &[Common::D2D1_GRADIENT_STOP], preinterpolationspace: D2D1_COLOR_SPACE, postinterpolationspace: D2D1_COLOR_SPACE, bufferprecision: D2D1_BUFFER_PRECISION, extendmode: D2D1_EXTEND_MODE, colorinterpolationmode: D2D1_COLOR_INTERPOLATION_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGradientStopCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(straightalphagradientstops.as_ptr()), straightalphagradientstops.len().try_into().unwrap(), core::mem::transmute(preinterpolationspace), core::mem::transmute(postinterpolationspace), core::mem::transmute(bufferprecision), core::mem::transmute(extendmode), core::mem::transmute(colorinterpolationmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGradientStopCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(straightalphagradientstops.as_ptr()), straightalphagradientstops.len().try_into().unwrap(), preinterpolationspace, postinterpolationspace, bufferprecision, extendmode, colorinterpolationmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn CreateImageBrush(&self, image: P0, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result @@ -4933,7 +4916,7 @@ impl ID2D1DeviceContext { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(imagebrushproperties), core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result @@ -4949,10 +4932,10 @@ impl ID2D1DeviceContext { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn IsDxgiFormatSupported(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsDxgiFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(format)) + (windows_core::Interface::vtable(self).IsDxgiFormatSupported)(windows_core::Interface::as_raw(self), format) } pub unsafe fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferprecision)) + (windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(windows_core::Interface::as_raw(self), bufferprecision) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result @@ -4973,7 +4956,7 @@ impl ID2D1DeviceContext { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn GetGlyphRunWorldBounds(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGlyphRunWorldBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(measuringmode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGlyphRunWorldBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetDevice(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4993,7 +4976,7 @@ impl ID2D1DeviceContext { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetRenderingControls(&self, renderingcontrols: *const D2D1_RENDERING_CONTROLS) { - (windows_core::Interface::vtable(self).SetRenderingControls)(windows_core::Interface::as_raw(self), core::mem::transmute(renderingcontrols)) + (windows_core::Interface::vtable(self).SetRenderingControls)(windows_core::Interface::as_raw(self), renderingcontrols) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetRenderingControls(&self) -> D2D1_RENDERING_CONTROLS { @@ -5002,13 +4985,13 @@ impl ID2D1DeviceContext { result__ } pub unsafe fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) { - (windows_core::Interface::vtable(self).SetPrimitiveBlend)(windows_core::Interface::as_raw(self), core::mem::transmute(primitiveblend)) + (windows_core::Interface::vtable(self).SetPrimitiveBlend)(windows_core::Interface::as_raw(self), primitiveblend) } pub unsafe fn GetPrimitiveBlend(&self) -> D2D1_PRIMITIVE_BLEND { (windows_core::Interface::vtable(self).GetPrimitiveBlend)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE) { - (windows_core::Interface::vtable(self).SetUnitMode)(windows_core::Interface::as_raw(self), core::mem::transmute(unitmode)) + (windows_core::Interface::vtable(self).SetUnitMode)(windows_core::Interface::as_raw(self), unitmode) } pub unsafe fn GetUnitMode(&self) -> D2D1_UNIT_MODE { (windows_core::Interface::vtable(self).GetUnitMode)(windows_core::Interface::as_raw(self)) @@ -5018,14 +5001,14 @@ impl ID2D1DeviceContext { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), foregroundbrush.param().abi(), core::mem::transmute(measuringmode)) + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawImage(&self, image: P0, targetoffset: Option<*const Common::D2D_POINT_2F>, imagerectangle: Option<*const Common::D2D_RECT_F>, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: Common::D2D1_COMPOSITE_MODE) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(interpolationmode), core::mem::transmute(compositemode)) + (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) @@ -5039,7 +5022,7 @@ impl ID2D1DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(opacity), core::mem::transmute(interpolationmode), core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(perspectivetransform.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(perspectivetransform.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P1) @@ -5053,7 +5036,7 @@ impl ID2D1DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(input), core::mem::transmute(inputrectangle)).ok() + (windows_core::Interface::vtable(self).InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where @@ -5074,7 +5057,7 @@ impl ID2D1DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputdescriptions), core::mem::transmute(requiredinputrects), core::mem::transmute(inputcount)).ok() + (windows_core::Interface::vtable(self).GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputdescriptions), core::mem::transmute(requiredinputrects), inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) @@ -5524,7 +5507,7 @@ impl ID2D1DeviceContext1 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.param().abi(), core::mem::transmute(flatteningtolerance), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokedGeometryRealization(&self, geometry: P0, flatteningtolerance: f32, strokewidth: f32, strokestyle: P3) -> windows_core::Result where @@ -5532,7 +5515,7 @@ impl ID2D1DeviceContext1 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.param().abi(), core::mem::transmute(flatteningtolerance), core::mem::transmute(strokewidth), strokestyle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.param().abi(), flatteningtolerance, strokewidth, strokestyle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DrawGeometryRealization(&self, geometryrealization: P0, brush: P1) where @@ -5610,7 +5593,7 @@ windows_core::imp::interface_hierarchy!(ID2D1DeviceContext2, windows_core::IUnkn impl ID2D1DeviceContext2 { pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInk)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInk)(windows_core::Interface::as_raw(self), startpoint, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateInkStyle(&self, inkstyleproperties: Option<*const D2D1_INK_STYLE_PROPERTIES>) -> windows_core::Result { @@ -5628,16 +5611,16 @@ impl ID2D1DeviceContext2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(loadingoptions), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), loadingoptions, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLookupTable3D(&self, precision: D2D1_BUFFER_PRECISION, extents: &[u32; 3], data: &[u8], strides: &[u32; 2]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLookupTable3D)(windows_core::Interface::as_raw(self), core::mem::transmute(precision), core::mem::transmute(extents.as_ptr()), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(strides.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLookupTable3D)(windows_core::Interface::as_raw(self), precision, core::mem::transmute(extents.as_ptr()), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(strides.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateImageSourceFromDxgi(&self, surfaces: &[Option], colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageSourceFromDxgi)(windows_core::Interface::as_raw(self), core::mem::transmute(surfaces.as_ptr()), surfaces.len().try_into().unwrap(), core::mem::transmute(colorspace), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageSourceFromDxgi)(windows_core::Interface::as_raw(self), core::mem::transmute(surfaces.as_ptr()), surfaces.len().try_into().unwrap(), colorspace, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result @@ -5673,7 +5656,7 @@ impl ID2D1DeviceContext2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), core::mem::transmute(properties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5861,7 +5844,7 @@ impl ID2D1DeviceContext3 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), core::mem::transmute(startindex), core::mem::transmute(spritecount), bitmap.param().abi(), core::mem::transmute(interpolationmode), core::mem::transmute(spriteoptions)) + (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions) } } #[repr(C)] @@ -5928,7 +5911,7 @@ impl ID2D1DeviceContext4 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), core::mem::transmute(layoutrect), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), core::mem::transmute(colorpaletteindex), core::mem::transmute(options), core::mem::transmute(measuringmode)) + (windows_core::Interface::vtable(self).DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), layoutrect, defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, options, measuringmode) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawTextLayout(&self, origin: Common::D2D_POINT_2F, textlayout: P1, defaultfillbrush: P2, svgglyphstyle: P3, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) @@ -5937,11 +5920,11 @@ impl ID2D1DeviceContext4 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.param().abi(), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), core::mem::transmute(colorpaletteindex), core::mem::transmute(options)) + (windows_core::Interface::vtable(self).DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.param().abi(), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, options) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawColorBitmapGlyphRun(&self, 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) { - (windows_core::Interface::vtable(self).DrawColorBitmapGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphimageformat), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(measuringmode), core::mem::transmute(bitmapsnapoption)) + (windows_core::Interface::vtable(self).DrawColorBitmapGlyphRun)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), measuringmode, bitmapsnapoption) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawSvgGlyphRun(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: P2, svgglyphstyle: P3, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) @@ -5949,14 +5932,14 @@ impl ID2D1DeviceContext4 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), core::mem::transmute(colorpaletteindex), core::mem::transmute(measuringmode)) + (windows_core::Interface::vtable(self).DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, measuringmode) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: P2, fontemsize: f32, glyphindex: u16, issideways: bool, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphimageformat), core::mem::transmute(glyphorigin), fontface.param().abi(), core::mem::transmute(fontemsize), core::mem::transmute(glyphindex), issideways.into(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(dpix), core::mem::transmute(dpiy), core::mem::transmute(glyphtransform), core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.into(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), dpix, dpiy, core::mem::transmute(glyphtransform), core::mem::transmute(glyphimage)).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn GetSvgGlyphImage(&self, glyphorigin: Common::D2D_POINT_2F, fontface: P1, fontemsize: f32, glyphindex: u16, issideways: bool, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, defaultfillbrush: P6, svgglyphstyle: P7, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> @@ -5965,7 +5948,7 @@ impl ID2D1DeviceContext4 { P6: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.param().abi(), core::mem::transmute(fontemsize), core::mem::transmute(glyphindex), issideways.into(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), core::mem::transmute(colorpaletteindex), core::mem::transmute(glyphtransform), core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.into(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, core::mem::transmute(glyphtransform), core::mem::transmute(glyphimage)).ok() } } #[repr(C)] @@ -6091,12 +6074,12 @@ impl ID2D1DeviceContext5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateColorContextFromDxgiColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromDxgiColorSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContextFromDxgiColorSpace)(windows_core::Interface::as_raw(self), colorspace, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateColorContextFromSimpleColorProfile(&self, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromSimpleColorProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(simpleprofile), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContextFromSimpleColorProfile)(windows_core::Interface::as_raw(self), simpleprofile, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6192,7 +6175,7 @@ impl ID2D1DeviceContext6 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(blendmode), core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(interpolationmode)) + (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagerectangle.unwrap_or(core::mem::zeroed())), interpolationmode) } } #[repr(C)] @@ -6244,7 +6227,7 @@ impl ID2D1DeviceContext7 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), defaultfillbrush.param().abi(), core::mem::transmute(colorpaletteindex), core::mem::transmute(measuringmode)) + (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), defaultfillbrush.param().abi(), colorpaletteindex, measuringmode) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRunWithColorSupport(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P3, svgglyphstyle: P4, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION) @@ -6252,7 +6235,7 @@ impl ID2D1DeviceContext7 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), foregroundbrush.param().abi(), svgglyphstyle.param().abi(), core::mem::transmute(colorpaletteindex), core::mem::transmute(measuringmode), core::mem::transmute(bitmapsnapoption)) + (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), foregroundbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, measuringmode, bitmapsnapoption) } } #[repr(C)] @@ -6325,19 +6308,19 @@ impl ID2D1DrawInfo { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(textureindex), resourcetexture.param().abi()).ok() + (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), textureindex, resourcetexture.param().abi()).ok() } pub unsafe fn SetVertexShaderConstantBuffer(&self, buffer: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetVertexShaderConstantBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()).ok() } pub unsafe fn SetPixelShader(&self, shaderid: *const windows_core::GUID, pixeloptions: D2D1_PIXEL_OPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderid), core::mem::transmute(pixeloptions)).ok() + (windows_core::Interface::vtable(self).SetPixelShader)(windows_core::Interface::as_raw(self), shaderid, pixeloptions).ok() } pub unsafe fn SetVertexProcessing(&self, vertexbuffer: P0, vertexoptions: D2D1_VERTEX_OPTIONS, blenddescription: Option<*const D2D1_BLEND_DESCRIPTION>, vertexrange: Option<*const D2D1_VERTEX_RANGE>, vertexshader: Option<*const windows_core::GUID>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVertexProcessing)(windows_core::Interface::as_raw(self), vertexbuffer.param().abi(), core::mem::transmute(vertexoptions), core::mem::transmute(blenddescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(vertexrange.unwrap_or(core::mem::zeroed())), core::mem::transmute(vertexshader.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetVertexProcessing)(windows_core::Interface::as_raw(self), vertexbuffer.param().abi(), vertexoptions, core::mem::transmute(blenddescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(vertexrange.unwrap_or(core::mem::zeroed())), core::mem::transmute(vertexshader.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -6448,7 +6431,7 @@ impl ID2D1DrawingStateBlock { } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetDescription(&self, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION) { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(statedescription)) + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), statedescription) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) @@ -6543,7 +6526,7 @@ impl ID2D1DrawingStateBlock1 { } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetDescription(&self, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1) { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(statedescription)) + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), statedescription) } } #[repr(C)] @@ -6603,14 +6586,14 @@ impl ID2D1Effect { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), core::mem::transmute(index), input.param().abi(), invalidate.into()) + (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), invalidate.into()) } pub unsafe fn SetInputCount(&self, inputcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputCount)(windows_core::Interface::as_raw(self), core::mem::transmute(inputcount)).ok() + (windows_core::Interface::vtable(self).SetInputCount)(windows_core::Interface::as_raw(self), inputcount).ok() } pub unsafe fn GetInput(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInput)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__); + (windows_core::Interface::vtable(self).GetInput)(windows_core::Interface::as_raw(self), index, &mut result__); windows_core::Type::from_abi(result__) } pub unsafe fn GetInputCount(&self) -> u32 { @@ -6684,7 +6667,7 @@ impl ID2D1EffectContext { } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), effectid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetMaximumSupportedFeatureLevel(&self, featurelevels: &[super::Direct3D::D3D_FEATURE_LEVEL]) -> windows_core::Result { @@ -6700,11 +6683,11 @@ impl ID2D1EffectContext { } pub unsafe fn CreateBlendTransform(&self, numinputs: u32, blenddescription: *const D2D1_BLEND_DESCRIPTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlendTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(numinputs), core::mem::transmute(blenddescription), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlendTransform)(windows_core::Interface::as_raw(self), numinputs, blenddescription, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBorderTransform(&self, extendmodex: D2D1_EXTEND_MODE, extendmodey: D2D1_EXTEND_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBorderTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmodex), core::mem::transmute(extendmodey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBorderTransform)(windows_core::Interface::as_raw(self), extendmodex, extendmodey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOffsetTransform(&self, offset: super::super::Foundation::POINT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6712,40 +6695,40 @@ impl ID2D1EffectContext { } pub unsafe fn CreateBoundsAdjustmentTransform(&self, outputrectangle: *const super::super::Foundation::RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBoundsAdjustmentTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(outputrectangle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBoundsAdjustmentTransform)(windows_core::Interface::as_raw(self), outputrectangle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadPixelShader(&self, shaderid: *const windows_core::GUID, shaderbuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadPixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderid), core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).LoadPixelShader)(windows_core::Interface::as_raw(self), shaderid, core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() } pub unsafe fn LoadVertexShader(&self, resourceid: *const windows_core::GUID, shaderbuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceid), core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).LoadVertexShader)(windows_core::Interface::as_raw(self), resourceid, core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() } pub unsafe fn LoadComputeShader(&self, resourceid: *const windows_core::GUID, shaderbuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceid), core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).LoadComputeShader)(windows_core::Interface::as_raw(self), resourceid, core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() } pub unsafe fn IsShaderLoaded(&self, shaderid: *const windows_core::GUID) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsShaderLoaded)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderid)) + (windows_core::Interface::vtable(self).IsShaderLoaded)(windows_core::Interface::as_raw(self), shaderid) } pub unsafe fn CreateResourceTexture(&self, resourceid: Option<*const windows_core::GUID>, resourcetextureproperties: *const D2D1_RESOURCE_TEXTURE_PROPERTIES, data: Option<&[u8]>, strides: Option<*const u32>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateResourceTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourcetextureproperties), core::mem::transmute(data.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(strides.unwrap_or(core::mem::zeroed())), data.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateResourceTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceid.unwrap_or(core::mem::zeroed())), resourcetextureproperties, core::mem::transmute(data.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(strides.unwrap_or(core::mem::zeroed())), data.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindResourceTexture(&self, resourceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindResourceTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindResourceTexture)(windows_core::Interface::as_raw(self), resourceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVertexBuffer(&self, vertexbufferproperties: *const D2D1_VERTEX_BUFFER_PROPERTIES, resourceid: Option<*const windows_core::GUID>, customvertexbufferproperties: Option<*const D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVertexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexbufferproperties), core::mem::transmute(resourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(customvertexbufferproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVertexBuffer)(windows_core::Interface::as_raw(self), vertexbufferproperties, core::mem::transmute(resourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(customvertexbufferproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindVertexBuffer(&self, resourceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindVertexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindVertexBuffer)(windows_core::Interface::as_raw(self), resourceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateColorContext(&self, space: D2D1_COLOR_SPACE, profile: Option<&[u8]>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContext)(windows_core::Interface::as_raw(self), core::mem::transmute(space), core::mem::transmute(profile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), profile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContext)(windows_core::Interface::as_raw(self), space, core::mem::transmute(profile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), profile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where @@ -6763,10 +6746,10 @@ impl ID2D1EffectContext { (windows_core::Interface::vtable(self).CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CheckFeatureSupport(&self, feature: D2D1_FEATURE, featuresupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(feature), core::mem::transmute(featuresupportdata), core::mem::transmute(featuresupportdatasize)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, core::mem::transmute(featuresupportdata), featuresupportdatasize).ok() } pub unsafe fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferprecision)) + (windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(windows_core::Interface::as_raw(self), bufferprecision) } } #[repr(C)] @@ -7044,7 +7027,7 @@ windows_core::imp::interface_hierarchy!(ID2D1EffectContext1, windows_core::IUnkn impl ID2D1EffectContext1 { pub unsafe fn CreateLookupTable3D(&self, precision: D2D1_BUFFER_PRECISION, extents: &[u32; 3], data: &[u8], strides: &[u32; 2]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLookupTable3D)(windows_core::Interface::as_raw(self), core::mem::transmute(precision), core::mem::transmute(extents.as_ptr()), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(strides.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLookupTable3D)(windows_core::Interface::as_raw(self), precision, core::mem::transmute(extents.as_ptr()), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(strides.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7093,12 +7076,12 @@ impl ID2D1EffectContext2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateColorContextFromDxgiColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromDxgiColorSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContextFromDxgiColorSpace)(windows_core::Interface::as_raw(self), colorspace, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateColorContextFromSimpleColorProfile(&self, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromSimpleColorProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(simpleprofile), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContextFromSimpleColorProfile)(windows_core::Interface::as_raw(self), simpleprofile, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7168,7 +7151,7 @@ impl ID2D1EffectImpl { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), effectcontext.param().abi(), transformgraph.param().abi()).ok() } pub unsafe fn PrepareForRender(&self, changetype: D2D1_CHANGE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrepareForRender)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype)).ok() + (windows_core::Interface::vtable(self).PrepareForRender)(windows_core::Interface::as_raw(self), changetype).ok() } pub unsafe fn SetGraph(&self, transformgraph: P0) -> windows_core::Result<()> where @@ -7276,22 +7259,22 @@ impl ID2D1Factory { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateRectangleGeometry(&self, rectangle: *const Common::D2D_RECT_F) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRectangleGeometry)(windows_core::Interface::as_raw(self), core::mem::transmute(rectangle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRectangleGeometry)(windows_core::Interface::as_raw(self), rectangle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateRoundedRectangleGeometry(&self, roundedrectangle: *const D2D1_ROUNDED_RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRoundedRectangleGeometry)(windows_core::Interface::as_raw(self), core::mem::transmute(roundedrectangle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRoundedRectangleGeometry)(windows_core::Interface::as_raw(self), roundedrectangle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateEllipseGeometry(&self, ellipse: *const D2D1_ELLIPSE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEllipseGeometry)(windows_core::Interface::as_raw(self), core::mem::transmute(ellipse), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEllipseGeometry)(windows_core::Interface::as_raw(self), ellipse, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateGeometryGroup(&self, fillmode: Common::D2D1_FILL_MODE, geometries: &[Option]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGeometryGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(fillmode), core::mem::transmute(geometries.as_ptr()), geometries.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGeometryGroup)(windows_core::Interface::as_raw(self), fillmode, core::mem::transmute(geometries.as_ptr()), geometries.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result @@ -7299,7 +7282,7 @@ impl ID2D1Factory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.param().abi(), core::mem::transmute(transform), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePathGeometry(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7307,7 +7290,7 @@ impl ID2D1Factory { } pub unsafe fn CreateStrokeStyle(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStrokeStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(strokestyleproperties), core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStrokeStyle)(windows_core::Interface::as_raw(self), strokestyleproperties, core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P1) -> windows_core::Result @@ -7323,12 +7306,12 @@ impl ID2D1Factory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.param().abi(), core::mem::transmute(rendertargetproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateHwndRenderTarget(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, hwndrendertargetproperties: *const D2D1_HWND_RENDER_TARGET_PROPERTIES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateHwndRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(rendertargetproperties), core::mem::transmute(hwndrendertargetproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateHwndRenderTarget)(windows_core::Interface::as_raw(self), rendertargetproperties, hwndrendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateDxgiSurfaceRenderTarget(&self, dxgisurface: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result @@ -7336,12 +7319,12 @@ impl ID2D1Factory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.param().abi(), core::mem::transmute(rendertargetproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateDCRenderTarget(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDCRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(rendertargetproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDCRenderTarget)(windows_core::Interface::as_raw(self), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7587,7 +7570,7 @@ impl ID2D1Factory1 { } pub unsafe fn CreateStrokeStyle(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStrokeStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(strokestyleproperties), core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStrokeStyle)(windows_core::Interface::as_raw(self), strokestyleproperties, core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePathGeometry(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7614,23 +7597,23 @@ impl ID2D1Factory1 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEffectFromStream)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), propertyxml.param().abi(), core::mem::transmute(bindings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bindings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(effectfactory)).ok() + (windows_core::Interface::vtable(self).RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.param().abi(), core::mem::transmute(bindings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bindings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), effectfactory).ok() } pub unsafe fn RegisterEffectFromString(&self, classid: *const windows_core::GUID, propertyxml: P1, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEffectFromString)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), propertyxml.param().abi(), core::mem::transmute(bindings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bindings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(effectfactory)).ok() + (windows_core::Interface::vtable(self).RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.param().abi(), core::mem::transmute(bindings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bindings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), effectfactory).ok() } pub unsafe fn UnregisterEffect(&self, classid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(classid)).ok() + (windows_core::Interface::vtable(self).UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() } pub unsafe fn GetRegisteredEffects(&self, effects: Option<&mut [windows_core::GUID]>, effectsreturned: Option<*mut u32>, effectsregistered: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRegisteredEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(effects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), effects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(effectsreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(effectsregistered.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEffectProperties(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEffectProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEffectProperties)(windows_core::Interface::as_raw(self), effectid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8166,7 +8149,7 @@ impl ID2D1GdiInteropRenderTarget { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, mode: D2D1_DC_INITIALIZE_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(mode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), mode, &mut result__).map(|| result__) } pub unsafe fn ReleaseDC(&self, update: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(update.unwrap_or(core::mem::zeroed()))).ok() @@ -8348,7 +8331,7 @@ windows_core::imp::define_interface!(ID2D1GdiMetafileSink, ID2D1GdiMetafileSink_ windows_core::imp::interface_hierarchy!(ID2D1GdiMetafileSink, windows_core::IUnknown); impl ID2D1GdiMetafileSink { pub unsafe fn ProcessRecord(&self, recordtype: u32, recorddata: Option<*const core::ffi::c_void>, recorddatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(recordtype), core::mem::transmute(recorddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(recorddatasize)).ok() + (windows_core::Interface::vtable(self).ProcessRecord)(windows_core::Interface::as_raw(self), recordtype, core::mem::transmute(recorddata.unwrap_or(core::mem::zeroed())), recorddatasize).ok() } } #[repr(C)] @@ -8384,7 +8367,7 @@ impl core::ops::Deref for ID2D1GdiMetafileSink1 { windows_core::imp::interface_hierarchy!(ID2D1GdiMetafileSink1, windows_core::IUnknown, ID2D1GdiMetafileSink); impl ID2D1GdiMetafileSink1 { pub unsafe fn ProcessRecord(&self, recordtype: u32, recorddata: Option<*const core::ffi::c_void>, recorddatasize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(recordtype), core::mem::transmute(recorddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(recorddatasize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ProcessRecord)(windows_core::Interface::as_raw(self), recordtype, core::mem::transmute(recorddata.unwrap_or(core::mem::zeroed())), recorddatasize, flags).ok() } } #[repr(C)] @@ -8430,7 +8413,7 @@ impl ID2D1Geometry { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWidenedBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(strokewidth), strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, &mut result__).map(|| result__) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn StrokeContainsPoint(&self, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: P2, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result @@ -8438,12 +8421,12 @@ impl ID2D1Geometry { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), core::mem::transmute(strokewidth), strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, &mut result__).map(|| result__) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn FillContainsPoint(&self, point: Common::D2D_POINT_2F, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FillContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FillContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, &mut result__).map(|| result__) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CompareWithGeometry(&self, inputgeometry: P0, inputgeometrytransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result @@ -8451,21 +8434,21 @@ impl ID2D1Geometry { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, &mut result__).map(|| result__) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Simplify(&self, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Simplify)(windows_core::Interface::as_raw(self), core::mem::transmute(simplificationoption), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), geometrysink.param().abi()).ok() + (windows_core::Interface::vtable(self).Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn Tessellate(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, tessellationsink: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), tessellationsink.param().abi()).ok() + (windows_core::Interface::vtable(self).Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, tessellationsink.param().abi()).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn CombineWithGeometry(&self, inputgeometry: P0, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P4) -> windows_core::Result<()> @@ -8473,28 +8456,28 @@ impl ID2D1Geometry { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(combinemode), core::mem::transmute(inputgeometrytransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), geometrysink.param().abi()).ok() + (windows_core::Interface::vtable(self).CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Outline(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), geometrysink.param().abi()).ok() + (windows_core::Interface::vtable(self).Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn ComputeArea(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ComputeArea)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ComputeArea)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, &mut result__).map(|| result__) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn ComputeLength(&self, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ComputeLength)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ComputeLength)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, &mut result__).map(|| result__) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn ComputePointAtLength(&self, length: f32, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, point: Option<*mut Common::D2D_POINT_2F>, unittangentvector: Option<*mut Common::D2D_POINT_2F>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ComputePointAtLength)(windows_core::Interface::as_raw(self), core::mem::transmute(length), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), core::mem::transmute(point.unwrap_or(core::mem::zeroed())), core::mem::transmute(unittangentvector.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ComputePointAtLength)(windows_core::Interface::as_raw(self), length, core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, core::mem::transmute(point.unwrap_or(core::mem::zeroed())), core::mem::transmute(unittangentvector.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P4) -> windows_core::Result<()> @@ -8502,7 +8485,7 @@ impl ID2D1Geometry { P1: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Widen)(windows_core::Interface::as_raw(self), core::mem::transmute(strokewidth), strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), geometrysink.param().abi()).ok() + (windows_core::Interface::vtable(self).Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, geometrysink.param().abi()).ok() } } #[repr(C)] @@ -8812,11 +8795,11 @@ impl ID2D1GeometrySink { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn AddBezier(&self, bezier: *const Common::D2D1_BEZIER_SEGMENT) { - (windows_core::Interface::vtable(self).AddBezier)(windows_core::Interface::as_raw(self), core::mem::transmute(bezier)) + (windows_core::Interface::vtable(self).AddBezier)(windows_core::Interface::as_raw(self), bezier) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn AddQuadraticBezier(&self, bezier: *const D2D1_QUADRATIC_BEZIER_SEGMENT) { - (windows_core::Interface::vtable(self).AddQuadraticBezier)(windows_core::Interface::as_raw(self), core::mem::transmute(bezier)) + (windows_core::Interface::vtable(self).AddQuadraticBezier)(windows_core::Interface::as_raw(self), bezier) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn AddQuadraticBeziers(&self, beziers: &[D2D1_QUADRATIC_BEZIER_SEGMENT]) { @@ -8824,7 +8807,7 @@ impl ID2D1GeometrySink { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn AddArc(&self, arc: *const D2D1_ARC_SEGMENT) { - (windows_core::Interface::vtable(self).AddArc)(windows_core::Interface::as_raw(self), core::mem::transmute(arc)) + (windows_core::Interface::vtable(self).AddArc)(windows_core::Interface::as_raw(self), arc) } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] @@ -8916,7 +8899,7 @@ impl ID2D1GradientMesh { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetPatches(&self, startindex: u32, patches: &mut [D2D1_GRADIENT_MESH_PATCH]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPatches)(windows_core::Interface::as_raw(self), core::mem::transmute(startindex), core::mem::transmute(patches.as_ptr()), patches.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetPatches)(windows_core::Interface::as_raw(self), startindex, core::mem::transmute(patches.as_ptr()), patches.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -9140,7 +9123,7 @@ impl ID2D1HwndRenderTarget { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Resize(&self, pixelsize: *const Common::D2D_SIZE_U) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(pixelsize)).ok() + (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), pixelsize).ok() } pub unsafe fn GetHwnd(&self) -> super::super::Foundation::HWND { (windows_core::Interface::vtable(self).GetHwnd)(windows_core::Interface::as_raw(self)) @@ -9234,17 +9217,17 @@ impl ID2D1ImageBrush { (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn SetExtendModeX(&self, extendmodex: D2D1_EXTEND_MODE) { - (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmodex)) + (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), extendmodex) } pub unsafe fn SetExtendModeY(&self, extendmodey: D2D1_EXTEND_MODE) { - (windows_core::Interface::vtable(self).SetExtendModeY)(windows_core::Interface::as_raw(self), core::mem::transmute(extendmodey)) + (windows_core::Interface::vtable(self).SetExtendModeY)(windows_core::Interface::as_raw(self), extendmodey) } pub unsafe fn SetInterpolationMode(&self, interpolationmode: D2D1_INTERPOLATION_MODE) { - (windows_core::Interface::vtable(self).SetInterpolationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(interpolationmode)) + (windows_core::Interface::vtable(self).SetInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetSourceRectangle(&self, sourcerectangle: *const Common::D2D_RECT_F) { - (windows_core::Interface::vtable(self).SetSourceRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(sourcerectangle)) + (windows_core::Interface::vtable(self).SetSourceRectangle)(windows_core::Interface::as_raw(self), sourcerectangle) } pub unsafe fn GetImage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9511,7 +9494,7 @@ impl core::ops::Deref for ID2D1Ink { windows_core::imp::interface_hierarchy!(ID2D1Ink, windows_core::IUnknown, ID2D1Resource); impl ID2D1Ink { pub unsafe fn SetStartPoint(&self, startpoint: *const D2D1_INK_POINT) { - (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint)) + (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), startpoint) } pub unsafe fn GetStartPoint(&self) -> D2D1_INK_POINT { let mut result__ = core::mem::zeroed(); @@ -9522,19 +9505,19 @@ impl ID2D1Ink { (windows_core::Interface::vtable(self).AddSegments)(windows_core::Interface::as_raw(self), core::mem::transmute(segments.as_ptr()), segments.len().try_into().unwrap()).ok() } pub unsafe fn RemoveSegmentsAtEnd(&self, segmentscount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSegmentsAtEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentscount)).ok() + (windows_core::Interface::vtable(self).RemoveSegmentsAtEnd)(windows_core::Interface::as_raw(self), segmentscount).ok() } pub unsafe fn SetSegments(&self, startsegment: u32, segments: &[D2D1_INK_BEZIER_SEGMENT]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegments)(windows_core::Interface::as_raw(self), core::mem::transmute(startsegment), core::mem::transmute(segments.as_ptr()), segments.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetSegments)(windows_core::Interface::as_raw(self), startsegment, core::mem::transmute(segments.as_ptr()), segments.len().try_into().unwrap()).ok() } pub unsafe fn SetSegmentAtEnd(&self, segment: *const D2D1_INK_BEZIER_SEGMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegmentAtEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(segment)).ok() + (windows_core::Interface::vtable(self).SetSegmentAtEnd)(windows_core::Interface::as_raw(self), segment).ok() } pub unsafe fn GetSegmentCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetSegmentCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetSegments(&self, startsegment: u32, segments: &mut [D2D1_INK_BEZIER_SEGMENT]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSegments)(windows_core::Interface::as_raw(self), core::mem::transmute(startsegment), core::mem::transmute(segments.as_ptr()), segments.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetSegments)(windows_core::Interface::as_raw(self), startsegment, core::mem::transmute(segments.as_ptr()), segments.len().try_into().unwrap()).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn StreamAsGeometry(&self, inkstyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P3) -> windows_core::Result<()> @@ -9542,7 +9525,7 @@ impl ID2D1Ink { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).StreamAsGeometry)(windows_core::Interface::as_raw(self), inkstyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), geometrysink.param().abi()).ok() + (windows_core::Interface::vtable(self).StreamAsGeometry)(windows_core::Interface::as_raw(self), inkstyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetBounds(&self, inkstyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>) -> windows_core::Result @@ -9670,14 +9653,14 @@ windows_core::imp::interface_hierarchy!(ID2D1InkStyle, windows_core::IUnknown, I impl ID2D1InkStyle { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetNibTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { - (windows_core::Interface::vtable(self).SetNibTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)) + (windows_core::Interface::vtable(self).SetNibTransform)(windows_core::Interface::as_raw(self), transform) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn GetNibTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { (windows_core::Interface::vtable(self).GetNibTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)) } pub unsafe fn SetNibShape(&self, nibshape: D2D1_INK_NIB_SHAPE) { - (windows_core::Interface::vtable(self).SetNibShape)(windows_core::Interface::as_raw(self), core::mem::transmute(nibshape)) + (windows_core::Interface::vtable(self).SetNibShape)(windows_core::Interface::as_raw(self), nibshape) } pub unsafe fn GetNibShape(&self) -> D2D1_INK_NIB_SHAPE { (windows_core::Interface::vtable(self).GetNibShape)(windows_core::Interface::as_raw(self)) @@ -10178,7 +10161,7 @@ windows_core::imp::interface_hierarchy!(ID2D1PathGeometry1, windows_core::IUnkno impl ID2D1PathGeometry1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn ComputePointAndSegmentAtLength(&self, length: f32, startsegment: u32, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ComputePointAndSegmentAtLength)(windows_core::Interface::as_raw(self), core::mem::transmute(length), core::mem::transmute(startsegment), core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(flatteningtolerance), core::mem::transmute(pointdescription)).ok() + (windows_core::Interface::vtable(self).ComputePointAndSegmentAtLength)(windows_core::Interface::as_raw(self), length, startsegment, core::mem::transmute(worldtransform.unwrap_or(core::mem::zeroed())), flatteningtolerance, core::mem::transmute(pointdescription)).ok() } } #[repr(C)] @@ -10271,13 +10254,13 @@ impl ID2D1Properties { (windows_core::Interface::vtable(self).GetPropertyCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetPropertyName(&self, index: u32, name: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(name.as_ptr()), name.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetPropertyName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(name.as_ptr()), name.len().try_into().unwrap()).ok() } pub unsafe fn GetPropertyNameLength(&self, index: u32) -> u32 { - (windows_core::Interface::vtable(self).GetPropertyNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetPropertyNameLength)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetType(&self, index: u32) -> D2D1_PROPERTY_TYPE { - (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetPropertyIndex(&self, name: P0) -> u32 where @@ -10289,26 +10272,26 @@ impl ID2D1Properties { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueByName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetValueByName)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn SetValue(&self, index: u32, r#type: D2D1_PROPERTY_TYPE, data: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(r#type), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), index, r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn GetValueByName(&self, name: P0, r#type: D2D1_PROPERTY_TYPE, data: &mut [u8]) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn GetValue(&self, index: u32, r#type: D2D1_PROPERTY_TYPE, data: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(r#type), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), index, r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn GetValueSize(&self, index: u32) -> u32 { - (windows_core::Interface::vtable(self).GetValueSize)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetValueSize)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetSubProperties(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubProperties)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10431,10 +10414,10 @@ impl ID2D1RadialGradientBrush { (windows_core::Interface::vtable(self).SetGradientOriginOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(gradientoriginoffset)) } pub unsafe fn SetRadiusX(&self, radiusx: f32) { - (windows_core::Interface::vtable(self).SetRadiusX)(windows_core::Interface::as_raw(self), core::mem::transmute(radiusx)) + (windows_core::Interface::vtable(self).SetRadiusX)(windows_core::Interface::as_raw(self), radiusx) } pub unsafe fn SetRadiusY(&self, radiusy: f32) { - (windows_core::Interface::vtable(self).SetRadiusY)(windows_core::Interface::as_raw(self), core::mem::transmute(radiusy)) + (windows_core::Interface::vtable(self).SetRadiusY)(windows_core::Interface::as_raw(self), radiusy) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetCenter(&self) -> Common::D2D_POINT_2F { @@ -10610,16 +10593,16 @@ windows_core::imp::define_interface!(ID2D1RenderInfo, ID2D1RenderInfo_Vtbl, 0x51 windows_core::imp::interface_hierarchy!(ID2D1RenderInfo, windows_core::IUnknown); impl ID2D1RenderInfo { pub unsafe fn SetInputDescription(&self, inputindex: u32, inputdescription: D2D1_INPUT_DESCRIPTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), core::mem::transmute(inputdescription)).ok() + (windows_core::Interface::vtable(self).SetInputDescription)(windows_core::Interface::as_raw(self), inputindex, core::mem::transmute(inputdescription)).ok() } pub unsafe fn SetOutputBuffer(&self, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferprecision), core::mem::transmute(channeldepth)).ok() + (windows_core::Interface::vtable(self).SetOutputBuffer)(windows_core::Interface::as_raw(self), bufferprecision, channeldepth).ok() } pub unsafe fn SetCached(&self, iscached: bool) { (windows_core::Interface::vtable(self).SetCached)(windows_core::Interface::as_raw(self), iscached.into()) } pub unsafe fn SetInstructionCountHint(&self, instructioncount: u32) { - (windows_core::Interface::vtable(self).SetInstructionCountHint)(windows_core::Interface::as_raw(self), core::mem::transmute(instructioncount)) + (windows_core::Interface::vtable(self).SetInstructionCountHint)(windows_core::Interface::as_raw(self), instructioncount) } } #[repr(C)] @@ -10681,7 +10664,7 @@ impl ID2D1RenderTarget { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateBitmap(&self, size: Common::D2D_SIZE_U, srcdata: Option<*const core::ffi::c_void>, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(srcdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pitch), core::mem::transmute(bitmapproperties), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(srcdata.unwrap_or(core::mem::zeroed())), pitch, bitmapproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES>) -> windows_core::Result @@ -10693,7 +10676,7 @@ impl ID2D1RenderTarget { } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateSharedBitmap(&self, riid: *const windows_core::GUID, data: *mut core::ffi::c_void, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES>, bitmap: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateSharedBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(data), core::mem::transmute(bitmapproperties.unwrap_or(core::mem::zeroed())), core::mem::transmute(bitmap)).ok() + (windows_core::Interface::vtable(self).CreateSharedBitmap)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(data), core::mem::transmute(bitmapproperties.unwrap_or(core::mem::zeroed())), core::mem::transmute(bitmap)).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result @@ -10706,12 +10689,12 @@ impl ID2D1RenderTarget { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn CreateSolidColorBrush(&self, color: *const Common::D2D1_COLOR_F, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSolidColorBrush)(windows_core::Interface::as_raw(self), core::mem::transmute(color), core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSolidColorBrush)(windows_core::Interface::as_raw(self), color, core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateGradientStopCollection(&self, gradientstops: &[Common::D2D1_GRADIENT_STOP], colorinterpolationgamma: D2D1_GAMMA, extendmode: D2D1_EXTEND_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGradientStopCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(gradientstops.as_ptr()), gradientstops.len().try_into().unwrap(), core::mem::transmute(colorinterpolationgamma), core::mem::transmute(extendmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGradientStopCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(gradientstops.as_ptr()), gradientstops.len().try_into().unwrap(), colorinterpolationgamma, extendmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn CreateLinearGradientBrush(&self, lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>, gradientstopcollection: P2) -> windows_core::Result @@ -10719,7 +10702,7 @@ impl ID2D1RenderTarget { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), core::mem::transmute(lineargradientbrushproperties), core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), gradientstopcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), gradientstopcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn CreateRadialGradientBrush(&self, radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>, gradientstopcollection: P2) -> windows_core::Result @@ -10727,12 +10710,12 @@ impl ID2D1RenderTarget { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), core::mem::transmute(radialgradientbrushproperties), core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), gradientstopcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(core::mem::zeroed())), gradientstopcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateCompatibleRenderTarget(&self, desiredsize: Option<*const Common::D2D_SIZE_F>, desiredpixelsize: Option<*const Common::D2D_SIZE_U>, desiredformat: Option<*const Common::D2D1_PIXEL_FORMAT>, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCompatibleRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(desiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredpixelsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompatibleRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(desiredsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredpixelsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredformat.unwrap_or(core::mem::zeroed())), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreateLayer(&self, size: Option<*const Common::D2D_SIZE_F>) -> windows_core::Result { @@ -10749,7 +10732,7 @@ impl ID2D1RenderTarget { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()) + (windows_core::Interface::vtable(self).DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.param().abi(), strokewidth, strokestyle.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P1, strokewidth: f32, strokestyle: P3) @@ -10757,14 +10740,14 @@ impl ID2D1RenderTarget { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(rect), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()) + (windows_core::Interface::vtable(self).DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.param().abi(), strokewidth, strokestyle.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P1) where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(rect), brush.param().abi()) + (windows_core::Interface::vtable(self).FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawRoundedRectangle(&self, roundedrect: *const D2D1_ROUNDED_RECT, brush: P1, strokewidth: f32, strokestyle: P3) @@ -10772,14 +10755,14 @@ impl ID2D1RenderTarget { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawRoundedRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(roundedrect), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()) + (windows_core::Interface::vtable(self).DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.param().abi(), strokewidth, strokestyle.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRoundedRectangle(&self, roundedrect: *const D2D1_ROUNDED_RECT, brush: P1) where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillRoundedRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(roundedrect), brush.param().abi()) + (windows_core::Interface::vtable(self).FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawEllipse(&self, ellipse: *const D2D1_ELLIPSE, brush: P1, strokewidth: f32, strokestyle: P3) @@ -10787,14 +10770,14 @@ impl ID2D1RenderTarget { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawEllipse)(windows_core::Interface::as_raw(self), core::mem::transmute(ellipse), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()) + (windows_core::Interface::vtable(self).DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi(), strokewidth, strokestyle.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillEllipse(&self, ellipse: *const D2D1_ELLIPSE, brush: P1) where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillEllipse)(windows_core::Interface::as_raw(self), core::mem::transmute(ellipse), brush.param().abi()) + (windows_core::Interface::vtable(self).FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P3) where @@ -10802,7 +10785,7 @@ impl ID2D1RenderTarget { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), core::mem::transmute(strokewidth), strokestyle.param().abi()) + (windows_core::Interface::vtable(self).DrawGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), strokewidth, strokestyle.param().abi()) } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) where @@ -10825,14 +10808,14 @@ impl ID2D1RenderTarget { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(content), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap(&self, bitmap: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, opacity: f32, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, sourcerectangle: Option<*const Common::D2D_RECT_F>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(opacity), core::mem::transmute(interpolationmode), core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(core::mem::zeroed())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P2, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P4, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) @@ -10840,7 +10823,7 @@ impl ID2D1RenderTarget { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), core::mem::transmute(layoutrect), defaultfillbrush.param().abi(), core::mem::transmute(options), core::mem::transmute(measuringmode)) + (windows_core::Interface::vtable(self).DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), layoutrect, defaultfillbrush.param().abi(), options, measuringmode) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawTextLayout(&self, origin: Common::D2D_POINT_2F, textlayout: P1, defaultfillbrush: P2, options: D2D1_DRAW_TEXT_OPTIONS) @@ -10848,31 +10831,31 @@ impl ID2D1RenderTarget { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.param().abi(), defaultfillbrush.param().abi(), core::mem::transmute(options)) + (windows_core::Interface::vtable(self).DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.param().abi(), defaultfillbrush.param().abi(), options) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, foregroundbrush: P2, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), foregroundbrush.param().abi(), core::mem::transmute(measuringmode)) + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)) + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn GetTransform(&self, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)) } pub unsafe fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE) { - (windows_core::Interface::vtable(self).SetAntialiasMode)(windows_core::Interface::as_raw(self), core::mem::transmute(antialiasmode)) + (windows_core::Interface::vtable(self).SetAntialiasMode)(windows_core::Interface::as_raw(self), antialiasmode) } pub unsafe fn GetAntialiasMode(&self) -> D2D1_ANTIALIAS_MODE { (windows_core::Interface::vtable(self).GetAntialiasMode)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetTextAntialiasMode(&self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) { - (windows_core::Interface::vtable(self).SetTextAntialiasMode)(windows_core::Interface::as_raw(self), core::mem::transmute(textantialiasmode)) + (windows_core::Interface::vtable(self).SetTextAntialiasMode)(windows_core::Interface::as_raw(self), textantialiasmode) } pub unsafe fn GetTextAntialiasMode(&self) -> D2D1_TEXT_ANTIALIAS_MODE { (windows_core::Interface::vtable(self).GetTextAntialiasMode)(windows_core::Interface::as_raw(self)) @@ -10891,7 +10874,7 @@ impl ID2D1RenderTarget { windows_core::Type::from_abi(result__) } pub unsafe fn SetTags(&self, tag1: u64, tag2: u64) { - (windows_core::Interface::vtable(self).SetTags)(windows_core::Interface::as_raw(self), core::mem::transmute(tag1), core::mem::transmute(tag2)) + (windows_core::Interface::vtable(self).SetTags)(windows_core::Interface::as_raw(self), tag1, tag2) } pub unsafe fn GetTags(&self, tag1: Option<*mut u64>, tag2: Option<*mut u64>) { (windows_core::Interface::vtable(self).GetTags)(windows_core::Interface::as_raw(self), core::mem::transmute(tag1.unwrap_or(core::mem::zeroed())), core::mem::transmute(tag2.unwrap_or(core::mem::zeroed()))) @@ -10923,7 +10906,7 @@ impl ID2D1RenderTarget { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { - (windows_core::Interface::vtable(self).PushAxisAlignedClip)(windows_core::Interface::as_raw(self), core::mem::transmute(cliprect), core::mem::transmute(antialiasmode)) + (windows_core::Interface::vtable(self).PushAxisAlignedClip)(windows_core::Interface::as_raw(self), cliprect, antialiasmode) } pub unsafe fn PopAxisAlignedClip(&self) { (windows_core::Interface::vtable(self).PopAxisAlignedClip)(windows_core::Interface::as_raw(self)) @@ -10945,7 +10928,7 @@ impl ID2D1RenderTarget { result__ } pub unsafe fn SetDpi(&self, dpix: f32, dpiy: f32) { - (windows_core::Interface::vtable(self).SetDpi)(windows_core::Interface::as_raw(self), core::mem::transmute(dpix), core::mem::transmute(dpiy)) + (windows_core::Interface::vtable(self).SetDpi)(windows_core::Interface::as_raw(self), dpix, dpiy) } pub unsafe fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32) { (windows_core::Interface::vtable(self).GetDpi)(windows_core::Interface::as_raw(self), core::mem::transmute(dpix), core::mem::transmute(dpiy)) @@ -10967,7 +10950,7 @@ impl ID2D1RenderTarget { } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn IsSupported(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(rendertargetproperties)) + (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), rendertargetproperties) } } #[repr(C)] @@ -11560,7 +11543,7 @@ windows_core::imp::define_interface!(ID2D1ResourceTexture, ID2D1ResourceTexture_ windows_core::imp::interface_hierarchy!(ID2D1ResourceTexture, windows_core::IUnknown); impl ID2D1ResourceTexture { pub unsafe fn Update(&self, minimumextents: Option<*const u32>, maximimumextents: Option<*const u32>, strides: Option<*const u32>, dimensions: u32, data: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(minimumextents.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximimumextents.unwrap_or(core::mem::zeroed())), core::mem::transmute(strides.unwrap_or(core::mem::zeroed())), core::mem::transmute(dimensions), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(minimumextents.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximimumextents.unwrap_or(core::mem::zeroed())), core::mem::transmute(strides.unwrap_or(core::mem::zeroed())), dimensions, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -11642,7 +11625,7 @@ windows_core::imp::interface_hierarchy!(ID2D1SolidColorBrush, windows_core::IUnk impl ID2D1SolidColorBrush { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetColor(&self, color: *const Common::D2D1_COLOR_F) { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)) + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetColor(&self) -> Common::D2D1_COLOR_F { @@ -11711,7 +11694,7 @@ impl ID2D1SourceTransform { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), target.param().abi(), core::mem::transmute(drawrect), core::mem::transmute(targetorigin)).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), target.param().abi(), drawrect, core::mem::transmute(targetorigin)).ok() } } #[repr(C)] @@ -11762,40 +11745,15 @@ windows_core::imp::interface_hierarchy!(ID2D1SpriteBatch, windows_core::IUnknown impl ID2D1SpriteBatch { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn AddSprites(&self, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: Option<*const Common::D2D_RECT_U>, colors: Option<*const Common::D2D1_COLOR_F>, transforms: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSprites)( - windows_core::Interface::as_raw(self), - core::mem::transmute(spritecount), - core::mem::transmute(destinationrectangles), - core::mem::transmute(sourcerectangles.unwrap_or(core::mem::zeroed())), - core::mem::transmute(colors.unwrap_or(core::mem::zeroed())), - core::mem::transmute(transforms.unwrap_or(core::mem::zeroed())), - core::mem::transmute(destinationrectanglesstride), - core::mem::transmute(sourcerectanglesstride), - core::mem::transmute(colorsstride), - core::mem::transmute(transformsstride), - ) - .ok() + (windows_core::Interface::vtable(self).AddSprites)(windows_core::Interface::as_raw(self), spritecount, destinationrectangles, core::mem::transmute(sourcerectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(colors.unwrap_or(core::mem::zeroed())), core::mem::transmute(transforms.unwrap_or(core::mem::zeroed())), destinationrectanglesstride, sourcerectanglesstride, colorsstride, transformsstride).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn SetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: Option<*const Common::D2D_RECT_F>, sourcerectangles: Option<*const Common::D2D_RECT_U>, colors: Option<*const Common::D2D1_COLOR_F>, transforms: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSprites)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startindex), - core::mem::transmute(spritecount), - core::mem::transmute(destinationrectangles.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sourcerectangles.unwrap_or(core::mem::zeroed())), - core::mem::transmute(colors.unwrap_or(core::mem::zeroed())), - core::mem::transmute(transforms.unwrap_or(core::mem::zeroed())), - core::mem::transmute(destinationrectanglesstride), - core::mem::transmute(sourcerectanglesstride), - core::mem::transmute(colorsstride), - core::mem::transmute(transformsstride), - ) - .ok() + (windows_core::Interface::vtable(self).SetSprites)(windows_core::Interface::as_raw(self), startindex, spritecount, core::mem::transmute(destinationrectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourcerectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(colors.unwrap_or(core::mem::zeroed())), core::mem::transmute(transforms.unwrap_or(core::mem::zeroed())), destinationrectanglesstride, sourcerectanglesstride, colorsstride, transformsstride).ok() } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetSprites(&self, startindex: u32, spritecount: u32, destinationrectangles: Option<*mut Common::D2D_RECT_F>, sourcerectangles: Option<*mut Common::D2D_RECT_U>, colors: Option<*mut Common::D2D1_COLOR_F>, transforms: Option<*mut super::super::super::Foundation::Numerics::Matrix3x2>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSprites)(windows_core::Interface::as_raw(self), core::mem::transmute(startindex), core::mem::transmute(spritecount), core::mem::transmute(destinationrectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourcerectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(colors.unwrap_or(core::mem::zeroed())), core::mem::transmute(transforms.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSprites)(windows_core::Interface::as_raw(self), startindex, spritecount, core::mem::transmute(destinationrectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourcerectangles.unwrap_or(core::mem::zeroed())), core::mem::transmute(colors.unwrap_or(core::mem::zeroed())), core::mem::transmute(transforms.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSpriteCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetSpriteCount)(windows_core::Interface::as_raw(self)) @@ -12140,7 +12098,7 @@ impl ID2D1SvgDocument { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePaint)(windows_core::Interface::as_raw(self), core::mem::transmute(painttype), core::mem::transmute(color.unwrap_or(core::mem::zeroed())), id.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePaint)(windows_core::Interface::as_raw(self), painttype, core::mem::transmute(color.unwrap_or(core::mem::zeroed())), id.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeDashArray(&self, dashes: Option<&[D2D1_SVG_LENGTH]>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12409,10 +12367,10 @@ impl ID2D1SvgElement { (windows_core::Interface::vtable(self).GetSpecifiedAttributeCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetSpecifiedAttributeName(&self, index: u32, name: &mut [u16], inherited: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecifiedAttributeName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(name.as_ptr()), name.len().try_into().unwrap(), core::mem::transmute(inherited.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecifiedAttributeName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(name.as_ptr()), name.len().try_into().unwrap(), core::mem::transmute(inherited.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSpecifiedAttributeNameLength(&self, index: u32, namelength: *mut u32, inherited: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecifiedAttributeNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(namelength), core::mem::transmute(inherited.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecifiedAttributeNameLength)(windows_core::Interface::as_raw(self), index, core::mem::transmute(namelength), core::mem::transmute(inherited.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemoveAttribute(&self, name: P0) -> windows_core::Result<()> where @@ -12440,14 +12398,14 @@ impl ID2D1SvgElement { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttributeValue2)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(value), core::mem::transmute(valuesizeinbytes)).ok() + (windows_core::Interface::vtable(self).SetAttributeValue2)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, value, valuesizeinbytes).ok() } pub unsafe fn SetAttributeValue3(&self, name: P0, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttributeValue3)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), value.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttributeValue3)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, value.param().abi()).ok() } pub unsafe fn GetAttributeValue(&self, name: P0) -> windows_core::Result where @@ -12461,20 +12419,20 @@ impl ID2D1SvgElement { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeValue2)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(value), core::mem::transmute(valuesizeinbytes)).ok() + (windows_core::Interface::vtable(self).GetAttributeValue2)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, core::mem::transmute(value), valuesizeinbytes).ok() } pub unsafe fn GetAttributeValue3(&self, name: P0, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: &mut [u16]) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeValue3)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetAttributeValue3)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } pub unsafe fn GetAttributeValueLength(&self, name: P0, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeValueLength)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributeValueLength)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, &mut result__).map(|| result__) } } #[repr(C)] @@ -12754,7 +12712,7 @@ impl ID2D1SvgGlyphStyle { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStroke)(windows_core::Interface::as_raw(self), brush.param().abi(), core::mem::transmute(strokewidth), core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dashoffset)).ok() + (windows_core::Interface::vtable(self).SetStroke)(windows_core::Interface::as_raw(self), brush.param().abi(), strokewidth, core::mem::transmute(dashes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dashoffset).ok() } pub unsafe fn GetStrokeDashesCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetStrokeDashesCount)(windows_core::Interface::as_raw(self)) @@ -12827,14 +12785,14 @@ impl core::ops::Deref for ID2D1SvgPaint { windows_core::imp::interface_hierarchy!(ID2D1SvgPaint, windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgPaint { pub unsafe fn SetPaintType(&self, painttype: D2D1_SVG_PAINT_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPaintType)(windows_core::Interface::as_raw(self), core::mem::transmute(painttype)).ok() + (windows_core::Interface::vtable(self).SetPaintType)(windows_core::Interface::as_raw(self), painttype).ok() } pub unsafe fn GetPaintType(&self) -> D2D1_SVG_PAINT_TYPE { (windows_core::Interface::vtable(self).GetPaintType)(windows_core::Interface::as_raw(self)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetColor(&self, color: *const Common::D2D1_COLOR_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetColor(&self) -> Common::D2D1_COLOR_F { @@ -12944,25 +12902,25 @@ impl core::ops::Deref for ID2D1SvgPathData { windows_core::imp::interface_hierarchy!(ID2D1SvgPathData, windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgPathData { pub unsafe fn RemoveSegmentDataAtEnd(&self, datacount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSegmentDataAtEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(datacount)).ok() + (windows_core::Interface::vtable(self).RemoveSegmentDataAtEnd)(windows_core::Interface::as_raw(self), datacount).ok() } pub unsafe fn UpdateSegmentData(&self, data: &[f32], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateSegmentData)(windows_core::Interface::as_raw(self), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).UpdateSegmentData)(windows_core::Interface::as_raw(self), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetSegmentData(&self, data: &mut [f32], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSegmentData)(windows_core::Interface::as_raw(self), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).GetSegmentData)(windows_core::Interface::as_raw(self), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetSegmentDataCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetSegmentDataCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn RemoveCommandsAtEnd(&self, commandscount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveCommandsAtEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(commandscount)).ok() + (windows_core::Interface::vtable(self).RemoveCommandsAtEnd)(windows_core::Interface::as_raw(self), commandscount).ok() } pub unsafe fn UpdateCommands(&self, commands: &[D2D1_SVG_PATH_COMMAND], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(commands.as_ptr()), commands.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).UpdateCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(commands.as_ptr()), commands.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetCommands(&self, commands: &mut [D2D1_SVG_PATH_COMMAND], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(commands.as_ptr()), commands.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).GetCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(commands.as_ptr()), commands.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetCommandsCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetCommandsCount)(windows_core::Interface::as_raw(self)) @@ -12970,7 +12928,7 @@ impl ID2D1SvgPathData { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreatePathGeometry(&self, fillmode: Common::D2D1_FILL_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePathGeometry)(windows_core::Interface::as_raw(self), core::mem::transmute(fillmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePathGeometry)(windows_core::Interface::as_raw(self), fillmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -13079,15 +13037,15 @@ impl core::ops::Deref for ID2D1SvgPointCollection { windows_core::imp::interface_hierarchy!(ID2D1SvgPointCollection, windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgPointCollection { pub unsafe fn RemovePointsAtEnd(&self, pointscount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemovePointsAtEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pointscount)).ok() + (windows_core::Interface::vtable(self).RemovePointsAtEnd)(windows_core::Interface::as_raw(self), pointscount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn UpdatePoints(&self, points: &[Common::D2D_POINT_2F], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdatePoints)(windows_core::Interface::as_raw(self), core::mem::transmute(points.as_ptr()), points.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).UpdatePoints)(windows_core::Interface::as_raw(self), core::mem::transmute(points.as_ptr()), points.len().try_into().unwrap(), startindex).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetPoints(&self, points: &mut [Common::D2D_POINT_2F], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(points.as_ptr()), points.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).GetPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(points.as_ptr()), points.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetPointsCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetPointsCount)(windows_core::Interface::as_raw(self)) @@ -13161,19 +13119,19 @@ impl core::ops::Deref for ID2D1SvgStrokeDashArray { windows_core::imp::interface_hierarchy!(ID2D1SvgStrokeDashArray, windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgStrokeDashArray { pub unsafe fn RemoveDashesAtEnd(&self, dashescount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveDashesAtEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(dashescount)).ok() + (windows_core::Interface::vtable(self).RemoveDashesAtEnd)(windows_core::Interface::as_raw(self), dashescount).ok() } pub unsafe fn UpdateDashes(&self, dashes: &[D2D1_SVG_LENGTH], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateDashes)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).UpdateDashes)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), startindex).ok() } pub unsafe fn UpdateDashes2(&self, dashes: &[f32], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateDashes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).UpdateDashes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetDashes(&self, dashes: &mut [D2D1_SVG_LENGTH], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDashes)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).GetDashes)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetDashes2(&self, dashes: &mut [f32], startindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDashes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), core::mem::transmute(startindex)).ok() + (windows_core::Interface::vtable(self).GetDashes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap(), startindex).ok() } pub unsafe fn GetDashesCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetDashesCount)(windows_core::Interface::as_raw(self)) @@ -13298,14 +13256,14 @@ impl core::ops::Deref for ID2D1Transform { windows_core::imp::interface_hierarchy!(ID2D1Transform, windows_core::IUnknown, ID2D1TransformNode); impl ID2D1Transform { pub unsafe fn MapOutputRectToInputRects(&self, outputrect: *const super::super::Foundation::RECT, inputrects: &mut [super::super::Foundation::RECT]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapOutputRectToInputRects)(windows_core::Interface::as_raw(self), core::mem::transmute(outputrect), core::mem::transmute(inputrects.as_ptr()), inputrects.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).MapOutputRectToInputRects)(windows_core::Interface::as_raw(self), outputrect, core::mem::transmute(inputrects.as_ptr()), inputrects.len().try_into().unwrap()).ok() } pub unsafe fn MapInputRectsToOutputRect(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).MapInputRectsToOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(inputrects), core::mem::transmute(inputopaquesubrects), core::mem::transmute(inputrectcount), core::mem::transmute(outputrect), core::mem::transmute(outputopaquesubrect)).ok() + (windows_core::Interface::vtable(self).MapInputRectsToOutputRect)(windows_core::Interface::as_raw(self), inputrects, inputopaquesubrects, inputrectcount, core::mem::transmute(outputrect), core::mem::transmute(outputopaquesubrect)).ok() } pub unsafe fn MapInvalidRect(&self, inputindex: u32, invalidinputrect: super::super::Foundation::RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MapInvalidRect)(windows_core::Interface::as_raw(self), core::mem::transmute(inputindex), core::mem::transmute(invalidinputrect), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapInvalidRect)(windows_core::Interface::as_raw(self), inputindex, core::mem::transmute(invalidinputrect), &mut result__).map(|| result__) } } #[repr(C)] @@ -13389,19 +13347,19 @@ impl ID2D1TransformGraph { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectNode)(windows_core::Interface::as_raw(self), fromnode.param().abi(), tonode.param().abi(), core::mem::transmute(tonodeinputindex)).ok() + (windows_core::Interface::vtable(self).ConnectNode)(windows_core::Interface::as_raw(self), fromnode.param().abi(), tonode.param().abi(), tonodeinputindex).ok() } pub unsafe fn ConnectToEffectInput(&self, toeffectinputindex: u32, node: P1, tonodeinputindex: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectToEffectInput)(windows_core::Interface::as_raw(self), core::mem::transmute(toeffectinputindex), node.param().abi(), core::mem::transmute(tonodeinputindex)).ok() + (windows_core::Interface::vtable(self).ConnectToEffectInput)(windows_core::Interface::as_raw(self), toeffectinputindex, node.param().abi(), tonodeinputindex).ok() } pub unsafe fn Clear(&self) { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPassthroughGraph(&self, effectinputindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPassthroughGraph)(windows_core::Interface::as_raw(self), core::mem::transmute(effectinputindex)).ok() + (windows_core::Interface::vtable(self).SetPassthroughGraph)(windows_core::Interface::as_raw(self), effectinputindex).ok() } } #[repr(C)] @@ -13627,7 +13585,7 @@ windows_core::imp::define_interface!(ID2D1VertexBuffer, ID2D1VertexBuffer_Vtbl, windows_core::imp::interface_hierarchy!(ID2D1VertexBuffer, windows_core::IUnknown); impl ID2D1VertexBuffer { pub unsafe fn Map(&self, data: *mut *mut u8, buffersize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(data), core::mem::transmute(buffersize)).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(data), buffersize).ok() } pub unsafe fn Unmap(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs index e910e3b6a8..2cb087d03d 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs @@ -5,7 +5,7 @@ where { windows_targets::link!("dxcompiler.dll" "system" fn DxcCreateInstance(rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - DxcCreateInstance(core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DxcCreateInstance(rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -16,7 +16,7 @@ where { windows_targets::link!("dxcompiler.dll" "system" fn DxcCreateInstance2(pmalloc : * 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 mut result__ = core::ptr::null_mut(); - DxcCreateInstance2(pmalloc.param().abi(), core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DxcCreateInstance2(pmalloc.param().abi(), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub const CLSID_DxcAssembler: windows_core::GUID = windows_core::GUID::from_u128(0xd728db68_f903_4f80_94cd_dccf76ec7151); pub const CLSID_DxcCompiler: windows_core::GUID = windows_core::GUID::from_u128(0x73e22d93_e6ce_47f3_b5bf_f0664f39c1b0); @@ -502,14 +502,14 @@ impl IDxcCompiler3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).Compile)(windows_core::Interface::as_raw(self), core::mem::transmute(psource), core::mem::transmute(parguments.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), parguments.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pincludehandler.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Compile)(windows_core::Interface::as_raw(self), psource, core::mem::transmute(parguments.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), parguments.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pincludehandler.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Disassemble(&self, pobject: *const DxcBuffer) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(pobject), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), pobject, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -627,10 +627,10 @@ impl IDxcContainerBuilder { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPart)(windows_core::Interface::as_raw(self), core::mem::transmute(fourcc), psource.param().abi()).ok() + (windows_core::Interface::vtable(self).AddPart)(windows_core::Interface::as_raw(self), fourcc, psource.param().abi()).ok() } pub unsafe fn RemovePart(&self, fourcc: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemovePart)(windows_core::Interface::as_raw(self), core::mem::transmute(fourcc)).ok() + (windows_core::Interface::vtable(self).RemovePart)(windows_core::Interface::as_raw(self), fourcc).ok() } pub unsafe fn SerializeContainer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -703,18 +703,18 @@ impl IDxcContainerReflection { } pub unsafe fn GetPartKind(&self, idx: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartKind)(windows_core::Interface::as_raw(self), core::mem::transmute(idx), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPartKind)(windows_core::Interface::as_raw(self), idx, &mut result__).map(|| result__) } pub unsafe fn GetPartContent(&self, idx: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartContent)(windows_core::Interface::as_raw(self), core::mem::transmute(idx), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPartContent)(windows_core::Interface::as_raw(self), idx, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFirstPartKind(&self, kind: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstPartKind)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindFirstPartKind)(windows_core::Interface::as_raw(self), kind, &mut result__).map(|| result__) } pub unsafe fn GetPartReflection(&self, idx: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPartReflection)(windows_core::Interface::as_raw(self), core::mem::transmute(idx), core::mem::transmute(iid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetPartReflection)(windows_core::Interface::as_raw(self), idx, iid, core::mem::transmute(ppvobject)).ok() } } #[repr(C)] @@ -810,7 +810,7 @@ impl IDxcExtraOutputs { where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &T::IID, result__ as *mut _ as *mut _, core::mem::transmute(ppoutputtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoutputname.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), uindex, &T::IID, result__ as *mut _ as *mut _, core::mem::transmute(ppoutputtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoutputname.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -897,7 +897,7 @@ impl IDxcLibrary { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobFromBlob)(windows_core::Interface::as_raw(self), pblob.param().abi(), core::mem::transmute(offset), core::mem::transmute(length), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobFromBlob)(windows_core::Interface::as_raw(self), pblob.param().abi(), offset, length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlobFromFile(&self, pfilename: P0, codepage: Option<*const DXC_CP>) -> windows_core::Result where @@ -908,11 +908,11 @@ impl IDxcLibrary { } pub unsafe fn CreateBlobWithEncodingFromPinned(&self, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobWithEncodingFromPinned)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext), core::mem::transmute(size), core::mem::transmute(codepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobWithEncodingFromPinned)(windows_core::Interface::as_raw(self), ptext, size, codepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlobWithEncodingOnHeapCopy(&self, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobWithEncodingOnHeapCopy)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext), core::mem::transmute(size), core::mem::transmute(codepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobWithEncodingOnHeapCopy)(windows_core::Interface::as_raw(self), ptext, size, codepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBlobWithEncodingOnMalloc(&self, ptext: *const core::ffi::c_void, pimalloc: P1, size: u32, codepage: DXC_CP) -> windows_core::Result @@ -920,7 +920,7 @@ impl IDxcLibrary { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobWithEncodingOnMalloc)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext), pimalloc.param().abi(), core::mem::transmute(size), core::mem::transmute(codepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobWithEncodingOnMalloc)(windows_core::Interface::as_raw(self), ptext, pimalloc.param().abi(), size, codepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateIncludeHandler(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1239,7 +1239,7 @@ impl IDxcOptimizer { } pub unsafe fn GetAvailablePass(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAvailablePass)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAvailablePass)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RunOptimizer(&self, pblob: P0, ppoptions: &[windows_core::PCWSTR], poutputmodule: *mut Option, ppoutputtext: Option<*mut Option>) -> windows_core::Result<()> where @@ -1315,11 +1315,11 @@ impl IDxcOptimizerPass { } pub unsafe fn GetOptionArgName(&self, argindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptionArgName)(windows_core::Interface::as_raw(self), core::mem::transmute(argindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOptionArgName)(windows_core::Interface::as_raw(self), argindex, &mut result__).map(|| result__) } pub unsafe fn GetOptionArgDescription(&self, argindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptionArgDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(argindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOptionArgDescription)(windows_core::Interface::as_raw(self), argindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -1419,11 +1419,11 @@ impl IDxcPdbUtils { } pub unsafe fn GetSource(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSource)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSource)(windows_core::Interface::as_raw(self), uindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSourceName(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceName)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSourceName)(windows_core::Interface::as_raw(self), uindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetFlagCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1431,7 +1431,7 @@ impl IDxcPdbUtils { } pub unsafe fn GetFlag(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFlag)(windows_core::Interface::as_raw(self), uindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetArgCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1439,14 +1439,14 @@ impl IDxcPdbUtils { } pub unsafe fn GetArg(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetArg)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetArg)(windows_core::Interface::as_raw(self), uindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetArgPairCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetArgPairCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetArgPair(&self, uindex: u32, pname: *mut windows_core::BSTR, pvalue: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetArgPair)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), core::mem::transmute(pname), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetArgPair)(windows_core::Interface::as_raw(self), uindex, core::mem::transmute(pname), core::mem::transmute(pvalue)).ok() } pub unsafe fn GetDefineCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1454,7 +1454,7 @@ impl IDxcPdbUtils { } pub unsafe fn GetDefine(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefine)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDefine)(windows_core::Interface::as_raw(self), uindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetTargetProfile(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1498,7 +1498,7 @@ impl IDxcPdbUtils { (windows_core::Interface::vtable(self).CompileForFullPDB)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OverrideArgs(&self, pargpairs: *const DxcArgPair, unumargpairs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OverrideArgs)(windows_core::Interface::as_raw(self), core::mem::transmute(pargpairs), core::mem::transmute(unumargpairs)).ok() + (windows_core::Interface::vtable(self).OverrideArgs)(windows_core::Interface::as_raw(self), pargpairs, unumargpairs).ok() } pub unsafe fn OverrideRootSignature(&self, prootsignature: P0) -> windows_core::Result<()> where @@ -1810,19 +1810,19 @@ impl core::ops::Deref for IDxcResult { windows_core::imp::interface_hierarchy!(IDxcResult, windows_core::IUnknown, IDxcOperationResult); impl IDxcResult { pub unsafe fn HasOutput(&self, dxcoutkind: DXC_OUT_KIND) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).HasOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dxcoutkind)) + (windows_core::Interface::vtable(self).HasOutput)(windows_core::Interface::as_raw(self), dxcoutkind) } pub unsafe fn GetOutput(&self, dxcoutkind: DXC_OUT_KIND, ppoutputname: *mut Option, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dxcoutkind), &T::IID, result__ as *mut _ as *mut _, core::mem::transmute(ppoutputname)).ok() + (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), dxcoutkind, &T::IID, result__ as *mut _ as *mut _, core::mem::transmute(ppoutputname)).ok() } pub unsafe fn GetNumOutputs(&self) -> u32 { (windows_core::Interface::vtable(self).GetNumOutputs)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetOutputByIndex(&self, index: u32) -> DXC_OUT_KIND { - (windows_core::Interface::vtable(self).GetOutputByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetOutputByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn PrimaryOutput(&self) -> DXC_OUT_KIND { (windows_core::Interface::vtable(self).PrimaryOutput)(windows_core::Interface::as_raw(self)) @@ -1888,11 +1888,11 @@ impl IDxcUtils { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobFromBlob)(windows_core::Interface::as_raw(self), pblob.param().abi(), core::mem::transmute(offset), core::mem::transmute(length), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobFromBlob)(windows_core::Interface::as_raw(self), pblob.param().abi(), offset, length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlobFromPinned(&self, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobFromPinned)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(size), core::mem::transmute(codepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobFromPinned)(windows_core::Interface::as_raw(self), pdata, size, codepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MoveToBlob(&self, pdata: *const core::ffi::c_void, pimalloc: P1, size: u32, codepage: DXC_CP) -> windows_core::Result @@ -1900,11 +1900,11 @@ impl IDxcUtils { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveToBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), pimalloc.param().abi(), core::mem::transmute(size), core::mem::transmute(codepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MoveToBlob)(windows_core::Interface::as_raw(self), pdata, pimalloc.param().abi(), size, codepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlob(&self, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(size), core::mem::transmute(codepage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlob)(windows_core::Interface::as_raw(self), pdata, size, codepage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadFile(&self, pfilename: P0, pcodepage: Option<*const DXC_CP>) -> windows_core::Result where @@ -1940,10 +1940,10 @@ impl IDxcUtils { (windows_core::Interface::vtable(self).GetBlobAsUtf16)(windows_core::Interface::as_raw(self), pblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDxilContainerPart(&self, pshader: *const DxcBuffer, dxcpart: u32, pppartdata: *mut *mut core::ffi::c_void, ppartsizeinbytes: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDxilContainerPart)(windows_core::Interface::as_raw(self), core::mem::transmute(pshader), core::mem::transmute(dxcpart), core::mem::transmute(pppartdata), core::mem::transmute(ppartsizeinbytes)).ok() + (windows_core::Interface::vtable(self).GetDxilContainerPart)(windows_core::Interface::as_raw(self), pshader, dxcpart, core::mem::transmute(pppartdata), core::mem::transmute(ppartsizeinbytes)).ok() } pub unsafe fn CreateReflection(&self, pdata: *const DxcBuffer, iid: *const windows_core::GUID, ppvreflection: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateReflection)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(iid), core::mem::transmute(ppvreflection)).ok() + (windows_core::Interface::vtable(self).CreateReflection)(windows_core::Interface::as_raw(self), pdata, iid, core::mem::transmute(ppvreflection)).ok() } pub unsafe fn BuildArguments(&self, psourcename: P0, pentrypoint: P1, ptargetprofile: P2, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine]) -> windows_core::Result where @@ -2146,7 +2146,7 @@ impl IDxcValidator { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), pshader.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), pshader.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2190,7 +2190,7 @@ impl IDxcValidator2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ValidateWithDebug)(windows_core::Interface::as_raw(self), pshader.param().abi(), core::mem::transmute(flags), core::mem::transmute(poptdebugbitcode.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ValidateWithDebug)(windows_core::Interface::as_raw(self), pshader.param().abi(), flags, core::mem::transmute(poptdebugbitcode.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs index 21edb6f035..b06852c175 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs @@ -7,7 +7,7 @@ where P6: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DCompile(psrcdata : *const core::ffi::c_void, srcdatasize : usize, psourcename : windows_core::PCSTR, pdefines : *const super:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, pentrypoint : windows_core::PCSTR, ptarget : windows_core::PCSTR, flags1 : u32, flags2 : u32, ppcode : *mut * mut core::ffi::c_void, pperrormsgs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DCompile(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), core::mem::transmute(flags1), core::mem::transmute(flags2), core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() + D3DCompile(psrcdata, srcdatasize, psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), flags1, flags2, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3DCompile2(psrcdata: *const core::ffi::c_void, srcdatasize: usize, psourcename: P2, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P4, pentrypoint: P5, ptarget: P6, flags1: u32, flags2: u32, secondarydataflags: u32, psecondarydata: Option<*const core::ffi::c_void>, secondarydatasize: usize, ppcode: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> @@ -18,23 +18,7 @@ where P6: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DCompile2(psrcdata : *const core::ffi::c_void, srcdatasize : usize, psourcename : windows_core::PCSTR, pdefines : *const super:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, pentrypoint : windows_core::PCSTR, ptarget : windows_core::PCSTR, flags1 : u32, flags2 : u32, secondarydataflags : u32, psecondarydata : *const core::ffi::c_void, secondarydatasize : usize, ppcode : *mut * mut core::ffi::c_void, pperrormsgs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DCompile2( - core::mem::transmute(psrcdata), - core::mem::transmute(srcdatasize), - psourcename.param().abi(), - core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), - pinclude.param().abi(), - pentrypoint.param().abi(), - ptarget.param().abi(), - core::mem::transmute(flags1), - core::mem::transmute(flags2), - core::mem::transmute(secondarydataflags), - core::mem::transmute(psecondarydata.unwrap_or(core::mem::zeroed())), - core::mem::transmute(secondarydatasize), - core::mem::transmute(ppcode), - core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed())), - ) - .ok() + D3DCompile2(psrcdata, srcdatasize, psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), flags1, flags2, secondarydataflags, core::mem::transmute(psecondarydata.unwrap_or(core::mem::zeroed())), secondarydatasize, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3DCompileFromFile(pfilename: P0, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P2, pentrypoint: P3, ptarget: P4, flags1: u32, flags2: u32, ppcode: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> @@ -45,26 +29,26 @@ where P4: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DCompileFromFile(pfilename : windows_core::PCWSTR, pdefines : *const super:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, pentrypoint : windows_core::PCSTR, ptarget : windows_core::PCSTR, flags1 : u32, flags2 : u32, ppcode : *mut * mut core::ffi::c_void, pperrormsgs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DCompileFromFile(pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), core::mem::transmute(flags1), core::mem::transmute(flags2), core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() + D3DCompileFromFile(pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), flags1, flags2, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3DCompressShaders(pshaderdata: &[D3D_SHADER_DATA], uflags: u32) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DCompressShaders(unumshaders : u32, pshaderdata : *const D3D_SHADER_DATA, uflags : u32, ppcompresseddata : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DCompressShaders(pshaderdata.len().try_into().unwrap(), core::mem::transmute(pshaderdata.as_ptr()), core::mem::transmute(uflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DCompressShaders(pshaderdata.len().try_into().unwrap(), core::mem::transmute(pshaderdata.as_ptr()), uflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DCreateBlob(size: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DCreateBlob(size : usize, ppblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DCreateBlob(core::mem::transmute(size), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DCreateBlob(size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D11")] #[inline] pub unsafe fn D3DCreateFunctionLinkingGraph(uflags: u32) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DCreateFunctionLinkingGraph(uflags : u32, ppfunctionlinkinggraph : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DCreateFunctionLinkingGraph(core::mem::transmute(uflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DCreateFunctionLinkingGraph(uflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D11")] #[inline] @@ -76,7 +60,7 @@ pub unsafe fn D3DCreateLinker() -> windows_core::Result, uflags: u32, ppshaders: *mut Option, ptotalshaders: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DDecompressShaders(psrcdata : *const core::ffi::c_void, srcdatasize : usize, unumshaders : u32, ustartindex : u32, pindices : *const u32, uflags : u32, ppshaders : *mut * mut core::ffi::c_void, ptotalshaders : *mut u32) -> windows_core::HRESULT); - D3DDecompressShaders(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(unumshaders), core::mem::transmute(ustartindex), core::mem::transmute(pindices.unwrap_or(core::mem::zeroed())), core::mem::transmute(uflags), core::mem::transmute(ppshaders), core::mem::transmute(ptotalshaders.unwrap_or(core::mem::zeroed()))).ok() + D3DDecompressShaders(psrcdata, srcdatasize, unumshaders, ustartindex, core::mem::transmute(pindices.unwrap_or(core::mem::zeroed())), uflags, core::mem::transmute(ppshaders), core::mem::transmute(ptotalshaders.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3DDisassemble(psrcdata: *const core::ffi::c_void, srcdatasize: usize, flags: u32, szcomments: P3) -> windows_core::Result @@ -85,7 +69,7 @@ where { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DDisassemble(psrcdata : *const core::ffi::c_void, srcdatasize : usize, flags : u32, szcomments : windows_core::PCSTR, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DDisassemble(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(flags), szcomments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DDisassemble(psrcdata, srcdatasize, flags, szcomments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D10")] #[inline] @@ -95,7 +79,7 @@ where { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DDisassemble10Effect(peffect : * mut core::ffi::c_void, flags : u32, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DDisassemble10Effect(peffect.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DDisassemble10Effect(peffect.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DDisassembleRegion(psrcdata: *const core::ffi::c_void, srcdatasize: usize, flags: u32, szcomments: P3, startbyteoffset: usize, numinsts: usize, pfinishbyteoffset: Option<*mut usize>, ppdisassembly: *mut Option) -> windows_core::Result<()> @@ -103,49 +87,49 @@ where P3: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DDisassembleRegion(psrcdata : *const core::ffi::c_void, srcdatasize : usize, flags : u32, szcomments : windows_core::PCSTR, startbyteoffset : usize, numinsts : usize, pfinishbyteoffset : *mut usize, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DDisassembleRegion(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(flags), szcomments.param().abi(), core::mem::transmute(startbyteoffset), core::mem::transmute(numinsts), core::mem::transmute(pfinishbyteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdisassembly)).ok() + D3DDisassembleRegion(psrcdata, srcdatasize, flags, szcomments.param().abi(), startbyteoffset, numinsts, core::mem::transmute(pfinishbyteoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdisassembly)).ok() } #[inline] pub unsafe fn D3DGetBlobPart(psrcdata: *const core::ffi::c_void, srcdatasize: usize, part: D3D_BLOB_PART, flags: u32) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DGetBlobPart(psrcdata : *const core::ffi::c_void, srcdatasize : usize, part : D3D_BLOB_PART, flags : u32, pppart : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DGetBlobPart(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(part), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DGetBlobPart(psrcdata, srcdatasize, part, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DGetDebugInfo(psrcdata: *const core::ffi::c_void, srcdatasize: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DGetDebugInfo(psrcdata : *const core::ffi::c_void, srcdatasize : usize, ppdebuginfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DGetDebugInfo(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DGetDebugInfo(psrcdata, srcdatasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DGetInputAndOutputSignatureBlob(psrcdata: *const core::ffi::c_void, srcdatasize: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DGetInputAndOutputSignatureBlob(psrcdata : *const core::ffi::c_void, srcdatasize : usize, ppsignatureblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DGetInputAndOutputSignatureBlob(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DGetInputAndOutputSignatureBlob(psrcdata, srcdatasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DGetInputSignatureBlob(psrcdata: *const core::ffi::c_void, srcdatasize: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DGetInputSignatureBlob(psrcdata : *const core::ffi::c_void, srcdatasize : usize, ppsignatureblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DGetInputSignatureBlob(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DGetInputSignatureBlob(psrcdata, srcdatasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DGetOutputSignatureBlob(psrcdata: *const core::ffi::c_void, srcdatasize: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DGetOutputSignatureBlob(psrcdata : *const core::ffi::c_void, srcdatasize : usize, ppsignatureblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DGetOutputSignatureBlob(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DGetOutputSignatureBlob(psrcdata, srcdatasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DGetTraceInstructionOffsets(psrcdata: *const core::ffi::c_void, srcdatasize: usize, flags: u32, startinstindex: usize, poffsets: Option<&mut [usize]>, ptotalinsts: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DGetTraceInstructionOffsets(psrcdata : *const core::ffi::c_void, srcdatasize : usize, flags : u32, startinstindex : usize, numinsts : usize, poffsets : *mut usize, ptotalinsts : *mut usize) -> windows_core::HRESULT); - D3DGetTraceInstructionOffsets(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(flags), core::mem::transmute(startinstindex), poffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ptotalinsts.unwrap_or(core::mem::zeroed()))).ok() + D3DGetTraceInstructionOffsets(psrcdata, srcdatasize, flags, startinstindex, poffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ptotalinsts.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D11")] #[inline] pub unsafe fn D3DLoadModule(psrcdata: *const core::ffi::c_void, cbsrcdatasize: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DLoadModule(psrcdata : *const core::ffi::c_void, cbsrcdatasize : usize, ppmodule : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DLoadModule(core::mem::transmute(psrcdata), core::mem::transmute(cbsrcdatasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DLoadModule(psrcdata, cbsrcdatasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DPreprocess(psrcdata: *const core::ffi::c_void, srcdatasize: usize, psourcename: P2, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P4, ppcodetext: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> @@ -154,7 +138,7 @@ where P4: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DPreprocess(psrcdata : *const core::ffi::c_void, srcdatasize : usize, psourcename : windows_core::PCSTR, pdefines : *const super:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, ppcodetext : *mut * mut core::ffi::c_void, pperrormsgs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DPreprocess(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), core::mem::transmute(ppcodetext), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() + D3DPreprocess(psrcdata, srcdatasize, psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), core::mem::transmute(ppcodetext), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3DReadFileToBlob(pfilename: P0) -> windows_core::Result @@ -168,24 +152,24 @@ where #[inline] pub unsafe fn D3DReflect(psrcdata: *const core::ffi::c_void, srcdatasize: usize, pinterface: *const windows_core::GUID, ppreflector: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DReflect(psrcdata : *const core::ffi::c_void, srcdatasize : usize, pinterface : *const windows_core::GUID, ppreflector : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - D3DReflect(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(pinterface), core::mem::transmute(ppreflector)).ok() + D3DReflect(psrcdata, srcdatasize, pinterface, core::mem::transmute(ppreflector)).ok() } #[inline] pub unsafe fn D3DReflectLibrary(psrcdata: *const core::ffi::c_void, srcdatasize: usize, riid: *const windows_core::GUID, ppreflector: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DReflectLibrary(psrcdata : *const core::ffi::c_void, srcdatasize : usize, riid : *const windows_core::GUID, ppreflector : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - D3DReflectLibrary(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(riid), core::mem::transmute(ppreflector)).ok() + D3DReflectLibrary(psrcdata, srcdatasize, riid, core::mem::transmute(ppreflector)).ok() } #[inline] pub unsafe fn D3DSetBlobPart(psrcdata: *const core::ffi::c_void, srcdatasize: usize, part: D3D_BLOB_PART, flags: u32, ppart: *const core::ffi::c_void, partsize: usize) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DSetBlobPart(psrcdata : *const core::ffi::c_void, srcdatasize : usize, part : D3D_BLOB_PART, flags : u32, ppart : *const core::ffi::c_void, partsize : usize, ppnewshader : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DSetBlobPart(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), core::mem::transmute(part), core::mem::transmute(flags), core::mem::transmute(ppart), core::mem::transmute(partsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DSetBlobPart(psrcdata, srcdatasize, part, flags, ppart, partsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DStripShader(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, ustripflags: u32) -> windows_core::Result { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DStripShader(pshaderbytecode : *const core::ffi::c_void, bytecodelength : usize, ustripflags : u32, ppstrippedblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DStripShader(core::mem::transmute(pshaderbytecode), core::mem::transmute(bytecodelength), core::mem::transmute(ustripflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DStripShader(pshaderbytecode, bytecodelength, ustripflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DWriteBlobToFile(pblob: P0, pfilename: P1, boverwrite: bool) -> windows_core::Result<()> diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs index 639bd055da..d879820d9f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs @@ -799,10 +799,10 @@ windows_core::imp::interface_hierarchy!(ID3DDestructionNotifier, windows_core::I impl ID3DDestructionNotifier { pub unsafe fn RegisterDestructionCallback(&self, callbackfn: PFN_DESTRUCTION_CALLBACK, pdata: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDestructionCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(callbackfn), core::mem::transmute(pdata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterDestructionCallback)(windows_core::Interface::as_raw(self), callbackfn, pdata, &mut result__).map(|| result__) } pub unsafe fn UnregisterDestructionCallback(&self, callbackid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterDestructionCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(callbackid)).ok() + (windows_core::Interface::vtable(self).UnregisterDestructionCallback)(windows_core::Interface::as_raw(self), callbackid).ok() } } #[repr(C)] @@ -850,10 +850,10 @@ impl ID3DInclude { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(includetype), pfilename.param().abi(), core::mem::transmute(pparentdata), core::mem::transmute(ppdata), core::mem::transmute(pbytes)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), includetype, pfilename.param().abi(), pparentdata, core::mem::transmute(ppdata), core::mem::transmute(pbytes)).ok() } pub unsafe fn Close(&self, pdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), pdata).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs index 601694b22b..421854376d 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs @@ -6,7 +6,7 @@ where P4: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10CompileEffectFromMemory(pdata : *const core::ffi::c_void, datalength : usize, psrcfilename : windows_core::PCSTR, pdefines : *const super::Direct3D:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, hlslflags : u32, fxflags : u32, ppcompiledeffect : *mut * mut core::ffi::c_void, pperrors : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10CompileEffectFromMemory(core::mem::transmute(pdata), core::mem::transmute(datalength), psrcfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), core::mem::transmute(hlslflags), core::mem::transmute(fxflags), core::mem::transmute(ppcompiledeffect), core::mem::transmute(pperrors.unwrap_or(core::mem::zeroed()))).ok() + D3D10CompileEffectFromMemory(pdata, datalength, psrcfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), hlslflags, fxflags, core::mem::transmute(ppcompiledeffect), core::mem::transmute(pperrors.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] @@ -18,14 +18,14 @@ where P6: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10CompileShader(psrcdata : windows_core::PCSTR, srcdatasize : usize, pfilename : windows_core::PCSTR, pdefines : *const super::Direct3D:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, pfunctionname : windows_core::PCSTR, pprofile : windows_core::PCSTR, flags : u32, ppshader : *mut * mut core::ffi::c_void, pperrormsgs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10CompileShader(core::mem::transmute(psrcdata.as_ptr()), psrcdata.len().try_into().unwrap(), pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pfunctionname.param().abi(), pprofile.param().abi(), core::mem::transmute(flags), core::mem::transmute(ppshader), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() + D3D10CompileShader(core::mem::transmute(psrcdata.as_ptr()), psrcdata.len().try_into().unwrap(), pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(core::mem::zeroed())), pinclude.param().abi(), pfunctionname.param().abi(), pprofile.param().abi(), flags, core::mem::transmute(ppshader), core::mem::transmute(pperrormsgs.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D10CreateBlob(numbytes: usize) -> windows_core::Result { windows_targets::link!("d3d10.dll" "system" fn D3D10CreateBlob(numbytes : usize, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10CreateBlob(core::mem::transmute(numbytes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10CreateBlob(numbytes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] @@ -34,7 +34,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10CreateDevice(padapter : * mut core::ffi::c_void, drivertype : D3D10_DRIVER_TYPE, software : super::super::Foundation:: HMODULE, flags : u32, sdkversion : u32, ppdevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10CreateDevice(padapter.param().abi(), core::mem::transmute(drivertype), core::mem::transmute(software), core::mem::transmute(flags), core::mem::transmute(sdkversion), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() + D3D10CreateDevice(padapter.param().abi(), drivertype, software, flags, sdkversion, core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] @@ -43,7 +43,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3d10_1.dll" "system" fn D3D10CreateDevice1(padapter : * mut core::ffi::c_void, drivertype : D3D10_DRIVER_TYPE, software : super::super::Foundation:: HMODULE, flags : u32, hardwarelevel : D3D10_FEATURE_LEVEL1, sdkversion : u32, ppdevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10CreateDevice1(padapter.param().abi(), core::mem::transmute(drivertype), core::mem::transmute(software), core::mem::transmute(flags), core::mem::transmute(hardwarelevel), core::mem::transmute(sdkversion), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() + D3D10CreateDevice1(padapter.param().abi(), drivertype, software, flags, hardwarelevel, sdkversion, core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[inline] @@ -52,7 +52,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10CreateDeviceAndSwapChain(padapter : * mut core::ffi::c_void, drivertype : D3D10_DRIVER_TYPE, software : super::super::Foundation:: HMODULE, flags : u32, sdkversion : u32, pswapchaindesc : *const super::Dxgi:: DXGI_SWAP_CHAIN_DESC, ppswapchain : *mut * mut core::ffi::c_void, ppdevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10CreateDeviceAndSwapChain(padapter.param().abi(), core::mem::transmute(drivertype), core::mem::transmute(software), core::mem::transmute(flags), core::mem::transmute(sdkversion), core::mem::transmute(pswapchaindesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppswapchain.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() + D3D10CreateDeviceAndSwapChain(padapter.param().abi(), drivertype, software, flags, sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppswapchain.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[inline] @@ -61,7 +61,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3d10_1.dll" "system" fn D3D10CreateDeviceAndSwapChain1(padapter : * mut core::ffi::c_void, drivertype : D3D10_DRIVER_TYPE, software : super::super::Foundation:: HMODULE, flags : u32, hardwarelevel : D3D10_FEATURE_LEVEL1, sdkversion : u32, pswapchaindesc : *const super::Dxgi:: DXGI_SWAP_CHAIN_DESC, ppswapchain : *mut * mut core::ffi::c_void, ppdevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10CreateDeviceAndSwapChain1(padapter.param().abi(), core::mem::transmute(drivertype), core::mem::transmute(software), core::mem::transmute(flags), core::mem::transmute(hardwarelevel), core::mem::transmute(sdkversion), core::mem::transmute(pswapchaindesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppswapchain.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() + D3D10CreateDeviceAndSwapChain1(padapter.param().abi(), drivertype, software, flags, hardwarelevel, sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppswapchain.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3D10CreateEffectFromMemory(pdata: *const core::ffi::c_void, datalength: usize, fxflags: u32, pdevice: P3, peffectpool: P4) -> windows_core::Result @@ -71,7 +71,7 @@ where { windows_targets::link!("d3d10.dll" "system" fn D3D10CreateEffectFromMemory(pdata : *const core::ffi::c_void, datalength : usize, fxflags : u32, pdevice : * mut core::ffi::c_void, peffectpool : * mut core::ffi::c_void, ppeffect : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10CreateEffectFromMemory(core::mem::transmute(pdata), core::mem::transmute(datalength), core::mem::transmute(fxflags), pdevice.param().abi(), peffectpool.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10CreateEffectFromMemory(pdata, datalength, fxflags, pdevice.param().abi(), peffectpool.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10CreateEffectPoolFromMemory(pdata: *const core::ffi::c_void, datalength: usize, fxflags: u32, pdevice: P3) -> windows_core::Result @@ -80,7 +80,7 @@ where { windows_targets::link!("d3d10.dll" "system" fn D3D10CreateEffectPoolFromMemory(pdata : *const core::ffi::c_void, datalength : usize, fxflags : u32, pdevice : * mut core::ffi::c_void, ppeffectpool : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10CreateEffectPoolFromMemory(core::mem::transmute(pdata), core::mem::transmute(datalength), core::mem::transmute(fxflags), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10CreateEffectPoolFromMemory(pdata, datalength, fxflags, pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10CreateStateBlock(pdevice: P0, pstateblockmask: *const D3D10_STATE_BLOCK_MASK) -> windows_core::Result @@ -89,7 +89,7 @@ where { windows_targets::link!("d3d10.dll" "system" fn D3D10CreateStateBlock(pdevice : * mut core::ffi::c_void, pstateblockmask : *const D3D10_STATE_BLOCK_MASK, ppstateblock : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10CreateStateBlock(pdevice.param().abi(), core::mem::transmute(pstateblockmask), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10CreateStateBlock(pdevice.param().abi(), pstateblockmask, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] @@ -109,7 +109,7 @@ where { windows_targets::link!("d3d10.dll" "system" fn D3D10DisassembleShader(pshader : *const core::ffi::c_void, bytecodelength : usize, enablecolorcode : super::super::Foundation:: BOOL, pcomments : windows_core::PCSTR, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10DisassembleShader(core::mem::transmute(pshader), core::mem::transmute(bytecodelength), enablecolorcode.into(), pcomments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10DisassembleShader(pshader, bytecodelength, enablecolorcode.into(), pcomments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10GetGeometryShaderProfile(pdevice: P0) -> windows_core::PCSTR @@ -124,21 +124,21 @@ where pub unsafe fn D3D10GetInputAndOutputSignatureBlob(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize) -> windows_core::Result { windows_targets::link!("d3d10.dll" "system" fn D3D10GetInputAndOutputSignatureBlob(pshaderbytecode : *const core::ffi::c_void, bytecodelength : usize, ppsignatureblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10GetInputAndOutputSignatureBlob(core::mem::transmute(pshaderbytecode), core::mem::transmute(bytecodelength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10GetInputAndOutputSignatureBlob(pshaderbytecode, bytecodelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D10GetInputSignatureBlob(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize) -> windows_core::Result { windows_targets::link!("d3d10.dll" "system" fn D3D10GetInputSignatureBlob(pshaderbytecode : *const core::ffi::c_void, bytecodelength : usize, ppsignatureblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10GetInputSignatureBlob(core::mem::transmute(pshaderbytecode), core::mem::transmute(bytecodelength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10GetInputSignatureBlob(pshaderbytecode, bytecodelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D10GetOutputSignatureBlob(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize) -> windows_core::Result { windows_targets::link!("d3d10.dll" "system" fn D3D10GetOutputSignatureBlob(pshaderbytecode : *const core::ffi::c_void, bytecodelength : usize, ppsignatureblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10GetOutputSignatureBlob(core::mem::transmute(pshaderbytecode), core::mem::transmute(bytecodelength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10GetOutputSignatureBlob(pshaderbytecode, bytecodelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10GetPixelShaderProfile(pdevice: P0) -> windows_core::PCSTR @@ -153,7 +153,7 @@ where pub unsafe fn D3D10GetShaderDebugInfo(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize) -> windows_core::Result { windows_targets::link!("d3d10.dll" "system" fn D3D10GetShaderDebugInfo(pshaderbytecode : *const core::ffi::c_void, bytecodelength : usize, ppdebuginfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10GetShaderDebugInfo(core::mem::transmute(pshaderbytecode), core::mem::transmute(bytecodelength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10GetShaderDebugInfo(pshaderbytecode, bytecodelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10GetVertexShaderProfile(pdevice: P0) -> windows_core::PCSTR @@ -177,12 +177,12 @@ where pub unsafe fn D3D10ReflectShader(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize) -> windows_core::Result { windows_targets::link!("d3d10.dll" "system" fn D3D10ReflectShader(pshaderbytecode : *const core::ffi::c_void, bytecodelength : usize, ppreflector : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3D10ReflectShader(core::mem::transmute(pshaderbytecode), core::mem::transmute(bytecodelength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10ReflectShader(pshaderbytecode, bytecodelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10StateBlockMaskDifference(pa: *const D3D10_STATE_BLOCK_MASK, pb: *const D3D10_STATE_BLOCK_MASK, presult: *mut D3D10_STATE_BLOCK_MASK) -> windows_core::Result<()> { windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskDifference(pa : *const D3D10_STATE_BLOCK_MASK, pb : *const D3D10_STATE_BLOCK_MASK, presult : *mut D3D10_STATE_BLOCK_MASK) -> windows_core::HRESULT); - D3D10StateBlockMaskDifference(core::mem::transmute(pa), core::mem::transmute(pb), core::mem::transmute(presult)).ok() + D3D10StateBlockMaskDifference(pa, pb, core::mem::transmute(presult)).ok() } #[inline] pub unsafe fn D3D10StateBlockMaskDisableAll(pmask: *mut D3D10_STATE_BLOCK_MASK) -> windows_core::Result<()> { @@ -192,7 +192,7 @@ pub unsafe fn D3D10StateBlockMaskDisableAll(pmask: *mut D3D10_STATE_BLOCK_MASK) #[inline] pub unsafe fn D3D10StateBlockMaskDisableCapture(pmask: *mut D3D10_STATE_BLOCK_MASK, statetype: D3D10_DEVICE_STATE_TYPES, rangestart: u32, rangelength: u32) -> windows_core::Result<()> { windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskDisableCapture(pmask : *mut D3D10_STATE_BLOCK_MASK, statetype : D3D10_DEVICE_STATE_TYPES, rangestart : u32, rangelength : u32) -> windows_core::HRESULT); - D3D10StateBlockMaskDisableCapture(core::mem::transmute(pmask), core::mem::transmute(statetype), core::mem::transmute(rangestart), core::mem::transmute(rangelength)).ok() + D3D10StateBlockMaskDisableCapture(core::mem::transmute(pmask), statetype, rangestart, rangelength).ok() } #[inline] pub unsafe fn D3D10StateBlockMaskEnableAll(pmask: *mut D3D10_STATE_BLOCK_MASK) -> windows_core::Result<()> { @@ -202,22 +202,22 @@ pub unsafe fn D3D10StateBlockMaskEnableAll(pmask: *mut D3D10_STATE_BLOCK_MASK) - #[inline] pub unsafe fn D3D10StateBlockMaskEnableCapture(pmask: *mut D3D10_STATE_BLOCK_MASK, statetype: D3D10_DEVICE_STATE_TYPES, rangestart: u32, rangelength: u32) -> windows_core::Result<()> { windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskEnableCapture(pmask : *mut D3D10_STATE_BLOCK_MASK, statetype : D3D10_DEVICE_STATE_TYPES, rangestart : u32, rangelength : u32) -> windows_core::HRESULT); - D3D10StateBlockMaskEnableCapture(core::mem::transmute(pmask), core::mem::transmute(statetype), core::mem::transmute(rangestart), core::mem::transmute(rangelength)).ok() + D3D10StateBlockMaskEnableCapture(core::mem::transmute(pmask), statetype, rangestart, rangelength).ok() } #[inline] pub unsafe fn D3D10StateBlockMaskGetSetting(pmask: *const D3D10_STATE_BLOCK_MASK, statetype: D3D10_DEVICE_STATE_TYPES, entry: u32) -> super::super::Foundation::BOOL { windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskGetSetting(pmask : *const D3D10_STATE_BLOCK_MASK, statetype : D3D10_DEVICE_STATE_TYPES, entry : u32) -> super::super::Foundation:: BOOL); - D3D10StateBlockMaskGetSetting(core::mem::transmute(pmask), core::mem::transmute(statetype), core::mem::transmute(entry)) + D3D10StateBlockMaskGetSetting(pmask, statetype, entry) } #[inline] pub unsafe fn D3D10StateBlockMaskIntersect(pa: *const D3D10_STATE_BLOCK_MASK, pb: *const D3D10_STATE_BLOCK_MASK, presult: *mut D3D10_STATE_BLOCK_MASK) -> windows_core::Result<()> { windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskIntersect(pa : *const D3D10_STATE_BLOCK_MASK, pb : *const D3D10_STATE_BLOCK_MASK, presult : *mut D3D10_STATE_BLOCK_MASK) -> windows_core::HRESULT); - D3D10StateBlockMaskIntersect(core::mem::transmute(pa), core::mem::transmute(pb), core::mem::transmute(presult)).ok() + D3D10StateBlockMaskIntersect(pa, pb, core::mem::transmute(presult)).ok() } #[inline] pub unsafe fn D3D10StateBlockMaskUnion(pa: *const D3D10_STATE_BLOCK_MASK, pb: *const D3D10_STATE_BLOCK_MASK, presult: *mut D3D10_STATE_BLOCK_MASK) -> windows_core::Result<()> { windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskUnion(pa : *const D3D10_STATE_BLOCK_MASK, pb : *const D3D10_STATE_BLOCK_MASK, presult : *mut D3D10_STATE_BLOCK_MASK) -> windows_core::HRESULT); - D3D10StateBlockMaskUnion(core::mem::transmute(pa), core::mem::transmute(pb), core::mem::transmute(presult)).ok() + D3D10StateBlockMaskUnion(pa, pb, core::mem::transmute(presult)).ok() } pub const D3D10_16BIT_INDEX_STRIP_CUT_VALUE: u32 = 65535u32; pub const D3D10_1_DEFAULT_SAMPLE_MASK: u32 = 4294967295u32; @@ -2724,7 +2724,7 @@ impl ID3D10Asynchronous { (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetData(&self, pdata: Option<*mut core::ffi::c_void>, datasize: u32, getdataflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(datasize), core::mem::transmute(getdataflags)).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), datasize, getdataflags).ok() } pub unsafe fn GetDataSize(&self) -> u32 { (windows_core::Interface::vtable(self).GetDataSize)(windows_core::Interface::as_raw(self)) @@ -2859,7 +2859,7 @@ impl core::ops::Deref for ID3D10Buffer { windows_core::imp::interface_hierarchy!(ID3D10Buffer, windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); impl ID3D10Buffer { pub unsafe fn Map(&self, maptype: D3D10_MAP, mapflags: u32, ppdata: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(maptype), core::mem::transmute(mapflags), core::mem::transmute(ppdata)).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), maptype, mapflags, core::mem::transmute(ppdata)).ok() } pub unsafe fn Unmap(&self) { (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self)) @@ -2950,13 +2950,13 @@ windows_core::imp::define_interface!(ID3D10Debug, ID3D10Debug_Vtbl, 0x9b7e4e01_3 windows_core::imp::interface_hierarchy!(ID3D10Debug, windows_core::IUnknown); impl ID3D10Debug { pub unsafe fn SetFeatureMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetFeatureMask(&self) -> u32 { (windows_core::Interface::vtable(self).GetFeatureMask)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPresentPerRenderOpDelay(&self, milliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPresentPerRenderOpDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(milliseconds)).ok() + (windows_core::Interface::vtable(self).SetPresentPerRenderOpDelay)(windows_core::Interface::as_raw(self), milliseconds).ok() } pub unsafe fn GetPresentPerRenderOpDelay(&self) -> u32 { (windows_core::Interface::vtable(self).GetPresentPerRenderOpDelay)(windows_core::Interface::as_raw(self)) @@ -3147,10 +3147,10 @@ windows_core::imp::define_interface!(ID3D10Device, ID3D10Device_Vtbl, 0x9b7e4c0f windows_core::imp::interface_hierarchy!(ID3D10Device, windows_core::IUnknown); impl ID3D10Device { pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).VSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).PSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSSetShader(&self, ppixelshader: P0) where @@ -3159,7 +3159,7 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.param().abi()) } pub unsafe fn PSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).PSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSSetShader(&self, pvertexshader: P0) where @@ -3168,13 +3168,13 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.param().abi()) } pub unsafe fn DrawIndexed(&self, indexcount: u32, startindexlocation: u32, basevertexlocation: i32) { - (windows_core::Interface::vtable(self).DrawIndexed)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcount), core::mem::transmute(startindexlocation), core::mem::transmute(basevertexlocation)) + (windows_core::Interface::vtable(self).DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) } pub unsafe fn Draw(&self, vertexcount: u32, startvertexlocation: u32) { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexcount), core::mem::transmute(startvertexlocation)) + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), vertexcount, startvertexlocation) } pub unsafe fn PSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).PSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn IASetInputLayout(&self, pinputlayout: P0) where @@ -3183,23 +3183,23 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.param().abi()) } pub unsafe fn IASetVertexBuffers(&self, startslot: u32, numbuffers: u32, ppvertexbuffers: Option<*const Option>, pstrides: Option<*const u32>, poffsets: Option<*const u32>) { - (windows_core::Interface::vtable(self).IASetVertexBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn IASetIndexBuffer(&self, pindexbuffer: P0, format: super::Dxgi::Common::DXGI_FORMAT, offset: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.param().abi(), core::mem::transmute(format), core::mem::transmute(offset)) + (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.param().abi(), format, offset) } pub unsafe fn DrawIndexedInstanced(&self, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) { - (windows_core::Interface::vtable(self).DrawIndexedInstanced)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcountperinstance), core::mem::transmute(instancecount), core::mem::transmute(startindexlocation), core::mem::transmute(basevertexlocation), core::mem::transmute(startinstancelocation)) + (windows_core::Interface::vtable(self).DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) } pub unsafe fn DrawInstanced(&self, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) { - (windows_core::Interface::vtable(self).DrawInstanced)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexcountperinstance), core::mem::transmute(instancecount), core::mem::transmute(startvertexlocation), core::mem::transmute(startinstancelocation)) + (windows_core::Interface::vtable(self).DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) } pub unsafe fn GSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).GSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSSetShader(&self, pshader: P0) where @@ -3209,13 +3209,13 @@ impl ID3D10Device { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { - (windows_core::Interface::vtable(self).IASetPrimitiveTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(topology)) + (windows_core::Interface::vtable(self).IASetPrimitiveTopology)(windows_core::Interface::as_raw(self), topology) } pub unsafe fn VSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).VSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).VSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: bool) where @@ -3224,10 +3224,10 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.into()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).GSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).GSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P2) where @@ -3239,16 +3239,16 @@ impl ID3D10Device { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.param().abi(), core::mem::transmute(blendfactor.as_ptr()), core::mem::transmute(samplemask)) + (windows_core::Interface::vtable(self).OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.param().abi(), core::mem::transmute(blendfactor.as_ptr()), samplemask) } pub unsafe fn OMSetDepthStencilState(&self, pdepthstencilstate: P0, stencilref: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.param().abi(), core::mem::transmute(stencilref)) + (windows_core::Interface::vtable(self).OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.param().abi(), stencilref) } pub unsafe fn SOSetTargets(&self, numbuffers: u32, ppsotargets: Option<*const Option>, poffsets: Option<*const u32>) { - (windows_core::Interface::vtable(self).SOSetTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(numbuffers), core::mem::transmute(ppsotargets.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } pub unsafe fn DrawAuto(&self) { (windows_core::Interface::vtable(self).DrawAuto)(windows_core::Interface::as_raw(self)) @@ -3270,7 +3270,7 @@ impl ID3D10Device { P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(dstx), core::mem::transmute(dsty), core::mem::transmute(dstz), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where @@ -3283,7 +3283,7 @@ impl ID3D10Device { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrcdata), core::mem::transmute(srcrowpitch), core::mem::transmute(srcdepthpitch)) + (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ClearRenderTargetView(&self, prendertargetview: P0, colorrgba: &[f32; 4]) where @@ -3295,7 +3295,7 @@ impl ID3D10Device { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), core::mem::transmute(clearflags), core::mem::transmute(depth), core::mem::transmute(stencil)) + (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where @@ -3309,13 +3309,13 @@ impl ID3D10Device { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(format)) + (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } pub unsafe fn VSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).VSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).PSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSGetShader(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3323,7 +3323,7 @@ impl ID3D10Device { windows_core::Type::from_abi(result__) } pub unsafe fn PSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).PSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSGetShader(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3331,7 +3331,7 @@ impl ID3D10Device { windows_core::Type::from_abi(result__) } pub unsafe fn PSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).PSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn IAGetInputLayout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3339,14 +3339,14 @@ impl ID3D10Device { windows_core::Type::from_abi(result__) } pub unsafe fn IAGetVertexBuffers(&self, startslot: u32, numbuffers: u32, ppvertexbuffers: Option<*mut Option>, pstrides: Option<*mut u32>, poffsets: Option<*mut u32>) { - (windows_core::Interface::vtable(self).IAGetVertexBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).IAGetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn IAGetIndexBuffer(&self, pindexbuffer: Option<*mut Option>, format: Option<*mut super::Dxgi::Common::DXGI_FORMAT>, offset: Option<*mut u32>) { (windows_core::Interface::vtable(self).IAGetIndexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pindexbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(format.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).GSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSGetShader(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3360,19 +3360,19 @@ impl ID3D10Device { result__ } pub unsafe fn VSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).VSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).VSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GetPredication(&self, pppredicate: Option<*mut Option>, ppredicatevalue: Option<*mut super::super::Foundation::BOOL>) { (windows_core::Interface::vtable(self).GetPredication)(windows_core::Interface::as_raw(self), core::mem::transmute(pppredicate.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppredicatevalue.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).GSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).GSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn OMGetRenderTargets(&self, pprendertargetviews: Option<&mut [Option]>, ppdepthstencilview: Option<*mut Option>) { (windows_core::Interface::vtable(self).OMGetRenderTargets)(windows_core::Interface::as_raw(self), pprendertargetviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pprendertargetviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppdepthstencilview.unwrap_or(core::mem::zeroed()))) @@ -3384,7 +3384,7 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).OMGetDepthStencilState)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdepthstencilstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstencilref.unwrap_or(core::mem::zeroed()))) } pub unsafe fn SOGetTargets(&self, numbuffers: u32, ppsotargets: Option<*mut Option>, poffsets: Option<*mut u32>) { - (windows_core::Interface::vtable(self).SOGetTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(numbuffers), core::mem::transmute(ppsotargets.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).SOGetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } pub unsafe fn RSGetState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3401,22 +3401,22 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).GetDeviceRemovedReason)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetExceptionMode(&self, raiseflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExceptionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(raiseflags)).ok() + (windows_core::Interface::vtable(self).SetExceptionMode)(windows_core::Interface::as_raw(self), raiseflags).ok() } pub unsafe fn GetExceptionMode(&self) -> u32 { (windows_core::Interface::vtable(self).GetExceptionMode)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), pdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self)) @@ -3425,22 +3425,22 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)) } pub unsafe fn CreateBuffer(&self, pdesc: *const D3D10_BUFFER_DESC, pinitialdata: Option<*const D3D10_SUBRESOURCE_DATA>, ppbuffer: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateBuffer)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture1D(&self, pdesc: *const D3D10_TEXTURE1D_DESC, pinitialdata: Option<*const D3D10_SUBRESOURCE_DATA>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTexture1D)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTexture1D)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture2D(&self, pdesc: *const D3D10_TEXTURE2D_DESC, pinitialdata: Option<*const D3D10_SUBRESOURCE_DATA>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTexture2D)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTexture2D)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture3D(&self, pdesc: *const D3D10_TEXTURE3D_DESC, pinitialdata: Option<*const D3D10_SUBRESOURCE_DATA>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTexture3D)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTexture3D)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D10_SHADER_RESOURCE_VIEW_DESC>, ppsrview: Option<*mut Option>) -> windows_core::Result<()> @@ -3474,41 +3474,41 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), core::mem::transmute(ppgeometryshader.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D10_SO_DECLARATION_ENTRY]>, outputstreamstride: u32, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateGeometryShaderWithStreamOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), core::mem::transmute(psodeclaration.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psodeclaration.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(outputstreamstride), core::mem::transmute(ppgeometryshader.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateGeometryShaderWithStreamOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), core::mem::transmute(psodeclaration.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psodeclaration.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), outputstreamstride, core::mem::transmute(ppgeometryshader.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pppixelshader: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), core::mem::transmute(pppixelshader.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateBlendState(&self, pblendstatedesc: *const D3D10_BLEND_DESC, ppblendstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBlendState)(windows_core::Interface::as_raw(self), core::mem::transmute(pblendstatedesc), core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateBlendState)(windows_core::Interface::as_raw(self), pblendstatedesc, core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateDepthStencilState(&self, pdepthstencildesc: *const D3D10_DEPTH_STENCIL_DESC, ppdepthstencilstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDepthStencilState)(windows_core::Interface::as_raw(self), core::mem::transmute(pdepthstencildesc), core::mem::transmute(ppdepthstencilstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencildesc, core::mem::transmute(ppdepthstencilstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateRasterizerState(&self, prasterizerdesc: *const D3D10_RASTERIZER_DESC, pprasterizerstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateRasterizerState)(windows_core::Interface::as_raw(self), core::mem::transmute(prasterizerdesc), core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateRasterizerState)(windows_core::Interface::as_raw(self), prasterizerdesc, core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateSamplerState(&self, psamplerdesc: *const D3D10_SAMPLER_DESC, ppsamplerstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateSamplerState)(windows_core::Interface::as_raw(self), core::mem::transmute(psamplerdesc), core::mem::transmute(ppsamplerstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateSamplerState)(windows_core::Interface::as_raw(self), psamplerdesc, core::mem::transmute(ppsamplerstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateQuery(&self, pquerydesc: *const D3D10_QUERY_DESC, ppquery: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(pquerydesc), core::mem::transmute(ppquery.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateQuery)(windows_core::Interface::as_raw(self), pquerydesc, core::mem::transmute(ppquery.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreatePredicate(&self, ppredicatedesc: *const D3D10_QUERY_DESC, pppredicate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreatePredicate)(windows_core::Interface::as_raw(self), core::mem::transmute(ppredicatedesc), core::mem::transmute(pppredicate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreatePredicate)(windows_core::Interface::as_raw(self), ppredicatedesc, core::mem::transmute(pppredicate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateCounter(&self, pcounterdesc: *const D3D10_COUNTER_DESC, ppcounter: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateCounter)(windows_core::Interface::as_raw(self), core::mem::transmute(pcounterdesc), core::mem::transmute(ppcounter.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateCounter)(windows_core::Interface::as_raw(self), pcounterdesc, core::mem::transmute(ppcounter.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckFormatSupport(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckFormatSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckFormatSupport)(windows_core::Interface::as_raw(self), format, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckMultisampleQualityLevels(&self, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckMultisampleQualityLevels)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(samplecount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckMultisampleQualityLevels)(windows_core::Interface::as_raw(self), format, samplecount, &mut result__).map(|| result__) } pub unsafe fn CheckCounterInfo(&self) -> D3D10_COUNTER_INFO { let mut result__ = core::mem::zeroed(); @@ -3518,7 +3518,7 @@ impl ID3D10Device { pub unsafe fn CheckCounter(&self, pdesc: *const D3D10_COUNTER_DESC, ptype: *mut D3D10_COUNTER_TYPE, pactivecounters: *mut u32, szname: Option, pnamelength: Option<*mut u32>, szunits: Option, punitslength: Option<*mut u32>, szdescription: Option, pdescriptionlength: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckCounter)( windows_core::Interface::as_raw(self), - core::mem::transmute(pdesc), + pdesc, core::mem::transmute(ptype), core::mem::transmute(pactivecounters), core::mem::transmute(szname.unwrap_or(core::mem::zeroed())), @@ -3534,10 +3534,10 @@ impl ID3D10Device { (windows_core::Interface::vtable(self).GetCreationFlags)(windows_core::Interface::as_raw(self)) } pub unsafe fn OpenSharedResource(&self, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), core::mem::transmute(hresource), core::mem::transmute(returnedinterface), core::mem::transmute(ppresource.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), hresource, returnedinterface, core::mem::transmute(ppresource.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextFilterSize(&self, width: u32, height: u32) { - (windows_core::Interface::vtable(self).SetTextFilterSize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)) + (windows_core::Interface::vtable(self).SetTextFilterSize)(windows_core::Interface::as_raw(self), width, height) } pub unsafe fn GetTextFilterSize(&self, pwidth: Option<*mut u32>, pheight: Option<*mut u32>) { (windows_core::Interface::vtable(self).GetTextFilterSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pwidth.unwrap_or(core::mem::zeroed())), core::mem::transmute(pheight.unwrap_or(core::mem::zeroed()))) @@ -4321,7 +4321,7 @@ impl ID3D10Device1 { (windows_core::Interface::vtable(self).CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsrview.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateBlendState1(&self, pblendstatedesc: *const D3D10_BLEND_DESC1, ppblendstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBlendState1)(windows_core::Interface::as_raw(self), core::mem::transmute(pblendstatedesc), core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateBlendState1)(windows_core::Interface::as_raw(self), pblendstatedesc, core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFeatureLevel(&self) -> D3D10_FEATURE_LEVEL1 { (windows_core::Interface::vtable(self).GetFeatureLevel)(windows_core::Interface::as_raw(self)) @@ -4384,16 +4384,16 @@ impl ID3D10DeviceChild { windows_core::Type::from_abi(result__) } pub unsafe fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), pdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } #[repr(C)] @@ -4460,7 +4460,7 @@ impl ID3D10Effect { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -4469,7 +4469,7 @@ impl ID3D10Effect { (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetVariableByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -4484,7 +4484,7 @@ impl ID3D10Effect { (windows_core::Interface::vtable(self).GetVariableBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetTechniqueByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetTechniqueByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetTechniqueByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetTechniqueByName(&self, name: P0) -> Option where @@ -4626,10 +4626,10 @@ windows_core::imp::interface_hierarchy!(ID3D10EffectBlendVariable, ID3D10EffectV impl ID3D10EffectBlendVariable { pub unsafe fn GetBlendState(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBlendState)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBlendState)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBackingStore(&self, index: u32, pblenddesc: *mut D3D10_BLEND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pblenddesc)).ok() + (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pblenddesc)).ok() } } #[repr(C)] @@ -4787,10 +4787,10 @@ windows_core::imp::interface_hierarchy!(ID3D10EffectDepthStencilVariable, ID3D10 impl ID3D10EffectDepthStencilVariable { pub unsafe fn GetDepthStencilState(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDepthStencilState)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDepthStencilState)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBackingStore(&self, index: u32, pdepthstencildesc: *mut D3D10_DEPTH_STENCIL_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pdepthstencildesc)).ok() + (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pdepthstencildesc)).ok() } } #[repr(C)] @@ -4861,10 +4861,10 @@ impl ID3D10EffectDepthStencilViewVariable { (windows_core::Interface::vtable(self).GetDepthStencil)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDepthStencilArray(&self, ppresources: &[Option], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDepthStencilArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(offset), ppresources.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetDepthStencilArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } pub unsafe fn GetDepthStencilArray(&self, ppresources: &mut [Option], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDepthStencilArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(offset), ppresources.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetDepthStencilArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -4947,10 +4947,10 @@ impl ID3D10EffectMatrixVariable { (windows_core::Interface::vtable(self).GetMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() } pub unsafe fn SetMatrixArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrixArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetMatrixArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn GetMatrixArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMatrixArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).GetMatrixArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn SetMatrixTranspose(&self, pdata: *mut f32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetMatrixTranspose)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() @@ -4959,10 +4959,10 @@ impl ID3D10EffectMatrixVariable { (windows_core::Interface::vtable(self).GetMatrixTranspose)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() } pub unsafe fn SetMatrixTransposeArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrixTransposeArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetMatrixTransposeArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn GetMatrixTransposeArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMatrixTransposeArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).GetMatrixTransposeArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } } #[repr(C)] @@ -5073,7 +5073,7 @@ impl ID3D10EffectPass { (windows_core::Interface::vtable(self).GetPixelShaderDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetAnnotationByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetAnnotationByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetAnnotationByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where @@ -5082,7 +5082,7 @@ impl ID3D10EffectPass { (windows_core::Interface::vtable(self).GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn Apply(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Apply)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Apply)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn ComputeStateBlockMask(&self, pstateblockmask: *mut D3D10_STATE_BLOCK_MASK) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ComputeStateBlockMask)(windows_core::Interface::as_raw(self), core::mem::transmute(pstateblockmask)).ok() @@ -5225,10 +5225,10 @@ windows_core::imp::interface_hierarchy!(ID3D10EffectRasterizerVariable, ID3D10Ef impl ID3D10EffectRasterizerVariable { pub unsafe fn GetRasterizerState(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRasterizerState)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRasterizerState)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBackingStore(&self, index: u32, prasterizerdesc: *mut D3D10_RASTERIZER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(prasterizerdesc)).ok() + (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), index, core::mem::transmute(prasterizerdesc)).ok() } } #[repr(C)] @@ -5299,10 +5299,10 @@ impl ID3D10EffectRenderTargetViewVariable { (windows_core::Interface::vtable(self).GetRenderTarget)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetRenderTargetArray(&self, ppresources: &[Option], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderTargetArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(offset), ppresources.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetRenderTargetArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } pub unsafe fn GetRenderTargetArray(&self, ppresources: &mut [Option], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRenderTargetArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(offset), ppresources.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetRenderTargetArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -5380,10 +5380,10 @@ windows_core::imp::interface_hierarchy!(ID3D10EffectSamplerVariable, ID3D10Effec impl ID3D10EffectSamplerVariable { pub unsafe fn GetSampler(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSampler)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSampler)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBackingStore(&self, index: u32, psamplerdesc: *mut D3D10_SAMPLER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(psamplerdesc)).ok() + (windows_core::Interface::vtable(self).GetBackingStore)(windows_core::Interface::as_raw(self), index, core::mem::transmute(psamplerdesc)).ok() } } #[repr(C)] @@ -5440,30 +5440,30 @@ impl core::ops::Deref for ID3D10EffectScalarVariable { windows_core::imp::interface_hierarchy!(ID3D10EffectScalarVariable, ID3D10EffectVariable); impl ID3D10EffectScalarVariable { pub unsafe fn SetFloat(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetFloat)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetFloat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFloat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFloatArray(&self, pdata: &[f32], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFloatArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(offset), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetFloatArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } pub unsafe fn GetFloatArray(&self, pdata: &mut [f32], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFloatArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(offset), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFloatArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } pub unsafe fn SetInt(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInt)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetInt)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetInt(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInt)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIntArray(&self, pdata: &[i32], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIntArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(offset), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetIntArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } pub unsafe fn GetIntArray(&self, pdata: &mut [i32], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIntArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(offset), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetIntArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } pub unsafe fn SetBool(&self, value: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), value.into()).ok() @@ -5473,10 +5473,10 @@ impl ID3D10EffectScalarVariable { (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBoolArray(&self, pdata: &[super::super::Foundation::BOOL], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoolArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(offset), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetBoolArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } pub unsafe fn GetBoolArray(&self, pdata: &mut [super::super::Foundation::BOOL], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBoolArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(offset), pdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetBoolArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -5639,10 +5639,10 @@ impl ID3D10EffectShaderResourceVariable { (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetResourceArray(&self, ppresources: &[Option], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResourceArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(offset), ppresources.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetResourceArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } pub unsafe fn GetResourceArray(&self, ppresources: &mut [Option], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(offset), ppresources.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetResourceArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -5719,27 +5719,27 @@ impl core::ops::Deref for ID3D10EffectShaderVariable { windows_core::imp::interface_hierarchy!(ID3D10EffectShaderVariable, ID3D10EffectVariable); impl ID3D10EffectShaderVariable { pub unsafe fn GetShaderDesc(&self, shaderindex: u32, pdesc: *mut D3D10_EFFECT_SHADER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetShaderDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetShaderDesc)(windows_core::Interface::as_raw(self), shaderindex, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVertexShader(&self, shaderindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVertexShader)(windows_core::Interface::as_raw(self), shaderindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetGeometryShader(&self, shaderindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetGeometryShader)(windows_core::Interface::as_raw(self), shaderindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPixelShader(&self, shaderindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPixelShader)(windows_core::Interface::as_raw(self), shaderindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetInputSignatureElementDesc(&self, shaderindex: u32, element: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputSignatureElementDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderindex), core::mem::transmute(element), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetInputSignatureElementDesc)(windows_core::Interface::as_raw(self), shaderindex, element, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetOutputSignatureElementDesc(&self, shaderindex: u32, element: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputSignatureElementDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(shaderindex), core::mem::transmute(element), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetOutputSignatureElementDesc)(windows_core::Interface::as_raw(self), shaderindex, element, core::mem::transmute(pdesc)).ok() } } #[repr(C)] @@ -5861,7 +5861,7 @@ impl ID3D10EffectStringVariable { (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetStringArray(&self, ppstrings: &mut [windows_core::PCSTR], offset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStringArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppstrings.as_ptr()), core::mem::transmute(offset), ppstrings.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetStringArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ppstrings.as_ptr()), offset, ppstrings.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -5917,7 +5917,7 @@ impl ID3D10EffectTechnique { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetAnnotationByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetAnnotationByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetAnnotationByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where @@ -5926,7 +5926,7 @@ impl ID3D10EffectTechnique { (windows_core::Interface::vtable(self).GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetPassByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetPassByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetPassByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetPassByName(&self, name: P0) -> Option where @@ -6028,7 +6028,7 @@ impl ID3D10EffectType { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetMemberTypeByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where @@ -6043,10 +6043,10 @@ impl ID3D10EffectType { (windows_core::Interface::vtable(self).GetMemberTypeBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetMemberName(&self, index: u32) -> windows_core::PCSTR { - (windows_core::Interface::vtable(self).GetMemberName)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberName)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberSemantic(&self, index: u32) -> windows_core::PCSTR { - (windows_core::Interface::vtable(self).GetMemberSemantic)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberSemantic)(windows_core::Interface::as_raw(self), index) } } #[repr(C)] @@ -6151,7 +6151,7 @@ impl ID3D10EffectVariable { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetAnnotationByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetAnnotationByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetAnnotationByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where @@ -6160,7 +6160,7 @@ impl ID3D10EffectVariable { (windows_core::Interface::vtable(self).GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetMemberByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where @@ -6175,7 +6175,7 @@ impl ID3D10EffectVariable { (windows_core::Interface::vtable(self).GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetParentConstantBuffer(&self) -> Option { (windows_core::Interface::vtable(self).GetParentConstantBuffer)(windows_core::Interface::as_raw(self)) @@ -6220,10 +6220,10 @@ impl ID3D10EffectVariable { (windows_core::Interface::vtable(self).AsSampler)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetRawValue(&self, pdata: *const core::ffi::c_void, offset: u32, bytecount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRawValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(bytecount)).ok() + (windows_core::Interface::vtable(self).SetRawValue)(windows_core::Interface::as_raw(self), pdata, offset, bytecount).ok() } pub unsafe fn GetRawValue(&self, pdata: *mut core::ffi::c_void, offset: u32, bytecount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRawValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(bytecount)).ok() + (windows_core::Interface::vtable(self).GetRawValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, bytecount).ok() } } #[repr(C)] @@ -6478,22 +6478,22 @@ impl ID3D10EffectVectorVariable { (windows_core::Interface::vtable(self).GetFloatVector)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() } pub unsafe fn SetBoolVectorArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoolVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetBoolVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn SetIntVectorArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIntVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetIntVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn SetFloatVectorArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFloatVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetFloatVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn GetBoolVectorArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBoolVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).GetBoolVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn GetIntVectorArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIntVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).GetIntVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } pub unsafe fn GetFloatVectorArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFloatVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(offset), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).GetFloatVectorArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), offset, count).ok() } } #[repr(C)] @@ -6646,13 +6646,13 @@ windows_core::imp::define_interface!(ID3D10InfoQueue, ID3D10InfoQueue_Vtbl, 0x1b windows_core::imp::interface_hierarchy!(ID3D10InfoQueue, windows_core::IUnknown); impl ID3D10InfoQueue { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(messagecountlimit)).ok() + (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), messagecountlimit).ok() } pub unsafe fn ClearStoredMessages(&self) { (windows_core::Interface::vtable(self).ClearStoredMessages)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetMessage(&self, messageindex: u64, pmessage: Option<*mut D3D10_MESSAGE>, pmessagebytelength: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(messageindex), core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), messageindex, core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() } pub unsafe fn GetNumMessagesAllowedByStorageFilter(&self) -> u64 { (windows_core::Interface::vtable(self).GetNumMessagesAllowedByStorageFilter)(windows_core::Interface::as_raw(self)) @@ -6673,7 +6673,7 @@ impl ID3D10InfoQueue { (windows_core::Interface::vtable(self).GetMessageCountLimit)(windows_core::Interface::as_raw(self)) } pub unsafe fn AddStorageFilterEntries(&self, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn GetStorageFilter(&self, pfilter: Option<*mut D3D10_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -6688,7 +6688,7 @@ impl ID3D10InfoQueue { (windows_core::Interface::vtable(self).PushCopyOfStorageFilter)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PushStorageFilter(&self, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn PopStorageFilter(&self) { (windows_core::Interface::vtable(self).PopStorageFilter)(windows_core::Interface::as_raw(self)) @@ -6697,7 +6697,7 @@ impl ID3D10InfoQueue { (windows_core::Interface::vtable(self).GetStorageFilterStackSize)(windows_core::Interface::as_raw(self)) } pub unsafe fn AddRetrievalFilterEntries(&self, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn GetRetrievalFilter(&self, pfilter: Option<*mut D3D10_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -6712,7 +6712,7 @@ impl ID3D10InfoQueue { (windows_core::Interface::vtable(self).PushCopyOfRetrievalFilter)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PushRetrievalFilter(&self, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn PopRetrievalFilter(&self) { (windows_core::Interface::vtable(self).PopRetrievalFilter)(windows_core::Interface::as_raw(self)) @@ -6724,31 +6724,31 @@ impl ID3D10InfoQueue { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(category), core::mem::transmute(severity), core::mem::transmute(id), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.param().abi()).ok() } pub unsafe fn AddApplicationMessage(&self, severity: D3D10_MESSAGE_SEVERITY, pdescription: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.param().abi()).ok() } pub unsafe fn SetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D10_MESSAGE_ID, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(id), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into()).ok() } pub unsafe fn GetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category)) + (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) } pub unsafe fn GetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(severity)) + (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity) } pub unsafe fn GetBreakOnID(&self, id: D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(id)) + (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), id) } pub unsafe fn SetMuteDebugOutput(&self, bmute: bool) { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into()) @@ -7290,7 +7290,7 @@ impl ID3D10Resource { result__ } pub unsafe fn SetEvictionPriority(&self, evictionpriority: u32) { - (windows_core::Interface::vtable(self).SetEvictionPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(evictionpriority)) + (windows_core::Interface::vtable(self).SetEvictionPriority)(windows_core::Interface::as_raw(self), evictionpriority) } pub unsafe fn GetEvictionPriority(&self) -> u32 { (windows_core::Interface::vtable(self).GetEvictionPriority)(windows_core::Interface::as_raw(self)) @@ -7380,7 +7380,7 @@ impl ID3D10ShaderReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -7390,15 +7390,15 @@ impl ID3D10ShaderReflection { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), resourceindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetInputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetOutputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } } #[repr(C)] @@ -7487,7 +7487,7 @@ impl ID3D10ShaderReflection1 { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -7497,15 +7497,15 @@ impl ID3D10ShaderReflection1 { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), resourceindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetInputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetOutputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -7746,7 +7746,7 @@ impl ID3D10ShaderReflectionConstantBuffer { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -7816,7 +7816,7 @@ impl ID3D10ShaderReflectionType { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetMemberTypeByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where @@ -7825,7 +7825,7 @@ impl ID3D10ShaderReflectionType { (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberTypeName(&self, index: u32) -> windows_core::PCSTR { - (windows_core::Interface::vtable(self).GetMemberTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeName)(windows_core::Interface::as_raw(self), index) } } #[repr(C)] @@ -8153,10 +8153,10 @@ impl core::ops::Deref for ID3D10Texture1D { windows_core::imp::interface_hierarchy!(ID3D10Texture1D, windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); impl ID3D10Texture1D { pub unsafe fn Map(&self, subresource: u32, maptype: D3D10_MAP, mapflags: u32, ppdata: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource), core::mem::transmute(maptype), core::mem::transmute(mapflags), core::mem::transmute(ppdata)).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), subresource, maptype, mapflags, core::mem::transmute(ppdata)).ok() } pub unsafe fn Unmap(&self, subresource: u32) { - (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource)) + (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), subresource) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_TEXTURE1D_DESC) { @@ -8222,10 +8222,10 @@ windows_core::imp::interface_hierarchy!(ID3D10Texture2D, windows_core::IUnknown, impl ID3D10Texture2D { pub unsafe fn Map(&self, subresource: u32, maptype: D3D10_MAP, mapflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource), core::mem::transmute(maptype), core::mem::transmute(mapflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), subresource, maptype, mapflags, &mut result__).map(|| result__) } pub unsafe fn Unmap(&self, subresource: u32) { - (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource)) + (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), subresource) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_TEXTURE2D_DESC) { @@ -8297,10 +8297,10 @@ windows_core::imp::interface_hierarchy!(ID3D10Texture3D, windows_core::IUnknown, impl ID3D10Texture3D { pub unsafe fn Map(&self, subresource: u32, maptype: D3D10_MAP, mapflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource), core::mem::transmute(maptype), core::mem::transmute(mapflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), subresource, maptype, mapflags, &mut result__).map(|| result__) } pub unsafe fn Unmap(&self, subresource: u32) { - (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource)) + (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), subresource) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_TEXTURE3D_DESC) { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs index a32756f362..3e2cb0a144 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs @@ -5,19 +5,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3d11.dll" "system" fn D3D11CreateDevice(padapter : * mut core::ffi::c_void, drivertype : super::Direct3D:: D3D_DRIVER_TYPE, software : super::super::Foundation:: HMODULE, flags : D3D11_CREATE_DEVICE_FLAG, pfeaturelevels : *const super::Direct3D:: D3D_FEATURE_LEVEL, featurelevels : u32, sdkversion : u32, ppdevice : *mut * mut core::ffi::c_void, pfeaturelevel : *mut super::Direct3D:: D3D_FEATURE_LEVEL, ppimmediatecontext : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D11CreateDevice( - padapter.param().abi(), - core::mem::transmute(drivertype), - core::mem::transmute(software), - core::mem::transmute(flags), - core::mem::transmute(pfeaturelevels.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pfeaturelevels.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(sdkversion), - core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfeaturelevel.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppimmediatecontext.unwrap_or(core::mem::zeroed())), - ) - .ok() + D3D11CreateDevice(padapter.param().abi(), drivertype, software, flags, core::mem::transmute(pfeaturelevels.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfeaturelevels.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), sdkversion, core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfeaturelevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppimmediatecontext.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] #[inline] @@ -28,12 +16,12 @@ where windows_targets::link!("d3d11.dll" "system" fn D3D11CreateDeviceAndSwapChain(padapter : * mut core::ffi::c_void, drivertype : super::Direct3D:: D3D_DRIVER_TYPE, software : super::super::Foundation:: HMODULE, flags : D3D11_CREATE_DEVICE_FLAG, pfeaturelevels : *const super::Direct3D:: D3D_FEATURE_LEVEL, featurelevels : u32, sdkversion : u32, pswapchaindesc : *const super::Dxgi:: DXGI_SWAP_CHAIN_DESC, ppswapchain : *mut * mut core::ffi::c_void, ppdevice : *mut * mut core::ffi::c_void, pfeaturelevel : *mut super::Direct3D:: D3D_FEATURE_LEVEL, ppimmediatecontext : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); D3D11CreateDeviceAndSwapChain( padapter.param().abi(), - core::mem::transmute(drivertype), - core::mem::transmute(software), - core::mem::transmute(flags), + drivertype, + software, + flags, core::mem::transmute(pfeaturelevels.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfeaturelevels.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(sdkversion), + sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppswapchain.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed())), @@ -50,7 +38,7 @@ where { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DDisassemble11Trace(psrcdata : *const core::ffi::c_void, srcdatasize : usize, ptrace : * mut core::ffi::c_void, startstep : u32, numsteps : u32, flags : u32, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DDisassemble11Trace(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasize), ptrace.param().abi(), core::mem::transmute(startstep), core::mem::transmute(numsteps), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DDisassemble11Trace(psrcdata, srcdatasize, ptrace.param().abi(), startstep, numsteps, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DX11CreateFFT(pdevicecontext: P0, pdesc: *const D3DX11_FFT_DESC, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -58,7 +46,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT(pdevicecontext : * mut core::ffi::c_void, pdesc : *const D3DX11_FFT_DESC, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT(pdevicecontext.param().abi(), core::mem::transmute(pdesc), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT(pdevicecontext.param().abi(), pdesc, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateFFT1DComplex(pdevicecontext: P0, x: u32, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -66,7 +54,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT1DComplex(pdevicecontext : * mut core::ffi::c_void, x : u32, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT1DComplex(pdevicecontext.param().abi(), core::mem::transmute(x), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT1DComplex(pdevicecontext.param().abi(), x, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateFFT1DReal(pdevicecontext: P0, x: u32, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -74,7 +62,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT1DReal(pdevicecontext : * mut core::ffi::c_void, x : u32, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT1DReal(pdevicecontext.param().abi(), core::mem::transmute(x), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT1DReal(pdevicecontext.param().abi(), x, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateFFT2DComplex(pdevicecontext: P0, x: u32, y: u32, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -82,7 +70,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT2DComplex(pdevicecontext : * mut core::ffi::c_void, x : u32, y : u32, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT2DComplex(pdevicecontext.param().abi(), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT2DComplex(pdevicecontext.param().abi(), x, y, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateFFT2DReal(pdevicecontext: P0, x: u32, y: u32, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -90,7 +78,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT2DReal(pdevicecontext : * mut core::ffi::c_void, x : u32, y : u32, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT2DReal(pdevicecontext.param().abi(), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT2DReal(pdevicecontext.param().abi(), x, y, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateFFT3DComplex(pdevicecontext: P0, x: u32, y: u32, z: u32, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -98,7 +86,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT3DComplex(pdevicecontext : * mut core::ffi::c_void, x : u32, y : u32, z : u32, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT3DComplex(pdevicecontext.param().abi(), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT3DComplex(pdevicecontext.param().abi(), x, y, z, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateFFT3DReal(pdevicecontext: P0, x: u32, y: u32, z: u32, flags: u32, pbufferinfo: *mut D3DX11_FFT_BUFFER_INFO, ppfft: *mut Option) -> windows_core::Result<()> @@ -106,7 +94,7 @@ where P0: windows_core::Param, { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateFFT3DReal(pdevicecontext : * mut core::ffi::c_void, x : u32, y : u32, z : u32, flags : u32, pbufferinfo : *mut D3DX11_FFT_BUFFER_INFO, ppfft : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3DX11CreateFFT3DReal(pdevicecontext.param().abi(), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(flags), core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT3DReal(pdevicecontext.param().abi(), x, y, z, flags, core::mem::transmute(pbufferinfo), core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateScan(pdevicecontext: P0, maxelementscansize: u32, maxscancount: u32) -> windows_core::Result @@ -115,7 +103,7 @@ where { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateScan(pdevicecontext : * mut core::ffi::c_void, maxelementscansize : u32, maxscancount : u32, ppscan : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DX11CreateScan(pdevicecontext.param().abi(), core::mem::transmute(maxelementscansize), core::mem::transmute(maxscancount), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DX11CreateScan(pdevicecontext.param().abi(), maxelementscansize, maxscancount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3DX11CreateSegmentedScan(pdevicecontext: P0, maxelementscansize: u32) -> windows_core::Result @@ -124,7 +112,7 @@ where { windows_targets::link!("d3dcsx.dll" "system" fn D3DX11CreateSegmentedScan(pdevicecontext : * mut core::ffi::c_void, maxelementscansize : u32, ppscan : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - D3DX11CreateSegmentedScan(pdevicecontext.param().abi(), core::mem::transmute(maxelementscansize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DX11CreateSegmentedScan(pdevicecontext.param().abi(), maxelementscansize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub const D3D11_16BIT_INDEX_STRIP_CUT_VALUE: u32 = 65535u32; #[repr(transparent)] @@ -6368,14 +6356,14 @@ impl ID3D11ClassLinkage { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClassInstance)(windows_core::Interface::as_raw(self), pclassinstancename.param().abi(), core::mem::transmute(instanceindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetClassInstance)(windows_core::Interface::as_raw(self), pclassinstancename.param().abi(), instanceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateClassInstance(&self, pclasstypename: P0, constantbufferoffset: u32, constantvectoroffset: u32, textureoffset: u32, sampleroffset: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateClassInstance)(windows_core::Interface::as_raw(self), pclasstypename.param().abi(), core::mem::transmute(constantbufferoffset), core::mem::transmute(constantvectoroffset), core::mem::transmute(textureoffset), core::mem::transmute(sampleroffset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateClassInstance)(windows_core::Interface::as_raw(self), pclasstypename.param().abi(), constantbufferoffset, constantvectoroffset, textureoffset, sampleroffset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6617,13 +6605,13 @@ windows_core::imp::define_interface!(ID3D11Debug, ID3D11Debug_Vtbl, 0x79cf2233_7 windows_core::imp::interface_hierarchy!(ID3D11Debug, windows_core::IUnknown); impl ID3D11Debug { pub unsafe fn SetFeatureMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetFeatureMask(&self) -> u32 { (windows_core::Interface::vtable(self).GetFeatureMask)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPresentPerRenderOpDelay(&self, milliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPresentPerRenderOpDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(milliseconds)).ok() + (windows_core::Interface::vtable(self).SetPresentPerRenderOpDelay)(windows_core::Interface::as_raw(self), milliseconds).ok() } pub unsafe fn GetPresentPerRenderOpDelay(&self) -> u32 { (windows_core::Interface::vtable(self).GetPresentPerRenderOpDelay)(windows_core::Interface::as_raw(self)) @@ -6647,7 +6635,7 @@ impl ID3D11Debug { (windows_core::Interface::vtable(self).ValidateContext)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } pub unsafe fn ReportLiveDeviceObjects(&self, flags: D3D11_RLDO_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn ValidateContextForDispatch(&self, pcontext: P0) -> windows_core::Result<()> where @@ -6840,19 +6828,19 @@ windows_core::imp::define_interface!(ID3D11Device, ID3D11Device_Vtbl, 0xdb6f6ddb windows_core::imp::interface_hierarchy!(ID3D11Device, windows_core::IUnknown); impl ID3D11Device { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateBuffer)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture1D(&self, pdesc: *const D3D11_TEXTURE1D_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture1d: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTexture1D)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture1d.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateTexture1D)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture1d.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture2D(&self, pdesc: *const D3D11_TEXTURE2D_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture2d: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTexture2D)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture2d.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateTexture2D)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture2d.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture3D(&self, pdesc: *const D3D11_TEXTURE3D_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture3d: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTexture3D)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture3d.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateTexture3D)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture3d.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D11_SHADER_RESOURCE_VIEW_DESC>, ppsrview: Option<*mut Option>) -> windows_core::Result<()> @@ -6910,7 +6898,7 @@ impl ID3D11Device { psodeclaration.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbufferstrides.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbufferstrides.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(rasterizedstream), + rasterizedstream, pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(core::mem::zeroed())), ) @@ -6945,44 +6933,44 @@ impl ID3D11Device { (windows_core::Interface::vtable(self).CreateClassLinkage)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlendState(&self, pblendstatedesc: *const D3D11_BLEND_DESC, ppblendstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBlendState)(windows_core::Interface::as_raw(self), core::mem::transmute(pblendstatedesc), core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateBlendState)(windows_core::Interface::as_raw(self), pblendstatedesc, core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateDepthStencilState(&self, pdepthstencildesc: *const D3D11_DEPTH_STENCIL_DESC, ppdepthstencilstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDepthStencilState)(windows_core::Interface::as_raw(self), core::mem::transmute(pdepthstencildesc), core::mem::transmute(ppdepthstencilstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencildesc, core::mem::transmute(ppdepthstencilstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateRasterizerState(&self, prasterizerdesc: *const D3D11_RASTERIZER_DESC, pprasterizerstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateRasterizerState)(windows_core::Interface::as_raw(self), core::mem::transmute(prasterizerdesc), core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateRasterizerState)(windows_core::Interface::as_raw(self), prasterizerdesc, core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateSamplerState(&self, psamplerdesc: *const D3D11_SAMPLER_DESC, ppsamplerstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateSamplerState)(windows_core::Interface::as_raw(self), core::mem::transmute(psamplerdesc), core::mem::transmute(ppsamplerstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateSamplerState)(windows_core::Interface::as_raw(self), psamplerdesc, core::mem::transmute(ppsamplerstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateQuery(&self, pquerydesc: *const D3D11_QUERY_DESC, ppquery: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(pquerydesc), core::mem::transmute(ppquery.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateQuery)(windows_core::Interface::as_raw(self), pquerydesc, core::mem::transmute(ppquery.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreatePredicate(&self, ppredicatedesc: *const D3D11_QUERY_DESC, pppredicate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreatePredicate)(windows_core::Interface::as_raw(self), core::mem::transmute(ppredicatedesc), core::mem::transmute(pppredicate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreatePredicate)(windows_core::Interface::as_raw(self), ppredicatedesc, core::mem::transmute(pppredicate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateCounter(&self, pcounterdesc: *const D3D11_COUNTER_DESC, ppcounter: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateCounter)(windows_core::Interface::as_raw(self), core::mem::transmute(pcounterdesc), core::mem::transmute(ppcounter.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateCounter)(windows_core::Interface::as_raw(self), pcounterdesc, core::mem::transmute(ppcounter.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateDeferredContext(&self, contextflags: u32, ppdeferredcontext: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDeferredContext)(windows_core::Interface::as_raw(self), core::mem::transmute(contextflags), core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDeferredContext)(windows_core::Interface::as_raw(self), contextflags, core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OpenSharedResource(&self, hresource: super::super::Foundation::HANDLE, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), core::mem::transmute(hresource), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), hresource, &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckFormatSupport(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckFormatSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckFormatSupport)(windows_core::Interface::as_raw(self), format, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckMultisampleQualityLevels(&self, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckMultisampleQualityLevels)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(samplecount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckMultisampleQualityLevels)(windows_core::Interface::as_raw(self), format, samplecount, &mut result__).map(|| result__) } pub unsafe fn CheckCounterInfo(&self) -> D3D11_COUNTER_INFO { let mut result__ = core::mem::zeroed(); @@ -6992,7 +6980,7 @@ impl ID3D11Device { pub unsafe fn CheckCounter(&self, pdesc: *const D3D11_COUNTER_DESC, ptype: *mut D3D11_COUNTER_TYPE, pactivecounters: *mut u32, szname: Option, pnamelength: Option<*mut u32>, szunits: Option, punitslength: Option<*mut u32>, szdescription: Option, pdescriptionlength: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckCounter)( windows_core::Interface::as_raw(self), - core::mem::transmute(pdesc), + pdesc, core::mem::transmute(ptype), core::mem::transmute(pactivecounters), core::mem::transmute(szname.unwrap_or(core::mem::zeroed())), @@ -7005,19 +6993,19 @@ impl ID3D11Device { .ok() } pub unsafe fn CheckFeatureSupport(&self, feature: D3D11_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(feature), core::mem::transmute(pfeaturesupportdata), core::mem::transmute(featuresupportdatasize)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, core::mem::transmute(pfeaturesupportdata), featuresupportdatasize).ok() } pub unsafe fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), pdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetFeatureLevel(&self) -> super::Direct3D::D3D_FEATURE_LEVEL { @@ -7035,7 +7023,7 @@ impl ID3D11Device { windows_core::Type::from_abi(result__) } pub unsafe fn SetExceptionMode(&self, raiseflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExceptionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(raiseflags)).ok() + (windows_core::Interface::vtable(self).SetExceptionMode)(windows_core::Interface::as_raw(self), raiseflags).ok() } pub unsafe fn GetExceptionMode(&self) -> u32 { (windows_core::Interface::vtable(self).GetExceptionMode)(windows_core::Interface::as_raw(self)) @@ -7411,24 +7399,24 @@ impl ID3D11Device1 { windows_core::Type::from_abi(result__) } pub unsafe fn CreateDeferredContext1(&self, contextflags: u32, ppdeferredcontext: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDeferredContext1)(windows_core::Interface::as_raw(self), core::mem::transmute(contextflags), core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDeferredContext1)(windows_core::Interface::as_raw(self), contextflags, core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateBlendState1(&self, pblendstatedesc: *const D3D11_BLEND_DESC1, ppblendstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBlendState1)(windows_core::Interface::as_raw(self), core::mem::transmute(pblendstatedesc), core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateBlendState1)(windows_core::Interface::as_raw(self), pblendstatedesc, core::mem::transmute(ppblendstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateRasterizerState1(&self, prasterizerdesc: *const D3D11_RASTERIZER_DESC1, pprasterizerstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateRasterizerState1)(windows_core::Interface::as_raw(self), core::mem::transmute(prasterizerdesc), core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateRasterizerState1)(windows_core::Interface::as_raw(self), prasterizerdesc, core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn CreateDeviceContextState(&self, flags: u32, pfeaturelevels: &[super::Direct3D::D3D_FEATURE_LEVEL], sdkversion: u32, emulatedinterface: *const windows_core::GUID, pchosenfeaturelevel: Option<*mut super::Direct3D::D3D_FEATURE_LEVEL>, ppcontextstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDeviceContextState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(pfeaturelevels.as_ptr()), pfeaturelevels.len().try_into().unwrap(), core::mem::transmute(sdkversion), core::mem::transmute(emulatedinterface), core::mem::transmute(pchosenfeaturelevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcontextstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDeviceContextState)(windows_core::Interface::as_raw(self), flags, core::mem::transmute(pfeaturelevels.as_ptr()), pfeaturelevels.len().try_into().unwrap(), sdkversion, emulatedinterface, core::mem::transmute(pchosenfeaturelevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcontextstate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OpenSharedResource1(&self, hresource: super::super::Foundation::HANDLE) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenSharedResource1)(windows_core::Interface::as_raw(self), core::mem::transmute(hresource), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenSharedResourceByName(&self, lpname: P0, dwdesiredaccess: u32) -> windows_core::Result where @@ -7436,7 +7424,7 @@ impl ID3D11Device1 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.param().abi(), core::mem::transmute(dwdesiredaccess), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7530,27 +7518,18 @@ impl ID3D11Device2 { windows_core::Type::from_abi(result__) } pub unsafe fn CreateDeferredContext2(&self, contextflags: u32, ppdeferredcontext: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDeferredContext2)(windows_core::Interface::as_raw(self), core::mem::transmute(contextflags), core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDeferredContext2)(windows_core::Interface::as_raw(self), contextflags, core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetResourceTiling(&self, ptiledresource: P0, pnumtilesforentireresource: Option<*mut u32>, ppackedmipdesc: Option<*mut D3D11_PACKED_MIP_DESC>, pstandardtileshapefornonpackedmips: Option<*mut D3D11_TILE_SHAPE>, pnumsubresourcetilings: Option<*mut u32>, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D11_SUBRESOURCE_TILING) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceTiling)( - windows_core::Interface::as_raw(self), - ptiledresource.param().abi(), - core::mem::transmute(pnumtilesforentireresource.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppackedmipdesc.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pnumsubresourcetilings.unwrap_or(core::mem::zeroed())), - core::mem::transmute(firstsubresourcetilingtoget), - core::mem::transmute(psubresourcetilingsfornonpackedmips), - ) + (windows_core::Interface::vtable(self).GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppackedmipdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(core::mem::zeroed())), firstsubresourcetilingtoget, core::mem::transmute(psubresourcetilingsfornonpackedmips)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckMultisampleQualityLevels1(&self, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckMultisampleQualityLevels1)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(samplecount), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckMultisampleQualityLevels1)(windows_core::Interface::as_raw(self), format, samplecount, flags, &mut result__).map(|| result__) } } #[repr(C)] @@ -7625,14 +7604,14 @@ windows_core::imp::interface_hierarchy!(ID3D11Device3, windows_core::IUnknown, I impl ID3D11Device3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture2D1(&self, pdesc1: *const D3D11_TEXTURE2D_DESC1, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture2d: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTexture2D1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc1), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture2d.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateTexture2D1)(windows_core::Interface::as_raw(self), pdesc1, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture2d.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateTexture3D1(&self, pdesc1: *const D3D11_TEXTURE3D_DESC1, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture3d: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTexture3D1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc1), core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture3d.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateTexture3D1)(windows_core::Interface::as_raw(self), pdesc1, core::mem::transmute(pinitialdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptexture3d.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateRasterizerState2(&self, prasterizerdesc: *const D3D11_RASTERIZER_DESC2, pprasterizerstate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateRasterizerState2)(windows_core::Interface::as_raw(self), core::mem::transmute(prasterizerdesc), core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateRasterizerState2)(windows_core::Interface::as_raw(self), prasterizerdesc, core::mem::transmute(pprasterizerstate.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateShaderResourceView1(&self, presource: P0, pdesc1: Option<*const D3D11_SHADER_RESOURCE_VIEW_DESC1>, ppsrview1: Option<*mut Option>) -> windows_core::Result<()> @@ -7656,7 +7635,7 @@ impl ID3D11Device3 { (windows_core::Interface::vtable(self).CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprtview1.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateQuery1(&self, pquerydesc1: *const D3D11_QUERY_DESC1, ppquery1: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateQuery1)(windows_core::Interface::as_raw(self), core::mem::transmute(pquerydesc1), core::mem::transmute(ppquery1.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateQuery1)(windows_core::Interface::as_raw(self), pquerydesc1, core::mem::transmute(ppquery1.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetImmediateContext3(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7664,19 +7643,19 @@ impl ID3D11Device3 { windows_core::Type::from_abi(result__) } pub unsafe fn CreateDeferredContext3(&self, contextflags: u32, ppdeferredcontext: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDeferredContext3)(windows_core::Interface::as_raw(self), core::mem::transmute(contextflags), core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDeferredContext3)(windows_core::Interface::as_raw(self), contextflags, core::mem::transmute(ppdeferredcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteToSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrcdata), core::mem::transmute(srcrowpitch), core::mem::transmute(srcdepthpitch)) + (windows_core::Interface::vtable(self).WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ReadFromSubresource(&self, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: P3, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadFromSubresource)(windows_core::Interface::as_raw(self), core::mem::transmute(pdstdata), core::mem::transmute(dstrowpitch), core::mem::transmute(dstdepthpitch), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).ReadFromSubresource)(windows_core::Interface::as_raw(self), core::mem::transmute(pdstdata), dstrowpitch, dstdepthpitch, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) } } #[repr(C)] @@ -7806,10 +7785,10 @@ windows_core::imp::interface_hierarchy!(ID3D11Device4, windows_core::IUnknown, I impl ID3D11Device4 { pub unsafe fn RegisterDeviceRemovedEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDeviceRemovedEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterDeviceRemovedEvent)(windows_core::Interface::as_raw(self), hevent, &mut result__).map(|| result__) } pub unsafe fn UnregisterDeviceRemoved(&self, dwcookie: u32) { - (windows_core::Interface::vtable(self).UnregisterDeviceRemoved)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)) + (windows_core::Interface::vtable(self).UnregisterDeviceRemoved)(windows_core::Interface::as_raw(self), dwcookie) } } #[repr(C)] @@ -7869,13 +7848,13 @@ impl ID3D11Device5 { where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).OpenSharedFence)(windows_core::Interface::as_raw(self), core::mem::transmute(hfence), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).OpenSharedFence)(windows_core::Interface::as_raw(self), hfence, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D11_FENCE_FLAG, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateFence)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvalue), core::mem::transmute(flags), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateFence)(windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, result__ as *mut _ as *mut _).ok() } } #[repr(C)] @@ -7925,16 +7904,16 @@ impl ID3D11DeviceChild { windows_core::Type::from_abi(result__) } pub unsafe fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), pdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } #[repr(C)] @@ -7994,10 +7973,10 @@ impl core::ops::Deref for ID3D11DeviceContext { windows_core::imp::interface_hierarchy!(ID3D11DeviceContext, windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11DeviceContext { pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).VSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).PSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSSetShader(&self, ppixelshader: P0, ppclassinstances: Option<&[Option]>) where @@ -8006,7 +7985,7 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.param().abi(), core::mem::transmute(ppclassinstances.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppclassinstances.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn PSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).PSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSSetShader(&self, pvertexshader: P0, ppclassinstances: Option<&[Option]>) where @@ -8015,25 +7994,25 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.param().abi(), core::mem::transmute(ppclassinstances.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppclassinstances.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn DrawIndexed(&self, indexcount: u32, startindexlocation: u32, basevertexlocation: i32) { - (windows_core::Interface::vtable(self).DrawIndexed)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcount), core::mem::transmute(startindexlocation), core::mem::transmute(basevertexlocation)) + (windows_core::Interface::vtable(self).DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) } pub unsafe fn Draw(&self, vertexcount: u32, startvertexlocation: u32) { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexcount), core::mem::transmute(startvertexlocation)) + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), vertexcount, startvertexlocation) } pub unsafe fn Map(&self, presource: P0, subresource: u32, maptype: D3D11_MAP, mapflags: u32, pmappedresource: Option<*mut D3D11_MAPPED_SUBRESOURCE>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(maptype), core::mem::transmute(mapflags), core::mem::transmute(pmappedresource.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Unmap(&self, presource: P0, subresource: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource)) + (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource) } pub unsafe fn PSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).PSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn IASetInputLayout(&self, pinputlayout: P0) where @@ -8042,23 +8021,23 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.param().abi()) } pub unsafe fn IASetVertexBuffers(&self, startslot: u32, numbuffers: u32, ppvertexbuffers: Option<*const Option>, pstrides: Option<*const u32>, poffsets: Option<*const u32>) { - (windows_core::Interface::vtable(self).IASetVertexBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn IASetIndexBuffer(&self, pindexbuffer: P0, format: super::Dxgi::Common::DXGI_FORMAT, offset: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.param().abi(), core::mem::transmute(format), core::mem::transmute(offset)) + (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.param().abi(), format, offset) } pub unsafe fn DrawIndexedInstanced(&self, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) { - (windows_core::Interface::vtable(self).DrawIndexedInstanced)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcountperinstance), core::mem::transmute(instancecount), core::mem::transmute(startindexlocation), core::mem::transmute(basevertexlocation), core::mem::transmute(startinstancelocation)) + (windows_core::Interface::vtable(self).DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) } pub unsafe fn DrawInstanced(&self, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) { - (windows_core::Interface::vtable(self).DrawInstanced)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexcountperinstance), core::mem::transmute(instancecount), core::mem::transmute(startvertexlocation), core::mem::transmute(startinstancelocation)) + (windows_core::Interface::vtable(self).DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) } pub unsafe fn GSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).GSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSSetShader(&self, pshader: P0, ppclassinstances: Option<&[Option]>) where @@ -8068,13 +8047,13 @@ impl ID3D11DeviceContext { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { - (windows_core::Interface::vtable(self).IASetPrimitiveTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(topology)) + (windows_core::Interface::vtable(self).IASetPrimitiveTopology)(windows_core::Interface::as_raw(self), topology) } pub unsafe fn VSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).VSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).VSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn Begin(&self, pasync: P0) where @@ -8092,7 +8071,7 @@ impl ID3D11DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(datasize), core::mem::transmute(getdataflags)).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), datasize, getdataflags).ok() } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: bool) where @@ -8101,10 +8080,10 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.into()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).GSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).GSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P2) where @@ -8116,22 +8095,22 @@ impl ID3D11DeviceContext { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetRenderTargetsAndUnorderedAccessViews)(windows_core::Interface::as_raw(self), pprendertargetviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pprendertargetviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdepthstencilview.param().abi(), core::mem::transmute(uavstartslot), core::mem::transmute(numuavs), core::mem::transmute(ppunorderedaccessviews.unwrap_or(core::mem::zeroed())), core::mem::transmute(puavinitialcounts.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).OMSetRenderTargetsAndUnorderedAccessViews)(windows_core::Interface::as_raw(self), pprendertargetviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pprendertargetviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdepthstencilview.param().abi(), uavstartslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(core::mem::zeroed())), core::mem::transmute(puavinitialcounts.unwrap_or(core::mem::zeroed()))) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: Option<&[f32; 4]>, samplemask: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(samplemask)) + (windows_core::Interface::vtable(self).OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), samplemask) } pub unsafe fn OMSetDepthStencilState(&self, pdepthstencilstate: P0, stencilref: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.param().abi(), core::mem::transmute(stencilref)) + (windows_core::Interface::vtable(self).OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.param().abi(), stencilref) } pub unsafe fn SOSetTargets(&self, numbuffers: u32, ppsotargets: Option<*const Option>, poffsets: Option<*const u32>) { - (windows_core::Interface::vtable(self).SOSetTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(numbuffers), core::mem::transmute(ppsotargets.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } pub unsafe fn DrawAuto(&self) { (windows_core::Interface::vtable(self).DrawAuto)(windows_core::Interface::as_raw(self)) @@ -8140,22 +8119,22 @@ impl ID3D11DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), core::mem::transmute(alignedbyteoffsetforargs)) + (windows_core::Interface::vtable(self).DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn DrawInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), core::mem::transmute(alignedbyteoffsetforargs)) + (windows_core::Interface::vtable(self).DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn Dispatch(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { - (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), core::mem::transmute(threadgroupcountx), core::mem::transmute(threadgroupcounty), core::mem::transmute(threadgroupcountz)) + (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn DispatchIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), core::mem::transmute(alignedbyteoffsetforargs)) + (windows_core::Interface::vtable(self).DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where @@ -8174,7 +8153,7 @@ impl ID3D11DeviceContext { P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(dstx), core::mem::transmute(dsty), core::mem::transmute(dstz), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where @@ -8187,14 +8166,14 @@ impl ID3D11DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrcdata), core::mem::transmute(srcrowpitch), core::mem::transmute(srcdepthpitch)) + (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn CopyStructureCount(&self, pdstbuffer: P0, dstalignedbyteoffset: u32, psrcview: P2) where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), core::mem::transmute(dstalignedbyteoffset), psrcview.param().abi()) + (windows_core::Interface::vtable(self).CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), dstalignedbyteoffset, psrcview.param().abi()) } pub unsafe fn ClearRenderTargetView(&self, prendertargetview: P0, colorrgba: &[f32; 4]) where @@ -8218,7 +8197,7 @@ impl ID3D11DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), core::mem::transmute(clearflags), core::mem::transmute(depth), core::mem::transmute(stencil)) + (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where @@ -8230,7 +8209,7 @@ impl ID3D11DeviceContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(minlod)) + (windows_core::Interface::vtable(self).SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi(), minlod) } pub unsafe fn GetResourceMinLOD(&self, presource: P0) -> f32 where @@ -8244,7 +8223,7 @@ impl ID3D11DeviceContext { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(format)) + (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } pub unsafe fn ExecuteCommandList(&self, pcommandlist: P0, restorecontextstate: bool) where @@ -8253,7 +8232,7 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.param().abi(), restorecontextstate.into()) } pub unsafe fn HSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).HSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).HSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn HSSetShader(&self, phullshader: P0, ppclassinstances: Option<&[Option]>) where @@ -8262,13 +8241,13 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).HSSetShader)(windows_core::Interface::as_raw(self), phullshader.param().abi(), core::mem::transmute(ppclassinstances.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppclassinstances.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn HSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).HSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).HSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn HSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).HSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).HSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn DSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).DSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).DSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn DSSetShader(&self, pdomainshader: P0, ppclassinstances: Option<&[Option]>) where @@ -8277,16 +8256,16 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).DSSetShader)(windows_core::Interface::as_raw(self), pdomainshader.param().abi(), core::mem::transmute(ppclassinstances.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppclassinstances.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn DSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).DSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).DSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn DSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).DSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).DSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { - (windows_core::Interface::vtable(self).CSSetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSSetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSSetUnorderedAccessViews(&self, startslot: u32, numuavs: u32, ppunorderedaccessviews: Option<*const Option>, puavinitialcounts: Option<*const u32>) { - (windows_core::Interface::vtable(self).CSSetUnorderedAccessViews)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numuavs), core::mem::transmute(ppunorderedaccessviews.unwrap_or(core::mem::zeroed())), core::mem::transmute(puavinitialcounts.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).CSSetUnorderedAccessViews)(windows_core::Interface::as_raw(self), startslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(core::mem::zeroed())), core::mem::transmute(puavinitialcounts.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CSSetShader(&self, pcomputeshader: P0, ppclassinstances: Option<&[Option]>) where @@ -8295,28 +8274,28 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).CSSetShader)(windows_core::Interface::as_raw(self), pcomputeshader.param().abi(), core::mem::transmute(ppclassinstances.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppclassinstances.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn CSSetSamplers(&self, startslot: u32, ppsamplers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).CSSetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSSetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { - (windows_core::Interface::vtable(self).CSSetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSSetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).VSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).PSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn PSGetShader(&self, pppixelshader: *mut Option, ppclassinstances: Option<*mut Option>, pnumclassinstances: Option<*mut u32>) { (windows_core::Interface::vtable(self).PSGetShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pppixelshader), core::mem::transmute(ppclassinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumclassinstances.unwrap_or(core::mem::zeroed()))) } pub unsafe fn PSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).PSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSGetShader(&self, ppvertexshader: *mut Option, ppclassinstances: Option<*mut Option>, pnumclassinstances: Option<*mut u32>) { (windows_core::Interface::vtable(self).VSGetShader)(windows_core::Interface::as_raw(self), core::mem::transmute(ppvertexshader), core::mem::transmute(ppclassinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumclassinstances.unwrap_or(core::mem::zeroed()))) } pub unsafe fn PSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).PSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).PSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn IAGetInputLayout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8324,14 +8303,14 @@ impl ID3D11DeviceContext { windows_core::Type::from_abi(result__) } pub unsafe fn IAGetVertexBuffers(&self, startslot: u32, numbuffers: u32, ppvertexbuffers: Option<*mut Option>, pstrides: Option<*mut u32>, poffsets: Option<*mut u32>) { - (windows_core::Interface::vtable(self).IAGetVertexBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).IAGetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrides.unwrap_or(core::mem::zeroed())), core::mem::transmute(poffsets.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn IAGetIndexBuffer(&self, pindexbuffer: Option<*mut Option>, format: Option<*mut super::Dxgi::Common::DXGI_FORMAT>, offset: Option<*mut u32>) { (windows_core::Interface::vtable(self).IAGetIndexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pindexbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(format.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).GSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSGetShader(&self, ppgeometryshader: *mut Option, ppclassinstances: Option<*mut Option>, pnumclassinstances: Option<*mut u32>) { (windows_core::Interface::vtable(self).GSGetShader)(windows_core::Interface::as_raw(self), core::mem::transmute(ppgeometryshader), core::mem::transmute(ppclassinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumclassinstances.unwrap_or(core::mem::zeroed()))) @@ -8343,19 +8322,19 @@ impl ID3D11DeviceContext { result__ } pub unsafe fn VSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).VSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn VSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).VSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GetPredication(&self, pppredicate: Option<*mut Option>, ppredicatevalue: Option<*mut super::super::Foundation::BOOL>) { (windows_core::Interface::vtable(self).GetPredication)(windows_core::Interface::as_raw(self), core::mem::transmute(pppredicate.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppredicatevalue.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).GSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn GSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).GSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).GSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn OMGetRenderTargets(&self, pprendertargetviews: Option<&mut [Option]>, ppdepthstencilview: Option<*mut Option>) { (windows_core::Interface::vtable(self).OMGetRenderTargets)(windows_core::Interface::as_raw(self), pprendertargetviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pprendertargetviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppdepthstencilview.unwrap_or(core::mem::zeroed()))) @@ -8366,7 +8345,7 @@ impl ID3D11DeviceContext { pprendertargetviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pprendertargetviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppdepthstencilview.unwrap_or(core::mem::zeroed())), - core::mem::transmute(uavstartslot), + uavstartslot, ppunorderedaccessviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppunorderedaccessviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ) @@ -8392,43 +8371,43 @@ impl ID3D11DeviceContext { (windows_core::Interface::vtable(self).RSGetScissorRects)(windows_core::Interface::as_raw(self), core::mem::transmute(pnumrects), core::mem::transmute(prects.unwrap_or(core::mem::zeroed()))) } pub unsafe fn HSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).HSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).HSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn HSGetShader(&self, pphullshader: *mut Option, ppclassinstances: Option<*mut Option>, pnumclassinstances: Option<*mut u32>) { (windows_core::Interface::vtable(self).HSGetShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pphullshader), core::mem::transmute(ppclassinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumclassinstances.unwrap_or(core::mem::zeroed()))) } pub unsafe fn HSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).HSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).HSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn HSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).HSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).HSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn DSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).DSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).DSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn DSGetShader(&self, ppdomainshader: *mut Option, ppclassinstances: Option<*mut Option>, pnumclassinstances: Option<*mut u32>) { (windows_core::Interface::vtable(self).DSGetShader)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdomainshader), core::mem::transmute(ppclassinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumclassinstances.unwrap_or(core::mem::zeroed()))) } pub unsafe fn DSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).DSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).DSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn DSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).DSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).DSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).CSGetShaderResources)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSGetShaderResources)(windows_core::Interface::as_raw(self), startslot, ppshaderresourceviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppshaderresourceviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSGetUnorderedAccessViews(&self, startslot: u32, ppunorderedaccessviews: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).CSGetUnorderedAccessViews)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppunorderedaccessviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppunorderedaccessviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSGetUnorderedAccessViews)(windows_core::Interface::as_raw(self), startslot, ppunorderedaccessviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppunorderedaccessviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSGetShader(&self, ppcomputeshader: *mut Option, ppclassinstances: Option<*mut Option>, pnumclassinstances: Option<*mut u32>) { (windows_core::Interface::vtable(self).CSGetShader)(windows_core::Interface::as_raw(self), core::mem::transmute(ppcomputeshader), core::mem::transmute(ppclassinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumclassinstances.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).CSGetSamplers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn CSGetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&mut [Option]>) { - (windows_core::Interface::vtable(self).CSGetConstantBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).CSGetConstantBuffers)(windows_core::Interface::as_raw(self), startslot, ppconstantbuffers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppconstantbuffers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self)) @@ -9255,13 +9234,13 @@ impl ID3D11DeviceContext1 { P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(dstx), core::mem::transmute(dsty), core::mem::transmute(dstz), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed())), core::mem::transmute(copyflags)) + (windows_core::Interface::vtable(self).CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed())), copyflags) } pub unsafe fn UpdateSubresource1(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32, copyflags: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrcdata), core::mem::transmute(srcrowpitch), core::mem::transmute(srcdepthpitch), core::mem::transmute(copyflags)) + (windows_core::Interface::vtable(self).UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) } pub unsafe fn DiscardResource(&self, presource: P0) where @@ -9276,40 +9255,40 @@ impl ID3D11DeviceContext1 { (windows_core::Interface::vtable(self).DiscardView)(windows_core::Interface::as_raw(self), presourceview.param().abi()) } pub unsafe fn VSSetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*const Option>, pfirstconstant: Option<*const u32>, pnumconstants: Option<*const u32>) { - (windows_core::Interface::vtable(self).VSSetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn HSSetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*const Option>, pfirstconstant: Option<*const u32>, pnumconstants: Option<*const u32>) { - (windows_core::Interface::vtable(self).HSSetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).HSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn DSSetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*const Option>, pfirstconstant: Option<*const u32>, pnumconstants: Option<*const u32>) { - (windows_core::Interface::vtable(self).DSSetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).DSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GSSetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*const Option>, pfirstconstant: Option<*const u32>, pnumconstants: Option<*const u32>) { - (windows_core::Interface::vtable(self).GSSetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).GSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn PSSetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*const Option>, pfirstconstant: Option<*const u32>, pnumconstants: Option<*const u32>) { - (windows_core::Interface::vtable(self).PSSetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).PSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CSSetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*const Option>, pfirstconstant: Option<*const u32>, pnumconstants: Option<*const u32>) { - (windows_core::Interface::vtable(self).CSSetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).CSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn VSGetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*mut Option>, pfirstconstant: Option<*mut u32>, pnumconstants: Option<*mut u32>) { - (windows_core::Interface::vtable(self).VSGetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VSGetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn HSGetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*mut Option>, pfirstconstant: Option<*mut u32>, pnumconstants: Option<*mut u32>) { - (windows_core::Interface::vtable(self).HSGetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).HSGetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn DSGetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*mut Option>, pfirstconstant: Option<*mut u32>, pnumconstants: Option<*mut u32>) { - (windows_core::Interface::vtable(self).DSGetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).DSGetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GSGetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*mut Option>, pfirstconstant: Option<*mut u32>, pnumconstants: Option<*mut u32>) { - (windows_core::Interface::vtable(self).GSGetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).GSGetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn PSGetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*mut Option>, pfirstconstant: Option<*mut u32>, pnumconstants: Option<*mut u32>) { - (windows_core::Interface::vtable(self).PSGetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).PSGetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CSGetConstantBuffers1(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: Option<*mut Option>, pfirstconstant: Option<*mut u32>, pnumconstants: Option<*mut u32>) { - (windows_core::Interface::vtable(self).CSGetConstantBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), core::mem::transmute(numbuffers), core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).CSGetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfirstconstant.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumconstants.unwrap_or(core::mem::zeroed()))) } pub unsafe fn SwapDeviceContextState(&self, pstate: P0, pppreviousstate: Option<*mut Option>) where @@ -9504,15 +9483,15 @@ impl ID3D11DeviceContext2 { (windows_core::Interface::vtable(self).UpdateTileMappings)( windows_core::Interface::as_raw(self), ptiledresource.param().abi(), - core::mem::transmute(numtiledresourceregions), + numtiledresourceregions, core::mem::transmute(ptiledresourceregionstartcoordinates.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptiledresourceregionsizes.unwrap_or(core::mem::zeroed())), ptilepool.param().abi(), - core::mem::transmute(numranges), + numranges, core::mem::transmute(prangeflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptilepoolstartoffsets.unwrap_or(core::mem::zeroed())), core::mem::transmute(prangetilecounts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(flags), + flags, ) .ok() } @@ -9521,26 +9500,26 @@ impl ID3D11DeviceContext2 { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTileMappings)(windows_core::Interface::as_raw(self), pdesttiledresource.param().abi(), core::mem::transmute(pdestregionstartcoordinate), psourcetiledresource.param().abi(), core::mem::transmute(psourceregionstartcoordinate), core::mem::transmute(ptileregionsize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).CopyTileMappings)(windows_core::Interface::as_raw(self), pdesttiledresource.param().abi(), pdestregionstartcoordinate, psourcetiledresource.param().abi(), psourceregionstartcoordinate, ptileregionsize, flags).ok() } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, pbuffer: P3, bufferstartoffsetinbytes: u64, flags: u32) where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(ptileregionstartcoordinate), core::mem::transmute(ptileregionsize), pbuffer.param().abi(), core::mem::transmute(bufferstartoffsetinbytes), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.param().abi(), bufferstartoffsetinbytes, flags) } pub unsafe fn UpdateTiles(&self, pdesttiledresource: P0, pdesttileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, pdesttileregionsize: *const D3D11_TILE_REGION_SIZE, psourcetiledata: *const core::ffi::c_void, flags: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTiles)(windows_core::Interface::as_raw(self), pdesttiledresource.param().abi(), core::mem::transmute(pdesttileregionstartcoordinate), core::mem::transmute(pdesttileregionsize), core::mem::transmute(psourcetiledata), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).UpdateTiles)(windows_core::Interface::as_raw(self), pdesttiledresource.param().abi(), pdesttileregionstartcoordinate, pdesttileregionsize, psourcetiledata, flags) } pub unsafe fn ResizeTilePool(&self, ptilepool: P0, newsizeinbytes: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.param().abi(), core::mem::transmute(newsizeinbytes)).ok() + (windows_core::Interface::vtable(self).ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.param().abi(), newsizeinbytes).ok() } pub unsafe fn TiledResourceBarrier(&self, ptiledresourceorviewaccessbeforebarrier: P0, ptiledresourceorviewaccessafterbarrier: P1) where @@ -9556,13 +9535,13 @@ impl ID3D11DeviceContext2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), core::mem::transmute(data)) + (windows_core::Interface::vtable(self).SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), data) } pub unsafe fn BeginEventInt(&self, plabel: P0, data: i32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginEventInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), core::mem::transmute(data)) + (windows_core::Interface::vtable(self).BeginEventInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), data) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) @@ -9685,7 +9664,7 @@ impl core::ops::Deref for ID3D11DeviceContext3 { windows_core::imp::interface_hierarchy!(ID3D11DeviceContext3, windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1, ID3D11DeviceContext2); impl ID3D11DeviceContext3 { pub unsafe fn Flush1(&self, contexttype: D3D11_CONTEXT_TYPE, hevent: Option) { - (windows_core::Interface::vtable(self).Flush1)(windows_core::Interface::as_raw(self), core::mem::transmute(contexttype), core::mem::transmute(hevent.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).Flush1)(windows_core::Interface::as_raw(self), contexttype, core::mem::transmute(hevent.unwrap_or(core::mem::zeroed()))) } pub unsafe fn SetHardwareProtectionState(&self, hwprotectionenable: bool) { (windows_core::Interface::vtable(self).SetHardwareProtectionState)(windows_core::Interface::as_raw(self), hwprotectionenable.into()) @@ -9754,13 +9733,13 @@ impl ID3D11DeviceContext4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), pfence.param().abi(), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), pfence.param().abi(), value).ok() } pub unsafe fn Wait(&self, pfence: P0, value: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.param().abi(), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.param().abi(), value).ok() } } #[repr(C)] @@ -9836,13 +9815,13 @@ impl ID3D11Fence { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwaccess), lpname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed())), dwaccess, lpname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetCompletedValue(&self) -> u64 { (windows_core::Interface::vtable(self).GetCompletedValue)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetEventOnCompletion(&self, value: u64, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent).ok() } } #[repr(C)] @@ -9930,7 +9909,7 @@ impl ID3D11FunctionLinkingGraph { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PassValue)(windows_core::Interface::as_raw(self), psrcnode.param().abi(), core::mem::transmute(srcparameterindex), pdstnode.param().abi(), core::mem::transmute(dstparameterindex)).ok() + (windows_core::Interface::vtable(self).PassValue)(windows_core::Interface::as_raw(self), psrcnode.param().abi(), srcparameterindex, pdstnode.param().abi(), dstparameterindex).ok() } pub unsafe fn PassValueWithSwizzle(&self, psrcnode: P0, srcparameterindex: i32, psrcswizzle: P2, pdstnode: P3, dstparameterindex: i32, pdstswizzle: P5) -> windows_core::Result<()> where @@ -9939,7 +9918,7 @@ impl ID3D11FunctionLinkingGraph { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).PassValueWithSwizzle)(windows_core::Interface::as_raw(self), psrcnode.param().abi(), core::mem::transmute(srcparameterindex), psrcswizzle.param().abi(), pdstnode.param().abi(), core::mem::transmute(dstparameterindex), pdstswizzle.param().abi()).ok() + (windows_core::Interface::vtable(self).PassValueWithSwizzle)(windows_core::Interface::as_raw(self), psrcnode.param().abi(), srcparameterindex, psrcswizzle.param().abi(), pdstnode.param().abi(), dstparameterindex, pdstswizzle.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetLastError(&self, pperrorbuffer: Option<*mut Option>) -> windows_core::Result<()> { @@ -9948,7 +9927,7 @@ impl ID3D11FunctionLinkingGraph { #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GenerateHlsl(&self, uflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateHlsl)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateHlsl)(windows_core::Interface::as_raw(self), uflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10124,7 +10103,7 @@ impl ID3D11FunctionReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, bufferindex: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferindex)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), bufferindex) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -10134,7 +10113,7 @@ impl ID3D11FunctionReflection { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), resourceindex, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -10150,7 +10129,7 @@ impl ID3D11FunctionReflection { (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetFunctionParameter(&self, parameterindex: i32) -> Option { - (windows_core::Interface::vtable(self).GetFunctionParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex)) + (windows_core::Interface::vtable(self).GetFunctionParameter)(windows_core::Interface::as_raw(self), parameterindex) } } #[repr(C)] @@ -10301,13 +10280,13 @@ windows_core::imp::define_interface!(ID3D11InfoQueue, ID3D11InfoQueue_Vtbl, 0x65 windows_core::imp::interface_hierarchy!(ID3D11InfoQueue, windows_core::IUnknown); impl ID3D11InfoQueue { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(messagecountlimit)).ok() + (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), messagecountlimit).ok() } pub unsafe fn ClearStoredMessages(&self) { (windows_core::Interface::vtable(self).ClearStoredMessages)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetMessage(&self, messageindex: u64, pmessage: Option<*mut D3D11_MESSAGE>, pmessagebytelength: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(messageindex), core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), messageindex, core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() } pub unsafe fn GetNumMessagesAllowedByStorageFilter(&self) -> u64 { (windows_core::Interface::vtable(self).GetNumMessagesAllowedByStorageFilter)(windows_core::Interface::as_raw(self)) @@ -10328,7 +10307,7 @@ impl ID3D11InfoQueue { (windows_core::Interface::vtable(self).GetMessageCountLimit)(windows_core::Interface::as_raw(self)) } pub unsafe fn AddStorageFilterEntries(&self, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn GetStorageFilter(&self, pfilter: Option<*mut D3D11_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -10343,7 +10322,7 @@ impl ID3D11InfoQueue { (windows_core::Interface::vtable(self).PushCopyOfStorageFilter)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PushStorageFilter(&self, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn PopStorageFilter(&self) { (windows_core::Interface::vtable(self).PopStorageFilter)(windows_core::Interface::as_raw(self)) @@ -10352,7 +10331,7 @@ impl ID3D11InfoQueue { (windows_core::Interface::vtable(self).GetStorageFilterStackSize)(windows_core::Interface::as_raw(self)) } pub unsafe fn AddRetrievalFilterEntries(&self, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn GetRetrievalFilter(&self, pfilter: Option<*mut D3D11_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -10367,7 +10346,7 @@ impl ID3D11InfoQueue { (windows_core::Interface::vtable(self).PushCopyOfRetrievalFilter)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PushRetrievalFilter(&self, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn PopRetrievalFilter(&self) { (windows_core::Interface::vtable(self).PopRetrievalFilter)(windows_core::Interface::as_raw(self)) @@ -10379,31 +10358,31 @@ impl ID3D11InfoQueue { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(category), core::mem::transmute(severity), core::mem::transmute(id), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.param().abi()).ok() } pub unsafe fn AddApplicationMessage(&self, severity: D3D11_MESSAGE_SEVERITY, pdescription: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.param().abi()).ok() } pub unsafe fn SetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D11_MESSAGE_ID, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(id), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into()).ok() } pub unsafe fn GetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category)) + (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) } pub unsafe fn GetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(severity)) + (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity) } pub unsafe fn GetBreakOnID(&self, id: D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(id)) + (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), id) } pub unsafe fn SetMuteDebugOutput(&self, bmute: bool) { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into()) @@ -10708,7 +10687,7 @@ impl ID3D11LibraryReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetFunctionByIndex(&self, functionindex: i32) -> Option { - (windows_core::Interface::vtable(self).GetFunctionByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(functionindex)) + (windows_core::Interface::vtable(self).GetFunctionByIndex)(windows_core::Interface::as_raw(self), functionindex) } } #[repr(C)] @@ -10760,7 +10739,7 @@ impl ID3D11Linker { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), pentry.param().abi(), pentryname.param().abi(), ptargetname.param().abi(), core::mem::transmute(uflags), core::mem::transmute(ppshaderblob), core::mem::transmute(pperrorbuffer.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), pentry.param().abi(), pentryname.param().abi(), ptargetname.param().abi(), uflags, core::mem::transmute(ppshaderblob), core::mem::transmute(pperrorbuffer.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn UseLibrary(&self, plibrarymi: P0) -> windows_core::Result<()> where @@ -10769,7 +10748,7 @@ impl ID3D11Linker { (windows_core::Interface::vtable(self).UseLibrary)(windows_core::Interface::as_raw(self), plibrarymi.param().abi()).ok() } pub unsafe fn AddClipPlaneFromCBuffer(&self, ucbufferslot: u32, ucbufferentry: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddClipPlaneFromCBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(ucbufferslot), core::mem::transmute(ucbufferentry)).ok() + (windows_core::Interface::vtable(self).AddClipPlaneFromCBuffer)(windows_core::Interface::as_raw(self), ucbufferslot, ucbufferentry).ok() } } #[repr(C)] @@ -10882,49 +10861,49 @@ windows_core::imp::define_interface!(ID3D11ModuleInstance, ID3D11ModuleInstance_ windows_core::imp::interface_hierarchy!(ID3D11ModuleInstance, windows_core::IUnknown); impl ID3D11ModuleInstance { pub unsafe fn BindConstantBuffer(&self, usrcslot: u32, udstslot: u32, cbdstoffset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindConstantBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(usrcslot), core::mem::transmute(udstslot), core::mem::transmute(cbdstoffset)).ok() + (windows_core::Interface::vtable(self).BindConstantBuffer)(windows_core::Interface::as_raw(self), usrcslot, udstslot, cbdstoffset).ok() } pub unsafe fn BindConstantBufferByName(&self, pname: P0, udstslot: u32, cbdstoffset: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindConstantBufferByName)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(udstslot), core::mem::transmute(cbdstoffset)).ok() + (windows_core::Interface::vtable(self).BindConstantBufferByName)(windows_core::Interface::as_raw(self), pname.param().abi(), udstslot, cbdstoffset).ok() } pub unsafe fn BindResource(&self, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindResource)(windows_core::Interface::as_raw(self), core::mem::transmute(usrcslot), core::mem::transmute(udstslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindResource)(windows_core::Interface::as_raw(self), usrcslot, udstslot, ucount).ok() } pub unsafe fn BindResourceByName(&self, pname: P0, udstslot: u32, ucount: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindResourceByName)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(udstslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindResourceByName)(windows_core::Interface::as_raw(self), pname.param().abi(), udstslot, ucount).ok() } pub unsafe fn BindSampler(&self, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindSampler)(windows_core::Interface::as_raw(self), core::mem::transmute(usrcslot), core::mem::transmute(udstslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindSampler)(windows_core::Interface::as_raw(self), usrcslot, udstslot, ucount).ok() } pub unsafe fn BindSamplerByName(&self, pname: P0, udstslot: u32, ucount: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindSamplerByName)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(udstslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindSamplerByName)(windows_core::Interface::as_raw(self), pname.param().abi(), udstslot, ucount).ok() } pub unsafe fn BindUnorderedAccessView(&self, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindUnorderedAccessView)(windows_core::Interface::as_raw(self), core::mem::transmute(usrcslot), core::mem::transmute(udstslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindUnorderedAccessView)(windows_core::Interface::as_raw(self), usrcslot, udstslot, ucount).ok() } pub unsafe fn BindUnorderedAccessViewByName(&self, pname: P0, udstslot: u32, ucount: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(udstslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), pname.param().abi(), udstslot, ucount).ok() } pub unsafe fn BindResourceAsUnorderedAccessView(&self, usrcsrvslot: u32, udstuavslot: u32, ucount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessView)(windows_core::Interface::as_raw(self), core::mem::transmute(usrcsrvslot), core::mem::transmute(udstuavslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessView)(windows_core::Interface::as_raw(self), usrcsrvslot, udstuavslot, ucount).ok() } pub unsafe fn BindResourceAsUnorderedAccessViewByName(&self, psrvname: P0, udstuavslot: u32, ucount: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), psrvname.param().abi(), core::mem::transmute(udstuavslot), core::mem::transmute(ucount)).ok() + (windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), psrvname.param().abi(), udstuavslot, ucount).ok() } } #[repr(C)] @@ -11315,7 +11294,7 @@ windows_core::imp::define_interface!(ID3D11RefDefaultTrackingOptions, ID3D11RefD windows_core::imp::interface_hierarchy!(ID3D11RefDefaultTrackingOptions, windows_core::IUnknown); impl ID3D11RefDefaultTrackingOptions { pub unsafe fn SetTrackingOptions(&self, resourcetypeflags: u32, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrackingOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(resourcetypeflags), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetTrackingOptions)(windows_core::Interface::as_raw(self), resourcetypeflags, options).ok() } } #[repr(C)] @@ -11345,7 +11324,7 @@ windows_core::imp::define_interface!(ID3D11RefTrackingOptions, ID3D11RefTracking windows_core::imp::interface_hierarchy!(ID3D11RefTrackingOptions, windows_core::IUnknown); impl ID3D11RefTrackingOptions { pub unsafe fn SetTrackingOptions(&self, uoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrackingOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(uoptions)).ok() + (windows_core::Interface::vtable(self).SetTrackingOptions)(windows_core::Interface::as_raw(self), uoptions).ok() } } #[repr(C)] @@ -11476,7 +11455,7 @@ impl ID3D11Resource { result__ } pub unsafe fn SetEvictionPriority(&self, evictionpriority: u32) { - (windows_core::Interface::vtable(self).SetEvictionPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(evictionpriority)) + (windows_core::Interface::vtable(self).SetEvictionPriority)(windows_core::Interface::as_raw(self), evictionpriority) } pub unsafe fn GetEvictionPriority(&self) -> u32 { (windows_core::Interface::vtable(self).GetEvictionPriority)(windows_core::Interface::as_raw(self)) @@ -11566,7 +11545,7 @@ impl ID3D11ShaderReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -11576,19 +11555,19 @@ impl ID3D11ShaderReflection { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), resourceindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetInputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetOutputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetPatchConstantParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPatchConstantParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetPatchConstantParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -11831,7 +11810,7 @@ impl ID3D11ShaderReflectionConstantBuffer { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -11901,7 +11880,7 @@ impl ID3D11ShaderReflectionType { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetMemberTypeByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where @@ -11910,7 +11889,7 @@ impl ID3D11ShaderReflectionType { (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberTypeName(&self, index: u32) -> windows_core::PCSTR { - (windows_core::Interface::vtable(self).GetMemberTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeName)(windows_core::Interface::as_raw(self), index) } pub unsafe fn IsEqual(&self, ptype: P0) -> windows_core::Result<()> where @@ -11928,7 +11907,7 @@ impl ID3D11ShaderReflectionType { (windows_core::Interface::vtable(self).GetNumInterfaces)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetInterfaceByIndex(&self, uindex: u32) -> Option { - (windows_core::Interface::vtable(self).GetInterfaceByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex)) + (windows_core::Interface::vtable(self).GetInterfaceByIndex)(windows_core::Interface::as_raw(self), uindex) } pub unsafe fn IsOfType(&self, ptype: P0) -> windows_core::Result<()> where @@ -12077,7 +12056,7 @@ impl ID3D11ShaderReflectionVariable { (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetInterfaceSlot(&self, uarrayindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetInterfaceSlot)(windows_core::Interface::as_raw(self), core::mem::transmute(uarrayindex)) + (windows_core::Interface::vtable(self).GetInterfaceSlot)(windows_core::Interface::as_raw(self), uarrayindex) } } #[repr(C)] @@ -12234,19 +12213,19 @@ impl ID3D11ShaderTrace { (windows_core::Interface::vtable(self).GetTraceStats)(windows_core::Interface::as_raw(self), core::mem::transmute(ptracestats)).ok() } pub unsafe fn PSSelectStamp(&self, stampindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PSSelectStamp)(windows_core::Interface::as_raw(self), core::mem::transmute(stampindex)).ok() + (windows_core::Interface::vtable(self).PSSelectStamp)(windows_core::Interface::as_raw(self), stampindex).ok() } pub unsafe fn GetInitialRegisterContents(&self, pregister: *const D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInitialRegisterContents)(windows_core::Interface::as_raw(self), core::mem::transmute(pregister), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetInitialRegisterContents)(windows_core::Interface::as_raw(self), pregister, core::mem::transmute(pvalue)).ok() } pub unsafe fn GetStep(&self, stepindex: u32, ptracestep: *mut D3D11_TRACE_STEP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStep)(windows_core::Interface::as_raw(self), core::mem::transmute(stepindex), core::mem::transmute(ptracestep)).ok() + (windows_core::Interface::vtable(self).GetStep)(windows_core::Interface::as_raw(self), stepindex, core::mem::transmute(ptracestep)).ok() } pub unsafe fn GetWrittenRegister(&self, stepindex: u32, writtenregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWrittenRegister)(windows_core::Interface::as_raw(self), core::mem::transmute(stepindex), core::mem::transmute(writtenregisterindex), core::mem::transmute(pregister), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetWrittenRegister)(windows_core::Interface::as_raw(self), stepindex, writtenregisterindex, core::mem::transmute(pregister), core::mem::transmute(pvalue)).ok() } pub unsafe fn GetReadRegister(&self, stepindex: u32, readregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetReadRegister)(windows_core::Interface::as_raw(self), core::mem::transmute(stepindex), core::mem::transmute(readregisterindex), core::mem::transmute(pregister), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetReadRegister)(windows_core::Interface::as_raw(self), stepindex, readregisterindex, core::mem::transmute(pregister), core::mem::transmute(pvalue)).ok() } } #[repr(C)] @@ -12332,7 +12311,7 @@ impl ID3D11ShaderTraceFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateShaderTrace)(windows_core::Interface::as_raw(self), pshader.param().abi(), core::mem::transmute(ptracedesc), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateShaderTrace)(windows_core::Interface::as_raw(self), pshader.param().abi(), ptracedesc, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12636,13 +12615,13 @@ windows_core::imp::define_interface!(ID3D11TracingDevice, ID3D11TracingDevice_Vt windows_core::imp::interface_hierarchy!(ID3D11TracingDevice, windows_core::IUnknown); impl ID3D11TracingDevice { pub unsafe fn SetShaderTrackingOptionsByType(&self, resourcetypeflags: u32, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShaderTrackingOptionsByType)(windows_core::Interface::as_raw(self), core::mem::transmute(resourcetypeflags), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetShaderTrackingOptionsByType)(windows_core::Interface::as_raw(self), resourcetypeflags, options).ok() } pub unsafe fn SetShaderTrackingOptions(&self, pshader: P0, options: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShaderTrackingOptions)(windows_core::Interface::as_raw(self), pshader.param().abi(), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetShaderTrackingOptions)(windows_core::Interface::as_raw(self), pshader.param().abi(), options).ok() } } #[repr(C)] @@ -12805,20 +12784,20 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pbuffersize), core::mem::transmute(ppbuffer)).ok() + (windows_core::Interface::vtable(self).GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), r#type, core::mem::transmute(pbuffersize), core::mem::transmute(ppbuffer)).ok() } pub unsafe fn ReleaseDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).ReleaseDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), r#type).ok() } pub unsafe fn DecoderBeginFrame(&self, pdecoder: P0, pview: P1, contentkeysize: u32, pcontentkey: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), core::mem::transmute(contentkeysize), core::mem::transmute(pcontentkey.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DecoderEndFrame(&self, pdecoder: P0) -> windows_core::Result<()> where @@ -12836,7 +12815,7 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), core::mem::transmute(pextensiondata)) + (windows_core::Interface::vtable(self).DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pextensiondata) } pub unsafe fn VideoProcessorSetOutputTargetRect(&self, pvideoprocessor: P0, enable: bool, prect: Option<*const super::super::Foundation::RECT>) where @@ -12848,19 +12827,19 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ycbcr.into(), core::mem::transmute(pcolor)) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ycbcr.into(), pcolor) } pub unsafe fn VideoProcessorSetOutputColorSpace(&self, pvideoprocessor: P0, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(pcolorspace)) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pcolorspace) } pub unsafe fn VideoProcessorSetOutputAlphaFillMode(&self, pvideoprocessor: P0, alphafillmode: D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, streamindex: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(alphafillmode), core::mem::transmute(streamindex)) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), alphafillmode, streamindex) } pub unsafe fn VideoProcessorSetOutputConstriction(&self, pvideoprocessor: P0, enable: bool, size: super::super::Foundation::SIZE) where @@ -12878,7 +12857,7 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(pextensionguid), core::mem::transmute(datasize), core::mem::transmute(pdata)) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorGetOutputTargetRect(&self, pvideoprocessor: P0, enabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) where @@ -12924,94 +12903,94 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(pextensionguid), core::mem::transmute(datasize), core::mem::transmute(pdata)) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, core::mem::transmute(pdata)) } pub unsafe fn VideoProcessorSetStreamFrameFormat(&self, pvideoprocessor: P0, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(frameformat)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, frameformat) } pub unsafe fn VideoProcessorSetStreamColorSpace(&self, pvideoprocessor: P0, streamindex: u32, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(pcolorspace)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pcolorspace) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorSetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: bool, pcustomrate: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(outputrate), repeatframe.into(), core::mem::transmute(pcustomrate.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, outputrate, repeatframe.into(), core::mem::transmute(pcustomrate.unwrap_or(core::mem::zeroed()))) } pub unsafe fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, prect: Option<*const super::super::Foundation::RECT>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(prect.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), core::mem::transmute(prect.unwrap_or(core::mem::zeroed()))) } pub unsafe fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, prect: Option<*const super::super::Foundation::RECT>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(prect.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), core::mem::transmute(prect.unwrap_or(core::mem::zeroed()))) } pub unsafe fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, alpha: f32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(alpha)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), alpha) } pub unsafe fn VideoProcessorSetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: Option<&[u32]>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), pentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorSetStreamPixelAspectRatio(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, psourceaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>, pdestinationaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(psourceaspectratio.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdestinationaspectratio.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), core::mem::transmute(psourceaspectratio.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdestinationaspectratio.unwrap_or(core::mem::zeroed()))) } pub unsafe fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, lower: f32, upper: f32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(lower), core::mem::transmute(upper)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), lower, upper) } pub unsafe fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: bool, baseviewframe0: bool, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(format), leftviewframe0.into(), baseviewframe0.into(), core::mem::transmute(flipmode), core::mem::transmute(monooffset)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), format, leftviewframe0.into(), baseviewframe0.into(), flipmode, monooffset) } pub unsafe fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32, enable: bool) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into()) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into()) } pub unsafe fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: bool, level: i32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(filter), enable.into(), core::mem::transmute(level)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, enable.into(), level) } pub unsafe fn VideoProcessorSetStreamExtension(&self, pvideoprocessor: P0, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(pextensionguid), core::mem::transmute(datasize), core::mem::transmute(pdata)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorGetStreamFrameFormat(&self, pvideoprocessor: P0, streamindex: u32) -> D3D11_VIDEO_FRAME_FORMAT where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } pub unsafe fn VideoProcessorGetStreamColorSpace(&self, pvideoprocessor: P0, streamindex: u32) -> D3D11_VIDEO_PROCESSOR_COLOR_SPACE @@ -13019,7 +12998,7 @@ impl ID3D11VideoContext { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -13027,83 +13006,83 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(poutputrate), core::mem::transmute(prepeatframe), core::mem::transmute(pcustomrate)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(poutputrate), core::mem::transmute(prepeatframe), core::mem::transmute(pcustomrate)) } pub unsafe fn VideoProcessorGetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penabled), core::mem::transmute(prect)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penabled), core::mem::transmute(prect)) } pub unsafe fn VideoProcessorGetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penabled), core::mem::transmute(prect)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penabled), core::mem::transmute(prect)) } pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penabled), core::mem::transmute(palpha)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penabled), core::mem::transmute(palpha)) } pub unsafe fn VideoProcessorGetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: &mut [u32]) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), pentries.len().try_into().unwrap(), core::mem::transmute(pentries.as_ptr())) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pentries.len().try_into().unwrap(), core::mem::transmute(pentries.as_ptr())) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamPixelAspectRatio(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penabled), core::mem::transmute(psourceaspectratio), core::mem::transmute(pdestinationaspectratio)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penabled), core::mem::transmute(psourceaspectratio), core::mem::transmute(pdestinationaspectratio)) } pub unsafe fn VideoProcessorGetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, plower: *mut f32, pupper: *mut f32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penabled), core::mem::transmute(plower), core::mem::transmute(pupper)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penabled), core::mem::transmute(plower), core::mem::transmute(pupper)) } pub unsafe fn VideoProcessorGetStreamStereoFormat(&self, pvideoprocessor: P0, 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 P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penable), core::mem::transmute(pformat), core::mem::transmute(pleftviewframe0), core::mem::transmute(pbaseviewframe0), core::mem::transmute(pflipmode), core::mem::transmute(monooffset)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penable), core::mem::transmute(pformat), core::mem::transmute(pleftviewframe0), core::mem::transmute(pbaseviewframe0), core::mem::transmute(pflipmode), core::mem::transmute(monooffset)) } pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> super::super::Foundation::BOOL where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } pub unsafe fn VideoProcessorGetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut super::super::Foundation::BOOL, plevel: *mut i32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(filter), core::mem::transmute(penabled), core::mem::transmute(plevel)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, core::mem::transmute(penabled), core::mem::transmute(plevel)) } pub unsafe fn VideoProcessorGetStreamExtension(&self, pvideoprocessor: P0, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(pextensionguid), core::mem::transmute(datasize), core::mem::transmute(pdata)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pextensionguid, datasize, core::mem::transmute(pdata)) } pub unsafe fn VideoProcessorBlt(&self, pvideoprocessor: P0, pview: P1, outputframe: u32, pstreams: &[D3D11_VIDEO_PROCESSOR_STREAM]) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorBlt)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pview.param().abi(), core::mem::transmute(outputframe), pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() + (windows_core::Interface::vtable(self).VideoProcessorBlt)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pview.param().abi(), outputframe, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() } pub unsafe fn NegotiateCryptoSessionKeyExchange(&self, pcryptosession: P0, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), datasize, core::mem::transmute(pdata)).ok() } pub unsafe fn EncryptionBlt(&self, pcryptosession: P0, psrcsurface: P1, pdstsurface: P2, ivsize: u32, piv: Option<*mut core::ffi::c_void>) where @@ -13111,7 +13090,7 @@ impl ID3D11VideoContext { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(ivsize), core::mem::transmute(piv.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(core::mem::zeroed()))) } pub unsafe fn DecryptionBlt(&self, pcryptosession: P0, psrcsurface: P1, pdstsurface: P2, pencryptedblockinfo: Option<*const D3D11_ENCRYPTED_BLOCK_INFO>, contentkeysize: u32, pcontentkey: Option<*const core::ffi::c_void>, ivsize: u32, piv: Option<*mut core::ffi::c_void>) where @@ -13119,13 +13098,13 @@ impl ID3D11VideoContext { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(contentkeysize), core::mem::transmute(pcontentkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(ivsize), core::mem::transmute(piv.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(core::mem::zeroed())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(core::mem::zeroed())), ivsize, core::mem::transmute(piv.unwrap_or(core::mem::zeroed()))) } pub unsafe fn StartSessionKeyRefresh(&self, pcryptosession: P0, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), core::mem::transmute(randomnumbersize), core::mem::transmute(prandomnumber)) + (windows_core::Interface::vtable(self).StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), randomnumbersize, core::mem::transmute(prandomnumber)) } pub unsafe fn FinishSessionKeyRefresh(&self, pcryptosession: P0) where @@ -13137,37 +13116,37 @@ impl ID3D11VideoContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), core::mem::transmute(keysize), core::mem::transmute(preadbackkey)).ok() + (windows_core::Interface::vtable(self).GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), keysize, core::mem::transmute(preadbackkey)).ok() } pub unsafe fn NegotiateAuthenticatedChannelKeyExchange(&self, pchannel: P0, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.param().abi(), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.param().abi(), datasize, core::mem::transmute(pdata)).ok() } pub unsafe fn QueryAuthenticatedChannel(&self, pchannel: P0, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), core::mem::transmute(inputsize), core::mem::transmute(pinput), core::mem::transmute(outputsize), core::mem::transmute(poutput)).ok() + (windows_core::Interface::vtable(self).QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, outputsize, core::mem::transmute(poutput)).ok() } pub unsafe fn ConfigureAuthenticatedChannel(&self, pchannel: P0, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut D3D11_AUTHENTICATED_CONFIGURE_OUTPUT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), core::mem::transmute(inputsize), core::mem::transmute(pinput), core::mem::transmute(poutput)).ok() + (windows_core::Interface::vtable(self).ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, core::mem::transmute(poutput)).ok() } pub unsafe fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), core::mem::transmute(rotation)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), rotation) } pub unsafe fn VideoProcessorGetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penable), core::mem::transmute(protation)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penable), core::mem::transmute(protation)) } } #[repr(C)] @@ -13646,21 +13625,21 @@ impl ID3D11VideoContext1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderEnableDownsampling)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), core::mem::transmute(inputcolorspace), core::mem::transmute(poutputdesc), core::mem::transmute(referenceframecount)).ok() + (windows_core::Interface::vtable(self).DecoderEnableDownsampling)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), inputcolorspace, poutputdesc, referenceframecount).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn DecoderUpdateDownsampling(&self, pdecoder: P0, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderUpdateDownsampling)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), core::mem::transmute(poutputdesc)).ok() + (windows_core::Interface::vtable(self).DecoderUpdateDownsampling)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputdesc).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorSetOutputColorSpace1(&self, pvideoprocessor: P0, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(colorspace)) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), colorspace) } pub unsafe fn VideoProcessorSetOutputShaderUsage(&self, pvideoprocessor: P0, shaderusage: bool) where @@ -13690,13 +13669,13 @@ impl ID3D11VideoContext1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(colorspace)) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, colorspace) } pub unsafe fn VideoProcessorSetStreamMirror(&self, pvideoprocessor: P0, streamindex: u32, enable: bool, fliphorizontal: bool, flipvertical: bool) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), enable.into(), fliphorizontal.into(), flipvertical.into()) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), fliphorizontal.into(), flipvertical.into()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE @@ -13704,14 +13683,14 @@ impl ID3D11VideoContext1 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } pub unsafe fn VideoProcessorGetStreamMirror(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pfliphorizontal: *mut super::super::Foundation::BOOL, pflipvertical: *mut super::super::Foundation::BOOL) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(penable), core::mem::transmute(pfliphorizontal), core::mem::transmute(pflipvertical)) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(penable), core::mem::transmute(pfliphorizontal), core::mem::transmute(pflipvertical)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetBehaviorHints(&self, pvideoprocessor: P0, outputwidth: u32, outputheight: u32, outputformat: super::Dxgi::Common::DXGI_FORMAT, pstreams: &[D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT]) -> windows_core::Result @@ -13719,7 +13698,7 @@ impl ID3D11VideoContext1 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetBehaviorHints)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(outputwidth), core::mem::transmute(outputheight), core::mem::transmute(outputformat), pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VideoProcessorGetBehaviorHints)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), outputwidth, outputheight, outputformat, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr()), &mut result__).map(|| result__) } } #[repr(C)] @@ -13897,28 +13876,28 @@ impl ID3D11VideoContext2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(r#type), core::mem::transmute(size), core::mem::transmute(phdrmetadata.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn VideoProcessorGetOutputHDRMetaData(&self, pvideoprocessor: P0, ptype: *mut super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: Option<*mut core::ffi::c_void>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(ptype), core::mem::transmute(size), core::mem::transmute(pmetadata.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(ptype), size, core::mem::transmute(pmetadata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn VideoProcessorSetStreamHDRMetaData(&self, pvideoprocessor: P0, streamindex: u32, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: Option<*const core::ffi::c_void>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(r#type), core::mem::transmute(size), core::mem::transmute(phdrmetadata.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn VideoProcessorGetStreamHDRMetaData(&self, pvideoprocessor: P0, streamindex: u32, ptype: *mut super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: Option<*mut core::ffi::c_void>) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), core::mem::transmute(streamindex), core::mem::transmute(ptype), core::mem::transmute(size), core::mem::transmute(pmetadata.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, core::mem::transmute(ptype), size, core::mem::transmute(pmetadata.unwrap_or(core::mem::zeroed()))) } } #[repr(C)] @@ -13999,7 +13978,7 @@ impl ID3D11VideoContext3 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderBeginFrame1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), core::mem::transmute(contentkeysize), core::mem::transmute(pcontentkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(numcomponenthistograms), core::mem::transmute(phistogramoffsets.unwrap_or(core::mem::zeroed())), core::mem::transmute(pphistogrambuffers.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DecoderBeginFrame1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(core::mem::zeroed())), numcomponenthistograms, core::mem::transmute(phistogramoffsets.unwrap_or(core::mem::zeroed())), core::mem::transmute(pphistogrambuffers.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SubmitDecoderBuffers2(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC2]) -> windows_core::Result<()> where @@ -14153,84 +14132,84 @@ impl ID3D11VideoDevice { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoDecoder(&self, pvideodesc: *const D3D11_VIDEO_DECODER_DESC, pconfig: *const D3D11_VIDEO_DECODER_CONFIG) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoDecoder)(windows_core::Interface::as_raw(self), core::mem::transmute(pvideodesc), core::mem::transmute(pconfig), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoDecoder)(windows_core::Interface::as_raw(self), pvideodesc, pconfig, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateVideoProcessor(&self, penum: P0, rateconversionindex: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), penum.param().abi(), core::mem::transmute(rateconversionindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), penum.param().abi(), rateconversionindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAuthenticatedChannel(&self, channeltype: D3D11_AUTHENTICATED_CHANNEL_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAuthenticatedChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(channeltype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAuthenticatedChannel)(windows_core::Interface::as_raw(self), channeltype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCryptoSession(&self, pcryptotype: *const windows_core::GUID, pdecoderprofile: Option<*const windows_core::GUID>, pkeyexchangetype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCryptoSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pcryptotype), core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pkeyexchangetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCryptoSession)(windows_core::Interface::as_raw(self), pcryptotype, core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), pkeyexchangetype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateVideoDecoderOutputView(&self, presource: P0, pdesc: *const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC, ppvdovview: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc), core::mem::transmute(ppvdovview.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateVideoProcessorInputView(&self, presource: P0, penum: P1, pdesc: *const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC, ppvpiview: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), core::mem::transmute(pdesc), core::mem::transmute(ppvpiview.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), pdesc, core::mem::transmute(ppvpiview.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateVideoProcessorOutputView(&self, presource: P0, penum: P1, pdesc: *const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC, ppvpoview: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), core::mem::transmute(pdesc), core::mem::transmute(ppvpoview.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), pdesc, core::mem::transmute(ppvpoview.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessorEnumerator(&self, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoProcessorEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoProcessorEnumerator)(windows_core::Interface::as_raw(self), pdesc, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetVideoDecoderProfileCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetVideoDecoderProfileCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetVideoDecoderProfile(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVideoDecoderProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVideoDecoderProfile)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckVideoDecoderFormat(&self, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckVideoDecoderFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pdecoderprofile), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckVideoDecoderFormat)(windows_core::Interface::as_raw(self), pdecoderprofile, format, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetVideoDecoderConfigCount(&self, pdesc: *const D3D11_VIDEO_DECODER_DESC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVideoDecoderConfigCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVideoDecoderConfigCount)(windows_core::Interface::as_raw(self), pdesc, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetVideoDecoderConfig(&self, pdesc: *const D3D11_VIDEO_DECODER_DESC, index: u32, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoDecoderConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(index), core::mem::transmute(pconfig)).ok() + (windows_core::Interface::vtable(self).GetVideoDecoderConfig)(windows_core::Interface::as_raw(self), pdesc, index, core::mem::transmute(pconfig)).ok() } pub unsafe fn GetContentProtectionCaps(&self, pcryptotype: Option<*const windows_core::GUID>, pdecoderprofile: Option<*const windows_core::GUID>, pcaps: *mut D3D11_VIDEO_CONTENT_PROTECTION_CAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetContentProtectionCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pcryptotype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcaps)).ok() } pub unsafe fn CheckCryptoKeyExchange(&self, pcryptotype: *const windows_core::GUID, pdecoderprofile: Option<*const windows_core::GUID>, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckCryptoKeyExchange)(windows_core::Interface::as_raw(self), core::mem::transmute(pcryptotype), core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckCryptoKeyExchange)(windows_core::Interface::as_raw(self), pcryptotype, core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), index, &mut result__).map(|| result__) } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), pdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } #[repr(C)] @@ -14455,21 +14434,21 @@ impl core::ops::Deref for ID3D11VideoDevice1 { windows_core::imp::interface_hierarchy!(ID3D11VideoDevice1, windows_core::IUnknown, ID3D11VideoDevice); impl ID3D11VideoDevice1 { pub unsafe fn GetCryptoSessionPrivateDataSize(&self, pcryptotype: *const windows_core::GUID, pdecoderprofile: Option<*const windows_core::GUID>, pkeyexchangetype: *const windows_core::GUID, pprivateinputsize: *mut u32, pprivateoutputsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCryptoSessionPrivateDataSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcryptotype), core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pkeyexchangetype), core::mem::transmute(pprivateinputsize), core::mem::transmute(pprivateoutputsize)).ok() + (windows_core::Interface::vtable(self).GetCryptoSessionPrivateDataSize)(windows_core::Interface::as_raw(self), pcryptotype, core::mem::transmute(pdecoderprofile.unwrap_or(core::mem::zeroed())), pkeyexchangetype, core::mem::transmute(pprivateinputsize), core::mem::transmute(pprivateoutputsize)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetVideoDecoderCaps(&self, pdecoderprofile: *const windows_core::GUID, samplewidth: u32, sampleheight: u32, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, bitrate: u32, pcryptotype: Option<*const windows_core::GUID>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVideoDecoderCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pdecoderprofile), core::mem::transmute(samplewidth), core::mem::transmute(sampleheight), core::mem::transmute(pframerate), core::mem::transmute(bitrate), core::mem::transmute(pcryptotype.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVideoDecoderCaps)(windows_core::Interface::as_raw(self), pdecoderprofile, samplewidth, sampleheight, pframerate, bitrate, core::mem::transmute(pcryptotype.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckVideoDecoderDownsampling(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).CheckVideoDecoderDownsampling)(windows_core::Interface::as_raw(self), core::mem::transmute(pinputdesc), core::mem::transmute(inputcolorspace), core::mem::transmute(pinputconfig), core::mem::transmute(pframerate), core::mem::transmute(poutputdesc), core::mem::transmute(psupported), core::mem::transmute(prealtimehint)).ok() + (windows_core::Interface::vtable(self).CheckVideoDecoderDownsampling)(windows_core::Interface::as_raw(self), pinputdesc, inputcolorspace, pinputconfig, pframerate, poutputdesc, core::mem::transmute(psupported), core::mem::transmute(prealtimehint)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn RecommendVideoDecoderDownsampleParameters(&self, 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) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RecommendVideoDecoderDownsampleParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pinputdesc), core::mem::transmute(inputcolorspace), core::mem::transmute(pinputconfig), core::mem::transmute(pframerate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RecommendVideoDecoderDownsampleParameters)(windows_core::Interface::as_raw(self), pinputdesc, inputcolorspace, pinputconfig, pframerate, &mut result__).map(|| result__) } } #[repr(C)] @@ -14555,13 +14534,13 @@ impl core::ops::Deref for ID3D11VideoDevice2 { windows_core::imp::interface_hierarchy!(ID3D11VideoDevice2, windows_core::IUnknown, ID3D11VideoDevice, ID3D11VideoDevice1); impl ID3D11VideoDevice2 { pub unsafe fn CheckFeatureSupport(&self, feature: D3D11_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(feature), core::mem::transmute(pfeaturesupportdata), core::mem::transmute(featuresupportdatasize)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, core::mem::transmute(pfeaturesupportdata), featuresupportdatasize).ok() } pub unsafe fn NegotiateCryptoSessionKeyExchangeMT(&self, pcryptosession: P0, flags: D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchangeMT)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), core::mem::transmute(flags), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchangeMT)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), flags, datasize, core::mem::transmute(pdata)).ok() } } #[repr(C)] @@ -14676,21 +14655,21 @@ impl ID3D11VideoProcessorEnumerator { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckVideoProcessorFormat(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckVideoProcessorFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckVideoProcessorFormat)(windows_core::Interface::as_raw(self), format, &mut result__).map(|| result__) } pub unsafe fn GetVideoProcessorCaps(&self, pcaps: *mut D3D11_VIDEO_PROCESSOR_CAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVideoProcessorCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pcaps)).ok() } pub unsafe fn GetVideoProcessorRateConversionCaps(&self, typeindex: u32, pcaps: *mut D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorRateConversionCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(typeindex), core::mem::transmute(pcaps)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorRateConversionCaps)(windows_core::Interface::as_raw(self), typeindex, core::mem::transmute(pcaps)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetVideoProcessorCustomRate(&self, typeindex: u32, customrateindex: u32, prate: *mut D3D11_VIDEO_PROCESSOR_CUSTOM_RATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorCustomRate)(windows_core::Interface::as_raw(self), core::mem::transmute(typeindex), core::mem::transmute(customrateindex), core::mem::transmute(prate)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorCustomRate)(windows_core::Interface::as_raw(self), typeindex, customrateindex, core::mem::transmute(prate)).ok() } pub unsafe fn GetVideoProcessorFilterRange(&self, filter: D3D11_VIDEO_PROCESSOR_FILTER) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVideoProcessorFilterRange)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVideoProcessorFilterRange)(windows_core::Interface::as_raw(self), filter, &mut result__).map(|| result__) } } #[repr(C)] @@ -14792,7 +14771,7 @@ impl ID3D11VideoProcessorEnumerator1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckVideoProcessorFormatConversion(&self, 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) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckVideoProcessorFormatConversion)(windows_core::Interface::as_raw(self), core::mem::transmute(inputformat), core::mem::transmute(inputcolorspace), core::mem::transmute(outputformat), core::mem::transmute(outputcolorspace), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckVideoProcessorFormatConversion)(windows_core::Interface::as_raw(self), inputformat, inputcolorspace, outputformat, outputcolorspace, &mut result__).map(|| result__) } } #[repr(C)] @@ -15046,13 +15025,13 @@ windows_core::imp::define_interface!(ID3DX11FFT, ID3DX11FFT_Vtbl, 0xb3f7a938_4c9 windows_core::imp::interface_hierarchy!(ID3DX11FFT, windows_core::IUnknown); impl ID3DX11FFT { pub unsafe fn SetForwardScale(&self, forwardscale: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForwardScale)(windows_core::Interface::as_raw(self), core::mem::transmute(forwardscale)).ok() + (windows_core::Interface::vtable(self).SetForwardScale)(windows_core::Interface::as_raw(self), forwardscale).ok() } pub unsafe fn GetForwardScale(&self) -> f32 { (windows_core::Interface::vtable(self).GetForwardScale)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetInverseScale(&self, inversescale: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInverseScale)(windows_core::Interface::as_raw(self), core::mem::transmute(inversescale)).ok() + (windows_core::Interface::vtable(self).SetInverseScale)(windows_core::Interface::as_raw(self), inversescale).ok() } pub unsafe fn GetInverseScale(&self) -> f32 { (windows_core::Interface::vtable(self).GetInverseScale)(windows_core::Interface::as_raw(self)) @@ -15145,21 +15124,21 @@ windows_core::imp::define_interface!(ID3DX11Scan, ID3DX11Scan_Vtbl, 0x5089b68f_e windows_core::imp::interface_hierarchy!(ID3DX11Scan, windows_core::IUnknown); impl ID3DX11Scan { pub unsafe fn SetScanDirection(&self, direction: D3DX11_SCAN_DIRECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScanDirection)(windows_core::Interface::as_raw(self), core::mem::transmute(direction)).ok() + (windows_core::Interface::vtable(self).SetScanDirection)(windows_core::Interface::as_raw(self), direction).ok() } pub unsafe fn Scan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: P3, pdst: P4) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), core::mem::transmute(elementtype), core::mem::transmute(opcode), core::mem::transmute(elementscansize), psrc.param().abi(), pdst.param().abi()).ok() + (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), elementtype, opcode, elementscansize, psrc.param().abi(), pdst.param().abi()).ok() } pub unsafe fn Multiscan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, elementscanpitch: u32, scancount: u32, psrc: P5, pdst: P6) -> windows_core::Result<()> where P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Multiscan)(windows_core::Interface::as_raw(self), core::mem::transmute(elementtype), core::mem::transmute(opcode), core::mem::transmute(elementscansize), core::mem::transmute(elementscanpitch), core::mem::transmute(scancount), psrc.param().abi(), pdst.param().abi()).ok() + (windows_core::Interface::vtable(self).Multiscan)(windows_core::Interface::as_raw(self), elementtype, opcode, elementscansize, elementscanpitch, scancount, psrc.param().abi(), pdst.param().abi()).ok() } } #[repr(C)] @@ -15206,7 +15185,7 @@ windows_core::imp::define_interface!(ID3DX11SegmentedScan, ID3DX11SegmentedScan_ windows_core::imp::interface_hierarchy!(ID3DX11SegmentedScan, windows_core::IUnknown); impl ID3DX11SegmentedScan { pub unsafe fn SetScanDirection(&self, direction: D3DX11_SCAN_DIRECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScanDirection)(windows_core::Interface::as_raw(self), core::mem::transmute(direction)).ok() + (windows_core::Interface::vtable(self).SetScanDirection)(windows_core::Interface::as_raw(self), direction).ok() } pub unsafe fn SegScan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: P3, psrcelementflags: P4, pdst: P5) -> windows_core::Result<()> where @@ -15214,7 +15193,7 @@ impl ID3DX11SegmentedScan { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).SegScan)(windows_core::Interface::as_raw(self), core::mem::transmute(elementtype), core::mem::transmute(opcode), core::mem::transmute(elementscansize), psrc.param().abi(), psrcelementflags.param().abi(), pdst.param().abi()).ok() + (windows_core::Interface::vtable(self).SegScan)(windows_core::Interface::as_raw(self), elementtype, opcode, elementscansize, psrc.param().abi(), psrcelementflags.param().abi(), pdst.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs index 7c0589dc47..251c7bf185 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs @@ -7,12 +7,12 @@ where windows_targets::link!("d3d11.dll" "system" fn D3D11On12CreateDevice(pdevice : * mut core::ffi::c_void, flags : u32, pfeaturelevels : *const super::Direct3D:: D3D_FEATURE_LEVEL, featurelevels : u32, ppcommandqueues : *const * mut core::ffi::c_void, numqueues : u32, nodemask : u32, ppdevice : *mut * mut core::ffi::c_void, ppimmediatecontext : *mut * mut core::ffi::c_void, pchosenfeaturelevel : *mut super::Direct3D:: D3D_FEATURE_LEVEL) -> windows_core::HRESULT); D3D11On12CreateDevice( pdevice.param().abi(), - core::mem::transmute(flags), + flags, core::mem::transmute(pfeaturelevels.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfeaturelevels.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppcommandqueues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppcommandqueues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(nodemask), + nodemask, core::mem::transmute(ppdevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppimmediatecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pchosenfeaturelevel.unwrap_or(core::mem::zeroed())), @@ -41,7 +41,7 @@ impl ID3D11On12Device { P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateWrappedResource)(windows_core::Interface::as_raw(self), presource12.param().abi(), core::mem::transmute(pflags11), core::mem::transmute(instate), core::mem::transmute(outstate), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateWrappedResource)(windows_core::Interface::as_raw(self), presource12.param().abi(), pflags11, instate, outstate, &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Direct3D11")] pub unsafe fn ReleaseWrappedResources(&self, ppresources: &[Option]) { @@ -175,7 +175,7 @@ impl ID3D11On12Device2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource11.param().abi(), core::mem::transmute(numsync), core::mem::transmute(psignalvalues), core::mem::transmute(ppfences)).ok() + (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource11.param().abi(), numsync, psignalvalues, core::mem::transmute(ppfences)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs index fc9d709a33..a4d160ac5f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs @@ -6,22 +6,22 @@ where T: windows_core::Interface, { windows_targets::link!("d3d12.dll" "system" fn D3D12CreateDevice(padapter : * mut core::ffi::c_void, minimumfeaturelevel : super::Direct3D:: D3D_FEATURE_LEVEL, riid : *const windows_core::GUID, ppdevice : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - D3D12CreateDevice(padapter.param().abi(), core::mem::transmute(minimumfeaturelevel), &T::IID, result__ as *mut _ as *mut _).ok() + D3D12CreateDevice(padapter.param().abi(), minimumfeaturelevel, &T::IID, result__ as *mut _ as *mut _).ok() } #[inline] pub unsafe fn D3D12CreateRootSignatureDeserializer(psrcdata: *const core::ffi::c_void, srcdatasizeinbytes: usize, prootsignaturedeserializerinterface: *const windows_core::GUID, pprootsignaturedeserializer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("d3d12.dll" "system" fn D3D12CreateRootSignatureDeserializer(psrcdata : *const core::ffi::c_void, srcdatasizeinbytes : usize, prootsignaturedeserializerinterface : *const windows_core::GUID, pprootsignaturedeserializer : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - D3D12CreateRootSignatureDeserializer(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasizeinbytes), core::mem::transmute(prootsignaturedeserializerinterface), core::mem::transmute(pprootsignaturedeserializer)).ok() + D3D12CreateRootSignatureDeserializer(psrcdata, srcdatasizeinbytes, prootsignaturedeserializerinterface, core::mem::transmute(pprootsignaturedeserializer)).ok() } #[inline] pub unsafe fn D3D12CreateVersionedRootSignatureDeserializer(psrcdata: *const core::ffi::c_void, srcdatasizeinbytes: usize, prootsignaturedeserializerinterface: *const windows_core::GUID, pprootsignaturedeserializer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("d3d12.dll" "system" fn D3D12CreateVersionedRootSignatureDeserializer(psrcdata : *const core::ffi::c_void, srcdatasizeinbytes : usize, prootsignaturedeserializerinterface : *const windows_core::GUID, pprootsignaturedeserializer : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - D3D12CreateVersionedRootSignatureDeserializer(core::mem::transmute(psrcdata), core::mem::transmute(srcdatasizeinbytes), core::mem::transmute(prootsignaturedeserializerinterface), core::mem::transmute(pprootsignaturedeserializer)).ok() + D3D12CreateVersionedRootSignatureDeserializer(psrcdata, srcdatasizeinbytes, prootsignaturedeserializerinterface, core::mem::transmute(pprootsignaturedeserializer)).ok() } #[inline] pub unsafe fn D3D12EnableExperimentalFeatures(numfeatures: u32, piids: *const windows_core::GUID, pconfigurationstructs: Option<*const core::ffi::c_void>, pconfigurationstructsizes: Option<*const u32>) -> windows_core::Result<()> { windows_targets::link!("d3d12.dll" "system" fn D3D12EnableExperimentalFeatures(numfeatures : u32, piids : *const windows_core::GUID, pconfigurationstructs : *const core::ffi::c_void, pconfigurationstructsizes : *const u32) -> windows_core::HRESULT); - D3D12EnableExperimentalFeatures(core::mem::transmute(numfeatures), core::mem::transmute(piids), core::mem::transmute(pconfigurationstructs.unwrap_or(core::mem::zeroed())), core::mem::transmute(pconfigurationstructsizes.unwrap_or(core::mem::zeroed()))).ok() + D3D12EnableExperimentalFeatures(numfeatures, piids, core::mem::transmute(pconfigurationstructs.unwrap_or(core::mem::zeroed())), core::mem::transmute(pconfigurationstructsizes.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn D3D12GetDebugInterface(result__: *mut Option) -> windows_core::Result<()> @@ -37,19 +37,19 @@ where T: windows_core::Interface, { windows_targets::link!("d3d12.dll" "system" fn D3D12GetInterface(rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppvdebug : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - D3D12GetInterface(core::mem::transmute(rclsid), &T::IID, result__ as *mut _ as *mut _).ok() + D3D12GetInterface(rclsid, &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D12SerializeRootSignature(prootsignature: *const D3D12_ROOT_SIGNATURE_DESC, version: D3D_ROOT_SIGNATURE_VERSION, ppblob: *mut Option, pperrorblob: Option<*mut Option>) -> windows_core::Result<()> { windows_targets::link!("d3d12.dll" "system" fn D3D12SerializeRootSignature(prootsignature : *const D3D12_ROOT_SIGNATURE_DESC, version : D3D_ROOT_SIGNATURE_VERSION, ppblob : *mut * mut core::ffi::c_void, pperrorblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D12SerializeRootSignature(core::mem::transmute(prootsignature), core::mem::transmute(version), core::mem::transmute(ppblob), core::mem::transmute(pperrorblob.unwrap_or(core::mem::zeroed()))).ok() + D3D12SerializeRootSignature(prootsignature, version, core::mem::transmute(ppblob), core::mem::transmute(pperrorblob.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D12SerializeVersionedRootSignature(prootsignature: *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppblob: *mut Option, pperrorblob: Option<*mut Option>) -> windows_core::Result<()> { windows_targets::link!("d3d12.dll" "system" fn D3D12SerializeVersionedRootSignature(prootsignature : *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppblob : *mut * mut core::ffi::c_void, pperrorblob : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D12SerializeVersionedRootSignature(core::mem::transmute(prootsignature), core::mem::transmute(ppblob), core::mem::transmute(pperrorblob.unwrap_or(core::mem::zeroed()))).ok() + D3D12SerializeVersionedRootSignature(prootsignature, core::mem::transmute(ppblob), core::mem::transmute(pperrorblob.unwrap_or(core::mem::zeroed()))).ok() } pub const CLSID_D3D12Debug: windows_core::GUID = windows_core::GUID::from_u128(0xf2352aeb_dd84_49fe_b97b_a9dcfdcc1b4f); pub const CLSID_D3D12DeviceFactory: windows_core::GUID = windows_core::GUID::from_u128(0x114863bf_c386_4aee_b39d_8f0bbb062955); @@ -9260,15 +9260,15 @@ impl ID3D12CommandQueue { (windows_core::Interface::vtable(self).UpdateTileMappings)( windows_core::Interface::as_raw(self), presource.param().abi(), - core::mem::transmute(numresourceregions), + numresourceregions, core::mem::transmute(presourceregionstartcoordinates.unwrap_or(core::mem::zeroed())), core::mem::transmute(presourceregionsizes.unwrap_or(core::mem::zeroed())), pheap.param().abi(), - core::mem::transmute(numranges), + numranges, core::mem::transmute(prangeflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pheaprangestartoffsets.unwrap_or(core::mem::zeroed())), core::mem::transmute(prangetilecounts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(flags), + flags, ) } pub unsafe fn CopyTileMappings(&self, pdstresource: P0, pdstregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, psrcresource: P2, psrcregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pregionsize: *const D3D12_TILE_REGION_SIZE, flags: D3D12_TILE_MAPPING_FLAGS) @@ -9276,16 +9276,16 @@ impl ID3D12CommandQueue { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTileMappings)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(pdstregionstartcoordinate), psrcresource.param().abi(), core::mem::transmute(psrcregionstartcoordinate), core::mem::transmute(pregionsize), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).CopyTileMappings)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), pdstregionstartcoordinate, psrcresource.param().abi(), psrcregionstartcoordinate, pregionsize, flags) } pub unsafe fn ExecuteCommandLists(&self, ppcommandlists: &[Option]) { (windows_core::Interface::vtable(self).ExecuteCommandLists)(windows_core::Interface::as_raw(self), ppcommandlists.len().try_into().unwrap(), core::mem::transmute(ppcommandlists.as_ptr())) } pub unsafe fn SetMarker(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn BeginEvent(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) @@ -9294,13 +9294,13 @@ impl ID3D12CommandQueue { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), pfence.param().abi(), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), pfence.param().abi(), value).ok() } pub unsafe fn Wait(&self, pfence: P0, value: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.param().abi(), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.param().abi(), value).ok() } pub unsafe fn GetTimestampFrequency(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9528,7 +9528,7 @@ windows_core::imp::define_interface!(ID3D12Debug2, ID3D12Debug2_Vtbl, 0x93a665c4 windows_core::imp::interface_hierarchy!(ID3D12Debug2, windows_core::IUnknown); impl ID3D12Debug2 { pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { - (windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), flags) } } #[repr(C)] @@ -9570,7 +9570,7 @@ impl ID3D12Debug3 { (windows_core::Interface::vtable(self).SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.into()) } pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { - (windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), flags) } } #[repr(C)] @@ -9728,10 +9728,10 @@ impl ID3D12DebugCommandList { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(state)) + (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, state) } pub unsafe fn SetFeatureMask(&self, mask: D3D12_DEBUG_FEATURE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetFeatureMask(&self) -> D3D12_DEBUG_FEATURE { (windows_core::Interface::vtable(self).GetFeatureMask)(windows_core::Interface::as_raw(self)) @@ -9784,13 +9784,13 @@ impl ID3D12DebugCommandList1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(state)) + (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, state) } pub unsafe fn SetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } pub unsafe fn GetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pdata), datasize).ok() } } #[repr(C)] @@ -9843,10 +9843,10 @@ impl core::ops::Deref for ID3D12DebugCommandList2 { windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList2, windows_core::IUnknown, ID3D12DebugCommandList); impl ID3D12DebugCommandList2 { pub unsafe fn SetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } pub unsafe fn GetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pdata), datasize).ok() } } #[repr(C)] @@ -9895,13 +9895,13 @@ impl ID3D12DebugCommandList3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceAccess)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(access)) + (windows_core::Interface::vtable(self).AssertResourceAccess)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, access) } pub unsafe fn AssertTextureLayout(&self, presource: P0, subresource: u32, layout: D3D12_BARRIER_LAYOUT) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(layout)) + (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, layout) } } #[repr(C)] @@ -9944,7 +9944,7 @@ impl ID3D12DebugCommandQueue { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(state)) + (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, state) } } #[repr(C)] @@ -9983,13 +9983,13 @@ impl ID3D12DebugCommandQueue1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceAccess)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(access)) + (windows_core::Interface::vtable(self).AssertResourceAccess)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, access) } pub unsafe fn AssertTextureLayout(&self, presource: P0, subresource: u32, layout: D3D12_BARRIER_LAYOUT) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(layout)) + (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, layout) } } #[repr(C)] @@ -10029,13 +10029,13 @@ windows_core::imp::define_interface!(ID3D12DebugDevice, ID3D12DebugDevice_Vtbl, windows_core::imp::interface_hierarchy!(ID3D12DebugDevice, windows_core::IUnknown); impl ID3D12DebugDevice { pub unsafe fn SetFeatureMask(&self, mask: D3D12_DEBUG_FEATURE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetFeatureMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetFeatureMask(&self) -> D3D12_DEBUG_FEATURE { (windows_core::Interface::vtable(self).GetFeatureMask)(windows_core::Interface::as_raw(self)) } pub unsafe fn ReportLiveDeviceObjects(&self, flags: D3D12_RLDO_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(windows_core::Interface::as_raw(self), flags).ok() } } #[repr(C)] @@ -10082,13 +10082,13 @@ windows_core::imp::define_interface!(ID3D12DebugDevice1, ID3D12DebugDevice1_Vtbl windows_core::imp::interface_hierarchy!(ID3D12DebugDevice1, windows_core::IUnknown); impl ID3D12DebugDevice1 { pub unsafe fn SetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } pub unsafe fn GetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pdata), datasize).ok() } pub unsafe fn ReportLiveDeviceObjects(&self, flags: D3D12_RLDO_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(windows_core::Interface::as_raw(self), flags).ok() } } #[repr(C)] @@ -10141,10 +10141,10 @@ impl core::ops::Deref for ID3D12DebugDevice2 { windows_core::imp::interface_hierarchy!(ID3D12DebugDevice2, windows_core::IUnknown, ID3D12DebugDevice); impl ID3D12DebugDevice2 { pub unsafe fn SetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).SetDebugParameter)(windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } pub unsafe fn GetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).GetDebugParameter)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pdata), datasize).ok() } } #[repr(C)] @@ -10262,14 +10262,14 @@ impl ID3D12Device { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCommandQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCommandQueue)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCommandAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCommandAllocator)(windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> windows_core::Result @@ -10293,27 +10293,27 @@ impl ID3D12Device { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCommandList)(windows_core::Interface::as_raw(self), core::mem::transmute(nodemask), core::mem::transmute(r#type), pcommandallocator.param().abi(), pinitialstate.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.param().abi(), pinitialstate.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CheckFeatureSupport(&self, feature: D3D12_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(feature), core::mem::transmute(pfeaturesupportdata), core::mem::transmute(featuresupportdatasize)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, core::mem::transmute(pfeaturesupportdata), featuresupportdatasize).ok() } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateDescriptorHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(pdescriptorheapdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDescriptorHeap)(windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDescriptorHandleIncrementSize(&self, descriptorheaptype: D3D12_DESCRIPTOR_HEAP_TYPE) -> u32 { - (windows_core::Interface::vtable(self).GetDescriptorHandleIncrementSize)(windows_core::Interface::as_raw(self), core::mem::transmute(descriptorheaptype)) + (windows_core::Interface::vtable(self).GetDescriptorHandleIncrementSize)(windows_core::Interface::as_raw(self), descriptorheaptype) } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateRootSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(nodemask), core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRootSignature)(windows_core::Interface::as_raw(self), nodemask, core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateConstantBufferView(&self, pdesc: Option<*const D3D12_CONSTANT_BUFFER_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).CreateConstantBufferView)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(destdescriptor)) @@ -10348,23 +10348,23 @@ impl ID3D12Device { (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { - (windows_core::Interface::vtable(self).CreateSampler)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) } pub unsafe fn CopyDescriptors(&self, numdestdescriptorranges: u32, pdestdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, pdestdescriptorrangesizes: Option<*const u32>, numsrcdescriptorranges: u32, psrcdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, psrcdescriptorrangesizes: Option<*const u32>, descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE) { - (windows_core::Interface::vtable(self).CopyDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(numdestdescriptorranges), core::mem::transmute(pdestdescriptorrangestarts), core::mem::transmute(pdestdescriptorrangesizes.unwrap_or(core::mem::zeroed())), core::mem::transmute(numsrcdescriptorranges), core::mem::transmute(psrcdescriptorrangestarts), core::mem::transmute(psrcdescriptorrangesizes.unwrap_or(core::mem::zeroed())), core::mem::transmute(descriptorheapstype)) + (windows_core::Interface::vtable(self).CopyDescriptors)(windows_core::Interface::as_raw(self), numdestdescriptorranges, pdestdescriptorrangestarts, core::mem::transmute(pdestdescriptorrangesizes.unwrap_or(core::mem::zeroed())), numsrcdescriptorranges, psrcdescriptorrangestarts, core::mem::transmute(psrcdescriptorrangesizes.unwrap_or(core::mem::zeroed())), descriptorheapstype) } pub unsafe fn CopyDescriptorsSimple(&self, numdescriptors: u32, destdescriptorrangestart: D3D12_CPU_DESCRIPTOR_HANDLE, srcdescriptorrangestart: D3D12_CPU_DESCRIPTOR_HANDLE, descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE) { - (windows_core::Interface::vtable(self).CopyDescriptorsSimple)(windows_core::Interface::as_raw(self), core::mem::transmute(numdescriptors), core::mem::transmute(destdescriptorrangestart), core::mem::transmute(srcdescriptorrangestart), core::mem::transmute(descriptorheapstype)) + (windows_core::Interface::vtable(self).CopyDescriptorsSimple)(windows_core::Interface::as_raw(self), numdescriptors, core::mem::transmute(destdescriptorrangestart), core::mem::transmute(srcdescriptorrangestart), descriptorheapstype) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetResourceAllocationInfo(&self, visiblemask: u32, presourcedescs: &[D3D12_RESOURCE_DESC]) -> D3D12_RESOURCE_ALLOCATION_INFO { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceAllocationInfo)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(visiblemask), presourcedescs.len().try_into().unwrap(), core::mem::transmute(presourcedescs.as_ptr())); + (windows_core::Interface::vtable(self).GetResourceAllocationInfo)(windows_core::Interface::as_raw(self), &mut result__, visiblemask, presourcedescs.len().try_into().unwrap(), core::mem::transmute(presourcedescs.as_ptr())); result__ } pub unsafe fn GetCustomHeapProperties(&self, nodemask: u32, heaptype: D3D12_HEAP_TYPE) -> D3D12_HEAP_PROPERTIES { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCustomHeapProperties)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(nodemask), core::mem::transmute(heaptype)); + (windows_core::Interface::vtable(self).GetCustomHeapProperties)(windows_core::Interface::as_raw(self), &mut result__, nodemask, heaptype); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -10372,13 +10372,13 @@ impl ID3D12Device { where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource)(windows_core::Interface::as_raw(self), core::mem::transmute(pheapproperties), core::mem::transmute(heapflags), core::mem::transmute(pdesc), core::mem::transmute(initialresourcestate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateCommittedResource)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateHeap)(windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, result__: *mut Option) -> windows_core::Result<()> @@ -10386,14 +10386,14 @@ impl ID3D12Device { P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), core::mem::transmute(heapoffset), core::mem::transmute(pdesc), core::mem::transmute(initialstate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateReservedResource)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(initialstate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateReservedResource)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P3) -> windows_core::Result @@ -10402,20 +10402,20 @@ impl ID3D12Device { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(access), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: super::super::Foundation::HANDLE, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(nthandle), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(access), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.param().abi(), access, &mut result__).map(|| result__) } pub unsafe fn MakeResident(&self, ppobjects: &[Option]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -10428,20 +10428,20 @@ impl ID3D12Device { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFence)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvalue), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFence)(windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDeviceRemovedReason(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeviceRemovedReason)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetCopyableFootprints(&self, presourcedesc: *const D3D12_RESOURCE_DESC, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: Option<*mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT>, pnumrows: Option<*mut u32>, prowsizeinbytes: Option<*mut u64>, ptotalbytes: Option<*mut u64>) { - (windows_core::Interface::vtable(self).GetCopyableFootprints)(windows_core::Interface::as_raw(self), core::mem::transmute(presourcedesc), core::mem::transmute(firstsubresource), core::mem::transmute(numsubresources), core::mem::transmute(baseoffset), core::mem::transmute(playouts.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumrows.unwrap_or(core::mem::zeroed())), core::mem::transmute(prowsizeinbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptotalbytes.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).GetCopyableFootprints)(windows_core::Interface::as_raw(self), presourcedesc, firstsubresource, numsubresources, baseoffset, core::mem::transmute(playouts.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumrows.unwrap_or(core::mem::zeroed())), core::mem::transmute(prowsizeinbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptotalbytes.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut Option) -> windows_core::Result<()> where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateQueryHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateQueryHeap)(windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn SetStablePowerState(&self, enable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into()).ok() @@ -10451,22 +10451,13 @@ impl ID3D12Device { P1: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommandSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), prootsignature.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn GetResourceTiling(&self, ptiledresource: P0, pnumtilesforentireresource: Option<*mut u32>, ppackedmipdesc: Option<*mut D3D12_PACKED_MIP_INFO>, pstandardtileshapefornonpackedmips: Option<*mut D3D12_TILE_SHAPE>, pnumsubresourcetilings: Option<*mut u32>, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceTiling)( - windows_core::Interface::as_raw(self), - ptiledresource.param().abi(), - core::mem::transmute(pnumtilesforentireresource.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppackedmipdesc.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pnumsubresourcetilings.unwrap_or(core::mem::zeroed())), - core::mem::transmute(firstsubresourcetilingtoget), - core::mem::transmute(psubresourcetilingsfornonpackedmips), - ) + (windows_core::Interface::vtable(self).GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppackedmipdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(core::mem::zeroed())), firstsubresourcetilingtoget, core::mem::transmute(psubresourcetilingsfornonpackedmips)) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__ = core::mem::zeroed(); @@ -10819,10 +10810,10 @@ impl ID3D12Device1 { (windows_core::Interface::vtable(self).CreatePipelineLibrary)(windows_core::Interface::as_raw(self), core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), core::mem::transmute(pfencevalues), core::mem::transmute(numfences), core::mem::transmute(flags), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResidencyPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(numobjects), core::mem::transmute(ppobjects), core::mem::transmute(ppriorities)).ok() + (windows_core::Interface::vtable(self).SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() } } #[repr(C)] @@ -10885,20 +10876,7 @@ impl ID3D12Device10 { P5: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource3)( - windows_core::Interface::as_raw(self), - core::mem::transmute(pheapproperties), - core::mem::transmute(heapflags), - core::mem::transmute(pdesc), - core::mem::transmute(initiallayout), - core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), - pprotectedsession.param().abi(), - pcastableformats.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcastableformats.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - &T::IID, - result__ as *mut _ as *mut _, - ) - .ok() + (windows_core::Interface::vtable(self).CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), pcastableformats.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcastableformats.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreatePlacedResource2(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> @@ -10906,7 +10884,7 @@ impl ID3D12Device10 { P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.param().abi(), core::mem::transmute(heapoffset), core::mem::transmute(pdesc), core::mem::transmute(initiallayout), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pcastableformats.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcastableformats.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pcastableformats.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcastableformats.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource2(&self, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P3, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> @@ -10914,7 +10892,7 @@ impl ID3D12Device10 { P3: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateReservedResource2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(initiallayout), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), pcastableformats.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcastableformats.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), pcastableformats.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcastableformats.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &T::IID, result__ as *mut _ as *mut _).ok() } } #[repr(C)] @@ -10981,7 +10959,7 @@ impl core::ops::Deref for ID3D12Device11 { windows_core::imp::interface_hierarchy!(ID3D12Device11, windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10); impl ID3D12Device11 { pub unsafe fn CreateSampler2(&self, pdesc: *const D3D12_SAMPLER_DESC2, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { - (windows_core::Interface::vtable(self).CreateSampler2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateSampler2)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) } } #[repr(C)] @@ -11024,7 +11002,7 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetResourceAllocationInfo3(&self, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC1, pnumcastableformats: Option<*const u32>, ppcastableformats: Option<*const *const super::Dxgi::Common::DXGI_FORMAT>, presourceallocationinfo1: Option<*mut D3D12_RESOURCE_ALLOCATION_INFO1>) -> D3D12_RESOURCE_ALLOCATION_INFO { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceAllocationInfo3)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(visiblemask), core::mem::transmute(numresourcedescs), core::mem::transmute(presourcedescs), core::mem::transmute(pnumcastableformats.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcastableformats.unwrap_or(core::mem::zeroed())), core::mem::transmute(presourceallocationinfo1.unwrap_or(core::mem::zeroed()))); + (windows_core::Interface::vtable(self).GetResourceAllocationInfo3)(windows_core::Interface::as_raw(self), &mut result__, visiblemask, numresourcedescs, presourcedescs, core::mem::transmute(pnumcastableformats.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcastableformats.unwrap_or(core::mem::zeroed())), core::mem::transmute(presourceallocationinfo1.unwrap_or(core::mem::zeroed()))); result__ } } @@ -11086,7 +11064,7 @@ impl ID3D12Device13 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenExistingHeapFromAddress1)(windows_core::Interface::as_raw(self), core::mem::transmute(paddress), core::mem::transmute(size), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenExistingHeapFromAddress1)(windows_core::Interface::as_raw(self), paddress, size, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11146,7 +11124,7 @@ impl ID3D12Device14 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateRootSignatureFromSubobjectInLibrary)(windows_core::Interface::as_raw(self), core::mem::transmute(nodemask), core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), subobjectname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRootSignatureFromSubobjectInLibrary)(windows_core::Interface::as_raw(self), nodemask, core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), subobjectname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11209,7 +11187,7 @@ impl ID3D12Device2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreatePipelineState)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePipelineState)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11254,20 +11232,20 @@ impl ID3D12Device3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenExistingHeapFromAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(paddress), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenExistingHeapFromAddress)(windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: super::super::Foundation::HANDLE) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(hfilemapping), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P3, fencevaluetosignal: u64) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).EnqueueMakeResident)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), core::mem::transmute(fencevaluetosignal)).ok() + (windows_core::Interface::vtable(self).EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } } #[repr(C)] @@ -11329,14 +11307,14 @@ impl ID3D12Device4 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCommandList1)(windows_core::Interface::as_raw(self), core::mem::transmute(nodemask), core::mem::transmute(r#type), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCommandList1)(windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateProtectedResourceSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProtectedResourceSession)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P5, result__: *mut Option) -> windows_core::Result<()> @@ -11344,14 +11322,14 @@ impl ID3D12Device4 { P5: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource1)(windows_core::Interface::as_raw(self), core::mem::transmute(pheapproperties), core::mem::transmute(heapflags), core::mem::transmute(pdesc), core::mem::transmute(initialresourcestate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P1, result__: *mut Option) -> windows_core::Result<()> where P1: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateHeap1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P3, result__: *mut Option) -> windows_core::Result<()> @@ -11359,12 +11337,12 @@ impl ID3D12Device4 { P3: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateReservedResource1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(initialstate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetResourceAllocationInfo1(&self, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC, presourceallocationinfo1: Option<*mut D3D12_RESOURCE_ALLOCATION_INFO1>) -> D3D12_RESOURCE_ALLOCATION_INFO { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceAllocationInfo1)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(visiblemask), core::mem::transmute(numresourcedescs), core::mem::transmute(presourcedescs), core::mem::transmute(presourceallocationinfo1.unwrap_or(core::mem::zeroed()))); + (windows_core::Interface::vtable(self).GetResourceAllocationInfo1)(windows_core::Interface::as_raw(self), &mut result__, visiblemask, numresourcedescs, presourcedescs, core::mem::transmute(presourceallocationinfo1.unwrap_or(core::mem::zeroed()))); result__ } } @@ -11467,28 +11445,28 @@ impl ID3D12Device5 { (windows_core::Interface::vtable(self).EnumerateMetaCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(pnummetacommands), core::mem::transmute(pdescs.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EnumerateMetaCommandParameters(&self, commandid: *const windows_core::GUID, stage: D3D12_META_COMMAND_PARAMETER_STAGE, ptotalstructuresizeinbytes: Option<*mut u32>, pparametercount: *mut u32, pparameterdescs: Option<*mut D3D12_META_COMMAND_PARAMETER_DESC>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateMetaCommandParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(stage), core::mem::transmute(ptotalstructuresizeinbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pparametercount), core::mem::transmute(pparameterdescs.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EnumerateMetaCommandParameters)(windows_core::Interface::as_raw(self), commandid, stage, core::mem::transmute(ptotalstructuresizeinbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pparametercount), core::mem::transmute(pparameterdescs.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateMetaCommand(&self, commandid: *const windows_core::GUID, nodemask: u32, pcreationparametersdata: Option<*const core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateMetaCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(nodemask), core::mem::transmute(pcreationparametersdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(creationparametersdatasizeinbytes), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetaCommand)(windows_core::Interface::as_raw(self), commandid, nodemask, core::mem::transmute(pcreationparametersdata.unwrap_or(core::mem::zeroed())), creationparametersdatasizeinbytes, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateStateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStateObject)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetRaytracingAccelerationStructurePrebuildInfo(&self, pdesc: *const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS, pinfo: *mut D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO) { - (windows_core::Interface::vtable(self).GetRaytracingAccelerationStructurePrebuildInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pinfo)) + (windows_core::Interface::vtable(self).GetRaytracingAccelerationStructurePrebuildInfo)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(pinfo)) } pub unsafe fn CheckDriverMatchingIdentifier(&self, serializeddatatype: D3D12_SERIALIZED_DATA_TYPE, pidentifiertocheck: *const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER) -> D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS { - (windows_core::Interface::vtable(self).CheckDriverMatchingIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(serializeddatatype), core::mem::transmute(pidentifiertocheck)) + (windows_core::Interface::vtable(self).CheckDriverMatchingIdentifier)(windows_core::Interface::as_raw(self), serializeddatatype, pidentifiertocheck) } } #[repr(C)] @@ -11584,7 +11562,7 @@ impl core::ops::Deref for ID3D12Device6 { windows_core::imp::interface_hierarchy!(ID3D12Device6, windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5); impl ID3D12Device6 { pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: Option, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode), core::mem::transmute(measurementsaction), core::mem::transmute(heventtosignaluponcompletion.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, core::mem::transmute(heventtosignaluponcompletion.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -11630,14 +11608,14 @@ impl ID3D12Device7 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).AddToStateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(paddition), pstateobjecttogrowfrom.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateProtectedResourceSession1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProtectedResourceSession1)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11690,7 +11668,7 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetResourceAllocationInfo2(&self, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC1, presourceallocationinfo1: Option<*mut D3D12_RESOURCE_ALLOCATION_INFO1>) -> D3D12_RESOURCE_ALLOCATION_INFO { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceAllocationInfo2)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(visiblemask), core::mem::transmute(numresourcedescs), core::mem::transmute(presourcedescs), core::mem::transmute(presourceallocationinfo1.unwrap_or(core::mem::zeroed()))); + (windows_core::Interface::vtable(self).GetResourceAllocationInfo2)(windows_core::Interface::as_raw(self), &mut result__, visiblemask, numresourcedescs, presourcedescs, core::mem::transmute(presourceallocationinfo1.unwrap_or(core::mem::zeroed()))); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -11699,7 +11677,7 @@ impl ID3D12Device8 { P5: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource2)(windows_core::Interface::as_raw(self), core::mem::transmute(pheapproperties), core::mem::transmute(heapflags), core::mem::transmute(pdesc), core::mem::transmute(initialresourcestate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, result__: *mut Option) -> windows_core::Result<()> @@ -11707,7 +11685,7 @@ impl ID3D12Device8 { P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), core::mem::transmute(heapoffset), core::mem::transmute(pdesc), core::mem::transmute(initialstate), core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(core::mem::zeroed())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where @@ -11718,7 +11696,7 @@ impl ID3D12Device8 { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetCopyableFootprints1(&self, presourcedesc: *const D3D12_RESOURCE_DESC1, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: Option<*mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT>, pnumrows: Option<*mut u32>, prowsizeinbytes: Option<*mut u64>, ptotalbytes: Option<*mut u64>) { - (windows_core::Interface::vtable(self).GetCopyableFootprints1)(windows_core::Interface::as_raw(self), core::mem::transmute(presourcedesc), core::mem::transmute(firstsubresource), core::mem::transmute(numsubresources), core::mem::transmute(baseoffset), core::mem::transmute(playouts.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumrows.unwrap_or(core::mem::zeroed())), core::mem::transmute(prowsizeinbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptotalbytes.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).GetCopyableFootprints1)(windows_core::Interface::as_raw(self), presourcedesc, firstsubresource, numsubresources, baseoffset, core::mem::transmute(playouts.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumrows.unwrap_or(core::mem::zeroed())), core::mem::transmute(prowsizeinbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptotalbytes.unwrap_or(core::mem::zeroed()))) } } #[repr(C)] @@ -11805,17 +11783,17 @@ impl ID3D12Device9 { where T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateShaderCacheSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateShaderCacheSession)(windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn ShaderCacheControl(&self, kinds: D3D12_SHADER_CACHE_KIND_FLAGS, control: D3D12_SHADER_CACHE_CONTROL_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShaderCacheControl)(windows_core::Interface::as_raw(self), core::mem::transmute(kinds), core::mem::transmute(control)).ok() + (windows_core::Interface::vtable(self).ShaderCacheControl)(windows_core::Interface::as_raw(self), kinds, control).ok() } pub unsafe fn CreateCommandQueue1(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const windows_core::GUID) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCommandQueue1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(creatorid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCommandQueue1)(windows_core::Interface::as_raw(self), pdesc, creatorid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11915,14 +11893,14 @@ impl ID3D12DeviceConfiguration { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn SerializeVersionedRootSignature(&self, pdesc: *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppresult: *mut Option, pperror: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SerializeVersionedRootSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(ppresult), core::mem::transmute(pperror.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SerializeVersionedRootSignature)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(ppresult), core::mem::transmute(pperror.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateVersionedRootSignatureDeserializer(&self, pblob: *const core::ffi::c_void, size: usize) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVersionedRootSignatureDeserializer)(windows_core::Interface::as_raw(self), core::mem::transmute(pblob), core::mem::transmute(size), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVersionedRootSignatureDeserializer)(windows_core::Interface::as_raw(self), pblob, size, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11995,7 +11973,7 @@ impl ID3D12DeviceConfiguration1 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary)(windows_core::Interface::as_raw(self), core::mem::transmute(plibraryblob), core::mem::transmute(size), rootsignaturesubobjectname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary)(windows_core::Interface::as_raw(self), plibraryblob, size, rootsignaturesubobjectname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12039,7 +12017,7 @@ impl ID3D12DeviceFactory { (windows_core::Interface::vtable(self).ApplyToGlobalState)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetFlags(&self, flags: D3D12_DEVICE_FACTORY_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetFlags(&self) -> D3D12_DEVICE_FACTORY_FLAGS { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self)) @@ -12049,10 +12027,10 @@ impl ID3D12DeviceFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetConfigurationInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConfigurationInterface)(windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableExperimentalFeatures(&self, numfeatures: u32, piids: *const windows_core::GUID, pconfigurationstructs: Option<*const core::ffi::c_void>, pconfigurationstructsizes: Option<*const u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableExperimentalFeatures)(windows_core::Interface::as_raw(self), core::mem::transmute(numfeatures), core::mem::transmute(piids), core::mem::transmute(pconfigurationstructs.unwrap_or(core::mem::zeroed())), core::mem::transmute(pconfigurationstructsizes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EnableExperimentalFeatures)(windows_core::Interface::as_raw(self), numfeatures, piids, core::mem::transmute(pconfigurationstructs.unwrap_or(core::mem::zeroed())), core::mem::transmute(pconfigurationstructsizes.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn CreateDevice(&self, adapter: P0, featurelevel: super::Direct3D::D3D_FEATURE_LEVEL, result__: *mut Option) -> windows_core::Result<()> @@ -12060,7 +12038,7 @@ impl ID3D12DeviceFactory { P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), adapter.param().abi(), core::mem::transmute(featurelevel), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), adapter.param().abi(), featurelevel, &T::IID, result__ as *mut _ as *mut _).ok() } } #[repr(C)] @@ -12312,13 +12290,13 @@ windows_core::imp::define_interface!(ID3D12DeviceRemovedExtendedDataSettings, ID windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings, windows_core::IUnknown); impl ID3D12DeviceRemovedExtendedDataSettings { pub unsafe fn SetAutoBreadcrumbsEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { - (windows_core::Interface::vtable(self).SetAutoBreadcrumbsEnablement)(windows_core::Interface::as_raw(self), core::mem::transmute(enablement)) + (windows_core::Interface::vtable(self).SetAutoBreadcrumbsEnablement)(windows_core::Interface::as_raw(self), enablement) } pub unsafe fn SetPageFaultEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { - (windows_core::Interface::vtable(self).SetPageFaultEnablement)(windows_core::Interface::as_raw(self), core::mem::transmute(enablement)) + (windows_core::Interface::vtable(self).SetPageFaultEnablement)(windows_core::Interface::as_raw(self), enablement) } pub unsafe fn SetWatsonDumpEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { - (windows_core::Interface::vtable(self).SetWatsonDumpEnablement)(windows_core::Interface::as_raw(self), core::mem::transmute(enablement)) + (windows_core::Interface::vtable(self).SetWatsonDumpEnablement)(windows_core::Interface::as_raw(self), enablement) } } #[repr(C)] @@ -12371,7 +12349,7 @@ impl core::ops::Deref for ID3D12DeviceRemovedExtendedDataSettings1 { windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings1, windows_core::IUnknown, ID3D12DeviceRemovedExtendedDataSettings); impl ID3D12DeviceRemovedExtendedDataSettings1 { pub unsafe fn SetBreadcrumbContextEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { - (windows_core::Interface::vtable(self).SetBreadcrumbContextEnablement)(windows_core::Interface::as_raw(self), core::mem::transmute(enablement)) + (windows_core::Interface::vtable(self).SetBreadcrumbContextEnablement)(windows_core::Interface::as_raw(self), enablement) } } #[repr(C)] @@ -12452,10 +12430,10 @@ impl ID3D12Fence { (windows_core::Interface::vtable(self).GetCompletedValue)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetEventOnCompletion(&self, value: u64, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent).ok() } pub unsafe fn Signal(&self, value: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), value).ok() } } #[repr(C)] @@ -12588,7 +12566,7 @@ impl ID3D12FunctionReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, bufferindex: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferindex)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), bufferindex) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -12598,7 +12576,7 @@ impl ID3D12FunctionReflection { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), resourceindex, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -12614,7 +12592,7 @@ impl ID3D12FunctionReflection { (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetFunctionParameter(&self, parameterindex: i32) -> Option { - (windows_core::Interface::vtable(self).GetFunctionParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex)) + (windows_core::Interface::vtable(self).GetFunctionParameter)(windows_core::Interface::as_raw(self), parameterindex) } } #[repr(C)] @@ -12720,14 +12698,14 @@ impl ID3D12GBVDiagnostics { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGBVEntireSubresourceStatesData)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdata), core::mem::transmute(datasize)).ok() + (windows_core::Interface::vtable(self).GetGBVEntireSubresourceStatesData)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdata), datasize).ok() } pub unsafe fn GetGBVSubresourceState(&self, presource: P0, subresource: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGBVSubresourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGBVSubresourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, &mut result__).map(|| result__) } pub unsafe fn GetGBVResourceUniformState(&self, presource: P0) -> windows_core::Result where @@ -12857,24 +12835,24 @@ impl ID3D12GraphicsCommandList { (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn DrawInstanced(&self, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) { - (windows_core::Interface::vtable(self).DrawInstanced)(windows_core::Interface::as_raw(self), core::mem::transmute(vertexcountperinstance), core::mem::transmute(instancecount), core::mem::transmute(startvertexlocation), core::mem::transmute(startinstancelocation)) + (windows_core::Interface::vtable(self).DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) } pub unsafe fn DrawIndexedInstanced(&self, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) { - (windows_core::Interface::vtable(self).DrawIndexedInstanced)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcountperinstance), core::mem::transmute(instancecount), core::mem::transmute(startindexlocation), core::mem::transmute(basevertexlocation), core::mem::transmute(startinstancelocation)) + (windows_core::Interface::vtable(self).DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) } pub unsafe fn Dispatch(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { - (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), core::mem::transmute(threadgroupcountx), core::mem::transmute(threadgroupcounty), core::mem::transmute(threadgroupcountz)) + (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P2, srcoffset: u64, numbytes: u64) where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), core::mem::transmute(dstoffset), psrcbuffer.param().abi(), core::mem::transmute(srcoffset), core::mem::transmute(numbytes)) + (windows_core::Interface::vtable(self).CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), dstoffset, psrcbuffer.param().abi(), srcoffset, numbytes) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CopyTextureRegion(&self, pdst: *const D3D12_TEXTURE_COPY_LOCATION, dstx: u32, dsty: u32, dstz: u32, psrc: *const D3D12_TEXTURE_COPY_LOCATION, psrcbox: Option<*const D3D12_BOX>) { - (windows_core::Interface::vtable(self).CopyTextureRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(pdst), core::mem::transmute(dstx), core::mem::transmute(dsty), core::mem::transmute(dstz), core::mem::transmute(psrc), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).CopyTextureRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(pdst), dstx, dsty, dstz, core::mem::transmute(psrc), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where @@ -12888,7 +12866,7 @@ impl ID3D12GraphicsCommandList { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(ptileregionstartcoordinate), core::mem::transmute(ptileregionsize), pbuffer.param().abi(), core::mem::transmute(bufferstartoffsetinbytes), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.param().abi(), bufferstartoffsetinbytes, flags) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P2, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) @@ -12896,11 +12874,11 @@ impl ID3D12GraphicsCommandList { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(format)) + (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, primitivetopology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { - (windows_core::Interface::vtable(self).IASetPrimitiveTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(primitivetopology)) + (windows_core::Interface::vtable(self).IASetPrimitiveTopology)(windows_core::Interface::as_raw(self), primitivetopology) } pub unsafe fn RSSetViewports(&self, pviewports: &[D3D12_VIEWPORT]) { (windows_core::Interface::vtable(self).RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.len().try_into().unwrap(), core::mem::transmute(pviewports.as_ptr())) @@ -12912,7 +12890,7 @@ impl ID3D12GraphicsCommandList { (windows_core::Interface::vtable(self).OMSetBlendFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn OMSetStencilRef(&self, stencilref: u32) { - (windows_core::Interface::vtable(self).OMSetStencilRef)(windows_core::Interface::as_raw(self), core::mem::transmute(stencilref)) + (windows_core::Interface::vtable(self).OMSetStencilRef)(windows_core::Interface::as_raw(self), stencilref) } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where @@ -12945,56 +12923,56 @@ impl ID3D12GraphicsCommandList { (windows_core::Interface::vtable(self).SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetComputeRootDescriptorTable(&self, rootparameterindex: u32, basedescriptor: D3D12_GPU_DESCRIPTOR_HANDLE) { - (windows_core::Interface::vtable(self).SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(basedescriptor)) + (windows_core::Interface::vtable(self).SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) } pub unsafe fn SetGraphicsRootDescriptorTable(&self, rootparameterindex: u32, basedescriptor: D3D12_GPU_DESCRIPTOR_HANDLE) { - (windows_core::Interface::vtable(self).SetGraphicsRootDescriptorTable)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(basedescriptor)) + (windows_core::Interface::vtable(self).SetGraphicsRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) } pub unsafe fn SetComputeRoot32BitConstant(&self, rootparameterindex: u32, srcdata: u32, destoffsetin32bitvalues: u32) { - (windows_core::Interface::vtable(self).SetComputeRoot32BitConstant)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(srcdata), core::mem::transmute(destoffsetin32bitvalues)) + (windows_core::Interface::vtable(self).SetComputeRoot32BitConstant)(windows_core::Interface::as_raw(self), rootparameterindex, srcdata, destoffsetin32bitvalues) } pub unsafe fn SetGraphicsRoot32BitConstant(&self, rootparameterindex: u32, srcdata: u32, destoffsetin32bitvalues: u32) { - (windows_core::Interface::vtable(self).SetGraphicsRoot32BitConstant)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(srcdata), core::mem::transmute(destoffsetin32bitvalues)) + (windows_core::Interface::vtable(self).SetGraphicsRoot32BitConstant)(windows_core::Interface::as_raw(self), rootparameterindex, srcdata, destoffsetin32bitvalues) } pub unsafe fn SetComputeRoot32BitConstants(&self, rootparameterindex: u32, num32bitvaluestoset: u32, psrcdata: *const core::ffi::c_void, destoffsetin32bitvalues: u32) { - (windows_core::Interface::vtable(self).SetComputeRoot32BitConstants)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(num32bitvaluestoset), core::mem::transmute(psrcdata), core::mem::transmute(destoffsetin32bitvalues)) + (windows_core::Interface::vtable(self).SetComputeRoot32BitConstants)(windows_core::Interface::as_raw(self), rootparameterindex, num32bitvaluestoset, psrcdata, destoffsetin32bitvalues) } pub unsafe fn SetGraphicsRoot32BitConstants(&self, rootparameterindex: u32, num32bitvaluestoset: u32, psrcdata: *const core::ffi::c_void, destoffsetin32bitvalues: u32) { - (windows_core::Interface::vtable(self).SetGraphicsRoot32BitConstants)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(num32bitvaluestoset), core::mem::transmute(psrcdata), core::mem::transmute(destoffsetin32bitvalues)) + (windows_core::Interface::vtable(self).SetGraphicsRoot32BitConstants)(windows_core::Interface::as_raw(self), rootparameterindex, num32bitvaluestoset, psrcdata, destoffsetin32bitvalues) } pub unsafe fn SetComputeRootConstantBufferView(&self, rootparameterindex: u32, bufferlocation: u64) { - (windows_core::Interface::vtable(self).SetComputeRootConstantBufferView)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(bufferlocation)) + (windows_core::Interface::vtable(self).SetComputeRootConstantBufferView)(windows_core::Interface::as_raw(self), rootparameterindex, bufferlocation) } pub unsafe fn SetGraphicsRootConstantBufferView(&self, rootparameterindex: u32, bufferlocation: u64) { - (windows_core::Interface::vtable(self).SetGraphicsRootConstantBufferView)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(bufferlocation)) + (windows_core::Interface::vtable(self).SetGraphicsRootConstantBufferView)(windows_core::Interface::as_raw(self), rootparameterindex, bufferlocation) } pub unsafe fn SetComputeRootShaderResourceView(&self, rootparameterindex: u32, bufferlocation: u64) { - (windows_core::Interface::vtable(self).SetComputeRootShaderResourceView)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(bufferlocation)) + (windows_core::Interface::vtable(self).SetComputeRootShaderResourceView)(windows_core::Interface::as_raw(self), rootparameterindex, bufferlocation) } pub unsafe fn SetGraphicsRootShaderResourceView(&self, rootparameterindex: u32, bufferlocation: u64) { - (windows_core::Interface::vtable(self).SetGraphicsRootShaderResourceView)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(bufferlocation)) + (windows_core::Interface::vtable(self).SetGraphicsRootShaderResourceView)(windows_core::Interface::as_raw(self), rootparameterindex, bufferlocation) } pub unsafe fn SetComputeRootUnorderedAccessView(&self, rootparameterindex: u32, bufferlocation: u64) { - (windows_core::Interface::vtable(self).SetComputeRootUnorderedAccessView)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(bufferlocation)) + (windows_core::Interface::vtable(self).SetComputeRootUnorderedAccessView)(windows_core::Interface::as_raw(self), rootparameterindex, bufferlocation) } pub unsafe fn SetGraphicsRootUnorderedAccessView(&self, rootparameterindex: u32, bufferlocation: u64) { - (windows_core::Interface::vtable(self).SetGraphicsRootUnorderedAccessView)(windows_core::Interface::as_raw(self), core::mem::transmute(rootparameterindex), core::mem::transmute(bufferlocation)) + (windows_core::Interface::vtable(self).SetGraphicsRootUnorderedAccessView)(windows_core::Interface::as_raw(self), rootparameterindex, bufferlocation) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn IASetIndexBuffer(&self, pview: Option<*const D3D12_INDEX_BUFFER_VIEW>) { (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pview.unwrap_or(core::mem::zeroed()))) } pub unsafe fn IASetVertexBuffers(&self, startslot: u32, pviews: Option<&[D3D12_VERTEX_BUFFER_VIEW]>) { - (windows_core::Interface::vtable(self).IASetVertexBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), pviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, pviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn SOSetTargets(&self, startslot: u32, pviews: Option<&[D3D12_STREAM_OUTPUT_BUFFER_VIEW]>) { - (windows_core::Interface::vtable(self).SOSetTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(startslot), pviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).SOSetTargets)(windows_core::Interface::as_raw(self), startslot, pviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviews.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: bool, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) { - (windows_core::Interface::vtable(self).OMSetRenderTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(numrendertargetdescriptors), core::mem::transmute(prendertargetdescriptors.unwrap_or(core::mem::zeroed())), rtssinglehandletodescriptorrange.into(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(core::mem::zeroed())), rtssinglehandletodescriptorrange.into(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(core::mem::zeroed()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: Option<&[super::super::Foundation::RECT]>) { - (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), core::mem::transmute(clearflags), core::mem::transmute(depth), core::mem::transmute(stencil), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn ClearRenderTargetView(&self, rendertargetview: D3D12_CPU_DESCRIPTOR_HANDLE, colorrgba: &[f32; 4], prects: Option<&[super::super::Foundation::RECT]>) { (windows_core::Interface::vtable(self).ClearRenderTargetView)(windows_core::Interface::as_raw(self), core::mem::transmute(rendertargetview), core::mem::transmute(colorrgba.as_ptr()), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -13021,32 +12999,32 @@ impl ID3D12GraphicsCommandList { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } pub unsafe fn EndQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } pub unsafe fn ResolveQueryData(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: P4, aligneddestinationbufferoffset: u64) where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(startindex), core::mem::transmute(numqueries), pdestinationbuffer.param().abi(), core::mem::transmute(aligneddestinationbufferoffset)) + (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, startindex, numqueries, pdestinationbuffer.param().abi(), aligneddestinationbufferoffset) } pub unsafe fn SetPredication(&self, pbuffer: P0, alignedbufferoffset: u64, operation: D3D12_PREDICATION_OP) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), core::mem::transmute(alignedbufferoffset), core::mem::transmute(operation)) + (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), alignedbufferoffset, operation) } pub unsafe fn SetMarker(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn BeginEvent(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) @@ -13057,7 +13035,7 @@ impl ID3D12GraphicsCommandList { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), core::mem::transmute(maxcommandcount), pargumentbuffer.param().abi(), core::mem::transmute(argumentbufferoffset), pcountbuffer.param().abi(), core::mem::transmute(countbufferoffset)) + (windows_core::Interface::vtable(self).ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } } #[repr(C)] @@ -13467,20 +13445,20 @@ impl ID3D12GraphicsCommandList1 { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), core::mem::transmute(dstoffset), psrcbuffer.param().abi(), core::mem::transmute(srcoffset), core::mem::transmute(dependencies), core::mem::transmute(ppdependentresources), core::mem::transmute(pdependentsubresourceranges)) + (windows_core::Interface::vtable(self).AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), dstoffset, psrcbuffer.param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) } pub unsafe fn AtomicCopyBufferUINT64(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P2, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), core::mem::transmute(dstoffset), psrcbuffer.param().abi(), core::mem::transmute(srcoffset), core::mem::transmute(dependencies), core::mem::transmute(ppdependentresources), core::mem::transmute(pdependentsubresourceranges)) + (windows_core::Interface::vtable(self).AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.param().abi(), dstoffset, psrcbuffer.param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) } pub unsafe fn OMSetDepthBounds(&self, min: f32, max: f32) { - (windows_core::Interface::vtable(self).OMSetDepthBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(min), core::mem::transmute(max)) + (windows_core::Interface::vtable(self).OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) } pub unsafe fn SetSamplePositions(&self, numsamplesperpixel: u32, numpixels: u32, psamplepositions: *const D3D12_SAMPLE_POSITION) { - (windows_core::Interface::vtable(self).SetSamplePositions)(windows_core::Interface::as_raw(self), core::mem::transmute(numsamplesperpixel), core::mem::transmute(numpixels), core::mem::transmute(psamplepositions)) + (windows_core::Interface::vtable(self).SetSamplePositions)(windows_core::Interface::as_raw(self), numsamplesperpixel, numpixels, psamplepositions) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P4, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) @@ -13488,10 +13466,10 @@ impl ID3D12GraphicsCommandList1 { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), core::mem::transmute(dstsubresource), core::mem::transmute(dstx), core::mem::transmute(dsty), psrcresource.param().abi(), core::mem::transmute(srcsubresource), core::mem::transmute(psrcrect.unwrap_or(core::mem::zeroed())), core::mem::transmute(format), core::mem::transmute(resolvemode)) + (windows_core::Interface::vtable(self).ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(core::mem::zeroed())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { - (windows_core::Interface::vtable(self).SetViewInstanceMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)) + (windows_core::Interface::vtable(self).SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) } } #[repr(C)] @@ -13573,10 +13551,10 @@ impl core::ops::Deref for ID3D12GraphicsCommandList10 { windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList10, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7, ID3D12GraphicsCommandList8, ID3D12GraphicsCommandList9); impl ID3D12GraphicsCommandList10 { pub unsafe fn SetProgram(&self, pdesc: *const D3D12_SET_PROGRAM_DESC) { - (windows_core::Interface::vtable(self).SetProgram)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)) + (windows_core::Interface::vtable(self).SetProgram)(windows_core::Interface::as_raw(self), pdesc) } pub unsafe fn DispatchGraph(&self, pdesc: *const D3D12_DISPATCH_GRAPH_DESC) { - (windows_core::Interface::vtable(self).DispatchGraph)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)) + (windows_core::Interface::vtable(self).DispatchGraph)(windows_core::Interface::as_raw(self), pdesc) } } #[repr(C)] @@ -13640,7 +13618,7 @@ impl core::ops::Deref for ID3D12GraphicsCommandList2 { windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList2, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1); impl ID3D12GraphicsCommandList2 { pub unsafe fn WriteBufferImmediate(&self, count: u32, pparams: *const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: Option<*const D3D12_WRITEBUFFERIMMEDIATE_MODE>) { - (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(pparams), core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), count, pparams, core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) } } #[repr(C)] @@ -13726,7 +13704,7 @@ windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList4, windows_core impl ID3D12GraphicsCommandList4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn BeginRenderPass(&self, prendertargets: Option<&[D3D12_RENDER_PASS_RENDER_TARGET_DESC]>, pdepthstencil: Option<*const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC>, flags: D3D12_RENDER_PASS_FLAGS) { - (windows_core::Interface::vtable(self).BeginRenderPass)(windows_core::Interface::as_raw(self), prendertargets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prendertargets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdepthstencil.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).BeginRenderPass)(windows_core::Interface::as_raw(self), prendertargets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prendertargets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdepthstencil.unwrap_or(core::mem::zeroed())), flags) } pub unsafe fn EndRenderPass(&self) { (windows_core::Interface::vtable(self).EndRenderPass)(windows_core::Interface::as_raw(self)) @@ -13735,23 +13713,23 @@ impl ID3D12GraphicsCommandList4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(initializationparametersdatasizeinbytes)) + (windows_core::Interface::vtable(self).InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(core::mem::zeroed())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(executionparametersdatasizeinbytes)) + (windows_core::Interface::vtable(self).ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(core::mem::zeroed())), executionparametersdatasizeinbytes) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn BuildRaytracingAccelerationStructure(&self, pdesc: *const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC, ppostbuildinfodescs: Option<&[D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC]>) { - (windows_core::Interface::vtable(self).BuildRaytracingAccelerationStructure)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), ppostbuildinfodescs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppostbuildinfodescs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + (windows_core::Interface::vtable(self).BuildRaytracingAccelerationStructure)(windows_core::Interface::as_raw(self), pdesc, ppostbuildinfodescs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppostbuildinfodescs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } pub unsafe fn EmitRaytracingAccelerationStructurePostbuildInfo(&self, pdesc: *const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC, psourceaccelerationstructuredata: &[u64]) { - (windows_core::Interface::vtable(self).EmitRaytracingAccelerationStructurePostbuildInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), psourceaccelerationstructuredata.len().try_into().unwrap(), core::mem::transmute(psourceaccelerationstructuredata.as_ptr())) + (windows_core::Interface::vtable(self).EmitRaytracingAccelerationStructurePostbuildInfo)(windows_core::Interface::as_raw(self), pdesc, psourceaccelerationstructuredata.len().try_into().unwrap(), core::mem::transmute(psourceaccelerationstructuredata.as_ptr())) } pub unsafe fn CopyRaytracingAccelerationStructure(&self, destaccelerationstructuredata: u64, sourceaccelerationstructuredata: u64, mode: D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) { - (windows_core::Interface::vtable(self).CopyRaytracingAccelerationStructure)(windows_core::Interface::as_raw(self), core::mem::transmute(destaccelerationstructuredata), core::mem::transmute(sourceaccelerationstructuredata), core::mem::transmute(mode)) + (windows_core::Interface::vtable(self).CopyRaytracingAccelerationStructure)(windows_core::Interface::as_raw(self), destaccelerationstructuredata, sourceaccelerationstructuredata, mode) } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where @@ -13760,7 +13738,7 @@ impl ID3D12GraphicsCommandList4 { (windows_core::Interface::vtable(self).SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.param().abi()) } pub unsafe fn DispatchRays(&self, pdesc: *const D3D12_DISPATCH_RAYS_DESC) { - (windows_core::Interface::vtable(self).DispatchRays)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)) + (windows_core::Interface::vtable(self).DispatchRays)(windows_core::Interface::as_raw(self), pdesc) } } #[repr(C)] @@ -13866,7 +13844,7 @@ impl core::ops::Deref for ID3D12GraphicsCommandList5 { windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList5, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4); impl ID3D12GraphicsCommandList5 { pub unsafe fn RSSetShadingRate(&self, baseshadingrate: D3D12_SHADING_RATE, combiners: Option<*const D3D12_SHADING_RATE_COMBINER>) { - (windows_core::Interface::vtable(self).RSSetShadingRate)(windows_core::Interface::as_raw(self), core::mem::transmute(baseshadingrate), core::mem::transmute(combiners.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).RSSetShadingRate)(windows_core::Interface::as_raw(self), baseshadingrate, core::mem::transmute(combiners.unwrap_or(core::mem::zeroed()))) } pub unsafe fn RSSetShadingRateImage(&self, shadingrateimage: P0) where @@ -13923,7 +13901,7 @@ impl core::ops::Deref for ID3D12GraphicsCommandList6 { windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList6, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5); impl ID3D12GraphicsCommandList6 { pub unsafe fn DispatchMesh(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { - (windows_core::Interface::vtable(self).DispatchMesh)(windows_core::Interface::as_raw(self), core::mem::transmute(threadgroupcountx), core::mem::transmute(threadgroupcounty), core::mem::transmute(threadgroupcountz)) + (windows_core::Interface::vtable(self).DispatchMesh)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } } #[repr(C)] @@ -14005,7 +13983,7 @@ impl core::ops::Deref for ID3D12GraphicsCommandList8 { windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList8, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7); impl ID3D12GraphicsCommandList8 { pub unsafe fn OMSetFrontAndBackStencilRef(&self, frontstencilref: u32, backstencilref: u32) { - (windows_core::Interface::vtable(self).OMSetFrontAndBackStencilRef)(windows_core::Interface::as_raw(self), core::mem::transmute(frontstencilref), core::mem::transmute(backstencilref)) + (windows_core::Interface::vtable(self).OMSetFrontAndBackStencilRef)(windows_core::Interface::as_raw(self), frontstencilref, backstencilref) } } #[repr(C)] @@ -14057,10 +14035,10 @@ impl core::ops::Deref for ID3D12GraphicsCommandList9 { windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList9, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7, ID3D12GraphicsCommandList8); impl ID3D12GraphicsCommandList9 { pub unsafe fn RSSetDepthBias(&self, depthbias: f32, depthbiasclamp: f32, slopescaleddepthbias: f32) { - (windows_core::Interface::vtable(self).RSSetDepthBias)(windows_core::Interface::as_raw(self), core::mem::transmute(depthbias), core::mem::transmute(depthbiasclamp), core::mem::transmute(slopescaleddepthbias)) + (windows_core::Interface::vtable(self).RSSetDepthBias)(windows_core::Interface::as_raw(self), depthbias, depthbiasclamp, slopescaleddepthbias) } pub unsafe fn IASetIndexBufferStripCutValue(&self, ibstripcutvalue: D3D12_INDEX_BUFFER_STRIP_CUT_VALUE) { - (windows_core::Interface::vtable(self).IASetIndexBufferStripCutValue)(windows_core::Interface::as_raw(self), core::mem::transmute(ibstripcutvalue)) + (windows_core::Interface::vtable(self).IASetIndexBufferStripCutValue)(windows_core::Interface::as_raw(self), ibstripcutvalue) } } #[repr(C)] @@ -14194,13 +14172,13 @@ windows_core::imp::define_interface!(ID3D12InfoQueue, ID3D12InfoQueue_Vtbl, 0x07 windows_core::imp::interface_hierarchy!(ID3D12InfoQueue, windows_core::IUnknown); impl ID3D12InfoQueue { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(messagecountlimit)).ok() + (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), messagecountlimit).ok() } pub unsafe fn ClearStoredMessages(&self) { (windows_core::Interface::vtable(self).ClearStoredMessages)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetMessage(&self, messageindex: u64, pmessage: Option<*mut D3D12_MESSAGE>, pmessagebytelength: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(messageindex), core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), messageindex, core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() } pub unsafe fn GetNumMessagesAllowedByStorageFilter(&self) -> u64 { (windows_core::Interface::vtable(self).GetNumMessagesAllowedByStorageFilter)(windows_core::Interface::as_raw(self)) @@ -14221,7 +14199,7 @@ impl ID3D12InfoQueue { (windows_core::Interface::vtable(self).GetMessageCountLimit)(windows_core::Interface::as_raw(self)) } pub unsafe fn AddStorageFilterEntries(&self, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn GetStorageFilter(&self, pfilter: Option<*mut D3D12_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -14236,7 +14214,7 @@ impl ID3D12InfoQueue { (windows_core::Interface::vtable(self).PushCopyOfStorageFilter)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PushStorageFilter(&self, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn PopStorageFilter(&self) { (windows_core::Interface::vtable(self).PopStorageFilter)(windows_core::Interface::as_raw(self)) @@ -14245,7 +14223,7 @@ impl ID3D12InfoQueue { (windows_core::Interface::vtable(self).GetStorageFilterStackSize)(windows_core::Interface::as_raw(self)) } pub unsafe fn AddRetrievalFilterEntries(&self, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn GetRetrievalFilter(&self, pfilter: Option<*mut D3D12_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -14260,7 +14238,7 @@ impl ID3D12InfoQueue { (windows_core::Interface::vtable(self).PushCopyOfRetrievalFilter)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PushRetrievalFilter(&self, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), pfilter).ok() } pub unsafe fn PopRetrievalFilter(&self) { (windows_core::Interface::vtable(self).PopRetrievalFilter)(windows_core::Interface::as_raw(self)) @@ -14272,31 +14250,31 @@ impl ID3D12InfoQueue { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(category), core::mem::transmute(severity), core::mem::transmute(id), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.param().abi()).ok() } pub unsafe fn AddApplicationMessage(&self, severity: D3D12_MESSAGE_SEVERITY, pdescription: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.param().abi()).ok() } pub unsafe fn SetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D12_MESSAGE_ID, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(id), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into()).ok() } pub unsafe fn GetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category)) + (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) } pub unsafe fn GetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(severity)) + (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity) } pub unsafe fn GetBreakOnID(&self, id: D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(id)) + (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), id) } pub unsafe fn SetMuteDebugOutput(&self, bmute: bool) { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into()) @@ -14579,10 +14557,10 @@ impl core::ops::Deref for ID3D12InfoQueue1 { windows_core::imp::interface_hierarchy!(ID3D12InfoQueue1, windows_core::IUnknown, ID3D12InfoQueue); impl ID3D12InfoQueue1 { pub unsafe fn RegisterMessageCallback(&self, callbackfunc: D3D12MessageFunc, callbackfilterflags: D3D12_MESSAGE_CALLBACK_FLAGS, pcontext: *mut core::ffi::c_void, pcallbackcookie: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterMessageCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(callbackfunc), core::mem::transmute(callbackfilterflags), core::mem::transmute(pcontext), core::mem::transmute(pcallbackcookie)).ok() + (windows_core::Interface::vtable(self).RegisterMessageCallback)(windows_core::Interface::as_raw(self), callbackfunc, callbackfilterflags, core::mem::transmute(pcontext), core::mem::transmute(pcallbackcookie)).ok() } pub unsafe fn UnregisterMessageCallback(&self, callbackcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterMessageCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(callbackcookie)).ok() + (windows_core::Interface::vtable(self).UnregisterMessageCallback)(windows_core::Interface::as_raw(self), callbackcookie).ok() } } #[repr(C)] @@ -14626,7 +14604,7 @@ impl ID3D12LibraryReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetFunctionByIndex(&self, functionindex: i32) -> Option { - (windows_core::Interface::vtable(self).GetFunctionByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(functionindex)) + (windows_core::Interface::vtable(self).GetFunctionByIndex)(windows_core::Interface::as_raw(self), functionindex) } } #[repr(C)] @@ -14672,7 +14650,7 @@ windows_core::imp::define_interface!(ID3D12LifetimeOwner, ID3D12LifetimeOwner_Vt windows_core::imp::interface_hierarchy!(ID3D12LifetimeOwner, windows_core::IUnknown); impl ID3D12LifetimeOwner { pub unsafe fn LifetimeStateUpdated(&self, newstate: D3D12_LIFETIME_STATE) { - (windows_core::Interface::vtable(self).LifetimeStateUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)) + (windows_core::Interface::vtable(self).LifetimeStateUpdated)(windows_core::Interface::as_raw(self), newstate) } } #[repr(C)] @@ -14741,7 +14719,7 @@ windows_core::imp::define_interface!(ID3D12ManualWriteTrackingResource, ID3D12Ma windows_core::imp::interface_hierarchy!(ID3D12ManualWriteTrackingResource, windows_core::IUnknown); impl ID3D12ManualWriteTrackingResource { pub unsafe fn TrackWrite(&self, subresource: u32, pwrittenrange: Option<*const D3D12_RANGE>) { - (windows_core::Interface::vtable(self).TrackWrite)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource), core::mem::transmute(pwrittenrange.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).TrackWrite)(windows_core::Interface::as_raw(self), subresource, core::mem::transmute(pwrittenrange.unwrap_or(core::mem::zeroed()))) } } #[repr(C)] @@ -14777,7 +14755,7 @@ impl core::ops::Deref for ID3D12MetaCommand { windows_core::imp::interface_hierarchy!(ID3D12MetaCommand, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12MetaCommand { pub unsafe fn GetRequiredParameterResourceSize(&self, stage: D3D12_META_COMMAND_PARAMETER_STAGE, parameterindex: u32) -> u64 { - (windows_core::Interface::vtable(self).GetRequiredParameterResourceSize)(windows_core::Interface::as_raw(self), core::mem::transmute(stage), core::mem::transmute(parameterindex)) + (windows_core::Interface::vtable(self).GetRequiredParameterResourceSize)(windows_core::Interface::as_raw(self), stage, parameterindex) } } #[repr(C)] @@ -14807,16 +14785,16 @@ windows_core::imp::define_interface!(ID3D12Object, ID3D12Object_Vtbl, 0xc4fec28f windows_core::imp::interface_hierarchy!(ID3D12Object, windows_core::IUnknown); impl ID3D12Object { pub unsafe fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(datasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), guid, datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), pdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where @@ -15013,7 +14991,7 @@ impl ID3D12PipelineLibrary1 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).LoadPipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadPipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15258,10 +15236,10 @@ impl core::ops::Deref for ID3D12Resource { windows_core::imp::interface_hierarchy!(ID3D12Resource, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12Resource { pub unsafe fn Map(&self, subresource: u32, preadrange: Option<*const D3D12_RANGE>, ppdata: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource), core::mem::transmute(preadrange.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), subresource, core::mem::transmute(preadrange.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Unmap(&self, subresource: u32, pwrittenrange: Option<*const D3D12_RANGE>) { - (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), core::mem::transmute(subresource), core::mem::transmute(pwrittenrange.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), subresource, core::mem::transmute(pwrittenrange.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDesc(&self) -> D3D12_RESOURCE_DESC { @@ -15273,10 +15251,10 @@ impl ID3D12Resource { (windows_core::Interface::vtable(self).GetGPUVirtualAddress)(windows_core::Interface::as_raw(self)) } pub unsafe fn WriteToSubresource(&self, dstsubresource: u32, pdstbox: Option<*const D3D12_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteToSubresource)(windows_core::Interface::as_raw(self), core::mem::transmute(dstsubresource), core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrcdata), core::mem::transmute(srcrowpitch), core::mem::transmute(srcdepthpitch)).ok() + (windows_core::Interface::vtable(self).WriteToSubresource)(windows_core::Interface::as_raw(self), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(core::mem::zeroed())), psrcdata, srcrowpitch, srcdepthpitch).ok() } pub unsafe fn ReadFromSubresource(&self, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, srcsubresource: u32, psrcbox: Option<*const D3D12_BOX>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadFromSubresource)(windows_core::Interface::as_raw(self), core::mem::transmute(pdstdata), core::mem::transmute(dstrowpitch), core::mem::transmute(dstdepthpitch), core::mem::transmute(srcsubresource), core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadFromSubresource)(windows_core::Interface::as_raw(self), core::mem::transmute(pdstdata), dstrowpitch, dstdepthpitch, srcsubresource, core::mem::transmute(psrcbox.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetHeapProperties(&self, pheapproperties: Option<*mut D3D12_HEAP_PROPERTIES>, pheapflags: Option<*mut D3D12_HEAP_FLAGS>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetHeapProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pheapproperties.unwrap_or(core::mem::zeroed())), core::mem::transmute(pheapflags.unwrap_or(core::mem::zeroed()))).ok() @@ -15510,7 +15488,7 @@ impl ID3D12SDKConfiguration { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSDKVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(sdkversion), sdkpath.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSDKVersion)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.param().abi()).ok() } } #[repr(C)] @@ -15551,7 +15529,7 @@ impl ID3D12SDKConfiguration1 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateDeviceFactory)(windows_core::Interface::as_raw(self), core::mem::transmute(sdkversion), sdkpath.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDeviceFactory)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FreeUnusedSDKs(&self) { (windows_core::Interface::vtable(self).FreeUnusedSDKs)(windows_core::Interface::as_raw(self)) @@ -15600,10 +15578,10 @@ impl core::ops::Deref for ID3D12ShaderCacheSession { windows_core::imp::interface_hierarchy!(ID3D12ShaderCacheSession, windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12ShaderCacheSession { pub unsafe fn FindValue(&self, pkey: *const core::ffi::c_void, keysize: u32, pvalue: *mut core::ffi::c_void, pvaluesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), core::mem::transmute(keysize), core::mem::transmute(pvalue), core::mem::transmute(pvaluesize)).ok() + (windows_core::Interface::vtable(self).FindValue)(windows_core::Interface::as_raw(self), pkey, keysize, core::mem::transmute(pvalue), core::mem::transmute(pvaluesize)).ok() } pub unsafe fn StoreValue(&self, pkey: *const core::ffi::c_void, keysize: u32, pvalue: *const core::ffi::c_void, valuesize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StoreValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), core::mem::transmute(keysize), core::mem::transmute(pvalue), core::mem::transmute(valuesize)).ok() + (windows_core::Interface::vtable(self).StoreValue)(windows_core::Interface::as_raw(self), pkey, keysize, pvalue, valuesize).ok() } pub unsafe fn SetDeleteOnDestroy(&self) { (windows_core::Interface::vtable(self).SetDeleteOnDestroy)(windows_core::Interface::as_raw(self)) @@ -15669,7 +15647,7 @@ impl ID3D12ShaderReflection { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetConstantBufferByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetConstantBufferByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where @@ -15679,19 +15657,19 @@ impl ID3D12ShaderReflection { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(resourceindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDesc)(windows_core::Interface::as_raw(self), resourceindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetInputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetInputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetOutputParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetOutputParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetPatchConstantParameterDesc(&self, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPatchConstantParameterDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterindex), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetPatchConstantParameterDesc)(windows_core::Interface::as_raw(self), parameterindex, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -15934,7 +15912,7 @@ impl ID3D12ShaderReflectionConstantBuffer { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVariableByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetVariableByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where @@ -16004,7 +15982,7 @@ impl ID3D12ShaderReflectionType { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn GetMemberTypeByIndex(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where @@ -16013,7 +15991,7 @@ impl ID3D12ShaderReflectionType { (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberTypeName(&self, index: u32) -> windows_core::PCSTR { - (windows_core::Interface::vtable(self).GetMemberTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetMemberTypeName)(windows_core::Interface::as_raw(self), index) } pub unsafe fn IsEqual(&self, ptype: P0) -> windows_core::Result<()> where @@ -16031,7 +16009,7 @@ impl ID3D12ShaderReflectionType { (windows_core::Interface::vtable(self).GetNumInterfaces)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetInterfaceByIndex(&self, uindex: u32) -> Option { - (windows_core::Interface::vtable(self).GetInterfaceByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex)) + (windows_core::Interface::vtable(self).GetInterfaceByIndex)(windows_core::Interface::as_raw(self), uindex) } pub unsafe fn IsOfType(&self, ptype: P0) -> windows_core::Result<()> where @@ -16180,7 +16158,7 @@ impl ID3D12ShaderReflectionVariable { (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetInterfaceSlot(&self, uarrayindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetInterfaceSlot)(windows_core::Interface::as_raw(self), core::mem::transmute(uarrayindex)) + (windows_core::Interface::vtable(self).GetInterfaceSlot)(windows_core::Interface::as_raw(self), uarrayindex) } } #[repr(C)] @@ -16241,19 +16219,19 @@ impl ID3D12SharingContract { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(subresource), core::mem::transmute(window)) + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, window) } pub unsafe fn SharedFenceSignal(&self, pfence: P0, fencevalue: u64) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SharedFenceSignal)(windows_core::Interface::as_raw(self), pfence.param().abi(), core::mem::transmute(fencevalue)) + (windows_core::Interface::vtable(self).SharedFenceSignal)(windows_core::Interface::as_raw(self), pfence.param().abi(), fencevalue) } pub unsafe fn BeginCapturableWork(&self, guid: *const windows_core::GUID) { - (windows_core::Interface::vtable(self).BeginCapturableWork)(windows_core::Interface::as_raw(self), core::mem::transmute(guid)) + (windows_core::Interface::vtable(self).BeginCapturableWork)(windows_core::Interface::as_raw(self), guid) } pub unsafe fn EndCapturableWork(&self, guid: *const windows_core::GUID) { - (windows_core::Interface::vtable(self).EndCapturableWork)(windows_core::Interface::as_raw(self), core::mem::transmute(guid)) + (windows_core::Interface::vtable(self).EndCapturableWork)(windows_core::Interface::as_raw(self), guid) } } #[repr(C)] @@ -16346,7 +16324,7 @@ impl ID3D12StateObjectProperties { (windows_core::Interface::vtable(self).GetPipelineStackSize)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPipelineStackSize(&self, pipelinestacksizeinbytes: u64) { - (windows_core::Interface::vtable(self).SetPipelineStackSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pipelinestacksizeinbytes)) + (windows_core::Interface::vtable(self).SetPipelineStackSize)(windows_core::Interface::as_raw(self), pipelinestacksizeinbytes) } } #[repr(C)] @@ -16457,7 +16435,7 @@ impl ID3D12SwapChainAssistant { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetCurrentResourceAndCommandQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(riidresource), core::mem::transmute(ppvresource), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCurrentResourceAndCommandQueue)(windows_core::Interface::as_raw(self), riidresource, core::mem::transmute(ppvresource), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertImplicitSync(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InsertImplicitSync)(windows_core::Interface::as_raw(self)).ok() @@ -16558,7 +16536,7 @@ windows_core::imp::interface_hierarchy!(ID3D12VersionedRootSignatureDeserializer impl ID3D12VersionedRootSignatureDeserializer { pub unsafe fn GetRootSignatureDescAtVersion(&self, converttoversion: D3D_ROOT_SIGNATURE_VERSION) -> windows_core::Result<*mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRootSignatureDescAtVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(converttoversion), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRootSignatureDescAtVersion)(windows_core::Interface::as_raw(self), converttoversion, &mut result__).map(|| result__) } pub unsafe fn GetUnconvertedRootSignatureDesc(&self) -> *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC { (windows_core::Interface::vtable(self).GetUnconvertedRootSignatureDesc)(windows_core::Interface::as_raw(self)) @@ -16618,7 +16596,7 @@ impl ID3D12VirtualizationGuestDevice { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFenceFd)(windows_core::Interface::as_raw(self), pfence.param().abi(), core::mem::transmute(fencevalue), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateFenceFd)(windows_core::Interface::as_raw(self), pfence.param().abi(), fencevalue, &mut result__).map(|| result__) } } #[repr(C)] @@ -16673,7 +16651,7 @@ impl ID3D12WorkGraphProperties { (windows_core::Interface::vtable(self).GetNumWorkGraphs)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetProgramName(&self, workgraphindex: u32) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).GetProgramName)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex)) + (windows_core::Interface::vtable(self).GetProgramName)(windows_core::Interface::as_raw(self), workgraphindex) } pub unsafe fn GetWorkGraphIndex(&self, pprogramname: P0) -> u32 where @@ -16682,38 +16660,38 @@ impl ID3D12WorkGraphProperties { (windows_core::Interface::vtable(self).GetWorkGraphIndex)(windows_core::Interface::as_raw(self), pprogramname.param().abi()) } pub unsafe fn GetNumNodes(&self, workgraphindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetNumNodes)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex)) + (windows_core::Interface::vtable(self).GetNumNodes)(windows_core::Interface::as_raw(self), workgraphindex) } pub unsafe fn GetNodeID(&self, workgraphindex: u32, nodeindex: u32) -> D3D12_NODE_ID { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNodeID)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(workgraphindex), core::mem::transmute(nodeindex)); + (windows_core::Interface::vtable(self).GetNodeID)(windows_core::Interface::as_raw(self), &mut result__, workgraphindex, nodeindex); result__ } pub unsafe fn GetNodeIndex(&self, workgraphindex: u32, nodeid: D3D12_NODE_ID) -> u32 { - (windows_core::Interface::vtable(self).GetNodeIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex), core::mem::transmute(nodeid)) + (windows_core::Interface::vtable(self).GetNodeIndex)(windows_core::Interface::as_raw(self), workgraphindex, core::mem::transmute(nodeid)) } pub unsafe fn GetNodeLocalRootArgumentsTableIndex(&self, workgraphindex: u32, nodeindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetNodeLocalRootArgumentsTableIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex), core::mem::transmute(nodeindex)) + (windows_core::Interface::vtable(self).GetNodeLocalRootArgumentsTableIndex)(windows_core::Interface::as_raw(self), workgraphindex, nodeindex) } pub unsafe fn GetNumEntrypoints(&self, workgraphindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetNumEntrypoints)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex)) + (windows_core::Interface::vtable(self).GetNumEntrypoints)(windows_core::Interface::as_raw(self), workgraphindex) } pub unsafe fn GetEntrypointID(&self, workgraphindex: u32, entrypointindex: u32) -> D3D12_NODE_ID { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntrypointID)(windows_core::Interface::as_raw(self), &mut result__, core::mem::transmute(workgraphindex), core::mem::transmute(entrypointindex)); + (windows_core::Interface::vtable(self).GetEntrypointID)(windows_core::Interface::as_raw(self), &mut result__, workgraphindex, entrypointindex); result__ } pub unsafe fn GetEntrypointIndex(&self, workgraphindex: u32, nodeid: D3D12_NODE_ID) -> u32 { - (windows_core::Interface::vtable(self).GetEntrypointIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex), core::mem::transmute(nodeid)) + (windows_core::Interface::vtable(self).GetEntrypointIndex)(windows_core::Interface::as_raw(self), workgraphindex, core::mem::transmute(nodeid)) } pub unsafe fn GetEntrypointRecordSizeInBytes(&self, workgraphindex: u32, entrypointindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetEntrypointRecordSizeInBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex), core::mem::transmute(entrypointindex)) + (windows_core::Interface::vtable(self).GetEntrypointRecordSizeInBytes)(windows_core::Interface::as_raw(self), workgraphindex, entrypointindex) } pub unsafe fn GetWorkGraphMemoryRequirements(&self, workgraphindex: u32, pworkgraphmemoryrequirements: *mut D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS) { - (windows_core::Interface::vtable(self).GetWorkGraphMemoryRequirements)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex), core::mem::transmute(pworkgraphmemoryrequirements)) + (windows_core::Interface::vtable(self).GetWorkGraphMemoryRequirements)(windows_core::Interface::as_raw(self), workgraphindex, core::mem::transmute(pworkgraphmemoryrequirements)) } pub unsafe fn GetEntrypointRecordAlignmentInBytes(&self, workgraphindex: u32, entrypointindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetEntrypointRecordAlignmentInBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(workgraphindex), core::mem::transmute(entrypointindex)) + (windows_core::Interface::vtable(self).GetEntrypointRecordAlignmentInBytes)(windows_core::Interface::as_raw(self), workgraphindex, entrypointindex) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs index 03d38fea31..e820021376 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs @@ -4,7 +4,7 @@ where P1: windows_core::Param, { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_BeginEvent(col : u32, wszname : windows_core::PCWSTR) -> i32); - D3DPERF_BeginEvent(core::mem::transmute(col), wszname.param().abi()) + D3DPERF_BeginEvent(col, wszname.param().abi()) } #[inline] pub unsafe fn D3DPERF_EndEvent() -> i32 { @@ -27,12 +27,12 @@ where P1: windows_core::Param, { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_SetMarker(col : u32, wszname : windows_core::PCWSTR)); - D3DPERF_SetMarker(core::mem::transmute(col), wszname.param().abi()) + D3DPERF_SetMarker(col, wszname.param().abi()) } #[inline] pub unsafe fn D3DPERF_SetOptions(dwoptions: u32) { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_SetOptions(dwoptions : u32)); - D3DPERF_SetOptions(core::mem::transmute(dwoptions)) + D3DPERF_SetOptions(dwoptions) } #[inline] pub unsafe fn D3DPERF_SetRegion(col: u32, wszname: P1) @@ -40,18 +40,18 @@ where P1: windows_core::Param, { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_SetRegion(col : u32, wszname : windows_core::PCWSTR)); - D3DPERF_SetRegion(core::mem::transmute(col), wszname.param().abi()) + D3DPERF_SetRegion(col, wszname.param().abi()) } #[inline] pub unsafe fn Direct3DCreate9(sdkversion: u32) -> Option { windows_targets::link!("d3d9.dll" "system" fn Direct3DCreate9(sdkversion : u32) -> Option < IDirect3D9 >); - Direct3DCreate9(core::mem::transmute(sdkversion)) + Direct3DCreate9(sdkversion) } #[inline] pub unsafe fn Direct3DCreate9Ex(sdkversion: u32) -> windows_core::Result { windows_targets::link!("d3d9.dll" "system" fn Direct3DCreate9Ex(sdkversion : u32, param1 : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - Direct3DCreate9Ex(core::mem::transmute(sdkversion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + Direct3DCreate9Ex(sdkversion, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub const D3D9_RESOURCE_PRIORITY_HIGH: u32 = 2684354560u32; pub const D3D9_RESOURCE_PRIORITY_LOW: u32 = 1342177280u32; @@ -3878,41 +3878,41 @@ impl IDirect3D9 { (windows_core::Interface::vtable(self).GetAdapterCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetAdapterIdentifier(&self, adapter: u32, flags: u32, pidentifier: *mut D3DADAPTER_IDENTIFIER9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAdapterIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(flags), core::mem::transmute(pidentifier)).ok() + (windows_core::Interface::vtable(self).GetAdapterIdentifier)(windows_core::Interface::as_raw(self), adapter, flags, core::mem::transmute(pidentifier)).ok() } pub unsafe fn GetAdapterModeCount(&self, adapter: u32, format: D3DFORMAT) -> u32 { - (windows_core::Interface::vtable(self).GetAdapterModeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(format)) + (windows_core::Interface::vtable(self).GetAdapterModeCount)(windows_core::Interface::as_raw(self), adapter, format) } pub unsafe fn EnumAdapterModes(&self, adapter: u32, format: D3DFORMAT, mode: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAdapterModes)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(format), core::mem::transmute(mode), core::mem::transmute(pmode)).ok() + (windows_core::Interface::vtable(self).EnumAdapterModes)(windows_core::Interface::as_raw(self), adapter, format, mode, core::mem::transmute(pmode)).ok() } pub unsafe fn GetAdapterDisplayMode(&self, adapter: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAdapterDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(pmode)).ok() + (windows_core::Interface::vtable(self).GetAdapterDisplayMode)(windows_core::Interface::as_raw(self), adapter, core::mem::transmute(pmode)).ok() } pub unsafe fn CheckDeviceType(&self, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckDeviceType)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devtype), core::mem::transmute(adapterformat), core::mem::transmute(backbufferformat), bwindowed.into()).ok() + (windows_core::Interface::vtable(self).CheckDeviceType)(windows_core::Interface::as_raw(self), adapter, devtype, adapterformat, backbufferformat, bwindowed.into()).ok() } pub unsafe fn CheckDeviceFormat(&self, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, usage: u32, rtype: D3DRESOURCETYPE, checkformat: D3DFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckDeviceFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(adapterformat), core::mem::transmute(usage), core::mem::transmute(rtype), core::mem::transmute(checkformat)).ok() + (windows_core::Interface::vtable(self).CheckDeviceFormat)(windows_core::Interface::as_raw(self), adapter, devicetype, adapterformat, usage, rtype, checkformat).ok() } pub unsafe fn CheckDeviceMultiSampleType(&self, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: bool, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckDeviceMultiSampleType)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(surfaceformat), windowed.into(), core::mem::transmute(multisampletype), core::mem::transmute(pqualitylevels)).ok() + (windows_core::Interface::vtable(self).CheckDeviceMultiSampleType)(windows_core::Interface::as_raw(self), adapter, devicetype, surfaceformat, windowed.into(), multisampletype, core::mem::transmute(pqualitylevels)).ok() } pub unsafe fn CheckDepthStencilMatch(&self, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, rendertargetformat: D3DFORMAT, depthstencilformat: D3DFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckDepthStencilMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(adapterformat), core::mem::transmute(rendertargetformat), core::mem::transmute(depthstencilformat)).ok() + (windows_core::Interface::vtable(self).CheckDepthStencilMatch)(windows_core::Interface::as_raw(self), adapter, devicetype, adapterformat, rendertargetformat, depthstencilformat).ok() } pub unsafe fn CheckDeviceFormatConversion(&self, adapter: u32, devicetype: D3DDEVTYPE, sourceformat: D3DFORMAT, targetformat: D3DFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckDeviceFormatConversion)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(sourceformat), core::mem::transmute(targetformat)).ok() + (windows_core::Interface::vtable(self).CheckDeviceFormatConversion)(windows_core::Interface::as_raw(self), adapter, devicetype, sourceformat, targetformat).ok() } pub unsafe fn GetDeviceCaps(&self, adapter: u32, devicetype: D3DDEVTYPE, pcaps: *mut D3DCAPS9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(pcaps)).ok() + (windows_core::Interface::vtable(self).GetDeviceCaps)(windows_core::Interface::as_raw(self), adapter, devicetype, core::mem::transmute(pcaps)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAdapterMonitor(&self, adapter: u32) -> super::Gdi::HMONITOR { - (windows_core::Interface::vtable(self).GetAdapterMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter)) + (windows_core::Interface::vtable(self).GetAdapterMonitor)(windows_core::Interface::as_raw(self), adapter) } pub unsafe fn CreateDevice(&self, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(hfocuswindow), core::mem::transmute(behaviorflags), core::mem::transmute(ppresentationparameters), core::mem::transmute(ppreturneddeviceinterface)).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow, behaviorflags, core::mem::transmute(ppresentationparameters), core::mem::transmute(ppreturneddeviceinterface)).ok() } } #[repr(C)] @@ -4046,19 +4046,19 @@ impl core::ops::Deref for IDirect3D9Ex { windows_core::imp::interface_hierarchy!(IDirect3D9Ex, windows_core::IUnknown, IDirect3D9); impl IDirect3D9Ex { pub unsafe fn GetAdapterModeCountEx(&self, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER) -> u32 { - (windows_core::Interface::vtable(self).GetAdapterModeCountEx)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(pfilter)) + (windows_core::Interface::vtable(self).GetAdapterModeCountEx)(windows_core::Interface::as_raw(self), adapter, pfilter) } pub unsafe fn EnumAdapterModesEx(&self, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER, mode: u32, pmode: *mut D3DDISPLAYMODEEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAdapterModesEx)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(pfilter), core::mem::transmute(mode), core::mem::transmute(pmode)).ok() + (windows_core::Interface::vtable(self).EnumAdapterModesEx)(windows_core::Interface::as_raw(self), adapter, pfilter, mode, core::mem::transmute(pmode)).ok() } pub unsafe fn GetAdapterDisplayModeEx(&self, adapter: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAdapterDisplayModeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(pmode), core::mem::transmute(protation)).ok() + (windows_core::Interface::vtable(self).GetAdapterDisplayModeEx)(windows_core::Interface::as_raw(self), adapter, core::mem::transmute(pmode), core::mem::transmute(protation)).ok() } pub unsafe fn CreateDeviceEx(&self, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX, ppreturneddeviceinterface: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devicetype), core::mem::transmute(hfocuswindow), core::mem::transmute(behaviorflags), core::mem::transmute(ppresentationparameters), core::mem::transmute(pfullscreendisplaymode), core::mem::transmute(ppreturneddeviceinterface)).ok() + (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow, behaviorflags, core::mem::transmute(ppresentationparameters), core::mem::transmute(pfullscreendisplaymode), core::mem::transmute(ppreturneddeviceinterface)).ok() } pub unsafe fn GetAdapterLUID(&self, adapter: u32, pluid: *mut super::super::Foundation::LUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAdapterLUID)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(pluid)).ok() + (windows_core::Interface::vtable(self).GetAdapterLUID)(windows_core::Interface::as_raw(self), adapter, core::mem::transmute(pluid)).ok() } } #[repr(C)] @@ -4126,7 +4126,7 @@ impl core::ops::Deref for IDirect3DBaseTexture9 { windows_core::imp::interface_hierarchy!(IDirect3DBaseTexture9, windows_core::IUnknown, IDirect3DResource9); impl IDirect3DBaseTexture9 { pub unsafe fn SetLOD(&self, lodnew: u32) -> u32 { - (windows_core::Interface::vtable(self).SetLOD)(windows_core::Interface::as_raw(self), core::mem::transmute(lodnew)) + (windows_core::Interface::vtable(self).SetLOD)(windows_core::Interface::as_raw(self), lodnew) } pub unsafe fn GetLOD(&self) -> u32 { (windows_core::Interface::vtable(self).GetLOD)(windows_core::Interface::as_raw(self)) @@ -4135,7 +4135,7 @@ impl IDirect3DBaseTexture9 { (windows_core::Interface::vtable(self).GetLevelCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetAutoGenFilterType(&self, filtertype: D3DTEXTUREFILTERTYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoGenFilterType)(windows_core::Interface::as_raw(self), core::mem::transmute(filtertype)).ok() + (windows_core::Interface::vtable(self).SetAutoGenFilterType)(windows_core::Interface::as_raw(self), filtertype).ok() } pub unsafe fn GetAutoGenFilterType(&self) -> D3DTEXTUREFILTERTYPE { (windows_core::Interface::vtable(self).GetAutoGenFilterType)(windows_core::Interface::as_raw(self)) @@ -4213,20 +4213,20 @@ impl core::ops::Deref for IDirect3DCubeTexture9 { windows_core::imp::interface_hierarchy!(IDirect3DCubeTexture9, windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); impl IDirect3DCubeTexture9 { pub unsafe fn GetLevelDesc(&self, level: u32, pdesc: *mut D3DSURFACE_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLevelDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(level), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetLevelDesc)(windows_core::Interface::as_raw(self), level, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetCubeMapSurface(&self, facetype: D3DCUBEMAP_FACES, level: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCubeMapSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(facetype), core::mem::transmute(level), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCubeMapSurface)(windows_core::Interface::as_raw(self), facetype, level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LockRect(&self, facetype: D3DCUBEMAP_FACES, level: u32, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockRect)(windows_core::Interface::as_raw(self), core::mem::transmute(facetype), core::mem::transmute(level), core::mem::transmute(plockedrect), core::mem::transmute(prect), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LockRect)(windows_core::Interface::as_raw(self), facetype, level, core::mem::transmute(plockedrect), prect, flags).ok() } pub unsafe fn UnlockRect(&self, facetype: D3DCUBEMAP_FACES, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockRect)(windows_core::Interface::as_raw(self), core::mem::transmute(facetype), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).UnlockRect)(windows_core::Interface::as_raw(self), facetype, level).ok() } pub unsafe fn AddDirtyRect(&self, facetype: D3DCUBEMAP_FACES, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDirtyRect)(windows_core::Interface::as_raw(self), core::mem::transmute(facetype), core::mem::transmute(pdirtyrect)).ok() + (windows_core::Interface::vtable(self).AddDirtyRect)(windows_core::Interface::as_raw(self), facetype, pdirtyrect).ok() } } #[repr(C)] @@ -4307,7 +4307,7 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).GetDeviceCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pcaps)).ok() } pub unsafe fn GetDisplayMode(&self, iswapchain: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), core::mem::transmute(pmode)).ok() + (windows_core::Interface::vtable(self).GetDisplayMode)(windows_core::Interface::as_raw(self), iswapchain, core::mem::transmute(pmode)).ok() } pub unsafe fn GetCreationParameters(&self, pparameters: *mut D3DDEVICE_CREATION_PARAMETERS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCreationParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters)).ok() @@ -4316,10 +4316,10 @@ impl IDirect3DDevice9 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCursorProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(xhotspot), core::mem::transmute(yhotspot), pcursorbitmap.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCursorProperties)(windows_core::Interface::as_raw(self), xhotspot, yhotspot, pcursorbitmap.param().abi()).ok() } pub unsafe fn SetCursorPosition(&self, x: i32, y: i32, flags: u32) { - (windows_core::Interface::vtable(self).SetCursorPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).SetCursorPosition)(windows_core::Interface::as_raw(self), x, y, flags) } pub unsafe fn ShowCursor(&self, bshow: bool) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).ShowCursor)(windows_core::Interface::as_raw(self), bshow.into()) @@ -4329,7 +4329,7 @@ impl IDirect3DDevice9 { } pub unsafe fn GetSwapChain(&self, iswapchain: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSwapChain)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSwapChain)(windows_core::Interface::as_raw(self), iswapchain, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNumberOfSwapChains(&self) -> u32 { (windows_core::Interface::vtable(self).GetNumberOfSwapChains)(windows_core::Interface::as_raw(self)) @@ -4339,51 +4339,51 @@ impl IDirect3DDevice9 { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe 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) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), core::mem::transmute(psourcerect), core::mem::transmute(pdestrect), core::mem::transmute(hdestwindowoverride), core::mem::transmute(pdirtyregion)).ok() + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride, pdirtyregion).ok() } pub unsafe fn GetBackBuffer(&self, iswapchain: u32, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), core::mem::transmute(ibackbuffer), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackBuffer)(windows_core::Interface::as_raw(self), iswapchain, ibackbuffer, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRasterStatus(&self, iswapchain: u32, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRasterStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), core::mem::transmute(prasterstatus)).ok() + (windows_core::Interface::vtable(self).GetRasterStatus)(windows_core::Interface::as_raw(self), iswapchain, core::mem::transmute(prasterstatus)).ok() } pub unsafe fn SetDialogBoxMode(&self, benabledialogs: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDialogBoxMode)(windows_core::Interface::as_raw(self), benabledialogs.into()).ok() } pub unsafe fn SetGammaRamp(&self, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP) { - (windows_core::Interface::vtable(self).SetGammaRamp)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), core::mem::transmute(flags), core::mem::transmute(pramp)) + (windows_core::Interface::vtable(self).SetGammaRamp)(windows_core::Interface::as_raw(self), iswapchain, flags, pramp) } pub unsafe fn GetGammaRamp(&self, iswapchain: u32, pramp: *mut D3DGAMMARAMP) { - (windows_core::Interface::vtable(self).GetGammaRamp)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), core::mem::transmute(pramp)) + (windows_core::Interface::vtable(self).GetGammaRamp)(windows_core::Interface::as_raw(self), iswapchain, core::mem::transmute(pramp)) } pub unsafe fn CreateTexture(&self, width: u32, height: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, pptexture: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(levels), core::mem::transmute(usage), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(pptexture), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateTexture)(windows_core::Interface::as_raw(self), width, height, levels, usage, format, pool, core::mem::transmute(pptexture), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn CreateVolumeTexture(&self, width: u32, height: u32, depth: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppvolumetexture: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateVolumeTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(depth), core::mem::transmute(levels), core::mem::transmute(usage), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(ppvolumetexture), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateVolumeTexture)(windows_core::Interface::as_raw(self), width, height, depth, levels, usage, format, pool, core::mem::transmute(ppvolumetexture), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn CreateCubeTexture(&self, edgelength: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppcubetexture: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateCubeTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(edgelength), core::mem::transmute(levels), core::mem::transmute(usage), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(ppcubetexture), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateCubeTexture)(windows_core::Interface::as_raw(self), edgelength, levels, usage, format, pool, core::mem::transmute(ppcubetexture), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn CreateVertexBuffer(&self, length: u32, usage: u32, fvf: u32, pool: D3DPOOL, ppvertexbuffer: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateVertexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(length), core::mem::transmute(usage), core::mem::transmute(fvf), core::mem::transmute(pool), core::mem::transmute(ppvertexbuffer), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateVertexBuffer)(windows_core::Interface::as_raw(self), length, usage, fvf, pool, core::mem::transmute(ppvertexbuffer), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn CreateIndexBuffer(&self, length: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppindexbuffer: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateIndexBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(length), core::mem::transmute(usage), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(ppindexbuffer), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateIndexBuffer)(windows_core::Interface::as_raw(self), length, usage, format, pool, core::mem::transmute(ppindexbuffer), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn CreateRenderTarget(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: bool, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(multisample), core::mem::transmute(multisamplequality), lockable.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateRenderTarget)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn CreateDepthStencilSurface(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: bool, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDepthStencilSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(multisample), core::mem::transmute(multisamplequality), discard.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilSurface)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn UpdateSurface(&self, psourcesurface: P0, psourcerect: *const super::super::Foundation::RECT, pdestinationsurface: P2, pdestpoint: *const super::super::Foundation::POINT) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSurface)(windows_core::Interface::as_raw(self), psourcesurface.param().abi(), core::mem::transmute(psourcerect), pdestinationsurface.param().abi(), core::mem::transmute(pdestpoint)).ok() + (windows_core::Interface::vtable(self).UpdateSurface)(windows_core::Interface::as_raw(self), psourcesurface.param().abi(), psourcerect, pdestinationsurface.param().abi(), pdestpoint).ok() } pub unsafe fn UpdateTexture(&self, psourcetexture: P0, pdestinationtexture: P1) -> windows_core::Result<()> where @@ -4403,33 +4403,33 @@ impl IDirect3DDevice9 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFrontBufferData)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), pdestsurface.param().abi()).ok() + (windows_core::Interface::vtable(self).GetFrontBufferData)(windows_core::Interface::as_raw(self), iswapchain, pdestsurface.param().abi()).ok() } pub unsafe fn StretchRect(&self, psourcesurface: P0, psourcerect: *const super::super::Foundation::RECT, pdestsurface: P2, pdestrect: *const super::super::Foundation::RECT, filter: D3DTEXTUREFILTERTYPE) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).StretchRect)(windows_core::Interface::as_raw(self), psourcesurface.param().abi(), core::mem::transmute(psourcerect), pdestsurface.param().abi(), core::mem::transmute(pdestrect), core::mem::transmute(filter)).ok() + (windows_core::Interface::vtable(self).StretchRect)(windows_core::Interface::as_raw(self), psourcesurface.param().abi(), psourcerect, pdestsurface.param().abi(), pdestrect, filter).ok() } pub unsafe fn ColorFill(&self, psurface: P0, prect: *const super::super::Foundation::RECT, color: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ColorFill)(windows_core::Interface::as_raw(self), psurface.param().abi(), core::mem::transmute(prect), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).ColorFill)(windows_core::Interface::as_raw(self), psurface.param().abi(), prect, color).ok() } pub unsafe fn CreateOffscreenPlainSurface(&self, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateOffscreenPlainSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle)).ok() + (windows_core::Interface::vtable(self).CreateOffscreenPlainSurface)(windows_core::Interface::as_raw(self), width, height, format, pool, core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle)).ok() } pub unsafe fn SetRenderTarget(&self, rendertargetindex: u32, prendertarget: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(rendertargetindex), prendertarget.param().abi()).ok() + (windows_core::Interface::vtable(self).SetRenderTarget)(windows_core::Interface::as_raw(self), rendertargetindex, prendertarget.param().abi()).ok() } pub unsafe fn GetRenderTarget(&self, rendertargetindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(rendertargetindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRenderTarget)(windows_core::Interface::as_raw(self), rendertargetindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDepthStencilSurface(&self, pnewzstencil: P0) -> windows_core::Result<()> where @@ -4448,61 +4448,61 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).EndScene)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Clear(&self, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(prects), core::mem::transmute(flags), core::mem::transmute(color), core::mem::transmute(z), core::mem::transmute(stencil)).ok() + (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), count, prects, flags, color, z, stencil).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(pmatrix)).ok() + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), state, pmatrix).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn GetTransform(&self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(pmatrix)).ok() + (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), state, core::mem::transmute(pmatrix)).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn MultiplyTransform(&self, param0: D3DTRANSFORMSTATETYPE, param1: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MultiplyTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).MultiplyTransform)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetViewport(&self, pviewport: *const D3DVIEWPORT9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewport)(windows_core::Interface::as_raw(self), core::mem::transmute(pviewport)).ok() + (windows_core::Interface::vtable(self).SetViewport)(windows_core::Interface::as_raw(self), pviewport).ok() } pub unsafe fn GetViewport(&self, pviewport: *mut D3DVIEWPORT9) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetViewport)(windows_core::Interface::as_raw(self), core::mem::transmute(pviewport)).ok() } pub unsafe fn SetMaterial(&self, pmaterial: *const D3DMATERIAL9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaterial)(windows_core::Interface::as_raw(self), core::mem::transmute(pmaterial)).ok() + (windows_core::Interface::vtable(self).SetMaterial)(windows_core::Interface::as_raw(self), pmaterial).ok() } pub unsafe fn GetMaterial(&self, pmaterial: *mut D3DMATERIAL9) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMaterial)(windows_core::Interface::as_raw(self), core::mem::transmute(pmaterial)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn SetLight(&self, index: u32, param1: *const D3DLIGHT9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLight)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetLight)(windows_core::Interface::as_raw(self), index, param1).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetLight(&self, index: u32, param1: *mut D3DLIGHT9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLight)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetLight)(windows_core::Interface::as_raw(self), index, core::mem::transmute(param1)).ok() } pub unsafe fn LightEnable(&self, index: u32, enable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LightEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(index), enable.into()).ok() + (windows_core::Interface::vtable(self).LightEnable)(windows_core::Interface::as_raw(self), index, enable.into()).ok() } pub unsafe fn GetLightEnable(&self, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLightEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(penable)).ok() + (windows_core::Interface::vtable(self).GetLightEnable)(windows_core::Interface::as_raw(self), index, core::mem::transmute(penable)).ok() } pub unsafe fn SetClipPlane(&self, index: u32, pplane: *const f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipPlane)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pplane)).ok() + (windows_core::Interface::vtable(self).SetClipPlane)(windows_core::Interface::as_raw(self), index, pplane).ok() } pub unsafe fn GetClipPlane(&self, index: u32, pplane: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClipPlane)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pplane)).ok() + (windows_core::Interface::vtable(self).GetClipPlane)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pplane)).ok() } pub unsafe fn SetRenderState(&self, state: D3DRENDERSTATETYPE, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderState)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetRenderState)(windows_core::Interface::as_raw(self), state, value).ok() } pub unsafe fn GetRenderState(&self, state: D3DRENDERSTATETYPE, pvalue: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRenderState)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetRenderState)(windows_core::Interface::as_raw(self), state, core::mem::transmute(pvalue)).ok() } pub unsafe fn CreateStateBlock(&self, r#type: D3DSTATEBLOCKTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStateBlock)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BeginStateBlock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginStateBlock)(windows_core::Interface::as_raw(self)).ok() @@ -4512,52 +4512,52 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).EndStateBlock)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetClipStatus(&self, pclipstatus: *const D3DCLIPSTATUS9) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pclipstatus)).ok() + (windows_core::Interface::vtable(self).SetClipStatus)(windows_core::Interface::as_raw(self), pclipstatus).ok() } pub unsafe fn GetClipStatus(&self, pclipstatus: *mut D3DCLIPSTATUS9) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetClipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pclipstatus)).ok() } pub unsafe fn GetTexture(&self, stage: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(stage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTexture)(windows_core::Interface::as_raw(self), stage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetTexture(&self, stage: u32, ptexture: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(stage), ptexture.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTexture)(windows_core::Interface::as_raw(self), stage, ptexture.param().abi()).ok() } pub unsafe fn GetTextureStageState(&self, stage: u32, r#type: D3DTEXTURESTAGESTATETYPE, pvalue: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextureStageState)(windows_core::Interface::as_raw(self), core::mem::transmute(stage), core::mem::transmute(r#type), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetTextureStageState)(windows_core::Interface::as_raw(self), stage, r#type, core::mem::transmute(pvalue)).ok() } pub unsafe fn SetTextureStageState(&self, stage: u32, r#type: D3DTEXTURESTAGESTATETYPE, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextureStageState)(windows_core::Interface::as_raw(self), core::mem::transmute(stage), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTextureStageState)(windows_core::Interface::as_raw(self), stage, r#type, value).ok() } pub unsafe fn GetSamplerState(&self, sampler: u32, r#type: D3DSAMPLERSTATETYPE, pvalue: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSamplerState)(windows_core::Interface::as_raw(self), core::mem::transmute(sampler), core::mem::transmute(r#type), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetSamplerState)(windows_core::Interface::as_raw(self), sampler, r#type, core::mem::transmute(pvalue)).ok() } pub unsafe fn SetSamplerState(&self, sampler: u32, r#type: D3DSAMPLERSTATETYPE, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSamplerState)(windows_core::Interface::as_raw(self), core::mem::transmute(sampler), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSamplerState)(windows_core::Interface::as_raw(self), sampler, r#type, value).ok() } pub unsafe fn ValidateDevice(&self, pnumpasses: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ValidateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(pnumpasses)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetPaletteEntries(&self, palettenumber: u32, pentries: *const super::Gdi::PALETTEENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPaletteEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(palettenumber), core::mem::transmute(pentries)).ok() + (windows_core::Interface::vtable(self).SetPaletteEntries)(windows_core::Interface::as_raw(self), palettenumber, pentries).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPaletteEntries(&self, palettenumber: u32, pentries: *mut super::Gdi::PALETTEENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPaletteEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(palettenumber), core::mem::transmute(pentries)).ok() + (windows_core::Interface::vtable(self).GetPaletteEntries)(windows_core::Interface::as_raw(self), palettenumber, core::mem::transmute(pentries)).ok() } pub unsafe fn SetCurrentTexturePalette(&self, palettenumber: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentTexturePalette)(windows_core::Interface::as_raw(self), core::mem::transmute(palettenumber)).ok() + (windows_core::Interface::vtable(self).SetCurrentTexturePalette)(windows_core::Interface::as_raw(self), palettenumber).ok() } pub unsafe fn GetCurrentTexturePalette(&self, palettenumber: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentTexturePalette)(windows_core::Interface::as_raw(self), core::mem::transmute(palettenumber)).ok() } pub unsafe fn SetScissorRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScissorRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetScissorRect)(windows_core::Interface::as_raw(self), prect).ok() } pub unsafe fn GetScissorRect(&self, prect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetScissorRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() @@ -4569,33 +4569,33 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).GetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetNPatchMode(&self, nsegments: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNPatchMode)(windows_core::Interface::as_raw(self), core::mem::transmute(nsegments)).ok() + (windows_core::Interface::vtable(self).SetNPatchMode)(windows_core::Interface::as_raw(self), nsegments).ok() } pub unsafe fn GetNPatchMode(&self) -> f32 { (windows_core::Interface::vtable(self).GetNPatchMode)(windows_core::Interface::as_raw(self)) } pub unsafe fn DrawPrimitive(&self, primitivetype: D3DPRIMITIVETYPE, startvertex: u32, primitivecount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawPrimitive)(windows_core::Interface::as_raw(self), core::mem::transmute(primitivetype), core::mem::transmute(startvertex), core::mem::transmute(primitivecount)).ok() + (windows_core::Interface::vtable(self).DrawPrimitive)(windows_core::Interface::as_raw(self), primitivetype, startvertex, primitivecount).ok() } pub unsafe fn DrawIndexedPrimitive(&self, param0: D3DPRIMITIVETYPE, basevertexindex: i32, minvertexindex: u32, numvertices: u32, startindex: u32, primcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawIndexedPrimitive)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(basevertexindex), core::mem::transmute(minvertexindex), core::mem::transmute(numvertices), core::mem::transmute(startindex), core::mem::transmute(primcount)).ok() + (windows_core::Interface::vtable(self).DrawIndexedPrimitive)(windows_core::Interface::as_raw(self), param0, basevertexindex, minvertexindex, numvertices, startindex, primcount).ok() } pub unsafe fn DrawPrimitiveUP(&self, primitivetype: D3DPRIMITIVETYPE, primitivecount: u32, pvertexstreamzerodata: *const core::ffi::c_void, vertexstreamzerostride: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawPrimitiveUP)(windows_core::Interface::as_raw(self), core::mem::transmute(primitivetype), core::mem::transmute(primitivecount), core::mem::transmute(pvertexstreamzerodata), core::mem::transmute(vertexstreamzerostride)).ok() + (windows_core::Interface::vtable(self).DrawPrimitiveUP)(windows_core::Interface::as_raw(self), primitivetype, primitivecount, pvertexstreamzerodata, vertexstreamzerostride).ok() } pub unsafe fn DrawIndexedPrimitiveUP(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).DrawIndexedPrimitiveUP)(windows_core::Interface::as_raw(self), core::mem::transmute(primitivetype), core::mem::transmute(minvertexindex), core::mem::transmute(numvertices), core::mem::transmute(primitivecount), core::mem::transmute(pindexdata), core::mem::transmute(indexdataformat), core::mem::transmute(pvertexstreamzerodata), core::mem::transmute(vertexstreamzerostride)).ok() + (windows_core::Interface::vtable(self).DrawIndexedPrimitiveUP)(windows_core::Interface::as_raw(self), primitivetype, minvertexindex, numvertices, primitivecount, pindexdata, indexdataformat, pvertexstreamzerodata, vertexstreamzerostride).ok() } pub unsafe fn ProcessVertices(&self, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: P3, pvertexdecl: P4, flags: u32) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessVertices)(windows_core::Interface::as_raw(self), core::mem::transmute(srcstartindex), core::mem::transmute(destindex), core::mem::transmute(vertexcount), pdestbuffer.param().abi(), pvertexdecl.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ProcessVertices)(windows_core::Interface::as_raw(self), srcstartindex, destindex, vertexcount, pdestbuffer.param().abi(), pvertexdecl.param().abi(), flags).ok() } pub unsafe fn CreateVertexDeclaration(&self, pvertexelements: *const D3DVERTEXELEMENT9) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVertexDeclaration)(windows_core::Interface::as_raw(self), core::mem::transmute(pvertexelements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVertexDeclaration)(windows_core::Interface::as_raw(self), pvertexelements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetVertexDeclaration(&self, pdecl: P0) -> windows_core::Result<()> where @@ -4608,14 +4608,14 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).GetVertexDeclaration)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFVF(&self, fvf: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFVF)(windows_core::Interface::as_raw(self), core::mem::transmute(fvf)).ok() + (windows_core::Interface::vtable(self).SetFVF)(windows_core::Interface::as_raw(self), fvf).ok() } pub unsafe fn GetFVF(&self, pfvf: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFVF)(windows_core::Interface::as_raw(self), core::mem::transmute(pfvf)).ok() } pub unsafe fn CreateVertexShader(&self, pfunction: *const u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pfunction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVertexShader)(windows_core::Interface::as_raw(self), pfunction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetVertexShader(&self, pshader: P0) -> windows_core::Result<()> where @@ -4628,37 +4628,37 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).GetVertexShader)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetVertexShaderConstantF(&self, startregister: u32, pconstantdata: *const f32, vector4fcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVertexShaderConstantF)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4fcount)).ok() + (windows_core::Interface::vtable(self).SetVertexShaderConstantF)(windows_core::Interface::as_raw(self), startregister, pconstantdata, vector4fcount).ok() } pub unsafe fn GetVertexShaderConstantF(&self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVertexShaderConstantF)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4fcount)).ok() + (windows_core::Interface::vtable(self).GetVertexShaderConstantF)(windows_core::Interface::as_raw(self), startregister, core::mem::transmute(pconstantdata), vector4fcount).ok() } pub unsafe fn SetVertexShaderConstantI(&self, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVertexShaderConstantI)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4icount)).ok() + (windows_core::Interface::vtable(self).SetVertexShaderConstantI)(windows_core::Interface::as_raw(self), startregister, pconstantdata, vector4icount).ok() } pub unsafe fn GetVertexShaderConstantI(&self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVertexShaderConstantI)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4icount)).ok() + (windows_core::Interface::vtable(self).GetVertexShaderConstantI)(windows_core::Interface::as_raw(self), startregister, core::mem::transmute(pconstantdata), vector4icount).ok() } pub unsafe fn SetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVertexShaderConstantB)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(boolcount)).ok() + (windows_core::Interface::vtable(self).SetVertexShaderConstantB)(windows_core::Interface::as_raw(self), startregister, pconstantdata, boolcount).ok() } pub unsafe fn GetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVertexShaderConstantB)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(boolcount)).ok() + (windows_core::Interface::vtable(self).GetVertexShaderConstantB)(windows_core::Interface::as_raw(self), startregister, core::mem::transmute(pconstantdata), boolcount).ok() } pub unsafe fn SetStreamSource(&self, streamnumber: u32, pstreamdata: P1, offsetinbytes: u32, stride: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSource)(windows_core::Interface::as_raw(self), core::mem::transmute(streamnumber), pstreamdata.param().abi(), core::mem::transmute(offsetinbytes), core::mem::transmute(stride)).ok() + (windows_core::Interface::vtable(self).SetStreamSource)(windows_core::Interface::as_raw(self), streamnumber, pstreamdata.param().abi(), offsetinbytes, stride).ok() } pub unsafe fn GetStreamSource(&self, streamnumber: u32, ppstreamdata: *mut Option, poffsetinbytes: *mut u32, pstride: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamSource)(windows_core::Interface::as_raw(self), core::mem::transmute(streamnumber), core::mem::transmute(ppstreamdata), core::mem::transmute(poffsetinbytes), core::mem::transmute(pstride)).ok() + (windows_core::Interface::vtable(self).GetStreamSource)(windows_core::Interface::as_raw(self), streamnumber, core::mem::transmute(ppstreamdata), core::mem::transmute(poffsetinbytes), core::mem::transmute(pstride)).ok() } pub unsafe fn SetStreamSourceFreq(&self, streamnumber: u32, setting: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamSourceFreq)(windows_core::Interface::as_raw(self), core::mem::transmute(streamnumber), core::mem::transmute(setting)).ok() + (windows_core::Interface::vtable(self).SetStreamSourceFreq)(windows_core::Interface::as_raw(self), streamnumber, setting).ok() } pub unsafe fn GetStreamSourceFreq(&self, streamnumber: u32, psetting: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamSourceFreq)(windows_core::Interface::as_raw(self), core::mem::transmute(streamnumber), core::mem::transmute(psetting)).ok() + (windows_core::Interface::vtable(self).GetStreamSourceFreq)(windows_core::Interface::as_raw(self), streamnumber, core::mem::transmute(psetting)).ok() } pub unsafe fn SetIndices(&self, pindexdata: P0) -> windows_core::Result<()> where @@ -4672,7 +4672,7 @@ impl IDirect3DDevice9 { } pub unsafe fn CreatePixelShader(&self, pfunction: *const u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pfunction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePixelShader)(windows_core::Interface::as_raw(self), pfunction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPixelShader(&self, pshader: P0) -> windows_core::Result<()> where @@ -4685,35 +4685,35 @@ impl IDirect3DDevice9 { (windows_core::Interface::vtable(self).GetPixelShader)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPixelShaderConstantF(&self, startregister: u32, pconstantdata: *const f32, vector4fcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPixelShaderConstantF)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4fcount)).ok() + (windows_core::Interface::vtable(self).SetPixelShaderConstantF)(windows_core::Interface::as_raw(self), startregister, pconstantdata, vector4fcount).ok() } pub unsafe fn GetPixelShaderConstantF(&self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPixelShaderConstantF)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4fcount)).ok() + (windows_core::Interface::vtable(self).GetPixelShaderConstantF)(windows_core::Interface::as_raw(self), startregister, core::mem::transmute(pconstantdata), vector4fcount).ok() } pub unsafe fn SetPixelShaderConstantI(&self, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPixelShaderConstantI)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4icount)).ok() + (windows_core::Interface::vtable(self).SetPixelShaderConstantI)(windows_core::Interface::as_raw(self), startregister, pconstantdata, vector4icount).ok() } pub unsafe fn GetPixelShaderConstantI(&self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPixelShaderConstantI)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(vector4icount)).ok() + (windows_core::Interface::vtable(self).GetPixelShaderConstantI)(windows_core::Interface::as_raw(self), startregister, core::mem::transmute(pconstantdata), vector4icount).ok() } pub unsafe fn SetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPixelShaderConstantB)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(boolcount)).ok() + (windows_core::Interface::vtable(self).SetPixelShaderConstantB)(windows_core::Interface::as_raw(self), startregister, pconstantdata, boolcount).ok() } pub unsafe fn GetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPixelShaderConstantB)(windows_core::Interface::as_raw(self), core::mem::transmute(startregister), core::mem::transmute(pconstantdata), core::mem::transmute(boolcount)).ok() + (windows_core::Interface::vtable(self).GetPixelShaderConstantB)(windows_core::Interface::as_raw(self), startregister, core::mem::transmute(pconstantdata), boolcount).ok() } pub unsafe fn DrawRectPatch(&self, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawRectPatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(pnumsegs), core::mem::transmute(prectpatchinfo)).ok() + (windows_core::Interface::vtable(self).DrawRectPatch)(windows_core::Interface::as_raw(self), handle, pnumsegs, prectpatchinfo).ok() } pub unsafe fn DrawTriPatch(&self, handle: u32, pnumsegs: *const f32, ptripatchinfo: *const D3DTRIPATCH_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawTriPatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(pnumsegs), core::mem::transmute(ptripatchinfo)).ok() + (windows_core::Interface::vtable(self).DrawTriPatch)(windows_core::Interface::as_raw(self), handle, pnumsegs, ptripatchinfo).ok() } pub unsafe fn DeletePatch(&self, handle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).DeletePatch)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn CreateQuery(&self, r#type: D3DQUERYTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateQuery)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5678,7 +5678,7 @@ impl core::ops::Deref for IDirect3DDevice9Ex { windows_core::imp::interface_hierarchy!(IDirect3DDevice9Ex, windows_core::IUnknown, IDirect3DDevice9); impl IDirect3DDevice9Ex { pub unsafe fn SetConvolutionMonoKernel(&self, width: u32, height: u32, rows: *mut f32, columns: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConvolutionMonoKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(rows), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetConvolutionMonoKernel)(windows_core::Interface::as_raw(self), width, height, core::mem::transmute(rows), core::mem::transmute(columns)).ok() } pub unsafe fn ComposeRects(&self, psrc: P0, pdst: P1, psrcrectdescs: P2, numrects: u32, pdstrectdescs: P4, operation: D3DCOMPOSERECTSOP, xoffset: i32, yoffset: i32) -> windows_core::Result<()> where @@ -5687,47 +5687,47 @@ impl IDirect3DDevice9Ex { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ComposeRects)(windows_core::Interface::as_raw(self), psrc.param().abi(), pdst.param().abi(), psrcrectdescs.param().abi(), core::mem::transmute(numrects), pdstrectdescs.param().abi(), core::mem::transmute(operation), core::mem::transmute(xoffset), core::mem::transmute(yoffset)).ok() + (windows_core::Interface::vtable(self).ComposeRects)(windows_core::Interface::as_raw(self), psrc.param().abi(), pdst.param().abi(), psrcrectdescs.param().abi(), numrects, pdstrectdescs.param().abi(), operation, xoffset, yoffset).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn PresentEx(&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<()> { - (windows_core::Interface::vtable(self).PresentEx)(windows_core::Interface::as_raw(self), core::mem::transmute(psourcerect), core::mem::transmute(pdestrect), core::mem::transmute(hdestwindowoverride), core::mem::transmute(pdirtyregion), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).PresentEx)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride, pdirtyregion, dwflags).ok() } pub unsafe fn GetGPUThreadPriority(&self, ppriority: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGPUThreadPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(ppriority)).ok() } pub unsafe fn SetGPUThreadPriority(&self, priority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGPUThreadPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).SetGPUThreadPriority)(windows_core::Interface::as_raw(self), priority).ok() } pub unsafe fn WaitForVBlank(&self, iswapchain: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForVBlank)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain)).ok() + (windows_core::Interface::vtable(self).WaitForVBlank)(windows_core::Interface::as_raw(self), iswapchain).ok() } pub unsafe fn CheckResourceResidency(&self, presourcearray: *mut Option, numresources: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckResourceResidency)(windows_core::Interface::as_raw(self), core::mem::transmute(presourcearray), core::mem::transmute(numresources)).ok() + (windows_core::Interface::vtable(self).CheckResourceResidency)(windows_core::Interface::as_raw(self), core::mem::transmute(presourcearray), numresources).ok() } pub unsafe fn SetMaximumFrameLatency(&self, maxlatency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumFrameLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(maxlatency)).ok() + (windows_core::Interface::vtable(self).SetMaximumFrameLatency)(windows_core::Interface::as_raw(self), maxlatency).ok() } pub unsafe fn GetMaximumFrameLatency(&self, pmaxlatency: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMaximumFrameLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(pmaxlatency)).ok() } pub unsafe fn CheckDeviceState(&self, hdestinationwindow: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckDeviceState)(windows_core::Interface::as_raw(self), core::mem::transmute(hdestinationwindow)).ok() + (windows_core::Interface::vtable(self).CheckDeviceState)(windows_core::Interface::as_raw(self), hdestinationwindow).ok() } pub unsafe fn CreateRenderTargetEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: bool, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateRenderTargetEx)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(multisample), core::mem::transmute(multisamplequality), lockable.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle), core::mem::transmute(usage)).ok() + (windows_core::Interface::vtable(self).CreateRenderTargetEx)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle), usage).ok() } pub unsafe fn CreateOffscreenPlainSurfaceEx(&self, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateOffscreenPlainSurfaceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle), core::mem::transmute(usage)).ok() + (windows_core::Interface::vtable(self).CreateOffscreenPlainSurfaceEx)(windows_core::Interface::as_raw(self), width, height, format, pool, core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle), usage).ok() } pub unsafe fn CreateDepthStencilSurfaceEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: bool, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateDepthStencilSurfaceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(multisample), core::mem::transmute(multisamplequality), discard.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle), core::mem::transmute(usage)).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilSurfaceEx)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.into(), core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle), usage).ok() } pub unsafe fn ResetEx(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresentationparameters), core::mem::transmute(pfullscreendisplaymode)).ok() } pub unsafe fn GetDisplayModeEx(&self, iswapchain: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayModeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(iswapchain), core::mem::transmute(pmode), core::mem::transmute(protation)).ok() + (windows_core::Interface::vtable(self).GetDisplayModeEx)(windows_core::Interface::as_raw(self), iswapchain, core::mem::transmute(pmode), core::mem::transmute(protation)).ok() } } #[repr(C)] @@ -5868,7 +5868,7 @@ impl core::ops::Deref for IDirect3DIndexBuffer9 { windows_core::imp::interface_hierarchy!(IDirect3DIndexBuffer9, windows_core::IUnknown, IDirect3DResource9); impl IDirect3DIndexBuffer9 { pub unsafe fn Lock(&self, offsettolock: u32, sizetolock: u32, ppbdata: *mut *mut core::ffi::c_void, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(offsettolock), core::mem::transmute(sizetolock), core::mem::transmute(ppbdata), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), offsettolock, sizetolock, core::mem::transmute(ppbdata), flags).ok() } pub unsafe fn Unlock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self)).ok() @@ -5977,10 +5977,10 @@ impl IDirect3DQuery9 { (windows_core::Interface::vtable(self).GetDataSize)(windows_core::Interface::as_raw(self)) } pub unsafe fn Issue(&self, dwissueflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Issue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwissueflags)).ok() + (windows_core::Interface::vtable(self).Issue)(windows_core::Interface::as_raw(self), dwissueflags).ok() } pub unsafe fn GetData(&self, pdata: *mut core::ffi::c_void, dwsize: u32, dwgetdataflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(dwsize), core::mem::transmute(dwgetdataflags)).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), dwsize, dwgetdataflags).ok() } } #[repr(C)] @@ -6049,16 +6049,16 @@ impl IDirect3DResource9 { (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(refguid), core::mem::transmute(pdata), core::mem::transmute(sizeofdata), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), refguid, pdata, sizeofdata, flags).ok() } pub unsafe fn GetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(refguid), core::mem::transmute(pdata), core::mem::transmute(psizeofdata)).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), refguid, core::mem::transmute(pdata), core::mem::transmute(psizeofdata)).ok() } pub unsafe fn FreePrivateData(&self, refguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(refguid)).ok() + (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), refguid).ok() } pub unsafe fn SetPriority(&self, prioritynew: u32) -> u32 { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(prioritynew)) + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), prioritynew) } pub unsafe fn GetPriority(&self) -> u32 { (windows_core::Interface::vtable(self).GetPriority)(windows_core::Interface::as_raw(self)) @@ -6217,13 +6217,13 @@ impl core::ops::Deref for IDirect3DSurface9 { windows_core::imp::interface_hierarchy!(IDirect3DSurface9, windows_core::IUnknown, IDirect3DResource9); impl IDirect3DSurface9 { pub unsafe fn GetContainer(&self, riid: *const windows_core::GUID, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContainer)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppcontainer)).ok() + (windows_core::Interface::vtable(self).GetContainer)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppcontainer)).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3DSURFACE_DESC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn LockRect(&self, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockRect)(windows_core::Interface::as_raw(self), core::mem::transmute(plockedrect), core::mem::transmute(prect), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LockRect)(windows_core::Interface::as_raw(self), core::mem::transmute(plockedrect), prect, flags).ok() } pub unsafe fn UnlockRect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnlockRect)(windows_core::Interface::as_raw(self)).ok() @@ -6234,7 +6234,7 @@ impl IDirect3DSurface9 { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, hdc: super::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), hdc).ok() } } #[repr(C)] @@ -6310,7 +6310,7 @@ windows_core::imp::interface_hierarchy!(IDirect3DSwapChain9, windows_core::IUnkn impl IDirect3DSwapChain9 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), core::mem::transmute(psourcerect), core::mem::transmute(pdestrect), core::mem::transmute(hdestwindowoverride), core::mem::transmute(pdirtyregion), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride, pdirtyregion, dwflags).ok() } pub unsafe fn GetFrontBufferData(&self, pdestsurface: P0) -> windows_core::Result<()> where @@ -6320,7 +6320,7 @@ impl IDirect3DSwapChain9 { } pub unsafe fn GetBackBuffer(&self, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(ibackbuffer), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackBuffer)(windows_core::Interface::as_raw(self), ibackbuffer, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRasterStatus(&self, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRasterStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(prasterstatus)).ok() @@ -6490,20 +6490,20 @@ impl core::ops::Deref for IDirect3DTexture9 { windows_core::imp::interface_hierarchy!(IDirect3DTexture9, windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); impl IDirect3DTexture9 { pub unsafe fn GetLevelDesc(&self, level: u32, pdesc: *mut D3DSURFACE_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLevelDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(level), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetLevelDesc)(windows_core::Interface::as_raw(self), level, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetSurfaceLevel(&self, level: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurfaceLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurfaceLevel)(windows_core::Interface::as_raw(self), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LockRect(&self, level: u32, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockRect)(windows_core::Interface::as_raw(self), core::mem::transmute(level), core::mem::transmute(plockedrect), core::mem::transmute(prect), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LockRect)(windows_core::Interface::as_raw(self), level, core::mem::transmute(plockedrect), prect, flags).ok() } pub unsafe fn UnlockRect(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockRect)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).UnlockRect)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn AddDirtyRect(&self, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDirtyRect)(windows_core::Interface::as_raw(self), core::mem::transmute(pdirtyrect)).ok() + (windows_core::Interface::vtable(self).AddDirtyRect)(windows_core::Interface::as_raw(self), pdirtyrect).ok() } } #[repr(C)] @@ -6574,7 +6574,7 @@ impl core::ops::Deref for IDirect3DVertexBuffer9 { windows_core::imp::interface_hierarchy!(IDirect3DVertexBuffer9, windows_core::IUnknown, IDirect3DResource9); impl IDirect3DVertexBuffer9 { pub unsafe fn Lock(&self, offsettolock: u32, sizetolock: u32, ppbdata: *mut *mut core::ffi::c_void, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(offsettolock), core::mem::transmute(sizetolock), core::mem::transmute(ppbdata), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), offsettolock, sizetolock, core::mem::transmute(ppbdata), flags).ok() } pub unsafe fn Unlock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self)).ok() @@ -6725,22 +6725,22 @@ impl IDirect3DVolume9 { (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(refguid), core::mem::transmute(pdata), core::mem::transmute(sizeofdata), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), refguid, pdata, sizeofdata, flags).ok() } pub unsafe fn GetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(refguid), core::mem::transmute(pdata), core::mem::transmute(psizeofdata)).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), refguid, core::mem::transmute(pdata), core::mem::transmute(psizeofdata)).ok() } pub unsafe fn FreePrivateData(&self, refguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(refguid)).ok() + (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), refguid).ok() } pub unsafe fn GetContainer(&self, riid: *const windows_core::GUID, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContainer)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppcontainer)).ok() + (windows_core::Interface::vtable(self).GetContainer)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppcontainer)).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3DVOLUME_DESC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc)).ok() } pub unsafe fn LockBox(&self, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockBox)(windows_core::Interface::as_raw(self), core::mem::transmute(plockedvolume), core::mem::transmute(pbox), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LockBox)(windows_core::Interface::as_raw(self), core::mem::transmute(plockedvolume), pbox, flags).ok() } pub unsafe fn UnlockBox(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnlockBox)(windows_core::Interface::as_raw(self)).ok() @@ -6835,20 +6835,20 @@ impl core::ops::Deref for IDirect3DVolumeTexture9 { windows_core::imp::interface_hierarchy!(IDirect3DVolumeTexture9, windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); impl IDirect3DVolumeTexture9 { pub unsafe fn GetLevelDesc(&self, level: u32, pdesc: *mut D3DVOLUME_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLevelDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(level), core::mem::transmute(pdesc)).ok() + (windows_core::Interface::vtable(self).GetLevelDesc)(windows_core::Interface::as_raw(self), level, core::mem::transmute(pdesc)).ok() } pub unsafe fn GetVolumeLevel(&self, level: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVolumeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVolumeLevel)(windows_core::Interface::as_raw(self), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LockBox(&self, level: u32, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockBox)(windows_core::Interface::as_raw(self), core::mem::transmute(level), core::mem::transmute(plockedvolume), core::mem::transmute(pbox), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LockBox)(windows_core::Interface::as_raw(self), level, core::mem::transmute(plockedvolume), pbox, flags).ok() } pub unsafe fn UnlockBox(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockBox)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).UnlockBox)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn AddDirtyBox(&self, pdirtybox: *const D3DBOX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDirtyBox)(windows_core::Interface::as_raw(self), core::mem::transmute(pdirtybox)).ok() + (windows_core::Interface::vtable(self).AddDirtyBox)(windows_core::Interface::as_raw(self), pdirtybox).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs index 75dca0f8c3..64ef92e3b3 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs @@ -2,13 +2,13 @@ #[inline] pub unsafe fn Direct3DCreate9On12(sdkversion: u32, poverridelist: *mut D3D9ON12_ARGS, numoverrideentries: u32) -> Option { windows_targets::link!("d3d9.dll" "system" fn Direct3DCreate9On12(sdkversion : u32, poverridelist : *mut D3D9ON12_ARGS, numoverrideentries : u32) -> Option < super::Direct3D9:: IDirect3D9 >); - Direct3DCreate9On12(core::mem::transmute(sdkversion), core::mem::transmute(poverridelist), core::mem::transmute(numoverrideentries)) + Direct3DCreate9On12(sdkversion, core::mem::transmute(poverridelist), numoverrideentries) } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] pub unsafe fn Direct3DCreate9On12Ex(sdkversion: u32, poverridelist: *mut D3D9ON12_ARGS, numoverrideentries: u32, ppoutputinterface: *mut Option) -> windows_core::Result<()> { windows_targets::link!("d3d9.dll" "system" fn Direct3DCreate9On12Ex(sdkversion : u32, poverridelist : *mut D3D9ON12_ARGS, numoverrideentries : u32, ppoutputinterface : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - Direct3DCreate9On12Ex(core::mem::transmute(sdkversion), core::mem::transmute(poverridelist), core::mem::transmute(numoverrideentries), core::mem::transmute(ppoutputinterface)).ok() + Direct3DCreate9On12Ex(sdkversion, core::mem::transmute(poverridelist), numoverrideentries, core::mem::transmute(ppoutputinterface)).ok() } #[repr(C)] #[derive(Clone, Debug, PartialEq)] @@ -28,7 +28,7 @@ windows_core::imp::define_interface!(IDirect3DDevice9On12, IDirect3DDevice9On12_ windows_core::imp::interface_hierarchy!(IDirect3DDevice9On12, windows_core::IUnknown); impl IDirect3DDevice9On12 { pub unsafe fn GetD3D12Device(&self, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetD3D12Device)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppvdevice)).ok() + (windows_core::Interface::vtable(self).GetD3D12Device)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppvdevice)).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Direct3D9"))] pub unsafe fn UnwrapUnderlyingResource(&self, presource: P0, pcommandqueue: P1, riid: *const windows_core::GUID, ppvresource12: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -36,14 +36,14 @@ impl IDirect3DDevice9On12 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnwrapUnderlyingResource)(windows_core::Interface::as_raw(self), presource.param().abi(), pcommandqueue.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvresource12)).ok() + (windows_core::Interface::vtable(self).UnwrapUnderlyingResource)(windows_core::Interface::as_raw(self), presource.param().abi(), pcommandqueue.param().abi(), riid, core::mem::transmute(ppvresource12)).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Direct3D9"))] pub unsafe fn ReturnUnderlyingResource(&self, presource: P0, numsync: u32, psignalvalues: *mut u64, ppfences: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(numsync), core::mem::transmute(psignalvalues), core::mem::transmute(ppfences)).ok() + (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource.param().abi(), numsync, core::mem::transmute(psignalvalues), core::mem::transmute(ppfences)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs index 4a1456d988..3ca56ccd6f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs @@ -4,7 +4,7 @@ where P0: windows_core::Param, { windows_targets::link!("dcomp.dll" "system" fn DCompositionAttachMouseDragToHwnd(visual : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DCompositionAttachMouseDragToHwnd(visual.param().abi(), core::mem::transmute(hwnd), enable.into()).ok() + DCompositionAttachMouseDragToHwnd(visual.param().abi(), hwnd, enable.into()).ok() } #[inline] pub unsafe fn DCompositionAttachMouseWheelToHwnd(visual: P0, hwnd: super::super::Foundation::HWND, enable: bool) -> windows_core::Result<()> @@ -12,7 +12,7 @@ where P0: windows_core::Param, { windows_targets::link!("dcomp.dll" "system" fn DCompositionAttachMouseWheelToHwnd(visual : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DCompositionAttachMouseWheelToHwnd(visual.param().abi(), core::mem::transmute(hwnd), enable.into()).ok() + DCompositionAttachMouseWheelToHwnd(visual.param().abi(), hwnd, enable.into()).ok() } #[inline] pub unsafe fn DCompositionBoostCompositorClock(enable: bool) -> windows_core::Result<()> { @@ -55,29 +55,29 @@ where pub unsafe fn DCompositionCreateSurfaceHandle(desiredaccess: u32, securityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result { windows_targets::link!("dcomp.dll" "system" fn DCompositionCreateSurfaceHandle(desiredaccess : u32, securityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, surfacehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DCompositionCreateSurfaceHandle(core::mem::transmute(desiredaccess), core::mem::transmute(securityattributes.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + DCompositionCreateSurfaceHandle(desiredaccess, core::mem::transmute(securityattributes.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DCompositionGetFrameId(frameidtype: COMPOSITION_FRAME_ID_TYPE) -> windows_core::Result { windows_targets::link!("dcomp.dll" "system" fn DCompositionGetFrameId(frameidtype : COMPOSITION_FRAME_ID_TYPE, frameid : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DCompositionGetFrameId(core::mem::transmute(frameidtype), &mut result__).map(|| core::mem::transmute(result__)) + DCompositionGetFrameId(frameidtype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DCompositionGetStatistics(frameid: u64, framestats: *mut COMPOSITION_FRAME_STATS, targetidcount: u32, targetids: Option<*mut COMPOSITION_TARGET_ID>, actualtargetidcount: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("dcomp.dll" "system" fn DCompositionGetStatistics(frameid : u64, framestats : *mut COMPOSITION_FRAME_STATS, targetidcount : u32, targetids : *mut COMPOSITION_TARGET_ID, actualtargetidcount : *mut u32) -> windows_core::HRESULT); - DCompositionGetStatistics(core::mem::transmute(frameid), core::mem::transmute(framestats), core::mem::transmute(targetidcount), core::mem::transmute(targetids.unwrap_or(core::mem::zeroed())), core::mem::transmute(actualtargetidcount.unwrap_or(core::mem::zeroed()))).ok() + DCompositionGetStatistics(frameid, core::mem::transmute(framestats), targetidcount, core::mem::transmute(targetids.unwrap_or(core::mem::zeroed())), core::mem::transmute(actualtargetidcount.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DCompositionGetTargetStatistics(frameid: u64, targetid: *const COMPOSITION_TARGET_ID) -> windows_core::Result { windows_targets::link!("dcomp.dll" "system" fn DCompositionGetTargetStatistics(frameid : u64, targetid : *const COMPOSITION_TARGET_ID, targetstats : *mut COMPOSITION_TARGET_STATS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DCompositionGetTargetStatistics(core::mem::transmute(frameid), core::mem::transmute(targetid), &mut result__).map(|| core::mem::transmute(result__)) + DCompositionGetTargetStatistics(frameid, targetid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DCompositionWaitForCompositorClock(handles: Option<&[super::super::Foundation::HANDLE]>, timeoutinms: u32) -> u32 { windows_targets::link!("dcomp.dll" "system" fn DCompositionWaitForCompositorClock(count : u32, handles : *const super::super::Foundation:: HANDLE, timeoutinms : u32) -> u32); - DCompositionWaitForCompositorClock(handles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(handles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(timeoutinms)) + DCompositionWaitForCompositorClock(handles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(handles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), timeoutinms) } pub const COMPOSITIONOBJECT_READ: i32 = 1i32; pub const COMPOSITIONOBJECT_WRITE: i32 = 2i32; @@ -219,24 +219,24 @@ windows_core::imp::interface_hierarchy!(IDCompositionAffineTransform2DEffect, wi impl IDCompositionAffineTransform2DEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetInterpolationMode(&self, interpolationmode: super::Direct2D::Common::D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterpolationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(interpolationmode)).ok() + (windows_core::Interface::vtable(self).SetInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetBorderMode(&self, bordermode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), core::mem::transmute(bordermode)).ok() + (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), bordermode).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransformMatrix(&self, transformmatrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransformMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(transformmatrix)).ok() + (windows_core::Interface::vtable(self).SetTransformMatrix)(windows_core::Interface::as_raw(self), transformmatrix).ok() } pub unsafe fn SetTransformMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformMatrixElement)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.param().abi()).ok() } pub unsafe fn SetTransformMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransformMatrixElement2)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTransformMatrixElement2)(windows_core::Interface::as_raw(self), row, column, value).ok() } pub unsafe fn SetSharpness(&self, animation: P0) -> windows_core::Result<()> where @@ -245,7 +245,7 @@ impl IDCompositionAffineTransform2DEffect { (windows_core::Interface::vtable(self).SetSharpness)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetSharpness2(&self, sharpness: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSharpness2)(windows_core::Interface::as_raw(self), core::mem::transmute(sharpness)).ok() + (windows_core::Interface::vtable(self).SetSharpness2)(windows_core::Interface::as_raw(self), sharpness).ok() } } #[repr(C)] @@ -333,19 +333,19 @@ impl IDCompositionAnimation { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetAbsoluteBeginTime(&self, begintime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAbsoluteBeginTime)(windows_core::Interface::as_raw(self), core::mem::transmute(begintime)).ok() + (windows_core::Interface::vtable(self).SetAbsoluteBeginTime)(windows_core::Interface::as_raw(self), begintime).ok() } pub unsafe fn AddCubic(&self, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddCubic)(windows_core::Interface::as_raw(self), core::mem::transmute(beginoffset), core::mem::transmute(constantcoefficient), core::mem::transmute(linearcoefficient), core::mem::transmute(quadraticcoefficient), core::mem::transmute(cubiccoefficient)).ok() + (windows_core::Interface::vtable(self).AddCubic)(windows_core::Interface::as_raw(self), beginoffset, constantcoefficient, linearcoefficient, quadraticcoefficient, cubiccoefficient).ok() } pub unsafe fn AddSinusoidal(&self, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSinusoidal)(windows_core::Interface::as_raw(self), core::mem::transmute(beginoffset), core::mem::transmute(bias), core::mem::transmute(amplitude), core::mem::transmute(frequency), core::mem::transmute(phase)).ok() + (windows_core::Interface::vtable(self).AddSinusoidal)(windows_core::Interface::as_raw(self), beginoffset, bias, amplitude, frequency, phase).ok() } pub unsafe fn AddRepeat(&self, beginoffset: f64, durationtorepeat: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRepeat)(windows_core::Interface::as_raw(self), core::mem::transmute(beginoffset), core::mem::transmute(durationtorepeat)).ok() + (windows_core::Interface::vtable(self).AddRepeat)(windows_core::Interface::as_raw(self), beginoffset, durationtorepeat).ok() } pub unsafe fn End(&self, endoffset: f64, endvalue: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), core::mem::transmute(endoffset), core::mem::transmute(endvalue)).ok() + (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), endoffset, endvalue).ok() } } #[repr(C)] @@ -418,7 +418,7 @@ windows_core::imp::interface_hierarchy!(IDCompositionArithmeticCompositeEffect, impl IDCompositionArithmeticCompositeEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetCoefficients(&self, coefficients: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoefficients)(windows_core::Interface::as_raw(self), core::mem::transmute(coefficients)).ok() + (windows_core::Interface::vtable(self).SetCoefficients)(windows_core::Interface::as_raw(self), coefficients).ok() } pub unsafe fn SetClampOutput(&self, clampoutput: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.into()).ok() @@ -430,7 +430,7 @@ impl IDCompositionArithmeticCompositeEffect { (windows_core::Interface::vtable(self).SetCoefficient1)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCoefficient12(&self, coeffcient1: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoefficient12)(windows_core::Interface::as_raw(self), core::mem::transmute(coeffcient1)).ok() + (windows_core::Interface::vtable(self).SetCoefficient12)(windows_core::Interface::as_raw(self), coeffcient1).ok() } pub unsafe fn SetCoefficient2(&self, animation: P0) -> windows_core::Result<()> where @@ -439,7 +439,7 @@ impl IDCompositionArithmeticCompositeEffect { (windows_core::Interface::vtable(self).SetCoefficient2)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCoefficient22(&self, coefficient2: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoefficient22)(windows_core::Interface::as_raw(self), core::mem::transmute(coefficient2)).ok() + (windows_core::Interface::vtable(self).SetCoefficient22)(windows_core::Interface::as_raw(self), coefficient2).ok() } pub unsafe fn SetCoefficient3(&self, animation: P0) -> windows_core::Result<()> where @@ -448,7 +448,7 @@ impl IDCompositionArithmeticCompositeEffect { (windows_core::Interface::vtable(self).SetCoefficient3)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCoefficient32(&self, coefficient3: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoefficient32)(windows_core::Interface::as_raw(self), core::mem::transmute(coefficient3)).ok() + (windows_core::Interface::vtable(self).SetCoefficient32)(windows_core::Interface::as_raw(self), coefficient3).ok() } pub unsafe fn SetCoefficient4(&self, animation: P0) -> windows_core::Result<()> where @@ -457,7 +457,7 @@ impl IDCompositionArithmeticCompositeEffect { (windows_core::Interface::vtable(self).SetCoefficient4)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCoefficient42(&self, coefficient4: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoefficient42)(windows_core::Interface::as_raw(self), core::mem::transmute(coefficient4)).ok() + (windows_core::Interface::vtable(self).SetCoefficient42)(windows_core::Interface::as_raw(self), coefficient4).ok() } } #[repr(C)] @@ -564,7 +564,7 @@ windows_core::imp::interface_hierarchy!(IDCompositionBlendEffect, windows_core:: impl IDCompositionBlendEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetMode(&self, mode: super::Direct2D::Common::D2D1_BLEND_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[repr(C)] @@ -605,11 +605,11 @@ windows_core::imp::interface_hierarchy!(IDCompositionBrightnessEffect, windows_c impl IDCompositionBrightnessEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetWhitePoint(&self, whitepoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWhitePoint)(windows_core::Interface::as_raw(self), core::mem::transmute(whitepoint)).ok() + (windows_core::Interface::vtable(self).SetWhitePoint)(windows_core::Interface::as_raw(self), whitepoint).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetBlackPoint(&self, blackpoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlackPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(blackpoint)).ok() + (windows_core::Interface::vtable(self).SetBlackPoint)(windows_core::Interface::as_raw(self), blackpoint).ok() } pub unsafe fn SetWhitePointX(&self, animation: P0) -> windows_core::Result<()> where @@ -618,7 +618,7 @@ impl IDCompositionBrightnessEffect { (windows_core::Interface::vtable(self).SetWhitePointX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetWhitePointX2(&self, whitepointx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWhitePointX2)(windows_core::Interface::as_raw(self), core::mem::transmute(whitepointx)).ok() + (windows_core::Interface::vtable(self).SetWhitePointX2)(windows_core::Interface::as_raw(self), whitepointx).ok() } pub unsafe fn SetWhitePointY(&self, animation: P0) -> windows_core::Result<()> where @@ -627,7 +627,7 @@ impl IDCompositionBrightnessEffect { (windows_core::Interface::vtable(self).SetWhitePointY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetWhitePointY2(&self, whitepointy: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWhitePointY2)(windows_core::Interface::as_raw(self), core::mem::transmute(whitepointy)).ok() + (windows_core::Interface::vtable(self).SetWhitePointY2)(windows_core::Interface::as_raw(self), whitepointy).ok() } pub unsafe fn SetBlackPointX(&self, animation: P0) -> windows_core::Result<()> where @@ -636,7 +636,7 @@ impl IDCompositionBrightnessEffect { (windows_core::Interface::vtable(self).SetBlackPointX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBlackPointX2(&self, blackpointx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlackPointX2)(windows_core::Interface::as_raw(self), core::mem::transmute(blackpointx)).ok() + (windows_core::Interface::vtable(self).SetBlackPointX2)(windows_core::Interface::as_raw(self), blackpointx).ok() } pub unsafe fn SetBlackPointY(&self, animation: P0) -> windows_core::Result<()> where @@ -645,7 +645,7 @@ impl IDCompositionBrightnessEffect { (windows_core::Interface::vtable(self).SetBlackPointY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBlackPointY2(&self, blackpointy: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlackPointY2)(windows_core::Interface::as_raw(self), core::mem::transmute(blackpointy)).ok() + (windows_core::Interface::vtable(self).SetBlackPointY2)(windows_core::Interface::as_raw(self), blackpointy).ok() } } #[repr(C)] @@ -771,20 +771,20 @@ windows_core::imp::interface_hierarchy!(IDCompositionColorMatrixEffect, windows_ impl IDCompositionColorMatrixEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetMatrix(&self, matrix: *const super::Direct2D::Common::D2D_MATRIX_5X4_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix)).ok() + (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), matrix).ok() } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.param().abi()).ok() } pub unsafe fn SetMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrixElement2)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMatrixElement2)(windows_core::Interface::as_raw(self), row, column, value).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetAlphaMode(&self, mode: super::Direct2D::Common::D2D1_COLORMATRIX_ALPHA_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlphaMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetAlphaMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetClampOutput(&self, clamp: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clamp.into()).ok() @@ -862,7 +862,7 @@ windows_core::imp::interface_hierarchy!(IDCompositionCompositeEffect, windows_co impl IDCompositionCompositeEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetMode(&self, mode: super::Direct2D::Common::D2D1_COMPOSITE_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[repr(C)] @@ -904,11 +904,11 @@ impl IDCompositionDelegatedInkTrail { (windows_core::Interface::vtable(self).AddTrailPointsWithPrediction)(windows_core::Interface::as_raw(self), core::mem::transmute(inkpoints.as_ptr()), inkpoints.len().try_into().unwrap(), core::mem::transmute(predictedinkpoints.as_ptr()), predictedinkpoints.len().try_into().unwrap(), &mut result__).map(|| result__) } pub unsafe fn RemoveTrailPoints(&self, generationid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTrailPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(generationid)).ok() + (windows_core::Interface::vtable(self).RemoveTrailPoints)(windows_core::Interface::as_raw(self), generationid).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn StartNewTrail(&self, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartNewTrail)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).StartNewTrail)(windows_core::Interface::as_raw(self), color).ok() } } #[repr(C)] @@ -985,15 +985,15 @@ windows_core::imp::interface_hierarchy!(IDCompositionDesktopDevice, windows_core impl IDCompositionDesktopDevice { pub unsafe fn CreateTargetForHwnd(&self, hwnd: super::super::Foundation::HWND, topmost: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), topmost.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), hwnd, topmost.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHandle(&self, handle: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHwnd(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), hwnd, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1071,7 +1071,7 @@ impl IDCompositionDevice { } pub unsafe fn CreateTargetForHwnd(&self, hwnd: super::super::Foundation::HWND, topmost: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), topmost.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), hwnd, topmost.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateVisual(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1080,20 +1080,20 @@ impl IDCompositionDevice { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSurface(&self, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(pixelformat), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), width, height, pixelformat, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVirtualSurface(&self, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(initialwidth), core::mem::transmute(initialheight), core::mem::transmute(pixelformat), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVirtualSurface)(windows_core::Interface::as_raw(self), initialwidth, initialheight, pixelformat, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHandle(&self, handle: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHwnd(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), hwnd, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTranslateTransform(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1513,12 +1513,12 @@ impl IDCompositionDevice2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSurface(&self, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(pixelformat), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), width, height, pixelformat, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVirtualSurface(&self, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(initialwidth), core::mem::transmute(initialheight), core::mem::transmute(pixelformat), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVirtualSurface)(windows_core::Interface::as_raw(self), initialwidth, initialheight, pixelformat, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTranslateTransform(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2261,7 +2261,7 @@ impl IDCompositionEffectGroup { (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOpacity2(&self, opacity: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpacity2)(windows_core::Interface::as_raw(self), core::mem::transmute(opacity)).ok() + (windows_core::Interface::vtable(self).SetOpacity2)(windows_core::Interface::as_raw(self), opacity).ok() } pub unsafe fn SetTransform3D(&self, transform3d: P0) -> windows_core::Result<()> where @@ -2321,7 +2321,7 @@ impl IDCompositionFilterEffect { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), core::mem::transmute(index), input.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } } #[repr(C)] @@ -2361,11 +2361,11 @@ impl IDCompositionGaussianBlurEffect { (windows_core::Interface::vtable(self).SetStandardDeviation)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetStandardDeviation2(&self, amount: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStandardDeviation2)(windows_core::Interface::as_raw(self), core::mem::transmute(amount)).ok() + (windows_core::Interface::vtable(self).SetStandardDeviation2)(windows_core::Interface::as_raw(self), amount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetBorderMode(&self, mode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[repr(C)] @@ -2428,7 +2428,7 @@ impl IDCompositionHueRotationEffect { (windows_core::Interface::vtable(self).SetAngle)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAngle2(&self, amountdegrees: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAngle2)(windows_core::Interface::as_raw(self), core::mem::transmute(amountdegrees)).ok() + (windows_core::Interface::vtable(self).SetAngle2)(windows_core::Interface::as_raw(self), amountdegrees).ok() } } #[repr(C)] @@ -2536,7 +2536,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetRedYIntercept)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetRedYIntercept2(&self, redyintercept: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRedYIntercept2)(windows_core::Interface::as_raw(self), core::mem::transmute(redyintercept)).ok() + (windows_core::Interface::vtable(self).SetRedYIntercept2)(windows_core::Interface::as_raw(self), redyintercept).ok() } pub unsafe fn SetRedSlope(&self, animation: P0) -> windows_core::Result<()> where @@ -2545,7 +2545,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetRedSlope)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetRedSlope2(&self, redslope: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRedSlope2)(windows_core::Interface::as_raw(self), core::mem::transmute(redslope)).ok() + (windows_core::Interface::vtable(self).SetRedSlope2)(windows_core::Interface::as_raw(self), redslope).ok() } pub unsafe fn SetRedDisable(&self, reddisable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetRedDisable)(windows_core::Interface::as_raw(self), reddisable.into()).ok() @@ -2557,7 +2557,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetGreenYIntercept)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetGreenYIntercept2(&self, greenyintercept: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGreenYIntercept2)(windows_core::Interface::as_raw(self), core::mem::transmute(greenyintercept)).ok() + (windows_core::Interface::vtable(self).SetGreenYIntercept2)(windows_core::Interface::as_raw(self), greenyintercept).ok() } pub unsafe fn SetGreenSlope(&self, animation: P0) -> windows_core::Result<()> where @@ -2566,7 +2566,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetGreenSlope)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetGreenSlope2(&self, greenslope: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGreenSlope2)(windows_core::Interface::as_raw(self), core::mem::transmute(greenslope)).ok() + (windows_core::Interface::vtable(self).SetGreenSlope2)(windows_core::Interface::as_raw(self), greenslope).ok() } pub unsafe fn SetGreenDisable(&self, greendisable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetGreenDisable)(windows_core::Interface::as_raw(self), greendisable.into()).ok() @@ -2578,7 +2578,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetBlueYIntercept)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBlueYIntercept2(&self, blueyintercept: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlueYIntercept2)(windows_core::Interface::as_raw(self), core::mem::transmute(blueyintercept)).ok() + (windows_core::Interface::vtable(self).SetBlueYIntercept2)(windows_core::Interface::as_raw(self), blueyintercept).ok() } pub unsafe fn SetBlueSlope(&self, animation: P0) -> windows_core::Result<()> where @@ -2587,7 +2587,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetBlueSlope)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBlueSlope2(&self, blueslope: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlueSlope2)(windows_core::Interface::as_raw(self), core::mem::transmute(blueslope)).ok() + (windows_core::Interface::vtable(self).SetBlueSlope2)(windows_core::Interface::as_raw(self), blueslope).ok() } pub unsafe fn SetBlueDisable(&self, bluedisable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetBlueDisable)(windows_core::Interface::as_raw(self), bluedisable.into()).ok() @@ -2599,7 +2599,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetAlphaYIntercept)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAlphaYIntercept2(&self, alphayintercept: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlphaYIntercept2)(windows_core::Interface::as_raw(self), core::mem::transmute(alphayintercept)).ok() + (windows_core::Interface::vtable(self).SetAlphaYIntercept2)(windows_core::Interface::as_raw(self), alphayintercept).ok() } pub unsafe fn SetAlphaSlope(&self, animation: P0) -> windows_core::Result<()> where @@ -2608,7 +2608,7 @@ impl IDCompositionLinearTransferEffect { (windows_core::Interface::vtable(self).SetAlphaSlope)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAlphaSlope2(&self, alphaslope: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlphaSlope2)(windows_core::Interface::as_raw(self), core::mem::transmute(alphaslope)).ok() + (windows_core::Interface::vtable(self).SetAlphaSlope2)(windows_core::Interface::as_raw(self), alphaslope).ok() } pub unsafe fn SetAlphaDisable(&self, alphadisable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAlphaDisable)(windows_core::Interface::as_raw(self), alphadisable.into()).ok() @@ -2792,16 +2792,16 @@ windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform, windows_co impl IDCompositionMatrixTransform { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetMatrix(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix)).ok() + (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), matrix).ok() } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.param().abi()).ok() } pub unsafe fn SetMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrixElement2)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMatrixElement2)(windows_core::Interface::as_raw(self), row, column, value).ok() } } #[repr(C)] @@ -2859,16 +2859,16 @@ windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform3D, windows_ impl IDCompositionMatrixTransform3D { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetMatrix(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix)).ok() + (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), matrix).ok() } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.param().abi()).ok() } pub unsafe fn SetMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrixElement2)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMatrixElement2)(windows_core::Interface::as_raw(self), row, column, value).ok() } } #[repr(C)] @@ -2931,7 +2931,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetLeft2(&self, left: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeft2)(windows_core::Interface::as_raw(self), core::mem::transmute(left)).ok() + (windows_core::Interface::vtable(self).SetLeft2)(windows_core::Interface::as_raw(self), left).ok() } pub unsafe fn SetTop(&self, animation: P0) -> windows_core::Result<()> where @@ -2940,7 +2940,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetTop2(&self, top: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTop2)(windows_core::Interface::as_raw(self), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).SetTop2)(windows_core::Interface::as_raw(self), top).ok() } pub unsafe fn SetRight(&self, animation: P0) -> windows_core::Result<()> where @@ -2949,7 +2949,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetRight)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetRight2(&self, right: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRight2)(windows_core::Interface::as_raw(self), core::mem::transmute(right)).ok() + (windows_core::Interface::vtable(self).SetRight2)(windows_core::Interface::as_raw(self), right).ok() } pub unsafe fn SetBottom(&self, animation: P0) -> windows_core::Result<()> where @@ -2958,7 +2958,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetBottom)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBottom2(&self, bottom: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottom2)(windows_core::Interface::as_raw(self), core::mem::transmute(bottom)).ok() + (windows_core::Interface::vtable(self).SetBottom2)(windows_core::Interface::as_raw(self), bottom).ok() } pub unsafe fn SetTopLeftRadiusX(&self, animation: P0) -> windows_core::Result<()> where @@ -2967,7 +2967,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetTopLeftRadiusX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetTopLeftRadiusX2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTopLeftRadiusX2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetTopLeftRadiusX2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetTopLeftRadiusY(&self, animation: P0) -> windows_core::Result<()> where @@ -2976,7 +2976,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetTopLeftRadiusY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetTopLeftRadiusY2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTopLeftRadiusY2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetTopLeftRadiusY2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetTopRightRadiusX(&self, animation: P0) -> windows_core::Result<()> where @@ -2985,7 +2985,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetTopRightRadiusX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetTopRightRadiusX2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTopRightRadiusX2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetTopRightRadiusX2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetTopRightRadiusY(&self, animation: P0) -> windows_core::Result<()> where @@ -2994,7 +2994,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetTopRightRadiusY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetTopRightRadiusY2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTopRightRadiusY2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetTopRightRadiusY2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetBottomLeftRadiusX(&self, animation: P0) -> windows_core::Result<()> where @@ -3003,7 +3003,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetBottomLeftRadiusX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBottomLeftRadiusX2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottomLeftRadiusX2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetBottomLeftRadiusX2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetBottomLeftRadiusY(&self, animation: P0) -> windows_core::Result<()> where @@ -3012,7 +3012,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetBottomLeftRadiusY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBottomLeftRadiusY2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottomLeftRadiusY2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetBottomLeftRadiusY2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetBottomRightRadiusX(&self, animation: P0) -> windows_core::Result<()> where @@ -3021,7 +3021,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetBottomRightRadiusX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBottomRightRadiusX2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottomRightRadiusX2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetBottomRightRadiusX2)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn SetBottomRightRadiusY(&self, animation: P0) -> windows_core::Result<()> where @@ -3030,7 +3030,7 @@ impl IDCompositionRectangleClip { (windows_core::Interface::vtable(self).SetBottomRightRadiusY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBottomRightRadiusY2(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottomRightRadiusY2)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetBottomRightRadiusY2)(windows_core::Interface::as_raw(self), radius).ok() } } #[repr(C)] @@ -3234,7 +3234,7 @@ impl IDCompositionRotateTransform { (windows_core::Interface::vtable(self).SetAngle)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAngle2(&self, angle: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAngle2)(windows_core::Interface::as_raw(self), core::mem::transmute(angle)).ok() + (windows_core::Interface::vtable(self).SetAngle2)(windows_core::Interface::as_raw(self), angle).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where @@ -3243,7 +3243,7 @@ impl IDCompositionRotateTransform { (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterX2(&self, centerx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerx)).ok() + (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where @@ -3252,7 +3252,7 @@ impl IDCompositionRotateTransform { (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterY2(&self, centery: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), core::mem::transmute(centery)).ok() + (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), centery).ok() } } #[repr(C)] @@ -3330,7 +3330,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetAngle)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAngle2(&self, angle: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAngle2)(windows_core::Interface::as_raw(self), core::mem::transmute(angle)).ok() + (windows_core::Interface::vtable(self).SetAngle2)(windows_core::Interface::as_raw(self), angle).ok() } pub unsafe fn SetAxisX(&self, animation: P0) -> windows_core::Result<()> where @@ -3339,7 +3339,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetAxisX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAxisX2(&self, axisx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAxisX2)(windows_core::Interface::as_raw(self), core::mem::transmute(axisx)).ok() + (windows_core::Interface::vtable(self).SetAxisX2)(windows_core::Interface::as_raw(self), axisx).ok() } pub unsafe fn SetAxisY(&self, animation: P0) -> windows_core::Result<()> where @@ -3348,7 +3348,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetAxisY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAxisY2(&self, axisy: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAxisY2)(windows_core::Interface::as_raw(self), core::mem::transmute(axisy)).ok() + (windows_core::Interface::vtable(self).SetAxisY2)(windows_core::Interface::as_raw(self), axisy).ok() } pub unsafe fn SetAxisZ(&self, animation: P0) -> windows_core::Result<()> where @@ -3357,7 +3357,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetAxisZ)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAxisZ2(&self, axisz: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAxisZ2)(windows_core::Interface::as_raw(self), core::mem::transmute(axisz)).ok() + (windows_core::Interface::vtable(self).SetAxisZ2)(windows_core::Interface::as_raw(self), axisz).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where @@ -3366,7 +3366,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterX2(&self, centerx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerx)).ok() + (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where @@ -3375,7 +3375,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterY2(&self, centery: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), core::mem::transmute(centery)).ok() + (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), centery).ok() } pub unsafe fn SetCenterZ(&self, animation: P0) -> windows_core::Result<()> where @@ -3384,7 +3384,7 @@ impl IDCompositionRotateTransform3D { (windows_core::Interface::vtable(self).SetCenterZ)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterZ2(&self, centerz: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterZ2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerz)).ok() + (windows_core::Interface::vtable(self).SetCenterZ2)(windows_core::Interface::as_raw(self), centerz).ok() } } #[repr(C)] @@ -3518,7 +3518,7 @@ impl IDCompositionSaturationEffect { (windows_core::Interface::vtable(self).SetSaturation)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetSaturation2(&self, ratio: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSaturation2)(windows_core::Interface::as_raw(self), core::mem::transmute(ratio)).ok() + (windows_core::Interface::vtable(self).SetSaturation2)(windows_core::Interface::as_raw(self), ratio).ok() } } #[repr(C)] @@ -3568,7 +3568,7 @@ impl IDCompositionScaleTransform { (windows_core::Interface::vtable(self).SetScaleX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetScaleX2(&self, scalex: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleX2)(windows_core::Interface::as_raw(self), core::mem::transmute(scalex)).ok() + (windows_core::Interface::vtable(self).SetScaleX2)(windows_core::Interface::as_raw(self), scalex).ok() } pub unsafe fn SetScaleY(&self, animation: P0) -> windows_core::Result<()> where @@ -3577,7 +3577,7 @@ impl IDCompositionScaleTransform { (windows_core::Interface::vtable(self).SetScaleY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetScaleY2(&self, scaley: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleY2)(windows_core::Interface::as_raw(self), core::mem::transmute(scaley)).ok() + (windows_core::Interface::vtable(self).SetScaleY2)(windows_core::Interface::as_raw(self), scaley).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where @@ -3586,7 +3586,7 @@ impl IDCompositionScaleTransform { (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterX2(&self, centerx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerx)).ok() + (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where @@ -3595,7 +3595,7 @@ impl IDCompositionScaleTransform { (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterY2(&self, centery: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), core::mem::transmute(centery)).ok() + (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), centery).ok() } } #[repr(C)] @@ -3687,7 +3687,7 @@ impl IDCompositionScaleTransform3D { (windows_core::Interface::vtable(self).SetScaleX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetScaleX2(&self, scalex: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleX2)(windows_core::Interface::as_raw(self), core::mem::transmute(scalex)).ok() + (windows_core::Interface::vtable(self).SetScaleX2)(windows_core::Interface::as_raw(self), scalex).ok() } pub unsafe fn SetScaleY(&self, animation: P0) -> windows_core::Result<()> where @@ -3696,7 +3696,7 @@ impl IDCompositionScaleTransform3D { (windows_core::Interface::vtable(self).SetScaleY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetScaleY2(&self, scaley: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleY2)(windows_core::Interface::as_raw(self), core::mem::transmute(scaley)).ok() + (windows_core::Interface::vtable(self).SetScaleY2)(windows_core::Interface::as_raw(self), scaley).ok() } pub unsafe fn SetScaleZ(&self, animation: P0) -> windows_core::Result<()> where @@ -3705,7 +3705,7 @@ impl IDCompositionScaleTransform3D { (windows_core::Interface::vtable(self).SetScaleZ)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetScaleZ2(&self, scalez: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleZ2)(windows_core::Interface::as_raw(self), core::mem::transmute(scalez)).ok() + (windows_core::Interface::vtable(self).SetScaleZ2)(windows_core::Interface::as_raw(self), scalez).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where @@ -3714,7 +3714,7 @@ impl IDCompositionScaleTransform3D { (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterX2(&self, centerx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerx)).ok() + (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where @@ -3723,7 +3723,7 @@ impl IDCompositionScaleTransform3D { (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterY2(&self, centery: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), core::mem::transmute(centery)).ok() + (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), centery).ok() } pub unsafe fn SetCenterZ(&self, animation: P0) -> windows_core::Result<()> where @@ -3732,7 +3732,7 @@ impl IDCompositionScaleTransform3D { (windows_core::Interface::vtable(self).SetCenterZ)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterZ2(&self, centerz: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterZ2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerz)).ok() + (windows_core::Interface::vtable(self).SetCenterZ2)(windows_core::Interface::as_raw(self), centerz).ok() } } #[repr(C)] @@ -3852,11 +3852,11 @@ impl IDCompositionShadowEffect { (windows_core::Interface::vtable(self).SetStandardDeviation)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetStandardDeviation2(&self, amount: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStandardDeviation2)(windows_core::Interface::as_raw(self), core::mem::transmute(amount)).ok() + (windows_core::Interface::vtable(self).SetStandardDeviation2)(windows_core::Interface::as_raw(self), amount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetColor(&self, color: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn SetRed(&self, animation: P0) -> windows_core::Result<()> where @@ -3865,7 +3865,7 @@ impl IDCompositionShadowEffect { (windows_core::Interface::vtable(self).SetRed)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetRed2(&self, amount: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRed2)(windows_core::Interface::as_raw(self), core::mem::transmute(amount)).ok() + (windows_core::Interface::vtable(self).SetRed2)(windows_core::Interface::as_raw(self), amount).ok() } pub unsafe fn SetGreen(&self, animation: P0) -> windows_core::Result<()> where @@ -3874,7 +3874,7 @@ impl IDCompositionShadowEffect { (windows_core::Interface::vtable(self).SetGreen)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetGreen2(&self, amount: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGreen2)(windows_core::Interface::as_raw(self), core::mem::transmute(amount)).ok() + (windows_core::Interface::vtable(self).SetGreen2)(windows_core::Interface::as_raw(self), amount).ok() } pub unsafe fn SetBlue(&self, animation: P0) -> windows_core::Result<()> where @@ -3883,7 +3883,7 @@ impl IDCompositionShadowEffect { (windows_core::Interface::vtable(self).SetBlue)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetBlue2(&self, amount: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlue2)(windows_core::Interface::as_raw(self), core::mem::transmute(amount)).ok() + (windows_core::Interface::vtable(self).SetBlue2)(windows_core::Interface::as_raw(self), amount).ok() } pub unsafe fn SetAlpha(&self, animation: P0) -> windows_core::Result<()> where @@ -3892,7 +3892,7 @@ impl IDCompositionShadowEffect { (windows_core::Interface::vtable(self).SetAlpha)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAlpha2(&self, amount: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlpha2)(windows_core::Interface::as_raw(self), core::mem::transmute(amount)).ok() + (windows_core::Interface::vtable(self).SetAlpha2)(windows_core::Interface::as_raw(self), amount).ok() } } #[repr(C)] @@ -4011,7 +4011,7 @@ impl IDCompositionSkewTransform { (windows_core::Interface::vtable(self).SetAngleX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAngleX2(&self, anglex: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAngleX2)(windows_core::Interface::as_raw(self), core::mem::transmute(anglex)).ok() + (windows_core::Interface::vtable(self).SetAngleX2)(windows_core::Interface::as_raw(self), anglex).ok() } pub unsafe fn SetAngleY(&self, animation: P0) -> windows_core::Result<()> where @@ -4020,7 +4020,7 @@ impl IDCompositionSkewTransform { (windows_core::Interface::vtable(self).SetAngleY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetAngleY2(&self, angley: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAngleY2)(windows_core::Interface::as_raw(self), core::mem::transmute(angley)).ok() + (windows_core::Interface::vtable(self).SetAngleY2)(windows_core::Interface::as_raw(self), angley).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where @@ -4029,7 +4029,7 @@ impl IDCompositionSkewTransform { (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterX2(&self, centerx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), core::mem::transmute(centerx)).ok() + (windows_core::Interface::vtable(self).SetCenterX2)(windows_core::Interface::as_raw(self), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where @@ -4038,7 +4038,7 @@ impl IDCompositionSkewTransform { (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetCenterY2(&self, centery: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), core::mem::transmute(centery)).ok() + (windows_core::Interface::vtable(self).SetCenterY2)(windows_core::Interface::as_raw(self), centery).ok() } } #[repr(C)] @@ -4134,7 +4134,7 @@ impl IDCompositionSurface { (windows_core::Interface::vtable(self).ResumeDraw)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Scroll(&self, scrollrect: Option<*const super::super::Foundation::RECT>, cliprect: Option<*const super::super::Foundation::RECT>, offsetx: i32, offsety: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), core::mem::transmute(scrollrect.unwrap_or(core::mem::zeroed())), core::mem::transmute(cliprect.unwrap_or(core::mem::zeroed())), core::mem::transmute(offsetx), core::mem::transmute(offsety)).ok() + (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), core::mem::transmute(scrollrect.unwrap_or(core::mem::zeroed())), core::mem::transmute(cliprect.unwrap_or(core::mem::zeroed())), offsetx, offsety).ok() } } #[repr(C)] @@ -4195,12 +4195,12 @@ impl IDCompositionSurfaceFactory { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSurface(&self, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(pixelformat), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), width, height, pixelformat, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVirtualSurface(&self, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(initialwidth), core::mem::transmute(initialheight), core::mem::transmute(pixelformat), core::mem::transmute(alphamode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVirtualSurface)(windows_core::Interface::as_raw(self), initialwidth, initialheight, pixelformat, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4295,37 +4295,37 @@ impl IDCompositionTableTransferEffect { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedTableValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedTableValue)(windows_core::Interface::as_raw(self), index, animation.param().abi()).ok() } pub unsafe fn SetRedTableValue2(&self, index: u32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRedTableValue2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetRedTableValue2)(windows_core::Interface::as_raw(self), index, value).ok() } pub unsafe fn SetGreenTableValue(&self, index: u32, animation: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreenTableValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetGreenTableValue)(windows_core::Interface::as_raw(self), index, animation.param().abi()).ok() } pub unsafe fn SetGreenTableValue2(&self, index: u32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGreenTableValue2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetGreenTableValue2)(windows_core::Interface::as_raw(self), index, value).ok() } pub unsafe fn SetBlueTableValue(&self, index: u32, animation: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlueTableValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlueTableValue)(windows_core::Interface::as_raw(self), index, animation.param().abi()).ok() } pub unsafe fn SetBlueTableValue2(&self, index: u32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlueTableValue2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBlueTableValue2)(windows_core::Interface::as_raw(self), index, value).ok() } pub unsafe fn SetAlphaTableValue(&self, index: u32, animation: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphaTableValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), animation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlphaTableValue)(windows_core::Interface::as_raw(self), index, animation.param().abi()).ok() } pub unsafe fn SetAlphaTableValue2(&self, index: u32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlphaTableValue2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAlphaTableValue2)(windows_core::Interface::as_raw(self), index, value).ok() } } #[repr(C)] @@ -4500,15 +4500,15 @@ windows_core::imp::interface_hierarchy!(IDCompositionTexture, windows_core::IUnk impl IDCompositionTexture { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetSourceRect(&self, sourcerect: *const super::Direct2D::Common::D2D_RECT_U) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceRect)(windows_core::Interface::as_raw(self), core::mem::transmute(sourcerect)).ok() + (windows_core::Interface::vtable(self).SetSourceRect)(windows_core::Interface::as_raw(self), sourcerect).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace)).ok() + (windows_core::Interface::vtable(self).SetColorSpace)(windows_core::Interface::as_raw(self), colorspace).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetAlphaMode(&self, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlphaMode)(windows_core::Interface::as_raw(self), core::mem::transmute(alphamode)).ok() + (windows_core::Interface::vtable(self).SetAlphaMode)(windows_core::Interface::as_raw(self), alphamode).ok() } pub unsafe fn GetAvailableFence(&self, fencevalue: *mut u64) -> windows_core::Result where @@ -4635,7 +4635,7 @@ impl IDCompositionTranslateTransform { (windows_core::Interface::vtable(self).SetOffsetX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetX2(&self, offsetx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetX2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetx)).ok() + (windows_core::Interface::vtable(self).SetOffsetX2)(windows_core::Interface::as_raw(self), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where @@ -4644,7 +4644,7 @@ impl IDCompositionTranslateTransform { (windows_core::Interface::vtable(self).SetOffsetY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetY2(&self, offsety: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetY2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsety)).ok() + (windows_core::Interface::vtable(self).SetOffsetY2)(windows_core::Interface::as_raw(self), offsety).ok() } } #[repr(C)] @@ -4708,7 +4708,7 @@ impl IDCompositionTranslateTransform3D { (windows_core::Interface::vtable(self).SetOffsetX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetX2(&self, offsetx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetX2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetx)).ok() + (windows_core::Interface::vtable(self).SetOffsetX2)(windows_core::Interface::as_raw(self), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where @@ -4717,7 +4717,7 @@ impl IDCompositionTranslateTransform3D { (windows_core::Interface::vtable(self).SetOffsetY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetY2(&self, offsety: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetY2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsety)).ok() + (windows_core::Interface::vtable(self).SetOffsetY2)(windows_core::Interface::as_raw(self), offsety).ok() } pub unsafe fn SetOffsetZ(&self, animation: P0) -> windows_core::Result<()> where @@ -4726,7 +4726,7 @@ impl IDCompositionTranslateTransform3D { (windows_core::Interface::vtable(self).SetOffsetZ)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetZ2(&self, offsetz: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetZ2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetz)).ok() + (windows_core::Interface::vtable(self).SetOffsetZ2)(windows_core::Interface::as_raw(self), offsetz).ok() } } #[repr(C)] @@ -4799,25 +4799,25 @@ windows_core::imp::interface_hierarchy!(IDCompositionTurbulenceEffect, windows_c impl IDCompositionTurbulenceEffect { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetOffset(&self, offset: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), offset).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetBaseFrequency(&self, frequency: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBaseFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(frequency)).ok() + (windows_core::Interface::vtable(self).SetBaseFrequency)(windows_core::Interface::as_raw(self), frequency).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetSize(&self, size: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), size).ok() } pub unsafe fn SetNumOctaves(&self, numoctaves: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumOctaves)(windows_core::Interface::as_raw(self), core::mem::transmute(numoctaves)).ok() + (windows_core::Interface::vtable(self).SetNumOctaves)(windows_core::Interface::as_raw(self), numoctaves).ok() } pub unsafe fn SetSeed(&self, seed: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSeed)(windows_core::Interface::as_raw(self), core::mem::transmute(seed)).ok() + (windows_core::Interface::vtable(self).SetSeed)(windows_core::Interface::as_raw(self), seed).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetNoise(&self, noise: super::Direct2D::Common::D2D1_TURBULENCE_NOISE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNoise)(windows_core::Interface::as_raw(self), core::mem::transmute(noise)).ok() + (windows_core::Interface::vtable(self).SetNoise)(windows_core::Interface::as_raw(self), noise).ok() } pub unsafe fn SetStitchable(&self, stitchable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetStitchable)(windows_core::Interface::as_raw(self), stitchable.into()).ok() @@ -4914,7 +4914,7 @@ impl core::ops::Deref for IDCompositionVirtualSurface { windows_core::imp::interface_hierarchy!(IDCompositionVirtualSurface, windows_core::IUnknown, IDCompositionSurface); impl IDCompositionVirtualSurface { pub unsafe fn Resize(&self, width: u32, height: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn Trim(&self, rectangles: Option<&[super::super::Foundation::RECT]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Trim)(windows_core::Interface::as_raw(self), core::mem::transmute(rectangles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rectangles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -4957,7 +4957,7 @@ impl IDCompositionVisual { (windows_core::Interface::vtable(self).SetOffsetX)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetX2(&self, offsetx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetX2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetx)).ok() + (windows_core::Interface::vtable(self).SetOffsetX2)(windows_core::Interface::as_raw(self), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where @@ -4966,7 +4966,7 @@ impl IDCompositionVisual { (windows_core::Interface::vtable(self).SetOffsetY)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetY2(&self, offsety: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetY2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsety)).ok() + (windows_core::Interface::vtable(self).SetOffsetY2)(windows_core::Interface::as_raw(self), offsety).ok() } pub unsafe fn SetTransform(&self, transform: P0) -> windows_core::Result<()> where @@ -4976,7 +4976,7 @@ impl IDCompositionVisual { } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransform2)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix)).ok() + (windows_core::Interface::vtable(self).SetTransform2)(windows_core::Interface::as_raw(self), matrix).ok() } pub unsafe fn SetTransformParent(&self, visual: P0) -> windows_core::Result<()> where @@ -4991,10 +4991,10 @@ impl IDCompositionVisual { (windows_core::Interface::vtable(self).SetEffect)(windows_core::Interface::as_raw(self), effect.param().abi()).ok() } pub unsafe fn SetBitmapInterpolationMode(&self, interpolationmode: DCOMPOSITION_BITMAP_INTERPOLATION_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBitmapInterpolationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(interpolationmode)).ok() + (windows_core::Interface::vtable(self).SetBitmapInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode).ok() } pub unsafe fn SetBorderMode(&self, bordermode: DCOMPOSITION_BORDER_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), core::mem::transmute(bordermode)).ok() + (windows_core::Interface::vtable(self).SetBorderMode)(windows_core::Interface::as_raw(self), bordermode).ok() } pub unsafe fn SetClip(&self, clip: P0) -> windows_core::Result<()> where @@ -5004,7 +5004,7 @@ impl IDCompositionVisual { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetClip2(&self, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClip2)(windows_core::Interface::as_raw(self), core::mem::transmute(rect)).ok() + (windows_core::Interface::vtable(self).SetClip2)(windows_core::Interface::as_raw(self), rect).ok() } pub unsafe fn SetContent(&self, content: P0) -> windows_core::Result<()> where @@ -5029,7 +5029,7 @@ impl IDCompositionVisual { (windows_core::Interface::vtable(self).RemoveAllVisuals)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCompositeMode(&self, compositemode: DCOMPOSITION_COMPOSITE_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositeMode)(windows_core::Interface::as_raw(self), core::mem::transmute(compositemode)).ok() + (windows_core::Interface::vtable(self).SetCompositeMode)(windows_core::Interface::as_raw(self), compositemode).ok() } } #[repr(C)] @@ -5187,10 +5187,10 @@ impl core::ops::Deref for IDCompositionVisual2 { windows_core::imp::interface_hierarchy!(IDCompositionVisual2, windows_core::IUnknown, IDCompositionVisual); impl IDCompositionVisual2 { pub unsafe fn SetOpacityMode(&self, mode: DCOMPOSITION_OPACITY_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpacityMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetOpacityMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetBackFaceVisibility(&self, visibility: DCOMPOSITION_BACKFACE_VISIBILITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackFaceVisibility)(windows_core::Interface::as_raw(self), core::mem::transmute(visibility)).ok() + (windows_core::Interface::vtable(self).SetBackFaceVisibility)(windows_core::Interface::as_raw(self), visibility).ok() } } #[repr(C)] @@ -5237,7 +5237,7 @@ impl core::ops::Deref for IDCompositionVisual3 { windows_core::imp::interface_hierarchy!(IDCompositionVisual3, windows_core::IUnknown, IDCompositionVisual, IDCompositionVisual2, IDCompositionVisualDebug); impl IDCompositionVisual3 { pub unsafe fn SetDepthMode(&self, mode: DCOMPOSITION_DEPTH_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDepthMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetDepthMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetOffsetZ(&self, animation: P0) -> windows_core::Result<()> where @@ -5246,7 +5246,7 @@ impl IDCompositionVisual3 { (windows_core::Interface::vtable(self).SetOffsetZ)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOffsetZ2(&self, offsetz: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffsetZ2)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetz)).ok() + (windows_core::Interface::vtable(self).SetOffsetZ2)(windows_core::Interface::as_raw(self), offsetz).ok() } pub unsafe fn SetOpacity(&self, animation: P0) -> windows_core::Result<()> where @@ -5255,7 +5255,7 @@ impl IDCompositionVisual3 { (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } pub unsafe fn SetOpacity2(&self, opacity: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpacity2)(windows_core::Interface::as_raw(self), core::mem::transmute(opacity)).ok() + (windows_core::Interface::vtable(self).SetOpacity2)(windows_core::Interface::as_raw(self), opacity).ok() } pub unsafe fn SetTransform(&self, transform: P0) -> windows_core::Result<()> where @@ -5265,7 +5265,7 @@ impl IDCompositionVisual3 { } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetTransform2(&self, matrix: *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransform2)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix)).ok() + (windows_core::Interface::vtable(self).SetTransform2)(windows_core::Interface::as_raw(self), matrix).ok() } pub unsafe fn SetVisible(&self, visible: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.into()).ok() @@ -5361,7 +5361,7 @@ windows_core::imp::interface_hierarchy!(IDCompositionVisualDebug, windows_core:: impl IDCompositionVisualDebug { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn EnableHeatMap(&self, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableHeatMap)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).EnableHeatMap)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn DisableHeatMap(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisableHeatMap)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs index 1aee06d797..c2aa1f9964 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs @@ -12,7 +12,7 @@ where P2: windows_core::Param, { windows_targets::link!("ddraw.dll" "system" fn DirectDrawCreateClipper(dwflags : u32, lplpddclipper : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectDrawCreateClipper(core::mem::transmute(dwflags), core::mem::transmute(lplpddclipper), punkouter.param().abi()).ok() + DirectDrawCreateClipper(dwflags, core::mem::transmute(lplpddclipper), punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectDrawCreateEx(lpguid: *mut windows_core::GUID, lplpdd: *mut *mut core::ffi::c_void, iid: *const windows_core::GUID, punkouter: P3) -> windows_core::Result<()> @@ -20,29 +20,29 @@ where P3: windows_core::Param, { windows_targets::link!("ddraw.dll" "system" fn DirectDrawCreateEx(lpguid : *mut windows_core::GUID, lplpdd : *mut *mut core::ffi::c_void, iid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectDrawCreateEx(core::mem::transmute(lpguid), core::mem::transmute(lplpdd), core::mem::transmute(iid), punkouter.param().abi()).ok() + DirectDrawCreateEx(core::mem::transmute(lpguid), core::mem::transmute(lplpdd), iid, punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectDrawEnumerateA(lpcallback: LPDDENUMCALLBACKA, lpcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ddraw.dll" "system" fn DirectDrawEnumerateA(lpcallback : LPDDENUMCALLBACKA, lpcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - DirectDrawEnumerateA(core::mem::transmute(lpcallback), core::mem::transmute(lpcontext)).ok() + DirectDrawEnumerateA(lpcallback, core::mem::transmute(lpcontext)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DirectDrawEnumerateExA(lpcallback: LPDDENUMCALLBACKEXA, lpcontext: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ddraw.dll" "system" fn DirectDrawEnumerateExA(lpcallback : LPDDENUMCALLBACKEXA, lpcontext : *mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - DirectDrawEnumerateExA(core::mem::transmute(lpcallback), core::mem::transmute(lpcontext), core::mem::transmute(dwflags)).ok() + DirectDrawEnumerateExA(lpcallback, core::mem::transmute(lpcontext), dwflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DirectDrawEnumerateExW(lpcallback: LPDDENUMCALLBACKEXW, lpcontext: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ddraw.dll" "system" fn DirectDrawEnumerateExW(lpcallback : LPDDENUMCALLBACKEXW, lpcontext : *mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - DirectDrawEnumerateExW(core::mem::transmute(lpcallback), core::mem::transmute(lpcontext), core::mem::transmute(dwflags)).ok() + DirectDrawEnumerateExW(lpcallback, core::mem::transmute(lpcontext), dwflags).ok() } #[inline] pub unsafe fn DirectDrawEnumerateW(lpcallback: LPDDENUMCALLBACKW, lpcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ddraw.dll" "system" fn DirectDrawEnumerateW(lpcallback : LPDDENUMCALLBACKW, lpcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - DirectDrawEnumerateW(core::mem::transmute(lpcallback), core::mem::transmute(lpcontext)).ok() + DirectDrawEnumerateW(lpcallback, core::mem::transmute(lpcontext)).ok() } #[repr(C)] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -6077,16 +6077,16 @@ impl IDDVideoPortContainer { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoPort)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateVideoPort)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn EnumVideoPorts(&self, param0: u32, param1: *mut DDVIDEOPORTCAPS, param2: *mut core::ffi::c_void, param3: LPDDENUMVIDEOCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumVideoPorts)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumVideoPorts)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn GetVideoPortConnectInfo(&self, param0: u32, pcinfo: *mut u32, param2: Option<*mut DDVIDEOPORTCONNECT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoPortConnectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(pcinfo), core::mem::transmute(param2.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetVideoPortConnectInfo)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(pcinfo), core::mem::transmute(param2.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn QueryVideoPortStatus(&self, param0: u32, param1: *mut DDVIDEOPORTSTATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryVideoPortStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).QueryVideoPortStatus)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } } #[repr(C)] @@ -6144,14 +6144,14 @@ impl IDirectDraw { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC, param1: *mut Option, param2: P2) -> windows_core::Result<()> where @@ -6167,10 +6167,10 @@ impl IDirectDraw { (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumDisplayModes(&self, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn EnumSurfaces(&self, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn FlipToGDISurface(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlipToGDISurface)(windows_core::Interface::as_raw(self)).ok() @@ -6204,13 +6204,13 @@ impl IDirectDraw { (windows_core::Interface::vtable(self).RestoreDisplayMode)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetDisplayMode(&self, param0: u32, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1).ok() } } #[repr(C)] @@ -6398,14 +6398,14 @@ impl IDirectDraw2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC, param1: *mut Option, param2: P2) -> windows_core::Result<()> where @@ -6421,10 +6421,10 @@ impl IDirectDraw2 { (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumDisplayModes(&self, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn EnumSurfaces(&self, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn FlipToGDISurface(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlipToGDISurface)(windows_core::Interface::as_raw(self)).ok() @@ -6458,13 +6458,13 @@ impl IDirectDraw2 { (windows_core::Interface::vtable(self).RestoreDisplayMode)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetDisplayMode(&self, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), param0, param1, param2, param3, param4).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetAvailableVidMem(&self, param0: *mut DDSCAPS, param1: *mut u32, param2: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAvailableVidMem)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() @@ -6662,14 +6662,14 @@ impl IDirectDraw4 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC2, param1: *mut Option, param2: P2) -> windows_core::Result<()> where @@ -6685,10 +6685,10 @@ impl IDirectDraw4 { (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumDisplayModes(&self, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn EnumSurfaces(&self, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn FlipToGDISurface(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlipToGDISurface)(windows_core::Interface::as_raw(self)).ok() @@ -6722,13 +6722,13 @@ impl IDirectDraw4 { (windows_core::Interface::vtable(self).RestoreDisplayMode)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetDisplayMode(&self, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), param0, param1, param2, param3, param4).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetAvailableVidMem(&self, param0: *mut DDSCAPS2, param1: *mut u32, param2: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAvailableVidMem)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() @@ -6736,7 +6736,7 @@ impl IDirectDraw4 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetSurfaceFromDC(&self, param0: super::Gdi::HDC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), param0, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RestoreAllSurfaces(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestoreAllSurfaces)(windows_core::Interface::as_raw(self)).ok() @@ -6745,7 +6745,7 @@ impl IDirectDraw4 { (windows_core::Interface::vtable(self).TestCooperativeLevel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDeviceIdentifier(&self, param0: *mut DDDEVICEIDENTIFIER, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetDeviceIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } } #[repr(C)] @@ -6977,14 +6977,14 @@ impl IDirectDraw7 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC2, param1: *mut Option, param2: P2) -> windows_core::Result<()> where @@ -7000,10 +7000,10 @@ impl IDirectDraw7 { (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumDisplayModes(&self, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumDisplayModes)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn EnumSurfaces(&self, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK7) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).EnumSurfaces)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2), param3).ok() } pub unsafe fn FlipToGDISurface(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlipToGDISurface)(windows_core::Interface::as_raw(self)).ok() @@ -7037,13 +7037,13 @@ impl IDirectDraw7 { (windows_core::Interface::vtable(self).RestoreDisplayMode)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetDisplayMode(&self, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).SetDisplayMode)(windows_core::Interface::as_raw(self), param0, param1, param2, param3, param4).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn GetAvailableVidMem(&self, param0: *mut DDSCAPS2, param1: *mut u32, param2: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAvailableVidMem)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() @@ -7051,7 +7051,7 @@ impl IDirectDraw7 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetSurfaceFromDC(&self, param0: super::Gdi::HDC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), param0, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RestoreAllSurfaces(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestoreAllSurfaces)(windows_core::Interface::as_raw(self)).ok() @@ -7060,13 +7060,13 @@ impl IDirectDraw7 { (windows_core::Interface::vtable(self).TestCooperativeLevel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDeviceIdentifier(&self, param0: *mut DDDEVICEIDENTIFIER2, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetDeviceIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn StartModeTest(&self, param0: *mut super::super::Foundation::SIZE, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartModeTest)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).StartModeTest)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn EvaluateMode(&self, param0: u32, param1: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EvaluateMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EvaluateMode)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } } #[repr(C)] @@ -7316,17 +7316,17 @@ impl IDirectDrawClipper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn IsClipListChanged(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsClipListChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetClipList(&self, param0: *mut super::Gdi::RGNDATA, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipList)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetClipList)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn SetHWnd(&self, param0: u32, param1: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), param0, param1).ok() } } #[repr(C)] @@ -7442,10 +7442,10 @@ windows_core::imp::define_interface!(IDirectDrawGammaControl, IDirectDrawGammaCo windows_core::imp::interface_hierarchy!(IDirectDrawGammaControl, windows_core::IUnknown); impl IDirectDrawGammaControl { pub unsafe fn GetGammaRamp(&self, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGammaRamp)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetGammaRamp)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetGammaRamp(&self, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGammaRamp)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetGammaRamp)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } } #[repr(C)] @@ -7538,18 +7538,18 @@ impl IDirectDrawPalette { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetEntries(&self, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).GetEntries)(windows_core::Interface::as_raw(self), param0, param1, param2, core::mem::transmute(param3)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *mut super::Gdi::PALETTEENTRY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, core::mem::transmute(param2)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetEntries(&self, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SetEntries)(windows_core::Interface::as_raw(self), param0, param1, param2, core::mem::transmute(param3)).ok() } } #[repr(C)] @@ -7625,40 +7625,40 @@ impl IDirectDrawSurface { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn BltBatch(&self, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P2, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi(), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), core::mem::transmute(param3), param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn EnumAttachedSurfaces(&self, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn EnumOverlayZOrders(&self, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetAttachedSurface(&self, param0: *mut DDSCAPS, param1: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() } pub unsafe fn GetBltStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetCaps(&self, param0: *mut DDSCAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -7668,14 +7668,14 @@ impl IDirectDrawSurface { (windows_core::Interface::vtable(self).GetClipper)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, param0: *mut super::Gdi::HDC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetFlipStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetOverlayPosition(&self, param0: *mut i32, param1: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() @@ -7700,11 +7700,11 @@ impl IDirectDrawSurface { (windows_core::Interface::vtable(self).IsLost)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Lock(&self, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: super::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() @@ -7716,10 +7716,10 @@ impl IDirectDrawSurface { (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetOverlayPosition(&self, param0: i32, param1: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where @@ -7734,16 +7734,16 @@ impl IDirectDrawSurface { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } } #[repr(C)] @@ -8031,40 +8031,40 @@ impl IDirectDrawSurface2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn BltBatch(&self, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P2, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi(), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), core::mem::transmute(param3), param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn EnumAttachedSurfaces(&self, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn EnumOverlayZOrders(&self, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetAttachedSurface(&self, param0: *mut DDSCAPS, param1: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() } pub unsafe fn GetBltStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetCaps(&self, param0: *mut DDSCAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -8074,14 +8074,14 @@ impl IDirectDrawSurface2 { (windows_core::Interface::vtable(self).GetClipper)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, param0: *mut super::Gdi::HDC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetFlipStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetOverlayPosition(&self, param0: *mut i32, param1: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() @@ -8106,11 +8106,11 @@ impl IDirectDrawSurface2 { (windows_core::Interface::vtable(self).IsLost)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Lock(&self, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: super::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() @@ -8122,10 +8122,10 @@ impl IDirectDrawSurface2 { (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetOverlayPosition(&self, param0: i32, param1: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where @@ -8140,25 +8140,25 @@ impl IDirectDrawSurface2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn GetDDInterface(&self, param0: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDDInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn PageLock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn PageUnlock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), param0).ok() } } #[repr(C)] @@ -8467,40 +8467,40 @@ impl IDirectDrawSurface3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn BltBatch(&self, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P2, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi(), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), core::mem::transmute(param3), param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn EnumAttachedSurfaces(&self, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn EnumOverlayZOrders(&self, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetAttachedSurface(&self, param0: *mut DDSCAPS, param1: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() } pub unsafe fn GetBltStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetCaps(&self, param0: *mut DDSCAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -8510,14 +8510,14 @@ impl IDirectDrawSurface3 { (windows_core::Interface::vtable(self).GetClipper)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, param0: *mut super::Gdi::HDC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetFlipStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetOverlayPosition(&self, param0: *mut i32, param1: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() @@ -8542,11 +8542,11 @@ impl IDirectDrawSurface3 { (windows_core::Interface::vtable(self).IsLost)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Lock(&self, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: super::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() @@ -8558,10 +8558,10 @@ impl IDirectDrawSurface3 { (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetOverlayPosition(&self, param0: i32, param1: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where @@ -8576,28 +8576,28 @@ impl IDirectDrawSurface3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn GetDDInterface(&self, param0: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDDInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn PageLock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn PageUnlock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetSurfaceDesc(&self, param0: *mut DDSURFACEDESC, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSurfaceDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetSurfaceDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } } #[repr(C)] @@ -8913,40 +8913,40 @@ impl IDirectDrawSurface4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn BltBatch(&self, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P2, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi(), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), core::mem::transmute(param3), param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn EnumAttachedSurfaces(&self, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn EnumOverlayZOrders(&self, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetAttachedSurface(&self, param0: *mut DDSCAPS2, param1: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() } pub unsafe fn GetBltStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetCaps(&self, param0: *mut DDSCAPS2) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -8956,14 +8956,14 @@ impl IDirectDrawSurface4 { (windows_core::Interface::vtable(self).GetClipper)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, param0: *mut super::Gdi::HDC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetFlipStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetOverlayPosition(&self, param0: *mut i32, param1: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() @@ -8988,11 +8988,11 @@ impl IDirectDrawSurface4 { (windows_core::Interface::vtable(self).IsLost)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Lock(&self, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC2, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: super::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() @@ -9004,10 +9004,10 @@ impl IDirectDrawSurface4 { (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetOverlayPosition(&self, param0: i32, param1: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where @@ -9022,37 +9022,37 @@ impl IDirectDrawSurface4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn GetDDInterface(&self, param0: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDDInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn PageLock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn PageUnlock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetSurfaceDesc(&self, param0: *mut DDSURFACEDESC2, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSurfaceDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetSurfaceDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn SetPrivateData(&self, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2, param3).ok() } pub unsafe fn GetPrivateData(&self, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2)).ok() } pub unsafe fn FreePrivateData(&self, param0: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetUniquenessValue(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetUniquenessValue)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -9409,40 +9409,40 @@ impl IDirectDrawSurface7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn BltBatch(&self, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).BltBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P2, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2.param().abi(), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), core::mem::transmute(param3), param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn EnumAttachedSurfaces(&self, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK7) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).EnumAttachedSurfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn EnumOverlayZOrders(&self, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK7) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EnumOverlayZOrders)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2).ok() } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetAttachedSurface(&self, param0: *mut DDSCAPS2, param1: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAttachedSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() } pub unsafe fn GetBltStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetBltStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetCaps(&self, param0: *mut DDSCAPS2) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -9452,14 +9452,14 @@ impl IDirectDrawSurface7 { (windows_core::Interface::vtable(self).GetClipper)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, param0: *mut super::Gdi::HDC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetFlipStatus(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).GetFlipStatus)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetOverlayPosition(&self, param0: *mut i32, param1: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() @@ -9484,11 +9484,11 @@ impl IDirectDrawSurface7 { (windows_core::Interface::vtable(self).IsLost)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Lock(&self, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC2, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: super::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() @@ -9500,10 +9500,10 @@ impl IDirectDrawSurface7 { (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetColorKey(&self, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1)).ok() } pub unsafe fn SetOverlayPosition(&self, param0: i32, param1: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetOverlayPosition)(windows_core::Interface::as_raw(self), param0, param1).ok() } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where @@ -9518,37 +9518,37 @@ impl IDirectDrawSurface7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2), param3, core::mem::transmute(param4)).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } pub unsafe fn GetDDInterface(&self, param0: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDDInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn PageLock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageLock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn PageUnlock(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).PageUnlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn SetSurfaceDesc(&self, param0: *mut DDSURFACEDESC2, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSurfaceDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetSurfaceDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } pub unsafe fn SetPrivateData(&self, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: u32, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2, param3).ok() } pub unsafe fn GetPrivateData(&self, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), core::mem::transmute(param2)).ok() } pub unsafe fn FreePrivateData(&self, param0: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).FreePrivateData)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetUniquenessValue(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetUniquenessValue)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -9557,13 +9557,13 @@ impl IDirectDrawSurface7 { (windows_core::Interface::vtable(self).ChangeUniquenessValue)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetPriority(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetPriority(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn SetLOD(&self, param0: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLOD)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).SetLOD)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn GetLOD(&self, param0: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLOD)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -9977,19 +9977,19 @@ impl IDirectDrawVideoPort { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetBandwidthInfo(&self, param0: *mut DDPIXELFORMAT, param1: u32, param2: u32, param3: u32, param4: *mut DDVIDEOPORTBANDWIDTH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBandwidthInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).GetBandwidthInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1, param2, param3, core::mem::transmute(param4)).ok() } pub unsafe fn GetColorControls(&self, param0: *mut DDCOLORCONTROL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetColorControls)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn GetInputFormats(&self, lpnumformats: *mut u32, param1: Option<*mut DDPIXELFORMAT>, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(lpnumformats), core::mem::transmute(param1.unwrap_or(core::mem::zeroed())), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).GetInputFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(lpnumformats), core::mem::transmute(param1.unwrap_or(core::mem::zeroed())), param2).ok() } pub unsafe fn GetOutputFormats(&self, param0: *mut DDPIXELFORMAT, lpnumformats: *mut u32, param2: Option<*mut DDPIXELFORMAT>, param3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(lpnumformats), core::mem::transmute(param2.unwrap_or(core::mem::zeroed())), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).GetOutputFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(lpnumformats), core::mem::transmute(param2.unwrap_or(core::mem::zeroed())), param3).ok() } pub unsafe fn GetFieldPolarity(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFieldPolarity)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -10007,7 +10007,7 @@ impl IDirectDrawVideoPort { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetSurface)(windows_core::Interface::as_raw(self), param0.param().abi(), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).SetTargetSurface)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn StartVideo(&self, param0: *mut DDVIDEOPORTINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() @@ -10019,7 +10019,7 @@ impl IDirectDrawVideoPort { (windows_core::Interface::vtable(self).UpdateVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() } pub unsafe fn WaitForSync(&self, param0: u32, param1: u32, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForSync)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).WaitForSync)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } #[repr(C)] @@ -10144,7 +10144,7 @@ impl IDirectDrawVideoPortNotify { (windows_core::Interface::vtable(self).AcquireNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() } pub unsafe fn ReleaseNotification(&self, param0: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).ReleaseNotification)(windows_core::Interface::as_raw(self), param0).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs index 2e26567574..e40901ea8a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs @@ -435,7 +435,7 @@ windows_core::imp::define_interface!(IDirectManipulationAutoScrollBehavior, IDir windows_core::imp::interface_hierarchy!(IDirectManipulationAutoScrollBehavior, windows_core::IUnknown); impl IDirectManipulationAutoScrollBehavior { pub unsafe fn SetConfiguration(&self, motiontypes: DIRECTMANIPULATION_MOTION_TYPES, scrollmotion: DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(motiontypes), core::mem::transmute(scrollmotion)).ok() + (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), motiontypes, scrollmotion).ok() } } #[repr(C)] @@ -583,7 +583,7 @@ impl IDirectManipulationContent { (windows_core::Interface::vtable(self).GetContentRect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetContentRect(&self, contentsize: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContentRect)(windows_core::Interface::as_raw(self), core::mem::transmute(contentsize)).ok() + (windows_core::Interface::vtable(self).SetContentRect)(windows_core::Interface::as_raw(self), contentsize).ok() } pub unsafe fn GetViewport(&self) -> windows_core::Result where @@ -602,7 +602,7 @@ impl IDirectManipulationContent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetOutputTransform(&self, matrix: &mut [f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix.as_ptr()), matrix.len().try_into().unwrap()).ok() @@ -697,13 +697,13 @@ windows_core::imp::define_interface!(IDirectManipulationDeferContactService, IDi windows_core::imp::interface_hierarchy!(IDirectManipulationDeferContactService, windows_core::IUnknown); impl IDirectManipulationDeferContactService { pub unsafe fn DeferContact(&self, pointerid: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeferContact)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerid), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DeferContact)(windows_core::Interface::as_raw(self), pointerid, timeout).ok() } pub unsafe fn CancelContact(&self, pointerid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelContact)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerid)).ok() + (windows_core::Interface::vtable(self).CancelContact)(windows_core::Interface::as_raw(self), pointerid).ok() } pub unsafe fn CancelDeferral(&self, pointerid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelDeferral)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerid)).ok() + (windows_core::Interface::vtable(self).CancelDeferral)(windows_core::Interface::as_raw(self), pointerid).ok() } } #[repr(C)] @@ -748,7 +748,7 @@ windows_core::imp::define_interface!(IDirectManipulationDragDropBehavior, IDirec windows_core::imp::interface_hierarchy!(IDirectManipulationDragDropBehavior, windows_core::IUnknown); impl IDirectManipulationDragDropBehavior { pub unsafe fn SetConfiguration(&self, configuration: DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(configuration)).ok() + (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), configuration).ok() } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -799,7 +799,7 @@ impl IDirectManipulationDragDropEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragDropStatusChange)(windows_core::Interface::as_raw(self), viewport.param().abi(), core::mem::transmute(current), core::mem::transmute(previous)).ok() + (windows_core::Interface::vtable(self).OnDragDropStatusChange)(windows_core::Interface::as_raw(self), viewport.param().abi(), current, previous).ok() } } #[repr(C)] @@ -858,7 +858,7 @@ impl IDirectManipulationInteractionEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInteraction)(windows_core::Interface::as_raw(self), viewport.param().abi(), core::mem::transmute(interaction)).ok() + (windows_core::Interface::vtable(self).OnInteraction)(windows_core::Interface::as_raw(self), viewport.param().abi(), interaction).ok() } } #[repr(C)] @@ -886,18 +886,18 @@ windows_core::imp::define_interface!(IDirectManipulationManager, IDirectManipula windows_core::imp::interface_hierarchy!(IDirectManipulationManager, windows_core::IUnknown); impl IDirectManipulationManager { pub unsafe fn Activate(&self, window: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(window)).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), window).ok() } pub unsafe fn Deactivate(&self, window: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), core::mem::transmute(window)).ok() + (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), window).ok() } pub unsafe fn RegisterHitTestTarget(&self, window: super::super::Foundation::HWND, hittestwindow: Option, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterHitTestTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(window), core::mem::transmute(hittestwindow.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window, core::mem::transmute(hittestwindow.unwrap_or(core::mem::zeroed())), r#type).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), core::mem::transmute(message), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), message, &mut result__).map(|| result__) } pub unsafe fn GetUpdateManager(&self) -> windows_core::Result where @@ -912,7 +912,7 @@ impl IDirectManipulationManager { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), core::mem::transmute(window), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), window, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateContent(&self, frameinfo: P0, clsid: *const windows_core::GUID) -> windows_core::Result where @@ -920,7 +920,7 @@ impl IDirectManipulationManager { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateContent)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateContent)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1015,7 +1015,7 @@ impl IDirectManipulationManager2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateBehavior)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBehavior)(windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1056,7 +1056,7 @@ impl IDirectManipulationManager3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1087,25 +1087,25 @@ windows_core::imp::define_interface!(IDirectManipulationPrimaryContent, IDirectM windows_core::imp::interface_hierarchy!(IDirectManipulationPrimaryContent, windows_core::IUnknown); impl IDirectManipulationPrimaryContent { pub unsafe fn SetSnapInterval(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, interval: f32, offset: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(motion), core::mem::transmute(interval), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetSnapInterval)(windows_core::Interface::as_raw(self), motion, interval, offset).ok() } pub unsafe fn SetSnapPoints(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, points: Option<&[f32]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(motion), core::mem::transmute(points.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), points.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + (windows_core::Interface::vtable(self).SetSnapPoints)(windows_core::Interface::as_raw(self), motion, core::mem::transmute(points.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), points.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn SetSnapType(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, r#type: DIRECTMANIPULATION_SNAPPOINT_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapType)(windows_core::Interface::as_raw(self), core::mem::transmute(motion), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetSnapType)(windows_core::Interface::as_raw(self), motion, r#type).ok() } pub unsafe fn SetSnapCoordinate(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, coordinate: DIRECTMANIPULATION_SNAPPOINT_COORDINATE, origin: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapCoordinate)(windows_core::Interface::as_raw(self), core::mem::transmute(motion), core::mem::transmute(coordinate), core::mem::transmute(origin)).ok() + (windows_core::Interface::vtable(self).SetSnapCoordinate)(windows_core::Interface::as_raw(self), motion, coordinate, origin).ok() } pub unsafe fn SetZoomBoundaries(&self, zoomminimum: f32, zoommaximum: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZoomBoundaries)(windows_core::Interface::as_raw(self), core::mem::transmute(zoomminimum), core::mem::transmute(zoommaximum)).ok() + (windows_core::Interface::vtable(self).SetZoomBoundaries)(windows_core::Interface::as_raw(self), zoomminimum, zoommaximum).ok() } pub unsafe fn SetHorizontalAlignment(&self, alignment: DIRECTMANIPULATION_HORIZONTALALIGNMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHorizontalAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(alignment)).ok() + (windows_core::Interface::vtable(self).SetHorizontalAlignment)(windows_core::Interface::as_raw(self), alignment).ok() } pub unsafe fn SetVerticalAlignment(&self, alignment: DIRECTMANIPULATION_VERTICALALIGNMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVerticalAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(alignment)).ok() + (windows_core::Interface::vtable(self).SetVerticalAlignment)(windows_core::Interface::as_raw(self), alignment).ok() } pub unsafe fn GetInertiaEndTransform(&self, matrix: &mut [f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInertiaEndTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix.as_ptr()), matrix.len().try_into().unwrap()).ok() @@ -1230,10 +1230,10 @@ impl IDirectManipulationUpdateManager { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterWaitHandleCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), eventhandler.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterWaitHandleCallback)(windows_core::Interface::as_raw(self), handle, eventhandler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterWaitHandleCallback(&self, cookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterWaitHandleCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).UnregisterWaitHandleCallback)(windows_core::Interface::as_raw(self), cookie).ok() } pub unsafe fn Update(&self, frameinfo: P0) -> windows_core::Result<()> where @@ -1296,10 +1296,10 @@ impl IDirectManipulationViewport { (windows_core::Interface::vtable(self).Disable)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetContact(&self, pointerid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContact)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerid)).ok() + (windows_core::Interface::vtable(self).SetContact)(windows_core::Interface::as_raw(self), pointerid).ok() } pub unsafe fn ReleaseContact(&self, pointerid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseContact)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerid)).ok() + (windows_core::Interface::vtable(self).ReleaseContact)(windows_core::Interface::as_raw(self), pointerid).ok() } pub unsafe fn ReleaseAllContacts(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseAllContacts)(windows_core::Interface::as_raw(self)).ok() @@ -1318,17 +1318,17 @@ impl IDirectManipulationViewport { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetViewportRect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetViewportRect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetViewportRect(&self, viewport: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewportRect)(windows_core::Interface::as_raw(self), core::mem::transmute(viewport)).ok() + (windows_core::Interface::vtable(self).SetViewportRect)(windows_core::Interface::as_raw(self), viewport).ok() } pub unsafe fn ZoomToRect(&self, left: f32, top: f32, right: f32, bottom: f32, animate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ZoomToRect)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom), animate.into()).ok() + (windows_core::Interface::vtable(self).ZoomToRect)(windows_core::Interface::as_raw(self), left, top, right, bottom, animate.into()).ok() } pub unsafe fn SetViewportTransform(&self, matrix: &[f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetViewportTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix.as_ptr()), matrix.len().try_into().unwrap()).ok() @@ -1356,22 +1356,22 @@ impl IDirectManipulationViewport { (windows_core::Interface::vtable(self).RemoveContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn SetViewportOptions(&self, options: DIRECTMANIPULATION_VIEWPORT_OPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewportOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetViewportOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn AddConfiguration(&self, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(configuration)).ok() + (windows_core::Interface::vtable(self).AddConfiguration)(windows_core::Interface::as_raw(self), configuration).ok() } pub unsafe fn RemoveConfiguration(&self, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(configuration)).ok() + (windows_core::Interface::vtable(self).RemoveConfiguration)(windows_core::Interface::as_raw(self), configuration).ok() } pub unsafe fn ActivateConfiguration(&self, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(configuration)).ok() + (windows_core::Interface::vtable(self).ActivateConfiguration)(windows_core::Interface::as_raw(self), configuration).ok() } pub unsafe fn SetManualGesture(&self, configuration: DIRECTMANIPULATION_GESTURE_CONFIGURATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetManualGesture)(windows_core::Interface::as_raw(self), core::mem::transmute(configuration)).ok() + (windows_core::Interface::vtable(self).SetManualGesture)(windows_core::Interface::as_raw(self), configuration).ok() } pub unsafe fn SetChaining(&self, enabledtypes: DIRECTMANIPULATION_MOTION_TYPES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChaining)(windows_core::Interface::as_raw(self), core::mem::transmute(enabledtypes)).ok() + (windows_core::Interface::vtable(self).SetChaining)(windows_core::Interface::as_raw(self), enabledtypes).ok() } pub unsafe fn AddEventHandler(&self, window: Option, eventhandler: P1) -> windows_core::Result where @@ -1381,13 +1381,13 @@ impl IDirectManipulationViewport { (windows_core::Interface::vtable(self).AddEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(window.unwrap_or(core::mem::zeroed())), eventhandler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveEventHandler(&self, cookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).RemoveEventHandler)(windows_core::Interface::as_raw(self), cookie).ok() } pub unsafe fn SetInputMode(&self, mode: DIRECTMANIPULATION_INPUT_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetInputMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetUpdateMode(&self, mode: DIRECTMANIPULATION_INPUT_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpdateMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetUpdateMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -1644,7 +1644,7 @@ impl IDirectManipulationViewport2 { (windows_core::Interface::vtable(self).AddBehavior)(windows_core::Interface::as_raw(self), behavior.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveBehavior(&self, cookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveBehavior)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).RemoveBehavior)(windows_core::Interface::as_raw(self), cookie).ok() } pub unsafe fn RemoveAllBehaviors(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllBehaviors)(windows_core::Interface::as_raw(self)).ok() @@ -1701,7 +1701,7 @@ impl IDirectManipulationViewportEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewportStatusChanged)(windows_core::Interface::as_raw(self), viewport.param().abi(), core::mem::transmute(current), core::mem::transmute(previous)).ok() + (windows_core::Interface::vtable(self).OnViewportStatusChanged)(windows_core::Interface::as_raw(self), viewport.param().abi(), current, previous).ok() } pub unsafe fn OnViewportUpdated(&self, viewport: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs index 933187a7dc..58cbd8abf9 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs @@ -5,7 +5,7 @@ where { windows_targets::link!("dwrite.dll" "system" fn DWriteCreateFactory(factorytype : DWRITE_FACTORY_TYPE, iid : *const windows_core::GUID, factory : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - DWriteCreateFactory(core::mem::transmute(factorytype), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DWriteCreateFactory(factorytype, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub const DWRITE_ALPHA_MAX: u32 = 255u32; #[repr(transparent)] @@ -1890,7 +1890,7 @@ impl IDWriteBitmapRenderTarget { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(measuringmode), core::mem::transmute(glyphrun), renderingparams.param().abi(), core::mem::transmute(textcolor), core::mem::transmute(blackboxrect.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, core::mem::transmute(glyphrun), renderingparams.param().abi(), textcolor, core::mem::transmute(blackboxrect.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMemoryDC(&self) -> super::Gdi::HDC { @@ -1900,7 +1900,7 @@ impl IDWriteBitmapRenderTarget { (windows_core::Interface::vtable(self).GetPixelsPerDip)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPixelsPerDip(&self, pixelsperdip: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPixelsPerDip)(windows_core::Interface::as_raw(self), core::mem::transmute(pixelsperdip)).ok() + (windows_core::Interface::vtable(self).SetPixelsPerDip)(windows_core::Interface::as_raw(self), pixelsperdip).ok() } pub unsafe fn GetCurrentTransform(&self, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(transform)).ok() @@ -1913,7 +1913,7 @@ impl IDWriteBitmapRenderTarget { (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Resize(&self, width: u32, height: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), width, height).ok() } } #[repr(C)] @@ -2018,7 +2018,7 @@ impl IDWriteBitmapRenderTarget1 { (windows_core::Interface::vtable(self).GetTextAntialiasMode)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetTextAntialiasMode(&self, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextAntialiasMode)(windows_core::Interface::as_raw(self), core::mem::transmute(antialiasmode)).ok() + (windows_core::Interface::vtable(self).SetTextAntialiasMode)(windows_core::Interface::as_raw(self), antialiasmode).ok() } } #[repr(C)] @@ -2120,13 +2120,13 @@ impl IDWriteBitmapRenderTarget3 { (windows_core::Interface::vtable(self).GetPaintFeatureLevel)(windows_core::Interface::as_raw(self)) } pub unsafe fn DrawPaintGlyphRun(&self, 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: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(measuringmode), core::mem::transmute(glyphrun), core::mem::transmute(glyphimageformat), core::mem::transmute(textcolor), core::mem::transmute(colorpaletteindex), core::mem::transmute(blackboxrect.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, core::mem::transmute(glyphrun), glyphimageformat, textcolor, colorpaletteindex, core::mem::transmute(blackboxrect.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DrawGlyphRunWithColorSupport(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: P4, textcolor: super::super::Foundation::COLORREF, colorpaletteindex: u32, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(measuringmode), core::mem::transmute(glyphrun), renderingparams.param().abi(), core::mem::transmute(textcolor), core::mem::transmute(colorpaletteindex), core::mem::transmute(blackboxrect.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, core::mem::transmute(glyphrun), renderingparams.param().abi(), textcolor, colorpaletteindex, core::mem::transmute(blackboxrect.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -2285,7 +2285,7 @@ impl IDWriteFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.param().abi(), core::mem::transmute(collectionkey), core::mem::transmute(collectionkeysize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where @@ -2311,11 +2311,11 @@ impl IDWriteFactory { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), fontfileloader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontFace(&self, fontfacetype: DWRITE_FONT_FACE_TYPE, fontfiles: &[Option], faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfacetype), fontfiles.len().try_into().unwrap(), core::mem::transmute(fontfiles.as_ptr()), core::mem::transmute(faceindex), core::mem::transmute(fontfacesimulationflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), fontfacetype, fontfiles.len().try_into().unwrap(), core::mem::transmute(fontfiles.as_ptr()), faceindex, fontfacesimulationflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRenderingParams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2324,11 +2324,11 @@ impl IDWriteFactory { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: super::Gdi::HMONITOR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), core::mem::transmute(monitor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomRenderingParams(&self, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), core::mem::transmute(gamma), core::mem::transmute(enhancedcontrast), core::mem::transmute(cleartypelevel), core::mem::transmute(pixelgeometry), core::mem::transmute(renderingmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), gamma, enhancedcontrast, cleartypelevel, pixelgeometry, renderingmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where @@ -2349,7 +2349,7 @@ impl IDWriteFactory { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.param().abi(), fontcollection.param().abi(), core::mem::transmute(fontweight), core::mem::transmute(fontstyle), core::mem::transmute(fontstretch), core::mem::transmute(fontsize), localename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.param().abi(), fontcollection.param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypography(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2364,14 +2364,14 @@ impl IDWriteFactory { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), core::mem::transmute(maxwidth), core::mem::transmute(maxheight), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGdiCompatibleTextLayout(&self, string: &[u16], textformat: P2, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: bool) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), core::mem::transmute(layoutwidth), core::mem::transmute(layoutheight), core::mem::transmute(pixelsperdip), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where @@ -2389,11 +2389,11 @@ impl IDWriteFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNumberSubstitution)(windows_core::Interface::as_raw(self), core::mem::transmute(substitutionmethod), localename.param().abi(), ignoreuseroverride.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGlyphRunAnalysis(&self, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), core::mem::transmute(pixelsperdip), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(renderingmode), core::mem::transmute(measuringmode), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), renderingmode, measuringmode, baselineoriginx, baselineoriginy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2680,7 +2680,7 @@ impl IDWriteFactory1 { } pub unsafe fn CreateCustomRenderingParams(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), core::mem::transmute(gamma), core::mem::transmute(enhancedcontrast), core::mem::transmute(enhancedcontrastgrayscale), core::mem::transmute(cleartypelevel), core::mem::transmute(pixelgeometry), core::mem::transmute(renderingmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), gamma, enhancedcontrast, enhancedcontrastgrayscale, cleartypelevel, pixelgeometry, renderingmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2746,15 +2746,15 @@ impl IDWriteFactory2 { } pub unsafe fn TranslateColorGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: Option<*const DWRITE_GLYPH_RUN_DESCRIPTION>, measuringmode: DWRITE_MEASURING_MODE, worldtodevicetransform: Option<*const DWRITE_MATRIX>, colorpaletteindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TranslateColorGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(measuringmode), core::mem::transmute(worldtodevicetransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(colorpaletteindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TranslateColorGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), measuringmode, core::mem::transmute(worldtodevicetransform.unwrap_or(core::mem::zeroed())), colorpaletteindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomRenderingParams(&self, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), core::mem::transmute(gamma), core::mem::transmute(enhancedcontrast), core::mem::transmute(grayscaleenhancedcontrast), core::mem::transmute(cleartypelevel), core::mem::transmute(pixelgeometry), core::mem::transmute(renderingmode), core::mem::transmute(gridfitmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), gamma, enhancedcontrast, grayscaleenhancedcontrast, cleartypelevel, pixelgeometry, renderingmode, gridfitmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGlyphRunAnalysis(&self, glyphrun: *const DWRITE_GLYPH_RUN, transform: Option<*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) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(renderingmode), core::mem::transmute(measuringmode), core::mem::transmute(gridfitmode), core::mem::transmute(antialiasmode), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), renderingmode, measuringmode, gridfitmode, antialiasmode, baselineoriginx, baselineoriginy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2857,25 +2857,25 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory3, windows_core::IUnknown, impl IDWriteFactory3 { pub unsafe fn CreateGlyphRunAnalysis(&self, glyphrun: *const DWRITE_GLYPH_RUN, transform: Option<*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) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(renderingmode), core::mem::transmute(measuringmode), core::mem::transmute(gridfitmode), core::mem::transmute(antialiasmode), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), renderingmode, measuringmode, gridfitmode, antialiasmode, baselineoriginx, baselineoriginy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomRenderingParams(&self, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE1, gridfitmode: DWRITE_GRID_FIT_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), core::mem::transmute(gamma), core::mem::transmute(enhancedcontrast), core::mem::transmute(grayscaleenhancedcontrast), core::mem::transmute(cleartypelevel), core::mem::transmute(pixelgeometry), core::mem::transmute(renderingmode), core::mem::transmute(gridfitmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCustomRenderingParams)(windows_core::Interface::as_raw(self), gamma, enhancedcontrast, grayscaleenhancedcontrast, cleartypelevel, pixelgeometry, renderingmode, gridfitmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.param().abi(), core::mem::transmute(faceindex), core::mem::transmute(fontsimulations), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.param().abi(), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontFaceReference2(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(core::mem::zeroed())), core::mem::transmute(faceindex), core::mem::transmute(fontsimulations), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(core::mem::zeroed())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3047,7 +3047,7 @@ impl IDWriteFactory4 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn TranslateColorGlyphRun(&self, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: Option<*const DWRITE_GLYPH_RUN_DESCRIPTION>, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: Option<*const DWRITE_MATRIX>, colorpaletteindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TranslateColorGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredglyphimageformats), core::mem::transmute(measuringmode), core::mem::transmute(worldanddpitransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(colorpaletteindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TranslateColorGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), desiredglyphimageformats, measuringmode, core::mem::transmute(worldanddpitransform.unwrap_or(core::mem::zeroed())), colorpaletteindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn ComputeGlyphOrigins(&self, glyphrun: *const DWRITE_GLYPH_RUN, baselineorigin: super::Direct2D::Common::D2D_POINT_2F) -> windows_core::Result { @@ -3057,7 +3057,7 @@ impl IDWriteFactory4 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn ComputeGlyphOrigins2(&self, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, worldanddpitransform: Option<*const DWRITE_MATRIX>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ComputeGlyphOrigins2)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), core::mem::transmute(measuringmode), core::mem::transmute(baselineorigin), core::mem::transmute(worldanddpitransform.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ComputeGlyphOrigins2)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphrun), measuringmode, core::mem::transmute(baselineorigin), core::mem::transmute(worldanddpitransform.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } } #[repr(C)] @@ -3158,11 +3158,11 @@ impl IDWriteFactory5 { (windows_core::Interface::vtable(self).CreateHttpFontFileLoader)(windows_core::Interface::as_raw(self), referrerurl.param().abi(), extraheaders.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AnalyzeContainerType(&self, filedata: *const core::ffi::c_void, filedatasize: u32) -> DWRITE_CONTAINER_TYPE { - (windows_core::Interface::vtable(self).AnalyzeContainerType)(windows_core::Interface::as_raw(self), core::mem::transmute(filedata), core::mem::transmute(filedatasize)) + (windows_core::Interface::vtable(self).AnalyzeContainerType)(windows_core::Interface::as_raw(self), filedata, filedatasize) } pub unsafe fn UnpackFontFile(&self, containertype: DWRITE_CONTAINER_TYPE, filedata: *const core::ffi::c_void, filedatasize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).UnpackFontFile)(windows_core::Interface::as_raw(self), core::mem::transmute(containertype), core::mem::transmute(filedata), core::mem::transmute(filedatasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).UnpackFontFile)(windows_core::Interface::as_raw(self), containertype, filedata, filedatasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3262,14 +3262,14 @@ impl IDWriteFactory6 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.param().abi(), core::mem::transmute(faceindex), core::mem::transmute(fontsimulations), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.param().abi(), faceindex, fontsimulations, core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontResource(&self, fontfile: P0, faceindex: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.param().abi(), core::mem::transmute(faceindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.param().abi(), faceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self, includedownloadablefonts: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3277,14 +3277,14 @@ impl IDWriteFactory6 { } pub unsafe fn GetSystemFontCollection(&self, includedownloadablefonts: bool, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemFontCollection)(windows_core::Interface::as_raw(self), includedownloadablefonts.into(), core::mem::transmute(fontfamilymodel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemFontCollection)(windows_core::Interface::as_raw(self), includedownloadablefonts.into(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), core::mem::transmute(fontfamilymodel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontSetBuilder(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3297,7 +3297,7 @@ impl IDWriteFactory6 { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.param().abi(), fontcollection.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(fontsize), localename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.param().abi(), fontcollection.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), fontsize, localename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3430,7 +3430,7 @@ impl IDWriteFactory7 { } pub unsafe fn GetSystemFontCollection(&self, includedownloadablefonts: bool, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemFontCollection)(windows_core::Interface::as_raw(self), includedownloadablefonts.into(), core::mem::transmute(fontfamilymodel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemFontCollection)(windows_core::Interface::as_raw(self), includedownloadablefonts.into(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3495,7 +3495,7 @@ impl IDWriteFactory8 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn TranslateColorGlyphRun(&self, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: Option<*const DWRITE_GLYPH_RUN_DESCRIPTION>, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, paintfeaturelevel: DWRITE_PAINT_FEATURE_LEVEL, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: Option<*const DWRITE_MATRIX>, colorpaletteindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TranslateColorGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredglyphimageformats), core::mem::transmute(paintfeaturelevel), core::mem::transmute(measuringmode), core::mem::transmute(worldanddpitransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(colorpaletteindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TranslateColorGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription.unwrap_or(core::mem::zeroed())), desiredglyphimageformats, paintfeaturelevel, measuringmode, core::mem::transmute(worldanddpitransform.unwrap_or(core::mem::zeroed())), colorpaletteindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3559,7 +3559,7 @@ impl IDWriteFont { (windows_core::Interface::vtable(self).GetFaceNames)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut Option, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInformationalStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(informationalstringid), core::mem::transmute(informationalstrings), core::mem::transmute(exists)).ok() + (windows_core::Interface::vtable(self).GetInformationalStrings)(windows_core::Interface::as_raw(self), informationalstringid, core::mem::transmute(informationalstrings), core::mem::transmute(exists)).ok() } pub unsafe fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS { (windows_core::Interface::vtable(self).GetSimulations)(windows_core::Interface::as_raw(self)) @@ -3569,7 +3569,7 @@ impl IDWriteFont { } pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), core::mem::transmute(unicodevalue), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), unicodevalue, &mut result__).map(|| result__) } pub unsafe fn CreateFontFace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3827,7 +3827,7 @@ impl IDWriteFont3 { (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), core::mem::transmute(unicodevalue)) + (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), unicodevalue) } pub unsafe fn GetLocality(&self) -> DWRITE_LOCALITY { (windows_core::Interface::vtable(self).GetLocality)(windows_core::Interface::as_raw(self)) @@ -3907,7 +3907,7 @@ impl IDWriteFontCollection { } pub unsafe fn GetFontFamily(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where @@ -3997,7 +3997,7 @@ impl IDWriteFontCollection1 { } pub unsafe fn GetFontFamily(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4056,7 +4056,7 @@ windows_core::imp::interface_hierarchy!(IDWriteFontCollection2, windows_core::IU impl IDWriteFontCollection2 { pub unsafe fn GetFontFamily(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMatchingFonts(&self, familyname: P0, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result where @@ -4182,7 +4182,7 @@ impl IDWriteFontCollectionLoader { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEnumeratorFromKey)(windows_core::Interface::as_raw(self), factory.param().abi(), core::mem::transmute(collectionkey), core::mem::transmute(collectionkeysize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEnumeratorFromKey)(windows_core::Interface::as_raw(self), factory.param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4222,7 +4222,7 @@ impl IDWriteFontDownloadListener { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DownloadCompleted)(windows_core::Interface::as_raw(self), downloadqueue.param().abi(), context.param().abi(), core::mem::transmute(downloadresult)) + (windows_core::Interface::vtable(self).DownloadCompleted)(windows_core::Interface::as_raw(self), downloadqueue.param().abi(), context.param().abi(), downloadresult) } } #[repr(C)] @@ -4259,7 +4259,7 @@ impl IDWriteFontDownloadQueue { (windows_core::Interface::vtable(self).AddListener)(windows_core::Interface::as_raw(self), listener.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveListener(&self, token: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveListener)(windows_core::Interface::as_raw(self), core::mem::transmute(token)).ok() + (windows_core::Interface::vtable(self).RemoveListener)(windows_core::Interface::as_raw(self), token).ok() } pub unsafe fn IsEmpty(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsEmpty)(windows_core::Interface::as_raw(self)) @@ -4369,37 +4369,37 @@ impl IDWriteFontFace { (windows_core::Interface::vtable(self).GetGlyphCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices), core::mem::transmute(glyphcount), core::mem::transmute(glyphmetrics), issideways.into()).ok() + (windows_core::Interface::vtable(self).GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, core::mem::transmute(glyphmetrics), issideways.into()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGlyphIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(codepoints), core::mem::transmute(codepointcount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, &mut result__).map(|| result__) } pub unsafe fn TryGetFontTable(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).TryGetFontTable)(windows_core::Interface::as_raw(self), core::mem::transmute(opentypetabletag), core::mem::transmute(tabledata), core::mem::transmute(tablesize), core::mem::transmute(tablecontext), core::mem::transmute(exists)).ok() + (windows_core::Interface::vtable(self).TryGetFontTable)(windows_core::Interface::as_raw(self), opentypetabletag, core::mem::transmute(tabledata), core::mem::transmute(tablesize), core::mem::transmute(tablecontext), core::mem::transmute(exists)).ok() } pub unsafe fn ReleaseFontTable(&self, tablecontext: *const core::ffi::c_void) { - (windows_core::Interface::vtable(self).ReleaseFontTable)(windows_core::Interface::as_raw(self), core::mem::transmute(tablecontext)) + (windows_core::Interface::vtable(self).ReleaseFontTable)(windows_core::Interface::as_raw(self), tablecontext) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGlyphRunOutline(&self, emsize: f32, glyphindices: *const u16, glyphadvances: Option<*const f32>, glyphoffsets: Option<*const DWRITE_GLYPH_OFFSET>, glyphcount: u32, issideways: bool, isrighttoleft: bool, geometrysink: P7) -> windows_core::Result<()> where P7: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlyphRunOutline)(windows_core::Interface::as_raw(self), core::mem::transmute(emsize), core::mem::transmute(glyphindices), core::mem::transmute(glyphadvances.unwrap_or(core::mem::zeroed())), core::mem::transmute(glyphoffsets.unwrap_or(core::mem::zeroed())), core::mem::transmute(glyphcount), issideways.into(), isrighttoleft.into(), geometrysink.param().abi()).ok() + (windows_core::Interface::vtable(self).GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(core::mem::zeroed())), core::mem::transmute(glyphoffsets.unwrap_or(core::mem::zeroed())), glyphcount, issideways.into(), isrighttoleft.into(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(emsize), core::mem::transmute(pixelsperdip), core::mem::transmute(measuringmode), renderingparams.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetGdiCompatibleMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, fontfacemetrics: *mut DWRITE_FONT_METRICS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(emsize), core::mem::transmute(pixelsperdip), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(fontfacemetrics)).ok() + (windows_core::Interface::vtable(self).GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(fontfacemetrics)).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: bool, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(emsize), core::mem::transmute(pixelsperdip), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), core::mem::transmute(glyphindices), core::mem::transmute(glyphcount), core::mem::transmute(glyphmetrics), issideways.into()).ok() + (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), glyphindices, glyphcount, core::mem::transmute(glyphmetrics), issideways.into()).ok() } } #[repr(C)] @@ -4559,7 +4559,7 @@ impl IDWriteFontFace1 { (windows_core::Interface::vtable(self).GetMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(fontmetrics)) } pub unsafe fn GetGdiCompatibleMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, fontmetrics: *mut DWRITE_FONT_METRICS1) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(emsize), core::mem::transmute(pixelsperdip), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(fontmetrics)).ok() + (windows_core::Interface::vtable(self).GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), core::mem::transmute(fontmetrics)).ok() } pub unsafe fn GetCaretMetrics(&self) -> DWRITE_CARET_METRICS { let mut result__ = core::mem::zeroed(); @@ -4573,26 +4573,26 @@ impl IDWriteFontFace1 { (windows_core::Interface::vtable(self).IsMonospacedFont)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphcount), core::mem::transmute(glyphindices), core::mem::transmute(glyphadvances), issideways.into()).ok() + (windows_core::Interface::vtable(self).GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, core::mem::transmute(glyphadvances), issideways.into()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: bool, issideways: bool, glyphcount: u32, glyphindices: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), core::mem::transmute(emsize), core::mem::transmute(pixelsperdip), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), issideways.into(), core::mem::transmute(glyphcount), core::mem::transmute(glyphindices), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), issideways.into(), glyphcount, glyphindices, &mut result__).map(|| result__) } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphcount), core::mem::transmute(glyphindices), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, &mut result__).map(|| result__) } pub unsafe fn HasKerningPairs(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).HasKerningPairs)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: bool, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(fontemsize), core::mem::transmute(dpix), core::mem::transmute(dpiy), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), issideways.into(), core::mem::transmute(outlinethreshold), core::mem::transmute(measuringmode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), issideways.into(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphcount), core::mem::transmute(nominalglyphindices), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, &mut result__).map(|| result__) } pub unsafe fn HasVerticalGlyphVariants(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).HasVerticalGlyphVariants)(windows_core::Interface::as_raw(self)) @@ -4749,13 +4749,13 @@ impl IDWriteFontFace2 { (windows_core::Interface::vtable(self).GetPaletteEntryCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetPaletteEntries(&self, colorpaletteindex: u32, firstentryindex: u32, paletteentries: &mut [DWRITE_COLOR_F]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPaletteEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(colorpaletteindex), core::mem::transmute(firstentryindex), paletteentries.len().try_into().unwrap(), core::mem::transmute(paletteentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPaletteEntries)(windows_core::Interface::as_raw(self), colorpaletteindex, firstentryindex, paletteentries.len().try_into().unwrap(), core::mem::transmute(paletteentries.as_ptr())).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: bool, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P7, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where P7: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(fontemsize), core::mem::transmute(dpix), core::mem::transmute(dpiy), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), issideways.into(), core::mem::transmute(outlinethreshold), core::mem::transmute(measuringmode), renderingparams.param().abi(), core::mem::transmute(renderingmode), core::mem::transmute(gridfitmode)).ok() + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), issideways.into(), outlinethreshold, measuringmode, renderingparams.param().abi(), core::mem::transmute(renderingmode), core::mem::transmute(gridfitmode)).ok() } } #[repr(C)] @@ -4853,22 +4853,22 @@ impl IDWriteFontFace3 { (windows_core::Interface::vtable(self).GetFaceNames)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut Option, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInformationalStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(informationalstringid), core::mem::transmute(informationalstrings), core::mem::transmute(exists)).ok() + (windows_core::Interface::vtable(self).GetInformationalStrings)(windows_core::Interface::as_raw(self), informationalstringid, core::mem::transmute(informationalstrings), core::mem::transmute(exists)).ok() } pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), core::mem::transmute(unicodevalue)) + (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), unicodevalue) } pub unsafe fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: bool, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P7, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where P7: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(fontemsize), core::mem::transmute(dpix), core::mem::transmute(dpiy), core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), issideways.into(), core::mem::transmute(outlinethreshold), core::mem::transmute(measuringmode), renderingparams.param().abi(), core::mem::transmute(renderingmode), core::mem::transmute(gridfitmode)).ok() + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), issideways.into(), outlinethreshold, measuringmode, renderingparams.param().abi(), core::mem::transmute(renderingmode), core::mem::transmute(gridfitmode)).ok() } pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsCharacterLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(unicodevalue)) + (windows_core::Interface::vtable(self).IsCharacterLocal)(windows_core::Interface::as_raw(self), unicodevalue) } pub unsafe fn IsGlyphLocal(&self, glyphid: u16) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsGlyphLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphid)) + (windows_core::Interface::vtable(self).IsGlyphLocal)(windows_core::Interface::as_raw(self), glyphid) } pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5042,14 +5042,14 @@ windows_core::imp::interface_hierarchy!(IDWriteFontFace4, windows_core::IUnknown impl IDWriteFontFace4 { pub unsafe fn GetGlyphImageFormats(&self, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGlyphImageFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphid), core::mem::transmute(pixelsperemfirst), core::mem::transmute(pixelsperemlast), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGlyphImageFormats)(windows_core::Interface::as_raw(self), glyphid, pixelsperemfirst, pixelsperemlast, &mut result__).map(|| result__) } pub unsafe fn GetGlyphImageFormats2(&self) -> DWRITE_GLYPH_IMAGE_FORMATS { (windows_core::Interface::vtable(self).GetGlyphImageFormats2)(windows_core::Interface::as_raw(self)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGlyphImageData(&self, glyphid: u16, pixelsperem: u32, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, glyphdata: *mut DWRITE_GLYPH_IMAGE_DATA, glyphdatacontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGlyphImageData)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphid), core::mem::transmute(pixelsperem), core::mem::transmute(glyphimageformat), core::mem::transmute(glyphdata), core::mem::transmute(glyphdatacontext)).ok() + (windows_core::Interface::vtable(self).GetGlyphImageData)(windows_core::Interface::as_raw(self), glyphid, pixelsperem, glyphimageformat, core::mem::transmute(glyphdata), core::mem::transmute(glyphdatacontext)).ok() } pub unsafe fn ReleaseGlyphImageData(&self, glyphdatacontext: *mut core::ffi::c_void) { (windows_core::Interface::vtable(self).ReleaseGlyphImageData)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphdatacontext)) @@ -5221,11 +5221,11 @@ windows_core::imp::interface_hierarchy!(IDWriteFontFace6, windows_core::IUnknown impl IDWriteFontFace6 { pub unsafe fn GetFamilyNames(&self, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFamilyNames)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfamilymodel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFamilyNames)(windows_core::Interface::as_raw(self), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFaceNames(&self, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFaceNames)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfamilymodel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFaceNames)(windows_core::Interface::as_raw(self), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5288,11 +5288,11 @@ impl core::ops::Deref for IDWriteFontFace7 { windows_core::imp::interface_hierarchy!(IDWriteFontFace7, windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3, IDWriteFontFace4, IDWriteFontFace5, IDWriteFontFace6); impl IDWriteFontFace7 { pub unsafe fn GetPaintFeatureLevel(&self, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS) -> DWRITE_PAINT_FEATURE_LEVEL { - (windows_core::Interface::vtable(self).GetPaintFeatureLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphimageformat)) + (windows_core::Interface::vtable(self).GetPaintFeatureLevel)(windows_core::Interface::as_raw(self), glyphimageformat) } pub unsafe fn CreatePaintReader(&self, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, paintfeaturelevel: DWRITE_PAINT_FEATURE_LEVEL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePaintReader)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphimageformat), core::mem::transmute(paintfeaturelevel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePaintReader)(windows_core::Interface::as_raw(self), glyphimageformat, paintfeaturelevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5348,7 +5348,7 @@ impl IDWriteFontFaceReference { } pub unsafe fn CreateFontFaceWithSimulations(&self, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceWithSimulations)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfacesimulationflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceWithSimulations)(windows_core::Interface::as_raw(self), fontfacesimulationflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Equals(&self, fontfacereference: P0) -> super::super::Foundation::BOOL where @@ -5389,7 +5389,7 @@ impl IDWriteFontFaceReference { (windows_core::Interface::vtable(self).EnqueueGlyphDownloadRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap()).ok() } pub unsafe fn EnqueueFileFragmentDownloadRequest(&self, fileoffset: u64, fragmentsize: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnqueueFileFragmentDownloadRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(fileoffset), core::mem::transmute(fragmentsize)).ok() + (windows_core::Interface::vtable(self).EnqueueFileFragmentDownloadRequest)(windows_core::Interface::as_raw(self), fileoffset, fragmentsize).ok() } } #[repr(C)] @@ -5608,7 +5608,7 @@ impl IDWriteFontFallback { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).MapCharacters)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), basefontcollection.param().abi(), basefamilyname.param().abi(), core::mem::transmute(baseweight), core::mem::transmute(basestyle), core::mem::transmute(basestretch), core::mem::transmute(mappedlength), core::mem::transmute(mappedfont), core::mem::transmute(scale)).ok() + (windows_core::Interface::vtable(self).MapCharacters)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, basefontcollection.param().abi(), basefamilyname.param().abi(), baseweight, basestyle, basestretch, core::mem::transmute(mappedlength), core::mem::transmute(mappedfont), core::mem::transmute(scale)).ok() } } #[repr(C)] @@ -5649,7 +5649,7 @@ impl IDWriteFontFallback1 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).MapCharacters)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), basefontcollection.param().abi(), basefamilyname.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(mappedlength), core::mem::transmute(scale), core::mem::transmute(mappedfontface)).ok() + (windows_core::Interface::vtable(self).MapCharacters)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, basefontcollection.param().abi(), basefamilyname.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(mappedlength), core::mem::transmute(scale), core::mem::transmute(mappedfontface)).ok() } } #[repr(C)] @@ -5684,7 +5684,7 @@ impl IDWriteFontFallbackBuilder { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(ranges.as_ptr()), ranges.len().try_into().unwrap(), core::mem::transmute(targetfamilynames.as_ptr()), targetfamilynames.len().try_into().unwrap(), fontcollection.param().abi(), localename.param().abi(), basefamilyname.param().abi(), core::mem::transmute(scale)).ok() + (windows_core::Interface::vtable(self).AddMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(ranges.as_ptr()), ranges.len().try_into().unwrap(), core::mem::transmute(targetfamilynames.as_ptr()), targetfamilynames.len().try_into().unwrap(), fontcollection.param().abi(), localename.param().abi(), basefamilyname.param().abi(), scale).ok() } pub unsafe fn AddMappings(&self, fontfallback: P0) -> windows_core::Result<()> where @@ -5758,11 +5758,11 @@ impl IDWriteFontFamily { } pub unsafe fn GetFirstMatchingFont(&self, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFirstMatchingFont)(windows_core::Interface::as_raw(self), core::mem::transmute(weight), core::mem::transmute(stretch), core::mem::transmute(style), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFirstMatchingFont)(windows_core::Interface::as_raw(self), weight, stretch, style, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMatchingFonts(&self, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), core::mem::transmute(weight), core::mem::transmute(stretch), core::mem::transmute(style), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), weight, stretch, style, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5833,15 +5833,15 @@ impl core::ops::Deref for IDWriteFontFamily1 { windows_core::imp::interface_hierarchy!(IDWriteFontFamily1, windows_core::IUnknown, IDWriteFontList, IDWriteFontFamily); impl IDWriteFontFamily1 { pub unsafe fn GetFontLocality(&self, listindex: u32) -> DWRITE_LOCALITY { - (windows_core::Interface::vtable(self).GetFontLocality)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex)) + (windows_core::Interface::vtable(self).GetFontLocality)(windows_core::Interface::as_raw(self), listindex) } pub unsafe fn GetFont(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFont)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFont)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6081,7 +6081,7 @@ windows_core::imp::interface_hierarchy!(IDWriteFontFileLoader, windows_core::IUn impl IDWriteFontFileLoader { pub unsafe fn CreateStreamFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStreamFromKey)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStreamFromKey)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6117,7 +6117,7 @@ windows_core::imp::define_interface!(IDWriteFontFileStream, IDWriteFontFileStrea windows_core::imp::interface_hierarchy!(IDWriteFontFileStream, windows_core::IUnknown); impl IDWriteFontFileStream { pub unsafe fn ReadFileFragment(&self, fragmentstart: *mut *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, fragmentcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadFileFragment)(windows_core::Interface::as_raw(self), core::mem::transmute(fragmentstart), core::mem::transmute(fileoffset), core::mem::transmute(fragmentsize), core::mem::transmute(fragmentcontext)).ok() + (windows_core::Interface::vtable(self).ReadFileFragment)(windows_core::Interface::as_raw(self), core::mem::transmute(fragmentstart), fileoffset, fragmentsize, core::mem::transmute(fragmentcontext)).ok() } pub unsafe fn ReleaseFileFragment(&self, fragmentcontext: *mut core::ffi::c_void) { (windows_core::Interface::vtable(self).ReleaseFileFragment)(windows_core::Interface::as_raw(self), core::mem::transmute(fragmentcontext)) @@ -6202,7 +6202,7 @@ impl IDWriteFontList { } pub unsafe fn GetFont(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFont)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFont)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6267,15 +6267,15 @@ impl core::ops::Deref for IDWriteFontList1 { windows_core::imp::interface_hierarchy!(IDWriteFontList1, windows_core::IUnknown, IDWriteFontList); impl IDWriteFontList1 { pub unsafe fn GetFontLocality(&self, listindex: u32) -> DWRITE_LOCALITY { - (windows_core::Interface::vtable(self).GetFontLocality)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex)) + (windows_core::Interface::vtable(self).GetFontLocality)(windows_core::Interface::as_raw(self), listindex) } pub unsafe fn GetFont(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFont)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFont)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6393,28 +6393,28 @@ impl IDWriteFontResource { (windows_core::Interface::vtable(self).GetFontAxisRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap()).ok() } pub unsafe fn GetFontAxisAttributes(&self, axisindex: u32) -> DWRITE_FONT_AXIS_ATTRIBUTES { - (windows_core::Interface::vtable(self).GetFontAxisAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(axisindex)) + (windows_core::Interface::vtable(self).GetFontAxisAttributes)(windows_core::Interface::as_raw(self), axisindex) } pub unsafe fn GetAxisNames(&self, axisindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAxisNames)(windows_core::Interface::as_raw(self), core::mem::transmute(axisindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAxisNames)(windows_core::Interface::as_raw(self), axisindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAxisValueNameCount(&self, axisindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetAxisValueNameCount)(windows_core::Interface::as_raw(self), core::mem::transmute(axisindex)) + (windows_core::Interface::vtable(self).GetAxisValueNameCount)(windows_core::Interface::as_raw(self), axisindex) } pub unsafe fn GetAxisValueNames(&self, axisindex: u32, axisvalueindex: u32, fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE, names: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAxisValueNames)(windows_core::Interface::as_raw(self), core::mem::transmute(axisindex), core::mem::transmute(axisvalueindex), core::mem::transmute(fontaxisrange), core::mem::transmute(names)).ok() + (windows_core::Interface::vtable(self).GetAxisValueNames)(windows_core::Interface::as_raw(self), axisindex, axisvalueindex, core::mem::transmute(fontaxisrange), core::mem::transmute(names)).ok() } pub unsafe fn HasVariations(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).HasVariations)(windows_core::Interface::as_raw(self)) } pub unsafe fn CreateFontFace(&self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), core::mem::transmute(fontsimulations), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), fontsimulations, core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontFaceReference(&self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), core::mem::transmute(fontsimulations), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontsimulations, core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6552,7 +6552,7 @@ impl IDWriteFontSet { } pub unsafe fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where @@ -6568,28 +6568,28 @@ impl IDWriteFontSet { } pub unsafe fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyValues)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyValues)(windows_core::Interface::as_raw(self), propertyid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyValues2)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), preferredlocalenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyValues3(&self, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut super::super::Foundation::BOOL, values: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyValues3)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), core::mem::transmute(propertyid), core::mem::transmute(exists), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).GetPropertyValues3)(windows_core::Interface::as_raw(self), listindex, propertyid, core::mem::transmute(exists), core::mem::transmute(values)).ok() } pub unsafe fn GetPropertyOccurrenceCount(&self, property: *const DWRITE_FONT_PROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyOccurrenceCount)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPropertyOccurrenceCount)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| result__) } pub unsafe fn GetMatchingFonts(&self, familyname: P0, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.param().abi(), core::mem::transmute(fontweight), core::mem::transmute(fontstretch), core::mem::transmute(fontstyle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.param().abi(), fontweight, fontstretch, fontstyle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMatchingFonts2(&self, properties: &[DWRITE_FONT_PROPERTY]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6757,25 +6757,25 @@ impl IDWriteFontSet1 { (windows_core::Interface::vtable(self).GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.into(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), core::mem::transmute(actualindexcount)).ok() } pub unsafe fn GetFontAxisRanges(&self, listindex: u32, fontaxisranges: &mut [DWRITE_FONT_AXIS_RANGE], actualfontaxisrangecount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontAxisRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), core::mem::transmute(actualfontaxisrangecount)).ok() + (windows_core::Interface::vtable(self).GetFontAxisRanges)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), core::mem::transmute(actualfontaxisrangecount)).ok() } pub unsafe fn GetFontAxisRanges2(&self, fontaxisranges: &mut [DWRITE_FONT_AXIS_RANGE], actualfontaxisrangecount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFontAxisRanges2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), core::mem::transmute(actualfontaxisrangecount)).ok() } pub unsafe fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontResource(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontFace(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontLocality(&self, listindex: u32) -> DWRITE_LOCALITY { - (windows_core::Interface::vtable(self).GetFontLocality)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex)) + (windows_core::Interface::vtable(self).GetFontLocality)(windows_core::Interface::as_raw(self), listindex) } } #[repr(C)] @@ -6982,13 +6982,13 @@ impl core::ops::Deref for IDWriteFontSet3 { windows_core::imp::interface_hierarchy!(IDWriteFontSet3, windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1, IDWriteFontSet2); impl IDWriteFontSet3 { pub unsafe fn GetFontSourceType(&self, fontindex: u32) -> DWRITE_FONT_SOURCE_TYPE { - (windows_core::Interface::vtable(self).GetFontSourceType)(windows_core::Interface::as_raw(self), core::mem::transmute(fontindex)) + (windows_core::Interface::vtable(self).GetFontSourceType)(windows_core::Interface::as_raw(self), fontindex) } pub unsafe fn GetFontSourceNameLength(&self, listindex: u32) -> u32 { - (windows_core::Interface::vtable(self).GetFontSourceNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex)) + (windows_core::Interface::vtable(self).GetFontSourceNameLength)(windows_core::Interface::as_raw(self), listindex) } pub unsafe fn GetFontSourceName(&self, listindex: u32, stringbuffer: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontSourceName)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFontSourceName)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -7041,14 +7041,14 @@ impl core::ops::Deref for IDWriteFontSet4 { windows_core::imp::interface_hierarchy!(IDWriteFontSet4, windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1, IDWriteFontSet2, IDWriteFontSet3); impl IDWriteFontSet4 { pub unsafe fn ConvertWeightStretchStyleToFontAxisValues(&self, inputaxisvalues: Option<&[DWRITE_FONT_AXIS_VALUE]>, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, fontsize: f32, outputaxisvalues: &mut [DWRITE_FONT_AXIS_VALUE; 5]) -> u32 { - (windows_core::Interface::vtable(self).ConvertWeightStretchStyleToFontAxisValues)(windows_core::Interface::as_raw(self), core::mem::transmute(inputaxisvalues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), inputaxisvalues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fontweight), core::mem::transmute(fontstretch), core::mem::transmute(fontstyle), core::mem::transmute(fontsize), core::mem::transmute(outputaxisvalues.as_ptr())) + (windows_core::Interface::vtable(self).ConvertWeightStretchStyleToFontAxisValues)(windows_core::Interface::as_raw(self), core::mem::transmute(inputaxisvalues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), inputaxisvalues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), fontweight, fontstretch, fontstyle, fontsize, core::mem::transmute(outputaxisvalues.as_ptr())) } pub unsafe fn GetMatchingFonts(&self, familyname: P0, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], allowedsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(allowedsimulations), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), allowedsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7221,7 +7221,7 @@ impl IDWriteFontSetBuilder2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFont)(windows_core::Interface::as_raw(self), fontfile.param().abi(), core::mem::transmute(fontfaceindex), core::mem::transmute(fontsimulations), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddFont)(windows_core::Interface::as_raw(self), fontfile.param().abi(), fontfaceindex, fontsimulations, core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() } pub unsafe fn AddFontFile(&self, filepath: P0) -> windows_core::Result<()> where @@ -7269,7 +7269,7 @@ impl IDWriteGdiInterop { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateFontFromLOGFONT(&self, logfont: *const super::Gdi::LOGFONTW) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFromLOGFONT)(windows_core::Interface::as_raw(self), core::mem::transmute(logfont), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFromLOGFONT)(windows_core::Interface::as_raw(self), logfont, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ConvertFontToLOGFONT(&self, font: P0, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> @@ -7288,12 +7288,12 @@ impl IDWriteGdiInterop { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateFontFaceFromHdc(&self, hdc: super::Gdi::HDC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceFromHdc)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceFromHdc)(windows_core::Interface::as_raw(self), hdc, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapRenderTarget(&self, hdc: Option, width: u32, height: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(width), core::mem::transmute(height), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7403,7 +7403,7 @@ impl IDWriteGdiInterop1 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFromLOGFONT)(windows_core::Interface::as_raw(self), core::mem::transmute(logfont), fontcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFromLOGFONT)(windows_core::Interface::as_raw(self), logfont, fontcollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetFontSignature(&self, fontface: P0, fontsignature: *mut super::super::Globalization::FONTSIGNATURE) -> windows_core::Result<()> @@ -7425,7 +7425,7 @@ impl IDWriteGdiInterop1 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFontsByLOGFONT)(windows_core::Interface::as_raw(self), core::mem::transmute(logfont), fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMatchingFontsByLOGFONT)(windows_core::Interface::as_raw(self), logfont, fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7509,10 +7509,10 @@ windows_core::imp::interface_hierarchy!(IDWriteGlyphRunAnalysis, windows_core::I impl IDWriteGlyphRunAnalysis { pub unsafe fn GetAlphaTextureBounds(&self, texturetype: DWRITE_TEXTURE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlphaTextureBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(texturetype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAlphaTextureBounds)(windows_core::Interface::as_raw(self), texturetype, &mut result__).map(|| result__) } pub unsafe fn CreateAlphaTexture(&self, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *const super::super::Foundation::RECT, alphavalues: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateAlphaTexture)(windows_core::Interface::as_raw(self), core::mem::transmute(texturetype), core::mem::transmute(texturebounds), core::mem::transmute(alphavalues.as_ptr()), alphavalues.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).CreateAlphaTexture)(windows_core::Interface::as_raw(self), texturetype, texturebounds, core::mem::transmute(alphavalues.as_ptr()), alphavalues.len().try_into().unwrap()).ok() } pub unsafe fn GetAlphaBlendParams(&self, renderingparams: P0, blendgamma: *mut f32, blendenhancedcontrast: *mut f32, blendcleartypelevel: *mut f32) -> windows_core::Result<()> where @@ -7582,7 +7582,7 @@ impl IDWriteInMemoryFontFileLoader { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInMemoryFontFileReference)(windows_core::Interface::as_raw(self), factory.param().abi(), core::mem::transmute(fontdata), core::mem::transmute(fontdatasize), ownerobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInMemoryFontFileReference)(windows_core::Interface::as_raw(self), factory.param().abi(), fontdata, fontdatasize, ownerobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFileCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetFileCount)(windows_core::Interface::as_raw(self)) @@ -7635,7 +7635,7 @@ impl IDWriteInlineObject { P1: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), renderer.param().abi(), core::mem::transmute(originx), core::mem::transmute(originy), issideways.into(), isrighttoleft.into(), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), renderer.param().abi(), originx, originy, issideways.into(), isrighttoleft.into(), clientdrawingeffect.param().abi()).ok() } pub unsafe fn GetMetrics(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7719,14 +7719,14 @@ windows_core::imp::interface_hierarchy!(IDWriteLocalFontFileLoader, windows_core impl IDWriteLocalFontFileLoader { pub unsafe fn GetFilePathLengthFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilePathLengthFromKey)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFilePathLengthFromKey)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).map(|| result__) } pub unsafe fn GetFilePathFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, filepath: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFilePathFromKey)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFilePathFromKey)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } pub unsafe fn GetLastWriteTimeFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastWriteTimeFromKey)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLastWriteTimeFromKey)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).map(|| result__) } } #[repr(C)] @@ -7795,17 +7795,17 @@ impl IDWriteLocalizedStrings { } pub unsafe fn GetLocaleNameLength(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLocaleNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLocaleNameLength)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetLocaleName(&self, index: u32, localename: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap()).ok() } pub unsafe fn GetStringLength(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetString(&self, index: u32, stringbuffer: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), index, core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -7904,34 +7904,34 @@ windows_core::imp::interface_hierarchy!(IDWritePaintReader, windows_core::IUnkno impl IDWritePaintReader { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetCurrentGlyph(&self, glyphindex: u32, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32, clipbox: *mut super::Direct2D::Common::D2D_RECT_F, glyphattributes: Option<*mut DWRITE_PAINT_ATTRIBUTES>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentGlyph)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindex), core::mem::transmute(paintelement), core::mem::transmute(structsize), core::mem::transmute(clipbox), core::mem::transmute(glyphattributes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetCurrentGlyph)(windows_core::Interface::as_raw(self), glyphindex, core::mem::transmute(paintelement), structsize, core::mem::transmute(clipbox), core::mem::transmute(glyphattributes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextColor(&self, textcolor: *const DWRITE_COLOR_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextColor)(windows_core::Interface::as_raw(self), core::mem::transmute(textcolor)).ok() + (windows_core::Interface::vtable(self).SetTextColor)(windows_core::Interface::as_raw(self), textcolor).ok() } pub unsafe fn SetColorPaletteIndex(&self, colorpaletteindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorPaletteIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(colorpaletteindex)).ok() + (windows_core::Interface::vtable(self).SetColorPaletteIndex)(windows_core::Interface::as_raw(self), colorpaletteindex).ok() } pub unsafe fn SetCustomColorPalette(&self, paletteentries: &[DWRITE_COLOR_F]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetCustomColorPalette)(windows_core::Interface::as_raw(self), core::mem::transmute(paletteentries.as_ptr()), paletteentries.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn MoveToFirstChild(&self, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveToFirstChild)(windows_core::Interface::as_raw(self), core::mem::transmute(paintelement), core::mem::transmute(structsize)).ok() + (windows_core::Interface::vtable(self).MoveToFirstChild)(windows_core::Interface::as_raw(self), core::mem::transmute(paintelement), structsize).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn MoveToNextSibling(&self, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveToNextSibling)(windows_core::Interface::as_raw(self), core::mem::transmute(paintelement), core::mem::transmute(structsize)).ok() + (windows_core::Interface::vtable(self).MoveToNextSibling)(windows_core::Interface::as_raw(self), core::mem::transmute(paintelement), structsize).ok() } pub unsafe fn MoveToParent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MoveToParent)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientStops(&self, firstgradientstopindex: u32, gradientstops: &mut [super::Direct2D::Common::D2D1_GRADIENT_STOP]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGradientStops)(windows_core::Interface::as_raw(self), core::mem::transmute(firstgradientstopindex), gradientstops.len().try_into().unwrap(), core::mem::transmute(gradientstops.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetGradientStops)(windows_core::Interface::as_raw(self), firstgradientstopindex, gradientstops.len().try_into().unwrap(), core::mem::transmute(gradientstops.as_ptr())).ok() } pub unsafe fn GetGradientStopColors(&self, firstgradientstopindex: u32, gradientstopcolors: &mut [DWRITE_PAINT_COLOR]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGradientStopColors)(windows_core::Interface::as_raw(self), core::mem::transmute(firstgradientstopindex), gradientstopcolors.len().try_into().unwrap(), core::mem::transmute(gradientstopcolors.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetGradientStopColors)(windows_core::Interface::as_raw(self), firstgradientstopindex, gradientstopcolors.len().try_into().unwrap(), core::mem::transmute(gradientstopcolors.as_ptr())).ok() } } #[repr(C)] @@ -8111,11 +8111,11 @@ windows_core::imp::interface_hierarchy!(IDWriteRemoteFontFileLoader, windows_cor impl IDWriteRemoteFontFileLoader { pub unsafe fn CreateRemoteStreamFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRemoteStreamFromKey)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRemoteStreamFromKey)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLocalityFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLocalityFromKey)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfilereferencekey), core::mem::transmute(fontfilereferencekeysize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLocalityFromKey)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).map(|| result__) } pub unsafe fn CreateFontFileReferenceFromUrl(&self, factory: P0, baseurl: P1, fontfileurl: P2) -> windows_core::Result where @@ -8199,14 +8199,14 @@ impl IDWriteRemoteFontFileStream { (windows_core::Interface::vtable(self).GetLocalFileSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetFileFragmentLocality(&self, fileoffset: u64, fragmentsize: u64, islocal: *mut super::super::Foundation::BOOL, partialsize: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFileFragmentLocality)(windows_core::Interface::as_raw(self), core::mem::transmute(fileoffset), core::mem::transmute(fragmentsize), core::mem::transmute(islocal), core::mem::transmute(partialsize)).ok() + (windows_core::Interface::vtable(self).GetFileFragmentLocality)(windows_core::Interface::as_raw(self), fileoffset, fragmentsize, core::mem::transmute(islocal), core::mem::transmute(partialsize)).ok() } pub unsafe fn GetLocality(&self) -> DWRITE_LOCALITY { (windows_core::Interface::vtable(self).GetLocality)(windows_core::Interface::as_raw(self)) } pub unsafe fn BeginDownload(&self, downloadoperationid: *const windows_core::GUID, filefragments: &[DWRITE_FILE_FRAGMENT]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDownload)(windows_core::Interface::as_raw(self), core::mem::transmute(downloadoperationid), core::mem::transmute(filefragments.as_ptr()), filefragments.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginDownload)(windows_core::Interface::as_raw(self), downloadoperationid, core::mem::transmute(filefragments.as_ptr()), filefragments.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8457,17 +8457,17 @@ impl IDWriteStringList { } pub unsafe fn GetLocaleNameLength(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLocaleNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLocaleNameLength)(windows_core::Interface::as_raw(self), listindex, &mut result__).map(|| result__) } pub unsafe fn GetLocaleName(&self, listindex: u32, localename: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap()).ok() } pub unsafe fn GetStringLength(&self, listindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), listindex, &mut result__).map(|| result__) } pub unsafe fn GetString(&self, listindex: u32, stringbuffer: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(listindex), core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -8540,19 +8540,19 @@ windows_core::imp::define_interface!(IDWriteTextAnalysisSink, IDWriteTextAnalysi windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSink, windows_core::IUnknown); impl IDWriteTextAnalysisSink { pub unsafe fn SetScriptAnalysis(&self, textposition: u32, textlength: u32, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScriptAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(scriptanalysis)).ok() + (windows_core::Interface::vtable(self).SetScriptAnalysis)(windows_core::Interface::as_raw(self), textposition, textlength, scriptanalysis).ok() } pub unsafe fn SetLineBreakpoints(&self, textposition: u32, linebreakpoints: &[DWRITE_LINE_BREAKPOINT]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineBreakpoints)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), linebreakpoints.len().try_into().unwrap(), core::mem::transmute(linebreakpoints.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetLineBreakpoints)(windows_core::Interface::as_raw(self), textposition, linebreakpoints.len().try_into().unwrap(), core::mem::transmute(linebreakpoints.as_ptr())).ok() } pub unsafe fn SetBidiLevel(&self, textposition: u32, textlength: u32, explicitlevel: u8, resolvedlevel: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBidiLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(explicitlevel), core::mem::transmute(resolvedlevel)).ok() + (windows_core::Interface::vtable(self).SetBidiLevel)(windows_core::Interface::as_raw(self), textposition, textlength, explicitlevel, resolvedlevel).ok() } pub unsafe fn SetNumberSubstitution(&self, textposition: u32, textlength: u32, numbersubstitution: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNumberSubstitution)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), numbersubstitution.param().abi()).ok() + (windows_core::Interface::vtable(self).SetNumberSubstitution)(windows_core::Interface::as_raw(self), textposition, textlength, numbersubstitution.param().abi()).ok() } } #[repr(C)] @@ -8612,7 +8612,7 @@ impl core::ops::Deref for IDWriteTextAnalysisSink1 { windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSink1, windows_core::IUnknown, IDWriteTextAnalysisSink); impl IDWriteTextAnalysisSink1 { pub unsafe fn SetGlyphOrientation(&self, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: bool, isrighttoleft: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGlyphOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(glyphorientationangle), core::mem::transmute(adjustedbidilevel), issideways.into(), isrighttoleft.into()).ok() + (windows_core::Interface::vtable(self).SetGlyphOrientation)(windows_core::Interface::as_raw(self), textposition, textlength, glyphorientationangle, adjustedbidilevel, issideways.into(), isrighttoleft.into()).ok() } } #[repr(C)] @@ -8642,19 +8642,19 @@ windows_core::imp::define_interface!(IDWriteTextAnalysisSource, IDWriteTextAnaly windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSource, windows_core::IUnknown); impl IDWriteTextAnalysisSource { pub unsafe fn GetTextAtPosition(&self, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textstring), core::mem::transmute(textlength)).ok() + (windows_core::Interface::vtable(self).GetTextAtPosition)(windows_core::Interface::as_raw(self), textposition, core::mem::transmute(textstring), core::mem::transmute(textlength)).ok() } pub unsafe fn GetTextBeforePosition(&self, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextBeforePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textstring), core::mem::transmute(textlength)).ok() + (windows_core::Interface::vtable(self).GetTextBeforePosition)(windows_core::Interface::as_raw(self), textposition, core::mem::transmute(textstring), core::mem::transmute(textlength)).ok() } pub unsafe fn GetParagraphReadingDirection(&self) -> DWRITE_READING_DIRECTION { (windows_core::Interface::vtable(self).GetParagraphReadingDirection)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetLocaleName(&self, textposition: u32, textlength: *mut u32, localename: *mut *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(localename)).ok() + (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), textposition, core::mem::transmute(textlength), core::mem::transmute(localename)).ok() } pub unsafe fn GetNumberSubstitution(&self, textposition: u32, textlength: *mut u32, numbersubstitution: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNumberSubstitution)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(numbersubstitution)).ok() + (windows_core::Interface::vtable(self).GetNumberSubstitution)(windows_core::Interface::as_raw(self), textposition, core::mem::transmute(textlength), core::mem::transmute(numbersubstitution)).ok() } } #[repr(C)] @@ -8721,7 +8721,7 @@ impl core::ops::Deref for IDWriteTextAnalysisSource1 { windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSource1, windows_core::IUnknown, IDWriteTextAnalysisSource); impl IDWriteTextAnalysisSource1 { pub unsafe fn GetVerticalGlyphOrientation(&self, textposition: u32, textlength: *mut u32, glyphorientation: *mut DWRITE_VERTICAL_GLYPH_ORIENTATION, bidilevel: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(glyphorientation), core::mem::transmute(bidilevel)).ok() + (windows_core::Interface::vtable(self).GetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), textposition, core::mem::transmute(textlength), core::mem::transmute(glyphorientation), core::mem::transmute(bidilevel)).ok() } } #[repr(C)] @@ -8755,28 +8755,28 @@ impl IDWriteTextAnalyzer { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeScript)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), analysissink.param().abi()).ok() + (windows_core::Interface::vtable(self).AnalyzeScript)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, analysissink.param().abi()).ok() } pub unsafe fn AnalyzeBidi(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeBidi)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), analysissink.param().abi()).ok() + (windows_core::Interface::vtable(self).AnalyzeBidi)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, analysissink.param().abi()).ok() } pub unsafe fn AnalyzeNumberSubstitution(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeNumberSubstitution)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), analysissink.param().abi()).ok() + (windows_core::Interface::vtable(self).AnalyzeNumberSubstitution)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, analysissink.param().abi()).ok() } pub unsafe fn AnalyzeLineBreakpoints(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeLineBreakpoints)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), analysissink.param().abi()).ok() + (windows_core::Interface::vtable(self).AnalyzeLineBreakpoints)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, analysissink.param().abi()).ok() } pub unsafe fn GetGlyphs(&self, textstring: P0, textlength: u32, fontface: P2, issideways: bool, isrighttoleft: bool, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P6, numbersubstitution: P7, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*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::Result<()> where @@ -8788,17 +8788,17 @@ impl IDWriteTextAnalyzer { (windows_core::Interface::vtable(self).GetGlyphs)( windows_core::Interface::as_raw(self), textstring.param().abi(), - core::mem::transmute(textlength), + textlength, fontface.param().abi(), issideways.into(), isrighttoleft.into(), - core::mem::transmute(scriptanalysis), + scriptanalysis, localename.param().abi(), numbersubstitution.param().abi(), core::mem::transmute(features.unwrap_or(core::mem::zeroed())), core::mem::transmute(featurerangelengths.unwrap_or(core::mem::zeroed())), - core::mem::transmute(featureranges), - core::mem::transmute(maxglyphcount), + featureranges, + maxglyphcount, core::mem::transmute(clustermap), core::mem::transmute(textprops), core::mem::transmute(glyphindices), @@ -8816,21 +8816,21 @@ impl IDWriteTextAnalyzer { (windows_core::Interface::vtable(self).GetGlyphPlacements)( windows_core::Interface::as_raw(self), textstring.param().abi(), - core::mem::transmute(clustermap), + clustermap, core::mem::transmute(textprops), - core::mem::transmute(textlength), - core::mem::transmute(glyphindices), - core::mem::transmute(glyphprops), - core::mem::transmute(glyphcount), + textlength, + glyphindices, + glyphprops, + glyphcount, fontface.param().abi(), - core::mem::transmute(fontemsize), + fontemsize, issideways.into(), isrighttoleft.into(), - core::mem::transmute(scriptanalysis), + scriptanalysis, localename.param().abi(), core::mem::transmute(features.unwrap_or(core::mem::zeroed())), core::mem::transmute(featurerangelengths.unwrap_or(core::mem::zeroed())), - core::mem::transmute(featureranges), + featureranges, core::mem::transmute(glyphadvances), core::mem::transmute(glyphoffsets), ) @@ -8845,24 +8845,24 @@ impl IDWriteTextAnalyzer { (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphPlacements)( windows_core::Interface::as_raw(self), textstring.param().abi(), - core::mem::transmute(clustermap), - core::mem::transmute(textprops), - core::mem::transmute(textlength), - core::mem::transmute(glyphindices), - core::mem::transmute(glyphprops), - core::mem::transmute(glyphcount), + clustermap, + textprops, + textlength, + glyphindices, + glyphprops, + glyphcount, fontface.param().abi(), - core::mem::transmute(fontemsize), - core::mem::transmute(pixelsperdip), + fontemsize, + pixelsperdip, core::mem::transmute(transform.unwrap_or(core::mem::zeroed())), usegdinatural.into(), issideways.into(), isrighttoleft.into(), - core::mem::transmute(scriptanalysis), + scriptanalysis, localename.param().abi(), core::mem::transmute(features.unwrap_or(core::mem::zeroed())), core::mem::transmute(featurerangelengths.unwrap_or(core::mem::zeroed())), - core::mem::transmute(featureranges), + featureranges, core::mem::transmute(glyphadvances), core::mem::transmute(glyphoffsets), ) @@ -9035,24 +9035,24 @@ impl core::ops::Deref for IDWriteTextAnalyzer1 { windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer1, windows_core::IUnknown, IDWriteTextAnalyzer); impl IDWriteTextAnalyzer1 { pub unsafe fn ApplyCharacterSpacing(&self, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, glyphcount: u32, clustermap: &[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::Result<()> { - (windows_core::Interface::vtable(self).ApplyCharacterSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(leadingspacing), core::mem::transmute(trailingspacing), core::mem::transmute(minimumadvancewidth), clustermap.len().try_into().unwrap(), core::mem::transmute(glyphcount), core::mem::transmute(clustermap.as_ptr()), core::mem::transmute(glyphadvances), core::mem::transmute(glyphoffsets), core::mem::transmute(glyphproperties), core::mem::transmute(modifiedglyphadvances), core::mem::transmute(modifiedglyphoffsets)).ok() + (windows_core::Interface::vtable(self).ApplyCharacterSpacing)(windows_core::Interface::as_raw(self), leadingspacing, trailingspacing, minimumadvancewidth, clustermap.len().try_into().unwrap(), glyphcount, core::mem::transmute(clustermap.as_ptr()), glyphadvances, glyphoffsets, glyphproperties, core::mem::transmute(modifiedglyphadvances), core::mem::transmute(modifiedglyphoffsets)).ok() } pub unsafe fn GetBaseline(&self, fontface: P0, baseline: DWRITE_BASELINE, isvertical: bool, issimulationallowed: bool, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P5, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBaseline)(windows_core::Interface::as_raw(self), fontface.param().abi(), core::mem::transmute(baseline), isvertical.into(), issimulationallowed.into(), core::mem::transmute(scriptanalysis), localename.param().abi(), core::mem::transmute(baselinecoordinate), core::mem::transmute(exists)).ok() + (windows_core::Interface::vtable(self).GetBaseline)(windows_core::Interface::as_raw(self), fontface.param().abi(), baseline, isvertical.into(), issimulationallowed.into(), core::mem::transmute(scriptanalysis), localename.param().abi(), core::mem::transmute(baselinecoordinate), core::mem::transmute(exists)).ok() } pub unsafe fn AnalyzeVerticalGlyphOrientation(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), analysissource.param().abi(), core::mem::transmute(textposition), core::mem::transmute(textlength), analysissink.param().abi()).ok() + (windows_core::Interface::vtable(self).AnalyzeVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, analysissink.param().abi()).ok() } pub unsafe fn GetGlyphOrientationTransform(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: bool, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorientationangle), issideways.into(), core::mem::transmute(transform)).ok() + (windows_core::Interface::vtable(self).GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.into(), core::mem::transmute(transform)).ok() } pub unsafe fn GetScriptProperties(&self, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, scriptproperties: *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetScriptProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptanalysis), core::mem::transmute(scriptproperties)).ok() @@ -9062,7 +9062,7 @@ impl IDWriteTextAnalyzer1 { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextComplexity)(windows_core::Interface::as_raw(self), textstring.param().abi(), core::mem::transmute(textlength), fontface.param().abi(), core::mem::transmute(istextsimple), core::mem::transmute(textlengthread), core::mem::transmute(glyphindices.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextComplexity)(windows_core::Interface::as_raw(self), textstring.param().abi(), textlength, fontface.param().abi(), core::mem::transmute(istextsimple), core::mem::transmute(textlengthread), core::mem::transmute(glyphindices.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetJustificationOpportunities(&self, fontface: P0, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, textstring: P5, clustermap: *const u16, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES) -> windows_core::Result where @@ -9070,10 +9070,10 @@ impl IDWriteTextAnalyzer1 { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJustificationOpportunities)(windows_core::Interface::as_raw(self), fontface.param().abi(), core::mem::transmute(fontemsize), core::mem::transmute(scriptanalysis), core::mem::transmute(textlength), core::mem::transmute(glyphcount), textstring.param().abi(), core::mem::transmute(clustermap), core::mem::transmute(glyphproperties), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetJustificationOpportunities)(windows_core::Interface::as_raw(self), fontface.param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, textstring.param().abi(), clustermap, glyphproperties, &mut result__).map(|| result__) } pub unsafe fn JustifyGlyphAdvances(&self, linewidth: f32, glyphcount: u32, justificationopportunities: *const DWRITE_JUSTIFICATION_OPPORTUNITY, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, justifiedglyphadvances: *mut f32, justifiedglyphoffsets: Option<*mut DWRITE_GLYPH_OFFSET>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).JustifyGlyphAdvances)(windows_core::Interface::as_raw(self), core::mem::transmute(linewidth), core::mem::transmute(glyphcount), core::mem::transmute(justificationopportunities), core::mem::transmute(glyphadvances), core::mem::transmute(glyphoffsets), core::mem::transmute(justifiedglyphadvances), core::mem::transmute(justifiedglyphoffsets.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).JustifyGlyphAdvances)(windows_core::Interface::as_raw(self), linewidth, glyphcount, justificationopportunities, glyphadvances, glyphoffsets, core::mem::transmute(justifiedglyphadvances), core::mem::transmute(justifiedglyphoffsets.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetJustifiedGlyphs(&self, fontface: P0, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, maxglyphcount: u32, clustermap: Option<*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: Option<*mut u16>, modifiedglyphindices: *mut u16, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where @@ -9082,17 +9082,17 @@ impl IDWriteTextAnalyzer1 { (windows_core::Interface::vtable(self).GetJustifiedGlyphs)( windows_core::Interface::as_raw(self), fontface.param().abi(), - core::mem::transmute(fontemsize), + fontemsize, core::mem::transmute(scriptanalysis), - core::mem::transmute(textlength), - core::mem::transmute(glyphcount), - core::mem::transmute(maxglyphcount), + textlength, + glyphcount, + maxglyphcount, core::mem::transmute(clustermap.unwrap_or(core::mem::zeroed())), - core::mem::transmute(glyphindices), - core::mem::transmute(glyphadvances), - core::mem::transmute(justifiedglyphadvances), - core::mem::transmute(justifiedglyphoffsets), - core::mem::transmute(glyphproperties), + glyphindices, + glyphadvances, + justifiedglyphadvances, + justifiedglyphoffsets, + glyphproperties, core::mem::transmute(actualglyphcount), core::mem::transmute(modifiedclustermap.unwrap_or(core::mem::zeroed())), core::mem::transmute(modifiedglyphindices), @@ -9234,7 +9234,7 @@ impl core::ops::Deref for IDWriteTextAnalyzer2 { windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer2, windows_core::IUnknown, IDWriteTextAnalyzer, IDWriteTextAnalyzer1); impl IDWriteTextAnalyzer2 { pub unsafe fn GetGlyphOrientationTransform(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: bool, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorientationangle), issideways.into(), core::mem::transmute(originx), core::mem::transmute(originy), core::mem::transmute(transform)).ok() + (windows_core::Interface::vtable(self).GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.into(), originx, originy, core::mem::transmute(transform)).ok() } pub unsafe fn GetTypographicFeatures(&self, fontface: P0, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P2, actualtagcount: *mut u32, tags: &mut [DWRITE_FONT_FEATURE_TAG]) -> windows_core::Result<()> where @@ -9249,7 +9249,7 @@ impl IDWriteTextAnalyzer2 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckTypographicFeature)(windows_core::Interface::as_raw(self), fontface.param().abi(), core::mem::transmute(scriptanalysis), localename.param().abi(), core::mem::transmute(featuretag), core::mem::transmute(glyphcount), core::mem::transmute(glyphindices), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckTypographicFeature)(windows_core::Interface::as_raw(self), fontface.param().abi(), core::mem::transmute(scriptanalysis), localename.param().abi(), featuretag, glyphcount, glyphindices, &mut result__).map(|| result__) } } #[repr(C)] @@ -9302,31 +9302,31 @@ windows_core::imp::define_interface!(IDWriteTextFormat, IDWriteTextFormat_Vtbl, windows_core::imp::interface_hierarchy!(IDWriteTextFormat, windows_core::IUnknown); impl IDWriteTextFormat { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(textalignment)).ok() + (windows_core::Interface::vtable(self).SetTextAlignment)(windows_core::Interface::as_raw(self), textalignment).ok() } pub unsafe fn SetParagraphAlignment(&self, paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParagraphAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(paragraphalignment)).ok() + (windows_core::Interface::vtable(self).SetParagraphAlignment)(windows_core::Interface::as_raw(self), paragraphalignment).ok() } pub unsafe fn SetWordWrapping(&self, wordwrapping: DWRITE_WORD_WRAPPING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWordWrapping)(windows_core::Interface::as_raw(self), core::mem::transmute(wordwrapping)).ok() + (windows_core::Interface::vtable(self).SetWordWrapping)(windows_core::Interface::as_raw(self), wordwrapping).ok() } pub unsafe fn SetReadingDirection(&self, readingdirection: DWRITE_READING_DIRECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReadingDirection)(windows_core::Interface::as_raw(self), core::mem::transmute(readingdirection)).ok() + (windows_core::Interface::vtable(self).SetReadingDirection)(windows_core::Interface::as_raw(self), readingdirection).ok() } pub unsafe fn SetFlowDirection(&self, flowdirection: DWRITE_FLOW_DIRECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlowDirection)(windows_core::Interface::as_raw(self), core::mem::transmute(flowdirection)).ok() + (windows_core::Interface::vtable(self).SetFlowDirection)(windows_core::Interface::as_raw(self), flowdirection).ok() } pub unsafe fn SetIncrementalTabStop(&self, incrementaltabstop: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncrementalTabStop)(windows_core::Interface::as_raw(self), core::mem::transmute(incrementaltabstop)).ok() + (windows_core::Interface::vtable(self).SetIncrementalTabStop)(windows_core::Interface::as_raw(self), incrementaltabstop).ok() } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrimming)(windows_core::Interface::as_raw(self), core::mem::transmute(trimmingoptions), trimmingsign.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.param().abi()).ok() } pub unsafe fn SetLineSpacing(&self, linespacingmethod: DWRITE_LINE_SPACING_METHOD, linespacing: f32, baseline: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(linespacingmethod), core::mem::transmute(linespacing), core::mem::transmute(baseline)).ok() + (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() } pub unsafe fn GetTextAlignment(&self) -> DWRITE_TEXT_ALIGNMENT { (windows_core::Interface::vtable(self).GetTextAlignment)(windows_core::Interface::as_raw(self)) @@ -9591,7 +9591,7 @@ impl core::ops::Deref for IDWriteTextFormat1 { windows_core::imp::interface_hierarchy!(IDWriteTextFormat1, windows_core::IUnknown, IDWriteTextFormat); impl IDWriteTextFormat1 { pub unsafe fn SetVerticalGlyphOrientation(&self, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorientation)).ok() + (windows_core::Interface::vtable(self).SetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), glyphorientation).ok() } pub unsafe fn GetVerticalGlyphOrientation(&self) -> DWRITE_VERTICAL_GLYPH_ORIENTATION { (windows_core::Interface::vtable(self).GetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self)) @@ -9603,7 +9603,7 @@ impl IDWriteTextFormat1 { (windows_core::Interface::vtable(self).GetLastLineWrapping)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetOpticalAlignment(&self, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpticalAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(opticalalignment)).ok() + (windows_core::Interface::vtable(self).SetOpticalAlignment)(windows_core::Interface::as_raw(self), opticalalignment).ok() } pub unsafe fn GetOpticalAlignment(&self) -> DWRITE_OPTICAL_ALIGNMENT { (windows_core::Interface::vtable(self).GetOpticalAlignment)(windows_core::Interface::as_raw(self)) @@ -9710,7 +9710,7 @@ impl core::ops::Deref for IDWriteTextFormat2 { windows_core::imp::interface_hierarchy!(IDWriteTextFormat2, windows_core::IUnknown, IDWriteTextFormat, IDWriteTextFormat1); impl IDWriteTextFormat2 { pub unsafe fn SetLineSpacing(&self, linespacingoptions: *const DWRITE_LINE_SPACING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(linespacingoptions)).ok() + (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingoptions).ok() } pub unsafe fn GetLineSpacing(&self, linespacingoptions: *mut DWRITE_LINE_SPACING) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLineSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(linespacingoptions)).ok() @@ -9771,7 +9771,7 @@ impl IDWriteTextFormat3 { (windows_core::Interface::vtable(self).GetAutomaticFontAxes)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetAutomaticFontAxes(&self, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutomaticFontAxes)(windows_core::Interface::as_raw(self), core::mem::transmute(automaticfontaxes)).ok() + (windows_core::Interface::vtable(self).SetAutomaticFontAxes)(windows_core::Interface::as_raw(self), automaticfontaxes).ok() } } #[repr(C)] @@ -9838,10 +9838,10 @@ impl core::ops::Deref for IDWriteTextLayout { windows_core::imp::interface_hierarchy!(IDWriteTextLayout, windows_core::IUnknown, IDWriteTextFormat); impl IDWriteTextLayout { pub unsafe fn SetMaxWidth(&self, maxwidth: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(maxwidth)).ok() + (windows_core::Interface::vtable(self).SetMaxWidth)(windows_core::Interface::as_raw(self), maxwidth).ok() } pub unsafe fn SetMaxHeight(&self, maxheight: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(maxheight)).ok() + (windows_core::Interface::vtable(self).SetMaxHeight)(windows_core::Interface::as_raw(self), maxheight).ok() } pub unsafe fn SetFontCollection(&self, fontcollection: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where @@ -9856,16 +9856,16 @@ impl IDWriteTextLayout { (windows_core::Interface::vtable(self).SetFontFamilyName)(windows_core::Interface::as_raw(self), fontfamilyname.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontWeight(&self, fontweight: DWRITE_FONT_WEIGHT, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(fontweight), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetFontWeight)(windows_core::Interface::as_raw(self), fontweight, core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontStyle(&self, fontstyle: DWRITE_FONT_STYLE, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(fontstyle), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetFontStyle)(windows_core::Interface::as_raw(self), fontstyle, core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontStretch(&self, fontstretch: DWRITE_FONT_STRETCH, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontStretch)(windows_core::Interface::as_raw(self), core::mem::transmute(fontstretch), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetFontStretch)(windows_core::Interface::as_raw(self), fontstretch, core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontSize(&self, fontsize: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontSize)(windows_core::Interface::as_raw(self), core::mem::transmute(fontsize), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetFontSize)(windows_core::Interface::as_raw(self), fontsize, core::mem::transmute(textrange)).ok() } pub unsafe fn SetUnderline(&self, hasunderline: bool, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.into(), core::mem::transmute(textrange)).ok() @@ -9904,52 +9904,52 @@ impl IDWriteTextLayout { (windows_core::Interface::vtable(self).GetMaxHeight)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetFontCollection(&self, currentposition: u32, fontcollection: *mut Option, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontcollection), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontCollection)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontcollection), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFontFamilyNameLength(&self, currentposition: u32, namelength: *mut u32, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontFamilyNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(namelength), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontFamilyNameLength)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(namelength), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFontFamilyName(&self, currentposition: u32, fontfamilyname: &mut [u16], textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontFamilyName)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontfamilyname.as_ptr()), fontfamilyname.len().try_into().unwrap(), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontFamilyName)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontfamilyname.as_ptr()), fontfamilyname.len().try_into().unwrap(), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFontWeight(&self, currentposition: u32, fontweight: *mut DWRITE_FONT_WEIGHT, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontweight), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontWeight)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontweight), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFontStyle(&self, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontstyle), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontStyle)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontstyle), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFontStretch(&self, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontStretch)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontstretch), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontStretch)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontstretch), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFontSize(&self, currentposition: u32, fontsize: *mut f32, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontSize)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontsize), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontSize)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontsize), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetUnderline(&self, currentposition: u32, hasunderline: *mut super::super::Foundation::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(hasunderline), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetUnderline)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(hasunderline), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStrikethrough(&self, currentposition: u32, hasstrikethrough: *mut super::super::Foundation::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(hasstrikethrough), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStrikethrough)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(hasstrikethrough), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetDrawingEffect(&self, currentposition: u32, drawingeffect: *mut Option, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDrawingEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(drawingeffect), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDrawingEffect)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(drawingeffect), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetInlineObject(&self, currentposition: u32, inlineobject: *mut Option, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(inlineobject), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetInlineObject)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(inlineobject), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypography(&self, currentposition: u32, typography: *mut Option, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypography)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(typography), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypography)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(typography), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLocaleNameLength(&self, currentposition: u32, namelength: *mut u32, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocaleNameLength)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(namelength), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLocaleNameLength)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(namelength), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLocaleName(&self, currentposition: u32, localename: &mut [u16], textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap(), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLocaleName)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap(), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P1, originx: f32, originy: f32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), renderer.param().abi(), core::mem::transmute(originx), core::mem::transmute(originy)).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), renderer.param().abi(), originx, originy).ok() } pub unsafe fn GetLineMetrics(&self, linemetrics: Option<&mut [DWRITE_LINE_METRICS]>, actuallinecount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLineMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(linemetrics.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), linemetrics.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actuallinecount)).ok() @@ -9969,13 +9969,13 @@ impl IDWriteTextLayout { (windows_core::Interface::vtable(self).DetermineMinWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn HitTestPoint(&self, pointx: f32, pointy: f32, istrailinghit: *mut super::super::Foundation::BOOL, isinside: *mut super::super::Foundation::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HitTestPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(pointx), core::mem::transmute(pointy), core::mem::transmute(istrailinghit), core::mem::transmute(isinside), core::mem::transmute(hittestmetrics)).ok() + (windows_core::Interface::vtable(self).HitTestPoint)(windows_core::Interface::as_raw(self), pointx, pointy, core::mem::transmute(istrailinghit), core::mem::transmute(isinside), core::mem::transmute(hittestmetrics)).ok() } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: bool, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HitTestTextPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), istrailinghit.into(), core::mem::transmute(pointx), core::mem::transmute(pointy), core::mem::transmute(hittestmetrics)).ok() + (windows_core::Interface::vtable(self).HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.into(), core::mem::transmute(pointx), core::mem::transmute(pointy), core::mem::transmute(hittestmetrics)).ok() } pub unsafe fn HitTestTextRange(&self, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: Option<&mut [DWRITE_HIT_TEST_METRICS]>, actualhittestmetricscount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HitTestTextRange)(windows_core::Interface::as_raw(self), core::mem::transmute(textposition), core::mem::transmute(textlength), core::mem::transmute(originx), core::mem::transmute(originy), core::mem::transmute(hittestmetrics.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), hittestmetrics.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualhittestmetricscount)).ok() + (windows_core::Interface::vtable(self).HitTestTextRange)(windows_core::Interface::as_raw(self), textposition, textlength, originx, originy, core::mem::transmute(hittestmetrics.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), hittestmetrics.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualhittestmetricscount)).ok() } } #[repr(C)] @@ -10295,13 +10295,13 @@ impl IDWriteTextLayout1 { (windows_core::Interface::vtable(self).SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.into(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetPairKerning(&self, currentposition: u32, ispairkerningenabled: *mut super::super::Foundation::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPairKerning)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(ispairkerningenabled), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPairKerning)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(ispairkerningenabled), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetCharacterSpacing(&self, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCharacterSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(leadingspacing), core::mem::transmute(trailingspacing), core::mem::transmute(minimumadvancewidth), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetCharacterSpacing)(windows_core::Interface::as_raw(self), leadingspacing, trailingspacing, minimumadvancewidth, core::mem::transmute(textrange)).ok() } pub unsafe fn GetCharacterSpacing(&self, currentposition: u32, leadingspacing: *mut f32, trailingspacing: *mut f32, minimumadvancewidth: *mut f32, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCharacterSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(leadingspacing), core::mem::transmute(trailingspacing), core::mem::transmute(minimumadvancewidth), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetCharacterSpacing)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(leadingspacing), core::mem::transmute(trailingspacing), core::mem::transmute(minimumadvancewidth), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -10364,7 +10364,7 @@ impl IDWriteTextLayout2 { (windows_core::Interface::vtable(self).GetMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute(textmetrics)).ok() } pub unsafe fn SetVerticalGlyphOrientation(&self, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorientation)).ok() + (windows_core::Interface::vtable(self).SetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), glyphorientation).ok() } pub unsafe fn GetVerticalGlyphOrientation(&self) -> DWRITE_VERTICAL_GLYPH_ORIENTATION { (windows_core::Interface::vtable(self).GetVerticalGlyphOrientation)(windows_core::Interface::as_raw(self)) @@ -10376,7 +10376,7 @@ impl IDWriteTextLayout2 { (windows_core::Interface::vtable(self).GetLastLineWrapping)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetOpticalAlignment(&self, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpticalAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(opticalalignment)).ok() + (windows_core::Interface::vtable(self).SetOpticalAlignment)(windows_core::Interface::as_raw(self), opticalalignment).ok() } pub unsafe fn GetOpticalAlignment(&self) -> DWRITE_OPTICAL_ALIGNMENT { (windows_core::Interface::vtable(self).GetOpticalAlignment)(windows_core::Interface::as_raw(self)) @@ -10493,7 +10493,7 @@ impl IDWriteTextLayout3 { (windows_core::Interface::vtable(self).InvalidateLayout)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetLineSpacing(&self, linespacingoptions: *const DWRITE_LINE_SPACING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(linespacingoptions)).ok() + (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingoptions).ok() } pub unsafe fn GetLineSpacing(&self, linespacingoptions: *mut DWRITE_LINE_SPACING) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLineSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(linespacingoptions)).ok() @@ -10562,16 +10562,16 @@ impl IDWriteTextLayout4 { (windows_core::Interface::vtable(self).SetFontAxisValues)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetFontAxisValueCount(&self, currentposition: u32) -> u32 { - (windows_core::Interface::vtable(self).GetFontAxisValueCount)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition)) + (windows_core::Interface::vtable(self).GetFontAxisValueCount)(windows_core::Interface::as_raw(self), currentposition) } pub unsafe fn GetFontAxisValues(&self, currentposition: u32, fontaxisvalues: &mut [DWRITE_FONT_AXIS_VALUE], textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFontAxisValues)(windows_core::Interface::as_raw(self), core::mem::transmute(currentposition), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFontAxisValues)(windows_core::Interface::as_raw(self), currentposition, core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), core::mem::transmute(textrange.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetAutomaticFontAxes(&self) -> DWRITE_AUTOMATIC_FONT_AXES { (windows_core::Interface::vtable(self).GetAutomaticFontAxes)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetAutomaticFontAxes(&self, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutomaticFontAxes)(windows_core::Interface::as_raw(self), core::mem::transmute(automaticfontaxes)).ok() + (windows_core::Interface::vtable(self).SetAutomaticFontAxes)(windows_core::Interface::as_raw(self), automaticfontaxes).ok() } } #[repr(C)] @@ -10641,26 +10641,26 @@ impl IDWriteTextRenderer { where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(measuringmode), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), baselineoriginx, baselineoriginy, measuringmode, core::mem::transmute(glyphrun), glyphrundescription, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawUnderline(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: P4) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(underline), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), baselineoriginx, baselineoriginy, underline, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawStrikethrough(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: P4) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(strikethrough), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), baselineoriginx, baselineoriginy, strikethrough, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawInlineObject(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, originx: f32, originy: f32, inlineobject: P3, issideways: bool, isrighttoleft: bool, clientdrawingeffect: P6) -> windows_core::Result<()> where P3: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(originx), core::mem::transmute(originy), inlineobject.param().abi(), issideways.into(), isrighttoleft.into(), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), originx, originy, inlineobject.param().abi(), issideways.into(), isrighttoleft.into(), clientdrawingeffect.param().abi()).ok() } } #[repr(C)] @@ -10723,26 +10723,26 @@ impl IDWriteTextRenderer1 { where P7: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(orientationangle), core::mem::transmute(measuringmode), core::mem::transmute(glyphrun), core::mem::transmute(glyphrundescription), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), baselineoriginx, baselineoriginy, orientationangle, measuringmode, core::mem::transmute(glyphrun), glyphrundescription, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawUnderline(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: P5) -> windows_core::Result<()> where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(orientationangle), core::mem::transmute(underline), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), baselineoriginx, baselineoriginy, orientationangle, underline, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawStrikethrough(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: P5) -> windows_core::Result<()> where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(baselineoriginx), core::mem::transmute(baselineoriginy), core::mem::transmute(orientationangle), core::mem::transmute(strikethrough), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), baselineoriginx, baselineoriginy, orientationangle, strikethrough, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawInlineObject(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: P4, issideways: bool, isrighttoleft: bool, clientdrawingeffect: P7) -> windows_core::Result<()> where P4: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(originx), core::mem::transmute(originy), core::mem::transmute(orientationangle), inlineobject.param().abi(), issideways.into(), isrighttoleft.into(), clientdrawingeffect.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(core::mem::zeroed())), originx, originy, orientationangle, inlineobject.param().abi(), issideways.into(), isrighttoleft.into(), clientdrawingeffect.param().abi()).ok() } } #[repr(C)] @@ -10803,7 +10803,7 @@ impl IDWriteTypography { } pub unsafe fn GetFontFeature(&self, fontfeatureindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFeature)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfeatureindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFontFeature)(windows_core::Interface::as_raw(self), fontfeatureindex, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs index d8654042da..b0a18f83a5 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs @@ -1,28 +1,28 @@ #[inline] pub unsafe fn DwmAttachMilContent(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmAttachMilContent(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DwmAttachMilContent(core::mem::transmute(hwnd)).ok() + DwmAttachMilContent(hwnd).ok() } #[inline] pub unsafe fn DwmDefWindowProc(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> super::super::Foundation::BOOL { windows_targets::link!("dwmapi.dll" "system" fn DwmDefWindowProc(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, plresult : *mut super::super::Foundation:: LRESULT) -> super::super::Foundation:: BOOL); - DwmDefWindowProc(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(plresult)) + DwmDefWindowProc(hwnd, msg, wparam, lparam, core::mem::transmute(plresult)) } #[inline] pub unsafe fn DwmDetachMilContent(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmDetachMilContent(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DwmDetachMilContent(core::mem::transmute(hwnd)).ok() + DwmDetachMilContent(hwnd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DwmEnableBlurBehindWindow(hwnd: super::super::Foundation::HWND, pblurbehind: *const DWM_BLURBEHIND) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmEnableBlurBehindWindow(hwnd : super::super::Foundation:: HWND, pblurbehind : *const DWM_BLURBEHIND) -> windows_core::HRESULT); - DwmEnableBlurBehindWindow(core::mem::transmute(hwnd), core::mem::transmute(pblurbehind)).ok() + DwmEnableBlurBehindWindow(hwnd, pblurbehind).ok() } #[inline] pub unsafe fn DwmEnableComposition(ucompositionaction: u32) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmEnableComposition(ucompositionaction : u32) -> windows_core::HRESULT); - DwmEnableComposition(core::mem::transmute(ucompositionaction)).ok() + DwmEnableComposition(ucompositionaction).ok() } #[inline] pub unsafe fn DwmEnableMMCSS(fenablemmcss: bool) -> windows_core::Result<()> { @@ -33,7 +33,7 @@ pub unsafe fn DwmEnableMMCSS(fenablemmcss: bool) -> windows_core::Result<()> { #[inline] pub unsafe fn DwmExtendFrameIntoClientArea(hwnd: super::super::Foundation::HWND, pmarinset: *const super::super::UI::Controls::MARGINS) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmExtendFrameIntoClientArea(hwnd : super::super::Foundation:: HWND, pmarinset : *const super::super::UI::Controls:: MARGINS) -> windows_core::HRESULT); - DwmExtendFrameIntoClientArea(core::mem::transmute(hwnd), core::mem::transmute(pmarinset)).ok() + DwmExtendFrameIntoClientArea(hwnd, pmarinset).ok() } #[inline] pub unsafe fn DwmFlush() -> windows_core::Result<()> { @@ -48,18 +48,18 @@ pub unsafe fn DwmGetColorizationColor(pcrcolorization: *mut u32, pfopaqueblend: #[inline] pub unsafe fn DwmGetCompositionTimingInfo(hwnd: super::super::Foundation::HWND, ptiminginfo: *mut DWM_TIMING_INFO) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmGetCompositionTimingInfo(hwnd : super::super::Foundation:: HWND, ptiminginfo : *mut DWM_TIMING_INFO) -> windows_core::HRESULT); - DwmGetCompositionTimingInfo(core::mem::transmute(hwnd), core::mem::transmute(ptiminginfo)).ok() + DwmGetCompositionTimingInfo(hwnd, core::mem::transmute(ptiminginfo)).ok() } #[inline] pub unsafe fn DwmGetGraphicsStreamClient(uindex: u32) -> windows_core::Result { windows_targets::link!("dwmapi.dll" "system" fn DwmGetGraphicsStreamClient(uindex : u32, pclientuuid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DwmGetGraphicsStreamClient(core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + DwmGetGraphicsStreamClient(uindex, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DwmGetGraphicsStreamTransformHint(uindex: u32, ptransform: *mut MilMatrix3x2D) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmGetGraphicsStreamTransformHint(uindex : u32, ptransform : *mut MilMatrix3x2D) -> windows_core::HRESULT); - DwmGetGraphicsStreamTransformHint(core::mem::transmute(uindex), core::mem::transmute(ptransform)).ok() + DwmGetGraphicsStreamTransformHint(uindex, core::mem::transmute(ptransform)).ok() } #[inline] pub unsafe fn DwmGetTransportAttributes(pfisremoting: *mut super::super::Foundation::BOOL, pfisconnected: *mut super::super::Foundation::BOOL, pdwgeneration: *mut u32) -> windows_core::Result<()> { @@ -75,12 +75,12 @@ pub unsafe fn DwmGetUnmetTabRequirements(appwindow: Option windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmGetWindowAttribute(hwnd : super::super::Foundation:: HWND, dwattribute : u32, pvattribute : *mut core::ffi::c_void, cbattribute : u32) -> windows_core::HRESULT); - DwmGetWindowAttribute(core::mem::transmute(hwnd), dwattribute.0 as _, core::mem::transmute(pvattribute), core::mem::transmute(cbattribute)).ok() + DwmGetWindowAttribute(hwnd, dwattribute.0 as _, core::mem::transmute(pvattribute), cbattribute).ok() } #[inline] pub unsafe fn DwmInvalidateIconicBitmaps(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmInvalidateIconicBitmaps(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DwmInvalidateIconicBitmaps(core::mem::transmute(hwnd)).ok() + DwmInvalidateIconicBitmaps(hwnd).ok() } #[inline] pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result { @@ -91,76 +91,76 @@ pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmModifyPreviousDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32, frelative : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DwmModifyPreviousDxFrameDuration(core::mem::transmute(hwnd), core::mem::transmute(crefreshes), frelative.into()).ok() + DwmModifyPreviousDxFrameDuration(hwnd, crefreshes, frelative.into()).ok() } #[inline] pub unsafe fn DwmQueryThumbnailSourceSize(hthumbnail: isize) -> windows_core::Result { windows_targets::link!("dwmapi.dll" "system" fn DwmQueryThumbnailSourceSize(hthumbnail : isize, psize : *mut super::super::Foundation:: SIZE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DwmQueryThumbnailSourceSize(core::mem::transmute(hthumbnail), &mut result__).map(|| core::mem::transmute(result__)) + DwmQueryThumbnailSourceSize(hthumbnail, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DwmRegisterThumbnail(hwnddestination: super::super::Foundation::HWND, hwndsource: super::super::Foundation::HWND) -> windows_core::Result { windows_targets::link!("dwmapi.dll" "system" fn DwmRegisterThumbnail(hwnddestination : super::super::Foundation:: HWND, hwndsource : super::super::Foundation:: HWND, phthumbnailid : *mut isize) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DwmRegisterThumbnail(core::mem::transmute(hwnddestination), core::mem::transmute(hwndsource), &mut result__).map(|| core::mem::transmute(result__)) + DwmRegisterThumbnail(hwnddestination, hwndsource, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DwmRenderGesture(gt: GESTURE_TYPE, ccontacts: u32, pdwpointerid: *const u32, ppoints: *const super::super::Foundation::POINT) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmRenderGesture(gt : GESTURE_TYPE, ccontacts : u32, pdwpointerid : *const u32, ppoints : *const super::super::Foundation:: POINT) -> windows_core::HRESULT); - DwmRenderGesture(core::mem::transmute(gt), core::mem::transmute(ccontacts), core::mem::transmute(pdwpointerid), core::mem::transmute(ppoints)).ok() + DwmRenderGesture(gt, ccontacts, pdwpointerid, ppoints).ok() } #[inline] pub unsafe fn DwmSetDxFrameDuration(hwnd: super::super::Foundation::HWND, crefreshes: i32) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmSetDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32) -> windows_core::HRESULT); - DwmSetDxFrameDuration(core::mem::transmute(hwnd), core::mem::transmute(crefreshes)).ok() + DwmSetDxFrameDuration(hwnd, crefreshes).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DwmSetIconicLivePreviewBitmap(hwnd: super::super::Foundation::HWND, hbmp: super::Gdi::HBITMAP, pptclient: Option<*const super::super::Foundation::POINT>, dwsitflags: u32) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmSetIconicLivePreviewBitmap(hwnd : super::super::Foundation:: HWND, hbmp : super::Gdi:: HBITMAP, pptclient : *const super::super::Foundation:: POINT, dwsitflags : u32) -> windows_core::HRESULT); - DwmSetIconicLivePreviewBitmap(core::mem::transmute(hwnd), core::mem::transmute(hbmp), core::mem::transmute(pptclient.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsitflags)).ok() + DwmSetIconicLivePreviewBitmap(hwnd, hbmp, core::mem::transmute(pptclient.unwrap_or(core::mem::zeroed())), dwsitflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DwmSetIconicThumbnail(hwnd: super::super::Foundation::HWND, hbmp: super::Gdi::HBITMAP, dwsitflags: u32) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmSetIconicThumbnail(hwnd : super::super::Foundation:: HWND, hbmp : super::Gdi:: HBITMAP, dwsitflags : u32) -> windows_core::HRESULT); - DwmSetIconicThumbnail(core::mem::transmute(hwnd), core::mem::transmute(hbmp), core::mem::transmute(dwsitflags)).ok() + DwmSetIconicThumbnail(hwnd, hbmp, dwsitflags).ok() } #[inline] pub unsafe fn DwmSetPresentParameters(hwnd: super::super::Foundation::HWND, ppresentparams: *mut DWM_PRESENT_PARAMETERS) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmSetPresentParameters(hwnd : super::super::Foundation:: HWND, ppresentparams : *mut DWM_PRESENT_PARAMETERS) -> windows_core::HRESULT); - DwmSetPresentParameters(core::mem::transmute(hwnd), core::mem::transmute(ppresentparams)).ok() + DwmSetPresentParameters(hwnd, core::mem::transmute(ppresentparams)).ok() } #[inline] pub unsafe fn DwmSetWindowAttribute(hwnd: super::super::Foundation::HWND, dwattribute: DWMWINDOWATTRIBUTE, pvattribute: *const core::ffi::c_void, cbattribute: u32) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmSetWindowAttribute(hwnd : super::super::Foundation:: HWND, dwattribute : u32, pvattribute : *const core::ffi::c_void, cbattribute : u32) -> windows_core::HRESULT); - DwmSetWindowAttribute(core::mem::transmute(hwnd), dwattribute.0 as _, core::mem::transmute(pvattribute), core::mem::transmute(cbattribute)).ok() + DwmSetWindowAttribute(hwnd, dwattribute.0 as _, pvattribute, cbattribute).ok() } #[inline] pub unsafe fn DwmShowContact(dwpointerid: u32, eshowcontact: DWM_SHOWCONTACT) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmShowContact(dwpointerid : u32, eshowcontact : DWM_SHOWCONTACT) -> windows_core::HRESULT); - DwmShowContact(core::mem::transmute(dwpointerid), core::mem::transmute(eshowcontact)).ok() + DwmShowContact(dwpointerid, eshowcontact).ok() } #[inline] pub unsafe fn DwmTetherContact(dwpointerid: u32, fenable: bool, pttether: super::super::Foundation::POINT) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmTetherContact(dwpointerid : u32, fenable : super::super::Foundation:: BOOL, pttether : super::super::Foundation:: POINT) -> windows_core::HRESULT); - DwmTetherContact(core::mem::transmute(dwpointerid), fenable.into(), core::mem::transmute(pttether)).ok() + DwmTetherContact(dwpointerid, fenable.into(), core::mem::transmute(pttether)).ok() } #[inline] pub unsafe fn DwmTransitionOwnedWindow(hwnd: super::super::Foundation::HWND, target: DWMTRANSITION_OWNEDWINDOW_TARGET) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmTransitionOwnedWindow(hwnd : super::super::Foundation:: HWND, target : DWMTRANSITION_OWNEDWINDOW_TARGET) -> windows_core::HRESULT); - DwmTransitionOwnedWindow(core::mem::transmute(hwnd), core::mem::transmute(target)).ok() + DwmTransitionOwnedWindow(hwnd, target).ok() } #[inline] pub unsafe fn DwmUnregisterThumbnail(hthumbnailid: isize) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmUnregisterThumbnail(hthumbnailid : isize) -> windows_core::HRESULT); - DwmUnregisterThumbnail(core::mem::transmute(hthumbnailid)).ok() + DwmUnregisterThumbnail(hthumbnailid).ok() } #[inline] pub unsafe fn DwmUpdateThumbnailProperties(hthumbnailid: isize, ptnproperties: *const DWM_THUMBNAIL_PROPERTIES) -> windows_core::Result<()> { windows_targets::link!("dwmapi.dll" "system" fn DwmUpdateThumbnailProperties(hthumbnailid : isize, ptnproperties : *const DWM_THUMBNAIL_PROPERTIES) -> windows_core::HRESULT); - DwmUpdateThumbnailProperties(core::mem::transmute(hthumbnailid), core::mem::transmute(ptnproperties)).ok() + DwmUpdateThumbnailProperties(hthumbnailid, ptnproperties).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs index c0a755cfba..23f5b5108c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs @@ -25,7 +25,7 @@ where { windows_targets::link!("dxgi.dll" "system" fn CreateDXGIFactory2(flags : DXGI_CREATE_FACTORY_FLAGS, riid : *const windows_core::GUID, ppfactory : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CreateDXGIFactory2(core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDXGIFactory2(flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn DXGIDeclareAdapterRemovalSupport() -> windows_core::Result<()> { @@ -44,7 +44,7 @@ where { windows_targets::link!("dxgi.dll" "system" fn DXGIGetDebugInterface1(flags : u32, riid : *const windows_core::GUID, pdebug : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - DXGIGetDebugInterface1(core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DXGIGetDebugInterface1(flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -1731,7 +1731,7 @@ windows_core::imp::interface_hierarchy!(IDXGIAdapter, windows_core::IUnknown, ID impl IDXGIAdapter { pub unsafe fn EnumOutputs(&self, output: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumOutputs)(windows_core::Interface::as_raw(self), core::mem::transmute(output), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumOutputs)(windows_core::Interface::as_raw(self), output, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDesc(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1739,7 +1739,7 @@ impl IDXGIAdapter { } pub unsafe fn CheckInterfaceSupport(&self, interfacename: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckInterfaceSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacename), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckInterfaceSupport)(windows_core::Interface::as_raw(self), interfacename, &mut result__).map(|| result__) } } #[repr(C)] @@ -1897,23 +1897,23 @@ windows_core::imp::interface_hierarchy!(IDXGIAdapter3, windows_core::IUnknown, I impl IDXGIAdapter3 { pub unsafe fn RegisterHardwareContentProtectionTeardownStatusEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterHardwareContentProtectionTeardownStatusEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterHardwareContentProtectionTeardownStatusEvent)(windows_core::Interface::as_raw(self), hevent, &mut result__).map(|| result__) } pub unsafe fn UnregisterHardwareContentProtectionTeardownStatus(&self, dwcookie: u32) { - (windows_core::Interface::vtable(self).UnregisterHardwareContentProtectionTeardownStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)) + (windows_core::Interface::vtable(self).UnregisterHardwareContentProtectionTeardownStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn QueryVideoMemoryInfo(&self, nodeindex: u32, memorysegmentgroup: DXGI_MEMORY_SEGMENT_GROUP, pvideomemoryinfo: *mut DXGI_QUERY_VIDEO_MEMORY_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryVideoMemoryInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(nodeindex), core::mem::transmute(memorysegmentgroup), core::mem::transmute(pvideomemoryinfo)).ok() + (windows_core::Interface::vtable(self).QueryVideoMemoryInfo)(windows_core::Interface::as_raw(self), nodeindex, memorysegmentgroup, core::mem::transmute(pvideomemoryinfo)).ok() } pub unsafe fn SetVideoMemoryReservation(&self, nodeindex: u32, memorysegmentgroup: DXGI_MEMORY_SEGMENT_GROUP, reservation: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoMemoryReservation)(windows_core::Interface::as_raw(self), core::mem::transmute(nodeindex), core::mem::transmute(memorysegmentgroup), core::mem::transmute(reservation)).ok() + (windows_core::Interface::vtable(self).SetVideoMemoryReservation)(windows_core::Interface::as_raw(self), nodeindex, memorysegmentgroup, reservation).ok() } pub unsafe fn RegisterVideoMemoryBudgetChangeNotificationEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterVideoMemoryBudgetChangeNotificationEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterVideoMemoryBudgetChangeNotificationEvent)(windows_core::Interface::as_raw(self), hevent, &mut result__).map(|| result__) } pub unsafe fn UnregisterVideoMemoryBudgetChangeNotification(&self, dwcookie: u32) { - (windows_core::Interface::vtable(self).UnregisterVideoMemoryBudgetChangeNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)) + (windows_core::Interface::vtable(self).UnregisterVideoMemoryBudgetChangeNotification)(windows_core::Interface::as_raw(self), dwcookie) } } #[repr(C)] @@ -2036,7 +2036,7 @@ windows_core::imp::define_interface!(IDXGIDebug, IDXGIDebug_Vtbl, 0x119e7452_de9 windows_core::imp::interface_hierarchy!(IDXGIDebug, windows_core::IUnknown); impl IDXGIDebug { pub unsafe fn ReportLiveObjects(&self, apiid: windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportLiveObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(apiid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ReportLiveObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(apiid), flags).ok() } } #[repr(C)] @@ -2125,16 +2125,16 @@ windows_core::imp::define_interface!(IDXGIDecodeSwapChain, IDXGIDecodeSwapChain_ windows_core::imp::interface_hierarchy!(IDXGIDecodeSwapChain, windows_core::IUnknown); impl IDXGIDecodeSwapChain { pub unsafe fn PresentBuffer(&self, buffertopresent: u32, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).PresentBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(buffertopresent), core::mem::transmute(syncinterval), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).PresentBuffer)(windows_core::Interface::as_raw(self), buffertopresent, syncinterval, flags) } pub unsafe fn SetSourceRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetSourceRect)(windows_core::Interface::as_raw(self), prect).ok() } pub unsafe fn SetTargetRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTargetRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetTargetRect)(windows_core::Interface::as_raw(self), prect).ok() } pub unsafe fn SetDestSize(&self, width: u32, height: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestSize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetDestSize)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn GetSourceRect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2148,7 +2148,7 @@ impl IDXGIDecodeSwapChain { (windows_core::Interface::vtable(self).GetDestSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() } pub unsafe fn SetColorSpace(&self, colorspace: DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace)).ok() + (windows_core::Interface::vtable(self).SetColorSpace)(windows_core::Interface::as_raw(self), colorspace).ok() } pub unsafe fn GetColorSpace(&self) -> DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS { (windows_core::Interface::vtable(self).GetColorSpace)(windows_core::Interface::as_raw(self)) @@ -2263,13 +2263,13 @@ impl IDXGIDevice { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSurface(&self, pdesc: *const DXGI_SURFACE_DESC, usage: DXGI_USAGE, psharedresource: Option<*const DXGI_SHARED_RESOURCE>, ppsurface: &mut [Option]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), ppsurface.len().try_into().unwrap(), core::mem::transmute(usage), core::mem::transmute(psharedresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsurface.as_ptr())).ok() + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), pdesc, ppsurface.len().try_into().unwrap(), usage, core::mem::transmute(psharedresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsurface.as_ptr())).ok() } pub unsafe fn QueryResourceResidency(&self, ppresources: *const Option, presidencystatus: *mut DXGI_RESIDENCY, numresources: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryResourceResidency)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources), core::mem::transmute(presidencystatus), core::mem::transmute(numresources)).ok() + (windows_core::Interface::vtable(self).QueryResourceResidency)(windows_core::Interface::as_raw(self), core::mem::transmute(ppresources), core::mem::transmute(presidencystatus), numresources).ok() } pub unsafe fn SetGPUThreadPriority(&self, priority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGPUThreadPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).SetGPUThreadPriority)(windows_core::Interface::as_raw(self), priority).ok() } pub unsafe fn GetGPUThreadPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2360,7 +2360,7 @@ impl core::ops::Deref for IDXGIDevice1 { windows_core::imp::interface_hierarchy!(IDXGIDevice1, windows_core::IUnknown, IDXGIObject, IDXGIDevice); impl IDXGIDevice1 { pub unsafe fn SetMaximumFrameLatency(&self, maxlatency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumFrameLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(maxlatency)).ok() + (windows_core::Interface::vtable(self).SetMaximumFrameLatency)(windows_core::Interface::as_raw(self), maxlatency).ok() } pub unsafe fn GetMaximumFrameLatency(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2421,13 +2421,13 @@ impl core::ops::Deref for IDXGIDevice2 { windows_core::imp::interface_hierarchy!(IDXGIDevice2, windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1); impl IDXGIDevice2 { pub unsafe fn OfferResources(&self, ppresources: &[Option], priority: DXGI_OFFER_RESOURCE_PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OfferResources)(windows_core::Interface::as_raw(self), ppresources.len().try_into().unwrap(), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).OfferResources)(windows_core::Interface::as_raw(self), ppresources.len().try_into().unwrap(), core::mem::transmute(ppresources.as_ptr()), priority).ok() } pub unsafe fn ReclaimResources(&self, numresources: u32, ppresources: *const Option, pdiscarded: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReclaimResources)(windows_core::Interface::as_raw(self), core::mem::transmute(numresources), core::mem::transmute(ppresources), core::mem::transmute(pdiscarded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReclaimResources)(windows_core::Interface::as_raw(self), numresources, core::mem::transmute(ppresources), core::mem::transmute(pdiscarded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EnqueueSetEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnqueueSetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent).ok() } } #[repr(C)] @@ -2526,11 +2526,11 @@ impl core::ops::Deref for IDXGIDevice4 { windows_core::imp::interface_hierarchy!(IDXGIDevice4, windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1, IDXGIDevice2, IDXGIDevice3); impl IDXGIDevice4 { pub unsafe fn OfferResources1(&self, ppresources: &[Option], priority: DXGI_OFFER_RESOURCE_PRIORITY, flags: DXGI_OFFER_RESOURCE_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OfferResources1)(windows_core::Interface::as_raw(self), ppresources.len().try_into().unwrap(), core::mem::transmute(ppresources.as_ptr()), core::mem::transmute(priority), flags.0 as _).ok() + (windows_core::Interface::vtable(self).OfferResources1)(windows_core::Interface::as_raw(self), ppresources.len().try_into().unwrap(), core::mem::transmute(ppresources.as_ptr()), priority, flags.0 as _).ok() } pub unsafe fn ReclaimResources1(&self, numresources: u32, ppresources: *const Option) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReclaimResources1)(windows_core::Interface::as_raw(self), core::mem::transmute(numresources), core::mem::transmute(ppresources), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReclaimResources1)(windows_core::Interface::as_raw(self), numresources, core::mem::transmute(ppresources), &mut result__).map(|| result__) } } #[repr(C)] @@ -2671,10 +2671,10 @@ windows_core::imp::interface_hierarchy!(IDXGIFactory, windows_core::IUnknown, ID impl IDXGIFactory { pub unsafe fn EnumAdapters(&self, adapter: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAdapters)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumAdapters)(windows_core::Interface::as_raw(self), adapter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MakeWindowAssociation(&self, windowhandle: super::super::Foundation::HWND, flags: DXGI_MWA_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MakeWindowAssociation)(windows_core::Interface::as_raw(self), core::mem::transmute(windowhandle), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle, flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2685,11 +2685,11 @@ impl IDXGIFactory { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(pdesc), core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: super::super::Foundation::HMODULE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), core::mem::transmute(module), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2783,7 +2783,7 @@ windows_core::imp::interface_hierarchy!(IDXGIFactory1, windows_core::IUnknown, I impl IDXGIFactory1 { pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAdapters1)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumAdapters1)(windows_core::Interface::as_raw(self), adapter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsCurrent(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsCurrent)(windows_core::Interface::as_raw(self)) @@ -2848,7 +2848,7 @@ impl IDXGIFactory2 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hwnd), core::mem::transmute(pdesc), core::mem::transmute(pfullscreendesc.unwrap_or(core::mem::zeroed())), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hwnd, pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(core::mem::zeroed())), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForCoreWindow(&self, pdevice: P0, pwindow: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P3) -> windows_core::Result @@ -2858,33 +2858,33 @@ impl IDXGIFactory2 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pwindow.param().abi(), core::mem::transmute(pdesc), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pwindow.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSharedResourceAdapterLuid(&self, hresource: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), core::mem::transmute(hresource), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: super::super::Foundation::HWND, wmsg: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(windowhandle), core::mem::transmute(wmsg), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle, wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent, &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { - (windows_core::Interface::vtable(self).UnregisterStereoStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)) + (windows_core::Interface::vtable(self).UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: super::super::Foundation::HWND, wmsg: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(windowhandle), core::mem::transmute(wmsg), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle, wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent, &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { - (windows_core::Interface::vtable(self).UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)) + (windows_core::Interface::vtable(self).UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P2) -> windows_core::Result @@ -2893,7 +2893,7 @@ impl IDXGIFactory2 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(pdesc), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3167,7 +3167,7 @@ impl core::ops::Deref for IDXGIFactory5 { windows_core::imp::interface_hierarchy!(IDXGIFactory5, windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4); impl IDXGIFactory5 { pub unsafe fn CheckFeatureSupport(&self, feature: DXGI_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(feature), core::mem::transmute(pfeaturesupportdata), core::mem::transmute(featuresupportdatasize)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, core::mem::transmute(pfeaturesupportdata), featuresupportdatasize).ok() } } #[repr(C)] @@ -3212,7 +3212,7 @@ impl IDXGIFactory6 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).EnumAdapterByGpuPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(gpupreference), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumAdapterByGpuPreference)(windows_core::Interface::as_raw(self), adapter, gpupreference, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3254,10 +3254,10 @@ windows_core::imp::interface_hierarchy!(IDXGIFactory7, windows_core::IUnknown, I impl IDXGIFactory7 { pub unsafe fn RegisterAdaptersChangedEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterAdaptersChangedEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterAdaptersChangedEvent)(windows_core::Interface::as_raw(self), hevent, &mut result__).map(|| result__) } pub unsafe fn UnregisterAdaptersChangedEvent(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterAdaptersChangedEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnregisterAdaptersChangedEvent)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -3314,7 +3314,7 @@ impl IDXGIFactoryMedia { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForCompositionSurfaceHandle)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hsurface.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdesc), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSwapChainForCompositionSurfaceHandle)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hsurface.unwrap_or(core::mem::zeroed())), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDecodeSwapChainForCompositionSurfaceHandle(&self, pdevice: P0, hsurface: Option, pdesc: *const DXGI_DECODE_SWAP_CHAIN_DESC, pyuvdecodebuffers: P3, prestricttooutput: P4) -> windows_core::Result where @@ -3323,7 +3323,7 @@ impl IDXGIFactoryMedia { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecodeSwapChainForCompositionSurfaceHandle)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hsurface.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdesc), pyuvdecodebuffers.param().abi(), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDecodeSwapChainForCompositionSurfaceHandle)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hsurface.unwrap_or(core::mem::zeroed())), pdesc, pyuvdecodebuffers.param().abi(), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3383,13 +3383,13 @@ windows_core::imp::define_interface!(IDXGIInfoQueue, IDXGIInfoQueue_Vtbl, 0xd674 windows_core::imp::interface_hierarchy!(IDXGIInfoQueue, windows_core::IUnknown); impl IDXGIInfoQueue { pub unsafe fn SetMessageCountLimit(&self, producer: windows_core::GUID, messagecountlimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(messagecountlimit)).ok() + (windows_core::Interface::vtable(self).SetMessageCountLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), messagecountlimit).ok() } pub unsafe fn ClearStoredMessages(&self, producer: windows_core::GUID) { (windows_core::Interface::vtable(self).ClearStoredMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) } pub unsafe fn GetMessage(&self, producer: windows_core::GUID, messageindex: u64, pmessage: Option<*mut DXGI_INFO_QUEUE_MESSAGE>, pmessagebytelength: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(messageindex), core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), messageindex, core::mem::transmute(pmessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmessagebytelength)).ok() } pub unsafe fn GetNumStoredMessagesAllowedByRetrievalFilters(&self, producer: windows_core::GUID) -> u64 { (windows_core::Interface::vtable(self).GetNumStoredMessagesAllowedByRetrievalFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) @@ -3410,7 +3410,7 @@ impl IDXGIInfoQueue { (windows_core::Interface::vtable(self).GetNumMessagesDeniedByStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) } pub unsafe fn AddStorageFilterEntries(&self, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddStorageFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), pfilter).ok() } pub unsafe fn GetStorageFilter(&self, producer: windows_core::GUID, pfilter: Option<*mut DXGI_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -3428,7 +3428,7 @@ impl IDXGIInfoQueue { (windows_core::Interface::vtable(self).PushCopyOfStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)).ok() } pub unsafe fn PushStorageFilter(&self, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), pfilter).ok() } pub unsafe fn PopStorageFilter(&self, producer: windows_core::GUID) { (windows_core::Interface::vtable(self).PopStorageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) @@ -3437,7 +3437,7 @@ impl IDXGIInfoQueue { (windows_core::Interface::vtable(self).GetStorageFilterStackSize)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) } pub unsafe fn AddRetrievalFilterEntries(&self, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).AddRetrievalFilterEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), pfilter).ok() } pub unsafe fn GetRetrievalFilter(&self, producer: windows_core::GUID, pfilter: Option<*mut DXGI_INFO_QUEUE_FILTER>, pfilterbytelength: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(pfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterbytelength)).ok() @@ -3455,7 +3455,7 @@ impl IDXGIInfoQueue { (windows_core::Interface::vtable(self).PushCopyOfRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)).ok() } pub unsafe fn PushRetrievalFilter(&self, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(pfilter)).ok() + (windows_core::Interface::vtable(self).PushRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), pfilter).ok() } pub unsafe fn PopRetrievalFilter(&self, producer: windows_core::GUID) { (windows_core::Interface::vtable(self).PopRetrievalFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) @@ -3467,31 +3467,31 @@ impl IDXGIInfoQueue { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(category), core::mem::transmute(severity), core::mem::transmute(id), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category, severity, id, pdescription.param().abi()).ok() } pub unsafe fn AddApplicationMessage(&self, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, pdescription: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(severity), pdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.param().abi()).ok() } pub unsafe fn SetBreakOnCategory(&self, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(category), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category, benable.into()).ok() } pub unsafe fn SetBreakOnSeverity(&self, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(severity), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), severity, benable.into()).ok() } pub unsafe fn SetBreakOnID(&self, producer: windows_core::GUID, id: i32, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(id), benable.into()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), id, benable.into()).ok() } pub unsafe fn GetBreakOnCategory(&self, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(category)) + (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category) } pub unsafe fn GetBreakOnSeverity(&self, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(severity)) + (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), severity) } pub unsafe fn GetBreakOnID(&self, producer: windows_core::GUID, id: i32) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), core::mem::transmute(id)) + (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), id) } pub unsafe fn SetMuteDebugOutput(&self, producer: windows_core::GUID, bmute: bool) { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), bmute.into()) @@ -3788,10 +3788,10 @@ impl core::ops::Deref for IDXGIKeyedMutex { windows_core::imp::interface_hierarchy!(IDXGIKeyedMutex, windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); impl IDXGIKeyedMutex { pub unsafe fn AcquireSync(&self, key: u64, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireSync)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).AcquireSync)(windows_core::Interface::as_raw(self), key, dwmilliseconds).ok() } pub unsafe fn ReleaseSync(&self, key: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseSync)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).ReleaseSync)(windows_core::Interface::as_raw(self), key).ok() } } #[repr(C)] @@ -3831,16 +3831,16 @@ windows_core::imp::define_interface!(IDXGIObject, IDXGIObject_Vtbl, 0xaec22fb8_7 windows_core::imp::interface_hierarchy!(IDXGIObject, windows_core::IUnknown); impl IDXGIObject { pub unsafe fn SetPrivateData(&self, name: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(name), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).SetPrivateData)(windows_core::Interface::as_raw(self), name, datasize, pdata).ok() } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(name), punknown.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.param().abi()).ok() } pub unsafe fn GetPrivateData(&self, name: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), core::mem::transmute(name), core::mem::transmute(pdatasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetPrivateData)(windows_core::Interface::as_raw(self), name, core::mem::transmute(pdatasize), core::mem::transmute(pdata)).ok() } pub unsafe fn GetParent(&self) -> windows_core::Result where @@ -3913,14 +3913,14 @@ impl IDXGIOutput { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDisplayModeList(&self, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: Option<*mut Common::DXGI_MODE_DESC>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayModeList)(windows_core::Interface::as_raw(self), core::mem::transmute(enumformat), core::mem::transmute(flags), core::mem::transmute(pnummodes), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDisplayModeList)(windows_core::Interface::as_raw(self), enumformat, flags, core::mem::transmute(pnummodes), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindClosestMatchingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pmodetomatch), core::mem::transmute(pclosestmatch), pconcerneddevice.param().abi()).ok() + (windows_core::Interface::vtable(self).FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, core::mem::transmute(pclosestmatch), pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() @@ -3940,7 +3940,7 @@ impl IDXGIOutput { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetGammaControl(&self, parray: *const Common::DXGI_GAMMA_CONTROL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGammaControl)(windows_core::Interface::as_raw(self), core::mem::transmute(parray)).ok() + (windows_core::Interface::vtable(self).SetGammaControl)(windows_core::Interface::as_raw(self), parray).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetGammaControl(&self, parray: *mut Common::DXGI_GAMMA_CONTROL) -> windows_core::Result<()> { @@ -4105,14 +4105,14 @@ windows_core::imp::interface_hierarchy!(IDXGIOutput1, windows_core::IUnknown, ID impl IDXGIOutput1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDisplayModeList1(&self, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: Option<*mut DXGI_MODE_DESC1>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayModeList1)(windows_core::Interface::as_raw(self), core::mem::transmute(enumformat), core::mem::transmute(flags), core::mem::transmute(pnummodes), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDisplayModeList1)(windows_core::Interface::as_raw(self), enumformat, flags, core::mem::transmute(pnummodes), core::mem::transmute(pdesc.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), core::mem::transmute(pmodetomatch), core::mem::transmute(pclosestmatch), pconcerneddevice.param().abi()).ok() + (windows_core::Interface::vtable(self).FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, core::mem::transmute(pclosestmatch), pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where @@ -4248,7 +4248,7 @@ impl IDXGIOutput3 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckOverlaySupport)(windows_core::Interface::as_raw(self), core::mem::transmute(enumformat), pconcerneddevice.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -4303,7 +4303,7 @@ impl IDXGIOutput4 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(colorspace), pconcerneddevice.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -4358,7 +4358,7 @@ impl IDXGIOutput5 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateOutput1)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(flags), psupportedformats.len().try_into().unwrap(), core::mem::transmute(psupportedformats.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DuplicateOutput1)(windows_core::Interface::as_raw(self), pdevice.param().abi(), flags, psupportedformats.len().try_into().unwrap(), core::mem::transmute(psupportedformats.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4486,16 +4486,16 @@ impl IDXGIOutputDuplication { result__ } pub unsafe fn AcquireNextFrame(&self, timeoutinmilliseconds: u32, pframeinfo: *mut DXGI_OUTDUPL_FRAME_INFO, ppdesktopresource: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireNextFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(timeoutinmilliseconds), core::mem::transmute(pframeinfo), core::mem::transmute(ppdesktopresource)).ok() + (windows_core::Interface::vtable(self).AcquireNextFrame)(windows_core::Interface::as_raw(self), timeoutinmilliseconds, core::mem::transmute(pframeinfo), core::mem::transmute(ppdesktopresource)).ok() } pub unsafe fn GetFrameDirtyRects(&self, dirtyrectsbuffersize: u32, pdirtyrectsbuffer: *mut super::super::Foundation::RECT, pdirtyrectsbuffersizerequired: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFrameDirtyRects)(windows_core::Interface::as_raw(self), core::mem::transmute(dirtyrectsbuffersize), core::mem::transmute(pdirtyrectsbuffer), core::mem::transmute(pdirtyrectsbuffersizerequired)).ok() + (windows_core::Interface::vtable(self).GetFrameDirtyRects)(windows_core::Interface::as_raw(self), dirtyrectsbuffersize, core::mem::transmute(pdirtyrectsbuffer), core::mem::transmute(pdirtyrectsbuffersizerequired)).ok() } pub unsafe fn GetFrameMoveRects(&self, moverectsbuffersize: u32, pmoverectbuffer: *mut DXGI_OUTDUPL_MOVE_RECT, pmoverectsbuffersizerequired: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFrameMoveRects)(windows_core::Interface::as_raw(self), core::mem::transmute(moverectsbuffersize), core::mem::transmute(pmoverectbuffer), core::mem::transmute(pmoverectsbuffersizerequired)).ok() + (windows_core::Interface::vtable(self).GetFrameMoveRects)(windows_core::Interface::as_raw(self), moverectsbuffersize, core::mem::transmute(pmoverectbuffer), core::mem::transmute(pmoverectsbuffersizerequired)).ok() } pub unsafe fn GetFramePointerShape(&self, pointershapebuffersize: u32, ppointershapebuffer: *mut core::ffi::c_void, ppointershapebuffersizerequired: *mut u32, ppointershapeinfo: *mut DXGI_OUTDUPL_POINTER_SHAPE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFramePointerShape)(windows_core::Interface::as_raw(self), core::mem::transmute(pointershapebuffersize), core::mem::transmute(ppointershapebuffer), core::mem::transmute(ppointershapebuffersizerequired), core::mem::transmute(ppointershapeinfo)).ok() + (windows_core::Interface::vtable(self).GetFramePointerShape)(windows_core::Interface::as_raw(self), pointershapebuffersize, core::mem::transmute(ppointershapebuffer), core::mem::transmute(ppointershapebuffersizerequired), core::mem::transmute(ppointershapeinfo)).ok() } pub unsafe fn MapDesktopSurface(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4615,7 +4615,7 @@ impl IDXGIResource { (windows_core::Interface::vtable(self).GetUsage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEvictionPriority(&self, evictionpriority: DXGI_RESOURCE_PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEvictionPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(evictionpriority)).ok() + (windows_core::Interface::vtable(self).SetEvictionPriority)(windows_core::Interface::as_raw(self), evictionpriority).ok() } pub unsafe fn GetEvictionPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4698,7 +4698,7 @@ windows_core::imp::interface_hierarchy!(IDXGIResource1, windows_core::IUnknown, impl IDXGIResource1 { pub unsafe fn CreateSubresourceSurface(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSubresourceSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSubresourceSurface)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwaccess: u32, lpname: P2) -> windows_core::Result @@ -4706,7 +4706,7 @@ impl IDXGIResource1 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwaccess), lpname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed())), dwaccess, lpname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -4777,7 +4777,7 @@ impl IDXGISurface { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Map(&self, plockedrect: *mut DXGI_MAPPED_RECT, mapflags: DXGI_MAP_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(plockedrect), core::mem::transmute(mapflags)).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(plockedrect), mapflags).ok() } pub unsafe fn Unmap(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self)).ok() @@ -4953,14 +4953,14 @@ impl core::ops::Deref for IDXGISwapChain { windows_core::imp::interface_hierarchy!(IDXGISwapChain, windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); impl IDXGISwapChain { pub unsafe fn Present(&self, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), core::mem::transmute(syncinterval), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), syncinterval, flags) } pub unsafe fn GetBuffer(&self, buffer: u32) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), buffer, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFullscreenState(&self, fullscreen: bool, ptarget: P1) -> windows_core::Result<()> where @@ -4978,11 +4978,11 @@ impl IDXGISwapChain { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResizeBuffers(&self, buffercount: u32, width: u32, height: u32, newformat: Common::DXGI_FORMAT, swapchainflags: DXGI_SWAP_CHAIN_FLAG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResizeBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(buffercount), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(newformat), swapchainflags.0 as _).ok() + (windows_core::Interface::vtable(self).ResizeBuffers)(windows_core::Interface::as_raw(self), buffercount, width, height, newformat, swapchainflags.0 as _).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResizeTarget(&self, pnewtargetparameters: *const Common::DXGI_MODE_DESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResizeTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(pnewtargetparameters)).ok() + (windows_core::Interface::vtable(self).ResizeTarget)(windows_core::Interface::as_raw(self), pnewtargetparameters).ok() } pub unsafe fn GetContainingOutput(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5148,7 +5148,7 @@ impl IDXGISwapChain1 { (windows_core::Interface::vtable(self).GetCoreWindow)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Present1(&self, syncinterval: u32, presentflags: DXGI_PRESENT, ppresentparameters: *const DXGI_PRESENT_PARAMETERS) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Present1)(windows_core::Interface::as_raw(self), core::mem::transmute(syncinterval), core::mem::transmute(presentflags), core::mem::transmute(ppresentparameters)) + (windows_core::Interface::vtable(self).Present1)(windows_core::Interface::as_raw(self), syncinterval, presentflags, ppresentparameters) } pub unsafe fn IsTemporaryMonoSupported(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsTemporaryMonoSupported)(windows_core::Interface::as_raw(self)) @@ -5158,7 +5158,7 @@ impl IDXGISwapChain1 { (windows_core::Interface::vtable(self).GetRestrictToOutput)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBackgroundColor(&self, pcolor: *const DXGI_RGBA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolor)).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), pcolor).ok() } pub unsafe fn GetBackgroundColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5166,7 +5166,7 @@ impl IDXGISwapChain1 { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetRotation(&self, rotation: Common::DXGI_MODE_ROTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(rotation)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), rotation).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetRotation(&self) -> windows_core::Result { @@ -5333,13 +5333,13 @@ impl core::ops::Deref for IDXGISwapChain2 { windows_core::imp::interface_hierarchy!(IDXGISwapChain2, windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1); impl IDXGISwapChain2 { pub unsafe fn SetSourceSize(&self, width: u32, height: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceSize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetSourceSize)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn GetSourceSize(&self, pwidth: *mut u32, pheight: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSourceSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() } pub unsafe fn SetMaximumFrameLatency(&self, maxlatency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumFrameLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(maxlatency)).ok() + (windows_core::Interface::vtable(self).SetMaximumFrameLatency)(windows_core::Interface::as_raw(self), maxlatency).ok() } pub unsafe fn GetMaximumFrameLatency(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5349,7 +5349,7 @@ impl IDXGISwapChain2 { (windows_core::Interface::vtable(self).GetFrameLatencyWaitableObject)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetMatrixTransform(&self, pmatrix: *const DXGI_MATRIX_3X2_F) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrixTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(pmatrix)).ok() + (windows_core::Interface::vtable(self).SetMatrixTransform)(windows_core::Interface::as_raw(self), pmatrix).ok() } pub unsafe fn GetMatrixTransform(&self, pmatrix: *mut DXGI_MATRIX_3X2_F) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMatrixTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(pmatrix)).ok() @@ -5449,15 +5449,15 @@ impl IDXGISwapChain3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckColorSpaceSupport(&self, colorspace: Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckColorSpaceSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckColorSpaceSupport)(windows_core::Interface::as_raw(self), colorspace, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetColorSpace1(&self, colorspace: Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorSpace1)(windows_core::Interface::as_raw(self), core::mem::transmute(colorspace)).ok() + (windows_core::Interface::vtable(self).SetColorSpace1)(windows_core::Interface::as_raw(self), colorspace).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResizeBuffers1(&self, buffercount: u32, width: u32, height: u32, format: Common::DXGI_FORMAT, swapchainflags: DXGI_SWAP_CHAIN_FLAG, pcreationnodemask: *const u32, pppresentqueue: *const Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResizeBuffers1)(windows_core::Interface::as_raw(self), core::mem::transmute(buffercount), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), swapchainflags.0 as _, core::mem::transmute(pcreationnodemask), core::mem::transmute(pppresentqueue)).ok() + (windows_core::Interface::vtable(self).ResizeBuffers1)(windows_core::Interface::as_raw(self), buffercount, width, height, format, swapchainflags.0 as _, pcreationnodemask, core::mem::transmute(pppresentqueue)).ok() } } #[repr(C)] @@ -5537,7 +5537,7 @@ impl core::ops::Deref for IDXGISwapChain4 { windows_core::imp::interface_hierarchy!(IDXGISwapChain4, windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1, IDXGISwapChain2, IDXGISwapChain3); impl IDXGISwapChain4 { pub unsafe fn SetHDRMetaData(&self, r#type: DXGI_HDR_METADATA_TYPE, pmetadata: Option<&[u8]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHDRMetaData)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), pmetadata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pmetadata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + (windows_core::Interface::vtable(self).SetHDRMetaData)(windows_core::Interface::as_raw(self), r#type, pmetadata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pmetadata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[repr(C)] @@ -5575,10 +5575,10 @@ impl IDXGISwapChainMedia { (windows_core::Interface::vtable(self).GetFrameStatisticsMedia)(windows_core::Interface::as_raw(self), core::mem::transmute(pstats)).ok() } pub unsafe fn SetPresentDuration(&self, duration: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPresentDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).SetPresentDuration)(windows_core::Interface::as_raw(self), duration).ok() } pub unsafe fn CheckPresentDurationSupport(&self, desiredpresentduration: u32, pclosestsmallerpresentduration: *mut u32, pclosestlargerpresentduration: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckPresentDurationSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(desiredpresentduration), core::mem::transmute(pclosestsmallerpresentduration), core::mem::transmute(pclosestlargerpresentduration)).ok() + (windows_core::Interface::vtable(self).CheckPresentDurationSupport)(windows_core::Interface::as_raw(self), desiredpresentduration, core::mem::transmute(pclosestsmallerpresentduration), core::mem::transmute(pclosestlargerpresentduration)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs index 585ad2ee1e..599e387247 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn AbortPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn AbortPath(hdc : HDC) -> super::super::Foundation:: BOOL); - AbortPath(core::mem::transmute(hdc)) + AbortPath(hdc) } #[inline] pub unsafe fn AddFontMemResourceEx(pfileview: *const core::ffi::c_void, cjsize: u32, pvresrved: Option<*const core::ffi::c_void>, pnumfonts: *const u32) -> super::super::Foundation::HANDLE { windows_targets::link!("gdi32.dll" "system" fn AddFontMemResourceEx(pfileview : *const core::ffi::c_void, cjsize : u32, pvresrved : *const core::ffi::c_void, pnumfonts : *const u32) -> super::super::Foundation:: HANDLE); - AddFontMemResourceEx(core::mem::transmute(pfileview), core::mem::transmute(cjsize), core::mem::transmute(pvresrved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumfonts)) + AddFontMemResourceEx(pfileview, cjsize, core::mem::transmute(pvresrved.unwrap_or(core::mem::zeroed())), pnumfonts) } #[inline] pub unsafe fn AddFontResourceA(param0: P0) -> i32 @@ -22,7 +22,7 @@ where P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AddFontResourceExA(name : windows_core::PCSTR, fl : FONT_RESOURCE_CHARACTERISTICS, res : *const core::ffi::c_void) -> i32); - AddFontResourceExA(name.param().abi(), core::mem::transmute(fl), core::mem::transmute(res.unwrap_or(core::mem::zeroed()))) + AddFontResourceExA(name.param().abi(), fl, core::mem::transmute(res.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn AddFontResourceExW(name: P0, fl: FONT_RESOURCE_CHARACTERISTICS, res: Option<*const core::ffi::c_void>) -> i32 @@ -30,7 +30,7 @@ where P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AddFontResourceExW(name : windows_core::PCWSTR, fl : FONT_RESOURCE_CHARACTERISTICS, res : *const core::ffi::c_void) -> i32); - AddFontResourceExW(name.param().abi(), core::mem::transmute(fl), core::mem::transmute(res.unwrap_or(core::mem::zeroed()))) + AddFontResourceExW(name.param().abi(), fl, core::mem::transmute(res.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn AddFontResourceW(param0: P0) -> i32 @@ -43,52 +43,52 @@ where #[inline] pub unsafe fn AlphaBlend(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> super::super::Foundation::BOOL { windows_targets::link!("msimg32.dll" "system" fn AlphaBlend(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, ftn : BLENDFUNCTION) -> super::super::Foundation:: BOOL); - AlphaBlend(core::mem::transmute(hdcdest), core::mem::transmute(xorigindest), core::mem::transmute(yorigindest), core::mem::transmute(wdest), core::mem::transmute(hdest), core::mem::transmute(hdcsrc), core::mem::transmute(xoriginsrc), core::mem::transmute(yoriginsrc), core::mem::transmute(wsrc), core::mem::transmute(hsrc), core::mem::transmute(ftn)) + AlphaBlend(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) } #[inline] pub unsafe fn AngleArc(hdc: HDC, x: i32, y: i32, r: u32, startangle: f32, sweepangle: f32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn AngleArc(hdc : HDC, x : i32, y : i32, r : u32, startangle : f32, sweepangle : f32) -> super::super::Foundation:: BOOL); - AngleArc(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(r), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + AngleArc(hdc, x, y, r, startangle, sweepangle) } #[inline] pub unsafe fn AnimatePalette(hpal: HPALETTE, istartindex: u32, ppe: &[PALETTEENTRY]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn AnimatePalette(hpal : HPALETTE, istartindex : u32, centries : u32, ppe : *const PALETTEENTRY) -> super::super::Foundation:: BOOL); - AnimatePalette(core::mem::transmute(hpal), core::mem::transmute(istartindex), ppe.len().try_into().unwrap(), core::mem::transmute(ppe.as_ptr())) + AnimatePalette(hpal, istartindex, ppe.len().try_into().unwrap(), core::mem::transmute(ppe.as_ptr())) } #[inline] pub unsafe fn Arc(hdc: HDC, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Arc(hdc : HDC, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> super::super::Foundation:: BOOL); - Arc(core::mem::transmute(hdc), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(x3), core::mem::transmute(y3), core::mem::transmute(x4), core::mem::transmute(y4)) + Arc(hdc, x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn ArcTo(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ArcTo(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, xr1 : i32, yr1 : i32, xr2 : i32, yr2 : i32) -> super::super::Foundation:: BOOL); - ArcTo(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom), core::mem::transmute(xr1), core::mem::transmute(yr1), core::mem::transmute(xr2), core::mem::transmute(yr2)) + ArcTo(hdc, left, top, right, bottom, xr1, yr1, xr2, yr2) } #[inline] pub unsafe fn BeginPaint(hwnd: super::super::Foundation::HWND, lppaint: *mut PAINTSTRUCT) -> HDC { windows_targets::link!("user32.dll" "system" fn BeginPaint(hwnd : super::super::Foundation:: HWND, lppaint : *mut PAINTSTRUCT) -> HDC); - BeginPaint(core::mem::transmute(hwnd), core::mem::transmute(lppaint)) + BeginPaint(hwnd, core::mem::transmute(lppaint)) } #[inline] pub unsafe fn BeginPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn BeginPath(hdc : HDC) -> super::super::Foundation:: BOOL); - BeginPath(core::mem::transmute(hdc)) + BeginPath(hdc) } #[inline] pub unsafe fn BitBlt(hdc: HDC, x: i32, y: i32, cx: i32, cy: i32, hdcsrc: Option, x1: i32, y1: i32, rop: ROP_CODE) -> windows_core::Result<()> { windows_targets::link!("gdi32.dll" "system" fn BitBlt(hdc : HDC, x : i32, y : i32, cx : i32, cy : i32, hdcsrc : HDC, x1 : i32, y1 : i32, rop : ROP_CODE) -> super::super::Foundation:: BOOL); - BitBlt(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(hdcsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(rop)).ok() + BitBlt(hdc, x, y, cx, cy, core::mem::transmute(hdcsrc.unwrap_or(core::mem::zeroed())), x1, y1, rop).ok() } #[inline] pub unsafe fn CancelDC(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn CancelDC(hdc : HDC) -> super::super::Foundation:: BOOL); - CancelDC(core::mem::transmute(hdc)) + CancelDC(hdc) } #[inline] pub unsafe fn ChangeDisplaySettingsA(lpdevmode: Option<*const DEVMODEA>, dwflags: CDS_TYPE) -> DISP_CHANGE { windows_targets::link!("user32.dll" "system" fn ChangeDisplaySettingsA(lpdevmode : *const DEVMODEA, dwflags : CDS_TYPE) -> DISP_CHANGE); - ChangeDisplaySettingsA(core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + ChangeDisplaySettingsA(core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn ChangeDisplaySettingsExA(lpszdevicename: P0, lpdevmode: Option<*const DEVMODEA>, hwnd: Option, dwflags: CDS_TYPE, lparam: Option<*const core::ffi::c_void>) -> DISP_CHANGE @@ -96,7 +96,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ChangeDisplaySettingsExA(lpszdevicename : windows_core::PCSTR, lpdevmode : *const DEVMODEA, hwnd : super::super::Foundation:: HWND, dwflags : CDS_TYPE, lparam : *const core::ffi::c_void) -> DISP_CHANGE); - ChangeDisplaySettingsExA(lpszdevicename.param().abi(), core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) + ChangeDisplaySettingsExA(lpszdevicename.param().abi(), core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ChangeDisplaySettingsExW(lpszdevicename: P0, lpdevmode: Option<*const DEVMODEW>, hwnd: Option, dwflags: CDS_TYPE, lparam: Option<*const core::ffi::c_void>) -> DISP_CHANGE @@ -104,47 +104,47 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ChangeDisplaySettingsExW(lpszdevicename : windows_core::PCWSTR, lpdevmode : *const DEVMODEW, hwnd : super::super::Foundation:: HWND, dwflags : CDS_TYPE, lparam : *const core::ffi::c_void) -> DISP_CHANGE); - ChangeDisplaySettingsExW(lpszdevicename.param().abi(), core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) + ChangeDisplaySettingsExW(lpszdevicename.param().abi(), core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ChangeDisplaySettingsW(lpdevmode: Option<*const DEVMODEW>, dwflags: CDS_TYPE) -> DISP_CHANGE { windows_targets::link!("user32.dll" "system" fn ChangeDisplaySettingsW(lpdevmode : *const DEVMODEW, dwflags : CDS_TYPE) -> DISP_CHANGE); - ChangeDisplaySettingsW(core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + ChangeDisplaySettingsW(core::mem::transmute(lpdevmode.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn Chord(hdc: HDC, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Chord(hdc : HDC, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> super::super::Foundation:: BOOL); - Chord(core::mem::transmute(hdc), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(x3), core::mem::transmute(y3), core::mem::transmute(x4), core::mem::transmute(y4)) + Chord(hdc, x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn ClientToScreen(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ClientToScreen(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - ClientToScreen(core::mem::transmute(hwnd), core::mem::transmute(lppoint)) + ClientToScreen(hwnd, core::mem::transmute(lppoint)) } #[inline] pub unsafe fn CloseEnhMetaFile(hdc: HDC) -> HENHMETAFILE { windows_targets::link!("gdi32.dll" "system" fn CloseEnhMetaFile(hdc : HDC) -> HENHMETAFILE); - CloseEnhMetaFile(core::mem::transmute(hdc)) + CloseEnhMetaFile(hdc) } #[inline] pub unsafe fn CloseFigure(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn CloseFigure(hdc : HDC) -> super::super::Foundation:: BOOL); - CloseFigure(core::mem::transmute(hdc)) + CloseFigure(hdc) } #[inline] pub unsafe fn CloseMetaFile(hdc: HDC) -> HMETAFILE { windows_targets::link!("gdi32.dll" "system" fn CloseMetaFile(hdc : HDC) -> HMETAFILE); - CloseMetaFile(core::mem::transmute(hdc)) + CloseMetaFile(hdc) } #[inline] pub unsafe fn CombineRgn(hrgndst: Option, hrgnsrc1: Option, hrgnsrc2: Option, imode: RGN_COMBINE_MODE) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn CombineRgn(hrgndst : HRGN, hrgnsrc1 : HRGN, hrgnsrc2 : HRGN, imode : RGN_COMBINE_MODE) -> GDI_REGION_TYPE); - CombineRgn(core::mem::transmute(hrgndst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnsrc1.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnsrc2.unwrap_or(core::mem::zeroed())), core::mem::transmute(imode)) + CombineRgn(core::mem::transmute(hrgndst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnsrc1.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnsrc2.unwrap_or(core::mem::zeroed())), imode) } #[inline] pub unsafe fn CombineTransform(lpxfout: *mut XFORM, lpxf1: *const XFORM, lpxf2: *const XFORM) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn CombineTransform(lpxfout : *mut XFORM, lpxf1 : *const XFORM, lpxf2 : *const XFORM) -> super::super::Foundation:: BOOL); - CombineTransform(core::mem::transmute(lpxfout), core::mem::transmute(lpxf1), core::mem::transmute(lpxf2)) + CombineTransform(core::mem::transmute(lpxfout), lpxf1, lpxf2) } #[inline] pub unsafe fn CopyEnhMetaFileA(henh: HENHMETAFILE, lpfilename: P1) -> HENHMETAFILE @@ -152,7 +152,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyEnhMetaFileA(henh : HENHMETAFILE, lpfilename : windows_core::PCSTR) -> HENHMETAFILE); - CopyEnhMetaFileA(core::mem::transmute(henh), lpfilename.param().abi()) + CopyEnhMetaFileA(henh, lpfilename.param().abi()) } #[inline] pub unsafe fn CopyEnhMetaFileW(henh: HENHMETAFILE, lpfilename: P1) -> HENHMETAFILE @@ -160,7 +160,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyEnhMetaFileW(henh : HENHMETAFILE, lpfilename : windows_core::PCWSTR) -> HENHMETAFILE); - CopyEnhMetaFileW(core::mem::transmute(henh), lpfilename.param().abi()) + CopyEnhMetaFileW(henh, lpfilename.param().abi()) } #[inline] pub unsafe fn CopyMetaFileA(param0: HMETAFILE, param1: P1) -> HMETAFILE @@ -168,7 +168,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyMetaFileA(param0 : HMETAFILE, param1 : windows_core::PCSTR) -> HMETAFILE); - CopyMetaFileA(core::mem::transmute(param0), param1.param().abi()) + CopyMetaFileA(param0, param1.param().abi()) } #[inline] pub unsafe fn CopyMetaFileW(param0: HMETAFILE, param1: P1) -> HMETAFILE @@ -176,32 +176,32 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyMetaFileW(param0 : HMETAFILE, param1 : windows_core::PCWSTR) -> HMETAFILE); - CopyMetaFileW(core::mem::transmute(param0), param1.param().abi()) + CopyMetaFileW(param0, param1.param().abi()) } #[inline] pub unsafe fn CopyRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn CopyRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - CopyRect(core::mem::transmute(lprcdst), core::mem::transmute(lprcsrc)) + CopyRect(core::mem::transmute(lprcdst), lprcsrc) } #[inline] pub unsafe fn CreateBitmap(nwidth: i32, nheight: i32, nplanes: u32, nbitcount: u32, lpbits: Option<*const core::ffi::c_void>) -> HBITMAP { windows_targets::link!("gdi32.dll" "system" fn CreateBitmap(nwidth : i32, nheight : i32, nplanes : u32, nbitcount : u32, lpbits : *const core::ffi::c_void) -> HBITMAP); - CreateBitmap(core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(nplanes), core::mem::transmute(nbitcount), core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed()))) + CreateBitmap(nwidth, nheight, nplanes, nbitcount, core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateBitmapIndirect(pbm: *const BITMAP) -> HBITMAP { windows_targets::link!("gdi32.dll" "system" fn CreateBitmapIndirect(pbm : *const BITMAP) -> HBITMAP); - CreateBitmapIndirect(core::mem::transmute(pbm)) + CreateBitmapIndirect(pbm) } #[inline] pub unsafe fn CreateBrushIndirect(plbrush: *const LOGBRUSH) -> HBRUSH { windows_targets::link!("gdi32.dll" "system" fn CreateBrushIndirect(plbrush : *const LOGBRUSH) -> HBRUSH); - CreateBrushIndirect(core::mem::transmute(plbrush)) + CreateBrushIndirect(plbrush) } #[inline] pub unsafe fn CreateCompatibleBitmap(hdc: HDC, cx: i32, cy: i32) -> HBITMAP { windows_targets::link!("gdi32.dll" "system" fn CreateCompatibleBitmap(hdc : HDC, cx : i32, cy : i32) -> HBITMAP); - CreateCompatibleBitmap(core::mem::transmute(hdc), core::mem::transmute(cx), core::mem::transmute(cy)) + CreateCompatibleBitmap(hdc, cx, cy) } #[inline] pub unsafe fn CreateCompatibleDC(hdc: Option) -> HDC { @@ -231,38 +231,38 @@ where #[inline] pub unsafe fn CreateDIBPatternBrush(h: super::super::Foundation::HGLOBAL, iusage: DIB_USAGE) -> HBRUSH { windows_targets::link!("gdi32.dll" "system" fn CreateDIBPatternBrush(h : super::super::Foundation:: HGLOBAL, iusage : DIB_USAGE) -> HBRUSH); - CreateDIBPatternBrush(core::mem::transmute(h), core::mem::transmute(iusage)) + CreateDIBPatternBrush(h, iusage) } #[inline] pub unsafe fn CreateDIBPatternBrushPt(lppackeddib: *const core::ffi::c_void, iusage: DIB_USAGE) -> HBRUSH { windows_targets::link!("gdi32.dll" "system" fn CreateDIBPatternBrushPt(lppackeddib : *const core::ffi::c_void, iusage : DIB_USAGE) -> HBRUSH); - CreateDIBPatternBrushPt(core::mem::transmute(lppackeddib), core::mem::transmute(iusage)) + CreateDIBPatternBrushPt(lppackeddib, iusage) } #[inline] pub unsafe fn CreateDIBSection(hdc: Option, pbmi: *const BITMAPINFO, usage: DIB_USAGE, ppvbits: *mut *mut core::ffi::c_void, hsection: Option, offset: u32) -> windows_core::Result { windows_targets::link!("gdi32.dll" "system" fn CreateDIBSection(hdc : HDC, pbmi : *const BITMAPINFO, usage : DIB_USAGE, ppvbits : *mut *mut core::ffi::c_void, hsection : super::super::Foundation:: HANDLE, offset : u32) -> HBITMAP); - let result__ = CreateDIBSection(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbmi), core::mem::transmute(usage), core::mem::transmute(ppvbits), core::mem::transmute(hsection.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset)); + let result__ = CreateDIBSection(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), pbmi, usage, core::mem::transmute(ppvbits), core::mem::transmute(hsection.unwrap_or(core::mem::zeroed())), offset); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateDIBitmap(hdc: HDC, pbmih: Option<*const BITMAPINFOHEADER>, flinit: u32, pjbits: Option<*const core::ffi::c_void>, pbmi: Option<*const BITMAPINFO>, iusage: DIB_USAGE) -> HBITMAP { windows_targets::link!("gdi32.dll" "system" fn CreateDIBitmap(hdc : HDC, pbmih : *const BITMAPINFOHEADER, flinit : u32, pjbits : *const core::ffi::c_void, pbmi : *const BITMAPINFO, iusage : DIB_USAGE) -> HBITMAP); - CreateDIBitmap(core::mem::transmute(hdc), core::mem::transmute(pbmih.unwrap_or(core::mem::zeroed())), core::mem::transmute(flinit), core::mem::transmute(pjbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbmi.unwrap_or(core::mem::zeroed())), core::mem::transmute(iusage)) + CreateDIBitmap(hdc, core::mem::transmute(pbmih.unwrap_or(core::mem::zeroed())), flinit, core::mem::transmute(pjbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbmi.unwrap_or(core::mem::zeroed())), iusage) } #[inline] pub unsafe fn CreateDiscardableBitmap(hdc: HDC, cx: i32, cy: i32) -> HBITMAP { windows_targets::link!("gdi32.dll" "system" fn CreateDiscardableBitmap(hdc : HDC, cx : i32, cy : i32) -> HBITMAP); - CreateDiscardableBitmap(core::mem::transmute(hdc), core::mem::transmute(cx), core::mem::transmute(cy)) + CreateDiscardableBitmap(hdc, cx, cy) } #[inline] pub unsafe fn CreateEllipticRgn(x1: i32, y1: i32, x2: i32, y2: i32) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreateEllipticRgn(x1 : i32, y1 : i32, x2 : i32, y2 : i32) -> HRGN); - CreateEllipticRgn(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + CreateEllipticRgn(x1, y1, x2, y2) } #[inline] pub unsafe fn CreateEllipticRgnIndirect(lprect: *const super::super::Foundation::RECT) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreateEllipticRgnIndirect(lprect : *const super::super::Foundation:: RECT) -> HRGN); - CreateEllipticRgnIndirect(core::mem::transmute(lprect)) + CreateEllipticRgnIndirect(lprect) } #[inline] pub unsafe fn CreateEnhMetaFileA(hdc: Option, lpfilename: P1, lprc: Option<*const super::super::Foundation::RECT>, lpdesc: P3) -> HDC @@ -288,50 +288,32 @@ where P13: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateFontA(cheight : i32, cwidth : i32, cescapement : i32, corientation : i32, cweight : i32, bitalic : u32, bunderline : u32, bstrikeout : u32, icharset : u32, ioutprecision : u32, iclipprecision : u32, iquality : u32, ipitchandfamily : u32, pszfacename : windows_core::PCSTR) -> HFONT); - CreateFontA(core::mem::transmute(cheight), core::mem::transmute(cwidth), core::mem::transmute(cescapement), core::mem::transmute(corientation), core::mem::transmute(cweight), core::mem::transmute(bitalic), core::mem::transmute(bunderline), core::mem::transmute(bstrikeout), icharset.0 as _, ioutprecision.0 as _, iclipprecision.0 as _, iquality.0 as _, core::mem::transmute(ipitchandfamily), pszfacename.param().abi()) + CreateFontA(cheight, cwidth, cescapement, corientation, cweight, bitalic, bunderline, bstrikeout, icharset.0 as _, ioutprecision.0 as _, iclipprecision.0 as _, iquality.0 as _, ipitchandfamily, pszfacename.param().abi()) } #[inline] pub unsafe fn CreateFontIndirectA(lplf: *const LOGFONTA) -> HFONT { windows_targets::link!("gdi32.dll" "system" fn CreateFontIndirectA(lplf : *const LOGFONTA) -> HFONT); - CreateFontIndirectA(core::mem::transmute(lplf)) + CreateFontIndirectA(lplf) } #[inline] pub unsafe fn CreateFontIndirectExA(param0: *const ENUMLOGFONTEXDVA) -> HFONT { windows_targets::link!("gdi32.dll" "system" fn CreateFontIndirectExA(param0 : *const ENUMLOGFONTEXDVA) -> HFONT); - CreateFontIndirectExA(core::mem::transmute(param0)) + CreateFontIndirectExA(param0) } #[inline] pub unsafe fn CreateFontIndirectExW(param0: *const ENUMLOGFONTEXDVW) -> HFONT { windows_targets::link!("gdi32.dll" "system" fn CreateFontIndirectExW(param0 : *const ENUMLOGFONTEXDVW) -> HFONT); - CreateFontIndirectExW(core::mem::transmute(param0)) + CreateFontIndirectExW(param0) } #[inline] pub unsafe fn CreateFontIndirectW(lplf: *const LOGFONTW) -> HFONT { windows_targets::link!("gdi32.dll" "system" fn CreateFontIndirectW(lplf : *const LOGFONTW) -> HFONT); - CreateFontIndirectW(core::mem::transmute(lplf)) + CreateFontIndirectW(lplf) } #[inline] pub unsafe fn CreateFontPackage(puchsrcbuffer: *const u8, ulsrcbuffersize: u32, ppuchfontpackagebuffer: *mut *mut u8, pulfontpackagebuffersize: *mut u32, pulbyteswritten: *mut u32, usflag: u16, usttcindex: u16, ussubsetformat: u16, ussubsetlanguage: u16, ussubsetplatform: CREATE_FONT_PACKAGE_SUBSET_PLATFORM, ussubsetencoding: CREATE_FONT_PACKAGE_SUBSET_ENCODING, pussubsetkeeplist: *const u16, ussubsetlistcount: u16, lpfnallocate: CFP_ALLOCPROC, lpfnreallocate: CFP_REALLOCPROC, lpfnfree: CFP_FREEPROC, lpvreserved: *mut core::ffi::c_void) -> u32 { windows_targets::link!("fontsub.dll" "cdecl" fn CreateFontPackage(puchsrcbuffer : *const u8, ulsrcbuffersize : u32, ppuchfontpackagebuffer : *mut *mut u8, pulfontpackagebuffersize : *mut u32, pulbyteswritten : *mut u32, usflag : u16, usttcindex : u16, ussubsetformat : u16, ussubsetlanguage : u16, ussubsetplatform : CREATE_FONT_PACKAGE_SUBSET_PLATFORM, ussubsetencoding : CREATE_FONT_PACKAGE_SUBSET_ENCODING, pussubsetkeeplist : *const u16, ussubsetlistcount : u16, lpfnallocate : CFP_ALLOCPROC, lpfnreallocate : CFP_REALLOCPROC, lpfnfree : CFP_FREEPROC, lpvreserved : *mut core::ffi::c_void) -> u32); - CreateFontPackage( - core::mem::transmute(puchsrcbuffer), - core::mem::transmute(ulsrcbuffersize), - core::mem::transmute(ppuchfontpackagebuffer), - core::mem::transmute(pulfontpackagebuffersize), - core::mem::transmute(pulbyteswritten), - core::mem::transmute(usflag), - core::mem::transmute(usttcindex), - core::mem::transmute(ussubsetformat), - core::mem::transmute(ussubsetlanguage), - core::mem::transmute(ussubsetplatform), - core::mem::transmute(ussubsetencoding), - core::mem::transmute(pussubsetkeeplist), - core::mem::transmute(ussubsetlistcount), - core::mem::transmute(lpfnallocate), - core::mem::transmute(lpfnreallocate), - core::mem::transmute(lpfnfree), - core::mem::transmute(lpvreserved), - ) + CreateFontPackage(puchsrcbuffer, ulsrcbuffersize, core::mem::transmute(ppuchfontpackagebuffer), core::mem::transmute(pulfontpackagebuffersize), core::mem::transmute(pulbyteswritten), usflag, usttcindex, ussubsetformat, ussubsetlanguage, ussubsetplatform, ussubsetencoding, pussubsetkeeplist, ussubsetlistcount, lpfnallocate, lpfnreallocate, lpfnfree, core::mem::transmute(lpvreserved)) } #[inline] pub unsafe fn CreateFontW(cheight: i32, cwidth: i32, cescapement: i32, corientation: i32, cweight: i32, bitalic: u32, bunderline: u32, bstrikeout: u32, icharset: FONT_CHARSET, ioutprecision: FONT_OUTPUT_PRECISION, iclipprecision: FONT_CLIP_PRECISION, iquality: FONT_QUALITY, ipitchandfamily: u32, pszfacename: P13) -> HFONT @@ -339,7 +321,7 @@ where P13: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateFontW(cheight : i32, cwidth : i32, cescapement : i32, corientation : i32, cweight : i32, bitalic : u32, bunderline : u32, bstrikeout : u32, icharset : u32, ioutprecision : u32, iclipprecision : u32, iquality : u32, ipitchandfamily : u32, pszfacename : windows_core::PCWSTR) -> HFONT); - CreateFontW(core::mem::transmute(cheight), core::mem::transmute(cwidth), core::mem::transmute(cescapement), core::mem::transmute(corientation), core::mem::transmute(cweight), core::mem::transmute(bitalic), core::mem::transmute(bunderline), core::mem::transmute(bstrikeout), icharset.0 as _, ioutprecision.0 as _, iclipprecision.0 as _, iquality.0 as _, core::mem::transmute(ipitchandfamily), pszfacename.param().abi()) + CreateFontW(cheight, cwidth, cescapement, corientation, cweight, bitalic, bunderline, bstrikeout, icharset.0 as _, ioutprecision.0 as _, iclipprecision.0 as _, iquality.0 as _, ipitchandfamily, pszfacename.param().abi()) } #[inline] pub unsafe fn CreateHalftonePalette(hdc: Option) -> HPALETTE { @@ -349,7 +331,7 @@ pub unsafe fn CreateHalftonePalette(hdc: Option) -> HPALETTE { #[inline] pub unsafe fn CreateHatchBrush(ihatch: HATCH_BRUSH_STYLE, color: super::super::Foundation::COLORREF) -> HBRUSH { windows_targets::link!("gdi32.dll" "system" fn CreateHatchBrush(ihatch : HATCH_BRUSH_STYLE, color : super::super::Foundation:: COLORREF) -> HBRUSH); - CreateHatchBrush(core::mem::transmute(ihatch), core::mem::transmute(color)) + CreateHatchBrush(ihatch, color) } #[inline] pub unsafe fn CreateICA(pszdriver: P0, pszdevice: P1, pszport: P2, pdm: Option<*const DEVMODEA>) -> HDC @@ -390,47 +372,47 @@ where #[inline] pub unsafe fn CreatePalette(plpal: *const LOGPALETTE) -> HPALETTE { windows_targets::link!("gdi32.dll" "system" fn CreatePalette(plpal : *const LOGPALETTE) -> HPALETTE); - CreatePalette(core::mem::transmute(plpal)) + CreatePalette(plpal) } #[inline] pub unsafe fn CreatePatternBrush(hbm: HBITMAP) -> HBRUSH { windows_targets::link!("gdi32.dll" "system" fn CreatePatternBrush(hbm : HBITMAP) -> HBRUSH); - CreatePatternBrush(core::mem::transmute(hbm)) + CreatePatternBrush(hbm) } #[inline] pub unsafe fn CreatePen(istyle: PEN_STYLE, cwidth: i32, color: super::super::Foundation::COLORREF) -> HPEN { windows_targets::link!("gdi32.dll" "system" fn CreatePen(istyle : PEN_STYLE, cwidth : i32, color : super::super::Foundation:: COLORREF) -> HPEN); - CreatePen(core::mem::transmute(istyle), core::mem::transmute(cwidth), core::mem::transmute(color)) + CreatePen(istyle, cwidth, color) } #[inline] pub unsafe fn CreatePenIndirect(plpen: *const LOGPEN) -> HPEN { windows_targets::link!("gdi32.dll" "system" fn CreatePenIndirect(plpen : *const LOGPEN) -> HPEN); - CreatePenIndirect(core::mem::transmute(plpen)) + CreatePenIndirect(plpen) } #[inline] pub unsafe fn CreatePolyPolygonRgn(pptl: *const super::super::Foundation::POINT, pc: &[i32], imode: CREATE_POLYGON_RGN_MODE) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreatePolyPolygonRgn(pptl : *const super::super::Foundation:: POINT, pc : *const i32, cpoly : i32, imode : CREATE_POLYGON_RGN_MODE) -> HRGN); - CreatePolyPolygonRgn(core::mem::transmute(pptl), core::mem::transmute(pc.as_ptr()), pc.len().try_into().unwrap(), core::mem::transmute(imode)) + CreatePolyPolygonRgn(pptl, core::mem::transmute(pc.as_ptr()), pc.len().try_into().unwrap(), imode) } #[inline] pub unsafe fn CreatePolygonRgn(pptl: &[super::super::Foundation::POINT], imode: CREATE_POLYGON_RGN_MODE) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreatePolygonRgn(pptl : *const super::super::Foundation:: POINT, cpoint : i32, imode : CREATE_POLYGON_RGN_MODE) -> HRGN); - CreatePolygonRgn(core::mem::transmute(pptl.as_ptr()), pptl.len().try_into().unwrap(), core::mem::transmute(imode)) + CreatePolygonRgn(core::mem::transmute(pptl.as_ptr()), pptl.len().try_into().unwrap(), imode) } #[inline] pub unsafe fn CreateRectRgn(x1: i32, y1: i32, x2: i32, y2: i32) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreateRectRgn(x1 : i32, y1 : i32, x2 : i32, y2 : i32) -> HRGN); - CreateRectRgn(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + CreateRectRgn(x1, y1, x2, y2) } #[inline] pub unsafe fn CreateRectRgnIndirect(lprect: *const super::super::Foundation::RECT) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreateRectRgnIndirect(lprect : *const super::super::Foundation:: RECT) -> HRGN); - CreateRectRgnIndirect(core::mem::transmute(lprect)) + CreateRectRgnIndirect(lprect) } #[inline] pub unsafe fn CreateRoundRectRgn(x1: i32, y1: i32, x2: i32, y2: i32, w: i32, h: i32) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn CreateRoundRectRgn(x1 : i32, y1 : i32, x2 : i32, y2 : i32, w : i32, h : i32) -> HRGN); - CreateRoundRectRgn(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(w), core::mem::transmute(h)) + CreateRoundRectRgn(x1, y1, x2, y2, w, h) } #[inline] pub unsafe fn CreateScalableFontResourceA(fdwhidden: u32, lpszfont: P1, lpszfile: P2, lpszpath: P3) -> windows_core::Result<()> @@ -440,7 +422,7 @@ where P3: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateScalableFontResourceA(fdwhidden : u32, lpszfont : windows_core::PCSTR, lpszfile : windows_core::PCSTR, lpszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CreateScalableFontResourceA(core::mem::transmute(fdwhidden), lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() + CreateScalableFontResourceA(fdwhidden, lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() } #[inline] pub unsafe fn CreateScalableFontResourceW(fdwhidden: u32, lpszfont: P1, lpszfile: P2, lpszpath: P3) -> windows_core::Result<()> @@ -450,22 +432,22 @@ where P3: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateScalableFontResourceW(fdwhidden : u32, lpszfont : windows_core::PCWSTR, lpszfile : windows_core::PCWSTR, lpszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CreateScalableFontResourceW(core::mem::transmute(fdwhidden), lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() + CreateScalableFontResourceW(fdwhidden, lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() } #[inline] pub unsafe fn CreateSolidBrush(color: super::super::Foundation::COLORREF) -> HBRUSH { windows_targets::link!("gdi32.dll" "system" fn CreateSolidBrush(color : super::super::Foundation:: COLORREF) -> HBRUSH); - CreateSolidBrush(core::mem::transmute(color)) + CreateSolidBrush(color) } #[inline] pub unsafe fn DPtoLP(hdc: HDC, lppt: &mut [super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn DPtoLP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> super::super::Foundation:: BOOL); - DPtoLP(core::mem::transmute(hdc), core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) + DPtoLP(hdc, core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) } #[inline] pub unsafe fn DeleteDC(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn DeleteDC(hdc : HDC) -> super::super::Foundation:: BOOL); - DeleteDC(core::mem::transmute(hdc)) + DeleteDC(hdc) } #[inline] pub unsafe fn DeleteEnhMetaFile(hmf: Option) -> super::super::Foundation::BOOL { @@ -475,87 +457,87 @@ pub unsafe fn DeleteEnhMetaFile(hmf: Option) -> super::super::Foun #[inline] pub unsafe fn DeleteMetaFile(hmf: HMETAFILE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn DeleteMetaFile(hmf : HMETAFILE) -> super::super::Foundation:: BOOL); - DeleteMetaFile(core::mem::transmute(hmf)) + DeleteMetaFile(hmf) } #[inline] pub unsafe fn DeleteObject(ho: HGDIOBJ) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn DeleteObject(ho : HGDIOBJ) -> super::super::Foundation:: BOOL); - DeleteObject(core::mem::transmute(ho)) + DeleteObject(ho) } #[inline] pub unsafe fn DrawAnimatedRects(hwnd: Option, idani: i32, lprcfrom: *const super::super::Foundation::RECT, lprcto: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawAnimatedRects(hwnd : super::super::Foundation:: HWND, idani : i32, lprcfrom : *const super::super::Foundation:: RECT, lprcto : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - DrawAnimatedRects(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(idani), core::mem::transmute(lprcfrom), core::mem::transmute(lprcto)) + DrawAnimatedRects(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), idani, lprcfrom, lprcto) } #[inline] pub unsafe fn DrawCaption(hwnd: super::super::Foundation::HWND, hdc: HDC, lprect: *const super::super::Foundation::RECT, flags: DRAW_CAPTION_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawCaption(hwnd : super::super::Foundation:: HWND, hdc : HDC, lprect : *const super::super::Foundation:: RECT, flags : DRAW_CAPTION_FLAGS) -> super::super::Foundation:: BOOL); - DrawCaption(core::mem::transmute(hwnd), core::mem::transmute(hdc), core::mem::transmute(lprect), core::mem::transmute(flags)) + DrawCaption(hwnd, hdc, lprect, flags) } #[inline] pub unsafe fn DrawEdge(hdc: HDC, qrc: *mut super::super::Foundation::RECT, edge: DRAWEDGE_FLAGS, grfflags: DRAW_EDGE_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawEdge(hdc : HDC, qrc : *mut super::super::Foundation:: RECT, edge : DRAWEDGE_FLAGS, grfflags : DRAW_EDGE_FLAGS) -> super::super::Foundation:: BOOL); - DrawEdge(core::mem::transmute(hdc), core::mem::transmute(qrc), core::mem::transmute(edge), core::mem::transmute(grfflags)) + DrawEdge(hdc, core::mem::transmute(qrc), edge, grfflags) } #[inline] pub unsafe fn DrawEscape(hdc: HDC, iescape: i32, lpin: Option<&[u8]>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn DrawEscape(hdc : HDC, iescape : i32, cjin : i32, lpin : windows_core::PCSTR) -> i32); - DrawEscape(core::mem::transmute(hdc), core::mem::transmute(iescape), lpin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + DrawEscape(hdc, iescape, lpin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn DrawFocusRect(hdc: HDC, lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawFocusRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - DrawFocusRect(core::mem::transmute(hdc), core::mem::transmute(lprc)) + DrawFocusRect(hdc, lprc) } #[inline] pub unsafe fn DrawFrameControl(param0: HDC, param1: *mut super::super::Foundation::RECT, param2: DFC_TYPE, param3: DFCS_STATE) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawFrameControl(param0 : HDC, param1 : *mut super::super::Foundation:: RECT, param2 : DFC_TYPE, param3 : DFCS_STATE) -> super::super::Foundation:: BOOL); - DrawFrameControl(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + DrawFrameControl(param0, core::mem::transmute(param1), param2, param3) } #[inline] pub unsafe fn DrawStateA(hdc: HDC, hbrfore: Option, qfncallback: Option, ldata: super::super::Foundation::LPARAM, wdata: super::super::Foundation::WPARAM, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawStateA(hdc : HDC, hbrfore : HBRUSH, qfncallback : DRAWSTATEPROC, ldata : super::super::Foundation:: LPARAM, wdata : super::super::Foundation:: WPARAM, x : i32, y : i32, cx : i32, cy : i32, uflags : DRAWSTATE_FLAGS) -> super::super::Foundation:: BOOL); - DrawStateA(core::mem::transmute(hdc), core::mem::transmute(hbrfore.unwrap_or(core::mem::zeroed())), core::mem::transmute(qfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(ldata), core::mem::transmute(wdata), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(uflags)) + DrawStateA(hdc, core::mem::transmute(hbrfore.unwrap_or(core::mem::zeroed())), core::mem::transmute(qfncallback.unwrap_or(core::mem::zeroed())), ldata, wdata, x, y, cx, cy, uflags) } #[inline] pub unsafe fn DrawStateW(hdc: HDC, hbrfore: Option, qfncallback: Option, ldata: super::super::Foundation::LPARAM, wdata: super::super::Foundation::WPARAM, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DrawStateW(hdc : HDC, hbrfore : HBRUSH, qfncallback : DRAWSTATEPROC, ldata : super::super::Foundation:: LPARAM, wdata : super::super::Foundation:: WPARAM, x : i32, y : i32, cx : i32, cy : i32, uflags : DRAWSTATE_FLAGS) -> super::super::Foundation:: BOOL); - DrawStateW(core::mem::transmute(hdc), core::mem::transmute(hbrfore.unwrap_or(core::mem::zeroed())), core::mem::transmute(qfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(ldata), core::mem::transmute(wdata), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(uflags)) + DrawStateW(hdc, core::mem::transmute(hbrfore.unwrap_or(core::mem::zeroed())), core::mem::transmute(qfncallback.unwrap_or(core::mem::zeroed())), ldata, wdata, x, y, cx, cy, uflags) } #[inline] pub unsafe fn DrawTextA(hdc: HDC, lpchtext: &mut [u8], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT) -> i32 { windows_targets::link!("user32.dll" "system" fn DrawTextA(hdc : HDC, lpchtext : windows_core::PCSTR, cchtext : i32, lprc : *mut super::super::Foundation:: RECT, format : DRAW_TEXT_FORMAT) -> i32); - DrawTextA(core::mem::transmute(hdc), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), core::mem::transmute(format)) + DrawTextA(hdc, core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), format) } #[inline] pub unsafe fn DrawTextExA(hdc: HDC, lpchtext: &mut [u8], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT, lpdtp: Option<*const DRAWTEXTPARAMS>) -> i32 { windows_targets::link!("user32.dll" "system" fn DrawTextExA(hdc : HDC, lpchtext : windows_core::PSTR, cchtext : i32, lprc : *mut super::super::Foundation:: RECT, format : DRAW_TEXT_FORMAT, lpdtp : *const DRAWTEXTPARAMS) -> i32); - DrawTextExA(core::mem::transmute(hdc), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), core::mem::transmute(format), core::mem::transmute(lpdtp.unwrap_or(core::mem::zeroed()))) + DrawTextExA(hdc, core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), format, core::mem::transmute(lpdtp.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DrawTextExW(hdc: HDC, lpchtext: &mut [u16], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT, lpdtp: Option<*const DRAWTEXTPARAMS>) -> i32 { windows_targets::link!("user32.dll" "system" fn DrawTextExW(hdc : HDC, lpchtext : windows_core::PWSTR, cchtext : i32, lprc : *mut super::super::Foundation:: RECT, format : DRAW_TEXT_FORMAT, lpdtp : *const DRAWTEXTPARAMS) -> i32); - DrawTextExW(core::mem::transmute(hdc), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), core::mem::transmute(format), core::mem::transmute(lpdtp.unwrap_or(core::mem::zeroed()))) + DrawTextExW(hdc, core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), format, core::mem::transmute(lpdtp.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DrawTextW(hdc: HDC, lpchtext: &mut [u16], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT) -> i32 { windows_targets::link!("user32.dll" "system" fn DrawTextW(hdc : HDC, lpchtext : windows_core::PCWSTR, cchtext : i32, lprc : *mut super::super::Foundation:: RECT, format : DRAW_TEXT_FORMAT) -> i32); - DrawTextW(core::mem::transmute(hdc), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), core::mem::transmute(format)) + DrawTextW(hdc, core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), core::mem::transmute(lprc), format) } #[inline] pub unsafe fn Ellipse(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Ellipse(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); - Ellipse(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)) + Ellipse(hdc, left, top, right, bottom) } #[inline] pub unsafe fn EndPaint(hwnd: super::super::Foundation::HWND, lppaint: *const PAINTSTRUCT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EndPaint(hwnd : super::super::Foundation:: HWND, lppaint : *const PAINTSTRUCT) -> super::super::Foundation:: BOOL); - EndPaint(core::mem::transmute(hwnd), core::mem::transmute(lppaint)) + EndPaint(hwnd, lppaint) } #[inline] pub unsafe fn EndPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EndPath(hdc : HDC) -> super::super::Foundation:: BOOL); - EndPath(core::mem::transmute(hdc)) + EndPath(hdc) } #[inline] pub unsafe fn EnumDisplayDevicesA(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEA, dwflags: u32) -> super::super::Foundation::BOOL @@ -563,7 +545,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDisplayDevicesA(lpdevice : windows_core::PCSTR, idevnum : u32, lpdisplaydevice : *mut DISPLAY_DEVICEA, dwflags : u32) -> super::super::Foundation:: BOOL); - EnumDisplayDevicesA(lpdevice.param().abi(), core::mem::transmute(idevnum), core::mem::transmute(lpdisplaydevice), core::mem::transmute(dwflags)) + EnumDisplayDevicesA(lpdevice.param().abi(), idevnum, core::mem::transmute(lpdisplaydevice), dwflags) } #[inline] pub unsafe fn EnumDisplayDevicesW(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEW, dwflags: u32) -> super::super::Foundation::BOOL @@ -571,12 +553,12 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDisplayDevicesW(lpdevice : windows_core::PCWSTR, idevnum : u32, lpdisplaydevice : *mut DISPLAY_DEVICEW, dwflags : u32) -> super::super::Foundation:: BOOL); - EnumDisplayDevicesW(lpdevice.param().abi(), core::mem::transmute(idevnum), core::mem::transmute(lpdisplaydevice), core::mem::transmute(dwflags)) + EnumDisplayDevicesW(lpdevice.param().abi(), idevnum, core::mem::transmute(lpdisplaydevice), dwflags) } #[inline] pub unsafe fn EnumDisplayMonitors(hdc: Option, lprcclip: Option<*const super::super::Foundation::RECT>, lpfnenum: MONITORENUMPROC, dwdata: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EnumDisplayMonitors(hdc : HDC, lprcclip : *const super::super::Foundation:: RECT, lpfnenum : MONITORENUMPROC, dwdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumDisplayMonitors(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcclip.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfnenum), core::mem::transmute(dwdata)) + EnumDisplayMonitors(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcclip.unwrap_or(core::mem::zeroed())), lpfnenum, dwdata) } #[inline] pub unsafe fn EnumDisplaySettingsA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA) -> super::super::Foundation::BOOL @@ -584,7 +566,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsA(lpszdevicename : windows_core::PCSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEA) -> super::super::Foundation:: BOOL); - EnumDisplaySettingsA(lpszdevicename.param().abi(), core::mem::transmute(imodenum), core::mem::transmute(lpdevmode)) + EnumDisplaySettingsA(lpszdevicename.param().abi(), imodenum, core::mem::transmute(lpdevmode)) } #[inline] pub unsafe fn EnumDisplaySettingsExA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA, dwflags: ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation::BOOL @@ -592,7 +574,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsExA(lpszdevicename : windows_core::PCSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEA, dwflags : ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation:: BOOL); - EnumDisplaySettingsExA(lpszdevicename.param().abi(), core::mem::transmute(imodenum), core::mem::transmute(lpdevmode), core::mem::transmute(dwflags)) + EnumDisplaySettingsExA(lpszdevicename.param().abi(), imodenum, core::mem::transmute(lpdevmode), dwflags) } #[inline] pub unsafe fn EnumDisplaySettingsExW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW, dwflags: ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation::BOOL @@ -600,7 +582,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsExW(lpszdevicename : windows_core::PCWSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEW, dwflags : ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation:: BOOL); - EnumDisplaySettingsExW(lpszdevicename.param().abi(), core::mem::transmute(imodenum), core::mem::transmute(lpdevmode), core::mem::transmute(dwflags)) + EnumDisplaySettingsExW(lpszdevicename.param().abi(), imodenum, core::mem::transmute(lpdevmode), dwflags) } #[inline] pub unsafe fn EnumDisplaySettingsW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW) -> super::super::Foundation::BOOL @@ -608,12 +590,12 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsW(lpszdevicename : windows_core::PCWSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEW) -> super::super::Foundation:: BOOL); - EnumDisplaySettingsW(lpszdevicename.param().abi(), core::mem::transmute(imodenum), core::mem::transmute(lpdevmode)) + EnumDisplaySettingsW(lpszdevicename.param().abi(), imodenum, core::mem::transmute(lpdevmode)) } #[inline] pub unsafe fn EnumEnhMetaFile(hdc: Option, hmf: HENHMETAFILE, proc: ENHMFENUMPROC, param3: Option<*const core::ffi::c_void>, lprect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EnumEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, proc : ENHMFENUMPROC, param3 : *const core::ffi::c_void, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - EnumEnhMetaFile(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmf), core::mem::transmute(proc), core::mem::transmute(param3.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed()))) + EnumEnhMetaFile(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), hmf, proc, core::mem::transmute(param3.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumFontFamiliesA(hdc: HDC, lplogfont: P1, lpproc: FONTENUMPROCA, lparam: super::super::Foundation::LPARAM) -> i32 @@ -621,17 +603,17 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumFontFamiliesA(hdc : HDC, lplogfont : windows_core::PCSTR, lpproc : FONTENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumFontFamiliesA(core::mem::transmute(hdc), lplogfont.param().abi(), core::mem::transmute(lpproc), core::mem::transmute(lparam)) + EnumFontFamiliesA(hdc, lplogfont.param().abi(), lpproc, lparam) } #[inline] pub unsafe fn EnumFontFamiliesExA(hdc: HDC, lplogfont: *const LOGFONTA, lpproc: FONTENUMPROCA, lparam: super::super::Foundation::LPARAM, dwflags: u32) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EnumFontFamiliesExA(hdc : HDC, lplogfont : *const LOGFONTA, lpproc : FONTENUMPROCA, lparam : super::super::Foundation:: LPARAM, dwflags : u32) -> i32); - EnumFontFamiliesExA(core::mem::transmute(hdc), core::mem::transmute(lplogfont), core::mem::transmute(lpproc), core::mem::transmute(lparam), core::mem::transmute(dwflags)) + EnumFontFamiliesExA(hdc, lplogfont, lpproc, lparam, dwflags) } #[inline] pub unsafe fn EnumFontFamiliesExW(hdc: HDC, lplogfont: *const LOGFONTW, lpproc: FONTENUMPROCW, lparam: super::super::Foundation::LPARAM, dwflags: u32) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EnumFontFamiliesExW(hdc : HDC, lplogfont : *const LOGFONTW, lpproc : FONTENUMPROCW, lparam : super::super::Foundation:: LPARAM, dwflags : u32) -> i32); - EnumFontFamiliesExW(core::mem::transmute(hdc), core::mem::transmute(lplogfont), core::mem::transmute(lpproc), core::mem::transmute(lparam), core::mem::transmute(dwflags)) + EnumFontFamiliesExW(hdc, lplogfont, lpproc, lparam, dwflags) } #[inline] pub unsafe fn EnumFontFamiliesW(hdc: HDC, lplogfont: P1, lpproc: FONTENUMPROCW, lparam: super::super::Foundation::LPARAM) -> i32 @@ -639,7 +621,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumFontFamiliesW(hdc : HDC, lplogfont : windows_core::PCWSTR, lpproc : FONTENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumFontFamiliesW(core::mem::transmute(hdc), lplogfont.param().abi(), core::mem::transmute(lpproc), core::mem::transmute(lparam)) + EnumFontFamiliesW(hdc, lplogfont.param().abi(), lpproc, lparam) } #[inline] pub unsafe fn EnumFontsA(hdc: HDC, lplogfont: P1, lpproc: FONTENUMPROCA, lparam: super::super::Foundation::LPARAM) -> i32 @@ -647,7 +629,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumFontsA(hdc : HDC, lplogfont : windows_core::PCSTR, lpproc : FONTENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumFontsA(core::mem::transmute(hdc), lplogfont.param().abi(), core::mem::transmute(lpproc), core::mem::transmute(lparam)) + EnumFontsA(hdc, lplogfont.param().abi(), lpproc, lparam) } #[inline] pub unsafe fn EnumFontsW(hdc: HDC, lplogfont: P1, lpproc: FONTENUMPROCW, lparam: super::super::Foundation::LPARAM) -> i32 @@ -655,57 +637,57 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumFontsW(hdc : HDC, lplogfont : windows_core::PCWSTR, lpproc : FONTENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumFontsW(core::mem::transmute(hdc), lplogfont.param().abi(), core::mem::transmute(lpproc), core::mem::transmute(lparam)) + EnumFontsW(hdc, lplogfont.param().abi(), lpproc, lparam) } #[inline] pub unsafe fn EnumMetaFile(hdc: HDC, hmf: HMETAFILE, proc: MFENUMPROC, param3: Option) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EnumMetaFile(hdc : HDC, hmf : HMETAFILE, proc : MFENUMPROC, param3 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumMetaFile(core::mem::transmute(hdc), core::mem::transmute(hmf), core::mem::transmute(proc), core::mem::transmute(param3.unwrap_or(core::mem::zeroed()))) + EnumMetaFile(hdc, hmf, proc, core::mem::transmute(param3.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumObjects(hdc: HDC, ntype: OBJ_TYPE, lpfunc: GOBJENUMPROC, lparam: super::super::Foundation::LPARAM) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EnumObjects(hdc : HDC, ntype : OBJ_TYPE, lpfunc : GOBJENUMPROC, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumObjects(core::mem::transmute(hdc), core::mem::transmute(ntype), core::mem::transmute(lpfunc), core::mem::transmute(lparam)) + EnumObjects(hdc, ntype, lpfunc, lparam) } #[inline] pub unsafe fn EqualRect(lprc1: *const super::super::Foundation::RECT, lprc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EqualRect(lprc1 : *const super::super::Foundation:: RECT, lprc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - EqualRect(core::mem::transmute(lprc1), core::mem::transmute(lprc2)) + EqualRect(lprc1, lprc2) } #[inline] pub unsafe fn EqualRgn(hrgn1: HRGN, hrgn2: HRGN) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn EqualRgn(hrgn1 : HRGN, hrgn2 : HRGN) -> super::super::Foundation:: BOOL); - EqualRgn(core::mem::transmute(hrgn1), core::mem::transmute(hrgn2)) + EqualRgn(hrgn1, hrgn2) } #[inline] pub unsafe fn ExcludeClipRect(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn ExcludeClipRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> GDI_REGION_TYPE); - ExcludeClipRect(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)) + ExcludeClipRect(hdc, left, top, right, bottom) } #[inline] pub unsafe fn ExcludeUpdateRgn(hdc: HDC, hwnd: super::super::Foundation::HWND) -> i32 { windows_targets::link!("user32.dll" "system" fn ExcludeUpdateRgn(hdc : HDC, hwnd : super::super::Foundation:: HWND) -> i32); - ExcludeUpdateRgn(core::mem::transmute(hdc), core::mem::transmute(hwnd)) + ExcludeUpdateRgn(hdc, hwnd) } #[inline] pub unsafe fn ExtCreatePen(ipenstyle: PEN_STYLE, cwidth: u32, plbrush: *const LOGBRUSH, pstyle: Option<&[u32]>) -> HPEN { windows_targets::link!("gdi32.dll" "system" fn ExtCreatePen(ipenstyle : u32, cwidth : u32, plbrush : *const LOGBRUSH, cstyle : u32, pstyle : *const u32) -> HPEN); - ExtCreatePen(ipenstyle.0 as _, core::mem::transmute(cwidth), core::mem::transmute(plbrush), pstyle.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pstyle.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + ExtCreatePen(ipenstyle.0 as _, cwidth, plbrush, pstyle.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pstyle.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn ExtCreateRegion(lpx: Option<*const XFORM>, ncount: u32, lpdata: *const RGNDATA) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn ExtCreateRegion(lpx : *const XFORM, ncount : u32, lpdata : *const RGNDATA) -> HRGN); - ExtCreateRegion(core::mem::transmute(lpx.unwrap_or(core::mem::zeroed())), core::mem::transmute(ncount), core::mem::transmute(lpdata)) + ExtCreateRegion(core::mem::transmute(lpx.unwrap_or(core::mem::zeroed())), ncount, lpdata) } #[inline] pub unsafe fn ExtFloodFill(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF, r#type: EXT_FLOOD_FILL_TYPE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ExtFloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF, r#type : EXT_FLOOD_FILL_TYPE) -> super::super::Foundation:: BOOL); - ExtFloodFill(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(color), core::mem::transmute(r#type)) + ExtFloodFill(hdc, x, y, color, r#type) } #[inline] pub unsafe fn ExtSelectClipRgn(hdc: HDC, hrgn: Option, mode: RGN_COMBINE_MODE) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn ExtSelectClipRgn(hdc : HDC, hrgn : HRGN, mode : RGN_COMBINE_MODE) -> GDI_REGION_TYPE); - ExtSelectClipRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), core::mem::transmute(mode)) + ExtSelectClipRgn(hdc, core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), mode) } #[inline] pub unsafe fn ExtTextOutA(hdc: HDC, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P5, c: u32, lpdx: Option<*const i32>) -> super::super::Foundation::BOOL @@ -713,7 +695,7 @@ where P5: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ExtTextOutA(hdc : HDC, x : i32, y : i32, options : ETO_OPTIONS, lprect : *const super::super::Foundation:: RECT, lpstring : windows_core::PCSTR, c : u32, lpdx : *const i32) -> super::super::Foundation:: BOOL); - ExtTextOutA(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(options), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpstring.param().abi(), core::mem::transmute(c), core::mem::transmute(lpdx.unwrap_or(core::mem::zeroed()))) + ExtTextOutA(hdc, x, y, options, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpstring.param().abi(), c, core::mem::transmute(lpdx.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExtTextOutW(hdc: HDC, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P5, c: u32, lpdx: Option<*const i32>) -> super::super::Foundation::BOOL @@ -721,57 +703,57 @@ where P5: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ExtTextOutW(hdc : HDC, x : i32, y : i32, options : ETO_OPTIONS, lprect : *const super::super::Foundation:: RECT, lpstring : windows_core::PCWSTR, c : u32, lpdx : *const i32) -> super::super::Foundation:: BOOL); - ExtTextOutW(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(options), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpstring.param().abi(), core::mem::transmute(c), core::mem::transmute(lpdx.unwrap_or(core::mem::zeroed()))) + ExtTextOutW(hdc, x, y, options, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpstring.param().abi(), c, core::mem::transmute(lpdx.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FillPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn FillPath(hdc : HDC) -> super::super::Foundation:: BOOL); - FillPath(core::mem::transmute(hdc)) + FillPath(hdc) } #[inline] pub unsafe fn FillRect(hdc: HDC, lprc: *const super::super::Foundation::RECT, hbr: HBRUSH) -> i32 { windows_targets::link!("user32.dll" "system" fn FillRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT, hbr : HBRUSH) -> i32); - FillRect(core::mem::transmute(hdc), core::mem::transmute(lprc), core::mem::transmute(hbr)) + FillRect(hdc, lprc, hbr) } #[inline] pub unsafe fn FillRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn FillRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH) -> super::super::Foundation:: BOOL); - FillRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn), core::mem::transmute(hbr)) + FillRgn(hdc, hrgn, hbr) } #[inline] pub unsafe fn FixBrushOrgEx(hdc: HDC, x: i32, y: i32, ptl: Option<*const super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn FixBrushOrgEx(hdc : HDC, x : i32, y : i32, ptl : *const super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - FixBrushOrgEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(ptl.unwrap_or(core::mem::zeroed()))) + FixBrushOrgEx(hdc, x, y, core::mem::transmute(ptl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FlattenPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn FlattenPath(hdc : HDC) -> super::super::Foundation:: BOOL); - FlattenPath(core::mem::transmute(hdc)) + FlattenPath(hdc) } #[inline] pub unsafe fn FloodFill(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn FloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); - FloodFill(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(color)) + FloodFill(hdc, x, y, color) } #[inline] pub unsafe fn FrameRect(hdc: HDC, lprc: *const super::super::Foundation::RECT, hbr: HBRUSH) -> i32 { windows_targets::link!("user32.dll" "system" fn FrameRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT, hbr : HBRUSH) -> i32); - FrameRect(core::mem::transmute(hdc), core::mem::transmute(lprc), core::mem::transmute(hbr)) + FrameRect(hdc, lprc, hbr) } #[inline] pub unsafe fn FrameRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH, w: i32, h: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn FrameRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH, w : i32, h : i32) -> super::super::Foundation:: BOOL); - FrameRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn), core::mem::transmute(hbr), core::mem::transmute(w), core::mem::transmute(h)) + FrameRgn(hdc, hrgn, hbr, w, h) } #[inline] pub unsafe fn GdiAlphaBlend(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiAlphaBlend(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, ftn : BLENDFUNCTION) -> super::super::Foundation:: BOOL); - GdiAlphaBlend(core::mem::transmute(hdcdest), core::mem::transmute(xorigindest), core::mem::transmute(yorigindest), core::mem::transmute(wdest), core::mem::transmute(hdest), core::mem::transmute(hdcsrc), core::mem::transmute(xoriginsrc), core::mem::transmute(yoriginsrc), core::mem::transmute(wsrc), core::mem::transmute(hsrc), core::mem::transmute(ftn)) + GdiAlphaBlend(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) } #[inline] pub unsafe fn GdiComment(hdc: HDC, lpdata: &[u8]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiComment(hdc : HDC, nsize : u32, lpdata : *const u8) -> super::super::Foundation:: BOOL); - GdiComment(core::mem::transmute(hdc), lpdata.len().try_into().unwrap(), core::mem::transmute(lpdata.as_ptr())) + GdiComment(hdc, lpdata.len().try_into().unwrap(), core::mem::transmute(lpdata.as_ptr())) } #[inline] pub unsafe fn GdiFlush() -> super::super::Foundation::BOOL { @@ -786,152 +768,152 @@ pub unsafe fn GdiGetBatchLimit() -> u32 { #[inline] pub unsafe fn GdiGradientFill(hdc: HDC, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, ncount: u32, ulmode: GRADIENT_FILL) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiGradientFill(hdc : HDC, pvertex : *const TRIVERTEX, nvertex : u32, pmesh : *const core::ffi::c_void, ncount : u32, ulmode : GRADIENT_FILL) -> super::super::Foundation:: BOOL); - GdiGradientFill(core::mem::transmute(hdc), core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), core::mem::transmute(pmesh), core::mem::transmute(ncount), core::mem::transmute(ulmode)) + GdiGradientFill(hdc, core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, ncount, ulmode) } #[inline] pub unsafe fn GdiSetBatchLimit(dw: u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GdiSetBatchLimit(dw : u32) -> u32); - GdiSetBatchLimit(core::mem::transmute(dw)) + GdiSetBatchLimit(dw) } #[inline] pub unsafe fn GdiTransparentBlt(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiTransparentBlt(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, crtransparent : u32) -> super::super::Foundation:: BOOL); - GdiTransparentBlt(core::mem::transmute(hdcdest), core::mem::transmute(xorigindest), core::mem::transmute(yorigindest), core::mem::transmute(wdest), core::mem::transmute(hdest), core::mem::transmute(hdcsrc), core::mem::transmute(xoriginsrc), core::mem::transmute(yoriginsrc), core::mem::transmute(wsrc), core::mem::transmute(hsrc), core::mem::transmute(crtransparent)) + GdiTransparentBlt(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) } #[inline] pub unsafe fn GetArcDirection(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetArcDirection(hdc : HDC) -> i32); - GetArcDirection(core::mem::transmute(hdc)) + GetArcDirection(hdc) } #[inline] pub unsafe fn GetAspectRatioFilterEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetAspectRatioFilterEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetAspectRatioFilterEx(core::mem::transmute(hdc), core::mem::transmute(lpsize)) + GetAspectRatioFilterEx(hdc, core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetBitmapBits(hbit: HBITMAP, cb: i32, lpvbits: *mut core::ffi::c_void) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetBitmapBits(hbit : HBITMAP, cb : i32, lpvbits : *mut core::ffi::c_void) -> i32); - GetBitmapBits(core::mem::transmute(hbit), core::mem::transmute(cb), core::mem::transmute(lpvbits)) + GetBitmapBits(hbit, cb, core::mem::transmute(lpvbits)) } #[inline] pub unsafe fn GetBitmapDimensionEx(hbit: HBITMAP, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetBitmapDimensionEx(hbit : HBITMAP, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetBitmapDimensionEx(core::mem::transmute(hbit), core::mem::transmute(lpsize)) + GetBitmapDimensionEx(hbit, core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetBkColor(hdc: HDC) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn GetBkColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetBkColor(core::mem::transmute(hdc)) + GetBkColor(hdc) } #[inline] pub unsafe fn GetBkMode(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetBkMode(hdc : HDC) -> i32); - GetBkMode(core::mem::transmute(hdc)) + GetBkMode(hdc) } #[inline] pub unsafe fn GetBoundsRect(hdc: HDC, lprect: *mut super::super::Foundation::RECT, flags: u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetBoundsRect(hdc : HDC, lprect : *mut super::super::Foundation:: RECT, flags : u32) -> u32); - GetBoundsRect(core::mem::transmute(hdc), core::mem::transmute(lprect), core::mem::transmute(flags)) + GetBoundsRect(hdc, core::mem::transmute(lprect), flags) } #[inline] pub unsafe fn GetBrushOrgEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetBrushOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetBrushOrgEx(core::mem::transmute(hdc), core::mem::transmute(lppt)) + GetBrushOrgEx(hdc, core::mem::transmute(lppt)) } #[inline] pub unsafe fn GetCharABCWidthsA(hdc: HDC, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsA(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> super::super::Foundation:: BOOL); - GetCharABCWidthsA(core::mem::transmute(hdc), core::mem::transmute(wfirst), core::mem::transmute(wlast), core::mem::transmute(lpabc)) + GetCharABCWidthsA(hdc, wfirst, wlast, core::mem::transmute(lpabc)) } #[inline] pub unsafe fn GetCharABCWidthsFloatA(hdc: HDC, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> super::super::Foundation:: BOOL); - GetCharABCWidthsFloatA(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpabc)) + GetCharABCWidthsFloatA(hdc, ifirst, ilast, core::mem::transmute(lpabc)) } #[inline] pub unsafe fn GetCharABCWidthsFloatW(hdc: HDC, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> super::super::Foundation:: BOOL); - GetCharABCWidthsFloatW(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpabc)) + GetCharABCWidthsFloatW(hdc, ifirst, ilast, core::mem::transmute(lpabc)) } #[inline] pub unsafe fn GetCharABCWidthsI(hdc: HDC, gifirst: u32, cgi: u32, pgi: Option<*const u16>, pabc: *mut ABC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsI(hdc : HDC, gifirst : u32, cgi : u32, pgi : *const u16, pabc : *mut ABC) -> super::super::Foundation:: BOOL); - GetCharABCWidthsI(core::mem::transmute(hdc), core::mem::transmute(gifirst), core::mem::transmute(cgi), core::mem::transmute(pgi.unwrap_or(core::mem::zeroed())), core::mem::transmute(pabc)) + GetCharABCWidthsI(hdc, gifirst, cgi, core::mem::transmute(pgi.unwrap_or(core::mem::zeroed())), core::mem::transmute(pabc)) } #[inline] pub unsafe fn GetCharABCWidthsW(hdc: HDC, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsW(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> super::super::Foundation:: BOOL); - GetCharABCWidthsW(core::mem::transmute(hdc), core::mem::transmute(wfirst), core::mem::transmute(wlast), core::mem::transmute(lpabc)) + GetCharABCWidthsW(hdc, wfirst, wlast, core::mem::transmute(lpabc)) } #[inline] pub unsafe fn GetCharWidth32A(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32A(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidth32A(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpbuffer)) + GetCharWidth32A(hdc, ifirst, ilast, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn GetCharWidth32W(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32W(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidth32W(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpbuffer)) + GetCharWidth32W(hdc, ifirst, ilast, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn GetCharWidthA(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidthA(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpbuffer)) + GetCharWidthA(hdc, ifirst, ilast, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn GetCharWidthFloatA(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> super::super::Foundation:: BOOL); - GetCharWidthFloatA(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpbuffer)) + GetCharWidthFloatA(hdc, ifirst, ilast, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn GetCharWidthFloatW(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> super::super::Foundation:: BOOL); - GetCharWidthFloatW(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpbuffer)) + GetCharWidthFloatW(hdc, ifirst, ilast, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn GetCharWidthI(hdc: HDC, gifirst: u32, cgi: u32, pgi: Option<*const u16>, piwidths: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthI(hdc : HDC, gifirst : u32, cgi : u32, pgi : *const u16, piwidths : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidthI(core::mem::transmute(hdc), core::mem::transmute(gifirst), core::mem::transmute(cgi), core::mem::transmute(pgi.unwrap_or(core::mem::zeroed())), core::mem::transmute(piwidths)) + GetCharWidthI(hdc, gifirst, cgi, core::mem::transmute(pgi.unwrap_or(core::mem::zeroed())), core::mem::transmute(piwidths)) } #[inline] pub unsafe fn GetCharWidthW(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidthW(core::mem::transmute(hdc), core::mem::transmute(ifirst), core::mem::transmute(ilast), core::mem::transmute(lpbuffer)) + GetCharWidthW(hdc, ifirst, ilast, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn GetCharacterPlacementA(hdc: HDC, lpstring: &[u8], nmexextent: i32, lpresults: *mut GCP_RESULTSA, dwflags: GET_CHARACTER_PLACEMENT_FLAGS) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetCharacterPlacementA(hdc : HDC, lpstring : windows_core::PCSTR, ncount : i32, nmexextent : i32, lpresults : *mut GCP_RESULTSA, dwflags : GET_CHARACTER_PLACEMENT_FLAGS) -> u32); - GetCharacterPlacementA(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(nmexextent), core::mem::transmute(lpresults), core::mem::transmute(dwflags)) + GetCharacterPlacementA(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), nmexextent, core::mem::transmute(lpresults), dwflags) } #[inline] pub unsafe fn GetCharacterPlacementW(hdc: HDC, lpstring: &[u16], nmexextent: i32, lpresults: *mut GCP_RESULTSW, dwflags: GET_CHARACTER_PLACEMENT_FLAGS) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetCharacterPlacementW(hdc : HDC, lpstring : windows_core::PCWSTR, ncount : i32, nmexextent : i32, lpresults : *mut GCP_RESULTSW, dwflags : GET_CHARACTER_PLACEMENT_FLAGS) -> u32); - GetCharacterPlacementW(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(nmexextent), core::mem::transmute(lpresults), core::mem::transmute(dwflags)) + GetCharacterPlacementW(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), nmexextent, core::mem::transmute(lpresults), dwflags) } #[inline] pub unsafe fn GetClipBox(hdc: HDC, lprect: *mut super::super::Foundation::RECT) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn GetClipBox(hdc : HDC, lprect : *mut super::super::Foundation:: RECT) -> GDI_REGION_TYPE); - GetClipBox(core::mem::transmute(hdc), core::mem::transmute(lprect)) + GetClipBox(hdc, core::mem::transmute(lprect)) } #[inline] pub unsafe fn GetClipRgn(hdc: HDC, hrgn: HRGN) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetClipRgn(hdc : HDC, hrgn : HRGN) -> i32); - GetClipRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn)) + GetClipRgn(hdc, hrgn) } #[inline] pub unsafe fn GetColorAdjustment(hdc: HDC, lpca: *mut COLORADJUSTMENT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetColorAdjustment(hdc : HDC, lpca : *mut COLORADJUSTMENT) -> super::super::Foundation:: BOOL); - GetColorAdjustment(core::mem::transmute(hdc), core::mem::transmute(lpca)) + GetColorAdjustment(hdc, core::mem::transmute(lpca)) } #[inline] pub unsafe fn GetCurrentObject(hdc: HDC, r#type: OBJ_TYPE) -> HGDIOBJ { windows_targets::link!("gdi32.dll" "system" fn GetCurrentObject(hdc : HDC, r#type : u32) -> HGDIOBJ); - GetCurrentObject(core::mem::transmute(hdc), r#type.0 as _) + GetCurrentObject(hdc, r#type.0 as _) } #[inline] pub unsafe fn GetCurrentPositionEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetCurrentPositionEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetCurrentPositionEx(core::mem::transmute(hdc), core::mem::transmute(lppt)) + GetCurrentPositionEx(hdc, core::mem::transmute(lppt)) } #[inline] pub unsafe fn GetDC(hwnd: Option) -> HDC { @@ -941,32 +923,32 @@ pub unsafe fn GetDC(hwnd: Option) -> HDC { #[inline] pub unsafe fn GetDCBrushColor(hdc: HDC) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn GetDCBrushColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetDCBrushColor(core::mem::transmute(hdc)) + GetDCBrushColor(hdc) } #[inline] pub unsafe fn GetDCEx(hwnd: Option, hrgnclip: Option, flags: GET_DCX_FLAGS) -> HDC { windows_targets::link!("user32.dll" "system" fn GetDCEx(hwnd : super::super::Foundation:: HWND, hrgnclip : HRGN, flags : GET_DCX_FLAGS) -> HDC); - GetDCEx(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnclip.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + GetDCEx(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnclip.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn GetDCOrgEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetDCOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetDCOrgEx(core::mem::transmute(hdc), core::mem::transmute(lppt)) + GetDCOrgEx(hdc, core::mem::transmute(lppt)) } #[inline] pub unsafe fn GetDCPenColor(hdc: HDC) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn GetDCPenColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetDCPenColor(core::mem::transmute(hdc)) + GetDCPenColor(hdc) } #[inline] pub unsafe fn GetDIBColorTable(hdc: HDC, istart: u32, prgbq: &mut [RGBQUAD]) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetDIBColorTable(hdc : HDC, istart : u32, centries : u32, prgbq : *mut RGBQUAD) -> u32); - GetDIBColorTable(core::mem::transmute(hdc), core::mem::transmute(istart), prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) + GetDIBColorTable(hdc, istart, prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) } #[inline] pub unsafe fn GetDIBits(hdc: HDC, hbm: HBITMAP, start: u32, clines: u32, lpvbits: Option<*mut core::ffi::c_void>, lpbmi: *mut BITMAPINFO, usage: DIB_USAGE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetDIBits(hdc : HDC, hbm : HBITMAP, start : u32, clines : u32, lpvbits : *mut core::ffi::c_void, lpbmi : *mut BITMAPINFO, usage : DIB_USAGE) -> i32); - GetDIBits(core::mem::transmute(hdc), core::mem::transmute(hbm), core::mem::transmute(start), core::mem::transmute(clines), core::mem::transmute(lpvbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbmi), core::mem::transmute(usage)) + GetDIBits(hdc, hbm, start, clines, core::mem::transmute(lpvbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbmi), usage) } #[inline] pub unsafe fn GetDeviceCaps(hdc: Option, index: GET_DEVICE_CAPS_INDEX) -> i32 { @@ -984,27 +966,27 @@ where #[inline] pub unsafe fn GetEnhMetaFileBits(hemf: HENHMETAFILE, lpdata: Option<&mut [u8]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileBits(hemf : HENHMETAFILE, nsize : u32, lpdata : *mut u8) -> u32); - GetEnhMetaFileBits(core::mem::transmute(hemf), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetEnhMetaFileBits(hemf, lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetEnhMetaFileDescriptionA(hemf: HENHMETAFILE, lpdescription: Option<&mut [u8]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileDescriptionA(hemf : HENHMETAFILE, cchbuffer : u32, lpdescription : windows_core::PSTR) -> u32); - GetEnhMetaFileDescriptionA(core::mem::transmute(hemf), lpdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetEnhMetaFileDescriptionA(hemf, lpdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetEnhMetaFileDescriptionW(hemf: HENHMETAFILE, lpdescription: Option<&mut [u16]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileDescriptionW(hemf : HENHMETAFILE, cchbuffer : u32, lpdescription : windows_core::PWSTR) -> u32); - GetEnhMetaFileDescriptionW(core::mem::transmute(hemf), lpdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetEnhMetaFileDescriptionW(hemf, lpdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetEnhMetaFileHeader(hemf: HENHMETAFILE, nsize: u32, lpenhmetaheader: Option<*mut ENHMETAHEADER>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileHeader(hemf : HENHMETAFILE, nsize : u32, lpenhmetaheader : *mut ENHMETAHEADER) -> u32); - GetEnhMetaFileHeader(core::mem::transmute(hemf), core::mem::transmute(nsize), core::mem::transmute(lpenhmetaheader.unwrap_or(core::mem::zeroed()))) + GetEnhMetaFileHeader(hemf, nsize, core::mem::transmute(lpenhmetaheader.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetEnhMetaFilePaletteEntries(hemf: HENHMETAFILE, lppaletteentries: Option<&mut [PALETTEENTRY]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFilePaletteEntries(hemf : HENHMETAFILE, nnumentries : u32, lppaletteentries : *mut PALETTEENTRY) -> u32); - GetEnhMetaFilePaletteEntries(core::mem::transmute(hemf), lppaletteentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lppaletteentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetEnhMetaFilePaletteEntries(hemf, lppaletteentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lppaletteentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetEnhMetaFileW(lpname: P0) -> HENHMETAFILE @@ -1017,17 +999,17 @@ where #[inline] pub unsafe fn GetFontData(hdc: HDC, dwtable: u32, dwoffset: u32, pvbuffer: Option<*mut core::ffi::c_void>, cjbuffer: u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetFontData(hdc : HDC, dwtable : u32, dwoffset : u32, pvbuffer : *mut core::ffi::c_void, cjbuffer : u32) -> u32); - GetFontData(core::mem::transmute(hdc), core::mem::transmute(dwtable), core::mem::transmute(dwoffset), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cjbuffer)) + GetFontData(hdc, dwtable, dwoffset, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), cjbuffer) } #[inline] pub unsafe fn GetFontLanguageInfo(hdc: HDC) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetFontLanguageInfo(hdc : HDC) -> u32); - GetFontLanguageInfo(core::mem::transmute(hdc)) + GetFontLanguageInfo(hdc) } #[inline] pub unsafe fn GetFontUnicodeRanges(hdc: HDC, lpgs: Option<*mut GLYPHSET>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetFontUnicodeRanges(hdc : HDC, lpgs : *mut GLYPHSET) -> u32); - GetFontUnicodeRanges(core::mem::transmute(hdc), core::mem::transmute(lpgs.unwrap_or(core::mem::zeroed()))) + GetFontUnicodeRanges(hdc, core::mem::transmute(lpgs.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetGlyphIndicesA(hdc: HDC, lpstr: P1, c: i32, pgi: *mut u16, fl: u32) -> u32 @@ -1035,7 +1017,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetGlyphIndicesA(hdc : HDC, lpstr : windows_core::PCSTR, c : i32, pgi : *mut u16, fl : u32) -> u32); - GetGlyphIndicesA(core::mem::transmute(hdc), lpstr.param().abi(), core::mem::transmute(c), core::mem::transmute(pgi), core::mem::transmute(fl)) + GetGlyphIndicesA(hdc, lpstr.param().abi(), c, core::mem::transmute(pgi), fl) } #[inline] pub unsafe fn GetGlyphIndicesW(hdc: HDC, lpstr: P1, c: i32, pgi: *mut u16, fl: u32) -> u32 @@ -1043,42 +1025,42 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetGlyphIndicesW(hdc : HDC, lpstr : windows_core::PCWSTR, c : i32, pgi : *mut u16, fl : u32) -> u32); - GetGlyphIndicesW(core::mem::transmute(hdc), lpstr.param().abi(), core::mem::transmute(c), core::mem::transmute(pgi), core::mem::transmute(fl)) + GetGlyphIndicesW(hdc, lpstr.param().abi(), c, core::mem::transmute(pgi), fl) } #[inline] pub unsafe fn GetGlyphOutlineA(hdc: HDC, uchar: u32, fuformat: GET_GLYPH_OUTLINE_FORMAT, lpgm: *mut GLYPHMETRICS, cjbuffer: u32, pvbuffer: Option<*mut core::ffi::c_void>, lpmat2: *const MAT2) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetGlyphOutlineA(hdc : HDC, uchar : u32, fuformat : GET_GLYPH_OUTLINE_FORMAT, lpgm : *mut GLYPHMETRICS, cjbuffer : u32, pvbuffer : *mut core::ffi::c_void, lpmat2 : *const MAT2) -> u32); - GetGlyphOutlineA(core::mem::transmute(hdc), core::mem::transmute(uchar), core::mem::transmute(fuformat), core::mem::transmute(lpgm), core::mem::transmute(cjbuffer), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmat2)) + GetGlyphOutlineA(hdc, uchar, fuformat, core::mem::transmute(lpgm), cjbuffer, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), lpmat2) } #[inline] pub unsafe fn GetGlyphOutlineW(hdc: HDC, uchar: u32, fuformat: GET_GLYPH_OUTLINE_FORMAT, lpgm: *mut GLYPHMETRICS, cjbuffer: u32, pvbuffer: Option<*mut core::ffi::c_void>, lpmat2: *const MAT2) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetGlyphOutlineW(hdc : HDC, uchar : u32, fuformat : GET_GLYPH_OUTLINE_FORMAT, lpgm : *mut GLYPHMETRICS, cjbuffer : u32, pvbuffer : *mut core::ffi::c_void, lpmat2 : *const MAT2) -> u32); - GetGlyphOutlineW(core::mem::transmute(hdc), core::mem::transmute(uchar), core::mem::transmute(fuformat), core::mem::transmute(lpgm), core::mem::transmute(cjbuffer), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmat2)) + GetGlyphOutlineW(hdc, uchar, fuformat, core::mem::transmute(lpgm), cjbuffer, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), lpmat2) } #[inline] pub unsafe fn GetGraphicsMode(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetGraphicsMode(hdc : HDC) -> i32); - GetGraphicsMode(core::mem::transmute(hdc)) + GetGraphicsMode(hdc) } #[inline] pub unsafe fn GetKerningPairsA(hdc: HDC, lpkernpair: Option<&mut [KERNINGPAIR]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetKerningPairsA(hdc : HDC, npairs : u32, lpkernpair : *mut KERNINGPAIR) -> u32); - GetKerningPairsA(core::mem::transmute(hdc), lpkernpair.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkernpair.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetKerningPairsA(hdc, lpkernpair.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkernpair.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetKerningPairsW(hdc: HDC, lpkernpair: Option<&mut [KERNINGPAIR]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetKerningPairsW(hdc : HDC, npairs : u32, lpkernpair : *mut KERNINGPAIR) -> u32); - GetKerningPairsW(core::mem::transmute(hdc), lpkernpair.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkernpair.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetKerningPairsW(hdc, lpkernpair.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkernpair.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetLayout(hdc: HDC) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetLayout(hdc : HDC) -> u32); - GetLayout(core::mem::transmute(hdc)) + GetLayout(hdc) } #[inline] pub unsafe fn GetMapMode(hdc: HDC) -> HDC_MAP_MODE { windows_targets::link!("gdi32.dll" "system" fn GetMapMode(hdc : HDC) -> HDC_MAP_MODE); - GetMapMode(core::mem::transmute(hdc)) + GetMapMode(hdc) } #[inline] pub unsafe fn GetMetaFileA(lpname: P0) -> HMETAFILE @@ -1091,7 +1073,7 @@ where #[inline] pub unsafe fn GetMetaFileBitsEx(hmf: HMETAFILE, cbbuffer: u32, lpdata: Option<*mut core::ffi::c_void>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetMetaFileBitsEx(hmf : HMETAFILE, cbbuffer : u32, lpdata : *mut core::ffi::c_void) -> u32); - GetMetaFileBitsEx(core::mem::transmute(hmf), core::mem::transmute(cbbuffer), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed()))) + GetMetaFileBitsEx(hmf, cbbuffer, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetMetaFileW(lpname: P0) -> HMETAFILE @@ -1104,157 +1086,157 @@ where #[inline] pub unsafe fn GetMetaRgn(hdc: HDC, hrgn: HRGN) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetMetaRgn(hdc : HDC, hrgn : HRGN) -> i32); - GetMetaRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn)) + GetMetaRgn(hdc, hrgn) } #[inline] pub unsafe fn GetMiterLimit(hdc: HDC, plimit: *mut f32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetMiterLimit(hdc : HDC, plimit : *mut f32) -> super::super::Foundation:: BOOL); - GetMiterLimit(core::mem::transmute(hdc), core::mem::transmute(plimit)) + GetMiterLimit(hdc, core::mem::transmute(plimit)) } #[inline] pub unsafe fn GetMonitorInfoA(hmonitor: HMONITOR, lpmi: *mut MONITORINFO) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetMonitorInfoA(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> super::super::Foundation:: BOOL); - GetMonitorInfoA(core::mem::transmute(hmonitor), core::mem::transmute(lpmi)) + GetMonitorInfoA(hmonitor, core::mem::transmute(lpmi)) } #[inline] pub unsafe fn GetMonitorInfoW(hmonitor: HMONITOR, lpmi: *mut MONITORINFO) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetMonitorInfoW(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> super::super::Foundation:: BOOL); - GetMonitorInfoW(core::mem::transmute(hmonitor), core::mem::transmute(lpmi)) + GetMonitorInfoW(hmonitor, core::mem::transmute(lpmi)) } #[inline] pub unsafe fn GetNearestColor(hdc: HDC, color: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn GetNearestColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - GetNearestColor(core::mem::transmute(hdc), core::mem::transmute(color)) + GetNearestColor(hdc, color) } #[inline] pub unsafe fn GetNearestPaletteIndex(h: HPALETTE, color: super::super::Foundation::COLORREF) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetNearestPaletteIndex(h : HPALETTE, color : super::super::Foundation:: COLORREF) -> u32); - GetNearestPaletteIndex(core::mem::transmute(h), core::mem::transmute(color)) + GetNearestPaletteIndex(h, color) } #[inline] pub unsafe fn GetObjectA(h: HGDIOBJ, c: i32, pv: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetObjectA(h : HGDIOBJ, c : i32, pv : *mut core::ffi::c_void) -> i32); - GetObjectA(core::mem::transmute(h), core::mem::transmute(c), core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) + GetObjectA(h, c, core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetObjectType(h: HGDIOBJ) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetObjectType(h : HGDIOBJ) -> u32); - GetObjectType(core::mem::transmute(h)) + GetObjectType(h) } #[inline] pub unsafe fn GetObjectW(h: HGDIOBJ, c: i32, pv: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetObjectW(h : HGDIOBJ, c : i32, pv : *mut core::ffi::c_void) -> i32); - GetObjectW(core::mem::transmute(h), core::mem::transmute(c), core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) + GetObjectW(h, c, core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetOutlineTextMetricsA(hdc: HDC, cjcopy: u32, potm: Option<*mut OUTLINETEXTMETRICA>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetOutlineTextMetricsA(hdc : HDC, cjcopy : u32, potm : *mut OUTLINETEXTMETRICA) -> u32); - GetOutlineTextMetricsA(core::mem::transmute(hdc), core::mem::transmute(cjcopy), core::mem::transmute(potm.unwrap_or(core::mem::zeroed()))) + GetOutlineTextMetricsA(hdc, cjcopy, core::mem::transmute(potm.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetOutlineTextMetricsW(hdc: HDC, cjcopy: u32, potm: Option<*mut OUTLINETEXTMETRICW>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetOutlineTextMetricsW(hdc : HDC, cjcopy : u32, potm : *mut OUTLINETEXTMETRICW) -> u32); - GetOutlineTextMetricsW(core::mem::transmute(hdc), core::mem::transmute(cjcopy), core::mem::transmute(potm.unwrap_or(core::mem::zeroed()))) + GetOutlineTextMetricsW(hdc, cjcopy, core::mem::transmute(potm.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPaletteEntries(hpal: HPALETTE, istart: u32, ppalentries: Option<&mut [PALETTEENTRY]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetPaletteEntries(hpal : HPALETTE, istart : u32, centries : u32, ppalentries : *mut PALETTEENTRY) -> u32); - GetPaletteEntries(core::mem::transmute(hpal), core::mem::transmute(istart), ppalentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppalentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetPaletteEntries(hpal, istart, ppalentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppalentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetPath(hdc: HDC, apt: Option<*mut super::super::Foundation::POINT>, aj: Option<*mut u8>, cpt: i32) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetPath(hdc : HDC, apt : *mut super::super::Foundation:: POINT, aj : *mut u8, cpt : i32) -> i32); - GetPath(core::mem::transmute(hdc), core::mem::transmute(apt.unwrap_or(core::mem::zeroed())), core::mem::transmute(aj.unwrap_or(core::mem::zeroed())), core::mem::transmute(cpt)) + GetPath(hdc, core::mem::transmute(apt.unwrap_or(core::mem::zeroed())), core::mem::transmute(aj.unwrap_or(core::mem::zeroed())), cpt) } #[inline] pub unsafe fn GetPixel(hdc: HDC, x: i32, y: i32) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn GetPixel(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: COLORREF); - GetPixel(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y)) + GetPixel(hdc, x, y) } #[inline] pub unsafe fn GetPolyFillMode(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetPolyFillMode(hdc : HDC) -> i32); - GetPolyFillMode(core::mem::transmute(hdc)) + GetPolyFillMode(hdc) } #[inline] pub unsafe fn GetROP2(hdc: HDC) -> R2_MODE { windows_targets::link!("gdi32.dll" "system" fn GetROP2(hdc : HDC) -> R2_MODE); - GetROP2(core::mem::transmute(hdc)) + GetROP2(hdc) } #[inline] pub unsafe fn GetRandomRgn(hdc: HDC, hrgn: HRGN, i: i32) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetRandomRgn(hdc : HDC, hrgn : HRGN, i : i32) -> i32); - GetRandomRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn), core::mem::transmute(i)) + GetRandomRgn(hdc, hrgn, i) } #[inline] pub unsafe fn GetRasterizerCaps(lpraststat: *mut RASTERIZER_STATUS, cjbytes: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetRasterizerCaps(lpraststat : *mut RASTERIZER_STATUS, cjbytes : u32) -> super::super::Foundation:: BOOL); - GetRasterizerCaps(core::mem::transmute(lpraststat), core::mem::transmute(cjbytes)) + GetRasterizerCaps(core::mem::transmute(lpraststat), cjbytes) } #[inline] pub unsafe fn GetRegionData(hrgn: HRGN, ncount: u32, lprgndata: Option<*mut RGNDATA>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetRegionData(hrgn : HRGN, ncount : u32, lprgndata : *mut RGNDATA) -> u32); - GetRegionData(core::mem::transmute(hrgn), core::mem::transmute(ncount), core::mem::transmute(lprgndata.unwrap_or(core::mem::zeroed()))) + GetRegionData(hrgn, ncount, core::mem::transmute(lprgndata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetRgnBox(hrgn: HRGN, lprc: *mut super::super::Foundation::RECT) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn GetRgnBox(hrgn : HRGN, lprc : *mut super::super::Foundation:: RECT) -> GDI_REGION_TYPE); - GetRgnBox(core::mem::transmute(hrgn), core::mem::transmute(lprc)) + GetRgnBox(hrgn, core::mem::transmute(lprc)) } #[inline] pub unsafe fn GetStockObject(i: GET_STOCK_OBJECT_FLAGS) -> HGDIOBJ { windows_targets::link!("gdi32.dll" "system" fn GetStockObject(i : GET_STOCK_OBJECT_FLAGS) -> HGDIOBJ); - GetStockObject(core::mem::transmute(i)) + GetStockObject(i) } #[inline] pub unsafe fn GetStretchBltMode(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetStretchBltMode(hdc : HDC) -> i32); - GetStretchBltMode(core::mem::transmute(hdc)) + GetStretchBltMode(hdc) } #[inline] pub unsafe fn GetSysColor(nindex: SYS_COLOR_INDEX) -> u32 { windows_targets::link!("user32.dll" "system" fn GetSysColor(nindex : SYS_COLOR_INDEX) -> u32); - GetSysColor(core::mem::transmute(nindex)) + GetSysColor(nindex) } #[inline] pub unsafe fn GetSysColorBrush(nindex: SYS_COLOR_INDEX) -> HBRUSH { windows_targets::link!("user32.dll" "system" fn GetSysColorBrush(nindex : SYS_COLOR_INDEX) -> HBRUSH); - GetSysColorBrush(core::mem::transmute(nindex)) + GetSysColorBrush(nindex) } #[inline] pub unsafe fn GetSystemPaletteEntries(hdc: HDC, istart: u32, ppalentries: Option<&mut [PALETTEENTRY]>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetSystemPaletteEntries(hdc : HDC, istart : u32, centries : u32, ppalentries : *mut PALETTEENTRY) -> u32); - GetSystemPaletteEntries(core::mem::transmute(hdc), core::mem::transmute(istart), ppalentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppalentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetSystemPaletteEntries(hdc, istart, ppalentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppalentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetSystemPaletteUse(hdc: HDC) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetSystemPaletteUse(hdc : HDC) -> u32); - GetSystemPaletteUse(core::mem::transmute(hdc)) + GetSystemPaletteUse(hdc) } #[inline] pub unsafe fn GetTabbedTextExtentA(hdc: HDC, lpstring: &[u8], lpntabstoppositions: Option<&[i32]>) -> u32 { windows_targets::link!("user32.dll" "system" fn GetTabbedTextExtentA(hdc : HDC, lpstring : windows_core::PCSTR, chcount : i32, ntabpositions : i32, lpntabstoppositions : *const i32) -> u32); - GetTabbedTextExtentA(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetTabbedTextExtentA(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetTabbedTextExtentW(hdc: HDC, lpstring: &[u16], lpntabstoppositions: Option<&[i32]>) -> u32 { windows_targets::link!("user32.dll" "system" fn GetTabbedTextExtentW(hdc : HDC, lpstring : windows_core::PCWSTR, chcount : i32, ntabpositions : i32, lpntabstoppositions : *const i32) -> u32); - GetTabbedTextExtentW(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetTabbedTextExtentW(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetTextAlign(hdc: HDC) -> TEXT_ALIGN_OPTIONS { windows_targets::link!("gdi32.dll" "system" fn GetTextAlign(hdc : HDC) -> TEXT_ALIGN_OPTIONS); - GetTextAlign(core::mem::transmute(hdc)) + GetTextAlign(hdc) } #[inline] pub unsafe fn GetTextCharacterExtra(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetTextCharacterExtra(hdc : HDC) -> i32); - GetTextCharacterExtra(core::mem::transmute(hdc)) + GetTextCharacterExtra(hdc) } #[inline] pub unsafe fn GetTextColor(hdc: HDC) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn GetTextColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetTextColor(core::mem::transmute(hdc)) + GetTextColor(hdc) } #[inline] pub unsafe fn GetTextExtentExPointA(hdc: HDC, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL @@ -1262,12 +1244,12 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointA(hdc : HDC, lpszstring : windows_core::PCSTR, cchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentExPointA(core::mem::transmute(hdc), lpszstring.param().abi(), core::mem::transmute(cchstring), core::mem::transmute(nmaxextent), core::mem::transmute(lpnfit.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpndx.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)) + GetTextExtentExPointA(hdc, lpszstring.param().abi(), cchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpndx.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetTextExtentExPointI(hdc: HDC, lpwszstring: *const u16, cwchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointI(hdc : HDC, lpwszstring : *const u16, cwchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentExPointI(core::mem::transmute(hdc), core::mem::transmute(lpwszstring), core::mem::transmute(cwchstring), core::mem::transmute(nmaxextent), core::mem::transmute(lpnfit.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpndx.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)) + GetTextExtentExPointI(hdc, lpwszstring, cwchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpndx.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetTextExtentExPointW(hdc: HDC, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL @@ -1275,77 +1257,77 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointW(hdc : HDC, lpszstring : windows_core::PCWSTR, cchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentExPointW(core::mem::transmute(hdc), lpszstring.param().abi(), core::mem::transmute(cchstring), core::mem::transmute(nmaxextent), core::mem::transmute(lpnfit.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpndx.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)) + GetTextExtentExPointW(hdc, lpszstring.param().abi(), cchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpndx.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetTextExtentPoint32A(hdc: HDC, lpstring: &[u8], psizl: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPoint32A(hdc : HDC, lpstring : windows_core::PCSTR, c : i32, psizl : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentPoint32A(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(psizl)) + GetTextExtentPoint32A(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(psizl)) } #[inline] pub unsafe fn GetTextExtentPoint32W(hdc: HDC, lpstring: &[u16], psizl: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPoint32W(hdc : HDC, lpstring : windows_core::PCWSTR, c : i32, psizl : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentPoint32W(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(psizl)) + GetTextExtentPoint32W(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(psizl)) } #[inline] pub unsafe fn GetTextExtentPointA(hdc: HDC, lpstring: &[u8], lpsz: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointA(hdc : HDC, lpstring : windows_core::PCSTR, c : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentPointA(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(lpsz)) + GetTextExtentPointA(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(lpsz)) } #[inline] pub unsafe fn GetTextExtentPointI(hdc: HDC, pgiin: &[u16], psize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointI(hdc : HDC, pgiin : *const u16, cgi : i32, psize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentPointI(core::mem::transmute(hdc), core::mem::transmute(pgiin.as_ptr()), pgiin.len().try_into().unwrap(), core::mem::transmute(psize)) + GetTextExtentPointI(hdc, core::mem::transmute(pgiin.as_ptr()), pgiin.len().try_into().unwrap(), core::mem::transmute(psize)) } #[inline] pub unsafe fn GetTextExtentPointW(hdc: HDC, lpstring: &[u16], lpsz: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointW(hdc : HDC, lpstring : windows_core::PCWSTR, c : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetTextExtentPointW(core::mem::transmute(hdc), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(lpsz)) + GetTextExtentPointW(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(lpsz)) } #[inline] pub unsafe fn GetTextFaceA(hdc: HDC, lpname: Option<&mut [u8]>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetTextFaceA(hdc : HDC, c : i32, lpname : windows_core::PSTR) -> i32); - GetTextFaceA(core::mem::transmute(hdc), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetTextFaceA(hdc, lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetTextFaceW(hdc: HDC, lpname: Option<&mut [u16]>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetTextFaceW(hdc : HDC, c : i32, lpname : windows_core::PWSTR) -> i32); - GetTextFaceW(core::mem::transmute(hdc), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + GetTextFaceW(hdc, lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn GetTextMetricsA(hdc: HDC, lptm: *mut TEXTMETRICA) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsA(hdc : HDC, lptm : *mut TEXTMETRICA) -> super::super::Foundation:: BOOL); - GetTextMetricsA(core::mem::transmute(hdc), core::mem::transmute(lptm)) + GetTextMetricsA(hdc, core::mem::transmute(lptm)) } #[inline] pub unsafe fn GetTextMetricsW(hdc: HDC, lptm: *mut TEXTMETRICW) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsW(hdc : HDC, lptm : *mut TEXTMETRICW) -> super::super::Foundation:: BOOL); - GetTextMetricsW(core::mem::transmute(hdc), core::mem::transmute(lptm)) + GetTextMetricsW(hdc, core::mem::transmute(lptm)) } #[inline] pub unsafe fn GetUpdateRect(hwnd: super::super::Foundation::HWND, lprect: Option<*mut super::super::Foundation::RECT>, berase: bool) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetUpdateRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT, berase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetUpdateRect(core::mem::transmute(hwnd), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), berase.into()) + GetUpdateRect(hwnd, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), berase.into()) } #[inline] pub unsafe fn GetUpdateRgn(hwnd: super::super::Foundation::HWND, hrgn: HRGN, berase: bool) -> GDI_REGION_TYPE { windows_targets::link!("user32.dll" "system" fn GetUpdateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : super::super::Foundation:: BOOL) -> GDI_REGION_TYPE); - GetUpdateRgn(core::mem::transmute(hwnd), core::mem::transmute(hrgn), berase.into()) + GetUpdateRgn(hwnd, hrgn, berase.into()) } #[inline] pub unsafe fn GetViewportExtEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetViewportExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetViewportExtEx(core::mem::transmute(hdc), core::mem::transmute(lpsize)) + GetViewportExtEx(hdc, core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetViewportOrgEx(hdc: HDC, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetViewportOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetViewportOrgEx(core::mem::transmute(hdc), core::mem::transmute(lppoint)) + GetViewportOrgEx(hdc, core::mem::transmute(lppoint)) } #[inline] pub unsafe fn GetWinMetaFileBits(hemf: HENHMETAFILE, pdata16: Option<&mut [u8]>, imapmode: i32, hdcref: HDC) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetWinMetaFileBits(hemf : HENHMETAFILE, cbdata16 : u32, pdata16 : *mut u8, imapmode : i32, hdcref : HDC) -> u32); - GetWinMetaFileBits(core::mem::transmute(hemf), pdata16.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pdata16.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(imapmode), core::mem::transmute(hdcref)) + GetWinMetaFileBits(hemf, pdata16.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pdata16.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imapmode, hdcref) } #[inline] pub unsafe fn GetWindowDC(hwnd: Option) -> HDC { @@ -1355,57 +1337,57 @@ pub unsafe fn GetWindowDC(hwnd: Option) -> HDC { #[inline] pub unsafe fn GetWindowExtEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetWindowExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetWindowExtEx(core::mem::transmute(hdc), core::mem::transmute(lpsize)) + GetWindowExtEx(hdc, core::mem::transmute(lpsize)) } #[inline] pub unsafe fn GetWindowOrgEx(hdc: HDC, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetWindowOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetWindowOrgEx(core::mem::transmute(hdc), core::mem::transmute(lppoint)) + GetWindowOrgEx(hdc, core::mem::transmute(lppoint)) } #[inline] pub unsafe fn GetWindowRgn(hwnd: super::super::Foundation::HWND, hrgn: HRGN) -> GDI_REGION_TYPE { windows_targets::link!("user32.dll" "system" fn GetWindowRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN) -> GDI_REGION_TYPE); - GetWindowRgn(core::mem::transmute(hwnd), core::mem::transmute(hrgn)) + GetWindowRgn(hwnd, hrgn) } #[inline] pub unsafe fn GetWindowRgnBox(hwnd: super::super::Foundation::HWND, lprc: *mut super::super::Foundation::RECT) -> GDI_REGION_TYPE { windows_targets::link!("user32.dll" "system" fn GetWindowRgnBox(hwnd : super::super::Foundation:: HWND, lprc : *mut super::super::Foundation:: RECT) -> GDI_REGION_TYPE); - GetWindowRgnBox(core::mem::transmute(hwnd), core::mem::transmute(lprc)) + GetWindowRgnBox(hwnd, core::mem::transmute(lprc)) } #[inline] pub unsafe fn GetWorldTransform(hdc: HDC, lpxf: *mut XFORM) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetWorldTransform(hdc : HDC, lpxf : *mut XFORM) -> super::super::Foundation:: BOOL); - GetWorldTransform(core::mem::transmute(hdc), core::mem::transmute(lpxf)) + GetWorldTransform(hdc, core::mem::transmute(lpxf)) } #[inline] pub unsafe fn GradientFill(hdc: HDC, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, nmesh: u32, ulmode: GRADIENT_FILL) -> super::super::Foundation::BOOL { windows_targets::link!("msimg32.dll" "system" fn GradientFill(hdc : HDC, pvertex : *const TRIVERTEX, nvertex : u32, pmesh : *const core::ffi::c_void, nmesh : u32, ulmode : GRADIENT_FILL) -> super::super::Foundation:: BOOL); - GradientFill(core::mem::transmute(hdc), core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), core::mem::transmute(pmesh), core::mem::transmute(nmesh), core::mem::transmute(ulmode)) + GradientFill(hdc, core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, nmesh, ulmode) } #[inline] pub unsafe fn GrayStringA(hdc: HDC, hbrush: Option, lpoutputfunc: Option, lpdata: super::super::Foundation::LPARAM, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GrayStringA(hdc : HDC, hbrush : HBRUSH, lpoutputfunc : GRAYSTRINGPROC, lpdata : super::super::Foundation:: LPARAM, ncount : i32, x : i32, y : i32, nwidth : i32, nheight : i32) -> super::super::Foundation:: BOOL); - GrayStringA(core::mem::transmute(hdc), core::mem::transmute(hbrush.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoutputfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata), core::mem::transmute(ncount), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight)) + GrayStringA(hdc, core::mem::transmute(hbrush.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoutputfunc.unwrap_or(core::mem::zeroed())), lpdata, ncount, x, y, nwidth, nheight) } #[inline] pub unsafe fn GrayStringW(hdc: HDC, hbrush: Option, lpoutputfunc: Option, lpdata: super::super::Foundation::LPARAM, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GrayStringW(hdc : HDC, hbrush : HBRUSH, lpoutputfunc : GRAYSTRINGPROC, lpdata : super::super::Foundation:: LPARAM, ncount : i32, x : i32, y : i32, nwidth : i32, nheight : i32) -> super::super::Foundation:: BOOL); - GrayStringW(core::mem::transmute(hdc), core::mem::transmute(hbrush.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoutputfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata), core::mem::transmute(ncount), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight)) + GrayStringW(hdc, core::mem::transmute(hbrush.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoutputfunc.unwrap_or(core::mem::zeroed())), lpdata, ncount, x, y, nwidth, nheight) } #[inline] pub unsafe fn InflateRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn InflateRect(lprc : *mut super::super::Foundation:: RECT, dx : i32, dy : i32) -> super::super::Foundation:: BOOL); - InflateRect(core::mem::transmute(lprc), core::mem::transmute(dx), core::mem::transmute(dy)) + InflateRect(core::mem::transmute(lprc), dx, dy) } #[inline] pub unsafe fn IntersectClipRect(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn IntersectClipRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> GDI_REGION_TYPE); - IntersectClipRect(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)) + IntersectClipRect(hdc, left, top, right, bottom) } #[inline] pub unsafe fn IntersectRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IntersectRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - IntersectRect(core::mem::transmute(lprcdst), core::mem::transmute(lprcsrc1), core::mem::transmute(lprcsrc2)) + IntersectRect(core::mem::transmute(lprcdst), lprcsrc1, lprcsrc2) } #[inline] pub unsafe fn InvalidateRect(hwnd: Option, lprect: Option<*const super::super::Foundation::RECT>, berase: bool) -> super::super::Foundation::BOOL { @@ -1415,37 +1397,37 @@ pub unsafe fn InvalidateRect(hwnd: Option, lprec #[inline] pub unsafe fn InvalidateRgn(hwnd: super::super::Foundation::HWND, hrgn: Option, berase: bool) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn InvalidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - InvalidateRgn(core::mem::transmute(hwnd), core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), berase.into()) + InvalidateRgn(hwnd, core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), berase.into()) } #[inline] pub unsafe fn InvertRect(hdc: HDC, lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn InvertRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - InvertRect(core::mem::transmute(hdc), core::mem::transmute(lprc)) + InvertRect(hdc, lprc) } #[inline] pub unsafe fn InvertRgn(hdc: HDC, hrgn: HRGN) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn InvertRgn(hdc : HDC, hrgn : HRGN) -> super::super::Foundation:: BOOL); - InvertRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn)) + InvertRgn(hdc, hrgn) } #[inline] pub unsafe fn IsRectEmpty(lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsRectEmpty(lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - IsRectEmpty(core::mem::transmute(lprc)) + IsRectEmpty(lprc) } #[inline] pub unsafe fn LPtoDP(hdc: HDC, lppt: &mut [super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn LPtoDP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> super::super::Foundation:: BOOL); - LPtoDP(core::mem::transmute(hdc), core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) + LPtoDP(hdc, core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) } #[inline] pub unsafe fn LineDDA(xstart: i32, ystart: i32, xend: i32, yend: i32, lpproc: LINEDDAPROC, data: Option) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn LineDDA(xstart : i32, ystart : i32, xend : i32, yend : i32, lpproc : LINEDDAPROC, data : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - LineDDA(core::mem::transmute(xstart), core::mem::transmute(ystart), core::mem::transmute(xend), core::mem::transmute(yend), core::mem::transmute(lpproc), core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) + LineDDA(xstart, ystart, xend, yend, lpproc, core::mem::transmute(data.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn LineTo(hdc: HDC, x: i32, y: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn LineTo(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: BOOL); - LineTo(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y)) + LineTo(hdc, x, y) } #[inline] pub unsafe fn LoadBitmapA(hinstance: Option, lpbitmapname: P1) -> HBITMAP @@ -1476,212 +1458,212 @@ pub unsafe fn MapWindowPoints(hwndfrom: Option, #[inline] pub unsafe fn MaskBlt(hdcdest: HDC, xdest: i32, ydest: i32, width: i32, height: i32, hdcsrc: HDC, xsrc: i32, ysrc: i32, hbmmask: HBITMAP, xmask: i32, ymask: i32, rop: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn MaskBlt(hdcdest : HDC, xdest : i32, ydest : i32, width : i32, height : i32, hdcsrc : HDC, xsrc : i32, ysrc : i32, hbmmask : HBITMAP, xmask : i32, ymask : i32, rop : u32) -> super::super::Foundation:: BOOL); - MaskBlt(core::mem::transmute(hdcdest), core::mem::transmute(xdest), core::mem::transmute(ydest), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(hdcsrc), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(hbmmask), core::mem::transmute(xmask), core::mem::transmute(ymask), core::mem::transmute(rop)) + MaskBlt(hdcdest, xdest, ydest, width, height, hdcsrc, xsrc, ysrc, hbmmask, xmask, ymask, rop) } #[inline] pub unsafe fn MergeFontPackage(puchmergefontbuffer: *const u8, ulmergefontbuffersize: u32, puchfontpackagebuffer: *const u8, ulfontpackagebuffersize: u32, ppuchdestbuffer: *mut *mut u8, puldestbuffersize: *mut u32, pulbyteswritten: *mut u32, usmode: u16, lpfnallocate: CFP_ALLOCPROC, lpfnreallocate: CFP_REALLOCPROC, lpfnfree: CFP_FREEPROC, lpvreserved: *mut core::ffi::c_void) -> u32 { windows_targets::link!("fontsub.dll" "cdecl" fn MergeFontPackage(puchmergefontbuffer : *const u8, ulmergefontbuffersize : u32, puchfontpackagebuffer : *const u8, ulfontpackagebuffersize : u32, ppuchdestbuffer : *mut *mut u8, puldestbuffersize : *mut u32, pulbyteswritten : *mut u32, usmode : u16, lpfnallocate : CFP_ALLOCPROC, lpfnreallocate : CFP_REALLOCPROC, lpfnfree : CFP_FREEPROC, lpvreserved : *mut core::ffi::c_void) -> u32); - MergeFontPackage(core::mem::transmute(puchmergefontbuffer), core::mem::transmute(ulmergefontbuffersize), core::mem::transmute(puchfontpackagebuffer), core::mem::transmute(ulfontpackagebuffersize), core::mem::transmute(ppuchdestbuffer), core::mem::transmute(puldestbuffersize), core::mem::transmute(pulbyteswritten), core::mem::transmute(usmode), core::mem::transmute(lpfnallocate), core::mem::transmute(lpfnreallocate), core::mem::transmute(lpfnfree), core::mem::transmute(lpvreserved)) + MergeFontPackage(puchmergefontbuffer, ulmergefontbuffersize, puchfontpackagebuffer, ulfontpackagebuffersize, core::mem::transmute(ppuchdestbuffer), core::mem::transmute(puldestbuffersize), core::mem::transmute(pulbyteswritten), usmode, lpfnallocate, lpfnreallocate, lpfnfree, core::mem::transmute(lpvreserved)) } #[inline] pub unsafe fn ModifyWorldTransform(hdc: HDC, lpxf: Option<*const XFORM>, mode: MODIFY_WORLD_TRANSFORM_MODE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ModifyWorldTransform(hdc : HDC, lpxf : *const XFORM, mode : MODIFY_WORLD_TRANSFORM_MODE) -> super::super::Foundation:: BOOL); - ModifyWorldTransform(core::mem::transmute(hdc), core::mem::transmute(lpxf.unwrap_or(core::mem::zeroed())), core::mem::transmute(mode)) + ModifyWorldTransform(hdc, core::mem::transmute(lpxf.unwrap_or(core::mem::zeroed())), mode) } #[inline] pub unsafe fn MonitorFromPoint(pt: super::super::Foundation::POINT, dwflags: MONITOR_FROM_FLAGS) -> HMONITOR { windows_targets::link!("user32.dll" "system" fn MonitorFromPoint(pt : super::super::Foundation:: POINT, dwflags : MONITOR_FROM_FLAGS) -> HMONITOR); - MonitorFromPoint(core::mem::transmute(pt), core::mem::transmute(dwflags)) + MonitorFromPoint(core::mem::transmute(pt), dwflags) } #[inline] pub unsafe fn MonitorFromRect(lprc: *const super::super::Foundation::RECT, dwflags: MONITOR_FROM_FLAGS) -> HMONITOR { windows_targets::link!("user32.dll" "system" fn MonitorFromRect(lprc : *const super::super::Foundation:: RECT, dwflags : MONITOR_FROM_FLAGS) -> HMONITOR); - MonitorFromRect(core::mem::transmute(lprc), core::mem::transmute(dwflags)) + MonitorFromRect(lprc, dwflags) } #[inline] pub unsafe fn MonitorFromWindow(hwnd: super::super::Foundation::HWND, dwflags: MONITOR_FROM_FLAGS) -> HMONITOR { windows_targets::link!("user32.dll" "system" fn MonitorFromWindow(hwnd : super::super::Foundation:: HWND, dwflags : MONITOR_FROM_FLAGS) -> HMONITOR); - MonitorFromWindow(core::mem::transmute(hwnd), core::mem::transmute(dwflags)) + MonitorFromWindow(hwnd, dwflags) } #[inline] pub unsafe fn MoveToEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn MoveToEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - MoveToEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) + MoveToEx(hdc, x, y, core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OffsetClipRgn(hdc: HDC, x: i32, y: i32) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn OffsetClipRgn(hdc : HDC, x : i32, y : i32) -> GDI_REGION_TYPE); - OffsetClipRgn(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y)) + OffsetClipRgn(hdc, x, y) } #[inline] pub unsafe fn OffsetRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn OffsetRect(lprc : *mut super::super::Foundation:: RECT, dx : i32, dy : i32) -> super::super::Foundation:: BOOL); - OffsetRect(core::mem::transmute(lprc), core::mem::transmute(dx), core::mem::transmute(dy)) + OffsetRect(core::mem::transmute(lprc), dx, dy) } #[inline] pub unsafe fn OffsetRgn(hrgn: HRGN, x: i32, y: i32) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn OffsetRgn(hrgn : HRGN, x : i32, y : i32) -> GDI_REGION_TYPE); - OffsetRgn(core::mem::transmute(hrgn), core::mem::transmute(x), core::mem::transmute(y)) + OffsetRgn(hrgn, x, y) } #[inline] pub unsafe fn OffsetViewportOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn OffsetViewportOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - OffsetViewportOrgEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) + OffsetViewportOrgEx(hdc, x, y, core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OffsetWindowOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn OffsetWindowOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - OffsetWindowOrgEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) + OffsetWindowOrgEx(hdc, x, y, core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PaintDesktop(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn PaintDesktop(hdc : HDC) -> super::super::Foundation:: BOOL); - PaintDesktop(core::mem::transmute(hdc)) + PaintDesktop(hdc) } #[inline] pub unsafe fn PaintRgn(hdc: HDC, hrgn: HRGN) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PaintRgn(hdc : HDC, hrgn : HRGN) -> super::super::Foundation:: BOOL); - PaintRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn)) + PaintRgn(hdc, hrgn) } #[inline] pub unsafe fn PatBlt(hdc: HDC, x: i32, y: i32, w: i32, h: i32, rop: ROP_CODE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PatBlt(hdc : HDC, x : i32, y : i32, w : i32, h : i32, rop : ROP_CODE) -> super::super::Foundation:: BOOL); - PatBlt(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(w), core::mem::transmute(h), core::mem::transmute(rop)) + PatBlt(hdc, x, y, w, h, rop) } #[inline] pub unsafe fn PathToRegion(hdc: HDC) -> HRGN { windows_targets::link!("gdi32.dll" "system" fn PathToRegion(hdc : HDC) -> HRGN); - PathToRegion(core::mem::transmute(hdc)) + PathToRegion(hdc) } #[inline] pub unsafe fn Pie(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Pie(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, xr1 : i32, yr1 : i32, xr2 : i32, yr2 : i32) -> super::super::Foundation:: BOOL); - Pie(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom), core::mem::transmute(xr1), core::mem::transmute(yr1), core::mem::transmute(xr2), core::mem::transmute(yr2)) + Pie(hdc, left, top, right, bottom, xr1, yr1, xr2, yr2) } #[inline] pub unsafe fn PlayEnhMetaFile(hdc: HDC, hmf: HENHMETAFILE, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - PlayEnhMetaFile(core::mem::transmute(hdc), core::mem::transmute(hmf), core::mem::transmute(lprect)) + PlayEnhMetaFile(hdc, hmf, lprect) } #[inline] pub unsafe fn PlayEnhMetaFileRecord(hdc: HDC, pht: &[HANDLETABLE], pmr: *const ENHMETARECORD) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFileRecord(hdc : HDC, pht : *const HANDLETABLE, pmr : *const ENHMETARECORD, cht : u32) -> super::super::Foundation:: BOOL); - PlayEnhMetaFileRecord(core::mem::transmute(hdc), core::mem::transmute(pht.as_ptr()), core::mem::transmute(pmr), pht.len().try_into().unwrap()) + PlayEnhMetaFileRecord(hdc, core::mem::transmute(pht.as_ptr()), pmr, pht.len().try_into().unwrap()) } #[inline] pub unsafe fn PlayMetaFile(hdc: HDC, hmf: HMETAFILE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PlayMetaFile(hdc : HDC, hmf : HMETAFILE) -> super::super::Foundation:: BOOL); - PlayMetaFile(core::mem::transmute(hdc), core::mem::transmute(hmf)) + PlayMetaFile(hdc, hmf) } #[inline] pub unsafe fn PlayMetaFileRecord(hdc: HDC, lphandletable: &[HANDLETABLE], lpmr: *const METARECORD) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PlayMetaFileRecord(hdc : HDC, lphandletable : *const HANDLETABLE, lpmr : *const METARECORD, noobjs : u32) -> super::super::Foundation:: BOOL); - PlayMetaFileRecord(core::mem::transmute(hdc), core::mem::transmute(lphandletable.as_ptr()), core::mem::transmute(lpmr), lphandletable.len().try_into().unwrap()) + PlayMetaFileRecord(hdc, core::mem::transmute(lphandletable.as_ptr()), lpmr, lphandletable.len().try_into().unwrap()) } #[inline] pub unsafe fn PlgBlt(hdcdest: HDC, lppoint: &[super::super::Foundation::POINT; 3], hdcsrc: HDC, xsrc: i32, ysrc: i32, width: i32, height: i32, hbmmask: Option, xmask: i32, ymask: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PlgBlt(hdcdest : HDC, lppoint : *const super::super::Foundation:: POINT, hdcsrc : HDC, xsrc : i32, ysrc : i32, width : i32, height : i32, hbmmask : HBITMAP, xmask : i32, ymask : i32) -> super::super::Foundation:: BOOL); - PlgBlt(core::mem::transmute(hdcdest), core::mem::transmute(lppoint.as_ptr()), core::mem::transmute(hdcsrc), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed())), core::mem::transmute(xmask), core::mem::transmute(ymask)) + PlgBlt(hdcdest, core::mem::transmute(lppoint.as_ptr()), hdcsrc, xsrc, ysrc, width, height, core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed())), xmask, ymask) } #[inline] pub unsafe fn PolyBezier(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyBezier(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); - PolyBezier(core::mem::transmute(hdc), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + PolyBezier(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyBezierTo(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyBezierTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); - PolyBezierTo(core::mem::transmute(hdc), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + PolyBezierTo(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyDraw(hdc: HDC, apt: *const super::super::Foundation::POINT, aj: *const u8, cpt: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyDraw(hdc : HDC, apt : *const super::super::Foundation:: POINT, aj : *const u8, cpt : i32) -> super::super::Foundation:: BOOL); - PolyDraw(core::mem::transmute(hdc), core::mem::transmute(apt), core::mem::transmute(aj), core::mem::transmute(cpt)) + PolyDraw(hdc, apt, aj, cpt) } #[inline] pub unsafe fn PolyPolygon(hdc: HDC, apt: *const super::super::Foundation::POINT, asz: &[i32]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyPolygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, asz : *const i32, csz : i32) -> super::super::Foundation:: BOOL); - PolyPolygon(core::mem::transmute(hdc), core::mem::transmute(apt), core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) + PolyPolygon(hdc, apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyPolyline(hdc: HDC, apt: *const super::super::Foundation::POINT, asz: &[u32]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyPolyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, asz : *const u32, csz : u32) -> super::super::Foundation:: BOOL); - PolyPolyline(core::mem::transmute(hdc), core::mem::transmute(apt), core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) + PolyPolyline(hdc, apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyTextOutA(hdc: HDC, ppt: &[POLYTEXTA]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyTextOutA(hdc : HDC, ppt : *const POLYTEXTA, nstrings : i32) -> super::super::Foundation:: BOOL); - PolyTextOutA(core::mem::transmute(hdc), core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) + PolyTextOutA(hdc, core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyTextOutW(hdc: HDC, ppt: &[POLYTEXTW]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolyTextOutW(hdc : HDC, ppt : *const POLYTEXTW, nstrings : i32) -> super::super::Foundation:: BOOL); - PolyTextOutW(core::mem::transmute(hdc), core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) + PolyTextOutW(hdc, core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) } #[inline] pub unsafe fn Polygon(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Polygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> super::super::Foundation:: BOOL); - Polygon(core::mem::transmute(hdc), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + Polygon(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn Polyline(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Polyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> super::super::Foundation:: BOOL); - Polyline(core::mem::transmute(hdc), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + Polyline(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolylineTo(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PolylineTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); - PolylineTo(core::mem::transmute(hdc), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + PolylineTo(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PtInRect(lprc: *const super::super::Foundation::RECT, pt: super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn PtInRect(lprc : *const super::super::Foundation:: RECT, pt : super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - PtInRect(core::mem::transmute(lprc), core::mem::transmute(pt)) + PtInRect(lprc, core::mem::transmute(pt)) } #[inline] pub unsafe fn PtInRegion(hrgn: HRGN, x: i32, y: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PtInRegion(hrgn : HRGN, x : i32, y : i32) -> super::super::Foundation:: BOOL); - PtInRegion(core::mem::transmute(hrgn), core::mem::transmute(x), core::mem::transmute(y)) + PtInRegion(hrgn, x, y) } #[inline] pub unsafe fn PtVisible(hdc: HDC, x: i32, y: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn PtVisible(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: BOOL); - PtVisible(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y)) + PtVisible(hdc, x, y) } #[inline] pub unsafe fn RealizePalette(hdc: HDC) -> u32 { windows_targets::link!("gdi32.dll" "system" fn RealizePalette(hdc : HDC) -> u32); - RealizePalette(core::mem::transmute(hdc)) + RealizePalette(hdc) } #[inline] pub unsafe fn RectInRegion(hrgn: HRGN, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn RectInRegion(hrgn : HRGN, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - RectInRegion(core::mem::transmute(hrgn), core::mem::transmute(lprect)) + RectInRegion(hrgn, lprect) } #[inline] pub unsafe fn RectVisible(hdc: HDC, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn RectVisible(hdc : HDC, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - RectVisible(core::mem::transmute(hdc), core::mem::transmute(lprect)) + RectVisible(hdc, lprect) } #[inline] pub unsafe fn Rectangle(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn Rectangle(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); - Rectangle(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)) + Rectangle(hdc, left, top, right, bottom) } #[inline] pub unsafe fn RedrawWindow(hwnd: Option, lprcupdate: Option<*const super::super::Foundation::RECT>, hrgnupdate: Option, flags: REDRAW_WINDOW_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn RedrawWindow(hwnd : super::super::Foundation:: HWND, lprcupdate : *const super::super::Foundation:: RECT, hrgnupdate : HRGN, flags : REDRAW_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); - RedrawWindow(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + RedrawWindow(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnupdate.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn ReleaseDC(hwnd: Option, hdc: HDC) -> i32 { windows_targets::link!("user32.dll" "system" fn ReleaseDC(hwnd : super::super::Foundation:: HWND, hdc : HDC) -> i32); - ReleaseDC(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdc)) + ReleaseDC(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), hdc) } #[inline] pub unsafe fn RemoveFontMemResourceEx(h: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn RemoveFontMemResourceEx(h : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RemoveFontMemResourceEx(core::mem::transmute(h)) + RemoveFontMemResourceEx(h) } #[inline] pub unsafe fn RemoveFontResourceA(lpfilename: P0) -> super::super::Foundation::BOOL @@ -1697,7 +1679,7 @@ where P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceExA(name : windows_core::PCSTR, fl : u32, pdv : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - RemoveFontResourceExA(name.param().abi(), core::mem::transmute(fl), core::mem::transmute(pdv.unwrap_or(core::mem::zeroed()))) + RemoveFontResourceExA(name.param().abi(), fl, core::mem::transmute(pdv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RemoveFontResourceExW(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -1705,7 +1687,7 @@ where P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceExW(name : windows_core::PCWSTR, fl : u32, pdv : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - RemoveFontResourceExW(name.param().abi(), core::mem::transmute(fl), core::mem::transmute(pdv.unwrap_or(core::mem::zeroed()))) + RemoveFontResourceExW(name.param().abi(), fl, core::mem::transmute(pdv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RemoveFontResourceW(lpfilename: P0) -> super::super::Foundation::BOOL @@ -1718,132 +1700,132 @@ where #[inline] pub unsafe fn ResetDCA(hdc: HDC, lpdm: *const DEVMODEA) -> HDC { windows_targets::link!("gdi32.dll" "system" fn ResetDCA(hdc : HDC, lpdm : *const DEVMODEA) -> HDC); - ResetDCA(core::mem::transmute(hdc), core::mem::transmute(lpdm)) + ResetDCA(hdc, lpdm) } #[inline] pub unsafe fn ResetDCW(hdc: HDC, lpdm: *const DEVMODEW) -> HDC { windows_targets::link!("gdi32.dll" "system" fn ResetDCW(hdc : HDC, lpdm : *const DEVMODEW) -> HDC); - ResetDCW(core::mem::transmute(hdc), core::mem::transmute(lpdm)) + ResetDCW(hdc, lpdm) } #[inline] pub unsafe fn ResizePalette(hpal: HPALETTE, n: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ResizePalette(hpal : HPALETTE, n : u32) -> super::super::Foundation:: BOOL); - ResizePalette(core::mem::transmute(hpal), core::mem::transmute(n)) + ResizePalette(hpal, n) } #[inline] pub unsafe fn RestoreDC(hdc: HDC, nsaveddc: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn RestoreDC(hdc : HDC, nsaveddc : i32) -> super::super::Foundation:: BOOL); - RestoreDC(core::mem::transmute(hdc), core::mem::transmute(nsaveddc)) + RestoreDC(hdc, nsaveddc) } #[inline] pub unsafe fn RoundRect(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, width: i32, height: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn RoundRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, width : i32, height : i32) -> super::super::Foundation:: BOOL); - RoundRect(core::mem::transmute(hdc), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom), core::mem::transmute(width), core::mem::transmute(height)) + RoundRect(hdc, left, top, right, bottom, width, height) } #[inline] pub unsafe fn SaveDC(hdc: HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SaveDC(hdc : HDC) -> i32); - SaveDC(core::mem::transmute(hdc)) + SaveDC(hdc) } #[inline] pub unsafe fn ScaleViewportExtEx(hdc: HDC, xn: i32, dx: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ScaleViewportExtEx(hdc : HDC, xn : i32, dx : i32, yn : i32, yd : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - ScaleViewportExtEx(core::mem::transmute(hdc), core::mem::transmute(xn), core::mem::transmute(dx), core::mem::transmute(yn), core::mem::transmute(yd), core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) + ScaleViewportExtEx(hdc, xn, dx, yn, yd, core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ScaleWindowExtEx(hdc: HDC, xn: i32, xd: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ScaleWindowExtEx(hdc : HDC, xn : i32, xd : i32, yn : i32, yd : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - ScaleWindowExtEx(core::mem::transmute(hdc), core::mem::transmute(xn), core::mem::transmute(xd), core::mem::transmute(yn), core::mem::transmute(yd), core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) + ScaleWindowExtEx(hdc, xn, xd, yn, yd, core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ScreenToClient(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ScreenToClient(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - ScreenToClient(core::mem::transmute(hwnd), core::mem::transmute(lppoint)) + ScreenToClient(hwnd, core::mem::transmute(lppoint)) } #[inline] pub unsafe fn SelectClipPath(hdc: HDC, mode: RGN_COMBINE_MODE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SelectClipPath(hdc : HDC, mode : RGN_COMBINE_MODE) -> super::super::Foundation:: BOOL); - SelectClipPath(core::mem::transmute(hdc), core::mem::transmute(mode)) + SelectClipPath(hdc, mode) } #[inline] pub unsafe fn SelectClipRgn(hdc: HDC, hrgn: Option) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn SelectClipRgn(hdc : HDC, hrgn : HRGN) -> GDI_REGION_TYPE); - SelectClipRgn(core::mem::transmute(hdc), core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed()))) + SelectClipRgn(hdc, core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SelectObject(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ { windows_targets::link!("gdi32.dll" "system" fn SelectObject(hdc : HDC, h : HGDIOBJ) -> HGDIOBJ); - SelectObject(core::mem::transmute(hdc), core::mem::transmute(h)) + SelectObject(hdc, h) } #[inline] pub unsafe fn SelectPalette(hdc: HDC, hpal: HPALETTE, bforcebkgd: bool) -> HPALETTE { windows_targets::link!("gdi32.dll" "system" fn SelectPalette(hdc : HDC, hpal : HPALETTE, bforcebkgd : super::super::Foundation:: BOOL) -> HPALETTE); - SelectPalette(core::mem::transmute(hdc), core::mem::transmute(hpal), bforcebkgd.into()) + SelectPalette(hdc, hpal, bforcebkgd.into()) } #[inline] pub unsafe fn SetArcDirection(hdc: HDC, dir: ARC_DIRECTION) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetArcDirection(hdc : HDC, dir : ARC_DIRECTION) -> i32); - SetArcDirection(core::mem::transmute(hdc), core::mem::transmute(dir)) + SetArcDirection(hdc, dir) } #[inline] pub unsafe fn SetBitmapBits(hbm: HBITMAP, cb: u32, pvbits: *const core::ffi::c_void) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetBitmapBits(hbm : HBITMAP, cb : u32, pvbits : *const core::ffi::c_void) -> i32); - SetBitmapBits(core::mem::transmute(hbm), core::mem::transmute(cb), core::mem::transmute(pvbits)) + SetBitmapBits(hbm, cb, pvbits) } #[inline] pub unsafe fn SetBitmapDimensionEx(hbm: HBITMAP, w: i32, h: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetBitmapDimensionEx(hbm : HBITMAP, w : i32, h : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - SetBitmapDimensionEx(core::mem::transmute(hbm), core::mem::transmute(w), core::mem::transmute(h), core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) + SetBitmapDimensionEx(hbm, w, h, core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetBkColor(hdc: HDC, color: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn SetBkColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetBkColor(core::mem::transmute(hdc), core::mem::transmute(color)) + SetBkColor(hdc, color) } #[inline] pub unsafe fn SetBkMode(hdc: HDC, mode: BACKGROUND_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetBkMode(hdc : HDC, mode : i32) -> i32); - SetBkMode(core::mem::transmute(hdc), mode.0 as _) + SetBkMode(hdc, mode.0 as _) } #[inline] pub unsafe fn SetBoundsRect(hdc: HDC, lprect: Option<*const super::super::Foundation::RECT>, flags: SET_BOUNDS_RECT_FLAGS) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetBoundsRect(hdc : HDC, lprect : *const super::super::Foundation:: RECT, flags : SET_BOUNDS_RECT_FLAGS) -> u32); - SetBoundsRect(core::mem::transmute(hdc), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + SetBoundsRect(hdc, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SetBrushOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetBrushOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - SetBrushOrgEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) + SetBrushOrgEx(hdc, x, y, core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetColorAdjustment(hdc: HDC, lpca: *const COLORADJUSTMENT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetColorAdjustment(hdc : HDC, lpca : *const COLORADJUSTMENT) -> super::super::Foundation:: BOOL); - SetColorAdjustment(core::mem::transmute(hdc), core::mem::transmute(lpca)) + SetColorAdjustment(hdc, lpca) } #[inline] pub unsafe fn SetDCBrushColor(hdc: HDC, color: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn SetDCBrushColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetDCBrushColor(core::mem::transmute(hdc), core::mem::transmute(color)) + SetDCBrushColor(hdc, color) } #[inline] pub unsafe fn SetDCPenColor(hdc: HDC, color: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn SetDCPenColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetDCPenColor(core::mem::transmute(hdc), core::mem::transmute(color)) + SetDCPenColor(hdc, color) } #[inline] pub unsafe fn SetDIBColorTable(hdc: HDC, istart: u32, prgbq: &[RGBQUAD]) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetDIBColorTable(hdc : HDC, istart : u32, centries : u32, prgbq : *const RGBQUAD) -> u32); - SetDIBColorTable(core::mem::transmute(hdc), core::mem::transmute(istart), prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) + SetDIBColorTable(hdc, istart, prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) } #[inline] pub unsafe fn SetDIBits(hdc: Option, hbm: HBITMAP, start: u32, clines: u32, lpbits: *const core::ffi::c_void, lpbmi: *const BITMAPINFO, coloruse: DIB_USAGE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetDIBits(hdc : HDC, hbm : HBITMAP, start : u32, clines : u32, lpbits : *const core::ffi::c_void, lpbmi : *const BITMAPINFO, coloruse : DIB_USAGE) -> i32); - SetDIBits(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(hbm), core::mem::transmute(start), core::mem::transmute(clines), core::mem::transmute(lpbits), core::mem::transmute(lpbmi), core::mem::transmute(coloruse)) + SetDIBits(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), hbm, start, clines, lpbits, lpbmi, coloruse) } #[inline] pub unsafe fn SetDIBitsToDevice(hdc: HDC, xdest: i32, ydest: i32, w: u32, h: u32, xsrc: i32, ysrc: i32, startscan: u32, clines: u32, lpvbits: *const core::ffi::c_void, lpbmi: *const BITMAPINFO, coloruse: DIB_USAGE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetDIBitsToDevice(hdc : HDC, xdest : i32, ydest : i32, w : u32, h : u32, xsrc : i32, ysrc : i32, startscan : u32, clines : u32, lpvbits : *const core::ffi::c_void, lpbmi : *const BITMAPINFO, coloruse : DIB_USAGE) -> i32); - SetDIBitsToDevice(core::mem::transmute(hdc), core::mem::transmute(xdest), core::mem::transmute(ydest), core::mem::transmute(w), core::mem::transmute(h), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(startscan), core::mem::transmute(clines), core::mem::transmute(lpvbits), core::mem::transmute(lpbmi), core::mem::transmute(coloruse)) + SetDIBitsToDevice(hdc, xdest, ydest, w, h, xsrc, ysrc, startscan, clines, lpvbits, lpbmi, coloruse) } #[inline] pub unsafe fn SetEnhMetaFileBits(pb: &[u8]) -> HENHMETAFILE { @@ -1853,22 +1835,22 @@ pub unsafe fn SetEnhMetaFileBits(pb: &[u8]) -> HENHMETAFILE { #[inline] pub unsafe fn SetGraphicsMode(hdc: HDC, imode: GRAPHICS_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetGraphicsMode(hdc : HDC, imode : GRAPHICS_MODE) -> i32); - SetGraphicsMode(core::mem::transmute(hdc), core::mem::transmute(imode)) + SetGraphicsMode(hdc, imode) } #[inline] pub unsafe fn SetLayout(hdc: HDC, l: DC_LAYOUT) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetLayout(hdc : HDC, l : DC_LAYOUT) -> u32); - SetLayout(core::mem::transmute(hdc), core::mem::transmute(l)) + SetLayout(hdc, l) } #[inline] pub unsafe fn SetMapMode(hdc: HDC, imode: HDC_MAP_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetMapMode(hdc : HDC, imode : HDC_MAP_MODE) -> i32); - SetMapMode(core::mem::transmute(hdc), core::mem::transmute(imode)) + SetMapMode(hdc, imode) } #[inline] pub unsafe fn SetMapperFlags(hdc: HDC, flags: u32) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetMapperFlags(hdc : HDC, flags : u32) -> u32); - SetMapperFlags(core::mem::transmute(hdc), core::mem::transmute(flags)) + SetMapperFlags(hdc, flags) } #[inline] pub unsafe fn SetMetaFileBitsEx(lpdata: &[u8]) -> HMETAFILE { @@ -1878,42 +1860,42 @@ pub unsafe fn SetMetaFileBitsEx(lpdata: &[u8]) -> HMETAFILE { #[inline] pub unsafe fn SetMetaRgn(hdc: HDC) -> GDI_REGION_TYPE { windows_targets::link!("gdi32.dll" "system" fn SetMetaRgn(hdc : HDC) -> GDI_REGION_TYPE); - SetMetaRgn(core::mem::transmute(hdc)) + SetMetaRgn(hdc) } #[inline] pub unsafe fn SetMiterLimit(hdc: HDC, limit: f32, old: Option<*mut f32>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetMiterLimit(hdc : HDC, limit : f32, old : *mut f32) -> super::super::Foundation:: BOOL); - SetMiterLimit(core::mem::transmute(hdc), core::mem::transmute(limit), core::mem::transmute(old.unwrap_or(core::mem::zeroed()))) + SetMiterLimit(hdc, limit, core::mem::transmute(old.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetPaletteEntries(hpal: HPALETTE, istart: u32, ppalentries: &[PALETTEENTRY]) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetPaletteEntries(hpal : HPALETTE, istart : u32, centries : u32, ppalentries : *const PALETTEENTRY) -> u32); - SetPaletteEntries(core::mem::transmute(hpal), core::mem::transmute(istart), ppalentries.len().try_into().unwrap(), core::mem::transmute(ppalentries.as_ptr())) + SetPaletteEntries(hpal, istart, ppalentries.len().try_into().unwrap(), core::mem::transmute(ppalentries.as_ptr())) } #[inline] pub unsafe fn SetPixel(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn SetPixel(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetPixel(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(color)) + SetPixel(hdc, x, y, color) } #[inline] pub unsafe fn SetPixelV(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetPixelV(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); - SetPixelV(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(color)) + SetPixelV(hdc, x, y, color) } #[inline] pub unsafe fn SetPolyFillMode(hdc: HDC, mode: CREATE_POLYGON_RGN_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetPolyFillMode(hdc : HDC, mode : CREATE_POLYGON_RGN_MODE) -> i32); - SetPolyFillMode(core::mem::transmute(hdc), core::mem::transmute(mode)) + SetPolyFillMode(hdc, mode) } #[inline] pub unsafe fn SetROP2(hdc: HDC, rop2: R2_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetROP2(hdc : HDC, rop2 : R2_MODE) -> i32); - SetROP2(core::mem::transmute(hdc), core::mem::transmute(rop2)) + SetROP2(hdc, rop2) } #[inline] pub unsafe fn SetRect(lprc: *mut super::super::Foundation::RECT, xleft: i32, ytop: i32, xright: i32, ybottom: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SetRect(lprc : *mut super::super::Foundation:: RECT, xleft : i32, ytop : i32, xright : i32, ybottom : i32) -> super::super::Foundation:: BOOL); - SetRect(core::mem::transmute(lprc), core::mem::transmute(xleft), core::mem::transmute(ytop), core::mem::transmute(xright), core::mem::transmute(ybottom)) + SetRect(core::mem::transmute(lprc), xleft, ytop, xright, ybottom) } #[inline] pub unsafe fn SetRectEmpty(lprc: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { @@ -1923,117 +1905,117 @@ pub unsafe fn SetRectEmpty(lprc: *mut super::super::Foundation::RECT) -> super:: #[inline] pub unsafe fn SetRectRgn(hrgn: HRGN, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetRectRgn(hrgn : HRGN, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); - SetRectRgn(core::mem::transmute(hrgn), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)) + SetRectRgn(hrgn, left, top, right, bottom) } #[inline] pub unsafe fn SetStretchBltMode(hdc: HDC, mode: STRETCH_BLT_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetStretchBltMode(hdc : HDC, mode : STRETCH_BLT_MODE) -> i32); - SetStretchBltMode(core::mem::transmute(hdc), core::mem::transmute(mode)) + SetStretchBltMode(hdc, mode) } #[inline] pub unsafe fn SetSysColors(celements: i32, lpaelements: *const i32, lpargbvalues: *const super::super::Foundation::COLORREF) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetSysColors(celements : i32, lpaelements : *const i32, lpargbvalues : *const super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); - SetSysColors(core::mem::transmute(celements), core::mem::transmute(lpaelements), core::mem::transmute(lpargbvalues)).ok() + SetSysColors(celements, lpaelements, lpargbvalues).ok() } #[inline] pub unsafe fn SetSystemPaletteUse(hdc: HDC, r#use: SYSTEM_PALETTE_USE) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetSystemPaletteUse(hdc : HDC, r#use : SYSTEM_PALETTE_USE) -> u32); - SetSystemPaletteUse(core::mem::transmute(hdc), core::mem::transmute(r#use)) + SetSystemPaletteUse(hdc, r#use) } #[inline] pub unsafe fn SetTextAlign(hdc: HDC, align: TEXT_ALIGN_OPTIONS) -> u32 { windows_targets::link!("gdi32.dll" "system" fn SetTextAlign(hdc : HDC, align : TEXT_ALIGN_OPTIONS) -> u32); - SetTextAlign(core::mem::transmute(hdc), core::mem::transmute(align)) + SetTextAlign(hdc, align) } #[inline] pub unsafe fn SetTextCharacterExtra(hdc: HDC, extra: i32) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetTextCharacterExtra(hdc : HDC, extra : i32) -> i32); - SetTextCharacterExtra(core::mem::transmute(hdc), core::mem::transmute(extra)) + SetTextCharacterExtra(hdc, extra) } #[inline] pub unsafe fn SetTextColor(hdc: HDC, color: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("gdi32.dll" "system" fn SetTextColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetTextColor(core::mem::transmute(hdc), core::mem::transmute(color)) + SetTextColor(hdc, color) } #[inline] pub unsafe fn SetTextJustification(hdc: HDC, extra: i32, count: i32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetTextJustification(hdc : HDC, extra : i32, count : i32) -> super::super::Foundation:: BOOL); - SetTextJustification(core::mem::transmute(hdc), core::mem::transmute(extra), core::mem::transmute(count)) + SetTextJustification(hdc, extra, count) } #[inline] pub unsafe fn SetViewportExtEx(hdc: HDC, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetViewportExtEx(hdc : HDC, x : i32, y : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - SetViewportExtEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) + SetViewportExtEx(hdc, x, y, core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetViewportOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetViewportOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - SetViewportOrgEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) + SetViewportOrgEx(hdc, x, y, core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetWindowExtEx(hdc: HDC, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetWindowExtEx(hdc : HDC, x : i32, y : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - SetWindowExtEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) + SetWindowExtEx(hdc, x, y, core::mem::transmute(lpsz.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetWindowOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetWindowOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - SetWindowOrgEx(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) + SetWindowOrgEx(hdc, x, y, core::mem::transmute(lppt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetWindowRgn(hwnd: super::super::Foundation::HWND, hrgn: Option, bredraw: bool) -> i32 { windows_targets::link!("user32.dll" "system" fn SetWindowRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, bredraw : super::super::Foundation:: BOOL) -> i32); - SetWindowRgn(core::mem::transmute(hwnd), core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), bredraw.into()) + SetWindowRgn(hwnd, core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), bredraw.into()) } #[inline] pub unsafe fn SetWorldTransform(hdc: HDC, lpxf: *const XFORM) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetWorldTransform(hdc : HDC, lpxf : *const XFORM) -> super::super::Foundation:: BOOL); - SetWorldTransform(core::mem::transmute(hdc), core::mem::transmute(lpxf)) + SetWorldTransform(hdc, lpxf) } #[inline] pub unsafe fn StretchBlt(hdcdest: HDC, xdest: i32, ydest: i32, wdest: i32, hdest: i32, hdcsrc: Option, xsrc: i32, ysrc: i32, wsrc: i32, hsrc: i32, rop: ROP_CODE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn StretchBlt(hdcdest : HDC, xdest : i32, ydest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xsrc : i32, ysrc : i32, wsrc : i32, hsrc : i32, rop : ROP_CODE) -> super::super::Foundation:: BOOL); - StretchBlt(core::mem::transmute(hdcdest), core::mem::transmute(xdest), core::mem::transmute(ydest), core::mem::transmute(wdest), core::mem::transmute(hdest), core::mem::transmute(hdcsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(wsrc), core::mem::transmute(hsrc), core::mem::transmute(rop)) + StretchBlt(hdcdest, xdest, ydest, wdest, hdest, core::mem::transmute(hdcsrc.unwrap_or(core::mem::zeroed())), xsrc, ysrc, wsrc, hsrc, rop) } #[inline] pub unsafe fn StretchDIBits(hdc: HDC, xdest: i32, ydest: i32, destwidth: i32, destheight: i32, xsrc: i32, ysrc: i32, srcwidth: i32, srcheight: i32, lpbits: Option<*const core::ffi::c_void>, lpbmi: *const BITMAPINFO, iusage: DIB_USAGE, rop: ROP_CODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn StretchDIBits(hdc : HDC, xdest : i32, ydest : i32, destwidth : i32, destheight : i32, xsrc : i32, ysrc : i32, srcwidth : i32, srcheight : i32, lpbits : *const core::ffi::c_void, lpbmi : *const BITMAPINFO, iusage : DIB_USAGE, rop : ROP_CODE) -> i32); - StretchDIBits(core::mem::transmute(hdc), core::mem::transmute(xdest), core::mem::transmute(ydest), core::mem::transmute(destwidth), core::mem::transmute(destheight), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbmi), core::mem::transmute(iusage), core::mem::transmute(rop)) + StretchDIBits(hdc, xdest, ydest, destwidth, destheight, xsrc, ysrc, srcwidth, srcheight, core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed())), lpbmi, iusage, rop) } #[inline] pub unsafe fn StrokeAndFillPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn StrokeAndFillPath(hdc : HDC) -> super::super::Foundation:: BOOL); - StrokeAndFillPath(core::mem::transmute(hdc)) + StrokeAndFillPath(hdc) } #[inline] pub unsafe fn StrokePath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn StrokePath(hdc : HDC) -> super::super::Foundation:: BOOL); - StrokePath(core::mem::transmute(hdc)) + StrokePath(hdc) } #[inline] pub unsafe fn SubtractRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SubtractRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - SubtractRect(core::mem::transmute(lprcdst), core::mem::transmute(lprcsrc1), core::mem::transmute(lprcsrc2)) + SubtractRect(core::mem::transmute(lprcdst), lprcsrc1, lprcsrc2) } #[inline] pub unsafe fn TTCharToUnicode(hdc: HDC, puccharcodes: &[u8], pusshortcodes: &mut [u16], ulflags: u32) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTCharToUnicode(hdc : HDC, puccharcodes : *const u8, ulcharcodesize : u32, pusshortcodes : *mut u16, ulshortcodesize : u32, ulflags : u32) -> i32); - TTCharToUnicode(core::mem::transmute(hdc), core::mem::transmute(puccharcodes.as_ptr()), puccharcodes.len().try_into().unwrap(), core::mem::transmute(pusshortcodes.as_ptr()), pusshortcodes.len().try_into().unwrap(), core::mem::transmute(ulflags)) + TTCharToUnicode(hdc, core::mem::transmute(puccharcodes.as_ptr()), puccharcodes.len().try_into().unwrap(), core::mem::transmute(pusshortcodes.as_ptr()), pusshortcodes.len().try_into().unwrap(), ulflags) } #[inline] pub unsafe fn TTDeleteEmbeddedFont(hfontreference: super::super::Foundation::HANDLE, ulflags: u32, pulstatus: *mut u32) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTDeleteEmbeddedFont(hfontreference : super::super::Foundation:: HANDLE, ulflags : u32, pulstatus : *mut u32) -> i32); - TTDeleteEmbeddedFont(core::mem::transmute(hfontreference), core::mem::transmute(ulflags), core::mem::transmute(pulstatus)) + TTDeleteEmbeddedFont(hfontreference, ulflags, core::mem::transmute(pulstatus)) } #[inline] pub unsafe fn TTEmbedFont(hdc: HDC, ulflags: TTEMBED_FLAGS, ulcharset: EMBED_FONT_CHARSET, pulprivstatus: *mut EMBEDDED_FONT_PRIV_STATUS, pulstatus: *mut u32, lpfnwritetostream: WRITEEMBEDPROC, lpvwritestream: *const core::ffi::c_void, puscharcodeset: &[u16], uslanguage: u16, pttembedinfo: Option<*const TTEMBEDINFO>) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTEmbedFont(hdc : HDC, ulflags : TTEMBED_FLAGS, ulcharset : EMBED_FONT_CHARSET, pulprivstatus : *mut EMBEDDED_FONT_PRIV_STATUS, pulstatus : *mut u32, lpfnwritetostream : WRITEEMBEDPROC, lpvwritestream : *const core::ffi::c_void, puscharcodeset : *const u16, uscharcodecount : u16, uslanguage : u16, pttembedinfo : *const TTEMBEDINFO) -> i32); - TTEmbedFont(core::mem::transmute(hdc), core::mem::transmute(ulflags), core::mem::transmute(ulcharset), core::mem::transmute(pulprivstatus), core::mem::transmute(pulstatus), core::mem::transmute(lpfnwritetostream), core::mem::transmute(lpvwritestream), core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), core::mem::transmute(uslanguage), core::mem::transmute(pttembedinfo.unwrap_or(core::mem::zeroed()))) + TTEmbedFont(hdc, ulflags, ulcharset, core::mem::transmute(pulprivstatus), core::mem::transmute(pulstatus), lpfnwritetostream, lpvwritestream, core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TTEmbedFontEx(hdc: HDC, ulflags: TTEMBED_FLAGS, ulcharset: EMBED_FONT_CHARSET, pulprivstatus: *mut EMBEDDED_FONT_PRIV_STATUS, pulstatus: *mut u32, lpfnwritetostream: WRITEEMBEDPROC, lpvwritestream: *const core::ffi::c_void, pulcharcodeset: &[u32], uslanguage: u16, pttembedinfo: Option<*const TTEMBEDINFO>) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTEmbedFontEx(hdc : HDC, ulflags : TTEMBED_FLAGS, ulcharset : EMBED_FONT_CHARSET, pulprivstatus : *mut EMBEDDED_FONT_PRIV_STATUS, pulstatus : *mut u32, lpfnwritetostream : WRITEEMBEDPROC, lpvwritestream : *const core::ffi::c_void, pulcharcodeset : *const u32, uscharcodecount : u16, uslanguage : u16, pttembedinfo : *const TTEMBEDINFO) -> i32); - TTEmbedFontEx(core::mem::transmute(hdc), core::mem::transmute(ulflags), core::mem::transmute(ulcharset), core::mem::transmute(pulprivstatus), core::mem::transmute(pulstatus), core::mem::transmute(lpfnwritetostream), core::mem::transmute(lpvwritestream), core::mem::transmute(pulcharcodeset.as_ptr()), pulcharcodeset.len().try_into().unwrap(), core::mem::transmute(uslanguage), core::mem::transmute(pttembedinfo.unwrap_or(core::mem::zeroed()))) + TTEmbedFontEx(hdc, ulflags, ulcharset, core::mem::transmute(pulprivstatus), core::mem::transmute(pulstatus), lpfnwritetostream, lpvwritestream, core::mem::transmute(pulcharcodeset.as_ptr()), pulcharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TTEmbedFontFromFileA(hdc: HDC, szfontfilename: P1, usttcindex: u16, ulflags: TTEMBED_FLAGS, ulcharset: EMBED_FONT_CHARSET, pulprivstatus: *mut EMBEDDED_FONT_PRIV_STATUS, pulstatus: *mut u32, lpfnwritetostream: WRITEEMBEDPROC, lpvwritestream: *const core::ffi::c_void, puscharcodeset: &[u16], uslanguage: u16, pttembedinfo: Option<*const TTEMBEDINFO>) -> i32 @@ -2041,21 +2023,7 @@ where P1: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTEmbedFontFromFileA(hdc : HDC, szfontfilename : windows_core::PCSTR, usttcindex : u16, ulflags : TTEMBED_FLAGS, ulcharset : EMBED_FONT_CHARSET, pulprivstatus : *mut EMBEDDED_FONT_PRIV_STATUS, pulstatus : *mut u32, lpfnwritetostream : WRITEEMBEDPROC, lpvwritestream : *const core::ffi::c_void, puscharcodeset : *const u16, uscharcodecount : u16, uslanguage : u16, pttembedinfo : *const TTEMBEDINFO) -> i32); - TTEmbedFontFromFileA( - core::mem::transmute(hdc), - szfontfilename.param().abi(), - core::mem::transmute(usttcindex), - core::mem::transmute(ulflags), - core::mem::transmute(ulcharset), - core::mem::transmute(pulprivstatus), - core::mem::transmute(pulstatus), - core::mem::transmute(lpfnwritetostream), - core::mem::transmute(lpvwritestream), - core::mem::transmute(puscharcodeset.as_ptr()), - puscharcodeset.len().try_into().unwrap(), - core::mem::transmute(uslanguage), - core::mem::transmute(pttembedinfo.unwrap_or(core::mem::zeroed())), - ) + TTEmbedFontFromFileA(hdc, szfontfilename.param().abi(), usttcindex, ulflags, ulcharset, core::mem::transmute(pulprivstatus), core::mem::transmute(pulstatus), lpfnwritetostream, lpvwritestream, core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TTEnableEmbeddingForFacename(lpszfacename: P0, benable: bool) -> i32 @@ -2068,22 +2036,22 @@ where #[inline] pub unsafe fn TTGetEmbeddedFontInfo(ulflags: TTEMBED_FLAGS, pulprivstatus: *mut u32, ulprivs: FONT_LICENSE_PRIVS, pulstatus: *mut u32, lpfnreadfromstream: READEMBEDPROC, lpvreadstream: *const core::ffi::c_void, pttloadinfo: Option<*const TTLOADINFO>) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTGetEmbeddedFontInfo(ulflags : TTEMBED_FLAGS, pulprivstatus : *mut u32, ulprivs : FONT_LICENSE_PRIVS, pulstatus : *mut u32, lpfnreadfromstream : READEMBEDPROC, lpvreadstream : *const core::ffi::c_void, pttloadinfo : *const TTLOADINFO) -> i32); - TTGetEmbeddedFontInfo(core::mem::transmute(ulflags), core::mem::transmute(pulprivstatus), core::mem::transmute(ulprivs), core::mem::transmute(pulstatus), core::mem::transmute(lpfnreadfromstream), core::mem::transmute(lpvreadstream), core::mem::transmute(pttloadinfo.unwrap_or(core::mem::zeroed()))) + TTGetEmbeddedFontInfo(ulflags, core::mem::transmute(pulprivstatus), ulprivs, core::mem::transmute(pulstatus), lpfnreadfromstream, lpvreadstream, core::mem::transmute(pttloadinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TTGetEmbeddingType(hdc: HDC, pulembedtype: *mut EMBEDDED_FONT_PRIV_STATUS) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTGetEmbeddingType(hdc : HDC, pulembedtype : *mut EMBEDDED_FONT_PRIV_STATUS) -> i32); - TTGetEmbeddingType(core::mem::transmute(hdc), core::mem::transmute(pulembedtype)) + TTGetEmbeddingType(hdc, core::mem::transmute(pulembedtype)) } #[inline] pub unsafe fn TTGetNewFontName(phfontreference: *const super::super::Foundation::HANDLE, wzwinfamilyname: &mut [u16], szmacfamilyname: &mut [u8]) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTGetNewFontName(phfontreference : *const super::super::Foundation:: HANDLE, wzwinfamilyname : windows_core::PWSTR, cchmaxwinname : i32, szmacfamilyname : windows_core::PSTR, cchmaxmacname : i32) -> i32); - TTGetNewFontName(core::mem::transmute(phfontreference), core::mem::transmute(wzwinfamilyname.as_ptr()), wzwinfamilyname.len().try_into().unwrap(), core::mem::transmute(szmacfamilyname.as_ptr()), szmacfamilyname.len().try_into().unwrap()) + TTGetNewFontName(phfontreference, core::mem::transmute(wzwinfamilyname.as_ptr()), wzwinfamilyname.len().try_into().unwrap(), core::mem::transmute(szmacfamilyname.as_ptr()), szmacfamilyname.len().try_into().unwrap()) } #[inline] pub unsafe fn TTIsEmbeddingEnabled(hdc: HDC, pbenabled: *mut super::super::Foundation::BOOL) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabled(hdc : HDC, pbenabled : *mut super::super::Foundation:: BOOL) -> i32); - TTIsEmbeddingEnabled(core::mem::transmute(hdc), core::mem::transmute(pbenabled)) + TTIsEmbeddingEnabled(hdc, core::mem::transmute(pbenabled)) } #[inline] pub unsafe fn TTIsEmbeddingEnabledForFacename(lpszfacename: P0, pbenabled: *mut super::super::Foundation::BOOL) -> i32 @@ -2100,62 +2068,62 @@ where P8: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTLoadEmbeddedFont(phfontreference : *mut super::super::Foundation:: HANDLE, ulflags : u32, pulprivstatus : *mut EMBEDDED_FONT_PRIV_STATUS, ulprivs : FONT_LICENSE_PRIVS, pulstatus : *mut TTLOAD_EMBEDDED_FONT_STATUS, lpfnreadfromstream : READEMBEDPROC, lpvreadstream : *const core::ffi::c_void, szwinfamilyname : windows_core::PCWSTR, szmacfamilyname : windows_core::PCSTR, pttloadinfo : *const TTLOADINFO) -> i32); - TTLoadEmbeddedFont(core::mem::transmute(phfontreference), core::mem::transmute(ulflags), core::mem::transmute(pulprivstatus), core::mem::transmute(ulprivs), core::mem::transmute(pulstatus), core::mem::transmute(lpfnreadfromstream), core::mem::transmute(lpvreadstream), szwinfamilyname.param().abi(), szmacfamilyname.param().abi(), core::mem::transmute(pttloadinfo.unwrap_or(core::mem::zeroed()))) + TTLoadEmbeddedFont(core::mem::transmute(phfontreference), ulflags, core::mem::transmute(pulprivstatus), ulprivs, core::mem::transmute(pulstatus), lpfnreadfromstream, lpvreadstream, szwinfamilyname.param().abi(), szmacfamilyname.param().abi(), core::mem::transmute(pttloadinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TTRunValidationTests(hdc: HDC, ptestparam: *const TTVALIDATIONTESTSPARAMS) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTRunValidationTests(hdc : HDC, ptestparam : *const TTVALIDATIONTESTSPARAMS) -> i32); - TTRunValidationTests(core::mem::transmute(hdc), core::mem::transmute(ptestparam)) + TTRunValidationTests(hdc, ptestparam) } #[inline] pub unsafe fn TTRunValidationTestsEx(hdc: HDC, ptestparam: *const TTVALIDATIONTESTSPARAMSEX) -> i32 { windows_targets::link!("t2embed.dll" "system" fn TTRunValidationTestsEx(hdc : HDC, ptestparam : *const TTVALIDATIONTESTSPARAMSEX) -> i32); - TTRunValidationTestsEx(core::mem::transmute(hdc), core::mem::transmute(ptestparam)) + TTRunValidationTestsEx(hdc, ptestparam) } #[inline] pub unsafe fn TabbedTextOutA(hdc: HDC, x: i32, y: i32, lpstring: &[u8], lpntabstoppositions: Option<&[i32]>, ntaborigin: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn TabbedTextOutA(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCSTR, chcount : i32, ntabpositions : i32, lpntabstoppositions : *const i32, ntaborigin : i32) -> i32); - TabbedTextOutA(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ntaborigin)) + TabbedTextOutA(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ntaborigin) } #[inline] pub unsafe fn TabbedTextOutW(hdc: HDC, x: i32, y: i32, lpstring: &[u16], lpntabstoppositions: Option<&[i32]>, ntaborigin: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn TabbedTextOutW(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCWSTR, chcount : i32, ntabpositions : i32, lpntabstoppositions : *const i32, ntaborigin : i32) -> i32); - TabbedTextOutW(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ntaborigin)) + TabbedTextOutW(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ntaborigin) } #[inline] pub unsafe fn TextOutA(hdc: HDC, x: i32, y: i32, lpstring: &[u8]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn TextOutA(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCSTR, c : i32) -> super::super::Foundation:: BOOL); - TextOutA(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + TextOutA(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn TextOutW(hdc: HDC, x: i32, y: i32, lpstring: &[u16]) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn TextOutW(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCWSTR, c : i32) -> super::super::Foundation:: BOOL); - TextOutW(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + TextOutW(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn TransparentBlt(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> super::super::Foundation::BOOL { windows_targets::link!("msimg32.dll" "system" fn TransparentBlt(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, crtransparent : u32) -> super::super::Foundation:: BOOL); - TransparentBlt(core::mem::transmute(hdcdest), core::mem::transmute(xorigindest), core::mem::transmute(yorigindest), core::mem::transmute(wdest), core::mem::transmute(hdest), core::mem::transmute(hdcsrc), core::mem::transmute(xoriginsrc), core::mem::transmute(yoriginsrc), core::mem::transmute(wsrc), core::mem::transmute(hsrc), core::mem::transmute(crtransparent)) + TransparentBlt(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) } #[inline] pub unsafe fn UnionRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UnionRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - UnionRect(core::mem::transmute(lprcdst), core::mem::transmute(lprcsrc1), core::mem::transmute(lprcsrc2)) + UnionRect(core::mem::transmute(lprcdst), lprcsrc1, lprcsrc2) } #[inline] pub unsafe fn UnrealizeObject(h: HGDIOBJ) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn UnrealizeObject(h : HGDIOBJ) -> super::super::Foundation:: BOOL); - UnrealizeObject(core::mem::transmute(h)) + UnrealizeObject(h) } #[inline] pub unsafe fn UpdateColors(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn UpdateColors(hdc : HDC) -> super::super::Foundation:: BOOL); - UpdateColors(core::mem::transmute(hdc)) + UpdateColors(hdc) } #[inline] pub unsafe fn UpdateWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UpdateWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - UpdateWindow(core::mem::transmute(hwnd)) + UpdateWindow(hwnd) } #[inline] pub unsafe fn ValidateRect(hwnd: Option, lprect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL { @@ -2165,22 +2133,22 @@ pub unsafe fn ValidateRect(hwnd: Option, lprect: #[inline] pub unsafe fn ValidateRgn(hwnd: super::super::Foundation::HWND, hrgn: Option) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ValidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN) -> super::super::Foundation:: BOOL); - ValidateRgn(core::mem::transmute(hwnd), core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed()))) + ValidateRgn(hwnd, core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WidenPath(hdc: HDC) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn WidenPath(hdc : HDC) -> super::super::Foundation:: BOOL); - WidenPath(core::mem::transmute(hdc)) + WidenPath(hdc) } #[inline] pub unsafe fn WindowFromDC(hdc: HDC) -> super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn WindowFromDC(hdc : HDC) -> super::super::Foundation:: HWND); - WindowFromDC(core::mem::transmute(hdc)) + WindowFromDC(hdc) } #[inline] pub unsafe fn wglSwapMultipleBuffers(param0: u32, param1: *const WGLSWAP) -> u32 { windows_targets::link!("opengl32.dll" "system" fn wglSwapMultipleBuffers(param0 : u32, param1 : *const WGLSWAP) -> u32); - wglSwapMultipleBuffers(core::mem::transmute(param0), core::mem::transmute(param1)) + wglSwapMultipleBuffers(param0, param1) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs index 1c296f42d8..d72c5d44f7 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs @@ -1,157 +1,157 @@ #[inline] pub unsafe fn GdipAddPathArc(path: *mut GpPath, x: f32, y: f32, width: f32, height: f32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathArc(path : *mut GpPath, x : f32, y : f32, width : f32, height : f32, startangle : f32, sweepangle : f32) -> Status); - GdipAddPathArc(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipAddPathArc(core::mem::transmute(path), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipAddPathArcI(path: *mut GpPath, x: i32, y: i32, width: i32, height: i32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathArcI(path : *mut GpPath, x : i32, y : i32, width : i32, height : i32, startangle : f32, sweepangle : f32) -> Status); - GdipAddPathArcI(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipAddPathArcI(core::mem::transmute(path), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipAddPathBezier(path: *mut GpPath, x1: f32, y1: f32, x2: f32, y2: f32, x3: f32, y3: f32, x4: f32, y4: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathBezier(path : *mut GpPath, x1 : f32, y1 : f32, x2 : f32, y2 : f32, x3 : f32, y3 : f32, x4 : f32, y4 : f32) -> Status); - GdipAddPathBezier(core::mem::transmute(path), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(x3), core::mem::transmute(y3), core::mem::transmute(x4), core::mem::transmute(y4)) + GdipAddPathBezier(core::mem::transmute(path), x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn GdipAddPathBezierI(path: *mut GpPath, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathBezierI(path : *mut GpPath, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> Status); - GdipAddPathBezierI(core::mem::transmute(path), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(x3), core::mem::transmute(y3), core::mem::transmute(x4), core::mem::transmute(y4)) + GdipAddPathBezierI(core::mem::transmute(path), x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn GdipAddPathBeziers(path: *mut GpPath, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathBeziers(path : *mut GpPath, points : *const PointF, count : i32) -> Status); - GdipAddPathBeziers(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathBeziers(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathBeziersI(path: *mut GpPath, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathBeziersI(path : *mut GpPath, points : *const Point, count : i32) -> Status); - GdipAddPathBeziersI(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathBeziersI(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathClosedCurve(path: *mut GpPath, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathClosedCurve(path : *mut GpPath, points : *const PointF, count : i32) -> Status); - GdipAddPathClosedCurve(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathClosedCurve(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathClosedCurve2(path: *mut GpPath, points: *const PointF, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathClosedCurve2(path : *mut GpPath, points : *const PointF, count : i32, tension : f32) -> Status); - GdipAddPathClosedCurve2(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipAddPathClosedCurve2(core::mem::transmute(path), points, count, tension) } #[inline] pub unsafe fn GdipAddPathClosedCurve2I(path: *mut GpPath, points: *const Point, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathClosedCurve2I(path : *mut GpPath, points : *const Point, count : i32, tension : f32) -> Status); - GdipAddPathClosedCurve2I(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipAddPathClosedCurve2I(core::mem::transmute(path), points, count, tension) } #[inline] pub unsafe fn GdipAddPathClosedCurveI(path: *mut GpPath, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathClosedCurveI(path : *mut GpPath, points : *const Point, count : i32) -> Status); - GdipAddPathClosedCurveI(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathClosedCurveI(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathCurve(path: *mut GpPath, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathCurve(path : *mut GpPath, points : *const PointF, count : i32) -> Status); - GdipAddPathCurve(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathCurve(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathCurve2(path: *mut GpPath, points: *const PointF, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathCurve2(path : *mut GpPath, points : *const PointF, count : i32, tension : f32) -> Status); - GdipAddPathCurve2(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipAddPathCurve2(core::mem::transmute(path), points, count, tension) } #[inline] pub unsafe fn GdipAddPathCurve2I(path: *mut GpPath, points: *const Point, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathCurve2I(path : *mut GpPath, points : *const Point, count : i32, tension : f32) -> Status); - GdipAddPathCurve2I(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipAddPathCurve2I(core::mem::transmute(path), points, count, tension) } #[inline] pub unsafe fn GdipAddPathCurve3(path: *mut GpPath, points: *const PointF, count: i32, offset: i32, numberofsegments: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathCurve3(path : *mut GpPath, points : *const PointF, count : i32, offset : i32, numberofsegments : i32, tension : f32) -> Status); - GdipAddPathCurve3(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(offset), core::mem::transmute(numberofsegments), core::mem::transmute(tension)) + GdipAddPathCurve3(core::mem::transmute(path), points, count, offset, numberofsegments, tension) } #[inline] pub unsafe fn GdipAddPathCurve3I(path: *mut GpPath, points: *const Point, count: i32, offset: i32, numberofsegments: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathCurve3I(path : *mut GpPath, points : *const Point, count : i32, offset : i32, numberofsegments : i32, tension : f32) -> Status); - GdipAddPathCurve3I(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(offset), core::mem::transmute(numberofsegments), core::mem::transmute(tension)) + GdipAddPathCurve3I(core::mem::transmute(path), points, count, offset, numberofsegments, tension) } #[inline] pub unsafe fn GdipAddPathCurveI(path: *mut GpPath, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathCurveI(path : *mut GpPath, points : *const Point, count : i32) -> Status); - GdipAddPathCurveI(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathCurveI(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathEllipse(path: *mut GpPath, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathEllipse(path : *mut GpPath, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipAddPathEllipse(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipAddPathEllipse(core::mem::transmute(path), x, y, width, height) } #[inline] pub unsafe fn GdipAddPathEllipseI(path: *mut GpPath, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathEllipseI(path : *mut GpPath, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipAddPathEllipseI(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipAddPathEllipseI(core::mem::transmute(path), x, y, width, height) } #[inline] pub unsafe fn GdipAddPathLine(path: *mut GpPath, x1: f32, y1: f32, x2: f32, y2: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathLine(path : *mut GpPath, x1 : f32, y1 : f32, x2 : f32, y2 : f32) -> Status); - GdipAddPathLine(core::mem::transmute(path), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + GdipAddPathLine(core::mem::transmute(path), x1, y1, x2, y2) } #[inline] pub unsafe fn GdipAddPathLine2(path: *mut GpPath, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathLine2(path : *mut GpPath, points : *const PointF, count : i32) -> Status); - GdipAddPathLine2(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathLine2(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathLine2I(path: *mut GpPath, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathLine2I(path : *mut GpPath, points : *const Point, count : i32) -> Status); - GdipAddPathLine2I(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathLine2I(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathLineI(path: *mut GpPath, x1: i32, y1: i32, x2: i32, y2: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathLineI(path : *mut GpPath, x1 : i32, y1 : i32, x2 : i32, y2 : i32) -> Status); - GdipAddPathLineI(core::mem::transmute(path), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + GdipAddPathLineI(core::mem::transmute(path), x1, y1, x2, y2) } #[inline] pub unsafe fn GdipAddPathPath(path: *mut GpPath, addingpath: *const GpPath, connect: bool) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPath(path : *mut GpPath, addingpath : *const GpPath, connect : super::super::Foundation:: BOOL) -> Status); - GdipAddPathPath(core::mem::transmute(path), core::mem::transmute(addingpath), connect.into()) + GdipAddPathPath(core::mem::transmute(path), addingpath, connect.into()) } #[inline] pub unsafe fn GdipAddPathPie(path: *mut GpPath, x: f32, y: f32, width: f32, height: f32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPie(path : *mut GpPath, x : f32, y : f32, width : f32, height : f32, startangle : f32, sweepangle : f32) -> Status); - GdipAddPathPie(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipAddPathPie(core::mem::transmute(path), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipAddPathPieI(path: *mut GpPath, x: i32, y: i32, width: i32, height: i32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPieI(path : *mut GpPath, x : i32, y : i32, width : i32, height : i32, startangle : f32, sweepangle : f32) -> Status); - GdipAddPathPieI(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipAddPathPieI(core::mem::transmute(path), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipAddPathPolygon(path: *mut GpPath, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPolygon(path : *mut GpPath, points : *const PointF, count : i32) -> Status); - GdipAddPathPolygon(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathPolygon(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathPolygonI(path: *mut GpPath, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPolygonI(path : *mut GpPath, points : *const Point, count : i32) -> Status); - GdipAddPathPolygonI(core::mem::transmute(path), core::mem::transmute(points), core::mem::transmute(count)) + GdipAddPathPolygonI(core::mem::transmute(path), points, count) } #[inline] pub unsafe fn GdipAddPathRectangle(path: *mut GpPath, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathRectangle(path : *mut GpPath, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipAddPathRectangle(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipAddPathRectangle(core::mem::transmute(path), x, y, width, height) } #[inline] pub unsafe fn GdipAddPathRectangleI(path: *mut GpPath, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathRectangleI(path : *mut GpPath, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipAddPathRectangleI(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipAddPathRectangleI(core::mem::transmute(path), x, y, width, height) } #[inline] pub unsafe fn GdipAddPathRectangles(path: *mut GpPath, rects: *const RectF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathRectangles(path : *mut GpPath, rects : *const RectF, count : i32) -> Status); - GdipAddPathRectangles(core::mem::transmute(path), core::mem::transmute(rects), core::mem::transmute(count)) + GdipAddPathRectangles(core::mem::transmute(path), rects, count) } #[inline] pub unsafe fn GdipAddPathRectanglesI(path: *mut GpPath, rects: *const Rect, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathRectanglesI(path : *mut GpPath, rects : *const Rect, count : i32) -> Status); - GdipAddPathRectanglesI(core::mem::transmute(path), core::mem::transmute(rects), core::mem::transmute(count)) + GdipAddPathRectanglesI(core::mem::transmute(path), rects, count) } #[inline] pub unsafe fn GdipAddPathString(path: *mut GpPath, string: P1, length: i32, family: *const GpFontFamily, style: i32, emsize: f32, layoutrect: *const RectF, format: *const GpStringFormat) -> Status @@ -159,7 +159,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathString(path : *mut GpPath, string : windows_core::PCWSTR, length : i32, family : *const GpFontFamily, style : i32, emsize : f32, layoutrect : *const RectF, format : *const GpStringFormat) -> Status); - GdipAddPathString(core::mem::transmute(path), string.param().abi(), core::mem::transmute(length), core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(emsize), core::mem::transmute(layoutrect), core::mem::transmute(format)) + GdipAddPathString(core::mem::transmute(path), string.param().abi(), length, family, style, emsize, layoutrect, format) } #[inline] pub unsafe fn GdipAddPathStringI(path: *mut GpPath, string: P1, length: i32, family: *const GpFontFamily, style: i32, emsize: f32, layoutrect: *const Rect, format: *const GpStringFormat) -> Status @@ -167,17 +167,17 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathStringI(path : *mut GpPath, string : windows_core::PCWSTR, length : i32, family : *const GpFontFamily, style : i32, emsize : f32, layoutrect : *const Rect, format : *const GpStringFormat) -> Status); - GdipAddPathStringI(core::mem::transmute(path), string.param().abi(), core::mem::transmute(length), core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(emsize), core::mem::transmute(layoutrect), core::mem::transmute(format)) + GdipAddPathStringI(core::mem::transmute(path), string.param().abi(), length, family, style, emsize, layoutrect, format) } #[inline] pub unsafe fn GdipAlloc(size: usize) -> *mut core::ffi::c_void { windows_targets::link!("gdiplus.dll" "system" fn GdipAlloc(size : usize) -> *mut core::ffi::c_void); - GdipAlloc(core::mem::transmute(size)) + GdipAlloc(size) } #[inline] pub unsafe fn GdipBeginContainer(graphics: *mut GpGraphics, dstrect: *const RectF, srcrect: *const RectF, unit: Unit, state: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBeginContainer(graphics : *mut GpGraphics, dstrect : *const RectF, srcrect : *const RectF, unit : Unit, state : *mut u32) -> Status); - GdipBeginContainer(core::mem::transmute(graphics), core::mem::transmute(dstrect), core::mem::transmute(srcrect), core::mem::transmute(unit), core::mem::transmute(state)) + GdipBeginContainer(core::mem::transmute(graphics), dstrect, srcrect, unit, core::mem::transmute(state)) } #[inline] pub unsafe fn GdipBeginContainer2(graphics: *mut GpGraphics, state: *mut u32) -> Status { @@ -187,7 +187,7 @@ pub unsafe fn GdipBeginContainer2(graphics: *mut GpGraphics, state: *mut u32) -> #[inline] pub unsafe fn GdipBeginContainerI(graphics: *mut GpGraphics, dstrect: *const Rect, srcrect: *const Rect, unit: Unit, state: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBeginContainerI(graphics : *mut GpGraphics, dstrect : *const Rect, srcrect : *const Rect, unit : Unit, state : *mut u32) -> Status); - GdipBeginContainerI(core::mem::transmute(graphics), core::mem::transmute(dstrect), core::mem::transmute(srcrect), core::mem::transmute(unit), core::mem::transmute(state)) + GdipBeginContainerI(core::mem::transmute(graphics), dstrect, srcrect, unit, core::mem::transmute(state)) } #[inline] pub unsafe fn GdipBitmapApplyEffect(bitmap: *mut GpBitmap, effect: *mut CGpEffect, roi: *mut super::super::Foundation::RECT, useauxdata: bool, auxdata: *mut *mut core::ffi::c_void, auxdatasize: *mut i32) -> Status { @@ -197,42 +197,42 @@ pub unsafe fn GdipBitmapApplyEffect(bitmap: *mut GpBitmap, effect: *mut CGpEffec #[inline] pub unsafe fn GdipBitmapConvertFormat(pinputbitmap: *mut GpBitmap, format: i32, dithertype: DitherType, palettetype: PaletteType, palette: *mut ColorPalette, alphathresholdpercent: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapConvertFormat(pinputbitmap : *mut GpBitmap, format : i32, dithertype : DitherType, palettetype : PaletteType, palette : *mut ColorPalette, alphathresholdpercent : f32) -> Status); - GdipBitmapConvertFormat(core::mem::transmute(pinputbitmap), core::mem::transmute(format), core::mem::transmute(dithertype), core::mem::transmute(palettetype), core::mem::transmute(palette), core::mem::transmute(alphathresholdpercent)) + GdipBitmapConvertFormat(core::mem::transmute(pinputbitmap), format, dithertype, palettetype, core::mem::transmute(palette), alphathresholdpercent) } #[inline] pub unsafe fn GdipBitmapCreateApplyEffect(inputbitmaps: *mut *mut GpBitmap, numinputs: i32, effect: *mut CGpEffect, roi: *mut super::super::Foundation::RECT, outputrect: *mut super::super::Foundation::RECT, outputbitmap: *mut *mut GpBitmap, useauxdata: bool, auxdata: *mut *mut core::ffi::c_void, auxdatasize: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapCreateApplyEffect(inputbitmaps : *mut *mut GpBitmap, numinputs : i32, effect : *mut CGpEffect, roi : *mut super::super::Foundation:: RECT, outputrect : *mut super::super::Foundation:: RECT, outputbitmap : *mut *mut GpBitmap, useauxdata : super::super::Foundation:: BOOL, auxdata : *mut *mut core::ffi::c_void, auxdatasize : *mut i32) -> Status); - GdipBitmapCreateApplyEffect(core::mem::transmute(inputbitmaps), core::mem::transmute(numinputs), core::mem::transmute(effect), core::mem::transmute(roi), core::mem::transmute(outputrect), core::mem::transmute(outputbitmap), useauxdata.into(), core::mem::transmute(auxdata), core::mem::transmute(auxdatasize)) + GdipBitmapCreateApplyEffect(core::mem::transmute(inputbitmaps), numinputs, core::mem::transmute(effect), core::mem::transmute(roi), core::mem::transmute(outputrect), core::mem::transmute(outputbitmap), useauxdata.into(), core::mem::transmute(auxdata), core::mem::transmute(auxdatasize)) } #[inline] pub unsafe fn GdipBitmapGetHistogram(bitmap: *mut GpBitmap, format: HistogramFormat, numberofentries: u32, channel0: *mut u32, channel1: *mut u32, channel2: *mut u32, channel3: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapGetHistogram(bitmap : *mut GpBitmap, format : HistogramFormat, numberofentries : u32, channel0 : *mut u32, channel1 : *mut u32, channel2 : *mut u32, channel3 : *mut u32) -> Status); - GdipBitmapGetHistogram(core::mem::transmute(bitmap), core::mem::transmute(format), core::mem::transmute(numberofentries), core::mem::transmute(channel0), core::mem::transmute(channel1), core::mem::transmute(channel2), core::mem::transmute(channel3)) + GdipBitmapGetHistogram(core::mem::transmute(bitmap), format, numberofentries, core::mem::transmute(channel0), core::mem::transmute(channel1), core::mem::transmute(channel2), core::mem::transmute(channel3)) } #[inline] pub unsafe fn GdipBitmapGetHistogramSize(format: HistogramFormat, numberofentries: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapGetHistogramSize(format : HistogramFormat, numberofentries : *mut u32) -> Status); - GdipBitmapGetHistogramSize(core::mem::transmute(format), core::mem::transmute(numberofentries)) + GdipBitmapGetHistogramSize(format, core::mem::transmute(numberofentries)) } #[inline] pub unsafe fn GdipBitmapGetPixel(bitmap: *mut GpBitmap, x: i32, y: i32, color: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapGetPixel(bitmap : *mut GpBitmap, x : i32, y : i32, color : *mut u32) -> Status); - GdipBitmapGetPixel(core::mem::transmute(bitmap), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(color)) + GdipBitmapGetPixel(core::mem::transmute(bitmap), x, y, core::mem::transmute(color)) } #[inline] pub unsafe fn GdipBitmapLockBits(bitmap: *mut GpBitmap, rect: *const Rect, flags: u32, format: i32, lockedbitmapdata: *mut BitmapData) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapLockBits(bitmap : *mut GpBitmap, rect : *const Rect, flags : u32, format : i32, lockedbitmapdata : *mut BitmapData) -> Status); - GdipBitmapLockBits(core::mem::transmute(bitmap), core::mem::transmute(rect), core::mem::transmute(flags), core::mem::transmute(format), core::mem::transmute(lockedbitmapdata)) + GdipBitmapLockBits(core::mem::transmute(bitmap), rect, flags, format, core::mem::transmute(lockedbitmapdata)) } #[inline] pub unsafe fn GdipBitmapSetPixel(bitmap: *mut GpBitmap, x: i32, y: i32, color: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapSetPixel(bitmap : *mut GpBitmap, x : i32, y : i32, color : u32) -> Status); - GdipBitmapSetPixel(core::mem::transmute(bitmap), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(color)) + GdipBitmapSetPixel(core::mem::transmute(bitmap), x, y, color) } #[inline] pub unsafe fn GdipBitmapSetResolution(bitmap: *mut GpBitmap, xdpi: f32, ydpi: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapSetResolution(bitmap : *mut GpBitmap, xdpi : f32, ydpi : f32) -> Status); - GdipBitmapSetResolution(core::mem::transmute(bitmap), core::mem::transmute(xdpi), core::mem::transmute(ydpi)) + GdipBitmapSetResolution(core::mem::transmute(bitmap), xdpi, ydpi) } #[inline] pub unsafe fn GdipBitmapUnlockBits(bitmap: *mut GpBitmap, lockedbitmapdata: *mut BitmapData) -> Status { @@ -247,12 +247,12 @@ pub unsafe fn GdipClearPathMarkers(path: *mut GpPath) -> Status { #[inline] pub unsafe fn GdipCloneBitmapArea(x: f32, y: f32, width: f32, height: f32, format: i32, srcbitmap: *mut GpBitmap, dstbitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCloneBitmapArea(x : f32, y : f32, width : f32, height : f32, format : i32, srcbitmap : *mut GpBitmap, dstbitmap : *mut *mut GpBitmap) -> Status); - GdipCloneBitmapArea(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(srcbitmap), core::mem::transmute(dstbitmap)) + GdipCloneBitmapArea(x, y, width, height, format, core::mem::transmute(srcbitmap), core::mem::transmute(dstbitmap)) } #[inline] pub unsafe fn GdipCloneBitmapAreaI(x: i32, y: i32, width: i32, height: i32, format: i32, srcbitmap: *mut GpBitmap, dstbitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCloneBitmapAreaI(x : i32, y : i32, width : i32, height : i32, format : i32, srcbitmap : *mut GpBitmap, dstbitmap : *mut *mut GpBitmap) -> Status); - GdipCloneBitmapAreaI(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(srcbitmap), core::mem::transmute(dstbitmap)) + GdipCloneBitmapAreaI(x, y, width, height, format, core::mem::transmute(srcbitmap), core::mem::transmute(dstbitmap)) } #[inline] pub unsafe fn GdipCloneBrush(brush: *mut GpBrush, clonebrush: *mut *mut GpBrush) -> Status { @@ -282,7 +282,7 @@ pub unsafe fn GdipCloneImage(image: *mut GpImage, cloneimage: *mut *mut GpImage) #[inline] pub unsafe fn GdipCloneImageAttributes(imageattr: *const GpImageAttributes, cloneimageattr: *mut *mut GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCloneImageAttributes(imageattr : *const GpImageAttributes, cloneimageattr : *mut *mut GpImageAttributes) -> Status); - GdipCloneImageAttributes(core::mem::transmute(imageattr), core::mem::transmute(cloneimageattr)) + GdipCloneImageAttributes(imageattr, core::mem::transmute(cloneimageattr)) } #[inline] pub unsafe fn GdipCloneMatrix(matrix: *mut Matrix, clonematrix: *mut *mut Matrix) -> Status { @@ -307,7 +307,7 @@ pub unsafe fn GdipCloneRegion(region: *mut GpRegion, cloneregion: *mut *mut GpRe #[inline] pub unsafe fn GdipCloneStringFormat(format: *const GpStringFormat, newformat: *mut *mut GpStringFormat) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCloneStringFormat(format : *const GpStringFormat, newformat : *mut *mut GpStringFormat) -> Status); - GdipCloneStringFormat(core::mem::transmute(format), core::mem::transmute(newformat)) + GdipCloneStringFormat(format, core::mem::transmute(newformat)) } #[inline] pub unsafe fn GdipClosePathFigure(path: *mut GpPath) -> Status { @@ -322,27 +322,27 @@ pub unsafe fn GdipClosePathFigures(path: *mut GpPath) -> Status { #[inline] pub unsafe fn GdipCombineRegionPath(region: *mut GpRegion, path: *mut GpPath, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCombineRegionPath(region : *mut GpRegion, path : *mut GpPath, combinemode : CombineMode) -> Status); - GdipCombineRegionPath(core::mem::transmute(region), core::mem::transmute(path), core::mem::transmute(combinemode)) + GdipCombineRegionPath(core::mem::transmute(region), core::mem::transmute(path), combinemode) } #[inline] pub unsafe fn GdipCombineRegionRect(region: *mut GpRegion, rect: *const RectF, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCombineRegionRect(region : *mut GpRegion, rect : *const RectF, combinemode : CombineMode) -> Status); - GdipCombineRegionRect(core::mem::transmute(region), core::mem::transmute(rect), core::mem::transmute(combinemode)) + GdipCombineRegionRect(core::mem::transmute(region), rect, combinemode) } #[inline] pub unsafe fn GdipCombineRegionRectI(region: *mut GpRegion, rect: *const Rect, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCombineRegionRectI(region : *mut GpRegion, rect : *const Rect, combinemode : CombineMode) -> Status); - GdipCombineRegionRectI(core::mem::transmute(region), core::mem::transmute(rect), core::mem::transmute(combinemode)) + GdipCombineRegionRectI(core::mem::transmute(region), rect, combinemode) } #[inline] pub unsafe fn GdipCombineRegionRegion(region: *mut GpRegion, region2: *mut GpRegion, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCombineRegionRegion(region : *mut GpRegion, region2 : *mut GpRegion, combinemode : CombineMode) -> Status); - GdipCombineRegionRegion(core::mem::transmute(region), core::mem::transmute(region2), core::mem::transmute(combinemode)) + GdipCombineRegionRegion(core::mem::transmute(region), core::mem::transmute(region2), combinemode) } #[inline] pub unsafe fn GdipComment(graphics: *mut GpGraphics, sizedata: u32, data: *const u8) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipComment(graphics : *mut GpGraphics, sizedata : u32, data : *const u8) -> Status); - GdipComment(core::mem::transmute(graphics), core::mem::transmute(sizedata), core::mem::transmute(data)) + GdipComment(core::mem::transmute(graphics), sizedata, data) } #[inline] pub unsafe fn GdipConvertToEmfPlus(refgraphics: *const GpGraphics, metafile: *mut GpMetafile, conversionfailureflag: *mut i32, emftype: EmfType, description: P4, out_metafile: *mut *mut GpMetafile) -> Status @@ -350,7 +350,7 @@ where P4: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipConvertToEmfPlus(refgraphics : *const GpGraphics, metafile : *mut GpMetafile, conversionfailureflag : *mut i32, emftype : EmfType, description : windows_core::PCWSTR, out_metafile : *mut *mut GpMetafile) -> Status); - GdipConvertToEmfPlus(core::mem::transmute(refgraphics), core::mem::transmute(metafile), core::mem::transmute(conversionfailureflag), core::mem::transmute(emftype), description.param().abi(), core::mem::transmute(out_metafile)) + GdipConvertToEmfPlus(refgraphics, core::mem::transmute(metafile), core::mem::transmute(conversionfailureflag), emftype, description.param().abi(), core::mem::transmute(out_metafile)) } #[inline] pub unsafe fn GdipConvertToEmfPlusToFile(refgraphics: *const GpGraphics, metafile: *mut GpMetafile, conversionfailureflag: *mut i32, filename: P3, emftype: EmfType, description: P5, out_metafile: *mut *mut GpMetafile) -> Status @@ -359,7 +359,7 @@ where P5: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipConvertToEmfPlusToFile(refgraphics : *const GpGraphics, metafile : *mut GpMetafile, conversionfailureflag : *mut i32, filename : windows_core::PCWSTR, emftype : EmfType, description : windows_core::PCWSTR, out_metafile : *mut *mut GpMetafile) -> Status); - GdipConvertToEmfPlusToFile(core::mem::transmute(refgraphics), core::mem::transmute(metafile), core::mem::transmute(conversionfailureflag), filename.param().abi(), core::mem::transmute(emftype), description.param().abi(), core::mem::transmute(out_metafile)) + GdipConvertToEmfPlusToFile(refgraphics, core::mem::transmute(metafile), core::mem::transmute(conversionfailureflag), filename.param().abi(), emftype, description.param().abi(), core::mem::transmute(out_metafile)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -369,12 +369,12 @@ where P5: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipConvertToEmfPlusToStream(refgraphics : *const GpGraphics, metafile : *mut GpMetafile, conversionfailureflag : *mut i32, stream : * mut core::ffi::c_void, emftype : EmfType, description : windows_core::PCWSTR, out_metafile : *mut *mut GpMetafile) -> Status); - GdipConvertToEmfPlusToStream(core::mem::transmute(refgraphics), core::mem::transmute(metafile), core::mem::transmute(conversionfailureflag), stream.param().abi(), core::mem::transmute(emftype), description.param().abi(), core::mem::transmute(out_metafile)) + GdipConvertToEmfPlusToStream(refgraphics, core::mem::transmute(metafile), core::mem::transmute(conversionfailureflag), stream.param().abi(), emftype, description.param().abi(), core::mem::transmute(out_metafile)) } #[inline] pub unsafe fn GdipCreateAdjustableArrowCap(height: f32, width: f32, isfilled: bool, cap: *mut *mut GpAdjustableArrowCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateAdjustableArrowCap(height : f32, width : f32, isfilled : super::super::Foundation:: BOOL, cap : *mut *mut GpAdjustableArrowCap) -> Status); - GdipCreateAdjustableArrowCap(core::mem::transmute(height), core::mem::transmute(width), isfilled.into(), core::mem::transmute(cap)) + GdipCreateAdjustableArrowCap(height, width, isfilled.into(), core::mem::transmute(cap)) } #[cfg(feature = "Win32_Graphics_DirectDraw")] #[inline] @@ -405,24 +405,24 @@ where #[inline] pub unsafe fn GdipCreateBitmapFromGdiDib(gdibitmapinfo: *const super::Gdi::BITMAPINFO, gdibitmapdata: *mut core::ffi::c_void, bitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromGdiDib(gdibitmapinfo : *const super::Gdi:: BITMAPINFO, gdibitmapdata : *mut core::ffi::c_void, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromGdiDib(core::mem::transmute(gdibitmapinfo), core::mem::transmute(gdibitmapdata), core::mem::transmute(bitmap)) + GdipCreateBitmapFromGdiDib(gdibitmapinfo, core::mem::transmute(gdibitmapdata), core::mem::transmute(bitmap)) } #[inline] pub unsafe fn GdipCreateBitmapFromGraphics(width: i32, height: i32, target: *mut GpGraphics, bitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromGraphics(width : i32, height : i32, target : *mut GpGraphics, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromGraphics(core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(target), core::mem::transmute(bitmap)) + GdipCreateBitmapFromGraphics(width, height, core::mem::transmute(target), core::mem::transmute(bitmap)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateBitmapFromHBITMAP(hbm: super::Gdi::HBITMAP, hpal: super::Gdi::HPALETTE, bitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromHBITMAP(hbm : super::Gdi:: HBITMAP, hpal : super::Gdi:: HPALETTE, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromHBITMAP(core::mem::transmute(hbm), core::mem::transmute(hpal), core::mem::transmute(bitmap)) + GdipCreateBitmapFromHBITMAP(hbm, hpal, core::mem::transmute(bitmap)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GdipCreateBitmapFromHICON(hicon: super::super::UI::WindowsAndMessaging::HICON, bitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromHICON(hicon : super::super::UI::WindowsAndMessaging:: HICON, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromHICON(core::mem::transmute(hicon), core::mem::transmute(bitmap)) + GdipCreateBitmapFromHICON(hicon, core::mem::transmute(bitmap)) } #[inline] pub unsafe fn GdipCreateBitmapFromResource(hinstance: super::super::Foundation::HINSTANCE, lpbitmapname: P1, bitmap: *mut *mut GpBitmap) -> Status @@ -430,12 +430,12 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromResource(hinstance : super::super::Foundation:: HINSTANCE, lpbitmapname : windows_core::PCWSTR, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromResource(core::mem::transmute(hinstance), lpbitmapname.param().abi(), core::mem::transmute(bitmap)) + GdipCreateBitmapFromResource(hinstance, lpbitmapname.param().abi(), core::mem::transmute(bitmap)) } #[inline] pub unsafe fn GdipCreateBitmapFromScan0(width: i32, height: i32, stride: i32, format: i32, scan0: Option<*const u8>, bitmap: *mut *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromScan0(width : i32, height : i32, stride : i32, format : i32, scan0 : *const u8, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromScan0(core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(stride), core::mem::transmute(format), core::mem::transmute(scan0.unwrap_or(core::mem::zeroed())), core::mem::transmute(bitmap)) + GdipCreateBitmapFromScan0(width, height, stride, format, core::mem::transmute(scan0.unwrap_or(core::mem::zeroed())), core::mem::transmute(bitmap)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -463,7 +463,7 @@ pub unsafe fn GdipCreateCachedBitmap(bitmap: *mut GpBitmap, graphics: *mut GpGra #[inline] pub unsafe fn GdipCreateCustomLineCap(fillpath: *mut GpPath, strokepath: *mut GpPath, basecap: LineCap, baseinset: f32, customcap: *mut *mut GpCustomLineCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateCustomLineCap(fillpath : *mut GpPath, strokepath : *mut GpPath, basecap : LineCap, baseinset : f32, customcap : *mut *mut GpCustomLineCap) -> Status); - GdipCreateCustomLineCap(core::mem::transmute(fillpath), core::mem::transmute(strokepath), core::mem::transmute(basecap), core::mem::transmute(baseinset), core::mem::transmute(customcap)) + GdipCreateCustomLineCap(core::mem::transmute(fillpath), core::mem::transmute(strokepath), basecap, baseinset, core::mem::transmute(customcap)) } #[inline] pub unsafe fn GdipCreateEffect(guid: windows_core::GUID, effect: *mut *mut CGpEffect) -> Status { @@ -473,7 +473,7 @@ pub unsafe fn GdipCreateEffect(guid: windows_core::GUID, effect: *mut *mut CGpEf #[inline] pub unsafe fn GdipCreateFont(fontfamily: *const GpFontFamily, emsize: f32, style: i32, unit: Unit, font: *mut *mut GpFont) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFont(fontfamily : *const GpFontFamily, emsize : f32, style : i32, unit : Unit, font : *mut *mut GpFont) -> Status); - GdipCreateFont(core::mem::transmute(fontfamily), core::mem::transmute(emsize), core::mem::transmute(style), core::mem::transmute(unit), core::mem::transmute(font)) + GdipCreateFont(fontfamily, emsize, style, unit, core::mem::transmute(font)) } #[inline] pub unsafe fn GdipCreateFontFamilyFromName(name: P0, fontcollection: *mut GpFontCollection, fontfamily: *mut *mut GpFontFamily) -> Status @@ -487,47 +487,47 @@ where #[inline] pub unsafe fn GdipCreateFontFromDC(hdc: super::Gdi::HDC, font: *mut *mut GpFont) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFromDC(hdc : super::Gdi:: HDC, font : *mut *mut GpFont) -> Status); - GdipCreateFontFromDC(core::mem::transmute(hdc), core::mem::transmute(font)) + GdipCreateFontFromDC(hdc, core::mem::transmute(font)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFontFromLogfontA(hdc: super::Gdi::HDC, logfont: *const super::Gdi::LOGFONTA, font: *mut *mut GpFont) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFromLogfontA(hdc : super::Gdi:: HDC, logfont : *const super::Gdi:: LOGFONTA, font : *mut *mut GpFont) -> Status); - GdipCreateFontFromLogfontA(core::mem::transmute(hdc), core::mem::transmute(logfont), core::mem::transmute(font)) + GdipCreateFontFromLogfontA(hdc, logfont, core::mem::transmute(font)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFontFromLogfontW(hdc: super::Gdi::HDC, logfont: *const super::Gdi::LOGFONTW, font: *mut *mut GpFont) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFromLogfontW(hdc : super::Gdi:: HDC, logfont : *const super::Gdi:: LOGFONTW, font : *mut *mut GpFont) -> Status); - GdipCreateFontFromLogfontW(core::mem::transmute(hdc), core::mem::transmute(logfont), core::mem::transmute(font)) + GdipCreateFontFromLogfontW(hdc, logfont, core::mem::transmute(font)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFromHDC(hdc: super::Gdi::HDC, graphics: *mut *mut GpGraphics) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHDC(hdc : super::Gdi:: HDC, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHDC(core::mem::transmute(hdc), core::mem::transmute(graphics)) + GdipCreateFromHDC(hdc, core::mem::transmute(graphics)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFromHDC2(hdc: super::Gdi::HDC, hdevice: super::super::Foundation::HANDLE, graphics: *mut *mut GpGraphics) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHDC2(hdc : super::Gdi:: HDC, hdevice : super::super::Foundation:: HANDLE, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHDC2(core::mem::transmute(hdc), core::mem::transmute(hdevice), core::mem::transmute(graphics)) + GdipCreateFromHDC2(hdc, hdevice, core::mem::transmute(graphics)) } #[inline] pub unsafe fn GdipCreateFromHWND(hwnd: super::super::Foundation::HWND, graphics: *mut *mut GpGraphics) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHWND(hwnd : super::super::Foundation:: HWND, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHWND(core::mem::transmute(hwnd), core::mem::transmute(graphics)) + GdipCreateFromHWND(hwnd, core::mem::transmute(graphics)) } #[inline] pub unsafe fn GdipCreateFromHWNDICM(hwnd: super::super::Foundation::HWND, graphics: *mut *mut GpGraphics) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHWNDICM(hwnd : super::super::Foundation:: HWND, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHWNDICM(core::mem::transmute(hwnd), core::mem::transmute(graphics)) + GdipCreateFromHWNDICM(hwnd, core::mem::transmute(graphics)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateHBITMAPFromBitmap(bitmap: *mut GpBitmap, hbmreturn: *mut super::Gdi::HBITMAP, background: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateHBITMAPFromBitmap(bitmap : *mut GpBitmap, hbmreturn : *mut super::Gdi:: HBITMAP, background : u32) -> Status); - GdipCreateHBITMAPFromBitmap(core::mem::transmute(bitmap), core::mem::transmute(hbmreturn), core::mem::transmute(background)) + GdipCreateHBITMAPFromBitmap(core::mem::transmute(bitmap), core::mem::transmute(hbmreturn), background) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -544,7 +544,7 @@ pub unsafe fn GdipCreateHalftonePalette() -> super::Gdi::HPALETTE { #[inline] pub unsafe fn GdipCreateHatchBrush(hatchstyle: HatchStyle, forecol: u32, backcol: u32, brush: *mut *mut GpHatch) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateHatchBrush(hatchstyle : HatchStyle, forecol : u32, backcol : u32, brush : *mut *mut GpHatch) -> Status); - GdipCreateHatchBrush(core::mem::transmute(hatchstyle), core::mem::transmute(forecol), core::mem::transmute(backcol), core::mem::transmute(brush)) + GdipCreateHatchBrush(hatchstyle, forecol, backcol, core::mem::transmute(brush)) } #[inline] pub unsafe fn GdipCreateImageAttributes(imageattr: *mut *mut GpImageAttributes) -> Status { @@ -554,32 +554,32 @@ pub unsafe fn GdipCreateImageAttributes(imageattr: *mut *mut GpImageAttributes) #[inline] pub unsafe fn GdipCreateLineBrush(point1: *const PointF, point2: *const PointF, color1: u32, color2: u32, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrush(point1 : *const PointF, point2 : *const PointF, color1 : u32, color2 : u32, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); - GdipCreateLineBrush(core::mem::transmute(point1), core::mem::transmute(point2), core::mem::transmute(color1), core::mem::transmute(color2), core::mem::transmute(wrapmode), core::mem::transmute(linegradient)) + GdipCreateLineBrush(point1, point2, color1, color2, wrapmode, core::mem::transmute(linegradient)) } #[inline] pub unsafe fn GdipCreateLineBrushFromRect(rect: *const RectF, color1: u32, color2: u32, mode: LinearGradientMode, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRect(rect : *const RectF, color1 : u32, color2 : u32, mode : LinearGradientMode, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); - GdipCreateLineBrushFromRect(core::mem::transmute(rect), core::mem::transmute(color1), core::mem::transmute(color2), core::mem::transmute(mode), core::mem::transmute(wrapmode), core::mem::transmute(linegradient)) + GdipCreateLineBrushFromRect(rect, color1, color2, mode, wrapmode, core::mem::transmute(linegradient)) } #[inline] pub unsafe fn GdipCreateLineBrushFromRectI(rect: *const Rect, color1: u32, color2: u32, mode: LinearGradientMode, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectI(rect : *const Rect, color1 : u32, color2 : u32, mode : LinearGradientMode, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); - GdipCreateLineBrushFromRectI(core::mem::transmute(rect), core::mem::transmute(color1), core::mem::transmute(color2), core::mem::transmute(mode), core::mem::transmute(wrapmode), core::mem::transmute(linegradient)) + GdipCreateLineBrushFromRectI(rect, color1, color2, mode, wrapmode, core::mem::transmute(linegradient)) } #[inline] pub unsafe fn GdipCreateLineBrushFromRectWithAngle(rect: *const RectF, color1: u32, color2: u32, angle: f32, isanglescalable: bool, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectWithAngle(rect : *const RectF, color1 : u32, color2 : u32, angle : f32, isanglescalable : super::super::Foundation:: BOOL, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); - GdipCreateLineBrushFromRectWithAngle(core::mem::transmute(rect), core::mem::transmute(color1), core::mem::transmute(color2), core::mem::transmute(angle), isanglescalable.into(), core::mem::transmute(wrapmode), core::mem::transmute(linegradient)) + GdipCreateLineBrushFromRectWithAngle(rect, color1, color2, angle, isanglescalable.into(), wrapmode, core::mem::transmute(linegradient)) } #[inline] pub unsafe fn GdipCreateLineBrushFromRectWithAngleI(rect: *const Rect, color1: u32, color2: u32, angle: f32, isanglescalable: bool, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectWithAngleI(rect : *const Rect, color1 : u32, color2 : u32, angle : f32, isanglescalable : super::super::Foundation:: BOOL, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); - GdipCreateLineBrushFromRectWithAngleI(core::mem::transmute(rect), core::mem::transmute(color1), core::mem::transmute(color2), core::mem::transmute(angle), isanglescalable.into(), core::mem::transmute(wrapmode), core::mem::transmute(linegradient)) + GdipCreateLineBrushFromRectWithAngleI(rect, color1, color2, angle, isanglescalable.into(), wrapmode, core::mem::transmute(linegradient)) } #[inline] pub unsafe fn GdipCreateLineBrushI(point1: *const Point, point2: *const Point, color1: u32, color2: u32, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushI(point1 : *const Point, point2 : *const Point, color1 : u32, color2 : u32, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); - GdipCreateLineBrushI(core::mem::transmute(point1), core::mem::transmute(point2), core::mem::transmute(color1), core::mem::transmute(color2), core::mem::transmute(wrapmode), core::mem::transmute(linegradient)) + GdipCreateLineBrushI(point1, point2, color1, color2, wrapmode, core::mem::transmute(linegradient)) } #[inline] pub unsafe fn GdipCreateMatrix(matrix: *mut *mut Matrix) -> Status { @@ -589,23 +589,23 @@ pub unsafe fn GdipCreateMatrix(matrix: *mut *mut Matrix) -> Status { #[inline] pub unsafe fn GdipCreateMatrix2(m11: f32, m12: f32, m21: f32, m22: f32, dx: f32, dy: f32, matrix: *mut *mut Matrix) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMatrix2(m11 : f32, m12 : f32, m21 : f32, m22 : f32, dx : f32, dy : f32, matrix : *mut *mut Matrix) -> Status); - GdipCreateMatrix2(core::mem::transmute(m11), core::mem::transmute(m12), core::mem::transmute(m21), core::mem::transmute(m22), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(matrix)) + GdipCreateMatrix2(m11, m12, m21, m22, dx, dy, core::mem::transmute(matrix)) } #[inline] pub unsafe fn GdipCreateMatrix3(rect: *const RectF, dstplg: *const PointF, matrix: *mut *mut Matrix) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMatrix3(rect : *const RectF, dstplg : *const PointF, matrix : *mut *mut Matrix) -> Status); - GdipCreateMatrix3(core::mem::transmute(rect), core::mem::transmute(dstplg), core::mem::transmute(matrix)) + GdipCreateMatrix3(rect, dstplg, core::mem::transmute(matrix)) } #[inline] pub unsafe fn GdipCreateMatrix3I(rect: *const Rect, dstplg: *const Point, matrix: *mut *mut Matrix) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMatrix3I(rect : *const Rect, dstplg : *const Point, matrix : *mut *mut Matrix) -> Status); - GdipCreateMatrix3I(core::mem::transmute(rect), core::mem::transmute(dstplg), core::mem::transmute(matrix)) + GdipCreateMatrix3I(rect, dstplg, core::mem::transmute(matrix)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateMetafileFromEmf(hemf: super::Gdi::HENHMETAFILE, deleteemf: bool, metafile: *mut *mut GpMetafile) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromEmf(hemf : super::Gdi:: HENHMETAFILE, deleteemf : super::super::Foundation:: BOOL, metafile : *mut *mut GpMetafile) -> Status); - GdipCreateMetafileFromEmf(core::mem::transmute(hemf), deleteemf.into(), core::mem::transmute(metafile)) + GdipCreateMetafileFromEmf(hemf, deleteemf.into(), core::mem::transmute(metafile)) } #[inline] pub unsafe fn GdipCreateMetafileFromFile(file: P0, metafile: *mut *mut GpMetafile) -> Status @@ -628,7 +628,7 @@ where #[inline] pub unsafe fn GdipCreateMetafileFromWmf(hwmf: super::Gdi::HMETAFILE, deletewmf: bool, wmfplaceablefileheader: *const WmfPlaceableFileHeader, metafile: *mut *mut GpMetafile) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromWmf(hwmf : super::Gdi:: HMETAFILE, deletewmf : super::super::Foundation:: BOOL, wmfplaceablefileheader : *const WmfPlaceableFileHeader, metafile : *mut *mut GpMetafile) -> Status); - GdipCreateMetafileFromWmf(core::mem::transmute(hwmf), deletewmf.into(), core::mem::transmute(wmfplaceablefileheader), core::mem::transmute(metafile)) + GdipCreateMetafileFromWmf(hwmf, deletewmf.into(), wmfplaceablefileheader, core::mem::transmute(metafile)) } #[inline] pub unsafe fn GdipCreateMetafileFromWmfFile(file: P0, wmfplaceablefileheader: *const WmfPlaceableFileHeader, metafile: *mut *mut GpMetafile) -> Status @@ -636,37 +636,37 @@ where P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromWmfFile(file : windows_core::PCWSTR, wmfplaceablefileheader : *const WmfPlaceableFileHeader, metafile : *mut *mut GpMetafile) -> Status); - GdipCreateMetafileFromWmfFile(file.param().abi(), core::mem::transmute(wmfplaceablefileheader), core::mem::transmute(metafile)) + GdipCreateMetafileFromWmfFile(file.param().abi(), wmfplaceablefileheader, core::mem::transmute(metafile)) } #[inline] pub unsafe fn GdipCreatePath(brushmode: FillMode, path: *mut *mut GpPath) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePath(brushmode : FillMode, path : *mut *mut GpPath) -> Status); - GdipCreatePath(core::mem::transmute(brushmode), core::mem::transmute(path)) + GdipCreatePath(brushmode, core::mem::transmute(path)) } #[inline] pub unsafe fn GdipCreatePath2(param0: *const PointF, param1: *const u8, param2: i32, param3: FillMode, path: *mut *mut GpPath) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePath2(param0 : *const PointF, param1 : *const u8, param2 : i32, param3 : FillMode, path : *mut *mut GpPath) -> Status); - GdipCreatePath2(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(path)) + GdipCreatePath2(param0, param1, param2, param3, core::mem::transmute(path)) } #[inline] pub unsafe fn GdipCreatePath2I(param0: *const Point, param1: *const u8, param2: i32, param3: FillMode, path: *mut *mut GpPath) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePath2I(param0 : *const Point, param1 : *const u8, param2 : i32, param3 : FillMode, path : *mut *mut GpPath) -> Status); - GdipCreatePath2I(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(path)) + GdipCreatePath2I(param0, param1, param2, param3, core::mem::transmute(path)) } #[inline] pub unsafe fn GdipCreatePathGradient(points: *const PointF, count: i32, wrapmode: WrapMode, polygradient: *mut *mut GpPathGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePathGradient(points : *const PointF, count : i32, wrapmode : WrapMode, polygradient : *mut *mut GpPathGradient) -> Status); - GdipCreatePathGradient(core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(wrapmode), core::mem::transmute(polygradient)) + GdipCreatePathGradient(points, count, wrapmode, core::mem::transmute(polygradient)) } #[inline] pub unsafe fn GdipCreatePathGradientFromPath(path: *const GpPath, polygradient: *mut *mut GpPathGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePathGradientFromPath(path : *const GpPath, polygradient : *mut *mut GpPathGradient) -> Status); - GdipCreatePathGradientFromPath(core::mem::transmute(path), core::mem::transmute(polygradient)) + GdipCreatePathGradientFromPath(path, core::mem::transmute(polygradient)) } #[inline] pub unsafe fn GdipCreatePathGradientI(points: *const Point, count: i32, wrapmode: WrapMode, polygradient: *mut *mut GpPathGradient) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePathGradientI(points : *const Point, count : i32, wrapmode : WrapMode, polygradient : *mut *mut GpPathGradient) -> Status); - GdipCreatePathGradientI(core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(wrapmode), core::mem::transmute(polygradient)) + GdipCreatePathGradientI(points, count, wrapmode, core::mem::transmute(polygradient)) } #[inline] pub unsafe fn GdipCreatePathIter(iterator: *mut *mut GpPathIterator, path: *mut GpPath) -> Status { @@ -676,12 +676,12 @@ pub unsafe fn GdipCreatePathIter(iterator: *mut *mut GpPathIterator, path: *mut #[inline] pub unsafe fn GdipCreatePen1(color: u32, width: f32, unit: Unit, pen: *mut *mut GpPen) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePen1(color : u32, width : f32, unit : Unit, pen : *mut *mut GpPen) -> Status); - GdipCreatePen1(core::mem::transmute(color), core::mem::transmute(width), core::mem::transmute(unit), core::mem::transmute(pen)) + GdipCreatePen1(color, width, unit, core::mem::transmute(pen)) } #[inline] pub unsafe fn GdipCreatePen2(brush: *mut GpBrush, width: f32, unit: Unit, pen: *mut *mut GpPen) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreatePen2(brush : *mut GpBrush, width : f32, unit : Unit, pen : *mut *mut GpPen) -> Status); - GdipCreatePen2(core::mem::transmute(brush), core::mem::transmute(width), core::mem::transmute(unit), core::mem::transmute(pen)) + GdipCreatePen2(core::mem::transmute(brush), width, unit, core::mem::transmute(pen)) } #[inline] pub unsafe fn GdipCreateRegion(region: *mut *mut GpRegion) -> Status { @@ -692,7 +692,7 @@ pub unsafe fn GdipCreateRegion(region: *mut *mut GpRegion) -> Status { #[inline] pub unsafe fn GdipCreateRegionHrgn(hrgn: super::Gdi::HRGN, region: *mut *mut GpRegion) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateRegionHrgn(hrgn : super::Gdi:: HRGN, region : *mut *mut GpRegion) -> Status); - GdipCreateRegionHrgn(core::mem::transmute(hrgn), core::mem::transmute(region)) + GdipCreateRegionHrgn(hrgn, core::mem::transmute(region)) } #[inline] pub unsafe fn GdipCreateRegionPath(path: *mut GpPath, region: *mut *mut GpRegion) -> Status { @@ -702,22 +702,22 @@ pub unsafe fn GdipCreateRegionPath(path: *mut GpPath, region: *mut *mut GpRegion #[inline] pub unsafe fn GdipCreateRegionRect(rect: *const RectF, region: *mut *mut GpRegion) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateRegionRect(rect : *const RectF, region : *mut *mut GpRegion) -> Status); - GdipCreateRegionRect(core::mem::transmute(rect), core::mem::transmute(region)) + GdipCreateRegionRect(rect, core::mem::transmute(region)) } #[inline] pub unsafe fn GdipCreateRegionRectI(rect: *const Rect, region: *mut *mut GpRegion) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateRegionRectI(rect : *const Rect, region : *mut *mut GpRegion) -> Status); - GdipCreateRegionRectI(core::mem::transmute(rect), core::mem::transmute(region)) + GdipCreateRegionRectI(rect, core::mem::transmute(region)) } #[inline] pub unsafe fn GdipCreateRegionRgnData(regiondata: *const u8, size: i32, region: *mut *mut GpRegion) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateRegionRgnData(regiondata : *const u8, size : i32, region : *mut *mut GpRegion) -> Status); - GdipCreateRegionRgnData(core::mem::transmute(regiondata), core::mem::transmute(size), core::mem::transmute(region)) + GdipCreateRegionRgnData(regiondata, size, core::mem::transmute(region)) } #[inline] pub unsafe fn GdipCreateSolidFill(color: u32, brush: *mut *mut GpSolidFill) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateSolidFill(color : u32, brush : *mut *mut GpSolidFill) -> Status); - GdipCreateSolidFill(core::mem::transmute(color), core::mem::transmute(brush)) + GdipCreateSolidFill(color, core::mem::transmute(brush)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -726,37 +726,37 @@ where P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateStreamOnFile(filename : windows_core::PCWSTR, access : u32, stream : *mut * mut core::ffi::c_void) -> Status); - GdipCreateStreamOnFile(filename.param().abi(), core::mem::transmute(access), core::mem::transmute(stream)) + GdipCreateStreamOnFile(filename.param().abi(), access, core::mem::transmute(stream)) } #[inline] pub unsafe fn GdipCreateStringFormat(formatattributes: i32, language: u16, format: *mut *mut GpStringFormat) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateStringFormat(formatattributes : i32, language : u16, format : *mut *mut GpStringFormat) -> Status); - GdipCreateStringFormat(core::mem::transmute(formatattributes), core::mem::transmute(language), core::mem::transmute(format)) + GdipCreateStringFormat(formatattributes, language, core::mem::transmute(format)) } #[inline] pub unsafe fn GdipCreateTexture(image: *mut GpImage, wrapmode: WrapMode, texture: *mut *mut GpTexture) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateTexture(image : *mut GpImage, wrapmode : WrapMode, texture : *mut *mut GpTexture) -> Status); - GdipCreateTexture(core::mem::transmute(image), core::mem::transmute(wrapmode), core::mem::transmute(texture)) + GdipCreateTexture(core::mem::transmute(image), wrapmode, core::mem::transmute(texture)) } #[inline] pub unsafe fn GdipCreateTexture2(image: *mut GpImage, wrapmode: WrapMode, x: f32, y: f32, width: f32, height: f32, texture: *mut *mut GpTexture) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateTexture2(image : *mut GpImage, wrapmode : WrapMode, x : f32, y : f32, width : f32, height : f32, texture : *mut *mut GpTexture) -> Status); - GdipCreateTexture2(core::mem::transmute(image), core::mem::transmute(wrapmode), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(texture)) + GdipCreateTexture2(core::mem::transmute(image), wrapmode, x, y, width, height, core::mem::transmute(texture)) } #[inline] pub unsafe fn GdipCreateTexture2I(image: *mut GpImage, wrapmode: WrapMode, x: i32, y: i32, width: i32, height: i32, texture: *mut *mut GpTexture) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateTexture2I(image : *mut GpImage, wrapmode : WrapMode, x : i32, y : i32, width : i32, height : i32, texture : *mut *mut GpTexture) -> Status); - GdipCreateTexture2I(core::mem::transmute(image), core::mem::transmute(wrapmode), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(texture)) + GdipCreateTexture2I(core::mem::transmute(image), wrapmode, x, y, width, height, core::mem::transmute(texture)) } #[inline] pub unsafe fn GdipCreateTextureIA(image: *mut GpImage, imageattributes: *const GpImageAttributes, x: f32, y: f32, width: f32, height: f32, texture: *mut *mut GpTexture) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateTextureIA(image : *mut GpImage, imageattributes : *const GpImageAttributes, x : f32, y : f32, width : f32, height : f32, texture : *mut *mut GpTexture) -> Status); - GdipCreateTextureIA(core::mem::transmute(image), core::mem::transmute(imageattributes), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(texture)) + GdipCreateTextureIA(core::mem::transmute(image), imageattributes, x, y, width, height, core::mem::transmute(texture)) } #[inline] pub unsafe fn GdipCreateTextureIAI(image: *mut GpImage, imageattributes: *const GpImageAttributes, x: i32, y: i32, width: i32, height: i32, texture: *mut *mut GpTexture) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateTextureIAI(image : *mut GpImage, imageattributes : *const GpImageAttributes, x : i32, y : i32, width : i32, height : i32, texture : *mut *mut GpTexture) -> Status); - GdipCreateTextureIAI(core::mem::transmute(image), core::mem::transmute(imageattributes), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(texture)) + GdipCreateTextureIAI(core::mem::transmute(image), imageattributes, x, y, width, height, core::mem::transmute(texture)) } #[inline] pub unsafe fn GdipDeleteBrush(brush: *mut GpBrush) -> Status { @@ -841,187 +841,187 @@ pub unsafe fn GdipDisposeImageAttributes(imageattr: *mut GpImageAttributes) -> S #[inline] pub unsafe fn GdipDrawArc(graphics: *mut GpGraphics, pen: *mut GpPen, x: f32, y: f32, width: f32, height: f32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawArc(graphics : *mut GpGraphics, pen : *mut GpPen, x : f32, y : f32, width : f32, height : f32, startangle : f32, sweepangle : f32) -> Status); - GdipDrawArc(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipDrawArc(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipDrawArcI(graphics: *mut GpGraphics, pen: *mut GpPen, x: i32, y: i32, width: i32, height: i32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawArcI(graphics : *mut GpGraphics, pen : *mut GpPen, x : i32, y : i32, width : i32, height : i32, startangle : f32, sweepangle : f32) -> Status); - GdipDrawArcI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipDrawArcI(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipDrawBezier(graphics: *mut GpGraphics, pen: *mut GpPen, x1: f32, y1: f32, x2: f32, y2: f32, x3: f32, y3: f32, x4: f32, y4: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawBezier(graphics : *mut GpGraphics, pen : *mut GpPen, x1 : f32, y1 : f32, x2 : f32, y2 : f32, x3 : f32, y3 : f32, x4 : f32, y4 : f32) -> Status); - GdipDrawBezier(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(x3), core::mem::transmute(y3), core::mem::transmute(x4), core::mem::transmute(y4)) + GdipDrawBezier(core::mem::transmute(graphics), core::mem::transmute(pen), x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn GdipDrawBezierI(graphics: *mut GpGraphics, pen: *mut GpPen, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawBezierI(graphics : *mut GpGraphics, pen : *mut GpPen, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> Status); - GdipDrawBezierI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), core::mem::transmute(x3), core::mem::transmute(y3), core::mem::transmute(x4), core::mem::transmute(y4)) + GdipDrawBezierI(core::mem::transmute(graphics), core::mem::transmute(pen), x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn GdipDrawBeziers(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawBeziers(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32) -> Status); - GdipDrawBeziers(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawBeziers(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawBeziersI(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawBeziersI(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32) -> Status); - GdipDrawBeziersI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawBeziersI(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawCachedBitmap(graphics: *mut GpGraphics, cachedbitmap: *mut GpCachedBitmap, x: i32, y: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCachedBitmap(graphics : *mut GpGraphics, cachedbitmap : *mut GpCachedBitmap, x : i32, y : i32) -> Status); - GdipDrawCachedBitmap(core::mem::transmute(graphics), core::mem::transmute(cachedbitmap), core::mem::transmute(x), core::mem::transmute(y)) + GdipDrawCachedBitmap(core::mem::transmute(graphics), core::mem::transmute(cachedbitmap), x, y) } #[inline] pub unsafe fn GdipDrawClosedCurve(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawClosedCurve(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32) -> Status); - GdipDrawClosedCurve(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawClosedCurve(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawClosedCurve2(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawClosedCurve2(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32, tension : f32) -> Status); - GdipDrawClosedCurve2(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipDrawClosedCurve2(core::mem::transmute(graphics), core::mem::transmute(pen), points, count, tension) } #[inline] pub unsafe fn GdipDrawClosedCurve2I(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawClosedCurve2I(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32, tension : f32) -> Status); - GdipDrawClosedCurve2I(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipDrawClosedCurve2I(core::mem::transmute(graphics), core::mem::transmute(pen), points, count, tension) } #[inline] pub unsafe fn GdipDrawClosedCurveI(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawClosedCurveI(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32) -> Status); - GdipDrawClosedCurveI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawClosedCurveI(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawCurve(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCurve(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32) -> Status); - GdipDrawCurve(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawCurve(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawCurve2(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCurve2(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32, tension : f32) -> Status); - GdipDrawCurve2(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipDrawCurve2(core::mem::transmute(graphics), core::mem::transmute(pen), points, count, tension) } #[inline] pub unsafe fn GdipDrawCurve2I(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCurve2I(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32, tension : f32) -> Status); - GdipDrawCurve2I(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension)) + GdipDrawCurve2I(core::mem::transmute(graphics), core::mem::transmute(pen), points, count, tension) } #[inline] pub unsafe fn GdipDrawCurve3(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32, offset: i32, numberofsegments: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCurve3(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32, offset : i32, numberofsegments : i32, tension : f32) -> Status); - GdipDrawCurve3(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(offset), core::mem::transmute(numberofsegments), core::mem::transmute(tension)) + GdipDrawCurve3(core::mem::transmute(graphics), core::mem::transmute(pen), points, count, offset, numberofsegments, tension) } #[inline] pub unsafe fn GdipDrawCurve3I(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32, offset: i32, numberofsegments: i32, tension: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCurve3I(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32, offset : i32, numberofsegments : i32, tension : f32) -> Status); - GdipDrawCurve3I(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(offset), core::mem::transmute(numberofsegments), core::mem::transmute(tension)) + GdipDrawCurve3I(core::mem::transmute(graphics), core::mem::transmute(pen), points, count, offset, numberofsegments, tension) } #[inline] pub unsafe fn GdipDrawCurveI(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawCurveI(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32) -> Status); - GdipDrawCurveI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawCurveI(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawDriverString(graphics: *mut GpGraphics, text: *const u16, length: i32, font: *const GpFont, brush: *const GpBrush, positions: *const PointF, flags: i32, matrix: *const Matrix) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawDriverString(graphics : *mut GpGraphics, text : *const u16, length : i32, font : *const GpFont, brush : *const GpBrush, positions : *const PointF, flags : i32, matrix : *const Matrix) -> Status); - GdipDrawDriverString(core::mem::transmute(graphics), core::mem::transmute(text), core::mem::transmute(length), core::mem::transmute(font), core::mem::transmute(brush), core::mem::transmute(positions), core::mem::transmute(flags), core::mem::transmute(matrix)) + GdipDrawDriverString(core::mem::transmute(graphics), text, length, font, brush, positions, flags, matrix) } #[inline] pub unsafe fn GdipDrawEllipse(graphics: *mut GpGraphics, pen: *mut GpPen, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawEllipse(graphics : *mut GpGraphics, pen : *mut GpPen, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipDrawEllipse(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipDrawEllipse(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height) } #[inline] pub unsafe fn GdipDrawEllipseI(graphics: *mut GpGraphics, pen: *mut GpPen, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawEllipseI(graphics : *mut GpGraphics, pen : *mut GpPen, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipDrawEllipseI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipDrawEllipseI(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height) } #[inline] pub unsafe fn GdipDrawImage(graphics: *mut GpGraphics, image: *mut GpImage, x: f32, y: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImage(graphics : *mut GpGraphics, image : *mut GpImage, x : f32, y : f32) -> Status); - GdipDrawImage(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(x), core::mem::transmute(y)) + GdipDrawImage(core::mem::transmute(graphics), core::mem::transmute(image), x, y) } #[inline] pub unsafe fn GdipDrawImageFX(graphics: *mut GpGraphics, image: *mut GpImage, source: *mut RectF, xform: *mut Matrix, effect: *mut CGpEffect, imageattributes: *mut GpImageAttributes, srcunit: Unit) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImageFX(graphics : *mut GpGraphics, image : *mut GpImage, source : *mut RectF, xform : *mut Matrix, effect : *mut CGpEffect, imageattributes : *mut GpImageAttributes, srcunit : Unit) -> Status); - GdipDrawImageFX(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(source), core::mem::transmute(xform), core::mem::transmute(effect), core::mem::transmute(imageattributes), core::mem::transmute(srcunit)) + GdipDrawImageFX(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(source), core::mem::transmute(xform), core::mem::transmute(effect), core::mem::transmute(imageattributes), srcunit) } #[inline] pub unsafe fn GdipDrawImageI(graphics: *mut GpGraphics, image: *mut GpImage, x: i32, y: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImageI(graphics : *mut GpGraphics, image : *mut GpImage, x : i32, y : i32) -> Status); - GdipDrawImageI(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(x), core::mem::transmute(y)) + GdipDrawImageI(core::mem::transmute(graphics), core::mem::transmute(image), x, y) } #[inline] pub unsafe fn GdipDrawImagePointRect(graphics: *mut GpGraphics, image: *mut GpImage, x: f32, y: f32, srcx: f32, srcy: f32, srcwidth: f32, srcheight: f32, srcunit: Unit) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImagePointRect(graphics : *mut GpGraphics, image : *mut GpImage, x : f32, y : f32, srcx : f32, srcy : f32, srcwidth : f32, srcheight : f32, srcunit : Unit) -> Status); - GdipDrawImagePointRect(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(srcunit)) + GdipDrawImagePointRect(core::mem::transmute(graphics), core::mem::transmute(image), x, y, srcx, srcy, srcwidth, srcheight, srcunit) } #[inline] pub unsafe fn GdipDrawImagePointRectI(graphics: *mut GpGraphics, image: *mut GpImage, x: i32, y: i32, srcx: i32, srcy: i32, srcwidth: i32, srcheight: i32, srcunit: Unit) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImagePointRectI(graphics : *mut GpGraphics, image : *mut GpImage, x : i32, y : i32, srcx : i32, srcy : i32, srcwidth : i32, srcheight : i32, srcunit : Unit) -> Status); - GdipDrawImagePointRectI(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(srcunit)) + GdipDrawImagePointRectI(core::mem::transmute(graphics), core::mem::transmute(image), x, y, srcx, srcy, srcwidth, srcheight, srcunit) } #[inline] pub unsafe fn GdipDrawImagePoints(graphics: *mut GpGraphics, image: *mut GpImage, dstpoints: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImagePoints(graphics : *mut GpGraphics, image : *mut GpImage, dstpoints : *const PointF, count : i32) -> Status); - GdipDrawImagePoints(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(dstpoints), core::mem::transmute(count)) + GdipDrawImagePoints(core::mem::transmute(graphics), core::mem::transmute(image), dstpoints, count) } #[inline] pub unsafe fn GdipDrawImagePointsI(graphics: *mut GpGraphics, image: *mut GpImage, dstpoints: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImagePointsI(graphics : *mut GpGraphics, image : *mut GpImage, dstpoints : *const Point, count : i32) -> Status); - GdipDrawImagePointsI(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(dstpoints), core::mem::transmute(count)) + GdipDrawImagePointsI(core::mem::transmute(graphics), core::mem::transmute(image), dstpoints, count) } #[inline] pub unsafe fn GdipDrawImagePointsRect(graphics: *mut GpGraphics, image: *mut GpImage, points: *const PointF, count: i32, srcx: f32, srcy: f32, srcwidth: f32, srcheight: f32, srcunit: Unit, imageattributes: *const GpImageAttributes, callback: isize, callbackdata: *mut core::ffi::c_void) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImagePointsRect(graphics : *mut GpGraphics, image : *mut GpImage, points : *const PointF, count : i32, srcx : f32, srcy : f32, srcwidth : f32, srcheight : f32, srcunit : Unit, imageattributes : *const GpImageAttributes, callback : isize, callbackdata : *mut core::ffi::c_void) -> Status); - GdipDrawImagePointsRect(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(srcunit), core::mem::transmute(imageattributes), core::mem::transmute(callback), core::mem::transmute(callbackdata)) + GdipDrawImagePointsRect(core::mem::transmute(graphics), core::mem::transmute(image), points, count, srcx, srcy, srcwidth, srcheight, srcunit, imageattributes, callback, core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn GdipDrawImagePointsRectI(graphics: *mut GpGraphics, image: *mut GpImage, points: *const Point, count: i32, srcx: i32, srcy: i32, srcwidth: i32, srcheight: i32, srcunit: Unit, imageattributes: *const GpImageAttributes, callback: isize, callbackdata: *mut core::ffi::c_void) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImagePointsRectI(graphics : *mut GpGraphics, image : *mut GpImage, points : *const Point, count : i32, srcx : i32, srcy : i32, srcwidth : i32, srcheight : i32, srcunit : Unit, imageattributes : *const GpImageAttributes, callback : isize, callbackdata : *mut core::ffi::c_void) -> Status); - GdipDrawImagePointsRectI(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(srcunit), core::mem::transmute(imageattributes), core::mem::transmute(callback), core::mem::transmute(callbackdata)) + GdipDrawImagePointsRectI(core::mem::transmute(graphics), core::mem::transmute(image), points, count, srcx, srcy, srcwidth, srcheight, srcunit, imageattributes, callback, core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn GdipDrawImageRect(graphics: *mut GpGraphics, image: *mut GpImage, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImageRect(graphics : *mut GpGraphics, image : *mut GpImage, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipDrawImageRect(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipDrawImageRect(core::mem::transmute(graphics), core::mem::transmute(image), x, y, width, height) } #[inline] pub unsafe fn GdipDrawImageRectI(graphics: *mut GpGraphics, image: *mut GpImage, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImageRectI(graphics : *mut GpGraphics, image : *mut GpImage, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipDrawImageRectI(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipDrawImageRectI(core::mem::transmute(graphics), core::mem::transmute(image), x, y, width, height) } #[inline] pub unsafe fn GdipDrawImageRectRect(graphics: *mut GpGraphics, image: *mut GpImage, dstx: f32, dsty: f32, dstwidth: f32, dstheight: f32, srcx: f32, srcy: f32, srcwidth: f32, srcheight: f32, srcunit: Unit, imageattributes: *const GpImageAttributes, callback: isize, callbackdata: *mut core::ffi::c_void) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImageRectRect(graphics : *mut GpGraphics, image : *mut GpImage, dstx : f32, dsty : f32, dstwidth : f32, dstheight : f32, srcx : f32, srcy : f32, srcwidth : f32, srcheight : f32, srcunit : Unit, imageattributes : *const GpImageAttributes, callback : isize, callbackdata : *mut core::ffi::c_void) -> Status); - GdipDrawImageRectRect(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(dstx), core::mem::transmute(dsty), core::mem::transmute(dstwidth), core::mem::transmute(dstheight), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(srcunit), core::mem::transmute(imageattributes), core::mem::transmute(callback), core::mem::transmute(callbackdata)) + GdipDrawImageRectRect(core::mem::transmute(graphics), core::mem::transmute(image), dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcunit, imageattributes, callback, core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn GdipDrawImageRectRectI(graphics: *mut GpGraphics, image: *mut GpImage, dstx: i32, dsty: i32, dstwidth: i32, dstheight: i32, srcx: i32, srcy: i32, srcwidth: i32, srcheight: i32, srcunit: Unit, imageattributes: *const GpImageAttributes, callback: isize, callbackdata: *mut core::ffi::c_void) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawImageRectRectI(graphics : *mut GpGraphics, image : *mut GpImage, dstx : i32, dsty : i32, dstwidth : i32, dstheight : i32, srcx : i32, srcy : i32, srcwidth : i32, srcheight : i32, srcunit : Unit, imageattributes : *const GpImageAttributes, callback : isize, callbackdata : *mut core::ffi::c_void) -> Status); - GdipDrawImageRectRectI(core::mem::transmute(graphics), core::mem::transmute(image), core::mem::transmute(dstx), core::mem::transmute(dsty), core::mem::transmute(dstwidth), core::mem::transmute(dstheight), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(srcunit), core::mem::transmute(imageattributes), core::mem::transmute(callback), core::mem::transmute(callbackdata)) + GdipDrawImageRectRectI(core::mem::transmute(graphics), core::mem::transmute(image), dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcunit, imageattributes, callback, core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn GdipDrawLine(graphics: *mut GpGraphics, pen: *mut GpPen, x1: f32, y1: f32, x2: f32, y2: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawLine(graphics : *mut GpGraphics, pen : *mut GpPen, x1 : f32, y1 : f32, x2 : f32, y2 : f32) -> Status); - GdipDrawLine(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + GdipDrawLine(core::mem::transmute(graphics), core::mem::transmute(pen), x1, y1, x2, y2) } #[inline] pub unsafe fn GdipDrawLineI(graphics: *mut GpGraphics, pen: *mut GpPen, x1: i32, y1: i32, x2: i32, y2: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawLineI(graphics : *mut GpGraphics, pen : *mut GpPen, x1 : i32, y1 : i32, x2 : i32, y2 : i32) -> Status); - GdipDrawLineI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + GdipDrawLineI(core::mem::transmute(graphics), core::mem::transmute(pen), x1, y1, x2, y2) } #[inline] pub unsafe fn GdipDrawLines(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawLines(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32) -> Status); - GdipDrawLines(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawLines(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawLinesI(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawLinesI(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32) -> Status); - GdipDrawLinesI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawLinesI(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawPath(graphics: *mut GpGraphics, pen: *mut GpPen, path: *mut GpPath) -> Status { @@ -1031,42 +1031,42 @@ pub unsafe fn GdipDrawPath(graphics: *mut GpGraphics, pen: *mut GpPen, path: *mu #[inline] pub unsafe fn GdipDrawPie(graphics: *mut GpGraphics, pen: *mut GpPen, x: f32, y: f32, width: f32, height: f32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawPie(graphics : *mut GpGraphics, pen : *mut GpPen, x : f32, y : f32, width : f32, height : f32, startangle : f32, sweepangle : f32) -> Status); - GdipDrawPie(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipDrawPie(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipDrawPieI(graphics: *mut GpGraphics, pen: *mut GpPen, x: i32, y: i32, width: i32, height: i32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawPieI(graphics : *mut GpGraphics, pen : *mut GpPen, x : i32, y : i32, width : i32, height : i32, startangle : f32, sweepangle : f32) -> Status); - GdipDrawPieI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipDrawPieI(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipDrawPolygon(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawPolygon(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const PointF, count : i32) -> Status); - GdipDrawPolygon(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawPolygon(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawPolygonI(graphics: *mut GpGraphics, pen: *mut GpPen, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawPolygonI(graphics : *mut GpGraphics, pen : *mut GpPen, points : *const Point, count : i32) -> Status); - GdipDrawPolygonI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(points), core::mem::transmute(count)) + GdipDrawPolygonI(core::mem::transmute(graphics), core::mem::transmute(pen), points, count) } #[inline] pub unsafe fn GdipDrawRectangle(graphics: *mut GpGraphics, pen: *mut GpPen, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawRectangle(graphics : *mut GpGraphics, pen : *mut GpPen, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipDrawRectangle(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipDrawRectangle(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height) } #[inline] pub unsafe fn GdipDrawRectangleI(graphics: *mut GpGraphics, pen: *mut GpPen, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawRectangleI(graphics : *mut GpGraphics, pen : *mut GpPen, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipDrawRectangleI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipDrawRectangleI(core::mem::transmute(graphics), core::mem::transmute(pen), x, y, width, height) } #[inline] pub unsafe fn GdipDrawRectangles(graphics: *mut GpGraphics, pen: *mut GpPen, rects: *const RectF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawRectangles(graphics : *mut GpGraphics, pen : *mut GpPen, rects : *const RectF, count : i32) -> Status); - GdipDrawRectangles(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(rects), core::mem::transmute(count)) + GdipDrawRectangles(core::mem::transmute(graphics), core::mem::transmute(pen), rects, count) } #[inline] pub unsafe fn GdipDrawRectanglesI(graphics: *mut GpGraphics, pen: *mut GpPen, rects: *const Rect, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawRectanglesI(graphics : *mut GpGraphics, pen : *mut GpPen, rects : *const Rect, count : i32) -> Status); - GdipDrawRectanglesI(core::mem::transmute(graphics), core::mem::transmute(pen), core::mem::transmute(rects), core::mem::transmute(count)) + GdipDrawRectanglesI(core::mem::transmute(graphics), core::mem::transmute(pen), rects, count) } #[inline] pub unsafe fn GdipDrawString(graphics: *mut GpGraphics, string: P1, length: i32, font: *const GpFont, layoutrect: *const RectF, stringformat: *const GpStringFormat, brush: *const GpBrush) -> Status @@ -1074,108 +1074,108 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipDrawString(graphics : *mut GpGraphics, string : windows_core::PCWSTR, length : i32, font : *const GpFont, layoutrect : *const RectF, stringformat : *const GpStringFormat, brush : *const GpBrush) -> Status); - GdipDrawString(core::mem::transmute(graphics), string.param().abi(), core::mem::transmute(length), core::mem::transmute(font), core::mem::transmute(layoutrect), core::mem::transmute(stringformat), core::mem::transmute(brush)) + GdipDrawString(core::mem::transmute(graphics), string.param().abi(), length, font, layoutrect, stringformat, brush) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipEmfToWmfBits(hemf: super::Gdi::HENHMETAFILE, pdata16: Option<&mut [u8]>, imapmode: i32, eflags: i32) -> u32 { windows_targets::link!("gdiplus.dll" "system" fn GdipEmfToWmfBits(hemf : super::Gdi:: HENHMETAFILE, cbdata16 : u32, pdata16 : *mut u8, imapmode : i32, eflags : i32) -> u32); - GdipEmfToWmfBits(core::mem::transmute(hemf), pdata16.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pdata16.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(imapmode), core::mem::transmute(eflags)) + GdipEmfToWmfBits(hemf, pdata16.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pdata16.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imapmode, eflags) } #[inline] pub unsafe fn GdipEndContainer(graphics: *mut GpGraphics, state: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEndContainer(graphics : *mut GpGraphics, state : u32) -> Status); - GdipEndContainer(core::mem::transmute(graphics), core::mem::transmute(state)) + GdipEndContainer(core::mem::transmute(graphics), state) } #[inline] pub unsafe fn GdipEnumerateMetafileDestPoint(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoint: *const PointF, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileDestPoint(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoint : *const PointF, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileDestPoint(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoint), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileDestPoint(core::mem::transmute(graphics), metafile, destpoint, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileDestPointI(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoint: *const Point, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileDestPointI(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoint : *const Point, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileDestPointI(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoint), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileDestPointI(core::mem::transmute(graphics), metafile, destpoint, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileDestPoints(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoints: *const PointF, count: i32, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileDestPoints(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoints : *const PointF, count : i32, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileDestPoints(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoints), core::mem::transmute(count), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileDestPoints(core::mem::transmute(graphics), metafile, destpoints, count, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileDestPointsI(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoints: *const Point, count: i32, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileDestPointsI(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoints : *const Point, count : i32, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileDestPointsI(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoints), core::mem::transmute(count), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileDestPointsI(core::mem::transmute(graphics), metafile, destpoints, count, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileDestRect(graphics: *mut GpGraphics, metafile: *const GpMetafile, destrect: *const RectF, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileDestRect(graphics : *mut GpGraphics, metafile : *const GpMetafile, destrect : *const RectF, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileDestRect(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destrect), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileDestRect(core::mem::transmute(graphics), metafile, destrect, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileDestRectI(graphics: *mut GpGraphics, metafile: *const GpMetafile, destrect: *const Rect, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileDestRectI(graphics : *mut GpGraphics, metafile : *const GpMetafile, destrect : *const Rect, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileDestRectI(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destrect), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileDestRectI(core::mem::transmute(graphics), metafile, destrect, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileSrcRectDestPoint(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoint: *const PointF, srcrect: *const RectF, srcunit: Unit, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileSrcRectDestPoint(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoint : *const PointF, srcrect : *const RectF, srcunit : Unit, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileSrcRectDestPoint(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoint), core::mem::transmute(srcrect), core::mem::transmute(srcunit), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileSrcRectDestPoint(core::mem::transmute(graphics), metafile, destpoint, srcrect, srcunit, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileSrcRectDestPointI(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoint: *const Point, srcrect: *const Rect, srcunit: Unit, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileSrcRectDestPointI(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoint : *const Point, srcrect : *const Rect, srcunit : Unit, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileSrcRectDestPointI(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoint), core::mem::transmute(srcrect), core::mem::transmute(srcunit), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileSrcRectDestPointI(core::mem::transmute(graphics), metafile, destpoint, srcrect, srcunit, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileSrcRectDestPoints(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoints: *const PointF, count: i32, srcrect: *const RectF, srcunit: Unit, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileSrcRectDestPoints(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoints : *const PointF, count : i32, srcrect : *const RectF, srcunit : Unit, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileSrcRectDestPoints(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoints), core::mem::transmute(count), core::mem::transmute(srcrect), core::mem::transmute(srcunit), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileSrcRectDestPoints(core::mem::transmute(graphics), metafile, destpoints, count, srcrect, srcunit, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileSrcRectDestPointsI(graphics: *mut GpGraphics, metafile: *const GpMetafile, destpoints: *const Point, count: i32, srcrect: *const Rect, srcunit: Unit, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileSrcRectDestPointsI(graphics : *mut GpGraphics, metafile : *const GpMetafile, destpoints : *const Point, count : i32, srcrect : *const Rect, srcunit : Unit, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileSrcRectDestPointsI(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destpoints), core::mem::transmute(count), core::mem::transmute(srcrect), core::mem::transmute(srcunit), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileSrcRectDestPointsI(core::mem::transmute(graphics), metafile, destpoints, count, srcrect, srcunit, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileSrcRectDestRect(graphics: *mut GpGraphics, metafile: *const GpMetafile, destrect: *const RectF, srcrect: *const RectF, srcunit: Unit, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileSrcRectDestRect(graphics : *mut GpGraphics, metafile : *const GpMetafile, destrect : *const RectF, srcrect : *const RectF, srcunit : Unit, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileSrcRectDestRect(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destrect), core::mem::transmute(srcrect), core::mem::transmute(srcunit), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileSrcRectDestRect(core::mem::transmute(graphics), metafile, destrect, srcrect, srcunit, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipEnumerateMetafileSrcRectDestRectI(graphics: *mut GpGraphics, metafile: *const GpMetafile, destrect: *const Rect, srcrect: *const Rect, srcunit: Unit, callback: isize, callbackdata: *mut core::ffi::c_void, imageattributes: *const GpImageAttributes) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipEnumerateMetafileSrcRectDestRectI(graphics : *mut GpGraphics, metafile : *const GpMetafile, destrect : *const Rect, srcrect : *const Rect, srcunit : Unit, callback : isize, callbackdata : *mut core::ffi::c_void, imageattributes : *const GpImageAttributes) -> Status); - GdipEnumerateMetafileSrcRectDestRectI(core::mem::transmute(graphics), core::mem::transmute(metafile), core::mem::transmute(destrect), core::mem::transmute(srcrect), core::mem::transmute(srcunit), core::mem::transmute(callback), core::mem::transmute(callbackdata), core::mem::transmute(imageattributes)) + GdipEnumerateMetafileSrcRectDestRectI(core::mem::transmute(graphics), metafile, destrect, srcrect, srcunit, callback, core::mem::transmute(callbackdata), imageattributes) } #[inline] pub unsafe fn GdipFillClosedCurve(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillClosedCurve(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const PointF, count : i32) -> Status); - GdipFillClosedCurve(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count)) + GdipFillClosedCurve(core::mem::transmute(graphics), core::mem::transmute(brush), points, count) } #[inline] pub unsafe fn GdipFillClosedCurve2(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const PointF, count: i32, tension: f32, fillmode: FillMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillClosedCurve2(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const PointF, count : i32, tension : f32, fillmode : FillMode) -> Status); - GdipFillClosedCurve2(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension), core::mem::transmute(fillmode)) + GdipFillClosedCurve2(core::mem::transmute(graphics), core::mem::transmute(brush), points, count, tension, fillmode) } #[inline] pub unsafe fn GdipFillClosedCurve2I(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const Point, count: i32, tension: f32, fillmode: FillMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillClosedCurve2I(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const Point, count : i32, tension : f32, fillmode : FillMode) -> Status); - GdipFillClosedCurve2I(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(tension), core::mem::transmute(fillmode)) + GdipFillClosedCurve2I(core::mem::transmute(graphics), core::mem::transmute(brush), points, count, tension, fillmode) } #[inline] pub unsafe fn GdipFillClosedCurveI(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillClosedCurveI(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const Point, count : i32) -> Status); - GdipFillClosedCurveI(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count)) + GdipFillClosedCurveI(core::mem::transmute(graphics), core::mem::transmute(brush), points, count) } #[inline] pub unsafe fn GdipFillEllipse(graphics: *mut GpGraphics, brush: *mut GpBrush, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillEllipse(graphics : *mut GpGraphics, brush : *mut GpBrush, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipFillEllipse(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipFillEllipse(core::mem::transmute(graphics), core::mem::transmute(brush), x, y, width, height) } #[inline] pub unsafe fn GdipFillEllipseI(graphics: *mut GpGraphics, brush: *mut GpBrush, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillEllipseI(graphics : *mut GpGraphics, brush : *mut GpBrush, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipFillEllipseI(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipFillEllipseI(core::mem::transmute(graphics), core::mem::transmute(brush), x, y, width, height) } #[inline] pub unsafe fn GdipFillPath(graphics: *mut GpGraphics, brush: *mut GpBrush, path: *mut GpPath) -> Status { @@ -1185,52 +1185,52 @@ pub unsafe fn GdipFillPath(graphics: *mut GpGraphics, brush: *mut GpBrush, path: #[inline] pub unsafe fn GdipFillPie(graphics: *mut GpGraphics, brush: *mut GpBrush, x: f32, y: f32, width: f32, height: f32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillPie(graphics : *mut GpGraphics, brush : *mut GpBrush, x : f32, y : f32, width : f32, height : f32, startangle : f32, sweepangle : f32) -> Status); - GdipFillPie(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipFillPie(core::mem::transmute(graphics), core::mem::transmute(brush), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipFillPieI(graphics: *mut GpGraphics, brush: *mut GpBrush, x: i32, y: i32, width: i32, height: i32, startangle: f32, sweepangle: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillPieI(graphics : *mut GpGraphics, brush : *mut GpBrush, x : i32, y : i32, width : i32, height : i32, startangle : f32, sweepangle : f32) -> Status); - GdipFillPieI(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + GdipFillPieI(core::mem::transmute(graphics), core::mem::transmute(brush), x, y, width, height, startangle, sweepangle) } #[inline] pub unsafe fn GdipFillPolygon(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const PointF, count: i32, fillmode: FillMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillPolygon(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const PointF, count : i32, fillmode : FillMode) -> Status); - GdipFillPolygon(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(fillmode)) + GdipFillPolygon(core::mem::transmute(graphics), core::mem::transmute(brush), points, count, fillmode) } #[inline] pub unsafe fn GdipFillPolygon2(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillPolygon2(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const PointF, count : i32) -> Status); - GdipFillPolygon2(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count)) + GdipFillPolygon2(core::mem::transmute(graphics), core::mem::transmute(brush), points, count) } #[inline] pub unsafe fn GdipFillPolygon2I(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillPolygon2I(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const Point, count : i32) -> Status); - GdipFillPolygon2I(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count)) + GdipFillPolygon2I(core::mem::transmute(graphics), core::mem::transmute(brush), points, count) } #[inline] pub unsafe fn GdipFillPolygonI(graphics: *mut GpGraphics, brush: *mut GpBrush, points: *const Point, count: i32, fillmode: FillMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillPolygonI(graphics : *mut GpGraphics, brush : *mut GpBrush, points : *const Point, count : i32, fillmode : FillMode) -> Status); - GdipFillPolygonI(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(fillmode)) + GdipFillPolygonI(core::mem::transmute(graphics), core::mem::transmute(brush), points, count, fillmode) } #[inline] pub unsafe fn GdipFillRectangle(graphics: *mut GpGraphics, brush: *mut GpBrush, x: f32, y: f32, width: f32, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillRectangle(graphics : *mut GpGraphics, brush : *mut GpBrush, x : f32, y : f32, width : f32, height : f32) -> Status); - GdipFillRectangle(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipFillRectangle(core::mem::transmute(graphics), core::mem::transmute(brush), x, y, width, height) } #[inline] pub unsafe fn GdipFillRectangleI(graphics: *mut GpGraphics, brush: *mut GpBrush, x: i32, y: i32, width: i32, height: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillRectangleI(graphics : *mut GpGraphics, brush : *mut GpBrush, x : i32, y : i32, width : i32, height : i32) -> Status); - GdipFillRectangleI(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + GdipFillRectangleI(core::mem::transmute(graphics), core::mem::transmute(brush), x, y, width, height) } #[inline] pub unsafe fn GdipFillRectangles(graphics: *mut GpGraphics, brush: *mut GpBrush, rects: *const RectF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillRectangles(graphics : *mut GpGraphics, brush : *mut GpBrush, rects : *const RectF, count : i32) -> Status); - GdipFillRectangles(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(rects), core::mem::transmute(count)) + GdipFillRectangles(core::mem::transmute(graphics), core::mem::transmute(brush), rects, count) } #[inline] pub unsafe fn GdipFillRectanglesI(graphics: *mut GpGraphics, brush: *mut GpBrush, rects: *const Rect, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFillRectanglesI(graphics : *mut GpGraphics, brush : *mut GpBrush, rects : *const Rect, count : i32) -> Status); - GdipFillRectanglesI(core::mem::transmute(graphics), core::mem::transmute(brush), core::mem::transmute(rects), core::mem::transmute(count)) + GdipFillRectanglesI(core::mem::transmute(graphics), core::mem::transmute(brush), rects, count) } #[inline] pub unsafe fn GdipFillRegion(graphics: *mut GpGraphics, brush: *mut GpBrush, region: *mut GpRegion) -> Status { @@ -1250,12 +1250,12 @@ pub unsafe fn GdipFindNextImageItem(image: *mut GpImage, item: *mut ImageItemDat #[inline] pub unsafe fn GdipFlattenPath(path: *mut GpPath, matrix: *mut Matrix, flatness: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFlattenPath(path : *mut GpPath, matrix : *mut Matrix, flatness : f32) -> Status); - GdipFlattenPath(core::mem::transmute(path), core::mem::transmute(matrix), core::mem::transmute(flatness)) + GdipFlattenPath(core::mem::transmute(path), core::mem::transmute(matrix), flatness) } #[inline] pub unsafe fn GdipFlush(graphics: *mut GpGraphics, intention: FlushIntention) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipFlush(graphics : *mut GpGraphics, intention : FlushIntention) -> Status); - GdipFlush(core::mem::transmute(graphics), core::mem::transmute(intention)) + GdipFlush(core::mem::transmute(graphics), intention) } #[inline] pub unsafe fn GdipFree(ptr: *mut core::ffi::c_void) { @@ -1285,7 +1285,7 @@ pub unsafe fn GdipGetAdjustableArrowCapWidth(cap: *mut GpAdjustableArrowCap, wid #[inline] pub unsafe fn GdipGetAllPropertyItems(image: *mut GpImage, totalbuffersize: u32, numproperties: u32, allitems: *mut PropertyItem) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetAllPropertyItems(image : *mut GpImage, totalbuffersize : u32, numproperties : u32, allitems : *mut PropertyItem) -> Status); - GdipGetAllPropertyItems(core::mem::transmute(image), core::mem::transmute(totalbuffersize), core::mem::transmute(numproperties), core::mem::transmute(allitems)) + GdipGetAllPropertyItems(core::mem::transmute(image), totalbuffersize, numproperties, core::mem::transmute(allitems)) } #[inline] pub unsafe fn GdipGetBrushType(brush: *mut GpBrush, r#type: *mut BrushType) -> Status { @@ -1295,12 +1295,12 @@ pub unsafe fn GdipGetBrushType(brush: *mut GpBrush, r#type: *mut BrushType) -> S #[inline] pub unsafe fn GdipGetCellAscent(family: *const GpFontFamily, style: i32, cellascent: *mut u16) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetCellAscent(family : *const GpFontFamily, style : i32, cellascent : *mut u16) -> Status); - GdipGetCellAscent(core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(cellascent)) + GdipGetCellAscent(family, style, core::mem::transmute(cellascent)) } #[inline] pub unsafe fn GdipGetCellDescent(family: *const GpFontFamily, style: i32, celldescent: *mut u16) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetCellDescent(family : *const GpFontFamily, style : i32, celldescent : *mut u16) -> Status); - GdipGetCellDescent(core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(celldescent)) + GdipGetCellDescent(family, style, core::mem::transmute(celldescent)) } #[inline] pub unsafe fn GdipGetClip(graphics: *mut GpGraphics, region: *mut GpRegion) -> Status { @@ -1386,17 +1386,17 @@ pub unsafe fn GdipGetEffectParameters(effect: *mut CGpEffect, size: *mut u32, pa #[inline] pub unsafe fn GdipGetEmHeight(family: *const GpFontFamily, style: i32, emheight: *mut u16) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetEmHeight(family : *const GpFontFamily, style : i32, emheight : *mut u16) -> Status); - GdipGetEmHeight(core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(emheight)) + GdipGetEmHeight(family, style, core::mem::transmute(emheight)) } #[inline] pub unsafe fn GdipGetEncoderParameterList(image: *mut GpImage, clsidencoder: *const windows_core::GUID, size: u32, buffer: *mut EncoderParameters) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetEncoderParameterList(image : *mut GpImage, clsidencoder : *const windows_core::GUID, size : u32, buffer : *mut EncoderParameters) -> Status); - GdipGetEncoderParameterList(core::mem::transmute(image), core::mem::transmute(clsidencoder), core::mem::transmute(size), core::mem::transmute(buffer)) + GdipGetEncoderParameterList(core::mem::transmute(image), clsidencoder, size, core::mem::transmute(buffer)) } #[inline] pub unsafe fn GdipGetEncoderParameterListSize(image: *mut GpImage, clsidencoder: *const windows_core::GUID, size: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetEncoderParameterListSize(image : *mut GpImage, clsidencoder : *const windows_core::GUID, size : *mut u32) -> Status); - GdipGetEncoderParameterListSize(core::mem::transmute(image), core::mem::transmute(clsidencoder), core::mem::transmute(size)) + GdipGetEncoderParameterListSize(core::mem::transmute(image), clsidencoder, core::mem::transmute(size)) } #[inline] pub unsafe fn GdipGetFamily(font: *mut GpFont, family: *mut *mut GpFontFamily) -> Status { @@ -1406,7 +1406,7 @@ pub unsafe fn GdipGetFamily(font: *mut GpFont, family: *mut *mut GpFontFamily) - #[inline] pub unsafe fn GdipGetFamilyName(family: *const GpFontFamily, name: &mut [u16; 32], language: u16) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetFamilyName(family : *const GpFontFamily, name : windows_core::PWSTR, language : u16) -> Status); - GdipGetFamilyName(core::mem::transmute(family), core::mem::transmute(name.as_ptr()), core::mem::transmute(language)) + GdipGetFamilyName(family, core::mem::transmute(name.as_ptr()), language) } #[inline] pub unsafe fn GdipGetFontCollectionFamilyCount(fontcollection: *mut GpFontCollection, numfound: *mut i32) -> Status { @@ -1416,17 +1416,17 @@ pub unsafe fn GdipGetFontCollectionFamilyCount(fontcollection: *mut GpFontCollec #[inline] pub unsafe fn GdipGetFontCollectionFamilyList(fontcollection: *const GpFontCollection, gpfamilies: &mut [*mut GpFontFamily], numfound: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetFontCollectionFamilyList(fontcollection : *const GpFontCollection, numsought : i32, gpfamilies : *mut *mut GpFontFamily, numfound : *mut i32) -> Status); - GdipGetFontCollectionFamilyList(core::mem::transmute(fontcollection), gpfamilies.len().try_into().unwrap(), core::mem::transmute(gpfamilies.as_ptr()), core::mem::transmute(numfound)) + GdipGetFontCollectionFamilyList(fontcollection, gpfamilies.len().try_into().unwrap(), core::mem::transmute(gpfamilies.as_ptr()), core::mem::transmute(numfound)) } #[inline] pub unsafe fn GdipGetFontHeight(font: *const GpFont, graphics: *const GpGraphics, height: *mut f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetFontHeight(font : *const GpFont, graphics : *const GpGraphics, height : *mut f32) -> Status); - GdipGetFontHeight(core::mem::transmute(font), core::mem::transmute(graphics), core::mem::transmute(height)) + GdipGetFontHeight(font, graphics, core::mem::transmute(height)) } #[inline] pub unsafe fn GdipGetFontHeightGivenDPI(font: *const GpFont, dpi: f32, height: *mut f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetFontHeightGivenDPI(font : *const GpFont, dpi : f32, height : *mut f32) -> Status); - GdipGetFontHeightGivenDPI(core::mem::transmute(font), core::mem::transmute(dpi), core::mem::transmute(height)) + GdipGetFontHeightGivenDPI(font, dpi, core::mem::transmute(height)) } #[inline] pub unsafe fn GdipGetFontSize(font: *mut GpFont, size: *mut f32) -> Status { @@ -1482,7 +1482,7 @@ pub unsafe fn GdipGetHemfFromMetafile(metafile: *mut GpMetafile, hemf: *mut supe #[inline] pub unsafe fn GdipGetImageAttributesAdjustedPalette(imageattr: *mut GpImageAttributes, colorpalette: *mut ColorPalette, coloradjusttype: ColorAdjustType) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetImageAttributesAdjustedPalette(imageattr : *mut GpImageAttributes, colorpalette : *mut ColorPalette, coloradjusttype : ColorAdjustType) -> Status); - GdipGetImageAttributesAdjustedPalette(core::mem::transmute(imageattr), core::mem::transmute(colorpalette), core::mem::transmute(coloradjusttype)) + GdipGetImageAttributesAdjustedPalette(core::mem::transmute(imageattr), core::mem::transmute(colorpalette), coloradjusttype) } #[inline] pub unsafe fn GdipGetImageBounds(image: *mut GpImage, srcrect: *mut RectF, srcunit: *mut Unit) -> Status { @@ -1492,7 +1492,7 @@ pub unsafe fn GdipGetImageBounds(image: *mut GpImage, srcrect: *mut RectF, srcun #[inline] pub unsafe fn GdipGetImageDecoders(numdecoders: u32, size: u32, decoders: *mut ImageCodecInfo) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetImageDecoders(numdecoders : u32, size : u32, decoders : *mut ImageCodecInfo) -> Status); - GdipGetImageDecoders(core::mem::transmute(numdecoders), core::mem::transmute(size), core::mem::transmute(decoders)) + GdipGetImageDecoders(numdecoders, size, core::mem::transmute(decoders)) } #[inline] pub unsafe fn GdipGetImageDecodersSize(numdecoders: *mut u32, size: *mut u32) -> Status { @@ -1507,7 +1507,7 @@ pub unsafe fn GdipGetImageDimension(image: *mut GpImage, width: *mut f32, height #[inline] pub unsafe fn GdipGetImageEncoders(numencoders: u32, size: u32, encoders: *mut ImageCodecInfo) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetImageEncoders(numencoders : u32, size : u32, encoders : *mut ImageCodecInfo) -> Status); - GdipGetImageEncoders(core::mem::transmute(numencoders), core::mem::transmute(size), core::mem::transmute(encoders)) + GdipGetImageEncoders(numencoders, size, core::mem::transmute(encoders)) } #[inline] pub unsafe fn GdipGetImageEncodersSize(numencoders: *mut u32, size: *mut u32) -> Status { @@ -1542,7 +1542,7 @@ pub unsafe fn GdipGetImageItemData(image: *mut GpImage, item: *mut ImageItemData #[inline] pub unsafe fn GdipGetImagePalette(image: *mut GpImage, palette: *mut ColorPalette, size: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetImagePalette(image : *mut GpImage, palette : *mut ColorPalette, size : i32) -> Status); - GdipGetImagePalette(core::mem::transmute(image), core::mem::transmute(palette), core::mem::transmute(size)) + GdipGetImagePalette(core::mem::transmute(image), core::mem::transmute(palette), size) } #[inline] pub unsafe fn GdipGetImagePaletteSize(image: *mut GpImage, size: *mut i32) -> Status { @@ -1562,7 +1562,7 @@ pub unsafe fn GdipGetImageRawFormat(image: *mut GpImage, format: *mut windows_co #[inline] pub unsafe fn GdipGetImageThumbnail(image: *mut GpImage, thumbwidth: u32, thumbheight: u32, thumbimage: *mut *mut GpImage, callback: isize, callbackdata: *mut core::ffi::c_void) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetImageThumbnail(image : *mut GpImage, thumbwidth : u32, thumbheight : u32, thumbimage : *mut *mut GpImage, callback : isize, callbackdata : *mut core::ffi::c_void) -> Status); - GdipGetImageThumbnail(core::mem::transmute(image), core::mem::transmute(thumbwidth), core::mem::transmute(thumbheight), core::mem::transmute(thumbimage), core::mem::transmute(callback), core::mem::transmute(callbackdata)) + GdipGetImageThumbnail(core::mem::transmute(image), thumbwidth, thumbheight, core::mem::transmute(thumbimage), callback, core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn GdipGetImageType(image: *mut GpImage, r#type: *mut ImageType) -> Status { @@ -1587,7 +1587,7 @@ pub unsafe fn GdipGetInterpolationMode(graphics: *mut GpGraphics, interpolationm #[inline] pub unsafe fn GdipGetLineBlend(brush: *mut GpLineGradient, blend: *mut f32, positions: *mut f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetLineBlend(brush : *mut GpLineGradient, blend : *mut f32, positions : *mut f32, count : i32) -> Status); - GdipGetLineBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipGetLineBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), count) } #[inline] pub unsafe fn GdipGetLineBlendCount(brush: *mut GpLineGradient, count: *mut i32) -> Status { @@ -1607,7 +1607,7 @@ pub unsafe fn GdipGetLineGammaCorrection(brush: *mut GpLineGradient, usegammacor #[inline] pub unsafe fn GdipGetLinePresetBlend(brush: *mut GpLineGradient, blend: *mut u32, positions: *mut f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetLinePresetBlend(brush : *mut GpLineGradient, blend : *mut u32, positions : *mut f32, count : i32) -> Status); - GdipGetLinePresetBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipGetLinePresetBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), count) } #[inline] pub unsafe fn GdipGetLinePresetBlendCount(brush: *mut GpLineGradient, count: *mut i32) -> Status { @@ -1627,7 +1627,7 @@ pub unsafe fn GdipGetLineRectI(brush: *mut GpLineGradient, rect: *mut Rect) -> S #[inline] pub unsafe fn GdipGetLineSpacing(family: *const GpFontFamily, style: i32, linespacing: *mut u16) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetLineSpacing(family : *const GpFontFamily, style : i32, linespacing : *mut u16) -> Status); - GdipGetLineSpacing(core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(linespacing)) + GdipGetLineSpacing(family, style, core::mem::transmute(linespacing)) } #[inline] pub unsafe fn GdipGetLineTransform(brush: *mut GpLineGradient, matrix: *mut Matrix) -> Status { @@ -1654,18 +1654,18 @@ pub unsafe fn GdipGetLogFontW(font: *mut GpFont, graphics: *mut GpGraphics, logf #[inline] pub unsafe fn GdipGetMatrixElements(matrix: *const Matrix, matrixout: *mut f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMatrixElements(matrix : *const Matrix, matrixout : *mut f32) -> Status); - GdipGetMatrixElements(core::mem::transmute(matrix), core::mem::transmute(matrixout)) + GdipGetMatrixElements(matrix, core::mem::transmute(matrixout)) } #[inline] pub unsafe fn GdipGetMetafileDownLevelRasterizationLimit(metafile: *const GpMetafile, metafilerasterizationlimitdpi: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileDownLevelRasterizationLimit(metafile : *const GpMetafile, metafilerasterizationlimitdpi : *mut u32) -> Status); - GdipGetMetafileDownLevelRasterizationLimit(core::mem::transmute(metafile), core::mem::transmute(metafilerasterizationlimitdpi)) + GdipGetMetafileDownLevelRasterizationLimit(metafile, core::mem::transmute(metafilerasterizationlimitdpi)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipGetMetafileHeaderFromEmf(hemf: super::Gdi::HENHMETAFILE, header: *mut MetafileHeader) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileHeaderFromEmf(hemf : super::Gdi:: HENHMETAFILE, header : *mut MetafileHeader) -> Status); - GdipGetMetafileHeaderFromEmf(core::mem::transmute(hemf), core::mem::transmute(header)) + GdipGetMetafileHeaderFromEmf(hemf, core::mem::transmute(header)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1695,7 +1695,7 @@ where #[inline] pub unsafe fn GdipGetMetafileHeaderFromWmf(hwmf: super::Gdi::HMETAFILE, wmfplaceablefileheader: *const WmfPlaceableFileHeader, header: *mut MetafileHeader) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileHeaderFromWmf(hwmf : super::Gdi:: HMETAFILE, wmfplaceablefileheader : *const WmfPlaceableFileHeader, header : *mut MetafileHeader) -> Status); - GdipGetMetafileHeaderFromWmf(core::mem::transmute(hwmf), core::mem::transmute(wmfplaceablefileheader), core::mem::transmute(header)) + GdipGetMetafileHeaderFromWmf(hwmf, wmfplaceablefileheader, core::mem::transmute(header)) } #[inline] pub unsafe fn GdipGetNearestColor(graphics: *mut GpGraphics, argb: *mut u32) -> Status { @@ -1725,7 +1725,7 @@ pub unsafe fn GdipGetPathFillMode(path: *mut GpPath, fillmode: *mut FillMode) -> #[inline] pub unsafe fn GdipGetPathGradientBlend(brush: *mut GpPathGradient, blend: *mut f32, positions: *mut f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathGradientBlend(brush : *mut GpPathGradient, blend : *mut f32, positions : *mut f32, count : i32) -> Status); - GdipGetPathGradientBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipGetPathGradientBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), count) } #[inline] pub unsafe fn GdipGetPathGradientBlendCount(brush: *mut GpPathGradient, count: *mut i32) -> Status { @@ -1770,7 +1770,7 @@ pub unsafe fn GdipGetPathGradientPointCount(brush: *mut GpPathGradient, count: * #[inline] pub unsafe fn GdipGetPathGradientPresetBlend(brush: *mut GpPathGradient, blend: *mut u32, positions: *mut f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathGradientPresetBlend(brush : *mut GpPathGradient, blend : *mut u32, positions : *mut f32, count : i32) -> Status); - GdipGetPathGradientPresetBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipGetPathGradientPresetBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), count) } #[inline] pub unsafe fn GdipGetPathGradientPresetBlendCount(brush: *mut GpPathGradient, count: *mut i32) -> Status { @@ -1795,7 +1795,7 @@ pub unsafe fn GdipGetPathGradientSurroundColorCount(brush: *mut GpPathGradient, #[inline] pub unsafe fn GdipGetPathGradientSurroundColorsWithCount(brush: *const GpPathGradient, color: *mut u32, count: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathGradientSurroundColorsWithCount(brush : *const GpPathGradient, color : *mut u32, count : *mut i32) -> Status); - GdipGetPathGradientSurroundColorsWithCount(core::mem::transmute(brush), core::mem::transmute(color), core::mem::transmute(count)) + GdipGetPathGradientSurroundColorsWithCount(brush, core::mem::transmute(color), core::mem::transmute(count)) } #[inline] pub unsafe fn GdipGetPathGradientTransform(brush: *mut GpPathGradient, matrix: *mut Matrix) -> Status { @@ -1815,27 +1815,27 @@ pub unsafe fn GdipGetPathLastPoint(path: *mut GpPath, lastpoint: *mut PointF) -> #[inline] pub unsafe fn GdipGetPathPoints(param0: *mut GpPath, points: *mut PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathPoints(param0 : *mut GpPath, points : *mut PointF, count : i32) -> Status); - GdipGetPathPoints(core::mem::transmute(param0), core::mem::transmute(points), core::mem::transmute(count)) + GdipGetPathPoints(core::mem::transmute(param0), core::mem::transmute(points), count) } #[inline] pub unsafe fn GdipGetPathPointsI(param0: *mut GpPath, points: *mut Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathPointsI(param0 : *mut GpPath, points : *mut Point, count : i32) -> Status); - GdipGetPathPointsI(core::mem::transmute(param0), core::mem::transmute(points), core::mem::transmute(count)) + GdipGetPathPointsI(core::mem::transmute(param0), core::mem::transmute(points), count) } #[inline] pub unsafe fn GdipGetPathTypes(path: *const GpPath, types: &mut [u8]) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathTypes(path : *const GpPath, types : *mut u8, count : i32) -> Status); - GdipGetPathTypes(core::mem::transmute(path), core::mem::transmute(types.as_ptr()), types.len().try_into().unwrap()) + GdipGetPathTypes(path, core::mem::transmute(types.as_ptr()), types.len().try_into().unwrap()) } #[inline] pub unsafe fn GdipGetPathWorldBounds(path: *mut GpPath, bounds: *mut RectF, matrix: *const Matrix, pen: *const GpPen) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathWorldBounds(path : *mut GpPath, bounds : *mut RectF, matrix : *const Matrix, pen : *const GpPen) -> Status); - GdipGetPathWorldBounds(core::mem::transmute(path), core::mem::transmute(bounds), core::mem::transmute(matrix), core::mem::transmute(pen)) + GdipGetPathWorldBounds(core::mem::transmute(path), core::mem::transmute(bounds), matrix, pen) } #[inline] pub unsafe fn GdipGetPathWorldBoundsI(path: *mut GpPath, bounds: *mut Rect, matrix: *const Matrix, pen: *const GpPen) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathWorldBoundsI(path : *mut GpPath, bounds : *mut Rect, matrix : *const Matrix, pen : *const GpPen) -> Status); - GdipGetPathWorldBoundsI(core::mem::transmute(path), core::mem::transmute(bounds), core::mem::transmute(matrix), core::mem::transmute(pen)) + GdipGetPathWorldBoundsI(core::mem::transmute(path), core::mem::transmute(bounds), matrix, pen) } #[inline] pub unsafe fn GdipGetPenBrushFill(pen: *mut GpPen, brush: *mut *mut GpBrush) -> Status { @@ -1850,7 +1850,7 @@ pub unsafe fn GdipGetPenColor(pen: *mut GpPen, argb: *mut u32) -> Status { #[inline] pub unsafe fn GdipGetPenCompoundArray(pen: *mut GpPen, dash: *mut f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPenCompoundArray(pen : *mut GpPen, dash : *mut f32, count : i32) -> Status); - GdipGetPenCompoundArray(core::mem::transmute(pen), core::mem::transmute(dash), core::mem::transmute(count)) + GdipGetPenCompoundArray(core::mem::transmute(pen), core::mem::transmute(dash), count) } #[inline] pub unsafe fn GdipGetPenCompoundCount(pen: *mut GpPen, count: *mut i32) -> Status { @@ -1870,7 +1870,7 @@ pub unsafe fn GdipGetPenCustomStartCap(pen: *mut GpPen, customcap: *mut *mut GpC #[inline] pub unsafe fn GdipGetPenDashArray(pen: *mut GpPen, dash: *mut f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPenDashArray(pen : *mut GpPen, dash : *mut f32, count : i32) -> Status); - GdipGetPenDashArray(core::mem::transmute(pen), core::mem::transmute(dash), core::mem::transmute(count)) + GdipGetPenDashArray(core::mem::transmute(pen), core::mem::transmute(dash), count) } #[inline] pub unsafe fn GdipGetPenDashCap197819(pen: *mut GpPen, dashcap: *mut DashCap) -> Status { @@ -1955,17 +1955,17 @@ pub unsafe fn GdipGetPropertyCount(image: *mut GpImage, numofproperty: *mut u32) #[inline] pub unsafe fn GdipGetPropertyIdList(image: *mut GpImage, numofproperty: u32, list: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPropertyIdList(image : *mut GpImage, numofproperty : u32, list : *mut u32) -> Status); - GdipGetPropertyIdList(core::mem::transmute(image), core::mem::transmute(numofproperty), core::mem::transmute(list)) + GdipGetPropertyIdList(core::mem::transmute(image), numofproperty, core::mem::transmute(list)) } #[inline] pub unsafe fn GdipGetPropertyItem(image: *mut GpImage, propid: u32, propsize: u32, buffer: *mut PropertyItem) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPropertyItem(image : *mut GpImage, propid : u32, propsize : u32, buffer : *mut PropertyItem) -> Status); - GdipGetPropertyItem(core::mem::transmute(image), core::mem::transmute(propid), core::mem::transmute(propsize), core::mem::transmute(buffer)) + GdipGetPropertyItem(core::mem::transmute(image), propid, propsize, core::mem::transmute(buffer)) } #[inline] pub unsafe fn GdipGetPropertyItemSize(image: *mut GpImage, propid: u32, size: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetPropertyItemSize(image : *mut GpImage, propid : u32, size : *mut u32) -> Status); - GdipGetPropertyItemSize(core::mem::transmute(image), core::mem::transmute(propid), core::mem::transmute(size)) + GdipGetPropertyItemSize(core::mem::transmute(image), propid, core::mem::transmute(size)) } #[inline] pub unsafe fn GdipGetPropertySize(image: *mut GpImage, totalbuffersize: *mut u32, numproperties: *mut u32) -> Status { @@ -2031,47 +2031,47 @@ pub unsafe fn GdipGetSolidFillColor(brush: *mut GpSolidFill, color: *mut u32) -> #[inline] pub unsafe fn GdipGetStringFormatAlign(format: *const GpStringFormat, align: *mut StringAlignment) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatAlign(format : *const GpStringFormat, align : *mut StringAlignment) -> Status); - GdipGetStringFormatAlign(core::mem::transmute(format), core::mem::transmute(align)) + GdipGetStringFormatAlign(format, core::mem::transmute(align)) } #[inline] pub unsafe fn GdipGetStringFormatDigitSubstitution(format: *const GpStringFormat, language: *mut u16, substitute: *mut StringDigitSubstitute) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatDigitSubstitution(format : *const GpStringFormat, language : *mut u16, substitute : *mut StringDigitSubstitute) -> Status); - GdipGetStringFormatDigitSubstitution(core::mem::transmute(format), core::mem::transmute(language), core::mem::transmute(substitute)) + GdipGetStringFormatDigitSubstitution(format, core::mem::transmute(language), core::mem::transmute(substitute)) } #[inline] pub unsafe fn GdipGetStringFormatFlags(format: *const GpStringFormat, flags: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatFlags(format : *const GpStringFormat, flags : *mut i32) -> Status); - GdipGetStringFormatFlags(core::mem::transmute(format), core::mem::transmute(flags)) + GdipGetStringFormatFlags(format, core::mem::transmute(flags)) } #[inline] pub unsafe fn GdipGetStringFormatHotkeyPrefix(format: *const GpStringFormat, hotkeyprefix: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatHotkeyPrefix(format : *const GpStringFormat, hotkeyprefix : *mut i32) -> Status); - GdipGetStringFormatHotkeyPrefix(core::mem::transmute(format), core::mem::transmute(hotkeyprefix)) + GdipGetStringFormatHotkeyPrefix(format, core::mem::transmute(hotkeyprefix)) } #[inline] pub unsafe fn GdipGetStringFormatLineAlign(format: *const GpStringFormat, align: *mut StringAlignment) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatLineAlign(format : *const GpStringFormat, align : *mut StringAlignment) -> Status); - GdipGetStringFormatLineAlign(core::mem::transmute(format), core::mem::transmute(align)) + GdipGetStringFormatLineAlign(format, core::mem::transmute(align)) } #[inline] pub unsafe fn GdipGetStringFormatMeasurableCharacterRangeCount(format: *const GpStringFormat, count: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatMeasurableCharacterRangeCount(format : *const GpStringFormat, count : *mut i32) -> Status); - GdipGetStringFormatMeasurableCharacterRangeCount(core::mem::transmute(format), core::mem::transmute(count)) + GdipGetStringFormatMeasurableCharacterRangeCount(format, core::mem::transmute(count)) } #[inline] pub unsafe fn GdipGetStringFormatTabStopCount(format: *const GpStringFormat, count: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatTabStopCount(format : *const GpStringFormat, count : *mut i32) -> Status); - GdipGetStringFormatTabStopCount(core::mem::transmute(format), core::mem::transmute(count)) + GdipGetStringFormatTabStopCount(format, core::mem::transmute(count)) } #[inline] pub unsafe fn GdipGetStringFormatTabStops(format: *const GpStringFormat, count: i32, firsttaboffset: *mut f32, tabstops: *mut f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatTabStops(format : *const GpStringFormat, count : i32, firsttaboffset : *mut f32, tabstops : *mut f32) -> Status); - GdipGetStringFormatTabStops(core::mem::transmute(format), core::mem::transmute(count), core::mem::transmute(firsttaboffset), core::mem::transmute(tabstops)) + GdipGetStringFormatTabStops(format, count, core::mem::transmute(firsttaboffset), core::mem::transmute(tabstops)) } #[inline] pub unsafe fn GdipGetStringFormatTrimming(format: *const GpStringFormat, trimming: *mut StringTrimming) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGetStringFormatTrimming(format : *const GpStringFormat, trimming : *mut StringTrimming) -> Status); - GdipGetStringFormatTrimming(core::mem::transmute(format), core::mem::transmute(trimming)) + GdipGetStringFormatTrimming(format, core::mem::transmute(trimming)) } #[inline] pub unsafe fn GdipGetTextContrast(graphics: *mut GpGraphics, contrast: *mut u32) -> Status { @@ -2116,7 +2116,7 @@ pub unsafe fn GdipGetWorldTransform(graphics: *mut GpGraphics, matrix: *mut Matr #[inline] pub unsafe fn GdipGraphicsClear(graphics: *mut GpGraphics, color: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipGraphicsClear(graphics : *mut GpGraphics, color : u32) -> Status); - GdipGraphicsClear(core::mem::transmute(graphics), core::mem::transmute(color)) + GdipGraphicsClear(core::mem::transmute(graphics), color) } #[inline] pub unsafe fn GdipGraphicsSetAbort(pgraphics: *mut GpGraphics, piabort: P1) -> Status @@ -2134,7 +2134,7 @@ pub unsafe fn GdipImageForceValidation(image: *mut GpImage) -> Status { #[inline] pub unsafe fn GdipImageGetFrameCount(image: *mut GpImage, dimensionid: *const windows_core::GUID, count: *mut u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipImageGetFrameCount(image : *mut GpImage, dimensionid : *const windows_core::GUID, count : *mut u32) -> Status); - GdipImageGetFrameCount(core::mem::transmute(image), core::mem::transmute(dimensionid), core::mem::transmute(count)) + GdipImageGetFrameCount(core::mem::transmute(image), dimensionid, core::mem::transmute(count)) } #[inline] pub unsafe fn GdipImageGetFrameDimensionsCount(image: *mut GpImage, count: *mut u32) -> Status { @@ -2144,17 +2144,17 @@ pub unsafe fn GdipImageGetFrameDimensionsCount(image: *mut GpImage, count: *mut #[inline] pub unsafe fn GdipImageGetFrameDimensionsList(image: *mut GpImage, dimensionids: *mut windows_core::GUID, count: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipImageGetFrameDimensionsList(image : *mut GpImage, dimensionids : *mut windows_core::GUID, count : u32) -> Status); - GdipImageGetFrameDimensionsList(core::mem::transmute(image), core::mem::transmute(dimensionids), core::mem::transmute(count)) + GdipImageGetFrameDimensionsList(core::mem::transmute(image), core::mem::transmute(dimensionids), count) } #[inline] pub unsafe fn GdipImageRotateFlip(image: *mut GpImage, rftype: RotateFlipType) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipImageRotateFlip(image : *mut GpImage, rftype : RotateFlipType) -> Status); - GdipImageRotateFlip(core::mem::transmute(image), core::mem::transmute(rftype)) + GdipImageRotateFlip(core::mem::transmute(image), rftype) } #[inline] pub unsafe fn GdipImageSelectActiveFrame(image: *mut GpImage, dimensionid: *const windows_core::GUID, frameindex: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipImageSelectActiveFrame(image : *mut GpImage, dimensionid : *const windows_core::GUID, frameindex : u32) -> Status); - GdipImageSelectActiveFrame(core::mem::transmute(image), core::mem::transmute(dimensionid), core::mem::transmute(frameindex)) + GdipImageSelectActiveFrame(core::mem::transmute(image), dimensionid, frameindex) } #[inline] pub unsafe fn GdipImageSetAbort(pimage: *mut GpImage, piabort: P1) -> Status @@ -2167,7 +2167,7 @@ where #[inline] pub unsafe fn GdipInitializePalette(palette: *mut ColorPalette, palettetype: PaletteType, optimalcolors: i32, usetransparentcolor: bool, bitmap: *mut GpBitmap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipInitializePalette(palette : *mut ColorPalette, palettetype : PaletteType, optimalcolors : i32, usetransparentcolor : super::super::Foundation:: BOOL, bitmap : *mut GpBitmap) -> Status); - GdipInitializePalette(core::mem::transmute(palette), core::mem::transmute(palettetype), core::mem::transmute(optimalcolors), usetransparentcolor.into(), core::mem::transmute(bitmap)) + GdipInitializePalette(core::mem::transmute(palette), palettetype, optimalcolors, usetransparentcolor.into(), core::mem::transmute(bitmap)) } #[inline] pub unsafe fn GdipInvertMatrix(matrix: *mut Matrix) -> Status { @@ -2197,32 +2197,32 @@ pub unsafe fn GdipIsInfiniteRegion(region: *mut GpRegion, graphics: *mut GpGraph #[inline] pub unsafe fn GdipIsMatrixEqual(matrix: *const Matrix, matrix2: *const Matrix, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixEqual(matrix : *const Matrix, matrix2 : *const Matrix, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsMatrixEqual(core::mem::transmute(matrix), core::mem::transmute(matrix2), core::mem::transmute(result)) + GdipIsMatrixEqual(matrix, matrix2, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsMatrixIdentity(matrix: *const Matrix, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixIdentity(matrix : *const Matrix, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsMatrixIdentity(core::mem::transmute(matrix), core::mem::transmute(result)) + GdipIsMatrixIdentity(matrix, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsMatrixInvertible(matrix: *const Matrix, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixInvertible(matrix : *const Matrix, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsMatrixInvertible(core::mem::transmute(matrix), core::mem::transmute(result)) + GdipIsMatrixInvertible(matrix, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsOutlineVisiblePathPoint(path: *mut GpPath, x: f32, y: f32, pen: *mut GpPen, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsOutlineVisiblePathPoint(path : *mut GpPath, x : f32, y : f32, pen : *mut GpPen, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsOutlineVisiblePathPoint(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(pen), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsOutlineVisiblePathPoint(core::mem::transmute(path), x, y, core::mem::transmute(pen), core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsOutlineVisiblePathPointI(path: *mut GpPath, x: i32, y: i32, pen: *mut GpPen, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsOutlineVisiblePathPointI(path : *mut GpPath, x : i32, y : i32, pen : *mut GpPen, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsOutlineVisiblePathPointI(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(pen), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsOutlineVisiblePathPointI(core::mem::transmute(path), x, y, core::mem::transmute(pen), core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsStyleAvailable(family: *const GpFontFamily, style: i32, isstyleavailable: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsStyleAvailable(family : *const GpFontFamily, style : i32, isstyleavailable : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsStyleAvailable(core::mem::transmute(family), core::mem::transmute(style), core::mem::transmute(isstyleavailable)) + GdipIsStyleAvailable(family, style, core::mem::transmute(isstyleavailable)) } #[inline] pub unsafe fn GdipIsVisibleClipEmpty(graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { @@ -2232,52 +2232,52 @@ pub unsafe fn GdipIsVisibleClipEmpty(graphics: *mut GpGraphics, result: *mut sup #[inline] pub unsafe fn GdipIsVisiblePathPoint(path: *mut GpPath, x: f32, y: f32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePathPoint(path : *mut GpPath, x : f32, y : f32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisiblePathPoint(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsVisiblePathPoint(core::mem::transmute(path), x, y, core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisiblePathPointI(path: *mut GpPath, x: i32, y: i32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePathPointI(path : *mut GpPath, x : i32, y : i32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisiblePathPointI(core::mem::transmute(path), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsVisiblePathPointI(core::mem::transmute(path), x, y, core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisiblePoint(graphics: *mut GpGraphics, x: f32, y: f32, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePoint(graphics : *mut GpGraphics, x : f32, y : f32, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisiblePoint(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(result)) + GdipIsVisiblePoint(core::mem::transmute(graphics), x, y, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisiblePointI(graphics: *mut GpGraphics, x: i32, y: i32, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePointI(graphics : *mut GpGraphics, x : i32, y : i32, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisiblePointI(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(result)) + GdipIsVisiblePointI(core::mem::transmute(graphics), x, y, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisibleRect(graphics: *mut GpGraphics, x: f32, y: f32, width: f32, height: f32, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRect(graphics : *mut GpGraphics, x : f32, y : f32, width : f32, height : f32, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisibleRect(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(result)) + GdipIsVisibleRect(core::mem::transmute(graphics), x, y, width, height, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisibleRectI(graphics: *mut GpGraphics, x: i32, y: i32, width: i32, height: i32, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRectI(graphics : *mut GpGraphics, x : i32, y : i32, width : i32, height : i32, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisibleRectI(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(result)) + GdipIsVisibleRectI(core::mem::transmute(graphics), x, y, width, height, core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisibleRegionPoint(region: *mut GpRegion, x: f32, y: f32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionPoint(region : *mut GpRegion, x : f32, y : f32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisibleRegionPoint(core::mem::transmute(region), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsVisibleRegionPoint(core::mem::transmute(region), x, y, core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisibleRegionPointI(region: *mut GpRegion, x: i32, y: i32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionPointI(region : *mut GpRegion, x : i32, y : i32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisibleRegionPointI(core::mem::transmute(region), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsVisibleRegionPointI(core::mem::transmute(region), x, y, core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisibleRegionRect(region: *mut GpRegion, x: f32, y: f32, width: f32, height: f32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionRect(region : *mut GpRegion, x : f32, y : f32, width : f32, height : f32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisibleRegionRect(core::mem::transmute(region), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsVisibleRegionRect(core::mem::transmute(region), x, y, width, height, core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipIsVisibleRegionRectI(region: *mut GpRegion, x: i32, y: i32, width: i32, height: i32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionRectI(region : *mut GpRegion, x : i32, y : i32, width : i32, height : i32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); - GdipIsVisibleRegionRectI(core::mem::transmute(region), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(graphics), core::mem::transmute(result)) + GdipIsVisibleRegionRectI(core::mem::transmute(region), x, y, width, height, core::mem::transmute(graphics), core::mem::transmute(result)) } #[inline] pub unsafe fn GdipLoadImageFromFile(filename: P0, image: *mut *mut GpImage) -> Status @@ -2319,12 +2319,12 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipMeasureCharacterRanges(graphics : *mut GpGraphics, string : windows_core::PCWSTR, length : i32, font : *const GpFont, layoutrect : *const RectF, stringformat : *const GpStringFormat, regioncount : i32, regions : *mut *mut GpRegion) -> Status); - GdipMeasureCharacterRanges(core::mem::transmute(graphics), string.param().abi(), core::mem::transmute(length), core::mem::transmute(font), core::mem::transmute(layoutrect), core::mem::transmute(stringformat), core::mem::transmute(regioncount), core::mem::transmute(regions)) + GdipMeasureCharacterRanges(core::mem::transmute(graphics), string.param().abi(), length, font, layoutrect, stringformat, regioncount, core::mem::transmute(regions)) } #[inline] pub unsafe fn GdipMeasureDriverString(graphics: *mut GpGraphics, text: *const u16, length: i32, font: *const GpFont, positions: *const PointF, flags: i32, matrix: *const Matrix, boundingbox: *mut RectF) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMeasureDriverString(graphics : *mut GpGraphics, text : *const u16, length : i32, font : *const GpFont, positions : *const PointF, flags : i32, matrix : *const Matrix, boundingbox : *mut RectF) -> Status); - GdipMeasureDriverString(core::mem::transmute(graphics), core::mem::transmute(text), core::mem::transmute(length), core::mem::transmute(font), core::mem::transmute(positions), core::mem::transmute(flags), core::mem::transmute(matrix), core::mem::transmute(boundingbox)) + GdipMeasureDriverString(core::mem::transmute(graphics), text, length, font, positions, flags, matrix, core::mem::transmute(boundingbox)) } #[inline] pub unsafe fn GdipMeasureString(graphics: *mut GpGraphics, string: P1, length: i32, font: *const GpFont, layoutrect: *const RectF, stringformat: *const GpStringFormat, boundingbox: *mut RectF, codepointsfitted: *mut i32, linesfilled: *mut i32) -> Status @@ -2332,37 +2332,37 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipMeasureString(graphics : *mut GpGraphics, string : windows_core::PCWSTR, length : i32, font : *const GpFont, layoutrect : *const RectF, stringformat : *const GpStringFormat, boundingbox : *mut RectF, codepointsfitted : *mut i32, linesfilled : *mut i32) -> Status); - GdipMeasureString(core::mem::transmute(graphics), string.param().abi(), core::mem::transmute(length), core::mem::transmute(font), core::mem::transmute(layoutrect), core::mem::transmute(stringformat), core::mem::transmute(boundingbox), core::mem::transmute(codepointsfitted), core::mem::transmute(linesfilled)) + GdipMeasureString(core::mem::transmute(graphics), string.param().abi(), length, font, layoutrect, stringformat, core::mem::transmute(boundingbox), core::mem::transmute(codepointsfitted), core::mem::transmute(linesfilled)) } #[inline] pub unsafe fn GdipMultiplyLineTransform(brush: *mut GpLineGradient, matrix: *const Matrix, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMultiplyLineTransform(brush : *mut GpLineGradient, matrix : *const Matrix, order : MatrixOrder) -> Status); - GdipMultiplyLineTransform(core::mem::transmute(brush), core::mem::transmute(matrix), core::mem::transmute(order)) + GdipMultiplyLineTransform(core::mem::transmute(brush), matrix, order) } #[inline] pub unsafe fn GdipMultiplyMatrix(matrix: *mut Matrix, matrix2: *mut Matrix, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMultiplyMatrix(matrix : *mut Matrix, matrix2 : *mut Matrix, order : MatrixOrder) -> Status); - GdipMultiplyMatrix(core::mem::transmute(matrix), core::mem::transmute(matrix2), core::mem::transmute(order)) + GdipMultiplyMatrix(core::mem::transmute(matrix), core::mem::transmute(matrix2), order) } #[inline] pub unsafe fn GdipMultiplyPathGradientTransform(brush: *mut GpPathGradient, matrix: *const Matrix, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMultiplyPathGradientTransform(brush : *mut GpPathGradient, matrix : *const Matrix, order : MatrixOrder) -> Status); - GdipMultiplyPathGradientTransform(core::mem::transmute(brush), core::mem::transmute(matrix), core::mem::transmute(order)) + GdipMultiplyPathGradientTransform(core::mem::transmute(brush), matrix, order) } #[inline] pub unsafe fn GdipMultiplyPenTransform(pen: *mut GpPen, matrix: *const Matrix, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMultiplyPenTransform(pen : *mut GpPen, matrix : *const Matrix, order : MatrixOrder) -> Status); - GdipMultiplyPenTransform(core::mem::transmute(pen), core::mem::transmute(matrix), core::mem::transmute(order)) + GdipMultiplyPenTransform(core::mem::transmute(pen), matrix, order) } #[inline] pub unsafe fn GdipMultiplyTextureTransform(brush: *mut GpTexture, matrix: *const Matrix, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMultiplyTextureTransform(brush : *mut GpTexture, matrix : *const Matrix, order : MatrixOrder) -> Status); - GdipMultiplyTextureTransform(core::mem::transmute(brush), core::mem::transmute(matrix), core::mem::transmute(order)) + GdipMultiplyTextureTransform(core::mem::transmute(brush), matrix, order) } #[inline] pub unsafe fn GdipMultiplyWorldTransform(graphics: *mut GpGraphics, matrix: *const Matrix, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipMultiplyWorldTransform(graphics : *mut GpGraphics, matrix : *const Matrix, order : MatrixOrder) -> Status); - GdipMultiplyWorldTransform(core::mem::transmute(graphics), core::mem::transmute(matrix), core::mem::transmute(order)) + GdipMultiplyWorldTransform(core::mem::transmute(graphics), matrix, order) } #[inline] pub unsafe fn GdipNewInstalledFontCollection(fontcollection: *mut *mut GpFontCollection) -> Status { @@ -2377,12 +2377,12 @@ pub unsafe fn GdipNewPrivateFontCollection(fontcollection: *mut *mut GpFontColle #[inline] pub unsafe fn GdipPathIterCopyData(iterator: *mut GpPathIterator, resultcount: *mut i32, points: *mut PointF, types: *mut u8, startindex: i32, endindex: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterCopyData(iterator : *mut GpPathIterator, resultcount : *mut i32, points : *mut PointF, types : *mut u8, startindex : i32, endindex : i32) -> Status); - GdipPathIterCopyData(core::mem::transmute(iterator), core::mem::transmute(resultcount), core::mem::transmute(points), core::mem::transmute(types), core::mem::transmute(startindex), core::mem::transmute(endindex)) + GdipPathIterCopyData(core::mem::transmute(iterator), core::mem::transmute(resultcount), core::mem::transmute(points), core::mem::transmute(types), startindex, endindex) } #[inline] pub unsafe fn GdipPathIterEnumerate(iterator: *mut GpPathIterator, resultcount: *mut i32, points: *mut PointF, types: *mut u8, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterEnumerate(iterator : *mut GpPathIterator, resultcount : *mut i32, points : *mut PointF, types : *mut u8, count : i32) -> Status); - GdipPathIterEnumerate(core::mem::transmute(iterator), core::mem::transmute(resultcount), core::mem::transmute(points), core::mem::transmute(types), core::mem::transmute(count)) + GdipPathIterEnumerate(core::mem::transmute(iterator), core::mem::transmute(resultcount), core::mem::transmute(points), core::mem::transmute(types), count) } #[inline] pub unsafe fn GdipPathIterGetCount(iterator: *mut GpPathIterator, count: *mut i32) -> Status { @@ -2437,7 +2437,7 @@ pub unsafe fn GdipPathIterRewind(iterator: *mut GpPathIterator) -> Status { #[inline] pub unsafe fn GdipPlayMetafileRecord(metafile: *const GpMetafile, recordtype: EmfPlusRecordType, flags: u32, datasize: u32, data: *const u8) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipPlayMetafileRecord(metafile : *const GpMetafile, recordtype : EmfPlusRecordType, flags : u32, datasize : u32, data : *const u8) -> Status); - GdipPlayMetafileRecord(core::mem::transmute(metafile), core::mem::transmute(recordtype), core::mem::transmute(flags), core::mem::transmute(datasize), core::mem::transmute(data)) + GdipPlayMetafileRecord(metafile, recordtype, flags, datasize, data) } #[inline] pub unsafe fn GdipPrivateAddFontFile(fontcollection: *mut GpFontCollection, filename: P1) -> Status @@ -2450,7 +2450,7 @@ where #[inline] pub unsafe fn GdipPrivateAddMemoryFont(fontcollection: *mut GpFontCollection, memory: *const core::ffi::c_void, length: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipPrivateAddMemoryFont(fontcollection : *mut GpFontCollection, memory : *const core::ffi::c_void, length : i32) -> Status); - GdipPrivateAddMemoryFont(core::mem::transmute(fontcollection), core::mem::transmute(memory), core::mem::transmute(length)) + GdipPrivateAddMemoryFont(core::mem::transmute(fontcollection), memory, length) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -2459,7 +2459,7 @@ where P4: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipRecordMetafile(referencehdc : super::Gdi:: HDC, r#type : EmfType, framerect : *const RectF, frameunit : MetafileFrameUnit, description : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipRecordMetafile(core::mem::transmute(referencehdc), core::mem::transmute(r#type), core::mem::transmute(framerect), core::mem::transmute(frameunit), description.param().abi(), core::mem::transmute(metafile)) + GdipRecordMetafile(referencehdc, r#type, framerect, frameunit, description.param().abi(), core::mem::transmute(metafile)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -2469,7 +2469,7 @@ where P5: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipRecordMetafileFileName(filename : windows_core::PCWSTR, referencehdc : super::Gdi:: HDC, r#type : EmfType, framerect : *const RectF, frameunit : MetafileFrameUnit, description : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipRecordMetafileFileName(filename.param().abi(), core::mem::transmute(referencehdc), core::mem::transmute(r#type), core::mem::transmute(framerect), core::mem::transmute(frameunit), description.param().abi(), core::mem::transmute(metafile)) + GdipRecordMetafileFileName(filename.param().abi(), referencehdc, r#type, framerect, frameunit, description.param().abi(), core::mem::transmute(metafile)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -2479,7 +2479,7 @@ where P5: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipRecordMetafileFileNameI(filename : windows_core::PCWSTR, referencehdc : super::Gdi:: HDC, r#type : EmfType, framerect : *const Rect, frameunit : MetafileFrameUnit, description : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipRecordMetafileFileNameI(filename.param().abi(), core::mem::transmute(referencehdc), core::mem::transmute(r#type), core::mem::transmute(framerect), core::mem::transmute(frameunit), description.param().abi(), core::mem::transmute(metafile)) + GdipRecordMetafileFileNameI(filename.param().abi(), referencehdc, r#type, framerect, frameunit, description.param().abi(), core::mem::transmute(metafile)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -2488,7 +2488,7 @@ where P4: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipRecordMetafileI(referencehdc : super::Gdi:: HDC, r#type : EmfType, framerect : *const Rect, frameunit : MetafileFrameUnit, description : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipRecordMetafileI(core::mem::transmute(referencehdc), core::mem::transmute(r#type), core::mem::transmute(framerect), core::mem::transmute(frameunit), description.param().abi(), core::mem::transmute(metafile)) + GdipRecordMetafileI(referencehdc, r#type, framerect, frameunit, description.param().abi(), core::mem::transmute(metafile)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] #[inline] @@ -2498,7 +2498,7 @@ where P5: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipRecordMetafileStream(stream : * mut core::ffi::c_void, referencehdc : super::Gdi:: HDC, r#type : EmfType, framerect : *const RectF, frameunit : MetafileFrameUnit, description : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipRecordMetafileStream(stream.param().abi(), core::mem::transmute(referencehdc), core::mem::transmute(r#type), core::mem::transmute(framerect), core::mem::transmute(frameunit), description.param().abi(), core::mem::transmute(metafile)) + GdipRecordMetafileStream(stream.param().abi(), referencehdc, r#type, framerect, frameunit, description.param().abi(), core::mem::transmute(metafile)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] #[inline] @@ -2508,18 +2508,18 @@ where P5: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipRecordMetafileStreamI(stream : * mut core::ffi::c_void, referencehdc : super::Gdi:: HDC, r#type : EmfType, framerect : *const Rect, frameunit : MetafileFrameUnit, description : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipRecordMetafileStreamI(stream.param().abi(), core::mem::transmute(referencehdc), core::mem::transmute(r#type), core::mem::transmute(framerect), core::mem::transmute(frameunit), description.param().abi(), core::mem::transmute(metafile)) + GdipRecordMetafileStreamI(stream.param().abi(), referencehdc, r#type, framerect, frameunit, description.param().abi(), core::mem::transmute(metafile)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipReleaseDC(graphics: *mut GpGraphics, hdc: super::Gdi::HDC) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipReleaseDC(graphics : *mut GpGraphics, hdc : super::Gdi:: HDC) -> Status); - GdipReleaseDC(core::mem::transmute(graphics), core::mem::transmute(hdc)) + GdipReleaseDC(core::mem::transmute(graphics), hdc) } #[inline] pub unsafe fn GdipRemovePropertyItem(image: *mut GpImage, propid: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRemovePropertyItem(image : *mut GpImage, propid : u32) -> Status); - GdipRemovePropertyItem(core::mem::transmute(image), core::mem::transmute(propid)) + GdipRemovePropertyItem(core::mem::transmute(image), propid) } #[inline] pub unsafe fn GdipResetClip(graphics: *mut GpGraphics) -> Status { @@ -2529,7 +2529,7 @@ pub unsafe fn GdipResetClip(graphics: *mut GpGraphics) -> Status { #[inline] pub unsafe fn GdipResetImageAttributes(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipResetImageAttributes(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType) -> Status); - GdipResetImageAttributes(core::mem::transmute(imageattr), core::mem::transmute(r#type)) + GdipResetImageAttributes(core::mem::transmute(imageattr), r#type) } #[inline] pub unsafe fn GdipResetLineTransform(brush: *mut GpLineGradient) -> Status { @@ -2569,7 +2569,7 @@ pub unsafe fn GdipResetWorldTransform(graphics: *mut GpGraphics) -> Status { #[inline] pub unsafe fn GdipRestoreGraphics(graphics: *mut GpGraphics, state: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRestoreGraphics(graphics : *mut GpGraphics, state : u32) -> Status); - GdipRestoreGraphics(core::mem::transmute(graphics), core::mem::transmute(state)) + GdipRestoreGraphics(core::mem::transmute(graphics), state) } #[inline] pub unsafe fn GdipReversePath(path: *mut GpPath) -> Status { @@ -2579,42 +2579,42 @@ pub unsafe fn GdipReversePath(path: *mut GpPath) -> Status { #[inline] pub unsafe fn GdipRotateLineTransform(brush: *mut GpLineGradient, angle: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRotateLineTransform(brush : *mut GpLineGradient, angle : f32, order : MatrixOrder) -> Status); - GdipRotateLineTransform(core::mem::transmute(brush), core::mem::transmute(angle), core::mem::transmute(order)) + GdipRotateLineTransform(core::mem::transmute(brush), angle, order) } #[inline] pub unsafe fn GdipRotateMatrix(matrix: *mut Matrix, angle: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRotateMatrix(matrix : *mut Matrix, angle : f32, order : MatrixOrder) -> Status); - GdipRotateMatrix(core::mem::transmute(matrix), core::mem::transmute(angle), core::mem::transmute(order)) + GdipRotateMatrix(core::mem::transmute(matrix), angle, order) } #[inline] pub unsafe fn GdipRotatePathGradientTransform(brush: *mut GpPathGradient, angle: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRotatePathGradientTransform(brush : *mut GpPathGradient, angle : f32, order : MatrixOrder) -> Status); - GdipRotatePathGradientTransform(core::mem::transmute(brush), core::mem::transmute(angle), core::mem::transmute(order)) + GdipRotatePathGradientTransform(core::mem::transmute(brush), angle, order) } #[inline] pub unsafe fn GdipRotatePenTransform(pen: *mut GpPen, angle: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRotatePenTransform(pen : *mut GpPen, angle : f32, order : MatrixOrder) -> Status); - GdipRotatePenTransform(core::mem::transmute(pen), core::mem::transmute(angle), core::mem::transmute(order)) + GdipRotatePenTransform(core::mem::transmute(pen), angle, order) } #[inline] pub unsafe fn GdipRotateTextureTransform(brush: *mut GpTexture, angle: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRotateTextureTransform(brush : *mut GpTexture, angle : f32, order : MatrixOrder) -> Status); - GdipRotateTextureTransform(core::mem::transmute(brush), core::mem::transmute(angle), core::mem::transmute(order)) + GdipRotateTextureTransform(core::mem::transmute(brush), angle, order) } #[inline] pub unsafe fn GdipRotateWorldTransform(graphics: *mut GpGraphics, angle: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipRotateWorldTransform(graphics : *mut GpGraphics, angle : f32, order : MatrixOrder) -> Status); - GdipRotateWorldTransform(core::mem::transmute(graphics), core::mem::transmute(angle), core::mem::transmute(order)) + GdipRotateWorldTransform(core::mem::transmute(graphics), angle, order) } #[inline] pub unsafe fn GdipSaveAdd(image: *mut GpImage, encoderparams: *const EncoderParameters) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSaveAdd(image : *mut GpImage, encoderparams : *const EncoderParameters) -> Status); - GdipSaveAdd(core::mem::transmute(image), core::mem::transmute(encoderparams)) + GdipSaveAdd(core::mem::transmute(image), encoderparams) } #[inline] pub unsafe fn GdipSaveAddImage(image: *mut GpImage, newimage: *mut GpImage, encoderparams: *const EncoderParameters) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSaveAddImage(image : *mut GpImage, newimage : *mut GpImage, encoderparams : *const EncoderParameters) -> Status); - GdipSaveAddImage(core::mem::transmute(image), core::mem::transmute(newimage), core::mem::transmute(encoderparams)) + GdipSaveAddImage(core::mem::transmute(image), core::mem::transmute(newimage), encoderparams) } #[inline] pub unsafe fn GdipSaveGraphics(graphics: *mut GpGraphics, state: *mut u32) -> Status { @@ -2627,7 +2627,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSaveImageToFile(image : *mut GpImage, filename : windows_core::PCWSTR, clsidencoder : *const windows_core::GUID, encoderparams : *const EncoderParameters) -> Status); - GdipSaveImageToFile(core::mem::transmute(image), filename.param().abi(), core::mem::transmute(clsidencoder), core::mem::transmute(encoderparams)) + GdipSaveImageToFile(core::mem::transmute(image), filename.param().abi(), clsidencoder, encoderparams) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2636,37 +2636,37 @@ where P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSaveImageToStream(image : *mut GpImage, stream : * mut core::ffi::c_void, clsidencoder : *const windows_core::GUID, encoderparams : *const EncoderParameters) -> Status); - GdipSaveImageToStream(core::mem::transmute(image), stream.param().abi(), core::mem::transmute(clsidencoder), core::mem::transmute(encoderparams)) + GdipSaveImageToStream(core::mem::transmute(image), stream.param().abi(), clsidencoder, encoderparams) } #[inline] pub unsafe fn GdipScaleLineTransform(brush: *mut GpLineGradient, sx: f32, sy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipScaleLineTransform(brush : *mut GpLineGradient, sx : f32, sy : f32, order : MatrixOrder) -> Status); - GdipScaleLineTransform(core::mem::transmute(brush), core::mem::transmute(sx), core::mem::transmute(sy), core::mem::transmute(order)) + GdipScaleLineTransform(core::mem::transmute(brush), sx, sy, order) } #[inline] pub unsafe fn GdipScaleMatrix(matrix: *mut Matrix, scalex: f32, scaley: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipScaleMatrix(matrix : *mut Matrix, scalex : f32, scaley : f32, order : MatrixOrder) -> Status); - GdipScaleMatrix(core::mem::transmute(matrix), core::mem::transmute(scalex), core::mem::transmute(scaley), core::mem::transmute(order)) + GdipScaleMatrix(core::mem::transmute(matrix), scalex, scaley, order) } #[inline] pub unsafe fn GdipScalePathGradientTransform(brush: *mut GpPathGradient, sx: f32, sy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipScalePathGradientTransform(brush : *mut GpPathGradient, sx : f32, sy : f32, order : MatrixOrder) -> Status); - GdipScalePathGradientTransform(core::mem::transmute(brush), core::mem::transmute(sx), core::mem::transmute(sy), core::mem::transmute(order)) + GdipScalePathGradientTransform(core::mem::transmute(brush), sx, sy, order) } #[inline] pub unsafe fn GdipScalePenTransform(pen: *mut GpPen, sx: f32, sy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipScalePenTransform(pen : *mut GpPen, sx : f32, sy : f32, order : MatrixOrder) -> Status); - GdipScalePenTransform(core::mem::transmute(pen), core::mem::transmute(sx), core::mem::transmute(sy), core::mem::transmute(order)) + GdipScalePenTransform(core::mem::transmute(pen), sx, sy, order) } #[inline] pub unsafe fn GdipScaleTextureTransform(brush: *mut GpTexture, sx: f32, sy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipScaleTextureTransform(brush : *mut GpTexture, sx : f32, sy : f32, order : MatrixOrder) -> Status); - GdipScaleTextureTransform(core::mem::transmute(brush), core::mem::transmute(sx), core::mem::transmute(sy), core::mem::transmute(order)) + GdipScaleTextureTransform(core::mem::transmute(brush), sx, sy, order) } #[inline] pub unsafe fn GdipScaleWorldTransform(graphics: *mut GpGraphics, sx: f32, sy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipScaleWorldTransform(graphics : *mut GpGraphics, sx : f32, sy : f32, order : MatrixOrder) -> Status); - GdipScaleWorldTransform(core::mem::transmute(graphics), core::mem::transmute(sx), core::mem::transmute(sy), core::mem::transmute(order)) + GdipScaleWorldTransform(core::mem::transmute(graphics), sx, sy, order) } #[inline] pub unsafe fn GdipSetAdjustableArrowCapFillState(cap: *mut GpAdjustableArrowCap, fillstate: bool) -> Status { @@ -2676,88 +2676,88 @@ pub unsafe fn GdipSetAdjustableArrowCapFillState(cap: *mut GpAdjustableArrowCap, #[inline] pub unsafe fn GdipSetAdjustableArrowCapHeight(cap: *mut GpAdjustableArrowCap, height: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetAdjustableArrowCapHeight(cap : *mut GpAdjustableArrowCap, height : f32) -> Status); - GdipSetAdjustableArrowCapHeight(core::mem::transmute(cap), core::mem::transmute(height)) + GdipSetAdjustableArrowCapHeight(core::mem::transmute(cap), height) } #[inline] pub unsafe fn GdipSetAdjustableArrowCapMiddleInset(cap: *mut GpAdjustableArrowCap, middleinset: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetAdjustableArrowCapMiddleInset(cap : *mut GpAdjustableArrowCap, middleinset : f32) -> Status); - GdipSetAdjustableArrowCapMiddleInset(core::mem::transmute(cap), core::mem::transmute(middleinset)) + GdipSetAdjustableArrowCapMiddleInset(core::mem::transmute(cap), middleinset) } #[inline] pub unsafe fn GdipSetAdjustableArrowCapWidth(cap: *mut GpAdjustableArrowCap, width: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetAdjustableArrowCapWidth(cap : *mut GpAdjustableArrowCap, width : f32) -> Status); - GdipSetAdjustableArrowCapWidth(core::mem::transmute(cap), core::mem::transmute(width)) + GdipSetAdjustableArrowCapWidth(core::mem::transmute(cap), width) } #[inline] pub unsafe fn GdipSetClipGraphics(graphics: *mut GpGraphics, srcgraphics: *mut GpGraphics, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipGraphics(graphics : *mut GpGraphics, srcgraphics : *mut GpGraphics, combinemode : CombineMode) -> Status); - GdipSetClipGraphics(core::mem::transmute(graphics), core::mem::transmute(srcgraphics), core::mem::transmute(combinemode)) + GdipSetClipGraphics(core::mem::transmute(graphics), core::mem::transmute(srcgraphics), combinemode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipSetClipHrgn(graphics: *mut GpGraphics, hrgn: super::Gdi::HRGN, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipHrgn(graphics : *mut GpGraphics, hrgn : super::Gdi:: HRGN, combinemode : CombineMode) -> Status); - GdipSetClipHrgn(core::mem::transmute(graphics), core::mem::transmute(hrgn), core::mem::transmute(combinemode)) + GdipSetClipHrgn(core::mem::transmute(graphics), hrgn, combinemode) } #[inline] pub unsafe fn GdipSetClipPath(graphics: *mut GpGraphics, path: *mut GpPath, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipPath(graphics : *mut GpGraphics, path : *mut GpPath, combinemode : CombineMode) -> Status); - GdipSetClipPath(core::mem::transmute(graphics), core::mem::transmute(path), core::mem::transmute(combinemode)) + GdipSetClipPath(core::mem::transmute(graphics), core::mem::transmute(path), combinemode) } #[inline] pub unsafe fn GdipSetClipRect(graphics: *mut GpGraphics, x: f32, y: f32, width: f32, height: f32, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipRect(graphics : *mut GpGraphics, x : f32, y : f32, width : f32, height : f32, combinemode : CombineMode) -> Status); - GdipSetClipRect(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(combinemode)) + GdipSetClipRect(core::mem::transmute(graphics), x, y, width, height, combinemode) } #[inline] pub unsafe fn GdipSetClipRectI(graphics: *mut GpGraphics, x: i32, y: i32, width: i32, height: i32, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipRectI(graphics : *mut GpGraphics, x : i32, y : i32, width : i32, height : i32, combinemode : CombineMode) -> Status); - GdipSetClipRectI(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(combinemode)) + GdipSetClipRectI(core::mem::transmute(graphics), x, y, width, height, combinemode) } #[inline] pub unsafe fn GdipSetClipRegion(graphics: *mut GpGraphics, region: *mut GpRegion, combinemode: CombineMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipRegion(graphics : *mut GpGraphics, region : *mut GpRegion, combinemode : CombineMode) -> Status); - GdipSetClipRegion(core::mem::transmute(graphics), core::mem::transmute(region), core::mem::transmute(combinemode)) + GdipSetClipRegion(core::mem::transmute(graphics), core::mem::transmute(region), combinemode) } #[inline] pub unsafe fn GdipSetCompositingMode(graphics: *mut GpGraphics, compositingmode: CompositingMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCompositingMode(graphics : *mut GpGraphics, compositingmode : CompositingMode) -> Status); - GdipSetCompositingMode(core::mem::transmute(graphics), core::mem::transmute(compositingmode)) + GdipSetCompositingMode(core::mem::transmute(graphics), compositingmode) } #[inline] pub unsafe fn GdipSetCompositingQuality(graphics: *mut GpGraphics, compositingquality: CompositingQuality) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCompositingQuality(graphics : *mut GpGraphics, compositingquality : CompositingQuality) -> Status); - GdipSetCompositingQuality(core::mem::transmute(graphics), core::mem::transmute(compositingquality)) + GdipSetCompositingQuality(core::mem::transmute(graphics), compositingquality) } #[inline] pub unsafe fn GdipSetCustomLineCapBaseCap(customcap: *mut GpCustomLineCap, basecap: LineCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCustomLineCapBaseCap(customcap : *mut GpCustomLineCap, basecap : LineCap) -> Status); - GdipSetCustomLineCapBaseCap(core::mem::transmute(customcap), core::mem::transmute(basecap)) + GdipSetCustomLineCapBaseCap(core::mem::transmute(customcap), basecap) } #[inline] pub unsafe fn GdipSetCustomLineCapBaseInset(customcap: *mut GpCustomLineCap, inset: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCustomLineCapBaseInset(customcap : *mut GpCustomLineCap, inset : f32) -> Status); - GdipSetCustomLineCapBaseInset(core::mem::transmute(customcap), core::mem::transmute(inset)) + GdipSetCustomLineCapBaseInset(core::mem::transmute(customcap), inset) } #[inline] pub unsafe fn GdipSetCustomLineCapStrokeCaps(customcap: *mut GpCustomLineCap, startcap: LineCap, endcap: LineCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCustomLineCapStrokeCaps(customcap : *mut GpCustomLineCap, startcap : LineCap, endcap : LineCap) -> Status); - GdipSetCustomLineCapStrokeCaps(core::mem::transmute(customcap), core::mem::transmute(startcap), core::mem::transmute(endcap)) + GdipSetCustomLineCapStrokeCaps(core::mem::transmute(customcap), startcap, endcap) } #[inline] pub unsafe fn GdipSetCustomLineCapStrokeJoin(customcap: *mut GpCustomLineCap, linejoin: LineJoin) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCustomLineCapStrokeJoin(customcap : *mut GpCustomLineCap, linejoin : LineJoin) -> Status); - GdipSetCustomLineCapStrokeJoin(core::mem::transmute(customcap), core::mem::transmute(linejoin)) + GdipSetCustomLineCapStrokeJoin(core::mem::transmute(customcap), linejoin) } #[inline] pub unsafe fn GdipSetCustomLineCapWidthScale(customcap: *mut GpCustomLineCap, widthscale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetCustomLineCapWidthScale(customcap : *mut GpCustomLineCap, widthscale : f32) -> Status); - GdipSetCustomLineCapWidthScale(core::mem::transmute(customcap), core::mem::transmute(widthscale)) + GdipSetCustomLineCapWidthScale(core::mem::transmute(customcap), widthscale) } #[inline] pub unsafe fn GdipSetEffectParameters(effect: *mut CGpEffect, params: *const core::ffi::c_void, size: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetEffectParameters(effect : *mut CGpEffect, params : *const core::ffi::c_void, size : u32) -> Status); - GdipSetEffectParameters(core::mem::transmute(effect), core::mem::transmute(params), core::mem::transmute(size)) + GdipSetEffectParameters(core::mem::transmute(effect), params, size) } #[inline] pub unsafe fn GdipSetEmpty(region: *mut GpRegion) -> Status { @@ -2772,27 +2772,27 @@ pub unsafe fn GdipSetImageAttributesCachedBackground(imageattr: *mut GpImageAttr #[inline] pub unsafe fn GdipSetImageAttributesColorKeys(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, colorlow: u32, colorhigh: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesColorKeys(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, colorlow : u32, colorhigh : u32) -> Status); - GdipSetImageAttributesColorKeys(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), core::mem::transmute(colorlow), core::mem::transmute(colorhigh)) + GdipSetImageAttributesColorKeys(core::mem::transmute(imageattr), r#type, enableflag.into(), colorlow, colorhigh) } #[inline] pub unsafe fn GdipSetImageAttributesColorMatrix(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, colormatrix: *const ColorMatrix, graymatrix: *const ColorMatrix, flags: ColorMatrixFlags) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesColorMatrix(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, colormatrix : *const ColorMatrix, graymatrix : *const ColorMatrix, flags : ColorMatrixFlags) -> Status); - GdipSetImageAttributesColorMatrix(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), core::mem::transmute(colormatrix), core::mem::transmute(graymatrix), core::mem::transmute(flags)) + GdipSetImageAttributesColorMatrix(core::mem::transmute(imageattr), r#type, enableflag.into(), colormatrix, graymatrix, flags) } #[inline] pub unsafe fn GdipSetImageAttributesGamma(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, gamma: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesGamma(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, gamma : f32) -> Status); - GdipSetImageAttributesGamma(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), core::mem::transmute(gamma)) + GdipSetImageAttributesGamma(core::mem::transmute(imageattr), r#type, enableflag.into(), gamma) } #[inline] pub unsafe fn GdipSetImageAttributesNoOp(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesNoOp(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL) -> Status); - GdipSetImageAttributesNoOp(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into()) + GdipSetImageAttributesNoOp(core::mem::transmute(imageattr), r#type, enableflag.into()) } #[inline] pub unsafe fn GdipSetImageAttributesOutputChannel(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, channelflags: ColorChannelFlags) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannel(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, channelflags : ColorChannelFlags) -> Status); - GdipSetImageAttributesOutputChannel(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), core::mem::transmute(channelflags)) + GdipSetImageAttributesOutputChannel(core::mem::transmute(imageattr), r#type, enableflag.into(), channelflags) } #[inline] pub unsafe fn GdipSetImageAttributesOutputChannelColorProfile(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, colorprofilefilename: P3) -> Status @@ -2800,32 +2800,32 @@ where P3: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannelColorProfile(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, colorprofilefilename : windows_core::PCWSTR) -> Status); - GdipSetImageAttributesOutputChannelColorProfile(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), colorprofilefilename.param().abi()) + GdipSetImageAttributesOutputChannelColorProfile(core::mem::transmute(imageattr), r#type, enableflag.into(), colorprofilefilename.param().abi()) } #[inline] pub unsafe fn GdipSetImageAttributesRemapTable(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, mapsize: u32, map: *const ColorMap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesRemapTable(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, mapsize : u32, map : *const ColorMap) -> Status); - GdipSetImageAttributesRemapTable(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), core::mem::transmute(mapsize), core::mem::transmute(map)) + GdipSetImageAttributesRemapTable(core::mem::transmute(imageattr), r#type, enableflag.into(), mapsize, map) } #[inline] pub unsafe fn GdipSetImageAttributesThreshold(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, threshold: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesThreshold(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, threshold : f32) -> Status); - GdipSetImageAttributesThreshold(core::mem::transmute(imageattr), core::mem::transmute(r#type), enableflag.into(), core::mem::transmute(threshold)) + GdipSetImageAttributesThreshold(core::mem::transmute(imageattr), r#type, enableflag.into(), threshold) } #[inline] pub unsafe fn GdipSetImageAttributesToIdentity(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesToIdentity(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType) -> Status); - GdipSetImageAttributesToIdentity(core::mem::transmute(imageattr), core::mem::transmute(r#type)) + GdipSetImageAttributesToIdentity(core::mem::transmute(imageattr), r#type) } #[inline] pub unsafe fn GdipSetImageAttributesWrapMode(imageattr: *mut GpImageAttributes, wrap: WrapMode, argb: u32, clamp: bool) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesWrapMode(imageattr : *mut GpImageAttributes, wrap : WrapMode, argb : u32, clamp : super::super::Foundation:: BOOL) -> Status); - GdipSetImageAttributesWrapMode(core::mem::transmute(imageattr), core::mem::transmute(wrap), core::mem::transmute(argb), clamp.into()) + GdipSetImageAttributesWrapMode(core::mem::transmute(imageattr), wrap, argb, clamp.into()) } #[inline] pub unsafe fn GdipSetImagePalette(image: *mut GpImage, palette: *const ColorPalette) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImagePalette(image : *mut GpImage, palette : *const ColorPalette) -> Status); - GdipSetImagePalette(core::mem::transmute(image), core::mem::transmute(palette)) + GdipSetImagePalette(core::mem::transmute(image), palette) } #[inline] pub unsafe fn GdipSetInfinite(region: *mut GpRegion) -> Status { @@ -2835,17 +2835,17 @@ pub unsafe fn GdipSetInfinite(region: *mut GpRegion) -> Status { #[inline] pub unsafe fn GdipSetInterpolationMode(graphics: *mut GpGraphics, interpolationmode: InterpolationMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetInterpolationMode(graphics : *mut GpGraphics, interpolationmode : InterpolationMode) -> Status); - GdipSetInterpolationMode(core::mem::transmute(graphics), core::mem::transmute(interpolationmode)) + GdipSetInterpolationMode(core::mem::transmute(graphics), interpolationmode) } #[inline] pub unsafe fn GdipSetLineBlend(brush: *mut GpLineGradient, blend: *const f32, positions: *const f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineBlend(brush : *mut GpLineGradient, blend : *const f32, positions : *const f32, count : i32) -> Status); - GdipSetLineBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipSetLineBlend(core::mem::transmute(brush), blend, positions, count) } #[inline] pub unsafe fn GdipSetLineColors(brush: *mut GpLineGradient, color1: u32, color2: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineColors(brush : *mut GpLineGradient, color1 : u32, color2 : u32) -> Status); - GdipSetLineColors(core::mem::transmute(brush), core::mem::transmute(color1), core::mem::transmute(color2)) + GdipSetLineColors(core::mem::transmute(brush), color1, color2) } #[inline] pub unsafe fn GdipSetLineGammaCorrection(brush: *mut GpLineGradient, usegammacorrection: bool) -> Status { @@ -2855,77 +2855,77 @@ pub unsafe fn GdipSetLineGammaCorrection(brush: *mut GpLineGradient, usegammacor #[inline] pub unsafe fn GdipSetLineLinearBlend(brush: *mut GpLineGradient, focus: f32, scale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineLinearBlend(brush : *mut GpLineGradient, focus : f32, scale : f32) -> Status); - GdipSetLineLinearBlend(core::mem::transmute(brush), core::mem::transmute(focus), core::mem::transmute(scale)) + GdipSetLineLinearBlend(core::mem::transmute(brush), focus, scale) } #[inline] pub unsafe fn GdipSetLinePresetBlend(brush: *mut GpLineGradient, blend: *const u32, positions: *const f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLinePresetBlend(brush : *mut GpLineGradient, blend : *const u32, positions : *const f32, count : i32) -> Status); - GdipSetLinePresetBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipSetLinePresetBlend(core::mem::transmute(brush), blend, positions, count) } #[inline] pub unsafe fn GdipSetLineSigmaBlend(brush: *mut GpLineGradient, focus: f32, scale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineSigmaBlend(brush : *mut GpLineGradient, focus : f32, scale : f32) -> Status); - GdipSetLineSigmaBlend(core::mem::transmute(brush), core::mem::transmute(focus), core::mem::transmute(scale)) + GdipSetLineSigmaBlend(core::mem::transmute(brush), focus, scale) } #[inline] pub unsafe fn GdipSetLineTransform(brush: *mut GpLineGradient, matrix: *const Matrix) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineTransform(brush : *mut GpLineGradient, matrix : *const Matrix) -> Status); - GdipSetLineTransform(core::mem::transmute(brush), core::mem::transmute(matrix)) + GdipSetLineTransform(core::mem::transmute(brush), matrix) } #[inline] pub unsafe fn GdipSetLineWrapMode(brush: *mut GpLineGradient, wrapmode: WrapMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineWrapMode(brush : *mut GpLineGradient, wrapmode : WrapMode) -> Status); - GdipSetLineWrapMode(core::mem::transmute(brush), core::mem::transmute(wrapmode)) + GdipSetLineWrapMode(core::mem::transmute(brush), wrapmode) } #[inline] pub unsafe fn GdipSetMatrixElements(matrix: *mut Matrix, m11: f32, m12: f32, m21: f32, m22: f32, dx: f32, dy: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetMatrixElements(matrix : *mut Matrix, m11 : f32, m12 : f32, m21 : f32, m22 : f32, dx : f32, dy : f32) -> Status); - GdipSetMatrixElements(core::mem::transmute(matrix), core::mem::transmute(m11), core::mem::transmute(m12), core::mem::transmute(m21), core::mem::transmute(m22), core::mem::transmute(dx), core::mem::transmute(dy)) + GdipSetMatrixElements(core::mem::transmute(matrix), m11, m12, m21, m22, dx, dy) } #[inline] pub unsafe fn GdipSetMetafileDownLevelRasterizationLimit(metafile: *mut GpMetafile, metafilerasterizationlimitdpi: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetMetafileDownLevelRasterizationLimit(metafile : *mut GpMetafile, metafilerasterizationlimitdpi : u32) -> Status); - GdipSetMetafileDownLevelRasterizationLimit(core::mem::transmute(metafile), core::mem::transmute(metafilerasterizationlimitdpi)) + GdipSetMetafileDownLevelRasterizationLimit(core::mem::transmute(metafile), metafilerasterizationlimitdpi) } #[inline] pub unsafe fn GdipSetPageScale(graphics: *mut GpGraphics, scale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPageScale(graphics : *mut GpGraphics, scale : f32) -> Status); - GdipSetPageScale(core::mem::transmute(graphics), core::mem::transmute(scale)) + GdipSetPageScale(core::mem::transmute(graphics), scale) } #[inline] pub unsafe fn GdipSetPageUnit(graphics: *mut GpGraphics, unit: Unit) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPageUnit(graphics : *mut GpGraphics, unit : Unit) -> Status); - GdipSetPageUnit(core::mem::transmute(graphics), core::mem::transmute(unit)) + GdipSetPageUnit(core::mem::transmute(graphics), unit) } #[inline] pub unsafe fn GdipSetPathFillMode(path: *mut GpPath, fillmode: FillMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathFillMode(path : *mut GpPath, fillmode : FillMode) -> Status); - GdipSetPathFillMode(core::mem::transmute(path), core::mem::transmute(fillmode)) + GdipSetPathFillMode(core::mem::transmute(path), fillmode) } #[inline] pub unsafe fn GdipSetPathGradientBlend(brush: *mut GpPathGradient, blend: *const f32, positions: *const f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientBlend(brush : *mut GpPathGradient, blend : *const f32, positions : *const f32, count : i32) -> Status); - GdipSetPathGradientBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipSetPathGradientBlend(core::mem::transmute(brush), blend, positions, count) } #[inline] pub unsafe fn GdipSetPathGradientCenterColor(brush: *mut GpPathGradient, colors: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientCenterColor(brush : *mut GpPathGradient, colors : u32) -> Status); - GdipSetPathGradientCenterColor(core::mem::transmute(brush), core::mem::transmute(colors)) + GdipSetPathGradientCenterColor(core::mem::transmute(brush), colors) } #[inline] pub unsafe fn GdipSetPathGradientCenterPoint(brush: *mut GpPathGradient, points: *const PointF) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientCenterPoint(brush : *mut GpPathGradient, points : *const PointF) -> Status); - GdipSetPathGradientCenterPoint(core::mem::transmute(brush), core::mem::transmute(points)) + GdipSetPathGradientCenterPoint(core::mem::transmute(brush), points) } #[inline] pub unsafe fn GdipSetPathGradientCenterPointI(brush: *mut GpPathGradient, points: *const Point) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientCenterPointI(brush : *mut GpPathGradient, points : *const Point) -> Status); - GdipSetPathGradientCenterPointI(core::mem::transmute(brush), core::mem::transmute(points)) + GdipSetPathGradientCenterPointI(core::mem::transmute(brush), points) } #[inline] pub unsafe fn GdipSetPathGradientFocusScales(brush: *mut GpPathGradient, xscale: f32, yscale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientFocusScales(brush : *mut GpPathGradient, xscale : f32, yscale : f32) -> Status); - GdipSetPathGradientFocusScales(core::mem::transmute(brush), core::mem::transmute(xscale), core::mem::transmute(yscale)) + GdipSetPathGradientFocusScales(core::mem::transmute(brush), xscale, yscale) } #[inline] pub unsafe fn GdipSetPathGradientGammaCorrection(brush: *mut GpPathGradient, usegammacorrection: bool) -> Status { @@ -2935,27 +2935,27 @@ pub unsafe fn GdipSetPathGradientGammaCorrection(brush: *mut GpPathGradient, use #[inline] pub unsafe fn GdipSetPathGradientLinearBlend(brush: *mut GpPathGradient, focus: f32, scale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientLinearBlend(brush : *mut GpPathGradient, focus : f32, scale : f32) -> Status); - GdipSetPathGradientLinearBlend(core::mem::transmute(brush), core::mem::transmute(focus), core::mem::transmute(scale)) + GdipSetPathGradientLinearBlend(core::mem::transmute(brush), focus, scale) } #[inline] pub unsafe fn GdipSetPathGradientPath(brush: *mut GpPathGradient, path: *const GpPath) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientPath(brush : *mut GpPathGradient, path : *const GpPath) -> Status); - GdipSetPathGradientPath(core::mem::transmute(brush), core::mem::transmute(path)) + GdipSetPathGradientPath(core::mem::transmute(brush), path) } #[inline] pub unsafe fn GdipSetPathGradientPresetBlend(brush: *mut GpPathGradient, blend: *const u32, positions: *const f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientPresetBlend(brush : *mut GpPathGradient, blend : *const u32, positions : *const f32, count : i32) -> Status); - GdipSetPathGradientPresetBlend(core::mem::transmute(brush), core::mem::transmute(blend), core::mem::transmute(positions), core::mem::transmute(count)) + GdipSetPathGradientPresetBlend(core::mem::transmute(brush), blend, positions, count) } #[inline] pub unsafe fn GdipSetPathGradientSigmaBlend(brush: *mut GpPathGradient, focus: f32, scale: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientSigmaBlend(brush : *mut GpPathGradient, focus : f32, scale : f32) -> Status); - GdipSetPathGradientSigmaBlend(core::mem::transmute(brush), core::mem::transmute(focus), core::mem::transmute(scale)) + GdipSetPathGradientSigmaBlend(core::mem::transmute(brush), focus, scale) } #[inline] pub unsafe fn GdipSetPathGradientSurroundColorsWithCount(brush: *mut GpPathGradient, color: *const u32, count: *mut i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientSurroundColorsWithCount(brush : *mut GpPathGradient, color : *const u32, count : *mut i32) -> Status); - GdipSetPathGradientSurroundColorsWithCount(core::mem::transmute(brush), core::mem::transmute(color), core::mem::transmute(count)) + GdipSetPathGradientSurroundColorsWithCount(core::mem::transmute(brush), color, core::mem::transmute(count)) } #[inline] pub unsafe fn GdipSetPathGradientTransform(brush: *mut GpPathGradient, matrix: *mut Matrix) -> Status { @@ -2965,7 +2965,7 @@ pub unsafe fn GdipSetPathGradientTransform(brush: *mut GpPathGradient, matrix: * #[inline] pub unsafe fn GdipSetPathGradientWrapMode(brush: *mut GpPathGradient, wrapmode: WrapMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientWrapMode(brush : *mut GpPathGradient, wrapmode : WrapMode) -> Status); - GdipSetPathGradientWrapMode(core::mem::transmute(brush), core::mem::transmute(wrapmode)) + GdipSetPathGradientWrapMode(core::mem::transmute(brush), wrapmode) } #[inline] pub unsafe fn GdipSetPathMarker(path: *mut GpPath) -> Status { @@ -2980,12 +2980,12 @@ pub unsafe fn GdipSetPenBrushFill(pen: *mut GpPen, brush: *mut GpBrush) -> Statu #[inline] pub unsafe fn GdipSetPenColor(pen: *mut GpPen, argb: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenColor(pen : *mut GpPen, argb : u32) -> Status); - GdipSetPenColor(core::mem::transmute(pen), core::mem::transmute(argb)) + GdipSetPenColor(core::mem::transmute(pen), argb) } #[inline] pub unsafe fn GdipSetPenCompoundArray(pen: *mut GpPen, dash: *const f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenCompoundArray(pen : *mut GpPen, dash : *const f32, count : i32) -> Status); - GdipSetPenCompoundArray(core::mem::transmute(pen), core::mem::transmute(dash), core::mem::transmute(count)) + GdipSetPenCompoundArray(core::mem::transmute(pen), dash, count) } #[inline] pub unsafe fn GdipSetPenCustomEndCap(pen: *mut GpPen, customcap: *mut GpCustomLineCap) -> Status { @@ -3000,52 +3000,52 @@ pub unsafe fn GdipSetPenCustomStartCap(pen: *mut GpPen, customcap: *mut GpCustom #[inline] pub unsafe fn GdipSetPenDashArray(pen: *mut GpPen, dash: *const f32, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenDashArray(pen : *mut GpPen, dash : *const f32, count : i32) -> Status); - GdipSetPenDashArray(core::mem::transmute(pen), core::mem::transmute(dash), core::mem::transmute(count)) + GdipSetPenDashArray(core::mem::transmute(pen), dash, count) } #[inline] pub unsafe fn GdipSetPenDashCap197819(pen: *mut GpPen, dashcap: DashCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenDashCap197819(pen : *mut GpPen, dashcap : DashCap) -> Status); - GdipSetPenDashCap197819(core::mem::transmute(pen), core::mem::transmute(dashcap)) + GdipSetPenDashCap197819(core::mem::transmute(pen), dashcap) } #[inline] pub unsafe fn GdipSetPenDashOffset(pen: *mut GpPen, offset: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenDashOffset(pen : *mut GpPen, offset : f32) -> Status); - GdipSetPenDashOffset(core::mem::transmute(pen), core::mem::transmute(offset)) + GdipSetPenDashOffset(core::mem::transmute(pen), offset) } #[inline] pub unsafe fn GdipSetPenDashStyle(pen: *mut GpPen, dashstyle: DashStyle) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenDashStyle(pen : *mut GpPen, dashstyle : DashStyle) -> Status); - GdipSetPenDashStyle(core::mem::transmute(pen), core::mem::transmute(dashstyle)) + GdipSetPenDashStyle(core::mem::transmute(pen), dashstyle) } #[inline] pub unsafe fn GdipSetPenEndCap(pen: *mut GpPen, endcap: LineCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenEndCap(pen : *mut GpPen, endcap : LineCap) -> Status); - GdipSetPenEndCap(core::mem::transmute(pen), core::mem::transmute(endcap)) + GdipSetPenEndCap(core::mem::transmute(pen), endcap) } #[inline] pub unsafe fn GdipSetPenLineCap197819(pen: *mut GpPen, startcap: LineCap, endcap: LineCap, dashcap: DashCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenLineCap197819(pen : *mut GpPen, startcap : LineCap, endcap : LineCap, dashcap : DashCap) -> Status); - GdipSetPenLineCap197819(core::mem::transmute(pen), core::mem::transmute(startcap), core::mem::transmute(endcap), core::mem::transmute(dashcap)) + GdipSetPenLineCap197819(core::mem::transmute(pen), startcap, endcap, dashcap) } #[inline] pub unsafe fn GdipSetPenLineJoin(pen: *mut GpPen, linejoin: LineJoin) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenLineJoin(pen : *mut GpPen, linejoin : LineJoin) -> Status); - GdipSetPenLineJoin(core::mem::transmute(pen), core::mem::transmute(linejoin)) + GdipSetPenLineJoin(core::mem::transmute(pen), linejoin) } #[inline] pub unsafe fn GdipSetPenMiterLimit(pen: *mut GpPen, miterlimit: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenMiterLimit(pen : *mut GpPen, miterlimit : f32) -> Status); - GdipSetPenMiterLimit(core::mem::transmute(pen), core::mem::transmute(miterlimit)) + GdipSetPenMiterLimit(core::mem::transmute(pen), miterlimit) } #[inline] pub unsafe fn GdipSetPenMode(pen: *mut GpPen, penmode: PenAlignment) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenMode(pen : *mut GpPen, penmode : PenAlignment) -> Status); - GdipSetPenMode(core::mem::transmute(pen), core::mem::transmute(penmode)) + GdipSetPenMode(core::mem::transmute(pen), penmode) } #[inline] pub unsafe fn GdipSetPenStartCap(pen: *mut GpPen, startcap: LineCap) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenStartCap(pen : *mut GpPen, startcap : LineCap) -> Status); - GdipSetPenStartCap(core::mem::transmute(pen), core::mem::transmute(startcap)) + GdipSetPenStartCap(core::mem::transmute(pen), startcap) } #[inline] pub unsafe fn GdipSetPenTransform(pen: *mut GpPen, matrix: *mut Matrix) -> Status { @@ -3055,97 +3055,97 @@ pub unsafe fn GdipSetPenTransform(pen: *mut GpPen, matrix: *mut Matrix) -> Statu #[inline] pub unsafe fn GdipSetPenUnit(pen: *mut GpPen, unit: Unit) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenUnit(pen : *mut GpPen, unit : Unit) -> Status); - GdipSetPenUnit(core::mem::transmute(pen), core::mem::transmute(unit)) + GdipSetPenUnit(core::mem::transmute(pen), unit) } #[inline] pub unsafe fn GdipSetPenWidth(pen: *mut GpPen, width: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPenWidth(pen : *mut GpPen, width : f32) -> Status); - GdipSetPenWidth(core::mem::transmute(pen), core::mem::transmute(width)) + GdipSetPenWidth(core::mem::transmute(pen), width) } #[inline] pub unsafe fn GdipSetPixelOffsetMode(graphics: *mut GpGraphics, pixeloffsetmode: PixelOffsetMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPixelOffsetMode(graphics : *mut GpGraphics, pixeloffsetmode : PixelOffsetMode) -> Status); - GdipSetPixelOffsetMode(core::mem::transmute(graphics), core::mem::transmute(pixeloffsetmode)) + GdipSetPixelOffsetMode(core::mem::transmute(graphics), pixeloffsetmode) } #[inline] pub unsafe fn GdipSetPropertyItem(image: *mut GpImage, item: *const PropertyItem) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPropertyItem(image : *mut GpImage, item : *const PropertyItem) -> Status); - GdipSetPropertyItem(core::mem::transmute(image), core::mem::transmute(item)) + GdipSetPropertyItem(core::mem::transmute(image), item) } #[inline] pub unsafe fn GdipSetRenderingOrigin(graphics: *mut GpGraphics, x: i32, y: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetRenderingOrigin(graphics : *mut GpGraphics, x : i32, y : i32) -> Status); - GdipSetRenderingOrigin(core::mem::transmute(graphics), core::mem::transmute(x), core::mem::transmute(y)) + GdipSetRenderingOrigin(core::mem::transmute(graphics), x, y) } #[inline] pub unsafe fn GdipSetSmoothingMode(graphics: *mut GpGraphics, smoothingmode: SmoothingMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetSmoothingMode(graphics : *mut GpGraphics, smoothingmode : SmoothingMode) -> Status); - GdipSetSmoothingMode(core::mem::transmute(graphics), core::mem::transmute(smoothingmode)) + GdipSetSmoothingMode(core::mem::transmute(graphics), smoothingmode) } #[inline] pub unsafe fn GdipSetSolidFillColor(brush: *mut GpSolidFill, color: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetSolidFillColor(brush : *mut GpSolidFill, color : u32) -> Status); - GdipSetSolidFillColor(core::mem::transmute(brush), core::mem::transmute(color)) + GdipSetSolidFillColor(core::mem::transmute(brush), color) } #[inline] pub unsafe fn GdipSetStringFormatAlign(format: *mut GpStringFormat, align: StringAlignment) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatAlign(format : *mut GpStringFormat, align : StringAlignment) -> Status); - GdipSetStringFormatAlign(core::mem::transmute(format), core::mem::transmute(align)) + GdipSetStringFormatAlign(core::mem::transmute(format), align) } #[inline] pub unsafe fn GdipSetStringFormatDigitSubstitution(format: *mut GpStringFormat, language: u16, substitute: StringDigitSubstitute) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatDigitSubstitution(format : *mut GpStringFormat, language : u16, substitute : StringDigitSubstitute) -> Status); - GdipSetStringFormatDigitSubstitution(core::mem::transmute(format), core::mem::transmute(language), core::mem::transmute(substitute)) + GdipSetStringFormatDigitSubstitution(core::mem::transmute(format), language, substitute) } #[inline] pub unsafe fn GdipSetStringFormatFlags(format: *mut GpStringFormat, flags: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatFlags(format : *mut GpStringFormat, flags : i32) -> Status); - GdipSetStringFormatFlags(core::mem::transmute(format), core::mem::transmute(flags)) + GdipSetStringFormatFlags(core::mem::transmute(format), flags) } #[inline] pub unsafe fn GdipSetStringFormatHotkeyPrefix(format: *mut GpStringFormat, hotkeyprefix: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatHotkeyPrefix(format : *mut GpStringFormat, hotkeyprefix : i32) -> Status); - GdipSetStringFormatHotkeyPrefix(core::mem::transmute(format), core::mem::transmute(hotkeyprefix)) + GdipSetStringFormatHotkeyPrefix(core::mem::transmute(format), hotkeyprefix) } #[inline] pub unsafe fn GdipSetStringFormatLineAlign(format: *mut GpStringFormat, align: StringAlignment) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatLineAlign(format : *mut GpStringFormat, align : StringAlignment) -> Status); - GdipSetStringFormatLineAlign(core::mem::transmute(format), core::mem::transmute(align)) + GdipSetStringFormatLineAlign(core::mem::transmute(format), align) } #[inline] pub unsafe fn GdipSetStringFormatMeasurableCharacterRanges(format: *mut GpStringFormat, rangecount: i32, ranges: *const CharacterRange) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatMeasurableCharacterRanges(format : *mut GpStringFormat, rangecount : i32, ranges : *const CharacterRange) -> Status); - GdipSetStringFormatMeasurableCharacterRanges(core::mem::transmute(format), core::mem::transmute(rangecount), core::mem::transmute(ranges)) + GdipSetStringFormatMeasurableCharacterRanges(core::mem::transmute(format), rangecount, ranges) } #[inline] pub unsafe fn GdipSetStringFormatTabStops(format: *mut GpStringFormat, firsttaboffset: f32, count: i32, tabstops: *const f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatTabStops(format : *mut GpStringFormat, firsttaboffset : f32, count : i32, tabstops : *const f32) -> Status); - GdipSetStringFormatTabStops(core::mem::transmute(format), core::mem::transmute(firsttaboffset), core::mem::transmute(count), core::mem::transmute(tabstops)) + GdipSetStringFormatTabStops(core::mem::transmute(format), firsttaboffset, count, tabstops) } #[inline] pub unsafe fn GdipSetStringFormatTrimming(format: *mut GpStringFormat, trimming: StringTrimming) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetStringFormatTrimming(format : *mut GpStringFormat, trimming : StringTrimming) -> Status); - GdipSetStringFormatTrimming(core::mem::transmute(format), core::mem::transmute(trimming)) + GdipSetStringFormatTrimming(core::mem::transmute(format), trimming) } #[inline] pub unsafe fn GdipSetTextContrast(graphics: *mut GpGraphics, contrast: u32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetTextContrast(graphics : *mut GpGraphics, contrast : u32) -> Status); - GdipSetTextContrast(core::mem::transmute(graphics), core::mem::transmute(contrast)) + GdipSetTextContrast(core::mem::transmute(graphics), contrast) } #[inline] pub unsafe fn GdipSetTextRenderingHint(graphics: *mut GpGraphics, mode: TextRenderingHint) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetTextRenderingHint(graphics : *mut GpGraphics, mode : TextRenderingHint) -> Status); - GdipSetTextRenderingHint(core::mem::transmute(graphics), core::mem::transmute(mode)) + GdipSetTextRenderingHint(core::mem::transmute(graphics), mode) } #[inline] pub unsafe fn GdipSetTextureTransform(brush: *mut GpTexture, matrix: *const Matrix) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetTextureTransform(brush : *mut GpTexture, matrix : *const Matrix) -> Status); - GdipSetTextureTransform(core::mem::transmute(brush), core::mem::transmute(matrix)) + GdipSetTextureTransform(core::mem::transmute(brush), matrix) } #[inline] pub unsafe fn GdipSetTextureWrapMode(brush: *mut GpTexture, wrapmode: WrapMode) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipSetTextureWrapMode(brush : *mut GpTexture, wrapmode : WrapMode) -> Status); - GdipSetTextureWrapMode(core::mem::transmute(brush), core::mem::transmute(wrapmode)) + GdipSetTextureWrapMode(core::mem::transmute(brush), wrapmode) } #[inline] pub unsafe fn GdipSetWorldTransform(graphics: *mut GpGraphics, matrix: *mut Matrix) -> Status { @@ -3155,7 +3155,7 @@ pub unsafe fn GdipSetWorldTransform(graphics: *mut GpGraphics, matrix: *mut Matr #[inline] pub unsafe fn GdipShearMatrix(matrix: *mut Matrix, shearx: f32, sheary: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipShearMatrix(matrix : *mut Matrix, shearx : f32, sheary : f32, order : MatrixOrder) -> Status); - GdipShearMatrix(core::mem::transmute(matrix), core::mem::transmute(shearx), core::mem::transmute(sheary), core::mem::transmute(order)) + GdipShearMatrix(core::mem::transmute(matrix), shearx, sheary, order) } #[inline] pub unsafe fn GdipStartPathFigure(path: *mut GpPath) -> Status { @@ -3175,17 +3175,17 @@ pub unsafe fn GdipStringFormatGetGenericTypographic(format: *mut *mut GpStringFo #[inline] pub unsafe fn GdipTestControl(control: GpTestControlEnum, param1: *mut core::ffi::c_void) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTestControl(control : GpTestControlEnum, param1 : *mut core::ffi::c_void) -> Status); - GdipTestControl(core::mem::transmute(control), core::mem::transmute(param1)) + GdipTestControl(control, core::mem::transmute(param1)) } #[inline] pub unsafe fn GdipTransformMatrixPoints(matrix: *mut Matrix, pts: *mut PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTransformMatrixPoints(matrix : *mut Matrix, pts : *mut PointF, count : i32) -> Status); - GdipTransformMatrixPoints(core::mem::transmute(matrix), core::mem::transmute(pts), core::mem::transmute(count)) + GdipTransformMatrixPoints(core::mem::transmute(matrix), core::mem::transmute(pts), count) } #[inline] pub unsafe fn GdipTransformMatrixPointsI(matrix: *mut Matrix, pts: *mut Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTransformMatrixPointsI(matrix : *mut Matrix, pts : *mut Point, count : i32) -> Status); - GdipTransformMatrixPointsI(core::mem::transmute(matrix), core::mem::transmute(pts), core::mem::transmute(count)) + GdipTransformMatrixPointsI(core::mem::transmute(matrix), core::mem::transmute(pts), count) } #[inline] pub unsafe fn GdipTransformPath(path: *mut GpPath, matrix: *mut Matrix) -> Status { @@ -3195,12 +3195,12 @@ pub unsafe fn GdipTransformPath(path: *mut GpPath, matrix: *mut Matrix) -> Statu #[inline] pub unsafe fn GdipTransformPoints(graphics: *mut GpGraphics, destspace: CoordinateSpace, srcspace: CoordinateSpace, points: *mut PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTransformPoints(graphics : *mut GpGraphics, destspace : CoordinateSpace, srcspace : CoordinateSpace, points : *mut PointF, count : i32) -> Status); - GdipTransformPoints(core::mem::transmute(graphics), core::mem::transmute(destspace), core::mem::transmute(srcspace), core::mem::transmute(points), core::mem::transmute(count)) + GdipTransformPoints(core::mem::transmute(graphics), destspace, srcspace, core::mem::transmute(points), count) } #[inline] pub unsafe fn GdipTransformPointsI(graphics: *mut GpGraphics, destspace: CoordinateSpace, srcspace: CoordinateSpace, points: *mut Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTransformPointsI(graphics : *mut GpGraphics, destspace : CoordinateSpace, srcspace : CoordinateSpace, points : *mut Point, count : i32) -> Status); - GdipTransformPointsI(core::mem::transmute(graphics), core::mem::transmute(destspace), core::mem::transmute(srcspace), core::mem::transmute(points), core::mem::transmute(count)) + GdipTransformPointsI(core::mem::transmute(graphics), destspace, srcspace, core::mem::transmute(points), count) } #[inline] pub unsafe fn GdipTransformRegion(region: *mut GpRegion, matrix: *mut Matrix) -> Status { @@ -3210,77 +3210,77 @@ pub unsafe fn GdipTransformRegion(region: *mut GpRegion, matrix: *mut Matrix) -> #[inline] pub unsafe fn GdipTranslateClip(graphics: *mut GpGraphics, dx: f32, dy: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateClip(graphics : *mut GpGraphics, dx : f32, dy : f32) -> Status); - GdipTranslateClip(core::mem::transmute(graphics), core::mem::transmute(dx), core::mem::transmute(dy)) + GdipTranslateClip(core::mem::transmute(graphics), dx, dy) } #[inline] pub unsafe fn GdipTranslateClipI(graphics: *mut GpGraphics, dx: i32, dy: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateClipI(graphics : *mut GpGraphics, dx : i32, dy : i32) -> Status); - GdipTranslateClipI(core::mem::transmute(graphics), core::mem::transmute(dx), core::mem::transmute(dy)) + GdipTranslateClipI(core::mem::transmute(graphics), dx, dy) } #[inline] pub unsafe fn GdipTranslateLineTransform(brush: *mut GpLineGradient, dx: f32, dy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateLineTransform(brush : *mut GpLineGradient, dx : f32, dy : f32, order : MatrixOrder) -> Status); - GdipTranslateLineTransform(core::mem::transmute(brush), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(order)) + GdipTranslateLineTransform(core::mem::transmute(brush), dx, dy, order) } #[inline] pub unsafe fn GdipTranslateMatrix(matrix: *mut Matrix, offsetx: f32, offsety: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateMatrix(matrix : *mut Matrix, offsetx : f32, offsety : f32, order : MatrixOrder) -> Status); - GdipTranslateMatrix(core::mem::transmute(matrix), core::mem::transmute(offsetx), core::mem::transmute(offsety), core::mem::transmute(order)) + GdipTranslateMatrix(core::mem::transmute(matrix), offsetx, offsety, order) } #[inline] pub unsafe fn GdipTranslatePathGradientTransform(brush: *mut GpPathGradient, dx: f32, dy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslatePathGradientTransform(brush : *mut GpPathGradient, dx : f32, dy : f32, order : MatrixOrder) -> Status); - GdipTranslatePathGradientTransform(core::mem::transmute(brush), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(order)) + GdipTranslatePathGradientTransform(core::mem::transmute(brush), dx, dy, order) } #[inline] pub unsafe fn GdipTranslatePenTransform(pen: *mut GpPen, dx: f32, dy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslatePenTransform(pen : *mut GpPen, dx : f32, dy : f32, order : MatrixOrder) -> Status); - GdipTranslatePenTransform(core::mem::transmute(pen), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(order)) + GdipTranslatePenTransform(core::mem::transmute(pen), dx, dy, order) } #[inline] pub unsafe fn GdipTranslateRegion(region: *mut GpRegion, dx: f32, dy: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateRegion(region : *mut GpRegion, dx : f32, dy : f32) -> Status); - GdipTranslateRegion(core::mem::transmute(region), core::mem::transmute(dx), core::mem::transmute(dy)) + GdipTranslateRegion(core::mem::transmute(region), dx, dy) } #[inline] pub unsafe fn GdipTranslateRegionI(region: *mut GpRegion, dx: i32, dy: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateRegionI(region : *mut GpRegion, dx : i32, dy : i32) -> Status); - GdipTranslateRegionI(core::mem::transmute(region), core::mem::transmute(dx), core::mem::transmute(dy)) + GdipTranslateRegionI(core::mem::transmute(region), dx, dy) } #[inline] pub unsafe fn GdipTranslateTextureTransform(brush: *mut GpTexture, dx: f32, dy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateTextureTransform(brush : *mut GpTexture, dx : f32, dy : f32, order : MatrixOrder) -> Status); - GdipTranslateTextureTransform(core::mem::transmute(brush), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(order)) + GdipTranslateTextureTransform(core::mem::transmute(brush), dx, dy, order) } #[inline] pub unsafe fn GdipTranslateWorldTransform(graphics: *mut GpGraphics, dx: f32, dy: f32, order: MatrixOrder) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipTranslateWorldTransform(graphics : *mut GpGraphics, dx : f32, dy : f32, order : MatrixOrder) -> Status); - GdipTranslateWorldTransform(core::mem::transmute(graphics), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(order)) + GdipTranslateWorldTransform(core::mem::transmute(graphics), dx, dy, order) } #[inline] pub unsafe fn GdipVectorTransformMatrixPoints(matrix: *mut Matrix, pts: *mut PointF, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipVectorTransformMatrixPoints(matrix : *mut Matrix, pts : *mut PointF, count : i32) -> Status); - GdipVectorTransformMatrixPoints(core::mem::transmute(matrix), core::mem::transmute(pts), core::mem::transmute(count)) + GdipVectorTransformMatrixPoints(core::mem::transmute(matrix), core::mem::transmute(pts), count) } #[inline] pub unsafe fn GdipVectorTransformMatrixPointsI(matrix: *mut Matrix, pts: *mut Point, count: i32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipVectorTransformMatrixPointsI(matrix : *mut Matrix, pts : *mut Point, count : i32) -> Status); - GdipVectorTransformMatrixPointsI(core::mem::transmute(matrix), core::mem::transmute(pts), core::mem::transmute(count)) + GdipVectorTransformMatrixPointsI(core::mem::transmute(matrix), core::mem::transmute(pts), count) } #[inline] pub unsafe fn GdipWarpPath(path: *mut GpPath, matrix: *mut Matrix, points: *const PointF, count: i32, srcx: f32, srcy: f32, srcwidth: f32, srcheight: f32, warpmode: WarpMode, flatness: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipWarpPath(path : *mut GpPath, matrix : *mut Matrix, points : *const PointF, count : i32, srcx : f32, srcy : f32, srcwidth : f32, srcheight : f32, warpmode : WarpMode, flatness : f32) -> Status); - GdipWarpPath(core::mem::transmute(path), core::mem::transmute(matrix), core::mem::transmute(points), core::mem::transmute(count), core::mem::transmute(srcx), core::mem::transmute(srcy), core::mem::transmute(srcwidth), core::mem::transmute(srcheight), core::mem::transmute(warpmode), core::mem::transmute(flatness)) + GdipWarpPath(core::mem::transmute(path), core::mem::transmute(matrix), points, count, srcx, srcy, srcwidth, srcheight, warpmode, flatness) } #[inline] pub unsafe fn GdipWidenPath(nativepath: *mut GpPath, pen: *mut GpPen, matrix: *mut Matrix, flatness: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipWidenPath(nativepath : *mut GpPath, pen : *mut GpPen, matrix : *mut Matrix, flatness : f32) -> Status); - GdipWidenPath(core::mem::transmute(nativepath), core::mem::transmute(pen), core::mem::transmute(matrix), core::mem::transmute(flatness)) + GdipWidenPath(core::mem::transmute(nativepath), core::mem::transmute(pen), core::mem::transmute(matrix), flatness) } #[inline] pub unsafe fn GdipWindingModeOutline(path: *mut GpPath, matrix: *mut Matrix, flatness: f32) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdipWindingModeOutline(path : *mut GpPath, matrix : *mut Matrix, flatness : f32) -> Status); - GdipWindingModeOutline(core::mem::transmute(path), core::mem::transmute(matrix), core::mem::transmute(flatness)) + GdipWindingModeOutline(core::mem::transmute(path), core::mem::transmute(matrix), flatness) } #[inline] pub unsafe fn GdiplusNotificationHook(token: *mut usize) -> Status { @@ -3290,17 +3290,17 @@ pub unsafe fn GdiplusNotificationHook(token: *mut usize) -> Status { #[inline] pub unsafe fn GdiplusNotificationUnhook(token: usize) { windows_targets::link!("gdiplus.dll" "system" fn GdiplusNotificationUnhook(token : usize)); - GdiplusNotificationUnhook(core::mem::transmute(token)) + GdiplusNotificationUnhook(token) } #[inline] pub unsafe fn GdiplusShutdown(token: usize) { windows_targets::link!("gdiplus.dll" "system" fn GdiplusShutdown(token : usize)); - GdiplusShutdown(core::mem::transmute(token)) + GdiplusShutdown(token) } #[inline] pub unsafe fn GdiplusStartup(token: *mut usize, input: *const GdiplusStartupInput, output: *mut GdiplusStartupOutput) -> Status { windows_targets::link!("gdiplus.dll" "system" fn GdiplusStartup(token : *mut usize, input : *const GdiplusStartupInput, output : *mut GdiplusStartupOutput) -> Status); - GdiplusStartup(core::mem::transmute(token), core::mem::transmute(input), core::mem::transmute(output)) + GdiplusStartup(core::mem::transmute(token), input, core::mem::transmute(output)) } pub const ALPHA_SHIFT: u32 = 24u32; pub const Aborted: Status = Status(9i32); @@ -4550,10 +4550,10 @@ impl IImageBytes { (windows_core::Interface::vtable(self).CountBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(pcb)).ok() } pub unsafe fn LockBytes(&self, cb: u32, uloffset: u32, ppvbytes: *const *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(cb), core::mem::transmute(uloffset), core::mem::transmute(ppvbytes)).ok() + (windows_core::Interface::vtable(self).LockBytes)(windows_core::Interface::as_raw(self), cb, uloffset, ppvbytes).ok() } pub unsafe fn UnlockBytes(&self, pvbytes: *const core::ffi::c_void, cb: u32, uloffset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(pvbytes), core::mem::transmute(cb), core::mem::transmute(uloffset)).ok() + (windows_core::Interface::vtable(self).UnlockBytes)(windows_core::Interface::as_raw(self), pvbytes, cb, uloffset).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/mod.rs index b5ca5d82ab..529425c85b 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/mod.rs @@ -7,7 +7,7 @@ impl IWICImageEncoder { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteFrame)(windows_core::Interface::as_raw(self), pimage.param().abi(), pframeencode.param().abi(), core::mem::transmute(pimageparameters)).ok() + (windows_core::Interface::vtable(self).WriteFrame)(windows_core::Interface::as_raw(self), pimage.param().abi(), pframeencode.param().abi(), pimageparameters).ok() } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn WriteFrameThumbnail(&self, pimage: P0, pframeencode: P1, pimageparameters: *const super::WICImageParameters) -> windows_core::Result<()> @@ -15,7 +15,7 @@ impl IWICImageEncoder { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteFrameThumbnail)(windows_core::Interface::as_raw(self), pimage.param().abi(), pframeencode.param().abi(), core::mem::transmute(pimageparameters)).ok() + (windows_core::Interface::vtable(self).WriteFrameThumbnail)(windows_core::Interface::as_raw(self), pimage.param().abi(), pframeencode.param().abi(), pimageparameters).ok() } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn WriteThumbnail(&self, pimage: P0, pencoder: P1, pimageparameters: *const super::WICImageParameters) -> windows_core::Result<()> @@ -23,7 +23,7 @@ impl IWICImageEncoder { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteThumbnail)(windows_core::Interface::as_raw(self), pimage.param().abi(), pencoder.param().abi(), core::mem::transmute(pimageparameters)).ok() + (windows_core::Interface::vtable(self).WriteThumbnail)(windows_core::Interface::as_raw(self), pimage.param().abi(), pencoder.param().abi(), pimageparameters).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs index 59b01e9984..e00cd72ada 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs @@ -7,19 +7,19 @@ where { windows_targets::link!("windowscodecs.dll" "system" fn WICConvertBitmapSource(dstformat : *const windows_core::GUID, pisrc : * mut core::ffi::c_void, ppidst : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WICConvertBitmapSource(core::mem::transmute(dstformat), pisrc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WICConvertBitmapSource(dstformat, pisrc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WICCreateBitmapFromSection(width: u32, height: u32, pixelformat: *const windows_core::GUID, hsection: super::super::Foundation::HANDLE, stride: u32, offset: u32) -> windows_core::Result { windows_targets::link!("windowscodecs.dll" "system" fn WICCreateBitmapFromSection(width : u32, height : u32, pixelformat : *const windows_core::GUID, hsection : super::super::Foundation:: HANDLE, stride : u32, offset : u32, ppibitmap : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WICCreateBitmapFromSection(core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(pixelformat), core::mem::transmute(hsection), core::mem::transmute(stride), core::mem::transmute(offset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WICCreateBitmapFromSection(width, height, pixelformat, hsection, stride, offset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WICCreateBitmapFromSectionEx(width: u32, height: u32, pixelformat: *const windows_core::GUID, hsection: super::super::Foundation::HANDLE, stride: u32, offset: u32, desiredaccesslevel: WICSectionAccessLevel) -> windows_core::Result { windows_targets::link!("windowscodecs.dll" "system" fn WICCreateBitmapFromSectionEx(width : u32, height : u32, pixelformat : *const windows_core::GUID, hsection : super::super::Foundation:: HANDLE, stride : u32, offset : u32, desiredaccesslevel : WICSectionAccessLevel, ppibitmap : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WICCreateBitmapFromSectionEx(core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(pixelformat), core::mem::transmute(hsection), core::mem::transmute(stride), core::mem::transmute(offset), core::mem::transmute(desiredaccesslevel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WICCreateBitmapFromSectionEx(width, height, pixelformat, hsection, stride, offset, desiredaccesslevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WICGetMetadataContentSize(guidcontainerformat: *const windows_core::GUID, piwriter: P1) -> windows_core::Result @@ -28,12 +28,12 @@ where { windows_targets::link!("windowscodecs.dll" "system" fn WICGetMetadataContentSize(guidcontainerformat : *const windows_core::GUID, piwriter : * mut core::ffi::c_void, pcbsize : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WICGetMetadataContentSize(core::mem::transmute(guidcontainerformat), piwriter.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WICGetMetadataContentSize(guidcontainerformat, piwriter.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WICMapGuidToShortName(guid: *const windows_core::GUID, wzname: Option<&mut [u16]>, pcchactual: *mut u32) -> windows_core::Result<()> { windows_targets::link!("windowscodecs.dll" "system" fn WICMapGuidToShortName(guid : *const windows_core::GUID, cchname : u32, wzname : windows_core::PWSTR, pcchactual : *mut u32) -> windows_core::HRESULT); - WICMapGuidToShortName(core::mem::transmute(guid), wzname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(wzname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcchactual)).ok() + WICMapGuidToShortName(guid, wzname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(wzname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcchactual)).ok() } #[inline] pub unsafe fn WICMapSchemaToName(guidmetadataformat: *const windows_core::GUID, pwzschema: P1, wzname: Option<&mut [u16]>, pcchactual: *mut u32) -> windows_core::Result<()> @@ -41,7 +41,7 @@ where P1: windows_core::Param, { windows_targets::link!("windowscodecs.dll" "system" fn WICMapSchemaToName(guidmetadataformat : *const windows_core::GUID, pwzschema : windows_core::PCWSTR, cchname : u32, wzname : windows_core::PWSTR, pcchactual : *mut u32) -> windows_core::HRESULT); - WICMapSchemaToName(core::mem::transmute(guidmetadataformat), pwzschema.param().abi(), wzname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(wzname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcchactual)).ok() + WICMapSchemaToName(guidmetadataformat, pwzschema.param().abi(), wzname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(wzname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcchactual)).ok() } #[inline] pub unsafe fn WICMapShortNameToGuid(wzname: P0) -> windows_core::Result @@ -60,7 +60,7 @@ where { windows_targets::link!("windowscodecs.dll" "system" fn WICMatchMetadataContent(guidcontainerformat : *const windows_core::GUID, pguidvendor : *const windows_core::GUID, pistream : * mut core::ffi::c_void, pguidmetadataformat : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WICMatchMetadataContent(core::mem::transmute(guidcontainerformat), core::mem::transmute(pguidvendor.unwrap_or(core::mem::zeroed())), pistream.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WICMatchMetadataContent(guidcontainerformat, core::mem::transmute(pguidvendor.unwrap_or(core::mem::zeroed())), pistream.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -70,7 +70,7 @@ where P3: windows_core::Param, { windows_targets::link!("windowscodecs.dll" "system" fn WICSerializeMetadataContent(guidcontainerformat : *const windows_core::GUID, piwriter : * mut core::ffi::c_void, dwpersistoptions : u32, pistream : * mut core::ffi::c_void) -> windows_core::HRESULT); - WICSerializeMetadataContent(core::mem::transmute(guidcontainerformat), piwriter.param().abi(), core::mem::transmute(dwpersistoptions), pistream.param().abi()).ok() + WICSerializeMetadataContent(guidcontainerformat, piwriter.param().abi(), dwpersistoptions, pistream.param().abi()).ok() } pub const CATID_WICBitmapDecoders: windows_core::GUID = windows_core::GUID::from_u128(0x7ed96837_96f0_4812_b211_f13c24117ed3); pub const CATID_WICBitmapEncoders: windows_core::GUID = windows_core::GUID::from_u128(0xac757296_3522_4e11_9862_c17be5a1767e); @@ -349,7 +349,7 @@ windows_core::imp::interface_hierarchy!(IWICBitmap, windows_core::IUnknown, IWIC impl IWICBitmap { pub unsafe fn Lock(&self, prclock: *const WICRect, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(prclock), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), prclock, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPalette(&self, pipalette: P0) -> windows_core::Result<()> where @@ -358,7 +358,7 @@ impl IWICBitmap { (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), pipalette.param().abi()).ok() } pub unsafe fn SetResolution(&self, dpix: f64, dpiy: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(dpix), core::mem::transmute(dpiy)).ok() + (windows_core::Interface::vtable(self).SetResolution)(windows_core::Interface::as_raw(self), dpix, dpiy).ok() } } #[repr(C)] @@ -418,7 +418,7 @@ impl IWICBitmapClipper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), prc).ok() } } #[repr(C)] @@ -638,7 +638,7 @@ windows_core::imp::define_interface!(IWICBitmapCodecProgressNotification, IWICBi windows_core::imp::interface_hierarchy!(IWICBitmapCodecProgressNotification, windows_core::IUnknown); impl IWICBitmapCodecProgressNotification { pub unsafe fn RegisterProgressNotification(&self, pfnprogressnotification: Option, pvdata: Option<*const core::ffi::c_void>, dwprogressflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterProgressNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(pfnprogressnotification.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwprogressflags)).ok() + (windows_core::Interface::vtable(self).RegisterProgressNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(pfnprogressnotification.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), dwprogressflags).ok() } } #[repr(C)] @@ -678,7 +678,7 @@ impl IWICBitmapDecoder { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(cacheoptions)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pistream.param().abi(), cacheoptions).ok() } pub unsafe fn GetContainerFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -715,7 +715,7 @@ impl IWICBitmapDecoder { } pub unsafe fn GetFrame(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFrame)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -879,7 +879,7 @@ impl core::ops::Deref for IWICBitmapDecoderInfo { windows_core::imp::interface_hierarchy!(IWICBitmapDecoderInfo, windows_core::IUnknown, IWICComponentInfo, IWICBitmapCodecInfo); impl IWICBitmapDecoderInfo { pub unsafe fn GetPatterns(&self, cbsizepatterns: u32, ppatterns: Option<*mut WICBitmapPattern>, pcpatterns: Option<*mut u32>, pcbpatternsactual: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPatterns)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsizepatterns), core::mem::transmute(ppatterns.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpatterns.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpatternsactual)).ok() + (windows_core::Interface::vtable(self).GetPatterns)(windows_core::Interface::as_raw(self), cbsizepatterns, core::mem::transmute(ppatterns.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpatterns.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpatternsactual)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MatchesPattern(&self, pistream: P0) -> windows_core::Result @@ -958,7 +958,7 @@ impl IWICBitmapEncoder { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(cacheoption)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pistream.param().abi(), cacheoption).ok() } pub unsafe fn GetContainerFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1169,7 +1169,7 @@ impl IWICBitmapFlipRotator { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), options).ok() } } #[repr(C)] @@ -1275,10 +1275,10 @@ impl IWICBitmapFrameEncode { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), piencoderoptions.param().abi()).ok() } pub unsafe fn SetSize(&self, uiwidth: u32, uiheight: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(uiwidth), core::mem::transmute(uiheight)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), uiwidth, uiheight).ok() } pub unsafe fn SetResolution(&self, dpix: f64, dpiy: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(dpix), core::mem::transmute(dpiy)).ok() + (windows_core::Interface::vtable(self).SetResolution)(windows_core::Interface::as_raw(self), dpix, dpiy).ok() } pub unsafe fn SetPixelFormat(&self, ppixelformat: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPixelFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(ppixelformat)).ok() @@ -1299,13 +1299,13 @@ impl IWICBitmapFrameEncode { (windows_core::Interface::vtable(self).SetThumbnail)(windows_core::Interface::as_raw(self), pithumbnail.param().abi()).ok() } pub unsafe fn WritePixels(&self, linecount: u32, cbstride: u32, pbpixels: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePixels)(windows_core::Interface::as_raw(self), core::mem::transmute(linecount), core::mem::transmute(cbstride), pbpixels.len().try_into().unwrap(), core::mem::transmute(pbpixels.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePixels)(windows_core::Interface::as_raw(self), linecount, cbstride, pbpixels.len().try_into().unwrap(), core::mem::transmute(pbpixels.as_ptr())).ok() } pub unsafe fn WriteSource(&self, pibitmapsource: P0, prc: *const WICRect) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSource)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).WriteSource)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), prc).ok() } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -1509,7 +1509,7 @@ impl IWICBitmapScaler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), core::mem::transmute(uiwidth), core::mem::transmute(uiheight), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), uiwidth, uiheight, mode).ok() } } #[repr(C)] @@ -1553,7 +1553,7 @@ impl IWICBitmapSource { (windows_core::Interface::vtable(self).CopyPalette)(windows_core::Interface::as_raw(self), pipalette.param().abi()).ok() } pub unsafe fn CopyPixels(&self, prc: *const WICRect, cbstride: u32, pbbuffer: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyPixels)(windows_core::Interface::as_raw(self), core::mem::transmute(prc), core::mem::transmute(cbstride), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } } #[repr(C)] @@ -1618,7 +1618,7 @@ windows_core::imp::define_interface!(IWICBitmapSourceTransform, IWICBitmapSource windows_core::imp::interface_hierarchy!(IWICBitmapSourceTransform, windows_core::IUnknown); impl IWICBitmapSourceTransform { pub unsafe fn CopyPixels(&self, prc: *const WICRect, uiwidth: u32, uiheight: u32, pguiddstformat: *const windows_core::GUID, dsttransform: WICBitmapTransformOptions, nstride: u32, pbbuffer: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyPixels)(windows_core::Interface::as_raw(self), core::mem::transmute(prc), core::mem::transmute(uiwidth), core::mem::transmute(uiheight), core::mem::transmute(pguiddstformat), core::mem::transmute(dsttransform), core::mem::transmute(nstride), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).CopyPixels)(windows_core::Interface::as_raw(self), prc, uiwidth, uiheight, pguiddstformat, dsttransform, nstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn GetClosestSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetClosestSize)(windows_core::Interface::as_raw(self), core::mem::transmute(puiwidth), core::mem::transmute(puiheight)).ok() @@ -1628,7 +1628,7 @@ impl IWICBitmapSourceTransform { } pub unsafe fn DoesSupportTransform(&self, dsttransform: WICBitmapTransformOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DoesSupportTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(dsttransform), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DoesSupportTransform)(windows_core::Interface::as_raw(self), dsttransform, &mut result__).map(|| result__) } } #[repr(C)] @@ -1695,7 +1695,7 @@ impl IWICColorContext { (windows_core::Interface::vtable(self).InitializeFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbbuffer.as_ptr()), pbbuffer.len().try_into().unwrap()).ok() } pub unsafe fn InitializeFromExifColorSpace(&self, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromExifColorSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).InitializeFromExifColorSpace)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1795,7 +1795,7 @@ impl IWICColorTransform { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), picontextsource.param().abi(), picontextdest.param().abi(), core::mem::transmute(pixelfmtdest)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), picontextsource.param().abi(), picontextdest.param().abi(), pixelfmtdest).ok() } } #[repr(C)] @@ -1834,7 +1834,7 @@ impl IWICComponentFactory { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataReader)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmetadataformat), core::mem::transmute(pguidvendor), core::mem::transmute(dwoptions), pistream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetadataReader)(windows_core::Interface::as_raw(self), guidmetadataformat, pguidvendor, dwoptions, pistream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateMetadataReaderFromContainer(&self, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwoptions: u32, pistream: P3) -> windows_core::Result @@ -1842,18 +1842,18 @@ impl IWICComponentFactory { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataReaderFromContainer)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcontainerformat), core::mem::transmute(pguidvendor), core::mem::transmute(dwoptions), pistream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetadataReaderFromContainer)(windows_core::Interface::as_raw(self), guidcontainerformat, pguidvendor, dwoptions, pistream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateMetadataWriter(&self, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwmetadataoptions: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataWriter)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmetadataformat), core::mem::transmute(pguidvendor), core::mem::transmute(dwmetadataoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetadataWriter)(windows_core::Interface::as_raw(self), guidmetadataformat, pguidvendor, dwmetadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateMetadataWriterFromReader(&self, pireader: P0, pguidvendor: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataWriterFromReader)(windows_core::Interface::as_raw(self), pireader.param().abi(), core::mem::transmute(pguidvendor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetadataWriterFromReader)(windows_core::Interface::as_raw(self), pireader.param().abi(), pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateQueryReaderFromBlockReader(&self, piblockreader: P0) -> windows_core::Result where @@ -2133,7 +2133,7 @@ impl IWICDdsDecoder { } pub unsafe fn GetFrame(&self, arrayindex: u32, miplevel: u32, sliceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(arrayindex), core::mem::transmute(miplevel), core::mem::transmute(sliceindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFrame)(windows_core::Interface::as_raw(self), arrayindex, miplevel, sliceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2184,7 +2184,7 @@ windows_core::imp::interface_hierarchy!(IWICDdsEncoder, windows_core::IUnknown); impl IWICDdsEncoder { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetParameters(&self, pparameters: *const WICDdsParameters) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), pparameters).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetParameters(&self, pparameters: *mut WICDdsParameters) -> windows_core::Result<()> { @@ -2253,7 +2253,7 @@ impl IWICDdsFrameDecode { (windows_core::Interface::vtable(self).GetFormatInfo)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CopyBlocks(&self, prcboundsinblocks: *const WICRect, cbstride: u32, pbbuffer: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyBlocks)(windows_core::Interface::as_raw(self), core::mem::transmute(prcboundsinblocks), core::mem::transmute(cbstride), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).CopyBlocks)(windows_core::Interface::as_raw(self), prcboundsinblocks, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } } #[repr(C)] @@ -2319,7 +2319,7 @@ impl IWICDevelopRaw { (windows_core::Interface::vtable(self).QueryRawCapabilitiesInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo)).ok() } pub unsafe fn LoadParameterSet(&self, parameterset: WICRawParameterSet) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadParameterSet)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterset)).ok() + (windows_core::Interface::vtable(self).LoadParameterSet)(windows_core::Interface::as_raw(self), parameterset).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn GetCurrentParameterSet(&self) -> windows_core::Result { @@ -2327,27 +2327,27 @@ impl IWICDevelopRaw { (windows_core::Interface::vtable(self).GetCurrentParameterSet)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetExposureCompensation(&self, ev: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExposureCompensation)(windows_core::Interface::as_raw(self), core::mem::transmute(ev)).ok() + (windows_core::Interface::vtable(self).SetExposureCompensation)(windows_core::Interface::as_raw(self), ev).ok() } pub unsafe fn GetExposureCompensation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExposureCompensation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWhitePointRGB(&self, red: u32, green: u32, blue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWhitePointRGB)(windows_core::Interface::as_raw(self), core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)).ok() + (windows_core::Interface::vtable(self).SetWhitePointRGB)(windows_core::Interface::as_raw(self), red, green, blue).ok() } pub unsafe fn GetWhitePointRGB(&self, pred: *mut u32, pgreen: *mut u32, pblue: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWhitePointRGB)(windows_core::Interface::as_raw(self), core::mem::transmute(pred), core::mem::transmute(pgreen), core::mem::transmute(pblue)).ok() } pub unsafe fn SetNamedWhitePoint(&self, whitepoint: WICNamedWhitePoint) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNamedWhitePoint)(windows_core::Interface::as_raw(self), core::mem::transmute(whitepoint)).ok() + (windows_core::Interface::vtable(self).SetNamedWhitePoint)(windows_core::Interface::as_raw(self), whitepoint).ok() } pub unsafe fn GetNamedWhitePoint(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNamedWhitePoint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWhitePointKelvin(&self, whitepointkelvin: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWhitePointKelvin)(windows_core::Interface::as_raw(self), core::mem::transmute(whitepointkelvin)).ok() + (windows_core::Interface::vtable(self).SetWhitePointKelvin)(windows_core::Interface::as_raw(self), whitepointkelvin).ok() } pub unsafe fn GetWhitePointKelvin(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2357,42 +2357,42 @@ impl IWICDevelopRaw { (windows_core::Interface::vtable(self).GetKelvinRangeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pminkelvintemp), core::mem::transmute(pmaxkelvintemp), core::mem::transmute(pkelvintempstepvalue)).ok() } pub unsafe fn SetContrast(&self, contrast: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContrast)(windows_core::Interface::as_raw(self), core::mem::transmute(contrast)).ok() + (windows_core::Interface::vtable(self).SetContrast)(windows_core::Interface::as_raw(self), contrast).ok() } pub unsafe fn GetContrast(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetContrast)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGamma(&self, gamma: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGamma)(windows_core::Interface::as_raw(self), core::mem::transmute(gamma)).ok() + (windows_core::Interface::vtable(self).SetGamma)(windows_core::Interface::as_raw(self), gamma).ok() } pub unsafe fn GetGamma(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetGamma)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSharpness(&self, sharpness: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSharpness)(windows_core::Interface::as_raw(self), core::mem::transmute(sharpness)).ok() + (windows_core::Interface::vtable(self).SetSharpness)(windows_core::Interface::as_raw(self), sharpness).ok() } pub unsafe fn GetSharpness(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSharpness)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSaturation(&self, saturation: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSaturation)(windows_core::Interface::as_raw(self), core::mem::transmute(saturation)).ok() + (windows_core::Interface::vtable(self).SetSaturation)(windows_core::Interface::as_raw(self), saturation).ok() } pub unsafe fn GetSaturation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSaturation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTint(&self, tint: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTint)(windows_core::Interface::as_raw(self), core::mem::transmute(tint)).ok() + (windows_core::Interface::vtable(self).SetTint)(windows_core::Interface::as_raw(self), tint).ok() } pub unsafe fn GetTint(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNoiseReduction(&self, noisereduction: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNoiseReduction)(windows_core::Interface::as_raw(self), core::mem::transmute(noisereduction)).ok() + (windows_core::Interface::vtable(self).SetNoiseReduction)(windows_core::Interface::as_raw(self), noisereduction).ok() } pub unsafe fn GetNoiseReduction(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2405,20 +2405,20 @@ impl IWICDevelopRaw { (windows_core::Interface::vtable(self).SetDestinationColorContext)(windows_core::Interface::as_raw(self), pcolorcontext.param().abi()).ok() } pub unsafe fn SetToneCurve(&self, cbtonecurvesize: u32, ptonecurve: *const WICRawToneCurve) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetToneCurve)(windows_core::Interface::as_raw(self), core::mem::transmute(cbtonecurvesize), core::mem::transmute(ptonecurve)).ok() + (windows_core::Interface::vtable(self).SetToneCurve)(windows_core::Interface::as_raw(self), cbtonecurvesize, ptonecurve).ok() } pub unsafe fn GetToneCurve(&self, cbtonecurvebuffersize: u32, ptonecurve: Option<*mut WICRawToneCurve>, pcbactualtonecurvebuffersize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetToneCurve)(windows_core::Interface::as_raw(self), core::mem::transmute(cbtonecurvebuffersize), core::mem::transmute(ptonecurve.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbactualtonecurvebuffersize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetToneCurve)(windows_core::Interface::as_raw(self), cbtonecurvebuffersize, core::mem::transmute(ptonecurve.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbactualtonecurvebuffersize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetRotation(&self, rotation: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(rotation)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), rotation).ok() } pub unsafe fn GetRotation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRotation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRenderMode(&self, rendermode: WICRawRenderMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderMode)(windows_core::Interface::as_raw(self), core::mem::transmute(rendermode)).ok() + (windows_core::Interface::vtable(self).SetRenderMode)(windows_core::Interface::as_raw(self), rendermode).ok() } pub unsafe fn GetRenderMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2754,7 +2754,7 @@ windows_core::imp::define_interface!(IWICDevelopRawNotificationCallback, IWICDev windows_core::imp::interface_hierarchy!(IWICDevelopRawNotificationCallback, windows_core::IUnknown); impl IWICDevelopRawNotificationCallback { pub unsafe fn Notify(&self, notificationmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(notificationmask)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), notificationmask).ok() } } #[repr(C)] @@ -2783,10 +2783,10 @@ windows_core::imp::interface_hierarchy!(IWICEnumMetadataItem, windows_core::IUnk impl IWICEnumMetadataItem { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Next(&self, celt: u32, rgeltschema: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, rgeltid: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, rgeltvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgeltschema), core::mem::transmute(rgeltid), core::mem::transmute(rgeltvalue), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgeltschema), core::mem::transmute(rgeltid), core::mem::transmute(rgeltvalue), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -2915,11 +2915,11 @@ impl IWICFormatConverter { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), core::mem::transmute(dstformat), core::mem::transmute(dither), pipalette.param().abi(), core::mem::transmute(alphathresholdpercent), core::mem::transmute(palettetranslate)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), dstformat, dither, pipalette.param().abi(), alphathresholdpercent, palettetranslate).ok() } pub unsafe fn CanConvert(&self, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), core::mem::transmute(srcpixelformat), core::mem::transmute(dstpixelformat), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), srcpixelformat, dstpixelformat, &mut result__).map(|| result__) } } #[repr(C)] @@ -3017,7 +3017,7 @@ impl IWICImagingFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi(), core::mem::transmute(pguidvendor.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdesiredaccess), core::mem::transmute(metadataoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi(), core::mem::transmute(pguidvendor.unwrap_or(core::mem::zeroed())), dwdesiredaccess, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDecoderFromStream(&self, pistream: P0, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions) -> windows_core::Result @@ -3025,23 +3025,23 @@ impl IWICImagingFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecoderFromStream)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(pguidvendor), core::mem::transmute(metadataoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDecoderFromStream)(windows_core::Interface::as_raw(self), pistream.param().abi(), pguidvendor, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDecoderFromFileHandle(&self, hfile: usize, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecoderFromFileHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hfile), core::mem::transmute(pguidvendor), core::mem::transmute(metadataoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDecoderFromFileHandle)(windows_core::Interface::as_raw(self), hfile, pguidvendor, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateComponentInfo(&self, clsidcomponent: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateComponentInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidcomponent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateComponentInfo)(windows_core::Interface::as_raw(self), clsidcomponent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDecoder(&self, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecoder)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcontainerformat), core::mem::transmute(pguidvendor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDecoder)(windows_core::Interface::as_raw(self), guidcontainerformat, pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEncoder(&self, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncoder)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcontainerformat), core::mem::transmute(pguidvendor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncoder)(windows_core::Interface::as_raw(self), guidcontainerformat, pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePalette(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3078,40 +3078,40 @@ impl IWICImagingFactory { } pub unsafe fn CreateBitmap(&self, uiwidth: u32, uiheight: u32, pixelformat: *const windows_core::GUID, option: WICBitmapCreateCacheOption) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(uiwidth), core::mem::transmute(uiheight), core::mem::transmute(pixelformat), core::mem::transmute(option), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmap)(windows_core::Interface::as_raw(self), uiwidth, uiheight, pixelformat, option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBitmapFromSource(&self, pibitmapsource: P0, option: WICBitmapCreateCacheOption) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromSource)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), core::mem::transmute(option), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromSource)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBitmapFromSourceRect(&self, pibitmapsource: P0, x: u32, y: u32, width: u32, height: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromSourceRect)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromSourceRect)(windows_core::Interface::as_raw(self), pibitmapsource.param().abi(), x, y, width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBitmapFromMemory(&self, uiwidth: u32, uiheight: u32, pixelformat: *const windows_core::GUID, cbstride: u32, pbbuffer: &[u8]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(uiwidth), core::mem::transmute(uiheight), core::mem::transmute(pixelformat), core::mem::transmute(cbstride), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromMemory)(windows_core::Interface::as_raw(self), uiwidth, uiheight, pixelformat, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapFromHBITMAP(&self, hbitmap: super::Gdi::HBITMAP, hpalette: super::Gdi::HPALETTE, options: WICBitmapAlphaChannelOption) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), core::mem::transmute(hbitmap), core::mem::transmute(hpalette), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap, hpalette, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn CreateBitmapFromHICON(&self, hicon: super::super::UI::WindowsAndMessaging::HICON) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), core::mem::transmute(hicon), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateComponentEnumerator(&self, componenttypes: u32, options: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateComponentEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(componenttypes), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateComponentEnumerator)(windows_core::Interface::as_raw(self), componenttypes, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFastMetadataEncoderFromDecoder(&self, pidecoder: P0) -> windows_core::Result where @@ -3129,14 +3129,14 @@ impl IWICImagingFactory { } pub unsafe fn CreateQueryWriter(&self, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQueryWriter)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmetadataformat), core::mem::transmute(pguidvendor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateQueryWriter)(windows_core::Interface::as_raw(self), guidmetadataformat, pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateQueryWriterFromReader(&self, piqueryreader: P0, pguidvendor: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.param().abi(), core::mem::transmute(pguidvendor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.param().abi(), pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3507,34 +3507,34 @@ impl IWICJpegFrameDecode { (windows_core::Interface::vtable(self).DoesSupportIndexing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIndexing(&self, options: WICJpegIndexingOptions, horizontalintervalsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndexing)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(horizontalintervalsize)).ok() + (windows_core::Interface::vtable(self).SetIndexing)(windows_core::Interface::as_raw(self), options, horizontalintervalsize).ok() } pub unsafe fn ClearIndexing(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearIndexing)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetAcHuffmanTable(&self, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAcHuffmanTable)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(tableindex), core::mem::transmute(pachuffmantable)).ok() + (windows_core::Interface::vtable(self).GetAcHuffmanTable)(windows_core::Interface::as_raw(self), scanindex, tableindex, core::mem::transmute(pachuffmantable)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDcHuffmanTable(&self, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDcHuffmanTable)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(tableindex), core::mem::transmute(pdchuffmantable)).ok() + (windows_core::Interface::vtable(self).GetDcHuffmanTable)(windows_core::Interface::as_raw(self), scanindex, tableindex, core::mem::transmute(pdchuffmantable)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetQuantizationTable(&self, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetQuantizationTable)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(tableindex), core::mem::transmute(pquantizationtable)).ok() + (windows_core::Interface::vtable(self).GetQuantizationTable)(windows_core::Interface::as_raw(self), scanindex, tableindex, core::mem::transmute(pquantizationtable)).ok() } pub unsafe fn GetFrameHeader(&self, pframeheader: *mut WICJpegFrameHeader) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFrameHeader)(windows_core::Interface::as_raw(self), core::mem::transmute(pframeheader)).ok() } pub unsafe fn GetScanHeader(&self, scanindex: u32, pscanheader: *mut WICJpegScanHeader) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScanHeader)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(pscanheader)).ok() + (windows_core::Interface::vtable(self).GetScanHeader)(windows_core::Interface::as_raw(self), scanindex, core::mem::transmute(pscanheader)).ok() } pub unsafe fn CopyScan(&self, scanindex: u32, scanoffset: u32, pbscandata: &mut [u8], pcbscandataactual: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyScan)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(scanoffset), pbscandata.len().try_into().unwrap(), core::mem::transmute(pbscandata.as_ptr()), core::mem::transmute(pcbscandataactual)).ok() + (windows_core::Interface::vtable(self).CopyScan)(windows_core::Interface::as_raw(self), scanindex, scanoffset, pbscandata.len().try_into().unwrap(), core::mem::transmute(pbscandata.as_ptr()), core::mem::transmute(pcbscandataactual)).ok() } pub unsafe fn CopyMinimalStream(&self, streamoffset: u32, pbstreamdata: &mut [u8], pcbstreamdataactual: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyMinimalStream)(windows_core::Interface::as_raw(self), core::mem::transmute(streamoffset), pbstreamdata.len().try_into().unwrap(), core::mem::transmute(pbstreamdata.as_ptr()), core::mem::transmute(pcbstreamdataactual)).ok() + (windows_core::Interface::vtable(self).CopyMinimalStream)(windows_core::Interface::as_raw(self), streamoffset, pbstreamdata.len().try_into().unwrap(), core::mem::transmute(pbstreamdata.as_ptr()), core::mem::transmute(pcbstreamdataactual)).ok() } } #[repr(C)] @@ -3647,15 +3647,15 @@ windows_core::imp::interface_hierarchy!(IWICJpegFrameEncode, windows_core::IUnkn impl IWICJpegFrameEncode { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetAcHuffmanTable(&self, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAcHuffmanTable)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(tableindex), core::mem::transmute(pachuffmantable)).ok() + (windows_core::Interface::vtable(self).GetAcHuffmanTable)(windows_core::Interface::as_raw(self), scanindex, tableindex, core::mem::transmute(pachuffmantable)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetDcHuffmanTable(&self, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDcHuffmanTable)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(tableindex), core::mem::transmute(pdchuffmantable)).ok() + (windows_core::Interface::vtable(self).GetDcHuffmanTable)(windows_core::Interface::as_raw(self), scanindex, tableindex, core::mem::transmute(pdchuffmantable)).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetQuantizationTable(&self, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetQuantizationTable)(windows_core::Interface::as_raw(self), core::mem::transmute(scanindex), core::mem::transmute(tableindex), core::mem::transmute(pquantizationtable)).ok() + (windows_core::Interface::vtable(self).GetQuantizationTable)(windows_core::Interface::as_raw(self), scanindex, tableindex, core::mem::transmute(pquantizationtable)).ok() } pub unsafe fn WriteScan(&self, pbscandata: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteScan)(windows_core::Interface::as_raw(self), pbscandata.len().try_into().unwrap(), core::mem::transmute(pbscandata.as_ptr())).ok() @@ -3731,7 +3731,7 @@ impl IWICMetadataBlockReader { } pub unsafe fn GetReaderByIndex(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReaderByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReaderByIndex)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnumerator(&self) -> windows_core::Result { @@ -3831,7 +3831,7 @@ impl IWICMetadataBlockWriter { } pub unsafe fn GetWriterByIndex(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWriterByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWriterByIndex)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddWriter(&self, pimetadatawriter: P0) -> windows_core::Result<()> where @@ -3843,10 +3843,10 @@ impl IWICMetadataBlockWriter { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriterByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), pimetadatawriter.param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriterByIndex)(windows_core::Interface::as_raw(self), nindex, pimetadatawriter.param().abi()).ok() } pub unsafe fn RemoveWriterByIndex(&self, nindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveWriterByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).RemoveWriterByIndex)(windows_core::Interface::as_raw(self), nindex).ok() } } #[repr(C)] @@ -4201,7 +4201,7 @@ impl IWICMetadataReader { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValueByIndex(&self, nindex: u32, pvarschema: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pvarid: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pvarvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValueByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(pvarschema), core::mem::transmute(pvarid), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).GetValueByIndex)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(pvarschema), core::mem::transmute(pvarid), core::mem::transmute(pvarvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, pvarschema: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarid: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { @@ -4314,7 +4314,7 @@ impl core::ops::Deref for IWICMetadataReaderInfo { windows_core::imp::interface_hierarchy!(IWICMetadataReaderInfo, windows_core::IUnknown, IWICComponentInfo, IWICMetadataHandlerInfo); impl IWICMetadataReaderInfo { pub unsafe fn GetPatterns(&self, guidcontainerformat: *const windows_core::GUID, cbsize: u32, ppattern: Option<*mut WICMetadataPattern>, pccount: Option<*mut u32>, pcbactual: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPatterns)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcontainerformat), core::mem::transmute(cbsize), core::mem::transmute(ppattern.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPatterns)(windows_core::Interface::as_raw(self), guidcontainerformat, cbsize, core::mem::transmute(ppattern.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MatchesPattern(&self, guidcontainerformat: *const windows_core::GUID, pistream: P1) -> windows_core::Result @@ -4322,7 +4322,7 @@ impl IWICMetadataReaderInfo { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MatchesPattern)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcontainerformat), pistream.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MatchesPattern)(windows_core::Interface::as_raw(self), guidcontainerformat, pistream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateInstance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4400,14 +4400,14 @@ impl IWICMetadataWriter { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetValueByIndex(&self, nindex: u32, pvarschema: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarid: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(pvarschema), core::mem::transmute(pvarid), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetValueByIndex)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(pvarschema), core::mem::transmute(pvarid), core::mem::transmute(pvarvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn RemoveValue(&self, pvarschema: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarid: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarschema), core::mem::transmute(pvarid)).ok() } pub unsafe fn RemoveValueByIndex(&self, nindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveValueByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).RemoveValueByIndex)(windows_core::Interface::as_raw(self), nindex).ok() } } #[repr(C)] @@ -4477,7 +4477,7 @@ impl core::ops::Deref for IWICMetadataWriterInfo { windows_core::imp::interface_hierarchy!(IWICMetadataWriterInfo, windows_core::IUnknown, IWICComponentInfo, IWICMetadataHandlerInfo); impl IWICMetadataWriterInfo { pub unsafe fn GetHeader(&self, guidcontainerformat: *const windows_core::GUID, cbsize: u32, pheader: Option<*mut WICMetadataHeader>, pcbactual: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHeader)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcontainerformat), core::mem::transmute(cbsize), core::mem::transmute(pheader.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetHeader)(windows_core::Interface::as_raw(self), guidcontainerformat, cbsize, core::mem::transmute(pheader.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateInstance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4525,7 +4525,7 @@ windows_core::imp::define_interface!(IWICPalette, IWICPalette_Vtbl, 0x00000040_a windows_core::imp::interface_hierarchy!(IWICPalette, windows_core::IUnknown); impl IWICPalette { pub unsafe fn InitializePredefined(&self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializePredefined)(windows_core::Interface::as_raw(self), core::mem::transmute(epalettetype), faddtransparentcolor.into()).ok() + (windows_core::Interface::vtable(self).InitializePredefined)(windows_core::Interface::as_raw(self), epalettetype, faddtransparentcolor.into()).ok() } pub unsafe fn InitializeCustom(&self, pcolors: &[u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeCustom)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolors.as_ptr()), pcolors.len().try_into().unwrap()).ok() @@ -4534,7 +4534,7 @@ impl IWICPalette { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), pisurface.param().abi(), core::mem::transmute(ccount), faddtransparentcolor.into()).ok() + (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), pisurface.param().abi(), ccount, faddtransparentcolor.into()).ok() } pub unsafe fn InitializeFromPalette(&self, pipalette: P0) -> windows_core::Result<()> where @@ -4701,14 +4701,14 @@ impl IWICPersistStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadEx)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(pguidpreferredvendor), core::mem::transmute(dwpersistoptions)).ok() + (windows_core::Interface::vtable(self).LoadEx)(windows_core::Interface::as_raw(self), pistream.param().abi(), pguidpreferredvendor, dwpersistoptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveEx(&self, pistream: P0, dwpersistoptions: u32, fcleardirty: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveEx)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(dwpersistoptions), fcleardirty.into()).ok() + (windows_core::Interface::vtable(self).SaveEx)(windows_core::Interface::as_raw(self), pistream.param().abi(), dwpersistoptions, fcleardirty.into()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4778,7 +4778,7 @@ impl IWICPixelFormatInfo { (windows_core::Interface::vtable(self).GetChannelCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetChannelMask(&self, uichannelindex: u32, pbmaskbuffer: &mut [u8], pcbactual: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChannelMask)(windows_core::Interface::as_raw(self), core::mem::transmute(uichannelindex), pbmaskbuffer.len().try_into().unwrap(), core::mem::transmute(pbmaskbuffer.as_ptr()), core::mem::transmute(pcbactual)).ok() + (windows_core::Interface::vtable(self).GetChannelMask)(windows_core::Interface::as_raw(self), uichannelindex, pbmaskbuffer.len().try_into().unwrap(), core::mem::transmute(pbmaskbuffer.as_ptr()), core::mem::transmute(pcbactual)).ok() } } #[repr(C)] @@ -4922,10 +4922,10 @@ windows_core::imp::define_interface!(IWICPlanarBitmapFrameEncode, IWICPlanarBitm windows_core::imp::interface_hierarchy!(IWICPlanarBitmapFrameEncode, windows_core::IUnknown); impl IWICPlanarBitmapFrameEncode { pub unsafe fn WritePixels(&self, linecount: u32, pplanes: &[WICBitmapPlane]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePixels)(windows_core::Interface::as_raw(self), core::mem::transmute(linecount), core::mem::transmute(pplanes.as_ptr()), pplanes.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).WritePixels)(windows_core::Interface::as_raw(self), linecount, core::mem::transmute(pplanes.as_ptr()), pplanes.len().try_into().unwrap()).ok() } pub unsafe fn WriteSource(&self, ppplanes: &[Option], prcsource: *const WICRect) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteSource)(windows_core::Interface::as_raw(self), core::mem::transmute(ppplanes.as_ptr()), ppplanes.len().try_into().unwrap(), core::mem::transmute(prcsource)).ok() + (windows_core::Interface::vtable(self).WriteSource)(windows_core::Interface::as_raw(self), core::mem::transmute(ppplanes.as_ptr()), ppplanes.len().try_into().unwrap(), prcsource).ok() } } #[repr(C)] @@ -4963,10 +4963,10 @@ windows_core::imp::define_interface!(IWICPlanarBitmapSourceTransform, IWICPlanar windows_core::imp::interface_hierarchy!(IWICPlanarBitmapSourceTransform, windows_core::IUnknown); impl IWICPlanarBitmapSourceTransform { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).DoesSupportTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(puiwidth), core::mem::transmute(puiheight), core::mem::transmute(dsttransform), core::mem::transmute(dstplanaroptions), core::mem::transmute(pguiddstformats), core::mem::transmute(pplanedescriptions), core::mem::transmute(cplanes), core::mem::transmute(pfissupported)).ok() + (windows_core::Interface::vtable(self).DoesSupportTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(puiwidth), core::mem::transmute(puiheight), dsttransform, dstplanaroptions, pguiddstformats, core::mem::transmute(pplanedescriptions), cplanes, core::mem::transmute(pfissupported)).ok() } pub unsafe fn CopyPixels(&self, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: &[WICBitmapPlane]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyPixels)(windows_core::Interface::as_raw(self), core::mem::transmute(prcsource), core::mem::transmute(uiwidth), core::mem::transmute(uiheight), core::mem::transmute(dsttransform), core::mem::transmute(dstplanaroptions), core::mem::transmute(pdstplanes.as_ptr()), pdstplanes.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).CopyPixels)(windows_core::Interface::as_raw(self), prcsource, uiwidth, uiheight, dsttransform, dstplanaroptions, core::mem::transmute(pdstplanes.as_ptr()), pdstplanes.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -5013,11 +5013,11 @@ impl IWICPlanarFormatConverter { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppplanes.as_ptr()), ppplanes.len().try_into().unwrap(), core::mem::transmute(dstformat), core::mem::transmute(dither), pipalette.param().abi(), core::mem::transmute(alphathresholdpercent), core::mem::transmute(palettetranslate)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppplanes.as_ptr()), ppplanes.len().try_into().unwrap(), dstformat, dither, pipalette.param().abi(), alphathresholdpercent, palettetranslate).ok() } pub unsafe fn CanConvert(&self, psrcpixelformats: &[windows_core::GUID], dstpixelformat: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), core::mem::transmute(psrcpixelformats.as_ptr()), psrcpixelformats.len().try_into().unwrap(), core::mem::transmute(dstpixelformat), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), core::mem::transmute(psrcpixelformats.as_ptr()), psrcpixelformats.len().try_into().unwrap(), dstpixelformat, &mut result__).map(|| result__) } } #[repr(C)] @@ -5057,7 +5057,7 @@ windows_core::imp::define_interface!(IWICProgressCallback, IWICProgressCallback_ windows_core::imp::interface_hierarchy!(IWICProgressCallback, windows_core::IUnknown); impl IWICProgressCallback { pub unsafe fn Notify(&self, uframenum: u32, operation: WICProgressOperation, dblprogress: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(uframenum), core::mem::transmute(operation), core::mem::transmute(dblprogress)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), uframenum, operation, dblprogress).ok() } } #[repr(C)] @@ -5093,7 +5093,7 @@ impl IWICProgressiveLevelControl { (windows_core::Interface::vtable(self).GetCurrentLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentLevel(&self, nlevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(nlevel)).ok() + (windows_core::Interface::vtable(self).SetCurrentLevel)(windows_core::Interface::as_raw(self), nlevel).ok() } } #[repr(C)] @@ -5169,7 +5169,7 @@ impl IWICStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi(), core::mem::transmute(dwdesiredaccess)).ok() + (windows_core::Interface::vtable(self).InitializeFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi(), dwdesiredaccess).ok() } pub unsafe fn InitializeFromMemory(&self, pbbuffer: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbbuffer.as_ptr()), pbbuffer.len().try_into().unwrap()).ok() @@ -5178,7 +5178,7 @@ impl IWICStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromIStreamRegion)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(uloffset), core::mem::transmute(ulmaxsize)).ok() + (windows_core::Interface::vtable(self).InitializeFromIStreamRegion)(windows_core::Interface::as_raw(self), pistream.param().abi(), uloffset, ulmaxsize).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs index 2fa84389cd..0121584023 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs @@ -2,407 +2,407 @@ #[inline] pub unsafe fn ChoosePixelFormat(hdc: super::Gdi::HDC, ppfd: *const PIXELFORMATDESCRIPTOR) -> i32 { windows_targets::link!("gdi32.dll" "system" fn ChoosePixelFormat(hdc : super::Gdi:: HDC, ppfd : *const PIXELFORMATDESCRIPTOR) -> i32); - ChoosePixelFormat(core::mem::transmute(hdc), core::mem::transmute(ppfd)) + ChoosePixelFormat(hdc, ppfd) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DescribePixelFormat(hdc: super::Gdi::HDC, ipixelformat: i32, nbytes: u32, ppfd: Option<*mut PIXELFORMATDESCRIPTOR>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn DescribePixelFormat(hdc : super::Gdi:: HDC, ipixelformat : i32, nbytes : u32, ppfd : *mut PIXELFORMATDESCRIPTOR) -> i32); - DescribePixelFormat(core::mem::transmute(hdc), core::mem::transmute(ipixelformat), core::mem::transmute(nbytes), core::mem::transmute(ppfd.unwrap_or(core::mem::zeroed()))) + DescribePixelFormat(hdc, ipixelformat, nbytes, core::mem::transmute(ppfd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetEnhMetaFilePixelFormat(hemf: super::Gdi::HENHMETAFILE, cbbuffer: u32, ppfd: Option<*mut PIXELFORMATDESCRIPTOR>) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFilePixelFormat(hemf : super::Gdi:: HENHMETAFILE, cbbuffer : u32, ppfd : *mut PIXELFORMATDESCRIPTOR) -> u32); - GetEnhMetaFilePixelFormat(core::mem::transmute(hemf), core::mem::transmute(cbbuffer), core::mem::transmute(ppfd.unwrap_or(core::mem::zeroed()))) + GetEnhMetaFilePixelFormat(hemf, cbbuffer, core::mem::transmute(ppfd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetPixelFormat(hdc: super::Gdi::HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn GetPixelFormat(hdc : super::Gdi:: HDC) -> i32); - GetPixelFormat(core::mem::transmute(hdc)) + GetPixelFormat(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetPixelFormat(hdc: super::Gdi::HDC, format: i32, ppfd: *const PIXELFORMATDESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("gdi32.dll" "system" fn SetPixelFormat(hdc : super::Gdi:: HDC, format : i32, ppfd : *const PIXELFORMATDESCRIPTOR) -> super::super::Foundation:: BOOL); - SetPixelFormat(core::mem::transmute(hdc), core::mem::transmute(format), core::mem::transmute(ppfd)).ok() + SetPixelFormat(hdc, format, ppfd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SwapBuffers(param0: super::Gdi::HDC) -> windows_core::Result<()> { windows_targets::link!("gdi32.dll" "system" fn SwapBuffers(param0 : super::Gdi:: HDC) -> super::super::Foundation:: BOOL); - SwapBuffers(core::mem::transmute(param0)).ok() + SwapBuffers(param0).ok() } #[inline] pub unsafe fn glAccum(op: u32, value: f32) { windows_targets::link!("opengl32.dll" "system" fn glAccum(op : u32, value : f32)); - glAccum(core::mem::transmute(op), core::mem::transmute(value)) + glAccum(op, value) } #[inline] pub unsafe fn glAlphaFunc(func: u32, r#ref: f32) { windows_targets::link!("opengl32.dll" "system" fn glAlphaFunc(func : u32, r#ref : f32)); - glAlphaFunc(core::mem::transmute(func), core::mem::transmute(r#ref)) + glAlphaFunc(func, r#ref) } #[inline] pub unsafe fn glAreTexturesResident(n: i32, textures: *const u32, residences: *mut u8) -> u8 { windows_targets::link!("opengl32.dll" "system" fn glAreTexturesResident(n : i32, textures : *const u32, residences : *mut u8) -> u8); - glAreTexturesResident(core::mem::transmute(n), core::mem::transmute(textures), core::mem::transmute(residences)) + glAreTexturesResident(n, textures, core::mem::transmute(residences)) } #[inline] pub unsafe fn glArrayElement(i: i32) { windows_targets::link!("opengl32.dll" "system" fn glArrayElement(i : i32)); - glArrayElement(core::mem::transmute(i)) + glArrayElement(i) } #[inline] pub unsafe fn glBegin(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glBegin(mode : u32)); - glBegin(core::mem::transmute(mode)) + glBegin(mode) } #[inline] pub unsafe fn glBindTexture(target: u32, texture: u32) { windows_targets::link!("opengl32.dll" "system" fn glBindTexture(target : u32, texture : u32)); - glBindTexture(core::mem::transmute(target), core::mem::transmute(texture)) + glBindTexture(target, texture) } #[inline] pub unsafe fn glBitmap(width: i32, height: i32, xorig: f32, yorig: f32, xmove: f32, ymove: f32, bitmap: *const u8) { windows_targets::link!("opengl32.dll" "system" fn glBitmap(width : i32, height : i32, xorig : f32, yorig : f32, xmove : f32, ymove : f32, bitmap : *const u8)); - glBitmap(core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(xorig), core::mem::transmute(yorig), core::mem::transmute(xmove), core::mem::transmute(ymove), core::mem::transmute(bitmap)) + glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap) } #[inline] pub unsafe fn glBlendFunc(sfactor: u32, dfactor: u32) { windows_targets::link!("opengl32.dll" "system" fn glBlendFunc(sfactor : u32, dfactor : u32)); - glBlendFunc(core::mem::transmute(sfactor), core::mem::transmute(dfactor)) + glBlendFunc(sfactor, dfactor) } #[inline] pub unsafe fn glCallList(list: u32) { windows_targets::link!("opengl32.dll" "system" fn glCallList(list : u32)); - glCallList(core::mem::transmute(list)) + glCallList(list) } #[inline] pub unsafe fn glCallLists(n: i32, r#type: u32, lists: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glCallLists(n : i32, r#type : u32, lists : *const core::ffi::c_void)); - glCallLists(core::mem::transmute(n), core::mem::transmute(r#type), core::mem::transmute(lists)) + glCallLists(n, r#type, lists) } #[inline] pub unsafe fn glClear(mask: u32) { windows_targets::link!("opengl32.dll" "system" fn glClear(mask : u32)); - glClear(core::mem::transmute(mask)) + glClear(mask) } #[inline] pub unsafe fn glClearAccum(red: f32, green: f32, blue: f32, alpha: f32) { windows_targets::link!("opengl32.dll" "system" fn glClearAccum(red : f32, green : f32, blue : f32, alpha : f32)); - glClearAccum(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glClearAccum(red, green, blue, alpha) } #[inline] pub unsafe fn glClearColor(red: f32, green: f32, blue: f32, alpha: f32) { windows_targets::link!("opengl32.dll" "system" fn glClearColor(red : f32, green : f32, blue : f32, alpha : f32)); - glClearColor(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glClearColor(red, green, blue, alpha) } #[inline] pub unsafe fn glClearDepth(depth: f64) { windows_targets::link!("opengl32.dll" "system" fn glClearDepth(depth : f64)); - glClearDepth(core::mem::transmute(depth)) + glClearDepth(depth) } #[inline] pub unsafe fn glClearIndex(c: f32) { windows_targets::link!("opengl32.dll" "system" fn glClearIndex(c : f32)); - glClearIndex(core::mem::transmute(c)) + glClearIndex(c) } #[inline] pub unsafe fn glClearStencil(s: i32) { windows_targets::link!("opengl32.dll" "system" fn glClearStencil(s : i32)); - glClearStencil(core::mem::transmute(s)) + glClearStencil(s) } #[inline] pub unsafe fn glClipPlane(plane: u32, equation: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glClipPlane(plane : u32, equation : *const f64)); - glClipPlane(core::mem::transmute(plane), core::mem::transmute(equation)) + glClipPlane(plane, equation) } #[inline] pub unsafe fn glColor3b(red: i8, green: i8, blue: i8) { windows_targets::link!("opengl32.dll" "system" fn glColor3b(red : i8, green : i8, blue : i8)); - glColor3b(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3b(red, green, blue) } #[inline] pub unsafe fn glColor3bv(v: *const i8) { windows_targets::link!("opengl32.dll" "system" fn glColor3bv(v : *const i8)); - glColor3bv(core::mem::transmute(v)) + glColor3bv(v) } #[inline] pub unsafe fn glColor3d(red: f64, green: f64, blue: f64) { windows_targets::link!("opengl32.dll" "system" fn glColor3d(red : f64, green : f64, blue : f64)); - glColor3d(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3d(red, green, blue) } #[inline] pub unsafe fn glColor3dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glColor3dv(v : *const f64)); - glColor3dv(core::mem::transmute(v)) + glColor3dv(v) } #[inline] pub unsafe fn glColor3f(red: f32, green: f32, blue: f32) { windows_targets::link!("opengl32.dll" "system" fn glColor3f(red : f32, green : f32, blue : f32)); - glColor3f(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3f(red, green, blue) } #[inline] pub unsafe fn glColor3fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glColor3fv(v : *const f32)); - glColor3fv(core::mem::transmute(v)) + glColor3fv(v) } #[inline] pub unsafe fn glColor3i(red: i32, green: i32, blue: i32) { windows_targets::link!("opengl32.dll" "system" fn glColor3i(red : i32, green : i32, blue : i32)); - glColor3i(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3i(red, green, blue) } #[inline] pub unsafe fn glColor3iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glColor3iv(v : *const i32)); - glColor3iv(core::mem::transmute(v)) + glColor3iv(v) } #[inline] pub unsafe fn glColor3s(red: i16, green: i16, blue: i16) { windows_targets::link!("opengl32.dll" "system" fn glColor3s(red : i16, green : i16, blue : i16)); - glColor3s(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3s(red, green, blue) } #[inline] pub unsafe fn glColor3sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glColor3sv(v : *const i16)); - glColor3sv(core::mem::transmute(v)) + glColor3sv(v) } #[inline] pub unsafe fn glColor3ub(red: u8, green: u8, blue: u8) { windows_targets::link!("opengl32.dll" "system" fn glColor3ub(red : u8, green : u8, blue : u8)); - glColor3ub(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3ub(red, green, blue) } #[inline] pub unsafe fn glColor3ubv(v: *const u8) { windows_targets::link!("opengl32.dll" "system" fn glColor3ubv(v : *const u8)); - glColor3ubv(core::mem::transmute(v)) + glColor3ubv(v) } #[inline] pub unsafe fn glColor3ui(red: u32, green: u32, blue: u32) { windows_targets::link!("opengl32.dll" "system" fn glColor3ui(red : u32, green : u32, blue : u32)); - glColor3ui(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3ui(red, green, blue) } #[inline] pub unsafe fn glColor3uiv(v: *const u32) { windows_targets::link!("opengl32.dll" "system" fn glColor3uiv(v : *const u32)); - glColor3uiv(core::mem::transmute(v)) + glColor3uiv(v) } #[inline] pub unsafe fn glColor3us(red: u16, green: u16, blue: u16) { windows_targets::link!("opengl32.dll" "system" fn glColor3us(red : u16, green : u16, blue : u16)); - glColor3us(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue)) + glColor3us(red, green, blue) } #[inline] pub unsafe fn glColor3usv(v: *const u16) { windows_targets::link!("opengl32.dll" "system" fn glColor3usv(v : *const u16)); - glColor3usv(core::mem::transmute(v)) + glColor3usv(v) } #[inline] pub unsafe fn glColor4b(red: i8, green: i8, blue: i8, alpha: i8) { windows_targets::link!("opengl32.dll" "system" fn glColor4b(red : i8, green : i8, blue : i8, alpha : i8)); - glColor4b(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4b(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4bv(v: *const i8) { windows_targets::link!("opengl32.dll" "system" fn glColor4bv(v : *const i8)); - glColor4bv(core::mem::transmute(v)) + glColor4bv(v) } #[inline] pub unsafe fn glColor4d(red: f64, green: f64, blue: f64, alpha: f64) { windows_targets::link!("opengl32.dll" "system" fn glColor4d(red : f64, green : f64, blue : f64, alpha : f64)); - glColor4d(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4d(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glColor4dv(v : *const f64)); - glColor4dv(core::mem::transmute(v)) + glColor4dv(v) } #[inline] pub unsafe fn glColor4f(red: f32, green: f32, blue: f32, alpha: f32) { windows_targets::link!("opengl32.dll" "system" fn glColor4f(red : f32, green : f32, blue : f32, alpha : f32)); - glColor4f(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4f(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glColor4fv(v : *const f32)); - glColor4fv(core::mem::transmute(v)) + glColor4fv(v) } #[inline] pub unsafe fn glColor4i(red: i32, green: i32, blue: i32, alpha: i32) { windows_targets::link!("opengl32.dll" "system" fn glColor4i(red : i32, green : i32, blue : i32, alpha : i32)); - glColor4i(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4i(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glColor4iv(v : *const i32)); - glColor4iv(core::mem::transmute(v)) + glColor4iv(v) } #[inline] pub unsafe fn glColor4s(red: i16, green: i16, blue: i16, alpha: i16) { windows_targets::link!("opengl32.dll" "system" fn glColor4s(red : i16, green : i16, blue : i16, alpha : i16)); - glColor4s(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4s(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glColor4sv(v : *const i16)); - glColor4sv(core::mem::transmute(v)) + glColor4sv(v) } #[inline] pub unsafe fn glColor4ub(red: u8, green: u8, blue: u8, alpha: u8) { windows_targets::link!("opengl32.dll" "system" fn glColor4ub(red : u8, green : u8, blue : u8, alpha : u8)); - glColor4ub(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4ub(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4ubv(v: *const u8) { windows_targets::link!("opengl32.dll" "system" fn glColor4ubv(v : *const u8)); - glColor4ubv(core::mem::transmute(v)) + glColor4ubv(v) } #[inline] pub unsafe fn glColor4ui(red: u32, green: u32, blue: u32, alpha: u32) { windows_targets::link!("opengl32.dll" "system" fn glColor4ui(red : u32, green : u32, blue : u32, alpha : u32)); - glColor4ui(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4ui(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4uiv(v: *const u32) { windows_targets::link!("opengl32.dll" "system" fn glColor4uiv(v : *const u32)); - glColor4uiv(core::mem::transmute(v)) + glColor4uiv(v) } #[inline] pub unsafe fn glColor4us(red: u16, green: u16, blue: u16, alpha: u16) { windows_targets::link!("opengl32.dll" "system" fn glColor4us(red : u16, green : u16, blue : u16, alpha : u16)); - glColor4us(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColor4us(red, green, blue, alpha) } #[inline] pub unsafe fn glColor4usv(v: *const u16) { windows_targets::link!("opengl32.dll" "system" fn glColor4usv(v : *const u16)); - glColor4usv(core::mem::transmute(v)) + glColor4usv(v) } #[inline] pub unsafe fn glColorMask(red: u8, green: u8, blue: u8, alpha: u8) { windows_targets::link!("opengl32.dll" "system" fn glColorMask(red : u8, green : u8, blue : u8, alpha : u8)); - glColorMask(core::mem::transmute(red), core::mem::transmute(green), core::mem::transmute(blue), core::mem::transmute(alpha)) + glColorMask(red, green, blue, alpha) } #[inline] pub unsafe fn glColorMaterial(face: u32, mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glColorMaterial(face : u32, mode : u32)); - glColorMaterial(core::mem::transmute(face), core::mem::transmute(mode)) + glColorMaterial(face, mode) } #[inline] pub unsafe fn glColorPointer(size: i32, r#type: u32, stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glColorPointer(size : i32, r#type : u32, stride : i32, pointer : *const core::ffi::c_void)); - glColorPointer(core::mem::transmute(size), core::mem::transmute(r#type), core::mem::transmute(stride), core::mem::transmute(pointer)) + glColorPointer(size, r#type, stride, pointer) } #[inline] pub unsafe fn glCopyPixels(x: i32, y: i32, width: i32, height: i32, r#type: u32) { windows_targets::link!("opengl32.dll" "system" fn glCopyPixels(x : i32, y : i32, width : i32, height : i32, r#type : u32)); - glCopyPixels(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(r#type)) + glCopyPixels(x, y, width, height, r#type) } #[inline] pub unsafe fn glCopyTexImage1D(target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, border: i32) { windows_targets::link!("opengl32.dll" "system" fn glCopyTexImage1D(target : u32, level : i32, internalformat : u32, x : i32, y : i32, width : i32, border : i32)); - glCopyTexImage1D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(internalformat), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(border)) + glCopyTexImage1D(target, level, internalformat, x, y, width, border) } #[inline] pub unsafe fn glCopyTexImage2D(target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, height: i32, border: i32) { windows_targets::link!("opengl32.dll" "system" fn glCopyTexImage2D(target : u32, level : i32, internalformat : u32, x : i32, y : i32, width : i32, height : i32, border : i32)); - glCopyTexImage2D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(internalformat), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(border)) + glCopyTexImage2D(target, level, internalformat, x, y, width, height, border) } #[inline] pub unsafe fn glCopyTexSubImage1D(target: u32, level: i32, xoffset: i32, x: i32, y: i32, width: i32) { windows_targets::link!("opengl32.dll" "system" fn glCopyTexSubImage1D(target : u32, level : i32, xoffset : i32, x : i32, y : i32, width : i32)); - glCopyTexSubImage1D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(xoffset), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width)) + glCopyTexSubImage1D(target, level, xoffset, x, y, width) } #[inline] pub unsafe fn glCopyTexSubImage2D(target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32) { windows_targets::link!("opengl32.dll" "system" fn glCopyTexSubImage2D(target : u32, level : i32, xoffset : i32, yoffset : i32, x : i32, y : i32, width : i32, height : i32)); - glCopyTexSubImage2D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(xoffset), core::mem::transmute(yoffset), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height) } #[inline] pub unsafe fn glCullFace(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glCullFace(mode : u32)); - glCullFace(core::mem::transmute(mode)) + glCullFace(mode) } #[inline] pub unsafe fn glDeleteLists(list: u32, range: i32) { windows_targets::link!("opengl32.dll" "system" fn glDeleteLists(list : u32, range : i32)); - glDeleteLists(core::mem::transmute(list), core::mem::transmute(range)) + glDeleteLists(list, range) } #[inline] pub unsafe fn glDeleteTextures(n: i32, textures: *const u32) { windows_targets::link!("opengl32.dll" "system" fn glDeleteTextures(n : i32, textures : *const u32)); - glDeleteTextures(core::mem::transmute(n), core::mem::transmute(textures)) + glDeleteTextures(n, textures) } #[inline] pub unsafe fn glDepthFunc(func: u32) { windows_targets::link!("opengl32.dll" "system" fn glDepthFunc(func : u32)); - glDepthFunc(core::mem::transmute(func)) + glDepthFunc(func) } #[inline] pub unsafe fn glDepthMask(flag: u8) { windows_targets::link!("opengl32.dll" "system" fn glDepthMask(flag : u8)); - glDepthMask(core::mem::transmute(flag)) + glDepthMask(flag) } #[inline] pub unsafe fn glDepthRange(znear: f64, zfar: f64) { windows_targets::link!("opengl32.dll" "system" fn glDepthRange(znear : f64, zfar : f64)); - glDepthRange(core::mem::transmute(znear), core::mem::transmute(zfar)) + glDepthRange(znear, zfar) } #[inline] pub unsafe fn glDisable(cap: u32) { windows_targets::link!("opengl32.dll" "system" fn glDisable(cap : u32)); - glDisable(core::mem::transmute(cap)) + glDisable(cap) } #[inline] pub unsafe fn glDisableClientState(array: u32) { windows_targets::link!("opengl32.dll" "system" fn glDisableClientState(array : u32)); - glDisableClientState(core::mem::transmute(array)) + glDisableClientState(array) } #[inline] pub unsafe fn glDrawArrays(mode: u32, first: i32, count: i32) { windows_targets::link!("opengl32.dll" "system" fn glDrawArrays(mode : u32, first : i32, count : i32)); - glDrawArrays(core::mem::transmute(mode), core::mem::transmute(first), core::mem::transmute(count)) + glDrawArrays(mode, first, count) } #[inline] pub unsafe fn glDrawBuffer(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glDrawBuffer(mode : u32)); - glDrawBuffer(core::mem::transmute(mode)) + glDrawBuffer(mode) } #[inline] pub unsafe fn glDrawElements(mode: u32, count: i32, r#type: u32, indices: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glDrawElements(mode : u32, count : i32, r#type : u32, indices : *const core::ffi::c_void)); - glDrawElements(core::mem::transmute(mode), core::mem::transmute(count), core::mem::transmute(r#type), core::mem::transmute(indices)) + glDrawElements(mode, count, r#type, indices) } #[inline] pub unsafe fn glDrawPixels(width: i32, height: i32, format: u32, r#type: u32, pixels: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glDrawPixels(width : i32, height : i32, format : u32, r#type : u32, pixels : *const core::ffi::c_void)); - glDrawPixels(core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glDrawPixels(width, height, format, r#type, pixels) } #[inline] pub unsafe fn glEdgeFlag(flag: u8) { windows_targets::link!("opengl32.dll" "system" fn glEdgeFlag(flag : u8)); - glEdgeFlag(core::mem::transmute(flag)) + glEdgeFlag(flag) } #[inline] pub unsafe fn glEdgeFlagPointer(stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glEdgeFlagPointer(stride : i32, pointer : *const core::ffi::c_void)); - glEdgeFlagPointer(core::mem::transmute(stride), core::mem::transmute(pointer)) + glEdgeFlagPointer(stride, pointer) } #[inline] pub unsafe fn glEdgeFlagv(flag: *const u8) { windows_targets::link!("opengl32.dll" "system" fn glEdgeFlagv(flag : *const u8)); - glEdgeFlagv(core::mem::transmute(flag)) + glEdgeFlagv(flag) } #[inline] pub unsafe fn glEnable(cap: u32) { windows_targets::link!("opengl32.dll" "system" fn glEnable(cap : u32)); - glEnable(core::mem::transmute(cap)) + glEnable(cap) } #[inline] pub unsafe fn glEnableClientState(array: u32) { windows_targets::link!("opengl32.dll" "system" fn glEnableClientState(array : u32)); - glEnableClientState(core::mem::transmute(array)) + glEnableClientState(array) } #[inline] pub unsafe fn glEnd() { @@ -417,67 +417,67 @@ pub unsafe fn glEndList() { #[inline] pub unsafe fn glEvalCoord1d(u: f64) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord1d(u : f64)); - glEvalCoord1d(core::mem::transmute(u)) + glEvalCoord1d(u) } #[inline] pub unsafe fn glEvalCoord1dv(u: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord1dv(u : *const f64)); - glEvalCoord1dv(core::mem::transmute(u)) + glEvalCoord1dv(u) } #[inline] pub unsafe fn glEvalCoord1f(u: f32) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord1f(u : f32)); - glEvalCoord1f(core::mem::transmute(u)) + glEvalCoord1f(u) } #[inline] pub unsafe fn glEvalCoord1fv(u: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord1fv(u : *const f32)); - glEvalCoord1fv(core::mem::transmute(u)) + glEvalCoord1fv(u) } #[inline] pub unsafe fn glEvalCoord2d(u: f64, v: f64) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord2d(u : f64, v : f64)); - glEvalCoord2d(core::mem::transmute(u), core::mem::transmute(v)) + glEvalCoord2d(u, v) } #[inline] pub unsafe fn glEvalCoord2dv(u: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord2dv(u : *const f64)); - glEvalCoord2dv(core::mem::transmute(u)) + glEvalCoord2dv(u) } #[inline] pub unsafe fn glEvalCoord2f(u: f32, v: f32) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord2f(u : f32, v : f32)); - glEvalCoord2f(core::mem::transmute(u), core::mem::transmute(v)) + glEvalCoord2f(u, v) } #[inline] pub unsafe fn glEvalCoord2fv(u: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glEvalCoord2fv(u : *const f32)); - glEvalCoord2fv(core::mem::transmute(u)) + glEvalCoord2fv(u) } #[inline] pub unsafe fn glEvalMesh1(mode: u32, i1: i32, i2: i32) { windows_targets::link!("opengl32.dll" "system" fn glEvalMesh1(mode : u32, i1 : i32, i2 : i32)); - glEvalMesh1(core::mem::transmute(mode), core::mem::transmute(i1), core::mem::transmute(i2)) + glEvalMesh1(mode, i1, i2) } #[inline] pub unsafe fn glEvalMesh2(mode: u32, i1: i32, i2: i32, j1: i32, j2: i32) { windows_targets::link!("opengl32.dll" "system" fn glEvalMesh2(mode : u32, i1 : i32, i2 : i32, j1 : i32, j2 : i32)); - glEvalMesh2(core::mem::transmute(mode), core::mem::transmute(i1), core::mem::transmute(i2), core::mem::transmute(j1), core::mem::transmute(j2)) + glEvalMesh2(mode, i1, i2, j1, j2) } #[inline] pub unsafe fn glEvalPoint1(i: i32) { windows_targets::link!("opengl32.dll" "system" fn glEvalPoint1(i : i32)); - glEvalPoint1(core::mem::transmute(i)) + glEvalPoint1(i) } #[inline] pub unsafe fn glEvalPoint2(i: i32, j: i32) { windows_targets::link!("opengl32.dll" "system" fn glEvalPoint2(i : i32, j : i32)); - glEvalPoint2(core::mem::transmute(i), core::mem::transmute(j)) + glEvalPoint2(i, j) } #[inline] pub unsafe fn glFeedbackBuffer(size: i32, r#type: u32, buffer: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glFeedbackBuffer(size : i32, r#type : u32, buffer : *mut f32)); - glFeedbackBuffer(core::mem::transmute(size), core::mem::transmute(r#type), core::mem::transmute(buffer)) + glFeedbackBuffer(size, r#type, core::mem::transmute(buffer)) } #[inline] pub unsafe fn glFinish() { @@ -492,57 +492,57 @@ pub unsafe fn glFlush() { #[inline] pub unsafe fn glFogf(pname: u32, param1: f32) { windows_targets::link!("opengl32.dll" "system" fn glFogf(pname : u32, param1 : f32)); - glFogf(core::mem::transmute(pname), core::mem::transmute(param1)) + glFogf(pname, param1) } #[inline] pub unsafe fn glFogfv(pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glFogfv(pname : u32, params : *const f32)); - glFogfv(core::mem::transmute(pname), core::mem::transmute(params)) + glFogfv(pname, params) } #[inline] pub unsafe fn glFogi(pname: u32, param1: i32) { windows_targets::link!("opengl32.dll" "system" fn glFogi(pname : u32, param1 : i32)); - glFogi(core::mem::transmute(pname), core::mem::transmute(param1)) + glFogi(pname, param1) } #[inline] pub unsafe fn glFogiv(pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glFogiv(pname : u32, params : *const i32)); - glFogiv(core::mem::transmute(pname), core::mem::transmute(params)) + glFogiv(pname, params) } #[inline] pub unsafe fn glFrontFace(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glFrontFace(mode : u32)); - glFrontFace(core::mem::transmute(mode)) + glFrontFace(mode) } #[inline] pub unsafe fn glFrustum(left: f64, right: f64, bottom: f64, top: f64, znear: f64, zfar: f64) { windows_targets::link!("opengl32.dll" "system" fn glFrustum(left : f64, right : f64, bottom : f64, top : f64, znear : f64, zfar : f64)); - glFrustum(core::mem::transmute(left), core::mem::transmute(right), core::mem::transmute(bottom), core::mem::transmute(top), core::mem::transmute(znear), core::mem::transmute(zfar)) + glFrustum(left, right, bottom, top, znear, zfar) } #[inline] pub unsafe fn glGenLists(range: i32) -> u32 { windows_targets::link!("opengl32.dll" "system" fn glGenLists(range : i32) -> u32); - glGenLists(core::mem::transmute(range)) + glGenLists(range) } #[inline] pub unsafe fn glGenTextures(n: i32, textures: *mut u32) { windows_targets::link!("opengl32.dll" "system" fn glGenTextures(n : i32, textures : *mut u32)); - glGenTextures(core::mem::transmute(n), core::mem::transmute(textures)) + glGenTextures(n, core::mem::transmute(textures)) } #[inline] pub unsafe fn glGetBooleanv(pname: u32, params: *mut u8) { windows_targets::link!("opengl32.dll" "system" fn glGetBooleanv(pname : u32, params : *mut u8)); - glGetBooleanv(core::mem::transmute(pname), core::mem::transmute(params)) + glGetBooleanv(pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetClipPlane(plane: u32, equation: *mut f64) { windows_targets::link!("opengl32.dll" "system" fn glGetClipPlane(plane : u32, equation : *mut f64)); - glGetClipPlane(core::mem::transmute(plane), core::mem::transmute(equation)) + glGetClipPlane(plane, core::mem::transmute(equation)) } #[inline] pub unsafe fn glGetDoublev(pname: u32, params: *mut f64) { windows_targets::link!("opengl32.dll" "system" fn glGetDoublev(pname : u32, params : *mut f64)); - glGetDoublev(core::mem::transmute(pname), core::mem::transmute(params)) + glGetDoublev(pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetError() -> u32 { @@ -552,67 +552,67 @@ pub unsafe fn glGetError() -> u32 { #[inline] pub unsafe fn glGetFloatv(pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetFloatv(pname : u32, params : *mut f32)); - glGetFloatv(core::mem::transmute(pname), core::mem::transmute(params)) + glGetFloatv(pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetIntegerv(pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetIntegerv(pname : u32, params : *mut i32)); - glGetIntegerv(core::mem::transmute(pname), core::mem::transmute(params)) + glGetIntegerv(pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetLightfv(light: u32, pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetLightfv(light : u32, pname : u32, params : *mut f32)); - glGetLightfv(core::mem::transmute(light), core::mem::transmute(pname), core::mem::transmute(params)) + glGetLightfv(light, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetLightiv(light: u32, pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetLightiv(light : u32, pname : u32, params : *mut i32)); - glGetLightiv(core::mem::transmute(light), core::mem::transmute(pname), core::mem::transmute(params)) + glGetLightiv(light, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetMapdv(target: u32, query: u32, v: *mut f64) { windows_targets::link!("opengl32.dll" "system" fn glGetMapdv(target : u32, query : u32, v : *mut f64)); - glGetMapdv(core::mem::transmute(target), core::mem::transmute(query), core::mem::transmute(v)) + glGetMapdv(target, query, core::mem::transmute(v)) } #[inline] pub unsafe fn glGetMapfv(target: u32, query: u32, v: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetMapfv(target : u32, query : u32, v : *mut f32)); - glGetMapfv(core::mem::transmute(target), core::mem::transmute(query), core::mem::transmute(v)) + glGetMapfv(target, query, core::mem::transmute(v)) } #[inline] pub unsafe fn glGetMapiv(target: u32, query: u32, v: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetMapiv(target : u32, query : u32, v : *mut i32)); - glGetMapiv(core::mem::transmute(target), core::mem::transmute(query), core::mem::transmute(v)) + glGetMapiv(target, query, core::mem::transmute(v)) } #[inline] pub unsafe fn glGetMaterialfv(face: u32, pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetMaterialfv(face : u32, pname : u32, params : *mut f32)); - glGetMaterialfv(core::mem::transmute(face), core::mem::transmute(pname), core::mem::transmute(params)) + glGetMaterialfv(face, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetMaterialiv(face: u32, pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetMaterialiv(face : u32, pname : u32, params : *mut i32)); - glGetMaterialiv(core::mem::transmute(face), core::mem::transmute(pname), core::mem::transmute(params)) + glGetMaterialiv(face, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetPixelMapfv(map: u32, values: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetPixelMapfv(map : u32, values : *mut f32)); - glGetPixelMapfv(core::mem::transmute(map), core::mem::transmute(values)) + glGetPixelMapfv(map, core::mem::transmute(values)) } #[inline] pub unsafe fn glGetPixelMapuiv(map: u32, values: *mut u32) { windows_targets::link!("opengl32.dll" "system" fn glGetPixelMapuiv(map : u32, values : *mut u32)); - glGetPixelMapuiv(core::mem::transmute(map), core::mem::transmute(values)) + glGetPixelMapuiv(map, core::mem::transmute(values)) } #[inline] pub unsafe fn glGetPixelMapusv(map: u32, values: *mut u16) { windows_targets::link!("opengl32.dll" "system" fn glGetPixelMapusv(map : u32, values : *mut u16)); - glGetPixelMapusv(core::mem::transmute(map), core::mem::transmute(values)) + glGetPixelMapusv(map, core::mem::transmute(values)) } #[inline] pub unsafe fn glGetPointerv(pname: u32, params: *mut *mut core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glGetPointerv(pname : u32, params : *mut *mut core::ffi::c_void)); - glGetPointerv(core::mem::transmute(pname), core::mem::transmute(params)) + glGetPointerv(pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetPolygonStipple(mask: *mut u8) { @@ -622,122 +622,122 @@ pub unsafe fn glGetPolygonStipple(mask: *mut u8) { #[inline] pub unsafe fn glGetString(name: u32) -> *mut u8 { windows_targets::link!("opengl32.dll" "system" fn glGetString(name : u32) -> *mut u8); - glGetString(core::mem::transmute(name)) + glGetString(name) } #[inline] pub unsafe fn glGetTexEnvfv(target: u32, pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexEnvfv(target : u32, pname : u32, params : *mut f32)); - glGetTexEnvfv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexEnvfv(target, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexEnviv(target: u32, pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexEnviv(target : u32, pname : u32, params : *mut i32)); - glGetTexEnviv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexEnviv(target, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexGendv(coord: u32, pname: u32, params: *mut f64) { windows_targets::link!("opengl32.dll" "system" fn glGetTexGendv(coord : u32, pname : u32, params : *mut f64)); - glGetTexGendv(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexGendv(coord, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexGenfv(coord: u32, pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexGenfv(coord : u32, pname : u32, params : *mut f32)); - glGetTexGenfv(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexGenfv(coord, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexGeniv(coord: u32, pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexGeniv(coord : u32, pname : u32, params : *mut i32)); - glGetTexGeniv(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexGeniv(coord, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexImage(target: u32, level: i32, format: u32, r#type: u32, pixels: *mut core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glGetTexImage(target : u32, level : i32, format : u32, r#type : u32, pixels : *mut core::ffi::c_void)); - glGetTexImage(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glGetTexImage(target, level, format, r#type, core::mem::transmute(pixels)) } #[inline] pub unsafe fn glGetTexLevelParameterfv(target: u32, level: i32, pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexLevelParameterfv(target : u32, level : i32, pname : u32, params : *mut f32)); - glGetTexLevelParameterfv(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexLevelParameterfv(target, level, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexLevelParameteriv(target: u32, level: i32, pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexLevelParameteriv(target : u32, level : i32, pname : u32, params : *mut i32)); - glGetTexLevelParameteriv(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexLevelParameteriv(target, level, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexParameterfv(target: u32, pname: u32, params: *mut f32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexParameterfv(target : u32, pname : u32, params : *mut f32)); - glGetTexParameterfv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexParameterfv(target, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glGetTexParameteriv(target: u32, pname: u32, params: *mut i32) { windows_targets::link!("opengl32.dll" "system" fn glGetTexParameteriv(target : u32, pname : u32, params : *mut i32)); - glGetTexParameteriv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glGetTexParameteriv(target, pname, core::mem::transmute(params)) } #[inline] pub unsafe fn glHint(target: u32, mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glHint(target : u32, mode : u32)); - glHint(core::mem::transmute(target), core::mem::transmute(mode)) + glHint(target, mode) } #[inline] pub unsafe fn glIndexMask(mask: u32) { windows_targets::link!("opengl32.dll" "system" fn glIndexMask(mask : u32)); - glIndexMask(core::mem::transmute(mask)) + glIndexMask(mask) } #[inline] pub unsafe fn glIndexPointer(r#type: u32, stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glIndexPointer(r#type : u32, stride : i32, pointer : *const core::ffi::c_void)); - glIndexPointer(core::mem::transmute(r#type), core::mem::transmute(stride), core::mem::transmute(pointer)) + glIndexPointer(r#type, stride, pointer) } #[inline] pub unsafe fn glIndexd(c: f64) { windows_targets::link!("opengl32.dll" "system" fn glIndexd(c : f64)); - glIndexd(core::mem::transmute(c)) + glIndexd(c) } #[inline] pub unsafe fn glIndexdv(c: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glIndexdv(c : *const f64)); - glIndexdv(core::mem::transmute(c)) + glIndexdv(c) } #[inline] pub unsafe fn glIndexf(c: f32) { windows_targets::link!("opengl32.dll" "system" fn glIndexf(c : f32)); - glIndexf(core::mem::transmute(c)) + glIndexf(c) } #[inline] pub unsafe fn glIndexfv(c: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glIndexfv(c : *const f32)); - glIndexfv(core::mem::transmute(c)) + glIndexfv(c) } #[inline] pub unsafe fn glIndexi(c: i32) { windows_targets::link!("opengl32.dll" "system" fn glIndexi(c : i32)); - glIndexi(core::mem::transmute(c)) + glIndexi(c) } #[inline] pub unsafe fn glIndexiv(c: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glIndexiv(c : *const i32)); - glIndexiv(core::mem::transmute(c)) + glIndexiv(c) } #[inline] pub unsafe fn glIndexs(c: i16) { windows_targets::link!("opengl32.dll" "system" fn glIndexs(c : i16)); - glIndexs(core::mem::transmute(c)) + glIndexs(c) } #[inline] pub unsafe fn glIndexsv(c: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glIndexsv(c : *const i16)); - glIndexsv(core::mem::transmute(c)) + glIndexsv(c) } #[inline] pub unsafe fn glIndexub(c: u8) { windows_targets::link!("opengl32.dll" "system" fn glIndexub(c : u8)); - glIndexub(core::mem::transmute(c)) + glIndexub(c) } #[inline] pub unsafe fn glIndexubv(c: *const u8) { windows_targets::link!("opengl32.dll" "system" fn glIndexubv(c : *const u8)); - glIndexubv(core::mem::transmute(c)) + glIndexubv(c) } #[inline] pub unsafe fn glInitNames() { @@ -747,77 +747,77 @@ pub unsafe fn glInitNames() { #[inline] pub unsafe fn glInterleavedArrays(format: u32, stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glInterleavedArrays(format : u32, stride : i32, pointer : *const core::ffi::c_void)); - glInterleavedArrays(core::mem::transmute(format), core::mem::transmute(stride), core::mem::transmute(pointer)) + glInterleavedArrays(format, stride, pointer) } #[inline] pub unsafe fn glIsEnabled(cap: u32) -> u8 { windows_targets::link!("opengl32.dll" "system" fn glIsEnabled(cap : u32) -> u8); - glIsEnabled(core::mem::transmute(cap)) + glIsEnabled(cap) } #[inline] pub unsafe fn glIsList(list: u32) -> u8 { windows_targets::link!("opengl32.dll" "system" fn glIsList(list : u32) -> u8); - glIsList(core::mem::transmute(list)) + glIsList(list) } #[inline] pub unsafe fn glIsTexture(texture: u32) -> u8 { windows_targets::link!("opengl32.dll" "system" fn glIsTexture(texture : u32) -> u8); - glIsTexture(core::mem::transmute(texture)) + glIsTexture(texture) } #[inline] pub unsafe fn glLightModelf(pname: u32, param1: f32) { windows_targets::link!("opengl32.dll" "system" fn glLightModelf(pname : u32, param1 : f32)); - glLightModelf(core::mem::transmute(pname), core::mem::transmute(param1)) + glLightModelf(pname, param1) } #[inline] pub unsafe fn glLightModelfv(pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glLightModelfv(pname : u32, params : *const f32)); - glLightModelfv(core::mem::transmute(pname), core::mem::transmute(params)) + glLightModelfv(pname, params) } #[inline] pub unsafe fn glLightModeli(pname: u32, param1: i32) { windows_targets::link!("opengl32.dll" "system" fn glLightModeli(pname : u32, param1 : i32)); - glLightModeli(core::mem::transmute(pname), core::mem::transmute(param1)) + glLightModeli(pname, param1) } #[inline] pub unsafe fn glLightModeliv(pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glLightModeliv(pname : u32, params : *const i32)); - glLightModeliv(core::mem::transmute(pname), core::mem::transmute(params)) + glLightModeliv(pname, params) } #[inline] pub unsafe fn glLightf(light: u32, pname: u32, param2: f32) { windows_targets::link!("opengl32.dll" "system" fn glLightf(light : u32, pname : u32, param2 : f32)); - glLightf(core::mem::transmute(light), core::mem::transmute(pname), core::mem::transmute(param2)) + glLightf(light, pname, param2) } #[inline] pub unsafe fn glLightfv(light: u32, pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glLightfv(light : u32, pname : u32, params : *const f32)); - glLightfv(core::mem::transmute(light), core::mem::transmute(pname), core::mem::transmute(params)) + glLightfv(light, pname, params) } #[inline] pub unsafe fn glLighti(light: u32, pname: u32, param2: i32) { windows_targets::link!("opengl32.dll" "system" fn glLighti(light : u32, pname : u32, param2 : i32)); - glLighti(core::mem::transmute(light), core::mem::transmute(pname), core::mem::transmute(param2)) + glLighti(light, pname, param2) } #[inline] pub unsafe fn glLightiv(light: u32, pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glLightiv(light : u32, pname : u32, params : *const i32)); - glLightiv(core::mem::transmute(light), core::mem::transmute(pname), core::mem::transmute(params)) + glLightiv(light, pname, params) } #[inline] pub unsafe fn glLineStipple(factor: i32, pattern: u16) { windows_targets::link!("opengl32.dll" "system" fn glLineStipple(factor : i32, pattern : u16)); - glLineStipple(core::mem::transmute(factor), core::mem::transmute(pattern)) + glLineStipple(factor, pattern) } #[inline] pub unsafe fn glLineWidth(width: f32) { windows_targets::link!("opengl32.dll" "system" fn glLineWidth(width : f32)); - glLineWidth(core::mem::transmute(width)) + glLineWidth(width) } #[inline] pub unsafe fn glListBase(base: u32) { windows_targets::link!("opengl32.dll" "system" fn glListBase(base : u32)); - glListBase(core::mem::transmute(base)) + glListBase(base) } #[inline] pub unsafe fn glLoadIdentity() { @@ -827,227 +827,227 @@ pub unsafe fn glLoadIdentity() { #[inline] pub unsafe fn glLoadMatrixd(m: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glLoadMatrixd(m : *const f64)); - glLoadMatrixd(core::mem::transmute(m)) + glLoadMatrixd(m) } #[inline] pub unsafe fn glLoadMatrixf(m: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glLoadMatrixf(m : *const f32)); - glLoadMatrixf(core::mem::transmute(m)) + glLoadMatrixf(m) } #[inline] pub unsafe fn glLoadName(name: u32) { windows_targets::link!("opengl32.dll" "system" fn glLoadName(name : u32)); - glLoadName(core::mem::transmute(name)) + glLoadName(name) } #[inline] pub unsafe fn glLogicOp(opcode: u32) { windows_targets::link!("opengl32.dll" "system" fn glLogicOp(opcode : u32)); - glLogicOp(core::mem::transmute(opcode)) + glLogicOp(opcode) } #[inline] pub unsafe fn glMap1d(target: u32, u1: f64, u2: f64, stride: i32, order: i32, points: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glMap1d(target : u32, u1 : f64, u2 : f64, stride : i32, order : i32, points : *const f64)); - glMap1d(core::mem::transmute(target), core::mem::transmute(u1), core::mem::transmute(u2), core::mem::transmute(stride), core::mem::transmute(order), core::mem::transmute(points)) + glMap1d(target, u1, u2, stride, order, points) } #[inline] pub unsafe fn glMap1f(target: u32, u1: f32, u2: f32, stride: i32, order: i32, points: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glMap1f(target : u32, u1 : f32, u2 : f32, stride : i32, order : i32, points : *const f32)); - glMap1f(core::mem::transmute(target), core::mem::transmute(u1), core::mem::transmute(u2), core::mem::transmute(stride), core::mem::transmute(order), core::mem::transmute(points)) + glMap1f(target, u1, u2, stride, order, points) } #[inline] pub unsafe fn glMap2d(target: u32, u1: f64, u2: f64, ustride: i32, uorder: i32, v1: f64, v2: f64, vstride: i32, vorder: i32, points: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glMap2d(target : u32, u1 : f64, u2 : f64, ustride : i32, uorder : i32, v1 : f64, v2 : f64, vstride : i32, vorder : i32, points : *const f64)); - glMap2d(core::mem::transmute(target), core::mem::transmute(u1), core::mem::transmute(u2), core::mem::transmute(ustride), core::mem::transmute(uorder), core::mem::transmute(v1), core::mem::transmute(v2), core::mem::transmute(vstride), core::mem::transmute(vorder), core::mem::transmute(points)) + glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points) } #[inline] pub unsafe fn glMap2f(target: u32, u1: f32, u2: f32, ustride: i32, uorder: i32, v1: f32, v2: f32, vstride: i32, vorder: i32, points: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glMap2f(target : u32, u1 : f32, u2 : f32, ustride : i32, uorder : i32, v1 : f32, v2 : f32, vstride : i32, vorder : i32, points : *const f32)); - glMap2f(core::mem::transmute(target), core::mem::transmute(u1), core::mem::transmute(u2), core::mem::transmute(ustride), core::mem::transmute(uorder), core::mem::transmute(v1), core::mem::transmute(v2), core::mem::transmute(vstride), core::mem::transmute(vorder), core::mem::transmute(points)) + glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points) } #[inline] pub unsafe fn glMapGrid1d(un: i32, u1: f64, u2: f64) { windows_targets::link!("opengl32.dll" "system" fn glMapGrid1d(un : i32, u1 : f64, u2 : f64)); - glMapGrid1d(core::mem::transmute(un), core::mem::transmute(u1), core::mem::transmute(u2)) + glMapGrid1d(un, u1, u2) } #[inline] pub unsafe fn glMapGrid1f(un: i32, u1: f32, u2: f32) { windows_targets::link!("opengl32.dll" "system" fn glMapGrid1f(un : i32, u1 : f32, u2 : f32)); - glMapGrid1f(core::mem::transmute(un), core::mem::transmute(u1), core::mem::transmute(u2)) + glMapGrid1f(un, u1, u2) } #[inline] pub unsafe fn glMapGrid2d(un: i32, u1: f64, u2: f64, vn: i32, v1: f64, v2: f64) { windows_targets::link!("opengl32.dll" "system" fn glMapGrid2d(un : i32, u1 : f64, u2 : f64, vn : i32, v1 : f64, v2 : f64)); - glMapGrid2d(core::mem::transmute(un), core::mem::transmute(u1), core::mem::transmute(u2), core::mem::transmute(vn), core::mem::transmute(v1), core::mem::transmute(v2)) + glMapGrid2d(un, u1, u2, vn, v1, v2) } #[inline] pub unsafe fn glMapGrid2f(un: i32, u1: f32, u2: f32, vn: i32, v1: f32, v2: f32) { windows_targets::link!("opengl32.dll" "system" fn glMapGrid2f(un : i32, u1 : f32, u2 : f32, vn : i32, v1 : f32, v2 : f32)); - glMapGrid2f(core::mem::transmute(un), core::mem::transmute(u1), core::mem::transmute(u2), core::mem::transmute(vn), core::mem::transmute(v1), core::mem::transmute(v2)) + glMapGrid2f(un, u1, u2, vn, v1, v2) } #[inline] pub unsafe fn glMaterialf(face: u32, pname: u32, param2: f32) { windows_targets::link!("opengl32.dll" "system" fn glMaterialf(face : u32, pname : u32, param2 : f32)); - glMaterialf(core::mem::transmute(face), core::mem::transmute(pname), core::mem::transmute(param2)) + glMaterialf(face, pname, param2) } #[inline] pub unsafe fn glMaterialfv(face: u32, pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glMaterialfv(face : u32, pname : u32, params : *const f32)); - glMaterialfv(core::mem::transmute(face), core::mem::transmute(pname), core::mem::transmute(params)) + glMaterialfv(face, pname, params) } #[inline] pub unsafe fn glMateriali(face: u32, pname: u32, param2: i32) { windows_targets::link!("opengl32.dll" "system" fn glMateriali(face : u32, pname : u32, param2 : i32)); - glMateriali(core::mem::transmute(face), core::mem::transmute(pname), core::mem::transmute(param2)) + glMateriali(face, pname, param2) } #[inline] pub unsafe fn glMaterialiv(face: u32, pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glMaterialiv(face : u32, pname : u32, params : *const i32)); - glMaterialiv(core::mem::transmute(face), core::mem::transmute(pname), core::mem::transmute(params)) + glMaterialiv(face, pname, params) } #[inline] pub unsafe fn glMatrixMode(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glMatrixMode(mode : u32)); - glMatrixMode(core::mem::transmute(mode)) + glMatrixMode(mode) } #[inline] pub unsafe fn glMultMatrixd(m: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glMultMatrixd(m : *const f64)); - glMultMatrixd(core::mem::transmute(m)) + glMultMatrixd(m) } #[inline] pub unsafe fn glMultMatrixf(m: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glMultMatrixf(m : *const f32)); - glMultMatrixf(core::mem::transmute(m)) + glMultMatrixf(m) } #[inline] pub unsafe fn glNewList(list: u32, mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glNewList(list : u32, mode : u32)); - glNewList(core::mem::transmute(list), core::mem::transmute(mode)) + glNewList(list, mode) } #[inline] pub unsafe fn glNormal3b(nx: i8, ny: i8, nz: i8) { windows_targets::link!("opengl32.dll" "system" fn glNormal3b(nx : i8, ny : i8, nz : i8)); - glNormal3b(core::mem::transmute(nx), core::mem::transmute(ny), core::mem::transmute(nz)) + glNormal3b(nx, ny, nz) } #[inline] pub unsafe fn glNormal3bv(v: *const i8) { windows_targets::link!("opengl32.dll" "system" fn glNormal3bv(v : *const i8)); - glNormal3bv(core::mem::transmute(v)) + glNormal3bv(v) } #[inline] pub unsafe fn glNormal3d(nx: f64, ny: f64, nz: f64) { windows_targets::link!("opengl32.dll" "system" fn glNormal3d(nx : f64, ny : f64, nz : f64)); - glNormal3d(core::mem::transmute(nx), core::mem::transmute(ny), core::mem::transmute(nz)) + glNormal3d(nx, ny, nz) } #[inline] pub unsafe fn glNormal3dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glNormal3dv(v : *const f64)); - glNormal3dv(core::mem::transmute(v)) + glNormal3dv(v) } #[inline] pub unsafe fn glNormal3f(nx: f32, ny: f32, nz: f32) { windows_targets::link!("opengl32.dll" "system" fn glNormal3f(nx : f32, ny : f32, nz : f32)); - glNormal3f(core::mem::transmute(nx), core::mem::transmute(ny), core::mem::transmute(nz)) + glNormal3f(nx, ny, nz) } #[inline] pub unsafe fn glNormal3fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glNormal3fv(v : *const f32)); - glNormal3fv(core::mem::transmute(v)) + glNormal3fv(v) } #[inline] pub unsafe fn glNormal3i(nx: i32, ny: i32, nz: i32) { windows_targets::link!("opengl32.dll" "system" fn glNormal3i(nx : i32, ny : i32, nz : i32)); - glNormal3i(core::mem::transmute(nx), core::mem::transmute(ny), core::mem::transmute(nz)) + glNormal3i(nx, ny, nz) } #[inline] pub unsafe fn glNormal3iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glNormal3iv(v : *const i32)); - glNormal3iv(core::mem::transmute(v)) + glNormal3iv(v) } #[inline] pub unsafe fn glNormal3s(nx: i16, ny: i16, nz: i16) { windows_targets::link!("opengl32.dll" "system" fn glNormal3s(nx : i16, ny : i16, nz : i16)); - glNormal3s(core::mem::transmute(nx), core::mem::transmute(ny), core::mem::transmute(nz)) + glNormal3s(nx, ny, nz) } #[inline] pub unsafe fn glNormal3sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glNormal3sv(v : *const i16)); - glNormal3sv(core::mem::transmute(v)) + glNormal3sv(v) } #[inline] pub unsafe fn glNormalPointer(r#type: u32, stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glNormalPointer(r#type : u32, stride : i32, pointer : *const core::ffi::c_void)); - glNormalPointer(core::mem::transmute(r#type), core::mem::transmute(stride), core::mem::transmute(pointer)) + glNormalPointer(r#type, stride, pointer) } #[inline] pub unsafe fn glOrtho(left: f64, right: f64, bottom: f64, top: f64, znear: f64, zfar: f64) { windows_targets::link!("opengl32.dll" "system" fn glOrtho(left : f64, right : f64, bottom : f64, top : f64, znear : f64, zfar : f64)); - glOrtho(core::mem::transmute(left), core::mem::transmute(right), core::mem::transmute(bottom), core::mem::transmute(top), core::mem::transmute(znear), core::mem::transmute(zfar)) + glOrtho(left, right, bottom, top, znear, zfar) } #[inline] pub unsafe fn glPassThrough(token: f32) { windows_targets::link!("opengl32.dll" "system" fn glPassThrough(token : f32)); - glPassThrough(core::mem::transmute(token)) + glPassThrough(token) } #[inline] pub unsafe fn glPixelMapfv(map: u32, mapsize: i32, values: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glPixelMapfv(map : u32, mapsize : i32, values : *const f32)); - glPixelMapfv(core::mem::transmute(map), core::mem::transmute(mapsize), core::mem::transmute(values)) + glPixelMapfv(map, mapsize, values) } #[inline] pub unsafe fn glPixelMapuiv(map: u32, mapsize: i32, values: *const u32) { windows_targets::link!("opengl32.dll" "system" fn glPixelMapuiv(map : u32, mapsize : i32, values : *const u32)); - glPixelMapuiv(core::mem::transmute(map), core::mem::transmute(mapsize), core::mem::transmute(values)) + glPixelMapuiv(map, mapsize, values) } #[inline] pub unsafe fn glPixelMapusv(map: u32, mapsize: i32, values: *const u16) { windows_targets::link!("opengl32.dll" "system" fn glPixelMapusv(map : u32, mapsize : i32, values : *const u16)); - glPixelMapusv(core::mem::transmute(map), core::mem::transmute(mapsize), core::mem::transmute(values)) + glPixelMapusv(map, mapsize, values) } #[inline] pub unsafe fn glPixelStoref(pname: u32, param1: f32) { windows_targets::link!("opengl32.dll" "system" fn glPixelStoref(pname : u32, param1 : f32)); - glPixelStoref(core::mem::transmute(pname), core::mem::transmute(param1)) + glPixelStoref(pname, param1) } #[inline] pub unsafe fn glPixelStorei(pname: u32, param1: i32) { windows_targets::link!("opengl32.dll" "system" fn glPixelStorei(pname : u32, param1 : i32)); - glPixelStorei(core::mem::transmute(pname), core::mem::transmute(param1)) + glPixelStorei(pname, param1) } #[inline] pub unsafe fn glPixelTransferf(pname: u32, param1: f32) { windows_targets::link!("opengl32.dll" "system" fn glPixelTransferf(pname : u32, param1 : f32)); - glPixelTransferf(core::mem::transmute(pname), core::mem::transmute(param1)) + glPixelTransferf(pname, param1) } #[inline] pub unsafe fn glPixelTransferi(pname: u32, param1: i32) { windows_targets::link!("opengl32.dll" "system" fn glPixelTransferi(pname : u32, param1 : i32)); - glPixelTransferi(core::mem::transmute(pname), core::mem::transmute(param1)) + glPixelTransferi(pname, param1) } #[inline] pub unsafe fn glPixelZoom(xfactor: f32, yfactor: f32) { windows_targets::link!("opengl32.dll" "system" fn glPixelZoom(xfactor : f32, yfactor : f32)); - glPixelZoom(core::mem::transmute(xfactor), core::mem::transmute(yfactor)) + glPixelZoom(xfactor, yfactor) } #[inline] pub unsafe fn glPointSize(size: f32) { windows_targets::link!("opengl32.dll" "system" fn glPointSize(size : f32)); - glPointSize(core::mem::transmute(size)) + glPointSize(size) } #[inline] pub unsafe fn glPolygonMode(face: u32, mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glPolygonMode(face : u32, mode : u32)); - glPolygonMode(core::mem::transmute(face), core::mem::transmute(mode)) + glPolygonMode(face, mode) } #[inline] pub unsafe fn glPolygonOffset(factor: f32, units: f32) { windows_targets::link!("opengl32.dll" "system" fn glPolygonOffset(factor : f32, units : f32)); - glPolygonOffset(core::mem::transmute(factor), core::mem::transmute(units)) + glPolygonOffset(factor, units) } #[inline] pub unsafe fn glPolygonStipple(mask: *const u8) { windows_targets::link!("opengl32.dll" "system" fn glPolygonStipple(mask : *const u8)); - glPolygonStipple(core::mem::transmute(mask)) + glPolygonStipple(mask) } #[inline] pub unsafe fn glPopAttrib() { @@ -1072,17 +1072,17 @@ pub unsafe fn glPopName() { #[inline] pub unsafe fn glPrioritizeTextures(n: i32, textures: *const u32, priorities: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glPrioritizeTextures(n : i32, textures : *const u32, priorities : *const f32)); - glPrioritizeTextures(core::mem::transmute(n), core::mem::transmute(textures), core::mem::transmute(priorities)) + glPrioritizeTextures(n, textures, priorities) } #[inline] pub unsafe fn glPushAttrib(mask: u32) { windows_targets::link!("opengl32.dll" "system" fn glPushAttrib(mask : u32)); - glPushAttrib(core::mem::transmute(mask)) + glPushAttrib(mask) } #[inline] pub unsafe fn glPushClientAttrib(mask: u32) { windows_targets::link!("opengl32.dll" "system" fn glPushClientAttrib(mask : u32)); - glPushClientAttrib(core::mem::transmute(mask)) + glPushClientAttrib(mask) } #[inline] pub unsafe fn glPushMatrix() { @@ -1092,627 +1092,627 @@ pub unsafe fn glPushMatrix() { #[inline] pub unsafe fn glPushName(name: u32) { windows_targets::link!("opengl32.dll" "system" fn glPushName(name : u32)); - glPushName(core::mem::transmute(name)) + glPushName(name) } #[inline] pub unsafe fn glRasterPos2d(x: f64, y: f64) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2d(x : f64, y : f64)); - glRasterPos2d(core::mem::transmute(x), core::mem::transmute(y)) + glRasterPos2d(x, y) } #[inline] pub unsafe fn glRasterPos2dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2dv(v : *const f64)); - glRasterPos2dv(core::mem::transmute(v)) + glRasterPos2dv(v) } #[inline] pub unsafe fn glRasterPos2f(x: f32, y: f32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2f(x : f32, y : f32)); - glRasterPos2f(core::mem::transmute(x), core::mem::transmute(y)) + glRasterPos2f(x, y) } #[inline] pub unsafe fn glRasterPos2fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2fv(v : *const f32)); - glRasterPos2fv(core::mem::transmute(v)) + glRasterPos2fv(v) } #[inline] pub unsafe fn glRasterPos2i(x: i32, y: i32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2i(x : i32, y : i32)); - glRasterPos2i(core::mem::transmute(x), core::mem::transmute(y)) + glRasterPos2i(x, y) } #[inline] pub unsafe fn glRasterPos2iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2iv(v : *const i32)); - glRasterPos2iv(core::mem::transmute(v)) + glRasterPos2iv(v) } #[inline] pub unsafe fn glRasterPos2s(x: i16, y: i16) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2s(x : i16, y : i16)); - glRasterPos2s(core::mem::transmute(x), core::mem::transmute(y)) + glRasterPos2s(x, y) } #[inline] pub unsafe fn glRasterPos2sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos2sv(v : *const i16)); - glRasterPos2sv(core::mem::transmute(v)) + glRasterPos2sv(v) } #[inline] pub unsafe fn glRasterPos3d(x: f64, y: f64, z: f64) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3d(x : f64, y : f64, z : f64)); - glRasterPos3d(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glRasterPos3d(x, y, z) } #[inline] pub unsafe fn glRasterPos3dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3dv(v : *const f64)); - glRasterPos3dv(core::mem::transmute(v)) + glRasterPos3dv(v) } #[inline] pub unsafe fn glRasterPos3f(x: f32, y: f32, z: f32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3f(x : f32, y : f32, z : f32)); - glRasterPos3f(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glRasterPos3f(x, y, z) } #[inline] pub unsafe fn glRasterPos3fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3fv(v : *const f32)); - glRasterPos3fv(core::mem::transmute(v)) + glRasterPos3fv(v) } #[inline] pub unsafe fn glRasterPos3i(x: i32, y: i32, z: i32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3i(x : i32, y : i32, z : i32)); - glRasterPos3i(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glRasterPos3i(x, y, z) } #[inline] pub unsafe fn glRasterPos3iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3iv(v : *const i32)); - glRasterPos3iv(core::mem::transmute(v)) + glRasterPos3iv(v) } #[inline] pub unsafe fn glRasterPos3s(x: i16, y: i16, z: i16) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3s(x : i16, y : i16, z : i16)); - glRasterPos3s(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glRasterPos3s(x, y, z) } #[inline] pub unsafe fn glRasterPos3sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos3sv(v : *const i16)); - glRasterPos3sv(core::mem::transmute(v)) + glRasterPos3sv(v) } #[inline] pub unsafe fn glRasterPos4d(x: f64, y: f64, z: f64, w: f64) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4d(x : f64, y : f64, z : f64, w : f64)); - glRasterPos4d(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glRasterPos4d(x, y, z, w) } #[inline] pub unsafe fn glRasterPos4dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4dv(v : *const f64)); - glRasterPos4dv(core::mem::transmute(v)) + glRasterPos4dv(v) } #[inline] pub unsafe fn glRasterPos4f(x: f32, y: f32, z: f32, w: f32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4f(x : f32, y : f32, z : f32, w : f32)); - glRasterPos4f(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glRasterPos4f(x, y, z, w) } #[inline] pub unsafe fn glRasterPos4fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4fv(v : *const f32)); - glRasterPos4fv(core::mem::transmute(v)) + glRasterPos4fv(v) } #[inline] pub unsafe fn glRasterPos4i(x: i32, y: i32, z: i32, w: i32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4i(x : i32, y : i32, z : i32, w : i32)); - glRasterPos4i(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glRasterPos4i(x, y, z, w) } #[inline] pub unsafe fn glRasterPos4iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4iv(v : *const i32)); - glRasterPos4iv(core::mem::transmute(v)) + glRasterPos4iv(v) } #[inline] pub unsafe fn glRasterPos4s(x: i16, y: i16, z: i16, w: i16) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4s(x : i16, y : i16, z : i16, w : i16)); - glRasterPos4s(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glRasterPos4s(x, y, z, w) } #[inline] pub unsafe fn glRasterPos4sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glRasterPos4sv(v : *const i16)); - glRasterPos4sv(core::mem::transmute(v)) + glRasterPos4sv(v) } #[inline] pub unsafe fn glReadBuffer(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glReadBuffer(mode : u32)); - glReadBuffer(core::mem::transmute(mode)) + glReadBuffer(mode) } #[inline] pub unsafe fn glReadPixels(x: i32, y: i32, width: i32, height: i32, format: u32, r#type: u32, pixels: *mut core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glReadPixels(x : i32, y : i32, width : i32, height : i32, format : u32, r#type : u32, pixels : *mut core::ffi::c_void)); - glReadPixels(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glReadPixels(x, y, width, height, format, r#type, core::mem::transmute(pixels)) } #[inline] pub unsafe fn glRectd(x1: f64, y1: f64, x2: f64, y2: f64) { windows_targets::link!("opengl32.dll" "system" fn glRectd(x1 : f64, y1 : f64, x2 : f64, y2 : f64)); - glRectd(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + glRectd(x1, y1, x2, y2) } #[inline] pub unsafe fn glRectdv(v1: *const f64, v2: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glRectdv(v1 : *const f64, v2 : *const f64)); - glRectdv(core::mem::transmute(v1), core::mem::transmute(v2)) + glRectdv(v1, v2) } #[inline] pub unsafe fn glRectf(x1: f32, y1: f32, x2: f32, y2: f32) { windows_targets::link!("opengl32.dll" "system" fn glRectf(x1 : f32, y1 : f32, x2 : f32, y2 : f32)); - glRectf(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + glRectf(x1, y1, x2, y2) } #[inline] pub unsafe fn glRectfv(v1: *const f32, v2: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glRectfv(v1 : *const f32, v2 : *const f32)); - glRectfv(core::mem::transmute(v1), core::mem::transmute(v2)) + glRectfv(v1, v2) } #[inline] pub unsafe fn glRecti(x1: i32, y1: i32, x2: i32, y2: i32) { windows_targets::link!("opengl32.dll" "system" fn glRecti(x1 : i32, y1 : i32, x2 : i32, y2 : i32)); - glRecti(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + glRecti(x1, y1, x2, y2) } #[inline] pub unsafe fn glRectiv(v1: *const i32, v2: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glRectiv(v1 : *const i32, v2 : *const i32)); - glRectiv(core::mem::transmute(v1), core::mem::transmute(v2)) + glRectiv(v1, v2) } #[inline] pub unsafe fn glRects(x1: i16, y1: i16, x2: i16, y2: i16) { windows_targets::link!("opengl32.dll" "system" fn glRects(x1 : i16, y1 : i16, x2 : i16, y2 : i16)); - glRects(core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2)) + glRects(x1, y1, x2, y2) } #[inline] pub unsafe fn glRectsv(v1: *const i16, v2: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glRectsv(v1 : *const i16, v2 : *const i16)); - glRectsv(core::mem::transmute(v1), core::mem::transmute(v2)) + glRectsv(v1, v2) } #[inline] pub unsafe fn glRenderMode(mode: u32) -> i32 { windows_targets::link!("opengl32.dll" "system" fn glRenderMode(mode : u32) -> i32); - glRenderMode(core::mem::transmute(mode)) + glRenderMode(mode) } #[inline] pub unsafe fn glRotated(angle: f64, x: f64, y: f64, z: f64) { windows_targets::link!("opengl32.dll" "system" fn glRotated(angle : f64, x : f64, y : f64, z : f64)); - glRotated(core::mem::transmute(angle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glRotated(angle, x, y, z) } #[inline] pub unsafe fn glRotatef(angle: f32, x: f32, y: f32, z: f32) { windows_targets::link!("opengl32.dll" "system" fn glRotatef(angle : f32, x : f32, y : f32, z : f32)); - glRotatef(core::mem::transmute(angle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glRotatef(angle, x, y, z) } #[inline] pub unsafe fn glScaled(x: f64, y: f64, z: f64) { windows_targets::link!("opengl32.dll" "system" fn glScaled(x : f64, y : f64, z : f64)); - glScaled(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glScaled(x, y, z) } #[inline] pub unsafe fn glScalef(x: f32, y: f32, z: f32) { windows_targets::link!("opengl32.dll" "system" fn glScalef(x : f32, y : f32, z : f32)); - glScalef(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glScalef(x, y, z) } #[inline] pub unsafe fn glScissor(x: i32, y: i32, width: i32, height: i32) { windows_targets::link!("opengl32.dll" "system" fn glScissor(x : i32, y : i32, width : i32, height : i32)); - glScissor(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + glScissor(x, y, width, height) } #[inline] pub unsafe fn glSelectBuffer(size: i32, buffer: *mut u32) { windows_targets::link!("opengl32.dll" "system" fn glSelectBuffer(size : i32, buffer : *mut u32)); - glSelectBuffer(core::mem::transmute(size), core::mem::transmute(buffer)) + glSelectBuffer(size, core::mem::transmute(buffer)) } #[inline] pub unsafe fn glShadeModel(mode: u32) { windows_targets::link!("opengl32.dll" "system" fn glShadeModel(mode : u32)); - glShadeModel(core::mem::transmute(mode)) + glShadeModel(mode) } #[inline] pub unsafe fn glStencilFunc(func: u32, r#ref: i32, mask: u32) { windows_targets::link!("opengl32.dll" "system" fn glStencilFunc(func : u32, r#ref : i32, mask : u32)); - glStencilFunc(core::mem::transmute(func), core::mem::transmute(r#ref), core::mem::transmute(mask)) + glStencilFunc(func, r#ref, mask) } #[inline] pub unsafe fn glStencilMask(mask: u32) { windows_targets::link!("opengl32.dll" "system" fn glStencilMask(mask : u32)); - glStencilMask(core::mem::transmute(mask)) + glStencilMask(mask) } #[inline] pub unsafe fn glStencilOp(fail: u32, zfail: u32, zpass: u32) { windows_targets::link!("opengl32.dll" "system" fn glStencilOp(fail : u32, zfail : u32, zpass : u32)); - glStencilOp(core::mem::transmute(fail), core::mem::transmute(zfail), core::mem::transmute(zpass)) + glStencilOp(fail, zfail, zpass) } #[inline] pub unsafe fn glTexCoord1d(s: f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1d(s : f64)); - glTexCoord1d(core::mem::transmute(s)) + glTexCoord1d(s) } #[inline] pub unsafe fn glTexCoord1dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1dv(v : *const f64)); - glTexCoord1dv(core::mem::transmute(v)) + glTexCoord1dv(v) } #[inline] pub unsafe fn glTexCoord1f(s: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1f(s : f32)); - glTexCoord1f(core::mem::transmute(s)) + glTexCoord1f(s) } #[inline] pub unsafe fn glTexCoord1fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1fv(v : *const f32)); - glTexCoord1fv(core::mem::transmute(v)) + glTexCoord1fv(v) } #[inline] pub unsafe fn glTexCoord1i(s: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1i(s : i32)); - glTexCoord1i(core::mem::transmute(s)) + glTexCoord1i(s) } #[inline] pub unsafe fn glTexCoord1iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1iv(v : *const i32)); - glTexCoord1iv(core::mem::transmute(v)) + glTexCoord1iv(v) } #[inline] pub unsafe fn glTexCoord1s(s: i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1s(s : i16)); - glTexCoord1s(core::mem::transmute(s)) + glTexCoord1s(s) } #[inline] pub unsafe fn glTexCoord1sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord1sv(v : *const i16)); - glTexCoord1sv(core::mem::transmute(v)) + glTexCoord1sv(v) } #[inline] pub unsafe fn glTexCoord2d(s: f64, t: f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2d(s : f64, t : f64)); - glTexCoord2d(core::mem::transmute(s), core::mem::transmute(t)) + glTexCoord2d(s, t) } #[inline] pub unsafe fn glTexCoord2dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2dv(v : *const f64)); - glTexCoord2dv(core::mem::transmute(v)) + glTexCoord2dv(v) } #[inline] pub unsafe fn glTexCoord2f(s: f32, t: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2f(s : f32, t : f32)); - glTexCoord2f(core::mem::transmute(s), core::mem::transmute(t)) + glTexCoord2f(s, t) } #[inline] pub unsafe fn glTexCoord2fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2fv(v : *const f32)); - glTexCoord2fv(core::mem::transmute(v)) + glTexCoord2fv(v) } #[inline] pub unsafe fn glTexCoord2i(s: i32, t: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2i(s : i32, t : i32)); - glTexCoord2i(core::mem::transmute(s), core::mem::transmute(t)) + glTexCoord2i(s, t) } #[inline] pub unsafe fn glTexCoord2iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2iv(v : *const i32)); - glTexCoord2iv(core::mem::transmute(v)) + glTexCoord2iv(v) } #[inline] pub unsafe fn glTexCoord2s(s: i16, t: i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2s(s : i16, t : i16)); - glTexCoord2s(core::mem::transmute(s), core::mem::transmute(t)) + glTexCoord2s(s, t) } #[inline] pub unsafe fn glTexCoord2sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord2sv(v : *const i16)); - glTexCoord2sv(core::mem::transmute(v)) + glTexCoord2sv(v) } #[inline] pub unsafe fn glTexCoord3d(s: f64, t: f64, r: f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3d(s : f64, t : f64, r : f64)); - glTexCoord3d(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r)) + glTexCoord3d(s, t, r) } #[inline] pub unsafe fn glTexCoord3dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3dv(v : *const f64)); - glTexCoord3dv(core::mem::transmute(v)) + glTexCoord3dv(v) } #[inline] pub unsafe fn glTexCoord3f(s: f32, t: f32, r: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3f(s : f32, t : f32, r : f32)); - glTexCoord3f(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r)) + glTexCoord3f(s, t, r) } #[inline] pub unsafe fn glTexCoord3fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3fv(v : *const f32)); - glTexCoord3fv(core::mem::transmute(v)) + glTexCoord3fv(v) } #[inline] pub unsafe fn glTexCoord3i(s: i32, t: i32, r: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3i(s : i32, t : i32, r : i32)); - glTexCoord3i(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r)) + glTexCoord3i(s, t, r) } #[inline] pub unsafe fn glTexCoord3iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3iv(v : *const i32)); - glTexCoord3iv(core::mem::transmute(v)) + glTexCoord3iv(v) } #[inline] pub unsafe fn glTexCoord3s(s: i16, t: i16, r: i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3s(s : i16, t : i16, r : i16)); - glTexCoord3s(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r)) + glTexCoord3s(s, t, r) } #[inline] pub unsafe fn glTexCoord3sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord3sv(v : *const i16)); - glTexCoord3sv(core::mem::transmute(v)) + glTexCoord3sv(v) } #[inline] pub unsafe fn glTexCoord4d(s: f64, t: f64, r: f64, q: f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4d(s : f64, t : f64, r : f64, q : f64)); - glTexCoord4d(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r), core::mem::transmute(q)) + glTexCoord4d(s, t, r, q) } #[inline] pub unsafe fn glTexCoord4dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4dv(v : *const f64)); - glTexCoord4dv(core::mem::transmute(v)) + glTexCoord4dv(v) } #[inline] pub unsafe fn glTexCoord4f(s: f32, t: f32, r: f32, q: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4f(s : f32, t : f32, r : f32, q : f32)); - glTexCoord4f(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r), core::mem::transmute(q)) + glTexCoord4f(s, t, r, q) } #[inline] pub unsafe fn glTexCoord4fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4fv(v : *const f32)); - glTexCoord4fv(core::mem::transmute(v)) + glTexCoord4fv(v) } #[inline] pub unsafe fn glTexCoord4i(s: i32, t: i32, r: i32, q: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4i(s : i32, t : i32, r : i32, q : i32)); - glTexCoord4i(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r), core::mem::transmute(q)) + glTexCoord4i(s, t, r, q) } #[inline] pub unsafe fn glTexCoord4iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4iv(v : *const i32)); - glTexCoord4iv(core::mem::transmute(v)) + glTexCoord4iv(v) } #[inline] pub unsafe fn glTexCoord4s(s: i16, t: i16, r: i16, q: i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4s(s : i16, t : i16, r : i16, q : i16)); - glTexCoord4s(core::mem::transmute(s), core::mem::transmute(t), core::mem::transmute(r), core::mem::transmute(q)) + glTexCoord4s(s, t, r, q) } #[inline] pub unsafe fn glTexCoord4sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glTexCoord4sv(v : *const i16)); - glTexCoord4sv(core::mem::transmute(v)) + glTexCoord4sv(v) } #[inline] pub unsafe fn glTexCoordPointer(size: i32, r#type: u32, stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glTexCoordPointer(size : i32, r#type : u32, stride : i32, pointer : *const core::ffi::c_void)); - glTexCoordPointer(core::mem::transmute(size), core::mem::transmute(r#type), core::mem::transmute(stride), core::mem::transmute(pointer)) + glTexCoordPointer(size, r#type, stride, pointer) } #[inline] pub unsafe fn glTexEnvf(target: u32, pname: u32, param2: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexEnvf(target : u32, pname : u32, param2 : f32)); - glTexEnvf(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexEnvf(target, pname, param2) } #[inline] pub unsafe fn glTexEnvfv(target: u32, pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexEnvfv(target : u32, pname : u32, params : *const f32)); - glTexEnvfv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glTexEnvfv(target, pname, params) } #[inline] pub unsafe fn glTexEnvi(target: u32, pname: u32, param2: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexEnvi(target : u32, pname : u32, param2 : i32)); - glTexEnvi(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexEnvi(target, pname, param2) } #[inline] pub unsafe fn glTexEnviv(target: u32, pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexEnviv(target : u32, pname : u32, params : *const i32)); - glTexEnviv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glTexEnviv(target, pname, params) } #[inline] pub unsafe fn glTexGend(coord: u32, pname: u32, param2: f64) { windows_targets::link!("opengl32.dll" "system" fn glTexGend(coord : u32, pname : u32, param2 : f64)); - glTexGend(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexGend(coord, pname, param2) } #[inline] pub unsafe fn glTexGendv(coord: u32, pname: u32, params: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glTexGendv(coord : u32, pname : u32, params : *const f64)); - glTexGendv(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(params)) + glTexGendv(coord, pname, params) } #[inline] pub unsafe fn glTexGenf(coord: u32, pname: u32, param2: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexGenf(coord : u32, pname : u32, param2 : f32)); - glTexGenf(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexGenf(coord, pname, param2) } #[inline] pub unsafe fn glTexGenfv(coord: u32, pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexGenfv(coord : u32, pname : u32, params : *const f32)); - glTexGenfv(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(params)) + glTexGenfv(coord, pname, params) } #[inline] pub unsafe fn glTexGeni(coord: u32, pname: u32, param2: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexGeni(coord : u32, pname : u32, param2 : i32)); - glTexGeni(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexGeni(coord, pname, param2) } #[inline] pub unsafe fn glTexGeniv(coord: u32, pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexGeniv(coord : u32, pname : u32, params : *const i32)); - glTexGeniv(core::mem::transmute(coord), core::mem::transmute(pname), core::mem::transmute(params)) + glTexGeniv(coord, pname, params) } #[inline] pub unsafe fn glTexImage1D(target: u32, level: i32, internalformat: i32, width: i32, border: i32, format: u32, r#type: u32, pixels: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glTexImage1D(target : u32, level : i32, internalformat : i32, width : i32, border : i32, format : u32, r#type : u32, pixels : *const core::ffi::c_void)); - glTexImage1D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(internalformat), core::mem::transmute(width), core::mem::transmute(border), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glTexImage1D(target, level, internalformat, width, border, format, r#type, pixels) } #[inline] pub unsafe fn glTexImage2D(target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, r#type: u32, pixels: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glTexImage2D(target : u32, level : i32, internalformat : i32, width : i32, height : i32, border : i32, format : u32, r#type : u32, pixels : *const core::ffi::c_void)); - glTexImage2D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(internalformat), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(border), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glTexImage2D(target, level, internalformat, width, height, border, format, r#type, pixels) } #[inline] pub unsafe fn glTexParameterf(target: u32, pname: u32, param2: f32) { windows_targets::link!("opengl32.dll" "system" fn glTexParameterf(target : u32, pname : u32, param2 : f32)); - glTexParameterf(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexParameterf(target, pname, param2) } #[inline] pub unsafe fn glTexParameterfv(target: u32, pname: u32, params: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glTexParameterfv(target : u32, pname : u32, params : *const f32)); - glTexParameterfv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glTexParameterfv(target, pname, params) } #[inline] pub unsafe fn glTexParameteri(target: u32, pname: u32, param2: i32) { windows_targets::link!("opengl32.dll" "system" fn glTexParameteri(target : u32, pname : u32, param2 : i32)); - glTexParameteri(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(param2)) + glTexParameteri(target, pname, param2) } #[inline] pub unsafe fn glTexParameteriv(target: u32, pname: u32, params: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glTexParameteriv(target : u32, pname : u32, params : *const i32)); - glTexParameteriv(core::mem::transmute(target), core::mem::transmute(pname), core::mem::transmute(params)) + glTexParameteriv(target, pname, params) } #[inline] pub unsafe fn glTexSubImage1D(target: u32, level: i32, xoffset: i32, width: i32, format: u32, r#type: u32, pixels: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glTexSubImage1D(target : u32, level : i32, xoffset : i32, width : i32, format : u32, r#type : u32, pixels : *const core::ffi::c_void)); - glTexSubImage1D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(xoffset), core::mem::transmute(width), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glTexSubImage1D(target, level, xoffset, width, format, r#type, pixels) } #[inline] pub unsafe fn glTexSubImage2D(target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, r#type: u32, pixels: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glTexSubImage2D(target : u32, level : i32, xoffset : i32, yoffset : i32, width : i32, height : i32, format : u32, r#type : u32, pixels : *const core::ffi::c_void)); - glTexSubImage2D(core::mem::transmute(target), core::mem::transmute(level), core::mem::transmute(xoffset), core::mem::transmute(yoffset), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(pixels)) + glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, r#type, pixels) } #[inline] pub unsafe fn glTranslated(x: f64, y: f64, z: f64) { windows_targets::link!("opengl32.dll" "system" fn glTranslated(x : f64, y : f64, z : f64)); - glTranslated(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glTranslated(x, y, z) } #[inline] pub unsafe fn glTranslatef(x: f32, y: f32, z: f32) { windows_targets::link!("opengl32.dll" "system" fn glTranslatef(x : f32, y : f32, z : f32)); - glTranslatef(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glTranslatef(x, y, z) } #[inline] pub unsafe fn glVertex2d(x: f64, y: f64) { windows_targets::link!("opengl32.dll" "system" fn glVertex2d(x : f64, y : f64)); - glVertex2d(core::mem::transmute(x), core::mem::transmute(y)) + glVertex2d(x, y) } #[inline] pub unsafe fn glVertex2dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glVertex2dv(v : *const f64)); - glVertex2dv(core::mem::transmute(v)) + glVertex2dv(v) } #[inline] pub unsafe fn glVertex2f(x: f32, y: f32) { windows_targets::link!("opengl32.dll" "system" fn glVertex2f(x : f32, y : f32)); - glVertex2f(core::mem::transmute(x), core::mem::transmute(y)) + glVertex2f(x, y) } #[inline] pub unsafe fn glVertex2fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glVertex2fv(v : *const f32)); - glVertex2fv(core::mem::transmute(v)) + glVertex2fv(v) } #[inline] pub unsafe fn glVertex2i(x: i32, y: i32) { windows_targets::link!("opengl32.dll" "system" fn glVertex2i(x : i32, y : i32)); - glVertex2i(core::mem::transmute(x), core::mem::transmute(y)) + glVertex2i(x, y) } #[inline] pub unsafe fn glVertex2iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glVertex2iv(v : *const i32)); - glVertex2iv(core::mem::transmute(v)) + glVertex2iv(v) } #[inline] pub unsafe fn glVertex2s(x: i16, y: i16) { windows_targets::link!("opengl32.dll" "system" fn glVertex2s(x : i16, y : i16)); - glVertex2s(core::mem::transmute(x), core::mem::transmute(y)) + glVertex2s(x, y) } #[inline] pub unsafe fn glVertex2sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glVertex2sv(v : *const i16)); - glVertex2sv(core::mem::transmute(v)) + glVertex2sv(v) } #[inline] pub unsafe fn glVertex3d(x: f64, y: f64, z: f64) { windows_targets::link!("opengl32.dll" "system" fn glVertex3d(x : f64, y : f64, z : f64)); - glVertex3d(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glVertex3d(x, y, z) } #[inline] pub unsafe fn glVertex3dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glVertex3dv(v : *const f64)); - glVertex3dv(core::mem::transmute(v)) + glVertex3dv(v) } #[inline] pub unsafe fn glVertex3f(x: f32, y: f32, z: f32) { windows_targets::link!("opengl32.dll" "system" fn glVertex3f(x : f32, y : f32, z : f32)); - glVertex3f(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glVertex3f(x, y, z) } #[inline] pub unsafe fn glVertex3fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glVertex3fv(v : *const f32)); - glVertex3fv(core::mem::transmute(v)) + glVertex3fv(v) } #[inline] pub unsafe fn glVertex3i(x: i32, y: i32, z: i32) { windows_targets::link!("opengl32.dll" "system" fn glVertex3i(x : i32, y : i32, z : i32)); - glVertex3i(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glVertex3i(x, y, z) } #[inline] pub unsafe fn glVertex3iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glVertex3iv(v : *const i32)); - glVertex3iv(core::mem::transmute(v)) + glVertex3iv(v) } #[inline] pub unsafe fn glVertex3s(x: i16, y: i16, z: i16) { windows_targets::link!("opengl32.dll" "system" fn glVertex3s(x : i16, y : i16, z : i16)); - glVertex3s(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + glVertex3s(x, y, z) } #[inline] pub unsafe fn glVertex3sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glVertex3sv(v : *const i16)); - glVertex3sv(core::mem::transmute(v)) + glVertex3sv(v) } #[inline] pub unsafe fn glVertex4d(x: f64, y: f64, z: f64, w: f64) { windows_targets::link!("opengl32.dll" "system" fn glVertex4d(x : f64, y : f64, z : f64, w : f64)); - glVertex4d(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glVertex4d(x, y, z, w) } #[inline] pub unsafe fn glVertex4dv(v: *const f64) { windows_targets::link!("opengl32.dll" "system" fn glVertex4dv(v : *const f64)); - glVertex4dv(core::mem::transmute(v)) + glVertex4dv(v) } #[inline] pub unsafe fn glVertex4f(x: f32, y: f32, z: f32, w: f32) { windows_targets::link!("opengl32.dll" "system" fn glVertex4f(x : f32, y : f32, z : f32, w : f32)); - glVertex4f(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glVertex4f(x, y, z, w) } #[inline] pub unsafe fn glVertex4fv(v: *const f32) { windows_targets::link!("opengl32.dll" "system" fn glVertex4fv(v : *const f32)); - glVertex4fv(core::mem::transmute(v)) + glVertex4fv(v) } #[inline] pub unsafe fn glVertex4i(x: i32, y: i32, z: i32, w: i32) { windows_targets::link!("opengl32.dll" "system" fn glVertex4i(x : i32, y : i32, z : i32, w : i32)); - glVertex4i(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glVertex4i(x, y, z, w) } #[inline] pub unsafe fn glVertex4iv(v: *const i32) { windows_targets::link!("opengl32.dll" "system" fn glVertex4iv(v : *const i32)); - glVertex4iv(core::mem::transmute(v)) + glVertex4iv(v) } #[inline] pub unsafe fn glVertex4s(x: i16, y: i16, z: i16, w: i16) { windows_targets::link!("opengl32.dll" "system" fn glVertex4s(x : i16, y : i16, z : i16, w : i16)); - glVertex4s(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)) + glVertex4s(x, y, z, w) } #[inline] pub unsafe fn glVertex4sv(v: *const i16) { windows_targets::link!("opengl32.dll" "system" fn glVertex4sv(v : *const i16)); - glVertex4sv(core::mem::transmute(v)) + glVertex4sv(v) } #[inline] pub unsafe fn glVertexPointer(size: i32, r#type: u32, stride: i32, pointer: *const core::ffi::c_void) { windows_targets::link!("opengl32.dll" "system" fn glVertexPointer(size : i32, r#type : u32, stride : i32, pointer : *const core::ffi::c_void)); - glVertexPointer(core::mem::transmute(size), core::mem::transmute(r#type), core::mem::transmute(stride), core::mem::transmute(pointer)) + glVertexPointer(size, r#type, stride, pointer) } #[inline] pub unsafe fn glViewport(x: i32, y: i32, width: i32, height: i32) { windows_targets::link!("opengl32.dll" "system" fn glViewport(x : i32, y : i32, width : i32, height : i32)); - glViewport(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height)) + glViewport(x, y, width, height) } #[inline] pub unsafe fn gluBeginCurve(nobj: *mut GLUnurbs) { @@ -1737,17 +1737,17 @@ pub unsafe fn gluBeginTrim(nobj: *mut GLUnurbs) { #[inline] pub unsafe fn gluBuild1DMipmaps(target: u32, components: i32, width: i32, format: u32, r#type: u32, data: *const core::ffi::c_void) -> i32 { windows_targets::link!("glu32.dll" "system" fn gluBuild1DMipmaps(target : u32, components : i32, width : i32, format : u32, r#type : u32, data : *const core::ffi::c_void) -> i32); - gluBuild1DMipmaps(core::mem::transmute(target), core::mem::transmute(components), core::mem::transmute(width), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(data)) + gluBuild1DMipmaps(target, components, width, format, r#type, data) } #[inline] pub unsafe fn gluBuild2DMipmaps(target: u32, components: i32, width: i32, height: i32, format: u32, r#type: u32, data: *const core::ffi::c_void) -> i32 { windows_targets::link!("glu32.dll" "system" fn gluBuild2DMipmaps(target : u32, components : i32, width : i32, height : i32, format : u32, r#type : u32, data : *const core::ffi::c_void) -> i32); - gluBuild2DMipmaps(core::mem::transmute(target), core::mem::transmute(components), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(r#type), core::mem::transmute(data)) + gluBuild2DMipmaps(target, components, width, height, format, r#type, data) } #[inline] pub unsafe fn gluCylinder(qobj: *mut GLUquadric, baseradius: f64, topradius: f64, height: f64, slices: i32, stacks: i32) { windows_targets::link!("glu32.dll" "system" fn gluCylinder(qobj : *mut GLUquadric, baseradius : f64, topradius : f64, height : f64, slices : i32, stacks : i32)); - gluCylinder(core::mem::transmute(qobj), core::mem::transmute(baseradius), core::mem::transmute(topradius), core::mem::transmute(height), core::mem::transmute(slices), core::mem::transmute(stacks)) + gluCylinder(core::mem::transmute(qobj), baseradius, topradius, height, slices, stacks) } #[inline] pub unsafe fn gluDeleteNurbsRenderer(nobj: *mut GLUnurbs) { @@ -1767,7 +1767,7 @@ pub unsafe fn gluDeleteTess(tess: *mut GLUtesselator) { #[inline] pub unsafe fn gluDisk(qobj: *mut GLUquadric, innerradius: f64, outerradius: f64, slices: i32, loops: i32) { windows_targets::link!("glu32.dll" "system" fn gluDisk(qobj : *mut GLUquadric, innerradius : f64, outerradius : f64, slices : i32, loops : i32)); - gluDisk(core::mem::transmute(qobj), core::mem::transmute(innerradius), core::mem::transmute(outerradius), core::mem::transmute(slices), core::mem::transmute(loops)) + gluDisk(core::mem::transmute(qobj), innerradius, outerradius, slices, loops) } #[inline] pub unsafe fn gluEndCurve(nobj: *mut GLUnurbs) { @@ -1792,37 +1792,37 @@ pub unsafe fn gluEndTrim(nobj: *mut GLUnurbs) { #[inline] pub unsafe fn gluErrorString(errcode: u32) -> *mut u8 { windows_targets::link!("glu32.dll" "system" fn gluErrorString(errcode : u32) -> *mut u8); - gluErrorString(core::mem::transmute(errcode)) + gluErrorString(errcode) } #[inline] pub unsafe fn gluErrorUnicodeStringEXT(errcode: u32) -> windows_core::PCWSTR { windows_targets::link!("glu32.dll" "system" fn gluErrorUnicodeStringEXT(errcode : u32) -> windows_core::PCWSTR); - gluErrorUnicodeStringEXT(core::mem::transmute(errcode)) + gluErrorUnicodeStringEXT(errcode) } #[inline] pub unsafe fn gluGetNurbsProperty(nobj: *mut GLUnurbs, property: u32, value: *mut f32) { windows_targets::link!("glu32.dll" "system" fn gluGetNurbsProperty(nobj : *mut GLUnurbs, property : u32, value : *mut f32)); - gluGetNurbsProperty(core::mem::transmute(nobj), core::mem::transmute(property), core::mem::transmute(value)) + gluGetNurbsProperty(core::mem::transmute(nobj), property, core::mem::transmute(value)) } #[inline] pub unsafe fn gluGetString(name: u32) -> *mut u8 { windows_targets::link!("glu32.dll" "system" fn gluGetString(name : u32) -> *mut u8); - gluGetString(core::mem::transmute(name)) + gluGetString(name) } #[inline] pub unsafe fn gluGetTessProperty(tess: *mut GLUtesselator, which: u32, value: *mut f64) { windows_targets::link!("glu32.dll" "system" fn gluGetTessProperty(tess : *mut GLUtesselator, which : u32, value : *mut f64)); - gluGetTessProperty(core::mem::transmute(tess), core::mem::transmute(which), core::mem::transmute(value)) + gluGetTessProperty(core::mem::transmute(tess), which, core::mem::transmute(value)) } #[inline] pub unsafe fn gluLoadSamplingMatrices(nobj: *mut GLUnurbs, modelmatrix: *const f32, projmatrix: *const f32, viewport: *const i32) { windows_targets::link!("glu32.dll" "system" fn gluLoadSamplingMatrices(nobj : *mut GLUnurbs, modelmatrix : *const f32, projmatrix : *const f32, viewport : *const i32)); - gluLoadSamplingMatrices(core::mem::transmute(nobj), core::mem::transmute(modelmatrix), core::mem::transmute(projmatrix), core::mem::transmute(viewport)) + gluLoadSamplingMatrices(core::mem::transmute(nobj), modelmatrix, projmatrix, viewport) } #[inline] pub unsafe fn gluLookAt(eyex: f64, eyey: f64, eyez: f64, centerx: f64, centery: f64, centerz: f64, upx: f64, upy: f64, upz: f64) { windows_targets::link!("glu32.dll" "system" fn gluLookAt(eyex : f64, eyey : f64, eyez : f64, centerx : f64, centery : f64, centerz : f64, upx : f64, upy : f64, upz : f64)); - gluLookAt(core::mem::transmute(eyex), core::mem::transmute(eyey), core::mem::transmute(eyez), core::mem::transmute(centerx), core::mem::transmute(centery), core::mem::transmute(centerz), core::mem::transmute(upx), core::mem::transmute(upy), core::mem::transmute(upz)) + gluLookAt(eyex, eyey, eyez, centerx, centery, centerz, upx, upy, upz) } #[inline] pub unsafe fn gluNewNurbsRenderer() -> *mut GLUnurbs { @@ -1842,92 +1842,92 @@ pub unsafe fn gluNewTess() -> *mut GLUtesselator { #[inline] pub unsafe fn gluNextContour(tess: *mut GLUtesselator, r#type: u32) { windows_targets::link!("glu32.dll" "system" fn gluNextContour(tess : *mut GLUtesselator, r#type : u32)); - gluNextContour(core::mem::transmute(tess), core::mem::transmute(r#type)) + gluNextContour(core::mem::transmute(tess), r#type) } #[inline] pub unsafe fn gluNurbsCallback(nobj: *mut GLUnurbs, which: u32, r#fn: isize) { windows_targets::link!("glu32.dll" "system" fn gluNurbsCallback(nobj : *mut GLUnurbs, which : u32, r#fn : isize)); - gluNurbsCallback(core::mem::transmute(nobj), core::mem::transmute(which), core::mem::transmute(r#fn)) + gluNurbsCallback(core::mem::transmute(nobj), which, r#fn) } #[inline] pub unsafe fn gluNurbsCurve(nobj: *mut GLUnurbs, nknots: i32, knot: *mut f32, stride: i32, ctlarray: *mut f32, order: i32, r#type: u32) { windows_targets::link!("glu32.dll" "system" fn gluNurbsCurve(nobj : *mut GLUnurbs, nknots : i32, knot : *mut f32, stride : i32, ctlarray : *mut f32, order : i32, r#type : u32)); - gluNurbsCurve(core::mem::transmute(nobj), core::mem::transmute(nknots), core::mem::transmute(knot), core::mem::transmute(stride), core::mem::transmute(ctlarray), core::mem::transmute(order), core::mem::transmute(r#type)) + gluNurbsCurve(core::mem::transmute(nobj), nknots, core::mem::transmute(knot), stride, core::mem::transmute(ctlarray), order, r#type) } #[inline] pub unsafe fn gluNurbsProperty(nobj: *mut GLUnurbs, property: u32, value: f32) { windows_targets::link!("glu32.dll" "system" fn gluNurbsProperty(nobj : *mut GLUnurbs, property : u32, value : f32)); - gluNurbsProperty(core::mem::transmute(nobj), core::mem::transmute(property), core::mem::transmute(value)) + gluNurbsProperty(core::mem::transmute(nobj), property, value) } #[inline] pub unsafe fn gluNurbsSurface(nobj: *mut GLUnurbs, sknot_count: i32, sknot: *mut f32, tknot_count: i32, tknot: *mut f32, s_stride: i32, t_stride: i32, ctlarray: *mut f32, sorder: i32, torder: i32, r#type: u32) { windows_targets::link!("glu32.dll" "system" fn gluNurbsSurface(nobj : *mut GLUnurbs, sknot_count : i32, sknot : *mut f32, tknot_count : i32, tknot : *mut f32, s_stride : i32, t_stride : i32, ctlarray : *mut f32, sorder : i32, torder : i32, r#type : u32)); - gluNurbsSurface(core::mem::transmute(nobj), core::mem::transmute(sknot_count), core::mem::transmute(sknot), core::mem::transmute(tknot_count), core::mem::transmute(tknot), core::mem::transmute(s_stride), core::mem::transmute(t_stride), core::mem::transmute(ctlarray), core::mem::transmute(sorder), core::mem::transmute(torder), core::mem::transmute(r#type)) + gluNurbsSurface(core::mem::transmute(nobj), sknot_count, core::mem::transmute(sknot), tknot_count, core::mem::transmute(tknot), s_stride, t_stride, core::mem::transmute(ctlarray), sorder, torder, r#type) } #[inline] pub unsafe fn gluOrtho2D(left: f64, right: f64, bottom: f64, top: f64) { windows_targets::link!("glu32.dll" "system" fn gluOrtho2D(left : f64, right : f64, bottom : f64, top : f64)); - gluOrtho2D(core::mem::transmute(left), core::mem::transmute(right), core::mem::transmute(bottom), core::mem::transmute(top)) + gluOrtho2D(left, right, bottom, top) } #[inline] pub unsafe fn gluPartialDisk(qobj: *mut GLUquadric, innerradius: f64, outerradius: f64, slices: i32, loops: i32, startangle: f64, sweepangle: f64) { windows_targets::link!("glu32.dll" "system" fn gluPartialDisk(qobj : *mut GLUquadric, innerradius : f64, outerradius : f64, slices : i32, loops : i32, startangle : f64, sweepangle : f64)); - gluPartialDisk(core::mem::transmute(qobj), core::mem::transmute(innerradius), core::mem::transmute(outerradius), core::mem::transmute(slices), core::mem::transmute(loops), core::mem::transmute(startangle), core::mem::transmute(sweepangle)) + gluPartialDisk(core::mem::transmute(qobj), innerradius, outerradius, slices, loops, startangle, sweepangle) } #[inline] pub unsafe fn gluPerspective(fovy: f64, aspect: f64, znear: f64, zfar: f64) { windows_targets::link!("glu32.dll" "system" fn gluPerspective(fovy : f64, aspect : f64, znear : f64, zfar : f64)); - gluPerspective(core::mem::transmute(fovy), core::mem::transmute(aspect), core::mem::transmute(znear), core::mem::transmute(zfar)) + gluPerspective(fovy, aspect, znear, zfar) } #[inline] pub unsafe fn gluPickMatrix(x: f64, y: f64, width: f64, height: f64, viewport: *mut i32) { windows_targets::link!("glu32.dll" "system" fn gluPickMatrix(x : f64, y : f64, width : f64, height : f64, viewport : *mut i32)); - gluPickMatrix(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(viewport)) + gluPickMatrix(x, y, width, height, core::mem::transmute(viewport)) } #[inline] pub unsafe fn gluProject(objx: f64, objy: f64, objz: f64, modelmatrix: *const f64, projmatrix: *const f64, viewport: *const i32, winx: *mut f64, winy: *mut f64, winz: *mut f64) -> i32 { windows_targets::link!("glu32.dll" "system" fn gluProject(objx : f64, objy : f64, objz : f64, modelmatrix : *const f64, projmatrix : *const f64, viewport : *const i32, winx : *mut f64, winy : *mut f64, winz : *mut f64) -> i32); - gluProject(core::mem::transmute(objx), core::mem::transmute(objy), core::mem::transmute(objz), core::mem::transmute(modelmatrix), core::mem::transmute(projmatrix), core::mem::transmute(viewport), core::mem::transmute(winx), core::mem::transmute(winy), core::mem::transmute(winz)) + gluProject(objx, objy, objz, modelmatrix, projmatrix, viewport, core::mem::transmute(winx), core::mem::transmute(winy), core::mem::transmute(winz)) } #[inline] pub unsafe fn gluPwlCurve(nobj: *mut GLUnurbs, count: i32, array: *mut f32, stride: i32, r#type: u32) { windows_targets::link!("glu32.dll" "system" fn gluPwlCurve(nobj : *mut GLUnurbs, count : i32, array : *mut f32, stride : i32, r#type : u32)); - gluPwlCurve(core::mem::transmute(nobj), core::mem::transmute(count), core::mem::transmute(array), core::mem::transmute(stride), core::mem::transmute(r#type)) + gluPwlCurve(core::mem::transmute(nobj), count, core::mem::transmute(array), stride, r#type) } #[inline] pub unsafe fn gluQuadricCallback(qobj: *mut GLUquadric, which: u32, r#fn: isize) { windows_targets::link!("glu32.dll" "system" fn gluQuadricCallback(qobj : *mut GLUquadric, which : u32, r#fn : isize)); - gluQuadricCallback(core::mem::transmute(qobj), core::mem::transmute(which), core::mem::transmute(r#fn)) + gluQuadricCallback(core::mem::transmute(qobj), which, r#fn) } #[inline] pub unsafe fn gluQuadricDrawStyle(quadobject: *mut GLUquadric, drawstyle: u32) { windows_targets::link!("glu32.dll" "system" fn gluQuadricDrawStyle(quadobject : *mut GLUquadric, drawstyle : u32)); - gluQuadricDrawStyle(core::mem::transmute(quadobject), core::mem::transmute(drawstyle)) + gluQuadricDrawStyle(core::mem::transmute(quadobject), drawstyle) } #[inline] pub unsafe fn gluQuadricNormals(quadobject: *mut GLUquadric, normals: u32) { windows_targets::link!("glu32.dll" "system" fn gluQuadricNormals(quadobject : *mut GLUquadric, normals : u32)); - gluQuadricNormals(core::mem::transmute(quadobject), core::mem::transmute(normals)) + gluQuadricNormals(core::mem::transmute(quadobject), normals) } #[inline] pub unsafe fn gluQuadricOrientation(quadobject: *mut GLUquadric, orientation: u32) { windows_targets::link!("glu32.dll" "system" fn gluQuadricOrientation(quadobject : *mut GLUquadric, orientation : u32)); - gluQuadricOrientation(core::mem::transmute(quadobject), core::mem::transmute(orientation)) + gluQuadricOrientation(core::mem::transmute(quadobject), orientation) } #[inline] pub unsafe fn gluQuadricTexture(quadobject: *mut GLUquadric, texturecoords: u8) { windows_targets::link!("glu32.dll" "system" fn gluQuadricTexture(quadobject : *mut GLUquadric, texturecoords : u8)); - gluQuadricTexture(core::mem::transmute(quadobject), core::mem::transmute(texturecoords)) + gluQuadricTexture(core::mem::transmute(quadobject), texturecoords) } #[inline] pub unsafe fn gluScaleImage(format: u32, widthin: i32, heightin: i32, typein: u32, datain: *const core::ffi::c_void, widthout: i32, heightout: i32, typeout: u32, dataout: *mut core::ffi::c_void) -> i32 { windows_targets::link!("glu32.dll" "system" fn gluScaleImage(format : u32, widthin : i32, heightin : i32, typein : u32, datain : *const core::ffi::c_void, widthout : i32, heightout : i32, typeout : u32, dataout : *mut core::ffi::c_void) -> i32); - gluScaleImage(core::mem::transmute(format), core::mem::transmute(widthin), core::mem::transmute(heightin), core::mem::transmute(typein), core::mem::transmute(datain), core::mem::transmute(widthout), core::mem::transmute(heightout), core::mem::transmute(typeout), core::mem::transmute(dataout)) + gluScaleImage(format, widthin, heightin, typein, datain, widthout, heightout, typeout, core::mem::transmute(dataout)) } #[inline] pub unsafe fn gluSphere(qobj: *mut GLUquadric, radius: f64, slices: i32, stacks: i32) { windows_targets::link!("glu32.dll" "system" fn gluSphere(qobj : *mut GLUquadric, radius : f64, slices : i32, stacks : i32)); - gluSphere(core::mem::transmute(qobj), core::mem::transmute(radius), core::mem::transmute(slices), core::mem::transmute(stacks)) + gluSphere(core::mem::transmute(qobj), radius, slices, stacks) } #[inline] pub unsafe fn gluTessBeginContour(tess: *mut GLUtesselator) { @@ -1942,7 +1942,7 @@ pub unsafe fn gluTessBeginPolygon(tess: *mut GLUtesselator, polygon_data: *mut c #[inline] pub unsafe fn gluTessCallback(tess: *mut GLUtesselator, which: u32, r#fn: isize) { windows_targets::link!("glu32.dll" "system" fn gluTessCallback(tess : *mut GLUtesselator, which : u32, r#fn : isize)); - gluTessCallback(core::mem::transmute(tess), core::mem::transmute(which), core::mem::transmute(r#fn)) + gluTessCallback(core::mem::transmute(tess), which, r#fn) } #[inline] pub unsafe fn gluTessEndContour(tess: *mut GLUtesselator) { @@ -1957,12 +1957,12 @@ pub unsafe fn gluTessEndPolygon(tess: *mut GLUtesselator) { #[inline] pub unsafe fn gluTessNormal(tess: *mut GLUtesselator, x: f64, y: f64, z: f64) { windows_targets::link!("glu32.dll" "system" fn gluTessNormal(tess : *mut GLUtesselator, x : f64, y : f64, z : f64)); - gluTessNormal(core::mem::transmute(tess), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)) + gluTessNormal(core::mem::transmute(tess), x, y, z) } #[inline] pub unsafe fn gluTessProperty(tess: *mut GLUtesselator, which: u32, value: f64) { windows_targets::link!("glu32.dll" "system" fn gluTessProperty(tess : *mut GLUtesselator, which : u32, value : f64)); - gluTessProperty(core::mem::transmute(tess), core::mem::transmute(which), core::mem::transmute(value)) + gluTessProperty(core::mem::transmute(tess), which, value) } #[inline] pub unsafe fn gluTessVertex(tess: *mut GLUtesselator, coords: *mut f64, data: *mut core::ffi::c_void) { @@ -1972,37 +1972,37 @@ pub unsafe fn gluTessVertex(tess: *mut GLUtesselator, coords: *mut f64, data: *m #[inline] pub unsafe fn gluUnProject(winx: f64, winy: f64, winz: f64, modelmatrix: *const f64, projmatrix: *const f64, viewport: *const i32, objx: *mut f64, objy: *mut f64, objz: *mut f64) -> i32 { windows_targets::link!("glu32.dll" "system" fn gluUnProject(winx : f64, winy : f64, winz : f64, modelmatrix : *const f64, projmatrix : *const f64, viewport : *const i32, objx : *mut f64, objy : *mut f64, objz : *mut f64) -> i32); - gluUnProject(core::mem::transmute(winx), core::mem::transmute(winy), core::mem::transmute(winz), core::mem::transmute(modelmatrix), core::mem::transmute(projmatrix), core::mem::transmute(viewport), core::mem::transmute(objx), core::mem::transmute(objy), core::mem::transmute(objz)) + gluUnProject(winx, winy, winz, modelmatrix, projmatrix, viewport, core::mem::transmute(objx), core::mem::transmute(objy), core::mem::transmute(objz)) } #[inline] pub unsafe fn wglCopyContext(param0: HGLRC, param1: HGLRC, param2: u32) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglCopyContext(param0 : HGLRC, param1 : HGLRC, param2 : u32) -> super::super::Foundation:: BOOL); - wglCopyContext(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + wglCopyContext(param0, param1, param2).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglCreateContext(param0: super::Gdi::HDC) -> windows_core::Result { windows_targets::link!("opengl32.dll" "system" fn wglCreateContext(param0 : super::Gdi:: HDC) -> HGLRC); - let result__ = wglCreateContext(core::mem::transmute(param0)); + let result__ = wglCreateContext(param0); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglCreateLayerContext(param0: super::Gdi::HDC, param1: i32) -> windows_core::Result { windows_targets::link!("opengl32.dll" "system" fn wglCreateLayerContext(param0 : super::Gdi:: HDC, param1 : i32) -> HGLRC); - let result__ = wglCreateLayerContext(core::mem::transmute(param0), core::mem::transmute(param1)); + let result__ = wglCreateLayerContext(param0, param1); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn wglDeleteContext(param0: HGLRC) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglDeleteContext(param0 : HGLRC) -> super::super::Foundation:: BOOL); - wglDeleteContext(core::mem::transmute(param0)).ok() + wglDeleteContext(param0).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglDescribeLayerPlane(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: u32, param4: *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation::BOOL { windows_targets::link!("opengl32.dll" "system" fn wglDescribeLayerPlane(param0 : super::Gdi:: HDC, param1 : i32, param2 : i32, param3 : u32, param4 : *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation:: BOOL); - wglDescribeLayerPlane(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)) + wglDescribeLayerPlane(param0, param1, param2, param3, core::mem::transmute(param4)) } #[inline] pub unsafe fn wglGetCurrentContext() -> HGLRC { @@ -2019,7 +2019,7 @@ pub unsafe fn wglGetCurrentDC() -> super::Gdi::HDC { #[inline] pub unsafe fn wglGetLayerPaletteEntries(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: i32, param4: *mut super::super::Foundation::COLORREF) -> i32 { windows_targets::link!("opengl32.dll" "system" fn wglGetLayerPaletteEntries(param0 : super::Gdi:: HDC, param1 : i32, param2 : i32, param3 : i32, param4 : *mut super::super::Foundation:: COLORREF) -> i32); - wglGetLayerPaletteEntries(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)) + wglGetLayerPaletteEntries(param0, param1, param2, param3, core::mem::transmute(param4)) } #[inline] pub unsafe fn wglGetProcAddress(param0: P0) -> super::super::Foundation::PROC @@ -2033,54 +2033,54 @@ where #[inline] pub unsafe fn wglMakeCurrent(param0: super::Gdi::HDC, param1: HGLRC) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglMakeCurrent(param0 : super::Gdi:: HDC, param1 : HGLRC) -> super::super::Foundation:: BOOL); - wglMakeCurrent(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + wglMakeCurrent(param0, param1).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglRealizeLayerPalette(param0: super::Gdi::HDC, param1: i32, param2: bool) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglRealizeLayerPalette(param0 : super::Gdi:: HDC, param1 : i32, param2 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - wglRealizeLayerPalette(core::mem::transmute(param0), core::mem::transmute(param1), param2.into()).ok() + wglRealizeLayerPalette(param0, param1, param2.into()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglSetLayerPaletteEntries(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: i32, param4: *const super::super::Foundation::COLORREF) -> i32 { windows_targets::link!("opengl32.dll" "system" fn wglSetLayerPaletteEntries(param0 : super::Gdi:: HDC, param1 : i32, param2 : i32, param3 : i32, param4 : *const super::super::Foundation:: COLORREF) -> i32); - wglSetLayerPaletteEntries(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)) + wglSetLayerPaletteEntries(param0, param1, param2, param3, param4) } #[inline] pub unsafe fn wglShareLists(param0: HGLRC, param1: HGLRC) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglShareLists(param0 : HGLRC, param1 : HGLRC) -> super::super::Foundation:: BOOL); - wglShareLists(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + wglShareLists(param0, param1).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglSwapLayerBuffers(param0: super::Gdi::HDC, param1: u32) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglSwapLayerBuffers(param0 : super::Gdi:: HDC, param1 : u32) -> super::super::Foundation:: BOOL); - wglSwapLayerBuffers(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + wglSwapLayerBuffers(param0, param1).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontBitmapsA(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> super::super::Foundation:: BOOL); - wglUseFontBitmapsA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + wglUseFontBitmapsA(param0, param1, param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontBitmapsW(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> super::super::Foundation:: BOOL); - wglUseFontBitmapsW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)).ok() + wglUseFontBitmapsW(param0, param1, param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontOutlinesA(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglUseFontOutlinesA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32, param4 : f32, param5 : f32, param6 : i32, param7 : *mut GLYPHMETRICSFLOAT) -> super::super::Foundation:: BOOL); - wglUseFontOutlinesA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5), core::mem::transmute(param6), core::mem::transmute(param7)).ok() + wglUseFontOutlinesA(param0, param1, param2, param3, param4, param5, param6, core::mem::transmute(param7)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontOutlinesW(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> windows_core::Result<()> { windows_targets::link!("opengl32.dll" "system" fn wglUseFontOutlinesW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32, param4 : f32, param5 : f32, param6 : i32, param7 : *mut GLYPHMETRICSFLOAT) -> super::super::Foundation:: BOOL); - wglUseFontOutlinesW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5), core::mem::transmute(param6), core::mem::transmute(param7)).ok() + wglUseFontOutlinesW(param0, param1, param2, param3, param4, param5, param6, core::mem::transmute(param7)).ok() } #[repr(C)] #[cfg(feature = "Win32_Graphics_Gdi")] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs index 3fe641d3e9..170201c13c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn PTCloseProvider(hprovider: HPTPROVIDER) -> windows_core::Result<()> { windows_targets::link!("prntvpt.dll" "system" fn PTCloseProvider(hprovider : HPTPROVIDER) -> windows_core::HRESULT); - PTCloseProvider(core::mem::transmute(hprovider)).ok() + PTCloseProvider(hprovider).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] #[inline] @@ -10,7 +10,7 @@ where P4: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTConvertDevModeToPrintTicket(hprovider : HPTPROVIDER, cbdevmode : u32, pdevmode : *const super::super::Gdi:: DEVMODEA, scope : EPrintTicketScope, pprintticket : * mut core::ffi::c_void) -> windows_core::HRESULT); - PTConvertDevModeToPrintTicket(core::mem::transmute(hprovider), core::mem::transmute(cbdevmode), core::mem::transmute(pdevmode), core::mem::transmute(scope), pprintticket.param().abi()).ok() + PTConvertDevModeToPrintTicket(hprovider, cbdevmode, pdevmode, scope, pprintticket.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] #[inline] @@ -19,7 +19,7 @@ where P1: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTConvertPrintTicketToDevMode(hprovider : HPTPROVIDER, pprintticket : * mut core::ffi::c_void, basedevmodetype : EDefaultDevmodeType, scope : EPrintTicketScope, pcbdevmode : *mut u32, ppdevmode : *mut *mut super::super::Gdi:: DEVMODEA, pbstrerrormessage : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - PTConvertPrintTicketToDevMode(core::mem::transmute(hprovider), pprintticket.param().abi(), core::mem::transmute(basedevmodetype), core::mem::transmute(scope), core::mem::transmute(pcbdevmode), core::mem::transmute(ppdevmode), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() + PTConvertPrintTicketToDevMode(hprovider, pprintticket.param().abi(), basedevmodetype, scope, core::mem::transmute(pcbdevmode), core::mem::transmute(ppdevmode), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -29,7 +29,7 @@ where P2: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTGetPrintCapabilities(hprovider : HPTPROVIDER, pprintticket : * mut core::ffi::c_void, pcapabilities : * mut core::ffi::c_void, pbstrerrormessage : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - PTGetPrintCapabilities(core::mem::transmute(hprovider), pprintticket.param().abi(), pcapabilities.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() + PTGetPrintCapabilities(hprovider, pprintticket.param().abi(), pcapabilities.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -39,7 +39,7 @@ where P2: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTGetPrintDeviceCapabilities(hprovider : HPTPROVIDER, pprintticket : * mut core::ffi::c_void, pdevicecapabilities : * mut core::ffi::c_void, pbstrerrormessage : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - PTGetPrintDeviceCapabilities(core::mem::transmute(hprovider), pprintticket.param().abi(), pdevicecapabilities.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() + PTGetPrintDeviceCapabilities(hprovider, pprintticket.param().abi(), pdevicecapabilities.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -50,7 +50,7 @@ where P3: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTGetPrintDeviceResources(hprovider : HPTPROVIDER, pszlocalename : windows_core::PCWSTR, pprintticket : * mut core::ffi::c_void, pdeviceresources : * mut core::ffi::c_void, pbstrerrormessage : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - PTGetPrintDeviceResources(core::mem::transmute(hprovider), pszlocalename.param().abi(), pprintticket.param().abi(), pdeviceresources.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() + PTGetPrintDeviceResources(hprovider, pszlocalename.param().abi(), pprintticket.param().abi(), pdeviceresources.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -61,7 +61,7 @@ where P4: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTMergeAndValidatePrintTicket(hprovider : HPTPROVIDER, pbaseticket : * mut core::ffi::c_void, pdeltaticket : * mut core::ffi::c_void, scope : EPrintTicketScope, presultticket : * mut core::ffi::c_void, pbstrerrormessage : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - PTMergeAndValidatePrintTicket(core::mem::transmute(hprovider), pbaseticket.param().abi(), pdeltaticket.param().abi(), core::mem::transmute(scope), presultticket.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() + PTMergeAndValidatePrintTicket(hprovider, pbaseticket.param().abi(), pdeltaticket.param().abi(), scope, presultticket.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PTOpenProvider(pszprintername: P0, dwversion: u32) -> windows_core::Result @@ -70,7 +70,7 @@ where { windows_targets::link!("prntvpt.dll" "system" fn PTOpenProvider(pszprintername : windows_core::PCWSTR, dwversion : u32, phprovider : *mut HPTPROVIDER) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PTOpenProvider(pszprintername.param().abi(), core::mem::transmute(dwversion), &mut result__).map(|| core::mem::transmute(result__)) + PTOpenProvider(pszprintername.param().abi(), dwversion, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PTOpenProviderEx(pszprintername: P0, dwmaxversion: u32, dwprefversion: u32, phprovider: *mut HPTPROVIDER, pusedversion: *mut u32) -> windows_core::Result<()> @@ -78,7 +78,7 @@ where P0: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTOpenProviderEx(pszprintername : windows_core::PCWSTR, dwmaxversion : u32, dwprefversion : u32, phprovider : *mut HPTPROVIDER, pusedversion : *mut u32) -> windows_core::HRESULT); - PTOpenProviderEx(pszprintername.param().abi(), core::mem::transmute(dwmaxversion), core::mem::transmute(dwprefversion), core::mem::transmute(phprovider), core::mem::transmute(pusedversion)).ok() + PTOpenProviderEx(pszprintername.param().abi(), dwmaxversion, dwprefversion, core::mem::transmute(phprovider), core::mem::transmute(pusedversion)).ok() } #[inline] pub unsafe fn PTQuerySchemaVersionSupport(pszprintername: P0) -> windows_core::Result @@ -92,7 +92,7 @@ where #[inline] pub unsafe fn PTReleaseMemory(pbuffer: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("prntvpt.dll" "system" fn PTReleaseMemory(pbuffer : *const core::ffi::c_void) -> windows_core::HRESULT); - PTReleaseMemory(core::mem::transmute(pbuffer)).ok() + PTReleaseMemory(pbuffer).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs index 6802391213..399149ea19 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -8,22 +8,22 @@ pub unsafe fn AbortPrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation #[inline] pub unsafe fn AddFormA(hprinter: PRINTER_HANDLE, level: u32, pform: *const u8) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn AddFormA(hprinter : PRINTER_HANDLE, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - AddFormA(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pform)) + AddFormA(core::mem::transmute(hprinter), level, pform) } #[inline] pub unsafe fn AddFormW(hprinter: PRINTER_HANDLE, level: u32, pform: *const u8) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn AddFormW(hprinter : PRINTER_HANDLE, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - AddFormW(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pform)) + AddFormW(core::mem::transmute(hprinter), level, pform) } #[inline] pub unsafe fn AddJobA(hprinter: PRINTER_HANDLE, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn AddJobA(hprinter : PRINTER_HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - AddJobA(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + AddJobA(core::mem::transmute(hprinter), level, core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn AddJobW(hprinter: PRINTER_HANDLE, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn AddJobW(hprinter : PRINTER_HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - AddJobW(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + AddJobW(core::mem::transmute(hprinter), level, core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn AddMonitorA(pname: P0, level: u32, pmonitors: Option<*const u8>) -> windows_core::Result<()> @@ -31,7 +31,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddMonitorA(pname : windows_core::PCSTR, level : u32, pmonitors : *const u8) -> super::super::Foundation:: BOOL); - AddMonitorA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pmonitors.unwrap_or(core::mem::zeroed()))).ok() + AddMonitorA(pname.param().abi(), level, core::mem::transmute(pmonitors.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AddMonitorW(pname: P0, level: u32, pmonitors: Option<*const u8>) -> windows_core::Result<()> @@ -39,7 +39,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddMonitorW(pname : windows_core::PCWSTR, level : u32, pmonitors : *const u8) -> super::super::Foundation:: BOOL); - AddMonitorW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pmonitors.unwrap_or(core::mem::zeroed()))).ok() + AddMonitorW(pname.param().abi(), level, core::mem::transmute(pmonitors.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AddPortA(pname: P0, hwnd: super::super::Foundation::HWND, pmonitorname: P2) -> windows_core::Result<()> @@ -48,7 +48,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pmonitorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AddPortA(pname.param().abi(), core::mem::transmute(hwnd), pmonitorname.param().abi()).ok() + AddPortA(pname.param().abi(), hwnd, pmonitorname.param().abi()).ok() } #[inline] pub unsafe fn AddPortW(pname: P0, hwnd: super::super::Foundation::HWND, pmonitorname: P2) -> windows_core::Result<()> @@ -57,7 +57,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pmonitorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AddPortW(pname.param().abi(), core::mem::transmute(hwnd), pmonitorname.param().abi()).ok() + AddPortW(pname.param().abi(), hwnd, pmonitorname.param().abi()).ok() } #[inline] pub unsafe fn AddPrintDeviceObject(hprinter: PRINTER_HANDLE) -> windows_core::Result { @@ -93,7 +93,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrintProvidorA(pname : windows_core::PCSTR, level : u32, pprovidorinfo : *const u8) -> super::super::Foundation:: BOOL); - AddPrintProvidorA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pprovidorinfo)) + AddPrintProvidorA(pname.param().abi(), level, pprovidorinfo) } #[inline] pub unsafe fn AddPrintProvidorW(pname: P0, level: u32, pprovidorinfo: *const u8) -> super::super::Foundation::BOOL @@ -101,7 +101,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrintProvidorW(pname : windows_core::PCWSTR, level : u32, pprovidorinfo : *const u8) -> super::super::Foundation:: BOOL); - AddPrintProvidorW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pprovidorinfo)) + AddPrintProvidorW(pname.param().abi(), level, pprovidorinfo) } #[inline] pub unsafe fn AddPrinterA(pname: P0, level: u32, pprinter: *const u8) -> windows_core::Result @@ -109,7 +109,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterA(pname : windows_core::PCSTR, level : u32, pprinter : *const u8) -> super::super::Foundation:: HANDLE); - let result__ = AddPrinterA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pprinter)); + let result__ = AddPrinterA(pname.param().abi(), level, pprinter); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -118,7 +118,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterConnection2A(hwnd : super::super::Foundation:: HWND, pszname : windows_core::PCSTR, dwlevel : u32, pconnectioninfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - AddPrinterConnection2A(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszname.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(pconnectioninfo)) + AddPrinterConnection2A(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszname.param().abi(), dwlevel, pconnectioninfo) } #[inline] pub unsafe fn AddPrinterConnection2W(hwnd: Option, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL @@ -126,7 +126,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterConnection2W(hwnd : super::super::Foundation:: HWND, pszname : windows_core::PCWSTR, dwlevel : u32, pconnectioninfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - AddPrinterConnection2W(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszname.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(pconnectioninfo)) + AddPrinterConnection2W(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszname.param().abi(), dwlevel, pconnectioninfo) } #[inline] pub unsafe fn AddPrinterConnectionA(pname: P0) -> super::super::Foundation::BOOL @@ -150,7 +150,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverA(pname : windows_core::PCSTR, level : u32, pdriverinfo : *const u8) -> super::super::Foundation:: BOOL); - AddPrinterDriverA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo)).ok() + AddPrinterDriverA(pname.param().abi(), level, pdriverinfo).ok() } #[inline] pub unsafe fn AddPrinterDriverExA(pname: P0, level: u32, lpbdriverinfo: *const u8, dwfilecopyflags: u32) -> super::super::Foundation::BOOL @@ -158,7 +158,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverExA(pname : windows_core::PCSTR, level : u32, lpbdriverinfo : *const u8, dwfilecopyflags : u32) -> super::super::Foundation:: BOOL); - AddPrinterDriverExA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(lpbdriverinfo), core::mem::transmute(dwfilecopyflags)) + AddPrinterDriverExA(pname.param().abi(), level, lpbdriverinfo, dwfilecopyflags) } #[inline] pub unsafe fn AddPrinterDriverExW(pname: P0, level: u32, lpbdriverinfo: *const u8, dwfilecopyflags: u32) -> super::super::Foundation::BOOL @@ -166,7 +166,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverExW(pname : windows_core::PCWSTR, level : u32, lpbdriverinfo : *const u8, dwfilecopyflags : u32) -> super::super::Foundation:: BOOL); - AddPrinterDriverExW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(lpbdriverinfo), core::mem::transmute(dwfilecopyflags)) + AddPrinterDriverExW(pname.param().abi(), level, lpbdriverinfo, dwfilecopyflags) } #[inline] pub unsafe fn AddPrinterDriverW(pname: P0, level: u32, pdriverinfo: *const u8) -> windows_core::Result<()> @@ -174,7 +174,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverW(pname : windows_core::PCWSTR, level : u32, pdriverinfo : *const u8) -> super::super::Foundation:: BOOL); - AddPrinterDriverW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo)).ok() + AddPrinterDriverW(pname.param().abi(), level, pdriverinfo).ok() } #[inline] pub unsafe fn AddPrinterW(pname: P0, level: u32, pprinter: *const u8) -> windows_core::Result @@ -182,7 +182,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterW(pname : windows_core::PCWSTR, level : u32, pprinter : *const u8) -> super::super::Foundation:: HANDLE); - let result__ = AddPrinterW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pprinter)); + let result__ = AddPrinterW(pname.param().abi(), level, pprinter); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -192,7 +192,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AdvancedDocumentPropertiesA(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, pdevicename : windows_core::PCSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEA, pdevmodeinput : *const super::Gdi:: DEVMODEA) -> i32); - AdvancedDocumentPropertiesA(core::mem::transmute(hwnd), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed()))) + AdvancedDocumentPropertiesA(hwnd, core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -201,17 +201,17 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AdvancedDocumentPropertiesW(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, pdevicename : windows_core::PCWSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEW, pdevmodeinput : *const super::Gdi:: DEVMODEW) -> i32); - AdvancedDocumentPropertiesW(core::mem::transmute(hwnd), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed()))) + AdvancedDocumentPropertiesW(hwnd, core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>, fdwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn AppendPrinterNotifyInfoData(pinfodest : *const PRINTER_NOTIFY_INFO, pdatasrc : *const PRINTER_NOTIFY_INFO_DATA, fdwflags : u32) -> super::super::Foundation:: BOOL); - AppendPrinterNotifyInfoData(core::mem::transmute(pinfodest), core::mem::transmute(pdatasrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwflags)) + AppendPrinterNotifyInfoData(pinfodest, core::mem::transmute(pdatasrc.unwrap_or(core::mem::zeroed())), fdwflags) } #[inline] pub unsafe fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const PRINTER_NOTIFY_OPTIONS) -> u32 { windows_targets::link!("spoolss.dll" "system" fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc : super::super::Foundation:: HANDLE, fdwfilterflags : u32, fdwoptions : u32, hnotify : super::super::Foundation:: HANDLE, pprinternotifyoptions : *const PRINTER_NOTIFY_OPTIONS) -> u32); - CallRouterFindFirstPrinterChangeNotification(core::mem::transmute(hprinterrpc), core::mem::transmute(fdwfilterflags), core::mem::transmute(fdwoptions), core::mem::transmute(hnotify), core::mem::transmute(pprinternotifyoptions)) + CallRouterFindFirstPrinterChangeNotification(hprinterrpc, fdwfilterflags, fdwoptions, hnotify, pprinternotifyoptions) } #[inline] pub unsafe fn ClosePrinter(hprinter: PRINTER_HANDLE) -> windows_core::Result<()> { @@ -221,22 +221,22 @@ pub unsafe fn ClosePrinter(hprinter: PRINTER_HANDLE) -> windows_core::Result<()> #[inline] pub unsafe fn CloseSpoolFileHandle(hprinter: PRINTER_HANDLE, hspoolfile: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn CloseSpoolFileHandle(hprinter : PRINTER_HANDLE, hspoolfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CloseSpoolFileHandle(core::mem::transmute(hprinter), core::mem::transmute(hspoolfile)) + CloseSpoolFileHandle(core::mem::transmute(hprinter), hspoolfile) } #[inline] pub unsafe fn CommitSpoolData(hprinter: PRINTER_HANDLE, hspoolfile: super::super::Foundation::HANDLE, cbcommit: u32) -> super::super::Foundation::HANDLE { windows_targets::link!("winspool.drv" "system" fn CommitSpoolData(hprinter : PRINTER_HANDLE, hspoolfile : super::super::Foundation:: HANDLE, cbcommit : u32) -> super::super::Foundation:: HANDLE); - CommitSpoolData(core::mem::transmute(hprinter), core::mem::transmute(hspoolfile), core::mem::transmute(cbcommit)) + CommitSpoolData(core::mem::transmute(hprinter), hspoolfile, cbcommit) } #[inline] pub unsafe fn CommonPropertySheetUIA(hwndowner: super::super::Foundation::HWND, pfnpropsheetui: PFNPROPSHEETUI, lparam: super::super::Foundation::LPARAM, presult: Option<*mut u32>) -> i32 { windows_targets::link!("compstui.dll" "system" fn CommonPropertySheetUIA(hwndowner : super::super::Foundation:: HWND, pfnpropsheetui : PFNPROPSHEETUI, lparam : super::super::Foundation:: LPARAM, presult : *mut u32) -> i32); - CommonPropertySheetUIA(core::mem::transmute(hwndowner), core::mem::transmute(pfnpropsheetui), core::mem::transmute(lparam), core::mem::transmute(presult.unwrap_or(core::mem::zeroed()))) + CommonPropertySheetUIA(hwndowner, pfnpropsheetui, lparam, core::mem::transmute(presult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CommonPropertySheetUIW(hwndowner: super::super::Foundation::HWND, pfnpropsheetui: PFNPROPSHEETUI, lparam: super::super::Foundation::LPARAM, presult: Option<*mut u32>) -> i32 { windows_targets::link!("compstui.dll" "system" fn CommonPropertySheetUIW(hwndowner : super::super::Foundation:: HWND, pfnpropsheetui : PFNPROPSHEETUI, lparam : super::super::Foundation:: LPARAM, presult : *mut u32) -> i32); - CommonPropertySheetUIW(core::mem::transmute(hwndowner), core::mem::transmute(pfnpropsheetui), core::mem::transmute(lparam), core::mem::transmute(presult.unwrap_or(core::mem::zeroed()))) + CommonPropertySheetUIW(hwndowner, pfnpropsheetui, lparam, core::mem::transmute(presult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ConfigurePortA(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> super::super::Foundation::BOOL @@ -245,7 +245,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ConfigurePortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ConfigurePortA(pname.param().abi(), core::mem::transmute(hwnd), pportname.param().abi()) + ConfigurePortA(pname.param().abi(), hwnd, pportname.param().abi()) } #[inline] pub unsafe fn ConfigurePortW(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> super::super::Foundation::BOOL @@ -254,12 +254,12 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ConfigurePortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ConfigurePortW(pname.param().abi(), core::mem::transmute(hwnd), pportname.param().abi()) + ConfigurePortW(pname.param().abi(), hwnd, pportname.param().abi()) } #[inline] pub unsafe fn ConnectToPrinterDlg(hwnd: super::super::Foundation::HWND, flags: u32) -> super::super::Foundation::HANDLE { windows_targets::link!("winspool.drv" "system" fn ConnectToPrinterDlg(hwnd : super::super::Foundation:: HWND, flags : u32) -> super::super::Foundation:: HANDLE); - ConnectToPrinterDlg(core::mem::transmute(hwnd), core::mem::transmute(flags)) + ConnectToPrinterDlg(hwnd, flags) } #[inline] pub unsafe fn CorePrinterDriverInstalledA(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result @@ -269,7 +269,7 @@ where { windows_targets::link!("winspool.drv" "system" fn CorePrinterDriverInstalledA(pszserver : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, coredriverguid : windows_core::GUID, ftdriverdate : super::super::Foundation:: FILETIME, dwldriverversion : u64, pbdriverinstalled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CorePrinterDriverInstalledA(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), core::mem::transmute(dwldriverversion), &mut result__).map(|| core::mem::transmute(result__)) + CorePrinterDriverInstalledA(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CorePrinterDriverInstalledW(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result @@ -279,7 +279,7 @@ where { windows_targets::link!("winspool.drv" "system" fn CorePrinterDriverInstalledW(pszserver : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, coredriverguid : windows_core::GUID, ftdriverdate : super::super::Foundation:: FILETIME, dwldriverversion : u64, pbdriverinstalled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CorePrinterDriverInstalledW(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), core::mem::transmute(dwldriverversion), &mut result__).map(|| core::mem::transmute(result__)) + CorePrinterDriverInstalledW(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CreatePrintAsyncNotifyChannel(pszname: P0, pnotificationtype: *const windows_core::GUID, euserfilter: PrintAsyncNotifyUserFilter, econversationstyle: PrintAsyncNotifyConversationStyle, pcallback: P4) -> windows_core::Result @@ -289,7 +289,7 @@ where { windows_targets::link!("winspool.drv" "system" fn CreatePrintAsyncNotifyChannel(pszname : windows_core::PCWSTR, pnotificationtype : *const windows_core::GUID, euserfilter : PrintAsyncNotifyUserFilter, econversationstyle : PrintAsyncNotifyConversationStyle, pcallback : * mut core::ffi::c_void, ppiasynchnotification : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreatePrintAsyncNotifyChannel(pszname.param().abi(), core::mem::transmute(pnotificationtype), core::mem::transmute(euserfilter), core::mem::transmute(econversationstyle), pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreatePrintAsyncNotifyChannel(pszname.param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -319,7 +319,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeleteJobNamedProperty(hprinter : PRINTER_HANDLE, jobid : u32, pszname : windows_core::PCWSTR) -> u32); - DeleteJobNamedProperty(core::mem::transmute(hprinter), core::mem::transmute(jobid), pszname.param().abi()) + DeleteJobNamedProperty(core::mem::transmute(hprinter), jobid, pszname.param().abi()) } #[inline] pub unsafe fn DeleteMonitorA(pname: P0, penvironment: P1, pmonitorname: P2) -> windows_core::Result<()> @@ -348,7 +348,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeletePortA(pname.param().abi(), core::mem::transmute(hwnd), pportname.param().abi()).ok() + DeletePortA(pname.param().abi(), hwnd, pportname.param().abi()).ok() } #[inline] pub unsafe fn DeletePortW(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> windows_core::Result<()> @@ -357,7 +357,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeletePortW(pname.param().abi(), core::mem::transmute(hwnd), pportname.param().abi()).ok() + DeletePortW(pname.param().abi(), hwnd, pportname.param().abi()).ok() } #[inline] pub unsafe fn DeletePrintProcessorA(pname: P0, penvironment: P1, pprintprocessorname: P2) -> super::super::Foundation::BOOL @@ -472,7 +472,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverExA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pdrivername : windows_core::PCSTR, dwdeleteflag : u32, dwversionflag : u32) -> super::super::Foundation:: BOOL); - DeletePrinterDriverExA(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi(), core::mem::transmute(dwdeleteflag), core::mem::transmute(dwversionflag)) + DeletePrinterDriverExA(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi(), dwdeleteflag, dwversionflag) } #[inline] pub unsafe fn DeletePrinterDriverExW(pname: P0, penvironment: P1, pdrivername: P2, dwdeleteflag: u32, dwversionflag: u32) -> super::super::Foundation::BOOL @@ -482,7 +482,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverExW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pdrivername : windows_core::PCWSTR, dwdeleteflag : u32, dwversionflag : u32) -> super::super::Foundation:: BOOL); - DeletePrinterDriverExW(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi(), core::mem::transmute(dwdeleteflag), core::mem::transmute(dwversionflag)) + DeletePrinterDriverExW(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi(), dwdeleteflag, dwversionflag) } #[inline] pub unsafe fn DeletePrinterDriverPackageA(pszserver: P0, pszinfpath: P1, pszenvironment: P2) -> windows_core::Result<()> @@ -517,7 +517,7 @@ where #[inline] pub unsafe fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn DeletePrinterIC(hprinteric : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeletePrinterIC(core::mem::transmute(hprinteric)) + DeletePrinterIC(hprinteric) } #[inline] pub unsafe fn DeletePrinterKeyA(hprinter: PRINTER_HANDLE, pkeyname: P1) -> u32 @@ -539,7 +539,7 @@ where #[inline] pub unsafe fn DevQueryPrint(hprinter: PRINTER_HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn DevQueryPrint(hprinter : PRINTER_HANDLE, pdevmode : *const super::Gdi:: DEVMODEA, presid : *mut u32) -> super::super::Foundation:: BOOL); - DevQueryPrint(core::mem::transmute(hprinter), core::mem::transmute(pdevmode), core::mem::transmute(presid)) + DevQueryPrint(core::mem::transmute(hprinter), pdevmode, core::mem::transmute(presid)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -554,7 +554,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DocumentPropertiesA(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, pdevicename : windows_core::PCSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEA, pdevmodeinput : *const super::Gdi:: DEVMODEA, fmode : u32) -> i32); - DocumentPropertiesA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed())), core::mem::transmute(fmode)) + DocumentPropertiesA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed())), fmode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -563,7 +563,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DocumentPropertiesW(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, pdevicename : windows_core::PCWSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEW, pdevmodeinput : *const super::Gdi:: DEVMODEW, fmode : u32) -> i32); - DocumentPropertiesW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed())), core::mem::transmute(fmode)) + DocumentPropertiesW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed())), fmode) } #[inline] pub unsafe fn EndDocPrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { @@ -578,27 +578,27 @@ pub unsafe fn EndPagePrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundati #[inline] pub unsafe fn EnumFormsA(hprinter: PRINTER_HANDLE, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn EnumFormsA(hprinter : PRINTER_HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumFormsA(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumFormsA(core::mem::transmute(hprinter), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumFormsW(hprinter: PRINTER_HANDLE, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn EnumFormsW(hprinter : PRINTER_HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumFormsW(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumFormsW(core::mem::transmute(hprinter), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumJobNamedProperties(hprinter: PRINTER_HANDLE, jobid: u32, pcproperties: *mut u32, ppproperties: *mut *mut PrintNamedProperty) -> u32 { windows_targets::link!("winspool.drv" "system" fn EnumJobNamedProperties(hprinter : PRINTER_HANDLE, jobid : u32, pcproperties : *mut u32, ppproperties : *mut *mut PrintNamedProperty) -> u32); - EnumJobNamedProperties(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(pcproperties), core::mem::transmute(ppproperties)) + EnumJobNamedProperties(core::mem::transmute(hprinter), jobid, core::mem::transmute(pcproperties), core::mem::transmute(ppproperties)) } #[inline] pub unsafe fn EnumJobsA(hprinter: PRINTER_HANDLE, firstjob: u32, nojobs: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn EnumJobsA(hprinter : PRINTER_HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumJobsA(core::mem::transmute(hprinter), core::mem::transmute(firstjob), core::mem::transmute(nojobs), core::mem::transmute(level), core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() + EnumJobsA(core::mem::transmute(hprinter), firstjob, nojobs, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() } #[inline] pub unsafe fn EnumJobsW(hprinter: PRINTER_HANDLE, firstjob: u32, nojobs: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn EnumJobsW(hprinter : PRINTER_HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumJobsW(core::mem::transmute(hprinter), core::mem::transmute(firstjob), core::mem::transmute(nojobs), core::mem::transmute(level), core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() + EnumJobsW(core::mem::transmute(hprinter), firstjob, nojobs, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() } #[inline] pub unsafe fn EnumMonitorsA(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -606,7 +606,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumMonitorsA(pname : windows_core::PCSTR, level : u32, pmonitor : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumMonitorsA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pmonitor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmonitor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumMonitorsA(pname.param().abi(), level, core::mem::transmute(pmonitor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmonitor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumMonitorsW(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -614,7 +614,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumMonitorsW(pname : windows_core::PCWSTR, level : u32, pmonitor : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumMonitorsW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pmonitor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmonitor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumMonitorsW(pname.param().abi(), level, core::mem::transmute(pmonitor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmonitor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPortsA(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -622,7 +622,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPortsA(pname : windows_core::PCSTR, level : u32, pport : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPortsA(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumPortsA(pname.param().abi(), level, core::mem::transmute(pport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPortsW(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -630,7 +630,7 @@ where P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPortsW(pname : windows_core::PCWSTR, level : u32, pport : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPortsW(pname.param().abi(), core::mem::transmute(level), core::mem::transmute(pport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumPortsW(pname.param().abi(), level, core::mem::transmute(pport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPrintProcessorDatatypesA(pname: P0, pprintprocessorname: P1, level: u32, pdatatypes: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -639,7 +639,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorDatatypesA(pname : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR, level : u32, pdatatypes : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrintProcessorDatatypesA(pname.param().abi(), pprintprocessorname.param().abi(), core::mem::transmute(level), core::mem::transmute(pdatatypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdatatypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumPrintProcessorDatatypesA(pname.param().abi(), pprintprocessorname.param().abi(), level, core::mem::transmute(pdatatypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdatatypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPrintProcessorDatatypesW(pname: P0, pprintprocessorname: P1, level: u32, pdatatypes: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -648,7 +648,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorDatatypesW(pname : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR, level : u32, pdatatypes : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrintProcessorDatatypesW(pname.param().abi(), pprintprocessorname.param().abi(), core::mem::transmute(level), core::mem::transmute(pdatatypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdatatypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumPrintProcessorDatatypesW(pname.param().abi(), pprintprocessorname.param().abi(), level, core::mem::transmute(pdatatypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdatatypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPrintProcessorsA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -657,7 +657,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorsA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrintProcessorsA(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumPrintProcessorsA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPrintProcessorsW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL @@ -666,12 +666,12 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorsW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrintProcessorsW(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) + EnumPrintProcessorsW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)) } #[inline] pub unsafe fn EnumPrinterDataA(hprinter: PRINTER_HANDLE, dwindex: u32, pvaluename: &mut [u8], pcbvaluename: *mut u32, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbdata: Option<*mut u32>) -> u32 { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDataA(hprinter : PRINTER_HANDLE, dwindex : u32, pvaluename : windows_core::PSTR, cbvaluename : u32, pcbvaluename : *mut u32, ptype : *mut u32, pdata : *mut u8, cbdata : u32, pcbdata : *mut u32) -> u32); - EnumPrinterDataA(core::mem::transmute(hprinter), core::mem::transmute(dwindex), core::mem::transmute(pvaluename.as_ptr()), pvaluename.len().try_into().unwrap(), core::mem::transmute(pcbvaluename), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + EnumPrinterDataA(core::mem::transmute(hprinter), dwindex, core::mem::transmute(pvaluename.as_ptr()), pvaluename.len().try_into().unwrap(), core::mem::transmute(pcbvaluename), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumPrinterDataExA(hprinter: PRINTER_HANDLE, pkeyname: P1, penumvalues: Option<&mut [u8]>, pcbenumvalues: *mut u32, pnenumvalues: *mut u32) -> u32 @@ -692,7 +692,7 @@ where #[inline] pub unsafe fn EnumPrinterDataW(hprinter: PRINTER_HANDLE, dwindex: u32, pvaluename: windows_core::PWSTR, cbvaluename: u32, pcbvaluename: *mut u32, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbdata: Option<*mut u32>) -> u32 { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDataW(hprinter : PRINTER_HANDLE, dwindex : u32, pvaluename : windows_core::PWSTR, cbvaluename : u32, pcbvaluename : *mut u32, ptype : *mut u32, pdata : *mut u8, cbdata : u32, pcbdata : *mut u32) -> u32); - EnumPrinterDataW(core::mem::transmute(hprinter), core::mem::transmute(dwindex), core::mem::transmute(pvaluename), core::mem::transmute(cbvaluename), core::mem::transmute(pcbvaluename), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + EnumPrinterDataW(core::mem::transmute(hprinter), dwindex, core::mem::transmute(pvaluename), cbvaluename, core::mem::transmute(pcbvaluename), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumPrinterDriversA(pname: P0, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> @@ -701,7 +701,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDriversA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrinterDriversA(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() + EnumPrinterDriversA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() } #[inline] pub unsafe fn EnumPrinterDriversW(pname: P0, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> @@ -710,7 +710,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDriversW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrinterDriversW(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() + EnumPrinterDriversW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() } #[inline] pub unsafe fn EnumPrinterKeyA(hprinter: PRINTER_HANDLE, pkeyname: P1, psubkey: Option<&mut [u8]>, pcbsubkey: *mut u32) -> u32 @@ -726,7 +726,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterKeyW(hprinter : PRINTER_HANDLE, pkeyname : windows_core::PCWSTR, psubkey : windows_core::PWSTR, cbsubkey : u32, pcbsubkey : *mut u32) -> u32); - EnumPrinterKeyW(core::mem::transmute(hprinter), pkeyname.param().abi(), core::mem::transmute(psubkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsubkey), core::mem::transmute(pcbsubkey)) + EnumPrinterKeyW(core::mem::transmute(hprinter), pkeyname.param().abi(), core::mem::transmute(psubkey.unwrap_or(core::mem::zeroed())), cbsubkey, core::mem::transmute(pcbsubkey)) } #[inline] pub unsafe fn EnumPrintersA(flags: u32, name: P1, level: u32, pprinterenum: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> @@ -734,7 +734,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrintersA(flags : u32, name : windows_core::PCSTR, level : u32, pprinterenum : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrintersA(core::mem::transmute(flags), name.param().abi(), core::mem::transmute(level), core::mem::transmute(pprinterenum.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() + EnumPrintersA(flags, name.param().abi(), level, core::mem::transmute(pprinterenum.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() } #[inline] pub unsafe fn EnumPrintersW(flags: u32, name: P1, level: u32, pprinterenum: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> @@ -742,7 +742,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrintersW(flags : u32, name : windows_core::PCWSTR, level : u32, pprinterenum : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumPrintersW(core::mem::transmute(flags), name.param().abi(), core::mem::transmute(level), core::mem::transmute(pprinterenum.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() + EnumPrintersW(flags, name.param().abi(), level, core::mem::transmute(pprinterenum.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded), core::mem::transmute(pcreturned)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -753,27 +753,27 @@ where P6: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ExtDeviceMode(hwnd : super::super::Foundation:: HWND, hinst : super::super::Foundation:: HANDLE, pdevmodeoutput : *mut super::Gdi:: DEVMODEA, pdevicename : windows_core::PCSTR, pport : windows_core::PCSTR, pdevmodeinput : *const super::Gdi:: DEVMODEA, pprofile : windows_core::PCSTR, fmode : u32) -> i32); - ExtDeviceMode(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), pdevicename.param().abi(), pport.param().abi(), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed())), pprofile.param().abi(), core::mem::transmute(fmode)) + ExtDeviceMode(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmodeoutput.unwrap_or(core::mem::zeroed())), pdevicename.param().abi(), pport.param().abi(), core::mem::transmute(pdevmodeinput.unwrap_or(core::mem::zeroed())), pprofile.param().abi(), fmode) } #[inline] pub unsafe fn FindClosePrinterChangeNotification(hchange: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn FindClosePrinterChangeNotification(hchange : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindClosePrinterChangeNotification(core::mem::transmute(hchange)) + FindClosePrinterChangeNotification(hchange) } #[inline] pub unsafe fn FindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwfilter: u32, fdwoptions: u32, pprinternotifyoptions: Option<*const core::ffi::c_void>) -> super::super::Foundation::HANDLE { windows_targets::link!("winspool.drv" "system" fn FindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwfilter : u32, fdwoptions : u32, pprinternotifyoptions : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - FindFirstPrinterChangeNotification(core::mem::transmute(hprinter), core::mem::transmute(fdwfilter), core::mem::transmute(fdwoptions), core::mem::transmute(pprinternotifyoptions.unwrap_or(core::mem::zeroed()))) + FindFirstPrinterChangeNotification(core::mem::transmute(hprinter), fdwfilter, fdwoptions, core::mem::transmute(pprinternotifyoptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FindNextPrinterChangeNotification(hchange: super::super::Foundation::HANDLE, pdwchange: Option<*mut u32>, pvreserved: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn FindNextPrinterChangeNotification(hchange : super::super::Foundation:: HANDLE, pdwchange : *mut u32, pvreserved : *const core::ffi::c_void, ppprinternotifyinfo : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FindNextPrinterChangeNotification(core::mem::transmute(hchange), core::mem::transmute(pdwchange.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppprinternotifyinfo.unwrap_or(core::mem::zeroed()))) + FindNextPrinterChangeNotification(hchange, core::mem::transmute(pdwchange.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppprinternotifyinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FlushPrinter(hprinter: PRINTER_HANDLE, pbuf: Option<*const core::ffi::c_void>, cbbuf: u32, pcwritten: *mut u32, csleep: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn FlushPrinter(hprinter : PRINTER_HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32, csleep : u32) -> super::super::Foundation:: BOOL); - FlushPrinter(core::mem::transmute(hprinter), core::mem::transmute(pbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuf), core::mem::transmute(pcwritten), core::mem::transmute(csleep)) + FlushPrinter(core::mem::transmute(hprinter), core::mem::transmute(pbuf.unwrap_or(core::mem::zeroed())), cbbuf, core::mem::transmute(pcwritten), csleep) } #[inline] pub unsafe fn FreePrintNamedPropertyArray(ppproperties: Option<&mut [*mut PrintNamedProperty]>) { @@ -788,44 +788,44 @@ pub unsafe fn FreePrintPropertyValue(pvalue: *mut PrintPropertyValue) { #[inline] pub unsafe fn FreePrinterNotifyInfo(pprinternotifyinfo: *const PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn FreePrinterNotifyInfo(pprinternotifyinfo : *const PRINTER_NOTIFY_INFO) -> super::super::Foundation:: BOOL); - FreePrinterNotifyInfo(core::mem::transmute(pprinternotifyinfo)) + FreePrinterNotifyInfo(pprinternotifyinfo) } #[inline] pub unsafe fn GdiDeleteSpoolFileHandle(spoolfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiDeleteSpoolFileHandle(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GdiDeleteSpoolFileHandle(core::mem::transmute(spoolfilehandle)) + GdiDeleteSpoolFileHandle(spoolfilehandle) } #[inline] pub unsafe fn GdiEndDocEMF(spoolfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiEndDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GdiEndDocEMF(core::mem::transmute(spoolfilehandle)) + GdiEndDocEMF(spoolfilehandle) } #[inline] pub unsafe fn GdiEndPageEMF(spoolfilehandle: super::super::Foundation::HANDLE, dwoptimization: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiEndPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, dwoptimization : u32) -> super::super::Foundation:: BOOL); - GdiEndPageEMF(core::mem::transmute(spoolfilehandle), core::mem::transmute(dwoptimization)) + GdiEndPageEMF(spoolfilehandle, dwoptimization) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiGetDC(spoolfilehandle: super::super::Foundation::HANDLE) -> super::Gdi::HDC { windows_targets::link!("gdi32.dll" "system" fn GdiGetDC(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::Gdi:: HDC); - GdiGetDC(core::mem::transmute(spoolfilehandle)) + GdiGetDC(spoolfilehandle) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiGetDevmodeForPage(spoolfilehandle: super::super::Foundation::HANDLE, dwpagenumber: u32, pcurrdm: *mut *mut super::Gdi::DEVMODEW, plastdm: *mut *mut super::Gdi::DEVMODEW) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiGetDevmodeForPage(spoolfilehandle : super::super::Foundation:: HANDLE, dwpagenumber : u32, pcurrdm : *mut *mut super::Gdi:: DEVMODEW, plastdm : *mut *mut super::Gdi:: DEVMODEW) -> super::super::Foundation:: BOOL); - GdiGetDevmodeForPage(core::mem::transmute(spoolfilehandle), core::mem::transmute(dwpagenumber), core::mem::transmute(pcurrdm), core::mem::transmute(plastdm)) + GdiGetDevmodeForPage(spoolfilehandle, dwpagenumber, core::mem::transmute(pcurrdm), core::mem::transmute(plastdm)) } #[inline] pub unsafe fn GdiGetPageCount(spoolfilehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("gdi32.dll" "system" fn GdiGetPageCount(spoolfilehandle : super::super::Foundation:: HANDLE) -> u32); - GdiGetPageCount(core::mem::transmute(spoolfilehandle)) + GdiGetPageCount(spoolfilehandle) } #[inline] pub unsafe fn GdiGetPageHandle(spoolfilehandle: super::super::Foundation::HANDLE, page: u32, pdwpagetype: *mut u32) -> super::super::Foundation::HANDLE { windows_targets::link!("gdi32.dll" "system" fn GdiGetPageHandle(spoolfilehandle : super::super::Foundation:: HANDLE, page : u32, pdwpagetype : *mut u32) -> super::super::Foundation:: HANDLE); - GdiGetPageHandle(core::mem::transmute(spoolfilehandle), core::mem::transmute(page), core::mem::transmute(pdwpagetype)) + GdiGetPageHandle(spoolfilehandle, page, core::mem::transmute(pdwpagetype)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -840,24 +840,24 @@ where #[inline] pub unsafe fn GdiPlayPageEMF(spoolfilehandle: super::super::Foundation::HANDLE, hemf: super::super::Foundation::HANDLE, prectdocument: *mut super::super::Foundation::RECT, prectborder: *mut super::super::Foundation::RECT, prectclip: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiPlayPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, hemf : super::super::Foundation:: HANDLE, prectdocument : *mut super::super::Foundation:: RECT, prectborder : *mut super::super::Foundation:: RECT, prectclip : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - GdiPlayPageEMF(core::mem::transmute(spoolfilehandle), core::mem::transmute(hemf), core::mem::transmute(prectdocument), core::mem::transmute(prectborder), core::mem::transmute(prectclip)) + GdiPlayPageEMF(spoolfilehandle, hemf, core::mem::transmute(prectdocument), core::mem::transmute(prectborder), core::mem::transmute(prectclip)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiResetDCEMF(spoolfilehandle: super::super::Foundation::HANDLE, pcurrdm: *mut super::Gdi::DEVMODEW) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiResetDCEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pcurrdm : *mut super::Gdi:: DEVMODEW) -> super::super::Foundation:: BOOL); - GdiResetDCEMF(core::mem::transmute(spoolfilehandle), core::mem::transmute(pcurrdm)) + GdiResetDCEMF(spoolfilehandle, core::mem::transmute(pcurrdm)) } #[cfg(feature = "Win32_Storage_Xps")] #[inline] pub unsafe fn GdiStartDocEMF(spoolfilehandle: super::super::Foundation::HANDLE, pdocinfo: *mut super::super::Storage::Xps::DOCINFOW) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiStartDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pdocinfo : *mut super::super::Storage::Xps:: DOCINFOW) -> super::super::Foundation:: BOOL); - GdiStartDocEMF(core::mem::transmute(spoolfilehandle), core::mem::transmute(pdocinfo)) + GdiStartDocEMF(spoolfilehandle, core::mem::transmute(pdocinfo)) } #[inline] pub unsafe fn GdiStartPageEMF(spoolfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GdiStartPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GdiStartPageEMF(core::mem::transmute(spoolfilehandle)) + GdiStartPageEMF(spoolfilehandle) } #[inline] pub unsafe fn GenerateCopyFilePaths(pszprintername: P0, pszdirectory: P1, psplclientinfo: *const u8, dwlevel: u32, pszsourcedir: windows_core::PWSTR, pcchsourcedirsize: *mut u32, psztargetdir: windows_core::PWSTR, pcchtargetdirsize: *mut u32, dwflags: u32) -> u32 @@ -866,12 +866,12 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn GenerateCopyFilePaths(pszprintername : windows_core::PCWSTR, pszdirectory : windows_core::PCWSTR, psplclientinfo : *const u8, dwlevel : u32, pszsourcedir : windows_core::PWSTR, pcchsourcedirsize : *mut u32, psztargetdir : windows_core::PWSTR, pcchtargetdirsize : *mut u32, dwflags : u32) -> u32); - GenerateCopyFilePaths(pszprintername.param().abi(), pszdirectory.param().abi(), core::mem::transmute(psplclientinfo), core::mem::transmute(dwlevel), core::mem::transmute(pszsourcedir), core::mem::transmute(pcchsourcedirsize), core::mem::transmute(psztargetdir), core::mem::transmute(pcchtargetdirsize), core::mem::transmute(dwflags)) + GenerateCopyFilePaths(pszprintername.param().abi(), pszdirectory.param().abi(), psplclientinfo, dwlevel, core::mem::transmute(pszsourcedir), core::mem::transmute(pcchsourcedirsize), core::mem::transmute(psztargetdir), core::mem::transmute(pcchtargetdirsize), dwflags) } #[inline] pub unsafe fn GetCPSUIUserData(hdlg: super::super::Foundation::HWND) -> usize { windows_targets::link!("compstui.dll" "system" fn GetCPSUIUserData(hdlg : super::super::Foundation:: HWND) -> usize); - GetCPSUIUserData(core::mem::transmute(hdlg)) + GetCPSUIUserData(hdlg) } #[inline] pub unsafe fn GetCorePrinterDriversA(pszserver: P0, pszenvironment: P1, pszzcoredriverdependencies: P2, pcoreprinterdrivers: &mut [CORE_PRINTER_DRIVERA]) -> windows_core::Result<()> @@ -909,7 +909,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetFormA(core::mem::transmute(hprinter), pformname.param().abi(), core::mem::transmute(level), core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetFormA(core::mem::transmute(hprinter), pformname.param().abi(), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetFormW(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -917,12 +917,12 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetFormW(core::mem::transmute(hprinter), pformname.param().abi(), core::mem::transmute(level), core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetFormW(core::mem::transmute(hprinter), pformname.param().abi(), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetJobA(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn GetJobA(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetJobA(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(level), core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetJobA(core::mem::transmute(hprinter), jobid, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -931,7 +931,7 @@ where P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn GetJobAttributes(pprintername : windows_core::PCWSTR, pdevmode : *const super::Gdi:: DEVMODEW, pattributeinfo : *mut ATTRIBUTE_INFO_3) -> super::super::Foundation:: BOOL); - GetJobAttributes(pprintername.param().abi(), core::mem::transmute(pdevmode), core::mem::transmute(pattributeinfo)) + GetJobAttributes(pprintername.param().abi(), pdevmode, core::mem::transmute(pattributeinfo)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -940,7 +940,7 @@ where P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn GetJobAttributesEx(pprintername : windows_core::PCWSTR, pdevmode : *const super::Gdi:: DEVMODEW, dwlevel : u32, pattributeinfo : *mut u8, nsize : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - GetJobAttributesEx(pprintername.param().abi(), core::mem::transmute(pdevmode), core::mem::transmute(dwlevel), core::mem::transmute(pattributeinfo.as_ptr()), pattributeinfo.len().try_into().unwrap(), core::mem::transmute(dwflags)) + GetJobAttributesEx(pprintername.param().abi(), pdevmode, dwlevel, core::mem::transmute(pattributeinfo.as_ptr()), pattributeinfo.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn GetJobNamedPropertyValue(hprinter: PRINTER_HANDLE, jobid: u32, pszname: P2, pvalue: *mut PrintPropertyValue) -> u32 @@ -948,12 +948,12 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetJobNamedPropertyValue(hprinter : PRINTER_HANDLE, jobid : u32, pszname : windows_core::PCWSTR, pvalue : *mut PrintPropertyValue) -> u32); - GetJobNamedPropertyValue(core::mem::transmute(hprinter), core::mem::transmute(jobid), pszname.param().abi(), core::mem::transmute(pvalue)) + GetJobNamedPropertyValue(core::mem::transmute(hprinter), jobid, pszname.param().abi(), core::mem::transmute(pvalue)) } #[inline] pub unsafe fn GetJobW(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn GetJobW(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetJobW(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(level), core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetJobW(core::mem::transmute(hprinter), jobid, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrintExecutionData(pdata: *mut PRINT_EXECUTION_DATA) -> super::super::Foundation::BOOL { @@ -966,7 +966,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrintOutputInfo(hwnd : super::super::Foundation:: HWND, pszprinter : windows_core::PCWSTR, phfile : *mut super::super::Foundation:: HANDLE, ppszoutputfile : *mut windows_core::PWSTR) -> windows_core::HRESULT); - GetPrintOutputInfo(core::mem::transmute(hwnd), pszprinter.param().abi(), core::mem::transmute(phfile), core::mem::transmute(ppszoutputfile)).ok() + GetPrintOutputInfo(hwnd, pszprinter.param().abi(), core::mem::transmute(phfile), core::mem::transmute(ppszoutputfile)).ok() } #[inline] pub unsafe fn GetPrintProcessorDirectoryA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -975,7 +975,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrintProcessorDirectoryA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrintProcessorDirectoryA(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrintProcessorDirectoryA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrintProcessorDirectoryW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -984,12 +984,12 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrintProcessorDirectoryW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrintProcessorDirectoryW(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrintProcessorDirectoryW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterA(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn GetPrinterA(hprinter : PRINTER_HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterA(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pprinter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + GetPrinterA(core::mem::transmute(hprinter), level, core::mem::transmute(pprinter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } #[inline] pub unsafe fn GetPrinterDataA(hprinter: PRINTER_HANDLE, pvaluename: P1, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> u32 @@ -1031,7 +1031,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2A(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriver2A(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrinterDriver2A(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterDriver2W(hwnd: Option, hprinter: PRINTER_HANDLE, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -1039,7 +1039,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2W(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriver2W(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrinterDriver2W(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterDriverA(hprinter: PRINTER_HANDLE, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -1047,7 +1047,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverA(hprinter : PRINTER_HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriverA(core::mem::transmute(hprinter), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrinterDriverA(core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterDriverDirectoryA(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -1056,7 +1056,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverDirectoryA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pdriverdirectory : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriverDirectoryA(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrinterDriverDirectoryA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterDriverDirectoryW(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL @@ -1065,7 +1065,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverDirectoryW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pdriverdirectory : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriverDirectoryW(pname.param().abi(), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrinterDriverDirectoryW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterDriverPackagePathA(pszserver: P0, pszenvironment: P1, pszlanguage: P2, pszpackageid: P3, pszdriverpackagecab: Option<&mut [u8]>, pcchrequiredsize: *mut u32) -> windows_core::Result<()> @@ -1095,12 +1095,12 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverW(hprinter : PRINTER_HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriverW(core::mem::transmute(hprinter), penvironment.param().abi(), core::mem::transmute(level), core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) + GetPrinterDriverW(core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)) } #[inline] pub unsafe fn GetPrinterW(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn GetPrinterW(hprinter : PRINTER_HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterW(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pprinter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + GetPrinterW(core::mem::transmute(hprinter), level, core::mem::transmute(pprinter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } #[inline] pub unsafe fn GetSpoolFileHandle(hprinter: PRINTER_HANDLE) -> windows_core::Result { @@ -1111,7 +1111,7 @@ pub unsafe fn GetSpoolFileHandle(hprinter: PRINTER_HANDLE) -> windows_core::Resu #[inline] pub unsafe fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn ImpersonatePrinterClient(htoken : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ImpersonatePrinterClient(core::mem::transmute(htoken)) + ImpersonatePrinterClient(htoken) } #[inline] pub unsafe fn InstallPrinterDriverFromPackageA(pszserver: P0, pszinfpath: P1, pszdrivername: P2, pszenvironment: P3, dwflags: u32) -> windows_core::Result<()> @@ -1122,7 +1122,7 @@ where P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn InstallPrinterDriverFromPackageA(pszserver : windows_core::PCSTR, pszinfpath : windows_core::PCSTR, pszdrivername : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - InstallPrinterDriverFromPackageA(pszserver.param().abi(), pszinfpath.param().abi(), pszdrivername.param().abi(), pszenvironment.param().abi(), core::mem::transmute(dwflags)).ok() + InstallPrinterDriverFromPackageA(pszserver.param().abi(), pszinfpath.param().abi(), pszdrivername.param().abi(), pszenvironment.param().abi(), dwflags).ok() } #[inline] pub unsafe fn InstallPrinterDriverFromPackageW(pszserver: P0, pszinfpath: P1, pszdrivername: P2, pszenvironment: P3, dwflags: u32) -> windows_core::Result<()> @@ -1133,19 +1133,19 @@ where P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn InstallPrinterDriverFromPackageW(pszserver : windows_core::PCWSTR, pszinfpath : windows_core::PCWSTR, pszdrivername : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - InstallPrinterDriverFromPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszdrivername.param().abi(), pszenvironment.param().abi(), core::mem::transmute(dwflags)).ok() + InstallPrinterDriverFromPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszdrivername.param().abi(), pszenvironment.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn IsValidDevmodeA(pdevmode: Option<*const super::Gdi::DEVMODEA>, devmodesize: usize) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn IsValidDevmodeA(pdevmode : *const super::Gdi:: DEVMODEA, devmodesize : usize) -> super::super::Foundation:: BOOL); - IsValidDevmodeA(core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(devmodesize)) + IsValidDevmodeA(core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), devmodesize) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn IsValidDevmodeW(pdevmode: Option<*const super::Gdi::DEVMODEW>, devmodesize: usize) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn IsValidDevmodeW(pdevmode : *const super::Gdi:: DEVMODEW, devmodesize : usize) -> super::super::Foundation:: BOOL); - IsValidDevmodeW(core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(devmodesize)) + IsValidDevmodeW(core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), devmodesize) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1191,7 +1191,7 @@ pub unsafe fn PartialReplyPrinterChangeNotification(hprinter: PRINTER_HANDLE, pd #[inline] pub unsafe fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: &[u8], pout: &mut [u8], ul: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn PlayGdiScriptOnPrinterIC(hprinteric : super::super::Foundation:: HANDLE, pin : *const u8, cin : u32, pout : *mut u8, cout : u32, ul : u32) -> super::super::Foundation:: BOOL); - PlayGdiScriptOnPrinterIC(core::mem::transmute(hprinteric), core::mem::transmute(pin.as_ptr()), pin.len().try_into().unwrap(), core::mem::transmute(pout.as_ptr()), pout.len().try_into().unwrap(), core::mem::transmute(ul)) + PlayGdiScriptOnPrinterIC(hprinteric, core::mem::transmute(pin.as_ptr()), pin.len().try_into().unwrap(), core::mem::transmute(pout.as_ptr()), pout.len().try_into().unwrap(), ul) } #[inline] pub unsafe fn PrinterMessageBoxA(hprinter: PRINTER_HANDLE, error: u32, hwnd: super::super::Foundation::HWND, ptext: P3, pcaption: P4, dwtype: u32) -> u32 @@ -1200,7 +1200,7 @@ where P4: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn PrinterMessageBoxA(hprinter : PRINTER_HANDLE, error : u32, hwnd : super::super::Foundation:: HWND, ptext : windows_core::PCSTR, pcaption : windows_core::PCSTR, dwtype : u32) -> u32); - PrinterMessageBoxA(core::mem::transmute(hprinter), core::mem::transmute(error), core::mem::transmute(hwnd), ptext.param().abi(), pcaption.param().abi(), core::mem::transmute(dwtype)) + PrinterMessageBoxA(core::mem::transmute(hprinter), error, hwnd, ptext.param().abi(), pcaption.param().abi(), dwtype) } #[inline] pub unsafe fn PrinterMessageBoxW(hprinter: PRINTER_HANDLE, error: u32, hwnd: super::super::Foundation::HWND, ptext: P3, pcaption: P4, dwtype: u32) -> u32 @@ -1209,12 +1209,12 @@ where P4: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn PrinterMessageBoxW(hprinter : PRINTER_HANDLE, error : u32, hwnd : super::super::Foundation:: HWND, ptext : windows_core::PCWSTR, pcaption : windows_core::PCWSTR, dwtype : u32) -> u32); - PrinterMessageBoxW(core::mem::transmute(hprinter), core::mem::transmute(error), core::mem::transmute(hwnd), ptext.param().abi(), pcaption.param().abi(), core::mem::transmute(dwtype)) + PrinterMessageBoxW(core::mem::transmute(hprinter), error, hwnd, ptext.param().abi(), pcaption.param().abi(), dwtype) } #[inline] pub unsafe fn PrinterProperties(hwnd: super::super::Foundation::HWND, hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn PrinterProperties(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); - PrinterProperties(core::mem::transmute(hwnd), core::mem::transmute(hprinter)) + PrinterProperties(hwnd, core::mem::transmute(hprinter)) } #[inline] pub unsafe fn ProvidorFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { @@ -1224,12 +1224,12 @@ pub unsafe fn ProvidorFindClosePrinterChangeNotification(hprinter: PRINTER_HANDL #[inline] pub unsafe fn ProvidorFindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: Option<*const core::ffi::c_void>, pvreserved1: Option<*mut core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn ProvidorFindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwflags : u32, fdwoptions : u32, hnotify : super::super::Foundation:: HANDLE, pprinternotifyoptions : *const core::ffi::c_void, pvreserved1 : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ProvidorFindFirstPrinterChangeNotification(core::mem::transmute(hprinter), core::mem::transmute(fdwflags), core::mem::transmute(fdwoptions), core::mem::transmute(hnotify), core::mem::transmute(pprinternotifyoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved1.unwrap_or(core::mem::zeroed()))) + ProvidorFindFirstPrinterChangeNotification(core::mem::transmute(hprinter), fdwflags, fdwoptions, hnotify, core::mem::transmute(pprinternotifyoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved1.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReadPrinter(hprinter: PRINTER_HANDLE, pbuf: *mut core::ffi::c_void, cbbuf: u32, pnobytesread: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn ReadPrinter(hprinter : PRINTER_HANDLE, pbuf : *mut core::ffi::c_void, cbbuf : u32, pnobytesread : *mut u32) -> super::super::Foundation:: BOOL); - ReadPrinter(core::mem::transmute(hprinter), core::mem::transmute(pbuf), core::mem::transmute(cbbuf), core::mem::transmute(pnobytesread)) + ReadPrinter(core::mem::transmute(hprinter), core::mem::transmute(pbuf), cbbuf, core::mem::transmute(pnobytesread)) } #[inline] pub unsafe fn RegisterForPrintAsyncNotifications(pszname: P0, pnotificationtype: *const windows_core::GUID, euserfilter: PrintAsyncNotifyUserFilter, econversationstyle: PrintAsyncNotifyConversationStyle, pcallback: P4) -> windows_core::Result @@ -1239,27 +1239,27 @@ where { windows_targets::link!("winspool.drv" "system" fn RegisterForPrintAsyncNotifications(pszname : windows_core::PCWSTR, pnotificationtype : *const windows_core::GUID, euserfilter : PrintAsyncNotifyUserFilter, econversationstyle : PrintAsyncNotifyConversationStyle, pcallback : * mut core::ffi::c_void, phnotify : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RegisterForPrintAsyncNotifications(pszname.param().abi(), core::mem::transmute(pnotificationtype), core::mem::transmute(euserfilter), core::mem::transmute(econversationstyle), pcallback.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + RegisterForPrintAsyncNotifications(pszname.param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RemovePrintDeviceObject(hdeviceobject: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("spoolss.dll" "system" fn RemovePrintDeviceObject(hdeviceobject : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RemovePrintDeviceObject(core::mem::transmute(hdeviceobject)).ok() + RemovePrintDeviceObject(hdeviceobject).ok() } #[inline] pub unsafe fn ReplyPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwchangeflags: u32, pdwresult: Option<*mut u32>, pprinternotifyinfo: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwchangeflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReplyPrinterChangeNotification(core::mem::transmute(hprinter), core::mem::transmute(fdwchangeflags), core::mem::transmute(pdwresult.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprinternotifyinfo.unwrap_or(core::mem::zeroed()))) + ReplyPrinterChangeNotification(core::mem::transmute(hprinter), fdwchangeflags, core::mem::transmute(pdwresult.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprinternotifyinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotificationEx(hnotify : super::super::Foundation:: HANDLE, dwcolor : u32, fdwflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReplyPrinterChangeNotificationEx(core::mem::transmute(hnotify), core::mem::transmute(dwcolor), core::mem::transmute(fdwflags), core::mem::transmute(pdwresult), core::mem::transmute(pprinternotifyinfo)) + ReplyPrinterChangeNotificationEx(hnotify, dwcolor, fdwflags, core::mem::transmute(pdwresult), pprinternotifyinfo) } #[inline] pub unsafe fn ReportJobProcessingProgress(printerhandle: super::super::Foundation::HANDLE, jobid: u32, joboperation: EPrintXPSJobOperation, jobprogress: EPrintXPSJobProgress) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn ReportJobProcessingProgress(printerhandle : super::super::Foundation:: HANDLE, jobid : u32, joboperation : EPrintXPSJobOperation, jobprogress : EPrintXPSJobProgress) -> windows_core::HRESULT); - ReportJobProcessingProgress(core::mem::transmute(printerhandle), core::mem::transmute(jobid), core::mem::transmute(joboperation), core::mem::transmute(jobprogress)).ok() + ReportJobProcessingProgress(printerhandle, jobid, joboperation, jobprogress).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1281,27 +1281,27 @@ pub unsafe fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE { #[inline] pub unsafe fn RouterAllocBidiMem(numbytes: usize) -> *mut core::ffi::c_void { windows_targets::link!("spoolss.dll" "system" fn RouterAllocBidiMem(numbytes : usize) -> *mut core::ffi::c_void); - RouterAllocBidiMem(core::mem::transmute(numbytes)) + RouterAllocBidiMem(numbytes) } #[inline] pub unsafe fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER { windows_targets::link!("spoolss.dll" "system" fn RouterAllocBidiResponseContainer(count : u32) -> *mut BIDI_RESPONSE_CONTAINER); - RouterAllocBidiResponseContainer(core::mem::transmute(count)) + RouterAllocBidiResponseContainer(count) } #[inline] pub unsafe fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO { windows_targets::link!("spoolss.dll" "system" fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata : u32) -> *mut PRINTER_NOTIFY_INFO); - RouterAllocPrinterNotifyInfo(core::mem::transmute(cprinternotifyinfodata)) + RouterAllocPrinterNotifyInfo(cprinternotifyinfodata) } #[inline] pub unsafe fn RouterFreeBidiMem(pmempointer: *const core::ffi::c_void) { windows_targets::link!("spoolss.dll" "system" fn RouterFreeBidiMem(pmempointer : *const core::ffi::c_void)); - RouterFreeBidiMem(core::mem::transmute(pmempointer)) + RouterFreeBidiMem(pmempointer) } #[inline] pub unsafe fn RouterFreeBidiResponseContainer(pdata: *const BIDI_RESPONSE_CONTAINER) -> u32 { windows_targets::link!("winspool.drv" "system" fn RouterFreeBidiResponseContainer(pdata : *const BIDI_RESPONSE_CONTAINER) -> u32); - RouterFreeBidiResponseContainer(core::mem::transmute(pdata)) + RouterFreeBidiResponseContainer(pdata) } #[inline] pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: Option<*const PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL { @@ -1311,12 +1311,12 @@ pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: Option<*const PRINTER_NOTIFY_IN #[inline] pub unsafe fn ScheduleJob(hprinter: PRINTER_HANDLE, jobid: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn ScheduleJob(hprinter : PRINTER_HANDLE, jobid : u32) -> super::super::Foundation:: BOOL); - ScheduleJob(core::mem::transmute(hprinter), core::mem::transmute(jobid)) + ScheduleJob(core::mem::transmute(hprinter), jobid) } #[inline] pub unsafe fn SetCPSUIUserData(hdlg: super::super::Foundation::HWND, cpsuiuserdata: usize) -> super::super::Foundation::BOOL { windows_targets::link!("compstui.dll" "system" fn SetCPSUIUserData(hdlg : super::super::Foundation:: HWND, cpsuiuserdata : usize) -> super::super::Foundation:: BOOL); - SetCPSUIUserData(core::mem::transmute(hdlg), core::mem::transmute(cpsuiuserdata)) + SetCPSUIUserData(hdlg, cpsuiuserdata) } #[inline] pub unsafe fn SetDefaultPrinterA(pszprinter: P0) -> super::super::Foundation::BOOL @@ -1340,7 +1340,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - SetFormA(core::mem::transmute(hprinter), pformname.param().abi(), core::mem::transmute(level), core::mem::transmute(pform)) + SetFormA(core::mem::transmute(hprinter), pformname.param().abi(), level, pform) } #[inline] pub unsafe fn SetFormW(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: *const u8) -> super::super::Foundation::BOOL @@ -1348,22 +1348,22 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - SetFormW(core::mem::transmute(hprinter), pformname.param().abi(), core::mem::transmute(level), core::mem::transmute(pform)) + SetFormW(core::mem::transmute(hprinter), pformname.param().abi(), level, pform) } #[inline] pub unsafe fn SetJobA(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn SetJobA(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetJobA(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(level), core::mem::transmute(pjob.unwrap_or(core::mem::zeroed())), core::mem::transmute(command)) + SetJobA(core::mem::transmute(hprinter), jobid, level, core::mem::transmute(pjob.unwrap_or(core::mem::zeroed())), command) } #[inline] pub unsafe fn SetJobNamedProperty(hprinter: PRINTER_HANDLE, jobid: u32, pproperty: *const PrintNamedProperty) -> u32 { windows_targets::link!("winspool.drv" "system" fn SetJobNamedProperty(hprinter : PRINTER_HANDLE, jobid : u32, pproperty : *const PrintNamedProperty) -> u32); - SetJobNamedProperty(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(pproperty)) + SetJobNamedProperty(core::mem::transmute(hprinter), jobid, pproperty) } #[inline] pub unsafe fn SetJobW(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn SetJobW(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetJobW(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(level), core::mem::transmute(pjob.unwrap_or(core::mem::zeroed())), core::mem::transmute(command)) + SetJobW(core::mem::transmute(hprinter), jobid, level, core::mem::transmute(pjob.unwrap_or(core::mem::zeroed())), command) } #[inline] pub unsafe fn SetPortA(pname: P0, pportname: P1, dwlevel: u32, pportinfo: *const u8) -> windows_core::Result<()> @@ -1372,7 +1372,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPortA(pname : windows_core::PCSTR, pportname : windows_core::PCSTR, dwlevel : u32, pportinfo : *const u8) -> super::super::Foundation:: BOOL); - SetPortA(pname.param().abi(), pportname.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(pportinfo)).ok() + SetPortA(pname.param().abi(), pportname.param().abi(), dwlevel, pportinfo).ok() } #[inline] pub unsafe fn SetPortW(pname: P0, pportname: P1, dwlevel: u32, pportinfo: *const u8) -> windows_core::Result<()> @@ -1381,12 +1381,12 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPortW(pname : windows_core::PCWSTR, pportname : windows_core::PCWSTR, dwlevel : u32, pportinfo : *const u8) -> super::super::Foundation:: BOOL); - SetPortW(pname.param().abi(), pportname.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(pportinfo)).ok() + SetPortW(pname.param().abi(), pportname.param().abi(), dwlevel, pportinfo).ok() } #[inline] pub unsafe fn SetPrinterA(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<*const u8>, command: u32) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn SetPrinterA(hprinter : PRINTER_HANDLE, level : u32, pprinter : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetPrinterA(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pprinter.unwrap_or(core::mem::zeroed())), core::mem::transmute(command)).ok() + SetPrinterA(core::mem::transmute(hprinter), level, core::mem::transmute(pprinter.unwrap_or(core::mem::zeroed())), command).ok() } #[inline] pub unsafe fn SetPrinterDataA(hprinter: PRINTER_HANDLE, pvaluename: P1, r#type: u32, pdata: &[u8]) -> u32 @@ -1394,7 +1394,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataA(hprinter : PRINTER_HANDLE, pvaluename : windows_core::PCSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataA(core::mem::transmute(hprinter), pvaluename.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataA(core::mem::transmute(hprinter), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) } #[inline] pub unsafe fn SetPrinterDataExA(hprinter: PRINTER_HANDLE, pkeyname: P1, pvaluename: P2, r#type: u32, pdata: &[u8]) -> u32 @@ -1403,7 +1403,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataExA(hprinter : PRINTER_HANDLE, pkeyname : windows_core::PCSTR, pvaluename : windows_core::PCSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataExA(core::mem::transmute(hprinter), pkeyname.param().abi(), pvaluename.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataExA(core::mem::transmute(hprinter), pkeyname.param().abi(), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) } #[inline] pub unsafe fn SetPrinterDataExW(hprinter: PRINTER_HANDLE, pkeyname: P1, pvaluename: P2, r#type: u32, pdata: &[u8]) -> u32 @@ -1412,7 +1412,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataExW(hprinter : PRINTER_HANDLE, pkeyname : windows_core::PCWSTR, pvaluename : windows_core::PCWSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataExW(core::mem::transmute(hprinter), pkeyname.param().abi(), pvaluename.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataExW(core::mem::transmute(hprinter), pkeyname.param().abi(), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) } #[inline] pub unsafe fn SetPrinterDataW(hprinter: PRINTER_HANDLE, pvaluename: P1, r#type: u32, pdata: &[u8]) -> u32 @@ -1420,22 +1420,22 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataW(hprinter : PRINTER_HANDLE, pvaluename : windows_core::PCWSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataW(core::mem::transmute(hprinter), pvaluename.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataW(core::mem::transmute(hprinter), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) } #[inline] pub unsafe fn SetPrinterW(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<*const u8>, command: u32) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn SetPrinterW(hprinter : PRINTER_HANDLE, level : u32, pprinter : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetPrinterW(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pprinter.unwrap_or(core::mem::zeroed())), core::mem::transmute(command)).ok() + SetPrinterW(core::mem::transmute(hprinter), level, core::mem::transmute(pprinter.unwrap_or(core::mem::zeroed())), command).ok() } #[inline] pub unsafe fn SplIsSessionZero(hprinter: PRINTER_HANDLE, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("spoolss.dll" "system" fn SplIsSessionZero(hprinter : PRINTER_HANDLE, jobid : u32, pissessionzero : *mut super::super::Foundation:: BOOL) -> u32); - SplIsSessionZero(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(pissessionzero)) + SplIsSessionZero(core::mem::transmute(hprinter), jobid, core::mem::transmute(pissessionzero)) } #[inline] pub unsafe fn SplPromptUIInUsersSession(hprinter: PRINTER_HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn SplPromptUIInUsersSession(hprinter : PRINTER_HANDLE, jobid : u32, puiparams : *const SHOWUIPARAMS, presponse : *mut u32) -> super::super::Foundation:: BOOL); - SplPromptUIInUsersSession(core::mem::transmute(hprinter), core::mem::transmute(jobid), core::mem::transmute(puiparams), core::mem::transmute(presponse)) + SplPromptUIInUsersSession(core::mem::transmute(hprinter), jobid, puiparams, core::mem::transmute(presponse)) } #[inline] pub unsafe fn SpoolerCopyFileEvent(pszprintername: P0, pszkey: P1, dwcopyfileevent: u32) -> super::super::Foundation::BOOL @@ -1444,7 +1444,7 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn SpoolerCopyFileEvent(pszprintername : windows_core::PCWSTR, pszkey : windows_core::PCWSTR, dwcopyfileevent : u32) -> super::super::Foundation:: BOOL); - SpoolerCopyFileEvent(pszprintername.param().abi(), pszkey.param().abi(), core::mem::transmute(dwcopyfileevent)) + SpoolerCopyFileEvent(pszprintername.param().abi(), pszkey.param().abi(), dwcopyfileevent) } #[inline] pub unsafe fn SpoolerFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { @@ -1454,7 +1454,7 @@ pub unsafe fn SpoolerFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE #[inline] pub unsafe fn SpoolerFindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const core::ffi::c_void, pvreserved: Option<*const core::ffi::c_void>, pnotificationconfig: *const core::ffi::c_void, phnotify: Option<*mut super::super::Foundation::HANDLE>, phevent: Option<*mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn SpoolerFindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwfilterflags : u32, fdwoptions : u32, pprinternotifyoptions : *const core::ffi::c_void, pvreserved : *const core::ffi::c_void, pnotificationconfig : *const core::ffi::c_void, phnotify : *mut super::super::Foundation:: HANDLE, phevent : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SpoolerFindFirstPrinterChangeNotification(core::mem::transmute(hprinter), core::mem::transmute(fdwfilterflags), core::mem::transmute(fdwoptions), core::mem::transmute(pprinternotifyoptions), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnotificationconfig), core::mem::transmute(phnotify.unwrap_or(core::mem::zeroed())), core::mem::transmute(phevent.unwrap_or(core::mem::zeroed()))) + SpoolerFindFirstPrinterChangeNotification(core::mem::transmute(hprinter), fdwfilterflags, fdwoptions, pprinternotifyoptions, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), pnotificationconfig, core::mem::transmute(phnotify.unwrap_or(core::mem::zeroed())), core::mem::transmute(phevent.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SpoolerFindNextPrinterChangeNotification(hprinter: PRINTER_HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL { @@ -1464,22 +1464,22 @@ pub unsafe fn SpoolerFindNextPrinterChangeNotification(hprinter: PRINTER_HANDLE, #[inline] pub unsafe fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) { windows_targets::link!("spoolss.dll" "system" fn SpoolerFreePrinterNotifyInfo(pinfo : *const PRINTER_NOTIFY_INFO)); - SpoolerFreePrinterNotifyInfo(core::mem::transmute(pinfo)) + SpoolerFreePrinterNotifyInfo(pinfo) } #[inline] pub unsafe fn SpoolerRefreshPrinterChangeNotification(hprinter: PRINTER_HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: Option<*mut *mut PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL { windows_targets::link!("spoolss.dll" "system" fn SpoolerRefreshPrinterChangeNotification(hprinter : PRINTER_HANDLE, dwcolor : u32, poptions : *const PRINTER_NOTIFY_OPTIONS, ppinfo : *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation:: BOOL); - SpoolerRefreshPrinterChangeNotification(core::mem::transmute(hprinter), core::mem::transmute(dwcolor), core::mem::transmute(poptions), core::mem::transmute(ppinfo.unwrap_or(core::mem::zeroed()))) + SpoolerRefreshPrinterChangeNotification(core::mem::transmute(hprinter), dwcolor, poptions, core::mem::transmute(ppinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn StartDocPrinterA(hprinter: PRINTER_HANDLE, level: u32, pdocinfo: *const DOC_INFO_1A) -> u32 { windows_targets::link!("winspool.drv" "system" fn StartDocPrinterA(hprinter : PRINTER_HANDLE, level : u32, pdocinfo : *const DOC_INFO_1A) -> u32); - StartDocPrinterA(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pdocinfo)) + StartDocPrinterA(core::mem::transmute(hprinter), level, pdocinfo) } #[inline] pub unsafe fn StartDocPrinterW(hprinter: PRINTER_HANDLE, level: u32, pdocinfo: *const DOC_INFO_1W) -> u32 { windows_targets::link!("winspool.drv" "system" fn StartDocPrinterW(hprinter : PRINTER_HANDLE, level : u32, pdocinfo : *const DOC_INFO_1W) -> u32); - StartDocPrinterW(core::mem::transmute(hprinter), core::mem::transmute(level), core::mem::transmute(pdocinfo)) + StartDocPrinterW(core::mem::transmute(hprinter), level, pdocinfo) } #[inline] pub unsafe fn StartPagePrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { @@ -1489,12 +1489,12 @@ pub unsafe fn StartPagePrinter(hprinter: PRINTER_HANDLE) -> super::super::Founda #[inline] pub unsafe fn UnRegisterForPrintAsyncNotifications(param0: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("winspool.drv" "system" fn UnRegisterForPrintAsyncNotifications(param0 : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - UnRegisterForPrintAsyncNotifications(core::mem::transmute(param0)).ok() + UnRegisterForPrintAsyncNotifications(param0).ok() } #[inline] pub unsafe fn UpdatePrintDeviceObject(hprinter: PRINTER_HANDLE, hdeviceobject: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("spoolss.dll" "system" fn UpdatePrintDeviceObject(hprinter : PRINTER_HANDLE, hdeviceobject : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - UpdatePrintDeviceObject(core::mem::transmute(hprinter), core::mem::transmute(hdeviceobject)).ok() + UpdatePrintDeviceObject(core::mem::transmute(hprinter), hdeviceobject).ok() } #[inline] pub unsafe fn UploadPrinterDriverPackageA(pszserver: P0, pszinfpath: P1, pszenvironment: P2, dwflags: u32, hwnd: super::super::Foundation::HWND, pszdestinfpath: windows_core::PSTR, pcchdestinfpath: *mut u32) -> windows_core::Result<()> @@ -1504,7 +1504,7 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn UploadPrinterDriverPackageA(pszserver : windows_core::PCSTR, pszinfpath : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, dwflags : u32, hwnd : super::super::Foundation:: HWND, pszdestinfpath : windows_core::PSTR, pcchdestinfpath : *mut u32) -> windows_core::HRESULT); - UploadPrinterDriverPackageA(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(hwnd), core::mem::transmute(pszdestinfpath), core::mem::transmute(pcchdestinfpath)).ok() + UploadPrinterDriverPackageA(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi(), dwflags, hwnd, core::mem::transmute(pszdestinfpath), core::mem::transmute(pcchdestinfpath)).ok() } #[inline] pub unsafe fn UploadPrinterDriverPackageW(pszserver: P0, pszinfpath: P1, pszenvironment: P2, dwflags: u32, hwnd: super::super::Foundation::HWND, pszdestinfpath: windows_core::PWSTR, pcchdestinfpath: *mut u32) -> windows_core::Result<()> @@ -1514,17 +1514,17 @@ where P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn UploadPrinterDriverPackageW(pszserver : windows_core::PCWSTR, pszinfpath : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, dwflags : u32, hwnd : super::super::Foundation:: HWND, pszdestinfpath : windows_core::PWSTR, pcchdestinfpath : *mut u32) -> windows_core::HRESULT); - UploadPrinterDriverPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(hwnd), core::mem::transmute(pszdestinfpath), core::mem::transmute(pcchdestinfpath)).ok() + UploadPrinterDriverPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi(), dwflags, hwnd, core::mem::transmute(pszdestinfpath), core::mem::transmute(pcchdestinfpath)).ok() } #[inline] pub unsafe fn WaitForPrinterChange(hprinter: PRINTER_HANDLE, flags: u32) -> u32 { windows_targets::link!("winspool.drv" "system" fn WaitForPrinterChange(hprinter : PRINTER_HANDLE, flags : u32) -> u32); - WaitForPrinterChange(core::mem::transmute(hprinter), core::mem::transmute(flags)) + WaitForPrinterChange(core::mem::transmute(hprinter), flags) } #[inline] pub unsafe fn WritePrinter(hprinter: PRINTER_HANDLE, pbuf: *const core::ffi::c_void, cbbuf: u32, pcwritten: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("winspool.drv" "system" fn WritePrinter(hprinter : PRINTER_HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32) -> super::super::Foundation:: BOOL); - WritePrinter(core::mem::transmute(hprinter), core::mem::transmute(pbuf), core::mem::transmute(cbbuf), core::mem::transmute(pcwritten)) + WritePrinter(core::mem::transmute(hprinter), pbuf, cbbuf, core::mem::transmute(pcwritten)) } #[inline] pub unsafe fn XcvDataW(hxcv: super::super::Foundation::HANDLE, pszdataname: P1, pinputdata: Option<&[u8]>, poutputdata: Option<&mut [u8]>, pcboutputneeded: *mut u32, pdwstatus: Option<*mut u32>) -> super::super::Foundation::BOOL @@ -1532,16 +1532,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn XcvDataW(hxcv : super::super::Foundation:: HANDLE, pszdataname : windows_core::PCWSTR, pinputdata : *const u8, cbinputdata : u32, poutputdata : *mut u8, cboutputdata : u32, pcboutputneeded : *mut u32, pdwstatus : *mut u32) -> super::super::Foundation:: BOOL); - XcvDataW( - core::mem::transmute(hxcv), - pszdataname.param().abi(), - core::mem::transmute(pinputdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pinputdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(poutputdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - poutputdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcboutputneeded), - core::mem::transmute(pdwstatus.unwrap_or(core::mem::zeroed())), - ) + XcvDataW(hxcv, pszdataname.param().abi(), core::mem::transmute(pinputdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pinputdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcboutputneeded), core::mem::transmute(pdwstatus.unwrap_or(core::mem::zeroed()))) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -3291,10 +3282,10 @@ windows_core::imp::define_interface!(IAsyncGetSrvReferralCookie, IAsyncGetSrvRef windows_core::imp::interface_hierarchy!(IAsyncGetSrvReferralCookie, windows_core::IUnknown); impl IAsyncGetSrvReferralCookie { pub unsafe fn FinishAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishAsyncCall)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).FinishAsyncCall)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn CancelAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelAsyncCall)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).CancelAsyncCall)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn FinishAsyncCallWithData(&self, param0: P0) -> windows_core::Result<()> where @@ -3436,14 +3427,14 @@ impl IBidiRequest { (windows_core::Interface::vtable(self).SetSchema)(windows_core::Interface::as_raw(self), pszschema.param().abi()).ok() } pub unsafe fn SetInputData(&self, dwtype: u32, pdata: *const u8, usize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtype), core::mem::transmute(pdata), core::mem::transmute(usize)).ok() + (windows_core::Interface::vtable(self).SetInputData)(windows_core::Interface::as_raw(self), dwtype, pdata, usize).ok() } pub unsafe fn GetResult(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetResult)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetOutputData(&self, dwindex: u32, ppszschema: *mut windows_core::PWSTR, pdwtype: *mut u32, ppdata: *mut *mut u8, usize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(ppszschema), core::mem::transmute(pdwtype), core::mem::transmute(ppdata), core::mem::transmute(usize)).ok() + (windows_core::Interface::vtable(self).GetOutputData)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(ppszschema), core::mem::transmute(pdwtype), core::mem::transmute(ppdata), core::mem::transmute(usize)).ok() } pub unsafe fn GetEnumCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3596,7 +3587,7 @@ impl IBidiSpl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindDevice)(windows_core::Interface::as_raw(self), pszdevicename.param().abi(), core::mem::transmute(dwaccess)).ok() + (windows_core::Interface::vtable(self).BindDevice)(windows_core::Interface::as_raw(self), pszdevicename.param().abi(), dwaccess).ok() } pub unsafe fn UnbindDevice(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnbindDevice)(windows_core::Interface::as_raw(self)).ok() @@ -3668,7 +3659,7 @@ impl IBidiSpl2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindDevice)(windows_core::Interface::as_raw(self), pszdevicename.param().abi(), core::mem::transmute(dwaccess)).ok() + (windows_core::Interface::vtable(self).BindDevice)(windows_core::Interface::as_raw(self), pszdevicename.param().abi(), dwaccess).ok() } pub unsafe fn UnbindDevice(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnbindDevice)(windows_core::Interface::as_raw(self)).ok() @@ -4398,7 +4389,7 @@ impl IImgErrorInfo { } pub unsafe fn GetUserParameter(&self, cparam: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(cparam), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetUserParameter)(windows_core::Interface::as_raw(self), cparam, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetUserFallback(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4622,7 +4613,7 @@ impl IPartBase { (windows_core::Interface::vtable(self).GetPartCompression)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPartCompression(&self, compression: EXpsCompressionOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPartCompression)(windows_core::Interface::as_raw(self), core::mem::transmute(compression)).ok() + (windows_core::Interface::vtable(self).SetPartCompression)(windows_core::Interface::as_raw(self), compression).ok() } } #[repr(C)] @@ -4757,7 +4748,7 @@ impl IPartFont { (windows_core::Interface::vtable(self).SetFontContent)(windows_core::Interface::as_raw(self), pcontenttype.param().abi()).ok() } pub unsafe fn SetFontOptions(&self, options: EXpsFontOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetFontOptions)(windows_core::Interface::as_raw(self), options).ok() } } #[repr(C)] @@ -5001,10 +4992,10 @@ windows_core::imp::define_interface!(IPrintAsyncCookie, IPrintAsyncCookie_Vtbl, windows_core::imp::interface_hierarchy!(IPrintAsyncCookie, windows_core::IUnknown); impl IPrintAsyncCookie { pub unsafe fn FinishAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishAsyncCall)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).FinishAsyncCall)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn CancelAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelAsyncCall)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)).ok() + (windows_core::Interface::vtable(self).CancelAsyncCall)(windows_core::Interface::as_raw(self), param0).ok() } } #[repr(C)] @@ -5048,7 +5039,7 @@ impl core::ops::Deref for IPrintAsyncNewChannelCookie { windows_core::imp::interface_hierarchy!(IPrintAsyncNewChannelCookie, windows_core::IUnknown, IPrintAsyncCookie); impl IPrintAsyncNewChannelCookie { pub unsafe fn FinishAsyncCallWithData(&self, param0: *const Option, param1: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishAsyncCallWithData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() + (windows_core::Interface::vtable(self).FinishAsyncCallWithData)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1).ok() } } #[repr(C)] @@ -5080,14 +5071,14 @@ impl IPrintAsyncNotify { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePrintAsyncNotifyChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), param4.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePrintAsyncNotifyChannel)(windows_core::Interface::as_raw(self), param0, param1, param2, param3, param4.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePrintAsyncNotifyRegistration(&self, param0: *const windows_core::GUID, param1: PrintAsyncNotifyUserFilter, param2: PrintAsyncNotifyConversationStyle, param3: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePrintAsyncNotifyRegistration)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), param3.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePrintAsyncNotifyRegistration)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5419,7 +5410,7 @@ impl IPrintClassObjectFactory { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPrintClassObject)(windows_core::Interface::as_raw(self), pszprintername.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppnewobject)).ok() + (windows_core::Interface::vtable(self).GetPrintClassObject)(windows_core::Interface::as_raw(self), pszprintername.param().abi(), riid, core::mem::transmute(ppnewobject)).ok() } } #[repr(C)] @@ -5452,18 +5443,18 @@ impl IPrintCoreHelper { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), pszfeaturerequested.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), cbsize, pszfeaturerequested.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetOptions(&self, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: bool, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode), core::mem::transmute(cbsize), bresolveconflicts.into(), core::mem::transmute(pfopairs), core::mem::transmute(cpairs), core::mem::transmute(pcpairswritten), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode), cbsize, bresolveconflicts.into(), pfopairs, cpairs, core::mem::transmute(pcpairswritten), core::mem::transmute(pdwresult)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: P2, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode), core::mem::transmute(cbsize), pszfeaturekeyword.param().abi(), core::mem::transmute(pconstrainedoptionlist), core::mem::transmute(pdwnumoptions)).ok() + (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.param().abi(), pconstrainedoptionlist, core::mem::transmute(pdwnumoptions)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn WhyConstrained(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturekeyword: P2, pszoptionkeyword: P3, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::Result<()> @@ -5471,7 +5462,7 @@ impl IPrintCoreHelper { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), core::mem::transmute(ppfoconstraints), core::mem::transmute(pdwnumoptions)).ok() + (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), cbsize, pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), core::mem::transmute(ppfoconstraints), core::mem::transmute(pdwnumoptions)).ok() } pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut windows_core::PCSTR, pdwnumfeatures: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumFeatures)(windows_core::Interface::as_raw(self), core::mem::transmute(pfeaturelist), core::mem::transmute(pdwnumfeatures)).ok() @@ -5486,7 +5477,7 @@ impl IPrintCoreHelper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.param().abi(), core::mem::transmute(ppszdevfontname)).ok() + (windows_core::Interface::vtable(self).GetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.param().abi(), ppszdevfontname).ok() } pub unsafe fn SetFontSubstitution(&self, psztruetypefontname: P0, pszdevfontname: P1) -> windows_core::Result<()> where @@ -5499,7 +5490,7 @@ impl IPrintCoreHelper { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), punkouter.param().abi(), core::mem::transmute(dwclscontext), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -5686,12 +5677,12 @@ windows_core::imp::interface_hierarchy!(IPrintCoreHelperUni, windows_core::IUnkn impl IPrintCoreHelperUni { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn CreateGDLSnapshot(&self, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, dwflags: u32, ppsnapshotstream: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateGDLSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode), core::mem::transmute(cbsize), core::mem::transmute(dwflags), core::mem::transmute(ppsnapshotstream)).ok() + (windows_core::Interface::vtable(self).CreateGDLSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode), cbsize, dwflags, core::mem::transmute(ppsnapshotstream)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDefaultGDLSnapshot(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDefaultGDLSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDefaultGDLSnapshot)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5754,7 +5745,7 @@ impl IPrintCoreHelperUni2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNamedCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), pszcommandname.param().abi(), core::mem::transmute(ppcommandbytes), core::mem::transmute(pcbcommandsize)).ok() + (windows_core::Interface::vtable(self).GetNamedCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), cbsize, pszcommandname.param().abi(), core::mem::transmute(ppcommandbytes), core::mem::transmute(pcbcommandsize)).ok() } } #[repr(C)] @@ -5796,7 +5787,7 @@ impl IPrintCoreUI2 { pub unsafe fn GetOptions(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pmszfeaturesrequested: Option<&[u8]>, pmszfeatureoptionbuf: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOptions)( windows_core::Interface::as_raw(self), - core::mem::transmute(poemuiobj), + poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmszfeaturesrequested.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszfeaturesrequested.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -5808,33 +5799,33 @@ impl IPrintCoreUI2 { } pub unsafe fn SetOptions(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeatureoptionbuf: &[u8]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags), core::mem::transmute(pmszfeatureoptionbuf.as_ptr()), pmszfeatureoptionbuf.len().try_into().unwrap(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, core::mem::transmute(pmszfeatureoptionbuf.as_ptr()), pmszfeatureoptionbuf.len().try_into().unwrap(), &mut result__).map(|| result__) } pub unsafe fn EnumConstrainedOptions(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pszfeaturekeyword: P2, pmszconstrainedoptionlist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), core::mem::transmute(pmszconstrainedoptionlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszconstrainedoptionlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), core::mem::transmute(pmszconstrainedoptionlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszconstrainedoptionlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn WhyConstrained(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pszfeaturekeyword: P2, pszoptionkeyword: P3, pmszreasonlist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), core::mem::transmute(pmszreasonlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszreasonlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), core::mem::transmute(pmszreasonlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszreasonlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn GetGlobalAttribute(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pszattribute: P2, pdwdatatype: *mut u32, pbdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlobalAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszattribute.param().abi(), core::mem::transmute(pdwdatatype), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).GetGlobalAttribute)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszattribute.param().abi(), core::mem::transmute(pdwdatatype), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn GetFeatureAttribute(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pszfeaturekeyword: P2, pszattribute: P3, pdwdatatype: *mut u32, pbdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFeatureAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), pszattribute.param().abi(), core::mem::transmute(pdwdatatype), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).GetFeatureAttribute)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), pszattribute.param().abi(), core::mem::transmute(pdwdatatype), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn GetOptionAttribute(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pszfeaturekeyword: P2, pszoptionkeyword: P3, pszattribute: P4, pdwdatatype: *mut u32, pbdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where @@ -5842,19 +5833,19 @@ impl IPrintCoreUI2 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOptionAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), pszattribute.param().abi(), core::mem::transmute(pdwdatatype), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).GetOptionAttribute)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), pszattribute.param().abi(), core::mem::transmute(pdwdatatype), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn EnumFeatures(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pmszfeaturelist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumFeatures)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmszfeaturelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszfeaturelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).EnumFeatures)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmszfeaturelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszfeaturelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn EnumOptions(&self, poemuiobj: *const OEMUIOBJ, dwflags: Option, pszfeaturekeyword: P2, pmszoptionlist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), core::mem::transmute(pmszoptionlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszoptionlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), poemuiobj, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), pszfeaturekeyword.param().abi(), core::mem::transmute(pmszoptionlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmszoptionlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } pub unsafe fn QuerySimulationSupport(&self, hprinter: super::super::Foundation::HANDLE, dwlevel: u32, pcaps: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QuerySimulationSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(dwlevel), core::mem::transmute(pcaps.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcaps.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).QuerySimulationSupport)(windows_core::Interface::as_raw(self), hprinter, dwlevel, core::mem::transmute(pcaps.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcaps.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbneeded)).ok() } } #[repr(C)] @@ -6102,7 +6093,7 @@ impl IPrintJobCollection { } pub unsafe fn GetAt(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), ulindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6173,11 +6164,11 @@ windows_core::imp::define_interface!(IPrintOemCommon, IPrintOemCommon_Vtbl, 0x7f windows_core::imp::interface_hierarchy!(IPrintOemCommon, windows_core::IUnknown); impl IPrintOemCommon { pub unsafe fn GetInfo(&self, dwmode: u32, pbuffer: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode), core::mem::transmute(pbuffer), core::mem::transmute(cbsize), core::mem::transmute(pcbneeded)).ok() + (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), dwmode, core::mem::transmute(pbuffer), cbsize, core::mem::transmute(pcbneeded)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DevMode(&self, dwmode: u32, poemdmparam: *mut OEMDMPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DevMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode), core::mem::transmute(poemdmparam)).ok() + (windows_core::Interface::vtable(self).DevMode)(windows_core::Interface::as_raw(self), dwmode, core::mem::transmute(poemdmparam)).ok() } } #[repr(C)] @@ -6220,17 +6211,17 @@ impl IPrintOemDriverUI { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrvGetDriverSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(pci), feature.param().abi(), core::mem::transmute(poutput), core::mem::transmute(cbsize), core::mem::transmute(pcbneeded), core::mem::transmute(pdwoptionsreturned)).ok() + (windows_core::Interface::vtable(self).DrvGetDriverSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(pci), feature.param().abi(), core::mem::transmute(poutput), cbsize, core::mem::transmute(pcbneeded), core::mem::transmute(pdwoptionsreturned)).ok() } pub unsafe fn DrvUpgradeRegistrySetting(&self, hprinter: super::super::Foundation::HANDLE, pfeature: P1, poption: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrvUpgradeRegistrySetting)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), pfeature.param().abi(), poption.param().abi()).ok() + (windows_core::Interface::vtable(self).DrvUpgradeRegistrySetting)(windows_core::Interface::as_raw(self), hprinter, pfeature.param().abi(), poption.param().abi()).ok() } pub unsafe fn DrvUpdateUISetting(&self, pci: *mut core::ffi::c_void, poptitem: *mut core::ffi::c_void, dwpreviousselection: u32, dwmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrvUpdateUISetting)(windows_core::Interface::as_raw(self), core::mem::transmute(pci), core::mem::transmute(poptitem), core::mem::transmute(dwpreviousselection), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).DrvUpdateUISetting)(windows_core::Interface::as_raw(self), core::mem::transmute(pci), core::mem::transmute(poptitem), dwpreviousselection, dwmode).ok() } } #[repr(C)] @@ -6288,49 +6279,49 @@ impl IPrintOemUI { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn CommonUIProp(&self, dwmode: u32, poemcuipparam: *const OEMCUIPPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommonUIProp)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode), core::mem::transmute(poemcuipparam)).ok() + (windows_core::Interface::vtable(self).CommonUIProp)(windows_core::Interface::as_raw(self), dwmode, poemcuipparam).ok() } pub unsafe fn DocumentPropertySheets(&self, ppsuiinfo: *mut PROPSHEETUI_INFO, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DocumentPropertySheets)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsuiinfo), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).DocumentPropertySheets)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsuiinfo), lparam).ok() } pub unsafe fn DevicePropertySheets(&self, ppsuiinfo: *const PROPSHEETUI_INFO, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DevicePropertySheets)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsuiinfo), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).DevicePropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DevQueryPrintEx(&self, poemuiobj: *const OEMUIOBJ, pdqpinfo: *const DEVQUERYPRINT_INFO, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DevQueryPrintEx)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(pdqpinfo), core::mem::transmute(ppublicdm), core::mem::transmute(poemdm)).ok() + (windows_core::Interface::vtable(self).DevQueryPrintEx)(windows_core::Interface::as_raw(self), poemuiobj, pdqpinfo, ppublicdm, poemdm).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DeviceCapabilitiesA(&self, poemuiobj: *mut OEMUIOBJ, hprinter: super::super::Foundation::HANDLE, pdevicename: P2, 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::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceCapabilitiesA)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), core::mem::transmute(hprinter), pdevicename.param().abi(), core::mem::transmute(wcapability), core::mem::transmute(poutput), core::mem::transmute(ppublicdm), core::mem::transmute(poemdm), core::mem::transmute(dwold), core::mem::transmute(dwresult)).ok() + (windows_core::Interface::vtable(self).DeviceCapabilitiesA)(windows_core::Interface::as_raw(self), core::mem::transmute(poemuiobj), hprinter, pdevicename.param().abi(), wcapability, core::mem::transmute(poutput), ppublicdm, poemdm, dwold, core::mem::transmute(dwresult)).ok() } pub unsafe fn UpgradePrinter(&self, dwlevel: u32, pdriverupgradeinfo: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpgradePrinter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlevel), core::mem::transmute(pdriverupgradeinfo)).ok() + (windows_core::Interface::vtable(self).UpgradePrinter)(windows_core::Interface::as_raw(self), dwlevel, pdriverupgradeinfo).ok() } pub unsafe fn PrinterEvent(&self, pprintername: P0, idriverevent: i32, dwflags: u32, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrinterEvent)(windows_core::Interface::as_raw(self), pprintername.param().abi(), core::mem::transmute(idriverevent), core::mem::transmute(dwflags), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).PrinterEvent)(windows_core::Interface::as_raw(self), pprintername.param().abi(), idriverevent, dwflags, lparam).ok() } pub unsafe fn DriverEvent(&self, dwdriverevent: u32, dwlevel: u32, pdriverinfo: *const u8, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DriverEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdriverevent), core::mem::transmute(dwlevel), core::mem::transmute(pdriverinfo), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).DriverEvent)(windows_core::Interface::as_raw(self), dwdriverevent, dwlevel, pdriverinfo, lparam).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn QueryColorProfile(&self, hprinter: PRINTER_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::Result<()> { - (windows_core::Interface::vtable(self).QueryColorProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(poemuiobj), core::mem::transmute(ppublicdm), core::mem::transmute(poemdm), core::mem::transmute(ulquerymode), core::mem::transmute(pvprofiledata), core::mem::transmute(pcbprofiledata), core::mem::transmute(pflprofiledata)).ok() + (windows_core::Interface::vtable(self).QueryColorProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), poemuiobj, ppublicdm, poemdm, ulquerymode, core::mem::transmute(pvprofiledata), core::mem::transmute(pcbprofiledata), core::mem::transmute(pflprofiledata)).ok() } pub unsafe fn FontInstallerDlgProc(&self, hwnd: super::super::Foundation::HWND, usmsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FontInstallerDlgProc)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(usmsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).FontInstallerDlgProc)(windows_core::Interface::as_raw(self), hwnd, usmsg, wparam, lparam).ok() } pub unsafe fn UpdateExternalFonts(&self, hprinter: PRINTER_HANDLE, hheap: super::super::Foundation::HANDLE, pwstrcartridges: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateExternalFonts)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(hheap), pwstrcartridges.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateExternalFonts)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), hheap, pwstrcartridges.param().abi()).ok() } } #[repr(C)] @@ -6460,14 +6451,14 @@ windows_core::imp::interface_hierarchy!(IPrintOemUI2, windows_core::IUnknown, IP impl IPrintOemUI2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn QueryJobAttributes(&self, hprinter: PRINTER_HANDLE, pdevmode: *const super::Gdi::DEVMODEA, dwlevel: u32, lpattributeinfo: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryJobAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(pdevmode), core::mem::transmute(dwlevel), core::mem::transmute(lpattributeinfo)).ok() + (windows_core::Interface::vtable(self).QueryJobAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), pdevmode, dwlevel, lpattributeinfo).ok() } pub unsafe fn HideStandardUI(&self, dwmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HideStandardUI)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).HideStandardUI)(windows_core::Interface::as_raw(self), dwmode).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DocumentEvent(&self, hprinter: PRINTER_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::Result<()> { - (windows_core::Interface::vtable(self).DocumentEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(hdc), core::mem::transmute(iesc), core::mem::transmute(cbin), core::mem::transmute(pvin), core::mem::transmute(cbout), core::mem::transmute(pvout), core::mem::transmute(piresult)).ok() + (windows_core::Interface::vtable(self).DocumentEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), hdc, iesc, cbin, core::mem::transmute(pvin), cbout, core::mem::transmute(pvout), core::mem::transmute(piresult)).ok() } } #[repr(C)] @@ -6522,15 +6513,15 @@ windows_core::imp::interface_hierarchy!(IPrintOemUIMXDC, windows_core::IUnknown) impl IPrintOemUIMXDC { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AdjustImageableArea(&self, hprinter: PRINTER_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<()> { - (windows_core::Interface::vtable(self).AdjustImageableArea)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(cbdevmode), core::mem::transmute(pdevmode), core::mem::transmute(cboemdm), core::mem::transmute(poemdm), core::mem::transmute(prclimageablearea)).ok() + (windows_core::Interface::vtable(self).AdjustImageableArea)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), cbdevmode, pdevmode, cboemdm, poemdm, core::mem::transmute(prclimageablearea)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AdjustImageCompression(&self, hprinter: PRINTER_HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pcompressionmode: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AdjustImageCompression)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(cbdevmode), core::mem::transmute(pdevmode), core::mem::transmute(cboemdm), core::mem::transmute(poemdm), core::mem::transmute(pcompressionmode)).ok() + (windows_core::Interface::vtable(self).AdjustImageCompression)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), cbdevmode, pdevmode, cboemdm, poemdm, core::mem::transmute(pcompressionmode)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AdjustDPI(&self, hprinter: PRINTER_HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pdpi: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AdjustDPI)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(cbdevmode), core::mem::transmute(pdevmode), core::mem::transmute(cboemdm), core::mem::transmute(poemdm), core::mem::transmute(pdpi)).ok() + (windows_core::Interface::vtable(self).AdjustDPI)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), cbdevmode, pdevmode, cboemdm, poemdm, core::mem::transmute(pdpi)).ok() } } #[repr(C)] @@ -6647,7 +6638,7 @@ impl IPrintPipelineManagerControl { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestShutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(hrreason), preason.param().abi()).ok() + (windows_core::Interface::vtable(self).RequestShutdown)(windows_core::Interface::as_raw(self), hrreason, preason.param().abi()).ok() } pub unsafe fn FilterFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FilterFinished)(windows_core::Interface::as_raw(self)).ok() @@ -6694,7 +6685,7 @@ windows_core::imp::define_interface!(IPrintPipelineProgressReport, IPrintPipelin windows_core::imp::interface_hierarchy!(IPrintPipelineProgressReport, windows_core::IUnknown); impl IPrintPipelineProgressReport { pub unsafe fn ReportProgress(&self, update: EXpsJobConsumption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(update)).ok() + (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), update).ok() } } #[repr(C)] @@ -6800,14 +6791,14 @@ windows_core::imp::define_interface!(IPrintPreviewDxgiPackageTarget, IPrintPrevi windows_core::imp::interface_hierarchy!(IPrintPreviewDxgiPackageTarget, windows_core::IUnknown); impl IPrintPreviewDxgiPackageTarget { pub unsafe fn SetJobPageCount(&self, counttype: PageCountType, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJobPageCount)(windows_core::Interface::as_raw(self), core::mem::transmute(counttype), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetJobPageCount)(windows_core::Interface::as_raw(self), counttype, count).ok() } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn DrawPage(&self, jobpagenumber: u32, pageimage: P1, dpix: f32, dpiy: f32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawPage)(windows_core::Interface::as_raw(self), core::mem::transmute(jobpagenumber), pageimage.param().abi(), core::mem::transmute(dpix), core::mem::transmute(dpiy)).ok() + (windows_core::Interface::vtable(self).DrawPage)(windows_core::Interface::as_raw(self), jobpagenumber, pageimage.param().abi(), dpix, dpiy).ok() } pub unsafe fn InvalidatePreview(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InvalidatePreview)(windows_core::Interface::as_raw(self)).ok() @@ -6861,10 +6852,10 @@ windows_core::imp::define_interface!(IPrintReadStream, IPrintReadStream_Vtbl, 0x windows_core::imp::interface_hierarchy!(IPrintReadStream, windows_core::IUnknown); impl IPrintReadStream { pub unsafe fn Seek(&self, dlibmove: i64, dworigin: u32, plibnewposition: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(dlibmove), core::mem::transmute(dworigin), core::mem::transmute(plibnewposition.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), dlibmove, dworigin, core::mem::transmute(plibnewposition.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadBytes(&self, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(pvbuffer), core::mem::transmute(cbrequested), core::mem::transmute(pcbread), core::mem::transmute(pbendoffile)).ok() + (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(pvbuffer), cbrequested, core::mem::transmute(pcbread), core::mem::transmute(pbendoffile)).ok() } } #[repr(C)] @@ -7001,7 +6992,7 @@ impl IPrintSchemaAsyncOperationEvent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), pticket.param().abi(), core::mem::transmute(hroperation)).ok() + (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), pticket.param().abi(), hroperation).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7643,7 +7634,7 @@ impl IPrintSchemaOptionCollection { } pub unsafe fn GetAt(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), ulindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8146,7 +8137,7 @@ impl IPrintSchemaTicket { (windows_core::Interface::vtable(self).JobCopiesAllDocuments)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJobCopiesAllDocuments(&self, uljobcopiesalldocuments: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJobCopiesAllDocuments)(windows_core::Interface::as_raw(self), core::mem::transmute(uljobcopiesalldocuments)).ok() + (windows_core::Interface::vtable(self).SetJobCopiesAllDocuments)(windows_core::Interface::as_raw(self), uljobcopiesalldocuments).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8318,7 +8309,7 @@ impl IPrintTicketProvider { (windows_core::Interface::vtable(self).GetSupportedVersions)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(ppversions), core::mem::transmute(cversions)).ok() } pub unsafe fn BindPrinter(&self, hprinter: PRINTER_HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindPrinter)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), core::mem::transmute(version), core::mem::transmute(poptions), core::mem::transmute(pdevmodeflags), core::mem::transmute(cnamespaces), core::mem::transmute(ppnamespaces)).ok() + (windows_core::Interface::vtable(self).BindPrinter)(windows_core::Interface::as_raw(self), core::mem::transmute(hprinter), version, core::mem::transmute(poptions), core::mem::transmute(pdevmodeflags), core::mem::transmute(cnamespaces), core::mem::transmute(ppnamespaces)).ok() } pub unsafe fn QueryDeviceNamespace(&self, pdefaultnamespace: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryDeviceNamespace)(windows_core::Interface::as_raw(self), core::mem::transmute(pdefaultnamespace)).ok() @@ -8328,14 +8319,14 @@ impl IPrintTicketProvider { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertPrintTicketToDevMode)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), core::mem::transmute(cbdevmodein), core::mem::transmute(pdevmodein), core::mem::transmute(pcbdevmodeout), core::mem::transmute(ppdevmodeout)).ok() + (windows_core::Interface::vtable(self).ConvertPrintTicketToDevMode)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), cbdevmodein, core::mem::transmute(pdevmodein), core::mem::transmute(pcbdevmodeout), core::mem::transmute(ppdevmodeout)).ok() } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn ConvertDevModeToPrintTicket(&self, cbdevmode: u32, pdevmode: *mut super::Gdi::DEVMODEA, pprintticket: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertDevModeToPrintTicket)(windows_core::Interface::as_raw(self), core::mem::transmute(cbdevmode), core::mem::transmute(pdevmode), pprintticket.param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertDevModeToPrintTicket)(windows_core::Interface::as_raw(self), cbdevmode, core::mem::transmute(pdevmode), pprintticket.param().abi()).ok() } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn GetPrintCapabilities(&self, pprintticket: P0) -> windows_core::Result @@ -8561,7 +8552,7 @@ windows_core::imp::interface_hierarchy!(IPrintWriteStream, windows_core::IUnknow impl IPrintWriteStream { pub unsafe fn WriteBytes(&self, pvbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WriteBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(pvbuffer), core::mem::transmute(cbbuffer), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WriteBytes)(windows_core::Interface::as_raw(self), pvbuffer, cbbuffer, &mut result__).map(|| result__) } pub unsafe fn Close(&self) { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)) @@ -8632,7 +8623,7 @@ windows_core::imp::define_interface!(IPrinterBidiSetRequestCallback, IPrinterBid windows_core::imp::interface_hierarchy!(IPrinterBidiSetRequestCallback, windows_core::IUnknown); impl IPrinterBidiSetRequestCallback { pub unsafe fn Completed(&self, bstrresponse: &windows_core::BSTR, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresponse), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresponse), hrstatus).ok() } } #[repr(C)] @@ -8806,7 +8797,7 @@ impl IPrinterExtensionContextCollection { } pub unsafe fn GetAt(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), ulindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9143,7 +9134,7 @@ windows_core::imp::interface_hierarchy!(IPrinterExtensionRequest, windows_core:: #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionRequest { pub unsafe fn Cancel(&self, hrstatus: windows_core::HRESULT, bstrlogmessage: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus), core::mem::transmute_copy(bstrlogmessage)).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), hrstatus, core::mem::transmute_copy(bstrlogmessage)).ok() } pub unsafe fn Complete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Complete)(windows_core::Interface::as_raw(self)).ok() @@ -9209,7 +9200,7 @@ impl IPrinterPropertyBag { (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), &mut result__).map(|| result__) } pub unsafe fn SetInt32(&self, bstrname: &windows_core::BSTR, nvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(nvalue)).ok() + (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), nvalue).ok() } pub unsafe fn GetString(&self, bstrname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9480,7 +9471,7 @@ impl IPrinterQueue2 { } pub unsafe fn GetPrinterQueueView(&self, ulviewoffset: u32, ulviewsize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPrinterQueueView)(windows_core::Interface::as_raw(self), core::mem::transmute(ulviewoffset), core::mem::transmute(ulviewsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPrinterQueueView)(windows_core::Interface::as_raw(self), ulviewoffset, ulviewsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -9544,7 +9535,7 @@ windows_core::imp::interface_hierarchy!(IPrinterQueueEvent, windows_core::IUnkno #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueEvent { pub unsafe fn OnBidiResponseReceived(&self, bstrresponse: &windows_core::BSTR, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnBidiResponseReceived)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresponse), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnBidiResponseReceived)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresponse), hrstatus).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9586,7 +9577,7 @@ windows_core::imp::interface_hierarchy!(IPrinterQueueView, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueView { pub unsafe fn SetViewRange(&self, ulviewoffset: u32, ulviewsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewRange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulviewoffset), core::mem::transmute(ulviewsize)).ok() + (windows_core::Interface::vtable(self).SetViewRange)(windows_core::Interface::as_raw(self), ulviewoffset, ulviewsize).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9631,7 +9622,7 @@ impl IPrinterQueueViewEvent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), pcollection.param().abi(), core::mem::transmute(ulviewoffset), core::mem::transmute(ulviewsize), core::mem::transmute(ulcountjobsinprintqueue)).ok() + (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), pcollection.param().abi(), ulviewoffset, ulviewsize, ulcountjobsinprintqueue).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9770,7 +9761,7 @@ impl IPrinterScriptablePropertyBag { (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), &mut result__).map(|| result__) } pub unsafe fn SetInt32(&self, bstrname: &windows_core::BSTR, nvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(nvalue)).ok() + (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), nvalue).ok() } pub unsafe fn GetString(&self, bstrname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9989,7 +9980,7 @@ windows_core::imp::interface_hierarchy!(IPrinterScriptableSequentialStream, wind impl IPrinterScriptableSequentialStream { pub unsafe fn Read(&self, cbread: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(cbread), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), cbread, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Write(&self, parray: P0) -> windows_core::Result where @@ -10061,10 +10052,10 @@ impl IPrinterScriptableStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Seek(&self, loffset: i32, streamseek: super::super::System::Com::STREAM_SEEK) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(loffset), core::mem::transmute(streamseek), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), loffset, streamseek, &mut result__).map(|| result__) } pub unsafe fn SetSize(&self, lsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lsize)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), lsize).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10209,7 +10200,7 @@ impl IXpsDocumentConsumer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNewEmptyPart)(windows_core::Interface::as_raw(self), uri.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppnewobject), core::mem::transmute(ppwritestream)).ok() + (windows_core::Interface::vtable(self).GetNewEmptyPart)(windows_core::Interface::as_raw(self), uri.param().abi(), riid, core::mem::transmute(ppnewobject), core::mem::transmute(ppwritestream)).ok() } } #[repr(C)] @@ -10383,7 +10374,7 @@ impl IXpsRasterizationFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.param().abi(), core::mem::transmute(dpi), core::mem::transmute(nontextrenderingmode), core::mem::transmute(textrenderingmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.param().abi(), dpi, nontextrenderingmode, textrenderingmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10428,7 +10419,7 @@ impl IXpsRasterizationFactory1 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.param().abi(), core::mem::transmute(dpi), core::mem::transmute(nontextrenderingmode), core::mem::transmute(textrenderingmode), core::mem::transmute(pixelformat), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.param().abi(), dpi, nontextrenderingmode, textrenderingmode, pixelformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10473,7 +10464,7 @@ impl IXpsRasterizationFactory2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.param().abi(), core::mem::transmute(dpix), core::mem::transmute(dpiy), core::mem::transmute(nontextrenderingmode), core::mem::transmute(textrenderingmode), core::mem::transmute(pixelformat), core::mem::transmute(backgroundcolor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.param().abi(), dpix, dpiy, nontextrenderingmode, textrenderingmode, pixelformat, backgroundcolor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10518,10 +10509,10 @@ impl IXpsRasterizer { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RasterizeRect)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(height), notificationcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RasterizeRect)(windows_core::Interface::as_raw(self), x, y, width, height, notificationcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMinimalLineWidth(&self, width: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimalLineWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(width)).ok() + (windows_core::Interface::vtable(self).SetMinimalLineWidth)(windows_core::Interface::as_raw(self), width).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs b/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs index 2337270c90..311a5d13ec 100644 --- a/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs @@ -36,7 +36,7 @@ where #[inline] pub unsafe fn GetDeviceRegistrationInfo(deviceinformationclass: REGISTRATION_INFORMATION_CLASS, ppdeviceregistrationinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("mdmregistration.dll" "system" fn GetDeviceRegistrationInfo(deviceinformationclass : REGISTRATION_INFORMATION_CLASS, ppdeviceregistrationinfo : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - GetDeviceRegistrationInfo(core::mem::transmute(deviceinformationclass), core::mem::transmute(ppdeviceregistrationinfo)).ok() + GetDeviceRegistrationInfo(deviceinformationclass, core::mem::transmute(ppdeviceregistrationinfo)).ok() } #[inline] pub unsafe fn GetManagementAppHyperlink(pszhyperlink: &mut [u16]) -> windows_core::Result<()> { @@ -78,7 +78,7 @@ where #[inline] pub unsafe fn RegisterDeviceWithManagementUsingAADCredentials(usertoken: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADCredentials(usertoken : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RegisterDeviceWithManagementUsingAADCredentials(core::mem::transmute(usertoken)).ok() + RegisterDeviceWithManagementUsingAADCredentials(usertoken).ok() } #[inline] pub unsafe fn RegisterDeviceWithManagementUsingAADDeviceCredentials() -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/mod.rs index 79b65ab552..e1d7863f5c 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/mod.rs @@ -453,10 +453,10 @@ windows_core::imp::define_interface!(IApoAuxiliaryInputConfiguration, IApoAuxili windows_core::imp::interface_hierarchy!(IApoAuxiliaryInputConfiguration, windows_core::IUnknown); impl IApoAuxiliaryInputConfiguration { pub unsafe fn AddAuxiliaryInput(&self, dwinputid: u32, pbydata: &[u8], pinputconnection: *const APO_CONNECTION_DESCRIPTOR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAuxiliaryInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputid), pbydata.len().try_into().unwrap(), core::mem::transmute(pbydata.as_ptr()), core::mem::transmute(pinputconnection)).ok() + (windows_core::Interface::vtable(self).AddAuxiliaryInput)(windows_core::Interface::as_raw(self), dwinputid, pbydata.len().try_into().unwrap(), core::mem::transmute(pbydata.as_ptr()), core::mem::transmute(pinputconnection)).ok() } pub unsafe fn RemoveAuxiliaryInput(&self, dwinputid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAuxiliaryInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputid)).ok() + (windows_core::Interface::vtable(self).RemoveAuxiliaryInput)(windows_core::Interface::as_raw(self), dwinputid).ok() } pub unsafe fn IsInputFormatSupported(&self, prequestedinputformat: P0) -> windows_core::Result where @@ -514,7 +514,7 @@ windows_core::imp::define_interface!(IApoAuxiliaryInputRT, IApoAuxiliaryInputRT_ windows_core::imp::interface_hierarchy!(IApoAuxiliaryInputRT, windows_core::IUnknown); impl IApoAuxiliaryInputRT { pub unsafe fn AcceptInput(&self, dwinputid: u32, pinputconnection: *const APO_CONNECTION_PROPERTY) { - (windows_core::Interface::vtable(self).AcceptInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputid), core::mem::transmute(pinputconnection)) + (windows_core::Interface::vtable(self).AcceptInput)(windows_core::Interface::as_raw(self), dwinputid, pinputconnection) } } #[repr(C)] @@ -829,7 +829,7 @@ impl IAudioProcessingObjectLoggingService { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ApoLog)(windows_core::Interface::as_raw(self), core::mem::transmute(level), format.param().abi()) + (windows_core::Interface::vtable(self).ApoLog)(windows_core::Interface::as_raw(self), level, format.param().abi()) } } #[repr(C)] @@ -911,7 +911,7 @@ impl core::ops::Deref for IAudioProcessingObjectNotifications2 { windows_core::imp::interface_hierarchy!(IAudioProcessingObjectNotifications2, windows_core::IUnknown, IAudioProcessingObjectNotifications); impl IAudioProcessingObjectNotifications2 { pub unsafe fn GetApoNotificationRegistrationInfo2(&self, maxaponotificationtypesupported: APO_NOTIFICATION_TYPE, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetApoNotificationRegistrationInfo2)(windows_core::Interface::as_raw(self), core::mem::transmute(maxaponotificationtypesupported), core::mem::transmute(aponotifications), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).GetApoNotificationRegistrationInfo2)(windows_core::Interface::as_raw(self), maxaponotificationtypesupported, core::mem::transmute(aponotifications), core::mem::transmute(count)).ok() } } #[repr(C)] @@ -945,13 +945,13 @@ windows_core::imp::define_interface!(IAudioProcessingObjectRT, IAudioProcessingO windows_core::imp::interface_hierarchy!(IAudioProcessingObjectRT, windows_core::IUnknown); impl IAudioProcessingObjectRT { pub unsafe fn APOProcess(&self, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_PROPERTY, u32numoutputconnections: u32, ppoutputconnections: *mut *mut APO_CONNECTION_PROPERTY) { - (windows_core::Interface::vtable(self).APOProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(u32numinputconnections), core::mem::transmute(ppinputconnections), core::mem::transmute(u32numoutputconnections), core::mem::transmute(ppoutputconnections)) + (windows_core::Interface::vtable(self).APOProcess)(windows_core::Interface::as_raw(self), u32numinputconnections, ppinputconnections, u32numoutputconnections, core::mem::transmute(ppoutputconnections)) } pub unsafe fn CalcInputFrames(&self, u32outputframecount: u32) -> u32 { - (windows_core::Interface::vtable(self).CalcInputFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(u32outputframecount)) + (windows_core::Interface::vtable(self).CalcInputFrames)(windows_core::Interface::as_raw(self), u32outputframecount) } pub unsafe fn CalcOutputFrames(&self, u32inputframecount: u32) -> u32 { - (windows_core::Interface::vtable(self).CalcOutputFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(u32inputframecount)) + (windows_core::Interface::vtable(self).CalcOutputFrames)(windows_core::Interface::as_raw(self), u32inputframecount) } } #[repr(C)] @@ -1032,11 +1032,11 @@ windows_core::imp::interface_hierarchy!(IAudioProcessingObjectVBR, windows_core: impl IAudioProcessingObjectVBR { pub unsafe fn CalcMaxInputFrames(&self, u32maxoutputframecount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CalcMaxInputFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(u32maxoutputframecount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CalcMaxInputFrames)(windows_core::Interface::as_raw(self), u32maxoutputframecount, &mut result__).map(|| result__) } pub unsafe fn CalcMaxOutputFrames(&self, u32maxinputframecount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CalcMaxOutputFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(u32maxinputframecount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CalcMaxOutputFrames)(windows_core::Interface::as_raw(self), u32maxinputframecount, &mut result__).map(|| result__) } } #[repr(C)] @@ -1108,7 +1108,7 @@ impl core::ops::Deref for IAudioSystemEffects2 { windows_core::imp::interface_hierarchy!(IAudioSystemEffects2, windows_core::IUnknown, IAudioSystemEffects); impl IAudioSystemEffects2 { pub unsafe fn GetEffectsList(&self, ppeffectsids: *mut *mut windows_core::GUID, pceffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectsList)(windows_core::Interface::as_raw(self), core::mem::transmute(ppeffectsids), core::mem::transmute(pceffects), core::mem::transmute(event)).ok() + (windows_core::Interface::vtable(self).GetEffectsList)(windows_core::Interface::as_raw(self), core::mem::transmute(ppeffectsids), core::mem::transmute(pceffects), event).ok() } } #[repr(C)] @@ -1145,7 +1145,7 @@ impl IAudioSystemEffects3 { (windows_core::Interface::vtable(self).GetControllableSystemEffectsList)(windows_core::Interface::as_raw(self), core::mem::transmute(effects), core::mem::transmute(numeffects), core::mem::transmute(event.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetAudioSystemEffectState(&self, effectid: windows_core::GUID, state: AUDIO_SYSTEMEFFECT_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioSystemEffectState)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetAudioSystemEffectState)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), state).ok() } } #[repr(C)] @@ -1188,11 +1188,11 @@ impl IAudioSystemEffectsCustomFormats { } pub unsafe fn GetFormat(&self, nformat: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(nformat), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), nformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFormatRepresentation(&self, nformat: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormatRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(nformat), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFormatRepresentation)(windows_core::Interface::as_raw(self), nformat, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs index 996ca7e118..f0b279e09c 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs @@ -839,7 +839,7 @@ windows_core::imp::define_interface!(IDirectMusic, IDirectMusic_Vtbl, 0x6536115a windows_core::imp::interface_hierarchy!(IDirectMusic, windows_core::IUnknown); impl IDirectMusic { pub unsafe fn EnumPort(&self, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumPort)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pportcaps)).ok() + (windows_core::Interface::vtable(self).EnumPort)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pportcaps)).ok() } pub unsafe fn CreateMusicBuffer(&self, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut Option, punkouter: P2) -> windows_core::Result<()> where @@ -851,16 +851,16 @@ impl IDirectMusic { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePort)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsidport), core::mem::transmute(pportparams), core::mem::transmute(ppport), punkouter.param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePort)(windows_core::Interface::as_raw(self), rclsidport, core::mem::transmute(pportparams), core::mem::transmute(ppport), punkouter.param().abi()).ok() } pub unsafe fn EnumMasterClock(&self, dwindex: u32, lpclockinfo: *mut DMUS_CLOCKINFO8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMasterClock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(lpclockinfo)).ok() + (windows_core::Interface::vtable(self).EnumMasterClock)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(lpclockinfo)).ok() } pub unsafe fn GetMasterClock(&self, pguidclock: *mut windows_core::GUID, ppreferenceclock: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMasterClock)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidclock), core::mem::transmute(ppreferenceclock)).ok() } pub unsafe fn SetMasterClock(&self, rguidclock: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMasterClock)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidclock)).ok() + (windows_core::Interface::vtable(self).SetMasterClock)(windows_core::Interface::as_raw(self), rguidclock).ok() } pub unsafe fn Activate(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.into()).ok() @@ -873,7 +873,7 @@ impl IDirectMusic { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), hwnd).ok() } } #[repr(C)] @@ -1012,10 +1012,10 @@ impl IDirectMusicBuffer { (windows_core::Interface::vtable(self).TotalTime)(windows_core::Interface::as_raw(self), core::mem::transmute(prttime)).ok() } pub unsafe fn PackStructured(&self, rt: i64, dwchannelgroup: u32, dwchannelmessage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PackStructured)(windows_core::Interface::as_raw(self), core::mem::transmute(rt), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannelmessage)).ok() + (windows_core::Interface::vtable(self).PackStructured)(windows_core::Interface::as_raw(self), rt, dwchannelgroup, dwchannelmessage).ok() } pub unsafe fn PackUnstructured(&self, rt: i64, dwchannelgroup: u32, cb: u32, lpb: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PackUnstructured)(windows_core::Interface::as_raw(self), core::mem::transmute(rt), core::mem::transmute(dwchannelgroup), core::mem::transmute(cb), core::mem::transmute(lpb)).ok() + (windows_core::Interface::vtable(self).PackUnstructured)(windows_core::Interface::as_raw(self), rt, dwchannelgroup, cb, core::mem::transmute(lpb)).ok() } pub unsafe fn ResetReadPtr(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetReadPtr)(windows_core::Interface::as_raw(self)).ok() @@ -1039,10 +1039,10 @@ impl IDirectMusicBuffer { (windows_core::Interface::vtable(self).GetBufferFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidformat)).ok() } pub unsafe fn SetStartTime(&self, rt: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(rt)).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), rt).ok() } pub unsafe fn SetUsedBytes(&self, cb: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUsedBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(cb)).ok() + (windows_core::Interface::vtable(self).SetUsedBytes)(windows_core::Interface::as_raw(self), cb).ok() } } #[repr(C)] @@ -1158,13 +1158,13 @@ windows_core::imp::interface_hierarchy!(IDirectMusicCollection, windows_core::IU impl IDirectMusicCollection { pub unsafe fn GetInstrument(&self, dwpatch: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInstrument)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpatch), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInstrument)(windows_core::Interface::as_raw(self), dwpatch, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumInstrument(&self, dwindex: u32, pdwpatch: *mut u32, pwszname: P2, dwnamelen: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumInstrument)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pdwpatch), pwszname.param().abi(), core::mem::transmute(dwnamelen)).ok() + (windows_core::Interface::vtable(self).EnumInstrument)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pdwpatch), pwszname.param().abi(), dwnamelen).ok() } } #[repr(C)] @@ -1255,7 +1255,7 @@ impl IDirectMusicInstrument { (windows_core::Interface::vtable(self).GetPatch)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwpatch)).ok() } pub unsafe fn SetPatch(&self, dwpatch: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPatch)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpatch)).ok() + (windows_core::Interface::vtable(self).SetPatch)(windows_core::Interface::as_raw(self), dwpatch).ok() } } #[repr(C)] @@ -1295,7 +1295,7 @@ impl IDirectMusicPort { (windows_core::Interface::vtable(self).PlayBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn SetReadNotificationHandle(&self, hevent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReadNotificationHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SetReadNotificationHandle)(windows_core::Interface::as_raw(self), hevent).ok() } pub unsafe fn Read(&self, pbuffer: P0) -> windows_core::Result<()> where @@ -1307,7 +1307,7 @@ impl IDirectMusicPort { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DownloadInstrument)(windows_core::Interface::as_raw(self), pinstrument.param().abi(), core::mem::transmute(ppdownloadedinstrument), core::mem::transmute(pnoteranges), core::mem::transmute(dwnumnoteranges)).ok() + (windows_core::Interface::vtable(self).DownloadInstrument)(windows_core::Interface::as_raw(self), pinstrument.param().abi(), core::mem::transmute(ppdownloadedinstrument), core::mem::transmute(pnoteranges), dwnumnoteranges).ok() } pub unsafe fn UnloadInstrument(&self, pdownloadedinstrument: P0) -> windows_core::Result<()> where @@ -1330,10 +1330,10 @@ impl IDirectMusicPort { } #[cfg(feature = "Win32_System_IO")] pub unsafe fn DeviceIoControl(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).DeviceIoControl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwiocontrolcode), core::mem::transmute(lpinbuffer), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned), core::mem::transmute(lpoverlapped)).ok() + (windows_core::Interface::vtable(self).DeviceIoControl)(windows_core::Interface::as_raw(self), dwiocontrolcode, core::mem::transmute(lpinbuffer), ninbuffersize, core::mem::transmute(lpoutbuffer), noutbuffersize, core::mem::transmute(lpbytesreturned), core::mem::transmute(lpoverlapped)).ok() } pub unsafe fn SetNumChannelGroups(&self, dwchannelgroups: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumChannelGroups)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchannelgroups)).ok() + (windows_core::Interface::vtable(self).SetNumChannelGroups)(windows_core::Interface::as_raw(self), dwchannelgroups).ok() } pub unsafe fn GetNumChannelGroups(&self, pdwchannelgroups: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNumChannelGroups)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwchannelgroups)).ok() @@ -1342,10 +1342,10 @@ impl IDirectMusicPort { (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), factive.into()).ok() } pub unsafe fn SetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannel), core::mem::transmute(dwpriority)).ok() + (windows_core::Interface::vtable(self).SetChannelPriority)(windows_core::Interface::as_raw(self), dwchannelgroup, dwchannel, dwpriority).ok() } pub unsafe fn GetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChannelPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannel), core::mem::transmute(pdwpriority)).ok() + (windows_core::Interface::vtable(self).GetChannelPriority)(windows_core::Interface::as_raw(self), dwchannelgroup, dwchannel, core::mem::transmute(pdwpriority)).ok() } #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn SetDirectSound(&self, pdirectsound: P0, pdirectsoundbuffer: P1) -> windows_core::Result<()> @@ -1515,14 +1515,14 @@ windows_core::imp::interface_hierarchy!(IDirectMusicPortDownload, windows_core:: impl IDirectMusicPortDownload { pub unsafe fn GetBuffer(&self, dwdlid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdlid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), dwdlid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AllocateBuffer(&self, dwsize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocateBuffer)(windows_core::Interface::as_raw(self), dwsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDLId(&self, pdwstartdlid: *mut u32, dwcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDLId)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstartdlid), core::mem::transmute(dwcount)).ok() + (windows_core::Interface::vtable(self).GetDLId)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstartdlid), dwcount).ok() } pub unsafe fn GetAppend(&self, pdwappend: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAppend)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwappend)).ok() @@ -1621,16 +1621,16 @@ impl IDirectMusicSynth { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetNumChannelGroups(&self, dwgroups: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumChannelGroups)(windows_core::Interface::as_raw(self), core::mem::transmute(dwgroups)).ok() + (windows_core::Interface::vtable(self).SetNumChannelGroups)(windows_core::Interface::as_raw(self), dwgroups).ok() } pub unsafe fn Download(&self, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), core::mem::transmute(phdownload), core::mem::transmute(pvdata), core::mem::transmute(pbfree)).ok() } pub unsafe fn Unload(&self, hdownload: super::super::super::Foundation::HANDLE, lpfreehandle: isize, huserdata: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unload)(windows_core::Interface::as_raw(self), core::mem::transmute(hdownload), core::mem::transmute(lpfreehandle), core::mem::transmute(huserdata)).ok() + (windows_core::Interface::vtable(self).Unload)(windows_core::Interface::as_raw(self), hdownload, lpfreehandle, huserdata).ok() } pub unsafe fn PlayBuffer(&self, rt: i64, pbbuffer: *mut u8, cbbuffer: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(rt), core::mem::transmute(pbbuffer), core::mem::transmute(cbbuffer)).ok() + (windows_core::Interface::vtable(self).PlayBuffer)(windows_core::Interface::as_raw(self), rt, core::mem::transmute(pbbuffer), cbbuffer).ok() } pub unsafe fn GetRunningStats(&self, pstats: *mut DMUS_SYNTHSTATS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningStats)(windows_core::Interface::as_raw(self), core::mem::transmute(pstats)).ok() @@ -1658,13 +1658,13 @@ impl IDirectMusicSynth { (windows_core::Interface::vtable(self).SetSynthSink)(windows_core::Interface::as_raw(self), psynthsink.param().abi()).ok() } pub unsafe fn Render(&self, pbuffer: *mut i16, dwlength: u32, llposition: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer), core::mem::transmute(dwlength), core::mem::transmute(llposition)).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer), dwlength, llposition).ok() } pub unsafe fn SetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannel), core::mem::transmute(dwpriority)).ok() + (windows_core::Interface::vtable(self).SetChannelPriority)(windows_core::Interface::as_raw(self), dwchannelgroup, dwchannel, dwpriority).ok() } pub unsafe fn GetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChannelPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannel), core::mem::transmute(pdwpriority)).ok() + (windows_core::Interface::vtable(self).GetChannelPriority)(windows_core::Interface::as_raw(self), dwchannelgroup, dwchannel, core::mem::transmute(pdwpriority)).ok() } pub unsafe fn GetFormat(&self, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pwaveformatex), core::mem::transmute(pdwwaveformatexsize)).ok() @@ -1825,19 +1825,19 @@ impl core::ops::Deref for IDirectMusicSynth8 { windows_core::imp::interface_hierarchy!(IDirectMusicSynth8, windows_core::IUnknown, IDirectMusicSynth); impl IDirectMusicSynth8 { pub unsafe fn PlayVoice(&self, rt: i64, dwvoiceid: u32, dwchannelgroup: u32, dwchannel: u32, dwdlid: u32, prpitch: i32, vrvolume: i32, stvoicestart: u64, stloopstart: u64, stloopend: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(rt), core::mem::transmute(dwvoiceid), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannel), core::mem::transmute(dwdlid), core::mem::transmute(prpitch), core::mem::transmute(vrvolume), core::mem::transmute(stvoicestart), core::mem::transmute(stloopstart), core::mem::transmute(stloopend)).ok() + (windows_core::Interface::vtable(self).PlayVoice)(windows_core::Interface::as_raw(self), rt, dwvoiceid, dwchannelgroup, dwchannel, dwdlid, prpitch, vrvolume, stvoicestart, stloopstart, stloopend).ok() } pub unsafe fn StopVoice(&self, rt: i64, dwvoiceid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(rt), core::mem::transmute(dwvoiceid)).ok() + (windows_core::Interface::vtable(self).StopVoice)(windows_core::Interface::as_raw(self), rt, dwvoiceid).ok() } pub unsafe fn GetVoiceState(&self, dwvoice: *mut u32, cbvoice: u32, dwvoicestate: *mut DMUS_VOICE_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVoiceState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwvoice), core::mem::transmute(cbvoice), core::mem::transmute(dwvoicestate)).ok() + (windows_core::Interface::vtable(self).GetVoiceState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwvoice), cbvoice, core::mem::transmute(dwvoicestate)).ok() } pub unsafe fn Refresh(&self, dwdownloadid: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdownloadid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), dwdownloadid, dwflags).ok() } pub unsafe fn AssignChannelToBuses(&self, dwchannelgroup: u32, dwchannel: u32, pdwbuses: *mut u32, cbuses: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssignChannelToBuses)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchannelgroup), core::mem::transmute(dwchannel), core::mem::transmute(pdwbuses), core::mem::transmute(cbuses)).ok() + (windows_core::Interface::vtable(self).AssignChannelToBuses)(windows_core::Interface::as_raw(self), dwchannelgroup, dwchannel, core::mem::transmute(pdwbuses), cbuses).ok() } } #[repr(C)] @@ -1915,10 +1915,10 @@ impl IDirectMusicSynthSink { (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.into()).ok() } pub unsafe fn SampleToRefTime(&self, llsampletime: i64, prftime: *mut i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SampleToRefTime)(windows_core::Interface::as_raw(self), core::mem::transmute(llsampletime), core::mem::transmute(prftime)).ok() + (windows_core::Interface::vtable(self).SampleToRefTime)(windows_core::Interface::as_raw(self), llsampletime, core::mem::transmute(prftime)).ok() } pub unsafe fn RefTimeToSample(&self, rftime: i64, pllsampletime: *mut i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RefTimeToSample)(windows_core::Interface::as_raw(self), core::mem::transmute(rftime), core::mem::transmute(pllsampletime)).ok() + (windows_core::Interface::vtable(self).RefTimeToSample)(windows_core::Interface::as_raw(self), rftime, core::mem::transmute(pllsampletime)).ok() } #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn SetDirectSound(&self, pdirectsound: P0, pdirectsoundbuffer: P1) -> windows_core::Result<()> @@ -2024,7 +2024,7 @@ impl IDirectMusicThru { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ThruChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcechannelgroup), core::mem::transmute(dwsourcechannel), core::mem::transmute(dwdestinationchannelgroup), core::mem::transmute(dwdestinationchannel), pdestinationport.param().abi()).ok() + (windows_core::Interface::vtable(self).ThruChannel)(windows_core::Interface::as_raw(self), dwsourcechannelgroup, dwsourcechannel, dwdestinationchannelgroup, dwdestinationchannel, pdestinationport.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/mod.rs index 06a630f268..c61a9c2fe5 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/mod.rs @@ -17,12 +17,12 @@ where #[inline] pub unsafe fn DirectSoundCaptureEnumerateA(pdsenumcallback: LPDSENUMCALLBACKA, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dsound.dll" "system" fn DirectSoundCaptureEnumerateA(pdsenumcallback : LPDSENUMCALLBACKA, pcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundCaptureEnumerateA(core::mem::transmute(pdsenumcallback), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + DirectSoundCaptureEnumerateA(pdsenumcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DirectSoundCaptureEnumerateW(pdsenumcallback: LPDSENUMCALLBACKW, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dsound.dll" "system" fn DirectSoundCaptureEnumerateW(pdsenumcallback : LPDSENUMCALLBACKW, pcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundCaptureEnumerateW(core::mem::transmute(pdsenumcallback), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + DirectSoundCaptureEnumerateW(pdsenumcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DirectSoundCreate(pcguiddevice: Option<*const windows_core::GUID>, ppds: *mut Option, punkouter: P2) -> windows_core::Result<()> @@ -43,12 +43,12 @@ where #[inline] pub unsafe fn DirectSoundEnumerateA(pdsenumcallback: LPDSENUMCALLBACKA, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dsound.dll" "system" fn DirectSoundEnumerateA(pdsenumcallback : LPDSENUMCALLBACKA, pcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundEnumerateA(core::mem::transmute(pdsenumcallback), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + DirectSoundEnumerateA(pdsenumcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DirectSoundEnumerateW(pdsenumcallback: LPDSENUMCALLBACKW, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dsound.dll" "system" fn DirectSoundEnumerateW(pdsenumcallback : LPDSENUMCALLBACKW, pcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundEnumerateW(core::mem::transmute(pdsenumcallback), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + DirectSoundEnumerateW(pdsenumcallback, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DirectSoundFullDuplexCreate(pcguidcapturedevice: Option<*const windows_core::GUID>, pcguidrenderdevice: Option<*const windows_core::GUID>, pcdscbufferdesc: *const DSCBUFFERDESC, pcdsbufferdesc: *const DSBUFFERDESC, hwnd: super::super::super::Foundation::HWND, dwlevel: u32, ppdsfd: *mut Option, ppdscbuffer8: *mut Option, ppdsbuffer8: *mut Option, punkouter: P9) -> windows_core::Result<()> @@ -56,7 +56,7 @@ where P9: windows_core::Param, { windows_targets::link!("dsound.dll" "system" fn DirectSoundFullDuplexCreate(pcguidcapturedevice : *const windows_core::GUID, pcguidrenderdevice : *const windows_core::GUID, pcdscbufferdesc : *const DSCBUFFERDESC, pcdsbufferdesc : *const DSBUFFERDESC, hwnd : super::super::super::Foundation:: HWND, dwlevel : u32, ppdsfd : *mut * mut core::ffi::c_void, ppdscbuffer8 : *mut * mut core::ffi::c_void, ppdsbuffer8 : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundFullDuplexCreate(core::mem::transmute(pcguidcapturedevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcguidrenderdevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdscbufferdesc), core::mem::transmute(pcdsbufferdesc), core::mem::transmute(hwnd), core::mem::transmute(dwlevel), core::mem::transmute(ppdsfd), core::mem::transmute(ppdscbuffer8), core::mem::transmute(ppdsbuffer8), punkouter.param().abi()).ok() + DirectSoundFullDuplexCreate(core::mem::transmute(pcguidcapturedevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcguidrenderdevice.unwrap_or(core::mem::zeroed())), pcdscbufferdesc, pcdsbufferdesc, hwnd, dwlevel, core::mem::transmute(ppdsfd), core::mem::transmute(ppdscbuffer8), core::mem::transmute(ppdsbuffer8), punkouter.param().abi()).ok() } #[inline] pub unsafe fn GetDeviceID(pguidsrc: Option<*const windows_core::GUID>) -> windows_core::Result { @@ -759,7 +759,7 @@ impl IDirectSound { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSoundBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsbufferdesc), core::mem::transmute(ppdsbuffer), punkouter.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateSoundBuffer)(windows_core::Interface::as_raw(self), pcdsbufferdesc, core::mem::transmute(ppdsbuffer), punkouter.param().abi()).ok() } pub unsafe fn GetCaps(&self, pdscaps: *mut DSCAPS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pdscaps)).ok() @@ -772,7 +772,7 @@ impl IDirectSound { (windows_core::Interface::vtable(self).DuplicateSoundBuffer)(windows_core::Interface::as_raw(self), pdsbufferoriginal.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCooperativeLevel(&self, hwnd: super::super::super::Foundation::HWND, dwlevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(dwlevel)).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), hwnd, dwlevel).ok() } pub unsafe fn Compact(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Compact)(windows_core::Interface::as_raw(self)).ok() @@ -782,7 +782,7 @@ impl IDirectSound { (windows_core::Interface::vtable(self).GetSpeakerConfig)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpeakerConfig(&self, dwspeakerconfig: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpeakerConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspeakerconfig)).ok() + (windows_core::Interface::vtable(self).SetSpeakerConfig)(windows_core::Interface::as_raw(self), dwspeakerconfig).ok() } pub unsafe fn Initialize(&self, pcguiddevice: Option<*const windows_core::GUID>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcguiddevice.unwrap_or(core::mem::zeroed()))).ok() @@ -916,31 +916,31 @@ impl IDirectSound3DBuffer { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn SetAllParameters(&self, pcds3dbuffer: *const DS3DBUFFER, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcds3dbuffer), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcds3dbuffer, dwapply).ok() } pub unsafe fn SetConeAngles(&self, dwinsideconeangle: u32, dwoutsideconeangle: u32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConeAngles)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinsideconeangle), core::mem::transmute(dwoutsideconeangle), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetConeAngles)(windows_core::Interface::as_raw(self), dwinsideconeangle, dwoutsideconeangle, dwapply).ok() } pub unsafe fn SetConeOrientation(&self, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConeOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetConeOrientation)(windows_core::Interface::as_raw(self), x, y, z, dwapply).ok() } pub unsafe fn SetConeOutsideVolume(&self, lconeoutsidevolume: i32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConeOutsideVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lconeoutsidevolume), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetConeOutsideVolume)(windows_core::Interface::as_raw(self), lconeoutsidevolume, dwapply).ok() } pub unsafe fn SetMaxDistance(&self, flmaxdistance: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxDistance)(windows_core::Interface::as_raw(self), core::mem::transmute(flmaxdistance), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetMaxDistance)(windows_core::Interface::as_raw(self), flmaxdistance, dwapply).ok() } pub unsafe fn SetMinDistance(&self, flmindistance: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinDistance)(windows_core::Interface::as_raw(self), core::mem::transmute(flmindistance), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetMinDistance)(windows_core::Interface::as_raw(self), flmindistance, dwapply).ok() } pub unsafe fn SetMode(&self, dwmode: u32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), dwmode, dwapply).ok() } pub unsafe fn SetPosition(&self, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), x, y, z, dwapply).ok() } pub unsafe fn SetVelocity(&self, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetVelocity)(windows_core::Interface::as_raw(self), x, y, z, dwapply).ok() } } #[repr(C)] @@ -1181,25 +1181,25 @@ impl IDirectSound3DListener { } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn SetAllParameters(&self, pclistener: *const DS3DLISTENER, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pclistener), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pclistener, dwapply).ok() } pub unsafe fn SetDistanceFactor(&self, fldistancefactor: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDistanceFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(fldistancefactor), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetDistanceFactor)(windows_core::Interface::as_raw(self), fldistancefactor, dwapply).ok() } pub unsafe fn SetDopplerFactor(&self, fldopplerfactor: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDopplerFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(fldopplerfactor), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetDopplerFactor)(windows_core::Interface::as_raw(self), fldopplerfactor, dwapply).ok() } pub unsafe fn SetOrientation(&self, xfront: f32, yfront: f32, zfront: f32, xtop: f32, ytop: f32, ztop: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(xfront), core::mem::transmute(yfront), core::mem::transmute(zfront), core::mem::transmute(xtop), core::mem::transmute(ytop), core::mem::transmute(ztop), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetOrientation)(windows_core::Interface::as_raw(self), xfront, yfront, zfront, xtop, ytop, ztop, dwapply).ok() } pub unsafe fn SetPosition(&self, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), x, y, z, dwapply).ok() } pub unsafe fn SetRolloffFactor(&self, flrollofffactor: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRolloffFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(flrollofffactor), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetRolloffFactor)(windows_core::Interface::as_raw(self), flrollofffactor, dwapply).ok() } pub unsafe fn SetVelocity(&self, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(dwapply)).ok() + (windows_core::Interface::vtable(self).SetVelocity)(windows_core::Interface::as_raw(self), x, y, z, dwapply).ok() } pub unsafe fn CommitDeferredSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CommitDeferredSettings)(windows_core::Interface::as_raw(self)).ok() @@ -1426,7 +1426,7 @@ impl IDirectSoundBuffer { (windows_core::Interface::vtable(self).GetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcurrentplaycursor.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwcurrentwritecursor.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFormat(&self, pwfxformat: Option<*mut super::WAVEFORMATEX>, dwsizeallocated: u32, pdwsizewritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pwfxformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsizeallocated), core::mem::transmute(pdwsizewritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pwfxformat.unwrap_or(core::mem::zeroed())), dwsizeallocated, core::mem::transmute(pdwsizewritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetVolume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1448,34 +1448,34 @@ impl IDirectSoundBuffer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), core::mem::transmute(pcdsbufferdesc)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), pcdsbufferdesc).ok() } pub unsafe fn Lock(&self, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut core::ffi::c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: Option<*mut *mut core::ffi::c_void>, pdwaudiobytes2: Option<*mut u32>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoffset), core::mem::transmute(dwbytes), core::mem::transmute(ppvaudioptr1), core::mem::transmute(pdwaudiobytes1), core::mem::transmute(ppvaudioptr2.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwaudiobytes2.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), dwoffset, dwbytes, core::mem::transmute(ppvaudioptr1), core::mem::transmute(pdwaudiobytes1), core::mem::transmute(ppvaudioptr2.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwaudiobytes2.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn Play(&self, dwreserved1: u32, dwpriority: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Play)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved1), core::mem::transmute(dwpriority), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Play)(windows_core::Interface::as_raw(self), dwreserved1, dwpriority, dwflags).ok() } pub unsafe fn SetCurrentPosition(&self, dwnewposition: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnewposition)).ok() + (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), dwnewposition).ok() } pub unsafe fn SetFormat(&self, pcfxformat: *const super::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pcfxformat)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), pcfxformat).ok() } pub unsafe fn SetVolume(&self, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), lvolume).ok() } pub unsafe fn SetPan(&self, lpan: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPan)(windows_core::Interface::as_raw(self), core::mem::transmute(lpan)).ok() + (windows_core::Interface::vtable(self).SetPan)(windows_core::Interface::as_raw(self), lpan).ok() } pub unsafe fn SetFrequency(&self, dwfrequency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfrequency)).ok() + (windows_core::Interface::vtable(self).SetFrequency)(windows_core::Interface::as_raw(self), dwfrequency).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Unlock(&self, pvaudioptr1: *const core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: Option<*const core::ffi::c_void>, dwaudiobytes2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), core::mem::transmute(pvaudioptr1), core::mem::transmute(dwaudiobytes1), core::mem::transmute(pvaudioptr2.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwaudiobytes2)).ok() + (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), pvaudioptr1, dwaudiobytes1, core::mem::transmute(pvaudioptr2.unwrap_or(core::mem::zeroed())), dwaudiobytes2).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() @@ -1658,13 +1658,13 @@ impl core::ops::Deref for IDirectSoundBuffer8 { windows_core::imp::interface_hierarchy!(IDirectSoundBuffer8, windows_core::IUnknown, IDirectSoundBuffer); impl IDirectSoundBuffer8 { pub unsafe fn SetFX(&self, dweffectscount: u32, pdsfxdesc: Option<*const DSEFFECTDESC>, pdwresultcodes: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFX)(windows_core::Interface::as_raw(self), core::mem::transmute(dweffectscount), core::mem::transmute(pdsfxdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwresultcodes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetFX)(windows_core::Interface::as_raw(self), dweffectscount, core::mem::transmute(pdsfxdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwresultcodes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AcquireResources(&self, dwflags: u32, pdwresultcodes: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireResources)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pdwresultcodes.len().try_into().unwrap(), core::mem::transmute(pdwresultcodes.as_ptr())).ok() + (windows_core::Interface::vtable(self).AcquireResources)(windows_core::Interface::as_raw(self), dwflags, pdwresultcodes.len().try_into().unwrap(), core::mem::transmute(pdwresultcodes.as_ptr())).ok() } pub unsafe fn GetObjectInPath(&self, rguidobject: *const windows_core::GUID, dwindex: u32, rguidinterface: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInPath)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidobject), core::mem::transmute(dwindex), core::mem::transmute(rguidinterface), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).GetObjectInPath)(windows_core::Interface::as_raw(self), rguidobject, dwindex, rguidinterface, core::mem::transmute(ppobject)).ok() } } #[repr(C)] @@ -1712,7 +1712,7 @@ impl IDirectSoundCapture { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateCaptureBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdscbufferdesc), core::mem::transmute(ppdscbuffer), punkouter.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateCaptureBuffer)(windows_core::Interface::as_raw(self), pcdscbufferdesc, core::mem::transmute(ppdscbuffer), punkouter.param().abi()).ok() } pub unsafe fn GetCaps(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1777,7 +1777,7 @@ impl IDirectSoundCaptureBuffer { (windows_core::Interface::vtable(self).GetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcaptureposition.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwreadposition.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFormat(&self, pwfxformat: Option<*mut super::WAVEFORMATEX>, dwsizeallocated: u32, pdwsizewritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pwfxformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsizeallocated), core::mem::transmute(pdwsizewritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pwfxformat.unwrap_or(core::mem::zeroed())), dwsizeallocated, core::mem::transmute(pdwsizewritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1787,19 +1787,19 @@ impl IDirectSoundCaptureBuffer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdirectsoundcapture.param().abi(), core::mem::transmute(pcdscbufferdesc)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdirectsoundcapture.param().abi(), pcdscbufferdesc).ok() } pub unsafe fn Lock(&self, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut core::ffi::c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: Option<*mut *mut core::ffi::c_void>, pdwaudiobytes2: Option<*mut u32>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoffset), core::mem::transmute(dwbytes), core::mem::transmute(ppvaudioptr1), core::mem::transmute(pdwaudiobytes1), core::mem::transmute(ppvaudioptr2.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwaudiobytes2.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), dwoffset, dwbytes, core::mem::transmute(ppvaudioptr1), core::mem::transmute(pdwaudiobytes1), core::mem::transmute(ppvaudioptr2.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwaudiobytes2.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn Start(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Unlock(&self, pvaudioptr1: *const core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: Option<*const core::ffi::c_void>, dwaudiobytes2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), core::mem::transmute(pvaudioptr1), core::mem::transmute(dwaudiobytes1), core::mem::transmute(pvaudioptr2.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwaudiobytes2)).ok() + (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), pvaudioptr1, dwaudiobytes1, core::mem::transmute(pvaudioptr2.unwrap_or(core::mem::zeroed())), dwaudiobytes2).ok() } } #[repr(C)] @@ -1904,7 +1904,7 @@ impl core::ops::Deref for IDirectSoundCaptureBuffer8 { windows_core::imp::interface_hierarchy!(IDirectSoundCaptureBuffer8, windows_core::IUnknown, IDirectSoundCaptureBuffer); impl IDirectSoundCaptureBuffer8 { pub unsafe fn GetObjectInPath(&self, rguidobject: *const windows_core::GUID, dwindex: u32, rguidinterface: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInPath)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidobject), core::mem::transmute(dwindex), core::mem::transmute(rguidinterface), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).GetObjectInPath)(windows_core::Interface::as_raw(self), rguidobject, dwindex, rguidinterface, core::mem::transmute(ppobject)).ok() } pub unsafe fn GetFXStatus(&self, pdwfxstatus: &mut [u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFXStatus)(windows_core::Interface::as_raw(self), pdwfxstatus.len().try_into().unwrap(), core::mem::transmute(pdwfxstatus.as_ptr())).ok() @@ -1945,7 +1945,7 @@ windows_core::imp::define_interface!(IDirectSoundCaptureFXAec, IDirectSoundCaptu windows_core::imp::interface_hierarchy!(IDirectSoundCaptureFXAec, windows_core::IUnknown); impl IDirectSoundCaptureFXAec { pub unsafe fn SetAllParameters(&self, pdscfxaec: *const DSCFXAec) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdscfxaec)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pdscfxaec).ok() } pub unsafe fn GetAllParameters(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2020,7 +2020,7 @@ windows_core::imp::define_interface!(IDirectSoundCaptureFXNoiseSuppress, IDirect windows_core::imp::interface_hierarchy!(IDirectSoundCaptureFXNoiseSuppress, windows_core::IUnknown); impl IDirectSoundCaptureFXNoiseSuppress { pub unsafe fn SetAllParameters(&self, pcdscfxnoisesuppress: *const DSCFXNoiseSuppress) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdscfxnoisesuppress)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdscfxnoisesuppress).ok() } pub unsafe fn GetAllParameters(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2078,7 +2078,7 @@ windows_core::imp::define_interface!(IDirectSoundFXChorus, IDirectSoundFXChorus_ windows_core::imp::interface_hierarchy!(IDirectSoundFXChorus, windows_core::IUnknown); impl IDirectSoundFXChorus { pub unsafe fn SetAllParameters(&self, pcdsfxchorus: *const DSFXChorus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxchorus)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxchorus).ok() } pub unsafe fn GetAllParameters(&self, pdsfxchorus: *mut DSFXChorus) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdsfxchorus)).ok() @@ -2119,7 +2119,7 @@ windows_core::imp::define_interface!(IDirectSoundFXCompressor, IDirectSoundFXCom windows_core::imp::interface_hierarchy!(IDirectSoundFXCompressor, windows_core::IUnknown); impl IDirectSoundFXCompressor { pub unsafe fn SetAllParameters(&self, pcdsfxcompressor: *const DSFXCompressor) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxcompressor)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxcompressor).ok() } pub unsafe fn GetAllParameters(&self, pdsfxcompressor: *mut DSFXCompressor) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdsfxcompressor)).ok() @@ -2160,7 +2160,7 @@ windows_core::imp::define_interface!(IDirectSoundFXDistortion, IDirectSoundFXDis windows_core::imp::interface_hierarchy!(IDirectSoundFXDistortion, windows_core::IUnknown); impl IDirectSoundFXDistortion { pub unsafe fn SetAllParameters(&self, pcdsfxdistortion: *const DSFXDistortion) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxdistortion)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxdistortion).ok() } pub unsafe fn GetAllParameters(&self, pdsfxdistortion: *mut DSFXDistortion) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdsfxdistortion)).ok() @@ -2201,7 +2201,7 @@ windows_core::imp::define_interface!(IDirectSoundFXEcho, IDirectSoundFXEcho_Vtbl windows_core::imp::interface_hierarchy!(IDirectSoundFXEcho, windows_core::IUnknown); impl IDirectSoundFXEcho { pub unsafe fn SetAllParameters(&self, pcdsfxecho: *const DSFXEcho) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxecho)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxecho).ok() } pub unsafe fn GetAllParameters(&self, pdsfxecho: *mut DSFXEcho) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdsfxecho)).ok() @@ -2242,7 +2242,7 @@ windows_core::imp::define_interface!(IDirectSoundFXFlanger, IDirectSoundFXFlange windows_core::imp::interface_hierarchy!(IDirectSoundFXFlanger, windows_core::IUnknown); impl IDirectSoundFXFlanger { pub unsafe fn SetAllParameters(&self, pcdsfxflanger: *const DSFXFlanger) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxflanger)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxflanger).ok() } pub unsafe fn GetAllParameters(&self, pdsfxflanger: *mut DSFXFlanger) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdsfxflanger)).ok() @@ -2283,7 +2283,7 @@ windows_core::imp::define_interface!(IDirectSoundFXGargle, IDirectSoundFXGargle_ windows_core::imp::interface_hierarchy!(IDirectSoundFXGargle, windows_core::IUnknown); impl IDirectSoundFXGargle { pub unsafe fn SetAllParameters(&self, pcdsfxgargle: *const DSFXGargle) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxgargle)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxgargle).ok() } pub unsafe fn GetAllParameters(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2331,20 +2331,20 @@ windows_core::imp::define_interface!(IDirectSoundFXI3DL2Reverb, IDirectSoundFXI3 windows_core::imp::interface_hierarchy!(IDirectSoundFXI3DL2Reverb, windows_core::IUnknown); impl IDirectSoundFXI3DL2Reverb { pub unsafe fn SetAllParameters(&self, pcdsfxi3dl2reverb: *const DSFXI3DL2Reverb) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxi3dl2reverb)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxi3dl2reverb).ok() } pub unsafe fn GetAllParameters(&self, pdsfxi3dl2reverb: *mut DSFXI3DL2Reverb) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pdsfxi3dl2reverb)).ok() } pub unsafe fn SetPreset(&self, dwpreset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreset)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpreset)).ok() + (windows_core::Interface::vtable(self).SetPreset)(windows_core::Interface::as_raw(self), dwpreset).ok() } pub unsafe fn GetPreset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPreset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuality(&self, lquality: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(lquality)).ok() + (windows_core::Interface::vtable(self).SetQuality)(windows_core::Interface::as_raw(self), lquality).ok() } pub unsafe fn GetQuality(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2426,7 +2426,7 @@ windows_core::imp::define_interface!(IDirectSoundFXParamEq, IDirectSoundFXParamE windows_core::imp::interface_hierarchy!(IDirectSoundFXParamEq, windows_core::IUnknown); impl IDirectSoundFXParamEq { pub unsafe fn SetAllParameters(&self, pcdsfxparameq: *const DSFXParamEq) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxparameq)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxparameq).ok() } pub unsafe fn GetAllParameters(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2474,7 +2474,7 @@ windows_core::imp::define_interface!(IDirectSoundFXWavesReverb, IDirectSoundFXWa windows_core::imp::interface_hierarchy!(IDirectSoundFXWavesReverb, windows_core::IUnknown); impl IDirectSoundFXWavesReverb { pub unsafe fn SetAllParameters(&self, pcdsfxwavesreverb: *const DSFXWavesReverb) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdsfxwavesreverb)).ok() + (windows_core::Interface::vtable(self).SetAllParameters)(windows_core::Interface::as_raw(self), pcdsfxwavesreverb).ok() } pub unsafe fn GetAllParameters(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2522,7 +2522,7 @@ windows_core::imp::define_interface!(IDirectSoundFullDuplex, IDirectSoundFullDup windows_core::imp::interface_hierarchy!(IDirectSoundFullDuplex, windows_core::IUnknown); impl IDirectSoundFullDuplex { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcaptureguid), core::mem::transmute(prenderguid), core::mem::transmute(lpdscbufferdesc), core::mem::transmute(lpdsbufferdesc), core::mem::transmute(hwnd), core::mem::transmute(dwlevel), core::mem::transmute(lplpdirectsoundcapturebuffer8), core::mem::transmute(lplpdirectsoundbuffer8)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pcaptureguid, prenderguid, lpdscbufferdesc, lpdsbufferdesc, hwnd, dwlevel, core::mem::transmute(lplpdirectsoundcapturebuffer8), core::mem::transmute(lplpdirectsoundbuffer8)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/mod.rs index 8efba0ec54..c4953a61c6 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/mod.rs @@ -23,7 +23,7 @@ windows_core::imp::define_interface!(IAudioEndpointFormatControl, IAudioEndpoint windows_core::imp::interface_hierarchy!(IAudioEndpointFormatControl, windows_core::IUnknown); impl IAudioEndpointFormatControl { pub unsafe fn ResetToDefault(&self, resetflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetToDefault)(windows_core::Interface::as_raw(self), core::mem::transmute(resetflags)).ok() + (windows_core::Interface::vtable(self).ResetToDefault)(windows_core::Interface::as_raw(self), resetflags).ok() } } #[repr(C)] @@ -55,7 +55,7 @@ impl IAudioEndpointLastBufferControl { } #[cfg(feature = "Win32_Media_Audio_Apo")] pub unsafe fn ReleaseOutputDataPointerForLastBuffer(&self, pconnectionproperty: *const super::Apo::APO_CONNECTION_PROPERTY) { - (windows_core::Interface::vtable(self).ReleaseOutputDataPointerForLastBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pconnectionproperty)) + (windows_core::Interface::vtable(self).ReleaseOutputDataPointerForLastBuffer)(windows_core::Interface::as_raw(self), pconnectionproperty) } } #[repr(C)] @@ -104,7 +104,7 @@ impl IAudioEndpointOffloadStreamMeter { } pub unsafe fn GetMeteringData(&self, u32channelcount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMeteringData)(windows_core::Interface::as_raw(self), core::mem::transmute(u32channelcount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMeteringData)(windows_core::Interface::as_raw(self), u32channelcount, &mut result__).map(|| result__) } } #[repr(C)] @@ -154,7 +154,7 @@ windows_core::imp::define_interface!(IAudioEndpointOffloadStreamMute, IAudioEndp windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamMute, windows_core::IUnknown); impl IAudioEndpointOffloadStreamMute { pub unsafe fn SetMute(&self, bmuted: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), core::mem::transmute(bmuted)).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmuted).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -203,11 +203,11 @@ impl IAudioEndpointOffloadStreamVolume { } #[cfg(feature = "Win32_Media_KernelStreaming")] pub unsafe fn SetChannelVolumes(&self, u32channelcount: u32, pf32volumes: *const f32, u32curvetype: super::super::KernelStreaming::AUDIO_CURVE_TYPE, pcurveduration: *const i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolumes)(windows_core::Interface::as_raw(self), core::mem::transmute(u32channelcount), core::mem::transmute(pf32volumes), core::mem::transmute(u32curvetype), core::mem::transmute(pcurveduration)).ok() + (windows_core::Interface::vtable(self).SetChannelVolumes)(windows_core::Interface::as_raw(self), u32channelcount, pf32volumes, u32curvetype, pcurveduration).ok() } pub unsafe fn GetChannelVolumes(&self, u32channelcount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChannelVolumes)(windows_core::Interface::as_raw(self), core::mem::transmute(u32channelcount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetChannelVolumes)(windows_core::Interface::as_raw(self), u32channelcount, &mut result__).map(|| result__) } } #[repr(C)] @@ -286,10 +286,10 @@ impl IAudioEndpointVolume { (windows_core::Interface::vtable(self).GetChannelCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMasterVolumeLevel(&self, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMasterVolumeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(fleveldb), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).SetMasterVolumeLevel)(windows_core::Interface::as_raw(self), fleveldb, pguideventcontext).ok() } pub unsafe fn SetMasterVolumeLevelScalar(&self, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMasterVolumeLevelScalar)(windows_core::Interface::as_raw(self), core::mem::transmute(flevel), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).SetMasterVolumeLevelScalar)(windows_core::Interface::as_raw(self), flevel, pguideventcontext).ok() } pub unsafe fn GetMasterVolumeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -300,21 +300,21 @@ impl IAudioEndpointVolume { (windows_core::Interface::vtable(self).GetMasterVolumeLevelScalar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannelVolumeLevel(&self, nchannel: u32, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolumeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), core::mem::transmute(fleveldb), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).SetChannelVolumeLevel)(windows_core::Interface::as_raw(self), nchannel, fleveldb, pguideventcontext).ok() } pub unsafe fn SetChannelVolumeLevelScalar(&self, nchannel: u32, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolumeLevelScalar)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), core::mem::transmute(flevel), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).SetChannelVolumeLevelScalar)(windows_core::Interface::as_raw(self), nchannel, flevel, pguideventcontext).ok() } pub unsafe fn GetChannelVolumeLevel(&self, nchannel: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChannelVolumeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetChannelVolumeLevel)(windows_core::Interface::as_raw(self), nchannel, &mut result__).map(|| result__) } pub unsafe fn GetChannelVolumeLevelScalar(&self, nchannel: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChannelVolumeLevelScalar)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetChannelVolumeLevelScalar)(windows_core::Interface::as_raw(self), nchannel, &mut result__).map(|| result__) } pub unsafe fn SetMute(&self, bmute: bool, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into(), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into(), pguideventcontext).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -324,10 +324,10 @@ impl IAudioEndpointVolume { (windows_core::Interface::vtable(self).GetVolumeStepInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pnstep), core::mem::transmute(pnstepcount)).ok() } pub unsafe fn VolumeStepUp(&self, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VolumeStepUp)(windows_core::Interface::as_raw(self), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).VolumeStepUp)(windows_core::Interface::as_raw(self), pguideventcontext).ok() } pub unsafe fn VolumeStepDown(&self, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VolumeStepDown)(windows_core::Interface::as_raw(self), core::mem::transmute(pguideventcontext)).ok() + (windows_core::Interface::vtable(self).VolumeStepDown)(windows_core::Interface::as_raw(self), pguideventcontext).ok() } pub unsafe fn QueryHardwareSupport(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -560,7 +560,7 @@ impl core::ops::Deref for IAudioEndpointVolumeEx { windows_core::imp::interface_hierarchy!(IAudioEndpointVolumeEx, windows_core::IUnknown, IAudioEndpointVolume); impl IAudioEndpointVolumeEx { pub unsafe fn GetVolumeRangeChannel(&self, ichannel: u32, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVolumeRangeChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(ichannel), core::mem::transmute(pflvolumemindb), core::mem::transmute(pflvolumemaxdb), core::mem::transmute(pflvolumeincrementdb)).ok() + (windows_core::Interface::vtable(self).GetVolumeRangeChannel)(windows_core::Interface::as_raw(self), ichannel, core::mem::transmute(pflvolumemindb), core::mem::transmute(pflvolumemaxdb), core::mem::transmute(pflvolumeincrementdb)).ok() } } #[repr(C)] @@ -722,7 +722,7 @@ impl IHardwareAudioEngineBase { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAvailableOffloadConnectorCount)(windows_core::Interface::as_raw(self), _pwstrdeviceid.param().abi(), core::mem::transmute(_uconnectorid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAvailableOffloadConnectorCount)(windows_core::Interface::as_raw(self), _pwstrdeviceid.param().abi(), _uconnectorid, &mut result__).map(|| result__) } pub unsafe fn GetEngineFormat(&self, pdevice: P0, _brequestdeviceformat: bool, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs index f791df31b3..2226a2fbd9 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs @@ -13,18 +13,18 @@ pub unsafe fn CreateAudioVolumeMeter() -> windows_core::Result, pinitdat: Option<*const core::ffi::c_void>, initdatabytesize: u32) -> windows_core::Result<()> { windows_targets::link!("xaudio2_8.dll" "cdecl" fn CreateFX(clsid : *const windows_core::GUID, peffect : *mut * mut core::ffi::c_void, pinitdat : *const core::ffi::c_void, initdatabytesize : u32) -> windows_core::HRESULT); - CreateFX(core::mem::transmute(clsid), core::mem::transmute(peffect), core::mem::transmute(pinitdat.unwrap_or(core::mem::zeroed())), core::mem::transmute(initdatabytesize)).ok() + CreateFX(clsid, core::mem::transmute(peffect), core::mem::transmute(pinitdat.unwrap_or(core::mem::zeroed())), initdatabytesize).ok() } #[inline] pub unsafe fn CreateHrtfApo(init: *const HrtfApoInit) -> windows_core::Result { windows_targets::link!("hrtfapo.dll" "system" fn CreateHrtfApo(init : *const HrtfApoInit, xapo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateHrtfApo(core::mem::transmute(init), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateHrtfApo(init, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn XAudio2CreateWithVersionInfo(ppxaudio2: *mut Option, flags: u32, xaudio2processor: u32, ntddiversion: u32) -> windows_core::Result<()> { windows_targets::link!("xaudio2_8.dll" "system" fn XAudio2CreateWithVersionInfo(ppxaudio2 : *mut * mut core::ffi::c_void, flags : u32, xaudio2processor : u32, ntddiversion : u32) -> windows_core::HRESULT); - XAudio2CreateWithVersionInfo(core::mem::transmute(ppxaudio2), core::mem::transmute(flags), core::mem::transmute(xaudio2processor), core::mem::transmute(ntddiversion)).ok() + XAudio2CreateWithVersionInfo(core::mem::transmute(ppxaudio2), flags, xaudio2processor, ntddiversion).ok() } pub const AudioReverb: windows_core::GUID = windows_core::GUID::from_u128(0xc2633b16_471b_4498_b8c5_4f0959e2ec09); pub const AudioVolumeMeter: windows_core::GUID = windows_core::GUID::from_u128(0x4fc3b166_972a_40cf_bc37_7db03db2fba3); @@ -244,13 +244,13 @@ impl IXAPO { (windows_core::Interface::vtable(self).GetRegistrationProperties)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn IsInputFormatSupported(&self, poutputformat: *const super::WAVEFORMATEX, prequestedinputformat: *const super::WAVEFORMATEX, ppsupportedinputformat: Option<*mut *mut super::WAVEFORMATEX>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsInputFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(poutputformat), core::mem::transmute(prequestedinputformat), core::mem::transmute(ppsupportedinputformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).IsInputFormatSupported)(windows_core::Interface::as_raw(self), poutputformat, prequestedinputformat, core::mem::transmute(ppsupportedinputformat.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsOutputFormatSupported(&self, pinputformat: *const super::WAVEFORMATEX, prequestedoutputformat: *const super::WAVEFORMATEX, ppsupportedoutputformat: Option<*mut *mut super::WAVEFORMATEX>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsOutputFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pinputformat), core::mem::transmute(prequestedoutputformat), core::mem::transmute(ppsupportedoutputformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).IsOutputFormatSupported)(windows_core::Interface::as_raw(self), pinputformat, prequestedoutputformat, core::mem::transmute(ppsupportedoutputformat.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Initialize(&self, pdata: Option<*const core::ffi::c_void>, databytesize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(databytesize)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), databytesize).ok() } pub unsafe fn Reset(&self) { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)) @@ -265,10 +265,10 @@ impl IXAPO { (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), pinputprocessparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinputprocessparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputprocessparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputprocessparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), isenabled.into()) } pub unsafe fn CalcInputFrames(&self, outputframecount: u32) -> u32 { - (windows_core::Interface::vtable(self).CalcInputFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(outputframecount)) + (windows_core::Interface::vtable(self).CalcInputFrames)(windows_core::Interface::as_raw(self), outputframecount) } pub unsafe fn CalcOutputFrames(&self, inputframecount: u32) -> u32 { - (windows_core::Interface::vtable(self).CalcOutputFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(inputframecount)) + (windows_core::Interface::vtable(self).CalcOutputFrames)(windows_core::Interface::as_raw(self), inputframecount) } } #[repr(C)] @@ -368,16 +368,16 @@ windows_core::imp::define_interface!(IXAPOHrtfParameters, IXAPOHrtfParameters_Vt windows_core::imp::interface_hierarchy!(IXAPOHrtfParameters, windows_core::IUnknown); impl IXAPOHrtfParameters { pub unsafe fn SetSourcePosition(&self, position: *const HrtfPosition) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourcePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(position)).ok() + (windows_core::Interface::vtable(self).SetSourcePosition)(windows_core::Interface::as_raw(self), position).ok() } pub unsafe fn SetSourceOrientation(&self, orientation: *const HrtfOrientation) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(orientation)).ok() + (windows_core::Interface::vtable(self).SetSourceOrientation)(windows_core::Interface::as_raw(self), orientation).ok() } pub unsafe fn SetSourceGain(&self, gain: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceGain)(windows_core::Interface::as_raw(self), core::mem::transmute(gain)).ok() + (windows_core::Interface::vtable(self).SetSourceGain)(windows_core::Interface::as_raw(self), gain).ok() } pub unsafe fn SetEnvironment(&self, environment: HrtfEnvironment) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnvironment)(windows_core::Interface::as_raw(self), core::mem::transmute(environment)).ok() + (windows_core::Interface::vtable(self).SetEnvironment)(windows_core::Interface::as_raw(self), environment).ok() } } #[repr(C)] @@ -429,10 +429,10 @@ windows_core::imp::define_interface!(IXAPOParameters, IXAPOParameters_Vtbl, 0x26 windows_core::imp::interface_hierarchy!(IXAPOParameters, windows_core::IUnknown); impl IXAPOParameters { pub unsafe fn SetParameters(&self, pparameters: *const core::ffi::c_void, parameterbytesize: u32) { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), core::mem::transmute(parameterbytesize)) + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), pparameters, parameterbytesize) } pub unsafe fn GetParameters(&self, pparameters: *mut core::ffi::c_void, parameterbytesize: u32) { - (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), core::mem::transmute(parameterbytesize)) + (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), parameterbytesize) } } #[repr(C)] @@ -485,16 +485,16 @@ impl IXAudio2 { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSourceVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsourcevoice), core::mem::transmute(psourceformat), core::mem::transmute(flags), core::mem::transmute(maxfrequencyratio), pcallback.param().abi(), core::mem::transmute(psendlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateSourceVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsourcevoice), psourceformat, flags, maxfrequencyratio, pcallback.param().abi(), core::mem::transmute(psendlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateSubmixVoice(&self, ppsubmixvoice: *mut Option, inputchannels: u32, inputsamplerate: u32, flags: u32, processingstage: u32, psendlist: Option<*const XAUDIO2_VOICE_SENDS>, peffectchain: Option<*const XAUDIO2_EFFECT_CHAIN>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateSubmixVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsubmixvoice), core::mem::transmute(inputchannels), core::mem::transmute(inputsamplerate), core::mem::transmute(flags), core::mem::transmute(processingstage), core::mem::transmute(psendlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateSubmixVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsubmixvoice), inputchannels, inputsamplerate, flags, processingstage, core::mem::transmute(psendlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateMasteringVoice(&self, ppmasteringvoice: *mut Option, inputchannels: u32, inputsamplerate: u32, flags: u32, szdeviceid: P4, peffectchain: Option<*const XAUDIO2_EFFECT_CHAIN>, streamcategory: super::AUDIO_STREAM_CATEGORY) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMasteringVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppmasteringvoice), core::mem::transmute(inputchannels), core::mem::transmute(inputsamplerate), core::mem::transmute(flags), szdeviceid.param().abi(), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed())), core::mem::transmute(streamcategory)).ok() + (windows_core::Interface::vtable(self).CreateMasteringVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppmasteringvoice), inputchannels, inputsamplerate, flags, szdeviceid.param().abi(), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed())), streamcategory).ok() } pub unsafe fn StartEngine(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartEngine)(windows_core::Interface::as_raw(self)).ok() @@ -503,7 +503,7 @@ impl IXAudio2 { (windows_core::Interface::vtable(self).StopEngine)(windows_core::Interface::as_raw(self)) } pub unsafe fn CommitChanges(&self, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommitChanges)(windows_core::Interface::as_raw(self), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).CommitChanges)(windows_core::Interface::as_raw(self), operationset).ok() } pub unsafe fn GetPerformanceData(&self, pperfdata: *mut XAUDIO2_PERFORMANCE_DATA) { (windows_core::Interface::vtable(self).GetPerformanceData)(windows_core::Interface::as_raw(self), core::mem::transmute(pperfdata)) @@ -608,7 +608,7 @@ impl IXAudio2EngineCallback { (windows_core::Interface::vtable(self).OnProcessingPassEnd)(windows_core::Interface::as_raw(self)) } pub unsafe fn OnCriticalError(&self, error: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).OnCriticalError)(windows_core::Interface::as_raw(self), core::mem::transmute(error)) + (windows_core::Interface::vtable(self).OnCriticalError)(windows_core::Interface::as_raw(self), error) } } #[repr(C)] @@ -757,13 +757,13 @@ impl core::ops::Deref for IXAudio2SourceVoice { windows_core::imp::interface_hierarchy!(IXAudio2SourceVoice, IXAudio2Voice); impl IXAudio2SourceVoice { pub unsafe fn Start(&self, flags: u32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), flags, operationset).ok() } pub unsafe fn Stop(&self, flags: u32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), flags, operationset).ok() } pub unsafe fn SubmitSourceBuffer(&self, pbuffer: *const XAUDIO2_BUFFER, pbufferwma: Option<*const XAUDIO2_BUFFER_WMA>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SubmitSourceBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer), core::mem::transmute(pbufferwma.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SubmitSourceBuffer)(windows_core::Interface::as_raw(self), pbuffer, core::mem::transmute(pbufferwma.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FlushSourceBuffers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushSourceBuffers)(windows_core::Interface::as_raw(self)).ok() @@ -772,13 +772,13 @@ impl IXAudio2SourceVoice { (windows_core::Interface::vtable(self).Discontinuity)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExitLoop(&self, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitLoop)(windows_core::Interface::as_raw(self), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).ExitLoop)(windows_core::Interface::as_raw(self), operationset).ok() } pub unsafe fn GetState(&self, pvoicestate: *mut XAUDIO2_VOICE_STATE, flags: u32) { - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvoicestate), core::mem::transmute(flags)) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvoicestate), flags) } pub unsafe fn SetFrequencyRatio(&self, ratio: f32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrequencyRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(ratio), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetFrequencyRatio)(windows_core::Interface::as_raw(self), ratio, operationset).ok() } pub unsafe fn GetFrequencyRatio(&self) -> f32 { let mut result__ = core::mem::zeroed(); @@ -786,7 +786,7 @@ impl IXAudio2SourceVoice { result__ } pub unsafe fn SetSourceSampleRate(&self, newsourcesamplerate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceSampleRate)(windows_core::Interface::as_raw(self), core::mem::transmute(newsourcesamplerate)).ok() + (windows_core::Interface::vtable(self).SetSourceSampleRate)(windows_core::Interface::as_raw(self), newsourcesamplerate).ok() } } #[repr(C)] @@ -936,24 +936,24 @@ impl IXAudio2Voice { (windows_core::Interface::vtable(self).SetEffectChain)(windows_core::Interface::as_raw(self), core::mem::transmute(peffectchain.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EnableEffect(&self, effectindex: u32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(effectindex), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).EnableEffect)(windows_core::Interface::as_raw(self), effectindex, operationset).ok() } pub unsafe fn DisableEffect(&self, effectindex: u32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisableEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(effectindex), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).DisableEffect)(windows_core::Interface::as_raw(self), effectindex, operationset).ok() } pub unsafe fn GetEffectState(&self, effectindex: u32) -> super::super::super::Foundation::BOOL { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEffectState)(windows_core::Interface::as_raw(self), core::mem::transmute(effectindex), &mut result__); + (windows_core::Interface::vtable(self).GetEffectState)(windows_core::Interface::as_raw(self), effectindex, &mut result__); result__ } pub unsafe fn SetEffectParameters(&self, effectindex: u32, pparameters: *const core::ffi::c_void, parametersbytesize: u32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(effectindex), core::mem::transmute(pparameters), core::mem::transmute(parametersbytesize), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetEffectParameters)(windows_core::Interface::as_raw(self), effectindex, pparameters, parametersbytesize, operationset).ok() } pub unsafe fn GetEffectParameters(&self, effectindex: u32, pparameters: *mut core::ffi::c_void, parametersbytesize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEffectParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(effectindex), core::mem::transmute(pparameters), core::mem::transmute(parametersbytesize)).ok() + (windows_core::Interface::vtable(self).GetEffectParameters)(windows_core::Interface::as_raw(self), effectindex, core::mem::transmute(pparameters), parametersbytesize).ok() } pub unsafe fn SetFilterParameters(&self, pparameters: *const XAUDIO2_FILTER_PARAMETERS, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetFilterParameters)(windows_core::Interface::as_raw(self), pparameters, operationset).ok() } pub unsafe fn GetFilterParameters(&self) -> XAUDIO2_FILTER_PARAMETERS { let mut result__ = core::mem::zeroed(); @@ -964,7 +964,7 @@ impl IXAudio2Voice { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), core::mem::transmute(pparameters), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), pparameters, operationset).ok() } pub unsafe fn GetOutputFilterParameters(&self, pdestinationvoice: P0) -> XAUDIO2_FILTER_PARAMETERS where @@ -975,7 +975,7 @@ impl IXAudio2Voice { result__ } pub unsafe fn SetVolume(&self, volume: f32, operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(volume), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), volume, operationset).ok() } pub unsafe fn GetVolume(&self) -> f32 { let mut result__ = core::mem::zeroed(); @@ -983,7 +983,7 @@ impl IXAudio2Voice { result__ } pub unsafe fn SetChannelVolumes(&self, pvolumes: &[f32], operationset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolumes)(windows_core::Interface::as_raw(self), pvolumes.len().try_into().unwrap(), core::mem::transmute(pvolumes.as_ptr()), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetChannelVolumes)(windows_core::Interface::as_raw(self), pvolumes.len().try_into().unwrap(), core::mem::transmute(pvolumes.as_ptr()), operationset).ok() } pub unsafe fn GetChannelVolumes(&self, pvolumes: &mut [f32]) { (windows_core::Interface::vtable(self).GetChannelVolumes)(windows_core::Interface::as_raw(self), pvolumes.len().try_into().unwrap(), core::mem::transmute(pvolumes.as_ptr())) @@ -992,14 +992,14 @@ impl IXAudio2Voice { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), core::mem::transmute(sourcechannels), core::mem::transmute(destinationchannels), core::mem::transmute(plevelmatrix), core::mem::transmute(operationset)).ok() + (windows_core::Interface::vtable(self).SetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), sourcechannels, destinationchannels, plevelmatrix, operationset).ok() } pub unsafe fn GetOutputMatrix(&self, pdestinationvoice: P0, sourcechannels: u32, destinationchannels: u32) -> f32 where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), core::mem::transmute(sourcechannels), core::mem::transmute(destinationchannels), &mut result__); + (windows_core::Interface::vtable(self).GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), sourcechannels, destinationchannels, &mut result__); result__ } pub unsafe fn DestroyVoice(&self) { @@ -1183,7 +1183,7 @@ impl IXAudio2Voice { windows_core::imp::define_interface!(IXAudio2VoiceCallback, IXAudio2VoiceCallback_Vtbl); impl IXAudio2VoiceCallback { pub unsafe fn OnVoiceProcessingPassStart(&self, bytesrequired: u32) { - (windows_core::Interface::vtable(self).OnVoiceProcessingPassStart)(windows_core::Interface::as_raw(self), core::mem::transmute(bytesrequired)) + (windows_core::Interface::vtable(self).OnVoiceProcessingPassStart)(windows_core::Interface::as_raw(self), bytesrequired) } pub unsafe fn OnVoiceProcessingPassEnd(&self) { (windows_core::Interface::vtable(self).OnVoiceProcessingPassEnd)(windows_core::Interface::as_raw(self)) @@ -1201,7 +1201,7 @@ impl IXAudio2VoiceCallback { (windows_core::Interface::vtable(self).OnLoopEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffercontext)) } pub unsafe fn OnVoiceError(&self, pbuffercontext: *mut core::ffi::c_void, error: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).OnVoiceError)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffercontext), core::mem::transmute(error)) + (windows_core::Interface::vtable(self).OnVoiceError)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffercontext), error) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs index 78c94baa7f..a4cef68e06 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -17,7 +17,7 @@ where { windows_targets::link!("mmdevapi.dll" "system" fn ActivateAudioInterfaceAsync(deviceinterfacepath : windows_core::PCWSTR, riid : *const windows_core::GUID, activationparams : *const super::super::System::Com::StructuredStorage:: PROPVARIANT, completionhandler : * mut core::ffi::c_void, activationoperation : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ActivateAudioInterfaceAsync(deviceinterfacepath.param().abi(), core::mem::transmute(riid), core::mem::transmute(activationparams.unwrap_or(core::mem::zeroed())), completionhandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + ActivateAudioInterfaceAsync(deviceinterfacepath.param().abi(), riid, core::mem::transmute(activationparams.unwrap_or(core::mem::zeroed())), completionhandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoRegisterMessageFilter(lpmessagefilter: P0, lplpmessagefilter: Option<*mut Option>) -> windows_core::Result<()> @@ -37,7 +37,7 @@ pub unsafe fn CreateCaptureAudioStateMonitor() -> windows_core::Result windows_core::Result { windows_targets::link!("windows.media.mediacontrol.dll" "system" fn CreateCaptureAudioStateMonitorForCategory(category : AUDIO_STREAM_CATEGORY, audiostatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateCaptureAudioStateMonitorForCategory(core::mem::transmute(category), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateCaptureAudioStateMonitorForCategory(category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateCaptureAudioStateMonitorForCategoryAndDeviceId(category: AUDIO_STREAM_CATEGORY, deviceid: P1) -> windows_core::Result @@ -46,13 +46,13 @@ where { windows_targets::link!("windows.media.mediacontrol.dll" "system" fn CreateCaptureAudioStateMonitorForCategoryAndDeviceId(category : AUDIO_STREAM_CATEGORY, deviceid : windows_core::PCWSTR, audiostatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateCaptureAudioStateMonitorForCategoryAndDeviceId(core::mem::transmute(category), deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateCaptureAudioStateMonitorForCategoryAndDeviceId(category, deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateCaptureAudioStateMonitorForCategoryAndDeviceRole(category: AUDIO_STREAM_CATEGORY, role: ERole) -> windows_core::Result { windows_targets::link!("windows.media.mediacontrol.dll" "system" fn CreateCaptureAudioStateMonitorForCategoryAndDeviceRole(category : AUDIO_STREAM_CATEGORY, role : ERole, audiostatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateCaptureAudioStateMonitorForCategoryAndDeviceRole(core::mem::transmute(category), core::mem::transmute(role), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateCaptureAudioStateMonitorForCategoryAndDeviceRole(category, role, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateRenderAudioStateMonitor() -> windows_core::Result { @@ -64,7 +64,7 @@ pub unsafe fn CreateRenderAudioStateMonitor() -> windows_core::Result windows_core::Result { windows_targets::link!("windows.media.mediacontrol.dll" "system" fn CreateRenderAudioStateMonitorForCategory(category : AUDIO_STREAM_CATEGORY, audiostatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateRenderAudioStateMonitorForCategory(core::mem::transmute(category), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateRenderAudioStateMonitorForCategory(category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateRenderAudioStateMonitorForCategoryAndDeviceId(category: AUDIO_STREAM_CATEGORY, deviceid: P1) -> windows_core::Result @@ -73,13 +73,13 @@ where { windows_targets::link!("windows.media.mediacontrol.dll" "system" fn CreateRenderAudioStateMonitorForCategoryAndDeviceId(category : AUDIO_STREAM_CATEGORY, deviceid : windows_core::PCWSTR, audiostatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateRenderAudioStateMonitorForCategoryAndDeviceId(core::mem::transmute(category), deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateRenderAudioStateMonitorForCategoryAndDeviceId(category, deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateRenderAudioStateMonitorForCategoryAndDeviceRole(category: AUDIO_STREAM_CATEGORY, role: ERole) -> windows_core::Result { windows_targets::link!("windows.media.mediacontrol.dll" "system" fn CreateRenderAudioStateMonitorForCategoryAndDeviceRole(category : AUDIO_STREAM_CATEGORY, role : ERole, audiostatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateRenderAudioStateMonitorForCategoryAndDeviceRole(core::mem::transmute(category), core::mem::transmute(role), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateRenderAudioStateMonitorForCategoryAndDeviceRole(category, role, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn PlaySoundA(pszsound: P0, hmod: Option, fdwsound: SND_FLAGS) -> super::super::Foundation::BOOL @@ -87,7 +87,7 @@ where P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn PlaySoundA(pszsound : windows_core::PCSTR, hmod : super::super::Foundation:: HMODULE, fdwsound : SND_FLAGS) -> super::super::Foundation:: BOOL); - PlaySoundA(pszsound.param().abi(), core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwsound)) + PlaySoundA(pszsound.param().abi(), core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), fdwsound) } #[inline] pub unsafe fn PlaySoundW(pszsound: P0, hmod: Option, fdwsound: SND_FLAGS) -> super::super::Foundation::BOOL @@ -95,64 +95,64 @@ where P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn PlaySoundW(pszsound : windows_core::PCWSTR, hmod : super::super::Foundation:: HMODULE, fdwsound : SND_FLAGS) -> super::super::Foundation:: BOOL); - PlaySoundW(pszsound.param().abi(), core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwsound)) + PlaySoundW(pszsound.param().abi(), core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), fdwsound) } #[inline] pub unsafe fn acmDriverAddA(phadid: *mut HACMDRIVERID, hinstmodule: super::super::Foundation::HINSTANCE, lparam: super::super::Foundation::LPARAM, dwpriority: u32, fdwadd: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverAddA(phadid : *mut HACMDRIVERID, hinstmodule : super::super::Foundation:: HINSTANCE, lparam : super::super::Foundation:: LPARAM, dwpriority : u32, fdwadd : u32) -> u32); - acmDriverAddA(core::mem::transmute(phadid), core::mem::transmute(hinstmodule), core::mem::transmute(lparam), core::mem::transmute(dwpriority), core::mem::transmute(fdwadd)) + acmDriverAddA(core::mem::transmute(phadid), hinstmodule, lparam, dwpriority, fdwadd) } #[inline] pub unsafe fn acmDriverAddW(phadid: *mut HACMDRIVERID, hinstmodule: super::super::Foundation::HINSTANCE, lparam: super::super::Foundation::LPARAM, dwpriority: u32, fdwadd: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverAddW(phadid : *mut HACMDRIVERID, hinstmodule : super::super::Foundation:: HINSTANCE, lparam : super::super::Foundation:: LPARAM, dwpriority : u32, fdwadd : u32) -> u32); - acmDriverAddW(core::mem::transmute(phadid), core::mem::transmute(hinstmodule), core::mem::transmute(lparam), core::mem::transmute(dwpriority), core::mem::transmute(fdwadd)) + acmDriverAddW(core::mem::transmute(phadid), hinstmodule, lparam, dwpriority, fdwadd) } #[inline] pub unsafe fn acmDriverClose(had: HACMDRIVER, fdwclose: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverClose(had : HACMDRIVER, fdwclose : u32) -> u32); - acmDriverClose(core::mem::transmute(had), core::mem::transmute(fdwclose)) + acmDriverClose(had, fdwclose) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn acmDriverDetailsA(hadid: HACMDRIVERID, padd: *mut ACMDRIVERDETAILSA, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverDetailsA(hadid : HACMDRIVERID, padd : *mut ACMDRIVERDETAILSA, fdwdetails : u32) -> u32); - acmDriverDetailsA(core::mem::transmute(hadid), core::mem::transmute(padd), core::mem::transmute(fdwdetails)) + acmDriverDetailsA(hadid, core::mem::transmute(padd), fdwdetails) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn acmDriverDetailsW(hadid: HACMDRIVERID, padd: *mut ACMDRIVERDETAILSW, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverDetailsW(hadid : HACMDRIVERID, padd : *mut ACMDRIVERDETAILSW, fdwdetails : u32) -> u32); - acmDriverDetailsW(core::mem::transmute(hadid), core::mem::transmute(padd), core::mem::transmute(fdwdetails)) + acmDriverDetailsW(hadid, core::mem::transmute(padd), fdwdetails) } #[inline] pub unsafe fn acmDriverEnum(fncallback: ACMDRIVERENUMCB, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverEnum(fncallback : ACMDRIVERENUMCB, dwinstance : usize, fdwenum : u32) -> u32); - acmDriverEnum(core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmDriverEnum(fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmDriverID(hao: HACMOBJ, phadid: *mut HACMDRIVERID, fdwdriverid: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverID(hao : HACMOBJ, phadid : *mut HACMDRIVERID, fdwdriverid : u32) -> u32); - acmDriverID(core::mem::transmute(hao), core::mem::transmute(phadid), core::mem::transmute(fdwdriverid)) + acmDriverID(hao, core::mem::transmute(phadid), fdwdriverid) } #[inline] pub unsafe fn acmDriverMessage(had: HACMDRIVER, umsg: u32, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("msacm32.dll" "system" fn acmDriverMessage(had : HACMDRIVER, umsg : u32, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - acmDriverMessage(core::mem::transmute(had), core::mem::transmute(umsg), core::mem::transmute(lparam1), core::mem::transmute(lparam2)) + acmDriverMessage(had, umsg, lparam1, lparam2) } #[inline] pub unsafe fn acmDriverOpen(phad: *mut HACMDRIVER, hadid: HACMDRIVERID, fdwopen: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverOpen(phad : *mut HACMDRIVER, hadid : HACMDRIVERID, fdwopen : u32) -> u32); - acmDriverOpen(core::mem::transmute(phad), core::mem::transmute(hadid), core::mem::transmute(fdwopen)) + acmDriverOpen(core::mem::transmute(phad), hadid, fdwopen) } #[inline] pub unsafe fn acmDriverPriority(hadid: HACMDRIVERID, dwpriority: u32, fdwpriority: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverPriority(hadid : HACMDRIVERID, dwpriority : u32, fdwpriority : u32) -> u32); - acmDriverPriority(core::mem::transmute(hadid), core::mem::transmute(dwpriority), core::mem::transmute(fdwpriority)) + acmDriverPriority(hadid, dwpriority, fdwpriority) } #[inline] pub unsafe fn acmDriverRemove(hadid: HACMDRIVERID, fdwremove: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmDriverRemove(hadid : HACMDRIVERID, fdwremove : u32) -> u32); - acmDriverRemove(core::mem::transmute(hadid), core::mem::transmute(fdwremove)) + acmDriverRemove(hadid, fdwremove) } #[inline] pub unsafe fn acmFilterChooseA(pafltrc: *mut ACMFILTERCHOOSEA) -> u32 { @@ -167,42 +167,42 @@ pub unsafe fn acmFilterChooseW(pafltrc: *mut ACMFILTERCHOOSEW) -> u32 { #[inline] pub unsafe fn acmFilterDetailsA(had: HACMDRIVER, pafd: *mut ACMFILTERDETAILSA, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterDetailsA(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSA, fdwdetails : u32) -> u32); - acmFilterDetailsA(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fdwdetails)) + acmFilterDetailsA(had, core::mem::transmute(pafd), fdwdetails) } #[inline] pub unsafe fn acmFilterDetailsW(had: HACMDRIVER, pafd: *mut ACMFILTERDETAILSW, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterDetailsW(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSW, fdwdetails : u32) -> u32); - acmFilterDetailsW(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fdwdetails)) + acmFilterDetailsW(had, core::mem::transmute(pafd), fdwdetails) } #[inline] pub unsafe fn acmFilterEnumA(had: HACMDRIVER, pafd: *mut ACMFILTERDETAILSA, fncallback: ACMFILTERENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterEnumA(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSA, fncallback : ACMFILTERENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterEnumA(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFilterEnumA(had, core::mem::transmute(pafd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFilterEnumW(had: HACMDRIVER, pafd: *mut ACMFILTERDETAILSW, fncallback: ACMFILTERENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterEnumW(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSW, fncallback : ACMFILTERENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterEnumW(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFilterEnumW(had, core::mem::transmute(pafd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFilterTagDetailsA(had: HACMDRIVER, paftd: *mut ACMFILTERTAGDETAILSA, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagDetailsA(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSA, fdwdetails : u32) -> u32); - acmFilterTagDetailsA(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fdwdetails)) + acmFilterTagDetailsA(had, core::mem::transmute(paftd), fdwdetails) } #[inline] pub unsafe fn acmFilterTagDetailsW(had: HACMDRIVER, paftd: *mut ACMFILTERTAGDETAILSW, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagDetailsW(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSW, fdwdetails : u32) -> u32); - acmFilterTagDetailsW(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fdwdetails)) + acmFilterTagDetailsW(had, core::mem::transmute(paftd), fdwdetails) } #[inline] pub unsafe fn acmFilterTagEnumA(had: HACMDRIVER, paftd: *mut ACMFILTERTAGDETAILSA, fncallback: ACMFILTERTAGENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagEnumA(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSA, fncallback : ACMFILTERTAGENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterTagEnumA(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFilterTagEnumA(had, core::mem::transmute(paftd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFilterTagEnumW(had: HACMDRIVER, paftd: *mut ACMFILTERTAGDETAILSW, fncallback: ACMFILTERTAGENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagEnumW(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSW, fncallback : ACMFILTERTAGENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterTagEnumW(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFilterTagEnumW(had, core::mem::transmute(paftd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatChooseA(pafmtc: *mut ACMFORMATCHOOSEA) -> u32 { @@ -217,47 +217,47 @@ pub unsafe fn acmFormatChooseW(pafmtc: *mut ACMFORMATCHOOSEW) -> u32 { #[inline] pub unsafe fn acmFormatDetailsA(had: HACMDRIVER, pafd: *mut ACMFORMATDETAILSA, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatDetailsA(had : HACMDRIVER, pafd : *mut ACMFORMATDETAILSA, fdwdetails : u32) -> u32); - acmFormatDetailsA(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fdwdetails)) + acmFormatDetailsA(had, core::mem::transmute(pafd), fdwdetails) } #[inline] pub unsafe fn acmFormatDetailsW(had: HACMDRIVER, pafd: *mut tACMFORMATDETAILSW, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatDetailsW(had : HACMDRIVER, pafd : *mut tACMFORMATDETAILSW, fdwdetails : u32) -> u32); - acmFormatDetailsW(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fdwdetails)) + acmFormatDetailsW(had, core::mem::transmute(pafd), fdwdetails) } #[inline] pub unsafe fn acmFormatEnumA(had: HACMDRIVER, pafd: *mut ACMFORMATDETAILSA, fncallback: ACMFORMATENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatEnumA(had : HACMDRIVER, pafd : *mut ACMFORMATDETAILSA, fncallback : ACMFORMATENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatEnumA(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFormatEnumA(had, core::mem::transmute(pafd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatEnumW(had: HACMDRIVER, pafd: *mut tACMFORMATDETAILSW, fncallback: ACMFORMATENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatEnumW(had : HACMDRIVER, pafd : *mut tACMFORMATDETAILSW, fncallback : ACMFORMATENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatEnumW(core::mem::transmute(had), core::mem::transmute(pafd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFormatEnumW(had, core::mem::transmute(pafd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatSuggest(had: HACMDRIVER, pwfxsrc: *mut WAVEFORMATEX, pwfxdst: *mut WAVEFORMATEX, cbwfxdst: u32, fdwsuggest: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatSuggest(had : HACMDRIVER, pwfxsrc : *mut WAVEFORMATEX, pwfxdst : *mut WAVEFORMATEX, cbwfxdst : u32, fdwsuggest : u32) -> u32); - acmFormatSuggest(core::mem::transmute(had), core::mem::transmute(pwfxsrc), core::mem::transmute(pwfxdst), core::mem::transmute(cbwfxdst), core::mem::transmute(fdwsuggest)) + acmFormatSuggest(had, core::mem::transmute(pwfxsrc), core::mem::transmute(pwfxdst), cbwfxdst, fdwsuggest) } #[inline] pub unsafe fn acmFormatTagDetailsA(had: HACMDRIVER, paftd: *mut ACMFORMATTAGDETAILSA, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagDetailsA(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSA, fdwdetails : u32) -> u32); - acmFormatTagDetailsA(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fdwdetails)) + acmFormatTagDetailsA(had, core::mem::transmute(paftd), fdwdetails) } #[inline] pub unsafe fn acmFormatTagDetailsW(had: HACMDRIVER, paftd: *mut ACMFORMATTAGDETAILSW, fdwdetails: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagDetailsW(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSW, fdwdetails : u32) -> u32); - acmFormatTagDetailsW(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fdwdetails)) + acmFormatTagDetailsW(had, core::mem::transmute(paftd), fdwdetails) } #[inline] pub unsafe fn acmFormatTagEnumA(had: HACMDRIVER, paftd: *mut ACMFORMATTAGDETAILSA, fncallback: ACMFORMATTAGENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagEnumA(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSA, fncallback : ACMFORMATTAGENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatTagEnumA(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFormatTagEnumA(had, core::mem::transmute(paftd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatTagEnumW(had: HACMDRIVER, paftd: *mut ACMFORMATTAGDETAILSW, fncallback: ACMFORMATTAGENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagEnumW(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSW, fncallback : ACMFORMATTAGENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatTagEnumW(core::mem::transmute(had), core::mem::transmute(paftd), core::mem::transmute(fncallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwenum)) + acmFormatTagEnumW(had, core::mem::transmute(paftd), fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmGetVersion() -> u32 { @@ -267,57 +267,57 @@ pub unsafe fn acmGetVersion() -> u32 { #[inline] pub unsafe fn acmMetrics(hao: HACMOBJ, umetric: u32, pmetric: *mut core::ffi::c_void) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmMetrics(hao : HACMOBJ, umetric : u32, pmetric : *mut core::ffi::c_void) -> u32); - acmMetrics(core::mem::transmute(hao), core::mem::transmute(umetric), core::mem::transmute(pmetric)) + acmMetrics(hao, umetric, core::mem::transmute(pmetric)) } #[inline] pub unsafe fn acmStreamClose(has: HACMSTREAM, fdwclose: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamClose(has : HACMSTREAM, fdwclose : u32) -> u32); - acmStreamClose(core::mem::transmute(has), core::mem::transmute(fdwclose)) + acmStreamClose(has, fdwclose) } #[inline] pub unsafe fn acmStreamConvert(has: HACMSTREAM, pash: *mut ACMSTREAMHEADER, fdwconvert: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamConvert(has : HACMSTREAM, pash : *mut ACMSTREAMHEADER, fdwconvert : u32) -> u32); - acmStreamConvert(core::mem::transmute(has), core::mem::transmute(pash), core::mem::transmute(fdwconvert)) + acmStreamConvert(has, core::mem::transmute(pash), fdwconvert) } #[inline] pub unsafe fn acmStreamMessage(has: HACMSTREAM, umsg: u32, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamMessage(has : HACMSTREAM, umsg : u32, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> u32); - acmStreamMessage(core::mem::transmute(has), core::mem::transmute(umsg), core::mem::transmute(lparam1), core::mem::transmute(lparam2)) + acmStreamMessage(has, umsg, lparam1, lparam2) } #[inline] pub unsafe fn acmStreamOpen(phas: *mut HACMSTREAM, had: HACMDRIVER, pwfxsrc: *mut WAVEFORMATEX, pwfxdst: *mut WAVEFORMATEX, pwfltr: *mut WAVEFILTER, dwcallback: usize, dwinstance: usize, fdwopen: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamOpen(phas : *mut HACMSTREAM, had : HACMDRIVER, pwfxsrc : *mut WAVEFORMATEX, pwfxdst : *mut WAVEFORMATEX, pwfltr : *mut WAVEFILTER, dwcallback : usize, dwinstance : usize, fdwopen : u32) -> u32); - acmStreamOpen(core::mem::transmute(phas), core::mem::transmute(had), core::mem::transmute(pwfxsrc), core::mem::transmute(pwfxdst), core::mem::transmute(pwfltr), core::mem::transmute(dwcallback), core::mem::transmute(dwinstance), core::mem::transmute(fdwopen)) + acmStreamOpen(core::mem::transmute(phas), had, core::mem::transmute(pwfxsrc), core::mem::transmute(pwfxdst), core::mem::transmute(pwfltr), dwcallback, dwinstance, fdwopen) } #[inline] pub unsafe fn acmStreamPrepareHeader(has: HACMSTREAM, pash: *mut ACMSTREAMHEADER, fdwprepare: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamPrepareHeader(has : HACMSTREAM, pash : *mut ACMSTREAMHEADER, fdwprepare : u32) -> u32); - acmStreamPrepareHeader(core::mem::transmute(has), core::mem::transmute(pash), core::mem::transmute(fdwprepare)) + acmStreamPrepareHeader(has, core::mem::transmute(pash), fdwprepare) } #[inline] pub unsafe fn acmStreamReset(has: HACMSTREAM, fdwreset: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamReset(has : HACMSTREAM, fdwreset : u32) -> u32); - acmStreamReset(core::mem::transmute(has), core::mem::transmute(fdwreset)) + acmStreamReset(has, fdwreset) } #[inline] pub unsafe fn acmStreamSize(has: HACMSTREAM, cbinput: u32, pdwoutputbytes: *mut u32, fdwsize: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamSize(has : HACMSTREAM, cbinput : u32, pdwoutputbytes : *mut u32, fdwsize : u32) -> u32); - acmStreamSize(core::mem::transmute(has), core::mem::transmute(cbinput), core::mem::transmute(pdwoutputbytes), core::mem::transmute(fdwsize)) + acmStreamSize(has, cbinput, core::mem::transmute(pdwoutputbytes), fdwsize) } #[inline] pub unsafe fn acmStreamUnprepareHeader(has: HACMSTREAM, pash: *mut ACMSTREAMHEADER, fdwunprepare: u32) -> u32 { windows_targets::link!("msacm32.dll" "system" fn acmStreamUnprepareHeader(has : HACMSTREAM, pash : *mut ACMSTREAMHEADER, fdwunprepare : u32) -> u32); - acmStreamUnprepareHeader(core::mem::transmute(has), core::mem::transmute(pash), core::mem::transmute(fdwunprepare)) + acmStreamUnprepareHeader(has, core::mem::transmute(pash), fdwunprepare) } #[inline] pub unsafe fn auxGetDevCapsA(udeviceid: usize, pac: *mut AUXCAPSA, cbac: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn auxGetDevCapsA(udeviceid : usize, pac : *mut AUXCAPSA, cbac : u32) -> u32); - auxGetDevCapsA(core::mem::transmute(udeviceid), core::mem::transmute(pac), core::mem::transmute(cbac)) + auxGetDevCapsA(udeviceid, core::mem::transmute(pac), cbac) } #[inline] pub unsafe fn auxGetDevCapsW(udeviceid: usize, pac: *mut AUXCAPSW, cbac: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn auxGetDevCapsW(udeviceid : usize, pac : *mut AUXCAPSW, cbac : u32) -> u32); - auxGetDevCapsW(core::mem::transmute(udeviceid), core::mem::transmute(pac), core::mem::transmute(cbac)) + auxGetDevCapsW(udeviceid, core::mem::transmute(pac), cbac) } #[inline] pub unsafe fn auxGetNumDevs() -> u32 { @@ -327,62 +327,62 @@ pub unsafe fn auxGetNumDevs() -> u32 { #[inline] pub unsafe fn auxGetVolume(udeviceid: u32, pdwvolume: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn auxGetVolume(udeviceid : u32, pdwvolume : *mut u32) -> u32); - auxGetVolume(core::mem::transmute(udeviceid), core::mem::transmute(pdwvolume)) + auxGetVolume(udeviceid, core::mem::transmute(pdwvolume)) } #[inline] pub unsafe fn auxOutMessage(udeviceid: u32, umsg: u32, dw1: Option, dw2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn auxOutMessage(udeviceid : u32, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - auxOutMessage(core::mem::transmute(udeviceid), core::mem::transmute(umsg), core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) + auxOutMessage(udeviceid, umsg, core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn auxSetVolume(udeviceid: u32, dwvolume: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn auxSetVolume(udeviceid : u32, dwvolume : u32) -> u32); - auxSetVolume(core::mem::transmute(udeviceid), core::mem::transmute(dwvolume)) + auxSetVolume(udeviceid, dwvolume) } #[inline] pub unsafe fn midiConnect(hmi: HMIDI, hmo: HMIDIOUT, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiConnect(hmi : HMIDI, hmo : HMIDIOUT, preserved : *const core::ffi::c_void) -> u32); - midiConnect(core::mem::transmute(hmi), core::mem::transmute(hmo), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + midiConnect(hmi, hmo, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn midiDisconnect(hmi: HMIDI, hmo: HMIDIOUT, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiDisconnect(hmi : HMIDI, hmo : HMIDIOUT, preserved : *const core::ffi::c_void) -> u32); - midiDisconnect(core::mem::transmute(hmi), core::mem::transmute(hmo), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + midiDisconnect(hmi, hmo, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn midiInAddBuffer(hmi: HMIDIIN, pmh: *mut MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInAddBuffer(hmi : HMIDIIN, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiInAddBuffer(core::mem::transmute(hmi), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiInAddBuffer(hmi, core::mem::transmute(pmh), cbmh) } #[inline] pub unsafe fn midiInClose(hmi: HMIDIIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInClose(hmi : HMIDIIN) -> u32); - midiInClose(core::mem::transmute(hmi)) + midiInClose(hmi) } #[inline] pub unsafe fn midiInGetDevCapsA(udeviceid: usize, pmic: *mut MIDIINCAPSA, cbmic: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInGetDevCapsA(udeviceid : usize, pmic : *mut MIDIINCAPSA, cbmic : u32) -> u32); - midiInGetDevCapsA(core::mem::transmute(udeviceid), core::mem::transmute(pmic), core::mem::transmute(cbmic)) + midiInGetDevCapsA(udeviceid, core::mem::transmute(pmic), cbmic) } #[inline] pub unsafe fn midiInGetDevCapsW(udeviceid: usize, pmic: *mut MIDIINCAPSW, cbmic: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInGetDevCapsW(udeviceid : usize, pmic : *mut MIDIINCAPSW, cbmic : u32) -> u32); - midiInGetDevCapsW(core::mem::transmute(udeviceid), core::mem::transmute(pmic), core::mem::transmute(cbmic)) + midiInGetDevCapsW(udeviceid, core::mem::transmute(pmic), cbmic) } #[inline] pub unsafe fn midiInGetErrorTextA(mmrerror: u32, psztext: &mut [u8]) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInGetErrorTextA(mmrerror : u32, psztext : windows_core::PSTR, cchtext : u32) -> u32); - midiInGetErrorTextA(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + midiInGetErrorTextA(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn midiInGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInGetErrorTextW(mmrerror : u32, psztext : windows_core::PWSTR, cchtext : u32) -> u32); - midiInGetErrorTextW(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + midiInGetErrorTextW(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn midiInGetID(hmi: HMIDIIN, pudeviceid: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInGetID(hmi : HMIDIIN, pudeviceid : *mut u32) -> u32); - midiInGetID(core::mem::transmute(hmi), core::mem::transmute(pudeviceid)) + midiInGetID(hmi, core::mem::transmute(pudeviceid)) } #[inline] pub unsafe fn midiInGetNumDevs() -> u32 { @@ -392,77 +392,77 @@ pub unsafe fn midiInGetNumDevs() -> u32 { #[inline] pub unsafe fn midiInMessage(hmi: Option, umsg: u32, dw1: Option, dw2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInMessage(hmi : HMIDIIN, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - midiInMessage(core::mem::transmute(hmi.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) + midiInMessage(core::mem::transmute(hmi.unwrap_or(core::mem::zeroed())), umsg, core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn midiInOpen(phmi: *mut HMIDIIN, udeviceid: u32, dwcallback: Option, dwinstance: Option, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInOpen(phmi : *mut HMIDIIN, udeviceid : u32, dwcallback : usize, dwinstance : usize, fdwopen : MIDI_WAVE_OPEN_TYPE) -> u32); - midiInOpen(core::mem::transmute(phmi), core::mem::transmute(udeviceid), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + midiInOpen(core::mem::transmute(phmi), udeviceid, core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn midiInPrepareHeader(hmi: HMIDIIN, pmh: *mut MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInPrepareHeader(hmi : HMIDIIN, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiInPrepareHeader(core::mem::transmute(hmi), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiInPrepareHeader(hmi, core::mem::transmute(pmh), cbmh) } #[inline] pub unsafe fn midiInReset(hmi: HMIDIIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInReset(hmi : HMIDIIN) -> u32); - midiInReset(core::mem::transmute(hmi)) + midiInReset(hmi) } #[inline] pub unsafe fn midiInStart(hmi: HMIDIIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInStart(hmi : HMIDIIN) -> u32); - midiInStart(core::mem::transmute(hmi)) + midiInStart(hmi) } #[inline] pub unsafe fn midiInStop(hmi: HMIDIIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInStop(hmi : HMIDIIN) -> u32); - midiInStop(core::mem::transmute(hmi)) + midiInStop(hmi) } #[inline] pub unsafe fn midiInUnprepareHeader(hmi: HMIDIIN, pmh: *mut MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiInUnprepareHeader(hmi : HMIDIIN, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiInUnprepareHeader(core::mem::transmute(hmi), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiInUnprepareHeader(hmi, core::mem::transmute(pmh), cbmh) } #[inline] pub unsafe fn midiOutCacheDrumPatches(hmo: HMIDIOUT, upatch: u32, pwkya: &[u16; 128], fucache: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutCacheDrumPatches(hmo : HMIDIOUT, upatch : u32, pwkya : *const u16, fucache : u32) -> u32); - midiOutCacheDrumPatches(core::mem::transmute(hmo), core::mem::transmute(upatch), core::mem::transmute(pwkya.as_ptr()), core::mem::transmute(fucache)) + midiOutCacheDrumPatches(hmo, upatch, core::mem::transmute(pwkya.as_ptr()), fucache) } #[inline] pub unsafe fn midiOutCachePatches(hmo: HMIDIOUT, ubank: u32, pwpa: &[u16; 128], fucache: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutCachePatches(hmo : HMIDIOUT, ubank : u32, pwpa : *const u16, fucache : u32) -> u32); - midiOutCachePatches(core::mem::transmute(hmo), core::mem::transmute(ubank), core::mem::transmute(pwpa.as_ptr()), core::mem::transmute(fucache)) + midiOutCachePatches(hmo, ubank, core::mem::transmute(pwpa.as_ptr()), fucache) } #[inline] pub unsafe fn midiOutClose(hmo: HMIDIOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutClose(hmo : HMIDIOUT) -> u32); - midiOutClose(core::mem::transmute(hmo)) + midiOutClose(hmo) } #[inline] pub unsafe fn midiOutGetDevCapsA(udeviceid: usize, pmoc: *mut MIDIOUTCAPSA, cbmoc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutGetDevCapsA(udeviceid : usize, pmoc : *mut MIDIOUTCAPSA, cbmoc : u32) -> u32); - midiOutGetDevCapsA(core::mem::transmute(udeviceid), core::mem::transmute(pmoc), core::mem::transmute(cbmoc)) + midiOutGetDevCapsA(udeviceid, core::mem::transmute(pmoc), cbmoc) } #[inline] pub unsafe fn midiOutGetDevCapsW(udeviceid: usize, pmoc: *mut MIDIOUTCAPSW, cbmoc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutGetDevCapsW(udeviceid : usize, pmoc : *mut MIDIOUTCAPSW, cbmoc : u32) -> u32); - midiOutGetDevCapsW(core::mem::transmute(udeviceid), core::mem::transmute(pmoc), core::mem::transmute(cbmoc)) + midiOutGetDevCapsW(udeviceid, core::mem::transmute(pmoc), cbmoc) } #[inline] pub unsafe fn midiOutGetErrorTextA(mmrerror: u32, psztext: &mut [u8]) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutGetErrorTextA(mmrerror : u32, psztext : windows_core::PSTR, cchtext : u32) -> u32); - midiOutGetErrorTextA(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + midiOutGetErrorTextA(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn midiOutGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutGetErrorTextW(mmrerror : u32, psztext : windows_core::PWSTR, cchtext : u32) -> u32); - midiOutGetErrorTextW(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + midiOutGetErrorTextW(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn midiOutGetID(hmo: HMIDIOUT, pudeviceid: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutGetID(hmo : HMIDIOUT, pudeviceid : *mut u32) -> u32); - midiOutGetID(core::mem::transmute(hmo), core::mem::transmute(pudeviceid)) + midiOutGetID(hmo, core::mem::transmute(pudeviceid)) } #[inline] pub unsafe fn midiOutGetNumDevs() -> u32 { @@ -477,132 +477,132 @@ pub unsafe fn midiOutGetVolume(hmo: Option, pdwvolume: *mut u32) -> u3 #[inline] pub unsafe fn midiOutLongMsg(hmo: HMIDIOUT, pmh: *const MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutLongMsg(hmo : HMIDIOUT, pmh : *const MIDIHDR, cbmh : u32) -> u32); - midiOutLongMsg(core::mem::transmute(hmo), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiOutLongMsg(hmo, pmh, cbmh) } #[inline] pub unsafe fn midiOutMessage(hmo: Option, umsg: u32, dw1: Option, dw2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutMessage(hmo : HMIDIOUT, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - midiOutMessage(core::mem::transmute(hmo.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) + midiOutMessage(core::mem::transmute(hmo.unwrap_or(core::mem::zeroed())), umsg, core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn midiOutOpen(phmo: *mut HMIDIOUT, udeviceid: u32, dwcallback: Option, dwinstance: Option, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutOpen(phmo : *mut HMIDIOUT, udeviceid : u32, dwcallback : usize, dwinstance : usize, fdwopen : MIDI_WAVE_OPEN_TYPE) -> u32); - midiOutOpen(core::mem::transmute(phmo), core::mem::transmute(udeviceid), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + midiOutOpen(core::mem::transmute(phmo), udeviceid, core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn midiOutPrepareHeader(hmo: HMIDIOUT, pmh: *mut MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutPrepareHeader(hmo : HMIDIOUT, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiOutPrepareHeader(core::mem::transmute(hmo), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiOutPrepareHeader(hmo, core::mem::transmute(pmh), cbmh) } #[inline] pub unsafe fn midiOutReset(hmo: HMIDIOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutReset(hmo : HMIDIOUT) -> u32); - midiOutReset(core::mem::transmute(hmo)) + midiOutReset(hmo) } #[inline] pub unsafe fn midiOutSetVolume(hmo: Option, dwvolume: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutSetVolume(hmo : HMIDIOUT, dwvolume : u32) -> u32); - midiOutSetVolume(core::mem::transmute(hmo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwvolume)) + midiOutSetVolume(core::mem::transmute(hmo.unwrap_or(core::mem::zeroed())), dwvolume) } #[inline] pub unsafe fn midiOutShortMsg(hmo: HMIDIOUT, dwmsg: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutShortMsg(hmo : HMIDIOUT, dwmsg : u32) -> u32); - midiOutShortMsg(core::mem::transmute(hmo), core::mem::transmute(dwmsg)) + midiOutShortMsg(hmo, dwmsg) } #[inline] pub unsafe fn midiOutUnprepareHeader(hmo: HMIDIOUT, pmh: *mut MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiOutUnprepareHeader(hmo : HMIDIOUT, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiOutUnprepareHeader(core::mem::transmute(hmo), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiOutUnprepareHeader(hmo, core::mem::transmute(pmh), cbmh) } #[inline] pub unsafe fn midiStreamClose(hms: HMIDISTRM) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamClose(hms : HMIDISTRM) -> u32); - midiStreamClose(core::mem::transmute(hms)) + midiStreamClose(hms) } #[inline] pub unsafe fn midiStreamOpen(phms: *mut HMIDISTRM, pudeviceid: &mut [u32], dwcallback: Option, dwinstance: Option, fdwopen: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamOpen(phms : *mut HMIDISTRM, pudeviceid : *mut u32, cmidi : u32, dwcallback : usize, dwinstance : usize, fdwopen : u32) -> u32); - midiStreamOpen(core::mem::transmute(phms), core::mem::transmute(pudeviceid.as_ptr()), pudeviceid.len().try_into().unwrap(), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + midiStreamOpen(core::mem::transmute(phms), core::mem::transmute(pudeviceid.as_ptr()), pudeviceid.len().try_into().unwrap(), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn midiStreamOut(hms: HMIDISTRM, pmh: *mut MIDIHDR, cbmh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamOut(hms : HMIDISTRM, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiStreamOut(core::mem::transmute(hms), core::mem::transmute(pmh), core::mem::transmute(cbmh)) + midiStreamOut(hms, core::mem::transmute(pmh), cbmh) } #[inline] pub unsafe fn midiStreamPause(hms: HMIDISTRM) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamPause(hms : HMIDISTRM) -> u32); - midiStreamPause(core::mem::transmute(hms)) + midiStreamPause(hms) } #[inline] pub unsafe fn midiStreamPosition(hms: HMIDISTRM, lpmmt: *mut super::MMTIME, cbmmt: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamPosition(hms : HMIDISTRM, lpmmt : *mut super:: MMTIME, cbmmt : u32) -> u32); - midiStreamPosition(core::mem::transmute(hms), core::mem::transmute(lpmmt), core::mem::transmute(cbmmt)) + midiStreamPosition(hms, core::mem::transmute(lpmmt), cbmmt) } #[inline] pub unsafe fn midiStreamProperty(hms: HMIDISTRM, lppropdata: *mut u8, dwproperty: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamProperty(hms : HMIDISTRM, lppropdata : *mut u8, dwproperty : u32) -> u32); - midiStreamProperty(core::mem::transmute(hms), core::mem::transmute(lppropdata), core::mem::transmute(dwproperty)) + midiStreamProperty(hms, core::mem::transmute(lppropdata), dwproperty) } #[inline] pub unsafe fn midiStreamRestart(hms: HMIDISTRM) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamRestart(hms : HMIDISTRM) -> u32); - midiStreamRestart(core::mem::transmute(hms)) + midiStreamRestart(hms) } #[inline] pub unsafe fn midiStreamStop(hms: HMIDISTRM) -> u32 { windows_targets::link!("winmm.dll" "system" fn midiStreamStop(hms : HMIDISTRM) -> u32); - midiStreamStop(core::mem::transmute(hms)) + midiStreamStop(hms) } #[inline] pub unsafe fn mixerClose(hmx: HMIXER) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerClose(hmx : HMIXER) -> u32); - mixerClose(core::mem::transmute(hmx)) + mixerClose(hmx) } #[inline] pub unsafe fn mixerGetControlDetailsA(hmxobj: Option, pmxcd: *mut MIXERCONTROLDETAILS, fdwdetails: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetControlDetailsA(hmxobj : HMIXEROBJ, pmxcd : *mut MIXERCONTROLDETAILS, fdwdetails : u32) -> u32); - mixerGetControlDetailsA(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxcd), core::mem::transmute(fdwdetails)) + mixerGetControlDetailsA(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxcd), fdwdetails) } #[inline] pub unsafe fn mixerGetControlDetailsW(hmxobj: Option, pmxcd: *mut MIXERCONTROLDETAILS, fdwdetails: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetControlDetailsW(hmxobj : HMIXEROBJ, pmxcd : *mut MIXERCONTROLDETAILS, fdwdetails : u32) -> u32); - mixerGetControlDetailsW(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxcd), core::mem::transmute(fdwdetails)) + mixerGetControlDetailsW(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxcd), fdwdetails) } #[inline] pub unsafe fn mixerGetDevCapsA(umxid: usize, pmxcaps: *mut MIXERCAPSA, cbmxcaps: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetDevCapsA(umxid : usize, pmxcaps : *mut MIXERCAPSA, cbmxcaps : u32) -> u32); - mixerGetDevCapsA(core::mem::transmute(umxid), core::mem::transmute(pmxcaps), core::mem::transmute(cbmxcaps)) + mixerGetDevCapsA(umxid, core::mem::transmute(pmxcaps), cbmxcaps) } #[inline] pub unsafe fn mixerGetDevCapsW(umxid: usize, pmxcaps: *mut MIXERCAPSW, cbmxcaps: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetDevCapsW(umxid : usize, pmxcaps : *mut MIXERCAPSW, cbmxcaps : u32) -> u32); - mixerGetDevCapsW(core::mem::transmute(umxid), core::mem::transmute(pmxcaps), core::mem::transmute(cbmxcaps)) + mixerGetDevCapsW(umxid, core::mem::transmute(pmxcaps), cbmxcaps) } #[inline] pub unsafe fn mixerGetID(hmxobj: Option, pumxid: *mut u32, fdwid: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetID(hmxobj : HMIXEROBJ, pumxid : *mut u32, fdwid : u32) -> u32); - mixerGetID(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pumxid), core::mem::transmute(fdwid)) + mixerGetID(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pumxid), fdwid) } #[inline] pub unsafe fn mixerGetLineControlsA(hmxobj: Option, pmxlc: *mut MIXERLINECONTROLSA, fdwcontrols: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetLineControlsA(hmxobj : HMIXEROBJ, pmxlc : *mut MIXERLINECONTROLSA, fdwcontrols : u32) -> u32); - mixerGetLineControlsA(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxlc), core::mem::transmute(fdwcontrols)) + mixerGetLineControlsA(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxlc), fdwcontrols) } #[inline] pub unsafe fn mixerGetLineControlsW(hmxobj: Option, pmxlc: *mut MIXERLINECONTROLSW, fdwcontrols: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetLineControlsW(hmxobj : HMIXEROBJ, pmxlc : *mut MIXERLINECONTROLSW, fdwcontrols : u32) -> u32); - mixerGetLineControlsW(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxlc), core::mem::transmute(fdwcontrols)) + mixerGetLineControlsW(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxlc), fdwcontrols) } #[inline] pub unsafe fn mixerGetLineInfoA(hmxobj: Option, pmxl: *mut MIXERLINEA, fdwinfo: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetLineInfoA(hmxobj : HMIXEROBJ, pmxl : *mut MIXERLINEA, fdwinfo : u32) -> u32); - mixerGetLineInfoA(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxl), core::mem::transmute(fdwinfo)) + mixerGetLineInfoA(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxl), fdwinfo) } #[inline] pub unsafe fn mixerGetLineInfoW(hmxobj: Option, pmxl: *mut MIXERLINEW, fdwinfo: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerGetLineInfoW(hmxobj : HMIXEROBJ, pmxl : *mut MIXERLINEW, fdwinfo : u32) -> u32); - mixerGetLineInfoW(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxl), core::mem::transmute(fdwinfo)) + mixerGetLineInfoW(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxl), fdwinfo) } #[inline] pub unsafe fn mixerGetNumDevs() -> u32 { @@ -612,17 +612,17 @@ pub unsafe fn mixerGetNumDevs() -> u32 { #[inline] pub unsafe fn mixerMessage(hmx: Option, umsg: u32, dwparam1: Option, dwparam2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerMessage(hmx : HMIXER, umsg : u32, dwparam1 : usize, dwparam2 : usize) -> u32); - mixerMessage(core::mem::transmute(hmx.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(dwparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwparam2.unwrap_or(core::mem::zeroed()))) + mixerMessage(core::mem::transmute(hmx.unwrap_or(core::mem::zeroed())), umsg, core::mem::transmute(dwparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwparam2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn mixerOpen(phmx: Option<*mut HMIXER>, umxid: u32, dwcallback: Option, dwinstance: Option, fdwopen: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerOpen(phmx : *mut HMIXER, umxid : u32, dwcallback : usize, dwinstance : usize, fdwopen : u32) -> u32); - mixerOpen(core::mem::transmute(phmx.unwrap_or(core::mem::zeroed())), core::mem::transmute(umxid), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + mixerOpen(core::mem::transmute(phmx.unwrap_or(core::mem::zeroed())), umxid, core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn mixerSetControlDetails(hmxobj: Option, pmxcd: *const MIXERCONTROLDETAILS, fdwdetails: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mixerSetControlDetails(hmxobj : HMIXEROBJ, pmxcd : *const MIXERCONTROLDETAILS, fdwdetails : u32) -> u32); - mixerSetControlDetails(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmxcd), core::mem::transmute(fdwdetails)) + mixerSetControlDetails(core::mem::transmute(hmxobj.unwrap_or(core::mem::zeroed())), pmxcd, fdwdetails) } #[inline] pub unsafe fn sndPlaySoundA(pszsound: P0, fusound: u32) -> super::super::Foundation::BOOL @@ -630,7 +630,7 @@ where P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn sndPlaySoundA(pszsound : windows_core::PCSTR, fusound : u32) -> super::super::Foundation:: BOOL); - sndPlaySoundA(pszsound.param().abi(), core::mem::transmute(fusound)) + sndPlaySoundA(pszsound.param().abi(), fusound) } #[inline] pub unsafe fn sndPlaySoundW(pszsound: P0, fusound: u32) -> super::super::Foundation::BOOL @@ -638,42 +638,42 @@ where P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn sndPlaySoundW(pszsound : windows_core::PCWSTR, fusound : u32) -> super::super::Foundation:: BOOL); - sndPlaySoundW(pszsound.param().abi(), core::mem::transmute(fusound)) + sndPlaySoundW(pszsound.param().abi(), fusound) } #[inline] pub unsafe fn waveInAddBuffer(hwi: HWAVEIN, pwh: *mut WAVEHDR, cbwh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInAddBuffer(hwi : HWAVEIN, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveInAddBuffer(core::mem::transmute(hwi), core::mem::transmute(pwh), core::mem::transmute(cbwh)) + waveInAddBuffer(hwi, core::mem::transmute(pwh), cbwh) } #[inline] pub unsafe fn waveInClose(hwi: HWAVEIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInClose(hwi : HWAVEIN) -> u32); - waveInClose(core::mem::transmute(hwi)) + waveInClose(hwi) } #[inline] pub unsafe fn waveInGetDevCapsA(udeviceid: usize, pwic: *mut WAVEINCAPSA, cbwic: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInGetDevCapsA(udeviceid : usize, pwic : *mut WAVEINCAPSA, cbwic : u32) -> u32); - waveInGetDevCapsA(core::mem::transmute(udeviceid), core::mem::transmute(pwic), core::mem::transmute(cbwic)) + waveInGetDevCapsA(udeviceid, core::mem::transmute(pwic), cbwic) } #[inline] pub unsafe fn waveInGetDevCapsW(udeviceid: usize, pwic: *mut WAVEINCAPSW, cbwic: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInGetDevCapsW(udeviceid : usize, pwic : *mut WAVEINCAPSW, cbwic : u32) -> u32); - waveInGetDevCapsW(core::mem::transmute(udeviceid), core::mem::transmute(pwic), core::mem::transmute(cbwic)) + waveInGetDevCapsW(udeviceid, core::mem::transmute(pwic), cbwic) } #[inline] pub unsafe fn waveInGetErrorTextA(mmrerror: u32, psztext: &mut [u8]) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInGetErrorTextA(mmrerror : u32, psztext : windows_core::PSTR, cchtext : u32) -> u32); - waveInGetErrorTextA(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + waveInGetErrorTextA(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn waveInGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInGetErrorTextW(mmrerror : u32, psztext : windows_core::PWSTR, cchtext : u32) -> u32); - waveInGetErrorTextW(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + waveInGetErrorTextW(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn waveInGetID(hwi: HWAVEIN, pudeviceid: *const u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInGetID(hwi : HWAVEIN, pudeviceid : *const u32) -> u32); - waveInGetID(core::mem::transmute(hwi), core::mem::transmute(pudeviceid)) + waveInGetID(hwi, pudeviceid) } #[inline] pub unsafe fn waveInGetNumDevs() -> u32 { @@ -683,77 +683,77 @@ pub unsafe fn waveInGetNumDevs() -> u32 { #[inline] pub unsafe fn waveInGetPosition(hwi: HWAVEIN, pmmt: *mut super::MMTIME, cbmmt: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInGetPosition(hwi : HWAVEIN, pmmt : *mut super:: MMTIME, cbmmt : u32) -> u32); - waveInGetPosition(core::mem::transmute(hwi), core::mem::transmute(pmmt), core::mem::transmute(cbmmt)) + waveInGetPosition(hwi, core::mem::transmute(pmmt), cbmmt) } #[inline] pub unsafe fn waveInMessage(hwi: Option, umsg: u32, dw1: Option, dw2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInMessage(hwi : HWAVEIN, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - waveInMessage(core::mem::transmute(hwi.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) + waveInMessage(core::mem::transmute(hwi.unwrap_or(core::mem::zeroed())), umsg, core::mem::transmute(dw1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dw2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn waveInOpen(phwi: Option<*mut HWAVEIN>, udeviceid: u32, pwfx: *const WAVEFORMATEX, dwcallback: Option, dwinstance: Option, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInOpen(phwi : *mut HWAVEIN, udeviceid : u32, pwfx : *const WAVEFORMATEX, dwcallback : usize, dwinstance : usize, fdwopen : MIDI_WAVE_OPEN_TYPE) -> u32); - waveInOpen(core::mem::transmute(phwi.unwrap_or(core::mem::zeroed())), core::mem::transmute(udeviceid), core::mem::transmute(pwfx), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + waveInOpen(core::mem::transmute(phwi.unwrap_or(core::mem::zeroed())), udeviceid, pwfx, core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn waveInPrepareHeader(hwi: HWAVEIN, pwh: *mut WAVEHDR, cbwh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInPrepareHeader(hwi : HWAVEIN, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveInPrepareHeader(core::mem::transmute(hwi), core::mem::transmute(pwh), core::mem::transmute(cbwh)) + waveInPrepareHeader(hwi, core::mem::transmute(pwh), cbwh) } #[inline] pub unsafe fn waveInReset(hwi: HWAVEIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInReset(hwi : HWAVEIN) -> u32); - waveInReset(core::mem::transmute(hwi)) + waveInReset(hwi) } #[inline] pub unsafe fn waveInStart(hwi: HWAVEIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInStart(hwi : HWAVEIN) -> u32); - waveInStart(core::mem::transmute(hwi)) + waveInStart(hwi) } #[inline] pub unsafe fn waveInStop(hwi: HWAVEIN) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInStop(hwi : HWAVEIN) -> u32); - waveInStop(core::mem::transmute(hwi)) + waveInStop(hwi) } #[inline] pub unsafe fn waveInUnprepareHeader(hwi: HWAVEIN, pwh: *mut WAVEHDR, cbwh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveInUnprepareHeader(hwi : HWAVEIN, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveInUnprepareHeader(core::mem::transmute(hwi), core::mem::transmute(pwh), core::mem::transmute(cbwh)) + waveInUnprepareHeader(hwi, core::mem::transmute(pwh), cbwh) } #[inline] pub unsafe fn waveOutBreakLoop(hwo: HWAVEOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutBreakLoop(hwo : HWAVEOUT) -> u32); - waveOutBreakLoop(core::mem::transmute(hwo)) + waveOutBreakLoop(hwo) } #[inline] pub unsafe fn waveOutClose(hwo: HWAVEOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutClose(hwo : HWAVEOUT) -> u32); - waveOutClose(core::mem::transmute(hwo)) + waveOutClose(hwo) } #[inline] pub unsafe fn waveOutGetDevCapsA(udeviceid: usize, pwoc: *mut WAVEOUTCAPSA, cbwoc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetDevCapsA(udeviceid : usize, pwoc : *mut WAVEOUTCAPSA, cbwoc : u32) -> u32); - waveOutGetDevCapsA(core::mem::transmute(udeviceid), core::mem::transmute(pwoc), core::mem::transmute(cbwoc)) + waveOutGetDevCapsA(udeviceid, core::mem::transmute(pwoc), cbwoc) } #[inline] pub unsafe fn waveOutGetDevCapsW(udeviceid: usize, pwoc: *mut WAVEOUTCAPSW, cbwoc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetDevCapsW(udeviceid : usize, pwoc : *mut WAVEOUTCAPSW, cbwoc : u32) -> u32); - waveOutGetDevCapsW(core::mem::transmute(udeviceid), core::mem::transmute(pwoc), core::mem::transmute(cbwoc)) + waveOutGetDevCapsW(udeviceid, core::mem::transmute(pwoc), cbwoc) } #[inline] pub unsafe fn waveOutGetErrorTextA(mmrerror: u32, psztext: &mut [u8]) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetErrorTextA(mmrerror : u32, psztext : windows_core::PSTR, cchtext : u32) -> u32); - waveOutGetErrorTextA(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + waveOutGetErrorTextA(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn waveOutGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetErrorTextW(mmrerror : u32, psztext : windows_core::PWSTR, cchtext : u32) -> u32); - waveOutGetErrorTextW(core::mem::transmute(mmrerror), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + waveOutGetErrorTextW(mmrerror, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn waveOutGetID(hwo: HWAVEOUT, pudeviceid: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetID(hwo : HWAVEOUT, pudeviceid : *mut u32) -> u32); - waveOutGetID(core::mem::transmute(hwo), core::mem::transmute(pudeviceid)) + waveOutGetID(hwo, core::mem::transmute(pudeviceid)) } #[inline] pub unsafe fn waveOutGetNumDevs() -> u32 { @@ -763,17 +763,17 @@ pub unsafe fn waveOutGetNumDevs() -> u32 { #[inline] pub unsafe fn waveOutGetPitch(hwo: HWAVEOUT, pdwpitch: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetPitch(hwo : HWAVEOUT, pdwpitch : *mut u32) -> u32); - waveOutGetPitch(core::mem::transmute(hwo), core::mem::transmute(pdwpitch)) + waveOutGetPitch(hwo, core::mem::transmute(pdwpitch)) } #[inline] pub unsafe fn waveOutGetPlaybackRate(hwo: HWAVEOUT, pdwrate: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetPlaybackRate(hwo : HWAVEOUT, pdwrate : *mut u32) -> u32); - waveOutGetPlaybackRate(core::mem::transmute(hwo), core::mem::transmute(pdwrate)) + waveOutGetPlaybackRate(hwo, core::mem::transmute(pdwrate)) } #[inline] pub unsafe fn waveOutGetPosition(hwo: HWAVEOUT, pmmt: *mut super::MMTIME, cbmmt: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutGetPosition(hwo : HWAVEOUT, pmmt : *mut super:: MMTIME, cbmmt : u32) -> u32); - waveOutGetPosition(core::mem::transmute(hwo), core::mem::transmute(pmmt), core::mem::transmute(cbmmt)) + waveOutGetPosition(hwo, core::mem::transmute(pmmt), cbmmt) } #[inline] pub unsafe fn waveOutGetVolume(hwo: Option, pdwvolume: *mut u32) -> u32 { @@ -783,57 +783,57 @@ pub unsafe fn waveOutGetVolume(hwo: Option, pdwvolume: *mut u32) -> u3 #[inline] pub unsafe fn waveOutMessage(hwo: Option, umsg: u32, dw1: usize, dw2: usize) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutMessage(hwo : HWAVEOUT, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - waveOutMessage(core::mem::transmute(hwo.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(dw1), core::mem::transmute(dw2)) + waveOutMessage(core::mem::transmute(hwo.unwrap_or(core::mem::zeroed())), umsg, dw1, dw2) } #[inline] pub unsafe fn waveOutOpen(phwo: Option<*mut HWAVEOUT>, udeviceid: u32, pwfx: *const WAVEFORMATEX, dwcallback: Option, dwinstance: Option, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutOpen(phwo : *mut HWAVEOUT, udeviceid : u32, pwfx : *const WAVEFORMATEX, dwcallback : usize, dwinstance : usize, fdwopen : MIDI_WAVE_OPEN_TYPE) -> u32); - waveOutOpen(core::mem::transmute(phwo.unwrap_or(core::mem::zeroed())), core::mem::transmute(udeviceid), core::mem::transmute(pwfx), core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + waveOutOpen(core::mem::transmute(phwo.unwrap_or(core::mem::zeroed())), udeviceid, pwfx, core::mem::transmute(dwcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinstance.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn waveOutPause(hwo: HWAVEOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutPause(hwo : HWAVEOUT) -> u32); - waveOutPause(core::mem::transmute(hwo)) + waveOutPause(hwo) } #[inline] pub unsafe fn waveOutPrepareHeader(hwo: HWAVEOUT, pwh: *mut WAVEHDR, cbwh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutPrepareHeader(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveOutPrepareHeader(core::mem::transmute(hwo), core::mem::transmute(pwh), core::mem::transmute(cbwh)) + waveOutPrepareHeader(hwo, core::mem::transmute(pwh), cbwh) } #[inline] pub unsafe fn waveOutReset(hwo: HWAVEOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutReset(hwo : HWAVEOUT) -> u32); - waveOutReset(core::mem::transmute(hwo)) + waveOutReset(hwo) } #[inline] pub unsafe fn waveOutRestart(hwo: HWAVEOUT) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutRestart(hwo : HWAVEOUT) -> u32); - waveOutRestart(core::mem::transmute(hwo)) + waveOutRestart(hwo) } #[inline] pub unsafe fn waveOutSetPitch(hwo: HWAVEOUT, dwpitch: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutSetPitch(hwo : HWAVEOUT, dwpitch : u32) -> u32); - waveOutSetPitch(core::mem::transmute(hwo), core::mem::transmute(dwpitch)) + waveOutSetPitch(hwo, dwpitch) } #[inline] pub unsafe fn waveOutSetPlaybackRate(hwo: HWAVEOUT, dwrate: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutSetPlaybackRate(hwo : HWAVEOUT, dwrate : u32) -> u32); - waveOutSetPlaybackRate(core::mem::transmute(hwo), core::mem::transmute(dwrate)) + waveOutSetPlaybackRate(hwo, dwrate) } #[inline] pub unsafe fn waveOutSetVolume(hwo: Option, dwvolume: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutSetVolume(hwo : HWAVEOUT, dwvolume : u32) -> u32); - waveOutSetVolume(core::mem::transmute(hwo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwvolume)) + waveOutSetVolume(core::mem::transmute(hwo.unwrap_or(core::mem::zeroed())), dwvolume) } #[inline] pub unsafe fn waveOutUnprepareHeader(hwo: HWAVEOUT, pwh: *mut WAVEHDR, cbwh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutUnprepareHeader(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveOutUnprepareHeader(core::mem::transmute(hwo), core::mem::transmute(pwh), core::mem::transmute(cbwh)) + waveOutUnprepareHeader(hwo, core::mem::transmute(pwh), cbwh) } #[inline] pub unsafe fn waveOutWrite(hwo: HWAVEOUT, pwh: *mut WAVEHDR, cbwh: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn waveOutWrite(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveOutWrite(core::mem::transmute(hwo), core::mem::transmute(pwh), core::mem::transmute(cbwh)) + waveOutWrite(hwo, core::mem::transmute(pwh), cbwh) } pub const ACMDM_DRIVER_ABOUT: u32 = 24587u32; pub const ACMDM_DRIVER_DETAILS: u32 = 24586u32; @@ -2295,7 +2295,7 @@ impl IAudioAmbisonicsControl { (windows_core::Interface::vtable(self).GetHeadTracking)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRotation(&self, x: f32, y: f32, z: f32, w: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), x, y, z, w).ok() } } #[repr(C)] @@ -2426,7 +2426,7 @@ impl IAudioCaptureClient { (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdata), core::mem::transmute(pnumframestoread), core::mem::transmute(pdwflags), core::mem::transmute(pu64deviceposition.unwrap_or(core::mem::zeroed())), core::mem::transmute(pu64qpcposition.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReleaseBuffer(&self, numframesread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(numframesread)).ok() + (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), numframesread).ok() } pub unsafe fn GetNextPacketSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2481,7 +2481,7 @@ windows_core::imp::define_interface!(IAudioChannelConfig, IAudioChannelConfig_Vt windows_core::imp::interface_hierarchy!(IAudioChannelConfig, windows_core::IUnknown); impl IAudioChannelConfig { pub unsafe fn SetChannelConfig(&self, dwconfig: u32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconfig), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetChannelConfig)(windows_core::Interface::as_raw(self), dwconfig, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetChannelConfig(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2529,7 +2529,7 @@ windows_core::imp::define_interface!(IAudioClient, IAudioClient_Vtbl, 0x1cb9ad4c windows_core::imp::interface_hierarchy!(IAudioClient, windows_core::IUnknown); impl IAudioClient { pub unsafe fn Initialize(&self, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(sharemode), core::mem::transmute(streamflags), core::mem::transmute(hnsbufferduration), core::mem::transmute(hnsperiodicity), core::mem::transmute(pformat), core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), sharemode, streamflags, hnsbufferduration, hnsperiodicity, pformat, core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetBufferSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2544,7 +2544,7 @@ impl IAudioClient { (windows_core::Interface::vtable(self).GetCurrentPadding)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn IsFormatSupported(&self, sharemode: AUDCLNT_SHAREMODE, pformat: *const WAVEFORMATEX, ppclosestmatch: Option<*mut *mut WAVEFORMATEX>) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(sharemode), core::mem::transmute(pformat), core::mem::transmute(ppclosestmatch.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), sharemode, pformat, core::mem::transmute(ppclosestmatch.unwrap_or(core::mem::zeroed()))) } pub unsafe fn GetMixFormat(&self) -> windows_core::Result<*mut WAVEFORMATEX> { let mut result__ = core::mem::zeroed(); @@ -2563,7 +2563,7 @@ impl IAudioClient { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetEventHandle(&self, eventhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(eventhandle)).ok() + (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle).ok() } pub unsafe fn GetService(&self) -> windows_core::Result where @@ -2709,13 +2709,13 @@ windows_core::imp::interface_hierarchy!(IAudioClient2, windows_core::IUnknown, I impl IAudioClient2 { pub unsafe fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsOffloadCapable)(windows_core::Interface::as_raw(self), core::mem::transmute(category), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsOffloadCapable)(windows_core::Interface::as_raw(self), category, &mut result__).map(|| result__) } pub unsafe fn SetClientProperties(&self, pproperties: *const AudioClientProperties) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pproperties)).ok() + (windows_core::Interface::vtable(self).SetClientProperties)(windows_core::Interface::as_raw(self), pproperties).ok() } pub unsafe fn GetBufferSizeLimits(&self, pformat: *const WAVEFORMATEX, beventdriven: bool, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBufferSizeLimits)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat), beventdriven.into(), core::mem::transmute(phnsminbufferduration), core::mem::transmute(phnsmaxbufferduration)).ok() + (windows_core::Interface::vtable(self).GetBufferSizeLimits)(windows_core::Interface::as_raw(self), pformat, beventdriven.into(), core::mem::transmute(phnsminbufferduration), core::mem::transmute(phnsmaxbufferduration)).ok() } } #[repr(C)] @@ -2772,13 +2772,13 @@ impl core::ops::Deref for IAudioClient3 { windows_core::imp::interface_hierarchy!(IAudioClient3, windows_core::IUnknown, IAudioClient, IAudioClient2); impl IAudioClient3 { pub unsafe fn GetSharedModeEnginePeriod(&self, pformat: *const WAVEFORMATEX, pdefaultperiodinframes: *mut u32, pfundamentalperiodinframes: *mut u32, pminperiodinframes: *mut u32, pmaxperiodinframes: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSharedModeEnginePeriod)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat), core::mem::transmute(pdefaultperiodinframes), core::mem::transmute(pfundamentalperiodinframes), core::mem::transmute(pminperiodinframes), core::mem::transmute(pmaxperiodinframes)).ok() + (windows_core::Interface::vtable(self).GetSharedModeEnginePeriod)(windows_core::Interface::as_raw(self), pformat, core::mem::transmute(pdefaultperiodinframes), core::mem::transmute(pfundamentalperiodinframes), core::mem::transmute(pminperiodinframes), core::mem::transmute(pmaxperiodinframes)).ok() } pub unsafe fn GetCurrentSharedModeEnginePeriod(&self, ppformat: *mut *mut WAVEFORMATEX, pcurrentperiodinframes: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentSharedModeEnginePeriod)(windows_core::Interface::as_raw(self), core::mem::transmute(ppformat), core::mem::transmute(pcurrentperiodinframes)).ok() } pub unsafe fn InitializeSharedAudioStream(&self, streamflags: u32, periodinframes: u32, pformat: *const WAVEFORMATEX, audiosessionguid: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeSharedAudioStream)(windows_core::Interface::as_raw(self), core::mem::transmute(streamflags), core::mem::transmute(periodinframes), core::mem::transmute(pformat), core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).InitializeSharedAudioStream)(windows_core::Interface::as_raw(self), streamflags, periodinframes, pformat, core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -2823,7 +2823,7 @@ windows_core::imp::define_interface!(IAudioClientDuckingControl, IAudioClientDuc windows_core::imp::interface_hierarchy!(IAudioClientDuckingControl, windows_core::IUnknown); impl IAudioClientDuckingControl { pub unsafe fn SetDuckingOptionsForCurrentStream(&self, options: AUDIO_DUCKING_OPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDuckingOptionsForCurrentStream)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetDuckingOptionsForCurrentStream)(windows_core::Interface::as_raw(self), options).ok() } } #[repr(C)] @@ -2947,7 +2947,7 @@ windows_core::imp::define_interface!(IAudioClockAdjustment, IAudioClockAdjustmen windows_core::imp::interface_hierarchy!(IAudioClockAdjustment, windows_core::IUnknown); impl IAudioClockAdjustment { pub unsafe fn SetSampleRate(&self, flsamplerate: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleRate)(windows_core::Interface::as_raw(self), core::mem::transmute(flsamplerate)).ok() + (windows_core::Interface::vtable(self).SetSampleRate)(windows_core::Interface::as_raw(self), flsamplerate).ok() } } #[repr(C)] @@ -3018,7 +3018,7 @@ impl IAudioEffectsManager { (windows_core::Interface::vtable(self).GetAudioEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(effects), core::mem::transmute(numeffects)).ok() } pub unsafe fn SetAudioEffectState(&self, effectid: windows_core::GUID, state: AUDIO_EFFECT_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioEffectState)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetAudioEffectState)(windows_core::Interface::as_raw(self), core::mem::transmute(effectid), state).ok() } } #[repr(C)] @@ -3075,7 +3075,7 @@ impl IAudioFormatEnumerator { } pub unsafe fn GetFormat(&self, index: u32) -> windows_core::Result<*mut WAVEFORMATEX> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } } #[repr(C)] @@ -3125,7 +3125,7 @@ impl IAudioInputSelector { (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelection(&self, nidselect: u32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(nidselect), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), nidselect, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -3287,7 +3287,7 @@ impl IAudioOutputSelector { (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelection(&self, nidselect: u32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(nidselect), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), nidselect, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -3336,7 +3336,7 @@ impl IAudioPeakMeter { } pub unsafe fn GetLevel(&self, nchannel: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLevel)(windows_core::Interface::as_raw(self), nchannel, &mut result__).map(|| result__) } } #[repr(C)] @@ -3387,10 +3387,10 @@ windows_core::imp::interface_hierarchy!(IAudioRenderClient, windows_core::IUnkno impl IAudioRenderClient { pub unsafe fn GetBuffer(&self, numframesrequested: u32) -> windows_core::Result<*mut u8> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(numframesrequested), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), numframesrequested, &mut result__).map(|| result__) } pub unsafe fn ReleaseBuffer(&self, numframeswritten: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(numframeswritten), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), numframeswritten, dwflags).ok() } } #[repr(C)] @@ -3445,7 +3445,7 @@ impl IAudioSessionControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), value.param().abi(), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), value.param().abi(), eventcontext).ok() } pub unsafe fn GetIconPath(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3455,14 +3455,14 @@ impl IAudioSessionControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconPath)(windows_core::Interface::as_raw(self), value.param().abi(), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetIconPath)(windows_core::Interface::as_raw(self), value.param().abi(), eventcontext).ok() } pub unsafe fn GetGroupingParam(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetGroupingParam)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGroupingParam(&self, r#override: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupingParam)(windows_core::Interface::as_raw(self), core::mem::transmute(r#override), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetGroupingParam)(windows_core::Interface::as_raw(self), r#override, eventcontext).ok() } pub unsafe fn RegisterAudioSessionNotification(&self, newnotifications: P0) -> windows_core::Result<()> where @@ -3688,7 +3688,7 @@ impl IAudioSessionEnumerator { } pub unsafe fn GetSession(&self, sessioncount: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSession)(windows_core::Interface::as_raw(self), core::mem::transmute(sessioncount), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSession)(windows_core::Interface::as_raw(self), sessioncount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3741,28 +3741,28 @@ impl IAudioSessionEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisplayNameChanged)(windows_core::Interface::as_raw(self), newdisplayname.param().abi(), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).OnDisplayNameChanged)(windows_core::Interface::as_raw(self), newdisplayname.param().abi(), eventcontext).ok() } pub unsafe fn OnIconPathChanged(&self, newiconpath: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIconPathChanged)(windows_core::Interface::as_raw(self), newiconpath.param().abi(), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).OnIconPathChanged)(windows_core::Interface::as_raw(self), newiconpath.param().abi(), eventcontext).ok() } pub unsafe fn OnSimpleVolumeChanged(&self, newvolume: f32, newmute: bool, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSimpleVolumeChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newvolume), newmute.into(), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).OnSimpleVolumeChanged)(windows_core::Interface::as_raw(self), newvolume, newmute.into(), eventcontext).ok() } pub unsafe fn OnChannelVolumeChanged(&self, newchannelvolumearray: &[f32], changedchannel: u32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChannelVolumeChanged)(windows_core::Interface::as_raw(self), newchannelvolumearray.len().try_into().unwrap(), core::mem::transmute(newchannelvolumearray.as_ptr()), core::mem::transmute(changedchannel), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).OnChannelVolumeChanged)(windows_core::Interface::as_raw(self), newchannelvolumearray.len().try_into().unwrap(), core::mem::transmute(newchannelvolumearray.as_ptr()), changedchannel, eventcontext).ok() } pub unsafe fn OnGroupingParamChanged(&self, newgroupingparam: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnGroupingParamChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newgroupingparam), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).OnGroupingParamChanged)(windows_core::Interface::as_raw(self), newgroupingparam, eventcontext).ok() } pub unsafe fn OnStateChanged(&self, newstate: AudioSessionState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), newstate).ok() } pub unsafe fn OnSessionDisconnected(&self, disconnectreason: AudioSessionDisconnectReason) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSessionDisconnected)(windows_core::Interface::as_raw(self), core::mem::transmute(disconnectreason)).ok() + (windows_core::Interface::vtable(self).OnSessionDisconnected)(windows_core::Interface::as_raw(self), disconnectreason).ok() } } #[repr(C)] @@ -3836,11 +3836,11 @@ windows_core::imp::interface_hierarchy!(IAudioSessionManager, windows_core::IUnk impl IAudioSessionManager { pub unsafe fn GetAudioSessionControl(&self, audiosessionguid: Option<*const windows_core::GUID>, streamflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudioSessionControl)(windows_core::Interface::as_raw(self), core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(streamflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAudioSessionControl)(windows_core::Interface::as_raw(self), core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed())), streamflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSimpleAudioVolume(&self, audiosessionguid: Option<*const windows_core::GUID>, streamflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSimpleAudioVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(streamflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSimpleAudioVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(audiosessionguid.unwrap_or(core::mem::zeroed())), streamflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4019,10 +4019,10 @@ windows_core::imp::interface_hierarchy!(IAudioStateMonitor, windows_core::IUnkno impl IAudioStateMonitor { pub unsafe fn RegisterCallback(&self, callback: PAudioStateMonitorCallback, context: Option<*const core::ffi::c_void>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterCallback)(windows_core::Interface::as_raw(self), callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } pub unsafe fn UnregisterCallback(&self, registration: i64) { - (windows_core::Interface::vtable(self).UnregisterCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(registration)) + (windows_core::Interface::vtable(self).UnregisterCallback)(windows_core::Interface::as_raw(self), registration) } pub unsafe fn GetSoundLevel(&self) -> AudioStateMonitorSoundLevel { (windows_core::Interface::vtable(self).GetSoundLevel)(windows_core::Interface::as_raw(self)) @@ -4080,11 +4080,11 @@ impl IAudioStreamVolume { (windows_core::Interface::vtable(self).GetChannelCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannelVolume(&self, dwindex: u32, flevel: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(flevel)).ok() + (windows_core::Interface::vtable(self).SetChannelVolume)(windows_core::Interface::as_raw(self), dwindex, flevel).ok() } pub unsafe fn GetChannelVolume(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChannelVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetChannelVolume)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn SetAllVolumes(&self, pfvolumes: &[f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAllVolumes)(windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), core::mem::transmute(pfvolumes.as_ptr())).ok() @@ -4161,7 +4161,7 @@ windows_core::imp::define_interface!(IAudioSystemEffectsPropertyChangeNotificati windows_core::imp::interface_hierarchy!(IAudioSystemEffectsPropertyChangeNotificationClient, windows_core::IUnknown); impl IAudioSystemEffectsPropertyChangeNotificationClient { pub unsafe fn OnPropertyChanged(&self, r#type: AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE, key: super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnPropertyChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).OnPropertyChanged)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(key)).ok() } } #[repr(C)] @@ -4191,17 +4191,17 @@ impl IAudioSystemEffectsPropertyStore { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn OpenDefaultPropertyStore(&self, stgmaccess: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenDefaultPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(stgmaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenDefaultPropertyStore)(windows_core::Interface::as_raw(self), stgmaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn OpenUserPropertyStore(&self, stgmaccess: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenUserPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(stgmaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenUserPropertyStore)(windows_core::Interface::as_raw(self), stgmaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn OpenVolatilePropertyStore(&self, stgmaccess: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenVolatilePropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(stgmaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenVolatilePropertyStore)(windows_core::Interface::as_raw(self), stgmaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ResetUserPropertyStore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetUserPropertyStore)(windows_core::Interface::as_raw(self)).ok() @@ -4344,7 +4344,7 @@ windows_core::imp::define_interface!(IAudioViewManagerService, IAudioViewManager windows_core::imp::interface_hierarchy!(IAudioViewManagerService, windows_core::IUnknown); impl IAudioViewManagerService { pub unsafe fn SetAudioStreamWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioStreamWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetAudioStreamWindow)(windows_core::Interface::as_raw(self), hwnd).ok() } } #[repr(C)] @@ -4375,7 +4375,7 @@ impl IAudioVolumeDuckNotification { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnVolumeDuckNotification)(windows_core::Interface::as_raw(self), sessionid.param().abi(), core::mem::transmute(countcommunicationsessions)).ok() + (windows_core::Interface::vtable(self).OnVolumeDuckNotification)(windows_core::Interface::as_raw(self), sessionid.param().abi(), countcommunicationsessions).ok() } pub unsafe fn OnVolumeUnduckNotification(&self, sessionid: P0) -> windows_core::Result<()> where @@ -4445,14 +4445,14 @@ impl IChannelAudioVolume { (windows_core::Interface::vtable(self).GetChannelCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannelVolume(&self, dwindex: u32, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(flevel), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetChannelVolume)(windows_core::Interface::as_raw(self), dwindex, flevel, eventcontext).ok() } pub unsafe fn GetChannelVolume(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChannelVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetChannelVolume)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn SetAllVolumes(&self, pfvolumes: &[f32], eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllVolumes)(windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), core::mem::transmute(pfvolumes.as_ptr()), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetAllVolumes)(windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), core::mem::transmute(pfvolumes.as_ptr()), eventcontext).ok() } pub unsafe fn GetAllVolumes(&self, pfvolumes: &mut [f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllVolumes)(windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), core::mem::transmute(pfvolumes.as_ptr())).ok() @@ -4672,7 +4672,7 @@ windows_core::imp::define_interface!(IControlChangeNotify, IControlChangeNotify_ windows_core::imp::interface_hierarchy!(IControlChangeNotify, windows_core::IUnknown); impl IControlChangeNotify { pub unsafe fn OnNotify(&self, dwsenderprocessid: u32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsenderprocessid), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OnNotify)(windows_core::Interface::as_raw(self), dwsenderprocessid, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -4758,7 +4758,7 @@ impl IDeviceSpecificProperty { (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvvalue), core::mem::transmute(pcbvalue)).ok() } pub unsafe fn SetValue(&self, pvvalue: *const core::ffi::c_void, cbvalue: u32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvvalue), core::mem::transmute(cbvalue), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), pvvalue, cbvalue, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Get4BRange(&self, plmin: *mut i32, plmax: *mut i32, plstepping: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Get4BRange)(windows_core::Interface::as_raw(self), core::mem::transmute(plmin), core::mem::transmute(plmax), core::mem::transmute(plstepping)).ok() @@ -4824,7 +4824,7 @@ impl IDeviceTopology { } pub unsafe fn GetConnector(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConnector)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConnector)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSubunitCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4832,11 +4832,11 @@ impl IDeviceTopology { } pub unsafe fn GetSubunit(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubunit)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubunit)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPartById(&self, nid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartById)(windows_core::Interface::as_raw(self), core::mem::transmute(nid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPartById)(windows_core::Interface::as_raw(self), nid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDeviceId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4968,12 +4968,12 @@ impl IMMDevice { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), &T::IID, core::mem::transmute(dwclsctx), core::mem::transmute(pactivationparams.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), &T::IID, dwclsctx, core::mem::transmute(pactivationparams.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn OpenPropertyStore(&self, stgmaccess: super::super::System::Com::STGM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(stgmaccess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenPropertyStore)(windows_core::Interface::as_raw(self), stgmaccess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5064,7 +5064,7 @@ impl IMMDeviceActivator { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), pdevice.param().abi(), core::mem::transmute(pactivationparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppinterface)).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), iid, pdevice.param().abi(), core::mem::transmute(pactivationparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppinterface)).ok() } } #[repr(C)] @@ -5103,7 +5103,7 @@ impl IMMDeviceCollection { } pub unsafe fn Item(&self, ndevice: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(ndevice), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), ndevice, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5150,11 +5150,11 @@ windows_core::imp::interface_hierarchy!(IMMDeviceEnumerator, windows_core::IUnkn impl IMMDeviceEnumerator { pub unsafe fn EnumAudioEndpoints(&self, dataflow: EDataFlow, dwstatemask: DEVICE_STATE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAudioEndpoints)(windows_core::Interface::as_raw(self), core::mem::transmute(dataflow), core::mem::transmute(dwstatemask), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumAudioEndpoints)(windows_core::Interface::as_raw(self), dataflow, dwstatemask, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultAudioEndpoint(&self, dataflow: EDataFlow, role: ERole) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultAudioEndpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(dataflow), core::mem::transmute(role), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultAudioEndpoint)(windows_core::Interface::as_raw(self), dataflow, role, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDevice(&self, pwstrid: P0) -> windows_core::Result where @@ -5288,7 +5288,7 @@ impl IMMNotificationClient { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeviceStateChanged)(windows_core::Interface::as_raw(self), pwstrdeviceid.param().abi(), core::mem::transmute(dwnewstate)).ok() + (windows_core::Interface::vtable(self).OnDeviceStateChanged)(windows_core::Interface::as_raw(self), pwstrdeviceid.param().abi(), dwnewstate).ok() } pub unsafe fn OnDeviceAdded(&self, pwstrdeviceid: P0) -> windows_core::Result<()> where @@ -5306,7 +5306,7 @@ impl IMMNotificationClient { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDefaultDeviceChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(flow), core::mem::transmute(role), pwstrdefaultdeviceid.param().abi()).ok() + (windows_core::Interface::vtable(self).OnDefaultDeviceChanged)(windows_core::Interface::as_raw(self), flow, role, pwstrdefaultdeviceid.param().abi()).ok() } pub unsafe fn OnPropertyValueChanged(&self, pwstrdeviceid: P0, key: super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> where @@ -5372,13 +5372,13 @@ windows_core::imp::interface_hierarchy!(IMessageFilter, windows_core::IUnknown); impl IMessageFilter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn HandleInComingCall(&self, dwcalltype: u32, htaskcaller: super::HTASK, dwtickcount: u32, lpinterfaceinfo: Option<*const super::super::System::Com::INTERFACEINFO>) -> u32 { - (windows_core::Interface::vtable(self).HandleInComingCall)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcalltype), core::mem::transmute(htaskcaller), core::mem::transmute(dwtickcount), core::mem::transmute(lpinterfaceinfo.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).HandleInComingCall)(windows_core::Interface::as_raw(self), dwcalltype, htaskcaller, dwtickcount, core::mem::transmute(lpinterfaceinfo.unwrap_or(core::mem::zeroed()))) } pub unsafe fn RetryRejectedCall(&self, htaskcallee: super::HTASK, dwtickcount: u32, dwrejecttype: u32) -> u32 { - (windows_core::Interface::vtable(self).RetryRejectedCall)(windows_core::Interface::as_raw(self), core::mem::transmute(htaskcallee), core::mem::transmute(dwtickcount), core::mem::transmute(dwrejecttype)) + (windows_core::Interface::vtable(self).RetryRejectedCall)(windows_core::Interface::as_raw(self), htaskcallee, dwtickcount, dwrejecttype) } pub unsafe fn MessagePending(&self, htaskcallee: super::HTASK, dwtickcount: u32, dwpendingtype: u32) -> u32 { - (windows_core::Interface::vtable(self).MessagePending)(windows_core::Interface::as_raw(self), core::mem::transmute(htaskcallee), core::mem::transmute(dwtickcount), core::mem::transmute(dwpendingtype)) + (windows_core::Interface::vtable(self).MessagePending)(windows_core::Interface::as_raw(self), htaskcallee, dwtickcount, dwpendingtype) } } #[repr(C)] @@ -5454,7 +5454,7 @@ impl IPart { } pub unsafe fn GetControlInterface(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControlInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetControlInterface)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumPartsIncoming(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5469,13 +5469,13 @@ impl IPart { (windows_core::Interface::vtable(self).GetTopologyObject)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Activate(&self, dwclscontext: u32, refiid: *const windows_core::GUID, ppvobject: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclscontext), core::mem::transmute(refiid), core::mem::transmute(ppvobject.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), dwclscontext, refiid, core::mem::transmute(ppvobject.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RegisterControlChangeCallback(&self, riid: *const windows_core::GUID, pnotify: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterControlChangeCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), pnotify.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterControlChangeCallback)(windows_core::Interface::as_raw(self), riid, pnotify.param().abi()).ok() } pub unsafe fn UnregisterControlChangeCallback(&self, pnotify: P0) -> windows_core::Result<()> where @@ -5661,7 +5661,7 @@ impl IPartsList { } pub unsafe fn GetPart(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPart)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPart)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5711,17 +5711,17 @@ impl IPerChannelDbLevel { (windows_core::Interface::vtable(self).GetChannelCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetLevelRange(&self, nchannel: u32, pfminleveldb: *mut f32, pfmaxleveldb: *mut f32, pfstepping: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLevelRange)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), core::mem::transmute(pfminleveldb), core::mem::transmute(pfmaxleveldb), core::mem::transmute(pfstepping)).ok() + (windows_core::Interface::vtable(self).GetLevelRange)(windows_core::Interface::as_raw(self), nchannel, core::mem::transmute(pfminleveldb), core::mem::transmute(pfmaxleveldb), core::mem::transmute(pfstepping)).ok() } pub unsafe fn GetLevel(&self, nchannel: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLevel)(windows_core::Interface::as_raw(self), nchannel, &mut result__).map(|| result__) } pub unsafe fn SetLevel(&self, nchannel: u32, fleveldb: f32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), core::mem::transmute(fleveldb), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetLevel)(windows_core::Interface::as_raw(self), nchannel, fleveldb, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetLevelUniform(&self, fleveldb: f32, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLevelUniform)(windows_core::Interface::as_raw(self), core::mem::transmute(fleveldb), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetLevelUniform)(windows_core::Interface::as_raw(self), fleveldb, core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetLevelAllChannels(&self, alevelsdb: &[f32], pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLevelAllChannels)(windows_core::Interface::as_raw(self), core::mem::transmute(alevelsdb.as_ptr()), alevelsdb.len().try_into().unwrap(), core::mem::transmute(pguideventcontext.unwrap_or(core::mem::zeroed()))).ok() @@ -5802,14 +5802,14 @@ windows_core::imp::define_interface!(ISimpleAudioVolume, ISimpleAudioVolume_Vtbl windows_core::imp::interface_hierarchy!(ISimpleAudioVolume, windows_core::IUnknown); impl ISimpleAudioVolume { pub unsafe fn SetMasterVolume(&self, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMasterVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(flevel), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetMasterVolume)(windows_core::Interface::as_raw(self), flevel, eventcontext).ok() } pub unsafe fn GetMasterVolume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMasterVolume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMute(&self, bmute: bool, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into(), core::mem::transmute(eventcontext)).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into(), eventcontext).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5877,7 +5877,7 @@ windows_core::imp::define_interface!(ISpatialAudioClient, ISpatialAudioClient_Vt windows_core::imp::interface_hierarchy!(ISpatialAudioClient, windows_core::IUnknown); impl ISpatialAudioClient { pub unsafe fn GetStaticObjectPosition(&self, r#type: AudioObjectType, x: *mut f32, y: *mut f32, z: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStaticObjectPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)).ok() + (windows_core::Interface::vtable(self).GetStaticObjectPosition)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)).ok() } pub unsafe fn GetNativeStaticObjectTypeMask(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5893,14 +5893,14 @@ impl ISpatialAudioClient { } pub unsafe fn GetMaxFrameCount(&self, objectformat: *const WAVEFORMATEX) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxFrameCount)(windows_core::Interface::as_raw(self), core::mem::transmute(objectformat), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxFrameCount)(windows_core::Interface::as_raw(self), objectformat, &mut result__).map(|| result__) } pub unsafe fn IsAudioObjectFormatSupported(&self, objectformat: *const WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsAudioObjectFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(objectformat)).ok() + (windows_core::Interface::vtable(self).IsAudioObjectFormatSupported)(windows_core::Interface::as_raw(self), objectformat).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn IsSpatialAudioStreamAvailable(&self, streamuuid: *const windows_core::GUID, auxiliaryinfo: Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsSpatialAudioStreamAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(streamuuid), core::mem::transmute(auxiliaryinfo.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).IsSpatialAudioStreamAvailable)(windows_core::Interface::as_raw(self), streamuuid, core::mem::transmute(auxiliaryinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn ActivateSpatialAudioStream(&self, activationparams: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result @@ -6028,11 +6028,11 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioClient2, windows_core::IUnk impl ISpatialAudioClient2 { pub unsafe fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsOffloadCapable)(windows_core::Interface::as_raw(self), core::mem::transmute(category), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsOffloadCapable)(windows_core::Interface::as_raw(self), category, &mut result__).map(|| result__) } pub unsafe fn GetMaxFrameCountForCategory(&self, category: AUDIO_STREAM_CATEGORY, offloadenabled: bool, objectformat: *const WAVEFORMATEX) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxFrameCountForCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category), offloadenabled.into(), core::mem::transmute(objectformat), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxFrameCountForCategory)(windows_core::Interface::as_raw(self), category, offloadenabled.into(), objectformat, &mut result__).map(|| result__) } } #[repr(C)] @@ -6085,15 +6085,15 @@ windows_core::imp::define_interface!(ISpatialAudioMetadataClient, ISpatialAudioM windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataClient, windows_core::IUnknown); impl ISpatialAudioMetadataClient { pub unsafe fn ActivateSpatialAudioMetadataItems(&self, maxitemcount: u16, framecount: u16, metadataitemsbuffer: Option<*mut Option>, metadataitems: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateSpatialAudioMetadataItems)(windows_core::Interface::as_raw(self), core::mem::transmute(maxitemcount), core::mem::transmute(framecount), core::mem::transmute(metadataitemsbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(metadataitems)).ok() + (windows_core::Interface::vtable(self).ActivateSpatialAudioMetadataItems)(windows_core::Interface::as_raw(self), maxitemcount, framecount, core::mem::transmute(metadataitemsbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(metadataitems)).ok() } pub unsafe fn GetSpatialAudioMetadataItemsBufferLength(&self, maxitemcount: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSpatialAudioMetadataItemsBufferLength)(windows_core::Interface::as_raw(self), core::mem::transmute(maxitemcount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSpatialAudioMetadataItemsBufferLength)(windows_core::Interface::as_raw(self), maxitemcount, &mut result__).map(|| result__) } pub unsafe fn ActivateSpatialAudioMetadataWriter(&self, overflowmode: SpatialAudioMetadataWriterOverflowMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateSpatialAudioMetadataWriter)(windows_core::Interface::as_raw(self), core::mem::transmute(overflowmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivateSpatialAudioMetadataWriter)(windows_core::Interface::as_raw(self), overflowmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ActivateSpatialAudioMetadataCopier(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6194,7 +6194,7 @@ impl ISpatialAudioMetadataCopier { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyMetadataForFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(copyframecount), core::mem::transmute(copymode), dstmetadataitems.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CopyMetadataForFrames)(windows_core::Interface::as_raw(self), copyframecount, copymode, dstmetadataitems.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -6414,7 +6414,7 @@ impl ISpatialAudioMetadataReader { (windows_core::Interface::vtable(self).ReadNextItem)(windows_core::Interface::as_raw(self), core::mem::transmute(commandcount), core::mem::transmute(frameoffset)).ok() } pub unsafe fn ReadNextItemCommand(&self, commandid: *mut u8, valuebuffer: *mut core::ffi::c_void, maxvaluebufferlength: u32, valuebufferlength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadNextItemCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(valuebuffer), core::mem::transmute(maxvaluebufferlength), core::mem::transmute(valuebufferlength)).ok() + (windows_core::Interface::vtable(self).ReadNextItemCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(valuebuffer), maxvaluebufferlength, core::mem::transmute(valuebufferlength)).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -6475,10 +6475,10 @@ impl ISpatialAudioMetadataWriter { (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), metadataitems.param().abi()).ok() } pub unsafe fn WriteNextItem(&self, frameoffset: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteNextItem)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset)).ok() + (windows_core::Interface::vtable(self).WriteNextItem)(windows_core::Interface::as_raw(self), frameoffset).ok() } pub unsafe fn WriteNextItemCommand(&self, commandid: u8, valuebuffer: Option<*const core::ffi::c_void>, valuebufferlength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteNextItemCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(valuebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuebufferlength)).ok() + (windows_core::Interface::vtable(self).WriteNextItemCommand)(windows_core::Interface::as_raw(self), commandid, core::mem::transmute(valuebuffer.unwrap_or(core::mem::zeroed())), valuebufferlength).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -6539,10 +6539,10 @@ impl core::ops::Deref for ISpatialAudioObject { windows_core::imp::interface_hierarchy!(ISpatialAudioObject, windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObject { pub unsafe fn SetPosition(&self, x: f32, y: f32, z: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), x, y, z).ok() } pub unsafe fn SetVolume(&self, volume: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(volume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), volume).ok() } } #[repr(C)] @@ -6583,7 +6583,7 @@ impl ISpatialAudioObjectBase { (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), core::mem::transmute(bufferlength)).ok() } pub unsafe fn SetEndOfStream(&self, framecount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEndOfStream)(windows_core::Interface::as_raw(self), core::mem::transmute(framecount)).ok() + (windows_core::Interface::vtable(self).SetEndOfStream)(windows_core::Interface::as_raw(self), framecount).ok() } pub unsafe fn IsActive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6661,22 +6661,22 @@ impl core::ops::Deref for ISpatialAudioObjectForHrtf { windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForHrtf, windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObjectForHrtf { pub unsafe fn SetPosition(&self, x: f32, y: f32, z: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), x, y, z).ok() } pub unsafe fn SetGain(&self, gain: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGain)(windows_core::Interface::as_raw(self), core::mem::transmute(gain)).ok() + (windows_core::Interface::vtable(self).SetGain)(windows_core::Interface::as_raw(self), gain).ok() } pub unsafe fn SetOrientation(&self, orientation: *const *const f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(orientation)).ok() + (windows_core::Interface::vtable(self).SetOrientation)(windows_core::Interface::as_raw(self), orientation).ok() } pub unsafe fn SetEnvironment(&self, environment: SpatialAudioHrtfEnvironmentType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnvironment)(windows_core::Interface::as_raw(self), core::mem::transmute(environment)).ok() + (windows_core::Interface::vtable(self).SetEnvironment)(windows_core::Interface::as_raw(self), environment).ok() } pub unsafe fn SetDistanceDecay(&self, distancedecay: *const SpatialAudioHrtfDistanceDecay) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDistanceDecay)(windows_core::Interface::as_raw(self), core::mem::transmute(distancedecay)).ok() + (windows_core::Interface::vtable(self).SetDistanceDecay)(windows_core::Interface::as_raw(self), distancedecay).ok() } pub unsafe fn SetDirectivity(&self, directivity: *const SpatialAudioHrtfDirectivityUnion) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDirectivity)(windows_core::Interface::as_raw(self), core::mem::transmute(directivity)).ok() + (windows_core::Interface::vtable(self).SetDirectivity)(windows_core::Interface::as_raw(self), directivity).ok() } } #[repr(C)] @@ -6748,7 +6748,7 @@ impl core::ops::Deref for ISpatialAudioObjectForMetadataCommands { windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForMetadataCommands, windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObjectForMetadataCommands { pub unsafe fn WriteNextMetadataCommand(&self, commandid: u8, valuebuffer: Option<*const core::ffi::c_void>, valuebufferlength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteNextMetadataCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(valuebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuebufferlength)).ok() + (windows_core::Interface::vtable(self).WriteNextMetadataCommand)(windows_core::Interface::as_raw(self), commandid, core::mem::transmute(valuebuffer.unwrap_or(core::mem::zeroed())), valuebufferlength).ok() } } #[repr(C)] @@ -6824,7 +6824,7 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStream, windows impl ISpatialAudioObjectRenderStream { pub unsafe fn ActivateSpatialAudioObject(&self, r#type: AudioObjectType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateSpatialAudioObject)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivateSpatialAudioObject)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6970,7 +6970,7 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamForHrtf, impl ISpatialAudioObjectRenderStreamForHrtf { pub unsafe fn ActivateSpatialAudioObjectForHrtf(&self, r#type: AudioObjectType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForHrtf)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForHrtf)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7014,11 +7014,11 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamForMetada impl ISpatialAudioObjectRenderStreamForMetadata { pub unsafe fn ActivateSpatialAudioObjectForMetadataCommands(&self, r#type: AudioObjectType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForMetadataCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForMetadataCommands)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ActivateSpatialAudioObjectForMetadataItems(&self, r#type: AudioObjectType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForMetadataItems)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForMetadataItems)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7071,7 +7071,7 @@ impl ISpatialAudioObjectRenderStreamNotify { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAvailableDynamicObjectCountChange)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(hnscompliancedeadlinetime), core::mem::transmute(availabledynamicobjectcountchange)).ok() + (windows_core::Interface::vtable(self).OnAvailableDynamicObjectCountChange)(windows_core::Interface::as_raw(self), sender.param().abi(), hnscompliancedeadlinetime, availabledynamicobjectcountchange).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs index cd9c4b143f..fea284b11b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs @@ -8,7 +8,7 @@ windows_core::imp::define_interface!(IComponentAuthenticate, IComponentAuthentic windows_core::imp::interface_hierarchy!(IComponentAuthenticate, windows_core::IUnknown); impl IComponentAuthenticate { pub unsafe fn SACAuth(&self, dwprotocolid: u32, dwpass: u32, pbdatain: &[u8], ppbdataout: *mut *mut u8, pdwdataoutlen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SACAuth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprotocolid), core::mem::transmute(dwpass), core::mem::transmute(pbdatain.as_ptr()), pbdatain.len().try_into().unwrap(), core::mem::transmute(ppbdataout), core::mem::transmute(pdwdataoutlen)).ok() + (windows_core::Interface::vtable(self).SACAuth)(windows_core::Interface::as_raw(self), dwprotocolid, dwpass, core::mem::transmute(pbdatain.as_ptr()), pbdatain.len().try_into().unwrap(), core::mem::transmute(ppbdataout), core::mem::transmute(pdwdataoutlen)).ok() } pub unsafe fn SACGetProtocols(&self, ppdwprotocols: *mut *mut u32, pdwprotocolcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SACGetProtocols)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdwprotocols), core::mem::transmute(pdwprotocolcount)).ok() @@ -236,7 +236,7 @@ impl IMDSPDevice2 { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn GetFormatSupport2(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetFormatSupport2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(ppaudioformatex), core::mem::transmute(pnaudioformatcount), core::mem::transmute(ppvideoformatex), core::mem::transmute(pnvideoformatcount), core::mem::transmute(ppfiletype), core::mem::transmute(pnfiletypecount)).ok() + (windows_core::Interface::vtable(self).GetFormatSupport2)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(ppaudioformatex), core::mem::transmute(pnaudioformatcount), core::mem::transmute(ppvideoformatex), core::mem::transmute(pnvideoformatcount), core::mem::transmute(ppfiletype), core::mem::transmute(pnfiletypecount)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetSpecifyPropertyPages(&self, ppspecifyproppages: *mut Option, pppunknowns: *mut *mut Option, pcunks: *mut u32) -> windows_core::Result<()> { @@ -333,17 +333,17 @@ impl IMDSPDevice3 { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetFormatCapability(&self, format: WMDM_FORMATCODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormatCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFormatCapability)(windows_core::Interface::as_raw(self), format, &mut result__).map(|| result__) } pub unsafe fn DeviceIoControl(&self, dwiocontrolcode: u32, lpinbuffer: &[u8], lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceIoControl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwiocontrolcode), core::mem::transmute(lpinbuffer.as_ptr()), lpinbuffer.len().try_into().unwrap(), core::mem::transmute(lpoutbuffer), core::mem::transmute(pnoutbuffersize)).ok() + (windows_core::Interface::vtable(self).DeviceIoControl)(windows_core::Interface::as_raw(self), dwiocontrolcode, core::mem::transmute(lpinbuffer.as_ptr()), lpinbuffer.len().try_into().unwrap(), core::mem::transmute(lpoutbuffer), core::mem::transmute(pnoutbuffersize)).ok() } pub unsafe fn FindStorage(&self, findscope: WMDM_FIND_SCOPE, pwszuniqueid: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(findscope), pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -444,7 +444,7 @@ impl IMDSPDeviceControl { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn Record(&self, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Record)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat)).ok() + (windows_core::Interface::vtable(self).Record)(windows_core::Interface::as_raw(self), pformat).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -456,7 +456,7 @@ impl IMDSPDeviceControl { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Seek(&self, fumode: u32, noffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), core::mem::transmute(noffset)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), fumode, noffset).ok() } } #[repr(C)] @@ -562,7 +562,7 @@ impl IMDSPDirectTransfer { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TransferToDevice)(windows_core::Interface::as_raw(self), pwszsourcefilepath.param().abi(), psourceoperation.param().abi(), core::mem::transmute(fuflags), pwszdestinationname.param().abi(), psourcemetadata.param().abi(), ptransferprogress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TransferToDevice)(windows_core::Interface::as_raw(self), pwszsourcefilepath.param().abi(), psourceoperation.param().abi(), fuflags, pwszdestinationname.param().abi(), psourcemetadata.param().abi(), ptransferprogress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -600,7 +600,7 @@ impl IMDSPEnumDevice { } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt, &mut result__).map(|| result__) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -675,7 +675,7 @@ impl IMDSPEnumStorage { } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt, &mut result__).map(|| result__) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -746,22 +746,22 @@ windows_core::imp::define_interface!(IMDSPObject, IMDSPObject_Vtbl, 0x1dcb3a18_3 windows_core::imp::interface_hierarchy!(IMDSPObject, windows_core::IUnknown); impl IMDSPObject { pub unsafe fn Open(&self, fumode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), fumode).ok() } pub unsafe fn Read(&self, pdata: *mut u8, pdwsize: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(pdwsize), core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn Write(&self, pdata: *const u8, pdwsize: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(pdwsize), core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pdata, core::mem::transmute(pdwsize), core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn Delete(&self, fumode: u32, pprogress: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } pub unsafe fn Seek(&self, fuflags: u32, dwoffset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(fuflags), core::mem::transmute(dwoffset)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), fuflags, dwoffset).ok() } pub unsafe fn Rename(&self, pwsznewname: P0, pprogress: P1) -> windows_core::Result<()> where @@ -775,7 +775,7 @@ impl IMDSPObject { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pprogress.param().abi(), ptarget.param().abi()).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi(), ptarget.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -867,7 +867,7 @@ impl IMDSPObject2 { (windows_core::Interface::vtable(self).ReadOnClearChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(pdwsize)).ok() } pub unsafe fn WriteOnClearChannel(&self, pdata: *const u8, pdwsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteOnClearChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(pdwsize)).ok() + (windows_core::Interface::vtable(self).WriteOnClearChannel)(windows_core::Interface::as_raw(self), pdata, core::mem::transmute(pdwsize)).ok() } } #[repr(C)] @@ -909,14 +909,14 @@ impl IMDSPObjectInfo { (windows_core::Interface::vtable(self).GetPlayLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPlayLength(&self, dwlength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlayLength)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlength)).ok() + (windows_core::Interface::vtable(self).SetPlayLength)(windows_core::Interface::as_raw(self), dwlength).ok() } pub unsafe fn GetPlayOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPlayOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPlayOffset(&self, dwoffset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlayOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoffset)).ok() + (windows_core::Interface::vtable(self).SetPlayOffset)(windows_core::Interface::as_raw(self), dwoffset).ok() } pub unsafe fn GetTotalLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1060,7 +1060,7 @@ windows_core::imp::interface_hierarchy!(IMDSPStorage, windows_core::IUnknown); impl IMDSPStorage { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetAttributes(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(pformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetAttributes)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStorageGlobals(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1089,7 +1089,7 @@ impl IMDSPStorage { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(pformat.unwrap_or(core::mem::zeroed())), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(core::mem::zeroed())), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumStorage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1244,11 +1244,11 @@ impl IMDSPStorage2 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorage2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(dwattributesex), core::mem::transmute(paudioformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed())), pwszname.param().abi(), core::mem::transmute(qwfilesize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStorage2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed())), pwszname.param().abi(), qwfilesize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn SetAttributes2(&self, dwattributes: u32, dwattributesex: u32, paudioformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttributes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(dwattributesex), core::mem::transmute(paudioformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetAttributes2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn GetAttributes2(&self, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: Option<*mut super::Audio::WAVEFORMATEX>, pvideoformat: Option<*mut super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { @@ -1401,7 +1401,7 @@ impl IMDSPStorage4 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorageWithMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), pwszname.param().abi(), pmetadata.param().abi(), core::mem::transmute(qwfilesize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStorageWithMetadata)(windows_core::Interface::as_raw(self), dwattributes, pwszname.param().abi(), pmetadata.param().abi(), qwfilesize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSpecifiedMetadata(&self, ppwszpropnames: &[windows_core::PCWSTR], pmetadata: P2) -> windows_core::Result<()> where @@ -1414,7 +1414,7 @@ impl IMDSPStorage4 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(findscope), pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1528,7 +1528,7 @@ impl IMDSPStorageGlobals { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1745,7 +1745,7 @@ impl core::ops::Deref for IMDServiceProvider3 { windows_core::imp::interface_hierarchy!(IMDServiceProvider3, windows_core::IUnknown, IMDServiceProvider, IMDServiceProvider2); impl IMDServiceProvider3 { pub unsafe fn SetDeviceEnumPreference(&self, dwenumpref: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeviceEnumPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(dwenumpref)).ok() + (windows_core::Interface::vtable(self).SetDeviceEnumPreference)(windows_core::Interface::as_raw(self), dwenumpref).ok() } } #[repr(C)] @@ -2018,13 +2018,13 @@ impl ISCPSecureQuery { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExamineData)(windows_core::Interface::as_raw(self), core::mem::transmute(fuflags), pwszextension.param().abi(), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).ExamineData)(windows_core::Interface::as_raw(self), fuflags, pwszextension.param().abi(), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn MakeDecision(&self, fuflags: u32, pdata: &[u8], dwappsec: u32, pbspsessionkey: &[u8], pstorageglobals: P6, ppexchange: *mut Option, abmac: &mut [u8; 8]) -> windows_core::Result<()> where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).MakeDecision)(windows_core::Interface::as_raw(self), core::mem::transmute(fuflags), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(dwappsec), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstorageglobals.param().abi(), core::mem::transmute(ppexchange), core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).MakeDecision)(windows_core::Interface::as_raw(self), fuflags, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), dwappsec, core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstorageglobals.param().abi(), core::mem::transmute(ppexchange), core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn GetRights(&self, pdata: &[u8], pbspsessionkey: &[u8], pstgglobals: P4, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> where @@ -2094,10 +2094,10 @@ impl ISCPSecureQuery2 { { (windows_core::Interface::vtable(self).MakeDecision2)( windows_core::Interface::as_raw(self), - core::mem::transmute(fuflags), + fuflags, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), - core::mem::transmute(dwappsec), + dwappsec, core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstorageglobals.param().abi(), @@ -2182,10 +2182,10 @@ impl ISCPSecureQuery3 { { (windows_core::Interface::vtable(self).MakeDecisionOnClearChannel)( windows_core::Interface::as_raw(self), - core::mem::transmute(fuflags), + fuflags, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), - core::mem::transmute(dwappsec), + dwappsec, core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstorageglobals.param().abi(), @@ -2508,7 +2508,7 @@ impl IWMDMDevice2 { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn GetFormatSupport2(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetFormatSupport2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(ppaudioformatex), core::mem::transmute(pnaudioformatcount), core::mem::transmute(ppvideoformatex), core::mem::transmute(pnvideoformatcount), core::mem::transmute(ppfiletype), core::mem::transmute(pnfiletypecount)).ok() + (windows_core::Interface::vtable(self).GetFormatSupport2)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(ppaudioformatex), core::mem::transmute(pnaudioformatcount), core::mem::transmute(ppvideoformatex), core::mem::transmute(pnvideoformatcount), core::mem::transmute(ppfiletype), core::mem::transmute(pnfiletypecount)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetSpecifyPropertyPages(&self, ppspecifyproppages: *mut Option, pppunknowns: *mut *mut Option, pcunks: *mut u32) -> windows_core::Result<()> { @@ -2605,17 +2605,17 @@ impl IWMDMDevice3 { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetFormatCapability(&self, format: WMDM_FORMATCODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormatCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFormatCapability)(windows_core::Interface::as_raw(self), format, &mut result__).map(|| result__) } pub unsafe fn DeviceIoControl(&self, dwiocontrolcode: u32, lpinbuffer: &[u8], lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceIoControl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwiocontrolcode), core::mem::transmute(lpinbuffer.as_ptr()), lpinbuffer.len().try_into().unwrap(), core::mem::transmute(lpoutbuffer), core::mem::transmute(pnoutbuffersize)).ok() + (windows_core::Interface::vtable(self).DeviceIoControl)(windows_core::Interface::as_raw(self), dwiocontrolcode, core::mem::transmute(lpinbuffer.as_ptr()), lpinbuffer.len().try_into().unwrap(), core::mem::transmute(lpoutbuffer), core::mem::transmute(pnoutbuffersize)).ok() } pub unsafe fn FindStorage(&self, findscope: WMDM_FIND_SCOPE, pwszuniqueid: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(findscope), pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2716,7 +2716,7 @@ impl IWMDMDeviceControl { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn Record(&self, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Record)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat)).ok() + (windows_core::Interface::vtable(self).Record)(windows_core::Interface::as_raw(self), pformat).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -2728,7 +2728,7 @@ impl IWMDMDeviceControl { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Seek(&self, fumode: u32, noffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), core::mem::transmute(noffset)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), fumode, noffset).ok() } } #[repr(C)] @@ -2826,10 +2826,10 @@ windows_core::imp::define_interface!(IWMDMDeviceSession, IWMDMDeviceSession_Vtbl windows_core::imp::interface_hierarchy!(IWMDMDeviceSession, windows_core::IUnknown); impl IWMDMDeviceSession { pub unsafe fn BeginSession(&self, r#type: WMDM_SESSION_TYPE, pctx: Option<&[u8]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pctx.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pctx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pctx.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pctx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn EndSession(&self, r#type: WMDM_SESSION_TYPE, pctx: Option<&[u8]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pctx.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pctx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pctx.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pctx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[repr(C)] @@ -2871,7 +2871,7 @@ impl IWMDMEnumDevice { } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt, &mut result__).map(|| result__) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -2946,7 +2946,7 @@ impl IWMDMEnumStorage { } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt, &mut result__).map(|| result__) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3024,7 +3024,7 @@ impl IWMDMLogger { (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into()).ok() } pub unsafe fn GetLogFileName(&self, pszfilename: windows_core::PSTR, nmaxchars: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLogFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfilename), core::mem::transmute(nmaxchars)).ok() + (windows_core::Interface::vtable(self).GetLogFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfilename), nmaxchars).ok() } pub unsafe fn SetLogFileName(&self, pszfilename: P0) -> windows_core::Result<()> where @@ -3037,14 +3037,14 @@ impl IWMDMLogger { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogString)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszsrcname.param().abi(), pszlog.param().abi()).ok() + (windows_core::Interface::vtable(self).LogString)(windows_core::Interface::as_raw(self), dwflags, pszsrcname.param().abi(), pszlog.param().abi()).ok() } pub unsafe fn LogDword(&self, dwflags: u32, pszsrcname: P1, pszlogformat: P2, dwlog: u32) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogDword)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszsrcname.param().abi(), pszlogformat.param().abi(), core::mem::transmute(dwlog)).ok() + (windows_core::Interface::vtable(self).LogDword)(windows_core::Interface::as_raw(self), dwflags, pszsrcname.param().abi(), pszlogformat.param().abi(), dwlog).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3053,7 +3053,7 @@ impl IWMDMLogger { (windows_core::Interface::vtable(self).GetSizeParams)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmaxsize), core::mem::transmute(pdwshrinktosize)).ok() } pub unsafe fn SetSizeParams(&self, dwmaxsize: u32, dwshrinktosize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSizeParams)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxsize), core::mem::transmute(dwshrinktosize)).ok() + (windows_core::Interface::vtable(self).SetSizeParams)(windows_core::Interface::as_raw(self), dwmaxsize, dwshrinktosize).ok() } } #[repr(C)] @@ -3149,7 +3149,7 @@ impl IWMDMMetaData { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), pwsztagname.param().abi(), core::mem::transmute(pvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), r#type, pwsztagname.param().abi(), core::mem::transmute(pvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn QueryByName(&self, pwsztagname: P0, ptype: *mut WMDM_TAG_DATATYPE, pvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::Result<()> where @@ -3158,7 +3158,7 @@ impl IWMDMMetaData { (windows_core::Interface::vtable(self).QueryByName)(windows_core::Interface::as_raw(self), pwsztagname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn QueryByIndex(&self, iindex: u32, ppwszname: *mut *mut u16, ptype: *mut WMDM_TAG_DATATYPE, ppvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(ppwszname), core::mem::transmute(ptype), core::mem::transmute(ppvalue), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).QueryByIndex)(windows_core::Interface::as_raw(self), iindex, core::mem::transmute(ppwszname), core::mem::transmute(ptype), core::mem::transmute(ppvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn GetItemCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3223,7 +3223,7 @@ impl IWMDMNotification { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WMDMMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmessagetype), pwszcanonicalname.param().abi()).ok() + (windows_core::Interface::vtable(self).WMDMMessage)(windows_core::Interface::as_raw(self), dwmessagetype, pwszcanonicalname.param().abi()).ok() } } #[repr(C)] @@ -3255,14 +3255,14 @@ impl IWMDMObjectInfo { (windows_core::Interface::vtable(self).GetPlayLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPlayLength(&self, dwlength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlayLength)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlength)).ok() + (windows_core::Interface::vtable(self).SetPlayLength)(windows_core::Interface::as_raw(self), dwlength).ok() } pub unsafe fn GetPlayOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPlayOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPlayOffset(&self, dwoffset: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlayOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoffset)).ok() + (windows_core::Interface::vtable(self).SetPlayOffset)(windows_core::Interface::as_raw(self), dwoffset).ok() } pub unsafe fn GetTotalLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3394,13 +3394,13 @@ impl IWMDMOperation { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetObjectAttributes(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(pformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetObjectAttributes)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetObjectTotalSize(&self, pdwsize: *mut u32, pdwsizehigh: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetObjectTotalSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwsize), core::mem::transmute(pdwsizehigh)).ok() } pub unsafe fn SetObjectTotalSize(&self, dwsize: u32, dwsizehigh: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectTotalSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsize), core::mem::transmute(dwsizehigh)).ok() + (windows_core::Interface::vtable(self).SetObjectTotalSize)(windows_core::Interface::as_raw(self), dwsize, dwsizehigh).ok() } pub unsafe fn TransferObjectData(&self, pdata: *mut u8, pdwsize: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TransferObjectData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(pdwsize), core::mem::transmute(abmac.as_ptr())).ok() @@ -3409,7 +3409,7 @@ impl IWMDMOperation { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), core::mem::transmute(phcompletioncode), pnewobject.param().abi()).ok() + (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.param().abi()).ok() } } #[repr(C)] @@ -3519,7 +3519,7 @@ windows_core::imp::interface_hierarchy!(IWMDMOperation2, windows_core::IUnknown, impl IWMDMOperation2 { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn SetObjectAttributes2(&self, dwattributes: u32, dwattributesex: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectAttributes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(dwattributesex), core::mem::transmute(pformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetObjectAttributes2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(pformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn GetObjectAttributes2(&self, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: Option<*mut super::Audio::WAVEFORMATEX>, pvideoformat: Option<*mut super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { @@ -3607,10 +3607,10 @@ windows_core::imp::define_interface!(IWMDMProgress, IWMDMProgress_Vtbl, 0x1dcb3a windows_core::imp::interface_hierarchy!(IWMDMProgress, windows_core::IUnknown); impl IWMDMProgress { pub unsafe fn Begin(&self, dwestimatedticks: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), core::mem::transmute(dwestimatedticks)).ok() + (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), dwestimatedticks).ok() } pub unsafe fn Progress(&self, dwtranspiredticks: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtranspiredticks)).ok() + (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), dwtranspiredticks).ok() } pub unsafe fn End(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self)).ok() @@ -3664,7 +3664,7 @@ impl core::ops::Deref for IWMDMProgress2 { windows_core::imp::interface_hierarchy!(IWMDMProgress2, windows_core::IUnknown, IWMDMProgress); impl IWMDMProgress2 { pub unsafe fn End2(&self, hrcompletioncode: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).End2)(windows_core::Interface::as_raw(self), core::mem::transmute(hrcompletioncode)).ok() + (windows_core::Interface::vtable(self).End2)(windows_core::Interface::as_raw(self), hrcompletioncode).ok() } } #[repr(C)] @@ -3698,13 +3698,13 @@ impl core::ops::Deref for IWMDMProgress3 { windows_core::imp::interface_hierarchy!(IWMDMProgress3, windows_core::IUnknown, IWMDMProgress, IWMDMProgress2); impl IWMDMProgress3 { pub unsafe fn Begin3(&self, eventid: windows_core::GUID, dwestimatedticks: u32, pcontext: Option<*mut OPAQUECOMMAND>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin3)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(dwestimatedticks), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Begin3)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), dwestimatedticks, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Progress3(&self, eventid: windows_core::GUID, dwtranspiredticks: u32, pcontext: Option<*mut OPAQUECOMMAND>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Progress3)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(dwtranspiredticks), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Progress3)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), dwtranspiredticks, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn End3(&self, eventid: windows_core::GUID, hrcompletioncode: windows_core::HRESULT, pcontext: Option<*mut OPAQUECOMMAND>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).End3)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(hrcompletioncode), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).End3)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), hrcompletioncode, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -3778,7 +3778,7 @@ windows_core::imp::interface_hierarchy!(IWMDMStorage, windows_core::IUnknown); impl IWMDMStorage { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetAttributes(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(pformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetAttributes)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStorageGlobals(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3934,7 +3934,7 @@ impl IWMDMStorage2 { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn SetAttributes2(&self, dwattributes: u32, dwattributesex: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttributes2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(dwattributesex), core::mem::transmute(pformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetAttributes2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(pformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvideoformat.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn GetAttributes2(&self, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: Option<*mut super::Audio::WAVEFORMATEX>, pvideoformat: Option<*mut super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { @@ -4111,7 +4111,7 @@ impl IWMDMStorage4 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(findscope), pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4208,20 +4208,20 @@ impl IWMDMStorageControl { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pwszfile.param().abi(), poperation.param().abi(), pprogress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), fumode, pwszfile.param().abi(), poperation.param().abi(), pprogress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, fumode: u32, pprogress: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } pub unsafe fn Rename(&self, fumode: u32, pwsznewname: P1, pprogress: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pwsznewname.param().abi(), pprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), fumode, pwsznewname.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Read(&self, fumode: u32, pwszfile: P1, pprogress: P2, poperation: P3) -> windows_core::Result<()> where @@ -4229,14 +4229,14 @@ impl IWMDMStorageControl { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pwszfile.param().abi(), pprogress.param().abi(), poperation.param().abi()).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), fumode, pwszfile.param().abi(), pprogress.param().abi(), poperation.param().abi()).ok() } pub unsafe fn Move(&self, fumode: u32, ptargetobject: P1, pprogress: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), ptargetobject.param().abi(), pprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), fumode, ptargetobject.param().abi(), pprogress.param().abi()).ok() } } #[repr(C)] @@ -4314,7 +4314,7 @@ impl IWMDMStorageControl2 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert2)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pwszfilesource.param().abi(), pwszfiledest.param().abi(), poperation.param().abi(), pprogress.param().abi(), punknown.param().abi(), core::mem::transmute(ppnewobject.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Insert2)(windows_core::Interface::as_raw(self), fumode, pwszfilesource.param().abi(), pwszfiledest.param().abi(), poperation.param().abi(), pprogress.param().abi(), punknown.param().abi(), core::mem::transmute(ppnewobject.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -4356,7 +4356,7 @@ impl IWMDMStorageControl3 { P6: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert3)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), core::mem::transmute(futype), pwszfilesource.param().abi(), pwszfiledest.param().abi(), poperation.param().abi(), pprogress.param().abi(), pmetadata.param().abi(), punknown.param().abi(), core::mem::transmute(ppnewobject.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Insert3)(windows_core::Interface::as_raw(self), fumode, futype, pwszfilesource.param().abi(), pwszfiledest.param().abi(), poperation.param().abi(), pprogress.param().abi(), pmetadata.param().abi(), punknown.param().abi(), core::mem::transmute(ppnewobject.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -4407,7 +4407,7 @@ impl IWMDMStorageGlobals { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(fumode), pprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } } #[repr(C)] @@ -4644,7 +4644,7 @@ impl core::ops::Deref for IWMDeviceManager3 { windows_core::imp::interface_hierarchy!(IWMDeviceManager3, windows_core::IUnknown, IWMDeviceManager, IWMDeviceManager2); impl IWMDeviceManager3 { pub unsafe fn SetDeviceEnumPreference(&self, dwenumpref: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeviceEnumPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(dwenumpref)).ok() + (windows_core::Interface::vtable(self).SetDeviceEnumPreference)(windows_core::Interface::as_raw(self), dwenumpref).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/mod.rs index 32778a6880..e98b652aa3 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/mod.rs @@ -886,7 +886,7 @@ impl IATSCChannelTuneRequest { (windows_core::Interface::vtable(self).MinorChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinorChannel(&self, minorchannel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinorChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(minorchannel)).ok() + (windows_core::Interface::vtable(self).SetMinorChannel)(windows_core::Interface::as_raw(self), minorchannel).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -948,7 +948,7 @@ impl IATSCComponentType { (windows_core::Interface::vtable(self).Flags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1006,14 +1006,14 @@ impl IATSCLocator { (windows_core::Interface::vtable(self).PhysicalChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPhysicalChannel(&self, physicalchannel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPhysicalChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(physicalchannel)).ok() + (windows_core::Interface::vtable(self).SetPhysicalChannel)(windows_core::Interface::as_raw(self), physicalchannel).ok() } pub unsafe fn TSID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TSID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTSID(&self, tsid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), core::mem::transmute(tsid)).ok() + (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), tsid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1095,7 +1095,7 @@ impl IATSCLocator2 { (windows_core::Interface::vtable(self).ProgramNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProgramNumber(&self, programnumber: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgramNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(programnumber)).ok() + (windows_core::Interface::vtable(self).SetProgramNumber)(windows_core::Interface::as_raw(self), programnumber).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1157,28 +1157,28 @@ impl IATSCTuningSpace { (windows_core::Interface::vtable(self).MinMinorChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinMinorChannel(&self, newminminorchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinMinorChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newminminorchannelval)).ok() + (windows_core::Interface::vtable(self).SetMinMinorChannel)(windows_core::Interface::as_raw(self), newminminorchannelval).ok() } pub unsafe fn MaxMinorChannel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxMinorChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxMinorChannel(&self, newmaxminorchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxMinorChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newmaxminorchannelval)).ok() + (windows_core::Interface::vtable(self).SetMaxMinorChannel)(windows_core::Interface::as_raw(self), newmaxminorchannelval).ok() } pub unsafe fn MinPhysicalChannel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinPhysicalChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinPhysicalChannel(&self, newminphysicalchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinPhysicalChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newminphysicalchannelval)).ok() + (windows_core::Interface::vtable(self).SetMinPhysicalChannel)(windows_core::Interface::as_raw(self), newminphysicalchannelval).ok() } pub unsafe fn MaxPhysicalChannel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxPhysicalChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxPhysicalChannel(&self, newmaxphysicalchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxPhysicalChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newmaxphysicalchannelval)).ok() + (windows_core::Interface::vtable(self).SetMaxPhysicalChannel)(windows_core::Interface::as_raw(self), newmaxphysicalchannelval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1310,33 +1310,33 @@ impl IATSC_EIT { } pub unsafe fn GetRecordEventId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordStartTime(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordStartTime)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordEtmLocation(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEtmLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEtmLocation)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDuration(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDuration)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTitleText(&self, dwrecordindex: u32, pdwlength: *mut u32, pptext: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordTitleText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(pdwlength), core::mem::transmute(pptext)).ok() + (windows_core::Interface::vtable(self).GetRecordTitleText)(windows_core::Interface::as_raw(self), dwrecordindex, core::mem::transmute(pdwlength), core::mem::transmute(pptext)).ok() } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -1627,36 +1627,36 @@ impl IATSC_MGT { } pub unsafe fn GetRecordType(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordType)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTypePid(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTypePid)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTypePid)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordVersionNumber(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordVersionNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordVersionNumber)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfTableDescriptors(&self, pdwval: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCountOfTableDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwval)).ok() + (windows_core::Interface::vtable(self).GetCountOfTableDescriptors)(windows_core::Interface::as_raw(self), pdwval).ok() } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -1853,10 +1853,10 @@ impl IATSC_STT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -1996,84 +1996,84 @@ impl IATSC_VCT { } pub unsafe fn GetRecordName(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordName)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordName)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordMajorChannelNumber(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordMajorChannelNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordMajorChannelNumber)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordMinorChannelNumber(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordMinorChannelNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordMinorChannelNumber)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordModulationMode(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordModulationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordModulationMode)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCarrierFrequency(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCarrierFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCarrierFrequency)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTransportStreamId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordProgramNumber(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordProgramNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordProgramNumber)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordEtmLocation(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEtmLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEtmLocation)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordIsAccessControlledBitSet(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordIsAccessControlledBitSet)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordIsAccessControlledBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordIsHiddenBitSet(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordIsHiddenBitSet)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordIsHiddenBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordIsPathSelectBitSet(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordIsPathSelectBitSet)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordIsPathSelectBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordIsOutOfBandBitSet(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordIsOutOfBandBitSet)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordIsOutOfBandBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordIsHideGuideBitSet(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordIsHideGuideBitSet)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordIsHideGuideBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordServiceType(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceType)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordSourceId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordSourceId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordSourceId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfTableDescriptors(&self, pdwval: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCountOfTableDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwval)).ok() + (windows_core::Interface::vtable(self).GetCountOfTableDescriptors)(windows_core::Interface::as_raw(self), pdwval).ok() } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -2425,7 +2425,7 @@ impl IAnalogAudioComponentType { (windows_core::Interface::vtable(self).AnalogAudioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAnalogAudioMode(&self, mode: super::TVAudioMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAnalogAudioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetAnalogAudioMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2487,7 +2487,7 @@ impl IAnalogLocator { (windows_core::Interface::vtable(self).VideoStandard)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVideoStandard(&self, avs: super::AnalogVideoStandard) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoStandard)(windows_core::Interface::as_raw(self), core::mem::transmute(avs)).ok() + (windows_core::Interface::vtable(self).SetVideoStandard)(windows_core::Interface::as_raw(self), avs).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2549,21 +2549,21 @@ impl IAnalogRadioTuningSpace { (windows_core::Interface::vtable(self).MinFrequency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinFrequency(&self, newminfrequencyval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(newminfrequencyval)).ok() + (windows_core::Interface::vtable(self).SetMinFrequency)(windows_core::Interface::as_raw(self), newminfrequencyval).ok() } pub unsafe fn MaxFrequency(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxFrequency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxFrequency(&self, newmaxfrequencyval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(newmaxfrequencyval)).ok() + (windows_core::Interface::vtable(self).SetMaxFrequency)(windows_core::Interface::as_raw(self), newmaxfrequencyval).ok() } pub unsafe fn Step(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Step)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStep(&self, newstepval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStep)(windows_core::Interface::as_raw(self), core::mem::transmute(newstepval)).ok() + (windows_core::Interface::vtable(self).SetStep)(windows_core::Interface::as_raw(self), newstepval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2665,7 +2665,7 @@ impl IAnalogRadioTuningSpace2 { (windows_core::Interface::vtable(self).CountryCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCountryCode(&self, newcountrycodeval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(newcountrycodeval)).ok() + (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), newcountrycodeval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2727,28 +2727,28 @@ impl IAnalogTVTuningSpace { (windows_core::Interface::vtable(self).MinChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinChannel(&self, newminchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newminchannelval)).ok() + (windows_core::Interface::vtable(self).SetMinChannel)(windows_core::Interface::as_raw(self), newminchannelval).ok() } pub unsafe fn MaxChannel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxChannel(&self, newmaxchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newmaxchannelval)).ok() + (windows_core::Interface::vtable(self).SetMaxChannel)(windows_core::Interface::as_raw(self), newmaxchannelval).ok() } pub unsafe fn InputType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InputType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInputType(&self, newinputtypeval: super::TunerInputType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), core::mem::transmute(newinputtypeval)).ok() + (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), newinputtypeval).ok() } pub unsafe fn CountryCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CountryCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCountryCode(&self, newcountrycodeval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(newcountrycodeval)).ok() + (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), newcountrycodeval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2869,22 +2869,22 @@ impl IAtscContentAdvisoryDescriptor { } pub unsafe fn GetRecordRatingRegion(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRatingRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRatingRegion)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordRatedDimensions(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRatedDimensions)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRatedDimensions)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordRatingDimension(&self, bindexouter: u8, bindexinner: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRatingDimension)(windows_core::Interface::as_raw(self), core::mem::transmute(bindexouter), core::mem::transmute(bindexinner), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRatingDimension)(windows_core::Interface::as_raw(self), bindexouter, bindexinner, &mut result__).map(|| result__) } pub unsafe fn GetRecordRatingValue(&self, bindexouter: u8, bindexinner: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRatingValue)(windows_core::Interface::as_raw(self), core::mem::transmute(bindexouter), core::mem::transmute(bindexinner), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRatingValue)(windows_core::Interface::as_raw(self), bindexouter, bindexinner, &mut result__).map(|| result__) } pub unsafe fn GetRecordRatingDescriptionText(&self, bindex: u8, pblength: *mut u8, pptext: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordRatingDescriptionText)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), core::mem::transmute(pblength), core::mem::transmute(pptext)).ok() + (windows_core::Interface::vtable(self).GetRecordRatingDescriptionText)(windows_core::Interface::as_raw(self), bindex, core::mem::transmute(pblength), core::mem::transmute(pptext)).ok() } } #[repr(C)] @@ -3017,11 +3017,11 @@ impl IAtscPsipParser { } pub unsafe fn GetCAT(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAT)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAT)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPMT(&self, pid: u16, pwprogramnumber: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPMT)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(pwprogramnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPMT)(windows_core::Interface::as_raw(self), pid, pwprogramnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTSDT(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3033,15 +3033,15 @@ impl IAtscPsipParser { } pub unsafe fn GetVCT(&self, tableid: u8, fgetnexttable: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVCT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), fgetnexttable.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVCT)(windows_core::Interface::as_raw(self), tableid, fgetnexttable.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEIT(&self, pid: u16, pwsourceid: *const u16, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEIT)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(pwsourceid), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEIT)(windows_core::Interface::as_raw(self), pid, pwsourceid, dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetETT(&self, pid: u16, wsourceid: *const u16, pweventid: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetETT)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(wsourceid), core::mem::transmute(pweventid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetETT)(windows_core::Interface::as_raw(self), pid, wsourceid, pweventid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSTT(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3049,7 +3049,7 @@ impl IAtscPsipParser { } pub unsafe fn GetEAS(&self, pid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEAS)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEAS)(windows_core::Interface::as_raw(self), pid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3214,7 +3214,7 @@ impl IAttributeGet { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetAttribIndexed(&self, lindex: i32, pguidattribute: *mut windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAttribIndexed)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pguidattribute), core::mem::transmute(pbattribute), core::mem::transmute(pdwattributelength)).ok() + (windows_core::Interface::vtable(self).GetAttribIndexed)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pguidattribute), core::mem::transmute(pbattribute), core::mem::transmute(pdwattributelength)).ok() } pub unsafe fn GetAttrib(&self, guidattribute: windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAttrib)(windows_core::Interface::as_raw(self), core::mem::transmute(guidattribute), core::mem::transmute(pbattribute), core::mem::transmute(pdwattributelength)).ok() @@ -3268,7 +3268,7 @@ windows_core::imp::define_interface!(IAttributeSet, IAttributeSet_Vtbl, 0x583ec3 windows_core::imp::interface_hierarchy!(IAttributeSet, windows_core::IUnknown); impl IAttributeSet { pub unsafe fn SetAttrib(&self, guidattribute: windows_core::GUID, pbattribute: *const u8, dwattributelength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttrib)(windows_core::Interface::as_raw(self), core::mem::transmute(guidattribute), core::mem::transmute(pbattribute), core::mem::transmute(dwattributelength)).ok() + (windows_core::Interface::vtable(self).SetAttrib)(windows_core::Interface::as_raw(self), core::mem::transmute(guidattribute), pbattribute, dwattributelength).ok() } } #[repr(C)] @@ -3339,7 +3339,7 @@ impl IAuxInTuningSpace2 { (windows_core::Interface::vtable(self).CountryCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCountryCode(&self, newcountrycodeval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(newcountrycodeval)).ok() + (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), newcountrycodeval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3400,7 +3400,7 @@ impl IBDAComparable { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEquivalent)(windows_core::Interface::as_raw(self), compareto.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareEquivalent)(windows_core::Interface::as_raw(self), compareto.param().abi(), dwflags, &mut result__).map(|| result__) } pub unsafe fn HashExact(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3408,15 +3408,15 @@ impl IBDAComparable { } pub unsafe fn HashExactIncremental(&self, partialresult: i64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HashExactIncremental)(windows_core::Interface::as_raw(self), core::mem::transmute(partialresult), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HashExactIncremental)(windows_core::Interface::as_raw(self), partialresult, &mut result__).map(|| result__) } pub unsafe fn HashEquivalent(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HashEquivalent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HashEquivalent)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn HashEquivalentIncremental(&self, partialresult: i64, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HashEquivalentIncremental)(windows_core::Interface::as_raw(self), core::mem::transmute(partialresult), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HashEquivalentIncremental)(windows_core::Interface::as_raw(self), partialresult, dwflags, &mut result__).map(|| result__) } } #[repr(C)] @@ -3529,7 +3529,7 @@ impl IBDACreateTuneRequestEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTuneRequestEx(&self, tunerequestiid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTuneRequestEx)(windows_core::Interface::as_raw(self), core::mem::transmute(tunerequestiid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTuneRequestEx)(windows_core::Interface::as_raw(self), tunerequestiid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3575,7 +3575,7 @@ impl IBDA_TIF_REGISTRATION { (windows_core::Interface::vtable(self).RegisterTIFEx)(windows_core::Interface::as_raw(self), ptifinputpin.param().abi(), core::mem::transmute(ppvregistrationcontext), core::mem::transmute(ppmpeg2datacontrol)).ok() } pub unsafe fn UnregisterTIF(&self, pvregistrationcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterTIF)(windows_core::Interface::as_raw(self), core::mem::transmute(pvregistrationcontext)).ok() + (windows_core::Interface::vtable(self).UnregisterTIF)(windows_core::Interface::as_raw(self), pvregistrationcontext).ok() } } #[repr(C)] @@ -3629,20 +3629,20 @@ impl ICAT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -3760,23 +3760,23 @@ impl ICaptionServiceDescriptor { (windows_core::Interface::vtable(self).GetNumberOfServices)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetLanguageCode(&self, bindex: u8, langcode: &mut [u8; 3]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLanguageCode)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), core::mem::transmute(langcode.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetLanguageCode)(windows_core::Interface::as_raw(self), bindex, core::mem::transmute(langcode.as_ptr())).ok() } pub unsafe fn GetCaptionServiceNumber(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCaptionServiceNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCaptionServiceNumber)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetCCType(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCCType)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCCType)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetEasyReader(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEasyReader)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEasyReader)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetWideAspectRatio(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWideAspectRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWideAspectRatio)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -3944,7 +3944,7 @@ impl IChannelTuneRequest { (windows_core::Interface::vtable(self).Channel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannel(&self, channel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(channel)).ok() + (windows_core::Interface::vtable(self).SetChannel)(windows_core::Interface::as_raw(self), channel).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4012,14 +4012,14 @@ impl IComponent { (windows_core::Interface::vtable(self).DescLangID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDescLangID(&self, langid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDescLangID)(windows_core::Interface::as_raw(self), core::mem::transmute(langid)).ok() + (windows_core::Interface::vtable(self).SetDescLangID)(windows_core::Interface::as_raw(self), langid).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStatus(&self, status: super::ComponentStatus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4165,7 +4165,7 @@ impl IComponentType { (windows_core::Interface::vtable(self).Category)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCategory(&self, category: super::ComponentCategory) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category)).ok() + (windows_core::Interface::vtable(self).SetCategory)(windows_core::Interface::as_raw(self), category).ok() } pub unsafe fn MediaMajorType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4179,7 +4179,7 @@ impl IComponentType { (windows_core::Interface::vtable(self)._MediaMajorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Set_MediaMajorType(&self, mediamajortypeguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set_MediaMajorType)(windows_core::Interface::as_raw(self), core::mem::transmute(mediamajortypeguid)).ok() + (windows_core::Interface::vtable(self).Set_MediaMajorType)(windows_core::Interface::as_raw(self), mediamajortypeguid).ok() } pub unsafe fn MediaSubType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4193,7 +4193,7 @@ impl IComponentType { (windows_core::Interface::vtable(self)._MediaSubType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Set_MediaSubType(&self, mediasubtypeguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set_MediaSubType)(windows_core::Interface::as_raw(self), core::mem::transmute(mediasubtypeguid)).ok() + (windows_core::Interface::vtable(self).Set_MediaSubType)(windows_core::Interface::as_raw(self), mediasubtypeguid).ok() } pub unsafe fn MediaFormatType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4207,7 +4207,7 @@ impl IComponentType { (windows_core::Interface::vtable(self)._MediaFormatType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Set_MediaFormatType(&self, mediaformattypeguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set_MediaFormatType)(windows_core::Interface::as_raw(self), core::mem::transmute(mediaformattypeguid)).ok() + (windows_core::Interface::vtable(self).Set_MediaFormatType)(windows_core::Interface::as_raw(self), mediaformattypeguid).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn MediaType(&self) -> windows_core::Result { @@ -4963,7 +4963,7 @@ impl ICreatePropBagOnRegKey { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(hkey), subkey.param().abi(), core::mem::transmute(uloptions), core::mem::transmute(samdesired), core::mem::transmute(iid), core::mem::transmute(ppbag)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hkey, subkey.param().abi(), uloptions, samdesired, iid, core::mem::transmute(ppbag)).ok() } } #[repr(C)] @@ -5005,10 +5005,10 @@ impl IDTFilter { } pub unsafe fn get_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ensystem), core::mem::transmute(enlevel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), ensystem, enlevel, &mut result__).map(|| result__) } pub unsafe fn put_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ensystem), core::mem::transmute(enlevel), core::mem::transmute(lbfattrs)).ok() + (windows_core::Interface::vtable(self).put_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), ensystem, enlevel, lbfattrs).ok() } pub unsafe fn BlockUnRated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5022,7 +5022,7 @@ impl IDTFilter { (windows_core::Interface::vtable(self).BlockUnRatedDelay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBlockUnRatedDelay(&self, msecsdelaybeforeblock: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlockUnRatedDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(msecsdelaybeforeblock)).ok() + (windows_core::Interface::vtable(self).SetBlockUnRatedDelay)(windows_core::Interface::as_raw(self), msecsdelaybeforeblock).ok() } } #[repr(C)] @@ -5137,7 +5137,7 @@ impl IDTFilter2 { } pub unsafe fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrLicenseExpDate)(windows_core::Interface::as_raw(self), core::mem::transmute(prottype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrLicenseExpDate)(windows_core::Interface::as_raw(self), prottype, &mut result__).map(|| result__) } pub unsafe fn GetLastErrorCode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastErrorCode)(windows_core::Interface::as_raw(self)).ok() @@ -5403,35 +5403,35 @@ impl IDVBSLocator { (windows_core::Interface::vtable(self).SignalPolarisation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSignalPolarisation(&self, polarisationval: super::Polarisation) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalPolarisation)(windows_core::Interface::as_raw(self), core::mem::transmute(polarisationval)).ok() + (windows_core::Interface::vtable(self).SetSignalPolarisation)(windows_core::Interface::as_raw(self), polarisationval).ok() } pub unsafe fn WestPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WestPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWestPosition(&self, westlongitude: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWestPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(westlongitude)).ok() + (windows_core::Interface::vtable(self).SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude).ok() } pub unsafe fn OrbitalPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OrbitalPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOrbitalPosition(&self, longitude: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOrbitalPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(longitude)).ok() + (windows_core::Interface::vtable(self).SetOrbitalPosition)(windows_core::Interface::as_raw(self), longitude).ok() } pub unsafe fn Azimuth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Azimuth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAzimuth(&self, azimuth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAzimuth)(windows_core::Interface::as_raw(self), core::mem::transmute(azimuth)).ok() + (windows_core::Interface::vtable(self).SetAzimuth)(windows_core::Interface::as_raw(self), azimuth).ok() } pub unsafe fn Elevation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Elevation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetElevation(&self, elevation: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetElevation)(windows_core::Interface::as_raw(self), core::mem::transmute(elevation)).ok() + (windows_core::Interface::vtable(self).SetElevation)(windows_core::Interface::as_raw(self), elevation).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5573,49 +5573,49 @@ impl IDVBSLocator2 { (windows_core::Interface::vtable(self).DiseqLNBSource)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDiseqLNBSource(&self, diseqlnbsourceval: super::LNB_Source) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiseqLNBSource)(windows_core::Interface::as_raw(self), core::mem::transmute(diseqlnbsourceval)).ok() + (windows_core::Interface::vtable(self).SetDiseqLNBSource)(windows_core::Interface::as_raw(self), diseqlnbsourceval).ok() } pub unsafe fn LocalOscillatorOverrideLow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LocalOscillatorOverrideLow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLocalOscillatorOverrideLow(&self, localoscillatoroverridelowval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalOscillatorOverrideLow)(windows_core::Interface::as_raw(self), core::mem::transmute(localoscillatoroverridelowval)).ok() + (windows_core::Interface::vtable(self).SetLocalOscillatorOverrideLow)(windows_core::Interface::as_raw(self), localoscillatoroverridelowval).ok() } pub unsafe fn LocalOscillatorOverrideHigh(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LocalOscillatorOverrideHigh)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLocalOscillatorOverrideHigh(&self, localoscillatoroverridehighval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalOscillatorOverrideHigh)(windows_core::Interface::as_raw(self), core::mem::transmute(localoscillatoroverridehighval)).ok() + (windows_core::Interface::vtable(self).SetLocalOscillatorOverrideHigh)(windows_core::Interface::as_raw(self), localoscillatoroverridehighval).ok() } pub unsafe fn LocalLNBSwitchOverride(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LocalLNBSwitchOverride)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLocalLNBSwitchOverride(&self, locallnbswitchoverrideval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalLNBSwitchOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(locallnbswitchoverrideval)).ok() + (windows_core::Interface::vtable(self).SetLocalLNBSwitchOverride)(windows_core::Interface::as_raw(self), locallnbswitchoverrideval).ok() } pub unsafe fn LocalSpectralInversionOverride(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LocalSpectralInversionOverride)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLocalSpectralInversionOverride(&self, localspectralinversionoverrideval: super::SpectralInversion) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalSpectralInversionOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(localspectralinversionoverrideval)).ok() + (windows_core::Interface::vtable(self).SetLocalSpectralInversionOverride)(windows_core::Interface::as_raw(self), localspectralinversionoverrideval).ok() } pub unsafe fn SignalRollOff(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SignalRollOff)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSignalRollOff(&self, rolloffval: super::RollOff) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalRollOff)(windows_core::Interface::as_raw(self), core::mem::transmute(rolloffval)).ok() + (windows_core::Interface::vtable(self).SetSignalRollOff)(windows_core::Interface::as_raw(self), rolloffval).ok() } pub unsafe fn SignalPilot(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SignalPilot)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSignalPilot(&self, pilotval: super::Pilot) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalPilot)(windows_core::Interface::as_raw(self), core::mem::transmute(pilotval)).ok() + (windows_core::Interface::vtable(self).SetSignalPilot)(windows_core::Interface::as_raw(self), pilotval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5797,21 +5797,21 @@ impl IDVBSTuningSpace { (windows_core::Interface::vtable(self).LowOscillator)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLowOscillator(&self, lowoscillator: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowOscillator)(windows_core::Interface::as_raw(self), core::mem::transmute(lowoscillator)).ok() + (windows_core::Interface::vtable(self).SetLowOscillator)(windows_core::Interface::as_raw(self), lowoscillator).ok() } pub unsafe fn HighOscillator(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HighOscillator)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighOscillator(&self, highoscillator: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighOscillator)(windows_core::Interface::as_raw(self), core::mem::transmute(highoscillator)).ok() + (windows_core::Interface::vtable(self).SetHighOscillator)(windows_core::Interface::as_raw(self), highoscillator).ok() } pub unsafe fn LNBSwitch(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LNBSwitch)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLNBSwitch(&self, lnbswitch: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLNBSwitch)(windows_core::Interface::as_raw(self), core::mem::transmute(lnbswitch)).ok() + (windows_core::Interface::vtable(self).SetLNBSwitch)(windows_core::Interface::as_raw(self), lnbswitch).ok() } pub unsafe fn InputRange(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5825,7 +5825,7 @@ impl IDVBSTuningSpace { (windows_core::Interface::vtable(self).SpectralInversion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpectralInversion(&self, spectralinversionval: super::SpectralInversion) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpectralInversion)(windows_core::Interface::as_raw(self), core::mem::transmute(spectralinversionval)).ok() + (windows_core::Interface::vtable(self).SetSpectralInversion)(windows_core::Interface::as_raw(self), spectralinversionval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5967,49 +5967,49 @@ impl IDVBTLocator { (windows_core::Interface::vtable(self).Bandwidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBandwidth(&self, bandwidthval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(bandwidthval)).ok() + (windows_core::Interface::vtable(self).SetBandwidth)(windows_core::Interface::as_raw(self), bandwidthval).ok() } pub unsafe fn LPInnerFEC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LPInnerFEC)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLPInnerFEC(&self, fec: super::FECMethod) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLPInnerFEC)(windows_core::Interface::as_raw(self), core::mem::transmute(fec)).ok() + (windows_core::Interface::vtable(self).SetLPInnerFEC)(windows_core::Interface::as_raw(self), fec).ok() } pub unsafe fn LPInnerFECRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LPInnerFECRate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLPInnerFECRate(&self, fec: super::BinaryConvolutionCodeRate) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLPInnerFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(fec)).ok() + (windows_core::Interface::vtable(self).SetLPInnerFECRate)(windows_core::Interface::as_raw(self), fec).ok() } pub unsafe fn HAlpha(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HAlpha)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHAlpha(&self, alpha: super::HierarchyAlpha) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHAlpha)(windows_core::Interface::as_raw(self), core::mem::transmute(alpha)).ok() + (windows_core::Interface::vtable(self).SetHAlpha)(windows_core::Interface::as_raw(self), alpha).ok() } pub unsafe fn Guard(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Guard)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGuard(&self, gi: super::GuardInterval) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGuard)(windows_core::Interface::as_raw(self), core::mem::transmute(gi)).ok() + (windows_core::Interface::vtable(self).SetGuard)(windows_core::Interface::as_raw(self), gi).ok() } pub unsafe fn Mode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Mode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMode(&self, mode: super::TransmissionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn OtherFrequencyInUse(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OtherFrequencyInUse)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOtherFrequencyInUse(&self, otherfrequencyinuseval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOtherFrequencyInUse)(windows_core::Interface::as_raw(self), core::mem::transmute(otherfrequencyinuseval)).ok() + (windows_core::Interface::vtable(self).SetOtherFrequencyInUse)(windows_core::Interface::as_raw(self), otherfrequencyinuseval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6191,7 +6191,7 @@ impl IDVBTLocator2 { (windows_core::Interface::vtable(self).PhysicalLayerPipeId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPhysicalLayerPipeId(&self, physicallayerpipeidval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPhysicalLayerPipeId)(windows_core::Interface::as_raw(self), core::mem::transmute(physicallayerpipeidval)).ok() + (windows_core::Interface::vtable(self).SetPhysicalLayerPipeId)(windows_core::Interface::as_raw(self), physicallayerpipeidval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6253,21 +6253,21 @@ impl IDVBTuneRequest { (windows_core::Interface::vtable(self).ONID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetONID(&self, onid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetONID)(windows_core::Interface::as_raw(self), core::mem::transmute(onid)).ok() + (windows_core::Interface::vtable(self).SetONID)(windows_core::Interface::as_raw(self), onid).ok() } pub unsafe fn TSID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TSID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTSID(&self, tsid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), core::mem::transmute(tsid)).ok() + (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), tsid).ok() } pub unsafe fn SID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSID(&self, sid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSID)(windows_core::Interface::as_raw(self), core::mem::transmute(sid)).ok() + (windows_core::Interface::vtable(self).SetSID)(windows_core::Interface::as_raw(self), sid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6369,7 +6369,7 @@ impl IDVBTuningSpace { (windows_core::Interface::vtable(self).SystemType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSystemType(&self, systype: super::DVBSystemType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemType)(windows_core::Interface::as_raw(self), core::mem::transmute(systype)).ok() + (windows_core::Interface::vtable(self).SetSystemType)(windows_core::Interface::as_raw(self), systype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6431,7 +6431,7 @@ impl IDVBTuningSpace2 { (windows_core::Interface::vtable(self).NetworkID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNetworkID(&self, networkid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNetworkID)(windows_core::Interface::as_raw(self), core::mem::transmute(networkid)).ok() + (windows_core::Interface::vtable(self).SetNetworkID)(windows_core::Interface::as_raw(self), networkid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6498,10 +6498,10 @@ impl IDVB_BAT { (windows_core::Interface::vtable(self).GetCountOfTableDescriptors)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32, ppdescriptor: *const Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6509,32 +6509,32 @@ impl IDVB_BAT { } pub unsafe fn GetRecordTransportStreamId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordOriginalNetworkId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordOriginalNetworkId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordOriginalNetworkId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -6814,44 +6814,44 @@ impl IDVB_EIT { } pub unsafe fn GetRecordEventId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordStartTime(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordStartTime)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDuration(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDuration)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordRunningStatus(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordFreeCAMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordFreeCAMode)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -7135,7 +7135,7 @@ impl IDVB_EIT2 { } pub unsafe fn GetRecordSection(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordSection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordSection)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -7199,10 +7199,10 @@ impl IDVB_NIT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7210,32 +7210,32 @@ impl IDVB_NIT { } pub unsafe fn GetRecordTransportStreamId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordOriginalNetworkId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordOriginalNetworkId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordOriginalNetworkId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -7462,23 +7462,23 @@ impl IDVB_RST { } pub unsafe fn GetRecordTransportStreamId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTransportStreamId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordOriginalNetworkId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordOriginalNetworkId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordOriginalNetworkId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordServiceId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordEventId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordRunningStatus(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -7611,44 +7611,44 @@ impl IDVB_SDT { } pub unsafe fn GetRecordServiceId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordEITScheduleFlag(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEITScheduleFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEITScheduleFlag)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordEITPresentFollowingFlag(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEITPresentFollowingFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEITPresentFollowingFlag)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordRunningStatus(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordFreeCAMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordFreeCAMode)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -7899,10 +7899,10 @@ impl IDVB_SIT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7910,32 +7910,32 @@ impl IDVB_SIT { } pub unsafe fn GetRecordServiceId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordRunningStatus(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -8255,10 +8255,10 @@ impl IDVB_TOT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -8378,14 +8378,14 @@ impl IDigitalCableTuneRequest { (windows_core::Interface::vtable(self).MajorChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMajorChannel(&self, majorchannel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMajorChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(majorchannel)).ok() + (windows_core::Interface::vtable(self).SetMajorChannel)(windows_core::Interface::as_raw(self), majorchannel).ok() } pub unsafe fn SourceID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SourceID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceID(&self, sourceid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceID)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceid)).ok() + (windows_core::Interface::vtable(self).SetSourceID)(windows_core::Interface::as_raw(self), sourceid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8467,28 +8467,28 @@ impl IDigitalCableTuningSpace { (windows_core::Interface::vtable(self).MinMajorChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinMajorChannel(&self, newminmajorchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinMajorChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newminmajorchannelval)).ok() + (windows_core::Interface::vtable(self).SetMinMajorChannel)(windows_core::Interface::as_raw(self), newminmajorchannelval).ok() } pub unsafe fn MaxMajorChannel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxMajorChannel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxMajorChannel(&self, newmaxmajorchannelval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxMajorChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(newmaxmajorchannelval)).ok() + (windows_core::Interface::vtable(self).SetMaxMajorChannel)(windows_core::Interface::as_raw(self), newmaxmajorchannelval).ok() } pub unsafe fn MinSourceID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinSourceID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinSourceID(&self, newminsourceidval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinSourceID)(windows_core::Interface::as_raw(self), core::mem::transmute(newminsourceidval)).ok() + (windows_core::Interface::vtable(self).SetMinSourceID)(windows_core::Interface::as_raw(self), newminsourceidval).ok() } pub unsafe fn MaxSourceID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxSourceID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxSourceID(&self, newmaxsourceidval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxSourceID)(windows_core::Interface::as_raw(self), core::mem::transmute(newmaxsourceidval)).ok() + (windows_core::Interface::vtable(self).SetMaxSourceID)(windows_core::Interface::as_raw(self), newmaxsourceidval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8789,7 +8789,7 @@ impl IDvbComponentDescriptor { } pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -8910,10 +8910,10 @@ impl IDvbContentDescriptor { (windows_core::Interface::vtable(self).GetCountOfRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRecordContentNibbles(&self, brecordindex: u8, pbvallevel1: *mut u8, pbvallevel2: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordContentNibbles)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pbvallevel1), core::mem::transmute(pbvallevel2)).ok() + (windows_core::Interface::vtable(self).GetRecordContentNibbles)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pbvallevel1), core::mem::transmute(pbvallevel2)).ok() } pub unsafe fn GetRecordUserNibbles(&self, brecordindex: u8, pbval1: *mut u8, pbval2: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordUserNibbles)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pbval1), core::mem::transmute(pbval2)).ok() + (windows_core::Interface::vtable(self).GetRecordUserNibbles)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pbval1), core::mem::transmute(pbval2)).ok() } } #[repr(C)] @@ -9002,7 +9002,7 @@ impl IDvbContentIdentifierDescriptor { (windows_core::Interface::vtable(self).GetCountOfRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRecordCrid(&self, brecordindex: u8, pbtype: *mut u8, pblocation: *mut u8, pblength: *mut u8, ppbbytes: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordCrid)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pbtype), core::mem::transmute(pblocation), core::mem::transmute(pblength), core::mem::transmute(ppbbytes)).ok() + (windows_core::Interface::vtable(self).GetRecordCrid)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pbtype), core::mem::transmute(pblocation), core::mem::transmute(pblength), core::mem::transmute(ppbbytes)).ok() } } #[repr(C)] @@ -9402,27 +9402,27 @@ impl IDvbExtendedEventDescriptor { (windows_core::Interface::vtable(self).GetCountOfRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRecordItemW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut windows_core::BSTR, pbstritem: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordItemW)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(convmode), core::mem::transmute(pbstrdesc), core::mem::transmute(pbstritem)).ok() + (windows_core::Interface::vtable(self).GetRecordItemW)(windows_core::Interface::as_raw(self), brecordindex, convmode, core::mem::transmute(pbstrdesc), core::mem::transmute(pbstritem)).ok() } pub unsafe fn GetConcatenatedItemW(&self, pfollowingdescriptor: P0, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut windows_core::BSTR, pbstritem: *mut windows_core::BSTR) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConcatenatedItemW)(windows_core::Interface::as_raw(self), pfollowingdescriptor.param().abi(), core::mem::transmute(convmode), core::mem::transmute(pbstrdesc), core::mem::transmute(pbstritem)).ok() + (windows_core::Interface::vtable(self).GetConcatenatedItemW)(windows_core::Interface::as_raw(self), pfollowingdescriptor.param().abi(), convmode, core::mem::transmute(pbstrdesc), core::mem::transmute(pbstritem)).ok() } pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetConcatenatedTextW(&self, followingdescriptor: P0, convmode: DVB_STRCONV_MODE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConcatenatedTextW)(windows_core::Interface::as_raw(self), followingdescriptor.param().abi(), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetConcatenatedTextW)(windows_core::Interface::as_raw(self), followingdescriptor.param().abi(), convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetRecordItemRawBytes(&self, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordItemRawBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(ppbrawitem), core::mem::transmute(pbitemlength)).ok() + (windows_core::Interface::vtable(self).GetRecordItemRawBytes)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(ppbrawitem), core::mem::transmute(pbitemlength)).ok() } } #[repr(C)] @@ -9582,7 +9582,7 @@ impl IDvbFrequencyListDescriptor { } pub unsafe fn GetRecordCentreFrequency(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCentreFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCentreFrequency)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -9854,30 +9854,30 @@ impl IDvbLogicalChannel2Descriptor { } pub unsafe fn GetListId(&self, blistindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListId)(windows_core::Interface::as_raw(self), core::mem::transmute(blistindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetListId)(windows_core::Interface::as_raw(self), blistindex, &mut result__).map(|| result__) } pub unsafe fn GetListNameW(&self, blistindex: u8, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(blistindex), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetListNameW)(windows_core::Interface::as_raw(self), blistindex, convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetListCountryCode(&self, blistindex: u8, pszcode: &mut [u8; 4]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetListCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(blistindex), core::mem::transmute(pszcode.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetListCountryCode)(windows_core::Interface::as_raw(self), blistindex, core::mem::transmute(pszcode.as_ptr())).ok() } pub unsafe fn GetListCountOfRecords(&self, bchannellistindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListCountOfRecords)(windows_core::Interface::as_raw(self), core::mem::transmute(bchannellistindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetListCountOfRecords)(windows_core::Interface::as_raw(self), bchannellistindex, &mut result__).map(|| result__) } pub unsafe fn GetListRecordServiceId(&self, blistindex: u8, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(blistindex), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetListRecordServiceId)(windows_core::Interface::as_raw(self), blistindex, brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetListRecordLogicalChannelNumber(&self, blistindex: u8, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListRecordLogicalChannelNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(blistindex), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetListRecordLogicalChannelNumber)(windows_core::Interface::as_raw(self), blistindex, brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetListRecordLogicalChannelAndVisibility(&self, blistindex: u8, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListRecordLogicalChannelAndVisibility)(windows_core::Interface::as_raw(self), core::mem::transmute(blistindex), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetListRecordLogicalChannelAndVisibility)(windows_core::Interface::as_raw(self), blistindex, brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -10012,11 +10012,11 @@ impl IDvbLogicalChannelDescriptor { } pub unsafe fn GetRecordServiceId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordLogicalChannelNumber(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordLogicalChannelNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordLogicalChannelNumber)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -10112,7 +10112,7 @@ windows_core::imp::interface_hierarchy!(IDvbLogicalChannelDescriptor2, windows_c impl IDvbLogicalChannelDescriptor2 { pub unsafe fn GetRecordLogicalChannelAndVisibility(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordLogicalChannelAndVisibility)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordLogicalChannelAndVisibility)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -10162,15 +10162,15 @@ impl IDvbMultilingualServiceNameDescriptor { } pub unsafe fn GetRecordLangId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordLangId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordLangId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordServiceProviderNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceProviderNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRecordServiceProviderNameW)(windows_core::Interface::as_raw(self), brecordindex, convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetRecordServiceNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRecordServiceNameW)(windows_core::Interface::as_raw(self), brecordindex, convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -10285,7 +10285,7 @@ impl IDvbNetworkNameDescriptor { } pub unsafe fn GetNetworkNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNetworkNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetNetworkNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -10373,7 +10373,7 @@ impl IDvbParentalRatingDescriptor { (windows_core::Interface::vtable(self).GetCountOfRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRecordRating(&self, brecordindex: u8, pszcountrycode: &mut [u8; 4], pbval: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordRating)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pszcountrycode.as_ptr()), core::mem::transmute(pbval)).ok() + (windows_core::Interface::vtable(self).GetRecordRating)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pszcountrycode.as_ptr()), core::mem::transmute(pbval)).ok() } } #[repr(C)] @@ -10702,15 +10702,15 @@ impl IDvbServiceAttributeDescriptor { } pub unsafe fn GetRecordServiceId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordNumericSelectionFlag(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordNumericSelectionFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordNumericSelectionFlag)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordVisibleServiceFlag(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordVisibleServiceFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordVisibleServiceFlag)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -10976,11 +10976,11 @@ windows_core::imp::interface_hierarchy!(IDvbServiceDescriptor2, windows_core::IU impl IDvbServiceDescriptor2 { pub unsafe fn GetServiceProviderNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceProviderNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetServiceProviderNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetServiceNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetServiceNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -11043,11 +11043,11 @@ impl IDvbServiceListDescriptor { } pub unsafe fn GetRecordServiceId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordServiceType(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceType)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceType)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -11148,11 +11148,11 @@ impl IDvbShortEventDescriptor { } pub unsafe fn GetEventNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetEventNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -11246,11 +11246,11 @@ impl IDvbSiParser { } pub unsafe fn GetCAT(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAT)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAT)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPMT(&self, pid: u16, pwprogramnumber: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPMT)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(pwprogramnumber.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPMT)(windows_core::Interface::as_raw(self), pid, core::mem::transmute(pwprogramnumber.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTSDT(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11258,15 +11258,15 @@ impl IDvbSiParser { } pub unsafe fn GetNIT(&self, tableid: u8, pwnetworkid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNIT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pwnetworkid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNIT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pwnetworkid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSDT(&self, tableid: u8, pwtransportstreamid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSDT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pwtransportstreamid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSDT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pwtransportstreamid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEIT(&self, tableid: u8, pwserviceid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEIT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pwserviceid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEIT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pwserviceid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBAT(&self, pwbouquetid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11274,11 +11274,11 @@ impl IDvbSiParser { } pub unsafe fn GetRST(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRST)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRST)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetST(&self, pid: u16, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetST)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetST)(windows_core::Interface::as_raw(self), pid, dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTDT(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11290,11 +11290,11 @@ impl IDvbSiParser { } pub unsafe fn GetDIT(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDIT)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDIT)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSIT(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSIT)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSIT)(windows_core::Interface::as_raw(self), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11514,7 +11514,7 @@ windows_core::imp::interface_hierarchy!(IDvbSiParser2, windows_core::IUnknown, I impl IDvbSiParser2 { pub unsafe fn GetEIT2(&self, tableid: u8, pwserviceid: Option<*const u16>, pbsegment: Option<*const u8>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEIT2)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pwserviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbsegment.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEIT2)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pwserviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbsegment.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11561,19 +11561,19 @@ impl IDvbSubtitlingDescriptor { } pub unsafe fn GetRecordLangId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordLangId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordLangId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordSubtitlingType(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordSubtitlingType)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordSubtitlingType)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCompositionPageID(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCompositionPageID)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCompositionPageID)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordAncillaryPageID(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordAncillaryPageID)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordAncillaryPageID)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -11701,19 +11701,19 @@ impl IDvbTeletextDescriptor { } pub unsafe fn GetRecordLangId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordLangId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordLangId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTeletextType(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTeletextType)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTeletextType)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordMagazineNumber(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordMagazineNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordMagazineNumber)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordPageNumber(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordPageNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordPageNumber)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -12327,7 +12327,7 @@ impl IESEventFactory { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateESEvent)(windows_core::Interface::as_raw(self), pserviceprovider.param().abi(), core::mem::transmute(dweventid), core::mem::transmute(guideventtype), peventdata.len().try_into().unwrap(), core::mem::transmute(peventdata.as_ptr()), core::mem::transmute_copy(bstrbaseurl), pinitcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateESEvent)(windows_core::Interface::as_raw(self), pserviceprovider.param().abi(), dweventid, core::mem::transmute(guideventtype), peventdata.len().try_into().unwrap(), core::mem::transmute(peventdata.as_ptr()), core::mem::transmute_copy(bstrbaseurl), pinitcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -13196,7 +13196,7 @@ impl IETFilter { } pub unsafe fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrLicenseExpDate)(windows_core::Interface::as_raw(self), core::mem::transmute(prottype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrLicenseExpDate)(windows_core::Interface::as_raw(self), prottype, &mut result__).map(|| result__) } pub unsafe fn GetLastErrorCode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastErrorCode)(windows_core::Interface::as_raw(self)).ok() @@ -13273,7 +13273,7 @@ windows_core::imp::define_interface!(IETFilterConfig, IETFilterConfig_Vtbl, 0xc4 windows_core::imp::interface_hierarchy!(IETFilterConfig, windows_core::IUnknown); impl IETFilterConfig { pub unsafe fn InitLicense(&self, licenseid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(licenseid)).ok() + (windows_core::Interface::vtable(self).InitLicense)(windows_core::Interface::as_raw(self), licenseid).ok() } pub unsafe fn GetSecureChannelObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13354,7 +13354,7 @@ impl IEnumComponentTypes { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13429,7 +13429,7 @@ impl IEnumComponents { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13500,10 +13500,10 @@ windows_core::imp::define_interface!(IEnumGuideDataProperties, IEnumGuideDataPro windows_core::imp::interface_hierarchy!(IEnumGuideDataProperties, windows_core::IUnknown); impl IEnumGuideDataProperties { pub unsafe fn Next(&self, celt: u32, ppprop: *mut Option, pcelt: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppprop), core::mem::transmute(pcelt)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppprop), core::mem::transmute(pcelt)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13569,10 +13569,10 @@ windows_core::imp::interface_hierarchy!(IEnumMSVidGraphSegment, windows_core::IU impl IEnumMSVidGraphSegment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13646,7 +13646,7 @@ impl IEnumStreamBufferRecordingAttrib { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pstreambufferattribute.len().try_into().unwrap(), core::mem::transmute(pstreambufferattribute.as_ptr()), core::mem::transmute(pcreceived)).ok() } pub unsafe fn Skip(&self, crecords: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(crecords)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), crecords).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13712,10 +13712,10 @@ windows_core::imp::interface_hierarchy!(IEnumTuneRequests, windows_core::IUnknow impl IEnumTuneRequests { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, celt: u32, ppprop: *mut Option, pcelt: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppprop), core::mem::transmute(pcelt)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppprop), core::mem::transmute(pcelt)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13790,7 +13790,7 @@ impl IEnumTuningSpaces { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -13872,10 +13872,10 @@ windows_core::imp::interface_hierarchy!(IEvalRat, windows_core::IUnknown, super: impl IEvalRat { pub unsafe fn get_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ensystem), core::mem::transmute(enlevel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), ensystem, enlevel, &mut result__).map(|| result__) } pub unsafe fn put_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ensystem), core::mem::transmute(enlevel), core::mem::transmute(lbfattrs)).ok() + (windows_core::Interface::vtable(self).put_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), ensystem, enlevel, lbfattrs).ok() } pub unsafe fn BlockUnRated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13885,10 +13885,10 @@ impl IEvalRat { (windows_core::Interface::vtable(self).SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.into()).ok() } pub unsafe fn MostRestrictiveRating(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).MostRestrictiveRating)(windows_core::Interface::as_raw(self), core::mem::transmute(ensystem1), core::mem::transmute(enenlevel1), core::mem::transmute(lbfenattr1), core::mem::transmute(ensystem2), core::mem::transmute(enenlevel2), core::mem::transmute(lbfenattr2), core::mem::transmute(pensystem), core::mem::transmute(penenlevel), core::mem::transmute(plbfenattr)).ok() + (windows_core::Interface::vtable(self).MostRestrictiveRating)(windows_core::Interface::as_raw(self), ensystem1, enenlevel1, lbfenattr1, ensystem2, enenlevel2, lbfenattr2, core::mem::transmute(pensystem), core::mem::transmute(penenlevel), core::mem::transmute(plbfenattr)).ok() } pub unsafe fn TestRating(&self, enshowsystem: EnTvRat_System, enshowlevel: EnTvRat_GenericLevel, lbfenshowattributes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TestRating)(windows_core::Interface::as_raw(self), core::mem::transmute(enshowsystem), core::mem::transmute(enshowlevel), core::mem::transmute(lbfenshowattributes)).ok() + (windows_core::Interface::vtable(self).TestRating)(windows_core::Interface::as_raw(self), enshowsystem, enshowlevel, lbfenshowattributes).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13970,7 +13970,7 @@ windows_core::imp::define_interface!(IGenericDescriptor, IGenericDescriptor_Vtbl windows_core::imp::interface_hierarchy!(IGenericDescriptor, windows_core::IUnknown); impl IGenericDescriptor { pub unsafe fn Initialize(&self, pbdesc: *const u8, bcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdesc), core::mem::transmute(bcount)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pbdesc, bcount).ok() } pub unsafe fn GetTag(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14058,7 +14058,7 @@ impl core::ops::Deref for IGenericDescriptor2 { windows_core::imp::interface_hierarchy!(IGenericDescriptor2, windows_core::IUnknown, IGenericDescriptor); impl IGenericDescriptor2 { pub unsafe fn Initialize(&self, pbdesc: *const u8, wcount: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdesc), core::mem::transmute(wcount)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pbdesc, wcount).ok() } pub unsafe fn GetLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14576,10 +14576,10 @@ impl IISDB_BIT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14587,18 +14587,18 @@ impl IISDB_BIT { } pub unsafe fn GetRecordBroadcasterId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordBroadcasterId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordBroadcasterId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetVersionHash(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14781,7 +14781,7 @@ impl IISDB_CDT { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi(), core::mem::transmute(bsectionnumber)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi(), bsectionnumber).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14809,10 +14809,10 @@ impl IISDB_CDT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetSizeOfDataModule(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15139,18 +15139,18 @@ impl IISDB_LDT { } pub unsafe fn GetRecordDescriptionId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptionId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDescriptionId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetVersionHash(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15329,42 +15329,42 @@ impl IISDB_NBIT { } pub unsafe fn GetRecordInformationId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordInformationId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordInformationId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordInformationType(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordInformationType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordInformationType)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptionBodyLocation(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptionBodyLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDescriptionBodyLocation)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordMessageSectionNumber(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordMessageSectionNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordMessageSectionNumber)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordUserDefined(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordUserDefined)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordUserDefined)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordNumberOfKeys(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordNumberOfKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordNumberOfKeys)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordKeys(&self, dwrecordindex: u32) -> windows_core::Result<*mut u8> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordKeys)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetVersionHash(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15582,7 +15582,7 @@ windows_core::imp::interface_hierarchy!(IISDB_SDT, windows_core::IUnknown, IDVB_ impl IISDB_SDT { pub unsafe fn GetRecordEITUserDefinedFlags(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEITUserDefinedFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEITUserDefinedFlags)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -15648,50 +15648,50 @@ impl IISDB_SDTT { } pub unsafe fn GetRecordGroup(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordGroup)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTargetVersion(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTargetVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTargetVersion)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordNewVersion(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordNewVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordNewVersion)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDownloadLevel(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDownloadLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDownloadLevel)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordVersionIndicator(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordVersionIndicator)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordVersionIndicator)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordScheduleTimeShiftInformation(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordScheduleTimeShiftInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordScheduleTimeShiftInformation)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfSchedules(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfSchedules)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfSchedules)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordStartTimeByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordStartTimeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordStartTimeByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDurationByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDurationByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDurationByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: Option<*mut u32>, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetVersionHash(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16018,7 +16018,7 @@ impl IIsdbAudioComponentDescriptor { } pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -16233,7 +16233,7 @@ impl IIsdbCAContractInformationDescriptor { } pub unsafe fn GetRecordComponentTag(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordComponentTag)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordComponentTag)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetContractVerificationInfoLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16241,11 +16241,11 @@ impl IIsdbCAContractInformationDescriptor { } pub unsafe fn GetContractVerificationInfo(&self, bbuflength: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContractVerificationInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(bbuflength), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContractVerificationInfo)(windows_core::Interface::as_raw(self), bbuflength, &mut result__).map(|| result__) } pub unsafe fn GetFeeNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeeNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFeeNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -16635,31 +16635,31 @@ impl IIsdbComponentGroupDescriptor { } pub unsafe fn GetRecordGroupId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordGroupId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordGroupId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordNumberOfCAUnit(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordNumberOfCAUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordNumberOfCAUnit)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCAUnitCAUnitId(&self, brecordindex: u8, bcaunitindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCAUnitCAUnitId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(bcaunitindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCAUnitCAUnitId)(windows_core::Interface::as_raw(self), brecordindex, bcaunitindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCAUnitNumberOfComponents(&self, brecordindex: u8, bcaunitindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCAUnitNumberOfComponents)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(bcaunitindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCAUnitNumberOfComponents)(windows_core::Interface::as_raw(self), brecordindex, bcaunitindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCAUnitComponentTag(&self, brecordindex: u8, bcaunitindex: u8, bcomponentindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCAUnitComponentTag)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(bcaunitindex), core::mem::transmute(bcomponentindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCAUnitComponentTag)(windows_core::Interface::as_raw(self), brecordindex, bcaunitindex, bcomponentindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTotalBitRate(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTotalBitRate)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTotalBitRate)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordTextW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRecordTextW)(windows_core::Interface::as_raw(self), brecordindex, convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -16847,7 +16847,7 @@ impl IIsdbDataContentDescriptor { } pub unsafe fn GetSelectorBytes(&self, bbuflength: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSelectorBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(bbuflength), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSelectorBytes)(windows_core::Interface::as_raw(self), bbuflength, &mut result__).map(|| result__) } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16855,14 +16855,14 @@ impl IIsdbDataContentDescriptor { } pub unsafe fn GetRecordComponentRef(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordComponentRef)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordComponentRef)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetLanguageCode(&self, pszcode: &mut [u8; 4]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLanguageCode)(windows_core::Interface::as_raw(self), core::mem::transmute(pszcode.as_ptr())).ok() } pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -17025,7 +17025,7 @@ impl IIsdbDigitalCopyControlDescriptor { (windows_core::Interface::vtable(self).GetCountOfRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRecordCopyControl(&self, brecordindex: u8, pbcomponenttag: *mut u8, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordCopyControl)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pbcomponenttag), core::mem::transmute(pbdigitalrecordingcontroldata), core::mem::transmute(pbcopycontroltype), core::mem::transmute(pbapscontroldata), core::mem::transmute(pbmaximumbitrate)).ok() + (windows_core::Interface::vtable(self).GetRecordCopyControl)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pbcomponenttag), core::mem::transmute(pbdigitalrecordingcontroldata), core::mem::transmute(pbcopycontroltype), core::mem::transmute(pbapscontroldata), core::mem::transmute(pbmaximumbitrate)).ok() } } #[repr(C)] @@ -17146,26 +17146,26 @@ impl IIsdbDownloadContentDescriptor { } pub unsafe fn GetRecordModuleId(&self, wrecordindex: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordModuleId)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordModuleId)(windows_core::Interface::as_raw(self), wrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordModuleSize(&self, wrecordindex: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordModuleSize)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordModuleSize)(windows_core::Interface::as_raw(self), wrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordModuleInfoLength(&self, wrecordindex: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordModuleInfoLength)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordModuleInfoLength)(windows_core::Interface::as_raw(self), wrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordModuleInfo(&self, wrecordindex: u16) -> windows_core::Result<*mut u8> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordModuleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordModuleInfo)(windows_core::Interface::as_raw(self), wrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetTextLanguageCode(&self, szcode: &mut [u8; 4]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTextLanguageCode)(windows_core::Interface::as_raw(self), core::mem::transmute(szcode.as_ptr())).ok() } pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTextW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -17411,18 +17411,18 @@ impl IIsdbEmergencyInformationDescriptor { } pub unsafe fn GetServiceId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetServiceId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetStartEndFlag(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStartEndFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStartEndFlag)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetSignalLevel(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSignalLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSignalLevel)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetAreaCode(&self, brecordindex: u8, ppwval: *mut *mut u16, pbnumareacodes: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAreaCode)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(ppwval), core::mem::transmute(pbnumareacodes)).ok() + (windows_core::Interface::vtable(self).GetAreaCode)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(ppwval), core::mem::transmute(pbnumareacodes)).ok() } } #[repr(C)] @@ -17547,14 +17547,14 @@ impl IIsdbEventGroupDescriptor { (windows_core::Interface::vtable(self).GetCountOfRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRecordEvent(&self, brecordindex: u8, pwserviceid: *mut u16, pweventid: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pwserviceid), core::mem::transmute(pweventid)).ok() + (windows_core::Interface::vtable(self).GetRecordEvent)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pwserviceid), core::mem::transmute(pweventid)).ok() } pub unsafe fn GetCountOfRefRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCountOfRefRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetRefRecordEvent(&self, brecordindex: u8, pworiginalnetworkid: *mut u16, pwtransportstreamid: *mut u16, pwserviceid: *mut u16, pweventid: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRefRecordEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pworiginalnetworkid), core::mem::transmute(pwtransportstreamid), core::mem::transmute(pwserviceid), core::mem::transmute(pweventid)).ok() + (windows_core::Interface::vtable(self).GetRefRecordEvent)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pworiginalnetworkid), core::mem::transmute(pwtransportstreamid), core::mem::transmute(pwserviceid), core::mem::transmute(pweventid)).ok() } } #[repr(C)] @@ -17805,7 +17805,7 @@ impl IIsdbLogoTransmissionDescriptor { } pub unsafe fn GetLogoCharW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLogoCharW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetLogoCharW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -17941,14 +17941,14 @@ impl IIsdbSIParameterDescriptor { } pub unsafe fn GetTableId(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableId)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTableId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetTableDescriptionLength(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptionLength)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTableDescriptionLength)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetTableDescriptionBytes(&self, brecordindex: u8, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptionBytes)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(pbbufferlength), core::mem::transmute(pbbuffer)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptionBytes)(windows_core::Interface::as_raw(self), brecordindex, core::mem::transmute(pbbufferlength), core::mem::transmute(pbbuffer)).ok() } } #[repr(C)] @@ -18102,7 +18102,7 @@ impl IIsdbSeriesDescriptor { } pub unsafe fn GetSeriesNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSeriesNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSeriesNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -18244,31 +18244,31 @@ windows_core::imp::interface_hierarchy!(IIsdbSiParser2, windows_core::IUnknown, impl IIsdbSiParser2 { pub unsafe fn GetSDT(&self, tableid: u8, pwtransportstreamid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSDT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pwtransportstreamid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSDT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pwtransportstreamid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBIT(&self, tableid: u8, pworiginalnetworkid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBIT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pworiginalnetworkid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBIT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pworiginalnetworkid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNBIT(&self, tableid: u8, pworiginalnetworkid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNBIT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pworiginalnetworkid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNBIT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pworiginalnetworkid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLDT(&self, tableid: u8, pworiginalserviceid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLDT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pworiginalserviceid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLDT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pworiginalserviceid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSDTT(&self, tableid: u8, pwtableidext: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSDTT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(pwtableidext.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSDTT)(windows_core::Interface::as_raw(self), tableid, core::mem::transmute(pwtableidext.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCDT(&self, tableid: u8, bsectionnumber: u8, pwdownloaddataid: Option<*const u16>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCDT)(windows_core::Interface::as_raw(self), core::mem::transmute(tableid), core::mem::transmute(bsectionnumber), core::mem::transmute(pwdownloaddataid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCDT)(windows_core::Interface::as_raw(self), tableid, bsectionnumber, core::mem::transmute(pwdownloaddataid.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEMM(&self, pid: u16, wtableidext: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEMM)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(wtableidext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEMM)(windows_core::Interface::as_raw(self), pid, wtableidext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -18396,7 +18396,7 @@ impl IIsdbTSInformationDescriptor { } pub unsafe fn GetTSNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTSNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(convmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTSNameW)(windows_core::Interface::as_raw(self), convmode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18404,15 +18404,15 @@ impl IIsdbTSInformationDescriptor { } pub unsafe fn GetRecordTransmissionTypeInfo(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordTransmissionTypeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordTransmissionTypeInfo)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordNumberOfServices(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordNumberOfServices)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordNumberOfServices)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordServiceIdByIndex(&self, brecordindex: u8, bserviceindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordServiceIdByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), core::mem::transmute(bserviceindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordServiceIdByIndex)(windows_core::Interface::as_raw(self), brecordindex, bserviceindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -18565,7 +18565,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor { } pub unsafe fn GetRecordFrequency(&self, brecordindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(brecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordFrequency)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -18694,7 +18694,7 @@ impl ILanguageComponentType { (windows_core::Interface::vtable(self).LangID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLangID(&self, langid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLangID)(windows_core::Interface::as_raw(self), core::mem::transmute(langid)).ok() + (windows_core::Interface::vtable(self).SetLangID)(windows_core::Interface::as_raw(self), langid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -18752,49 +18752,49 @@ impl ILocator { (windows_core::Interface::vtable(self).CarrierFrequency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCarrierFrequency(&self, frequency: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCarrierFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(frequency)).ok() + (windows_core::Interface::vtable(self).SetCarrierFrequency)(windows_core::Interface::as_raw(self), frequency).ok() } pub unsafe fn InnerFEC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InnerFEC)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInnerFEC(&self, fec: super::FECMethod) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInnerFEC)(windows_core::Interface::as_raw(self), core::mem::transmute(fec)).ok() + (windows_core::Interface::vtable(self).SetInnerFEC)(windows_core::Interface::as_raw(self), fec).ok() } pub unsafe fn InnerFECRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InnerFECRate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInnerFECRate(&self, fec: super::BinaryConvolutionCodeRate) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInnerFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(fec)).ok() + (windows_core::Interface::vtable(self).SetInnerFECRate)(windows_core::Interface::as_raw(self), fec).ok() } pub unsafe fn OuterFEC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OuterFEC)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOuterFEC(&self, fec: super::FECMethod) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOuterFEC)(windows_core::Interface::as_raw(self), core::mem::transmute(fec)).ok() + (windows_core::Interface::vtable(self).SetOuterFEC)(windows_core::Interface::as_raw(self), fec).ok() } pub unsafe fn OuterFECRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OuterFECRate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOuterFECRate(&self, fec: super::BinaryConvolutionCodeRate) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOuterFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(fec)).ok() + (windows_core::Interface::vtable(self).SetOuterFECRate)(windows_core::Interface::as_raw(self), fec).ok() } pub unsafe fn Modulation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Modulation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetModulation(&self, modulation: super::ModulationType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModulation)(windows_core::Interface::as_raw(self), core::mem::transmute(modulation)).ok() + (windows_core::Interface::vtable(self).SetModulation)(windows_core::Interface::as_raw(self), modulation).ok() } pub unsafe fn SymbolRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SymbolRate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSymbolRate(&self, rate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolRate)(windows_core::Interface::as_raw(self), core::mem::transmute(rate)).ok() + (windows_core::Interface::vtable(self).SetSymbolRate)(windows_core::Interface::as_raw(self), rate).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18993,21 +18993,21 @@ impl IMPEG2Component { (windows_core::Interface::vtable(self).PID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPID(&self, pid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPID)(windows_core::Interface::as_raw(self), core::mem::transmute(pid)).ok() + (windows_core::Interface::vtable(self).SetPID)(windows_core::Interface::as_raw(self), pid).ok() } pub unsafe fn PCRPID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PCRPID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPCRPID(&self, pcrpid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPCRPID)(windows_core::Interface::as_raw(self), core::mem::transmute(pcrpid)).ok() + (windows_core::Interface::vtable(self).SetPCRPID)(windows_core::Interface::as_raw(self), pcrpid).ok() } pub unsafe fn ProgramNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProgramNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProgramNumber(&self, programnumber: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgramNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(programnumber)).ok() + (windows_core::Interface::vtable(self).SetProgramNumber)(windows_core::Interface::as_raw(self), programnumber).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19109,7 +19109,7 @@ impl IMPEG2ComponentType { (windows_core::Interface::vtable(self).StreamType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStreamType(&self, mp2streamtype: super::MPEG2StreamType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamType)(windows_core::Interface::as_raw(self), core::mem::transmute(mp2streamtype)).ok() + (windows_core::Interface::vtable(self).SetStreamType)(windows_core::Interface::as_raw(self), mp2streamtype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19171,14 +19171,14 @@ impl IMPEG2TuneRequest { (windows_core::Interface::vtable(self).TSID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTSID(&self, tsid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), core::mem::transmute(tsid)).ok() + (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), tsid).ok() } pub unsafe fn ProgNo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProgNo)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProgNo(&self, progno: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgNo)(windows_core::Interface::as_raw(self), core::mem::transmute(progno)).ok() + (windows_core::Interface::vtable(self).SetProgNo)(windows_core::Interface::as_raw(self), progno).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19320,13 +19320,13 @@ impl IMPEG2_TIF_CONTROL { (windows_core::Interface::vtable(self).RegisterTIF)(windows_core::Interface::as_raw(self), punktif.param().abi(), core::mem::transmute(ppvregistrationcontext)).ok() } pub unsafe fn UnregisterTIF(&self, pvregistrationcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterTIF)(windows_core::Interface::as_raw(self), core::mem::transmute(pvregistrationcontext)).ok() + (windows_core::Interface::vtable(self).UnregisterTIF)(windows_core::Interface::as_raw(self), pvregistrationcontext).ok() } pub unsafe fn AddPIDs(&self, ulcpids: u32, pulpids: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcpids), core::mem::transmute(pulpids)).ok() + (windows_core::Interface::vtable(self).AddPIDs)(windows_core::Interface::as_raw(self), ulcpids, pulpids).ok() } pub unsafe fn DeletePIDs(&self, ulcpids: u32, pulpids: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcpids), core::mem::transmute(pulpids)).ok() + (windows_core::Interface::vtable(self).DeletePIDs)(windows_core::Interface::as_raw(self), ulcpids, pulpids).ok() } pub unsafe fn GetPIDCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19422,7 +19422,7 @@ impl IMSEventBinder { (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), peventobject.param().abi(), core::mem::transmute_copy(eventname), core::mem::transmute_copy(eventhandler), &mut result__).map(|| result__) } pub unsafe fn Unbind(&self, cancelcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unbind)(windows_core::Interface::as_raw(self), core::mem::transmute(cancelcookie)).ok() + (windows_core::Interface::vtable(self).Unbind)(windows_core::Interface::as_raw(self), cancelcookie).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19484,7 +19484,7 @@ impl IMSVidAnalogTuner { (windows_core::Interface::vtable(self).Channel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannel(&self, channel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(channel)).ok() + (windows_core::Interface::vtable(self).SetChannel)(windows_core::Interface::as_raw(self), channel).ok() } pub unsafe fn VideoFrequency(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19499,18 +19499,18 @@ impl IMSVidAnalogTuner { (windows_core::Interface::vtable(self).CountryCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCountryCode(&self, lcc: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(lcc)).ok() + (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), lcc).ok() } pub unsafe fn SAP(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SAP)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSAP(&self, fsapon: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSAP)(windows_core::Interface::as_raw(self), core::mem::transmute(fsapon)).ok() + (windows_core::Interface::vtable(self).SetSAP)(windows_core::Interface::as_raw(self), fsapon).ok() } pub unsafe fn ChannelAvailable(&self, nchannel: i32, signalstrength: *mut i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ChannelAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(nchannel), core::mem::transmute(signalstrength), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ChannelAvailable)(windows_core::Interface::as_raw(self), nchannel, core::mem::transmute(signalstrength), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -19762,14 +19762,14 @@ windows_core::imp::interface_hierarchy!(IMSVidAudioRenderer, windows_core::IUnkn #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRenderer { pub unsafe fn SetVolume(&self, lvol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lvol)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), lvol).ok() } pub unsafe fn Volume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Volume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBalance(&self, lbal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(lbal)).ok() + (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), lbal).ok() } pub unsafe fn Balance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20120,7 +20120,7 @@ impl IMSVidClosedCaptioning { (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnable(&self, on: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(on)).ok() + (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), on).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -20178,7 +20178,7 @@ impl IMSVidClosedCaptioning2 { (windows_core::Interface::vtable(self).Service)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetService(&self, on: MSVidCCService) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetService)(windows_core::Interface::as_raw(self), core::mem::transmute(on)).ok() + (windows_core::Interface::vtable(self).SetService)(windows_core::Interface::as_raw(self), on).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -20368,28 +20368,28 @@ impl IMSVidCtl { (windows_core::Interface::vtable(self).AutoSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoSize(&self, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(vbool)).ok() + (windows_core::Interface::vtable(self).SetAutoSize)(windows_core::Interface::as_raw(self), vbool).ok() } pub unsafe fn BackColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BackColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColor(&self, backcolor: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), core::mem::transmute(backcolor)).ok() + (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), backcolor).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(vbool)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), vbool).ok() } pub unsafe fn TabStop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TabStop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTabStop(&self, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTabStop)(windows_core::Interface::as_raw(self), core::mem::transmute(vbool)).ok() + (windows_core::Interface::vtable(self).SetTabStop)(windows_core::Interface::as_raw(self), vbool).ok() } pub unsafe fn Window(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20403,21 +20403,21 @@ impl IMSVidCtl { (windows_core::Interface::vtable(self).DisplaySize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplaySize(&self, newvalue: DisplaySizeList) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplaySize)(windows_core::Interface::as_raw(self), core::mem::transmute(newvalue)).ok() + (windows_core::Interface::vtable(self).SetDisplaySize)(windows_core::Interface::as_raw(self), newvalue).ok() } pub unsafe fn MaintainAspectRatio(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaintainAspectRatio)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaintainAspectRatio(&self, newvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(newvalue)).ok() + (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), newvalue).ok() } pub unsafe fn ColorKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ColorKey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColorKey(&self, newvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(newvalue)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), newvalue).ok() } pub unsafe fn get_InputsAvailable(&self, categoryguid: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20429,11 +20429,11 @@ impl IMSVidCtl { } pub unsafe fn get__InputsAvailable(&self, categoryguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get__InputsAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get__InputsAvailable)(windows_core::Interface::as_raw(self), categoryguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get__OutputsAvailable(&self, categoryguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get__OutputsAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(categoryguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get__OutputsAvailable)(windows_core::Interface::as_raw(self), categoryguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VideoRenderersAvailable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21065,7 +21065,7 @@ impl IMSVidDevice { (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPower(&self, power: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPower)(windows_core::Interface::as_raw(self), core::mem::transmute(power)).ok() + (windows_core::Interface::vtable(self).SetPower)(windows_core::Interface::as_raw(self), power).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21279,7 +21279,7 @@ impl IMSVidDeviceEvent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), core::mem::transmute(oldstate), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -21333,7 +21333,7 @@ impl IMSVidEVR { (windows_core::Interface::vtable(self).SetPresenter)(windows_core::Interface::as_raw(self), pallocpresent.param().abi()).ok() } pub unsafe fn SetSuppressEffects(&self, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(bsuppress)).ok() + (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress).ok() } pub unsafe fn SuppressEffects(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21421,7 +21421,7 @@ windows_core::imp::interface_hierarchy!(IMSVidEVREvent, windows_core::IUnknown, #[cfg(feature = "Win32_System_Com")] impl IMSVidEVREvent { pub unsafe fn OnUserEvent(&self, leventcode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUserEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(leventcode)).ok() + (windows_core::Interface::vtable(self).OnUserEvent)(windows_core::Interface::as_raw(self), leventcode).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -21860,7 +21860,7 @@ impl IMSVidGenericSink { (windows_core::Interface::vtable(self).SinkStreams)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSinkStreams(&self, streams: MSVidSinkStreams) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSinkStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(streams)).ok() + (windows_core::Interface::vtable(self).SetSinkStreams)(windows_core::Interface::as_raw(self), streams).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -22030,7 +22030,7 @@ impl IMSVidGraphSegment { (windows_core::Interface::vtable(self).PostStop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnEventNotify(&self, leventcode: i32, leventparm1: isize, leventparm2: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEventNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(leventcode), core::mem::transmute(leventparm1), core::mem::transmute(leventparm2)).ok() + (windows_core::Interface::vtable(self).OnEventNotify)(windows_core::Interface::as_raw(self), leventcode, leventparm1, leventparm2).ok() } pub unsafe fn Decompose(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Decompose)(windows_core::Interface::as_raw(self)).ok() @@ -22411,22 +22411,22 @@ impl IMSVidGraphSegmentUserInput { (windows_core::Interface::vtable(self).DblClick)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn KeyDown(&self, keycode: *const i16, shiftstate: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(keycode), core::mem::transmute(shiftstate)).ok() + (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), keycode, shiftstate).ok() } pub unsafe fn KeyPress(&self, keyascii: *const i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KeyPress)(windows_core::Interface::as_raw(self), core::mem::transmute(keyascii)).ok() + (windows_core::Interface::vtable(self).KeyPress)(windows_core::Interface::as_raw(self), keyascii).ok() } pub unsafe fn KeyUp(&self, keycode: *const i16, shiftstate: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), core::mem::transmute(keycode), core::mem::transmute(shiftstate)).ok() + (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), keycode, shiftstate).ok() } pub unsafe fn MouseDown(&self, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MouseDown)(windows_core::Interface::as_raw(self), core::mem::transmute(buttonstate), core::mem::transmute(shiftstate), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).MouseDown)(windows_core::Interface::as_raw(self), buttonstate, shiftstate, x, y).ok() } pub unsafe fn MouseMove(&self, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MouseMove)(windows_core::Interface::as_raw(self), core::mem::transmute(buttonstate), core::mem::transmute(shiftstate), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).MouseMove)(windows_core::Interface::as_raw(self), buttonstate, shiftstate, x, y).ok() } pub unsafe fn MouseUp(&self, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MouseUp)(windows_core::Interface::as_raw(self), core::mem::transmute(buttonstate), core::mem::transmute(shiftstate), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).MouseUp)(windows_core::Interface::as_raw(self), buttonstate, shiftstate, x, y).ok() } } #[repr(C)] @@ -22915,7 +22915,7 @@ impl IMSVidPlayback { (windows_core::Interface::vtable(self).EnableResetOnStop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnableResetOnStop(&self, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableResetOnStop)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self)).ok() @@ -22928,27 +22928,27 @@ impl IMSVidPlayback { } pub unsafe fn get_CanStep(&self, fbackwards: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CanStep)(windows_core::Interface::as_raw(self), core::mem::transmute(fbackwards), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_CanStep)(windows_core::Interface::as_raw(self), fbackwards, &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Step)(windows_core::Interface::as_raw(self), core::mem::transmute(lstep)).ok() + (windows_core::Interface::vtable(self).Step)(windows_core::Interface::as_raw(self), lstep).ok() } pub unsafe fn SetRate(&self, plrate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(plrate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), plrate).ok() } pub unsafe fn Rate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Rate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentPosition(&self, lposition: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lposition)).ok() + (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), lposition).ok() } pub unsafe fn CurrentPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPositionMode(&self, lpositionmode: PositionModeList) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPositionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lpositionmode)).ok() + (windows_core::Interface::vtable(self).SetPositionMode)(windows_core::Interface::as_raw(self), lpositionmode).ok() } pub unsafe fn PositionMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23177,35 +23177,35 @@ impl IMSVidRect { (windows_core::Interface::vtable(self).Top)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTop(&self, topval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), core::mem::transmute(topval)).ok() + (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), topval).ok() } pub unsafe fn Left(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Left)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeft(&self, leftval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(leftval)).ok() + (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), leftval).ok() } pub unsafe fn Width(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, widthval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(widthval)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), widthval).ok() } pub unsafe fn Height(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Height)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHeight(&self, heightval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(heightval)).ok() + (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), heightval).ok() } pub unsafe fn HWnd(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HWnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHWnd(&self, hwndval: super::super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndval)).ok() + (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), hwndval).ok() } pub unsafe fn SetRect(&self, rectval: P0) -> windows_core::Result<()> where @@ -23360,14 +23360,14 @@ impl IMSVidStreamBufferRecordingControl { (windows_core::Interface::vtable(self).StartTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartTime(&self, rtstart: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(rtstart)).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), rtstart).ok() } pub unsafe fn StopTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StopTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStopTime(&self, rtstop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopTime)(windows_core::Interface::as_raw(self), core::mem::transmute(rtstop)).ok() + (windows_core::Interface::vtable(self).SetStopTime)(windows_core::Interface::as_raw(self), rtstop).ok() } pub unsafe fn RecordingStopped(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -24097,7 +24097,7 @@ windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent3, windows_co #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent3 { pub unsafe fn LicenseChange(&self, dwprot: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LicenseChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprot)).ok() + (windows_core::Interface::vtable(self).LicenseChange)(windows_core::Interface::as_raw(self), dwprot).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -24192,13 +24192,13 @@ impl IMSVidStreamBufferSource { (windows_core::Interface::vtable(self).CurrentRatings)(windows_core::Interface::as_raw(self), core::mem::transmute(pensystem), core::mem::transmute(penrating), core::mem::transmute(pbfenattr)).ok() } pub unsafe fn MaxRatingsLevel(&self, ensystem: EnTvRat_System, enrating: EnTvRat_GenericLevel, lbfenattr: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MaxRatingsLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensystem), core::mem::transmute(enrating), core::mem::transmute(lbfenattr)).ok() + (windows_core::Interface::vtable(self).MaxRatingsLevel)(windows_core::Interface::as_raw(self), ensystem, enrating, lbfenattr).ok() } pub unsafe fn SetBlockUnrated(&self, bblock: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlockUnrated)(windows_core::Interface::as_raw(self), core::mem::transmute(bblock)).ok() + (windows_core::Interface::vtable(self).SetBlockUnrated)(windows_core::Interface::as_raw(self), bblock).ok() } pub unsafe fn SetUnratedDelay(&self, dwdelay: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnratedDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdelay)).ok() + (windows_core::Interface::vtable(self).SetUnratedDelay)(windows_core::Interface::as_raw(self), dwdelay).ok() } pub unsafe fn SBESource(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -24307,7 +24307,7 @@ windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSource2, windows_core: #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource2 { pub unsafe fn put_RateEx(&self, dwrate: f64, dwframespersecond: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_RateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrate), core::mem::transmute(dwframespersecond)).ok() + (windows_core::Interface::vtable(self).put_RateEx)(windows_core::Interface::as_raw(self), dwrate, dwframespersecond).ok() } pub unsafe fn AudioCounter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -24435,7 +24435,7 @@ impl IMSVidStreamBufferSourceEvent { (windows_core::Interface::vtable(self).RatingsChanged)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TimeHole(&self, streamoffsetms: i32, sizems: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TimeHole)(windows_core::Interface::as_raw(self), core::mem::transmute(streamoffsetms), core::mem::transmute(sizems)).ok() + (windows_core::Interface::vtable(self).TimeHole)(windows_core::Interface::as_raw(self), streamoffsetms, sizems).ok() } pub unsafe fn StaleDataRead(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StaleDataRead)(windows_core::Interface::as_raw(self)).ok() @@ -24545,7 +24545,7 @@ windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent2, windows_ #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent2 { pub unsafe fn RateChange(&self, qwnewrate: f64, qwoldrate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(qwnewrate), core::mem::transmute(qwoldrate)).ok() + (windows_core::Interface::vtable(self).RateChange)(windows_core::Interface::as_raw(self), qwnewrate, qwoldrate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -24590,7 +24590,7 @@ impl IMSVidStreamBufferSourceEvent3 { (windows_core::Interface::vtable(self).BroadcastEvent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(guid)).ok() } pub unsafe fn BroadcastEventEx(&self, guid: &windows_core::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(guid), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(guid), param1, param2, param3, param4).ok() } pub unsafe fn COPPBlocked(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).COPPBlocked)(windows_core::Interface::as_raw(self)).ok() @@ -24675,7 +24675,7 @@ impl IMSVidStreamBufferV2SourceEvent { (windows_core::Interface::vtable(self).RatingsChanged)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TimeHole(&self, streamoffsetms: i32, sizems: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TimeHole)(windows_core::Interface::as_raw(self), core::mem::transmute(streamoffsetms), core::mem::transmute(sizems)).ok() + (windows_core::Interface::vtable(self).TimeHole)(windows_core::Interface::as_raw(self), streamoffsetms, sizems).ok() } pub unsafe fn StaleDataRead(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StaleDataRead)(windows_core::Interface::as_raw(self)).ok() @@ -24687,13 +24687,13 @@ impl IMSVidStreamBufferV2SourceEvent { (windows_core::Interface::vtable(self).StaleFileDeleted)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RateChange(&self, qwnewrate: f64, qwoldrate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(qwnewrate), core::mem::transmute(qwoldrate)).ok() + (windows_core::Interface::vtable(self).RateChange)(windows_core::Interface::as_raw(self), qwnewrate, qwoldrate).ok() } pub unsafe fn BroadcastEvent(&self, guid: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BroadcastEvent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(guid)).ok() } pub unsafe fn BroadcastEventEx(&self, guid: &windows_core::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(guid), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(guid), param1, param2, param3, param4).ok() } pub unsafe fn ContentPrimarilyAudio(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ContentPrimarilyAudio)(windows_core::Interface::as_raw(self)).ok() @@ -24944,10 +24944,10 @@ impl IMSVidVMR9 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), allocpresent.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), allocpresent.param().abi(), id).ok() } pub unsafe fn SetSuppressEffects(&self, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(bsuppress)).ok() + (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress).ok() } pub unsafe fn SuppressEffects(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25046,10 +25046,10 @@ windows_core::imp::interface_hierarchy!(IMSVidVRGraphSegment, windows_core::IUnk #[cfg(feature = "Win32_System_Com")] impl IMSVidVRGraphSegment { pub unsafe fn Set_VMRendererMode(&self, dwmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set_VMRendererMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).Set_VMRendererMode)(windows_core::Interface::as_raw(self), dwmode).ok() } pub unsafe fn SetOwner(&self, window: super::super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), core::mem::transmute(window)).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), window).ok() } pub unsafe fn Owner(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25060,21 +25060,21 @@ impl IMSVidVRGraphSegment { (windows_core::Interface::vtable(self).UseOverlay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseOverlay(&self, useoverlayval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(useoverlayval)).ok() + (windows_core::Interface::vtable(self).SetUseOverlay)(windows_core::Interface::as_raw(self), useoverlayval).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Visible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVisible(&self, visible: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(visible)).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible).ok() } pub unsafe fn ColorKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ColorKey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColorKey(&self, colorkey: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(colorkey)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), colorkey).ok() } pub unsafe fn Source(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25098,14 +25098,14 @@ impl IMSVidVRGraphSegment { (windows_core::Interface::vtable(self).BorderColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn MaintainAspectRatio(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaintainAspectRatio)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaintainAspectRatio(&self, fmaintain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(fmaintain)).ok() + (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), fmaintain).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -25115,7 +25115,7 @@ impl IMSVidVRGraphSegment { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn RePaint(&self, hdc: super::super::super::Graphics::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RePaint)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).RePaint)(windows_core::Interface::as_raw(self), hdc).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -25391,7 +25391,7 @@ impl IMSVidVideoRenderer { (windows_core::Interface::vtable(self)._CustomCompositorClass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Set_CustomCompositorClass(&self, compositorclsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set_CustomCompositorClass)(windows_core::Interface::as_raw(self), core::mem::transmute(compositorclsid)).ok() + (windows_core::Interface::vtable(self).Set_CustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid).ok() } pub unsafe fn _CustomCompositor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25438,7 +25438,7 @@ impl IMSVidVideoRenderer { (windows_core::Interface::vtable(self).MixerBitmapOpacity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMixerBitmapOpacity(&self, opacity: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMixerBitmapOpacity)(windows_core::Interface::as_raw(self), core::mem::transmute(opacity)).ok() + (windows_core::Interface::vtable(self).SetMixerBitmapOpacity)(windows_core::Interface::as_raw(self), opacity).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetupMixerBitmap(&self, mixerpicturedisp: P0, opacity: i32, rdest: P2) -> windows_core::Result<()> @@ -25446,21 +25446,21 @@ impl IMSVidVideoRenderer { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetupMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.param().abi(), core::mem::transmute(opacity), rdest.param().abi()).ok() + (windows_core::Interface::vtable(self).SetupMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.param().abi(), opacity, rdest.param().abi()).ok() } pub unsafe fn SourceSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SourceSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceSize(&self, newsize: SourceSizeList) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceSize)(windows_core::Interface::as_raw(self), core::mem::transmute(newsize)).ok() + (windows_core::Interface::vtable(self).SetSourceSize)(windows_core::Interface::as_raw(self), newsize).ok() } pub unsafe fn OverScan(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OverScan)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOverScan(&self, lpercent: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverScan)(windows_core::Interface::as_raw(self), core::mem::transmute(lpercent)).ok() + (windows_core::Interface::vtable(self).SetOverScan)(windows_core::Interface::as_raw(self), lpercent).ok() } pub unsafe fn AvailableSourceRect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25489,7 +25489,7 @@ impl IMSVidVideoRenderer { (windows_core::Interface::vtable(self).UsingOverlay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUsingOverlay(&self, useoverlayval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUsingOverlay)(windows_core::Interface::as_raw(self), core::mem::transmute(useoverlayval)).ok() + (windows_core::Interface::vtable(self).SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn Capture(&self) -> windows_core::Result { @@ -25505,7 +25505,7 @@ impl IMSVidVideoRenderer { (windows_core::Interface::vtable(self).DecimateInput)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDecimateInput(&self, pdeci: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDecimateInput)(windows_core::Interface::as_raw(self), core::mem::transmute(pdeci)).ok() + (windows_core::Interface::vtable(self).SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -25885,16 +25885,16 @@ impl IMSVidVideoRenderer2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), allocpresent.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), allocpresent.param().abi(), id).ok() } pub unsafe fn _SetAllocator2(&self, allocpresent: P0, id: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._SetAllocator2)(windows_core::Interface::as_raw(self), allocpresent.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self)._SetAllocator2)(windows_core::Interface::as_raw(self), allocpresent.param().abi(), id).ok() } pub unsafe fn SetSuppressEffects(&self, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(bsuppress)).ok() + (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress).ok() } pub unsafe fn SuppressEffects(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26214,28 +26214,28 @@ windows_core::imp::interface_hierarchy!(IMSVidWebDVD, windows_core::IUnknown, su #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD { pub unsafe fn OnDVDEvent(&self, levent: i32, lparam1: isize, lparam2: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDVDEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(levent), core::mem::transmute(lparam1), core::mem::transmute(lparam2)).ok() + (windows_core::Interface::vtable(self).OnDVDEvent)(windows_core::Interface::as_raw(self), levent, lparam1, lparam2).ok() } pub unsafe fn PlayTitle(&self, ltitle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle)).ok() + (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), ltitle).ok() } pub unsafe fn PlayChapterInTitle(&self, ltitle: i32, lchapter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle), core::mem::transmute(lchapter)).ok() + (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), ltitle, lchapter).ok() } pub unsafe fn PlayChapter(&self, lchapter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(lchapter)).ok() + (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), lchapter).ok() } pub unsafe fn PlayChaptersAutoStop(&self, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayChaptersAutoStop)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle), core::mem::transmute(lstrchapter), core::mem::transmute(lchaptercount)).ok() + (windows_core::Interface::vtable(self).PlayChaptersAutoStop)(windows_core::Interface::as_raw(self), ltitle, lstrchapter, lchaptercount).ok() } pub unsafe fn PlayAtTime(&self, strtime: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strtime)).ok() } pub unsafe fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle), core::mem::transmute_copy(strtime)).ok() + (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), ltitle, core::mem::transmute_copy(strtime)).ok() } pub unsafe fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: &windows_core::BSTR, strendtime: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle), core::mem::transmute_copy(strstarttime), core::mem::transmute_copy(strendtime)).ok() + (windows_core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), ltitle, core::mem::transmute_copy(strstarttime), core::mem::transmute_copy(strendtime)).ok() } pub unsafe fn ReplayChapter(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self)).ok() @@ -26251,10 +26251,10 @@ impl IMSVidWebDVD { } pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(lstream), core::mem::transmute(fformat), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_AudioLanguage)(windows_core::Interface::as_raw(self), lstream, fformat, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(menuid)).ok() + (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), menuid).ok() } pub unsafe fn Resume(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self)).ok() @@ -26271,7 +26271,7 @@ impl IMSVidWebDVD { (windows_core::Interface::vtable(self).CurrentButton)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SelectAndActivateButton(&self, lbutton: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAndActivateButton)(windows_core::Interface::as_raw(self), core::mem::transmute(lbutton)).ok() + (windows_core::Interface::vtable(self).SelectAndActivateButton)(windows_core::Interface::as_raw(self), lbutton).ok() } pub unsafe fn ActivateButton(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ActivateButton)(windows_core::Interface::as_raw(self)).ok() @@ -26289,18 +26289,18 @@ impl IMSVidWebDVD { (windows_core::Interface::vtable(self).SelectUpperButton)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ActivateAtPosition(&self, xpos: i32, ypos: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(xpos), core::mem::transmute(ypos)).ok() + (windows_core::Interface::vtable(self).ActivateAtPosition)(windows_core::Interface::as_raw(self), xpos, ypos).ok() } pub unsafe fn SelectAtPosition(&self, xpos: i32, ypos: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(xpos), core::mem::transmute(ypos)).ok() + (windows_core::Interface::vtable(self).SelectAtPosition)(windows_core::Interface::as_raw(self), xpos, ypos).ok() } pub unsafe fn get_ButtonAtPosition(&self, xpos: i32, ypos: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ButtonAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(xpos), core::mem::transmute(ypos), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ButtonAtPosition)(windows_core::Interface::as_raw(self), xpos, ypos, &mut result__).map(|| result__) } pub unsafe fn get_NumberOfChapters(&self, ltitle: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_NumberOfChapters)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_NumberOfChapters)(windows_core::Interface::as_raw(self), ltitle, &mut result__).map(|| result__) } pub unsafe fn TotalTitleTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26340,7 +26340,7 @@ impl IMSVidWebDVD { } pub unsafe fn DVDTimeCode2bstr(&self, timecode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DVDTimeCode2bstr)(windows_core::Interface::as_raw(self), core::mem::transmute(timecode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).DVDTimeCode2bstr)(windows_core::Interface::as_raw(self), timecode, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn DVDDirectory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26351,29 +26351,29 @@ impl IMSVidWebDVD { } pub unsafe fn IsSubpictureStreamEnabled(&self, lstream: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSubpictureStreamEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(lstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSubpictureStreamEnabled)(windows_core::Interface::as_raw(self), lstream, &mut result__).map(|| result__) } pub unsafe fn IsAudioStreamEnabled(&self, lstream: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsAudioStreamEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(lstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsAudioStreamEnabled)(windows_core::Interface::as_raw(self), lstream, &mut result__).map(|| result__) } pub unsafe fn CurrentSubpictureStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentSubpictureStream)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentSubpictureStream(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentSubpictureStream)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetCurrentSubpictureStream)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn get_SubpictureLanguage(&self, lstream: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SubpictureLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(lstream), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_SubpictureLanguage)(windows_core::Interface::as_raw(self), lstream, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CurrentAudioStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentAudioStream)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentAudioStream(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentAudioStream)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetCurrentAudioStream)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn AudioStreamsAvailable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26388,7 +26388,7 @@ impl IMSVidWebDVD { (windows_core::Interface::vtable(self).CurrentAngle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentAngle(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentAngle)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetCurrentAngle)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn SubpictureStreamsAvailable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26399,27 +26399,27 @@ impl IMSVidWebDVD { (windows_core::Interface::vtable(self).SubpictureOn)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSubpictureOn(&self, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSubpictureOn)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetSubpictureOn)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn DVDUniqueID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DVDUniqueID)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn AcceptParentalLevelChange(&self, faccept: super::super::super::Foundation::VARIANT_BOOL, strusername: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), core::mem::transmute(faccept), core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), faccept, core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn NotifyParentalLevelChange(&self, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyParentalLevelChange)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).NotifyParentalLevelChange)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn SelectParentalCountry(&self, lcountry: i32, strusername: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectParentalCountry)(windows_core::Interface::as_raw(self), core::mem::transmute(lcountry), core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).SelectParentalCountry)(windows_core::Interface::as_raw(self), lcountry, core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn SelectParentalLevel(&self, lparentallevel: i32, strusername: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectParentalLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lparentallevel), core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).SelectParentalLevel)(windows_core::Interface::as_raw(self), lparentallevel, core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn get_TitleParentalLevels(&self, ltitle: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_TitleParentalLevels)(windows_core::Interface::as_raw(self), core::mem::transmute(ltitle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_TitleParentalLevels)(windows_core::Interface::as_raw(self), ltitle, &mut result__).map(|| result__) } pub unsafe fn PlayerParentalCountry(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26434,30 +26434,30 @@ impl IMSVidWebDVD { } pub unsafe fn UOPValid(&self, luop: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).UOPValid)(windows_core::Interface::as_raw(self), core::mem::transmute(luop), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).UOPValid)(windows_core::Interface::as_raw(self), luop, &mut result__).map(|| result__) } pub unsafe fn get_SPRM(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SPRM)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_SPRM)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| result__) } pub unsafe fn get_GPRM(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_GPRM)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_GPRM)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| result__) } pub unsafe fn put_GPRM(&self, lindex: i32, svalue: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_GPRM)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(svalue)).ok() + (windows_core::Interface::vtable(self).put_GPRM)(windows_core::Interface::as_raw(self), lindex, svalue).ok() } pub unsafe fn get_DVDTextStringType(&self, llangindex: i32, lstringindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DVDTextStringType)(windows_core::Interface::as_raw(self), core::mem::transmute(llangindex), core::mem::transmute(lstringindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_DVDTextStringType)(windows_core::Interface::as_raw(self), llangindex, lstringindex, &mut result__).map(|| result__) } pub unsafe fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DVDTextString)(windows_core::Interface::as_raw(self), core::mem::transmute(llangindex), core::mem::transmute(lstringindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_DVDTextString)(windows_core::Interface::as_raw(self), llangindex, lstringindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_DVDTextNumberOfStrings(&self, llangindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DVDTextNumberOfStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(llangindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_DVDTextNumberOfStrings)(windows_core::Interface::as_raw(self), llangindex, &mut result__).map(|| result__) } pub unsafe fn DVDTextNumberOfLanguages(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26465,7 +26465,7 @@ impl IMSVidWebDVD { } pub unsafe fn get_DVDTextLanguageLCID(&self, llangindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DVDTextLanguageLCID)(windows_core::Interface::as_raw(self), core::mem::transmute(llangindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_DVDTextLanguageLCID)(windows_core::Interface::as_raw(self), llangindex, &mut result__).map(|| result__) } pub unsafe fn RegionChange(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegionChange)(windows_core::Interface::as_raw(self)).ok() @@ -26484,10 +26484,10 @@ impl IMSVidWebDVD { (windows_core::Interface::vtable(self).SaveBookmark)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SelectDefaultAudioLanguage(&self, lang: i32, ext: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDefaultAudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(lang), core::mem::transmute(ext)).ok() + (windows_core::Interface::vtable(self).SelectDefaultAudioLanguage)(windows_core::Interface::as_raw(self), lang, ext).ok() } pub unsafe fn SelectDefaultSubpictureLanguage(&self, lang: i32, ext: DVDSPExt) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDefaultSubpictureLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(lang), core::mem::transmute(ext)).ok() + (windows_core::Interface::vtable(self).SelectDefaultSubpictureLanguage)(windows_core::Interface::as_raw(self), lang, ext).ok() } pub unsafe fn PreferredSubpictureStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26498,7 +26498,7 @@ impl IMSVidWebDVD { (windows_core::Interface::vtable(self).DefaultMenuLanguage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultMenuLanguage(&self, lang: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultMenuLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(lang)).ok() + (windows_core::Interface::vtable(self).SetDefaultMenuLanguage)(windows_core::Interface::as_raw(self), lang).ok() } pub unsafe fn DefaultSubpictureLanguage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26518,29 +26518,29 @@ impl IMSVidWebDVD { } pub unsafe fn get_LanguageFromLCID(&self, lcid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_LanguageFromLCID)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_LanguageFromLCID)(windows_core::Interface::as_raw(self), lcid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn KaraokeAudioPresentationMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KaraokeAudioPresentationMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKaraokeAudioPresentationMode(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKaraokeAudioPresentationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetKaraokeAudioPresentationMode)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn get_KaraokeChannelContent(&self, lstream: i32, lchan: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_KaraokeChannelContent)(windows_core::Interface::as_raw(self), core::mem::transmute(lstream), core::mem::transmute(lchan), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_KaraokeChannelContent)(windows_core::Interface::as_raw(self), lstream, lchan, &mut result__).map(|| result__) } pub unsafe fn get_KaraokeChannelAssignment(&self, lstream: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_KaraokeChannelAssignment)(windows_core::Interface::as_raw(self), core::mem::transmute(lstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_KaraokeChannelAssignment)(windows_core::Interface::as_raw(self), lstream, &mut result__).map(|| result__) } pub unsafe fn RestorePreferredSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestorePreferredSettings)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn get_ButtonRect(&self, lbutton: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ButtonRect)(windows_core::Interface::as_raw(self), core::mem::transmute(lbutton), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ButtonRect)(windows_core::Interface::as_raw(self), lbutton, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DVDScreenInMouseCoordinates(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27562,7 +27562,7 @@ impl IMSVidWebDVD2 { (windows_core::Interface::vtable(self).get_Bookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdata), core::mem::transmute(pdatalength)).ok() } pub unsafe fn put_Bookmark(&self, pdata: *const u8, dwdatalength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Bookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(dwdatalength)).ok() + (windows_core::Interface::vtable(self).put_Bookmark)(windows_core::Interface::as_raw(self), pdata, dwdatalength).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -27617,10 +27617,10 @@ impl IMSVidWebDVDAdm { (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strusername), core::mem::transmute_copy(strold), core::mem::transmute_copy(strnew)).ok() } pub unsafe fn SaveParentalLevel(&self, level: i32, strusername: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveParentalLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level), core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).SaveParentalLevel)(windows_core::Interface::as_raw(self), level, core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn SaveParentalCountry(&self, country: i32, strusername: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveParentalCountry)(windows_core::Interface::as_raw(self), core::mem::transmute(country), core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).SaveParentalCountry)(windows_core::Interface::as_raw(self), country, core::mem::transmute_copy(strusername), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn ConfirmPassword(&self, strusername: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27639,28 +27639,28 @@ impl IMSVidWebDVDAdm { (windows_core::Interface::vtable(self).DefaultAudioLCID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultAudioLCID(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultAudioLCID)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetDefaultAudioLCID)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn DefaultSubpictureLCID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DefaultSubpictureLCID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultSubpictureLCID(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultSubpictureLCID)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetDefaultSubpictureLCID)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn DefaultMenuLCID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DefaultMenuLCID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultMenuLCID(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultMenuLCID)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetDefaultMenuLCID)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn BookmarkOnStop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BookmarkOnStop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBookmarkOnStop(&self, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBookmarkOnStop)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetBookmarkOnStop)(windows_core::Interface::as_raw(self), newval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -27839,73 +27839,73 @@ windows_core::imp::interface_hierarchy!(IMSVidWebDVDEvent, windows_core::IUnknow impl IMSVidWebDVDEvent { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DVDNotify(&self, leventcode: i32, lparam1: &super::super::super::System::Variant::VARIANT, lparam2: &super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DVDNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(leventcode), core::mem::transmute_copy(lparam1), core::mem::transmute_copy(lparam2)).ok() + (windows_core::Interface::vtable(self).DVDNotify)(windows_core::Interface::as_raw(self), leventcode, core::mem::transmute_copy(lparam1), core::mem::transmute_copy(lparam2)).ok() } pub unsafe fn PlayForwards(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayForwards)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayForwards)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayBackwards(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayBackwards)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayBackwards)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(menuid), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), menuid, benabled).ok() } pub unsafe fn Resume(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn SelectOrActivateButton(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectOrActivateButton)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SelectOrActivateButton)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn StillOff(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StillOff)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).StillOff)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PauseOn(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PauseOn)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PauseOn)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ChangeCurrentAudioStream(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeCurrentAudioStream)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ChangeCurrentAudioStream)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ChangeCurrentSubpictureStream(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeCurrentSubpictureStream)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ChangeCurrentSubpictureStream)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ChangeCurrentAngle(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeCurrentAngle)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ChangeCurrentAngle)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayAtTimeInTitle(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayAtTime(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayChapterInTitle(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayChapter(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ReplayChapter(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayNextChapter(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayNextChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayNextChapter)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn Stop(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ReturnFromSubmenu(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReturnFromSubmenu)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ReturnFromSubmenu)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayTitle(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn PlayPrevChapter(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayPrevChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).PlayPrevChapter)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ChangeKaraokePresMode(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeKaraokePresMode)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ChangeKaraokePresMode)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn ChangeVideoPresMode(&self, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeVideoPresMode)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).ChangeVideoPresMode)(windows_core::Interface::as_raw(self), benabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -28156,7 +28156,7 @@ windows_core::imp::interface_hierarchy!(IMSVidXDSEvent, windows_core::IUnknown, #[cfg(feature = "Win32_System_Com")] impl IMSVidXDSEvent { pub unsafe fn RatingChange(&self, prevratingsystem: EnTvRat_System, prevlevel: EnTvRat_GenericLevel, prevattributes: BfEnTvRat_GenericAttributes, newratingsystem: EnTvRat_System, newlevel: EnTvRat_GenericLevel, newattributes: BfEnTvRat_GenericAttributes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RatingChange)(windows_core::Interface::as_raw(self), core::mem::transmute(prevratingsystem), core::mem::transmute(prevlevel), core::mem::transmute(prevattributes), core::mem::transmute(newratingsystem), core::mem::transmute(newlevel), core::mem::transmute(newattributes)).ok() + (windows_core::Interface::vtable(self).RatingChange)(windows_core::Interface::as_raw(self), prevratingsystem, prevlevel, prevattributes, newratingsystem, newlevel, newattributes).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -28217,15 +28217,15 @@ windows_core::imp::interface_hierarchy!(IMpeg2Data, windows_core::IUnknown); impl IMpeg2Data { pub unsafe fn GetSection(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSection)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(tid), core::mem::transmute(pfilter), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSection)(windows_core::Interface::as_raw(self), pid, tid, pfilter, dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTable(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTable)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(tid), core::mem::transmute(pfilter), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTable)(windows_core::Interface::as_raw(self), pid, tid, pfilter, dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamOfSections(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamOfSections)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(tid), core::mem::transmute(pfilter), core::mem::transmute(hdatareadyevent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamOfSections)(windows_core::Interface::as_raw(self), pid, tid, pfilter, hdatareadyevent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -28291,10 +28291,10 @@ impl IMpeg2Stream { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(requesttype), pmpeg2data.param().abi(), core::mem::transmute(pcontext), core::mem::transmute(pid), core::mem::transmute(tid), core::mem::transmute(pfilter), core::mem::transmute(hdatareadyevent)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requesttype, pmpeg2data.param().abi(), pcontext, pid, tid, pfilter, hdatareadyevent).ok() } pub unsafe fn SupplyDataBuffer(&self, pstreambuffer: *const MPEG_STREAM_BUFFER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SupplyDataBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pstreambuffer)).ok() + (windows_core::Interface::vtable(self).SupplyDataBuffer)(windows_core::Interface::as_raw(self), pstreambuffer).ok() } } #[repr(C)] @@ -28332,22 +28332,22 @@ windows_core::imp::define_interface!(IMpeg2TableFilter, IMpeg2TableFilter_Vtbl, windows_core::imp::interface_hierarchy!(IMpeg2TableFilter, windows_core::IUnknown); impl IMpeg2TableFilter { pub unsafe fn AddPID(&self, p: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPID)(windows_core::Interface::as_raw(self), core::mem::transmute(p)).ok() + (windows_core::Interface::vtable(self).AddPID)(windows_core::Interface::as_raw(self), p).ok() } pub unsafe fn AddTable(&self, p: u16, t: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTable)(windows_core::Interface::as_raw(self), core::mem::transmute(p), core::mem::transmute(t)).ok() + (windows_core::Interface::vtable(self).AddTable)(windows_core::Interface::as_raw(self), p, t).ok() } pub unsafe fn AddExtension(&self, p: u16, t: u8, e: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(p), core::mem::transmute(t), core::mem::transmute(e)).ok() + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), p, t, e).ok() } pub unsafe fn RemovePID(&self, p: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemovePID)(windows_core::Interface::as_raw(self), core::mem::transmute(p)).ok() + (windows_core::Interface::vtable(self).RemovePID)(windows_core::Interface::as_raw(self), p).ok() } pub unsafe fn RemoveTable(&self, p: u16, t: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTable)(windows_core::Interface::as_raw(self), core::mem::transmute(p), core::mem::transmute(t)).ok() + (windows_core::Interface::vtable(self).RemoveTable)(windows_core::Interface::as_raw(self), p, t).ok() } pub unsafe fn RemoveExtension(&self, p: u16, t: u8, e: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(p), core::mem::transmute(t), core::mem::transmute(e)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), p, t, e).ok() } } #[repr(C)] @@ -28433,25 +28433,25 @@ impl IPAT { } pub unsafe fn GetRecordProgramNumber(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordProgramNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordProgramNumber)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordProgramMapPid(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordProgramMapPid)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordProgramMapPid)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn FindRecordProgramMapPid(&self, wprogramnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindRecordProgramMapPid)(windows_core::Interface::as_raw(self), core::mem::transmute(wprogramnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindRecordProgramMapPid)(windows_core::Interface::as_raw(self), wprogramnumber, &mut result__).map(|| result__) } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -28734,11 +28734,11 @@ impl IPBDASiParser { } pub unsafe fn GetEIT(&self, dwsize: u32, pbuffer: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEIT)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsize), core::mem::transmute(pbuffer), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEIT)(windows_core::Interface::as_raw(self), dwsize, pbuffer, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetServices(&self, dwsize: u32, pbuffer: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServices)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsize), core::mem::transmute(pbuffer), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServices)(windows_core::Interface::as_raw(self), dwsize, pbuffer, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -28815,26 +28815,26 @@ impl IPBDA_EIT { } pub unsafe fn GetRecordEventId(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordEventId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordStartTime(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordStartTime)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDuration(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordDuration)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -28997,7 +28997,7 @@ impl IPBDA_Services { } pub unsafe fn GetRecordByIndex(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -29078,10 +29078,10 @@ impl IPMT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -29089,22 +29089,22 @@ impl IPMT { } pub unsafe fn GetRecordStreamType(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordStreamType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordStreamType)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordElementaryPid(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordElementaryPid)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordElementaryPid)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecordCountOfDescriptors)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } pub unsafe fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwdescindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(dwdescindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecordDescriptorByIndex)(windows_core::Interface::as_raw(self), dwrecordindex, dwdescindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordindex), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(windows_core::Interface::as_raw(self), dwrecordindex, btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn QueryServiceGatewayInfo(&self, ppdsmcclist: *mut *mut DSMCC_ELEMENT, puicount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryServiceGatewayInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdsmcclist), core::mem::transmute(puicount)).ok() @@ -29113,14 +29113,14 @@ impl IPMT { (windows_core::Interface::vtable(self).QueryMPEInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ppmpelist), core::mem::transmute(puicount)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -29347,7 +29347,7 @@ windows_core::imp::interface_hierarchy!(IPSITables, windows_core::IUnknown); impl IPSITables { pub unsafe fn GetTable(&self, dwtsid: u32, dwtid_pid: u32, dwhashedver: u32, dwpara4: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTable)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtsid), core::mem::transmute(dwtid_pid), core::mem::transmute(dwhashedver), core::mem::transmute(dwpara4), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTable)(windows_core::Interface::as_raw(self), dwtsid, dwtid_pid, dwhashedver, dwpara4, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -29385,7 +29385,7 @@ impl IPTFilterLicenseRenewal { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenewLicenses)(windows_core::Interface::as_raw(self), wszfilename.param().abi(), wszexpiredkid.param().abi(), core::mem::transmute(dwcallersid), bhighpriority.into()).ok() + (windows_core::Interface::vtable(self).RenewLicenses)(windows_core::Interface::as_raw(self), wszfilename.param().abi(), wszexpiredkid.param().abi(), dwcallersid, bhighpriority.into()).ok() } pub unsafe fn CancelLicenseRenewal(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLicenseRenewal)(windows_core::Interface::as_raw(self)).ok() @@ -29644,7 +29644,7 @@ windows_core::imp::define_interface!(ISBE2Crossbar, ISBE2Crossbar_Vtbl, 0x547b6d windows_core::imp::interface_hierarchy!(ISBE2Crossbar, windows_core::IUnknown); impl ISBE2Crossbar { pub unsafe fn EnableDefaultMode(&self, defaultflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableDefaultMode)(windows_core::Interface::as_raw(self), core::mem::transmute(defaultflags)).ok() + (windows_core::Interface::vtable(self).EnableDefaultMode)(windows_core::Interface::as_raw(self), defaultflags).ok() } pub unsafe fn GetInitialProfile(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -29725,7 +29725,7 @@ impl ISBE2EnumStream { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pstreamdesc.len().try_into().unwrap(), core::mem::transmute(pstreamdesc.as_ptr()), core::mem::transmute(pcreceived)).ok() } pub unsafe fn Skip(&self, crecords: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(crecords)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), crecords).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -29821,7 +29821,7 @@ windows_core::imp::define_interface!(ISBE2GlobalEvent, ISBE2GlobalEvent_Vtbl, 0x windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent, windows_core::IUnknown); impl ISBE2GlobalEvent { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(idevt), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(pspanning), core::mem::transmute(pcb), core::mem::transmute(pb)).ok() + (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, core::mem::transmute(pspanning), core::mem::transmute(pcb), core::mem::transmute(pb)).ok() } } #[repr(C)] @@ -29855,7 +29855,7 @@ impl core::ops::Deref for ISBE2GlobalEvent2 { windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent2, windows_core::IUnknown, ISBE2GlobalEvent); impl ISBE2GlobalEvent2 { pub unsafe fn GetEventEx(&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, pstreamtime: *mut i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventEx)(windows_core::Interface::as_raw(self), core::mem::transmute(idevt), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(pspanning), core::mem::transmute(pcb), core::mem::transmute(pb), core::mem::transmute(pstreamtime)).ok() + (windows_core::Interface::vtable(self).GetEventEx)(windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, core::mem::transmute(pspanning), core::mem::transmute(pcb), core::mem::transmute(pb), core::mem::transmute(pstreamtime)).ok() } } #[repr(C)] @@ -29889,14 +29889,14 @@ impl ISBE2MediaTypeProfile { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetStream(&self, index: u32) -> windows_core::Result<*mut super::super::MediaFoundation::AM_MEDIA_TYPE> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn AddStream(&self, pmediatype: *const super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pmediatype)).ok() } pub unsafe fn DeleteStream(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteStream)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).DeleteStream)(windows_core::Interface::as_raw(self), index).ok() } } #[repr(C)] @@ -29969,7 +29969,7 @@ windows_core::imp::define_interface!(ISBE2SpanningEvent, ISBE2SpanningEvent_Vtbl windows_core::imp::interface_hierarchy!(ISBE2SpanningEvent, windows_core::IUnknown); impl ISBE2SpanningEvent { pub unsafe fn GetEvent(&self, idevt: *const windows_core::GUID, streamid: u32, pcb: *mut u32, pb: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(idevt), core::mem::transmute(streamid), core::mem::transmute(pcb), core::mem::transmute(pb)).ok() + (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), idevt, streamid, core::mem::transmute(pcb), core::mem::transmute(pb)).ok() } } #[repr(C)] @@ -29997,10 +29997,10 @@ windows_core::imp::define_interface!(ISBE2StreamMap, ISBE2StreamMap_Vtbl, 0x667c windows_core::imp::interface_hierarchy!(ISBE2StreamMap, windows_core::IUnknown); impl ISBE2StreamMap { pub unsafe fn MapStream(&self, stream: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapStream)(windows_core::Interface::as_raw(self), core::mem::transmute(stream)).ok() + (windows_core::Interface::vtable(self).MapStream)(windows_core::Interface::as_raw(self), stream).ok() } pub unsafe fn UnmapStream(&self, stream: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnmapStream)(windows_core::Interface::as_raw(self), core::mem::transmute(stream)).ok() + (windows_core::Interface::vtable(self).UnmapStream)(windows_core::Interface::as_raw(self), stream).ok() } pub unsafe fn EnumMappedStreams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30150,14 +30150,14 @@ impl ISCTE_EAS { (windows_core::Interface::vtable(self).GetLocationCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetLocationCodes(&self, bindex: u8, pbstate: *mut u8, pbcountysubdivision: *mut u8, pwcounty: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocationCodes)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), core::mem::transmute(pbstate), core::mem::transmute(pbcountysubdivision), core::mem::transmute(pwcounty)).ok() + (windows_core::Interface::vtable(self).GetLocationCodes)(windows_core::Interface::as_raw(self), bindex, core::mem::transmute(pbstate), core::mem::transmute(pbcountysubdivision), core::mem::transmute(pwcounty)).ok() } pub unsafe fn GetExceptionCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExceptionCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetExceptionService(&self, bindex: u8, pbibref: *mut u8, pwfirst: *mut u16, pwsecond: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionService)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), core::mem::transmute(pbibref), core::mem::transmute(pwfirst), core::mem::transmute(pwsecond)).ok() + (windows_core::Interface::vtable(self).GetExceptionService)(windows_core::Interface::as_raw(self), bindex, core::mem::transmute(pbibref), core::mem::transmute(pwfirst), core::mem::transmute(pwsecond)).ok() } pub unsafe fn GetCountOfTableDescriptors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30165,10 +30165,10 @@ impl ISCTE_EAS { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } } #[repr(C)] @@ -30626,7 +30626,7 @@ impl ISIInbandEPGEvent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SIObjectEvent)(windows_core::Interface::as_raw(self), pidvb_eit.param().abi(), core::mem::transmute(dwtable_id), core::mem::transmute(dwservice_id)).ok() + (windows_core::Interface::vtable(self).SIObjectEvent)(windows_core::Interface::as_raw(self), pidvb_eit.param().abi(), dwtable_id, dwservice_id).ok() } } #[repr(C)] @@ -30666,10 +30666,10 @@ impl IScanningTuner { (windows_core::Interface::vtable(self).SeekDown)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ScanUp(&self, millisecondspause: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScanUp)(windows_core::Interface::as_raw(self), core::mem::transmute(millisecondspause)).ok() + (windows_core::Interface::vtable(self).ScanUp)(windows_core::Interface::as_raw(self), millisecondspause).ok() } pub unsafe fn ScanDown(&self, millisecondspause: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScanDown)(windows_core::Interface::as_raw(self), core::mem::transmute(millisecondspause)).ok() + (windows_core::Interface::vtable(self).ScanDown)(windows_core::Interface::as_raw(self), millisecondspause).ok() } pub unsafe fn AutoProgram(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AutoProgram)(windows_core::Interface::as_raw(self)).ok() @@ -30744,14 +30744,14 @@ impl IScanningTunerEx { (windows_core::Interface::vtable(self).GetCurrentLocator)(windows_core::Interface::as_raw(self), core::mem::transmute(pilocator)).ok() } pub unsafe fn PerformExhaustiveScan(&self, dwlowerfreq: i32, dwhigherfreq: i32, bfinetune: super::super::super::Foundation::VARIANT_BOOL, hevent: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PerformExhaustiveScan)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlowerfreq), core::mem::transmute(dwhigherfreq), core::mem::transmute(bfinetune), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).PerformExhaustiveScan)(windows_core::Interface::as_raw(self), dwlowerfreq, dwhigherfreq, bfinetune, hevent).ok() } pub unsafe fn TerminateCurrentScan(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TerminateCurrentScan)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ResumeCurrentScan(&self, hevent: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResumeCurrentScan)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).ResumeCurrentScan)(windows_core::Interface::as_raw(self), hevent).ok() } pub unsafe fn GetTunerScanningCapability(&self, hardwareassistedscanning: *mut i32, numstandardssupported: *mut i32, broadcaststandards: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTunerScanningCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(hardwareassistedscanning), core::mem::transmute(numstandardssupported), core::mem::transmute(broadcaststandards)).ok() @@ -30763,7 +30763,7 @@ impl IScanningTunerEx { (windows_core::Interface::vtable(self).GetCurrentTunerStandardCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(currentbroadcaststandard), core::mem::transmute(settlingtime), core::mem::transmute(tvstandardssupported)).ok() } pub unsafe fn SetScanSignalTypeFilter(&self, scanmodulationtypes: i32, analogvideostandard: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScanSignalTypeFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(scanmodulationtypes), core::mem::transmute(analogvideostandard)).ok() + (windows_core::Interface::vtable(self).SetScanSignalTypeFilter)(windows_core::Interface::as_raw(self), scanmodulationtypes, analogvideostandard).ok() } } #[repr(C)] @@ -30858,10 +30858,10 @@ impl ISectionList { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(requesttype), pmpeg2data.param().abi(), core::mem::transmute(pcontext), core::mem::transmute(pid), core::mem::transmute(tid), core::mem::transmute(pfilter), core::mem::transmute(timeout), core::mem::transmute(hdoneevent)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requesttype, pmpeg2data.param().abi(), pcontext, pid, tid, pfilter, timeout, hdoneevent).ok() } pub unsafe fn InitializeWithRawSections(&self, pmplsections: *const MPEG_PACKET_LIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeWithRawSections)(windows_core::Interface::as_raw(self), core::mem::transmute(pmplsections)).ok() + (windows_core::Interface::vtable(self).InitializeWithRawSections)(windows_core::Interface::as_raw(self), pmplsections).ok() } pub unsafe fn CancelPendingRequest(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelPendingRequest)(windows_core::Interface::as_raw(self)).ok() @@ -30871,13 +30871,13 @@ impl ISectionList { (windows_core::Interface::vtable(self).GetNumberOfSections)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSectionData(&self, sectionnumber: u16, pdwrawpacketlength: *mut u32, ppsection: *mut *mut SECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSectionData)(windows_core::Interface::as_raw(self), core::mem::transmute(sectionnumber), core::mem::transmute(pdwrawpacketlength), core::mem::transmute(ppsection)).ok() + (windows_core::Interface::vtable(self).GetSectionData)(windows_core::Interface::as_raw(self), sectionnumber, core::mem::transmute(pdwrawpacketlength), core::mem::transmute(ppsection)).ok() } pub unsafe fn GetProgramIdentifier(&self, ppid: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProgramIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(ppid)).ok() + (windows_core::Interface::vtable(self).GetProgramIdentifier)(windows_core::Interface::as_raw(self), ppid).ok() } pub unsafe fn GetTableIdentifier(&self, ptableid: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid)).ok() + (windows_core::Interface::vtable(self).GetTableIdentifier)(windows_core::Interface::as_raw(self), ptableid).ok() } } #[repr(C)] @@ -30965,14 +30965,14 @@ impl IServiceLocationDescriptor { } pub unsafe fn GetElementStreamType(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetElementStreamType)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetElementStreamType)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetElementPID(&self, bindex: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetElementPID)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetElementPID)(windows_core::Interface::as_raw(self), bindex, &mut result__).map(|| result__) } pub unsafe fn GetElementLanguageCode(&self, bindex: u8, langcode: &mut [u8; 3]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetElementLanguageCode)(windows_core::Interface::as_raw(self), core::mem::transmute(bindex), core::mem::transmute(langcode.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetElementLanguageCode)(windows_core::Interface::as_raw(self), bindex, core::mem::transmute(langcode.as_ptr())).ok() } } #[repr(C)] @@ -31065,13 +31065,13 @@ impl IStreamBufferConfigure { (windows_core::Interface::vtable(self).GetDirectory)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackingFileCount(&self, dwmin: u32, dwmax: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackingFileCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmin), core::mem::transmute(dwmax)).ok() + (windows_core::Interface::vtable(self).SetBackingFileCount)(windows_core::Interface::as_raw(self), dwmin, dwmax).ok() } pub unsafe fn GetBackingFileCount(&self, pdwmin: *mut u32, pdwmax: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBackingFileCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmin), core::mem::transmute(pdwmax)).ok() } pub unsafe fn SetBackingFileDuration(&self, dwseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackingFileDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(dwseconds)).ok() + (windows_core::Interface::vtable(self).SetBackingFileDuration)(windows_core::Interface::as_raw(self), dwseconds).ok() } pub unsafe fn GetBackingFileDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31159,14 +31159,14 @@ impl core::ops::Deref for IStreamBufferConfigure2 { windows_core::imp::interface_hierarchy!(IStreamBufferConfigure2, windows_core::IUnknown, IStreamBufferConfigure); impl IStreamBufferConfigure2 { pub unsafe fn SetMultiplexedPacketSize(&self, cbbytesperpacket: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMultiplexedPacketSize)(windows_core::Interface::as_raw(self), core::mem::transmute(cbbytesperpacket)).ok() + (windows_core::Interface::vtable(self).SetMultiplexedPacketSize)(windows_core::Interface::as_raw(self), cbbytesperpacket).ok() } pub unsafe fn GetMultiplexedPacketSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMultiplexedPacketSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFFTransitionRates(&self, dwmaxfullframerate: u32, dwmaxnonskippingrate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFFTransitionRates)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxfullframerate), core::mem::transmute(dwmaxnonskippingrate)).ok() + (windows_core::Interface::vtable(self).SetFFTransitionRates)(windows_core::Interface::as_raw(self), dwmaxfullframerate, dwmaxnonskippingrate).ok() } pub unsafe fn GetFFTransitionRates(&self, pdwmaxfullframerate: *mut u32, pdwmaxnonskippingrate: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFFTransitionRates)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmaxfullframerate), core::mem::transmute(pdwmaxnonskippingrate)).ok() @@ -31349,11 +31349,11 @@ windows_core::imp::interface_hierarchy!(IStreamBufferInitialize, windows_core::I impl IStreamBufferInitialize { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetHKEY(&self, hkeyroot: super::super::super::System::Registry::HKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHKEY)(windows_core::Interface::as_raw(self), core::mem::transmute(hkeyroot)).ok() + (windows_core::Interface::vtable(self).SetHKEY)(windows_core::Interface::as_raw(self), hkeyroot).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn SetSIDs(&self, csids: u32, ppsid: *mut super::super::super::Security::PSID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(csids), core::mem::transmute(ppsid)).ok() + (windows_core::Interface::vtable(self).SetSIDs)(windows_core::Interface::as_raw(self), csids, core::mem::transmute(ppsid)).ok() } } #[repr(C)] @@ -31424,7 +31424,7 @@ impl core::ops::Deref for IStreamBufferMediaSeeking2 { windows_core::imp::interface_hierarchy!(IStreamBufferMediaSeeking2, windows_core::IUnknown, super::IMediaSeeking, IStreamBufferMediaSeeking); impl IStreamBufferMediaSeeking2 { pub unsafe fn SetRateEx(&self, drate: f64, dwframespersec: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(drate), core::mem::transmute(dwframespersec)).ok() + (windows_core::Interface::vtable(self).SetRateEx)(windows_core::Interface::as_raw(self), drate, dwframespersec).ok() } } #[repr(C)] @@ -31468,7 +31468,7 @@ impl IStreamBufferRecComp { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendEx)(windows_core::Interface::as_raw(self), pszsbrecording.param().abi(), core::mem::transmute(rtstart), core::mem::transmute(rtstop)).ok() + (windows_core::Interface::vtable(self).AppendEx)(windows_core::Interface::as_raw(self), pszsbrecording.param().abi(), rtstart, rtstop).ok() } pub unsafe fn GetCurrentLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31553,7 +31553,7 @@ impl IStreamBufferRecordControl { (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(prtstart)).ok() } pub unsafe fn Stop(&self, rtstop: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), core::mem::transmute(rtstop)).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), rtstop).ok() } pub unsafe 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<()> { (windows_core::Interface::vtable(self).GetRecordingStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(phresult), core::mem::transmute(pbstarted), core::mem::transmute(pbstopped)).ok() @@ -31604,20 +31604,20 @@ impl IStreamBufferRecordingAttribute { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(ulreserved), pszattributename.param().abi(), core::mem::transmute(streambufferattributetype), core::mem::transmute(pbattribute.as_ptr()), pbattribute.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), ulreserved, pszattributename.param().abi(), streambufferattributetype, core::mem::transmute(pbattribute.as_ptr()), pbattribute.len().try_into().unwrap()).ok() } pub unsafe fn GetAttributeCount(&self, ulreserved: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulreserved), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributeCount)(windows_core::Interface::as_raw(self), ulreserved, &mut result__).map(|| result__) } pub unsafe fn GetAttributeByName(&self, pszattributename: P0, pulreserved: *const u32, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), core::mem::transmute(pulreserved), core::mem::transmute(pstreambufferattributetype), core::mem::transmute(pbattribute), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), pulreserved, core::mem::transmute(pstreambufferattributetype), core::mem::transmute(pbattribute), core::mem::transmute(pcblength)).ok() } pub unsafe fn GetAttributeByIndex(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetAttributeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pulreserved), core::mem::transmute(pszattributename), core::mem::transmute(pcchnamelength), core::mem::transmute(pstreambufferattributetype), core::mem::transmute(pbattribute), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetAttributeByIndex)(windows_core::Interface::as_raw(self), windex, pulreserved, core::mem::transmute(pszattributename), core::mem::transmute(pcchnamelength), core::mem::transmute(pstreambufferattributetype), core::mem::transmute(pbattribute), core::mem::transmute(pcblength)).ok() } pub unsafe fn EnumAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31702,7 +31702,7 @@ impl IStreamBufferSink { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(dwrecordtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), dwrecordtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsProfileLocked(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsProfileLocked)(windows_core::Interface::as_raw(self)).ok() @@ -31871,20 +31871,20 @@ impl ITSDT { } pub unsafe fn GetTableDescriptorByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTableDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), core::mem::transmute(btag), core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetTableDescriptorByTag)(windows_core::Interface::as_raw(self), btag, core::mem::transmute(pdwcookie), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableavailable)).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNextTable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), core::mem::transmute(hnexttableiscurrent)).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -32387,7 +32387,7 @@ impl ITuner { (windows_core::Interface::vtable(self).SignalStrength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn TriggerSignalEvents(&self, interval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TriggerSignalEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(interval)).ok() + (windows_core::Interface::vtable(self).TriggerSignalEvents)(windows_core::Interface::as_raw(self), interval).ok() } } #[repr(C)] @@ -32535,7 +32535,7 @@ windows_core::imp::define_interface!(ITunerCap, ITunerCap_Vtbl, 0xe60dfa45_8d56_ windows_core::imp::interface_hierarchy!(ITunerCap, windows_core::IUnknown); impl ITunerCap { pub unsafe fn get_SupportedNetworkTypes(&self, ulcnetworktypesmax: u32, pulcnetworktypes: *mut u32, pguidnetworktypes: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_SupportedNetworkTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcnetworktypesmax), core::mem::transmute(pulcnetworktypes), core::mem::transmute(pguidnetworktypes)).ok() + (windows_core::Interface::vtable(self).get_SupportedNetworkTypes)(windows_core::Interface::as_raw(self), ulcnetworktypesmax, core::mem::transmute(pulcnetworktypes), core::mem::transmute(pguidnetworktypes)).ok() } pub unsafe fn get_SupportedVideoFormats(&self, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_SupportedVideoFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(pulamtunermodetype), core::mem::transmute(pulanalogvideostandard)).ok() @@ -32660,7 +32660,7 @@ impl ITuningSpace { (windows_core::Interface::vtable(self)._NetworkType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Set_NetworkType(&self, networktypeguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set_NetworkType)(windows_core::Interface::as_raw(self), core::mem::transmute(networktypeguid)).ok() + (windows_core::Interface::vtable(self).Set_NetworkType)(windows_core::Interface::as_raw(self), networktypeguid).ok() } pub unsafe fn CreateTuneRequest(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32980,7 +32980,7 @@ impl ITuningSpaceContainer { } pub unsafe fn _TuningSpacesForCLSID2(&self, spaceclsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self)._TuningSpacesForCLSID2)(windows_core::Interface::as_raw(self), core::mem::transmute(spaceclsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self)._TuningSpacesForCLSID2)(windows_core::Interface::as_raw(self), spaceclsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TuningSpacesForName(&self, name: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33014,7 +33014,7 @@ impl ITuningSpaceContainer { (windows_core::Interface::vtable(self).MaxCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxCount(&self, maxcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxCount)(windows_core::Interface::as_raw(self), core::mem::transmute(maxcount)).ok() + (windows_core::Interface::vtable(self).SetMaxCount)(windows_core::Interface::as_raw(self), maxcount).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -33323,7 +33323,7 @@ impl IXDSCodec { (windows_core::Interface::vtable(self).XDSToRatObjOK)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCCSubstreamService(&self, substreammask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCCSubstreamService)(windows_core::Interface::as_raw(self), core::mem::transmute(substreammask)).ok() + (windows_core::Interface::vtable(self).SetCCSubstreamService)(windows_core::Interface::as_raw(self), substreammask).ok() } pub unsafe fn CCSubstreamService(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33337,7 +33337,7 @@ impl IXDSCodec { } pub unsafe fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrLicenseExpDate)(windows_core::Interface::as_raw(self), core::mem::transmute(prottype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrLicenseExpDate)(windows_core::Interface::as_raw(self), prottype, &mut result__).map(|| result__) } pub unsafe fn GetLastErrorCode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastErrorCode)(windows_core::Interface::as_raw(self)).ok() @@ -33435,7 +33435,7 @@ impl IXDSCodecConfig { (windows_core::Interface::vtable(self).GetSecureChannelObject)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPauseBufferTime(&self, dwpausebuffertime: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPauseBufferTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpausebuffertime)).ok() + (windows_core::Interface::vtable(self).SetPauseBufferTime)(windows_core::Interface::as_raw(self), dwpausebuffertime).ok() } } #[repr(C)] @@ -33521,7 +33521,7 @@ impl IXDSToRat { (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ParseXDSBytePair(&self, byte1: u8, byte2: u8, pensystem: *mut EnTvRat_System, penlevel: *mut EnTvRat_GenericLevel, plbfenattributes: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ParseXDSBytePair)(windows_core::Interface::as_raw(self), core::mem::transmute(byte1), core::mem::transmute(byte2), core::mem::transmute(pensystem), core::mem::transmute(penlevel), core::mem::transmute(plbfenattributes)).ok() + (windows_core::Interface::vtable(self).ParseXDSBytePair)(windows_core::Interface::as_raw(self), byte1, byte2, core::mem::transmute(pensystem), core::mem::transmute(penlevel), core::mem::transmute(plbfenattributes)).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs index 1c5758b1e2..5fb1f4158a 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -5,12 +5,12 @@ pub mod Xml; #[inline] pub unsafe fn AMGetErrorTextA(hr: windows_core::HRESULT, pbuffer: &mut [u8]) -> u32 { windows_targets::link!("quartz.dll" "system" fn AMGetErrorTextA(hr : windows_core::HRESULT, pbuffer : windows_core::PSTR, maxlen : u32) -> u32); - AMGetErrorTextA(core::mem::transmute(hr), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()) + AMGetErrorTextA(hr, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn AMGetErrorTextW(hr: windows_core::HRESULT, pbuffer: &mut [u16]) -> u32 { windows_targets::link!("quartz.dll" "system" fn AMGetErrorTextW(hr : windows_core::HRESULT, pbuffer : windows_core::PWSTR, maxlen : u32) -> u32); - AMGetErrorTextW(core::mem::transmute(hr), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()) + AMGetErrorTextW(hr, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()) } pub const ADVISE_CLIPPING: ADVISE_TYPE = ADVISE_TYPE(1i32); pub const ADVISE_COLORKEY: ADVISE_TYPE = ADVISE_TYPE(4i32); @@ -4096,7 +4096,7 @@ impl IAMAnalogVideoDecoder { (windows_core::Interface::vtable(self).AvailableTVFormats)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTVFormat(&self, lanalogvideostandard: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTVFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lanalogvideostandard)).ok() + (windows_core::Interface::vtable(self).SetTVFormat)(windows_core::Interface::as_raw(self), lanalogvideostandard).ok() } pub unsafe fn TVFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4107,7 +4107,7 @@ impl IAMAnalogVideoDecoder { (windows_core::Interface::vtable(self).HorizontalLocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVCRHorizontalLocking(&self, lvcrhorizontallocking: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVCRHorizontalLocking)(windows_core::Interface::as_raw(self), core::mem::transmute(lvcrhorizontallocking)).ok() + (windows_core::Interface::vtable(self).SetVCRHorizontalLocking)(windows_core::Interface::as_raw(self), lvcrhorizontallocking).ok() } pub unsafe fn VCRHorizontalLocking(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4118,7 +4118,7 @@ impl IAMAnalogVideoDecoder { (windows_core::Interface::vtable(self).NumberOfLines)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputEnable(&self, loutputenable: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(loutputenable)).ok() + (windows_core::Interface::vtable(self).SetOutputEnable)(windows_core::Interface::as_raw(self), loutputenable).ok() } pub unsafe fn OutputEnable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4249,21 +4249,21 @@ impl IAMAnalogVideoEncoder { (windows_core::Interface::vtable(self).AvailableTVFormats)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTVFormat(&self, lanalogvideostandard: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTVFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lanalogvideostandard)).ok() + (windows_core::Interface::vtable(self).SetTVFormat)(windows_core::Interface::as_raw(self), lanalogvideostandard).ok() } pub unsafe fn TVFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TVFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCopyProtection(&self, lvideocopyprotection: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCopyProtection)(windows_core::Interface::as_raw(self), core::mem::transmute(lvideocopyprotection)).ok() + (windows_core::Interface::vtable(self).SetCopyProtection)(windows_core::Interface::as_raw(self), lvideocopyprotection).ok() } pub unsafe fn CopyProtection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CopyProtection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCCEnable(&self, lccenable: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCCEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(lccenable)).ok() + (windows_core::Interface::vtable(self).SetCCEnable)(windows_core::Interface::as_raw(self), lccenable).ok() } pub unsafe fn CCEnable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4426,14 +4426,14 @@ impl IAMAudioInputMixer { (windows_core::Interface::vtable(self).Mono)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMixLevel(&self, level: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMixLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetMixLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn MixLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MixLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPan(&self, pan: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPan)(windows_core::Interface::as_raw(self), core::mem::transmute(pan)).ok() + (windows_core::Interface::vtable(self).SetPan)(windows_core::Interface::as_raw(self), pan).ok() } pub unsafe fn Pan(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4447,7 +4447,7 @@ impl IAMAudioInputMixer { (windows_core::Interface::vtable(self).Loudness)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTreble(&self, treble: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTreble)(windows_core::Interface::as_raw(self), core::mem::transmute(treble)).ok() + (windows_core::Interface::vtable(self).SetTreble)(windows_core::Interface::as_raw(self), treble).ok() } pub unsafe fn Treble(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4458,7 +4458,7 @@ impl IAMAudioInputMixer { (windows_core::Interface::vtable(self).TrebleRange)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBass(&self, bass: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBass)(windows_core::Interface::as_raw(self), core::mem::transmute(bass)).ok() + (windows_core::Interface::vtable(self).SetBass)(windows_core::Interface::as_raw(self), bass).ok() } pub unsafe fn Bass(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4656,7 +4656,7 @@ windows_core::imp::define_interface!(IAMAudioRendererStats, IAMAudioRendererStat windows_core::imp::interface_hierarchy!(IAMAudioRendererStats, windows_core::IUnknown); impl IAMAudioRendererStats { pub unsafe fn GetStatParam(&self, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatParam)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparam), core::mem::transmute(pdwparam1), core::mem::transmute(pdwparam2)).ok() + (windows_core::Interface::vtable(self).GetStatParam)(windows_core::Interface::as_raw(self), dwparam, core::mem::transmute(pdwparam1), core::mem::transmute(pdwparam2)).ok() } } #[repr(C)] @@ -4684,7 +4684,7 @@ windows_core::imp::define_interface!(IAMBufferNegotiation, IAMBufferNegotiation_ windows_core::imp::interface_hierarchy!(IAMBufferNegotiation, windows_core::IUnknown); impl IAMBufferNegotiation { pub unsafe fn SuggestAllocatorProperties(&self, pprop: *const ALLOCATOR_PROPERTIES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SuggestAllocatorProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pprop)).ok() + (windows_core::Interface::vtable(self).SuggestAllocatorProperties)(windows_core::Interface::as_raw(self), pprop).ok() } pub unsafe fn GetAllocatorProperties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4732,13 +4732,13 @@ windows_core::imp::define_interface!(IAMCameraControl, IAMCameraControl_Vtbl, 0x windows_core::imp::interface_hierarchy!(IAMCameraControl, windows_core::IUnknown); impl IAMCameraControl { pub unsafe fn GetRange(&self, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflags)).ok() + (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), property, core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflags)).ok() } pub unsafe fn Set(&self, property: i32, lvalue: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(lvalue), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), property, lvalue, flags).ok() } pub unsafe fn Get(&self, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(lvalue), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), property, core::mem::transmute(lvalue), core::mem::transmute(flags)).ok() } } #[repr(C)] @@ -4786,13 +4786,13 @@ impl IAMCertifiedOutputProtection { (windows_core::Interface::vtable(self).KeyExchange)(windows_core::Interface::as_raw(self), core::mem::transmute(prandom), core::mem::transmute(varlencertgh), core::mem::transmute(pdwlengthcertgh)).ok() } pub unsafe fn SessionSequenceStart(&self, psig: *const AMCOPPSignature) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionSequenceStart)(windows_core::Interface::as_raw(self), core::mem::transmute(psig)).ok() + (windows_core::Interface::vtable(self).SessionSequenceStart)(windows_core::Interface::as_raw(self), psig).ok() } pub unsafe fn ProtectionCommand(&self, cmd: *const AMCOPPCommand) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProtectionCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(cmd)).ok() + (windows_core::Interface::vtable(self).ProtectionCommand)(windows_core::Interface::as_raw(self), cmd).ok() } pub unsafe fn ProtectionStatus(&self, pstatusinput: *const AMCOPPStatusInput, pstatusoutput: *mut AMCOPPStatusOutput) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProtectionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatusinput), core::mem::transmute(pstatusoutput)).ok() + (windows_core::Interface::vtable(self).ProtectionStatus)(windows_core::Interface::as_raw(self), pstatusinput, core::mem::transmute(pstatusoutput)).ok() } } #[repr(C)] @@ -4939,7 +4939,7 @@ windows_core::imp::define_interface!(IAMClockAdjust, IAMClockAdjust_Vtbl, 0x4d54 windows_core::imp::interface_hierarchy!(IAMClockAdjust, windows_core::IUnknown); impl IAMClockAdjust { pub unsafe fn SetClockDelta(&self, rtdelta: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClockDelta)(windows_core::Interface::as_raw(self), core::mem::transmute(rtdelta)).ok() + (windows_core::Interface::vtable(self).SetClockDelta)(windows_core::Interface::as_raw(self), rtdelta).ok() } } #[repr(C)] @@ -4967,7 +4967,7 @@ windows_core::imp::define_interface!(IAMClockSlave, IAMClockSlave_Vtbl, 0x9fd527 windows_core::imp::interface_hierarchy!(IAMClockSlave, windows_core::IUnknown); impl IAMClockSlave { pub unsafe fn SetErrorTolerance(&self, dwtolerance: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorTolerance)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtolerance)).ok() + (windows_core::Interface::vtable(self).SetErrorTolerance)(windows_core::Interface::as_raw(self), dwtolerance).ok() } pub unsafe fn GetErrorTolerance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5030,7 +5030,7 @@ impl IAMCollection { } pub unsafe fn Item(&self, litem: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(litem), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), litem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5101,7 +5101,7 @@ windows_core::imp::define_interface!(IAMCopyCaptureFileProgress, IAMCopyCaptureF windows_core::imp::interface_hierarchy!(IAMCopyCaptureFileProgress, windows_core::IUnknown); impl IAMCopyCaptureFileProgress { pub unsafe fn Progress(&self, iprogress: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), core::mem::transmute(iprogress)).ok() + (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), iprogress).ok() } } #[repr(C)] @@ -5132,17 +5132,17 @@ impl IAMCrossbar { (windows_core::Interface::vtable(self).get_PinCounts)(windows_core::Interface::as_raw(self), core::mem::transmute(outputpincount), core::mem::transmute(inputpincount)).ok() } pub unsafe fn CanRoute(&self, outputpinindex: i32, inputpinindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CanRoute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputpinindex), core::mem::transmute(inputpinindex)).ok() + (windows_core::Interface::vtable(self).CanRoute)(windows_core::Interface::as_raw(self), outputpinindex, inputpinindex).ok() } pub unsafe fn Route(&self, outputpinindex: i32, inputpinindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Route)(windows_core::Interface::as_raw(self), core::mem::transmute(outputpinindex), core::mem::transmute(inputpinindex)).ok() + (windows_core::Interface::vtable(self).Route)(windows_core::Interface::as_raw(self), outputpinindex, inputpinindex).ok() } pub unsafe fn get_IsRoutedTo(&self, outputpinindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IsRoutedTo)(windows_core::Interface::as_raw(self), core::mem::transmute(outputpinindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IsRoutedTo)(windows_core::Interface::as_raw(self), outputpinindex, &mut result__).map(|| result__) } pub unsafe fn get_CrossbarPinInfo(&self, isinputpin: bool, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_CrossbarPinInfo)(windows_core::Interface::as_raw(self), isinputpin.into(), core::mem::transmute(pinindex), core::mem::transmute(pinindexrelated), core::mem::transmute(physicaltype)).ok() + (windows_core::Interface::vtable(self).get_CrossbarPinInfo)(windows_core::Interface::as_raw(self), isinputpin.into(), pinindex, core::mem::transmute(pinindexrelated), core::mem::transmute(physicaltype)).ok() } } #[repr(C)] @@ -5208,7 +5208,7 @@ windows_core::imp::interface_hierarchy!(IAMDecoderCaps, windows_core::IUnknown); impl IAMDecoderCaps { pub unsafe fn GetDecoderCaps(&self, dwcapindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDecoderCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcapindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDecoderCaps)(windows_core::Interface::as_raw(self), dwcapindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -5245,13 +5245,13 @@ impl IAMDevMemoryAllocator { (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcbtotalfree), core::mem::transmute(pdwcblargestfree), core::mem::transmute(pdwcbtotalmemory), core::mem::transmute(pdwcbminimumchunk)).ok() } pub unsafe fn CheckMemory(&self, pbuffer: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer)).ok() + (windows_core::Interface::vtable(self).CheckMemory)(windows_core::Interface::as_raw(self), pbuffer).ok() } pub unsafe fn Alloc(&self, ppbuffer: *mut *mut u8, pdwcbbuffer: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbuffer), core::mem::transmute(pdwcbbuffer)).ok() } pub unsafe fn Free(&self, pbuffer: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer)).ok() + (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), pbuffer).ok() } pub unsafe fn GetDevMemoryObject(&self, ppunkinnner: *mut Option, punkouter: P1) -> windows_core::Result<()> where @@ -5461,7 +5461,7 @@ impl IAMDirectSound { (windows_core::Interface::vtable(self).ReleaseSecondaryBufferInterface)(windows_core::Interface::as_raw(self), lpdsb.param().abi()).ok() } pub unsafe fn SetFocusWindow(&self, param0: super::super::Foundation::HWND, param1: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFocusWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), param1.into()).ok() + (windows_core::Interface::vtable(self).SetFocusWindow)(windows_core::Interface::as_raw(self), param0, param1.into()).ok() } pub unsafe fn GetFocusWindow(&self, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFocusWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(param0), core::mem::transmute(param1)).ok() @@ -5591,7 +5591,7 @@ impl IAMDroppedFrames { (windows_core::Interface::vtable(self).GetNumNotDropped)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDroppedInfo(&self, lsize: i32, plarray: *mut i32, plnumcopied: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDroppedInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lsize), core::mem::transmute(plarray), core::mem::transmute(plnumcopied)).ok() + (windows_core::Interface::vtable(self).GetDroppedInfo)(windows_core::Interface::as_raw(self), lsize, core::mem::transmute(plarray), core::mem::transmute(plnumcopied)).ok() } pub unsafe fn GetAverageFrameSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5665,7 +5665,7 @@ windows_core::imp::define_interface!(IAMExtDevice, IAMExtDevice_Vtbl, 0xb5730a90 windows_core::imp::interface_hierarchy!(IAMExtDevice, windows_core::IUnknown); impl IAMExtDevice { pub unsafe fn GetCapability(&self, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(capability), core::mem::transmute(pvalue), core::mem::transmute(pdblvalue)).ok() + (windows_core::Interface::vtable(self).GetCapability)(windows_core::Interface::as_raw(self), capability, core::mem::transmute(pvalue), core::mem::transmute(pdblvalue)).ok() } pub unsafe fn ExternalDeviceID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5676,7 +5676,7 @@ impl IAMExtDevice { (windows_core::Interface::vtable(self).ExternalDeviceVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDevicePower(&self, powermode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDevicePower)(windows_core::Interface::as_raw(self), core::mem::transmute(powermode)).ok() + (windows_core::Interface::vtable(self).SetDevicePower)(windows_core::Interface::as_raw(self), powermode).ok() } pub unsafe fn DevicePower(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5684,10 +5684,10 @@ impl IAMExtDevice { } pub unsafe fn Calibrate(&self, hevent: usize, mode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Calibrate)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), core::mem::transmute(mode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Calibrate)(windows_core::Interface::as_raw(self), hevent, mode, &mut result__).map(|| result__) } pub unsafe fn SetDevicePort(&self, deviceport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDevicePort)(windows_core::Interface::as_raw(self), core::mem::transmute(deviceport)).ok() + (windows_core::Interface::vtable(self).SetDevicePort)(windows_core::Interface::as_raw(self), deviceport).ok() } pub unsafe fn DevicePort(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5801,17 +5801,17 @@ windows_core::imp::define_interface!(IAMExtTransport, IAMExtTransport_Vtbl, 0xa0 windows_core::imp::interface_hierarchy!(IAMExtTransport, windows_core::IUnknown); impl IAMExtTransport { pub unsafe fn GetCapability(&self, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(capability), core::mem::transmute(pvalue), core::mem::transmute(pdblvalue)).ok() + (windows_core::Interface::vtable(self).GetCapability)(windows_core::Interface::as_raw(self), capability, core::mem::transmute(pvalue), core::mem::transmute(pdblvalue)).ok() } pub unsafe fn SetMediaState(&self, state: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMediaState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetMediaState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn MediaState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MediaState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLocalControl(&self, state: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalControl)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetLocalControl)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn LocalControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5819,40 +5819,40 @@ impl IAMExtTransport { } pub unsafe fn GetStatus(&self, statusitem: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(statusitem), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), statusitem, &mut result__).map(|| result__) } pub unsafe fn GetTransportBasicParameters(&self, param: i32, pvalue: *mut i32, ppszdata: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTransportBasicParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(pvalue), core::mem::transmute(ppszdata)).ok() + (windows_core::Interface::vtable(self).GetTransportBasicParameters)(windows_core::Interface::as_raw(self), param, core::mem::transmute(pvalue), core::mem::transmute(ppszdata)).ok() } pub unsafe fn SetTransportBasicParameters(&self, param: i32, value: i32, pszdata: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransportBasicParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(value), pszdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransportBasicParameters)(windows_core::Interface::as_raw(self), param, value, pszdata.param().abi()).ok() } pub unsafe fn GetTransportVideoParameters(&self, param: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTransportVideoParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTransportVideoParameters)(windows_core::Interface::as_raw(self), param, &mut result__).map(|| result__) } pub unsafe fn SetTransportVideoParameters(&self, param: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransportVideoParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTransportVideoParameters)(windows_core::Interface::as_raw(self), param, value).ok() } pub unsafe fn GetTransportAudioParameters(&self, param: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTransportAudioParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTransportAudioParameters)(windows_core::Interface::as_raw(self), param, &mut result__).map(|| result__) } pub unsafe fn SetTransportAudioParameters(&self, param: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransportAudioParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTransportAudioParameters)(windows_core::Interface::as_raw(self), param, value).ok() } pub unsafe fn SetMode(&self, mode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Mode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Mode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRate(&self, dblrate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(dblrate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), dblrate).ok() } pub unsafe fn Rate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5862,41 +5862,41 @@ impl IAMExtTransport { (windows_core::Interface::vtable(self).GetChase)(windows_core::Interface::as_raw(self), core::mem::transmute(penabled), core::mem::transmute(poffset), core::mem::transmute(phevent)).ok() } pub unsafe fn SetChase(&self, enable: i32, offset: i32, hevent: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChase)(windows_core::Interface::as_raw(self), core::mem::transmute(enable), core::mem::transmute(offset), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SetChase)(windows_core::Interface::as_raw(self), enable, offset, hevent).ok() } pub unsafe fn GetBump(&self, pspeed: *mut i32, pduration: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBump)(windows_core::Interface::as_raw(self), core::mem::transmute(pspeed), core::mem::transmute(pduration)).ok() } pub unsafe fn SetBump(&self, speed: i32, duration: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBump)(windows_core::Interface::as_raw(self), core::mem::transmute(speed), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).SetBump)(windows_core::Interface::as_raw(self), speed, duration).ok() } pub unsafe fn AntiClogControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AntiClogControl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAntiClogControl(&self, enable: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAntiClogControl)(windows_core::Interface::as_raw(self), core::mem::transmute(enable)).ok() + (windows_core::Interface::vtable(self).SetAntiClogControl)(windows_core::Interface::as_raw(self), enable).ok() } pub unsafe fn GetEditPropertySet(&self, editid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEditPropertySet)(windows_core::Interface::as_raw(self), core::mem::transmute(editid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEditPropertySet)(windows_core::Interface::as_raw(self), editid, &mut result__).map(|| result__) } pub unsafe fn SetEditPropertySet(&self, peditid: *mut i32, state: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEditPropertySet)(windows_core::Interface::as_raw(self), core::mem::transmute(peditid), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetEditPropertySet)(windows_core::Interface::as_raw(self), core::mem::transmute(peditid), state).ok() } pub unsafe fn GetEditProperty(&self, editid: i32, param: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEditProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(editid), core::mem::transmute(param), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEditProperty)(windows_core::Interface::as_raw(self), editid, param, &mut result__).map(|| result__) } pub unsafe fn SetEditProperty(&self, editid: i32, param: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEditProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(editid), core::mem::transmute(param), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEditProperty)(windows_core::Interface::as_raw(self), editid, param, value).ok() } pub unsafe fn EditStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EditStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEditStart(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEditStart)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEditStart)(windows_core::Interface::as_raw(self), value).ok() } } #[repr(C)] @@ -6266,13 +6266,13 @@ impl IAMExtendedSeeking { (windows_core::Interface::vtable(self).CurrentMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(pcurrentmarker)).ok() } pub unsafe fn GetMarkerTime(&self, markernum: i32, pmarkertime: *mut f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMarkerTime)(windows_core::Interface::as_raw(self), core::mem::transmute(markernum), core::mem::transmute(pmarkertime)).ok() + (windows_core::Interface::vtable(self).GetMarkerTime)(windows_core::Interface::as_raw(self), markernum, core::mem::transmute(pmarkertime)).ok() } pub unsafe fn GetMarkerName(&self, markernum: i32, pbstrmarkername: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMarkerName)(windows_core::Interface::as_raw(self), core::mem::transmute(markernum), core::mem::transmute(pbstrmarkername)).ok() + (windows_core::Interface::vtable(self).GetMarkerName)(windows_core::Interface::as_raw(self), markernum, core::mem::transmute(pbstrmarkername)).ok() } pub unsafe fn SetPlaybackSpeed(&self, speed: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlaybackSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(speed)).ok() + (windows_core::Interface::vtable(self).SetPlaybackSpeed)(windows_core::Interface::as_raw(self), speed).ok() } pub unsafe fn PlaybackSpeed(&self, pspeed: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PlaybackSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(pspeed)).ok() @@ -6472,13 +6472,13 @@ impl IAMGraphStreams { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindUpstreamInterface)(windows_core::Interface::as_raw(self), ppin.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvinterface), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).FindUpstreamInterface)(windows_core::Interface::as_raw(self), ppin.param().abi(), riid, core::mem::transmute(ppvinterface), dwflags).ok() } pub unsafe fn SyncUsingStreamOffset(&self, busestreamoffset: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SyncUsingStreamOffset)(windows_core::Interface::as_raw(self), busestreamoffset.into()).ok() } pub unsafe fn SetMaxGraphLatency(&self, rtmaxgraphlatency: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxGraphLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(rtmaxgraphlatency)).ok() + (windows_core::Interface::vtable(self).SetMaxGraphLatency)(windows_core::Interface::as_raw(self), rtmaxgraphlatency).ok() } } #[repr(C)] @@ -6564,13 +6564,13 @@ impl IAMLine21Decoder { (windows_core::Interface::vtable(self).GetCurrentService)(windows_core::Interface::as_raw(self), core::mem::transmute(lpservice)).ok() } pub unsafe fn SetCurrentService(&self, service: AM_LINE21_CCSERVICE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentService)(windows_core::Interface::as_raw(self), core::mem::transmute(service)).ok() + (windows_core::Interface::vtable(self).SetCurrentService)(windows_core::Interface::as_raw(self), service).ok() } pub unsafe fn GetServiceState(&self, lpstate: *mut AM_LINE21_CCSTATE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetServiceState)(windows_core::Interface::as_raw(self), core::mem::transmute(lpstate)).ok() } pub unsafe fn SetServiceState(&self, state: AM_LINE21_CCSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetServiceState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetServiceState)(windows_core::Interface::as_raw(self), state).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetOutputFormat(&self, lpbmih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER) -> windows_core::Result<()> { @@ -6584,7 +6584,7 @@ impl IAMLine21Decoder { (windows_core::Interface::vtable(self).GetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwphyscolor)).ok() } pub unsafe fn SetBackgroundColor(&self, dwphyscolor: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(dwphyscolor)).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), dwphyscolor).ok() } pub unsafe fn GetRedrawAlways(&self, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRedrawAlways)(windows_core::Interface::as_raw(self), core::mem::transmute(lpboption)).ok() @@ -6596,7 +6596,7 @@ impl IAMLine21Decoder { (windows_core::Interface::vtable(self).GetDrawBackgroundMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmode)).ok() } pub unsafe fn SetDrawBackgroundMode(&self, mode: AM_LINE21_DRAWBGMODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDrawBackgroundMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetDrawBackgroundMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[repr(C)] @@ -6895,10 +6895,10 @@ windows_core::imp::interface_hierarchy!(IAMMediaContent2, windows_core::IUnknown #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent2 { pub unsafe fn get_MediaParameter(&self, entrynum: i32, bstrname: &windows_core::BSTR, pbstrvalue: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_MediaParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(entrynum), core::mem::transmute_copy(bstrname), core::mem::transmute(pbstrvalue)).ok() + (windows_core::Interface::vtable(self).get_MediaParameter)(windows_core::Interface::as_raw(self), entrynum, core::mem::transmute_copy(bstrname), core::mem::transmute(pbstrvalue)).ok() } pub unsafe fn get_MediaParameterName(&self, entrynum: i32, index: i32, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_MediaParameterName)(windows_core::Interface::as_raw(self), core::mem::transmute(entrynum), core::mem::transmute(index), core::mem::transmute(pbstrname)).ok() + (windows_core::Interface::vtable(self).get_MediaParameterName)(windows_core::Interface::as_raw(self), entrynum, index, core::mem::transmute(pbstrname)).ok() } pub unsafe fn PlaylistCount(&self, pnumberentries: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PlaylistCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pnumberentries)).ok() @@ -6959,10 +6959,10 @@ impl IAMMediaStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psourceobject.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(purposeid), core::mem::transmute(streamtype)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psourceobject.param().abi(), dwflags, purposeid, streamtype).ok() } pub unsafe fn SetState(&self, state: FILTER_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn JoinAMMultiMediaStream(&self, pammultimediastream: P0) -> windows_core::Result<()> where @@ -7065,7 +7065,7 @@ impl IAMMediaTypeSample { (windows_core::Interface::vtable(self).GetTime)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimestart), core::mem::transmute(ptimeend)).ok() } pub unsafe fn SetTime(&self, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTime)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimestart), core::mem::transmute(ptimeend)).ok() + (windows_core::Interface::vtable(self).SetTime)(windows_core::Interface::as_raw(self), ptimestart, ptimeend).ok() } pub unsafe fn IsSyncPoint(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsSyncPoint)(windows_core::Interface::as_raw(self)).ok() @@ -7083,7 +7083,7 @@ impl IAMMediaTypeSample { (windows_core::Interface::vtable(self).GetActualDataLength)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetActualDataLength(&self, __midl__iammediatypesample0000: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActualDataLength)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iammediatypesample0000)).ok() + (windows_core::Interface::vtable(self).SetActualDataLength)(windows_core::Interface::as_raw(self), __midl__iammediatypesample0000).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetMediaType(&self) -> windows_core::Result<*mut super::MediaFoundation::AM_MEDIA_TYPE> { @@ -7104,7 +7104,7 @@ impl IAMMediaTypeSample { (windows_core::Interface::vtable(self).GetMediaTime)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimestart), core::mem::transmute(ptimeend)).ok() } pub unsafe fn SetMediaTime(&self, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMediaTime)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimestart), core::mem::transmute(ptimeend)).ok() + (windows_core::Interface::vtable(self).SetMediaTime)(windows_core::Interface::as_raw(self), ptimestart, ptimeend).ok() } } #[repr(C)] @@ -7275,25 +7275,25 @@ windows_core::imp::interface_hierarchy!(IAMMediaTypeStream, windows_core::IUnkno impl IAMMediaTypeStream { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetFormat(&self, pmediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pmediatype), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pmediatype), dwflags).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetFormat(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pmediatype), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pmediatype), dwflags).ok() } pub unsafe fn CreateSample(&self, lsamplesize: i32, pbbuffer: *const u8, dwflags: u32, punkouter: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), core::mem::transmute(lsamplesize), core::mem::transmute(pbbuffer), core::mem::transmute(dwflags), punkouter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), lsamplesize, pbbuffer, dwflags, punkouter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamAllocatorRequirements(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamAllocatorRequirements)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStreamAllocatorRequirements(&self, pprops: *const ALLOCATOR_PROPERTIES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamAllocatorRequirements)(windows_core::Interface::as_raw(self), core::mem::transmute(pprops)).ok() + (windows_core::Interface::vtable(self).SetStreamAllocatorRequirements)(windows_core::Interface::as_raw(self), pprops).ok() } } #[repr(C)] @@ -7382,7 +7382,7 @@ impl IAMMultiMediaStream { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(streamtype), dwflags.0 as _, pfiltergraph.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), streamtype, dwflags.0 as _, pfiltergraph.param().abi()).ok() } pub unsafe fn GetFilterGraph(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7398,13 +7398,13 @@ impl IAMMultiMediaStream { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMediaStream)(windows_core::Interface::as_raw(self), pstreamobject.param().abi(), core::mem::transmute(purposeid), dwflags.0 as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddMediaStream)(windows_core::Interface::as_raw(self), pstreamobject.param().abi(), purposeid, dwflags.0 as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenFile(&self, pszfilename: P0, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OpenFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenMoniker(&self, pctx: P0, pmoniker: P1, dwflags: u32) -> windows_core::Result<()> @@ -7412,10 +7412,10 @@ impl IAMMultiMediaStream { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenMoniker)(windows_core::Interface::as_raw(self), pctx.param().abi(), pmoniker.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OpenMoniker)(windows_core::Interface::as_raw(self), pctx.param().abi(), pmoniker.param().abi(), dwflags).ok() } pub unsafe fn Render(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -7528,31 +7528,31 @@ impl IAMNetShowConfig { (windows_core::Interface::vtable(self).BufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pbufferingtime)).ok() } pub unsafe fn SetBufferingTime(&self, bufferingtime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(bufferingtime)).ok() + (windows_core::Interface::vtable(self).SetBufferingTime)(windows_core::Interface::as_raw(self), bufferingtime).ok() } pub unsafe fn UseFixedUDPPort(&self, pusefixedudpport: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UseFixedUDPPort)(windows_core::Interface::as_raw(self), core::mem::transmute(pusefixedudpport)).ok() } pub unsafe fn SetUseFixedUDPPort(&self, usefixedudpport: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseFixedUDPPort)(windows_core::Interface::as_raw(self), core::mem::transmute(usefixedudpport)).ok() + (windows_core::Interface::vtable(self).SetUseFixedUDPPort)(windows_core::Interface::as_raw(self), usefixedudpport).ok() } pub unsafe fn FixedUDPPort(&self, pfixedudpport: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FixedUDPPort)(windows_core::Interface::as_raw(self), core::mem::transmute(pfixedudpport)).ok() } pub unsafe fn SetFixedUDPPort(&self, fixedudpport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFixedUDPPort)(windows_core::Interface::as_raw(self), core::mem::transmute(fixedudpport)).ok() + (windows_core::Interface::vtable(self).SetFixedUDPPort)(windows_core::Interface::as_raw(self), fixedudpport).ok() } pub unsafe fn UseHTTPProxy(&self, pusehttpproxy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UseHTTPProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(pusehttpproxy)).ok() } pub unsafe fn SetUseHTTPProxy(&self, usehttpproxy: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseHTTPProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(usehttpproxy)).ok() + (windows_core::Interface::vtable(self).SetUseHTTPProxy)(windows_core::Interface::as_raw(self), usehttpproxy).ok() } pub unsafe fn EnableAutoProxy(&self, penableautoproxy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableAutoProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(penableautoproxy)).ok() } pub unsafe fn SetEnableAutoProxy(&self, enableautoproxy: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableAutoProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(enableautoproxy)).ok() + (windows_core::Interface::vtable(self).SetEnableAutoProxy)(windows_core::Interface::as_raw(self), enableautoproxy).ok() } pub unsafe fn HTTPProxyHost(&self, pbstrhttpproxyhost: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HTTPProxyHost)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrhttpproxyhost)).ok() @@ -7564,31 +7564,31 @@ impl IAMNetShowConfig { (windows_core::Interface::vtable(self).HTTPProxyPort)(windows_core::Interface::as_raw(self), core::mem::transmute(phttpproxyport)).ok() } pub unsafe fn SetHTTPProxyPort(&self, httpproxyport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHTTPProxyPort)(windows_core::Interface::as_raw(self), core::mem::transmute(httpproxyport)).ok() + (windows_core::Interface::vtable(self).SetHTTPProxyPort)(windows_core::Interface::as_raw(self), httpproxyport).ok() } pub unsafe fn EnableMulticast(&self, penablemulticast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableMulticast)(windows_core::Interface::as_raw(self), core::mem::transmute(penablemulticast)).ok() } pub unsafe fn SetEnableMulticast(&self, enablemulticast: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), core::mem::transmute(enablemulticast)).ok() + (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), enablemulticast).ok() } pub unsafe fn EnableUDP(&self, penableudp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableUDP)(windows_core::Interface::as_raw(self), core::mem::transmute(penableudp)).ok() } pub unsafe fn SetEnableUDP(&self, enableudp: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), core::mem::transmute(enableudp)).ok() + (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), enableudp).ok() } pub unsafe fn EnableTCP(&self, penabletcp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableTCP)(windows_core::Interface::as_raw(self), core::mem::transmute(penabletcp)).ok() } pub unsafe fn SetEnableTCP(&self, enabletcp: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableTCP)(windows_core::Interface::as_raw(self), core::mem::transmute(enabletcp)).ok() + (windows_core::Interface::vtable(self).SetEnableTCP)(windows_core::Interface::as_raw(self), enabletcp).ok() } pub unsafe fn EnableHTTP(&self, penablehttp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableHTTP)(windows_core::Interface::as_raw(self), core::mem::transmute(penablehttp)).ok() } pub unsafe fn SetEnableHTTP(&self, enablehttp: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), core::mem::transmute(enablehttp)).ok() + (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), enablehttp).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7792,13 +7792,13 @@ impl IAMNetShowExProps { (windows_core::Interface::vtable(self).CodecCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcodeccount)).ok() } pub unsafe fn GetCodecInstalled(&self, codecnum: i32, pcodecinstalled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodecInstalled)(windows_core::Interface::as_raw(self), core::mem::transmute(codecnum), core::mem::transmute(pcodecinstalled)).ok() + (windows_core::Interface::vtable(self).GetCodecInstalled)(windows_core::Interface::as_raw(self), codecnum, core::mem::transmute(pcodecinstalled)).ok() } pub unsafe fn GetCodecDescription(&self, codecnum: i32, pbstrcodecdescription: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodecDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(codecnum), core::mem::transmute(pbstrcodecdescription)).ok() + (windows_core::Interface::vtable(self).GetCodecDescription)(windows_core::Interface::as_raw(self), codecnum, core::mem::transmute(pbstrcodecdescription)).ok() } pub unsafe fn GetCodecURL(&self, codecnum: i32, pbstrcodecurl: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodecURL)(windows_core::Interface::as_raw(self), core::mem::transmute(codecnum), core::mem::transmute(pbstrcodecurl)).ok() + (windows_core::Interface::vtable(self).GetCodecURL)(windows_core::Interface::as_raw(self), codecnum, core::mem::transmute(pbstrcodecurl)).ok() } pub unsafe fn CreationDate(&self, pcreationdate: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreationDate)(windows_core::Interface::as_raw(self), core::mem::transmute(pcreationdate)).ok() @@ -7905,7 +7905,7 @@ windows_core::imp::interface_hierarchy!(IAMNetShowPreroll, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl IAMNetShowPreroll { pub unsafe fn SetPreroll(&self, fpreroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), core::mem::transmute(fpreroll)).ok() + (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), fpreroll).ok() } pub unsafe fn Preroll(&self, pfpreroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Preroll)(windows_core::Interface::as_raw(self), core::mem::transmute(pfpreroll)).ok() @@ -8100,7 +8100,7 @@ impl IAMOverlayFX { (windows_core::Interface::vtable(self).QueryOverlayFXCaps)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOverlayFX(&self, dwoverlayfx: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayFX)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoverlayfx)).ok() + (windows_core::Interface::vtable(self).SetOverlayFX)(windows_core::Interface::as_raw(self), dwoverlayfx).ok() } pub unsafe fn GetOverlayFX(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8165,7 +8165,7 @@ impl IAMParse { (windows_core::Interface::vtable(self).GetParseTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParseTime(&self, rtcurrent: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParseTime)(windows_core::Interface::as_raw(self), core::mem::transmute(rtcurrent)).ok() + (windows_core::Interface::vtable(self).SetParseTime)(windows_core::Interface::as_raw(self), rtcurrent).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() @@ -8256,13 +8256,13 @@ impl IAMPlayList { } pub unsafe fn GetItem(&self, dwitemindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwitemindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), dwitemindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNamedEvent(&self, pwszeventname: P0, dwitemindex: u32, ppitem: *mut Option, pdwflags: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNamedEvent)(windows_core::Interface::as_raw(self), pwszeventname.param().abi(), core::mem::transmute(dwitemindex), core::mem::transmute(ppitem), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).GetNamedEvent)(windows_core::Interface::as_raw(self), pwszeventname.param().abi(), dwitemindex, core::mem::transmute(ppitem), core::mem::transmute(pdwflags)).ok() } pub unsafe fn GetRepeatInfo(&self, pdwrepeatcount: *mut u32, pdwrepeatstart: *mut u32, pdwrepeatend: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRepeatInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwrepeatcount), core::mem::transmute(pdwrepeatstart), core::mem::transmute(pdwrepeatend)).ok() @@ -8351,31 +8351,31 @@ impl IAMPlayListItem { } pub unsafe fn GetSourceURL(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceURL)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSourceURL)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetSourceStart(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceStart)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSourceStart)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| result__) } pub unsafe fn GetSourceDuration(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSourceDuration)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| result__) } pub unsafe fn GetSourceStartMarker(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceStartMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSourceStartMarker)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| result__) } pub unsafe fn GetSourceEndMarker(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceEndMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSourceEndMarker)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| result__) } pub unsafe fn GetSourceStartMarkerName(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceStartMarkerName)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSourceStartMarkerName)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetSourceEndMarkerName(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceEndMarkerName)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSourceEndMarkerName)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetLinkURL(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8383,7 +8383,7 @@ impl IAMPlayListItem { } pub unsafe fn GetScanDuration(&self, dwsourceindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScanDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourceindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetScanDuration)(windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -8551,23 +8551,23 @@ windows_core::imp::interface_hierarchy!(IAMPluginControl, windows_core::IUnknown impl IAMPluginControl { pub unsafe fn GetPreferredClsid(&self, subtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreferredClsid)(windows_core::Interface::as_raw(self), core::mem::transmute(subtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPreferredClsid)(windows_core::Interface::as_raw(self), subtype, &mut result__).map(|| result__) } pub unsafe fn GetPreferredClsidByIndex(&self, index: u32, subtype: *mut windows_core::GUID, clsid: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPreferredClsidByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(subtype), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).GetPreferredClsidByIndex)(windows_core::Interface::as_raw(self), index, core::mem::transmute(subtype), core::mem::transmute(clsid)).ok() } pub unsafe fn SetPreferredClsid(&self, subtype: *const windows_core::GUID, clsid: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreferredClsid)(windows_core::Interface::as_raw(self), core::mem::transmute(subtype), core::mem::transmute(clsid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPreferredClsid)(windows_core::Interface::as_raw(self), subtype, core::mem::transmute(clsid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsDisabled(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).IsDisabled)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn GetDisabledByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisabledByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDisabledByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn SetDisabled(&self, clsid: *const windows_core::GUID, disabled: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), disabled.into()).ok() + (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), clsid, disabled.into()).ok() } pub unsafe fn IsLegacyDisabled(&self, dllname: P0) -> windows_core::Result<()> where @@ -8668,10 +8668,10 @@ impl IAMPushSource { (windows_core::Interface::vtable(self).GetPushSourceFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPushSourceFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPushSourceFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetPushSourceFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetStreamOffset(&self, rtoffset: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(rtoffset)).ok() + (windows_core::Interface::vtable(self).SetStreamOffset)(windows_core::Interface::as_raw(self), rtoffset).ok() } pub unsafe fn GetStreamOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8682,7 +8682,7 @@ impl IAMPushSource { (windows_core::Interface::vtable(self).GetMaxStreamOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxStreamOffset(&self, rtmaxoffset: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxStreamOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(rtmaxoffset)).ok() + (windows_core::Interface::vtable(self).SetMaxStreamOffset)(windows_core::Interface::as_raw(self), rtmaxoffset).ok() } } #[repr(C)] @@ -8794,7 +8794,7 @@ windows_core::imp::define_interface!(IAMResourceControl, IAMResourceControl_Vtbl windows_core::imp::interface_hierarchy!(IAMResourceControl, windows_core::IUnknown); impl IAMResourceControl { pub unsafe fn Reserve(&self, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reserve)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Reserve)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -8839,17 +8839,17 @@ impl IAMStats { (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetValueByIndex(&self, lindex: i32, szname: *mut windows_core::BSTR, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValueByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(szname), core::mem::transmute(lcount), core::mem::transmute(dlast), core::mem::transmute(daverage), core::mem::transmute(dstddev), core::mem::transmute(dmin), core::mem::transmute(dmax)).ok() + (windows_core::Interface::vtable(self).GetValueByIndex)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(szname), core::mem::transmute(lcount), core::mem::transmute(dlast), core::mem::transmute(daverage), core::mem::transmute(dstddev), core::mem::transmute(dmin), core::mem::transmute(dmax)).ok() } pub unsafe fn GetValueByName(&self, szname: &windows_core::BSTR, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(szname), core::mem::transmute(lindex), core::mem::transmute(lcount), core::mem::transmute(dlast), core::mem::transmute(daverage), core::mem::transmute(dstddev), core::mem::transmute(dmin), core::mem::transmute(dmax)).ok() } pub unsafe fn GetIndex(&self, szname: &windows_core::BSTR, lcreate: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(szname), core::mem::transmute(lcreate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(szname), lcreate, &mut result__).map(|| result__) } pub unsafe fn AddValue(&self, lindex: i32, dvalue: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddValue)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(dvalue)).ok() + (windows_core::Interface::vtable(self).AddValue)(windows_core::Interface::as_raw(self), lindex, dvalue).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8944,7 +8944,7 @@ impl IAMStreamConfig { } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetStreamCaps(&self, iindex: i32, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pscc: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(ppmt), core::mem::transmute(pscc)).ok() + (windows_core::Interface::vtable(self).GetStreamCaps)(windows_core::Interface::as_raw(self), iindex, core::mem::transmute(ppmt), core::mem::transmute(pscc)).ok() } } #[repr(C)] @@ -9014,10 +9014,10 @@ windows_core::imp::define_interface!(IAMStreamControl, IAMStreamControl_Vtbl, 0x windows_core::imp::interface_hierarchy!(IAMStreamControl, windows_core::IUnknown); impl IAMStreamControl { pub unsafe fn StartAt(&self, ptstart: Option<*const i64>, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ptstart.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).StartAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ptstart.unwrap_or(core::mem::zeroed())), dwcookie).ok() } pub unsafe fn StopAt(&self, ptstop: Option<*const i64>, bsendextra: bool, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ptstop.unwrap_or(core::mem::zeroed())), bsendextra.into(), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).StopAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ptstop.unwrap_or(core::mem::zeroed())), bsendextra.into(), dwcookie).ok() } pub unsafe fn GetInfo(&self, pinfo: *mut AM_STREAM_INFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo)).ok() @@ -9070,21 +9070,10 @@ impl IAMStreamSelect { } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn Info(&self, lindex: i32, ppmt: Option<*mut *mut super::MediaFoundation::AM_MEDIA_TYPE>, pdwflags: Option<*mut u32>, plcid: Option<*mut u32>, pdwgroup: Option<*mut u32>, ppszname: Option<*mut windows_core::PWSTR>, ppobject: Option<*mut Option>, ppunk: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Info)( - windows_core::Interface::as_raw(self), - core::mem::transmute(lindex), - core::mem::transmute(ppmt.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), - core::mem::transmute(plcid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdwgroup.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppszname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppobject.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppunk.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).Info)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(ppmt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(plcid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppszname.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Enable(&self, lindex: i32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), lindex, dwflags).ok() } } #[repr(C)] @@ -9153,13 +9142,13 @@ impl IAMTVAudio { (windows_core::Interface::vtable(self).TVAudioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTVAudioMode(&self, lmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTVAudioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lmode)).ok() + (windows_core::Interface::vtable(self).SetTVAudioMode)(windows_core::Interface::as_raw(self), lmode).ok() } pub unsafe fn RegisterNotificationCallBack(&self, pnotify: P0, levents: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi(), core::mem::transmute(levents)).ok() + (windows_core::Interface::vtable(self).RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi(), levents).ok() } pub unsafe fn UnRegisterNotificationCallBack(&self, pnotify: P0) -> windows_core::Result<()> where @@ -9249,7 +9238,7 @@ windows_core::imp::define_interface!(IAMTVAudioNotification, IAMTVAudioNotificat windows_core::imp::interface_hierarchy!(IAMTVAudioNotification, windows_core::IUnknown); impl IAMTVAudioNotification { pub unsafe fn OnEvent(&self, event: AMTVAudioEventType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event)).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), event).ok() } } #[repr(C)] @@ -9292,7 +9281,7 @@ impl IAMTVTuner { } pub unsafe fn AutoTune(&self, lchannel: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AutoTune)(windows_core::Interface::as_raw(self), core::mem::transmute(lchannel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AutoTune)(windows_core::Interface::as_raw(self), lchannel, &mut result__).map(|| result__) } pub unsafe fn StoreAutoTune(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StoreAutoTune)(windows_core::Interface::as_raw(self)).ok() @@ -9302,14 +9291,14 @@ impl IAMTVTuner { (windows_core::Interface::vtable(self).NumInputConnections)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn put_InputType(&self, lindex: i32, inputtype: TunerInputType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_InputType)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(inputtype)).ok() + (windows_core::Interface::vtable(self).put_InputType)(windows_core::Interface::as_raw(self), lindex, inputtype).ok() } pub unsafe fn get_InputType(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_InputType)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_InputType)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| result__) } pub unsafe fn SetConnectInput(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectInput)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).SetConnectInput)(windows_core::Interface::as_raw(self), lindex).ok() } pub unsafe fn ConnectInput(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9474,14 +9463,14 @@ impl IAMTimecodeDisplay { (windows_core::Interface::vtable(self).GetTCDisplayEnable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTCDisplayEnable(&self, state: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTCDisplayEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetTCDisplayEnable)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn GetTCDisplay(&self, param: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTCDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTCDisplay)(windows_core::Interface::as_raw(self), param, &mut result__).map(|| result__) } pub unsafe fn SetTCDisplay(&self, param: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTCDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTCDisplay)(windows_core::Interface::as_raw(self), param, value).ok() } } #[repr(C)] @@ -9546,20 +9535,20 @@ windows_core::imp::interface_hierarchy!(IAMTimecodeGenerator, windows_core::IUnk impl IAMTimecodeGenerator { pub unsafe fn GetTCGMode(&self, param: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTCGMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTCGMode)(windows_core::Interface::as_raw(self), param, &mut result__).map(|| result__) } pub unsafe fn SetTCGMode(&self, param: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTCGMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTCGMode)(windows_core::Interface::as_raw(self), param, value).ok() } pub unsafe fn SetVITCLine(&self, line: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVITCLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line)).ok() + (windows_core::Interface::vtable(self).SetVITCLine)(windows_core::Interface::as_raw(self), line).ok() } pub unsafe fn VITCLine(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).VITCLine)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTimecode(&self, ptimecodesample: *const super::TIMECODE_SAMPLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimecode)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimecodesample)).ok() + (windows_core::Interface::vtable(self).SetTimecode)(windows_core::Interface::as_raw(self), ptimecodesample).ok() } pub unsafe fn GetTimecode(&self, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTimecode)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimecodesample)).ok() @@ -9641,13 +9630,13 @@ windows_core::imp::interface_hierarchy!(IAMTimecodeReader, windows_core::IUnknow impl IAMTimecodeReader { pub unsafe fn GetTCRMode(&self, param: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTCRMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTCRMode)(windows_core::Interface::as_raw(self), param, &mut result__).map(|| result__) } pub unsafe fn SetTCRMode(&self, param: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTCRMode)(windows_core::Interface::as_raw(self), core::mem::transmute(param), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTCRMode)(windows_core::Interface::as_raw(self), param, value).ok() } pub unsafe fn SetVITCLine(&self, line: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVITCLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line)).ok() + (windows_core::Interface::vtable(self).SetVITCLine)(windows_core::Interface::as_raw(self), line).ok() } pub unsafe fn VITCLine(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9725,7 +9714,7 @@ windows_core::imp::define_interface!(IAMTuner, IAMTuner_Vtbl, 0x211a8761_03ac_11 windows_core::imp::interface_hierarchy!(IAMTuner, windows_core::IUnknown); impl IAMTuner { pub unsafe fn put_Channel(&self, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Channel)(windows_core::Interface::as_raw(self), core::mem::transmute(lchannel), core::mem::transmute(lvideosubchannel), core::mem::transmute(laudiosubchannel)).ok() + (windows_core::Interface::vtable(self).put_Channel)(windows_core::Interface::as_raw(self), lchannel, lvideosubchannel, laudiosubchannel).ok() } pub unsafe fn get_Channel(&self, plchannel: *mut i32, plvideosubchannel: *mut i32, plaudiosubchannel: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_Channel)(windows_core::Interface::as_raw(self), core::mem::transmute(plchannel), core::mem::transmute(plvideosubchannel), core::mem::transmute(plaudiosubchannel)).ok() @@ -9734,21 +9723,21 @@ impl IAMTuner { (windows_core::Interface::vtable(self).ChannelMinMax)(windows_core::Interface::as_raw(self), core::mem::transmute(lchannelmin), core::mem::transmute(lchannelmax)).ok() } pub unsafe fn SetCountryCode(&self, lcountrycode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(lcountrycode)).ok() + (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), lcountrycode).ok() } pub unsafe fn CountryCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CountryCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTuningSpace(&self, ltuningspace: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTuningSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(ltuningspace)).ok() + (windows_core::Interface::vtable(self).SetTuningSpace)(windows_core::Interface::as_raw(self), ltuningspace).ok() } pub unsafe fn TuningSpace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TuningSpace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Logon(&self, hcurrentuser: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), core::mem::transmute(hcurrentuser)).ok() + (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), hcurrentuser).ok() } pub unsafe fn Logout(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Logout)(windows_core::Interface::as_raw(self)).ok() @@ -9758,7 +9747,7 @@ impl IAMTuner { (windows_core::Interface::vtable(self).SignalPresent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMode(&self, lmode: AMTunerModeType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lmode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), lmode).ok() } pub unsafe fn Mode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9772,7 +9761,7 @@ impl IAMTuner { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi(), core::mem::transmute(levents)).ok() + (windows_core::Interface::vtable(self).RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi(), levents).ok() } pub unsafe fn UnRegisterNotificationCallBack(&self, pnotify: P0) -> windows_core::Result<()> where @@ -9937,7 +9926,7 @@ windows_core::imp::define_interface!(IAMTunerNotification, IAMTunerNotification_ windows_core::imp::interface_hierarchy!(IAMTunerNotification, windows_core::IUnknown); impl IAMTunerNotification { pub unsafe fn OnEvent(&self, event: AMTunerEventType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event)).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), event).ok() } } #[repr(C)] @@ -9965,13 +9954,13 @@ windows_core::imp::define_interface!(IAMVfwCaptureDialogs, IAMVfwCaptureDialogs_ windows_core::imp::interface_hierarchy!(IAMVfwCaptureDialogs, windows_core::IUnknown); impl IAMVfwCaptureDialogs { pub unsafe fn HasDialog(&self, idialog: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HasDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(idialog)).ok() + (windows_core::Interface::vtable(self).HasDialog)(windows_core::Interface::as_raw(self), idialog).ok() } pub unsafe fn ShowDialog(&self, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(idialog), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), idialog, hwnd).ok() } pub unsafe fn SendDriverMessage(&self, idialog: i32, umsg: i32, dw1: i32, dw2: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDriverMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(idialog), core::mem::transmute(umsg), core::mem::transmute(dw1), core::mem::transmute(dw2)).ok() + (windows_core::Interface::vtable(self).SendDriverMessage)(windows_core::Interface::as_raw(self), idialog, umsg, dw1, dw2).ok() } } #[repr(C)] @@ -10016,16 +10005,16 @@ windows_core::imp::define_interface!(IAMVfwCompressDialogs, IAMVfwCompressDialog windows_core::imp::interface_hierarchy!(IAMVfwCompressDialogs, windows_core::IUnknown); impl IAMVfwCompressDialogs { pub unsafe fn ShowDialog(&self, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(idialog), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), idialog, hwnd).ok() } pub unsafe fn GetState(&self, pstate: *mut core::ffi::c_void, pcbstate: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(pstate), core::mem::transmute(pcbstate)).ok() } pub unsafe fn SetState(&self, pstate: *const core::ffi::c_void, cbstate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(pstate), core::mem::transmute(cbstate)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), pstate, cbstate).ok() } pub unsafe fn SendDriverMessage(&self, umsg: i32, dw1: i32, dw2: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDriverMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(dw1), core::mem::transmute(dw2)).ok() + (windows_core::Interface::vtable(self).SendDriverMessage)(windows_core::Interface::as_raw(self), umsg, dw1, dw2).ok() } } #[repr(C)] @@ -10081,43 +10070,43 @@ impl IAMVideoAccelerator { } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetUncompFormatsSupported(&self, pguid: *const windows_core::GUID, pdwnumformatssupported: *mut u32, pformatssupported: Option<*mut super::super::Graphics::DirectDraw::DDPIXELFORMAT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUncompFormatsSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(pdwnumformatssupported), core::mem::transmute(pformatssupported.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetUncompFormatsSupported)(windows_core::Interface::as_raw(self), pguid, core::mem::transmute(pdwnumformatssupported), core::mem::transmute(pformatssupported.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetInternalMemInfo(&self, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pamvainternalmeminfo: *mut AMVAInternalMemInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInternalMemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(pamvauncompdatainfo), core::mem::transmute(pamvainternalmeminfo)).ok() + (windows_core::Interface::vtable(self).GetInternalMemInfo)(windows_core::Interface::as_raw(self), pguid, pamvauncompdatainfo, core::mem::transmute(pamvainternalmeminfo)).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetCompBufferInfo(&self, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: Option<*mut AMVACompBufferInfo>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompBufferInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(pamvauncompdatainfo), core::mem::transmute(pdwnumtypescompbuffers), core::mem::transmute(pamvacompbufferinfo.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetCompBufferInfo)(windows_core::Interface::as_raw(self), pguid, pamvauncompdatainfo, core::mem::transmute(pdwnumtypescompbuffers), core::mem::transmute(pamvacompbufferinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetInternalCompBufferInfo(&self, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: Option<*mut AMVACompBufferInfo>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInternalCompBufferInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwnumtypescompbuffers), core::mem::transmute(pamvacompbufferinfo.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn BeginFrame(&self, amvabeginframeinfo: *const AMVABeginFrameInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(amvabeginframeinfo)).ok() + (windows_core::Interface::vtable(self).BeginFrame)(windows_core::Interface::as_raw(self), amvabeginframeinfo).ok() } pub unsafe fn EndFrame(&self, pendframeinfo: *const AMVAEndFrameInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(pendframeinfo)).ok() + (windows_core::Interface::vtable(self).EndFrame)(windows_core::Interface::as_raw(self), pendframeinfo).ok() } pub unsafe fn GetBuffer(&self, dwtypeindex: u32, dwbufferindex: u32, breadonly: bool, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtypeindex), core::mem::transmute(dwbufferindex), breadonly.into(), core::mem::transmute(ppbuffer), core::mem::transmute(lpstride)).ok() + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), dwtypeindex, dwbufferindex, breadonly.into(), core::mem::transmute(ppbuffer), core::mem::transmute(lpstride)).ok() } pub unsafe fn ReleaseBuffer(&self, dwtypeindex: u32, dwbufferindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtypeindex), core::mem::transmute(dwbufferindex)).ok() + (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), dwtypeindex, dwbufferindex).ok() } pub unsafe fn Execute(&self, dwfunction: u32, lpprivateinputdata: *const core::ffi::c_void, cbprivateinputdata: u32, lpprivateoutputdat: *const core::ffi::c_void, cbprivateoutputdata: u32, pamvabufferinfo: &[AMVABUFFERINFO]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfunction), core::mem::transmute(lpprivateinputdata), core::mem::transmute(cbprivateinputdata), core::mem::transmute(lpprivateoutputdat), core::mem::transmute(cbprivateoutputdata), pamvabufferinfo.len().try_into().unwrap(), core::mem::transmute(pamvabufferinfo.as_ptr())).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), dwfunction, lpprivateinputdata, cbprivateinputdata, lpprivateoutputdat, cbprivateoutputdata, pamvabufferinfo.len().try_into().unwrap(), core::mem::transmute(pamvabufferinfo.as_ptr())).ok() } pub unsafe fn QueryRenderStatus(&self, dwtypeindex: u32, dwbufferindex: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryRenderStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtypeindex), core::mem::transmute(dwbufferindex), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).QueryRenderStatus)(windows_core::Interface::as_raw(self), dwtypeindex, dwbufferindex, dwflags).ok() } pub unsafe fn DisplayFrame(&self, dwfliptoindex: u32, pmediasample: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfliptoindex), pmediasample.param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayFrame)(windows_core::Interface::as_raw(self), dwfliptoindex, pmediasample.param().abi()).ok() } } #[repr(C)] @@ -10241,13 +10230,13 @@ windows_core::imp::interface_hierarchy!(IAMVideoAcceleratorNotify, windows_core: impl IAMVideoAcceleratorNotify { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetUncompSurfacesInfo(&self, pguid: *const windows_core::GUID, puncompbufferinfo: *mut AMVAUncompBufferInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUncompSurfacesInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(puncompbufferinfo)).ok() + (windows_core::Interface::vtable(self).GetUncompSurfacesInfo)(windows_core::Interface::as_raw(self), pguid, core::mem::transmute(puncompbufferinfo)).ok() } pub unsafe fn SetUncompSurfacesInfo(&self, dwactualuncompsurfacesallocated: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUncompSurfacesInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwactualuncompsurfacesallocated)).ok() + (windows_core::Interface::vtable(self).SetUncompSurfacesInfo)(windows_core::Interface::as_raw(self), dwactualuncompsurfacesallocated).ok() } pub unsafe fn GetCreateVideoAcceleratorData(&self, pguid: *const windows_core::GUID, pdwsizemiscdata: *mut u32, ppmiscdata: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCreateVideoAcceleratorData)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(pdwsizemiscdata), core::mem::transmute(ppmiscdata)).ok() + (windows_core::Interface::vtable(self).GetCreateVideoAcceleratorData)(windows_core::Interface::as_raw(self), pguid, core::mem::transmute(pdwsizemiscdata), core::mem::transmute(ppmiscdata)).ok() } } #[repr(C)] @@ -10298,28 +10287,28 @@ windows_core::imp::define_interface!(IAMVideoCompression, IAMVideoCompression_Vt windows_core::imp::interface_hierarchy!(IAMVideoCompression, windows_core::IUnknown); impl IAMVideoCompression { pub unsafe fn SetKeyFrameRate(&self, keyframerate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeyFrameRate)(windows_core::Interface::as_raw(self), core::mem::transmute(keyframerate)).ok() + (windows_core::Interface::vtable(self).SetKeyFrameRate)(windows_core::Interface::as_raw(self), keyframerate).ok() } pub unsafe fn KeyFrameRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeyFrameRate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPFramesPerKeyFrame(&self, pframesperkeyframe: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPFramesPerKeyFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(pframesperkeyframe)).ok() + (windows_core::Interface::vtable(self).SetPFramesPerKeyFrame)(windows_core::Interface::as_raw(self), pframesperkeyframe).ok() } pub unsafe fn PFramesPerKeyFrame(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PFramesPerKeyFrame)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuality(&self, quality: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(quality)).ok() + (windows_core::Interface::vtable(self).SetQuality)(windows_core::Interface::as_raw(self), quality).ok() } pub unsafe fn Quality(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Quality)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWindowSize(&self, windowsize: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowSize)(windows_core::Interface::as_raw(self), core::mem::transmute(windowsize)).ok() + (windows_core::Interface::vtable(self).SetWindowSize)(windows_core::Interface::as_raw(self), windowsize).ok() } pub unsafe fn WindowSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10340,10 +10329,10 @@ impl IAMVideoCompression { .ok() } pub unsafe fn OverrideKeyFrame(&self, framenumber: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OverrideKeyFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(framenumber)).ok() + (windows_core::Interface::vtable(self).OverrideKeyFrame)(windows_core::Interface::as_raw(self), framenumber).ok() } pub unsafe fn OverrideFrameSize(&self, framenumber: i32, size: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OverrideFrameSize)(windows_core::Interface::as_raw(self), core::mem::transmute(framenumber), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).OverrideFrameSize)(windows_core::Interface::as_raw(self), framenumber, size).ok() } } #[repr(C)] @@ -10478,7 +10467,7 @@ impl IAMVideoControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), ppin.param().abi(), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), ppin.param().abi(), mode).ok() } pub unsafe fn GetMode(&self, ppin: P0) -> windows_core::Result where @@ -10499,13 +10488,13 @@ impl IAMVideoControl { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxAvailableFrameRate)(windows_core::Interface::as_raw(self), ppin.param().abi(), core::mem::transmute(iindex), core::mem::transmute(dimensions), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxAvailableFrameRate)(windows_core::Interface::as_raw(self), ppin.param().abi(), iindex, core::mem::transmute(dimensions), &mut result__).map(|| result__) } pub unsafe fn GetFrameRateList(&self, ppin: P0, iindex: i32, dimensions: super::super::Foundation::SIZE, listsize: *mut i32, framerates: *mut *mut i64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFrameRateList)(windows_core::Interface::as_raw(self), ppin.param().abi(), core::mem::transmute(iindex), core::mem::transmute(dimensions), core::mem::transmute(listsize), core::mem::transmute(framerates)).ok() + (windows_core::Interface::vtable(self).GetFrameRateList)(windows_core::Interface::as_raw(self), ppin.param().abi(), iindex, core::mem::transmute(dimensions), core::mem::transmute(listsize), core::mem::transmute(framerates)).ok() } } #[repr(C)] @@ -10599,7 +10588,7 @@ impl IAMVideoDecimationProperties { (windows_core::Interface::vtable(self).QueryDecimationUsage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDecimationUsage(&self, usage: DECIMATION_USAGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDecimationUsage)(windows_core::Interface::as_raw(self), core::mem::transmute(usage)).ok() + (windows_core::Interface::vtable(self).SetDecimationUsage)(windows_core::Interface::as_raw(self), usage).ok() } } #[repr(C)] @@ -10643,13 +10632,13 @@ windows_core::imp::define_interface!(IAMVideoProcAmp, IAMVideoProcAmp_Vtbl, 0xc6 windows_core::imp::interface_hierarchy!(IAMVideoProcAmp, windows_core::IUnknown); impl IAMVideoProcAmp { pub unsafe fn GetRange(&self, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflags)).ok() + (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), property, core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflags)).ok() } pub unsafe fn Set(&self, property: i32, lvalue: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(lvalue), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), property, lvalue, flags).ok() } pub unsafe fn Get(&self, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(lvalue), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), property, core::mem::transmute(lvalue), core::mem::transmute(flags)).ok() } } #[repr(C)] @@ -10730,7 +10719,7 @@ impl IAMWMBufferPassCallback { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pnssbuffer3.param().abi(), ppin.param().abi(), core::mem::transmute(prtstart), core::mem::transmute(prtend)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pnssbuffer3.param().abi(), ppin.param().abi(), prtstart, prtend).ok() } } #[repr(C)] @@ -10773,7 +10762,7 @@ impl IAMWstDecoder { (windows_core::Interface::vtable(self).GetServiceState)(windows_core::Interface::as_raw(self), core::mem::transmute(lpstate)).ok() } pub unsafe fn SetServiceState(&self, state: AM_WST_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetServiceState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetServiceState)(windows_core::Interface::as_raw(self), state).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetOutputFormat(&self, lpbmih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER) -> windows_core::Result<()> { @@ -10787,7 +10776,7 @@ impl IAMWstDecoder { (windows_core::Interface::vtable(self).GetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwphyscolor)).ok() } pub unsafe fn SetBackgroundColor(&self, dwphyscolor: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(dwphyscolor)).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), dwphyscolor).ok() } pub unsafe fn GetRedrawAlways(&self, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRedrawAlways)(windows_core::Interface::as_raw(self), core::mem::transmute(lpboption)).ok() @@ -10799,7 +10788,7 @@ impl IAMWstDecoder { (windows_core::Interface::vtable(self).GetDrawBackgroundMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmode)).ok() } pub unsafe fn SetDrawBackgroundMode(&self, mode: AM_WST_DRAWBGMODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDrawBackgroundMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetDrawBackgroundMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetAnswerMode(&self, banswer: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAnswerMode)(windows_core::Interface::as_raw(self), banswer.into()).ok() @@ -11021,16 +11010,16 @@ impl IAsyncReader { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestAllocator)(windows_core::Interface::as_raw(self), ppreferred.param().abi(), core::mem::transmute(pprops), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAllocator)(windows_core::Interface::as_raw(self), ppreferred.param().abi(), pprops, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Request(&self, psample: P0, dwuser: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), psample.param().abi(), core::mem::transmute(dwuser)).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), psample.param().abi(), dwuser).ok() } pub unsafe fn WaitForNext(&self, dwtimeout: u32, ppsample: Option<*mut Option>, pdwuser: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForNext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout), core::mem::transmute(ppsample.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwuser)).ok() + (windows_core::Interface::vtable(self).WaitForNext)(windows_core::Interface::as_raw(self), dwtimeout, core::mem::transmute(ppsample.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwuser)).ok() } pub unsafe fn SyncReadAligned(&self, psample: P0) -> windows_core::Result<()> where @@ -11039,7 +11028,7 @@ impl IAsyncReader { (windows_core::Interface::vtable(self).SyncReadAligned)(windows_core::Interface::as_raw(self), psample.param().abi()).ok() } pub unsafe fn SyncRead(&self, llposition: i64, pbuffer: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SyncRead)(windows_core::Interface::as_raw(self), core::mem::transmute(llposition), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).SyncRead)(windows_core::Interface::as_raw(self), llposition, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr())).ok() } pub unsafe fn Length(&self, ptotal: *mut i64, pavailable: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Length)(windows_core::Interface::as_raw(self), core::mem::transmute(ptotal), core::mem::transmute(pavailable)).ok() @@ -11145,7 +11134,7 @@ impl IAudioData { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetFormat(&self, lpwaveformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lpwaveformat)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), lpwaveformat).ok() } } #[repr(C)] @@ -11199,14 +11188,14 @@ impl IAudioMediaStream { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetFormat(&self, lpwaveformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lpwaveformat)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), lpwaveformat).ok() } pub unsafe fn CreateSample(&self, paudiodata: P0, dwflags: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), paudiodata.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), paudiodata.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11311,7 +11300,7 @@ impl IBDA_AUX { (windows_core::Interface::vtable(self).QueryCapabilities)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).EnumCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(dwinputid), core::mem::transmute(pconnectortype), core::mem::transmute(conntypenum), core::mem::transmute(numvideostds), core::mem::transmute(analogstds)).ok() + (windows_core::Interface::vtable(self).EnumCapability)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(dwinputid), core::mem::transmute(pconnectortype), core::mem::transmute(conntypenum), core::mem::transmute(numvideostds), core::mem::transmute(analogstds)).ok() } } #[repr(C)] @@ -11389,7 +11378,7 @@ impl core::ops::Deref for IBDA_AutoDemodulateEx { windows_core::imp::interface_hierarchy!(IBDA_AutoDemodulateEx, windows_core::IUnknown, IBDA_AutoDemodulate); impl IBDA_AutoDemodulateEx { pub unsafe fn get_SupportedDeviceNodeTypes(&self, ulcdevicenodetypesmax: u32, pulcdevicenodetypes: *mut u32, pguiddevicenodetypes: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_SupportedDeviceNodeTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcdevicenodetypesmax), core::mem::transmute(pulcdevicenodetypes), core::mem::transmute(pguiddevicenodetypes)).ok() + (windows_core::Interface::vtable(self).get_SupportedDeviceNodeTypes)(windows_core::Interface::as_raw(self), ulcdevicenodetypesmax, core::mem::transmute(pulcdevicenodetypes), core::mem::transmute(pguiddevicenodetypes)).ok() } pub unsafe fn get_SupportedVideoFormats(&self, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_SupportedVideoFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(pulamtunermodetype), core::mem::transmute(pulanalogvideostandard)).ok() @@ -11450,26 +11439,26 @@ impl IBDA_ConditionalAccess { } pub unsafe fn get_Entitlement(&self, usvirtualchannel: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Entitlement)(windows_core::Interface::as_raw(self), core::mem::transmute(usvirtualchannel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_Entitlement)(windows_core::Interface::as_raw(self), usvirtualchannel, &mut result__).map(|| result__) } pub unsafe fn TuneByChannel(&self, usvirtualchannel: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TuneByChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(usvirtualchannel)).ok() + (windows_core::Interface::vtable(self).TuneByChannel)(windows_core::Interface::as_raw(self), usvirtualchannel).ok() } pub unsafe fn SetProgram(&self, usprogramnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgram)(windows_core::Interface::as_raw(self), core::mem::transmute(usprogramnumber)).ok() + (windows_core::Interface::vtable(self).SetProgram)(windows_core::Interface::as_raw(self), usprogramnumber).ok() } pub unsafe fn AddProgram(&self, usprogramnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProgram)(windows_core::Interface::as_raw(self), core::mem::transmute(usprogramnumber)).ok() + (windows_core::Interface::vtable(self).AddProgram)(windows_core::Interface::as_raw(self), usprogramnumber).ok() } pub unsafe fn RemoveProgram(&self, usprogramnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProgram)(windows_core::Interface::as_raw(self), core::mem::transmute(usprogramnumber)).ok() + (windows_core::Interface::vtable(self).RemoveProgram)(windows_core::Interface::as_raw(self), usprogramnumber).ok() } pub unsafe fn GetModuleUI(&self, bydialognumber: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleUI)(windows_core::Interface::as_raw(self), core::mem::transmute(bydialognumber), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetModuleUI)(windows_core::Interface::as_raw(self), bydialognumber, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn InformUIClosed(&self, bydialognumber: u8, closereason: UICloseReasonType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InformUIClosed)(windows_core::Interface::as_raw(self), core::mem::transmute(bydialognumber), core::mem::transmute(closereason)).ok() + (windows_core::Interface::vtable(self).InformUIClosed)(windows_core::Interface::as_raw(self), bydialognumber, closereason).ok() } } #[repr(C)] @@ -11576,17 +11565,17 @@ windows_core::imp::interface_hierarchy!(IBDA_ConditionalAccessEx, windows_core:: impl IBDA_ConditionalAccessEx { pub unsafe fn CheckEntitlementToken(&self, uldialogrequest: u32, bstrlanguage: &windows_core::BSTR, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, pbentitlementtoken: &[u8]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckEntitlementToken)(windows_core::Interface::as_raw(self), core::mem::transmute(uldialogrequest), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(requesttype), pbentitlementtoken.len().try_into().unwrap(), core::mem::transmute(pbentitlementtoken.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckEntitlementToken)(windows_core::Interface::as_raw(self), uldialogrequest, core::mem::transmute_copy(bstrlanguage), requesttype, pbentitlementtoken.len().try_into().unwrap(), core::mem::transmute(pbentitlementtoken.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn SetCaptureToken(&self, pbcapturetoken: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetCaptureToken)(windows_core::Interface::as_raw(self), pbcapturetoken.len().try_into().unwrap(), core::mem::transmute(pbcapturetoken.as_ptr())).ok() } pub unsafe fn OpenBroadcastMmi(&self, uldialogrequest: u32, bstrlanguage: &windows_core::BSTR, eventid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenBroadcastMmi)(windows_core::Interface::as_raw(self), core::mem::transmute(uldialogrequest), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(eventid)).ok() + (windows_core::Interface::vtable(self).OpenBroadcastMmi)(windows_core::Interface::as_raw(self), uldialogrequest, core::mem::transmute_copy(bstrlanguage), eventid).ok() } pub unsafe fn CloseMmiDialog(&self, uldialogrequest: u32, bstrlanguage: &windows_core::BSTR, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CloseMmiDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(uldialogrequest), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(uldialognumber), core::mem::transmute(reasoncode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CloseMmiDialog)(windows_core::Interface::as_raw(self), uldialogrequest, core::mem::transmute_copy(bstrlanguage), uldialognumber, reasoncode, &mut result__).map(|| result__) } pub unsafe fn CreateDialogRequestNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11718,7 +11707,7 @@ windows_core::imp::define_interface!(IBDA_DRIWMDRMSession, IBDA_DRIWMDRMSession_ windows_core::imp::interface_hierarchy!(IBDA_DRIWMDRMSession, windows_core::IUnknown); impl IBDA_DRIWMDRMSession { pub unsafe fn AcknowledgeLicense(&self, hrlicenseack: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcknowledgeLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(hrlicenseack)).ok() + (windows_core::Interface::vtable(self).AcknowledgeLicense)(windows_core::Interface::as_raw(self), hrlicenseack).ok() } pub unsafe fn ProcessLicenseChallenge(&self, pblicensemessage: &[u8], pdwcblicenseresponse: *mut u32, ppblicenseresponse: *mut *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ProcessLicenseChallenge)(windows_core::Interface::as_raw(self), pblicensemessage.len().try_into().unwrap(), core::mem::transmute(pblicensemessage.as_ptr()), core::mem::transmute(pdwcblicenseresponse), core::mem::transmute(ppblicenseresponse)).ok() @@ -11850,7 +11839,7 @@ windows_core::imp::define_interface!(IBDA_DRMService, IBDA_DRMService_Vtbl, 0xbf windows_core::imp::interface_hierarchy!(IBDA_DRMService, windows_core::IUnknown); impl IBDA_DRMService { pub unsafe fn SetDRM(&self, puuidnewdrm: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDRM)(windows_core::Interface::as_raw(self), core::mem::transmute(puuidnewdrm)).ok() + (windows_core::Interface::vtable(self).SetDRM)(windows_core::Interface::as_raw(self), puuidnewdrm).ok() } pub unsafe fn GetDRMStatus(&self, pbstrdrmuuidlist: *mut windows_core::BSTR, drmuuid: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDRMStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrdrmuuidlist), core::mem::transmute(drmuuid)).ok() @@ -11981,43 +11970,43 @@ windows_core::imp::define_interface!(IBDA_DigitalDemodulator, IBDA_DigitalDemodu windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator, windows_core::IUnknown); impl IBDA_DigitalDemodulator { pub unsafe fn SetModulationType(&self, pmodulationtype: *const ModulationType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModulationType)(windows_core::Interface::as_raw(self), core::mem::transmute(pmodulationtype)).ok() + (windows_core::Interface::vtable(self).SetModulationType)(windows_core::Interface::as_raw(self), pmodulationtype).ok() } pub unsafe fn ModulationType(&self, pmodulationtype: *mut ModulationType) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ModulationType)(windows_core::Interface::as_raw(self), core::mem::transmute(pmodulationtype)).ok() } pub unsafe fn SetInnerFECMethod(&self, pfecmethod: *const FECMethod) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInnerFECMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecmethod)).ok() + (windows_core::Interface::vtable(self).SetInnerFECMethod)(windows_core::Interface::as_raw(self), pfecmethod).ok() } pub unsafe fn InnerFECMethod(&self, pfecmethod: *mut FECMethod) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InnerFECMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecmethod)).ok() } pub unsafe fn SetInnerFECRate(&self, pfecrate: *const BinaryConvolutionCodeRate) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInnerFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecrate)).ok() + (windows_core::Interface::vtable(self).SetInnerFECRate)(windows_core::Interface::as_raw(self), pfecrate).ok() } pub unsafe fn InnerFECRate(&self, pfecrate: *mut BinaryConvolutionCodeRate) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InnerFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecrate)).ok() } pub unsafe fn SetOuterFECMethod(&self, pfecmethod: *const FECMethod) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOuterFECMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecmethod)).ok() + (windows_core::Interface::vtable(self).SetOuterFECMethod)(windows_core::Interface::as_raw(self), pfecmethod).ok() } pub unsafe fn OuterFECMethod(&self, pfecmethod: *mut FECMethod) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OuterFECMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecmethod)).ok() } pub unsafe fn SetOuterFECRate(&self, pfecrate: *const BinaryConvolutionCodeRate) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOuterFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecrate)).ok() + (windows_core::Interface::vtable(self).SetOuterFECRate)(windows_core::Interface::as_raw(self), pfecrate).ok() } pub unsafe fn OuterFECRate(&self, pfecrate: *mut BinaryConvolutionCodeRate) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OuterFECRate)(windows_core::Interface::as_raw(self), core::mem::transmute(pfecrate)).ok() } pub unsafe fn SetSymbolRate(&self, psymbolrate: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolRate)(windows_core::Interface::as_raw(self), core::mem::transmute(psymbolrate)).ok() + (windows_core::Interface::vtable(self).SetSymbolRate)(windows_core::Interface::as_raw(self), psymbolrate).ok() } pub unsafe fn SymbolRate(&self, psymbolrate: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SymbolRate)(windows_core::Interface::as_raw(self), core::mem::transmute(psymbolrate)).ok() } pub unsafe fn SetSpectralInversion(&self, pspectralinversion: *const SpectralInversion) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpectralInversion)(windows_core::Interface::as_raw(self), core::mem::transmute(pspectralinversion)).ok() + (windows_core::Interface::vtable(self).SetSpectralInversion)(windows_core::Interface::as_raw(self), pspectralinversion).ok() } pub unsafe fn SpectralInversion(&self, pspectralinversion: *mut SpectralInversion) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SpectralInversion)(windows_core::Interface::as_raw(self), core::mem::transmute(pspectralinversion)).ok() @@ -12148,25 +12137,25 @@ impl core::ops::Deref for IBDA_DigitalDemodulator2 { windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator2, windows_core::IUnknown, IBDA_DigitalDemodulator); impl IBDA_DigitalDemodulator2 { pub unsafe fn SetGuardInterval(&self, pguardinterval: *const GuardInterval) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGuardInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(pguardinterval)).ok() + (windows_core::Interface::vtable(self).SetGuardInterval)(windows_core::Interface::as_raw(self), pguardinterval).ok() } pub unsafe fn GuardInterval(&self, pguardinterval: *mut GuardInterval) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GuardInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(pguardinterval)).ok() } pub unsafe fn SetTransmissionMode(&self, ptransmissionmode: *const TransmissionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransmissionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(ptransmissionmode)).ok() + (windows_core::Interface::vtable(self).SetTransmissionMode)(windows_core::Interface::as_raw(self), ptransmissionmode).ok() } pub unsafe fn TransmissionMode(&self, ptransmissionmode: *mut TransmissionMode) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TransmissionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(ptransmissionmode)).ok() } pub unsafe fn SetRollOff(&self, prolloff: *const RollOff) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRollOff)(windows_core::Interface::as_raw(self), core::mem::transmute(prolloff)).ok() + (windows_core::Interface::vtable(self).SetRollOff)(windows_core::Interface::as_raw(self), prolloff).ok() } pub unsafe fn RollOff(&self, prolloff: *mut RollOff) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RollOff)(windows_core::Interface::as_raw(self), core::mem::transmute(prolloff)).ok() } pub unsafe fn SetPilot(&self, ppilot: *const Pilot) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPilot)(windows_core::Interface::as_raw(self), core::mem::transmute(ppilot)).ok() + (windows_core::Interface::vtable(self).SetPilot)(windows_core::Interface::as_raw(self), ppilot).ok() } pub unsafe fn Pilot(&self, ppilot: *mut Pilot) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pilot)(windows_core::Interface::as_raw(self), core::mem::transmute(ppilot)).ok() @@ -12255,13 +12244,13 @@ impl core::ops::Deref for IBDA_DigitalDemodulator3 { windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator3, windows_core::IUnknown, IBDA_DigitalDemodulator, IBDA_DigitalDemodulator2); impl IBDA_DigitalDemodulator3 { pub unsafe fn SetSignalTimeouts(&self, psignaltimeouts: *const BDA_SIGNAL_TIMEOUTS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalTimeouts)(windows_core::Interface::as_raw(self), core::mem::transmute(psignaltimeouts)).ok() + (windows_core::Interface::vtable(self).SetSignalTimeouts)(windows_core::Interface::as_raw(self), psignaltimeouts).ok() } pub unsafe fn SignalTimeouts(&self, psignaltimeouts: *mut BDA_SIGNAL_TIMEOUTS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalTimeouts)(windows_core::Interface::as_raw(self), core::mem::transmute(psignaltimeouts)).ok() } pub unsafe fn SetPLPNumber(&self, pplpnumber: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPLPNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(pplpnumber)).ok() + (windows_core::Interface::vtable(self).SetPLPNumber)(windows_core::Interface::as_raw(self), pplpnumber).ok() } pub unsafe fn PLPNumber(&self, pplpnumber: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PLPNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(pplpnumber)).ok() @@ -12316,22 +12305,22 @@ windows_core::imp::define_interface!(IBDA_DiseqCommand, IBDA_DiseqCommand_Vtbl, windows_core::imp::interface_hierarchy!(IBDA_DiseqCommand, windows_core::IUnknown); impl IBDA_DiseqCommand { pub unsafe fn SetEnableDiseqCommands(&self, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableDiseqCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(benable)).ok() + (windows_core::Interface::vtable(self).SetEnableDiseqCommands)(windows_core::Interface::as_raw(self), benable).ok() } pub unsafe fn SetDiseqLNBSource(&self, ullnbsource: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiseqLNBSource)(windows_core::Interface::as_raw(self), core::mem::transmute(ullnbsource)).ok() + (windows_core::Interface::vtable(self).SetDiseqLNBSource)(windows_core::Interface::as_raw(self), ullnbsource).ok() } pub unsafe fn SetDiseqUseToneBurst(&self, busetoneburst: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiseqUseToneBurst)(windows_core::Interface::as_raw(self), core::mem::transmute(busetoneburst)).ok() + (windows_core::Interface::vtable(self).SetDiseqUseToneBurst)(windows_core::Interface::as_raw(self), busetoneburst).ok() } pub unsafe fn SetDiseqRepeats(&self, ulrepeats: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiseqRepeats)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrepeats)).ok() + (windows_core::Interface::vtable(self).SetDiseqRepeats)(windows_core::Interface::as_raw(self), ulrepeats).ok() } pub unsafe fn put_DiseqSendCommand(&self, ulrequestid: u32, pbcommand: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_DiseqSendCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrequestid), pbcommand.len().try_into().unwrap(), core::mem::transmute(pbcommand.as_ptr())).ok() + (windows_core::Interface::vtable(self).put_DiseqSendCommand)(windows_core::Interface::as_raw(self), ulrequestid, pbcommand.len().try_into().unwrap(), core::mem::transmute(pbcommand.as_ptr())).ok() } pub unsafe fn get_DiseqResponse(&self, ulrequestid: u32, pulcbresponselen: *mut u32, pbresponse: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_DiseqResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrequestid), core::mem::transmute(pulcbresponselen), core::mem::transmute(pbresponse)).ok() + (windows_core::Interface::vtable(self).get_DiseqResponse)(windows_core::Interface::as_raw(self), ulrequestid, core::mem::transmute(pulcbresponselen), core::mem::transmute(pbresponse)).ok() } } #[repr(C)] @@ -12397,7 +12386,7 @@ windows_core::imp::define_interface!(IBDA_EasMessage, IBDA_EasMessage_Vtbl, 0xd8 windows_core::imp::interface_hierarchy!(IBDA_EasMessage, windows_core::IUnknown); impl IBDA_EasMessage { pub unsafe fn get_EasMessage(&self, uleventid: u32, ppeasobject: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_EasMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(uleventid), core::mem::transmute(ppeasobject)).ok() + (windows_core::Interface::vtable(self).get_EasMessage)(windows_core::Interface::as_raw(self), uleventid, core::mem::transmute(ppeasobject)).ok() } } #[repr(C)] @@ -12428,13 +12417,13 @@ impl IBDA_Encoder { (windows_core::Interface::vtable(self).QueryCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(numaudiofmts), core::mem::transmute(numvideofmts)).ok() } pub unsafe fn EnumAudioCapability(&self, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, samplingrate: *mut u32, bitdepth: *mut u32, numchannels: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAudioCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtindex), core::mem::transmute(methodid), core::mem::transmute(algorithmtype), core::mem::transmute(samplingrate), core::mem::transmute(bitdepth), core::mem::transmute(numchannels)).ok() + (windows_core::Interface::vtable(self).EnumAudioCapability)(windows_core::Interface::as_raw(self), fmtindex, core::mem::transmute(methodid), core::mem::transmute(algorithmtype), core::mem::transmute(samplingrate), core::mem::transmute(bitdepth), core::mem::transmute(numchannels)).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).EnumVideoCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtindex), core::mem::transmute(methodid), core::mem::transmute(algorithmtype), core::mem::transmute(verticalsize), core::mem::transmute(horizontalsize), core::mem::transmute(aspectratio), core::mem::transmute(frameratecode), core::mem::transmute(progressivesequence)).ok() + (windows_core::Interface::vtable(self).EnumVideoCapability)(windows_core::Interface::as_raw(self), fmtindex, core::mem::transmute(methodid), core::mem::transmute(algorithmtype), core::mem::transmute(verticalsize), core::mem::transmute(horizontalsize), core::mem::transmute(aspectratio), core::mem::transmute(frameratecode), core::mem::transmute(progressivesequence)).ok() } pub unsafe fn SetParameters(&self, audiobitratemode: u32, audiobitrate: u32, audiomethodid: u32, audioprogram: u32, videobitratemode: u32, videobitrate: u32, videomethodid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(audiobitratemode), core::mem::transmute(audiobitrate), core::mem::transmute(audiomethodid), core::mem::transmute(audioprogram), core::mem::transmute(videobitratemode), core::mem::transmute(videobitrate), core::mem::transmute(videomethodid)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), audiobitratemode, audiobitrate, audiomethodid, audioprogram, videobitratemode, videobitrate, videomethodid).ok() } pub unsafe fn GetState(&self, 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::Result<()> { (windows_core::Interface::vtable(self).GetState)( @@ -12549,7 +12538,7 @@ impl IBDA_EthernetFilter { (windows_core::Interface::vtable(self).GetMulticastList)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcbaddresses), core::mem::transmute(paddresslist)).ok() } pub unsafe fn PutMulticastMode(&self, ulmodemask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutMulticastMode)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmodemask)).ok() + (windows_core::Interface::vtable(self).PutMulticastMode)(windows_core::Interface::as_raw(self), ulmodemask).ok() } pub unsafe fn GetMulticastMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12618,7 +12607,7 @@ windows_core::imp::define_interface!(IBDA_EventingService, IBDA_EventingService_ windows_core::imp::interface_hierarchy!(IBDA_EventingService, windows_core::IUnknown); impl IBDA_EventingService { pub unsafe fn CompleteEvent(&self, uleventid: u32, uleventresult: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompleteEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(uleventid), core::mem::transmute(uleventresult)).ok() + (windows_core::Interface::vtable(self).CompleteEvent)(windows_core::Interface::as_raw(self), uleventid, uleventresult).ok() } } #[repr(C)] @@ -12666,7 +12655,7 @@ impl IBDA_FDC { (windows_core::Interface::vtable(self).RemoveTid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(tidstoremove)).ok() } pub unsafe fn GetTableSection(&self, pid: *mut u32, maxbuffersize: u32, actualsize: *mut u32, secbuffer: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableSection)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(maxbuffersize), core::mem::transmute(actualsize), core::mem::transmute(secbuffer)).ok() + (windows_core::Interface::vtable(self).GetTableSection)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), maxbuffersize, core::mem::transmute(actualsize), core::mem::transmute(secbuffer)).ok() } } #[repr(C)] @@ -12751,37 +12740,37 @@ windows_core::imp::define_interface!(IBDA_FrequencyFilter, IBDA_FrequencyFilter_ windows_core::imp::interface_hierarchy!(IBDA_FrequencyFilter, windows_core::IUnknown); impl IBDA_FrequencyFilter { pub unsafe fn SetAutotune(&self, ultransponder: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutotune)(windows_core::Interface::as_raw(self), core::mem::transmute(ultransponder)).ok() + (windows_core::Interface::vtable(self).SetAutotune)(windows_core::Interface::as_raw(self), ultransponder).ok() } pub unsafe fn Autotune(&self, pultransponder: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Autotune)(windows_core::Interface::as_raw(self), core::mem::transmute(pultransponder)).ok() } pub unsafe fn SetFrequency(&self, ulfrequency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(ulfrequency)).ok() + (windows_core::Interface::vtable(self).SetFrequency)(windows_core::Interface::as_raw(self), ulfrequency).ok() } pub unsafe fn Frequency(&self, pulfrequency: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Frequency)(windows_core::Interface::as_raw(self), core::mem::transmute(pulfrequency)).ok() } pub unsafe fn SetPolarity(&self, polarity: Polarisation) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPolarity)(windows_core::Interface::as_raw(self), core::mem::transmute(polarity)).ok() + (windows_core::Interface::vtable(self).SetPolarity)(windows_core::Interface::as_raw(self), polarity).ok() } pub unsafe fn Polarity(&self, ppolarity: *mut Polarisation) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Polarity)(windows_core::Interface::as_raw(self), core::mem::transmute(ppolarity)).ok() } pub unsafe fn SetRange(&self, ulrange: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrange)).ok() + (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), ulrange).ok() } pub unsafe fn Range(&self, pulrange: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Range)(windows_core::Interface::as_raw(self), core::mem::transmute(pulrange)).ok() } pub unsafe fn SetBandwidth(&self, ulbandwidth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbandwidth)).ok() + (windows_core::Interface::vtable(self).SetBandwidth)(windows_core::Interface::as_raw(self), ulbandwidth).ok() } pub unsafe fn Bandwidth(&self, pulbandwidth: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Bandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(pulbandwidth)).ok() } pub unsafe fn SetFrequencyMultiplier(&self, ulmultiplier: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrequencyMultiplier)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmultiplier)).ok() + (windows_core::Interface::vtable(self).SetFrequencyMultiplier)(windows_core::Interface::as_raw(self), ulmultiplier).ok() } pub unsafe fn FrequencyMultiplier(&self, pulmultiplier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FrequencyMultiplier)(windows_core::Interface::as_raw(self), core::mem::transmute(pulmultiplier)).ok() @@ -12903,7 +12892,7 @@ impl IBDA_GuideDataDeliveryService { } pub unsafe fn GetTuneXmlFromServiceIdx(&self, ul64serviceidx: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTuneXmlFromServiceIdx)(windows_core::Interface::as_raw(self), core::mem::transmute(ul64serviceidx), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetTuneXmlFromServiceIdx)(windows_core::Interface::as_raw(self), ul64serviceidx, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetServices(&self, pulcbbufferlen: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetServices)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcbbufferlen), core::mem::transmute(pbbuffer)).ok() @@ -13109,7 +13098,7 @@ impl IBDA_IPV4Filter { (windows_core::Interface::vtable(self).GetMulticastList)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcbaddresses), core::mem::transmute(paddresslist)).ok() } pub unsafe fn PutMulticastMode(&self, ulmodemask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutMulticastMode)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmodemask)).ok() + (windows_core::Interface::vtable(self).PutMulticastMode)(windows_core::Interface::as_raw(self), ulmodemask).ok() } pub unsafe fn GetMulticastMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13187,7 +13176,7 @@ impl IBDA_IPV6Filter { (windows_core::Interface::vtable(self).GetMulticastList)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcbaddresses), core::mem::transmute(paddresslist)).ok() } pub unsafe fn PutMulticastMode(&self, ulmodemask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutMulticastMode)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmodemask)).ok() + (windows_core::Interface::vtable(self).PutMulticastMode)(windows_core::Interface::as_raw(self), ulmodemask).ok() } pub unsafe fn GetMulticastMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13256,7 +13245,7 @@ windows_core::imp::define_interface!(IBDA_ISDBConditionalAccess, IBDA_ISDBCondit windows_core::imp::interface_hierarchy!(IBDA_ISDBConditionalAccess, windows_core::IUnknown); impl IBDA_ISDBConditionalAccess { pub unsafe fn SetIsdbCasRequest(&self, ulrequestid: u32, pbrequestbuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsdbCasRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrequestid), pbrequestbuffer.len().try_into().unwrap(), core::mem::transmute(pbrequestbuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetIsdbCasRequest)(windows_core::Interface::as_raw(self), ulrequestid, pbrequestbuffer.len().try_into().unwrap(), core::mem::transmute(pbrequestbuffer.as_ptr())).ok() } } #[repr(C)] @@ -13284,19 +13273,19 @@ windows_core::imp::define_interface!(IBDA_LNBInfo, IBDA_LNBInfo_Vtbl, 0x992cf102 windows_core::imp::interface_hierarchy!(IBDA_LNBInfo, windows_core::IUnknown); impl IBDA_LNBInfo { pub unsafe fn SetLocalOscilatorFrequencyLowBand(&self, ulloflow: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalOscilatorFrequencyLowBand)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloflow)).ok() + (windows_core::Interface::vtable(self).SetLocalOscilatorFrequencyLowBand)(windows_core::Interface::as_raw(self), ulloflow).ok() } pub unsafe fn LocalOscilatorFrequencyLowBand(&self, pulloflow: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LocalOscilatorFrequencyLowBand)(windows_core::Interface::as_raw(self), core::mem::transmute(pulloflow)).ok() } pub unsafe fn SetLocalOscilatorFrequencyHighBand(&self, ullofhigh: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalOscilatorFrequencyHighBand)(windows_core::Interface::as_raw(self), core::mem::transmute(ullofhigh)).ok() + (windows_core::Interface::vtable(self).SetLocalOscilatorFrequencyHighBand)(windows_core::Interface::as_raw(self), ullofhigh).ok() } pub unsafe fn LocalOscilatorFrequencyHighBand(&self, pullofhigh: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LocalOscilatorFrequencyHighBand)(windows_core::Interface::as_raw(self), core::mem::transmute(pullofhigh)).ok() } pub unsafe fn SetHighLowSwitchFrequency(&self, ulswitchfrequency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighLowSwitchFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(ulswitchfrequency)).ok() + (windows_core::Interface::vtable(self).SetHighLowSwitchFrequency)(windows_core::Interface::as_raw(self), ulswitchfrequency).ok() } pub unsafe fn HighLowSwitchFrequency(&self, pulswitchfrequency: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HighLowSwitchFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(pulswitchfrequency)).ok() @@ -13407,14 +13396,14 @@ windows_core::imp::interface_hierarchy!(IBDA_NameValueService, windows_core::IUn impl IBDA_NameValueService { pub unsafe fn GetValueNameByIndex(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueNameByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValueNameByIndex)(windows_core::Interface::as_raw(self), ulindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetValue(&self, bstrname: &windows_core::BSTR, bstrlanguage: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrlanguage), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetValue(&self, uldialogrequest: u32, bstrlanguage: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrvalue: &windows_core::BSTR, ulreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(uldialogrequest), core::mem::transmute_copy(bstrlanguage), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrvalue), core::mem::transmute(ulreserved)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), uldialogrequest, core::mem::transmute_copy(bstrlanguage), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrvalue), ulreserved).ok() } } #[repr(C)] @@ -13471,7 +13460,7 @@ windows_core::imp::define_interface!(IBDA_NetworkProvider, IBDA_NetworkProvider_ windows_core::imp::interface_hierarchy!(IBDA_NetworkProvider, windows_core::IUnknown); impl IBDA_NetworkProvider { pub unsafe fn PutSignalSource(&self, ulsignalsource: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutSignalSource)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsignalsource)).ok() + (windows_core::Interface::vtable(self).PutSignalSource)(windows_core::Interface::as_raw(self), ulsignalsource).ok() } pub unsafe fn GetSignalSource(&self, pulsignalsource: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSignalSource)(windows_core::Interface::as_raw(self), core::mem::transmute(pulsignalsource)).ok() @@ -13480,7 +13469,7 @@ impl IBDA_NetworkProvider { (windows_core::Interface::vtable(self).GetNetworkType)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidnetworktype)).ok() } pub unsafe fn PutTuningSpace(&self, guidtuningspace: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutTuningSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtuningspace)).ok() + (windows_core::Interface::vtable(self).PutTuningSpace)(windows_core::Interface::as_raw(self), guidtuningspace).ok() } pub unsafe fn GetTuningSpace(&self, pguidtuingspace: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTuningSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidtuingspace)).ok() @@ -13492,7 +13481,7 @@ impl IBDA_NetworkProvider { (windows_core::Interface::vtable(self).RegisterDeviceFilter)(windows_core::Interface::as_raw(self), punkfiltercontrol.param().abi(), core::mem::transmute(ppvregisitrationcontext)).ok() } pub unsafe fn UnRegisterDeviceFilter(&self, pvregistrationcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnRegisterDeviceFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pvregistrationcontext)).ok() + (windows_core::Interface::vtable(self).UnRegisterDeviceFilter)(windows_core::Interface::as_raw(self), pvregistrationcontext).ok() } } #[repr(C)] @@ -13653,19 +13642,19 @@ windows_core::imp::define_interface!(IBDA_SignalProperties, IBDA_SignalPropertie windows_core::imp::interface_hierarchy!(IBDA_SignalProperties, windows_core::IUnknown); impl IBDA_SignalProperties { pub unsafe fn PutNetworkType(&self, guidnetworktype: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutNetworkType)(windows_core::Interface::as_raw(self), core::mem::transmute(guidnetworktype)).ok() + (windows_core::Interface::vtable(self).PutNetworkType)(windows_core::Interface::as_raw(self), guidnetworktype).ok() } pub unsafe fn GetNetworkType(&self, pguidnetworktype: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNetworkType)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidnetworktype)).ok() } pub unsafe fn PutSignalSource(&self, ulsignalsource: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutSignalSource)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsignalsource)).ok() + (windows_core::Interface::vtable(self).PutSignalSource)(windows_core::Interface::as_raw(self), ulsignalsource).ok() } pub unsafe fn GetSignalSource(&self, pulsignalsource: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSignalSource)(windows_core::Interface::as_raw(self), core::mem::transmute(pulsignalsource)).ok() } pub unsafe fn PutTuningSpace(&self, guidtuningspace: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutTuningSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtuningspace)).ok() + (windows_core::Interface::vtable(self).PutTuningSpace)(windows_core::Interface::as_raw(self), guidtuningspace).ok() } pub unsafe fn GetTuningSpace(&self, pguidtuingspace: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTuningSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidtuingspace)).ok() @@ -13734,31 +13723,31 @@ windows_core::imp::define_interface!(IBDA_SignalStatistics, IBDA_SignalStatistic windows_core::imp::interface_hierarchy!(IBDA_SignalStatistics, windows_core::IUnknown); impl IBDA_SignalStatistics { pub unsafe fn SetSignalStrength(&self, ldbstrength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalStrength)(windows_core::Interface::as_raw(self), core::mem::transmute(ldbstrength)).ok() + (windows_core::Interface::vtable(self).SetSignalStrength)(windows_core::Interface::as_raw(self), ldbstrength).ok() } pub unsafe fn SignalStrength(&self, pldbstrength: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalStrength)(windows_core::Interface::as_raw(self), core::mem::transmute(pldbstrength)).ok() } pub unsafe fn SetSignalQuality(&self, lpercentquality: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(lpercentquality)).ok() + (windows_core::Interface::vtable(self).SetSignalQuality)(windows_core::Interface::as_raw(self), lpercentquality).ok() } pub unsafe fn SignalQuality(&self, plpercentquality: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(plpercentquality)).ok() } pub unsafe fn SetSignalPresent(&self, fpresent: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalPresent)(windows_core::Interface::as_raw(self), core::mem::transmute(fpresent)).ok() + (windows_core::Interface::vtable(self).SetSignalPresent)(windows_core::Interface::as_raw(self), fpresent).ok() } pub unsafe fn SignalPresent(&self, pfpresent: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalPresent)(windows_core::Interface::as_raw(self), core::mem::transmute(pfpresent)).ok() } pub unsafe fn SetSignalLocked(&self, flocked: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalLocked)(windows_core::Interface::as_raw(self), core::mem::transmute(flocked)).ok() + (windows_core::Interface::vtable(self).SetSignalLocked)(windows_core::Interface::as_raw(self), flocked).ok() } pub unsafe fn SignalLocked(&self, pflocked: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalLocked)(windows_core::Interface::as_raw(self), core::mem::transmute(pflocked)).ok() } pub unsafe fn SetSampleTime(&self, lmssampletime: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleTime)(windows_core::Interface::as_raw(self), core::mem::transmute(lmssampletime)).ok() + (windows_core::Interface::vtable(self).SetSampleTime)(windows_core::Interface::as_raw(self), lmssampletime).ok() } pub unsafe fn SampleTime(&self, plmssampletime: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SampleTime)(windows_core::Interface::as_raw(self), core::mem::transmute(plmssampletime)).ok() @@ -13861,7 +13850,7 @@ impl IBDA_Topology { (windows_core::Interface::vtable(self).GetNodeDescriptors)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcnodedescriptors), rgnodedescriptors.len().try_into().unwrap(), core::mem::transmute(rgnodedescriptors.as_ptr())).ok() } pub unsafe fn GetNodeInterfaces(&self, ulnodetype: u32, pulcinterfaces: *mut u32, rgguidinterfaces: &mut [windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNodeInterfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(ulnodetype), core::mem::transmute(pulcinterfaces), rgguidinterfaces.len().try_into().unwrap(), core::mem::transmute(rgguidinterfaces.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetNodeInterfaces)(windows_core::Interface::as_raw(self), ulnodetype, core::mem::transmute(pulcinterfaces), rgguidinterfaces.len().try_into().unwrap(), core::mem::transmute(rgguidinterfaces.as_ptr())).ok() } pub unsafe fn GetPinTypes(&self, pulcpintypes: *mut u32, rgulpintypes: &mut [u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPinTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcpintypes), rgulpintypes.len().try_into().unwrap(), core::mem::transmute(rgulpintypes.as_ptr())).ok() @@ -13870,23 +13859,23 @@ impl IBDA_Topology { (windows_core::Interface::vtable(self).GetTemplateConnections)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcconnections), rgconnections.len().try_into().unwrap(), core::mem::transmute(rgconnections.as_ptr())).ok() } pub unsafe fn CreatePin(&self, ulpintype: u32, pulpinid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreatePin)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpintype), core::mem::transmute(pulpinid)).ok() + (windows_core::Interface::vtable(self).CreatePin)(windows_core::Interface::as_raw(self), ulpintype, core::mem::transmute(pulpinid)).ok() } pub unsafe fn DeletePin(&self, ulpinid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePin)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpinid)).ok() + (windows_core::Interface::vtable(self).DeletePin)(windows_core::Interface::as_raw(self), ulpinid).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetMediaType(&self, ulpinid: u32, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpinid), core::mem::transmute(pmediatype)).ok() + (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), ulpinid, core::mem::transmute(pmediatype)).ok() } pub unsafe fn SetMedium(&self, ulpinid: u32, pmedium: *const REGPINMEDIUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMedium)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpinid), core::mem::transmute(pmedium)).ok() + (windows_core::Interface::vtable(self).SetMedium)(windows_core::Interface::as_raw(self), ulpinid, pmedium).ok() } pub unsafe fn CreateTopology(&self, ulinputpinid: u32, uloutputpinid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(ulinputpinid), core::mem::transmute(uloutputpinid)).ok() + (windows_core::Interface::vtable(self).CreateTopology)(windows_core::Interface::as_raw(self), ulinputpinid, uloutputpinid).ok() } pub unsafe fn GetControlNode(&self, ulinputpinid: u32, uloutputpinid: u32, ulnodetype: u32, ppcontrolnode: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetControlNode)(windows_core::Interface::as_raw(self), core::mem::transmute(ulinputpinid), core::mem::transmute(uloutputpinid), core::mem::transmute(ulnodetype), core::mem::transmute(ppcontrolnode)).ok() + (windows_core::Interface::vtable(self).GetControlNode)(windows_core::Interface::as_raw(self), ulinputpinid, uloutputpinid, ulnodetype, core::mem::transmute(ppcontrolnode)).ok() } } #[repr(C)] @@ -14028,7 +14017,7 @@ windows_core::imp::define_interface!(IBDA_TransportStreamSelector, IBDA_Transpor windows_core::imp::interface_hierarchy!(IBDA_TransportStreamSelector, windows_core::IUnknown); impl IBDA_TransportStreamSelector { pub unsafe fn SetTSID(&self, ustsid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), core::mem::transmute(ustsid)).ok() + (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), ustsid).ok() } pub unsafe fn GetTSInformation(&self, pultsinformationbufferlen: *mut u32, pbtsinformationbuffer: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTSInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pultsinformationbufferlen), core::mem::transmute(pbtsinformationbuffer)).ok() @@ -14069,7 +14058,7 @@ windows_core::imp::define_interface!(IBDA_UserActivityService, IBDA_UserActivity windows_core::imp::interface_hierarchy!(IBDA_UserActivityService, windows_core::IUnknown); impl IBDA_UserActivityService { pub unsafe fn SetCurrentTunerUseReason(&self, dwusereason: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentTunerUseReason)(windows_core::Interface::as_raw(self), core::mem::transmute(dwusereason)).ok() + (windows_core::Interface::vtable(self).SetCurrentTunerUseReason)(windows_core::Interface::as_raw(self), dwusereason).ok() } pub unsafe fn GetUserActivityInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14176,10 +14165,10 @@ impl IBDA_WMDRMSession { (windows_core::Interface::vtable(self).TransactMessage)(windows_core::Interface::as_raw(self), pbrequest.len().try_into().unwrap(), core::mem::transmute(pbrequest.as_ptr()), core::mem::transmute(pulcbresponse), core::mem::transmute(pbresponse)).ok() } pub unsafe fn GetLicense(&self, uuidkey: *const windows_core::GUID, pulpackagelen: *mut u32, pbpackage: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(uuidkey), core::mem::transmute(pulpackagelen), core::mem::transmute(pbpackage)).ok() + (windows_core::Interface::vtable(self).GetLicense)(windows_core::Interface::as_raw(self), uuidkey, core::mem::transmute(pulpackagelen), core::mem::transmute(pbpackage)).ok() } pub unsafe fn ReissueLicense(&self, uuidkey: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReissueLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(uuidkey)).ok() + (windows_core::Interface::vtable(self).ReissueLicense)(windows_core::Interface::as_raw(self), uuidkey).ok() } pub unsafe fn RenewLicense(&self, pbinxmrlicense: &[u8], pbentitlementtoken: &[u8], puldescramblestatus: *mut u32, puloutxmrlicenselen: *mut u32, pboutxmrlicense: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenewLicense)(windows_core::Interface::as_raw(self), pbinxmrlicense.len().try_into().unwrap(), core::mem::transmute(pbinxmrlicense.as_ptr()), pbentitlementtoken.len().try_into().unwrap(), core::mem::transmute(pbentitlementtoken.as_ptr()), core::mem::transmute(puldescramblestatus), core::mem::transmute(puloutxmrlicenselen), core::mem::transmute(pboutxmrlicense)).ok() @@ -14265,20 +14254,20 @@ windows_core::imp::define_interface!(IBDA_WMDRMTuner, IBDA_WMDRMTuner_Vtbl, 0x86 windows_core::imp::interface_hierarchy!(IBDA_WMDRMTuner, windows_core::IUnknown); impl IBDA_WMDRMTuner { pub unsafe fn PurchaseEntitlement(&self, uldialogrequest: u32, bstrlanguage: &windows_core::BSTR, pbpurchasetoken: &[u8], puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PurchaseEntitlement)(windows_core::Interface::as_raw(self), core::mem::transmute(uldialogrequest), core::mem::transmute_copy(bstrlanguage), pbpurchasetoken.len().try_into().unwrap(), core::mem::transmute(pbpurchasetoken.as_ptr()), core::mem::transmute(puldescramblestatus), core::mem::transmute(pulcapturetokenlen), core::mem::transmute(pbcapturetoken)).ok() + (windows_core::Interface::vtable(self).PurchaseEntitlement)(windows_core::Interface::as_raw(self), uldialogrequest, core::mem::transmute_copy(bstrlanguage), pbpurchasetoken.len().try_into().unwrap(), core::mem::transmute(pbpurchasetoken.as_ptr()), core::mem::transmute(puldescramblestatus), core::mem::transmute(pulcapturetokenlen), core::mem::transmute(pbcapturetoken)).ok() } pub unsafe fn CancelCaptureToken(&self, pbcapturetoken: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelCaptureToken)(windows_core::Interface::as_raw(self), pbcapturetoken.len().try_into().unwrap(), core::mem::transmute(pbcapturetoken.as_ptr())).ok() } pub unsafe fn SetPidProtection(&self, ulpid: u32, uuidkey: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPidProtection)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpid), core::mem::transmute(uuidkey)).ok() + (windows_core::Interface::vtable(self).SetPidProtection)(windows_core::Interface::as_raw(self), ulpid, uuidkey).ok() } pub unsafe fn GetPidProtection(&self, pulpid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPidProtection)(windows_core::Interface::as_raw(self), core::mem::transmute(pulpid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPidProtection)(windows_core::Interface::as_raw(self), pulpid, &mut result__).map(|| result__) } pub unsafe fn SetSyncValue(&self, ulsyncvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncValue)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsyncvalue)).ok() + (windows_core::Interface::vtable(self).SetSyncValue)(windows_core::Interface::as_raw(self), ulsyncvalue).ok() } pub unsafe fn GetStartCodeProfile(&self, pulstartcodeprofilelen: *mut u32, pbstartcodeprofile: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStartCodeProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(pulstartcodeprofilelen), core::mem::transmute(pbstartcodeprofile)).ok() @@ -14362,7 +14351,7 @@ impl IBPCSatelliteTuner { (windows_core::Interface::vtable(self).get_DefaultSubChannelTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(pldefaultvideotype), core::mem::transmute(pldefaultaudiotype)).ok() } pub unsafe fn put_DefaultSubChannelTypes(&self, ldefaultvideotype: i32, ldefaultaudiotype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_DefaultSubChannelTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ldefaultvideotype), core::mem::transmute(ldefaultaudiotype)).ok() + (windows_core::Interface::vtable(self).put_DefaultSubChannelTypes)(windows_core::Interface::as_raw(self), ldefaultvideotype, ldefaultaudiotype).ok() } pub unsafe fn IsTapingPermitted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsTapingPermitted)(windows_core::Interface::as_raw(self)).ok() @@ -14523,7 +14512,7 @@ windows_core::imp::define_interface!(IBaseVideoMixer, IBaseVideoMixer_Vtbl, 0x61 windows_core::imp::interface_hierarchy!(IBaseVideoMixer, windows_core::IUnknown); impl IBaseVideoMixer { pub unsafe fn SetLeadPin(&self, ipin: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeadPin)(windows_core::Interface::as_raw(self), core::mem::transmute(ipin)).ok() + (windows_core::Interface::vtable(self).SetLeadPin)(windows_core::Interface::as_raw(self), ipin).ok() } pub unsafe fn GetLeadPin(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14538,14 +14527,14 @@ impl IBaseVideoMixer { (windows_core::Interface::vtable(self).IsUsingClock)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUsingClock(&self, bvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUsingClock)(windows_core::Interface::as_raw(self), core::mem::transmute(bvalue)).ok() + (windows_core::Interface::vtable(self).SetUsingClock)(windows_core::Interface::as_raw(self), bvalue).ok() } pub unsafe fn GetClockPeriod(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetClockPeriod)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClockPeriod(&self, bvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClockPeriod)(windows_core::Interface::as_raw(self), core::mem::transmute(bvalue)).ok() + (windows_core::Interface::vtable(self).SetClockPeriod)(windows_core::Interface::as_raw(self), bvalue).ok() } } #[repr(C)] @@ -14652,14 +14641,14 @@ windows_core::imp::interface_hierarchy!(IBasicAudio, windows_core::IUnknown, sup #[cfg(feature = "Win32_System_Com")] impl IBasicAudio { pub unsafe fn SetVolume(&self, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), lvolume).ok() } pub unsafe fn Volume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Volume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBalance(&self, lbalance: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(lbalance)).ok() + (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), lbalance).ok() } pub unsafe fn Balance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14761,63 +14750,63 @@ impl IBasicVideo { (windows_core::Interface::vtable(self).VideoHeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceLeft(&self, sourceleft: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceleft)).ok() + (windows_core::Interface::vtable(self).SetSourceLeft)(windows_core::Interface::as_raw(self), sourceleft).ok() } pub unsafe fn SourceLeft(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SourceLeft)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceWidth(&self, sourcewidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(sourcewidth)).ok() + (windows_core::Interface::vtable(self).SetSourceWidth)(windows_core::Interface::as_raw(self), sourcewidth).ok() } pub unsafe fn SourceWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SourceWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceTop(&self, sourcetop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceTop)(windows_core::Interface::as_raw(self), core::mem::transmute(sourcetop)).ok() + (windows_core::Interface::vtable(self).SetSourceTop)(windows_core::Interface::as_raw(self), sourcetop).ok() } pub unsafe fn SourceTop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SourceTop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceHeight(&self, sourceheight: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceheight)).ok() + (windows_core::Interface::vtable(self).SetSourceHeight)(windows_core::Interface::as_raw(self), sourceheight).ok() } pub unsafe fn SourceHeight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SourceHeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDestinationLeft(&self, destinationleft: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestinationLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(destinationleft)).ok() + (windows_core::Interface::vtable(self).SetDestinationLeft)(windows_core::Interface::as_raw(self), destinationleft).ok() } pub unsafe fn DestinationLeft(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DestinationLeft)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDestinationWidth(&self, destinationwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestinationWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(destinationwidth)).ok() + (windows_core::Interface::vtable(self).SetDestinationWidth)(windows_core::Interface::as_raw(self), destinationwidth).ok() } pub unsafe fn DestinationWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DestinationWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDestinationTop(&self, destinationtop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestinationTop)(windows_core::Interface::as_raw(self), core::mem::transmute(destinationtop)).ok() + (windows_core::Interface::vtable(self).SetDestinationTop)(windows_core::Interface::as_raw(self), destinationtop).ok() } pub unsafe fn DestinationTop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DestinationTop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDestinationHeight(&self, destinationheight: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestinationHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(destinationheight)).ok() + (windows_core::Interface::vtable(self).SetDestinationHeight)(windows_core::Interface::as_raw(self), destinationheight).ok() } pub unsafe fn DestinationHeight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DestinationHeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourcePosition(&self, left: i32, top: i32, width: i32, height: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourcePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetSourcePosition)(windows_core::Interface::as_raw(self), left, top, width, height).ok() } pub unsafe fn GetSourcePosition(&self, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSourcePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() @@ -14826,7 +14815,7 @@ impl IBasicVideo { (windows_core::Interface::vtable(self).SetDefaultSourcePosition)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetDestinationPosition(&self, left: i32, top: i32, width: i32, height: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestinationPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetDestinationPosition)(windows_core::Interface::as_raw(self), left, top, width, height).ok() } pub unsafe fn GetDestinationPosition(&self, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDestinationPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() @@ -14838,7 +14827,7 @@ impl IBasicVideo { (windows_core::Interface::vtable(self).GetVideoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() } pub unsafe fn GetVideoPaletteEntries(&self, startindex: i32, entries: i32, pretrieved: *mut i32, ppalette: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoPaletteEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(startindex), core::mem::transmute(entries), core::mem::transmute(pretrieved), core::mem::transmute(ppalette)).ok() + (windows_core::Interface::vtable(self).GetVideoPaletteEntries)(windows_core::Interface::as_raw(self), startindex, entries, core::mem::transmute(pretrieved), core::mem::transmute(ppalette)).ok() } pub unsafe fn GetCurrentImage(&self, pbuffersize: *mut i32, pdibimage: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentImage)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffersize), core::mem::transmute(pdibimage)).ok() @@ -15253,7 +15242,7 @@ impl core::ops::Deref for IBroadcastEventEx { windows_core::imp::interface_hierarchy!(IBroadcastEventEx, windows_core::IUnknown, IBroadcastEvent); impl IBroadcastEventEx { pub unsafe fn FireEx(&self, eventid: windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FireEx)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)).ok() + (windows_core::Interface::vtable(self).FireEx)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), param1, param2, param3, param4).ok() } } #[repr(C)] @@ -15284,7 +15273,7 @@ impl IBufferingTime { (windows_core::Interface::vtable(self).GetBufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmilliseconds)).ok() } pub unsafe fn SetBufferingTime(&self, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).SetBufferingTime)(windows_core::Interface::as_raw(self), dwmilliseconds).ok() } } #[repr(C)] @@ -15326,7 +15315,7 @@ impl ICCSubStreamFiltering { (windows_core::Interface::vtable(self).SubstreamTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSubstreamTypes(&self, types: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSubstreamTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(types)).ok() + (windows_core::Interface::vtable(self).SetSubstreamTypes)(windows_core::Interface::as_raw(self), types).ok() } } #[repr(C)] @@ -15373,7 +15362,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_Exposure)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Exposure(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Exposure)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Exposure)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Exposure(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Exposure)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15382,7 +15371,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_Focus)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Focus(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Focus)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Focus)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Focus(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Focus)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15391,7 +15380,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_Iris)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Iris(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Iris)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Iris)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Iris(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Iris)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15400,7 +15389,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_Zoom)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Zoom(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Zoom)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Zoom)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Zoom(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Zoom)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15412,7 +15401,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_Pan)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Pan(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Pan)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Pan)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Pan(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Pan)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15421,7 +15410,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_Tilt)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Tilt(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Tilt)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Tilt)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Tilt(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Tilt)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15430,13 +15419,13 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_PanTilt)(windows_core::Interface::as_raw(self), core::mem::transmute(ppanvalue), core::mem::transmute(ptiltvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_PanTilt(&self, panvalue: i32, tiltvalue: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PanTilt)(windows_core::Interface::as_raw(self), core::mem::transmute(panvalue), core::mem::transmute(tiltvalue), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_PanTilt)(windows_core::Interface::as_raw(self), panvalue, tiltvalue, flags).ok() } pub unsafe fn get_Roll(&self, pvalue: *mut i32, pflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_Roll)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Roll(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Roll)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Roll)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Roll(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Roll)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15445,7 +15434,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_ExposureRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_ExposureRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ExposureRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_ExposureRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_ExposureRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_ExposureRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15454,7 +15443,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_FocusRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_FocusRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_FocusRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_FocusRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_FocusRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_FocusRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15463,7 +15452,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_IrisRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_IrisRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_IrisRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_IrisRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_IrisRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_IrisRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15472,7 +15461,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_ZoomRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_ZoomRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ZoomRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_ZoomRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_ZoomRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_ZoomRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15481,13 +15470,13 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_PanRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_PanRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PanRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_PanRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn get_TiltRelative(&self, pvalue: *mut i32, pflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_TiltRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_TiltRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_TiltRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_TiltRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_TiltRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_TiltRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15496,7 +15485,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_PanTiltRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(ppanvalue), core::mem::transmute(ptiltvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_PanTiltRelative(&self, panvalue: i32, tiltvalue: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PanTiltRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(panvalue), core::mem::transmute(tiltvalue), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_PanTiltRelative)(windows_core::Interface::as_raw(self), panvalue, tiltvalue, flags).ok() } pub unsafe fn getRange_PanRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_PanRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15505,7 +15494,7 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_RollRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_RollRelative(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_RollRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_RollRelative)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_RollRelative(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_RollRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -15514,13 +15503,13 @@ impl ICameraControl { (windows_core::Interface::vtable(self).get_ScanMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_ScanMode(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ScanMode)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_ScanMode)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn get_PrivacyMode(&self, pvalue: *mut i32, pflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_PrivacyMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_PrivacyMode(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PrivacyMode)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_PrivacyMode)(windows_core::Interface::as_raw(self), value, flags).ok() } } #[repr(C)] @@ -15915,14 +15904,14 @@ impl ICaptureGraphBuilder { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(ptype), lpstrfile.param().abi(), core::mem::transmute(ppf), core::mem::transmute(ppsink)).ok() + (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), ptype, lpstrfile.param().abi(), core::mem::transmute(ppf), core::mem::transmute(ppsink)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindInterface(&self, pcategory: Option<*const windows_core::GUID>, pf: P1, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), pf.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppint)).ok() + (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), pf.param().abi(), riid, core::mem::transmute(ppint)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RenderStream(&self, pcategory: Option<*const windows_core::GUID>, psource: P1, pfcompressor: P2, pfrenderer: P3) -> windows_core::Result<()> @@ -15938,13 +15927,13 @@ impl ICaptureGraphBuilder { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), pfilter.param().abi(), core::mem::transmute(pstart), core::mem::transmute(pstop), core::mem::transmute(wstartcookie), core::mem::transmute(wstopcookie)).ok() + (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), pfilter.param().abi(), pstart, pstop, wstartcookie, wstopcookie).ok() } pub unsafe fn AllocCapFile(&self, lpstr: P0, dwlsize: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AllocCapFile)(windows_core::Interface::as_raw(self), lpstr.param().abi(), core::mem::transmute(dwlsize)).ok() + (windows_core::Interface::vtable(self).AllocCapFile)(windows_core::Interface::as_raw(self), lpstr.param().abi(), dwlsize).ok() } pub unsafe fn CopyCaptureFile(&self, lpwstrold: P0, lpwstrnew: P1, fallowescabort: i32, pcallback: P3) -> windows_core::Result<()> where @@ -15952,7 +15941,7 @@ impl ICaptureGraphBuilder { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCaptureFile)(windows_core::Interface::as_raw(self), lpwstrold.param().abi(), lpwstrnew.param().abi(), core::mem::transmute(fallowescabort), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).CopyCaptureFile)(windows_core::Interface::as_raw(self), lpwstrold.param().abi(), lpwstrnew.param().abi(), fallowescabort, pcallback.param().abi()).ok() } } #[repr(C)] @@ -16067,14 +16056,14 @@ impl ICaptureGraphBuilder2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(ptype), lpstrfile.param().abi(), core::mem::transmute(ppf), core::mem::transmute(ppsink.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), ptype, lpstrfile.param().abi(), core::mem::transmute(ppf), core::mem::transmute(ppsink.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindInterface(&self, pcategory: Option<*const windows_core::GUID>, ptype: Option<*const windows_core::GUID>, pf: P2, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), pf.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppint)).ok() + (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), pf.param().abi(), riid, core::mem::transmute(ppint)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RenderStream(&self, pcategory: Option<*const windows_core::GUID>, ptype: *const windows_core::GUID, psource: P2, pfcompressor: P3, pfrenderer: P4) -> windows_core::Result<()> @@ -16083,20 +16072,20 @@ impl ICaptureGraphBuilder2 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptype), psource.param().abi(), pfcompressor.param().abi(), pfrenderer.param().abi()).ok() + (windows_core::Interface::vtable(self).RenderStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), ptype, psource.param().abi(), pfcompressor.param().abi(), pfrenderer.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ControlStream(&self, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, pfilter: P2, pstart: Option<*const i64>, pstop: Option<*const i64>, wstartcookie: u16, wstopcookie: u16) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory), core::mem::transmute(ptype), pfilter.param().abi(), core::mem::transmute(pstart.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstop.unwrap_or(core::mem::zeroed())), core::mem::transmute(wstartcookie), core::mem::transmute(wstopcookie)).ok() + (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), pcategory, ptype, pfilter.param().abi(), core::mem::transmute(pstart.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstop.unwrap_or(core::mem::zeroed())), wstartcookie, wstopcookie).ok() } pub unsafe fn AllocCapFile(&self, lpstr: P0, dwlsize: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AllocCapFile)(windows_core::Interface::as_raw(self), lpstr.param().abi(), core::mem::transmute(dwlsize)).ok() + (windows_core::Interface::vtable(self).AllocCapFile)(windows_core::Interface::as_raw(self), lpstr.param().abi(), dwlsize).ok() } pub unsafe fn CopyCaptureFile(&self, lpwstrold: P0, lpwstrnew: P1, fallowescabort: i32, pcallback: P3) -> windows_core::Result<()> where @@ -16104,14 +16093,14 @@ impl ICaptureGraphBuilder2 { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCaptureFile)(windows_core::Interface::as_raw(self), lpwstrold.param().abi(), lpwstrnew.param().abi(), core::mem::transmute(fallowescabort), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).CopyCaptureFile)(windows_core::Interface::as_raw(self), lpwstrold.param().abi(), lpwstrnew.param().abi(), fallowescabort, pcallback.param().abi()).ok() } pub unsafe fn FindPin(&self, psource: P0, pindir: PIN_DIRECTION, pcategory: Option<*const windows_core::GUID>, ptype: Option<*const windows_core::GUID>, funconnected: bool, num: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), psource.param().abi(), core::mem::transmute(pindir), core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), funconnected.into(), core::mem::transmute(num), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), psource.param().abi(), pindir, core::mem::transmute(pcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), funconnected.into(), num, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16225,14 +16214,14 @@ windows_core::imp::define_interface!(IConfigAsfWriter, IConfigAsfWriter_Vtbl, 0x windows_core::imp::interface_hierarchy!(IConfigAsfWriter, windows_core::IUnknown); impl IConfigAsfWriter { pub unsafe fn ConfigureFilterUsingProfileId(&self, dwprofileid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureFilterUsingProfileId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofileid)).ok() + (windows_core::Interface::vtable(self).ConfigureFilterUsingProfileId)(windows_core::Interface::as_raw(self), dwprofileid).ok() } pub unsafe fn GetCurrentProfileId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentProfileId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ConfigureFilterUsingProfileGuid(&self, guidprofile: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureFilterUsingProfileGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprofile)).ok() + (windows_core::Interface::vtable(self).ConfigureFilterUsingProfileGuid)(windows_core::Interface::as_raw(self), guidprofile).ok() } pub unsafe fn GetCurrentProfileGuid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16381,10 +16370,10 @@ impl IConfigAsfWriter2 { (windows_core::Interface::vtable(self).StreamNumFromPin)(windows_core::Interface::as_raw(self), ppin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetParam(&self, dwparam: u32, dwparam1: u32, dwparam2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParam)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparam), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2)).ok() + (windows_core::Interface::vtable(self).SetParam)(windows_core::Interface::as_raw(self), dwparam, dwparam1, dwparam2).ok() } pub unsafe fn GetParam(&self, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParam)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparam), core::mem::transmute(pdwparam1), core::mem::transmute(pdwparam2)).ok() + (windows_core::Interface::vtable(self).GetParam)(windows_core::Interface::as_raw(self), dwparam, core::mem::transmute(pdwparam1), core::mem::transmute(pdwparam2)).ok() } pub unsafe fn ResetMultiPassState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetMultiPassState)(windows_core::Interface::as_raw(self)).ok() @@ -16448,7 +16437,7 @@ windows_core::imp::define_interface!(IConfigAviMux, IConfigAviMux_Vtbl, 0x5acd6a windows_core::imp::interface_hierarchy!(IConfigAviMux, windows_core::IUnknown); impl IConfigAviMux { pub unsafe fn SetMasterStream(&self, istream: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMasterStream)(windows_core::Interface::as_raw(self), core::mem::transmute(istream)).ok() + (windows_core::Interface::vtable(self).SetMasterStream)(windows_core::Interface::as_raw(self), istream).ok() } pub unsafe fn GetMasterStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16523,14 +16512,14 @@ windows_core::imp::define_interface!(IConfigInterleaving, IConfigInterleaving_Vt windows_core::imp::interface_hierarchy!(IConfigInterleaving, windows_core::IUnknown); impl IConfigInterleaving { pub unsafe fn SetMode(&self, mode: InterleavingMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Mode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Mode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn put_Interleaving(&self, prtinterleave: *const i64, prtpreroll: *const i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Interleaving)(windows_core::Interface::as_raw(self), core::mem::transmute(prtinterleave), core::mem::transmute(prtpreroll)).ok() + (windows_core::Interface::vtable(self).put_Interleaving)(windows_core::Interface::as_raw(self), prtinterleave, prtpreroll).ok() } pub unsafe fn get_Interleaving(&self, prtinterleave: *mut i64, prtpreroll: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_Interleaving)(windows_core::Interface::as_raw(self), core::mem::transmute(prtinterleave), core::mem::transmute(prtpreroll)).ok() @@ -16592,7 +16581,7 @@ windows_core::imp::interface_hierarchy!(ICreateDevEnum, windows_core::IUnknown); impl ICreateDevEnum { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateClassEnumerator(&self, clsiddeviceclass: *const windows_core::GUID, ppenummoniker: *mut Option, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateClassEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(clsiddeviceclass), core::mem::transmute(ppenummoniker), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).CreateClassEnumerator)(windows_core::Interface::as_raw(self), clsiddeviceclass, core::mem::transmute(ppenummoniker), dwflags).ok() } } #[repr(C)] @@ -16648,7 +16637,7 @@ impl IDDrawExclModeVideo { (windows_core::Interface::vtable(self).GetDDrawSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(ppddrawsurface), core::mem::transmute(pbusingexternal)).ok() } pub unsafe fn SetDrawParameters(&self, prcsource: *const super::super::Foundation::RECT, prctarget: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDrawParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(prcsource), core::mem::transmute(prctarget)).ok() + (windows_core::Interface::vtable(self).SetDrawParameters)(windows_core::Interface::as_raw(self), prcsource, prctarget).ok() } pub unsafe fn GetNativeVideoProps(&self, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNativeVideoProps)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwvideowidth), core::mem::transmute(pdwvideoheight), core::mem::transmute(pdwpictaspectratiox), core::mem::transmute(pdwpictaspectratioy)).ok() @@ -16657,7 +16646,7 @@ impl IDDrawExclModeVideo { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallbackInterface)(windows_core::Interface::as_raw(self), pcallback.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetCallbackInterface)(windows_core::Interface::as_raw(self), pcallback.param().abi(), dwflags).ok() } } #[repr(C)] @@ -16745,13 +16734,13 @@ windows_core::imp::define_interface!(IDDrawExclModeVideoCallback, IDDrawExclMode windows_core::imp::interface_hierarchy!(IDDrawExclModeVideoCallback, windows_core::IUnknown); impl IDDrawExclModeVideoCallback { pub unsafe fn OnUpdateOverlay(&self, bbefore: bool, dwflags: u32, boldvisible: bool, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: bool, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUpdateOverlay)(windows_core::Interface::as_raw(self), bbefore.into(), core::mem::transmute(dwflags), boldvisible.into(), core::mem::transmute(prcoldsrc), core::mem::transmute(prcolddest), bnewvisible.into(), core::mem::transmute(prcnewsrc), core::mem::transmute(prcnewdest)).ok() + (windows_core::Interface::vtable(self).OnUpdateOverlay)(windows_core::Interface::as_raw(self), bbefore.into(), dwflags, boldvisible.into(), prcoldsrc, prcolddest, bnewvisible.into(), prcnewsrc, prcnewdest).ok() } pub unsafe fn OnUpdateColorKey(&self, pkey: *const COLORKEY, dwcolor: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUpdateColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), core::mem::transmute(dwcolor)).ok() + (windows_core::Interface::vtable(self).OnUpdateColorKey)(windows_core::Interface::as_raw(self), pkey, dwcolor).ok() } pub unsafe fn OnUpdateSize(&self, dwwidth: u32, dwheight: u32, dwarwidth: u32, dwarheight: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUpdateSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwarwidth), core::mem::transmute(dwarheight)).ok() + (windows_core::Interface::vtable(self).OnUpdateSize)(windows_core::Interface::as_raw(self), dwwidth, dwheight, dwarwidth, dwarheight).ok() } } #[repr(C)] @@ -16796,7 +16785,7 @@ windows_core::imp::define_interface!(IDMOWrapperFilter, IDMOWrapperFilter_Vtbl, windows_core::imp::interface_hierarchy!(IDMOWrapperFilter, windows_core::IUnknown); impl IDMOWrapperFilter { pub unsafe fn Init(&self, clsiddmo: *const windows_core::GUID, catdmo: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(clsiddmo), core::mem::transmute(catdmo)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), clsiddmo, catdmo).ok() } } #[repr(C)] @@ -16861,10 +16850,10 @@ windows_core::imp::define_interface!(IDVEnc, IDVEnc_Vtbl, 0xd18e17a0_aacb_11d0_a windows_core::imp::interface_hierarchy!(IDVEnc, windows_core::IUnknown); impl IDVEnc { pub unsafe fn get_IFormatResolution(&self, videoformat: *mut i32, dvformat: *mut i32, resolution: *mut i32, fdvinfo: u8, sdvinfo: *mut DVINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_IFormatResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(videoformat), core::mem::transmute(dvformat), core::mem::transmute(resolution), core::mem::transmute(fdvinfo), core::mem::transmute(sdvinfo)).ok() + (windows_core::Interface::vtable(self).get_IFormatResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(videoformat), core::mem::transmute(dvformat), core::mem::transmute(resolution), fdvinfo, core::mem::transmute(sdvinfo)).ok() } pub unsafe fn put_IFormatResolution(&self, videoformat: i32, dvformat: i32, resolution: i32, fdvinfo: u8, sdvinfo: *const DVINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_IFormatResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(videoformat), core::mem::transmute(dvformat), core::mem::transmute(resolution), core::mem::transmute(fdvinfo), core::mem::transmute(sdvinfo)).ok() + (windows_core::Interface::vtable(self).put_IFormatResolution)(windows_core::Interface::as_raw(self), videoformat, dvformat, resolution, fdvinfo, sdvinfo).ok() } } #[repr(C)] @@ -16930,7 +16919,7 @@ windows_core::imp::define_interface!(IDVSplitter, IDVSplitter_Vtbl, 0x92a3a302_d windows_core::imp::interface_hierarchy!(IDVSplitter, windows_core::IUnknown); impl IDVSplitter { pub unsafe fn DiscardAlternateVideoFrames(&self, ndiscard: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DiscardAlternateVideoFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(ndiscard)).ok() + (windows_core::Interface::vtable(self).DiscardAlternateVideoFrames)(windows_core::Interface::as_raw(self), ndiscard).ok() } } #[repr(C)] @@ -16958,7 +16947,7 @@ windows_core::imp::define_interface!(IDecimateVideoImage, IDecimateVideoImage_Vt windows_core::imp::interface_hierarchy!(IDecimateVideoImage, windows_core::IUnknown); impl IDecimateVideoImage { pub unsafe fn SetDecimationImageSize(&self, lwidth: i32, lheight: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDecimationImageSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lwidth), core::mem::transmute(lheight)).ok() + (windows_core::Interface::vtable(self).SetDecimationImageSize)(windows_core::Interface::as_raw(self), lwidth, lheight).ok() } pub unsafe fn ResetDecimationImageSize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetDecimationImageSize)(windows_core::Interface::as_raw(self)).ok() @@ -17006,7 +16995,7 @@ impl IDeferredCommand { (windows_core::Interface::vtable(self).Confidence)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Postpone(&self, newtime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Postpone)(windows_core::Interface::as_raw(self), core::mem::transmute(newtime)).ok() + (windows_core::Interface::vtable(self).Postpone)(windows_core::Interface::as_raw(self), newtime).ok() } pub unsafe fn GetHResult(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17178,7 +17167,7 @@ impl IDirectDrawMediaStream { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pddsurfacedesc), pdirectdrawpalette.param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), pddsurfacedesc, pdirectdrawpalette.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetDirectDraw(&self) -> windows_core::Result { @@ -17198,7 +17187,7 @@ impl IDirectDrawMediaStream { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), psurface.param().abi(), core::mem::transmute(prect), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), psurface.param().abi(), prect, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTimePerFrame(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17314,7 +17303,7 @@ impl IDirectDrawStreamSample { (windows_core::Interface::vtable(self).GetSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdirectdrawsurface), core::mem::transmute(prect)).ok() } pub unsafe fn SetRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), prect).ok() } } #[repr(C)] @@ -17358,7 +17347,7 @@ impl IDirectDrawVideo { (windows_core::Interface::vtable(self).GetSwitches)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSwitches(&self, switches: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSwitches)(windows_core::Interface::as_raw(self), core::mem::transmute(switches)).ok() + (windows_core::Interface::vtable(self).SetSwitches)(windows_core::Interface::as_raw(self), switches).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetCaps(&self, pcaps: *mut super::super::Graphics::DirectDraw::DDCAPS_DX7) -> windows_core::Result<()> { @@ -17395,21 +17384,21 @@ impl IDirectDrawVideo { (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn UseScanLine(&self, usescanline: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UseScanLine)(windows_core::Interface::as_raw(self), core::mem::transmute(usescanline)).ok() + (windows_core::Interface::vtable(self).UseScanLine)(windows_core::Interface::as_raw(self), usescanline).ok() } pub unsafe fn CanUseScanLine(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanUseScanLine)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn UseOverlayStretch(&self, useoverlaystretch: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UseOverlayStretch)(windows_core::Interface::as_raw(self), core::mem::transmute(useoverlaystretch)).ok() + (windows_core::Interface::vtable(self).UseOverlayStretch)(windows_core::Interface::as_raw(self), useoverlaystretch).ok() } pub unsafe fn CanUseOverlayStretch(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanUseOverlayStretch)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn UseWhenFullScreen(&self, usewhenfullscreen: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UseWhenFullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(usewhenfullscreen)).ok() + (windows_core::Interface::vtable(self).UseWhenFullScreen)(windows_core::Interface::as_raw(self), usewhenfullscreen).ok() } pub unsafe fn WillUseFullScreen(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17609,7 +17598,7 @@ impl IDistributorNotify { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Run(&self, tstart: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), core::mem::transmute(tstart)).ok() + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), tstart).ok() } pub unsafe fn SetSyncSource(&self, pclock: P0) -> windows_core::Result<()> where @@ -17684,7 +17673,7 @@ impl IDrawVideoImage { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DrawVideoImageDraw(&self, hdc: super::super::Graphics::Gdi::HDC, lprcsrc: *const super::super::Foundation::RECT, lprcdst: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawVideoImageDraw)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(lprcsrc), core::mem::transmute(lprcdst)).ok() + (windows_core::Interface::vtable(self).DrawVideoImageDraw)(windows_core::Interface::as_raw(self), hdc, lprcsrc, lprcdst).ok() } } #[repr(C)] @@ -17776,13 +17765,13 @@ windows_core::imp::define_interface!(IDvdControl, IDvdControl_Vtbl, 0xa70efe61_e windows_core::imp::interface_hierarchy!(IDvdControl, windows_core::IUnknown); impl IDvdControl { pub unsafe fn TitlePlay(&self, ultitle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TitlePlay)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle)).ok() + (windows_core::Interface::vtable(self).TitlePlay)(windows_core::Interface::as_raw(self), ultitle).ok() } pub unsafe fn ChapterPlay(&self, ultitle: u32, ulchapter: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChapterPlay)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(ulchapter)).ok() + (windows_core::Interface::vtable(self).ChapterPlay)(windows_core::Interface::as_raw(self), ultitle, ulchapter).ok() } pub unsafe fn TimePlay(&self, ultitle: u32, bcdtime: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TimePlay)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(bcdtime)).ok() + (windows_core::Interface::vtable(self).TimePlay)(windows_core::Interface::as_raw(self), ultitle, bcdtime).ok() } pub unsafe fn StopForResume(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopForResume)(windows_core::Interface::as_raw(self)).ok() @@ -17791,10 +17780,10 @@ impl IDvdControl { (windows_core::Interface::vtable(self).GoUp)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TimeSearch(&self, bcdtime: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TimeSearch)(windows_core::Interface::as_raw(self), core::mem::transmute(bcdtime)).ok() + (windows_core::Interface::vtable(self).TimeSearch)(windows_core::Interface::as_raw(self), bcdtime).ok() } pub unsafe fn ChapterSearch(&self, ulchapter: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChapterSearch)(windows_core::Interface::as_raw(self), core::mem::transmute(ulchapter)).ok() + (windows_core::Interface::vtable(self).ChapterSearch)(windows_core::Interface::as_raw(self), ulchapter).ok() } pub unsafe fn PrevPGSearch(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PrevPGSearch)(windows_core::Interface::as_raw(self)).ok() @@ -17806,13 +17795,13 @@ impl IDvdControl { (windows_core::Interface::vtable(self).NextPGSearch)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ForwardScan(&self, dwspeed: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ForwardScan)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspeed)).ok() + (windows_core::Interface::vtable(self).ForwardScan)(windows_core::Interface::as_raw(self), dwspeed).ok() } pub unsafe fn BackwardScan(&self, dwspeed: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BackwardScan)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspeed)).ok() + (windows_core::Interface::vtable(self).BackwardScan)(windows_core::Interface::as_raw(self), dwspeed).ok() } pub unsafe fn MenuCall(&self, menuid: DVD_MENU_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MenuCall)(windows_core::Interface::as_raw(self), core::mem::transmute(menuid)).ok() + (windows_core::Interface::vtable(self).MenuCall)(windows_core::Interface::as_raw(self), menuid).ok() } pub unsafe fn Resume(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self)).ok() @@ -17833,7 +17822,7 @@ impl IDvdControl { (windows_core::Interface::vtable(self).ButtonActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ButtonSelectAndActivate(&self, ulbutton: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ButtonSelectAndActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbutton)).ok() + (windows_core::Interface::vtable(self).ButtonSelectAndActivate)(windows_core::Interface::as_raw(self), ulbutton).ok() } pub unsafe fn StillOff(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StillOff)(windows_core::Interface::as_raw(self)).ok() @@ -17845,28 +17834,28 @@ impl IDvdControl { (windows_core::Interface::vtable(self).PauseOff)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn MenuLanguageSelect(&self, language: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MenuLanguageSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(language)).ok() + (windows_core::Interface::vtable(self).MenuLanguageSelect)(windows_core::Interface::as_raw(self), language).ok() } pub unsafe fn AudioStreamChange(&self, ulaudio: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AudioStreamChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulaudio)).ok() + (windows_core::Interface::vtable(self).AudioStreamChange)(windows_core::Interface::as_raw(self), ulaudio).ok() } pub unsafe fn SubpictureStreamChange(&self, ulsubpicture: u32, bdisplay: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SubpictureStreamChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsubpicture), bdisplay.into()).ok() + (windows_core::Interface::vtable(self).SubpictureStreamChange)(windows_core::Interface::as_raw(self), ulsubpicture, bdisplay.into()).ok() } pub unsafe fn AngleChange(&self, ulangle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AngleChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulangle)).ok() + (windows_core::Interface::vtable(self).AngleChange)(windows_core::Interface::as_raw(self), ulangle).ok() } pub unsafe fn ParentalLevelSelect(&self, ulparentallevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ParentalLevelSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(ulparentallevel)).ok() + (windows_core::Interface::vtable(self).ParentalLevelSelect)(windows_core::Interface::as_raw(self), ulparentallevel).ok() } pub unsafe fn ParentalCountrySelect(&self, wcountry: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ParentalCountrySelect)(windows_core::Interface::as_raw(self), core::mem::transmute(wcountry)).ok() + (windows_core::Interface::vtable(self).ParentalCountrySelect)(windows_core::Interface::as_raw(self), wcountry).ok() } pub unsafe fn KaraokeAudioPresentationModeChange(&self, ulmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KaraokeAudioPresentationModeChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmode)).ok() + (windows_core::Interface::vtable(self).KaraokeAudioPresentationModeChange)(windows_core::Interface::as_raw(self), ulmode).ok() } pub unsafe fn VideoModePreferrence(&self, ulpreferreddisplaymode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VideoModePreferrence)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpreferreddisplaymode)).ok() + (windows_core::Interface::vtable(self).VideoModePreferrence)(windows_core::Interface::as_raw(self), ulpreferreddisplaymode).ok() } pub unsafe fn SetRoot(&self, pszpath: P0) -> windows_core::Result<()> where @@ -17881,7 +17870,7 @@ impl IDvdControl { (windows_core::Interface::vtable(self).MouseSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(point)).ok() } pub unsafe fn ChapterPlayAutoStop(&self, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChapterPlayAutoStop)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(ulchapter), core::mem::transmute(ulchapterstoplay)).ok() + (windows_core::Interface::vtable(self).ChapterPlayAutoStop)(windows_core::Interface::as_raw(self), ultitle, ulchapter, ulchapterstoplay).ok() } } #[repr(C)] @@ -18151,70 +18140,70 @@ windows_core::imp::interface_hierarchy!(IDvdControl2, windows_core::IUnknown); impl IDvdControl2 { pub unsafe fn PlayTitle(&self, ultitle: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), ultitle, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayChapterInTitle(&self, ultitle: u32, ulchapter: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(ulchapter), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), ultitle, ulchapter, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayAtTimeInTitle(&self, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(pstarttime), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), ultitle, pstarttime, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ReturnFromSubmenu(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReturnFromSubmenu)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReturnFromSubmenu)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayAtTime(&self, ptime: *const DVD_HMSF_TIMECODE, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), core::mem::transmute(ptime), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), ptime, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayChapter(&self, ulchapter: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(ulchapter), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), ulchapter, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayPrevChapter(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayPrevChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayPrevChapter)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReplayChapter(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayNextChapter(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayNextChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayNextChapter)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayForwards(&self, dspeed: f64, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayForwards)(windows_core::Interface::as_raw(self), core::mem::transmute(dspeed), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayForwards)(windows_core::Interface::as_raw(self), dspeed, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayBackwards(&self, dspeed: f64, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayBackwards)(windows_core::Interface::as_raw(self), core::mem::transmute(dspeed), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayBackwards)(windows_core::Interface::as_raw(self), dspeed, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowMenu(&self, menuid: DVD_MENU_ID, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(menuid), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), menuid, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Resume(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectRelativeButton(&self, buttondir: DVD_RELATIVE_BUTTON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectRelativeButton)(windows_core::Interface::as_raw(self), core::mem::transmute(buttondir)).ok() + (windows_core::Interface::vtable(self).SelectRelativeButton)(windows_core::Interface::as_raw(self), buttondir).ok() } pub unsafe fn ActivateButton(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ActivateButton)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SelectButton(&self, ulbutton: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectButton)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbutton)).ok() + (windows_core::Interface::vtable(self).SelectButton)(windows_core::Interface::as_raw(self), ulbutton).ok() } pub unsafe fn SelectAndActivateButton(&self, ulbutton: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAndActivateButton)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbutton)).ok() + (windows_core::Interface::vtable(self).SelectAndActivateButton)(windows_core::Interface::as_raw(self), ulbutton).ok() } pub unsafe fn StillOff(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StillOff)(windows_core::Interface::as_raw(self)).ok() @@ -18224,31 +18213,31 @@ impl IDvdControl2 { } pub unsafe fn SelectAudioStream(&self, ulaudio: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SelectAudioStream)(windows_core::Interface::as_raw(self), core::mem::transmute(ulaudio), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SelectAudioStream)(windows_core::Interface::as_raw(self), ulaudio, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectSubpictureStream(&self, ulsubpicture: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SelectSubpictureStream)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsubpicture), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SelectSubpictureStream)(windows_core::Interface::as_raw(self), ulsubpicture, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSubpictureState(&self, bstate: bool, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetSubpictureState)(windows_core::Interface::as_raw(self), bstate.into(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetSubpictureState)(windows_core::Interface::as_raw(self), bstate.into(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectAngle(&self, ulangle: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SelectAngle)(windows_core::Interface::as_raw(self), core::mem::transmute(ulangle), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SelectAngle)(windows_core::Interface::as_raw(self), ulangle, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectParentalLevel(&self, ulparentallevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectParentalLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ulparentallevel)).ok() + (windows_core::Interface::vtable(self).SelectParentalLevel)(windows_core::Interface::as_raw(self), ulparentallevel).ok() } pub unsafe fn SelectParentalCountry(&self, bcountry: &[u8; 2]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SelectParentalCountry)(windows_core::Interface::as_raw(self), core::mem::transmute(bcountry.as_ptr())).ok() } pub unsafe fn SelectKaraokeAudioPresentationMode(&self, ulmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectKaraokeAudioPresentationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmode)).ok() + (windows_core::Interface::vtable(self).SelectKaraokeAudioPresentationMode)(windows_core::Interface::as_raw(self), ulmode).ok() } pub unsafe fn SelectVideoModePreference(&self, ulpreferreddisplaymode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectVideoModePreference)(windows_core::Interface::as_raw(self), core::mem::transmute(ulpreferreddisplaymode)).ok() + (windows_core::Interface::vtable(self).SelectVideoModePreference)(windows_core::Interface::as_raw(self), ulpreferreddisplaymode).ok() } pub unsafe fn SetDVDDirectory(&self, pszwpath: P0) -> windows_core::Result<()> where @@ -18264,37 +18253,37 @@ impl IDvdControl2 { } pub unsafe fn PlayChaptersAutoStop(&self, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayChaptersAutoStop)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(ulchapter), core::mem::transmute(ulchapterstoplay), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayChaptersAutoStop)(windows_core::Interface::as_raw(self), ultitle, ulchapter, ulchapterstoplay, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AcceptParentalLevelChange(&self, baccept: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), baccept.into()).ok() } pub unsafe fn SetOption(&self, flag: DVD_OPTION_FLAG, fstate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(flag), fstate.into()).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), flag, fstate.into()).ok() } pub unsafe fn SetState(&self, pstate: P0, dwflags: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), pstate.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), pstate.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PlayPeriodInTitleAutoStop(&self, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, pendtime: *const DVD_HMSF_TIMECODE, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(pstarttime), core::mem::transmute(pendtime), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), ultitle, pstarttime, pendtime, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetGPRM(&self, ulindex: u32, wvalue: u16, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetGPRM)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), core::mem::transmute(wvalue), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetGPRM)(windows_core::Interface::as_raw(self), ulindex, wvalue, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectDefaultMenuLanguage(&self, language: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDefaultMenuLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(language)).ok() + (windows_core::Interface::vtable(self).SelectDefaultMenuLanguage)(windows_core::Interface::as_raw(self), language).ok() } pub unsafe fn SelectDefaultAudioLanguage(&self, language: u32, audioextension: DVD_AUDIO_LANG_EXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDefaultAudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(language), core::mem::transmute(audioextension)).ok() + (windows_core::Interface::vtable(self).SelectDefaultAudioLanguage)(windows_core::Interface::as_raw(self), language, audioextension).ok() } pub unsafe fn SelectDefaultSubpictureLanguage(&self, language: u32, subpictureextension: DVD_SUBPICTURE_LANG_EXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectDefaultSubpictureLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(language), core::mem::transmute(subpictureextension)).ok() + (windows_core::Interface::vtable(self).SelectDefaultSubpictureLanguage)(windows_core::Interface::as_raw(self), language, subpictureextension).ok() } } #[repr(C)] @@ -18728,13 +18717,13 @@ impl IDvdGraphBuilder { (windows_core::Interface::vtable(self).GetFiltergraph)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDvdInterface(&self, riid: *const windows_core::GUID, ppvif: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDvdInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppvif)).ok() + (windows_core::Interface::vtable(self).GetDvdInterface)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppvif)).ok() } pub unsafe fn RenderDvdVideoVolume(&self, lpcwszpathname: P0, dwflags: u32, pstatus: *mut AM_DVD_RENDERSTATUS) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderDvdVideoVolume)(windows_core::Interface::as_raw(self), lpcwszpathname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pstatus)).ok() + (windows_core::Interface::vtable(self).RenderDvdVideoVolume)(windows_core::Interface::as_raw(self), lpcwszpathname.param().abi(), dwflags, core::mem::transmute(pstatus)).ok() } } #[repr(C)] @@ -18822,14 +18811,14 @@ impl IDvdInfo { } pub unsafe fn GetAudioLanguage(&self, ulstream: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAudioLanguage)(windows_core::Interface::as_raw(self), ulstream, &mut result__).map(|| result__) } pub unsafe fn GetSubpictureLanguage(&self, ulstream: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubpictureLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubpictureLanguage)(windows_core::Interface::as_raw(self), ulstream, &mut result__).map(|| result__) } pub unsafe fn GetTitleAttributes(&self, ultitle: u32, patr: *mut DVD_ATR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTitleAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(patr)).ok() + (windows_core::Interface::vtable(self).GetTitleAttributes)(windows_core::Interface::as_raw(self), ultitle, core::mem::transmute(patr)).ok() } pub unsafe fn GetVMGAttributes(&self, patr: *mut DVD_ATR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVMGAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(patr)).ok() @@ -18857,11 +18846,11 @@ impl IDvdInfo { } pub unsafe fn GetNumberOfChapters(&self, ultitle: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumberOfChapters)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumberOfChapters)(windows_core::Interface::as_raw(self), ultitle, &mut result__).map(|| result__) } pub unsafe fn GetTitleParentalLevels(&self, ultitle: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTitleParentalLevels)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTitleParentalLevels)(windows_core::Interface::as_raw(self), ultitle, &mut result__).map(|| result__) } pub unsafe fn GetRoot(&self, proot: &mut [u8], pulactualsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRoot)(windows_core::Interface::as_raw(self), core::mem::transmute(proot.as_ptr()), proot.len().try_into().unwrap(), core::mem::transmute(pulactualsize)).ok() @@ -19163,14 +19152,14 @@ impl IDvdInfo2 { } pub unsafe fn GetAudioLanguage(&self, ulstream: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAudioLanguage)(windows_core::Interface::as_raw(self), ulstream, &mut result__).map(|| result__) } pub unsafe fn GetSubpictureLanguage(&self, ulstream: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubpictureLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubpictureLanguage)(windows_core::Interface::as_raw(self), ulstream, &mut result__).map(|| result__) } pub unsafe fn GetTitleAttributes(&self, ultitle: u32, pmenu: *mut DVD_MenuAttributes, ptitle: *mut DVD_TitleAttributes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTitleAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), core::mem::transmute(pmenu), core::mem::transmute(ptitle)).ok() + (windows_core::Interface::vtable(self).GetTitleAttributes)(windows_core::Interface::as_raw(self), ultitle, core::mem::transmute(pmenu), core::mem::transmute(ptitle)).ok() } pub unsafe fn GetVMGAttributes(&self, patr: *mut DVD_MenuAttributes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVMGAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(patr)).ok() @@ -19179,14 +19168,14 @@ impl IDvdInfo2 { (windows_core::Interface::vtable(self).GetCurrentVideoAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(patr)).ok() } pub unsafe fn GetAudioAttributes(&self, ulstream: u32, patr: *mut DVD_AudioAttributes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAudioAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), core::mem::transmute(patr)).ok() + (windows_core::Interface::vtable(self).GetAudioAttributes)(windows_core::Interface::as_raw(self), ulstream, core::mem::transmute(patr)).ok() } pub unsafe fn GetKaraokeAttributes(&self, ulstream: u32, pattributes: *mut DVD_KaraokeAttributes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetKaraokeAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), core::mem::transmute(pattributes)).ok() + (windows_core::Interface::vtable(self).GetKaraokeAttributes)(windows_core::Interface::as_raw(self), ulstream, core::mem::transmute(pattributes)).ok() } pub unsafe fn GetSubpictureAttributes(&self, ulstream: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubpictureAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubpictureAttributes)(windows_core::Interface::as_raw(self), ulstream, &mut result__).map(|| result__) } pub unsafe fn GetDVDVolumeInfo(&self, pulnumofvolumes: *mut u32, pulvolume: *mut u32, pside: *mut DVD_DISC_SIDE, pulnumoftitles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDVDVolumeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pulnumofvolumes), core::mem::transmute(pulvolume), core::mem::transmute(pside), core::mem::transmute(pulnumoftitles)).ok() @@ -19196,31 +19185,31 @@ impl IDvdInfo2 { (windows_core::Interface::vtable(self).GetDVDTextNumberOfLanguages)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDVDTextLanguageInfo(&self, ullangindex: u32, pulnumofstrings: *mut u32, plangcode: *mut u32, pbcharacterset: *mut DVD_TextCharSet) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDVDTextLanguageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ullangindex), core::mem::transmute(pulnumofstrings), core::mem::transmute(plangcode), core::mem::transmute(pbcharacterset)).ok() + (windows_core::Interface::vtable(self).GetDVDTextLanguageInfo)(windows_core::Interface::as_raw(self), ullangindex, core::mem::transmute(pulnumofstrings), core::mem::transmute(plangcode), core::mem::transmute(pbcharacterset)).ok() } pub unsafe fn GetDVDTextStringAsNative(&self, ullangindex: u32, ulstringindex: u32, pbbuffer: *mut u8, ulmaxbuffersize: u32, pulactualsize: *mut u32, ptype: *mut DVD_TextStringType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDVDTextStringAsNative)(windows_core::Interface::as_raw(self), core::mem::transmute(ullangindex), core::mem::transmute(ulstringindex), core::mem::transmute(pbbuffer), core::mem::transmute(ulmaxbuffersize), core::mem::transmute(pulactualsize), core::mem::transmute(ptype)).ok() + (windows_core::Interface::vtable(self).GetDVDTextStringAsNative)(windows_core::Interface::as_raw(self), ullangindex, ulstringindex, core::mem::transmute(pbbuffer), ulmaxbuffersize, core::mem::transmute(pulactualsize), core::mem::transmute(ptype)).ok() } pub unsafe fn GetDVDTextStringAsUnicode(&self, ullangindex: u32, ulstringindex: u32, pchwbuffer: windows_core::PWSTR, ulmaxbuffersize: u32, pulactualsize: *mut u32, ptype: *mut DVD_TextStringType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDVDTextStringAsUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(ullangindex), core::mem::transmute(ulstringindex), core::mem::transmute(pchwbuffer), core::mem::transmute(ulmaxbuffersize), core::mem::transmute(pulactualsize), core::mem::transmute(ptype)).ok() + (windows_core::Interface::vtable(self).GetDVDTextStringAsUnicode)(windows_core::Interface::as_raw(self), ullangindex, ulstringindex, core::mem::transmute(pchwbuffer), ulmaxbuffersize, core::mem::transmute(pulactualsize), core::mem::transmute(ptype)).ok() } pub unsafe fn GetPlayerParentalLevel(&self, pulparentallevel: *mut u32, pbcountrycode: &mut [u8; 2]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPlayerParentalLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(pulparentallevel), core::mem::transmute(pbcountrycode.as_ptr())).ok() } pub unsafe fn GetNumberOfChapters(&self, ultitle: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumberOfChapters)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumberOfChapters)(windows_core::Interface::as_raw(self), ultitle, &mut result__).map(|| result__) } pub unsafe fn GetTitleParentalLevels(&self, ultitle: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTitleParentalLevels)(windows_core::Interface::as_raw(self), core::mem::transmute(ultitle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTitleParentalLevels)(windows_core::Interface::as_raw(self), ultitle, &mut result__).map(|| result__) } pub unsafe fn GetDVDDirectory(&self, pszwpath: &mut [u16], pulactualsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDVDDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszwpath.as_ptr()), pszwpath.len().try_into().unwrap(), core::mem::transmute(pulactualsize)).ok() } pub unsafe fn IsAudioStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsAudioStreamEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsAudioStreamEnabled)(windows_core::Interface::as_raw(self), ulstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetDiscID(&self, pszwpath: P0) -> windows_core::Result where @@ -19234,7 +19223,7 @@ impl IDvdInfo2 { (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMenuLanguages(&self, planguages: *mut u32, ulmaxlanguages: u32, pulactuallanguages: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMenuLanguages)(windows_core::Interface::as_raw(self), core::mem::transmute(planguages), core::mem::transmute(ulmaxlanguages), core::mem::transmute(pulactuallanguages)).ok() + (windows_core::Interface::vtable(self).GetMenuLanguages)(windows_core::Interface::as_raw(self), core::mem::transmute(planguages), ulmaxlanguages, core::mem::transmute(pulactuallanguages)).ok() } pub unsafe fn GetButtonAtPosition(&self, point: super::super::Foundation::POINT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19242,7 +19231,7 @@ impl IDvdInfo2 { } pub unsafe fn GetCmdFromEvent(&self, lparam1: isize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCmdFromEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(lparam1), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCmdFromEvent)(windows_core::Interface::as_raw(self), lparam1, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultMenuLanguage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19259,11 +19248,11 @@ impl IDvdInfo2 { } pub unsafe fn GetButtonRect(&self, ulbutton: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetButtonRect)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbutton), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetButtonRect)(windows_core::Interface::as_raw(self), ulbutton, &mut result__).map(|| result__) } pub unsafe fn IsSubpictureStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSubpictureStreamEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSubpictureStreamEnabled)(windows_core::Interface::as_raw(self), ulstreamnum, &mut result__).map(|| result__) } } #[repr(C)] @@ -19737,7 +19726,7 @@ impl IESEvent { (windows_core::Interface::vtable(self).GetEventType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCompletionStatus(&self, dwresult: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompletionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwresult)).ok() + (windows_core::Interface::vtable(self).SetCompletionStatus)(windows_core::Interface::as_raw(self), dwresult).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetData(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -19866,32 +19855,32 @@ windows_core::imp::define_interface!(IEncoderAPI, IEncoderAPI_Vtbl, 0x70423839_6 windows_core::imp::interface_hierarchy!(IEncoderAPI, windows_core::IUnknown); impl IEncoderAPI { pub unsafe fn IsSupported(&self, api: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(api)).ok() + (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), api).ok() } pub unsafe fn IsAvailable(&self, api: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(api)).ok() + (windows_core::Interface::vtable(self).IsAvailable)(windows_core::Interface::as_raw(self), api).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetParameterRange(&self, api: *const windows_core::GUID, valuemin: *mut super::super::System::Variant::VARIANT, valuemax: *mut super::super::System::Variant::VARIANT, steppingdelta: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParameterRange)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(valuemin), core::mem::transmute(valuemax), core::mem::transmute(steppingdelta)).ok() + (windows_core::Interface::vtable(self).GetParameterRange)(windows_core::Interface::as_raw(self), api, core::mem::transmute(valuemin), core::mem::transmute(valuemax), core::mem::transmute(steppingdelta)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetParameterValues(&self, api: *const windows_core::GUID, values: *mut *mut super::super::System::Variant::VARIANT, valuescount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParameterValues)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(values), core::mem::transmute(valuescount)).ok() + (windows_core::Interface::vtable(self).GetParameterValues)(windows_core::Interface::as_raw(self), api, core::mem::transmute(values), core::mem::transmute(valuescount)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetDefaultValue(&self, api: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultValue)(windows_core::Interface::as_raw(self), core::mem::transmute(api), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDefaultValue)(windows_core::Interface::as_raw(self), api, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, api: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(api), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), api, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, api: *const windows_core::GUID, value: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), api, core::mem::transmute(value)).ok() } } #[repr(C)] @@ -19998,7 +19987,7 @@ impl IEnumFilters { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppfilter.len().try_into().unwrap(), core::mem::transmute(ppfilter.as_ptr()), core::mem::transmute(pcfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, cfilters: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cfilters)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cfilters).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -20073,7 +20062,7 @@ impl IEnumMediaTypes { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppmediatypes.len().try_into().unwrap(), core::mem::transmute(ppmediatypes.as_ptr()), core::mem::transmute(pcfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, cmediatypes: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cmediatypes)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cmediatypes).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -20147,7 +20136,7 @@ impl IEnumPIDMap { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppidmap.len().try_into().unwrap(), core::mem::transmute(ppidmap.as_ptr()), core::mem::transmute(pcreceived)) } pub unsafe fn Skip(&self, crecords: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(crecords)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), crecords).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -20215,7 +20204,7 @@ impl IEnumPins { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pppins.len().try_into().unwrap(), core::mem::transmute(pppins.as_ptr()), core::mem::transmute(pcfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, cpins: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cpins)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cpins).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -20283,7 +20272,7 @@ impl IEnumRegFilters { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), apregfilter.len().try_into().unwrap(), core::mem::transmute(apregfilter.as_ptr()), core::mem::transmute(pcfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, cfilters: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cfilters)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cfilters).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -20351,7 +20340,7 @@ impl IEnumStreamIdMap { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pstreamidmap.len().try_into().unwrap(), core::mem::transmute(pstreamidmap.as_ptr()), core::mem::transmute(pcreceived.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, crecords: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(crecords)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), crecords).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -20480,7 +20469,7 @@ impl core::ops::Deref for IFileSinkFilter2 { windows_core::imp::interface_hierarchy!(IFileSinkFilter2, windows_core::IUnknown, IFileSinkFilter); impl IFileSinkFilter2 { pub unsafe fn SetMode(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20854,7 +20843,7 @@ impl IFilterGraph2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderEx)(windows_core::Interface::as_raw(self), ppinout.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).RenderEx)(windows_core::Interface::as_raw(self), ppinout.param().abi(), dwflags, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -21127,7 +21116,7 @@ impl IFilterMapper { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), name.param().abi(), core::mem::transmute(dwmerit)).ok() + (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), name.param().abi(), dwmerit).ok() } pub unsafe fn RegisterFilterInstance(&self, clsid: windows_core::GUID, name: P1) -> windows_core::Result where @@ -21162,7 +21151,7 @@ impl IFilterMapper { (windows_core::Interface::vtable(self).UnregisterPin)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), name.param().abi()).ok() } pub unsafe fn EnumMatchingFilters(&self, ppenum: *mut Option, dwmerit: u32, binputneeded: bool, clsinmaj: windows_core::GUID, clsinsub: windows_core::GUID, brender: bool, boututneeded: bool, clsoutmaj: windows_core::GUID, clsoutsub: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMatchingFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenum), core::mem::transmute(dwmerit), binputneeded.into(), core::mem::transmute(clsinmaj), core::mem::transmute(clsinsub), brender.into(), boututneeded.into(), core::mem::transmute(clsoutmaj), core::mem::transmute(clsoutsub)).ok() + (windows_core::Interface::vtable(self).EnumMatchingFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenum), dwmerit, binputneeded.into(), core::mem::transmute(clsinmaj), core::mem::transmute(clsinsub), brender.into(), boututneeded.into(), core::mem::transmute(clsoutmaj), core::mem::transmute(clsoutsub)).ok() } } #[repr(C)] @@ -21251,13 +21240,13 @@ impl IFilterMapper2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidcategory), core::mem::transmute(dwcategorymerit), description.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateCategory)(windows_core::Interface::as_raw(self), clsidcategory, dwcategorymerit, description.param().abi()).ok() } pub unsafe fn UnregisterFilter(&self, pclsidcategory: *const windows_core::GUID, szinstance: P1, filter: *const windows_core::GUID) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pclsidcategory), szinstance.param().abi(), core::mem::transmute(filter)).ok() + (windows_core::Interface::vtable(self).UnregisterFilter)(windows_core::Interface::as_raw(self), pclsidcategory, szinstance.param().abi(), filter).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterFilter(&self, clsidfilter: *const windows_core::GUID, name: P1, ppmoniker: Option<*mut Option>, pclsidcategory: *const windows_core::GUID, szinstance: P4, prf2: *const REGFILTER2) -> windows_core::Result<()> @@ -21265,24 +21254,24 @@ impl IFilterMapper2 { P1: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidfilter), name.param().abi(), core::mem::transmute(ppmoniker.unwrap_or(core::mem::zeroed())), core::mem::transmute(pclsidcategory), szinstance.param().abi(), core::mem::transmute(prf2)).ok() + (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), clsidfilter, name.param().abi(), core::mem::transmute(ppmoniker.unwrap_or(core::mem::zeroed())), pclsidcategory, szinstance.param().abi(), prf2).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumMatchingFilters(&self, ppenum: *mut Option, dwflags: u32, bexactmatch: bool, dwmerit: u32, binputneeded: bool, cinputtypes: u32, pinputtypes: Option<*const windows_core::GUID>, pmedin: Option<*const REGPINMEDIUM>, ppincategoryin: Option<*const windows_core::GUID>, brender: bool, boutputneeded: bool, coutputtypes: u32, poutputtypes: Option<*const windows_core::GUID>, pmedout: Option<*const REGPINMEDIUM>, ppincategoryout: Option<*const windows_core::GUID>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumMatchingFilters)( windows_core::Interface::as_raw(self), core::mem::transmute(ppenum), - core::mem::transmute(dwflags), + dwflags, bexactmatch.into(), - core::mem::transmute(dwmerit), + dwmerit, binputneeded.into(), - core::mem::transmute(cinputtypes), + cinputtypes, core::mem::transmute(pinputtypes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmedin.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppincategoryin.unwrap_or(core::mem::zeroed())), brender.into(), boutputneeded.into(), - core::mem::transmute(coutputtypes), + coutputtypes, core::mem::transmute(poutputtypes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmedout.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppincategoryout.unwrap_or(core::mem::zeroed())), @@ -21420,10 +21409,10 @@ impl IFrequencyMap { (windows_core::Interface::vtable(self).CountryCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCountryCode(&self, ulcountrycode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcountrycode)).ok() + (windows_core::Interface::vtable(self).SetCountryCode)(windows_core::Interface::as_raw(self), ulcountrycode).ok() } pub unsafe fn get_DefaultFrequencyMapping(&self, ulcountrycode: u32, pulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_DefaultFrequencyMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcountrycode), core::mem::transmute(pulcount), core::mem::transmute(ppullist)).ok() + (windows_core::Interface::vtable(self).get_DefaultFrequencyMapping)(windows_core::Interface::as_raw(self), ulcountrycode, core::mem::transmute(pulcount), core::mem::transmute(ppullist)).ok() } pub unsafe fn get_CountryCodeList(&self, pulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_CountryCodeList)(windows_core::Interface::as_raw(self), core::mem::transmute(pulcount), core::mem::transmute(ppullist)).ok() @@ -21502,44 +21491,44 @@ impl IFullScreenVideo { (windows_core::Interface::vtable(self).CountModes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetModeInfo(&self, mode: i32, pwidth: *mut i32, pheight: *mut i32, pdepth: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(mode), core::mem::transmute(pwidth), core::mem::transmute(pheight), core::mem::transmute(pdepth)).ok() + (windows_core::Interface::vtable(self).GetModeInfo)(windows_core::Interface::as_raw(self), mode, core::mem::transmute(pwidth), core::mem::transmute(pheight), core::mem::transmute(pdepth)).ok() } pub unsafe fn GetCurrentMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn IsModeAvailable(&self, mode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsModeAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).IsModeAvailable)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn IsModeEnabled(&self, mode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsModeEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).IsModeEnabled)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetEnabled(&self, mode: i32, benabled: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(mode), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), mode, benabled).ok() } pub unsafe fn GetClipFactor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetClipFactor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClipFactor(&self, clipfactor: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(clipfactor)).ok() + (windows_core::Interface::vtable(self).SetClipFactor)(windows_core::Interface::as_raw(self), clipfactor).ok() } pub unsafe fn SetMessageDrain(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageDrain)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetMessageDrain)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn GetMessageDrain(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMessageDrain)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMonitor(&self, monitor: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(monitor)).ok() + (windows_core::Interface::vtable(self).SetMonitor)(windows_core::Interface::as_raw(self), monitor).ok() } pub unsafe fn GetMonitor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMonitor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn HideOnDeactivate(&self, hide: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HideOnDeactivate)(windows_core::Interface::as_raw(self), core::mem::transmute(hide)).ok() + (windows_core::Interface::vtable(self).HideOnDeactivate)(windows_core::Interface::as_raw(self), hide).ok() } pub unsafe fn IsHideOnDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsHideOnDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -21738,14 +21727,14 @@ windows_core::imp::interface_hierarchy!(IFullScreenVideoEx, windows_core::IUnkno impl IFullScreenVideoEx { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorTable(&self, hwnd: super::super::Foundation::HWND, haccel: super::super::UI::WindowsAndMessaging::HACCEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAcceleratorTable)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(haccel)).ok() + (windows_core::Interface::vtable(self).SetAcceleratorTable)(windows_core::Interface::as_raw(self), hwnd, haccel).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetAcceleratorTable(&self, phwnd: *mut super::super::Foundation::HWND, phaccel: *mut super::super::UI::WindowsAndMessaging::HACCEL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAcceleratorTable)(windows_core::Interface::as_raw(self), core::mem::transmute(phwnd), core::mem::transmute(phaccel)).ok() } pub unsafe fn KeepPixelAspectRatio(&self, keepaspect: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KeepPixelAspectRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(keepaspect)).ok() + (windows_core::Interface::vtable(self).KeepPixelAspectRatio)(windows_core::Interface::as_raw(self), keepaspect).ok() } pub unsafe fn IsKeepPixelAspectRatio(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21893,7 +21882,7 @@ impl IGraphBuilder { (windows_core::Interface::vtable(self).AddSourceFilter)(windows_core::Interface::as_raw(self), lpcwstrfilename.param().abi(), lpcwstrfiltername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetLogFile(&self, hfile: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(hfile)).ok() + (windows_core::Interface::vtable(self).SetLogFile)(windows_core::Interface::as_raw(self), hfile).ok() } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() @@ -21990,13 +21979,13 @@ impl IGraphConfig { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), poutputpin.param().abi(), pinputpin.param().abi(), core::mem::transmute(pmtfirstconnection), pusingfilter.param().abi(), core::mem::transmute(habortevent), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), poutputpin.param().abi(), pinputpin.param().abi(), core::mem::transmute(pmtfirstconnection), pusingfilter.param().abi(), habortevent, dwflags).ok() } pub unsafe fn Reconfigure(&self, pcallback: P0, pvcontext: *const core::ffi::c_void, dwflags: u32, habortevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconfigure)(windows_core::Interface::as_raw(self), pcallback.param().abi(), core::mem::transmute(pvcontext), core::mem::transmute(dwflags), core::mem::transmute(habortevent)).ok() + (windows_core::Interface::vtable(self).Reconfigure)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pvcontext, dwflags, habortevent).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFilterToCache(&self, pfilter: P0) -> windows_core::Result<()> @@ -22025,14 +22014,14 @@ impl IGraphConfig { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PushThroughData)(windows_core::Interface::as_raw(self), poutputpin.param().abi(), pconnection.param().abi(), core::mem::transmute(heventabort)).ok() + (windows_core::Interface::vtable(self).PushThroughData)(windows_core::Interface::as_raw(self), poutputpin.param().abi(), pconnection.param().abi(), heventabort).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFilterFlags(&self, pfilter: P0, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilterFlags)(windows_core::Interface::as_raw(self), pfilter.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFilterFlags)(windows_core::Interface::as_raw(self), pfilter.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFilterFlags(&self, pfilter: P0) -> windows_core::Result @@ -22047,7 +22036,7 @@ impl IGraphConfig { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFilterEx)(windows_core::Interface::as_raw(self), pfilter.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).RemoveFilterEx)(windows_core::Interface::as_raw(self), pfilter.param().abi(), flags).ok() } } #[repr(C)] @@ -22180,7 +22169,7 @@ windows_core::imp::define_interface!(IGraphConfigCallback, IGraphConfigCallback_ windows_core::imp::interface_hierarchy!(IGraphConfigCallback, windows_core::IUnknown); impl IGraphConfigCallback { pub unsafe fn Reconfigure(&self, pvcontext: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reconfigure)(windows_core::Interface::as_raw(self), core::mem::transmute(pvcontext), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Reconfigure)(windows_core::Interface::as_raw(self), core::mem::transmute(pvcontext), dwflags).ok() } } #[repr(C)] @@ -22247,7 +22236,7 @@ impl IIPDVDec { (windows_core::Interface::vtable(self).IPDisplay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIPDisplay(&self, displaypix: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIPDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(displaypix)).ok() + (windows_core::Interface::vtable(self).SetIPDisplay)(windows_core::Interface::as_raw(self), displaypix).ok() } } #[repr(C)] @@ -22291,10 +22280,10 @@ windows_core::imp::define_interface!(IMPEG2PIDMap, IMPEG2PIDMap_Vtbl, 0xafb6c2a1 windows_core::imp::interface_hierarchy!(IMPEG2PIDMap, windows_core::IUnknown); impl IMPEG2PIDMap { pub unsafe fn MapPID(&self, culpid: u32, pulpid: *const u32, mediasamplecontent: MEDIA_SAMPLE_CONTENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapPID)(windows_core::Interface::as_raw(self), core::mem::transmute(culpid), core::mem::transmute(pulpid), core::mem::transmute(mediasamplecontent)).ok() + (windows_core::Interface::vtable(self).MapPID)(windows_core::Interface::as_raw(self), culpid, pulpid, mediasamplecontent).ok() } pub unsafe fn UnmapPID(&self, culpid: u32, pulpid: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnmapPID)(windows_core::Interface::as_raw(self), core::mem::transmute(culpid), core::mem::transmute(pulpid)).ok() + (windows_core::Interface::vtable(self).UnmapPID)(windows_core::Interface::as_raw(self), culpid, pulpid).ok() } pub unsafe fn EnumPIDMap(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22349,7 +22338,7 @@ windows_core::imp::define_interface!(IMPEG2StreamIdMap, IMPEG2StreamIdMap_Vtbl, windows_core::imp::interface_hierarchy!(IMPEG2StreamIdMap, windows_core::IUnknown); impl IMPEG2StreamIdMap { pub unsafe fn MapStreamId(&self, ulstreamid: u32, mediasamplecontent: u32, ulsubstreamfiltervalue: u32, idataoffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapStreamId)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstreamid), core::mem::transmute(mediasamplecontent), core::mem::transmute(ulsubstreamfiltervalue), core::mem::transmute(idataoffset)).ok() + (windows_core::Interface::vtable(self).MapStreamId)(windows_core::Interface::as_raw(self), ulstreamid, mediasamplecontent, ulsubstreamfiltervalue, idataoffset).ok() } pub unsafe fn UnmapStreamId(&self, pulstreamid: &[u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnmapStreamId)(windows_core::Interface::as_raw(self), pulstreamid.len().try_into().unwrap(), core::mem::transmute(pulstreamid.as_ptr())).ok() @@ -22427,7 +22416,7 @@ impl IMediaControl { } pub unsafe fn GetState(&self, mstimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(mstimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), mstimeout, &mut result__).map(|| result__) } pub unsafe fn RenderFile(&self, strfilename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenderFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfilename)).ok() @@ -22574,20 +22563,20 @@ impl IMediaEvent { (windows_core::Interface::vtable(self).GetEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetEvent(&self, leventcode: *mut i32, lparam1: *mut isize, lparam2: *mut isize, mstimeout: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(leventcode), core::mem::transmute(lparam1), core::mem::transmute(lparam2), core::mem::transmute(mstimeout)).ok() + (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(leventcode), core::mem::transmute(lparam1), core::mem::transmute(lparam2), mstimeout).ok() } pub unsafe fn WaitForCompletion(&self, mstimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(mstimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), mstimeout, &mut result__).map(|| result__) } pub unsafe fn CancelDefaultHandling(&self, levcode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelDefaultHandling)(windows_core::Interface::as_raw(self), core::mem::transmute(levcode)).ok() + (windows_core::Interface::vtable(self).CancelDefaultHandling)(windows_core::Interface::as_raw(self), levcode).ok() } pub unsafe fn RestoreDefaultHandling(&self, levcode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RestoreDefaultHandling)(windows_core::Interface::as_raw(self), core::mem::transmute(levcode)).ok() + (windows_core::Interface::vtable(self).RestoreDefaultHandling)(windows_core::Interface::as_raw(self), levcode).ok() } pub unsafe fn FreeEventParams(&self, levcode: i32, lparam1: isize, lparam2: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeEventParams)(windows_core::Interface::as_raw(self), core::mem::transmute(levcode), core::mem::transmute(lparam1), core::mem::transmute(lparam2)).ok() + (windows_core::Interface::vtable(self).FreeEventParams)(windows_core::Interface::as_raw(self), levcode, lparam1, lparam2).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -22679,10 +22668,10 @@ windows_core::imp::interface_hierarchy!(IMediaEventEx, windows_core::IUnknown, s #[cfg(feature = "Win32_System_Com")] impl IMediaEventEx { pub unsafe fn SetNotifyWindow(&self, hwnd: isize, lmsg: i32, linstancedata: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(lmsg), core::mem::transmute(linstancedata)).ok() + (windows_core::Interface::vtable(self).SetNotifyWindow)(windows_core::Interface::as_raw(self), hwnd, lmsg, linstancedata).ok() } pub unsafe fn SetNotifyFlags(&self, lnonotifyflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lnonotifyflags)).ok() + (windows_core::Interface::vtable(self).SetNotifyFlags)(windows_core::Interface::as_raw(self), lnonotifyflags).ok() } pub unsafe fn GetNotifyFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22741,7 +22730,7 @@ windows_core::imp::define_interface!(IMediaEventSink, IMediaEventSink_Vtbl, 0x56 windows_core::imp::interface_hierarchy!(IMediaEventSink, windows_core::IUnknown); impl IMediaEventSink { pub unsafe fn Notify(&self, eventcode: i32, eventparam1: isize, eventparam2: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(eventcode), core::mem::transmute(eventparam1), core::mem::transmute(eventparam2)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), eventcode, eventparam1, eventparam2).ok() } } #[repr(C)] @@ -22785,11 +22774,11 @@ impl IMediaFilter { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Run(&self, tstart: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), core::mem::transmute(tstart)).ok() + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), tstart).ok() } pub unsafe fn GetState(&self, dwmillisecstimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmillisecstimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), dwmillisecstimeout, &mut result__).map(|| result__) } pub unsafe fn SetSyncSource(&self, pclock: P0) -> windows_core::Result<()> where @@ -22885,11 +22874,11 @@ impl IMediaParamInfo { (windows_core::Interface::vtable(self).GetParamCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetParamInfo(&self, dwparamindex: u32, pinfo: *mut MP_PARAMINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamindex), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).GetParamInfo)(windows_core::Interface::as_raw(self), dwparamindex, core::mem::transmute(pinfo)).ok() } pub unsafe fn GetParamText(&self, dwparamindex: u32) -> windows_core::Result<*mut u16> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParamText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParamText)(windows_core::Interface::as_raw(self), dwparamindex, &mut result__).map(|| result__) } pub unsafe fn GetNumTimeFormats(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22897,7 +22886,7 @@ impl IMediaParamInfo { } pub unsafe fn GetSupportedTimeFormat(&self, dwformatindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(dwformatindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSupportedTimeFormat)(windows_core::Interface::as_raw(self), dwformatindex, &mut result__).map(|| result__) } pub unsafe fn GetCurrentTimeFormat(&self, pguidtimeformat: *mut windows_core::GUID, ptimedata: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidtimeformat), core::mem::transmute(ptimedata)).ok() @@ -22991,19 +22980,19 @@ windows_core::imp::interface_hierarchy!(IMediaParams, windows_core::IUnknown); impl IMediaParams { pub unsafe fn GetParam(&self, dwparamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParam)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParam)(windows_core::Interface::as_raw(self), dwparamindex, &mut result__).map(|| result__) } pub unsafe fn SetParam(&self, dwparamindex: u32, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParam)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamindex), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParam)(windows_core::Interface::as_raw(self), dwparamindex, value).ok() } pub unsafe fn AddEnvelope(&self, dwparamindex: u32, csegments: u32, penvelopesegments: *const MP_ENVELOPE_SEGMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEnvelope)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamindex), core::mem::transmute(csegments), core::mem::transmute(penvelopesegments)).ok() + (windows_core::Interface::vtable(self).AddEnvelope)(windows_core::Interface::as_raw(self), dwparamindex, csegments, penvelopesegments).ok() } pub unsafe fn FlushEnvelope(&self, dwparamindex: u32, reftimestart: i64, reftimeend: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FlushEnvelope)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamindex), core::mem::transmute(reftimestart), core::mem::transmute(reftimeend)).ok() + (windows_core::Interface::vtable(self).FlushEnvelope)(windows_core::Interface::as_raw(self), dwparamindex, reftimestart, reftimeend).ok() } pub unsafe fn SetTimeFormat(&self, guidtimeformat: windows_core::GUID, mptimedata: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtimeformat), core::mem::transmute(mptimedata)).ok() + (windows_core::Interface::vtable(self).SetTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtimeformat), mptimedata).ok() } } #[repr(C)] @@ -23082,7 +23071,7 @@ impl IMediaPosition { (windows_core::Interface::vtable(self).Duration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentPosition(&self, lltime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lltime)).ok() + (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), lltime).ok() } pub unsafe fn CurrentPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23093,17 +23082,17 @@ impl IMediaPosition { (windows_core::Interface::vtable(self).StopTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStopTime(&self, lltime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopTime)(windows_core::Interface::as_raw(self), core::mem::transmute(lltime)).ok() + (windows_core::Interface::vtable(self).SetStopTime)(windows_core::Interface::as_raw(self), lltime).ok() } pub unsafe fn PrerollTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PrerollTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrerollTime(&self, lltime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrerollTime)(windows_core::Interface::as_raw(self), core::mem::transmute(lltime)).ok() + (windows_core::Interface::vtable(self).SetPrerollTime)(windows_core::Interface::as_raw(self), lltime).ok() } pub unsafe fn SetRate(&self, drate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(drate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), drate).ok() } pub unsafe fn Rate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23273,7 +23262,7 @@ windows_core::imp::interface_hierarchy!(IMediaPropertyBag, windows_core::IUnknow impl IMediaPropertyBag { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn EnumProperty(&self, iproperty: u32, pvarpropertyname: *mut super::super::System::Variant::VARIANT, pvarpropertyvalue: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(iproperty), core::mem::transmute(pvarpropertyname), core::mem::transmute(pvarpropertyvalue)).ok() + (windows_core::Interface::vtable(self).EnumProperty)(windows_core::Interface::as_raw(self), iproperty, core::mem::transmute(pvarpropertyname), core::mem::transmute(pvarpropertyvalue)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -23339,7 +23328,7 @@ impl IMediaSample { (windows_core::Interface::vtable(self).GetActualDataLength)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetActualDataLength(&self, __midl__imediasample0000: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActualDataLength)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__imediasample0000)).ok() + (windows_core::Interface::vtable(self).SetActualDataLength)(windows_core::Interface::as_raw(self), __midl__imediasample0000).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetMediaType(&self) -> windows_core::Result<*mut super::MediaFoundation::AM_MEDIA_TYPE> { @@ -23609,7 +23598,7 @@ impl IMediaSeeking { (windows_core::Interface::vtable(self).CheckCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(pcapabilities)).ok() } pub unsafe fn IsFormatSupported(&self, pformat: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat)).ok() + (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), pformat).ok() } pub unsafe fn QueryPreferredFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23620,10 +23609,10 @@ impl IMediaSeeking { (windows_core::Interface::vtable(self).GetTimeFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn IsUsingTimeFormat(&self, pformat: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsUsingTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat)).ok() + (windows_core::Interface::vtable(self).IsUsingTimeFormat)(windows_core::Interface::as_raw(self), pformat).ok() } pub unsafe fn SetTimeFormat(&self, pformat: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pformat)).ok() + (windows_core::Interface::vtable(self).SetTimeFormat)(windows_core::Interface::as_raw(self), pformat).ok() } pub unsafe fn GetDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23638,10 +23627,10 @@ impl IMediaSeeking { (windows_core::Interface::vtable(self).GetCurrentPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ConvertTimeFormat(&self, ptarget: *mut i64, ptargetformat: Option<*const windows_core::GUID>, source: i64, psourceformat: Option<*const windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(ptarget), core::mem::transmute(ptargetformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(source), core::mem::transmute(psourceformat.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ConvertTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(ptarget), core::mem::transmute(ptargetformat.unwrap_or(core::mem::zeroed())), source, core::mem::transmute(psourceformat.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPositions(&self, pcurrent: Option<*mut i64>, dwcurrentflags: u32, pstop: Option<*mut i64>, dwstopflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPositions)(windows_core::Interface::as_raw(self), core::mem::transmute(pcurrent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcurrentflags), core::mem::transmute(pstop.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstopflags)).ok() + (windows_core::Interface::vtable(self).SetPositions)(windows_core::Interface::as_raw(self), core::mem::transmute(pcurrent.unwrap_or(core::mem::zeroed())), dwcurrentflags, core::mem::transmute(pstop.unwrap_or(core::mem::zeroed())), dwstopflags).ok() } pub unsafe fn GetPositions(&self, pcurrent: Option<*mut i64>, pstop: Option<*mut i64>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPositions)(windows_core::Interface::as_raw(self), core::mem::transmute(pcurrent.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstop.unwrap_or(core::mem::zeroed()))).ok() @@ -23650,7 +23639,7 @@ impl IMediaSeeking { (windows_core::Interface::vtable(self).GetAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(pearliest.unwrap_or(core::mem::zeroed())), core::mem::transmute(platest.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetRate(&self, drate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(drate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), drate).ok() } pub unsafe fn GetRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23859,21 +23848,21 @@ impl IMediaStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.param().abi(), dwflags).ok() } pub unsafe fn AllocateSample(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocateSample)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSharedSample(&self, pexistingsample: P0, dwflags: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SendEndOfStream(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendEndOfStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SendEndOfStream)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -23974,11 +23963,11 @@ impl IMediaStreamFilter { } pub unsafe fn GetMediaStream(&self, idpurpose: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMediaStream)(windows_core::Interface::as_raw(self), core::mem::transmute(idpurpose), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMediaStream)(windows_core::Interface::as_raw(self), idpurpose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumMediaStreams(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumMediaStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumMediaStreams)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportSeeking(&self, brenderer: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SupportSeeking)(windows_core::Interface::as_raw(self), brenderer.into()).ok() @@ -23991,7 +23980,7 @@ impl IMediaStreamFilter { (windows_core::Interface::vtable(self).GetCurrentStreamTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn WaitUntil(&self, waitstreamtime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(waitstreamtime)).ok() + (windows_core::Interface::vtable(self).WaitUntil)(windows_core::Interface::as_raw(self), waitstreamtime).ok() } pub unsafe fn Flush(&self, bcanceleos: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), bcanceleos.into()).ok() @@ -24176,7 +24165,7 @@ windows_core::imp::interface_hierarchy!(IMemAllocator, windows_core::IUnknown); impl IMemAllocator { pub unsafe fn SetProperties(&self, prequest: *const ALLOCATOR_PROPERTIES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), prequest, &mut result__).map(|| result__) } pub unsafe fn GetProperties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -24189,7 +24178,7 @@ impl IMemAllocator { (windows_core::Interface::vtable(self).Decommit)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetBuffer(&self, ppbuffer: *mut Option, pstarttime: Option<*const i64>, pendtime: Option<*const i64>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbuffer), core::mem::transmute(pstarttime.unwrap_or(core::mem::zeroed())), core::mem::transmute(pendtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbuffer), core::mem::transmute(pstarttime.unwrap_or(core::mem::zeroed())), core::mem::transmute(pendtime.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn ReleaseBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where @@ -24462,13 +24451,13 @@ windows_core::imp::define_interface!(IMemoryData, IMemoryData_Vtbl, 0x327fc560_a windows_core::imp::interface_hierarchy!(IMemoryData, windows_core::IUnknown); impl IMemoryData { pub unsafe fn SetBuffer(&self, cbsize: u32, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(pbdata), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), cbsize, pbdata, dwflags).ok() } pub unsafe fn GetInfo(&self, pdwlength: *mut u32, ppbdata: *mut *mut u8, pcbactualdata: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwlength), core::mem::transmute(ppbdata), core::mem::transmute(pcbactualdata)).ok() } pub unsafe fn SetActual(&self, cbdatavalid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActual)(windows_core::Interface::as_raw(self), core::mem::transmute(cbdatavalid)).ok() + (windows_core::Interface::vtable(self).SetActual)(windows_core::Interface::as_raw(self), cbdatavalid).ok() } } #[repr(C)] @@ -24513,7 +24502,7 @@ windows_core::imp::define_interface!(IMixerOCX, IMixerOCX_Vtbl, 0x81a3bd32_dee1_ windows_core::imp::interface_hierarchy!(IMixerOCX, windows_core::IUnknown); impl IMixerOCX { pub unsafe fn OnDisplayChange(&self, ulbitsperpixel: u32, ulscreenwidth: u32, ulscreenheight: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDisplayChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbitsperpixel), core::mem::transmute(ulscreenwidth), core::mem::transmute(ulscreenheight)).ok() + (windows_core::Interface::vtable(self).OnDisplayChange)(windows_core::Interface::as_raw(self), ulbitsperpixel, ulscreenwidth, ulscreenheight).ok() } pub unsafe fn GetAspectRatio(&self, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAspectRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwpictaspectratiox), core::mem::transmute(pdwpictaspectratioy)).ok() @@ -24527,10 +24516,10 @@ impl IMixerOCX { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn OnDraw(&self, hdcdraw: super::super::Graphics::Gdi::HDC, prcdraw: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDraw)(windows_core::Interface::as_raw(self), core::mem::transmute(hdcdraw), core::mem::transmute(prcdraw)).ok() + (windows_core::Interface::vtable(self).OnDraw)(windows_core::Interface::as_raw(self), hdcdraw, prcdraw).ok() } pub unsafe fn SetDrawRegion(&self, lppttopleftsc: *const super::super::Foundation::POINT, prcdrawcc: *const super::super::Foundation::RECT, lprcclip: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDrawRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(lppttopleftsc), core::mem::transmute(prcdrawcc), core::mem::transmute(lprcclip)).ok() + (windows_core::Interface::vtable(self).SetDrawRegion)(windows_core::Interface::as_raw(self), lppttopleftsc, prcdrawcc, lprcclip).ok() } pub unsafe fn Advise(&self, pmdns: P0) -> windows_core::Result<()> where @@ -24631,13 +24620,13 @@ windows_core::imp::define_interface!(IMixerOCXNotify, IMixerOCXNotify_Vtbl, 0x81 windows_core::imp::interface_hierarchy!(IMixerOCXNotify, windows_core::IUnknown); impl IMixerOCXNotify { pub unsafe fn OnInvalidateRect(&self, lpcrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInvalidateRect)(windows_core::Interface::as_raw(self), core::mem::transmute(lpcrect)).ok() + (windows_core::Interface::vtable(self).OnInvalidateRect)(windows_core::Interface::as_raw(self), lpcrect).ok() } pub unsafe fn OnStatusChange(&self, ulstatusflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstatusflags)).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), ulstatusflags).ok() } pub unsafe fn OnDataChange(&self, uldataflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDataChange)(windows_core::Interface::as_raw(self), core::mem::transmute(uldataflags)).ok() + (windows_core::Interface::vtable(self).OnDataChange)(windows_core::Interface::as_raw(self), uldataflags).ok() } } #[repr(C)] @@ -24682,13 +24671,13 @@ windows_core::imp::define_interface!(IMixerPinConfig, IMixerPinConfig_Vtbl, 0x59 windows_core::imp::interface_hierarchy!(IMixerPinConfig, windows_core::IUnknown); impl IMixerPinConfig { pub unsafe fn SetRelativePosition(&self, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRelativePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dwleft), core::mem::transmute(dwtop), core::mem::transmute(dwright), core::mem::transmute(dwbottom)).ok() + (windows_core::Interface::vtable(self).SetRelativePosition)(windows_core::Interface::as_raw(self), dwleft, dwtop, dwright, dwbottom).ok() } pub unsafe fn GetRelativePosition(&self, pdwleft: *mut u32, pdwtop: *mut u32, pdwright: *mut u32, pdwbottom: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRelativePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwleft), core::mem::transmute(pdwtop), core::mem::transmute(pdwright), core::mem::transmute(pdwbottom)).ok() } pub unsafe fn SetZOrder(&self, dwzorder: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzorder)).ok() + (windows_core::Interface::vtable(self).SetZOrder)(windows_core::Interface::as_raw(self), dwzorder).ok() } pub unsafe fn GetZOrder(&self, pdwzorder: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwzorder)).ok() @@ -24700,13 +24689,13 @@ impl IMixerPinConfig { (windows_core::Interface::vtable(self).GetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolorkey), core::mem::transmute(pcolor)).ok() } pub unsafe fn SetBlendingParameter(&self, dwblendingparameter: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlendingParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwblendingparameter)).ok() + (windows_core::Interface::vtable(self).SetBlendingParameter)(windows_core::Interface::as_raw(self), dwblendingparameter).ok() } pub unsafe fn GetBlendingParameter(&self, pdwblendingparameter: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBlendingParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwblendingparameter)).ok() } pub unsafe fn SetAspectRatioMode(&self, amaspectratiomode: AM_ASPECT_RATIO_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(amaspectratiomode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), amaspectratiomode).ok() } pub unsafe fn GetAspectRatioMode(&self, pamaspectratiomode: *mut AM_ASPECT_RATIO_MODE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pamaspectratiomode)).ok() @@ -24963,41 +24952,41 @@ impl IMpegAudioDecoder { (windows_core::Interface::vtable(self).FrequencyDivider)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFrequencyDivider(&self, divider: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrequencyDivider)(windows_core::Interface::as_raw(self), core::mem::transmute(divider)).ok() + (windows_core::Interface::vtable(self).SetFrequencyDivider)(windows_core::Interface::as_raw(self), divider).ok() } pub unsafe fn DecoderAccuracy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DecoderAccuracy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDecoderAccuracy(&self, accuracy: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDecoderAccuracy)(windows_core::Interface::as_raw(self), core::mem::transmute(accuracy)).ok() + (windows_core::Interface::vtable(self).SetDecoderAccuracy)(windows_core::Interface::as_raw(self), accuracy).ok() } pub unsafe fn Stereo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Stereo)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStereo(&self, stereo: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStereo)(windows_core::Interface::as_raw(self), core::mem::transmute(stereo)).ok() + (windows_core::Interface::vtable(self).SetStereo)(windows_core::Interface::as_raw(self), stereo).ok() } pub unsafe fn DecoderWordSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DecoderWordSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDecoderWordSize(&self, wordsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDecoderWordSize)(windows_core::Interface::as_raw(self), core::mem::transmute(wordsize)).ok() + (windows_core::Interface::vtable(self).SetDecoderWordSize)(windows_core::Interface::as_raw(self), wordsize).ok() } pub unsafe fn IntegerDecode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IntegerDecode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIntegerDecode(&self, intdecode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIntegerDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(intdecode)).ok() + (windows_core::Interface::vtable(self).SetIntegerDecode)(windows_core::Interface::as_raw(self), intdecode).ok() } pub unsafe fn DualMode(&self, pintdecode: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DualMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pintdecode)).ok() } pub unsafe fn SetDualMode(&self, intdecode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDualMode)(windows_core::Interface::as_raw(self), core::mem::transmute(intdecode)).ok() + (windows_core::Interface::vtable(self).SetDualMode)(windows_core::Interface::as_raw(self), intdecode).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn AudioFormat(&self, lpfmt: *mut MPEG1WAVEFORMAT) -> windows_core::Result<()> { @@ -25156,18 +25145,18 @@ impl IMultiMediaStream { } pub unsafe fn GetMediaStream(&self, idpurpose: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMediaStream)(windows_core::Interface::as_raw(self), core::mem::transmute(idpurpose), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMediaStream)(windows_core::Interface::as_raw(self), idpurpose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumMediaStreams(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumMediaStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumMediaStreams)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetState(&self, newstate: STREAM_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), newstate).ok() } pub unsafe fn GetTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25178,7 +25167,7 @@ impl IMultiMediaStream { (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, seektime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(seektime)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), seektime).ok() } pub unsafe fn GetEndOfStreamEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25342,7 +25331,7 @@ impl IOverlay { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), poverlaynotify.param().abi(), core::mem::transmute(dwinterests)).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), poverlaynotify.param().abi(), dwinterests).ok() } pub unsafe fn Unadvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self)).ok() @@ -25470,17 +25459,17 @@ windows_core::imp::interface_hierarchy!(IOverlayNotify, windows_core::IUnknown); impl IOverlayNotify { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn OnPaletteChange(&self, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnPaletteChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcolors), core::mem::transmute(ppalette)).ok() + (windows_core::Interface::vtable(self).OnPaletteChange)(windows_core::Interface::as_raw(self), dwcolors, ppalette).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnClipChange)(windows_core::Interface::as_raw(self), core::mem::transmute(psourcerect), core::mem::transmute(pdestinationrect), core::mem::transmute(prgndata)).ok() + (windows_core::Interface::vtable(self).OnClipChange)(windows_core::Interface::as_raw(self), psourcerect, pdestinationrect, prgndata).ok() } pub unsafe fn OnColorKeyChange(&self, pcolorkey: *const COLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnColorKeyChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolorkey)).ok() + (windows_core::Interface::vtable(self).OnColorKeyChange)(windows_core::Interface::as_raw(self), pcolorkey).ok() } pub unsafe fn OnPositionChange(&self, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnPositionChange)(windows_core::Interface::as_raw(self), core::mem::transmute(psourcerect), core::mem::transmute(pdestinationrect)).ok() + (windows_core::Interface::vtable(self).OnPositionChange)(windows_core::Interface::as_raw(self), psourcerect, pdestinationrect).ok() } } #[repr(C)] @@ -25548,7 +25537,7 @@ windows_core::imp::interface_hierarchy!(IOverlayNotify2, windows_core::IUnknown, impl IOverlayNotify2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn OnDisplayChange(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDisplayChange)(windows_core::Interface::as_raw(self), core::mem::transmute(hmonitor)).ok() + (windows_core::Interface::vtable(self).OnDisplayChange)(windows_core::Interface::as_raw(self), hmonitor).ok() } } #[repr(C)] @@ -25719,7 +25708,7 @@ impl IPin { (windows_core::Interface::vtable(self).EndFlush)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn NewSegment(&self, tstart: i64, tstop: i64, drate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NewSegment)(windows_core::Interface::as_raw(self), core::mem::transmute(tstart), core::mem::transmute(tstop), core::mem::transmute(drate)).ok() + (windows_core::Interface::vtable(self).NewSegment)(windows_core::Interface::as_raw(self), tstart, tstop, drate).ok() } } #[repr(C)] @@ -25894,7 +25883,7 @@ impl IPinConnection { (windows_core::Interface::vtable(self).DynamicQueryAccept)(windows_core::Interface::as_raw(self), core::mem::transmute(pmt)).ok() } pub unsafe fn NotifyEndOfStream(&self, hnotifyevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyEndOfStream)(windows_core::Interface::as_raw(self), core::mem::transmute(hnotifyevent)).ok() + (windows_core::Interface::vtable(self).NotifyEndOfStream)(windows_core::Interface::as_raw(self), hnotifyevent).ok() } pub unsafe fn IsEndPin(&self) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).IsEndPin)(windows_core::Interface::as_raw(self)) @@ -25958,7 +25947,7 @@ windows_core::imp::define_interface!(IPinFlowControl, IPinFlowControl_Vtbl, 0xc5 windows_core::imp::interface_hierarchy!(IPinFlowControl, windows_core::IUnknown); impl IPinFlowControl { pub unsafe fn Block(&self, dwblockflags: u32, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Block)(windows_core::Interface::as_raw(self), core::mem::transmute(dwblockflags), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).Block)(windows_core::Interface::as_raw(self), dwblockflags, hevent).ok() } } #[repr(C)] @@ -26391,11 +26380,11 @@ windows_core::imp::interface_hierarchy!(IQueueCommand, windows_core::IUnknown); impl IQueueCommand { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InvokeAtStreamTime(&self, pcmd: *mut Option, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const super::super::System::Variant::VARIANT, pvarresult: *mut super::super::System::Variant::VARIANT, puargerr: *mut i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeAtStreamTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pcmd), core::mem::transmute(time), core::mem::transmute(iid), core::mem::transmute(dispidmethod), core::mem::transmute(wflags), core::mem::transmute(cargs), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).InvokeAtStreamTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pcmd), time, iid, dispidmethod, wflags, cargs, core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(puargerr)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InvokeAtPresentationTime(&self, pcmd: *mut Option, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const super::super::System::Variant::VARIANT, pvarresult: *mut super::super::System::Variant::VARIANT, puargerr: *mut i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeAtPresentationTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pcmd), core::mem::transmute(time), core::mem::transmute(iid), core::mem::transmute(dispidmethod), core::mem::transmute(wflags), core::mem::transmute(cargs), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).InvokeAtPresentationTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pcmd), time, iid, dispidmethod, wflags, cargs, core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(puargerr)).ok() } } #[repr(C)] @@ -26511,7 +26500,7 @@ impl IRegisterServiceProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterService)(windows_core::Interface::as_raw(self), core::mem::transmute(guidservice), punkobject.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterService)(windows_core::Interface::as_raw(self), guidservice, punkobject.param().abi()).ok() } } #[repr(C)] @@ -26539,10 +26528,10 @@ windows_core::imp::define_interface!(IResourceConsumer, IResourceConsumer_Vtbl, windows_core::imp::interface_hierarchy!(IResourceConsumer, windows_core::IUnknown); impl IResourceConsumer { pub unsafe fn AcquireResource(&self, idresource: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireResource)(windows_core::Interface::as_raw(self), core::mem::transmute(idresource)).ok() + (windows_core::Interface::vtable(self).AcquireResource)(windows_core::Interface::as_raw(self), idresource).ok() } pub unsafe fn ReleaseResource(&self, idresource: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseResource)(windows_core::Interface::as_raw(self), core::mem::transmute(idresource)).ok() + (windows_core::Interface::vtable(self).ReleaseResource)(windows_core::Interface::as_raw(self), idresource).ok() } } #[repr(C)] @@ -26584,7 +26573,7 @@ impl IResourceManager { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(cresource), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), pname.param().abi(), cresource, &mut result__).map(|| result__) } pub unsafe fn RegisterGroup(&self, pname: P0, paltokens: &[i32]) -> windows_core::Result where @@ -26598,25 +26587,25 @@ impl IResourceManager { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestResource)(windows_core::Interface::as_raw(self), core::mem::transmute(idresource), pfocusobject.param().abi(), pconsumer.param().abi()).ok() + (windows_core::Interface::vtable(self).RequestResource)(windows_core::Interface::as_raw(self), idresource, pfocusobject.param().abi(), pconsumer.param().abi()).ok() } pub unsafe fn NotifyAcquire(&self, idresource: i32, pconsumer: P1, hr: windows_core::HRESULT) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyAcquire)(windows_core::Interface::as_raw(self), core::mem::transmute(idresource), pconsumer.param().abi(), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).NotifyAcquire)(windows_core::Interface::as_raw(self), idresource, pconsumer.param().abi(), hr).ok() } pub unsafe fn NotifyRelease(&self, idresource: i32, pconsumer: P1, bstillwant: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyRelease)(windows_core::Interface::as_raw(self), core::mem::transmute(idresource), pconsumer.param().abi(), bstillwant.into()).ok() + (windows_core::Interface::vtable(self).NotifyRelease)(windows_core::Interface::as_raw(self), idresource, pconsumer.param().abi(), bstillwant.into()).ok() } pub unsafe fn CancelRequest(&self, idresource: i32, pconsumer: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(idresource), pconsumer.param().abi()).ok() + (windows_core::Interface::vtable(self).CancelRequest)(windows_core::Interface::as_raw(self), idresource, pconsumer.param().abi()).ok() } pub unsafe fn SetFocus(&self, pfocusobject: P0) -> windows_core::Result<()> where @@ -26786,7 +26775,7 @@ impl ISelector { (windows_core::Interface::vtable(self).SourceNodeId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSourceNodeId(&self, dwpinid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSourceNodeId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpinid)).ok() + (windows_core::Interface::vtable(self).SetSourceNodeId)(windows_core::Interface::as_raw(self), dwpinid).ok() } } #[repr(C)] @@ -26845,7 +26834,7 @@ impl ISpecifyParticularPages { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetPages(&self, guidwhatpages: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPages)(windows_core::Interface::as_raw(self), core::mem::transmute(guidwhatpages), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPages)(windows_core::Interface::as_raw(self), guidwhatpages, &mut result__).map(|| result__) } } #[repr(C)] @@ -26936,13 +26925,13 @@ impl IStreamSample { (windows_core::Interface::vtable(self).GetSampleTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pstarttime), core::mem::transmute(pendtime), core::mem::transmute(pcurrenttime)).ok() } pub unsafe fn SetSampleTimes(&self, pstarttime: *const i64, pendtime: *const i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pstarttime), core::mem::transmute(pendtime)).ok() + (windows_core::Interface::vtable(self).SetSampleTimes)(windows_core::Interface::as_raw(self), pstarttime, pendtime).ok() } pub unsafe fn Update(&self, dwflags: u32, hevent: super::super::Foundation::HANDLE, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(hevent), core::mem::transmute(pfnapc), core::mem::transmute(dwapcdata)).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), dwflags, hevent, pfnapc, dwapcdata).ok() } pub unsafe fn CompletionStatus(&self, dwflags: u32, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompletionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).CompletionStatus)(windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() } } #[repr(C)] @@ -27007,7 +26996,7 @@ impl IVMRAspectRatioControl { (windows_core::Interface::vtable(self).GetAspectRatioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAspectRatioMode(&self, dwarmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwarmode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), dwarmode).ok() } } #[repr(C)] @@ -27055,7 +27044,7 @@ impl IVMRAspectRatioControl9 { (windows_core::Interface::vtable(self).GetAspectRatioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAspectRatioMode(&self, dwarmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwarmode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), dwarmode).ok() } } #[repr(C)] @@ -27099,28 +27088,28 @@ windows_core::imp::define_interface!(IVMRDeinterlaceControl, IVMRDeinterlaceCont windows_core::imp::interface_hierarchy!(IVMRDeinterlaceControl, windows_core::IUnknown); impl IVMRDeinterlaceControl { pub unsafe fn GetNumberOfDeinterlaceModes(&self, lpvideodescription: *const VMRVideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNumberOfDeinterlaceModes)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvideodescription), core::mem::transmute(lpdwnumdeinterlacemodes), core::mem::transmute(lpdeinterlacemodes)).ok() + (windows_core::Interface::vtable(self).GetNumberOfDeinterlaceModes)(windows_core::Interface::as_raw(self), lpvideodescription, core::mem::transmute(lpdwnumdeinterlacemodes), core::mem::transmute(lpdeinterlacemodes)).ok() } pub unsafe fn GetDeinterlaceModeCaps(&self, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMRVideoDesc, lpdeinterlacecaps: *mut VMRDeinterlaceCaps) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeinterlaceModeCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpdeinterlacemode), core::mem::transmute(lpvideodescription), core::mem::transmute(lpdeinterlacecaps)).ok() + (windows_core::Interface::vtable(self).GetDeinterlaceModeCaps)(windows_core::Interface::as_raw(self), lpdeinterlacemode, lpvideodescription, core::mem::transmute(lpdeinterlacecaps)).ok() } pub unsafe fn GetDeinterlaceMode(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDeinterlaceMode)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetDeinterlaceMode(&self, dwstreamid: u32, lpdeinterlacemode: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(lpdeinterlacemode)).ok() + (windows_core::Interface::vtable(self).SetDeinterlaceMode)(windows_core::Interface::as_raw(self), dwstreamid, lpdeinterlacemode).ok() } pub unsafe fn GetDeinterlacePrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDeinterlacePrefs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDeinterlacePrefs(&self, dwdeinterlaceprefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeinterlacePrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdeinterlaceprefs)).ok() + (windows_core::Interface::vtable(self).SetDeinterlacePrefs)(windows_core::Interface::as_raw(self), dwdeinterlaceprefs).ok() } pub unsafe fn GetActualDeinterlaceMode(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActualDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetActualDeinterlaceMode)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } } #[repr(C)] @@ -27211,28 +27200,28 @@ windows_core::imp::define_interface!(IVMRDeinterlaceControl9, IVMRDeinterlaceCon windows_core::imp::interface_hierarchy!(IVMRDeinterlaceControl9, windows_core::IUnknown); impl IVMRDeinterlaceControl9 { pub unsafe fn GetNumberOfDeinterlaceModes(&self, lpvideodescription: *const VMR9VideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNumberOfDeinterlaceModes)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvideodescription), core::mem::transmute(lpdwnumdeinterlacemodes), core::mem::transmute(lpdeinterlacemodes)).ok() + (windows_core::Interface::vtable(self).GetNumberOfDeinterlaceModes)(windows_core::Interface::as_raw(self), lpvideodescription, core::mem::transmute(lpdwnumdeinterlacemodes), core::mem::transmute(lpdeinterlacemodes)).ok() } pub unsafe fn GetDeinterlaceModeCaps(&self, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMR9VideoDesc, lpdeinterlacecaps: *mut VMR9DeinterlaceCaps) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeinterlaceModeCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpdeinterlacemode), core::mem::transmute(lpvideodescription), core::mem::transmute(lpdeinterlacecaps)).ok() + (windows_core::Interface::vtable(self).GetDeinterlaceModeCaps)(windows_core::Interface::as_raw(self), lpdeinterlacemode, lpvideodescription, core::mem::transmute(lpdeinterlacecaps)).ok() } pub unsafe fn GetDeinterlaceMode(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDeinterlaceMode)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetDeinterlaceMode(&self, dwstreamid: u32, lpdeinterlacemode: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(lpdeinterlacemode)).ok() + (windows_core::Interface::vtable(self).SetDeinterlaceMode)(windows_core::Interface::as_raw(self), dwstreamid, lpdeinterlacemode).ok() } pub unsafe fn GetDeinterlacePrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDeinterlacePrefs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDeinterlacePrefs(&self, dwdeinterlaceprefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeinterlacePrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdeinterlaceprefs)).ok() + (windows_core::Interface::vtable(self).SetDeinterlacePrefs)(windows_core::Interface::as_raw(self), dwdeinterlaceprefs).ok() } pub unsafe fn GetActualDeinterlaceMode(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActualDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetActualDeinterlaceMode)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } } #[repr(C)] @@ -27329,21 +27318,21 @@ impl IVMRFilterConfig { (windows_core::Interface::vtable(self).SetImageCompositor)(windows_core::Interface::as_raw(self), lpvmrimgcompositor.param().abi()).ok() } pub unsafe fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumberOfStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxstreams)).ok() + (windows_core::Interface::vtable(self).SetNumberOfStreams)(windows_core::Interface::as_raw(self), dwmaxstreams).ok() } pub unsafe fn GetNumberOfStreams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberOfStreams)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrenderflags)).ok() + (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), dwrenderflags).ok() } pub unsafe fn GetRenderingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRenderingPrefs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRenderingMode(&self, mode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetRenderingMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn GetRenderingMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27444,21 +27433,21 @@ impl IVMRFilterConfig9 { (windows_core::Interface::vtable(self).SetImageCompositor)(windows_core::Interface::as_raw(self), lpvmrimgcompositor.param().abi()).ok() } pub unsafe fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumberOfStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxstreams)).ok() + (windows_core::Interface::vtable(self).SetNumberOfStreams)(windows_core::Interface::as_raw(self), dwmaxstreams).ok() } pub unsafe fn GetNumberOfStreams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberOfStreams)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrenderflags)).ok() + (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), dwrenderflags).ok() } pub unsafe fn GetRenderingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRenderingPrefs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRenderingMode(&self, mode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetRenderingMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn GetRenderingMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27570,7 +27559,7 @@ impl IVMRImageCompositor { } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstrmid), core::mem::transmute(pmt), ftexture.into()).ok() + (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), dwstrmid, core::mem::transmute(pmt), ftexture.into()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn CompositeImage(&self, pd3ddevice: P0, pddsrendertarget: P1, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMRVIDEOSTREAMINFO, cstreams: u32) -> windows_core::Result<()> @@ -27578,7 +27567,7 @@ impl IVMRImageCompositor { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi(), core::mem::transmute(pmtrendertarget), core::mem::transmute(rtstart), core::mem::transmute(rtend), core::mem::transmute(dwclrbkgnd), core::mem::transmute(pvideostreaminfo), core::mem::transmute(cstreams)).ok() + (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi(), core::mem::transmute(pmtrendertarget), rtstart, rtend, dwclrbkgnd, core::mem::transmute(pvideostreaminfo), cstreams).ok() } } #[repr(C)] @@ -27658,7 +27647,7 @@ impl IVMRImageCompositor9 { } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstrmid), core::mem::transmute(pmt), ftexture.into()).ok() + (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), dwstrmid, core::mem::transmute(pmt), ftexture.into()).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Media_MediaFoundation"))] pub unsafe fn CompositeImage(&self, pd3ddevice: P0, pddsrendertarget: P1, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMR9VideoStreamInfo, cstreams: u32) -> windows_core::Result<()> @@ -27666,7 +27655,7 @@ impl IVMRImageCompositor9 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi(), core::mem::transmute(pmtrendertarget), core::mem::transmute(rtstart), core::mem::transmute(rtend), core::mem::transmute(dwclrbkgnd), core::mem::transmute(pvideostreaminfo), core::mem::transmute(cstreams)).ok() + (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi(), core::mem::transmute(pmtrendertarget), rtstart, rtend, dwclrbkgnd, core::mem::transmute(pvideostreaminfo), cstreams).ok() } } #[repr(C)] @@ -27727,14 +27716,14 @@ windows_core::imp::define_interface!(IVMRImagePresenter, IVMRImagePresenter_Vtbl windows_core::imp::interface_hierarchy!(IVMRImagePresenter, windows_core::IUnknown); impl IVMRImagePresenter { pub unsafe fn StartPresenting(&self, dwuserid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartPresenting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid)).ok() + (windows_core::Interface::vtable(self).StartPresenting)(windows_core::Interface::as_raw(self), dwuserid).ok() } pub unsafe fn StopPresenting(&self, dwuserid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopPresenting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid)).ok() + (windows_core::Interface::vtable(self).StopPresenting)(windows_core::Interface::as_raw(self), dwuserid).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn PresentImage(&self, dwuserid: usize, lppresinfo: *const VMRPRESENTATIONINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PresentImage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), core::mem::transmute(lppresinfo)).ok() + (windows_core::Interface::vtable(self).PresentImage)(windows_core::Interface::as_raw(self), dwuserid, core::mem::transmute(lppresinfo)).ok() } } #[repr(C)] @@ -27785,14 +27774,14 @@ windows_core::imp::define_interface!(IVMRImagePresenter9, IVMRImagePresenter9_Vt windows_core::imp::interface_hierarchy!(IVMRImagePresenter9, windows_core::IUnknown); impl IVMRImagePresenter9 { pub unsafe fn StartPresenting(&self, dwuserid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartPresenting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid)).ok() + (windows_core::Interface::vtable(self).StartPresenting)(windows_core::Interface::as_raw(self), dwuserid).ok() } pub unsafe fn StopPresenting(&self, dwuserid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopPresenting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid)).ok() + (windows_core::Interface::vtable(self).StopPresenting)(windows_core::Interface::as_raw(self), dwuserid).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn PresentImage(&self, dwuserid: usize, lppresinfo: *const VMR9PresentationInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PresentImage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), core::mem::transmute(lppresinfo)).ok() + (windows_core::Interface::vtable(self).PresentImage)(windows_core::Interface::as_raw(self), dwuserid, core::mem::transmute(lppresinfo)).ok() } } #[repr(C)] @@ -27843,7 +27832,7 @@ windows_core::imp::define_interface!(IVMRImagePresenterConfig, IVMRImagePresente windows_core::imp::interface_hierarchy!(IVMRImagePresenterConfig, windows_core::IUnknown); impl IVMRImagePresenterConfig { pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrenderflags)).ok() + (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), dwrenderflags).ok() } pub unsafe fn GetRenderingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27891,7 +27880,7 @@ windows_core::imp::define_interface!(IVMRImagePresenterConfig9, IVMRImagePresent windows_core::imp::interface_hierarchy!(IVMRImagePresenterConfig9, windows_core::IUnknown); impl IVMRImagePresenterConfig9 { pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrenderflags)).ok() + (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), dwrenderflags).ok() } pub unsafe fn GetRenderingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28133,34 +28122,34 @@ windows_core::imp::define_interface!(IVMRMixerControl, IVMRMixerControl_Vtbl, 0x windows_core::imp::interface_hierarchy!(IVMRMixerControl, windows_core::IUnknown); impl IVMRMixerControl { pub unsafe fn SetAlpha(&self, dwstreamid: u32, alpha: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlpha)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(alpha)).ok() + (windows_core::Interface::vtable(self).SetAlpha)(windows_core::Interface::as_raw(self), dwstreamid, alpha).ok() } pub unsafe fn GetAlpha(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlpha)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAlpha)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetZOrder(&self, dwstreamid: u32, dwz: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(dwz)).ok() + (windows_core::Interface::vtable(self).SetZOrder)(windows_core::Interface::as_raw(self), dwstreamid, dwz).ok() } pub unsafe fn GetZOrder(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetZOrder)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetOutputRect(&self, dwstreamid: u32, prect: *const NORMALIZEDRECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetOutputRect)(windows_core::Interface::as_raw(self), dwstreamid, prect).ok() } pub unsafe fn GetOutputRect(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputRect)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetBackgroundClr(&self, clrbkg: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), core::mem::transmute(clrbkg)).ok() + (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), clrbkg).ok() } pub unsafe fn GetBackgroundClr(&self, lpclrbkg: *const super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBackgroundClr)(windows_core::Interface::as_raw(self), core::mem::transmute(lpclrbkg)).ok() + (windows_core::Interface::vtable(self).GetBackgroundClr)(windows_core::Interface::as_raw(self), lpclrbkg).ok() } pub unsafe fn SetMixingPrefs(&self, dwmixerprefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMixingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmixerprefs)).ok() + (windows_core::Interface::vtable(self).SetMixingPrefs)(windows_core::Interface::as_raw(self), dwmixerprefs).ok() } pub unsafe fn GetMixingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28282,47 +28271,47 @@ windows_core::imp::define_interface!(IVMRMixerControl9, IVMRMixerControl9_Vtbl, windows_core::imp::interface_hierarchy!(IVMRMixerControl9, windows_core::IUnknown); impl IVMRMixerControl9 { pub unsafe fn SetAlpha(&self, dwstreamid: u32, alpha: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlpha)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(alpha)).ok() + (windows_core::Interface::vtable(self).SetAlpha)(windows_core::Interface::as_raw(self), dwstreamid, alpha).ok() } pub unsafe fn GetAlpha(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlpha)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAlpha)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetZOrder(&self, dwstreamid: u32, dwz: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(dwz)).ok() + (windows_core::Interface::vtable(self).SetZOrder)(windows_core::Interface::as_raw(self), dwstreamid, dwz).ok() } pub unsafe fn GetZOrder(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetZOrder)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetOutputRect(&self, dwstreamid: u32, prect: *const VMR9NormalizedRect) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetOutputRect)(windows_core::Interface::as_raw(self), dwstreamid, prect).ok() } pub unsafe fn GetOutputRect(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputRect)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetBackgroundClr(&self, clrbkg: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), core::mem::transmute(clrbkg)).ok() + (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), clrbkg).ok() } pub unsafe fn GetBackgroundClr(&self, lpclrbkg: *const super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBackgroundClr)(windows_core::Interface::as_raw(self), core::mem::transmute(lpclrbkg)).ok() + (windows_core::Interface::vtable(self).GetBackgroundClr)(windows_core::Interface::as_raw(self), lpclrbkg).ok() } pub unsafe fn SetMixingPrefs(&self, dwmixerprefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMixingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmixerprefs)).ok() + (windows_core::Interface::vtable(self).SetMixingPrefs)(windows_core::Interface::as_raw(self), dwmixerprefs).ok() } pub unsafe fn GetMixingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMixingPrefs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProcAmpControl(&self, dwstreamid: u32, lpclrcontrol: *const VMR9ProcAmpControl) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcAmpControl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(lpclrcontrol)).ok() + (windows_core::Interface::vtable(self).SetProcAmpControl)(windows_core::Interface::as_raw(self), dwstreamid, lpclrcontrol).ok() } pub unsafe fn GetProcAmpControl(&self, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControl) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProcAmpControl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(lpclrcontrol)).ok() + (windows_core::Interface::vtable(self).GetProcAmpControl)(windows_core::Interface::as_raw(self), dwstreamid, core::mem::transmute(lpclrcontrol)).ok() } pub unsafe fn GetProcAmpControlRange(&self, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControlRange) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProcAmpControlRange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(lpclrcontrol)).ok() + (windows_core::Interface::vtable(self).GetProcAmpControlRange)(windows_core::Interface::as_raw(self), dwstreamid, core::mem::transmute(lpclrcontrol)).ok() } } #[repr(C)] @@ -28461,13 +28450,13 @@ windows_core::imp::define_interface!(IVMRMonitorConfig, IVMRMonitorConfig_Vtbl, windows_core::imp::interface_hierarchy!(IVMRMonitorConfig, windows_core::IUnknown); impl IVMRMonitorConfig { pub unsafe fn SetMonitor(&self, pguid: *const VMRGUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid)).ok() + (windows_core::Interface::vtable(self).SetMonitor)(windows_core::Interface::as_raw(self), pguid).ok() } pub unsafe fn GetMonitor(&self, pguid: *mut VMRGUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid)).ok() } pub unsafe fn SetDefaultMonitor(&self, pguid: *const VMRGUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid)).ok() + (windows_core::Interface::vtable(self).SetDefaultMonitor)(windows_core::Interface::as_raw(self), pguid).ok() } pub unsafe fn GetDefaultMonitor(&self, pguid: *mut VMRGUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid)).ok() @@ -28539,14 +28528,14 @@ windows_core::imp::define_interface!(IVMRMonitorConfig9, IVMRMonitorConfig9_Vtbl windows_core::imp::interface_hierarchy!(IVMRMonitorConfig9, windows_core::IUnknown); impl IVMRMonitorConfig9 { pub unsafe fn SetMonitor(&self, udev: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(udev)).ok() + (windows_core::Interface::vtable(self).SetMonitor)(windows_core::Interface::as_raw(self), udev).ok() } pub unsafe fn GetMonitor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMonitor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultMonitor(&self, udev: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(udev)).ok() + (windows_core::Interface::vtable(self).SetDefaultMonitor)(windows_core::Interface::as_raw(self), udev).ok() } pub unsafe fn GetDefaultMonitor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28796,17 +28785,17 @@ windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocator, windows_core::IUnk impl IVMRSurfaceAllocator { #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn AllocateSurface(&self, dwuserid: usize, lpallocinfo: *const VMRALLOCATIONINFO, lpdwactualbuffers: *mut u32, lplpsurface: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), core::mem::transmute(lpallocinfo), core::mem::transmute(lpdwactualbuffers), core::mem::transmute(lplpsurface)).ok() + (windows_core::Interface::vtable(self).AllocateSurface)(windows_core::Interface::as_raw(self), dwuserid, lpallocinfo, core::mem::transmute(lpdwactualbuffers), core::mem::transmute(lplpsurface)).ok() } pub unsafe fn FreeSurface(&self, dwid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid)).ok() + (windows_core::Interface::vtable(self).FreeSurface)(windows_core::Interface::as_raw(self), dwid).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn PrepareSurface(&self, dwuserid: usize, lpsurface: P1, dwsurfaceflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), lpsurface.param().abi(), core::mem::transmute(dwsurfaceflags)).ok() + (windows_core::Interface::vtable(self).PrepareSurface)(windows_core::Interface::as_raw(self), dwuserid, lpsurface.param().abi(), dwsurfaceflags).ok() } pub unsafe fn AdviseNotify(&self, lpivmrsurfallocnotify: P0) -> windows_core::Result<()> where @@ -28874,15 +28863,15 @@ windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocator9, windows_core::IUn impl IVMRSurfaceAllocator9 { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn InitializeDevice(&self, dwuserid: usize, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), core::mem::transmute(lpallocinfo), core::mem::transmute(lpnumbuffers)).ok() + (windows_core::Interface::vtable(self).InitializeDevice)(windows_core::Interface::as_raw(self), dwuserid, lpallocinfo, core::mem::transmute(lpnumbuffers)).ok() } pub unsafe fn TerminateDevice(&self, dwid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TerminateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid)).ok() + (windows_core::Interface::vtable(self).TerminateDevice)(windows_core::Interface::as_raw(self), dwid).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetSurface(&self, dwuserid: usize, surfaceindex: u32, surfaceflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), core::mem::transmute(surfaceindex), core::mem::transmute(surfaceflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurface)(windows_core::Interface::as_raw(self), dwuserid, surfaceindex, surfaceflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AdviseNotify(&self, lpivmrsurfallocnotify: P0) -> windows_core::Result<()> where @@ -28962,7 +28951,7 @@ windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorEx9, windows_core::I impl IVMRSurfaceAllocatorEx9 { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetSurfaceEx(&self, dwuserid: usize, surfaceindex: u32, surfaceflags: u32, lplpsurface: *mut Option, lprcdst: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSurfaceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), core::mem::transmute(surfaceindex), core::mem::transmute(surfaceflags), core::mem::transmute(lplpsurface), core::mem::transmute(lprcdst)).ok() + (windows_core::Interface::vtable(self).GetSurfaceEx)(windows_core::Interface::as_raw(self), dwuserid, surfaceindex, surfaceflags, core::mem::transmute(lplpsurface), core::mem::transmute(lprcdst)).ok() } } #[repr(C)] @@ -28999,30 +28988,30 @@ impl IVMRSurfaceAllocatorNotify { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSurfaceAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), lpivrmsurfaceallocator.param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseSurfaceAllocator)(windows_core::Interface::as_raw(self), dwuserid, lpivrmsurfaceallocator.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetDDrawDevice(&self, lpddrawdevice: P0, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.param().abi(), core::mem::transmute(hmonitor)).ok() + (windows_core::Interface::vtable(self).SetDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.param().abi(), hmonitor).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn ChangeDDrawDevice(&self, lpddrawdevice: P0, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.param().abi(), core::mem::transmute(hmonitor)).ok() + (windows_core::Interface::vtable(self).ChangeDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.param().abi(), hmonitor).ok() } pub unsafe fn RestoreDDrawSurfaces(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestoreDDrawSurfaces)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn NotifyEvent(&self, eventcode: i32, param1: isize, param2: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventcode), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).NotifyEvent)(windows_core::Interface::as_raw(self), eventcode, param1, param2).ok() } pub unsafe fn SetBorderColor(&self, clrborder: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clrborder)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clrborder).ok() } } #[repr(C)] @@ -29100,28 +29089,28 @@ impl IVMRSurfaceAllocatorNotify9 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSurfaceAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserid), lpivrmsurfaceallocator.param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseSurfaceAllocator)(windows_core::Interface::as_raw(self), dwuserid, lpivrmsurfaceallocator.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetD3DDevice(&self, lpd3ddevice: P0, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.param().abi(), core::mem::transmute(hmonitor)).ok() + (windows_core::Interface::vtable(self).SetD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.param().abi(), hmonitor).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] pub unsafe fn ChangeD3DDevice(&self, lpd3ddevice: P0, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.param().abi(), core::mem::transmute(hmonitor)).ok() + (windows_core::Interface::vtable(self).ChangeD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.param().abi(), hmonitor).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn AllocateSurfaceHelper(&self, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32, lplpsurface: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateSurfaceHelper)(windows_core::Interface::as_raw(self), core::mem::transmute(lpallocinfo), core::mem::transmute(lpnumbuffers), core::mem::transmute(lplpsurface)).ok() + (windows_core::Interface::vtable(self).AllocateSurfaceHelper)(windows_core::Interface::as_raw(self), lpallocinfo, core::mem::transmute(lpnumbuffers), core::mem::transmute(lplpsurface)).ok() } pub unsafe fn NotifyEvent(&self, eventcode: i32, param1: isize, param2: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventcode), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).NotifyEvent)(windows_core::Interface::as_raw(self), eventcode, param1, param2).ok() } } #[repr(C)] @@ -29193,7 +29182,7 @@ windows_core::imp::interface_hierarchy!(IVMRVideoStreamControl, windows_core::IU impl IVMRVideoStreamControl { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetColorKey(&self, lpclrkey: *const super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(lpclrkey)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), lpclrkey).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetColorKey(&self) -> windows_core::Result { @@ -29335,7 +29324,7 @@ impl IVMRWindowlessControl { (windows_core::Interface::vtable(self).GetMaxIdealVideoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lpwidth), core::mem::transmute(lpheight)).ok() } pub unsafe fn SetVideoPosition(&self, lpsrcrect: *const super::super::Foundation::RECT, lpdstrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsrcrect), core::mem::transmute(lpdstrect)).ok() + (windows_core::Interface::vtable(self).SetVideoPosition)(windows_core::Interface::as_raw(self), lpsrcrect, lpdstrect).ok() } pub unsafe fn GetVideoPosition(&self, lpsrcrect: *mut super::super::Foundation::RECT, lpdstrect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVideoPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsrcrect), core::mem::transmute(lpdstrect)).ok() @@ -29345,14 +29334,14 @@ impl IVMRWindowlessControl { (windows_core::Interface::vtable(self).GetAspectRatioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAspectRatioMode(&self, aspectratiomode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(aspectratiomode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), aspectratiomode).ok() } pub unsafe fn SetVideoClippingWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), hwnd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn RepaintVideo(&self, hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), hwnd, hdc).ok() } pub unsafe fn DisplayModeChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisplayModeChanged)(windows_core::Interface::as_raw(self)).ok() @@ -29362,14 +29351,14 @@ impl IVMRWindowlessControl { (windows_core::Interface::vtable(self).GetCurrentImage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderColor(&self, clr: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clr)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBorderColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColorKey(&self, clr: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), core::mem::transmute(clr)).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), clr).ok() } pub unsafe fn GetColorKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -29541,7 +29530,7 @@ impl IVMRWindowlessControl9 { (windows_core::Interface::vtable(self).GetMaxIdealVideoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lpwidth), core::mem::transmute(lpheight)).ok() } pub unsafe fn SetVideoPosition(&self, lpsrcrect: *const super::super::Foundation::RECT, lpdstrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsrcrect), core::mem::transmute(lpdstrect)).ok() + (windows_core::Interface::vtable(self).SetVideoPosition)(windows_core::Interface::as_raw(self), lpsrcrect, lpdstrect).ok() } pub unsafe fn GetVideoPosition(&self, lpsrcrect: *mut super::super::Foundation::RECT, lpdstrect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVideoPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsrcrect), core::mem::transmute(lpdstrect)).ok() @@ -29551,14 +29540,14 @@ impl IVMRWindowlessControl9 { (windows_core::Interface::vtable(self).GetAspectRatioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAspectRatioMode(&self, aspectratiomode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(aspectratiomode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), aspectratiomode).ok() } pub unsafe fn SetVideoClippingWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), hwnd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn RepaintVideo(&self, hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), hwnd, hdc).ok() } pub unsafe fn DisplayModeChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisplayModeChanged)(windows_core::Interface::as_raw(self)).ok() @@ -29568,7 +29557,7 @@ impl IVMRWindowlessControl9 { (windows_core::Interface::vtable(self).GetCurrentImage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderColor(&self, clr: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clr)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -29715,7 +29704,7 @@ impl IVPBaseConfig { (windows_core::Interface::vtable(self).GetConnectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwnumconnectinfo), core::mem::transmute(pddvpconnectinfo.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetConnectInfo(&self, dwchosenentry: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchosenentry)).ok() + (windows_core::Interface::vtable(self).SetConnectInfo)(windows_core::Interface::as_raw(self), dwchosenentry).ok() } pub unsafe fn GetVPDataInfo(&self, pamvpdatainfo: *mut AMVPDATAINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVPDataInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pamvpdatainfo)).ok() @@ -29725,14 +29714,14 @@ impl IVPBaseConfig { } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn InformVPInputFormats(&self, dwnumformats: u32, pddpixelformats: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InformVPInputFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnumformats), core::mem::transmute(pddpixelformats)).ok() + (windows_core::Interface::vtable(self).InformVPInputFormats)(windows_core::Interface::as_raw(self), dwnumformats, core::mem::transmute(pddpixelformats)).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetVideoFormats(&self, pdwnumformats: *mut u32, pddpixelformats: Option<*mut super::super::Graphics::DirectDraw::DDPIXELFORMAT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVideoFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwnumformats), core::mem::transmute(pddpixelformats.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetVideoFormat(&self, dwchosenentry: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchosenentry)).ok() + (windows_core::Interface::vtable(self).SetVideoFormat)(windows_core::Interface::as_raw(self), dwchosenentry).ok() } pub unsafe fn SetInvertPolarity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInvertPolarity)(windows_core::Interface::as_raw(self)).ok() @@ -29743,16 +29732,16 @@ impl IVPBaseConfig { (windows_core::Interface::vtable(self).GetOverlaySurface)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDirectDrawKernelHandle(&self, dwddkernelhandle: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDirectDrawKernelHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(dwddkernelhandle)).ok() + (windows_core::Interface::vtable(self).SetDirectDrawKernelHandle)(windows_core::Interface::as_raw(self), dwddkernelhandle).ok() } pub unsafe fn SetVideoPortID(&self, dwvideoportid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoPortID)(windows_core::Interface::as_raw(self), core::mem::transmute(dwvideoportid)).ok() + (windows_core::Interface::vtable(self).SetVideoPortID)(windows_core::Interface::as_raw(self), dwvideoportid).ok() } pub unsafe fn SetDDSurfaceKernelHandles(&self, chandles: u32, rgddkernelhandles: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDDSurfaceKernelHandles)(windows_core::Interface::as_raw(self), core::mem::transmute(chandles), core::mem::transmute(rgddkernelhandles)).ok() + (windows_core::Interface::vtable(self).SetDDSurfaceKernelHandles)(windows_core::Interface::as_raw(self), chandles, core::mem::transmute(rgddkernelhandles)).ok() } pub unsafe fn SetSurfaceParameters(&self, dwpitch: u32, dwxorigin: u32, dwyorigin: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSurfaceParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpitch), core::mem::transmute(dwxorigin), core::mem::transmute(dwyorigin)).ok() + (windows_core::Interface::vtable(self).SetSurfaceParameters)(windows_core::Interface::as_raw(self), dwpitch, dwxorigin, dwyorigin).ok() } } #[repr(C)] @@ -29966,7 +29955,7 @@ windows_core::imp::define_interface!(IVPManager, IVPManager_Vtbl, 0xaac18c18_e18 windows_core::imp::interface_hierarchy!(IVPManager, windows_core::IUnknown); impl IVPManager { pub unsafe fn SetVideoPortIndex(&self, dwvideoportindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoPortIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwvideoportindex)).ok() + (windows_core::Interface::vtable(self).SetVideoPortIndex)(windows_core::Interface::as_raw(self), dwvideoportindex).ok() } pub unsafe fn GetVideoPortIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30020,7 +30009,7 @@ impl core::ops::Deref for IVPNotify { windows_core::imp::interface_hierarchy!(IVPNotify, windows_core::IUnknown, IVPBaseNotify); impl IVPNotify { pub unsafe fn SetDeinterlaceMode(&self, mode: AMVP_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetDeinterlaceMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn GetDeinterlaceMode(&self, pmode: *mut AMVP_MODE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeinterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pmode)).ok() @@ -30183,13 +30172,13 @@ impl IVideoFrameStep { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Step)(windows_core::Interface::as_raw(self), core::mem::transmute(dwframes), pstepobject.param().abi()).ok() + (windows_core::Interface::vtable(self).Step)(windows_core::Interface::as_raw(self), dwframes, pstepobject.param().abi()).ok() } pub unsafe fn CanStep(&self, bmultiple: i32, pstepobject: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CanStep)(windows_core::Interface::as_raw(self), core::mem::transmute(bmultiple), pstepobject.param().abi()).ok() + (windows_core::Interface::vtable(self).CanStep)(windows_core::Interface::as_raw(self), bmultiple, pstepobject.param().abi()).ok() } pub unsafe fn CancelStep(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelStep)(windows_core::Interface::as_raw(self)).ok() @@ -30240,7 +30229,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_BacklightCompensation)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_BacklightCompensation(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_BacklightCompensation)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_BacklightCompensation)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_BacklightCompensation(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_BacklightCompensation)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30249,7 +30238,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Brightness)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Brightness(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Brightness)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Brightness)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Brightness(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Brightness)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30258,7 +30247,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_ColorEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_ColorEnable(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ColorEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_ColorEnable)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_ColorEnable(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_ColorEnable)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30267,7 +30256,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Contrast)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Contrast(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Contrast)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Contrast)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Contrast(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Contrast)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30276,7 +30265,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Gamma)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Gamma(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Gamma)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Gamma)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Gamma(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Gamma)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30285,7 +30274,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Saturation)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Saturation(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Saturation)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Saturation)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Saturation(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Saturation)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30294,7 +30283,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Sharpness)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Sharpness(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Sharpness)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Sharpness)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Sharpness(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Sharpness)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30303,7 +30292,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_WhiteBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_WhiteBalance(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_WhiteBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_WhiteBalance)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_WhiteBalance(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_WhiteBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30312,7 +30301,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Gain)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Gain(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Gain)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Gain)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Gain(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Gain)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30321,7 +30310,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_Hue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_Hue(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Hue)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_Hue)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_Hue(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_Hue)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30330,7 +30319,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_DigitalMultiplier)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_DigitalMultiplier(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_DigitalMultiplier)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_DigitalMultiplier)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_DigitalMultiplier(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_DigitalMultiplier)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30339,7 +30328,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_PowerlineFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pflags)).ok() } pub unsafe fn put_PowerlineFrequency(&self, value: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PowerlineFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_PowerlineFrequency)(windows_core::Interface::as_raw(self), value, flags).ok() } pub unsafe fn getRange_PowerlineFrequency(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_PowerlineFrequency)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30348,7 +30337,7 @@ impl IVideoProcAmp { (windows_core::Interface::vtable(self).get_WhiteBalanceComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue1), core::mem::transmute(pvalue2), core::mem::transmute(pflags)).ok() } pub unsafe fn put_WhiteBalanceComponent(&self, value1: i32, value2: i32, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_WhiteBalanceComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(value1), core::mem::transmute(value2), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).put_WhiteBalanceComponent)(windows_core::Interface::as_raw(self), value1, value2, flags).ok() } pub unsafe fn getRange_WhiteBalanceComponent(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getRange_WhiteBalanceComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(pmin), core::mem::transmute(pmax), core::mem::transmute(psteppingdelta), core::mem::transmute(pdefault), core::mem::transmute(pcapsflag)).ok() @@ -30665,28 +30654,28 @@ impl IVideoWindow { (windows_core::Interface::vtable(self).Caption)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetWindowStyle(&self, windowstyle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(windowstyle)).ok() + (windows_core::Interface::vtable(self).SetWindowStyle)(windows_core::Interface::as_raw(self), windowstyle).ok() } pub unsafe fn WindowStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WindowStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWindowStyleEx(&self, windowstyleex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowStyleEx)(windows_core::Interface::as_raw(self), core::mem::transmute(windowstyleex)).ok() + (windows_core::Interface::vtable(self).SetWindowStyleEx)(windows_core::Interface::as_raw(self), windowstyleex).ok() } pub unsafe fn WindowStyleEx(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WindowStyleEx)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoShow(&self, autoshow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoShow)(windows_core::Interface::as_raw(self), core::mem::transmute(autoshow)).ok() + (windows_core::Interface::vtable(self).SetAutoShow)(windows_core::Interface::as_raw(self), autoshow).ok() } pub unsafe fn AutoShow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoShow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWindowState(&self, windowstate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowState)(windows_core::Interface::as_raw(self), core::mem::transmute(windowstate)).ok() + (windows_core::Interface::vtable(self).SetWindowState)(windows_core::Interface::as_raw(self), windowstate).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn WindowState(&self) -> windows_core::Result { @@ -30694,56 +30683,56 @@ impl IVideoWindow { (windows_core::Interface::vtable(self).WindowState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackgroundPalette(&self, backgroundpalette: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundPalette)(windows_core::Interface::as_raw(self), core::mem::transmute(backgroundpalette)).ok() + (windows_core::Interface::vtable(self).SetBackgroundPalette)(windows_core::Interface::as_raw(self), backgroundpalette).ok() } pub unsafe fn BackgroundPalette(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BackgroundPalette)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVisible(&self, visible: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(visible)).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Visible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeft(&self, left: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(left)).ok() + (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), left).ok() } pub unsafe fn Left(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Left)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, width: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(width)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), width).ok() } pub unsafe fn Width(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTop(&self, top: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), top).ok() } pub unsafe fn Top(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Top)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHeight(&self, height: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), height).ok() } pub unsafe fn Height(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Height)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOwner(&self, owner: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), core::mem::transmute(owner)).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), owner).ok() } pub unsafe fn Owner(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Owner)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMessageDrain(&self, drain: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageDrain)(windows_core::Interface::as_raw(self), core::mem::transmute(drain)).ok() + (windows_core::Interface::vtable(self).SetMessageDrain)(windows_core::Interface::as_raw(self), drain).ok() } pub unsafe fn MessageDrain(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30754,23 +30743,23 @@ impl IVideoWindow { (windows_core::Interface::vtable(self).BorderColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderColor(&self, color: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn FullScreenMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FullScreenMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFullScreenMode(&self, fullscreenmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFullScreenMode)(windows_core::Interface::as_raw(self), core::mem::transmute(fullscreenmode)).ok() + (windows_core::Interface::vtable(self).SetFullScreenMode)(windows_core::Interface::as_raw(self), fullscreenmode).ok() } pub unsafe fn SetWindowForeground(&self, focus: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowForeground)(windows_core::Interface::as_raw(self), core::mem::transmute(focus)).ok() + (windows_core::Interface::vtable(self).SetWindowForeground)(windows_core::Interface::as_raw(self), focus).ok() } pub unsafe fn NotifyOwnerMessage(&self, hwnd: isize, umsg: i32, wparam: isize, lparam: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyOwnerMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).NotifyOwnerMessage)(windows_core::Interface::as_raw(self), hwnd, umsg, wparam, lparam).ok() } pub unsafe fn SetWindowPosition(&self, left: i32, top: i32, width: i32, height: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetWindowPosition)(windows_core::Interface::as_raw(self), left, top, width, height).ok() } pub unsafe fn GetWindowPosition(&self, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWindowPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() @@ -30785,7 +30774,7 @@ impl IVideoWindow { (windows_core::Interface::vtable(self).GetRestorePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() } pub unsafe fn HideCursor(&self, hidecursor: OA_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HideCursor)(windows_core::Interface::as_raw(self), core::mem::transmute(hidecursor)).ok() + (windows_core::Interface::vtable(self).HideCursor)(windows_core::Interface::as_raw(self), hidecursor).ok() } pub unsafe fn IsCursorHidden(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs index fdaf034078..fe363cd4fa 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs @@ -2,17 +2,17 @@ pub unsafe fn DMOEnum(guidcategory: *const windows_core::GUID, dwflags: u32, cintypes: u32, pintypes: *const DMO_PARTIAL_MEDIATYPE, couttypes: u32, pouttypes: *const DMO_PARTIAL_MEDIATYPE) -> windows_core::Result { windows_targets::link!("msdmo.dll" "system" fn DMOEnum(guidcategory : *const windows_core::GUID, dwflags : u32, cintypes : u32, pintypes : *const DMO_PARTIAL_MEDIATYPE, couttypes : u32, pouttypes : *const DMO_PARTIAL_MEDIATYPE, ppenum : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DMOEnum(core::mem::transmute(guidcategory), core::mem::transmute(dwflags), core::mem::transmute(cintypes), core::mem::transmute(pintypes), core::mem::transmute(couttypes), core::mem::transmute(pouttypes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DMOEnum(guidcategory, dwflags, cintypes, pintypes, couttypes, pouttypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn DMOGetName(clsiddmo: *const windows_core::GUID, szname: &mut [u16; 80]) -> windows_core::Result<()> { windows_targets::link!("msdmo.dll" "system" fn DMOGetName(clsiddmo : *const windows_core::GUID, szname : windows_core::PWSTR) -> windows_core::HRESULT); - DMOGetName(core::mem::transmute(clsiddmo), core::mem::transmute(szname.as_ptr())).ok() + DMOGetName(clsiddmo, core::mem::transmute(szname.as_ptr())).ok() } #[inline] pub unsafe fn DMOGetTypes(clsiddmo: *const windows_core::GUID, ulinputtypesrequested: u32, pulinputtypessupplied: *mut u32, pinputtypes: *mut DMO_PARTIAL_MEDIATYPE, uloutputtypesrequested: u32, puloutputtypessupplied: *mut u32, poutputtypes: *mut DMO_PARTIAL_MEDIATYPE) -> windows_core::Result<()> { windows_targets::link!("msdmo.dll" "system" fn DMOGetTypes(clsiddmo : *const windows_core::GUID, ulinputtypesrequested : u32, pulinputtypessupplied : *mut u32, pinputtypes : *mut DMO_PARTIAL_MEDIATYPE, uloutputtypesrequested : u32, puloutputtypessupplied : *mut u32, poutputtypes : *mut DMO_PARTIAL_MEDIATYPE) -> windows_core::HRESULT); - DMOGetTypes(core::mem::transmute(clsiddmo), core::mem::transmute(ulinputtypesrequested), core::mem::transmute(pulinputtypessupplied), core::mem::transmute(pinputtypes), core::mem::transmute(uloutputtypesrequested), core::mem::transmute(puloutputtypessupplied), core::mem::transmute(poutputtypes)).ok() + DMOGetTypes(clsiddmo, ulinputtypesrequested, core::mem::transmute(pulinputtypessupplied), core::mem::transmute(pinputtypes), uloutputtypesrequested, core::mem::transmute(puloutputtypessupplied), core::mem::transmute(poutputtypes)).ok() } #[inline] pub unsafe fn DMORegister(szname: P0, clsiddmo: *const windows_core::GUID, guidcategory: *const windows_core::GUID, dwflags: u32, cintypes: u32, pintypes: *const DMO_PARTIAL_MEDIATYPE, couttypes: u32, pouttypes: *const DMO_PARTIAL_MEDIATYPE) -> windows_core::Result<()> @@ -20,12 +20,12 @@ where P0: windows_core::Param, { windows_targets::link!("msdmo.dll" "system" fn DMORegister(szname : windows_core::PCWSTR, clsiddmo : *const windows_core::GUID, guidcategory : *const windows_core::GUID, dwflags : u32, cintypes : u32, pintypes : *const DMO_PARTIAL_MEDIATYPE, couttypes : u32, pouttypes : *const DMO_PARTIAL_MEDIATYPE) -> windows_core::HRESULT); - DMORegister(szname.param().abi(), core::mem::transmute(clsiddmo), core::mem::transmute(guidcategory), core::mem::transmute(dwflags), core::mem::transmute(cintypes), core::mem::transmute(pintypes), core::mem::transmute(couttypes), core::mem::transmute(pouttypes)).ok() + DMORegister(szname.param().abi(), clsiddmo, guidcategory, dwflags, cintypes, pintypes, couttypes, pouttypes).ok() } #[inline] pub unsafe fn DMOUnregister(clsiddmo: *const windows_core::GUID, guidcategory: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("msdmo.dll" "system" fn DMOUnregister(clsiddmo : *const windows_core::GUID, guidcategory : *const windows_core::GUID) -> windows_core::HRESULT); - DMOUnregister(core::mem::transmute(clsiddmo), core::mem::transmute(guidcategory)).ok() + DMOUnregister(clsiddmo, guidcategory).ok() } #[inline] pub unsafe fn MoCopyMediaType(pmtdest: *mut DMO_MEDIA_TYPE, pmtsrc: *const DMO_MEDIA_TYPE) -> windows_core::Result<()> { @@ -35,7 +35,7 @@ pub unsafe fn MoCopyMediaType(pmtdest: *mut DMO_MEDIA_TYPE, pmtsrc: *const DMO_M #[inline] pub unsafe fn MoCreateMediaType(ppmt: *mut *mut DMO_MEDIA_TYPE, cbformat: u32) -> windows_core::Result<()> { windows_targets::link!("msdmo.dll" "system" fn MoCreateMediaType(ppmt : *mut *mut DMO_MEDIA_TYPE, cbformat : u32) -> windows_core::HRESULT); - MoCreateMediaType(core::mem::transmute(ppmt), core::mem::transmute(cbformat)).ok() + MoCreateMediaType(core::mem::transmute(ppmt), cbformat).ok() } #[inline] pub unsafe fn MoDeleteMediaType(pmt: *mut DMO_MEDIA_TYPE) -> windows_core::Result<()> { @@ -55,7 +55,7 @@ pub unsafe fn MoFreeMediaType(pmt: *mut DMO_MEDIA_TYPE) -> windows_core::Result< #[inline] pub unsafe fn MoInitMediaType(pmt: *mut DMO_MEDIA_TYPE, cbformat: u32) -> windows_core::Result<()> { windows_targets::link!("msdmo.dll" "system" fn MoInitMediaType(pmt : *mut DMO_MEDIA_TYPE, cbformat : u32) -> windows_core::HRESULT); - MoInitMediaType(core::mem::transmute(pmt), core::mem::transmute(cbformat)).ok() + MoInitMediaType(core::mem::transmute(pmt), cbformat).ok() } pub const DMOCATEGORY_ACOUSTIC_ECHO_CANCEL: windows_core::GUID = windows_core::GUID::from_u128(0xbf963d80_c559_11d0_8a2b_00a0c9255ac1); pub const DMOCATEGORY_AGC: windows_core::GUID = windows_core::GUID::from_u128(0xe88c9ba0_c557_11d0_8a2b_00a0c9255ac1); @@ -153,10 +153,10 @@ windows_core::imp::define_interface!(IDMOQualityControl, IDMOQualityControl_Vtbl windows_core::imp::interface_hierarchy!(IDMOQualityControl, windows_core::IUnknown); impl IDMOQualityControl { pub unsafe fn SetNow(&self, rtnow: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNow)(windows_core::Interface::as_raw(self), core::mem::transmute(rtnow)).ok() + (windows_core::Interface::vtable(self).SetNow)(windows_core::Interface::as_raw(self), rtnow).ok() } pub unsafe fn SetStatus(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -212,18 +212,18 @@ windows_core::imp::interface_hierarchy!(IDMOVideoOutputOptimizations, windows_co impl IDMOVideoOutputOptimizations { pub unsafe fn QueryOperationModePreferences(&self, uloutputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryOperationModePreferences)(windows_core::Interface::as_raw(self), core::mem::transmute(uloutputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryOperationModePreferences)(windows_core::Interface::as_raw(self), uloutputstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetOperationMode(&self, uloutputstreamindex: u32, dwenabledfeatures: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(uloutputstreamindex), core::mem::transmute(dwenabledfeatures)).ok() + (windows_core::Interface::vtable(self).SetOperationMode)(windows_core::Interface::as_raw(self), uloutputstreamindex, dwenabledfeatures).ok() } pub unsafe fn GetCurrentOperationMode(&self, uloutputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentOperationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(uloutputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrentOperationMode)(windows_core::Interface::as_raw(self), uloutputstreamindex, &mut result__).map(|| result__) } pub unsafe fn GetCurrentSampleRequirements(&self, uloutputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentSampleRequirements)(windows_core::Interface::as_raw(self), core::mem::transmute(uloutputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrentSampleRequirements)(windows_core::Interface::as_raw(self), uloutputstreamindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -293,10 +293,10 @@ windows_core::imp::define_interface!(IEnumDMO, IEnumDMO_Vtbl, 0x2c3cd98a_2bfa_4a windows_core::imp::interface_hierarchy!(IEnumDMO, windows_core::IUnknown); impl IEnumDMO { pub unsafe fn Next(&self, citemstofetch: u32, pclsid: *mut windows_core::GUID, names: *mut windows_core::PWSTR, pcitemsfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(citemstofetch), core::mem::transmute(pclsid), core::mem::transmute(names), core::mem::transmute(pcitemsfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), citemstofetch, core::mem::transmute(pclsid), core::mem::transmute(names), core::mem::transmute(pcitemsfetched)).ok() } pub unsafe fn Skip(&self, citemstoskip: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(citemstoskip)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), citemstoskip).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -361,7 +361,7 @@ windows_core::imp::define_interface!(IMediaBuffer, IMediaBuffer_Vtbl, 0x59eff8b9 windows_core::imp::interface_hierarchy!(IMediaBuffer, windows_core::IUnknown); impl IMediaBuffer { pub unsafe fn SetLength(&self, cblength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(cblength)).ok() + (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), cblength).ok() } pub unsafe fn GetMaxLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -423,48 +423,48 @@ impl IMediaObject { } pub unsafe fn GetInputStreamInfo(&self, dwinputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputStreamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputStreamInfo)(windows_core::Interface::as_raw(self), dwinputstreamindex, &mut result__).map(|| result__) } pub unsafe fn GetOutputStreamInfo(&self, dwoutputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputStreamInfo)(windows_core::Interface::as_raw(self), dwoutputstreamindex, &mut result__).map(|| result__) } pub unsafe fn GetInputType(&self, dwinputstreamindex: u32, dwtypeindex: u32, pmt: Option<*mut DMO_MEDIA_TYPE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), core::mem::transmute(dwtypeindex), core::mem::transmute(pmt.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetInputType)(windows_core::Interface::as_raw(self), dwinputstreamindex, dwtypeindex, core::mem::transmute(pmt.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOutputType(&self, dwoutputstreamindex: u32, dwtypeindex: u32, pmt: Option<*mut DMO_MEDIA_TYPE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamindex), core::mem::transmute(dwtypeindex), core::mem::transmute(pmt.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOutputType)(windows_core::Interface::as_raw(self), dwoutputstreamindex, dwtypeindex, core::mem::transmute(pmt.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetInputType(&self, dwinputstreamindex: u32, pmt: Option<*const DMO_MEDIA_TYPE>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), core::mem::transmute(pmt.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), dwinputstreamindex, core::mem::transmute(pmt.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn SetOutputType(&self, dwoutputstreamindex: u32, pmt: Option<*const DMO_MEDIA_TYPE>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamindex), core::mem::transmute(pmt.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetOutputType)(windows_core::Interface::as_raw(self), dwoutputstreamindex, core::mem::transmute(pmt.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn GetInputCurrentType(&self, dwinputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputCurrentType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), core::mem::transmute(pmt)).ok() + (windows_core::Interface::vtable(self).GetInputCurrentType)(windows_core::Interface::as_raw(self), dwinputstreamindex, core::mem::transmute(pmt)).ok() } pub unsafe fn GetOutputCurrentType(&self, dwoutputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputCurrentType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamindex), core::mem::transmute(pmt)).ok() + (windows_core::Interface::vtable(self).GetOutputCurrentType)(windows_core::Interface::as_raw(self), dwoutputstreamindex, core::mem::transmute(pmt)).ok() } pub unsafe fn GetInputSizeInfo(&self, dwinputstreamindex: u32, pcbsize: *mut u32, pcbmaxlookahead: *mut u32, pcbalignment: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputSizeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), core::mem::transmute(pcbsize), core::mem::transmute(pcbmaxlookahead), core::mem::transmute(pcbalignment)).ok() + (windows_core::Interface::vtable(self).GetInputSizeInfo)(windows_core::Interface::as_raw(self), dwinputstreamindex, core::mem::transmute(pcbsize), core::mem::transmute(pcbmaxlookahead), core::mem::transmute(pcbalignment)).ok() } pub unsafe fn GetOutputSizeInfo(&self, dwoutputstreamindex: u32, pcbsize: *mut u32, pcbalignment: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputSizeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamindex), core::mem::transmute(pcbsize), core::mem::transmute(pcbalignment)).ok() + (windows_core::Interface::vtable(self).GetOutputSizeInfo)(windows_core::Interface::as_raw(self), dwoutputstreamindex, core::mem::transmute(pcbsize), core::mem::transmute(pcbalignment)).ok() } pub unsafe fn GetInputMaxLatency(&self, dwinputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputMaxLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputMaxLatency)(windows_core::Interface::as_raw(self), dwinputstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetInputMaxLatency(&self, dwinputstreamindex: u32, rtmaxlatency: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInputMaxLatency)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), core::mem::transmute(rtmaxlatency)).ok() + (windows_core::Interface::vtable(self).SetInputMaxLatency)(windows_core::Interface::as_raw(self), dwinputstreamindex, rtmaxlatency).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Discontinuity(&self, dwinputstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Discontinuity)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex)).ok() + (windows_core::Interface::vtable(self).Discontinuity)(windows_core::Interface::as_raw(self), dwinputstreamindex).ok() } pub unsafe fn AllocateStreamingResources(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AllocateStreamingResources)(windows_core::Interface::as_raw(self)).ok() @@ -474,19 +474,19 @@ impl IMediaObject { } pub unsafe fn GetInputStatus(&self, dwinputstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputStatus)(windows_core::Interface::as_raw(self), dwinputstreamindex, &mut result__).map(|| result__) } pub unsafe fn ProcessInput(&self, dwinputstreamindex: u32, pbuffer: P1, dwflags: u32, rttimestamp: i64, rttimelength: i64) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamindex), pbuffer.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(rttimestamp), core::mem::transmute(rttimelength)).ok() + (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), dwinputstreamindex, pbuffer.param().abi(), dwflags, rttimestamp, rttimelength).ok() } pub unsafe fn ProcessOutput(&self, dwflags: u32, poutputbuffers: &mut [DMO_OUTPUT_DATA_BUFFER], pdwstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), poutputbuffers.len().try_into().unwrap(), core::mem::transmute(poutputbuffers.as_ptr()), core::mem::transmute(pdwstatus)).ok() + (windows_core::Interface::vtable(self).ProcessOutput)(windows_core::Interface::as_raw(self), dwflags, poutputbuffers.len().try_into().unwrap(), core::mem::transmute(poutputbuffers.as_ptr()), core::mem::transmute(pdwstatus)).ok() } pub unsafe fn Lock(&self, block: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(block)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), block).ok() } } #[repr(C)] @@ -681,7 +681,7 @@ windows_core::imp::define_interface!(IMediaObjectInPlace, IMediaObjectInPlace_Vt windows_core::imp::interface_hierarchy!(IMediaObjectInPlace, windows_core::IUnknown); impl IMediaObjectInPlace { pub unsafe fn Process(&self, pdata: &mut [u8], reftimestart: i64, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), pdata.len().try_into().unwrap(), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(reftimestart), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), pdata.len().try_into().unwrap(), core::mem::transmute(pdata.as_ptr()), reftimestart, dwflags).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs index 2063a40ff0..c0250ea4e6 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -1,79 +1,79 @@ #[inline] pub unsafe fn KsCreateAllocator(connectionhandle: super::super::Foundation::HANDLE, allocatorframing: *const KSALLOCATOR_FRAMING, allocatorhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("ksuser.dll" "system" fn KsCreateAllocator(connectionhandle : super::super::Foundation:: HANDLE, allocatorframing : *const KSALLOCATOR_FRAMING, allocatorhandle : *mut super::super::Foundation:: HANDLE) -> u32); - KsCreateAllocator(core::mem::transmute(connectionhandle), core::mem::transmute(allocatorframing), core::mem::transmute(allocatorhandle)) + KsCreateAllocator(connectionhandle, allocatorframing, core::mem::transmute(allocatorhandle)) } #[inline] pub unsafe fn KsCreateAllocator2(connectionhandle: super::super::Foundation::HANDLE, allocatorframing: *const KSALLOCATOR_FRAMING) -> windows_core::Result { windows_targets::link!("ksuser.dll" "system" fn KsCreateAllocator2(connectionhandle : super::super::Foundation:: HANDLE, allocatorframing : *const KSALLOCATOR_FRAMING, allocatorhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - KsCreateAllocator2(core::mem::transmute(connectionhandle), core::mem::transmute(allocatorframing), &mut result__).map(|| core::mem::transmute(result__)) + KsCreateAllocator2(connectionhandle, allocatorframing, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn KsCreateClock(connectionhandle: super::super::Foundation::HANDLE, clockcreate: *const KSCLOCK_CREATE, clockhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("ksuser.dll" "system" fn KsCreateClock(connectionhandle : super::super::Foundation:: HANDLE, clockcreate : *const KSCLOCK_CREATE, clockhandle : *mut super::super::Foundation:: HANDLE) -> u32); - KsCreateClock(core::mem::transmute(connectionhandle), core::mem::transmute(clockcreate), core::mem::transmute(clockhandle)) + KsCreateClock(connectionhandle, clockcreate, core::mem::transmute(clockhandle)) } #[inline] pub unsafe fn KsCreateClock2(connectionhandle: super::super::Foundation::HANDLE, clockcreate: *const KSCLOCK_CREATE) -> windows_core::Result { windows_targets::link!("ksuser.dll" "system" fn KsCreateClock2(connectionhandle : super::super::Foundation:: HANDLE, clockcreate : *const KSCLOCK_CREATE, clockhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - KsCreateClock2(core::mem::transmute(connectionhandle), core::mem::transmute(clockcreate), &mut result__).map(|| core::mem::transmute(result__)) + KsCreateClock2(connectionhandle, clockcreate, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn KsCreatePin(filterhandle: super::super::Foundation::HANDLE, connect: *const KSPIN_CONNECT, desiredaccess: u32, connectionhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("ksuser.dll" "system" fn KsCreatePin(filterhandle : super::super::Foundation:: HANDLE, connect : *const KSPIN_CONNECT, desiredaccess : u32, connectionhandle : *mut super::super::Foundation:: HANDLE) -> u32); - KsCreatePin(core::mem::transmute(filterhandle), core::mem::transmute(connect), core::mem::transmute(desiredaccess), core::mem::transmute(connectionhandle)) + KsCreatePin(filterhandle, connect, desiredaccess, core::mem::transmute(connectionhandle)) } #[inline] pub unsafe fn KsCreatePin2(filterhandle: super::super::Foundation::HANDLE, connect: *const KSPIN_CONNECT, desiredaccess: u32) -> windows_core::Result { windows_targets::link!("ksuser.dll" "system" fn KsCreatePin2(filterhandle : super::super::Foundation:: HANDLE, connect : *const KSPIN_CONNECT, desiredaccess : u32, connectionhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - KsCreatePin2(core::mem::transmute(filterhandle), core::mem::transmute(connect), core::mem::transmute(desiredaccess), &mut result__).map(|| core::mem::transmute(result__)) + KsCreatePin2(filterhandle, connect, desiredaccess, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn KsCreateTopologyNode(parenthandle: super::super::Foundation::HANDLE, nodecreate: *const KSNODE_CREATE, desiredaccess: u32, nodehandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("ksuser.dll" "system" fn KsCreateTopologyNode(parenthandle : super::super::Foundation:: HANDLE, nodecreate : *const KSNODE_CREATE, desiredaccess : u32, nodehandle : *mut super::super::Foundation:: HANDLE) -> u32); - KsCreateTopologyNode(core::mem::transmute(parenthandle), core::mem::transmute(nodecreate), core::mem::transmute(desiredaccess), core::mem::transmute(nodehandle)) + KsCreateTopologyNode(parenthandle, nodecreate, desiredaccess, core::mem::transmute(nodehandle)) } #[inline] pub unsafe fn KsCreateTopologyNode2(parenthandle: super::super::Foundation::HANDLE, nodecreate: *const KSNODE_CREATE, desiredaccess: u32) -> windows_core::Result { windows_targets::link!("ksuser.dll" "system" fn KsCreateTopologyNode2(parenthandle : super::super::Foundation:: HANDLE, nodecreate : *const KSNODE_CREATE, desiredaccess : u32, nodehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - KsCreateTopologyNode2(core::mem::transmute(parenthandle), core::mem::transmute(nodecreate), core::mem::transmute(desiredaccess), &mut result__).map(|| core::mem::transmute(result__)) + KsCreateTopologyNode2(parenthandle, nodecreate, desiredaccess, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] #[inline] pub unsafe fn KsGetMediaType(position: i32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE, filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32) -> windows_core::Result<()> { windows_targets::link!("ksproxy.ax" "system" fn KsGetMediaType(position : i32, ammediatype : *mut super::MediaFoundation:: AM_MEDIA_TYPE, filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32) -> windows_core::HRESULT); - KsGetMediaType(core::mem::transmute(position), core::mem::transmute(ammediatype), core::mem::transmute(filterhandle), core::mem::transmute(pinfactoryid)).ok() + KsGetMediaType(position, core::mem::transmute(ammediatype), filterhandle, pinfactoryid).ok() } #[inline] pub unsafe fn KsGetMediaTypeCount(filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32) -> windows_core::Result { windows_targets::link!("ksproxy.ax" "system" fn KsGetMediaTypeCount(filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32, mediatypecount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - KsGetMediaTypeCount(core::mem::transmute(filterhandle), core::mem::transmute(pinfactoryid), &mut result__).map(|| core::mem::transmute(result__)) + KsGetMediaTypeCount(filterhandle, pinfactoryid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn KsGetMultiplePinFactoryItems(filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32, propertyid: u32, items: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ksproxy.ax" "system" fn KsGetMultiplePinFactoryItems(filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32, propertyid : u32, items : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - KsGetMultiplePinFactoryItems(core::mem::transmute(filterhandle), core::mem::transmute(pinfactoryid), core::mem::transmute(propertyid), core::mem::transmute(items)).ok() + KsGetMultiplePinFactoryItems(filterhandle, pinfactoryid, propertyid, core::mem::transmute(items)).ok() } #[inline] pub unsafe fn KsOpenDefaultDevice(category: *const windows_core::GUID, access: u32) -> windows_core::Result { windows_targets::link!("ksproxy.ax" "system" fn KsOpenDefaultDevice(category : *const windows_core::GUID, access : u32, devicehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - KsOpenDefaultDevice(core::mem::transmute(category), core::mem::transmute(access), &mut result__).map(|| core::mem::transmute(result__)) + KsOpenDefaultDevice(category, access, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn KsResolveRequiredAttributes(datarange: *const KSDATAFORMAT, attributes: Option<*const KSMULTIPLE_ITEM>) -> windows_core::Result<()> { windows_targets::link!("ksproxy.ax" "system" fn KsResolveRequiredAttributes(datarange : *const KSDATAFORMAT, attributes : *const KSMULTIPLE_ITEM) -> windows_core::HRESULT); - KsResolveRequiredAttributes(core::mem::transmute(datarange), core::mem::transmute(attributes.unwrap_or(core::mem::zeroed()))).ok() + KsResolveRequiredAttributes(datarange, core::mem::transmute(attributes.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn KsSynchronousDeviceControl(handle: super::super::Foundation::HANDLE, iocontrol: u32, inbuffer: Option<*const core::ffi::c_void>, inlength: u32, outbuffer: Option<*mut core::ffi::c_void>, outlength: u32, bytesreturned: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("ksproxy.ax" "system" fn KsSynchronousDeviceControl(handle : super::super::Foundation:: HANDLE, iocontrol : u32, inbuffer : *const core::ffi::c_void, inlength : u32, outbuffer : *mut core::ffi::c_void, outlength : u32, bytesreturned : *mut u32) -> windows_core::HRESULT); - KsSynchronousDeviceControl(core::mem::transmute(handle), core::mem::transmute(iocontrol), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inlength), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outlength), core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed()))).ok() + KsSynchronousDeviceControl(handle, iocontrol, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inlength, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outlength, core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed()))).ok() } pub const AEC_MODE_FULL_DUPLEX: u32 = 2u32; pub const AEC_MODE_HALF_DUPLEX: u32 = 1u32; @@ -334,10 +334,10 @@ windows_core::imp::define_interface!(IKsAggregateControl, IKsAggregateControl_Vt windows_core::imp::interface_hierarchy!(IKsAggregateControl, windows_core::IUnknown); impl IKsAggregateControl { pub unsafe fn KsAddAggregate(&self, aggregateclass: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsAddAggregate)(windows_core::Interface::as_raw(self), core::mem::transmute(aggregateclass)).ok() + (windows_core::Interface::vtable(self).KsAddAggregate)(windows_core::Interface::as_raw(self), aggregateclass).ok() } pub unsafe fn KsRemoveAggregate(&self, aggregateclass: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsRemoveAggregate)(windows_core::Interface::as_raw(self), core::mem::transmute(aggregateclass)).ok() + (windows_core::Interface::vtable(self).KsRemoveAggregate)(windows_core::Interface::as_raw(self), aggregateclass).ok() } } #[repr(C)] @@ -384,7 +384,7 @@ impl IKsAllocator { (windows_core::Interface::vtable(self).KsGetAllocatorStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(allocatorstatus)).ok() } pub unsafe fn KsSetAllocatorMode(&self, mode: KSALLOCATORMODE) { - (windows_core::Interface::vtable(self).KsSetAllocatorMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)) + (windows_core::Interface::vtable(self).KsSetAllocatorMode)(windows_core::Interface::as_raw(self), mode) } } #[repr(C)] @@ -448,7 +448,7 @@ impl IKsAllocatorEx { (windows_core::Interface::vtable(self).KsSetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(param0)) } pub unsafe fn KsSetAllocatorHandle(&self, allocatorhandle: super::super::Foundation::HANDLE) { - (windows_core::Interface::vtable(self).KsSetAllocatorHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(allocatorhandle)) + (windows_core::Interface::vtable(self).KsSetAllocatorHandle)(windows_core::Interface::as_raw(self), allocatorhandle) } pub unsafe fn KsCreateAllocatorAndGetHandle(&self, kspin: P0) -> super::super::Foundation::HANDLE where @@ -510,28 +510,28 @@ impl IKsClockPropertySet { (windows_core::Interface::vtable(self).KsGetTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn KsSetTime(&self, time: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsSetTime)(windows_core::Interface::as_raw(self), core::mem::transmute(time)).ok() + (windows_core::Interface::vtable(self).KsSetTime)(windows_core::Interface::as_raw(self), time).ok() } pub unsafe fn KsGetPhysicalTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KsGetPhysicalTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn KsSetPhysicalTime(&self, time: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsSetPhysicalTime)(windows_core::Interface::as_raw(self), core::mem::transmute(time)).ok() + (windows_core::Interface::vtable(self).KsSetPhysicalTime)(windows_core::Interface::as_raw(self), time).ok() } pub unsafe fn KsGetCorrelatedTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KsGetCorrelatedTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn KsSetCorrelatedTime(&self, correlatedtime: *const KSCORRELATED_TIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsSetCorrelatedTime)(windows_core::Interface::as_raw(self), core::mem::transmute(correlatedtime)).ok() + (windows_core::Interface::vtable(self).KsSetCorrelatedTime)(windows_core::Interface::as_raw(self), correlatedtime).ok() } pub unsafe fn KsGetCorrelatedPhysicalTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KsGetCorrelatedPhysicalTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn KsSetCorrelatedPhysicalTime(&self, correlatedtime: *const KSCORRELATED_TIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsSetCorrelatedPhysicalTime)(windows_core::Interface::as_raw(self), core::mem::transmute(correlatedtime)).ok() + (windows_core::Interface::vtable(self).KsSetCorrelatedPhysicalTime)(windows_core::Interface::as_raw(self), correlatedtime).ok() } pub unsafe fn KsGetResolution(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -669,13 +669,13 @@ windows_core::imp::define_interface!(IKsControl, IKsControl_Vtbl, 0x28f54685_06f windows_core::imp::interface_hierarchy!(IKsControl, windows_core::IUnknown); impl IKsControl { pub unsafe fn KsProperty(&self, property: *const KSIDENTIFIER, propertylength: u32, propertydata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute(propertylength), core::mem::transmute(propertydata), core::mem::transmute(datalength), core::mem::transmute(bytesreturned)).ok() + (windows_core::Interface::vtable(self).KsProperty)(windows_core::Interface::as_raw(self), property, propertylength, core::mem::transmute(propertydata), datalength, core::mem::transmute(bytesreturned)).ok() } pub unsafe fn KsMethod(&self, method: *const KSIDENTIFIER, methodlength: u32, methoddata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(method), core::mem::transmute(methodlength), core::mem::transmute(methoddata), core::mem::transmute(datalength), core::mem::transmute(bytesreturned)).ok() + (windows_core::Interface::vtable(self).KsMethod)(windows_core::Interface::as_raw(self), method, methodlength, core::mem::transmute(methoddata), datalength, core::mem::transmute(bytesreturned)).ok() } pub unsafe fn KsEvent(&self, event: *const KSIDENTIFIER, eventlength: u32, eventdata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), core::mem::transmute(eventlength), core::mem::transmute(eventdata), core::mem::transmute(datalength), core::mem::transmute(bytesreturned)).ok() + (windows_core::Interface::vtable(self).KsEvent)(windows_core::Interface::as_raw(self), event, eventlength, core::mem::transmute(eventdata), datalength, core::mem::transmute(bytesreturned)).ok() } } #[repr(C)] @@ -721,7 +721,7 @@ windows_core::imp::interface_hierarchy!(IKsDataTypeCompletion, windows_core::IUn impl IKsDataTypeCompletion { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn KsCompleteMediaType(&self, filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsCompleteMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(filterhandle), core::mem::transmute(pinfactoryid), core::mem::transmute(ammediatype)).ok() + (windows_core::Interface::vtable(self).KsCompleteMediaType)(windows_core::Interface::as_raw(self), filterhandle, pinfactoryid, core::mem::transmute(ammediatype)).ok() } } #[repr(C)] @@ -759,17 +759,17 @@ impl IKsDataTypeHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsCompleteIoOperation)(windows_core::Interface::as_raw(self), sample.param().abi(), core::mem::transmute(streamheader), core::mem::transmute(iooperation), cancelled.into()).ok() + (windows_core::Interface::vtable(self).KsCompleteIoOperation)(windows_core::Interface::as_raw(self), sample.param().abi(), core::mem::transmute(streamheader), iooperation, cancelled.into()).ok() } pub unsafe fn KsIsMediaTypeInRanges(&self, dataranges: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsIsMediaTypeInRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(dataranges)).ok() + (windows_core::Interface::vtable(self).KsIsMediaTypeInRanges)(windows_core::Interface::as_raw(self), dataranges).ok() } #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsPrepareIoOperation(&self, sample: P0, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsPrepareIoOperation)(windows_core::Interface::as_raw(self), sample.param().abi(), core::mem::transmute(streamheader), core::mem::transmute(iooperation)).ok() + (windows_core::Interface::vtable(self).KsPrepareIoOperation)(windows_core::Interface::as_raw(self), sample.param().abi(), core::mem::transmute(streamheader), iooperation).ok() } pub unsafe fn KsQueryExtendedSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -854,7 +854,7 @@ windows_core::imp::define_interface!(IKsFormatSupport, IKsFormatSupport_Vtbl, 0x windows_core::imp::interface_hierarchy!(IKsFormatSupport, windows_core::IUnknown); impl IKsFormatSupport { pub unsafe fn IsFormatSupported(&self, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pksformat), core::mem::transmute(cbformat), core::mem::transmute(pbsupported)).ok() + (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pksformat), cbformat, core::mem::transmute(pbsupported)).ok() } pub unsafe fn GetDevicePreferredFormat(&self) -> windows_core::Result<*mut KSDATAFORMAT> { let mut result__ = core::mem::zeroed(); @@ -912,7 +912,7 @@ impl IKsInterfaceHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsProcessMediaSamples)(windows_core::Interface::as_raw(self), ksdatatypehandler.param().abi(), core::mem::transmute(samplelist), core::mem::transmute(samplecount), core::mem::transmute(iooperation), core::mem::transmute(streamsegment)).ok() + (windows_core::Interface::vtable(self).KsProcessMediaSamples)(windows_core::Interface::as_raw(self), ksdatatypehandler.param().abi(), core::mem::transmute(samplelist), core::mem::transmute(samplecount), iooperation, core::mem::transmute(streamsegment)).ok() } pub unsafe fn KsCompleteIo(&self, streamsegment: *mut KSSTREAM_SEGMENT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KsCompleteIo)(windows_core::Interface::as_raw(self), core::mem::transmute(streamsegment)).ok() @@ -1005,7 +1005,7 @@ impl IKsJackDescription { (windows_core::Interface::vtable(self).GetJackCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetJackDescription(&self, njack: u32, pdescription: *mut KSJACK_DESCRIPTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetJackDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(njack), core::mem::transmute(pdescription)).ok() + (windows_core::Interface::vtable(self).GetJackDescription)(windows_core::Interface::as_raw(self), njack, core::mem::transmute(pdescription)).ok() } } #[repr(C)] @@ -1054,7 +1054,7 @@ impl IKsJackDescription2 { } pub unsafe fn GetJackDescription2(&self, njack: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJackDescription2)(windows_core::Interface::as_raw(self), core::mem::transmute(njack), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetJackDescription2)(windows_core::Interface::as_raw(self), njack, &mut result__).map(|| result__) } } #[repr(C)] @@ -1109,7 +1109,7 @@ impl IKsJackDescription3 { } pub unsafe fn GetJackDescription3(&self, njack: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJackDescription3)(windows_core::Interface::as_raw(self), core::mem::transmute(njack), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetJackDescription3)(windows_core::Interface::as_raw(self), njack, &mut result__).map(|| result__) } } #[repr(C)] @@ -1187,10 +1187,10 @@ windows_core::imp::define_interface!(IKsNodeControl, IKsNodeControl_Vtbl, 0x1173 windows_core::imp::interface_hierarchy!(IKsNodeControl, windows_core::IUnknown); impl IKsNodeControl { pub unsafe fn SetNodeId(&self, dwnodeid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNodeId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnodeid)).ok() + (windows_core::Interface::vtable(self).SetNodeId)(windows_core::Interface::as_raw(self), dwnodeid).ok() } pub unsafe fn SetKsControl(&self, pkscontrol: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKsControl)(windows_core::Interface::as_raw(self), core::mem::transmute(pkscontrol)).ok() + (windows_core::Interface::vtable(self).SetKsControl)(windows_core::Interface::as_raw(self), pkscontrol).ok() } } #[repr(C)] @@ -1228,7 +1228,7 @@ windows_core::imp::define_interface!(IKsNotifyEvent, IKsNotifyEvent_Vtbl, 0x412b windows_core::imp::interface_hierarchy!(IKsNotifyEvent, windows_core::IUnknown); impl IKsNotifyEvent { pub unsafe fn KsNotifyEvent(&self, event: u32, lparam1: usize, lparam2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsNotifyEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), core::mem::transmute(lparam1), core::mem::transmute(lparam2)).ok() + (windows_core::Interface::vtable(self).KsNotifyEvent)(windows_core::Interface::as_raw(self), event, lparam1, lparam2).ok() } } #[repr(C)] @@ -1292,7 +1292,7 @@ impl IKsPin { (windows_core::Interface::vtable(self).KsQueryInterfaces)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn KsCreateSinkPinHandle(&self, interface: *const KSIDENTIFIER, medium: *const KSIDENTIFIER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsCreateSinkPinHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(interface), core::mem::transmute(medium)).ok() + (windows_core::Interface::vtable(self).KsCreateSinkPinHandle)(windows_core::Interface::as_raw(self), interface, medium).ok() } pub unsafe fn KsGetCurrentCommunication(&self, communication: Option<*mut KSPIN_COMMUNICATION>, interface: Option<*mut KSIDENTIFIER>, medium: Option<*mut KSIDENTIFIER>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KsGetCurrentCommunication)(windows_core::Interface::as_raw(self), core::mem::transmute(communication.unwrap_or(core::mem::zeroed())), core::mem::transmute(interface.unwrap_or(core::mem::zeroed())), core::mem::transmute(medium.unwrap_or(core::mem::zeroed()))).ok() @@ -1305,14 +1305,14 @@ impl IKsPin { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsDeliver)(windows_core::Interface::as_raw(self), sample.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).KsDeliver)(windows_core::Interface::as_raw(self), sample.param().abi(), flags).ok() } pub unsafe fn KsMediaSamplesCompleted(&self, streamsegment: *const KSSTREAM_SEGMENT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KsMediaSamplesCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(streamsegment)).ok() } #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsPeekAllocator(&self, operation: KSPEEKOPERATION) -> Option { - (windows_core::Interface::vtable(self).KsPeekAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(operation)) + (windows_core::Interface::vtable(self).KsPeekAllocator)(windows_core::Interface::as_raw(self), operation) } #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsReceiveAllocator(&self, memallocator: P0) -> windows_core::Result<()> @@ -1331,7 +1331,7 @@ impl IKsPin { (windows_core::Interface::vtable(self).KsDecrementPendingIoCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn KsQualityNotify(&self, proportion: u32, timedelta: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsQualityNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(proportion), core::mem::transmute(timedelta)).ok() + (windows_core::Interface::vtable(self).KsQualityNotify)(windows_core::Interface::as_raw(self), proportion, timedelta).ok() } } #[repr(C)] @@ -1480,7 +1480,7 @@ impl IKsPinEx { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsNotifyError)(windows_core::Interface::as_raw(self), sample.param().abi(), core::mem::transmute(hr)) + (windows_core::Interface::vtable(self).KsNotifyError)(windows_core::Interface::as_raw(self), sample.param().abi(), hr) } } #[repr(C)] @@ -1549,17 +1549,17 @@ windows_core::imp::define_interface!(IKsPinPipe, IKsPinPipe_Vtbl, 0xe539cd90_a8b windows_core::imp::interface_hierarchy!(IKsPinPipe, windows_core::IUnknown); impl IKsPinPipe { pub unsafe fn KsGetPinFramingCache(&self, framingex: *mut *mut KSALLOCATOR_FRAMING_EX, framingprop: *mut FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsGetPinFramingCache)(windows_core::Interface::as_raw(self), core::mem::transmute(framingex), core::mem::transmute(framingprop), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).KsGetPinFramingCache)(windows_core::Interface::as_raw(self), core::mem::transmute(framingex), core::mem::transmute(framingprop), option).ok() } pub unsafe fn KsSetPinFramingCache(&self, framingex: *const KSALLOCATOR_FRAMING_EX, framingprop: *const FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsSetPinFramingCache)(windows_core::Interface::as_raw(self), core::mem::transmute(framingex), core::mem::transmute(framingprop), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).KsSetPinFramingCache)(windows_core::Interface::as_raw(self), framingex, framingprop, option).ok() } #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsGetConnectedPin(&self) -> Option { (windows_core::Interface::vtable(self).KsGetConnectedPin)(windows_core::Interface::as_raw(self)) } pub unsafe fn KsGetPipe(&self, operation: KSPEEKOPERATION) -> Option { - (windows_core::Interface::vtable(self).KsGetPipe)(windows_core::Interface::as_raw(self), core::mem::transmute(operation)) + (windows_core::Interface::vtable(self).KsGetPipe)(windows_core::Interface::as_raw(self), operation) } pub unsafe fn KsSetPipe(&self, ksallocator: P0) -> windows_core::Result<()> where @@ -1571,7 +1571,7 @@ impl IKsPinPipe { (windows_core::Interface::vtable(self).KsGetPipeAllocatorFlag)(windows_core::Interface::as_raw(self)) } pub unsafe fn KsSetPipeAllocatorFlag(&self, flag: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KsSetPipeAllocatorFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(flag)).ok() + (windows_core::Interface::vtable(self).KsSetPipeAllocatorFlag)(windows_core::Interface::as_raw(self), flag).ok() } pub unsafe fn KsGetPinBusCache(&self) -> windows_core::GUID { let mut result__ = core::mem::zeroed(); @@ -1692,14 +1692,14 @@ windows_core::imp::define_interface!(IKsPropertySet, IKsPropertySet_Vtbl, 0x31ef windows_core::imp::interface_hierarchy!(IKsPropertySet, windows_core::IUnknown); impl IKsPropertySet { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpropset), core::mem::transmute(dwpropid), core::mem::transmute(pinstancedata), core::mem::transmute(cbinstancedata), core::mem::transmute(ppropdata), core::mem::transmute(cbpropdata)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), guidpropset, dwpropid, pinstancedata, cbinstancedata, ppropdata, cbpropdata).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpropset), core::mem::transmute(dwpropid), core::mem::transmute(pinstancedata), core::mem::transmute(cbinstancedata), core::mem::transmute(ppropdata), core::mem::transmute(cbpropdata), core::mem::transmute(pcbreturned)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), guidpropset, dwpropid, pinstancedata, cbinstancedata, core::mem::transmute(ppropdata), cbpropdata, core::mem::transmute(pcbreturned)).ok() } pub unsafe fn QuerySupported(&self, guidpropset: *const windows_core::GUID, dwpropid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QuerySupported)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpropset), core::mem::transmute(dwpropid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QuerySupported)(windows_core::Interface::as_raw(self), guidpropset, dwpropid, &mut result__).map(|| result__) } } #[repr(C)] @@ -1790,7 +1790,7 @@ impl IKsTopology { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateNodeInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(nodeid), core::mem::transmute(flags), core::mem::transmute(desiredaccess), unkouter.param().abi(), core::mem::transmute(interfaceid), core::mem::transmute(interface)).ok() + (windows_core::Interface::vtable(self).CreateNodeInstance)(windows_core::Interface::as_raw(self), nodeid, flags, desiredaccess, unkouter.param().abi(), interfaceid, core::mem::transmute(interface)).ok() } } #[repr(C)] @@ -1823,7 +1823,7 @@ impl IKsTopologyInfo { } pub unsafe fn get_Category(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Category)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_Category)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn NumConnections(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1831,10 +1831,10 @@ impl IKsTopologyInfo { } pub unsafe fn get_ConnectionInfo(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ConnectionInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_ConnectionInfo)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn get_NodeName(&self, dwnodeid: u32, pwchnodename: Option, dwbufsize: u32, pdwnamelen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_NodeName)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnodeid), core::mem::transmute(pwchnodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufsize), core::mem::transmute(pdwnamelen)).ok() + (windows_core::Interface::vtable(self).get_NodeName)(windows_core::Interface::as_raw(self), dwnodeid, core::mem::transmute(pwchnodename.unwrap_or(core::mem::zeroed())), dwbufsize, core::mem::transmute(pdwnamelen)).ok() } pub unsafe fn NumNodes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1842,10 +1842,10 @@ impl IKsTopologyInfo { } pub unsafe fn get_NodeType(&self, dwnodeid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_NodeType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnodeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_NodeType)(windows_core::Interface::as_raw(self), dwnodeid, &mut result__).map(|| result__) } pub unsafe fn CreateNodeInstance(&self, dwnodeid: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateNodeInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnodeid), core::mem::transmute(iid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).CreateNodeInstance)(windows_core::Interface::as_raw(self), dwnodeid, iid, core::mem::transmute(ppvobject)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs index ceb6abdf87..fda958a39a 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs @@ -23,7 +23,7 @@ impl IWindowsMediaLibrarySharingDevice { (windows_core::Interface::vtable(self).Authorization)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthorization(&self, authorization: WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthorization)(windows_core::Interface::as_raw(self), core::mem::transmute(authorization)).ok() + (windows_core::Interface::vtable(self).SetAuthorization)(windows_core::Interface::as_raw(self), authorization).ok() } pub unsafe fn Properties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -112,7 +112,7 @@ windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDevicePropert impl IWindowsMediaLibrarySharingDeviceProperties { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -267,7 +267,7 @@ windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDevices, wind impl IWindowsMediaLibrarySharingDevices { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -359,7 +359,7 @@ impl IWindowsMediaLibrarySharingServices { (windows_core::Interface::vtable(self).userHomeMediaSharingState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetuserHomeMediaSharingState(&self, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetuserHomeMediaSharingState)(windows_core::Interface::as_raw(self), core::mem::transmute(sharingenabled)).ok() + (windows_core::Interface::vtable(self).SetuserHomeMediaSharingState)(windows_core::Interface::as_raw(self), sharingenabled).ok() } pub unsafe fn userHomeMediaSharingLibraryName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -373,21 +373,21 @@ impl IWindowsMediaLibrarySharingServices { (windows_core::Interface::vtable(self).computerHomeMediaSharingAllowedState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetcomputerHomeMediaSharingAllowedState(&self, sharingallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetcomputerHomeMediaSharingAllowedState)(windows_core::Interface::as_raw(self), core::mem::transmute(sharingallowed)).ok() + (windows_core::Interface::vtable(self).SetcomputerHomeMediaSharingAllowedState)(windows_core::Interface::as_raw(self), sharingallowed).ok() } pub unsafe fn userInternetMediaSharingState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).userInternetMediaSharingState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetuserInternetMediaSharingState(&self, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetuserInternetMediaSharingState)(windows_core::Interface::as_raw(self), core::mem::transmute(sharingenabled)).ok() + (windows_core::Interface::vtable(self).SetuserInternetMediaSharingState)(windows_core::Interface::as_raw(self), sharingenabled).ok() } pub unsafe fn computerInternetMediaSharingAllowedState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).computerInternetMediaSharingAllowedState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetcomputerInternetMediaSharingAllowedState(&self, sharingallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetcomputerInternetMediaSharingAllowedState)(windows_core::Interface::as_raw(self), core::mem::transmute(sharingallowed)).ok() + (windows_core::Interface::vtable(self).SetcomputerInternetMediaSharingAllowedState)(windows_core::Interface::as_raw(self), sharingallowed).ok() } pub unsafe fn internetMediaSharingSecurityGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -401,13 +401,13 @@ impl IWindowsMediaLibrarySharingServices { (windows_core::Interface::vtable(self).allowSharingToAllDevices)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetallowSharingToAllDevices(&self, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetallowSharingToAllDevices)(windows_core::Interface::as_raw(self), core::mem::transmute(sharingenabled)).ok() + (windows_core::Interface::vtable(self).SetallowSharingToAllDevices)(windows_core::Interface::as_raw(self), sharingenabled).ok() } pub unsafe fn setDefaultAuthorization(&self, macaddresses: &windows_core::BSTR, friendlyname: &windows_core::BSTR, authorization: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setDefaultAuthorization)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(macaddresses), core::mem::transmute_copy(friendlyname), core::mem::transmute(authorization)).ok() + (windows_core::Interface::vtable(self).setDefaultAuthorization)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(macaddresses), core::mem::transmute_copy(friendlyname), authorization).ok() } pub unsafe fn setAuthorizationState(&self, macaddress: &windows_core::BSTR, authorizationstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setAuthorizationState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(macaddress), core::mem::transmute(authorizationstate)).ok() + (windows_core::Interface::vtable(self).setAuthorizationState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(macaddress), authorizationstate).ok() } pub unsafe fn getAllDevices(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs index d7e6a42d40..e2a4e67918 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -24,7 +24,7 @@ where P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn DXVA2CreateVideoService(pdd : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppservice : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DXVA2CreateVideoService(pdd.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppservice)).ok() + DXVA2CreateVideoService(pdd.param().abi(), riid, core::mem::transmute(ppservice)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] @@ -34,7 +34,7 @@ where { windows_targets::link!("dxva2.dll" "system" fn DXVAHD_CreateDevice(pd3ddevice : * mut core::ffi::c_void, pcontentdesc : *const DXVAHD_CONTENT_DESC, usage : DXVAHD_DEVICE_USAGE, pplugin : PDXVAHDSW_Plugin, ppdevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DXVAHD_CreateDevice(pd3ddevice.param().abi(), core::mem::transmute(pcontentdesc), core::mem::transmute(usage), core::mem::transmute(pplugin.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DXVAHD_CreateDevice(pd3ddevice.param().abi(), pcontentdesc, usage, core::mem::transmute(pplugin.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFAddPeriodicCallback(callback: MFPERIODICCALLBACK, pcontext: P1, pdwkey: Option<*mut u32>) -> windows_core::Result<()> @@ -42,13 +42,13 @@ where P1: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFAddPeriodicCallback(callback : MFPERIODICCALLBACK, pcontext : * mut core::ffi::c_void, pdwkey : *mut u32) -> windows_core::HRESULT); - MFAddPeriodicCallback(core::mem::transmute(callback), pcontext.param().abi(), core::mem::transmute(pdwkey.unwrap_or(core::mem::zeroed()))).ok() + MFAddPeriodicCallback(callback, pcontext.param().abi(), core::mem::transmute(pdwkey.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MFAllocateSerialWorkQueue(dwworkqueue: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFAllocateSerialWorkQueue(dwworkqueue : u32, pdwworkqueue : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFAllocateSerialWorkQueue(core::mem::transmute(dwworkqueue), &mut result__).map(|| core::mem::transmute(result__)) + MFAllocateSerialWorkQueue(dwworkqueue, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFAllocateWorkQueue() -> windows_core::Result { @@ -60,12 +60,12 @@ pub unsafe fn MFAllocateWorkQueue() -> windows_core::Result { pub unsafe fn MFAllocateWorkQueueEx(workqueuetype: MFASYNC_WORKQUEUE_TYPE) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFAllocateWorkQueueEx(workqueuetype : MFASYNC_WORKQUEUE_TYPE, pdwworkqueue : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFAllocateWorkQueueEx(core::mem::transmute(workqueuetype), &mut result__).map(|| core::mem::transmute(result__)) + MFAllocateWorkQueueEx(workqueuetype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFAverageTimePerFrameToFrameRate(unaveragetimeperframe: u64, punnumerator: *mut u32, pundenominator: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFAverageTimePerFrameToFrameRate(unaveragetimeperframe : u64, punnumerator : *mut u32, pundenominator : *mut u32) -> windows_core::HRESULT); - MFAverageTimePerFrameToFrameRate(core::mem::transmute(unaveragetimeperframe), core::mem::transmute(punnumerator), core::mem::transmute(pundenominator)).ok() + MFAverageTimePerFrameToFrameRate(unaveragetimeperframe, core::mem::transmute(punnumerator), core::mem::transmute(pundenominator)).ok() } #[inline] pub unsafe fn MFBeginCreateFile(accessmode: MF_FILE_ACCESSMODE, openmode: MF_FILE_OPENMODE, fflags: MF_FILE_FLAGS, pwszfilepath: P3, pcallback: P4, pstate: P5) -> windows_core::Result @@ -76,7 +76,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFBeginCreateFile(accessmode : MF_FILE_ACCESSMODE, openmode : MF_FILE_OPENMODE, fflags : MF_FILE_FLAGS, pwszfilepath : windows_core::PCWSTR, pcallback : * mut core::ffi::c_void, pstate : * mut core::ffi::c_void, ppcancelcookie : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFBeginCreateFile(core::mem::transmute(accessmode), core::mem::transmute(openmode), core::mem::transmute(fflags), pwszfilepath.param().abi(), pcallback.param().abi(), pstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFBeginCreateFile(accessmode, openmode, fflags, pwszfilepath.param().abi(), pcallback.param().abi(), pstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFBeginRegisterWorkQueueWithMMCSS(dwworkqueueid: u32, wszclass: P1, dwtaskid: u32, pdonecallback: P3, pdonestate: P4) -> windows_core::Result<()> @@ -86,7 +86,7 @@ where P4: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFBeginRegisterWorkQueueWithMMCSS(dwworkqueueid : u32, wszclass : windows_core::PCWSTR, dwtaskid : u32, pdonecallback : * mut core::ffi::c_void, pdonestate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFBeginRegisterWorkQueueWithMMCSS(core::mem::transmute(dwworkqueueid), wszclass.param().abi(), core::mem::transmute(dwtaskid), pdonecallback.param().abi(), pdonestate.param().abi()).ok() + MFBeginRegisterWorkQueueWithMMCSS(dwworkqueueid, wszclass.param().abi(), dwtaskid, pdonecallback.param().abi(), pdonestate.param().abi()).ok() } #[inline] pub unsafe fn MFBeginRegisterWorkQueueWithMMCSSEx(dwworkqueueid: u32, wszclass: P1, dwtaskid: u32, lpriority: i32, pdonecallback: P4, pdonestate: P5) -> windows_core::Result<()> @@ -96,7 +96,7 @@ where P5: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFBeginRegisterWorkQueueWithMMCSSEx(dwworkqueueid : u32, wszclass : windows_core::PCWSTR, dwtaskid : u32, lpriority : i32, pdonecallback : * mut core::ffi::c_void, pdonestate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFBeginRegisterWorkQueueWithMMCSSEx(core::mem::transmute(dwworkqueueid), wszclass.param().abi(), core::mem::transmute(dwtaskid), core::mem::transmute(lpriority), pdonecallback.param().abi(), pdonestate.param().abi()).ok() + MFBeginRegisterWorkQueueWithMMCSSEx(dwworkqueueid, wszclass.param().abi(), dwtaskid, lpriority, pdonecallback.param().abi(), pdonestate.param().abi()).ok() } #[inline] pub unsafe fn MFBeginUnregisterWorkQueueWithMMCSS(dwworkqueueid: u32, pdonecallback: P1, pdonestate: P2) -> windows_core::Result<()> @@ -105,19 +105,19 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFBeginUnregisterWorkQueueWithMMCSS(dwworkqueueid : u32, pdonecallback : * mut core::ffi::c_void, pdonestate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFBeginUnregisterWorkQueueWithMMCSS(core::mem::transmute(dwworkqueueid), pdonecallback.param().abi(), pdonestate.param().abi()).ok() + MFBeginUnregisterWorkQueueWithMMCSS(dwworkqueueid, pdonecallback.param().abi(), pdonestate.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFCalculateBitmapImageSize(pbmih: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, cbbufsize: u32, pcbimagesize: *mut u32, pbknown: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFCalculateBitmapImageSize(pbmih : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, cbbufsize : u32, pcbimagesize : *mut u32, pbknown : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - MFCalculateBitmapImageSize(core::mem::transmute(pbmih), core::mem::transmute(cbbufsize), core::mem::transmute(pcbimagesize), core::mem::transmute(pbknown.unwrap_or(core::mem::zeroed()))).ok() + MFCalculateBitmapImageSize(pbmih, cbbufsize, core::mem::transmute(pcbimagesize), core::mem::transmute(pbknown.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MFCalculateImageSize(guidsubtype: *const windows_core::GUID, unwidth: u32, unheight: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCalculateImageSize(guidsubtype : *const windows_core::GUID, unwidth : u32, unheight : u32, pcbimagesize : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCalculateImageSize(core::mem::transmute(guidsubtype), core::mem::transmute(unwidth), core::mem::transmute(unheight), &mut result__).map(|| core::mem::transmute(result__)) + MFCalculateImageSize(guidsubtype, unwidth, unheight, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFCancelCreateFile(pcancelcookie: P0) -> windows_core::Result<()> @@ -130,7 +130,7 @@ where #[inline] pub unsafe fn MFCancelWorkItem(key: u64) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFCancelWorkItem(key : u64) -> windows_core::HRESULT); - MFCancelWorkItem(core::mem::transmute(key)).ok() + MFCancelWorkItem(key).ok() } #[inline] pub unsafe fn MFCombineSamples(psample: P0, psampletoadd: P1, dwmaxmergeddurationinms: u32) -> windows_core::Result @@ -140,7 +140,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCombineSamples(psample : * mut core::ffi::c_void, psampletoadd : * mut core::ffi::c_void, dwmaxmergeddurationinms : u32, pmerged : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCombineSamples(psample.param().abi(), psampletoadd.param().abi(), core::mem::transmute(dwmaxmergeddurationinms), &mut result__).map(|| core::mem::transmute(result__)) + MFCombineSamples(psample.param().abi(), psampletoadd.param().abi(), dwmaxmergeddurationinms, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFCompareFullToPartialMediaType(pmftypefull: P0, pmftypepartial: P1) -> super::super::Foundation::BOOL @@ -154,33 +154,33 @@ where #[inline] pub unsafe fn MFConvertColorInfoFromDXVA(ptoformat: *mut MFVIDEOFORMAT, dwfromdxva: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFConvertColorInfoFromDXVA(ptoformat : *mut MFVIDEOFORMAT, dwfromdxva : u32) -> windows_core::HRESULT); - MFConvertColorInfoFromDXVA(core::mem::transmute(ptoformat), core::mem::transmute(dwfromdxva)).ok() + MFConvertColorInfoFromDXVA(core::mem::transmute(ptoformat), dwfromdxva).ok() } #[inline] pub unsafe fn MFConvertColorInfoToDXVA(pdwtodxva: *mut u32, pfromformat: *const MFVIDEOFORMAT) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFConvertColorInfoToDXVA(pdwtodxva : *mut u32, pfromformat : *const MFVIDEOFORMAT) -> windows_core::HRESULT); - MFConvertColorInfoToDXVA(core::mem::transmute(pdwtodxva), core::mem::transmute(pfromformat)).ok() + MFConvertColorInfoToDXVA(core::mem::transmute(pdwtodxva), pfromformat).ok() } #[inline] pub unsafe fn MFConvertFromFP16Array(pdest: *mut f32, psrc: *const u16, dwcount: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFConvertFromFP16Array(pdest : *mut f32, psrc : *const u16, dwcount : u32) -> windows_core::HRESULT); - MFConvertFromFP16Array(core::mem::transmute(pdest), core::mem::transmute(psrc), core::mem::transmute(dwcount)).ok() + MFConvertFromFP16Array(core::mem::transmute(pdest), psrc, dwcount).ok() } #[inline] pub unsafe fn MFConvertToFP16Array(pdest: *mut u16, psrc: *const f32, dwcount: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFConvertToFP16Array(pdest : *mut u16, psrc : *const f32, dwcount : u32) -> windows_core::HRESULT); - MFConvertToFP16Array(core::mem::transmute(pdest), core::mem::transmute(psrc), core::mem::transmute(dwcount)).ok() + MFConvertToFP16Array(core::mem::transmute(pdest), psrc, dwcount).ok() } #[inline] pub unsafe fn MFCopyImage(pdest: *mut u8, ldeststride: i32, psrc: *const u8, lsrcstride: i32, dwwidthinbytes: u32, dwlines: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFCopyImage(pdest : *mut u8, ldeststride : i32, psrc : *const u8, lsrcstride : i32, dwwidthinbytes : u32, dwlines : u32) -> windows_core::HRESULT); - MFCopyImage(core::mem::transmute(pdest), core::mem::transmute(ldeststride), core::mem::transmute(psrc), core::mem::transmute(lsrcstride), core::mem::transmute(dwwidthinbytes), core::mem::transmute(dwlines)).ok() + MFCopyImage(core::mem::transmute(pdest), ldeststride, psrc, lsrcstride, dwwidthinbytes, dwlines).ok() } #[inline] pub unsafe fn MFCreate2DMediaBuffer(dwwidth: u32, dwheight: u32, dwfourcc: u32, fbottomup: bool) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreate2DMediaBuffer(dwwidth : u32, dwheight : u32, dwfourcc : u32, fbottomup : super::super::Foundation:: BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreate2DMediaBuffer(core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwfourcc), fbottomup.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreate2DMediaBuffer(dwwidth, dwheight, dwfourcc, fbottomup.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreate3GPMediaSink(pibytestream: P0, pvideomediatype: P1, paudiomediatype: P2) -> windows_core::Result @@ -240,7 +240,7 @@ where { windows_targets::link!("mf.dll" "system" fn MFCreateASFIndexerByteStream(picontentbytestream : * mut core::ffi::c_void, cbindexstartoffset : u64, piindexbytestream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateASFIndexerByteStream(picontentbytestream.param().abi(), core::mem::transmute(cbindexstartoffset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFIndexerByteStream(picontentbytestream.param().abi(), cbindexstartoffset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateASFMediaSink(pibytestream: P0) -> windows_core::Result @@ -340,7 +340,7 @@ where pub unsafe fn MFCreateAlignedMemoryBuffer(cbmaxlength: u32, cbaligment: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateAlignedMemoryBuffer(cbmaxlength : u32, cbaligment : u32, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateAlignedMemoryBuffer(core::mem::transmute(cbmaxlength), core::mem::transmute(cbaligment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAlignedMemoryBuffer(cbmaxlength, cbaligment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAsyncResult(punkobject: P0, pcallback: P1, punkstate: P2) -> windows_core::Result @@ -356,14 +356,14 @@ where #[inline] pub unsafe fn MFCreateAttributes(ppmfattributes: *mut Option, cinitialsize: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFCreateAttributes(ppmfattributes : *mut * mut core::ffi::c_void, cinitialsize : u32) -> windows_core::HRESULT); - MFCreateAttributes(core::mem::transmute(ppmfattributes), core::mem::transmute(cinitialsize)).ok() + MFCreateAttributes(core::mem::transmute(ppmfattributes), cinitialsize).ok() } #[cfg(feature = "Win32_Media_Audio")] #[inline] pub unsafe fn MFCreateAudioMediaType(paudioformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateAudioMediaType(paudioformat : *const super::Audio:: WAVEFORMATEX, ppiaudiomediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateAudioMediaType(core::mem::transmute(paudioformat), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAudioMediaType(paudioformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAudioRenderer(paudioattributes: P0) -> windows_core::Result @@ -414,13 +414,13 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateContentDecryptorContext(guidmediaprotectionsystemid : *const windows_core::GUID, pd3dmanager : * mut core::ffi::c_void, pcontentprotectiondevice : * mut core::ffi::c_void, ppcontentdecryptorcontext : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateContentDecryptorContext(core::mem::transmute(guidmediaprotectionsystemid), pd3dmanager.param().abi(), pcontentprotectiondevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateContentDecryptorContext(guidmediaprotectionsystemid, pd3dmanager.param().abi(), pcontentprotectiondevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateContentProtectionDevice(protectionsystemid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateContentProtectionDevice(protectionsystemid : *const windows_core::GUID, contentprotectiondevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateContentProtectionDevice(core::mem::transmute(protectionsystemid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateContentProtectionDevice(protectionsystemid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateCredentialCache() -> windows_core::Result { @@ -435,7 +435,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateD3D12SynchronizationObject(pdevice : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvsyncobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateD3D12SynchronizationObject(pdevice.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvsyncobject)).ok() + MFCreateD3D12SynchronizationObject(pdevice.param().abi(), riid, core::mem::transmute(ppvsyncobject)).ok() } #[inline] pub unsafe fn MFCreateDXGIDeviceManager(resettoken: *mut u32, ppdevicemanager: *mut Option) -> windows_core::Result<()> { @@ -449,7 +449,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateDXGISurfaceBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, usubresourceindex : u32, fbottomupwhenlinear : super::super::Foundation:: BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateDXGISurfaceBuffer(core::mem::transmute(riid), punksurface.param().abi(), core::mem::transmute(usubresourceindex), fbottomupwhenlinear.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateDXGISurfaceBuffer(riid, punksurface.param().abi(), usubresourceindex, fbottomupwhenlinear.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateDXSurfaceBuffer(riid: *const windows_core::GUID, punksurface: P1, fbottomupwhenlinear: bool) -> windows_core::Result @@ -458,7 +458,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateDXSurfaceBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, fbottomupwhenlinear : super::super::Foundation:: BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateDXSurfaceBuffer(core::mem::transmute(riid), punksurface.param().abi(), fbottomupwhenlinear.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateDXSurfaceBuffer(riid, punksurface.param().abi(), fbottomupwhenlinear.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateDeviceSource(pattributes: P0) -> windows_core::Result @@ -500,7 +500,7 @@ pub unsafe fn MFCreateEventQueue() -> windows_core::Result { pub unsafe fn MFCreateExtendedCameraIntrinsicModel(distortionmodeltype: MFCameraIntrinsic_DistortionModelType) -> windows_core::Result { windows_targets::link!("mfcore.dll" "system" fn MFCreateExtendedCameraIntrinsicModel(distortionmodeltype : MFCameraIntrinsic_DistortionModelType, ppextendedcameraintrinsicmodel : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateExtendedCameraIntrinsicModel(core::mem::transmute(distortionmodeltype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateExtendedCameraIntrinsicModel(distortionmodeltype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateExtendedCameraIntrinsics() -> windows_core::Result { @@ -526,7 +526,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateFile(accessmode : MF_FILE_ACCESSMODE, openmode : MF_FILE_OPENMODE, fflags : MF_FILE_FLAGS, pwszfileurl : windows_core::PCWSTR, ppibytestream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateFile(core::mem::transmute(accessmode), core::mem::transmute(openmode), core::mem::transmute(fflags), pwszfileurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateFile(accessmode, openmode, fflags, pwszfileurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_DxMediaObjects")] #[inline] @@ -537,7 +537,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateLegacyMediaBufferOnMFMediaBuffer(psample : * mut core::ffi::c_void, pmfmediabuffer : * mut core::ffi::c_void, cboffset : u32, ppmediabuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateLegacyMediaBufferOnMFMediaBuffer(psample.param().abi(), pmfmediabuffer.param().abi(), core::mem::transmute(cboffset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateLegacyMediaBufferOnMFMediaBuffer(psample.param().abi(), pmfmediabuffer.param().abi(), cboffset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -602,7 +602,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateMediaBufferFromMediaType(pmediatype : * mut core::ffi::c_void, llduration : i64, dwminlength : u32, dwminalignment : u32, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateMediaBufferFromMediaType(pmediatype.param().abi(), core::mem::transmute(llduration), core::mem::transmute(dwminlength), core::mem::transmute(dwminalignment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMediaBufferFromMediaType(pmediatype.param().abi(), llduration, dwminlength, dwminalignment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMediaBufferWrapper(pbuffer: P0, cboffset: u32, dwlength: u32) -> windows_core::Result @@ -611,14 +611,14 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateMediaBufferWrapper(pbuffer : * mut core::ffi::c_void, cboffset : u32, dwlength : u32, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateMediaBufferWrapper(pbuffer.param().abi(), core::mem::transmute(cboffset), core::mem::transmute(dwlength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMediaBufferWrapper(pbuffer.param().abi(), cboffset, dwlength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn MFCreateMediaEvent(met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateMediaEvent(met : u32, guidextendedtype : *const windows_core::GUID, hrstatus : windows_core::HRESULT, pvvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT, ppevent : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateMediaEvent(core::mem::transmute(met), core::mem::transmute(guidextendedtype), core::mem::transmute(hrstatus), core::mem::transmute(pvvalue.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMediaEvent(met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMediaExtensionActivate(szactivatableclassid: P0, pconfiguration: P1, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -627,7 +627,7 @@ where P1: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMediaExtensionActivate(szactivatableclassid : windows_core::PCWSTR, pconfiguration : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateMediaExtensionActivate(szactivatableclassid.param().abi(), pconfiguration.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + MFCreateMediaExtensionActivate(szactivatableclassid.param().abi(), pconfiguration.param().abi(), riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn MFCreateMediaSession(pconfiguration: P0) -> windows_core::Result @@ -657,13 +657,13 @@ where pub unsafe fn MFCreateMediaTypeFromRepresentation(guidrepresentation: windows_core::GUID, pvrepresentation: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateMediaTypeFromRepresentation(guidrepresentation : windows_core::GUID, pvrepresentation : *const core::ffi::c_void, ppimediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateMediaTypeFromRepresentation(core::mem::transmute(guidrepresentation), core::mem::transmute(pvrepresentation), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMediaTypeFromRepresentation(core::mem::transmute(guidrepresentation), pvrepresentation, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMemoryBuffer(cbmaxlength: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateMemoryBuffer(cbmaxlength : u32, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateMemoryBuffer(core::mem::transmute(cbmaxlength), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMemoryBuffer(cbmaxlength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMuxSink(guidoutputsubtype: windows_core::GUID, poutputattributes: P1, poutputbytestream: P2) -> windows_core::Result @@ -705,7 +705,7 @@ where #[inline] pub unsafe fn MFCreateNetSchemePlugin(riid: *const windows_core::GUID, ppvhandler: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("mf.dll" "system" fn MFCreateNetSchemePlugin(riid : *const windows_core::GUID, ppvhandler : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateNetSchemePlugin(core::mem::transmute(riid), core::mem::transmute(ppvhandler)).ok() + MFCreateNetSchemePlugin(riid, core::mem::transmute(ppvhandler)).ok() } #[inline] pub unsafe fn MFCreatePMPMediaSession(dwcreationflags: u32, pconfiguration: P1, ppmediasession: *mut Option, ppenableractivate: Option<*mut Option>) -> windows_core::Result<()> @@ -713,13 +713,13 @@ where P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreatePMPMediaSession(dwcreationflags : u32, pconfiguration : * mut core::ffi::c_void, ppmediasession : *mut * mut core::ffi::c_void, ppenableractivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreatePMPMediaSession(core::mem::transmute(dwcreationflags), pconfiguration.param().abi(), core::mem::transmute(ppmediasession), core::mem::transmute(ppenableractivate.unwrap_or(core::mem::zeroed()))).ok() + MFCreatePMPMediaSession(dwcreationflags, pconfiguration.param().abi(), core::mem::transmute(ppmediasession), core::mem::transmute(ppenableractivate.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MFCreatePMPServer(dwcreationflags: u32) -> windows_core::Result { windows_targets::link!("mf.dll" "system" fn MFCreatePMPServer(dwcreationflags : u32, pppmpserver : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreatePMPServer(core::mem::transmute(dwcreationflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreatePMPServer(dwcreationflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreatePresentationClock() -> windows_core::Result { @@ -748,7 +748,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreatePropertiesFromMediaType(pmediatype : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreatePropertiesFromMediaType(pmediatype.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + MFCreatePropertiesFromMediaType(pmediatype.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn MFCreateProtectedEnvironmentAccess() -> windows_core::Result { @@ -830,7 +830,7 @@ where { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateSensorProfile(profiletype : *const windows_core::GUID, profileindex : u32, constraints : windows_core::PCWSTR, ppprofile : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateSensorProfile(core::mem::transmute(profiletype), core::mem::transmute(profileindex), constraints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSensorProfile(profiletype, profileindex, constraints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSensorProfileCollection() -> windows_core::Result { @@ -846,14 +846,14 @@ where { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateSensorStream(streamid : u32, pattributes : * mut core::ffi::c_void, pmediatypecollection : * mut core::ffi::c_void, ppstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateSensorStream(core::mem::transmute(streamid), pattributes.param().abi(), pmediatypecollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSensorStream(streamid, pattributes.param().abi(), pmediatypecollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn MFCreateSequencerSegmentOffset(dwid: u32, hnsoffset: i64) -> windows_core::Result { windows_targets::link!("mf.dll" "system" fn MFCreateSequencerSegmentOffset(dwid : u32, hnsoffset : i64, pvarsegmentoffset : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateSequencerSegmentOffset(core::mem::transmute(dwid), core::mem::transmute(hnsoffset), &mut result__).map(|| core::mem::transmute(result__)) + MFCreateSequencerSegmentOffset(dwid, hnsoffset, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFCreateSequencerSource(preserved: P0) -> windows_core::Result @@ -937,7 +937,7 @@ pub unsafe fn MFCreateStandardQualityManager() -> windows_core::Result]) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateStreamDescriptor(dwstreamidentifier : u32, cmediatypes : u32, apmediatypes : *const * mut core::ffi::c_void, ppdescriptor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateStreamDescriptor(core::mem::transmute(dwstreamidentifier), apmediatypes.len().try_into().unwrap(), core::mem::transmute(apmediatypes.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateStreamDescriptor(dwstreamidentifier, apmediatypes.len().try_into().unwrap(), core::mem::transmute(apmediatypes.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -955,7 +955,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateStreamOnMFByteStreamEx(pbytestream : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateStreamOnMFByteStreamEx(pbytestream.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + MFCreateStreamOnMFByteStreamEx(pbytestream.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn MFCreateSystemTimeSource() -> windows_core::Result { @@ -967,7 +967,7 @@ pub unsafe fn MFCreateSystemTimeSource() -> windows_core::Result windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateTempFile(accessmode : MF_FILE_ACCESSMODE, openmode : MF_FILE_OPENMODE, fflags : MF_FILE_FLAGS, ppibytestream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateTempFile(core::mem::transmute(accessmode), core::mem::transmute(openmode), core::mem::transmute(fflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateTempFile(accessmode, openmode, fflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateTopoLoader() -> windows_core::Result { @@ -985,7 +985,7 @@ pub unsafe fn MFCreateTopology() -> windows_core::Result { pub unsafe fn MFCreateTopologyNode(nodetype: MF_TOPOLOGY_TYPE) -> windows_core::Result { windows_targets::link!("mf.dll" "system" fn MFCreateTopologyNode(nodetype : MF_TOPOLOGY_TYPE, ppnode : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateTopologyNode(core::mem::transmute(nodetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateTopologyNode(nodetype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateTrackedSample() -> windows_core::Result { @@ -1037,27 +1037,27 @@ pub unsafe fn MFCreateTransformActivate() -> windows_core::Result { pub unsafe fn MFCreateVideoMediaType(pvideoformat: *const MFVIDEOFORMAT) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateVideoMediaType(pvideoformat : *const MFVIDEOFORMAT, ppivideomediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateVideoMediaType(core::mem::transmute(pvideoformat), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoMediaType(pvideoformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFCreateVideoMediaTypeFromBitMapInfoHeader(pbmihbitmapinfoheader: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, dwpixelaspectratiox: u32, dwpixelaspectratioy: u32, interlacemode: MFVideoInterlaceMode, videoflags: u64, qwframespersecondnumerator: u64, qwframesperseconddenominator: u64, dwmaxbitrate: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateVideoMediaTypeFromBitMapInfoHeader(pbmihbitmapinfoheader : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, dwpixelaspectratiox : u32, dwpixelaspectratioy : u32, interlacemode : MFVideoInterlaceMode, videoflags : u64, qwframespersecondnumerator : u64, qwframesperseconddenominator : u64, dwmaxbitrate : u32, ppivideomediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateVideoMediaTypeFromBitMapInfoHeader(core::mem::transmute(pbmihbitmapinfoheader), core::mem::transmute(dwpixelaspectratiox), core::mem::transmute(dwpixelaspectratioy), core::mem::transmute(interlacemode), core::mem::transmute(videoflags), core::mem::transmute(qwframespersecondnumerator), core::mem::transmute(qwframesperseconddenominator), core::mem::transmute(dwmaxbitrate), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoMediaTypeFromBitMapInfoHeader(pbmihbitmapinfoheader, dwpixelaspectratiox, dwpixelaspectratioy, interlacemode, videoflags, qwframespersecondnumerator, qwframesperseconddenominator, dwmaxbitrate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFCreateVideoMediaTypeFromBitMapInfoHeaderEx(pbmihbitmapinfoheader: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, cbbitmapinfoheader: u32, dwpixelaspectratiox: u32, dwpixelaspectratioy: u32, interlacemode: MFVideoInterlaceMode, videoflags: u64, dwframespersecondnumerator: u32, dwframesperseconddenominator: u32, dwmaxbitrate: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateVideoMediaTypeFromBitMapInfoHeaderEx(pbmihbitmapinfoheader : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, cbbitmapinfoheader : u32, dwpixelaspectratiox : u32, dwpixelaspectratioy : u32, interlacemode : MFVideoInterlaceMode, videoflags : u64, dwframespersecondnumerator : u32, dwframesperseconddenominator : u32, dwmaxbitrate : u32, ppivideomediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateVideoMediaTypeFromBitMapInfoHeaderEx(core::mem::transmute(pbmihbitmapinfoheader), core::mem::transmute(cbbitmapinfoheader), core::mem::transmute(dwpixelaspectratiox), core::mem::transmute(dwpixelaspectratioy), core::mem::transmute(interlacemode), core::mem::transmute(videoflags), core::mem::transmute(dwframespersecondnumerator), core::mem::transmute(dwframesperseconddenominator), core::mem::transmute(dwmaxbitrate), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoMediaTypeFromBitMapInfoHeaderEx(pbmihbitmapinfoheader, cbbitmapinfoheader, dwpixelaspectratiox, dwpixelaspectratioy, interlacemode, videoflags, dwframespersecondnumerator, dwframesperseconddenominator, dwmaxbitrate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateVideoMediaTypeFromSubtype(pamsubtype: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFCreateVideoMediaTypeFromSubtype(pamsubtype : *const windows_core::GUID, ppivideomediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateVideoMediaTypeFromSubtype(core::mem::transmute(pamsubtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoMediaTypeFromSubtype(pamsubtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateVideoMixer(powner: P0, riiddevice: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1065,7 +1065,7 @@ where P0: windows_core::Param, { windows_targets::link!("evr.dll" "system" fn MFCreateVideoMixer(powner : * mut core::ffi::c_void, riiddevice : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateVideoMixer(powner.param().abi(), core::mem::transmute(riiddevice), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + MFCreateVideoMixer(powner.param().abi(), riiddevice, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn MFCreateVideoMixerAndPresenter(pmixerowner: P0, ppresenterowner: P1, riidmixer: *const windows_core::GUID, ppvvideomixer: *mut *mut core::ffi::c_void, riidpresenter: *const windows_core::GUID, ppvvideopresenter: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1074,7 +1074,7 @@ where P1: windows_core::Param, { windows_targets::link!("evr.dll" "system" fn MFCreateVideoMixerAndPresenter(pmixerowner : * mut core::ffi::c_void, ppresenterowner : * mut core::ffi::c_void, riidmixer : *const windows_core::GUID, ppvvideomixer : *mut *mut core::ffi::c_void, riidpresenter : *const windows_core::GUID, ppvvideopresenter : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateVideoMixerAndPresenter(pmixerowner.param().abi(), ppresenterowner.param().abi(), core::mem::transmute(riidmixer), core::mem::transmute(ppvvideomixer), core::mem::transmute(riidpresenter), core::mem::transmute(ppvvideopresenter)).ok() + MFCreateVideoMixerAndPresenter(pmixerowner.param().abi(), ppresenterowner.param().abi(), riidmixer, core::mem::transmute(ppvvideomixer), riidpresenter, core::mem::transmute(ppvvideopresenter)).ok() } #[inline] pub unsafe fn MFCreateVideoPresenter(powner: P0, riiddevice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvideopresenter: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1082,28 +1082,28 @@ where P0: windows_core::Param, { windows_targets::link!("evr.dll" "system" fn MFCreateVideoPresenter(powner : * mut core::ffi::c_void, riiddevice : *const windows_core::GUID, riid : *const windows_core::GUID, ppvideopresenter : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateVideoPresenter(powner.param().abi(), core::mem::transmute(riiddevice), core::mem::transmute(riid), core::mem::transmute(ppvideopresenter)).ok() + MFCreateVideoPresenter(powner.param().abi(), riiddevice, riid, core::mem::transmute(ppvideopresenter)).ok() } #[inline] pub unsafe fn MFCreateVideoRenderer(riidrenderer: *const windows_core::GUID, ppvideorenderer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("mf.dll" "system" fn MFCreateVideoRenderer(riidrenderer : *const windows_core::GUID, ppvideorenderer : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateVideoRenderer(core::mem::transmute(riidrenderer), core::mem::transmute(ppvideorenderer)).ok() + MFCreateVideoRenderer(riidrenderer, core::mem::transmute(ppvideorenderer)).ok() } #[inline] pub unsafe fn MFCreateVideoRendererActivate(hwndvideo: super::super::Foundation::HWND) -> windows_core::Result { windows_targets::link!("mf.dll" "system" fn MFCreateVideoRendererActivate(hwndvideo : super::super::Foundation:: HWND, ppactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateVideoRendererActivate(core::mem::transmute(hwndvideo), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoRendererActivate(hwndvideo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateVideoSampleAllocator(riid: *const windows_core::GUID, ppsampleallocator: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("evr.dll" "system" fn MFCreateVideoSampleAllocator(riid : *const windows_core::GUID, ppsampleallocator : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateVideoSampleAllocator(core::mem::transmute(riid), core::mem::transmute(ppsampleallocator)).ok() + MFCreateVideoSampleAllocator(riid, core::mem::transmute(ppsampleallocator)).ok() } #[inline] pub unsafe fn MFCreateVideoSampleAllocatorEx(riid: *const windows_core::GUID, ppsampleallocator: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFCreateVideoSampleAllocatorEx(riid : *const windows_core::GUID, ppsampleallocator : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MFCreateVideoSampleAllocatorEx(core::mem::transmute(riid), core::mem::transmute(ppsampleallocator)).ok() + MFCreateVideoSampleAllocatorEx(riid, core::mem::transmute(ppsampleallocator)).ok() } #[inline] pub unsafe fn MFCreateVideoSampleFromSurface(punksurface: P0) -> windows_core::Result @@ -1122,7 +1122,7 @@ where { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateVirtualCamera(r#type : MFVirtualCameraType, lifetime : MFVirtualCameraLifetime, access : MFVirtualCameraAccess, friendlyname : windows_core::PCWSTR, sourceid : windows_core::PCWSTR, categories : *const windows_core::GUID, categorycount : u32, virtualcamera : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateVirtualCamera(core::mem::transmute(r#type), core::mem::transmute(lifetime), core::mem::transmute(access), friendlyname.param().abi(), sourceid.param().abi(), core::mem::transmute(categories.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), categories.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVirtualCamera(r#type, lifetime, access, friendlyname.param().abi(), sourceid.param().abi(), core::mem::transmute(categories.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), categories.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateWAVEMediaSink(ptargetbytestream: P0, paudiomediatype: P1) -> windows_core::Result @@ -1141,7 +1141,7 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFCreateWICBitmapBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFCreateWICBitmapBuffer(core::mem::transmute(riid), punksurface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateWICBitmapBuffer(riid, punksurface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[inline] @@ -1172,7 +1172,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateWaveFormatExFromMFMediaType(pmftype : * mut core::ffi::c_void, ppwf : *mut *mut super::Audio:: WAVEFORMATEX, pcbsize : *mut u32, flags : u32) -> windows_core::HRESULT); - MFCreateWaveFormatExFromMFMediaType(pmftype.param().abi(), core::mem::transmute(ppwf), core::mem::transmute(pcbsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + MFCreateWaveFormatExFromMFMediaType(pmftype.param().abi(), core::mem::transmute(ppwf), core::mem::transmute(pcbsize.unwrap_or(core::mem::zeroed())), flags).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1182,7 +1182,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFDeserializeAttributesFromStream(pattr : * mut core::ffi::c_void, dwoptions : u32, pstm : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFDeserializeAttributesFromStream(pattr.param().abi(), core::mem::transmute(dwoptions), pstm.param().abi()).ok() + MFDeserializeAttributesFromStream(pattr.param().abi(), dwoptions, pstm.param().abi()).ok() } #[inline] pub unsafe fn MFDeserializePresentationDescriptor(pbdata: &[u8]) -> windows_core::Result { @@ -1228,7 +1228,7 @@ where pub unsafe fn MFFrameRateToAverageTimePerFrame(unnumerator: u32, undenominator: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFFrameRateToAverageTimePerFrame(unnumerator : u32, undenominator : u32, punaveragetimeperframe : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFFrameRateToAverageTimePerFrame(core::mem::transmute(unnumerator), core::mem::transmute(undenominator), &mut result__).map(|| core::mem::transmute(result__)) + MFFrameRateToAverageTimePerFrame(unnumerator, undenominator, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFGetAttributesAsBlob(pattributes: P0, pbuf: &mut [u8]) -> windows_core::Result<()> @@ -1251,7 +1251,7 @@ where pub unsafe fn MFGetContentProtectionSystemCLSID(guidprotectionsystemid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFGetContentProtectionSystemCLSID(guidprotectionsystemid : *const windows_core::GUID, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFGetContentProtectionSystemCLSID(core::mem::transmute(guidprotectionsystemid), &mut result__).map(|| core::mem::transmute(result__)) + MFGetContentProtectionSystemCLSID(guidprotectionsystemid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFGetLocalId(verifier: &[u8]) -> windows_core::Result { @@ -1272,7 +1272,7 @@ where pub unsafe fn MFGetPlaneSize(format: u32, dwwidth: u32, dwheight: u32) -> windows_core::Result { windows_targets::link!("evr.dll" "system" fn MFGetPlaneSize(format : u32, dwwidth : u32, dwheight : u32, pdwplanesize : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFGetPlaneSize(core::mem::transmute(format), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), &mut result__).map(|| core::mem::transmute(result__)) + MFGetPlaneSize(format, dwwidth, dwheight, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFGetPluginControl() -> windows_core::Result { @@ -1286,13 +1286,13 @@ where P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFGetService(punkobject : * 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); - MFGetService(punkobject.param().abi(), core::mem::transmute(guidservice), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + MFGetService(punkobject.param().abi(), guidservice, riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn MFGetStrideForBitmapInfoHeader(format: u32, dwwidth: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFGetStrideForBitmapInfoHeader(format : u32, dwwidth : u32, pstride : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFGetStrideForBitmapInfoHeader(core::mem::transmute(format), core::mem::transmute(dwwidth), &mut result__).map(|| core::mem::transmute(result__)) + MFGetStrideForBitmapInfoHeader(format, dwwidth, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -1332,29 +1332,29 @@ where { windows_targets::link!("mf.dll" "system" fn MFGetTopoNodeCurrentType(pnode : * mut core::ffi::c_void, dwstreamindex : u32, foutput : super::super::Foundation:: BOOL, pptype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFGetTopoNodeCurrentType(pnode.param().abi(), core::mem::transmute(dwstreamindex), foutput.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFGetTopoNodeCurrentType(pnode.param().abi(), dwstreamindex, foutput.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFGetUncompressedVideoFormat(pvideoformat: *const MFVIDEOFORMAT) -> u32 { windows_targets::link!("mfplat.dll" "system" fn MFGetUncompressedVideoFormat(pvideoformat : *const MFVIDEOFORMAT) -> u32); - MFGetUncompressedVideoFormat(core::mem::transmute(pvideoformat)) + MFGetUncompressedVideoFormat(pvideoformat) } #[inline] pub unsafe fn MFGetWorkQueueMMCSSClass(dwworkqueueid: u32, pwszclass: Option, pcchclass: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFGetWorkQueueMMCSSClass(dwworkqueueid : u32, pwszclass : windows_core::PWSTR, pcchclass : *mut u32) -> windows_core::HRESULT); - MFGetWorkQueueMMCSSClass(core::mem::transmute(dwworkqueueid), core::mem::transmute(pwszclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchclass)).ok() + MFGetWorkQueueMMCSSClass(dwworkqueueid, core::mem::transmute(pwszclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchclass)).ok() } #[inline] pub unsafe fn MFGetWorkQueueMMCSSPriority(dwworkqueueid: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFGetWorkQueueMMCSSPriority(dwworkqueueid : u32, lpriority : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFGetWorkQueueMMCSSPriority(core::mem::transmute(dwworkqueueid), &mut result__).map(|| core::mem::transmute(result__)) + MFGetWorkQueueMMCSSPriority(dwworkqueueid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFGetWorkQueueMMCSSTaskId(dwworkqueueid: u32) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFGetWorkQueueMMCSSTaskId(dwworkqueueid : u32, pdwtaskid : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFGetWorkQueueMMCSSTaskId(core::mem::transmute(dwworkqueueid), &mut result__).map(|| core::mem::transmute(result__)) + MFGetWorkQueueMMCSSTaskId(dwworkqueueid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFHeapAlloc(nsize: usize, dwflags: u32, pszfile: P2, line: i32, eat: EAllocationType) -> *mut core::ffi::c_void @@ -1362,7 +1362,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFHeapAlloc(nsize : usize, dwflags : u32, pszfile : windows_core::PCSTR, line : i32, eat : EAllocationType) -> *mut core::ffi::c_void); - MFHeapAlloc(core::mem::transmute(nsize), core::mem::transmute(dwflags), pszfile.param().abi(), core::mem::transmute(line), core::mem::transmute(eat)) + MFHeapAlloc(nsize, dwflags, pszfile.param().abi(), line, eat) } #[inline] pub unsafe fn MFHeapFree(pv: *mut core::ffi::c_void) { @@ -1399,7 +1399,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromMFVideoFormat(pmftype : * mut core::ffi::c_void, pmfvf : *const MFVIDEOFORMAT, cbbufsize : u32) -> windows_core::HRESULT); - MFInitMediaTypeFromMFVideoFormat(pmftype.param().abi(), core::mem::transmute(pmfvf), core::mem::transmute(cbbufsize)).ok() + MFInitMediaTypeFromMFVideoFormat(pmftype.param().abi(), pmfvf, cbbufsize).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1408,7 +1408,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromMPEG1VideoInfo(pmftype : * mut core::ffi::c_void, pmp1vi : *const MPEG1VIDEOINFO, cbbufsize : u32, psubtype : *const windows_core::GUID) -> windows_core::HRESULT); - MFInitMediaTypeFromMPEG1VideoInfo(pmftype.param().abi(), core::mem::transmute(pmp1vi), core::mem::transmute(cbbufsize), core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() + MFInitMediaTypeFromMPEG1VideoInfo(pmftype.param().abi(), pmp1vi, cbbufsize, core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1417,7 +1417,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromMPEG2VideoInfo(pmftype : * mut core::ffi::c_void, pmp2vi : *const MPEG2VIDEOINFO, cbbufsize : u32, psubtype : *const windows_core::GUID) -> windows_core::HRESULT); - MFInitMediaTypeFromMPEG2VideoInfo(pmftype.param().abi(), core::mem::transmute(pmp2vi), core::mem::transmute(cbbufsize), core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() + MFInitMediaTypeFromMPEG2VideoInfo(pmftype.param().abi(), pmp2vi, cbbufsize, core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1426,7 +1426,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromVideoInfoHeader(pmftype : * mut core::ffi::c_void, pvih : *const VIDEOINFOHEADER, cbbufsize : u32, psubtype : *const windows_core::GUID) -> windows_core::HRESULT); - MFInitMediaTypeFromVideoInfoHeader(pmftype.param().abi(), core::mem::transmute(pvih), core::mem::transmute(cbbufsize), core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() + MFInitMediaTypeFromVideoInfoHeader(pmftype.param().abi(), pvih, cbbufsize, core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1435,7 +1435,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromVideoInfoHeader2(pmftype : * mut core::ffi::c_void, pvih2 : *const VIDEOINFOHEADER2, cbbufsize : u32, psubtype : *const windows_core::GUID) -> windows_core::HRESULT); - MFInitMediaTypeFromVideoInfoHeader2(pmftype.param().abi(), core::mem::transmute(pvih2), core::mem::transmute(cbbufsize), core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() + MFInitMediaTypeFromVideoInfoHeader2(pmftype.param().abi(), pvih2, cbbufsize, core::mem::transmute(psubtype.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Media_Audio")] #[inline] @@ -1444,17 +1444,17 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromWaveFormatEx(pmftype : * mut core::ffi::c_void, pwaveformat : *const super::Audio:: WAVEFORMATEX, cbbufsize : u32) -> windows_core::HRESULT); - MFInitMediaTypeFromWaveFormatEx(pmftype.param().abi(), core::mem::transmute(pwaveformat), core::mem::transmute(cbbufsize)).ok() + MFInitMediaTypeFromWaveFormatEx(pmftype.param().abi(), pwaveformat, cbbufsize).ok() } #[inline] pub unsafe fn MFInitVideoFormat(pvideoformat: *const MFVIDEOFORMAT, r#type: MFStandardVideoFormat) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFInitVideoFormat(pvideoformat : *const MFVIDEOFORMAT, r#type : MFStandardVideoFormat) -> windows_core::HRESULT); - MFInitVideoFormat(core::mem::transmute(pvideoformat), core::mem::transmute(r#type)).ok() + MFInitVideoFormat(pvideoformat, r#type).ok() } #[inline] pub unsafe fn MFInitVideoFormat_RGB(pvideoformat: *const MFVIDEOFORMAT, dwwidth: u32, dwheight: u32, d3dfmt: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFInitVideoFormat_RGB(pvideoformat : *const MFVIDEOFORMAT, dwwidth : u32, dwheight : u32, d3dfmt : u32) -> windows_core::HRESULT); - MFInitVideoFormat_RGB(core::mem::transmute(pvideoformat), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(d3dfmt)).ok() + MFInitVideoFormat_RGB(pvideoformat, dwwidth, dwheight, d3dfmt).ok() } #[inline] pub unsafe fn MFInvokeCallback(pasyncresult: P0) -> windows_core::Result<()> @@ -1468,18 +1468,18 @@ where pub unsafe fn MFIsContentProtectionDeviceSupported(protectionsystemid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("mfplat.dll" "system" fn MFIsContentProtectionDeviceSupported(protectionsystemid : *const windows_core::GUID, issupported : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFIsContentProtectionDeviceSupported(core::mem::transmute(protectionsystemid), &mut result__).map(|| core::mem::transmute(result__)) + MFIsContentProtectionDeviceSupported(protectionsystemid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFIsFormatYUV(format: u32) -> super::super::Foundation::BOOL { windows_targets::link!("evr.dll" "system" fn MFIsFormatYUV(format : u32) -> super::super::Foundation:: BOOL); - MFIsFormatYUV(core::mem::transmute(format)) + MFIsFormatYUV(format) } #[inline] pub unsafe fn MFIsVirtualCameraTypeSupported(r#type: MFVirtualCameraType) -> windows_core::Result { windows_targets::link!("mfsensorgroup.dll" "system" fn MFIsVirtualCameraTypeSupported(r#type : MFVirtualCameraType, supported : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFIsVirtualCameraTypeSupported(core::mem::transmute(r#type), &mut result__).map(|| core::mem::transmute(result__)) + MFIsVirtualCameraTypeSupported(r#type, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MFLoadSignedLibrary(pszname: P0) -> windows_core::Result @@ -1506,24 +1506,24 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFLockSharedWorkQueue(wszclass : windows_core::PCWSTR, basepriority : i32, pdwtaskid : *mut u32, pid : *mut u32) -> windows_core::HRESULT); - MFLockSharedWorkQueue(wszclass.param().abi(), core::mem::transmute(basepriority), core::mem::transmute(pdwtaskid), core::mem::transmute(pid)).ok() + MFLockSharedWorkQueue(wszclass.param().abi(), basepriority, core::mem::transmute(pdwtaskid), core::mem::transmute(pid)).ok() } #[inline] pub unsafe fn MFLockWorkQueue(dwworkqueue: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFLockWorkQueue(dwworkqueue : u32) -> windows_core::HRESULT); - MFLockWorkQueue(core::mem::transmute(dwworkqueue)).ok() + MFLockWorkQueue(dwworkqueue).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[inline] pub unsafe fn MFMapDX9FormatToDXGIFormat(dx9: u32) -> super::super::Graphics::Dxgi::Common::DXGI_FORMAT { windows_targets::link!("mfplat.dll" "system" fn MFMapDX9FormatToDXGIFormat(dx9 : u32) -> super::super::Graphics::Dxgi::Common:: DXGI_FORMAT); - MFMapDX9FormatToDXGIFormat(core::mem::transmute(dx9)) + MFMapDX9FormatToDXGIFormat(dx9) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[inline] pub unsafe fn MFMapDXGIFormatToDX9Format(dx11: super::super::Graphics::Dxgi::Common::DXGI_FORMAT) -> u32 { windows_targets::link!("mfplat.dll" "system" fn MFMapDXGIFormatToDX9Format(dx11 : super::super::Graphics::Dxgi::Common:: DXGI_FORMAT) -> u32); - MFMapDXGIFormatToDX9Format(core::mem::transmute(dx11)) + MFMapDXGIFormatToDX9Format(dx11) } #[inline] pub unsafe fn MFPCreateMediaPlayer(pwszurl: P0, fstartplayback: bool, creationoptions: MFP_CREATION_OPTIONS, pcallback: P3, hwnd: Option, ppmediaplayer: Option<*mut Option>) -> windows_core::Result<()> @@ -1532,7 +1532,7 @@ where P3: windows_core::Param, { windows_targets::link!("mfplay.dll" "system" fn MFPCreateMediaPlayer(pwszurl : windows_core::PCWSTR, fstartplayback : super::super::Foundation:: BOOL, creationoptions : MFP_CREATION_OPTIONS, pcallback : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, ppmediaplayer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - MFPCreateMediaPlayer(pwszurl.param().abi(), fstartplayback.into(), core::mem::transmute(creationoptions), pcallback.param().abi(), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppmediaplayer.unwrap_or(core::mem::zeroed()))).ok() + MFPCreateMediaPlayer(pwszurl.param().abi(), fstartplayback.into(), creationoptions, pcallback.param().abi(), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppmediaplayer.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MFPutWaitingWorkItem(hevent: super::super::Foundation::HANDLE, priority: i32, presult: P2, pkey: Option<*mut u64>) -> windows_core::Result<()> @@ -1540,7 +1540,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFPutWaitingWorkItem(hevent : super::super::Foundation:: HANDLE, priority : i32, presult : * mut core::ffi::c_void, pkey : *mut u64) -> windows_core::HRESULT); - MFPutWaitingWorkItem(core::mem::transmute(hevent), core::mem::transmute(priority), presult.param().abi(), core::mem::transmute(pkey.unwrap_or(core::mem::zeroed()))).ok() + MFPutWaitingWorkItem(hevent, priority, presult.param().abi(), core::mem::transmute(pkey.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MFPutWorkItem(dwqueue: u32, pcallback: P1, pstate: P2) -> windows_core::Result<()> @@ -1549,7 +1549,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFPutWorkItem(dwqueue : u32, pcallback : * mut core::ffi::c_void, pstate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFPutWorkItem(core::mem::transmute(dwqueue), pcallback.param().abi(), pstate.param().abi()).ok() + MFPutWorkItem(dwqueue, pcallback.param().abi(), pstate.param().abi()).ok() } #[inline] pub unsafe fn MFPutWorkItem2(dwqueue: u32, priority: i32, pcallback: P2, pstate: P3) -> windows_core::Result<()> @@ -1558,7 +1558,7 @@ where P3: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFPutWorkItem2(dwqueue : u32, priority : i32, pcallback : * mut core::ffi::c_void, pstate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFPutWorkItem2(core::mem::transmute(dwqueue), core::mem::transmute(priority), pcallback.param().abi(), pstate.param().abi()).ok() + MFPutWorkItem2(dwqueue, priority, pcallback.param().abi(), pstate.param().abi()).ok() } #[inline] pub unsafe fn MFPutWorkItemEx(dwqueue: u32, presult: P1) -> windows_core::Result<()> @@ -1566,7 +1566,7 @@ where P1: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFPutWorkItemEx(dwqueue : u32, presult : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFPutWorkItemEx(core::mem::transmute(dwqueue), presult.param().abi()).ok() + MFPutWorkItemEx(dwqueue, presult.param().abi()).ok() } #[inline] pub unsafe fn MFPutWorkItemEx2(dwqueue: u32, priority: i32, presult: P2) -> windows_core::Result<()> @@ -1574,7 +1574,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFPutWorkItemEx2(dwqueue : u32, priority : i32, presult : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFPutWorkItemEx2(core::mem::transmute(dwqueue), core::mem::transmute(priority), presult.param().abi()).ok() + MFPutWorkItemEx2(dwqueue, priority, presult.param().abi()).ok() } #[inline] pub unsafe fn MFRegisterLocalByteStreamHandler(szfileextension: P0, szmimetype: P1, pactivate: P2) -> windows_core::Result<()> @@ -1601,12 +1601,12 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFRegisterPlatformWithMMCSS(wszclass : windows_core::PCWSTR, pdwtaskid : *mut u32, lpriority : i32) -> windows_core::HRESULT); - MFRegisterPlatformWithMMCSS(wszclass.param().abi(), core::mem::transmute(pdwtaskid), core::mem::transmute(lpriority)).ok() + MFRegisterPlatformWithMMCSS(wszclass.param().abi(), core::mem::transmute(pdwtaskid), lpriority).ok() } #[inline] pub unsafe fn MFRemovePeriodicCallback(dwkey: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFRemovePeriodicCallback(dwkey : u32) -> windows_core::HRESULT); - MFRemovePeriodicCallback(core::mem::transmute(dwkey)).ok() + MFRemovePeriodicCallback(dwkey).ok() } #[inline] pub unsafe fn MFRequireProtectedEnvironment(ppresentationdescriptor: P0) -> windows_core::Result<()> @@ -1623,7 +1623,7 @@ where P1: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFScheduleWorkItem(pcallback : * mut core::ffi::c_void, pstate : * mut core::ffi::c_void, timeout : i64, pkey : *mut u64) -> windows_core::HRESULT); - MFScheduleWorkItem(pcallback.param().abi(), pstate.param().abi(), core::mem::transmute(timeout), core::mem::transmute(pkey.unwrap_or(core::mem::zeroed()))).ok() + MFScheduleWorkItem(pcallback.param().abi(), pstate.param().abi(), timeout, core::mem::transmute(pkey.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MFScheduleWorkItemEx(presult: P0, timeout: i64, pkey: Option<*mut u64>) -> windows_core::Result<()> @@ -1631,7 +1631,7 @@ where P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFScheduleWorkItemEx(presult : * mut core::ffi::c_void, timeout : i64, pkey : *mut u64) -> windows_core::HRESULT); - MFScheduleWorkItemEx(presult.param().abi(), core::mem::transmute(timeout), core::mem::transmute(pkey.unwrap_or(core::mem::zeroed()))).ok() + MFScheduleWorkItemEx(presult.param().abi(), timeout, core::mem::transmute(pkey.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1641,7 +1641,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFSerializeAttributesToStream(pattr : * mut core::ffi::c_void, dwoptions : u32, pstm : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFSerializeAttributesToStream(pattr.param().abi(), core::mem::transmute(dwoptions), pstm.param().abi()).ok() + MFSerializeAttributesToStream(pattr.param().abi(), dwoptions, pstm.param().abi()).ok() } #[inline] pub unsafe fn MFSerializePresentationDescriptor(ppd: P0, pcbdata: *mut u32, ppbdata: *mut *mut u8) -> windows_core::Result<()> @@ -1675,7 +1675,7 @@ where #[inline] pub unsafe fn MFStartup(version: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFStartup(version : u32, dwflags : u32) -> windows_core::HRESULT); - MFStartup(core::mem::transmute(version), core::mem::transmute(dwflags)).ok() + MFStartup(version, dwflags).ok() } #[inline] pub unsafe fn MFTEnum(guidcategory: windows_core::GUID, flags: u32, pinputtype: Option<*const MFT_REGISTER_TYPE_INFO>, poutputtype: Option<*const MFT_REGISTER_TYPE_INFO>, pattributes: P4, ppclsidmft: *mut *mut windows_core::GUID, pcmfts: *mut u32) -> windows_core::Result<()> @@ -1683,7 +1683,7 @@ where P4: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFTEnum(guidcategory : windows_core::GUID, flags : u32, pinputtype : *const MFT_REGISTER_TYPE_INFO, poutputtype : *const MFT_REGISTER_TYPE_INFO, pattributes : * mut core::ffi::c_void, ppclsidmft : *mut *mut windows_core::GUID, pcmfts : *mut u32) -> windows_core::HRESULT); - MFTEnum(core::mem::transmute(guidcategory), core::mem::transmute(flags), core::mem::transmute(pinputtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutputtype.unwrap_or(core::mem::zeroed())), pattributes.param().abi(), core::mem::transmute(ppclsidmft), core::mem::transmute(pcmfts)).ok() + MFTEnum(core::mem::transmute(guidcategory), flags, core::mem::transmute(pinputtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutputtype.unwrap_or(core::mem::zeroed())), pattributes.param().abi(), core::mem::transmute(ppclsidmft), core::mem::transmute(pcmfts)).ok() } #[inline] pub unsafe fn MFTEnum2(guidcategory: windows_core::GUID, flags: MFT_ENUM_FLAG, pinputtype: Option<*const MFT_REGISTER_TYPE_INFO>, poutputtype: Option<*const MFT_REGISTER_TYPE_INFO>, pattributes: P4, pppmftactivate: *mut *mut Option, pnummftactivate: *mut u32) -> windows_core::Result<()> @@ -1710,18 +1710,7 @@ where P8: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFTRegister(clsidmft : windows_core::GUID, guidcategory : windows_core::GUID, pszname : windows_core::PCWSTR, flags : u32, cinputtypes : u32, pinputtypes : *const MFT_REGISTER_TYPE_INFO, coutputtypes : u32, poutputtypes : *const MFT_REGISTER_TYPE_INFO, pattributes : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFTRegister( - core::mem::transmute(clsidmft), - core::mem::transmute(guidcategory), - pszname.param().abi(), - core::mem::transmute(flags), - pinputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pinputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - poutputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(poutputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pattributes.param().abi(), - ) - .ok() + MFTRegister(core::mem::transmute(clsidmft), core::mem::transmute(guidcategory), pszname.param().abi(), flags, pinputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pattributes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1731,7 +1720,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFTRegisterLocal(pclassfactory : * mut core::ffi::c_void, guidcategory : *const windows_core::GUID, pszname : windows_core::PCWSTR, flags : u32, cinputtypes : u32, pinputtypes : *const MFT_REGISTER_TYPE_INFO, coutputtypes : u32, poutputtypes : *const MFT_REGISTER_TYPE_INFO) -> windows_core::HRESULT); - MFTRegisterLocal(pclassfactory.param().abi(), core::mem::transmute(guidcategory), pszname.param().abi(), core::mem::transmute(flags), pinputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + MFTRegisterLocal(pclassfactory.param().abi(), guidcategory, pszname.param().abi(), flags, pinputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn MFTRegisterLocalByCLSID(clisdmft: *const windows_core::GUID, guidcategory: *const windows_core::GUID, pszname: P2, flags: u32, pinputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>, poutputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>) -> windows_core::Result<()> @@ -1739,7 +1728,7 @@ where P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFTRegisterLocalByCLSID(clisdmft : *const windows_core::GUID, guidcategory : *const windows_core::GUID, pszname : windows_core::PCWSTR, flags : u32, cinputtypes : u32, pinputtypes : *const MFT_REGISTER_TYPE_INFO, coutputtypes : u32, poutputtypes : *const MFT_REGISTER_TYPE_INFO) -> windows_core::HRESULT); - MFTRegisterLocalByCLSID(core::mem::transmute(clisdmft), core::mem::transmute(guidcategory), pszname.param().abi(), core::mem::transmute(flags), pinputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + MFTRegisterLocalByCLSID(clisdmft, guidcategory, pszname.param().abi(), flags, pinputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputtypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputtypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn MFTUnregister(clsidmft: windows_core::GUID) -> windows_core::Result<()> { @@ -1767,7 +1756,7 @@ where { windows_targets::link!("mf.dll" "system" fn MFTranscodeGetAudioOutputAvailableTypes(guidsubtype : *const windows_core::GUID, dwmftflags : u32, pcodecconfig : * mut core::ffi::c_void, ppavailabletypes : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFTranscodeGetAudioOutputAvailableTypes(core::mem::transmute(guidsubtype), core::mem::transmute(dwmftflags), pcodecconfig.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFTranscodeGetAudioOutputAvailableTypes(guidsubtype, dwmftflags, pcodecconfig.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFUnlockDXGIDeviceManager() -> windows_core::Result<()> { @@ -1782,7 +1771,7 @@ pub unsafe fn MFUnlockPlatform() -> windows_core::Result<()> { #[inline] pub unsafe fn MFUnlockWorkQueue(dwworkqueue: u32) -> windows_core::Result<()> { windows_targets::link!("mfplat.dll" "system" fn MFUnlockWorkQueue(dwworkqueue : u32) -> windows_core::HRESULT); - MFUnlockWorkQueue(core::mem::transmute(dwworkqueue)).ok() + MFUnlockWorkQueue(dwworkqueue).ok() } #[inline] pub unsafe fn MFUnregisterPlatformFromMMCSS() -> windows_core::Result<()> { @@ -1810,24 +1799,24 @@ where { windows_targets::link!("mfplat.dll" "system" fn MFWrapMediaType(porig : * mut core::ffi::c_void, majortype : *const windows_core::GUID, subtype : *const windows_core::GUID, ppwrap : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MFWrapMediaType(porig.param().abi(), core::mem::transmute(majortype), core::mem::transmute(subtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFWrapMediaType(porig.param().abi(), majortype, subtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFllMulDiv(a: i64, b: i64, c: i64, d: i64) -> i64 { windows_targets::link!("mfplat.dll" "system" fn MFllMulDiv(a : i64, b : i64, c : i64, d : i64) -> i64); - MFllMulDiv(core::mem::transmute(a), core::mem::transmute(b), core::mem::transmute(c), core::mem::transmute(d)) + MFllMulDiv(a, b, c, d) } #[inline] pub unsafe fn OPMGetVideoOutputForTarget(padapterluid: *const super::super::Foundation::LUID, vidpntarget: u32, vos: OPM_VIDEO_OUTPUT_SEMANTICS) -> windows_core::Result { windows_targets::link!("dxva2.dll" "system" fn OPMGetVideoOutputForTarget(padapterluid : *const super::super::Foundation:: LUID, vidpntarget : u32, vos : OPM_VIDEO_OUTPUT_SEMANTICS, ppopmvideooutput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OPMGetVideoOutputForTarget(core::mem::transmute(padapterluid), core::mem::transmute(vidpntarget), core::mem::transmute(vos), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OPMGetVideoOutputForTarget(padapterluid, vidpntarget, vos, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OPMGetVideoOutputsFromHMONITOR(hmonitor: super::super::Graphics::Gdi::HMONITOR, vos: OPM_VIDEO_OUTPUT_SEMANTICS, pulnumvideooutputs: *mut u32, pppopmvideooutputarray: *mut *mut Option) -> windows_core::Result<()> { windows_targets::link!("dxva2.dll" "system" fn OPMGetVideoOutputsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, vos : OPM_VIDEO_OUTPUT_SEMANTICS, pulnumvideooutputs : *mut u32, pppopmvideooutputarray : *mut *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - OPMGetVideoOutputsFromHMONITOR(core::mem::transmute(hmonitor), core::mem::transmute(vos), core::mem::transmute(pulnumvideooutputs), core::mem::transmute(pppopmvideooutputarray)).ok() + OPMGetVideoOutputsFromHMONITOR(hmonitor, vos, core::mem::transmute(pulnumvideooutputs), core::mem::transmute(pppopmvideooutputarray)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] @@ -1836,12 +1825,12 @@ where P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9 : * mut core::ffi::c_void, vos : OPM_VIDEO_OUTPUT_SEMANTICS, pulnumvideooutputs : *mut u32, pppopmvideooutputarray : *mut *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9.param().abi(), core::mem::transmute(vos), core::mem::transmute(pulnumvideooutputs), core::mem::transmute(pppopmvideooutputarray)).ok() + OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9.param().abi(), vos, core::mem::transmute(pulnumvideooutputs), core::mem::transmute(pppopmvideooutputarray)).ok() } #[inline] pub unsafe fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> windows_core::Result<()> { windows_targets::link!("opmxbox.dll" "system" fn OPMXboxEnableHDCP(hdcptype : OPM_HDCP_TYPE) -> windows_core::HRESULT); - OPMXboxEnableHDCP(core::mem::transmute(hdcptype)).ok() + OPMXboxEnableHDCP(hdcptype).ok() } #[inline] pub unsafe fn OPMXboxGetHDCPStatus(phdcpstatus: *mut OPM_HDCP_STATUS) -> windows_core::Result<()> { @@ -9434,7 +9423,7 @@ windows_core::imp::define_interface!(IAudioSourceProvider, IAudioSourceProvider_ windows_core::imp::interface_hierarchy!(IAudioSourceProvider, windows_core::IUnknown); impl IAudioSourceProvider { pub unsafe fn ProvideInput(&self, dwsamplecount: u32, pdwchannelcount: *mut u32, pinterleavedaudiodata: Option<*mut f32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProvideInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsamplecount), core::mem::transmute(pdwchannelcount), core::mem::transmute(pinterleavedaudiodata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ProvideInput)(windows_core::Interface::as_raw(self), dwsamplecount, core::mem::transmute(pdwchannelcount), core::mem::transmute(pinterleavedaudiodata.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -9462,14 +9451,14 @@ windows_core::imp::define_interface!(IClusterDetector, IClusterDetector_Vtbl, 0x windows_core::imp::interface_hierarchy!(IClusterDetector, windows_core::IUnknown); impl IClusterDetector { pub unsafe fn Initialize(&self, wbaseentrylevel: u16, wclusterentrylevel: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(wbaseentrylevel), core::mem::transmute(wclusterentrylevel)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), wbaseentrylevel, wclusterentrylevel).ok() } pub unsafe fn Detect(&self, dwmaxnumclusters: u32, fminclusterduration: f32, fmaxclusterduration: f32, psrctoc: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Detect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxnumclusters), core::mem::transmute(fminclusterduration), core::mem::transmute(fmaxclusterduration), psrctoc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Detect)(windows_core::Interface::as_raw(self), dwmaxnumclusters, fminclusterduration, fmaxclusterduration, psrctoc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9509,45 +9498,45 @@ windows_core::imp::define_interface!(ICodecAPI, ICodecAPI_Vtbl, 0x901db4c7_31ce_ windows_core::imp::interface_hierarchy!(ICodecAPI, windows_core::IUnknown); impl ICodecAPI { pub unsafe fn IsSupported(&self, api: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(api)).ok() + (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), api).ok() } pub unsafe fn IsModifiable(&self, api: *const windows_core::GUID) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).IsModifiable)(windows_core::Interface::as_raw(self), core::mem::transmute(api)) + (windows_core::Interface::vtable(self).IsModifiable)(windows_core::Interface::as_raw(self), api) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetParameterRange(&self, api: *const windows_core::GUID, valuemin: *mut super::super::System::Variant::VARIANT, valuemax: *mut super::super::System::Variant::VARIANT, steppingdelta: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParameterRange)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(valuemin), core::mem::transmute(valuemax), core::mem::transmute(steppingdelta)).ok() + (windows_core::Interface::vtable(self).GetParameterRange)(windows_core::Interface::as_raw(self), api, core::mem::transmute(valuemin), core::mem::transmute(valuemax), core::mem::transmute(steppingdelta)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetParameterValues(&self, api: *const windows_core::GUID, values: *mut *mut super::super::System::Variant::VARIANT, valuescount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParameterValues)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(values), core::mem::transmute(valuescount)).ok() + (windows_core::Interface::vtable(self).GetParameterValues)(windows_core::Interface::as_raw(self), api, core::mem::transmute(values), core::mem::transmute(valuescount)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetDefaultValue(&self, api: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultValue)(windows_core::Interface::as_raw(self), core::mem::transmute(api), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDefaultValue)(windows_core::Interface::as_raw(self), api, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, api: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(api), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), api, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, api: *const windows_core::GUID, value: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), api, core::mem::transmute(value)).ok() } pub unsafe fn RegisterForEvent(&self, api: *const windows_core::GUID, userdata: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(userdata)).ok() + (windows_core::Interface::vtable(self).RegisterForEvent)(windows_core::Interface::as_raw(self), api, userdata).ok() } pub unsafe fn UnregisterForEvent(&self, api: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(api)).ok() + (windows_core::Interface::vtable(self).UnregisterForEvent)(windows_core::Interface::as_raw(self), api).ok() } pub unsafe fn SetAllDefaults(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAllDefaults)(windows_core::Interface::as_raw(self)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetValueWithNotify(&self, api: *const windows_core::GUID, value: *const super::super::System::Variant::VARIANT, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueWithNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(api), core::mem::transmute(value), core::mem::transmute(changedparam), core::mem::transmute(changedparamcount)).ok() + (windows_core::Interface::vtable(self).SetValueWithNotify)(windows_core::Interface::as_raw(self), api, core::mem::transmute(value), core::mem::transmute(changedparam), core::mem::transmute(changedparamcount)).ok() } pub unsafe fn SetAllDefaultsWithNotify(&self, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAllDefaultsWithNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(changedparam), core::mem::transmute(changedparamcount)).ok() @@ -9780,14 +9769,14 @@ impl ID3D12VideoDecodeCommandList { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EndQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveQueryData(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: P4, aligneddestinationbufferoffset: u64) @@ -9795,20 +9784,20 @@ impl ID3D12VideoDecodeCommandList { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(startindex), core::mem::transmute(numqueries), pdestinationbuffer.param().abi(), core::mem::transmute(aligneddestinationbufferoffset)) + (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, startindex, numqueries, pdestinationbuffer.param().abi(), aligneddestinationbufferoffset) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPredication(&self, pbuffer: P0, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), core::mem::transmute(alignedbufferoffset), core::mem::transmute(operation)) + (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), alignedbufferoffset, operation) } pub unsafe fn SetMarker(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn BeginEvent(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) @@ -9822,7 +9811,7 @@ impl ID3D12VideoDecodeCommandList { } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn WriteBufferImmediate(&self, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: Option<*const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE>) { - (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(pparams), core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), count, pparams, core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -10053,14 +10042,14 @@ impl ID3D12VideoDecodeCommandList2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pinitializationparameters), core::mem::transmute(initializationparameterssizeinbytes)) + (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pinitializationparameters, initializationparameterssizeinbytes) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ExecuteExtensionCommand(&self, pextensioncommand: P0, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pexecutionparameters), core::mem::transmute(executionparameterssizeinbytes)) + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -10370,14 +10359,14 @@ windows_core::imp::define_interface!(ID3D12VideoDevice, ID3D12VideoDevice_Vtbl, windows_core::imp::interface_hierarchy!(ID3D12VideoDevice, windows_core::IUnknown); impl ID3D12VideoDevice { pub unsafe fn CheckFeatureSupport(&self, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(featurevideo), core::mem::transmute(pfeaturesupportdata), core::mem::transmute(featuresupportdatasize)).ok() + (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), featurevideo, core::mem::transmute(pfeaturesupportdata), featuresupportdatasize).ok() } pub unsafe fn CreateVideoDecoder(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoDecoder)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoDecoder)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoDecoderHeap(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC) -> windows_core::Result @@ -10385,7 +10374,7 @@ impl ID3D12VideoDevice { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoDecoderHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(pvideodecoderheapdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoDecoderHeap)(windows_core::Interface::as_raw(self), pvideodecoderheapdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessor(&self, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pinputstreamdescs: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC]) -> windows_core::Result @@ -10393,7 +10382,7 @@ impl ID3D12VideoDevice { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(nodemask), core::mem::transmute(poutputstreamdesc), pinputstreamdescs.len().try_into().unwrap(), core::mem::transmute(pinputstreamdescs.as_ptr()), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), core::mem::transmute(pinputstreamdescs.as_ptr()), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10470,7 +10459,7 @@ impl ID3D12VideoDevice1 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoMotionEstimator)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoMotionEstimator)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateVideoMotionVectorHeap(&self, pdesc: *const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC, pprotectedresourcesession: P1) -> windows_core::Result @@ -10479,7 +10468,7 @@ impl ID3D12VideoDevice1 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10542,7 +10531,7 @@ impl ID3D12VideoDevice2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoDecoder1)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoDecoder1)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateVideoDecoderHeap1(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, pprotectedresourcesession: P1) -> windows_core::Result @@ -10551,7 +10540,7 @@ impl ID3D12VideoDevice2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoDecoderHeap1)(windows_core::Interface::as_raw(self), core::mem::transmute(pvideodecoderheapdesc), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoDecoderHeap1)(windows_core::Interface::as_raw(self), pvideodecoderheapdesc, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateVideoProcessor1(&self, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pinputstreamdescs: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC], pprotectedresourcesession: P4) -> windows_core::Result @@ -10560,7 +10549,7 @@ impl ID3D12VideoDevice2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoProcessor1)(windows_core::Interface::as_raw(self), core::mem::transmute(nodemask), core::mem::transmute(poutputstreamdesc), pinputstreamdescs.len().try_into().unwrap(), core::mem::transmute(pinputstreamdescs.as_ptr()), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoProcessor1)(windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), core::mem::transmute(pinputstreamdescs.as_ptr()), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateVideoExtensionCommand(&self, pdesc: *const D3D12_VIDEO_EXTENSION_COMMAND_DESC, pcreationparameters: *const core::ffi::c_void, creationparametersdatasizeinbytes: usize, pprotectedresourcesession: P3) -> windows_core::Result @@ -10569,14 +10558,14 @@ impl ID3D12VideoDevice2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoExtensionCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), core::mem::transmute(pcreationparameters), core::mem::transmute(creationparametersdatasizeinbytes), pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoExtensionCommand)(windows_core::Interface::as_raw(self), pdesc, pcreationparameters, creationparametersdatasizeinbytes, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ExecuteExtensionCommand(&self, pextensioncommand: P0, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize, poutputdata: *mut core::ffi::c_void, outputdatasizeinbytes: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pexecutionparameters), core::mem::transmute(executionparameterssizeinbytes), core::mem::transmute(poutputdata), core::mem::transmute(outputdatasizeinbytes)).ok() + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes, core::mem::transmute(poutputdata), outputdatasizeinbytes).ok() } } #[repr(C)] @@ -10668,14 +10657,14 @@ impl ID3D12VideoDevice3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoEncoder)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoEncoder)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateVideoEncoderHeap(&self, pdesc: *const D3D12_VIDEO_ENCODER_HEAP_DESC) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoEncoderHeap)(windows_core::Interface::as_raw(self), core::mem::transmute(pdesc), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoEncoderHeap)(windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10761,14 +10750,14 @@ impl ID3D12VideoEncodeCommandList { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EndQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveQueryData(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: P4, aligneddestinationbufferoffset: u64) @@ -10776,20 +10765,20 @@ impl ID3D12VideoEncodeCommandList { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(startindex), core::mem::transmute(numqueries), pdestinationbuffer.param().abi(), core::mem::transmute(aligneddestinationbufferoffset)) + (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, startindex, numqueries, pdestinationbuffer.param().abi(), aligneddestinationbufferoffset) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPredication(&self, pbuffer: P0, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), core::mem::transmute(alignedbufferoffset), core::mem::transmute(operation)) + (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), alignedbufferoffset, operation) } pub unsafe fn SetMarker(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn BeginEvent(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) @@ -10807,7 +10796,7 @@ impl ID3D12VideoEncodeCommandList { } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn WriteBufferImmediate(&self, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: Option<*const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE>) { - (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(pparams), core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), count, pparams, core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) @@ -11005,14 +10994,14 @@ impl ID3D12VideoEncodeCommandList1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pinitializationparameters), core::mem::transmute(initializationparameterssizeinbytes)) + (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pinitializationparameters, initializationparameterssizeinbytes) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ExecuteExtensionCommand(&self, pextensioncommand: P0, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pexecutionparameters), core::mem::transmute(executionparameterssizeinbytes)) + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -11645,14 +11634,14 @@ impl ID3D12VideoProcessCommandList { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EndQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, index) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveQueryData(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: P4, aligneddestinationbufferoffset: u64) @@ -11660,20 +11649,20 @@ impl ID3D12VideoProcessCommandList { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), core::mem::transmute(r#type), core::mem::transmute(startindex), core::mem::transmute(numqueries), pdestinationbuffer.param().abi(), core::mem::transmute(aligneddestinationbufferoffset)) + (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.param().abi(), r#type, startindex, numqueries, pdestinationbuffer.param().abi(), aligneddestinationbufferoffset) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPredication(&self, pbuffer: P0, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), core::mem::transmute(alignedbufferoffset), core::mem::transmute(operation)) + (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.param().abi(), alignedbufferoffset, operation) } pub unsafe fn SetMarker(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn BeginEvent(&self, metadata: u32, pdata: Option<*const core::ffi::c_void>, size: u32) { - (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(metadata), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), size) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) @@ -11687,7 +11676,7 @@ impl ID3D12VideoProcessCommandList { } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn WriteBufferImmediate(&self, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: Option<*const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE>) { - (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(pparams), core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).WriteBufferImmediate)(windows_core::Interface::as_raw(self), count, pparams, core::mem::transmute(pmodes.unwrap_or(core::mem::zeroed()))) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -11918,14 +11907,14 @@ impl ID3D12VideoProcessCommandList2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pinitializationparameters), core::mem::transmute(initializationparameterssizeinbytes)) + (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pinitializationparameters, initializationparameterssizeinbytes) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ExecuteExtensionCommand(&self, pextensioncommand: P0, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), core::mem::transmute(pexecutionparameters), core::mem::transmute(executionparameterssizeinbytes)) + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -12176,7 +12165,7 @@ windows_core::imp::interface_hierarchy!(IDXVAHD_Device, windows_core::IUnknown); impl IDXVAHD_Device { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe 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, ppsurfaces: &mut [Option], psharedhandle: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateVideoSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(usage), core::mem::transmute(r#type), ppsurfaces.len().try_into().unwrap(), core::mem::transmute(ppsurfaces.as_ptr()), core::mem::transmute(psharedhandle.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateVideoSurface)(windows_core::Interface::as_raw(self), width, height, format, pool, usage, r#type, ppsurfaces.len().try_into().unwrap(), core::mem::transmute(ppsurfaces.as_ptr()), core::mem::transmute(psharedhandle.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetVideoProcessorDeviceCaps(&self, pcaps: *mut DXVAHD_VPDEVCAPS) -> windows_core::Result<()> { @@ -12194,15 +12183,15 @@ impl IDXVAHD_Device { (windows_core::Interface::vtable(self).GetVideoProcessorCaps)(windows_core::Interface::as_raw(self), pcaps.len().try_into().unwrap(), core::mem::transmute(pcaps.as_ptr())).ok() } pub unsafe fn GetVideoProcessorCustomRates(&self, pvpguid: *const windows_core::GUID, prates: &mut [DXVAHD_CUSTOM_RATE_DATA]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorCustomRates)(windows_core::Interface::as_raw(self), core::mem::transmute(pvpguid), prates.len().try_into().unwrap(), core::mem::transmute(prates.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorCustomRates)(windows_core::Interface::as_raw(self), pvpguid, prates.len().try_into().unwrap(), core::mem::transmute(prates.as_ptr())).ok() } pub unsafe fn GetVideoProcessorFilterRange(&self, filter: DXVAHD_FILTER) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVideoProcessorFilterRange)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVideoProcessorFilterRange)(windows_core::Interface::as_raw(self), filter, &mut result__).map(|| result__) } pub unsafe fn CreateVideoProcessor(&self, pvpguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(pvpguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), pvpguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12309,23 +12298,23 @@ windows_core::imp::define_interface!(IDXVAHD_VideoProcessor, IDXVAHD_VideoProces windows_core::imp::interface_hierarchy!(IDXVAHD_VideoProcessor, windows_core::IUnknown); impl IDXVAHD_VideoProcessor { pub unsafe fn SetVideoProcessBltState(&self, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoProcessBltState)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).SetVideoProcessBltState)(windows_core::Interface::as_raw(self), state, datasize, pdata).ok() } pub unsafe fn GetVideoProcessBltState(&self, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessBltState)(windows_core::Interface::as_raw(self), core::mem::transmute(state), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessBltState)(windows_core::Interface::as_raw(self), state, datasize, core::mem::transmute(pdata)).ok() } pub unsafe fn SetVideoProcessStreamState(&self, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoProcessStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(streamnumber), core::mem::transmute(state), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).SetVideoProcessStreamState)(windows_core::Interface::as_raw(self), streamnumber, state, datasize, pdata).ok() } pub unsafe fn GetVideoProcessStreamState(&self, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(streamnumber), core::mem::transmute(state), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessStreamState)(windows_core::Interface::as_raw(self), streamnumber, state, datasize, core::mem::transmute(pdata)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn VideoProcessBltHD(&self, poutputsurface: P0, outputframe: u32, pstreams: &[DXVAHD_STREAM_DATA]) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessBltHD)(windows_core::Interface::as_raw(self), poutputsurface.param().abi(), core::mem::transmute(outputframe), pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() + (windows_core::Interface::vtable(self).VideoProcessBltHD)(windows_core::Interface::as_raw(self), poutputsurface.param().abi(), outputframe, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() } } #[repr(C)] @@ -12391,7 +12380,7 @@ windows_core::imp::interface_hierarchy!(IDirect3D9ExOverlayExtension, windows_co impl IDirect3D9ExOverlayExtension { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).CheckDeviceOverlayType)(windows_core::Interface::as_raw(self), core::mem::transmute(adapter), core::mem::transmute(devtype), core::mem::transmute(overlaywidth), core::mem::transmute(overlayheight), core::mem::transmute(overlayformat), core::mem::transmute(pdisplaymode), core::mem::transmute(displayrotation), core::mem::transmute(poverlaycaps)).ok() + (windows_core::Interface::vtable(self).CheckDeviceOverlayType)(windows_core::Interface::as_raw(self), adapter, devtype, overlaywidth, overlayheight, overlayformat, core::mem::transmute(pdisplaymode), displayrotation, core::mem::transmute(poverlaycaps)).ok() } } #[repr(C)] @@ -12428,17 +12417,17 @@ impl IDirect3DAuthenticatedChannel9 { (windows_core::Interface::vtable(self).GetCertificateSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcertificatesize)).ok() } pub unsafe fn GetCertificate(&self, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(certifactesize), core::mem::transmute(ppcertificate)).ok() + (windows_core::Interface::vtable(self).GetCertificate)(windows_core::Interface::as_raw(self), certifactesize, core::mem::transmute(ppcertificate)).ok() } pub unsafe fn NegotiateKeyExchange(&self, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NegotiateKeyExchange)(windows_core::Interface::as_raw(self), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).NegotiateKeyExchange)(windows_core::Interface::as_raw(self), datasize, core::mem::transmute(pdata)).ok() } pub unsafe fn Query(&self, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(inputsize), core::mem::transmute(pinput), core::mem::transmute(outputsize), core::mem::transmute(poutput)).ok() + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), inputsize, pinput, outputsize, core::mem::transmute(poutput)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn Configure(&self, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNEL_CONFIGURE_OUTPUT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute(inputsize), core::mem::transmute(pinput), core::mem::transmute(poutput)).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), inputsize, pinput, core::mem::transmute(poutput)).ok() } } #[repr(C)] @@ -12506,10 +12495,10 @@ impl IDirect3DCryptoSession9 { (windows_core::Interface::vtable(self).GetCertificateSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcertificatesize)).ok() } pub unsafe fn GetCertificate(&self, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(certifactesize), core::mem::transmute(ppcertificate)).ok() + (windows_core::Interface::vtable(self).GetCertificate)(windows_core::Interface::as_raw(self), certifactesize, core::mem::transmute(ppcertificate)).ok() } pub unsafe fn NegotiateKeyExchange(&self, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NegotiateKeyExchange)(windows_core::Interface::as_raw(self), core::mem::transmute(datasize), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).NegotiateKeyExchange)(windows_core::Interface::as_raw(self), datasize, core::mem::transmute(pdata)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn EncryptionBlt(&self, psrcsurface: P0, pdstsurface: P1, dstsurfacesize: u32, piv: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -12517,7 +12506,7 @@ impl IDirect3DCryptoSession9 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(dstsurfacesize), core::mem::transmute(piv)).ok() + (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), pdstsurface.param().abi(), dstsurfacesize, core::mem::transmute(piv)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn DecryptionBlt(&self, psrcsurface: P0, pdstsurface: P1, 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::Result<()> @@ -12525,7 +12514,7 @@ impl IDirect3DCryptoSession9 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(srcsurfacesize), core::mem::transmute(pencryptedblockinfo), core::mem::transmute(pcontentkey), core::mem::transmute(piv)).ok() + (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), pdstsurface.param().abi(), srcsurfacesize, core::mem::transmute(pencryptedblockinfo), core::mem::transmute(pcontentkey), core::mem::transmute(piv)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetSurfacePitch(&self, psrcsurface: P0, psurfacepitch: *mut u32) -> windows_core::Result<()> @@ -12535,13 +12524,13 @@ impl IDirect3DCryptoSession9 { (windows_core::Interface::vtable(self).GetSurfacePitch)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), core::mem::transmute(psurfacepitch)).ok() } pub unsafe fn StartSessionKeyRefresh(&self, prandomnumber: *mut core::ffi::c_void, randomnumbersize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), core::mem::transmute(prandomnumber), core::mem::transmute(randomnumbersize)).ok() + (windows_core::Interface::vtable(self).StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), core::mem::transmute(prandomnumber), randomnumbersize).ok() } pub unsafe fn FinishSessionKeyRefresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetEncryptionBltKey(&self, preadbackkey: *mut core::ffi::c_void, keysize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEncryptionBltKey)(windows_core::Interface::as_raw(self), core::mem::transmute(preadbackkey), core::mem::transmute(keysize)).ok() + (windows_core::Interface::vtable(self).GetEncryptionBltKey)(windows_core::Interface::as_raw(self), core::mem::transmute(preadbackkey), keysize).ok() } } #[repr(C)] @@ -12640,14 +12629,14 @@ windows_core::imp::define_interface!(IDirect3DDevice9Video, IDirect3DDevice9Vide windows_core::imp::interface_hierarchy!(IDirect3DDevice9Video, windows_core::IUnknown); impl IDirect3DDevice9Video { pub unsafe fn GetContentProtectionCaps(&self, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, pcaps: *mut D3DCONTENTPROTECTIONCAPS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContentProtectionCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pcryptotype), core::mem::transmute(pdecodeprofile), core::mem::transmute(pcaps)).ok() + (windows_core::Interface::vtable(self).GetContentProtectionCaps)(windows_core::Interface::as_raw(self), pcryptotype, pdecodeprofile, core::mem::transmute(pcaps)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn CreateAuthenticatedChannel(&self, channeltype: super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNELTYPE, ppauthenticatedchannel: *mut Option, pchannelhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateAuthenticatedChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(channeltype), core::mem::transmute(ppauthenticatedchannel), core::mem::transmute(pchannelhandle)).ok() + (windows_core::Interface::vtable(self).CreateAuthenticatedChannel)(windows_core::Interface::as_raw(self), channeltype, core::mem::transmute(ppauthenticatedchannel), core::mem::transmute(pchannelhandle)).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).CreateCryptoSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pcryptotype), core::mem::transmute(pdecodeprofile), core::mem::transmute(ppcryptosession), core::mem::transmute(pcryptohandle)).ok() + (windows_core::Interface::vtable(self).CreateCryptoSession)(windows_core::Interface::as_raw(self), pcryptotype, pdecodeprofile, core::mem::transmute(ppcryptosession), core::mem::transmute(pcryptohandle)).ok() } } #[repr(C)] @@ -12702,27 +12691,27 @@ impl IDirect3DDeviceManager9 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResetDevice)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(resettoken)).ok() + (windows_core::Interface::vtable(self).ResetDevice)(windows_core::Interface::as_raw(self), pdevice.param().abi(), resettoken).ok() } pub unsafe fn OpenDeviceHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OpenDeviceHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CloseDeviceHandle(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice)).ok() + (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), hdevice).ok() } pub unsafe fn TestDevice(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice)).ok() + (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), hdevice).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, ppdevice: *mut Option, fblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice), core::mem::transmute(ppdevice), fblock.into()).ok() + (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), hdevice, core::mem::transmute(ppdevice), fblock.into()).ok() } pub unsafe fn UnlockDevice(&self, hdevice: super::super::Foundation::HANDLE, fsavestate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice), fsavestate.into()).ok() + (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), hdevice, fsavestate.into()).ok() } pub unsafe fn GetVideoService(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice), core::mem::transmute(riid), core::mem::transmute(ppservice)).ok() + (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), hdevice, riid, core::mem::transmute(ppservice)).ok() } } #[repr(C)] @@ -12811,7 +12800,7 @@ windows_core::imp::interface_hierarchy!(IDirectXVideoAccelerationService, window impl IDirectXVideoAccelerationService { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe 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: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(backbuffers), core::mem::transmute(format), core::mem::transmute(pool), core::mem::transmute(usage), dxvatype.0 as _, core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), width, height, backbuffers, format, pool, usage, dxvatype.0 as _, core::mem::transmute(ppsurface), core::mem::transmute(psharedhandle.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -12856,7 +12845,7 @@ impl IDirectXVideoDecoder { (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), buffertype.0 as _, core::mem::transmute(ppbuffer), core::mem::transmute(pbuffersize)).ok() } pub unsafe fn ReleaseBuffer(&self, buffertype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(buffertype)).ok() + (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), buffertype).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn BeginFrame(&self, prendertarget: P0, pvpvpdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -12869,7 +12858,7 @@ impl IDirectXVideoDecoder { (windows_core::Interface::vtable(self).EndFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(phandlecomplete.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Execute(&self, pexecuteparams: *const DXVA2_DecodeExecuteParams) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(pexecuteparams)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), pexecuteparams).ok() } } #[repr(C)] @@ -12967,16 +12956,16 @@ impl IDirectXVideoDecoderService { } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetDecoderRenderTargets(&self, guid: *const windows_core::GUID, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDecoderRenderTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pcount), core::mem::transmute(pformats)).ok() + (windows_core::Interface::vtable(self).GetDecoderRenderTargets)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pcount), core::mem::transmute(pformats)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetDecoderConfigurations(&self, guid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, preserved: Option<*const core::ffi::c_void>, pcount: *mut u32, ppconfigs: *mut *mut DXVA2_ConfigPictureDecode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDecoderConfigurations)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pvideodesc), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcount), core::mem::transmute(ppconfigs)).ok() + (windows_core::Interface::vtable(self).GetDecoderConfigurations)(windows_core::Interface::as_raw(self), guid, pvideodesc, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcount), core::mem::transmute(ppconfigs)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn CreateVideoDecoder(&self, guid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, pconfig: *const DXVA2_ConfigPictureDecode, ppdecoderrendertargets: &[Option]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoDecoder)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pvideodesc), core::mem::transmute(pconfig), core::mem::transmute(ppdecoderrendertargets.as_ptr()), ppdecoderrendertargets.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoDecoder)(windows_core::Interface::as_raw(self), guid, pvideodesc, pconfig, core::mem::transmute(ppdecoderrendertargets.as_ptr()), ppdecoderrendertargets.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -13047,10 +13036,10 @@ windows_core::imp::interface_hierarchy!(IDirectXVideoMemoryConfiguration, window impl IDirectXVideoMemoryConfiguration { pub unsafe fn GetAvailableSurfaceTypeByIndex(&self, dwtypeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAvailableSurfaceTypeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtypeindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAvailableSurfaceTypeByIndex)(windows_core::Interface::as_raw(self), dwtypeindex, &mut result__).map(|| result__) } pub unsafe fn SetSurfaceType(&self, dwtype: DXVA2_SurfaceType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSurfaceType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtype)).ok() + (windows_core::Interface::vtable(self).SetSurfaceType)(windows_core::Interface::as_raw(self), dwtype).ok() } } #[repr(C)] @@ -13107,18 +13096,18 @@ impl IDirectXVideoProcessor { } pub unsafe fn GetProcAmpRange(&self, procampcap: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcAmpRange)(windows_core::Interface::as_raw(self), core::mem::transmute(procampcap), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcAmpRange)(windows_core::Interface::as_raw(self), procampcap, &mut result__).map(|| result__) } pub unsafe fn GetFilterPropertyRange(&self, filtersetting: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilterPropertyRange)(windows_core::Interface::as_raw(self), core::mem::transmute(filtersetting), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFilterPropertyRange)(windows_core::Interface::as_raw(self), filtersetting, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn VideoProcessBlt(&self, prendertarget: P0, pbltparams: *const DXVA2_VideoProcessBltParams, psamples: &[DXVA2_VideoSample], phandlecomplete: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessBlt)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), core::mem::transmute(pbltparams), core::mem::transmute(psamples.as_ptr()), psamples.len().try_into().unwrap(), core::mem::transmute(phandlecomplete.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).VideoProcessBlt)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), pbltparams, core::mem::transmute(psamples.as_ptr()), psamples.len().try_into().unwrap(), core::mem::transmute(phandlecomplete.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -13220,38 +13209,38 @@ impl core::ops::Deref for IDirectXVideoProcessorService { windows_core::imp::interface_hierarchy!(IDirectXVideoProcessorService, windows_core::IUnknown, IDirectXVideoAccelerationService); impl IDirectXVideoProcessorService { pub unsafe fn RegisterVideoProcessorSoftwareDevice(&self, pcallbacks: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterVideoProcessorSoftwareDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(pcallbacks)).ok() + (windows_core::Interface::vtable(self).RegisterVideoProcessorSoftwareDevice)(windows_core::Interface::as_raw(self), pcallbacks).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetVideoProcessorDeviceGuids(&self, pvideodesc: *const DXVA2_VideoDesc, pcount: *mut u32, pguids: *mut *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorDeviceGuids)(windows_core::Interface::as_raw(self), core::mem::transmute(pvideodesc), core::mem::transmute(pcount), core::mem::transmute(pguids)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorDeviceGuids)(windows_core::Interface::as_raw(self), pvideodesc, core::mem::transmute(pcount), core::mem::transmute(pguids)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetVideoProcessorRenderTargets(&self, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorRenderTargets)(windows_core::Interface::as_raw(self), core::mem::transmute(videoprocdeviceguid), core::mem::transmute(pvideodesc), core::mem::transmute(pcount), core::mem::transmute(pformats)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorRenderTargets)(windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, core::mem::transmute(pcount), core::mem::transmute(pformats)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetVideoProcessorSubStreamFormats(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorSubStreamFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(videoprocdeviceguid), core::mem::transmute(pvideodesc), core::mem::transmute(rendertargetformat), core::mem::transmute(pcount), core::mem::transmute(pformats)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorSubStreamFormats)(windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, rendertargetformat, core::mem::transmute(pcount), core::mem::transmute(pformats)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetVideoProcessorCaps(&self, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, pcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(videoprocdeviceguid), core::mem::transmute(pvideodesc), core::mem::transmute(rendertargetformat), core::mem::transmute(pcaps)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorCaps)(windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, rendertargetformat, core::mem::transmute(pcaps)).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetProcAmpRange(&self, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, procampcap: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcAmpRange)(windows_core::Interface::as_raw(self), core::mem::transmute(videoprocdeviceguid), core::mem::transmute(pvideodesc), core::mem::transmute(rendertargetformat), core::mem::transmute(procampcap), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcAmpRange)(windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, rendertargetformat, procampcap, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetFilterPropertyRange(&self, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, filtersetting: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilterPropertyRange)(windows_core::Interface::as_raw(self), core::mem::transmute(videoprocdeviceguid), core::mem::transmute(pvideodesc), core::mem::transmute(rendertargetformat), core::mem::transmute(filtersetting), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFilterPropertyRange)(windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, rendertargetformat, filtersetting, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn CreateVideoProcessor(&self, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, maxnumsubstreams: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(videoprocdeviceguid), core::mem::transmute(pvideodesc), core::mem::transmute(rendertargetformat), core::mem::transmute(maxnumsubstreams), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, rendertargetformat, maxnumsubstreams, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -13373,7 +13362,7 @@ windows_core::imp::define_interface!(IEVRFilterConfig, IEVRFilterConfig_Vtbl, 0x windows_core::imp::interface_hierarchy!(IEVRFilterConfig, windows_core::IUnknown); impl IEVRFilterConfig { pub unsafe fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumberOfStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxstreams)).ok() + (windows_core::Interface::vtable(self).SetNumberOfStreams)(windows_core::Interface::as_raw(self), dwmaxstreams).ok() } pub unsafe fn GetNumberOfStreams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13427,7 +13416,7 @@ impl core::ops::Deref for IEVRFilterConfigEx { windows_core::imp::interface_hierarchy!(IEVRFilterConfigEx, windows_core::IUnknown, IEVRFilterConfig); impl IEVRFilterConfigEx { pub unsafe fn SetConfigPrefs(&self, dwconfigflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfigPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconfigflags)).ok() + (windows_core::Interface::vtable(self).SetConfigPrefs)(windows_core::Interface::as_raw(self), dwconfigflags).ok() } pub unsafe fn GetConfigPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13483,7 +13472,7 @@ impl IEVRTrustedVideoPlugin { (windows_core::Interface::vtable(self).CanConstrict)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConstriction(&self, dwkpix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConstriction)(windows_core::Interface::as_raw(self), core::mem::transmute(dwkpix)).ok() + (windows_core::Interface::vtable(self).SetConstriction)(windows_core::Interface::as_raw(self), dwkpix).ok() } pub unsafe fn DisableImageExport(&self, bdisable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisableImageExport)(windows_core::Interface::as_raw(self), bdisable.into()).ok() @@ -13658,31 +13647,31 @@ impl IFileIo { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(eaccessmode), core::mem::transmute(eopenmode), pwszfilename.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), eaccessmode, eopenmode, pwszfilename.param().abi()).ok() } pub unsafe fn GetLength(&self, pqwlength: *mut u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(pqwlength)).ok() } pub unsafe fn SetLength(&self, qwlength: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(qwlength)).ok() + (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), qwlength).ok() } pub unsafe fn GetCurrentPosition(&self, pqwposition: *mut u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pqwposition)).ok() } pub unsafe fn SetCurrentPosition(&self, qwposition: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(qwposition)).ok() + (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), qwposition).ok() } pub unsafe fn IsEndOfStream(&self, pbendofstream: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsEndOfStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pbendofstream)).ok() } pub unsafe fn Read(&self, pbt: *mut u8, ul: u32, pulread: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pbt), core::mem::transmute(ul), core::mem::transmute(pulread)).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pbt), ul, core::mem::transmute(pulread)).ok() } pub unsafe fn Write(&self, pbt: *mut u8, ul: u32, pulwritten: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(pbt), core::mem::transmute(ul), core::mem::transmute(pulwritten)).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(pbt), ul, core::mem::transmute(pulwritten)).ok() } pub unsafe fn Seek(&self, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(eseekorigin), core::mem::transmute(qwseekoffset), core::mem::transmute(dwseekflags), core::mem::transmute(pqwcurrentposition)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), eseekorigin, qwseekoffset, dwseekflags, core::mem::transmute(pqwcurrentposition)).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -13890,7 +13879,7 @@ impl core::ops::Deref for IMF2DBuffer2 { windows_core::imp::interface_hierarchy!(IMF2DBuffer2, windows_core::IUnknown, IMF2DBuffer); impl IMF2DBuffer2 { pub unsafe fn Lock2DSize(&self, lockflags: MF2DBuffer_LockFlags, ppbscanline0: *mut *mut u8, plpitch: *mut i32, ppbbufferstart: *mut *mut u8, pcbbufferlength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock2DSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lockflags), core::mem::transmute(ppbscanline0), core::mem::transmute(plpitch), core::mem::transmute(ppbbufferstart), core::mem::transmute(pcbbufferlength)).ok() + (windows_core::Interface::vtable(self).Lock2DSize)(windows_core::Interface::as_raw(self), lockflags, core::mem::transmute(ppbscanline0), core::mem::transmute(plpitch), core::mem::transmute(ppbbufferstart), core::mem::transmute(pcbbufferlength)).ok() } pub unsafe fn Copy2DTo(&self, pdestbuffer: P0) -> windows_core::Result<()> where @@ -13940,7 +13929,7 @@ impl IMFASFContentInfo { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseHeader)(windows_core::Interface::as_raw(self), piheaderbuffer.param().abi(), core::mem::transmute(cboffsetwithinheader)).ok() + (windows_core::Interface::vtable(self).ParseHeader)(windows_core::Interface::as_raw(self), piheaderbuffer.param().abi(), cboffsetwithinheader).ok() } pub unsafe fn GenerateHeader(&self, piheader: P0) -> windows_core::Result where @@ -13966,7 +13955,7 @@ impl IMFASFContentInfo { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetEncodingConfigurationPropertyStore(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEncodingConfigurationPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEncodingConfigurationPropertyStore)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -14075,7 +14064,7 @@ windows_core::imp::define_interface!(IMFASFIndexer, IMFASFIndexer_Vtbl, 0x53590f windows_core::imp::interface_hierarchy!(IMFASFIndexer, windows_core::IUnknown); impl IMFASFIndexer { pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14095,21 +14084,21 @@ impl IMFASFIndexer { (windows_core::Interface::vtable(self).GetIndexPosition)(windows_core::Interface::as_raw(self), picontentinfo.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetIndexByteStreams(&self, ppibytestreams: *const Option, cbytestreams: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndexByteStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(ppibytestreams), core::mem::transmute(cbytestreams)).ok() + (windows_core::Interface::vtable(self).SetIndexByteStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(ppibytestreams), cbytestreams).ok() } pub unsafe fn GetIndexByteStreamCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIndexByteStreamCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetIndexStatus(&self, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut super::super::Foundation::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIndexStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pindexidentifier), core::mem::transmute(pfisindexed), core::mem::transmute(pbindexdescriptor), core::mem::transmute(pcbindexdescriptor)).ok() + (windows_core::Interface::vtable(self).GetIndexStatus)(windows_core::Interface::as_raw(self), pindexidentifier, core::mem::transmute(pfisindexed), core::mem::transmute(pbindexdescriptor), core::mem::transmute(pcbindexdescriptor)).ok() } pub unsafe fn SetIndexStatus(&self, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndexStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pbindexdescriptor), core::mem::transmute(cbindexdescriptor), fgenerateindex.into()).ok() + (windows_core::Interface::vtable(self).SetIndexStatus)(windows_core::Interface::as_raw(self), pbindexdescriptor, cbindexdescriptor, fgenerateindex.into()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetSeekPositionForValue(&self, pvarvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pcboffsetwithindata: *mut u64, phnsapproxtime: *mut i64, pdwpayloadnumberofstreamwithinpacket: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSeekPositionForValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), core::mem::transmute(pindexidentifier), core::mem::transmute(pcboffsetwithindata), core::mem::transmute(phnsapproxtime), core::mem::transmute(pdwpayloadnumberofstreamwithinpacket)).ok() + (windows_core::Interface::vtable(self).GetSeekPositionForValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), pindexidentifier, core::mem::transmute(pcboffsetwithindata), core::mem::transmute(phnsapproxtime), core::mem::transmute(pdwpayloadnumberofstreamwithinpacket)).ok() } pub unsafe fn GenerateIndexEntries(&self, piasfpacketsample: P0) -> windows_core::Result<()> where @@ -14131,7 +14120,7 @@ impl IMFASFIndexer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompletedIndex)(windows_core::Interface::as_raw(self), piindexbuffer.param().abi(), core::mem::transmute(cboffsetwithinindex)).ok() + (windows_core::Interface::vtable(self).GetCompletedIndex)(windows_core::Interface::as_raw(self), piindexbuffer.param().abi(), cboffsetwithinindex).ok() } } #[repr(C)] @@ -14282,7 +14271,7 @@ impl IMFASFMultiplexer { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picontentinfo.param().abi()).ok() } pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14292,7 +14281,7 @@ impl IMFASFMultiplexer { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessSample)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), pisample.param().abi(), core::mem::transmute(hnstimestampadjust)).ok() + (windows_core::Interface::vtable(self).ProcessSample)(windows_core::Interface::as_raw(self), wstreamnumber, pisample.param().abi(), hnstimestampadjust).ok() } pub unsafe fn GetNextPacket(&self, pdwstatusflags: *mut u32, ppipacket: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNextPacket)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatusflags), core::mem::transmute(ppipacket)).ok() @@ -14308,10 +14297,10 @@ impl IMFASFMultiplexer { } pub unsafe fn GetStatistics(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).map(|| result__) } pub unsafe fn SetSyncTolerance(&self, mssynctolerance: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncTolerance)(windows_core::Interface::as_raw(self), core::mem::transmute(mssynctolerance)).ok() + (windows_core::Interface::vtable(self).SetSyncTolerance)(windows_core::Interface::as_raw(self), mssynctolerance).ok() } } #[repr(C)] @@ -14414,23 +14403,23 @@ impl IMFASFMutualExclusion { (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, guidtype: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), guidtype).ok() } pub unsafe fn GetRecordCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetStreamsForRecord(&self, dwrecordnumber: u32, pwstreamnumarray: *mut u16, pcstreams: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamsForRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordnumber), core::mem::transmute(pwstreamnumarray), core::mem::transmute(pcstreams)).ok() + (windows_core::Interface::vtable(self).GetStreamsForRecord)(windows_core::Interface::as_raw(self), dwrecordnumber, core::mem::transmute(pwstreamnumarray), core::mem::transmute(pcstreams)).ok() } pub unsafe fn AddStreamForRecord(&self, dwrecordnumber: u32, wstreamnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStreamForRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordnumber), core::mem::transmute(wstreamnumber)).ok() + (windows_core::Interface::vtable(self).AddStreamForRecord)(windows_core::Interface::as_raw(self), dwrecordnumber, wstreamnumber).ok() } pub unsafe fn RemoveStreamFromRecord(&self, dwrecordnumber: u32, wstreamnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStreamFromRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordnumber), core::mem::transmute(wstreamnumber)).ok() + (windows_core::Interface::vtable(self).RemoveStreamFromRecord)(windows_core::Interface::as_raw(self), dwrecordnumber, wstreamnumber).ok() } pub unsafe fn RemoveRecord(&self, dwrecordnumber: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrecordnumber)).ok() + (windows_core::Interface::vtable(self).RemoveRecord)(windows_core::Interface::as_raw(self), dwrecordnumber).ok() } pub unsafe fn AddRecord(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14559,11 +14548,11 @@ impl IMFASFProfile { (windows_core::Interface::vtable(self).GetStreamCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetStream(&self, dwstreamindex: u32, pwstreamnumber: *mut u16, ppistream: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(pwstreamnumber), core::mem::transmute(ppistream)).ok() + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pwstreamnumber), core::mem::transmute(ppistream)).ok() } pub unsafe fn GetStreamByNumber(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamByNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamByNumber)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetStream(&self, pistream: P0) -> windows_core::Result<()> where @@ -14572,7 +14561,7 @@ impl IMFASFProfile { (windows_core::Interface::vtable(self).SetStream)(windows_core::Interface::as_raw(self), pistream.param().abi()).ok() } pub unsafe fn RemoveStream(&self, wstreamnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber)).ok() + (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), wstreamnumber).ok() } pub unsafe fn CreateStream(&self, pimediatype: P0) -> windows_core::Result where @@ -14587,7 +14576,7 @@ impl IMFASFProfile { } pub unsafe fn GetMutualExclusion(&self, dwmutexindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMutualExclusion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmutexindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMutualExclusion)(windows_core::Interface::as_raw(self), dwmutexindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddMutualExclusion(&self, pimutex: P0) -> windows_core::Result<()> where @@ -14596,7 +14585,7 @@ impl IMFASFProfile { (windows_core::Interface::vtable(self).AddMutualExclusion)(windows_core::Interface::as_raw(self), pimutex.param().abi()).ok() } pub unsafe fn RemoveMutualExclusion(&self, dwmutexindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveMutualExclusion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmutexindex)).ok() + (windows_core::Interface::vtable(self).RemoveMutualExclusion)(windows_core::Interface::as_raw(self), dwmutexindex).ok() } pub unsafe fn CreateMutualExclusion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14820,14 +14809,14 @@ impl IMFASFSplitter { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picontentinfo.param().abi()).ok() } pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SelectStreams(&self, pwstreamnumbers: *const u16, wnumstreams: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(pwstreamnumbers), core::mem::transmute(wnumstreams)).ok() + (windows_core::Interface::vtable(self).SelectStreams)(windows_core::Interface::as_raw(self), pwstreamnumbers, wnumstreams).ok() } pub unsafe fn GetSelectedStreams(&self, pwstreamnumbers: *mut u16, pwnumstreams: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSelectedStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(pwstreamnumbers), core::mem::transmute(pwnumstreams)).ok() @@ -14836,7 +14825,7 @@ impl IMFASFSplitter { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseData)(windows_core::Interface::as_raw(self), pibuffer.param().abi(), core::mem::transmute(cbbufferoffset), core::mem::transmute(cblength)).ok() + (windows_core::Interface::vtable(self).ParseData)(windows_core::Interface::as_raw(self), pibuffer.param().abi(), cbbufferoffset, cblength).ok() } pub unsafe fn GetNextSample(&self, pdwstatusflags: *mut ASF_STATUSFLAGS, pwstreamnumber: *mut u16, ppisample: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNextSample)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatusflags), core::mem::transmute(pwstreamnumber), core::mem::transmute(ppisample)).ok() @@ -14958,7 +14947,7 @@ impl IMFASFStreamConfig { (windows_core::Interface::vtable(self).GetStreamNumber)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetStreamNumber(&self, wstreamnum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum)).ok() + (windows_core::Interface::vtable(self).SetStreamNumber)(windows_core::Interface::as_raw(self), wstreamnum).ok() } pub unsafe fn GetMediaType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14975,10 +14964,10 @@ impl IMFASFStreamConfig { (windows_core::Interface::vtable(self).GetPayloadExtensionCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPayloadExtension(&self, wpayloadextensionnumber: u16, pguidextensionsystemid: *mut windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPayloadExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(wpayloadextensionnumber), core::mem::transmute(pguidextensionsystemid), core::mem::transmute(pcbextensiondatasize), core::mem::transmute(pbextensionsysteminfo), core::mem::transmute(pcbextensionsysteminfo)).ok() + (windows_core::Interface::vtable(self).GetPayloadExtension)(windows_core::Interface::as_raw(self), wpayloadextensionnumber, core::mem::transmute(pguidextensionsystemid), core::mem::transmute(pcbextensiondatasize), core::mem::transmute(pbextensionsysteminfo), core::mem::transmute(pcbextensionsysteminfo)).ok() } pub unsafe fn AddPayloadExtension(&self, guidextensionsystemid: windows_core::GUID, cbextensiondatasize: u16, pbextensionsysteminfo: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPayloadExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(guidextensionsystemid), core::mem::transmute(cbextensiondatasize), core::mem::transmute(pbextensionsysteminfo.as_ptr()), pbextensionsysteminfo.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddPayloadExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(guidextensionsystemid), cbextensiondatasize, core::mem::transmute(pbextensionsysteminfo.as_ptr()), pbextensionsysteminfo.len().try_into().unwrap()).ok() } pub unsafe fn RemoveAllPayloadExtensions(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllPayloadExtensions)(windows_core::Interface::as_raw(self)).ok() @@ -15110,13 +15099,13 @@ impl IMFASFStreamPrioritization { (windows_core::Interface::vtable(self).GetStreamCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetStream(&self, dwstreamindex: u32, pwstreamnumber: *mut u16, pwstreamflags: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(pwstreamnumber), core::mem::transmute(pwstreamflags)).ok() + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pwstreamnumber), core::mem::transmute(pwstreamflags)).ok() } pub unsafe fn AddStream(&self, wstreamnumber: u16, wstreamflags: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), core::mem::transmute(wstreamflags)).ok() + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), wstreamnumber, wstreamflags).ok() } pub unsafe fn RemoveStream(&self, dwstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)).ok() + (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15200,47 +15189,47 @@ impl IMFASFStreamSelector { } pub unsafe fn GetOutputStreamCount(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputStreamCount)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn GetOutputStreamNumbers(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamNumbers)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputStreamNumbers)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn GetOutputFromStream(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputFromStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputFromStream)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetOutputOverride(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputOverride)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn SetOutputOverride(&self, dwoutputnum: u32, selection: ASF_SELECTION_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(selection)).ok() + (windows_core::Interface::vtable(self).SetOutputOverride)(windows_core::Interface::as_raw(self), dwoutputnum, selection).ok() } pub unsafe fn GetOutputMutexCount(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputMutexCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputMutexCount)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn GetOutputMutex(&self, dwoutputnum: u32, dwmutexnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputMutex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(dwmutexnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputMutex)(windows_core::Interface::as_raw(self), dwoutputnum, dwmutexnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetOutputMutexSelection(&self, dwoutputnum: u32, dwmutexnum: u32, wselectedrecord: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMutexSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(dwmutexnum), core::mem::transmute(wselectedrecord)).ok() + (windows_core::Interface::vtable(self).SetOutputMutexSelection)(windows_core::Interface::as_raw(self), dwoutputnum, dwmutexnum, wselectedrecord).ok() } pub unsafe fn GetBandwidthStepCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBandwidthStepCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetBandwidthStep(&self, dwstepnum: u32, pdwbitrate: *mut u32, rgwstreamnumbers: *mut u16, rgselections: *mut ASF_SELECTION_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBandwidthStep)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstepnum), core::mem::transmute(pdwbitrate), core::mem::transmute(rgwstreamnumbers), core::mem::transmute(rgselections)).ok() + (windows_core::Interface::vtable(self).GetBandwidthStep)(windows_core::Interface::as_raw(self), dwstepnum, core::mem::transmute(pdwbitrate), core::mem::transmute(rgwstreamnumbers), core::mem::transmute(rgselections)).ok() } pub unsafe fn BitrateToStepNumber(&self, dwbitrate: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BitrateToStepNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbitrate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).BitrateToStepNumber)(windows_core::Interface::as_raw(self), dwbitrate, &mut result__).map(|| result__) } pub unsafe fn SetStreamSelectorFlags(&self, dwstreamselectorflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamSelectorFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamselectorflags)).ok() + (windows_core::Interface::vtable(self).SetStreamSelectorFlags)(windows_core::Interface::as_raw(self), dwstreamselectorflags).ok() } } #[repr(C)] @@ -15584,7 +15573,7 @@ impl IMFAsyncResult { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetStatus(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), hrstatus).ok() } pub unsafe fn GetObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15663,103 +15652,103 @@ windows_core::imp::interface_hierarchy!(IMFAttributes, windows_core::IUnknown); impl IMFAttributes { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetItem(&self, guidkey: *const windows_core::GUID, pvalue: Option<*mut super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetItemType(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemType)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemType)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn CompareItem(&self, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareItem)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareItem)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(value), &mut result__).map(|| result__) } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), ptheirs.param().abi(), core::mem::transmute(matchtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), ptheirs.param().abi(), matchtype, &mut result__).map(|| result__) } pub unsafe fn GetUINT32(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUINT32)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUINT32)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } pub unsafe fn GetUINT64(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUINT64)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUINT64)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } pub unsafe fn GetDouble(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDouble)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDouble)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } pub unsafe fn GetGUID(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } pub unsafe fn GetStringLength(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } pub unsafe fn GetString(&self, guidkey: *const windows_core::GUID, pwszvalue: &mut [u16], pcchlength: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(pwszvalue.as_ptr()), pwszvalue.len().try_into().unwrap(), core::mem::transmute(pcchlength.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(pwszvalue.as_ptr()), pwszvalue.len().try_into().unwrap(), core::mem::transmute(pcchlength.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetAllocatedString(&self, guidkey: *const windows_core::GUID, ppwszvalue: *mut windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAllocatedString)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(ppwszvalue), core::mem::transmute(pcchlength)).ok() + (windows_core::Interface::vtable(self).GetAllocatedString)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(ppwszvalue), core::mem::transmute(pcchlength)).ok() } pub unsafe fn GetBlobSize(&self, guidkey: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBlobSize)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBlobSize)(windows_core::Interface::as_raw(self), guidkey, &mut result__).map(|| result__) } pub unsafe fn GetBlob(&self, guidkey: *const windows_core::GUID, pbuf: &mut [u8], pcbblobsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap(), core::mem::transmute(pcbblobsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetBlob)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap(), core::mem::transmute(pcbblobsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetAllocatedBlob(&self, guidkey: *const windows_core::GUID, ppbuf: *mut *mut u8, pcbsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAllocatedBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(ppbuf), core::mem::transmute(pcbsize)).ok() + (windows_core::Interface::vtable(self).GetAllocatedBlob)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(ppbuf), core::mem::transmute(pcbsize)).ok() } pub unsafe fn GetUnknown(&self, guidkey: *const windows_core::GUID) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetUnknown)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUnknown)(windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetItem(&self, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(value)).ok() } pub unsafe fn DeleteItem(&self, guidkey: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey)).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), guidkey).ok() } pub unsafe fn DeleteAllItems(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAllItems)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetUINT32(&self, guidkey: *const windows_core::GUID, unvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUINT32)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(unvalue)).ok() + (windows_core::Interface::vtable(self).SetUINT32)(windows_core::Interface::as_raw(self), guidkey, unvalue).ok() } pub unsafe fn SetUINT64(&self, guidkey: *const windows_core::GUID, unvalue: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUINT64)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(unvalue)).ok() + (windows_core::Interface::vtable(self).SetUINT64)(windows_core::Interface::as_raw(self), guidkey, unvalue).ok() } pub unsafe fn SetDouble(&self, guidkey: *const windows_core::GUID, fvalue: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDouble)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).SetDouble)(windows_core::Interface::as_raw(self), guidkey, fvalue).ok() } pub unsafe fn SetGUID(&self, guidkey: *const windows_core::GUID, guidvalue: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(guidvalue)).ok() + (windows_core::Interface::vtable(self).SetGUID)(windows_core::Interface::as_raw(self), guidkey, guidvalue).ok() } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), wszvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.param().abi()).ok() } pub unsafe fn SetBlob(&self, guidkey: *const windows_core::GUID, pbuf: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetBlob)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() } pub unsafe fn SetUnknown(&self, guidkey: *const windows_core::GUID, punknown: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), punknown.param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.param().abi()).ok() } pub unsafe fn LockStore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -15773,7 +15762,7 @@ impl IMFAttributes { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetItemByIndex(&self, unindex: u32, pguidkey: *mut windows_core::GUID, pvalue: Option<*mut super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(unindex), core::mem::transmute(pguidkey), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetItemByIndex)(windows_core::Interface::as_raw(self), unindex, core::mem::transmute(pguidkey), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where @@ -16129,7 +16118,7 @@ windows_core::imp::define_interface!(IMFAudioPolicy, IMFAudioPolicy_Vtbl, 0xa063 windows_core::imp::interface_hierarchy!(IMFAudioPolicy, windows_core::IUnknown); impl IMFAudioPolicy { pub unsafe fn SetGroupingParam(&self, rguidclass: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupingParam)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidclass)).ok() + (windows_core::Interface::vtable(self).SetGroupingParam)(windows_core::Interface::as_raw(self), rguidclass).ok() } pub unsafe fn GetGroupingParam(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16241,11 +16230,11 @@ impl IMFAudioStreamVolume { (windows_core::Interface::vtable(self).GetChannelCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannelVolume(&self, dwindex: u32, flevel: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannelVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(flevel)).ok() + (windows_core::Interface::vtable(self).SetChannelVolume)(windows_core::Interface::as_raw(self), dwindex, flevel).ok() } pub unsafe fn GetChannelVolume(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChannelVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetChannelVolume)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn SetAllVolumes(&self, pfvolumes: &[f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAllVolumes)(windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), core::mem::transmute(pfvolumes.as_ptr())).ok() @@ -16371,14 +16360,14 @@ impl IMFByteStream { (windows_core::Interface::vtable(self).GetLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLength(&self, qwlength: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(qwlength)).ok() + (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), qwlength).ok() } pub unsafe fn GetCurrentPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentPosition(&self, qwposition: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(qwposition)).ok() + (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), qwposition).ok() } pub unsafe fn IsEndOfStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16421,7 +16410,7 @@ impl IMFByteStream { } pub unsafe fn Seek(&self, seekorigin: MFBYTESTREAM_SEEK_ORIGIN, llseekoffset: i64, dwseekflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(seekorigin), core::mem::transmute(llseekoffset), core::mem::transmute(dwseekflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), seekorigin, llseekoffset, dwseekflags, &mut result__).map(|| result__) } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() @@ -16604,7 +16593,7 @@ windows_core::imp::define_interface!(IMFByteStreamBuffering, IMFByteStreamBuffer windows_core::imp::interface_hierarchy!(IMFByteStreamBuffering, windows_core::IUnknown); impl IMFByteStreamBuffering { pub unsafe fn SetBufferingParams(&self, pparams: *const MFBYTESTREAM_BUFFERING_PARAMS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferingParams)(windows_core::Interface::as_raw(self), core::mem::transmute(pparams)).ok() + (windows_core::Interface::vtable(self).SetBufferingParams)(windows_core::Interface::as_raw(self), pparams).ok() } pub unsafe fn EnableBuffering(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableBuffering)(windows_core::Interface::as_raw(self), fenable.into()).ok() @@ -16692,7 +16681,7 @@ impl IMFByteStreamCacheControl2 { (windows_core::Interface::vtable(self).GetByteRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(pcranges), core::mem::transmute(ppranges)).ok() } pub unsafe fn SetCacheLimit(&self, qwbytes: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCacheLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(qwbytes)).ok() + (windows_core::Interface::vtable(self).SetCacheLimit)(windows_core::Interface::as_raw(self), qwbytes).ok() } pub unsafe fn IsBackgroundTransferActive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16755,7 +16744,7 @@ impl IMFByteStreamHandler { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pwszurl.param().abi(), core::mem::transmute(dwflags), pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pwszurl.param().abi(), dwflags, pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndCreateObject(&self, presult: P0, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> where @@ -16873,7 +16862,7 @@ impl IMFByteStreamTimeSeek { (windows_core::Interface::vtable(self).IsTimeSeekSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn TimeSeek(&self, qwtimeposition: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TimeSeek)(windows_core::Interface::as_raw(self), core::mem::transmute(qwtimeposition)).ok() + (windows_core::Interface::vtable(self).TimeSeek)(windows_core::Interface::as_raw(self), qwtimeposition).ok() } pub unsafe fn GetTimeSeekResult(&self, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTimeSeekResult)(windows_core::Interface::as_raw(self), core::mem::transmute(pqwstarttime), core::mem::transmute(pqwstoptime), core::mem::transmute(pqwduration)).ok() @@ -17069,18 +17058,18 @@ impl IMFCameraControlDefaultsCollection { } pub unsafe fn GetControl(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControl)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetControl)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOrAddExtendedControl(&self, configtype: MF_CAMERA_CONTROL_CONFIGURATION_TYPE, constrolid: u32, streamid: u32, datasize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOrAddExtendedControl)(windows_core::Interface::as_raw(self), core::mem::transmute(configtype), core::mem::transmute(constrolid), core::mem::transmute(streamid), core::mem::transmute(datasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOrAddExtendedControl)(windows_core::Interface::as_raw(self), configtype, constrolid, streamid, datasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOrAddControl(&self, configtype: MF_CAMERA_CONTROL_CONFIGURATION_TYPE, controlset: *const windows_core::GUID, constrolid: u32, controlsize: u32, datasize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOrAddControl)(windows_core::Interface::as_raw(self), core::mem::transmute(configtype), core::mem::transmute(controlset), core::mem::transmute(constrolid), core::mem::transmute(controlsize), core::mem::transmute(datasize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOrAddControl)(windows_core::Interface::as_raw(self), configtype, controlset, constrolid, controlsize, datasize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveControl(&self, controlset: *const windows_core::GUID, constrolid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveControl)(windows_core::Interface::as_raw(self), core::mem::transmute(controlset), core::mem::transmute(constrolid)).ok() + (windows_core::Interface::vtable(self).RemoveControl)(windows_core::Interface::as_raw(self), controlset, constrolid).ok() } pub unsafe fn RemoveAllControls(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllControls)(windows_core::Interface::as_raw(self)).ok() @@ -17176,10 +17165,10 @@ impl IMFCameraControlMonitor { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddControlSubscription(&self, controlset: windows_core::GUID, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddControlSubscription)(windows_core::Interface::as_raw(self), core::mem::transmute(controlset), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).AddControlSubscription)(windows_core::Interface::as_raw(self), core::mem::transmute(controlset), id).ok() } pub unsafe fn RemoveControlSubscription(&self, controlset: windows_core::GUID, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveControlSubscription)(windows_core::Interface::as_raw(self), core::mem::transmute(controlset), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).RemoveControlSubscription)(windows_core::Interface::as_raw(self), core::mem::transmute(controlset), id).ok() } pub unsafe fn Shutdown(&self) { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)) @@ -17241,10 +17230,10 @@ windows_core::imp::define_interface!(IMFCameraControlNotify, IMFCameraControlNot windows_core::imp::interface_hierarchy!(IMFCameraControlNotify, windows_core::IUnknown); impl IMFCameraControlNotify { pub unsafe fn OnChange(&self, controlset: *const windows_core::GUID, id: u32) { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), core::mem::transmute(controlset), core::mem::transmute(id)) + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), controlset, id) } pub unsafe fn OnError(&self, hrstatus: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)) + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hrstatus) } } #[repr(C)] @@ -17395,7 +17384,7 @@ windows_core::imp::define_interface!(IMFCameraSyncObject, IMFCameraSyncObject_Vt windows_core::imp::interface_hierarchy!(IMFCameraSyncObject, windows_core::IUnknown); impl IMFCameraSyncObject { pub unsafe fn WaitOnSignal(&self, timeoutinms: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitOnSignal)(windows_core::Interface::as_raw(self), core::mem::transmute(timeoutinms)).ok() + (windows_core::Interface::vtable(self).WaitOnSignal)(windows_core::Interface::as_raw(self), timeoutinms).ok() } pub unsafe fn Shutdown(&self) { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)) @@ -17461,7 +17450,7 @@ impl IMFCaptureEngine { } pub unsafe fn GetSink(&self, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), core::mem::transmute(mfcaptureenginesinktype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), mfcaptureenginesinktype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSource(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17561,7 +17550,7 @@ impl IMFCaptureEngineClassFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -17821,7 +17810,7 @@ impl core::ops::Deref for IMFCapturePreviewSink { windows_core::imp::interface_hierarchy!(IMFCapturePreviewSink, windows_core::IUnknown, IMFCaptureSink); impl IMFCapturePreviewSink { pub unsafe fn SetRenderHandle(&self, handle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetRenderHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn SetRenderSurface(&self, psurface: P0) -> windows_core::Result<()> where @@ -17836,7 +17825,7 @@ impl IMFCapturePreviewSink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamsinkindex), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), dwstreamsinkindex, pcallback.param().abi()).ok() } pub unsafe fn GetMirrorState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17847,10 +17836,10 @@ impl IMFCapturePreviewSink { } pub unsafe fn GetRotation(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRotation)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetRotation(&self, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwrotationvalue)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), dwstreamindex, dwrotationvalue).ok() } pub unsafe fn SetCustomSink(&self, pmediasink: P0) -> windows_core::Result<()> where @@ -17964,7 +17953,7 @@ impl IMFCaptureRecordSink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), core::mem::transmute(guidcontainertype)).ok() + (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), guidcontainertype).ok() } pub unsafe fn SetOutputFileName(&self, filename: P0) -> windows_core::Result<()> where @@ -17976,7 +17965,7 @@ impl IMFCaptureRecordSink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamsinkindex), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), dwstreamsinkindex, pcallback.param().abi()).ok() } pub unsafe fn SetCustomSink(&self, pmediasink: P0) -> windows_core::Result<()> where @@ -17986,10 +17975,10 @@ impl IMFCaptureRecordSink { } pub unsafe fn GetRotation(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRotation)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetRotation(&self, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwrotationvalue)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), dwstreamindex, dwrotationvalue).ok() } } #[repr(C)] @@ -18061,17 +18050,17 @@ windows_core::imp::define_interface!(IMFCaptureSink, IMFCaptureSink_Vtbl, 0x72d6 windows_core::imp::interface_hierarchy!(IMFCaptureSink, windows_core::IUnknown); impl IMFCaptureSink { pub unsafe fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutputMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsinkstreamindex), core::mem::transmute(ppmediatype.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOutputMediaType)(windows_core::Interface::as_raw(self), dwsinkstreamindex, core::mem::transmute(ppmediatype.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetService(&self, dwsinkstreamindex: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsinkstreamindex), core::mem::transmute(rguidservice), core::mem::transmute(riid), core::mem::transmute(ppunknown.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), dwsinkstreamindex, rguidservice, riid, core::mem::transmute(ppunknown.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: P1, pattributes: P2, pdwsinkstreamindex: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), pmediatype.param().abi(), pattributes.param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.param().abi(), pattributes.param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Prepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Prepare)(windows_core::Interface::as_raw(self)).ok() @@ -18146,7 +18135,7 @@ impl IMFCaptureSink2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), pmediatype.param().abi(), pencodingattributes.param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pmediatype.param().abi(), pencodingattributes.param().abi()).ok() } } #[repr(C)] @@ -18174,41 +18163,41 @@ windows_core::imp::define_interface!(IMFCaptureSource, IMFCaptureSource_Vtbl, 0x windows_core::imp::interface_hierarchy!(IMFCaptureSource, windows_core::IUnknown); impl IMFCaptureSource { pub unsafe fn GetCaptureDeviceSource(&self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppmediasource: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCaptureDeviceSource)(windows_core::Interface::as_raw(self), core::mem::transmute(mfcaptureenginedevicetype), core::mem::transmute(ppmediasource.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetCaptureDeviceSource)(windows_core::Interface::as_raw(self), mfcaptureenginedevicetype, core::mem::transmute(ppmediasource.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCaptureDeviceActivate(&self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppactivate: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCaptureDeviceActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(mfcaptureenginedevicetype), core::mem::transmute(ppactivate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetCaptureDeviceActivate)(windows_core::Interface::as_raw(self), mfcaptureenginedevicetype, core::mem::transmute(ppactivate.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetService(&self, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidservice), core::mem::transmute(riid), core::mem::transmute(ppunknown.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), rguidservice, riid, core::mem::transmute(ppunknown.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddEffect(&self, dwsourcestreamindex: u32, punknown: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), punknown.param().abi()).ok() + (windows_core::Interface::vtable(self).AddEffect)(windows_core::Interface::as_raw(self), dwsourcestreamindex, punknown.param().abi()).ok() } pub unsafe fn RemoveEffect(&self, dwsourcestreamindex: u32, punknown: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), punknown.param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveEffect)(windows_core::Interface::as_raw(self), dwsourcestreamindex, punknown.param().abi()).ok() } pub unsafe fn RemoveAllEffects(&self, dwsourcestreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAllEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex)).ok() + (windows_core::Interface::vtable(self).RemoveAllEffects)(windows_core::Interface::as_raw(self), dwsourcestreamindex).ok() } pub unsafe fn GetAvailableDeviceMediaType(&self, dwsourcestreamindex: u32, dwmediatypeindex: u32, ppmediatype: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAvailableDeviceMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), core::mem::transmute(dwmediatypeindex), core::mem::transmute(ppmediatype.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetAvailableDeviceMediaType)(windows_core::Interface::as_raw(self), dwsourcestreamindex, dwmediatypeindex, core::mem::transmute(ppmediatype.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetCurrentDeviceMediaType(&self, dwsourcestreamindex: u32, pmediatype: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCurrentDeviceMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), pmediatype.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCurrentDeviceMediaType)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.param().abi()).ok() } pub unsafe fn GetCurrentDeviceMediaType(&self, dwsourcestreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentDeviceMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCurrentDeviceMediaType)(windows_core::Interface::as_raw(self), dwsourcestreamindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDeviceStreamCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18216,18 +18205,18 @@ impl IMFCaptureSource { } pub unsafe fn GetDeviceStreamCategory(&self, dwsourcestreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceStreamCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcestreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDeviceStreamCategory)(windows_core::Interface::as_raw(self), dwsourcestreamindex, &mut result__).map(|| result__) } pub unsafe fn GetMirrorState(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMirrorState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMirrorState)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetMirrorState(&self, dwstreamindex: u32, fmirrorstate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMirrorState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), fmirrorstate.into()).ok() + (windows_core::Interface::vtable(self).SetMirrorState)(windows_core::Interface::as_raw(self), dwstreamindex, fmirrorstate.into()).ok() } pub unsafe fn GetStreamIndexFromFriendlyName(&self, uifriendlyname: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamIndexFromFriendlyName)(windows_core::Interface::as_raw(self), core::mem::transmute(uifriendlyname), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamIndexFromFriendlyName)(windows_core::Interface::as_raw(self), uifriendlyname, &mut result__).map(|| result__) } } #[repr(C)] @@ -18420,7 +18409,7 @@ impl IMFClock { (windows_core::Interface::vtable(self).GetClockCharacteristics)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetCorrelatedTime(&self, dwreserved: u32, pllclocktime: *mut i64, phnssystemtime: *mut i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCorrelatedTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), core::mem::transmute(pllclocktime), core::mem::transmute(phnssystemtime)).ok() + (windows_core::Interface::vtable(self).GetCorrelatedTime)(windows_core::Interface::as_raw(self), dwreserved, core::mem::transmute(pllclocktime), core::mem::transmute(phnssystemtime)).ok() } pub unsafe fn GetContinuityKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18428,7 +18417,7 @@ impl IMFClock { } pub unsafe fn GetState(&self, dwreserved: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), dwreserved, &mut result__).map(|| result__) } pub unsafe fn GetProperties(&self, pclockproperties: *mut MFCLOCK_PROPERTIES) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pclockproperties)).ok() @@ -18559,19 +18548,19 @@ windows_core::imp::define_interface!(IMFClockStateSink, IMFClockStateSink_Vtbl, windows_core::imp::interface_hierarchy!(IMFClockStateSink, windows_core::IUnknown); impl IMFClockStateSink { pub unsafe fn OnClockStart(&self, hnssystemtime: i64, llclockstartoffset: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClockStart)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssystemtime), core::mem::transmute(llclockstartoffset)).ok() + (windows_core::Interface::vtable(self).OnClockStart)(windows_core::Interface::as_raw(self), hnssystemtime, llclockstartoffset).ok() } pub unsafe fn OnClockStop(&self, hnssystemtime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClockStop)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssystemtime)).ok() + (windows_core::Interface::vtable(self).OnClockStop)(windows_core::Interface::as_raw(self), hnssystemtime).ok() } pub unsafe fn OnClockPause(&self, hnssystemtime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClockPause)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssystemtime)).ok() + (windows_core::Interface::vtable(self).OnClockPause)(windows_core::Interface::as_raw(self), hnssystemtime).ok() } pub unsafe fn OnClockRestart(&self, hnssystemtime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClockRestart)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssystemtime)).ok() + (windows_core::Interface::vtable(self).OnClockRestart)(windows_core::Interface::as_raw(self), hnssystemtime).ok() } pub unsafe fn OnClockSetRate(&self, hnssystemtime: i64, flrate: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClockSetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssystemtime), core::mem::transmute(flrate)).ok() + (windows_core::Interface::vtable(self).OnClockSetRate)(windows_core::Interface::as_raw(self), hnssystemtime, flrate).ok() } } #[repr(C)] @@ -18635,7 +18624,7 @@ impl IMFCollection { } pub unsafe fn GetElement(&self, dwelementindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwelementindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), dwelementindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddElement(&self, punkelement: P0) -> windows_core::Result<()> where @@ -18645,13 +18634,13 @@ impl IMFCollection { } pub unsafe fn RemoveElement(&self, dwelementindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RemoveElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwelementindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RemoveElement)(windows_core::Interface::as_raw(self), dwelementindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertElementAt(&self, dwindex: u32, punknown: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertElementAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), punknown.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertElementAt)(windows_core::Interface::as_raw(self), dwindex, punknown.param().abi()).ok() } pub unsafe fn RemoveAllElements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllElements)(windows_core::Interface::as_raw(self)).ok() @@ -18759,7 +18748,7 @@ impl IMFContentDecryptionModule { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), core::mem::transmute(sessiontype), callbacks.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), sessiontype, callbacks.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetServerCertificate(&self, certificate: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetServerCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(certificate.as_ptr()), certificate.len().try_into().unwrap()).ok() @@ -19139,7 +19128,7 @@ impl IMFContentDecryptionModuleSessionCallbacks { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).KeyMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(messagetype), core::mem::transmute(message.as_ptr()), message.len().try_into().unwrap(), destinationurl.param().abi()).ok() + (windows_core::Interface::vtable(self).KeyMessage)(windows_core::Interface::as_raw(self), messagetype, core::mem::transmute(message.as_ptr()), message.len().try_into().unwrap(), destinationurl.param().abi()).ok() } pub unsafe fn KeyStatusChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KeyStatusChanged)(windows_core::Interface::as_raw(self)).ok() @@ -19320,7 +19309,7 @@ windows_core::imp::define_interface!(IMFContentProtectionDevice, IMFContentProte windows_core::imp::interface_hierarchy!(IMFContentProtectionDevice, windows_core::IUnknown); impl IMFContentProtectionDevice { pub unsafe fn InvokeFunction(&self, functionid: u32, inputbuffer: &[u8], outputbufferbytecount: *mut u32, outputbuffer: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), inputbuffer.len().try_into().unwrap(), core::mem::transmute(inputbuffer.as_ptr()), core::mem::transmute(outputbufferbytecount), core::mem::transmute(outputbuffer)).ok() + (windows_core::Interface::vtable(self).InvokeFunction)(windows_core::Interface::as_raw(self), functionid, inputbuffer.len().try_into().unwrap(), core::mem::transmute(inputbuffer.as_ptr()), core::mem::transmute(outputbufferbytecount), core::mem::transmute(outputbuffer)).ok() } pub unsafe fn GetPrivateDataByteCount(&self, privateinputbytecount: *mut u32, privateoutputbytecount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPrivateDataByteCount)(windows_core::Interface::as_raw(self), core::mem::transmute(privateinputbytecount), core::mem::transmute(privateoutputbytecount)).ok() @@ -19411,7 +19400,7 @@ windows_core::imp::define_interface!(IMFD3D12SynchronizationObject, IMFD3D12Sync windows_core::imp::interface_hierarchy!(IMFD3D12SynchronizationObject, windows_core::IUnknown); impl IMFD3D12SynchronizationObject { pub unsafe fn SignalEventOnFinalResourceRelease(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SignalEventOnFinalResourceRelease)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SignalEventOnFinalResourceRelease)(windows_core::Interface::as_raw(self), hevent).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -19466,7 +19455,7 @@ impl IMFD3D12SynchronizationObjectCommands { (windows_core::Interface::vtable(self).EnqueueResourceReadyWait)(windows_core::Interface::as_raw(self), pconsumercommandqueue.param().abi()).ok() } pub unsafe fn SignalEventOnResourceReady(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SignalEventOnResourceReady)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).SignalEventOnResourceReady)(windows_core::Interface::as_raw(self), hevent).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EnqueueResourceRelease(&self, pconsumercommandqueue: P0) -> windows_core::Result<()> @@ -19609,20 +19598,20 @@ windows_core::imp::define_interface!(IMFDXGIBuffer, IMFDXGIBuffer_Vtbl, 0xe7174c windows_core::imp::interface_hierarchy!(IMFDXGIBuffer, windows_core::IUnknown); impl IMFDXGIBuffer { pub unsafe fn GetResource(&self, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppvobject)).ok() } pub unsafe fn GetSubresourceIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSubresourceIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetUnknown(&self, guid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUnknown)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetUnknown)(windows_core::Interface::as_raw(self), guid, riid, core::mem::transmute(ppvobject)).ok() } pub unsafe fn SetUnknown(&self, guid: *const windows_core::GUID, punkdata: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), punkdata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), guid, punkdata.param().abi()).ok() } } #[repr(C)] @@ -19680,13 +19669,13 @@ windows_core::imp::define_interface!(IMFDXGIDeviceManager, IMFDXGIDeviceManager_ windows_core::imp::interface_hierarchy!(IMFDXGIDeviceManager, windows_core::IUnknown); impl IMFDXGIDeviceManager { pub unsafe fn CloseDeviceHandle(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice)).ok() + (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), hdevice).ok() } pub unsafe fn GetVideoService(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice), core::mem::transmute(riid), core::mem::transmute(ppservice)).ok() + (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), hdevice, riid, core::mem::transmute(ppservice)).ok() } pub unsafe fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice), core::mem::transmute(riid), core::mem::transmute(ppunkdevice), fblock.into()).ok() + (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), hdevice, riid, core::mem::transmute(ppunkdevice), fblock.into()).ok() } pub unsafe fn OpenDeviceHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19696,13 +19685,13 @@ impl IMFDXGIDeviceManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResetDevice)(windows_core::Interface::as_raw(self), punkdevice.param().abi(), core::mem::transmute(resettoken)).ok() + (windows_core::Interface::vtable(self).ResetDevice)(windows_core::Interface::as_raw(self), punkdevice.param().abi(), resettoken).ok() } pub unsafe fn TestDevice(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice)).ok() + (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), hdevice).ok() } pub unsafe fn UnlockDevice(&self, hdevice: super::super::Foundation::HANDLE, fsavestate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(hdevice), fsavestate.into()).ok() + (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), hdevice, fsavestate.into()).ok() } } #[repr(C)] @@ -19819,7 +19808,7 @@ impl IMFDesiredSample { (windows_core::Interface::vtable(self).GetDesiredSampleTimeAndDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(phnssampletime), core::mem::transmute(phnssampleduration)).ok() } pub unsafe fn SetDesiredSampleTimeAndDuration(&self, hnssampletime: i64, hnssampleduration: i64) { - (windows_core::Interface::vtable(self).SetDesiredSampleTimeAndDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssampletime), core::mem::transmute(hnssampleduration)) + (windows_core::Interface::vtable(self).SetDesiredSampleTimeAndDuration)(windows_core::Interface::as_raw(self), hnssampletime, hnssampleduration) } pub unsafe fn Clear(&self) { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)) @@ -19874,80 +19863,80 @@ impl IMFDeviceTransform { } pub unsafe fn GetInputAvailableType(&self, dwinputstreamid: u32, dwtypeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputAvailableType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), core::mem::transmute(dwtypeindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputAvailableType)(windows_core::Interface::as_raw(self), dwinputstreamid, dwtypeindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInputCurrentType(&self, dwinputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputCurrentType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputCurrentType)(windows_core::Interface::as_raw(self), dwinputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInputStreamAttributes(&self, dwinputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputStreamAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputStreamAttributes)(windows_core::Interface::as_raw(self), dwinputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputAvailableType(&self, dwoutputstreamid: u32, dwtypeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputAvailableType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), core::mem::transmute(dwtypeindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputAvailableType)(windows_core::Interface::as_raw(self), dwoutputstreamid, dwtypeindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputCurrentType(&self, dwoutputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputCurrentType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputCurrentType)(windows_core::Interface::as_raw(self), dwoutputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputStreamAttributes(&self, dwoutputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputStreamAttributes)(windows_core::Interface::as_raw(self), dwoutputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamCount(&self, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStreamCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcinputstreams), core::mem::transmute(pcoutputstreams)).ok() } pub unsafe fn GetStreamIDs(&self, dwinputidarraysize: u32, pdwinputstreamids: *mut u32, dwoutputidarraysize: u32, pdwoutputstreamids: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputidarraysize), core::mem::transmute(pdwinputstreamids), core::mem::transmute(dwoutputidarraysize), core::mem::transmute(pdwoutputstreamids)).ok() + (windows_core::Interface::vtable(self).GetStreamIDs)(windows_core::Interface::as_raw(self), dwinputidarraysize, core::mem::transmute(pdwinputstreamids), dwoutputidarraysize, core::mem::transmute(pdwoutputstreamids)).ok() } pub unsafe fn ProcessEvent(&self, dwinputstreamid: u32, pevent: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), pevent.param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessEvent)(windows_core::Interface::as_raw(self), dwinputstreamid, pevent.param().abi()).ok() } pub unsafe fn ProcessInput(&self, dwinputstreamid: u32, psample: P1, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), psample.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), dwinputstreamid, psample.param().abi(), dwflags).ok() } pub unsafe fn ProcessMessage(&self, emessage: MFT_MESSAGE_TYPE, ulparam: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(emessage), core::mem::transmute(ulparam)).ok() + (windows_core::Interface::vtable(self).ProcessMessage)(windows_core::Interface::as_raw(self), emessage, ulparam).ok() } pub unsafe fn ProcessOutput(&self, dwflags: u32, coutputbuffercount: u32, poutputsample: *mut MFT_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(coutputbuffercount), core::mem::transmute(poutputsample), core::mem::transmute(pdwstatus)).ok() + (windows_core::Interface::vtable(self).ProcessOutput)(windows_core::Interface::as_raw(self), dwflags, coutputbuffercount, core::mem::transmute(poutputsample), core::mem::transmute(pdwstatus)).ok() } pub unsafe fn SetInputStreamState(&self, dwstreamid: u32, pmediatype: P1, value: DeviceStreamState, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), pmediatype.param().abi(), core::mem::transmute(value), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetInputStreamState)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.param().abi(), value, dwflags).ok() } pub unsafe fn GetInputStreamState(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputStreamState)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetOutputStreamState(&self, dwstreamid: u32, pmediatype: P1, value: DeviceStreamState, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), pmediatype.param().abi(), core::mem::transmute(value), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetOutputStreamState)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.param().abi(), value, dwflags).ok() } pub unsafe fn GetOutputStreamState(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputStreamState)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn GetInputStreamPreferredState(&self, dwstreamid: u32, value: *mut DeviceStreamState, ppmediatype: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputStreamPreferredState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(value), core::mem::transmute(ppmediatype)).ok() + (windows_core::Interface::vtable(self).GetInputStreamPreferredState)(windows_core::Interface::as_raw(self), dwstreamid, core::mem::transmute(value), core::mem::transmute(ppmediatype)).ok() } pub unsafe fn FlushInputStream(&self, dwstreamindex: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FlushInputStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).FlushInputStream)(windows_core::Interface::as_raw(self), dwstreamindex, dwflags).ok() } pub unsafe fn FlushOutputStream(&self, dwstreamindex: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FlushOutputStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).FlushOutputStream)(windows_core::Interface::as_raw(self), dwstreamindex, dwflags).ok() } } #[repr(C)] @@ -20162,7 +20151,7 @@ impl IMFDeviceTransformCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBufferSent)(windows_core::Interface::as_raw(self), pcallbackattributes.param().abi(), core::mem::transmute(pinid)).ok() + (windows_core::Interface::vtable(self).OnBufferSent)(windows_core::Interface::as_raw(self), pcallbackattributes.param().abi(), pinid).ok() } } #[repr(C)] @@ -20193,7 +20182,7 @@ impl IMFExtendedCameraControl { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetFlags(&self, ulflags: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn GetFlags(&self) -> u64 { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self)) @@ -20272,7 +20261,7 @@ windows_core::imp::interface_hierarchy!(IMFExtendedCameraController, windows_cor impl IMFExtendedCameraController { pub unsafe fn GetExtendedCameraControl(&self, dwstreamindex: u32, ulpropertyid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtendedCameraControl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(ulpropertyid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetExtendedCameraControl)(windows_core::Interface::as_raw(self), dwstreamindex, ulpropertyid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -20309,7 +20298,7 @@ impl IMFExtendedCameraIntrinsicModel { (windows_core::Interface::vtable(self).GetModel)(windows_core::Interface::as_raw(self), core::mem::transmute(pintrinsicmodel)).ok() } pub unsafe fn SetModel(&self, pintrinsicmodel: *const MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModel)(windows_core::Interface::as_raw(self), core::mem::transmute(pintrinsicmodel)).ok() + (windows_core::Interface::vtable(self).SetModel)(windows_core::Interface::as_raw(self), pintrinsicmodel).ok() } pub unsafe fn GetDistortionModelType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20379,7 +20368,7 @@ impl IMFExtendedCameraIntrinsics { } pub unsafe fn GetIntrinsicModelByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIntrinsicModelByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIntrinsicModelByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddIntrinsicModel(&self, pintrinsicmodel: P0) -> windows_core::Result<()> where @@ -20472,7 +20461,7 @@ impl IMFExtendedCameraIntrinsicsDistortionModel6KT { (windows_core::Interface::vtable(self).GetDistortionModel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdistortionmodel)).ok() } pub unsafe fn SetDistortionModel(&self, pdistortionmodel: *const MFCameraIntrinsic_DistortionModel6KT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDistortionModel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdistortionmodel)).ok() + (windows_core::Interface::vtable(self).SetDistortionModel)(windows_core::Interface::as_raw(self), pdistortionmodel).ok() } } #[repr(C)] @@ -20513,7 +20502,7 @@ impl IMFExtendedCameraIntrinsicsDistortionModelArcTan { (windows_core::Interface::vtable(self).GetDistortionModel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdistortionmodel)).ok() } pub unsafe fn SetDistortionModel(&self, pdistortionmodel: *const MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDistortionModel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdistortionmodel)).ok() + (windows_core::Interface::vtable(self).SetDistortionModel)(windows_core::Interface::as_raw(self), pdistortionmodel).ok() } } #[repr(C)] @@ -20675,7 +20664,7 @@ impl IMFGetService { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), core::mem::transmute(guidservice), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), guidservice, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -20706,7 +20695,7 @@ impl IMFHDCPStatus { (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatus), core::mem::transmute(pfstatus)).ok() } pub unsafe fn Set(&self, status: MF_HDCP_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -20789,7 +20778,7 @@ impl IMFHttpDownloadRequest { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHeader)(windows_core::Interface::as_raw(self), szheadername.param().abi(), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryHeader)(windows_core::Interface::as_raw(self), szheadername.param().abi(), dwindex, &mut result__).map(|| result__) } pub unsafe fn GetURL(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21000,7 +20989,7 @@ impl IMFHttpDownloadSession { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), szservername.param().abi(), core::mem::transmute(nport)).ok() + (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), szservername.param().abi(), nport).ok() } pub unsafe fn CreateRequest(&self, szobjectname: P0, fbypassproxycache: bool, fsecure: bool, szverb: P3, szreferrer: P4) -> windows_core::Result where @@ -21190,21 +21179,21 @@ windows_core::imp::define_interface!(IMFInputTrustAuthority, IMFInputTrustAuthor windows_core::imp::interface_hierarchy!(IMFInputTrustAuthority, windows_core::IUnknown); impl IMFInputTrustAuthority { pub unsafe fn GetDecrypter(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDecrypter)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetDecrypter)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn RequestAccess(&self, action: MFPOLICYMANAGER_ACTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(action), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccess)(windows_core::Interface::as_raw(self), action, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPolicy(&self, action: MFPOLICYMANAGER_ACTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(action), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPolicy)(windows_core::Interface::as_raw(self), action, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BindAccess(&self, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(pparam)).ok() + (windows_core::Interface::vtable(self).BindAccess)(windows_core::Interface::as_raw(self), pparam).ok() } pub unsafe fn UpdateAccess(&self, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(pparam)).ok() + (windows_core::Interface::vtable(self).UpdateAccess)(windows_core::Interface::as_raw(self), pparam).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -21323,7 +21312,7 @@ impl IMFMediaBuffer { (windows_core::Interface::vtable(self).GetCurrentLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentLength(&self, cbcurrentlength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentLength)(windows_core::Interface::as_raw(self), core::mem::transmute(cbcurrentlength)).ok() + (windows_core::Interface::vtable(self).SetCurrentLength)(windows_core::Interface::as_raw(self), cbcurrentlength).ok() } pub unsafe fn GetMaxLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21402,7 +21391,7 @@ impl IMFMediaEngine { (windows_core::Interface::vtable(self).GetError)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetErrorCode(&self, error: MF_MEDIA_ENGINE_ERR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorCode)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).SetErrorCode)(windows_core::Interface::as_raw(self), error).ok() } pub unsafe fn SetSourceElements(&self, psrcelements: P0) -> windows_core::Result<()> where @@ -21424,7 +21413,7 @@ impl IMFMediaEngine { (windows_core::Interface::vtable(self).GetPreload)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPreload(&self, preload: MF_MEDIA_ENGINE_PRELOAD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreload)(windows_core::Interface::as_raw(self), core::mem::transmute(preload)).ok() + (windows_core::Interface::vtable(self).SetPreload)(windows_core::Interface::as_raw(self), preload).ok() } pub unsafe fn GetBuffered(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21447,7 +21436,7 @@ impl IMFMediaEngine { (windows_core::Interface::vtable(self).GetCurrentTime)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetCurrentTime(&self, seektime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentTime)(windows_core::Interface::as_raw(self), core::mem::transmute(seektime)).ok() + (windows_core::Interface::vtable(self).SetCurrentTime)(windows_core::Interface::as_raw(self), seektime).ok() } pub unsafe fn GetStartTime(&self) -> f64 { (windows_core::Interface::vtable(self).GetStartTime)(windows_core::Interface::as_raw(self)) @@ -21462,13 +21451,13 @@ impl IMFMediaEngine { (windows_core::Interface::vtable(self).GetDefaultPlaybackRate)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetDefaultPlaybackRate(&self, rate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultPlaybackRate)(windows_core::Interface::as_raw(self), core::mem::transmute(rate)).ok() + (windows_core::Interface::vtable(self).SetDefaultPlaybackRate)(windows_core::Interface::as_raw(self), rate).ok() } pub unsafe fn GetPlaybackRate(&self) -> f64 { (windows_core::Interface::vtable(self).GetPlaybackRate)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPlaybackRate(&self, rate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlaybackRate)(windows_core::Interface::as_raw(self), core::mem::transmute(rate)).ok() + (windows_core::Interface::vtable(self).SetPlaybackRate)(windows_core::Interface::as_raw(self), rate).ok() } pub unsafe fn GetPlayed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21509,7 +21498,7 @@ impl IMFMediaEngine { (windows_core::Interface::vtable(self).GetVolume)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetVolume(&self, volume: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(volume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), volume).ok() } pub unsafe fn HasVideo(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).HasVideo)(windows_core::Interface::as_raw(self)) @@ -21530,7 +21519,7 @@ impl IMFMediaEngine { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdst), core::mem::transmute(pborderclr.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed())), pdst, core::mem::transmute(pborderclr.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OnVideoStreamTick(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21949,7 +21938,7 @@ impl IMFMediaEngineClassFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTimeRange(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22100,7 +22089,7 @@ impl IMFMediaEngineClassFactory4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateContentDecryptionModuleFactory)(windows_core::Interface::as_raw(self), keysystem.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).CreateContentDecryptionModuleFactory)(windows_core::Interface::as_raw(self), keysystem.param().abi(), riid, core::mem::transmute(ppvobject)).ok() } } #[repr(C)] @@ -22141,7 +22130,7 @@ impl IMFMediaEngineClassFactoryEx { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMediaSourceExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMediaSourceExtension)(windows_core::Interface::as_raw(self), dwflags, pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateMediaKeys(&self, keysystem: &windows_core::BSTR, cdmstorepath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22314,7 +22303,7 @@ impl IMFMediaEngineEx { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetStatistics(&self, statisticid: MF_MEDIA_ENGINE_STATISTIC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(statisticid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), statisticid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn UpdateVideoStream(&self, psrc: Option<*const MFVideoNormalizedRect>, pdst: Option<*const super::super::Foundation::RECT>, pborderclr: Option<*const MFARGB>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateVideoStream)(windows_core::Interface::as_raw(self), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdst.unwrap_or(core::mem::zeroed())), core::mem::transmute(pborderclr.unwrap_or(core::mem::zeroed()))).ok() @@ -22323,10 +22312,10 @@ impl IMFMediaEngineEx { (windows_core::Interface::vtable(self).GetBalance)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetBalance(&self, balance: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(balance)).ok() + (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), balance).ok() } pub unsafe fn IsPlaybackRateSupported(&self, rate: f64) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsPlaybackRateSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(rate)) + (windows_core::Interface::vtable(self).IsPlaybackRateSupported)(windows_core::Interface::as_raw(self), rate) } pub unsafe fn FrameStep(&self, forward: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FrameStep)(windows_core::Interface::as_raw(self), forward.into()).ok() @@ -22338,7 +22327,7 @@ impl IMFMediaEngineEx { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetPresentationAttribute(&self, guidmfattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPresentationAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmfattribute), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPresentationAttribute)(windows_core::Interface::as_raw(self), guidmfattribute, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetNumberOfStreams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22347,14 +22336,14 @@ impl IMFMediaEngineEx { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetStreamAttribute(&self, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(guidmfattribute), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStreamAttribute)(windows_core::Interface::as_raw(self), dwstreamindex, guidmfattribute, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, enabled: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), enabled.into()).ok() + (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, enabled.into()).ok() } pub unsafe fn ApplyStreamSelections(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ApplyStreamSelections)(windows_core::Interface::as_raw(self)).ok() @@ -22379,7 +22368,7 @@ impl IMFMediaEngineEx { (windows_core::Interface::vtable(self).RemoveAllEffects)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetTimelineMarkerTimer(&self, timetofire: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimelineMarkerTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(timetofire)).ok() + (windows_core::Interface::vtable(self).SetTimelineMarkerTimer)(windows_core::Interface::as_raw(self), timetofire).ok() } pub unsafe fn GetTimelineMarkerTimer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22396,14 +22385,14 @@ impl IMFMediaEngineEx { (windows_core::Interface::vtable(self).GetStereo3DFramePackingMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStereo3DFramePackingMode(&self, packmode: MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStereo3DFramePackingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(packmode)).ok() + (windows_core::Interface::vtable(self).SetStereo3DFramePackingMode)(windows_core::Interface::as_raw(self), packmode).ok() } pub unsafe fn GetStereo3DRenderMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStereo3DRenderMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStereo3DRenderMode(&self, outputtype: MF3DVideoOutputType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStereo3DRenderMode)(windows_core::Interface::as_raw(self), core::mem::transmute(outputtype)).ok() + (windows_core::Interface::vtable(self).SetStereo3DRenderMode)(windows_core::Interface::as_raw(self), outputtype).ok() } pub unsafe fn EnableWindowlessSwapchainMode(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableWindowlessSwapchainMode)(windows_core::Interface::as_raw(self), fenable.into()).ok() @@ -22420,14 +22409,14 @@ impl IMFMediaEngineEx { (windows_core::Interface::vtable(self).GetAudioStreamCategory)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAudioStreamCategory(&self, category: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioStreamCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category)).ok() + (windows_core::Interface::vtable(self).SetAudioStreamCategory)(windows_core::Interface::as_raw(self), category).ok() } pub unsafe fn GetAudioEndpointRole(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAudioEndpointRole)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAudioEndpointRole(&self, role: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioEndpointRole)(windows_core::Interface::as_raw(self), core::mem::transmute(role)).ok() + (windows_core::Interface::vtable(self).SetAudioEndpointRole)(windows_core::Interface::as_raw(self), role).ok() } pub unsafe fn GetRealTimeMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22437,7 +22426,7 @@ impl IMFMediaEngineEx { (windows_core::Interface::vtable(self).SetRealTimeMode)(windows_core::Interface::as_raw(self), fenable.into()).ok() } pub unsafe fn SetCurrentTimeEx(&self, seektime: f64, seekmode: MF_MEDIA_ENGINE_SEEK_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentTimeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(seektime), core::mem::transmute(seekmode)).ok() + (windows_core::Interface::vtable(self).SetCurrentTimeEx)(windows_core::Interface::as_raw(self), seektime, seekmode).ok() } pub unsafe fn EnableTimeUpdateTimer(&self, fenabletimer: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableTimeUpdateTimer)(windows_core::Interface::as_raw(self), fenabletimer.into()).ok() @@ -22828,7 +22817,7 @@ impl IMFMediaEngineExtension { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), pbytestream.param().abi(), core::mem::transmute(r#type), core::mem::transmute(ppiunknowncancelcookie), pcallback.param().abi(), punkstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), pbytestream.param().abi(), r#type, core::mem::transmute(ppiunknowncancelcookie), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn CancelObjectCreation(&self, piunknowncancelcookie: P0) -> windows_core::Result<()> where @@ -22933,7 +22922,7 @@ windows_core::imp::define_interface!(IMFMediaEngineNotify, IMFMediaEngineNotify_ windows_core::imp::interface_hierarchy!(IMFMediaEngineNotify, windows_core::IUnknown); impl IMFMediaEngineNotify { pub unsafe fn EventNotify(&self, event: u32, param1: usize, param2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(event), core::mem::transmute(param1), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).EventNotify)(windows_core::Interface::as_raw(self), event, param1, param2).ok() } } #[repr(C)] @@ -22999,14 +22988,14 @@ impl IMFMediaEngineProtectedContent { (windows_core::Interface::vtable(self).GetRequiredProtections)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOPMWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOPMWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetOPMWindow)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn TransferVideoFrame(&self, pdstsurf: P0, psrc: Option<*const MFVideoNormalizedRect>, pdst: *const super::super::Foundation::RECT, pborderclr: Option<*const MFARGB>) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdst), core::mem::transmute(pborderclr.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed())), pdst, core::mem::transmute(pborderclr.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } pub unsafe fn SetContentProtectionManager(&self, pcpm: P0) -> windows_core::Result<()> where @@ -23097,15 +23086,15 @@ impl IMFMediaEngineSrcElements { } pub unsafe fn GetURL(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetURL)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetURL)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetType(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetMedia(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMedia)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMedia)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn AddElement(&self, purl: &windows_core::BSTR, ptype: &windows_core::BSTR, pmedia: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddElement)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(purl), core::mem::transmute_copy(ptype), core::mem::transmute_copy(pmedia)).ok() @@ -23205,7 +23194,7 @@ impl IMFMediaEngineSrcElementsEx { } pub unsafe fn GetKeySystem(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKeySystem)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetKeySystem)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -23347,7 +23336,7 @@ impl IMFMediaEngineWebSupport { } pub unsafe fn ConnectWebAudio(&self, dwsamplerate: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectWebAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsamplerate), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectWebAudio)(windows_core::Interface::as_raw(self), dwsamplerate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DisconnectWebAudio(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisconnectWebAudio)(windows_core::Interface::as_raw(self)).ok() @@ -23407,10 +23396,10 @@ impl IMFMediaError { (windows_core::Interface::vtable(self).GetExtendedErrorCode)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetErrorCode(&self, error: MF_MEDIA_ENGINE_ERR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorCode)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).SetErrorCode)(windows_core::Interface::as_raw(self), error).ok() } pub unsafe fn SetExtendedErrorCode(&self, error: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExtendedErrorCode)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).SetExtendedErrorCode)(windows_core::Interface::as_raw(self), error).ok() } } #[repr(C)] @@ -23565,7 +23554,7 @@ windows_core::imp::interface_hierarchy!(IMFMediaEventGenerator, windows_core::IU impl IMFMediaEventGenerator { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where @@ -23583,7 +23572,7 @@ impl IMFMediaEventGenerator { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueueEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(met), core::mem::transmute(guidextendedtype), core::mem::transmute(hrstatus), core::mem::transmute(pvvalue)).ok() + (windows_core::Interface::vtable(self).QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() } } #[repr(C)] @@ -23654,7 +23643,7 @@ windows_core::imp::interface_hierarchy!(IMFMediaEventQueue, windows_core::IUnkno impl IMFMediaEventQueue { pub unsafe fn GetEvent(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where @@ -23678,13 +23667,13 @@ impl IMFMediaEventQueue { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn QueueEventParamVar(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueueEventParamVar)(windows_core::Interface::as_raw(self), core::mem::transmute(met), core::mem::transmute(guidextendedtype), core::mem::transmute(hrstatus), core::mem::transmute(pvvalue)).ok() + (windows_core::Interface::vtable(self).QueueEventParamVar)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() } pub unsafe fn QueueEventParamUnk(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, punk: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).QueueEventParamUnk)(windows_core::Interface::as_raw(self), core::mem::transmute(met), core::mem::transmute(guidextendedtype), core::mem::transmute(hrstatus), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).QueueEventParamUnk)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, punk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -23970,7 +23959,7 @@ impl IMFMediaKeySessionNotify { (windows_core::Interface::vtable(self).KeyAdded)(windows_core::Interface::as_raw(self)) } pub unsafe fn KeyError(&self, code: u16, systemcode: u32) { - (windows_core::Interface::vtable(self).KeyError)(windows_core::Interface::as_raw(self), core::mem::transmute(code), core::mem::transmute(systemcode)) + (windows_core::Interface::vtable(self).KeyError)(windows_core::Interface::as_raw(self), code, systemcode) } } #[repr(C)] @@ -24021,7 +24010,7 @@ impl core::ops::Deref for IMFMediaKeySessionNotify2 { windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify2, windows_core::IUnknown, IMFMediaKeySessionNotify); impl IMFMediaKeySessionNotify2 { pub unsafe fn KeyMessage2(&self, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: &windows_core::BSTR, pbmessage: &[u8]) { - (windows_core::Interface::vtable(self).KeyMessage2)(windows_core::Interface::as_raw(self), core::mem::transmute(emessagetype), core::mem::transmute_copy(destinationurl), core::mem::transmute(pbmessage.as_ptr()), pbmessage.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).KeyMessage2)(windows_core::Interface::as_raw(self), emessagetype, core::mem::transmute_copy(destinationurl), core::mem::transmute(pbmessage.as_ptr()), pbmessage.len().try_into().unwrap()) } pub unsafe fn KeyStatusChange(&self) { (windows_core::Interface::vtable(self).KeyStatusChange)(windows_core::Interface::as_raw(self)) @@ -24243,14 +24232,14 @@ impl IMFMediaKeys2 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession2)(windows_core::Interface::as_raw(self), core::mem::transmute(esessiontype), pmfmediakeysessionnotify2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession2)(windows_core::Interface::as_raw(self), esessiontype, pmfmediakeysessionnotify2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetServerCertificate(&self, pbservercertificate: Option<&[u8]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetServerCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(pbservercertificate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbservercertificate.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn GetDOMException(&self, systemcode: windows_core::HRESULT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDOMException)(windows_core::Interface::as_raw(self), core::mem::transmute(systemcode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDOMException)(windows_core::Interface::as_raw(self), systemcode, &mut result__).map(|| result__) } } #[repr(C)] @@ -24316,14 +24305,14 @@ impl IMFMediaSession { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsettopologyflags), ptopology.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTopology)(windows_core::Interface::as_raw(self), dwsettopologyflags, ptopology.param().abi()).ok() } pub unsafe fn ClearTopologies(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearTopologies)(windows_core::Interface::as_raw(self)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Start(&self, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidtimeformat), core::mem::transmute(pvarstartposition)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), pguidtimeformat, core::mem::transmute(pvarstartposition)).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -24347,7 +24336,7 @@ impl IMFMediaSession { } pub unsafe fn GetFullTopology(&self, dwgetfulltopologyflags: u32, topoid: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFullTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(dwgetfulltopologyflags), core::mem::transmute(topoid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFullTopology)(windows_core::Interface::as_raw(self), dwgetfulltopologyflags, topoid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -24503,7 +24492,7 @@ impl IMFMediaSharingEngineClassFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -24545,10 +24534,10 @@ impl IMFMediaSink { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddStreamSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamsinkidentifier), pmediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddStreamSink)(windows_core::Interface::as_raw(self), dwstreamsinkidentifier, pmediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveStreamSink(&self, dwstreamsinkidentifier: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStreamSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamsinkidentifier)).ok() + (windows_core::Interface::vtable(self).RemoveStreamSink)(windows_core::Interface::as_raw(self), dwstreamsinkidentifier).ok() } pub unsafe fn GetStreamSinkCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -24556,11 +24545,11 @@ impl IMFMediaSink { } pub unsafe fn GetStreamSinkByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSinkByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamSinkByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamSinkById(&self, dwstreamsinkidentifier: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSinkById)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamsinkidentifier), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamSinkById)(windows_core::Interface::as_raw(self), dwstreamsinkidentifier, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPresentationClock(&self, ppresentationclock: P0) -> windows_core::Result<()> where @@ -24696,7 +24685,7 @@ windows_core::imp::define_interface!(IMFMediaSinkPreroll, IMFMediaSinkPreroll_Vt windows_core::imp::interface_hierarchy!(IMFMediaSinkPreroll, windows_core::IUnknown); impl IMFMediaSinkPreroll { pub unsafe fn NotifyPreroll(&self, hnsupcomingstarttime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyPreroll)(windows_core::Interface::as_raw(self), core::mem::transmute(hnsupcomingstarttime)).ok() + (windows_core::Interface::vtable(self).NotifyPreroll)(windows_core::Interface::as_raw(self), hnsupcomingstarttime).ok() } } #[repr(C)] @@ -24742,7 +24731,7 @@ impl IMFMediaSource { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ppresentationdescriptor.param().abi(), core::mem::transmute(pguidtimeformat), core::mem::transmute(pvarstartposition)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ppresentationdescriptor.param().abi(), pguidtimeformat, core::mem::transmute(pvarstartposition)).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -24844,7 +24833,7 @@ impl IMFMediaSource2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), pmediatype.param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.param().abi()).ok() } } #[repr(C)] @@ -24886,7 +24875,7 @@ impl IMFMediaSourceEx { } pub unsafe fn GetStreamAttributes(&self, dwstreamidentifier: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamidentifier), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamAttributes)(windows_core::Interface::as_raw(self), dwstreamidentifier, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetD3DManager(&self, pmanager: P0) -> windows_core::Result<()> where @@ -24964,7 +24953,7 @@ impl IMFMediaSourceExtension { (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetDuration(&self, duration: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), duration).ok() } pub unsafe fn AddSourceBuffer(&self, r#type: &windows_core::BSTR, pnotify: P1) -> windows_core::Result where @@ -24980,13 +24969,13 @@ impl IMFMediaSourceExtension { (windows_core::Interface::vtable(self).RemoveSourceBuffer)(windows_core::Interface::as_raw(self), psourcebuffer.param().abi()).ok() } pub unsafe fn SetEndOfStream(&self, error: MF_MSE_ERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEndOfStream)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).SetEndOfStream)(windows_core::Interface::as_raw(self), error).ok() } pub unsafe fn IsTypeSupported(&self, r#type: &windows_core::BSTR) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(r#type)) } pub unsafe fn GetSourceBuffer(&self, dwstreamindex: u32) -> Option { - (windows_core::Interface::vtable(self).GetSourceBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)) + (windows_core::Interface::vtable(self).GetSourceBuffer)(windows_core::Interface::as_raw(self), dwstreamindex) } } #[repr(C)] @@ -25086,7 +25075,7 @@ windows_core::imp::define_interface!(IMFMediaSourceExtensionLiveSeekableRange, I windows_core::imp::interface_hierarchy!(IMFMediaSourceExtensionLiveSeekableRange, windows_core::IUnknown); impl IMFMediaSourceExtensionLiveSeekableRange { pub unsafe fn SetLiveSeekableRange(&self, start: f64, end: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLiveSeekableRange)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(end)).ok() + (windows_core::Interface::vtable(self).SetLiveSeekableRange)(windows_core::Interface::as_raw(self), start, end).ok() } pub unsafe fn ClearLiveSeekableRange(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearLiveSeekableRange)(windows_core::Interface::as_raw(self)).ok() @@ -25330,7 +25319,7 @@ impl core::ops::Deref for IMFMediaStream2 { windows_core::imp::interface_hierarchy!(IMFMediaStream2, windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaStream); impl IMFMediaStream2 { pub unsafe fn SetStreamState(&self, value: MF_STREAM_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamState)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStreamState)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetStreamState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25416,17 +25405,17 @@ impl IMFMediaTimeRange { } pub unsafe fn GetStart(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStart)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStart)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetEnd(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEnd)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn ContainsTime(&self, time: f64) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).ContainsTime)(windows_core::Interface::as_raw(self), core::mem::transmute(time)) + (windows_core::Interface::vtable(self).ContainsTime)(windows_core::Interface::as_raw(self), time) } pub unsafe fn AddRange(&self, starttime: f64, endtime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime), core::mem::transmute(endtime)).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), starttime, endtime).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -25531,7 +25520,7 @@ impl IMFMediaType { (windows_core::Interface::vtable(self).GetRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), core::mem::transmute(ppvrepresentation)).ok() } pub unsafe fn FreeRepresentation(&self, guidrepresentation: windows_core::GUID, pvrepresentation: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), core::mem::transmute(pvrepresentation)).ok() + (windows_core::Interface::vtable(self).FreeRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), pvrepresentation).ok() } } #[repr(C)] @@ -25622,7 +25611,7 @@ impl IMFMediaTypeHandler { } pub unsafe fn GetMediaTypeByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMediaTypeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMediaTypeByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCurrentMediaType(&self, pmediatype: P0) -> windows_core::Result<()> where @@ -25880,7 +25869,7 @@ impl IMFMetadataProvider { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMFMetadata)(windows_core::Interface::as_raw(self), ppresentationdescriptor.param().abi(), core::mem::transmute(dwstreamidentifier), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMFMetadata)(windows_core::Interface::as_raw(self), ppresentationdescriptor.param().abi(), dwstreamidentifier, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -25919,7 +25908,7 @@ impl IMFMuxStreamAttributesManager { } pub unsafe fn GetAttributes(&self, dwmuxstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmuxstreamindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), dwmuxstreamindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -25974,21 +25963,21 @@ impl IMFMuxStreamMediaTypeManager { } pub unsafe fn GetMediaType(&self, dwmuxstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmuxstreamindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMediaType)(windows_core::Interface::as_raw(self), dwmuxstreamindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamConfigurationCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamConfigurationCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddStreamConfiguration(&self, ullstreammask: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStreamConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(ullstreammask)).ok() + (windows_core::Interface::vtable(self).AddStreamConfiguration)(windows_core::Interface::as_raw(self), ullstreammask).ok() } pub unsafe fn RemoveStreamConfiguration(&self, ullstreammask: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStreamConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(ullstreammask)).ok() + (windows_core::Interface::vtable(self).RemoveStreamConfiguration)(windows_core::Interface::as_raw(self), ullstreammask).ok() } pub unsafe fn GetStreamConfiguration(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamConfiguration)(windows_core::Interface::as_raw(self), ulindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -26083,7 +26072,7 @@ impl IMFMuxStreamSampleManager { } pub unsafe fn GetSample(&self, dwmuxstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmuxstreamindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSample)(windows_core::Interface::as_raw(self), dwmuxstreamindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamConfiguration(&self) -> u64 { (windows_core::Interface::vtable(self).GetStreamConfiguration)(windows_core::Interface::as_raw(self)) @@ -26225,7 +26214,7 @@ impl IMFNetCredentialCache { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCredential)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pszrealm.param().abi(), core::mem::transmute(dwauthenticationflags), core::mem::transmute(ppcred), core::mem::transmute(pdwrequirementsflags)).ok() + (windows_core::Interface::vtable(self).GetCredential)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pszrealm.param().abi(), dwauthenticationflags, core::mem::transmute(ppcred), core::mem::transmute(pdwrequirementsflags)).ok() } pub unsafe fn SetGood(&self, pcred: P0, fgood: bool) -> windows_core::Result<()> where @@ -26237,7 +26226,7 @@ impl IMFNetCredentialCache { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserOptions)(windows_core::Interface::as_raw(self), pcred.param().abi(), core::mem::transmute(dwoptionsflags)).ok() + (windows_core::Interface::vtable(self).SetUserOptions)(windows_core::Interface::as_raw(self), pcred.param().abi(), dwoptionsflags).ok() } } #[repr(C)] @@ -26286,7 +26275,7 @@ impl IMFNetCredentialManager { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginGetCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute(pparam), pcallback.param().abi(), pstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginGetCredentials)(windows_core::Interface::as_raw(self), pparam, pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndGetCredentials(&self, presult: P0) -> windows_core::Result where @@ -26435,7 +26424,7 @@ impl IMFNetProxyLocator { (windows_core::Interface::vtable(self).FindNextProxy)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RegisterProxyResult(&self, hrop: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterProxyResult)(windows_core::Interface::as_raw(self), core::mem::transmute(hrop)).ok() + (windows_core::Interface::vtable(self).RegisterProxyResult)(windows_core::Interface::as_raw(self), hrop).ok() } pub unsafe fn GetCurrentProxy(&self, pszstr: Option, pcchstr: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(pszstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchstr)).ok() @@ -26604,7 +26593,7 @@ impl IMFNetSchemeHandlerConfig { } pub unsafe fn GetSupportedProtocolType(&self, nprotocolindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedProtocolType)(windows_core::Interface::as_raw(self), core::mem::transmute(nprotocolindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSupportedProtocolType)(windows_core::Interface::as_raw(self), nprotocolindex, &mut result__).map(|| result__) } pub unsafe fn ResetProtocolRolloverSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetProtocolRolloverSettings)(windows_core::Interface::as_raw(self)).ok() @@ -26667,10 +26656,10 @@ impl IMFObjectReferenceStream { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveReference)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).SaveReference)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } pub unsafe fn LoadReference(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadReference)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).LoadReference)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -26715,7 +26704,7 @@ windows_core::imp::interface_hierarchy!(IMFOutputPolicy, windows_core::IUnknown, impl IMFOutputPolicy { pub unsafe fn GenerateRequiredSchemas(&self, dwattributes: u32, guidoutputsubtype: windows_core::GUID, rgguidprotectionschemassupported: *const windows_core::GUID, cprotectionschemassupported: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateRequiredSchemas)(windows_core::Interface::as_raw(self), core::mem::transmute(dwattributes), core::mem::transmute(guidoutputsubtype), core::mem::transmute(rgguidprotectionschemassupported), core::mem::transmute(cprotectionschemassupported), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateRequiredSchemas)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(guidoutputsubtype), rgguidprotectionschemassupported, cprotectionschemassupported, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOriginatorID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26992,7 +26981,7 @@ impl IMFPMPHost { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObjectByCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), pstream.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObjectByCLSID)(windows_core::Interface::as_raw(self), clsid, pstream.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -27117,7 +27106,7 @@ impl IMFPMPServer { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObjectByCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObjectByCLSID)(windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -27178,7 +27167,7 @@ impl IMFPMediaItem { (windows_core::Interface::vtable(self).GetUserData)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUserData(&self, dwuserdata: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuserdata)).ok() + (windows_core::Interface::vtable(self).SetUserData)(windows_core::Interface::as_raw(self), dwuserdata).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetStartStopPosition(&self, pguidstartpositiontype: Option<*mut windows_core::GUID>, pvstartvalue: Option<*mut super::super::System::Com::StructuredStorage::PROPVARIANT>, pguidstoppositiontype: Option<*mut windows_core::GUID>, pvstopvalue: Option<*mut super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { @@ -27201,7 +27190,7 @@ impl IMFPMediaItem { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetDuration(&self, guidpositiontype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpositiontype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self), guidpositiontype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetNumberOfStreams(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27209,20 +27198,20 @@ impl IMFPMediaItem { } pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, fenabled: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), fenabled.into()).ok() + (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fenabled.into()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetStreamAttribute(&self, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(guidmfattribute), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStreamAttribute)(windows_core::Interface::as_raw(self), dwstreamindex, guidmfattribute, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetPresentationAttribute(&self, guidmfattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPresentationAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmfattribute), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPresentationAttribute)(windows_core::Interface::as_raw(self), guidmfattribute, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCharacteristics(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27232,7 +27221,7 @@ impl IMFPMediaItem { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), pmediasink.param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamSink)(windows_core::Interface::as_raw(self), dwstreamindex, pmediasink.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetMetadata(&self) -> windows_core::Result { @@ -27500,20 +27489,20 @@ impl IMFPMediaPlayer { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetPosition(&self, guidpositiontype: *const windows_core::GUID, pvpositionvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpositiontype), core::mem::transmute(pvpositionvalue)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), guidpositiontype, core::mem::transmute(pvpositionvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetPosition(&self, guidpositiontype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpositiontype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPosition)(windows_core::Interface::as_raw(self), guidpositiontype, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetDuration(&self, guidpositiontype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpositiontype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self), guidpositiontype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetRate(&self, flrate: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(flrate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), flrate).ok() } pub unsafe fn GetRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27530,13 +27519,13 @@ impl IMFPMediaPlayer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMediaItemFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), fsync.into(), core::mem::transmute(dwuserdata), core::mem::transmute(ppmediaitem.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateMediaItemFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), fsync.into(), dwuserdata, core::mem::transmute(ppmediaitem.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CreateMediaItemFromObject(&self, piunknownobj: P0, fsync: bool, dwuserdata: usize, ppmediaitem: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMediaItemFromObject)(windows_core::Interface::as_raw(self), piunknownobj.param().abi(), fsync.into(), core::mem::transmute(dwuserdata), core::mem::transmute(ppmediaitem.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateMediaItemFromObject)(windows_core::Interface::as_raw(self), piunknownobj.param().abi(), fsync.into(), dwuserdata, core::mem::transmute(ppmediaitem.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetMediaItem(&self, pimfpmediaitem: P0) -> windows_core::Result<()> where @@ -27556,14 +27545,14 @@ impl IMFPMediaPlayer { (windows_core::Interface::vtable(self).GetVolume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVolume(&self, flvolume: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(flvolume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), flvolume).ok() } pub unsafe fn GetBalance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBalance)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBalance(&self, flbalance: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), core::mem::transmute(flbalance)).ok() + (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), flbalance).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27579,14 +27568,14 @@ impl IMFPMediaPlayer { (windows_core::Interface::vtable(self).GetIdealVideoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszmax.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetVideoSourceRect(&self, pnrcsource: *const MFVideoNormalizedRect) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoSourceRect)(windows_core::Interface::as_raw(self), core::mem::transmute(pnrcsource)).ok() + (windows_core::Interface::vtable(self).SetVideoSourceRect)(windows_core::Interface::as_raw(self), pnrcsource).ok() } pub unsafe fn GetVideoSourceRect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetVideoSourceRect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAspectRatioMode(&self, dwaspectratiomode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspectratiomode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), dwaspectratiomode).ok() } pub unsafe fn GetAspectRatioMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -27600,7 +27589,7 @@ impl IMFPMediaPlayer { (windows_core::Interface::vtable(self).UpdateVideo)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetBorderColor(&self, clr: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clr)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28021,26 +28010,26 @@ impl IMFPluginControl { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreferredClsid)(windows_core::Interface::as_raw(self), core::mem::transmute(plugintype), selector.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPreferredClsidByIndex(&self, plugintype: u32, index: u32, selector: *mut windows_core::PWSTR, clsid: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPreferredClsidByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(plugintype), core::mem::transmute(index), core::mem::transmute(selector), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).GetPreferredClsidByIndex)(windows_core::Interface::as_raw(self), plugintype, index, core::mem::transmute(selector), core::mem::transmute(clsid)).ok() } pub unsafe fn SetPreferredClsid(&self, plugintype: u32, selector: P1, clsid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreferredClsid)(windows_core::Interface::as_raw(self), core::mem::transmute(plugintype), selector.param().abi(), core::mem::transmute(clsid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.param().abi(), core::mem::transmute(clsid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(plugintype), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).IsDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid).ok() } pub unsafe fn GetDisabledByIndex(&self, plugintype: u32, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisabledByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(plugintype), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDisabledByIndex)(windows_core::Interface::as_raw(self), plugintype, index, &mut result__).map(|| result__) } pub unsafe fn SetDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID, disabled: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(plugintype), core::mem::transmute(clsid), disabled.into()).ok() + (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid, disabled.into()).ok() } } #[repr(C)] @@ -28124,7 +28113,7 @@ impl core::ops::Deref for IMFPluginControl2 { windows_core::imp::interface_hierarchy!(IMFPluginControl2, windows_core::IUnknown, IMFPluginControl); impl IMFPluginControl2 { pub unsafe fn SetPolicy(&self, policy: MF_PLUGIN_CONTROL_POLICY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(policy)).ok() + (windows_core::Interface::vtable(self).SetPolicy)(windows_core::Interface::as_raw(self), policy).ok() } } #[repr(C)] @@ -28184,7 +28173,7 @@ impl IMFPresentationClock { (windows_core::Interface::vtable(self).RemoveClockStateSink)(windows_core::Interface::as_raw(self), pstatesink.param().abi()).ok() } pub unsafe fn Start(&self, llclockstartoffset: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(llclockstartoffset)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), llclockstartoffset).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -28292,13 +28281,13 @@ impl IMFPresentationDescriptor { (windows_core::Interface::vtable(self).GetStreamDescriptorCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetStreamDescriptorByIndex(&self, dwindex: u32, pfselected: *mut super::super::Foundation::BOOL, ppdescriptor: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamDescriptorByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pfselected), core::mem::transmute(ppdescriptor)).ok() + (windows_core::Interface::vtable(self).GetStreamDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pfselected), core::mem::transmute(ppdescriptor)).ok() } pub unsafe fn SelectStream(&self, dwdescriptorindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdescriptorindex)).ok() + (windows_core::Interface::vtable(self).SelectStream)(windows_core::Interface::as_raw(self), dwdescriptorindex).ok() } pub unsafe fn DeselectStream(&self, dwdescriptorindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeselectStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdescriptorindex)).ok() + (windows_core::Interface::vtable(self).DeselectStream)(windows_core::Interface::as_raw(self), dwdescriptorindex).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28454,10 +28443,10 @@ windows_core::imp::define_interface!(IMFQualityAdvise, IMFQualityAdvise_Vtbl, 0x windows_core::imp::interface_hierarchy!(IMFQualityAdvise, windows_core::IUnknown); impl IMFQualityAdvise { pub unsafe fn SetDropMode(&self, edropmode: MF_QUALITY_DROP_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDropMode)(windows_core::Interface::as_raw(self), core::mem::transmute(edropmode)).ok() + (windows_core::Interface::vtable(self).SetDropMode)(windows_core::Interface::as_raw(self), edropmode).ok() } pub unsafe fn SetQualityLevel(&self, equalitylevel: MF_QUALITY_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQualityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(equalitylevel)).ok() + (windows_core::Interface::vtable(self).SetQualityLevel)(windows_core::Interface::as_raw(self), equalitylevel).ok() } pub unsafe fn GetDropMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28468,7 +28457,7 @@ impl IMFQualityAdvise { (windows_core::Interface::vtable(self).GetQualityLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DropTime(&self, hnsamounttodrop: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DropTime)(windows_core::Interface::as_raw(self), core::mem::transmute(hnsamounttodrop)).ok() + (windows_core::Interface::vtable(self).DropTime)(windows_core::Interface::as_raw(self), hnsamounttodrop).ok() } } #[repr(C)] @@ -28654,14 +28643,14 @@ impl IMFQualityManager { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyProcessInput)(windows_core::Interface::as_raw(self), pnode.param().abi(), core::mem::transmute(linputindex), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyProcessInput)(windows_core::Interface::as_raw(self), pnode.param().abi(), linputindex, psample.param().abi()).ok() } pub unsafe fn NotifyProcessOutput(&self, pnode: P0, loutputindex: i32, psample: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyProcessOutput)(windows_core::Interface::as_raw(self), pnode.param().abi(), core::mem::transmute(loutputindex), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyProcessOutput)(windows_core::Interface::as_raw(self), pnode.param().abi(), loutputindex, psample.param().abi()).ok() } pub unsafe fn NotifyQualityEvent(&self, pobject: P0, pevent: P1) -> windows_core::Result<()> where @@ -28737,7 +28726,7 @@ windows_core::imp::define_interface!(IMFRateControl, IMFRateControl_Vtbl, 0x88dd windows_core::imp::interface_hierarchy!(IMFRateControl, windows_core::IUnknown); impl IMFRateControl { pub unsafe fn SetRate(&self, fthin: bool, flrate: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), fthin.into(), core::mem::transmute(flrate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), fthin.into(), flrate).ok() } pub unsafe fn GetRate(&self, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(pfthin), core::mem::transmute(pflrate)).ok() @@ -28775,14 +28764,14 @@ windows_core::imp::interface_hierarchy!(IMFRateSupport, windows_core::IUnknown); impl IMFRateSupport { pub unsafe fn GetSlowestRate(&self, edirection: MFRATE_DIRECTION, fthin: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSlowestRate)(windows_core::Interface::as_raw(self), core::mem::transmute(edirection), fthin.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSlowestRate)(windows_core::Interface::as_raw(self), edirection, fthin.into(), &mut result__).map(|| result__) } pub unsafe fn GetFastestRate(&self, edirection: MFRATE_DIRECTION, fthin: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFastestRate)(windows_core::Interface::as_raw(self), core::mem::transmute(edirection), fthin.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFastestRate)(windows_core::Interface::as_raw(self), edirection, fthin.into(), &mut result__).map(|| result__) } pub unsafe fn IsRateSupported(&self, fthin: bool, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsRateSupported)(windows_core::Interface::as_raw(self), fthin.into(), core::mem::transmute(flrate), core::mem::transmute(pflnearestsupportedrate)).ok() + (windows_core::Interface::vtable(self).IsRateSupported)(windows_core::Interface::as_raw(self), fthin.into(), flrate, core::mem::transmute(pflnearestsupportedrate)).ok() } } #[repr(C)] @@ -28845,7 +28834,7 @@ impl IMFReadWriteClassFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstanceFromURL)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), pwszurl.param().abi(), pattributes.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceFromURL)(windows_core::Interface::as_raw(self), clsid, pwszurl.param().abi(), pattributes.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstanceFromObject(&self, clsid: *const windows_core::GUID, punkobject: P1, pattributes: P2) -> windows_core::Result where @@ -28854,7 +28843,7 @@ impl IMFReadWriteClassFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstanceFromObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), punkobject.param().abi(), pattributes.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceFromObject)(windows_core::Interface::as_raw(self), clsid, punkobject.param().abi(), pattributes.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -28895,13 +28884,13 @@ impl IMFRealTimeClient { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtaskindex), wszclass.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterThreads)(windows_core::Interface::as_raw(self), dwtaskindex, wszclass.param().abi()).ok() } pub unsafe fn UnregisterThreads(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterThreads)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWorkQueue(&self, dwworkqueueid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWorkQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwworkqueueid)).ok() + (windows_core::Interface::vtable(self).SetWorkQueue)(windows_core::Interface::as_raw(self), dwworkqueueid).ok() } } #[repr(C)] @@ -28949,13 +28938,13 @@ impl IMFRealTimeClientEx { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterThreadsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwtaskindex), wszclassname.param().abi(), core::mem::transmute(lbasepriority)).ok() + (windows_core::Interface::vtable(self).RegisterThreadsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwtaskindex), wszclassname.param().abi(), lbasepriority).ok() } pub unsafe fn UnregisterThreads(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterThreads)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWorkQueueEx(&self, dwmultithreadedworkqueueid: u32, lworkitembasepriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWorkQueueEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmultithreadedworkqueueid), core::mem::transmute(lworkitembasepriority)).ok() + (windows_core::Interface::vtable(self).SetWorkQueueEx)(windows_core::Interface::as_raw(self), dwmultithreadedworkqueueid, lworkitembasepriority).ok() } } #[repr(C)] @@ -29116,7 +29105,7 @@ impl IMFRemoteAsyncCallback { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), premoteresult.param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), hr, premoteresult.param().abi()).ok() } } #[repr(C)] @@ -29175,10 +29164,10 @@ windows_core::imp::define_interface!(IMFRemoteProxy, IMFRemoteProxy_Vtbl, 0x994e windows_core::imp::interface_hierarchy!(IMFRemoteProxy, windows_core::IUnknown); impl IMFRemoteProxy { pub unsafe fn GetRemoteObject(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRemoteObject)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetRemoteObject)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn GetRemoteHost(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRemoteHost)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetRemoteHost)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -29413,21 +29402,21 @@ impl IMFSample { (windows_core::Interface::vtable(self).GetSampleFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSampleFlags(&self, dwsampleflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsampleflags)).ok() + (windows_core::Interface::vtable(self).SetSampleFlags)(windows_core::Interface::as_raw(self), dwsampleflags).ok() } pub unsafe fn GetSampleTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSampleTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSampleTime(&self, hnssampletime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleTime)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssampletime)).ok() + (windows_core::Interface::vtable(self).SetSampleTime)(windows_core::Interface::as_raw(self), hnssampletime).ok() } pub unsafe fn GetSampleDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSampleDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSampleDuration(&self, hnssampleduration: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(hnssampleduration)).ok() + (windows_core::Interface::vtable(self).SetSampleDuration)(windows_core::Interface::as_raw(self), hnssampleduration).ok() } pub unsafe fn GetBufferCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -29435,7 +29424,7 @@ impl IMFSample { } pub unsafe fn GetBufferByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBufferByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ConvertToContiguousBuffer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -29448,7 +29437,7 @@ impl IMFSample { (windows_core::Interface::vtable(self).AddBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn RemoveBufferByIndex(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveBufferByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).RemoveBufferByIndex)(windows_core::Interface::as_raw(self), dwindex).ok() } pub unsafe fn RemoveAllBuffers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllBuffers)(windows_core::Interface::as_raw(self)).ok() @@ -29631,10 +29620,10 @@ impl IMFSampleAllocatorControl { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), pallocator.param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultAllocator)(windows_core::Interface::as_raw(self), dwoutputstreamid, pallocator.param().abi()).ok() } pub unsafe fn GetAllocatorUsage(&self, dwoutputstreamid: u32, pdwinputstreamid: *mut u32, peusage: *mut MFSampleAllocatorUsage) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAllocatorUsage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), core::mem::transmute(pdwinputstreamid), core::mem::transmute(peusage)).ok() + (windows_core::Interface::vtable(self).GetAllocatorUsage)(windows_core::Interface::as_raw(self), dwoutputstreamid, core::mem::transmute(pdwinputstreamid), core::mem::transmute(peusage)).ok() } } #[repr(C)] @@ -29684,7 +29673,7 @@ impl IMFSampleGrabberSinkCallback { (windows_core::Interface::vtable(self).OnSetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.param().abi()).ok() } pub unsafe fn OnProcessSample(&self, guidmajormediatype: *const windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnProcessSample)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmajormediatype), core::mem::transmute(dwsampleflags), core::mem::transmute(llsampletime), core::mem::transmute(llsampleduration), core::mem::transmute(psamplebuffer.as_ptr()), psamplebuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).OnProcessSample)(windows_core::Interface::as_raw(self), guidmajormediatype, dwsampleflags, llsampletime, llsampleduration, core::mem::transmute(psamplebuffer.as_ptr()), psamplebuffer.len().try_into().unwrap()).ok() } pub unsafe fn OnShutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnShutdown)(windows_core::Interface::as_raw(self)).ok() @@ -29741,7 +29730,7 @@ impl IMFSampleGrabberSinkCallback2 { where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProcessSampleEx)(windows_core::Interface::as_raw(self), core::mem::transmute(guidmajormediatype), core::mem::transmute(dwsampleflags), core::mem::transmute(llsampletime), core::mem::transmute(llsampleduration), core::mem::transmute(psamplebuffer.as_ptr()), psamplebuffer.len().try_into().unwrap(), pattributes.param().abi()).ok() + (windows_core::Interface::vtable(self).OnProcessSampleEx)(windows_core::Interface::as_raw(self), guidmajormediatype, dwsampleflags, llsampletime, llsampleduration, core::mem::transmute(psamplebuffer.as_ptr()), psamplebuffer.len().try_into().unwrap(), pattributes.param().abi()).ok() } } #[repr(C)] @@ -29836,13 +29825,13 @@ impl IMFSampleProtection { (windows_core::Interface::vtable(self).GetOutputProtectionVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetProtectionCertificate(&self, dwversion: u32, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProtectionCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwversion), core::mem::transmute(ppcert), core::mem::transmute(pcbcert)).ok() + (windows_core::Interface::vtable(self).GetProtectionCertificate)(windows_core::Interface::as_raw(self), dwversion, core::mem::transmute(ppcert), core::mem::transmute(pcbcert)).ok() } pub unsafe fn InitOutputProtection(&self, dwversion: u32, dwoutputid: u32, pbcert: *const u8, cbcert: u32, ppbseed: *mut *mut u8, pcbseed: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitOutputProtection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwversion), core::mem::transmute(dwoutputid), core::mem::transmute(pbcert), core::mem::transmute(cbcert), core::mem::transmute(ppbseed), core::mem::transmute(pcbseed)).ok() + (windows_core::Interface::vtable(self).InitOutputProtection)(windows_core::Interface::as_raw(self), dwversion, dwoutputid, pbcert, cbcert, core::mem::transmute(ppbseed), core::mem::transmute(pcbseed)).ok() } pub unsafe fn InitInputProtection(&self, dwversion: u32, dwinputid: u32, pbseed: *const u8, cbseed: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitInputProtection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwversion), core::mem::transmute(dwinputid), core::mem::transmute(pbseed), core::mem::transmute(cbseed)).ok() + (windows_core::Interface::vtable(self).InitInputProtection)(windows_core::Interface::as_raw(self), dwversion, dwinputid, pbseed, cbseed).ok() } } #[repr(C)] @@ -29996,7 +29985,7 @@ impl IMFSchemeHandler { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwflags), pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwflags, pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndCreateObject(&self, presult: P0, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> where @@ -30136,7 +30125,7 @@ windows_core::imp::interface_hierarchy!(IMFSeekInfo, windows_core::IUnknown); impl IMFSeekInfo { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetNearestKeyFrames(&self, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarpreviouskeyframe: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pvarnextkeyframe: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearestKeyFrames)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidtimeformat), core::mem::transmute(pvarstartposition), core::mem::transmute(pvarpreviouskeyframe), core::mem::transmute(pvarnextkeyframe)).ok() + (windows_core::Interface::vtable(self).GetNearestKeyFrames)(windows_core::Interface::as_raw(self), pguidtimeformat, core::mem::transmute(pvarstartposition), core::mem::transmute(pvarpreviouskeyframe), core::mem::transmute(pvarnextkeyframe)).ok() } } #[repr(C)] @@ -30175,7 +30164,7 @@ impl IMFSensorActivitiesReport { } pub unsafe fn GetActivityReport(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActivityReport)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetActivityReport)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetActivityReportByDeviceName(&self, symbolicname: P0) -> windows_core::Result where @@ -30324,7 +30313,7 @@ impl IMFSensorActivityReport { } pub unsafe fn GetProcessActivity(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessActivity)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProcessActivity)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -30408,14 +30397,14 @@ impl IMFSensorDevice { } pub unsafe fn GetStreamAttributesCount(&self, etype: MFSensorStreamType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamAttributesCount)(windows_core::Interface::as_raw(self), core::mem::transmute(etype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamAttributesCount)(windows_core::Interface::as_raw(self), etype, &mut result__).map(|| result__) } pub unsafe fn GetStreamAttributes(&self, etype: MFSensorStreamType, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(etype), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamAttributes)(windows_core::Interface::as_raw(self), etype, dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSensorDeviceMode(&self, emode: MFSensorDeviceMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSensorDeviceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(emode)).ok() + (windows_core::Interface::vtable(self).SetSensorDeviceMode)(windows_core::Interface::as_raw(self), emode).ok() } pub unsafe fn GetSensorDeviceMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30564,10 +30553,10 @@ impl IMFSensorGroup { } pub unsafe fn GetSensorDevice(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSensorDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSensorDevice)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultSensorDeviceIndex(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultSensorDeviceIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).SetDefaultSensorDeviceIndex)(windows_core::Interface::as_raw(self), dwindex).ok() } pub unsafe fn GetDefaultSensorDeviceIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30786,14 +30775,14 @@ impl IMFSensorProfile { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddProfileFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(streamid), wzfiltersetstring.param().abi()).ok() + (windows_core::Interface::vtable(self).AddProfileFilter)(windows_core::Interface::as_raw(self), streamid, wzfiltersetstring.param().abi()).ok() } pub unsafe fn IsMediaTypeSupported(&self, streamid: u32, pmediatype: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsMediaTypeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(streamid), pmediatype.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsMediaTypeSupported)(windows_core::Interface::as_raw(self), streamid, pmediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AddBlockedControl(&self, wzblockedcontrol: P0) -> windows_core::Result<()> where @@ -30861,7 +30850,7 @@ impl IMFSensorProfileCollection { } pub unsafe fn GetProfile(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddProfile(&self, pprofile: P0) -> windows_core::Result<()> where @@ -30871,13 +30860,13 @@ impl IMFSensorProfileCollection { } pub unsafe fn FindProfile(&self, profileid: *const SENSORPROFILEID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(profileid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindProfile)(windows_core::Interface::as_raw(self), profileid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveProfileByIndex(&self, index: u32) { - (windows_core::Interface::vtable(self).RemoveProfileByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).RemoveProfileByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn RemoveProfile(&self, profileid: *const SENSORPROFILEID) { - (windows_core::Interface::vtable(self).RemoveProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(profileid)) + (windows_core::Interface::vtable(self).RemoveProfile)(windows_core::Interface::as_raw(self), profileid) } } #[repr(C)] @@ -30966,7 +30955,7 @@ impl IMFSensorStream { } pub unsafe fn GetMediaType(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMediaType)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CloneSensorStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31044,21 +31033,21 @@ impl IMFSensorTransformFactory { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFactory)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxtransformcount), psensordevices.param().abi(), pattributes.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFactory)(windows_core::Interface::as_raw(self), dwmaxtransformcount, psensordevices.param().abi(), pattributes.param().abi()).ok() } pub unsafe fn GetTransformCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTransformCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetTransformInformation(&self, transformindex: u32, pguidtransformid: *mut windows_core::GUID, ppattributes: *mut Option, ppstreaminformation: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTransformInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(transformindex), core::mem::transmute(pguidtransformid), core::mem::transmute(ppattributes), core::mem::transmute(ppstreaminformation)).ok() + (windows_core::Interface::vtable(self).GetTransformInformation)(windows_core::Interface::as_raw(self), transformindex, core::mem::transmute(pguidtransformid), core::mem::transmute(ppattributes), core::mem::transmute(ppstreaminformation)).ok() } pub unsafe fn CreateTransform(&self, guidsensortransformid: *const windows_core::GUID, pattributes: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(guidsensortransformid), pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTransform)(windows_core::Interface::as_raw(self), guidsensortransformid, pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -31139,10 +31128,10 @@ impl IMFSequencerSource { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AppendTopology)(windows_core::Interface::as_raw(self), ptopology.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AppendTopology)(windows_core::Interface::as_raw(self), ptopology.param().abi(), dwflags, &mut result__).map(|| result__) } pub unsafe fn DeleteTopology(&self, dwid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid)).ok() + (windows_core::Interface::vtable(self).DeleteTopology)(windows_core::Interface::as_raw(self), dwid).ok() } pub unsafe fn GetPresentationContext(&self, ppd: P0, pid: Option<*mut u32>, pptopology: Option<*mut Option>) -> windows_core::Result<()> where @@ -31154,10 +31143,10 @@ impl IMFSequencerSource { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTopology)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid), ptopology.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateTopology)(windows_core::Interface::as_raw(self), dwid, ptopology.param().abi()).ok() } pub unsafe fn UpdateTopologyFlags(&self, dwid: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateTopologyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).UpdateTopologyFlags)(windows_core::Interface::as_raw(self), dwid, dwflags).ok() } } #[repr(C)] @@ -31226,7 +31215,7 @@ impl IMFSharingEngineClassFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -31339,7 +31328,7 @@ windows_core::imp::define_interface!(IMFSimpleAudioVolume, IMFSimpleAudioVolume_ windows_core::imp::interface_hierarchy!(IMFSimpleAudioVolume, windows_core::IUnknown); impl IMFSimpleAudioVolume { pub unsafe fn SetMasterVolume(&self, flevel: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMasterVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(flevel)).ok() + (windows_core::Interface::vtable(self).SetMasterVolume)(windows_core::Interface::as_raw(self), flevel).ok() } pub unsafe fn GetMasterVolume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31425,7 +31414,7 @@ impl IMFSinkWriter { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), pinputmediatype.param().abi(), pencodingparameters.param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pinputmediatype.param().abi(), pencodingparameters.param().abi()).ok() } pub unsafe fn BeginWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginWriting)(windows_core::Interface::as_raw(self)).ok() @@ -31434,28 +31423,28 @@ impl IMFSinkWriter { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteSample)(windows_core::Interface::as_raw(self), dwstreamindex, psample.param().abi()).ok() } pub unsafe fn SendStreamTick(&self, dwstreamindex: u32, lltimestamp: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendStreamTick)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(lltimestamp)).ok() + (windows_core::Interface::vtable(self).SendStreamTick)(windows_core::Interface::as_raw(self), dwstreamindex, lltimestamp).ok() } pub unsafe fn PlaceMarker(&self, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlaceMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).PlaceMarker)(windows_core::Interface::as_raw(self), dwstreamindex, pvcontext).ok() } pub unsafe fn NotifyEndOfSegment(&self, dwstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyEndOfSegment)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)).ok() + (windows_core::Interface::vtable(self).NotifyEndOfSegment)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn Flush(&self, dwstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)).ok() + (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn Finalize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finalize)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetServiceForStream(&self, dwstreamindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetServiceForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(guidservice), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetServiceForStream)(windows_core::Interface::as_raw(self), dwstreamindex, guidservice, riid, core::mem::transmute(ppvobject)).ok() } pub unsafe fn GetStatistics(&self, dwstreamindex: u32, pstats: *mut MF_SINK_WRITER_STATISTICS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(pstats)).ok() + (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pstats)).ok() } } #[repr(C)] @@ -31562,10 +31551,10 @@ windows_core::imp::define_interface!(IMFSinkWriterCallback, IMFSinkWriterCallbac windows_core::imp::interface_hierarchy!(IMFSinkWriterCallback, windows_core::IUnknown); impl IMFSinkWriterCallback { pub unsafe fn OnFinalize(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnFinalize)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnFinalize)(windows_core::Interface::as_raw(self), hrstatus).ok() } pub unsafe fn OnMarker(&self, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnMarker)(windows_core::Interface::as_raw(self), dwstreamindex, pvcontext).ok() } } #[repr(C)] @@ -31612,7 +31601,7 @@ impl IMFSinkWriterCallback2 { (windows_core::Interface::vtable(self).OnTransformChange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnStreamError(&self, dwstreamindex: u32, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStreamError)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnStreamError)(windows_core::Interface::as_raw(self), dwstreamindex, hrstatus).ok() } } #[repr(C)] @@ -31654,13 +31643,13 @@ impl IMFSinkWriterEncoderConfig { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), ptargetmediatype.param().abi(), pencodingparameters.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, ptargetmediatype.param().abi(), pencodingparameters.param().abi()).ok() } pub unsafe fn PlaceEncodingParameters(&self, dwstreamindex: u32, pencodingparameters: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaceEncodingParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), pencodingparameters.param().abi()).ok() + (windows_core::Interface::vtable(self).PlaceEncodingParameters)(windows_core::Interface::as_raw(self), dwstreamindex, pencodingparameters.param().abi()).ok() } } #[repr(C)] @@ -31704,7 +31693,7 @@ impl core::ops::Deref for IMFSinkWriterEx { windows_core::imp::interface_hierarchy!(IMFSinkWriterEx, windows_core::IUnknown, IMFSinkWriter); impl IMFSinkWriterEx { pub unsafe fn GetTransformForStream(&self, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: Option<*mut windows_core::GUID>, pptransform: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTransformForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwtransformindex), core::mem::transmute(pguidcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptransform)).ok() + (windows_core::Interface::vtable(self).GetTransformForStream)(windows_core::Interface::as_raw(self), dwstreamindex, dwtransformindex, core::mem::transmute(pguidcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptransform)).ok() } } #[repr(C)] @@ -31742,19 +31731,19 @@ impl IMFSourceBuffer { (windows_core::Interface::vtable(self).GetTimeStampOffset)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetTimeStampOffset(&self, offset: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeStampOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetTimeStampOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetAppendWindowStart(&self) -> f64 { (windows_core::Interface::vtable(self).GetAppendWindowStart)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetAppendWindowStart(&self, time: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppendWindowStart)(windows_core::Interface::as_raw(self), core::mem::transmute(time)).ok() + (windows_core::Interface::vtable(self).SetAppendWindowStart)(windows_core::Interface::as_raw(self), time).ok() } pub unsafe fn GetAppendWindowEnd(&self) -> f64 { (windows_core::Interface::vtable(self).GetAppendWindowEnd)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetAppendWindowEnd(&self, time: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppendWindowEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(time)).ok() + (windows_core::Interface::vtable(self).SetAppendWindowEnd)(windows_core::Interface::as_raw(self), time).ok() } pub unsafe fn Append(&self, pdata: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()).ok() @@ -31769,7 +31758,7 @@ impl IMFSourceBuffer { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Remove(&self, start: f64, end: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(end)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), start, end).ok() } } #[repr(C)] @@ -31886,7 +31875,7 @@ impl IMFSourceBufferAppendMode { (windows_core::Interface::vtable(self).GetAppendMode)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetAppendMode(&self, mode: MF_MSE_APPEND_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppendMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetAppendMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[repr(C)] @@ -31927,7 +31916,7 @@ impl IMFSourceBufferList { (windows_core::Interface::vtable(self).GetLength)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetSourceBuffer(&self, index: u32) -> Option { - (windows_core::Interface::vtable(self).GetSourceBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).GetSourceBuffer)(windows_core::Interface::as_raw(self), index) } } #[repr(C)] @@ -31971,7 +31960,7 @@ impl IMFSourceBufferNotify { (windows_core::Interface::vtable(self).OnAbort)(windows_core::Interface::as_raw(self)) } pub unsafe fn OnError(&self, hr: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)) + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hr) } pub unsafe fn OnUpdate(&self) { (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self)) @@ -32068,42 +32057,42 @@ windows_core::imp::interface_hierarchy!(IMFSourceReader, windows_core::IUnknown) impl IMFSourceReader { pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, fselected: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), fselected.into()).ok() + (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fselected.into()).ok() } pub unsafe fn GetNativeMediaType(&self, dwstreamindex: u32, dwmediatypeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNativeMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwmediatypeindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNativeMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, dwmediatypeindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentMediaType(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCurrentMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCurrentMediaType(&self, dwstreamindex: u32, pdwreserved: Option<*const u32>, pmediatype: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCurrentMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), pmediatype.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCurrentMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), pmediatype.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetCurrentPosition(&self, guidtimeformat: *const windows_core::GUID, varposition: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtimeformat), core::mem::transmute(varposition)).ok() + (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), guidtimeformat, core::mem::transmute(varposition)).ok() } pub unsafe fn ReadSample(&self, dwstreamindex: u32, dwcontrolflags: u32, pdwactualstreamindex: Option<*mut u32>, pdwstreamflags: Option<*mut u32>, plltimestamp: Option<*mut i64>, ppsample: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwcontrolflags), core::mem::transmute(pdwactualstreamindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstreamflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(plltimestamp.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsample.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadSample)(windows_core::Interface::as_raw(self), dwstreamindex, dwcontrolflags, core::mem::transmute(pdwactualstreamindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstreamflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(plltimestamp.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsample.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Flush(&self, dwstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)).ok() + (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn GetServiceForStream(&self, dwstreamindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetServiceForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(guidservice), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetServiceForStream)(windows_core::Interface::as_raw(self), dwstreamindex, guidservice, riid, core::mem::transmute(ppvobject)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetPresentationAttribute(&self, dwstreamindex: u32, guidattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPresentationAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(guidattribute), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPresentationAttribute)(windows_core::Interface::as_raw(self), dwstreamindex, guidattribute, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -32233,16 +32222,16 @@ impl IMFSourceReaderCallback { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadSample)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus), core::mem::transmute(dwstreamindex), core::mem::transmute(dwstreamflags), core::mem::transmute(lltimestamp), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).OnReadSample)(windows_core::Interface::as_raw(self), hrstatus, dwstreamindex, dwstreamflags, lltimestamp, psample.param().abi()).ok() } pub unsafe fn OnFlush(&self, dwstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnFlush)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)).ok() + (windows_core::Interface::vtable(self).OnFlush)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn OnEvent(&self, dwstreamindex: u32, pevent: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), pevent.param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dwstreamindex, pevent.param().abi()).ok() } } #[repr(C)] @@ -32296,7 +32285,7 @@ impl IMFSourceReaderCallback2 { (windows_core::Interface::vtable(self).OnTransformChange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnStreamError(&self, dwstreamindex: u32, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStreamError)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnStreamError)(windows_core::Interface::as_raw(self), dwstreamindex, hrstatus).ok() } } #[repr(C)] @@ -32344,19 +32333,19 @@ impl IMFSourceReaderEx { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNativeMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), pmediatype.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNativeMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pmediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AddTransformForStream(&self, dwstreamindex: u32, ptransformoractivate: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransformForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), ptransformoractivate.param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransformForStream)(windows_core::Interface::as_raw(self), dwstreamindex, ptransformoractivate.param().abi()).ok() } pub unsafe fn RemoveAllTransformsForStream(&self, dwstreamindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAllTransformsForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex)).ok() + (windows_core::Interface::vtable(self).RemoveAllTransformsForStream)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn GetTransformForStream(&self, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: Option<*mut windows_core::GUID>, pptransform: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTransformForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), core::mem::transmute(dwtransformindex), core::mem::transmute(pguidcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptransform)).ok() + (windows_core::Interface::vtable(self).GetTransformForStream)(windows_core::Interface::as_raw(self), dwstreamindex, dwtransformindex, core::mem::transmute(pguidcategory.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptransform)).ok() } } #[repr(C)] @@ -32422,7 +32411,7 @@ impl IMFSourceResolver { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateObjectFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwflags), pprops.param().abi(), core::mem::transmute(pobjecttype), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).CreateObjectFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwflags, pprops.param().abi(), core::mem::transmute(pobjecttype), core::mem::transmute(ppobject)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateObjectFromByteStream(&self, pbytestream: P0, pwszurl: P1, dwflags: u32, pprops: P3, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> @@ -32431,7 +32420,7 @@ impl IMFSourceResolver { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateObjectFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pwszurl.param().abi(), core::mem::transmute(dwflags), pprops.param().abi(), core::mem::transmute(pobjecttype), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).CreateObjectFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pwszurl.param().abi(), dwflags, pprops.param().abi(), core::mem::transmute(pobjecttype), core::mem::transmute(ppobject)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn BeginCreateObjectFromURL(&self, pwszurl: P0, dwflags: u32, pprops: P2, ppiunknowncancelcookie: Option<*mut Option>, pcallback: P4, punkstate: P5) -> windows_core::Result<()> @@ -32441,7 +32430,7 @@ impl IMFSourceResolver { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObjectFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwflags), pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCreateObjectFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwflags, pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndCreateObjectFromURL(&self, presult: P0, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> where @@ -32458,7 +32447,7 @@ impl IMFSourceResolver { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObjectFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pwszurl.param().abi(), core::mem::transmute(dwflags), pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCreateObjectFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pwszurl.param().abi(), dwflags, pprops.param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(core::mem::zeroed())), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndCreateObjectFromByteStream(&self, presult: P0, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> where @@ -32564,7 +32553,7 @@ impl core::ops::Deref for IMFSpatialAudioObjectBuffer { windows_core::imp::interface_hierarchy!(IMFSpatialAudioObjectBuffer, windows_core::IUnknown, IMFMediaBuffer); impl IMFSpatialAudioObjectBuffer { pub unsafe fn SetID(&self, u32id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetID)(windows_core::Interface::as_raw(self), core::mem::transmute(u32id)).ok() + (windows_core::Interface::vtable(self).SetID)(windows_core::Interface::as_raw(self), u32id).ok() } pub unsafe fn GetID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32572,7 +32561,7 @@ impl IMFSpatialAudioObjectBuffer { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetType(&self, r#type: super::Audio::AudioObjectType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), r#type).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn GetType(&self) -> windows_core::Result { @@ -32688,7 +32677,7 @@ impl IMFSpatialAudioSample { } pub unsafe fn GetSpatialAudioObjectByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSpatialAudioObjectByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSpatialAudioObjectByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -32837,7 +32826,7 @@ impl IMFStreamSink { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn PlaceMarker(&self, emarkertype: MFSTREAMSINK_MARKER_TYPE, pvarmarkervalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pvarcontextvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlaceMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(emarkertype), core::mem::transmute(pvarmarkervalue), core::mem::transmute(pvarcontextvalue)).ok() + (windows_core::Interface::vtable(self).PlaceMarker)(windows_core::Interface::as_raw(self), emarkertype, core::mem::transmute(pvarmarkervalue), core::mem::transmute(pvarcontextvalue)).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() @@ -32930,7 +32919,7 @@ windows_core::imp::define_interface!(IMFStreamingSinkConfig, IMFStreamingSinkCon windows_core::imp::interface_hierarchy!(IMFStreamingSinkConfig, windows_core::IUnknown); impl IMFStreamingSinkConfig { pub unsafe fn StartStreaming(&self, fseekoffsetisbyteoffset: bool, qwseekoffset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartStreaming)(windows_core::Interface::as_raw(self), fseekoffsetisbyteoffset.into(), core::mem::transmute(qwseekoffset)).ok() + (windows_core::Interface::vtable(self).StartStreaming)(windows_core::Interface::as_raw(self), fseekoffsetisbyteoffset.into(), qwseekoffset).ok() } } #[repr(C)] @@ -32961,7 +32950,7 @@ impl IMFSystemId { (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(data)).ok() } pub unsafe fn Setup(&self, stage: u32, pbin: &[u8], pcbout: *mut u32, ppbout: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setup)(windows_core::Interface::as_raw(self), core::mem::transmute(stage), pbin.len().try_into().unwrap(), core::mem::transmute(pbin.as_ptr()), core::mem::transmute(pcbout), core::mem::transmute(ppbout)).ok() + (windows_core::Interface::vtable(self).Setup)(windows_core::Interface::as_raw(self), stage, pbin.len().try_into().unwrap(), core::mem::transmute(pbin.as_ptr()), core::mem::transmute(pcbout), core::mem::transmute(ppbout)).ok() } } #[repr(C)] @@ -33014,7 +33003,7 @@ impl IMFTimecodeTranslate { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginConvertHNSToTimecode)(windows_core::Interface::as_raw(self), core::mem::transmute(hnstime), pcallback.param().abi(), punkstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginConvertHNSToTimecode)(windows_core::Interface::as_raw(self), hnstime, pcallback.param().abi(), punkstate.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn EndConvertHNSToTimecode(&self, presult: P0) -> windows_core::Result @@ -33101,7 +33090,7 @@ impl IMFTimedText { (windows_core::Interface::vtable(self).RegisterNotifications)(windows_core::Interface::as_raw(self), notify.param().abi()).ok() } pub unsafe fn SelectTrack(&self, trackid: u32, selected: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectTrack)(windows_core::Interface::as_raw(self), core::mem::transmute(trackid), selected.into()).ok() + (windows_core::Interface::vtable(self).SelectTrack)(windows_core::Interface::as_raw(self), trackid, selected.into()).ok() } pub unsafe fn AddDataSource(&self, bytestream: P0, label: P1, language: P2, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: bool) -> windows_core::Result where @@ -33110,7 +33099,7 @@ impl IMFTimedText { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddDataSource)(windows_core::Interface::as_raw(self), bytestream.param().abi(), label.param().abi(), language.param().abi(), core::mem::transmute(kind), isdefault.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddDataSource)(windows_core::Interface::as_raw(self), bytestream.param().abi(), label.param().abi(), language.param().abi(), kind, isdefault.into(), &mut result__).map(|| result__) } pub unsafe fn AddDataSourceFromUrl(&self, url: P0, label: P1, language: P2, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: bool) -> windows_core::Result where @@ -33119,7 +33108,7 @@ impl IMFTimedText { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddDataSourceFromUrl)(windows_core::Interface::as_raw(self), url.param().abi(), label.param().abi(), language.param().abi(), core::mem::transmute(kind), isdefault.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddDataSourceFromUrl)(windows_core::Interface::as_raw(self), url.param().abi(), label.param().abi(), language.param().abi(), kind, isdefault.into(), &mut result__).map(|| result__) } pub unsafe fn AddTrack(&self, label: P0, language: P1, kind: MF_TIMED_TEXT_TRACK_KIND) -> windows_core::Result where @@ -33127,7 +33116,7 @@ impl IMFTimedText { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddTrack)(windows_core::Interface::as_raw(self), label.param().abi(), language.param().abi(), core::mem::transmute(kind), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddTrack)(windows_core::Interface::as_raw(self), label.param().abi(), language.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveTrack(&self, track: P0) -> windows_core::Result<()> where @@ -33140,7 +33129,7 @@ impl IMFTimedText { (windows_core::Interface::vtable(self).GetCueTimeOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCueTimeOffset(&self, offset: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCueTimeOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetCueTimeOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetTracks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33467,7 +33456,7 @@ impl IMFTimedTextCue { } pub unsafe fn GetLine(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLine)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLine)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -33602,11 +33591,11 @@ impl IMFTimedTextCueList { } pub unsafe fn GetCueByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCueByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCueByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCueById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCueById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCueById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCueByOriginalId(&self, originalid: P0) -> windows_core::Result where @@ -33619,10 +33608,10 @@ impl IMFTimedTextCueList { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextCue)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(duration), text.param().abi(), core::mem::transmute(cue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddTextCue)(windows_core::Interface::as_raw(self), start, duration, text.param().abi(), core::mem::transmute(cue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddDataCue(&self, start: f64, duration: f64, data: &[u8], cue: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDataCue)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(duration), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(cue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddDataCue)(windows_core::Interface::as_raw(self), start, duration, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(cue.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemoveCue(&self, cue: P0) -> windows_core::Result<()> where @@ -33726,7 +33715,7 @@ impl IMFTimedTextFormattedText { (windows_core::Interface::vtable(self).GetSubformattingCount)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetSubformatting(&self, index: u32, firstchar: *mut u32, charlength: *mut u32, style: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSubformatting)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(firstchar), core::mem::transmute(charlength), core::mem::transmute(style)).ok() + (windows_core::Interface::vtable(self).GetSubformatting)(windows_core::Interface::as_raw(self), index, core::mem::transmute(firstchar), core::mem::transmute(charlength), core::mem::transmute(style)).ok() } } #[repr(C)] @@ -33777,25 +33766,25 @@ windows_core::imp::define_interface!(IMFTimedTextNotify, IMFTimedTextNotify_Vtbl windows_core::imp::interface_hierarchy!(IMFTimedTextNotify, windows_core::IUnknown); impl IMFTimedTextNotify { pub unsafe fn TrackAdded(&self, trackid: u32) { - (windows_core::Interface::vtable(self).TrackAdded)(windows_core::Interface::as_raw(self), core::mem::transmute(trackid)) + (windows_core::Interface::vtable(self).TrackAdded)(windows_core::Interface::as_raw(self), trackid) } pub unsafe fn TrackRemoved(&self, trackid: u32) { - (windows_core::Interface::vtable(self).TrackRemoved)(windows_core::Interface::as_raw(self), core::mem::transmute(trackid)) + (windows_core::Interface::vtable(self).TrackRemoved)(windows_core::Interface::as_raw(self), trackid) } pub unsafe fn TrackSelected(&self, trackid: u32, selected: bool) { - (windows_core::Interface::vtable(self).TrackSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(trackid), selected.into()) + (windows_core::Interface::vtable(self).TrackSelected)(windows_core::Interface::as_raw(self), trackid, selected.into()) } pub unsafe fn TrackReadyStateChanged(&self, trackid: u32) { - (windows_core::Interface::vtable(self).TrackReadyStateChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(trackid)) + (windows_core::Interface::vtable(self).TrackReadyStateChanged)(windows_core::Interface::as_raw(self), trackid) } pub unsafe fn Error(&self, errorcode: MF_TIMED_TEXT_ERROR_CODE, extendederrorcode: windows_core::HRESULT, sourcetrackid: u32) { - (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), core::mem::transmute(errorcode), core::mem::transmute(extendederrorcode), core::mem::transmute(sourcetrackid)) + (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), errorcode, extendederrorcode, sourcetrackid) } pub unsafe fn Cue(&self, cueevent: MF_TIMED_TEXT_CUE_EVENT, currenttime: f64, cue: P2) where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Cue)(windows_core::Interface::as_raw(self), core::mem::transmute(cueevent), core::mem::transmute(currenttime), cue.param().abi()) + (windows_core::Interface::vtable(self).Cue)(windows_core::Interface::as_raw(self), cueevent, currenttime, cue.param().abi()) } pub unsafe fn Reset(&self) { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)) @@ -34660,11 +34649,11 @@ impl IMFTimedTextTrackList { } pub unsafe fn GetTrack(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTrack)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTrack)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTrackById(&self, trackid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTrackById)(windows_core::Interface::as_raw(self), core::mem::transmute(trackid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTrackById)(windows_core::Interface::as_raw(self), trackid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -34726,7 +34715,7 @@ impl IMFTimer { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(llclocktime), pcallback.param().abi(), punkstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetTimer)(windows_core::Interface::as_raw(self), dwflags, llclocktime, pcallback.param().abi(), punkstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CancelTimer(&self, punkkey: P0) -> windows_core::Result<()> where @@ -34835,7 +34824,7 @@ impl IMFTopology { } pub unsafe fn GetNode(&self, windex: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNode)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNode)(windows_core::Interface::as_raw(self), windex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -34848,7 +34837,7 @@ impl IMFTopology { } pub unsafe fn GetNodeByID(&self, qwtoponodeid: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNodeByID)(windows_core::Interface::as_raw(self), core::mem::transmute(qwtoponodeid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNodeByID)(windows_core::Interface::as_raw(self), qwtoponodeid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSourceNodeCollection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -35013,7 +35002,7 @@ impl IMFTopologyNode { (windows_core::Interface::vtable(self).GetTopoNodeID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTopoNodeID(&self, ulltopoid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTopoNodeID)(windows_core::Interface::as_raw(self), core::mem::transmute(ulltopoid)).ok() + (windows_core::Interface::vtable(self).SetTopoNodeID)(windows_core::Interface::as_raw(self), ulltopoid).ok() } pub unsafe fn GetInputCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -35027,36 +35016,36 @@ impl IMFTopologyNode { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputindex), pdownstreamnode.param().abi(), core::mem::transmute(dwinputindexondownstreamnode)).ok() + (windows_core::Interface::vtable(self).ConnectOutput)(windows_core::Interface::as_raw(self), dwoutputindex, pdownstreamnode.param().abi(), dwinputindexondownstreamnode).ok() } pub unsafe fn DisconnectOutput(&self, dwoutputindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputindex)).ok() + (windows_core::Interface::vtable(self).DisconnectOutput)(windows_core::Interface::as_raw(self), dwoutputindex).ok() } pub unsafe fn GetInput(&self, dwinputindex: u32, ppupstreamnode: *mut Option, pdwoutputindexonupstreamnode: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputindex), core::mem::transmute(ppupstreamnode), core::mem::transmute(pdwoutputindexonupstreamnode)).ok() + (windows_core::Interface::vtable(self).GetInput)(windows_core::Interface::as_raw(self), dwinputindex, core::mem::transmute(ppupstreamnode), core::mem::transmute(pdwoutputindexonupstreamnode)).ok() } pub unsafe fn GetOutput(&self, dwoutputindex: u32, ppdownstreamnode: *mut Option, pdwinputindexondownstreamnode: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputindex), core::mem::transmute(ppdownstreamnode), core::mem::transmute(pdwinputindexondownstreamnode)).ok() + (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), dwoutputindex, core::mem::transmute(ppdownstreamnode), core::mem::transmute(pdwinputindexondownstreamnode)).ok() } pub unsafe fn SetOutputPrefType(&self, dwoutputindex: u32, ptype: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputPrefType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputindex), ptype.param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputPrefType)(windows_core::Interface::as_raw(self), dwoutputindex, ptype.param().abi()).ok() } pub unsafe fn GetOutputPrefType(&self, dwoutputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputPrefType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputPrefType)(windows_core::Interface::as_raw(self), dwoutputindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetInputPrefType(&self, dwinputindex: u32, ptype: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputPrefType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputindex), ptype.param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputPrefType)(windows_core::Interface::as_raw(self), dwinputindex, ptype.param().abi()).ok() } pub unsafe fn GetInputPrefType(&self, dwinputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputPrefType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputPrefType)(windows_core::Interface::as_raw(self), dwinputindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CloneFrom(&self, pnode: P0) -> windows_core::Result<()> where @@ -35243,7 +35232,7 @@ windows_core::imp::define_interface!(IMFTopologyNodeAttributeEditor, IMFTopology windows_core::imp::interface_hierarchy!(IMFTopologyNodeAttributeEditor, windows_core::IUnknown); impl IMFTopologyNodeAttributeEditor { pub unsafe fn UpdateNodeAttributes(&self, topoid: u64, pupdates: &[MFTOPONODE_ATTRIBUTE_UPDATE]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateNodeAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(topoid), pupdates.len().try_into().unwrap(), core::mem::transmute(pupdates.as_ptr())).ok() + (windows_core::Interface::vtable(self).UpdateNodeAttributes)(windows_core::Interface::as_raw(self), topoid, pupdates.len().try_into().unwrap(), core::mem::transmute(pupdates.as_ptr())).ok() } } #[repr(C)] @@ -35271,7 +35260,7 @@ windows_core::imp::define_interface!(IMFTopologyServiceLookup, IMFTopologyServic windows_core::imp::interface_hierarchy!(IMFTopologyServiceLookup, windows_core::IUnknown); impl IMFTopologyServiceLookup { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).LookupService)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(dwindex), core::mem::transmute(guidservice), core::mem::transmute(riid), core::mem::transmute(ppvobjects), core::mem::transmute(pnobjects)).ok() + (windows_core::Interface::vtable(self).LookupService)(windows_core::Interface::as_raw(self), r#type, dwindex, guidservice, riid, core::mem::transmute(ppvobjects), core::mem::transmute(pnobjects)).ok() } } #[repr(C)] @@ -35572,11 +35561,11 @@ impl IMFTransform { (windows_core::Interface::vtable(self).GetStreamIDs)(windows_core::Interface::as_raw(self), pdwinputids.len().try_into().unwrap(), core::mem::transmute(pdwinputids.as_ptr()), pdwoutputids.len().try_into().unwrap(), core::mem::transmute(pdwoutputids.as_ptr())).ok() } pub unsafe fn GetInputStreamInfo(&self, dwinputstreamid: u32, pstreaminfo: *mut MFT_INPUT_STREAM_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputStreamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), core::mem::transmute(pstreaminfo)).ok() + (windows_core::Interface::vtable(self).GetInputStreamInfo)(windows_core::Interface::as_raw(self), dwinputstreamid, core::mem::transmute(pstreaminfo)).ok() } pub unsafe fn GetOutputStreamInfo(&self, dwoutputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputStreamInfo)(windows_core::Interface::as_raw(self), dwoutputstreamid, &mut result__).map(|| result__) } pub unsafe fn GetAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -35584,74 +35573,74 @@ impl IMFTransform { } pub unsafe fn GetInputStreamAttributes(&self, dwinputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputStreamAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputStreamAttributes)(windows_core::Interface::as_raw(self), dwinputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputStreamAttributes(&self, dwoutputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputStreamAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputStreamAttributes)(windows_core::Interface::as_raw(self), dwoutputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteInputStream(&self, dwstreamid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteInputStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid)).ok() + (windows_core::Interface::vtable(self).DeleteInputStream)(windows_core::Interface::as_raw(self), dwstreamid).ok() } pub unsafe fn AddInputStreams(&self, cstreams: u32, adwstreamids: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddInputStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(cstreams), core::mem::transmute(adwstreamids)).ok() + (windows_core::Interface::vtable(self).AddInputStreams)(windows_core::Interface::as_raw(self), cstreams, adwstreamids).ok() } pub unsafe fn GetInputAvailableType(&self, dwinputstreamid: u32, dwtypeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputAvailableType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), core::mem::transmute(dwtypeindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputAvailableType)(windows_core::Interface::as_raw(self), dwinputstreamid, dwtypeindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputAvailableType(&self, dwoutputstreamid: u32, dwtypeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputAvailableType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), core::mem::transmute(dwtypeindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputAvailableType)(windows_core::Interface::as_raw(self), dwoutputstreamid, dwtypeindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetInputType(&self, dwinputstreamid: u32, ptype: P1, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), ptype.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), dwinputstreamid, ptype.param().abi(), dwflags).ok() } pub unsafe fn SetOutputType(&self, dwoutputstreamid: u32, ptype: P1, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), ptype.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetOutputType)(windows_core::Interface::as_raw(self), dwoutputstreamid, ptype.param().abi(), dwflags).ok() } pub unsafe fn GetInputCurrentType(&self, dwinputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputCurrentType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputCurrentType)(windows_core::Interface::as_raw(self), dwinputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputCurrentType(&self, dwoutputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputCurrentType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputstreamid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputCurrentType)(windows_core::Interface::as_raw(self), dwoutputstreamid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInputStatus(&self, dwinputstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputStatus)(windows_core::Interface::as_raw(self), dwinputstreamid, &mut result__).map(|| result__) } pub unsafe fn GetOutputStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputBounds(&self, hnslowerbound: i64, hnsupperbound: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(hnslowerbound), core::mem::transmute(hnsupperbound)).ok() + (windows_core::Interface::vtable(self).SetOutputBounds)(windows_core::Interface::as_raw(self), hnslowerbound, hnsupperbound).ok() } pub unsafe fn ProcessEvent(&self, dwinputstreamid: u32, pevent: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), pevent.param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessEvent)(windows_core::Interface::as_raw(self), dwinputstreamid, pevent.param().abi()).ok() } pub unsafe fn ProcessMessage(&self, emessage: MFT_MESSAGE_TYPE, ulparam: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(emessage), core::mem::transmute(ulparam)).ok() + (windows_core::Interface::vtable(self).ProcessMessage)(windows_core::Interface::as_raw(self), emessage, ulparam).ok() } pub unsafe fn ProcessInput(&self, dwinputstreamid: u32, psample: P1, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputstreamid), psample.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), dwinputstreamid, psample.param().abi(), dwflags).ok() } pub unsafe fn ProcessOutput(&self, dwflags: u32, poutputsamples: &mut [MFT_OUTPUT_DATA_BUFFER], pdwstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), poutputsamples.len().try_into().unwrap(), core::mem::transmute(poutputsamples.as_ptr()), core::mem::transmute(pdwstatus)).ok() + (windows_core::Interface::vtable(self).ProcessOutput)(windows_core::Interface::as_raw(self), dwflags, poutputsamples.len().try_into().unwrap(), core::mem::transmute(poutputsamples.as_ptr()), core::mem::transmute(pdwstatus)).ok() } } #[repr(C)] @@ -35897,7 +35886,7 @@ windows_core::imp::interface_hierarchy!(IMFTrustedInput, windows_core::IUnknown) impl IMFTrustedInput { pub unsafe fn GetInputTrustAuthority(&self, dwstreamid: u32, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputTrustAuthority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputTrustAuthority)(windows_core::Interface::as_raw(self), dwstreamid, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -35936,7 +35925,7 @@ impl IMFTrustedOutput { } pub unsafe fn GetOutputTrustAuthorityByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputTrustAuthorityByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputTrustAuthorityByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsFinal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36013,7 +36002,7 @@ impl IMFVideoCaptureSampleAllocator { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeCaptureSampleAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsamplesize), core::mem::transmute(cbcapturemetadatasize), core::mem::transmute(cbalignment), core::mem::transmute(cminimumsamples), pattributes.param().abi(), pmediatype.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeCaptureSampleAllocator)(windows_core::Interface::as_raw(self), cbsamplesize, cbcapturemetadatasize, cbalignment, cminimumsamples, pattributes.param().abi(), pmediatype.param().abi()).ok() } } #[repr(C)] @@ -36085,20 +36074,20 @@ impl IMFVideoDisplayControl { (windows_core::Interface::vtable(self).GetIdealVideoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmin), core::mem::transmute(pszmax)).ok() } pub unsafe fn SetVideoPosition(&self, pnrcsource: *const MFVideoNormalizedRect, prcdest: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pnrcsource), core::mem::transmute(prcdest)).ok() + (windows_core::Interface::vtable(self).SetVideoPosition)(windows_core::Interface::as_raw(self), pnrcsource, prcdest).ok() } pub unsafe fn GetVideoPosition(&self, pnrcsource: *mut MFVideoNormalizedRect, prcdest: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVideoPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pnrcsource), core::mem::transmute(prcdest)).ok() } pub unsafe fn SetAspectRatioMode(&self, dwaspectratiomode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspectratiomode)).ok() + (windows_core::Interface::vtable(self).SetAspectRatioMode)(windows_core::Interface::as_raw(self), dwaspectratiomode).ok() } pub unsafe fn GetAspectRatioMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAspectRatioMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVideoWindow(&self, hwndvideo: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndvideo)).ok() + (windows_core::Interface::vtable(self).SetVideoWindow)(windows_core::Interface::as_raw(self), hwndvideo).ok() } pub unsafe fn GetVideoWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36112,14 +36101,14 @@ impl IMFVideoDisplayControl { (windows_core::Interface::vtable(self).GetCurrentImage)(windows_core::Interface::as_raw(self), core::mem::transmute(pbih), core::mem::transmute(pdib), core::mem::transmute(pcbdib), core::mem::transmute(ptimestamp)).ok() } pub unsafe fn SetBorderColor(&self, clr: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clr)).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBorderColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrenderflags)).ok() + (windows_core::Interface::vtable(self).SetRenderingPrefs)(windows_core::Interface::as_raw(self), dwrenderflags).ok() } pub unsafe fn GetRenderingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36311,7 +36300,7 @@ impl IMFVideoMediaType { (windows_core::Interface::vtable(self).GetVideoFormat)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetVideoRepresentation(&self, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void, lstride: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), core::mem::transmute(ppvrepresentation), core::mem::transmute(lstride)).ok() + (windows_core::Interface::vtable(self).GetVideoRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), core::mem::transmute(ppvrepresentation), lstride).ok() } } #[repr(C)] @@ -36359,7 +36348,7 @@ impl IMFVideoMixerBitmap { (windows_core::Interface::vtable(self).ClearAlphaBitmap)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn UpdateAlphaBitmapParameters(&self, pbmpparms: *const MFVideoAlphaBitmapParams) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateAlphaBitmapParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pbmpparms)).ok() + (windows_core::Interface::vtable(self).UpdateAlphaBitmapParameters)(windows_core::Interface::as_raw(self), pbmpparms).ok() } pub unsafe fn GetAlphaBitmapParameters(&self, pbmpparms: *mut MFVideoAlphaBitmapParams) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAlphaBitmapParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pbmpparms)).ok() @@ -36420,18 +36409,18 @@ windows_core::imp::define_interface!(IMFVideoMixerControl, IMFVideoMixerControl_ windows_core::imp::interface_hierarchy!(IMFVideoMixerControl, windows_core::IUnknown); impl IMFVideoMixerControl { pub unsafe fn SetStreamZOrder(&self, dwstreamid: u32, dwz: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(dwz)).ok() + (windows_core::Interface::vtable(self).SetStreamZOrder)(windows_core::Interface::as_raw(self), dwstreamid, dwz).ok() } pub unsafe fn GetStreamZOrder(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamZOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamZOrder)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } pub unsafe fn SetStreamOutputRect(&self, dwstreamid: u32, pnrcoutput: *const MFVideoNormalizedRect) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), core::mem::transmute(pnrcoutput)).ok() + (windows_core::Interface::vtable(self).SetStreamOutputRect)(windows_core::Interface::as_raw(self), dwstreamid, pnrcoutput).ok() } pub unsafe fn GetStreamOutputRect(&self, dwstreamid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamOutputRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamOutputRect)(windows_core::Interface::as_raw(self), dwstreamid, &mut result__).map(|| result__) } } #[repr(C)] @@ -36501,7 +36490,7 @@ impl core::ops::Deref for IMFVideoMixerControl2 { windows_core::imp::interface_hierarchy!(IMFVideoMixerControl2, windows_core::IUnknown, IMFVideoMixerControl); impl IMFVideoMixerControl2 { pub unsafe fn SetMixingPrefs(&self, dwmixflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMixingPrefs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmixflags)).ok() + (windows_core::Interface::vtable(self).SetMixingPrefs)(windows_core::Interface::as_raw(self), dwmixflags).ok() } pub unsafe fn GetMixingPrefs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36549,7 +36538,7 @@ windows_core::imp::define_interface!(IMFVideoPositionMapper, IMFVideoPositionMap windows_core::imp::interface_hierarchy!(IMFVideoPositionMapper, windows_core::IUnknown); impl IMFVideoPositionMapper { pub unsafe fn MapOutputCoordinateToInputStream(&self, xout: f32, yout: f32, dwoutputstreamindex: u32, dwinputstreamindex: u32, pxin: *mut f32, pyin: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapOutputCoordinateToInputStream)(windows_core::Interface::as_raw(self), core::mem::transmute(xout), core::mem::transmute(yout), core::mem::transmute(dwoutputstreamindex), core::mem::transmute(dwinputstreamindex), core::mem::transmute(pxin), core::mem::transmute(pyin)).ok() + (windows_core::Interface::vtable(self).MapOutputCoordinateToInputStream)(windows_core::Interface::as_raw(self), xout, yout, dwoutputstreamindex, dwinputstreamindex, core::mem::transmute(pxin), core::mem::transmute(pyin)).ok() } } #[repr(C)] @@ -36586,7 +36575,7 @@ impl core::ops::Deref for IMFVideoPresenter { windows_core::imp::interface_hierarchy!(IMFVideoPresenter, windows_core::IUnknown, IMFClockStateSink); impl IMFVideoPresenter { pub unsafe fn ProcessMessage(&self, emessage: MFVP_MESSAGE_TYPE, ulparam: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(emessage), core::mem::transmute(ulparam)).ok() + (windows_core::Interface::vtable(self).ProcessMessage)(windows_core::Interface::as_raw(self), emessage, ulparam).ok() } pub unsafe fn GetCurrentMediaType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36638,43 +36627,43 @@ impl IMFVideoProcessor { } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetVideoProcessorCaps(&self, lpvideoprocessormode: *const windows_core::GUID, lpvideoprocessorcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVideoProcessorCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpvideoprocessormode), core::mem::transmute(lpvideoprocessorcaps)).ok() + (windows_core::Interface::vtable(self).GetVideoProcessorCaps)(windows_core::Interface::as_raw(self), lpvideoprocessormode, core::mem::transmute(lpvideoprocessorcaps)).ok() } pub unsafe fn GetVideoProcessorMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetVideoProcessorMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVideoProcessorMode(&self, lpmode: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVideoProcessorMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmode)).ok() + (windows_core::Interface::vtable(self).SetVideoProcessorMode)(windows_core::Interface::as_raw(self), lpmode).ok() } pub unsafe fn GetProcAmpRange(&self, dwproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcAmpRange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcAmpRange)(windows_core::Interface::as_raw(self), dwproperty, &mut result__).map(|| result__) } pub unsafe fn GetProcAmpValues(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcAmpValues)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcAmpValues)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn SetProcAmpValues(&self, dwflags: u32, pvalues: *const DXVA2_ProcAmpValues) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcAmpValues)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pvalues)).ok() + (windows_core::Interface::vtable(self).SetProcAmpValues)(windows_core::Interface::as_raw(self), dwflags, pvalues).ok() } pub unsafe fn GetFilteringRange(&self, dwproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteringRange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFilteringRange)(windows_core::Interface::as_raw(self), dwproperty, &mut result__).map(|| result__) } pub unsafe fn GetFilteringValue(&self, dwproperty: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFilteringValue)(windows_core::Interface::as_raw(self), dwproperty, &mut result__).map(|| result__) } pub unsafe fn SetFilteringValue(&self, dwproperty: u32, pvalue: *const DXVA2_Fixed32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilteringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetFilteringValue)(windows_core::Interface::as_raw(self), dwproperty, pvalue).ok() } pub unsafe fn GetBackgroundColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBackgroundColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackgroundColor(&self, clrbkg: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clrbkg)).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), clrbkg).ok() } } #[repr(C)] @@ -36833,10 +36822,10 @@ impl IMFVideoProcessorControl { (windows_core::Interface::vtable(self).SetDestinationRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(pdstrect.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetMirror(&self, emirror: MF_VIDEO_PROCESSOR_MIRROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMirror)(windows_core::Interface::as_raw(self), core::mem::transmute(emirror)).ok() + (windows_core::Interface::vtable(self).SetMirror)(windows_core::Interface::as_raw(self), emirror).ok() } pub unsafe fn SetRotation(&self, erotation: MF_VIDEO_PROCESSOR_ROTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(erotation)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), erotation).ok() } pub unsafe fn SetConstrictionSize(&self, pconstrictionsize: Option<*const super::super::Foundation::SIZE>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetConstrictionSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pconstrictionsize.unwrap_or(core::mem::zeroed()))).ok() @@ -36911,7 +36900,7 @@ impl core::ops::Deref for IMFVideoProcessorControl2 { windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl2, windows_core::IUnknown, IMFVideoProcessorControl); impl IMFVideoProcessorControl2 { pub unsafe fn SetRotationOverride(&self, uirotation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotationOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(uirotation)).ok() + (windows_core::Interface::vtable(self).SetRotationOverride)(windows_core::Interface::as_raw(self), uirotation).ok() } pub unsafe fn EnableHardwareEffects(&self, fenabled: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableHardwareEffects)(windows_core::Interface::as_raw(self), fenabled.into()).ok() @@ -36979,10 +36968,10 @@ impl IMFVideoProcessorControl3 { (windows_core::Interface::vtable(self).GetNaturalOutputType)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableSphericalVideoProcessing(&self, fenable: bool, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableSphericalVideoProcessing)(windows_core::Interface::as_raw(self), fenable.into(), core::mem::transmute(eformat), core::mem::transmute(eprojectionmode)).ok() + (windows_core::Interface::vtable(self).EnableSphericalVideoProcessing)(windows_core::Interface::as_raw(self), fenable.into(), eformat, eprojectionmode).ok() } pub unsafe fn SetSphericalVideoProperties(&self, x: f32, y: f32, z: f32, w: f32, fieldofview: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSphericalVideoProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(z), core::mem::transmute(w), core::mem::transmute(fieldofview)).ok() + (windows_core::Interface::vtable(self).SetSphericalVideoProperties)(windows_core::Interface::as_raw(self), x, y, z, w, fieldofview).ok() } pub unsafe fn SetOutputDevice(&self, poutputdevice: P0) -> windows_core::Result<()> where @@ -37124,7 +37113,7 @@ impl IMFVideoSampleAllocator { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeSampleAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(crequestedframes), pmediatype.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeSampleAllocator)(windows_core::Interface::as_raw(self), crequestedframes, pmediatype.param().abi()).ok() } pub unsafe fn AllocateSample(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -37247,7 +37236,7 @@ impl IMFVideoSampleAllocatorEx { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeSampleAllocatorEx)(windows_core::Interface::as_raw(self), core::mem::transmute(cinitialsamples), core::mem::transmute(cmaximumsamples), pattributes.param().abi(), pmediatype.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeSampleAllocatorEx)(windows_core::Interface::as_raw(self), cinitialsamples, cmaximumsamples, pattributes.param().abi(), pmediatype.param().abi()).ok() } } #[repr(C)] @@ -37353,14 +37342,14 @@ impl IMFVirtualCamera { } #[cfg(feature = "Win32_Devices_Properties")] pub unsafe fn AddProperty(&self, pkey: *const super::super::Foundation::DEVPROPKEY, r#type: super::super::Devices::Properties::DEVPROPTYPE, pbdata: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), core::mem::transmute(r#type), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddProperty)(windows_core::Interface::as_raw(self), pkey, r#type, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap()).ok() } pub unsafe fn AddRegistryEntry(&self, entryname: P0, subkeypath: P1, dwregtype: u32, pbdata: &[u8]) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRegistryEntry)(windows_core::Interface::as_raw(self), entryname.param().abi(), subkeypath.param().abi(), core::mem::transmute(dwregtype), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddRegistryEntry)(windows_core::Interface::as_raw(self), entryname.param().abi(), subkeypath.param().abi(), dwregtype, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap()).ok() } pub unsafe fn Start(&self, pcallback: P0) -> windows_core::Result<()> where @@ -37379,15 +37368,15 @@ impl IMFVirtualCamera { (windows_core::Interface::vtable(self).GetMediaSource)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SendCameraProperty(&self, propertyset: *const windows_core::GUID, propertyid: u32, propertyflags: u32, propertypayload: Option<*mut core::ffi::c_void>, propertypayloadlength: u32, data: Option<*mut core::ffi::c_void>, datalength: u32, datawritten: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendCameraProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyset), core::mem::transmute(propertyid), core::mem::transmute(propertyflags), core::mem::transmute(propertypayload.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertypayloadlength), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(datalength), core::mem::transmute(datawritten)).ok() + (windows_core::Interface::vtable(self).SendCameraProperty)(windows_core::Interface::as_raw(self), propertyset, propertyid, propertyflags, core::mem::transmute(propertypayload.unwrap_or(core::mem::zeroed())), propertypayloadlength, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), datalength, core::mem::transmute(datawritten)).ok() } pub unsafe fn CreateSyncEvent(&self, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, eventhandle: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyncEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(kseventset), core::mem::transmute(kseventid), core::mem::transmute(kseventflags), core::mem::transmute(eventhandle), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSyncEvent)(windows_core::Interface::as_raw(self), kseventset, kseventid, kseventflags, eventhandle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSyncSemaphore(&self, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, semaphorehandle: super::super::Foundation::HANDLE, semaphoreadjustment: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyncSemaphore)(windows_core::Interface::as_raw(self), core::mem::transmute(kseventset), core::mem::transmute(kseventid), core::mem::transmute(kseventflags), core::mem::transmute(semaphorehandle), core::mem::transmute(semaphoreadjustment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSyncSemaphore)(windows_core::Interface::as_raw(self), kseventset, kseventid, kseventflags, semaphorehandle, semaphoreadjustment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -37541,11 +37530,11 @@ impl IMFWorkQueueServices { (windows_core::Interface::vtable(self).EndUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn GetTopologyWorkQueueMMCSSClass(&self, dwtopologyworkqueueid: u32, pwszclass: windows_core::PWSTR, pcchclass: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTopologyWorkQueueMMCSSClass)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtopologyworkqueueid), core::mem::transmute(pwszclass), core::mem::transmute(pcchclass)).ok() + (windows_core::Interface::vtable(self).GetTopologyWorkQueueMMCSSClass)(windows_core::Interface::as_raw(self), dwtopologyworkqueueid, core::mem::transmute(pwszclass), core::mem::transmute(pcchclass)).ok() } pub unsafe fn GetTopologyWorkQueueMMCSSTaskId(&self, dwtopologyworkqueueid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTopologyWorkQueueMMCSSTaskId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtopologyworkqueueid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTopologyWorkQueueMMCSSTaskId)(windows_core::Interface::as_raw(self), dwtopologyworkqueueid, &mut result__).map(|| result__) } pub unsafe fn BeginRegisterPlatformWorkQueueWithMMCSS(&self, dwplatformworkqueue: u32, wszclass: P1, dwtaskid: u32, pcallback: P3, pstate: P4) -> windows_core::Result<()> where @@ -37553,7 +37542,7 @@ impl IMFWorkQueueServices { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplatformworkqueue), wszclass.param().abi(), core::mem::transmute(dwtaskid), pcallback.param().abi(), pstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), dwplatformworkqueue, wszclass.param().abi(), dwtaskid, pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndRegisterPlatformWorkQueueWithMMCSS(&self, presult: P0) -> windows_core::Result where @@ -37567,7 +37556,7 @@ impl IMFWorkQueueServices { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplatformworkqueue), pcallback.param().abi(), pstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), dwplatformworkqueue, pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndUnregisterPlatformWorkQueueWithMMCSS(&self, presult: P0) -> windows_core::Result<()> where @@ -37576,11 +37565,11 @@ impl IMFWorkQueueServices { (windows_core::Interface::vtable(self).EndUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn GetPlaftormWorkQueueMMCSSClass(&self, dwplatformworkqueueid: u32, pwszclass: windows_core::PWSTR, pcchclass: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPlaftormWorkQueueMMCSSClass)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplatformworkqueueid), core::mem::transmute(pwszclass), core::mem::transmute(pcchclass)).ok() + (windows_core::Interface::vtable(self).GetPlaftormWorkQueueMMCSSClass)(windows_core::Interface::as_raw(self), dwplatformworkqueueid, core::mem::transmute(pwszclass), core::mem::transmute(pcchclass)).ok() } pub unsafe fn GetPlatformWorkQueueMMCSSTaskId(&self, dwplatformworkqueueid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPlatformWorkQueueMMCSSTaskId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplatformworkqueueid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPlatformWorkQueueMMCSSTaskId)(windows_core::Interface::as_raw(self), dwplatformworkqueueid, &mut result__).map(|| result__) } } #[repr(C)] @@ -37713,7 +37702,7 @@ windows_core::imp::interface_hierarchy!(IMFWorkQueueServicesEx, windows_core::IU impl IMFWorkQueueServicesEx { pub unsafe fn GetTopologyWorkQueueMMCSSPriority(&self, dwtopologyworkqueueid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTopologyWorkQueueMMCSSPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtopologyworkqueueid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTopologyWorkQueueMMCSSPriority)(windows_core::Interface::as_raw(self), dwtopologyworkqueueid, &mut result__).map(|| result__) } pub unsafe fn BeginRegisterPlatformWorkQueueWithMMCSSEx(&self, dwplatformworkqueue: u32, wszclass: P1, dwtaskid: u32, lpriority: i32, pcallback: P4, pstate: P5) -> windows_core::Result<()> where @@ -37721,11 +37710,11 @@ impl IMFWorkQueueServicesEx { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginRegisterPlatformWorkQueueWithMMCSSEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplatformworkqueue), wszclass.param().abi(), core::mem::transmute(dwtaskid), core::mem::transmute(lpriority), pcallback.param().abi(), pstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginRegisterPlatformWorkQueueWithMMCSSEx)(windows_core::Interface::as_raw(self), dwplatformworkqueue, wszclass.param().abi(), dwtaskid, lpriority, pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn GetPlatformWorkQueueMMCSSPriority(&self, dwplatformworkqueueid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPlatformWorkQueueMMCSSPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplatformworkqueueid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPlatformWorkQueueMMCSSPriority)(windows_core::Interface::as_raw(self), dwplatformworkqueueid, &mut result__).map(|| result__) } } #[repr(C)] @@ -37785,16 +37774,16 @@ impl IOPMVideoOutput { (windows_core::Interface::vtable(self).StartInitialization)(windows_core::Interface::as_raw(self), core::mem::transmute(prnrandomnumber), core::mem::transmute(ppbcertificate), core::mem::transmute(pulcertificatelength)).ok() } pub unsafe fn FinishInitialization(&self, pparameters: *const OPM_ENCRYPTED_INITIALIZATION_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishInitialization)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters)).ok() + (windows_core::Interface::vtable(self).FinishInitialization)(windows_core::Interface::as_raw(self), pparameters).ok() } pub unsafe fn GetInformation(&self, pparameters: *const OPM_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), core::mem::transmute(prequestedinformation)).ok() + (windows_core::Interface::vtable(self).GetInformation)(windows_core::Interface::as_raw(self), pparameters, core::mem::transmute(prequestedinformation)).ok() } pub unsafe fn COPPCompatibleGetInformation(&self, pparameters: *const OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).COPPCompatibleGetInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), core::mem::transmute(prequestedinformation)).ok() + (windows_core::Interface::vtable(self).COPPCompatibleGetInformation)(windows_core::Interface::as_raw(self), pparameters, core::mem::transmute(prequestedinformation)).ok() } pub unsafe fn Configure(&self, pparameters: *const OPM_CONFIGURE_PARAMETERS, pbadditionalparameters: Option<&[u8]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute(pparameters), pbadditionalparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbadditionalparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), pparameters, pbadditionalparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbadditionalparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[repr(C)] @@ -37938,7 +37927,7 @@ impl IPlayToSourceClassFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pcontrol.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pcontrol.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -37987,7 +37976,7 @@ impl IToc { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pwdescriptionsize), core::mem::transmute(pwszdescription.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetContext(&self, dwcontextsize: u32, pbtcontext: *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcontextsize), core::mem::transmute(pbtcontext)).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), dwcontextsize, core::mem::transmute(pbtcontext)).ok() } pub unsafe fn GetContext(&self, pdwcontextsize: *mut u32, pbtcontext: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcontextsize), core::mem::transmute(pbtcontext)).ok() @@ -37997,7 +37986,7 @@ impl IToc { } pub unsafe fn GetEntryListByIndex(&self, wentrylistindex: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntryListByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(wentrylistindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEntryListByIndex)(windows_core::Interface::as_raw(self), wentrylistindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddEntryList(&self, pentrylist: P0, pwentrylistindex: *mut u16) -> windows_core::Result<()> where @@ -38009,10 +37998,10 @@ impl IToc { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryListByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(wentrylistindex), pentrylist.param().abi()).ok() + (windows_core::Interface::vtable(self).AddEntryListByIndex)(windows_core::Interface::as_raw(self), wentrylistindex, pentrylist.param().abi()).ok() } pub unsafe fn RemoveEntryListByIndex(&self, wentrylistindex: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEntryListByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(wentrylistindex)).ok() + (windows_core::Interface::vtable(self).RemoveEntryListByIndex)(windows_core::Interface::as_raw(self), wentrylistindex).ok() } } #[repr(C)] @@ -38123,7 +38112,7 @@ impl ITocCollection { } pub unsafe fn GetEntryByIndex(&self, dwentryindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwentryindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddEntry(&self, ptoc: P0, pdwentryindex: *mut u32) -> windows_core::Result<()> where @@ -38135,10 +38124,10 @@ impl ITocCollection { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwentryindex), ptoc.param().abi()).ok() + (windows_core::Interface::vtable(self).AddEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex, ptoc.param().abi()).ok() } pub unsafe fn RemoveEntryByIndex(&self, dwentryindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEntryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwentryindex)).ok() + (windows_core::Interface::vtable(self).RemoveEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex).ok() } } #[repr(C)] @@ -38218,13 +38207,13 @@ impl ITocEntry { (windows_core::Interface::vtable(self).GetDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(pdescriptor)).ok() } pub unsafe fn SetSubEntries(&self, dwnumsubentries: u32, pwsubentryindices: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSubEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnumsubentries), core::mem::transmute(pwsubentryindices)).ok() + (windows_core::Interface::vtable(self).SetSubEntries)(windows_core::Interface::as_raw(self), dwnumsubentries, core::mem::transmute(pwsubentryindices)).ok() } pub unsafe fn GetSubEntries(&self, pdwnumsubentries: *mut u32, pwsubentryindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSubEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwnumsubentries), core::mem::transmute(pwsubentryindices)).ok() } pub unsafe fn SetDescriptionData(&self, dwdescriptiondatasize: u32, pbtdescriptiondata: *mut u8, pguidtype: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDescriptionData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdescriptiondatasize), core::mem::transmute(pbtdescriptiondata), core::mem::transmute(pguidtype)).ok() + (windows_core::Interface::vtable(self).SetDescriptionData)(windows_core::Interface::as_raw(self), dwdescriptiondatasize, core::mem::transmute(pbtdescriptiondata), core::mem::transmute(pguidtype)).ok() } pub unsafe fn GetDescriptionData(&self, pdwdescriptiondatasize: *mut u32, pbtdescriptiondata: *mut u8, pguidtype: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDescriptionData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwdescriptiondatasize), core::mem::transmute(pbtdescriptiondata), core::mem::transmute(pguidtype)).ok() @@ -38311,7 +38300,7 @@ impl ITocEntryList { } pub unsafe fn GetEntryByIndex(&self, dwentryindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwentryindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddEntry(&self, pentry: P0, pdwentryindex: *mut u32) -> windows_core::Result<()> where @@ -38323,10 +38312,10 @@ impl ITocEntryList { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwentryindex), pentry.param().abi()).ok() + (windows_core::Interface::vtable(self).AddEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex, pentry.param().abi()).ok() } pub unsafe fn RemoveEntryByIndex(&self, dwentryindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEntryByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwentryindex)).ok() + (windows_core::Interface::vtable(self).RemoveEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex).ok() } } #[repr(C)] @@ -38397,27 +38386,27 @@ impl ITocParser { (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetTocCount(&self, enumtocpostype: TOC_POS_TYPE, pdwtoccount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTocCount)(windows_core::Interface::as_raw(self), core::mem::transmute(enumtocpostype), core::mem::transmute(pdwtoccount)).ok() + (windows_core::Interface::vtable(self).GetTocCount)(windows_core::Interface::as_raw(self), enumtocpostype, core::mem::transmute(pdwtoccount)).ok() } pub unsafe fn GetTocByIndex(&self, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTocByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(enumtocpostype), core::mem::transmute(dwtocindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTocByIndex)(windows_core::Interface::as_raw(self), enumtocpostype, dwtocindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTocByType(&self, enumtocpostype: TOC_POS_TYPE, guidtoctype: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTocByType)(windows_core::Interface::as_raw(self), core::mem::transmute(enumtocpostype), core::mem::transmute(guidtoctype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTocByType)(windows_core::Interface::as_raw(self), enumtocpostype, core::mem::transmute(guidtoctype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddToc(&self, enumtocpostype: TOC_POS_TYPE, ptoc: P1, pdwtocindex: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToc)(windows_core::Interface::as_raw(self), core::mem::transmute(enumtocpostype), ptoc.param().abi(), core::mem::transmute(pdwtocindex)).ok() + (windows_core::Interface::vtable(self).AddToc)(windows_core::Interface::as_raw(self), enumtocpostype, ptoc.param().abi(), core::mem::transmute(pdwtocindex)).ok() } pub unsafe fn RemoveTocByIndex(&self, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTocByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(enumtocpostype), core::mem::transmute(dwtocindex)).ok() + (windows_core::Interface::vtable(self).RemoveTocByIndex)(windows_core::Interface::as_raw(self), enumtocpostype, dwtocindex).ok() } pub unsafe fn RemoveTocByType(&self, enumtocpostype: TOC_POS_TYPE, guidtoctype: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTocByType)(windows_core::Interface::as_raw(self), core::mem::transmute(enumtocpostype), core::mem::transmute(guidtoctype)).ok() + (windows_core::Interface::vtable(self).RemoveTocByType)(windows_core::Interface::as_raw(self), enumtocpostype, core::mem::transmute(guidtoctype)).ok() } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -38540,13 +38529,13 @@ windows_core::imp::define_interface!(IWMCodecLeakyBucket, IWMCodecLeakyBucket_Vt windows_core::imp::interface_hierarchy!(IWMCodecLeakyBucket, windows_core::IUnknown); impl IWMCodecLeakyBucket { pub unsafe fn SetBufferSizeBits(&self, ulbuffersize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferSizeBits)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbuffersize)).ok() + (windows_core::Interface::vtable(self).SetBufferSizeBits)(windows_core::Interface::as_raw(self), ulbuffersize).ok() } pub unsafe fn GetBufferSizeBits(&self, pulbuffersize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBufferSizeBits)(windows_core::Interface::as_raw(self), core::mem::transmute(pulbuffersize)).ok() } pub unsafe fn SetBufferFullnessBits(&self, ulbufferfullness: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferFullnessBits)(windows_core::Interface::as_raw(self), core::mem::transmute(ulbufferfullness)).ok() + (windows_core::Interface::vtable(self).SetBufferFullnessBits)(windows_core::Interface::as_raw(self), ulbufferfullness).ok() } pub unsafe fn GetBufferFullnessBits(&self, pulbufferfullness: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBufferFullnessBits)(windows_core::Interface::as_raw(self), core::mem::transmute(pulbufferfullness)).ok() @@ -38687,7 +38676,7 @@ impl IWMCodecProps { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), core::mem::transmute(dwformat), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() + (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), dwformat, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() } } #[repr(C)] @@ -38783,10 +38772,10 @@ windows_core::imp::define_interface!(IWMColorConvProps, IWMColorConvProps_Vtbl, windows_core::imp::interface_hierarchy!(IWMColorConvProps, windows_core::IUnknown); impl IWMColorConvProps { pub unsafe fn SetMode(&self, lmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lmode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), lmode).ok() } pub unsafe fn SetFullCroppingParam(&self, lsrccropleft: i32, lsrccroptop: i32, ldstcropleft: i32, ldstcroptop: i32, lcropwidth: i32, lcropheight: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFullCroppingParam)(windows_core::Interface::as_raw(self), core::mem::transmute(lsrccropleft), core::mem::transmute(lsrccroptop), core::mem::transmute(ldstcropleft), core::mem::transmute(ldstcroptop), core::mem::transmute(lcropwidth), core::mem::transmute(lcropheight)).ok() + (windows_core::Interface::vtable(self).SetFullCroppingParam)(windows_core::Interface::as_raw(self), lsrccropleft, lsrccroptop, ldstcropleft, ldstcroptop, lcropwidth, lcropheight).ok() } } #[repr(C)] @@ -38824,7 +38813,7 @@ windows_core::imp::define_interface!(IWMColorLegalizerProps, IWMColorLegalizerPr windows_core::imp::interface_hierarchy!(IWMColorLegalizerProps, windows_core::IUnknown); impl IWMColorLegalizerProps { pub unsafe fn SetColorLegalizerQuality(&self, lquality: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorLegalizerQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(lquality)).ok() + (windows_core::Interface::vtable(self).SetColorLegalizerQuality)(windows_core::Interface::as_raw(self), lquality).ok() } } #[repr(C)] @@ -38852,16 +38841,16 @@ windows_core::imp::define_interface!(IWMFrameInterpProps, IWMFrameInterpProps_Vt windows_core::imp::interface_hierarchy!(IWMFrameInterpProps, windows_core::IUnknown); impl IWMFrameInterpProps { pub unsafe fn SetFrameRateIn(&self, lframerate: i32, lscale: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameRateIn)(windows_core::Interface::as_raw(self), core::mem::transmute(lframerate), core::mem::transmute(lscale)).ok() + (windows_core::Interface::vtable(self).SetFrameRateIn)(windows_core::Interface::as_raw(self), lframerate, lscale).ok() } pub unsafe fn SetFrameRateOut(&self, lframerate: i32, lscale: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameRateOut)(windows_core::Interface::as_raw(self), core::mem::transmute(lframerate), core::mem::transmute(lscale)).ok() + (windows_core::Interface::vtable(self).SetFrameRateOut)(windows_core::Interface::as_raw(self), lframerate, lscale).ok() } pub unsafe fn SetFrameInterpEnabled(&self, bfienabled: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetFrameInterpEnabled)(windows_core::Interface::as_raw(self), bfienabled.into()).ok() } pub unsafe fn SetComplexityLevel(&self, icomplexity: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetComplexityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(icomplexity)).ok() + (windows_core::Interface::vtable(self).SetComplexityLevel)(windows_core::Interface::as_raw(self), icomplexity).ok() } } #[repr(C)] @@ -38913,10 +38902,10 @@ windows_core::imp::define_interface!(IWMInterlaceProps, IWMInterlaceProps_Vtbl, windows_core::imp::interface_hierarchy!(IWMInterlaceProps, windows_core::IUnknown); impl IWMInterlaceProps { pub unsafe fn SetProcessType(&self, iprocesstype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessType)(windows_core::Interface::as_raw(self), core::mem::transmute(iprocesstype)).ok() + (windows_core::Interface::vtable(self).SetProcessType)(windows_core::Interface::as_raw(self), iprocesstype).ok() } pub unsafe fn SetInitInverseTeleCinePattern(&self, iinitpattern: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitInverseTeleCinePattern)(windows_core::Interface::as_raw(self), core::mem::transmute(iinitpattern)).ok() + (windows_core::Interface::vtable(self).SetInitInverseTeleCinePattern)(windows_core::Interface::as_raw(self), iinitpattern).ok() } pub unsafe fn SetLastFrame(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLastFrame)(windows_core::Interface::as_raw(self)).ok() @@ -38964,7 +38953,7 @@ windows_core::imp::define_interface!(IWMResamplerProps, IWMResamplerProps_Vtbl, windows_core::imp::interface_hierarchy!(IWMResamplerProps, windows_core::IUnknown); impl IWMResamplerProps { pub unsafe fn SetHalfFilterLength(&self, lhalffilterlen: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHalfFilterLength)(windows_core::Interface::as_raw(self), core::mem::transmute(lhalffilterlen)).ok() + (windows_core::Interface::vtable(self).SetHalfFilterLength)(windows_core::Interface::as_raw(self), lhalffilterlen).ok() } pub unsafe fn SetUserChannelMtx(&self, userchannelmtx: *mut f32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetUserChannelMtx)(windows_core::Interface::as_raw(self), core::mem::transmute(userchannelmtx)).ok() @@ -39005,16 +38994,16 @@ windows_core::imp::define_interface!(IWMResizerProps, IWMResizerProps_Vtbl, 0x57 windows_core::imp::interface_hierarchy!(IWMResizerProps, windows_core::IUnknown); impl IWMResizerProps { pub unsafe fn SetResizerQuality(&self, lquality: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResizerQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(lquality)).ok() + (windows_core::Interface::vtable(self).SetResizerQuality)(windows_core::Interface::as_raw(self), lquality).ok() } pub unsafe fn SetInterlaceMode(&self, lmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterlaceMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lmode)).ok() + (windows_core::Interface::vtable(self).SetInterlaceMode)(windows_core::Interface::as_raw(self), lmode).ok() } pub unsafe fn SetClipRegion(&self, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(lcliporixsrc), core::mem::transmute(lcliporiysrc), core::mem::transmute(lclipwidthsrc), core::mem::transmute(lclipheightsrc)).ok() + (windows_core::Interface::vtable(self).SetClipRegion)(windows_core::Interface::as_raw(self), lcliporixsrc, lcliporiysrc, lclipwidthsrc, lclipheightsrc).ok() } pub unsafe fn SetFullCropRegion(&self, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32, lcliporixdst: i32, lcliporiydst: i32, lclipwidthdst: i32, lclipheightdst: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFullCropRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(lcliporixsrc), core::mem::transmute(lcliporiysrc), core::mem::transmute(lclipwidthsrc), core::mem::transmute(lclipheightsrc), core::mem::transmute(lcliporixdst), core::mem::transmute(lcliporiydst), core::mem::transmute(lclipwidthdst), core::mem::transmute(lclipheightdst)).ok() + (windows_core::Interface::vtable(self).SetFullCropRegion)(windows_core::Interface::as_raw(self), lcliporixsrc, lcliporiysrc, lclipwidthsrc, lclipheightsrc, lcliporixdst, lcliporiydst, lclipwidthdst, lclipheightdst).ok() } pub unsafe fn GetFullCropRegion(&self, 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::Result<()> { (windows_core::Interface::vtable(self).GetFullCropRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(lcliporixsrc), core::mem::transmute(lcliporiysrc), core::mem::transmute(lclipwidthsrc), core::mem::transmute(lclipheightsrc), core::mem::transmute(lcliporixdst), core::mem::transmute(lcliporiydst), core::mem::transmute(lclipwidthdst), core::mem::transmute(lclipheightdst)).ok() @@ -39132,7 +39121,7 @@ windows_core::imp::define_interface!(IWMVideoDecoderHurryup, IWMVideoDecoderHurr windows_core::imp::interface_hierarchy!(IWMVideoDecoderHurryup, windows_core::IUnknown); impl IWMVideoDecoderHurryup { pub unsafe fn SetHurryup(&self, lhurryup: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHurryup)(windows_core::Interface::as_raw(self), core::mem::transmute(lhurryup)).ok() + (windows_core::Interface::vtable(self).SetHurryup)(windows_core::Interface::as_raw(self), lhurryup).ok() } pub unsafe fn GetHurryup(&self, plhurryup: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetHurryup)(windows_core::Interface::as_raw(self), core::mem::transmute(plhurryup)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs index 3601e38f71..bccdda5e3a 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs @@ -587,7 +587,7 @@ windows_core::imp::interface_hierarchy!(IFeed, windows_core::IUnknown, super::su impl IFeed { pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(sortproperty), core::mem::transmute(sortorder), core::mem::transmute(filterflags), core::mem::transmute(includeflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), count, sortproperty, sortorder, filterflags, includeflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -639,14 +639,14 @@ impl IFeed { (windows_core::Interface::vtable(self).SyncSetting)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSyncSetting(&self, syncsetting: FEEDS_SYNC_SETTING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(syncsetting)).ok() + (windows_core::Interface::vtable(self).SetSyncSetting)(windows_core::Interface::as_raw(self), syncsetting).ok() } pub unsafe fn Interval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Interval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterval(&self, minutes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(minutes)).ok() + (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), minutes).ok() } pub unsafe fn LastDownloadTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -662,7 +662,7 @@ impl IFeed { } pub unsafe fn GetItem(&self, itemid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), itemid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Title(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -705,14 +705,14 @@ impl IFeed { (windows_core::Interface::vtable(self).MaxItemCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxItemCount(&self, count: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxItemCount)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetMaxItemCount)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn DownloadEnclosuresAutomatically(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDownloadEnclosuresAutomatically(&self, downloadenclosuresautomatically: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), core::mem::transmute(downloadenclosuresautomatically)).ok() + (windows_core::Interface::vtable(self).SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), downloadenclosuresautomatically).ok() } pub unsafe fn DownloadStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -738,7 +738,7 @@ impl IFeed { } pub unsafe fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), core::mem::transmute(mask), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), scope, mask, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnreadItemCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1279,7 +1279,7 @@ windows_core::imp::interface_hierarchy!(IFeed2, windows_core::IUnknown, super::s impl IFeed2 { pub unsafe fn GetItemByEffectiveId(&self, itemeffectiveid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemByEffectiveId)(windows_core::Interface::as_raw(self), core::mem::transmute(itemeffectiveid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemByEffectiveId)(windows_core::Interface::as_raw(self), itemeffectiveid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LastItemDownloadTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1647,10 +1647,10 @@ impl IFeedEvents { (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path)).ok() } pub unsafe fn FeedDownloadCompleted(&self, path: &windows_core::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), error).ok() } pub unsafe fn FeedItemCountChanged(&self, path: &windows_core::BSTR, itemcounttype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(itemcounttype)).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), itemcounttype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1810,7 +1810,7 @@ impl IFeedFolder { } pub unsafe fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), core::mem::transmute(mask), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), scope, mask, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2082,7 +2082,7 @@ impl IFeedFolderEvents { (windows_core::Interface::vtable(self).FolderMovedTo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute_copy(oldpath)).ok() } pub unsafe fn FolderItemCountChanged(&self, path: &windows_core::BSTR, itemcounttype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(itemcounttype)).ok() + (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), itemcounttype).ok() } pub unsafe fn FeedAdded(&self, path: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FeedAdded)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path)).ok() @@ -2106,10 +2106,10 @@ impl IFeedFolderEvents { (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path)).ok() } pub unsafe fn FeedDownloadCompleted(&self, path: &windows_core::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), error).ok() } pub unsafe fn FeedItemCountChanged(&self, path: &windows_core::BSTR, itemcounttype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(itemcounttype)).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), itemcounttype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2260,7 +2260,7 @@ windows_core::imp::interface_hierarchy!(IFeedItem, windows_core::IUnknown, super impl IFeedItem { pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), core::mem::transmute(includeflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), includeflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Title(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2299,7 +2299,7 @@ impl IFeedItem { (windows_core::Interface::vtable(self).IsRead)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsRead(&self, isread: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsRead)(windows_core::Interface::as_raw(self), core::mem::transmute(isread)).ok() + (windows_core::Interface::vtable(self).SetIsRead)(windows_core::Interface::as_raw(self), isread).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2623,7 +2623,7 @@ impl IFeedsEnum { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -2742,7 +2742,7 @@ impl IFeedsManager { (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(folderpath)).ok() } pub unsafe fn BackgroundSync(&self, action: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BackgroundSync)(windows_core::Interface::as_raw(self), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).BackgroundSync)(windows_core::Interface::as_raw(self), action).ok() } pub unsafe fn BackgroundSyncStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2753,7 +2753,7 @@ impl IFeedsManager { (windows_core::Interface::vtable(self).DefaultInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultInterval(&self, minutes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(minutes)).ok() + (windows_core::Interface::vtable(self).SetDefaultInterval)(windows_core::Interface::as_raw(self), minutes).ok() } pub unsafe fn AsyncSyncAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AsyncSyncAll)(windows_core::Interface::as_raw(self)).ok() @@ -3100,7 +3100,7 @@ impl IWMPCdromBurn { (windows_core::Interface::vtable(self).burnFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pwmpbf)).ok() } pub unsafe fn SetburnFormat(&self, wmpbf: WMPBurnFormat) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetburnFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(wmpbf)).ok() + (windows_core::Interface::vtable(self).SetburnFormat)(windows_core::Interface::as_raw(self), wmpbf).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn burnPlaylist(&self) -> windows_core::Result { @@ -3281,7 +3281,7 @@ impl IWMPCdromCollection { } pub unsafe fn item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getByDriveSpecifier(&self, bstrdrivespecifier: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3535,16 +3535,16 @@ impl IWMPClosedCaption2 { (windows_core::Interface::vtable(self).SAMILangCount)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn getSAMILangName(&self, nindex: i32, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getSAMILangName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(pbstrname)).ok() + (windows_core::Interface::vtable(self).getSAMILangName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(pbstrname)).ok() } pub unsafe fn getSAMILangID(&self, nindex: i32, pllangid: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getSAMILangID)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(pllangid)).ok() + (windows_core::Interface::vtable(self).getSAMILangID)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(pllangid)).ok() } pub unsafe fn SAMIStyleCount(&self, plcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SAMIStyleCount)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn getSAMIStyleName(&self, nindex: i32, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getSAMIStyleName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(pbstrname)).ok() + (windows_core::Interface::vtable(self).getSAMIStyleName)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute(pbstrname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3624,11 +3624,11 @@ impl IWMPContentContainer { } pub unsafe fn GetContentPrice(&self, idxcontent: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContentPrice)(windows_core::Interface::as_raw(self), core::mem::transmute(idxcontent), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetContentPrice)(windows_core::Interface::as_raw(self), idxcontent, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetContentID(&self, idxcontent: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContentID)(windows_core::Interface::as_raw(self), core::mem::transmute(idxcontent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContentID)(windows_core::Interface::as_raw(self), idxcontent, &mut result__).map(|| result__) } } #[repr(C)] @@ -3739,7 +3739,7 @@ impl IWMPContentContainerList { } pub unsafe fn GetContainer(&self, idxcontainer: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContainer)(windows_core::Interface::as_raw(self), core::mem::transmute(idxcontainer), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContainer)(windows_core::Interface::as_raw(self), idxcontainer, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3809,7 +3809,7 @@ impl IWMPContentPartner { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Notify(&self, r#type: WMPPartnerNotification, pcontext: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pcontext)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetItemInfo(&self, bstrinfoname: &windows_core::BSTR, pcontext: *const super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -3827,7 +3827,7 @@ impl IWMPContentPartner { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InvokeCommand(&self, dwcommandid: u32, location: &windows_core::BSTR, plocationcontext: *const super::super::System::Variant::VARIANT, itemlocation: &windows_core::BSTR, rgitemids: &[u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcommandid), core::mem::transmute_copy(location), core::mem::transmute(plocationcontext), core::mem::transmute_copy(itemlocation), rgitemids.len().try_into().unwrap(), core::mem::transmute(rgitemids.as_ptr())).ok() + (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), dwcommandid, core::mem::transmute_copy(location), core::mem::transmute(plocationcontext), core::mem::transmute_copy(itemlocation), rgitemids.len().try_into().unwrap(), core::mem::transmute(rgitemids.as_ptr())).ok() } pub unsafe fn CanBuySilent(&self, pinfo: P0, pbstrtotalprice: *mut windows_core::BSTR, psilentok: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where @@ -3839,44 +3839,44 @@ impl IWMPContentPartner { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Buy)(windows_core::Interface::as_raw(self), pinfo.param().abi(), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).Buy)(windows_core::Interface::as_raw(self), pinfo.param().abi(), cookie).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetStreamingURL(&self, st: WMPStreamingType, pstreamcontext: *const super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamingURL)(windows_core::Interface::as_raw(self), core::mem::transmute(st), core::mem::transmute(pstreamcontext), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStreamingURL)(windows_core::Interface::as_raw(self), st, core::mem::transmute(pstreamcontext), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Download(&self, pinfo: P0, cookie: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pinfo.param().abi(), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pinfo.param().abi(), cookie).ok() } pub unsafe fn DownloadTrackComplete(&self, hrresult: windows_core::HRESULT, contentid: u32, downloadtrackparam: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DownloadTrackComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrresult), core::mem::transmute(contentid), core::mem::transmute_copy(downloadtrackparam)).ok() + (windows_core::Interface::vtable(self).DownloadTrackComplete)(windows_core::Interface::as_raw(self), hrresult, contentid, core::mem::transmute_copy(downloadtrackparam)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RefreshLicense(&self, dwcookie: u32, flocal: super::super::Foundation::VARIANT_BOOL, bstrurl: &windows_core::BSTR, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: &windows_core::BSTR, preasoncontext: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RefreshLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie), core::mem::transmute(flocal), core::mem::transmute_copy(bstrurl), core::mem::transmute(r#type), core::mem::transmute(contentid), core::mem::transmute_copy(bstrrefreshreason), core::mem::transmute(preasoncontext)).ok() + (windows_core::Interface::vtable(self).RefreshLicense)(windows_core::Interface::as_raw(self), dwcookie, flocal, core::mem::transmute_copy(bstrurl), r#type, contentid, core::mem::transmute_copy(bstrrefreshreason), core::mem::transmute(preasoncontext)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCatalogURL(&self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut windows_core::BSTR, pexpirationdate: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCatalogURL)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcatalogversion), core::mem::transmute(dwcatalogschemaversion), core::mem::transmute(cataloglcid), core::mem::transmute(pdwnewcatalogversion), core::mem::transmute(pbstrcatalogurl), core::mem::transmute(pexpirationdate)).ok() + (windows_core::Interface::vtable(self).GetCatalogURL)(windows_core::Interface::as_raw(self), dwcatalogversion, dwcatalogschemaversion, cataloglcid, core::mem::transmute(pdwnewcatalogversion), core::mem::transmute(pbstrcatalogurl), core::mem::transmute(pexpirationdate)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetTemplate(&self, task: WMPTaskType, location: &windows_core::BSTR, pcontext: *const super::super::System::Variant::VARIANT, clicklocation: &windows_core::BSTR, pclickcontext: *const super::super::System::Variant::VARIANT, bstrfilter: &windows_core::BSTR, bstrviewparams: &windows_core::BSTR, pbstrtemplateurl: *mut windows_core::BSTR, ptemplatesize: *mut WMPTemplateSize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(task), core::mem::transmute_copy(location), core::mem::transmute(pcontext), core::mem::transmute_copy(clicklocation), core::mem::transmute(pclickcontext), core::mem::transmute_copy(bstrfilter), core::mem::transmute_copy(bstrviewparams), core::mem::transmute(pbstrtemplateurl), core::mem::transmute(ptemplatesize)).ok() + (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), task, core::mem::transmute_copy(location), core::mem::transmute(pcontext), core::mem::transmute_copy(clicklocation), core::mem::transmute(pclickcontext), core::mem::transmute_copy(bstrfilter), core::mem::transmute_copy(bstrviewparams), core::mem::transmute(pbstrtemplateurl), core::mem::transmute(ptemplatesize)).ok() } pub unsafe fn UpdateDevice(&self, bstrdevicename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateDevice)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdevicename)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetListContents(&self, location: &windows_core::BSTR, pcontext: *const super::super::System::Variant::VARIANT, bstrlisttype: &windows_core::BSTR, bstrparams: &windows_core::BSTR, dwlistcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetListContents)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(location), core::mem::transmute(pcontext), core::mem::transmute_copy(bstrlisttype), core::mem::transmute_copy(bstrparams), core::mem::transmute(dwlistcookie)).ok() + (windows_core::Interface::vtable(self).GetListContents)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(location), core::mem::transmute(pcontext), core::mem::transmute_copy(bstrlisttype), core::mem::transmute_copy(bstrparams), dwlistcookie).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Login(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).Login)(windows_core::Interface::as_raw(self), core::mem::transmute(userinfo), core::mem::transmute(pwdinfo), core::mem::transmute(fusedcachedcreds), core::mem::transmute(foktocache)).ok() + (windows_core::Interface::vtable(self).Login)(windows_core::Interface::as_raw(self), core::mem::transmute(userinfo), core::mem::transmute(pwdinfo), fusedcachedcreds, foktocache).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Authenticate(&self, userinfo: super::super::System::Com::BLOB, pwdinfo: super::super::System::Com::BLOB) -> windows_core::Result<()> { @@ -3889,7 +3889,7 @@ impl IWMPContentPartner { (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmsg), core::mem::transmute_copy(bstrparam)).ok() } pub unsafe fn StationEvent(&self, bstrstationeventtype: &windows_core::BSTR, stationid: u32, playlistindex: u32, trackid: u32, trackdata: &windows_core::BSTR, dwsecondsplayed: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StationEvent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrstationeventtype), core::mem::transmute(stationid), core::mem::transmute(playlistindex), core::mem::transmute(trackid), core::mem::transmute_copy(trackdata), core::mem::transmute(dwsecondsplayed)).ok() + (windows_core::Interface::vtable(self).StationEvent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrstationeventtype), stationid, playlistindex, trackid, core::mem::transmute_copy(trackdata), dwsecondsplayed).ok() } pub unsafe fn CompareContainerListPrices(&self, plistbase: P0, plistcompare: P1) -> windows_core::Result where @@ -4153,13 +4153,13 @@ windows_core::imp::interface_hierarchy!(IWMPContentPartnerCallback, windows_core impl IWMPContentPartnerCallback { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Notify(&self, r#type: WMPCallbackNotification, pcontext: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pcontext)).ok() } pub unsafe fn BuyComplete(&self, hrresult: windows_core::HRESULT, dwbuycookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BuyComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrresult), core::mem::transmute(dwbuycookie)).ok() + (windows_core::Interface::vtable(self).BuyComplete)(windows_core::Interface::as_raw(self), hrresult, dwbuycookie).ok() } pub unsafe fn DownloadTrack(&self, cookie: u32, bstrtrackurl: &windows_core::BSTR, dwservicetrackid: u32, bstrdownloadparams: &windows_core::BSTR, hrdownload: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DownloadTrack)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute_copy(bstrtrackurl), core::mem::transmute(dwservicetrackid), core::mem::transmute_copy(bstrdownloadparams), core::mem::transmute(hrdownload)).ok() + (windows_core::Interface::vtable(self).DownloadTrack)(windows_core::Interface::as_raw(self), cookie, core::mem::transmute_copy(bstrtrackurl), dwservicetrackid, core::mem::transmute_copy(bstrdownloadparams), hrdownload).ok() } pub unsafe fn GetCatalogVersion(&self, pdwversion: *mut u32, pdwschemaversion: *mut u32, plcid: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCatalogVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwversion), core::mem::transmute(pdwschemaversion), core::mem::transmute(plcid)).ok() @@ -4171,10 +4171,10 @@ impl IWMPContentPartnerCallback { (windows_core::Interface::vtable(self).ChangeView)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrid), core::mem::transmute_copy(bstrfilter)).ok() } pub unsafe fn AddListContents(&self, dwlistcookie: u32, prgitems: &[u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddListContents)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlistcookie), prgitems.len().try_into().unwrap(), core::mem::transmute(prgitems.as_ptr())).ok() + (windows_core::Interface::vtable(self).AddListContents)(windows_core::Interface::as_raw(self), dwlistcookie, prgitems.len().try_into().unwrap(), core::mem::transmute(prgitems.as_ptr())).ok() } pub unsafe fn ListContentsComplete(&self, dwlistcookie: u32, hrsuccess: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ListContentsComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlistcookie), core::mem::transmute(hrsuccess)).ok() + (windows_core::Interface::vtable(self).ListContentsComplete)(windows_core::Interface::as_raw(self), dwlistcookie, hrsuccess).ok() } pub unsafe fn SendMessageComplete(&self, bstrmsg: &windows_core::BSTR, bstrparam: &windows_core::BSTR, bstrresult: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendMessageComplete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmsg), core::mem::transmute_copy(bstrparam), core::mem::transmute_copy(bstrresult)).ok() @@ -4183,14 +4183,14 @@ impl IWMPContentPartnerCallback { (windows_core::Interface::vtable(self).GetContentIDsInLibrary)(windows_core::Interface::as_raw(self), core::mem::transmute(pccontentids), core::mem::transmute(pprgids)).ok() } pub unsafe fn RefreshLicenseComplete(&self, dwcookie: u32, contentid: u32, hrrefresh: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RefreshLicenseComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie), core::mem::transmute(contentid), core::mem::transmute(hrrefresh)).ok() + (windows_core::Interface::vtable(self).RefreshLicenseComplete)(windows_core::Interface::as_raw(self), dwcookie, contentid, hrrefresh).ok() } pub unsafe fn ShowPopup(&self, lindex: i32, bstrparameters: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowPopup)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute_copy(bstrparameters)).ok() + (windows_core::Interface::vtable(self).ShowPopup)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute_copy(bstrparameters)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn VerifyPermissionComplete(&self, bstrpermission: &windows_core::BSTR, pcontext: *const super::super::System::Variant::VARIANT, hrpermission: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VerifyPermissionComplete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpermission), core::mem::transmute(pcontext), core::mem::transmute(hrpermission)).ok() + (windows_core::Interface::vtable(self).VerifyPermissionComplete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpermission), core::mem::transmute(pcontext), hrpermission).ok() } } #[repr(C)] @@ -4345,7 +4345,7 @@ impl IWMPControls { (windows_core::Interface::vtable(self).currentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pdcurrentposition)).ok() } pub unsafe fn SetcurrentPosition(&self, dcurrentposition: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetcurrentPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dcurrentposition)).ok() + (windows_core::Interface::vtable(self).SetcurrentPosition)(windows_core::Interface::as_raw(self), dcurrentposition).ok() } pub unsafe fn currentPositionString(&self, pbstrcurrentposition: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).currentPositionString)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrcurrentposition)).ok() @@ -4370,7 +4370,7 @@ impl IWMPControls { (windows_core::Interface::vtable(self).currentMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(plmarker)).ok() } pub unsafe fn SetcurrentMarker(&self, lmarker: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetcurrentMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(lmarker)).ok() + (windows_core::Interface::vtable(self).SetcurrentMarker)(windows_core::Interface::as_raw(self), lmarker).ok() } pub unsafe fn playItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where @@ -4532,7 +4532,7 @@ windows_core::imp::interface_hierarchy!(IWMPControls2, windows_core::IUnknown, s #[cfg(feature = "Win32_System_Com")] impl IWMPControls2 { pub unsafe fn step(&self, lstep: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).step)(windows_core::Interface::as_raw(self), core::mem::transmute(lstep)).ok() + (windows_core::Interface::vtable(self).step)(windows_core::Interface::as_raw(self), lstep).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4577,25 +4577,25 @@ impl IWMPControls3 { (windows_core::Interface::vtable(self).audioLanguageCount)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn getAudioLanguageID(&self, lindex: i32, pllangid: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getAudioLanguageID)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pllangid)).ok() + (windows_core::Interface::vtable(self).getAudioLanguageID)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pllangid)).ok() } pub unsafe fn getAudioLanguageDescription(&self, lindex: i32, pbstrlangdesc: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getAudioLanguageDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pbstrlangdesc)).ok() + (windows_core::Interface::vtable(self).getAudioLanguageDescription)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pbstrlangdesc)).ok() } pub unsafe fn currentAudioLanguage(&self, pllangid: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).currentAudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(pllangid)).ok() } pub unsafe fn SetcurrentAudioLanguage(&self, llangid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetcurrentAudioLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(llangid)).ok() + (windows_core::Interface::vtable(self).SetcurrentAudioLanguage)(windows_core::Interface::as_raw(self), llangid).ok() } pub unsafe fn currentAudioLanguageIndex(&self, plindex: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).currentAudioLanguageIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(plindex)).ok() } pub unsafe fn SetcurrentAudioLanguageIndex(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetcurrentAudioLanguageIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).SetcurrentAudioLanguageIndex)(windows_core::Interface::as_raw(self), lindex).ok() } pub unsafe fn getLanguageName(&self, llangid: i32, pbstrlangname: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getLanguageName)(windows_core::Interface::as_raw(self), core::mem::transmute(llangid), core::mem::transmute(pbstrlangname)).ok() + (windows_core::Interface::vtable(self).getLanguageName)(windows_core::Interface::as_raw(self), llangid, core::mem::transmute(pbstrlangname)).ok() } pub unsafe fn currentPositionTimecode(&self, bstrtimecode: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).currentPositionTimecode)(windows_core::Interface::as_raw(self), core::mem::transmute(bstrtimecode)).ok() @@ -5287,14 +5287,14 @@ impl IWMPDownloadCollection { } pub unsafe fn item(&self, litem: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), core::mem::transmute(litem), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), litem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn startDownload(&self, bstrsourceurl: &windows_core::BSTR, bstrtype: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).startDownload)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsourceurl), core::mem::transmute_copy(bstrtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn removeItem(&self, litem: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).removeItem)(windows_core::Interface::as_raw(self), core::mem::transmute(litem)).ok() + (windows_core::Interface::vtable(self).removeItem)(windows_core::Interface::as_raw(self), litem).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -5547,7 +5547,7 @@ windows_core::imp::interface_hierarchy!(IWMPDownloadManager, windows_core::IUnkn impl IWMPDownloadManager { pub unsafe fn getDownloadCollection(&self, lcollectionid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getDownloadCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(lcollectionid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getDownloadCollection)(windows_core::Interface::as_raw(self), lcollectionid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn createDownloadCollection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5606,10 +5606,10 @@ windows_core::imp::interface_hierarchy!(IWMPEffects, windows_core::IUnknown); impl IWMPEffects { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, plevels: *mut TimedLevel, hdc: super::super::Graphics::Gdi::HDC, prc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(plevels), core::mem::transmute(hdc), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(plevels), hdc, core::mem::transmute(prc)).ok() } pub unsafe fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MediaInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lchannelcount), core::mem::transmute(lsamplerate), core::mem::transmute_copy(bstrtitle)).ok() + (windows_core::Interface::vtable(self).MediaInfo)(windows_core::Interface::as_raw(self), lchannelcount, lsamplerate, core::mem::transmute_copy(bstrtitle)).ok() } pub unsafe fn GetCapabilities(&self, pdwcapabilities: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcapabilities)).ok() @@ -5618,19 +5618,19 @@ impl IWMPEffects { (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(bstrtitle)).ok() } pub unsafe fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPresetTitle)(windows_core::Interface::as_raw(self), core::mem::transmute(npreset), core::mem::transmute(bstrpresettitle)).ok() + (windows_core::Interface::vtable(self).GetPresetTitle)(windows_core::Interface::as_raw(self), npreset, core::mem::transmute(bstrpresettitle)).ok() } pub unsafe fn GetPresetCount(&self, pnpresetcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPresetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pnpresetcount)).ok() } pub unsafe fn SetCurrentPreset(&self, npreset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPreset)(windows_core::Interface::as_raw(self), core::mem::transmute(npreset)).ok() + (windows_core::Interface::vtable(self).SetCurrentPreset)(windows_core::Interface::as_raw(self), npreset).ok() } pub unsafe fn GetCurrentPreset(&self, pnpreset: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentPreset)(windows_core::Interface::as_raw(self), core::mem::transmute(pnpreset)).ok() } pub unsafe fn DisplayPropertyPage(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner)).ok() + (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndowner).ok() } pub unsafe fn GoFullscreen(&self, ffullscreen: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GoFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.into()).ok() @@ -5756,7 +5756,7 @@ impl IWMPEffects2 { (windows_core::Interface::vtable(self).SetCore)(windows_core::Interface::as_raw(self), pplayer.param().abi()).ok() } pub unsafe fn Create(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -5769,7 +5769,7 @@ impl IWMPEffects2 { (windows_core::Interface::vtable(self).NotifyNewMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } pub unsafe fn OnWindowMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresultparam: *mut super::super::Foundation::LRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(plresultparam)).ok() + (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam, lparam, core::mem::transmute(plresultparam)).ok() } pub unsafe fn RenderWindowed(&self, pdata: *mut TimedLevel, frequiredrender: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenderWindowed)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), frequiredrender.into()).ok() @@ -5864,7 +5864,7 @@ impl IWMPError { } pub unsafe fn get_item(&self, dwindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn webHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).webHelp)(windows_core::Interface::as_raw(self)).ok() @@ -6060,13 +6060,13 @@ windows_core::imp::define_interface!(IWMPEvents, IWMPEvents_Vtbl, 0x19a6627b_da9 windows_core::imp::interface_hierarchy!(IWMPEvents, windows_core::IUnknown); impl IWMPEvents { pub unsafe fn OpenStateChange(&self, newstate: i32) { - (windows_core::Interface::vtable(self).OpenStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)) + (windows_core::Interface::vtable(self).OpenStateChange)(windows_core::Interface::as_raw(self), newstate) } pub unsafe fn PlayStateChange(&self, newstate: i32) { - (windows_core::Interface::vtable(self).PlayStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)) + (windows_core::Interface::vtable(self).PlayStateChange)(windows_core::Interface::as_raw(self), newstate) } pub unsafe fn AudioLanguageChange(&self, langid: i32) { - (windows_core::Interface::vtable(self).AudioLanguageChange)(windows_core::Interface::as_raw(self), core::mem::transmute(langid)) + (windows_core::Interface::vtable(self).AudioLanguageChange)(windows_core::Interface::as_raw(self), langid) } pub unsafe fn StatusChange(&self) { (windows_core::Interface::vtable(self).StatusChange)(windows_core::Interface::as_raw(self)) @@ -6078,41 +6078,41 @@ impl IWMPEvents { (windows_core::Interface::vtable(self).NewStream)(windows_core::Interface::as_raw(self)) } pub unsafe fn Disconnect(&self, result: i32) { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(result)) + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), result) } pub unsafe fn Buffering(&self, start: super::super::Foundation::VARIANT_BOOL) { - (windows_core::Interface::vtable(self).Buffering)(windows_core::Interface::as_raw(self), core::mem::transmute(start)) + (windows_core::Interface::vtable(self).Buffering)(windows_core::Interface::as_raw(self), start) } pub unsafe fn Error(&self) { (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self)) } pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: &windows_core::BSTR) { - (windows_core::Interface::vtable(self).Warning)(windows_core::Interface::as_raw(self), core::mem::transmute(warningtype), core::mem::transmute(param), core::mem::transmute_copy(description)) + (windows_core::Interface::vtable(self).Warning)(windows_core::Interface::as_raw(self), warningtype, param, core::mem::transmute_copy(description)) } pub unsafe fn EndOfStream(&self, result: i32) { - (windows_core::Interface::vtable(self).EndOfStream)(windows_core::Interface::as_raw(self), core::mem::transmute(result)) + (windows_core::Interface::vtable(self).EndOfStream)(windows_core::Interface::as_raw(self), result) } pub unsafe fn PositionChange(&self, oldposition: f64, newposition: f64) { - (windows_core::Interface::vtable(self).PositionChange)(windows_core::Interface::as_raw(self), core::mem::transmute(oldposition), core::mem::transmute(newposition)) + (windows_core::Interface::vtable(self).PositionChange)(windows_core::Interface::as_raw(self), oldposition, newposition) } pub unsafe fn MarkerHit(&self, markernum: i32) { - (windows_core::Interface::vtable(self).MarkerHit)(windows_core::Interface::as_raw(self), core::mem::transmute(markernum)) + (windows_core::Interface::vtable(self).MarkerHit)(windows_core::Interface::as_raw(self), markernum) } pub unsafe fn DurationUnitChange(&self, newdurationunit: i32) { - (windows_core::Interface::vtable(self).DurationUnitChange)(windows_core::Interface::as_raw(self), core::mem::transmute(newdurationunit)) + (windows_core::Interface::vtable(self).DurationUnitChange)(windows_core::Interface::as_raw(self), newdurationunit) } pub unsafe fn CdromMediaChange(&self, cdromnum: i32) { - (windows_core::Interface::vtable(self).CdromMediaChange)(windows_core::Interface::as_raw(self), core::mem::transmute(cdromnum)) + (windows_core::Interface::vtable(self).CdromMediaChange)(windows_core::Interface::as_raw(self), cdromnum) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PlaylistChange(&self, playlist: P0, change: WMPPlaylistChangeEventType) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaylistChange)(windows_core::Interface::as_raw(self), playlist.param().abi(), core::mem::transmute(change)) + (windows_core::Interface::vtable(self).PlaylistChange)(windows_core::Interface::as_raw(self), playlist.param().abi(), change) } pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { - (windows_core::Interface::vtable(self).CurrentPlaylistChange)(windows_core::Interface::as_raw(self), core::mem::transmute(change)) + (windows_core::Interface::vtable(self).CurrentPlaylistChange)(windows_core::Interface::as_raw(self), change) } pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: &windows_core::BSTR) { (windows_core::Interface::vtable(self).CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstritemname)) @@ -6156,10 +6156,10 @@ impl IWMPEvents { (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrplaylistname)) } pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &windows_core::BSTR, varfisdeleted: super::super::Foundation::VARIANT_BOOL) { - (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrplaylistname), core::mem::transmute(varfisdeleted)) + (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrplaylistname), varfisdeleted) } pub unsafe fn ModeChange(&self, modename: &windows_core::BSTR, newvalue: super::super::Foundation::VARIANT_BOOL) { - (windows_core::Interface::vtable(self).ModeChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(modename), core::mem::transmute(newvalue)) + (windows_core::Interface::vtable(self).ModeChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(modename), newvalue) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaError(&self, pmediaobject: P0) @@ -6191,28 +6191,28 @@ impl IWMPEvents { (windows_core::Interface::vtable(self).PlayerReconnect)(windows_core::Interface::as_raw(self)) } pub unsafe fn Click(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { - (windows_core::Interface::vtable(self).Click)(windows_core::Interface::as_raw(self), core::mem::transmute(nbutton), core::mem::transmute(nshiftstate), core::mem::transmute(fx), core::mem::transmute(fy)) + (windows_core::Interface::vtable(self).Click)(windows_core::Interface::as_raw(self), nbutton, nshiftstate, fx, fy) } pub unsafe fn DoubleClick(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { - (windows_core::Interface::vtable(self).DoubleClick)(windows_core::Interface::as_raw(self), core::mem::transmute(nbutton), core::mem::transmute(nshiftstate), core::mem::transmute(fx), core::mem::transmute(fy)) + (windows_core::Interface::vtable(self).DoubleClick)(windows_core::Interface::as_raw(self), nbutton, nshiftstate, fx, fy) } pub unsafe fn KeyDown(&self, nkeycode: i16, nshiftstate: i16) { - (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(nkeycode), core::mem::transmute(nshiftstate)) + (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), nkeycode, nshiftstate) } pub unsafe fn KeyPress(&self, nkeyascii: i16) { - (windows_core::Interface::vtable(self).KeyPress)(windows_core::Interface::as_raw(self), core::mem::transmute(nkeyascii)) + (windows_core::Interface::vtable(self).KeyPress)(windows_core::Interface::as_raw(self), nkeyascii) } pub unsafe fn KeyUp(&self, nkeycode: i16, nshiftstate: i16) { - (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), core::mem::transmute(nkeycode), core::mem::transmute(nshiftstate)) + (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), nkeycode, nshiftstate) } pub unsafe fn MouseDown(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { - (windows_core::Interface::vtable(self).MouseDown)(windows_core::Interface::as_raw(self), core::mem::transmute(nbutton), core::mem::transmute(nshiftstate), core::mem::transmute(fx), core::mem::transmute(fy)) + (windows_core::Interface::vtable(self).MouseDown)(windows_core::Interface::as_raw(self), nbutton, nshiftstate, fx, fy) } pub unsafe fn MouseMove(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { - (windows_core::Interface::vtable(self).MouseMove)(windows_core::Interface::as_raw(self), core::mem::transmute(nbutton), core::mem::transmute(nshiftstate), core::mem::transmute(fx), core::mem::transmute(fy)) + (windows_core::Interface::vtable(self).MouseMove)(windows_core::Interface::as_raw(self), nbutton, nshiftstate, fx, fy) } pub unsafe fn MouseUp(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { - (windows_core::Interface::vtable(self).MouseUp)(windows_core::Interface::as_raw(self), core::mem::transmute(nbutton), core::mem::transmute(nshiftstate), core::mem::transmute(fx), core::mem::transmute(fy)) + (windows_core::Interface::vtable(self).MouseUp)(windows_core::Interface::as_raw(self), nbutton, nshiftstate, fx, fy) } } #[repr(C)] @@ -6590,13 +6590,13 @@ impl IWMPEvents2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(newstatus)) + (windows_core::Interface::vtable(self).DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.param().abi(), newstatus) } pub unsafe fn DeviceSyncStateChange(&self, pdevice: P0, newstate: WMPSyncState) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSyncStateChange)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(newstate)) + (windows_core::Interface::vtable(self).DeviceSyncStateChange)(windows_core::Interface::as_raw(self), pdevice.param().abi(), newstate) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeviceSyncError(&self, pdevice: P0, pmedia: P1) @@ -6610,7 +6610,7 @@ impl IWMPEvents2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hrresult)) + (windows_core::Interface::vtable(self).CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hrresult) } } #[repr(C)] @@ -6691,7 +6691,7 @@ impl IWMPEvents3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromRipStateChange)(windows_core::Interface::as_raw(self), pcdromrip.param().abi(), core::mem::transmute(wmprs)) + (windows_core::Interface::vtable(self).CdromRipStateChange)(windows_core::Interface::as_raw(self), pcdromrip.param().abi(), wmprs) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CdromRipMediaError(&self, pcdromrip: P0, pmedia: P1) @@ -6705,7 +6705,7 @@ impl IWMPEvents3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromBurnStateChange)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), core::mem::transmute(wmpbs)) + (windows_core::Interface::vtable(self).CdromBurnStateChange)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), wmpbs) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CdromBurnMediaError(&self, pcdromburn: P0, pmedia: P1) @@ -6719,7 +6719,7 @@ impl IWMPEvents3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromBurnError)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), core::mem::transmute(hrerror)) + (windows_core::Interface::vtable(self).CdromBurnError)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), hrerror) } pub unsafe fn LibraryConnect(&self, plibrary: P0) where @@ -6734,14 +6734,14 @@ impl IWMPEvents3 { (windows_core::Interface::vtable(self).LibraryDisconnect)(windows_core::Interface::as_raw(self), plibrary.param().abi()) } pub unsafe fn FolderScanStateChange(&self, wmpfss: WMPFolderScanState) { - (windows_core::Interface::vtable(self).FolderScanStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(wmpfss)) + (windows_core::Interface::vtable(self).FolderScanStateChange)(windows_core::Interface::as_raw(self), wmpfss) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn StringCollectionChange(&self, pdispstringcollection: P0, change: WMPStringCollectionChangeEventType, lcollectionindex: i32) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StringCollectionChange)(windows_core::Interface::as_raw(self), pdispstringcollection.param().abi(), core::mem::transmute(change), core::mem::transmute(lcollectionindex)) + (windows_core::Interface::vtable(self).StringCollectionChange)(windows_core::Interface::as_raw(self), pdispstringcollection.param().abi(), change, lcollectionindex) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaCollectionMediaAdded(&self, pdispmedia: P0) @@ -6883,7 +6883,7 @@ impl IWMPEvents4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceEstimation)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(hrresult), core::mem::transmute(qwestimatedusedspace), core::mem::transmute(qwestimatedspace)) + (windows_core::Interface::vtable(self).DeviceEstimation)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hrresult, qwestimatedusedspace, qwestimatedspace) } } #[repr(C)] @@ -6917,13 +6917,13 @@ impl IWMPFolderMonitorServices { (windows_core::Interface::vtable(self).count)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn item(&self, lindex: i32, pbstrfolder: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pbstrfolder)).ok() + (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pbstrfolder)).ok() } pub unsafe fn add(&self, bstrfolder: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfolder)).ok() } pub unsafe fn remove(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), lindex).ok() } pub unsafe fn scanState(&self, pwmpfss: *mut WMPFolderScanState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).scanState)(windows_core::Interface::as_raw(self), core::mem::transmute(pwmpfss)).ok() @@ -7218,11 +7218,11 @@ windows_core::imp::define_interface!(IWMPLibraryServices, IWMPLibraryServices_Vt windows_core::imp::interface_hierarchy!(IWMPLibraryServices, windows_core::IUnknown); impl IWMPLibraryServices { pub unsafe fn getCountByType(&self, wmplt: WMPLibraryType, plcount: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getCountByType)(windows_core::Interface::as_raw(self), core::mem::transmute(wmplt), core::mem::transmute(plcount)).ok() + (windows_core::Interface::vtable(self).getCountByType)(windows_core::Interface::as_raw(self), wmplt, core::mem::transmute(plcount)).ok() } pub unsafe fn getLibraryByType(&self, wmplt: WMPLibraryType, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getLibraryByType)(windows_core::Interface::as_raw(self), core::mem::transmute(wmplt), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getLibraryByType)(windows_core::Interface::as_raw(self), wmplt, lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7351,10 +7351,10 @@ impl IWMPMedia { (windows_core::Interface::vtable(self).markerCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pmarkercount)).ok() } pub unsafe fn getMarkerTime(&self, markernum: i32, pmarkertime: *mut f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getMarkerTime)(windows_core::Interface::as_raw(self), core::mem::transmute(markernum), core::mem::transmute(pmarkertime)).ok() + (windows_core::Interface::vtable(self).getMarkerTime)(windows_core::Interface::as_raw(self), markernum, core::mem::transmute(pmarkertime)).ok() } pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getMarkerName)(windows_core::Interface::as_raw(self), core::mem::transmute(markernum), core::mem::transmute(pbstrmarkername)).ok() + (windows_core::Interface::vtable(self).getMarkerName)(windows_core::Interface::as_raw(self), markernum, core::mem::transmute(pbstrmarkername)).ok() } pub unsafe fn duration(&self, pduration: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).duration)(windows_core::Interface::as_raw(self), core::mem::transmute(pduration)).ok() @@ -7366,7 +7366,7 @@ impl IWMPMedia { (windows_core::Interface::vtable(self).attributeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getAttributeName)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pbstritemname)).ok() + (windows_core::Interface::vtable(self).getAttributeName)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pbstritemname)).ok() } pub unsafe fn getItemInfo(&self, bstritemname: &windows_core::BSTR, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstritemname), core::mem::transmute(pbstrval)).ok() @@ -7375,7 +7375,7 @@ impl IWMPMedia { (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstritemname), core::mem::transmute_copy(bstrval)).ok() } pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getItemInfoByAtom)(windows_core::Interface::as_raw(self), core::mem::transmute(latom), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfoByAtom)(windows_core::Interface::as_raw(self), latom, core::mem::transmute(pbstrval)).ok() } pub unsafe fn isMemberOf(&self, pplaylist: P0, pvarfismemberof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where @@ -7601,7 +7601,7 @@ impl IWMPMedia3 { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getItemInfoByType(&self, bstrtype: &windows_core::BSTR, bstrlanguage: &windows_core::BSTR, lindex: i32, pvarvalue: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(lindex), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrlanguage), lindex, core::mem::transmute(pvarvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7687,7 +7687,7 @@ impl IWMPMediaCollection { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), pitem.param().abi(), core::mem::transmute(varfdeletefile)).ok() + (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfdeletefile).ok() } pub unsafe fn getAttributeStringCollection(&self, bstrattribute: &windows_core::BSTR, bstrmediatype: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7700,7 +7700,7 @@ impl IWMPMediaCollection { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), core::mem::transmute(varfisdeleted)).ok() + (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfisdeleted).ok() } pub unsafe fn isDeleted(&self, pitem: P0, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where @@ -7884,14 +7884,14 @@ impl IWMPMediaCollection2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getPlaylistByQuery)(windows_core::Interface::as_raw(self), pquery.param().abi(), core::mem::transmute_copy(bstrmediatype), core::mem::transmute_copy(bstrsortattribute), core::mem::transmute(fsortascending), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getPlaylistByQuery)(windows_core::Interface::as_raw(self), pquery.param().abi(), core::mem::transmute_copy(bstrmediatype), core::mem::transmute_copy(bstrsortattribute), fsortascending, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getStringCollectionByQuery(&self, bstrattribute: &windows_core::BSTR, pquery: P1, bstrmediatype: &windows_core::BSTR, bstrsortattribute: &windows_core::BSTR, fsortascending: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getStringCollectionByQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrattribute), pquery.param().abi(), core::mem::transmute_copy(bstrmediatype), core::mem::transmute_copy(bstrsortattribute), core::mem::transmute(fsortascending), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getStringCollectionByQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrattribute), pquery.param().abi(), core::mem::transmute_copy(bstrmediatype), core::mem::transmute_copy(bstrsortattribute), fsortascending, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getByAttributeAndMediaType(&self, bstrattribute: &windows_core::BSTR, bstrvalue: &windows_core::BSTR, bstrmediatype: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7980,7 +7980,7 @@ impl IWMPMediaPluginRegistrar { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WMPRegisterPlayerPlugin)(windows_core::Interface::as_raw(self), pwszfriendlyname.param().abi(), pwszdescription.param().abi(), pwszuninstallstring.param().abi(), core::mem::transmute(dwpriority), core::mem::transmute(guidplugintype), core::mem::transmute(clsid), core::mem::transmute(cmediatypes), core::mem::transmute(pmediatypes)).ok() + (windows_core::Interface::vtable(self).WMPRegisterPlayerPlugin)(windows_core::Interface::as_raw(self), pwszfriendlyname.param().abi(), pwszdescription.param().abi(), pwszuninstallstring.param().abi(), dwpriority, core::mem::transmute(guidplugintype), core::mem::transmute(clsid), cmediatypes, core::mem::transmute(pmediatypes)).ok() } pub unsafe fn WMPUnRegisterPlayerPlugin(&self, guidplugintype: windows_core::GUID, clsid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WMPUnRegisterPlayerPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(guidplugintype), core::mem::transmute(clsid)).ok() @@ -8188,7 +8188,7 @@ impl IWMPNetwork { (windows_core::Interface::vtable(self).bufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(plbufferingtime)).ok() } pub unsafe fn SetbufferingTime(&self, lbufferingtime: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetbufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(lbufferingtime)).ok() + (windows_core::Interface::vtable(self).SetbufferingTime)(windows_core::Interface::as_raw(self), lbufferingtime).ok() } pub unsafe fn frameRate(&self, plframerate: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).frameRate)(windows_core::Interface::as_raw(self), core::mem::transmute(plframerate)).ok() @@ -8203,7 +8203,7 @@ impl IWMPNetwork { (windows_core::Interface::vtable(self).getProxySettings)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(plproxysetting)).ok() } pub unsafe fn setProxySettings(&self, bstrprotocol: &windows_core::BSTR, lproxysetting: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setProxySettings)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(lproxysetting)).ok() + (windows_core::Interface::vtable(self).setProxySettings)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), lproxysetting).ok() } pub unsafe fn getProxyName(&self, bstrprotocol: &windows_core::BSTR, pbstrproxyname: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getProxyName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(pbstrproxyname)).ok() @@ -8215,7 +8215,7 @@ impl IWMPNetwork { (windows_core::Interface::vtable(self).getProxyPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(lproxyport)).ok() } pub unsafe fn setProxyPort(&self, bstrprotocol: &windows_core::BSTR, lproxyport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setProxyPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(lproxyport)).ok() + (windows_core::Interface::vtable(self).setProxyPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), lproxyport).ok() } pub unsafe fn getProxyExceptionList(&self, bstrprotocol: &windows_core::BSTR, pbstrexceptionlist: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getProxyExceptionList)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(pbstrexceptionlist)).ok() @@ -8227,13 +8227,13 @@ impl IWMPNetwork { (windows_core::Interface::vtable(self).getProxyBypassForLocal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(pfbypassforlocal)).ok() } pub unsafe fn setProxyBypassForLocal(&self, bstrprotocol: &windows_core::BSTR, fbypassforlocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setProxyBypassForLocal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(fbypassforlocal)).ok() + (windows_core::Interface::vtable(self).setProxyBypassForLocal)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), fbypassforlocal).ok() } pub unsafe fn maxBandwidth(&self, lmaxbandwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).maxBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxbandwidth)).ok() } pub unsafe fn SetmaxBandwidth(&self, lmaxbandwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetmaxBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxbandwidth)).ok() + (windows_core::Interface::vtable(self).SetmaxBandwidth)(windows_core::Interface::as_raw(self), lmaxbandwidth).ok() } pub unsafe fn downloadProgress(&self, pldownloadprogress: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).downloadProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(pldownloadprogress)).ok() @@ -8469,7 +8469,7 @@ impl IWMPNodeRealEstate { (windows_core::Interface::vtable(self).GetDesiredSize)(windows_core::Interface::as_raw(self), core::mem::transmute(psize)).ok() } pub unsafe fn SetRects(&self, psrc: *const super::super::Foundation::RECT, pdest: *const super::super::Foundation::RECT, pclip: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRects)(windows_core::Interface::as_raw(self), core::mem::transmute(psrc), core::mem::transmute(pdest), core::mem::transmute(pclip)).ok() + (windows_core::Interface::vtable(self).SetRects)(windows_core::Interface::as_raw(self), psrc, pdest, pclip).ok() } pub unsafe fn GetRects(&self, psrc: *mut super::super::Foundation::RECT, pdest: *mut super::super::Foundation::RECT, pclip: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRects)(windows_core::Interface::as_raw(self), core::mem::transmute(psrc), core::mem::transmute(pdest), core::mem::transmute(pclip)).ok() @@ -8598,7 +8598,7 @@ windows_core::imp::define_interface!(IWMPNodeWindowed, IWMPNodeWindowed_Vtbl, 0x windows_core::imp::interface_hierarchy!(IWMPNodeWindowed, windows_core::IUnknown); impl IWMPNodeWindowed { pub unsafe fn SetOwnerWindow(&self, hwnd: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn GetOwnerWindow(&self, phwnd: *mut isize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOwnerWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(phwnd)).ok() @@ -8639,7 +8639,7 @@ windows_core::imp::define_interface!(IWMPNodeWindowedHost, IWMPNodeWindowedHost_ windows_core::imp::interface_hierarchy!(IWMPNodeWindowedHost, windows_core::IUnknown); impl IWMPNodeWindowedHost { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnWindowMessageFromRenderer)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(plret), core::mem::transmute(pfhandled)).ok() + (windows_core::Interface::vtable(self).OnWindowMessageFromRenderer)(windows_core::Interface::as_raw(self), umsg, wparam, lparam, core::mem::transmute(plret), core::mem::transmute(pfhandled)).ok() } } #[repr(C)] @@ -8673,7 +8673,7 @@ impl core::ops::Deref for IWMPNodeWindowless { windows_core::imp::interface_hierarchy!(IWMPNodeWindowless, windows_core::IUnknown, IWMPWindowMessageSink); impl IWMPNodeWindowless { pub unsafe fn OnDraw(&self, hdc: isize, prcdraw: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDraw)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(prcdraw)).ok() + (windows_core::Interface::vtable(self).OnDraw)(windows_core::Interface::as_raw(self), hdc, prcdraw).ok() } } #[repr(C)] @@ -8701,7 +8701,7 @@ windows_core::imp::define_interface!(IWMPNodeWindowlessHost, IWMPNodeWindowlessH windows_core::imp::interface_hierarchy!(IWMPNodeWindowlessHost, windows_core::IUnknown); impl IWMPNodeWindowlessHost { pub unsafe fn InvalidateRect(&self, prc: *const super::super::Foundation::RECT, ferase: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prc), ferase.into()).ok() + (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), prc, ferase.into()).ok() } } #[repr(C)] @@ -8742,19 +8742,19 @@ impl IWMPPlayer { (windows_core::Interface::vtable(self).enabled)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn Setenabled(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn fullScreen(&self, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).fullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(pbfullscreen)).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(bfullscreen)).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen).ok() } pub unsafe fn enableContextMenu(&self, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).enableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenablecontextmenu)).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(benablecontextmenu)).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu).ok() } pub unsafe fn SetuiMode(&self, bstrmode: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode)).ok() @@ -8857,19 +8857,19 @@ impl IWMPPlayer2 { (windows_core::Interface::vtable(self).enabled)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn Setenabled(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn fullScreen(&self, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).fullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(pbfullscreen)).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(bfullscreen)).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen).ok() } pub unsafe fn enableContextMenu(&self, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).enableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenablecontextmenu)).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(benablecontextmenu)).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu).ok() } pub unsafe fn SetuiMode(&self, bstrmode: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode)).ok() @@ -8881,13 +8881,13 @@ impl IWMPPlayer2 { (windows_core::Interface::vtable(self).stretchToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn SetstretchToFit(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn windowlessVideo(&self, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).windowlessVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn SetwindowlessVideo(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9012,19 +9012,19 @@ impl IWMPPlayer3 { (windows_core::Interface::vtable(self).enabled)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn Setenabled(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn fullScreen(&self, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).fullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(pbfullscreen)).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(bfullscreen)).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen).ok() } pub unsafe fn enableContextMenu(&self, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).enableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenablecontextmenu)).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(benablecontextmenu)).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu).ok() } pub unsafe fn SetuiMode(&self, bstrmode: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode)).ok() @@ -9036,13 +9036,13 @@ impl IWMPPlayer3 { (windows_core::Interface::vtable(self).stretchToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn SetstretchToFit(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn windowlessVideo(&self, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).windowlessVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn SetwindowlessVideo(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9167,19 +9167,19 @@ impl IWMPPlayer4 { (windows_core::Interface::vtable(self).enabled)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn Setenabled(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn fullScreen(&self, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).fullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(pbfullscreen)).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(bfullscreen)).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen).ok() } pub unsafe fn enableContextMenu(&self, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).enableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenablecontextmenu)).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(benablecontextmenu)).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu).ok() } pub unsafe fn SetuiMode(&self, bstrmode: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode)).ok() @@ -9191,13 +9191,13 @@ impl IWMPPlayer4 { (windows_core::Interface::vtable(self).stretchToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn SetstretchToFit(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn windowlessVideo(&self, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).windowlessVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbenabled)).ok() } pub unsafe fn SetwindowlessVideo(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn isRemote(&self, pvarfisremote: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).isRemote)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarfisremote)).ok() @@ -9528,11 +9528,11 @@ impl IWMPPlaylist { (windows_core::Interface::vtable(self).attributeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn get_attributeName(&self, lindex: i32, pbstrattributename: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_attributeName)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pbstrattributename)).ok() + (windows_core::Interface::vtable(self).get_attributeName)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pbstrattributename)).ok() } pub unsafe fn get_item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getItemInfo(&self, bstrname: &windows_core::BSTR, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(pbstrval)).ok() @@ -9553,7 +9553,7 @@ impl IWMPPlaylist { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).insertItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), piwmpmedia.param().abi()).ok() + (windows_core::Interface::vtable(self).insertItem)(windows_core::Interface::as_raw(self), lindex, piwmpmedia.param().abi()).ok() } pub unsafe fn appendItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where @@ -9568,7 +9568,7 @@ impl IWMPPlaylist { (windows_core::Interface::vtable(self).removeItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } pub unsafe fn moveItem(&self, lindexold: i32, lindexnew: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).moveItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lindexold), core::mem::transmute(lindexnew)).ok() + (windows_core::Interface::vtable(self).moveItem)(windows_core::Interface::as_raw(self), lindexold, lindexnew).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9714,7 +9714,7 @@ impl IWMPPlaylistArray { } pub unsafe fn item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -9789,7 +9789,7 @@ impl IWMPPlaylistCollection { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), core::mem::transmute(varfisdeleted)).ok() + (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfisdeleted).ok() } pub unsafe fn isDeleted(&self, pitem: P0, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where @@ -9903,7 +9903,7 @@ windows_core::imp::define_interface!(IWMPPlugin, IWMPPlugin_Vtbl, 0xf1392a70_024 windows_core::imp::interface_hierarchy!(IWMPPlugin, windows_core::IUnknown); impl IWMPPlugin { pub unsafe fn Init(&self, dwplaybackcontext: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(dwplaybackcontext)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), dwplaybackcontext).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -10035,13 +10035,13 @@ impl IWMPPluginUI { (windows_core::Interface::vtable(self).SetCore)(windows_core::Interface::as_raw(self), pcore.param().abi()).ok() } pub unsafe fn Create(&self, hwndparent: super::super::Foundation::HWND, phwndwindow: *mut super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(phwndwindow)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute(phwndwindow)).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DisplayPropertyPage(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndparent).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, pwszname: P0, pvarproperty: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> @@ -10368,7 +10368,7 @@ impl IWMPSettings { (windows_core::Interface::vtable(self).autoStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pfautostart)).ok() } pub unsafe fn SetautoStart(&self, fautostart: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetautoStart)(windows_core::Interface::as_raw(self), core::mem::transmute(fautostart)).ok() + (windows_core::Interface::vtable(self).SetautoStart)(windows_core::Interface::as_raw(self), fautostart).ok() } pub unsafe fn baseURL(&self, pbstrbaseurl: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).baseURL)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrbaseurl)).ok() @@ -10386,49 +10386,49 @@ impl IWMPSettings { (windows_core::Interface::vtable(self).invokeURLs)(windows_core::Interface::as_raw(self), core::mem::transmute(pfinvokeurls)).ok() } pub unsafe fn SetinvokeURLs(&self, finvokeurls: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetinvokeURLs)(windows_core::Interface::as_raw(self), core::mem::transmute(finvokeurls)).ok() + (windows_core::Interface::vtable(self).SetinvokeURLs)(windows_core::Interface::as_raw(self), finvokeurls).ok() } pub unsafe fn mute(&self, pfmute: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).mute)(windows_core::Interface::as_raw(self), core::mem::transmute(pfmute)).ok() } pub unsafe fn Setmute(&self, fmute: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setmute)(windows_core::Interface::as_raw(self), core::mem::transmute(fmute)).ok() + (windows_core::Interface::vtable(self).Setmute)(windows_core::Interface::as_raw(self), fmute).ok() } pub unsafe fn playCount(&self, plcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).playCount)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn SetplayCount(&self, lcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetplayCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lcount)).ok() + (windows_core::Interface::vtable(self).SetplayCount)(windows_core::Interface::as_raw(self), lcount).ok() } pub unsafe fn rate(&self, pdrate: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).rate)(windows_core::Interface::as_raw(self), core::mem::transmute(pdrate)).ok() } pub unsafe fn Setrate(&self, drate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setrate)(windows_core::Interface::as_raw(self), core::mem::transmute(drate)).ok() + (windows_core::Interface::vtable(self).Setrate)(windows_core::Interface::as_raw(self), drate).ok() } pub unsafe fn balance(&self, plbalance: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).balance)(windows_core::Interface::as_raw(self), core::mem::transmute(plbalance)).ok() } pub unsafe fn Setbalance(&self, lbalance: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setbalance)(windows_core::Interface::as_raw(self), core::mem::transmute(lbalance)).ok() + (windows_core::Interface::vtable(self).Setbalance)(windows_core::Interface::as_raw(self), lbalance).ok() } pub unsafe fn volume(&self, plvolume: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).volume)(windows_core::Interface::as_raw(self), core::mem::transmute(plvolume)).ok() } pub unsafe fn Setvolume(&self, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setvolume)(windows_core::Interface::as_raw(self), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).Setvolume)(windows_core::Interface::as_raw(self), lvolume).ok() } pub unsafe fn getMode(&self, bstrmode: &windows_core::BSTR, pvarfmode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode), core::mem::transmute(pvarfmode)).ok() } pub unsafe fn setMode(&self, bstrmode: &windows_core::BSTR, varfmode: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode), core::mem::transmute(varfmode)).ok() + (windows_core::Interface::vtable(self).setMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmode), varfmode).ok() } pub unsafe fn enableErrorDialogs(&self, pfenableerrordialogs: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).enableErrorDialogs)(windows_core::Interface::as_raw(self), core::mem::transmute(pfenableerrordialogs)).ok() } pub unsafe fn SetenableErrorDialogs(&self, fenableerrordialogs: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetenableErrorDialogs)(windows_core::Interface::as_raw(self), core::mem::transmute(fenableerrordialogs)).ok() + (windows_core::Interface::vtable(self).SetenableErrorDialogs)(windows_core::Interface::as_raw(self), fenableerrordialogs).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10723,7 +10723,7 @@ impl IWMPStringCollection { (windows_core::Interface::vtable(self).count)(windows_core::Interface::as_raw(self), core::mem::transmute(plcount)).ok() } pub unsafe fn item(&self, lindex: i32, pbstrstring: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(pbstrstring)).ok() + (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), lindex, core::mem::transmute(pbstrstring)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10777,14 +10777,14 @@ impl IWMPStringCollection2 { (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), piwmpstringcollection2.param().abi(), core::mem::transmute(pvbool)).ok() } pub unsafe fn getItemInfo(&self, lcollectionindex: i32, bstritemname: &windows_core::BSTR, pbstrvalue: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lcollectionindex), core::mem::transmute_copy(bstritemname), core::mem::transmute(pbstrvalue)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), lcollectionindex, core::mem::transmute_copy(bstritemname), core::mem::transmute(pbstrvalue)).ok() } pub unsafe fn getAttributeCountByType(&self, lcollectionindex: i32, bstrtype: &windows_core::BSTR, bstrlanguage: &windows_core::BSTR, plcount: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getAttributeCountByType)(windows_core::Interface::as_raw(self), core::mem::transmute(lcollectionindex), core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(plcount)).ok() + (windows_core::Interface::vtable(self).getAttributeCountByType)(windows_core::Interface::as_raw(self), lcollectionindex, core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(plcount)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getItemInfoByType(&self, lcollectionindex: i32, bstrtype: &windows_core::BSTR, bstrlanguage: &windows_core::BSTR, lattributeindex: i32, pvarvalue: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), core::mem::transmute(lcollectionindex), core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrlanguage), core::mem::transmute(lattributeindex), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), lcollectionindex, core::mem::transmute_copy(bstrtype), core::mem::transmute_copy(bstrlanguage), lattributeindex, core::mem::transmute(pvarvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10847,24 +10847,24 @@ impl IWMPSubscriptionService { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).allowPlay)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pmedia.param().abi(), core::mem::transmute(pfallowplay)).ok() + (windows_core::Interface::vtable(self).allowPlay)(windows_core::Interface::as_raw(self), hwnd, pmedia.param().abi(), core::mem::transmute(pfallowplay)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowCDBurn(&self, hwnd: super::super::Foundation::HWND, pplaylist: P1, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).allowCDBurn)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pplaylist.param().abi(), core::mem::transmute(pfallowburn)).ok() + (windows_core::Interface::vtable(self).allowCDBurn)(windows_core::Interface::as_raw(self), hwnd, pplaylist.param().abi(), core::mem::transmute(pfallowburn)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowPDATransfer(&self, hwnd: super::super::Foundation::HWND, pplaylist: P1, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).allowPDATransfer)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pplaylist.param().abi(), core::mem::transmute(pfallowtransfer)).ok() + (windows_core::Interface::vtable(self).allowPDATransfer)(windows_core::Interface::as_raw(self), hwnd, pplaylist.param().abi(), core::mem::transmute(pfallowtransfer)).ok() } pub unsafe fn startBackgroundProcessing(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).startBackgroundProcessing)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).startBackgroundProcessing)(windows_core::Interface::as_raw(self), hwnd).ok() } } #[repr(C)] @@ -10937,7 +10937,7 @@ impl IWMPSubscriptionService2 { (windows_core::Interface::vtable(self).stopBackgroundProcessing)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn serviceEvent(&self, event: WMPSubscriptionServiceEvent) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).serviceEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event)).ok() + (windows_core::Interface::vtable(self).serviceEvent)(windows_core::Interface::as_raw(self), event).ok() } pub unsafe fn deviceAvailable(&self, bstrdevicename: &windows_core::BSTR, pcb: P1) -> windows_core::Result<()> where @@ -11004,7 +11004,7 @@ windows_core::imp::define_interface!(IWMPSubscriptionServiceCallback, IWMPSubscr windows_core::imp::interface_hierarchy!(IWMPSubscriptionServiceCallback, windows_core::IUnknown); impl IWMPSubscriptionServiceCallback { pub unsafe fn onComplete(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).onComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).onComplete)(windows_core::Interface::as_raw(self), hrresult).ok() } } #[repr(C)] @@ -11062,7 +11062,7 @@ impl IWMPSyncDevice { (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstritemname), core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).createPartnership)(windows_core::Interface::as_raw(self), core::mem::transmute(vbshowui)).ok() + (windows_core::Interface::vtable(self).createPartnership)(windows_core::Interface::as_raw(self), vbshowui).ok() } pub unsafe fn deletePartnership(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).deletePartnership)(windows_core::Interface::as_raw(self)).ok() @@ -11312,7 +11312,7 @@ impl IWMPSyncServices { } pub unsafe fn getDevice(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getDevice)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11384,7 +11384,7 @@ windows_core::imp::define_interface!(IWMPUserEventSink, IWMPUserEventSink_Vtbl, windows_core::imp::interface_hierarchy!(IWMPUserEventSink, windows_core::IUnknown); impl IWMPUserEventSink { pub unsafe fn NotifyUserEvent(&self, eventcode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyUserEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventcode)).ok() + (windows_core::Interface::vtable(self).NotifyUserEvent)(windows_core::Interface::as_raw(self), eventcode).ok() } } #[repr(C)] @@ -11450,7 +11450,7 @@ windows_core::imp::define_interface!(IWMPWindowMessageSink, IWMPWindowMessageSin windows_core::imp::interface_hierarchy!(IWMPWindowMessageSink, windows_core::IUnknown); impl IWMPWindowMessageSink { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(plret), core::mem::transmute(pfhandled)).ok() + (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), umsg, wparam, lparam, core::mem::transmute(plret), core::mem::transmute(pfhandled)).ok() } } #[repr(C)] @@ -11480,7 +11480,7 @@ impl IXFeed { #[cfg(feature = "Win32_System_Com")] pub unsafe 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 { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), core::mem::transmute(uiitemcount), core::mem::transmute(sortproperty), core::mem::transmute(sortorder), core::mem::transmute(filterflags), core::mem::transmute(includeflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), uiitemcount, sortproperty, sortorder, filterflags, includeflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11544,14 +11544,14 @@ impl IXFeed { (windows_core::Interface::vtable(self).SyncSetting)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSyncSetting(&self, fss: FEEDS_SYNC_SETTING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(fss)).ok() + (windows_core::Interface::vtable(self).SetSyncSetting)(windows_core::Interface::as_raw(self), fss).ok() } pub unsafe fn Interval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Interval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterval(&self, uiinterval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(uiinterval)).ok() + (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), uiinterval).ok() } pub unsafe fn LastDownloadTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11570,7 +11570,7 @@ impl IXFeed { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(uiid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), uiid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MarkAllItemsRead(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MarkAllItemsRead)(windows_core::Interface::as_raw(self)).ok() @@ -11580,7 +11580,7 @@ impl IXFeed { (windows_core::Interface::vtable(self).MaxItemCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxItemCount(&self, uimaxitemcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxItemCount)(windows_core::Interface::as_raw(self), core::mem::transmute(uimaxitemcount)).ok() + (windows_core::Interface::vtable(self).SetMaxItemCount)(windows_core::Interface::as_raw(self), uimaxitemcount).ok() } pub unsafe fn DownloadEnclosuresAutomatically(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11654,7 +11654,7 @@ impl IXFeed { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), core::mem::transmute(mask), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), scope, mask, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnreadItemCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12181,7 +12181,7 @@ impl IXFeed2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetItemByEffectiveId)(windows_core::Interface::as_raw(self), core::mem::transmute(uieffectiveid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemByEffectiveId)(windows_core::Interface::as_raw(self), uieffectiveid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LastItemDownloadTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12545,13 +12545,13 @@ impl IXFeedEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(fde)).ok() + (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), pszpath.param().abi(), fde).ok() } pub unsafe fn FeedItemCountChanged(&self, pszpath: P0, feicfflags: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(feicfflags)).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), feicfflags).ok() } } #[repr(C)] @@ -12659,13 +12659,13 @@ impl IXFeedFolder { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pbfeedexists)).ok() + (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), pszname.param().abi(), pbfeedexists).ok() } pub unsafe fn ExistsSubfolder(&self, pszname: P0, pbsubfolderexists: *const super::super::Foundation::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExistsSubfolder)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pbsubfolderexists)).ok() + (windows_core::Interface::vtable(self).ExistsSubfolder)(windows_core::Interface::as_raw(self), pszname.param().abi(), pbsubfolderexists).ok() } pub unsafe fn GetFeed(&self, pszname: P0) -> windows_core::Result where @@ -12722,7 +12722,7 @@ impl IXFeedFolder { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), core::mem::transmute(mask), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWatcher)(windows_core::Interface::as_raw(self), scope, mask, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TotalUnreadItemCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12961,7 +12961,7 @@ impl IXFeedFolderEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(feicfflags)).ok() + (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), feicfflags).ok() } pub unsafe fn FeedAdded(&self, pszpath: P0) -> windows_core::Result<()> where @@ -13012,13 +13012,13 @@ impl IXFeedFolderEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(fde)).ok() + (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), pszpath.param().abi(), fde).ok() } pub unsafe fn FeedItemCountChanged(&self, pszpath: P0, feicfflags: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(feicfflags)).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), feicfflags).ok() } } #[repr(C)] @@ -13156,7 +13156,7 @@ impl IXFeedItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Xml(&self, fxif: FEEDS_XML_INCLUDE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), core::mem::transmute(fxif), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Xml)(windows_core::Interface::as_raw(self), fxif, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Title(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13503,7 +13503,7 @@ impl IXFeedsEnum { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), uiindex, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -13607,7 +13607,7 @@ impl IXFeedsManager { (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn BackgroundSync(&self, fbsa: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BackgroundSync)(windows_core::Interface::as_raw(self), core::mem::transmute(fbsa)).ok() + (windows_core::Interface::vtable(self).BackgroundSync)(windows_core::Interface::as_raw(self), fbsa).ok() } pub unsafe fn BackgroundSyncStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13618,7 +13618,7 @@ impl IXFeedsManager { (windows_core::Interface::vtable(self).DefaultInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultInterval(&self, uiinterval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(uiinterval)).ok() + (windows_core::Interface::vtable(self).SetDefaultInterval)(windows_core::Interface::as_raw(self), uiinterval).ok() } pub unsafe fn AsyncSyncAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AsyncSyncAll)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs index a3b8bbc493..6634f107a6 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs @@ -27,7 +27,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileCreateStreamA(pfile : * mut core::ffi::c_void, ppavi : *mut * mut core::ffi::c_void, psi : *const AVISTREAMINFOA) -> windows_core::HRESULT); - AVIFileCreateStreamA(pfile.param().abi(), core::mem::transmute(ppavi), core::mem::transmute(psi)).ok() + AVIFileCreateStreamA(pfile.param().abi(), core::mem::transmute(ppavi), psi).ok() } #[inline] pub unsafe fn AVIFileCreateStreamW(pfile: P0, ppavi: *mut Option, psi: *const AVISTREAMINFOW) -> windows_core::Result<()> @@ -35,7 +35,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileCreateStreamW(pfile : * mut core::ffi::c_void, ppavi : *mut * mut core::ffi::c_void, psi : *const AVISTREAMINFOW) -> windows_core::HRESULT); - AVIFileCreateStreamW(pfile.param().abi(), core::mem::transmute(ppavi), core::mem::transmute(psi)).ok() + AVIFileCreateStreamW(pfile.param().abi(), core::mem::transmute(ppavi), psi).ok() } #[inline] pub unsafe fn AVIFileEndRecord(pfile: P0) -> windows_core::Result<()> @@ -56,7 +56,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileGetStream(pfile : * mut core::ffi::c_void, ppavi : *mut * mut core::ffi::c_void, fcctype : u32, lparam : i32) -> windows_core::HRESULT); - AVIFileGetStream(pfile.param().abi(), core::mem::transmute(ppavi), core::mem::transmute(fcctype), core::mem::transmute(lparam)).ok() + AVIFileGetStream(pfile.param().abi(), core::mem::transmute(ppavi), fcctype, lparam).ok() } #[inline] pub unsafe fn AVIFileInfoA(pfile: P0, pfi: *mut AVIFILEINFOA, lsize: i32) -> windows_core::Result<()> @@ -64,7 +64,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileInfoA(pfile : * mut core::ffi::c_void, pfi : *mut AVIFILEINFOA, lsize : i32) -> windows_core::HRESULT); - AVIFileInfoA(pfile.param().abi(), core::mem::transmute(pfi), core::mem::transmute(lsize)).ok() + AVIFileInfoA(pfile.param().abi(), core::mem::transmute(pfi), lsize).ok() } #[inline] pub unsafe fn AVIFileInfoW(pfile: P0, pfi: *mut AVIFILEINFOW, lsize: i32) -> windows_core::Result<()> @@ -72,7 +72,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileInfoW(pfile : * mut core::ffi::c_void, pfi : *mut AVIFILEINFOW, lsize : i32) -> windows_core::HRESULT); - AVIFileInfoW(pfile.param().abi(), core::mem::transmute(pfi), core::mem::transmute(lsize)).ok() + AVIFileInfoW(pfile.param().abi(), core::mem::transmute(pfi), lsize).ok() } #[inline] pub unsafe fn AVIFileInit() { @@ -85,7 +85,7 @@ where P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileOpenA(ppfile : *mut * mut core::ffi::c_void, szfile : windows_core::PCSTR, umode : u32, lphandler : *const windows_core::GUID) -> windows_core::HRESULT); - AVIFileOpenA(core::mem::transmute(ppfile), szfile.param().abi(), core::mem::transmute(umode), core::mem::transmute(lphandler.unwrap_or(core::mem::zeroed()))).ok() + AVIFileOpenA(core::mem::transmute(ppfile), szfile.param().abi(), umode, core::mem::transmute(lphandler.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIFileOpenW(ppfile: *mut Option, szfile: P1, umode: u32, lphandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> @@ -93,7 +93,7 @@ where P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileOpenW(ppfile : *mut * mut core::ffi::c_void, szfile : windows_core::PCWSTR, umode : u32, lphandler : *const windows_core::GUID) -> windows_core::HRESULT); - AVIFileOpenW(core::mem::transmute(ppfile), szfile.param().abi(), core::mem::transmute(umode), core::mem::transmute(lphandler.unwrap_or(core::mem::zeroed()))).ok() + AVIFileOpenW(core::mem::transmute(ppfile), szfile.param().abi(), umode, core::mem::transmute(lphandler.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIFileReadData(pfile: P0, ckid: u32, lpdata: *mut core::ffi::c_void, lpcbdata: *mut i32) -> windows_core::Result<()> @@ -101,7 +101,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileReadData(pfile : * mut core::ffi::c_void, ckid : u32, lpdata : *mut core::ffi::c_void, lpcbdata : *mut i32) -> windows_core::HRESULT); - AVIFileReadData(pfile.param().abi(), core::mem::transmute(ckid), core::mem::transmute(lpdata), core::mem::transmute(lpcbdata)).ok() + AVIFileReadData(pfile.param().abi(), ckid, core::mem::transmute(lpdata), core::mem::transmute(lpcbdata)).ok() } #[inline] pub unsafe fn AVIFileRelease(pfile: P0) -> u32 @@ -117,7 +117,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileWriteData(pfile : * mut core::ffi::c_void, ckid : u32, lpdata : *const core::ffi::c_void, cbdata : i32) -> windows_core::HRESULT); - AVIFileWriteData(pfile.param().abi(), core::mem::transmute(ckid), core::mem::transmute(lpdata), core::mem::transmute(cbdata)).ok() + AVIFileWriteData(pfile.param().abi(), ckid, lpdata, cbdata).ok() } #[inline] pub unsafe fn AVIGetFromClipboard() -> windows_core::Result { @@ -131,7 +131,7 @@ where P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIMakeCompressedStream(ppscompressed : *mut * mut core::ffi::c_void, ppssource : * mut core::ffi::c_void, lpoptions : *const AVICOMPRESSOPTIONS, pclsidhandler : *const windows_core::GUID) -> windows_core::HRESULT); - AVIMakeCompressedStream(core::mem::transmute(ppscompressed), ppssource.param().abi(), core::mem::transmute(lpoptions), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() + AVIMakeCompressedStream(core::mem::transmute(ppscompressed), ppssource.param().abi(), lpoptions, core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIMakeFileFromStreams(ppfile: *mut Option, papstreams: &[Option]) -> windows_core::Result<()> { @@ -142,7 +142,7 @@ pub unsafe fn AVIMakeFileFromStreams(ppfile: *mut Option, papstreams: pub unsafe fn AVIMakeStreamFromClipboard(cfformat: u32, hglobal: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("avifil32.dll" "system" fn AVIMakeStreamFromClipboard(cfformat : u32, hglobal : super::super::Foundation:: HANDLE, ppstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AVIMakeStreamFromClipboard(core::mem::transmute(cfformat), core::mem::transmute(hglobal), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + AVIMakeStreamFromClipboard(cfformat, hglobal, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn AVIPutFileOnClipboard(pf: P0) -> windows_core::Result<()> @@ -159,12 +159,12 @@ where P4: windows_core::Param, { windows_targets::link!("avifil32.dll" "cdecl" fn AVISaveA(szfile : windows_core::PCSTR, pclsidhandler : *const windows_core::GUID, lpfncallback : AVISAVECALLBACK, nstreams : i32, pfile : * mut core::ffi::c_void, lpoptions : *const AVICOMPRESSOPTIONS) -> windows_core::HRESULT); - AVISaveA(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfncallback), core::mem::transmute(nstreams), pfile.param().abi(), core::mem::transmute(lpoptions)).ok() + AVISaveA(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), lpfncallback, nstreams, pfile.param().abi(), lpoptions).ok() } #[inline] pub unsafe fn AVISaveOptions(hwnd: super::super::Foundation::HWND, uiflags: u32, nstreams: i32, ppavi: *const Option, plpoptions: *mut *mut AVICOMPRESSOPTIONS) -> isize { windows_targets::link!("avifil32.dll" "system" fn AVISaveOptions(hwnd : super::super::Foundation:: HWND, uiflags : u32, nstreams : i32, ppavi : *const * mut core::ffi::c_void, plpoptions : *mut *mut AVICOMPRESSOPTIONS) -> isize); - AVISaveOptions(core::mem::transmute(hwnd), core::mem::transmute(uiflags), core::mem::transmute(nstreams), core::mem::transmute(ppavi), core::mem::transmute(plpoptions)) + AVISaveOptions(hwnd, uiflags, nstreams, core::mem::transmute(ppavi), core::mem::transmute(plpoptions)) } #[inline] pub unsafe fn AVISaveOptionsFree(plpoptions: &[*const AVICOMPRESSOPTIONS]) -> windows_core::Result<()> { @@ -177,7 +177,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVISaveVA(szfile : windows_core::PCSTR, pclsidhandler : *const windows_core::GUID, lpfncallback : AVISAVECALLBACK, nstreams : i32, ppavi : *const * mut core::ffi::c_void, plpoptions : *const *const AVICOMPRESSOPTIONS) -> windows_core::HRESULT); - AVISaveVA(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfncallback), core::mem::transmute(nstreams), core::mem::transmute(ppavi), core::mem::transmute(plpoptions)).ok() + AVISaveVA(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), lpfncallback, nstreams, core::mem::transmute(ppavi), plpoptions).ok() } #[inline] pub unsafe fn AVISaveVW(szfile: P0, pclsidhandler: Option<*const windows_core::GUID>, lpfncallback: AVISAVECALLBACK, nstreams: i32, ppavi: *const Option, plpoptions: *const *const AVICOMPRESSOPTIONS) -> windows_core::Result<()> @@ -185,7 +185,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVISaveVW(szfile : windows_core::PCWSTR, pclsidhandler : *const windows_core::GUID, lpfncallback : AVISAVECALLBACK, nstreams : i32, ppavi : *const * mut core::ffi::c_void, plpoptions : *const *const AVICOMPRESSOPTIONS) -> windows_core::HRESULT); - AVISaveVW(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfncallback), core::mem::transmute(nstreams), core::mem::transmute(ppavi), core::mem::transmute(plpoptions)).ok() + AVISaveVW(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), lpfncallback, nstreams, core::mem::transmute(ppavi), plpoptions).ok() } #[inline] pub unsafe fn AVISaveW(szfile: P0, pclsidhandler: Option<*const windows_core::GUID>, lpfncallback: AVISAVECALLBACK, nstreams: i32, pfile: P4, lpoptions: *const AVICOMPRESSOPTIONS) -> windows_core::Result<()> @@ -194,7 +194,7 @@ where P4: windows_core::Param, { windows_targets::link!("avifil32.dll" "cdecl" fn AVISaveW(szfile : windows_core::PCWSTR, pclsidhandler : *const windows_core::GUID, lpfncallback : AVISAVECALLBACK, nstreams : i32, pfile : * mut core::ffi::c_void, lpoptions : *const AVICOMPRESSOPTIONS) -> windows_core::HRESULT); - AVISaveW(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfncallback), core::mem::transmute(nstreams), pfile.param().abi(), core::mem::transmute(lpoptions)).ok() + AVISaveW(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed())), lpfncallback, nstreams, pfile.param().abi(), lpoptions).ok() } #[inline] pub unsafe fn AVIStreamAddRef(pavi: P0) -> u32 @@ -210,12 +210,12 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamBeginStreaming(pavi : * mut core::ffi::c_void, lstart : i32, lend : i32, lrate : i32) -> windows_core::HRESULT); - AVIStreamBeginStreaming(pavi.param().abi(), core::mem::transmute(lstart), core::mem::transmute(lend), core::mem::transmute(lrate)).ok() + AVIStreamBeginStreaming(pavi.param().abi(), lstart, lend, lrate).ok() } #[inline] pub unsafe fn AVIStreamCreate(ppavi: *mut Option, lparam1: i32, lparam2: i32, pclsidhandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> { windows_targets::link!("avifil32.dll" "system" fn AVIStreamCreate(ppavi : *mut * mut core::ffi::c_void, lparam1 : i32, lparam2 : i32, pclsidhandler : *const windows_core::GUID) -> windows_core::HRESULT); - AVIStreamCreate(core::mem::transmute(ppavi), core::mem::transmute(lparam1), core::mem::transmute(lparam2), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() + AVIStreamCreate(core::mem::transmute(ppavi), lparam1, lparam2, core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIStreamEndStreaming(pavi: P0) -> windows_core::Result<()> @@ -231,7 +231,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamFindSample(pavi : * mut core::ffi::c_void, lpos : i32, lflags : i32) -> i32); - AVIStreamFindSample(pavi.param().abi(), core::mem::transmute(lpos), core::mem::transmute(lflags)) + AVIStreamFindSample(pavi.param().abi(), lpos, lflags) } #[inline] pub unsafe fn AVIStreamGetFrame(pg: P0, lpos: i32) -> *mut core::ffi::c_void @@ -239,7 +239,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamGetFrame(pg : * mut core::ffi::c_void, lpos : i32) -> *mut core::ffi::c_void); - AVIStreamGetFrame(pg.param().abi(), core::mem::transmute(lpos)) + AVIStreamGetFrame(pg.param().abi(), lpos) } #[inline] pub unsafe fn AVIStreamGetFrameClose(pg: P0) -> windows_core::Result<()> @@ -264,7 +264,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamInfoA(pavi : * mut core::ffi::c_void, psi : *mut AVISTREAMINFOA, lsize : i32) -> windows_core::HRESULT); - AVIStreamInfoA(pavi.param().abi(), core::mem::transmute(psi), core::mem::transmute(lsize)).ok() + AVIStreamInfoA(pavi.param().abi(), core::mem::transmute(psi), lsize).ok() } #[inline] pub unsafe fn AVIStreamInfoW(pavi: P0, psi: *mut AVISTREAMINFOW, lsize: i32) -> windows_core::Result<()> @@ -272,7 +272,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamInfoW(pavi : * mut core::ffi::c_void, psi : *mut AVISTREAMINFOW, lsize : i32) -> windows_core::HRESULT); - AVIStreamInfoW(pavi.param().abi(), core::mem::transmute(psi), core::mem::transmute(lsize)).ok() + AVIStreamInfoW(pavi.param().abi(), core::mem::transmute(psi), lsize).ok() } #[inline] pub unsafe fn AVIStreamLength(pavi: P0) -> i32 @@ -288,7 +288,7 @@ where P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamOpenFromFileA(ppavi : *mut * mut core::ffi::c_void, szfile : windows_core::PCSTR, fcctype : u32, lparam : i32, mode : u32, pclsidhandler : *const windows_core::GUID) -> windows_core::HRESULT); - AVIStreamOpenFromFileA(core::mem::transmute(ppavi), szfile.param().abi(), core::mem::transmute(fcctype), core::mem::transmute(lparam), core::mem::transmute(mode), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() + AVIStreamOpenFromFileA(core::mem::transmute(ppavi), szfile.param().abi(), fcctype, lparam, mode, core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIStreamOpenFromFileW(ppavi: *mut Option, szfile: P1, fcctype: u32, lparam: i32, mode: u32, pclsidhandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> @@ -296,7 +296,7 @@ where P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamOpenFromFileW(ppavi : *mut * mut core::ffi::c_void, szfile : windows_core::PCWSTR, fcctype : u32, lparam : i32, mode : u32, pclsidhandler : *const windows_core::GUID) -> windows_core::HRESULT); - AVIStreamOpenFromFileW(core::mem::transmute(ppavi), szfile.param().abi(), core::mem::transmute(fcctype), core::mem::transmute(lparam), core::mem::transmute(mode), core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() + AVIStreamOpenFromFileW(core::mem::transmute(ppavi), szfile.param().abi(), fcctype, lparam, mode, core::mem::transmute(pclsidhandler.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIStreamRead(pavi: P0, lstart: i32, lsamples: i32, lpbuffer: Option<*mut core::ffi::c_void>, cbbuffer: i32, plbytes: Option<*mut i32>, plsamples: Option<*mut i32>) -> windows_core::Result<()> @@ -304,7 +304,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamRead(pavi : * 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); - AVIStreamRead(pavi.param().abi(), core::mem::transmute(lstart), core::mem::transmute(lsamples), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer), core::mem::transmute(plbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsamples.unwrap_or(core::mem::zeroed()))).ok() + AVIStreamRead(pavi.param().abi(), lstart, lsamples, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), cbbuffer, core::mem::transmute(plbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsamples.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIStreamReadData(pavi: P0, fcc: u32, lp: Option<*mut core::ffi::c_void>, lpcb: *mut i32) -> windows_core::Result<()> @@ -312,7 +312,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamReadData(pavi : * mut core::ffi::c_void, fcc : u32, lp : *mut core::ffi::c_void, lpcb : *mut i32) -> windows_core::HRESULT); - AVIStreamReadData(pavi.param().abi(), core::mem::transmute(fcc), core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcb)).ok() + AVIStreamReadData(pavi.param().abi(), fcc, core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcb)).ok() } #[inline] pub unsafe fn AVIStreamReadFormat(pavi: P0, lpos: i32, lpformat: Option<*mut core::ffi::c_void>, lpcbformat: *mut i32) -> windows_core::Result<()> @@ -320,7 +320,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamReadFormat(pavi : * mut core::ffi::c_void, lpos : i32, lpformat : *mut core::ffi::c_void, lpcbformat : *mut i32) -> windows_core::HRESULT); - AVIStreamReadFormat(pavi.param().abi(), core::mem::transmute(lpos), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbformat)).ok() + AVIStreamReadFormat(pavi.param().abi(), lpos, core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbformat)).ok() } #[inline] pub unsafe fn AVIStreamRelease(pavi: P0) -> u32 @@ -336,7 +336,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamSampleToTime(pavi : * mut core::ffi::c_void, lsample : i32) -> i32); - AVIStreamSampleToTime(pavi.param().abi(), core::mem::transmute(lsample)) + AVIStreamSampleToTime(pavi.param().abi(), lsample) } #[inline] pub unsafe fn AVIStreamSetFormat(pavi: P0, lpos: i32, lpformat: *const core::ffi::c_void, cbformat: i32) -> windows_core::Result<()> @@ -344,7 +344,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamSetFormat(pavi : * mut core::ffi::c_void, lpos : i32, lpformat : *const core::ffi::c_void, cbformat : i32) -> windows_core::HRESULT); - AVIStreamSetFormat(pavi.param().abi(), core::mem::transmute(lpos), core::mem::transmute(lpformat), core::mem::transmute(cbformat)).ok() + AVIStreamSetFormat(pavi.param().abi(), lpos, lpformat, cbformat).ok() } #[inline] pub unsafe fn AVIStreamStart(pavi: P0) -> i32 @@ -360,7 +360,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamTimeToSample(pavi : * mut core::ffi::c_void, ltime : i32) -> i32); - AVIStreamTimeToSample(pavi.param().abi(), core::mem::transmute(ltime)) + AVIStreamTimeToSample(pavi.param().abi(), ltime) } #[inline] pub unsafe fn AVIStreamWrite(pavi: P0, lstart: i32, lsamples: i32, lpbuffer: *const core::ffi::c_void, cbbuffer: i32, dwflags: u32, plsampwritten: Option<*mut i32>, plbyteswritten: Option<*mut i32>) -> windows_core::Result<()> @@ -368,7 +368,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamWrite(pavi : * 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); - AVIStreamWrite(pavi.param().abi(), core::mem::transmute(lstart), core::mem::transmute(lsamples), core::mem::transmute(lpbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(dwflags), core::mem::transmute(plsampwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(plbyteswritten.unwrap_or(core::mem::zeroed()))).ok() + AVIStreamWrite(pavi.param().abi(), lstart, lsamples, lpbuffer, cbbuffer, dwflags, core::mem::transmute(plsampwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(plbyteswritten.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AVIStreamWriteData(pavi: P0, fcc: u32, lp: *const core::ffi::c_void, cb: i32) -> windows_core::Result<()> @@ -376,12 +376,12 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamWriteData(pavi : * mut core::ffi::c_void, fcc : u32, lp : *const core::ffi::c_void, cb : i32) -> windows_core::HRESULT); - AVIStreamWriteData(pavi.param().abi(), core::mem::transmute(fcc), core::mem::transmute(lp), core::mem::transmute(cb)).ok() + AVIStreamWriteData(pavi.param().abi(), fcc, lp, cb).ok() } #[inline] pub unsafe fn CloseDriver(hdriver: HDRVR, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("winmm.dll" "system" fn CloseDriver(hdriver : HDRVR, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - CloseDriver(core::mem::transmute(hdriver), core::mem::transmute(lparam1), core::mem::transmute(lparam2)) + CloseDriver(hdriver, lparam1, lparam2) } #[inline] pub unsafe fn CreateEditableStream(ppseditable: *mut Option, pssource: P1) -> windows_core::Result<()> @@ -394,47 +394,47 @@ where #[inline] pub unsafe fn DefDriverProc(dwdriveridentifier: usize, hdrvr: HDRVR, umsg: u32, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("winmm.dll" "system" fn DefDriverProc(dwdriveridentifier : usize, hdrvr : HDRVR, umsg : u32, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefDriverProc(core::mem::transmute(dwdriveridentifier), core::mem::transmute(hdrvr), core::mem::transmute(umsg), core::mem::transmute(lparam1), core::mem::transmute(lparam2)) + DefDriverProc(dwdriveridentifier, hdrvr, umsg, lparam1, lparam2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibBegin(hdd: isize, hdc: Option, dxdst: i32, dydst: i32, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, dxsrc: i32, dysrc: i32, wflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibBegin(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, dxsrc : i32, dysrc : i32, wflags : u32) -> super::super::Foundation:: BOOL); - DrawDibBegin(core::mem::transmute(hdd), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dxdst), core::mem::transmute(dydst), core::mem::transmute(lpbi), core::mem::transmute(dxsrc), core::mem::transmute(dysrc), core::mem::transmute(wflags)) + DrawDibBegin(hdd, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), dxdst, dydst, lpbi, dxsrc, dysrc, wflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibChangePalette(hdd: isize, istart: i32, lppe: &[super::super::Graphics::Gdi::PALETTEENTRY]) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibChangePalette(hdd : isize, istart : i32, ilen : i32, lppe : *const super::super::Graphics::Gdi:: PALETTEENTRY) -> super::super::Foundation:: BOOL); - DrawDibChangePalette(core::mem::transmute(hdd), core::mem::transmute(istart), lppe.len().try_into().unwrap(), core::mem::transmute(lppe.as_ptr())) + DrawDibChangePalette(hdd, istart, lppe.len().try_into().unwrap(), core::mem::transmute(lppe.as_ptr())) } #[inline] pub unsafe fn DrawDibClose(hdd: isize) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibClose(hdd : isize) -> super::super::Foundation:: BOOL); - DrawDibClose(core::mem::transmute(hdd)) + DrawDibClose(hdd) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibDraw(hdd: isize, hdc: super::super::Graphics::Gdi::HDC, xdst: i32, ydst: i32, dxdst: i32, dydst: i32, lpbi: Option<*const super::super::Graphics::Gdi::BITMAPINFOHEADER>, lpbits: Option<*const core::ffi::c_void>, xsrc: i32, ysrc: i32, dxsrc: i32, dysrc: i32, wflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibDraw(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, xdst : i32, ydst : i32, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbits : *const core::ffi::c_void, xsrc : i32, ysrc : i32, dxsrc : i32, dysrc : i32, wflags : u32) -> super::super::Foundation:: BOOL); - DrawDibDraw(core::mem::transmute(hdd), core::mem::transmute(hdc), core::mem::transmute(xdst), core::mem::transmute(ydst), core::mem::transmute(dxdst), core::mem::transmute(dydst), core::mem::transmute(lpbi.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(dxsrc), core::mem::transmute(dysrc), core::mem::transmute(wflags)) + DrawDibDraw(hdd, hdc, xdst, ydst, dxdst, dydst, core::mem::transmute(lpbi.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed())), xsrc, ysrc, dxsrc, dysrc, wflags) } #[inline] pub unsafe fn DrawDibEnd(hdd: isize) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibEnd(hdd : isize) -> super::super::Foundation:: BOOL); - DrawDibEnd(core::mem::transmute(hdd)) + DrawDibEnd(hdd) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibGetBuffer(hdd: isize, lpbi: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER, dwsize: u32, dwflags: u32) -> *mut core::ffi::c_void { windows_targets::link!("msvfw32.dll" "system" fn DrawDibGetBuffer(hdd : isize, lpbi : *mut super::super::Graphics::Gdi:: BITMAPINFOHEADER, dwsize : u32, dwflags : u32) -> *mut core::ffi::c_void); - DrawDibGetBuffer(core::mem::transmute(hdd), core::mem::transmute(lpbi), core::mem::transmute(dwsize), core::mem::transmute(dwflags)) + DrawDibGetBuffer(hdd, core::mem::transmute(lpbi), dwsize, dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibGetPalette(hdd: isize) -> super::super::Graphics::Gdi::HPALETTE { windows_targets::link!("msvfw32.dll" "system" fn DrawDibGetPalette(hdd : isize) -> super::super::Graphics::Gdi:: HPALETTE); - DrawDibGetPalette(core::mem::transmute(hdd)) + DrawDibGetPalette(hdd) } #[inline] pub unsafe fn DrawDibOpen() -> isize { @@ -445,44 +445,44 @@ pub unsafe fn DrawDibOpen() -> isize { #[inline] pub unsafe fn DrawDibProfileDisplay(lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER) -> super::super::Foundation::LRESULT { windows_targets::link!("msvfw32.dll" "system" fn DrawDibProfileDisplay(lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER) -> super::super::Foundation:: LRESULT); - DrawDibProfileDisplay(core::mem::transmute(lpbi)) + DrawDibProfileDisplay(lpbi) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibRealize(hdd: isize, hdc: super::super::Graphics::Gdi::HDC, fbackground: bool) -> u32 { windows_targets::link!("msvfw32.dll" "system" fn DrawDibRealize(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, fbackground : super::super::Foundation:: BOOL) -> u32); - DrawDibRealize(core::mem::transmute(hdd), core::mem::transmute(hdc), fbackground.into()) + DrawDibRealize(hdd, hdc, fbackground.into()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibSetPalette(hdd: isize, hpal: Option) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibSetPalette(hdd : isize, hpal : super::super::Graphics::Gdi:: HPALETTE) -> super::super::Foundation:: BOOL); - DrawDibSetPalette(core::mem::transmute(hdd), core::mem::transmute(hpal.unwrap_or(core::mem::zeroed()))) + DrawDibSetPalette(hdd, core::mem::transmute(hpal.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DrawDibStart(hdd: isize, rate: u32) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibStart(hdd : isize, rate : u32) -> super::super::Foundation:: BOOL); - DrawDibStart(core::mem::transmute(hdd), core::mem::transmute(rate)) + DrawDibStart(hdd, rate) } #[inline] pub unsafe fn DrawDibStop(hdd: isize) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibStop(hdd : isize) -> super::super::Foundation:: BOOL); - DrawDibStop(core::mem::transmute(hdd)) + DrawDibStop(hdd) } #[inline] pub unsafe fn DrawDibTime(hdd: isize, lpddtime: *mut DRAWDIBTIME) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn DrawDibTime(hdd : isize, lpddtime : *mut DRAWDIBTIME) -> super::super::Foundation:: BOOL); - DrawDibTime(core::mem::transmute(hdd), core::mem::transmute(lpddtime)) + DrawDibTime(hdd, core::mem::transmute(lpddtime)) } #[inline] pub unsafe fn DriverCallback(dwcallback: usize, dwflags: u32, hdevice: HDRVR, dwmsg: u32, dwuser: usize, dwparam1: usize, dwparam2: usize) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn DriverCallback(dwcallback : usize, dwflags : u32, hdevice : HDRVR, dwmsg : u32, dwuser : usize, dwparam1 : usize, dwparam2 : usize) -> super::super::Foundation:: BOOL); - DriverCallback(core::mem::transmute(dwcallback), core::mem::transmute(dwflags), core::mem::transmute(hdevice), core::mem::transmute(dwmsg), core::mem::transmute(dwuser), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2)) + DriverCallback(dwcallback, dwflags, hdevice, dwmsg, dwuser, dwparam1, dwparam2) } #[inline] pub unsafe fn DrvGetModuleHandle(hdriver: HDRVR) -> super::super::Foundation::HMODULE { windows_targets::link!("winmm.dll" "system" fn DrvGetModuleHandle(hdriver : HDRVR) -> super::super::Foundation:: HMODULE); - DrvGetModuleHandle(core::mem::transmute(hdriver)) + DrvGetModuleHandle(hdriver) } #[inline] pub unsafe fn EditStreamClone(pavi: P0) -> windows_core::Result @@ -516,7 +516,7 @@ where P3: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamPaste(pavi : * mut core::ffi::c_void, plpos : *mut i32, pllength : *mut i32, pstream : * mut core::ffi::c_void, lstart : i32, lend : i32) -> windows_core::HRESULT); - EditStreamPaste(pavi.param().abi(), core::mem::transmute(plpos), core::mem::transmute(pllength), pstream.param().abi(), core::mem::transmute(lstart), core::mem::transmute(lend)).ok() + EditStreamPaste(pavi.param().abi(), core::mem::transmute(plpos), core::mem::transmute(pllength), pstream.param().abi(), lstart, lend).ok() } #[inline] pub unsafe fn EditStreamSetInfoA(pavi: P0, lpinfo: *const AVISTREAMINFOA, cbinfo: i32) -> windows_core::Result<()> @@ -524,7 +524,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamSetInfoA(pavi : * mut core::ffi::c_void, lpinfo : *const AVISTREAMINFOA, cbinfo : i32) -> windows_core::HRESULT); - EditStreamSetInfoA(pavi.param().abi(), core::mem::transmute(lpinfo), core::mem::transmute(cbinfo)).ok() + EditStreamSetInfoA(pavi.param().abi(), lpinfo, cbinfo).ok() } #[inline] pub unsafe fn EditStreamSetInfoW(pavi: P0, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::Result<()> @@ -532,7 +532,7 @@ where P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamSetInfoW(pavi : * mut core::ffi::c_void, lpinfo : *const AVISTREAMINFOW, cbinfo : i32) -> windows_core::HRESULT); - EditStreamSetInfoW(pavi.param().abi(), core::mem::transmute(lpinfo), core::mem::transmute(cbinfo)).ok() + EditStreamSetInfoW(pavi.param().abi(), lpinfo, cbinfo).ok() } #[inline] pub unsafe fn EditStreamSetNameA(pavi: P0, lpszname: P1) -> windows_core::Result<()> @@ -555,7 +555,7 @@ where #[inline] pub unsafe fn GetDriverModuleHandle(hdriver: HDRVR) -> super::super::Foundation::HMODULE { windows_targets::link!("winmm.dll" "system" fn GetDriverModuleHandle(hdriver : HDRVR) -> super::super::Foundation:: HMODULE); - GetDriverModuleHandle(core::mem::transmute(hdriver)) + GetDriverModuleHandle(hdriver) } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] @@ -584,27 +584,13 @@ pub unsafe fn GetSaveFileNamePreviewW(lpofn: *mut super::super::UI::Controls::Di #[inline] pub unsafe fn ICClose(hic: HIC) -> super::super::Foundation::LRESULT { windows_targets::link!("msvfw32.dll" "system" fn ICClose(hic : HIC) -> super::super::Foundation:: LRESULT); - ICClose(core::mem::transmute(hic)) + ICClose(hic) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICCompress(hic: HIC, dwflags: u32, lpbioutput: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpdata: *mut core::ffi::c_void, lpbiinput: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbits: *const core::ffi::c_void, lpckid: Option<*mut u32>, lpdwflags: Option<*mut u32>, lframenum: i32, dwframesize: u32, dwquality: u32, lpbiprev: Option<*const super::super::Graphics::Gdi::BITMAPINFOHEADER>, lpprev: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("msvfw32.dll" "cdecl" fn ICCompress(hic : HIC, dwflags : u32, lpbioutput : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpdata : *mut core::ffi::c_void, lpbiinput : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbits : *const core::ffi::c_void, lpckid : *mut u32, lpdwflags : *mut u32, lframenum : i32, dwframesize : u32, dwquality : u32, lpbiprev : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpprev : *const core::ffi::c_void) -> u32); - ICCompress( - core::mem::transmute(hic), - core::mem::transmute(dwflags), - core::mem::transmute(lpbioutput), - core::mem::transmute(lpdata), - core::mem::transmute(lpbiinput), - core::mem::transmute(lpbits), - core::mem::transmute(lpckid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpdwflags.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lframenum), - core::mem::transmute(dwframesize), - core::mem::transmute(dwquality), - core::mem::transmute(lpbiprev.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpprev.unwrap_or(core::mem::zeroed())), - ) + ICCompress(hic, dwflags, lpbioutput, core::mem::transmute(lpdata), lpbiinput, lpbits, core::mem::transmute(lpckid.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwflags.unwrap_or(core::mem::zeroed())), lframenum, dwframesize, dwquality, core::mem::transmute(lpbiprev.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpprev.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -613,75 +599,58 @@ where P5: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn ICCompressorChoose(hwnd : super::super::Foundation:: HWND, uiflags : u32, pvin : *const core::ffi::c_void, lpdata : *const core::ffi::c_void, pc : *mut COMPVARS, lpsztitle : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ICCompressorChoose(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(uiflags), core::mem::transmute(pvin.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pc), lpsztitle.param().abi()) + ICCompressorChoose(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), uiflags, core::mem::transmute(pvin.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pc), lpsztitle.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICCompressorFree(pc: *const COMPVARS) { windows_targets::link!("msvfw32.dll" "system" fn ICCompressorFree(pc : *const COMPVARS)); - ICCompressorFree(core::mem::transmute(pc)) + ICCompressorFree(pc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICDecompress(hic: HIC, dwflags: u32, lpbiformat: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpdata: *const core::ffi::c_void, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbits: *mut core::ffi::c_void) -> u32 { windows_targets::link!("msvfw32.dll" "cdecl" fn ICDecompress(hic : HIC, dwflags : u32, lpbiformat : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpdata : *const core::ffi::c_void, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbits : *mut core::ffi::c_void) -> u32); - ICDecompress(core::mem::transmute(hic), core::mem::transmute(dwflags), core::mem::transmute(lpbiformat), core::mem::transmute(lpdata), core::mem::transmute(lpbi), core::mem::transmute(lpbits)) + ICDecompress(hic, dwflags, lpbiformat, lpdata, lpbi, core::mem::transmute(lpbits)) } #[inline] pub unsafe fn ICDraw(hic: HIC, dwflags: u32, lpformat: *const core::ffi::c_void, lpdata: Option<*const core::ffi::c_void>, cbdata: u32, ltime: i32) -> u32 { windows_targets::link!("msvfw32.dll" "cdecl" fn ICDraw(hic : HIC, dwflags : u32, lpformat : *const core::ffi::c_void, lpdata : *const core::ffi::c_void, cbdata : u32, ltime : i32) -> u32); - ICDraw(core::mem::transmute(hic), core::mem::transmute(dwflags), core::mem::transmute(lpformat), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata), core::mem::transmute(ltime)) + ICDraw(hic, dwflags, lpformat, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), cbdata, ltime) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICDrawBegin(hic: HIC, dwflags: u32, hpal: Option, hwnd: Option, hdc: Option, xdst: i32, ydst: i32, dxdst: i32, dydst: i32, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, xsrc: i32, ysrc: i32, dxsrc: i32, dysrc: i32, dwrate: u32, dwscale: u32) -> u32 { windows_targets::link!("msvfw32.dll" "cdecl" fn ICDrawBegin(hic : HIC, dwflags : u32, hpal : super::super::Graphics::Gdi:: HPALETTE, hwnd : super::super::Foundation:: HWND, hdc : super::super::Graphics::Gdi:: HDC, xdst : i32, ydst : i32, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, xsrc : i32, ysrc : i32, dxsrc : i32, dysrc : i32, dwrate : u32, dwscale : u32) -> u32); - ICDrawBegin( - core::mem::transmute(hic), - core::mem::transmute(dwflags), - core::mem::transmute(hpal.unwrap_or(core::mem::zeroed())), - core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), - core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), - core::mem::transmute(xdst), - core::mem::transmute(ydst), - core::mem::transmute(dxdst), - core::mem::transmute(dydst), - core::mem::transmute(lpbi), - core::mem::transmute(xsrc), - core::mem::transmute(ysrc), - core::mem::transmute(dxsrc), - core::mem::transmute(dysrc), - core::mem::transmute(dwrate), - core::mem::transmute(dwscale), - ) + ICDrawBegin(hic, dwflags, core::mem::transmute(hpal.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), xdst, ydst, dxdst, dydst, lpbi, xsrc, ysrc, dxsrc, dysrc, dwrate, dwscale) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICGetDisplayFormat(hic: Option, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbiout: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER, bitdepth: i32, dx: i32, dy: i32) -> HIC { windows_targets::link!("msvfw32.dll" "system" fn ICGetDisplayFormat(hic : HIC, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbiout : *mut super::super::Graphics::Gdi:: BITMAPINFOHEADER, bitdepth : i32, dx : i32, dy : i32) -> HIC); - ICGetDisplayFormat(core::mem::transmute(hic.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbiin), core::mem::transmute(lpbiout), core::mem::transmute(bitdepth), core::mem::transmute(dx), core::mem::transmute(dy)) + ICGetDisplayFormat(core::mem::transmute(hic.unwrap_or(core::mem::zeroed())), lpbiin, core::mem::transmute(lpbiout), bitdepth, dx, dy) } #[inline] pub unsafe fn ICGetInfo(hic: HIC, picinfo: *mut ICINFO, cb: u32) -> super::super::Foundation::LRESULT { windows_targets::link!("msvfw32.dll" "system" fn ICGetInfo(hic : HIC, picinfo : *mut ICINFO, cb : u32) -> super::super::Foundation:: LRESULT); - ICGetInfo(core::mem::transmute(hic), core::mem::transmute(picinfo), core::mem::transmute(cb)) + ICGetInfo(hic, core::mem::transmute(picinfo), cb) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICImageCompress(hic: HIC, uiflags: u32, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFO, lpbits: *const core::ffi::c_void, lpbiout: Option<*const super::super::Graphics::Gdi::BITMAPINFO>, lquality: i32, plsize: Option<*mut i32>) -> super::super::Foundation::HANDLE { windows_targets::link!("msvfw32.dll" "system" fn ICImageCompress(hic : HIC, uiflags : u32, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFO, lpbits : *const core::ffi::c_void, lpbiout : *const super::super::Graphics::Gdi:: BITMAPINFO, lquality : i32, plsize : *mut i32) -> super::super::Foundation:: HANDLE); - ICImageCompress(core::mem::transmute(hic), core::mem::transmute(uiflags), core::mem::transmute(lpbiin), core::mem::transmute(lpbits), core::mem::transmute(lpbiout.unwrap_or(core::mem::zeroed())), core::mem::transmute(lquality), core::mem::transmute(plsize.unwrap_or(core::mem::zeroed()))) + ICImageCompress(hic, uiflags, lpbiin, lpbits, core::mem::transmute(lpbiout.unwrap_or(core::mem::zeroed())), lquality, core::mem::transmute(plsize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICImageDecompress(hic: Option, uiflags: u32, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFO, lpbits: *const core::ffi::c_void, lpbiout: Option<*const super::super::Graphics::Gdi::BITMAPINFO>) -> super::super::Foundation::HANDLE { windows_targets::link!("msvfw32.dll" "system" fn ICImageDecompress(hic : HIC, uiflags : u32, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFO, lpbits : *const core::ffi::c_void, lpbiout : *const super::super::Graphics::Gdi:: BITMAPINFO) -> super::super::Foundation:: HANDLE); - ICImageDecompress(core::mem::transmute(hic.unwrap_or(core::mem::zeroed())), core::mem::transmute(uiflags), core::mem::transmute(lpbiin), core::mem::transmute(lpbits), core::mem::transmute(lpbiout.unwrap_or(core::mem::zeroed()))) + ICImageDecompress(core::mem::transmute(hic.unwrap_or(core::mem::zeroed())), uiflags, lpbiin, lpbits, core::mem::transmute(lpbiout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ICInfo(fcctype: u32, fcchandler: u32, lpicinfo: *mut ICINFO) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn ICInfo(fcctype : u32, fcchandler : u32, lpicinfo : *mut ICINFO) -> super::super::Foundation:: BOOL); - ICInfo(core::mem::transmute(fcctype), core::mem::transmute(fcchandler), core::mem::transmute(lpicinfo)) + ICInfo(fcctype, fcchandler, core::mem::transmute(lpicinfo)) } #[inline] pub unsafe fn ICInstall(fcctype: u32, fcchandler: u32, lparam: super::super::Foundation::LPARAM, szdesc: P3, wflags: u32) -> super::super::Foundation::BOOL @@ -689,51 +658,51 @@ where P3: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn ICInstall(fcctype : u32, fcchandler : u32, lparam : super::super::Foundation:: LPARAM, szdesc : windows_core::PCSTR, wflags : u32) -> super::super::Foundation:: BOOL); - ICInstall(core::mem::transmute(fcctype), core::mem::transmute(fcchandler), core::mem::transmute(lparam), szdesc.param().abi(), core::mem::transmute(wflags)) + ICInstall(fcctype, fcchandler, lparam, szdesc.param().abi(), wflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICLocate(fcctype: u32, fcchandler: u32, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbiout: Option<*const super::super::Graphics::Gdi::BITMAPINFOHEADER>, wflags: u16) -> HIC { windows_targets::link!("msvfw32.dll" "system" fn ICLocate(fcctype : u32, fcchandler : u32, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbiout : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, wflags : u16) -> HIC); - ICLocate(core::mem::transmute(fcctype), core::mem::transmute(fcchandler), core::mem::transmute(lpbiin), core::mem::transmute(lpbiout.unwrap_or(core::mem::zeroed())), core::mem::transmute(wflags)) + ICLocate(fcctype, fcchandler, lpbiin, core::mem::transmute(lpbiout.unwrap_or(core::mem::zeroed())), wflags) } #[inline] pub unsafe fn ICOpen(fcctype: u32, fcchandler: u32, wmode: u32) -> HIC { windows_targets::link!("msvfw32.dll" "system" fn ICOpen(fcctype : u32, fcchandler : u32, wmode : u32) -> HIC); - ICOpen(core::mem::transmute(fcctype), core::mem::transmute(fcchandler), core::mem::transmute(wmode)) + ICOpen(fcctype, fcchandler, wmode) } #[inline] pub unsafe fn ICOpenFunction(fcctype: u32, fcchandler: u32, wmode: u32, lpfnhandler: super::super::Foundation::FARPROC) -> HIC { windows_targets::link!("msvfw32.dll" "system" fn ICOpenFunction(fcctype : u32, fcchandler : u32, wmode : u32, lpfnhandler : super::super::Foundation:: FARPROC) -> HIC); - ICOpenFunction(core::mem::transmute(fcctype), core::mem::transmute(fcchandler), core::mem::transmute(wmode), core::mem::transmute(lpfnhandler)) + ICOpenFunction(fcctype, fcchandler, wmode, lpfnhandler) } #[inline] pub unsafe fn ICRemove(fcctype: u32, fcchandler: u32, wflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn ICRemove(fcctype : u32, fcchandler : u32, wflags : u32) -> super::super::Foundation:: BOOL); - ICRemove(core::mem::transmute(fcctype), core::mem::transmute(fcchandler), core::mem::transmute(wflags)) + ICRemove(fcctype, fcchandler, wflags) } #[inline] pub unsafe fn ICSendMessage(hic: HIC, msg: u32, dw1: usize, dw2: usize) -> super::super::Foundation::LRESULT { windows_targets::link!("msvfw32.dll" "system" fn ICSendMessage(hic : HIC, msg : u32, dw1 : usize, dw2 : usize) -> super::super::Foundation:: LRESULT); - ICSendMessage(core::mem::transmute(hic), core::mem::transmute(msg), core::mem::transmute(dw1), core::mem::transmute(dw2)) + ICSendMessage(hic, msg, dw1, dw2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICSeqCompressFrame(pc: *const COMPVARS, uiflags: Option, lpbits: *const core::ffi::c_void, pfkey: *mut super::super::Foundation::BOOL, plsize: Option<*mut i32>) -> *mut core::ffi::c_void { windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrame(pc : *const COMPVARS, uiflags : u32, lpbits : *const core::ffi::c_void, pfkey : *mut super::super::Foundation:: BOOL, plsize : *mut i32) -> *mut core::ffi::c_void); - ICSeqCompressFrame(core::mem::transmute(pc), core::mem::transmute(uiflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbits), core::mem::transmute(pfkey), core::mem::transmute(plsize.unwrap_or(core::mem::zeroed()))) + ICSeqCompressFrame(pc, core::mem::transmute(uiflags.unwrap_or(core::mem::zeroed())), lpbits, core::mem::transmute(pfkey), core::mem::transmute(plsize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICSeqCompressFrameEnd(pc: *const COMPVARS) { windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrameEnd(pc : *const COMPVARS)); - ICSeqCompressFrameEnd(core::mem::transmute(pc)) + ICSeqCompressFrameEnd(pc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICSeqCompressFrameStart(pc: *const COMPVARS, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFO) -> super::super::Foundation::BOOL { windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrameStart(pc : *const COMPVARS, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFO) -> super::super::Foundation:: BOOL); - ICSeqCompressFrameStart(core::mem::transmute(pc), core::mem::transmute(lpbiin)) + ICSeqCompressFrameStart(pc, lpbiin) } #[inline] pub unsafe fn MCIWndCreateA(hwndparent: Option, hinstance: Option, dwstyle: u32, szfile: P3) -> super::super::Foundation::HWND @@ -741,7 +710,7 @@ where P3: windows_core::Param, { windows_targets::link!("msvfw32.dll" "cdecl" fn MCIWndCreateA(hwndparent : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, dwstyle : u32, szfile : windows_core::PCSTR) -> super::super::Foundation:: HWND); - MCIWndCreateA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstyle), szfile.param().abi()) + MCIWndCreateA(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), dwstyle, szfile.param().abi()) } #[inline] pub unsafe fn MCIWndCreateW(hwndparent: Option, hinstance: Option, dwstyle: u32, szfile: P3) -> super::super::Foundation::HWND @@ -749,7 +718,7 @@ where P3: windows_core::Param, { windows_targets::link!("msvfw32.dll" "cdecl" fn MCIWndCreateW(hwndparent : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, dwstyle : u32, szfile : windows_core::PCWSTR) -> super::super::Foundation:: HWND); - MCIWndCreateW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstyle), szfile.param().abi()) + MCIWndCreateW(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), dwstyle, szfile.param().abi()) } #[inline] pub unsafe fn MCIWndRegisterClass() -> super::super::Foundation::BOOL { @@ -763,12 +732,12 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn OpenDriver(szdrivername : windows_core::PCWSTR, szsectionname : windows_core::PCWSTR, lparam2 : super::super::Foundation:: LPARAM) -> HDRVR); - OpenDriver(szdrivername.param().abi(), szsectionname.param().abi(), core::mem::transmute(lparam2)) + OpenDriver(szdrivername.param().abi(), szsectionname.param().abi(), lparam2) } #[inline] pub unsafe fn SendDriverMessage(hdriver: HDRVR, message: u32, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("winmm.dll" "system" fn SendDriverMessage(hdriver : HDRVR, message : u32, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendDriverMessage(core::mem::transmute(hdriver), core::mem::transmute(message), core::mem::transmute(lparam1), core::mem::transmute(lparam2)) + SendDriverMessage(hdriver, message, lparam1, lparam2) } #[inline] pub unsafe fn VideoForWindowsVersion() -> u32 { @@ -781,7 +750,7 @@ where P0: windows_core::Param, { windows_targets::link!("avicap32.dll" "system" fn capCreateCaptureWindowA(lpszwindowname : windows_core::PCSTR, dwstyle : u32, x : i32, y : i32, nwidth : i32, nheight : i32, hwndparent : super::super::Foundation:: HWND, nid : i32) -> super::super::Foundation:: HWND); - capCreateCaptureWindowA(lpszwindowname.param().abi(), core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(nid)) + capCreateCaptureWindowA(lpszwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), nid) } #[inline] pub unsafe fn capCreateCaptureWindowW(lpszwindowname: P0, dwstyle: u32, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: Option, nid: i32) -> super::super::Foundation::HWND @@ -789,27 +758,27 @@ where P0: windows_core::Param, { windows_targets::link!("avicap32.dll" "system" fn capCreateCaptureWindowW(lpszwindowname : windows_core::PCWSTR, dwstyle : u32, x : i32, y : i32, nwidth : i32, nheight : i32, hwndparent : super::super::Foundation:: HWND, nid : i32) -> super::super::Foundation:: HWND); - capCreateCaptureWindowW(lpszwindowname.param().abi(), core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(nid)) + capCreateCaptureWindowW(lpszwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), nid) } #[inline] pub unsafe fn capGetDriverDescriptionA(wdriverindex: u32, lpszname: &mut [u8], lpszver: &mut [u8]) -> super::super::Foundation::BOOL { windows_targets::link!("avicap32.dll" "system" fn capGetDriverDescriptionA(wdriverindex : u32, lpszname : windows_core::PSTR, cbname : i32, lpszver : windows_core::PSTR, cbver : i32) -> super::super::Foundation:: BOOL); - capGetDriverDescriptionA(core::mem::transmute(wdriverindex), core::mem::transmute(lpszname.as_ptr()), lpszname.len().try_into().unwrap(), core::mem::transmute(lpszver.as_ptr()), lpszver.len().try_into().unwrap()) + capGetDriverDescriptionA(wdriverindex, core::mem::transmute(lpszname.as_ptr()), lpszname.len().try_into().unwrap(), core::mem::transmute(lpszver.as_ptr()), lpszver.len().try_into().unwrap()) } #[inline] pub unsafe fn capGetDriverDescriptionW(wdriverindex: u32, lpszname: &mut [u16], lpszver: &mut [u16]) -> super::super::Foundation::BOOL { windows_targets::link!("avicap32.dll" "system" fn capGetDriverDescriptionW(wdriverindex : u32, lpszname : windows_core::PWSTR, cbname : i32, lpszver : windows_core::PWSTR, cbver : i32) -> super::super::Foundation:: BOOL); - capGetDriverDescriptionW(core::mem::transmute(wdriverindex), core::mem::transmute(lpszname.as_ptr()), lpszname.len().try_into().unwrap(), core::mem::transmute(lpszver.as_ptr()), lpszver.len().try_into().unwrap()) + capGetDriverDescriptionW(wdriverindex, core::mem::transmute(lpszname.as_ptr()), lpszname.len().try_into().unwrap(), core::mem::transmute(lpszver.as_ptr()), lpszver.len().try_into().unwrap()) } #[inline] pub unsafe fn joyGetDevCapsA(ujoyid: usize, pjc: *mut JOYCAPSA, cbjc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyGetDevCapsA(ujoyid : usize, pjc : *mut JOYCAPSA, cbjc : u32) -> u32); - joyGetDevCapsA(core::mem::transmute(ujoyid), core::mem::transmute(pjc), core::mem::transmute(cbjc)) + joyGetDevCapsA(ujoyid, core::mem::transmute(pjc), cbjc) } #[inline] pub unsafe fn joyGetDevCapsW(ujoyid: usize, pjc: *mut JOYCAPSW, cbjc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyGetDevCapsW(ujoyid : usize, pjc : *mut JOYCAPSW, cbjc : u32) -> u32); - joyGetDevCapsW(core::mem::transmute(ujoyid), core::mem::transmute(pjc), core::mem::transmute(cbjc)) + joyGetDevCapsW(ujoyid, core::mem::transmute(pjc), cbjc) } #[inline] pub unsafe fn joyGetNumDevs() -> u32 { @@ -819,52 +788,52 @@ pub unsafe fn joyGetNumDevs() -> u32 { #[inline] pub unsafe fn joyGetPos(ujoyid: u32, pji: *mut JOYINFO) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyGetPos(ujoyid : u32, pji : *mut JOYINFO) -> u32); - joyGetPos(core::mem::transmute(ujoyid), core::mem::transmute(pji)) + joyGetPos(ujoyid, core::mem::transmute(pji)) } #[inline] pub unsafe fn joyGetPosEx(ujoyid: u32, pji: *mut JOYINFOEX) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyGetPosEx(ujoyid : u32, pji : *mut JOYINFOEX) -> u32); - joyGetPosEx(core::mem::transmute(ujoyid), core::mem::transmute(pji)) + joyGetPosEx(ujoyid, core::mem::transmute(pji)) } #[inline] pub unsafe fn joyGetThreshold(ujoyid: u32, puthreshold: *mut u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyGetThreshold(ujoyid : u32, puthreshold : *mut u32) -> u32); - joyGetThreshold(core::mem::transmute(ujoyid), core::mem::transmute(puthreshold)) + joyGetThreshold(ujoyid, core::mem::transmute(puthreshold)) } #[inline] pub unsafe fn joyReleaseCapture(ujoyid: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn joyReleaseCapture(ujoyid : u32) -> u32); - joyReleaseCapture(core::mem::transmute(ujoyid)) + joyReleaseCapture(ujoyid) } #[inline] pub unsafe fn joySetCapture(hwnd: super::super::Foundation::HWND, ujoyid: u32, uperiod: u32, fchanged: bool) -> u32 { windows_targets::link!("winmm.dll" "system" fn joySetCapture(hwnd : super::super::Foundation:: HWND, ujoyid : u32, uperiod : u32, fchanged : super::super::Foundation:: BOOL) -> u32); - joySetCapture(core::mem::transmute(hwnd), core::mem::transmute(ujoyid), core::mem::transmute(uperiod), fchanged.into()) + joySetCapture(hwnd, ujoyid, uperiod, fchanged.into()) } #[inline] pub unsafe fn joySetThreshold(ujoyid: u32, uthreshold: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn joySetThreshold(ujoyid : u32, uthreshold : u32) -> u32); - joySetThreshold(core::mem::transmute(ujoyid), core::mem::transmute(uthreshold)) + joySetThreshold(ujoyid, uthreshold) } #[inline] pub unsafe fn mciDriverNotify(hwndcallback: super::super::Foundation::HANDLE, wdeviceid: u32, ustatus: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mciDriverNotify(hwndcallback : super::super::Foundation:: HANDLE, wdeviceid : u32, ustatus : u32) -> super::super::Foundation:: BOOL); - mciDriverNotify(core::mem::transmute(hwndcallback), core::mem::transmute(wdeviceid), core::mem::transmute(ustatus)) + mciDriverNotify(hwndcallback, wdeviceid, ustatus) } #[inline] pub unsafe fn mciDriverYield(wdeviceid: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mciDriverYield(wdeviceid : u32) -> u32); - mciDriverYield(core::mem::transmute(wdeviceid)) + mciDriverYield(wdeviceid) } #[inline] pub unsafe fn mciFreeCommandResource(wtable: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mciFreeCommandResource(wtable : u32) -> super::super::Foundation:: BOOL); - mciFreeCommandResource(core::mem::transmute(wtable)) + mciFreeCommandResource(wtable) } #[inline] pub unsafe fn mciGetCreatorTask(mciid: u32) -> super::HTASK { windows_targets::link!("winmm.dll" "system" fn mciGetCreatorTask(mciid : u32) -> super:: HTASK); - mciGetCreatorTask(core::mem::transmute(mciid)) + mciGetCreatorTask(mciid) } #[inline] pub unsafe fn mciGetDeviceIDA(pszdevice: P0) -> u32 @@ -880,7 +849,7 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciGetDeviceIDFromElementIDA(dwelementid : u32, lpstrtype : windows_core::PCSTR) -> u32); - mciGetDeviceIDFromElementIDA(core::mem::transmute(dwelementid), lpstrtype.param().abi()) + mciGetDeviceIDFromElementIDA(dwelementid, lpstrtype.param().abi()) } #[inline] pub unsafe fn mciGetDeviceIDFromElementIDW(dwelementid: u32, lpstrtype: P1) -> u32 @@ -888,7 +857,7 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciGetDeviceIDFromElementIDW(dwelementid : u32, lpstrtype : windows_core::PCWSTR) -> u32); - mciGetDeviceIDFromElementIDW(core::mem::transmute(dwelementid), lpstrtype.param().abi()) + mciGetDeviceIDFromElementIDW(dwelementid, lpstrtype.param().abi()) } #[inline] pub unsafe fn mciGetDeviceIDW(pszdevice: P0) -> u32 @@ -901,22 +870,22 @@ where #[inline] pub unsafe fn mciGetDriverData(wdeviceid: u32) -> usize { windows_targets::link!("winmm.dll" "system" fn mciGetDriverData(wdeviceid : u32) -> usize); - mciGetDriverData(core::mem::transmute(wdeviceid)) + mciGetDriverData(wdeviceid) } #[inline] pub unsafe fn mciGetErrorStringA(mcierr: u32, psztext: &mut [u8]) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mciGetErrorStringA(mcierr : u32, psztext : windows_core::PSTR, cchtext : u32) -> super::super::Foundation:: BOOL); - mciGetErrorStringA(core::mem::transmute(mcierr), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + mciGetErrorStringA(mcierr, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn mciGetErrorStringW(mcierr: u32, psztext: &mut [u16]) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mciGetErrorStringW(mcierr : u32, psztext : windows_core::PWSTR, cchtext : u32) -> super::super::Foundation:: BOOL); - mciGetErrorStringW(core::mem::transmute(mcierr), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) + mciGetErrorStringW(mcierr, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } #[inline] pub unsafe fn mciGetYieldProc(mciid: u32, pdwyielddata: *const u32) -> YIELDPROC { windows_targets::link!("winmm.dll" "system" fn mciGetYieldProc(mciid : u32, pdwyielddata : *const u32) -> YIELDPROC); - mciGetYieldProc(core::mem::transmute(mciid), core::mem::transmute(pdwyielddata)) + mciGetYieldProc(mciid, pdwyielddata) } #[inline] pub unsafe fn mciLoadCommandResource(hinstance: super::super::Foundation::HANDLE, lpresname: P1, wtype: u32) -> u32 @@ -924,17 +893,17 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciLoadCommandResource(hinstance : super::super::Foundation:: HANDLE, lpresname : windows_core::PCWSTR, wtype : u32) -> u32); - mciLoadCommandResource(core::mem::transmute(hinstance), lpresname.param().abi(), core::mem::transmute(wtype)) + mciLoadCommandResource(hinstance, lpresname.param().abi(), wtype) } #[inline] pub unsafe fn mciSendCommandA(mciid: u32, umsg: u32, dwparam1: Option, dwparam2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn mciSendCommandA(mciid : u32, umsg : u32, dwparam1 : usize, dwparam2 : usize) -> u32); - mciSendCommandA(core::mem::transmute(mciid), core::mem::transmute(umsg), core::mem::transmute(dwparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwparam2.unwrap_or(core::mem::zeroed()))) + mciSendCommandA(mciid, umsg, core::mem::transmute(dwparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwparam2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn mciSendCommandW(mciid: u32, umsg: u32, dwparam1: Option, dwparam2: Option) -> u32 { windows_targets::link!("winmm.dll" "system" fn mciSendCommandW(mciid : u32, umsg : u32, dwparam1 : usize, dwparam2 : usize) -> u32); - mciSendCommandW(core::mem::transmute(mciid), core::mem::transmute(umsg), core::mem::transmute(dwparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwparam2.unwrap_or(core::mem::zeroed()))) + mciSendCommandW(mciid, umsg, core::mem::transmute(dwparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwparam2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn mciSendStringA(lpstrcommand: P0, lpstrreturnstring: Option<&mut [u8]>, hwndcallback: Option) -> u32 @@ -955,12 +924,12 @@ where #[inline] pub unsafe fn mciSetDriverData(wdeviceid: u32, dwdata: usize) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mciSetDriverData(wdeviceid : u32, dwdata : usize) -> super::super::Foundation:: BOOL); - mciSetDriverData(core::mem::transmute(wdeviceid), core::mem::transmute(dwdata)) + mciSetDriverData(wdeviceid, dwdata) } #[inline] pub unsafe fn mciSetYieldProc(mciid: u32, fpyieldproc: Option, dwyielddata: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mciSetYieldProc(mciid : u32, fpyieldproc : YIELDPROC, dwyielddata : u32) -> super::super::Foundation:: BOOL); - mciSetYieldProc(core::mem::transmute(mciid), core::mem::transmute(fpyieldproc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwyielddata)) + mciSetYieldProc(mciid, core::mem::transmute(fpyieldproc.unwrap_or(core::mem::zeroed())), dwyielddata) } #[inline] pub unsafe fn mmDrvInstall(hdriver: HDRVR, wszdrventry: P1, drvmessage: DRIVERMSGPROC, wflags: u32) -> u32 @@ -968,7 +937,7 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmDrvInstall(hdriver : HDRVR, wszdrventry : windows_core::PCWSTR, drvmessage : DRIVERMSGPROC, wflags : u32) -> u32); - mmDrvInstall(core::mem::transmute(hdriver), wszdrventry.param().abi(), core::mem::transmute(drvmessage), core::mem::transmute(wflags)) + mmDrvInstall(hdriver, wszdrventry.param().abi(), drvmessage, wflags) } #[inline] pub unsafe fn mmGetCurrentTask() -> u32 { @@ -978,17 +947,17 @@ pub unsafe fn mmGetCurrentTask() -> u32 { #[inline] pub unsafe fn mmTaskBlock(h: u32) { windows_targets::link!("winmm.dll" "system" fn mmTaskBlock(h : u32)); - mmTaskBlock(core::mem::transmute(h)) + mmTaskBlock(h) } #[inline] pub unsafe fn mmTaskCreate(lpfn: LPTASKCALLBACK, lph: *mut super::super::Foundation::HANDLE, dwinst: usize) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmTaskCreate(lpfn : LPTASKCALLBACK, lph : *mut super::super::Foundation:: HANDLE, dwinst : usize) -> u32); - mmTaskCreate(core::mem::transmute(lpfn), core::mem::transmute(lph), core::mem::transmute(dwinst)) + mmTaskCreate(lpfn, core::mem::transmute(lph), dwinst) } #[inline] pub unsafe fn mmTaskSignal(h: u32) -> super::super::Foundation::BOOL { windows_targets::link!("winmm.dll" "system" fn mmTaskSignal(h : u32) -> super::super::Foundation:: BOOL); - mmTaskSignal(core::mem::transmute(h)) + mmTaskSignal(h) } #[inline] pub unsafe fn mmTaskYield() { @@ -998,62 +967,62 @@ pub unsafe fn mmTaskYield() { #[inline] pub unsafe fn mmioAdvance(hmmio: HMMIO, pmmioinfo: Option<*const MMIOINFO>, fuadvance: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioAdvance(hmmio : HMMIO, pmmioinfo : *const MMIOINFO, fuadvance : u32) -> u32); - mmioAdvance(core::mem::transmute(hmmio), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(fuadvance)) + mmioAdvance(hmmio, core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), fuadvance) } #[inline] pub unsafe fn mmioAscend(hmmio: HMMIO, pmmcki: *const MMCKINFO, fuascend: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioAscend(hmmio : HMMIO, pmmcki : *const MMCKINFO, fuascend : u32) -> u32); - mmioAscend(core::mem::transmute(hmmio), core::mem::transmute(pmmcki), core::mem::transmute(fuascend)) + mmioAscend(hmmio, pmmcki, fuascend) } #[inline] pub unsafe fn mmioClose(hmmio: HMMIO, fuclose: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioClose(hmmio : HMMIO, fuclose : u32) -> u32); - mmioClose(core::mem::transmute(hmmio), core::mem::transmute(fuclose)) + mmioClose(hmmio, fuclose) } #[inline] pub unsafe fn mmioCreateChunk(hmmio: HMMIO, pmmcki: *const MMCKINFO, fucreate: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioCreateChunk(hmmio : HMMIO, pmmcki : *const MMCKINFO, fucreate : u32) -> u32); - mmioCreateChunk(core::mem::transmute(hmmio), core::mem::transmute(pmmcki), core::mem::transmute(fucreate)) + mmioCreateChunk(hmmio, pmmcki, fucreate) } #[inline] pub unsafe fn mmioDescend(hmmio: HMMIO, pmmcki: *mut MMCKINFO, pmmckiparent: Option<*const MMCKINFO>, fudescend: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioDescend(hmmio : HMMIO, pmmcki : *mut MMCKINFO, pmmckiparent : *const MMCKINFO, fudescend : u32) -> u32); - mmioDescend(core::mem::transmute(hmmio), core::mem::transmute(pmmcki), core::mem::transmute(pmmckiparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(fudescend)) + mmioDescend(hmmio, core::mem::transmute(pmmcki), core::mem::transmute(pmmckiparent.unwrap_or(core::mem::zeroed())), fudescend) } #[inline] pub unsafe fn mmioFlush(hmmio: HMMIO, fuflush: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioFlush(hmmio : HMMIO, fuflush : u32) -> u32); - mmioFlush(core::mem::transmute(hmmio), core::mem::transmute(fuflush)) + mmioFlush(hmmio, fuflush) } #[inline] pub unsafe fn mmioGetInfo(hmmio: HMMIO, pmmioinfo: *mut MMIOINFO, fuinfo: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioGetInfo(hmmio : HMMIO, pmmioinfo : *mut MMIOINFO, fuinfo : u32) -> u32); - mmioGetInfo(core::mem::transmute(hmmio), core::mem::transmute(pmmioinfo), core::mem::transmute(fuinfo)) + mmioGetInfo(hmmio, core::mem::transmute(pmmioinfo), fuinfo) } #[inline] pub unsafe fn mmioInstallIOProcA(fccioproc: u32, pioproc: Option, dwflags: u32) -> LPMMIOPROC { windows_targets::link!("winmm.dll" "system" fn mmioInstallIOProcA(fccioproc : u32, pioproc : LPMMIOPROC, dwflags : u32) -> LPMMIOPROC); - mmioInstallIOProcA(core::mem::transmute(fccioproc), core::mem::transmute(pioproc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + mmioInstallIOProcA(fccioproc, core::mem::transmute(pioproc.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn mmioInstallIOProcW(fccioproc: u32, pioproc: Option, dwflags: u32) -> LPMMIOPROC { windows_targets::link!("winmm.dll" "system" fn mmioInstallIOProcW(fccioproc : u32, pioproc : LPMMIOPROC, dwflags : u32) -> LPMMIOPROC); - mmioInstallIOProcW(core::mem::transmute(fccioproc), core::mem::transmute(pioproc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + mmioInstallIOProcW(fccioproc, core::mem::transmute(pioproc.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn mmioOpenA(pszfilename: Option<&mut [u8; 128]>, pmmioinfo: Option<*mut MMIOINFO>, fdwopen: u32) -> HMMIO { windows_targets::link!("winmm.dll" "system" fn mmioOpenA(pszfilename : windows_core::PSTR, pmmioinfo : *mut MMIOINFO, fdwopen : u32) -> HMMIO); - mmioOpenA(core::mem::transmute(pszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + mmioOpenA(core::mem::transmute(pszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn mmioOpenW(pszfilename: Option<&mut [u16; 128]>, pmmioinfo: Option<*mut MMIOINFO>, fdwopen: u32) -> HMMIO { windows_targets::link!("winmm.dll" "system" fn mmioOpenW(pszfilename : windows_core::PWSTR, pmmioinfo : *mut MMIOINFO, fdwopen : u32) -> HMMIO); - mmioOpenW(core::mem::transmute(pszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwopen)) + mmioOpenW(core::mem::transmute(pszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), fdwopen) } #[inline] pub unsafe fn mmioRead(hmmio: HMMIO, pch: &mut [u8]) -> i32 { windows_targets::link!("winmm.dll" "system" fn mmioRead(hmmio : HMMIO, pch : *mut i8, cch : i32) -> i32); - mmioRead(core::mem::transmute(hmmio), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()) + mmioRead(hmmio, core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()) } #[inline] pub unsafe fn mmioRenameA(pszfilename: P0, psznewfilename: P1, pmmioinfo: Option<*const MMIOINFO>, fdwrename: u32) -> u32 @@ -1062,7 +1031,7 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioRenameA(pszfilename : windows_core::PCSTR, psznewfilename : windows_core::PCSTR, pmmioinfo : *const MMIOINFO, fdwrename : u32) -> u32); - mmioRenameA(pszfilename.param().abi(), psznewfilename.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwrename)) + mmioRenameA(pszfilename.param().abi(), psznewfilename.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), fdwrename) } #[inline] pub unsafe fn mmioRenameW(pszfilename: P0, psznewfilename: P1, pmmioinfo: Option<*const MMIOINFO>, fdwrename: u32) -> u32 @@ -1071,27 +1040,27 @@ where P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioRenameW(pszfilename : windows_core::PCWSTR, psznewfilename : windows_core::PCWSTR, pmmioinfo : *const MMIOINFO, fdwrename : u32) -> u32); - mmioRenameW(pszfilename.param().abi(), psznewfilename.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdwrename)) + mmioRenameW(pszfilename.param().abi(), psznewfilename.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(core::mem::zeroed())), fdwrename) } #[inline] pub unsafe fn mmioSeek(hmmio: HMMIO, loffset: i32, iorigin: i32) -> i32 { windows_targets::link!("winmm.dll" "system" fn mmioSeek(hmmio : HMMIO, loffset : i32, iorigin : i32) -> i32); - mmioSeek(core::mem::transmute(hmmio), core::mem::transmute(loffset), core::mem::transmute(iorigin)) + mmioSeek(hmmio, loffset, iorigin) } #[inline] pub unsafe fn mmioSendMessage(hmmio: HMMIO, umsg: u32, lparam1: Option, lparam2: Option) -> super::super::Foundation::LRESULT { windows_targets::link!("winmm.dll" "system" fn mmioSendMessage(hmmio : HMMIO, umsg : u32, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - mmioSendMessage(core::mem::transmute(hmmio), core::mem::transmute(umsg), core::mem::transmute(lparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam2.unwrap_or(core::mem::zeroed()))) + mmioSendMessage(hmmio, umsg, core::mem::transmute(lparam1.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn mmioSetBuffer(hmmio: HMMIO, pchbuffer: Option<&mut [u8]>, fubuffer: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioSetBuffer(hmmio : HMMIO, pchbuffer : windows_core::PSTR, cchbuffer : i32, fubuffer : u32) -> u32); - mmioSetBuffer(core::mem::transmute(hmmio), core::mem::transmute(pchbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pchbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fubuffer)) + mmioSetBuffer(hmmio, core::mem::transmute(pchbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pchbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), fubuffer) } #[inline] pub unsafe fn mmioSetInfo(hmmio: HMMIO, pmmioinfo: *const MMIOINFO, fuinfo: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn mmioSetInfo(hmmio : HMMIO, pmmioinfo : *const MMIOINFO, fuinfo : u32) -> u32); - mmioSetInfo(core::mem::transmute(hmmio), core::mem::transmute(pmmioinfo), core::mem::transmute(fuinfo)) + mmioSetInfo(hmmio, pmmioinfo, fuinfo) } #[inline] pub unsafe fn mmioStringToFOURCCA(sz: P0, uflags: u32) -> u32 @@ -1099,7 +1068,7 @@ where P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioStringToFOURCCA(sz : windows_core::PCSTR, uflags : u32) -> u32); - mmioStringToFOURCCA(sz.param().abi(), core::mem::transmute(uflags)) + mmioStringToFOURCCA(sz.param().abi(), uflags) } #[inline] pub unsafe fn mmioStringToFOURCCW(sz: P0, uflags: u32) -> u32 @@ -1107,12 +1076,12 @@ where P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioStringToFOURCCW(sz : windows_core::PCWSTR, uflags : u32) -> u32); - mmioStringToFOURCCW(sz.param().abi(), core::mem::transmute(uflags)) + mmioStringToFOURCCW(sz.param().abi(), uflags) } #[inline] pub unsafe fn mmioWrite(hmmio: HMMIO, pch: &[u8]) -> i32 { windows_targets::link!("winmm.dll" "system" fn mmioWrite(hmmio : HMMIO, pch : windows_core::PCSTR, cch : i32) -> i32); - mmioWrite(core::mem::transmute(hmmio), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()) + mmioWrite(hmmio, core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()) } #[inline] pub unsafe fn sndOpenSound(eventname: P0, appname: P1, flags: i32, filehandle: *mut super::super::Foundation::HANDLE) -> i32 @@ -1121,7 +1090,7 @@ where P1: windows_core::Param, { windows_targets::link!("api-ms-win-mm-misc-l1-1-1.dll" "system" fn sndOpenSound(eventname : windows_core::PCWSTR, appname : windows_core::PCWSTR, flags : i32, filehandle : *mut super::super::Foundation:: HANDLE) -> i32); - sndOpenSound(eventname.param().abi(), appname.param().abi(), core::mem::transmute(flags), core::mem::transmute(filehandle)) + sndOpenSound(eventname.param().abi(), appname.param().abi(), flags, core::mem::transmute(filehandle)) } pub const ACMDM_BASE: u32 = 24576u32; pub const ACM_MPEG_COPYRIGHT: u32 = 2u32; @@ -2035,14 +2004,14 @@ impl IAVIEditStream { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self), core::mem::transmute(plpos), core::mem::transmute(pllength), pstream.param().abi(), core::mem::transmute(lstart), core::mem::transmute(lend)).ok() + (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self), core::mem::transmute(plpos), core::mem::transmute(pllength), pstream.param().abi(), lstart, lend).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetInfo(&self, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lpinfo), core::mem::transmute(cbinfo)).ok() + (windows_core::Interface::vtable(self).SetInfo)(windows_core::Interface::as_raw(self), lpinfo, cbinfo).ok() } } #[repr(C)] @@ -2107,25 +2076,25 @@ windows_core::imp::define_interface!(IAVIFile, IAVIFile_Vtbl, 0x00020020_0000_00 windows_core::imp::interface_hierarchy!(IAVIFile, windows_core::IUnknown); impl IAVIFile { pub unsafe fn Info(&self, pfi: *mut AVIFILEINFOW, lsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Info)(windows_core::Interface::as_raw(self), core::mem::transmute(pfi), core::mem::transmute(lsize)).ok() + (windows_core::Interface::vtable(self).Info)(windows_core::Interface::as_raw(self), core::mem::transmute(pfi), lsize).ok() } pub unsafe fn GetStream(&self, ppstream: *mut Option, fcctype: u32, lparam: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), core::mem::transmute(ppstream), core::mem::transmute(fcctype), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), core::mem::transmute(ppstream), fcctype, lparam).ok() } pub unsafe fn CreateStream(&self, ppstream: *mut Option, psi: *const AVISTREAMINFOW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), core::mem::transmute(ppstream), core::mem::transmute(psi)).ok() + (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), core::mem::transmute(ppstream), psi).ok() } pub unsafe fn WriteData(&self, ckid: u32, lpdata: *const core::ffi::c_void, cbdata: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(ckid), core::mem::transmute(lpdata), core::mem::transmute(cbdata)).ok() + (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), ckid, lpdata, cbdata).ok() } pub unsafe fn ReadData(&self, ckid: u32, lpdata: *mut core::ffi::c_void, lpcbdata: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadData)(windows_core::Interface::as_raw(self), core::mem::transmute(ckid), core::mem::transmute(lpdata), core::mem::transmute(lpcbdata)).ok() + (windows_core::Interface::vtable(self).ReadData)(windows_core::Interface::as_raw(self), ckid, core::mem::transmute(lpdata), core::mem::transmute(lpcbdata)).ok() } pub unsafe fn EndRecord(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndRecord)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DeleteStream(&self, fcctype: u32, lparam: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteStream)(windows_core::Interface::as_raw(self), core::mem::transmute(fcctype), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).DeleteStream)(windows_core::Interface::as_raw(self), fcctype, lparam).ok() } } #[repr(C)] @@ -2240,37 +2209,37 @@ windows_core::imp::define_interface!(IAVIStream, IAVIStream_Vtbl, 0x00020021_000 windows_core::imp::interface_hierarchy!(IAVIStream, windows_core::IUnknown); impl IAVIStream { pub unsafe fn Create(&self, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(lparam1), core::mem::transmute(lparam2)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), lparam1, lparam2).ok() } pub unsafe fn Info(&self, psi: *mut AVISTREAMINFOW, lsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Info)(windows_core::Interface::as_raw(self), core::mem::transmute(psi), core::mem::transmute(lsize)).ok() + (windows_core::Interface::vtable(self).Info)(windows_core::Interface::as_raw(self), core::mem::transmute(psi), lsize).ok() } pub unsafe fn FindSample(&self, lpos: i32, lflags: i32) -> i32 { - (windows_core::Interface::vtable(self).FindSample)(windows_core::Interface::as_raw(self), core::mem::transmute(lpos), core::mem::transmute(lflags)) + (windows_core::Interface::vtable(self).FindSample)(windows_core::Interface::as_raw(self), lpos, lflags) } pub unsafe fn ReadFormat(&self, lpos: i32, lpformat: Option<*mut core::ffi::c_void>, lpcbformat: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lpos), core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbformat)).ok() + (windows_core::Interface::vtable(self).ReadFormat)(windows_core::Interface::as_raw(self), lpos, core::mem::transmute(lpformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbformat)).ok() } pub unsafe fn SetFormat(&self, lpos: i32, lpformat: *const core::ffi::c_void, cbformat: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lpos), core::mem::transmute(lpformat), core::mem::transmute(cbformat)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), lpos, lpformat, cbformat).ok() } pub unsafe fn Read(&self, lstart: i32, lsamples: i32, lpbuffer: Option<*mut core::ffi::c_void>, cbbuffer: i32, plbytes: Option<*mut i32>, plsamples: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(lstart), core::mem::transmute(lsamples), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer), core::mem::transmute(plbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsamples.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), lstart, lsamples, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), cbbuffer, core::mem::transmute(plbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(plsamples.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Write(&self, lstart: i32, lsamples: i32, lpbuffer: *const core::ffi::c_void, cbbuffer: i32, dwflags: u32, plsampwritten: Option<*mut i32>, plbyteswritten: Option<*mut i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(lstart), core::mem::transmute(lsamples), core::mem::transmute(lpbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(dwflags), core::mem::transmute(plsampwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(plbyteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), lstart, lsamples, lpbuffer, cbbuffer, dwflags, core::mem::transmute(plsampwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(plbyteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Delete(&self, lstart: i32, lsamples: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(lstart), core::mem::transmute(lsamples)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), lstart, lsamples).ok() } pub unsafe fn ReadData(&self, fcc: u32, lp: Option<*mut core::ffi::c_void>, lpcb: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadData)(windows_core::Interface::as_raw(self), core::mem::transmute(fcc), core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcb)).ok() + (windows_core::Interface::vtable(self).ReadData)(windows_core::Interface::as_raw(self), fcc, core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcb)).ok() } pub unsafe fn WriteData(&self, fcc: u32, lp: *const core::ffi::c_void, cb: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(fcc), core::mem::transmute(lp), core::mem::transmute(cb)).ok() + (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), fcc, lp, cb).ok() } pub unsafe fn SetInfo(&self, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lpinfo), core::mem::transmute(cbinfo)).ok() + (windows_core::Interface::vtable(self).SetInfo)(windows_core::Interface::as_raw(self), lpinfo, cbinfo).ok() } } #[repr(C)] @@ -2371,7 +2340,7 @@ windows_core::imp::define_interface!(IAVIStreaming, IAVIStreaming_Vtbl, 0x000200 windows_core::imp::interface_hierarchy!(IAVIStreaming, windows_core::IUnknown); impl IAVIStreaming { pub unsafe fn Begin(&self, lstart: i32, lend: i32, lrate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), core::mem::transmute(lstart), core::mem::transmute(lend), core::mem::transmute(lrate)).ok() + (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), lstart, lend, lrate).ok() } pub unsafe fn End(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self)).ok() @@ -2818,17 +2787,17 @@ windows_core::imp::define_interface!(IGetFrame, IGetFrame_Vtbl, 0x00020023_0000_ windows_core::imp::interface_hierarchy!(IGetFrame, windows_core::IUnknown); impl IGetFrame { pub unsafe fn GetFrame(&self, lpos: i32) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).GetFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(lpos)) + (windows_core::Interface::vtable(self).GetFrame)(windows_core::Interface::as_raw(self), lpos) } pub unsafe fn Begin(&self, lstart: i32, lend: i32, lrate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), core::mem::transmute(lstart), core::mem::transmute(lend), core::mem::transmute(lrate)).ok() + (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), lstart, lend, lrate).ok() } pub unsafe fn End(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFormat(&self, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbits: Option<*const core::ffi::c_void>, x: i32, y: i32, dx: i32, dy: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbi), core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed())), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(dx), core::mem::transmute(dy)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), lpbi, core::mem::transmute(lpbits.unwrap_or(core::mem::zeroed())), x, y, dx, dy).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs index 2069af73f1..5504023e7e 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs @@ -120,7 +120,7 @@ impl IPhotoAcquireDeviceSelectionDialog { (windows_core::Interface::vtable(self).SetSubmitButtonText)(windows_core::Interface::as_raw(self), pszsubmitbuttontext.param().abi()).ok() } pub unsafe fn DoModal(&self, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: Option<*mut windows_core::BSTR>, pndevicetype: Option<*mut DEVICE_SELECTION_DEVICE_TYPE>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(dwdeviceflags), core::mem::transmute(pbstrdeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pndevicetype.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), hwndparent, dwdeviceflags, core::mem::transmute(pbstrdeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pndevicetype.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -176,11 +176,11 @@ impl IPhotoAcquireItem { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, key: *const super::super::Foundation::PROPERTYKEY, pv: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(pv)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), key, core::mem::transmute(pv)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStream(&self) -> windows_core::Result { @@ -200,7 +200,7 @@ impl IPhotoAcquireItem { } pub unsafe fn GetSubItemAt(&self, nitemindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubItemAt)(windows_core::Interface::as_raw(self), core::mem::transmute(nitemindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubItemAt)(windows_core::Interface::as_raw(self), nitemindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -351,13 +351,13 @@ impl IPhotoAcquireOptionsDialog { } pub unsafe fn Create(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent, &mut result__).map(|| result__) } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DoModal(&self, hwndparent: super::super::Foundation::HWND, ppnreturncode: Option<*mut isize>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ppnreturncode.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute(ppnreturncode.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SaveData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveData)(windows_core::Interface::as_raw(self)).ok() @@ -439,13 +439,13 @@ impl IPhotoAcquirePlugin { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwacquirestage), pphotoacquireitem.param().abi(), poriginalitemstream.param().abi(), pszfinalfilename.param().abi(), ppropertystore.param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessItem)(windows_core::Interface::as_raw(self), dwacquirestage, pphotoacquireitem.param().abi(), poriginalitemstream.param().abi(), pszfinalfilename.param().abi(), ppropertystore.param().abi()).ok() } pub unsafe fn TransferComplete(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TransferComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).TransferComplete)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn DisplayConfigureDialog(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayConfigureDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).DisplayConfigureDialog)(windows_core::Interface::as_raw(self), hwndparent).ok() } } #[repr(C)] @@ -519,7 +519,7 @@ impl IPhotoAcquireProgressCB { (windows_core::Interface::vtable(self).FoundItem)(windows_core::Interface::as_raw(self), pphotoacquireitem.param().abi()).ok() } pub unsafe fn EndEnumeration(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).EndEnumeration)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn StartTransfer(&self, pphotoacquiresource: P0) -> windows_core::Result<()> where @@ -531,7 +531,7 @@ impl IPhotoAcquireProgressCB { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartItemTransfer)(windows_core::Interface::as_raw(self), core::mem::transmute(nitemindex), pphotoacquireitem.param().abi()).ok() + (windows_core::Interface::vtable(self).StartItemTransfer)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.param().abi()).ok() } pub unsafe fn DirectoryCreated(&self, pszdirectory: P0) -> windows_core::Result<()> where @@ -540,16 +540,16 @@ impl IPhotoAcquireProgressCB { (windows_core::Interface::vtable(self).DirectoryCreated)(windows_core::Interface::as_raw(self), pszdirectory.param().abi()).ok() } pub unsafe fn UpdateTransferPercent(&self, foverall: bool, npercent: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateTransferPercent)(windows_core::Interface::as_raw(self), foverall.into(), core::mem::transmute(npercent)).ok() + (windows_core::Interface::vtable(self).UpdateTransferPercent)(windows_core::Interface::as_raw(self), foverall.into(), npercent).ok() } pub unsafe fn EndItemTransfer(&self, nitemindex: u32, pphotoacquireitem: P1, hr: windows_core::HRESULT) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EndItemTransfer)(windows_core::Interface::as_raw(self), core::mem::transmute(nitemindex), pphotoacquireitem.param().abi(), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).EndItemTransfer)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.param().abi(), hr).ok() } pub unsafe fn EndTransfer(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndTransfer)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).EndTransfer)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn StartDelete(&self, pphotoacquiresource: P0) -> windows_core::Result<()> where @@ -561,22 +561,22 @@ impl IPhotoAcquireProgressCB { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartItemDelete)(windows_core::Interface::as_raw(self), core::mem::transmute(nitemindex), pphotoacquireitem.param().abi()).ok() + (windows_core::Interface::vtable(self).StartItemDelete)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.param().abi()).ok() } pub unsafe fn UpdateDeletePercent(&self, npercent: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateDeletePercent)(windows_core::Interface::as_raw(self), core::mem::transmute(npercent)).ok() + (windows_core::Interface::vtable(self).UpdateDeletePercent)(windows_core::Interface::as_raw(self), npercent).ok() } pub unsafe fn EndItemDelete(&self, nitemindex: u32, pphotoacquireitem: P1, hr: windows_core::HRESULT) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EndItemDelete)(windows_core::Interface::as_raw(self), core::mem::transmute(nitemindex), pphotoacquireitem.param().abi(), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).EndItemDelete)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.param().abi(), hr).ok() } pub unsafe fn EndDelete(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndDelete)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).EndDelete)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn EndSession(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn GetDeleteAfterAcquire(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -587,14 +587,14 @@ impl IPhotoAcquireProgressCB { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ErrorAdvise)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), pszerrormessage.param().abi(), core::mem::transmute(nmessagetype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ErrorAdvise)(windows_core::Interface::as_raw(self), hr, pszerrormessage.param().abi(), nmessagetype, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetUserInput(&self, riidtype: *const windows_core::GUID, punknown: P1, ppropvarresult: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, ppropvardefault: Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUserInput)(windows_core::Interface::as_raw(self), core::mem::transmute(riidtype), punknown.param().abi(), core::mem::transmute(ppropvarresult), core::mem::transmute(ppropvardefault.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetUserInput)(windows_core::Interface::as_raw(self), riidtype, punknown.param().abi(), core::mem::transmute(ppropvarresult), core::mem::transmute(ppropvardefault.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -781,7 +781,7 @@ impl IPhotoAcquireSettings { (windows_core::Interface::vtable(self).InitializeFromRegistry)(windows_core::Interface::as_raw(self), pszregistrykey.param().abi()).ok() } pub unsafe fn SetFlags(&self, dwphotoacquireflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwphotoacquireflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwphotoacquireflags).ok() } pub unsafe fn SetOutputFilenameTemplate(&self, psztemplate: P0) -> windows_core::Result<()> where @@ -790,7 +790,7 @@ impl IPhotoAcquireSettings { (windows_core::Interface::vtable(self).SetOutputFilenameTemplate)(windows_core::Interface::as_raw(self), psztemplate.param().abi()).ok() } pub unsafe fn SetSequencePaddingWidth(&self, dwwidth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSequencePaddingWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwidth)).ok() + (windows_core::Interface::vtable(self).SetSequencePaddingWidth)(windows_core::Interface::as_raw(self), dwwidth).ok() } pub unsafe fn SetSequenceZeroPadding(&self, fzeropad: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSequenceZeroPadding)(windows_core::Interface::as_raw(self), fzeropad.into()).ok() @@ -802,7 +802,7 @@ impl IPhotoAcquireSettings { (windows_core::Interface::vtable(self).SetGroupTag)(windows_core::Interface::as_raw(self), pszgrouptag.param().abi()).ok() } pub unsafe fn SetAcquisitionTime(&self, pftacquisitiontime: *const super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAcquisitionTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pftacquisitiontime)).ok() + (windows_core::Interface::vtable(self).SetAcquisitionTime)(windows_core::Interface::as_raw(self), pftacquisitiontime).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -982,7 +982,7 @@ impl IPhotoAcquireSource { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetDeviceIcons(&self, nsize: u32, phlargeicon: Option<*mut super::super::UI::WindowsAndMessaging::HICON>, phsmallicon: Option<*mut super::super::UI::WindowsAndMessaging::HICON>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeviceIcons)(windows_core::Interface::as_raw(self), core::mem::transmute(nsize), core::mem::transmute(phlargeicon.unwrap_or(core::mem::zeroed())), core::mem::transmute(phsmallicon.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDeviceIcons)(windows_core::Interface::as_raw(self), nsize, core::mem::transmute(phlargeicon.unwrap_or(core::mem::zeroed())), core::mem::transmute(phsmallicon.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn InitializeItemList(&self, fforceenumeration: bool, pphotoacquireprogresscb: P1, pnitemcount: Option<*mut u32>) -> windows_core::Result<()> where @@ -996,7 +996,7 @@ impl IPhotoAcquireSource { } pub unsafe fn GetItemAt(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemAt)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemAt)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPhotoAcquireSettings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1007,7 +1007,7 @@ impl IPhotoAcquireSource { (windows_core::Interface::vtable(self).GetDeviceId)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn BindToObject(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -1123,7 +1123,7 @@ windows_core::imp::define_interface!(IPhotoProgressActionCB, IPhotoProgressActio windows_core::imp::interface_hierarchy!(IPhotoProgressActionCB, windows_core::IUnknown); impl IPhotoProgressActionCB { pub unsafe fn DoAction(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoAction)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).DoAction)(windows_core::Interface::as_raw(self), hwndparent).ok() } } #[repr(C)] @@ -1151,7 +1151,7 @@ windows_core::imp::define_interface!(IPhotoProgressDialog, IPhotoProgressDialog_ windows_core::imp::interface_hierarchy!(IPhotoProgressDialog, windows_core::IUnknown); impl IPhotoProgressDialog { pub unsafe fn Create(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent).ok() } pub unsafe fn GetWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1167,26 +1167,26 @@ impl IPhotoProgressDialog { (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn ShowCheckbox(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowCheckbox)(windows_core::Interface::as_raw(self), core::mem::transmute(ncheckboxid), fshow.into()).ok() + (windows_core::Interface::vtable(self).ShowCheckbox)(windows_core::Interface::as_raw(self), ncheckboxid, fshow.into()).ok() } pub unsafe fn SetCheckboxText(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckboxText)(windows_core::Interface::as_raw(self), core::mem::transmute(ncheckboxid), pszcheckboxtext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckboxText)(windows_core::Interface::as_raw(self), ncheckboxid, pszcheckboxtext.param().abi()).ok() } pub unsafe fn SetCheckboxCheck(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCheckboxCheck)(windows_core::Interface::as_raw(self), core::mem::transmute(ncheckboxid), fchecked.into()).ok() + (windows_core::Interface::vtable(self).SetCheckboxCheck)(windows_core::Interface::as_raw(self), ncheckboxid, fchecked.into()).ok() } pub unsafe fn SetCheckboxTooltip(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtooltiptext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckboxTooltip)(windows_core::Interface::as_raw(self), core::mem::transmute(ncheckboxid), pszcheckboxtooltiptext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckboxTooltip)(windows_core::Interface::as_raw(self), ncheckboxid, pszcheckboxtooltiptext.param().abi()).ok() } pub unsafe fn IsCheckboxChecked(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsCheckboxChecked)(windows_core::Interface::as_raw(self), core::mem::transmute(ncheckboxid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsCheckboxChecked)(windows_core::Interface::as_raw(self), ncheckboxid, &mut result__).map(|| result__) } pub unsafe fn SetCaption(&self, psztitle: P0) -> windows_core::Result<()> where @@ -1196,10 +1196,10 @@ impl IPhotoProgressDialog { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetImage(&self, nimagetype: PROGRESS_DIALOG_IMAGE_TYPE, hicon: Option, hbitmap: Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), core::mem::transmute(nimagetype), core::mem::transmute(hicon.unwrap_or(core::mem::zeroed())), core::mem::transmute(hbitmap.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), nimagetype, core::mem::transmute(hicon.unwrap_or(core::mem::zeroed())), core::mem::transmute(hbitmap.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetPercentComplete(&self, npercent: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPercentComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(npercent)).ok() + (windows_core::Interface::vtable(self).SetPercentComplete)(windows_core::Interface::as_raw(self), npercent).ok() } pub unsafe fn SetProgressText(&self, pszprogresstext: P0) -> windows_core::Result<()> where @@ -1231,7 +1231,7 @@ impl IPhotoProgressDialog { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUserInput)(windows_core::Interface::as_raw(self), core::mem::transmute(riidtype), punknown.param().abi(), core::mem::transmute(ppropvarresult), core::mem::transmute(ppropvardefault.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetUserInput)(windows_core::Interface::as_raw(self), riidtype, punknown.param().abi(), core::mem::transmute(ppropvarresult), core::mem::transmute(ppropvardefault.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -1441,11 +1441,11 @@ impl IUserInputString { } pub unsafe fn GetMruEntryAt(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMruEntryAt)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMruEntryAt)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetImage(&self, nsize: u32, phbitmap: Option<*mut super::super::Graphics::Gdi::HBITMAP>, phicon: Option<*mut super::super::UI::WindowsAndMessaging::HICON>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImage)(windows_core::Interface::as_raw(self), core::mem::transmute(nsize), core::mem::transmute(phbitmap.unwrap_or(core::mem::zeroed())), core::mem::transmute(phicon.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetImage)(windows_core::Interface::as_raw(self), nsize, core::mem::transmute(phbitmap.unwrap_or(core::mem::zeroed())), core::mem::transmute(phicon.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs index 35d3aeffa6..b2c6fb7157 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -497,10 +497,10 @@ windows_core::imp::define_interface!(IEnumSpObjectTokens, IEnumSpObjectTokens_Vt windows_core::imp::interface_hierarchy!(IEnumSpObjectTokens, windows_core::IUnknown); impl IEnumSpObjectTokens { pub unsafe fn Next(&self, celt: u32, pelt: *mut Option, pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(pelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(pelt), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -511,7 +511,7 @@ impl IEnumSpObjectTokens { } pub unsafe fn Item(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCount(&self, pcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcount)).ok() @@ -602,17 +602,17 @@ windows_core::imp::interface_hierarchy!(ISpAudio, windows_core::IUnknown, super: #[cfg(feature = "Win32_System_Com")] impl ISpAudio { pub unsafe fn SetState(&self, newstate: SPAUDIOSTATE, ullreserved: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate), core::mem::transmute(ullreserved)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), newstate, ullreserved).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetFormat(&self, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidfmtid), core::mem::transmute(pwaveformatex)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), rguidfmtid, pwaveformatex).ok() } pub unsafe fn GetStatus(&self, pstatus: *mut SPAUDIOSTATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatus)).ok() } pub unsafe fn SetBufferInfo(&self, pbuffinfo: *const SPAUDIOBUFFERINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffinfo)).ok() + (windows_core::Interface::vtable(self).SetBufferInfo)(windows_core::Interface::as_raw(self), pbuffinfo).ok() } pub unsafe fn GetBufferInfo(&self, pbuffinfo: *mut SPAUDIOBUFFERINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBufferInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffinfo)).ok() @@ -628,13 +628,13 @@ impl ISpAudio { (windows_core::Interface::vtable(self).GetVolumeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(plevel)).ok() } pub unsafe fn SetVolumeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolumeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetVolumeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetBufferNotifySize(&self, pcbsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBufferNotifySize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbsize)).ok() } pub unsafe fn SetBufferNotifySize(&self, cbsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferNotifySize)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize)).ok() + (windows_core::Interface::vtable(self).SetBufferNotifySize)(windows_core::Interface::as_raw(self), cbsize).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -748,14 +748,14 @@ impl ISpCFGInterpreter { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitGrammar)(windows_core::Interface::as_raw(self), pszgrammarname.param().abi(), core::mem::transmute(pvgrammardata)).ok() + (windows_core::Interface::vtable(self).InitGrammar)(windows_core::Interface::as_raw(self), pszgrammarname.param().abi(), pvgrammardata).ok() } pub unsafe fn Interpret(&self, pphrase: P0, ulfirstelement: u32, ulcountofelements: u32, psite: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Interpret)(windows_core::Interface::as_raw(self), pphrase.param().abi(), core::mem::transmute(ulfirstelement), core::mem::transmute(ulcountofelements), psite.param().abi()).ok() + (windows_core::Interface::vtable(self).Interpret)(windows_core::Interface::as_raw(self), pphrase.param().abi(), ulfirstelement, ulcountofelements, psite.param().abi()).ok() } } #[repr(C)] @@ -793,7 +793,7 @@ windows_core::imp::define_interface!(ISpCFGInterpreterSite, ISpCFGInterpreterSit windows_core::imp::interface_hierarchy!(ISpCFGInterpreterSite, windows_core::IUnknown); impl ISpCFGInterpreterSite { pub unsafe fn AddTextReplacement(&self, preplace: *const SPPHRASEREPLACEMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTextReplacement)(windows_core::Interface::as_raw(self), core::mem::transmute(preplace)).ok() + (windows_core::Interface::vtable(self).AddTextReplacement)(windows_core::Interface::as_raw(self), preplace).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddProperty(&self, pproperty: *const SPPHRASEPROPERTY) -> windows_core::Result<()> { @@ -870,7 +870,7 @@ impl ISpContainerLexicon { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddLexicon)(windows_core::Interface::as_raw(self), paddlexicon.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddLexicon)(windows_core::Interface::as_raw(self), paddlexicon.param().abi(), dwflags).ok() } } #[repr(C)] @@ -901,7 +901,7 @@ impl ISpDataKey { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), core::mem::transmute(cbdata), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), cbdata, pdata).ok() } pub unsafe fn GetData(&self, pszvaluename: P0, pcbdata: *mut u32, pdata: *mut u8) -> windows_core::Result<()> where @@ -927,7 +927,7 @@ impl ISpDataKey { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), dwvalue).ok() } pub unsafe fn GetDWORD(&self, pszvaluename: P0, pdwvalue: *mut u32) -> windows_core::Result<()> where @@ -963,11 +963,11 @@ impl ISpDataKey { } pub unsafe fn EnumKeys(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn EnumValues(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumValues)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnumValues)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } } #[repr(C)] @@ -1105,10 +1105,10 @@ windows_core::imp::define_interface!(ISpDisplayAlternates, ISpDisplayAlternates_ windows_core::imp::interface_hierarchy!(ISpDisplayAlternates, windows_core::IUnknown); impl ISpDisplayAlternates { pub unsafe fn GetDisplayAlternates(&self, pphrase: *const SPDISPLAYPHRASE, crequestcount: u32, ppcomemphrases: *mut *mut SPDISPLAYPHRASE, pcphrasesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(pphrase), core::mem::transmute(crequestcount), core::mem::transmute(ppcomemphrases), core::mem::transmute(pcphrasesreturned)).ok() + (windows_core::Interface::vtable(self).GetDisplayAlternates)(windows_core::Interface::as_raw(self), pphrase, crequestcount, core::mem::transmute(ppcomemphrases), core::mem::transmute(pcphrasesreturned)).ok() } pub unsafe fn SetFullStopTrailSpace(&self, ultrailspace: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFullStopTrailSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(ultrailspace)).ok() + (windows_core::Interface::vtable(self).SetFullStopTrailSpace)(windows_core::Interface::as_raw(self), ultrailspace).ok() } } #[repr(C)] @@ -1151,7 +1151,7 @@ impl ISpEnginePronunciation { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), pszword.param().abi(), pszleftcontext.param().abi(), pszrightcontext.param().abi(), core::mem::transmute(langid), core::mem::transmute(pnormalizationlist)).ok() + (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), pszword.param().abi(), pszleftcontext.param().abi(), pszrightcontext.param().abi(), langid, core::mem::transmute(pnormalizationlist)).ok() } pub unsafe fn GetPronunciations(&self, pszword: P0, pszleftcontext: P1, pszrightcontext: P2, langid: u16, penginepronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::Result<()> where @@ -1159,7 +1159,7 @@ impl ISpEnginePronunciation { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), pszleftcontext.param().abi(), pszrightcontext.param().abi(), core::mem::transmute(langid), core::mem::transmute(penginepronunciationlist)).ok() + (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), pszleftcontext.param().abi(), pszrightcontext.param().abi(), langid, core::mem::transmute(penginepronunciationlist)).ok() } } #[repr(C)] @@ -1201,7 +1201,7 @@ impl ISpErrorLog { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddError)(windows_core::Interface::as_raw(self), core::mem::transmute(llinenumber), core::mem::transmute(hr), pszdescription.param().abi(), pszhelpfile.param().abi(), core::mem::transmute(dwhelpcontext)).ok() + (windows_core::Interface::vtable(self).AddError)(windows_core::Interface::as_raw(self), llinenumber, hr, pszdescription.param().abi(), pszhelpfile.param().abi(), dwhelpcontext).ok() } } #[repr(C)] @@ -1229,7 +1229,7 @@ windows_core::imp::define_interface!(ISpEventSink, ISpEventSink_Vtbl, 0xbe7a9cc9 windows_core::imp::interface_hierarchy!(ISpEventSink, windows_core::IUnknown); impl ISpEventSink { pub unsafe fn AddEvents(&self, peventarray: *const SPEVENT, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(peventarray), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).AddEvents)(windows_core::Interface::as_raw(self), peventarray, ulcount).ok() } pub unsafe fn GetEventInterest(&self, pulleventinterest: *mut u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(pulleventinterest)).ok() @@ -1276,10 +1276,10 @@ impl core::ops::Deref for ISpEventSource { windows_core::imp::interface_hierarchy!(ISpEventSource, windows_core::IUnknown, ISpNotifySource); impl ISpEventSource { pub unsafe fn SetInterest(&self, ulleventinterest: u64, ullqueuedinterest: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(ulleventinterest), core::mem::transmute(ullqueuedinterest)).ok() + (windows_core::Interface::vtable(self).SetInterest)(windows_core::Interface::as_raw(self), ulleventinterest, ullqueuedinterest).ok() } pub unsafe fn GetEvents(&self, ulcount: u32, peventarray: *mut SPEVENT, pulfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(peventarray), core::mem::transmute(pulfetched)).ok() + (windows_core::Interface::vtable(self).GetEvents)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(peventarray), core::mem::transmute(pulfetched)).ok() } pub unsafe fn GetInfo(&self, pinfo: *mut SPEVENTSOURCEINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo)).ok() @@ -1333,7 +1333,7 @@ impl core::ops::Deref for ISpEventSource2 { windows_core::imp::interface_hierarchy!(ISpEventSource2, windows_core::IUnknown, ISpNotifySource, ISpEventSource); impl ISpEventSource2 { pub unsafe fn GetEventsEx(&self, ulcount: u32, peventarray: *mut SPEVENTEX, pulfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(peventarray), core::mem::transmute(pulfetched)).ok() + (windows_core::Interface::vtable(self).GetEventsEx)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(peventarray), core::mem::transmute(pulfetched)).ok() } } #[repr(C)] @@ -1375,7 +1375,7 @@ impl ISpGramCompBackend { (windows_core::Interface::vtable(self).SetSaveObjects)(windows_core::Interface::as_raw(self), pstream.param().abi(), perrorlog.param().abi()).ok() } pub unsafe fn InitFromBinaryGrammar(&self, pbinarydata: *const SPBINARYGRAMMAR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitFromBinaryGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(pbinarydata)).ok() + (windows_core::Interface::vtable(self).InitFromBinaryGrammar)(windows_core::Interface::as_raw(self), pbinarydata).ok() } } #[repr(C)] @@ -1419,19 +1419,19 @@ windows_core::imp::define_interface!(ISpGrammarBuilder, ISpGrammarBuilder_Vtbl, windows_core::imp::interface_hierarchy!(ISpGrammarBuilder, windows_core::IUnknown); impl ISpGrammarBuilder { pub unsafe fn ResetGrammar(&self, newlanguage: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(newlanguage)).ok() + (windows_core::Interface::vtable(self).ResetGrammar)(windows_core::Interface::as_raw(self), newlanguage).ok() } pub unsafe fn GetRule(&self, pszrulename: P0, dwruleid: u32, dwattributes: u32, fcreateifnotexist: bool, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), core::mem::transmute(dwruleid), core::mem::transmute(dwattributes), fcreateifnotexist.into(), core::mem::transmute(phinitialstate)).ok() + (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), dwruleid, dwattributes, fcreateifnotexist.into(), core::mem::transmute(phinitialstate)).ok() } pub unsafe fn ClearRule(&self, hstate: SPSTATEHANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearRule)(windows_core::Interface::as_raw(self), core::mem::transmute(hstate)).ok() + (windows_core::Interface::vtable(self).ClearRule)(windows_core::Interface::as_raw(self), hstate).ok() } pub unsafe fn CreateNewState(&self, hstate: SPSTATEHANDLE, phstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateNewState)(windows_core::Interface::as_raw(self), core::mem::transmute(hstate), core::mem::transmute(phstate)).ok() + (windows_core::Interface::vtable(self).CreateNewState)(windows_core::Interface::as_raw(self), hstate, core::mem::transmute(phstate)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddWordTransition(&self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: P2, pszseparators: P3, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> @@ -1439,21 +1439,21 @@ impl ISpGrammarBuilder { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(hfromstate), core::mem::transmute(htostate), psz.param().abi(), pszseparators.param().abi(), core::mem::transmute(ewordtype), core::mem::transmute(weight), core::mem::transmute(ppropinfo)).ok() + (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate, htostate, psz.param().abi(), pszseparators.param().abi(), ewordtype, weight, core::mem::transmute(ppropinfo)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddRuleTransition(&self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, hrule: SPSTATEHANDLE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(hfromstate), core::mem::transmute(htostate), core::mem::transmute(hrule), core::mem::transmute(weight), core::mem::transmute(ppropinfo)).ok() + (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate, htostate, hrule, weight, core::mem::transmute(ppropinfo)).ok() } pub unsafe fn AddResource(&self, hrulestate: SPSTATEHANDLE, pszresourcename: P1, pszresourcevalue: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), core::mem::transmute(hrulestate), pszresourcename.param().abi(), pszresourcevalue.param().abi()).ok() + (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), hrulestate, pszresourcename.param().abi(), pszresourcevalue.param().abi()).ok() } pub unsafe fn Commit(&self, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), dwreserved).ok() } } #[repr(C)] @@ -1545,10 +1545,10 @@ impl ISpGrammarBuilder2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextSubset)(windows_core::Interface::as_raw(self), core::mem::transmute(hfromstate), core::mem::transmute(htostate), psz.param().abi(), core::mem::transmute(ematchmode)).ok() + (windows_core::Interface::vtable(self).AddTextSubset)(windows_core::Interface::as_raw(self), hfromstate, htostate, psz.param().abi(), ematchmode).ok() } pub unsafe fn SetPhoneticAlphabet(&self, phoneticalphabet: PHONETICALPHABET) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPhoneticAlphabet)(windows_core::Interface::as_raw(self), core::mem::transmute(phoneticalphabet)).ok() + (windows_core::Interface::vtable(self).SetPhoneticAlphabet)(windows_core::Interface::as_raw(self), phoneticalphabet).ok() } } #[repr(C)] @@ -1594,7 +1594,7 @@ impl ISpGrammarCompiler { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CompileStream)(windows_core::Interface::as_raw(self), psource.param().abi(), pdest.param().abi(), pheader.param().abi(), preserved.param().abi(), perrorlog.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).CompileStream)(windows_core::Interface::as_raw(self), psource.param().abi(), pdest.param().abi(), pheader.param().abi(), preserved.param().abi(), perrorlog.param().abi(), dwflags).ok() } } #[repr(C)] @@ -1678,28 +1678,28 @@ impl ISpLexicon { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), core::mem::transmute(langid), core::mem::transmute(dwflags), core::mem::transmute(pwordpronunciationlist)).ok() + (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, dwflags, core::mem::transmute(pwordpronunciationlist)).ok() } pub unsafe fn AddPronunciation(&self, pszword: P0, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: Option<*const u16>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), core::mem::transmute(langid), core::mem::transmute(epartofspeech), core::mem::transmute(pszpronunciation.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemovePronunciation(&self, pszword: P0, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: Option<*const u16>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), core::mem::transmute(langid), core::mem::transmute(epartofspeech), core::mem::transmute(pszpronunciation.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetGeneration(&self, pdwgeneration: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGeneration)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwgeneration)).ok() } pub unsafe fn GetGenerationChange(&self, dwflags: u32, pdwgeneration: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGenerationChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pdwgeneration), core::mem::transmute(pwordlist)).ok() + (windows_core::Interface::vtable(self).GetGenerationChange)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pdwgeneration), core::mem::transmute(pwordlist)).ok() } pub unsafe fn GetWords(&self, dwflags: u32, pdwgeneration: *mut u32, pdwcookie: Option<*mut u32>, pwordlist: *mut SPWORDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pdwgeneration), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwordlist)).ok() + (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pdwgeneration), core::mem::transmute(pdwcookie.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwordlist)).ok() } } #[repr(C)] @@ -1778,7 +1778,7 @@ impl ISpMMSysAudio { (windows_core::Interface::vtable(self).GetDeviceId)(windows_core::Interface::as_raw(self), core::mem::transmute(pudeviceid)).ok() } pub unsafe fn SetDeviceId(&self, udeviceid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeviceId)(windows_core::Interface::as_raw(self), core::mem::transmute(udeviceid)).ok() + (windows_core::Interface::vtable(self).SetDeviceId)(windows_core::Interface::as_raw(self), udeviceid).ok() } pub unsafe fn GetMMHandle(&self, phandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMMHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(phandle)).ok() @@ -1787,7 +1787,7 @@ impl ISpMMSysAudio { (windows_core::Interface::vtable(self).GetLineId)(windows_core::Interface::as_raw(self), core::mem::transmute(pulineid)).ok() } pub unsafe fn SetLineId(&self, ulineid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineId)(windows_core::Interface::as_raw(self), core::mem::transmute(ulineid)).ok() + (windows_core::Interface::vtable(self).SetLineId)(windows_core::Interface::as_raw(self), ulineid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1849,7 +1849,7 @@ impl windows_core::RuntimeName for ISpMMSysAudio {} windows_core::imp::define_interface!(ISpNotifyCallback, ISpNotifyCallback_Vtbl); impl ISpNotifyCallback { pub unsafe fn NotifyCallback(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).NotifyCallback)(windows_core::Interface::as_raw(self), wparam, lparam).ok() } } #[repr(C)] @@ -1918,22 +1918,22 @@ impl ISpNotifySource { (windows_core::Interface::vtable(self).SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.param().abi()).ok() } pub unsafe fn SetNotifyWindowMessage(&self, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd, msg, wparam, lparam).ok() } pub unsafe fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(pfncallback), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(pfncallback), wparam, lparam).ok() } pub unsafe fn SetNotifyCallbackInterface(&self, pspcallback: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam, lparam).ok() } pub unsafe fn SetNotifyWin32Event(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetNotifyWin32Event)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WaitForNotifyEvent(&self, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForNotifyEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).WaitForNotifyEvent)(windows_core::Interface::as_raw(self), dwmilliseconds).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> super::super::Foundation::HANDLE { (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self)) @@ -2015,22 +2015,22 @@ impl core::ops::Deref for ISpNotifyTranslator { windows_core::imp::interface_hierarchy!(ISpNotifyTranslator, windows_core::IUnknown, ISpNotifySink); impl ISpNotifyTranslator { pub unsafe fn InitWindowMessage(&self, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitWindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).InitWindowMessage)(windows_core::Interface::as_raw(self), hwnd, msg, wparam, lparam).ok() } pub unsafe fn InitCallback(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(pfncallback), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).InitCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(pfncallback), wparam, lparam).ok() } pub unsafe fn InitSpNotifyCallback(&self, pspcallback: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitSpNotifyCallback)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).InitSpNotifyCallback)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam, lparam).ok() } pub unsafe fn InitWin32Event(&self, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitWin32Event)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), fclosehandleonrelease.into()).ok() + (windows_core::Interface::vtable(self).InitWin32Event)(windows_core::Interface::as_raw(self), hevent, fclosehandleonrelease.into()).ok() } pub unsafe fn Wait(&self, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwmilliseconds).ok() } pub unsafe fn GetEventHandle(&self) -> super::super::Foundation::HANDLE { (windows_core::Interface::vtable(self).GetEventHandle)(windows_core::Interface::as_raw(self)) @@ -2123,7 +2123,7 @@ impl ISpObjectToken { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(dwclscontext), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), dwclscontext, riid, core::mem::transmute(ppvobject)).ok() } pub unsafe fn GetStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszvaluename: P1, pszfilenamespecifier: P2, nfolder: u32) -> windows_core::Result where @@ -2131,13 +2131,13 @@ impl ISpObjectToken { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidcaller), pszvaluename.param().abi(), pszfilenamespecifier.param().abi(), core::mem::transmute(nfolder), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszvaluename.param().abi(), pszfilenamespecifier.param().abi(), nfolder, &mut result__).map(|| result__) } pub unsafe fn RemoveStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszkeyname: P1, fdeletefile: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidcaller), pszkeyname.param().abi(), fdeletefile.into()).ok() + (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszkeyname.param().abi(), fdeletefile.into()).ok() } pub unsafe fn Remove(&self, pclsidcaller: Option<*const windows_core::GUID>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(pclsidcaller.unwrap_or(core::mem::zeroed()))).ok() @@ -2147,7 +2147,7 @@ impl ISpObjectToken { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata), punkobject.param().abi(), core::mem::transmute(pfsupported)).ok() + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), cbextradata, punkobject.param().abi(), core::mem::transmute(pfsupported)).ok() } pub unsafe fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P5) -> windows_core::Result<()> where @@ -2155,7 +2155,7 @@ impl ISpObjectToken { P2: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata), punkobject.param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), cbextradata, punkobject.param().abi()).ok() } pub unsafe fn MatchesAttributes(&self, pszattributes: P0, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where @@ -2290,7 +2290,7 @@ impl ISpObjectTokenCategory { } pub unsafe fn GetDataKey(&self, spdkl: SPDATAKEYLOCATION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataKey)(windows_core::Interface::as_raw(self), core::mem::transmute(spdkl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDataKey)(windows_core::Interface::as_raw(self), spdkl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumTokens(&self, pzsreqattribs: P0, pszoptattribs: P1) -> windows_core::Result where @@ -2411,7 +2411,7 @@ impl ISpObjectTokenEnumBuilder { (windows_core::Interface::vtable(self).SetAttribs)(windows_core::Interface::as_raw(self), pszreqattribs.param().abi(), pszoptattribs.param().abi()).ok() } pub unsafe fn AddTokens(&self, ctokens: u32, ptoken: *const Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTokens)(windows_core::Interface::as_raw(self), core::mem::transmute(ctokens), core::mem::transmute(ptoken)).ok() + (windows_core::Interface::vtable(self).AddTokens)(windows_core::Interface::as_raw(self), ctokens, core::mem::transmute(ptoken)).ok() } pub unsafe fn AddTokensFromDataKey(&self, pdatakey: P0, pszsubkey: P1, pszcategoryid: P2) -> windows_core::Result<()> where @@ -2593,7 +2593,7 @@ impl ISpPhoneConverter { (windows_core::Interface::vtable(self).PhoneToId)(windows_core::Interface::as_raw(self), pszphone.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IdToPhone(&self, pid: *const u16, pszphone: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IdToPhone)(windows_core::Interface::as_raw(self), core::mem::transmute(pid), core::mem::transmute(pszphone)).ok() + (windows_core::Interface::vtable(self).IdToPhone)(windows_core::Interface::as_raw(self), pid, core::mem::transmute(pszphone)).ok() } } #[repr(C)] @@ -2637,17 +2637,17 @@ impl ISpPhoneticAlphabetConverter { (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLangId(&self, langid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLangId)(windows_core::Interface::as_raw(self), core::mem::transmute(langid)).ok() + (windows_core::Interface::vtable(self).SetLangId)(windows_core::Interface::as_raw(self), langid).ok() } pub unsafe fn SAPI2UPS(&self, pszsapiid: *const u16, pszupsid: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SAPI2UPS)(windows_core::Interface::as_raw(self), core::mem::transmute(pszsapiid), core::mem::transmute(pszupsid.as_ptr()), pszupsid.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SAPI2UPS)(windows_core::Interface::as_raw(self), pszsapiid, core::mem::transmute(pszupsid.as_ptr()), pszupsid.len().try_into().unwrap()).ok() } pub unsafe fn UPS2SAPI(&self, pszupsid: *const u16, pszsapiid: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UPS2SAPI)(windows_core::Interface::as_raw(self), core::mem::transmute(pszupsid), core::mem::transmute(pszsapiid.as_ptr()), pszsapiid.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).UPS2SAPI)(windows_core::Interface::as_raw(self), pszupsid, core::mem::transmute(pszsapiid.as_ptr()), pszsapiid.len().try_into().unwrap()).ok() } pub unsafe fn GetMaxConvertLength(&self, csrclength: u32, bsapi2ups: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxConvertLength)(windows_core::Interface::as_raw(self), core::mem::transmute(csrclength), bsapi2ups.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxConvertLength)(windows_core::Interface::as_raw(self), csrclength, bsapi2ups.into(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2775,10 +2775,10 @@ impl ISpPhrase { (windows_core::Interface::vtable(self).GetSerializedPhrase)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: bool, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstart), core::mem::transmute(ulcount), fusetextreplacements.into(), core::mem::transmute(ppszcomemtext), core::mem::transmute(pbdisplayattributes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into(), core::mem::transmute(ppszcomemtext), core::mem::transmute(pbdisplayattributes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Discard)(windows_core::Interface::as_raw(self), core::mem::transmute(dwvaluetypes)).ok() + (windows_core::Interface::vtable(self).Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() } } #[repr(C)] @@ -2854,7 +2854,7 @@ impl core::ops::Deref for ISpPhrase2 { windows_core::imp::interface_hierarchy!(ISpPhrase2, windows_core::IUnknown, ISpPhrase); impl ISpPhrase2 { pub unsafe fn GetXMLResult(&self, ppszcomemxmlresult: *mut windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszcomemxmlresult), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszcomemxmlresult), options).ok() } pub unsafe fn GetXMLErrorInfo(&self, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetXMLErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(psemanticerrorinfo)).ok() @@ -2862,7 +2862,7 @@ impl ISpPhrase2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAudio(&self, ulstartelement: u32, celements: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartelement), core::mem::transmute(celements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAudio)(windows_core::Interface::as_raw(self), ulstartelement, celements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2972,25 +2972,25 @@ windows_core::imp::interface_hierarchy!(ISpPhraseBuilder, windows_core::IUnknown impl ISpPhraseBuilder { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InitFromPhrase(&self, pphrase: *const SPPHRASE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitFromPhrase)(windows_core::Interface::as_raw(self), core::mem::transmute(pphrase)).ok() + (windows_core::Interface::vtable(self).InitFromPhrase)(windows_core::Interface::as_raw(self), pphrase).ok() } pub unsafe fn InitFromSerializedPhrase(&self, pphrase: *const SPSERIALIZEDPHRASE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitFromSerializedPhrase)(windows_core::Interface::as_raw(self), core::mem::transmute(pphrase)).ok() + (windows_core::Interface::vtable(self).InitFromSerializedPhrase)(windows_core::Interface::as_raw(self), pphrase).ok() } pub unsafe fn AddElements(&self, celements: u32, pelement: *const SPPHRASEELEMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddElements)(windows_core::Interface::as_raw(self), core::mem::transmute(celements), core::mem::transmute(pelement)).ok() + (windows_core::Interface::vtable(self).AddElements)(windows_core::Interface::as_raw(self), celements, pelement).ok() } pub unsafe fn AddRules(&self, hparent: SPPHRASERULEHANDLE, prule: *const SPPHRASERULE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddRules)(windows_core::Interface::as_raw(self), core::mem::transmute(hparent), core::mem::transmute(prule), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddRules)(windows_core::Interface::as_raw(self), hparent, prule, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddProperties(&self, hparent: SPPHRASEPROPERTYHANDLE, pproperty: *const SPPHRASEPROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(hparent), core::mem::transmute(pproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddProperties)(windows_core::Interface::as_raw(self), hparent, core::mem::transmute(pproperty), &mut result__).map(|| result__) } pub unsafe fn AddReplacements(&self, creplacements: u32, preplacements: *const SPPHRASEREPLACEMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(creplacements), core::mem::transmute(preplacements)).ok() + (windows_core::Interface::vtable(self).AddReplacements)(windows_core::Interface::as_raw(self), creplacements, preplacements).ok() } } #[repr(C)] @@ -3077,10 +3077,10 @@ windows_core::imp::define_interface!(ISpPrivateEngineCallEx, ISpPrivateEngineCal windows_core::imp::interface_hierarchy!(ISpPrivateEngineCallEx, windows_core::IUnknown); impl ISpPrivateEngineCallEx { pub unsafe fn CallEngineSynchronize(&self, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallEngineSynchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(pinframe), core::mem::transmute(ulinframesize), core::mem::transmute(ppcomemoutframe), core::mem::transmute(puloutframesize)).ok() + (windows_core::Interface::vtable(self).CallEngineSynchronize)(windows_core::Interface::as_raw(self), pinframe, ulinframesize, core::mem::transmute(ppcomemoutframe), core::mem::transmute(puloutframesize)).ok() } pub unsafe fn CallEngineImmediate(&self, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallEngineImmediate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinframe), core::mem::transmute(ulinframesize), core::mem::transmute(ppcomemoutframe), core::mem::transmute(puloutframesize)).ok() + (windows_core::Interface::vtable(self).CallEngineImmediate)(windows_core::Interface::as_raw(self), pinframe, ulinframesize, core::mem::transmute(ppcomemoutframe), core::mem::transmute(puloutframesize)).ok() } } #[repr(C)] @@ -3121,7 +3121,7 @@ impl ISpProperties { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyNum)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(lvalue)).ok() + (windows_core::Interface::vtable(self).SetPropertyNum)(windows_core::Interface::as_raw(self), pname.param().abi(), lvalue).ok() } pub unsafe fn GetPropertyNum(&self, pname: P0, plvalue: *mut i32) -> windows_core::Result<()> where @@ -3210,7 +3210,7 @@ impl ISpRecoContext { } pub unsafe fn CreateGrammar(&self, ullgrammarid: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(ullgrammarid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGrammar)(windows_core::Interface::as_raw(self), ullgrammarid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStatus(&self, pstatus: *mut SPRECOCONTEXTSTATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatus)).ok() @@ -3219,11 +3219,11 @@ impl ISpRecoContext { (windows_core::Interface::vtable(self).GetMaxAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(pcalternates)).ok() } pub unsafe fn SetMaxAlternates(&self, calternates: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(calternates)).ok() + (windows_core::Interface::vtable(self).SetMaxAlternates)(windows_core::Interface::as_raw(self), calternates).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetAudioOptions(&self, options: SPAUDIOOPTIONS, paudioformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(paudioformatid), core::mem::transmute(pwaveformatex)).ok() + (windows_core::Interface::vtable(self).SetAudioOptions)(windows_core::Interface::as_raw(self), options, paudioformatid, pwaveformatex).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn GetAudioOptions(&self, poptions: *mut SPAUDIOOPTIONS, paudioformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { @@ -3231,22 +3231,22 @@ impl ISpRecoContext { } pub unsafe fn DeserializeResult(&self, pserializedresult: *const SPSERIALIZEDRESULT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DeserializeResult)(windows_core::Interface::as_raw(self), core::mem::transmute(pserializedresult), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DeserializeResult)(windows_core::Interface::as_raw(self), pserializedresult, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Bookmark(&self, options: SPBOOKMARKOPTIONS, ullstreamposition: u64, lparamevent: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(ullstreamposition), core::mem::transmute(lparamevent)).ok() + (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), options, ullstreamposition, lparamevent).ok() } pub unsafe fn SetAdaptationData(&self, padaptationdata: P0, cch: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), padaptationdata.param().abi(), core::mem::transmute(cch)).ok() + (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), padaptationdata.param().abi(), cch).ok() } pub unsafe fn Pause(&self, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), dwreserved).ok() } pub unsafe fn Resume(&self, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), dwreserved).ok() } pub unsafe fn SetVoice(&self, pvoice: P0, fallowformatchanges: bool) -> windows_core::Result<()> where @@ -3259,13 +3259,13 @@ impl ISpRecoContext { (windows_core::Interface::vtable(self).GetVoice)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetVoicePurgeEvent(&self, ulleventinterest: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVoicePurgeEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(ulleventinterest)).ok() + (windows_core::Interface::vtable(self).SetVoicePurgeEvent)(windows_core::Interface::as_raw(self), ulleventinterest).ok() } pub unsafe fn GetVoicePurgeEvent(&self, pulleventinterest: *mut u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVoicePurgeEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(pulleventinterest)).ok() } pub unsafe fn SetContextState(&self, econtextstate: SPCONTEXTSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContextState)(windows_core::Interface::as_raw(self), core::mem::transmute(econtextstate)).ok() + (windows_core::Interface::vtable(self).SetContextState)(windows_core::Interface::as_raw(self), econtextstate).ok() } pub unsafe fn GetContextState(&self, pecontextstate: *mut SPCONTEXTSTATE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetContextState)(windows_core::Interface::as_raw(self), core::mem::transmute(pecontextstate)).ok() @@ -3451,7 +3451,7 @@ windows_core::imp::define_interface!(ISpRecoContext2, ISpRecoContext2_Vtbl, 0xbe windows_core::imp::interface_hierarchy!(ISpRecoContext2, windows_core::IUnknown); impl ISpRecoContext2 { pub unsafe fn SetGrammarOptions(&self, egrammaroptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGrammarOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(egrammaroptions)).ok() + (windows_core::Interface::vtable(self).SetGrammarOptions)(windows_core::Interface::as_raw(self), egrammaroptions).ok() } pub unsafe fn GetGrammarOptions(&self, pegrammaroptions: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGrammarOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(pegrammaroptions)).ok() @@ -3461,7 +3461,7 @@ impl ISpRecoContext2 { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdaptationData2)(windows_core::Interface::as_raw(self), padaptationdata.param().abi(), core::mem::transmute(cch), ptopicname.param().abi(), core::mem::transmute(eadaptationsettings), core::mem::transmute(erelevance)).ok() + (windows_core::Interface::vtable(self).SetAdaptationData2)(windows_core::Interface::as_raw(self), padaptationdata.param().abi(), cch, ptopicname.param().abi(), eadaptationsettings, erelevance).ok() } } #[repr(C)] @@ -3522,56 +3522,56 @@ impl ISpRecoGrammar { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadCmdFromFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), options).ok() } pub unsafe fn LoadCmdFromObject(&self, rcid: *const windows_core::GUID, pszgrammarname: P1, options: SPLOADOPTIONS) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromObject)(windows_core::Interface::as_raw(self), core::mem::transmute(rcid), pszgrammarname.param().abi(), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadCmdFromObject)(windows_core::Interface::as_raw(self), rcid, pszgrammarname.param().abi(), options).ok() } pub unsafe fn LoadCmdFromResource(&self, hmodule: super::super::Foundation::HMODULE, pszresourcename: P1, pszresourcetype: P2, wlanguage: u16, options: SPLOADOPTIONS) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromResource)(windows_core::Interface::as_raw(self), core::mem::transmute(hmodule), pszresourcename.param().abi(), pszresourcetype.param().abi(), core::mem::transmute(wlanguage), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadCmdFromResource)(windows_core::Interface::as_raw(self), hmodule, pszresourcename.param().abi(), pszresourcetype.param().abi(), wlanguage, options).ok() } pub unsafe fn LoadCmdFromMemory(&self, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadCmdFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pgrammar), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadCmdFromMemory)(windows_core::Interface::as_raw(self), pgrammar, options).ok() } pub unsafe fn LoadCmdFromProprietaryGrammar(&self, rguidparam: *const windows_core::GUID, pszstringparam: P1, pvdataprarm: *const core::ffi::c_void, cbdatasize: u32, options: SPLOADOPTIONS) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromProprietaryGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidparam), pszstringparam.param().abi(), core::mem::transmute(pvdataprarm), core::mem::transmute(cbdatasize), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadCmdFromProprietaryGrammar)(windows_core::Interface::as_raw(self), rguidparam, pszstringparam.param().abi(), pvdataprarm, cbdatasize, options).ok() } pub unsafe fn SetRuleState(&self, pszname: P0, preserved: *mut core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleState)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(preserved), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetRuleState)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(preserved), newstate).ok() } pub unsafe fn SetRuleIdState(&self, ulruleid: u32, newstate: SPRULESTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRuleIdState)(windows_core::Interface::as_raw(self), core::mem::transmute(ulruleid), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetRuleIdState)(windows_core::Interface::as_raw(self), ulruleid, newstate).ok() } pub unsafe fn LoadDictation(&self, psztopicname: P0, options: SPLOADOPTIONS) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadDictation)(windows_core::Interface::as_raw(self), psztopicname.param().abi(), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadDictation)(windows_core::Interface::as_raw(self), psztopicname.param().abi(), options).ok() } pub unsafe fn UnloadDictation(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnloadDictation)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetDictationState(&self, newstate: SPRULESTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDictationState)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetDictationState)(windows_core::Interface::as_raw(self), newstate).ok() } pub unsafe fn SetWordSequenceData(&self, ptext: Option<&[u16]>, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ptext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ptext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pinfo).ok() } pub unsafe fn SetTextSelection(&self, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).SetTextSelection)(windows_core::Interface::as_raw(self), pinfo).ok() } pub unsafe fn IsPronounceable(&self, pszword: P0, pwordpronounceable: *mut SPWORDPRONOUNCEABLE) -> windows_core::Result<()> where @@ -3580,7 +3580,7 @@ impl ISpRecoGrammar { (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), pszword.param().abi(), core::mem::transmute(pwordpronounceable)).ok() } pub unsafe fn SetGrammarState(&self, egrammarstate: SPGRAMMARSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGrammarState)(windows_core::Interface::as_raw(self), core::mem::transmute(egrammarstate)).ok() + (windows_core::Interface::vtable(self).SetGrammarState)(windows_core::Interface::as_raw(self), egrammarstate).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveCmd(&self, pstream: P0, ppszcomemerrortext: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -3760,29 +3760,29 @@ impl ISpRecoGrammar2 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromFile2)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(options), pszsharinguri.param().abi(), pszbaseuri.param().abi()).ok() + (windows_core::Interface::vtable(self).LoadCmdFromFile2)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), options, pszsharinguri.param().abi(), pszbaseuri.param().abi()).ok() } pub unsafe fn LoadCmdFromMemory2(&self, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, pszsharinguri: P2, pszbaseuri: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromMemory2)(windows_core::Interface::as_raw(self), core::mem::transmute(pgrammar), core::mem::transmute(options), pszsharinguri.param().abi(), pszbaseuri.param().abi()).ok() + (windows_core::Interface::vtable(self).LoadCmdFromMemory2)(windows_core::Interface::as_raw(self), pgrammar, options, pszsharinguri.param().abi(), pszbaseuri.param().abi()).ok() } pub unsafe fn SetRulePriority(&self, pszrulename: P0, ulruleid: u32, nrulepriority: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), core::mem::transmute(ulruleid), core::mem::transmute(nrulepriority)).ok() + (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), ulruleid, nrulepriority).ok() } pub unsafe fn SetRuleWeight(&self, pszrulename: P0, ulruleid: u32, flweight: f32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), core::mem::transmute(ulruleid), core::mem::transmute(flweight)).ok() + (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), ulruleid, flweight).ok() } pub unsafe fn SetDictationWeight(&self, flweight: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDictationWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(flweight)).ok() + (windows_core::Interface::vtable(self).SetDictationWeight)(windows_core::Interface::as_raw(self), flweight).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetGrammarLoader(&self, ploader: P0) -> windows_core::Result<()> @@ -3894,22 +3894,22 @@ impl ISpRecoResult { (windows_core::Interface::vtable(self).GetResultTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimes)).ok() } pub unsafe fn GetAlternates(&self, ulstartelement: u32, celements: u32, ppphrases: &mut [Option], pcphrasesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartelement), core::mem::transmute(celements), ppphrases.len().try_into().unwrap(), core::mem::transmute(ppphrases.as_ptr()), core::mem::transmute(pcphrasesreturned)).ok() + (windows_core::Interface::vtable(self).GetAlternates)(windows_core::Interface::as_raw(self), ulstartelement, celements, ppphrases.len().try_into().unwrap(), core::mem::transmute(ppphrases.as_ptr()), core::mem::transmute(pcphrasesreturned)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAudio(&self, ulstartelement: u32, celements: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartelement), core::mem::transmute(celements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAudio)(windows_core::Interface::as_raw(self), ulstartelement, celements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SpeakAudio(&self, ulstartelement: u32, celements: u32, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SpeakAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartelement), core::mem::transmute(celements), core::mem::transmute(dwflags), core::mem::transmute(pulstreamnumber)).ok() + (windows_core::Interface::vtable(self).SpeakAudio)(windows_core::Interface::as_raw(self), ulstartelement, celements, dwflags, core::mem::transmute(pulstreamnumber)).ok() } pub unsafe fn Serialize(&self, ppcomemserializedresult: *mut *mut SPSERIALIZEDRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppcomemserializedresult)).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn ScaleAudio(&self, paudioformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(paudioformatid), core::mem::transmute(pwaveformatex)).ok() + (windows_core::Interface::vtable(self).ScaleAudio)(windows_core::Interface::as_raw(self), paudioformatid, pwaveformatex).ok() } pub unsafe fn GetRecoContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4023,7 +4023,7 @@ impl ISpRecoResult2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartelement), core::mem::transmute(celements), pszcorrecteddata.param().abi(), core::mem::transmute(ecommitflags)).ok() + (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), ulstartelement, celements, pszcorrecteddata.param().abi(), ecommitflags).ok() } pub unsafe fn SetTextFeedback(&self, pszfeedback: P0, fsuccessful: bool) -> windows_core::Result<()> where @@ -4134,27 +4134,27 @@ impl ISpRecognizer { (windows_core::Interface::vtable(self).GetRecoState)(windows_core::Interface::as_raw(self), core::mem::transmute(pstate)).ok() } pub unsafe fn SetRecoState(&self, newstate: SPRECOSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRecoState)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetRecoState)(windows_core::Interface::as_raw(self), newstate).ok() } pub unsafe fn GetStatus(&self, pstatus: *mut SPRECOGNIZERSTATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatus)).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn GetFormat(&self, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(waveformattype), core::mem::transmute(pformatid), core::mem::transmute(ppcomemwfex)).ok() + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), waveformattype, core::mem::transmute(pformatid), core::mem::transmute(ppcomemwfex)).ok() } pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata), core::mem::transmute(pfsupported)).ok() + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), cbextradata, core::mem::transmute(pfsupported)).ok() } pub unsafe fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata)).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), cbextradata).ok() } pub unsafe fn EmulateRecognition(&self, pphrase: P0) -> windows_core::Result<()> where @@ -4338,7 +4338,7 @@ impl ISpRecognizer2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmulateRecognitionEx)(windows_core::Interface::as_raw(self), pphrase.param().abi(), core::mem::transmute(dwcompareflags)).ok() + (windows_core::Interface::vtable(self).EmulateRecognitionEx)(windows_core::Interface::as_raw(self), pphrase.param().abi(), dwcompareflags).ok() } pub unsafe fn SetTrainingState(&self, fdoingtraining: bool, fadaptfromtrainingdata: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetTrainingState)(windows_core::Interface::as_raw(self), fdoingtraining.into(), fadaptfromtrainingdata.into()).ok() @@ -4396,7 +4396,7 @@ windows_core::imp::interface_hierarchy!(ISpRegDataKey, windows_core::IUnknown, I impl ISpRegDataKey { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetKey(&self, hkey: super::super::System::Registry::HKEY, freadonly: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hkey), freadonly.into()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), hkey, freadonly.into()).ok() } } #[repr(C)] @@ -4443,10 +4443,10 @@ impl ISpResourceManager { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(guidserviceid), punkobject.param().abi()).ok() + (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), guidserviceid, punkobject.param().abi()).ok() } pub unsafe fn GetObject(&self, guidserviceid: *const windows_core::GUID, objectclsid: *const windows_core::GUID, objectiid: *const windows_core::GUID, freleasewhenlastexternalrefreleased: bool, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(guidserviceid), core::mem::transmute(objectclsid), core::mem::transmute(objectiid), freleasewhenlastexternalrefreleased.into(), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), guidserviceid, objectclsid, objectiid, freleasewhenlastexternalrefreleased.into(), core::mem::transmute(ppobject)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4538,7 +4538,7 @@ impl ISpSRAlternates2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), core::mem::transmute(paltrequest), pcsznewtext.param().abi(), core::mem::transmute(commitflags)).ok() + (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), core::mem::transmute(paltrequest), pcsznewtext.param().abi(), commitflags).ok() } } #[repr(C)] @@ -4573,14 +4573,14 @@ impl ISpSREngine { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetInputAudioFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidsourceformatid), core::mem::transmute(psourcewaveformatex), core::mem::transmute(pguiddesiredformatid), core::mem::transmute(ppcomemdesiredwaveformatex)).ok() + (windows_core::Interface::vtable(self).GetInputAudioFormat)(windows_core::Interface::as_raw(self), pguidsourceformatid, psourcewaveformatex, core::mem::transmute(pguiddesiredformatid), core::mem::transmute(ppcomemdesiredwaveformatex)).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe 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: bool, frealtimeaudio: bool, paudioobjecttoken: P7) -> windows_core::Result<()> where P7: windows_core::Param, { - (windows_core::Interface::vtable(self).RecognizeStream)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidfmtid), core::mem::transmute(pwaveformatex), core::mem::transmute(hrequestsync), core::mem::transmute(hdataavailable), core::mem::transmute(hexit), fnewaudiostream.into(), frealtimeaudio.into(), paudioobjecttoken.param().abi()).ok() + (windows_core::Interface::vtable(self).RecognizeStream)(windows_core::Interface::as_raw(self), rguidfmtid, pwaveformatex, hrequestsync, hdataavailable, hexit, fnewaudiostream.into(), frealtimeaudio.into(), paudioobjecttoken.param().abi()).ok() } pub unsafe fn SetRecoProfile(&self, pprofile: P0) -> windows_core::Result<()> where @@ -4589,108 +4589,108 @@ impl ISpSREngine { (windows_core::Interface::vtable(self).SetRecoProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn OnCreateGrammar(&self, pvenginerecocontext: *const core::ffi::c_void, hsapigrammar: SPGRAMMARHANDLE, ppvenginegrammarcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCreateGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginerecocontext), core::mem::transmute(hsapigrammar), core::mem::transmute(ppvenginegrammarcontext)).ok() + (windows_core::Interface::vtable(self).OnCreateGrammar)(windows_core::Interface::as_raw(self), pvenginerecocontext, hsapigrammar, core::mem::transmute(ppvenginegrammarcontext)).ok() } pub unsafe fn OnDeleteGrammar(&self, pvenginegrammar: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDeleteGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar)).ok() + (windows_core::Interface::vtable(self).OnDeleteGrammar)(windows_core::Interface::as_raw(self), pvenginegrammar).ok() } pub unsafe fn LoadProprietaryGrammar(&self, pvenginegrammar: *const core::ffi::c_void, rguidparam: *const windows_core::GUID, pszstringparam: P2, pvdataparam: *const core::ffi::c_void, uldatasize: u32, options: SPLOADOPTIONS) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadProprietaryGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(rguidparam), pszstringparam.param().abi(), core::mem::transmute(pvdataparam), core::mem::transmute(uldatasize), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).LoadProprietaryGrammar)(windows_core::Interface::as_raw(self), pvenginegrammar, rguidparam, pszstringparam.param().abi(), pvdataparam, uldatasize, options).ok() } pub unsafe fn UnloadProprietaryGrammar(&self, pvenginegrammar: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnloadProprietaryGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar)).ok() + (windows_core::Interface::vtable(self).UnloadProprietaryGrammar)(windows_core::Interface::as_raw(self), pvenginegrammar).ok() } pub unsafe fn SetProprietaryRuleState(&self, pvenginegrammar: *const core::ffi::c_void, pszname: P1, preserved: *const core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetProprietaryRuleState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), pszname.param().abi(), core::mem::transmute(preserved), core::mem::transmute(newstate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetProprietaryRuleState)(windows_core::Interface::as_raw(self), pvenginegrammar, pszname.param().abi(), preserved, newstate, &mut result__).map(|| result__) } pub unsafe fn SetProprietaryRuleIdState(&self, pvenginegrammar: *const core::ffi::c_void, dwruleid: u32, newstate: SPRULESTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProprietaryRuleIdState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(dwruleid), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetProprietaryRuleIdState)(windows_core::Interface::as_raw(self), pvenginegrammar, dwruleid, newstate).ok() } pub unsafe fn LoadSLM(&self, pvenginegrammar: *const core::ffi::c_void, psztopicname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadSLM)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), psztopicname.param().abi()).ok() + (windows_core::Interface::vtable(self).LoadSLM)(windows_core::Interface::as_raw(self), pvenginegrammar, psztopicname.param().abi()).ok() } pub unsafe fn UnloadSLM(&self, pvenginegrammar: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnloadSLM)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar)).ok() + (windows_core::Interface::vtable(self).UnloadSLM)(windows_core::Interface::as_raw(self), pvenginegrammar).ok() } pub unsafe fn SetSLMState(&self, pvenginegrammar: *const core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSLMState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).SetSLMState)(windows_core::Interface::as_raw(self), pvenginegrammar, newstate).ok() } pub unsafe fn SetWordSequenceData(&self, pvenginegrammar: *const core::ffi::c_void, ptext: &[u16], pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(ptext.as_ptr()), ptext.len().try_into().unwrap(), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), pvenginegrammar, core::mem::transmute(ptext.as_ptr()), ptext.len().try_into().unwrap(), pinfo).ok() } pub unsafe fn SetTextSelection(&self, pvenginegrammar: *const core::ffi::c_void, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).SetTextSelection)(windows_core::Interface::as_raw(self), pvenginegrammar, pinfo).ok() } pub unsafe fn IsPronounceable(&self, pvenginegrammar: *const core::ffi::c_void, pszword: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), pszword.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), pvenginegrammar, pszword.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnCreateRecoContext(&self, hsapirecocontext: SPRECOCONTEXTHANDLE, ppvenginecontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCreateRecoContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hsapirecocontext), core::mem::transmute(ppvenginecontext)).ok() + (windows_core::Interface::vtable(self).OnCreateRecoContext)(windows_core::Interface::as_raw(self), hsapirecocontext, core::mem::transmute(ppvenginecontext)).ok() } pub unsafe fn OnDeleteRecoContext(&self, pvenginecontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDeleteRecoContext)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext)).ok() + (windows_core::Interface::vtable(self).OnDeleteRecoContext)(windows_core::Interface::as_raw(self), pvenginecontext).ok() } pub unsafe fn PrivateCall(&self, pvenginecontext: *const core::ffi::c_void, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrivateCall)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext), core::mem::transmute(pcallframe), core::mem::transmute(ulcallframesize)).ok() + (windows_core::Interface::vtable(self).PrivateCall)(windows_core::Interface::as_raw(self), pvenginecontext, core::mem::transmute(pcallframe), ulcallframesize).ok() } pub unsafe fn SetAdaptationData(&self, pvenginecontext: *const core::ffi::c_void, padaptationdata: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext), core::mem::transmute(padaptationdata.as_ptr()), padaptationdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), pvenginecontext, core::mem::transmute(padaptationdata.as_ptr()), padaptationdata.len().try_into().unwrap()).ok() } pub unsafe fn SetPropertyNum(&self, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: P2, lvalue: i32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyNum)(windows_core::Interface::as_raw(self), core::mem::transmute(esrc), core::mem::transmute(pvsrcobj), pname.param().abi(), core::mem::transmute(lvalue)).ok() + (windows_core::Interface::vtable(self).SetPropertyNum)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.param().abi(), lvalue).ok() } pub unsafe fn GetPropertyNum(&self, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyNum)(windows_core::Interface::as_raw(self), core::mem::transmute(esrc), core::mem::transmute(pvsrcobj), pname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPropertyNum)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetPropertyString(&self, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: P2, pvalue: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), core::mem::transmute(esrc), core::mem::transmute(pvsrcobj), pname.param().abi(), pvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.param().abi(), pvalue.param().abi()).ok() } pub unsafe fn GetPropertyString(&self, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), core::mem::transmute(esrc), core::mem::transmute(pvsrcobj), pname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetGrammarState(&self, pvenginegrammar: *const core::ffi::c_void, egrammarstate: SPGRAMMARSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGrammarState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(egrammarstate)).ok() + (windows_core::Interface::vtable(self).SetGrammarState)(windows_core::Interface::as_raw(self), pvenginegrammar, egrammarstate).ok() } pub unsafe fn WordNotify(&self, action: SPCFGNOTIFY, cwords: u32, pwords: *const SPWORDENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WordNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(action), core::mem::transmute(cwords), core::mem::transmute(pwords)).ok() + (windows_core::Interface::vtable(self).WordNotify)(windows_core::Interface::as_raw(self), action, cwords, pwords).ok() } pub unsafe fn RuleNotify(&self, action: SPCFGNOTIFY, crules: u32, prules: *const SPRULEENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RuleNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(action), core::mem::transmute(crules), core::mem::transmute(prules)).ok() + (windows_core::Interface::vtable(self).RuleNotify)(windows_core::Interface::as_raw(self), action, crules, prules).ok() } pub unsafe fn PrivateCallEx(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).PrivateCallEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext), core::mem::transmute(pincallframe), core::mem::transmute(ulincallframesize), core::mem::transmute(ppvcomemresponse), core::mem::transmute(pulresponsesize)).ok() + (windows_core::Interface::vtable(self).PrivateCallEx)(windows_core::Interface::as_raw(self), pvenginecontext, pincallframe, ulincallframesize, core::mem::transmute(ppvcomemresponse), core::mem::transmute(pulresponsesize)).ok() } pub unsafe fn SetContextState(&self, pvenginecontext: *const core::ffi::c_void, econtextstate: SPCONTEXTSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContextState)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext), core::mem::transmute(econtextstate)).ok() + (windows_core::Interface::vtable(self).SetContextState)(windows_core::Interface::as_raw(self), pvenginecontext, econtextstate).ok() } } #[repr(C)] @@ -4956,34 +4956,34 @@ impl core::ops::Deref for ISpSREngine2 { windows_core::imp::interface_hierarchy!(ISpSREngine2, windows_core::IUnknown, ISpSREngine); impl ISpSREngine2 { pub unsafe fn PrivateCallImmediate(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).PrivateCallImmediate)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext), core::mem::transmute(pincallframe), core::mem::transmute(ulincallframesize), core::mem::transmute(ppvcomemresponse), core::mem::transmute(pulresponsesize)).ok() + (windows_core::Interface::vtable(self).PrivateCallImmediate)(windows_core::Interface::as_raw(self), pvenginecontext, pincallframe, ulincallframesize, core::mem::transmute(ppvcomemresponse), core::mem::transmute(pulresponsesize)).ok() } pub unsafe fn SetAdaptationData2(&self, pvenginecontext: *const core::ffi::c_void, padaptationdata: &[u16], ptopicname: P3, esettings: SPADAPTATIONSETTINGS, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdaptationData2)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginecontext), core::mem::transmute(padaptationdata.as_ptr()), padaptationdata.len().try_into().unwrap(), ptopicname.param().abi(), core::mem::transmute(esettings), core::mem::transmute(erelevance)).ok() + (windows_core::Interface::vtable(self).SetAdaptationData2)(windows_core::Interface::as_raw(self), pvenginecontext, core::mem::transmute(padaptationdata.as_ptr()), padaptationdata.len().try_into().unwrap(), ptopicname.param().abi(), esettings, erelevance).ok() } pub unsafe fn SetGrammarPrefix(&self, pvenginegrammar: *const core::ffi::c_void, pszprefix: P1, fisprefixrequired: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGrammarPrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), pszprefix.param().abi(), fisprefixrequired.into()).ok() + (windows_core::Interface::vtable(self).SetGrammarPrefix)(windows_core::Interface::as_raw(self), pvenginegrammar, pszprefix.param().abi(), fisprefixrequired.into()).ok() } pub unsafe fn SetRulePriority(&self, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, nrulepriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(hrule), core::mem::transmute(pvclientrulecontext), core::mem::transmute(nrulepriority)).ok() + (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), hrule, pvclientrulecontext, nrulepriority).ok() } pub unsafe fn EmulateRecognition(&self, pphrase: P0, dwcompareflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), pphrase.param().abi(), core::mem::transmute(dwcompareflags)).ok() + (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), pphrase.param().abi(), dwcompareflags).ok() } pub unsafe fn SetSLMWeight(&self, pvenginegrammar: *const core::ffi::c_void, flweight: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSLMWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(flweight)).ok() + (windows_core::Interface::vtable(self).SetSLMWeight)(windows_core::Interface::as_raw(self), pvenginegrammar, flweight).ok() } pub unsafe fn SetRuleWeight(&self, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, flweight: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(hrule), core::mem::transmute(pvclientrulecontext), core::mem::transmute(flweight)).ok() + (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), hrule, pvclientrulecontext, flweight).ok() } pub unsafe fn SetTrainingState(&self, fdoingtraining: bool, fadaptfromtrainingdata: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetTrainingState)(windows_core::Interface::as_raw(self), fdoingtraining.into(), fadaptfromtrainingdata.into()).ok() @@ -4992,10 +4992,10 @@ impl ISpSREngine2 { (windows_core::Interface::vtable(self).ResetAcousticModelAdaptation)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnLoadCFG(&self, pvenginegrammar: *const core::ffi::c_void, pgrammardata: *const SPBINARYGRAMMAR, ulgrammarid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLoadCFG)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(pgrammardata), core::mem::transmute(ulgrammarid)).ok() + (windows_core::Interface::vtable(self).OnLoadCFG)(windows_core::Interface::as_raw(self), pvenginegrammar, pgrammardata, ulgrammarid).ok() } pub unsafe fn OnUnloadCFG(&self, pvenginegrammar: *const core::ffi::c_void, ulgrammarid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUnloadCFG)(windows_core::Interface::as_raw(self), core::mem::transmute(pvenginegrammar), core::mem::transmute(ulgrammarid)).ok() + (windows_core::Interface::vtable(self).OnUnloadCFG)(windows_core::Interface::as_raw(self), pvenginegrammar, ulgrammarid).ok() } } #[repr(C)] @@ -5100,68 +5100,68 @@ windows_core::imp::interface_hierarchy!(ISpSREngineSite, windows_core::IUnknown) impl ISpSREngineSite { pub unsafe fn Read(&self, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), core::mem::transmute(cb), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pv, cb, &mut result__).map(|| result__) } pub unsafe fn DataAvailable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DataAvailable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferNotifySize(&self, cbsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferNotifySize)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize)).ok() + (windows_core::Interface::vtable(self).SetBufferNotifySize)(windows_core::Interface::as_raw(self), cbsize).ok() } pub unsafe fn ParseFromTransitions(&self, pparseinfo: *const SPPARSEINFO) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseFromTransitions)(windows_core::Interface::as_raw(self), core::mem::transmute(pparseinfo), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseFromTransitions)(windows_core::Interface::as_raw(self), pparseinfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Recognition(&self, presultinfo: *const SPRECORESULTINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Recognition)(windows_core::Interface::as_raw(self), core::mem::transmute(presultinfo)).ok() } pub unsafe fn AddEvent(&self, pevent: *const SPEVENT, hsapirecocontext: SPRECOCONTEXTHANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(pevent), core::mem::transmute(hsapirecocontext)).ok() + (windows_core::Interface::vtable(self).AddEvent)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext).ok() } pub unsafe fn Synchronize(&self, ullprocessedthrupos: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(ullprocessedthrupos)).ok() + (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), ullprocessedthrupos).ok() } pub unsafe fn GetWordInfo(&self, pwordentry: *mut SPWORDENTRY, options: SPWORDINFOOPT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWordInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pwordentry), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).GetWordInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pwordentry), options).ok() } pub unsafe fn SetWordClientContext(&self, hword: SPWORDHANDLE, pvclientcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWordClientContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hword), core::mem::transmute(pvclientcontext)).ok() + (windows_core::Interface::vtable(self).SetWordClientContext)(windows_core::Interface::as_raw(self), hword, pvclientcontext).ok() } pub unsafe fn GetRuleInfo(&self, pruleentry: *mut SPRULEENTRY, options: SPRULEINFOOPT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRuleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pruleentry), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).GetRuleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pruleentry), options).ok() } pub unsafe fn SetRuleClientContext(&self, hrule: SPRULEHANDLE, pvclientcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRuleClientContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hrule), core::mem::transmute(pvclientcontext)).ok() + (windows_core::Interface::vtable(self).SetRuleClientContext)(windows_core::Interface::as_raw(self), hrule, pvclientcontext).ok() } pub unsafe fn GetStateInfo(&self, hstate: SPSTATEHANDLE, pstateinfo: *mut SPSTATEINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStateInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hstate), core::mem::transmute(pstateinfo)).ok() + (windows_core::Interface::vtable(self).GetStateInfo)(windows_core::Interface::as_raw(self), hstate, core::mem::transmute(pstateinfo)).ok() } pub unsafe fn GetResource(&self, hrule: SPRULEHANDLE, pszresourcename: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), core::mem::transmute(hrule), pszresourcename.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), hrule, pszresourcename.param().abi(), &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetTransitionProperty(&self, id: SPTRANSITIONID) -> windows_core::Result<*mut SPTRANSITIONPROPERTY> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTransitionProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTransitionProperty)(windows_core::Interface::as_raw(self), id, &mut result__).map(|| result__) } pub unsafe fn IsAlternate(&self, hrule: SPRULEHANDLE, haltrule: SPRULEHANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsAlternate)(windows_core::Interface::as_raw(self), core::mem::transmute(hrule), core::mem::transmute(haltrule)).ok() + (windows_core::Interface::vtable(self).IsAlternate)(windows_core::Interface::as_raw(self), hrule, haltrule).ok() } pub unsafe fn GetMaxAlternates(&self, hrule: SPRULEHANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(hrule), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxAlternates)(windows_core::Interface::as_raw(self), hrule, &mut result__).map(|| result__) } pub unsafe fn GetContextMaxAlternates(&self, hcontext: SPRECOCONTEXTHANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContextMaxAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(hcontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContextMaxAlternates)(windows_core::Interface::as_raw(self), hcontext, &mut result__).map(|| result__) } pub unsafe fn UpdateRecoPos(&self, ullcurrentrecopos: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateRecoPos)(windows_core::Interface::as_raw(self), core::mem::transmute(ullcurrentrecopos)).ok() + (windows_core::Interface::vtable(self).UpdateRecoPos)(windows_core::Interface::as_raw(self), ullcurrentrecopos).ok() } } #[repr(C)] @@ -5365,13 +5365,13 @@ impl core::ops::Deref for ISpSREngineSite2 { windows_core::imp::interface_hierarchy!(ISpSREngineSite2, windows_core::IUnknown, ISpSREngineSite); impl ISpSREngineSite2 { pub unsafe fn AddEventEx(&self, pevent: *const SPEVENTEX, hsapirecocontext: SPRECOCONTEXTHANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEventEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pevent), core::mem::transmute(hsapirecocontext)).ok() + (windows_core::Interface::vtable(self).AddEventEx)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext).ok() } pub unsafe fn UpdateRecoPosEx(&self, ullcurrentrecopos: u64, ullcurrentrecotime: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateRecoPosEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ullcurrentrecopos), core::mem::transmute(ullcurrentrecotime)).ok() + (windows_core::Interface::vtable(self).UpdateRecoPosEx)(windows_core::Interface::as_raw(self), ullcurrentrecopos, ullcurrentrecotime).ok() } pub unsafe fn GetRuleTransition(&self, ulgrammarid: u32, ruleindex: u32, ptrans: *mut SPTRANSITIONENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRuleTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(ulgrammarid), core::mem::transmute(ruleindex), core::mem::transmute(ptrans)).ok() + (windows_core::Interface::vtable(self).GetRuleTransition)(windows_core::Interface::as_raw(self), ulgrammarid, ruleindex, core::mem::transmute(ptrans)).ok() } pub unsafe fn RecognitionEx(&self, presultinfo: *const SPRECORESULTINFOEX) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RecognitionEx)(windows_core::Interface::as_raw(self), core::mem::transmute(presultinfo)).ok() @@ -5429,10 +5429,10 @@ windows_core::imp::define_interface!(ISpSerializeState, ISpSerializeState_Vtbl, windows_core::imp::interface_hierarchy!(ISpSerializeState, windows_core::IUnknown); impl ISpSerializeState { pub unsafe fn GetSerializedState(&self, ppbdata: *mut *mut u8, pulsize: *mut u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSerializedState)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbdata), core::mem::transmute(pulsize), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetSerializedState)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbdata), core::mem::transmute(pulsize), dwreserved).ok() } pub unsafe fn SetSerializedState(&self, pbdata: *const u8, ulsize: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSerializedState)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), core::mem::transmute(ulsize), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetSerializedState)(windows_core::Interface::as_raw(self), pbdata, ulsize, dwreserved).ok() } } #[repr(C)] @@ -5474,17 +5474,17 @@ impl ISpShortcut { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddShortcut)(windows_core::Interface::as_raw(self), pszdisplay.param().abi(), core::mem::transmute(langid), pszspoken.param().abi(), core::mem::transmute(shtype)).ok() + (windows_core::Interface::vtable(self).AddShortcut)(windows_core::Interface::as_raw(self), pszdisplay.param().abi(), langid, pszspoken.param().abi(), shtype).ok() } pub unsafe fn RemoveShortcut(&self, pszdisplay: P0, langid: u16, pszspoken: P2, shtype: SPSHORTCUTTYPE) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveShortcut)(windows_core::Interface::as_raw(self), pszdisplay.param().abi(), core::mem::transmute(langid), pszspoken.param().abi(), core::mem::transmute(shtype)).ok() + (windows_core::Interface::vtable(self).RemoveShortcut)(windows_core::Interface::as_raw(self), pszdisplay.param().abi(), langid, pszspoken.param().abi(), shtype).ok() } pub unsafe fn GetShortcuts(&self, langid: u16, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetShortcuts)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), core::mem::transmute(pshortcutpairlist)).ok() + (windows_core::Interface::vtable(self).GetShortcuts)(windows_core::Interface::as_raw(self), langid, core::mem::transmute(pshortcutpairlist)).ok() } pub unsafe fn GetGeneration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5600,7 +5600,7 @@ impl ISpStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBaseStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(rguidformat), core::mem::transmute(pwaveformatex)).ok() + (windows_core::Interface::vtable(self).SetBaseStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), rguidformat, pwaveformatex).ok() } pub unsafe fn GetBaseStream(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5611,7 +5611,7 @@ impl ISpStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindToFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(emode), core::mem::transmute(pformatid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwaveformatex.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulleventinterest)).ok() + (windows_core::Interface::vtable(self).BindToFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), emode, core::mem::transmute(pformatid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwaveformatex.unwrap_or(core::mem::zeroed())), ulleventinterest).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -5694,7 +5694,7 @@ impl ISpStreamFormat { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn GetFormat(&self, pguidformatid: *const windows_core::GUID) -> windows_core::Result<*mut super::Audio::WAVEFORMATEX> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidformatid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), pguidformatid, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5756,18 +5756,18 @@ impl ISpStreamFormatConverter { } #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn SetFormat(&self, rguidformatidofconvertedstream: *const windows_core::GUID, pwaveformatexofconvertedstream: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidformatidofconvertedstream), core::mem::transmute(pwaveformatexofconvertedstream)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), rguidformatidofconvertedstream, pwaveformatexofconvertedstream).ok() } pub unsafe fn ResetSeekPosition(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetSeekPosition)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ScaleConvertedToBaseOffset(&self, ulloffsetconvertedstream: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ScaleConvertedToBaseOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffsetconvertedstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ScaleConvertedToBaseOffset)(windows_core::Interface::as_raw(self), ulloffsetconvertedstream, &mut result__).map(|| result__) } pub unsafe fn ScaleBaseToConvertedOffset(&self, ulloffsetbasestream: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ScaleBaseToConvertedOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffsetbasestream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ScaleBaseToConvertedOffset)(windows_core::Interface::as_raw(self), ulloffsetbasestream, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5862,11 +5862,11 @@ impl ISpTTSEngine { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspeakflags), core::mem::transmute(rguidformatid), core::mem::transmute(pwaveformatex), core::mem::transmute(ptextfraglist), poutputsite.param().abi()).ok() + (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), dwspeakflags, rguidformatid, pwaveformatex, ptextfraglist, poutputsite.param().abi()).ok() } #[cfg(feature = "Win32_Media_Audio")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetOutputFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(ptargetfmtid), core::mem::transmute(ptargetwaveformatex), core::mem::transmute(poutputformatid), core::mem::transmute(ppcomemoutputwaveformatex)).ok() + (windows_core::Interface::vtable(self).GetOutputFormat)(windows_core::Interface::as_raw(self), ptargetfmtid, ptargetwaveformatex, core::mem::transmute(poutputformatid), core::mem::transmute(ppcomemoutputwaveformatex)).ok() } } #[repr(C)] @@ -5923,7 +5923,7 @@ impl ISpTTSEngineSite { } pub unsafe fn Write(&self, pbuff: *const core::ffi::c_void, cb: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuff), core::mem::transmute(cb), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pbuff, cb, &mut result__).map(|| result__) } pub unsafe fn GetRate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5937,7 +5937,7 @@ impl ISpTTSEngineSite { (windows_core::Interface::vtable(self).GetSkipInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(petype), core::mem::transmute(plnumitems)).ok() } pub unsafe fn CompleteSkip(&self, ulnumskipped: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompleteSkip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulnumskipped)).ok() + (windows_core::Interface::vtable(self).CompleteSkip)(windows_core::Interface::as_raw(self), ulnumskipped).ok() } } #[repr(C)] @@ -6020,7 +6020,7 @@ impl windows_core::RuntimeName for ISpTTSEngineSite {} windows_core::imp::define_interface!(ISpTask, ISpTask_Vtbl); impl ISpTask { pub unsafe fn Execute(&self, pvtaskdata: *mut core::ffi::c_void, pfcontinueprocessing: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), core::mem::transmute(pfcontinueprocessing)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), pfcontinueprocessing).ok() } } #[repr(C)] @@ -6055,7 +6055,7 @@ windows_core::imp::define_interface!(ISpTaskManager, ISpTaskManager_Vtbl, 0x2bae windows_core::imp::interface_hierarchy!(ISpTaskManager, windows_core::IUnknown); impl ISpTaskManager { pub unsafe fn SetThreadPoolInfo(&self, ppoolinfo: *const SPTMTHREADINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadPoolInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ppoolinfo)).ok() + (windows_core::Interface::vtable(self).SetThreadPoolInfo)(windows_core::Interface::as_raw(self), ppoolinfo).ok() } pub unsafe fn GetThreadPoolInfo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6065,27 +6065,27 @@ impl ISpTaskManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueueTask)(windows_core::Interface::as_raw(self), ptask.param().abi(), core::mem::transmute(pvtaskdata), core::mem::transmute(hcompevent), core::mem::transmute(pdwgroupid), core::mem::transmute(ptaskid)).ok() + (windows_core::Interface::vtable(self).QueueTask)(windows_core::Interface::as_raw(self), ptask.param().abi(), pvtaskdata, hcompevent, core::mem::transmute(pdwgroupid), core::mem::transmute(ptaskid)).ok() } pub unsafe fn CreateReoccurringTask(&self, ptask: P0, pvtaskdata: *const core::ffi::c_void, hcompevent: super::super::Foundation::HANDLE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReoccurringTask)(windows_core::Interface::as_raw(self), ptask.param().abi(), core::mem::transmute(pvtaskdata), core::mem::transmute(hcompevent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateReoccurringTask)(windows_core::Interface::as_raw(self), ptask.param().abi(), pvtaskdata, hcompevent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateThreadControl(&self, ptask: P0, pvtaskdata: *const core::ffi::c_void, npriority: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateThreadControl)(windows_core::Interface::as_raw(self), ptask.param().abi(), core::mem::transmute(pvtaskdata), core::mem::transmute(npriority), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateThreadControl)(windows_core::Interface::as_raw(self), ptask.param().abi(), pvtaskdata, npriority, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TerminateTask(&self, dwtaskid: u32, ulwaitperiod: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TerminateTask)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtaskid), core::mem::transmute(ulwaitperiod)).ok() + (windows_core::Interface::vtable(self).TerminateTask)(windows_core::Interface::as_raw(self), dwtaskid, ulwaitperiod).ok() } pub unsafe fn TerminateTaskGroup(&self, dwgroupid: u32, ulwaitperiod: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TerminateTaskGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(dwgroupid), core::mem::transmute(ulwaitperiod)).ok() + (windows_core::Interface::vtable(self).TerminateTaskGroup)(windows_core::Interface::as_raw(self), dwgroupid, ulwaitperiod).ok() } } #[repr(C)] @@ -6183,10 +6183,10 @@ windows_core::imp::interface_hierarchy!(ISpThreadControl, windows_core::IUnknown impl ISpThreadControl { pub unsafe fn StartThread(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StartThread)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StartThread)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn WaitForThreadDone(&self, fforcestop: bool, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForThreadDone)(windows_core::Interface::as_raw(self), fforcestop.into(), core::mem::transmute(phrthreadresult), core::mem::transmute(mstimeout)).ok() + (windows_core::Interface::vtable(self).WaitForThreadDone)(windows_core::Interface::as_raw(self), fforcestop.into(), core::mem::transmute(phrthreadresult), mstimeout).ok() } pub unsafe fn TerminateThread(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateThread)(windows_core::Interface::as_raw(self)).ok() @@ -6299,13 +6299,13 @@ impl windows_core::RuntimeName for ISpThreadControl {} windows_core::imp::define_interface!(ISpThreadTask, ISpThreadTask_Vtbl); impl ISpThreadTask { pub unsafe fn InitThread(&self, pvtaskdata: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitThread)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).InitThread)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), hwnd).ok() } pub unsafe fn ThreadProc(&self, pvtaskdata: *mut core::ffi::c_void, hexitthreadevent: super::super::Foundation::HANDLE, hnotifyevent: super::super::Foundation::HANDLE, hwndworker: super::super::Foundation::HWND, pfcontinueprocessing: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadProc)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), core::mem::transmute(hexitthreadevent), core::mem::transmute(hnotifyevent), core::mem::transmute(hwndworker), core::mem::transmute(pfcontinueprocessing)).ok() + (windows_core::Interface::vtable(self).ThreadProc)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), hexitthreadevent, hnotifyevent, hwndworker, pfcontinueprocessing).ok() } pub unsafe fn WindowMessage(&self, pvtaskdata: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { - (windows_core::Interface::vtable(self).WindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + (windows_core::Interface::vtable(self).WindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtaskdata), hwnd, msg, wparam, lparam) } } #[repr(C)] @@ -6359,7 +6359,7 @@ impl ISpTokenUI { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata), punkobject.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), pvextradata, cbextradata, punkobject.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: P1, psztypeofui: P2, pvextradata: *const core::ffi::c_void, cbextradata: u32, ptoken: P5, punkobject: P6) -> windows_core::Result<()> where @@ -6368,7 +6368,7 @@ impl ISpTokenUI { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata), ptoken.param().abi(), punkobject.param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, psztitle.param().abi(), psztypeofui.param().abi(), pvextradata, cbextradata, ptoken.param().abi(), punkobject.param().abi()).ok() } } #[repr(C)] @@ -6503,14 +6503,14 @@ impl ISpVoice { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), pwcs.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pulstreamnumber.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), pwcs.param().abi(), dwflags, core::mem::transmute(pulstreamnumber.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SpeakStream(&self, pstream: P0, dwflags: u32, pulstreamnumber: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pulstreamnumber.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwflags, core::mem::transmute(pulstreamnumber.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetStatus(&self, pstatus: *mut SPVOICESTATUS, ppszlastbookmark: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatus), core::mem::transmute(ppszlastbookmark)).ok() @@ -6519,37 +6519,37 @@ impl ISpVoice { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), pitemtype.param().abi(), core::mem::transmute(lnumitems), core::mem::transmute(pulnumskipped)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), pitemtype.param().abi(), lnumitems, core::mem::transmute(pulnumskipped)).ok() } pub unsafe fn SetPriority(&self, epriority: SPVPRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(epriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), epriority).ok() } pub unsafe fn GetPriority(&self, pepriority: *mut SPVPRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(pepriority)).ok() } pub unsafe fn SetAlertBoundary(&self, eboundary: SPEVENTENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlertBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(eboundary)).ok() + (windows_core::Interface::vtable(self).SetAlertBoundary)(windows_core::Interface::as_raw(self), eboundary).ok() } pub unsafe fn GetAlertBoundary(&self, peboundary: *mut SPEVENTENUM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAlertBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(peboundary)).ok() } pub unsafe fn SetRate(&self, rateadjust: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(rateadjust)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), rateadjust).ok() } pub unsafe fn GetRate(&self, prateadjust: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(prateadjust)).ok() } pub unsafe fn SetVolume(&self, usvolume: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(usvolume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), usvolume).ok() } pub unsafe fn GetVolume(&self, pusvolume: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(pusvolume)).ok() } pub unsafe fn WaitUntilDone(&self, mstimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitUntilDone)(windows_core::Interface::as_raw(self), core::mem::transmute(mstimeout)).ok() + (windows_core::Interface::vtable(self).WaitUntilDone)(windows_core::Interface::as_raw(self), mstimeout).ok() } pub unsafe fn SetSyncSpeakTimeout(&self, mstimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncSpeakTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(mstimeout)).ok() + (windows_core::Interface::vtable(self).SetSyncSpeakTimeout)(windows_core::Interface::as_raw(self), mstimeout).ok() } pub unsafe fn GetSyncSpeakTimeout(&self, pmstimeout: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSyncSpeakTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(pmstimeout)).ok() @@ -6561,14 +6561,14 @@ impl ISpVoice { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata), core::mem::transmute(pfsupported)).ok() + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), core::mem::transmute(pvextradata), cbextradata, core::mem::transmute(pfsupported)).ok() } pub unsafe fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), core::mem::transmute(cbextradata)).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, psztitle.param().abi(), psztypeofui.param().abi(), core::mem::transmute(pvextradata), cbextradata).ok() } } #[repr(C)] @@ -6800,7 +6800,7 @@ impl core::ops::Deref for ISpXMLRecoResult { windows_core::imp::interface_hierarchy!(ISpXMLRecoResult, windows_core::IUnknown, ISpPhrase, ISpRecoResult); impl ISpXMLRecoResult { pub unsafe fn GetXMLResult(&self, ppszcomemxmlresult: *mut windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszcomemxmlresult), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszcomemxmlresult), options).ok() } pub unsafe fn GetXMLErrorInfo(&self, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetXMLErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(psemanticerrorinfo)).ok() @@ -6870,21 +6870,21 @@ impl ISpeechAudio { (windows_core::Interface::vtable(self).Volume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVolume(&self, volume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(volume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), volume).ok() } pub unsafe fn BufferNotifySize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BufferNotifySize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferNotifySize(&self, buffernotifysize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferNotifySize)(windows_core::Interface::as_raw(self), core::mem::transmute(buffernotifysize)).ok() + (windows_core::Interface::vtable(self).SetBufferNotifySize)(windows_core::Interface::as_raw(self), buffernotifysize).ok() } pub unsafe fn EventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetState(&self, state: SpeechAudioState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7025,21 +7025,21 @@ impl ISpeechAudioBufferInfo { (windows_core::Interface::vtable(self).MinNotification)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinNotification(&self, minnotification: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(minnotification)).ok() + (windows_core::Interface::vtable(self).SetMinNotification)(windows_core::Interface::as_raw(self), minnotification).ok() } pub unsafe fn BufferSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BufferSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferSize(&self, buffersize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferSize)(windows_core::Interface::as_raw(self), core::mem::transmute(buffersize)).ok() + (windows_core::Interface::vtable(self).SetBufferSize)(windows_core::Interface::as_raw(self), buffersize).ok() } pub unsafe fn EventBias(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventBias)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventBias(&self, eventbias: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventBias)(windows_core::Interface::as_raw(self), core::mem::transmute(eventbias)).ok() + (windows_core::Interface::vtable(self).SetEventBias)(windows_core::Interface::as_raw(self), eventbias).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7141,7 +7141,7 @@ impl ISpeechAudioFormat { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, audioformat: SpeechAudioFormatType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(audioformat)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), audioformat).ok() } pub unsafe fn Guid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7395,7 +7395,7 @@ impl ISpeechBaseStream { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Read(&self, buffer: *mut super::super::System::Variant::VARIANT, numberofbytes: i32, bytesread: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), core::mem::transmute(numberofbytes), core::mem::transmute(bytesread)).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), numberofbytes, core::mem::transmute(bytesread)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Write(&self, buffer: &super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -7405,7 +7405,7 @@ impl ISpeechBaseStream { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Seek(&self, position: &super::super::System::Variant::VARIANT, origin: SpeechStreamSeekPositionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(position), core::mem::transmute(origin), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(position), origin, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7586,7 +7586,7 @@ impl ISpeechDataKey { (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(valuename), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetLongValue(&self, valuename: &windows_core::BSTR, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLongValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(valuename), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetLongValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(valuename), value).ok() } pub unsafe fn GetLongValue(&self, valuename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7608,11 +7608,11 @@ impl ISpeechDataKey { } pub unsafe fn EnumKeys(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EnumValues(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumValues)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EnumValues)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7782,7 +7782,7 @@ windows_core::imp::interface_hierarchy!(ISpeechFileStream, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl ISpeechFileStream { pub unsafe fn Open(&self, filename: &windows_core::BSTR, filemode: SpeechStreamFileMode, doevents: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filename), core::mem::transmute(filemode), core::mem::transmute(doevents)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filename), filemode, doevents).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -7985,7 +7985,7 @@ impl ISpeechGrammarRuleState { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), deststate.param().abi(), core::mem::transmute_copy(words), core::mem::transmute_copy(separators), core::mem::transmute(r#type), core::mem::transmute_copy(propertyname), core::mem::transmute(propertyid), core::mem::transmute(propertyvalue), core::mem::transmute(weight)).ok() + (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), deststate.param().abi(), core::mem::transmute_copy(words), core::mem::transmute_copy(separators), r#type, core::mem::transmute_copy(propertyname), propertyid, core::mem::transmute(propertyvalue), weight).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddRuleTransition(&self, destinationstate: P0, rule: P1, propertyname: &windows_core::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Variant::VARIANT, weight: f32) -> windows_core::Result<()> @@ -7993,14 +7993,14 @@ impl ISpeechGrammarRuleState { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), destinationstate.param().abi(), rule.param().abi(), core::mem::transmute_copy(propertyname), core::mem::transmute(propertyid), core::mem::transmute(propertyvalue), core::mem::transmute(weight)).ok() + (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), destinationstate.param().abi(), rule.param().abi(), core::mem::transmute_copy(propertyname), propertyid, core::mem::transmute(propertyvalue), weight).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddSpecialTransition(&self, destinationstate: P0, r#type: SpeechSpecialTransitionType, propertyname: &windows_core::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Variant::VARIANT, weight: f32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSpecialTransition)(windows_core::Interface::as_raw(self), destinationstate.param().abi(), core::mem::transmute(r#type), core::mem::transmute_copy(propertyname), core::mem::transmute(propertyid), core::mem::transmute(propertyvalue), core::mem::transmute(weight)).ok() + (windows_core::Interface::vtable(self).AddSpecialTransition)(windows_core::Interface::as_raw(self), destinationstate.param().abi(), r#type, core::mem::transmute_copy(propertyname), propertyid, core::mem::transmute(propertyvalue), weight).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8278,7 +8278,7 @@ impl ISpeechGrammarRuleStateTransitions { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8369,7 +8369,7 @@ impl ISpeechGrammarRules { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8381,7 +8381,7 @@ impl ISpeechGrammarRules { } pub unsafe fn Add(&self, rulename: &windows_core::BSTR, attributes: SpeechRuleAttributes, ruleid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(rulename), core::mem::transmute(attributes), core::mem::transmute(ruleid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(rulename), attributes, ruleid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -8528,25 +8528,25 @@ impl ISpeechLexicon { (windows_core::Interface::vtable(self).GenerationId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetWords(&self, flags: SpeechLexiconType, generationid: *mut i32, words: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(generationid), core::mem::transmute(words)).ok() + (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), flags, core::mem::transmute(generationid), core::mem::transmute(words)).ok() } pub unsafe fn AddPronunciation(&self, bstrword: &windows_core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), core::mem::transmute(langid), core::mem::transmute(partofspeech), core::mem::transmute_copy(bstrpronunciation)).ok() + (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), langid, partofspeech, core::mem::transmute_copy(bstrpronunciation)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPronunciationByPhoneIds(&self, bstrword: &windows_core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPronunciationByPhoneIds)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), core::mem::transmute(langid), core::mem::transmute(partofspeech), core::mem::transmute(phoneids)).ok() + (windows_core::Interface::vtable(self).AddPronunciationByPhoneIds)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), langid, partofspeech, core::mem::transmute(phoneids)).ok() } pub unsafe fn RemovePronunciation(&self, bstrword: &windows_core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), core::mem::transmute(langid), core::mem::transmute(partofspeech), core::mem::transmute_copy(bstrpronunciation)).ok() + (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), langid, partofspeech, core::mem::transmute_copy(bstrpronunciation)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RemovePronunciationByPhoneIds(&self, bstrword: &windows_core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemovePronunciationByPhoneIds)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), core::mem::transmute(langid), core::mem::transmute(partofspeech), core::mem::transmute(phoneids)).ok() + (windows_core::Interface::vtable(self).RemovePronunciationByPhoneIds)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), langid, partofspeech, core::mem::transmute(phoneids)).ok() } pub unsafe fn GetPronunciations(&self, bstrword: &windows_core::BSTR, langid: i32, typeflags: SpeechLexiconType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), core::mem::transmute(langid), core::mem::transmute(typeflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrword), langid, typeflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetGenerationChange(&self, generationid: *mut i32, ppwords: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGenerationChange)(windows_core::Interface::as_raw(self), core::mem::transmute(generationid), core::mem::transmute(ppwords)).ok() @@ -8790,7 +8790,7 @@ impl ISpeechLexiconPronunciations { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8979,7 +8979,7 @@ impl ISpeechLexiconWords { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9064,14 +9064,14 @@ impl ISpeechMMSysAudio { (windows_core::Interface::vtable(self).DeviceId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDeviceId(&self, deviceid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeviceId)(windows_core::Interface::as_raw(self), core::mem::transmute(deviceid)).ok() + (windows_core::Interface::vtable(self).SetDeviceId)(windows_core::Interface::as_raw(self), deviceid).ok() } pub unsafe fn LineId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LineId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLineId(&self, lineid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineId)(windows_core::Interface::as_raw(self), core::mem::transmute(lineid)).ok() + (windows_core::Interface::vtable(self).SetLineId)(windows_core::Interface::as_raw(self), lineid).ok() } pub unsafe fn MMHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9245,10 +9245,10 @@ impl ISpeechObjectToken { } pub unsafe fn GetDescription(&self, locale: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(locale), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), locale, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetId(&self, id: &windows_core::BSTR, categoryid: &windows_core::BSTR, createifnotexist: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(id), core::mem::transmute_copy(categoryid), core::mem::transmute(createifnotexist)).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(id), core::mem::transmute_copy(categoryid), createifnotexist).ok() } pub unsafe fn GetAttribute(&self, attributename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9259,17 +9259,17 @@ impl ISpeechObjectToken { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(clscontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), clscontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, objectstorageclsid: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(objectstorageclsid)).ok() } pub unsafe fn GetStorageFileName(&self, objectstorageclsid: &windows_core::BSTR, keyname: &windows_core::BSTR, filename: &windows_core::BSTR, folder: SpeechTokenShellFolder) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(objectstorageclsid), core::mem::transmute_copy(keyname), core::mem::transmute_copy(filename), core::mem::transmute(folder), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(objectstorageclsid), core::mem::transmute_copy(keyname), core::mem::transmute_copy(filename), folder, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RemoveStorageFileName(&self, objectstorageclsid: &windows_core::BSTR, keyname: &windows_core::BSTR, deletefile: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(objectstorageclsid), core::mem::transmute_copy(keyname), core::mem::transmute(deletefile)).ok() + (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(objectstorageclsid), core::mem::transmute_copy(keyname), deletefile).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn IsUISupported(&self, typeofui: &windows_core::BSTR, extradata: *const super::super::System::Variant::VARIANT, object: P2) -> windows_core::Result @@ -9284,7 +9284,7 @@ impl ISpeechObjectToken { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute_copy(title), core::mem::transmute_copy(typeofui), core::mem::transmute(extradata), object.param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwnd, core::mem::transmute_copy(title), core::mem::transmute_copy(typeofui), core::mem::transmute(extradata), object.param().abi()).ok() } pub unsafe fn MatchesAttributes(&self, attributes: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9488,11 +9488,11 @@ impl ISpeechObjectTokenCategory { (windows_core::Interface::vtable(self).Default)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetId(&self, id: &windows_core::BSTR, createifnotexist: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(id), core::mem::transmute(createifnotexist)).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(id), createifnotexist).ok() } pub unsafe fn GetDataKey(&self, location: SpeechDataKeyLocation) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataKey)(windows_core::Interface::as_raw(self), core::mem::transmute(location), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDataKey)(windows_core::Interface::as_raw(self), location, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateTokens(&self, requiredattributes: &windows_core::BSTR, optionalattributes: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9605,7 +9605,7 @@ impl ISpeechObjectTokens { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9690,7 +9690,7 @@ impl ISpeechPhoneConverter { (windows_core::Interface::vtable(self).LanguageId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLanguageId(&self, languageid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLanguageId)(windows_core::Interface::as_raw(self), core::mem::transmute(languageid)).ok() + (windows_core::Interface::vtable(self).SetLanguageId)(windows_core::Interface::as_raw(self), languageid).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PhoneToId(&self, phonemes: &windows_core::BSTR) -> windows_core::Result { @@ -9908,7 +9908,7 @@ impl ISpeechPhraseAlternates { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10254,7 +10254,7 @@ impl ISpeechPhraseElements { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10397,11 +10397,11 @@ impl ISpeechPhraseInfo { } pub unsafe fn GetText(&self, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), core::mem::transmute(elements), core::mem::transmute(usereplacements), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), startelement, elements, usereplacements, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetDisplayAttributes(&self, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), core::mem::transmute(elements), core::mem::transmute(usereplacements), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDisplayAttributes)(windows_core::Interface::as_raw(self), startelement, elements, usereplacements, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10723,7 +10723,7 @@ impl ISpeechPhraseProperties { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11104,7 +11104,7 @@ impl ISpeechPhraseReplacements { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11361,7 +11361,7 @@ impl ISpeechPhraseRules { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11464,42 +11464,42 @@ impl ISpeechRecoContext { (windows_core::Interface::vtable(self).Voice)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAllowVoiceFormatMatchingOnNextSet(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowVoiceFormatMatchingOnNextSet)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowVoiceFormatMatchingOnNextSet)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowVoiceFormatMatchingOnNextSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowVoiceFormatMatchingOnNextSet)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVoicePurgeEvent(&self, eventinterest: SpeechRecoEvents) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVoicePurgeEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventinterest)).ok() + (windows_core::Interface::vtable(self).SetVoicePurgeEvent)(windows_core::Interface::as_raw(self), eventinterest).ok() } pub unsafe fn VoicePurgeEvent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).VoicePurgeEvent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventInterests(&self, eventinterest: SpeechRecoEvents) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventInterests)(windows_core::Interface::as_raw(self), core::mem::transmute(eventinterest)).ok() + (windows_core::Interface::vtable(self).SetEventInterests)(windows_core::Interface::as_raw(self), eventinterest).ok() } pub unsafe fn EventInterests(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventInterests)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCmdMaxAlternates(&self, maxalternates: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCmdMaxAlternates)(windows_core::Interface::as_raw(self), core::mem::transmute(maxalternates)).ok() + (windows_core::Interface::vtable(self).SetCmdMaxAlternates)(windows_core::Interface::as_raw(self), maxalternates).ok() } pub unsafe fn CmdMaxAlternates(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CmdMaxAlternates)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetState(&self, state: SpeechRecoContextState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).State)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRetainedAudio(&self, option: SpeechRetainedAudioOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRetainedAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).SetRetainedAudio)(windows_core::Interface::as_raw(self), option).ok() } pub unsafe fn RetainedAudio(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11533,7 +11533,7 @@ impl ISpeechRecoContext { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Bookmark(&self, options: SpeechBookmarkOptions, streampos: &super::super::System::Variant::VARIANT, bookmarkid: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute_copy(streampos), core::mem::transmute_copy(bookmarkid)).ok() + (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), options, core::mem::transmute_copy(streampos), core::mem::transmute_copy(bookmarkid)).ok() } pub unsafe fn SetAdaptationData(&self, adaptationstring: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(adaptationstring)).ok() @@ -11845,7 +11845,7 @@ impl ISpeechRecoGrammar { (windows_core::Interface::vtable(self).RecoContext)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetState(&self, state: SpeechGrammarState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11856,46 +11856,46 @@ impl ISpeechRecoGrammar { (windows_core::Interface::vtable(self).Rules)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reset(&self, newlanguage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(newlanguage)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), newlanguage).ok() } pub unsafe fn CmdLoadFromFile(&self, filename: &windows_core::BSTR, loadoption: SpeechLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdLoadFromFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filename), core::mem::transmute(loadoption)).ok() + (windows_core::Interface::vtable(self).CmdLoadFromFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filename), loadoption).ok() } pub unsafe fn CmdLoadFromObject(&self, classid: &windows_core::BSTR, grammarname: &windows_core::BSTR, loadoption: SpeechLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdLoadFromObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(classid), core::mem::transmute_copy(grammarname), core::mem::transmute(loadoption)).ok() + (windows_core::Interface::vtable(self).CmdLoadFromObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(classid), core::mem::transmute_copy(grammarname), loadoption).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CmdLoadFromResource(&self, hmodule: i32, resourcename: &super::super::System::Variant::VARIANT, resourcetype: &super::super::System::Variant::VARIANT, languageid: i32, loadoption: SpeechLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdLoadFromResource)(windows_core::Interface::as_raw(self), core::mem::transmute(hmodule), core::mem::transmute_copy(resourcename), core::mem::transmute_copy(resourcetype), core::mem::transmute(languageid), core::mem::transmute(loadoption)).ok() + (windows_core::Interface::vtable(self).CmdLoadFromResource)(windows_core::Interface::as_raw(self), hmodule, core::mem::transmute_copy(resourcename), core::mem::transmute_copy(resourcetype), languageid, loadoption).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CmdLoadFromMemory(&self, grammardata: &super::super::System::Variant::VARIANT, loadoption: SpeechLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdLoadFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(grammardata), core::mem::transmute(loadoption)).ok() + (windows_core::Interface::vtable(self).CmdLoadFromMemory)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(grammardata), loadoption).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CmdLoadFromProprietaryGrammar(&self, proprietaryguid: &windows_core::BSTR, proprietarystring: &windows_core::BSTR, proprietarydata: &super::super::System::Variant::VARIANT, loadoption: SpeechLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdLoadFromProprietaryGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(proprietaryguid), core::mem::transmute_copy(proprietarystring), core::mem::transmute_copy(proprietarydata), core::mem::transmute(loadoption)).ok() + (windows_core::Interface::vtable(self).CmdLoadFromProprietaryGrammar)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(proprietaryguid), core::mem::transmute_copy(proprietarystring), core::mem::transmute_copy(proprietarydata), loadoption).ok() } pub unsafe fn CmdSetRuleState(&self, name: &windows_core::BSTR, state: SpeechRuleState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdSetRuleState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).CmdSetRuleState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), state).ok() } pub unsafe fn CmdSetRuleIdState(&self, ruleid: i32, state: SpeechRuleState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CmdSetRuleIdState)(windows_core::Interface::as_raw(self), core::mem::transmute(ruleid), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).CmdSetRuleIdState)(windows_core::Interface::as_raw(self), ruleid, state).ok() } pub unsafe fn DictationLoad(&self, topicname: &windows_core::BSTR, loadoption: SpeechLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DictationLoad)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(topicname), core::mem::transmute(loadoption)).ok() + (windows_core::Interface::vtable(self).DictationLoad)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(topicname), loadoption).ok() } pub unsafe fn DictationUnload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DictationUnload)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DictationSetState(&self, state: SpeechRuleState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DictationSetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).DictationSetState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn SetWordSequenceData(&self, text: &windows_core::BSTR, textlength: i32, info: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(text), core::mem::transmute(textlength), info.param().abi()).ok() + (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(text), textlength, info.param().abi()).ok() } pub unsafe fn SetTextSelection(&self, info: P0) -> windows_core::Result<()> where @@ -12141,15 +12141,15 @@ impl ISpeechRecoResult { } pub unsafe fn Alternates(&self, requestcount: i32, startelement: i32, elements: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Alternates)(windows_core::Interface::as_raw(self), core::mem::transmute(requestcount), core::mem::transmute(startelement), core::mem::transmute(elements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Alternates)(windows_core::Interface::as_raw(self), requestcount, startelement, elements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Audio(&self, startelement: i32, elements: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Audio)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), core::mem::transmute(elements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Audio)(windows_core::Interface::as_raw(self), startelement, elements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SpeakAudio(&self, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpeakAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), core::mem::transmute(elements), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SpeakAudio)(windows_core::Interface::as_raw(self), startelement, elements, flags, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SaveToMemory(&self) -> windows_core::Result { @@ -12157,7 +12157,7 @@ impl ISpeechRecoResult { (windows_core::Interface::vtable(self).SaveToMemory)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn DiscardResultInfo(&self, valuetypes: SpeechDiscardType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DiscardResultInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(valuetypes)).ok() + (windows_core::Interface::vtable(self).DiscardResultInfo)(windows_core::Interface::as_raw(self), valuetypes).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12316,7 +12316,7 @@ windows_core::imp::interface_hierarchy!(ISpeechRecoResult2, windows_core::IUnkno #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResult2 { pub unsafe fn SetTextFeedback(&self, feedback: &windows_core::BSTR, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(feedback), core::mem::transmute(wassuccessful)).ok() + (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(feedback), wassuccessful).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12381,15 +12381,15 @@ impl ISpeechRecoResultDispatch { } pub unsafe fn Alternates(&self, requestcount: i32, startelement: i32, elements: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Alternates)(windows_core::Interface::as_raw(self), core::mem::transmute(requestcount), core::mem::transmute(startelement), core::mem::transmute(elements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Alternates)(windows_core::Interface::as_raw(self), requestcount, startelement, elements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Audio(&self, startelement: i32, elements: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Audio)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), core::mem::transmute(elements), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Audio)(windows_core::Interface::as_raw(self), startelement, elements, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SpeakAudio(&self, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpeakAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), core::mem::transmute(elements), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SpeakAudio)(windows_core::Interface::as_raw(self), startelement, elements, flags, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SaveToMemory(&self) -> windows_core::Result { @@ -12397,17 +12397,17 @@ impl ISpeechRecoResultDispatch { (windows_core::Interface::vtable(self).SaveToMemory)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn DiscardResultInfo(&self, valuetypes: SpeechDiscardType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DiscardResultInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(valuetypes)).ok() + (windows_core::Interface::vtable(self).DiscardResultInfo)(windows_core::Interface::as_raw(self), valuetypes).ok() } pub unsafe fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), options, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetXMLErrorInfo(&self, linenumber: *mut i32, scriptline: *mut windows_core::BSTR, source: *mut windows_core::BSTR, description: *mut windows_core::BSTR, resultcode: *mut windows_core::HRESULT, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetXMLErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(linenumber), core::mem::transmute(scriptline), core::mem::transmute(source), core::mem::transmute(description), core::mem::transmute(resultcode), core::mem::transmute(iserror)).ok() } pub unsafe fn SetTextFeedback(&self, feedback: &windows_core::BSTR, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(feedback), core::mem::transmute(wassuccessful)).ok() + (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(feedback), wassuccessful).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12718,7 +12718,7 @@ impl ISpeechRecognizer { (windows_core::Interface::vtable(self).Recognizer)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAllowAudioInputFormatChangesOnNextSet(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowAudioInputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowAudioInputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowAudioInputFormatChangesOnNextSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12749,7 +12749,7 @@ impl ISpeechRecognizer { (windows_core::Interface::vtable(self).IsShared)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetState(&self, state: SpeechRecognizerState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12771,7 +12771,7 @@ impl ISpeechRecognizer { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn EmulateRecognition(&self, textelements: &super::super::System::Variant::VARIANT, elementdisplayattributes: *const super::super::System::Variant::VARIANT, languageid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(textelements), core::mem::transmute(elementdisplayattributes), core::mem::transmute(languageid)).ok() + (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(textelements), core::mem::transmute(elementdisplayattributes), languageid).ok() } pub unsafe fn CreateRecoContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12779,11 +12779,11 @@ impl ISpeechRecognizer { } pub unsafe fn GetFormat(&self, r#type: SpeechFormatType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPropertyNumber(&self, name: &windows_core::BSTR, value: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPropertyNumber)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPropertyNumber)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), value, &mut result__).map(|| result__) } pub unsafe fn GetPropertyNumber(&self, name: &windows_core::BSTR, value: *mut i32, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPropertyNumber)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(value), core::mem::transmute(supported)).ok() @@ -12802,7 +12802,7 @@ impl ISpeechRecognizer { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DisplayUI(&self, hwndparent: i32, title: &windows_core::BSTR, typeofui: &windows_core::BSTR, extradata: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute_copy(title), core::mem::transmute_copy(typeofui), core::mem::transmute(extradata)).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute_copy(title), core::mem::transmute_copy(typeofui), core::mem::transmute(extradata)).ok() } pub unsafe fn GetRecognizers(&self, requiredattributes: &windows_core::BSTR, optionalattributes: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13284,7 +13284,7 @@ windows_core::imp::interface_hierarchy!(ISpeechResourceLoader, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ISpeechResourceLoader { pub unsafe fn LoadResource(&self, bstrresourceuri: &windows_core::BSTR, falwaysreload: super::super::Foundation::VARIANT_BOOL, pstream: *mut Option, pbstrmimetype: Option<*mut windows_core::BSTR>, pfmodified: *mut super::super::Foundation::VARIANT_BOOL, pbstrredirecturl: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadResource)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourceuri), core::mem::transmute(falwaysreload), core::mem::transmute(pstream), core::mem::transmute(pbstrmimetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfmodified), core::mem::transmute(pbstrredirecturl.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).LoadResource)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourceuri), falwaysreload, core::mem::transmute(pstream), core::mem::transmute(pbstrmimetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfmodified), core::mem::transmute(pbstrredirecturl.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLocalCopy(&self, bstrresourceuri: &windows_core::BSTR, pbstrlocalpath: *mut windows_core::BSTR, pbstrmimetype: Option<*mut windows_core::BSTR>, pbstrredirecturl: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLocalCopy)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourceuri), core::mem::transmute(pbstrlocalpath), core::mem::transmute(pbstrmimetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrredirecturl.unwrap_or(core::mem::zeroed()))).ok() @@ -13349,28 +13349,28 @@ windows_core::imp::interface_hierarchy!(ISpeechTextSelectionInformation, windows #[cfg(feature = "Win32_System_Com")] impl ISpeechTextSelectionInformation { pub unsafe fn SetActiveOffset(&self, activeoffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActiveOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(activeoffset)).ok() + (windows_core::Interface::vtable(self).SetActiveOffset)(windows_core::Interface::as_raw(self), activeoffset).ok() } pub unsafe fn ActiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ActiveOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetActiveLength(&self, activelength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActiveLength)(windows_core::Interface::as_raw(self), core::mem::transmute(activelength)).ok() + (windows_core::Interface::vtable(self).SetActiveLength)(windows_core::Interface::as_raw(self), activelength).ok() } pub unsafe fn ActiveLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ActiveLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelectionOffset(&self, selectionoffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelectionOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(selectionoffset)).ok() + (windows_core::Interface::vtable(self).SetSelectionOffset)(windows_core::Interface::as_raw(self), selectionoffset).ok() } pub unsafe fn SelectionOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SelectionOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelectionLength(&self, selectionlength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelectionLength)(windows_core::Interface::as_raw(self), core::mem::transmute(selectionlength)).ok() + (windows_core::Interface::vtable(self).SetSelectionLength)(windows_core::Interface::as_raw(self), selectionlength).ok() } pub unsafe fn SelectionLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13530,17 +13530,17 @@ impl ISpeechVoice { (windows_core::Interface::vtable(self).Rate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRate(&self, rate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), core::mem::transmute(rate)).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), rate).ok() } pub unsafe fn Volume(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Volume)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVolume(&self, volume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(volume)).ok() + (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), volume).ok() } pub unsafe fn SetAllowAudioOutputFormatChangesOnNextSet(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowAudioOutputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowAudioOutputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowAudioOutputFormatChangesOnNextSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13551,24 +13551,24 @@ impl ISpeechVoice { (windows_core::Interface::vtable(self).EventInterests)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventInterests(&self, eventinterestflags: SpeechVoiceEvents) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventInterests)(windows_core::Interface::as_raw(self), core::mem::transmute(eventinterestflags)).ok() + (windows_core::Interface::vtable(self).SetEventInterests)(windows_core::Interface::as_raw(self), eventinterestflags).ok() } pub unsafe fn SetPriority(&self, priority: SpeechVoicePriority) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), priority).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlertBoundary(&self, boundary: SpeechVoiceEvents) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlertBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(boundary)).ok() + (windows_core::Interface::vtable(self).SetAlertBoundary)(windows_core::Interface::as_raw(self), boundary).ok() } pub unsafe fn AlertBoundary(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AlertBoundary)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSynchronousSpeakTimeout(&self, mstimeout: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSynchronousSpeakTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(mstimeout)).ok() + (windows_core::Interface::vtable(self).SetSynchronousSpeakTimeout)(windows_core::Interface::as_raw(self), mstimeout).ok() } pub unsafe fn SynchronousSpeakTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13576,14 +13576,14 @@ impl ISpeechVoice { } pub unsafe fn Speak(&self, text: &windows_core::BSTR, flags: SpeechVoiceSpeakFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(text), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(text), flags, &mut result__).map(|| result__) } pub unsafe fn SpeakStream(&self, stream: P0, flags: SpeechVoiceSpeakFlags) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), stream.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), stream.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -13593,7 +13593,7 @@ impl ISpeechVoice { } pub unsafe fn Skip(&self, r#type: &windows_core::BSTR, numitems: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(r#type), core::mem::transmute(numitems), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(r#type), numitems, &mut result__).map(|| result__) } pub unsafe fn GetVoices(&self, requiredattributes: &windows_core::BSTR, optionalattributes: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13605,7 +13605,7 @@ impl ISpeechVoice { } pub unsafe fn WaitUntilDone(&self, mstimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitUntilDone)(windows_core::Interface::as_raw(self), core::mem::transmute(mstimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitUntilDone)(windows_core::Interface::as_raw(self), mstimeout, &mut result__).map(|| result__) } pub unsafe fn SpeakCompleteEvent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13618,7 +13618,7 @@ impl ISpeechVoice { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DisplayUI(&self, hwndparent: i32, title: &windows_core::BSTR, typeofui: &windows_core::BSTR, extradata: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute_copy(title), core::mem::transmute_copy(typeofui), core::mem::transmute(extradata)).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute_copy(title), core::mem::transmute_copy(typeofui), core::mem::transmute(extradata)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14243,42 +14243,42 @@ impl ISpeechWaveFormatEx { (windows_core::Interface::vtable(self).FormatTag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFormatTag(&self, formattag: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormatTag)(windows_core::Interface::as_raw(self), core::mem::transmute(formattag)).ok() + (windows_core::Interface::vtable(self).SetFormatTag)(windows_core::Interface::as_raw(self), formattag).ok() } pub unsafe fn Channels(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Channels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChannels(&self, channels: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChannels)(windows_core::Interface::as_raw(self), core::mem::transmute(channels)).ok() + (windows_core::Interface::vtable(self).SetChannels)(windows_core::Interface::as_raw(self), channels).ok() } pub unsafe fn SamplesPerSec(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SamplesPerSec)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSamplesPerSec(&self, samplespersec: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSamplesPerSec)(windows_core::Interface::as_raw(self), core::mem::transmute(samplespersec)).ok() + (windows_core::Interface::vtable(self).SetSamplesPerSec)(windows_core::Interface::as_raw(self), samplespersec).ok() } pub unsafe fn AvgBytesPerSec(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AvgBytesPerSec)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAvgBytesPerSec(&self, avgbytespersec: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAvgBytesPerSec)(windows_core::Interface::as_raw(self), core::mem::transmute(avgbytespersec)).ok() + (windows_core::Interface::vtable(self).SetAvgBytesPerSec)(windows_core::Interface::as_raw(self), avgbytespersec).ok() } pub unsafe fn BlockAlign(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BlockAlign)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBlockAlign(&self, blockalign: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBlockAlign)(windows_core::Interface::as_raw(self), core::mem::transmute(blockalign)).ok() + (windows_core::Interface::vtable(self).SetBlockAlign)(windows_core::Interface::as_raw(self), blockalign).ok() } pub unsafe fn BitsPerSample(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BitsPerSample)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBitsPerSample(&self, bitspersample: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBitsPerSample)(windows_core::Interface::as_raw(self), core::mem::transmute(bitspersample)).ok() + (windows_core::Interface::vtable(self).SetBitsPerSample)(windows_core::Interface::as_raw(self), bitspersample).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ExtraData(&self) -> windows_core::Result { @@ -14472,7 +14472,7 @@ windows_core::imp::interface_hierarchy!(ISpeechXMLRecoResult, windows_core::IUnk impl ISpeechXMLRecoResult { pub unsafe fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetXMLResult)(windows_core::Interface::as_raw(self), options, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetXMLErrorInfo(&self, linenumber: *mut i32, scriptline: *mut windows_core::BSTR, source: *mut windows_core::BSTR, description: *mut windows_core::BSTR, resultcode: *mut i32, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetXMLErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(linenumber), core::mem::transmute(scriptline), core::mem::transmute(source), core::mem::transmute(description), core::mem::transmute(resultcode), core::mem::transmute(iserror)).ok() @@ -16417,10 +16417,10 @@ windows_core::imp::define_interface!(_ISpPrivateEngineCall, _ISpPrivateEngineCal windows_core::imp::interface_hierarchy!(_ISpPrivateEngineCall, windows_core::IUnknown); impl _ISpPrivateEngineCall { pub unsafe fn CallEngine(&self, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallEngine)(windows_core::Interface::as_raw(self), core::mem::transmute(pcallframe), core::mem::transmute(ulcallframesize)).ok() + (windows_core::Interface::vtable(self).CallEngine)(windows_core::Interface::as_raw(self), core::mem::transmute(pcallframe), ulcallframesize).ok() } pub unsafe fn CallEngineEx(&self, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallEngineEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pinframe), core::mem::transmute(ulinframesize), core::mem::transmute(ppcomemoutframe), core::mem::transmute(puloutframesize)).ok() + (windows_core::Interface::vtable(self).CallEngineEx)(windows_core::Interface::as_raw(self), pinframe, ulinframesize, core::mem::transmute(ppcomemoutframe), core::mem::transmute(puloutframesize)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs index e84893b330..8d281ce622 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs @@ -32,7 +32,7 @@ where { windows_targets::link!("wmvcore.dll" "system" fn WMCreateReader(punkcert : * mut core::ffi::c_void, dwrights : u32, ppreader : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WMCreateReader(punkcert.param().abi(), core::mem::transmute(dwrights), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WMCreateReader(punkcert.param().abi(), dwrights, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WMCreateSyncReader(punkcert: P0, dwrights: u32) -> windows_core::Result @@ -41,7 +41,7 @@ where { windows_targets::link!("wmvcore.dll" "system" fn WMCreateSyncReader(punkcert : * mut core::ffi::c_void, dwrights : u32, ppsyncreader : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WMCreateSyncReader(punkcert.param().abi(), core::mem::transmute(dwrights), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WMCreateSyncReader(punkcert.param().abi(), dwrights, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WMCreateWriter(punkcert: P0) -> windows_core::Result @@ -194,7 +194,7 @@ impl INSNetSourceCreator { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateNetSource)(windows_core::Interface::as_raw(self), pszstreamname.param().abi(), pmonitor.param().abi(), core::mem::transmute(pdata), pusercontext.param().abi(), pcallback.param().abi(), core::mem::transmute(qwcontext)).ok() + (windows_core::Interface::vtable(self).CreateNetSource)(windows_core::Interface::as_raw(self), pszstreamname.param().abi(), pmonitor.param().abi(), pdata, pusercontext.param().abi(), pcallback.param().abi(), qwcontext).ok() } pub unsafe fn GetNetSourceProperties(&self, pszstreamname: P0) -> windows_core::Result where @@ -220,7 +220,7 @@ impl INSNetSourceCreator { (windows_core::Interface::vtable(self).GetNumProtocolsSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetProtocolName(&self, dwprotocolnum: u32, pwszprotocolname: windows_core::PWSTR, pcchprotocolname: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprotocolnum), core::mem::transmute(pwszprotocolname), core::mem::transmute(pcchprotocolname)).ok() + (windows_core::Interface::vtable(self).GetProtocolName)(windows_core::Interface::as_raw(self), dwprotocolnum, core::mem::transmute(pwszprotocolname), core::mem::transmute(pcchprotocolname)).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -337,7 +337,7 @@ impl INSSBuffer { (windows_core::Interface::vtable(self).GetLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLength(&self, dwlength: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlength)).ok() + (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), dwlength).ok() } pub unsafe fn GetMaxLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -432,10 +432,10 @@ windows_core::imp::interface_hierarchy!(INSSBuffer2, windows_core::IUnknown, INS impl INSSBuffer2 { pub unsafe fn GetSampleProperties(&self, cbproperties: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSampleProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(cbproperties), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSampleProperties)(windows_core::Interface::as_raw(self), cbproperties, &mut result__).map(|| result__) } pub unsafe fn SetSampleProperties(&self, cbproperties: u32, pbproperties: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(cbproperties), core::mem::transmute(pbproperties)).ok() + (windows_core::Interface::vtable(self).SetSampleProperties)(windows_core::Interface::as_raw(self), cbproperties, pbproperties).ok() } } #[repr(C)] @@ -485,7 +485,7 @@ impl core::ops::Deref for INSSBuffer3 { windows_core::imp::interface_hierarchy!(INSSBuffer3, windows_core::IUnknown, INSSBuffer, INSSBuffer2); impl INSSBuffer3 { pub unsafe fn SetProperty(&self, guidbufferproperty: windows_core::GUID, pvbufferproperty: *const core::ffi::c_void, dwbufferpropertysize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(guidbufferproperty), core::mem::transmute(pvbufferproperty), core::mem::transmute(dwbufferpropertysize)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(guidbufferproperty), pvbufferproperty, dwbufferpropertysize).ok() } pub unsafe fn GetProperty(&self, guidbufferproperty: windows_core::GUID, pvbufferproperty: *mut core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(guidbufferproperty), core::mem::transmute(pvbufferproperty), core::mem::transmute(pdwbufferpropertysize)).ok() @@ -532,7 +532,7 @@ impl INSSBuffer4 { (windows_core::Interface::vtable(self).GetPropertyCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPropertyByIndex(&self, dwbufferpropertyindex: u32, pguidbufferproperty: *mut windows_core::GUID, pvbufferproperty: *mut core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbufferpropertyindex), core::mem::transmute(pguidbufferproperty), core::mem::transmute(pvbufferproperty), core::mem::transmute(pdwbufferpropertysize)).ok() + (windows_core::Interface::vtable(self).GetPropertyByIndex)(windows_core::Interface::as_raw(self), dwbufferpropertyindex, core::mem::transmute(pguidbufferproperty), core::mem::transmute(pvbufferproperty), core::mem::transmute(pdwbufferpropertysize)).ok() } } #[repr(C)] @@ -577,17 +577,17 @@ windows_core::imp::interface_hierarchy!(IWMAddressAccess, windows_core::IUnknown impl IWMAddressAccess { pub unsafe fn GetAccessEntryCount(&self, aetype: WM_AETYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAccessEntryCount)(windows_core::Interface::as_raw(self), core::mem::transmute(aetype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAccessEntryCount)(windows_core::Interface::as_raw(self), aetype, &mut result__).map(|| result__) } pub unsafe fn GetAccessEntry(&self, aetype: WM_AETYPE, dwentrynum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAccessEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(aetype), core::mem::transmute(dwentrynum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAccessEntry)(windows_core::Interface::as_raw(self), aetype, dwentrynum, &mut result__).map(|| result__) } pub unsafe fn AddAccessEntry(&self, aetype: WM_AETYPE, paddraccessentry: *const WM_ADDRESS_ACCESSENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAccessEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(aetype), core::mem::transmute(paddraccessentry)).ok() + (windows_core::Interface::vtable(self).AddAccessEntry)(windows_core::Interface::as_raw(self), aetype, paddraccessentry).ok() } pub unsafe fn RemoveAccessEntry(&self, aetype: WM_AETYPE, dwentrynum: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAccessEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(aetype), core::mem::transmute(dwentrynum)).ok() + (windows_core::Interface::vtable(self).RemoveAccessEntry)(windows_core::Interface::as_raw(self), aetype, dwentrynum).ok() } } #[repr(C)] @@ -657,10 +657,10 @@ impl core::ops::Deref for IWMAddressAccess2 { windows_core::imp::interface_hierarchy!(IWMAddressAccess2, windows_core::IUnknown, IWMAddressAccess); impl IWMAddressAccess2 { pub unsafe fn GetAccessEntryEx(&self, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut windows_core::BSTR, pbstrmask: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAccessEntryEx)(windows_core::Interface::as_raw(self), core::mem::transmute(aetype), core::mem::transmute(dwentrynum), core::mem::transmute(pbstraddress), core::mem::transmute(pbstrmask)).ok() + (windows_core::Interface::vtable(self).GetAccessEntryEx)(windows_core::Interface::as_raw(self), aetype, dwentrynum, core::mem::transmute(pbstraddress), core::mem::transmute(pbstrmask)).ok() } pub unsafe fn AddAccessEntryEx(&self, aetype: WM_AETYPE, bstraddress: &windows_core::BSTR, bstrmask: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAccessEntryEx)(windows_core::Interface::as_raw(self), core::mem::transmute(aetype), core::mem::transmute_copy(bstraddress), core::mem::transmute_copy(bstrmask)).ok() + (windows_core::Interface::vtable(self).AddAccessEntryEx)(windows_core::Interface::as_raw(self), aetype, core::mem::transmute_copy(bstraddress), core::mem::transmute_copy(bstrmask)).ok() } } #[repr(C)] @@ -703,11 +703,11 @@ impl IWMAuthorizer { } pub unsafe fn GetCert(&self, dwindex: u32) -> windows_core::Result<*mut u8> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCert)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCert)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn GetSharedData(&self, dwcertindex: u32, pbshareddata: *const u8, pbcert: *const u8) -> windows_core::Result<*mut u8> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSharedData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcertindex), core::mem::transmute(pbshareddata), core::mem::transmute(pbcert), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSharedData)(windows_core::Interface::as_raw(self), dwcertindex, pbshareddata, pbcert, &mut result__).map(|| result__) } } #[repr(C)] @@ -774,7 +774,7 @@ impl IWMBackupRestoreProps { (windows_core::Interface::vtable(self).GetPropCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetPropByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pwszname), core::mem::transmute(pcchnamelen), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetPropByIndex)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pwszname), core::mem::transmute(pcchnamelen), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn GetPropByName(&self, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where @@ -786,7 +786,7 @@ impl IWMBackupRestoreProps { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProp)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetProp)(windows_core::Interface::as_raw(self), pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn RemoveProp(&self, pcwszname: P0) -> windows_core::Result<()> where @@ -877,13 +877,13 @@ impl IWMBandwidthSharing { (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, guidtype: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), guidtype).ok() } pub unsafe fn GetBandwidth(&self, pdwbitrate: *mut u32, pmsbufferwindow: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwbitrate), core::mem::transmute(pmsbufferwindow)).ok() } pub unsafe fn SetBandwidth(&self, dwbitrate: u32, msbufferwindow: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbitrate), core::mem::transmute(msbufferwindow)).ok() + (windows_core::Interface::vtable(self).SetBandwidth)(windows_core::Interface::as_raw(self), dwbitrate, msbufferwindow).ok() } } #[repr(C)] @@ -946,7 +946,7 @@ impl IWMClientConnections { } pub unsafe fn GetClientProperties(&self, dwclientnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClientProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclientnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetClientProperties)(windows_core::Interface::as_raw(self), dwclientnum, &mut result__).map(|| result__) } } #[repr(C)] @@ -1002,7 +1002,7 @@ impl core::ops::Deref for IWMClientConnections2 { windows_core::imp::interface_hierarchy!(IWMClientConnections2, windows_core::IUnknown, IWMClientConnections); impl IWMClientConnections2 { pub unsafe fn GetClientInfo(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetClientInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclientnum), core::mem::transmute(pwsznetworkaddress), core::mem::transmute(pcchnetworkaddress), core::mem::transmute(pwszport), core::mem::transmute(pcchport), core::mem::transmute(pwszdnsname), core::mem::transmute(pcchdnsname)).ok() + (windows_core::Interface::vtable(self).GetClientInfo)(windows_core::Interface::as_raw(self), dwclientnum, core::mem::transmute(pwsznetworkaddress), core::mem::transmute(pcchnetworkaddress), core::mem::transmute(pwszport), core::mem::transmute(pcchport), core::mem::transmute(pwszdnsname), core::mem::transmute(pcchdnsname)).ok() } } #[repr(C)] @@ -1031,15 +1031,15 @@ windows_core::imp::interface_hierarchy!(IWMCodecInfo, windows_core::IUnknown); impl IWMCodecInfo { pub unsafe fn GetCodecInfoCount(&self, guidtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodecInfoCount)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCodecInfoCount)(windows_core::Interface::as_raw(self), guidtype, &mut result__).map(|| result__) } pub unsafe fn GetCodecFormatCount(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodecFormatCount)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCodecFormatCount)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, &mut result__).map(|| result__) } pub unsafe fn GetCodecFormat(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodecFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), core::mem::transmute(dwformatindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCodecFormat)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1108,10 +1108,10 @@ impl core::ops::Deref for IWMCodecInfo2 { windows_core::imp::interface_hierarchy!(IWMCodecInfo2, windows_core::IUnknown, IWMCodecInfo); impl IWMCodecInfo2 { pub unsafe fn GetCodecName(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, wszname: windows_core::PWSTR, pcchname: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodecName)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), core::mem::transmute(wszname), core::mem::transmute(pcchname)).ok() + (windows_core::Interface::vtable(self).GetCodecName)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, core::mem::transmute(wszname), core::mem::transmute(pcchname)).ok() } pub unsafe fn GetCodecFormatDesc(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut Option, wszdesc: windows_core::PWSTR, pcchdesc: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodecFormatDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), core::mem::transmute(dwformatindex), core::mem::transmute(ppistreamconfig), core::mem::transmute(wszdesc), core::mem::transmute(pcchdesc)).ok() + (windows_core::Interface::vtable(self).GetCodecFormatDesc)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, core::mem::transmute(ppistreamconfig), core::mem::transmute(wszdesc), core::mem::transmute(pcchdesc)).ok() } } #[repr(C)] @@ -1158,25 +1158,25 @@ impl IWMCodecInfo3 { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecFormatProp)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), core::mem::transmute(dwformatindex), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() + (windows_core::Interface::vtable(self).GetCodecFormatProp)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() } pub unsafe fn GetCodecProp(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: P2, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() + (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() } pub unsafe fn SetCodecEnumerationSetting(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: P2, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn GetCodecEnumerationSetting(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: P2, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype), core::mem::transmute(dwcodecindex), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() + (windows_core::Interface::vtable(self).GetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() } } #[repr(C)] @@ -1232,7 +1232,7 @@ impl IWMCredentialCallback { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireCredentials)(windows_core::Interface::as_raw(self), pwszrealm.param().abi(), pwszsite.param().abi(), core::mem::transmute(pwszuser.as_ptr()), pwszuser.len().try_into().unwrap(), core::mem::transmute(pwszpassword.as_ptr()), pwszpassword.len().try_into().unwrap(), core::mem::transmute(hrstatus), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).AcquireCredentials)(windows_core::Interface::as_raw(self), pwszrealm.param().abi(), pwszsite.param().abi(), core::mem::transmute(pwszuser.as_ptr()), pwszuser.len().try_into().unwrap(), core::mem::transmute(pwszpassword.as_ptr()), pwszpassword.len().try_into().unwrap(), hrstatus, core::mem::transmute(pdwflags)).ok() } } #[repr(C)] @@ -1332,13 +1332,13 @@ windows_core::imp::define_interface!(IWMDRMReader, IWMDRMReader_Vtbl, 0xd2827540 windows_core::imp::interface_hierarchy!(IWMDRMReader, windows_core::IUnknown); impl IWMDRMReader { pub unsafe fn AcquireLicense(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AcquireLicense)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn CancelLicenseAcquisition(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLicenseAcquisition)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Individualize(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Individualize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Individualize)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn CancelIndividualization(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelIndividualization)(windows_core::Interface::as_raw(self)).ok() @@ -1353,7 +1353,7 @@ impl IWMDRMReader { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.param().abi(), dwtype, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn GetDRMProperty(&self, pwstrname: P0, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where @@ -1578,13 +1578,13 @@ impl IWMDRMTranscryptor { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute(pblicenserequestmsg), core::mem::transmute(cblicenserequestmsg), core::mem::transmute(pplicenseresponsemsg), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute(pblicenserequestmsg), cblicenserequestmsg, core::mem::transmute(pplicenseresponsemsg), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn Seek(&self, hnstime: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(hnstime)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), hnstime).ok() } pub unsafe fn Read(&self, pbdata: *const u8, pcbdata: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), core::mem::transmute(pcbdata)).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pbdata, pcbdata).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -1645,7 +1645,7 @@ impl core::ops::Deref for IWMDRMTranscryptor2 { windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor2, windows_core::IUnknown, IWMDRMTranscryptor); impl IWMDRMTranscryptor2 { pub unsafe fn SeekEx(&self, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeekEx)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsstarttime), core::mem::transmute(cnsduration), core::mem::transmute(flrate), fincludefileheader.into()).ok() + (windows_core::Interface::vtable(self).SeekEx)(windows_core::Interface::as_raw(self), cnsstarttime, cnsduration, flrate, fincludefileheader.into()).ok() } pub unsafe fn ZeroAdjustTimestamps(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ZeroAdjustTimestamps)(windows_core::Interface::as_raw(self), fenable.into()).ok() @@ -1732,7 +1732,7 @@ impl IWMDRMWriter { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDRMAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetDRMAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -1790,7 +1790,7 @@ impl core::ops::Deref for IWMDRMWriter2 { windows_core::imp::interface_hierarchy!(IWMDRMWriter2, windows_core::IUnknown, IWMDRMWriter); impl IWMDRMWriter2 { pub unsafe fn SetWMDRMNetEncryption(&self, fsamplesencrypted: bool, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWMDRMNetEncryption)(windows_core::Interface::as_raw(self), fsamplesencrypted.into(), core::mem::transmute(pbkeyid), core::mem::transmute(cbkeyid)).ok() + (windows_core::Interface::vtable(self).SetWMDRMNetEncryption)(windows_core::Interface::as_raw(self), fsamplesencrypted.into(), pbkeyid, cbkeyid).ok() } } #[repr(C)] @@ -1824,7 +1824,7 @@ impl core::ops::Deref for IWMDRMWriter3 { windows_core::imp::interface_hierarchy!(IWMDRMWriter3, windows_core::IUnknown, IWMDRMWriter, IWMDRMWriter2); impl IWMDRMWriter3 { pub unsafe fn SetProtectStreamSamples(&self, pimportinitstruct: *const WMDRM_IMPORT_INIT_STRUCT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtectStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(pimportinitstruct)).ok() + (windows_core::Interface::vtable(self).SetProtectStreamSamples)(windows_core::Interface::as_raw(self), pimportinitstruct).ok() } } #[repr(C)] @@ -1853,18 +1853,18 @@ windows_core::imp::interface_hierarchy!(IWMDeviceRegistration, windows_core::IUn impl IWMDeviceRegistration { pub unsafe fn RegisterDevice(&self, dwregistertype: u32, pbcertificate: &[u8], serialnumber: DRM_VAL16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregistertype), core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(serialnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterDevice)(windows_core::Interface::as_raw(self), dwregistertype, core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(serialnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterDevice(&self, dwregistertype: u32, pbcertificate: &[u8], serialnumber: DRM_VAL16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregistertype), core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(serialnumber)).ok() + (windows_core::Interface::vtable(self).UnregisterDevice)(windows_core::Interface::as_raw(self), dwregistertype, core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(serialnumber)).ok() } pub unsafe fn GetRegistrationStats(&self, dwregistertype: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRegistrationStats)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregistertype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRegistrationStats)(windows_core::Interface::as_raw(self), dwregistertype, &mut result__).map(|| result__) } pub unsafe fn GetFirstRegisteredDevice(&self, dwregistertype: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFirstRegisteredDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregistertype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFirstRegisteredDevice)(windows_core::Interface::as_raw(self), dwregistertype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNextRegisteredDevice(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1872,7 +1872,7 @@ impl IWMDeviceRegistration { } pub unsafe fn GetRegisteredDeviceByID(&self, dwregistertype: u32, pbcertificate: &[u8], serialnumber: DRM_VAL16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRegisteredDeviceByID)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregistertype), core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(serialnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRegisteredDeviceByID)(windows_core::Interface::as_raw(self), dwregistertype, core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(serialnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2004,10 +2004,10 @@ windows_core::imp::interface_hierarchy!(IWMHeaderInfo, windows_core::IUnknown); impl IWMHeaderInfo { pub unsafe fn GetAttributeCount(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributeCount)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetAttributeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pwstreamnum), core::mem::transmute(pwszname), core::mem::transmute(pcchnamelen), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetAttributeByIndex)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pwstreamnum), core::mem::transmute(pwszname), core::mem::transmute(pcchnamelen), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn GetAttributeByName(&self, pwstreamnum: *mut u16, pszname: P1, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where @@ -2019,40 +2019,40 @@ impl IWMHeaderInfo { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn GetMarkerCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMarkerCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetMarker(&self, windex: u16, pwszmarkername: windows_core::PWSTR, pcchmarkernamelen: *mut u16, pcnsmarkertime: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pwszmarkername), core::mem::transmute(pcchmarkernamelen), core::mem::transmute(pcnsmarkertime)).ok() + (windows_core::Interface::vtable(self).GetMarker)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pwszmarkername), core::mem::transmute(pcchmarkernamelen), core::mem::transmute(pcnsmarkertime)).ok() } pub unsafe fn AddMarker(&self, pwszmarkername: P0, cnsmarkertime: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMarker)(windows_core::Interface::as_raw(self), pwszmarkername.param().abi(), core::mem::transmute(cnsmarkertime)).ok() + (windows_core::Interface::vtable(self).AddMarker)(windows_core::Interface::as_raw(self), pwszmarkername.param().abi(), cnsmarkertime).ok() } pub unsafe fn RemoveMarker(&self, windex: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(windex)).ok() + (windows_core::Interface::vtable(self).RemoveMarker)(windows_core::Interface::as_raw(self), windex).ok() } pub unsafe fn GetScriptCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetScriptCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetScript(&self, windex: u16, pwsztype: windows_core::PWSTR, pcchtypelen: *mut u16, pwszcommand: windows_core::PWSTR, pcchcommandlen: *mut u16, pcnsscripttime: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScript)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pwsztype), core::mem::transmute(pcchtypelen), core::mem::transmute(pwszcommand), core::mem::transmute(pcchcommandlen), core::mem::transmute(pcnsscripttime)).ok() + (windows_core::Interface::vtable(self).GetScript)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pwsztype), core::mem::transmute(pcchtypelen), core::mem::transmute(pwszcommand), core::mem::transmute(pcchcommandlen), core::mem::transmute(pcnsscripttime)).ok() } pub unsafe fn AddScript(&self, pwsztype: P0, pwszcommand: P1, cnsscripttime: u64) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScript)(windows_core::Interface::as_raw(self), pwsztype.param().abi(), pwszcommand.param().abi(), core::mem::transmute(cnsscripttime)).ok() + (windows_core::Interface::vtable(self).AddScript)(windows_core::Interface::as_raw(self), pwsztype.param().abi(), pwszcommand.param().abi(), cnsscripttime).ok() } pub unsafe fn RemoveScript(&self, windex: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveScript)(windows_core::Interface::as_raw(self), core::mem::transmute(windex)).ok() + (windows_core::Interface::vtable(self).RemoveScript)(windows_core::Interface::as_raw(self), windex).ok() } } #[repr(C)] @@ -2188,7 +2188,7 @@ impl IWMHeaderInfo2 { (windows_core::Interface::vtable(self).GetCodecInfoCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetCodecInfo(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetCodecInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pcchname), core::mem::transmute(pwszname), core::mem::transmute(pcchdescription), core::mem::transmute(pwszdescription), core::mem::transmute(pcodectype), core::mem::transmute(pcbcodecinfo), core::mem::transmute(pbcodecinfo)).ok() + (windows_core::Interface::vtable(self).GetCodecInfo)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pcchname), core::mem::transmute(pwszname), core::mem::transmute(pcchdescription), core::mem::transmute(pwszdescription), core::mem::transmute(pcodectype), core::mem::transmute(pcbcodecinfo), core::mem::transmute(pbcodecinfo)).ok() } } #[repr(C)] @@ -2239,35 +2239,35 @@ windows_core::imp::interface_hierarchy!(IWMHeaderInfo3, windows_core::IUnknown, impl IWMHeaderInfo3 { pub unsafe fn GetAttributeCountEx(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeCountEx)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributeCountEx)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetAttributeIndices(&self, wstreamnum: u16, pwszname: P1, pwlangindex: *const u16, pwindices: *mut u16, pwcount: *mut u16) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), pwszname.param().abi(), core::mem::transmute(pwlangindex), core::mem::transmute(pwindices), core::mem::transmute(pwcount)).ok() + (windows_core::Interface::vtable(self).GetAttributeIndices)(windows_core::Interface::as_raw(self), wstreamnum, pwszname.param().abi(), pwlangindex, core::mem::transmute(pwindices), core::mem::transmute(pwcount)).ok() } pub unsafe fn GetAttributeByIndexEx(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetAttributeByIndexEx)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(windex), core::mem::transmute(pwszname), core::mem::transmute(pwnamelen), core::mem::transmute(ptype), core::mem::transmute(pwlangindex), core::mem::transmute(pvalue), core::mem::transmute(pdwdatalength)).ok() + (windows_core::Interface::vtable(self).GetAttributeByIndexEx)(windows_core::Interface::as_raw(self), wstreamnum, windex, core::mem::transmute(pwszname), core::mem::transmute(pwnamelen), core::mem::transmute(ptype), core::mem::transmute(pwlangindex), core::mem::transmute(pvalue), core::mem::transmute(pdwdatalength)).ok() } pub unsafe fn ModifyAttribute(&self, wstreamnum: u16, windex: u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(windex), core::mem::transmute(r#type), core::mem::transmute(wlangindex), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).ModifyAttribute)(windows_core::Interface::as_raw(self), wstreamnum, windex, r#type, wlangindex, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn AddAttribute(&self, wstreamnum: u16, pszname: P1, pwindex: *mut u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: &[u8]) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), pszname.param().abi(), core::mem::transmute(pwindex), core::mem::transmute(r#type), core::mem::transmute(wlangindex), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.param().abi(), core::mem::transmute(pwindex), r#type, wlangindex, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn DeleteAttribute(&self, wstreamnum: u16, windex: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(windex)).ok() + (windows_core::Interface::vtable(self).DeleteAttribute)(windows_core::Interface::as_raw(self), wstreamnum, windex).ok() } pub unsafe fn AddCodecInfo(&self, pwszname: P0, pwszdescription: P1, codectype: WMT_CODEC_INFO_TYPE, pbcodecinfo: &[u8]) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCodecInfo)(windows_core::Interface::as_raw(self), pwszname.param().abi(), pwszdescription.param().abi(), core::mem::transmute(codectype), pbcodecinfo.len().try_into().unwrap(), core::mem::transmute(pbcodecinfo.as_ptr())).ok() + (windows_core::Interface::vtable(self).AddCodecInfo)(windows_core::Interface::as_raw(self), pwszname.param().abi(), pwszdescription.param().abi(), codectype, pbcodecinfo.len().try_into().unwrap(), core::mem::transmute(pbcodecinfo.as_ptr())).ok() } } #[repr(C)] @@ -2381,7 +2381,7 @@ impl IWMImageInfo { (windows_core::Interface::vtable(self).GetImageCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetImage)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pcchmimetype), core::mem::transmute(pwszmimetype), core::mem::transmute(pcchdescription), core::mem::transmute(pwszdescription), core::mem::transmute(pimagetype), core::mem::transmute(pcbimagedata), core::mem::transmute(pbimagedata)).ok() + (windows_core::Interface::vtable(self).GetImage)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pcchmimetype), core::mem::transmute(pwszmimetype), core::mem::transmute(pcchdescription), core::mem::transmute(pwszdescription), core::mem::transmute(pimagetype), core::mem::transmute(pcbimagedata), core::mem::transmute(pbimagedata)).ok() } } #[repr(C)] @@ -2429,7 +2429,7 @@ impl IWMIndexer { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartIndexing)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).StartIndexing)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -2476,7 +2476,7 @@ impl core::ops::Deref for IWMIndexer2 { windows_core::imp::interface_hierarchy!(IWMIndexer2, windows_core::IUnknown, IWMIndexer); impl IWMIndexer2 { pub unsafe fn Configure(&self, wstreamnum: u16, nindexertype: WMT_INDEXER_TYPE, pvinterval: *const core::ffi::c_void, pvindextype: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(nindexertype), core::mem::transmute(pvinterval), core::mem::transmute(pvindextype)).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), wstreamnum, nindexertype, pvinterval, pvindextype).ok() } } #[repr(C)] @@ -2555,7 +2555,7 @@ impl IWMLanguageList { (windows_core::Interface::vtable(self).GetLanguageCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetLanguageDetails(&self, windex: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLanguageDetails)(windows_core::Interface::as_raw(self), core::mem::transmute(windex), core::mem::transmute(pwszlanguagestring), core::mem::transmute(pcchlanguagestringlength)).ok() + (windows_core::Interface::vtable(self).GetLanguageDetails)(windows_core::Interface::as_raw(self), windex, core::mem::transmute(pwszlanguagestring), core::mem::transmute(pcchlanguagestringlength)).ok() } pub unsafe fn AddLanguageByRFC1766String(&self, pwszlanguagestring: P0) -> windows_core::Result where @@ -2622,7 +2622,7 @@ impl IWMLicenseBackup { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BackupLicenses)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).BackupLicenses)(windows_core::Interface::as_raw(self), dwflags, pcallback.param().abi()).ok() } pub unsafe fn CancelLicenseBackup(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLicenseBackup)(windows_core::Interface::as_raw(self)).ok() @@ -2666,7 +2666,7 @@ impl IWMLicenseRestore { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreLicenses)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).RestoreLicenses)(windows_core::Interface::as_raw(self), dwflags, pcallback.param().abi()).ok() } pub unsafe fn CancelLicenseRestore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLicenseRestore)(windows_core::Interface::as_raw(self)).ok() @@ -2707,10 +2707,10 @@ windows_core::imp::define_interface!(IWMLicenseRevocationAgent, IWMLicenseRevoca windows_core::imp::interface_hierarchy!(IWMLicenseRevocationAgent, windows_core::IUnknown); impl IWMLicenseRevocationAgent { pub unsafe fn GetLRBChallenge(&self, pmachineid: *const u8, dwmachineidlength: u32, pchallenge: *const u8, dwchallengelength: u32, pchallengeoutput: *mut u8, pdwchallengeoutputlength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLRBChallenge)(windows_core::Interface::as_raw(self), core::mem::transmute(pmachineid), core::mem::transmute(dwmachineidlength), core::mem::transmute(pchallenge), core::mem::transmute(dwchallengelength), core::mem::transmute(pchallengeoutput), core::mem::transmute(pdwchallengeoutputlength)).ok() + (windows_core::Interface::vtable(self).GetLRBChallenge)(windows_core::Interface::as_raw(self), pmachineid, dwmachineidlength, pchallenge, dwchallengelength, core::mem::transmute(pchallengeoutput), core::mem::transmute(pdwchallengeoutputlength)).ok() } pub unsafe fn ProcessLRB(&self, psignedlrb: *const u8, dwsignedlrblength: u32, psignedack: *mut u8, pdwsignedacklength: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessLRB)(windows_core::Interface::as_raw(self), core::mem::transmute(psignedlrb), core::mem::transmute(dwsignedlrblength), core::mem::transmute(psignedack), core::mem::transmute(pdwsignedacklength)).ok() + (windows_core::Interface::vtable(self).ProcessLRB)(windows_core::Interface::as_raw(self), psignedlrb, dwsignedlrblength, core::mem::transmute(psignedack), core::mem::transmute(pdwsignedacklength)).ok() } } #[repr(C)] @@ -2869,7 +2869,7 @@ impl IWMMetadataEditor2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenEx)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode)).ok() + (windows_core::Interface::vtable(self).OpenEx)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), dwdesiredaccess, dwsharemode).ok() } } #[repr(C)] @@ -2907,7 +2907,7 @@ impl IWMMutualExclusion { (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, guidtype: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtype)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), guidtype).ok() } } #[repr(C)] @@ -2969,25 +2969,25 @@ impl IWMMutualExclusion2 { (windows_core::Interface::vtable(self).AddRecord)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemoveRecord(&self, wrecordnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordnumber)).ok() + (windows_core::Interface::vtable(self).RemoveRecord)(windows_core::Interface::as_raw(self), wrecordnumber).ok() } pub unsafe fn GetRecordName(&self, wrecordnumber: u16, pwszrecordname: windows_core::PWSTR, pcchrecordname: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRecordName)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordnumber), core::mem::transmute(pwszrecordname), core::mem::transmute(pcchrecordname)).ok() + (windows_core::Interface::vtable(self).GetRecordName)(windows_core::Interface::as_raw(self), wrecordnumber, core::mem::transmute(pwszrecordname), core::mem::transmute(pcchrecordname)).ok() } pub unsafe fn SetRecordName(&self, wrecordnumber: u16, pwszrecordname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecordName)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordnumber), pwszrecordname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecordName)(windows_core::Interface::as_raw(self), wrecordnumber, pwszrecordname.param().abi()).ok() } pub unsafe fn GetStreamsForRecord(&self, wrecordnumber: u16, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamsForRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordnumber), core::mem::transmute(pwstreamnumarray), core::mem::transmute(pcstreams)).ok() + (windows_core::Interface::vtable(self).GetStreamsForRecord)(windows_core::Interface::as_raw(self), wrecordnumber, core::mem::transmute(pwstreamnumarray), core::mem::transmute(pcstreams)).ok() } pub unsafe fn AddStreamForRecord(&self, wrecordnumber: u16, wstreamnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStreamForRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordnumber), core::mem::transmute(wstreamnumber)).ok() + (windows_core::Interface::vtable(self).AddStreamForRecord)(windows_core::Interface::as_raw(self), wrecordnumber, wstreamnumber).ok() } pub unsafe fn RemoveStreamForRecord(&self, wrecordnumber: u16, wstreamnumber: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStreamForRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(wrecordnumber), core::mem::transmute(wstreamnumber)).ok() + (windows_core::Interface::vtable(self).RemoveStreamForRecord)(windows_core::Interface::as_raw(self), wrecordnumber, wstreamnumber).ok() } } #[repr(C)] @@ -3138,7 +3138,7 @@ impl IWMPacketSize { (windows_core::Interface::vtable(self).GetMaxPacketSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxPacketSize(&self, dwmaxpacketsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxPacketSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxpacketsize)).ok() + (windows_core::Interface::vtable(self).SetMaxPacketSize)(windows_core::Interface::as_raw(self), dwmaxpacketsize).ok() } } #[repr(C)] @@ -3192,7 +3192,7 @@ impl IWMPacketSize2 { (windows_core::Interface::vtable(self).GetMinPacketSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinPacketSize(&self, dwminpacketsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinPacketSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwminpacketsize)).ok() + (windows_core::Interface::vtable(self).SetMinPacketSize)(windows_core::Interface::as_raw(self), dwminpacketsize).ok() } } #[repr(C)] @@ -3265,7 +3265,7 @@ windows_core::imp::interface_hierarchy!(IWMPlayerTimestampHook, windows_core::IU impl IWMPlayerTimestampHook { pub unsafe fn MapTimestamp(&self, rtin: i64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MapTimestamp)(windows_core::Interface::as_raw(self), core::mem::transmute(rtin), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapTimestamp)(windows_core::Interface::as_raw(self), rtin, &mut result__).map(|| result__) } } #[repr(C)] @@ -3326,11 +3326,11 @@ impl IWMProfile { } pub unsafe fn GetStream(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstreamindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStreamByNumber(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamByNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStreamByNumber)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveStream(&self, pconfig: P0) -> windows_core::Result<()> where @@ -3339,7 +3339,7 @@ impl IWMProfile { (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn RemoveStreamByNumber(&self, wstreamnum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStreamByNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum)).ok() + (windows_core::Interface::vtable(self).RemoveStreamByNumber)(windows_core::Interface::as_raw(self), wstreamnum).ok() } pub unsafe fn AddStream(&self, pconfig: P0) -> windows_core::Result<()> where @@ -3355,7 +3355,7 @@ impl IWMProfile { } pub unsafe fn CreateNewStream(&self, guidstreamtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNewStream)(windows_core::Interface::as_raw(self), core::mem::transmute(guidstreamtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNewStream)(windows_core::Interface::as_raw(self), guidstreamtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMutualExclusionCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3363,7 +3363,7 @@ impl IWMProfile { } pub unsafe fn GetMutualExclusion(&self, dwmeindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMutualExclusion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmeindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMutualExclusion)(windows_core::Interface::as_raw(self), dwmeindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where @@ -3628,7 +3628,7 @@ impl IWMProfile3 { (windows_core::Interface::vtable(self).GetStorageFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStorageFormat(&self, nstorageformat: WMT_STORAGE_FORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStorageFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(nstorageformat)).ok() + (windows_core::Interface::vtable(self).SetStorageFormat)(windows_core::Interface::as_raw(self), nstorageformat).ok() } pub unsafe fn GetBandwidthSharingCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3636,7 +3636,7 @@ impl IWMProfile3 { } pub unsafe fn GetBandwidthSharing(&self, dwbsindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBandwidthSharing)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbsindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBandwidthSharing)(windows_core::Interface::as_raw(self), dwbsindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBandwidthSharing(&self, pbs: P0) -> windows_core::Result<()> where @@ -3673,7 +3673,7 @@ impl IWMProfile3 { } pub unsafe fn GetExpectedPacketCount(&self, msduration: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExpectedPacketCount)(windows_core::Interface::as_raw(self), core::mem::transmute(msduration), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExpectedPacketCount)(windows_core::Interface::as_raw(self), msduration, &mut result__).map(|| result__) } } #[repr(C)] @@ -3824,11 +3824,11 @@ windows_core::imp::interface_hierarchy!(IWMProfileManager, windows_core::IUnknow impl IWMProfileManager { pub unsafe fn CreateEmptyProfile(&self, dwversion: WMT_VERSION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEmptyProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(dwversion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEmptyProfile)(windows_core::Interface::as_raw(self), dwversion, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadProfileByID(&self, guidprofile: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadProfileByID)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprofile), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadProfileByID)(windows_core::Interface::as_raw(self), guidprofile, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadProfileByData(&self, pwszprofile: P0) -> windows_core::Result where @@ -3850,7 +3850,7 @@ impl IWMProfileManager { } pub unsafe fn LoadSystemProfile(&self, dwprofileindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadSystemProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofileindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadSystemProfile)(windows_core::Interface::as_raw(self), dwprofileindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3955,7 +3955,7 @@ impl IWMProfileManager2 { (windows_core::Interface::vtable(self).GetSystemProfileVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwversion)).ok() } pub unsafe fn SetSystemProfileVersion(&self, dwversion: WMT_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemProfileVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwversion)).ok() + (windows_core::Interface::vtable(self).SetSystemProfileVersion)(windows_core::Interface::as_raw(self), dwversion).ok() } } #[repr(C)] @@ -3996,7 +3996,7 @@ impl IWMProfileManagerLanguage { (windows_core::Interface::vtable(self).GetUserLanguageID)(windows_core::Interface::as_raw(self), core::mem::transmute(wlangid)).ok() } pub unsafe fn SetUserLanguageID(&self, wlangid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserLanguageID)(windows_core::Interface::as_raw(self), core::mem::transmute(wlangid)).ok() + (windows_core::Interface::vtable(self).SetUserLanguageID)(windows_core::Interface::as_raw(self), wlangid).ok() } } #[repr(C)] @@ -4034,7 +4034,7 @@ windows_core::imp::define_interface!(IWMPropertyVault, IWMPropertyVault_Vtbl, 0x windows_core::imp::interface_hierarchy!(IWMPropertyVault, windows_core::IUnknown); impl IWMPropertyVault { pub unsafe fn GetPropertyCount(&self, pdwcount: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcount)).ok() + (windows_core::Interface::vtable(self).GetPropertyCount)(windows_core::Interface::as_raw(self), pdwcount).ok() } pub unsafe fn GetPropertyByName(&self, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where @@ -4046,10 +4046,10 @@ impl IWMPropertyVault { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(dwsize)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pszname.param().abi(), ptype, pvalue, dwsize).ok() } pub unsafe fn GetPropertyByIndex(&self, dwindex: u32, pszname: windows_core::PWSTR, pdwnamelen: *mut u32, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pszname), core::mem::transmute(pdwnamelen), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() + (windows_core::Interface::vtable(self).GetPropertyByIndex)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pszname), core::mem::transmute(pdwnamelen), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pdwsize)).ok() } pub unsafe fn CopyPropertiesFrom(&self, piwmpropertyvault: P0) -> windows_core::Result<()> where @@ -4127,7 +4127,7 @@ impl IWMProximityDetection { where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).StartDetection)(windows_core::Interface::as_raw(self), core::mem::transmute(pbregistrationmsg.as_ptr()), pbregistrationmsg.len().try_into().unwrap(), core::mem::transmute(pblocaladdress.as_ptr()), pblocaladdress.len().try_into().unwrap(), core::mem::transmute(dwextraportsallowed), core::mem::transmute(ppregistrationresponsemsg), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).StartDetection)(windows_core::Interface::as_raw(self), core::mem::transmute(pbregistrationmsg.as_ptr()), pbregistrationmsg.len().try_into().unwrap(), core::mem::transmute(pblocaladdress.as_ptr()), pblocaladdress.len().try_into().unwrap(), dwextraportsallowed, core::mem::transmute(ppregistrationresponsemsg), pcallback.param().abi(), pvcontext).ok() } } #[repr(C)] @@ -4159,7 +4159,7 @@ impl IWMReader { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -4170,24 +4170,24 @@ impl IWMReader { } pub unsafe fn GetOutputProps(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetOutputProps(&self, dwoutputnum: u32, poutput: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), poutput.param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.param().abi()).ok() } pub unsafe fn GetOutputFormatCount(&self, dwoutputnumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputFormatCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputFormatCount)(windows_core::Interface::as_raw(self), dwoutputnumber, &mut result__).map(|| result__) } pub unsafe fn GetOutputFormat(&self, dwoutputnumber: u32, dwformatnumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnumber), core::mem::transmute(dwformatnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputFormat)(windows_core::Interface::as_raw(self), dwoutputnumber, dwformatnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Start(&self, cnsstart: u64, cnsduration: u64, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsstart), core::mem::transmute(cnsduration), core::mem::transmute(frate), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), cnsstart, cnsduration, frate, pvcontext).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -4321,10 +4321,10 @@ windows_core::imp::define_interface!(IWMReaderAccelerator, IWMReaderAccelerator_ windows_core::imp::interface_hierarchy!(IWMReaderAccelerator, windows_core::IUnknown); impl IWMReaderAccelerator { pub unsafe fn GetCodecInterface(&self, dwoutputnum: u32, riid: *const windows_core::GUID, ppvcodecinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodecInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(riid), core::mem::transmute(ppvcodecinterface)).ok() + (windows_core::Interface::vtable(self).GetCodecInterface)(windows_core::Interface::as_raw(self), dwoutputnum, riid, core::mem::transmute(ppvcodecinterface)).ok() } pub unsafe fn Notify(&self, dwoutputnum: u32, psubtype: *const WM_MEDIA_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(psubtype)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), dwoutputnum, core::mem::transmute(psubtype)).ok() } } #[repr(C)] @@ -4369,7 +4369,7 @@ impl IWMReaderAdvanced { (windows_core::Interface::vtable(self).GetUserProvidedClock)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DeliverTime(&self, cnstime: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeliverTime)(windows_core::Interface::as_raw(self), core::mem::transmute(cnstime)).ok() + (windows_core::Interface::vtable(self).DeliverTime)(windows_core::Interface::as_raw(self), cnstime).ok() } pub unsafe fn SetManualStreamSelection(&self, fselection: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into()).ok() @@ -4379,11 +4379,11 @@ impl IWMReaderAdvanced { (windows_core::Interface::vtable(self).GetManualStreamSelection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStreamsSelected(&self, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamsSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(cstreamcount), core::mem::transmute(pwstreamnumbers), core::mem::transmute(pselections)).ok() + (windows_core::Interface::vtable(self).SetStreamsSelected)(windows_core::Interface::as_raw(self), cstreamcount, pwstreamnumbers, pselections).ok() } pub unsafe fn GetStreamSelected(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamSelected)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into()).ok() @@ -4393,42 +4393,42 @@ impl IWMReaderAdvanced { (windows_core::Interface::vtable(self).GetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), freceivestreamsamples.into()).ok() + (windows_core::Interface::vtable(self).SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReceiveStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), fallocate.into()).ok() + (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllocateForOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), fallocate.into()).ok() + (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllocateForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllocateForStream)(windows_core::Interface::as_raw(self), dwsreamnum, &mut result__).map(|| result__) } pub unsafe fn GetStatistics(&self, pstatistics: *mut WM_READER_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatistics)).ok() } pub unsafe fn SetClientInfo(&self, pclientinfo: *const WM_READER_CLIENTINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pclientinfo)).ok() + (windows_core::Interface::vtable(self).SetClientInfo)(windows_core::Interface::as_raw(self), pclientinfo).ok() } pub unsafe fn GetMaxOutputSampleSize(&self, dwoutput: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxOutputSampleSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutput), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxOutputSampleSize)(windows_core::Interface::as_raw(self), dwoutput, &mut result__).map(|| result__) } pub unsafe fn GetMaxStreamSampleSize(&self, wstream: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxStreamSampleSize)(windows_core::Interface::as_raw(self), core::mem::transmute(wstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxStreamSampleSize)(windows_core::Interface::as_raw(self), wstream, &mut result__).map(|| result__) } pub unsafe fn NotifyLateDelivery(&self, cnslateness: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyLateDelivery)(windows_core::Interface::as_raw(self), core::mem::transmute(cnslateness)).ok() + (windows_core::Interface::vtable(self).NotifyLateDelivery)(windows_core::Interface::as_raw(self), cnslateness).ok() } } #[repr(C)] @@ -4652,7 +4652,7 @@ impl core::ops::Deref for IWMReaderAdvanced2 { windows_core::imp::interface_hierarchy!(IWMReaderAdvanced2, windows_core::IUnknown, IWMReaderAdvanced); impl IWMReaderAdvanced2 { pub unsafe fn SetPlayMode(&self, mode: WMT_PLAY_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetPlayMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn GetPlayMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4678,22 +4678,22 @@ impl IWMReaderAdvanced2 { (windows_core::Interface::vtable(self).GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszprotocol), core::mem::transmute(pcchprotocol)).ok() } pub unsafe fn StartAtMarker(&self, wmarkerindex: u16, cnsduration: u64, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartAtMarker)(windows_core::Interface::as_raw(self), core::mem::transmute(wmarkerindex), core::mem::transmute(cnsduration), core::mem::transmute(frate), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).StartAtMarker)(windows_core::Interface::as_raw(self), wmarkerindex, cnsduration, frate, pvcontext).ok() } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P1, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P1, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn Preroll(&self, cnsstart: u64, cnsduration: u64, frate: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Preroll)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsstart), core::mem::transmute(cnsduration), core::mem::transmute(frate)).ok() + (windows_core::Interface::vtable(self).Preroll)(windows_core::Interface::as_raw(self), cnsstart, cnsduration, frate).ok() } pub unsafe fn SetLogClientID(&self, flogclientid: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into()).ok() @@ -4711,7 +4711,7 @@ impl IWMReaderAdvanced2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pvcontext).ok() } } #[repr(C)] @@ -4873,7 +4873,7 @@ impl IWMReaderAdvanced3 { (windows_core::Interface::vtable(self).StopNetStreaming)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn StartAtPosition(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).StartAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(pvoffsetstart), core::mem::transmute(pvduration), core::mem::transmute(dwoffsetformat), core::mem::transmute(frate), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).StartAtPosition)(windows_core::Interface::as_raw(self), wstreamnum, pvoffsetstart, pvduration, dwoffsetformat, frate, pvcontext).ok() } } #[repr(C)] @@ -4921,10 +4921,10 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced4, windows_core::IUnkno impl IWMReaderAdvanced4 { pub unsafe fn GetLanguageCount(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLanguageCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLanguageCount)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn GetLanguage(&self, dwoutputnum: u32, wlanguage: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(wlanguage), core::mem::transmute(pwszlanguagestring), core::mem::transmute(pcchlanguagestringlength)).ok() + (windows_core::Interface::vtable(self).GetLanguage)(windows_core::Interface::as_raw(self), dwoutputnum, wlanguage, core::mem::transmute(pwszlanguagestring), core::mem::transmute(pcchlanguagestringlength)).ok() } pub unsafe fn GetMaxSpeedFactor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5076,7 +5076,7 @@ impl IWMReaderAdvanced5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlayerHook)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), phook.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlayerHook)(windows_core::Interface::as_raw(self), dwoutputnum, phook.param().abi()).ok() } } #[repr(C)] @@ -5113,7 +5113,7 @@ impl core::ops::Deref for IWMReaderAdvanced6 { windows_core::imp::interface_hierarchy!(IWMReaderAdvanced6, windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3, IWMReaderAdvanced4, IWMReaderAdvanced5); impl IWMReaderAdvanced6 { pub unsafe fn SetProtectStreamSamples(&self, pbcertificate: &[u8], dwcertificatetype: u32, dwflags: u32, pbinitializationvector: *mut u8, pcbinitializationvector: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtectStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), core::mem::transmute(dwcertificatetype), core::mem::transmute(dwflags), core::mem::transmute(pbinitializationvector), core::mem::transmute(pcbinitializationvector)).ok() + (windows_core::Interface::vtable(self).SetProtectStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), dwcertificatetype, dwflags, core::mem::transmute(pbinitializationvector), core::mem::transmute(pcbinitializationvector)).ok() } } #[repr(C)] @@ -5144,10 +5144,10 @@ windows_core::imp::define_interface!(IWMReaderAllocatorEx, IWMReaderAllocatorEx_ windows_core::imp::interface_hierarchy!(IWMReaderAllocatorEx, windows_core::IUnknown); impl IWMReaderAllocatorEx { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).AllocateForStreamEx)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(cbbuffer), core::mem::transmute(ppbuffer), core::mem::transmute(dwflags), core::mem::transmute(cnssampletime), core::mem::transmute(cnssampleduration), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).AllocateForStreamEx)(windows_core::Interface::as_raw(self), wstreamnum, cbbuffer, core::mem::transmute(ppbuffer), dwflags, cnssampletime, cnssampleduration, pvcontext).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).AllocateForOutputEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(cbbuffer), core::mem::transmute(ppbuffer), core::mem::transmute(dwflags), core::mem::transmute(cnssampletime), core::mem::transmute(cnssampleduration), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).AllocateForOutputEx)(windows_core::Interface::as_raw(self), dwoutputnum, cbbuffer, core::mem::transmute(ppbuffer), dwflags, cnssampletime, cnssampleduration, pvcontext).ok() } } #[repr(C)] @@ -5194,7 +5194,7 @@ impl IWMReaderCallback { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(cnssampletime), core::mem::transmute(cnssampleduration), core::mem::transmute(dwflags), psample.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnSample)(windows_core::Interface::as_raw(self), dwoutputnum, cnssampletime, cnssampleduration, dwflags, psample.param().abi(), pvcontext).ok() } } #[repr(C)] @@ -5225,22 +5225,22 @@ impl IWMReaderCallbackAdvanced { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStreamSample)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(cnssampletime), core::mem::transmute(cnssampleduration), core::mem::transmute(dwflags), psample.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, cnssampleduration, dwflags, psample.param().abi(), pvcontext).ok() } pub unsafe fn OnTime(&self, cnscurrenttime: u64, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTime)(windows_core::Interface::as_raw(self), core::mem::transmute(cnscurrenttime), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnTime)(windows_core::Interface::as_raw(self), cnscurrenttime, pvcontext).ok() } pub unsafe fn OnStreamSelection(&self, wstreamcount: u16, pstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStreamSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamcount), core::mem::transmute(pstreamnumbers), core::mem::transmute(pselections), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnStreamSelection)(windows_core::Interface::as_raw(self), wstreamcount, pstreamnumbers, pselections, pvcontext).ok() } pub unsafe fn OnOutputPropsChanged(&self, dwoutputnum: u32, pmediatype: *const WM_MEDIA_TYPE, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnOutputPropsChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(pmediatype), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnOutputPropsChanged)(windows_core::Interface::as_raw(self), dwoutputnum, core::mem::transmute(pmediatype), pvcontext).ok() } pub unsafe fn AllocateForStream(&self, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut Option, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(cbbuffer), core::mem::transmute(ppbuffer), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).AllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, cbbuffer, core::mem::transmute(ppbuffer), pvcontext).ok() } pub unsafe fn AllocateForOutput(&self, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut Option, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateForOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(cbbuffer), core::mem::transmute(ppbuffer), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).AllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, cbbuffer, core::mem::transmute(ppbuffer), pvcontext).ok() } } #[repr(C)] @@ -5310,7 +5310,7 @@ impl IWMReaderNetworkConfig { (windows_core::Interface::vtable(self).GetBufferingTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferingTime(&self, cnsbufferingtime: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferingTime)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsbufferingtime)).ok() + (windows_core::Interface::vtable(self).SetBufferingTime)(windows_core::Interface::as_raw(self), cnsbufferingtime).ok() } pub unsafe fn GetUDPPortRanges(&self, prangearray: *mut WM_PORT_NUMBER_RANGE, pcranges: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetUDPPortRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(prangearray), core::mem::transmute(pcranges)).ok() @@ -5329,7 +5329,7 @@ impl IWMReaderNetworkConfig { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), core::mem::transmute(proxysetting)).ok() + (windows_core::Interface::vtable(self).SetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), proxysetting).ok() } pub unsafe fn GetProxyHostName(&self, pwszprotocol: P0, pwszhostname: windows_core::PWSTR, pcchhostname: *mut u32) -> windows_core::Result<()> where @@ -5355,7 +5355,7 @@ impl IWMReaderNetworkConfig { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), core::mem::transmute(dwport)).ok() + (windows_core::Interface::vtable(self).SetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), dwport).ok() } pub unsafe fn GetProxyExceptionList(&self, pwszprotocol: P0, pwszexceptionlist: windows_core::PWSTR, pcchexceptionlist: *mut u32) -> windows_core::Result<()> where @@ -5426,14 +5426,14 @@ impl IWMReaderNetworkConfig { (windows_core::Interface::vtable(self).GetConnectionBandwidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConnectionBandwidth(&self, dwconnectionbandwidth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectionBandwidth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnectionbandwidth)).ok() + (windows_core::Interface::vtable(self).SetConnectionBandwidth)(windows_core::Interface::as_raw(self), dwconnectionbandwidth).ok() } pub unsafe fn GetNumProtocolsSupported(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumProtocolsSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProtocolName(&self, dwprotocolnum: u32, pwszprotocolname: windows_core::PWSTR, pcchprotocolname: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprotocolnum), core::mem::transmute(pwszprotocolname), core::mem::transmute(pcchprotocolname)).ok() + (windows_core::Interface::vtable(self).GetSupportedProtocolName)(windows_core::Interface::as_raw(self), dwprotocolnum, core::mem::transmute(pwszprotocolname), core::mem::transmute(pcchprotocolname)).ok() } pub unsafe fn AddLoggingUrl(&self, pwszurl: P0) -> windows_core::Result<()> where @@ -5442,7 +5442,7 @@ impl IWMReaderNetworkConfig { (windows_core::Interface::vtable(self).AddLoggingUrl)(windows_core::Interface::as_raw(self), pwszurl.param().abi()).ok() } pub unsafe fn GetLoggingUrl(&self, dwindex: u32, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLoggingUrl)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pwszurl), core::mem::transmute(pcchurl)).ok() + (windows_core::Interface::vtable(self).GetLoggingUrl)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pwszurl), core::mem::transmute(pcchurl)).ok() } pub unsafe fn GetLoggingUrlCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5800,14 +5800,14 @@ impl IWMReaderNetworkConfig2 { (windows_core::Interface::vtable(self).GetAcceleratedStreamingDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAcceleratedStreamingDuration(&self, cnsaccelduration: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAcceleratedStreamingDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsaccelduration)).ok() + (windows_core::Interface::vtable(self).SetAcceleratedStreamingDuration)(windows_core::Interface::as_raw(self), cnsaccelduration).ok() } pub unsafe fn GetAutoReconnectLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAutoReconnectLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoReconnectLimit(&self, dwautoreconnectlimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoReconnectLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(dwautoreconnectlimit)).ok() + (windows_core::Interface::vtable(self).SetAutoReconnectLimit)(windows_core::Interface::as_raw(self), dwautoreconnectlimit).ok() } pub unsafe fn GetEnableResends(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5985,17 +5985,17 @@ impl IWMReaderPlaylistBurn { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitPlaylistBurn)(windows_core::Interface::as_raw(self), core::mem::transmute(cfiles), core::mem::transmute(ppwszfilenames), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).InitPlaylistBurn)(windows_core::Interface::as_raw(self), cfiles, ppwszfilenames, pcallback.param().abi(), pvcontext).ok() } pub unsafe fn GetInitResults(&self, cfiles: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInitResults)(windows_core::Interface::as_raw(self), core::mem::transmute(cfiles), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInitResults)(windows_core::Interface::as_raw(self), cfiles, &mut result__).map(|| result__) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndPlaylistBurn(&self, hrburnresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndPlaylistBurn)(windows_core::Interface::as_raw(self), core::mem::transmute(hrburnresult)).ok() + (windows_core::Interface::vtable(self).EndPlaylistBurn)(windows_core::Interface::as_raw(self), hrburnresult).ok() } } #[repr(C)] @@ -6053,14 +6053,14 @@ windows_core::imp::define_interface!(IWMReaderStreamClock, IWMReaderStreamClock_ windows_core::imp::interface_hierarchy!(IWMReaderStreamClock, windows_core::IUnknown); impl IWMReaderStreamClock { pub unsafe fn GetTime(&self, pcnsnow: *const u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pcnsnow)).ok() + (windows_core::Interface::vtable(self).GetTime)(windows_core::Interface::as_raw(self), pcnsnow).ok() } pub unsafe fn SetTimer(&self, cnswhen: u64, pvparam: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(cnswhen), core::mem::transmute(pvparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetTimer)(windows_core::Interface::as_raw(self), cnswhen, pvparam, &mut result__).map(|| result__) } pub unsafe fn KillTimer(&self, dwtimerid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KillTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimerid)).ok() + (windows_core::Interface::vtable(self).KillTimer)(windows_core::Interface::as_raw(self), dwtimerid).ok() } } #[repr(C)] @@ -6112,10 +6112,10 @@ windows_core::imp::interface_hierarchy!(IWMReaderTimecode, windows_core::IUnknow impl IWMReaderTimecode { pub unsafe fn GetTimecodeRangeCount(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTimecodeRangeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTimecodeRangeCount)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetTimecodeRangeBounds(&self, wstreamnum: u16, wrangenum: u16, pstarttimecode: *mut u32, pendtimecode: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTimecodeRangeBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(wrangenum), core::mem::transmute(pstarttimecode), core::mem::transmute(pendtimecode)).ok() + (windows_core::Interface::vtable(self).GetTimecodeRangeBounds)(windows_core::Interface::as_raw(self), wstreamnum, wrangenum, core::mem::transmute(pstarttimecode), core::mem::transmute(pendtimecode)).ok() } } #[repr(C)] @@ -6162,7 +6162,7 @@ impl IWMReaderTypeNegotiation { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TryOutputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), poutput.param().abi()).ok() + (windows_core::Interface::vtable(self).TryOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.param().abi()).ok() } } #[repr(C)] @@ -6193,13 +6193,13 @@ impl IWMRegisterCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn Unadvise(&self, pcallback: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pvcontext).ok() } } #[repr(C)] @@ -6249,7 +6249,7 @@ impl IWMRegisteredDevice { (windows_core::Interface::vtable(self).GetAttributeCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetAttributeByIndex(&self, dwindex: u32, pbstrname: *mut windows_core::BSTR, pbstrvalue: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAttributeByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pbstrname), core::mem::transmute(pbstrvalue)).ok() + (windows_core::Interface::vtable(self).GetAttributeByIndex)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pbstrname), core::mem::transmute(pbstrvalue)).ok() } pub unsafe fn GetAttributeByName(&self, bstrname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6458,11 +6458,11 @@ windows_core::imp::interface_hierarchy!(IWMSBufferAllocator, windows_core::IUnkn impl IWMSBufferAllocator { pub unsafe fn AllocateBuffer(&self, dwmaxbuffersize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxbuffersize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocateBuffer)(windows_core::Interface::as_raw(self), dwmaxbuffersize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AllocatePageSizeBuffer(&self, dwmaxbuffersize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocatePageSizeBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxbuffersize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocatePageSizeBuffer)(windows_core::Interface::as_raw(self), dwmaxbuffersize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6537,20 +6537,20 @@ impl IWMSInternalAdminNetSource { (windows_core::Interface::vtable(self).GetCredentialFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCredentialFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCredentialFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetCredentialFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn FindProxyForURL(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FindProxyForURL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute_copy(bstrhost), core::mem::transmute(pfproxyenabled), core::mem::transmute(pbstrproxyserver), core::mem::transmute(pdwproxyport), core::mem::transmute(pdwproxycontext)).ok() } pub unsafe fn RegisterProxyFailure(&self, hrparam: windows_core::HRESULT, dwproxycontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterProxyFailure)(windows_core::Interface::as_raw(self), core::mem::transmute(hrparam), core::mem::transmute(dwproxycontext)).ok() + (windows_core::Interface::vtable(self).RegisterProxyFailure)(windows_core::Interface::as_raw(self), hrparam, dwproxycontext).ok() } pub unsafe fn ShutdownProxyContext(&self, dwproxycontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShutdownProxyContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproxycontext)).ok() + (windows_core::Interface::vtable(self).ShutdownProxyContext)(windows_core::Interface::as_raw(self), dwproxycontext).ok() } pub unsafe fn IsUsingIE(&self, dwproxycontext: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUsingIE)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproxycontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUsingIE)(windows_core::Interface::as_raw(self), dwproxycontext, &mut result__).map(|| result__) } } #[repr(C)] @@ -6743,14 +6743,14 @@ impl IWMSInternalAdminNetSource3 { (windows_core::Interface::vtable(self).FindProxyForURLEx2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute_copy(bstrhost), core::mem::transmute_copy(bstrurl), core::mem::transmute(pfproxyenabled), core::mem::transmute(pbstrproxyserver), core::mem::transmute(pdwproxyport), core::mem::transmute(pqwproxycontext)).ok() } pub unsafe fn RegisterProxyFailure2(&self, hrparam: windows_core::HRESULT, qwproxycontext: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterProxyFailure2)(windows_core::Interface::as_raw(self), core::mem::transmute(hrparam), core::mem::transmute(qwproxycontext)).ok() + (windows_core::Interface::vtable(self).RegisterProxyFailure2)(windows_core::Interface::as_raw(self), hrparam, qwproxycontext).ok() } pub unsafe fn ShutdownProxyContext2(&self, qwproxycontext: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShutdownProxyContext2)(windows_core::Interface::as_raw(self), core::mem::transmute(qwproxycontext)).ok() + (windows_core::Interface::vtable(self).ShutdownProxyContext2)(windows_core::Interface::as_raw(self), qwproxycontext).ok() } pub unsafe fn IsUsingIE2(&self, qwproxycontext: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUsingIE2)(windows_core::Interface::as_raw(self), core::mem::transmute(qwproxycontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUsingIE2)(windows_core::Interface::as_raw(self), qwproxycontext, &mut result__).map(|| result__) } pub unsafe fn SetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: bool, fconfirmedgood: bool, fcleartextauthentication: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetCredentialsEx2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrurl), fproxy.into(), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into(), fcleartextauthentication.into()).ok() @@ -6853,7 +6853,7 @@ impl IWMSecureChannel { (windows_core::Interface::vtable(self).WMSC_AddCertificate)(windows_core::Interface::as_raw(self), pcert.param().abi()).ok() } pub unsafe fn WMSC_AddSignature(&self, pbcertsig: *const u8, cbcertsig: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WMSC_AddSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcertsig), core::mem::transmute(cbcertsig)).ok() + (windows_core::Interface::vtable(self).WMSC_AddSignature)(windows_core::Interface::as_raw(self), pbcertsig, cbcertsig).ok() } pub unsafe fn WMSC_Connect(&self, potherside: P0) -> windows_core::Result<()> where @@ -6872,10 +6872,10 @@ impl IWMSecureChannel { (windows_core::Interface::vtable(self).WMSC_GetValidCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbcertificate), core::mem::transmute(pdwsignature)).ok() } pub unsafe fn WMSC_Encrypt(&self, pbdata: *const u8, cbdata: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WMSC_Encrypt)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), core::mem::transmute(cbdata)).ok() + (windows_core::Interface::vtable(self).WMSC_Encrypt)(windows_core::Interface::as_raw(self), pbdata, cbdata).ok() } pub unsafe fn WMSC_Decrypt(&self, pbdata: *const u8, cbdata: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WMSC_Decrypt)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), core::mem::transmute(cbdata)).ok() + (windows_core::Interface::vtable(self).WMSC_Decrypt)(windows_core::Interface::as_raw(self), pbdata, cbdata).ok() } pub unsafe fn WMSC_Lock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WMSC_Lock)(windows_core::Interface::as_raw(self)).ok() @@ -6884,7 +6884,7 @@ impl IWMSecureChannel { (windows_core::Interface::vtable(self).WMSC_Unlock)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WMSC_SetSharedData(&self, dwcertindex: u32, pbshareddata: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WMSC_SetSharedData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcertindex), core::mem::transmute(pbshareddata)).ok() + (windows_core::Interface::vtable(self).WMSC_SetSharedData)(windows_core::Interface::as_raw(self), dwcertindex, pbshareddata).ok() } } #[repr(C)] @@ -6991,7 +6991,7 @@ windows_core::imp::define_interface!(IWMStatusCallback, IWMStatusCallback_Vtbl, windows_core::imp::interface_hierarchy!(IWMStatusCallback, windows_core::IUnknown); impl IWMStatusCallback { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status), core::mem::transmute(hr), core::mem::transmute(dwtype), core::mem::transmute(pvalue), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnStatus)(windows_core::Interface::as_raw(self), status, hr, dwtype, pvalue, pvcontext).ok() } } #[repr(C)] @@ -7027,7 +7027,7 @@ impl IWMStreamConfig { (windows_core::Interface::vtable(self).GetStreamNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStreamNumber(&self, wstreamnum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum)).ok() + (windows_core::Interface::vtable(self).SetStreamNumber)(windows_core::Interface::as_raw(self), wstreamnum).ok() } pub unsafe fn GetStreamName(&self, pwszstreamname: windows_core::PWSTR, pcchstreamname: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStreamName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszstreamname), core::mem::transmute(pcchstreamname)).ok() @@ -7052,14 +7052,14 @@ impl IWMStreamConfig { (windows_core::Interface::vtable(self).GetBitrate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBitrate(&self, pdwbitrate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBitrate)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwbitrate)).ok() + (windows_core::Interface::vtable(self).SetBitrate)(windows_core::Interface::as_raw(self), pdwbitrate).ok() } pub unsafe fn GetBufferWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBufferWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferWindow(&self, msbufferwindow: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(msbufferwindow)).ok() + (windows_core::Interface::vtable(self).SetBufferWindow)(windows_core::Interface::as_raw(self), msbufferwindow).ok() } } #[repr(C)] @@ -7194,17 +7194,17 @@ impl IWMStreamConfig2 { (windows_core::Interface::vtable(self).GetTransportType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTransportType(&self, ntransporttype: WMT_TRANSPORT_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransportType)(windows_core::Interface::as_raw(self), core::mem::transmute(ntransporttype)).ok() + (windows_core::Interface::vtable(self).SetTransportType)(windows_core::Interface::as_raw(self), ntransporttype).ok() } pub unsafe fn AddDataUnitExtension(&self, guidextensionsystemid: windows_core::GUID, cbextensiondatasize: u16, pbextensionsysteminfo: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDataUnitExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(guidextensionsystemid), core::mem::transmute(cbextensiondatasize), core::mem::transmute(pbextensionsysteminfo.as_ptr()), pbextensionsysteminfo.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddDataUnitExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(guidextensionsystemid), cbextensiondatasize, core::mem::transmute(pbextensionsysteminfo.as_ptr()), pbextensionsysteminfo.len().try_into().unwrap()).ok() } pub unsafe fn GetDataUnitExtensionCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDataUnitExtensionCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDataUnitExtension(&self, wdataunitextensionnumber: u16, pguidextensionsystemid: *mut windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDataUnitExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(wdataunitextensionnumber), core::mem::transmute(pguidextensionsystemid), core::mem::transmute(pcbextensiondatasize), core::mem::transmute(pbextensionsysteminfo), core::mem::transmute(pcbextensionsysteminfo)).ok() + (windows_core::Interface::vtable(self).GetDataUnitExtension)(windows_core::Interface::as_raw(self), wdataunitextensionnumber, core::mem::transmute(pguidextensionsystemid), core::mem::transmute(pcbextensiondatasize), core::mem::transmute(pbextensionsysteminfo), core::mem::transmute(pcbextensionsysteminfo)).ok() } pub unsafe fn RemoveAllDataUnitExtensions(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllDataUnitExtensions)(windows_core::Interface::as_raw(self)).ok() @@ -7338,10 +7338,10 @@ impl IWMStreamList { (windows_core::Interface::vtable(self).GetStreams)(windows_core::Interface::as_raw(self), core::mem::transmute(pwstreamnumarray), core::mem::transmute(pcstreams)).ok() } pub unsafe fn AddStream(&self, wstreamnum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum)).ok() + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), wstreamnum).ok() } pub unsafe fn RemoveStream(&self, wstreamnum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum)).ok() + (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), wstreamnum).ok() } } #[repr(C)] @@ -7389,7 +7389,7 @@ impl IWMStreamPrioritization { (windows_core::Interface::vtable(self).GetPriorityRecords)(windows_core::Interface::as_raw(self), core::mem::transmute(precordarray), core::mem::transmute(pcrecords)).ok() } pub unsafe fn SetPriorityRecords(&self, precordarray: *const WM_STREAM_PRIORITY_RECORD, crecords: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriorityRecords)(windows_core::Interface::as_raw(self), core::mem::transmute(precordarray), core::mem::transmute(crecords)).ok() + (windows_core::Interface::vtable(self).SetPriorityRecords)(windows_core::Interface::as_raw(self), precordarray, crecords).ok() } } #[repr(C)] @@ -7436,39 +7436,39 @@ impl IWMSyncReader { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRange(&self, cnsstarttime: u64, cnsduration: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsstarttime), core::mem::transmute(cnsduration)).ok() + (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), cnsstarttime, cnsduration).ok() } pub unsafe fn SetRangeByFrame(&self, wstreamnum: u16, qwframenumber: u64, cframestoread: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRangeByFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(qwframenumber), core::mem::transmute(cframestoread)).ok() + (windows_core::Interface::vtable(self).SetRangeByFrame)(windows_core::Interface::as_raw(self), wstreamnum, qwframenumber, cframestoread).ok() } pub unsafe fn GetNextSample(&self, wstreamnum: u16, ppsample: *mut Option, pcnssampletime: *mut u64, pcnsduration: *mut u64, pdwflags: *mut u32, pdwoutputnum: *mut u32, pwstreamnum: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSample)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(ppsample), core::mem::transmute(pcnssampletime), core::mem::transmute(pcnsduration), core::mem::transmute(pdwflags), core::mem::transmute(pdwoutputnum), core::mem::transmute(pwstreamnum)).ok() + (windows_core::Interface::vtable(self).GetNextSample)(windows_core::Interface::as_raw(self), wstreamnum, core::mem::transmute(ppsample), core::mem::transmute(pcnssampletime), core::mem::transmute(pcnsduration), core::mem::transmute(pdwflags), core::mem::transmute(pdwoutputnum), core::mem::transmute(pwstreamnum)).ok() } pub unsafe fn SetStreamsSelected(&self, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamsSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(cstreamcount), core::mem::transmute(pwstreamnumbers), core::mem::transmute(pselections)).ok() + (windows_core::Interface::vtable(self).SetStreamsSelected)(windows_core::Interface::as_raw(self), cstreamcount, pwstreamnumbers, pselections).ok() } pub unsafe fn GetStreamSelected(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamSelected)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn SetReadStreamSamples(&self, wstreamnum: u16, fcompressed: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReadStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), fcompressed.into()).ok() + (windows_core::Interface::vtable(self).SetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, fcompressed.into()).ok() } pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReadStreamSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P1, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P1, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } pub unsafe fn GetOutputCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7476,37 +7476,37 @@ impl IWMSyncReader { } pub unsafe fn GetOutputProps(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetOutputProps(&self, dwoutputnum: u32, poutput: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), poutput.param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.param().abi()).ok() } pub unsafe fn GetOutputFormatCount(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputFormatCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputFormatCount)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn GetOutputFormat(&self, dwoutputnum: u32, dwformatnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), core::mem::transmute(dwformatnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputFormat)(windows_core::Interface::as_raw(self), dwoutputnum, dwformatnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputNumberForStream(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputNumberForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOutputNumberForStream)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetStreamNumberForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamNumberForOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStreamNumberForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) } pub unsafe fn GetMaxOutputSampleSize(&self, dwoutput: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxOutputSampleSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutput), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxOutputSampleSize)(windows_core::Interface::as_raw(self), dwoutput, &mut result__).map(|| result__) } pub unsafe fn GetMaxStreamSampleSize(&self, wstream: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxStreamSampleSize)(windows_core::Interface::as_raw(self), core::mem::transmute(wstream), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxStreamSampleSize)(windows_core::Interface::as_raw(self), wstream, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0) -> windows_core::Result<()> @@ -7756,31 +7756,31 @@ impl core::ops::Deref for IWMSyncReader2 { windows_core::imp::interface_hierarchy!(IWMSyncReader2, windows_core::IUnknown, IWMSyncReader); impl IWMSyncReader2 { pub unsafe fn SetRangeByTimecode(&self, wstreamnum: u16, pstart: *const WMT_TIMECODE_EXTENSION_DATA, pend: *const WMT_TIMECODE_EXTENSION_DATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRangeByTimecode)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(pstart), core::mem::transmute(pend)).ok() + (windows_core::Interface::vtable(self).SetRangeByTimecode)(windows_core::Interface::as_raw(self), wstreamnum, pstart, pend).ok() } pub unsafe fn SetRangeByFrameEx(&self, wstreamnum: u16, qwframenumber: u64, cframestoread: i64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetRangeByFrameEx)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(qwframenumber), core::mem::transmute(cframestoread), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetRangeByFrameEx)(windows_core::Interface::as_raw(self), wstreamnum, qwframenumber, cframestoread, &mut result__).map(|| result__) } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, pallocator: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), pallocator.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, pallocator.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllocateForOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoutputnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, pallocator: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), pallocator.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, pallocator.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllocateForStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsreamnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAllocateForStream)(windows_core::Interface::as_raw(self), dwsreamnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7877,14 +7877,14 @@ impl IWMVideoMediaProps { (windows_core::Interface::vtable(self).GetMaxKeyFrameSpacing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxKeyFrameSpacing(&self, lltime: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxKeyFrameSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(lltime)).ok() + (windows_core::Interface::vtable(self).SetMaxKeyFrameSpacing)(windows_core::Interface::as_raw(self), lltime).ok() } pub unsafe fn GetQuality(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetQuality)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuality(&self, dwquality: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(dwquality)).ok() + (windows_core::Interface::vtable(self).SetQuality)(windows_core::Interface::as_raw(self), dwquality).ok() } } #[repr(C)] @@ -7949,10 +7949,10 @@ windows_core::imp::interface_hierarchy!(IWMWatermarkInfo, windows_core::IUnknown impl IWMWatermarkInfo { pub unsafe fn GetWatermarkEntryCount(&self, wmettype: WMT_WATERMARK_ENTRY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWatermarkEntryCount)(windows_core::Interface::as_raw(self), core::mem::transmute(wmettype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWatermarkEntryCount)(windows_core::Interface::as_raw(self), wmettype, &mut result__).map(|| result__) } pub unsafe fn GetWatermarkEntry(&self, wmettype: WMT_WATERMARK_ENTRY_TYPE, dwentrynum: u32, pentry: *mut WMT_WATERMARK_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWatermarkEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(wmettype), core::mem::transmute(dwentrynum), core::mem::transmute(pentry)).ok() + (windows_core::Interface::vtable(self).GetWatermarkEntry)(windows_core::Interface::as_raw(self), wmettype, dwentrynum, core::mem::transmute(pentry)).ok() } } #[repr(C)] @@ -7996,7 +7996,7 @@ windows_core::imp::define_interface!(IWMWriter, IWMWriter_Vtbl, 0x96406bd4_2b2b_ windows_core::imp::interface_hierarchy!(IWMWriter, windows_core::IUnknown); impl IWMWriter { pub unsafe fn SetProfileByID(&self, guidprofile: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProfileByID)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprofile)).ok() + (windows_core::Interface::vtable(self).SetProfileByID)(windows_core::Interface::as_raw(self), guidprofile).ok() } pub unsafe fn SetProfile(&self, pprofile: P0) -> windows_core::Result<()> where @@ -8016,21 +8016,21 @@ impl IWMWriter { } pub unsafe fn GetInputProps(&self, dwinputnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputProps)(windows_core::Interface::as_raw(self), dwinputnum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetInputProps(&self, dwinputnum: u32, pinput: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputProps)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), pinput.param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputProps)(windows_core::Interface::as_raw(self), dwinputnum, pinput.param().abi()).ok() } pub unsafe fn GetInputFormatCount(&self, dwinputnumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputFormatCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInputFormatCount)(windows_core::Interface::as_raw(self), dwinputnumber, &mut result__).map(|| result__) } pub unsafe fn GetInputFormat(&self, dwinputnumber: u32, dwformatnumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnumber), core::mem::transmute(dwformatnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputFormat)(windows_core::Interface::as_raw(self), dwinputnumber, dwformatnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BeginWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginWriting)(windows_core::Interface::as_raw(self)).ok() @@ -8040,13 +8040,13 @@ impl IWMWriter { } pub unsafe fn AllocateSample(&self, dwsamplesize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsamplesize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocateSample)(windows_core::Interface::as_raw(self), dwsamplesize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn WriteSample(&self, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), core::mem::transmute(cnssampletime), core::mem::transmute(dwflags), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteSample)(windows_core::Interface::as_raw(self), dwinputnum, cnssampletime, dwflags, psample.param().abi()).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() @@ -8199,7 +8199,7 @@ impl IWMWriterAdvanced { } pub unsafe fn GetSink(&self, dwsinknum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsinknum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), dwsinknum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSink(&self, psink: P0) -> windows_core::Result<()> where @@ -8217,7 +8217,7 @@ impl IWMWriterAdvanced { where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStreamSample)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(cnssampletime), core::mem::transmute(mssamplesendtime), core::mem::transmute(cnssampleduration), core::mem::transmute(dwflags), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, mssamplesendtime, cnssampleduration, dwflags, psample.param().abi()).ok() } pub unsafe fn SetLiveSource(&self, fislivesource: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.into()).ok() @@ -8231,10 +8231,10 @@ impl IWMWriterAdvanced { (windows_core::Interface::vtable(self).GetWriterTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetStatistics(&self, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(pstats)).ok() + (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), wstreamnum, core::mem::transmute(pstats)).ok() } pub unsafe fn SetSyncTolerance(&self, mswindow: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncTolerance)(windows_core::Interface::as_raw(self), core::mem::transmute(mswindow)).ok() + (windows_core::Interface::vtable(self).SetSyncTolerance)(windows_core::Interface::as_raw(self), mswindow).ok() } pub unsafe fn GetSyncTolerance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8378,13 +8378,13 @@ impl IWMWriterAdvanced2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInputSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() + (windows_core::Interface::vtable(self).GetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(pvalue), core::mem::transmute(pcblength)).ok() } pub unsafe fn SetInputSetting(&self, dwinputnum: u32, pszname: P1, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), pszname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -8428,7 +8428,7 @@ impl core::ops::Deref for IWMWriterAdvanced3 { windows_core::imp::interface_hierarchy!(IWMWriterAdvanced3, windows_core::IUnknown, IWMWriterAdvanced, IWMWriterAdvanced2); impl IWMWriterAdvanced3 { pub unsafe fn GetStatisticsEx(&self, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS_EX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatisticsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(pstats)).ok() + (windows_core::Interface::vtable(self).GetStatisticsEx)(windows_core::Interface::as_raw(self), wstreamnum, core::mem::transmute(pstats)).ok() } pub unsafe fn SetNonBlocking(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetNonBlocking)(windows_core::Interface::as_raw(self)).ok() @@ -8512,10 +8512,10 @@ impl core::ops::Deref for IWMWriterFileSink2 { windows_core::imp::interface_hierarchy!(IWMWriterFileSink2, windows_core::IUnknown, IWMWriterSink, IWMWriterFileSink); impl IWMWriterFileSink2 { pub unsafe fn Start(&self, cnsstarttime: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsstarttime)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), cnsstarttime).ok() } pub unsafe fn Stop(&self, cnsstoptime: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), core::mem::transmute(cnsstoptime)).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), cnsstoptime).ok() } pub unsafe fn IsStopped(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8644,7 +8644,7 @@ impl IWMWriterFileSink3 { (windows_core::Interface::vtable(self).GetAutoIndexing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetControlStream(&self, wstreamnumber: u16, fshouldcontrolstartandstop: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlStream)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), fshouldcontrolstartandstop.into()).ok() + (windows_core::Interface::vtable(self).SetControlStream)(windows_core::Interface::as_raw(self), wstreamnumber, fshouldcontrolstartandstop.into()).ok() } pub unsafe fn GetMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8765,14 +8765,14 @@ impl core::ops::Deref for IWMWriterNetworkSink { windows_core::imp::interface_hierarchy!(IWMWriterNetworkSink, windows_core::IUnknown, IWMWriterSink); impl IWMWriterNetworkSink { pub unsafe fn SetMaximumClients(&self, dwmaxclients: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumClients)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxclients)).ok() + (windows_core::Interface::vtable(self).SetMaximumClients)(windows_core::Interface::as_raw(self), dwmaxclients).ok() } pub unsafe fn GetMaximumClients(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMaximumClients)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNetworkProtocol(&self, protocol: WMT_NET_PROTOCOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNetworkProtocol)(windows_core::Interface::as_raw(self), core::mem::transmute(protocol)).ok() + (windows_core::Interface::vtable(self).SetNetworkProtocol)(windows_core::Interface::as_raw(self), protocol).ok() } pub unsafe fn GetNetworkProtocol(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8886,36 +8886,36 @@ impl IWMWriterPostView { (windows_core::Interface::vtable(self).SetPostViewCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi(), core::mem::transmute(pvcontext)).ok() } pub unsafe fn SetReceivePostViewSamples(&self, wstreamnum: u16, freceivepostviewsamples: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReceivePostViewSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), freceivepostviewsamples.into()).ok() + (windows_core::Interface::vtable(self).SetReceivePostViewSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivepostviewsamples.into()).ok() } pub unsafe fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReceivePostViewSamples)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetReceivePostViewSamples)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) } pub unsafe fn GetPostViewProps(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPostViewProps)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPostViewProps)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPostViewProps(&self, wstreamnumber: u16, poutput: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostViewProps)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), poutput.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostViewProps)(windows_core::Interface::as_raw(self), wstreamnumber, poutput.param().abi()).ok() } pub unsafe fn GetPostViewFormatCount(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPostViewFormatCount)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPostViewFormatCount)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).map(|| result__) } pub unsafe fn GetPostViewFormat(&self, wstreamnumber: u16, dwformatnumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPostViewFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), core::mem::transmute(dwformatnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPostViewFormat)(windows_core::Interface::as_raw(self), wstreamnumber, dwformatnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAllocateForPostView(&self, wstreamnumber: u16, fallocate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllocateForPostView)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), fallocate.into()).ok() + (windows_core::Interface::vtable(self).SetAllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnumber, fallocate.into()).ok() } pub unsafe fn GetAllocateForPostView(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllocateForPostView)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).map(|| result__) } } #[repr(C)] @@ -9041,10 +9041,10 @@ impl IWMWriterPostViewCallback { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPostViewSample)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnumber), core::mem::transmute(cnssampletime), core::mem::transmute(cnssampleduration), core::mem::transmute(dwflags), psample.param().abi(), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).OnPostViewSample)(windows_core::Interface::as_raw(self), wstreamnumber, cnssampletime, cnssampleduration, dwflags, psample.param().abi(), pvcontext).ok() } pub unsafe fn AllocateForPostView(&self, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut Option, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateForPostView)(windows_core::Interface::as_raw(self), core::mem::transmute(wstreamnum), core::mem::transmute(cbbuffer), core::mem::transmute(ppbuffer), core::mem::transmute(pvcontext)).ok() + (windows_core::Interface::vtable(self).AllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnum, cbbuffer, core::mem::transmute(ppbuffer), pvcontext).ok() } } #[repr(C)] @@ -9083,22 +9083,22 @@ windows_core::imp::interface_hierarchy!(IWMWriterPreprocess, windows_core::IUnkn impl IWMWriterPreprocess { pub unsafe fn GetMaxPreprocessingPasses(&self, dwinputnum: u32, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxPreprocessingPasses)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxPreprocessingPasses)(windows_core::Interface::as_raw(self), dwinputnum, dwflags, &mut result__).map(|| result__) } pub unsafe fn SetNumPreprocessingPasses(&self, dwinputnum: u32, dwflags: u32, dwnumpasses: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumPreprocessingPasses)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), core::mem::transmute(dwflags), core::mem::transmute(dwnumpasses)).ok() + (windows_core::Interface::vtable(self).SetNumPreprocessingPasses)(windows_core::Interface::as_raw(self), dwinputnum, dwflags, dwnumpasses).ok() } pub unsafe fn BeginPreprocessingPass(&self, dwinputnum: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginPreprocessingPass)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).BeginPreprocessingPass)(windows_core::Interface::as_raw(self), dwinputnum, dwflags).ok() } pub unsafe fn PreprocessSample(&self, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PreprocessSample)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), core::mem::transmute(cnssampletime), core::mem::transmute(dwflags), psample.param().abi()).ok() + (windows_core::Interface::vtable(self).PreprocessSample)(windows_core::Interface::as_raw(self), dwinputnum, cnssampletime, dwflags, psample.param().abi()).ok() } pub unsafe fn EndPreprocessingPass(&self, dwinputnum: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndPreprocessingPass)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinputnum), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).EndPreprocessingPass)(windows_core::Interface::as_raw(self), dwinputnum, dwflags).ok() } } #[repr(C)] @@ -9235,7 +9235,7 @@ impl IWMWriterSink { } pub unsafe fn AllocateDataUnit(&self, cbdataunit: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateDataUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(cbdataunit), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocateDataUnit)(windows_core::Interface::as_raw(self), cbdataunit, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Media/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/mod.rs index 033c8acf08..68bcccc4ea 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/mod.rs @@ -27,22 +27,22 @@ pub mod WindowsMediaFormat; #[inline] pub unsafe fn timeBeginPeriod(uperiod: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn timeBeginPeriod(uperiod : u32) -> u32); - timeBeginPeriod(core::mem::transmute(uperiod)) + timeBeginPeriod(uperiod) } #[inline] pub unsafe fn timeEndPeriod(uperiod: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn timeEndPeriod(uperiod : u32) -> u32); - timeEndPeriod(core::mem::transmute(uperiod)) + timeEndPeriod(uperiod) } #[inline] pub unsafe fn timeGetDevCaps(ptc: *mut TIMECAPS, cbtc: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn timeGetDevCaps(ptc : *mut TIMECAPS, cbtc : u32) -> u32); - timeGetDevCaps(core::mem::transmute(ptc), core::mem::transmute(cbtc)) + timeGetDevCaps(core::mem::transmute(ptc), cbtc) } #[inline] pub unsafe fn timeGetSystemTime(pmmt: *mut MMTIME, cbmmt: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn timeGetSystemTime(pmmt : *mut MMTIME, cbmmt : u32) -> u32); - timeGetSystemTime(core::mem::transmute(pmmt), core::mem::transmute(cbmmt)) + timeGetSystemTime(core::mem::transmute(pmmt), cbmmt) } #[inline] pub unsafe fn timeGetTime() -> u32 { @@ -52,12 +52,12 @@ pub unsafe fn timeGetTime() -> u32 { #[inline] pub unsafe fn timeKillEvent(utimerid: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn timeKillEvent(utimerid : u32) -> u32); - timeKillEvent(core::mem::transmute(utimerid)) + timeKillEvent(utimerid) } #[inline] pub unsafe fn timeSetEvent(udelay: u32, uresolution: u32, fptc: LPTIMECALLBACK, dwuser: usize, fuevent: u32) -> u32 { windows_targets::link!("winmm.dll" "system" fn timeSetEvent(udelay : u32, uresolution : u32, fptc : LPTIMECALLBACK, dwuser : usize, fuevent : u32) -> u32); - timeSetEvent(core::mem::transmute(udelay), core::mem::transmute(uresolution), core::mem::transmute(fptc), core::mem::transmute(dwuser), core::mem::transmute(fuevent)) + timeSetEvent(udelay, uresolution, fptc, dwuser, fuevent) } pub const ED_DEVCAP_ATN_READ: TIMECODE_SAMPLE_FLAGS = TIMECODE_SAMPLE_FLAGS(5047u32); pub const ED_DEVCAP_RTC_READ: TIMECODE_SAMPLE_FLAGS = TIMECODE_SAMPLE_FLAGS(5050u32); @@ -84,14 +84,14 @@ impl IReferenceClock { } pub unsafe fn AdviseTime(&self, basetime: i64, streamtime: i64, hevent: super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseTime)(windows_core::Interface::as_raw(self), core::mem::transmute(basetime), core::mem::transmute(streamtime), core::mem::transmute(hevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdviseTime)(windows_core::Interface::as_raw(self), basetime, streamtime, hevent, &mut result__).map(|| result__) } pub unsafe fn AdvisePeriodic(&self, starttime: i64, periodtime: i64, hsemaphore: super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AdvisePeriodic)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime), core::mem::transmute(periodtime), core::mem::transmute(hsemaphore), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdvisePeriodic)(windows_core::Interface::as_raw(self), starttime, periodtime, hsemaphore, &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwadvisecookie: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwadvisecookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwadvisecookie).ok() } } #[repr(C)] @@ -183,7 +183,7 @@ windows_core::imp::define_interface!(IReferenceClockTimerControl, IReferenceCloc windows_core::imp::interface_hierarchy!(IReferenceClockTimerControl, windows_core::IUnknown); impl IReferenceClockTimerControl { pub unsafe fn SetDefaultTimerResolution(&self, timerresolution: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultTimerResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(timerresolution)).ok() + (windows_core::Interface::vtable(self).SetDefaultTimerResolution)(windows_core::Interface::as_raw(self), timerresolution).ok() } pub unsafe fn GetDefaultTimerResolution(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs index 7329ce7f1f..31024847c5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -4,7 +4,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddFilterV4(serveripaddress : windows_core::PCWSTR, addfilterinfo : *const DHCP_FILTER_ADD_INFO, forceflag : super::super::Foundation:: BOOL) -> u32); - DhcpAddFilterV4(serveripaddress.param().abi(), core::mem::transmute(addfilterinfo), forceflag.into()) + DhcpAddFilterV4(serveripaddress.param().abi(), addfilterinfo, forceflag.into()) } #[inline] pub unsafe fn DhcpAddSecurityGroup(pserver: P0) -> u32 @@ -17,7 +17,7 @@ where #[inline] pub unsafe fn DhcpAddServer(flags: u32, idinfo: *mut core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut core::ffi::c_void, callbackdata: *mut core::ffi::c_void) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddServer(flags : u32, idinfo : *mut core::ffi::c_void, newserver : *mut DHCPDS_SERVER, callbackfn : *mut core::ffi::c_void, callbackdata : *mut core::ffi::c_void) -> u32); - DhcpAddServer(core::mem::transmute(flags), core::mem::transmute(idinfo), core::mem::transmute(newserver), core::mem::transmute(callbackfn), core::mem::transmute(callbackdata)) + DhcpAddServer(flags, core::mem::transmute(idinfo), core::mem::transmute(newserver), core::mem::transmute(callbackfn), core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn DhcpAddSubnetElement(serveripaddress: P0, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA) -> u32 @@ -25,7 +25,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddSubnetElement(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, addelementinfo : *const DHCP_SUBNET_ELEMENT_DATA) -> u32); - DhcpAddSubnetElement(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(addelementinfo)) + DhcpAddSubnetElement(serveripaddress.param().abi(), subnetaddress, addelementinfo) } #[inline] pub unsafe fn DhcpAddSubnetElementV4(serveripaddress: P0, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V4) -> u32 @@ -33,7 +33,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddSubnetElementV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, addelementinfo : *const DHCP_SUBNET_ELEMENT_DATA_V4) -> u32); - DhcpAddSubnetElementV4(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(addelementinfo)) + DhcpAddSubnetElementV4(serveripaddress.param().abi(), subnetaddress, addelementinfo) } #[inline] pub unsafe fn DhcpAddSubnetElementV5(serveripaddress: P0, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V5) -> u32 @@ -41,7 +41,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddSubnetElementV5(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, addelementinfo : *const DHCP_SUBNET_ELEMENT_DATA_V5) -> u32); - DhcpAddSubnetElementV5(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(addelementinfo)) + DhcpAddSubnetElementV5(serveripaddress.param().abi(), subnetaddress, addelementinfo) } #[inline] pub unsafe fn DhcpAddSubnetElementV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, addelementinfo: *mut DHCP_SUBNET_ELEMENT_DATA_V6) -> u32 @@ -57,7 +57,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAuditLogGetParams(serveripaddress : windows_core::PCWSTR, flags : u32, auditlogdir : *mut windows_core::PWSTR, diskcheckinterval : *mut u32, maxlogfilessize : *mut u32, minspaceondisk : *mut u32) -> u32); - DhcpAuditLogGetParams(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(auditlogdir), core::mem::transmute(diskcheckinterval), core::mem::transmute(maxlogfilessize), core::mem::transmute(minspaceondisk)) + DhcpAuditLogGetParams(serveripaddress.param().abi(), flags, core::mem::transmute(auditlogdir), core::mem::transmute(diskcheckinterval), core::mem::transmute(maxlogfilessize), core::mem::transmute(minspaceondisk)) } #[inline] pub unsafe fn DhcpAuditLogSetParams(serveripaddress: P0, flags: u32, auditlogdir: P2, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32 @@ -66,7 +66,7 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAuditLogSetParams(serveripaddress : windows_core::PCWSTR, flags : u32, auditlogdir : windows_core::PCWSTR, diskcheckinterval : u32, maxlogfilessize : u32, minspaceondisk : u32) -> u32); - DhcpAuditLogSetParams(serveripaddress.param().abi(), core::mem::transmute(flags), auditlogdir.param().abi(), core::mem::transmute(diskcheckinterval), core::mem::transmute(maxlogfilessize), core::mem::transmute(minspaceondisk)) + DhcpAuditLogSetParams(serveripaddress.param().abi(), flags, auditlogdir.param().abi(), diskcheckinterval, maxlogfilessize, minspaceondisk) } #[inline] pub unsafe fn DhcpCApiCleanup() { @@ -84,7 +84,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateClass(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classinfo : *mut DHCP_CLASS_INFO) -> u32); - DhcpCreateClass(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(classinfo)) + DhcpCreateClass(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(classinfo)) } #[inline] pub unsafe fn DhcpCreateClassV6(serveripaddress: P0, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO_V6) -> u32 @@ -92,7 +92,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateClassV6(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classinfo : *mut DHCP_CLASS_INFO_V6) -> u32); - DhcpCreateClassV6(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(classinfo)) + DhcpCreateClassV6(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(classinfo)) } #[inline] pub unsafe fn DhcpCreateClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO) -> u32 @@ -100,7 +100,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO) -> u32); - DhcpCreateClientInfo(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpCreateClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpCreateClientInfoV4(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V4) -> u32 @@ -108,7 +108,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateClientInfoV4(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_V4) -> u32); - DhcpCreateClientInfoV4(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpCreateClientInfoV4(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpCreateClientInfoVQ(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_VQ) -> u32 @@ -116,7 +116,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateClientInfoVQ(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_VQ) -> u32); - DhcpCreateClientInfoVQ(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpCreateClientInfoVQ(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpCreateOption(serveripaddress: P0, optionid: u32, optioninfo: *const DHCP_OPTION) -> u32 @@ -124,7 +124,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateOption(serveripaddress : windows_core::PCWSTR, optionid : u32, optioninfo : *const DHCP_OPTION) -> u32); - DhcpCreateOption(serveripaddress.param().abi(), core::mem::transmute(optionid), core::mem::transmute(optioninfo)) + DhcpCreateOption(serveripaddress.param().abi(), optionid, optioninfo) } #[inline] pub unsafe fn DhcpCreateOptionV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, optioninfo: *mut DHCP_OPTION) -> u32 @@ -134,7 +134,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateOptionV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, optioninfo : *mut DHCP_OPTION) -> u32); - DhcpCreateOptionV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) + DhcpCreateOptionV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpCreateOptionV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, optioninfo: *mut DHCP_OPTION) -> u32 @@ -144,7 +144,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateOptionV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, optioninfo : *mut DHCP_OPTION) -> u32); - DhcpCreateOptionV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) + DhcpCreateOptionV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpCreateSubnet(serveripaddress: P0, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO) -> u32 @@ -152,7 +152,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateSubnet(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, subnetinfo : *const DHCP_SUBNET_INFO) -> u32); - DhcpCreateSubnet(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(subnetinfo)) + DhcpCreateSubnet(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpCreateSubnetV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut DHCP_SUBNET_INFO_V6) -> u32 @@ -168,12 +168,12 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateSubnetVQ(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, subnetinfo : *const DHCP_SUBNET_INFO_VQ) -> u32); - DhcpCreateSubnetVQ(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(subnetinfo)) + DhcpCreateSubnetVQ(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpDeRegisterParamChange(flags: u32, reserved: *mut core::ffi::c_void, event: *mut core::ffi::c_void) -> u32 { windows_targets::link!("dhcpcsvc.dll" "system" fn DhcpDeRegisterParamChange(flags : u32, reserved : *mut core::ffi::c_void, event : *mut core::ffi::c_void) -> u32); - DhcpDeRegisterParamChange(core::mem::transmute(flags), core::mem::transmute(reserved), core::mem::transmute(event)) + DhcpDeRegisterParamChange(flags, core::mem::transmute(reserved), core::mem::transmute(event)) } #[inline] pub unsafe fn DhcpDeleteClass(serveripaddress: P0, reservedmustbezero: u32, classname: P2) -> u32 @@ -182,7 +182,7 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClass(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classname : windows_core::PCWSTR) -> u32); - DhcpDeleteClass(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), classname.param().abi()) + DhcpDeleteClass(serveripaddress.param().abi(), reservedmustbezero, classname.param().abi()) } #[inline] pub unsafe fn DhcpDeleteClassV6(serveripaddress: P0, reservedmustbezero: u32, classname: P2) -> u32 @@ -191,7 +191,7 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClassV6(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classname : windows_core::PCWSTR) -> u32); - DhcpDeleteClassV6(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), classname.param().abi()) + DhcpDeleteClassV6(serveripaddress.param().abi(), reservedmustbezero, classname.param().abi()) } #[inline] pub unsafe fn DhcpDeleteClientInfo(serveripaddress: P0, clientinfo: *const DHCP_SEARCH_INFO) -> u32 @@ -199,7 +199,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_SEARCH_INFO) -> u32); - DhcpDeleteClientInfo(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpDeleteClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpDeleteClientInfoV6(serveripaddress: P0, clientinfo: *const DHCP_SEARCH_INFO_V6) -> u32 @@ -207,7 +207,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClientInfoV6(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_SEARCH_INFO_V6) -> u32); - DhcpDeleteClientInfoV6(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpDeleteClientInfoV6(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpDeleteFilterV4(serveripaddress: P0, deletefilterinfo: *const DHCP_ADDR_PATTERN) -> u32 @@ -215,12 +215,12 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteFilterV4(serveripaddress : windows_core::PCWSTR, deletefilterinfo : *const DHCP_ADDR_PATTERN) -> u32); - DhcpDeleteFilterV4(serveripaddress.param().abi(), core::mem::transmute(deletefilterinfo)) + DhcpDeleteFilterV4(serveripaddress.param().abi(), deletefilterinfo) } #[inline] pub unsafe fn DhcpDeleteServer(flags: u32, idinfo: *mut core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut core::ffi::c_void, callbackdata: *mut core::ffi::c_void) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteServer(flags : u32, idinfo : *mut core::ffi::c_void, newserver : *mut DHCPDS_SERVER, callbackfn : *mut core::ffi::c_void, callbackdata : *mut core::ffi::c_void) -> u32); - DhcpDeleteServer(core::mem::transmute(flags), core::mem::transmute(idinfo), core::mem::transmute(newserver), core::mem::transmute(callbackfn), core::mem::transmute(callbackdata)) + DhcpDeleteServer(flags, core::mem::transmute(idinfo), core::mem::transmute(newserver), core::mem::transmute(callbackfn), core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn DhcpDeleteSubnet(serveripaddress: P0, subnetaddress: u32, forceflag: DHCP_FORCE_FLAG) -> u32 @@ -228,7 +228,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteSubnet(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, forceflag : DHCP_FORCE_FLAG) -> u32); - DhcpDeleteSubnet(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(forceflag)) + DhcpDeleteSubnet(serveripaddress.param().abi(), subnetaddress, forceflag) } #[inline] pub unsafe fn DhcpDeleteSubnetV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, forceflag: DHCP_FORCE_FLAG) -> u32 @@ -236,7 +236,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteSubnetV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, forceflag : DHCP_FORCE_FLAG) -> u32); - DhcpDeleteSubnetV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(forceflag)) + DhcpDeleteSubnetV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), forceflag) } #[inline] pub unsafe fn DhcpDeleteSuperScopeV4(serveripaddress: P0, superscopename: P1) -> u32 @@ -263,7 +263,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumClasses(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, resumehandle : *mut u32, preferredmaximum : u32, classinfoarray : *mut *mut DHCP_CLASS_INFO_ARRAY, nread : *mut u32, ntotal : *mut u32) -> u32); - DhcpEnumClasses(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(classinfoarray), core::mem::transmute(nread), core::mem::transmute(ntotal)) + DhcpEnumClasses(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(classinfoarray), core::mem::transmute(nread), core::mem::transmute(ntotal)) } #[inline] pub unsafe fn DhcpEnumClassesV6(serveripaddress: P0, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY_V6, nread: *mut u32, ntotal: *mut u32) -> u32 @@ -271,7 +271,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumClassesV6(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, resumehandle : *mut u32, preferredmaximum : u32, classinfoarray : *mut *mut DHCP_CLASS_INFO_ARRAY_V6, nread : *mut u32, ntotal : *mut u32) -> u32); - DhcpEnumClassesV6(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(classinfoarray), core::mem::transmute(nread), core::mem::transmute(ntotal)) + DhcpEnumClassesV6(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(classinfoarray), core::mem::transmute(nread), core::mem::transmute(ntotal)) } #[inline] pub unsafe fn DhcpEnumFilterV4(serveripaddress: P0, resumehandle: *mut DHCP_ADDR_PATTERN, preferredmaximum: u32, listtype: DHCP_FILTER_LIST_TYPE, enumfilterinfo: *mut *mut DHCP_FILTER_ENUM_INFO, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -279,7 +279,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumFilterV4(serveripaddress : windows_core::PCWSTR, resumehandle : *mut DHCP_ADDR_PATTERN, preferredmaximum : u32, listtype : DHCP_FILTER_LIST_TYPE, enumfilterinfo : *mut *mut DHCP_FILTER_ENUM_INFO, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumFilterV4(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(listtype), core::mem::transmute(enumfilterinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumFilterV4(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, listtype, core::mem::transmute(enumfilterinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpEnumOptionValues(serveripaddress: P0, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 @@ -287,7 +287,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumOptionValues(serveripaddress : windows_core::PCWSTR, scopeinfo : *const DHCP_OPTION_SCOPE_INFO, resumehandle : *mut u32, preferredmaximum : u32, optionvalues : *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread : *mut u32, optionstotal : *mut u32) -> u32); - DhcpEnumOptionValues(serveripaddress.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(optionvalues), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) + DhcpEnumOptionValues(serveripaddress.param().abi(), scopeinfo, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(optionvalues), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) } #[inline] pub unsafe fn DhcpEnumOptionValuesV5(serveripaddress: P0, flags: u32, classname: P2, vendorname: P3, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 @@ -297,7 +297,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumOptionValuesV5(serveripaddress : windows_core::PCWSTR, flags : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, resumehandle : *mut u32, preferredmaximum : u32, optionvalues : *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread : *mut u32, optionstotal : *mut u32) -> u32); - DhcpEnumOptionValuesV5(serveripaddress.param().abi(), core::mem::transmute(flags), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(optionvalues), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) + DhcpEnumOptionValuesV5(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(optionvalues), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) } #[inline] pub unsafe fn DhcpEnumOptionValuesV6(serveripaddress: P0, flags: u32, classname: P2, vendorname: P3, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 @@ -307,7 +307,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumOptionValuesV6(serveripaddress : windows_core::PCWSTR, flags : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6, resumehandle : *mut u32, preferredmaximum : u32, optionvalues : *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread : *mut u32, optionstotal : *mut u32) -> u32); - DhcpEnumOptionValuesV6(serveripaddress.param().abi(), core::mem::transmute(flags), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(optionvalues), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) + DhcpEnumOptionValuesV6(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(optionvalues), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) } #[inline] pub unsafe fn DhcpEnumOptions(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 @@ -315,7 +315,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumOptions(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, options : *mut *mut DHCP_OPTION_ARRAY, optionsread : *mut u32, optionstotal : *mut u32) -> u32); - DhcpEnumOptions(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(options), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) + DhcpEnumOptions(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(options), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) } #[inline] pub unsafe fn DhcpEnumOptionsV5(serveripaddress: P0, flags: u32, classname: P2, vendorname: P3, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 @@ -325,7 +325,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumOptionsV5(serveripaddress : windows_core::PCWSTR, flags : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, options : *mut *mut DHCP_OPTION_ARRAY, optionsread : *mut u32, optionstotal : *mut u32) -> u32); - DhcpEnumOptionsV5(serveripaddress.param().abi(), core::mem::transmute(flags), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(options), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) + DhcpEnumOptionsV5(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(options), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) } #[inline] pub unsafe fn DhcpEnumOptionsV6(serveripaddress: P0, flags: u32, classname: P2, vendorname: P3, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 @@ -335,12 +335,12 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumOptionsV6(serveripaddress : windows_core::PCWSTR, flags : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, options : *mut *mut DHCP_OPTION_ARRAY, optionsread : *mut u32, optionstotal : *mut u32) -> u32); - DhcpEnumOptionsV6(serveripaddress.param().abi(), core::mem::transmute(flags), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(options), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) + DhcpEnumOptionsV6(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(options), core::mem::transmute(optionsread), core::mem::transmute(optionstotal)) } #[inline] pub unsafe fn DhcpEnumServers(flags: u32, idinfo: *mut core::ffi::c_void, servers: *mut *mut DHCPDS_SERVERS, callbackfn: *mut core::ffi::c_void, callbackdata: *mut core::ffi::c_void) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumServers(flags : u32, idinfo : *mut core::ffi::c_void, servers : *mut *mut DHCPDS_SERVERS, callbackfn : *mut core::ffi::c_void, callbackdata : *mut core::ffi::c_void) -> u32); - DhcpEnumServers(core::mem::transmute(flags), core::mem::transmute(idinfo), core::mem::transmute(servers), core::mem::transmute(callbackfn), core::mem::transmute(callbackdata)) + DhcpEnumServers(flags, core::mem::transmute(idinfo), core::mem::transmute(servers), core::mem::transmute(callbackfn), core::mem::transmute(callbackdata)) } #[inline] pub unsafe fn DhcpEnumSubnetClients(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_ARRAY, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -348,7 +348,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetClients(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_ARRAY, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpEnumSubnetClients(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpEnumSubnetClients(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetClientsFilterStatusInfo(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_FILTER_STATUS_INFO_ARRAY, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -356,7 +356,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetClientsFilterStatusInfo(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_FILTER_STATUS_INFO_ARRAY, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpEnumSubnetClientsFilterStatusInfo(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpEnumSubnetClientsFilterStatusInfo(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetClientsV4(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_ARRAY_V4, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -364,7 +364,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetClientsV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_ARRAY_V4, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpEnumSubnetClientsV4(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpEnumSubnetClientsV4(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetClientsV5(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_ARRAY_V5, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -372,7 +372,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetClientsV5(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_ARRAY_V5, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpEnumSubnetClientsV5(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpEnumSubnetClientsV5(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetClientsV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, resumehandle: *mut DHCP_IPV6_ADDRESS, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_ARRAY_V6, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -380,7 +380,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetClientsV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, resumehandle : *mut DHCP_IPV6_ADDRESS, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_ARRAY_V6, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpEnumSubnetClientsV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpEnumSubnetClientsV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetClientsVQ(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_ARRAY_VQ, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -388,7 +388,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetClientsVQ(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_ARRAY_VQ, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpEnumSubnetClientsVQ(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpEnumSubnetClientsVQ(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetElements(serveripaddress: P0, subnetaddress: u32, enumelementtype: DHCP_SUBNET_ELEMENT_TYPE, resumehandle: *mut u32, preferredmaximum: u32, enumelementinfo: *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -396,7 +396,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetElements(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, enumelementtype : DHCP_SUBNET_ELEMENT_TYPE, resumehandle : *mut u32, preferredmaximum : u32, enumelementinfo : *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumSubnetElements(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(enumelementtype), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumSubnetElements(serveripaddress.param().abi(), subnetaddress, enumelementtype, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetElementsV4(serveripaddress: P0, subnetaddress: u32, enumelementtype: DHCP_SUBNET_ELEMENT_TYPE, resumehandle: *mut u32, preferredmaximum: u32, enumelementinfo: *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -404,7 +404,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetElementsV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, enumelementtype : DHCP_SUBNET_ELEMENT_TYPE, resumehandle : *mut u32, preferredmaximum : u32, enumelementinfo : *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumSubnetElementsV4(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(enumelementtype), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumSubnetElementsV4(serveripaddress.param().abi(), subnetaddress, enumelementtype, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetElementsV5(serveripaddress: P0, subnetaddress: u32, enumelementtype: DHCP_SUBNET_ELEMENT_TYPE, resumehandle: *mut u32, preferredmaximum: u32, enumelementinfo: *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY_V5, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -412,7 +412,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetElementsV5(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, enumelementtype : DHCP_SUBNET_ELEMENT_TYPE, resumehandle : *mut u32, preferredmaximum : u32, enumelementinfo : *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY_V5, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumSubnetElementsV5(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(enumelementtype), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumSubnetElementsV5(serveripaddress.param().abi(), subnetaddress, enumelementtype, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetElementsV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, enumelementtype: DHCP_SUBNET_ELEMENT_TYPE_V6, resumehandle: *mut u32, preferredmaximum: u32, enumelementinfo: *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY_V6, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -420,7 +420,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetElementsV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, enumelementtype : DHCP_SUBNET_ELEMENT_TYPE_V6, resumehandle : *mut u32, preferredmaximum : u32, enumelementinfo : *mut *mut DHCP_SUBNET_ELEMENT_INFO_ARRAY_V6, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumSubnetElementsV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(enumelementtype), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumSubnetElementsV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), enumelementtype, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpEnumSubnets(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, enuminfo: *mut *mut DHCP_IP_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -428,7 +428,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnets(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, enuminfo : *mut *mut DHCP_IP_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumSubnets(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumSubnets(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpEnumSubnetsV6(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, enuminfo: *mut *mut DHCPV6_IP_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -436,7 +436,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpEnumSubnetsV6(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, enuminfo : *mut *mut DHCPV6_IP_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpEnumSubnetsV6(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpEnumSubnetsV6(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpGetAllOptionValues(serveripaddress: P0, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32 @@ -444,7 +444,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetAllOptionValues(serveripaddress : windows_core::PCWSTR, flags : u32, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, values : *mut *mut DHCP_ALL_OPTION_VALUES) -> u32); - DhcpGetAllOptionValues(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(scopeinfo), core::mem::transmute(values)) + DhcpGetAllOptionValues(serveripaddress.param().abi(), flags, core::mem::transmute(scopeinfo), core::mem::transmute(values)) } #[inline] pub unsafe fn DhcpGetAllOptionValuesV6(serveripaddress: P0, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32 @@ -452,7 +452,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetAllOptionValuesV6(serveripaddress : windows_core::PCWSTR, flags : u32, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6, values : *mut *mut DHCP_ALL_OPTION_VALUES) -> u32); - DhcpGetAllOptionValuesV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(scopeinfo), core::mem::transmute(values)) + DhcpGetAllOptionValuesV6(serveripaddress.param().abi(), flags, core::mem::transmute(scopeinfo), core::mem::transmute(values)) } #[inline] pub unsafe fn DhcpGetAllOptions(serveripaddress: P0, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32 @@ -460,7 +460,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetAllOptions(serveripaddress : windows_core::PCWSTR, flags : u32, optionstruct : *mut *mut DHCP_ALL_OPTIONS) -> u32); - DhcpGetAllOptions(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionstruct)) + DhcpGetAllOptions(serveripaddress.param().abi(), flags, core::mem::transmute(optionstruct)) } #[inline] pub unsafe fn DhcpGetAllOptionsV6(serveripaddress: P0, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32 @@ -468,7 +468,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetAllOptionsV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionstruct : *mut *mut DHCP_ALL_OPTIONS) -> u32); - DhcpGetAllOptionsV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionstruct)) + DhcpGetAllOptionsV6(serveripaddress.param().abi(), flags, core::mem::transmute(optionstruct)) } #[inline] pub unsafe fn DhcpGetClassInfo(serveripaddress: P0, reservedmustbezero: u32, partialclassinfo: *mut DHCP_CLASS_INFO, filledclassinfo: *mut *mut DHCP_CLASS_INFO) -> u32 @@ -476,7 +476,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetClassInfo(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, partialclassinfo : *mut DHCP_CLASS_INFO, filledclassinfo : *mut *mut DHCP_CLASS_INFO) -> u32); - DhcpGetClassInfo(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(partialclassinfo), core::mem::transmute(filledclassinfo)) + DhcpGetClassInfo(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(partialclassinfo), core::mem::transmute(filledclassinfo)) } #[inline] pub unsafe fn DhcpGetClientInfo(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO) -> u32 @@ -484,7 +484,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetClientInfo(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO, clientinfo : *mut *mut DHCP_CLIENT_INFO) -> u32); - DhcpGetClientInfo(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpGetClientInfo(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpGetClientInfoV4(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_V4) -> u32 @@ -492,7 +492,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetClientInfoV4(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO, clientinfo : *mut *mut DHCP_CLIENT_INFO_V4) -> u32); - DhcpGetClientInfoV4(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpGetClientInfoV4(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpGetClientInfoV6(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO_V6, clientinfo: *mut *mut DHCP_CLIENT_INFO_V6) -> u32 @@ -500,7 +500,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetClientInfoV6(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO_V6, clientinfo : *mut *mut DHCP_CLIENT_INFO_V6) -> u32); - DhcpGetClientInfoV6(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpGetClientInfoV6(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpGetClientInfoVQ(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_VQ) -> u32 @@ -508,7 +508,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetClientInfoVQ(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO, clientinfo : *mut *mut DHCP_CLIENT_INFO_VQ) -> u32); - DhcpGetClientInfoVQ(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpGetClientInfoVQ(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpGetClientOptions(serveripaddress: P0, clientipaddress: u32, clientsubnetmask: u32, clientoptions: *mut *mut DHCP_OPTION_LIST) -> u32 @@ -516,7 +516,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetClientOptions(serveripaddress : windows_core::PCWSTR, clientipaddress : u32, clientsubnetmask : u32, clientoptions : *mut *mut DHCP_OPTION_LIST) -> u32); - DhcpGetClientOptions(serveripaddress.param().abi(), core::mem::transmute(clientipaddress), core::mem::transmute(clientsubnetmask), core::mem::transmute(clientoptions)) + DhcpGetClientOptions(serveripaddress.param().abi(), clientipaddress, clientsubnetmask, core::mem::transmute(clientoptions)) } #[inline] pub unsafe fn DhcpGetFilterV4(serveripaddress: P0, globalfilterinfo: *mut DHCP_FILTER_GLOBAL_INFO) -> u32 @@ -556,7 +556,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetOptionInfo(serveripaddress : windows_core::PCWSTR, optionid : u32, optioninfo : *mut *mut DHCP_OPTION) -> u32); - DhcpGetOptionInfo(serveripaddress.param().abi(), core::mem::transmute(optionid), core::mem::transmute(optioninfo)) + DhcpGetOptionInfo(serveripaddress.param().abi(), optionid, core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpGetOptionInfoV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, optioninfo: *mut *mut DHCP_OPTION) -> u32 @@ -566,7 +566,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetOptionInfoV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, optioninfo : *mut *mut DHCP_OPTION) -> u32); - DhcpGetOptionInfoV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) + DhcpGetOptionInfoV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpGetOptionInfoV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, optioninfo: *mut *mut DHCP_OPTION) -> u32 @@ -576,7 +576,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetOptionInfoV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, optioninfo : *mut *mut DHCP_OPTION) -> u32); - DhcpGetOptionInfoV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) + DhcpGetOptionInfoV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpGetOptionValue(serveripaddress: P0, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 @@ -584,7 +584,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetOptionValue(serveripaddress : windows_core::PCWSTR, optionid : u32, scopeinfo : *const DHCP_OPTION_SCOPE_INFO, optionvalue : *mut *mut DHCP_OPTION_VALUE) -> u32); - DhcpGetOptionValue(serveripaddress.param().abi(), core::mem::transmute(optionid), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpGetOptionValue(serveripaddress.param().abi(), optionid, scopeinfo, core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpGetOptionValueV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 @@ -594,7 +594,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetOptionValueV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, optionvalue : *mut *mut DHCP_OPTION_VALUE) -> u32); - DhcpGetOptionValueV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpGetOptionValueV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpGetOptionValueV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 @@ -604,7 +604,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetOptionValueV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6, optionvalue : *mut *mut DHCP_OPTION_VALUE) -> u32); - DhcpGetOptionValueV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpGetOptionValueV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpGetOriginalSubnetMask(sadaptername: P0, dwsubnetmask: *mut u32) -> u32 @@ -620,7 +620,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetServerBindingInfo(serveripaddress : windows_core::PCWSTR, flags : u32, bindelementsinfo : *mut *mut DHCP_BIND_ELEMENT_ARRAY) -> u32); - DhcpGetServerBindingInfo(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(bindelementsinfo)) + DhcpGetServerBindingInfo(serveripaddress.param().abi(), flags, core::mem::transmute(bindelementsinfo)) } #[inline] pub unsafe fn DhcpGetServerBindingInfoV6(serveripaddress: P0, flags: u32, bindelementsinfo: *mut *mut DHCPV6_BIND_ELEMENT_ARRAY) -> u32 @@ -628,7 +628,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetServerBindingInfoV6(serveripaddress : windows_core::PCWSTR, flags : u32, bindelementsinfo : *mut *mut DHCPV6_BIND_ELEMENT_ARRAY) -> u32); - DhcpGetServerBindingInfoV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(bindelementsinfo)) + DhcpGetServerBindingInfoV6(serveripaddress.param().abi(), flags, core::mem::transmute(bindelementsinfo)) } #[inline] pub unsafe fn DhcpGetServerSpecificStrings(serveripaddress: P0, serverspecificstrings: *mut *mut DHCP_SERVER_SPECIFIC_STRINGS) -> u32 @@ -644,7 +644,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetSubnetDelayOffer(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, timedelayinmilliseconds : *mut u16) -> u32); - DhcpGetSubnetDelayOffer(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(timedelayinmilliseconds)) + DhcpGetSubnetDelayOffer(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(timedelayinmilliseconds)) } #[inline] pub unsafe fn DhcpGetSubnetInfo(serveripaddress: P0, subnetaddress: u32, subnetinfo: *mut *mut DHCP_SUBNET_INFO) -> u32 @@ -652,7 +652,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetSubnetInfo(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, subnetinfo : *mut *mut DHCP_SUBNET_INFO) -> u32); - DhcpGetSubnetInfo(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(subnetinfo)) + DhcpGetSubnetInfo(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(subnetinfo)) } #[inline] pub unsafe fn DhcpGetSubnetInfoV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut *mut DHCP_SUBNET_INFO_V6) -> u32 @@ -668,7 +668,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetSubnetInfoVQ(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, subnetinfo : *mut *mut DHCP_SUBNET_INFO_VQ) -> u32); - DhcpGetSubnetInfoVQ(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(subnetinfo)) + DhcpGetSubnetInfoVQ(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(subnetinfo)) } #[inline] pub unsafe fn DhcpGetSuperScopeInfoV4(serveripaddress: P0, superscopetable: *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32 @@ -697,17 +697,17 @@ where P5: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprAddV4PolicyCondition(policy : *mut DHCP_POLICY, parentexpr : u32, r#type : DHCP_POL_ATTR_TYPE, optionid : u32, suboptionid : u32, vendorname : windows_core::PCWSTR, operator : DHCP_POL_COMPARATOR, value : *const u8, valuelength : u32, conditionindex : *mut u32) -> u32); - DhcpHlprAddV4PolicyCondition(core::mem::transmute(policy), core::mem::transmute(parentexpr), core::mem::transmute(r#type), core::mem::transmute(optionid), core::mem::transmute(suboptionid), vendorname.param().abi(), core::mem::transmute(operator), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap(), core::mem::transmute(conditionindex)) + DhcpHlprAddV4PolicyCondition(core::mem::transmute(policy), parentexpr, r#type, optionid, suboptionid, vendorname.param().abi(), operator, core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap(), core::mem::transmute(conditionindex)) } #[inline] pub unsafe fn DhcpHlprAddV4PolicyExpr(policy: *mut DHCP_POLICY, parentexpr: u32, operator: DHCP_POL_LOGIC_OPER, exprindex: *mut u32) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprAddV4PolicyExpr(policy : *mut DHCP_POLICY, parentexpr : u32, operator : DHCP_POL_LOGIC_OPER, exprindex : *mut u32) -> u32); - DhcpHlprAddV4PolicyExpr(core::mem::transmute(policy), core::mem::transmute(parentexpr), core::mem::transmute(operator), core::mem::transmute(exprindex)) + DhcpHlprAddV4PolicyExpr(core::mem::transmute(policy), parentexpr, operator, core::mem::transmute(exprindex)) } #[inline] pub unsafe fn DhcpHlprAddV4PolicyRange(policy: *mut DHCP_POLICY, range: *const DHCP_IP_RANGE) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprAddV4PolicyRange(policy : *mut DHCP_POLICY, range : *const DHCP_IP_RANGE) -> u32); - DhcpHlprAddV4PolicyRange(core::mem::transmute(policy), core::mem::transmute(range)) + DhcpHlprAddV4PolicyRange(core::mem::transmute(policy), range) } #[inline] pub unsafe fn DhcpHlprCreateV4Policy(policyname: P0, fglobalpolicy: bool, subnet: u32, processingorder: u32, rootoperator: DHCP_POL_LOGIC_OPER, description: P5, enabled: bool, policy: *mut *mut DHCP_POLICY) -> u32 @@ -716,7 +716,7 @@ where P5: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprCreateV4Policy(policyname : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnet : u32, processingorder : u32, rootoperator : DHCP_POL_LOGIC_OPER, description : windows_core::PCWSTR, enabled : super::super::Foundation:: BOOL, policy : *mut *mut DHCP_POLICY) -> u32); - DhcpHlprCreateV4Policy(policyname.param().abi(), fglobalpolicy.into(), core::mem::transmute(subnet), core::mem::transmute(processingorder), core::mem::transmute(rootoperator), description.param().abi(), enabled.into(), core::mem::transmute(policy)) + DhcpHlprCreateV4Policy(policyname.param().abi(), fglobalpolicy.into(), subnet, processingorder, rootoperator, description.param().abi(), enabled.into(), core::mem::transmute(policy)) } #[inline] pub unsafe fn DhcpHlprCreateV4PolicyEx(policyname: P0, fglobalpolicy: bool, subnet: u32, processingorder: u32, rootoperator: DHCP_POL_LOGIC_OPER, description: P5, enabled: bool, policy: *mut *mut DHCP_POLICY_EX) -> u32 @@ -725,12 +725,12 @@ where P5: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprCreateV4PolicyEx(policyname : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnet : u32, processingorder : u32, rootoperator : DHCP_POL_LOGIC_OPER, description : windows_core::PCWSTR, enabled : super::super::Foundation:: BOOL, policy : *mut *mut DHCP_POLICY_EX) -> u32); - DhcpHlprCreateV4PolicyEx(policyname.param().abi(), fglobalpolicy.into(), core::mem::transmute(subnet), core::mem::transmute(processingorder), core::mem::transmute(rootoperator), description.param().abi(), enabled.into(), core::mem::transmute(policy)) + DhcpHlprCreateV4PolicyEx(policyname.param().abi(), fglobalpolicy.into(), subnet, processingorder, rootoperator, description.param().abi(), enabled.into(), core::mem::transmute(policy)) } #[inline] pub unsafe fn DhcpHlprFindV4DhcpProperty(propertyarray: *const DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprFindV4DhcpProperty(propertyarray : *const DHCP_PROPERTY_ARRAY, id : DHCP_PROPERTY_ID, r#type : DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY); - DhcpHlprFindV4DhcpProperty(core::mem::transmute(propertyarray), core::mem::transmute(id), core::mem::transmute(r#type)) + DhcpHlprFindV4DhcpProperty(propertyarray, id, r#type) } #[inline] pub unsafe fn DhcpHlprFreeV4DhcpProperty(property: *mut DHCP_PROPERTY) { @@ -765,22 +765,22 @@ pub unsafe fn DhcpHlprFreeV4PolicyExArray(policyexarray: *mut DHCP_POLICY_EX_ARR #[inline] pub unsafe fn DhcpHlprIsV4PolicySingleUC(policy: *const DHCP_POLICY) -> super::super::Foundation::BOOL { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicySingleUC(policy : *const DHCP_POLICY) -> super::super::Foundation:: BOOL); - DhcpHlprIsV4PolicySingleUC(core::mem::transmute(policy)) + DhcpHlprIsV4PolicySingleUC(policy) } #[inline] pub unsafe fn DhcpHlprIsV4PolicyValid(ppolicy: *const DHCP_POLICY) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicyValid(ppolicy : *const DHCP_POLICY) -> u32); - DhcpHlprIsV4PolicyValid(core::mem::transmute(ppolicy)) + DhcpHlprIsV4PolicyValid(ppolicy) } #[inline] pub unsafe fn DhcpHlprIsV4PolicyWellFormed(ppolicy: *const DHCP_POLICY) -> super::super::Foundation::BOOL { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicyWellFormed(ppolicy : *const DHCP_POLICY) -> super::super::Foundation:: BOOL); - DhcpHlprIsV4PolicyWellFormed(core::mem::transmute(ppolicy)) + DhcpHlprIsV4PolicyWellFormed(ppolicy) } #[inline] pub unsafe fn DhcpHlprModifyV4PolicyExpr(policy: *mut DHCP_POLICY, operator: DHCP_POL_LOGIC_OPER) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprModifyV4PolicyExpr(policy : *mut DHCP_POLICY, operator : DHCP_POL_LOGIC_OPER) -> u32); - DhcpHlprModifyV4PolicyExpr(core::mem::transmute(policy), core::mem::transmute(operator)) + DhcpHlprModifyV4PolicyExpr(core::mem::transmute(policy), operator) } #[inline] pub unsafe fn DhcpHlprResetV4PolicyExpr(policy: *mut DHCP_POLICY) -> u32 { @@ -793,7 +793,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpModifyClass(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classinfo : *mut DHCP_CLASS_INFO) -> u32); - DhcpModifyClass(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(classinfo)) + DhcpModifyClass(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(classinfo)) } #[inline] pub unsafe fn DhcpModifyClassV6(serveripaddress: P0, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO_V6) -> u32 @@ -801,7 +801,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpModifyClassV6(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classinfo : *mut DHCP_CLASS_INFO_V6) -> u32); - DhcpModifyClassV6(serveripaddress.param().abi(), core::mem::transmute(reservedmustbezero), core::mem::transmute(classinfo)) + DhcpModifyClassV6(serveripaddress.param().abi(), reservedmustbezero, core::mem::transmute(classinfo)) } #[inline] pub unsafe fn DhcpRegisterParamChange(flags: u32, reserved: Option<*const core::ffi::c_void>, adaptername: P2, classid: *mut DHCPCAPI_CLASSID, params: DHCPCAPI_PARAMS_ARRAY, handle: *mut core::ffi::c_void) -> u32 @@ -809,7 +809,7 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpcsvc.dll" "system" fn DhcpRegisterParamChange(flags : u32, reserved : *const core::ffi::c_void, adaptername : windows_core::PCWSTR, classid : *mut DHCPCAPI_CLASSID, params : DHCPCAPI_PARAMS_ARRAY, handle : *mut core::ffi::c_void) -> u32); - DhcpRegisterParamChange(core::mem::transmute(flags), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), adaptername.param().abi(), core::mem::transmute(classid), core::mem::transmute(params), core::mem::transmute(handle)) + DhcpRegisterParamChange(flags, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), adaptername.param().abi(), core::mem::transmute(classid), core::mem::transmute(params), core::mem::transmute(handle)) } #[inline] pub unsafe fn DhcpRemoveDNSRegistrations() -> u32 { @@ -822,7 +822,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOption(serveripaddress : windows_core::PCWSTR, optionid : u32) -> u32); - DhcpRemoveOption(serveripaddress.param().abi(), core::mem::transmute(optionid)) + DhcpRemoveOption(serveripaddress.param().abi(), optionid) } #[inline] pub unsafe fn DhcpRemoveOptionV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4) -> u32 @@ -832,7 +832,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOptionV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR) -> u32); - DhcpRemoveOptionV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi()) + DhcpRemoveOptionV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi()) } #[inline] pub unsafe fn DhcpRemoveOptionV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4) -> u32 @@ -842,7 +842,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOptionV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR) -> u32); - DhcpRemoveOptionV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi()) + DhcpRemoveOptionV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi()) } #[inline] pub unsafe fn DhcpRemoveOptionValue(serveripaddress: P0, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO) -> u32 @@ -850,7 +850,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOptionValue(serveripaddress : windows_core::PCWSTR, optionid : u32, scopeinfo : *const DHCP_OPTION_SCOPE_INFO) -> u32); - DhcpRemoveOptionValue(serveripaddress.param().abi(), core::mem::transmute(optionid), core::mem::transmute(scopeinfo)) + DhcpRemoveOptionValue(serveripaddress.param().abi(), optionid, scopeinfo) } #[inline] pub unsafe fn DhcpRemoveOptionValueV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32 @@ -860,7 +860,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOptionValueV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO) -> u32); - DhcpRemoveOptionValueV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo)) + DhcpRemoveOptionValueV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo)) } #[inline] pub unsafe fn DhcpRemoveOptionValueV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6) -> u32 @@ -870,7 +870,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOptionValueV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6) -> u32); - DhcpRemoveOptionValueV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo)) + DhcpRemoveOptionValueV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo)) } #[inline] pub unsafe fn DhcpRemoveSubnetElement(serveripaddress: P0, subnetaddress: u32, removeelementinfo: *const DHCP_SUBNET_ELEMENT_DATA, forceflag: DHCP_FORCE_FLAG) -> u32 @@ -878,7 +878,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveSubnetElement(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, removeelementinfo : *const DHCP_SUBNET_ELEMENT_DATA, forceflag : DHCP_FORCE_FLAG) -> u32); - DhcpRemoveSubnetElement(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(removeelementinfo), core::mem::transmute(forceflag)) + DhcpRemoveSubnetElement(serveripaddress.param().abi(), subnetaddress, removeelementinfo, forceflag) } #[inline] pub unsafe fn DhcpRemoveSubnetElementV4(serveripaddress: P0, subnetaddress: u32, removeelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V4, forceflag: DHCP_FORCE_FLAG) -> u32 @@ -886,7 +886,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveSubnetElementV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, removeelementinfo : *const DHCP_SUBNET_ELEMENT_DATA_V4, forceflag : DHCP_FORCE_FLAG) -> u32); - DhcpRemoveSubnetElementV4(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(removeelementinfo), core::mem::transmute(forceflag)) + DhcpRemoveSubnetElementV4(serveripaddress.param().abi(), subnetaddress, removeelementinfo, forceflag) } #[inline] pub unsafe fn DhcpRemoveSubnetElementV5(serveripaddress: P0, subnetaddress: u32, removeelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V5, forceflag: DHCP_FORCE_FLAG) -> u32 @@ -894,7 +894,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveSubnetElementV5(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, removeelementinfo : *const DHCP_SUBNET_ELEMENT_DATA_V5, forceflag : DHCP_FORCE_FLAG) -> u32); - DhcpRemoveSubnetElementV5(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(removeelementinfo), core::mem::transmute(forceflag)) + DhcpRemoveSubnetElementV5(serveripaddress.param().abi(), subnetaddress, removeelementinfo, forceflag) } #[inline] pub unsafe fn DhcpRemoveSubnetElementV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, removeelementinfo: *mut DHCP_SUBNET_ELEMENT_DATA_V6, forceflag: DHCP_FORCE_FLAG) -> u32 @@ -902,7 +902,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveSubnetElementV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, removeelementinfo : *mut DHCP_SUBNET_ELEMENT_DATA_V6, forceflag : DHCP_FORCE_FLAG) -> u32); - DhcpRemoveSubnetElementV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(removeelementinfo), core::mem::transmute(forceflag)) + DhcpRemoveSubnetElementV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(removeelementinfo), forceflag) } #[inline] pub unsafe fn DhcpRequestParams(flags: u32, reserved: *mut core::ffi::c_void, adaptername: P2, classid: *mut DHCPCAPI_CLASSID, sendparams: DHCPCAPI_PARAMS_ARRAY, recdparams: DHCPCAPI_PARAMS_ARRAY, buffer: *mut u8, psize: *mut u32, requestidstr: P8) -> u32 @@ -911,7 +911,7 @@ where P8: windows_core::Param, { windows_targets::link!("dhcpcsvc.dll" "system" fn DhcpRequestParams(flags : u32, reserved : *mut core::ffi::c_void, adaptername : windows_core::PCWSTR, classid : *mut DHCPCAPI_CLASSID, sendparams : DHCPCAPI_PARAMS_ARRAY, recdparams : DHCPCAPI_PARAMS_ARRAY, buffer : *mut u8, psize : *mut u32, requestidstr : windows_core::PCWSTR) -> u32); - DhcpRequestParams(core::mem::transmute(flags), core::mem::transmute(reserved), adaptername.param().abi(), core::mem::transmute(classid), core::mem::transmute(sendparams), core::mem::transmute(recdparams), core::mem::transmute(buffer), core::mem::transmute(psize), requestidstr.param().abi()) + DhcpRequestParams(flags, core::mem::transmute(reserved), adaptername.param().abi(), core::mem::transmute(classid), core::mem::transmute(sendparams), core::mem::transmute(recdparams), core::mem::transmute(buffer), core::mem::transmute(psize), requestidstr.param().abi()) } #[inline] pub unsafe fn DhcpRpcFreeMemory(bufferpointer: *mut core::ffi::c_void) { @@ -924,7 +924,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpScanDatabase(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, fixflag : u32, scanlist : *mut *mut DHCP_SCAN_LIST) -> u32); - DhcpScanDatabase(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(fixflag), core::mem::transmute(scanlist)) + DhcpScanDatabase(serveripaddress.param().abi(), subnetaddress, fixflag, core::mem::transmute(scanlist)) } #[inline] pub unsafe fn DhcpServerAuditlogParamsFree(configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ) { @@ -978,7 +978,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerQueryAttribute(serveripaddr : windows_core::PCWSTR, dwreserved : u32, dhcpattribid : u32, pdhcpattrib : *mut *mut DHCP_ATTRIB) -> u32); - DhcpServerQueryAttribute(serveripaddr.param().abi(), core::mem::transmute(dwreserved), core::mem::transmute(dhcpattribid), core::mem::transmute(pdhcpattrib)) + DhcpServerQueryAttribute(serveripaddr.param().abi(), dwreserved, dhcpattribid, core::mem::transmute(pdhcpattrib)) } #[inline] pub unsafe fn DhcpServerQueryAttributes(serveripaddr: P0, dwreserved: u32, dwattribcount: u32, pdhcpattribs: *mut u32, pdhcpattribarr: *mut *mut DHCP_ATTRIB_ARRAY) -> u32 @@ -986,7 +986,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerQueryAttributes(serveripaddr : windows_core::PCWSTR, dwreserved : u32, dwattribcount : u32, pdhcpattribs : *mut u32, pdhcpattribarr : *mut *mut DHCP_ATTRIB_ARRAY) -> u32); - DhcpServerQueryAttributes(serveripaddr.param().abi(), core::mem::transmute(dwreserved), core::mem::transmute(dwattribcount), core::mem::transmute(pdhcpattribs), core::mem::transmute(pdhcpattribarr)) + DhcpServerQueryAttributes(serveripaddr.param().abi(), dwreserved, dwattribcount, core::mem::transmute(pdhcpattribs), core::mem::transmute(pdhcpattribarr)) } #[inline] pub unsafe fn DhcpServerQueryDnsRegCredentials(serveripaddress: P0, uname: &mut [u16], domain: &mut [u16]) -> u32 @@ -1002,7 +1002,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerRedoAuthorization(serveripaddr : windows_core::PCWSTR, dwreserved : u32) -> u32); - DhcpServerRedoAuthorization(serveripaddr.param().abi(), core::mem::transmute(dwreserved)) + DhcpServerRedoAuthorization(serveripaddr.param().abi(), dwreserved) } #[inline] pub unsafe fn DhcpServerRestoreDatabase(serveripaddress: P0, path: P1) -> u32 @@ -1019,7 +1019,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerSetConfig(serveripaddress : windows_core::PCWSTR, fieldstoset : u32, configinfo : *mut DHCP_SERVER_CONFIG_INFO) -> u32); - DhcpServerSetConfig(serveripaddress.param().abi(), core::mem::transmute(fieldstoset), core::mem::transmute(configinfo)) + DhcpServerSetConfig(serveripaddress.param().abi(), fieldstoset, core::mem::transmute(configinfo)) } #[inline] pub unsafe fn DhcpServerSetConfigV4(serveripaddress: P0, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32 @@ -1027,7 +1027,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerSetConfigV4(serveripaddress : windows_core::PCWSTR, fieldstoset : u32, configinfo : *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32); - DhcpServerSetConfigV4(serveripaddress.param().abi(), core::mem::transmute(fieldstoset), core::mem::transmute(configinfo)) + DhcpServerSetConfigV4(serveripaddress.param().abi(), fieldstoset, core::mem::transmute(configinfo)) } #[inline] pub unsafe fn DhcpServerSetConfigV6(serveripaddress: P0, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32 @@ -1035,7 +1035,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerSetConfigV6(serveripaddress : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6, fieldstoset : u32, configinfo : *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32); - DhcpServerSetConfigV6(serveripaddress.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(fieldstoset), core::mem::transmute(configinfo)) + DhcpServerSetConfigV6(serveripaddress.param().abi(), core::mem::transmute(scopeinfo), fieldstoset, core::mem::transmute(configinfo)) } #[inline] pub unsafe fn DhcpServerSetConfigVQ(serveripaddress: P0, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32 @@ -1043,7 +1043,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerSetConfigVQ(serveripaddress : windows_core::PCWSTR, fieldstoset : u32, configinfo : *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32); - DhcpServerSetConfigVQ(serveripaddress.param().abi(), core::mem::transmute(fieldstoset), core::mem::transmute(configinfo)) + DhcpServerSetConfigVQ(serveripaddress.param().abi(), fieldstoset, core::mem::transmute(configinfo)) } #[inline] pub unsafe fn DhcpServerSetDnsRegCredentials(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 @@ -1073,7 +1073,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO) -> u32); - DhcpSetClientInfo(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpSetClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetClientInfoV4(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V4) -> u32 @@ -1081,7 +1081,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetClientInfoV4(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_V4) -> u32); - DhcpSetClientInfoV4(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpSetClientInfoV4(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetClientInfoV6(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V6) -> u32 @@ -1089,7 +1089,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetClientInfoV6(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_V6) -> u32); - DhcpSetClientInfoV6(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpSetClientInfoV6(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetClientInfoVQ(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_VQ) -> u32 @@ -1097,7 +1097,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetClientInfoVQ(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_VQ) -> u32); - DhcpSetClientInfoVQ(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpSetClientInfoVQ(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetFilterV4(serveripaddress: P0, globalfilterinfo: *const DHCP_FILTER_GLOBAL_INFO) -> u32 @@ -1105,7 +1105,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetFilterV4(serveripaddress : windows_core::PCWSTR, globalfilterinfo : *const DHCP_FILTER_GLOBAL_INFO) -> u32); - DhcpSetFilterV4(serveripaddress.param().abi(), core::mem::transmute(globalfilterinfo)) + DhcpSetFilterV4(serveripaddress.param().abi(), globalfilterinfo) } #[inline] pub unsafe fn DhcpSetOptionInfo(serveripaddress: P0, optionid: u32, optioninfo: *const DHCP_OPTION) -> u32 @@ -1113,7 +1113,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionInfo(serveripaddress : windows_core::PCWSTR, optionid : u32, optioninfo : *const DHCP_OPTION) -> u32); - DhcpSetOptionInfo(serveripaddress.param().abi(), core::mem::transmute(optionid), core::mem::transmute(optioninfo)) + DhcpSetOptionInfo(serveripaddress.param().abi(), optionid, optioninfo) } #[inline] pub unsafe fn DhcpSetOptionInfoV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, optioninfo: *mut DHCP_OPTION) -> u32 @@ -1123,7 +1123,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionInfoV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, optioninfo : *mut DHCP_OPTION) -> u32); - DhcpSetOptionInfoV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) + DhcpSetOptionInfoV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpSetOptionInfoV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, optioninfo: *mut DHCP_OPTION) -> u32 @@ -1133,7 +1133,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionInfoV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, optioninfo : *mut DHCP_OPTION) -> u32); - DhcpSetOptionInfoV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) + DhcpSetOptionInfoV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(optioninfo)) } #[inline] pub unsafe fn DhcpSetOptionValue(serveripaddress: P0, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalue: *const DHCP_OPTION_DATA) -> u32 @@ -1141,7 +1141,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionValue(serveripaddress : windows_core::PCWSTR, optionid : u32, scopeinfo : *const DHCP_OPTION_SCOPE_INFO, optionvalue : *const DHCP_OPTION_DATA) -> u32); - DhcpSetOptionValue(serveripaddress.param().abi(), core::mem::transmute(optionid), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpSetOptionValue(serveripaddress.param().abi(), optionid, scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpSetOptionValueV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32 @@ -1151,7 +1151,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionValueV5(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, optionvalue : *mut DHCP_OPTION_DATA) -> u32); - DhcpSetOptionValueV5(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpSetOptionValueV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpSetOptionValueV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut DHCP_OPTION_DATA) -> u32 @@ -1161,7 +1161,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionValueV6(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6, optionvalue : *mut DHCP_OPTION_DATA) -> u32); - DhcpSetOptionValueV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpSetOptionValueV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpSetOptionValues(serveripaddress: P0, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalues: *const DHCP_OPTION_VALUE_ARRAY) -> u32 @@ -1169,7 +1169,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionValues(serveripaddress : windows_core::PCWSTR, scopeinfo : *const DHCP_OPTION_SCOPE_INFO, optionvalues : *const DHCP_OPTION_VALUE_ARRAY) -> u32); - DhcpSetOptionValues(serveripaddress.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalues)) + DhcpSetOptionValues(serveripaddress.param().abi(), scopeinfo, optionvalues) } #[inline] pub unsafe fn DhcpSetOptionValuesV5(serveripaddress: P0, flags: u32, classname: P2, vendorname: P3, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32 @@ -1179,7 +1179,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetOptionValuesV5(serveripaddress : windows_core::PCWSTR, flags : u32, classname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, optionvalues : *mut DHCP_OPTION_VALUE_ARRAY) -> u32); - DhcpSetOptionValuesV5(serveripaddress.param().abi(), core::mem::transmute(flags), classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalues)) + DhcpSetOptionValuesV5(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalues)) } #[inline] pub unsafe fn DhcpSetServerBindingInfo(serveripaddress: P0, flags: u32, bindelementinfo: *mut DHCP_BIND_ELEMENT_ARRAY) -> u32 @@ -1187,7 +1187,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetServerBindingInfo(serveripaddress : windows_core::PCWSTR, flags : u32, bindelementinfo : *mut DHCP_BIND_ELEMENT_ARRAY) -> u32); - DhcpSetServerBindingInfo(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(bindelementinfo)) + DhcpSetServerBindingInfo(serveripaddress.param().abi(), flags, core::mem::transmute(bindelementinfo)) } #[inline] pub unsafe fn DhcpSetServerBindingInfoV6(serveripaddress: P0, flags: u32, bindelementinfo: *mut DHCPV6_BIND_ELEMENT_ARRAY) -> u32 @@ -1195,7 +1195,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetServerBindingInfoV6(serveripaddress : windows_core::PCWSTR, flags : u32, bindelementinfo : *mut DHCPV6_BIND_ELEMENT_ARRAY) -> u32); - DhcpSetServerBindingInfoV6(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(bindelementinfo)) + DhcpSetServerBindingInfoV6(serveripaddress.param().abi(), flags, core::mem::transmute(bindelementinfo)) } #[inline] pub unsafe fn DhcpSetSubnetDelayOffer(serveripaddress: P0, subnetaddress: u32, timedelayinmilliseconds: u16) -> u32 @@ -1203,7 +1203,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSubnetDelayOffer(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, timedelayinmilliseconds : u16) -> u32); - DhcpSetSubnetDelayOffer(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(timedelayinmilliseconds)) + DhcpSetSubnetDelayOffer(serveripaddress.param().abi(), subnetaddress, timedelayinmilliseconds) } #[inline] pub unsafe fn DhcpSetSubnetInfo(serveripaddress: P0, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO) -> u32 @@ -1211,7 +1211,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSubnetInfo(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, subnetinfo : *const DHCP_SUBNET_INFO) -> u32); - DhcpSetSubnetInfo(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(subnetinfo)) + DhcpSetSubnetInfo(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpSetSubnetInfoV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut DHCP_SUBNET_INFO_V6) -> u32 @@ -1227,7 +1227,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSubnetInfoVQ(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, subnetinfo : *const DHCP_SUBNET_INFO_VQ) -> u32); - DhcpSetSubnetInfoVQ(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(subnetinfo)) + DhcpSetSubnetInfoVQ(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpSetSuperScopeV4(serveripaddress: P0, subnetaddress: u32, superscopename: P2, changeexisting: bool) -> u32 @@ -1236,12 +1236,12 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSuperScopeV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, superscopename : windows_core::PCWSTR, changeexisting : super::super::Foundation:: BOOL) -> u32); - DhcpSetSuperScopeV4(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), superscopename.param().abi(), changeexisting.into()) + DhcpSetSuperScopeV4(serveripaddress.param().abi(), subnetaddress, superscopename.param().abi(), changeexisting.into()) } #[inline] pub unsafe fn DhcpSetThreadOptions(flags: u32, reserved: *mut core::ffi::c_void) -> u32 { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetThreadOptions(flags : u32, reserved : *mut core::ffi::c_void) -> u32); - DhcpSetThreadOptions(core::mem::transmute(flags), core::mem::transmute(reserved)) + DhcpSetThreadOptions(flags, core::mem::transmute(reserved)) } #[inline] pub unsafe fn DhcpUndoRequestParams(flags: Option, reserved: Option<*const core::ffi::c_void>, adaptername: P2, requestidstr: P3) -> u32 @@ -1259,7 +1259,7 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4AddPolicyRange(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, policyname : windows_core::PCWSTR, range : *const DHCP_IP_RANGE) -> u32); - DhcpV4AddPolicyRange(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), policyname.param().abi(), core::mem::transmute(range)) + DhcpV4AddPolicyRange(serveripaddress.param().abi(), subnetaddress, policyname.param().abi(), range) } #[inline] pub unsafe fn DhcpV4CreateClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_PB) -> u32 @@ -1267,7 +1267,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4CreateClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_PB) -> u32); - DhcpV4CreateClientInfo(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpV4CreateClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpV4CreateClientInfoEx(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_EX) -> u32 @@ -1275,7 +1275,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4CreateClientInfoEx(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_EX) -> u32); - DhcpV4CreateClientInfoEx(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpV4CreateClientInfoEx(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpV4CreatePolicy(serveripaddress: P0, ppolicy: *const DHCP_POLICY) -> u32 @@ -1283,7 +1283,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4CreatePolicy(serveripaddress : windows_core::PCWSTR, ppolicy : *const DHCP_POLICY) -> u32); - DhcpV4CreatePolicy(serveripaddress.param().abi(), core::mem::transmute(ppolicy)) + DhcpV4CreatePolicy(serveripaddress.param().abi(), ppolicy) } #[inline] pub unsafe fn DhcpV4CreatePolicyEx(serveripaddress: P0, policyex: *const DHCP_POLICY_EX) -> u32 @@ -1291,7 +1291,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4CreatePolicyEx(serveripaddress : windows_core::PCWSTR, policyex : *const DHCP_POLICY_EX) -> u32); - DhcpV4CreatePolicyEx(serveripaddress.param().abi(), core::mem::transmute(policyex)) + DhcpV4CreatePolicyEx(serveripaddress.param().abi(), policyex) } #[inline] pub unsafe fn DhcpV4DeletePolicy(serveripaddress: P0, fglobalpolicy: bool, subnetaddress: u32, policyname: P3) -> u32 @@ -1300,7 +1300,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4DeletePolicy(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR) -> u32); - DhcpV4DeletePolicy(serveripaddress.param().abi(), fglobalpolicy.into(), core::mem::transmute(subnetaddress), policyname.param().abi()) + DhcpV4DeletePolicy(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, policyname.param().abi()) } #[inline] pub unsafe fn DhcpV4EnumPolicies(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, fglobalpolicy: bool, subnetaddress: u32, enuminfo: *mut *mut DHCP_POLICY_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -1308,7 +1308,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumPolicies(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enuminfo : *mut *mut DHCP_POLICY_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpV4EnumPolicies(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), fglobalpolicy.into(), core::mem::transmute(subnetaddress), core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpV4EnumPolicies(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, fglobalpolicy.into(), subnetaddress, core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpV4EnumPoliciesEx(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, globalpolicy: bool, subnetaddress: u32, enuminfo: *mut *mut DHCP_POLICY_EX_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -1316,7 +1316,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumPoliciesEx(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, globalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enuminfo : *mut *mut DHCP_POLICY_EX_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpV4EnumPoliciesEx(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), globalpolicy.into(), core::mem::transmute(subnetaddress), core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpV4EnumPoliciesEx(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, globalpolicy.into(), subnetaddress, core::mem::transmute(enuminfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpV4EnumSubnetClients(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_PB_ARRAY, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -1324,7 +1324,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumSubnetClients(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_PB_ARRAY, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpV4EnumSubnetClients(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpV4EnumSubnetClients(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpV4EnumSubnetClientsEx(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_EX_ARRAY, clientsread: *mut u32, clientstotal: *mut u32) -> u32 @@ -1332,7 +1332,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumSubnetClientsEx(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, clientinfo : *mut *mut DHCP_CLIENT_INFO_EX_ARRAY, clientsread : *mut u32, clientstotal : *mut u32) -> u32); - DhcpV4EnumSubnetClientsEx(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) + DhcpV4EnumSubnetClientsEx(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(clientinfo), core::mem::transmute(clientsread), core::mem::transmute(clientstotal)) } #[inline] pub unsafe fn DhcpV4EnumSubnetReservations(serveripaddress: P0, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, enumelementinfo: *mut *mut DHCP_RESERVATION_INFO_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 @@ -1340,7 +1340,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumSubnetReservations(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, resumehandle : *mut u32, preferredmaximum : u32, enumelementinfo : *mut *mut DHCP_RESERVATION_INFO_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); - DhcpV4EnumSubnetReservations(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) + DhcpV4EnumSubnetReservations(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(enumelementinfo), core::mem::transmute(elementsread), core::mem::transmute(elementstotal)) } #[inline] pub unsafe fn DhcpV4FailoverAddScopeToRelationship(serveripaddress: P0, prelationship: *const DHCP_FAILOVER_RELATIONSHIP) -> u32 @@ -1348,7 +1348,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverAddScopeToRelationship(serveripaddress : windows_core::PCWSTR, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverAddScopeToRelationship(serveripaddress.param().abi(), core::mem::transmute(prelationship)) + DhcpV4FailoverAddScopeToRelationship(serveripaddress.param().abi(), prelationship) } #[inline] pub unsafe fn DhcpV4FailoverCreateRelationship(serveripaddress: P0, prelationship: *const DHCP_FAILOVER_RELATIONSHIP) -> u32 @@ -1356,7 +1356,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverCreateRelationship(serveripaddress : windows_core::PCWSTR, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverCreateRelationship(serveripaddress.param().abi(), core::mem::transmute(prelationship)) + DhcpV4FailoverCreateRelationship(serveripaddress.param().abi(), prelationship) } #[inline] pub unsafe fn DhcpV4FailoverDeleteRelationship(serveripaddress: P0, prelationshipname: P1) -> u32 @@ -1373,7 +1373,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverDeleteScopeFromRelationship(serveripaddress : windows_core::PCWSTR, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverDeleteScopeFromRelationship(serveripaddress.param().abi(), core::mem::transmute(prelationship)) + DhcpV4FailoverDeleteScopeFromRelationship(serveripaddress.param().abi(), prelationship) } #[inline] pub unsafe fn DhcpV4FailoverEnumRelationship(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, prelationship: *mut *mut DHCP_FAILOVER_RELATIONSHIP_ARRAY, relationshipread: *mut u32, relationshiptotal: *mut u32) -> u32 @@ -1381,7 +1381,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverEnumRelationship(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, prelationship : *mut *mut DHCP_FAILOVER_RELATIONSHIP_ARRAY, relationshipread : *mut u32, relationshiptotal : *mut u32) -> u32); - DhcpV4FailoverEnumRelationship(serveripaddress.param().abi(), core::mem::transmute(resumehandle), core::mem::transmute(preferredmaximum), core::mem::transmute(prelationship), core::mem::transmute(relationshipread), core::mem::transmute(relationshiptotal)) + DhcpV4FailoverEnumRelationship(serveripaddress.param().abi(), core::mem::transmute(resumehandle), preferredmaximum, core::mem::transmute(prelationship), core::mem::transmute(relationshipread), core::mem::transmute(relationshiptotal)) } #[inline] pub unsafe fn DhcpV4FailoverGetAddressStatus(serveripaddress: P0, subnetaddress: u32, pstatus: *mut u32) -> u32 @@ -1389,7 +1389,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetAddressStatus(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, pstatus : *mut u32) -> u32); - DhcpV4FailoverGetAddressStatus(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), core::mem::transmute(pstatus)) + DhcpV4FailoverGetAddressStatus(serveripaddress.param().abi(), subnetaddress, core::mem::transmute(pstatus)) } #[inline] pub unsafe fn DhcpV4FailoverGetClientInfo(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCPV4_FAILOVER_CLIENT_INFO) -> u32 @@ -1397,7 +1397,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetClientInfo(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO, clientinfo : *mut *mut DHCPV4_FAILOVER_CLIENT_INFO) -> u32); - DhcpV4FailoverGetClientInfo(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpV4FailoverGetClientInfo(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpV4FailoverGetRelationship(serveripaddress: P0, prelationshipname: P1, prelationship: *mut *mut DHCP_FAILOVER_RELATIONSHIP) -> u32 @@ -1414,7 +1414,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetScopeRelationship(serveripaddress : windows_core::PCWSTR, scopeid : u32, prelationship : *mut *mut DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverGetScopeRelationship(serveripaddress.param().abi(), core::mem::transmute(scopeid), core::mem::transmute(prelationship)) + DhcpV4FailoverGetScopeRelationship(serveripaddress.param().abi(), scopeid, core::mem::transmute(prelationship)) } #[inline] pub unsafe fn DhcpV4FailoverGetScopeStatistics(serveripaddress: P0, scopeid: u32, pstats: *mut *mut DHCP_FAILOVER_STATISTICS) -> u32 @@ -1422,7 +1422,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetScopeStatistics(serveripaddress : windows_core::PCWSTR, scopeid : u32, pstats : *mut *mut DHCP_FAILOVER_STATISTICS) -> u32); - DhcpV4FailoverGetScopeStatistics(serveripaddress.param().abi(), core::mem::transmute(scopeid), core::mem::transmute(pstats)) + DhcpV4FailoverGetScopeStatistics(serveripaddress.param().abi(), scopeid, core::mem::transmute(pstats)) } #[inline] pub unsafe fn DhcpV4FailoverGetSystemTime(serveripaddress: P0, ptime: *mut u32, pmaxalloweddeltatime: *mut u32) -> u32 @@ -1438,7 +1438,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverSetRelationship(serveripaddress : windows_core::PCWSTR, flags : u32, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverSetRelationship(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(prelationship)) + DhcpV4FailoverSetRelationship(serveripaddress.param().abi(), flags, prelationship) } #[inline] pub unsafe fn DhcpV4FailoverTriggerAddrAllocation(serveripaddress: P0, pfailrelname: P1) -> u32 @@ -1455,7 +1455,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetAllOptionValues(serveripaddress : windows_core::PCWSTR, flags : u32, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, values : *mut *mut DHCP_ALL_OPTION_VALUES_PB) -> u32); - DhcpV4GetAllOptionValues(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(scopeinfo), core::mem::transmute(values)) + DhcpV4GetAllOptionValues(serveripaddress.param().abi(), flags, core::mem::transmute(scopeinfo), core::mem::transmute(values)) } #[inline] pub unsafe fn DhcpV4GetClientInfo(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_PB) -> u32 @@ -1463,7 +1463,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetClientInfo(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO, clientinfo : *mut *mut DHCP_CLIENT_INFO_PB) -> u32); - DhcpV4GetClientInfo(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpV4GetClientInfo(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpV4GetClientInfoEx(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_EX) -> u32 @@ -1471,7 +1471,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetClientInfoEx(serveripaddress : windows_core::PCWSTR, searchinfo : *const DHCP_SEARCH_INFO, clientinfo : *mut *mut DHCP_CLIENT_INFO_EX) -> u32); - DhcpV4GetClientInfoEx(serveripaddress.param().abi(), core::mem::transmute(searchinfo), core::mem::transmute(clientinfo)) + DhcpV4GetClientInfoEx(serveripaddress.param().abi(), searchinfo, core::mem::transmute(clientinfo)) } #[inline] pub unsafe fn DhcpV4GetFreeIPAddress(serveripaddress: P0, scopeid: u32, startip: u32, endip: u32, numfreeaddrreq: u32, ipaddrlist: *mut *mut DHCP_IP_ARRAY) -> u32 @@ -1479,7 +1479,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetFreeIPAddress(serveripaddress : windows_core::PCWSTR, scopeid : u32, startip : u32, endip : u32, numfreeaddrreq : u32, ipaddrlist : *mut *mut DHCP_IP_ARRAY) -> u32); - DhcpV4GetFreeIPAddress(serveripaddress.param().abi(), core::mem::transmute(scopeid), core::mem::transmute(startip), core::mem::transmute(endip), core::mem::transmute(numfreeaddrreq), core::mem::transmute(ipaddrlist)) + DhcpV4GetFreeIPAddress(serveripaddress.param().abi(), scopeid, startip, endip, numfreeaddrreq, core::mem::transmute(ipaddrlist)) } #[inline] pub unsafe fn DhcpV4GetOptionValue(serveripaddress: P0, flags: u32, optionid: u32, policyname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 @@ -1489,7 +1489,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetOptionValue(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, policyname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, optionvalue : *mut *mut DHCP_OPTION_VALUE) -> u32); - DhcpV4GetOptionValue(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpV4GetOptionValue(serveripaddress.param().abi(), flags, optionid, policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpV4GetPolicy(serveripaddress: P0, fglobalpolicy: bool, subnetaddress: u32, policyname: P3, policy: *mut *mut DHCP_POLICY) -> u32 @@ -1498,7 +1498,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetPolicy(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *mut *mut DHCP_POLICY) -> u32); - DhcpV4GetPolicy(serveripaddress.param().abi(), fglobalpolicy.into(), core::mem::transmute(subnetaddress), policyname.param().abi(), core::mem::transmute(policy)) + DhcpV4GetPolicy(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, policyname.param().abi(), core::mem::transmute(policy)) } #[inline] pub unsafe fn DhcpV4GetPolicyEx(serveripaddress: P0, globalpolicy: bool, subnetaddress: u32, policyname: P3, policy: *mut *mut DHCP_POLICY_EX) -> u32 @@ -1507,7 +1507,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetPolicyEx(serveripaddress : windows_core::PCWSTR, globalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *mut *mut DHCP_POLICY_EX) -> u32); - DhcpV4GetPolicyEx(serveripaddress.param().abi(), globalpolicy.into(), core::mem::transmute(subnetaddress), policyname.param().abi(), core::mem::transmute(policy)) + DhcpV4GetPolicyEx(serveripaddress.param().abi(), globalpolicy.into(), subnetaddress, policyname.param().abi(), core::mem::transmute(policy)) } #[inline] pub unsafe fn DhcpV4QueryPolicyEnforcement(serveripaddress: P0, fglobalpolicy: bool, subnetaddress: u32, enabled: *mut super::super::Foundation::BOOL) -> u32 @@ -1515,7 +1515,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4QueryPolicyEnforcement(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enabled : *mut super::super::Foundation:: BOOL) -> u32); - DhcpV4QueryPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.into(), core::mem::transmute(subnetaddress), core::mem::transmute(enabled)) + DhcpV4QueryPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, core::mem::transmute(enabled)) } #[inline] pub unsafe fn DhcpV4RemoveOptionValue(serveripaddress: P0, flags: u32, optionid: u32, policyname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32 @@ -1525,7 +1525,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4RemoveOptionValue(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, policyname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO) -> u32); - DhcpV4RemoveOptionValue(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo)) + DhcpV4RemoveOptionValue(serveripaddress.param().abi(), flags, optionid, policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo)) } #[inline] pub unsafe fn DhcpV4RemovePolicyRange(serveripaddress: P0, subnetaddress: u32, policyname: P2, range: *const DHCP_IP_RANGE) -> u32 @@ -1534,7 +1534,7 @@ where P2: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4RemovePolicyRange(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, policyname : windows_core::PCWSTR, range : *const DHCP_IP_RANGE) -> u32); - DhcpV4RemovePolicyRange(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), policyname.param().abi(), core::mem::transmute(range)) + DhcpV4RemovePolicyRange(serveripaddress.param().abi(), subnetaddress, policyname.param().abi(), range) } #[inline] pub unsafe fn DhcpV4SetOptionValue(serveripaddress: P0, flags: u32, optionid: u32, policyname: P3, vendorname: P4, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32 @@ -1544,7 +1544,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetOptionValue(serveripaddress : windows_core::PCWSTR, flags : u32, optionid : u32, policyname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, optionvalue : *mut DHCP_OPTION_DATA) -> u32); - DhcpV4SetOptionValue(serveripaddress.param().abi(), core::mem::transmute(flags), core::mem::transmute(optionid), policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) + DhcpV4SetOptionValue(serveripaddress.param().abi(), flags, optionid, policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalue)) } #[inline] pub unsafe fn DhcpV4SetOptionValues(serveripaddress: P0, flags: u32, policyname: P2, vendorname: P3, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32 @@ -1554,7 +1554,7 @@ where P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetOptionValues(serveripaddress : windows_core::PCWSTR, flags : u32, policyname : windows_core::PCWSTR, vendorname : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO, optionvalues : *mut DHCP_OPTION_VALUE_ARRAY) -> u32); - DhcpV4SetOptionValues(serveripaddress.param().abi(), core::mem::transmute(flags), policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalues)) + DhcpV4SetOptionValues(serveripaddress.param().abi(), flags, policyname.param().abi(), vendorname.param().abi(), core::mem::transmute(scopeinfo), core::mem::transmute(optionvalues)) } #[inline] pub unsafe fn DhcpV4SetPolicy(serveripaddress: P0, fieldsmodified: u32, fglobalpolicy: bool, subnetaddress: u32, policyname: P4, policy: *const DHCP_POLICY) -> u32 @@ -1563,7 +1563,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicy(serveripaddress : windows_core::PCWSTR, fieldsmodified : u32, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *const DHCP_POLICY) -> u32); - DhcpV4SetPolicy(serveripaddress.param().abi(), core::mem::transmute(fieldsmodified), fglobalpolicy.into(), core::mem::transmute(subnetaddress), policyname.param().abi(), core::mem::transmute(policy)) + DhcpV4SetPolicy(serveripaddress.param().abi(), fieldsmodified, fglobalpolicy.into(), subnetaddress, policyname.param().abi(), policy) } #[inline] pub unsafe fn DhcpV4SetPolicyEnforcement(serveripaddress: P0, fglobalpolicy: bool, subnetaddress: u32, enable: bool) -> u32 @@ -1571,7 +1571,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicyEnforcement(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enable : super::super::Foundation:: BOOL) -> u32); - DhcpV4SetPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.into(), core::mem::transmute(subnetaddress), enable.into()) + DhcpV4SetPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, enable.into()) } #[inline] pub unsafe fn DhcpV4SetPolicyEx(serveripaddress: P0, fieldsmodified: u32, globalpolicy: bool, subnetaddress: u32, policyname: P4, policy: *const DHCP_POLICY_EX) -> u32 @@ -1580,7 +1580,7 @@ where P4: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicyEx(serveripaddress : windows_core::PCWSTR, fieldsmodified : u32, globalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *const DHCP_POLICY_EX) -> u32); - DhcpV4SetPolicyEx(serveripaddress.param().abi(), core::mem::transmute(fieldsmodified), globalpolicy.into(), core::mem::transmute(subnetaddress), policyname.param().abi(), core::mem::transmute(policy)) + DhcpV4SetPolicyEx(serveripaddress.param().abi(), fieldsmodified, globalpolicy.into(), subnetaddress, policyname.param().abi(), policy) } #[inline] pub unsafe fn DhcpV6CreateClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V6) -> u32 @@ -1588,7 +1588,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6CreateClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO_V6) -> u32); - DhcpV6CreateClientInfo(serveripaddress.param().abi(), core::mem::transmute(clientinfo)) + DhcpV6CreateClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpV6GetFreeIPAddress(serveripaddress: P0, scopeid: DHCP_IPV6_ADDRESS, startip: DHCP_IPV6_ADDRESS, endip: DHCP_IPV6_ADDRESS, numfreeaddrreq: u32, ipaddrlist: *mut *mut DHCPV6_IP_ARRAY) -> u32 @@ -1596,7 +1596,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6GetFreeIPAddress(serveripaddress : windows_core::PCWSTR, scopeid : DHCP_IPV6_ADDRESS, startip : DHCP_IPV6_ADDRESS, endip : DHCP_IPV6_ADDRESS, numfreeaddrreq : u32, ipaddrlist : *mut *mut DHCPV6_IP_ARRAY) -> u32); - DhcpV6GetFreeIPAddress(serveripaddress.param().abi(), core::mem::transmute(scopeid), core::mem::transmute(startip), core::mem::transmute(endip), core::mem::transmute(numfreeaddrreq), core::mem::transmute(ipaddrlist)) + DhcpV6GetFreeIPAddress(serveripaddress.param().abi(), core::mem::transmute(scopeid), core::mem::transmute(startip), core::mem::transmute(endip), numfreeaddrreq, core::mem::transmute(ipaddrlist)) } #[inline] pub unsafe fn DhcpV6GetStatelessStatistics(serveripaddress: P0, statelessstats: *mut *mut DHCPV6_STATELESS_STATS) -> u32 @@ -1620,7 +1620,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6SetStatelessStoreParams(serveripaddress : windows_core::PCWSTR, fserverlevel : super::super::Foundation:: BOOL, subnetaddress : DHCP_IPV6_ADDRESS, fieldmodified : u32, params : *const DHCPV6_STATELESS_PARAMS) -> u32); - DhcpV6SetStatelessStoreParams(serveripaddress.param().abi(), fserverlevel.into(), core::mem::transmute(subnetaddress), core::mem::transmute(fieldmodified), core::mem::transmute(params)) + DhcpV6SetStatelessStoreParams(serveripaddress.param().abi(), fserverlevel.into(), core::mem::transmute(subnetaddress), fieldmodified, params) } #[inline] pub unsafe fn Dhcpv6CApiCleanup() { @@ -1646,7 +1646,7 @@ where P0: windows_core::Param, { windows_targets::link!("dhcpcsvc6.dll" "system" fn Dhcpv6RenewPrefix(adaptername : windows_core::PCWSTR, pclassid : *mut DHCPV6CAPI_CLASSID, prefixleaseinfo : *mut DHCPV6PrefixLeaseInformation, pdwtimetowait : *mut u32, bvalidateprefix : u32) -> u32); - Dhcpv6RenewPrefix(adaptername.param().abi(), core::mem::transmute(pclassid), core::mem::transmute(prefixleaseinfo), core::mem::transmute(pdwtimetowait), core::mem::transmute(bvalidateprefix)) + Dhcpv6RenewPrefix(adaptername.param().abi(), core::mem::transmute(pclassid), core::mem::transmute(prefixleaseinfo), core::mem::transmute(pdwtimetowait), bvalidateprefix) } #[inline] pub unsafe fn Dhcpv6RequestParams(forcenewinform: bool, reserved: *mut core::ffi::c_void, adaptername: P2, classid: *mut DHCPV6CAPI_CLASSID, recdparams: DHCPV6CAPI_PARAMS_ARRAY, buffer: *mut u8, psize: *mut u32) -> u32 diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs index 349edd5a2e..20d7b91276 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: Option<*const core::ffi::c_void>, pcontext: *mut super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsAcquireContextHandle_A(credentialflags : u32, credentials : *const core::ffi::c_void, pcontext : *mut super::super::Foundation:: HANDLE) -> i32); - DnsAcquireContextHandle_A(core::mem::transmute(credentialflags), core::mem::transmute(credentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontext)) + DnsAcquireContextHandle_A(credentialflags, core::mem::transmute(credentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontext)) } #[inline] pub unsafe fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: Option<*const core::ffi::c_void>, pcontext: *mut super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsAcquireContextHandle_W(credentialflags : u32, credentials : *const core::ffi::c_void, pcontext : *mut super::super::Foundation:: HANDLE) -> i32); - DnsAcquireContextHandle_W(core::mem::transmute(credentialflags), core::mem::transmute(credentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontext)) + DnsAcquireContextHandle_W(credentialflags, core::mem::transmute(credentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontext)) } #[inline] pub unsafe fn DnsCancelQuery(pcancelhandle: *const DNS_QUERY_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsCancelQuery(pcancelhandle : *const DNS_QUERY_CANCEL) -> i32); - DnsCancelQuery(core::mem::transmute(pcancelhandle)) + DnsCancelQuery(pcancelhandle) } #[inline] pub unsafe fn DnsCancelQueryRaw(cancelhandle: *const DNS_QUERY_RAW_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsCancelQueryRaw(cancelhandle : *const DNS_QUERY_RAW_CANCEL) -> i32); - DnsCancelQueryRaw(core::mem::transmute(cancelhandle)) + DnsCancelQueryRaw(cancelhandle) } #[inline] pub unsafe fn DnsConnectionDeletePolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG) -> u32 { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionDeletePolicyEntries(policyentrytag : DNS_CONNECTION_POLICY_TAG) -> u32); - DnsConnectionDeletePolicyEntries(core::mem::transmute(policyentrytag)) + DnsConnectionDeletePolicyEntries(policyentrytag) } #[inline] pub unsafe fn DnsConnectionDeleteProxyInfo(pwszconnectionname: P0, r#type: DNS_CONNECTION_PROXY_TYPE) -> u32 @@ -29,7 +29,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionDeleteProxyInfo(pwszconnectionname : windows_core::PCWSTR, r#type : DNS_CONNECTION_PROXY_TYPE) -> u32); - DnsConnectionDeleteProxyInfo(pwszconnectionname.param().abi(), core::mem::transmute(r#type)) + DnsConnectionDeleteProxyInfo(pwszconnectionname.param().abi(), r#type) } #[inline] pub unsafe fn DnsConnectionFreeNameList(pnamelist: *mut DNS_CONNECTION_NAME_LIST) { @@ -62,7 +62,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionGetProxyInfo(pwszconnectionname : windows_core::PCWSTR, r#type : DNS_CONNECTION_PROXY_TYPE, pproxyinfo : *mut DNS_CONNECTION_PROXY_INFO) -> u32); - DnsConnectionGetProxyInfo(pwszconnectionname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pproxyinfo)) + DnsConnectionGetProxyInfo(pwszconnectionname.param().abi(), r#type, core::mem::transmute(pproxyinfo)) } #[inline] pub unsafe fn DnsConnectionGetProxyInfoForHostUrl(pwszhosturl: P0, pselectioncontext: Option<&[u8]>, dwexplicitinterfaceindex: u32, pproxyinfoex: *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32 @@ -70,7 +70,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionGetProxyInfoForHostUrl(pwszhosturl : windows_core::PCWSTR, pselectioncontext : *const u8, dwselectioncontextlength : u32, dwexplicitinterfaceindex : u32, pproxyinfoex : *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32); - DnsConnectionGetProxyInfoForHostUrl(pwszhosturl.param().abi(), core::mem::transmute(pselectioncontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pselectioncontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwexplicitinterfaceindex), core::mem::transmute(pproxyinfoex)) + DnsConnectionGetProxyInfoForHostUrl(pwszhosturl.param().abi(), core::mem::transmute(pselectioncontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pselectioncontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwexplicitinterfaceindex, core::mem::transmute(pproxyinfoex)) } #[inline] pub unsafe fn DnsConnectionGetProxyInfoForHostUrlEx(pwszhosturl: P0, pselectioncontext: Option<&[u8]>, dwexplicitinterfaceindex: u32, pwszconnectionname: P4, pproxyinfoex: *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32 @@ -79,7 +79,7 @@ where P4: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionGetProxyInfoForHostUrlEx(pwszhosturl : windows_core::PCWSTR, pselectioncontext : *const u8, dwselectioncontextlength : u32, dwexplicitinterfaceindex : u32, pwszconnectionname : windows_core::PCWSTR, pproxyinfoex : *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32); - DnsConnectionGetProxyInfoForHostUrlEx(pwszhosturl.param().abi(), core::mem::transmute(pselectioncontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pselectioncontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwexplicitinterfaceindex), pwszconnectionname.param().abi(), core::mem::transmute(pproxyinfoex)) + DnsConnectionGetProxyInfoForHostUrlEx(pwszhosturl.param().abi(), core::mem::transmute(pselectioncontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pselectioncontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwexplicitinterfaceindex, pwszconnectionname.param().abi(), core::mem::transmute(pproxyinfoex)) } #[inline] pub unsafe fn DnsConnectionGetProxyList(pwszconnectionname: P0, pproxylist: *mut DNS_CONNECTION_PROXY_LIST) -> u32 @@ -92,7 +92,7 @@ where #[inline] pub unsafe fn DnsConnectionSetPolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG, ppolicyentrylist: *const DNS_CONNECTION_POLICY_ENTRY_LIST) -> u32 { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionSetPolicyEntries(policyentrytag : DNS_CONNECTION_POLICY_TAG, ppolicyentrylist : *const DNS_CONNECTION_POLICY_ENTRY_LIST) -> u32); - DnsConnectionSetPolicyEntries(core::mem::transmute(policyentrytag), core::mem::transmute(ppolicyentrylist)) + DnsConnectionSetPolicyEntries(policyentrytag, ppolicyentrylist) } #[inline] pub unsafe fn DnsConnectionSetProxyInfo(pwszconnectionname: P0, r#type: DNS_CONNECTION_PROXY_TYPE, pproxyinfo: *const DNS_CONNECTION_PROXY_INFO) -> u32 @@ -100,27 +100,27 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionSetProxyInfo(pwszconnectionname : windows_core::PCWSTR, r#type : DNS_CONNECTION_PROXY_TYPE, pproxyinfo : *const DNS_CONNECTION_PROXY_INFO) -> u32); - DnsConnectionSetProxyInfo(pwszconnectionname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pproxyinfo)) + DnsConnectionSetProxyInfo(pwszconnectionname.param().abi(), r#type, pproxyinfo) } #[inline] pub unsafe fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries: *const DNS_CONNECTION_IFINDEX_LIST) -> u32 { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries : *const DNS_CONNECTION_IFINDEX_LIST) -> u32); - DnsConnectionUpdateIfIndexTable(core::mem::transmute(pconnectionifindexentries)) + DnsConnectionUpdateIfIndexTable(pconnectionifindexentries) } #[inline] pub unsafe fn DnsExtractRecordsFromMessage_UTF8(pdnsbuffer: *const DNS_MESSAGE_BUFFER, wmessagelength: u16, pprecord: *mut *mut DNS_RECORDA) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsExtractRecordsFromMessage_UTF8(pdnsbuffer : *const DNS_MESSAGE_BUFFER, wmessagelength : u16, pprecord : *mut *mut DNS_RECORDA) -> i32); - DnsExtractRecordsFromMessage_UTF8(core::mem::transmute(pdnsbuffer), core::mem::transmute(wmessagelength), core::mem::transmute(pprecord)) + DnsExtractRecordsFromMessage_UTF8(pdnsbuffer, wmessagelength, core::mem::transmute(pprecord)) } #[inline] pub unsafe fn DnsExtractRecordsFromMessage_W(pdnsbuffer: *const DNS_MESSAGE_BUFFER, wmessagelength: u16, pprecord: *mut *mut DNS_RECORDA) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsExtractRecordsFromMessage_W(pdnsbuffer : *const DNS_MESSAGE_BUFFER, wmessagelength : u16, pprecord : *mut *mut DNS_RECORDA) -> i32); - DnsExtractRecordsFromMessage_W(core::mem::transmute(pdnsbuffer), core::mem::transmute(wmessagelength), core::mem::transmute(pprecord)) + DnsExtractRecordsFromMessage_W(pdnsbuffer, wmessagelength, core::mem::transmute(pprecord)) } #[inline] pub unsafe fn DnsFree(pdata: Option<*const core::ffi::c_void>, freetype: DNS_FREE_TYPE) { windows_targets::link!("dnsapi.dll" "system" fn DnsFree(pdata : *const core::ffi::c_void, freetype : DNS_FREE_TYPE)); - DnsFree(core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(freetype)) + DnsFree(core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), freetype) } #[inline] pub unsafe fn DnsFreeCustomServers(pcservers: *mut u32, ppservers: *mut *mut DNS_CUSTOM_SERVER) { @@ -151,17 +151,17 @@ where #[inline] pub unsafe fn DnsModifyRecordsInSet_A(paddrecords: Option<*const DNS_RECORDA>, pdeleterecords: Option<*const DNS_RECORDA>, options: u32, hcredentials: Option, pextralist: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsModifyRecordsInSet_A(paddrecords : *const DNS_RECORDA, pdeleterecords : *const DNS_RECORDA, options : u32, hcredentials : super::super::Foundation:: HANDLE, pextralist : *mut core::ffi::c_void, preserved : *mut core::ffi::c_void) -> i32); - DnsModifyRecordsInSet_A(core::mem::transmute(paddrecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdeleterecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(options), core::mem::transmute(hcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextralist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsModifyRecordsInSet_A(core::mem::transmute(paddrecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdeleterecords.unwrap_or(core::mem::zeroed())), options, core::mem::transmute(hcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextralist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsModifyRecordsInSet_UTF8(paddrecords: Option<*const DNS_RECORDA>, pdeleterecords: Option<*const DNS_RECORDA>, options: u32, hcredentials: Option, pextralist: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsModifyRecordsInSet_UTF8(paddrecords : *const DNS_RECORDA, pdeleterecords : *const DNS_RECORDA, options : u32, hcredentials : super::super::Foundation:: HANDLE, pextralist : *mut core::ffi::c_void, preserved : *mut core::ffi::c_void) -> i32); - DnsModifyRecordsInSet_UTF8(core::mem::transmute(paddrecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdeleterecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(options), core::mem::transmute(hcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextralist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsModifyRecordsInSet_UTF8(core::mem::transmute(paddrecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdeleterecords.unwrap_or(core::mem::zeroed())), options, core::mem::transmute(hcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextralist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsModifyRecordsInSet_W(paddrecords: Option<*const DNS_RECORDA>, pdeleterecords: Option<*const DNS_RECORDA>, options: u32, hcredentials: Option, pextralist: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsModifyRecordsInSet_W(paddrecords : *const DNS_RECORDA, pdeleterecords : *const DNS_RECORDA, options : u32, hcredentials : super::super::Foundation:: HANDLE, pextralist : *mut core::ffi::c_void, preserved : *mut core::ffi::c_void) -> i32); - DnsModifyRecordsInSet_W(core::mem::transmute(paddrecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdeleterecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(options), core::mem::transmute(hcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextralist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsModifyRecordsInSet_W(core::mem::transmute(paddrecords.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdeleterecords.unwrap_or(core::mem::zeroed())), options, core::mem::transmute(hcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextralist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsNameCompare_A(pname1: P0, pname2: P1) -> super::super::Foundation::BOOL @@ -187,17 +187,17 @@ where P2: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsQueryConfig(config : DNS_CONFIG_TYPE, flag : u32, pwsadaptername : windows_core::PCWSTR, preserved : *const core::ffi::c_void, pbuffer : *mut core::ffi::c_void, pbuflen : *mut u32) -> i32); - DnsQueryConfig(core::mem::transmute(config), core::mem::transmute(flag), pwsadaptername.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuflen)) + DnsQueryConfig(config, flag, pwsadaptername.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuflen)) } #[inline] pub unsafe fn DnsQueryEx(pqueryrequest: *const DNS_QUERY_REQUEST, pqueryresults: *mut DNS_QUERY_RESULT, pcancelhandle: Option<*mut DNS_QUERY_CANCEL>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsQueryEx(pqueryrequest : *const DNS_QUERY_REQUEST, pqueryresults : *mut DNS_QUERY_RESULT, pcancelhandle : *mut DNS_QUERY_CANCEL) -> i32); - DnsQueryEx(core::mem::transmute(pqueryrequest), core::mem::transmute(pqueryresults), core::mem::transmute(pcancelhandle.unwrap_or(core::mem::zeroed()))) + DnsQueryEx(pqueryrequest, core::mem::transmute(pqueryresults), core::mem::transmute(pcancelhandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsQueryRaw(queryrequest: *const DNS_QUERY_RAW_REQUEST, cancelhandle: *mut DNS_QUERY_RAW_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsQueryRaw(queryrequest : *const DNS_QUERY_RAW_REQUEST, cancelhandle : *mut DNS_QUERY_RAW_CANCEL) -> i32); - DnsQueryRaw(core::mem::transmute(queryrequest), core::mem::transmute(cancelhandle)) + DnsQueryRaw(queryrequest, core::mem::transmute(cancelhandle)) } #[inline] pub unsafe fn DnsQueryRawResultFree(queryresults: Option<*const DNS_QUERY_RAW_RESULT>) { @@ -210,7 +210,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsQuery_A(pszname : windows_core::PCSTR, wtype : DNS_TYPE, options : DNS_QUERY_OPTIONS, pextra : *mut core::ffi::c_void, ppqueryresults : *mut *mut DNS_RECORDA, preserved : *mut *mut core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - DnsQuery_A(pszname.param().abi(), core::mem::transmute(wtype), core::mem::transmute(options), core::mem::transmute(pextra.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppqueryresults), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsQuery_A(pszname.param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppqueryresults), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsQuery_UTF8(pszname: P0, wtype: DNS_TYPE, options: DNS_QUERY_OPTIONS, pextra: Option<*mut core::ffi::c_void>, ppqueryresults: *mut *mut DNS_RECORDA, preserved: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -218,7 +218,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsQuery_UTF8(pszname : windows_core::PCSTR, wtype : DNS_TYPE, options : DNS_QUERY_OPTIONS, pextra : *mut core::ffi::c_void, ppqueryresults : *mut *mut DNS_RECORDA, preserved : *mut *mut core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - DnsQuery_UTF8(pszname.param().abi(), core::mem::transmute(wtype), core::mem::transmute(options), core::mem::transmute(pextra.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppqueryresults), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsQuery_UTF8(pszname.param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppqueryresults), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsQuery_W(pszname: P0, wtype: DNS_TYPE, options: DNS_QUERY_OPTIONS, pextra: Option<*mut core::ffi::c_void>, ppqueryresults: *mut *mut DNS_RECORDA, preserved: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -226,17 +226,17 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsQuery_W(pszname : windows_core::PCWSTR, wtype : DNS_TYPE, options : DNS_QUERY_OPTIONS, pextra : *mut core::ffi::c_void, ppqueryresults : *mut *mut DNS_RECORDA, preserved : *mut *mut core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - DnsQuery_W(pszname.param().abi(), core::mem::transmute(wtype), core::mem::transmute(options), core::mem::transmute(pextra.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppqueryresults), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsQuery_W(pszname.param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppqueryresults), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsRecordCompare(precord1: *const DNS_RECORDA, precord2: *const DNS_RECORDA) -> super::super::Foundation::BOOL { windows_targets::link!("dnsapi.dll" "system" fn DnsRecordCompare(precord1 : *const DNS_RECORDA, precord2 : *const DNS_RECORDA) -> super::super::Foundation:: BOOL); - DnsRecordCompare(core::mem::transmute(precord1), core::mem::transmute(precord2)) + DnsRecordCompare(precord1, precord2) } #[inline] pub unsafe fn DnsRecordCopyEx(precord: *const DNS_RECORDA, charsetin: DNS_CHARSET, charsetout: DNS_CHARSET) -> *mut DNS_RECORDA { windows_targets::link!("dnsapi.dll" "system" fn DnsRecordCopyEx(precord : *const DNS_RECORDA, charsetin : DNS_CHARSET, charsetout : DNS_CHARSET) -> *mut DNS_RECORDA); - DnsRecordCopyEx(core::mem::transmute(precord), core::mem::transmute(charsetin), core::mem::transmute(charsetout)) + DnsRecordCopyEx(precord, charsetin, charsetout) } #[inline] pub unsafe fn DnsRecordSetCompare(prr1: *mut DNS_RECORDA, prr2: *mut DNS_RECORDA, ppdiff1: Option<*mut *mut DNS_RECORDA>, ppdiff2: Option<*mut *mut DNS_RECORDA>) -> super::super::Foundation::BOOL { @@ -246,7 +246,7 @@ pub unsafe fn DnsRecordSetCompare(prr1: *mut DNS_RECORDA, prr2: *mut DNS_RECORDA #[inline] pub unsafe fn DnsRecordSetCopyEx(precordset: *const DNS_RECORDA, charsetin: DNS_CHARSET, charsetout: DNS_CHARSET) -> *mut DNS_RECORDA { windows_targets::link!("dnsapi.dll" "system" fn DnsRecordSetCopyEx(precordset : *const DNS_RECORDA, charsetin : DNS_CHARSET, charsetout : DNS_CHARSET) -> *mut DNS_RECORDA); - DnsRecordSetCopyEx(core::mem::transmute(precordset), core::mem::transmute(charsetin), core::mem::transmute(charsetout)) + DnsRecordSetCopyEx(precordset, charsetin, charsetout) } #[inline] pub unsafe fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECORDA { @@ -256,32 +256,32 @@ pub unsafe fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECO #[inline] pub unsafe fn DnsReleaseContextHandle(hcontext: super::super::Foundation::HANDLE) { windows_targets::link!("dnsapi.dll" "system" fn DnsReleaseContextHandle(hcontext : super::super::Foundation:: HANDLE)); - DnsReleaseContextHandle(core::mem::transmute(hcontext)) + DnsReleaseContextHandle(hcontext) } #[inline] pub unsafe fn DnsReplaceRecordSetA(preplaceset: *const DNS_RECORDA, options: u32, hcontext: Option, pextrainfo: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsReplaceRecordSetA(preplaceset : *const DNS_RECORDA, options : u32, hcontext : super::super::Foundation:: HANDLE, pextrainfo : *mut core::ffi::c_void, preserved : *mut core::ffi::c_void) -> i32); - DnsReplaceRecordSetA(core::mem::transmute(preplaceset), core::mem::transmute(options), core::mem::transmute(hcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextrainfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsReplaceRecordSetA(preplaceset, options, core::mem::transmute(hcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextrainfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsReplaceRecordSetUTF8(preplaceset: *const DNS_RECORDA, options: u32, hcontext: Option, pextrainfo: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsReplaceRecordSetUTF8(preplaceset : *const DNS_RECORDA, options : u32, hcontext : super::super::Foundation:: HANDLE, pextrainfo : *mut core::ffi::c_void, preserved : *mut core::ffi::c_void) -> i32); - DnsReplaceRecordSetUTF8(core::mem::transmute(preplaceset), core::mem::transmute(options), core::mem::transmute(hcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextrainfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsReplaceRecordSetUTF8(preplaceset, options, core::mem::transmute(hcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextrainfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsReplaceRecordSetW(preplaceset: *const DNS_RECORDA, options: u32, hcontext: Option, pextrainfo: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsReplaceRecordSetW(preplaceset : *const DNS_RECORDA, options : u32, hcontext : super::super::Foundation:: HANDLE, pextrainfo : *mut core::ffi::c_void, preserved : *mut core::ffi::c_void) -> i32); - DnsReplaceRecordSetW(core::mem::transmute(preplaceset), core::mem::transmute(options), core::mem::transmute(hcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextrainfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + DnsReplaceRecordSetW(preplaceset, options, core::mem::transmute(hcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextrainfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsServiceBrowse(prequest: *const DNS_SERVICE_BROWSE_REQUEST, pcancel: *mut DNS_SERVICE_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceBrowse(prequest : *const DNS_SERVICE_BROWSE_REQUEST, pcancel : *mut DNS_SERVICE_CANCEL) -> i32); - DnsServiceBrowse(core::mem::transmute(prequest), core::mem::transmute(pcancel)) + DnsServiceBrowse(prequest, core::mem::transmute(pcancel)) } #[inline] pub unsafe fn DnsServiceBrowseCancel(pcancelhandle: *const DNS_SERVICE_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceBrowseCancel(pcancelhandle : *const DNS_SERVICE_CANCEL) -> i32); - DnsServiceBrowseCancel(core::mem::transmute(pcancelhandle)) + DnsServiceBrowseCancel(pcancelhandle) } #[inline] pub unsafe fn DnsServiceConstructInstance(pservicename: P0, phostname: P1, pip4: Option<*const u32>, pip6: Option<*const IP6_ADDRESS>, wport: u16, wpriority: u16, wweight: u16, dwpropertiescount: u32, keys: *const windows_core::PCWSTR, values: *const windows_core::PCWSTR) -> *mut DNS_SERVICE_INSTANCE @@ -290,42 +290,42 @@ where P1: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceConstructInstance(pservicename : windows_core::PCWSTR, phostname : windows_core::PCWSTR, pip4 : *const u32, pip6 : *const IP6_ADDRESS, wport : u16, wpriority : u16, wweight : u16, dwpropertiescount : u32, keys : *const windows_core::PCWSTR, values : *const windows_core::PCWSTR) -> *mut DNS_SERVICE_INSTANCE); - DnsServiceConstructInstance(pservicename.param().abi(), phostname.param().abi(), core::mem::transmute(pip4.unwrap_or(core::mem::zeroed())), core::mem::transmute(pip6.unwrap_or(core::mem::zeroed())), core::mem::transmute(wport), core::mem::transmute(wpriority), core::mem::transmute(wweight), core::mem::transmute(dwpropertiescount), core::mem::transmute(keys), core::mem::transmute(values)) + DnsServiceConstructInstance(pservicename.param().abi(), phostname.param().abi(), core::mem::transmute(pip4.unwrap_or(core::mem::zeroed())), core::mem::transmute(pip6.unwrap_or(core::mem::zeroed())), wport, wpriority, wweight, dwpropertiescount, keys, values) } #[inline] pub unsafe fn DnsServiceCopyInstance(porig: *const DNS_SERVICE_INSTANCE) -> *mut DNS_SERVICE_INSTANCE { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceCopyInstance(porig : *const DNS_SERVICE_INSTANCE) -> *mut DNS_SERVICE_INSTANCE); - DnsServiceCopyInstance(core::mem::transmute(porig)) + DnsServiceCopyInstance(porig) } #[inline] pub unsafe fn DnsServiceDeRegister(prequest: *const DNS_SERVICE_REGISTER_REQUEST, pcancel: Option<*mut DNS_SERVICE_CANCEL>) -> u32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceDeRegister(prequest : *const DNS_SERVICE_REGISTER_REQUEST, pcancel : *mut DNS_SERVICE_CANCEL) -> u32); - DnsServiceDeRegister(core::mem::transmute(prequest), core::mem::transmute(pcancel.unwrap_or(core::mem::zeroed()))) + DnsServiceDeRegister(prequest, core::mem::transmute(pcancel.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsServiceFreeInstance(pinstance: *const DNS_SERVICE_INSTANCE) { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceFreeInstance(pinstance : *const DNS_SERVICE_INSTANCE)); - DnsServiceFreeInstance(core::mem::transmute(pinstance)) + DnsServiceFreeInstance(pinstance) } #[inline] pub unsafe fn DnsServiceRegister(prequest: *const DNS_SERVICE_REGISTER_REQUEST, pcancel: Option<*mut DNS_SERVICE_CANCEL>) -> u32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceRegister(prequest : *const DNS_SERVICE_REGISTER_REQUEST, pcancel : *mut DNS_SERVICE_CANCEL) -> u32); - DnsServiceRegister(core::mem::transmute(prequest), core::mem::transmute(pcancel.unwrap_or(core::mem::zeroed()))) + DnsServiceRegister(prequest, core::mem::transmute(pcancel.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DnsServiceRegisterCancel(pcancelhandle: *const DNS_SERVICE_CANCEL) -> u32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceRegisterCancel(pcancelhandle : *const DNS_SERVICE_CANCEL) -> u32); - DnsServiceRegisterCancel(core::mem::transmute(pcancelhandle)) + DnsServiceRegisterCancel(pcancelhandle) } #[inline] pub unsafe fn DnsServiceResolve(prequest: *const DNS_SERVICE_RESOLVE_REQUEST, pcancel: *mut DNS_SERVICE_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceResolve(prequest : *const DNS_SERVICE_RESOLVE_REQUEST, pcancel : *mut DNS_SERVICE_CANCEL) -> i32); - DnsServiceResolve(core::mem::transmute(prequest), core::mem::transmute(pcancel)) + DnsServiceResolve(prequest, core::mem::transmute(pcancel)) } #[inline] pub unsafe fn DnsServiceResolveCancel(pcancelhandle: *const DNS_SERVICE_CANCEL) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsServiceResolveCancel(pcancelhandle : *const DNS_SERVICE_CANCEL) -> i32); - DnsServiceResolveCancel(core::mem::transmute(pcancelhandle)) + DnsServiceResolveCancel(pcancelhandle) } #[inline] pub unsafe fn DnsSetApplicationSettings(pservers: &[DNS_CUSTOM_SERVER], psettings: Option<*const DNS_APPLICATION_SETTINGS>) -> u32 { @@ -335,7 +335,7 @@ pub unsafe fn DnsSetApplicationSettings(pservers: &[DNS_CUSTOM_SERVER], psetting #[inline] pub unsafe fn DnsStartMulticastQuery(pqueryrequest: *const MDNS_QUERY_REQUEST, phandle: *mut MDNS_QUERY_HANDLE) -> i32 { windows_targets::link!("dnsapi.dll" "system" fn DnsStartMulticastQuery(pqueryrequest : *const MDNS_QUERY_REQUEST, phandle : *mut MDNS_QUERY_HANDLE) -> i32); - DnsStartMulticastQuery(core::mem::transmute(pqueryrequest), core::mem::transmute(phandle)) + DnsStartMulticastQuery(pqueryrequest, core::mem::transmute(phandle)) } #[inline] pub unsafe fn DnsStopMulticastQuery(phandle: *mut MDNS_QUERY_HANDLE) -> i32 { @@ -348,7 +348,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsValidateName_A(pszname : windows_core::PCSTR, format : DNS_NAME_FORMAT) -> i32); - DnsValidateName_A(pszname.param().abi(), core::mem::transmute(format)) + DnsValidateName_A(pszname.param().abi(), format) } #[inline] pub unsafe fn DnsValidateName_UTF8(pszname: P0, format: DNS_NAME_FORMAT) -> i32 @@ -356,7 +356,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsValidateName_UTF8(pszname : windows_core::PCSTR, format : DNS_NAME_FORMAT) -> i32); - DnsValidateName_UTF8(pszname.param().abi(), core::mem::transmute(format)) + DnsValidateName_UTF8(pszname.param().abi(), format) } #[inline] pub unsafe fn DnsValidateName_W(pszname: P0, format: DNS_NAME_FORMAT) -> i32 @@ -364,7 +364,7 @@ where P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsValidateName_W(pszname : windows_core::PCWSTR, format : DNS_NAME_FORMAT) -> i32); - DnsValidateName_W(pszname.param().abi(), core::mem::transmute(format)) + DnsValidateName_W(pszname.param().abi(), format) } #[inline] pub unsafe fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P2, wtype: u16, xid: u16, frecursiondesired: bool) -> super::super::Foundation::BOOL @@ -372,7 +372,7 @@ where P2: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer : *mut DNS_MESSAGE_BUFFER, pdwbuffersize : *mut u32, pszname : windows_core::PCSTR, wtype : u16, xid : u16, frecursiondesired : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DnsWriteQuestionToBuffer_UTF8(core::mem::transmute(pdnsbuffer), core::mem::transmute(pdwbuffersize), pszname.param().abi(), core::mem::transmute(wtype), core::mem::transmute(xid), frecursiondesired.into()) + DnsWriteQuestionToBuffer_UTF8(core::mem::transmute(pdnsbuffer), core::mem::transmute(pdwbuffersize), pszname.param().abi(), wtype, xid, frecursiondesired.into()) } #[inline] pub unsafe fn DnsWriteQuestionToBuffer_W(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P2, wtype: u16, xid: u16, frecursiondesired: bool) -> super::super::Foundation::BOOL @@ -380,7 +380,7 @@ where P2: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsWriteQuestionToBuffer_W(pdnsbuffer : *mut DNS_MESSAGE_BUFFER, pdwbuffersize : *mut u32, pszname : windows_core::PCWSTR, wtype : u16, xid : u16, frecursiondesired : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DnsWriteQuestionToBuffer_W(core::mem::transmute(pdnsbuffer), core::mem::transmute(pdwbuffersize), pszname.param().abi(), core::mem::transmute(wtype), core::mem::transmute(xid), frecursiondesired.into()) + DnsWriteQuestionToBuffer_W(core::mem::transmute(pdnsbuffer), core::mem::transmute(pdwbuffersize), pszname.param().abi(), wtype, xid, frecursiondesired.into()) } pub const DDR_MAX_IP_HINTS: u32 = 4u32; pub const DNSREC_ADDITIONAL: u32 = 3u32; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs index 660f979cc2..256bfe2899 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -1,40 +1,40 @@ #[inline] pub unsafe fn AddIPAddress(address: u32, ipmask: u32, ifindex: u32, ntecontext: *mut u32, nteinstance: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn AddIPAddress(address : u32, ipmask : u32, ifindex : u32, ntecontext : *mut u32, nteinstance : *mut u32) -> u32); - AddIPAddress(core::mem::transmute(address), core::mem::transmute(ipmask), core::mem::transmute(ifindex), core::mem::transmute(ntecontext), core::mem::transmute(nteinstance)) + AddIPAddress(address, ipmask, ifindex, core::mem::transmute(ntecontext), core::mem::transmute(nteinstance)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CancelIPChangeNotify(notifyoverlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL { windows_targets::link!("iphlpapi.dll" "system" fn CancelIPChangeNotify(notifyoverlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - CancelIPChangeNotify(core::mem::transmute(notifyoverlapped)) + CancelIPChangeNotify(notifyoverlapped) } #[inline] pub unsafe fn CancelIfTimestampConfigChange(notificationhandle: HIFTIMESTAMPCHANGE) { windows_targets::link!("iphlpapi.dll" "system" fn CancelIfTimestampConfigChange(notificationhandle : HIFTIMESTAMPCHANGE)); - CancelIfTimestampConfigChange(core::mem::transmute(notificationhandle)) + CancelIfTimestampConfigChange(notificationhandle) } #[inline] pub unsafe fn CancelMibChangeNotify2(notificationhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn CancelMibChangeNotify2(notificationhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - CancelMibChangeNotify2(core::mem::transmute(notificationhandle)) + CancelMibChangeNotify2(notificationhandle) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn CaptureInterfaceHardwareCrossTimestamp(interfaceluid: *const super::Ndis::NET_LUID_LH, crosstimestamp: *mut INTERFACE_HARDWARE_CROSSTIMESTAMP) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn CaptureInterfaceHardwareCrossTimestamp(interfaceluid : *const super::Ndis:: NET_LUID_LH, crosstimestamp : *mut INTERFACE_HARDWARE_CROSSTIMESTAMP) -> u32); - CaptureInterfaceHardwareCrossTimestamp(core::mem::transmute(interfaceluid), core::mem::transmute(crosstimestamp)) + CaptureInterfaceHardwareCrossTimestamp(interfaceluid, core::mem::transmute(crosstimestamp)) } #[inline] pub unsafe fn ConvertCompartmentGuidToId(compartmentguid: *const windows_core::GUID, compartmentid: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertCompartmentGuidToId(compartmentguid : *const windows_core::GUID, compartmentid : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - ConvertCompartmentGuidToId(core::mem::transmute(compartmentguid), core::mem::transmute(compartmentid)) + ConvertCompartmentGuidToId(compartmentguid, core::mem::transmute(compartmentid)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertCompartmentIdToGuid(compartmentid: super::Ndis::NET_IF_COMPARTMENT_ID, compartmentguid: *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertCompartmentIdToGuid(compartmentid : super::Ndis:: NET_IF_COMPARTMENT_ID, compartmentguid : *mut windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - ConvertCompartmentIdToGuid(core::mem::transmute(compartmentid), core::mem::transmute(compartmentguid)) + ConvertCompartmentIdToGuid(compartmentid, core::mem::transmute(compartmentguid)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -49,43 +49,43 @@ where #[inline] pub unsafe fn ConvertInterfaceGuidToLuid(interfaceguid: *const windows_core::GUID, interfaceluid: *mut super::Ndis::NET_LUID_LH) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceGuidToLuid(interfaceguid : *const windows_core::GUID, interfaceluid : *mut super::Ndis:: NET_LUID_LH) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceGuidToLuid(core::mem::transmute(interfaceguid), core::mem::transmute(interfaceluid)) + ConvertInterfaceGuidToLuid(interfaceguid, core::mem::transmute(interfaceluid)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceIndexToLuid(interfaceindex: u32, interfaceluid: *mut super::Ndis::NET_LUID_LH) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceIndexToLuid(interfaceindex : u32, interfaceluid : *mut super::Ndis:: NET_LUID_LH) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceIndexToLuid(core::mem::transmute(interfaceindex), core::mem::transmute(interfaceluid)) + ConvertInterfaceIndexToLuid(interfaceindex, core::mem::transmute(interfaceluid)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceLuidToAlias(interfaceluid: *const super::Ndis::NET_LUID_LH, interfacealias: &mut [u16]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceLuidToAlias(interfaceluid : *const super::Ndis:: NET_LUID_LH, interfacealias : windows_core::PWSTR, length : usize) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceLuidToAlias(core::mem::transmute(interfaceluid), core::mem::transmute(interfacealias.as_ptr()), interfacealias.len().try_into().unwrap()) + ConvertInterfaceLuidToAlias(interfaceluid, core::mem::transmute(interfacealias.as_ptr()), interfacealias.len().try_into().unwrap()) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceLuidToGuid(interfaceluid: *const super::Ndis::NET_LUID_LH, interfaceguid: *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceLuidToGuid(interfaceluid : *const super::Ndis:: NET_LUID_LH, interfaceguid : *mut windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceLuidToGuid(core::mem::transmute(interfaceluid), core::mem::transmute(interfaceguid)) + ConvertInterfaceLuidToGuid(interfaceluid, core::mem::transmute(interfaceguid)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceLuidToIndex(interfaceluid: *const super::Ndis::NET_LUID_LH, interfaceindex: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceLuidToIndex(interfaceluid : *const super::Ndis:: NET_LUID_LH, interfaceindex : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceLuidToIndex(core::mem::transmute(interfaceluid), core::mem::transmute(interfaceindex)) + ConvertInterfaceLuidToIndex(interfaceluid, core::mem::transmute(interfaceindex)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceLuidToNameA(interfaceluid: *const super::Ndis::NET_LUID_LH, interfacename: &mut [u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceLuidToNameA(interfaceluid : *const super::Ndis:: NET_LUID_LH, interfacename : windows_core::PSTR, length : usize) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceLuidToNameA(core::mem::transmute(interfaceluid), core::mem::transmute(interfacename.as_ptr()), interfacename.len().try_into().unwrap()) + ConvertInterfaceLuidToNameA(interfaceluid, core::mem::transmute(interfacename.as_ptr()), interfacename.len().try_into().unwrap()) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceLuidToNameW(interfaceluid: *const super::Ndis::NET_LUID_LH, interfacename: &mut [u16]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceLuidToNameW(interfaceluid : *const super::Ndis:: NET_LUID_LH, interfacename : windows_core::PWSTR, length : usize) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceLuidToNameW(core::mem::transmute(interfaceluid), core::mem::transmute(interfacename.as_ptr()), interfacename.len().try_into().unwrap()) + ConvertInterfaceLuidToNameW(interfaceluid, core::mem::transmute(interfacename.as_ptr()), interfacename.len().try_into().unwrap()) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -108,129 +108,129 @@ where #[inline] pub unsafe fn ConvertIpv4MaskToLength(mask: u32, masklength: *mut u8) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertIpv4MaskToLength(mask : u32, masklength : *mut u8) -> super::super::Foundation:: WIN32_ERROR); - ConvertIpv4MaskToLength(core::mem::transmute(mask), core::mem::transmute(masklength)) + ConvertIpv4MaskToLength(mask, core::mem::transmute(masklength)) } #[inline] pub unsafe fn ConvertLengthToIpv4Mask(masklength: u32, mask: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn ConvertLengthToIpv4Mask(masklength : u32, mask : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - ConvertLengthToIpv4Mask(core::mem::transmute(masklength), core::mem::transmute(mask)) + ConvertLengthToIpv4Mask(masklength, core::mem::transmute(mask)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn CreateAnycastIpAddressEntry(row: *const MIB_ANYCASTIPADDRESS_ROW) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn CreateAnycastIpAddressEntry(row : *const MIB_ANYCASTIPADDRESS_ROW) -> super::super::Foundation:: WIN32_ERROR); - CreateAnycastIpAddressEntry(core::mem::transmute(row)) + CreateAnycastIpAddressEntry(row) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn CreateIpForwardEntry(proute: *const MIB_IPFORWARDROW) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn CreateIpForwardEntry(proute : *const MIB_IPFORWARDROW) -> u32); - CreateIpForwardEntry(core::mem::transmute(proute)) + CreateIpForwardEntry(proute) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn CreateIpForwardEntry2(row: *const MIB_IPFORWARD_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn CreateIpForwardEntry2(row : *const MIB_IPFORWARD_ROW2) -> super::super::Foundation:: WIN32_ERROR); - CreateIpForwardEntry2(core::mem::transmute(row)) + CreateIpForwardEntry2(row) } #[inline] pub unsafe fn CreateIpNetEntry(parpentry: *const MIB_IPNETROW_LH) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn CreateIpNetEntry(parpentry : *const MIB_IPNETROW_LH) -> u32); - CreateIpNetEntry(core::mem::transmute(parpentry)) + CreateIpNetEntry(parpentry) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn CreateIpNetEntry2(row: *const MIB_IPNET_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn CreateIpNetEntry2(row : *const MIB_IPNET_ROW2) -> super::super::Foundation:: WIN32_ERROR); - CreateIpNetEntry2(core::mem::transmute(row)) + CreateIpNetEntry2(row) } #[inline] pub unsafe fn CreatePersistentTcpPortReservation(startport: u16, numberofports: u16, token: *mut u64) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn CreatePersistentTcpPortReservation(startport : u16, numberofports : u16, token : *mut u64) -> u32); - CreatePersistentTcpPortReservation(core::mem::transmute(startport), core::mem::transmute(numberofports), core::mem::transmute(token)) + CreatePersistentTcpPortReservation(startport, numberofports, core::mem::transmute(token)) } #[inline] pub unsafe fn CreatePersistentUdpPortReservation(startport: u16, numberofports: u16, token: *mut u64) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn CreatePersistentUdpPortReservation(startport : u16, numberofports : u16, token : *mut u64) -> u32); - CreatePersistentUdpPortReservation(core::mem::transmute(startport), core::mem::transmute(numberofports), core::mem::transmute(token)) + CreatePersistentUdpPortReservation(startport, numberofports, core::mem::transmute(token)) } #[inline] pub unsafe fn CreateProxyArpEntry(dwaddress: u32, dwmask: u32, dwifindex: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn CreateProxyArpEntry(dwaddress : u32, dwmask : u32, dwifindex : u32) -> u32); - CreateProxyArpEntry(core::mem::transmute(dwaddress), core::mem::transmute(dwmask), core::mem::transmute(dwifindex)) + CreateProxyArpEntry(dwaddress, dwmask, dwifindex) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn CreateSortedAddressPairs(sourceaddresslist: Option<*const super::super::Networking::WinSock::SOCKADDR_IN6>, sourceaddresscount: u32, destinationaddresslist: *const super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddresscount: u32, addresssortoptions: u32, sortedaddresspairlist: *mut *mut super::super::Networking::WinSock::SOCKADDR_IN6_PAIR, sortedaddresspaircount: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn CreateSortedAddressPairs(sourceaddresslist : *const super::super::Networking::WinSock:: SOCKADDR_IN6, sourceaddresscount : u32, destinationaddresslist : *const super::super::Networking::WinSock:: SOCKADDR_IN6, destinationaddresscount : u32, addresssortoptions : u32, sortedaddresspairlist : *mut *mut super::super::Networking::WinSock:: SOCKADDR_IN6_PAIR, sortedaddresspaircount : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - CreateSortedAddressPairs(core::mem::transmute(sourceaddresslist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourceaddresscount), core::mem::transmute(destinationaddresslist), core::mem::transmute(destinationaddresscount), core::mem::transmute(addresssortoptions), core::mem::transmute(sortedaddresspairlist), core::mem::transmute(sortedaddresspaircount)) + CreateSortedAddressPairs(core::mem::transmute(sourceaddresslist.unwrap_or(core::mem::zeroed())), sourceaddresscount, destinationaddresslist, destinationaddresscount, addresssortoptions, core::mem::transmute(sortedaddresspairlist), core::mem::transmute(sortedaddresspaircount)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn CreateUnicastIpAddressEntry(row: *const MIB_UNICASTIPADDRESS_ROW) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn CreateUnicastIpAddressEntry(row : *const MIB_UNICASTIPADDRESS_ROW) -> super::super::Foundation:: WIN32_ERROR); - CreateUnicastIpAddressEntry(core::mem::transmute(row)) + CreateUnicastIpAddressEntry(row) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn DeleteAnycastIpAddressEntry(row: *const MIB_ANYCASTIPADDRESS_ROW) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn DeleteAnycastIpAddressEntry(row : *const MIB_ANYCASTIPADDRESS_ROW) -> super::super::Foundation:: WIN32_ERROR); - DeleteAnycastIpAddressEntry(core::mem::transmute(row)) + DeleteAnycastIpAddressEntry(row) } #[inline] pub unsafe fn DeleteIPAddress(ntecontext: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DeleteIPAddress(ntecontext : u32) -> u32); - DeleteIPAddress(core::mem::transmute(ntecontext)) + DeleteIPAddress(ntecontext) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DeleteIpForwardEntry(proute: *const MIB_IPFORWARDROW) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DeleteIpForwardEntry(proute : *const MIB_IPFORWARDROW) -> u32); - DeleteIpForwardEntry(core::mem::transmute(proute)) + DeleteIpForwardEntry(proute) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn DeleteIpForwardEntry2(row: *const MIB_IPFORWARD_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn DeleteIpForwardEntry2(row : *const MIB_IPFORWARD_ROW2) -> super::super::Foundation:: WIN32_ERROR); - DeleteIpForwardEntry2(core::mem::transmute(row)) + DeleteIpForwardEntry2(row) } #[inline] pub unsafe fn DeleteIpNetEntry(parpentry: *const MIB_IPNETROW_LH) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DeleteIpNetEntry(parpentry : *const MIB_IPNETROW_LH) -> u32); - DeleteIpNetEntry(core::mem::transmute(parpentry)) + DeleteIpNetEntry(parpentry) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn DeleteIpNetEntry2(row: *const MIB_IPNET_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn DeleteIpNetEntry2(row : *const MIB_IPNET_ROW2) -> super::super::Foundation:: WIN32_ERROR); - DeleteIpNetEntry2(core::mem::transmute(row)) + DeleteIpNetEntry2(row) } #[inline] pub unsafe fn DeletePersistentTcpPortReservation(startport: u16, numberofports: u16) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DeletePersistentTcpPortReservation(startport : u16, numberofports : u16) -> u32); - DeletePersistentTcpPortReservation(core::mem::transmute(startport), core::mem::transmute(numberofports)) + DeletePersistentTcpPortReservation(startport, numberofports) } #[inline] pub unsafe fn DeletePersistentUdpPortReservation(startport: u16, numberofports: u16) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DeletePersistentUdpPortReservation(startport : u16, numberofports : u16) -> u32); - DeletePersistentUdpPortReservation(core::mem::transmute(startport), core::mem::transmute(numberofports)) + DeletePersistentUdpPortReservation(startport, numberofports) } #[inline] pub unsafe fn DeleteProxyArpEntry(dwaddress: u32, dwmask: u32, dwifindex: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DeleteProxyArpEntry(dwaddress : u32, dwmask : u32, dwifindex : u32) -> u32); - DeleteProxyArpEntry(core::mem::transmute(dwaddress), core::mem::transmute(dwmask), core::mem::transmute(dwifindex)) + DeleteProxyArpEntry(dwaddress, dwmask, dwifindex) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn DeleteUnicastIpAddressEntry(row: *const MIB_UNICASTIPADDRESS_ROW) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn DeleteUnicastIpAddressEntry(row : *const MIB_UNICASTIPADDRESS_ROW) -> super::super::Foundation:: WIN32_ERROR); - DeleteUnicastIpAddressEntry(core::mem::transmute(row)) + DeleteUnicastIpAddressEntry(row) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn DisableMediaSense(phandle: *mut super::super::Foundation::HANDLE, poverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn DisableMediaSense(phandle : *mut super::super::Foundation:: HANDLE, poverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - DisableMediaSense(core::mem::transmute(phandle), core::mem::transmute(poverlapped)) + DisableMediaSense(core::mem::transmute(phandle), poverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -241,19 +241,19 @@ pub unsafe fn EnableRouter(phandle: *mut super::super::Foundation::HANDLE, pover #[inline] pub unsafe fn FlushIpNetTable(dwifindex: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn FlushIpNetTable(dwifindex : u32) -> u32); - FlushIpNetTable(core::mem::transmute(dwifindex)) + FlushIpNetTable(dwifindex) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn FlushIpNetTable2(family: super::super::Networking::WinSock::ADDRESS_FAMILY, interfaceindex: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn FlushIpNetTable2(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, interfaceindex : u32) -> super::super::Foundation:: WIN32_ERROR); - FlushIpNetTable2(core::mem::transmute(family), core::mem::transmute(interfaceindex)) + FlushIpNetTable2(family, interfaceindex) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn FlushIpPathTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn FlushIpPathTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY) -> super::super::Foundation:: WIN32_ERROR); - FlushIpPathTable(core::mem::transmute(family)) + FlushIpPathTable(family) } #[inline] pub unsafe fn FreeDnsSettings(settings: *mut DNS_SETTINGS) { @@ -268,7 +268,7 @@ pub unsafe fn FreeInterfaceDnsSettings(settings: *mut DNS_INTERFACE_SETTINGS) { #[inline] pub unsafe fn FreeMibTable(memory: *const core::ffi::c_void) { windows_targets::link!("iphlpapi.dll" "system" fn FreeMibTable(memory : *const core::ffi::c_void)); - FreeMibTable(core::mem::transmute(memory)) + FreeMibTable(memory) } #[inline] pub unsafe fn GetAdapterIndex(adaptername: P0, ifindex: *mut u32) -> u32 @@ -287,7 +287,7 @@ pub unsafe fn GetAdapterOrderMap() -> *mut IP_ADAPTER_ORDER_MAP { #[inline] pub unsafe fn GetAdaptersAddresses(family: u32, flags: GET_ADAPTERS_ADDRESSES_FLAGS, reserved: Option<*const core::ffi::c_void>, adapteraddresses: Option<*mut IP_ADAPTER_ADDRESSES_LH>, sizepointer: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetAdaptersAddresses(family : u32, flags : GET_ADAPTERS_ADDRESSES_FLAGS, reserved : *const core::ffi::c_void, adapteraddresses : *mut IP_ADAPTER_ADDRESSES_LH, sizepointer : *mut u32) -> u32); - GetAdaptersAddresses(core::mem::transmute(family), core::mem::transmute(flags), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(adapteraddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(sizepointer)) + GetAdaptersAddresses(family, flags, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(adapteraddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(sizepointer)) } #[inline] pub unsafe fn GetAdaptersInfo(adapterinfo: Option<*mut IP_ADAPTER_INFO>, sizepointer: *mut u32) -> u32 { @@ -304,30 +304,30 @@ pub unsafe fn GetAnycastIpAddressEntry(row: *mut MIB_ANYCASTIPADDRESS_ROW) -> su #[inline] pub unsafe fn GetAnycastIpAddressTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_ANYCASTIPADDRESS_TABLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetAnycastIpAddressTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_ANYCASTIPADDRESS_TABLE) -> super::super::Foundation:: WIN32_ERROR); - GetAnycastIpAddressTable(core::mem::transmute(family), core::mem::transmute(table)) + GetAnycastIpAddressTable(family, core::mem::transmute(table)) } #[inline] pub unsafe fn GetBestInterface(dwdestaddr: u32, pdwbestifindex: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetBestInterface(dwdestaddr : u32, pdwbestifindex : *mut u32) -> u32); - GetBestInterface(core::mem::transmute(dwdestaddr), core::mem::transmute(pdwbestifindex)) + GetBestInterface(dwdestaddr, core::mem::transmute(pdwbestifindex)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetBestInterfaceEx(pdestaddr: *const super::super::Networking::WinSock::SOCKADDR, pdwbestifindex: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetBestInterfaceEx(pdestaddr : *const super::super::Networking::WinSock:: SOCKADDR, pdwbestifindex : *mut u32) -> u32); - GetBestInterfaceEx(core::mem::transmute(pdestaddr), core::mem::transmute(pdwbestifindex)) + GetBestInterfaceEx(pdestaddr, core::mem::transmute(pdwbestifindex)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetBestRoute(dwdestaddr: u32, dwsourceaddr: Option, pbestroute: *mut MIB_IPFORWARDROW) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetBestRoute(dwdestaddr : u32, dwsourceaddr : u32, pbestroute : *mut MIB_IPFORWARDROW) -> u32); - GetBestRoute(core::mem::transmute(dwdestaddr), core::mem::transmute(dwsourceaddr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbestroute)) + GetBestRoute(dwdestaddr, core::mem::transmute(dwsourceaddr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbestroute)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn GetBestRoute2(interfaceluid: Option<*const super::Ndis::NET_LUID_LH>, interfaceindex: u32, sourceaddress: Option<*const super::super::Networking::WinSock::SOCKADDR_INET>, destinationaddress: *const super::super::Networking::WinSock::SOCKADDR_INET, addresssortoptions: u32, bestroute: *mut MIB_IPFORWARD_ROW2, bestsourceaddress: *mut super::super::Networking::WinSock::SOCKADDR_INET) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetBestRoute2(interfaceluid : *const super::Ndis:: NET_LUID_LH, interfaceindex : u32, sourceaddress : *const super::super::Networking::WinSock:: SOCKADDR_INET, destinationaddress : *const super::super::Networking::WinSock:: SOCKADDR_INET, addresssortoptions : u32, bestroute : *mut MIB_IPFORWARD_ROW2, bestsourceaddress : *mut super::super::Networking::WinSock:: SOCKADDR_INET) -> super::super::Foundation:: WIN32_ERROR); - GetBestRoute2(core::mem::transmute(interfaceluid.unwrap_or(core::mem::zeroed())), core::mem::transmute(interfaceindex), core::mem::transmute(sourceaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(destinationaddress), core::mem::transmute(addresssortoptions), core::mem::transmute(bestroute), core::mem::transmute(bestsourceaddress)) + GetBestRoute2(core::mem::transmute(interfaceluid.unwrap_or(core::mem::zeroed())), interfaceindex, core::mem::transmute(sourceaddress.unwrap_or(core::mem::zeroed())), destinationaddress, addresssortoptions, core::mem::transmute(bestroute), core::mem::transmute(bestsourceaddress)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -354,17 +354,17 @@ pub unsafe fn GetDnsSettings(settings: *mut DNS_SETTINGS) -> super::super::Found #[inline] pub unsafe fn GetExtendedTcpTable(ptcptable: Option<*mut core::ffi::c_void>, pdwsize: *mut u32, border: bool, ulaf: u32, tableclass: TCP_TABLE_CLASS, reserved: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetExtendedTcpTable(ptcptable : *mut core::ffi::c_void, pdwsize : *mut u32, border : super::super::Foundation:: BOOL, ulaf : u32, tableclass : TCP_TABLE_CLASS, reserved : u32) -> u32); - GetExtendedTcpTable(core::mem::transmute(ptcptable.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsize), border.into(), core::mem::transmute(ulaf), core::mem::transmute(tableclass), core::mem::transmute(reserved)) + GetExtendedTcpTable(core::mem::transmute(ptcptable.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsize), border.into(), ulaf, tableclass, reserved) } #[inline] pub unsafe fn GetExtendedUdpTable(pudptable: Option<*mut core::ffi::c_void>, pdwsize: *mut u32, border: bool, ulaf: u32, tableclass: UDP_TABLE_CLASS, reserved: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetExtendedUdpTable(pudptable : *mut core::ffi::c_void, pdwsize : *mut u32, border : super::super::Foundation:: BOOL, ulaf : u32, tableclass : UDP_TABLE_CLASS, reserved : u32) -> u32); - GetExtendedUdpTable(core::mem::transmute(pudptable.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsize), border.into(), core::mem::transmute(ulaf), core::mem::transmute(tableclass), core::mem::transmute(reserved)) + GetExtendedUdpTable(core::mem::transmute(pudptable.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsize), border.into(), ulaf, tableclass, reserved) } #[inline] pub unsafe fn GetFriendlyIfIndex(ifindex: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetFriendlyIfIndex(ifindex : u32) -> u32); - GetFriendlyIfIndex(core::mem::transmute(ifindex)) + GetFriendlyIfIndex(ifindex) } #[inline] pub unsafe fn GetIcmpStatistics(statistics: *mut MIB_ICMP) -> u32 { @@ -374,7 +374,7 @@ pub unsafe fn GetIcmpStatistics(statistics: *mut MIB_ICMP) -> u32 { #[inline] pub unsafe fn GetIcmpStatisticsEx(statistics: *mut MIB_ICMP_EX_XPSP1, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetIcmpStatisticsEx(statistics : *mut MIB_ICMP_EX_XPSP1, family : u32) -> u32); - GetIcmpStatisticsEx(core::mem::transmute(statistics), core::mem::transmute(family)) + GetIcmpStatisticsEx(core::mem::transmute(statistics), family) } #[inline] pub unsafe fn GetIfEntry(pifrow: *mut MIB_IFROW) -> u32 { @@ -391,7 +391,7 @@ pub unsafe fn GetIfEntry2(row: *mut MIB_IF_ROW2) -> super::super::Foundation::WI #[inline] pub unsafe fn GetIfEntry2Ex(level: MIB_IF_ENTRY_LEVEL, row: *mut MIB_IF_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIfEntry2Ex(level : MIB_IF_ENTRY_LEVEL, row : *mut MIB_IF_ROW2) -> super::super::Foundation:: WIN32_ERROR); - GetIfEntry2Ex(core::mem::transmute(level), core::mem::transmute(row)) + GetIfEntry2Ex(level, core::mem::transmute(row)) } #[inline] pub unsafe fn GetIfStackTable(table: *mut *mut MIB_IFSTACK_TABLE) -> super::super::Foundation::WIN32_ERROR { @@ -413,19 +413,19 @@ pub unsafe fn GetIfTable2(table: *mut *mut MIB_IF_TABLE2) -> super::super::Found #[inline] pub unsafe fn GetIfTable2Ex(level: MIB_IF_TABLE_LEVEL, table: *mut *mut MIB_IF_TABLE2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIfTable2Ex(level : MIB_IF_TABLE_LEVEL, table : *mut *mut MIB_IF_TABLE2) -> super::super::Foundation:: WIN32_ERROR); - GetIfTable2Ex(core::mem::transmute(level), core::mem::transmute(table)) + GetIfTable2Ex(level, core::mem::transmute(table)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn GetInterfaceActiveTimestampCapabilities(interfaceluid: *const super::Ndis::NET_LUID_LH, timestampcapabilites: *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetInterfaceActiveTimestampCapabilities(interfaceluid : *const super::Ndis:: NET_LUID_LH, timestampcapabilites : *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32); - GetInterfaceActiveTimestampCapabilities(core::mem::transmute(interfaceluid), core::mem::transmute(timestampcapabilites)) + GetInterfaceActiveTimestampCapabilities(interfaceluid, core::mem::transmute(timestampcapabilites)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn GetInterfaceCurrentTimestampCapabilities(interfaceluid: *const super::Ndis::NET_LUID_LH, timestampcapabilites: *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetInterfaceCurrentTimestampCapabilities(interfaceluid : *const super::Ndis:: NET_LUID_LH, timestampcapabilites : *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32); - GetInterfaceCurrentTimestampCapabilities(core::mem::transmute(interfaceluid), core::mem::transmute(timestampcapabilites)) + GetInterfaceCurrentTimestampCapabilities(interfaceluid, core::mem::transmute(timestampcapabilites)) } #[inline] pub unsafe fn GetInterfaceDnsSettings(interface: windows_core::GUID, settings: *mut DNS_INTERFACE_SETTINGS) -> super::super::Foundation::WIN32_ERROR { @@ -436,7 +436,7 @@ pub unsafe fn GetInterfaceDnsSettings(interface: windows_core::GUID, settings: * #[inline] pub unsafe fn GetInterfaceHardwareTimestampCapabilities(interfaceluid: *const super::Ndis::NET_LUID_LH, timestampcapabilites: *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetInterfaceHardwareTimestampCapabilities(interfaceluid : *const super::Ndis:: NET_LUID_LH, timestampcapabilites : *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32); - GetInterfaceHardwareTimestampCapabilities(core::mem::transmute(interfaceluid), core::mem::transmute(timestampcapabilites)) + GetInterfaceHardwareTimestampCapabilities(interfaceluid, core::mem::transmute(timestampcapabilites)) } #[inline] pub unsafe fn GetInterfaceInfo(piftable: Option<*mut IP_INTERFACE_INFO>, dwoutbuflen: *mut u32) -> u32 { @@ -447,7 +447,7 @@ pub unsafe fn GetInterfaceInfo(piftable: Option<*mut IP_INTERFACE_INFO>, dwoutbu #[inline] pub unsafe fn GetInterfaceSupportedTimestampCapabilities(interfaceluid: *const super::Ndis::NET_LUID_LH, timestampcapabilites: *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetInterfaceSupportedTimestampCapabilities(interfaceluid : *const super::Ndis:: NET_LUID_LH, timestampcapabilites : *mut INTERFACE_TIMESTAMP_CAPABILITIES) -> u32); - GetInterfaceSupportedTimestampCapabilities(core::mem::transmute(interfaceluid), core::mem::transmute(timestampcapabilites)) + GetInterfaceSupportedTimestampCapabilities(interfaceluid, core::mem::transmute(timestampcapabilites)) } #[inline] pub unsafe fn GetInvertedIfStackTable(table: *mut *mut MIB_INVERTEDIFSTACK_TABLE) -> super::super::Foundation::WIN32_ERROR { @@ -462,7 +462,7 @@ pub unsafe fn GetIpAddrTable(pipaddrtable: Option<*mut MIB_IPADDRTABLE>, pdwsize #[inline] pub unsafe fn GetIpErrorString(errorcode: u32, buffer: Option, size: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetIpErrorString(errorcode : u32, buffer : windows_core::PWSTR, size : *mut u32) -> u32); - GetIpErrorString(core::mem::transmute(errorcode), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + GetIpErrorString(errorcode, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -480,7 +480,7 @@ pub unsafe fn GetIpForwardTable(pipforwardtable: Option<*mut MIB_IPFORWARDTABLE> #[inline] pub unsafe fn GetIpForwardTable2(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_IPFORWARD_TABLE2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIpForwardTable2(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_IPFORWARD_TABLE2) -> super::super::Foundation:: WIN32_ERROR); - GetIpForwardTable2(core::mem::transmute(family), core::mem::transmute(table)) + GetIpForwardTable2(family, core::mem::transmute(table)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -492,7 +492,7 @@ pub unsafe fn GetIpInterfaceEntry(row: *mut MIB_IPINTERFACE_ROW) -> super::super #[inline] pub unsafe fn GetIpInterfaceTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_IPINTERFACE_TABLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIpInterfaceTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_IPINTERFACE_TABLE) -> super::super::Foundation:: WIN32_ERROR); - GetIpInterfaceTable(core::mem::transmute(family), core::mem::transmute(table)) + GetIpInterfaceTable(family, core::mem::transmute(table)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -509,13 +509,13 @@ pub unsafe fn GetIpNetTable(ipnettable: Option<*mut MIB_IPNETTABLE>, sizepointer #[inline] pub unsafe fn GetIpNetTable2(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_IPNET_TABLE2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIpNetTable2(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_IPNET_TABLE2) -> super::super::Foundation:: WIN32_ERROR); - GetIpNetTable2(core::mem::transmute(family), core::mem::transmute(table)) + GetIpNetTable2(family, core::mem::transmute(table)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetIpNetworkConnectionBandwidthEstimates(interfaceindex: u32, addressfamily: super::super::Networking::WinSock::ADDRESS_FAMILY, bandwidthestimates: *mut MIB_IP_NETWORK_CONNECTION_BANDWIDTH_ESTIMATES) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIpNetworkConnectionBandwidthEstimates(interfaceindex : u32, addressfamily : super::super::Networking::WinSock:: ADDRESS_FAMILY, bandwidthestimates : *mut MIB_IP_NETWORK_CONNECTION_BANDWIDTH_ESTIMATES) -> super::super::Foundation:: WIN32_ERROR); - GetIpNetworkConnectionBandwidthEstimates(core::mem::transmute(interfaceindex), core::mem::transmute(addressfamily), core::mem::transmute(bandwidthestimates)) + GetIpNetworkConnectionBandwidthEstimates(interfaceindex, addressfamily, core::mem::transmute(bandwidthestimates)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -527,7 +527,7 @@ pub unsafe fn GetIpPathEntry(row: *mut MIB_IPPATH_ROW) -> super::super::Foundati #[inline] pub unsafe fn GetIpPathTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_IPPATH_TABLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetIpPathTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_IPPATH_TABLE) -> super::super::Foundation:: WIN32_ERROR); - GetIpPathTable(core::mem::transmute(family), core::mem::transmute(table)) + GetIpPathTable(family, core::mem::transmute(table)) } #[inline] pub unsafe fn GetIpStatistics(statistics: *mut MIB_IPSTATS_LH) -> u32 { @@ -537,13 +537,13 @@ pub unsafe fn GetIpStatistics(statistics: *mut MIB_IPSTATS_LH) -> u32 { #[inline] pub unsafe fn GetIpStatisticsEx(statistics: *mut MIB_IPSTATS_LH, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetIpStatisticsEx(statistics : *mut MIB_IPSTATS_LH, family : u32) -> u32); - GetIpStatisticsEx(core::mem::transmute(statistics), core::mem::transmute(family)) + GetIpStatisticsEx(core::mem::transmute(statistics), family) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn GetJobCompartmentId(jobhandle: super::super::Foundation::HANDLE) -> super::Ndis::NET_IF_COMPARTMENT_ID { windows_targets::link!("iphlpapi.dll" "system" fn GetJobCompartmentId(jobhandle : super::super::Foundation:: HANDLE) -> super::Ndis:: NET_IF_COMPARTMENT_ID); - GetJobCompartmentId(core::mem::transmute(jobhandle)) + GetJobCompartmentId(jobhandle) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -555,7 +555,7 @@ pub unsafe fn GetMulticastIpAddressEntry(row: *mut MIB_MULTICASTIPADDRESS_ROW) - #[inline] pub unsafe fn GetMulticastIpAddressTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_MULTICASTIPADDRESS_TABLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetMulticastIpAddressTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_MULTICASTIPADDRESS_TABLE) -> super::super::Foundation:: WIN32_ERROR); - GetMulticastIpAddressTable(core::mem::transmute(family), core::mem::transmute(table)) + GetMulticastIpAddressTable(family, core::mem::transmute(table)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -567,12 +567,12 @@ pub unsafe fn GetNetworkConnectivityHint(connectivityhint: *mut super::super::Ne #[inline] pub unsafe fn GetNetworkConnectivityHintForInterface(interfaceindex: u32, connectivityhint: *mut super::super::Networking::WinSock::NL_NETWORK_CONNECTIVITY_HINT) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetNetworkConnectivityHintForInterface(interfaceindex : u32, connectivityhint : *mut super::super::Networking::WinSock:: NL_NETWORK_CONNECTIVITY_HINT) -> super::super::Foundation:: WIN32_ERROR); - GetNetworkConnectivityHintForInterface(core::mem::transmute(interfaceindex), core::mem::transmute(connectivityhint)) + GetNetworkConnectivityHintForInterface(interfaceindex, core::mem::transmute(connectivityhint)) } #[inline] pub unsafe fn GetNetworkInformation(networkguid: *const windows_core::GUID, compartmentid: *mut u32, siteid: *mut u32, networkname: &mut [u16]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetNetworkInformation(networkguid : *const windows_core::GUID, compartmentid : *mut u32, siteid : *mut u32, networkname : windows_core::PWSTR, length : u32) -> super::super::Foundation:: WIN32_ERROR); - GetNetworkInformation(core::mem::transmute(networkguid), core::mem::transmute(compartmentid), core::mem::transmute(siteid), core::mem::transmute(networkname.as_ptr()), networkname.len().try_into().unwrap()) + GetNetworkInformation(networkguid, core::mem::transmute(compartmentid), core::mem::transmute(siteid), core::mem::transmute(networkname.as_ptr()), networkname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetNetworkParams(pfixedinfo: Option<*mut FIXED_INFO_W2KSP1>, poutbuflen: *mut u32) -> super::super::Foundation::WIN32_ERROR { @@ -587,48 +587,48 @@ pub unsafe fn GetNumberOfInterfaces(pdwnumif: *mut u32) -> u32 { #[inline] pub unsafe fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: *const u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut core::ffi::c_void, pdwsize: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetOwnerModuleFromPidAndInfo(ulpid : u32, pinfo : *const u64, class : TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer : *mut core::ffi::c_void, pdwsize : *mut u32) -> u32); - GetOwnerModuleFromPidAndInfo(core::mem::transmute(ulpid), core::mem::transmute(pinfo), core::mem::transmute(class), core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) + GetOwnerModuleFromPidAndInfo(ulpid, pinfo, class, core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) } #[inline] pub unsafe fn GetOwnerModuleFromTcp6Entry(ptcpentry: *const MIB_TCP6ROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut core::ffi::c_void, pdwsize: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetOwnerModuleFromTcp6Entry(ptcpentry : *const MIB_TCP6ROW_OWNER_MODULE, class : TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer : *mut core::ffi::c_void, pdwsize : *mut u32) -> u32); - GetOwnerModuleFromTcp6Entry(core::mem::transmute(ptcpentry), core::mem::transmute(class), core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) + GetOwnerModuleFromTcp6Entry(ptcpentry, class, core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) } #[inline] pub unsafe fn GetOwnerModuleFromTcpEntry(ptcpentry: *const MIB_TCPROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut core::ffi::c_void, pdwsize: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetOwnerModuleFromTcpEntry(ptcpentry : *const MIB_TCPROW_OWNER_MODULE, class : TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer : *mut core::ffi::c_void, pdwsize : *mut u32) -> u32); - GetOwnerModuleFromTcpEntry(core::mem::transmute(ptcpentry), core::mem::transmute(class), core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) + GetOwnerModuleFromTcpEntry(ptcpentry, class, core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) } #[inline] pub unsafe fn GetOwnerModuleFromUdp6Entry(pudpentry: *const MIB_UDP6ROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut core::ffi::c_void, pdwsize: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetOwnerModuleFromUdp6Entry(pudpentry : *const MIB_UDP6ROW_OWNER_MODULE, class : TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer : *mut core::ffi::c_void, pdwsize : *mut u32) -> u32); - GetOwnerModuleFromUdp6Entry(core::mem::transmute(pudpentry), core::mem::transmute(class), core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) + GetOwnerModuleFromUdp6Entry(pudpentry, class, core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) } #[inline] pub unsafe fn GetOwnerModuleFromUdpEntry(pudpentry: *const MIB_UDPROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut core::ffi::c_void, pdwsize: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetOwnerModuleFromUdpEntry(pudpentry : *const MIB_UDPROW_OWNER_MODULE, class : TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer : *mut core::ffi::c_void, pdwsize : *mut u32) -> u32); - GetOwnerModuleFromUdpEntry(core::mem::transmute(pudpentry), core::mem::transmute(class), core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) + GetOwnerModuleFromUdpEntry(pudpentry, class, core::mem::transmute(pbuffer), core::mem::transmute(pdwsize)) } #[inline] pub unsafe fn GetPerAdapterInfo(ifindex: u32, pperadapterinfo: Option<*mut IP_PER_ADAPTER_INFO_W2KSP1>, poutbuflen: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetPerAdapterInfo(ifindex : u32, pperadapterinfo : *mut IP_PER_ADAPTER_INFO_W2KSP1, poutbuflen : *mut u32) -> u32); - GetPerAdapterInfo(core::mem::transmute(ifindex), core::mem::transmute(pperadapterinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutbuflen)) + GetPerAdapterInfo(ifindex, core::mem::transmute(pperadapterinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutbuflen)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetPerTcp6ConnectionEStats(row: *const MIB_TCP6ROW, estatstype: TCP_ESTATS_TYPE, rw: Option<&mut [u8]>, rwversion: u32, ros: Option<&mut [u8]>, rosversion: u32, rod: Option<&mut [u8]>, rodversion: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetPerTcp6ConnectionEStats(row : *const MIB_TCP6ROW, estatstype : TCP_ESTATS_TYPE, rw : *mut u8, rwversion : u32, rwsize : u32, ros : *mut u8, rosversion : u32, rossize : u32, rod : *mut u8, rodversion : u32, rodsize : u32) -> u32); GetPerTcp6ConnectionEStats( - core::mem::transmute(row), - core::mem::transmute(estatstype), + row, + estatstype, core::mem::transmute(rw.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(rwversion), + rwversion, rw.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ros.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(rosversion), + rosversion, ros.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rod.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(rodversion), + rodversion, rod.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ) } @@ -636,29 +636,29 @@ pub unsafe fn GetPerTcp6ConnectionEStats(row: *const MIB_TCP6ROW, estatstype: TC pub unsafe fn GetPerTcpConnectionEStats(row: *const MIB_TCPROW_LH, estatstype: TCP_ESTATS_TYPE, rw: Option<&mut [u8]>, rwversion: u32, ros: Option<&mut [u8]>, rosversion: u32, rod: Option<&mut [u8]>, rodversion: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetPerTcpConnectionEStats(row : *const MIB_TCPROW_LH, estatstype : TCP_ESTATS_TYPE, rw : *mut u8, rwversion : u32, rwsize : u32, ros : *mut u8, rosversion : u32, rossize : u32, rod : *mut u8, rodversion : u32, rodsize : u32) -> u32); GetPerTcpConnectionEStats( - core::mem::transmute(row), - core::mem::transmute(estatstype), + row, + estatstype, core::mem::transmute(rw.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(rwversion), + rwversion, rw.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ros.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(rosversion), + rosversion, ros.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rod.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(rodversion), + rodversion, rod.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ) } #[inline] pub unsafe fn GetRTTAndHopCount(destipaddress: u32, hopcount: *mut u32, maxhops: u32, rtt: *mut u32) -> windows_core::Result<()> { windows_targets::link!("iphlpapi.dll" "system" fn GetRTTAndHopCount(destipaddress : u32, hopcount : *mut u32, maxhops : u32, rtt : *mut u32) -> super::super::Foundation:: BOOL); - GetRTTAndHopCount(core::mem::transmute(destipaddress), core::mem::transmute(hopcount), core::mem::transmute(maxhops), core::mem::transmute(rtt)).ok() + GetRTTAndHopCount(destipaddress, core::mem::transmute(hopcount), maxhops, core::mem::transmute(rtt)).ok() } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn GetSessionCompartmentId(sessionid: u32) -> super::Ndis::NET_IF_COMPARTMENT_ID { windows_targets::link!("iphlpapi.dll" "system" fn GetSessionCompartmentId(sessionid : u32) -> super::Ndis:: NET_IF_COMPARTMENT_ID); - GetSessionCompartmentId(core::mem::transmute(sessionid)) + GetSessionCompartmentId(sessionid) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -680,12 +680,12 @@ pub unsafe fn GetTcpStatistics(statistics: *mut MIB_TCPSTATS_LH) -> u32 { #[inline] pub unsafe fn GetTcpStatisticsEx(statistics: *mut MIB_TCPSTATS_LH, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetTcpStatisticsEx(statistics : *mut MIB_TCPSTATS_LH, family : u32) -> u32); - GetTcpStatisticsEx(core::mem::transmute(statistics), core::mem::transmute(family)) + GetTcpStatisticsEx(core::mem::transmute(statistics), family) } #[inline] pub unsafe fn GetTcpStatisticsEx2(statistics: *mut MIB_TCPSTATS2, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetTcpStatisticsEx2(statistics : *mut MIB_TCPSTATS2, family : u32) -> u32); - GetTcpStatisticsEx2(core::mem::transmute(statistics), core::mem::transmute(family)) + GetTcpStatisticsEx2(core::mem::transmute(statistics), family) } #[inline] pub unsafe fn GetTcpTable(tcptable: Option<*mut MIB_TCPTABLE>, sizepointer: *mut u32, order: bool) -> u32 { @@ -716,12 +716,12 @@ pub unsafe fn GetUdpStatistics(stats: *mut MIB_UDPSTATS) -> u32 { #[inline] pub unsafe fn GetUdpStatisticsEx(statistics: *mut MIB_UDPSTATS, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetUdpStatisticsEx(statistics : *mut MIB_UDPSTATS, family : u32) -> u32); - GetUdpStatisticsEx(core::mem::transmute(statistics), core::mem::transmute(family)) + GetUdpStatisticsEx(core::mem::transmute(statistics), family) } #[inline] pub unsafe fn GetUdpStatisticsEx2(statistics: *mut MIB_UDPSTATS2, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn GetUdpStatisticsEx2(statistics : *mut MIB_UDPSTATS2, family : u32) -> u32); - GetUdpStatisticsEx2(core::mem::transmute(statistics), core::mem::transmute(family)) + GetUdpStatisticsEx2(core::mem::transmute(statistics), family) } #[inline] pub unsafe fn GetUdpTable(udptable: Option<*mut MIB_UDPTABLE>, sizepointer: *mut u32, order: bool) -> u32 { @@ -743,7 +743,7 @@ pub unsafe fn GetUnicastIpAddressEntry(row: *mut MIB_UNICASTIPADDRESS_ROW) -> su #[inline] pub unsafe fn GetUnicastIpAddressTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_UNICASTIPADDRESS_TABLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn GetUnicastIpAddressTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_UNICASTIPADDRESS_TABLE) -> super::super::Foundation:: WIN32_ERROR); - GetUnicastIpAddressTable(core::mem::transmute(family), core::mem::transmute(table)) + GetUnicastIpAddressTable(family, core::mem::transmute(table)) } #[inline] pub unsafe fn Icmp6CreateFile() -> windows_core::Result { @@ -754,31 +754,18 @@ pub unsafe fn Icmp6CreateFile() -> windows_core::Result u32 { windows_targets::link!("iphlpapi.dll" "system" fn Icmp6ParseReplies(replybuffer : *mut core::ffi::c_void, replysize : u32) -> u32); - Icmp6ParseReplies(core::mem::transmute(replybuffer), core::mem::transmute(replysize)) + Icmp6ParseReplies(core::mem::transmute(replybuffer), replysize) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_System_IO"))] #[inline] pub unsafe fn Icmp6SendEcho2(icmphandle: super::super::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, sourceaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: *const core::ffi::c_void, requestsize: u16, requestoptions: Option<*const IP_OPTION_INFORMATION>, replybuffer: *mut core::ffi::c_void, replysize: u32, timeout: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn Icmp6SendEcho2(icmphandle : super::super::Foundation:: HANDLE, event : super::super::Foundation:: HANDLE, apcroutine : super::super::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, sourceaddress : *const super::super::Networking::WinSock:: SOCKADDR_IN6, destinationaddress : *const super::super::Networking::WinSock:: SOCKADDR_IN6, requestdata : *const core::ffi::c_void, requestsize : u16, requestoptions : *const IP_OPTION_INFORMATION, replybuffer : *mut core::ffi::c_void, replysize : u32, timeout : u32) -> u32); - Icmp6SendEcho2( - core::mem::transmute(icmphandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sourceaddress), - core::mem::transmute(destinationaddress), - core::mem::transmute(requestdata), - core::mem::transmute(requestsize), - core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), - core::mem::transmute(replybuffer), - core::mem::transmute(replysize), - core::mem::transmute(timeout), - ) + Icmp6SendEcho2(icmphandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), sourceaddress, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(replybuffer), replysize, timeout) } #[inline] pub unsafe fn IcmpCloseHandle(icmphandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("iphlpapi.dll" "system" fn IcmpCloseHandle(icmphandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - IcmpCloseHandle(core::mem::transmute(icmphandle)).ok() + IcmpCloseHandle(icmphandle).ok() } #[inline] pub unsafe fn IcmpCreateFile() -> windows_core::Result { @@ -789,49 +776,24 @@ pub unsafe fn IcmpCreateFile() -> windows_core::Result u32 { windows_targets::link!("iphlpapi.dll" "system" fn IcmpParseReplies(replybuffer : *mut core::ffi::c_void, replysize : u32) -> u32); - IcmpParseReplies(core::mem::transmute(replybuffer), core::mem::transmute(replysize)) + IcmpParseReplies(core::mem::transmute(replybuffer), replysize) } #[inline] pub unsafe fn IcmpSendEcho(icmphandle: super::super::Foundation::HANDLE, destinationaddress: u32, requestdata: *const core::ffi::c_void, requestsize: u16, requestoptions: Option<*const IP_OPTION_INFORMATION>, replybuffer: *mut core::ffi::c_void, replysize: u32, timeout: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn IcmpSendEcho(icmphandle : super::super::Foundation:: HANDLE, destinationaddress : u32, requestdata : *const core::ffi::c_void, requestsize : u16, requestoptions : *const IP_OPTION_INFORMATION, replybuffer : *mut core::ffi::c_void, replysize : u32, timeout : u32) -> u32); - IcmpSendEcho(core::mem::transmute(icmphandle), core::mem::transmute(destinationaddress), core::mem::transmute(requestdata), core::mem::transmute(requestsize), core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(replybuffer), core::mem::transmute(replysize), core::mem::transmute(timeout)) + IcmpSendEcho(icmphandle, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(replybuffer), replysize, timeout) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn IcmpSendEcho2(icmphandle: super::super::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, destinationaddress: u32, requestdata: *const core::ffi::c_void, requestsize: u16, requestoptions: Option<*const IP_OPTION_INFORMATION>, replybuffer: *mut core::ffi::c_void, replysize: u32, timeout: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn IcmpSendEcho2(icmphandle : super::super::Foundation:: HANDLE, event : super::super::Foundation:: HANDLE, apcroutine : super::super::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, destinationaddress : u32, requestdata : *const core::ffi::c_void, requestsize : u16, requestoptions : *const IP_OPTION_INFORMATION, replybuffer : *mut core::ffi::c_void, replysize : u32, timeout : u32) -> u32); - IcmpSendEcho2( - core::mem::transmute(icmphandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(destinationaddress), - core::mem::transmute(requestdata), - core::mem::transmute(requestsize), - core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), - core::mem::transmute(replybuffer), - core::mem::transmute(replysize), - core::mem::transmute(timeout), - ) + IcmpSendEcho2(icmphandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(replybuffer), replysize, timeout) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn IcmpSendEcho2Ex(icmphandle: super::super::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, sourceaddress: u32, destinationaddress: u32, requestdata: *const core::ffi::c_void, requestsize: u16, requestoptions: Option<*const IP_OPTION_INFORMATION>, replybuffer: *mut core::ffi::c_void, replysize: u32, timeout: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn IcmpSendEcho2Ex(icmphandle : super::super::Foundation:: HANDLE, event : super::super::Foundation:: HANDLE, apcroutine : super::super::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, sourceaddress : u32, destinationaddress : u32, requestdata : *const core::ffi::c_void, requestsize : u16, requestoptions : *const IP_OPTION_INFORMATION, replybuffer : *mut core::ffi::c_void, replysize : u32, timeout : u32) -> u32); - IcmpSendEcho2Ex( - core::mem::transmute(icmphandle), - core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sourceaddress), - core::mem::transmute(destinationaddress), - core::mem::transmute(requestdata), - core::mem::transmute(requestsize), - core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), - core::mem::transmute(replybuffer), - core::mem::transmute(replysize), - core::mem::transmute(timeout), - ) + IcmpSendEcho2Ex(icmphandle, core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), sourceaddress, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(replybuffer), replysize, timeout) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -854,79 +816,79 @@ pub unsafe fn InitializeUnicastIpAddressEntry(row: *mut MIB_UNICASTIPADDRESS_ROW #[inline] pub unsafe fn IpReleaseAddress(adapterinfo: *const IP_ADAPTER_INDEX_MAP) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn IpReleaseAddress(adapterinfo : *const IP_ADAPTER_INDEX_MAP) -> u32); - IpReleaseAddress(core::mem::transmute(adapterinfo)) + IpReleaseAddress(adapterinfo) } #[inline] pub unsafe fn IpRenewAddress(adapterinfo: *const IP_ADAPTER_INDEX_MAP) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn IpRenewAddress(adapterinfo : *const IP_ADAPTER_INDEX_MAP) -> u32); - IpRenewAddress(core::mem::transmute(adapterinfo)) + IpRenewAddress(adapterinfo) } #[inline] pub unsafe fn LookupPersistentTcpPortReservation(startport: u16, numberofports: u16, token: *mut u64) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn LookupPersistentTcpPortReservation(startport : u16, numberofports : u16, token : *mut u64) -> u32); - LookupPersistentTcpPortReservation(core::mem::transmute(startport), core::mem::transmute(numberofports), core::mem::transmute(token)) + LookupPersistentTcpPortReservation(startport, numberofports, core::mem::transmute(token)) } #[inline] pub unsafe fn LookupPersistentUdpPortReservation(startport: u16, numberofports: u16, token: *mut u64) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn LookupPersistentUdpPortReservation(startport : u16, numberofports : u16, token : *mut u64) -> u32); - LookupPersistentUdpPortReservation(core::mem::transmute(startport), core::mem::transmute(numberofports), core::mem::transmute(token)) + LookupPersistentUdpPortReservation(startport, numberofports, core::mem::transmute(token)) } #[inline] pub unsafe fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount: *mut u32, border: bool, hheap: super::super::Foundation::HANDLE, dwflags: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn NhpAllocateAndGetInterfaceInfoFromStack(pptable : *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount : *mut u32, border : super::super::Foundation:: BOOL, hheap : super::super::Foundation:: HANDLE, dwflags : u32) -> u32); - NhpAllocateAndGetInterfaceInfoFromStack(core::mem::transmute(pptable), core::mem::transmute(pdwcount), border.into(), core::mem::transmute(hheap), core::mem::transmute(dwflags)) + NhpAllocateAndGetInterfaceInfoFromStack(core::mem::transmute(pptable), core::mem::transmute(pdwcount), border.into(), hheap, dwflags) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NotifyAddrChange(handle: *mut super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn NotifyAddrChange(handle : *mut super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - NotifyAddrChange(core::mem::transmute(handle), core::mem::transmute(overlapped)) + NotifyAddrChange(core::mem::transmute(handle), overlapped) } #[inline] pub unsafe fn NotifyIfTimestampConfigChange(callercontext: Option<*const core::ffi::c_void>, callback: PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK, notificationhandle: *mut HIFTIMESTAMPCHANGE) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn NotifyIfTimestampConfigChange(callercontext : *const core::ffi::c_void, callback : PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK, notificationhandle : *mut HIFTIMESTAMPCHANGE) -> u32); - NotifyIfTimestampConfigChange(core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(notificationhandle)) + NotifyIfTimestampConfigChange(core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), callback, core::mem::transmute(notificationhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyIpInterfaceChange(family: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PIPINTERFACE_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn NotifyIpInterfaceChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPINTERFACE_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyIpInterfaceChange(core::mem::transmute(family), core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) + NotifyIpInterfaceChange(family, callback, core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), initialnotification, core::mem::transmute(notificationhandle)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn NotifyNetworkConnectivityHintChange(callback: PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn NotifyNetworkConnectivityHintChange(callback : PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyNetworkConnectivityHintChange(core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) + NotifyNetworkConnectivityHintChange(callback, core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), initialnotification, core::mem::transmute(notificationhandle)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NotifyRouteChange(handle: *mut super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange(handle : *mut super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - NotifyRouteChange(core::mem::transmute(handle), core::mem::transmute(overlapped)) + NotifyRouteChange(core::mem::transmute(handle), overlapped) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyRouteChange2(addressfamily: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PIPFORWARD_CHANGE_CALLBACK, callercontext: *const core::ffi::c_void, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange2(addressfamily : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPFORWARD_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyRouteChange2(core::mem::transmute(addressfamily), core::mem::transmute(callback), core::mem::transmute(callercontext), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) + NotifyRouteChange2(addressfamily, callback, callercontext, initialnotification, core::mem::transmute(notificationhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyStableUnicastIpAddressTable(family: super::super::Networking::WinSock::ADDRESS_FAMILY, table: *mut *mut MIB_UNICASTIPADDRESS_TABLE, callercallback: PSTABLE_UNICAST_IPADDRESS_TABLE_CALLBACK, callercontext: *const core::ffi::c_void, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn NotifyStableUnicastIpAddressTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_UNICASTIPADDRESS_TABLE, callercallback : PSTABLE_UNICAST_IPADDRESS_TABLE_CALLBACK, callercontext : *const core::ffi::c_void, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyStableUnicastIpAddressTable(core::mem::transmute(family), core::mem::transmute(table), core::mem::transmute(callercallback), core::mem::transmute(callercontext), core::mem::transmute(notificationhandle)) + NotifyStableUnicastIpAddressTable(family, core::mem::transmute(table), callercallback, callercontext, core::mem::transmute(notificationhandle)) } #[inline] pub unsafe fn NotifyTeredoPortChange(callback: PTEREDO_PORT_CHANGE_CALLBACK, callercontext: *const core::ffi::c_void, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn NotifyTeredoPortChange(callback : PTEREDO_PORT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyTeredoPortChange(core::mem::transmute(callback), core::mem::transmute(callercontext), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) + NotifyTeredoPortChange(callback, callercontext, initialnotification, core::mem::transmute(notificationhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyUnicastIpAddressChange(family: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn NotifyUnicastIpAddressChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyUnicastIpAddressChange(core::mem::transmute(family), core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) + NotifyUnicastIpAddressChange(family, callback, core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), initialnotification, core::mem::transmute(notificationhandle)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -935,32 +897,32 @@ where P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn ParseNetworkString(networkstring : windows_core::PCWSTR, types : u32, addressinfo : *mut NET_ADDRESS_INFO, portnumber : *mut u16, prefixlength : *mut u8) -> u32); - ParseNetworkString(networkstring.param().abi(), core::mem::transmute(types), core::mem::transmute(addressinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(portnumber.unwrap_or(core::mem::zeroed())), core::mem::transmute(prefixlength.unwrap_or(core::mem::zeroed()))) + ParseNetworkString(networkstring.param().abi(), types, core::mem::transmute(addressinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(portnumber.unwrap_or(core::mem::zeroed())), core::mem::transmute(prefixlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PfAddFiltersToInterface(ih: *mut core::ffi::c_void, cinfilters: u32, pfiltin: *mut PF_FILTER_DESCRIPTOR, coutfilters: u32, pfiltout: *mut PF_FILTER_DESCRIPTOR, pfhandle: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfAddFiltersToInterface(ih : *mut core::ffi::c_void, cinfilters : u32, pfiltin : *mut PF_FILTER_DESCRIPTOR, coutfilters : u32, pfiltout : *mut PF_FILTER_DESCRIPTOR, pfhandle : *mut *mut core::ffi::c_void) -> u32); - PfAddFiltersToInterface(core::mem::transmute(ih), core::mem::transmute(cinfilters), core::mem::transmute(pfiltin), core::mem::transmute(coutfilters), core::mem::transmute(pfiltout), core::mem::transmute(pfhandle)) + PfAddFiltersToInterface(core::mem::transmute(ih), cinfilters, core::mem::transmute(pfiltin), coutfilters, core::mem::transmute(pfiltout), core::mem::transmute(pfhandle)) } #[inline] pub unsafe fn PfAddGlobalFilterToInterface(pinterface: *mut core::ffi::c_void, gffilter: GLOBAL_FILTER) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfAddGlobalFilterToInterface(pinterface : *mut core::ffi::c_void, gffilter : GLOBAL_FILTER) -> u32); - PfAddGlobalFilterToInterface(core::mem::transmute(pinterface), core::mem::transmute(gffilter)) + PfAddGlobalFilterToInterface(core::mem::transmute(pinterface), gffilter) } #[inline] pub unsafe fn PfBindInterfaceToIPAddress(pinterface: *mut core::ffi::c_void, pfattype: PFADDRESSTYPE, ipaddress: *mut u8) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfBindInterfaceToIPAddress(pinterface : *mut core::ffi::c_void, pfattype : PFADDRESSTYPE, ipaddress : *mut u8) -> u32); - PfBindInterfaceToIPAddress(core::mem::transmute(pinterface), core::mem::transmute(pfattype), core::mem::transmute(ipaddress)) + PfBindInterfaceToIPAddress(core::mem::transmute(pinterface), pfattype, core::mem::transmute(ipaddress)) } #[inline] pub unsafe fn PfBindInterfaceToIndex(pinterface: *mut core::ffi::c_void, dwindex: u32, pfatlinktype: PFADDRESSTYPE, linkipaddress: *mut u8) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfBindInterfaceToIndex(pinterface : *mut core::ffi::c_void, dwindex : u32, pfatlinktype : PFADDRESSTYPE, linkipaddress : *mut u8) -> u32); - PfBindInterfaceToIndex(core::mem::transmute(pinterface), core::mem::transmute(dwindex), core::mem::transmute(pfatlinktype), core::mem::transmute(linkipaddress)) + PfBindInterfaceToIndex(core::mem::transmute(pinterface), dwindex, pfatlinktype, core::mem::transmute(linkipaddress)) } #[inline] pub unsafe fn PfCreateInterface(dwname: u32, inaction: PFFORWARD_ACTION, outaction: PFFORWARD_ACTION, buselog: bool, bmustbeunique: bool, ppinterface: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfCreateInterface(dwname : u32, inaction : PFFORWARD_ACTION, outaction : PFFORWARD_ACTION, buselog : super::super::Foundation:: BOOL, bmustbeunique : super::super::Foundation:: BOOL, ppinterface : *mut *mut core::ffi::c_void) -> u32); - PfCreateInterface(core::mem::transmute(dwname), core::mem::transmute(inaction), core::mem::transmute(outaction), buselog.into(), bmustbeunique.into(), core::mem::transmute(ppinterface)) + PfCreateInterface(dwname, inaction, outaction, buselog.into(), bmustbeunique.into(), core::mem::transmute(ppinterface)) } #[inline] pub unsafe fn PfDeleteInterface(pinterface: *mut core::ffi::c_void) -> u32 { @@ -980,7 +942,7 @@ pub unsafe fn PfGetInterfaceStatistics(pinterface: *mut core::ffi::c_void, ppfst #[inline] pub unsafe fn PfMakeLog(hevent: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfMakeLog(hevent : super::super::Foundation:: HANDLE) -> u32); - PfMakeLog(core::mem::transmute(hevent)) + PfMakeLog(hevent) } #[inline] pub unsafe fn PfRebindFilters(pinterface: *mut core::ffi::c_void, platebindinfo: *mut PF_LATEBIND_INFO) -> u32 { @@ -990,27 +952,27 @@ pub unsafe fn PfRebindFilters(pinterface: *mut core::ffi::c_void, platebindinfo: #[inline] pub unsafe fn PfRemoveFilterHandles(pinterface: *mut core::ffi::c_void, cfilters: u32, pvhandles: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfRemoveFilterHandles(pinterface : *mut core::ffi::c_void, cfilters : u32, pvhandles : *mut *mut core::ffi::c_void) -> u32); - PfRemoveFilterHandles(core::mem::transmute(pinterface), core::mem::transmute(cfilters), core::mem::transmute(pvhandles)) + PfRemoveFilterHandles(core::mem::transmute(pinterface), cfilters, core::mem::transmute(pvhandles)) } #[inline] pub unsafe fn PfRemoveFiltersFromInterface(ih: *mut core::ffi::c_void, cinfilters: u32, pfiltin: *mut PF_FILTER_DESCRIPTOR, coutfilters: u32, pfiltout: *mut PF_FILTER_DESCRIPTOR) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfRemoveFiltersFromInterface(ih : *mut core::ffi::c_void, cinfilters : u32, pfiltin : *mut PF_FILTER_DESCRIPTOR, coutfilters : u32, pfiltout : *mut PF_FILTER_DESCRIPTOR) -> u32); - PfRemoveFiltersFromInterface(core::mem::transmute(ih), core::mem::transmute(cinfilters), core::mem::transmute(pfiltin), core::mem::transmute(coutfilters), core::mem::transmute(pfiltout)) + PfRemoveFiltersFromInterface(core::mem::transmute(ih), cinfilters, core::mem::transmute(pfiltin), coutfilters, core::mem::transmute(pfiltout)) } #[inline] pub unsafe fn PfRemoveGlobalFilterFromInterface(pinterface: *mut core::ffi::c_void, gffilter: GLOBAL_FILTER) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfRemoveGlobalFilterFromInterface(pinterface : *mut core::ffi::c_void, gffilter : GLOBAL_FILTER) -> u32); - PfRemoveGlobalFilterFromInterface(core::mem::transmute(pinterface), core::mem::transmute(gffilter)) + PfRemoveGlobalFilterFromInterface(core::mem::transmute(pinterface), gffilter) } #[inline] pub unsafe fn PfSetLogBuffer(pbbuffer: *mut u8, dwsize: u32, dwthreshold: u32, dwentries: u32, pdwloggedentries: *mut u32, pdwlostentries: *mut u32, pdwsizeused: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfSetLogBuffer(pbbuffer : *mut u8, dwsize : u32, dwthreshold : u32, dwentries : u32, pdwloggedentries : *mut u32, pdwlostentries : *mut u32, pdwsizeused : *mut u32) -> u32); - PfSetLogBuffer(core::mem::transmute(pbbuffer), core::mem::transmute(dwsize), core::mem::transmute(dwthreshold), core::mem::transmute(dwentries), core::mem::transmute(pdwloggedentries), core::mem::transmute(pdwlostentries), core::mem::transmute(pdwsizeused)) + PfSetLogBuffer(core::mem::transmute(pbbuffer), dwsize, dwthreshold, dwentries, core::mem::transmute(pdwloggedentries), core::mem::transmute(pdwlostentries), core::mem::transmute(pdwsizeused)) } #[inline] pub unsafe fn PfTestPacket(pininterface: *mut core::ffi::c_void, poutinterface: *mut core::ffi::c_void, cbytes: u32, pbpacket: *mut u8, ppaction: *mut PFFORWARD_ACTION) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn PfTestPacket(pininterface : *mut core::ffi::c_void, poutinterface : *mut core::ffi::c_void, cbytes : u32, pbpacket : *mut u8, ppaction : *mut PFFORWARD_ACTION) -> u32); - PfTestPacket(core::mem::transmute(pininterface), core::mem::transmute(poutinterface), core::mem::transmute(cbytes), core::mem::transmute(pbpacket), core::mem::transmute(ppaction)) + PfTestPacket(core::mem::transmute(pininterface), core::mem::transmute(poutinterface), cbytes, core::mem::transmute(pbpacket), core::mem::transmute(ppaction)) } #[inline] pub unsafe fn PfUnBindInterface(pinterface: *mut core::ffi::c_void) -> u32 { @@ -1020,7 +982,7 @@ pub unsafe fn PfUnBindInterface(pinterface: *mut core::ffi::c_void) -> u32 { #[inline] pub unsafe fn RegisterInterfaceTimestampConfigChange(callback: PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, notificationhandle: *mut HIFTIMESTAMPCHANGE) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn RegisterInterfaceTimestampConfigChange(callback : PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, notificationhandle : *mut HIFTIMESTAMPCHANGE) -> u32); - RegisterInterfaceTimestampConfigChange(core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationhandle)) + RegisterInterfaceTimestampConfigChange(callback, core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(notificationhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -1032,56 +994,56 @@ pub unsafe fn ResolveIpNetEntry2(row: *mut MIB_IPNET_ROW2, sourceaddress: Option #[inline] pub unsafe fn ResolveNeighbor(networkaddress: *const super::super::Networking::WinSock::SOCKADDR, physicaladdress: *mut core::ffi::c_void, physicaladdresslength: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn ResolveNeighbor(networkaddress : *const super::super::Networking::WinSock:: SOCKADDR, physicaladdress : *mut core::ffi::c_void, physicaladdresslength : *mut u32) -> u32); - ResolveNeighbor(core::mem::transmute(networkaddress), core::mem::transmute(physicaladdress), core::mem::transmute(physicaladdresslength)) + ResolveNeighbor(networkaddress, core::mem::transmute(physicaladdress), core::mem::transmute(physicaladdresslength)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RestoreMediaSense(poverlapped: *const super::super::System::IO::OVERLAPPED, lpdwenablecount: Option<*mut u32>) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn RestoreMediaSense(poverlapped : *const super::super::System::IO:: OVERLAPPED, lpdwenablecount : *mut u32) -> u32); - RestoreMediaSense(core::mem::transmute(poverlapped), core::mem::transmute(lpdwenablecount.unwrap_or(core::mem::zeroed()))) + RestoreMediaSense(poverlapped, core::mem::transmute(lpdwenablecount.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SendARP(destip: u32, srcip: u32, pmacaddr: *mut core::ffi::c_void, phyaddrlen: *mut u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SendARP(destip : u32, srcip : u32, pmacaddr : *mut core::ffi::c_void, phyaddrlen : *mut u32) -> u32); - SendARP(core::mem::transmute(destip), core::mem::transmute(srcip), core::mem::transmute(pmacaddr), core::mem::transmute(phyaddrlen)) + SendARP(destip, srcip, core::mem::transmute(pmacaddr), core::mem::transmute(phyaddrlen)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn SetCurrentThreadCompartmentId(compartmentid: super::Ndis::NET_IF_COMPARTMENT_ID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetCurrentThreadCompartmentId(compartmentid : super::Ndis:: NET_IF_COMPARTMENT_ID) -> super::super::Foundation:: WIN32_ERROR); - SetCurrentThreadCompartmentId(core::mem::transmute(compartmentid)) + SetCurrentThreadCompartmentId(compartmentid) } #[inline] pub unsafe fn SetCurrentThreadCompartmentScope(compartmentscope: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetCurrentThreadCompartmentScope(compartmentscope : u32) -> super::super::Foundation:: WIN32_ERROR); - SetCurrentThreadCompartmentScope(core::mem::transmute(compartmentscope)) + SetCurrentThreadCompartmentScope(compartmentscope) } #[inline] pub unsafe fn SetDnsSettings(settings: *const DNS_SETTINGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetDnsSettings(settings : *const DNS_SETTINGS) -> super::super::Foundation:: WIN32_ERROR); - SetDnsSettings(core::mem::transmute(settings)) + SetDnsSettings(settings) } #[inline] pub unsafe fn SetIfEntry(pifrow: *const MIB_IFROW) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetIfEntry(pifrow : *const MIB_IFROW) -> u32); - SetIfEntry(core::mem::transmute(pifrow)) + SetIfEntry(pifrow) } #[inline] pub unsafe fn SetInterfaceDnsSettings(interface: windows_core::GUID, settings: *const DNS_INTERFACE_SETTINGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetInterfaceDnsSettings(interface : windows_core::GUID, settings : *const DNS_INTERFACE_SETTINGS) -> super::super::Foundation:: WIN32_ERROR); - SetInterfaceDnsSettings(core::mem::transmute(interface), core::mem::transmute(settings)) + SetInterfaceDnsSettings(core::mem::transmute(interface), settings) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn SetIpForwardEntry(proute: *const MIB_IPFORWARDROW) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetIpForwardEntry(proute : *const MIB_IPFORWARDROW) -> u32); - SetIpForwardEntry(core::mem::transmute(proute)) + SetIpForwardEntry(proute) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn SetIpForwardEntry2(route: *const MIB_IPFORWARD_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetIpForwardEntry2(route : *const MIB_IPFORWARD_ROW2) -> super::super::Foundation:: WIN32_ERROR); - SetIpForwardEntry2(core::mem::transmute(route)) + SetIpForwardEntry2(route) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -1092,34 +1054,34 @@ pub unsafe fn SetIpInterfaceEntry(row: *mut MIB_IPINTERFACE_ROW) -> super::super #[inline] pub unsafe fn SetIpNetEntry(parpentry: *const MIB_IPNETROW_LH) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetIpNetEntry(parpentry : *const MIB_IPNETROW_LH) -> u32); - SetIpNetEntry(core::mem::transmute(parpentry)) + SetIpNetEntry(parpentry) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn SetIpNetEntry2(row: *const MIB_IPNET_ROW2) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetIpNetEntry2(row : *const MIB_IPNET_ROW2) -> super::super::Foundation:: WIN32_ERROR); - SetIpNetEntry2(core::mem::transmute(row)) + SetIpNetEntry2(row) } #[inline] pub unsafe fn SetIpStatistics(pipstats: *const MIB_IPSTATS_LH) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetIpStatistics(pipstats : *const MIB_IPSTATS_LH) -> u32); - SetIpStatistics(core::mem::transmute(pipstats)) + SetIpStatistics(pipstats) } #[inline] pub unsafe fn SetIpStatisticsEx(statistics: *const MIB_IPSTATS_LH, family: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetIpStatisticsEx(statistics : *const MIB_IPSTATS_LH, family : u32) -> u32); - SetIpStatisticsEx(core::mem::transmute(statistics), core::mem::transmute(family)) + SetIpStatisticsEx(statistics, family) } #[inline] pub unsafe fn SetIpTTL(nttl: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetIpTTL(nttl : u32) -> u32); - SetIpTTL(core::mem::transmute(nttl)) + SetIpTTL(nttl) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn SetJobCompartmentId(jobhandle: super::super::Foundation::HANDLE, compartmentid: super::Ndis::NET_IF_COMPARTMENT_ID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetJobCompartmentId(jobhandle : super::super::Foundation:: HANDLE, compartmentid : super::Ndis:: NET_IF_COMPARTMENT_ID) -> super::super::Foundation:: WIN32_ERROR); - SetJobCompartmentId(core::mem::transmute(jobhandle), core::mem::transmute(compartmentid)) + SetJobCompartmentId(jobhandle, compartmentid) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -1128,51 +1090,51 @@ where P2: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn SetNetworkInformation(networkguid : *const windows_core::GUID, compartmentid : super::Ndis:: NET_IF_COMPARTMENT_ID, networkname : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - SetNetworkInformation(core::mem::transmute(networkguid), core::mem::transmute(compartmentid), networkname.param().abi()) + SetNetworkInformation(networkguid, compartmentid, networkname.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn SetPerTcp6ConnectionEStats(row: *const MIB_TCP6ROW, estatstype: TCP_ESTATS_TYPE, rw: &[u8], rwversion: u32, offset: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetPerTcp6ConnectionEStats(row : *const MIB_TCP6ROW, estatstype : TCP_ESTATS_TYPE, rw : *const u8, rwversion : u32, rwsize : u32, offset : u32) -> u32); - SetPerTcp6ConnectionEStats(core::mem::transmute(row), core::mem::transmute(estatstype), core::mem::transmute(rw.as_ptr()), core::mem::transmute(rwversion), rw.len().try_into().unwrap(), core::mem::transmute(offset)) + SetPerTcp6ConnectionEStats(row, estatstype, core::mem::transmute(rw.as_ptr()), rwversion, rw.len().try_into().unwrap(), offset) } #[inline] pub unsafe fn SetPerTcpConnectionEStats(row: *const MIB_TCPROW_LH, estatstype: TCP_ESTATS_TYPE, rw: &[u8], rwversion: u32, offset: u32) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetPerTcpConnectionEStats(row : *const MIB_TCPROW_LH, estatstype : TCP_ESTATS_TYPE, rw : *const u8, rwversion : u32, rwsize : u32, offset : u32) -> u32); - SetPerTcpConnectionEStats(core::mem::transmute(row), core::mem::transmute(estatstype), core::mem::transmute(rw.as_ptr()), core::mem::transmute(rwversion), rw.len().try_into().unwrap(), core::mem::transmute(offset)) + SetPerTcpConnectionEStats(row, estatstype, core::mem::transmute(rw.as_ptr()), rwversion, rw.len().try_into().unwrap(), offset) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn SetSessionCompartmentId(sessionid: u32, compartmentid: super::Ndis::NET_IF_COMPARTMENT_ID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetSessionCompartmentId(sessionid : u32, compartmentid : super::Ndis:: NET_IF_COMPARTMENT_ID) -> super::super::Foundation:: WIN32_ERROR); - SetSessionCompartmentId(core::mem::transmute(sessionid), core::mem::transmute(compartmentid)) + SetSessionCompartmentId(sessionid, compartmentid) } #[inline] pub unsafe fn SetTcpEntry(ptcprow: *const MIB_TCPROW_LH) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn SetTcpEntry(ptcprow : *const MIB_TCPROW_LH) -> u32); - SetTcpEntry(core::mem::transmute(ptcprow)) + SetTcpEntry(ptcprow) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn SetUnicastIpAddressEntry(row: *const MIB_UNICASTIPADDRESS_ROW) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("iphlpapi.dll" "system" fn SetUnicastIpAddressEntry(row : *const MIB_UNICASTIPADDRESS_ROW) -> super::super::Foundation:: WIN32_ERROR); - SetUnicastIpAddressEntry(core::mem::transmute(row)) + SetUnicastIpAddressEntry(row) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn UnenableRouter(poverlapped: *const super::super::System::IO::OVERLAPPED, lpdwenablecount: Option<*mut u32>) -> u32 { windows_targets::link!("iphlpapi.dll" "system" fn UnenableRouter(poverlapped : *const super::super::System::IO:: OVERLAPPED, lpdwenablecount : *mut u32) -> u32); - UnenableRouter(core::mem::transmute(poverlapped), core::mem::transmute(lpdwenablecount.unwrap_or(core::mem::zeroed()))) + UnenableRouter(poverlapped, core::mem::transmute(lpdwenablecount.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn UnregisterInterfaceTimestampConfigChange(notificationhandle: HIFTIMESTAMPCHANGE) { windows_targets::link!("iphlpapi.dll" "system" fn UnregisterInterfaceTimestampConfigChange(notificationhandle : HIFTIMESTAMPCHANGE)); - UnregisterInterfaceTimestampConfigChange(core::mem::transmute(notificationhandle)) + UnregisterInterfaceTimestampConfigChange(notificationhandle) } #[inline] pub unsafe fn if_indextoname(interfaceindex: u32, interfacename: &mut [u8; 256]) -> windows_core::PSTR { windows_targets::link!("iphlpapi.dll" "system" fn if_indextoname(interfaceindex : u32, interfacename : windows_core::PSTR) -> windows_core::PSTR); - if_indextoname(core::mem::transmute(interfaceindex), core::mem::transmute(interfacename.as_ptr())) + if_indextoname(interfaceindex, core::mem::transmute(interfacename.as_ptr())) } #[inline] pub unsafe fn if_nametoindex(interfacename: P0) -> u32 diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs index f661ad9fed..9c93872f00 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs @@ -43,7 +43,7 @@ impl IMbnConnection { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionmode), strprofile.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), connectionmode, strprofile.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disconnect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -241,7 +241,7 @@ impl IMbnConnectionContextEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetProvisionedContextComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSetProvisionedContextComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -282,13 +282,13 @@ impl IMbnConnectionEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectComplete)(windows_core::Interface::as_raw(self), newconnection.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnConnectComplete)(windows_core::Interface::as_raw(self), newconnection.param().abi(), requestid, status).ok() } pub unsafe fn OnDisconnectComplete(&self, newconnection: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisconnectComplete)(windows_core::Interface::as_raw(self), newconnection.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnDisconnectComplete)(windows_core::Interface::as_raw(self), newconnection.param().abi(), requestid, status).ok() } pub unsafe fn OnConnectStateChange(&self, newconnection: P0) -> windows_core::Result<()> where @@ -699,12 +699,12 @@ impl IMbnDeviceService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCommand(&self, commandid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(deviceservicedata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), commandid, deviceservicedata, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryCommand(&self, commandid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(deviceservicedata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryCommand)(windows_core::Interface::as_raw(self), commandid, deviceservicedata, &mut result__).map(|| result__) } pub unsafe fn OpenDataSession(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -717,7 +717,7 @@ impl IMbnDeviceService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteData(&self, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(deviceservicedata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), deviceservicedata, &mut result__).map(|| result__) } pub unsafe fn InterfaceID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -925,7 +925,7 @@ windows_core::imp::define_interface!(IMbnDeviceServiceStateEvents, IMbnDeviceSer windows_core::imp::interface_hierarchy!(IMbnDeviceServiceStateEvents, windows_core::IUnknown); impl IMbnDeviceServiceStateEvents { pub unsafe fn OnSessionsStateChange(&self, interfaceid: &windows_core::BSTR, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSessionsStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(interfaceid), core::mem::transmute(statechange)).ok() + (windows_core::Interface::vtable(self).OnSessionsStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(interfaceid), statechange).ok() } } #[repr(C)] @@ -1053,68 +1053,68 @@ impl IMbnDeviceServicesEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQuerySupportedCommandsComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(commandidlist), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnQuerySupportedCommandsComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), commandidlist, status, requestid).ok() } pub unsafe fn OnOpenCommandSessionComplete(&self, deviceservice: P0, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOpenCommandSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnOpenCommandSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), status, requestid).ok() } pub unsafe fn OnCloseCommandSessionComplete(&self, deviceservice: P0, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCloseCommandSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnCloseCommandSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), status, requestid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSetCommandComplete(&self, deviceservice: P0, responseid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetCommandComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(responseid), core::mem::transmute(deviceservicedata), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnSetCommandComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), responseid, deviceservicedata, status, requestid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnQueryCommandComplete(&self, deviceservice: P0, responseid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQueryCommandComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(responseid), core::mem::transmute(deviceservicedata), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnQueryCommandComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), responseid, deviceservicedata, status, requestid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnEventNotification(&self, deviceservice: P0, eventid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEventNotification)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(eventid), core::mem::transmute(deviceservicedata)).ok() + (windows_core::Interface::vtable(self).OnEventNotification)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), eventid, deviceservicedata).ok() } pub unsafe fn OnOpenDataSessionComplete(&self, deviceservice: P0, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOpenDataSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnOpenDataSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), status, requestid).ok() } pub unsafe fn OnCloseDataSessionComplete(&self, deviceservice: P0, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCloseDataSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnCloseDataSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), status, requestid).ok() } pub unsafe fn OnWriteDataComplete(&self, deviceservice: P0, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWriteDataComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(status), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnWriteDataComplete)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), status, requestid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnReadData(&self, deviceservice: P0, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadData)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), core::mem::transmute(deviceservicedata)).ok() + (windows_core::Interface::vtable(self).OnReadData)(windows_core::Interface::as_raw(self), deviceservice.param().abi(), deviceservicedata).ok() } pub unsafe fn OnInterfaceStateChange(&self, interfaceid: &windows_core::BSTR, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInterfaceStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(interfaceid), core::mem::transmute(statechange)).ok() + (windows_core::Interface::vtable(self).OnInterfaceStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(interfaceid), statechange).ok() } } #[repr(C)] @@ -1298,7 +1298,7 @@ impl IMbnInterface { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPreferredProviders(&self, preferredproviders: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPreferredProviders)(windows_core::Interface::as_raw(self), core::mem::transmute(preferredproviders), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPreferredProviders)(windows_core::Interface::as_raw(self), preferredproviders, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetVisibleProviders(&self, age: *mut u32) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -1523,13 +1523,13 @@ impl IMbnInterfaceEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetPreferredProvidersComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSetPreferredProvidersComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } pub unsafe fn OnScanNetworkComplete(&self, newinterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -1862,7 +1862,7 @@ impl IMbnMultiCarrierEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetHomeProviderComplete)(windows_core::Interface::as_raw(self), mbninterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSetHomeProviderComplete)(windows_core::Interface::as_raw(self), mbninterface.param().abi(), requestid, status).ok() } pub unsafe fn OnCurrentCellularClassChange(&self, mbninterface: P0) -> windows_core::Result<()> where @@ -1880,7 +1880,7 @@ impl IMbnMultiCarrierEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), mbninterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), mbninterface.param().abi(), requestid, status).ok() } pub unsafe fn OnInterfaceCapabilityChange(&self, mbninterface: P0) -> windows_core::Result<()> where @@ -2173,31 +2173,31 @@ impl IMbnPinEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEnableComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), core::mem::transmute(pininfo), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnEnableComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), pininfo, requestid, status).ok() } pub unsafe fn OnDisableComplete(&self, pin: P0, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisableComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), core::mem::transmute(pininfo), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnDisableComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), pininfo, requestid, status).ok() } pub unsafe fn OnEnterComplete(&self, pin: P0, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEnterComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), core::mem::transmute(pininfo), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnEnterComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), pininfo, requestid, status).ok() } pub unsafe fn OnChangeComplete(&self, pin: P0, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChangeComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), core::mem::transmute(pininfo), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnChangeComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), pininfo, requestid, status).ok() } pub unsafe fn OnUnblockComplete(&self, pin: P0, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUnblockComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), core::mem::transmute(pininfo), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnUnblockComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), pininfo, requestid, status).ok() } } #[repr(C)] @@ -2262,7 +2262,7 @@ impl IMbnPinManager { } pub unsafe fn GetPin(&self, pintype: MBN_PIN_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPin)(windows_core::Interface::as_raw(self), core::mem::transmute(pintype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPin)(windows_core::Interface::as_raw(self), pintype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPinState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2344,7 +2344,7 @@ impl IMbnPinManagerEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnGetPinStateComplete)(windows_core::Interface::as_raw(self), pinmanager.param().abi(), core::mem::transmute(pininfo), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnGetPinStateComplete)(windows_core::Interface::as_raw(self), pinmanager.param().abi(), core::mem::transmute(pininfo), requestid, status).ok() } } #[repr(C)] @@ -2391,7 +2391,7 @@ impl IMbnRadio { } pub unsafe fn SetSoftwareRadioState(&self, radiostate: MBN_RADIO) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetSoftwareRadioState)(windows_core::Interface::as_raw(self), core::mem::transmute(radiostate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetSoftwareRadioState)(windows_core::Interface::as_raw(self), radiostate, &mut result__).map(|| result__) } } #[repr(C)] @@ -2463,7 +2463,7 @@ impl IMbnRadioEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetSoftwareRadioStateComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSetSoftwareRadioStateComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -2541,7 +2541,7 @@ impl IMbnRegistration { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetRegisterMode)(windows_core::Interface::as_raw(self), core::mem::transmute(registermode), providerid.param().abi(), core::mem::transmute(dataclass), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetRegisterMode)(windows_core::Interface::as_raw(self), registermode, providerid.param().abi(), dataclass, &mut result__).map(|| result__) } } #[repr(C)] @@ -2716,7 +2716,7 @@ impl IMbnRegistrationEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetRegisterModeComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSetRegisterModeComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -2770,7 +2770,7 @@ impl IMbnServiceActivation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Activate(&self, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(vendorspecificdata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), vendorspecificdata, &mut result__).map(|| result__) } } #[repr(C)] @@ -2814,7 +2814,7 @@ impl IMbnServiceActivationEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivationComplete)(windows_core::Interface::as_raw(self), serviceactivation.param().abi(), core::mem::transmute(vendorspecificdata), core::mem::transmute(requestid), core::mem::transmute(status), core::mem::transmute(networkerror)).ok() + (windows_core::Interface::vtable(self).OnActivationComplete)(windows_core::Interface::as_raw(self), serviceactivation.param().abi(), vendorspecificdata, requestid, status, networkerror).ok() } } #[repr(C)] @@ -2949,7 +2949,7 @@ impl IMbnSms { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsSendPdu)(windows_core::Interface::as_raw(self), pdudata.param().abi(), core::mem::transmute(size), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SmsSendPdu)(windows_core::Interface::as_raw(self), pdudata.param().abi(), size, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SmsSendCdma(&self, address: P0, encoding: MBN_SMS_CDMA_ENCODING, language: MBN_SMS_CDMA_LANG, sizeincharacters: u32, message: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result @@ -2957,20 +2957,20 @@ impl IMbnSms { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsSendCdma)(windows_core::Interface::as_raw(self), address.param().abi(), core::mem::transmute(encoding), core::mem::transmute(language), core::mem::transmute(sizeincharacters), core::mem::transmute(message), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SmsSendCdma)(windows_core::Interface::as_raw(self), address.param().abi(), encoding, language, sizeincharacters, message, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SmsSendCdmaPdu(&self, message: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsSendCdmaPdu)(windows_core::Interface::as_raw(self), core::mem::transmute(message), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SmsSendCdmaPdu)(windows_core::Interface::as_raw(self), message, &mut result__).map(|| result__) } pub unsafe fn SmsRead(&self, smsfilter: *const MBN_SMS_FILTER, smsformat: MBN_SMS_FORMAT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsRead)(windows_core::Interface::as_raw(self), core::mem::transmute(smsfilter), core::mem::transmute(smsformat), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SmsRead)(windows_core::Interface::as_raw(self), smsfilter, smsformat, &mut result__).map(|| result__) } pub unsafe fn SmsDelete(&self, smsfilter: *const MBN_SMS_FILTER) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsDelete)(windows_core::Interface::as_raw(self), core::mem::transmute(smsfilter), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SmsDelete)(windows_core::Interface::as_raw(self), smsfilter, &mut result__).map(|| result__) } pub unsafe fn GetSmsStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3133,7 +3133,7 @@ impl IMbnSmsConfiguration { (windows_core::Interface::vtable(self).SmsFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSmsFormat(&self, smsformat: MBN_SMS_FORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSmsFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(smsformat)).ok() + (windows_core::Interface::vtable(self).SetSmsFormat)(windows_core::Interface::as_raw(self), smsformat).ok() } } #[repr(C)] @@ -3232,33 +3232,33 @@ impl IMbnSmsEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetSmsConfigurationComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSetSmsConfigurationComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), requestid, status).ok() } pub unsafe fn OnSmsSendComplete(&self, sms: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsSendComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSmsSendComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), requestid, status).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSmsReadComplete(&self, sms: P0, 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::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsReadComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), core::mem::transmute(smsformat), core::mem::transmute(readmsgs), core::mem::transmute(moremsgs), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSmsReadComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), smsformat, readmsgs, moremsgs, requestid, status).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSmsNewClass0Message(&self, sms: P0, smsformat: MBN_SMS_FORMAT, readmsgs: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsNewClass0Message)(windows_core::Interface::as_raw(self), sms.param().abi(), core::mem::transmute(smsformat), core::mem::transmute(readmsgs)).ok() + (windows_core::Interface::vtable(self).OnSmsNewClass0Message)(windows_core::Interface::as_raw(self), sms.param().abi(), smsformat, readmsgs).ok() } pub unsafe fn OnSmsDeleteComplete(&self, sms: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsDeleteComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), core::mem::transmute(requestid), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnSmsDeleteComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), requestid, status).ok() } pub unsafe fn OnSmsStatusChange(&self, sms: P0) -> windows_core::Result<()> where @@ -3689,14 +3689,14 @@ impl IMbnVendorSpecificEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEventNotification)(windows_core::Interface::as_raw(self), vendoroperation.param().abi(), core::mem::transmute(vendorspecificdata)).ok() + (windows_core::Interface::vtable(self).OnEventNotification)(windows_core::Interface::as_raw(self), vendoroperation.param().abi(), vendorspecificdata).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSetVendorSpecificComplete(&self, vendoroperation: P0, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetVendorSpecificComplete)(windows_core::Interface::as_raw(self), vendoroperation.param().abi(), core::mem::transmute(vendorspecificdata), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).OnSetVendorSpecificComplete)(windows_core::Interface::as_raw(self), vendoroperation.param().abi(), vendorspecificdata, requestid).ok() } } #[repr(C)] @@ -3745,7 +3745,7 @@ impl IMbnVendorSpecificOperation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetVendorSpecific(&self, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetVendorSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(vendorspecificdata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetVendorSpecific)(windows_core::Interface::as_raw(self), vendorspecificdata, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs index 1898259ac9..e188c6b9ca 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs @@ -11,7 +11,7 @@ pub unsafe fn McastApiStartup(version: *mut u32) -> u32 { #[inline] pub unsafe fn McastEnumerateScopes(addrfamily: u16, requery: bool, pscopelist: *mut MCAST_SCOPE_ENTRY, pscopelen: *mut u32, pscopecount: *mut u32) -> u32 { windows_targets::link!("dhcpcsvc.dll" "system" fn McastEnumerateScopes(addrfamily : u16, requery : super::super::Foundation:: BOOL, pscopelist : *mut MCAST_SCOPE_ENTRY, pscopelen : *mut u32, pscopecount : *mut u32) -> u32); - McastEnumerateScopes(core::mem::transmute(addrfamily), requery.into(), core::mem::transmute(pscopelist), core::mem::transmute(pscopelen), core::mem::transmute(pscopecount)) + McastEnumerateScopes(addrfamily, requery.into(), core::mem::transmute(pscopelist), core::mem::transmute(pscopelen), core::mem::transmute(pscopecount)) } #[inline] pub unsafe fn McastGenUID(prequestid: *mut MCAST_CLIENT_UID) -> u32 { @@ -21,17 +21,17 @@ pub unsafe fn McastGenUID(prequestid: *mut MCAST_CLIENT_UID) -> u32 { #[inline] pub unsafe fn McastReleaseAddress(addrfamily: u16, prequestid: *mut MCAST_CLIENT_UID, preleaserequest: *mut MCAST_LEASE_REQUEST) -> u32 { windows_targets::link!("dhcpcsvc.dll" "system" fn McastReleaseAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, preleaserequest : *mut MCAST_LEASE_REQUEST) -> u32); - McastReleaseAddress(core::mem::transmute(addrfamily), core::mem::transmute(prequestid), core::mem::transmute(preleaserequest)) + McastReleaseAddress(addrfamily, core::mem::transmute(prequestid), core::mem::transmute(preleaserequest)) } #[inline] pub unsafe fn McastRenewAddress(addrfamily: u16, prequestid: *mut MCAST_CLIENT_UID, prenewrequest: *mut MCAST_LEASE_REQUEST, prenewresponse: *mut MCAST_LEASE_RESPONSE) -> u32 { windows_targets::link!("dhcpcsvc.dll" "system" fn McastRenewAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, prenewrequest : *mut MCAST_LEASE_REQUEST, prenewresponse : *mut MCAST_LEASE_RESPONSE) -> u32); - McastRenewAddress(core::mem::transmute(addrfamily), core::mem::transmute(prequestid), core::mem::transmute(prenewrequest), core::mem::transmute(prenewresponse)) + McastRenewAddress(addrfamily, core::mem::transmute(prequestid), core::mem::transmute(prenewrequest), core::mem::transmute(prenewresponse)) } #[inline] pub unsafe fn McastRequestAddress(addrfamily: u16, prequestid: *mut MCAST_CLIENT_UID, pscopectx: *mut MCAST_SCOPE_CTX, paddrrequest: *mut MCAST_LEASE_REQUEST, paddrresponse: *mut MCAST_LEASE_RESPONSE) -> u32 { windows_targets::link!("dhcpcsvc.dll" "system" fn McastRequestAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, pscopectx : *mut MCAST_SCOPE_CTX, paddrrequest : *mut MCAST_LEASE_REQUEST, paddrresponse : *mut MCAST_LEASE_RESPONSE) -> u32); - McastRequestAddress(core::mem::transmute(addrfamily), core::mem::transmute(prequestid), core::mem::transmute(pscopectx), core::mem::transmute(paddrrequest), core::mem::transmute(paddrresponse)) + McastRequestAddress(addrfamily, core::mem::transmute(prequestid), core::mem::transmute(pscopectx), core::mem::transmute(paddrrequest), core::mem::transmute(paddrresponse)) } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs index c6dccfa4bc..70e12b124c 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -12,32 +12,32 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn I_NetLogonControl2(servername : windows_core::PCWSTR, functioncode : u32, querylevel : u32, data : *const u8, buffer : *mut *mut u8) -> u32); - I_NetLogonControl2(servername.param().abi(), core::mem::transmute(functioncode), core::mem::transmute(querylevel), core::mem::transmute(data), core::mem::transmute(buffer)) + I_NetLogonControl2(servername.param().abi(), functioncode, querylevel, data, core::mem::transmute(buffer)) } #[inline] pub unsafe fn LogErrorA(dwmessageid: u32, plpwssubstrings: &[windows_core::PCSTR], dwerrorcode: u32) { windows_targets::link!("rtutils.dll" "system" fn LogErrorA(dwmessageid : u32, cnumberofsubstrings : u32, plpwssubstrings : *const windows_core::PCSTR, dwerrorcode : u32)); - LogErrorA(core::mem::transmute(dwmessageid), plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr()), core::mem::transmute(dwerrorcode)) + LogErrorA(dwmessageid, plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr()), dwerrorcode) } #[inline] pub unsafe fn LogErrorW(dwmessageid: u32, plpwssubstrings: &[windows_core::PCWSTR], dwerrorcode: u32) { windows_targets::link!("rtutils.dll" "system" fn LogErrorW(dwmessageid : u32, cnumberofsubstrings : u32, plpwssubstrings : *const windows_core::PCWSTR, dwerrorcode : u32)); - LogErrorW(core::mem::transmute(dwmessageid), plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr()), core::mem::transmute(dwerrorcode)) + LogErrorW(dwmessageid, plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr()), dwerrorcode) } #[inline] pub unsafe fn LogEventA(weventtype: u32, dwmessageid: u32, plpwssubstrings: &[windows_core::PCSTR]) { windows_targets::link!("rtutils.dll" "system" fn LogEventA(weventtype : u32, dwmessageid : u32, cnumberofsubstrings : u32, plpwssubstrings : *const windows_core::PCSTR)); - LogEventA(core::mem::transmute(weventtype), core::mem::transmute(dwmessageid), plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr())) + LogEventA(weventtype, dwmessageid, plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr())) } #[inline] pub unsafe fn LogEventW(weventtype: u32, dwmessageid: u32, plpwssubstrings: &[windows_core::PCWSTR]) { windows_targets::link!("rtutils.dll" "system" fn LogEventW(weventtype : u32, dwmessageid : u32, cnumberofsubstrings : u32, plpwssubstrings : *const windows_core::PCWSTR)); - LogEventW(core::mem::transmute(weventtype), core::mem::transmute(dwmessageid), plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr())) + LogEventW(weventtype, dwmessageid, plpwssubstrings.len().try_into().unwrap(), core::mem::transmute(plpwssubstrings.as_ptr())) } #[inline] pub unsafe fn MprSetupProtocolEnum(dwtransportid: u32, lplpbuffer: *mut *mut u8, lpdwentriesread: *mut u32) -> u32 { windows_targets::link!("rtutils.dll" "system" fn MprSetupProtocolEnum(dwtransportid : u32, lplpbuffer : *mut *mut u8, lpdwentriesread : *mut u32) -> u32); - MprSetupProtocolEnum(core::mem::transmute(dwtransportid), core::mem::transmute(lplpbuffer), core::mem::transmute(lpdwentriesread)) + MprSetupProtocolEnum(dwtransportid, core::mem::transmute(lplpbuffer), core::mem::transmute(lpdwentriesread)) } #[inline] pub unsafe fn MprSetupProtocolFree(lpbuffer: *mut core::ffi::c_void) -> u32 { @@ -50,7 +50,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAccessAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetAccessAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetAccessAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetAccessDel(servername: P0, resource: P1) -> u32 @@ -68,7 +68,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAccessEnum(servername : windows_core::PCWSTR, basepath : windows_core::PCWSTR, recursive : u32, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetAccessEnum(servername.param().abi(), basepath.param().abi(), core::mem::transmute(recursive), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetAccessEnum(servername.param().abi(), basepath.param().abi(), recursive, level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetAccessGetInfo(servername: P0, resource: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -77,7 +77,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAccessGetInfo(servername : windows_core::PCWSTR, resource : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetAccessGetInfo(servername.param().abi(), resource.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetAccessGetInfo(servername.param().abi(), resource.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetAccessGetUserPerms(servername: P0, ugname: P1, resource: P2, perms: *mut u32) -> u32 @@ -96,7 +96,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAccessSetInfo(servername : windows_core::PCWSTR, resource : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetAccessSetInfo(servername.param().abi(), resource.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetAccessSetInfo(servername.param().abi(), resource.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetAddAlternateComputerName(server: P0, alternatename: P1, domainaccount: P2, domainaccountpassword: P3, reserved: u32) -> u32 @@ -107,7 +107,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAddAlternateComputerName(server : windows_core::PCWSTR, alternatename : windows_core::PCWSTR, domainaccount : windows_core::PCWSTR, domainaccountpassword : windows_core::PCWSTR, reserved : u32) -> u32); - NetAddAlternateComputerName(server.param().abi(), alternatename.param().abi(), domainaccount.param().abi(), domainaccountpassword.param().abi(), core::mem::transmute(reserved)) + NetAddAlternateComputerName(server.param().abi(), alternatename.param().abi(), domainaccount.param().abi(), domainaccountpassword.param().abi(), reserved) } #[inline] pub unsafe fn NetAddServiceAccount(servername: P0, accountname: P1, password: P2, flags: u32) -> super::super::Foundation::NTSTATUS @@ -117,7 +117,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAddServiceAccount(servername : windows_core::PCWSTR, accountname : windows_core::PCWSTR, password : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: NTSTATUS); - NetAddServiceAccount(servername.param().abi(), accountname.param().abi(), password.param().abi(), core::mem::transmute(flags)) + NetAddServiceAccount(servername.param().abi(), accountname.param().abi(), password.param().abi(), flags) } #[inline] pub unsafe fn NetAlertRaise(alerttype: P0, buffer: *const core::ffi::c_void, buffersize: u32) -> u32 @@ -125,7 +125,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAlertRaise(alerttype : windows_core::PCWSTR, buffer : *const core::ffi::c_void, buffersize : u32) -> u32); - NetAlertRaise(alerttype.param().abi(), core::mem::transmute(buffer), core::mem::transmute(buffersize)) + NetAlertRaise(alerttype.param().abi(), buffer, buffersize) } #[inline] pub unsafe fn NetAlertRaiseEx(alerttype: P0, variableinfo: *const core::ffi::c_void, variableinfosize: u32, servicename: P3) -> u32 @@ -134,12 +134,12 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAlertRaiseEx(alerttype : windows_core::PCWSTR, variableinfo : *const core::ffi::c_void, variableinfosize : u32, servicename : windows_core::PCWSTR) -> u32); - NetAlertRaiseEx(alerttype.param().abi(), core::mem::transmute(variableinfo), core::mem::transmute(variableinfosize), servicename.param().abi()) + NetAlertRaiseEx(alerttype.param().abi(), variableinfo, variableinfosize, servicename.param().abi()) } #[inline] pub unsafe fn NetApiBufferAllocate(bytecount: u32, buffer: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetApiBufferAllocate(bytecount : u32, buffer : *mut *mut core::ffi::c_void) -> u32); - NetApiBufferAllocate(core::mem::transmute(bytecount), core::mem::transmute(buffer)) + NetApiBufferAllocate(bytecount, core::mem::transmute(buffer)) } #[inline] pub unsafe fn NetApiBufferFree(buffer: Option<*const core::ffi::c_void>) -> u32 { @@ -149,12 +149,12 @@ pub unsafe fn NetApiBufferFree(buffer: Option<*const core::ffi::c_void>) -> u32 #[inline] pub unsafe fn NetApiBufferReallocate(oldbuffer: Option<*const core::ffi::c_void>, newbytecount: u32, newbuffer: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetApiBufferReallocate(oldbuffer : *const core::ffi::c_void, newbytecount : u32, newbuffer : *mut *mut core::ffi::c_void) -> u32); - NetApiBufferReallocate(core::mem::transmute(oldbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(newbytecount), core::mem::transmute(newbuffer)) + NetApiBufferReallocate(core::mem::transmute(oldbuffer.unwrap_or(core::mem::zeroed())), newbytecount, core::mem::transmute(newbuffer)) } #[inline] pub unsafe fn NetApiBufferSize(buffer: *const core::ffi::c_void, bytecount: *mut u32) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetApiBufferSize(buffer : *const core::ffi::c_void, bytecount : *mut u32) -> u32); - NetApiBufferSize(core::mem::transmute(buffer), core::mem::transmute(bytecount)) + NetApiBufferSize(buffer, core::mem::transmute(bytecount)) } #[inline] pub unsafe fn NetAuditClear(server: P0, backupfile: P1, service: P2) -> u32 @@ -173,7 +173,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAuditRead(server : windows_core::PCWSTR, service : windows_core::PCWSTR, auditloghandle : *mut HLOG, offset : u32, reserved1 : *mut u32, reserved2 : u32, offsetflag : u32, bufptr : *mut *mut u8, prefmaxlen : u32, bytesread : *mut u32, totalavailable : *mut u32) -> u32); - NetAuditRead(server.param().abi(), service.param().abi(), core::mem::transmute(auditloghandle), core::mem::transmute(offset), core::mem::transmute(reserved1), core::mem::transmute(reserved2), core::mem::transmute(offsetflag), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(bytesread), core::mem::transmute(totalavailable)) + NetAuditRead(server.param().abi(), service.param().abi(), core::mem::transmute(auditloghandle), offset, core::mem::transmute(reserved1), reserved2, offsetflag, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(bytesread), core::mem::transmute(totalavailable)) } #[inline] pub unsafe fn NetAuditWrite(r#type: u32, buf: *mut u8, numbytes: u32, service: P3, reserved: *mut u8) -> u32 @@ -181,7 +181,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAuditWrite(r#type : u32, buf : *mut u8, numbytes : u32, service : windows_core::PCWSTR, reserved : *mut u8) -> u32); - NetAuditWrite(core::mem::transmute(r#type), core::mem::transmute(buf), core::mem::transmute(numbytes), service.param().abi(), core::mem::transmute(reserved)) + NetAuditWrite(r#type, core::mem::transmute(buf), numbytes, service.param().abi(), core::mem::transmute(reserved)) } #[inline] pub unsafe fn NetConfigGet(server: P0, component: P1, parameter: P2, bufptr: *mut *mut u8) -> u32 @@ -210,12 +210,12 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetConfigSet(server : windows_core::PCWSTR, reserved1 : windows_core::PCWSTR, component : windows_core::PCWSTR, level : u32, reserved2 : u32, buf : *mut u8, reserved3 : u32) -> u32); - NetConfigSet(server.param().abi(), reserved1.param().abi(), component.param().abi(), core::mem::transmute(level), core::mem::transmute(reserved2), core::mem::transmute(buf), core::mem::transmute(reserved3)) + NetConfigSet(server.param().abi(), reserved1.param().abi(), component.param().abi(), level, reserved2, core::mem::transmute(buf), reserved3) } #[inline] pub unsafe fn NetCreateProvisioningPackage(pprovisioningparams: *const NETSETUP_PROVISIONING_PARAMS, pppackagebindata: Option<*mut *mut u8>, pdwpackagebindatasize: Option<*mut u32>, pppackagetextdata: Option<*mut windows_core::PWSTR>) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetCreateProvisioningPackage(pprovisioningparams : *const NETSETUP_PROVISIONING_PARAMS, pppackagebindata : *mut *mut u8, pdwpackagebindatasize : *mut u32, pppackagetextdata : *mut windows_core::PWSTR) -> u32); - NetCreateProvisioningPackage(core::mem::transmute(pprovisioningparams), core::mem::transmute(pppackagebindata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwpackagebindatasize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pppackagetextdata.unwrap_or(core::mem::zeroed()))) + NetCreateProvisioningPackage(pprovisioningparams, core::mem::transmute(pppackagebindata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwpackagebindatasize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pppackagetextdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetEnumerateComputerNames(server: P0, nametype: NET_COMPUTER_NAME_TYPE, reserved: u32, entrycount: *mut u32, computernames: *mut *mut windows_core::PWSTR) -> u32 @@ -223,7 +223,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetEnumerateComputerNames(server : windows_core::PCWSTR, nametype : NET_COMPUTER_NAME_TYPE, reserved : u32, entrycount : *mut u32, computernames : *mut *mut windows_core::PWSTR) -> u32); - NetEnumerateComputerNames(server.param().abi(), core::mem::transmute(nametype), core::mem::transmute(reserved), core::mem::transmute(entrycount), core::mem::transmute(computernames)) + NetEnumerateComputerNames(server.param().abi(), nametype, reserved, core::mem::transmute(entrycount), core::mem::transmute(computernames)) } #[inline] pub unsafe fn NetEnumerateServiceAccounts(servername: P0, flags: u32, accountscount: *mut u32, accounts: *mut *mut *mut u16) -> super::super::Foundation::NTSTATUS @@ -231,7 +231,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetEnumerateServiceAccounts(servername : windows_core::PCWSTR, flags : u32, accountscount : *mut u32, accounts : *mut *mut *mut u16) -> super::super::Foundation:: NTSTATUS); - NetEnumerateServiceAccounts(servername.param().abi(), core::mem::transmute(flags), core::mem::transmute(accountscount), core::mem::transmute(accounts)) + NetEnumerateServiceAccounts(servername.param().abi(), flags, core::mem::transmute(accountscount), core::mem::transmute(accounts)) } #[inline] pub unsafe fn NetErrorLogClear(uncservername: P0, backupfile: P1, reserved: Option<*const u8>) -> u32 @@ -249,7 +249,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetErrorLogRead(uncservername : windows_core::PCWSTR, reserved1 : windows_core::PCWSTR, errorloghandle : *const HLOG, offset : u32, reserved2 : *const u32, reserved3 : u32, offsetflag : u32, bufptr : *mut *mut u8, prefmaxsize : u32, bytesread : *mut u32, totalavailable : *mut u32) -> u32); - NetErrorLogRead(uncservername.param().abi(), reserved1.param().abi(), core::mem::transmute(errorloghandle), core::mem::transmute(offset), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved3), core::mem::transmute(offsetflag), core::mem::transmute(bufptr), core::mem::transmute(prefmaxsize), core::mem::transmute(bytesread), core::mem::transmute(totalavailable)) + NetErrorLogRead(uncservername.param().abi(), reserved1.param().abi(), errorloghandle, offset, core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), reserved3, offsetflag, core::mem::transmute(bufptr), prefmaxsize, core::mem::transmute(bytesread), core::mem::transmute(totalavailable)) } #[inline] pub unsafe fn NetErrorLogWrite(reserved1: Option<*const u8>, code: u32, component: P2, buffer: *const u8, numbytes: u32, msgbuf: *const u8, strcount: u32, reserved2: Option<*const u8>) -> u32 @@ -257,7 +257,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetErrorLogWrite(reserved1 : *const u8, code : u32, component : windows_core::PCWSTR, buffer : *const u8, numbytes : u32, msgbuf : *const u8, strcount : u32, reserved2 : *const u8) -> u32); - NetErrorLogWrite(core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(code), component.param().abi(), core::mem::transmute(buffer), core::mem::transmute(numbytes), core::mem::transmute(msgbuf), core::mem::transmute(strcount), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) + NetErrorLogWrite(core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), code, component.param().abi(), buffer, numbytes, msgbuf, strcount, core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -300,7 +300,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGetDisplayInformationIndex(servername : windows_core::PCWSTR, level : u32, prefix : windows_core::PCWSTR, index : *mut u32) -> u32); - NetGetDisplayInformationIndex(servername.param().abi(), core::mem::transmute(level), prefix.param().abi(), core::mem::transmute(index)) + NetGetDisplayInformationIndex(servername.param().abi(), level, prefix.param().abi(), core::mem::transmute(index)) } #[inline] pub unsafe fn NetGetJoinInformation(lpserver: P0, lpnamebuffer: *mut windows_core::PWSTR, buffertype: *mut NETSETUP_JOIN_STATUS) -> u32 @@ -327,7 +327,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetGroupAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetGroupAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetGroupAddUser(servername: P0, groupname: P1, username: P2) -> u32 @@ -364,7 +364,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut usize) -> u32); - NetGroupEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetGroupEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetGroupGetInfo(servername: P0, groupname: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -373,7 +373,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupGetInfo(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetGroupGetInfo(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetGroupGetInfo(servername.param().abi(), groupname.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetGroupGetUsers(servername: P0, groupname: P1, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: Option<*mut usize>) -> u32 @@ -382,7 +382,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupGetUsers(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut usize) -> u32); - NetGroupGetUsers(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) + NetGroupGetUsers(servername.param().abi(), groupname.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetGroupSetInfo(servername: P0, groupname: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -391,7 +391,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupSetInfo(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetGroupSetInfo(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetGroupSetInfo(servername.param().abi(), groupname.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetGroupSetUsers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 @@ -400,7 +400,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupSetUsers(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, buf : *const u8, totalentries : u32) -> u32); - NetGroupSetUsers(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(totalentries)) + NetGroupSetUsers(servername.param().abi(), groupname.param().abi(), level, buf, totalentries) } #[inline] pub unsafe fn NetIsServiceAccount(servername: P0, accountname: P1, isservice: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS @@ -421,7 +421,7 @@ where P4: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetJoinDomain(lpserver : windows_core::PCWSTR, lpdomain : windows_core::PCWSTR, lpmachineaccountou : windows_core::PCWSTR, lpaccount : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, fjoinoptions : NET_JOIN_DOMAIN_JOIN_OPTIONS) -> u32); - NetJoinDomain(lpserver.param().abi(), lpdomain.param().abi(), lpmachineaccountou.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), core::mem::transmute(fjoinoptions)) + NetJoinDomain(lpserver.param().abi(), lpdomain.param().abi(), lpmachineaccountou.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), fjoinoptions) } #[inline] pub unsafe fn NetLocalGroupAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -429,7 +429,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetLocalGroupAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetLocalGroupAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -439,7 +439,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupAddMember(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, membersid : super::super::Security:: PSID) -> u32); - NetLocalGroupAddMember(servername.param().abi(), groupname.param().abi(), core::mem::transmute(membersid)) + NetLocalGroupAddMember(servername.param().abi(), groupname.param().abi(), membersid) } #[inline] pub unsafe fn NetLocalGroupAddMembers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 @@ -448,7 +448,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupAddMembers(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, buf : *const u8, totalentries : u32) -> u32); - NetLocalGroupAddMembers(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(totalentries)) + NetLocalGroupAddMembers(servername.param().abi(), groupname.param().abi(), level, buf, totalentries) } #[inline] pub unsafe fn NetLocalGroupDel(servername: P0, groupname: P1) -> u32 @@ -467,7 +467,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupDelMember(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, membersid : super::super::Security:: PSID) -> u32); - NetLocalGroupDelMember(servername.param().abi(), groupname.param().abi(), core::mem::transmute(membersid)) + NetLocalGroupDelMember(servername.param().abi(), groupname.param().abi(), membersid) } #[inline] pub unsafe fn NetLocalGroupDelMembers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 @@ -476,7 +476,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupDelMembers(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, buf : *const u8, totalentries : u32) -> u32); - NetLocalGroupDelMembers(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(totalentries)) + NetLocalGroupDelMembers(servername.param().abi(), groupname.param().abi(), level, buf, totalentries) } #[inline] pub unsafe fn NetLocalGroupEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: Option<*mut usize>) -> u32 @@ -484,7 +484,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut usize) -> u32); - NetLocalGroupEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) + NetLocalGroupEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetLocalGroupGetInfo(servername: P0, groupname: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -493,7 +493,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupGetInfo(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetLocalGroupGetInfo(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetLocalGroupGetInfo(servername.param().abi(), groupname.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetLocalGroupGetMembers(servername: P0, localgroupname: P1, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: Option<*mut usize>) -> u32 @@ -502,7 +502,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupGetMembers(servername : windows_core::PCWSTR, localgroupname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut usize) -> u32); - NetLocalGroupGetMembers(servername.param().abi(), localgroupname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) + NetLocalGroupGetMembers(servername.param().abi(), localgroupname.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetLocalGroupSetInfo(servername: P0, groupname: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -511,7 +511,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupSetInfo(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetLocalGroupSetInfo(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetLocalGroupSetInfo(servername.param().abi(), groupname.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetLocalGroupSetMembers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 @@ -520,7 +520,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupSetMembers(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, level : u32, buf : *const u8, totalentries : u32) -> u32); - NetLocalGroupSetMembers(servername.param().abi(), groupname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(totalentries)) + NetLocalGroupSetMembers(servername.param().abi(), groupname.param().abi(), level, buf, totalentries) } #[inline] pub unsafe fn NetMessageBufferSend(servername: P0, msgname: P1, fromname: P2, buf: *const u8, buflen: u32) -> u32 @@ -530,7 +530,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetMessageBufferSend(servername : windows_core::PCWSTR, msgname : windows_core::PCWSTR, fromname : windows_core::PCWSTR, buf : *const u8, buflen : u32) -> u32); - NetMessageBufferSend(servername.param().abi(), msgname.param().abi(), fromname.param().abi(), core::mem::transmute(buf), core::mem::transmute(buflen)) + NetMessageBufferSend(servername.param().abi(), msgname.param().abi(), fromname.param().abi(), buf, buflen) } #[inline] pub unsafe fn NetMessageNameAdd(servername: P0, msgname: P1) -> u32 @@ -556,7 +556,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetMessageNameEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *const *const u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetMessageNameEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle)) + NetMessageNameEnum(servername.param().abi(), level, bufptr, prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle)) } #[inline] pub unsafe fn NetMessageNameGetInfo(servername: P0, msgname: P1, level: u32, bufptr: *const *const u8) -> u32 @@ -565,7 +565,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetMessageNameGetInfo(servername : windows_core::PCWSTR, msgname : windows_core::PCWSTR, level : u32, bufptr : *const *const u8) -> u32); - NetMessageNameGetInfo(servername.param().abi(), msgname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetMessageNameGetInfo(servername.param().abi(), msgname.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetProvisionComputerAccount(lpdomain: P0, lpmachinename: P1, lpmachineaccountou: P2, lpdcname: P3, dwoptions: NETSETUP_PROVISION, pprovisionbindata: Option<*mut *mut u8>, pdwprovisionbindatasize: Option<*mut u32>, pprovisiontextdata: Option<*mut windows_core::PWSTR>) -> u32 @@ -576,7 +576,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetProvisionComputerAccount(lpdomain : windows_core::PCWSTR, lpmachinename : windows_core::PCWSTR, lpmachineaccountou : windows_core::PCWSTR, lpdcname : windows_core::PCWSTR, dwoptions : NETSETUP_PROVISION, pprovisionbindata : *mut *mut u8, pdwprovisionbindatasize : *mut u32, pprovisiontextdata : *mut windows_core::PWSTR) -> u32); - NetProvisionComputerAccount(lpdomain.param().abi(), lpmachinename.param().abi(), lpmachineaccountou.param().abi(), lpdcname.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(pprovisionbindata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprovisionbindatasize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprovisiontextdata.unwrap_or(core::mem::zeroed()))) + NetProvisionComputerAccount(lpdomain.param().abi(), lpmachinename.param().abi(), lpmachineaccountou.param().abi(), lpdcname.param().abi(), dwoptions, core::mem::transmute(pprovisionbindata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprovisionbindatasize.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprovisiontextdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetQueryDisplayInformation(servername: P0, level: u32, index: u32, entriesrequested: u32, preferredmaximumlength: u32, returnedentrycount: *mut u32, sortedbuffer: *mut *mut core::ffi::c_void) -> u32 @@ -584,7 +584,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetQueryDisplayInformation(servername : windows_core::PCWSTR, level : u32, index : u32, entriesrequested : u32, preferredmaximumlength : u32, returnedentrycount : *mut u32, sortedbuffer : *mut *mut core::ffi::c_void) -> u32); - NetQueryDisplayInformation(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(index), core::mem::transmute(entriesrequested), core::mem::transmute(preferredmaximumlength), core::mem::transmute(returnedentrycount), core::mem::transmute(sortedbuffer)) + NetQueryDisplayInformation(servername.param().abi(), level, index, entriesrequested, preferredmaximumlength, core::mem::transmute(returnedentrycount), core::mem::transmute(sortedbuffer)) } #[inline] pub unsafe fn NetQueryServiceAccount(servername: P0, accountname: P1, infolevel: u32, buffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS @@ -593,7 +593,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetQueryServiceAccount(servername : windows_core::PCWSTR, accountname : windows_core::PCWSTR, infolevel : u32, buffer : *mut *mut u8) -> super::super::Foundation:: NTSTATUS); - NetQueryServiceAccount(servername.param().abi(), accountname.param().abi(), core::mem::transmute(infolevel), core::mem::transmute(buffer)) + NetQueryServiceAccount(servername.param().abi(), accountname.param().abi(), infolevel, core::mem::transmute(buffer)) } #[inline] pub unsafe fn NetRemoteComputerSupports(uncservername: P0, optionswanted: NET_REMOTE_COMPUTER_SUPPORTS_OPTIONS, optionssupported: *mut u32) -> u32 @@ -601,7 +601,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRemoteComputerSupports(uncservername : windows_core::PCWSTR, optionswanted : NET_REMOTE_COMPUTER_SUPPORTS_OPTIONS, optionssupported : *mut u32) -> u32); - NetRemoteComputerSupports(uncservername.param().abi(), core::mem::transmute(optionswanted), core::mem::transmute(optionssupported)) + NetRemoteComputerSupports(uncservername.param().abi(), optionswanted, core::mem::transmute(optionssupported)) } #[inline] pub unsafe fn NetRemoteTOD(uncservername: P0, bufferptr: *mut *mut u8) -> u32 @@ -620,7 +620,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRemoveAlternateComputerName(server : windows_core::PCWSTR, alternatename : windows_core::PCWSTR, domainaccount : windows_core::PCWSTR, domainaccountpassword : windows_core::PCWSTR, reserved : u32) -> u32); - NetRemoveAlternateComputerName(server.param().abi(), alternatename.param().abi(), domainaccount.param().abi(), domainaccountpassword.param().abi(), core::mem::transmute(reserved)) + NetRemoveAlternateComputerName(server.param().abi(), alternatename.param().abi(), domainaccount.param().abi(), domainaccountpassword.param().abi(), reserved) } #[inline] pub unsafe fn NetRemoveServiceAccount(servername: P0, accountname: P1, flags: u32) -> super::super::Foundation::NTSTATUS @@ -629,7 +629,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRemoveServiceAccount(servername : windows_core::PCWSTR, accountname : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: NTSTATUS); - NetRemoveServiceAccount(servername.param().abi(), accountname.param().abi(), core::mem::transmute(flags)) + NetRemoveServiceAccount(servername.param().abi(), accountname.param().abi(), flags) } #[inline] pub unsafe fn NetRenameMachineInDomain(lpserver: P0, lpnewmachinename: P1, lpaccount: P2, lppassword: P3, frenameoptions: u32) -> u32 @@ -640,7 +640,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRenameMachineInDomain(lpserver : windows_core::PCWSTR, lpnewmachinename : windows_core::PCWSTR, lpaccount : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, frenameoptions : u32) -> u32); - NetRenameMachineInDomain(lpserver.param().abi(), lpnewmachinename.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), core::mem::transmute(frenameoptions)) + NetRenameMachineInDomain(lpserver.param().abi(), lpnewmachinename.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), frenameoptions) } #[inline] pub unsafe fn NetReplExportDirAdd(servername: P0, level: u32, buf: *const u8, parm_err: *mut u32) -> u32 @@ -648,7 +648,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetReplExportDirAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err)) + NetReplExportDirAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err)) } #[inline] pub unsafe fn NetReplExportDirDel(servername: P0, dirname: P1) -> u32 @@ -665,7 +665,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut u32) -> u32); - NetReplExportDirEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle)) + NetReplExportDirEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle)) } #[inline] pub unsafe fn NetReplExportDirGetInfo(servername: P0, dirname: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -674,7 +674,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirGetInfo(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetReplExportDirGetInfo(servername.param().abi(), dirname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetReplExportDirGetInfo(servername.param().abi(), dirname.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetReplExportDirLock(servername: P0, dirname: P1) -> u32 @@ -692,7 +692,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirSetInfo(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetReplExportDirSetInfo(servername.param().abi(), dirname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err)) + NetReplExportDirSetInfo(servername.param().abi(), dirname.param().abi(), level, buf, core::mem::transmute(parm_err)) } #[inline] pub unsafe fn NetReplExportDirUnlock(servername: P0, dirname: P1, unlockforce: u32) -> u32 @@ -701,7 +701,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirUnlock(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR, unlockforce : u32) -> u32); - NetReplExportDirUnlock(servername.param().abi(), dirname.param().abi(), core::mem::transmute(unlockforce)) + NetReplExportDirUnlock(servername.param().abi(), dirname.param().abi(), unlockforce) } #[inline] pub unsafe fn NetReplGetInfo(servername: P0, level: u32, bufptr: *mut *mut u8) -> u32 @@ -709,7 +709,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplGetInfo(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetReplGetInfo(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetReplGetInfo(servername.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetReplImportDirAdd(servername: P0, level: u32, buf: *const u8, parm_err: *mut u32) -> u32 @@ -717,7 +717,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplImportDirAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetReplImportDirAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err)) + NetReplImportDirAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err)) } #[inline] pub unsafe fn NetReplImportDirDel(servername: P0, dirname: P1) -> u32 @@ -734,7 +734,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplImportDirEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut u32) -> u32); - NetReplImportDirEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle)) + NetReplImportDirEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle)) } #[inline] pub unsafe fn NetReplImportDirGetInfo(servername: P0, dirname: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -743,7 +743,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplImportDirGetInfo(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetReplImportDirGetInfo(servername.param().abi(), dirname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetReplImportDirGetInfo(servername.param().abi(), dirname.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetReplImportDirLock(servername: P0, dirname: P1) -> u32 @@ -761,7 +761,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplImportDirUnlock(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR, unlockforce : u32) -> u32); - NetReplImportDirUnlock(servername.param().abi(), dirname.param().abi(), core::mem::transmute(unlockforce)) + NetReplImportDirUnlock(servername.param().abi(), dirname.param().abi(), unlockforce) } #[inline] pub unsafe fn NetReplSetInfo(servername: P0, level: u32, buf: *const u8, parm_err: *mut u32) -> u32 @@ -769,7 +769,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplSetInfo(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetReplSetInfo(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err)) + NetReplSetInfo(servername.param().abi(), level, buf, core::mem::transmute(parm_err)) } #[inline] pub unsafe fn NetRequestOfflineDomainJoin(pprovisionbindata: &[u8], dwoptions: NET_REQUEST_PROVISION_OPTIONS, lpwindowspath: P3) -> u32 @@ -777,7 +777,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRequestOfflineDomainJoin(pprovisionbindata : *const u8, cbprovisionbindatasize : u32, dwoptions : NET_REQUEST_PROVISION_OPTIONS, lpwindowspath : windows_core::PCWSTR) -> u32); - NetRequestOfflineDomainJoin(core::mem::transmute(pprovisionbindata.as_ptr()), pprovisionbindata.len().try_into().unwrap(), core::mem::transmute(dwoptions), lpwindowspath.param().abi()) + NetRequestOfflineDomainJoin(core::mem::transmute(pprovisionbindata.as_ptr()), pprovisionbindata.len().try_into().unwrap(), dwoptions, lpwindowspath.param().abi()) } #[inline] pub unsafe fn NetRequestProvisioningPackageInstall(ppackagebindata: &[u8], dwprovisionoptions: NET_REQUEST_PROVISION_OPTIONS, lpwindowspath: P3, pvreserved: Option<*const core::ffi::c_void>) -> u32 @@ -785,7 +785,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRequestProvisioningPackageInstall(ppackagebindata : *const u8, dwpackagebindatasize : u32, dwprovisionoptions : NET_REQUEST_PROVISION_OPTIONS, lpwindowspath : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void) -> u32); - NetRequestProvisioningPackageInstall(core::mem::transmute(ppackagebindata.as_ptr()), ppackagebindata.len().try_into().unwrap(), core::mem::transmute(dwprovisionoptions), lpwindowspath.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + NetRequestProvisioningPackageInstall(core::mem::transmute(ppackagebindata.as_ptr()), ppackagebindata.len().try_into().unwrap(), dwprovisionoptions, lpwindowspath.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetScheduleJobAdd(servername: P0, buffer: *mut u8, jobid: *mut u32) -> u32 @@ -801,7 +801,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetScheduleJobDel(servername : windows_core::PCWSTR, minjobid : u32, maxjobid : u32) -> u32); - NetScheduleJobDel(servername.param().abi(), core::mem::transmute(minjobid), core::mem::transmute(maxjobid)) + NetScheduleJobDel(servername.param().abi(), minjobid, maxjobid) } #[inline] pub unsafe fn NetScheduleJobEnum(servername: P0, pointertobuffer: *mut *mut u8, prefferedmaximumlength: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: *mut u32) -> u32 @@ -809,7 +809,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetScheduleJobEnum(servername : windows_core::PCWSTR, pointertobuffer : *mut *mut u8, prefferedmaximumlength : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut u32) -> u32); - NetScheduleJobEnum(servername.param().abi(), core::mem::transmute(pointertobuffer), core::mem::transmute(prefferedmaximumlength), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle)) + NetScheduleJobEnum(servername.param().abi(), core::mem::transmute(pointertobuffer), prefferedmaximumlength, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle)) } #[inline] pub unsafe fn NetScheduleJobGetInfo(servername: P0, jobid: u32, pointertobuffer: *mut *mut u8) -> u32 @@ -817,7 +817,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetScheduleJobGetInfo(servername : windows_core::PCWSTR, jobid : u32, pointertobuffer : *mut *mut u8) -> u32); - NetScheduleJobGetInfo(servername.param().abi(), core::mem::transmute(jobid), core::mem::transmute(pointertobuffer)) + NetScheduleJobGetInfo(servername.param().abi(), jobid, core::mem::transmute(pointertobuffer)) } #[inline] pub unsafe fn NetServerComputerNameAdd(servername: P0, emulateddomainname: P1, emulatedservername: P2) -> u32 @@ -844,7 +844,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerDiskEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetServerDiskEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetServerDiskEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetServerEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, servertype: NET_SERVER_TYPE, domain: P7, resume_handle: Option<*mut u32>) -> u32 @@ -853,7 +853,7 @@ where P7: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, servertype : NET_SERVER_TYPE, domain : windows_core::PCWSTR, resume_handle : *mut u32) -> u32); - NetServerEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(servertype), domain.param().abi(), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetServerEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), servertype, domain.param().abi(), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetServerGetInfo(servername: P0, level: u32, bufptr: *mut *mut u8) -> u32 @@ -861,7 +861,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerGetInfo(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetServerGetInfo(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetServerGetInfo(servername.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetServerSetInfo(servername: P0, level: u32, buf: *const u8, parmerror: Option<*mut u32>) -> u32 @@ -869,7 +869,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerSetInfo(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parmerror : *mut u32) -> u32); - NetServerSetInfo(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parmerror.unwrap_or(core::mem::zeroed()))) + NetServerSetInfo(servername.param().abi(), level, buf, core::mem::transmute(parmerror.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetServerTransportAdd(servername: P0, level: u32, bufptr: *const u8) -> u32 @@ -877,7 +877,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportAdd(servername : windows_core::PCWSTR, level : u32, bufptr : *const u8) -> u32); - NetServerTransportAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetServerTransportAdd(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServerTransportAddEx(servername: P0, level: u32, bufptr: *const u8) -> u32 @@ -885,7 +885,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportAddEx(servername : windows_core::PCWSTR, level : u32, bufptr : *const u8) -> u32); - NetServerTransportAddEx(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetServerTransportAddEx(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServerTransportDel(servername: P0, level: u32, bufptr: *const u8) -> u32 @@ -893,7 +893,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportDel(servername : windows_core::PCWSTR, level : u32, bufptr : *const u8) -> u32); - NetServerTransportDel(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetServerTransportDel(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServerTransportEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 @@ -901,7 +901,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetServerTransportEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetServerTransportEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetServiceControl(servername: P0, service: P1, opcode: u32, arg: u32, bufptr: *mut *mut u8) -> u32 @@ -910,7 +910,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServiceControl(servername : windows_core::PCWSTR, service : windows_core::PCWSTR, opcode : u32, arg : u32, bufptr : *mut *mut u8) -> u32); - NetServiceControl(servername.param().abi(), service.param().abi(), core::mem::transmute(opcode), core::mem::transmute(arg), core::mem::transmute(bufptr)) + NetServiceControl(servername.param().abi(), service.param().abi(), opcode, arg, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetServiceEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 @@ -918,7 +918,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServiceEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetServiceEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetServiceEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetServiceGetInfo(servername: P0, service: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -927,7 +927,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServiceGetInfo(servername : windows_core::PCWSTR, service : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetServiceGetInfo(servername.param().abi(), service.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetServiceGetInfo(servername.param().abi(), service.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetServiceInstall(servername: P0, service: P1, argv: &[windows_core::PCWSTR], bufptr: *mut *mut u8) -> u32 @@ -947,7 +947,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetSetPrimaryComputerName(server : windows_core::PCWSTR, primaryname : windows_core::PCWSTR, domainaccount : windows_core::PCWSTR, domainaccountpassword : windows_core::PCWSTR, reserved : u32) -> u32); - NetSetPrimaryComputerName(server.param().abi(), primaryname.param().abi(), domainaccount.param().abi(), domainaccountpassword.param().abi(), core::mem::transmute(reserved)) + NetSetPrimaryComputerName(server.param().abi(), primaryname.param().abi(), domainaccount.param().abi(), domainaccountpassword.param().abi(), reserved) } #[inline] pub unsafe fn NetUnjoinDomain(lpserver: P0, lpaccount: P1, lppassword: P2, funjoinoptions: u32) -> u32 @@ -957,12 +957,12 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUnjoinDomain(lpserver : windows_core::PCWSTR, lpaccount : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, funjoinoptions : u32) -> u32); - NetUnjoinDomain(lpserver.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), core::mem::transmute(funjoinoptions)) + NetUnjoinDomain(lpserver.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), funjoinoptions) } #[inline] pub unsafe fn NetUseAdd(servername: Option<*const i8>, levelflags: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetUseAdd(servername : *const i8, levelflags : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetUseAdd(core::mem::transmute(servername.unwrap_or(core::mem::zeroed())), core::mem::transmute(levelflags), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetUseAdd(core::mem::transmute(servername.unwrap_or(core::mem::zeroed())), levelflags, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetUseDel(uncservername: P0, usename: P1, forcelevelflags: FORCE_LEVEL_FLAGS) -> u32 @@ -971,7 +971,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUseDel(uncservername : windows_core::PCWSTR, usename : windows_core::PCWSTR, forcelevelflags : FORCE_LEVEL_FLAGS) -> u32); - NetUseDel(uncservername.param().abi(), usename.param().abi(), core::mem::transmute(forcelevelflags)) + NetUseDel(uncservername.param().abi(), usename.param().abi(), forcelevelflags) } #[inline] pub unsafe fn NetUseEnum(uncservername: P0, levelflags: u32, bufptr: Option<*mut *mut u8>, preferedmaximumsize: u32, entriesread: Option<*mut u32>, totalentries: *mut u32, resumehandle: Option<*mut u32>) -> u32 @@ -979,7 +979,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUseEnum(uncservername : windows_core::PCWSTR, levelflags : u32, bufptr : *mut *mut u8, preferedmaximumsize : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut u32) -> u32); - NetUseEnum(uncservername.param().abi(), core::mem::transmute(levelflags), core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed())), core::mem::transmute(preferedmaximumsize), core::mem::transmute(entriesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) + NetUseEnum(uncservername.param().abi(), levelflags, core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed())), preferedmaximumsize, core::mem::transmute(entriesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetUseGetInfo(uncservername: P0, usename: P1, levelflags: u32, bufptr: Option<*mut *mut u8>) -> u32 @@ -988,7 +988,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUseGetInfo(uncservername : windows_core::PCWSTR, usename : windows_core::PCWSTR, levelflags : u32, bufptr : *mut *mut u8) -> u32); - NetUseGetInfo(uncservername.param().abi(), usename.param().abi(), core::mem::transmute(levelflags), core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed()))) + NetUseGetInfo(uncservername.param().abi(), usename.param().abi(), levelflags, core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetUserAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -996,7 +996,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetUserAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetUserAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetUserChangePassword(domainname: P0, username: P1, oldpassword: P2, newpassword: P3) -> u32 @@ -1024,7 +1024,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserEnum(servername : windows_core::PCWSTR, level : u32, filter : NET_USER_ENUM_FILTER_FLAGS, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetUserEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(filter), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetUserEnum(servername.param().abi(), level, filter, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetUserGetGroups(servername: P0, username: P1, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32) -> u32 @@ -1033,7 +1033,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserGetGroups(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32) -> u32); - NetUserGetGroups(servername.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries)) + NetUserGetGroups(servername.param().abi(), username.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries)) } #[inline] pub unsafe fn NetUserGetInfo(servername: P0, username: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -1042,7 +1042,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserGetInfo(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetUserGetInfo(servername.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetUserGetInfo(servername.param().abi(), username.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetUserGetLocalGroups(servername: P0, username: P1, level: u32, flags: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32) -> u32 @@ -1051,7 +1051,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserGetLocalGroups(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, flags : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32) -> u32); - NetUserGetLocalGroups(servername.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(flags), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries)) + NetUserGetLocalGroups(servername.param().abi(), username.param().abi(), level, flags, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries)) } #[inline] pub unsafe fn NetUserModalsGet(servername: P0, level: u32, bufptr: *mut *mut u8) -> u32 @@ -1059,7 +1059,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserModalsGet(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetUserModalsGet(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetUserModalsGet(servername.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetUserModalsSet(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -1067,7 +1067,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserModalsSet(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetUserModalsSet(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetUserModalsSet(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetUserSetGroups(servername: P0, username: P1, level: u32, buf: *const u8, num_entries: u32) -> u32 @@ -1076,7 +1076,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserSetGroups(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, buf : *const u8, num_entries : u32) -> u32); - NetUserSetGroups(servername.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(num_entries)) + NetUserSetGroups(servername.param().abi(), username.param().abi(), level, buf, num_entries) } #[inline] pub unsafe fn NetUserSetInfo(servername: P0, username: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -1085,7 +1085,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserSetInfo(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetUserSetInfo(servername.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetUserSetInfo(servername.param().abi(), username.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetValidateName(lpserver: P0, lpname: P1, lpaccount: P2, lppassword: P3, nametype: NETSETUP_NAME_TYPE) -> u32 @@ -1096,7 +1096,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetValidateName(lpserver : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpaccount : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, nametype : NETSETUP_NAME_TYPE) -> u32); - NetValidateName(lpserver.param().abi(), lpname.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), core::mem::transmute(nametype)) + NetValidateName(lpserver.param().abi(), lpname.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), nametype) } #[inline] pub unsafe fn NetValidatePasswordPolicy(servername: P0, qualifier: *mut core::ffi::c_void, validationtype: NET_VALIDATE_PASSWORD_TYPE, inputarg: *mut core::ffi::c_void, outputarg: *mut *mut core::ffi::c_void) -> u32 @@ -1104,7 +1104,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetValidatePasswordPolicy(servername : windows_core::PCWSTR, qualifier : *mut core::ffi::c_void, validationtype : NET_VALIDATE_PASSWORD_TYPE, inputarg : *mut core::ffi::c_void, outputarg : *mut *mut core::ffi::c_void) -> u32); - NetValidatePasswordPolicy(servername.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(validationtype), core::mem::transmute(inputarg), core::mem::transmute(outputarg)) + NetValidatePasswordPolicy(servername.param().abi(), core::mem::transmute(qualifier), validationtype, core::mem::transmute(inputarg), core::mem::transmute(outputarg)) } #[inline] pub unsafe fn NetValidatePasswordPolicyFree(outputarg: *mut *mut core::ffi::c_void) -> u32 { @@ -1117,7 +1117,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetWkstaGetInfo(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetWkstaGetInfo(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed()))) + NetWkstaGetInfo(servername.param().abi(), level, core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetWkstaSetInfo(servername: P0, level: u32, buffer: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -1125,12 +1125,12 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetWkstaSetInfo(servername : windows_core::PCWSTR, level : u32, buffer : *const u8, parm_err : *mut u32) -> u32); - NetWkstaSetInfo(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buffer), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetWkstaSetInfo(servername.param().abi(), level, buffer, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetWkstaTransportAdd(servername: Option<*const i8>, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetWkstaTransportAdd(servername : *const i8, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetWkstaTransportAdd(core::mem::transmute(servername.unwrap_or(core::mem::zeroed())), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetWkstaTransportAdd(core::mem::transmute(servername.unwrap_or(core::mem::zeroed())), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetWkstaTransportDel(servername: P0, transportname: P1, ucond: FORCE_LEVEL_FLAGS) -> u32 @@ -1139,12 +1139,12 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetWkstaTransportDel(servername : windows_core::PCWSTR, transportname : windows_core::PCWSTR, ucond : FORCE_LEVEL_FLAGS) -> u32); - NetWkstaTransportDel(servername.param().abi(), transportname.param().abi(), core::mem::transmute(ucond)) + NetWkstaTransportDel(servername.param().abi(), transportname.param().abi(), ucond) } #[inline] pub unsafe fn NetWkstaTransportEnum(servername: Option<*const i8>, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetWkstaTransportEnum(servername : *const i8, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetWkstaTransportEnum(core::mem::transmute(servername.unwrap_or(core::mem::zeroed())), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetWkstaTransportEnum(core::mem::transmute(servername.unwrap_or(core::mem::zeroed())), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetWkstaUserEnum(servername: P0, level: u32, bufptr: Option<*mut *mut u8>, prefmaxlen: u32, entriesread: Option<*mut u32>, totalentries: *mut u32, resumehandle: Option<*mut u32>) -> u32 @@ -1152,7 +1152,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetWkstaUserEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut u32) -> u32); - NetWkstaUserEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed())), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) + NetWkstaUserEnum(servername.param().abi(), level, core::mem::transmute(bufptr.unwrap_or(core::mem::zeroed())), prefmaxlen, core::mem::transmute(entriesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetWkstaUserGetInfo(reserved: P0, level: u32, bufptr: *mut *mut u8) -> u32 @@ -1160,7 +1160,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetWkstaUserGetInfo(reserved : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetWkstaUserGetInfo(reserved.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetWkstaUserGetInfo(reserved.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetWkstaUserSetInfo(reserved: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -1168,7 +1168,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetWkstaUserSetInfo(reserved : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetWkstaUserSetInfo(reserved.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetWkstaUserSetInfo(reserved.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RouterAssert(pszfailedassertion: P0, pszfilename: P1, dwlinenumber: u32, pszmessage: P3) @@ -1178,42 +1178,42 @@ where P3: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterAssert(pszfailedassertion : windows_core::PCSTR, pszfilename : windows_core::PCSTR, dwlinenumber : u32, pszmessage : windows_core::PCSTR)); - RouterAssert(pszfailedassertion.param().abi(), pszfilename.param().abi(), core::mem::transmute(dwlinenumber), pszmessage.param().abi()) + RouterAssert(pszfailedassertion.param().abi(), pszfilename.param().abi(), dwlinenumber, pszmessage.param().abi()) } #[inline] pub unsafe fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: *mut windows_core::PSTR) -> u32 { windows_targets::link!("rtutils.dll" "system" fn RouterGetErrorStringA(dwerrorcode : u32, lplpszerrorstring : *mut windows_core::PSTR) -> u32); - RouterGetErrorStringA(core::mem::transmute(dwerrorcode), core::mem::transmute(lplpszerrorstring)) + RouterGetErrorStringA(dwerrorcode, core::mem::transmute(lplpszerrorstring)) } #[inline] pub unsafe fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: *mut windows_core::PWSTR) -> u32 { windows_targets::link!("rtutils.dll" "system" fn RouterGetErrorStringW(dwerrorcode : u32, lplpwszerrorstring : *mut windows_core::PWSTR) -> u32); - RouterGetErrorStringW(core::mem::transmute(dwerrorcode), core::mem::transmute(lplpwszerrorstring)) + RouterGetErrorStringW(dwerrorcode, core::mem::transmute(lplpwszerrorstring)) } #[inline] pub unsafe fn RouterLogDeregisterA(hloghandle: super::super::Foundation::HANDLE) { windows_targets::link!("rtutils.dll" "system" fn RouterLogDeregisterA(hloghandle : super::super::Foundation:: HANDLE)); - RouterLogDeregisterA(core::mem::transmute(hloghandle)) + RouterLogDeregisterA(hloghandle) } #[inline] pub unsafe fn RouterLogDeregisterW(hloghandle: super::super::Foundation::HANDLE) { windows_targets::link!("rtutils.dll" "system" fn RouterLogDeregisterW(hloghandle : super::super::Foundation:: HANDLE)); - RouterLogDeregisterW(core::mem::transmute(hloghandle)) + RouterLogDeregisterW(hloghandle) } #[inline] pub unsafe fn RouterLogEventA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCSTR]>, dwerrorcode: u32) { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventA(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwmessageid : u32, dwsubstringcount : u32, plpszsubstringarray : *const windows_core::PCSTR, dwerrorcode : u32)); - RouterLogEventA(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwmessageid), plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwerrorcode)) + RouterLogEventA(hloghandle, dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwerrorcode) } #[inline] pub unsafe fn RouterLogEventDataA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCSTR]>, dwdatabytes: u32, lpdatabytes: *mut u8) { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventDataA(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwmessageid : u32, dwsubstringcount : u32, plpszsubstringarray : *const windows_core::PCSTR, dwdatabytes : u32, lpdatabytes : *mut u8)); - RouterLogEventDataA(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwmessageid), plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwdatabytes), core::mem::transmute(lpdatabytes)) + RouterLogEventDataA(hloghandle, dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwdatabytes, core::mem::transmute(lpdatabytes)) } #[inline] pub unsafe fn RouterLogEventDataW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCWSTR]>, dwdatabytes: u32, lpdatabytes: *mut u8) { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventDataW(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwmessageid : u32, dwsubstringcount : u32, plpszsubstringarray : *const windows_core::PCWSTR, dwdatabytes : u32, lpdatabytes : *mut u8)); - RouterLogEventDataW(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwmessageid), plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwdatabytes), core::mem::transmute(lpdatabytes)) + RouterLogEventDataW(hloghandle, dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwdatabytes, core::mem::transmute(lpdatabytes)) } #[inline] pub unsafe fn RouterLogEventExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P4) @@ -1221,7 +1221,7 @@ where P4: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn RouterLogEventExA(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwerrorcode : u32, dwmessageid : u32, ptszformat : windows_core::PCSTR)); - RouterLogEventExA(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwerrorcode), core::mem::transmute(dwmessageid), ptszformat.param().abi()) + RouterLogEventExA(hloghandle, dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi()) } #[inline] pub unsafe fn RouterLogEventExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P4) @@ -1229,17 +1229,17 @@ where P4: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn RouterLogEventExW(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwerrorcode : u32, dwmessageid : u32, ptszformat : windows_core::PCWSTR)); - RouterLogEventExW(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwerrorcode), core::mem::transmute(dwmessageid), ptszformat.param().abi()) + RouterLogEventExW(hloghandle, dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi()) } #[inline] pub unsafe fn RouterLogEventStringA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[windows_core::PCSTR], dwerrorcode: u32, dwerrorindex: u32) { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventStringA(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwmessageid : u32, dwsubstringcount : u32, plpszsubstringarray : *const windows_core::PCSTR, dwerrorcode : u32, dwerrorindex : u32)); - RouterLogEventStringA(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwmessageid), plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), core::mem::transmute(dwerrorcode), core::mem::transmute(dwerrorindex)) + RouterLogEventStringA(hloghandle, dweventtype, dwmessageid, plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) } #[inline] pub unsafe fn RouterLogEventStringW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[windows_core::PCWSTR], dwerrorcode: u32, dwerrorindex: u32) { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventStringW(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwmessageid : u32, dwsubstringcount : u32, plpszsubstringarray : *const windows_core::PCWSTR, dwerrorcode : u32, dwerrorindex : u32)); - RouterLogEventStringW(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwmessageid), plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), core::mem::transmute(dwerrorcode), core::mem::transmute(dwerrorindex)) + RouterLogEventStringW(hloghandle, dweventtype, dwmessageid, plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) } #[inline] pub unsafe fn RouterLogEventValistExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P4, arglist: *mut i8) @@ -1247,7 +1247,7 @@ where P4: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventValistExA(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwerrorcode : u32, dwmessageid : u32, ptszformat : windows_core::PCSTR, arglist : *mut i8)); - RouterLogEventValistExA(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwerrorcode), core::mem::transmute(dwmessageid), ptszformat.param().abi(), core::mem::transmute(arglist)) + RouterLogEventValistExA(hloghandle, dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi(), core::mem::transmute(arglist)) } #[inline] pub unsafe fn RouterLogEventValistExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P4, arglist: *mut i8) @@ -1255,12 +1255,12 @@ where P4: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventValistExW(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwerrorcode : u32, dwmessageid : u32, ptszformat : windows_core::PCWSTR, arglist : *mut i8)); - RouterLogEventValistExW(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwerrorcode), core::mem::transmute(dwmessageid), ptszformat.param().abi(), core::mem::transmute(arglist)) + RouterLogEventValistExW(hloghandle, dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi(), core::mem::transmute(arglist)) } #[inline] pub unsafe fn RouterLogEventW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCWSTR]>, dwerrorcode: u32) { windows_targets::link!("rtutils.dll" "system" fn RouterLogEventW(hloghandle : super::super::Foundation:: HANDLE, dweventtype : u32, dwmessageid : u32, dwsubstringcount : u32, plpszsubstringarray : *const windows_core::PCWSTR, dwerrorcode : u32)); - RouterLogEventW(core::mem::transmute(hloghandle), core::mem::transmute(dweventtype), core::mem::transmute(dwmessageid), plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwerrorcode)) + RouterLogEventW(hloghandle, dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plpszsubstringarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwerrorcode) } #[inline] pub unsafe fn RouterLogRegisterA(lpszsource: P0) -> super::super::Foundation::HANDLE @@ -1291,22 +1291,22 @@ where #[inline] pub unsafe fn TraceDeregisterA(dwtraceid: u32) -> u32 { windows_targets::link!("rtutils.dll" "system" fn TraceDeregisterA(dwtraceid : u32) -> u32); - TraceDeregisterA(core::mem::transmute(dwtraceid)) + TraceDeregisterA(dwtraceid) } #[inline] pub unsafe fn TraceDeregisterExA(dwtraceid: u32, dwflags: u32) -> u32 { windows_targets::link!("rtutils.dll" "system" fn TraceDeregisterExA(dwtraceid : u32, dwflags : u32) -> u32); - TraceDeregisterExA(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags)) + TraceDeregisterExA(dwtraceid, dwflags) } #[inline] pub unsafe fn TraceDeregisterExW(dwtraceid: u32, dwflags: u32) -> u32 { windows_targets::link!("rtutils.dll" "system" fn TraceDeregisterExW(dwtraceid : u32, dwflags : u32) -> u32); - TraceDeregisterExW(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags)) + TraceDeregisterExW(dwtraceid, dwflags) } #[inline] pub unsafe fn TraceDeregisterW(dwtraceid: u32) -> u32 { windows_targets::link!("rtutils.dll" "system" fn TraceDeregisterW(dwtraceid : u32) -> u32); - TraceDeregisterW(core::mem::transmute(dwtraceid)) + TraceDeregisterW(dwtraceid) } #[inline] pub unsafe fn TraceDumpExA(dwtraceid: u32, dwflags: u32, lpbbytes: *mut u8, dwbytecount: u32, dwgroupsize: u32, baddressprefix: bool, lpszprefix: P6) -> u32 @@ -1314,7 +1314,7 @@ where P6: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceDumpExA(dwtraceid : u32, dwflags : u32, lpbbytes : *mut u8, dwbytecount : u32, dwgroupsize : u32, baddressprefix : super::super::Foundation:: BOOL, lpszprefix : windows_core::PCSTR) -> u32); - TraceDumpExA(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), core::mem::transmute(lpbbytes), core::mem::transmute(dwbytecount), core::mem::transmute(dwgroupsize), baddressprefix.into(), lpszprefix.param().abi()) + TraceDumpExA(dwtraceid, dwflags, core::mem::transmute(lpbbytes), dwbytecount, dwgroupsize, baddressprefix.into(), lpszprefix.param().abi()) } #[inline] pub unsafe fn TraceDumpExW(dwtraceid: u32, dwflags: u32, lpbbytes: *mut u8, dwbytecount: u32, dwgroupsize: u32, baddressprefix: bool, lpszprefix: P6) -> u32 @@ -1322,17 +1322,17 @@ where P6: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceDumpExW(dwtraceid : u32, dwflags : u32, lpbbytes : *mut u8, dwbytecount : u32, dwgroupsize : u32, baddressprefix : super::super::Foundation:: BOOL, lpszprefix : windows_core::PCWSTR) -> u32); - TraceDumpExW(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), core::mem::transmute(lpbbytes), core::mem::transmute(dwbytecount), core::mem::transmute(dwgroupsize), baddressprefix.into(), lpszprefix.param().abi()) + TraceDumpExW(dwtraceid, dwflags, core::mem::transmute(lpbbytes), dwbytecount, dwgroupsize, baddressprefix.into(), lpszprefix.param().abi()) } #[inline] pub unsafe fn TraceGetConsoleA(dwtraceid: u32, lphconsole: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtutils.dll" "system" fn TraceGetConsoleA(dwtraceid : u32, lphconsole : *mut super::super::Foundation:: HANDLE) -> u32); - TraceGetConsoleA(core::mem::transmute(dwtraceid), core::mem::transmute(lphconsole)) + TraceGetConsoleA(dwtraceid, core::mem::transmute(lphconsole)) } #[inline] pub unsafe fn TraceGetConsoleW(dwtraceid: u32, lphconsole: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtutils.dll" "system" fn TraceGetConsoleW(dwtraceid : u32, lphconsole : *mut super::super::Foundation:: HANDLE) -> u32); - TraceGetConsoleW(core::mem::transmute(dwtraceid), core::mem::transmute(lphconsole)) + TraceGetConsoleW(dwtraceid, core::mem::transmute(lphconsole)) } #[inline] pub unsafe fn TracePrintfA(dwtraceid: u32, lpszformat: P1) -> u32 @@ -1340,7 +1340,7 @@ where P1: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfA(dwtraceid : u32, lpszformat : windows_core::PCSTR) -> u32); - TracePrintfA(core::mem::transmute(dwtraceid), lpszformat.param().abi()) + TracePrintfA(dwtraceid, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePrintfExA(dwtraceid: u32, dwflags: u32, lpszformat: P2) -> u32 @@ -1348,7 +1348,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfExA(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCSTR) -> u32); - TracePrintfExA(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), lpszformat.param().abi()) + TracePrintfExA(dwtraceid, dwflags, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePrintfExW(dwtraceid: u32, dwflags: u32, lpszformat: P2) -> u32 @@ -1356,7 +1356,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfExW(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCWSTR) -> u32); - TracePrintfExW(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), lpszformat.param().abi()) + TracePrintfExW(dwtraceid, dwflags, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePrintfW(dwtraceid: u32, lpszformat: P1) -> u32 @@ -1364,7 +1364,7 @@ where P1: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfW(dwtraceid : u32, lpszformat : windows_core::PCWSTR) -> u32); - TracePrintfW(core::mem::transmute(dwtraceid), lpszformat.param().abi()) + TracePrintfW(dwtraceid, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePutsExA(dwtraceid: u32, dwflags: u32, lpszstring: P2) -> u32 @@ -1372,7 +1372,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TracePutsExA(dwtraceid : u32, dwflags : u32, lpszstring : windows_core::PCSTR) -> u32); - TracePutsExA(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), lpszstring.param().abi()) + TracePutsExA(dwtraceid, dwflags, lpszstring.param().abi()) } #[inline] pub unsafe fn TracePutsExW(dwtraceid: u32, dwflags: u32, lpszstring: P2) -> u32 @@ -1380,7 +1380,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TracePutsExW(dwtraceid : u32, dwflags : u32, lpszstring : windows_core::PCWSTR) -> u32); - TracePutsExW(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), lpszstring.param().abi()) + TracePutsExW(dwtraceid, dwflags, lpszstring.param().abi()) } #[inline] pub unsafe fn TraceRegisterExA(lpszcallername: P0, dwflags: u32) -> u32 @@ -1388,7 +1388,7 @@ where P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceRegisterExA(lpszcallername : windows_core::PCSTR, dwflags : u32) -> u32); - TraceRegisterExA(lpszcallername.param().abi(), core::mem::transmute(dwflags)) + TraceRegisterExA(lpszcallername.param().abi(), dwflags) } #[inline] pub unsafe fn TraceRegisterExW(lpszcallername: P0, dwflags: u32) -> u32 @@ -1396,7 +1396,7 @@ where P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceRegisterExW(lpszcallername : windows_core::PCWSTR, dwflags : u32) -> u32); - TraceRegisterExW(lpszcallername.param().abi(), core::mem::transmute(dwflags)) + TraceRegisterExW(lpszcallername.param().abi(), dwflags) } #[inline] pub unsafe fn TraceVprintfExA(dwtraceid: u32, dwflags: u32, lpszformat: P2, arglist: *mut i8) -> u32 @@ -1404,7 +1404,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceVprintfExA(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCSTR, arglist : *mut i8) -> u32); - TraceVprintfExA(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), lpszformat.param().abi(), core::mem::transmute(arglist)) + TraceVprintfExA(dwtraceid, dwflags, lpszformat.param().abi(), core::mem::transmute(arglist)) } #[inline] pub unsafe fn TraceVprintfExW(dwtraceid: u32, dwflags: u32, lpszformat: P2, arglist: *mut i8) -> u32 @@ -1412,7 +1412,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceVprintfExW(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCWSTR, arglist : *mut i8) -> u32); - TraceVprintfExW(core::mem::transmute(dwtraceid), core::mem::transmute(dwflags), lpszformat.param().abi(), core::mem::transmute(arglist)) + TraceVprintfExW(dwtraceid, dwflags, lpszformat.param().abi(), core::mem::transmute(arglist)) } pub const AA_AUDIT_ALL: u32 = 1u32; pub const AA_A_ACL: u32 = 32768u32; @@ -2721,7 +2721,7 @@ impl IEnumNetCfgBindingInterface { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -2782,7 +2782,7 @@ impl IEnumNetCfgBindingPath { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -2843,7 +2843,7 @@ impl IEnumNetCfgComponent { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -2915,7 +2915,7 @@ impl INetCfg { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumComponents(&self, pguidclass: *const windows_core::GUID, ppenumcomponent: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumComponents)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidclass), core::mem::transmute(ppenumcomponent.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EnumComponents)(windows_core::Interface::as_raw(self), pguidclass, core::mem::transmute(ppenumcomponent.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FindComponent(&self, pszwinfid: P0, pcomponent: Option<*mut Option>) -> windows_core::Result<()> where @@ -2924,7 +2924,7 @@ impl INetCfg { (windows_core::Interface::vtable(self).FindComponent)(windows_core::Interface::as_raw(self), pszwinfid.param().abi(), core::mem::transmute(pcomponent.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn QueryNetCfgClass(&self, pguidclass: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryNetCfgClass)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidclass), core::mem::transmute(riid), core::mem::transmute(ppvobject.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).QueryNetCfgClass)(windows_core::Interface::as_raw(self), pguidclass, riid, core::mem::transmute(ppvobject.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -3206,7 +3206,7 @@ windows_core::imp::define_interface!(INetCfgClassSetup, INetCfgClassSetup_Vtbl, windows_core::imp::interface_hierarchy!(INetCfgClassSetup, windows_core::IUnknown); impl INetCfgClassSetup { pub unsafe fn SelectAndInstall(&self, hwndparent: super::super::Foundation::HWND, pobotoken: Option<*const OBO_TOKEN>, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAndInstall)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(pobotoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppnccitem.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SelectAndInstall)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute(pobotoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppnccitem.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Install(&self, pszwinfid: P0, pobotoken: Option<*const OBO_TOKEN>, dwsetupflags: Option, dwupgradefrombuildno: Option, pszwanswerfile: P4, pszwanswersections: P5, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> where @@ -3344,7 +3344,7 @@ impl INetCfgComponent { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RaisePropertyUi)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), punkcontext.param().abi()).ok() + (windows_core::Interface::vtable(self).RaisePropertyUi)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), dwflags, punkcontext.param().abi()).ok() } } #[repr(C)] @@ -3485,7 +3485,7 @@ impl INetCfgComponentBindings { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SupportsBindingInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszwinterfacename.param().abi()).ok() + (windows_core::Interface::vtable(self).SupportsBindingInterface)(windows_core::Interface::as_raw(self), dwflags, pszwinterfacename.param().abi()).ok() } pub unsafe fn IsBoundTo(&self, pnccitem: P0) -> windows_core::Result<()> where @@ -3500,7 +3500,7 @@ impl INetCfgComponentBindings { (windows_core::Interface::vtable(self).IsBindableTo)(windows_core::Interface::as_raw(self), pnccitem.param().abi()).ok() } pub unsafe fn EnumBindingPaths(&self, dwflags: u32, ppienum: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumBindingPaths)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(ppienum.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EnumBindingPaths)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(ppienum.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn MoveBefore(&self, pncbitemsrc: P0, pncbitemdest: P1) -> windows_core::Result<()> where @@ -3665,13 +3665,13 @@ impl INetCfgComponentNotifyBinding { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryBindingPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangeflag), pipath.param().abi()).ok() + (windows_core::Interface::vtable(self).QueryBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.param().abi()).ok() } pub unsafe fn NotifyBindingPath(&self, dwchangeflag: u32, pipath: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyBindingPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangeflag), pipath.param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.param().abi()).ok() } } #[repr(C)] @@ -3716,19 +3716,19 @@ impl INetCfgComponentNotifyGlobal { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SysQueryBindingPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangeflag), pipath.param().abi()).ok() + (windows_core::Interface::vtable(self).SysQueryBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.param().abi()).ok() } pub unsafe fn SysNotifyBindingPath(&self, dwchangeflag: u32, pipath: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SysNotifyBindingPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangeflag), pipath.param().abi()).ok() + (windows_core::Interface::vtable(self).SysNotifyBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.param().abi()).ok() } pub unsafe fn SysNotifyComponent(&self, dwchangeflag: u32, picomp: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SysNotifyComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangeflag), picomp.param().abi()).ok() + (windows_core::Interface::vtable(self).SysNotifyComponent)(windows_core::Interface::as_raw(self), dwchangeflag, picomp.param().abi()).ok() } } #[repr(C)] @@ -3798,10 +3798,10 @@ impl INetCfgComponentPropertyUi { (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), punkreserved.param().abi()).ok() } pub unsafe fn MergePropPages(&self, pdwdefpages: *mut u32, pahpspprivate: *mut *mut u8, pcpages: *mut u32, hwndparent: super::super::Foundation::HWND, pszstartpage: Option<*const windows_core::PCWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MergePropPages)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwdefpages), core::mem::transmute(pahpspprivate), core::mem::transmute(pcpages), core::mem::transmute(hwndparent), core::mem::transmute(pszstartpage.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MergePropPages)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwdefpages), core::mem::transmute(pahpspprivate), core::mem::transmute(pcpages), hwndparent, core::mem::transmute(pszstartpage.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ValidateProperties(&self, hwndsheet: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ValidateProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndsheet)).ok() + (windows_core::Interface::vtable(self).ValidateProperties)(windows_core::Interface::as_raw(self), hwndsheet).ok() } pub unsafe fn ApplyProperties(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self)).ok() @@ -3873,10 +3873,10 @@ windows_core::imp::define_interface!(INetCfgComponentSetup, INetCfgComponentSetu windows_core::imp::interface_hierarchy!(INetCfgComponentSetup, windows_core::IUnknown); impl INetCfgComponentSetup { pub unsafe fn Install(&self, dwsetupflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsetupflags)).ok() + (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self), dwsetupflags).ok() } pub unsafe fn Upgrade(&self, dwsetupflags: u32, dwupgradefombuildno: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Upgrade)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsetupflags), core::mem::transmute(dwupgradefombuildno)).ok() + (windows_core::Interface::vtable(self).Upgrade)(windows_core::Interface::as_raw(self), dwsetupflags, dwupgradefombuildno).ok() } pub unsafe fn ReadAnswerFile(&self, pszwanswerfile: P0, pszwanswersections: P1) -> windows_core::Result<()> where @@ -3942,14 +3942,14 @@ impl INetCfgComponentSysPrep { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveAdapterParameters)(windows_core::Interface::as_raw(self), pncsp.param().abi(), pszwanswersections.param().abi(), core::mem::transmute(padapterinstanceguid)).ok() + (windows_core::Interface::vtable(self).SaveAdapterParameters)(windows_core::Interface::as_raw(self), pncsp.param().abi(), pszwanswersections.param().abi(), padapterinstanceguid).ok() } pub unsafe fn RestoreAdapterParameters(&self, pszwanswerfile: P0, pszwanswersection: P1, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreAdapterParameters)(windows_core::Interface::as_raw(self), pszwanswerfile.param().abi(), pszwanswersection.param().abi(), core::mem::transmute(padapterinstanceguid)).ok() + (windows_core::Interface::vtable(self).RestoreAdapterParameters)(windows_core::Interface::as_raw(self), pszwanswerfile.param().abi(), pszwanswersection.param().abi(), padapterinstanceguid).ok() } } #[repr(C)] @@ -3996,7 +3996,7 @@ impl INetCfgComponentUpperEdge { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddInterfacesToAdapter)(windows_core::Interface::as_raw(self), padapter.param().abi(), core::mem::transmute(dwnuminterfaces)).ok() + (windows_core::Interface::vtable(self).AddInterfacesToAdapter)(windows_core::Interface::as_raw(self), padapter.param().abi(), dwnuminterfaces).ok() } pub unsafe fn RemoveInterfacesFromAdapter(&self, padapter: P0, pguidinterfaceids: &[windows_core::GUID]) -> windows_core::Result<()> where @@ -4050,7 +4050,7 @@ impl INetCfgLock { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireWriteLock)(windows_core::Interface::as_raw(self), core::mem::transmute(cmstimeout), pszwclientdescription.param().abi(), core::mem::transmute(ppszwclientdescription.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AcquireWriteLock)(windows_core::Interface::as_raw(self), cmstimeout, pszwclientdescription.param().abi(), core::mem::transmute(ppszwclientdescription.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReleaseWriteLock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseWriteLock)(windows_core::Interface::as_raw(self)).ok() @@ -4105,7 +4105,7 @@ impl INetCfgPnpReconfigCallback { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SendPnpReconfig)(windows_core::Interface::as_raw(self), core::mem::transmute(layer), pszwupper.param().abi(), pszwlower.param().abi(), core::mem::transmute(pvdata), core::mem::transmute(dwsizeofdata)).ok() + (windows_core::Interface::vtable(self).SendPnpReconfig)(windows_core::Interface::as_raw(self), layer, pszwupper.param().abi(), pszwlower.param().abi(), pvdata, dwsizeofdata).ok() } } #[repr(C)] @@ -4137,7 +4137,7 @@ impl INetCfgSysPrep { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HrSetupSetFirstDword)(windows_core::Interface::as_raw(self), pwszsection.param().abi(), pwszkey.param().abi(), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).HrSetupSetFirstDword)(windows_core::Interface::as_raw(self), pwszsection.param().abi(), pwszkey.param().abi(), dwvalue).ok() } pub unsafe fn HrSetupSetFirstString(&self, pwszsection: P0, pwszkey: P1, pwszvalue: P2) -> windows_core::Result<()> where @@ -4337,7 +4337,7 @@ windows_core::imp::interface_hierarchy!(IProvisioningProfileWireless, windows_co impl IProvisioningProfileWireless { pub unsafe fn CreateProfile(&self, bstrxmlwirelessconfigprofile: &windows_core::BSTR, bstrxmlconnectionconfigprofile: &windows_core::BSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProfile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxmlwirelessconfigprofile), core::mem::transmute_copy(bstrxmlconnectionconfigprofile), core::mem::transmute(padapterinstanceguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateProfile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxmlwirelessconfigprofile), core::mem::transmute_copy(bstrxmlconnectionconfigprofile), padapterinstanceguid, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs index ed95bf3c3d..758165a1d5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs @@ -4,7 +4,7 @@ where P1: windows_core::Param, { windows_targets::link!("netsh.dll" "system" fn MatchEnumTag(hmodule : super::super::Foundation:: HANDLE, pwcarg : windows_core::PCWSTR, dwnumarg : u32, penumtable : *const TOKEN_VALUE, pdwvalue : *mut u32) -> u32); - MatchEnumTag(core::mem::transmute(hmodule), pwcarg.param().abi(), core::mem::transmute(dwnumarg), core::mem::transmute(penumtable), core::mem::transmute(pdwvalue)) + MatchEnumTag(hmodule, pwcarg.param().abi(), dwnumarg, penumtable, core::mem::transmute(pdwvalue)) } #[inline] pub unsafe fn MatchToken(pwszusertoken: P0, pwszcmdtoken: P1) -> super::super::Foundation::BOOL @@ -18,12 +18,12 @@ where #[inline] pub unsafe fn PreprocessCommand(hmodule: Option, ppwcarguments: &mut [windows_core::PWSTR], dwcurrentindex: u32, ptttags: Option<&mut [TAG_TYPE]>, dwminargs: u32, dwmaxargs: u32, pdwtagtype: Option<*mut u32>) -> u32 { windows_targets::link!("netsh.dll" "system" fn PreprocessCommand(hmodule : super::super::Foundation:: HANDLE, ppwcarguments : *mut windows_core::PWSTR, dwcurrentindex : u32, dwargcount : u32, ptttags : *mut TAG_TYPE, dwtagcount : u32, dwminargs : u32, dwmaxargs : u32, pdwtagtype : *mut u32) -> u32); - PreprocessCommand(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwcarguments.as_ptr()), core::mem::transmute(dwcurrentindex), ppwcarguments.len().try_into().unwrap(), core::mem::transmute(ptttags.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ptttags.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwminargs), core::mem::transmute(dwmaxargs), core::mem::transmute(pdwtagtype.unwrap_or(core::mem::zeroed()))) + PreprocessCommand(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwcarguments.as_ptr()), dwcurrentindex, ppwcarguments.len().try_into().unwrap(), core::mem::transmute(ptttags.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ptttags.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwminargs, dwmaxargs, core::mem::transmute(pdwtagtype.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PrintError(hmodule: super::super::Foundation::HANDLE, dwerrid: u32) -> u32 { windows_targets::link!("netsh.dll" "cdecl" fn PrintError(hmodule : super::super::Foundation:: HANDLE, dwerrid : u32) -> u32); - PrintError(core::mem::transmute(hmodule), core::mem::transmute(dwerrid)) + PrintError(hmodule, dwerrid) } #[inline] pub unsafe fn PrintMessage(pwszformat: P0) -> u32 @@ -36,17 +36,17 @@ where #[inline] pub unsafe fn PrintMessageFromModule(hmodule: super::super::Foundation::HANDLE, dwmsgid: u32) -> u32 { windows_targets::link!("netsh.dll" "cdecl" fn PrintMessageFromModule(hmodule : super::super::Foundation:: HANDLE, dwmsgid : u32) -> u32); - PrintMessageFromModule(core::mem::transmute(hmodule), core::mem::transmute(dwmsgid)) + PrintMessageFromModule(hmodule, dwmsgid) } #[inline] pub unsafe fn RegisterContext(pchildcontext: *const NS_CONTEXT_ATTRIBUTES) -> u32 { windows_targets::link!("netsh.dll" "system" fn RegisterContext(pchildcontext : *const NS_CONTEXT_ATTRIBUTES) -> u32); - RegisterContext(core::mem::transmute(pchildcontext)) + RegisterContext(pchildcontext) } #[inline] pub unsafe fn RegisterHelper(pguidparentcontext: *const windows_core::GUID, pfnregistersubcontext: *const NS_HELPER_ATTRIBUTES) -> u32 { windows_targets::link!("netsh.dll" "system" fn RegisterHelper(pguidparentcontext : *const windows_core::GUID, pfnregistersubcontext : *const NS_HELPER_ATTRIBUTES) -> u32); - RegisterHelper(core::mem::transmute(pguidparentcontext), core::mem::transmute(pfnregistersubcontext)) + RegisterHelper(pguidparentcontext, pfnregistersubcontext) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs index 6e8ac7982d..aa7ece07ad 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn NdfCancelIncident(handle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ndfapi.dll" "system" fn NdfCancelIncident(handle : *const core::ffi::c_void) -> windows_core::HRESULT); - NdfCancelIncident(core::mem::transmute(handle)).ok() + NdfCancelIncident(handle).ok() } #[inline] pub unsafe fn NdfCloseIncident(handle: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -19,7 +19,7 @@ where P0: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateDNSIncident(hostname : windows_core::PCWSTR, querytype : u16, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateDNSIncident(hostname.param().abi(), core::mem::transmute(querytype), core::mem::transmute(handle)).ok() + NdfCreateDNSIncident(hostname.param().abi(), querytype, core::mem::transmute(handle)).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -90,28 +90,28 @@ where P3: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateWinSockIncident(sock : super::super::Networking::WinSock:: SOCKET, host : windows_core::PCWSTR, port : u16, appid : windows_core::PCWSTR, userid : *const super::super::Security:: SID, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateWinSockIncident(core::mem::transmute(sock), host.param().abi(), core::mem::transmute(port), appid.param().abi(), core::mem::transmute(userid.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle)).ok() + NdfCreateWinSockIncident(sock, host.param().abi(), port, appid.param().abi(), core::mem::transmute(userid.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle)).ok() } #[inline] pub unsafe fn NdfDiagnoseIncident(handle: *const core::ffi::c_void, rootcausecount: *mut u32, rootcauses: *mut *mut RootCauseInfo, dwwait: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ndfapi.dll" "system" fn NdfDiagnoseIncident(handle : *const core::ffi::c_void, rootcausecount : *mut u32, rootcauses : *mut *mut RootCauseInfo, dwwait : u32, dwflags : u32) -> windows_core::HRESULT); - NdfDiagnoseIncident(core::mem::transmute(handle), core::mem::transmute(rootcausecount), core::mem::transmute(rootcauses), core::mem::transmute(dwwait), core::mem::transmute(dwflags)).ok() + NdfDiagnoseIncident(handle, core::mem::transmute(rootcausecount), core::mem::transmute(rootcauses), dwwait, dwflags).ok() } #[inline] pub unsafe fn NdfExecuteDiagnosis(handle: *const core::ffi::c_void, hwnd: Option) -> windows_core::Result<()> { windows_targets::link!("ndfapi.dll" "system" fn NdfExecuteDiagnosis(handle : *const core::ffi::c_void, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - NdfExecuteDiagnosis(core::mem::transmute(handle), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() + NdfExecuteDiagnosis(handle, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn NdfGetTraceFile(handle: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("ndfapi.dll" "system" fn NdfGetTraceFile(handle : *const core::ffi::c_void, tracefilelocation : *mut windows_core::PCWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - NdfGetTraceFile(core::mem::transmute(handle), &mut result__).map(|| core::mem::transmute(result__)) + NdfGetTraceFile(handle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn NdfRepairIncident(handle: *const core::ffi::c_void, repairex: *const RepairInfoEx, dwwait: u32) -> windows_core::Result<()> { windows_targets::link!("ndfapi.dll" "system" fn NdfRepairIncident(handle : *const core::ffi::c_void, repairex : *const RepairInfoEx, dwwait : u32) -> windows_core::HRESULT); - NdfRepairIncident(core::mem::transmute(handle), core::mem::transmute(repairex), core::mem::transmute(dwwait)).ok() + NdfRepairIncident(handle, repairex, dwwait).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -300,13 +300,13 @@ impl INetDiagHelper { (windows_core::Interface::vtable(self).GetUpStreamHypotheses)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelt), core::mem::transmute(pprghypotheses)).ok() } pub unsafe fn Repair(&self, pinfo: *const RepairInfo, pdeferredtime: *mut i32, pstatus: *mut REPAIR_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Repair)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(pdeferredtime), core::mem::transmute(pstatus)).ok() + (windows_core::Interface::vtable(self).Repair)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(pdeferredtime), core::mem::transmute(pstatus)).ok() } pub unsafe fn Validate(&self, problem: PROBLEM_TYPE, pdeferredtime: *mut i32, pstatus: *mut REPAIR_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), core::mem::transmute(problem), core::mem::transmute(pdeferredtime), core::mem::transmute(pstatus)).ok() + (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), problem, core::mem::transmute(pdeferredtime), core::mem::transmute(pstatus)).ok() } pub unsafe fn GetRepairInfo(&self, problem: PROBLEM_TYPE, pcelt: *mut u32, ppinfo: *mut *mut RepairInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRepairInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(problem), core::mem::transmute(pcelt), core::mem::transmute(ppinfo)).ok() + (windows_core::Interface::vtable(self).GetRepairInfo)(windows_core::Interface::as_raw(self), problem, core::mem::transmute(pcelt), core::mem::transmute(ppinfo)).ok() } pub unsafe fn GetLifeTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs index d0c46f79a0..279af85caa 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs @@ -220,19 +220,19 @@ windows_core::imp::interface_hierarchy!(ISdo, windows_core::IUnknown, super::sup impl ISdo { pub unsafe fn GetPropertyInfo(&self, id: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, id: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), id, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PutProperty(&self, id: i32, pvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), id, core::mem::transmute(pvalue)).ok() } pub unsafe fn ResetProperty(&self, id: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).ResetProperty)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn Apply(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Apply)(windows_core::Interface::as_raw(self)).ok() @@ -510,16 +510,16 @@ impl ISdoDictionaryOld { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAttributeInfo(&self, id: ATTRIBUTEID, pinfoids: *const super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(pinfoids), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAttributeInfo)(windows_core::Interface::as_raw(self), id, core::mem::transmute(pinfoids), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn EnumAttributeValues(&self, id: ATTRIBUTEID, pvalueids: *mut super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAttributeValues)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(pvalueids), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EnumAttributeValues)(windows_core::Interface::as_raw(self), id, core::mem::transmute(pvalueids), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateAttribute(&self, id: ATTRIBUTEID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAttribute)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeID(&self, bstrattributename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -643,11 +643,11 @@ impl ISdoMachine { } pub unsafe fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceSDO)(windows_core::Interface::as_raw(self), core::mem::transmute(edatastore), core::mem::transmute_copy(bstrservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceSDO)(windows_core::Interface::as_raw(self), edatastore, core::mem::transmute_copy(bstrservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserSDO)(windows_core::Interface::as_raw(self), core::mem::transmute(edatastore), core::mem::transmute_copy(bstrusername), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUserSDO)(windows_core::Interface::as_raw(self), edatastore, core::mem::transmute_copy(bstrusername), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOSType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -823,7 +823,7 @@ impl ISdoMachine2 { (windows_core::Interface::vtable(self).EnableTemplates)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SyncConfigAgainstTemplates(&self, bstrservicename: &windows_core::BSTR, ppconfigroot: *mut Option, pptemplatesroot: *mut Option, bforcedsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SyncConfigAgainstTemplates)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrservicename), core::mem::transmute(ppconfigroot), core::mem::transmute(pptemplatesroot), core::mem::transmute(bforcedsync)).ok() + (windows_core::Interface::vtable(self).SyncConfigAgainstTemplates)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrservicename), core::mem::transmute(ppconfigroot), core::mem::transmute(pptemplatesroot), bforcedsync).ok() } pub unsafe fn ImportRemoteTemplates(&self, plocaltemplatesroot: P0, bstrremotemachinename: &windows_core::BSTR) -> windows_core::Result<()> where @@ -1008,7 +1008,7 @@ impl ITemplateSdo { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToSdoAsProperty)(windows_core::Interface::as_raw(self), psdotarget.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).AddToSdoAsProperty)(windows_core::Interface::as_raw(self), psdotarget.param().abi(), id).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs index d052fe348c..c65c88d2ef 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn DrtClose(hdrt: *const core::ffi::c_void) { windows_targets::link!("drt.dll" "system" fn DrtClose(hdrt : *const core::ffi::c_void)); - DrtClose(core::mem::transmute(hdrt)) + DrtClose(hdrt) } #[inline] pub unsafe fn DrtContinueSearch(hsearchcontext: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtContinueSearch(hsearchcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DrtContinueSearch(core::mem::transmute(hsearchcontext)).ok() + DrtContinueSearch(hsearchcontext).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn DrtCreateDerivedKey(plocalcert: *const super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result { windows_targets::link!("drtprov.dll" "system" fn DrtCreateDerivedKey(plocalcert : *const super::super::Security::Cryptography:: CERT_CONTEXT, pkey : *mut DRT_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtCreateDerivedKey(core::mem::transmute(plocalcert), &mut result__).map(|| core::mem::transmute(result__)) + DrtCreateDerivedKey(plocalcert, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn DrtCreateDerivedKeySecurityProvider(prootcert: *const super::super::Security::Cryptography::CERT_CONTEXT, plocalcert: Option<*const super::super::Security::Cryptography::CERT_CONTEXT>) -> windows_core::Result<*mut DRT_SECURITY_PROVIDER> { windows_targets::link!("drtprov.dll" "system" fn DrtCreateDerivedKeySecurityProvider(prootcert : *const super::super::Security::Cryptography:: CERT_CONTEXT, plocalcert : *const super::super::Security::Cryptography:: CERT_CONTEXT, ppsecurityprovider : *mut *mut DRT_SECURITY_PROVIDER) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtCreateDerivedKeySecurityProvider(core::mem::transmute(prootcert), core::mem::transmute(plocalcert.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + DrtCreateDerivedKeySecurityProvider(prootcert, core::mem::transmute(plocalcert.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DrtCreateDnsBootstrapResolver(port: u16, pwszaddress: P1) -> windows_core::Result<*mut DRT_BOOTSTRAP_PROVIDER> @@ -29,12 +29,12 @@ where { windows_targets::link!("drtprov.dll" "system" fn DrtCreateDnsBootstrapResolver(port : u16, pwszaddress : windows_core::PCWSTR, ppmodule : *mut *mut DRT_BOOTSTRAP_PROVIDER) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtCreateDnsBootstrapResolver(core::mem::transmute(port), pwszaddress.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DrtCreateDnsBootstrapResolver(port, pwszaddress.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DrtCreateIpv6UdpTransport(scope: DRT_SCOPE, dwscopeid: u32, dwlocalitythreshold: u32, pwport: *mut u16, phtransport: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drttransport.dll" "system" fn DrtCreateIpv6UdpTransport(scope : DRT_SCOPE, dwscopeid : u32, dwlocalitythreshold : u32, pwport : *mut u16, phtransport : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DrtCreateIpv6UdpTransport(core::mem::transmute(scope), core::mem::transmute(dwscopeid), core::mem::transmute(dwlocalitythreshold), core::mem::transmute(pwport), core::mem::transmute(phtransport)).ok() + DrtCreateIpv6UdpTransport(scope, dwscopeid, dwlocalitythreshold, core::mem::transmute(pwport), core::mem::transmute(phtransport)).ok() } #[inline] pub unsafe fn DrtCreateNullSecurityProvider() -> windows_core::Result<*mut DRT_SECURITY_PROVIDER> { @@ -56,103 +56,103 @@ where #[inline] pub unsafe fn DrtDeleteDerivedKeySecurityProvider(psecurityprovider: *const DRT_SECURITY_PROVIDER) { windows_targets::link!("drtprov.dll" "system" fn DrtDeleteDerivedKeySecurityProvider(psecurityprovider : *const DRT_SECURITY_PROVIDER)); - DrtDeleteDerivedKeySecurityProvider(core::mem::transmute(psecurityprovider)) + DrtDeleteDerivedKeySecurityProvider(psecurityprovider) } #[inline] pub unsafe fn DrtDeleteDnsBootstrapResolver(presolver: *const DRT_BOOTSTRAP_PROVIDER) { windows_targets::link!("drtprov.dll" "system" fn DrtDeleteDnsBootstrapResolver(presolver : *const DRT_BOOTSTRAP_PROVIDER)); - DrtDeleteDnsBootstrapResolver(core::mem::transmute(presolver)) + DrtDeleteDnsBootstrapResolver(presolver) } #[inline] pub unsafe fn DrtDeleteIpv6UdpTransport(htransport: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drttransport.dll" "system" fn DrtDeleteIpv6UdpTransport(htransport : *const core::ffi::c_void) -> windows_core::HRESULT); - DrtDeleteIpv6UdpTransport(core::mem::transmute(htransport)).ok() + DrtDeleteIpv6UdpTransport(htransport).ok() } #[inline] pub unsafe fn DrtDeleteNullSecurityProvider(psecurityprovider: *const DRT_SECURITY_PROVIDER) { windows_targets::link!("drtprov.dll" "system" fn DrtDeleteNullSecurityProvider(psecurityprovider : *const DRT_SECURITY_PROVIDER)); - DrtDeleteNullSecurityProvider(core::mem::transmute(psecurityprovider)) + DrtDeleteNullSecurityProvider(psecurityprovider) } #[inline] pub unsafe fn DrtDeletePnrpBootstrapResolver(presolver: *const DRT_BOOTSTRAP_PROVIDER) { windows_targets::link!("drtprov.dll" "system" fn DrtDeletePnrpBootstrapResolver(presolver : *const DRT_BOOTSTRAP_PROVIDER)); - DrtDeletePnrpBootstrapResolver(core::mem::transmute(presolver)) + DrtDeletePnrpBootstrapResolver(presolver) } #[inline] pub unsafe fn DrtEndSearch(hsearchcontext: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtEndSearch(hsearchcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - DrtEndSearch(core::mem::transmute(hsearchcontext)).ok() + DrtEndSearch(hsearchcontext).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DrtGetEventData(hdrt: *const core::ffi::c_void, uleventdatalen: u32, peventdata: *mut DRT_EVENT_DATA) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtGetEventData(hdrt : *const core::ffi::c_void, uleventdatalen : u32, peventdata : *mut DRT_EVENT_DATA) -> windows_core::HRESULT); - DrtGetEventData(core::mem::transmute(hdrt), core::mem::transmute(uleventdatalen), core::mem::transmute(peventdata)).ok() + DrtGetEventData(hdrt, uleventdatalen, core::mem::transmute(peventdata)).ok() } #[inline] pub unsafe fn DrtGetEventDataSize(hdrt: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("drt.dll" "system" fn DrtGetEventDataSize(hdrt : *const core::ffi::c_void, puleventdatalen : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtGetEventDataSize(core::mem::transmute(hdrt), &mut result__).map(|| core::mem::transmute(result__)) + DrtGetEventDataSize(hdrt, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DrtGetInstanceName(hdrt: *const core::ffi::c_void, ulcbinstancenamesize: u32, pwzdrtinstancename: windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtGetInstanceName(hdrt : *const core::ffi::c_void, ulcbinstancenamesize : u32, pwzdrtinstancename : windows_core::PWSTR) -> windows_core::HRESULT); - DrtGetInstanceName(core::mem::transmute(hdrt), core::mem::transmute(ulcbinstancenamesize), core::mem::transmute(pwzdrtinstancename)).ok() + DrtGetInstanceName(hdrt, ulcbinstancenamesize, core::mem::transmute(pwzdrtinstancename)).ok() } #[inline] pub unsafe fn DrtGetInstanceNameSize(hdrt: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("drt.dll" "system" fn DrtGetInstanceNameSize(hdrt : *const core::ffi::c_void, pulcbinstancenamesize : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtGetInstanceNameSize(core::mem::transmute(hdrt), &mut result__).map(|| core::mem::transmute(result__)) + DrtGetInstanceNameSize(hdrt, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DrtGetSearchPath(hsearchcontext: *const core::ffi::c_void, ulsearchpathsize: u32, psearchpath: *mut DRT_ADDRESS_LIST) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtGetSearchPath(hsearchcontext : *const core::ffi::c_void, ulsearchpathsize : u32, psearchpath : *mut DRT_ADDRESS_LIST) -> windows_core::HRESULT); - DrtGetSearchPath(core::mem::transmute(hsearchcontext), core::mem::transmute(ulsearchpathsize), core::mem::transmute(psearchpath)).ok() + DrtGetSearchPath(hsearchcontext, ulsearchpathsize, core::mem::transmute(psearchpath)).ok() } #[inline] pub unsafe fn DrtGetSearchPathSize(hsearchcontext: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("drt.dll" "system" fn DrtGetSearchPathSize(hsearchcontext : *const core::ffi::c_void, pulsearchpathsize : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtGetSearchPathSize(core::mem::transmute(hsearchcontext), &mut result__).map(|| core::mem::transmute(result__)) + DrtGetSearchPathSize(hsearchcontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DrtGetSearchResult(hsearchcontext: *const core::ffi::c_void, ulsearchresultsize: u32, psearchresult: *mut DRT_SEARCH_RESULT) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtGetSearchResult(hsearchcontext : *const core::ffi::c_void, ulsearchresultsize : u32, psearchresult : *mut DRT_SEARCH_RESULT) -> windows_core::HRESULT); - DrtGetSearchResult(core::mem::transmute(hsearchcontext), core::mem::transmute(ulsearchresultsize), core::mem::transmute(psearchresult)).ok() + DrtGetSearchResult(hsearchcontext, ulsearchresultsize, core::mem::transmute(psearchresult)).ok() } #[inline] pub unsafe fn DrtGetSearchResultSize(hsearchcontext: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("drt.dll" "system" fn DrtGetSearchResultSize(hsearchcontext : *const core::ffi::c_void, pulsearchresultsize : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DrtGetSearchResultSize(core::mem::transmute(hsearchcontext), &mut result__).map(|| core::mem::transmute(result__)) + DrtGetSearchResultSize(hsearchcontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DrtOpen(psettings: *const DRT_SETTINGS, hevent: Option, pvcontext: Option<*const core::ffi::c_void>, phdrt: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtOpen(psettings : *const DRT_SETTINGS, hevent : super::super::Foundation:: HANDLE, pvcontext : *const core::ffi::c_void, phdrt : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DrtOpen(core::mem::transmute(psettings), core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phdrt)).ok() + DrtOpen(psettings, core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phdrt)).ok() } #[inline] pub unsafe fn DrtRegisterKey(hdrt: *const core::ffi::c_void, pregistration: *const DRT_REGISTRATION, pvkeycontext: Option<*const core::ffi::c_void>, phkeyregistration: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtRegisterKey(hdrt : *const core::ffi::c_void, pregistration : *const DRT_REGISTRATION, pvkeycontext : *const core::ffi::c_void, phkeyregistration : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DrtRegisterKey(core::mem::transmute(hdrt), core::mem::transmute(pregistration), core::mem::transmute(pvkeycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkeyregistration)).ok() + DrtRegisterKey(hdrt, pregistration, core::mem::transmute(pvkeycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkeyregistration)).ok() } #[inline] pub unsafe fn DrtStartSearch(hdrt: *const core::ffi::c_void, pkey: *const DRT_DATA, pinfo: Option<*const DRT_SEARCH_INFO>, timeout: u32, hevent: super::super::Foundation::HANDLE, pvcontext: Option<*const core::ffi::c_void>, hsearchcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtStartSearch(hdrt : *const core::ffi::c_void, pkey : *const DRT_DATA, pinfo : *const DRT_SEARCH_INFO, timeout : u32, hevent : super::super::Foundation:: HANDLE, pvcontext : *const core::ffi::c_void, hsearchcontext : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DrtStartSearch(core::mem::transmute(hdrt), core::mem::transmute(pkey), core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), core::mem::transmute(hevent), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(hsearchcontext)).ok() + DrtStartSearch(hdrt, pkey, core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), timeout, hevent, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(hsearchcontext)).ok() } #[inline] pub unsafe fn DrtUnregisterKey(hkeyregistration: *const core::ffi::c_void) { windows_targets::link!("drt.dll" "system" fn DrtUnregisterKey(hkeyregistration : *const core::ffi::c_void)); - DrtUnregisterKey(core::mem::transmute(hkeyregistration)) + DrtUnregisterKey(hkeyregistration) } #[inline] pub unsafe fn DrtUpdateKey(hkeyregistration: *const core::ffi::c_void, pappdata: *const DRT_DATA) -> windows_core::Result<()> { windows_targets::link!("drt.dll" "system" fn DrtUpdateKey(hkeyregistration : *const core::ffi::c_void, pappdata : *const DRT_DATA) -> windows_core::HRESULT); - DrtUpdateKey(core::mem::transmute(hkeyregistration), core::mem::transmute(pappdata)).ok() + DrtUpdateKey(hkeyregistration, pappdata).ok() } #[inline] pub unsafe fn PeerCollabAddContact(pwzcontactdata: P0, ppcontact: Option<*mut *mut PEER_CONTACT>) -> windows_core::Result<()> @@ -166,23 +166,23 @@ where #[inline] pub unsafe fn PeerCollabAsyncInviteContact(pccontact: Option<*const PEER_CONTACT>, pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, hevent: Option, phinvitation: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabAsyncInviteContact(pccontact : *const PEER_CONTACT, pcendpoint : *const PEER_ENDPOINT, pcinvitation : *const PEER_INVITATION, hevent : super::super::Foundation:: HANDLE, phinvitation : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - PeerCollabAsyncInviteContact(core::mem::transmute(pccontact.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcendpoint), core::mem::transmute(pcinvitation), core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(phinvitation.unwrap_or(core::mem::zeroed()))).ok() + PeerCollabAsyncInviteContact(core::mem::transmute(pccontact.unwrap_or(core::mem::zeroed())), pcendpoint, pcinvitation, core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(phinvitation.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerCollabAsyncInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, hevent: Option, phinvitation: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabAsyncInviteEndpoint(pcendpoint : *const PEER_ENDPOINT, pcinvitation : *const PEER_INVITATION, hevent : super::super::Foundation:: HANDLE, phinvitation : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - PeerCollabAsyncInviteEndpoint(core::mem::transmute(pcendpoint), core::mem::transmute(pcinvitation), core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(phinvitation.unwrap_or(core::mem::zeroed()))).ok() + PeerCollabAsyncInviteEndpoint(pcendpoint, pcinvitation, core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(phinvitation.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PeerCollabCancelInvitation(hinvitation: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabCancelInvitation(hinvitation : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - PeerCollabCancelInvitation(core::mem::transmute(hinvitation)).ok() + PeerCollabCancelInvitation(hinvitation).ok() } #[inline] pub unsafe fn PeerCollabCloseHandle(hinvitation: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabCloseHandle(hinvitation : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - PeerCollabCloseHandle(core::mem::transmute(hinvitation)).ok() + PeerCollabCloseHandle(hinvitation).ok() } #[inline] pub unsafe fn PeerCollabDeleteContact(pwzpeername: P0) -> windows_core::Result<()> @@ -196,17 +196,17 @@ where #[inline] pub unsafe fn PeerCollabDeleteEndpointData(pcendpoint: *const PEER_ENDPOINT) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabDeleteEndpointData(pcendpoint : *const PEER_ENDPOINT) -> windows_core::HRESULT); - PeerCollabDeleteEndpointData(core::mem::transmute(pcendpoint)).ok() + PeerCollabDeleteEndpointData(pcendpoint).ok() } #[inline] pub unsafe fn PeerCollabDeleteObject(pobjectid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabDeleteObject(pobjectid : *const windows_core::GUID) -> windows_core::HRESULT); - PeerCollabDeleteObject(core::mem::transmute(pobjectid)).ok() + PeerCollabDeleteObject(pobjectid).ok() } #[inline] pub unsafe fn PeerCollabEnumApplicationRegistrationInfo(registrationtype: PEER_APPLICATION_REGISTRATION_TYPE, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabEnumApplicationRegistrationInfo(registrationtype : PEER_APPLICATION_REGISTRATION_TYPE, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerCollabEnumApplicationRegistrationInfo(core::mem::transmute(registrationtype), core::mem::transmute(phpeerenum)).ok() + PeerCollabEnumApplicationRegistrationInfo(registrationtype, core::mem::transmute(phpeerenum)).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -255,7 +255,7 @@ pub unsafe fn PeerCollabGetAppLaunchInfo() -> windows_core::Result<*mut PEER_APP pub unsafe fn PeerCollabGetApplicationRegistrationInfo(papplicationid: *const windows_core::GUID, registrationtype: PEER_APPLICATION_REGISTRATION_TYPE) -> windows_core::Result<*mut PEER_APPLICATION_REGISTRATION_INFO> { windows_targets::link!("p2p.dll" "system" fn PeerCollabGetApplicationRegistrationInfo(papplicationid : *const windows_core::GUID, registrationtype : PEER_APPLICATION_REGISTRATION_TYPE, ppapplication : *mut *mut PEER_APPLICATION_REGISTRATION_INFO) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerCollabGetApplicationRegistrationInfo(core::mem::transmute(papplicationid), core::mem::transmute(registrationtype), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetApplicationRegistrationInfo(papplicationid, registrationtype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerCollabGetContact(pwzpeername: P0) -> windows_core::Result<*mut PEER_CONTACT> @@ -277,13 +277,13 @@ pub unsafe fn PeerCollabGetEndpointName() -> windows_core::Result windows_core::Result<*mut PEER_COLLAB_EVENT_DATA> { windows_targets::link!("p2p.dll" "system" fn PeerCollabGetEventData(hpeerevent : *const core::ffi::c_void, ppeventdata : *mut *mut PEER_COLLAB_EVENT_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerCollabGetEventData(core::mem::transmute(hpeerevent), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetEventData(hpeerevent, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerCollabGetInvitationResponse(hinvitation: super::super::Foundation::HANDLE) -> windows_core::Result<*mut PEER_INVITATION_RESPONSE> { windows_targets::link!("p2p.dll" "system" fn PeerCollabGetInvitationResponse(hinvitation : super::super::Foundation:: HANDLE, ppinvitationresponse : *mut *mut PEER_INVITATION_RESPONSE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerCollabGetInvitationResponse(core::mem::transmute(hinvitation), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetInvitationResponse(hinvitation, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -303,14 +303,14 @@ pub unsafe fn PeerCollabGetSigninOptions() -> windows_core::Result { pub unsafe fn PeerCollabInviteContact(pccontact: Option<*const PEER_CONTACT>, pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION) -> windows_core::Result<*mut PEER_INVITATION_RESPONSE> { windows_targets::link!("p2p.dll" "system" fn PeerCollabInviteContact(pccontact : *const PEER_CONTACT, pcendpoint : *const PEER_ENDPOINT, pcinvitation : *const PEER_INVITATION, ppresponse : *mut *mut PEER_INVITATION_RESPONSE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerCollabInviteContact(core::mem::transmute(pccontact.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcendpoint), core::mem::transmute(pcinvitation), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabInviteContact(core::mem::transmute(pccontact.unwrap_or(core::mem::zeroed())), pcendpoint, pcinvitation, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerCollabInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION) -> windows_core::Result<*mut PEER_INVITATION_RESPONSE> { windows_targets::link!("p2p.dll" "system" fn PeerCollabInviteEndpoint(pcendpoint : *const PEER_ENDPOINT, pcinvitation : *const PEER_INVITATION, ppresponse : *mut *mut PEER_INVITATION_RESPONSE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerCollabInviteEndpoint(core::mem::transmute(pcendpoint), core::mem::transmute(pcinvitation), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabInviteEndpoint(pcendpoint, pcinvitation, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerCollabParseContact(pwzcontactdata: P0) -> windows_core::Result<*mut PEER_CONTACT> @@ -332,17 +332,17 @@ pub unsafe fn PeerCollabQueryContactData(pcendpoint: Option<*const PEER_ENDPOINT #[inline] pub unsafe fn PeerCollabRefreshEndpointData(pcendpoint: *const PEER_ENDPOINT) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabRefreshEndpointData(pcendpoint : *const PEER_ENDPOINT) -> windows_core::HRESULT); - PeerCollabRefreshEndpointData(core::mem::transmute(pcendpoint)).ok() + PeerCollabRefreshEndpointData(pcendpoint).ok() } #[inline] pub unsafe fn PeerCollabRegisterApplication(pcapplication: *const PEER_APPLICATION_REGISTRATION_INFO, registrationtype: PEER_APPLICATION_REGISTRATION_TYPE) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabRegisterApplication(pcapplication : *const PEER_APPLICATION_REGISTRATION_INFO, registrationtype : PEER_APPLICATION_REGISTRATION_TYPE) -> windows_core::HRESULT); - PeerCollabRegisterApplication(core::mem::transmute(pcapplication), core::mem::transmute(registrationtype)).ok() + PeerCollabRegisterApplication(pcapplication, registrationtype).ok() } #[inline] pub unsafe fn PeerCollabRegisterEvent(hevent: super::super::Foundation::HANDLE, peventregistrations: &[PEER_COLLAB_EVENT_REGISTRATION], phpeerevent: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabRegisterEvent(hevent : super::super::Foundation:: HANDLE, ceventregistration : u32, peventregistrations : *const PEER_COLLAB_EVENT_REGISTRATION, phpeerevent : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerCollabRegisterEvent(core::mem::transmute(hevent), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), core::mem::transmute(phpeerevent)).ok() + PeerCollabRegisterEvent(hevent, peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), core::mem::transmute(phpeerevent)).ok() } #[inline] pub unsafe fn PeerCollabSetEndpointName(pwzendpointname: P0) -> windows_core::Result<()> @@ -355,12 +355,12 @@ where #[inline] pub unsafe fn PeerCollabSetObject(pcobject: *const PEER_OBJECT) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabSetObject(pcobject : *const PEER_OBJECT) -> windows_core::HRESULT); - PeerCollabSetObject(core::mem::transmute(pcobject)).ok() + PeerCollabSetObject(pcobject).ok() } #[inline] pub unsafe fn PeerCollabSetPresenceInfo(pcpresenceinfo: *const PEER_PRESENCE_INFO) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabSetPresenceInfo(pcpresenceinfo : *const PEER_PRESENCE_INFO) -> windows_core::HRESULT); - PeerCollabSetPresenceInfo(core::mem::transmute(pcpresenceinfo)).ok() + PeerCollabSetPresenceInfo(pcpresenceinfo).ok() } #[inline] pub unsafe fn PeerCollabShutdown() -> windows_core::Result<()> { @@ -370,44 +370,44 @@ pub unsafe fn PeerCollabShutdown() -> windows_core::Result<()> { #[inline] pub unsafe fn PeerCollabSignin(hwndparent: Option, dwsigninoptions: u32) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabSignin(hwndparent : super::super::Foundation:: HWND, dwsigninoptions : u32) -> windows_core::HRESULT); - PeerCollabSignin(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsigninoptions)).ok() + PeerCollabSignin(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), dwsigninoptions).ok() } #[inline] pub unsafe fn PeerCollabSignout(dwsigninoptions: u32) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabSignout(dwsigninoptions : u32) -> windows_core::HRESULT); - PeerCollabSignout(core::mem::transmute(dwsigninoptions)).ok() + PeerCollabSignout(dwsigninoptions).ok() } #[inline] pub unsafe fn PeerCollabStartup(wversionrequested: u16) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabStartup(wversionrequested : u16) -> windows_core::HRESULT); - PeerCollabStartup(core::mem::transmute(wversionrequested)).ok() + PeerCollabStartup(wversionrequested).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerCollabSubscribeEndpointData(pcendpoint: *const PEER_ENDPOINT) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabSubscribeEndpointData(pcendpoint : *const PEER_ENDPOINT) -> windows_core::HRESULT); - PeerCollabSubscribeEndpointData(core::mem::transmute(pcendpoint)).ok() + PeerCollabSubscribeEndpointData(pcendpoint).ok() } #[inline] pub unsafe fn PeerCollabUnregisterApplication(papplicationid: *const windows_core::GUID, registrationtype: PEER_APPLICATION_REGISTRATION_TYPE) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabUnregisterApplication(papplicationid : *const windows_core::GUID, registrationtype : PEER_APPLICATION_REGISTRATION_TYPE) -> windows_core::HRESULT); - PeerCollabUnregisterApplication(core::mem::transmute(papplicationid), core::mem::transmute(registrationtype)).ok() + PeerCollabUnregisterApplication(papplicationid, registrationtype).ok() } #[inline] pub unsafe fn PeerCollabUnregisterEvent(hpeerevent: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabUnregisterEvent(hpeerevent : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerCollabUnregisterEvent(core::mem::transmute(hpeerevent)).ok() + PeerCollabUnregisterEvent(hpeerevent).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerCollabUnsubscribeEndpointData(pcendpoint: *const PEER_ENDPOINT) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabUnsubscribeEndpointData(pcendpoint : *const PEER_ENDPOINT) -> windows_core::HRESULT); - PeerCollabUnsubscribeEndpointData(core::mem::transmute(pcendpoint)).ok() + PeerCollabUnsubscribeEndpointData(pcendpoint).ok() } #[inline] pub unsafe fn PeerCollabUpdateContact(pcontact: *const PEER_CONTACT) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerCollabUpdateContact(pcontact : *const PEER_CONTACT) -> windows_core::HRESULT); - PeerCollabUpdateContact(core::mem::transmute(pcontact)).ok() + PeerCollabUpdateContact(pcontact).ok() } #[inline] pub unsafe fn PeerCreatePeerName(pwzidentity: P0, pwzclassifier: P1) -> windows_core::Result @@ -423,160 +423,160 @@ where #[inline] pub unsafe fn PeerDistClientAddContentInformation(hpeerdist: isize, hcontenthandle: isize, pbuffer: &[u8], lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientAddContentInformation(hpeerdist : isize, hcontenthandle : isize, cbnumberofbytes : u32, pbuffer : *const u8, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientAddContentInformation(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(lpoverlapped)) + PeerDistClientAddContentInformation(hpeerdist, hcontenthandle, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistClientAddData(hpeerdist: isize, hcontenthandle: isize, pbuffer: &[u8], lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientAddData(hpeerdist : isize, hcontenthandle : isize, cbnumberofbytes : u32, pbuffer : *const u8, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientAddData(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(lpoverlapped)) + PeerDistClientAddData(hpeerdist, hcontenthandle, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistClientBlockRead(hpeerdist: isize, hcontenthandle: isize, pbuffer: Option<&mut [u8]>, dwtimeoutinmilliseconds: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientBlockRead(hpeerdist : isize, hcontenthandle : isize, cbmaxnumberofbytes : u32, pbuffer : *mut u8, dwtimeoutinmilliseconds : u32, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientBlockRead(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), pbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwtimeoutinmilliseconds), core::mem::transmute(lpoverlapped)) + PeerDistClientBlockRead(hpeerdist, hcontenthandle, pbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwtimeoutinmilliseconds, lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistClientCancelAsyncOperation(hpeerdist: isize, hcontenthandle: isize, poverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientCancelAsyncOperation(hpeerdist : isize, hcontenthandle : isize, poverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientCancelAsyncOperation(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) + PeerDistClientCancelAsyncOperation(hpeerdist, hcontenthandle, core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PeerDistClientCloseContent(hpeerdist: isize, hcontenthandle: isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientCloseContent(hpeerdist : isize, hcontenthandle : isize) -> u32); - PeerDistClientCloseContent(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle)) + PeerDistClientCloseContent(hpeerdist, hcontenthandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistClientCompleteContentInformation(hpeerdist: isize, hcontenthandle: isize, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientCompleteContentInformation(hpeerdist : isize, hcontenthandle : isize, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientCompleteContentInformation(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), core::mem::transmute(lpoverlapped)) + PeerDistClientCompleteContentInformation(hpeerdist, hcontenthandle, lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistClientFlushContent(hpeerdist: isize, pcontenttag: *const PEERDIST_CONTENT_TAG, hcompletionport: Option, ulcompletionkey: Option, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientFlushContent(hpeerdist : isize, pcontenttag : *const PEERDIST_CONTENT_TAG, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientFlushContent(core::mem::transmute(hpeerdist), core::mem::transmute(pcontenttag), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)) + PeerDistClientFlushContent(hpeerdist, pcontenttag, core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), lpoverlapped) } #[inline] pub unsafe fn PeerDistClientGetInformationByHandle(hpeerdist: isize, hcontenthandle: isize, peerdistclientinfoclass: PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS, dwbuffersize: u32, lpinformation: *mut core::ffi::c_void) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientGetInformationByHandle(hpeerdist : isize, hcontenthandle : isize, peerdistclientinfoclass : PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS, dwbuffersize : u32, lpinformation : *mut core::ffi::c_void) -> u32); - PeerDistClientGetInformationByHandle(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), core::mem::transmute(peerdistclientinfoclass), core::mem::transmute(dwbuffersize), core::mem::transmute(lpinformation)) + PeerDistClientGetInformationByHandle(hpeerdist, hcontenthandle, peerdistclientinfoclass, dwbuffersize, core::mem::transmute(lpinformation)) } #[inline] pub unsafe fn PeerDistClientOpenContent(hpeerdist: isize, pcontenttag: *const PEERDIST_CONTENT_TAG, hcompletionport: Option, ulcompletionkey: Option, phcontenthandle: *mut isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientOpenContent(hpeerdist : isize, pcontenttag : *const PEERDIST_CONTENT_TAG, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, phcontenthandle : *mut isize) -> u32); - PeerDistClientOpenContent(core::mem::transmute(hpeerdist), core::mem::transmute(pcontenttag), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontenthandle)) + PeerDistClientOpenContent(hpeerdist, pcontenttag, core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontenthandle)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistClientStreamRead(hpeerdist: isize, hcontenthandle: isize, pbuffer: Option<&mut [u8]>, dwtimeoutinmilliseconds: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistClientStreamRead(hpeerdist : isize, hcontenthandle : isize, cbmaxnumberofbytes : u32, pbuffer : *mut u8, dwtimeoutinmilliseconds : u32, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistClientStreamRead(core::mem::transmute(hpeerdist), core::mem::transmute(hcontenthandle), pbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwtimeoutinmilliseconds), core::mem::transmute(lpoverlapped)) + PeerDistClientStreamRead(hpeerdist, hcontenthandle, pbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwtimeoutinmilliseconds, lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistGetOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> super::super::Foundation::BOOL { windows_targets::link!("peerdist.dll" "system" fn PeerDistGetOverlappedResult(lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - PeerDistGetOverlappedResult(core::mem::transmute(lpoverlapped), core::mem::transmute(lpnumberofbytestransferred), bwait.into()) + PeerDistGetOverlappedResult(lpoverlapped, core::mem::transmute(lpnumberofbytestransferred), bwait.into()) } #[inline] pub unsafe fn PeerDistGetStatus(hpeerdist: isize, ppeerdiststatus: *mut PEERDIST_STATUS) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistGetStatus(hpeerdist : isize, ppeerdiststatus : *mut PEERDIST_STATUS) -> u32); - PeerDistGetStatus(core::mem::transmute(hpeerdist), core::mem::transmute(ppeerdiststatus)) + PeerDistGetStatus(hpeerdist, core::mem::transmute(ppeerdiststatus)) } #[inline] pub unsafe fn PeerDistGetStatusEx(hpeerdist: isize, ppeerdiststatus: *mut PEERDIST_STATUS_INFO) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistGetStatusEx(hpeerdist : isize, ppeerdiststatus : *mut PEERDIST_STATUS_INFO) -> u32); - PeerDistGetStatusEx(core::mem::transmute(hpeerdist), core::mem::transmute(ppeerdiststatus)) + PeerDistGetStatusEx(hpeerdist, core::mem::transmute(ppeerdiststatus)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistRegisterForStatusChangeNotification(hpeerdist: isize, hcompletionport: Option, ulcompletionkey: Option, lpoverlapped: *const super::super::System::IO::OVERLAPPED, ppeerdiststatus: *mut PEERDIST_STATUS) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistRegisterForStatusChangeNotification(hpeerdist : isize, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, ppeerdiststatus : *mut PEERDIST_STATUS) -> u32); - PeerDistRegisterForStatusChangeNotification(core::mem::transmute(hpeerdist), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped), core::mem::transmute(ppeerdiststatus)) + PeerDistRegisterForStatusChangeNotification(hpeerdist, core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), lpoverlapped, core::mem::transmute(ppeerdiststatus)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistRegisterForStatusChangeNotificationEx(hpeerdist: isize, hcompletionport: Option, ulcompletionkey: Option, lpoverlapped: *const super::super::System::IO::OVERLAPPED, ppeerdiststatus: *mut PEERDIST_STATUS_INFO) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistRegisterForStatusChangeNotificationEx(hpeerdist : isize, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, ppeerdiststatus : *mut PEERDIST_STATUS_INFO) -> u32); - PeerDistRegisterForStatusChangeNotificationEx(core::mem::transmute(hpeerdist), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped), core::mem::transmute(ppeerdiststatus)) + PeerDistRegisterForStatusChangeNotificationEx(hpeerdist, core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), lpoverlapped, core::mem::transmute(ppeerdiststatus)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistServerCancelAsyncOperation(hpeerdist: isize, pcontentidentifier: &[u8], poverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerCancelAsyncOperation(hpeerdist : isize, cbcontentidentifier : u32, pcontentidentifier : *const u8, poverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistServerCancelAsyncOperation(core::mem::transmute(hpeerdist), pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), core::mem::transmute(poverlapped)) + PeerDistServerCancelAsyncOperation(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), poverlapped) } #[inline] pub unsafe fn PeerDistServerCloseContentInformation(hpeerdist: isize, hcontentinfo: isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerCloseContentInformation(hpeerdist : isize, hcontentinfo : isize) -> u32); - PeerDistServerCloseContentInformation(core::mem::transmute(hpeerdist), core::mem::transmute(hcontentinfo)) + PeerDistServerCloseContentInformation(hpeerdist, hcontentinfo) } #[inline] pub unsafe fn PeerDistServerCloseStreamHandle(hpeerdist: isize, hstream: isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerCloseStreamHandle(hpeerdist : isize, hstream : isize) -> u32); - PeerDistServerCloseStreamHandle(core::mem::transmute(hpeerdist), core::mem::transmute(hstream)) + PeerDistServerCloseStreamHandle(hpeerdist, hstream) } #[inline] pub unsafe fn PeerDistServerOpenContentInformation(hpeerdist: isize, pcontentidentifier: &[u8], ullcontentoffset: u64, cbcontentlength: u64, hcompletionport: Option, ulcompletionkey: Option, phcontentinfo: *mut isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerOpenContentInformation(hpeerdist : isize, cbcontentidentifier : u32, pcontentidentifier : *const u8, ullcontentoffset : u64, cbcontentlength : u64, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, phcontentinfo : *mut isize) -> u32); - PeerDistServerOpenContentInformation(core::mem::transmute(hpeerdist), pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), core::mem::transmute(ullcontentoffset), core::mem::transmute(cbcontentlength), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontentinfo)) + PeerDistServerOpenContentInformation(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), ullcontentoffset, cbcontentlength, core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontentinfo)) } #[inline] pub unsafe fn PeerDistServerOpenContentInformationEx(hpeerdist: isize, pcontentidentifier: &[u8], ullcontentoffset: u64, cbcontentlength: u64, pretrievaloptions: *const PEERDIST_RETRIEVAL_OPTIONS, hcompletionport: Option, ulcompletionkey: Option, phcontentinfo: *mut isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerOpenContentInformationEx(hpeerdist : isize, cbcontentidentifier : u32, pcontentidentifier : *const u8, ullcontentoffset : u64, cbcontentlength : u64, pretrievaloptions : *const PEERDIST_RETRIEVAL_OPTIONS, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, phcontentinfo : *mut isize) -> u32); - PeerDistServerOpenContentInformationEx(core::mem::transmute(hpeerdist), pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), core::mem::transmute(ullcontentoffset), core::mem::transmute(cbcontentlength), core::mem::transmute(pretrievaloptions), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontentinfo)) + PeerDistServerOpenContentInformationEx(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), ullcontentoffset, cbcontentlength, pretrievaloptions, core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontentinfo)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistServerPublishAddToStream(hpeerdist: isize, hstream: isize, pbuffer: &[u8], lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerPublishAddToStream(hpeerdist : isize, hstream : isize, cbnumberofbytes : u32, pbuffer : *const u8, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistServerPublishAddToStream(core::mem::transmute(hpeerdist), core::mem::transmute(hstream), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(lpoverlapped)) + PeerDistServerPublishAddToStream(hpeerdist, hstream, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistServerPublishCompleteStream(hpeerdist: isize, hstream: isize, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerPublishCompleteStream(hpeerdist : isize, hstream : isize, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistServerPublishCompleteStream(core::mem::transmute(hpeerdist), core::mem::transmute(hstream), core::mem::transmute(lpoverlapped)) + PeerDistServerPublishCompleteStream(hpeerdist, hstream, lpoverlapped) } #[inline] pub unsafe fn PeerDistServerPublishStream(hpeerdist: isize, pcontentidentifier: &[u8], cbcontentlength: u64, ppublishoptions: Option<*const PEERDIST_PUBLICATION_OPTIONS>, hcompletionport: Option, ulcompletionkey: Option, phstream: *mut isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerPublishStream(hpeerdist : isize, cbcontentidentifier : u32, pcontentidentifier : *const u8, cbcontentlength : u64, ppublishoptions : *const PEERDIST_PUBLICATION_OPTIONS, hcompletionport : super::super::Foundation:: HANDLE, ulcompletionkey : usize, phstream : *mut isize) -> u32); - PeerDistServerPublishStream(core::mem::transmute(hpeerdist), pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), core::mem::transmute(cbcontentlength), core::mem::transmute(ppublishoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phstream)) + PeerDistServerPublishStream(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), cbcontentlength, core::mem::transmute(ppublishoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(hcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcompletionkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phstream)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistServerRetrieveContentInformation(hpeerdist: isize, hcontentinfo: isize, pbuffer: &mut [u8], lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerRetrieveContentInformation(hpeerdist : isize, hcontentinfo : isize, cbmaxnumberofbytes : u32, pbuffer : *mut u8, lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - PeerDistServerRetrieveContentInformation(core::mem::transmute(hpeerdist), core::mem::transmute(hcontentinfo), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(lpoverlapped)) + PeerDistServerRetrieveContentInformation(hpeerdist, hcontentinfo, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), lpoverlapped) } #[inline] pub unsafe fn PeerDistServerUnpublish(hpeerdist: isize, pcontentidentifier: &[u8]) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistServerUnpublish(hpeerdist : isize, cbcontentidentifier : u32, pcontentidentifier : *const u8) -> u32); - PeerDistServerUnpublish(core::mem::transmute(hpeerdist), pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr())) + PeerDistServerUnpublish(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr())) } #[inline] pub unsafe fn PeerDistShutdown(hpeerdist: isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistShutdown(hpeerdist : isize) -> u32); - PeerDistShutdown(core::mem::transmute(hpeerdist)) + PeerDistShutdown(hpeerdist) } #[inline] pub unsafe fn PeerDistStartup(dwversionrequested: u32, phpeerdist: *mut isize, pdwsupportedversion: Option<*mut u32>) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistStartup(dwversionrequested : u32, phpeerdist : *mut isize, pdwsupportedversion : *mut u32) -> u32); - PeerDistStartup(core::mem::transmute(dwversionrequested), core::mem::transmute(phpeerdist), core::mem::transmute(pdwsupportedversion.unwrap_or(core::mem::zeroed()))) + PeerDistStartup(dwversionrequested, core::mem::transmute(phpeerdist), core::mem::transmute(pdwsupportedversion.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PeerDistUnregisterForStatusChangeNotification(hpeerdist: isize) -> u32 { windows_targets::link!("peerdist.dll" "system" fn PeerDistUnregisterForStatusChangeNotification(hpeerdist : isize) -> u32); - PeerDistUnregisterForStatusChangeNotification(core::mem::transmute(hpeerdist)) + PeerDistUnregisterForStatusChangeNotification(hpeerdist) } #[inline] pub unsafe fn PeerEndEnumeration(hpeerenum: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerEndEnumeration(hpeerenum : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerEndEnumeration(core::mem::transmute(hpeerenum)).ok() + PeerEndEnumeration(hpeerenum).ok() } #[inline] pub unsafe fn PeerEnumGroups(pwzidentity: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -600,28 +600,28 @@ pub unsafe fn PeerFreeData(pvdata: Option<*const core::ffi::c_void>) { pub unsafe fn PeerGetItemCount(hpeerenum: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGetItemCount(hpeerenum : *const core::ffi::c_void, pcount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGetItemCount(core::mem::transmute(hpeerenum), &mut result__).map(|| core::mem::transmute(result__)) + PeerGetItemCount(hpeerenum, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGetNextItem(hpeerenum: *const core::ffi::c_void, pcount: *mut u32, pppvitems: *mut *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGetNextItem(hpeerenum : *const core::ffi::c_void, pcount : *mut u32, pppvitems : *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGetNextItem(core::mem::transmute(hpeerenum), core::mem::transmute(pcount), core::mem::transmute(pppvitems)).ok() + PeerGetNextItem(hpeerenum, core::mem::transmute(pcount), core::mem::transmute(pppvitems)).ok() } #[inline] pub unsafe fn PeerGraphAddRecord(hgraph: *const core::ffi::c_void, precord: *const PEER_RECORD) -> windows_core::Result { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphAddRecord(hgraph : *const core::ffi::c_void, precord : *const PEER_RECORD, precordid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphAddRecord(core::mem::transmute(hgraph), core::mem::transmute(precord), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphAddRecord(hgraph, precord, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphClose(hgraph: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphClose(hgraph : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphClose(core::mem::transmute(hgraph)).ok() + PeerGraphClose(hgraph).ok() } #[inline] pub unsafe fn PeerGraphCloseDirectConnection(hgraph: *const core::ffi::c_void, ullconnectionid: u64) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphCloseDirectConnection(hgraph : *const core::ffi::c_void, ullconnectionid : u64) -> windows_core::HRESULT); - PeerGraphCloseDirectConnection(core::mem::transmute(hgraph), core::mem::transmute(ullconnectionid)).ok() + PeerGraphCloseDirectConnection(hgraph, ullconnectionid).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -631,7 +631,7 @@ where { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphConnect(hgraph : *const core::ffi::c_void, pwzpeerid : windows_core::PCWSTR, paddress : *const PEER_ADDRESS, pullconnectionid : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphConnect(core::mem::transmute(hgraph), pwzpeerid.param().abi(), core::mem::transmute(paddress), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphConnect(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphCreate(pgraphproperties: *const PEER_GRAPH_PROPERTIES, pwzdatabasename: P1, psecurityinterface: Option<*const PEER_SECURITY_INTERFACE>, phgraph: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -639,7 +639,7 @@ where P1: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphCreate(pgraphproperties : *const PEER_GRAPH_PROPERTIES, pwzdatabasename : windows_core::PCWSTR, psecurityinterface : *const PEER_SECURITY_INTERFACE, phgraph : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphCreate(core::mem::transmute(pgraphproperties), pwzdatabasename.param().abi(), core::mem::transmute(psecurityinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(phgraph)).ok() + PeerGraphCreate(pgraphproperties, pwzdatabasename.param().abi(), core::mem::transmute(psecurityinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(phgraph)).ok() } #[inline] pub unsafe fn PeerGraphDelete(pwzgraphid: P0, pwzpeerid: P1, pwzdatabasename: P2) -> windows_core::Result<()> @@ -654,17 +654,17 @@ where #[inline] pub unsafe fn PeerGraphDeleteRecord(hgraph: *const core::ffi::c_void, precordid: *const windows_core::GUID, flocal: bool) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphDeleteRecord(hgraph : *const core::ffi::c_void, precordid : *const windows_core::GUID, flocal : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - PeerGraphDeleteRecord(core::mem::transmute(hgraph), core::mem::transmute(precordid), flocal.into()).ok() + PeerGraphDeleteRecord(hgraph, precordid, flocal.into()).ok() } #[inline] pub unsafe fn PeerGraphEndEnumeration(hpeerenum: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphEndEnumeration(hpeerenum : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphEndEnumeration(core::mem::transmute(hpeerenum)).ok() + PeerGraphEndEnumeration(hpeerenum).ok() } #[inline] pub unsafe fn PeerGraphEnumConnections(hgraph: *const core::ffi::c_void, dwflags: u32, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphEnumConnections(hgraph : *const core::ffi::c_void, dwflags : u32, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphEnumConnections(core::mem::transmute(hgraph), core::mem::transmute(dwflags), core::mem::transmute(phpeerenum)).ok() + PeerGraphEnumConnections(hgraph, dwflags, core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGraphEnumNodes(hgraph: *const core::ffi::c_void, pwzpeerid: P1, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -672,7 +672,7 @@ where P1: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphEnumNodes(hgraph : *const core::ffi::c_void, pwzpeerid : windows_core::PCWSTR, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphEnumNodes(core::mem::transmute(hgraph), pwzpeerid.param().abi(), core::mem::transmute(phpeerenum)).ok() + PeerGraphEnumNodes(hgraph, pwzpeerid.param().abi(), core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGraphEnumRecords(hgraph: *const core::ffi::c_void, precordtype: Option<*const windows_core::GUID>, pwzpeerid: P2, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -680,7 +680,7 @@ where P2: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphEnumRecords(hgraph : *const core::ffi::c_void, precordtype : *const windows_core::GUID, pwzpeerid : windows_core::PCWSTR, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphEnumRecords(core::mem::transmute(hgraph), core::mem::transmute(precordtype.unwrap_or(core::mem::zeroed())), pwzpeerid.param().abi(), core::mem::transmute(phpeerenum)).ok() + PeerGraphEnumRecords(hgraph, core::mem::transmute(precordtype.unwrap_or(core::mem::zeroed())), pwzpeerid.param().abi(), core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGraphExportDatabase(hgraph: *const core::ffi::c_void, pwzfilepath: P1) -> windows_core::Result<()> @@ -688,54 +688,54 @@ where P1: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphExportDatabase(hgraph : *const core::ffi::c_void, pwzfilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGraphExportDatabase(core::mem::transmute(hgraph), pwzfilepath.param().abi()).ok() + PeerGraphExportDatabase(hgraph, pwzfilepath.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphFreeData(pvdata: *const core::ffi::c_void) { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphFreeData(pvdata : *const core::ffi::c_void)); - PeerGraphFreeData(core::mem::transmute(pvdata)) + PeerGraphFreeData(pvdata) } #[inline] pub unsafe fn PeerGraphGetEventData(hpeerevent: *const core::ffi::c_void) -> windows_core::Result<*mut PEER_GRAPH_EVENT_DATA> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetEventData(hpeerevent : *const core::ffi::c_void, ppeventdata : *mut *mut PEER_GRAPH_EVENT_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphGetEventData(core::mem::transmute(hpeerevent), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetEventData(hpeerevent, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphGetItemCount(hpeerenum: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetItemCount(hpeerenum : *const core::ffi::c_void, pcount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphGetItemCount(core::mem::transmute(hpeerenum), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetItemCount(hpeerenum, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphGetNextItem(hpeerenum: *const core::ffi::c_void, pcount: *mut u32, pppvitems: *mut *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetNextItem(hpeerenum : *const core::ffi::c_void, pcount : *mut u32, pppvitems : *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphGetNextItem(core::mem::transmute(hpeerenum), core::mem::transmute(pcount), core::mem::transmute(pppvitems)).ok() + PeerGraphGetNextItem(hpeerenum, core::mem::transmute(pcount), core::mem::transmute(pppvitems)).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerGraphGetNodeInfo(hgraph: *const core::ffi::c_void, ullnodeid: u64) -> windows_core::Result<*mut PEER_NODE_INFO> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetNodeInfo(hgraph : *const core::ffi::c_void, ullnodeid : u64, ppnodeinfo : *mut *mut PEER_NODE_INFO) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphGetNodeInfo(core::mem::transmute(hgraph), core::mem::transmute(ullnodeid), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetNodeInfo(hgraph, ullnodeid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphGetProperties(hgraph: *const core::ffi::c_void) -> windows_core::Result<*mut PEER_GRAPH_PROPERTIES> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetProperties(hgraph : *const core::ffi::c_void, ppgraphproperties : *mut *mut PEER_GRAPH_PROPERTIES) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphGetProperties(core::mem::transmute(hgraph), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetProperties(hgraph, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphGetRecord(hgraph: *const core::ffi::c_void, precordid: *const windows_core::GUID) -> windows_core::Result<*mut PEER_RECORD> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetRecord(hgraph : *const core::ffi::c_void, precordid : *const windows_core::GUID, pprecord : *mut *mut PEER_RECORD) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphGetRecord(core::mem::transmute(hgraph), core::mem::transmute(precordid), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetRecord(hgraph, precordid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphGetStatus(hgraph: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphGetStatus(hgraph : *const core::ffi::c_void, pdwstatus : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphGetStatus(core::mem::transmute(hgraph), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetStatus(hgraph, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphImportDatabase(hgraph: *const core::ffi::c_void, pwzfilepath: P1) -> windows_core::Result<()> @@ -743,12 +743,12 @@ where P1: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphImportDatabase(hgraph : *const core::ffi::c_void, pwzfilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGraphImportDatabase(core::mem::transmute(hgraph), pwzfilepath.param().abi()).ok() + PeerGraphImportDatabase(hgraph, pwzfilepath.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphListen(hgraph: *const core::ffi::c_void, dwscope: Option, dwscopeid: Option, wport: Option) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphListen(hgraph : *const core::ffi::c_void, dwscope : u32, dwscopeid : u32, wport : u16) -> windows_core::HRESULT); - PeerGraphListen(core::mem::transmute(hgraph), core::mem::transmute(dwscope.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwscopeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(wport.unwrap_or(core::mem::zeroed()))).ok() + PeerGraphListen(hgraph, core::mem::transmute(dwscope.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwscopeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(wport.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PeerGraphOpen(pwzgraphid: P0, pwzpeerid: P1, pwzdatabasename: P2, psecurityinterface: Option<*const PEER_SECURITY_INTERFACE>, precordtypesyncprecedence: Option<&[windows_core::GUID]>, phgraph: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -768,18 +768,18 @@ where { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphOpenDirectConnection(hgraph : *const core::ffi::c_void, pwzpeerid : windows_core::PCWSTR, paddress : *const PEER_ADDRESS, pullconnectionid : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphOpenDirectConnection(core::mem::transmute(hgraph), pwzpeerid.param().abi(), core::mem::transmute(paddress), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphOpenDirectConnection(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphPeerTimeToUniversalTime(hgraph: *const core::ffi::c_void, pftpeertime: *const super::super::Foundation::FILETIME) -> windows_core::Result { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphPeerTimeToUniversalTime(hgraph : *const core::ffi::c_void, pftpeertime : *const super::super::Foundation:: FILETIME, pftuniversaltime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphPeerTimeToUniversalTime(core::mem::transmute(hgraph), core::mem::transmute(pftpeertime), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphPeerTimeToUniversalTime(hgraph, pftpeertime, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphRegisterEvent(hgraph: *const core::ffi::c_void, hevent: super::super::Foundation::HANDLE, peventregistrations: &[PEER_GRAPH_EVENT_REGISTRATION], phpeerevent: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphRegisterEvent(hgraph : *const core::ffi::c_void, hevent : super::super::Foundation:: HANDLE, ceventregistrations : u32, peventregistrations : *const PEER_GRAPH_EVENT_REGISTRATION, phpeerevent : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphRegisterEvent(core::mem::transmute(hgraph), core::mem::transmute(hevent), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), core::mem::transmute(phpeerevent)).ok() + PeerGraphRegisterEvent(hgraph, hevent, peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), core::mem::transmute(phpeerevent)).ok() } #[inline] pub unsafe fn PeerGraphSearchRecords(hgraph: *const core::ffi::c_void, pwzcriteria: P1, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -787,12 +787,12 @@ where P1: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSearchRecords(hgraph : *const core::ffi::c_void, pwzcriteria : windows_core::PCWSTR, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphSearchRecords(core::mem::transmute(hgraph), pwzcriteria.param().abi(), core::mem::transmute(phpeerenum)).ok() + PeerGraphSearchRecords(hgraph, pwzcriteria.param().abi(), core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGraphSendData(hgraph: *const core::ffi::c_void, ullconnectionid: u64, ptype: *const windows_core::GUID, cbdata: u32, pvdata: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSendData(hgraph : *const core::ffi::c_void, ullconnectionid : u64, ptype : *const windows_core::GUID, cbdata : u32, pvdata : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphSendData(core::mem::transmute(hgraph), core::mem::transmute(ullconnectionid), core::mem::transmute(ptype), core::mem::transmute(cbdata), core::mem::transmute(pvdata)).ok() + PeerGraphSendData(hgraph, ullconnectionid, ptype, cbdata, pvdata).ok() } #[inline] pub unsafe fn PeerGraphSetNodeAttributes(hgraph: *const core::ffi::c_void, pwzattributes: P1) -> windows_core::Result<()> @@ -800,17 +800,17 @@ where P1: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSetNodeAttributes(hgraph : *const core::ffi::c_void, pwzattributes : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGraphSetNodeAttributes(core::mem::transmute(hgraph), pwzattributes.param().abi()).ok() + PeerGraphSetNodeAttributes(hgraph, pwzattributes.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphSetPresence(hgraph: *const core::ffi::c_void, fpresent: bool) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSetPresence(hgraph : *const core::ffi::c_void, fpresent : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - PeerGraphSetPresence(core::mem::transmute(hgraph), fpresent.into()).ok() + PeerGraphSetPresence(hgraph, fpresent.into()).ok() } #[inline] pub unsafe fn PeerGraphSetProperties(hgraph: *const core::ffi::c_void, pgraphproperties: *const PEER_GRAPH_PROPERTIES) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSetProperties(hgraph : *const core::ffi::c_void, pgraphproperties : *const PEER_GRAPH_PROPERTIES) -> windows_core::HRESULT); - PeerGraphSetProperties(core::mem::transmute(hgraph), core::mem::transmute(pgraphproperties)).ok() + PeerGraphSetProperties(hgraph, pgraphproperties).ok() } #[inline] pub unsafe fn PeerGraphShutdown() -> windows_core::Result<()> { @@ -821,60 +821,60 @@ pub unsafe fn PeerGraphShutdown() -> windows_core::Result<()> { pub unsafe fn PeerGraphStartup(wversionrequested: u16) -> windows_core::Result { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphStartup(wversionrequested : u16, pversiondata : *mut PEER_VERSION_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphStartup(core::mem::transmute(wversionrequested), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphStartup(wversionrequested, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphUniversalTimeToPeerTime(hgraph: *const core::ffi::c_void, pftuniversaltime: *const super::super::Foundation::FILETIME) -> windows_core::Result { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphUniversalTimeToPeerTime(hgraph : *const core::ffi::c_void, pftuniversaltime : *const super::super::Foundation:: FILETIME, pftpeertime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGraphUniversalTimeToPeerTime(core::mem::transmute(hgraph), core::mem::transmute(pftuniversaltime), &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphUniversalTimeToPeerTime(hgraph, pftuniversaltime, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGraphUnregisterEvent(hpeerevent: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphUnregisterEvent(hpeerevent : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphUnregisterEvent(core::mem::transmute(hpeerevent)).ok() + PeerGraphUnregisterEvent(hpeerevent).ok() } #[inline] pub unsafe fn PeerGraphUpdateRecord(hgraph: *const core::ffi::c_void, precord: *const PEER_RECORD) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphUpdateRecord(hgraph : *const core::ffi::c_void, precord : *const PEER_RECORD) -> windows_core::HRESULT); - PeerGraphUpdateRecord(core::mem::transmute(hgraph), core::mem::transmute(precord)).ok() + PeerGraphUpdateRecord(hgraph, precord).ok() } #[inline] pub unsafe fn PeerGraphValidateDeferredRecords(hgraph: *const core::ffi::c_void, precordids: &[windows_core::GUID]) -> windows_core::Result<()> { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphValidateDeferredRecords(hgraph : *const core::ffi::c_void, crecordids : u32, precordids : *const windows_core::GUID) -> windows_core::HRESULT); - PeerGraphValidateDeferredRecords(core::mem::transmute(hgraph), precordids.len().try_into().unwrap(), core::mem::transmute(precordids.as_ptr())).ok() + PeerGraphValidateDeferredRecords(hgraph, precordids.len().try_into().unwrap(), core::mem::transmute(precordids.as_ptr())).ok() } #[inline] pub unsafe fn PeerGroupAddRecord(hgroup: *const core::ffi::c_void, precord: *const PEER_RECORD) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGroupAddRecord(hgroup : *const core::ffi::c_void, precord : *const PEER_RECORD, precordid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupAddRecord(core::mem::transmute(hgroup), core::mem::transmute(precord), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupAddRecord(hgroup, precord, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupClose(hgroup: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupClose(hgroup : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupClose(core::mem::transmute(hgroup)).ok() + PeerGroupClose(hgroup).ok() } #[inline] pub unsafe fn PeerGroupCloseDirectConnection(hgroup: *const core::ffi::c_void, ullconnectionid: u64) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupCloseDirectConnection(hgroup : *const core::ffi::c_void, ullconnectionid : u64) -> windows_core::HRESULT); - PeerGroupCloseDirectConnection(core::mem::transmute(hgroup), core::mem::transmute(ullconnectionid)).ok() + PeerGroupCloseDirectConnection(hgroup, ullconnectionid).ok() } #[inline] pub unsafe fn PeerGroupConnect(hgroup: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupConnect(hgroup : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupConnect(core::mem::transmute(hgroup)).ok() + PeerGroupConnect(hgroup).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerGroupConnectByAddress(hgroup: *const core::ffi::c_void, paddresses: &[PEER_ADDRESS]) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupConnectByAddress(hgroup : *const core::ffi::c_void, caddresses : u32, paddresses : *const PEER_ADDRESS) -> windows_core::HRESULT); - PeerGroupConnectByAddress(core::mem::transmute(hgroup), paddresses.len().try_into().unwrap(), core::mem::transmute(paddresses.as_ptr())).ok() + PeerGroupConnectByAddress(hgroup, paddresses.len().try_into().unwrap(), core::mem::transmute(paddresses.as_ptr())).ok() } #[inline] pub unsafe fn PeerGroupCreate(pproperties: *const PEER_GROUP_PROPERTIES, phgroup: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupCreate(pproperties : *const PEER_GROUP_PROPERTIES, phgroup : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupCreate(core::mem::transmute(pproperties), core::mem::transmute(phgroup)).ok() + PeerGroupCreate(pproperties, core::mem::transmute(phgroup)).ok() } #[inline] pub unsafe fn PeerGroupCreateInvitation(hgroup: *const core::ffi::c_void, pwzidentityinfo: P1, pftexpiration: Option<*const super::super::Foundation::FILETIME>, proles: Option<&[windows_core::GUID]>) -> windows_core::Result @@ -883,13 +883,13 @@ where { windows_targets::link!("p2p.dll" "system" fn PeerGroupCreateInvitation(hgroup : *const core::ffi::c_void, pwzidentityinfo : windows_core::PCWSTR, pftexpiration : *const super::super::Foundation:: FILETIME, croles : u32, proles : *const windows_core::GUID, ppwzinvitation : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupCreateInvitation(core::mem::transmute(hgroup), pwzidentityinfo.param().abi(), core::mem::transmute(pftexpiration.unwrap_or(core::mem::zeroed())), proles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(proles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupCreateInvitation(hgroup, pwzidentityinfo.param().abi(), core::mem::transmute(pftexpiration.unwrap_or(core::mem::zeroed())), proles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(proles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupCreatePasswordInvitation(hgroup: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGroupCreatePasswordInvitation(hgroup : *const core::ffi::c_void, ppwzinvitation : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupCreatePasswordInvitation(core::mem::transmute(hgroup), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupCreatePasswordInvitation(hgroup, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupDelete(pwzidentity: P0, pwzgrouppeername: P1) -> windows_core::Result<()> @@ -903,12 +903,12 @@ where #[inline] pub unsafe fn PeerGroupDeleteRecord(hgroup: *const core::ffi::c_void, precordid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupDeleteRecord(hgroup : *const core::ffi::c_void, precordid : *const windows_core::GUID) -> windows_core::HRESULT); - PeerGroupDeleteRecord(core::mem::transmute(hgroup), core::mem::transmute(precordid)).ok() + PeerGroupDeleteRecord(hgroup, precordid).ok() } #[inline] pub unsafe fn PeerGroupEnumConnections(hgroup: *const core::ffi::c_void, dwflags: u32, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupEnumConnections(hgroup : *const core::ffi::c_void, dwflags : u32, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupEnumConnections(core::mem::transmute(hgroup), core::mem::transmute(dwflags), core::mem::transmute(phpeerenum)).ok() + PeerGroupEnumConnections(hgroup, dwflags, core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGroupEnumMembers(hgroup: *const core::ffi::c_void, dwflags: u32, pwzidentity: P2, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -916,12 +916,12 @@ where P2: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupEnumMembers(hgroup : *const core::ffi::c_void, dwflags : u32, pwzidentity : windows_core::PCWSTR, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupEnumMembers(core::mem::transmute(hgroup), core::mem::transmute(dwflags), pwzidentity.param().abi(), core::mem::transmute(phpeerenum)).ok() + PeerGroupEnumMembers(hgroup, dwflags, pwzidentity.param().abi(), core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGroupEnumRecords(hgroup: *const core::ffi::c_void, precordtype: Option<*const windows_core::GUID>, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupEnumRecords(hgroup : *const core::ffi::c_void, precordtype : *const windows_core::GUID, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupEnumRecords(core::mem::transmute(hgroup), core::mem::transmute(precordtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(phpeerenum)).ok() + PeerGroupEnumRecords(hgroup, core::mem::transmute(precordtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGroupExportConfig(hgroup: *const core::ffi::c_void, pwzpassword: P1) -> windows_core::Result @@ -930,7 +930,7 @@ where { windows_targets::link!("p2p.dll" "system" fn PeerGroupExportConfig(hgroup : *const core::ffi::c_void, pwzpassword : windows_core::PCWSTR, ppwzxml : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupExportConfig(core::mem::transmute(hgroup), pwzpassword.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupExportConfig(hgroup, pwzpassword.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupExportDatabase(hgroup: *const core::ffi::c_void, pwzfilepath: P1) -> windows_core::Result<()> @@ -938,31 +938,31 @@ where P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupExportDatabase(hgroup : *const core::ffi::c_void, pwzfilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGroupExportDatabase(core::mem::transmute(hgroup), pwzfilepath.param().abi()).ok() + PeerGroupExportDatabase(hgroup, pwzfilepath.param().abi()).ok() } #[inline] pub unsafe fn PeerGroupGetEventData(hpeerevent: *const core::ffi::c_void) -> windows_core::Result<*mut PEER_GROUP_EVENT_DATA> { windows_targets::link!("p2p.dll" "system" fn PeerGroupGetEventData(hpeerevent : *const core::ffi::c_void, ppeventdata : *mut *mut PEER_GROUP_EVENT_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupGetEventData(core::mem::transmute(hpeerevent), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetEventData(hpeerevent, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupGetProperties(hgroup: *const core::ffi::c_void) -> windows_core::Result<*mut PEER_GROUP_PROPERTIES> { windows_targets::link!("p2p.dll" "system" fn PeerGroupGetProperties(hgroup : *const core::ffi::c_void, ppproperties : *mut *mut PEER_GROUP_PROPERTIES) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupGetProperties(core::mem::transmute(hgroup), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetProperties(hgroup, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupGetRecord(hgroup: *const core::ffi::c_void, precordid: *const windows_core::GUID) -> windows_core::Result<*mut PEER_RECORD> { windows_targets::link!("p2p.dll" "system" fn PeerGroupGetRecord(hgroup : *const core::ffi::c_void, precordid : *const windows_core::GUID, pprecord : *mut *mut PEER_RECORD) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupGetRecord(core::mem::transmute(hgroup), core::mem::transmute(precordid), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetRecord(hgroup, precordid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupGetStatus(hgroup: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGroupGetStatus(hgroup : *const core::ffi::c_void, pdwstatus : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupGetStatus(core::mem::transmute(hgroup), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetStatus(hgroup, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupImportConfig(pwzxml: P0, pwzpassword: P1, foverwrite: bool, ppwzidentity: *mut windows_core::PWSTR, ppwzgroup: *mut windows_core::PWSTR) -> windows_core::Result<()> @@ -979,7 +979,7 @@ where P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupImportDatabase(hgroup : *const core::ffi::c_void, pwzfilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGroupImportDatabase(core::mem::transmute(hgroup), pwzfilepath.param().abi()).ok() + PeerGroupImportDatabase(hgroup, pwzfilepath.param().abi()).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -988,7 +988,7 @@ where P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupIssueCredentials(hgroup : *const core::ffi::c_void, pwzsubjectidentity : windows_core::PCWSTR, pcredentialinfo : *const PEER_CREDENTIAL_INFO, dwflags : u32, ppwzinvitation : *mut windows_core::PWSTR) -> windows_core::HRESULT); - PeerGroupIssueCredentials(core::mem::transmute(hgroup), pwzsubjectidentity.param().abi(), core::mem::transmute(pcredentialinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(ppwzinvitation.unwrap_or(core::mem::zeroed()))).ok() + PeerGroupIssueCredentials(hgroup, pwzsubjectidentity.param().abi(), core::mem::transmute(pcredentialinfo.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(ppwzinvitation.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PeerGroupJoin(pwzidentity: P0, pwzinvitation: P1, pwzcloud: P2, phgroup: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1018,7 +1018,7 @@ where { windows_targets::link!("p2p.dll" "system" fn PeerGroupOpenDirectConnection(hgroup : *const core::ffi::c_void, pwzidentity : windows_core::PCWSTR, paddress : *const PEER_ADDRESS, pullconnectionid : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupOpenDirectConnection(core::mem::transmute(hgroup), pwzidentity.param().abi(), core::mem::transmute(paddress), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupOpenDirectConnection(hgroup, pwzidentity.param().abi(), paddress, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1045,17 +1045,17 @@ where pub unsafe fn PeerGroupPeerTimeToUniversalTime(hgroup: *const core::ffi::c_void, pftpeertime: *const super::super::Foundation::FILETIME) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGroupPeerTimeToUniversalTime(hgroup : *const core::ffi::c_void, pftpeertime : *const super::super::Foundation:: FILETIME, pftuniversaltime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupPeerTimeToUniversalTime(core::mem::transmute(hgroup), core::mem::transmute(pftpeertime), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupPeerTimeToUniversalTime(hgroup, pftpeertime, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupRegisterEvent(hgroup: *const core::ffi::c_void, hevent: super::super::Foundation::HANDLE, peventregistrations: &[PEER_GROUP_EVENT_REGISTRATION], phpeerevent: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupRegisterEvent(hgroup : *const core::ffi::c_void, hevent : super::super::Foundation:: HANDLE, ceventregistration : u32, peventregistrations : *const PEER_GROUP_EVENT_REGISTRATION, phpeerevent : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupRegisterEvent(core::mem::transmute(hgroup), core::mem::transmute(hevent), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), core::mem::transmute(phpeerevent)).ok() + PeerGroupRegisterEvent(hgroup, hevent, peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), core::mem::transmute(phpeerevent)).ok() } #[inline] pub unsafe fn PeerGroupResumePasswordAuthentication(hgroup: *const core::ffi::c_void, hpeereventhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupResumePasswordAuthentication(hgroup : *const core::ffi::c_void, hpeereventhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupResumePasswordAuthentication(core::mem::transmute(hgroup), core::mem::transmute(hpeereventhandle)).ok() + PeerGroupResumePasswordAuthentication(hgroup, hpeereventhandle).ok() } #[inline] pub unsafe fn PeerGroupSearchRecords(hgroup: *const core::ffi::c_void, pwzcriteria: P1, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1063,17 +1063,17 @@ where P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupSearchRecords(hgroup : *const core::ffi::c_void, pwzcriteria : windows_core::PCWSTR, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupSearchRecords(core::mem::transmute(hgroup), pwzcriteria.param().abi(), core::mem::transmute(phpeerenum)).ok() + PeerGroupSearchRecords(hgroup, pwzcriteria.param().abi(), core::mem::transmute(phpeerenum)).ok() } #[inline] pub unsafe fn PeerGroupSendData(hgroup: *const core::ffi::c_void, ullconnectionid: u64, ptype: *const windows_core::GUID, cbdata: u32, pvdata: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupSendData(hgroup : *const core::ffi::c_void, ullconnectionid : u64, ptype : *const windows_core::GUID, cbdata : u32, pvdata : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupSendData(core::mem::transmute(hgroup), core::mem::transmute(ullconnectionid), core::mem::transmute(ptype), core::mem::transmute(cbdata), core::mem::transmute(pvdata)).ok() + PeerGroupSendData(hgroup, ullconnectionid, ptype, cbdata, pvdata).ok() } #[inline] pub unsafe fn PeerGroupSetProperties(hgroup: *const core::ffi::c_void, pproperties: *const PEER_GROUP_PROPERTIES) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupSetProperties(hgroup : *const core::ffi::c_void, pproperties : *const PEER_GROUP_PROPERTIES) -> windows_core::HRESULT); - PeerGroupSetProperties(core::mem::transmute(hgroup), core::mem::transmute(pproperties)).ok() + PeerGroupSetProperties(hgroup, pproperties).ok() } #[inline] pub unsafe fn PeerGroupShutdown() -> windows_core::Result<()> { @@ -1084,23 +1084,23 @@ pub unsafe fn PeerGroupShutdown() -> windows_core::Result<()> { pub unsafe fn PeerGroupStartup(wversionrequested: u16) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGroupStartup(wversionrequested : u16, pversiondata : *mut PEER_VERSION_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupStartup(core::mem::transmute(wversionrequested), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupStartup(wversionrequested, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupUniversalTimeToPeerTime(hgroup: *const core::ffi::c_void, pftuniversaltime: *const super::super::Foundation::FILETIME) -> windows_core::Result { windows_targets::link!("p2p.dll" "system" fn PeerGroupUniversalTimeToPeerTime(hgroup : *const core::ffi::c_void, pftuniversaltime : *const super::super::Foundation:: FILETIME, pftpeertime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerGroupUniversalTimeToPeerTime(core::mem::transmute(hgroup), core::mem::transmute(pftuniversaltime), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupUniversalTimeToPeerTime(hgroup, pftuniversaltime, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PeerGroupUnregisterEvent(hpeerevent: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupUnregisterEvent(hpeerevent : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupUnregisterEvent(core::mem::transmute(hpeerevent)).ok() + PeerGroupUnregisterEvent(hpeerevent).ok() } #[inline] pub unsafe fn PeerGroupUpdateRecord(hgroup: *const core::ffi::c_void, precord: *const PEER_RECORD) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerGroupUpdateRecord(hgroup : *const core::ffi::c_void, precord : *const PEER_RECORD) -> windows_core::HRESULT); - PeerGroupUpdateRecord(core::mem::transmute(hgroup), core::mem::transmute(precord)).ok() + PeerGroupUpdateRecord(hgroup, precord).ok() } #[inline] pub unsafe fn PeerHostNameToPeerName(pwzhostname: P0) -> windows_core::Result @@ -1203,7 +1203,7 @@ where #[inline] pub unsafe fn PeerPnrpEndResolve(hresolve: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerPnrpEndResolve(hresolve : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerPnrpEndResolve(core::mem::transmute(hresolve)).ok() + PeerPnrpEndResolve(hresolve).ok() } #[inline] pub unsafe fn PeerPnrpGetCloudInfo(pcnumclouds: *mut u32, ppcloudinfo: *mut *mut PEER_PNRP_CLOUD_INFO) -> windows_core::Result<()> { @@ -1215,7 +1215,7 @@ pub unsafe fn PeerPnrpGetCloudInfo(pcnumclouds: *mut u32, ppcloudinfo: *mut *mut pub unsafe fn PeerPnrpGetEndpoint(hresolve: *const core::ffi::c_void) -> windows_core::Result<*mut PEER_PNRP_ENDPOINT_INFO> { windows_targets::link!("p2p.dll" "system" fn PeerPnrpGetEndpoint(hresolve : *const core::ffi::c_void, ppendpoint : *mut *mut PEER_PNRP_ENDPOINT_INFO) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PeerPnrpGetEndpoint(core::mem::transmute(hresolve), &mut result__).map(|| core::mem::transmute(result__)) + PeerPnrpGetEndpoint(hresolve, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -1248,23 +1248,23 @@ where P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerPnrpStartResolve(pcwzpeername : windows_core::PCWSTR, pcwzcloudname : windows_core::PCWSTR, cmaxendpoints : u32, hevent : super::super::Foundation:: HANDLE, phresolve : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerPnrpStartResolve(pcwzpeername.param().abi(), pcwzcloudname.param().abi(), core::mem::transmute(cmaxendpoints.unwrap_or(core::mem::zeroed())), core::mem::transmute(hevent), core::mem::transmute(phresolve)).ok() + PeerPnrpStartResolve(pcwzpeername.param().abi(), pcwzcloudname.param().abi(), core::mem::transmute(cmaxendpoints.unwrap_or(core::mem::zeroed())), hevent, core::mem::transmute(phresolve)).ok() } #[inline] pub unsafe fn PeerPnrpStartup(wversionrequested: u16) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerPnrpStartup(wversionrequested : u16) -> windows_core::HRESULT); - PeerPnrpStartup(core::mem::transmute(wversionrequested)).ok() + PeerPnrpStartup(wversionrequested).ok() } #[inline] pub unsafe fn PeerPnrpUnregister(hregistration: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerPnrpUnregister(hregistration : *const core::ffi::c_void) -> windows_core::HRESULT); - PeerPnrpUnregister(core::mem::transmute(hregistration)).ok() + PeerPnrpUnregister(hregistration).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerPnrpUpdateRegistration(hregistration: *const core::ffi::c_void, pregistrationinfo: *const PEER_PNRP_REGISTRATION_INFO) -> windows_core::Result<()> { windows_targets::link!("p2p.dll" "system" fn PeerPnrpUpdateRegistration(hregistration : *const core::ffi::c_void, pregistrationinfo : *const PEER_PNRP_REGISTRATION_INFO) -> windows_core::HRESULT); - PeerPnrpUpdateRegistration(core::mem::transmute(hregistration), core::mem::transmute(pregistrationinfo)).ok() + PeerPnrpUpdateRegistration(hregistration, pregistrationinfo).ok() } pub const DRT_ACTIVE: DRT_STATUS = DRT_STATUS(0i32); #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs index 896aad0368..1d180aa3c6 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -2,123 +2,123 @@ #[inline] pub unsafe fn QOSAddSocketToFlow(qoshandle: super::super::Foundation::HANDLE, socket: super::super::Networking::WinSock::SOCKET, destaddr: Option<*const super::super::Networking::WinSock::SOCKADDR>, traffictype: QOS_TRAFFIC_TYPE, flags: Option, flowid: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSAddSocketToFlow(qoshandle : super::super::Foundation:: HANDLE, socket : super::super::Networking::WinSock:: SOCKET, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, traffictype : QOS_TRAFFIC_TYPE, flags : u32, flowid : *mut u32) -> super::super::Foundation:: BOOL); - QOSAddSocketToFlow(core::mem::transmute(qoshandle), core::mem::transmute(socket), core::mem::transmute(destaddr.unwrap_or(core::mem::zeroed())), core::mem::transmute(traffictype), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(flowid)) + QOSAddSocketToFlow(qoshandle, socket, core::mem::transmute(destaddr.unwrap_or(core::mem::zeroed())), traffictype, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(flowid)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSCancel(qoshandle: super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSCancel(qoshandle : super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - QOSCancel(core::mem::transmute(qoshandle), core::mem::transmute(overlapped)) + QOSCancel(qoshandle, overlapped) } #[inline] pub unsafe fn QOSCloseHandle(qoshandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSCloseHandle(qoshandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - QOSCloseHandle(core::mem::transmute(qoshandle)) + QOSCloseHandle(qoshandle) } #[inline] pub unsafe fn QOSCreateHandle(version: *const QOS_VERSION, qoshandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSCreateHandle(version : *const QOS_VERSION, qoshandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - QOSCreateHandle(core::mem::transmute(version), core::mem::transmute(qoshandle)) + QOSCreateHandle(version, core::mem::transmute(qoshandle)) } #[inline] pub unsafe fn QOSEnumerateFlows(qoshandle: super::super::Foundation::HANDLE, size: *mut u32, buffer: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSEnumerateFlows(qoshandle : super::super::Foundation:: HANDLE, size : *mut u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - QOSEnumerateFlows(core::mem::transmute(qoshandle), core::mem::transmute(size), core::mem::transmute(buffer)) + QOSEnumerateFlows(qoshandle, core::mem::transmute(size), core::mem::transmute(buffer)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSNotifyFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_NOTIFY_FLOW, size: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSNotifyFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_NOTIFY_FLOW, size : *mut u32, buffer : *mut core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - QOSNotifyFlow(core::mem::transmute(qoshandle), core::mem::transmute(flowid), core::mem::transmute(operation), core::mem::transmute(size.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + QOSNotifyFlow(qoshandle, flowid, operation, core::mem::transmute(size.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSQueryFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_QUERY_FLOW, size: *mut u32, buffer: *mut core::ffi::c_void, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSQueryFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_QUERY_FLOW, size : *mut u32, buffer : *mut core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - QOSQueryFlow(core::mem::transmute(qoshandle), core::mem::transmute(flowid), core::mem::transmute(operation), core::mem::transmute(size), core::mem::transmute(buffer), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + QOSQueryFlow(qoshandle, flowid, operation, core::mem::transmute(size), core::mem::transmute(buffer), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn QOSRemoveSocketFromFlow(qoshandle: super::super::Foundation::HANDLE, socket: Option, flowid: u32, flags: Option) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSRemoveSocketFromFlow(qoshandle : super::super::Foundation:: HANDLE, socket : super::super::Networking::WinSock:: SOCKET, flowid : u32, flags : u32) -> super::super::Foundation:: BOOL); - QOSRemoveSocketFromFlow(core::mem::transmute(qoshandle), core::mem::transmute(socket.unwrap_or(core::mem::zeroed())), core::mem::transmute(flowid), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + QOSRemoveSocketFromFlow(qoshandle, core::mem::transmute(socket.unwrap_or(core::mem::zeroed())), flowid, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSSetFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_SET_FLOW, size: u32, buffer: *const core::ffi::c_void, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSSetFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_SET_FLOW, size : u32, buffer : *const core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - QOSSetFlow(core::mem::transmute(qoshandle), core::mem::transmute(flowid), core::mem::transmute(operation), core::mem::transmute(size), core::mem::transmute(buffer), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + QOSSetFlow(qoshandle, flowid, operation, size, buffer, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn QOSStartTrackingClient(qoshandle: super::super::Foundation::HANDLE, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: Option) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSStartTrackingClient(qoshandle : super::super::Foundation:: HANDLE, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, flags : u32) -> super::super::Foundation:: BOOL); - QOSStartTrackingClient(core::mem::transmute(qoshandle), core::mem::transmute(destaddr), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + QOSStartTrackingClient(qoshandle, destaddr, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn QOSStopTrackingClient(qoshandle: super::super::Foundation::HANDLE, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: Option) -> super::super::Foundation::BOOL { windows_targets::link!("qwave.dll" "system" fn QOSStopTrackingClient(qoshandle : super::super::Foundation:: HANDLE, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, flags : u32) -> super::super::Foundation:: BOOL); - QOSStopTrackingClient(core::mem::transmute(qoshandle), core::mem::transmute(destaddr), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + QOSStopTrackingClient(qoshandle, destaddr, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TcAddFilter(flowhandle: super::super::Foundation::HANDLE, pgenericfilter: *const TC_GEN_FILTER, pfilterhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcAddFilter(flowhandle : super::super::Foundation:: HANDLE, pgenericfilter : *const TC_GEN_FILTER, pfilterhandle : *mut super::super::Foundation:: HANDLE) -> u32); - TcAddFilter(core::mem::transmute(flowhandle), core::mem::transmute(pgenericfilter), core::mem::transmute(pfilterhandle)) + TcAddFilter(flowhandle, pgenericfilter, core::mem::transmute(pfilterhandle)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn TcAddFlow(ifchandle: super::super::Foundation::HANDLE, clflowctx: super::super::Foundation::HANDLE, flags: u32, pgenericflow: *const TC_GEN_FLOW, pflowhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcAddFlow(ifchandle : super::super::Foundation:: HANDLE, clflowctx : super::super::Foundation:: HANDLE, flags : u32, pgenericflow : *const TC_GEN_FLOW, pflowhandle : *mut super::super::Foundation:: HANDLE) -> u32); - TcAddFlow(core::mem::transmute(ifchandle), core::mem::transmute(clflowctx), core::mem::transmute(flags), core::mem::transmute(pgenericflow), core::mem::transmute(pflowhandle)) + TcAddFlow(ifchandle, clflowctx, flags, pgenericflow, core::mem::transmute(pflowhandle)) } #[inline] pub unsafe fn TcCloseInterface(ifchandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcCloseInterface(ifchandle : super::super::Foundation:: HANDLE) -> u32); - TcCloseInterface(core::mem::transmute(ifchandle)) + TcCloseInterface(ifchandle) } #[inline] pub unsafe fn TcDeleteFilter(filterhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcDeleteFilter(filterhandle : super::super::Foundation:: HANDLE) -> u32); - TcDeleteFilter(core::mem::transmute(filterhandle)) + TcDeleteFilter(filterhandle) } #[inline] pub unsafe fn TcDeleteFlow(flowhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcDeleteFlow(flowhandle : super::super::Foundation:: HANDLE) -> u32); - TcDeleteFlow(core::mem::transmute(flowhandle)) + TcDeleteFlow(flowhandle) } #[inline] pub unsafe fn TcDeregisterClient(clienthandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcDeregisterClient(clienthandle : super::super::Foundation:: HANDLE) -> u32); - TcDeregisterClient(core::mem::transmute(clienthandle)) + TcDeregisterClient(clienthandle) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn TcEnumerateFlows(ifchandle: super::super::Foundation::HANDLE, penumhandle: *mut super::super::Foundation::HANDLE, pflowcount: *mut u32, pbufsize: *mut u32, buffer: *mut ENUMERATION_BUFFER) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcEnumerateFlows(ifchandle : super::super::Foundation:: HANDLE, penumhandle : *mut super::super::Foundation:: HANDLE, pflowcount : *mut u32, pbufsize : *mut u32, buffer : *mut ENUMERATION_BUFFER) -> u32); - TcEnumerateFlows(core::mem::transmute(ifchandle), core::mem::transmute(penumhandle), core::mem::transmute(pflowcount), core::mem::transmute(pbufsize), core::mem::transmute(buffer)) + TcEnumerateFlows(ifchandle, core::mem::transmute(penumhandle), core::mem::transmute(pflowcount), core::mem::transmute(pbufsize), core::mem::transmute(buffer)) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn TcEnumerateInterfaces(clienthandle: super::super::Foundation::HANDLE, pbuffersize: *mut u32, interfacebuffer: *mut TC_IFC_DESCRIPTOR) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcEnumerateInterfaces(clienthandle : super::super::Foundation:: HANDLE, pbuffersize : *mut u32, interfacebuffer : *mut TC_IFC_DESCRIPTOR) -> u32); - TcEnumerateInterfaces(core::mem::transmute(clienthandle), core::mem::transmute(pbuffersize), core::mem::transmute(interfacebuffer)) + TcEnumerateInterfaces(clienthandle, core::mem::transmute(pbuffersize), core::mem::transmute(interfacebuffer)) } #[inline] pub unsafe fn TcGetFlowNameA(flowhandle: super::super::Foundation::HANDLE, pflowname: &mut [u8]) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcGetFlowNameA(flowhandle : super::super::Foundation:: HANDLE, strsize : u32, pflowname : windows_core::PSTR) -> u32); - TcGetFlowNameA(core::mem::transmute(flowhandle), pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) + TcGetFlowNameA(flowhandle, pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) } #[inline] pub unsafe fn TcGetFlowNameW(flowhandle: super::super::Foundation::HANDLE, pflowname: &mut [u16]) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcGetFlowNameW(flowhandle : super::super::Foundation:: HANDLE, strsize : u32, pflowname : windows_core::PWSTR) -> u32); - TcGetFlowNameW(core::mem::transmute(flowhandle), pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) + TcGetFlowNameW(flowhandle, pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn TcModifyFlow(flowhandle: super::super::Foundation::HANDLE, pgenericflow: *const TC_GEN_FLOW) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcModifyFlow(flowhandle : super::super::Foundation:: HANDLE, pgenericflow : *const TC_GEN_FLOW) -> u32); - TcModifyFlow(core::mem::transmute(flowhandle), core::mem::transmute(pgenericflow)) + TcModifyFlow(flowhandle, pgenericflow) } #[inline] pub unsafe fn TcOpenInterfaceA(pinterfacename: P0, clienthandle: super::super::Foundation::HANDLE, clifcctx: super::super::Foundation::HANDLE, pifchandle: *mut super::super::Foundation::HANDLE) -> u32 @@ -126,7 +126,7 @@ where P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcOpenInterfaceA(pinterfacename : windows_core::PCSTR, clienthandle : super::super::Foundation:: HANDLE, clifcctx : super::super::Foundation:: HANDLE, pifchandle : *mut super::super::Foundation:: HANDLE) -> u32); - TcOpenInterfaceA(pinterfacename.param().abi(), core::mem::transmute(clienthandle), core::mem::transmute(clifcctx), core::mem::transmute(pifchandle)) + TcOpenInterfaceA(pinterfacename.param().abi(), clienthandle, clifcctx, core::mem::transmute(pifchandle)) } #[inline] pub unsafe fn TcOpenInterfaceW(pinterfacename: P0, clienthandle: super::super::Foundation::HANDLE, clifcctx: super::super::Foundation::HANDLE, pifchandle: *mut super::super::Foundation::HANDLE) -> u32 @@ -134,7 +134,7 @@ where P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcOpenInterfaceW(pinterfacename : windows_core::PCWSTR, clienthandle : super::super::Foundation:: HANDLE, clifcctx : super::super::Foundation:: HANDLE, pifchandle : *mut super::super::Foundation:: HANDLE) -> u32); - TcOpenInterfaceW(pinterfacename.param().abi(), core::mem::transmute(clienthandle), core::mem::transmute(clifcctx), core::mem::transmute(pifchandle)) + TcOpenInterfaceW(pinterfacename.param().abi(), clienthandle, clifcctx, core::mem::transmute(pifchandle)) } #[inline] pub unsafe fn TcQueryFlowA(pflowname: P0, pguidparam: *const windows_core::GUID, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 @@ -142,7 +142,7 @@ where P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcQueryFlowA(pflowname : windows_core::PCSTR, pguidparam : *const windows_core::GUID, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - TcQueryFlowA(pflowname.param().abi(), core::mem::transmute(pguidparam), core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) + TcQueryFlowA(pflowname.param().abi(), pguidparam, core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn TcQueryFlowW(pflowname: P0, pguidparam: *const windows_core::GUID, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 @@ -150,17 +150,17 @@ where P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcQueryFlowW(pflowname : windows_core::PCWSTR, pguidparam : *const windows_core::GUID, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - TcQueryFlowW(pflowname.param().abi(), core::mem::transmute(pguidparam), core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) + TcQueryFlowW(pflowname.param().abi(), pguidparam, core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn TcQueryInterface(ifchandle: super::super::Foundation::HANDLE, pguidparam: *const windows_core::GUID, notifychange: bool, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcQueryInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_core::GUID, notifychange : bool, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - TcQueryInterface(core::mem::transmute(ifchandle), core::mem::transmute(pguidparam), core::mem::transmute(notifychange), core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) + TcQueryInterface(ifchandle, pguidparam, notifychange, core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn TcRegisterClient(tciversion: u32, clregctx: super::super::Foundation::HANDLE, clienthandlerlist: *const TCI_CLIENT_FUNC_LIST, pclienthandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcRegisterClient(tciversion : u32, clregctx : super::super::Foundation:: HANDLE, clienthandlerlist : *const TCI_CLIENT_FUNC_LIST, pclienthandle : *mut super::super::Foundation:: HANDLE) -> u32); - TcRegisterClient(core::mem::transmute(tciversion), core::mem::transmute(clregctx), core::mem::transmute(clienthandlerlist), core::mem::transmute(pclienthandle)) + TcRegisterClient(tciversion, clregctx, clienthandlerlist, core::mem::transmute(pclienthandle)) } #[inline] pub unsafe fn TcSetFlowA(pflowname: P0, pguidparam: *const windows_core::GUID, buffersize: u32, buffer: *const core::ffi::c_void) -> u32 @@ -168,7 +168,7 @@ where P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcSetFlowA(pflowname : windows_core::PCSTR, pguidparam : *const windows_core::GUID, buffersize : u32, buffer : *const core::ffi::c_void) -> u32); - TcSetFlowA(pflowname.param().abi(), core::mem::transmute(pguidparam), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + TcSetFlowA(pflowname.param().abi(), pguidparam, buffersize, buffer) } #[inline] pub unsafe fn TcSetFlowW(pflowname: P0, pguidparam: *const windows_core::GUID, buffersize: u32, buffer: *const core::ffi::c_void) -> u32 @@ -176,12 +176,12 @@ where P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcSetFlowW(pflowname : windows_core::PCWSTR, pguidparam : *const windows_core::GUID, buffersize : u32, buffer : *const core::ffi::c_void) -> u32); - TcSetFlowW(pflowname.param().abi(), core::mem::transmute(pguidparam), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + TcSetFlowW(pflowname.param().abi(), pguidparam, buffersize, buffer) } #[inline] pub unsafe fn TcSetInterface(ifchandle: super::super::Foundation::HANDLE, pguidparam: *const windows_core::GUID, buffersize: u32, buffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("traffic.dll" "system" fn TcSetInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_core::GUID, buffersize : u32, buffer : *const core::ffi::c_void) -> u32); - TcSetInterface(core::mem::transmute(ifchandle), core::mem::transmute(pguidparam), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + TcSetInterface(ifchandle, pguidparam, buffersize, buffer) } pub const ABLE_TO_RECV_RSVP: u32 = 50002u32; #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs index dd559fc8a7..1f64820e75 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs @@ -1,17 +1,17 @@ #[inline] pub unsafe fn MgmAddGroupMembershipEntry(hprotocol: super::super::Foundation::HANDLE, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmAddGroupMembershipEntry(hprotocol : super::super::Foundation:: HANDLE, dwsourceaddr : u32, dwsourcemask : u32, dwgroupaddr : u32, dwgroupmask : u32, dwifindex : u32, dwifnexthopipaddr : u32, dwflags : u32) -> u32); - MgmAddGroupMembershipEntry(core::mem::transmute(hprotocol), core::mem::transmute(dwsourceaddr), core::mem::transmute(dwsourcemask), core::mem::transmute(dwgroupaddr), core::mem::transmute(dwgroupmask), core::mem::transmute(dwifindex), core::mem::transmute(dwifnexthopipaddr), core::mem::transmute(dwflags)) + MgmAddGroupMembershipEntry(hprotocol, dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) } #[inline] pub unsafe fn MgmDeRegisterMProtocol(hprotocol: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmDeRegisterMProtocol(hprotocol : super::super::Foundation:: HANDLE) -> u32); - MgmDeRegisterMProtocol(core::mem::transmute(hprotocol)) + MgmDeRegisterMProtocol(hprotocol) } #[inline] pub unsafe fn MgmDeleteGroupMembershipEntry(hprotocol: super::super::Foundation::HANDLE, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmDeleteGroupMembershipEntry(hprotocol : super::super::Foundation:: HANDLE, dwsourceaddr : u32, dwsourcemask : u32, dwgroupaddr : u32, dwgroupmask : u32, dwifindex : u32, dwifnexthopipaddr : u32, dwflags : u32) -> u32); - MgmDeleteGroupMembershipEntry(core::mem::transmute(hprotocol), core::mem::transmute(dwsourceaddr), core::mem::transmute(dwsourcemask), core::mem::transmute(dwgroupaddr), core::mem::transmute(dwgroupmask), core::mem::transmute(dwifindex), core::mem::transmute(dwifnexthopipaddr), core::mem::transmute(dwflags)) + MgmDeleteGroupMembershipEntry(hprotocol, dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) } #[inline] pub unsafe fn MgmGetFirstMfe(pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32 { @@ -21,7 +21,7 @@ pub unsafe fn MgmGetFirstMfe(pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnume #[inline] pub unsafe fn MgmGetFirstMfeStats(pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32, dwflags: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGetFirstMfeStats(pdwbuffersize : *mut u32, pbbuffer : *mut u8, pdwnumentries : *mut u32, dwflags : u32) -> u32); - MgmGetFirstMfeStats(core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(pdwnumentries), core::mem::transmute(dwflags)) + MgmGetFirstMfeStats(core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(pdwnumentries), dwflags) } #[cfg(feature = "Win32_NetworkManagement_IpHelper")] #[inline] @@ -33,7 +33,7 @@ pub unsafe fn MgmGetMfe(pimm: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersi #[inline] pub unsafe fn MgmGetMfeStats(pimm: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, dwflags: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGetMfeStats(pimm : *mut super::IpHelper:: MIB_IPMCAST_MFE, pdwbuffersize : *mut u32, pbbuffer : *mut u8, dwflags : u32) -> u32); - MgmGetMfeStats(core::mem::transmute(pimm), core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(dwflags)) + MgmGetMfeStats(core::mem::transmute(pimm), core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), dwflags) } #[cfg(feature = "Win32_NetworkManagement_IpHelper")] #[inline] @@ -45,87 +45,87 @@ pub unsafe fn MgmGetNextMfe(pimmstart: *mut super::IpHelper::MIB_IPMCAST_MFE, pd #[inline] pub unsafe fn MgmGetNextMfeStats(pimmstart: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32, dwflags: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGetNextMfeStats(pimmstart : *mut super::IpHelper:: MIB_IPMCAST_MFE, pdwbuffersize : *mut u32, pbbuffer : *mut u8, pdwnumentries : *mut u32, dwflags : u32) -> u32); - MgmGetNextMfeStats(core::mem::transmute(pimmstart), core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(pdwnumentries), core::mem::transmute(dwflags)) + MgmGetNextMfeStats(core::mem::transmute(pimmstart), core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(pdwnumentries), dwflags) } #[inline] pub unsafe fn MgmGetProtocolOnInterface(dwifindex: u32, dwifnexthopaddr: u32, pdwifprotocolid: *mut u32, pdwifcomponentid: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGetProtocolOnInterface(dwifindex : u32, dwifnexthopaddr : u32, pdwifprotocolid : *mut u32, pdwifcomponentid : *mut u32) -> u32); - MgmGetProtocolOnInterface(core::mem::transmute(dwifindex), core::mem::transmute(dwifnexthopaddr), core::mem::transmute(pdwifprotocolid), core::mem::transmute(pdwifcomponentid)) + MgmGetProtocolOnInterface(dwifindex, dwifnexthopaddr, core::mem::transmute(pdwifprotocolid), core::mem::transmute(pdwifcomponentid)) } #[inline] pub unsafe fn MgmGroupEnumerationEnd(henum: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGroupEnumerationEnd(henum : super::super::Foundation:: HANDLE) -> u32); - MgmGroupEnumerationEnd(core::mem::transmute(henum)) + MgmGroupEnumerationEnd(henum) } #[inline] pub unsafe fn MgmGroupEnumerationGetNext(henum: super::super::Foundation::HANDLE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGroupEnumerationGetNext(henum : super::super::Foundation:: HANDLE, pdwbuffersize : *mut u32, pbbuffer : *mut u8, pdwnumentries : *mut u32) -> u32); - MgmGroupEnumerationGetNext(core::mem::transmute(henum), core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(pdwnumentries)) + MgmGroupEnumerationGetNext(henum, core::mem::transmute(pdwbuffersize), core::mem::transmute(pbbuffer), core::mem::transmute(pdwnumentries)) } #[inline] pub unsafe fn MgmGroupEnumerationStart(hprotocol: super::super::Foundation::HANDLE, metenumtype: MGM_ENUM_TYPES, phenumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmGroupEnumerationStart(hprotocol : super::super::Foundation:: HANDLE, metenumtype : MGM_ENUM_TYPES, phenumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - MgmGroupEnumerationStart(core::mem::transmute(hprotocol), core::mem::transmute(metenumtype), core::mem::transmute(phenumhandle)) + MgmGroupEnumerationStart(hprotocol, metenumtype, core::mem::transmute(phenumhandle)) } #[inline] pub unsafe fn MgmRegisterMProtocol(prpiinfo: *mut ROUTING_PROTOCOL_CONFIG, dwprotocolid: u32, dwcomponentid: u32, phprotocol: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmRegisterMProtocol(prpiinfo : *mut ROUTING_PROTOCOL_CONFIG, dwprotocolid : u32, dwcomponentid : u32, phprotocol : *mut super::super::Foundation:: HANDLE) -> u32); - MgmRegisterMProtocol(core::mem::transmute(prpiinfo), core::mem::transmute(dwprotocolid), core::mem::transmute(dwcomponentid), core::mem::transmute(phprotocol)) + MgmRegisterMProtocol(core::mem::transmute(prpiinfo), dwprotocolid, dwcomponentid, core::mem::transmute(phprotocol)) } #[inline] pub unsafe fn MgmReleaseInterfaceOwnership(hprotocol: super::super::Foundation::HANDLE, dwifindex: u32, dwifnexthopaddr: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmReleaseInterfaceOwnership(hprotocol : super::super::Foundation:: HANDLE, dwifindex : u32, dwifnexthopaddr : u32) -> u32); - MgmReleaseInterfaceOwnership(core::mem::transmute(hprotocol), core::mem::transmute(dwifindex), core::mem::transmute(dwifnexthopaddr)) + MgmReleaseInterfaceOwnership(hprotocol, dwifindex, dwifnexthopaddr) } #[inline] pub unsafe fn MgmTakeInterfaceOwnership(hprotocol: super::super::Foundation::HANDLE, dwifindex: u32, dwifnexthopaddr: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn MgmTakeInterfaceOwnership(hprotocol : super::super::Foundation:: HANDLE, dwifindex : u32, dwifnexthopaddr : u32) -> u32); - MgmTakeInterfaceOwnership(core::mem::transmute(hprotocol), core::mem::transmute(dwifindex), core::mem::transmute(dwifnexthopaddr)) + MgmTakeInterfaceOwnership(hprotocol, dwifindex, dwifnexthopaddr) } #[inline] pub unsafe fn MprAdminBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminBufferFree(pbuffer : *const core::ffi::c_void) -> u32); - MprAdminBufferFree(core::mem::transmute(pbuffer)) + MprAdminBufferFree(pbuffer) } #[inline] pub unsafe fn MprAdminConnectionClearStats(hrasserver: isize, hrasconnection: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionClearStats(hrasserver : isize, hrasconnection : super::super::Foundation:: HANDLE) -> u32); - MprAdminConnectionClearStats(core::mem::transmute(hrasserver), core::mem::transmute(hrasconnection)) + MprAdminConnectionClearStats(hrasserver, hrasconnection) } #[inline] pub unsafe fn MprAdminConnectionEnum(hrasserver: isize, dwlevel: u32, lplpbbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*const u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionEnum(hrasserver : isize, dwlevel : u32, lplpbbuffer : *mut *mut u8, dwprefmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, lpdwresumehandle : *const u32) -> u32); - MprAdminConnectionEnum(core::mem::transmute(hrasserver), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer), core::mem::transmute(dwprefmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) + MprAdminConnectionEnum(hrasserver, dwlevel, core::mem::transmute(lplpbbuffer), dwprefmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprAdminConnectionEnumEx(hrasserver: isize, pobjectheader: *const MPRAPI_OBJECT_HEADER, dwpreferedmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, pprasconn: *mut *mut RAS_CONNECTION_EX, lpdwresumehandle: *const u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionEnumEx(hrasserver : isize, pobjectheader : *const MPRAPI_OBJECT_HEADER, dwpreferedmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, pprasconn : *mut *mut RAS_CONNECTION_EX, lpdwresumehandle : *const u32) -> u32); - MprAdminConnectionEnumEx(core::mem::transmute(hrasserver), core::mem::transmute(pobjectheader), core::mem::transmute(dwpreferedmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(pprasconn), core::mem::transmute(lpdwresumehandle)) + MprAdminConnectionEnumEx(hrasserver, pobjectheader, dwpreferedmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(pprasconn), lpdwresumehandle) } #[inline] pub unsafe fn MprAdminConnectionGetInfo(hrasserver: isize, dwlevel: u32, hrasconnection: super::super::Foundation::HANDLE, lplpbbuffer: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionGetInfo(hrasserver : isize, dwlevel : u32, hrasconnection : super::super::Foundation:: HANDLE, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminConnectionGetInfo(core::mem::transmute(hrasserver), core::mem::transmute(dwlevel), core::mem::transmute(hrasconnection), core::mem::transmute(lplpbbuffer)) + MprAdminConnectionGetInfo(hrasserver, dwlevel, hrasconnection, core::mem::transmute(lplpbbuffer)) } #[inline] pub unsafe fn MprAdminConnectionGetInfoEx(hrasserver: isize, hrasconnection: super::super::Foundation::HANDLE, prasconnection: *mut RAS_CONNECTION_EX) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionGetInfoEx(hrasserver : isize, hrasconnection : super::super::Foundation:: HANDLE, prasconnection : *mut RAS_CONNECTION_EX) -> u32); - MprAdminConnectionGetInfoEx(core::mem::transmute(hrasserver), core::mem::transmute(hrasconnection), core::mem::transmute(prasconnection)) + MprAdminConnectionGetInfoEx(hrasserver, hrasconnection, core::mem::transmute(prasconnection)) } #[inline] pub unsafe fn MprAdminConnectionRemoveQuarantine(hrasserver: super::super::Foundation::HANDLE, hrasconnection: super::super::Foundation::HANDLE, fisipaddress: bool) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionRemoveQuarantine(hrasserver : super::super::Foundation:: HANDLE, hrasconnection : super::super::Foundation:: HANDLE, fisipaddress : super::super::Foundation:: BOOL) -> u32); - MprAdminConnectionRemoveQuarantine(core::mem::transmute(hrasserver), core::mem::transmute(hrasconnection), fisipaddress.into()) + MprAdminConnectionRemoveQuarantine(hrasserver, hrasconnection, fisipaddress.into()) } #[inline] pub unsafe fn MprAdminDeregisterConnectionNotification(hmprserver: isize, heventnotification: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminDeregisterConnectionNotification(hmprserver : isize, heventnotification : super::super::Foundation:: HANDLE) -> u32); - MprAdminDeregisterConnectionNotification(core::mem::transmute(hmprserver), core::mem::transmute(heventnotification)) + MprAdminDeregisterConnectionNotification(hmprserver, heventnotification) } #[inline] pub unsafe fn MprAdminDeviceEnum(hmprserver: isize, dwlevel: u32, lplpbbuffer: *mut *mut u8, lpdwtotalentries: *mut u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminDeviceEnum(hmprserver : isize, dwlevel : u32, lplpbbuffer : *mut *mut u8, lpdwtotalentries : *mut u32) -> u32); - MprAdminDeviceEnum(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer), core::mem::transmute(lpdwtotalentries)) + MprAdminDeviceEnum(hmprserver, dwlevel, core::mem::transmute(lplpbbuffer), core::mem::transmute(lpdwtotalentries)) } #[inline] pub unsafe fn MprAdminEstablishDomainRasServer(pszdomain: P0, pszmachine: P1, benable: bool) -> u32 @@ -139,7 +139,7 @@ where #[inline] pub unsafe fn MprAdminGetErrorString(dwerror: u32, lplpwserrorstring: *mut windows_core::PWSTR) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminGetErrorString(dwerror : u32, lplpwserrorstring : *mut windows_core::PWSTR) -> u32); - MprAdminGetErrorString(core::mem::transmute(dwerror), core::mem::transmute(lplpwserrorstring)) + MprAdminGetErrorString(dwerror, core::mem::transmute(lplpwserrorstring)) } #[inline] pub unsafe fn MprAdminGetPDCServer(lpszdomain: P0, lpszserver: P1, lpszpdcserver: windows_core::PWSTR) -> u32 @@ -153,37 +153,37 @@ where #[inline] pub unsafe fn MprAdminInterfaceConnect(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, hevent: super::super::Foundation::HANDLE, fsynchronous: bool) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceConnect(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE, fsynchronous : super::super::Foundation:: BOOL) -> u32); - MprAdminInterfaceConnect(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(hevent), fsynchronous.into()) + MprAdminInterfaceConnect(hmprserver, hinterface, hevent, fsynchronous.into()) } #[inline] pub unsafe fn MprAdminInterfaceCreate(hmprserver: isize, dwlevel: u32, lpbbuffer: *const u8, phinterface: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceCreate(hmprserver : isize, dwlevel : u32, lpbbuffer : *const u8, phinterface : *mut super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceCreate(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer), core::mem::transmute(phinterface)) + MprAdminInterfaceCreate(hmprserver, dwlevel, lpbbuffer, core::mem::transmute(phinterface)) } #[inline] pub unsafe fn MprAdminInterfaceDelete(hmprserver: isize, hinterface: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDelete(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceDelete(core::mem::transmute(hmprserver), core::mem::transmute(hinterface)) + MprAdminInterfaceDelete(hmprserver, hinterface) } #[inline] pub unsafe fn MprAdminInterfaceDeviceGetInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwindex: u32, dwlevel: u32, lplpbuffer: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDeviceGetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwindex : u32, dwlevel : u32, lplpbuffer : *mut *mut u8) -> u32); - MprAdminInterfaceDeviceGetInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwindex), core::mem::transmute(dwlevel), core::mem::transmute(lplpbuffer)) + MprAdminInterfaceDeviceGetInfo(hmprserver, hinterface, dwindex, dwlevel, core::mem::transmute(lplpbuffer)) } #[inline] pub unsafe fn MprAdminInterfaceDeviceSetInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwindex: u32, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDeviceSetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwindex : u32, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminInterfaceDeviceSetInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwindex), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminInterfaceDeviceSetInfo(hmprserver, hinterface, dwindex, dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprAdminInterfaceDisconnect(hmprserver: isize, hinterface: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDisconnect(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceDisconnect(core::mem::transmute(hmprserver), core::mem::transmute(hinterface)) + MprAdminInterfaceDisconnect(hmprserver, hinterface) } #[inline] pub unsafe fn MprAdminInterfaceEnum(hmprserver: isize, dwlevel: u32, lplpbbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*const u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceEnum(hmprserver : isize, dwlevel : u32, lplpbbuffer : *mut *mut u8, dwprefmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, lpdwresumehandle : *const u32) -> u32); - MprAdminInterfaceEnum(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer), core::mem::transmute(dwprefmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) + MprAdminInterfaceEnum(hmprserver, dwlevel, core::mem::transmute(lplpbbuffer), dwprefmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprAdminInterfaceGetCredentials(lpwsserver: P0, lpwsinterfacename: P1, lpwsusername: Option, lpwspassword: Option, lpwsdomainname: Option) -> u32 @@ -197,13 +197,13 @@ where #[inline] pub unsafe fn MprAdminInterfaceGetCredentialsEx(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwlevel: u32, lplpbbuffer: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetCredentialsEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminInterfaceGetCredentialsEx(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer)) + MprAdminInterfaceGetCredentialsEx(hmprserver, hinterface, dwlevel, core::mem::transmute(lplpbbuffer)) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprAdminInterfaceGetCustomInfoEx(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, pcustominfo: *mut MPR_IF_CUSTOMINFOEX2) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetCustomInfoEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, pcustominfo : *mut MPR_IF_CUSTOMINFOEX2) -> u32); - MprAdminInterfaceGetCustomInfoEx(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(pcustominfo)) + MprAdminInterfaceGetCustomInfoEx(hmprserver, hinterface, core::mem::transmute(pcustominfo)) } #[inline] pub unsafe fn MprAdminInterfaceGetHandle(hmprserver: isize, lpwsinterfacename: P1, phinterface: *mut super::super::Foundation::HANDLE, fincludeclientinterfaces: bool) -> u32 @@ -211,17 +211,17 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetHandle(hmprserver : isize, lpwsinterfacename : windows_core::PCWSTR, phinterface : *mut super::super::Foundation:: HANDLE, fincludeclientinterfaces : super::super::Foundation:: BOOL) -> u32); - MprAdminInterfaceGetHandle(core::mem::transmute(hmprserver), lpwsinterfacename.param().abi(), core::mem::transmute(phinterface), fincludeclientinterfaces.into()) + MprAdminInterfaceGetHandle(hmprserver, lpwsinterfacename.param().abi(), core::mem::transmute(phinterface), fincludeclientinterfaces.into()) } #[inline] pub unsafe fn MprAdminInterfaceGetInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwlevel: u32, lplpbbuffer: *const *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbbuffer : *const *const u8) -> u32); - MprAdminInterfaceGetInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer)) + MprAdminInterfaceGetInfo(hmprserver, hinterface, dwlevel, lplpbbuffer) } #[inline] pub unsafe fn MprAdminInterfaceQueryUpdateResult(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwprotocolid: u32, lpdwupdateresult: *mut u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceQueryUpdateResult(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwprotocolid : u32, lpdwupdateresult : *mut u32) -> u32); - MprAdminInterfaceQueryUpdateResult(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwprotocolid), core::mem::transmute(lpdwupdateresult)) + MprAdminInterfaceQueryUpdateResult(hmprserver, hinterface, dwprotocolid, core::mem::transmute(lpdwupdateresult)) } #[inline] pub unsafe fn MprAdminInterfaceSetCredentials(lpwsserver: P0, lpwsinterfacename: P1, lpwsusername: P2, lpwsdomainname: P3, lpwspassword: P4) -> u32 @@ -238,48 +238,48 @@ where #[inline] pub unsafe fn MprAdminInterfaceSetCredentialsEx(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetCredentialsEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminInterfaceSetCredentialsEx(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminInterfaceSetCredentialsEx(hmprserver, hinterface, dwlevel, lpbbuffer) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprAdminInterfaceSetCustomInfoEx(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, pcustominfo: *const MPR_IF_CUSTOMINFOEX2) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetCustomInfoEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, pcustominfo : *const MPR_IF_CUSTOMINFOEX2) -> u32); - MprAdminInterfaceSetCustomInfoEx(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(pcustominfo)) + MprAdminInterfaceSetCustomInfoEx(hmprserver, hinterface, pcustominfo) } #[inline] pub unsafe fn MprAdminInterfaceSetInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminInterfaceSetInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminInterfaceSetInfo(hmprserver, hinterface, dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprAdminInterfaceTransportAdd(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwtransportid: u32, pinterfaceinfo: *const u8, dwinterfaceinfosize: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportAdd(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, pinterfaceinfo : *const u8, dwinterfaceinfosize : u32) -> u32); - MprAdminInterfaceTransportAdd(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwtransportid), core::mem::transmute(pinterfaceinfo), core::mem::transmute(dwinterfaceinfosize)) + MprAdminInterfaceTransportAdd(hmprserver, hinterface, dwtransportid, pinterfaceinfo, dwinterfaceinfosize) } #[inline] pub unsafe fn MprAdminInterfaceTransportGetInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwtransportid: u32, ppinterfaceinfo: *mut *mut u8, lpdwinterfaceinfosize: Option<*mut u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportGetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, ppinterfaceinfo : *mut *mut u8, lpdwinterfaceinfosize : *mut u32) -> u32); - MprAdminInterfaceTransportGetInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwtransportid), core::mem::transmute(ppinterfaceinfo), core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(core::mem::zeroed()))) + MprAdminInterfaceTransportGetInfo(hmprserver, hinterface, dwtransportid, core::mem::transmute(ppinterfaceinfo), core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprAdminInterfaceTransportRemove(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwtransportid: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportRemove(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32) -> u32); - MprAdminInterfaceTransportRemove(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwtransportid)) + MprAdminInterfaceTransportRemove(hmprserver, hinterface, dwtransportid) } #[inline] pub unsafe fn MprAdminInterfaceTransportSetInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwtransportid: u32, pinterfaceinfo: *const u8, dwinterfaceinfosize: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportSetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, pinterfaceinfo : *const u8, dwinterfaceinfosize : u32) -> u32); - MprAdminInterfaceTransportSetInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwtransportid), core::mem::transmute(pinterfaceinfo), core::mem::transmute(dwinterfaceinfosize)) + MprAdminInterfaceTransportSetInfo(hmprserver, hinterface, dwtransportid, pinterfaceinfo, dwinterfaceinfosize) } #[inline] pub unsafe fn MprAdminInterfaceUpdatePhonebookInfo(hmprserver: isize, hinterface: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceUpdatePhonebookInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceUpdatePhonebookInfo(core::mem::transmute(hmprserver), core::mem::transmute(hinterface)) + MprAdminInterfaceUpdatePhonebookInfo(hmprserver, hinterface) } #[inline] pub unsafe fn MprAdminInterfaceUpdateRoutes(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, dwprotocolid: u32, hevent: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceUpdateRoutes(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwprotocolid : u32, hevent : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceUpdateRoutes(core::mem::transmute(hmprserver), core::mem::transmute(hinterface), core::mem::transmute(dwprotocolid), core::mem::transmute(hevent)) + MprAdminInterfaceUpdateRoutes(hmprserver, hinterface, dwprotocolid, hevent) } #[inline] pub unsafe fn MprAdminIsDomainRasServer(pszdomain: P0, pszmachine: P1, pbisrasserver: *mut super::super::Foundation::BOOL) -> u32 @@ -296,7 +296,7 @@ where P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminIsServiceInitialized(lpwsservername : windows_core::PCWSTR, fisserviceinitialized : *const super::super::Foundation:: BOOL) -> u32); - MprAdminIsServiceInitialized(lpwsservername.param().abi(), core::mem::transmute(fisserviceinitialized)) + MprAdminIsServiceInitialized(lpwsservername.param().abi(), fisserviceinitialized) } #[inline] pub unsafe fn MprAdminIsServiceRunning(lpwsservername: P0) -> super::super::Foundation::BOOL @@ -309,37 +309,37 @@ where #[inline] pub unsafe fn MprAdminMIBBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBBufferFree(pbuffer : *const core::ffi::c_void) -> u32); - MprAdminMIBBufferFree(core::mem::transmute(pbuffer)) + MprAdminMIBBufferFree(pbuffer) } #[inline] pub unsafe fn MprAdminMIBEntryCreate(hmibserver: isize, dwpid: u32, dwroutingpid: u32, lpentry: *const core::ffi::c_void, dwentrysize: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBEntryCreate(hmibserver : isize, dwpid : u32, dwroutingpid : u32, lpentry : *const core::ffi::c_void, dwentrysize : u32) -> u32); - MprAdminMIBEntryCreate(core::mem::transmute(hmibserver), core::mem::transmute(dwpid), core::mem::transmute(dwroutingpid), core::mem::transmute(lpentry), core::mem::transmute(dwentrysize)) + MprAdminMIBEntryCreate(hmibserver, dwpid, dwroutingpid, lpentry, dwentrysize) } #[inline] pub unsafe fn MprAdminMIBEntryDelete(hmibserver: isize, dwprotocolid: u32, dwroutingpid: u32, lpentry: *const core::ffi::c_void, dwentrysize: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBEntryDelete(hmibserver : isize, dwprotocolid : u32, dwroutingpid : u32, lpentry : *const core::ffi::c_void, dwentrysize : u32) -> u32); - MprAdminMIBEntryDelete(core::mem::transmute(hmibserver), core::mem::transmute(dwprotocolid), core::mem::transmute(dwroutingpid), core::mem::transmute(lpentry), core::mem::transmute(dwentrysize)) + MprAdminMIBEntryDelete(hmibserver, dwprotocolid, dwroutingpid, lpentry, dwentrysize) } #[inline] pub unsafe fn MprAdminMIBEntryGet(hmibserver: isize, dwprotocolid: u32, dwroutingpid: u32, lpinentry: *const core::ffi::c_void, dwinentrysize: u32, lplpoutentry: *mut *mut core::ffi::c_void, lpoutentrysize: *mut u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBEntryGet(hmibserver : isize, dwprotocolid : u32, dwroutingpid : u32, lpinentry : *const core::ffi::c_void, dwinentrysize : u32, lplpoutentry : *mut *mut core::ffi::c_void, lpoutentrysize : *mut u32) -> u32); - MprAdminMIBEntryGet(core::mem::transmute(hmibserver), core::mem::transmute(dwprotocolid), core::mem::transmute(dwroutingpid), core::mem::transmute(lpinentry), core::mem::transmute(dwinentrysize), core::mem::transmute(lplpoutentry), core::mem::transmute(lpoutentrysize)) + MprAdminMIBEntryGet(hmibserver, dwprotocolid, dwroutingpid, lpinentry, dwinentrysize, core::mem::transmute(lplpoutentry), core::mem::transmute(lpoutentrysize)) } #[inline] pub unsafe fn MprAdminMIBEntryGetFirst(hmibserver: isize, dwprotocolid: u32, dwroutingpid: u32, lpinentry: *const core::ffi::c_void, dwinentrysize: u32, lplpoutentry: *mut *mut core::ffi::c_void, lpoutentrysize: *mut u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBEntryGetFirst(hmibserver : isize, dwprotocolid : u32, dwroutingpid : u32, lpinentry : *const core::ffi::c_void, dwinentrysize : u32, lplpoutentry : *mut *mut core::ffi::c_void, lpoutentrysize : *mut u32) -> u32); - MprAdminMIBEntryGetFirst(core::mem::transmute(hmibserver), core::mem::transmute(dwprotocolid), core::mem::transmute(dwroutingpid), core::mem::transmute(lpinentry), core::mem::transmute(dwinentrysize), core::mem::transmute(lplpoutentry), core::mem::transmute(lpoutentrysize)) + MprAdminMIBEntryGetFirst(hmibserver, dwprotocolid, dwroutingpid, lpinentry, dwinentrysize, core::mem::transmute(lplpoutentry), core::mem::transmute(lpoutentrysize)) } #[inline] pub unsafe fn MprAdminMIBEntryGetNext(hmibserver: isize, dwprotocolid: u32, dwroutingpid: u32, lpinentry: *const core::ffi::c_void, dwinentrysize: u32, lplpoutentry: *mut *mut core::ffi::c_void, lpoutentrysize: *mut u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBEntryGetNext(hmibserver : isize, dwprotocolid : u32, dwroutingpid : u32, lpinentry : *const core::ffi::c_void, dwinentrysize : u32, lplpoutentry : *mut *mut core::ffi::c_void, lpoutentrysize : *mut u32) -> u32); - MprAdminMIBEntryGetNext(core::mem::transmute(hmibserver), core::mem::transmute(dwprotocolid), core::mem::transmute(dwroutingpid), core::mem::transmute(lpinentry), core::mem::transmute(dwinentrysize), core::mem::transmute(lplpoutentry), core::mem::transmute(lpoutentrysize)) + MprAdminMIBEntryGetNext(hmibserver, dwprotocolid, dwroutingpid, lpinentry, dwinentrysize, core::mem::transmute(lplpoutentry), core::mem::transmute(lpoutentrysize)) } #[inline] pub unsafe fn MprAdminMIBEntrySet(hmibserver: isize, dwprotocolid: u32, dwroutingpid: u32, lpentry: *const core::ffi::c_void, dwentrysize: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBEntrySet(hmibserver : isize, dwprotocolid : u32, dwroutingpid : u32, lpentry : *const core::ffi::c_void, dwentrysize : u32) -> u32); - MprAdminMIBEntrySet(core::mem::transmute(hmibserver), core::mem::transmute(dwprotocolid), core::mem::transmute(dwroutingpid), core::mem::transmute(lpentry), core::mem::transmute(dwentrysize)) + MprAdminMIBEntrySet(hmibserver, dwprotocolid, dwroutingpid, lpentry, dwentrysize) } #[inline] pub unsafe fn MprAdminMIBServerConnect(lpwsservername: P0, phmibserver: *mut isize) -> u32 @@ -352,37 +352,37 @@ where #[inline] pub unsafe fn MprAdminMIBServerDisconnect(hmibserver: isize) { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBServerDisconnect(hmibserver : isize)); - MprAdminMIBServerDisconnect(core::mem::transmute(hmibserver)) + MprAdminMIBServerDisconnect(hmibserver) } #[inline] pub unsafe fn MprAdminPortClearStats(hrasserver: isize, hport: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortClearStats(hrasserver : isize, hport : super::super::Foundation:: HANDLE) -> u32); - MprAdminPortClearStats(core::mem::transmute(hrasserver), core::mem::transmute(hport)) + MprAdminPortClearStats(hrasserver, hport) } #[inline] pub unsafe fn MprAdminPortDisconnect(hrasserver: isize, hport: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortDisconnect(hrasserver : isize, hport : super::super::Foundation:: HANDLE) -> u32); - MprAdminPortDisconnect(core::mem::transmute(hrasserver), core::mem::transmute(hport)) + MprAdminPortDisconnect(hrasserver, hport) } #[inline] pub unsafe fn MprAdminPortEnum(hrasserver: isize, dwlevel: u32, hrasconnection: super::super::Foundation::HANDLE, lplpbbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*const u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortEnum(hrasserver : isize, dwlevel : u32, hrasconnection : super::super::Foundation:: HANDLE, lplpbbuffer : *mut *mut u8, dwprefmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, lpdwresumehandle : *const u32) -> u32); - MprAdminPortEnum(core::mem::transmute(hrasserver), core::mem::transmute(dwlevel), core::mem::transmute(hrasconnection), core::mem::transmute(lplpbbuffer), core::mem::transmute(dwprefmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) + MprAdminPortEnum(hrasserver, dwlevel, hrasconnection, core::mem::transmute(lplpbbuffer), dwprefmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprAdminPortGetInfo(hrasserver: isize, dwlevel: u32, hport: super::super::Foundation::HANDLE, lplpbbuffer: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortGetInfo(hrasserver : isize, dwlevel : u32, hport : super::super::Foundation:: HANDLE, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminPortGetInfo(core::mem::transmute(hrasserver), core::mem::transmute(dwlevel), core::mem::transmute(hport), core::mem::transmute(lplpbbuffer)) + MprAdminPortGetInfo(hrasserver, dwlevel, hport, core::mem::transmute(lplpbbuffer)) } #[inline] pub unsafe fn MprAdminPortReset(hrasserver: isize, hport: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortReset(hrasserver : isize, hport : super::super::Foundation:: HANDLE) -> u32); - MprAdminPortReset(core::mem::transmute(hrasserver), core::mem::transmute(hport)) + MprAdminPortReset(hrasserver, hport) } #[inline] pub unsafe fn MprAdminRegisterConnectionNotification(hmprserver: isize, heventnotification: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminRegisterConnectionNotification(hmprserver : isize, heventnotification : super::super::Foundation:: HANDLE) -> u32); - MprAdminRegisterConnectionNotification(core::mem::transmute(hmprserver), core::mem::transmute(heventnotification)) + MprAdminRegisterConnectionNotification(hmprserver, heventnotification) } #[inline] pub unsafe fn MprAdminSendUserMessage(hmprserver: isize, hconnection: super::super::Foundation::HANDLE, lpwszmessage: P2) -> u32 @@ -390,7 +390,7 @@ where P2: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminSendUserMessage(hmprserver : isize, hconnection : super::super::Foundation:: HANDLE, lpwszmessage : windows_core::PCWSTR) -> u32); - MprAdminSendUserMessage(core::mem::transmute(hmprserver), core::mem::transmute(hconnection), lpwszmessage.param().abi()) + MprAdminSendUserMessage(hmprserver, hconnection, lpwszmessage.param().abi()) } #[inline] pub unsafe fn MprAdminServerConnect(lpwsservername: P0, phmprserver: *mut isize) -> u32 @@ -403,39 +403,39 @@ where #[inline] pub unsafe fn MprAdminServerDisconnect(hmprserver: isize) { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerDisconnect(hmprserver : isize)); - MprAdminServerDisconnect(core::mem::transmute(hmprserver)) + MprAdminServerDisconnect(hmprserver) } #[inline] pub unsafe fn MprAdminServerGetCredentials(hmprserver: isize, dwlevel: u32, lplpbbuffer: *const *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerGetCredentials(hmprserver : isize, dwlevel : u32, lplpbbuffer : *const *const u8) -> u32); - MprAdminServerGetCredentials(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer)) + MprAdminServerGetCredentials(hmprserver, dwlevel, lplpbbuffer) } #[inline] pub unsafe fn MprAdminServerGetInfo(hmprserver: isize, dwlevel: u32, lplpbbuffer: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerGetInfo(hmprserver : isize, dwlevel : u32, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminServerGetInfo(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer)) + MprAdminServerGetInfo(hmprserver, dwlevel, core::mem::transmute(lplpbbuffer)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MprAdminServerGetInfoEx(hmprserver: isize, pserverinfo: *mut MPR_SERVER_EX1) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerGetInfoEx(hmprserver : isize, pserverinfo : *mut MPR_SERVER_EX1) -> u32); - MprAdminServerGetInfoEx(core::mem::transmute(hmprserver), core::mem::transmute(pserverinfo)) + MprAdminServerGetInfoEx(hmprserver, core::mem::transmute(pserverinfo)) } #[inline] pub unsafe fn MprAdminServerSetCredentials(hmprserver: isize, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerSetCredentials(hmprserver : isize, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminServerSetCredentials(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminServerSetCredentials(hmprserver, dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprAdminServerSetInfo(hmprserver: isize, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerSetInfo(hmprserver : isize, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminServerSetInfo(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminServerSetInfo(hmprserver, dwlevel, lpbbuffer) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MprAdminServerSetInfoEx(hmprserver: isize, pserverinfo: *const MPR_SERVER_SET_CONFIG_EX1) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerSetInfoEx(hmprserver : isize, pserverinfo : *const MPR_SERVER_SET_CONFIG_EX1) -> u32); - MprAdminServerSetInfoEx(core::mem::transmute(hmprserver), core::mem::transmute(pserverinfo)) + MprAdminServerSetInfoEx(hmprserver, pserverinfo) } #[inline] pub unsafe fn MprAdminTransportCreate(hmprserver: isize, dwtransportid: u32, lpwstransportname: P2, pglobalinfo: *const u8, dwglobalinfosize: u32, pclientinterfaceinfo: Option<*const u8>, dwclientinterfaceinfosize: Option, lpwsdllpath: P7) -> u32 @@ -444,22 +444,22 @@ where P7: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminTransportCreate(hmprserver : isize, dwtransportid : u32, lpwstransportname : windows_core::PCWSTR, pglobalinfo : *const u8, dwglobalinfosize : u32, pclientinterfaceinfo : *const u8, dwclientinterfaceinfosize : u32, lpwsdllpath : windows_core::PCWSTR) -> u32); - MprAdminTransportCreate(core::mem::transmute(hmprserver), core::mem::transmute(dwtransportid), lpwstransportname.param().abi(), core::mem::transmute(pglobalinfo), core::mem::transmute(dwglobalinfosize), core::mem::transmute(pclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwclientinterfaceinfosize.unwrap_or(core::mem::zeroed())), lpwsdllpath.param().abi()) + MprAdminTransportCreate(hmprserver, dwtransportid, lpwstransportname.param().abi(), pglobalinfo, dwglobalinfosize, core::mem::transmute(pclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwclientinterfaceinfosize.unwrap_or(core::mem::zeroed())), lpwsdllpath.param().abi()) } #[inline] pub unsafe fn MprAdminTransportGetInfo(hmprserver: isize, dwtransportid: u32, ppglobalinfo: Option<*mut *mut u8>, lpdwglobalinfosize: Option<*mut u32>, ppclientinterfaceinfo: Option<*mut *mut u8>, lpdwclientinterfaceinfosize: Option<*mut u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminTransportGetInfo(hmprserver : isize, dwtransportid : u32, ppglobalinfo : *mut *mut u8, lpdwglobalinfosize : *mut u32, ppclientinterfaceinfo : *mut *mut u8, lpdwclientinterfaceinfosize : *mut u32) -> u32); - MprAdminTransportGetInfo(core::mem::transmute(hmprserver), core::mem::transmute(dwtransportid), core::mem::transmute(ppglobalinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwglobalinfosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwclientinterfaceinfosize.unwrap_or(core::mem::zeroed()))) + MprAdminTransportGetInfo(hmprserver, dwtransportid, core::mem::transmute(ppglobalinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwglobalinfosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwclientinterfaceinfosize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprAdminTransportSetInfo(hmprserver: isize, dwtransportid: u32, pglobalinfo: Option<*const u8>, dwglobalinfosize: u32, pclientinterfaceinfo: Option<*const u8>, dwclientinterfaceinfosize: u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminTransportSetInfo(hmprserver : isize, dwtransportid : u32, pglobalinfo : *const u8, dwglobalinfosize : u32, pclientinterfaceinfo : *const u8, dwclientinterfaceinfosize : u32) -> u32); - MprAdminTransportSetInfo(core::mem::transmute(hmprserver), core::mem::transmute(dwtransportid), core::mem::transmute(pglobalinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwglobalinfosize), core::mem::transmute(pclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwclientinterfaceinfosize)) + MprAdminTransportSetInfo(hmprserver, dwtransportid, core::mem::transmute(pglobalinfo.unwrap_or(core::mem::zeroed())), dwglobalinfosize, core::mem::transmute(pclientinterfaceinfo.unwrap_or(core::mem::zeroed())), dwclientinterfaceinfosize) } #[inline] pub unsafe fn MprAdminUpdateConnection(hrasserver: isize, hrasconnection: super::super::Foundation::HANDLE, prasupdateconnection: *const RAS_UPDATE_CONNECTION) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprAdminUpdateConnection(hrasserver : isize, hrasconnection : super::super::Foundation:: HANDLE, prasupdateconnection : *const RAS_UPDATE_CONNECTION) -> u32); - MprAdminUpdateConnection(core::mem::transmute(hrasserver), core::mem::transmute(hrasconnection), core::mem::transmute(prasupdateconnection)) + MprAdminUpdateConnection(hrasserver, hrasconnection, prasupdateconnection) } #[inline] pub unsafe fn MprAdminUserGetInfo(lpszserver: P0, lpszuser: P1, dwlevel: u32, lpbbuffer: *mut u8) -> u32 @@ -468,7 +468,7 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminUserGetInfo(lpszserver : windows_core::PCWSTR, lpszuser : windows_core::PCWSTR, dwlevel : u32, lpbbuffer : *mut u8) -> u32); - MprAdminUserGetInfo(lpszserver.param().abi(), lpszuser.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminUserGetInfo(lpszserver.param().abi(), lpszuser.param().abi(), dwlevel, core::mem::transmute(lpbbuffer)) } #[inline] pub unsafe fn MprAdminUserSetInfo(lpszserver: P0, lpszuser: P1, dwlevel: u32, lpbbuffer: *const u8) -> u32 @@ -477,22 +477,22 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminUserSetInfo(lpszserver : windows_core::PCWSTR, lpszuser : windows_core::PCWSTR, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminUserSetInfo(lpszserver.param().abi(), lpszuser.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprAdminUserSetInfo(lpszserver.param().abi(), lpszuser.param().abi(), dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprConfigBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigBufferFree(pbuffer : *const core::ffi::c_void) -> u32); - MprConfigBufferFree(core::mem::transmute(pbuffer)) + MprConfigBufferFree(pbuffer) } #[inline] pub unsafe fn MprConfigFilterGetInfo(hmprconfig: super::super::Foundation::HANDLE, dwlevel: u32, dwtransportid: u32, lpbuffer: *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigFilterGetInfo(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, dwtransportid : u32, lpbuffer : *mut u8) -> u32); - MprConfigFilterGetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(dwlevel), core::mem::transmute(dwtransportid), core::mem::transmute(lpbuffer)) + MprConfigFilterGetInfo(hmprconfig, dwlevel, dwtransportid, core::mem::transmute(lpbuffer)) } #[inline] pub unsafe fn MprConfigFilterSetInfo(hmprconfig: super::super::Foundation::HANDLE, dwlevel: u32, dwtransportid: u32, lpbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigFilterSetInfo(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, dwtransportid : u32, lpbuffer : *const u8) -> u32); - MprConfigFilterSetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(dwlevel), core::mem::transmute(dwtransportid), core::mem::transmute(lpbuffer)) + MprConfigFilterSetInfo(hmprconfig, dwlevel, dwtransportid, lpbuffer) } #[inline] pub unsafe fn MprConfigGetFriendlyName(hmprconfig: super::super::Foundation::HANDLE, pszguidname: P1, pszbuffer: windows_core::PWSTR, dwbuffersize: u32) -> u32 @@ -500,7 +500,7 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigGetFriendlyName(hmprconfig : super::super::Foundation:: HANDLE, pszguidname : windows_core::PCWSTR, pszbuffer : windows_core::PWSTR, dwbuffersize : u32) -> u32); - MprConfigGetFriendlyName(core::mem::transmute(hmprconfig), pszguidname.param().abi(), core::mem::transmute(pszbuffer), core::mem::transmute(dwbuffersize)) + MprConfigGetFriendlyName(hmprconfig, pszguidname.param().abi(), core::mem::transmute(pszbuffer), dwbuffersize) } #[inline] pub unsafe fn MprConfigGetGuidName(hmprconfig: super::super::Foundation::HANDLE, pszfriendlyname: P1, pszbuffer: windows_core::PWSTR, dwbuffersize: u32) -> u32 @@ -508,28 +508,28 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigGetGuidName(hmprconfig : super::super::Foundation:: HANDLE, pszfriendlyname : windows_core::PCWSTR, pszbuffer : windows_core::PWSTR, dwbuffersize : u32) -> u32); - MprConfigGetGuidName(core::mem::transmute(hmprconfig), pszfriendlyname.param().abi(), core::mem::transmute(pszbuffer), core::mem::transmute(dwbuffersize)) + MprConfigGetGuidName(hmprconfig, pszfriendlyname.param().abi(), core::mem::transmute(pszbuffer), dwbuffersize) } #[inline] pub unsafe fn MprConfigInterfaceCreate(hmprconfig: super::super::Foundation::HANDLE, dwlevel: u32, lpbbuffer: *const u8, phrouterinterface: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceCreate(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, lpbbuffer : *const u8, phrouterinterface : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceCreate(core::mem::transmute(hmprconfig), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer), core::mem::transmute(phrouterinterface)) + MprConfigInterfaceCreate(hmprconfig, dwlevel, lpbbuffer, core::mem::transmute(phrouterinterface)) } #[inline] pub unsafe fn MprConfigInterfaceDelete(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceDelete(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceDelete(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface)) + MprConfigInterfaceDelete(hmprconfig, hrouterinterface) } #[inline] pub unsafe fn MprConfigInterfaceEnum(hmprconfig: super::super::Foundation::HANDLE, dwlevel: u32, lplpbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*mut u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceEnum(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbuffer : *mut *mut u8, dwprefmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, lpdwresumehandle : *mut u32) -> u32); - MprConfigInterfaceEnum(core::mem::transmute(hmprconfig), core::mem::transmute(dwlevel), core::mem::transmute(lplpbuffer), core::mem::transmute(dwprefmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) + MprConfigInterfaceEnum(hmprconfig, dwlevel, core::mem::transmute(lplpbuffer), dwprefmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprConfigInterfaceGetCustomInfoEx(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, pcustominfo: *mut MPR_IF_CUSTOMINFOEX2) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceGetCustomInfoEx(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, pcustominfo : *mut MPR_IF_CUSTOMINFOEX2) -> u32); - MprConfigInterfaceGetCustomInfoEx(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(pcustominfo)) + MprConfigInterfaceGetCustomInfoEx(hmprconfig, hrouterinterface, core::mem::transmute(pcustominfo)) } #[inline] pub unsafe fn MprConfigInterfaceGetHandle(hmprconfig: super::super::Foundation::HANDLE, lpwsinterfacename: P1, phrouterinterface: *mut super::super::Foundation::HANDLE) -> u32 @@ -537,23 +537,23 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceGetHandle(hmprconfig : super::super::Foundation:: HANDLE, lpwsinterfacename : windows_core::PCWSTR, phrouterinterface : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceGetHandle(core::mem::transmute(hmprconfig), lpwsinterfacename.param().abi(), core::mem::transmute(phrouterinterface)) + MprConfigInterfaceGetHandle(hmprconfig, lpwsinterfacename.param().abi(), core::mem::transmute(phrouterinterface)) } #[inline] pub unsafe fn MprConfigInterfaceGetInfo(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, dwlevel: u32, lplpbuffer: *mut *mut u8, lpdwbuffersize: *mut u32) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceGetInfo(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbuffer : *mut *mut u8, lpdwbuffersize : *mut u32) -> u32); - MprConfigInterfaceGetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(dwlevel), core::mem::transmute(lplpbuffer), core::mem::transmute(lpdwbuffersize)) + MprConfigInterfaceGetInfo(hmprconfig, hrouterinterface, dwlevel, core::mem::transmute(lplpbuffer), core::mem::transmute(lpdwbuffersize)) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprConfigInterfaceSetCustomInfoEx(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, pcustominfo: *const MPR_IF_CUSTOMINFOEX2) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceSetCustomInfoEx(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, pcustominfo : *const MPR_IF_CUSTOMINFOEX2) -> u32); - MprConfigInterfaceSetCustomInfoEx(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(pcustominfo)) + MprConfigInterfaceSetCustomInfoEx(hmprconfig, hrouterinterface, pcustominfo) } #[inline] pub unsafe fn MprConfigInterfaceSetInfo(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceSetInfo(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprConfigInterfaceSetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprConfigInterfaceSetInfo(hmprconfig, hrouterinterface, dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprConfigInterfaceTransportAdd(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, dwtransportid: u32, lpwstransportname: P3, pinterfaceinfo: &[u8], phrouteriftransport: *mut super::super::Foundation::HANDLE) -> u32 @@ -561,32 +561,32 @@ where P3: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceTransportAdd(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, lpwstransportname : windows_core::PCWSTR, pinterfaceinfo : *const u8, dwinterfaceinfosize : u32, phrouteriftransport : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceTransportAdd(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(dwtransportid), lpwstransportname.param().abi(), core::mem::transmute(pinterfaceinfo.as_ptr()), pinterfaceinfo.len().try_into().unwrap(), core::mem::transmute(phrouteriftransport)) + MprConfigInterfaceTransportAdd(hmprconfig, hrouterinterface, dwtransportid, lpwstransportname.param().abi(), core::mem::transmute(pinterfaceinfo.as_ptr()), pinterfaceinfo.len().try_into().unwrap(), core::mem::transmute(phrouteriftransport)) } #[inline] pub unsafe fn MprConfigInterfaceTransportEnum(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, dwlevel: u32, lplpbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*mut u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceTransportEnum(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbuffer : *mut *mut u8, dwprefmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, lpdwresumehandle : *mut u32) -> u32); - MprConfigInterfaceTransportEnum(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(dwlevel), core::mem::transmute(lplpbuffer), core::mem::transmute(dwprefmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) + MprConfigInterfaceTransportEnum(hmprconfig, hrouterinterface, dwlevel, core::mem::transmute(lplpbuffer), dwprefmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprConfigInterfaceTransportGetHandle(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, dwtransportid: u32, phrouteriftransport: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceTransportGetHandle(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, phrouteriftransport : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceTransportGetHandle(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(dwtransportid), core::mem::transmute(phrouteriftransport)) + MprConfigInterfaceTransportGetHandle(hmprconfig, hrouterinterface, dwtransportid, core::mem::transmute(phrouteriftransport)) } #[inline] pub unsafe fn MprConfigInterfaceTransportGetInfo(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, hrouteriftransport: super::super::Foundation::HANDLE, ppinterfaceinfo: Option<*mut *mut u8>, lpdwinterfaceinfosize: Option<*mut u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceTransportGetInfo(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, hrouteriftransport : super::super::Foundation:: HANDLE, ppinterfaceinfo : *mut *mut u8, lpdwinterfaceinfosize : *mut u32) -> u32); - MprConfigInterfaceTransportGetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(hrouteriftransport), core::mem::transmute(ppinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(core::mem::zeroed()))) + MprConfigInterfaceTransportGetInfo(hmprconfig, hrouterinterface, hrouteriftransport, core::mem::transmute(ppinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprConfigInterfaceTransportRemove(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, hrouteriftransport: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceTransportRemove(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, hrouteriftransport : super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceTransportRemove(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(hrouteriftransport)) + MprConfigInterfaceTransportRemove(hmprconfig, hrouterinterface, hrouteriftransport) } #[inline] pub unsafe fn MprConfigInterfaceTransportSetInfo(hmprconfig: super::super::Foundation::HANDLE, hrouterinterface: super::super::Foundation::HANDLE, hrouteriftransport: super::super::Foundation::HANDLE, pinterfaceinfo: Option<&[u8]>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceTransportSetInfo(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE, hrouteriftransport : super::super::Foundation:: HANDLE, pinterfaceinfo : *const u8, dwinterfaceinfosize : u32) -> u32); - MprConfigInterfaceTransportSetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(hrouterinterface), core::mem::transmute(hrouteriftransport), core::mem::transmute(pinterfaceinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pinterfaceinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + MprConfigInterfaceTransportSetInfo(hmprconfig, hrouterinterface, hrouteriftransport, core::mem::transmute(pinterfaceinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pinterfaceinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn MprConfigServerBackup(hmprconfig: super::super::Foundation::HANDLE, lpwspath: P1) -> u32 @@ -594,7 +594,7 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerBackup(hmprconfig : super::super::Foundation:: HANDLE, lpwspath : windows_core::PCWSTR) -> u32); - MprConfigServerBackup(core::mem::transmute(hmprconfig), lpwspath.param().abi()) + MprConfigServerBackup(hmprconfig, lpwspath.param().abi()) } #[inline] pub unsafe fn MprConfigServerConnect(lpwsservername: P0, phmprconfig: *mut super::super::Foundation::HANDLE) -> u32 @@ -607,28 +607,28 @@ where #[inline] pub unsafe fn MprConfigServerDisconnect(hmprconfig: super::super::Foundation::HANDLE) { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerDisconnect(hmprconfig : super::super::Foundation:: HANDLE)); - MprConfigServerDisconnect(core::mem::transmute(hmprconfig)) + MprConfigServerDisconnect(hmprconfig) } #[inline] pub unsafe fn MprConfigServerGetInfo(hmprconfig: super::super::Foundation::HANDLE, dwlevel: u32, lplpbbuffer: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerGetInfo(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbbuffer : *mut *mut u8) -> u32); - MprConfigServerGetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(dwlevel), core::mem::transmute(lplpbbuffer)) + MprConfigServerGetInfo(hmprconfig, dwlevel, core::mem::transmute(lplpbbuffer)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MprConfigServerGetInfoEx(hmprconfig: super::super::Foundation::HANDLE, pserverinfo: *mut MPR_SERVER_EX1) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerGetInfoEx(hmprconfig : super::super::Foundation:: HANDLE, pserverinfo : *mut MPR_SERVER_EX1) -> u32); - MprConfigServerGetInfoEx(core::mem::transmute(hmprconfig), core::mem::transmute(pserverinfo)) + MprConfigServerGetInfoEx(hmprconfig, core::mem::transmute(pserverinfo)) } #[inline] pub unsafe fn MprConfigServerInstall(dwlevel: u32, pbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerInstall(dwlevel : u32, pbuffer : *const core::ffi::c_void) -> u32); - MprConfigServerInstall(core::mem::transmute(dwlevel), core::mem::transmute(pbuffer)) + MprConfigServerInstall(dwlevel, pbuffer) } #[inline] pub unsafe fn MprConfigServerRefresh(hmprconfig: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerRefresh(hmprconfig : super::super::Foundation:: HANDLE) -> u32); - MprConfigServerRefresh(core::mem::transmute(hmprconfig)) + MprConfigServerRefresh(hmprconfig) } #[inline] pub unsafe fn MprConfigServerRestore(hmprconfig: super::super::Foundation::HANDLE, lpwspath: P1) -> u32 @@ -636,18 +636,18 @@ where P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerRestore(hmprconfig : super::super::Foundation:: HANDLE, lpwspath : windows_core::PCWSTR) -> u32); - MprConfigServerRestore(core::mem::transmute(hmprconfig), lpwspath.param().abi()) + MprConfigServerRestore(hmprconfig, lpwspath.param().abi()) } #[inline] pub unsafe fn MprConfigServerSetInfo(hmprserver: isize, dwlevel: u32, lpbbuffer: *const u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerSetInfo(hmprserver : isize, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprConfigServerSetInfo(core::mem::transmute(hmprserver), core::mem::transmute(dwlevel), core::mem::transmute(lpbbuffer)) + MprConfigServerSetInfo(hmprserver, dwlevel, lpbbuffer) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MprConfigServerSetInfoEx(hmprconfig: super::super::Foundation::HANDLE, psetserverconfig: *const MPR_SERVER_SET_CONFIG_EX1) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerSetInfoEx(hmprconfig : super::super::Foundation:: HANDLE, psetserverconfig : *const MPR_SERVER_SET_CONFIG_EX1) -> u32); - MprConfigServerSetInfoEx(core::mem::transmute(hmprconfig), core::mem::transmute(psetserverconfig)) + MprConfigServerSetInfoEx(hmprconfig, psetserverconfig) } #[inline] pub unsafe fn MprConfigTransportCreate(hmprconfig: super::super::Foundation::HANDLE, dwtransportid: u32, lpwstransportname: P2, pglobalinfo: &[u8], pclientinterfaceinfo: Option<&[u8]>, lpwsdllpath: P7, phroutertransport: *mut super::super::Foundation::HANDLE) -> u32 @@ -656,27 +656,27 @@ where P7: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportCreate(hmprconfig : super::super::Foundation:: HANDLE, dwtransportid : u32, lpwstransportname : windows_core::PCWSTR, pglobalinfo : *const u8, dwglobalinfosize : u32, pclientinterfaceinfo : *const u8, dwclientinterfaceinfosize : u32, lpwsdllpath : windows_core::PCWSTR, phroutertransport : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigTransportCreate(core::mem::transmute(hmprconfig), core::mem::transmute(dwtransportid), lpwstransportname.param().abi(), core::mem::transmute(pglobalinfo.as_ptr()), pglobalinfo.len().try_into().unwrap(), core::mem::transmute(pclientinterfaceinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pclientinterfaceinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpwsdllpath.param().abi(), core::mem::transmute(phroutertransport)) + MprConfigTransportCreate(hmprconfig, dwtransportid, lpwstransportname.param().abi(), core::mem::transmute(pglobalinfo.as_ptr()), pglobalinfo.len().try_into().unwrap(), core::mem::transmute(pclientinterfaceinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pclientinterfaceinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpwsdllpath.param().abi(), core::mem::transmute(phroutertransport)) } #[inline] pub unsafe fn MprConfigTransportDelete(hmprconfig: super::super::Foundation::HANDLE, hroutertransport: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportDelete(hmprconfig : super::super::Foundation:: HANDLE, hroutertransport : super::super::Foundation:: HANDLE) -> u32); - MprConfigTransportDelete(core::mem::transmute(hmprconfig), core::mem::transmute(hroutertransport)) + MprConfigTransportDelete(hmprconfig, hroutertransport) } #[inline] pub unsafe fn MprConfigTransportEnum(hmprconfig: super::super::Foundation::HANDLE, dwlevel: u32, lplpbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*mut u32>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportEnum(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbuffer : *mut *mut u8, dwprefmaxlen : u32, lpdwentriesread : *mut u32, lpdwtotalentries : *mut u32, lpdwresumehandle : *mut u32) -> u32); - MprConfigTransportEnum(core::mem::transmute(hmprconfig), core::mem::transmute(dwlevel), core::mem::transmute(lplpbuffer), core::mem::transmute(dwprefmaxlen), core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) + MprConfigTransportEnum(hmprconfig, dwlevel, core::mem::transmute(lplpbuffer), dwprefmaxlen, core::mem::transmute(lpdwentriesread), core::mem::transmute(lpdwtotalentries), core::mem::transmute(lpdwresumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprConfigTransportGetHandle(hmprconfig: super::super::Foundation::HANDLE, dwtransportid: u32, phroutertransport: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportGetHandle(hmprconfig : super::super::Foundation:: HANDLE, dwtransportid : u32, phroutertransport : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigTransportGetHandle(core::mem::transmute(hmprconfig), core::mem::transmute(dwtransportid), core::mem::transmute(phroutertransport)) + MprConfigTransportGetHandle(hmprconfig, dwtransportid, core::mem::transmute(phroutertransport)) } #[inline] pub unsafe fn MprConfigTransportGetInfo(hmprconfig: super::super::Foundation::HANDLE, hroutertransport: super::super::Foundation::HANDLE, ppglobalinfo: Option<*mut *mut u8>, lpdwglobalinfosize: Option<*mut u32>, ppclientinterfaceinfo: Option<*mut *mut u8>, lpdwclientinterfaceinfosize: Option<*mut u32>, lplpwsdllpath: Option<*mut windows_core::PWSTR>) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportGetInfo(hmprconfig : super::super::Foundation:: HANDLE, hroutertransport : super::super::Foundation:: HANDLE, ppglobalinfo : *mut *mut u8, lpdwglobalinfosize : *mut u32, ppclientinterfaceinfo : *mut *mut u8, lpdwclientinterfaceinfosize : *mut u32, lplpwsdllpath : *mut windows_core::PWSTR) -> u32); - MprConfigTransportGetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(hroutertransport), core::mem::transmute(ppglobalinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwglobalinfosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwclientinterfaceinfosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpwsdllpath.unwrap_or(core::mem::zeroed()))) + MprConfigTransportGetInfo(hmprconfig, hroutertransport, core::mem::transmute(ppglobalinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwglobalinfosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppclientinterfaceinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwclientinterfaceinfosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpwsdllpath.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MprConfigTransportSetInfo(hmprconfig: super::super::Foundation::HANDLE, hroutertransport: super::super::Foundation::HANDLE, pglobalinfo: Option<&[u8]>, pclientinterfaceinfo: Option<&[u8]>, lpwsdllpath: P6) -> u32 @@ -684,72 +684,72 @@ where P6: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportSetInfo(hmprconfig : super::super::Foundation:: HANDLE, hroutertransport : super::super::Foundation:: HANDLE, pglobalinfo : *const u8, dwglobalinfosize : u32, pclientinterfaceinfo : *const u8, dwclientinterfaceinfosize : u32, lpwsdllpath : windows_core::PCWSTR) -> u32); - MprConfigTransportSetInfo(core::mem::transmute(hmprconfig), core::mem::transmute(hroutertransport), core::mem::transmute(pglobalinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pglobalinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pclientinterfaceinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pclientinterfaceinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpwsdllpath.param().abi()) + MprConfigTransportSetInfo(hmprconfig, hroutertransport, core::mem::transmute(pglobalinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pglobalinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pclientinterfaceinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pclientinterfaceinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpwsdllpath.param().abi()) } #[inline] pub unsafe fn MprInfoBlockAdd(lpheader: *const core::ffi::c_void, dwinfotype: u32, dwitemsize: u32, dwitemcount: u32, lpitemdata: *const u8, lplpnewheader: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoBlockAdd(lpheader : *const core::ffi::c_void, dwinfotype : u32, dwitemsize : u32, dwitemcount : u32, lpitemdata : *const u8, lplpnewheader : *mut *mut core::ffi::c_void) -> u32); - MprInfoBlockAdd(core::mem::transmute(lpheader), core::mem::transmute(dwinfotype), core::mem::transmute(dwitemsize), core::mem::transmute(dwitemcount), core::mem::transmute(lpitemdata), core::mem::transmute(lplpnewheader)) + MprInfoBlockAdd(lpheader, dwinfotype, dwitemsize, dwitemcount, lpitemdata, core::mem::transmute(lplpnewheader)) } #[inline] pub unsafe fn MprInfoBlockFind(lpheader: *const core::ffi::c_void, dwinfotype: u32, lpdwitemsize: *mut u32, lpdwitemcount: *mut u32, lplpitemdata: *mut *mut u8) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoBlockFind(lpheader : *const core::ffi::c_void, dwinfotype : u32, lpdwitemsize : *mut u32, lpdwitemcount : *mut u32, lplpitemdata : *mut *mut u8) -> u32); - MprInfoBlockFind(core::mem::transmute(lpheader), core::mem::transmute(dwinfotype), core::mem::transmute(lpdwitemsize), core::mem::transmute(lpdwitemcount), core::mem::transmute(lplpitemdata)) + MprInfoBlockFind(lpheader, dwinfotype, core::mem::transmute(lpdwitemsize), core::mem::transmute(lpdwitemcount), core::mem::transmute(lplpitemdata)) } #[inline] pub unsafe fn MprInfoBlockQuerySize(lpheader: *const core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoBlockQuerySize(lpheader : *const core::ffi::c_void) -> u32); - MprInfoBlockQuerySize(core::mem::transmute(lpheader)) + MprInfoBlockQuerySize(lpheader) } #[inline] pub unsafe fn MprInfoBlockRemove(lpheader: *const core::ffi::c_void, dwinfotype: u32, lplpnewheader: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoBlockRemove(lpheader : *const core::ffi::c_void, dwinfotype : u32, lplpnewheader : *mut *mut core::ffi::c_void) -> u32); - MprInfoBlockRemove(core::mem::transmute(lpheader), core::mem::transmute(dwinfotype), core::mem::transmute(lplpnewheader)) + MprInfoBlockRemove(lpheader, dwinfotype, core::mem::transmute(lplpnewheader)) } #[inline] pub unsafe fn MprInfoBlockSet(lpheader: *const core::ffi::c_void, dwinfotype: u32, dwitemsize: u32, dwitemcount: u32, lpitemdata: *const u8, lplpnewheader: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoBlockSet(lpheader : *const core::ffi::c_void, dwinfotype : u32, dwitemsize : u32, dwitemcount : u32, lpitemdata : *const u8, lplpnewheader : *mut *mut core::ffi::c_void) -> u32); - MprInfoBlockSet(core::mem::transmute(lpheader), core::mem::transmute(dwinfotype), core::mem::transmute(dwitemsize), core::mem::transmute(dwitemcount), core::mem::transmute(lpitemdata), core::mem::transmute(lplpnewheader)) + MprInfoBlockSet(lpheader, dwinfotype, dwitemsize, dwitemcount, lpitemdata, core::mem::transmute(lplpnewheader)) } #[inline] pub unsafe fn MprInfoCreate(dwversion: u32, lplpnewheader: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoCreate(dwversion : u32, lplpnewheader : *mut *mut core::ffi::c_void) -> u32); - MprInfoCreate(core::mem::transmute(dwversion), core::mem::transmute(lplpnewheader)) + MprInfoCreate(dwversion, core::mem::transmute(lplpnewheader)) } #[inline] pub unsafe fn MprInfoDelete(lpheader: *const core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoDelete(lpheader : *const core::ffi::c_void) -> u32); - MprInfoDelete(core::mem::transmute(lpheader)) + MprInfoDelete(lpheader) } #[inline] pub unsafe fn MprInfoDuplicate(lpheader: *const core::ffi::c_void, lplpnewheader: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoDuplicate(lpheader : *const core::ffi::c_void, lplpnewheader : *mut *mut core::ffi::c_void) -> u32); - MprInfoDuplicate(core::mem::transmute(lpheader), core::mem::transmute(lplpnewheader)) + MprInfoDuplicate(lpheader, core::mem::transmute(lplpnewheader)) } #[inline] pub unsafe fn MprInfoRemoveAll(lpheader: *const core::ffi::c_void, lplpnewheader: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("mprapi.dll" "system" fn MprInfoRemoveAll(lpheader : *const core::ffi::c_void, lplpnewheader : *mut *mut core::ffi::c_void) -> u32); - MprInfoRemoveAll(core::mem::transmute(lpheader), core::mem::transmute(lplpnewheader)) + MprInfoRemoveAll(lpheader, core::mem::transmute(lplpnewheader)) } #[inline] pub unsafe fn RasClearConnectionStatistics(hrasconn: HRASCONN) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasClearConnectionStatistics(hrasconn : HRASCONN) -> u32); - RasClearConnectionStatistics(core::mem::transmute(hrasconn)) + RasClearConnectionStatistics(hrasconn) } #[inline] pub unsafe fn RasClearLinkStatistics(hrasconn: HRASCONN, dwsubentry: u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasClearLinkStatistics(hrasconn : HRASCONN, dwsubentry : u32) -> u32); - RasClearLinkStatistics(core::mem::transmute(hrasconn), core::mem::transmute(dwsubentry)) + RasClearLinkStatistics(hrasconn, dwsubentry) } #[inline] pub unsafe fn RasConnectionNotificationA(param0: HRASCONN, param1: super::super::Foundation::HANDLE, param2: u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasConnectionNotificationA(param0 : HRASCONN, param1 : super::super::Foundation:: HANDLE, param2 : u32) -> u32); - RasConnectionNotificationA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasConnectionNotificationA(param0, param1, param2) } #[inline] pub unsafe fn RasConnectionNotificationW(param0: HRASCONN, param1: super::super::Foundation::HANDLE, param2: u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasConnectionNotificationW(param0 : HRASCONN, param1 : super::super::Foundation:: HANDLE, param2 : u32) -> u32); - RasConnectionNotificationW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasConnectionNotificationW(param0, param1, param2) } #[inline] pub unsafe fn RasCreatePhonebookEntryA(param0: super::super::Foundation::HWND, param1: P1) -> u32 @@ -757,7 +757,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasCreatePhonebookEntryA(param0 : super::super::Foundation:: HWND, param1 : windows_core::PCSTR) -> u32); - RasCreatePhonebookEntryA(core::mem::transmute(param0), param1.param().abi()) + RasCreatePhonebookEntryA(param0, param1.param().abi()) } #[inline] pub unsafe fn RasCreatePhonebookEntryW(param0: super::super::Foundation::HWND, param1: P1) -> u32 @@ -765,7 +765,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasCreatePhonebookEntryW(param0 : super::super::Foundation:: HWND, param1 : windows_core::PCWSTR) -> u32); - RasCreatePhonebookEntryW(core::mem::transmute(param0), param1.param().abi()) + RasCreatePhonebookEntryW(param0, param1.param().abi()) } #[inline] pub unsafe fn RasDeleteEntryA(param0: P0, param1: P1) -> u32 @@ -792,7 +792,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasDeleteSubEntryA(pszphonebook : windows_core::PCSTR, pszentry : windows_core::PCSTR, dwsubentryid : u32) -> u32); - RasDeleteSubEntryA(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(dwsubentryid)) + RasDeleteSubEntryA(pszphonebook.param().abi(), pszentry.param().abi(), dwsubentryid) } #[inline] pub unsafe fn RasDeleteSubEntryW(pszphonebook: P0, pszentry: P1, dwsubentryid: u32) -> u32 @@ -801,7 +801,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasDeleteSubEntryW(pszphonebook : windows_core::PCWSTR, pszentry : windows_core::PCWSTR, dwsubentryid : u32) -> u32); - RasDeleteSubEntryW(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(dwsubentryid)) + RasDeleteSubEntryW(pszphonebook.param().abi(), pszentry.param().abi(), dwsubentryid) } #[inline] pub unsafe fn RasDialA(param0: Option<*const RASDIALEXTENSIONS>, param1: P1, param2: *const RASDIALPARAMSA, param3: u32, param4: Option<*const core::ffi::c_void>, param5: *mut HRASCONN) -> u32 @@ -809,7 +809,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasDialA(param0 : *const RASDIALEXTENSIONS, param1 : windows_core::PCSTR, param2 : *const RASDIALPARAMSA, param3 : u32, param4 : *const core::ffi::c_void, param5 : *mut HRASCONN) -> u32); - RasDialA(core::mem::transmute(param0.unwrap_or(core::mem::zeroed())), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5)) + RasDialA(core::mem::transmute(param0.unwrap_or(core::mem::zeroed())), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5)) } #[inline] pub unsafe fn RasDialDlgA(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> super::super::Foundation::BOOL @@ -837,7 +837,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasDialW(param0 : *const RASDIALEXTENSIONS, param1 : windows_core::PCWSTR, param2 : *const RASDIALPARAMSW, param3 : u32, param4 : *const core::ffi::c_void, param5 : *mut HRASCONN) -> u32); - RasDialW(core::mem::transmute(param0.unwrap_or(core::mem::zeroed())), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5)) + RasDialW(core::mem::transmute(param0.unwrap_or(core::mem::zeroed())), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5)) } #[inline] pub unsafe fn RasEditPhonebookEntryA(param0: super::super::Foundation::HWND, param1: P1, param2: P2) -> u32 @@ -846,7 +846,7 @@ where P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasEditPhonebookEntryA(param0 : super::super::Foundation:: HWND, param1 : windows_core::PCSTR, param2 : windows_core::PCSTR) -> u32); - RasEditPhonebookEntryA(core::mem::transmute(param0), param1.param().abi(), param2.param().abi()) + RasEditPhonebookEntryA(param0, param1.param().abi(), param2.param().abi()) } #[inline] pub unsafe fn RasEditPhonebookEntryW(param0: super::super::Foundation::HWND, param1: P1, param2: P2) -> u32 @@ -855,7 +855,7 @@ where P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasEditPhonebookEntryW(param0 : super::super::Foundation:: HWND, param1 : windows_core::PCWSTR, param2 : windows_core::PCWSTR) -> u32); - RasEditPhonebookEntryW(core::mem::transmute(param0), param1.param().abi(), param2.param().abi()) + RasEditPhonebookEntryW(param0, param1.param().abi(), param2.param().abi()) } #[inline] pub unsafe fn RasEntryDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGA) -> super::super::Foundation::BOOL @@ -926,12 +926,12 @@ where #[inline] pub unsafe fn RasFreeEapUserIdentityA(praseapuseridentity: *const RASEAPUSERIDENTITYA) { windows_targets::link!("rasapi32.dll" "system" fn RasFreeEapUserIdentityA(praseapuseridentity : *const RASEAPUSERIDENTITYA)); - RasFreeEapUserIdentityA(core::mem::transmute(praseapuseridentity)) + RasFreeEapUserIdentityA(praseapuseridentity) } #[inline] pub unsafe fn RasFreeEapUserIdentityW(praseapuseridentity: *const RASEAPUSERIDENTITYW) { windows_targets::link!("rasapi32.dll" "system" fn RasFreeEapUserIdentityW(praseapuseridentity : *const RASEAPUSERIDENTITYW)); - RasFreeEapUserIdentityW(core::mem::transmute(praseapuseridentity)) + RasFreeEapUserIdentityW(praseapuseridentity) } #[inline] pub unsafe fn RasGetAutodialAddressA(param0: P0, param1: Option<*const u32>, param2: Option<*mut RASAUTODIALENTRYA>, param3: *mut u32, param4: *mut u32) -> u32 @@ -952,39 +952,39 @@ where #[inline] pub unsafe fn RasGetAutodialEnableA(param0: u32, param1: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialEnableA(param0 : u32, param1 : *mut super::super::Foundation:: BOOL) -> u32); - RasGetAutodialEnableA(core::mem::transmute(param0), core::mem::transmute(param1)) + RasGetAutodialEnableA(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn RasGetAutodialEnableW(param0: u32, param1: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialEnableW(param0 : u32, param1 : *mut super::super::Foundation:: BOOL) -> u32); - RasGetAutodialEnableW(core::mem::transmute(param0), core::mem::transmute(param1)) + RasGetAutodialEnableW(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn RasGetAutodialParamA(param0: u32, param1: *mut core::ffi::c_void, param2: *mut u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialParamA(param0 : u32, param1 : *mut core::ffi::c_void, param2 : *mut u32) -> u32); - RasGetAutodialParamA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasGetAutodialParamA(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[inline] pub unsafe fn RasGetAutodialParamW(param0: u32, param1: *mut core::ffi::c_void, param2: *mut u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialParamW(param0 : u32, param1 : *mut core::ffi::c_void, param2 : *mut u32) -> u32); - RasGetAutodialParamW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasGetAutodialParamW(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetConnectStatusA(param0: HRASCONN, param1: *mut RASCONNSTATUSA) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetConnectStatusA(param0 : HRASCONN, param1 : *mut RASCONNSTATUSA) -> u32); - RasGetConnectStatusA(core::mem::transmute(param0), core::mem::transmute(param1)) + RasGetConnectStatusA(param0, core::mem::transmute(param1)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetConnectStatusW(param0: HRASCONN, param1: *mut RASCONNSTATUSW) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetConnectStatusW(param0 : HRASCONN, param1 : *mut RASCONNSTATUSW) -> u32); - RasGetConnectStatusW(core::mem::transmute(param0), core::mem::transmute(param1)) + RasGetConnectStatusW(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn RasGetConnectionStatistics(hrasconn: HRASCONN, lpstatistics: *mut RAS_STATS) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetConnectionStatistics(hrasconn : HRASCONN, lpstatistics : *mut RAS_STATS) -> u32); - RasGetConnectionStatistics(core::mem::transmute(hrasconn), core::mem::transmute(lpstatistics)) + RasGetConnectionStatistics(hrasconn, core::mem::transmute(lpstatistics)) } #[inline] pub unsafe fn RasGetCountryInfoA(param0: Option<*mut RASCTRYINFO>, param1: *mut u32) -> u32 { @@ -1057,7 +1057,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEapUserIdentityA(pszphonebook : windows_core::PCSTR, pszentry : windows_core::PCSTR, dwflags : u32, hwnd : super::super::Foundation:: HWND, ppraseapuseridentity : *mut *mut RASEAPUSERIDENTITYA) -> u32); - RasGetEapUserIdentityA(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(hwnd), core::mem::transmute(ppraseapuseridentity)) + RasGetEapUserIdentityA(pszphonebook.param().abi(), pszentry.param().abi(), dwflags, hwnd, core::mem::transmute(ppraseapuseridentity)) } #[inline] pub unsafe fn RasGetEapUserIdentityW(pszphonebook: P0, pszentry: P1, dwflags: u32, hwnd: super::super::Foundation::HWND, ppraseapuseridentity: *mut *mut RASEAPUSERIDENTITYW) -> u32 @@ -1066,7 +1066,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEapUserIdentityW(pszphonebook : windows_core::PCWSTR, pszentry : windows_core::PCWSTR, dwflags : u32, hwnd : super::super::Foundation:: HWND, ppraseapuseridentity : *mut *mut RASEAPUSERIDENTITYW) -> u32); - RasGetEapUserIdentityW(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(hwnd), core::mem::transmute(ppraseapuseridentity)) + RasGetEapUserIdentityW(pszphonebook.param().abi(), pszentry.param().abi(), dwflags, hwnd, core::mem::transmute(ppraseapuseridentity)) } #[inline] pub unsafe fn RasGetEntryDialParamsA(param0: P0, param1: *mut RASDIALPARAMSA, param2: *mut super::super::Foundation::BOOL) -> u32 @@ -1107,17 +1107,17 @@ where #[inline] pub unsafe fn RasGetErrorStringA(resourceid: u32, lpszstring: &mut [u8]) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetErrorStringA(resourceid : u32, lpszstring : windows_core::PSTR, inbufsize : u32) -> u32); - RasGetErrorStringA(core::mem::transmute(resourceid), core::mem::transmute(lpszstring.as_ptr()), lpszstring.len().try_into().unwrap()) + RasGetErrorStringA(resourceid, core::mem::transmute(lpszstring.as_ptr()), lpszstring.len().try_into().unwrap()) } #[inline] pub unsafe fn RasGetErrorStringW(resourceid: u32, lpszstring: &mut [u16]) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetErrorStringW(resourceid : u32, lpszstring : windows_core::PWSTR, inbufsize : u32) -> u32); - RasGetErrorStringW(core::mem::transmute(resourceid), core::mem::transmute(lpszstring.as_ptr()), lpszstring.len().try_into().unwrap()) + RasGetErrorStringW(resourceid, core::mem::transmute(lpszstring.as_ptr()), lpszstring.len().try_into().unwrap()) } #[inline] pub unsafe fn RasGetLinkStatistics(hrasconn: HRASCONN, dwsubentry: u32, lpstatistics: *mut RAS_STATS) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetLinkStatistics(hrasconn : HRASCONN, dwsubentry : u32, lpstatistics : *mut RAS_STATS) -> u32); - RasGetLinkStatistics(core::mem::transmute(hrasconn), core::mem::transmute(dwsubentry), core::mem::transmute(lpstatistics)) + RasGetLinkStatistics(hrasconn, dwsubentry, core::mem::transmute(lpstatistics)) } #[inline] pub unsafe fn RasGetPCscf(lpszpcscf: windows_core::PWSTR) -> u32 { @@ -1127,28 +1127,28 @@ pub unsafe fn RasGetPCscf(lpszpcscf: windows_core::PWSTR) -> u32 { #[inline] pub unsafe fn RasGetProjectionInfoA(param0: HRASCONN, param1: RASPROJECTION, param2: *mut core::ffi::c_void, param3: *mut u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetProjectionInfoA(param0 : HRASCONN, param1 : RASPROJECTION, param2 : *mut core::ffi::c_void, param3 : *mut u32) -> u32); - RasGetProjectionInfoA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + RasGetProjectionInfoA(param0, param1, core::mem::transmute(param2), core::mem::transmute(param3)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetProjectionInfoEx(hrasconn: HRASCONN, prasprojection: Option<*mut RAS_PROJECTION_INFO>, lpdwsize: *mut u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetProjectionInfoEx(hrasconn : HRASCONN, prasprojection : *mut RAS_PROJECTION_INFO, lpdwsize : *mut u32) -> u32); - RasGetProjectionInfoEx(core::mem::transmute(hrasconn), core::mem::transmute(prasprojection.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwsize)) + RasGetProjectionInfoEx(hrasconn, core::mem::transmute(prasprojection.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwsize)) } #[inline] pub unsafe fn RasGetProjectionInfoW(param0: HRASCONN, param1: RASPROJECTION, param2: *mut core::ffi::c_void, param3: *mut u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetProjectionInfoW(param0 : HRASCONN, param1 : RASPROJECTION, param2 : *mut core::ffi::c_void, param3 : *mut u32) -> u32); - RasGetProjectionInfoW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + RasGetProjectionInfoW(param0, param1, core::mem::transmute(param2), core::mem::transmute(param3)) } #[inline] pub unsafe fn RasGetSubEntryHandleA(param0: HRASCONN, param1: u32, param2: *mut HRASCONN) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetSubEntryHandleA(param0 : HRASCONN, param1 : u32, param2 : *mut HRASCONN) -> u32); - RasGetSubEntryHandleA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasGetSubEntryHandleA(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn RasGetSubEntryHandleW(param0: HRASCONN, param1: u32, param2: *mut HRASCONN) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasGetSubEntryHandleW(param0 : HRASCONN, param1 : u32, param2 : *mut HRASCONN) -> u32); - RasGetSubEntryHandleW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasGetSubEntryHandleW(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn RasGetSubEntryPropertiesA(param0: P0, param1: P1, param2: u32, param3: Option<*mut RASSUBENTRYA>, param4: Option<*mut u32>, param5: Option<*mut u8>, param6: Option<*mut u32>) -> u32 @@ -1157,7 +1157,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetSubEntryPropertiesA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : u32, param3 : *mut RASSUBENTRYA, param4 : *mut u32, param5 : *mut u8, param6 : *mut u32) -> u32); - RasGetSubEntryPropertiesA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3.unwrap_or(core::mem::zeroed())), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), core::mem::transmute(param6.unwrap_or(core::mem::zeroed()))) + RasGetSubEntryPropertiesA(param0.param().abi(), param1.param().abi(), param2, core::mem::transmute(param3.unwrap_or(core::mem::zeroed())), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), core::mem::transmute(param6.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RasGetSubEntryPropertiesW(param0: P0, param1: P1, param2: u32, param3: Option<*mut RASSUBENTRYW>, param4: Option<*mut u32>, param5: Option<*mut u8>, param6: Option<*mut u32>) -> u32 @@ -1166,22 +1166,22 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetSubEntryPropertiesW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : u32, param3 : *mut RASSUBENTRYW, param4 : *mut u32, param5 : *mut u8, param6 : *mut u32) -> u32); - RasGetSubEntryPropertiesW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3.unwrap_or(core::mem::zeroed())), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), core::mem::transmute(param6.unwrap_or(core::mem::zeroed()))) + RasGetSubEntryPropertiesW(param0.param().abi(), param1.param().abi(), param2, core::mem::transmute(param3.unwrap_or(core::mem::zeroed())), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), core::mem::transmute(param6.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RasHangUpA(param0: HRASCONN) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasHangUpA(param0 : HRASCONN) -> u32); - RasHangUpA(core::mem::transmute(param0)) + RasHangUpA(param0) } #[inline] pub unsafe fn RasHangUpW(param0: HRASCONN) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasHangUpW(param0 : HRASCONN) -> u32); - RasHangUpW(core::mem::transmute(param0)) + RasHangUpW(param0) } #[inline] pub unsafe fn RasInvokeEapUI(param0: HRASCONN, param1: u32, param2: *const RASDIALEXTENSIONS, param3: super::super::Foundation::HWND) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasInvokeEapUI(param0 : HRASCONN, param1 : u32, param2 : *const RASDIALEXTENSIONS, param3 : super::super::Foundation:: HWND) -> u32); - RasInvokeEapUI(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + RasInvokeEapUI(param0, param1, param2, param3) } #[inline] pub unsafe fn RasPhonebookDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGA) -> super::super::Foundation::BOOL @@ -1227,7 +1227,7 @@ where P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialAddressA(param0 : windows_core::PCSTR, param1 : u32, param2 : *const RASAUTODIALENTRYA, param3 : u32, param4 : u32) -> u32); - RasSetAutodialAddressA(param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2.unwrap_or(core::mem::zeroed())), core::mem::transmute(param3), core::mem::transmute(param4)) + RasSetAutodialAddressA(param0.param().abi(), param1, core::mem::transmute(param2.unwrap_or(core::mem::zeroed())), param3, param4) } #[inline] pub unsafe fn RasSetAutodialAddressW(param0: P0, param1: u32, param2: Option<*const RASAUTODIALENTRYW>, param3: u32, param4: u32) -> u32 @@ -1235,27 +1235,27 @@ where P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialAddressW(param0 : windows_core::PCWSTR, param1 : u32, param2 : *const RASAUTODIALENTRYW, param3 : u32, param4 : u32) -> u32); - RasSetAutodialAddressW(param0.param().abi(), core::mem::transmute(param1), core::mem::transmute(param2.unwrap_or(core::mem::zeroed())), core::mem::transmute(param3), core::mem::transmute(param4)) + RasSetAutodialAddressW(param0.param().abi(), param1, core::mem::transmute(param2.unwrap_or(core::mem::zeroed())), param3, param4) } #[inline] pub unsafe fn RasSetAutodialEnableA(param0: u32, param1: bool) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableA(param0 : u32, param1 : super::super::Foundation:: BOOL) -> u32); - RasSetAutodialEnableA(core::mem::transmute(param0), param1.into()) + RasSetAutodialEnableA(param0, param1.into()) } #[inline] pub unsafe fn RasSetAutodialEnableW(param0: u32, param1: bool) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableW(param0 : u32, param1 : super::super::Foundation:: BOOL) -> u32); - RasSetAutodialEnableW(core::mem::transmute(param0), param1.into()) + RasSetAutodialEnableW(param0, param1.into()) } #[inline] pub unsafe fn RasSetAutodialParamA(param0: u32, param1: *const core::ffi::c_void, param2: u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialParamA(param0 : u32, param1 : *const core::ffi::c_void, param2 : u32) -> u32); - RasSetAutodialParamA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasSetAutodialParamA(param0, param1, param2) } #[inline] pub unsafe fn RasSetAutodialParamW(param0: u32, param1: *const core::ffi::c_void, param2: u32) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialParamW(param0 : u32, param1 : *const core::ffi::c_void, param2 : u32) -> u32); - RasSetAutodialParamW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + RasSetAutodialParamW(param0, param1, param2) } #[inline] pub unsafe fn RasSetCredentialsA(param0: P0, param1: P1, param2: *const RASCREDENTIALSA, param3: bool) -> u32 @@ -1264,7 +1264,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetCredentialsA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *const RASCREDENTIALSA, param3 : super::super::Foundation:: BOOL) -> u32); - RasSetCredentialsA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3.into()) + RasSetCredentialsA(param0.param().abi(), param1.param().abi(), param2, param3.into()) } #[inline] pub unsafe fn RasSetCredentialsW(param0: P0, param1: P1, param2: *const RASCREDENTIALSW, param3: bool) -> u32 @@ -1273,7 +1273,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetCredentialsW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *const RASCREDENTIALSW, param3 : super::super::Foundation:: BOOL) -> u32); - RasSetCredentialsW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3.into()) + RasSetCredentialsW(param0.param().abi(), param1.param().abi(), param2, param3.into()) } #[inline] pub unsafe fn RasSetCustomAuthDataA(pszphonebook: P0, pszentry: P1, pbcustomauthdata: &[u8]) -> u32 @@ -1300,7 +1300,7 @@ where P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetEapUserDataA(htoken : super::super::Foundation:: HANDLE, pszphonebook : windows_core::PCSTR, pszentry : windows_core::PCSTR, pbeapdata : *const u8, dwsizeofeapdata : u32) -> u32); - RasSetEapUserDataA(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbeapdata), core::mem::transmute(dwsizeofeapdata)) + RasSetEapUserDataA(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), pszphonebook.param().abi(), pszentry.param().abi(), pbeapdata, dwsizeofeapdata) } #[inline] pub unsafe fn RasSetEapUserDataW(htoken: Option, pszphonebook: P1, pszentry: P2, pbeapdata: *const u8, dwsizeofeapdata: u32) -> u32 @@ -1309,7 +1309,7 @@ where P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetEapUserDataW(htoken : super::super::Foundation:: HANDLE, pszphonebook : windows_core::PCWSTR, pszentry : windows_core::PCWSTR, pbeapdata : *const u8, dwsizeofeapdata : u32) -> u32); - RasSetEapUserDataW(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbeapdata), core::mem::transmute(dwsizeofeapdata)) + RasSetEapUserDataW(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), pszphonebook.param().abi(), pszentry.param().abi(), pbeapdata, dwsizeofeapdata) } #[inline] pub unsafe fn RasSetEntryDialParamsA(param0: P0, param1: *const RASDIALPARAMSA, param2: bool) -> u32 @@ -1317,7 +1317,7 @@ where P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryDialParamsA(param0 : windows_core::PCSTR, param1 : *const RASDIALPARAMSA, param2 : super::super::Foundation:: BOOL) -> u32); - RasSetEntryDialParamsA(param0.param().abi(), core::mem::transmute(param1), param2.into()) + RasSetEntryDialParamsA(param0.param().abi(), param1, param2.into()) } #[inline] pub unsafe fn RasSetEntryDialParamsW(param0: P0, param1: *const RASDIALPARAMSW, param2: bool) -> u32 @@ -1325,7 +1325,7 @@ where P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryDialParamsW(param0 : windows_core::PCWSTR, param1 : *const RASDIALPARAMSW, param2 : super::super::Foundation:: BOOL) -> u32); - RasSetEntryDialParamsW(param0.param().abi(), core::mem::transmute(param1), param2.into()) + RasSetEntryDialParamsW(param0.param().abi(), param1, param2.into()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -1335,7 +1335,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryPropertiesA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *const RASENTRYA, param3 : u32, param4 : *const u8, param5 : u32) -> u32); - RasSetEntryPropertiesA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5)) + RasSetEntryPropertiesA(param0.param().abi(), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), param5) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -1345,7 +1345,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryPropertiesW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *const RASENTRYW, param3 : u32, param4 : *const u8, param5 : u32) -> u32); - RasSetEntryPropertiesW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), core::mem::transmute(param5)) + RasSetEntryPropertiesW(param0.param().abi(), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(core::mem::zeroed())), param5) } #[inline] pub unsafe fn RasSetSubEntryPropertiesA(param0: P0, param1: P1, param2: u32, param3: *const RASSUBENTRYA, param4: u32, param5: Option<*const u8>, param6: u32) -> u32 @@ -1354,7 +1354,7 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetSubEntryPropertiesA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : u32, param3 : *const RASSUBENTRYA, param4 : u32, param5 : *const u8, param6 : u32) -> u32); - RasSetSubEntryPropertiesA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), core::mem::transmute(param6)) + RasSetSubEntryPropertiesA(param0.param().abi(), param1.param().abi(), param2, param3, param4, core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), param6) } #[inline] pub unsafe fn RasSetSubEntryPropertiesW(param0: P0, param1: P1, param2: u32, param3: *const RASSUBENTRYW, param4: u32, param5: Option<*const u8>, param6: u32) -> u32 @@ -1363,13 +1363,13 @@ where P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetSubEntryPropertiesW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : u32, param3 : *const RASSUBENTRYW, param4 : u32, param5 : *const u8, param6 : u32) -> u32); - RasSetSubEntryPropertiesW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), core::mem::transmute(param6)) + RasSetSubEntryPropertiesW(param0.param().abi(), param1.param().abi(), param2, param3, param4, core::mem::transmute(param5.unwrap_or(core::mem::zeroed())), param6) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasUpdateConnection(hrasconn: HRASCONN, lprasupdateconn: *const RASUPDATECONN) -> u32 { windows_targets::link!("rasapi32.dll" "system" fn RasUpdateConnection(hrasconn : HRASCONN, lprasupdateconn : *const RASUPDATECONN) -> u32); - RasUpdateConnection(core::mem::transmute(hrasconn), core::mem::transmute(lprasupdateconn)) + RasUpdateConnection(hrasconn, lprasupdateconn) } #[inline] pub unsafe fn RasValidateEntryNameA(param0: P0, param1: P1) -> u32 @@ -1392,299 +1392,299 @@ where #[inline] pub unsafe fn RtmAddNextHop(rtmreghandle: isize, nexthopinfo: *mut RTM_NEXTHOP_INFO, nexthophandle: *mut isize, changeflags: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmAddNextHop(rtmreghandle : isize, nexthopinfo : *mut RTM_NEXTHOP_INFO, nexthophandle : *mut isize, changeflags : *mut u32) -> u32); - RtmAddNextHop(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthopinfo), core::mem::transmute(nexthophandle), core::mem::transmute(changeflags)) + RtmAddNextHop(rtmreghandle, core::mem::transmute(nexthopinfo), core::mem::transmute(nexthophandle), core::mem::transmute(changeflags)) } #[inline] pub unsafe fn RtmAddRouteToDest(rtmreghandle: isize, routehandle: *mut isize, destaddress: *mut RTM_NET_ADDRESS, routeinfo: *mut RTM_ROUTE_INFO, timetolive: u32, routelisthandle: isize, notifytype: u32, notifyhandle: isize, changeflags: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmAddRouteToDest(rtmreghandle : isize, routehandle : *mut isize, destaddress : *mut RTM_NET_ADDRESS, routeinfo : *mut RTM_ROUTE_INFO, timetolive : u32, routelisthandle : isize, notifytype : u32, notifyhandle : isize, changeflags : *mut u32) -> u32); - RtmAddRouteToDest(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), core::mem::transmute(destaddress), core::mem::transmute(routeinfo), core::mem::transmute(timetolive), core::mem::transmute(routelisthandle), core::mem::transmute(notifytype), core::mem::transmute(notifyhandle), core::mem::transmute(changeflags)) + RtmAddRouteToDest(rtmreghandle, core::mem::transmute(routehandle), core::mem::transmute(destaddress), core::mem::transmute(routeinfo), timetolive, routelisthandle, notifytype, notifyhandle, core::mem::transmute(changeflags)) } #[inline] pub unsafe fn RtmBlockMethods(rtmreghandle: isize, targethandle: super::super::Foundation::HANDLE, targettype: u8, blockingflag: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmBlockMethods(rtmreghandle : isize, targethandle : super::super::Foundation:: HANDLE, targettype : u8, blockingflag : u32) -> u32); - RtmBlockMethods(core::mem::transmute(rtmreghandle), core::mem::transmute(targethandle), core::mem::transmute(targettype), core::mem::transmute(blockingflag)) + RtmBlockMethods(rtmreghandle, targethandle, targettype, blockingflag) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: *mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress : *mut RTM_NET_ADDRESS, address : super::super::Networking::WinSock:: IN6_ADDR, dwlength : u32, dwaddresssize : u32) -> u32); - RtmConvertIpv6AddressAndLengthToNetAddress(core::mem::transmute(pnetaddress), core::mem::transmute(address), core::mem::transmute(dwlength), core::mem::transmute(dwaddresssize)) + RtmConvertIpv6AddressAndLengthToNetAddress(core::mem::transmute(pnetaddress), core::mem::transmute(address), dwlength, dwaddresssize) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: *mut RTM_NET_ADDRESS, paddress: *mut super::super::Networking::WinSock::IN6_ADDR, plength: *mut u32, dwaddresssize: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress : *mut RTM_NET_ADDRESS, paddress : *mut super::super::Networking::WinSock:: IN6_ADDR, plength : *mut u32, dwaddresssize : u32) -> u32); - RtmConvertNetAddressToIpv6AddressAndLength(core::mem::transmute(pnetaddress), core::mem::transmute(paddress), core::mem::transmute(plength), core::mem::transmute(dwaddresssize)) + RtmConvertNetAddressToIpv6AddressAndLength(core::mem::transmute(pnetaddress), core::mem::transmute(paddress), core::mem::transmute(plength), dwaddresssize) } #[inline] pub unsafe fn RtmCreateDestEnum(rtmreghandle: isize, targetviews: u32, enumflags: u32, netaddress: *mut RTM_NET_ADDRESS, protocolid: u32, rtmenumhandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmCreateDestEnum(rtmreghandle : isize, targetviews : u32, enumflags : u32, netaddress : *mut RTM_NET_ADDRESS, protocolid : u32, rtmenumhandle : *mut isize) -> u32); - RtmCreateDestEnum(core::mem::transmute(rtmreghandle), core::mem::transmute(targetviews), core::mem::transmute(enumflags), core::mem::transmute(netaddress), core::mem::transmute(protocolid), core::mem::transmute(rtmenumhandle)) + RtmCreateDestEnum(rtmreghandle, targetviews, enumflags, core::mem::transmute(netaddress), protocolid, core::mem::transmute(rtmenumhandle)) } #[inline] pub unsafe fn RtmCreateNextHopEnum(rtmreghandle: isize, enumflags: u32, netaddress: *mut RTM_NET_ADDRESS, rtmenumhandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmCreateNextHopEnum(rtmreghandle : isize, enumflags : u32, netaddress : *mut RTM_NET_ADDRESS, rtmenumhandle : *mut isize) -> u32); - RtmCreateNextHopEnum(core::mem::transmute(rtmreghandle), core::mem::transmute(enumflags), core::mem::transmute(netaddress), core::mem::transmute(rtmenumhandle)) + RtmCreateNextHopEnum(rtmreghandle, enumflags, core::mem::transmute(netaddress), core::mem::transmute(rtmenumhandle)) } #[inline] pub unsafe fn RtmCreateRouteEnum(rtmreghandle: isize, desthandle: isize, targetviews: u32, enumflags: u32, startdest: *mut RTM_NET_ADDRESS, matchingflags: u32, criteriaroute: *mut RTM_ROUTE_INFO, criteriainterface: u32, rtmenumhandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmCreateRouteEnum(rtmreghandle : isize, desthandle : isize, targetviews : u32, enumflags : u32, startdest : *mut RTM_NET_ADDRESS, matchingflags : u32, criteriaroute : *mut RTM_ROUTE_INFO, criteriainterface : u32, rtmenumhandle : *mut isize) -> u32); - RtmCreateRouteEnum(core::mem::transmute(rtmreghandle), core::mem::transmute(desthandle), core::mem::transmute(targetviews), core::mem::transmute(enumflags), core::mem::transmute(startdest), core::mem::transmute(matchingflags), core::mem::transmute(criteriaroute), core::mem::transmute(criteriainterface), core::mem::transmute(rtmenumhandle)) + RtmCreateRouteEnum(rtmreghandle, desthandle, targetviews, enumflags, core::mem::transmute(startdest), matchingflags, core::mem::transmute(criteriaroute), criteriainterface, core::mem::transmute(rtmenumhandle)) } #[inline] pub unsafe fn RtmCreateRouteList(rtmreghandle: isize, routelisthandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmCreateRouteList(rtmreghandle : isize, routelisthandle : *mut isize) -> u32); - RtmCreateRouteList(core::mem::transmute(rtmreghandle), core::mem::transmute(routelisthandle)) + RtmCreateRouteList(rtmreghandle, core::mem::transmute(routelisthandle)) } #[inline] pub unsafe fn RtmCreateRouteListEnum(rtmreghandle: isize, routelisthandle: isize, rtmenumhandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmCreateRouteListEnum(rtmreghandle : isize, routelisthandle : isize, rtmenumhandle : *mut isize) -> u32); - RtmCreateRouteListEnum(core::mem::transmute(rtmreghandle), core::mem::transmute(routelisthandle), core::mem::transmute(rtmenumhandle)) + RtmCreateRouteListEnum(rtmreghandle, routelisthandle, core::mem::transmute(rtmenumhandle)) } #[inline] pub unsafe fn RtmDeleteEnumHandle(rtmreghandle: isize, enumhandle: isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmDeleteEnumHandle(rtmreghandle : isize, enumhandle : isize) -> u32); - RtmDeleteEnumHandle(core::mem::transmute(rtmreghandle), core::mem::transmute(enumhandle)) + RtmDeleteEnumHandle(rtmreghandle, enumhandle) } #[inline] pub unsafe fn RtmDeleteNextHop(rtmreghandle: isize, nexthophandle: isize, nexthopinfo: *mut RTM_NEXTHOP_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmDeleteNextHop(rtmreghandle : isize, nexthophandle : isize, nexthopinfo : *mut RTM_NEXTHOP_INFO) -> u32); - RtmDeleteNextHop(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthophandle), core::mem::transmute(nexthopinfo)) + RtmDeleteNextHop(rtmreghandle, nexthophandle, core::mem::transmute(nexthopinfo)) } #[inline] pub unsafe fn RtmDeleteRouteList(rtmreghandle: isize, routelisthandle: isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmDeleteRouteList(rtmreghandle : isize, routelisthandle : isize) -> u32); - RtmDeleteRouteList(core::mem::transmute(rtmreghandle), core::mem::transmute(routelisthandle)) + RtmDeleteRouteList(rtmreghandle, routelisthandle) } #[inline] pub unsafe fn RtmDeleteRouteToDest(rtmreghandle: isize, routehandle: isize, changeflags: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmDeleteRouteToDest(rtmreghandle : isize, routehandle : isize, changeflags : *mut u32) -> u32); - RtmDeleteRouteToDest(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), core::mem::transmute(changeflags)) + RtmDeleteRouteToDest(rtmreghandle, routehandle, core::mem::transmute(changeflags)) } #[inline] pub unsafe fn RtmDeregisterEntity(rtmreghandle: isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmDeregisterEntity(rtmreghandle : isize) -> u32); - RtmDeregisterEntity(core::mem::transmute(rtmreghandle)) + RtmDeregisterEntity(rtmreghandle) } #[inline] pub unsafe fn RtmDeregisterFromChangeNotification(rtmreghandle: isize, notifyhandle: isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmDeregisterFromChangeNotification(rtmreghandle : isize, notifyhandle : isize) -> u32); - RtmDeregisterFromChangeNotification(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle)) + RtmDeregisterFromChangeNotification(rtmreghandle, notifyhandle) } #[inline] pub unsafe fn RtmFindNextHop(rtmreghandle: isize, nexthopinfo: *mut RTM_NEXTHOP_INFO, nexthophandle: *mut isize, nexthoppointer: *mut *mut RTM_NEXTHOP_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmFindNextHop(rtmreghandle : isize, nexthopinfo : *mut RTM_NEXTHOP_INFO, nexthophandle : *mut isize, nexthoppointer : *mut *mut RTM_NEXTHOP_INFO) -> u32); - RtmFindNextHop(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthopinfo), core::mem::transmute(nexthophandle), core::mem::transmute(nexthoppointer)) + RtmFindNextHop(rtmreghandle, core::mem::transmute(nexthopinfo), core::mem::transmute(nexthophandle), core::mem::transmute(nexthoppointer)) } #[inline] pub unsafe fn RtmGetChangeStatus(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, changestatus: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetChangeStatus(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, changestatus : *mut super::super::Foundation:: BOOL) -> u32); - RtmGetChangeStatus(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle), core::mem::transmute(desthandle), core::mem::transmute(changestatus)) + RtmGetChangeStatus(rtmreghandle, notifyhandle, desthandle, core::mem::transmute(changestatus)) } #[inline] pub unsafe fn RtmGetChangedDests(rtmreghandle: isize, notifyhandle: isize, numdests: *mut u32, changeddests: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetChangedDests(rtmreghandle : isize, notifyhandle : isize, numdests : *mut u32, changeddests : *mut RTM_DEST_INFO) -> u32); - RtmGetChangedDests(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle), core::mem::transmute(numdests), core::mem::transmute(changeddests)) + RtmGetChangedDests(rtmreghandle, notifyhandle, core::mem::transmute(numdests), core::mem::transmute(changeddests)) } #[inline] pub unsafe fn RtmGetDestInfo(rtmreghandle: isize, desthandle: isize, protocolid: u32, targetviews: u32, destinfo: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetDestInfo(rtmreghandle : isize, desthandle : isize, protocolid : u32, targetviews : u32, destinfo : *mut RTM_DEST_INFO) -> u32); - RtmGetDestInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(desthandle), core::mem::transmute(protocolid), core::mem::transmute(targetviews), core::mem::transmute(destinfo)) + RtmGetDestInfo(rtmreghandle, desthandle, protocolid, targetviews, core::mem::transmute(destinfo)) } #[inline] pub unsafe fn RtmGetEntityInfo(rtmreghandle: isize, entityhandle: isize, entityinfo: *mut RTM_ENTITY_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetEntityInfo(rtmreghandle : isize, entityhandle : isize, entityinfo : *mut RTM_ENTITY_INFO) -> u32); - RtmGetEntityInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(entityhandle), core::mem::transmute(entityinfo)) + RtmGetEntityInfo(rtmreghandle, entityhandle, core::mem::transmute(entityinfo)) } #[inline] pub unsafe fn RtmGetEntityMethods(rtmreghandle: isize, entityhandle: isize, nummethods: *mut u32, exptmethods: *mut RTM_ENTITY_EXPORT_METHOD) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetEntityMethods(rtmreghandle : isize, entityhandle : isize, nummethods : *mut u32, exptmethods : *mut RTM_ENTITY_EXPORT_METHOD) -> u32); - RtmGetEntityMethods(core::mem::transmute(rtmreghandle), core::mem::transmute(entityhandle), core::mem::transmute(nummethods), core::mem::transmute(exptmethods)) + RtmGetEntityMethods(rtmreghandle, entityhandle, core::mem::transmute(nummethods), core::mem::transmute(exptmethods)) } #[inline] pub unsafe fn RtmGetEnumDests(rtmreghandle: isize, enumhandle: isize, numdests: *mut u32, destinfos: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetEnumDests(rtmreghandle : isize, enumhandle : isize, numdests : *mut u32, destinfos : *mut RTM_DEST_INFO) -> u32); - RtmGetEnumDests(core::mem::transmute(rtmreghandle), core::mem::transmute(enumhandle), core::mem::transmute(numdests), core::mem::transmute(destinfos)) + RtmGetEnumDests(rtmreghandle, enumhandle, core::mem::transmute(numdests), core::mem::transmute(destinfos)) } #[inline] pub unsafe fn RtmGetEnumNextHops(rtmreghandle: isize, enumhandle: isize, numnexthops: *mut u32, nexthophandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetEnumNextHops(rtmreghandle : isize, enumhandle : isize, numnexthops : *mut u32, nexthophandles : *mut isize) -> u32); - RtmGetEnumNextHops(core::mem::transmute(rtmreghandle), core::mem::transmute(enumhandle), core::mem::transmute(numnexthops), core::mem::transmute(nexthophandles)) + RtmGetEnumNextHops(rtmreghandle, enumhandle, core::mem::transmute(numnexthops), core::mem::transmute(nexthophandles)) } #[inline] pub unsafe fn RtmGetEnumRoutes(rtmreghandle: isize, enumhandle: isize, numroutes: *mut u32, routehandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetEnumRoutes(rtmreghandle : isize, enumhandle : isize, numroutes : *mut u32, routehandles : *mut isize) -> u32); - RtmGetEnumRoutes(core::mem::transmute(rtmreghandle), core::mem::transmute(enumhandle), core::mem::transmute(numroutes), core::mem::transmute(routehandles)) + RtmGetEnumRoutes(rtmreghandle, enumhandle, core::mem::transmute(numroutes), core::mem::transmute(routehandles)) } #[inline] pub unsafe fn RtmGetExactMatchDestination(rtmreghandle: isize, destaddress: *mut RTM_NET_ADDRESS, protocolid: u32, targetviews: u32, destinfo: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetExactMatchDestination(rtmreghandle : isize, destaddress : *mut RTM_NET_ADDRESS, protocolid : u32, targetviews : u32, destinfo : *mut RTM_DEST_INFO) -> u32); - RtmGetExactMatchDestination(core::mem::transmute(rtmreghandle), core::mem::transmute(destaddress), core::mem::transmute(protocolid), core::mem::transmute(targetviews), core::mem::transmute(destinfo)) + RtmGetExactMatchDestination(rtmreghandle, core::mem::transmute(destaddress), protocolid, targetviews, core::mem::transmute(destinfo)) } #[inline] pub unsafe fn RtmGetExactMatchRoute(rtmreghandle: isize, destaddress: *mut RTM_NET_ADDRESS, matchingflags: u32, routeinfo: *mut RTM_ROUTE_INFO, interfaceindex: u32, targetviews: u32, routehandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetExactMatchRoute(rtmreghandle : isize, destaddress : *mut RTM_NET_ADDRESS, matchingflags : u32, routeinfo : *mut RTM_ROUTE_INFO, interfaceindex : u32, targetviews : u32, routehandle : *mut isize) -> u32); - RtmGetExactMatchRoute(core::mem::transmute(rtmreghandle), core::mem::transmute(destaddress), core::mem::transmute(matchingflags), core::mem::transmute(routeinfo), core::mem::transmute(interfaceindex), core::mem::transmute(targetviews), core::mem::transmute(routehandle)) + RtmGetExactMatchRoute(rtmreghandle, core::mem::transmute(destaddress), matchingflags, core::mem::transmute(routeinfo), interfaceindex, targetviews, core::mem::transmute(routehandle)) } #[inline] pub unsafe fn RtmGetLessSpecificDestination(rtmreghandle: isize, desthandle: isize, protocolid: u32, targetviews: u32, destinfo: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetLessSpecificDestination(rtmreghandle : isize, desthandle : isize, protocolid : u32, targetviews : u32, destinfo : *mut RTM_DEST_INFO) -> u32); - RtmGetLessSpecificDestination(core::mem::transmute(rtmreghandle), core::mem::transmute(desthandle), core::mem::transmute(protocolid), core::mem::transmute(targetviews), core::mem::transmute(destinfo)) + RtmGetLessSpecificDestination(rtmreghandle, desthandle, protocolid, targetviews, core::mem::transmute(destinfo)) } #[inline] pub unsafe fn RtmGetListEnumRoutes(rtmreghandle: isize, enumhandle: isize, numroutes: *mut u32, routehandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetListEnumRoutes(rtmreghandle : isize, enumhandle : isize, numroutes : *mut u32, routehandles : *mut isize) -> u32); - RtmGetListEnumRoutes(core::mem::transmute(rtmreghandle), core::mem::transmute(enumhandle), core::mem::transmute(numroutes), core::mem::transmute(routehandles)) + RtmGetListEnumRoutes(rtmreghandle, enumhandle, core::mem::transmute(numroutes), core::mem::transmute(routehandles)) } #[inline] pub unsafe fn RtmGetMostSpecificDestination(rtmreghandle: isize, destaddress: *mut RTM_NET_ADDRESS, protocolid: u32, targetviews: u32, destinfo: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetMostSpecificDestination(rtmreghandle : isize, destaddress : *mut RTM_NET_ADDRESS, protocolid : u32, targetviews : u32, destinfo : *mut RTM_DEST_INFO) -> u32); - RtmGetMostSpecificDestination(core::mem::transmute(rtmreghandle), core::mem::transmute(destaddress), core::mem::transmute(protocolid), core::mem::transmute(targetviews), core::mem::transmute(destinfo)) + RtmGetMostSpecificDestination(rtmreghandle, core::mem::transmute(destaddress), protocolid, targetviews, core::mem::transmute(destinfo)) } #[inline] pub unsafe fn RtmGetNextHopInfo(rtmreghandle: isize, nexthophandle: isize, nexthopinfo: *mut RTM_NEXTHOP_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetNextHopInfo(rtmreghandle : isize, nexthophandle : isize, nexthopinfo : *mut RTM_NEXTHOP_INFO) -> u32); - RtmGetNextHopInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthophandle), core::mem::transmute(nexthopinfo)) + RtmGetNextHopInfo(rtmreghandle, nexthophandle, core::mem::transmute(nexthopinfo)) } #[inline] pub unsafe fn RtmGetNextHopPointer(rtmreghandle: isize, nexthophandle: isize, nexthoppointer: *mut *mut RTM_NEXTHOP_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetNextHopPointer(rtmreghandle : isize, nexthophandle : isize, nexthoppointer : *mut *mut RTM_NEXTHOP_INFO) -> u32); - RtmGetNextHopPointer(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthophandle), core::mem::transmute(nexthoppointer)) + RtmGetNextHopPointer(rtmreghandle, nexthophandle, core::mem::transmute(nexthoppointer)) } #[inline] pub unsafe fn RtmGetOpaqueInformationPointer(rtmreghandle: isize, desthandle: isize, opaqueinfopointer: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetOpaqueInformationPointer(rtmreghandle : isize, desthandle : isize, opaqueinfopointer : *mut *mut core::ffi::c_void) -> u32); - RtmGetOpaqueInformationPointer(core::mem::transmute(rtmreghandle), core::mem::transmute(desthandle), core::mem::transmute(opaqueinfopointer)) + RtmGetOpaqueInformationPointer(rtmreghandle, desthandle, core::mem::transmute(opaqueinfopointer)) } #[inline] pub unsafe fn RtmGetRegisteredEntities(rtmreghandle: isize, numentities: *mut u32, entityhandles: *mut isize, entityinfos: *mut RTM_ENTITY_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetRegisteredEntities(rtmreghandle : isize, numentities : *mut u32, entityhandles : *mut isize, entityinfos : *mut RTM_ENTITY_INFO) -> u32); - RtmGetRegisteredEntities(core::mem::transmute(rtmreghandle), core::mem::transmute(numentities), core::mem::transmute(entityhandles), core::mem::transmute(entityinfos)) + RtmGetRegisteredEntities(rtmreghandle, core::mem::transmute(numentities), core::mem::transmute(entityhandles), core::mem::transmute(entityinfos)) } #[inline] pub unsafe fn RtmGetRouteInfo(rtmreghandle: isize, routehandle: isize, routeinfo: *mut RTM_ROUTE_INFO, destaddress: *mut RTM_NET_ADDRESS) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetRouteInfo(rtmreghandle : isize, routehandle : isize, routeinfo : *mut RTM_ROUTE_INFO, destaddress : *mut RTM_NET_ADDRESS) -> u32); - RtmGetRouteInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), core::mem::transmute(routeinfo), core::mem::transmute(destaddress)) + RtmGetRouteInfo(rtmreghandle, routehandle, core::mem::transmute(routeinfo), core::mem::transmute(destaddress)) } #[inline] pub unsafe fn RtmGetRoutePointer(rtmreghandle: isize, routehandle: isize, routepointer: *mut *mut RTM_ROUTE_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmGetRoutePointer(rtmreghandle : isize, routehandle : isize, routepointer : *mut *mut RTM_ROUTE_INFO) -> u32); - RtmGetRoutePointer(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), core::mem::transmute(routepointer)) + RtmGetRoutePointer(rtmreghandle, routehandle, core::mem::transmute(routepointer)) } #[inline] pub unsafe fn RtmHoldDestination(rtmreghandle: isize, desthandle: isize, targetviews: u32, holdtime: u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmHoldDestination(rtmreghandle : isize, desthandle : isize, targetviews : u32, holdtime : u32) -> u32); - RtmHoldDestination(core::mem::transmute(rtmreghandle), core::mem::transmute(desthandle), core::mem::transmute(targetviews), core::mem::transmute(holdtime)) + RtmHoldDestination(rtmreghandle, desthandle, targetviews, holdtime) } #[inline] pub unsafe fn RtmIgnoreChangedDests(rtmreghandle: isize, notifyhandle: isize, numdests: u32, changeddests: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmIgnoreChangedDests(rtmreghandle : isize, notifyhandle : isize, numdests : u32, changeddests : *mut isize) -> u32); - RtmIgnoreChangedDests(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle), core::mem::transmute(numdests), core::mem::transmute(changeddests)) + RtmIgnoreChangedDests(rtmreghandle, notifyhandle, numdests, core::mem::transmute(changeddests)) } #[inline] pub unsafe fn RtmInsertInRouteList(rtmreghandle: isize, routelisthandle: isize, numroutes: u32, routehandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmInsertInRouteList(rtmreghandle : isize, routelisthandle : isize, numroutes : u32, routehandles : *mut isize) -> u32); - RtmInsertInRouteList(core::mem::transmute(rtmreghandle), core::mem::transmute(routelisthandle), core::mem::transmute(numroutes), core::mem::transmute(routehandles)) + RtmInsertInRouteList(rtmreghandle, routelisthandle, numroutes, core::mem::transmute(routehandles)) } #[inline] pub unsafe fn RtmInvokeMethod(rtmreghandle: isize, entityhandle: isize, input: *mut RTM_ENTITY_METHOD_INPUT, outputsize: *mut u32, output: *mut RTM_ENTITY_METHOD_OUTPUT) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmInvokeMethod(rtmreghandle : isize, entityhandle : isize, input : *mut RTM_ENTITY_METHOD_INPUT, outputsize : *mut u32, output : *mut RTM_ENTITY_METHOD_OUTPUT) -> u32); - RtmInvokeMethod(core::mem::transmute(rtmreghandle), core::mem::transmute(entityhandle), core::mem::transmute(input), core::mem::transmute(outputsize), core::mem::transmute(output)) + RtmInvokeMethod(rtmreghandle, entityhandle, core::mem::transmute(input), core::mem::transmute(outputsize), core::mem::transmute(output)) } #[inline] pub unsafe fn RtmIsBestRoute(rtmreghandle: isize, routehandle: isize, bestinviews: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmIsBestRoute(rtmreghandle : isize, routehandle : isize, bestinviews : *mut u32) -> u32); - RtmIsBestRoute(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), core::mem::transmute(bestinviews)) + RtmIsBestRoute(rtmreghandle, routehandle, core::mem::transmute(bestinviews)) } #[inline] pub unsafe fn RtmIsMarkedForChangeNotification(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, destmarked: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmIsMarkedForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, destmarked : *mut super::super::Foundation:: BOOL) -> u32); - RtmIsMarkedForChangeNotification(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle), core::mem::transmute(desthandle), core::mem::transmute(destmarked)) + RtmIsMarkedForChangeNotification(rtmreghandle, notifyhandle, desthandle, core::mem::transmute(destmarked)) } #[inline] pub unsafe fn RtmLockDestination(rtmreghandle: isize, desthandle: isize, exclusive: bool, lockdest: bool) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmLockDestination(rtmreghandle : isize, desthandle : isize, exclusive : super::super::Foundation:: BOOL, lockdest : super::super::Foundation:: BOOL) -> u32); - RtmLockDestination(core::mem::transmute(rtmreghandle), core::mem::transmute(desthandle), exclusive.into(), lockdest.into()) + RtmLockDestination(rtmreghandle, desthandle, exclusive.into(), lockdest.into()) } #[inline] pub unsafe fn RtmLockNextHop(rtmreghandle: isize, nexthophandle: isize, exclusive: bool, locknexthop: bool, nexthoppointer: *mut *mut RTM_NEXTHOP_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmLockNextHop(rtmreghandle : isize, nexthophandle : isize, exclusive : super::super::Foundation:: BOOL, locknexthop : super::super::Foundation:: BOOL, nexthoppointer : *mut *mut RTM_NEXTHOP_INFO) -> u32); - RtmLockNextHop(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthophandle), exclusive.into(), locknexthop.into(), core::mem::transmute(nexthoppointer)) + RtmLockNextHop(rtmreghandle, nexthophandle, exclusive.into(), locknexthop.into(), core::mem::transmute(nexthoppointer)) } #[inline] pub unsafe fn RtmLockRoute(rtmreghandle: isize, routehandle: isize, exclusive: bool, lockroute: bool, routepointer: *mut *mut RTM_ROUTE_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmLockRoute(rtmreghandle : isize, routehandle : isize, exclusive : super::super::Foundation:: BOOL, lockroute : super::super::Foundation:: BOOL, routepointer : *mut *mut RTM_ROUTE_INFO) -> u32); - RtmLockRoute(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), exclusive.into(), lockroute.into(), core::mem::transmute(routepointer)) + RtmLockRoute(rtmreghandle, routehandle, exclusive.into(), lockroute.into(), core::mem::transmute(routepointer)) } #[inline] pub unsafe fn RtmMarkDestForChangeNotification(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, markdest: bool) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmMarkDestForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, markdest : super::super::Foundation:: BOOL) -> u32); - RtmMarkDestForChangeNotification(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle), core::mem::transmute(desthandle), markdest.into()) + RtmMarkDestForChangeNotification(rtmreghandle, notifyhandle, desthandle, markdest.into()) } #[inline] pub unsafe fn RtmReferenceHandles(rtmreghandle: isize, numhandles: u32, rtmhandles: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReferenceHandles(rtmreghandle : isize, numhandles : u32, rtmhandles : *mut super::super::Foundation:: HANDLE) -> u32); - RtmReferenceHandles(core::mem::transmute(rtmreghandle), core::mem::transmute(numhandles), core::mem::transmute(rtmhandles)) + RtmReferenceHandles(rtmreghandle, numhandles, core::mem::transmute(rtmhandles)) } #[inline] pub unsafe fn RtmRegisterEntity(rtmentityinfo: *mut RTM_ENTITY_INFO, exportmethods: *mut RTM_ENTITY_EXPORT_METHODS, eventcallback: RTM_EVENT_CALLBACK, reserveopaquepointer: bool, rtmregprofile: *mut RTM_REGN_PROFILE, rtmreghandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmRegisterEntity(rtmentityinfo : *mut RTM_ENTITY_INFO, exportmethods : *mut RTM_ENTITY_EXPORT_METHODS, eventcallback : RTM_EVENT_CALLBACK, reserveopaquepointer : super::super::Foundation:: BOOL, rtmregprofile : *mut RTM_REGN_PROFILE, rtmreghandle : *mut isize) -> u32); - RtmRegisterEntity(core::mem::transmute(rtmentityinfo), core::mem::transmute(exportmethods), core::mem::transmute(eventcallback), reserveopaquepointer.into(), core::mem::transmute(rtmregprofile), core::mem::transmute(rtmreghandle)) + RtmRegisterEntity(core::mem::transmute(rtmentityinfo), core::mem::transmute(exportmethods), eventcallback, reserveopaquepointer.into(), core::mem::transmute(rtmregprofile), core::mem::transmute(rtmreghandle)) } #[inline] pub unsafe fn RtmRegisterForChangeNotification(rtmreghandle: isize, targetviews: u32, notifyflags: u32, notifycontext: *mut core::ffi::c_void, notifyhandle: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmRegisterForChangeNotification(rtmreghandle : isize, targetviews : u32, notifyflags : u32, notifycontext : *mut core::ffi::c_void, notifyhandle : *mut isize) -> u32); - RtmRegisterForChangeNotification(core::mem::transmute(rtmreghandle), core::mem::transmute(targetviews), core::mem::transmute(notifyflags), core::mem::transmute(notifycontext), core::mem::transmute(notifyhandle)) + RtmRegisterForChangeNotification(rtmreghandle, targetviews, notifyflags, core::mem::transmute(notifycontext), core::mem::transmute(notifyhandle)) } #[inline] pub unsafe fn RtmReleaseChangedDests(rtmreghandle: isize, notifyhandle: isize, numdests: u32, changeddests: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseChangedDests(rtmreghandle : isize, notifyhandle : isize, numdests : u32, changeddests : *mut RTM_DEST_INFO) -> u32); - RtmReleaseChangedDests(core::mem::transmute(rtmreghandle), core::mem::transmute(notifyhandle), core::mem::transmute(numdests), core::mem::transmute(changeddests)) + RtmReleaseChangedDests(rtmreghandle, notifyhandle, numdests, core::mem::transmute(changeddests)) } #[inline] pub unsafe fn RtmReleaseDestInfo(rtmreghandle: isize, destinfo: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseDestInfo(rtmreghandle : isize, destinfo : *mut RTM_DEST_INFO) -> u32); - RtmReleaseDestInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(destinfo)) + RtmReleaseDestInfo(rtmreghandle, core::mem::transmute(destinfo)) } #[inline] pub unsafe fn RtmReleaseDests(rtmreghandle: isize, numdests: u32, destinfos: *mut RTM_DEST_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseDests(rtmreghandle : isize, numdests : u32, destinfos : *mut RTM_DEST_INFO) -> u32); - RtmReleaseDests(core::mem::transmute(rtmreghandle), core::mem::transmute(numdests), core::mem::transmute(destinfos)) + RtmReleaseDests(rtmreghandle, numdests, core::mem::transmute(destinfos)) } #[inline] pub unsafe fn RtmReleaseEntities(rtmreghandle: isize, numentities: u32, entityhandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseEntities(rtmreghandle : isize, numentities : u32, entityhandles : *mut isize) -> u32); - RtmReleaseEntities(core::mem::transmute(rtmreghandle), core::mem::transmute(numentities), core::mem::transmute(entityhandles)) + RtmReleaseEntities(rtmreghandle, numentities, core::mem::transmute(entityhandles)) } #[inline] pub unsafe fn RtmReleaseEntityInfo(rtmreghandle: isize, entityinfo: *mut RTM_ENTITY_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseEntityInfo(rtmreghandle : isize, entityinfo : *mut RTM_ENTITY_INFO) -> u32); - RtmReleaseEntityInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(entityinfo)) + RtmReleaseEntityInfo(rtmreghandle, core::mem::transmute(entityinfo)) } #[inline] pub unsafe fn RtmReleaseNextHopInfo(rtmreghandle: isize, nexthopinfo: *mut RTM_NEXTHOP_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseNextHopInfo(rtmreghandle : isize, nexthopinfo : *mut RTM_NEXTHOP_INFO) -> u32); - RtmReleaseNextHopInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(nexthopinfo)) + RtmReleaseNextHopInfo(rtmreghandle, core::mem::transmute(nexthopinfo)) } #[inline] pub unsafe fn RtmReleaseNextHops(rtmreghandle: isize, numnexthops: u32, nexthophandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseNextHops(rtmreghandle : isize, numnexthops : u32, nexthophandles : *mut isize) -> u32); - RtmReleaseNextHops(core::mem::transmute(rtmreghandle), core::mem::transmute(numnexthops), core::mem::transmute(nexthophandles)) + RtmReleaseNextHops(rtmreghandle, numnexthops, core::mem::transmute(nexthophandles)) } #[inline] pub unsafe fn RtmReleaseRouteInfo(rtmreghandle: isize, routeinfo: *mut RTM_ROUTE_INFO) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseRouteInfo(rtmreghandle : isize, routeinfo : *mut RTM_ROUTE_INFO) -> u32); - RtmReleaseRouteInfo(core::mem::transmute(rtmreghandle), core::mem::transmute(routeinfo)) + RtmReleaseRouteInfo(rtmreghandle, core::mem::transmute(routeinfo)) } #[inline] pub unsafe fn RtmReleaseRoutes(rtmreghandle: isize, numroutes: u32, routehandles: *mut isize) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmReleaseRoutes(rtmreghandle : isize, numroutes : u32, routehandles : *mut isize) -> u32); - RtmReleaseRoutes(core::mem::transmute(rtmreghandle), core::mem::transmute(numroutes), core::mem::transmute(routehandles)) + RtmReleaseRoutes(rtmreghandle, numroutes, core::mem::transmute(routehandles)) } #[inline] pub unsafe fn RtmUpdateAndUnlockRoute(rtmreghandle: isize, routehandle: isize, timetolive: u32, routelisthandle: isize, notifytype: u32, notifyhandle: isize, changeflags: *mut u32) -> u32 { windows_targets::link!("rtm.dll" "system" fn RtmUpdateAndUnlockRoute(rtmreghandle : isize, routehandle : isize, timetolive : u32, routelisthandle : isize, notifytype : u32, notifyhandle : isize, changeflags : *mut u32) -> u32); - RtmUpdateAndUnlockRoute(core::mem::transmute(rtmreghandle), core::mem::transmute(routehandle), core::mem::transmute(timetolive), core::mem::transmute(routelisthandle), core::mem::transmute(notifytype), core::mem::transmute(notifyhandle), core::mem::transmute(changeflags)) + RtmUpdateAndUnlockRoute(rtmreghandle, routehandle, timetolive, routelisthandle, notifytype, notifyhandle, core::mem::transmute(changeflags)) } pub const ALLOW_NO_AUTH: u32 = 1u32; pub const ALL_SOURCES: MGM_ENUM_TYPES = MGM_ENUM_TYPES(1i32); diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs index b1750c2727..a46a7dcbc1 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn SnmpCancelMsg(session: isize, reqid: i32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpCancelMsg(session : isize, reqid : i32) -> u32); - SnmpCancelMsg(core::mem::transmute(session), core::mem::transmute(reqid)) + SnmpCancelMsg(session, reqid) } #[inline] pub unsafe fn SnmpCleanup() -> u32 { @@ -16,97 +16,97 @@ pub unsafe fn SnmpCleanupEx() -> u32 { #[inline] pub unsafe fn SnmpClose(session: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpClose(session : isize) -> u32); - SnmpClose(core::mem::transmute(session)) + SnmpClose(session) } #[inline] pub unsafe fn SnmpContextToStr(context: isize, string: *mut smiOCTETS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpContextToStr(context : isize, string : *mut smiOCTETS) -> u32); - SnmpContextToStr(core::mem::transmute(context), core::mem::transmute(string)) + SnmpContextToStr(context, core::mem::transmute(string)) } #[inline] pub unsafe fn SnmpCountVbl(vbl: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpCountVbl(vbl : isize) -> u32); - SnmpCountVbl(core::mem::transmute(vbl)) + SnmpCountVbl(vbl) } #[inline] pub unsafe fn SnmpCreatePdu(session: isize, pdu_type: SNMP_PDU_TYPE, request_id: i32, error_status: i32, error_index: i32, varbindlist: isize) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpCreatePdu(session : isize, pdu_type : SNMP_PDU_TYPE, request_id : i32, error_status : i32, error_index : i32, varbindlist : isize) -> isize); - SnmpCreatePdu(core::mem::transmute(session), core::mem::transmute(pdu_type), core::mem::transmute(request_id), core::mem::transmute(error_status), core::mem::transmute(error_index), core::mem::transmute(varbindlist)) + SnmpCreatePdu(session, pdu_type, request_id, error_status, error_index, varbindlist) } #[inline] pub unsafe fn SnmpCreateSession(hwnd: super::super::Foundation::HWND, wmsg: u32, fcallback: SNMPAPI_CALLBACK, lpclientdata: *mut core::ffi::c_void) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpCreateSession(hwnd : super::super::Foundation:: HWND, wmsg : u32, fcallback : SNMPAPI_CALLBACK, lpclientdata : *mut core::ffi::c_void) -> isize); - SnmpCreateSession(core::mem::transmute(hwnd), core::mem::transmute(wmsg), core::mem::transmute(fcallback), core::mem::transmute(lpclientdata)) + SnmpCreateSession(hwnd, wmsg, fcallback, core::mem::transmute(lpclientdata)) } #[inline] pub unsafe fn SnmpCreateVbl(session: isize, name: *mut smiOID, value: *mut smiVALUE) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpCreateVbl(session : isize, name : *mut smiOID, value : *mut smiVALUE) -> isize); - SnmpCreateVbl(core::mem::transmute(session), core::mem::transmute(name), core::mem::transmute(value)) + SnmpCreateVbl(session, core::mem::transmute(name), core::mem::transmute(value)) } #[inline] pub unsafe fn SnmpDecodeMsg(session: isize, srcentity: *mut isize, dstentity: *mut isize, context: *mut isize, pdu: *mut isize, msgbufdesc: *mut smiOCTETS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpDecodeMsg(session : isize, srcentity : *mut isize, dstentity : *mut isize, context : *mut isize, pdu : *mut isize, msgbufdesc : *mut smiOCTETS) -> u32); - SnmpDecodeMsg(core::mem::transmute(session), core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(pdu), core::mem::transmute(msgbufdesc)) + SnmpDecodeMsg(session, core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(pdu), core::mem::transmute(msgbufdesc)) } #[inline] pub unsafe fn SnmpDeleteVb(vbl: isize, index: u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpDeleteVb(vbl : isize, index : u32) -> u32); - SnmpDeleteVb(core::mem::transmute(vbl), core::mem::transmute(index)) + SnmpDeleteVb(vbl, index) } #[inline] pub unsafe fn SnmpDuplicatePdu(session: isize, pdu: isize) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpDuplicatePdu(session : isize, pdu : isize) -> isize); - SnmpDuplicatePdu(core::mem::transmute(session), core::mem::transmute(pdu)) + SnmpDuplicatePdu(session, pdu) } #[inline] pub unsafe fn SnmpDuplicateVbl(session: isize, vbl: isize) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpDuplicateVbl(session : isize, vbl : isize) -> isize); - SnmpDuplicateVbl(core::mem::transmute(session), core::mem::transmute(vbl)) + SnmpDuplicateVbl(session, vbl) } #[inline] pub unsafe fn SnmpEncodeMsg(session: isize, srcentity: isize, dstentity: isize, context: isize, pdu: isize, msgbufdesc: *mut smiOCTETS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpEncodeMsg(session : isize, srcentity : isize, dstentity : isize, context : isize, pdu : isize, msgbufdesc : *mut smiOCTETS) -> u32); - SnmpEncodeMsg(core::mem::transmute(session), core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(pdu), core::mem::transmute(msgbufdesc)) + SnmpEncodeMsg(session, srcentity, dstentity, context, pdu, core::mem::transmute(msgbufdesc)) } #[inline] pub unsafe fn SnmpEntityToStr(entity: isize, string: &mut [u8]) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpEntityToStr(entity : isize, size : u32, string : windows_core::PSTR) -> u32); - SnmpEntityToStr(core::mem::transmute(entity), string.len().try_into().unwrap(), core::mem::transmute(string.as_ptr())) + SnmpEntityToStr(entity, string.len().try_into().unwrap(), core::mem::transmute(string.as_ptr())) } #[inline] pub unsafe fn SnmpFreeContext(context: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpFreeContext(context : isize) -> u32); - SnmpFreeContext(core::mem::transmute(context)) + SnmpFreeContext(context) } #[inline] pub unsafe fn SnmpFreeDescriptor(syntax: u32, descriptor: *mut smiOCTETS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpFreeDescriptor(syntax : u32, descriptor : *mut smiOCTETS) -> u32); - SnmpFreeDescriptor(core::mem::transmute(syntax), core::mem::transmute(descriptor)) + SnmpFreeDescriptor(syntax, core::mem::transmute(descriptor)) } #[inline] pub unsafe fn SnmpFreeEntity(entity: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpFreeEntity(entity : isize) -> u32); - SnmpFreeEntity(core::mem::transmute(entity)) + SnmpFreeEntity(entity) } #[inline] pub unsafe fn SnmpFreePdu(pdu: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpFreePdu(pdu : isize) -> u32); - SnmpFreePdu(core::mem::transmute(pdu)) + SnmpFreePdu(pdu) } #[inline] pub unsafe fn SnmpFreeVbl(vbl: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpFreeVbl(vbl : isize) -> u32); - SnmpFreeVbl(core::mem::transmute(vbl)) + SnmpFreeVbl(vbl) } #[inline] pub unsafe fn SnmpGetLastError(session: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpGetLastError(session : isize) -> u32); - SnmpGetLastError(core::mem::transmute(session)) + SnmpGetLastError(session) } #[inline] pub unsafe fn SnmpGetPduData(pdu: isize, pdu_type: *mut SNMP_PDU_TYPE, request_id: *mut i32, error_status: *mut SNMP_ERROR, error_index: *mut i32, varbindlist: *mut isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpGetPduData(pdu : isize, pdu_type : *mut SNMP_PDU_TYPE, request_id : *mut i32, error_status : *mut SNMP_ERROR, error_index : *mut i32, varbindlist : *mut isize) -> u32); - SnmpGetPduData(core::mem::transmute(pdu), core::mem::transmute(pdu_type), core::mem::transmute(request_id), core::mem::transmute(error_status), core::mem::transmute(error_index), core::mem::transmute(varbindlist)) + SnmpGetPduData(pdu, core::mem::transmute(pdu_type), core::mem::transmute(request_id), core::mem::transmute(error_status), core::mem::transmute(error_index), core::mem::transmute(varbindlist)) } #[inline] pub unsafe fn SnmpGetRetransmitMode(nretransmitmode: *mut SNMP_STATUS) -> u32 { @@ -116,12 +116,12 @@ pub unsafe fn SnmpGetRetransmitMode(nretransmitmode: *mut SNMP_STATUS) -> u32 { #[inline] pub unsafe fn SnmpGetRetry(hentity: isize, npolicyretry: *mut u32, nactualretry: *mut u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpGetRetry(hentity : isize, npolicyretry : *mut u32, nactualretry : *mut u32) -> u32); - SnmpGetRetry(core::mem::transmute(hentity), core::mem::transmute(npolicyretry), core::mem::transmute(nactualretry)) + SnmpGetRetry(hentity, core::mem::transmute(npolicyretry), core::mem::transmute(nactualretry)) } #[inline] pub unsafe fn SnmpGetTimeout(hentity: isize, npolicytimeout: *mut u32, nactualtimeout: *mut u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpGetTimeout(hentity : isize, npolicytimeout : *mut u32, nactualtimeout : *mut u32) -> u32); - SnmpGetTimeout(core::mem::transmute(hentity), core::mem::transmute(npolicytimeout), core::mem::transmute(nactualtimeout)) + SnmpGetTimeout(hentity, core::mem::transmute(npolicytimeout), core::mem::transmute(nactualtimeout)) } #[inline] pub unsafe fn SnmpGetTranslateMode(ntranslatemode: *mut SNMP_API_TRANSLATE_MODE) -> u32 { @@ -131,7 +131,7 @@ pub unsafe fn SnmpGetTranslateMode(ntranslatemode: *mut SNMP_API_TRANSLATE_MODE) #[inline] pub unsafe fn SnmpGetVb(vbl: isize, index: u32, name: *mut smiOID, value: *mut smiVALUE) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpGetVb(vbl : isize, index : u32, name : *mut smiOID, value : *mut smiVALUE) -> u32); - SnmpGetVb(core::mem::transmute(vbl), core::mem::transmute(index), core::mem::transmute(name), core::mem::transmute(value)) + SnmpGetVb(vbl, index, core::mem::transmute(name), core::mem::transmute(value)) } #[inline] pub unsafe fn SnmpGetVendorInfo(vendorinfo: *mut smiVENDORINFO) -> u32 { @@ -141,12 +141,12 @@ pub unsafe fn SnmpGetVendorInfo(vendorinfo: *mut smiVENDORINFO) -> u32 { #[inline] pub unsafe fn SnmpListen(hentity: isize, lstatus: SNMP_STATUS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpListen(hentity : isize, lstatus : SNMP_STATUS) -> u32); - SnmpListen(core::mem::transmute(hentity), core::mem::transmute(lstatus)) + SnmpListen(hentity, lstatus) } #[inline] pub unsafe fn SnmpListenEx(hentity: isize, lstatus: u32, nuseentityaddr: u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpListenEx(hentity : isize, lstatus : u32, nuseentityaddr : u32) -> u32); - SnmpListenEx(core::mem::transmute(hentity), core::mem::transmute(lstatus), core::mem::transmute(nuseentityaddr)) + SnmpListenEx(hentity, lstatus, nuseentityaddr) } #[inline] pub unsafe fn SnmpMgrClose(session: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { @@ -156,7 +156,7 @@ pub unsafe fn SnmpMgrClose(session: *mut core::ffi::c_void) -> super::super::Fou #[inline] pub unsafe fn SnmpMgrCtl(session: *mut core::ffi::c_void, dwctlcode: u32, lpvinbuffer: *mut core::ffi::c_void, cbinbuffer: u32, lpvoutbuffer: *mut core::ffi::c_void, cboutbuffer: u32, lpcbbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrCtl(session : *mut core::ffi::c_void, dwctlcode : u32, lpvinbuffer : *mut core::ffi::c_void, cbinbuffer : u32, lpvoutbuffer : *mut core::ffi::c_void, cboutbuffer : u32, lpcbbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); - SnmpMgrCtl(core::mem::transmute(session), core::mem::transmute(dwctlcode), core::mem::transmute(lpvinbuffer), core::mem::transmute(cbinbuffer), core::mem::transmute(lpvoutbuffer), core::mem::transmute(cboutbuffer), core::mem::transmute(lpcbbytesreturned)).ok() + SnmpMgrCtl(core::mem::transmute(session), dwctlcode, core::mem::transmute(lpvinbuffer), cbinbuffer, core::mem::transmute(lpvoutbuffer), cboutbuffer, core::mem::transmute(lpcbbytesreturned)).ok() } #[inline] pub unsafe fn SnmpMgrGetTrap(enterprise: *mut AsnObjectIdentifier, ipaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> super::super::Foundation::BOOL { @@ -180,12 +180,12 @@ where P1: windows_core::Param, { windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrOpen(lpagentaddress : windows_core::PCSTR, lpagentcommunity : windows_core::PCSTR, ntimeout : i32, nretries : i32) -> *mut core::ffi::c_void); - SnmpMgrOpen(lpagentaddress.param().abi(), lpagentcommunity.param().abi(), core::mem::transmute(ntimeout), core::mem::transmute(nretries)) + SnmpMgrOpen(lpagentaddress.param().abi(), lpagentcommunity.param().abi(), ntimeout, nretries) } #[inline] pub unsafe fn SnmpMgrRequest(session: *mut core::ffi::c_void, requesttype: u8, variablebindings: *mut SnmpVarBindList, errorstatus: *mut SNMP_ERROR_STATUS, errorindex: *mut i32) -> i32 { windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrRequest(session : *mut core::ffi::c_void, requesttype : u8, variablebindings : *mut SnmpVarBindList, errorstatus : *mut SNMP_ERROR_STATUS, errorindex : *mut i32) -> i32); - SnmpMgrRequest(core::mem::transmute(session), core::mem::transmute(requesttype), core::mem::transmute(variablebindings), core::mem::transmute(errorstatus), core::mem::transmute(errorindex)) + SnmpMgrRequest(core::mem::transmute(session), requesttype, core::mem::transmute(variablebindings), core::mem::transmute(errorstatus), core::mem::transmute(errorindex)) } #[inline] pub unsafe fn SnmpMgrStrToOid(string: P0, oid: *mut AsnObjectIdentifier) -> super::super::Foundation::BOOL @@ -203,7 +203,7 @@ pub unsafe fn SnmpMgrTrapListen(phtrapavailable: *mut super::super::Foundation:: #[inline] pub unsafe fn SnmpOidCompare(xoid: *mut smiOID, yoid: *mut smiOID, maxlen: u32, result: *mut i32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpOidCompare(xoid : *mut smiOID, yoid : *mut smiOID, maxlen : u32, result : *mut i32) -> u32); - SnmpOidCompare(core::mem::transmute(xoid), core::mem::transmute(yoid), core::mem::transmute(maxlen), core::mem::transmute(result)) + SnmpOidCompare(core::mem::transmute(xoid), core::mem::transmute(yoid), maxlen, core::mem::transmute(result)) } #[inline] pub unsafe fn SnmpOidCopy(srcoid: *mut smiOID, dstoid: *mut smiOID) -> u32 { @@ -213,62 +213,62 @@ pub unsafe fn SnmpOidCopy(srcoid: *mut smiOID, dstoid: *mut smiOID) -> u32 { #[inline] pub unsafe fn SnmpOidToStr(srcoid: *const smiOID, string: &mut [u8]) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpOidToStr(srcoid : *const smiOID, size : u32, string : windows_core::PSTR) -> u32); - SnmpOidToStr(core::mem::transmute(srcoid), string.len().try_into().unwrap(), core::mem::transmute(string.as_ptr())) + SnmpOidToStr(srcoid, string.len().try_into().unwrap(), core::mem::transmute(string.as_ptr())) } #[inline] pub unsafe fn SnmpOpen(hwnd: super::super::Foundation::HWND, wmsg: u32) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpOpen(hwnd : super::super::Foundation:: HWND, wmsg : u32) -> isize); - SnmpOpen(core::mem::transmute(hwnd), core::mem::transmute(wmsg)) + SnmpOpen(hwnd, wmsg) } #[inline] pub unsafe fn SnmpRecvMsg(session: isize, srcentity: *mut isize, dstentity: *mut isize, context: *mut isize, pdu: *mut isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpRecvMsg(session : isize, srcentity : *mut isize, dstentity : *mut isize, context : *mut isize, pdu : *mut isize) -> u32); - SnmpRecvMsg(core::mem::transmute(session), core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(pdu)) + SnmpRecvMsg(session, core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(pdu)) } #[inline] pub unsafe fn SnmpRegister(session: isize, srcentity: isize, dstentity: isize, context: isize, notification: *mut smiOID, state: SNMP_STATUS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpRegister(session : isize, srcentity : isize, dstentity : isize, context : isize, notification : *mut smiOID, state : SNMP_STATUS) -> u32); - SnmpRegister(core::mem::transmute(session), core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(notification), core::mem::transmute(state)) + SnmpRegister(session, srcentity, dstentity, context, core::mem::transmute(notification), state) } #[inline] pub unsafe fn SnmpSendMsg(session: isize, srcentity: isize, dstentity: isize, context: isize, pdu: isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSendMsg(session : isize, srcentity : isize, dstentity : isize, context : isize, pdu : isize) -> u32); - SnmpSendMsg(core::mem::transmute(session), core::mem::transmute(srcentity), core::mem::transmute(dstentity), core::mem::transmute(context), core::mem::transmute(pdu)) + SnmpSendMsg(session, srcentity, dstentity, context, pdu) } #[inline] pub unsafe fn SnmpSetPduData(pdu: isize, pdu_type: *const i32, request_id: *const i32, non_repeaters: *const i32, max_repetitions: *const i32, varbindlist: *const isize) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetPduData(pdu : isize, pdu_type : *const i32, request_id : *const i32, non_repeaters : *const i32, max_repetitions : *const i32, varbindlist : *const isize) -> u32); - SnmpSetPduData(core::mem::transmute(pdu), core::mem::transmute(pdu_type), core::mem::transmute(request_id), core::mem::transmute(non_repeaters), core::mem::transmute(max_repetitions), core::mem::transmute(varbindlist)) + SnmpSetPduData(pdu, pdu_type, request_id, non_repeaters, max_repetitions, varbindlist) } #[inline] pub unsafe fn SnmpSetPort(hentity: isize, nport: u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetPort(hentity : isize, nport : u32) -> u32); - SnmpSetPort(core::mem::transmute(hentity), core::mem::transmute(nport)) + SnmpSetPort(hentity, nport) } #[inline] pub unsafe fn SnmpSetRetransmitMode(nretransmitmode: SNMP_STATUS) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetRetransmitMode(nretransmitmode : SNMP_STATUS) -> u32); - SnmpSetRetransmitMode(core::mem::transmute(nretransmitmode)) + SnmpSetRetransmitMode(nretransmitmode) } #[inline] pub unsafe fn SnmpSetRetry(hentity: isize, npolicyretry: u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetRetry(hentity : isize, npolicyretry : u32) -> u32); - SnmpSetRetry(core::mem::transmute(hentity), core::mem::transmute(npolicyretry)) + SnmpSetRetry(hentity, npolicyretry) } #[inline] pub unsafe fn SnmpSetTimeout(hentity: isize, npolicytimeout: u32) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetTimeout(hentity : isize, npolicytimeout : u32) -> u32); - SnmpSetTimeout(core::mem::transmute(hentity), core::mem::transmute(npolicytimeout)) + SnmpSetTimeout(hentity, npolicytimeout) } #[inline] pub unsafe fn SnmpSetTranslateMode(ntranslatemode: SNMP_API_TRANSLATE_MODE) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetTranslateMode(ntranslatemode : SNMP_API_TRANSLATE_MODE) -> u32); - SnmpSetTranslateMode(core::mem::transmute(ntranslatemode)) + SnmpSetTranslateMode(ntranslatemode) } #[inline] pub unsafe fn SnmpSetVb(vbl: isize, index: u32, name: *mut smiOID, value: *mut smiVALUE) -> u32 { windows_targets::link!("wsnmp32.dll" "system" fn SnmpSetVb(vbl : isize, index : u32, name : *mut smiOID, value : *mut smiVALUE) -> u32); - SnmpSetVb(core::mem::transmute(vbl), core::mem::transmute(index), core::mem::transmute(name), core::mem::transmute(value)) + SnmpSetVb(vbl, index, core::mem::transmute(name), core::mem::transmute(value)) } #[inline] pub unsafe fn SnmpStartup(nmajorversion: *mut u32, nminorversion: *mut u32, nlevel: *mut u32, ntranslatemode: *mut SNMP_API_TRANSLATE_MODE, nretransmitmode: *mut SNMP_STATUS) -> u32 { @@ -283,7 +283,7 @@ pub unsafe fn SnmpStartupEx(nmajorversion: *mut u32, nminorversion: *mut u32, nl #[inline] pub unsafe fn SnmpStrToContext(session: isize, string: *mut smiOCTETS) -> isize { windows_targets::link!("wsnmp32.dll" "system" fn SnmpStrToContext(session : isize, string : *mut smiOCTETS) -> isize); - SnmpStrToContext(core::mem::transmute(session), core::mem::transmute(string)) + SnmpStrToContext(session, core::mem::transmute(string)) } #[inline] pub unsafe fn SnmpStrToEntity(session: isize, string: P1) -> isize @@ -291,7 +291,7 @@ where P1: windows_core::Param, { windows_targets::link!("wsnmp32.dll" "system" fn SnmpStrToEntity(session : isize, string : windows_core::PCSTR) -> isize); - SnmpStrToEntity(core::mem::transmute(session), string.param().abi()) + SnmpStrToEntity(session, string.param().abi()) } #[inline] pub unsafe fn SnmpStrToOid(string: P0, dstoid: *mut smiOID) -> u32 @@ -309,7 +309,7 @@ pub unsafe fn SnmpSvcGetUptime() -> u32 { #[inline] pub unsafe fn SnmpSvcSetLogLevel(nloglevel: SNMP_LOG) { windows_targets::link!("snmpapi.dll" "system" fn SnmpSvcSetLogLevel(nloglevel : SNMP_LOG)); - SnmpSvcSetLogLevel(core::mem::transmute(nloglevel)) + SnmpSvcSetLogLevel(nloglevel) } #[inline] pub unsafe fn SnmpSvcSetLogType(nlogtype: SNMP_OUTPUT_LOG_TYPE) { @@ -332,17 +332,17 @@ where P1: windows_core::Param, { windows_targets::link!("snmpapi.dll" "cdecl" fn SnmpUtilDbgPrint(nloglevel : SNMP_LOG, szformat : windows_core::PCSTR)); - SnmpUtilDbgPrint(core::mem::transmute(nloglevel), szformat.param().abi()) + SnmpUtilDbgPrint(nloglevel, szformat.param().abi()) } #[inline] pub unsafe fn SnmpUtilIdsToA(ids: *mut u32, idlength: u32) -> windows_core::PSTR { windows_targets::link!("snmpapi.dll" "system" fn SnmpUtilIdsToA(ids : *mut u32, idlength : u32) -> windows_core::PSTR); - SnmpUtilIdsToA(core::mem::transmute(ids), core::mem::transmute(idlength)) + SnmpUtilIdsToA(core::mem::transmute(ids), idlength) } #[inline] pub unsafe fn SnmpUtilMemAlloc(nbytes: u32) -> *mut core::ffi::c_void { windows_targets::link!("snmpapi.dll" "system" fn SnmpUtilMemAlloc(nbytes : u32) -> *mut core::ffi::c_void); - SnmpUtilMemAlloc(core::mem::transmute(nbytes)) + SnmpUtilMemAlloc(nbytes) } #[inline] pub unsafe fn SnmpUtilMemFree(pmem: *mut core::ffi::c_void) { @@ -352,7 +352,7 @@ pub unsafe fn SnmpUtilMemFree(pmem: *mut core::ffi::c_void) { #[inline] pub unsafe fn SnmpUtilMemReAlloc(pmem: *mut core::ffi::c_void, nbytes: u32) -> *mut core::ffi::c_void { windows_targets::link!("snmpapi.dll" "system" fn SnmpUtilMemReAlloc(pmem : *mut core::ffi::c_void, nbytes : u32) -> *mut core::ffi::c_void); - SnmpUtilMemReAlloc(core::mem::transmute(pmem), core::mem::transmute(nbytes)) + SnmpUtilMemReAlloc(core::mem::transmute(pmem), nbytes) } #[inline] pub unsafe fn SnmpUtilOctetsCmp(poctets1: *mut AsnOctetString, poctets2: *mut AsnOctetString) -> i32 { @@ -372,7 +372,7 @@ pub unsafe fn SnmpUtilOctetsFree(poctets: *mut AsnOctetString) { #[inline] pub unsafe fn SnmpUtilOctetsNCmp(poctets1: *mut AsnOctetString, poctets2: *mut AsnOctetString, nchars: u32) -> i32 { windows_targets::link!("snmpapi.dll" "system" fn SnmpUtilOctetsNCmp(poctets1 : *mut AsnOctetString, poctets2 : *mut AsnOctetString, nchars : u32) -> i32); - SnmpUtilOctetsNCmp(core::mem::transmute(poctets1), core::mem::transmute(poctets2), core::mem::transmute(nchars)) + SnmpUtilOctetsNCmp(core::mem::transmute(poctets1), core::mem::transmute(poctets2), nchars) } #[inline] pub unsafe fn SnmpUtilOidAppend(poiddst: *mut AsnObjectIdentifier, poidsrc: *mut AsnObjectIdentifier) -> i32 { @@ -397,7 +397,7 @@ pub unsafe fn SnmpUtilOidFree(poid: *mut AsnObjectIdentifier) { #[inline] pub unsafe fn SnmpUtilOidNCmp(poid1: *mut AsnObjectIdentifier, poid2: *mut AsnObjectIdentifier, nsubids: u32) -> i32 { windows_targets::link!("snmpapi.dll" "system" fn SnmpUtilOidNCmp(poid1 : *mut AsnObjectIdentifier, poid2 : *mut AsnObjectIdentifier, nsubids : u32) -> i32); - SnmpUtilOidNCmp(core::mem::transmute(poid1), core::mem::transmute(poid2), core::mem::transmute(nsubids)) + SnmpUtilOidNCmp(core::mem::transmute(poid1), core::mem::transmute(poid2), nsubids) } #[inline] pub unsafe fn SnmpUtilOidToA(oid: *mut AsnObjectIdentifier) -> windows_core::PSTR { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs index 6b1891a5be..913f14ff4c 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn MultinetGetConnectionPerformanceA(lpnetresource: *const NETRESOURCEA, lpnetconnectinfostruct: *mut NETCONNECTINFOSTRUCT) -> u32 { windows_targets::link!("mpr.dll" "system" fn MultinetGetConnectionPerformanceA(lpnetresource : *const NETRESOURCEA, lpnetconnectinfostruct : *mut NETCONNECTINFOSTRUCT) -> u32); - MultinetGetConnectionPerformanceA(core::mem::transmute(lpnetresource), core::mem::transmute(lpnetconnectinfostruct)) + MultinetGetConnectionPerformanceA(lpnetresource, core::mem::transmute(lpnetconnectinfostruct)) } #[inline] pub unsafe fn MultinetGetConnectionPerformanceW(lpnetresource: *const NETRESOURCEW, lpnetconnectinfostruct: *mut NETCONNECTINFOSTRUCT) -> u32 { windows_targets::link!("mpr.dll" "system" fn MultinetGetConnectionPerformanceW(lpnetresource : *const NETRESOURCEW, lpnetconnectinfostruct : *mut NETCONNECTINFOSTRUCT) -> u32); - MultinetGetConnectionPerformanceW(core::mem::transmute(lpnetresource), core::mem::transmute(lpnetconnectinfostruct)) + MultinetGetConnectionPerformanceW(lpnetresource, core::mem::transmute(lpnetconnectinfostruct)) } #[inline] pub unsafe fn NPAddConnection(lpnetresource: *const NETRESOURCEW, lppassword: P1, lpusername: P2) -> u32 @@ -15,7 +15,7 @@ where P2: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPAddConnection(lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpusername : windows_core::PCWSTR) -> u32); - NPAddConnection(core::mem::transmute(lpnetresource), lppassword.param().abi(), lpusername.param().abi()) + NPAddConnection(lpnetresource, lppassword.param().abi(), lpusername.param().abi()) } #[inline] pub unsafe fn NPAddConnection3(hwndowner: Option, lpnetresource: *const NETRESOURCEW, lppassword: P2, lpusername: P3, dwflags: NET_CONNECT_FLAGS) -> u32 @@ -24,12 +24,12 @@ where P3: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPAddConnection3(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpusername : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS) -> u32); - NPAddConnection3(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), lppassword.param().abi(), lpusername.param().abi(), core::mem::transmute(dwflags)) + NPAddConnection3(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn NPAddConnection4(hwndowner: Option, lpnetresource: *const NETRESOURCEW, lpauthbuffer: Option<*const core::ffi::c_void>, cbauthbuffer: u32, dwflags: u32, lpuseoptions: Option<&[u8]>) -> u32 { windows_targets::link!("ntlanman.dll" "system" fn NPAddConnection4(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lpauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : u32, lpuseoptions : *const u8, cbuseoptions : u32) -> u32); - NPAddConnection4(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), core::mem::transmute(lpauthbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbauthbuffer), core::mem::transmute(dwflags), core::mem::transmute(lpuseoptions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpuseoptions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + NPAddConnection4(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, core::mem::transmute(lpauthbuffer.unwrap_or(core::mem::zeroed())), cbauthbuffer, dwflags, core::mem::transmute(lpuseoptions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpuseoptions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn NPCancelConnection(lpname: P0, fforce: bool) -> u32 @@ -45,17 +45,17 @@ where P0: windows_core::Param, { windows_targets::link!("ntlanman.dll" "system" fn NPCancelConnection2(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL, dwflags : u32) -> u32); - NPCancelConnection2(lpname.param().abi(), fforce.into(), core::mem::transmute(dwflags)) + NPCancelConnection2(lpname.param().abi(), fforce.into(), dwflags) } #[inline] pub unsafe fn NPCloseEnum(henum: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("davclnt.dll" "system" fn NPCloseEnum(henum : super::super::Foundation:: HANDLE) -> u32); - NPCloseEnum(core::mem::transmute(henum)) + NPCloseEnum(henum) } #[inline] pub unsafe fn NPEnumResource(henum: super::super::Foundation::HANDLE, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32 { windows_targets::link!("davclnt.dll" "system" fn NPEnumResource(henum : super::super::Foundation:: HANDLE, lpccount : *mut u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32); - NPEnumResource(core::mem::transmute(henum), core::mem::transmute(lpccount), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + NPEnumResource(henum, core::mem::transmute(lpccount), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn NPFormatNetworkName(lpremotename: P0, lpformattedname: windows_core::PWSTR, lpnlength: *mut u32, dwflags: NETWORK_NAME_FORMAT_FLAGS, dwavecharperline: u32) -> u32 @@ -63,12 +63,12 @@ where P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPFormatNetworkName(lpremotename : windows_core::PCWSTR, lpformattedname : windows_core::PWSTR, lpnlength : *mut u32, dwflags : NETWORK_NAME_FORMAT_FLAGS, dwavecharperline : u32) -> u32); - NPFormatNetworkName(lpremotename.param().abi(), core::mem::transmute(lpformattedname), core::mem::transmute(lpnlength), core::mem::transmute(dwflags), core::mem::transmute(dwavecharperline)) + NPFormatNetworkName(lpremotename.param().abi(), core::mem::transmute(lpformattedname), core::mem::transmute(lpnlength), dwflags, dwavecharperline) } #[inline] pub unsafe fn NPGetCaps(ndex: u32) -> u32 { windows_targets::link!("davclnt.dll" "system" fn NPGetCaps(ndex : u32) -> u32); - NPGetCaps(core::mem::transmute(ndex)) + NPGetCaps(ndex) } #[inline] pub unsafe fn NPGetConnection(lplocalname: P0, lpremotename: Option, lpnbufferlen: *mut u32) -> u32 @@ -84,7 +84,7 @@ where P0: windows_core::Param, { windows_targets::link!("ntlanman.dll" "system" fn NPGetConnection3(lplocalname : windows_core::PCWSTR, dwlevel : u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32); - NPGetConnection3(lplocalname.param().abi(), core::mem::transmute(dwlevel), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + NPGetConnection3(lplocalname.param().abi(), dwlevel, core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn NPGetConnectionPerformance(lpremotename: P0, lpnetconnectinfo: *mut NETCONNECTINFOSTRUCT) -> u32 @@ -105,12 +105,12 @@ where #[inline] pub unsafe fn NPGetResourceInformation(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32, lplpsystem: *mut windows_core::PWSTR) -> u32 { windows_targets::link!("davclnt.dll" "system" fn NPGetResourceInformation(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32, lplpsystem : *mut windows_core::PWSTR) -> u32); - NPGetResourceInformation(core::mem::transmute(lpnetresource), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize), core::mem::transmute(lplpsystem)) + NPGetResourceInformation(lpnetresource, core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize), core::mem::transmute(lplpsystem)) } #[inline] pub unsafe fn NPGetResourceParent(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32 { windows_targets::link!("davclnt.dll" "system" fn NPGetResourceParent(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32); - NPGetResourceParent(core::mem::transmute(lpnetresource), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + NPGetResourceParent(lpnetresource, core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn NPGetUniversalName(lplocalpath: P0, dwinfolevel: UNC_INFO_LEVEL, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32 @@ -118,7 +118,7 @@ where P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPGetUniversalName(lplocalpath : windows_core::PCWSTR, dwinfolevel : UNC_INFO_LEVEL, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32); - NPGetUniversalName(lplocalpath.param().abi(), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + NPGetUniversalName(lplocalpath.param().abi(), dwinfolevel, core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn NPGetUser(lpname: P0, lpusername: windows_core::PWSTR, lpnbufferlen: *mut u32) -> u32 @@ -131,7 +131,7 @@ where #[inline] pub unsafe fn NPOpenEnum(dwscope: u32, dwtype: u32, dwusage: u32, lpnetresource: Option<*const NETRESOURCEW>, lphenum: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("davclnt.dll" "system" fn NPOpenEnum(dwscope : u32, dwtype : u32, dwusage : u32, lpnetresource : *const NETRESOURCEW, lphenum : *mut super::super::Foundation:: HANDLE) -> u32); - NPOpenEnum(core::mem::transmute(dwscope), core::mem::transmute(dwtype), core::mem::transmute(dwusage), core::mem::transmute(lpnetresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphenum)) + NPOpenEnum(dwscope, dwtype, dwusage, core::mem::transmute(lpnetresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphenum)) } #[inline] pub unsafe fn WNetAddConnection2A(lpnetresource: *const NETRESOURCEA, lppassword: P1, lpusername: P2, dwflags: NET_CONNECT_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -140,7 +140,7 @@ where P2: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection2A(lpnetresource : *const NETRESOURCEA, lppassword : windows_core::PCSTR, lpusername : windows_core::PCSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection2A(core::mem::transmute(lpnetresource), lppassword.param().abi(), lpusername.param().abi(), core::mem::transmute(dwflags)) + WNetAddConnection2A(lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection2W(lpnetresource: *const NETRESOURCEW, lppassword: P1, lpusername: P2, dwflags: NET_CONNECT_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -149,7 +149,7 @@ where P2: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection2W(lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpusername : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection2W(core::mem::transmute(lpnetresource), lppassword.param().abi(), lpusername.param().abi(), core::mem::transmute(dwflags)) + WNetAddConnection2W(lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection3A(hwndowner: Option, lpnetresource: *const NETRESOURCEA, lppassword: P2, lpusername: P3, dwflags: NET_CONNECT_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -158,7 +158,7 @@ where P3: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection3A(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, lppassword : windows_core::PCSTR, lpusername : windows_core::PCSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection3A(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), lppassword.param().abi(), lpusername.param().abi(), core::mem::transmute(dwflags)) + WNetAddConnection3A(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection3W(hwndowner: Option, lpnetresource: *const NETRESOURCEW, lppassword: P2, lpusername: P3, dwflags: NET_CONNECT_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -167,17 +167,17 @@ where P3: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection3W(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpusername : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection3W(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), lppassword.param().abi(), lpusername.param().abi(), core::mem::transmute(dwflags)) + WNetAddConnection3W(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection4A(hwndowner: Option, lpnetresource: *const NETRESOURCEA, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, dwflags: NET_CONNECT_FLAGS, lpuseoptions: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection4A(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : NET_CONNECT_FLAGS, lpuseoptions : *const u8, cbuseoptions : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection4A(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), core::mem::transmute(pauthbuffer), core::mem::transmute(cbauthbuffer), core::mem::transmute(dwflags), core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) + WNetAddConnection4A(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, pauthbuffer, cbauthbuffer, dwflags, core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) } #[inline] pub unsafe fn WNetAddConnection4W(hwndowner: Option, lpnetresource: *const NETRESOURCEW, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, dwflags: NET_CONNECT_FLAGS, lpuseoptions: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection4W(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : NET_CONNECT_FLAGS, lpuseoptions : *const u8, cbuseoptions : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection4W(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), core::mem::transmute(pauthbuffer), core::mem::transmute(cbauthbuffer), core::mem::transmute(dwflags), core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) + WNetAddConnection4W(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, pauthbuffer, cbauthbuffer, dwflags, core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) } #[inline] pub unsafe fn WNetAddConnectionA(lpremotename: P0, lppassword: P1, lplocalname: P2) -> super::super::Foundation::WIN32_ERROR @@ -205,7 +205,7 @@ where P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2A(lpname : windows_core::PCSTR, dwflags : NET_CONNECT_FLAGS, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - WNetCancelConnection2A(lpname.param().abi(), core::mem::transmute(dwflags), fforce.into()) + WNetCancelConnection2A(lpname.param().abi(), dwflags, fforce.into()) } #[inline] pub unsafe fn WNetCancelConnection2W(lpname: P0, dwflags: NET_CONNECT_FLAGS, fforce: bool) -> super::super::Foundation::WIN32_ERROR @@ -213,7 +213,7 @@ where P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2W(lpname : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - WNetCancelConnection2W(lpname.param().abi(), core::mem::transmute(dwflags), fforce.into()) + WNetCancelConnection2W(lpname.param().abi(), dwflags, fforce.into()) } #[inline] pub unsafe fn WNetCancelConnectionA(lpname: P0, fforce: bool) -> super::super::Foundation::WIN32_ERROR @@ -234,12 +234,12 @@ where #[inline] pub unsafe fn WNetCloseEnum(henum: super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetCloseEnum(henum : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - WNetCloseEnum(core::mem::transmute(henum)) + WNetCloseEnum(henum) } #[inline] pub unsafe fn WNetConnectionDialog(hwnd: super::super::Foundation::HWND, dwtype: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetConnectionDialog(hwnd : super::super::Foundation:: HWND, dwtype : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetConnectionDialog(core::mem::transmute(hwnd), core::mem::transmute(dwtype)) + WNetConnectionDialog(hwnd, dwtype) } #[inline] pub unsafe fn WNetConnectionDialog1A(lpconndlgstruct: *mut CONNECTDLGSTRUCTA) -> super::super::Foundation::WIN32_ERROR { @@ -254,27 +254,27 @@ pub unsafe fn WNetConnectionDialog1W(lpconndlgstruct: *mut CONNECTDLGSTRUCTW) -> #[inline] pub unsafe fn WNetDisconnectDialog(hwnd: Option, dwtype: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetDisconnectDialog(hwnd : super::super::Foundation:: HWND, dwtype : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetDisconnectDialog(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwtype)) + WNetDisconnectDialog(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), dwtype) } #[inline] pub unsafe fn WNetDisconnectDialog1A(lpconndlgstruct: *const DISCDLGSTRUCTA) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetDisconnectDialog1A(lpconndlgstruct : *const DISCDLGSTRUCTA) -> super::super::Foundation:: WIN32_ERROR); - WNetDisconnectDialog1A(core::mem::transmute(lpconndlgstruct)) + WNetDisconnectDialog1A(lpconndlgstruct) } #[inline] pub unsafe fn WNetDisconnectDialog1W(lpconndlgstruct: *const DISCDLGSTRUCTW) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetDisconnectDialog1W(lpconndlgstruct : *const DISCDLGSTRUCTW) -> super::super::Foundation:: WIN32_ERROR); - WNetDisconnectDialog1W(core::mem::transmute(lpconndlgstruct)) + WNetDisconnectDialog1W(lpconndlgstruct) } #[inline] pub unsafe fn WNetEnumResourceA(henum: super::super::Foundation::HANDLE, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetEnumResourceA(henum : super::super::Foundation:: HANDLE, lpccount : *mut u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetEnumResourceA(core::mem::transmute(henum), core::mem::transmute(lpccount), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + WNetEnumResourceA(henum, core::mem::transmute(lpccount), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn WNetEnumResourceW(henum: super::super::Foundation::HANDLE, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetEnumResourceW(henum : super::super::Foundation:: HANDLE, lpccount : *mut u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetEnumResourceW(core::mem::transmute(henum), core::mem::transmute(lpccount), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + WNetEnumResourceW(henum, core::mem::transmute(lpccount), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn WNetGetConnectionA(lplocalname: P0, lpremotename: Option, lpnlength: *mut u32) -> super::super::Foundation::WIN32_ERROR @@ -321,32 +321,32 @@ where #[inline] pub unsafe fn WNetGetProviderNameA(dwnettype: u32, lpprovidername: windows_core::PSTR, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetGetProviderNameA(dwnettype : u32, lpprovidername : windows_core::PSTR, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetProviderNameA(core::mem::transmute(dwnettype), core::mem::transmute(lpprovidername), core::mem::transmute(lpbuffersize)) + WNetGetProviderNameA(dwnettype, core::mem::transmute(lpprovidername), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn WNetGetProviderNameW(dwnettype: u32, lpprovidername: windows_core::PWSTR, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetGetProviderNameW(dwnettype : u32, lpprovidername : windows_core::PWSTR, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetProviderNameW(core::mem::transmute(dwnettype), core::mem::transmute(lpprovidername), core::mem::transmute(lpbuffersize)) + WNetGetProviderNameW(dwnettype, core::mem::transmute(lpprovidername), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn WNetGetResourceInformationA(lpnetresource: *const NETRESOURCEA, lpbuffer: *mut core::ffi::c_void, lpcbbuffer: *mut u32, lplpsystem: *mut windows_core::PSTR) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetGetResourceInformationA(lpnetresource : *const NETRESOURCEA, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32, lplpsystem : *mut windows_core::PSTR) -> super::super::Foundation:: WIN32_ERROR); - WNetGetResourceInformationA(core::mem::transmute(lpnetresource), core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer), core::mem::transmute(lplpsystem)) + WNetGetResourceInformationA(lpnetresource, core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer), core::mem::transmute(lplpsystem)) } #[inline] pub unsafe fn WNetGetResourceInformationW(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpcbbuffer: *mut u32, lplpsystem: *mut windows_core::PWSTR) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetGetResourceInformationW(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32, lplpsystem : *mut windows_core::PWSTR) -> super::super::Foundation:: WIN32_ERROR); - WNetGetResourceInformationW(core::mem::transmute(lpnetresource), core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer), core::mem::transmute(lplpsystem)) + WNetGetResourceInformationW(lpnetresource, core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer), core::mem::transmute(lplpsystem)) } #[inline] pub unsafe fn WNetGetResourceParentA(lpnetresource: *const NETRESOURCEA, lpbuffer: *mut core::ffi::c_void, lpcbbuffer: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetGetResourceParentA(lpnetresource : *const NETRESOURCEA, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetResourceParentA(core::mem::transmute(lpnetresource), core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer)) + WNetGetResourceParentA(lpnetresource, core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer)) } #[inline] pub unsafe fn WNetGetResourceParentW(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpcbbuffer: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetGetResourceParentW(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetResourceParentW(core::mem::transmute(lpnetresource), core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer)) + WNetGetResourceParentW(lpnetresource, core::mem::transmute(lpbuffer), core::mem::transmute(lpcbbuffer)) } #[inline] pub unsafe fn WNetGetUniversalNameA(lplocalpath: P0, dwinfolevel: UNC_INFO_LEVEL, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR @@ -354,7 +354,7 @@ where P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetUniversalNameA(lplocalpath : windows_core::PCSTR, dwinfolevel : UNC_INFO_LEVEL, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetUniversalNameA(lplocalpath.param().abi(), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + WNetGetUniversalNameA(lplocalpath.param().abi(), dwinfolevel, core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn WNetGetUniversalNameW(lplocalpath: P0, dwinfolevel: UNC_INFO_LEVEL, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR @@ -362,7 +362,7 @@ where P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetUniversalNameW(lplocalpath : windows_core::PCWSTR, dwinfolevel : UNC_INFO_LEVEL, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetUniversalNameW(lplocalpath.param().abi(), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) + WNetGetUniversalNameW(lplocalpath.param().abi(), dwinfolevel, core::mem::transmute(lpbuffer), core::mem::transmute(lpbuffersize)) } #[inline] pub unsafe fn WNetGetUserA(lpname: P0, lpusername: windows_core::PSTR, lpnlength: *mut u32) -> super::super::Foundation::WIN32_ERROR @@ -383,12 +383,12 @@ where #[inline] pub unsafe fn WNetOpenEnumA(dwscope: NET_RESOURCE_SCOPE, dwtype: NET_RESOURCE_TYPE, dwusage: WNET_OPEN_ENUM_USAGE, lpnetresource: Option<*const NETRESOURCEA>, lphenum: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetOpenEnumA(dwscope : NET_RESOURCE_SCOPE, dwtype : NET_RESOURCE_TYPE, dwusage : WNET_OPEN_ENUM_USAGE, lpnetresource : *const NETRESOURCEA, lphenum : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - WNetOpenEnumA(core::mem::transmute(dwscope), core::mem::transmute(dwtype), core::mem::transmute(dwusage), core::mem::transmute(lpnetresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphenum)) + WNetOpenEnumA(dwscope, dwtype, dwusage, core::mem::transmute(lpnetresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphenum)) } #[inline] pub unsafe fn WNetOpenEnumW(dwscope: NET_RESOURCE_SCOPE, dwtype: NET_RESOURCE_TYPE, dwusage: WNET_OPEN_ENUM_USAGE, lpnetresource: Option<*const NETRESOURCEW>, lphenum: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetOpenEnumW(dwscope : NET_RESOURCE_SCOPE, dwtype : NET_RESOURCE_TYPE, dwusage : WNET_OPEN_ENUM_USAGE, lpnetresource : *const NETRESOURCEW, lphenum : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - WNetOpenEnumW(core::mem::transmute(dwscope), core::mem::transmute(dwtype), core::mem::transmute(dwusage), core::mem::transmute(lpnetresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphenum)) + WNetOpenEnumW(dwscope, dwtype, dwusage, core::mem::transmute(lpnetresource.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphenum)) } #[inline] pub unsafe fn WNetSetLastErrorA(err: u32, lperror: P1, lpproviders: P2) @@ -397,7 +397,7 @@ where P2: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetSetLastErrorA(err : u32, lperror : windows_core::PCSTR, lpproviders : windows_core::PCSTR)); - WNetSetLastErrorA(core::mem::transmute(err), lperror.param().abi(), lpproviders.param().abi()) + WNetSetLastErrorA(err, lperror.param().abi(), lpproviders.param().abi()) } #[inline] pub unsafe fn WNetSetLastErrorW(err: u32, lperror: P1, lpproviders: P2) @@ -406,17 +406,17 @@ where P2: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetSetLastErrorW(err : u32, lperror : windows_core::PCWSTR, lpproviders : windows_core::PCWSTR)); - WNetSetLastErrorW(core::mem::transmute(err), lperror.param().abi(), lpproviders.param().abi()) + WNetSetLastErrorW(err, lperror.param().abi(), lpproviders.param().abi()) } #[inline] pub unsafe fn WNetUseConnection4A(hwndowner: Option, lpnetresource: *const NETRESOURCEA, pauthbuffer: Option<*const core::ffi::c_void>, cbauthbuffer: u32, dwflags: u32, lpuseoptions: Option<&[u8]>, lpaccessname: Option, lpbuffersize: Option<*mut u32>, lpresult: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("mpr.dll" "system" fn WNetUseConnection4A(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : u32, lpuseoptions : *const u8, cbuseoptions : u32, lpaccessname : windows_core::PSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR); WNetUseConnection4A( core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpnetresource), + lpnetresource, core::mem::transmute(pauthbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(cbauthbuffer), - core::mem::transmute(dwflags), + cbauthbuffer, + dwflags, core::mem::transmute(lpuseoptions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpuseoptions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpaccessname.unwrap_or(core::mem::zeroed())), @@ -429,10 +429,10 @@ pub unsafe fn WNetUseConnection4W(hwndowner: Option super::super::Foundation:: WIN32_ERROR); WNetUseConnection4W( core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpnetresource), + lpnetresource, core::mem::transmute(pauthbuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(cbauthbuffer), - core::mem::transmute(dwflags), + cbauthbuffer, + dwflags, core::mem::transmute(lpuseoptions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpuseoptions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpaccessname.unwrap_or(core::mem::zeroed())), @@ -447,7 +447,7 @@ where P3: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetUseConnectionA(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, lppassword : windows_core::PCSTR, lpuserid : windows_core::PCSTR, dwflags : NET_CONNECT_FLAGS, lpaccessname : windows_core::PSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetUseConnectionA(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), lppassword.param().abi(), lpuserid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpaccessname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpresult.unwrap_or(core::mem::zeroed()))) + WNetUseConnectionA(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, lppassword.param().abi(), lpuserid.param().abi(), dwflags, core::mem::transmute(lpaccessname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpresult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WNetUseConnectionW(hwndowner: Option, lpnetresource: *const NETRESOURCEW, lppassword: P2, lpuserid: P3, dwflags: NET_CONNECT_FLAGS, lpaccessname: Option, lpbuffersize: Option<*mut u32>, lpresult: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR @@ -456,7 +456,7 @@ where P3: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetUseConnectionW(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpuserid : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS, lpaccessname : windows_core::PWSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetUseConnectionW(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnetresource), lppassword.param().abi(), lpuserid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpaccessname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpresult.unwrap_or(core::mem::zeroed()))) + WNetUseConnectionW(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), lpnetresource, lppassword.param().abi(), lpuserid.param().abi(), dwflags, core::mem::transmute(lpaccessname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpresult.unwrap_or(core::mem::zeroed()))) } pub const CONNDLG_CONN_POINT: CONNECTDLGSTRUCT_FLAGS = CONNECTDLGSTRUCT_FLAGS(2u32); pub const CONNDLG_HIDE_BOX: CONNECTDLGSTRUCT_FLAGS = CONNECTDLGSTRUCT_FLAGS(8u32); diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs index 8cd9bc5aa5..d7bda2ccd6 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs @@ -19,17 +19,17 @@ where #[inline] pub unsafe fn DavDeleteConnection(connectionhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("netapi32.dll" "system" fn DavDeleteConnection(connectionhandle : super::super::Foundation:: HANDLE) -> u32); - DavDeleteConnection(core::mem::transmute(connectionhandle)) + DavDeleteConnection(connectionhandle) } #[inline] pub unsafe fn DavFlushFile(hfile: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("netapi32.dll" "system" fn DavFlushFile(hfile : super::super::Foundation:: HANDLE) -> u32); - DavFlushFile(core::mem::transmute(hfile)) + DavFlushFile(hfile) } #[inline] pub unsafe fn DavGetExtendedError(hfile: super::super::Foundation::HANDLE, exterror: *mut u32, exterrorstring: windows_core::PWSTR, cchsize: *mut u32) -> u32 { windows_targets::link!("netapi32.dll" "system" fn DavGetExtendedError(hfile : super::super::Foundation:: HANDLE, exterror : *mut u32, exterrorstring : windows_core::PWSTR, cchsize : *mut u32) -> u32); - DavGetExtendedError(core::mem::transmute(hfile), core::mem::transmute(exterror), core::mem::transmute(exterrorstring), core::mem::transmute(cchsize)) + DavGetExtendedError(hfile, core::mem::transmute(exterror), core::mem::transmute(exterrorstring), core::mem::transmute(cchsize)) } #[inline] pub unsafe fn DavGetHTTPFromUNCPath(uncpath: P0, url: Option, lpsize: *mut u32) -> u32 @@ -66,12 +66,12 @@ where #[inline] pub unsafe fn DavRegisterAuthCallback(callback: PFNDAVAUTHCALLBACK, version: u32) -> u32 { windows_targets::link!("davclnt.dll" "system" fn DavRegisterAuthCallback(callback : PFNDAVAUTHCALLBACK, version : u32) -> u32); - DavRegisterAuthCallback(core::mem::transmute(callback), core::mem::transmute(version)) + DavRegisterAuthCallback(callback, version) } #[inline] pub unsafe fn DavUnregisterAuthCallback(hcallback: u32) { windows_targets::link!("davclnt.dll" "system" fn DavUnregisterAuthCallback(hcallback : u32)); - DavUnregisterAuthCallback(core::mem::transmute(hcallback)) + DavUnregisterAuthCallback(hcallback) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs index 4c996fd083..5d022e7bf1 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -1,59 +1,59 @@ #[inline] pub unsafe fn WFDCancelOpenSession(hsessionhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDCancelOpenSession(hsessionhandle : super::super::Foundation:: HANDLE) -> u32); - WFDCancelOpenSession(core::mem::transmute(hsessionhandle)) + WFDCancelOpenSession(hsessionhandle) } #[inline] pub unsafe fn WFDCloseHandle(hclienthandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDCloseHandle(hclienthandle : super::super::Foundation:: HANDLE) -> u32); - WFDCloseHandle(core::mem::transmute(hclienthandle)) + WFDCloseHandle(hclienthandle) } #[inline] pub unsafe fn WFDCloseSession(hsessionhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDCloseSession(hsessionhandle : super::super::Foundation:: HANDLE) -> u32); - WFDCloseSession(core::mem::transmute(hsessionhandle)) + WFDCloseSession(hsessionhandle) } #[inline] pub unsafe fn WFDOpenHandle(dwclientversion: u32, pdwnegotiatedversion: *mut u32, phclienthandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDOpenHandle(dwclientversion : u32, pdwnegotiatedversion : *mut u32, phclienthandle : *mut super::super::Foundation:: HANDLE) -> u32); - WFDOpenHandle(core::mem::transmute(dwclientversion), core::mem::transmute(pdwnegotiatedversion), core::mem::transmute(phclienthandle)) + WFDOpenHandle(dwclientversion, core::mem::transmute(pdwnegotiatedversion), core::mem::transmute(phclienthandle)) } #[inline] pub unsafe fn WFDOpenLegacySession(hclienthandle: super::super::Foundation::HANDLE, plegacymacaddress: *const *const u8, phsessionhandle: *mut super::super::Foundation::HANDLE, pguidsessioninterface: *mut windows_core::GUID) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDOpenLegacySession(hclienthandle : super::super::Foundation:: HANDLE, plegacymacaddress : *const *const u8, phsessionhandle : *mut super::super::Foundation:: HANDLE, pguidsessioninterface : *mut windows_core::GUID) -> u32); - WFDOpenLegacySession(core::mem::transmute(hclienthandle), core::mem::transmute(plegacymacaddress), core::mem::transmute(phsessionhandle), core::mem::transmute(pguidsessioninterface)) + WFDOpenLegacySession(hclienthandle, plegacymacaddress, core::mem::transmute(phsessionhandle), core::mem::transmute(pguidsessioninterface)) } #[inline] pub unsafe fn WFDStartOpenSession(hclienthandle: super::super::Foundation::HANDLE, pdeviceaddress: *const *const u8, pvcontext: Option<*const core::ffi::c_void>, pfncallback: WFD_OPEN_SESSION_COMPLETE_CALLBACK, phsessionhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDStartOpenSession(hclienthandle : super::super::Foundation:: HANDLE, pdeviceaddress : *const *const u8, pvcontext : *const core::ffi::c_void, pfncallback : WFD_OPEN_SESSION_COMPLETE_CALLBACK, phsessionhandle : *mut super::super::Foundation:: HANDLE) -> u32); - WFDStartOpenSession(core::mem::transmute(hclienthandle), core::mem::transmute(pdeviceaddress), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfncallback), core::mem::transmute(phsessionhandle)) + WFDStartOpenSession(hclienthandle, pdeviceaddress, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), pfncallback, core::mem::transmute(phsessionhandle)) } #[inline] pub unsafe fn WFDUpdateDeviceVisibility(pdeviceaddress: *const *const u8) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WFDUpdateDeviceVisibility(pdeviceaddress : *const *const u8) -> u32); - WFDUpdateDeviceVisibility(core::mem::transmute(pdeviceaddress)) + WFDUpdateDeviceVisibility(pdeviceaddress) } #[inline] pub unsafe fn WlanAllocateMemory(dwmemorysize: u32) -> *mut core::ffi::c_void { windows_targets::link!("wlanapi.dll" "system" fn WlanAllocateMemory(dwmemorysize : u32) -> *mut core::ffi::c_void); - WlanAllocateMemory(core::mem::transmute(dwmemorysize)) + WlanAllocateMemory(dwmemorysize) } #[inline] pub unsafe fn WlanCloseHandle(hclienthandle: super::super::Foundation::HANDLE, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanCloseHandle(hclienthandle : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void) -> u32); - WlanCloseHandle(core::mem::transmute(hclienthandle), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanCloseHandle(hclienthandle, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn WlanConnect(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, pconnectionparameters: *const WLAN_CONNECTION_PARAMETERS, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanConnect(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pconnectionparameters : *const WLAN_CONNECTION_PARAMETERS, preserved : *const core::ffi::c_void) -> u32); - WlanConnect(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(pconnectionparameters), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanConnect(hclienthandle, pinterfaceguid, pconnectionparameters, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn WlanConnect2(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, pconnectionparameters: *const WLAN_CONNECTION_PARAMETERS_V2, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanConnect2(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pconnectionparameters : *const WLAN_CONNECTION_PARAMETERS_V2, preserved : *const core::ffi::c_void) -> u32); - WlanConnect2(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(pconnectionparameters), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanConnect2(hclienthandle, pinterfaceguid, pconnectionparameters, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanDeleteProfile(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, preserved: Option<*const core::ffi::c_void>) -> u32 @@ -61,22 +61,22 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanDeleteProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, preserved : *const core::ffi::c_void) -> u32); - WlanDeleteProfile(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanDeleteProfile(hclienthandle, pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanDeviceServiceCommand(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, pdeviceserviceguid: *const windows_core::GUID, dwopcode: u32, dwinbuffersize: u32, pinbuffer: Option<*const core::ffi::c_void>, dwoutbuffersize: u32, poutbuffer: Option<*mut core::ffi::c_void>, pdwbytesreturned: *mut u32) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanDeviceServiceCommand(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pdeviceserviceguid : *const windows_core::GUID, dwopcode : u32, dwinbuffersize : u32, pinbuffer : *const core::ffi::c_void, dwoutbuffersize : u32, poutbuffer : *mut core::ffi::c_void, pdwbytesreturned : *mut u32) -> u32); - WlanDeviceServiceCommand(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(pdeviceserviceguid), core::mem::transmute(dwopcode), core::mem::transmute(dwinbuffersize), core::mem::transmute(pinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoutbuffersize), core::mem::transmute(poutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbytesreturned)) + WlanDeviceServiceCommand(hclienthandle, pinterfaceguid, pdeviceserviceguid, dwopcode, dwinbuffersize, core::mem::transmute(pinbuffer.unwrap_or(core::mem::zeroed())), dwoutbuffersize, core::mem::transmute(poutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbytesreturned)) } #[inline] pub unsafe fn WlanDisconnect(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanDisconnect(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, preserved : *const core::ffi::c_void) -> u32); - WlanDisconnect(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanDisconnect(hclienthandle, pinterfaceguid, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanEnumInterfaces(hclienthandle: super::super::Foundation::HANDLE, preserved: Option<*const core::ffi::c_void>, ppinterfacelist: *mut *mut WLAN_INTERFACE_INFO_LIST) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanEnumInterfaces(hclienthandle : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, ppinterfacelist : *mut *mut WLAN_INTERFACE_INFO_LIST) -> u32); - WlanEnumInterfaces(core::mem::transmute(hclienthandle), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppinterfacelist)) + WlanEnumInterfaces(hclienthandle, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppinterfacelist)) } #[inline] pub unsafe fn WlanExtractPsdIEDataList(hclienthandle: super::super::Foundation::HANDLE, prawiedata: &[u8], strformat: P3, preserved: Option<*const core::ffi::c_void>, pppsdiedatalist: *mut *mut WLAN_RAW_DATA_LIST) -> u32 @@ -84,37 +84,37 @@ where P3: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanExtractPsdIEDataList(hclienthandle : super::super::Foundation:: HANDLE, dwiedatasize : u32, prawiedata : *const u8, strformat : windows_core::PCWSTR, preserved : *const core::ffi::c_void, pppsdiedatalist : *mut *mut WLAN_RAW_DATA_LIST) -> u32); - WlanExtractPsdIEDataList(core::mem::transmute(hclienthandle), prawiedata.len().try_into().unwrap(), core::mem::transmute(prawiedata.as_ptr()), strformat.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pppsdiedatalist)) + WlanExtractPsdIEDataList(hclienthandle, prawiedata.len().try_into().unwrap(), core::mem::transmute(prawiedata.as_ptr()), strformat.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pppsdiedatalist)) } #[inline] pub unsafe fn WlanFreeMemory(pmemory: *const core::ffi::c_void) { windows_targets::link!("wlanapi.dll" "system" fn WlanFreeMemory(pmemory : *const core::ffi::c_void)); - WlanFreeMemory(core::mem::transmute(pmemory)) + WlanFreeMemory(pmemory) } #[inline] pub unsafe fn WlanGetAvailableNetworkList(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, dwflags: u32, preserved: Option<*const core::ffi::c_void>, ppavailablenetworklist: *mut *mut WLAN_AVAILABLE_NETWORK_LIST) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetAvailableNetworkList(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, dwflags : u32, preserved : *const core::ffi::c_void, ppavailablenetworklist : *mut *mut WLAN_AVAILABLE_NETWORK_LIST) -> u32); - WlanGetAvailableNetworkList(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(dwflags), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppavailablenetworklist)) + WlanGetAvailableNetworkList(hclienthandle, pinterfaceguid, dwflags, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppavailablenetworklist)) } #[inline] pub unsafe fn WlanGetAvailableNetworkList2(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, dwflags: u32, preserved: Option<*const core::ffi::c_void>, ppavailablenetworklist: *mut *mut WLAN_AVAILABLE_NETWORK_LIST_V2) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetAvailableNetworkList2(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, dwflags : u32, preserved : *const core::ffi::c_void, ppavailablenetworklist : *mut *mut WLAN_AVAILABLE_NETWORK_LIST_V2) -> u32); - WlanGetAvailableNetworkList2(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(dwflags), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppavailablenetworklist)) + WlanGetAvailableNetworkList2(hclienthandle, pinterfaceguid, dwflags, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppavailablenetworklist)) } #[inline] pub unsafe fn WlanGetFilterList(hclienthandle: super::super::Foundation::HANDLE, wlanfilterlisttype: WLAN_FILTER_LIST_TYPE, preserved: Option<*const core::ffi::c_void>, ppnetworklist: *mut *mut DOT11_NETWORK_LIST) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetFilterList(hclienthandle : super::super::Foundation:: HANDLE, wlanfilterlisttype : WLAN_FILTER_LIST_TYPE, preserved : *const core::ffi::c_void, ppnetworklist : *mut *mut DOT11_NETWORK_LIST) -> u32); - WlanGetFilterList(core::mem::transmute(hclienthandle), core::mem::transmute(wlanfilterlisttype), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppnetworklist)) + WlanGetFilterList(hclienthandle, wlanfilterlisttype, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppnetworklist)) } #[inline] pub unsafe fn WlanGetInterfaceCapability(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, preserved: Option<*const core::ffi::c_void>, ppcapability: *mut *mut WLAN_INTERFACE_CAPABILITY) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetInterfaceCapability(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, preserved : *const core::ffi::c_void, ppcapability : *mut *mut WLAN_INTERFACE_CAPABILITY) -> u32); - WlanGetInterfaceCapability(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcapability)) + WlanGetInterfaceCapability(hclienthandle, pinterfaceguid, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcapability)) } #[inline] pub unsafe fn WlanGetNetworkBssList(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, pdot11ssid: Option<*const DOT11_SSID>, dot11bsstype: DOT11_BSS_TYPE, bsecurityenabled: bool, preserved: Option<*const core::ffi::c_void>, ppwlanbsslist: *mut *mut WLAN_BSS_LIST) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetNetworkBssList(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pdot11ssid : *const DOT11_SSID, dot11bsstype : DOT11_BSS_TYPE, bsecurityenabled : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void, ppwlanbsslist : *mut *mut WLAN_BSS_LIST) -> u32); - WlanGetNetworkBssList(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(pdot11ssid.unwrap_or(core::mem::zeroed())), core::mem::transmute(dot11bsstype), bsecurityenabled.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwlanbsslist)) + WlanGetNetworkBssList(hclienthandle, pinterfaceguid, core::mem::transmute(pdot11ssid.unwrap_or(core::mem::zeroed())), dot11bsstype, bsecurityenabled.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwlanbsslist)) } #[inline] pub unsafe fn WlanGetProfile(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, preserved: Option<*const core::ffi::c_void>, pstrprofilexml: *mut windows_core::PWSTR, pdwflags: Option<*mut u32>, pdwgrantedaccess: Option<*mut u32>) -> u32 @@ -122,7 +122,7 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanGetProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, preserved : *const core::ffi::c_void, pstrprofilexml : *mut windows_core::PWSTR, pdwflags : *mut u32, pdwgrantedaccess : *mut u32) -> u32); - WlanGetProfile(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrprofilexml), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwgrantedaccess.unwrap_or(core::mem::zeroed()))) + WlanGetProfile(hclienthandle, pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrprofilexml), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwgrantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanGetProfileCustomUserData(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, preserved: Option<*const core::ffi::c_void>, pdwdatasize: *mut u32, ppdata: *mut *mut u8) -> u32 @@ -130,117 +130,117 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanGetProfileCustomUserData(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, preserved : *const core::ffi::c_void, pdwdatasize : *mut u32, ppdata : *mut *mut u8) -> u32); - WlanGetProfileCustomUserData(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata)) + WlanGetProfileCustomUserData(hclienthandle, pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata)) } #[inline] pub unsafe fn WlanGetProfileList(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, preserved: Option<*const core::ffi::c_void>, ppprofilelist: *mut *mut WLAN_PROFILE_INFO_LIST) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetProfileList(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, preserved : *const core::ffi::c_void, ppprofilelist : *mut *mut WLAN_PROFILE_INFO_LIST) -> u32); - WlanGetProfileList(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppprofilelist)) + WlanGetProfileList(hclienthandle, pinterfaceguid, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppprofilelist)) } #[inline] pub unsafe fn WlanGetSecuritySettings(hclienthandle: super::super::Foundation::HANDLE, securableobject: WLAN_SECURABLE_OBJECT, pvaluetype: Option<*mut WLAN_OPCODE_VALUE_TYPE>, pstrcurrentsddl: *mut windows_core::PWSTR, pdwgrantedaccess: *mut u32) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetSecuritySettings(hclienthandle : super::super::Foundation:: HANDLE, securableobject : WLAN_SECURABLE_OBJECT, pvaluetype : *mut WLAN_OPCODE_VALUE_TYPE, pstrcurrentsddl : *mut windows_core::PWSTR, pdwgrantedaccess : *mut u32) -> u32); - WlanGetSecuritySettings(core::mem::transmute(hclienthandle), core::mem::transmute(securableobject), core::mem::transmute(pvaluetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrcurrentsddl), core::mem::transmute(pdwgrantedaccess)) + WlanGetSecuritySettings(hclienthandle, securableobject, core::mem::transmute(pvaluetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstrcurrentsddl), core::mem::transmute(pdwgrantedaccess)) } #[inline] pub unsafe fn WlanGetSupportedDeviceServices(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, ppdevsvcguidlist: *mut *mut WLAN_DEVICE_SERVICE_GUID_LIST) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanGetSupportedDeviceServices(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, ppdevsvcguidlist : *mut *mut WLAN_DEVICE_SERVICE_GUID_LIST) -> u32); - WlanGetSupportedDeviceServices(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(ppdevsvcguidlist)) + WlanGetSupportedDeviceServices(hclienthandle, pinterfaceguid, core::mem::transmute(ppdevsvcguidlist)) } #[inline] pub unsafe fn WlanHostedNetworkForceStart(hclienthandle: super::super::Foundation::HANDLE, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkForceStart(hclienthandle : super::super::Foundation:: HANDLE, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkForceStart(core::mem::transmute(hclienthandle), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkForceStart(hclienthandle, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkForceStop(hclienthandle: super::super::Foundation::HANDLE, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkForceStop(hclienthandle : super::super::Foundation:: HANDLE, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkForceStop(core::mem::transmute(hclienthandle), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkForceStop(hclienthandle, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkInitSettings(hclienthandle: super::super::Foundation::HANDLE, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkInitSettings(hclienthandle : super::super::Foundation:: HANDLE, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkInitSettings(core::mem::transmute(hclienthandle), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkInitSettings(hclienthandle, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkQueryProperty(hclienthandle: super::super::Foundation::HANDLE, opcode: WLAN_HOSTED_NETWORK_OPCODE, pdwdatasize: *mut u32, ppvdata: *mut *mut core::ffi::c_void, pwlanopcodevaluetype: *mut WLAN_OPCODE_VALUE_TYPE, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkQueryProperty(hclienthandle : super::super::Foundation:: HANDLE, opcode : WLAN_HOSTED_NETWORK_OPCODE, pdwdatasize : *mut u32, ppvdata : *mut *mut core::ffi::c_void, pwlanopcodevaluetype : *mut WLAN_OPCODE_VALUE_TYPE, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkQueryProperty(core::mem::transmute(hclienthandle), core::mem::transmute(opcode), core::mem::transmute(pdwdatasize), core::mem::transmute(ppvdata), core::mem::transmute(pwlanopcodevaluetype), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkQueryProperty(hclienthandle, opcode, core::mem::transmute(pdwdatasize), core::mem::transmute(ppvdata), core::mem::transmute(pwlanopcodevaluetype), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkQuerySecondaryKey(hclienthandle: super::super::Foundation::HANDLE, pdwkeylength: *mut u32, ppuckeydata: *mut *mut u8, pbispassphrase: *mut super::super::Foundation::BOOL, pbpersistent: *mut super::super::Foundation::BOOL, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkQuerySecondaryKey(hclienthandle : super::super::Foundation:: HANDLE, pdwkeylength : *mut u32, ppuckeydata : *mut *mut u8, pbispassphrase : *mut super::super::Foundation:: BOOL, pbpersistent : *mut super::super::Foundation:: BOOL, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkQuerySecondaryKey(core::mem::transmute(hclienthandle), core::mem::transmute(pdwkeylength), core::mem::transmute(ppuckeydata), core::mem::transmute(pbispassphrase), core::mem::transmute(pbpersistent), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkQuerySecondaryKey(hclienthandle, core::mem::transmute(pdwkeylength), core::mem::transmute(ppuckeydata), core::mem::transmute(pbispassphrase), core::mem::transmute(pbpersistent), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkQueryStatus(hclienthandle: super::super::Foundation::HANDLE, ppwlanhostednetworkstatus: *mut *mut WLAN_HOSTED_NETWORK_STATUS, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkQueryStatus(hclienthandle : super::super::Foundation:: HANDLE, ppwlanhostednetworkstatus : *mut *mut WLAN_HOSTED_NETWORK_STATUS, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkQueryStatus(core::mem::transmute(hclienthandle), core::mem::transmute(ppwlanhostednetworkstatus), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkQueryStatus(hclienthandle, core::mem::transmute(ppwlanhostednetworkstatus), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkRefreshSecuritySettings(hclienthandle: super::super::Foundation::HANDLE, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkRefreshSecuritySettings(hclienthandle : super::super::Foundation:: HANDLE, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkRefreshSecuritySettings(core::mem::transmute(hclienthandle), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkRefreshSecuritySettings(hclienthandle, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkSetProperty(hclienthandle: super::super::Foundation::HANDLE, opcode: WLAN_HOSTED_NETWORK_OPCODE, dwdatasize: u32, pvdata: *const core::ffi::c_void, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkSetProperty(hclienthandle : super::super::Foundation:: HANDLE, opcode : WLAN_HOSTED_NETWORK_OPCODE, dwdatasize : u32, pvdata : *const core::ffi::c_void, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkSetProperty(core::mem::transmute(hclienthandle), core::mem::transmute(opcode), core::mem::transmute(dwdatasize), core::mem::transmute(pvdata), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkSetProperty(hclienthandle, opcode, dwdatasize, pvdata, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkSetSecondaryKey(hclienthandle: super::super::Foundation::HANDLE, puckeydata: &[u8], bispassphrase: bool, bpersistent: bool, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkSetSecondaryKey(hclienthandle : super::super::Foundation:: HANDLE, dwkeylength : u32, puckeydata : *const u8, bispassphrase : super::super::Foundation:: BOOL, bpersistent : super::super::Foundation:: BOOL, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkSetSecondaryKey(core::mem::transmute(hclienthandle), puckeydata.len().try_into().unwrap(), core::mem::transmute(puckeydata.as_ptr()), bispassphrase.into(), bpersistent.into(), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkSetSecondaryKey(hclienthandle, puckeydata.len().try_into().unwrap(), core::mem::transmute(puckeydata.as_ptr()), bispassphrase.into(), bpersistent.into(), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkStartUsing(hclienthandle: super::super::Foundation::HANDLE, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkStartUsing(hclienthandle : super::super::Foundation:: HANDLE, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkStartUsing(core::mem::transmute(hclienthandle), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkStartUsing(hclienthandle, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanHostedNetworkStopUsing(hclienthandle: super::super::Foundation::HANDLE, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkStopUsing(hclienthandle : super::super::Foundation:: HANDLE, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); - WlanHostedNetworkStopUsing(core::mem::transmute(hclienthandle), core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + WlanHostedNetworkStopUsing(hclienthandle, core::mem::transmute(pfailreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanIhvControl(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, r#type: WLAN_IHV_CONTROL_TYPE, dwinbuffersize: u32, pinbuffer: *const core::ffi::c_void, dwoutbuffersize: u32, poutbuffer: Option<*mut core::ffi::c_void>, pdwbytesreturned: *mut u32) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanIhvControl(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, r#type : WLAN_IHV_CONTROL_TYPE, dwinbuffersize : u32, pinbuffer : *const core::ffi::c_void, dwoutbuffersize : u32, poutbuffer : *mut core::ffi::c_void, pdwbytesreturned : *mut u32) -> u32); - WlanIhvControl(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(r#type), core::mem::transmute(dwinbuffersize), core::mem::transmute(pinbuffer), core::mem::transmute(dwoutbuffersize), core::mem::transmute(poutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbytesreturned)) + WlanIhvControl(hclienthandle, pinterfaceguid, r#type, dwinbuffersize, pinbuffer, dwoutbuffersize, core::mem::transmute(poutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbytesreturned)) } #[inline] pub unsafe fn WlanOpenHandle(dwclientversion: u32, preserved: Option<*const core::ffi::c_void>, pdwnegotiatedversion: *mut u32, phclienthandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanOpenHandle(dwclientversion : u32, preserved : *const core::ffi::c_void, pdwnegotiatedversion : *mut u32, phclienthandle : *mut super::super::Foundation:: HANDLE) -> u32); - WlanOpenHandle(core::mem::transmute(dwclientversion), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwnegotiatedversion), core::mem::transmute(phclienthandle)) + WlanOpenHandle(dwclientversion, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwnegotiatedversion), core::mem::transmute(phclienthandle)) } #[inline] pub unsafe fn WlanQueryAutoConfigParameter(hclienthandle: super::super::Foundation::HANDLE, opcode: WLAN_AUTOCONF_OPCODE, preserved: Option<*const core::ffi::c_void>, pdwdatasize: *mut u32, ppdata: *mut *mut core::ffi::c_void, pwlanopcodevaluetype: Option<*mut WLAN_OPCODE_VALUE_TYPE>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanQueryAutoConfigParameter(hclienthandle : super::super::Foundation:: HANDLE, opcode : WLAN_AUTOCONF_OPCODE, preserved : *const core::ffi::c_void, pdwdatasize : *mut u32, ppdata : *mut *mut core::ffi::c_void, pwlanopcodevaluetype : *mut WLAN_OPCODE_VALUE_TYPE) -> u32); - WlanQueryAutoConfigParameter(core::mem::transmute(hclienthandle), core::mem::transmute(opcode), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata), core::mem::transmute(pwlanopcodevaluetype.unwrap_or(core::mem::zeroed()))) + WlanQueryAutoConfigParameter(hclienthandle, opcode, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata), core::mem::transmute(pwlanopcodevaluetype.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanQueryInterface(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, opcode: WLAN_INTF_OPCODE, preserved: Option<*const core::ffi::c_void>, pdwdatasize: *mut u32, ppdata: *mut *mut core::ffi::c_void, pwlanopcodevaluetype: Option<*mut WLAN_OPCODE_VALUE_TYPE>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanQueryInterface(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, opcode : WLAN_INTF_OPCODE, preserved : *const core::ffi::c_void, pdwdatasize : *mut u32, ppdata : *mut *mut core::ffi::c_void, pwlanopcodevaluetype : *mut WLAN_OPCODE_VALUE_TYPE) -> u32); - WlanQueryInterface(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(opcode), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata), core::mem::transmute(pwlanopcodevaluetype.unwrap_or(core::mem::zeroed()))) + WlanQueryInterface(hclienthandle, pinterfaceguid, opcode, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata), core::mem::transmute(pwlanopcodevaluetype.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanReasonCodeToString(dwreasoncode: u32, pstringbuffer: &[u16], preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanReasonCodeToString(dwreasoncode : u32, dwbuffersize : u32, pstringbuffer : windows_core::PCWSTR, preserved : *const core::ffi::c_void) -> u32); - WlanReasonCodeToString(core::mem::transmute(dwreasoncode), pstringbuffer.len().try_into().unwrap(), core::mem::transmute(pstringbuffer.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanReasonCodeToString(dwreasoncode, pstringbuffer.len().try_into().unwrap(), core::mem::transmute(pstringbuffer.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanRegisterDeviceServiceNotification(hclienthandle: super::super::Foundation::HANDLE, pdevsvcguidlist: Option<*const WLAN_DEVICE_SERVICE_GUID_LIST>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterDeviceServiceNotification(hclienthandle : super::super::Foundation:: HANDLE, pdevsvcguidlist : *const WLAN_DEVICE_SERVICE_GUID_LIST) -> u32); - WlanRegisterDeviceServiceNotification(core::mem::transmute(hclienthandle), core::mem::transmute(pdevsvcguidlist.unwrap_or(core::mem::zeroed()))) + WlanRegisterDeviceServiceNotification(hclienthandle, core::mem::transmute(pdevsvcguidlist.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanRegisterNotification(hclienthandle: super::super::Foundation::HANDLE, dwnotifsource: WLAN_NOTIFICATION_SOURCES, bignoreduplicate: bool, funccallback: Option, pcallbackcontext: Option<*const core::ffi::c_void>, preserved: Option<*const core::ffi::c_void>, pdwprevnotifsource: Option<*mut u32>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterNotification(hclienthandle : super::super::Foundation:: HANDLE, dwnotifsource : WLAN_NOTIFICATION_SOURCES, bignoreduplicate : super::super::Foundation:: BOOL, funccallback : WLAN_NOTIFICATION_CALLBACK, pcallbackcontext : *const core::ffi::c_void, preserved : *const core::ffi::c_void, pdwprevnotifsource : *mut u32) -> u32); - WlanRegisterNotification(core::mem::transmute(hclienthandle), core::mem::transmute(dwnotifsource), bignoreduplicate.into(), core::mem::transmute(funccallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprevnotifsource.unwrap_or(core::mem::zeroed()))) + WlanRegisterNotification(hclienthandle, dwnotifsource, bignoreduplicate.into(), core::mem::transmute(funccallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprevnotifsource.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanRegisterVirtualStationNotification(hclienthandle: super::super::Foundation::HANDLE, bregister: bool, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterVirtualStationNotification(hclienthandle : super::super::Foundation:: HANDLE, bregister : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void) -> u32); - WlanRegisterVirtualStationNotification(core::mem::transmute(hclienthandle), bregister.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanRegisterVirtualStationNotification(hclienthandle, bregister.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanRenameProfile(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, stroldprofilename: P2, strnewprofilename: P3, preserved: Option<*const core::ffi::c_void>) -> u32 @@ -249,7 +249,7 @@ where P3: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanRenameProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, stroldprofilename : windows_core::PCWSTR, strnewprofilename : windows_core::PCWSTR, preserved : *const core::ffi::c_void) -> u32); - WlanRenameProfile(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), stroldprofilename.param().abi(), strnewprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanRenameProfile(hclienthandle, pinterfaceguid, stroldprofilename.param().abi(), strnewprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSaveTemporaryProfile(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, stralluserprofilesecurity: P3, dwflags: u32, boverwrite: bool, preserved: Option<*const core::ffi::c_void>) -> u32 @@ -258,27 +258,27 @@ where P3: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSaveTemporaryProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, stralluserprofilesecurity : windows_core::PCWSTR, dwflags : u32, boverwrite : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void) -> u32); - WlanSaveTemporaryProfile(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), stralluserprofilesecurity.param().abi(), core::mem::transmute(dwflags), boverwrite.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSaveTemporaryProfile(hclienthandle, pinterfaceguid, strprofilename.param().abi(), stralluserprofilesecurity.param().abi(), dwflags, boverwrite.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanScan(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, pdot11ssid: Option<*const DOT11_SSID>, piedata: Option<*const WLAN_RAW_DATA>, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanScan(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pdot11ssid : *const DOT11_SSID, piedata : *const WLAN_RAW_DATA, preserved : *const core::ffi::c_void) -> u32); - WlanScan(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(pdot11ssid.unwrap_or(core::mem::zeroed())), core::mem::transmute(piedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanScan(hclienthandle, pinterfaceguid, core::mem::transmute(pdot11ssid.unwrap_or(core::mem::zeroed())), core::mem::transmute(piedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetAutoConfigParameter(hclienthandle: super::super::Foundation::HANDLE, opcode: WLAN_AUTOCONF_OPCODE, dwdatasize: u32, pdata: *const core::ffi::c_void, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanSetAutoConfigParameter(hclienthandle : super::super::Foundation:: HANDLE, opcode : WLAN_AUTOCONF_OPCODE, dwdatasize : u32, pdata : *const core::ffi::c_void, preserved : *const core::ffi::c_void) -> u32); - WlanSetAutoConfigParameter(core::mem::transmute(hclienthandle), core::mem::transmute(opcode), core::mem::transmute(dwdatasize), core::mem::transmute(pdata), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetAutoConfigParameter(hclienthandle, opcode, dwdatasize, pdata, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetFilterList(hclienthandle: super::super::Foundation::HANDLE, wlanfilterlisttype: WLAN_FILTER_LIST_TYPE, pnetworklist: Option<*const DOT11_NETWORK_LIST>, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanSetFilterList(hclienthandle : super::super::Foundation:: HANDLE, wlanfilterlisttype : WLAN_FILTER_LIST_TYPE, pnetworklist : *const DOT11_NETWORK_LIST, preserved : *const core::ffi::c_void) -> u32); - WlanSetFilterList(core::mem::transmute(hclienthandle), core::mem::transmute(wlanfilterlisttype), core::mem::transmute(pnetworklist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetFilterList(hclienthandle, wlanfilterlisttype, core::mem::transmute(pnetworklist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetInterface(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, opcode: WLAN_INTF_OPCODE, dwdatasize: u32, pdata: *const core::ffi::c_void, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanSetInterface(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, opcode : WLAN_INTF_OPCODE, dwdatasize : u32, pdata : *const core::ffi::c_void, preserved : *const core::ffi::c_void) -> u32); - WlanSetInterface(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(opcode), core::mem::transmute(dwdatasize), core::mem::transmute(pdata), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetInterface(hclienthandle, pinterfaceguid, opcode, dwdatasize, pdata, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetProfile(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, dwflags: u32, strprofilexml: P3, stralluserprofilesecurity: P4, boverwrite: bool, preserved: Option<*const core::ffi::c_void>, pdwreasoncode: *mut u32) -> u32 @@ -287,7 +287,7 @@ where P4: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, dwflags : u32, strprofilexml : windows_core::PCWSTR, stralluserprofilesecurity : windows_core::PCWSTR, boverwrite : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void, pdwreasoncode : *mut u32) -> u32); - WlanSetProfile(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), core::mem::transmute(dwflags), strprofilexml.param().abi(), stralluserprofilesecurity.param().abi(), boverwrite.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwreasoncode)) + WlanSetProfile(hclienthandle, pinterfaceguid, dwflags, strprofilexml.param().abi(), stralluserprofilesecurity.param().abi(), boverwrite.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwreasoncode)) } #[inline] pub unsafe fn WlanSetProfileCustomUserData(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, pdata: &[u8], preserved: Option<*const core::ffi::c_void>) -> u32 @@ -295,7 +295,7 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfileCustomUserData(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, dwdatasize : u32, pdata : *const u8, preserved : *const core::ffi::c_void) -> u32); - WlanSetProfileCustomUserData(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), pdata.len().try_into().unwrap(), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetProfileCustomUserData(hclienthandle, pinterfaceguid, strprofilename.param().abi(), pdata.len().try_into().unwrap(), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] #[inline] @@ -304,7 +304,7 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfileEapUserData(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, eaptype : super::super::Security::ExtensibleAuthenticationProtocol:: EAP_METHOD_TYPE, dwflags : WLAN_SET_EAPHOST_FLAGS, dweapuserdatasize : u32, pbeapuserdata : *const u8, preserved : *const core::ffi::c_void) -> u32); - WlanSetProfileEapUserData(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), core::mem::transmute(eaptype), core::mem::transmute(dwflags), pbeapuserdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbeapuserdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetProfileEapUserData(hclienthandle, pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(eaptype), dwflags, pbeapuserdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbeapuserdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetProfileEapXmlUserData(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, dwflags: WLAN_SET_EAPHOST_FLAGS, streapxmluserdata: P4, preserved: Option<*const core::ffi::c_void>) -> u32 @@ -313,12 +313,12 @@ where P4: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfileEapXmlUserData(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, dwflags : WLAN_SET_EAPHOST_FLAGS, streapxmluserdata : windows_core::PCWSTR, preserved : *const core::ffi::c_void) -> u32); - WlanSetProfileEapXmlUserData(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), core::mem::transmute(dwflags), streapxmluserdata.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetProfileEapXmlUserData(hclienthandle, pinterfaceguid, strprofilename.param().abi(), dwflags, streapxmluserdata.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetProfileList(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilenames: &[windows_core::PCWSTR], preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfileList(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, dwitems : u32, strprofilenames : *const windows_core::PCWSTR, preserved : *const core::ffi::c_void) -> u32); - WlanSetProfileList(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilenames.len().try_into().unwrap(), core::mem::transmute(strprofilenames.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetProfileList(hclienthandle, pinterfaceguid, strprofilenames.len().try_into().unwrap(), core::mem::transmute(strprofilenames.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetProfilePosition(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, strprofilename: P2, dwposition: u32, preserved: Option<*const core::ffi::c_void>) -> u32 @@ -326,7 +326,7 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfilePosition(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, dwposition : u32, preserved : *const core::ffi::c_void) -> u32); - WlanSetProfilePosition(core::mem::transmute(hclienthandle), core::mem::transmute(pinterfaceguid), strprofilename.param().abi(), core::mem::transmute(dwposition), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetProfilePosition(hclienthandle, pinterfaceguid, strprofilename.param().abi(), dwposition, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetPsdIEDataList(hclienthandle: super::super::Foundation::HANDLE, strformat: P1, ppsdiedatalist: Option<*const WLAN_RAW_DATA_LIST>, preserved: Option<*const core::ffi::c_void>) -> u32 @@ -334,7 +334,7 @@ where P1: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetPsdIEDataList(hclienthandle : super::super::Foundation:: HANDLE, strformat : windows_core::PCWSTR, ppsdiedatalist : *const WLAN_RAW_DATA_LIST, preserved : *const core::ffi::c_void) -> u32); - WlanSetPsdIEDataList(core::mem::transmute(hclienthandle), strformat.param().abi(), core::mem::transmute(ppsdiedatalist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WlanSetPsdIEDataList(hclienthandle, strformat.param().abi(), core::mem::transmute(ppsdiedatalist.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WlanSetSecuritySettings(hclienthandle: super::super::Foundation::HANDLE, securableobject: WLAN_SECURABLE_OBJECT, strmodifiedsddl: P2) -> u32 @@ -342,7 +342,7 @@ where P2: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanSetSecuritySettings(hclienthandle : super::super::Foundation:: HANDLE, securableobject : WLAN_SECURABLE_OBJECT, strmodifiedsddl : windows_core::PCWSTR) -> u32); - WlanSetSecuritySettings(core::mem::transmute(hclienthandle), core::mem::transmute(securableobject), strmodifiedsddl.param().abi()) + WlanSetSecuritySettings(hclienthandle, securableobject, strmodifiedsddl.param().abi()) } #[inline] pub unsafe fn WlanUIEditProfile(dwclientversion: u32, wstrprofilename: P1, pinterfaceguid: *const windows_core::GUID, hwnd: super::super::Foundation::HWND, wlstartpage: WL_DISPLAY_PAGES, preserved: Option<*const core::ffi::c_void>, pwlanreasoncode: Option<*mut u32>) -> u32 @@ -350,7 +350,7 @@ where P1: windows_core::Param, { windows_targets::link!("wlanui.dll" "system" fn WlanUIEditProfile(dwclientversion : u32, wstrprofilename : windows_core::PCWSTR, pinterfaceguid : *const windows_core::GUID, hwnd : super::super::Foundation:: HWND, wlstartpage : WL_DISPLAY_PAGES, preserved : *const core::ffi::c_void, pwlanreasoncode : *mut u32) -> u32); - WlanUIEditProfile(core::mem::transmute(dwclientversion), wstrprofilename.param().abi(), core::mem::transmute(pinterfaceguid), core::mem::transmute(hwnd), core::mem::transmute(wlstartpage), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwlanreasoncode.unwrap_or(core::mem::zeroed()))) + WlanUIEditProfile(dwclientversion, wstrprofilename.param().abi(), pinterfaceguid, hwnd, wlstartpage, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwlanreasoncode.unwrap_or(core::mem::zeroed()))) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -4689,7 +4689,7 @@ impl IDot11AdHocInterface { } pub unsafe fn GetIEnumDot11AdHocNetworks(&self, pfilterguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIEnumDot11AdHocNetworks)(windows_core::Interface::as_raw(self), core::mem::transmute(pfilterguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIEnumDot11AdHocNetworks)(windows_core::Interface::as_raw(self), pfilterguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStatus(&self, pstate: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstate)).ok() @@ -4803,7 +4803,7 @@ windows_core::imp::define_interface!(IDot11AdHocInterfaceNotificationSink, IDot1 windows_core::imp::interface_hierarchy!(IDot11AdHocInterfaceNotificationSink, windows_core::IUnknown); impl IDot11AdHocInterfaceNotificationSink { pub unsafe fn OnConnectionStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnConnectionStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(estatus)).ok() + (windows_core::Interface::vtable(self).OnConnectionStatusChange)(windows_core::Interface::as_raw(self), estatus).ok() } } #[repr(C)] @@ -4838,17 +4838,17 @@ impl IDot11AdHocManager { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNetwork)(windows_core::Interface::as_raw(self), name.param().abi(), password.param().abi(), core::mem::transmute(geographicalid), pinterface.param().abi(), psecurity.param().abi(), core::mem::transmute(pcontextguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNetwork)(windows_core::Interface::as_raw(self), name.param().abi(), password.param().abi(), geographicalid, pinterface.param().abi(), psecurity.param().abi(), pcontextguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CommitCreatedNetwork(&self, piadhoc: P0, fsaveprofile: bool, fmakesavedprofileuserspecific: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitCreatedNetwork)(windows_core::Interface::as_raw(self), piadhoc.param().abi(), core::mem::transmute(fsaveprofile), core::mem::transmute(fmakesavedprofileuserspecific)).ok() + (windows_core::Interface::vtable(self).CommitCreatedNetwork)(windows_core::Interface::as_raw(self), piadhoc.param().abi(), fsaveprofile, fmakesavedprofileuserspecific).ok() } pub unsafe fn GetIEnumDot11AdHocNetworks(&self, pcontextguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIEnumDot11AdHocNetworks)(windows_core::Interface::as_raw(self), core::mem::transmute(pcontextguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIEnumDot11AdHocNetworks)(windows_core::Interface::as_raw(self), pcontextguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetIEnumDot11AdHocInterfaces(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4856,7 +4856,7 @@ impl IDot11AdHocManager { } pub unsafe fn GetNetwork(&self, networksignature: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNetwork)(windows_core::Interface::as_raw(self), core::mem::transmute(networksignature), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNetwork)(windows_core::Interface::as_raw(self), networksignature, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4945,7 +4945,7 @@ impl IDot11AdHocManagerNotificationSink { (windows_core::Interface::vtable(self).OnNetworkAdd)(windows_core::Interface::as_raw(self), piadhocnetwork.param().abi()).ok() } pub unsafe fn OnNetworkRemove(&self, signature: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNetworkRemove)(windows_core::Interface::as_raw(self), core::mem::transmute(signature)).ok() + (windows_core::Interface::vtable(self).OnNetworkRemove)(windows_core::Interface::as_raw(self), signature).ok() } pub unsafe fn OnInterfaceAdd(&self, piadhocinterface: P0) -> windows_core::Result<()> where @@ -4954,7 +4954,7 @@ impl IDot11AdHocManagerNotificationSink { (windows_core::Interface::vtable(self).OnInterfaceAdd)(windows_core::Interface::as_raw(self), piadhocinterface.param().abi()).ok() } pub unsafe fn OnInterfaceRemove(&self, signature: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInterfaceRemove)(windows_core::Interface::as_raw(self), core::mem::transmute(signature)).ok() + (windows_core::Interface::vtable(self).OnInterfaceRemove)(windows_core::Interface::as_raw(self), signature).ok() } } #[repr(C)] @@ -5043,7 +5043,7 @@ impl IDot11AdHocNetwork { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), passphrase.param().abi(), core::mem::transmute(geographicalid), core::mem::transmute(fsaveprofile), core::mem::transmute(fmakesavedprofileuserspecific)).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), passphrase.param().abi(), geographicalid, fsaveprofile, fmakesavedprofileuserspecific).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -5178,10 +5178,10 @@ windows_core::imp::define_interface!(IDot11AdHocNetworkNotificationSink, IDot11A windows_core::imp::interface_hierarchy!(IDot11AdHocNetworkNotificationSink, windows_core::IUnknown); impl IDot11AdHocNetworkNotificationSink { pub unsafe fn OnStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(estatus)).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), estatus).ok() } pub unsafe fn OnConnectFail(&self, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnConnectFail)(windows_core::Interface::as_raw(self), core::mem::transmute(efailreason)).ok() + (windows_core::Interface::vtable(self).OnConnectFail)(windows_core::Interface::as_raw(self), efailreason).ok() } } #[repr(C)] @@ -5263,7 +5263,7 @@ impl IEnumDot11AdHocInterfaces { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5331,7 +5331,7 @@ impl IEnumDot11AdHocNetworks { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5399,7 +5399,7 @@ impl IEnumDot11AdHocSecuritySettings { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs index e0699b3cff..996da0aa20 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs @@ -5,7 +5,7 @@ impl IWCNConnectNotify { (windows_core::Interface::vtable(self).ConnectSucceeded)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ConnectFailed(&self, hrfailure: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectFailed)(windows_core::Interface::as_raw(self), core::mem::transmute(hrfailure)).ok() + (windows_core::Interface::vtable(self).ConnectFailed)(windows_core::Interface::as_raw(self), hrfailure).ok() } } #[repr(C)] @@ -43,7 +43,7 @@ windows_core::imp::define_interface!(IWCNDevice, IWCNDevice_Vtbl, 0xc100be9c_d33 windows_core::imp::interface_hierarchy!(IWCNDevice, windows_core::IUnknown); impl IWCNDevice { pub unsafe fn SetPassword(&self, r#type: WCN_PASSWORD_TYPE, pbpassword: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), pbpassword.len().try_into().unwrap(), core::mem::transmute(pbpassword.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), r#type, pbpassword.len().try_into().unwrap(), core::mem::transmute(pbpassword.as_ptr())).ok() } pub unsafe fn Connect(&self, pnotify: P0) -> windows_core::Result<()> where @@ -52,14 +52,14 @@ impl IWCNDevice { (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn GetAttribute(&self, attributetype: WCN_ATTRIBUTE_TYPE, pbbuffer: &mut [u8], pdwbufferused: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attributetype), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), core::mem::transmute(pdwbufferused)).ok() + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), attributetype, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), core::mem::transmute(pdwbufferused)).ok() } pub unsafe fn GetIntegerAttribute(&self, attributetype: WCN_ATTRIBUTE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIntegerAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attributetype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIntegerAttribute)(windows_core::Interface::as_raw(self), attributetype, &mut result__).map(|| result__) } pub unsafe fn GetStringAttribute(&self, attributetype: WCN_ATTRIBUTE_TYPE, wszstring: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStringAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attributetype), wszstring.len().try_into().unwrap(), core::mem::transmute(wszstring.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetStringAttribute)(windows_core::Interface::as_raw(self), attributetype, wszstring.len().try_into().unwrap(), core::mem::transmute(wszstring.as_ptr())).ok() } pub unsafe fn GetNetworkProfile(&self, wszprofile: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNetworkProfile)(windows_core::Interface::as_raw(self), wszprofile.len().try_into().unwrap(), core::mem::transmute(wszprofile.as_ptr())).ok() @@ -71,10 +71,10 @@ impl IWCNDevice { (windows_core::Interface::vtable(self).SetNetworkProfile)(windows_core::Interface::as_raw(self), pszprofilexml.param().abi()).ok() } pub unsafe fn GetVendorExtension(&self, pvendorextspec: *const WCN_VENDOR_EXTENSION_SPEC, pbbuffer: &mut [u8], pdwbufferused: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVendorExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(pvendorextspec), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), core::mem::transmute(pdwbufferused)).ok() + (windows_core::Interface::vtable(self).GetVendorExtension)(windows_core::Interface::as_raw(self), pvendorextspec, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), core::mem::transmute(pdwbufferused)).ok() } pub unsafe fn SetVendorExtension(&self, pvendorextspec: *const WCN_VENDOR_EXTENSION_SPEC, pbbuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVendorExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(pvendorextspec), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetVendorExtension)(windows_core::Interface::as_raw(self), pvendorextspec, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Unadvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self)).ok() @@ -82,8 +82,8 @@ impl IWCNDevice { pub unsafe fn SetNFCPasswordParams(&self, r#type: WCN_PASSWORD_TYPE, dwoobpasswordid: u32, pbpassword: Option<&[u8]>, pbremotepublickeyhash: Option<&[u8]>, pbdhkeyblob: Option<&[u8]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetNFCPasswordParams)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), - core::mem::transmute(dwoobpasswordid), + r#type, + dwoobpasswordid, pbpassword.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpassword.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbremotepublickeyhash.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs index baa0f24239..abb8d93985 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn FreeInterfaceContextTable(interfacecontexttable: *const NET_INTERFACE_CONTEXT_TABLE) { windows_targets::link!("ondemandconnroutehelper.dll" "system" fn FreeInterfaceContextTable(interfacecontexttable : *const NET_INTERFACE_CONTEXT_TABLE)); - FreeInterfaceContextTable(core::mem::transmute(interfacecontexttable)) + FreeInterfaceContextTable(interfacecontexttable) } #[inline] pub unsafe fn GetInterfaceContextTableForHostName(hostname: P0, proxyname: P1, flags: u32, connectionprofilefilterrawdata: Option<&[u8]>) -> windows_core::Result<*mut NET_INTERFACE_CONTEXT_TABLE> @@ -11,7 +11,7 @@ where { windows_targets::link!("ondemandconnroutehelper.dll" "system" fn GetInterfaceContextTableForHostName(hostname : windows_core::PCWSTR, proxyname : windows_core::PCWSTR, flags : u32, connectionprofilefilterrawdata : *const u8, connectionprofilefilterrawdatasize : u32, interfacecontexttable : *mut *mut NET_INTERFACE_CONTEXT_TABLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetInterfaceContextTableForHostName(hostname.param().abi(), proxyname.param().abi(), core::mem::transmute(flags), core::mem::transmute(connectionprofilefilterrawdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), connectionprofilefilterrawdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) + GetInterfaceContextTableForHostName(hostname.param().abi(), proxyname.param().abi(), flags, core::mem::transmute(connectionprofilefilterrawdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), connectionprofilefilterrawdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn OnDemandGetRoutingHint(destinationhostname: P0) -> windows_core::Result @@ -26,12 +26,12 @@ where pub unsafe fn OnDemandRegisterNotification(callback: ONDEMAND_NOTIFICATION_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result { windows_targets::link!("ondemandconnroutehelper.dll" "system" fn OnDemandRegisterNotification(callback : ONDEMAND_NOTIFICATION_CALLBACK, callbackcontext : *const core::ffi::c_void, registrationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OnDemandRegisterNotification(core::mem::transmute(callback), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + OnDemandRegisterNotification(callback, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn OnDemandUnRegisterNotification(registrationhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ondemandconnroutehelper.dll" "system" fn OnDemandUnRegisterNotification(registrationhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - OnDemandUnRegisterNotification(core::mem::transmute(registrationhandle)).ok() + OnDemandUnRegisterNotification(registrationhandle).ok() } #[inline] pub unsafe fn WcmFreeMemory(pmemory: *mut core::ffi::c_void) { @@ -49,12 +49,12 @@ where P1: windows_core::Param, { windows_targets::link!("wcmapi.dll" "system" fn WcmQueryProperty(pinterface : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, property : WCM_PROPERTY, preserved : *const core::ffi::c_void, pdwdatasize : *mut u32, ppdata : *mut *mut u8) -> u32); - WcmQueryProperty(core::mem::transmute(pinterface.unwrap_or(core::mem::zeroed())), strprofilename.param().abi(), core::mem::transmute(property), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata)) + WcmQueryProperty(core::mem::transmute(pinterface.unwrap_or(core::mem::zeroed())), strprofilename.param().abi(), property, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatasize), core::mem::transmute(ppdata)) } #[inline] pub unsafe fn WcmSetProfileList(pprofilelist: *const WCM_PROFILE_INFO_LIST, dwposition: u32, fignoreunknownprofiles: bool, preserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wcmapi.dll" "system" fn WcmSetProfileList(pprofilelist : *const WCM_PROFILE_INFO_LIST, dwposition : u32, fignoreunknownprofiles : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void) -> u32); - WcmSetProfileList(core::mem::transmute(pprofilelist), core::mem::transmute(dwposition), fignoreunknownprofiles.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + WcmSetProfileList(pprofilelist, dwposition, fignoreunknownprofiles.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WcmSetProperty(pinterface: Option<*const windows_core::GUID>, strprofilename: P1, property: WCM_PROPERTY, preserved: Option<*const core::ffi::c_void>, pbdata: Option<&[u8]>) -> u32 @@ -62,7 +62,7 @@ where P1: windows_core::Param, { windows_targets::link!("wcmapi.dll" "system" fn WcmSetProperty(pinterface : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, property : WCM_PROPERTY, preserved : *const core::ffi::c_void, dwdatasize : u32, pbdata : *const u8) -> u32); - WcmSetProperty(core::mem::transmute(pinterface.unwrap_or(core::mem::zeroed())), strprofilename.param().abi(), core::mem::transmute(property), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + WcmSetProperty(core::mem::transmute(pinterface.unwrap_or(core::mem::zeroed())), strprofilename.param().abi(), property, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs index fdf85528be..a3b9b0d468 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -2,121 +2,121 @@ #[inline] pub unsafe fn FwpmCalloutAdd0(enginehandle: super::super::Foundation::HANDLE, callout: *const FWPM_CALLOUT0, sd: Option, id: Option<*mut u32>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutAdd0(enginehandle : super::super::Foundation:: HANDLE, callout : *const FWPM_CALLOUT0, sd : super::super::Security:: PSECURITY_DESCRIPTOR, id : *mut u32) -> u32); - FwpmCalloutAdd0(core::mem::transmute(enginehandle), core::mem::transmute(callout), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmCalloutAdd0(enginehandle, callout, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmCalloutCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_CALLOUT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_CALLOUT_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmCalloutCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmCalloutCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmCalloutDeleteById0(enginehandle: super::super::Foundation::HANDLE, id: u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u32) -> u32); - FwpmCalloutDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + FwpmCalloutDeleteById0(enginehandle, id) } #[inline] pub unsafe fn FwpmCalloutDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmCalloutDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmCalloutDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmCalloutDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmCalloutDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmCalloutDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmCalloutEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_CALLOUT0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_CALLOUT0, numentriesreturned : *mut u32) -> u32); - FwpmCalloutEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmCalloutEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn FwpmCalloutGetById0(enginehandle: super::super::Foundation::HANDLE, id: u32, callout: *mut *mut FWPM_CALLOUT0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u32, callout : *mut *mut FWPM_CALLOUT0) -> u32); - FwpmCalloutGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(callout)) + FwpmCalloutGetById0(enginehandle, id, core::mem::transmute(callout)) } #[inline] pub unsafe fn FwpmCalloutGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, callout: *mut *mut FWPM_CALLOUT0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, callout : *mut *mut FWPM_CALLOUT0) -> u32); - FwpmCalloutGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(callout)) + FwpmCalloutGetByKey0(enginehandle, key, core::mem::transmute(callout)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmCalloutGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmCalloutGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmCalloutSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmCalloutSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmCalloutSubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_CALLOUT_SUBSCRIPTION0, callback: FWPM_CALLOUT_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutSubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_CALLOUT_SUBSCRIPTION0, callback : FWPM_CALLOUT_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmCalloutSubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) + FwpmCalloutSubscribeChanges0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmCalloutSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut FWPM_CALLOUT_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut FWPM_CALLOUT_SUBSCRIPTION0, numentries : *mut u32) -> u32); - FwpmCalloutSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + FwpmCalloutSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn FwpmCalloutUnsubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, changehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmCalloutUnsubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(changehandle)) + FwpmCalloutUnsubscribeChanges0(enginehandle, core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmConnectionCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_CONNECTION_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_CONNECTION_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmConnectionCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmConnectionCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmConnectionDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmConnectionDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmConnectionDestroyEnumHandle0(enginehandle, enumhandle) } #[inline] pub unsafe fn FwpmConnectionEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_CONNECTION0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_CONNECTION0, numentriesreturned : *mut u32) -> u32); - FwpmConnectionEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmConnectionEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn FwpmConnectionGetById0(enginehandle: super::super::Foundation::HANDLE, id: u64, connection: *mut *mut FWPM_CONNECTION0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, connection : *mut *mut FWPM_CONNECTION0) -> u32); - FwpmConnectionGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(connection)) + FwpmConnectionGetById0(enginehandle, id, core::mem::transmute(connection)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmConnectionGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmConnectionGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmConnectionSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmConnectionSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmConnectionSubscribe0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_CONNECTION_SUBSCRIPTION0, callback: FWPM_CONNECTION_CALLBACK0, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionSubscribe0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_CONNECTION_SUBSCRIPTION0, callback : FWPM_CONNECTION_CALLBACK0, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmConnectionSubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + FwpmConnectionSubscribe0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[inline] pub unsafe fn FwpmConnectionUnsubscribe0(enginehandle: super::super::Foundation::HANDLE, eventshandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, eventshandle : super::super::Foundation:: HANDLE) -> u32); - FwpmConnectionUnsubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(eventshandle)) + FwpmConnectionUnsubscribe0(enginehandle, core::mem::transmute(eventshandle)) } #[inline] pub unsafe fn FwpmDynamicKeywordSubscribe0(flags: u32, callback: FWPM_DYNAMIC_KEYWORD_CALLBACK0, context: Option<*const core::ffi::c_void>, subscriptionhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmDynamicKeywordSubscribe0(flags : u32, callback : FWPM_DYNAMIC_KEYWORD_CALLBACK0, context : *const core::ffi::c_void, subscriptionhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmDynamicKeywordSubscribe0(core::mem::transmute(flags), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(subscriptionhandle)) + FwpmDynamicKeywordSubscribe0(flags, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(subscriptionhandle)) } #[inline] pub unsafe fn FwpmDynamicKeywordUnsubscribe0(subscriptionhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmDynamicKeywordUnsubscribe0(subscriptionhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmDynamicKeywordUnsubscribe0(core::mem::transmute(subscriptionhandle)) + FwpmDynamicKeywordUnsubscribe0(subscriptionhandle) } #[inline] pub unsafe fn FwpmEngineClose0(enginehandle: super::super::Foundation::HANDLE) -> u32 { @@ -127,13 +127,13 @@ pub unsafe fn FwpmEngineClose0(enginehandle: super::super::Foundation::HANDLE) - #[inline] pub unsafe fn FwpmEngineGetOption0(enginehandle: super::super::Foundation::HANDLE, option: FWPM_ENGINE_OPTION, value: *mut *mut FWP_VALUE0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetOption0(enginehandle : super::super::Foundation:: HANDLE, option : FWPM_ENGINE_OPTION, value : *mut *mut FWP_VALUE0) -> u32); - FwpmEngineGetOption0(core::mem::transmute(enginehandle), core::mem::transmute(option), core::mem::transmute(value)) + FwpmEngineGetOption0(enginehandle, option, core::mem::transmute(value)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmEngineGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmEngineGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Rpc"))] #[inline] @@ -142,93 +142,93 @@ where P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineOpen0(servername : windows_core::PCWSTR, authnservice : u32, authidentity : *const super::super::System::Rpc:: SEC_WINNT_AUTH_IDENTITY_W, session : *const FWPM_SESSION0, enginehandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmEngineOpen0(servername.param().abi(), core::mem::transmute(authnservice), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(enginehandle)) + FwpmEngineOpen0(servername.param().abi(), authnservice, core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(enginehandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineSetOption0(enginehandle: super::super::Foundation::HANDLE, option: FWPM_ENGINE_OPTION, newvalue: *const FWP_VALUE0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineSetOption0(enginehandle : super::super::Foundation:: HANDLE, option : FWPM_ENGINE_OPTION, newvalue : *const FWP_VALUE0) -> u32); - FwpmEngineSetOption0(core::mem::transmute(enginehandle), core::mem::transmute(option), core::mem::transmute(newvalue)) + FwpmEngineSetOption0(enginehandle, option, newvalue) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmEngineSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmEngineSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterAdd0(enginehandle: super::super::Foundation::HANDLE, filter: *const FWPM_FILTER0, sd: Option, id: Option<*mut u64>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterAdd0(enginehandle : super::super::Foundation:: HANDLE, filter : *const FWPM_FILTER0, sd : super::super::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> u32); - FwpmFilterAdd0(core::mem::transmute(enginehandle), core::mem::transmute(filter), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmFilterAdd0(enginehandle, filter, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_FILTER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_FILTER_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmFilterCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmFilterCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmFilterDeleteById0(enginehandle: super::super::Foundation::HANDLE, id: u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - FwpmFilterDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + FwpmFilterDeleteById0(enginehandle, id) } #[inline] pub unsafe fn FwpmFilterDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmFilterDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmFilterDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmFilterDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmFilterDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmFilterDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_FILTER0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_FILTER0, numentriesreturned : *mut u32) -> u32); - FwpmFilterEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmFilterEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetById0(enginehandle: super::super::Foundation::HANDLE, id: u64, filter: *mut *mut FWPM_FILTER0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, filter : *mut *mut FWPM_FILTER0) -> u32); - FwpmFilterGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(filter)) + FwpmFilterGetById0(enginehandle, id, core::mem::transmute(filter)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, filter: *mut *mut FWPM_FILTER0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, filter : *mut *mut FWPM_FILTER0) -> u32); - FwpmFilterGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(filter)) + FwpmFilterGetByKey0(enginehandle, key, core::mem::transmute(filter)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmFilterGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmFilterGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmFilterSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmFilterSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_FILTER_SUBSCRIPTION0, callback: FWPM_FILTER_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterSubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_FILTER_SUBSCRIPTION0, callback : FWPM_FILTER_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmFilterSubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) + FwpmFilterSubscribeChanges0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut FWPM_FILTER_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut FWPM_FILTER_SUBSCRIPTION0, numentries : *mut u32) -> u32); - FwpmFilterSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + FwpmFilterSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn FwpmFilterUnsubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, changehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmFilterUnsubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(changehandle)) + FwpmFilterUnsubscribeChanges0(enginehandle, core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { @@ -247,442 +247,442 @@ where #[inline] pub unsafe fn FwpmIPsecTunnelAdd0(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT0>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT0, filterconditions: &[FWPM_FILTER_CONDITION0], sd: Option) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd0(enginehandle : super::super::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const FWPM_PROVIDER_CONTEXT0, tunnelpolicy : *const FWPM_PROVIDER_CONTEXT0, numfilterconditions : u32, filterconditions : *const FWPM_FILTER_CONDITION0, sd : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmIPsecTunnelAdd0(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd0(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd1(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT1>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT1, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: Option) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd1(enginehandle : super::super::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const FWPM_PROVIDER_CONTEXT1, tunnelpolicy : *const FWPM_PROVIDER_CONTEXT1, numfilterconditions : u32, filterconditions : *const FWPM_FILTER_CONDITION0, keymodkey : *const windows_core::GUID, sd : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmIPsecTunnelAdd1(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd1(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd2(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT2>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT2, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: Option) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd2(enginehandle : super::super::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const FWPM_PROVIDER_CONTEXT2, tunnelpolicy : *const FWPM_PROVIDER_CONTEXT2, numfilterconditions : u32, filterconditions : *const FWPM_FILTER_CONDITION0, keymodkey : *const windows_core::GUID, sd : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmIPsecTunnelAdd2(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd2(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd3(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT3>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT3, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: Option) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd3(enginehandle : super::super::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const FWPM_PROVIDER_CONTEXT3, tunnelpolicy : *const FWPM_PROVIDER_CONTEXT3, numfilterconditions : u32, filterconditions : *const FWPM_FILTER_CONDITION0, keymodkey : *const windows_core::GUID, sd : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmIPsecTunnelAdd3(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(tunnelpolicy), filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmIPsecTunnelAdd3(enginehandle, flags, core::mem::transmute(mainmodepolicy.unwrap_or(core::mem::zeroed())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmIPsecTunnelDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmIPsecTunnelDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmIPsecTunnelDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmLayerCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_LAYER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_LAYER_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmLayerCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmLayerCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmLayerDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmLayerDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmLayerDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmLayerEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_LAYER0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_LAYER0, numentriesreturned : *mut u32) -> u32); - FwpmLayerEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmLayerEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn FwpmLayerGetById0(enginehandle: super::super::Foundation::HANDLE, id: u16, layer: *mut *mut FWPM_LAYER0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u16, layer : *mut *mut FWPM_LAYER0) -> u32); - FwpmLayerGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(layer)) + FwpmLayerGetById0(enginehandle, id, core::mem::transmute(layer)) } #[inline] pub unsafe fn FwpmLayerGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, layer: *mut *mut FWPM_LAYER0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, layer : *mut *mut FWPM_LAYER0) -> u32); - FwpmLayerGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(layer)) + FwpmLayerGetByKey0(enginehandle, key, core::mem::transmute(layer)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmLayerGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmLayerGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmLayerSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmLayerSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_NET_EVENT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_NET_EVENT_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmNetEventCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmNetEventDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmNetEventDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_NET_EVENT0, numentriesreturned : *mut u32) -> u32); - FwpmNetEventEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum1(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT1, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum1(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_NET_EVENT1, numentriesreturned : *mut u32) -> u32); - FwpmNetEventEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum2(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT2, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum2(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_NET_EVENT2, numentriesreturned : *mut u32) -> u32); - FwpmNetEventEnum2(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum2(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT3, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum3(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_NET_EVENT3, numentriesreturned : *mut u32) -> u32); - FwpmNetEventEnum3(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum3(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum4(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT4, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum4(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_NET_EVENT4, numentriesreturned : *mut u32) -> u32); - FwpmNetEventEnum4(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum4(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum5(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT5, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum5(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_NET_EVENT5, numentriesreturned : *mut u32) -> u32); - FwpmNetEventEnum5(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmNetEventEnum5(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_NET_EVENT_SUBSCRIPTION0, callback: FWPM_NET_EVENT_CALLBACK0, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventSubscribe0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_NET_EVENT_SUBSCRIPTION0, callback : FWPM_NET_EVENT_CALLBACK0, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventSubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + FwpmNetEventSubscribe0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe1(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_NET_EVENT_SUBSCRIPTION0, callback: FWPM_NET_EVENT_CALLBACK1, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventSubscribe1(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_NET_EVENT_SUBSCRIPTION0, callback : FWPM_NET_EVENT_CALLBACK1, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventSubscribe1(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + FwpmNetEventSubscribe1(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe2(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_NET_EVENT_SUBSCRIPTION0, callback: FWPM_NET_EVENT_CALLBACK2, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventSubscribe2(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_NET_EVENT_SUBSCRIPTION0, callback : FWPM_NET_EVENT_CALLBACK2, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventSubscribe2(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + FwpmNetEventSubscribe2(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe3(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_NET_EVENT_SUBSCRIPTION0, callback: FWPM_NET_EVENT_CALLBACK3, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventSubscribe3(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_NET_EVENT_SUBSCRIPTION0, callback : FWPM_NET_EVENT_CALLBACK3, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventSubscribe3(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + FwpmNetEventSubscribe3(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe4(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_NET_EVENT_SUBSCRIPTION0, callback: FWPM_NET_EVENT_CALLBACK4, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventSubscribe4(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_NET_EVENT_SUBSCRIPTION0, callback : FWPM_NET_EVENT_CALLBACK4, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventSubscribe4(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + FwpmNetEventSubscribe4(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut FWPM_NET_EVENT_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut FWPM_NET_EVENT_SUBSCRIPTION0, numentries : *mut u32) -> u32); - FwpmNetEventSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + FwpmNetEventSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn FwpmNetEventUnsubscribe0(enginehandle: super::super::Foundation::HANDLE, eventshandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, eventshandle : super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventUnsubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(eventshandle)) + FwpmNetEventUnsubscribe0(enginehandle, core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventsGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmNetEventsGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmNetEventsGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventsSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmNetEventsSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmNetEventsSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderAdd0(enginehandle: super::super::Foundation::HANDLE, provider: *const FWPM_PROVIDER0, sd: Option) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderAdd0(enginehandle : super::super::Foundation:: HANDLE, provider : *const FWPM_PROVIDER0, sd : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmProviderAdd0(core::mem::transmute(enginehandle), core::mem::transmute(provider), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmProviderAdd0(enginehandle, provider, core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd0(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT0, sd: Option, id: Option<*mut u64>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd0(enginehandle : super::super::Foundation:: HANDLE, providercontext : *const FWPM_PROVIDER_CONTEXT0, sd : super::super::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> u32); - FwpmProviderContextAdd0(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd0(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd1(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT1, sd: Option, id: Option<*mut u64>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd1(enginehandle : super::super::Foundation:: HANDLE, providercontext : *const FWPM_PROVIDER_CONTEXT1, sd : super::super::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> u32); - FwpmProviderContextAdd1(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd1(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd2(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT2, sd: Option, id: Option<*mut u64>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd2(enginehandle : super::super::Foundation:: HANDLE, providercontext : *const FWPM_PROVIDER_CONTEXT2, sd : super::super::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> u32); - FwpmProviderContextAdd2(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd2(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd3(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT3, sd: Option, id: Option<*mut u64>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd3(enginehandle : super::super::Foundation:: HANDLE, providercontext : *const FWPM_PROVIDER_CONTEXT3, sd : super::super::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> u32); - FwpmProviderContextAdd3(core::mem::transmute(enginehandle), core::mem::transmute(providercontext), core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextAdd3(enginehandle, providercontext, core::mem::transmute(sd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmProviderContextCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmProviderContextCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmProviderContextCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmProviderContextDeleteById0(enginehandle: super::super::Foundation::HANDLE, id: u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - FwpmProviderContextDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + FwpmProviderContextDeleteById0(enginehandle, id) } #[inline] pub unsafe fn FwpmProviderContextDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmProviderContextDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmProviderContextDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmProviderContextDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderContextDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmProviderContextDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_PROVIDER_CONTEXT0, numentriesreturned : *mut u32) -> u32); - FwpmProviderContextEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum1(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT1, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum1(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_PROVIDER_CONTEXT1, numentriesreturned : *mut u32) -> u32); - FwpmProviderContextEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum2(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT2, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum2(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_PROVIDER_CONTEXT2, numentriesreturned : *mut u32) -> u32); - FwpmProviderContextEnum2(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum2(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT3, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum3(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_PROVIDER_CONTEXT3, numentriesreturned : *mut u32) -> u32); - FwpmProviderContextEnum3(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderContextEnum3(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById0(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32); - FwpmProviderContextGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById0(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById1(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById1(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32); - FwpmProviderContextGetById1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById1(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById2(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById2(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32); - FwpmProviderContextGetById2(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById2(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById3(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById3(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32); - FwpmProviderContextGetById3(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(providercontext)) + FwpmProviderContextGetById3(enginehandle, id, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32); - FwpmProviderContextGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey0(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey1(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey1(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32); - FwpmProviderContextGetByKey1(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey1(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey2(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey2(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32); - FwpmProviderContextGetByKey2(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey2(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey3(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey3(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32); - FwpmProviderContextGetByKey3(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(providercontext)) + FwpmProviderContextGetByKey3(enginehandle, key, core::mem::transmute(providercontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmProviderContextGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmProviderContextGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmProviderContextSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmProviderContextSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmProviderContextSubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0, callback: FWPM_PROVIDER_CONTEXT_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextSubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0, callback : FWPM_PROVIDER_CONTEXT_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmProviderContextSubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) + FwpmProviderContextSubscribeChanges0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmProviderContextSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0, numentries : *mut u32) -> u32); - FwpmProviderContextSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + FwpmProviderContextSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn FwpmProviderContextUnsubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, changehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderContextUnsubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(changehandle)) + FwpmProviderContextUnsubscribeChanges0(enginehandle, core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmProviderCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_PROVIDER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_PROVIDER_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmProviderCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmProviderCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmProviderDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmProviderDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmProviderDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmProviderDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmProviderDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmProviderEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_PROVIDER0, numentriesreturned : *mut u32) -> u32); - FwpmProviderEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmProviderEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn FwpmProviderGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, provider: *mut *mut FWPM_PROVIDER0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderGetByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, provider : *mut *mut FWPM_PROVIDER0) -> u32); - FwpmProviderGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(provider)) + FwpmProviderGetByKey0(enginehandle, key, core::mem::transmute(provider)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmProviderGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmProviderGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmProviderSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmProviderSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmProviderSubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_PROVIDER_SUBSCRIPTION0, callback: FWPM_PROVIDER_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderSubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_PROVIDER_SUBSCRIPTION0, callback : FWPM_PROVIDER_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmProviderSubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) + FwpmProviderSubscribeChanges0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmProviderSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut FWPM_PROVIDER_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut FWPM_PROVIDER_SUBSCRIPTION0, numentries : *mut u32) -> u32); - FwpmProviderSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + FwpmProviderSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn FwpmProviderUnsubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, changehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderUnsubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(changehandle)) + FwpmProviderUnsubscribeChanges0(enginehandle, core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmSessionCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_SESSION_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_SESSION_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmSessionCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmSessionCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmSessionDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSessionDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmSessionDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSessionEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_SESSION0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_SESSION0, numentriesreturned : *mut u32) -> u32); - FwpmSessionEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmSessionEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerAdd0(enginehandle: super::super::Foundation::HANDLE, sublayer: *const FWPM_SUBLAYER0, sd: Option) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerAdd0(enginehandle : super::super::Foundation:: HANDLE, sublayer : *const FWPM_SUBLAYER0, sd : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmSubLayerAdd0(core::mem::transmute(enginehandle), core::mem::transmute(sublayer), core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) + FwpmSubLayerAdd0(enginehandle, sublayer, core::mem::transmute(sd.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmSubLayerCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const FWPM_SUBLAYER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const FWPM_SUBLAYER_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmSubLayerCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + FwpmSubLayerCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmSubLayerDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmSubLayerDeleteByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key)) + FwpmSubLayerDeleteByKey0(enginehandle, key) } #[inline] pub unsafe fn FwpmSubLayerDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSubLayerDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + FwpmSubLayerDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn FwpmSubLayerEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_SUBLAYER0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut FWPM_SUBLAYER0, numentriesreturned : *mut u32) -> u32); - FwpmSubLayerEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + FwpmSubLayerEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn FwpmSubLayerGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const windows_core::GUID, sublayer: *mut *mut FWPM_SUBLAYER0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, sublayer : *mut *mut FWPM_SUBLAYER0) -> u32); - FwpmSubLayerGetByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key), core::mem::transmute(sublayer)) + FwpmSubLayerGetByKey0(enginehandle, key, core::mem::transmute(sublayer)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmSubLayerGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmSubLayerGetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmSubLayerSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmSubLayerSetSecurityInfoByKey0(enginehandle, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FwpmSubLayerSubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_SUBLAYER_SUBSCRIPTION0, callback: FWPM_SUBLAYER_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerSubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_SUBLAYER_SUBSCRIPTION0, callback : FWPM_SUBLAYER_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmSubLayerSubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) + FwpmSubLayerSubscribeChanges0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmSubLayerSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut FWPM_SUBLAYER_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut FWPM_SUBLAYER_SUBSCRIPTION0, numentries : *mut u32) -> u32); - FwpmSubLayerSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + FwpmSubLayerSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn FwpmSubLayerUnsubscribeChanges0(enginehandle: super::super::Foundation::HANDLE, changehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSubLayerUnsubscribeChanges0(core::mem::transmute(enginehandle), core::mem::transmute(changehandle)) + FwpmSubLayerUnsubscribeChanges0(enginehandle, core::mem::transmute(changehandle)) } #[inline] pub unsafe fn FwpmSystemPortsGet0(enginehandle: Option, sysports: *mut *mut FWPM_SYSTEM_PORTS0) -> u32 { @@ -692,7 +692,7 @@ pub unsafe fn FwpmSystemPortsGet0(enginehandle: Option, reserved: Option<*const core::ffi::c_void>, callback: FWPM_SYSTEM_PORTS_CALLBACK0, context: Option<*const core::ffi::c_void>, sysportshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSystemPortsSubscribe0(enginehandle : super::super::Foundation:: HANDLE, reserved : *const core::ffi::c_void, callback : FWPM_SYSTEM_PORTS_CALLBACK0, context : *const core::ffi::c_void, sysportshandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmSystemPortsSubscribe0(core::mem::transmute(enginehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysportshandle)) + FwpmSystemPortsSubscribe0(core::mem::transmute(enginehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysportshandle)) } #[inline] pub unsafe fn FwpmSystemPortsUnsubscribe0(enginehandle: Option, sysportshandle: super::super::Foundation::HANDLE) -> u32 { @@ -702,324 +702,324 @@ pub unsafe fn FwpmSystemPortsUnsubscribe0(enginehandle: Option u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionAbort0(enginehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmTransactionAbort0(core::mem::transmute(enginehandle)) + FwpmTransactionAbort0(enginehandle) } #[inline] pub unsafe fn FwpmTransactionBegin0(enginehandle: super::super::Foundation::HANDLE, flags: u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionBegin0(enginehandle : super::super::Foundation:: HANDLE, flags : u32) -> u32); - FwpmTransactionBegin0(core::mem::transmute(enginehandle), core::mem::transmute(flags)) + FwpmTransactionBegin0(enginehandle, flags) } #[inline] pub unsafe fn FwpmTransactionCommit0(enginehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionCommit0(enginehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmTransactionCommit0(core::mem::transmute(enginehandle)) + FwpmTransactionCommit0(enginehandle) } #[inline] pub unsafe fn FwpmvSwitchEventSubscribe0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_VSWITCH_EVENT_SUBSCRIPTION0, callback: FWPM_VSWITCH_EVENT_CALLBACK0, context: Option<*const core::ffi::c_void>, subscriptionhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventSubscribe0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const FWPM_VSWITCH_EVENT_SUBSCRIPTION0, callback : FWPM_VSWITCH_EVENT_CALLBACK0, context : *const core::ffi::c_void, subscriptionhandle : *mut super::super::Foundation:: HANDLE) -> u32); - FwpmvSwitchEventSubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(subscriptionhandle)) + FwpmvSwitchEventSubscribe0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(subscriptionhandle)) } #[inline] pub unsafe fn FwpmvSwitchEventUnsubscribe0(enginehandle: super::super::Foundation::HANDLE, subscriptionhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, subscriptionhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmvSwitchEventUnsubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(subscriptionhandle)) + FwpmvSwitchEventUnsubscribe0(enginehandle, core::mem::transmute(subscriptionhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmvSwitchEventsGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + FwpmvSwitchEventsGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - FwpmvSwitchEventsSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + FwpmvSwitchEventsSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IPsecDospGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IPsecDospGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[inline] pub unsafe fn IPsecDospGetStatistics0(enginehandle: super::super::Foundation::HANDLE, idpstatistics: *mut IPSEC_DOSP_STATISTICS0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetStatistics0(enginehandle : super::super::Foundation:: HANDLE, idpstatistics : *mut IPSEC_DOSP_STATISTICS0) -> u32); - IPsecDospGetStatistics0(core::mem::transmute(enginehandle), core::mem::transmute(idpstatistics)) + IPsecDospGetStatistics0(enginehandle, core::mem::transmute(idpstatistics)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - IPsecDospSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IPsecDospSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IPsecDospStateCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const IPSEC_DOSP_STATE_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const IPSEC_DOSP_STATE_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - IPsecDospStateCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IPsecDospStateCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn IPsecDospStateDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IPsecDospStateDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IPsecDospStateDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn IPsecDospStateEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_DOSP_STATE0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IPSEC_DOSP_STATE0, numentries : *mut u32) -> u32); - IPsecDospStateEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentries)) + IPsecDospStateEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn IPsecGetStatistics0(enginehandle: super::super::Foundation::HANDLE, ipsecstatistics: *mut IPSEC_STATISTICS0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics0(enginehandle : super::super::Foundation:: HANDLE, ipsecstatistics : *mut IPSEC_STATISTICS0) -> u32); - IPsecGetStatistics0(core::mem::transmute(enginehandle), core::mem::transmute(ipsecstatistics)) + IPsecGetStatistics0(enginehandle, core::mem::transmute(ipsecstatistics)) } #[inline] pub unsafe fn IPsecGetStatistics1(enginehandle: super::super::Foundation::HANDLE, ipsecstatistics: *mut IPSEC_STATISTICS1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics1(enginehandle : super::super::Foundation:: HANDLE, ipsecstatistics : *mut IPSEC_STATISTICS1) -> u32); - IPsecGetStatistics1(core::mem::transmute(enginehandle), core::mem::transmute(ipsecstatistics)) + IPsecGetStatistics1(enginehandle, core::mem::transmute(ipsecstatistics)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecKeyManagerAddAndRegister0(enginehandle: super::super::Foundation::HANDLE, keymanager: *const IPSEC_KEY_MANAGER0, keymanagercallbacks: *const IPSEC_KEY_MANAGER_CALLBACKS0, keymgmthandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecKeyManagerAddAndRegister0(enginehandle : super::super::Foundation:: HANDLE, keymanager : *const IPSEC_KEY_MANAGER0, keymanagercallbacks : *const IPSEC_KEY_MANAGER_CALLBACKS0, keymgmthandle : *mut super::super::Foundation:: HANDLE) -> u32); - IPsecKeyManagerAddAndRegister0(core::mem::transmute(enginehandle), core::mem::transmute(keymanager), core::mem::transmute(keymanagercallbacks), core::mem::transmute(keymgmthandle)) + IPsecKeyManagerAddAndRegister0(enginehandle, keymanager, keymanagercallbacks, core::mem::transmute(keymgmthandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecKeyManagerGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, reserved: Option<*const core::ffi::c_void>, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecKeyManagerGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, reserved : *const core::ffi::c_void, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IPsecKeyManagerGetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IPsecKeyManagerGetSecurityInfoByKey0(enginehandle, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecKeyManagerSetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, reserved: Option<*const core::ffi::c_void>, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecKeyManagerSetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, reserved : *const core::ffi::c_void, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - IPsecKeyManagerSetSecurityInfoByKey0(core::mem::transmute(enginehandle), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IPsecKeyManagerSetSecurityInfoByKey0(enginehandle, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IPsecKeyManagerUnregisterAndDelete0(enginehandle: super::super::Foundation::HANDLE, keymgmthandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecKeyManagerUnregisterAndDelete0(enginehandle : super::super::Foundation:: HANDLE, keymgmthandle : super::super::Foundation:: HANDLE) -> u32); - IPsecKeyManagerUnregisterAndDelete0(core::mem::transmute(enginehandle), core::mem::transmute(keymgmthandle)) + IPsecKeyManagerUnregisterAndDelete0(enginehandle, keymgmthandle) } #[inline] pub unsafe fn IPsecKeyManagersGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut IPSEC_KEY_MANAGER0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecKeyManagersGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut IPSEC_KEY_MANAGER0, numentries : *mut u32) -> u32); - IPsecKeyManagersGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + IPsecKeyManagersGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn IPsecSaContextAddInbound0(enginehandle: super::super::Foundation::HANDLE, id: u64, inboundbundle: *const IPSEC_SA_BUNDLE0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound0(enginehandle : super::super::Foundation:: HANDLE, id : u64, inboundbundle : *const IPSEC_SA_BUNDLE0) -> u32); - IPsecSaContextAddInbound0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(inboundbundle)) + IPsecSaContextAddInbound0(enginehandle, id, inboundbundle) } #[inline] pub unsafe fn IPsecSaContextAddInbound1(enginehandle: super::super::Foundation::HANDLE, id: u64, inboundbundle: *const IPSEC_SA_BUNDLE1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound1(enginehandle : super::super::Foundation:: HANDLE, id : u64, inboundbundle : *const IPSEC_SA_BUNDLE1) -> u32); - IPsecSaContextAddInbound1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(inboundbundle)) + IPsecSaContextAddInbound1(enginehandle, id, inboundbundle) } #[inline] pub unsafe fn IPsecSaContextAddOutbound0(enginehandle: super::super::Foundation::HANDLE, id: u64, outboundbundle: *const IPSEC_SA_BUNDLE0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound0(enginehandle : super::super::Foundation:: HANDLE, id : u64, outboundbundle : *const IPSEC_SA_BUNDLE0) -> u32); - IPsecSaContextAddOutbound0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(outboundbundle)) + IPsecSaContextAddOutbound0(enginehandle, id, outboundbundle) } #[inline] pub unsafe fn IPsecSaContextAddOutbound1(enginehandle: super::super::Foundation::HANDLE, id: u64, outboundbundle: *const IPSEC_SA_BUNDLE1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound1(enginehandle : super::super::Foundation:: HANDLE, id : u64, outboundbundle : *const IPSEC_SA_BUNDLE1) -> u32); - IPsecSaContextAddOutbound1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(outboundbundle)) + IPsecSaContextAddOutbound1(enginehandle, id, outboundbundle) } #[inline] pub unsafe fn IPsecSaContextCreate0(enginehandle: super::super::Foundation::HANDLE, outboundtraffic: *const IPSEC_TRAFFIC0, inboundfilterid: Option<*mut u64>, id: *mut u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreate0(enginehandle : super::super::Foundation:: HANDLE, outboundtraffic : *const IPSEC_TRAFFIC0, inboundfilterid : *mut u64, id : *mut u64) -> u32); - IPsecSaContextCreate0(core::mem::transmute(enginehandle), core::mem::transmute(outboundtraffic), core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) + IPsecSaContextCreate0(enginehandle, outboundtraffic, core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) } #[inline] pub unsafe fn IPsecSaContextCreate1(enginehandle: super::super::Foundation::HANDLE, outboundtraffic: *const IPSEC_TRAFFIC1, virtualiftunnelinfo: Option<*const IPSEC_VIRTUAL_IF_TUNNEL_INFO0>, inboundfilterid: Option<*mut u64>, id: *mut u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreate1(enginehandle : super::super::Foundation:: HANDLE, outboundtraffic : *const IPSEC_TRAFFIC1, virtualiftunnelinfo : *const IPSEC_VIRTUAL_IF_TUNNEL_INFO0, inboundfilterid : *mut u64, id : *mut u64) -> u32); - IPsecSaContextCreate1(core::mem::transmute(enginehandle), core::mem::transmute(outboundtraffic), core::mem::transmute(virtualiftunnelinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) + IPsecSaContextCreate1(enginehandle, outboundtraffic, core::mem::transmute(virtualiftunnelinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(inboundfilterid.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const IPSEC_SA_CONTEXT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const IPSEC_SA_CONTEXT_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - IPsecSaContextCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IPsecSaContextCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn IPsecSaContextDeleteById0(enginehandle: super::super::Foundation::HANDLE, id: u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - IPsecSaContextDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + IPsecSaContextDeleteById0(enginehandle, id) } #[inline] pub unsafe fn IPsecSaContextDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IPsecSaContextDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IPsecSaContextDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_CONTEXT0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IPSEC_SA_CONTEXT0, numentriesreturned : *mut u32) -> u32); - IPsecSaContextEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaContextEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextEnum1(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_CONTEXT1, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextEnum1(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IPSEC_SA_CONTEXT1, numentriesreturned : *mut u32) -> u32); - IPsecSaContextEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaContextEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn IPsecSaContextExpire0(enginehandle: super::super::Foundation::HANDLE, id: u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextExpire0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - IPsecSaContextExpire0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + IPsecSaContextExpire0(enginehandle, id) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextGetById0(enginehandle: super::super::Foundation::HANDLE, id: u64, sacontext: *mut *mut IPSEC_SA_CONTEXT0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, sacontext : *mut *mut IPSEC_SA_CONTEXT0) -> u32); - IPsecSaContextGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(sacontext)) + IPsecSaContextGetById0(enginehandle, id, core::mem::transmute(sacontext)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextGetById1(enginehandle: super::super::Foundation::HANDLE, id: u64, sacontext: *mut *mut IPSEC_SA_CONTEXT1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById1(enginehandle : super::super::Foundation:: HANDLE, id : u64, sacontext : *mut *mut IPSEC_SA_CONTEXT1) -> u32); - IPsecSaContextGetById1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(sacontext)) + IPsecSaContextGetById1(enginehandle, id, core::mem::transmute(sacontext)) } #[inline] pub unsafe fn IPsecSaContextGetSpi0(enginehandle: super::super::Foundation::HANDLE, id: u64, getspi: *const IPSEC_GETSPI0, inboundspi: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi0(enginehandle : super::super::Foundation:: HANDLE, id : u64, getspi : *const IPSEC_GETSPI0, inboundspi : *mut u32) -> u32); - IPsecSaContextGetSpi0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(getspi), core::mem::transmute(inboundspi)) + IPsecSaContextGetSpi0(enginehandle, id, getspi, core::mem::transmute(inboundspi)) } #[inline] pub unsafe fn IPsecSaContextGetSpi1(enginehandle: super::super::Foundation::HANDLE, id: u64, getspi: *const IPSEC_GETSPI1, inboundspi: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi1(enginehandle : super::super::Foundation:: HANDLE, id : u64, getspi : *const IPSEC_GETSPI1, inboundspi : *mut u32) -> u32); - IPsecSaContextGetSpi1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(getspi), core::mem::transmute(inboundspi)) + IPsecSaContextGetSpi1(enginehandle, id, getspi, core::mem::transmute(inboundspi)) } #[inline] pub unsafe fn IPsecSaContextSetSpi0(enginehandle: super::super::Foundation::HANDLE, id: u64, getspi: *const IPSEC_GETSPI1, inboundspi: u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextSetSpi0(enginehandle : super::super::Foundation:: HANDLE, id : u64, getspi : *const IPSEC_GETSPI1, inboundspi : u32) -> u32); - IPsecSaContextSetSpi0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(getspi), core::mem::transmute(inboundspi)) + IPsecSaContextSetSpi0(enginehandle, id, getspi, inboundspi) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextSubscribe0(enginehandle: super::super::Foundation::HANDLE, subscription: *const IPSEC_SA_CONTEXT_SUBSCRIPTION0, callback: IPSEC_SA_CONTEXT_CALLBACK0, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextSubscribe0(enginehandle : super::super::Foundation:: HANDLE, subscription : *const IPSEC_SA_CONTEXT_SUBSCRIPTION0, callback : IPSEC_SA_CONTEXT_CALLBACK0, context : *const core::ffi::c_void, eventshandle : *mut super::super::Foundation:: HANDLE) -> u32); - IPsecSaContextSubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) + IPsecSaContextSubscribe0(enginehandle, subscription, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextSubscriptionsGet0(enginehandle: super::super::Foundation::HANDLE, entries: *mut *mut *mut IPSEC_SA_CONTEXT_SUBSCRIPTION0, numentries: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextSubscriptionsGet0(enginehandle : super::super::Foundation:: HANDLE, entries : *mut *mut *mut IPSEC_SA_CONTEXT_SUBSCRIPTION0, numentries : *mut u32) -> u32); - IPsecSaContextSubscriptionsGet0(core::mem::transmute(enginehandle), core::mem::transmute(entries), core::mem::transmute(numentries)) + IPsecSaContextSubscriptionsGet0(enginehandle, core::mem::transmute(entries), core::mem::transmute(numentries)) } #[inline] pub unsafe fn IPsecSaContextUnsubscribe0(enginehandle: super::super::Foundation::HANDLE, eventshandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, eventshandle : super::super::Foundation:: HANDLE) -> u32); - IPsecSaContextUnsubscribe0(core::mem::transmute(enginehandle), core::mem::transmute(eventshandle)) + IPsecSaContextUnsubscribe0(enginehandle, core::mem::transmute(eventshandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextUpdate0(enginehandle: super::super::Foundation::HANDLE, flags: u64, newvalues: *const IPSEC_SA_CONTEXT1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextUpdate0(enginehandle : super::super::Foundation:: HANDLE, flags : u64, newvalues : *const IPSEC_SA_CONTEXT1) -> u32); - IPsecSaContextUpdate0(core::mem::transmute(enginehandle), core::mem::transmute(flags), core::mem::transmute(newvalues)) + IPsecSaContextUpdate0(enginehandle, flags, newvalues) } #[inline] pub unsafe fn IPsecSaCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const IPSEC_SA_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const IPSEC_SA_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - IPsecSaCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IPsecSaCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDbGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IPsecSaDbGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IPsecSaDbGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDbSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - IPsecSaDbSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IPsecSaDbSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IPsecSaDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IPsecSaDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IPsecSaDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_DETAILS0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IPSEC_SA_DETAILS0, numentriesreturned : *mut u32) -> u32); - IPsecSaEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaEnum1(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_DETAILS1, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaEnum1(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IPSEC_SA_DETAILS1, numentriesreturned : *mut u32) -> u32); - IPsecSaEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IPsecSaEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn IkeextGetStatistics0(enginehandle: super::super::Foundation::HANDLE, ikeextstatistics: *mut IKEEXT_STATISTICS0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics0(enginehandle : super::super::Foundation:: HANDLE, ikeextstatistics : *mut IKEEXT_STATISTICS0) -> u32); - IkeextGetStatistics0(core::mem::transmute(enginehandle), core::mem::transmute(ikeextstatistics)) + IkeextGetStatistics0(enginehandle, core::mem::transmute(ikeextstatistics)) } #[inline] pub unsafe fn IkeextGetStatistics1(enginehandle: super::super::Foundation::HANDLE, ikeextstatistics: *mut IKEEXT_STATISTICS1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics1(enginehandle : super::super::Foundation:: HANDLE, ikeextstatistics : *mut IKEEXT_STATISTICS1) -> u32); - IkeextGetStatistics1(core::mem::transmute(enginehandle), core::mem::transmute(ikeextstatistics)) + IkeextGetStatistics1(enginehandle, core::mem::transmute(ikeextstatistics)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: Option<*const IKEEXT_SA_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaCreateEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumtemplate : *const IKEEXT_SA_ENUM_TEMPLATE0, enumhandle : *mut super::super::Foundation:: HANDLE) -> u32); - IkeextSaCreateEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) + IkeextSaCreateEnumHandle0(enginehandle, core::mem::transmute(enumtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumhandle)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbGetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: *mut super::super::Security::PSID, sidgroup: *mut super::super::Security::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDbGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Security:: PSID, sidgroup : *mut super::super::Security:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IkeextSaDbGetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) + IkeextSaDbGetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner), core::mem::transmute(sidgroup), core::mem::transmute(dacl), core::mem::transmute(sacl), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbSetSecurityInfo0(enginehandle: super::super::Foundation::HANDLE, securityinfo: u32, sidowner: Option<*const super::super::Security::SID>, sidgroup: Option<*const super::super::Security::SID>, dacl: Option<*const super::super::Security::ACL>, sacl: Option<*const super::super::Security::ACL>) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDbSetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::Security:: SID, sidgroup : *const super::super::Security:: SID, dacl : *const super::super::Security:: ACL, sacl : *const super::super::Security:: ACL) -> u32); - IkeextSaDbSetSecurityInfo0(core::mem::transmute(enginehandle), core::mem::transmute(securityinfo), core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) + IkeextSaDbSetSecurityInfo0(enginehandle, securityinfo, core::mem::transmute(sidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(sacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IkeextSaDeleteById0(enginehandle: super::super::Foundation::HANDLE, id: u64) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - IkeextSaDeleteById0(core::mem::transmute(enginehandle), core::mem::transmute(id)) + IkeextSaDeleteById0(enginehandle, id) } #[inline] pub unsafe fn IkeextSaDestroyEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IkeextSaDestroyEnumHandle0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle)) + IkeextSaDestroyEnumHandle0(enginehandle, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn IkeextSaEnum0(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IKEEXT_SA_DETAILS0, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaEnum0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IKEEXT_SA_DETAILS0, numentriesreturned : *mut u32) -> u32); - IkeextSaEnum0(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IkeextSaEnum0(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn IkeextSaEnum1(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IKEEXT_SA_DETAILS1, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaEnum1(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IKEEXT_SA_DETAILS1, numentriesreturned : *mut u32) -> u32); - IkeextSaEnum1(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IkeextSaEnum1(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn IkeextSaEnum2(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut IKEEXT_SA_DETAILS2, numentriesreturned: *mut u32) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaEnum2(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut IKEEXT_SA_DETAILS2, numentriesreturned : *mut u32) -> u32); - IkeextSaEnum2(core::mem::transmute(enginehandle), core::mem::transmute(enumhandle), core::mem::transmute(numentriesrequested), core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) + IkeextSaEnum2(enginehandle, enumhandle, numentriesrequested, core::mem::transmute(entries), core::mem::transmute(numentriesreturned)) } #[inline] pub unsafe fn IkeextSaGetById0(enginehandle: super::super::Foundation::HANDLE, id: u64, sa: *mut *mut IKEEXT_SA_DETAILS0) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, sa : *mut *mut IKEEXT_SA_DETAILS0) -> u32); - IkeextSaGetById0(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(sa)) + IkeextSaGetById0(enginehandle, id, core::mem::transmute(sa)) } #[inline] pub unsafe fn IkeextSaGetById1(enginehandle: super::super::Foundation::HANDLE, id: u64, salookupcontext: Option<*const windows_core::GUID>, sa: *mut *mut IKEEXT_SA_DETAILS1) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById1(enginehandle : super::super::Foundation:: HANDLE, id : u64, salookupcontext : *const windows_core::GUID, sa : *mut *mut IKEEXT_SA_DETAILS1) -> u32); - IkeextSaGetById1(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) + IkeextSaGetById1(enginehandle, id, core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) } #[inline] pub unsafe fn IkeextSaGetById2(enginehandle: super::super::Foundation::HANDLE, id: u64, salookupcontext: Option<*const windows_core::GUID>, sa: *mut *mut IKEEXT_SA_DETAILS2) -> u32 { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById2(enginehandle : super::super::Foundation:: HANDLE, id : u64, salookupcontext : *const windows_core::GUID, sa : *mut *mut IKEEXT_SA_DETAILS2) -> u32); - IkeextSaGetById2(core::mem::transmute(enginehandle), core::mem::transmute(id), core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) + IkeextSaGetById2(enginehandle, id, core::mem::transmute(salookupcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(sa)) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs index 02740d84ce..ec3eecaaf1 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -23,7 +23,7 @@ where #[inline] pub unsafe fn NetworkIsolationEnumAppContainers(flags: u32, pdwnumpublicappcs: *mut u32, pppublicappcs: *mut *mut INET_FIREWALL_APP_CONTAINER) -> u32 { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationEnumAppContainers(flags : u32, pdwnumpublicappcs : *mut u32, pppublicappcs : *mut *mut INET_FIREWALL_APP_CONTAINER) -> u32); - NetworkIsolationEnumAppContainers(core::mem::transmute(flags), core::mem::transmute(pdwnumpublicappcs), core::mem::transmute(pppublicappcs)) + NetworkIsolationEnumAppContainers(flags, core::mem::transmute(pdwnumpublicappcs), core::mem::transmute(pppublicappcs)) } #[cfg(feature = "Win32_System_Ole")] #[inline] @@ -36,7 +36,7 @@ pub unsafe fn NetworkIsolationEnumerateAppContainerRules() -> windows_core::Resu #[inline] pub unsafe fn NetworkIsolationFreeAppContainers(ppublicappcs: *const INET_FIREWALL_APP_CONTAINER) -> u32 { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationFreeAppContainers(ppublicappcs : *const INET_FIREWALL_APP_CONTAINER) -> u32); - NetworkIsolationFreeAppContainers(core::mem::transmute(ppublicappcs)) + NetworkIsolationFreeAppContainers(ppublicappcs) } #[cfg(feature = "Win32_Security")] #[inline] @@ -50,18 +50,18 @@ where P0: windows_core::Param, { windows_targets::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdAsync(wszservername : windows_core::PCWSTR, dwflags : u32, context : *const core::ffi::c_void, callback : PNETISO_EDP_ID_CALLBACK_FN, hoperation : *mut super::super::Foundation:: HANDLE) -> u32); - NetworkIsolationGetEnterpriseIdAsync(wszservername.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(hoperation)) + NetworkIsolationGetEnterpriseIdAsync(wszservername.param().abi(), dwflags, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), callback, core::mem::transmute(hoperation)) } #[inline] pub unsafe fn NetworkIsolationGetEnterpriseIdClose(hoperation: super::super::Foundation::HANDLE, bwaitforoperation: bool) -> u32 { windows_targets::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdClose(hoperation : super::super::Foundation:: HANDLE, bwaitforoperation : super::super::Foundation:: BOOL) -> u32); - NetworkIsolationGetEnterpriseIdClose(core::mem::transmute(hoperation), bwaitforoperation.into()) + NetworkIsolationGetEnterpriseIdClose(hoperation, bwaitforoperation.into()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetworkIsolationRegisterForAppContainerChanges(flags: u32, callback: PAC_CHANGES_CALLBACK_FN, context: Option<*const core::ffi::c_void>, registrationobject: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationRegisterForAppContainerChanges(flags : u32, callback : PAC_CHANGES_CALLBACK_FN, context : *const core::ffi::c_void, registrationobject : *mut super::super::Foundation:: HANDLE) -> u32); - NetworkIsolationRegisterForAppContainerChanges(core::mem::transmute(flags), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registrationobject)) + NetworkIsolationRegisterForAppContainerChanges(flags, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registrationobject)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -78,12 +78,12 @@ where P3: windows_core::Param, { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid : super::super::Security:: PSID, packagefullname : windows_core::PCWSTR, packagefolder : windows_core::PCWSTR, displayname : windows_core::PCWSTR, bbinariesfullycomputed : super::super::Foundation:: BOOL, binaries : *const windows_core::PCWSTR, binariescount : u32) -> windows_core::HRESULT); - NetworkIsolationSetupAppContainerBinaries(core::mem::transmute(applicationcontainersid), packagefullname.param().abi(), packagefolder.param().abi(), displayname.param().abi(), bbinariesfullycomputed.into(), core::mem::transmute(binaries.as_ptr()), binaries.len().try_into().unwrap()).ok() + NetworkIsolationSetupAppContainerBinaries(applicationcontainersid, packagefullname.param().abi(), packagefolder.param().abi(), displayname.param().abi(), bbinariesfullycomputed.into(), core::mem::transmute(binaries.as_ptr()), binaries.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject : super::super::Foundation:: HANDLE) -> u32); - NetworkIsolationUnregisterForAppContainerChanges(core::mem::transmute(registrationobject)) + NetworkIsolationUnregisterForAppContainerChanges(registrationobject) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -253,19 +253,19 @@ impl IDynamicPortMapping { } pub unsafe fn RenewLease(&self, lleasedurationdesired: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RenewLease)(windows_core::Interface::as_raw(self), core::mem::transmute(lleasedurationdesired), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RenewLease)(windows_core::Interface::as_raw(self), lleasedurationdesired, &mut result__).map(|| result__) } pub unsafe fn EditInternalClient(&self, bstrinternalclient: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EditInternalClient)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternalclient)).ok() } pub unsafe fn Enable(&self, vb: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), core::mem::transmute(vb)).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), vb).ok() } pub unsafe fn EditDescription(&self, bstrdescription: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EditDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn EditInternalPort(&self, linternalport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EditInternalPort)(windows_core::Interface::as_raw(self), core::mem::transmute(linternalport)).ok() + (windows_core::Interface::vtable(self).EditInternalPort)(windows_core::Interface::as_raw(self), linternalport).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -466,18 +466,18 @@ impl IDynamicPortMappingCollection { } pub unsafe fn get_Item(&self, bstrremotehost: &windows_core::BSTR, lexternalport: i32, bstrprotocol: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremotehost), core::mem::transmute(lexternalport), core::mem::transmute_copy(bstrprotocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremotehost), lexternalport, core::mem::transmute_copy(bstrprotocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Remove(&self, bstrremotehost: &windows_core::BSTR, lexternalport: i32, bstrprotocol: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremotehost), core::mem::transmute(lexternalport), core::mem::transmute_copy(bstrprotocol)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremotehost), lexternalport, core::mem::transmute_copy(bstrprotocol)).ok() } pub unsafe fn Add(&self, bstrremotehost: &windows_core::BSTR, lexternalport: i32, bstrprotocol: &windows_core::BSTR, linternalport: i32, bstrinternalclient: &windows_core::BSTR, benabled: super::super::Foundation::VARIANT_BOOL, bstrdescription: &windows_core::BSTR, lleaseduration: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremotehost), core::mem::transmute(lexternalport), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(linternalport), core::mem::transmute_copy(bstrinternalclient), core::mem::transmute(benabled), core::mem::transmute_copy(bstrdescription), core::mem::transmute(lleaseduration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremotehost), lexternalport, core::mem::transmute_copy(bstrprotocol), linternalport, core::mem::transmute_copy(bstrinternalclient), benabled, core::mem::transmute_copy(bstrdescription), lleaseduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -567,7 +567,7 @@ impl IEnumNetConnection { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -636,7 +636,7 @@ impl IEnumNetSharingEveryConnection { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgvar.len().try_into().unwrap(), core::mem::transmute(rgvar.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -711,7 +711,7 @@ impl IEnumNetSharingPortMapping { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgvar.len().try_into().unwrap(), core::mem::transmute(rgvar.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -786,7 +786,7 @@ impl IEnumNetSharingPrivateConnection { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgvar.len().try_into().unwrap(), core::mem::transmute(rgvar.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -861,7 +861,7 @@ impl IEnumNetSharingPublicConnection { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgvar.len().try_into().unwrap(), core::mem::transmute(rgvar.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1021,7 +1021,7 @@ windows_core::imp::define_interface!(INATNumberOfEntriesCallback, INATNumberOfEn windows_core::imp::interface_hierarchy!(INATNumberOfEntriesCallback, windows_core::IUnknown); impl INATNumberOfEntriesCallback { pub unsafe fn NewNumberOfEntries(&self, lnewnumberofentries: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NewNumberOfEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(lnewnumberofentries)).ok() + (windows_core::Interface::vtable(self).NewNumberOfEntries)(windows_core::Interface::as_raw(self), lnewnumberofentries).ok() } } #[repr(C)] @@ -1261,10 +1261,10 @@ impl INetConnectionConnectUi { (windows_core::Interface::vtable(self).SetConnection)(windows_core::Interface::as_raw(self), pcon.param().abi()).ok() } pub unsafe fn Connect(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), hwndparent, dwflags).ok() } pub unsafe fn Disconnect(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), hwndparent, dwflags).ok() } } #[repr(C)] @@ -1310,7 +1310,7 @@ windows_core::imp::interface_hierarchy!(INetConnectionManager, windows_core::IUn impl INetConnectionManager { pub unsafe fn EnumConnections(&self, flags: NETCONMGR_ENUM_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumConnections)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumConnections)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1509,14 +1509,14 @@ impl INetFwAuthorizedApplication { (windows_core::Interface::vtable(self).IpVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(ipversion)).ok() + (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), ipversion).ok() } pub unsafe fn Scope(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Scope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(scope)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), scope).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1530,7 +1530,7 @@ impl INetFwAuthorizedApplication { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1801,70 +1801,70 @@ impl INetFwIcmpSettings { (windows_core::Interface::vtable(self).AllowOutboundDestinationUnreachable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowOutboundDestinationUnreachable(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowOutboundDestinationUnreachable)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundDestinationUnreachable)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowRedirect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowRedirect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowRedirect(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowRedirect)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowRedirect)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowInboundEchoRequest(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInboundEchoRequest)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowInboundEchoRequest(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowInboundEchoRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowInboundEchoRequest)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowOutboundTimeExceeded(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowOutboundTimeExceeded)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowOutboundTimeExceeded(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowOutboundTimeExceeded)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundTimeExceeded)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowOutboundParameterProblem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowOutboundParameterProblem)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowOutboundParameterProblem(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowOutboundParameterProblem)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundParameterProblem)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowOutboundSourceQuench(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowOutboundSourceQuench)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowOutboundSourceQuench(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowOutboundSourceQuench)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundSourceQuench)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowInboundRouterRequest(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInboundRouterRequest)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowInboundRouterRequest(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowInboundRouterRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowInboundRouterRequest)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowInboundTimestampRequest(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInboundTimestampRequest)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowInboundTimestampRequest(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowInboundTimestampRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowInboundTimestampRequest)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowInboundMaskRequest(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInboundMaskRequest)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowInboundMaskRequest(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowInboundMaskRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowInboundMaskRequest)(windows_core::Interface::as_raw(self), allow).ok() } pub unsafe fn AllowOutboundPacketTooBig(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowOutboundPacketTooBig)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowOutboundPacketTooBig(&self, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowOutboundPacketTooBig)(windows_core::Interface::as_raw(self), core::mem::transmute(allow)).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundPacketTooBig)(windows_core::Interface::as_raw(self), allow).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2114,11 +2114,11 @@ impl INetFwMgr { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn IsPortAllowed(&self, imagefilename: &windows_core::BSTR, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: &windows_core::BSTR, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Variant::VARIANT, restricted: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsPortAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(imagefilename), core::mem::transmute(ipversion), core::mem::transmute(portnumber), core::mem::transmute_copy(localaddress), core::mem::transmute(ipprotocol), core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() + (windows_core::Interface::vtable(self).IsPortAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(imagefilename), ipversion, portnumber, core::mem::transmute_copy(localaddress), ipprotocol, core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn IsIcmpTypeAllowed(&self, ipversion: NET_FW_IP_VERSION, localaddress: &windows_core::BSTR, r#type: u8, allowed: *mut super::super::System::Variant::VARIANT, restricted: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsIcmpTypeAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(ipversion), core::mem::transmute_copy(localaddress), core::mem::transmute(r#type), core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() + (windows_core::Interface::vtable(self).IsIcmpTypeAllowed)(windows_core::Interface::as_raw(self), ipversion, core::mem::transmute_copy(localaddress), r#type, core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2220,28 +2220,28 @@ impl INetFwOpenPort { (windows_core::Interface::vtable(self).IpVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(ipversion)).ok() + (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), ipversion).ok() } pub unsafe fn Protocol(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Protocol)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProtocol(&self, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtocol)(windows_core::Interface::as_raw(self), core::mem::transmute(ipprotocol)).ok() + (windows_core::Interface::vtable(self).SetProtocol)(windows_core::Interface::as_raw(self), ipprotocol).ok() } pub unsafe fn Port(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Port)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPort(&self, portnumber: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), core::mem::transmute(portnumber)).ok() + (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), portnumber).ok() } pub unsafe fn Scope(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Scope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(scope)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), scope).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2255,7 +2255,7 @@ impl INetFwOpenPort { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn BuiltIn(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2460,11 +2460,11 @@ impl INetFwOpenPorts { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), port.param().abi()).ok() } pub unsafe fn Remove(&self, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(portnumber), core::mem::transmute(ipprotocol)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), portnumber, ipprotocol).ok() } pub unsafe fn Item(&self, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(portnumber), core::mem::transmute(ipprotocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), portnumber, ipprotocol, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2564,7 +2564,7 @@ impl INetFwPolicy { } pub unsafe fn GetProfileByType(&self, profiletype: NET_FW_PROFILE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProfileByType)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProfileByType)(windows_core::Interface::as_raw(self), profiletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2633,40 +2633,40 @@ impl INetFwPolicy2 { } pub unsafe fn get_FirewallEnabled(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_FirewallEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_FirewallEnabled)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| result__) } pub unsafe fn put_FirewallEnabled(&self, profiletype: NET_FW_PROFILE_TYPE2, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_FirewallEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).put_FirewallEnabled)(windows_core::Interface::as_raw(self), profiletype, enabled).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_ExcludedInterfaces(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ExcludedInterfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_ExcludedInterfaces)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn put_ExcludedInterfaces(&self, profiletype: NET_FW_PROFILE_TYPE2, interfaces: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_ExcludedInterfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute_copy(interfaces)).ok() + (windows_core::Interface::vtable(self).put_ExcludedInterfaces)(windows_core::Interface::as_raw(self), profiletype, core::mem::transmute_copy(interfaces)).ok() } pub unsafe fn get_BlockAllInboundTraffic(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_BlockAllInboundTraffic)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_BlockAllInboundTraffic)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| result__) } pub unsafe fn put_BlockAllInboundTraffic(&self, profiletype: NET_FW_PROFILE_TYPE2, block: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_BlockAllInboundTraffic)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute(block)).ok() + (windows_core::Interface::vtable(self).put_BlockAllInboundTraffic)(windows_core::Interface::as_raw(self), profiletype, block).ok() } pub unsafe fn get_NotificationsDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_NotificationsDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_NotificationsDisabled)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| result__) } pub unsafe fn put_NotificationsDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_NotificationsDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute(disabled)).ok() + (windows_core::Interface::vtable(self).put_NotificationsDisabled)(windows_core::Interface::as_raw(self), profiletype, disabled).ok() } pub unsafe fn get_UnicastResponsesToMulticastBroadcastDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| result__) } pub unsafe fn put_UnicastResponsesToMulticastBroadcastDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute(disabled)).ok() + (windows_core::Interface::vtable(self).put_UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), profiletype, disabled).ok() } pub unsafe fn Rules(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2677,28 +2677,28 @@ impl INetFwPolicy2 { (windows_core::Interface::vtable(self).ServiceRestriction)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableRuleGroup(&self, profiletypesbitmask: i32, group: &windows_core::BSTR, enable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableRuleGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletypesbitmask), core::mem::transmute_copy(group), core::mem::transmute(enable)).ok() + (windows_core::Interface::vtable(self).EnableRuleGroup)(windows_core::Interface::as_raw(self), profiletypesbitmask, core::mem::transmute_copy(group), enable).ok() } pub unsafe fn IsRuleGroupEnabled(&self, profiletypesbitmask: i32, group: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsRuleGroupEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletypesbitmask), core::mem::transmute_copy(group), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsRuleGroupEnabled)(windows_core::Interface::as_raw(self), profiletypesbitmask, core::mem::transmute_copy(group), &mut result__).map(|| result__) } pub unsafe fn RestoreLocalFirewallDefaults(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestoreLocalFirewallDefaults)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn get_DefaultInboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DefaultInboundAction)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_DefaultInboundAction)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| result__) } pub unsafe fn put_DefaultInboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_DefaultInboundAction)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).put_DefaultInboundAction)(windows_core::Interface::as_raw(self), profiletype, action).ok() } pub unsafe fn get_DefaultOutboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DefaultOutboundAction)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_DefaultOutboundAction)(windows_core::Interface::as_raw(self), profiletype, &mut result__).map(|| result__) } pub unsafe fn put_DefaultOutboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_DefaultOutboundAction)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).put_DefaultOutboundAction)(windows_core::Interface::as_raw(self), profiletype, action).ok() } pub unsafe fn get_IsRuleGroupCurrentlyEnabled(&self, group: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3108,7 +3108,7 @@ impl INetFwProducts { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3210,28 +3210,28 @@ impl INetFwProfile { (windows_core::Interface::vtable(self).FirewallEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFirewallEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFirewallEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetFirewallEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn ExceptionsNotAllowed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ExceptionsNotAllowed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExceptionsNotAllowed(&self, notallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExceptionsNotAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(notallowed)).ok() + (windows_core::Interface::vtable(self).SetExceptionsNotAllowed)(windows_core::Interface::as_raw(self), notallowed).ok() } pub unsafe fn NotificationsDisabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NotificationsDisabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotificationsDisabled(&self, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotificationsDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(disabled)).ok() + (windows_core::Interface::vtable(self).SetNotificationsDisabled)(windows_core::Interface::as_raw(self), disabled).ok() } pub unsafe fn UnicastResponsesToMulticastBroadcastDisabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUnicastResponsesToMulticastBroadcastDisabled(&self, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(disabled)).ok() + (windows_core::Interface::vtable(self).SetUnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), disabled).ok() } pub unsafe fn RemoteAdminSettings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3451,14 +3451,14 @@ impl INetFwRemoteAdminSettings { (windows_core::Interface::vtable(self).IpVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(ipversion)).ok() + (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), ipversion).ok() } pub unsafe fn Scope(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Scope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(scope)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), scope).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3472,7 +3472,7 @@ impl INetFwRemoteAdminSettings { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3622,7 +3622,7 @@ impl INetFwRule { (windows_core::Interface::vtable(self).Protocol)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProtocol(&self, protocol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtocol)(windows_core::Interface::as_raw(self), core::mem::transmute(protocol)).ok() + (windows_core::Interface::vtable(self).SetProtocol)(windows_core::Interface::as_raw(self), protocol).ok() } pub unsafe fn LocalPorts(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3664,7 +3664,7 @@ impl INetFwRule { (windows_core::Interface::vtable(self).Direction)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDirection(&self, dir: NET_FW_RULE_DIRECTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDirection)(windows_core::Interface::as_raw(self), core::mem::transmute(dir)).ok() + (windows_core::Interface::vtable(self).SetDirection)(windows_core::Interface::as_raw(self), dir).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Interfaces(&self) -> windows_core::Result { @@ -3687,7 +3687,7 @@ impl INetFwRule { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn Grouping(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3701,21 +3701,21 @@ impl INetFwRule { (windows_core::Interface::vtable(self).Profiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProfiles(&self, profiletypesbitmask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletypesbitmask)).ok() + (windows_core::Interface::vtable(self).SetProfiles)(windows_core::Interface::as_raw(self), profiletypesbitmask).ok() } pub unsafe fn EdgeTraversal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EdgeTraversal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEdgeTraversal(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEdgeTraversal)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn Action(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Action)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAction(&self, action: NET_FW_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAction)(windows_core::Interface::as_raw(self), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).SetAction)(windows_core::Interface::as_raw(self), action).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4123,7 +4123,7 @@ impl INetFwRule2 { (windows_core::Interface::vtable(self).EdgeTraversalOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEdgeTraversalOptions(&self, loptions: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEdgeTraversalOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).SetEdgeTraversalOptions)(windows_core::Interface::as_raw(self), loptions).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4220,7 +4220,7 @@ impl INetFwRule3 { (windows_core::Interface::vtable(self).SecureFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSecureFlags(&self, loptions: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecureFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).SetSecureFlags)(windows_core::Interface::as_raw(self), loptions).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4503,14 +4503,14 @@ impl INetFwService { (windows_core::Interface::vtable(self).IpVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(ipversion)).ok() + (windows_core::Interface::vtable(self).SetIpVersion)(windows_core::Interface::as_raw(self), ipversion).ok() } pub unsafe fn Scope(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Scope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(scope)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), scope).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4524,7 +4524,7 @@ impl INetFwService { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn GloballyOpenPorts(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4698,7 +4698,7 @@ windows_core::imp::interface_hierarchy!(INetFwServiceRestriction, windows_core:: #[cfg(feature = "Win32_System_Com")] impl INetFwServiceRestriction { pub unsafe fn RestrictService(&self, servicename: &windows_core::BSTR, appname: &windows_core::BSTR, restrictservice: super::super::Foundation::VARIANT_BOOL, servicesidrestricted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RestrictService)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(servicename), core::mem::transmute_copy(appname), core::mem::transmute(restrictservice), core::mem::transmute(servicesidrestricted)).ok() + (windows_core::Interface::vtable(self).RestrictService)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(servicename), core::mem::transmute_copy(appname), restrictservice, servicesidrestricted).ok() } pub unsafe fn ServiceRestricted(&self, servicename: &windows_core::BSTR, appname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4782,7 +4782,7 @@ impl INetFwServices { } pub unsafe fn Item(&self, svctype: NET_FW_SERVICE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(svctype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), svctype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4874,7 +4874,7 @@ impl INetSharingConfiguration { (windows_core::Interface::vtable(self).DisableSharing)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnableSharing(&self, r#type: SHARINGCONNECTIONTYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableSharing)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).EnableSharing)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn InternetFirewallEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4888,11 +4888,11 @@ impl INetSharingConfiguration { } pub unsafe fn get_EnumPortMappings(&self, flags: SHARINGCONNECTION_ENUM_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EnumPortMappings)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_EnumPortMappings)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddPortMapping(&self, bstrname: &windows_core::BSTR, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: &windows_core::BSTR, etargettype: ICS_TARGETTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddPortMapping)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(ucipprotocol), core::mem::transmute(usexternalport), core::mem::transmute(usinternalport), core::mem::transmute(dwoptions), core::mem::transmute_copy(bstrtargetnameoripaddress), core::mem::transmute(etargettype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddPortMapping)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), ucipprotocol, usexternalport, usinternalport, dwoptions, core::mem::transmute_copy(bstrtargetnameoripaddress), etargettype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemovePortMapping(&self, pmapping: P0) -> windows_core::Result<()> where @@ -5110,11 +5110,11 @@ impl INetSharingManager { } pub unsafe fn get_EnumPublicConnections(&self, flags: SHARINGCONNECTION_ENUM_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EnumPublicConnections)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_EnumPublicConnections)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_EnumPrivateConnections(&self, flags: SHARINGCONNECTION_ENUM_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EnumPrivateConnections)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_EnumPrivateConnections)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_INetSharingConfigurationForINetConnection(&self, pnetconnection: P0) -> windows_core::Result where @@ -5739,13 +5739,13 @@ impl IStaticPortMapping { (windows_core::Interface::vtable(self).EditInternalClient)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternalclient)).ok() } pub unsafe fn Enable(&self, vb: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), core::mem::transmute(vb)).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), vb).ok() } pub unsafe fn EditDescription(&self, bstrdescription: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EditDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn EditInternalPort(&self, linternalport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EditInternalPort)(windows_core::Interface::as_raw(self), core::mem::transmute(linternalport)).ok() + (windows_core::Interface::vtable(self).EditInternalPort)(windows_core::Interface::as_raw(self), linternalport).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5907,18 +5907,18 @@ impl IStaticPortMappingCollection { } pub unsafe fn get_Item(&self, lexternalport: i32, bstrprotocol: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lexternalport), core::mem::transmute_copy(bstrprotocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lexternalport, core::mem::transmute_copy(bstrprotocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Remove(&self, lexternalport: i32, bstrprotocol: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lexternalport), core::mem::transmute_copy(bstrprotocol)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lexternalport, core::mem::transmute_copy(bstrprotocol)).ok() } pub unsafe fn Add(&self, lexternalport: i32, bstrprotocol: &windows_core::BSTR, linternalport: i32, bstrinternalclient: &windows_core::BSTR, benabled: super::super::Foundation::VARIANT_BOOL, bstrdescription: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(lexternalport), core::mem::transmute_copy(bstrprotocol), core::mem::transmute(linternalport), core::mem::transmute_copy(bstrinternalclient), core::mem::transmute(benabled), core::mem::transmute_copy(bstrdescription), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lexternalport, core::mem::transmute_copy(bstrprotocol), linternalport, core::mem::transmute_copy(bstrinternalclient), benabled, core::mem::transmute_copy(bstrdescription), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs index a314983897..c2a1805512 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs @@ -7,7 +7,7 @@ pub unsafe fn WnvOpen() -> super::super::Foundation::HANDLE { #[inline] pub unsafe fn WnvRequestNotification(wnvhandle: super::super::Foundation::HANDLE, notificationparam: *mut WNV_NOTIFICATION_PARAM, overlapped: *mut super::super::System::IO::OVERLAPPED, bytestransferred: *mut u32) -> u32 { windows_targets::link!("wnvapi.dll" "system" fn WnvRequestNotification(wnvhandle : super::super::Foundation:: HANDLE, notificationparam : *mut WNV_NOTIFICATION_PARAM, overlapped : *mut super::super::System::IO:: OVERLAPPED, bytestransferred : *mut u32) -> u32); - WnvRequestNotification(core::mem::transmute(wnvhandle), core::mem::transmute(notificationparam), core::mem::transmute(overlapped), core::mem::transmute(bytestransferred)) + WnvRequestNotification(wnvhandle, core::mem::transmute(notificationparam), core::mem::transmute(overlapped), core::mem::transmute(bytestransferred)) } pub const WNV_API_MAJOR_VERSION_1: u32 = 1u32; pub const WNV_API_MINOR_VERSION_0: u32 = 0u32; diff --git a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs index 97111665ce..6ae7b1583d 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -12,7 +12,7 @@ where #[inline] pub unsafe fn ADsBuildVarArrayInt(lpdwobjecttypes: *mut u32, dwobjecttypes: u32, pvar: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { windows_targets::link!("activeds.dll" "system" fn ADsBuildVarArrayInt(lpdwobjecttypes : *mut u32, dwobjecttypes : u32, pvar : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - ADsBuildVarArrayInt(core::mem::transmute(lpdwobjecttypes), core::mem::transmute(dwobjecttypes), core::mem::transmute(pvar)).ok() + ADsBuildVarArrayInt(core::mem::transmute(lpdwobjecttypes), dwobjecttypes, core::mem::transmute(pvar)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -31,7 +31,7 @@ where #[inline] pub unsafe fn ADsEncodeBinaryData(pbsrcdata: *mut u8, dwsrclen: u32, ppszdestdata: *mut windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("activeds.dll" "system" fn ADsEncodeBinaryData(pbsrcdata : *mut u8, dwsrclen : u32, ppszdestdata : *mut windows_core::PWSTR) -> windows_core::HRESULT); - ADsEncodeBinaryData(core::mem::transmute(pbsrcdata), core::mem::transmute(dwsrclen), core::mem::transmute(ppszdestdata)).ok() + ADsEncodeBinaryData(core::mem::transmute(pbsrcdata), dwsrclen, core::mem::transmute(ppszdestdata)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -40,7 +40,7 @@ where P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsEnumerateNext(penumvariant : * mut core::ffi::c_void, celements : u32, pvar : *mut super::super::System::Variant:: VARIANT, pcelementsfetched : *mut u32) -> windows_core::HRESULT); - ADsEnumerateNext(penumvariant.param().abi(), core::mem::transmute(celements), core::mem::transmute(pvar), core::mem::transmute(pcelementsfetched)).ok() + ADsEnumerateNext(penumvariant.param().abi(), celements, core::mem::transmute(pvar), core::mem::transmute(pcelementsfetched)).ok() } #[cfg(feature = "Win32_System_Ole")] #[inline] @@ -62,7 +62,7 @@ where P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsGetObject(lpszpathname : windows_core::PCWSTR, riid : *const windows_core::GUID, ppobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ADsGetObject(lpszpathname.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppobject)).ok() + ADsGetObject(lpszpathname.param().abi(), riid, core::mem::transmute(ppobject)).ok() } #[inline] pub unsafe fn ADsOpenObject(lpszpathname: P0, lpszusername: P1, lpszpassword: P2, dwreserved: ADS_AUTHENTICATION_ENUM, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -72,7 +72,7 @@ where P2: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsOpenObject(lpszpathname : windows_core::PCWSTR, lpszusername : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwreserved : ADS_AUTHENTICATION_ENUM, riid : *const windows_core::GUID, ppobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ADsOpenObject(lpszpathname.param().abi(), lpszusername.param().abi(), lpszpassword.param().abi(), core::mem::transmute(dwreserved), core::mem::transmute(riid), core::mem::transmute(ppobject)).ok() + ADsOpenObject(lpszpathname.param().abi(), lpszusername.param().abi(), lpszpassword.param().abi(), dwreserved, riid, core::mem::transmute(ppobject)).ok() } #[inline] pub unsafe fn ADsPropCheckIfWritable(pwzattr: P0, pwritableattrs: *const ADS_ATTR_INFO) -> super::super::Foundation::BOOL @@ -80,7 +80,7 @@ where P0: windows_core::Param, { windows_targets::link!("dsprop.dll" "system" fn ADsPropCheckIfWritable(pwzattr : windows_core::PCWSTR, pwritableattrs : *const ADS_ATTR_INFO) -> super::super::Foundation:: BOOL); - ADsPropCheckIfWritable(pwzattr.param().abi(), core::mem::transmute(pwritableattrs)) + ADsPropCheckIfWritable(pwzattr.param().abi(), pwritableattrs) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -95,27 +95,27 @@ where #[inline] pub unsafe fn ADsPropGetInitInfo(hnotifyobj: super::super::Foundation::HWND, pinitparams: *mut ADSPROPINITPARAMS) -> super::super::Foundation::BOOL { windows_targets::link!("dsprop.dll" "system" fn ADsPropGetInitInfo(hnotifyobj : super::super::Foundation:: HWND, pinitparams : *mut ADSPROPINITPARAMS) -> super::super::Foundation:: BOOL); - ADsPropGetInitInfo(core::mem::transmute(hnotifyobj), core::mem::transmute(pinitparams)) + ADsPropGetInitInfo(hnotifyobj, core::mem::transmute(pinitparams)) } #[inline] pub unsafe fn ADsPropSendErrorMessage(hnotifyobj: super::super::Foundation::HWND, perror: *mut ADSPROPERROR) -> super::super::Foundation::BOOL { windows_targets::link!("dsprop.dll" "system" fn ADsPropSendErrorMessage(hnotifyobj : super::super::Foundation:: HWND, perror : *mut ADSPROPERROR) -> super::super::Foundation:: BOOL); - ADsPropSendErrorMessage(core::mem::transmute(hnotifyobj), core::mem::transmute(perror)) + ADsPropSendErrorMessage(hnotifyobj, core::mem::transmute(perror)) } #[inline] pub unsafe fn ADsPropSetHwnd(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwnd(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ADsPropSetHwnd(core::mem::transmute(hnotifyobj), core::mem::transmute(hpage)) + ADsPropSetHwnd(hnotifyobj, hpage) } #[inline] pub unsafe fn ADsPropSetHwndWithTitle(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND, ptztitle: *const i8) -> super::super::Foundation::BOOL { windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwndWithTitle(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND, ptztitle : *const i8) -> super::super::Foundation:: BOOL); - ADsPropSetHwndWithTitle(core::mem::transmute(hnotifyobj), core::mem::transmute(hpage), core::mem::transmute(ptztitle)) + ADsPropSetHwndWithTitle(hnotifyobj, hpage, ptztitle) } #[inline] pub unsafe fn ADsPropShowErrorDialog(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("dsprop.dll" "system" fn ADsPropShowErrorDialog(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ADsPropShowErrorDialog(core::mem::transmute(hnotifyobj), core::mem::transmute(hpage)) + ADsPropShowErrorDialog(hnotifyobj, hpage) } #[inline] pub unsafe fn ADsSetLastError(dwerr: u32, pszerror: P1, pszprovider: P2) @@ -124,23 +124,23 @@ where P2: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsSetLastError(dwerr : u32, pszerror : windows_core::PCWSTR, pszprovider : windows_core::PCWSTR)); - ADsSetLastError(core::mem::transmute(dwerr), pszerror.param().abi(), pszprovider.param().abi()) + ADsSetLastError(dwerr, pszerror.param().abi(), pszprovider.param().abi()) } #[inline] pub unsafe fn AdsFreeAdsValues(padsvalues: *mut ADSVALUE, dwnumvalues: u32) { windows_targets::link!("activeds.dll" "system" fn AdsFreeAdsValues(padsvalues : *mut ADSVALUE, dwnumvalues : u32)); - AdsFreeAdsValues(core::mem::transmute(padsvalues), core::mem::transmute(dwnumvalues)) + AdsFreeAdsValues(core::mem::transmute(padsvalues), dwnumvalues) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn AdsTypeToPropVariant(padsvalues: *mut ADSVALUE, dwnumvalues: u32, pvariant: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { windows_targets::link!("activeds.dll" "system" fn AdsTypeToPropVariant(padsvalues : *mut ADSVALUE, dwnumvalues : u32, pvariant : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - AdsTypeToPropVariant(core::mem::transmute(padsvalues), core::mem::transmute(dwnumvalues), core::mem::transmute(pvariant)).ok() + AdsTypeToPropVariant(core::mem::transmute(padsvalues), dwnumvalues, core::mem::transmute(pvariant)).ok() } #[inline] pub unsafe fn AllocADsMem(cb: u32) -> *mut core::ffi::c_void { windows_targets::link!("activeds.dll" "system" fn AllocADsMem(cb : u32) -> *mut core::ffi::c_void); - AllocADsMem(core::mem::transmute(cb)) + AllocADsMem(cb) } #[inline] pub unsafe fn AllocADsStr(pstr: P0) -> windows_core::PWSTR @@ -159,7 +159,7 @@ where P4: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn BinarySDToSecurityDescriptor(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pvarsec : *mut super::super::System::Variant:: VARIANT, pszservername : windows_core::PCWSTR, username : windows_core::PCWSTR, password : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - BinarySDToSecurityDescriptor(core::mem::transmute(psecuritydescriptor), core::mem::transmute(pvarsec), pszservername.param().abi(), username.param().abi(), password.param().abi(), core::mem::transmute(dwflags)).ok() + BinarySDToSecurityDescriptor(psecuritydescriptor, core::mem::transmute(pvarsec), pszservername.param().abi(), username.param().abi(), password.param().abi(), dwflags).ok() } #[inline] pub unsafe fn DsAddSidHistoryA(hds: super::super::Foundation::HANDLE, flags: Option, srcdomain: P2, srcprincipal: P3, srcdomaincontroller: P4, srcdomaincreds: Option<*const core::ffi::c_void>, dstdomain: P6, dstprincipal: P7) -> u32 @@ -171,7 +171,7 @@ where P7: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsAddSidHistoryA(hds : super::super::Foundation:: HANDLE, flags : u32, srcdomain : windows_core::PCSTR, srcprincipal : windows_core::PCSTR, srcdomaincontroller : windows_core::PCSTR, srcdomaincreds : *const core::ffi::c_void, dstdomain : windows_core::PCSTR, dstprincipal : windows_core::PCSTR) -> u32); - DsAddSidHistoryA(core::mem::transmute(hds), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcdomain.param().abi(), srcprincipal.param().abi(), srcdomaincontroller.param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(core::mem::zeroed())), dstdomain.param().abi(), dstprincipal.param().abi()) + DsAddSidHistoryA(hds, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcdomain.param().abi(), srcprincipal.param().abi(), srcdomaincontroller.param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(core::mem::zeroed())), dstdomain.param().abi(), dstprincipal.param().abi()) } #[inline] pub unsafe fn DsAddSidHistoryW(hds: super::super::Foundation::HANDLE, flags: Option, srcdomain: P2, srcprincipal: P3, srcdomaincontroller: P4, srcdomaincreds: Option<*const core::ffi::c_void>, dstdomain: P6, dstprincipal: P7) -> u32 @@ -183,7 +183,7 @@ where P7: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsAddSidHistoryW(hds : super::super::Foundation:: HANDLE, flags : u32, srcdomain : windows_core::PCWSTR, srcprincipal : windows_core::PCWSTR, srcdomaincontroller : windows_core::PCWSTR, srcdomaincreds : *const core::ffi::c_void, dstdomain : windows_core::PCWSTR, dstprincipal : windows_core::PCWSTR) -> u32); - DsAddSidHistoryW(core::mem::transmute(hds), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcdomain.param().abi(), srcprincipal.param().abi(), srcdomaincontroller.param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(core::mem::zeroed())), dstdomain.param().abi(), dstprincipal.param().abi()) + DsAddSidHistoryW(hds, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcdomain.param().abi(), srcprincipal.param().abi(), srcdomaincontroller.param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(core::mem::zeroed())), dstdomain.param().abi(), dstprincipal.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -338,7 +338,7 @@ where #[inline] pub unsafe fn DsBindingSetTimeout(hds: super::super::Foundation::HANDLE, ctimeoutsecs: u32) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsBindingSetTimeout(hds : super::super::Foundation:: HANDLE, ctimeoutsecs : u32) -> u32); - DsBindingSetTimeout(core::mem::transmute(hds), core::mem::transmute(ctimeoutsecs)) + DsBindingSetTimeout(hds, ctimeoutsecs) } #[cfg(feature = "Win32_UI_Shell")] #[inline] @@ -373,12 +373,12 @@ where #[inline] pub unsafe fn DsCrackNamesA(hds: Option, flags: DS_NAME_FLAGS, formatoffered: DS_NAME_FORMAT, formatdesired: DS_NAME_FORMAT, rpnames: &[windows_core::PCSTR], ppresult: *mut *mut DS_NAME_RESULTA) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsCrackNamesA(hds : super::super::Foundation:: HANDLE, flags : DS_NAME_FLAGS, formatoffered : DS_NAME_FORMAT, formatdesired : DS_NAME_FORMAT, cnames : u32, rpnames : *const windows_core::PCSTR, ppresult : *mut *mut DS_NAME_RESULTA) -> u32); - DsCrackNamesA(core::mem::transmute(hds.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(formatoffered), core::mem::transmute(formatdesired), rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), core::mem::transmute(ppresult)) + DsCrackNamesA(core::mem::transmute(hds.unwrap_or(core::mem::zeroed())), flags, formatoffered, formatdesired, rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), core::mem::transmute(ppresult)) } #[inline] pub unsafe fn DsCrackNamesW(hds: Option, flags: DS_NAME_FLAGS, formatoffered: DS_NAME_FORMAT, formatdesired: DS_NAME_FORMAT, rpnames: &[windows_core::PCWSTR], ppresult: *mut *mut DS_NAME_RESULTW) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsCrackNamesW(hds : super::super::Foundation:: HANDLE, flags : DS_NAME_FLAGS, formatoffered : DS_NAME_FORMAT, formatdesired : DS_NAME_FORMAT, cnames : u32, rpnames : *const windows_core::PCWSTR, ppresult : *mut *mut DS_NAME_RESULTW) -> u32); - DsCrackNamesW(core::mem::transmute(hds.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(formatoffered), core::mem::transmute(formatdesired), rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), core::mem::transmute(ppresult)) + DsCrackNamesW(core::mem::transmute(hds.unwrap_or(core::mem::zeroed())), flags, formatoffered, formatdesired, rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), core::mem::transmute(ppresult)) } #[inline] pub unsafe fn DsCrackSpn2A(pszspn: &[u8], pcserviceclass: Option<*mut u32>, serviceclass: Option, pcservicename: Option<*mut u32>, servicename: Option, pcinstancename: Option<*mut u32>, instancename: Option, pinstanceport: Option<*mut u16>) -> u32 { @@ -416,7 +416,7 @@ where P0: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsCrackSpn3W(pszspn : windows_core::PCWSTR, cspn : u32, pchostname : *mut u32, hostname : windows_core::PWSTR, pcinstancename : *mut u32, instancename : windows_core::PWSTR, pportnumber : *mut u16, pcdomainname : *mut u32, domainname : windows_core::PWSTR, pcrealmname : *mut u32, realmname : windows_core::PWSTR) -> u32); - DsCrackSpn3W(pszspn.param().abi(), core::mem::transmute(cspn), core::mem::transmute(pchostname), core::mem::transmute(hostname), core::mem::transmute(pcinstancename), core::mem::transmute(instancename), core::mem::transmute(pportnumber), core::mem::transmute(pcdomainname), core::mem::transmute(domainname), core::mem::transmute(pcrealmname), core::mem::transmute(realmname)) + DsCrackSpn3W(pszspn.param().abi(), cspn, core::mem::transmute(pchostname), core::mem::transmute(hostname), core::mem::transmute(pcinstancename), core::mem::transmute(instancename), core::mem::transmute(pportnumber), core::mem::transmute(pcdomainname), core::mem::transmute(domainname), core::mem::transmute(pcrealmname), core::mem::transmute(realmname)) } #[inline] pub unsafe fn DsCrackSpn4W(pszspn: P0, cspn: u32, pchostname: *mut u32, hostname: windows_core::PWSTR, pcinstancename: *mut u32, instancename: windows_core::PWSTR, pcportname: *mut u32, portname: windows_core::PWSTR, pcdomainname: *mut u32, domainname: windows_core::PWSTR, pcrealmname: *mut u32, realmname: windows_core::PWSTR) -> u32 @@ -424,7 +424,7 @@ where P0: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsCrackSpn4W(pszspn : windows_core::PCWSTR, cspn : u32, pchostname : *mut u32, hostname : windows_core::PWSTR, pcinstancename : *mut u32, instancename : windows_core::PWSTR, pcportname : *mut u32, portname : windows_core::PWSTR, pcdomainname : *mut u32, domainname : windows_core::PWSTR, pcrealmname : *mut u32, realmname : windows_core::PWSTR) -> u32); - DsCrackSpn4W(pszspn.param().abi(), core::mem::transmute(cspn), core::mem::transmute(pchostname), core::mem::transmute(hostname), core::mem::transmute(pcinstancename), core::mem::transmute(instancename), core::mem::transmute(pcportname), core::mem::transmute(portname), core::mem::transmute(pcdomainname), core::mem::transmute(domainname), core::mem::transmute(pcrealmname), core::mem::transmute(realmname)) + DsCrackSpn4W(pszspn.param().abi(), cspn, core::mem::transmute(pchostname), core::mem::transmute(hostname), core::mem::transmute(pcinstancename), core::mem::transmute(instancename), core::mem::transmute(pcportname), core::mem::transmute(portname), core::mem::transmute(pcdomainname), core::mem::transmute(domainname), core::mem::transmute(pcrealmname), core::mem::transmute(realmname)) } #[inline] pub unsafe fn DsCrackSpnA(pszspn: P0, pcserviceclass: Option<*mut u32>, serviceclass: Option, pcservicename: Option<*mut u32>, servicename: Option, pcinstancename: Option<*mut u32>, instancename: Option, pinstanceport: Option<*mut u16>) -> u32 @@ -497,7 +497,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsEnumerateDomainTrustsA(servername : windows_core::PCSTR, flags : u32, domains : *mut *mut DS_DOMAIN_TRUSTSA, domaincount : *mut u32) -> u32); - DsEnumerateDomainTrustsA(servername.param().abi(), core::mem::transmute(flags), core::mem::transmute(domains), core::mem::transmute(domaincount)) + DsEnumerateDomainTrustsA(servername.param().abi(), flags, core::mem::transmute(domains), core::mem::transmute(domaincount)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -506,42 +506,42 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsEnumerateDomainTrustsW(servername : windows_core::PCWSTR, flags : u32, domains : *mut *mut DS_DOMAIN_TRUSTSW, domaincount : *mut u32) -> u32); - DsEnumerateDomainTrustsW(servername.param().abi(), core::mem::transmute(flags), core::mem::transmute(domains), core::mem::transmute(domaincount)) + DsEnumerateDomainTrustsW(servername.param().abi(), flags, core::mem::transmute(domains), core::mem::transmute(domaincount)) } #[inline] pub unsafe fn DsFreeDomainControllerInfoA(infolevel: u32, pinfo: &[u8]) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreeDomainControllerInfoA(infolevel : u32, cinfo : u32, pinfo : *const core::ffi::c_void)); - DsFreeDomainControllerInfoA(core::mem::transmute(infolevel), pinfo.len().try_into().unwrap(), core::mem::transmute(pinfo.as_ptr())) + DsFreeDomainControllerInfoA(infolevel, pinfo.len().try_into().unwrap(), core::mem::transmute(pinfo.as_ptr())) } #[inline] pub unsafe fn DsFreeDomainControllerInfoW(infolevel: u32, pinfo: &[u8]) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreeDomainControllerInfoW(infolevel : u32, cinfo : u32, pinfo : *const core::ffi::c_void)); - DsFreeDomainControllerInfoW(core::mem::transmute(infolevel), pinfo.len().try_into().unwrap(), core::mem::transmute(pinfo.as_ptr())) + DsFreeDomainControllerInfoW(infolevel, pinfo.len().try_into().unwrap(), core::mem::transmute(pinfo.as_ptr())) } #[inline] pub unsafe fn DsFreeNameResultA(presult: *const DS_NAME_RESULTA) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreeNameResultA(presult : *const DS_NAME_RESULTA)); - DsFreeNameResultA(core::mem::transmute(presult)) + DsFreeNameResultA(presult) } #[inline] pub unsafe fn DsFreeNameResultW(presult: *const DS_NAME_RESULTW) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreeNameResultW(presult : *const DS_NAME_RESULTW)); - DsFreeNameResultW(core::mem::transmute(presult)) + DsFreeNameResultW(presult) } #[inline] pub unsafe fn DsFreePasswordCredentials(authidentity: *const core::ffi::c_void) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreePasswordCredentials(authidentity : *const core::ffi::c_void)); - DsFreePasswordCredentials(core::mem::transmute(authidentity)) + DsFreePasswordCredentials(authidentity) } #[inline] pub unsafe fn DsFreeSchemaGuidMapA(pguidmap: *const DS_SCHEMA_GUID_MAPA) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreeSchemaGuidMapA(pguidmap : *const DS_SCHEMA_GUID_MAPA)); - DsFreeSchemaGuidMapA(core::mem::transmute(pguidmap)) + DsFreeSchemaGuidMapA(pguidmap) } #[inline] pub unsafe fn DsFreeSchemaGuidMapW(pguidmap: *const DS_SCHEMA_GUID_MAPW) { windows_targets::link!("ntdsapi.dll" "system" fn DsFreeSchemaGuidMapW(pguidmap : *const DS_SCHEMA_GUID_MAPW)); - DsFreeSchemaGuidMapW(core::mem::transmute(pguidmap)) + DsFreeSchemaGuidMapW(pguidmap) } #[inline] pub unsafe fn DsFreeSpnArrayA(rpszspn: &mut [windows_core::PSTR]) { @@ -556,7 +556,7 @@ pub unsafe fn DsFreeSpnArrayW(rpszspn: &mut [windows_core::PWSTR]) { #[inline] pub unsafe fn DsGetDcCloseW(getdccontexthandle: super::super::Foundation::HANDLE) { windows_targets::link!("netapi32.dll" "system" fn DsGetDcCloseW(getdccontexthandle : super::super::Foundation:: HANDLE)); - DsGetDcCloseW(core::mem::transmute(getdccontexthandle)) + DsGetDcCloseW(getdccontexthandle) } #[inline] pub unsafe fn DsGetDcNameA(computername: P0, domainname: P1, domainguid: Option<*const windows_core::GUID>, sitename: P3, flags: u32, domaincontrollerinfo: *mut *mut DOMAIN_CONTROLLER_INFOA) -> u32 @@ -566,7 +566,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcNameA(computername : windows_core::PCSTR, domainname : windows_core::PCSTR, domainguid : *const windows_core::GUID, sitename : windows_core::PCSTR, flags : u32, domaincontrollerinfo : *mut *mut DOMAIN_CONTROLLER_INFOA) -> u32); - DsGetDcNameA(computername.param().abi(), domainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), sitename.param().abi(), core::mem::transmute(flags), core::mem::transmute(domaincontrollerinfo)) + DsGetDcNameA(computername.param().abi(), domainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), sitename.param().abi(), flags, core::mem::transmute(domaincontrollerinfo)) } #[inline] pub unsafe fn DsGetDcNameW(computername: P0, domainname: P1, domainguid: Option<*const windows_core::GUID>, sitename: P3, flags: u32, domaincontrollerinfo: *mut *mut DOMAIN_CONTROLLER_INFOW) -> u32 @@ -576,19 +576,19 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcNameW(computername : windows_core::PCWSTR, domainname : windows_core::PCWSTR, domainguid : *const windows_core::GUID, sitename : windows_core::PCWSTR, flags : u32, domaincontrollerinfo : *mut *mut DOMAIN_CONTROLLER_INFOW) -> u32); - DsGetDcNameW(computername.param().abi(), domainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), sitename.param().abi(), core::mem::transmute(flags), core::mem::transmute(domaincontrollerinfo)) + DsGetDcNameW(computername.param().abi(), domainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), sitename.param().abi(), flags, core::mem::transmute(domaincontrollerinfo)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsGetDcNextA(getdccontexthandle: super::super::Foundation::HANDLE, sockaddresscount: Option<*mut u32>, sockaddresses: Option<*mut *mut super::WinSock::SOCKET_ADDRESS>, dnshostname: Option<*mut windows_core::PSTR>) -> u32 { windows_targets::link!("netapi32.dll" "system" fn DsGetDcNextA(getdccontexthandle : super::super::Foundation:: HANDLE, sockaddresscount : *mut u32, sockaddresses : *mut *mut super::WinSock:: SOCKET_ADDRESS, dnshostname : *mut windows_core::PSTR) -> u32); - DsGetDcNextA(core::mem::transmute(getdccontexthandle), core::mem::transmute(sockaddresscount.unwrap_or(core::mem::zeroed())), core::mem::transmute(sockaddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(dnshostname.unwrap_or(core::mem::zeroed()))) + DsGetDcNextA(getdccontexthandle, core::mem::transmute(sockaddresscount.unwrap_or(core::mem::zeroed())), core::mem::transmute(sockaddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(dnshostname.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsGetDcNextW(getdccontexthandle: super::super::Foundation::HANDLE, sockaddresscount: Option<*mut u32>, sockaddresses: Option<*mut *mut super::WinSock::SOCKET_ADDRESS>, dnshostname: Option<*mut windows_core::PWSTR>) -> u32 { windows_targets::link!("netapi32.dll" "system" fn DsGetDcNextW(getdccontexthandle : super::super::Foundation:: HANDLE, sockaddresscount : *mut u32, sockaddresses : *mut *mut super::WinSock:: SOCKET_ADDRESS, dnshostname : *mut windows_core::PWSTR) -> u32); - DsGetDcNextW(core::mem::transmute(getdccontexthandle), core::mem::transmute(sockaddresscount.unwrap_or(core::mem::zeroed())), core::mem::transmute(sockaddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(dnshostname.unwrap_or(core::mem::zeroed()))) + DsGetDcNextW(getdccontexthandle, core::mem::transmute(sockaddresscount.unwrap_or(core::mem::zeroed())), core::mem::transmute(sockaddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(dnshostname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DsGetDcOpenA(dnsname: P0, optionflags: u32, sitename: P2, domainguid: Option<*const windows_core::GUID>, dnsforestname: P4, dcflags: u32, retgetdccontext: *mut super::super::Foundation::HANDLE) -> u32 @@ -598,7 +598,7 @@ where P4: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcOpenA(dnsname : windows_core::PCSTR, optionflags : u32, sitename : windows_core::PCSTR, domainguid : *const windows_core::GUID, dnsforestname : windows_core::PCSTR, dcflags : u32, retgetdccontext : *mut super::super::Foundation:: HANDLE) -> u32); - DsGetDcOpenA(dnsname.param().abi(), core::mem::transmute(optionflags), sitename.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), dnsforestname.param().abi(), core::mem::transmute(dcflags), core::mem::transmute(retgetdccontext)) + DsGetDcOpenA(dnsname.param().abi(), optionflags, sitename.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), dnsforestname.param().abi(), dcflags, core::mem::transmute(retgetdccontext)) } #[inline] pub unsafe fn DsGetDcOpenW(dnsname: P0, optionflags: u32, sitename: P2, domainguid: Option<*const windows_core::GUID>, dnsforestname: P4, dcflags: u32, retgetdccontext: *mut super::super::Foundation::HANDLE) -> u32 @@ -608,7 +608,7 @@ where P4: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcOpenW(dnsname : windows_core::PCWSTR, optionflags : u32, sitename : windows_core::PCWSTR, domainguid : *const windows_core::GUID, dnsforestname : windows_core::PCWSTR, dcflags : u32, retgetdccontext : *mut super::super::Foundation:: HANDLE) -> u32); - DsGetDcOpenW(dnsname.param().abi(), core::mem::transmute(optionflags), sitename.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), dnsforestname.param().abi(), core::mem::transmute(dcflags), core::mem::transmute(retgetdccontext)) + DsGetDcOpenW(dnsname.param().abi(), optionflags, sitename.param().abi(), core::mem::transmute(domainguid.unwrap_or(core::mem::zeroed())), dnsforestname.param().abi(), dcflags, core::mem::transmute(retgetdccontext)) } #[inline] pub unsafe fn DsGetDcSiteCoverageA(servername: P0, entrycount: *mut u32, sitenames: *mut *mut windows_core::PSTR) -> u32 @@ -632,7 +632,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsGetDomainControllerInfoA(hds : super::super::Foundation:: HANDLE, domainname : windows_core::PCSTR, infolevel : u32, pcout : *mut u32, ppinfo : *mut *mut core::ffi::c_void) -> u32); - DsGetDomainControllerInfoA(core::mem::transmute(hds), domainname.param().abi(), core::mem::transmute(infolevel), core::mem::transmute(pcout), core::mem::transmute(ppinfo)) + DsGetDomainControllerInfoA(hds, domainname.param().abi(), infolevel, core::mem::transmute(pcout), core::mem::transmute(ppinfo)) } #[inline] pub unsafe fn DsGetDomainControllerInfoW(hds: super::super::Foundation::HANDLE, domainname: P1, infolevel: u32, pcout: *mut u32, ppinfo: *mut *mut core::ffi::c_void) -> u32 @@ -640,7 +640,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsGetDomainControllerInfoW(hds : super::super::Foundation:: HANDLE, domainname : windows_core::PCWSTR, infolevel : u32, pcout : *mut u32, ppinfo : *mut *mut core::ffi::c_void) -> u32); - DsGetDomainControllerInfoW(core::mem::transmute(hds), domainname.param().abi(), core::mem::transmute(infolevel), core::mem::transmute(pcout), core::mem::transmute(ppinfo)) + DsGetDomainControllerInfoW(hds, domainname.param().abi(), infolevel, core::mem::transmute(pcout), core::mem::transmute(ppinfo)) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] @@ -650,7 +650,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetForestTrustInformationW(servername : windows_core::PCWSTR, trusteddomainname : windows_core::PCWSTR, flags : u32, foresttrustinfo : *mut *mut super::super::Security::Authentication::Identity:: LSA_FOREST_TRUST_INFORMATION) -> u32); - DsGetForestTrustInformationW(servername.param().abi(), trusteddomainname.param().abi(), core::mem::transmute(flags), core::mem::transmute(foresttrustinfo)) + DsGetForestTrustInformationW(servername.param().abi(), trusteddomainname.param().abi(), flags, core::mem::transmute(foresttrustinfo)) } #[inline] pub unsafe fn DsGetFriendlyClassName(pszobjectclass: P0, pszbuffer: &mut [u16]) -> windows_core::Result<()> @@ -667,7 +667,7 @@ where P1: windows_core::Param, { windows_targets::link!("dsuiext.dll" "system" fn DsGetIcon(dwflags : u32, pszobjectclass : windows_core::PCWSTR, cximage : i32, cyimage : i32) -> super::super::UI::WindowsAndMessaging:: HICON); - DsGetIcon(core::mem::transmute(dwflags), pszobjectclass.param().abi(), core::mem::transmute(cximage), core::mem::transmute(cyimage)) + DsGetIcon(dwflags, pszobjectclass.param().abi(), cximage, cyimage) } #[inline] pub unsafe fn DsGetRdnW(ppdn: *mut windows_core::PWSTR, pcdn: *mut u32, ppkey: *mut windows_core::PWSTR, pckey: *mut u32, ppval: *mut windows_core::PWSTR, pcval: *mut u32) -> u32 { @@ -697,7 +697,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsGetSpnA(servicetype : DS_SPN_NAME_TYPE, serviceclass : windows_core::PCSTR, servicename : windows_core::PCSTR, instanceport : u16, cinstancenames : u16, pinstancenames : *const windows_core::PCSTR, pinstanceports : *const u16, pcspn : *mut u32, prpszspn : *mut *mut windows_core::PSTR) -> u32); - DsGetSpnA(core::mem::transmute(servicetype), serviceclass.param().abi(), servicename.param().abi(), core::mem::transmute(instanceport), core::mem::transmute(cinstancenames), core::mem::transmute(pinstancenames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinstanceports.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcspn), core::mem::transmute(prpszspn)) + DsGetSpnA(servicetype, serviceclass.param().abi(), servicename.param().abi(), instanceport, cinstancenames, core::mem::transmute(pinstancenames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinstanceports.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcspn), core::mem::transmute(prpszspn)) } #[inline] pub unsafe fn DsGetSpnW(servicetype: DS_SPN_NAME_TYPE, serviceclass: P1, servicename: P2, instanceport: u16, cinstancenames: u16, pinstancenames: Option<*const windows_core::PCWSTR>, pinstanceports: Option<*const u16>, pcspn: *mut u32, prpszspn: *mut *mut windows_core::PWSTR) -> u32 @@ -706,7 +706,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsGetSpnW(servicetype : DS_SPN_NAME_TYPE, serviceclass : windows_core::PCWSTR, servicename : windows_core::PCWSTR, instanceport : u16, cinstancenames : u16, pinstancenames : *const windows_core::PCWSTR, pinstanceports : *const u16, pcspn : *mut u32, prpszspn : *mut *mut windows_core::PWSTR) -> u32); - DsGetSpnW(core::mem::transmute(servicetype), serviceclass.param().abi(), servicename.param().abi(), core::mem::transmute(instanceport), core::mem::transmute(cinstancenames), core::mem::transmute(pinstancenames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinstanceports.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcspn), core::mem::transmute(prpszspn)) + DsGetSpnW(servicetype, serviceclass.param().abi(), servicename.param().abi(), instanceport, cinstancenames, core::mem::transmute(pinstancenames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinstanceports.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcspn), core::mem::transmute(prpszspn)) } #[inline] pub unsafe fn DsInheritSecurityIdentityA(hds: super::super::Foundation::HANDLE, flags: Option, srcprincipal: P2, dstprincipal: P3) -> u32 @@ -715,7 +715,7 @@ where P3: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsInheritSecurityIdentityA(hds : super::super::Foundation:: HANDLE, flags : u32, srcprincipal : windows_core::PCSTR, dstprincipal : windows_core::PCSTR) -> u32); - DsInheritSecurityIdentityA(core::mem::transmute(hds), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcprincipal.param().abi(), dstprincipal.param().abi()) + DsInheritSecurityIdentityA(hds, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcprincipal.param().abi(), dstprincipal.param().abi()) } #[inline] pub unsafe fn DsInheritSecurityIdentityW(hds: super::super::Foundation::HANDLE, flags: Option, srcprincipal: P2, dstprincipal: P3) -> u32 @@ -724,7 +724,7 @@ where P3: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsInheritSecurityIdentityW(hds : super::super::Foundation:: HANDLE, flags : u32, srcprincipal : windows_core::PCWSTR, dstprincipal : windows_core::PCWSTR) -> u32); - DsInheritSecurityIdentityW(core::mem::transmute(hds), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcprincipal.param().abi(), dstprincipal.param().abi()) + DsInheritSecurityIdentityW(hds, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), srcprincipal.param().abi(), dstprincipal.param().abi()) } #[inline] pub unsafe fn DsIsMangledDnA(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> super::super::Foundation::BOOL @@ -732,7 +732,7 @@ where P0: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsIsMangledDnA(pszdn : windows_core::PCSTR, edsmanglefor : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); - DsIsMangledDnA(pszdn.param().abi(), core::mem::transmute(edsmanglefor)) + DsIsMangledDnA(pszdn.param().abi(), edsmanglefor) } #[inline] pub unsafe fn DsIsMangledDnW(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> super::super::Foundation::BOOL @@ -740,17 +740,17 @@ where P0: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsIsMangledDnW(pszdn : windows_core::PCWSTR, edsmanglefor : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); - DsIsMangledDnW(pszdn.param().abi(), core::mem::transmute(edsmanglefor)) + DsIsMangledDnW(pszdn.param().abi(), edsmanglefor) } #[inline] pub unsafe fn DsIsMangledRdnValueA(pszrdn: &[u8], edsmanglefordesired: DS_MANGLE_FOR) -> super::super::Foundation::BOOL { windows_targets::link!("dsparse.dll" "system" fn DsIsMangledRdnValueA(pszrdn : windows_core::PCSTR, crdn : u32, edsmanglefordesired : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); - DsIsMangledRdnValueA(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), core::mem::transmute(edsmanglefordesired)) + DsIsMangledRdnValueA(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), edsmanglefordesired) } #[inline] pub unsafe fn DsIsMangledRdnValueW(pszrdn: &[u16], edsmanglefordesired: DS_MANGLE_FOR) -> super::super::Foundation::BOOL { windows_targets::link!("dsparse.dll" "system" fn DsIsMangledRdnValueW(pszrdn : windows_core::PCWSTR, crdn : u32, edsmanglefordesired : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); - DsIsMangledRdnValueW(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), core::mem::transmute(edsmanglefordesired)) + DsIsMangledRdnValueW(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), edsmanglefordesired) } #[inline] pub unsafe fn DsListDomainsInSiteA(hds: super::super::Foundation::HANDLE, site: P1, ppdomains: *mut *mut DS_NAME_RESULTA) -> u32 @@ -758,7 +758,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListDomainsInSiteA(hds : super::super::Foundation:: HANDLE, site : windows_core::PCSTR, ppdomains : *mut *mut DS_NAME_RESULTA) -> u32); - DsListDomainsInSiteA(core::mem::transmute(hds), site.param().abi(), core::mem::transmute(ppdomains)) + DsListDomainsInSiteA(hds, site.param().abi(), core::mem::transmute(ppdomains)) } #[inline] pub unsafe fn DsListDomainsInSiteW(hds: super::super::Foundation::HANDLE, site: P1, ppdomains: *mut *mut DS_NAME_RESULTW) -> u32 @@ -766,7 +766,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListDomainsInSiteW(hds : super::super::Foundation:: HANDLE, site : windows_core::PCWSTR, ppdomains : *mut *mut DS_NAME_RESULTW) -> u32); - DsListDomainsInSiteW(core::mem::transmute(hds), site.param().abi(), core::mem::transmute(ppdomains)) + DsListDomainsInSiteW(hds, site.param().abi(), core::mem::transmute(ppdomains)) } #[inline] pub unsafe fn DsListInfoForServerA(hds: super::super::Foundation::HANDLE, server: P1, ppinfo: *mut *mut DS_NAME_RESULTA) -> u32 @@ -774,7 +774,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListInfoForServerA(hds : super::super::Foundation:: HANDLE, server : windows_core::PCSTR, ppinfo : *mut *mut DS_NAME_RESULTA) -> u32); - DsListInfoForServerA(core::mem::transmute(hds), server.param().abi(), core::mem::transmute(ppinfo)) + DsListInfoForServerA(hds, server.param().abi(), core::mem::transmute(ppinfo)) } #[inline] pub unsafe fn DsListInfoForServerW(hds: super::super::Foundation::HANDLE, server: P1, ppinfo: *mut *mut DS_NAME_RESULTW) -> u32 @@ -782,17 +782,17 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListInfoForServerW(hds : super::super::Foundation:: HANDLE, server : windows_core::PCWSTR, ppinfo : *mut *mut DS_NAME_RESULTW) -> u32); - DsListInfoForServerW(core::mem::transmute(hds), server.param().abi(), core::mem::transmute(ppinfo)) + DsListInfoForServerW(hds, server.param().abi(), core::mem::transmute(ppinfo)) } #[inline] pub unsafe fn DsListRolesA(hds: super::super::Foundation::HANDLE, pproles: *mut *mut DS_NAME_RESULTA) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsListRolesA(hds : super::super::Foundation:: HANDLE, pproles : *mut *mut DS_NAME_RESULTA) -> u32); - DsListRolesA(core::mem::transmute(hds), core::mem::transmute(pproles)) + DsListRolesA(hds, core::mem::transmute(pproles)) } #[inline] pub unsafe fn DsListRolesW(hds: super::super::Foundation::HANDLE, pproles: *mut *mut DS_NAME_RESULTW) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsListRolesW(hds : super::super::Foundation:: HANDLE, pproles : *mut *mut DS_NAME_RESULTW) -> u32); - DsListRolesW(core::mem::transmute(hds), core::mem::transmute(pproles)) + DsListRolesW(hds, core::mem::transmute(pproles)) } #[inline] pub unsafe fn DsListServersForDomainInSiteA(hds: super::super::Foundation::HANDLE, domain: P1, site: P2, ppservers: *mut *mut DS_NAME_RESULTA) -> u32 @@ -801,7 +801,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListServersForDomainInSiteA(hds : super::super::Foundation:: HANDLE, domain : windows_core::PCSTR, site : windows_core::PCSTR, ppservers : *mut *mut DS_NAME_RESULTA) -> u32); - DsListServersForDomainInSiteA(core::mem::transmute(hds), domain.param().abi(), site.param().abi(), core::mem::transmute(ppservers)) + DsListServersForDomainInSiteA(hds, domain.param().abi(), site.param().abi(), core::mem::transmute(ppservers)) } #[inline] pub unsafe fn DsListServersForDomainInSiteW(hds: super::super::Foundation::HANDLE, domain: P1, site: P2, ppservers: *mut *mut DS_NAME_RESULTW) -> u32 @@ -810,7 +810,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListServersForDomainInSiteW(hds : super::super::Foundation:: HANDLE, domain : windows_core::PCWSTR, site : windows_core::PCWSTR, ppservers : *mut *mut DS_NAME_RESULTW) -> u32); - DsListServersForDomainInSiteW(core::mem::transmute(hds), domain.param().abi(), site.param().abi(), core::mem::transmute(ppservers)) + DsListServersForDomainInSiteW(hds, domain.param().abi(), site.param().abi(), core::mem::transmute(ppservers)) } #[inline] pub unsafe fn DsListServersInSiteA(hds: super::super::Foundation::HANDLE, site: P1, ppservers: *mut *mut DS_NAME_RESULTA) -> u32 @@ -818,7 +818,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListServersInSiteA(hds : super::super::Foundation:: HANDLE, site : windows_core::PCSTR, ppservers : *mut *mut DS_NAME_RESULTA) -> u32); - DsListServersInSiteA(core::mem::transmute(hds), site.param().abi(), core::mem::transmute(ppservers)) + DsListServersInSiteA(hds, site.param().abi(), core::mem::transmute(ppservers)) } #[inline] pub unsafe fn DsListServersInSiteW(hds: super::super::Foundation::HANDLE, site: P1, ppservers: *mut *mut DS_NAME_RESULTW) -> u32 @@ -826,17 +826,17 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListServersInSiteW(hds : super::super::Foundation:: HANDLE, site : windows_core::PCWSTR, ppservers : *mut *mut DS_NAME_RESULTW) -> u32); - DsListServersInSiteW(core::mem::transmute(hds), site.param().abi(), core::mem::transmute(ppservers)) + DsListServersInSiteW(hds, site.param().abi(), core::mem::transmute(ppservers)) } #[inline] pub unsafe fn DsListSitesA(hds: super::super::Foundation::HANDLE, ppsites: *mut *mut DS_NAME_RESULTA) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsListSitesA(hds : super::super::Foundation:: HANDLE, ppsites : *mut *mut DS_NAME_RESULTA) -> u32); - DsListSitesA(core::mem::transmute(hds), core::mem::transmute(ppsites)) + DsListSitesA(hds, core::mem::transmute(ppsites)) } #[inline] pub unsafe fn DsListSitesW(hds: super::super::Foundation::HANDLE, ppsites: *mut *mut DS_NAME_RESULTW) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsListSitesW(hds : super::super::Foundation:: HANDLE, ppsites : *mut *mut DS_NAME_RESULTW) -> u32); - DsListSitesW(core::mem::transmute(hds), core::mem::transmute(ppsites)) + DsListSitesW(hds, core::mem::transmute(ppsites)) } #[inline] pub unsafe fn DsMakePasswordCredentialsA(user: P0, domain: P1, password: P2, pauthidentity: *mut *mut core::ffi::c_void) -> u32 @@ -867,7 +867,7 @@ where P4: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsMakeSpnA(serviceclass : windows_core::PCSTR, servicename : windows_core::PCSTR, instancename : windows_core::PCSTR, instanceport : u16, referrer : windows_core::PCSTR, pcspnlength : *mut u32, pszspn : windows_core::PSTR) -> u32); - DsMakeSpnA(serviceclass.param().abi(), servicename.param().abi(), instancename.param().abi(), core::mem::transmute(instanceport), referrer.param().abi(), core::mem::transmute(pcspnlength), core::mem::transmute(pszspn.unwrap_or(core::mem::zeroed()))) + DsMakeSpnA(serviceclass.param().abi(), servicename.param().abi(), instancename.param().abi(), instanceport, referrer.param().abi(), core::mem::transmute(pcspnlength), core::mem::transmute(pszspn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DsMakeSpnW(serviceclass: P0, servicename: P1, instancename: P2, instanceport: u16, referrer: P4, pcspnlength: *mut u32, pszspn: Option) -> u32 @@ -878,17 +878,17 @@ where P4: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsMakeSpnW(serviceclass : windows_core::PCWSTR, servicename : windows_core::PCWSTR, instancename : windows_core::PCWSTR, instanceport : u16, referrer : windows_core::PCWSTR, pcspnlength : *mut u32, pszspn : windows_core::PWSTR) -> u32); - DsMakeSpnW(serviceclass.param().abi(), servicename.param().abi(), instancename.param().abi(), core::mem::transmute(instanceport), referrer.param().abi(), core::mem::transmute(pcspnlength), core::mem::transmute(pszspn.unwrap_or(core::mem::zeroed()))) + DsMakeSpnW(serviceclass.param().abi(), servicename.param().abi(), instancename.param().abi(), instanceport, referrer.param().abi(), core::mem::transmute(pcspnlength), core::mem::transmute(pszspn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DsMapSchemaGuidsA(hds: super::super::Foundation::HANDLE, rguids: &[windows_core::GUID], ppguidmap: *mut *mut DS_SCHEMA_GUID_MAPA) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsMapSchemaGuidsA(hds : super::super::Foundation:: HANDLE, cguids : u32, rguids : *const windows_core::GUID, ppguidmap : *mut *mut DS_SCHEMA_GUID_MAPA) -> u32); - DsMapSchemaGuidsA(core::mem::transmute(hds), rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), core::mem::transmute(ppguidmap)) + DsMapSchemaGuidsA(hds, rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), core::mem::transmute(ppguidmap)) } #[inline] pub unsafe fn DsMapSchemaGuidsW(hds: super::super::Foundation::HANDLE, rguids: &[windows_core::GUID], ppguidmap: *mut *mut DS_SCHEMA_GUID_MAPW) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsMapSchemaGuidsW(hds : super::super::Foundation:: HANDLE, cguids : u32, rguids : *const windows_core::GUID, ppguidmap : *mut *mut DS_SCHEMA_GUID_MAPW) -> u32); - DsMapSchemaGuidsW(core::mem::transmute(hds), rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), core::mem::transmute(ppguidmap)) + DsMapSchemaGuidsW(hds, rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), core::mem::transmute(ppguidmap)) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] @@ -897,7 +897,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsMergeForestTrustInformationW(domainname : windows_core::PCWSTR, newforesttrustinfo : *const super::super::Security::Authentication::Identity:: LSA_FOREST_TRUST_INFORMATION, oldforesttrustinfo : *const super::super::Security::Authentication::Identity:: LSA_FOREST_TRUST_INFORMATION, mergedforesttrustinfo : *mut *mut super::super::Security::Authentication::Identity:: LSA_FOREST_TRUST_INFORMATION) -> u32); - DsMergeForestTrustInformationW(domainname.param().abi(), core::mem::transmute(newforesttrustinfo), core::mem::transmute(oldforesttrustinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(mergedforesttrustinfo)) + DsMergeForestTrustInformationW(domainname.param().abi(), newforesttrustinfo, core::mem::transmute(oldforesttrustinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(mergedforesttrustinfo)) } #[inline] pub unsafe fn DsQuerySitesByCostA(hds: super::super::Foundation::HANDLE, pszfromsite: P1, rgsztosites: &[windows_core::PCSTR], dwflags: Option, prgsiteinfo: *mut *mut DS_SITE_COST_INFO) -> u32 @@ -905,7 +905,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsQuerySitesByCostA(hds : super::super::Foundation:: HANDLE, pszfromsite : windows_core::PCSTR, rgsztosites : *const windows_core::PCSTR, ctosites : u32, dwflags : u32, prgsiteinfo : *mut *mut DS_SITE_COST_INFO) -> u32); - DsQuerySitesByCostA(core::mem::transmute(hds), pszfromsite.param().abi(), core::mem::transmute(rgsztosites.as_ptr()), rgsztosites.len().try_into().unwrap(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgsiteinfo)) + DsQuerySitesByCostA(hds, pszfromsite.param().abi(), core::mem::transmute(rgsztosites.as_ptr()), rgsztosites.len().try_into().unwrap(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgsiteinfo)) } #[inline] pub unsafe fn DsQuerySitesByCostW(hds: super::super::Foundation::HANDLE, pwszfromsite: P1, rgwsztosites: &[windows_core::PCWSTR], dwflags: Option, prgsiteinfo: *mut *mut DS_SITE_COST_INFO) -> u32 @@ -913,12 +913,12 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsQuerySitesByCostW(hds : super::super::Foundation:: HANDLE, pwszfromsite : windows_core::PCWSTR, rgwsztosites : *const windows_core::PCWSTR, ctosites : u32, dwflags : u32, prgsiteinfo : *mut *mut DS_SITE_COST_INFO) -> u32); - DsQuerySitesByCostW(core::mem::transmute(hds), pwszfromsite.param().abi(), core::mem::transmute(rgwsztosites.as_ptr()), rgwsztosites.len().try_into().unwrap(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgsiteinfo)) + DsQuerySitesByCostW(hds, pwszfromsite.param().abi(), core::mem::transmute(rgwsztosites.as_ptr()), rgwsztosites.len().try_into().unwrap(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgsiteinfo)) } #[inline] pub unsafe fn DsQuerySitesFree(rgsiteinfo: *const DS_SITE_COST_INFO) { windows_targets::link!("ntdsapi.dll" "system" fn DsQuerySitesFree(rgsiteinfo : *const DS_SITE_COST_INFO)); - DsQuerySitesFree(core::mem::transmute(rgsiteinfo)) + DsQuerySitesFree(rgsiteinfo) } #[inline] pub unsafe fn DsQuoteRdnValueA(psunquotedrdnvalue: &[u8], pcquotedrdnvaluelength: *mut u32, psquotedrdnvalue: windows_core::PSTR) -> u32 { @@ -936,7 +936,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsDomainA(hds : super::super::Foundation:: HANDLE, domaindn : windows_core::PCSTR) -> u32); - DsRemoveDsDomainA(core::mem::transmute(hds), domaindn.param().abi()) + DsRemoveDsDomainA(hds, domaindn.param().abi()) } #[inline] pub unsafe fn DsRemoveDsDomainW(hds: super::super::Foundation::HANDLE, domaindn: P1) -> u32 @@ -944,7 +944,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsDomainW(hds : super::super::Foundation:: HANDLE, domaindn : windows_core::PCWSTR) -> u32); - DsRemoveDsDomainW(core::mem::transmute(hds), domaindn.param().abi()) + DsRemoveDsDomainW(hds, domaindn.param().abi()) } #[inline] pub unsafe fn DsRemoveDsServerA(hds: super::super::Foundation::HANDLE, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut super::super::Foundation::BOOL>, fcommit: bool) -> u32 @@ -953,7 +953,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsServerA(hds : super::super::Foundation:: HANDLE, serverdn : windows_core::PCSTR, domaindn : windows_core::PCSTR, flastdcindomain : *mut super::super::Foundation:: BOOL, fcommit : super::super::Foundation:: BOOL) -> u32); - DsRemoveDsServerA(core::mem::transmute(hds), serverdn.param().abi(), domaindn.param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(core::mem::zeroed())), fcommit.into()) + DsRemoveDsServerA(hds, serverdn.param().abi(), domaindn.param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(core::mem::zeroed())), fcommit.into()) } #[inline] pub unsafe fn DsRemoveDsServerW(hds: super::super::Foundation::HANDLE, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut super::super::Foundation::BOOL>, fcommit: bool) -> u32 @@ -962,7 +962,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsServerW(hds : super::super::Foundation:: HANDLE, serverdn : windows_core::PCWSTR, domaindn : windows_core::PCWSTR, flastdcindomain : *mut super::super::Foundation:: BOOL, fcommit : super::super::Foundation:: BOOL) -> u32); - DsRemoveDsServerW(core::mem::transmute(hds), serverdn.param().abi(), domaindn.param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(core::mem::zeroed())), fcommit.into()) + DsRemoveDsServerW(hds, serverdn.param().abi(), domaindn.param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(core::mem::zeroed())), fcommit.into()) } #[inline] pub unsafe fn DsReplicaAddA(hds: super::super::Foundation::HANDLE, namecontext: P1, sourcedsadn: P2, transportdn: P3, sourcedsaaddress: P4, pschedule: Option<*const SCHEDULE>, options: u32) -> u32 @@ -973,7 +973,7 @@ where P4: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaAddA(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCSTR, sourcedsadn : windows_core::PCSTR, transportdn : windows_core::PCSTR, sourcedsaaddress : windows_core::PCSTR, pschedule : *const SCHEDULE, options : u32) -> u32); - DsReplicaAddA(core::mem::transmute(hds), namecontext.param().abi(), sourcedsadn.param().abi(), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), core::mem::transmute(options)) + DsReplicaAddA(hds, namecontext.param().abi(), sourcedsadn.param().abi(), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), options) } #[inline] pub unsafe fn DsReplicaAddW(hds: super::super::Foundation::HANDLE, namecontext: P1, sourcedsadn: P2, transportdn: P3, sourcedsaaddress: P4, pschedule: Option<*const SCHEDULE>, options: u32) -> u32 @@ -984,12 +984,12 @@ where P4: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaAddW(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCWSTR, sourcedsadn : windows_core::PCWSTR, transportdn : windows_core::PCWSTR, sourcedsaaddress : windows_core::PCWSTR, pschedule : *const SCHEDULE, options : u32) -> u32); - DsReplicaAddW(core::mem::transmute(hds), namecontext.param().abi(), sourcedsadn.param().abi(), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), core::mem::transmute(options)) + DsReplicaAddW(hds, namecontext.param().abi(), sourcedsadn.param().abi(), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), options) } #[inline] pub unsafe fn DsReplicaConsistencyCheck(hds: super::super::Foundation::HANDLE, taskid: DS_KCC_TASKID, dwflags: u32) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaConsistencyCheck(hds : super::super::Foundation:: HANDLE, taskid : DS_KCC_TASKID, dwflags : u32) -> u32); - DsReplicaConsistencyCheck(core::mem::transmute(hds), core::mem::transmute(taskid), core::mem::transmute(dwflags)) + DsReplicaConsistencyCheck(hds, taskid, dwflags) } #[inline] pub unsafe fn DsReplicaDelA(hds: super::super::Foundation::HANDLE, namecontext: P1, dsasrc: P2, options: u32) -> u32 @@ -998,7 +998,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaDelA(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCSTR, dsasrc : windows_core::PCSTR, options : u32) -> u32); - DsReplicaDelA(core::mem::transmute(hds), namecontext.param().abi(), dsasrc.param().abi(), core::mem::transmute(options)) + DsReplicaDelA(hds, namecontext.param().abi(), dsasrc.param().abi(), options) } #[inline] pub unsafe fn DsReplicaDelW(hds: super::super::Foundation::HANDLE, namecontext: P1, dsasrc: P2, options: u32) -> u32 @@ -1007,12 +1007,12 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaDelW(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCWSTR, dsasrc : windows_core::PCWSTR, options : u32) -> u32); - DsReplicaDelW(core::mem::transmute(hds), namecontext.param().abi(), dsasrc.param().abi(), core::mem::transmute(options)) + DsReplicaDelW(hds, namecontext.param().abi(), dsasrc.param().abi(), options) } #[inline] pub unsafe fn DsReplicaFreeInfo(infotype: DS_REPL_INFO_TYPE, pinfo: *const core::ffi::c_void) { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaFreeInfo(infotype : DS_REPL_INFO_TYPE, pinfo : *const core::ffi::c_void)); - DsReplicaFreeInfo(core::mem::transmute(infotype), core::mem::transmute(pinfo)) + DsReplicaFreeInfo(infotype, pinfo) } #[inline] pub unsafe fn DsReplicaGetInfo2W(hds: super::super::Foundation::HANDLE, infotype: DS_REPL_INFO_TYPE, pszobject: P2, puuidforsourcedsaobjguid: Option<*const windows_core::GUID>, pszattributename: P4, pszvalue: P5, dwflags: u32, dwenumerationcontext: u32, ppinfo: *mut *mut core::ffi::c_void) -> u32 @@ -1022,7 +1022,7 @@ where P5: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaGetInfo2W(hds : super::super::Foundation:: HANDLE, infotype : DS_REPL_INFO_TYPE, pszobject : windows_core::PCWSTR, puuidforsourcedsaobjguid : *const windows_core::GUID, pszattributename : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, dwflags : u32, dwenumerationcontext : u32, ppinfo : *mut *mut core::ffi::c_void) -> u32); - DsReplicaGetInfo2W(core::mem::transmute(hds), core::mem::transmute(infotype), pszobject.param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(core::mem::zeroed())), pszattributename.param().abi(), pszvalue.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwenumerationcontext), core::mem::transmute(ppinfo)) + DsReplicaGetInfo2W(hds, infotype, pszobject.param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(core::mem::zeroed())), pszattributename.param().abi(), pszvalue.param().abi(), dwflags, dwenumerationcontext, core::mem::transmute(ppinfo)) } #[inline] pub unsafe fn DsReplicaGetInfoW(hds: super::super::Foundation::HANDLE, infotype: DS_REPL_INFO_TYPE, pszobject: P2, puuidforsourcedsaobjguid: Option<*const windows_core::GUID>, ppinfo: *mut *mut core::ffi::c_void) -> u32 @@ -1030,7 +1030,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaGetInfoW(hds : super::super::Foundation:: HANDLE, infotype : DS_REPL_INFO_TYPE, pszobject : windows_core::PCWSTR, puuidforsourcedsaobjguid : *const windows_core::GUID, ppinfo : *mut *mut core::ffi::c_void) -> u32); - DsReplicaGetInfoW(core::mem::transmute(hds), core::mem::transmute(infotype), pszobject.param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppinfo)) + DsReplicaGetInfoW(hds, infotype, pszobject.param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppinfo)) } #[inline] pub unsafe fn DsReplicaModifyA(hds: super::super::Foundation::HANDLE, namecontext: P1, puuidsourcedsa: Option<*const windows_core::GUID>, transportdn: P3, sourcedsaaddress: P4, pschedule: Option<*const SCHEDULE>, replicaflags: Option, modifyfields: u32, options: u32) -> u32 @@ -1040,7 +1040,7 @@ where P4: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaModifyA(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCSTR, puuidsourcedsa : *const windows_core::GUID, transportdn : windows_core::PCSTR, sourcedsaaddress : windows_core::PCSTR, pschedule : *const SCHEDULE, replicaflags : u32, modifyfields : u32, options : u32) -> u32); - DsReplicaModifyA(core::mem::transmute(hds), namecontext.param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(core::mem::zeroed())), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), core::mem::transmute(replicaflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(modifyfields), core::mem::transmute(options)) + DsReplicaModifyA(hds, namecontext.param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(core::mem::zeroed())), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), core::mem::transmute(replicaflags.unwrap_or(core::mem::zeroed())), modifyfields, options) } #[inline] pub unsafe fn DsReplicaModifyW(hds: super::super::Foundation::HANDLE, namecontext: P1, puuidsourcedsa: Option<*const windows_core::GUID>, transportdn: P3, sourcedsaaddress: P4, pschedule: Option<*const SCHEDULE>, replicaflags: u32, modifyfields: u32, options: u32) -> u32 @@ -1050,7 +1050,7 @@ where P4: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaModifyW(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCWSTR, puuidsourcedsa : *const windows_core::GUID, transportdn : windows_core::PCWSTR, sourcedsaaddress : windows_core::PCWSTR, pschedule : *const SCHEDULE, replicaflags : u32, modifyfields : u32, options : u32) -> u32); - DsReplicaModifyW(core::mem::transmute(hds), namecontext.param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(core::mem::zeroed())), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), core::mem::transmute(replicaflags), core::mem::transmute(modifyfields), core::mem::transmute(options)) + DsReplicaModifyW(hds, namecontext.param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(core::mem::zeroed())), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(core::mem::zeroed())), replicaflags, modifyfields, options) } #[inline] pub unsafe fn DsReplicaSyncA(hds: super::super::Foundation::HANDLE, namecontext: P1, puuiddsasrc: *const windows_core::GUID, options: u32) -> u32 @@ -1058,7 +1058,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaSyncA(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCSTR, puuiddsasrc : *const windows_core::GUID, options : u32) -> u32); - DsReplicaSyncA(core::mem::transmute(hds), namecontext.param().abi(), core::mem::transmute(puuiddsasrc), core::mem::transmute(options)) + DsReplicaSyncA(hds, namecontext.param().abi(), puuiddsasrc, options) } #[inline] pub unsafe fn DsReplicaSyncAllA(hds: super::super::Foundation::HANDLE, psznamecontext: P1, ulflags: u32, pfncallback: isize, pcallbackdata: Option<*const core::ffi::c_void>, perrors: Option<*mut *mut *mut DS_REPSYNCALL_ERRINFOA>) -> u32 @@ -1066,7 +1066,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaSyncAllA(hds : super::super::Foundation:: HANDLE, psznamecontext : windows_core::PCSTR, ulflags : u32, pfncallback : isize, pcallbackdata : *const core::ffi::c_void, perrors : *mut *mut *mut DS_REPSYNCALL_ERRINFOA) -> u32); - DsReplicaSyncAllA(core::mem::transmute(hds), psznamecontext.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(pfncallback), core::mem::transmute(pcallbackdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(perrors.unwrap_or(core::mem::zeroed()))) + DsReplicaSyncAllA(hds, psznamecontext.param().abi(), ulflags, pfncallback, core::mem::transmute(pcallbackdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(perrors.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DsReplicaSyncAllW(hds: super::super::Foundation::HANDLE, psznamecontext: P1, ulflags: u32, pfncallback: isize, pcallbackdata: Option<*const core::ffi::c_void>, perrors: Option<*mut *mut *mut DS_REPSYNCALL_ERRINFOW>) -> u32 @@ -1074,7 +1074,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaSyncAllW(hds : super::super::Foundation:: HANDLE, psznamecontext : windows_core::PCWSTR, ulflags : u32, pfncallback : isize, pcallbackdata : *const core::ffi::c_void, perrors : *mut *mut *mut DS_REPSYNCALL_ERRINFOW) -> u32); - DsReplicaSyncAllW(core::mem::transmute(hds), psznamecontext.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(pfncallback), core::mem::transmute(pcallbackdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(perrors.unwrap_or(core::mem::zeroed()))) + DsReplicaSyncAllW(hds, psznamecontext.param().abi(), ulflags, pfncallback, core::mem::transmute(pcallbackdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(perrors.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DsReplicaSyncW(hds: super::super::Foundation::HANDLE, namecontext: P1, puuiddsasrc: *const windows_core::GUID, options: u32) -> u32 @@ -1082,7 +1082,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaSyncW(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCWSTR, puuiddsasrc : *const windows_core::GUID, options : u32) -> u32); - DsReplicaSyncW(core::mem::transmute(hds), namecontext.param().abi(), core::mem::transmute(puuiddsasrc), core::mem::transmute(options)) + DsReplicaSyncW(hds, namecontext.param().abi(), puuiddsasrc, options) } #[inline] pub unsafe fn DsReplicaUpdateRefsA(hds: super::super::Foundation::HANDLE, namecontext: P1, dsadest: P2, puuiddsadest: *const windows_core::GUID, options: u32) -> u32 @@ -1091,7 +1091,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaUpdateRefsA(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCSTR, dsadest : windows_core::PCSTR, puuiddsadest : *const windows_core::GUID, options : u32) -> u32); - DsReplicaUpdateRefsA(core::mem::transmute(hds), namecontext.param().abi(), dsadest.param().abi(), core::mem::transmute(puuiddsadest), core::mem::transmute(options)) + DsReplicaUpdateRefsA(hds, namecontext.param().abi(), dsadest.param().abi(), puuiddsadest, options) } #[inline] pub unsafe fn DsReplicaUpdateRefsW(hds: super::super::Foundation::HANDLE, namecontext: P1, dsadest: P2, puuiddsadest: *const windows_core::GUID, options: u32) -> u32 @@ -1100,7 +1100,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaUpdateRefsW(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCWSTR, dsadest : windows_core::PCWSTR, puuiddsadest : *const windows_core::GUID, options : u32) -> u32); - DsReplicaUpdateRefsW(core::mem::transmute(hds), namecontext.param().abi(), dsadest.param().abi(), core::mem::transmute(puuiddsadest), core::mem::transmute(options)) + DsReplicaUpdateRefsW(hds, namecontext.param().abi(), dsadest.param().abi(), puuiddsadest, options) } #[inline] pub unsafe fn DsReplicaVerifyObjectsA(hds: super::super::Foundation::HANDLE, namecontext: P1, puuiddsasrc: *const windows_core::GUID, uloptions: u32) -> u32 @@ -1108,7 +1108,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaVerifyObjectsA(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCSTR, puuiddsasrc : *const windows_core::GUID, uloptions : u32) -> u32); - DsReplicaVerifyObjectsA(core::mem::transmute(hds), namecontext.param().abi(), core::mem::transmute(puuiddsasrc), core::mem::transmute(uloptions)) + DsReplicaVerifyObjectsA(hds, namecontext.param().abi(), puuiddsasrc, uloptions) } #[inline] pub unsafe fn DsReplicaVerifyObjectsW(hds: super::super::Foundation::HANDLE, namecontext: P1, puuiddsasrc: *const windows_core::GUID, uloptions: u32) -> u32 @@ -1116,7 +1116,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaVerifyObjectsW(hds : super::super::Foundation:: HANDLE, namecontext : windows_core::PCWSTR, puuiddsasrc : *const windows_core::GUID, uloptions : u32) -> u32); - DsReplicaVerifyObjectsW(core::mem::transmute(hds), namecontext.param().abi(), core::mem::transmute(puuiddsasrc), core::mem::transmute(uloptions)) + DsReplicaVerifyObjectsW(hds, namecontext.param().abi(), puuiddsasrc, uloptions) } #[inline] pub unsafe fn DsRoleFreeMemory(buffer: *mut core::ffi::c_void) { @@ -1129,7 +1129,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsRoleGetPrimaryDomainInformation(lpserver : windows_core::PCWSTR, infolevel : DSROLE_PRIMARY_DOMAIN_INFO_LEVEL, buffer : *mut *mut u8) -> u32); - DsRoleGetPrimaryDomainInformation(lpserver.param().abi(), core::mem::transmute(infolevel), core::mem::transmute(buffer)) + DsRoleGetPrimaryDomainInformation(lpserver.param().abi(), infolevel, core::mem::transmute(buffer)) } #[inline] pub unsafe fn DsServerRegisterSpnA(operation: DS_SPN_WRITE_OP, serviceclass: P1, userobjectdn: P2) -> u32 @@ -1138,7 +1138,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsServerRegisterSpnA(operation : DS_SPN_WRITE_OP, serviceclass : windows_core::PCSTR, userobjectdn : windows_core::PCSTR) -> u32); - DsServerRegisterSpnA(core::mem::transmute(operation), serviceclass.param().abi(), userobjectdn.param().abi()) + DsServerRegisterSpnA(operation, serviceclass.param().abi(), userobjectdn.param().abi()) } #[inline] pub unsafe fn DsServerRegisterSpnW(operation: DS_SPN_WRITE_OP, serviceclass: P1, userobjectdn: P2) -> u32 @@ -1147,17 +1147,17 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsServerRegisterSpnW(operation : DS_SPN_WRITE_OP, serviceclass : windows_core::PCWSTR, userobjectdn : windows_core::PCWSTR) -> u32); - DsServerRegisterSpnW(core::mem::transmute(operation), serviceclass.param().abi(), userobjectdn.param().abi()) + DsServerRegisterSpnW(operation, serviceclass.param().abi(), userobjectdn.param().abi()) } #[inline] pub unsafe fn DsUnBindA(phds: *const super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsUnBindA(phds : *const super::super::Foundation:: HANDLE) -> u32); - DsUnBindA(core::mem::transmute(phds)) + DsUnBindA(phds) } #[inline] pub unsafe fn DsUnBindW(phds: *const super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("ntdsapi.dll" "system" fn DsUnBindW(phds : *const super::super::Foundation:: HANDLE) -> u32); - DsUnBindW(core::mem::transmute(phds)) + DsUnBindW(phds) } #[inline] pub unsafe fn DsUnquoteRdnValueA(psquotedrdnvalue: &[u8], pcunquotedrdnvaluelength: *mut u32, psunquotedrdnvalue: windows_core::PSTR) -> u32 { @@ -1191,7 +1191,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsWriteAccountSpnA(hds : super::super::Foundation:: HANDLE, operation : DS_SPN_WRITE_OP, pszaccount : windows_core::PCSTR, cspn : u32, rpszspn : *const windows_core::PCSTR) -> u32); - DsWriteAccountSpnA(core::mem::transmute(hds), core::mem::transmute(operation), pszaccount.param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) + DsWriteAccountSpnA(hds, operation, pszaccount.param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) } #[inline] pub unsafe fn DsWriteAccountSpnW(hds: super::super::Foundation::HANDLE, operation: DS_SPN_WRITE_OP, pszaccount: P2, rpszspn: &[windows_core::PCWSTR]) -> u32 @@ -1199,7 +1199,7 @@ where P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsWriteAccountSpnW(hds : super::super::Foundation:: HANDLE, operation : DS_SPN_WRITE_OP, pszaccount : windows_core::PCWSTR, cspn : u32, rpszspn : *const windows_core::PCWSTR) -> u32); - DsWriteAccountSpnW(core::mem::transmute(hds), core::mem::transmute(operation), pszaccount.param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) + DsWriteAccountSpnW(hds, operation, pszaccount.param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) } #[inline] pub unsafe fn FreeADsMem(pmem: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { @@ -1218,12 +1218,12 @@ where #[inline] pub unsafe fn PropVariantToAdsType(pvariant: *mut super::super::System::Variant::VARIANT, dwnumvariant: u32, ppadsvalues: *mut *mut ADSVALUE, pdwnumvalues: *mut u32) -> windows_core::Result<()> { windows_targets::link!("activeds.dll" "system" fn PropVariantToAdsType(pvariant : *mut super::super::System::Variant:: VARIANT, dwnumvariant : u32, ppadsvalues : *mut *mut ADSVALUE, pdwnumvalues : *mut u32) -> windows_core::HRESULT); - PropVariantToAdsType(core::mem::transmute(pvariant), core::mem::transmute(dwnumvariant), core::mem::transmute(ppadsvalues), core::mem::transmute(pdwnumvalues)).ok() + PropVariantToAdsType(core::mem::transmute(pvariant), dwnumvariant, core::mem::transmute(ppadsvalues), core::mem::transmute(pdwnumvalues)).ok() } #[inline] pub unsafe fn ReallocADsMem(poldmem: *mut core::ffi::c_void, cbold: u32, cbnew: u32) -> *mut core::ffi::c_void { windows_targets::link!("activeds.dll" "system" fn ReallocADsMem(poldmem : *mut core::ffi::c_void, cbold : u32, cbnew : u32) -> *mut core::ffi::c_void); - ReallocADsMem(core::mem::transmute(poldmem), core::mem::transmute(cbold), core::mem::transmute(cbnew)) + ReallocADsMem(core::mem::transmute(poldmem), cbold, cbnew) } #[inline] pub unsafe fn ReallocADsStr(ppstr: *mut windows_core::PWSTR, pstr: P1) -> super::super::Foundation::BOOL @@ -1242,7 +1242,7 @@ where P5: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn SecurityDescriptorToBinarySD(vvarsecdes : super::super::System::Variant:: VARIANT, ppsecuritydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR, pdwsdlength : *mut u32, pszservername : windows_core::PCWSTR, username : windows_core::PCWSTR, password : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - SecurityDescriptorToBinarySD(core::mem::transmute_copy(vvarsecdes), core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(pdwsdlength), pszservername.param().abi(), username.param().abi(), password.param().abi(), core::mem::transmute(dwflags)).ok() + SecurityDescriptorToBinarySD(core::mem::transmute_copy(vvarsecdes), core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(pdwsdlength), pszservername.param().abi(), username.param().abi(), password.param().abi(), dwflags).ok() } pub const ACTRL_DS_CONTROL_ACCESS: u32 = 256u32; pub const ACTRL_DS_CREATE_CHILD: u32 = 1u32; @@ -3845,11 +3845,11 @@ impl IADs { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: &windows_core::BSTR, vprop: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lncontrolcode), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(vprop)).ok() + (windows_core::Interface::vtable(self).PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, core::mem::transmute_copy(bstrname), core::mem::transmute_copy(vprop)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetInfoEx(&self, vproperties: &super::super::System::Variant::VARIANT, lnreserved: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInfoEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vproperties), core::mem::transmute(lnreserved)).ok() + (windows_core::Interface::vtable(self).GetInfoEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vproperties), lnreserved).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4298,28 +4298,28 @@ impl IADsAccessControlEntry { (windows_core::Interface::vtable(self).AccessMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAccessMask(&self, lnaccessmask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAccessMask)(windows_core::Interface::as_raw(self), core::mem::transmute(lnaccessmask)).ok() + (windows_core::Interface::vtable(self).SetAccessMask)(windows_core::Interface::as_raw(self), lnaccessmask).ok() } pub unsafe fn AceType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AceType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAceType(&self, lnacetype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAceType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnacetype)).ok() + (windows_core::Interface::vtable(self).SetAceType)(windows_core::Interface::as_raw(self), lnacetype).ok() } pub unsafe fn AceFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AceFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAceFlags(&self, lnaceflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAceFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lnaceflags)).ok() + (windows_core::Interface::vtable(self).SetAceFlags)(windows_core::Interface::as_raw(self), lnaceflags).ok() } pub unsafe fn Flags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Flags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, lnflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lnflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), lnflags).ok() } pub unsafe fn ObjectType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4522,14 +4522,14 @@ impl IADsAccessControlList { (windows_core::Interface::vtable(self).AclRevision)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAclRevision(&self, lnaclrevision: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAclRevision)(windows_core::Interface::as_raw(self), core::mem::transmute(lnaclrevision)).ok() + (windows_core::Interface::vtable(self).SetAclRevision)(windows_core::Interface::as_raw(self), lnaclrevision).ok() } pub unsafe fn AceCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AceCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAceCount(&self, lnacecount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAceCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lnacecount)).ok() + (windows_core::Interface::vtable(self).SetAceCount)(windows_core::Interface::as_raw(self), lnacecount).ok() } pub unsafe fn AddAce(&self, paccesscontrolentry: P0) -> windows_core::Result<()> where @@ -4685,7 +4685,7 @@ impl IADsAcl { (windows_core::Interface::vtable(self).Privileges)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivileges(&self, lnprivileges: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivileges)(windows_core::Interface::as_raw(self), core::mem::transmute(lnprivileges)).ok() + (windows_core::Interface::vtable(self).SetPrivileges)(windows_core::Interface::as_raw(self), lnprivileges).ok() } pub unsafe fn CopyAcl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4799,10 +4799,10 @@ impl IADsAggregatee { (windows_core::Interface::vtable(self).DisconnectAsAggregatee)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RelinquishInterface(&self, riid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RelinquishInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).RelinquishInterface)(windows_core::Interface::as_raw(self), riid).ok() } pub unsafe fn RestoreInterface(&self, riid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RestoreInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).RestoreInterface)(windows_core::Interface::as_raw(self), riid).ok() } } #[repr(C)] @@ -4912,7 +4912,7 @@ impl IADsBackLink { (windows_core::Interface::vtable(self).RemoteID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRemoteID(&self, lnremoteid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRemoteID)(windows_core::Interface::as_raw(self), core::mem::transmute(lnremoteid)).ok() + (windows_core::Interface::vtable(self).SetRemoteID)(windows_core::Interface::as_raw(self), lnremoteid).ok() } pub unsafe fn ObjectName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5089,14 +5089,14 @@ impl IADsClass { (windows_core::Interface::vtable(self).Abstract)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAbstract(&self, fabstract: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAbstract)(windows_core::Interface::as_raw(self), core::mem::transmute(fabstract)).ok() + (windows_core::Interface::vtable(self).SetAbstract)(windows_core::Interface::as_raw(self), fabstract).ok() } pub unsafe fn Auxiliary(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Auxiliary)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuxiliary(&self, fauxiliary: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuxiliary)(windows_core::Interface::as_raw(self), core::mem::transmute(fauxiliary)).ok() + (windows_core::Interface::vtable(self).SetAuxiliary)(windows_core::Interface::as_raw(self), fauxiliary).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MandatoryProperties(&self) -> windows_core::Result { @@ -5166,7 +5166,7 @@ impl IADsClass { (windows_core::Interface::vtable(self).Container)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetContainer(&self, fcontainer: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContainer)(windows_core::Interface::as_raw(self), core::mem::transmute(fcontainer)).ok() + (windows_core::Interface::vtable(self).SetContainer)(windows_core::Interface::as_raw(self), fcontainer).ok() } pub unsafe fn HelpFileName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5180,7 +5180,7 @@ impl IADsClass { (windows_core::Interface::vtable(self).HelpFileContext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHelpFileContext(&self, lnhelpfilecontext: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelpFileContext)(windows_core::Interface::as_raw(self), core::mem::transmute(lnhelpfilecontext)).ok() + (windows_core::Interface::vtable(self).SetHelpFileContext)(windows_core::Interface::as_raw(self), lnhelpfilecontext).ok() } pub unsafe fn Qualifiers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6153,7 +6153,7 @@ impl IADsComputerOperations { (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Shutdown(&self, breboot: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(breboot)).ok() + (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), breboot).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6610,7 +6610,7 @@ windows_core::imp::interface_hierarchy!(IADsDeleteOps, windows_core::IUnknown, s #[cfg(feature = "Win32_System_Com")] impl IADsDeleteOps { pub unsafe fn DeleteObject(&self, lnflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteObject)(windows_core::Interface::as_raw(self), core::mem::transmute(lnflags)).ok() + (windows_core::Interface::vtable(self).DeleteObject)(windows_core::Interface::as_raw(self), lnflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6660,56 +6660,56 @@ impl IADsDomain { (windows_core::Interface::vtable(self).MinPasswordLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinPasswordLength(&self, lnminpasswordlength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinPasswordLength)(windows_core::Interface::as_raw(self), core::mem::transmute(lnminpasswordlength)).ok() + (windows_core::Interface::vtable(self).SetMinPasswordLength)(windows_core::Interface::as_raw(self), lnminpasswordlength).ok() } pub unsafe fn MinPasswordAge(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinPasswordAge)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinPasswordAge(&self, lnminpasswordage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinPasswordAge)(windows_core::Interface::as_raw(self), core::mem::transmute(lnminpasswordage)).ok() + (windows_core::Interface::vtable(self).SetMinPasswordAge)(windows_core::Interface::as_raw(self), lnminpasswordage).ok() } pub unsafe fn MaxPasswordAge(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxPasswordAge)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxPasswordAge(&self, lnmaxpasswordage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxPasswordAge)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxpasswordage)).ok() + (windows_core::Interface::vtable(self).SetMaxPasswordAge)(windows_core::Interface::as_raw(self), lnmaxpasswordage).ok() } pub unsafe fn MaxBadPasswordsAllowed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxBadPasswordsAllowed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxBadPasswordsAllowed(&self, lnmaxbadpasswordsallowed: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxBadPasswordsAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxbadpasswordsallowed)).ok() + (windows_core::Interface::vtable(self).SetMaxBadPasswordsAllowed)(windows_core::Interface::as_raw(self), lnmaxbadpasswordsallowed).ok() } pub unsafe fn PasswordHistoryLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PasswordHistoryLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPasswordHistoryLength(&self, lnpasswordhistorylength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPasswordHistoryLength)(windows_core::Interface::as_raw(self), core::mem::transmute(lnpasswordhistorylength)).ok() + (windows_core::Interface::vtable(self).SetPasswordHistoryLength)(windows_core::Interface::as_raw(self), lnpasswordhistorylength).ok() } pub unsafe fn PasswordAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PasswordAttributes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPasswordAttributes(&self, lnpasswordattributes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPasswordAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(lnpasswordattributes)).ok() + (windows_core::Interface::vtable(self).SetPasswordAttributes)(windows_core::Interface::as_raw(self), lnpasswordattributes).ok() } pub unsafe fn AutoUnlockInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoUnlockInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoUnlockInterval(&self, lnautounlockinterval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoUnlockInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(lnautounlockinterval)).ok() + (windows_core::Interface::vtable(self).SetAutoUnlockInterval)(windows_core::Interface::as_raw(self), lnautounlockinterval).ok() } pub unsafe fn LockoutObservationInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LockoutObservationInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLockoutObservationInterval(&self, lnlockoutobservationinterval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLockoutObservationInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(lnlockoutobservationinterval)).ok() + (windows_core::Interface::vtable(self).SetLockoutObservationInterval)(windows_core::Interface::as_raw(self), lnlockoutobservationinterval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6924,7 +6924,7 @@ impl IADsEmail { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, lntype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(lntype)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), lntype).ok() } pub unsafe fn Address(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7000,15 +7000,15 @@ windows_core::imp::interface_hierarchy!(IADsExtension, windows_core::IUnknown); impl IADsExtension { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Operate(&self, dwcode: u32, vardata1: &super::super::System::Variant::VARIANT, vardata2: &super::super::System::Variant::VARIANT, vardata3: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Operate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcode), core::mem::transmute_copy(vardata1), core::mem::transmute_copy(vardata2), core::mem::transmute_copy(vardata3)).ok() + (windows_core::Interface::vtable(self).Operate)(windows_core::Interface::as_raw(self), dwcode, core::mem::transmute_copy(vardata1), core::mem::transmute_copy(vardata2), core::mem::transmute_copy(vardata3)).ok() } pub unsafe fn PrivateGetIDsOfNames(&self, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PrivateGetIDsOfNames)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(rgsznames), core::mem::transmute(cnames), core::mem::transmute(lcid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PrivateGetIDsOfNames)(windows_core::Interface::as_raw(self), riid, rgsznames, cnames, lcid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PrivateInvoke(&self, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Variant::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrivateInvoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dispidmember), core::mem::transmute(riid), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).PrivateInvoke)(windows_core::Interface::as_raw(self), dispidmember, riid, lcid, wflags, pdispparams, core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() } } #[repr(C)] @@ -7186,7 +7186,7 @@ impl IADsFileService { (windows_core::Interface::vtable(self).MaxUserCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxUserCount(&self, lnmaxusercount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxUserCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxusercount)).ok() + (windows_core::Interface::vtable(self).SetMaxUserCount)(windows_core::Interface::as_raw(self), lnmaxusercount).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7358,7 +7358,7 @@ impl IADsFileShare { (windows_core::Interface::vtable(self).MaxUserCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxUserCount(&self, lnmaxusercount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxUserCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxusercount)).ok() + (windows_core::Interface::vtable(self).SetMaxUserCount)(windows_core::Interface::as_raw(self), lnmaxusercount).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7616,7 +7616,7 @@ impl IADsHold { (windows_core::Interface::vtable(self).Amount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAmount(&self, lnamount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAmount)(windows_core::Interface::as_raw(self), core::mem::transmute(lnamount)).ok() + (windows_core::Interface::vtable(self).SetAmount)(windows_core::Interface::as_raw(self), lnamount).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7698,14 +7698,14 @@ impl IADsLargeInteger { (windows_core::Interface::vtable(self).HighPart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighPart(&self, lnhighpart: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighPart)(windows_core::Interface::as_raw(self), core::mem::transmute(lnhighpart)).ok() + (windows_core::Interface::vtable(self).SetHighPart)(windows_core::Interface::as_raw(self), lnhighpart).ok() } pub unsafe fn LowPart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LowPart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLowPart(&self, lnlowpart: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowPart)(windows_core::Interface::as_raw(self), core::mem::transmute(lnlowpart)).ok() + (windows_core::Interface::vtable(self).SetLowPart)(windows_core::Interface::as_raw(self), lnlowpart).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8038,29 +8038,29 @@ windows_core::imp::interface_hierarchy!(IADsNameTranslate, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl IADsNameTranslate { pub unsafe fn SetChaseReferral(&self, lnchasereferral: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChaseReferral)(windows_core::Interface::as_raw(self), core::mem::transmute(lnchasereferral)).ok() + (windows_core::Interface::vtable(self).SetChaseReferral)(windows_core::Interface::as_raw(self), lnchasereferral).ok() } pub unsafe fn Init(&self, lnsettype: i32, bstradspath: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(lnsettype), core::mem::transmute_copy(bstradspath)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), lnsettype, core::mem::transmute_copy(bstradspath)).ok() } pub unsafe fn InitEx(&self, lnsettype: i32, bstradspath: &windows_core::BSTR, bstruserid: &windows_core::BSTR, bstrdomain: &windows_core::BSTR, bstrpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lnsettype), core::mem::transmute_copy(bstradspath), core::mem::transmute_copy(bstruserid), core::mem::transmute_copy(bstrdomain), core::mem::transmute_copy(bstrpassword)).ok() + (windows_core::Interface::vtable(self).InitEx)(windows_core::Interface::as_raw(self), lnsettype, core::mem::transmute_copy(bstradspath), core::mem::transmute_copy(bstruserid), core::mem::transmute_copy(bstrdomain), core::mem::transmute_copy(bstrpassword)).ok() } pub unsafe fn Set(&self, lnsettype: i32, bstradspath: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(lnsettype), core::mem::transmute_copy(bstradspath)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), lnsettype, core::mem::transmute_copy(bstradspath)).ok() } pub unsafe fn Get(&self, lnformattype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(lnformattype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), lnformattype, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetEx(&self, lnformattype: i32, pvar: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lnformattype), core::mem::transmute_copy(pvar)).ok() + (windows_core::Interface::vtable(self).SetEx)(windows_core::Interface::as_raw(self), lnformattype, core::mem::transmute_copy(pvar)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetEx(&self, lnformattype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lnformattype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetEx)(windows_core::Interface::as_raw(self), lnformattype, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8231,7 +8231,7 @@ impl IADsNetAddress { (windows_core::Interface::vtable(self).AddressType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAddressType(&self, lnaddresstype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAddressType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnaddresstype)).ok() + (windows_core::Interface::vtable(self).SetAddressType)(windows_core::Interface::as_raw(self), lnaddresstype).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Address(&self) -> windows_core::Result { @@ -8763,11 +8763,11 @@ impl IADsObjectOptions { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetOption(&self, lnoption: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(lnoption), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), lnoption, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetOption(&self, lnoption: i32, vvalue: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(lnoption), core::mem::transmute_copy(vvalue)).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), lnoption, core::mem::transmute_copy(vvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8902,7 +8902,7 @@ windows_core::imp::interface_hierarchy!(IADsOpenDSObject, windows_core::IUnknown impl IADsOpenDSObject { pub unsafe fn OpenDSObject(&self, lpszdnname: &windows_core::BSTR, lpszusername: &windows_core::BSTR, lpszpassword: &windows_core::BSTR, lnreserved: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenDSObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(lpszdnname), core::mem::transmute_copy(lpszusername), core::mem::transmute_copy(lpszpassword), core::mem::transmute(lnreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenDSObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(lpszdnname), core::mem::transmute_copy(lpszusername), core::mem::transmute_copy(lpszpassword), lnreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8954,7 +8954,7 @@ impl IADsPath { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, lntype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(lntype)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), lntype).ok() } pub unsafe fn VolumeName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9066,14 +9066,14 @@ windows_core::imp::interface_hierarchy!(IADsPathname, windows_core::IUnknown, su #[cfg(feature = "Win32_System_Com")] impl IADsPathname { pub unsafe fn Set(&self, bstradspath: &windows_core::BSTR, lnsettype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstradspath), core::mem::transmute(lnsettype)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstradspath), lnsettype).ok() } pub unsafe fn SetDisplayType(&self, lndisplaytype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), core::mem::transmute(lndisplaytype)).ok() + (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), lndisplaytype).ok() } pub unsafe fn Retrieve(&self, lnformattype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Retrieve)(windows_core::Interface::as_raw(self), core::mem::transmute(lnformattype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Retrieve)(windows_core::Interface::as_raw(self), lnformattype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetNumElements(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9081,7 +9081,7 @@ impl IADsPathname { } pub unsafe fn GetElement(&self, lnelementindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), core::mem::transmute(lnelementindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), lnelementindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn AddLeafElement(&self, bstrleafelement: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddLeafElement)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrleafelement)).ok() @@ -9095,14 +9095,14 @@ impl IADsPathname { } pub unsafe fn GetEscapedElement(&self, lnreserved: i32, bstrinstr: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEscapedElement)(windows_core::Interface::as_raw(self), core::mem::transmute(lnreserved), core::mem::transmute_copy(bstrinstr), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetEscapedElement)(windows_core::Interface::as_raw(self), lnreserved, core::mem::transmute_copy(bstrinstr), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EscapedMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EscapedMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEscapedMode(&self, lnescapedmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEscapedMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lnescapedmode)).ok() + (windows_core::Interface::vtable(self).SetEscapedMode)(windows_core::Interface::as_raw(self), lnescapedmode).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9358,21 +9358,21 @@ impl IADsPrintJob { (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lnpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lnpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lnpriority).ok() } pub unsafe fn StartTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartTime(&self, dastarttime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dastarttime)).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), dastarttime).ok() } pub unsafe fn UntilTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UntilTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUntilTime(&self, dauntiltime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUntilTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dauntiltime)).ok() + (windows_core::Interface::vtable(self).SetUntilTime)(windows_core::Interface::as_raw(self), dauntiltime).ok() } pub unsafe fn Notify(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9638,7 +9638,7 @@ impl IADsPrintJobOperations { (windows_core::Interface::vtable(self).Position)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPosition(&self, lnposition: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lnposition)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), lnposition).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -9801,28 +9801,28 @@ impl IADsPrintQueue { (windows_core::Interface::vtable(self).StartTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartTime(&self, dastarttime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dastarttime)).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), dastarttime).ok() } pub unsafe fn UntilTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UntilTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUntilTime(&self, dauntiltime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUntilTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dauntiltime)).ok() + (windows_core::Interface::vtable(self).SetUntilTime)(windows_core::Interface::as_raw(self), dauntiltime).ok() } pub unsafe fn DefaultJobPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DefaultJobPriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultJobPriority(&self, lndefaultjobpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultJobPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lndefaultjobpriority)).ok() + (windows_core::Interface::vtable(self).SetDefaultJobPriority)(windows_core::Interface::as_raw(self), lndefaultjobpriority).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lnpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lnpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lnpriority).ok() } pub unsafe fn BannerPage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10274,21 +10274,21 @@ impl IADsProperty { (windows_core::Interface::vtable(self).MaxRange)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxRange(&self, lnmaxrange: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxRange)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxrange)).ok() + (windows_core::Interface::vtable(self).SetMaxRange)(windows_core::Interface::as_raw(self), lnmaxrange).ok() } pub unsafe fn MinRange(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinRange)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinRange(&self, lnminrange: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinRange)(windows_core::Interface::as_raw(self), core::mem::transmute(lnminrange)).ok() + (windows_core::Interface::vtable(self).SetMinRange)(windows_core::Interface::as_raw(self), lnminrange).ok() } pub unsafe fn MultiValued(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MultiValued)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMultiValued(&self, fmultivalued: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMultiValued)(windows_core::Interface::as_raw(self), core::mem::transmute(fmultivalued)).ok() + (windows_core::Interface::vtable(self).SetMultiValued)(windows_core::Interface::as_raw(self), fmultivalued).ok() } pub unsafe fn Qualifiers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10457,14 +10457,14 @@ impl IADsPropertyEntry { (windows_core::Interface::vtable(self).ADsType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetADsType(&self, lnadstype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetADsType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnadstype)).ok() + (windows_core::Interface::vtable(self).SetADsType)(windows_core::Interface::as_raw(self), lnadstype).ok() } pub unsafe fn ControlCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ControlCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetControlCode(&self, lncontrolcode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlCode)(windows_core::Interface::as_raw(self), core::mem::transmute(lncontrolcode)).ok() + (windows_core::Interface::vtable(self).SetControlCode)(windows_core::Interface::as_raw(self), lncontrolcode).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Values(&self) -> windows_core::Result { @@ -10612,7 +10612,7 @@ impl IADsPropertyList { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(pvariant)) } pub unsafe fn Skip(&self, celements: i32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celements)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celements) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -10625,7 +10625,7 @@ impl IADsPropertyList { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPropertyItem(&self, bstrname: &windows_core::BSTR, lnadstype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(lnadstype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), lnadstype, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PutPropertyItem(&self, vardata: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -10777,7 +10777,7 @@ impl IADsPropertyValue { (windows_core::Interface::vtable(self).ADsType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetADsType(&self, lnadstype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetADsType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnadstype)).ok() + (windows_core::Interface::vtable(self).SetADsType)(windows_core::Interface::as_raw(self), lnadstype).ok() } pub unsafe fn DNString(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10819,14 +10819,14 @@ impl IADsPropertyValue { (windows_core::Interface::vtable(self).Boolean)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBoolean(&self, lnboolean: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoolean)(windows_core::Interface::as_raw(self), core::mem::transmute(lnboolean)).ok() + (windows_core::Interface::vtable(self).SetBoolean)(windows_core::Interface::as_raw(self), lnboolean).ok() } pub unsafe fn Integer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Integer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInteger(&self, lninteger: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInteger)(windows_core::Interface::as_raw(self), core::mem::transmute(lninteger)).ok() + (windows_core::Interface::vtable(self).SetInteger)(windows_core::Interface::as_raw(self), lninteger).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn OctetString(&self) -> windows_core::Result { @@ -10862,7 +10862,7 @@ impl IADsPropertyValue { (windows_core::Interface::vtable(self).UTCTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUTCTime(&self, dautctime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUTCTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dautctime)).ok() + (windows_core::Interface::vtable(self).SetUTCTime)(windows_core::Interface::as_raw(self), dautctime).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11158,7 +11158,7 @@ impl IADsPropertyValue2 { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PutObjectProperty(&self, lnadstype: i32, vprop: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutObjectProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lnadstype), core::mem::transmute_copy(vprop)).ok() + (windows_core::Interface::vtable(self).PutObjectProperty)(windows_core::Interface::as_raw(self), lnadstype, core::mem::transmute_copy(vprop)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11227,21 +11227,21 @@ impl IADsReplicaPointer { (windows_core::Interface::vtable(self).ReplicaType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReplicaType(&self, lnreplicatype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReplicaType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnreplicatype)).ok() + (windows_core::Interface::vtable(self).SetReplicaType)(windows_core::Interface::as_raw(self), lnreplicatype).ok() } pub unsafe fn ReplicaNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReplicaNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReplicaNumber(&self, lnreplicanumber: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReplicaNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(lnreplicanumber)).ok() + (windows_core::Interface::vtable(self).SetReplicaNumber)(windows_core::Interface::as_raw(self), lnreplicanumber).ok() } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCount(&self, lncount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(lncount)).ok() + (windows_core::Interface::vtable(self).SetCount)(windows_core::Interface::as_raw(self), lncount).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ReplicaAddressHints(&self) -> windows_core::Result { @@ -11501,14 +11501,14 @@ impl IADsSecurityDescriptor { (windows_core::Interface::vtable(self).Revision)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRevision(&self, lnrevision: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRevision)(windows_core::Interface::as_raw(self), core::mem::transmute(lnrevision)).ok() + (windows_core::Interface::vtable(self).SetRevision)(windows_core::Interface::as_raw(self), lnrevision).ok() } pub unsafe fn Control(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Control)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetControl(&self, lncontrol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControl)(windows_core::Interface::as_raw(self), core::mem::transmute(lncontrol)).ok() + (windows_core::Interface::vtable(self).SetControl)(windows_core::Interface::as_raw(self), lncontrol).ok() } pub unsafe fn Owner(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11522,7 +11522,7 @@ impl IADsSecurityDescriptor { (windows_core::Interface::vtable(self).OwnerDefaulted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOwnerDefaulted(&self, fownerdefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOwnerDefaulted)(windows_core::Interface::as_raw(self), core::mem::transmute(fownerdefaulted)).ok() + (windows_core::Interface::vtable(self).SetOwnerDefaulted)(windows_core::Interface::as_raw(self), fownerdefaulted).ok() } pub unsafe fn Group(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11536,7 +11536,7 @@ impl IADsSecurityDescriptor { (windows_core::Interface::vtable(self).GroupDefaulted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGroupDefaulted(&self, fgroupdefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupDefaulted)(windows_core::Interface::as_raw(self), core::mem::transmute(fgroupdefaulted)).ok() + (windows_core::Interface::vtable(self).SetGroupDefaulted)(windows_core::Interface::as_raw(self), fgroupdefaulted).ok() } pub unsafe fn DiscretionaryAcl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11553,7 +11553,7 @@ impl IADsSecurityDescriptor { (windows_core::Interface::vtable(self).DaclDefaulted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDaclDefaulted(&self, fdacldefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaclDefaulted)(windows_core::Interface::as_raw(self), core::mem::transmute(fdacldefaulted)).ok() + (windows_core::Interface::vtable(self).SetDaclDefaulted)(windows_core::Interface::as_raw(self), fdacldefaulted).ok() } pub unsafe fn SystemAcl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11570,7 +11570,7 @@ impl IADsSecurityDescriptor { (windows_core::Interface::vtable(self).SaclDefaulted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSaclDefaulted(&self, fsacldefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSaclDefaulted)(windows_core::Interface::as_raw(self), core::mem::transmute(fsacldefaulted)).ok() + (windows_core::Interface::vtable(self).SetSaclDefaulted)(windows_core::Interface::as_raw(self), fsacldefaulted).ok() } pub unsafe fn CopySecurityDescriptor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11827,23 +11827,23 @@ impl IADsSecurityUtility { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetSecurityDescriptor(&self, varpath: &super::super::System::Variant::VARIANT, lpathformat: i32, lformat: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varpath), core::mem::transmute(lpathformat), core::mem::transmute(lformat), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varpath), lpathformat, lformat, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetSecurityDescriptor(&self, varpath: &super::super::System::Variant::VARIANT, lpathformat: i32, vardata: &super::super::System::Variant::VARIANT, ldataformat: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varpath), core::mem::transmute(lpathformat), core::mem::transmute_copy(vardata), core::mem::transmute(ldataformat)).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varpath), lpathformat, core::mem::transmute_copy(vardata), ldataformat).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ConvertSecurityDescriptor(&self, varsd: &super::super::System::Variant::VARIANT, ldataformat: i32, loutformat: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varsd), core::mem::transmute(ldataformat), core::mem::transmute(loutformat), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ConvertSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varsd), ldataformat, loutformat, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SecurityMask(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SecurityMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSecurityMask(&self, lnsecuritymask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurityMask)(windows_core::Interface::as_raw(self), core::mem::transmute(lnsecuritymask)).ok() + (windows_core::Interface::vtable(self).SetSecurityMask)(windows_core::Interface::as_raw(self), lnsecuritymask).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11968,14 +11968,14 @@ impl IADsService { (windows_core::Interface::vtable(self).ServiceType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetServiceType(&self, lnservicetype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetServiceType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnservicetype)).ok() + (windows_core::Interface::vtable(self).SetServiceType)(windows_core::Interface::as_raw(self), lnservicetype).ok() } pub unsafe fn StartType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartType(&self, lnstarttype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnstarttype)).ok() + (windows_core::Interface::vtable(self).SetStartType)(windows_core::Interface::as_raw(self), lnstarttype).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11996,7 +11996,7 @@ impl IADsService { (windows_core::Interface::vtable(self).ErrorControl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetErrorControl(&self, lnerrorcontrol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(lnerrorcontrol)).ok() + (windows_core::Interface::vtable(self).SetErrorControl)(windows_core::Interface::as_raw(self), lnerrorcontrol).ok() } pub unsafe fn LoadOrderGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12553,7 +12553,7 @@ impl IADsSyntax { (windows_core::Interface::vtable(self).OleAutoDataType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOleAutoDataType(&self, lnoleautodatatype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOleAutoDataType)(windows_core::Interface::as_raw(self), core::mem::transmute(lnoleautodatatype)).ok() + (windows_core::Interface::vtable(self).SetOleAutoDataType)(windows_core::Interface::as_raw(self), lnoleautodatatype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12615,14 +12615,14 @@ impl IADsTimestamp { (windows_core::Interface::vtable(self).WholeSeconds)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWholeSeconds(&self, lnwholeseconds: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWholeSeconds)(windows_core::Interface::as_raw(self), core::mem::transmute(lnwholeseconds)).ok() + (windows_core::Interface::vtable(self).SetWholeSeconds)(windows_core::Interface::as_raw(self), lnwholeseconds).ok() } pub unsafe fn EventID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventID(&self, lneventid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventID)(windows_core::Interface::as_raw(self), core::mem::transmute(lneventid)).ok() + (windows_core::Interface::vtable(self).SetEventID)(windows_core::Interface::as_raw(self), lneventid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12711,14 +12711,14 @@ impl IADsTypedName { (windows_core::Interface::vtable(self).Level)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLevel(&self, lnlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lnlevel)).ok() + (windows_core::Interface::vtable(self).SetLevel)(windows_core::Interface::as_raw(self), lnlevel).ok() } pub unsafe fn Interval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Interval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterval(&self, lninterval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(lninterval)).ok() + (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), lninterval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13009,35 +13009,35 @@ impl IADsUser { (windows_core::Interface::vtable(self).AccountDisabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAccountDisabled(&self, faccountdisabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAccountDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(faccountdisabled)).ok() + (windows_core::Interface::vtable(self).SetAccountDisabled)(windows_core::Interface::as_raw(self), faccountdisabled).ok() } pub unsafe fn AccountExpirationDate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AccountExpirationDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAccountExpirationDate(&self, daaccountexpirationdate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAccountExpirationDate)(windows_core::Interface::as_raw(self), core::mem::transmute(daaccountexpirationdate)).ok() + (windows_core::Interface::vtable(self).SetAccountExpirationDate)(windows_core::Interface::as_raw(self), daaccountexpirationdate).ok() } pub unsafe fn GraceLoginsAllowed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GraceLoginsAllowed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGraceLoginsAllowed(&self, lngraceloginsallowed: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGraceLoginsAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(lngraceloginsallowed)).ok() + (windows_core::Interface::vtable(self).SetGraceLoginsAllowed)(windows_core::Interface::as_raw(self), lngraceloginsallowed).ok() } pub unsafe fn GraceLoginsRemaining(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GraceLoginsRemaining)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGraceLoginsRemaining(&self, lngraceloginsremaining: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGraceLoginsRemaining)(windows_core::Interface::as_raw(self), core::mem::transmute(lngraceloginsremaining)).ok() + (windows_core::Interface::vtable(self).SetGraceLoginsRemaining)(windows_core::Interface::as_raw(self), lngraceloginsremaining).ok() } pub unsafe fn IsAccountLocked(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAccountLocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsAccountLocked(&self, fisaccountlocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsAccountLocked)(windows_core::Interface::as_raw(self), core::mem::transmute(fisaccountlocked)).ok() + (windows_core::Interface::vtable(self).SetIsAccountLocked)(windows_core::Interface::as_raw(self), fisaccountlocked).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn LoginHours(&self) -> windows_core::Result { @@ -13062,42 +13062,42 @@ impl IADsUser { (windows_core::Interface::vtable(self).MaxLogins)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxLogins(&self, lnmaxlogins: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxLogins)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxlogins)).ok() + (windows_core::Interface::vtable(self).SetMaxLogins)(windows_core::Interface::as_raw(self), lnmaxlogins).ok() } pub unsafe fn MaxStorage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxStorage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxStorage(&self, lnmaxstorage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(lnmaxstorage)).ok() + (windows_core::Interface::vtable(self).SetMaxStorage)(windows_core::Interface::as_raw(self), lnmaxstorage).ok() } pub unsafe fn PasswordExpirationDate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PasswordExpirationDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPasswordExpirationDate(&self, dapasswordexpirationdate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPasswordExpirationDate)(windows_core::Interface::as_raw(self), core::mem::transmute(dapasswordexpirationdate)).ok() + (windows_core::Interface::vtable(self).SetPasswordExpirationDate)(windows_core::Interface::as_raw(self), dapasswordexpirationdate).ok() } pub unsafe fn PasswordMinimumLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PasswordMinimumLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPasswordMinimumLength(&self, lnpasswordminimumlength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPasswordMinimumLength)(windows_core::Interface::as_raw(self), core::mem::transmute(lnpasswordminimumlength)).ok() + (windows_core::Interface::vtable(self).SetPasswordMinimumLength)(windows_core::Interface::as_raw(self), lnpasswordminimumlength).ok() } pub unsafe fn PasswordRequired(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PasswordRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPasswordRequired(&self, fpasswordrequired: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPasswordRequired)(windows_core::Interface::as_raw(self), core::mem::transmute(fpasswordrequired)).ok() + (windows_core::Interface::vtable(self).SetPasswordRequired)(windows_core::Interface::as_raw(self), fpasswordrequired).ok() } pub unsafe fn RequireUniquePassword(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RequireUniquePassword)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRequireUniquePassword(&self, frequireuniquepassword: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRequireUniquePassword)(windows_core::Interface::as_raw(self), core::mem::transmute(frequireuniquepassword)).ok() + (windows_core::Interface::vtable(self).SetRequireUniquePassword)(windows_core::Interface::as_raw(self), frequireuniquepassword).ok() } pub unsafe fn EmailAddress(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14295,7 +14295,7 @@ windows_core::imp::interface_hierarchy!(ICommonQuery, windows_core::IUnknown); impl ICommonQuery { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn OpenQueryWindow(&self, hwndparent: super::super::Foundation::HWND, pquerywnd: *mut OPENQUERYWINDOW, ppdataobject: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenQueryWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(pquerywnd), core::mem::transmute(ppdataobject)).ok() + (windows_core::Interface::vtable(self).OpenQueryWindow)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute(pquerywnd), core::mem::transmute(ppdataobject)).ok() } } #[repr(C)] @@ -14333,11 +14333,11 @@ impl IDirectoryObject { (windows_core::Interface::vtable(self).GetObjectInformation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetObjectAttributes(&self, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32, ppattributeentries: *mut *mut ADS_ATTR_INFO, pdwnumattributesreturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributenames), core::mem::transmute(dwnumberattributes), core::mem::transmute(ppattributeentries), core::mem::transmute(pdwnumattributesreturned)).ok() + (windows_core::Interface::vtable(self).GetObjectAttributes)(windows_core::Interface::as_raw(self), pattributenames, dwnumberattributes, core::mem::transmute(ppattributeentries), core::mem::transmute(pdwnumattributesreturned)).ok() } pub unsafe fn SetObjectAttributes(&self, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetObjectAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributeentries), core::mem::transmute(dwnumattributes), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetObjectAttributes)(windows_core::Interface::as_raw(self), pattributeentries, dwnumattributes, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDSObject(&self, pszrdnname: P0, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32) -> windows_core::Result @@ -14345,7 +14345,7 @@ impl IDirectoryObject { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDSObject)(windows_core::Interface::as_raw(self), pszrdnname.param().abi(), core::mem::transmute(pattributeentries), core::mem::transmute(dwnumattributes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDSObject)(windows_core::Interface::as_raw(self), pszrdnname.param().abi(), pattributeentries, dwnumattributes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteDSObject(&self, pszrdnname: P0) -> windows_core::Result<()> where @@ -14434,19 +14434,19 @@ windows_core::imp::define_interface!(IDirectorySchemaMgmt, IDirectorySchemaMgmt_ windows_core::imp::interface_hierarchy!(IDirectorySchemaMgmt, windows_core::IUnknown); impl IDirectorySchemaMgmt { pub unsafe fn EnumAttributes(&self, ppszattrnames: *const windows_core::PCWSTR, dwnumattributes: u32, ppattrdefinition: *const *const ADS_ATTR_DEF, pdwnumattributes: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszattrnames), core::mem::transmute(dwnumattributes), core::mem::transmute(ppattrdefinition), core::mem::transmute(pdwnumattributes)).ok() + (windows_core::Interface::vtable(self).EnumAttributes)(windows_core::Interface::as_raw(self), ppszattrnames, dwnumattributes, ppattrdefinition, pdwnumattributes).ok() } pub unsafe fn CreateAttributeDefinition(&self, pszattributename: P0, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), core::mem::transmute(pattributedefinition)).ok() + (windows_core::Interface::vtable(self).CreateAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), pattributedefinition).ok() } pub unsafe fn WriteAttributeDefinition(&self, pszattributename: P0, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), core::mem::transmute(pattributedefinition)).ok() + (windows_core::Interface::vtable(self).WriteAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), pattributedefinition).ok() } pub unsafe fn DeleteAttributeDefinition(&self, pszattributename: P0) -> windows_core::Result<()> where @@ -14455,19 +14455,19 @@ impl IDirectorySchemaMgmt { (windows_core::Interface::vtable(self).DeleteAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.param().abi()).ok() } pub unsafe fn EnumClasses(&self, ppszclassnames: *const windows_core::PCWSTR, dwnumclasses: u32, ppclassdefinition: *const *const ADS_CLASS_DEF, pdwnumclasses: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumClasses)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszclassnames), core::mem::transmute(dwnumclasses), core::mem::transmute(ppclassdefinition), core::mem::transmute(pdwnumclasses)).ok() + (windows_core::Interface::vtable(self).EnumClasses)(windows_core::Interface::as_raw(self), ppszclassnames, dwnumclasses, ppclassdefinition, pdwnumclasses).ok() } pub unsafe fn WriteClassDefinition(&self, pszclassname: P0, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.param().abi(), core::mem::transmute(pclassdefinition)).ok() + (windows_core::Interface::vtable(self).WriteClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.param().abi(), pclassdefinition).ok() } pub unsafe fn CreateClassDefinition(&self, pszclassname: P0, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.param().abi(), core::mem::transmute(pclassdefinition)).ok() + (windows_core::Interface::vtable(self).CreateClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.param().abi(), pclassdefinition).ok() } pub unsafe fn DeleteClassDefinition(&self, pszclassname: P0) -> windows_core::Result<()> where @@ -14553,41 +14553,41 @@ windows_core::imp::define_interface!(IDirectorySearch, IDirectorySearch_Vtbl, 0x windows_core::imp::interface_hierarchy!(IDirectorySearch, windows_core::IUnknown); impl IDirectorySearch { pub unsafe fn SetSearchPreference(&self, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSearchPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(psearchprefs), core::mem::transmute(dwnumprefs)).ok() + (windows_core::Interface::vtable(self).SetSearchPreference)(windows_core::Interface::as_raw(self), psearchprefs, dwnumprefs).ok() } pub unsafe fn ExecuteSearch(&self, pszsearchfilter: P0, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pszsearchfilter.param().abi(), core::mem::transmute(pattributenames), core::mem::transmute(dwnumberattributes), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pszsearchfilter.param().abi(), pattributenames, dwnumberattributes, &mut result__).map(|| result__) } pub unsafe fn AbandonSearch(&self, phsearchresult: ADS_SEARCH_HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AbandonSearch)(windows_core::Interface::as_raw(self), core::mem::transmute(phsearchresult)).ok() + (windows_core::Interface::vtable(self).AbandonSearch)(windows_core::Interface::as_raw(self), phsearchresult).ok() } pub unsafe fn GetFirstRow(&self, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).GetFirstRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hsearchresult)) + (windows_core::Interface::vtable(self).GetFirstRow)(windows_core::Interface::as_raw(self), hsearchresult) } pub unsafe fn GetNextRow(&self, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).GetNextRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hsearchresult)) + (windows_core::Interface::vtable(self).GetNextRow)(windows_core::Interface::as_raw(self), hsearchresult) } pub unsafe fn GetPreviousRow(&self, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).GetPreviousRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hsearchresult)) + (windows_core::Interface::vtable(self).GetPreviousRow)(windows_core::Interface::as_raw(self), hsearchresult) } pub unsafe fn GetNextColumnName(&self, hsearchhandle: ADS_SEARCH_HANDLE, ppszcolumnname: *mut windows_core::PWSTR) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).GetNextColumnName)(windows_core::Interface::as_raw(self), core::mem::transmute(hsearchhandle), core::mem::transmute(ppszcolumnname)) + (windows_core::Interface::vtable(self).GetNextColumnName)(windows_core::Interface::as_raw(self), hsearchhandle, core::mem::transmute(ppszcolumnname)) } pub unsafe fn GetColumn(&self, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: P1, psearchcolumn: *mut ADS_SEARCH_COLUMN) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(hsearchresult), szcolumnname.param().abi(), core::mem::transmute(psearchcolumn)).ok() + (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), hsearchresult, szcolumnname.param().abi(), core::mem::transmute(psearchcolumn)).ok() } pub unsafe fn FreeColumn(&self, psearchcolumn: *const ADS_SEARCH_COLUMN) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(psearchcolumn)).ok() + (windows_core::Interface::vtable(self).FreeColumn)(windows_core::Interface::as_raw(self), psearchcolumn).ok() } pub unsafe fn CloseSearchHandle(&self, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseSearchHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hsearchresult)).ok() + (windows_core::Interface::vtable(self).CloseSearchHandle)(windows_core::Interface::as_raw(self), hsearchresult).ok() } } #[repr(C)] @@ -14698,7 +14698,7 @@ impl IDsAdminCreateObj { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateModal(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateModal)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateModal)(windows_core::Interface::as_raw(self), hwndparent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -14751,7 +14751,7 @@ windows_core::imp::define_interface!(IDsAdminNewObj, IDsAdminNewObj_Vtbl, 0xf257 windows_core::imp::interface_hierarchy!(IDsAdminNewObj, windows_core::IUnknown); impl IDsAdminNewObj { pub unsafe fn SetButtons(&self, ncurrindex: u32, bvalid: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetButtons)(windows_core::Interface::as_raw(self), core::mem::transmute(ncurrindex), bvalid.into()).ok() + (windows_core::Interface::vtable(self).SetButtons)(windows_core::Interface::as_raw(self), ncurrindex, bvalid.into()).ok() } pub unsafe fn GetPageCounts(&self, pntotal: *mut i32, pnstartindex: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPageCounts)(windows_core::Interface::as_raw(self), core::mem::transmute(pntotal), core::mem::transmute(pnstartindex)).ok() @@ -14803,7 +14803,7 @@ impl IDsAdminNewObjExt { } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, lpfnaddpage: super::super::UI::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), core::mem::transmute(lpfnaddpage), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), lpfnaddpage, lparam).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetObject(&self, padsobj: P0) -> windows_core::Result<()> @@ -14813,10 +14813,10 @@ impl IDsAdminNewObjExt { (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), padsobj.param().abi()).ok() } pub unsafe fn WriteData(&self, hwnd: super::super::Foundation::HWND, ucontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(ucontext)).ok() + (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), hwnd, ucontext).ok() } pub unsafe fn OnError(&self, hwnd: super::super::Foundation::HWND, hr: windows_core::HRESULT, ucontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hr), core::mem::transmute(ucontext)).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hwnd, hr, ucontext).ok() } pub unsafe fn GetSummaryInfo(&self, pbstrtext: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSummaryInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrtext)).ok() @@ -14949,10 +14949,10 @@ impl IDsAdminNotifyHandler { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), core::mem::transmute(uevent), parg1.param().abi(), parg2.param().abi(), core::mem::transmute(puflags), core::mem::transmute(pbstr)).ok() + (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), uevent, parg1.param().abi(), parg2.param().abi(), core::mem::transmute(puflags), core::mem::transmute(pbstr)).ok() } pub unsafe fn Notify(&self, nitem: u32, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(nitem), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), nitem, uflags).ok() } pub unsafe fn End(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self)).ok() @@ -15016,10 +15016,10 @@ windows_core::imp::define_interface!(IDsBrowseDomainTree, IDsBrowseDomainTree_Vt windows_core::imp::interface_hierarchy!(IDsBrowseDomainTree, windows_core::IUnknown); impl IDsBrowseDomainTree { pub unsafe fn BrowseTo(&self, hwndparent: super::super::Foundation::HWND, ppsztargetpath: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BrowseTo)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(ppsztargetpath), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).BrowseTo)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute(ppsztargetpath), dwflags).ok() } pub unsafe fn GetDomains(&self, ppdomaintree: *mut *mut DOMAIN_TREE, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDomains)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdomaintree), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetDomains)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdomaintree), dwflags).ok() } pub unsafe fn FreeDomains(&self, ppdomaintree: *mut *mut DOMAIN_TREE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FreeDomains)(windows_core::Interface::as_raw(self), core::mem::transmute(ppdomaintree)).ok() @@ -15097,29 +15097,29 @@ impl IDsDisplaySpecifier { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), pszserver.param().abi(), pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), pszserver.param().abi(), pszusername.param().abi(), pszpassword.param().abi(), dwflags).ok() } pub unsafe fn SetLanguageID(&self, langid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLanguageID)(windows_core::Interface::as_raw(self), core::mem::transmute(langid)).ok() + (windows_core::Interface::vtable(self).SetLanguageID)(windows_core::Interface::as_raw(self), langid).ok() } pub unsafe fn GetDisplaySpecifier(&self, pszobjectclass: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDisplaySpecifier)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetDisplaySpecifier)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn GetIconLocation(&self, pszobjectclass: P0, dwflags: u32, pszbuffer: &mut [u16], presid: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), core::mem::transmute(presid)).ok() + (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), dwflags, core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), core::mem::transmute(presid)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetIcon(&self, pszobjectclass: P0, dwflags: u32, cxicon: i32, cyicon: i32) -> super::super::UI::WindowsAndMessaging::HICON where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(cxicon), core::mem::transmute(cyicon)) + (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), dwflags, cxicon, cyicon) } pub unsafe fn GetFriendlyClassName(&self, pszobjectclass: P0, pszbuffer: &mut [u16]) -> windows_core::Result<()> where @@ -15139,7 +15139,7 @@ impl IDsDisplaySpecifier { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsClassContainer)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), pszadspath.param().abi(), core::mem::transmute(dwflags)) + (windows_core::Interface::vtable(self).IsClassContainer)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), pszadspath.param().abi(), dwflags) } pub unsafe fn GetClassCreationInfo(&self, pszobjectclass: P0, ppdscci: *mut *mut DSCLASSCREATIONINFO) -> windows_core::Result<()> where @@ -15151,7 +15151,7 @@ impl IDsDisplaySpecifier { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumClassAttributes)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), core::mem::transmute(pcbenum), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).EnumClassAttributes)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), pcbenum, lparam).ok() } pub unsafe fn GetAttributeADsType(&self, pszattributename: P0) -> ADSTYPE where @@ -15269,7 +15269,7 @@ impl IDsObjectPicker { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InvokeDialog(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InvokeDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InvokeDialog)(windows_core::Interface::as_raw(self), hwndparent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15382,14 +15382,14 @@ impl IPersistQuery { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadString)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(pbuffer), core::mem::transmute(cchbuffer)).ok() + (windows_core::Interface::vtable(self).ReadString)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(pbuffer), cchbuffer).ok() } pub unsafe fn WriteInt(&self, psection: P0, pvaluename: P1, value: i32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteInt)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).WriteInt)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), value).ok() } pub unsafe fn ReadInt(&self, psection: P0, pvaluename: P1, pvalue: *mut i32) -> windows_core::Result<()> where @@ -15403,14 +15403,14 @@ impl IPersistQuery { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStruct)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(pstruct), core::mem::transmute(cbstruct)).ok() + (windows_core::Interface::vtable(self).WriteStruct)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(pstruct), cbstruct).ok() } pub unsafe fn ReadStruct(&self, psection: P0, pvaluename: P1, pstruct: *mut core::ffi::c_void, cbstruct: u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadStruct)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(pstruct), core::mem::transmute(cbstruct)).ok() + (windows_core::Interface::vtable(self).ReadStruct)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), core::mem::transmute(pstruct), cbstruct).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -15490,7 +15490,7 @@ windows_core::imp::define_interface!(IPrivateDispatch, IPrivateDispatch_Vtbl, 0x windows_core::imp::interface_hierarchy!(IPrivateDispatch, windows_core::IUnknown); impl IPrivateDispatch { pub unsafe fn ADSIInitializeDispatchManager(&self, dwextensionid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ADSIInitializeDispatchManager)(windows_core::Interface::as_raw(self), core::mem::transmute(dwextensionid)).ok() + (windows_core::Interface::vtable(self).ADSIInitializeDispatchManager)(windows_core::Interface::as_raw(self), dwextensionid).ok() } pub unsafe fn ADSIGetTypeInfoCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15499,15 +15499,15 @@ impl IPrivateDispatch { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ADSIGetTypeInfo(&self, itinfo: u32, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ADSIGetTypeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(itinfo), core::mem::transmute(lcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ADSIGetTypeInfo)(windows_core::Interface::as_raw(self), itinfo, lcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ADSIGetIDsOfNames(&self, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ADSIGetIDsOfNames)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(rgsznames), core::mem::transmute(cnames), core::mem::transmute(lcid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ADSIGetIDsOfNames)(windows_core::Interface::as_raw(self), riid, rgsznames, cnames, lcid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ADSIInvoke(&self, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Variant::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ADSIInvoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dispidmember), core::mem::transmute(riid), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).ADSIInvoke)(windows_core::Interface::as_raw(self), dispidmember, riid, lcid, wflags, pdispparams, core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() } } #[repr(C)] @@ -15593,7 +15593,7 @@ windows_core::imp::define_interface!(IPrivateUnknown, IPrivateUnknown_Vtbl, 0x89 windows_core::imp::interface_hierarchy!(IPrivateUnknown, windows_core::IUnknown); impl IPrivateUnknown { pub unsafe fn ADSIInitializeObject(&self, lpszusername: &windows_core::BSTR, lpszpassword: &windows_core::BSTR, lnreserved: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ADSIInitializeObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(lpszusername), core::mem::transmute_copy(lpszpassword), core::mem::transmute(lnreserved)).ok() + (windows_core::Interface::vtable(self).ADSIInitializeObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(lpszusername), core::mem::transmute_copy(lpszpassword), lnreserved).ok() } pub unsafe fn ADSIReleaseObject(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ADSIReleaseObject)(windows_core::Interface::as_raw(self)).ok() @@ -15635,15 +15635,15 @@ windows_core::imp::interface_hierarchy!(IQueryForm, windows_core::IUnknown); impl IQueryForm { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Initialize(&self, hkform: super::super::System::Registry::HKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hkform)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hkform).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn AddForms(&self, paddformsproc: LPCQADDFORMSPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddForms)(windows_core::Interface::as_raw(self), core::mem::transmute(paddformsproc), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).AddForms)(windows_core::Interface::as_raw(self), paddformsproc, lparam).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn AddPages(&self, paddpagesproc: LPCQADDPAGESPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), core::mem::transmute(paddpagesproc), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), paddpagesproc, lparam).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs index b9fc7ddcc1..fdba7bfe7f 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs @@ -24,7 +24,7 @@ impl AsyncIBackgroundCopyCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).Begin_JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), dwreserved).ok() } pub unsafe fn Finish_JobModification(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_JobModification)(windows_core::Interface::as_raw(self)).ok() @@ -559,7 +559,7 @@ impl IBITSExtensionSetup { } pub unsafe fn GetCleanupTask(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCleanupTask)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCleanupTask)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -692,7 +692,7 @@ impl IBackgroundCopyCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), dwreserved).ok() } } #[repr(C)] @@ -741,21 +741,21 @@ impl IBackgroundCopyCallback1 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStatus)(windows_core::Interface::as_raw(self), pgroup.param().abi(), pjob.param().abi(), core::mem::transmute(dwfileindex), core::mem::transmute(dwstatus), core::mem::transmute(dwnumofretries), core::mem::transmute(dwwin32result), core::mem::transmute(dwtransportresult)).ok() + (windows_core::Interface::vtable(self).OnStatus)(windows_core::Interface::as_raw(self), pgroup.param().abi(), pjob.param().abi(), dwfileindex, dwstatus, dwnumofretries, dwwin32result, dwtransportresult).ok() } pub unsafe fn OnProgress(&self, progresstype: u32, pgroup: P1, pjob: P2, dwfileindex: u32, dwprogressvalue: u32) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(progresstype), pgroup.param().abi(), pjob.param().abi(), core::mem::transmute(dwfileindex), core::mem::transmute(dwprogressvalue)).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), progresstype, pgroup.param().abi(), pjob.param().abi(), dwfileindex, dwprogressvalue).ok() } pub unsafe fn OnProgressEx(&self, progresstype: u32, pgroup: P1, pjob: P2, dwfileindex: u32, dwprogressvalue: u32, pbyte: &[u8]) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgressEx)(windows_core::Interface::as_raw(self), core::mem::transmute(progresstype), pgroup.param().abi(), pjob.param().abi(), core::mem::transmute(dwfileindex), core::mem::transmute(dwprogressvalue), pbyte.len().try_into().unwrap(), core::mem::transmute(pbyte.as_ptr())).ok() + (windows_core::Interface::vtable(self).OnProgressEx)(windows_core::Interface::as_raw(self), progresstype, pgroup.param().abi(), pjob.param().abi(), dwfileindex, dwprogressvalue, pbyte.len().try_into().unwrap(), core::mem::transmute(pbyte.as_ptr())).ok() } } #[repr(C)] @@ -884,11 +884,11 @@ impl IBackgroundCopyError { } pub unsafe fn GetErrorDescription(&self, languageid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(languageid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), languageid, &mut result__).map(|| result__) } pub unsafe fn GetErrorContextDescription(&self, languageid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorContextDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(languageid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetErrorContextDescription)(windows_core::Interface::as_raw(self), languageid, &mut result__).map(|| result__) } pub unsafe fn GetProtocol(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1218,11 +1218,11 @@ impl core::ops::Deref for IBackgroundCopyFile5 { windows_core::imp::interface_hierarchy!(IBackgroundCopyFile5, windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3, IBackgroundCopyFile4); impl IBackgroundCopyFile5 { pub unsafe fn SetProperty(&self, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: BITS_FILE_PROPERTY_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(propertyvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(propertyvalue)).ok() } pub unsafe fn GetProperty(&self, propertyid: BITS_FILE_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| result__) } } #[repr(C)] @@ -1272,7 +1272,7 @@ impl core::ops::Deref for IBackgroundCopyFile6 { windows_core::imp::interface_hierarchy!(IBackgroundCopyFile6, windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3, IBackgroundCopyFile4, IBackgroundCopyFile5); impl IBackgroundCopyFile6 { pub unsafe fn UpdateDownloadPosition(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateDownloadPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).UpdateDownloadPosition)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn RequestFileRanges(&self, ranges: &[BG_FILE_RANGE]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestFileRanges)(windows_core::Interface::as_raw(self), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() @@ -1325,15 +1325,15 @@ impl IBackgroundCopyGroup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProp(&self, propid: GROUPPROP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProp)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProp)(windows_core::Interface::as_raw(self), propid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProp(&self, propid: GROUPPROP, pvarval: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProp)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetProp)(windows_core::Interface::as_raw(self), propid, core::mem::transmute(pvarval)).ok() } pub unsafe fn GetProgress(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProgress)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn GetStatus(&self, pdwstatus: *mut u32, pdwjobindex: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatus), core::mem::transmute(pdwjobindex)).ok() @@ -1365,20 +1365,20 @@ impl IBackgroundCopyGroup { } pub unsafe fn EnumJobs(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumJobs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumJobs)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SwitchToForeground(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SwitchToForeground)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn QueryNewJobInterface(&self, iid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryNewJobInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryNewJobInterface)(windows_core::Interface::as_raw(self), iid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetNotificationPointer(&self, iid: *const windows_core::GUID, punk: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotificationPointer)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotificationPointer)(windows_core::Interface::as_raw(self), iid, punk.param().abi()).ok() } } #[repr(C)] @@ -1636,14 +1636,14 @@ impl IBackgroundCopyJob { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, val: BG_JOB_PRIORITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(val)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), val).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyFlags(&self, val: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(val)).ok() + (windows_core::Interface::vtable(self).SetNotifyFlags)(windows_core::Interface::as_raw(self), val).ok() } pub unsafe fn GetNotifyFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1660,14 +1660,14 @@ impl IBackgroundCopyJob { (windows_core::Interface::vtable(self).GetNotifyInterface)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMinimumRetryDelay(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimumRetryDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetMinimumRetryDelay)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetMinimumRetryDelay(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMinimumRetryDelay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNoProgressTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNoProgressTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetNoProgressTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetNoProgressTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1682,7 +1682,7 @@ impl IBackgroundCopyJob { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxySettings)(windows_core::Interface::as_raw(self), core::mem::transmute(proxyusage), proxylist.param().abi(), proxybypasslist.param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxySettings)(windows_core::Interface::as_raw(self), proxyusage, proxylist.param().abi(), proxybypasslist.param().abi()).ok() } pub unsafe fn GetProxySettings(&self, pproxyusage: *mut BG_JOB_PROXY_USAGE, pproxylist: *mut windows_core::PWSTR, pproxybypasslist: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProxySettings)(windows_core::Interface::as_raw(self), core::mem::transmute(pproxyusage), core::mem::transmute(pproxylist), core::mem::transmute(pproxybypasslist)).ok() @@ -2024,7 +2024,7 @@ impl IBackgroundCopyJob1 { } pub unsafe fn GetProgress(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProgress)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn GetStatus(&self, pdwstatus: *mut u32, pdwwin32result: *mut u32, pdwtransportresult: *mut u32, pdwnumofretries: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatus), core::mem::transmute(pdwwin32result), core::mem::transmute(pdwtransportresult), core::mem::transmute(pdwnumofretries)).ok() @@ -2034,7 +2034,7 @@ impl IBackgroundCopyJob1 { } pub unsafe fn GetFile(&self, cfileindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFile)(windows_core::Interface::as_raw(self), core::mem::transmute(cfileindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFile)(windows_core::Interface::as_raw(self), cfileindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetFileCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2181,10 +2181,10 @@ impl IBackgroundCopyJob2 { (windows_core::Interface::vtable(self).GetReplyFileName)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCredentials(&self, credentials: *const BG_AUTH_CREDENTIALS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute(credentials)).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), credentials).ok() } pub unsafe fn RemoveCredentials(&self, target: BG_AUTH_TARGET, scheme: BG_AUTH_SCHEME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute(target), core::mem::transmute(scheme)).ok() + (windows_core::Interface::vtable(self).RemoveCredentials)(windows_core::Interface::as_raw(self), target, scheme).ok() } } #[repr(C)] @@ -2290,7 +2290,7 @@ impl IBackgroundCopyJob3 { (windows_core::Interface::vtable(self).AddFileWithRanges)(windows_core::Interface::as_raw(self), remoteurl.param().abi(), localname.param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() } pub unsafe fn SetFileACLFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileACLFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFileACLFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetFileACLFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2358,7 +2358,7 @@ impl core::ops::Deref for IBackgroundCopyJob4 { windows_core::imp::interface_hierarchy!(IBackgroundCopyJob4, windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2, IBackgroundCopyJob3); impl IBackgroundCopyJob4 { pub unsafe fn SetPeerCachingFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPeerCachingFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetPeerCachingFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetPeerCachingFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2373,7 +2373,7 @@ impl IBackgroundCopyJob4 { (windows_core::Interface::vtable(self).GetOwnerElevationState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaximumDownloadTime(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumDownloadTime)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).SetMaximumDownloadTime)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn GetMaximumDownloadTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2473,11 +2473,11 @@ impl core::ops::Deref for IBackgroundCopyJob5 { windows_core::imp::interface_hierarchy!(IBackgroundCopyJob5, windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2, IBackgroundCopyJob3, IBackgroundCopyJob4); impl IBackgroundCopyJob5 { pub unsafe fn SetProperty(&self, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: BITS_JOB_PROPERTY_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(propertyvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(propertyvalue)).ok() } pub unsafe fn GetProperty(&self, propertyid: BITS_JOB_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| result__) } } #[repr(C)] @@ -2524,14 +2524,14 @@ impl IBackgroundCopyJobHttpOptions { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateByID)(windows_core::Interface::as_raw(self), core::mem::transmute(storelocation), storename.param().abi(), core::mem::transmute(pcerthashblob.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetClientCertificateByID)(windows_core::Interface::as_raw(self), storelocation, storename.param().abi(), core::mem::transmute(pcerthashblob.as_ptr())).ok() } pub unsafe fn SetClientCertificateByName(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P1, subjectname: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateByName)(windows_core::Interface::as_raw(self), core::mem::transmute(storelocation), storename.param().abi(), subjectname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCertificateByName)(windows_core::Interface::as_raw(self), storelocation, storename.param().abi(), subjectname.param().abi()).ok() } pub unsafe fn RemoveClientCertificate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveClientCertificate)(windows_core::Interface::as_raw(self)).ok() @@ -2550,7 +2550,7 @@ impl IBackgroundCopyJobHttpOptions { (windows_core::Interface::vtable(self).GetCustomHeaders)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSecurityFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurityFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetSecurityFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetSecurityFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2756,19 +2756,19 @@ impl IBackgroundCopyManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateJob)(windows_core::Interface::as_raw(self), displayname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(pjobid), core::mem::transmute(ppjob)).ok() + (windows_core::Interface::vtable(self).CreateJob)(windows_core::Interface::as_raw(self), displayname.param().abi(), r#type, core::mem::transmute(pjobid), core::mem::transmute(ppjob)).ok() } pub unsafe fn GetJob(&self, jobid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), core::mem::transmute(jobid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), jobid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumJobs(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumJobs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumJobs)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetErrorDescription(&self, hresult: windows_core::HRESULT, languageid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), core::mem::transmute(languageid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), hresult, languageid, &mut result__).map(|| result__) } } #[repr(C)] @@ -2847,7 +2847,7 @@ impl IBackgroundCopyQMgr { } pub unsafe fn EnumGroups(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumGroups)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumGroups)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2914,7 +2914,7 @@ impl IBackgroundCopyServerCertificateValidationCallback { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateServerCertificate)(windows_core::Interface::as_raw(self), job.param().abi(), file.param().abi(), certdata.len().try_into().unwrap(), core::mem::transmute(certdata.as_ptr()), core::mem::transmute(certencodingtype), certstoredata.len().try_into().unwrap(), core::mem::transmute(certstoredata.as_ptr())).ok() + (windows_core::Interface::vtable(self).ValidateServerCertificate)(windows_core::Interface::as_raw(self), job.param().abi(), file.param().abi(), certdata.len().try_into().unwrap(), core::mem::transmute(certdata.as_ptr()), certencodingtype, certstoredata.len().try_into().unwrap(), core::mem::transmute(certstoredata.as_ptr())).ok() } } #[repr(C)] @@ -3018,21 +3018,21 @@ impl IBitsPeerCacheAdministration { (windows_core::Interface::vtable(self).GetMaximumCacheSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaximumCacheSize(&self, bytes: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumCacheSize)(windows_core::Interface::as_raw(self), core::mem::transmute(bytes)).ok() + (windows_core::Interface::vtable(self).SetMaximumCacheSize)(windows_core::Interface::as_raw(self), bytes).ok() } pub unsafe fn GetMaximumContentAge(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMaximumContentAge)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaximumContentAge(&self, seconds: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).SetMaximumContentAge)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)) + (windows_core::Interface::vtable(self).SetMaximumContentAge)(windows_core::Interface::as_raw(self), seconds) } pub unsafe fn GetConfigurationFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetConfigurationFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConfigurationFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfigurationFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetConfigurationFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn EnumRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3040,13 +3040,13 @@ impl IBitsPeerCacheAdministration { } pub unsafe fn GetRecord(&self, id: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecord)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ClearRecords(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearRecords)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DeleteRecord(&self, id: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).DeleteRecord)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn DeleteUrl(&self, url: P0) -> windows_core::Result<()> where @@ -3346,7 +3346,7 @@ windows_core::imp::define_interface!(IBitsTokenOptions, IBitsTokenOptions_Vtbl, windows_core::imp::interface_hierarchy!(IBitsTokenOptions, windows_core::IUnknown); impl IBitsTokenOptions { pub unsafe fn SetHelperTokenFlags(&self, usageflags: BG_TOKEN) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelperTokenFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(usageflags)).ok() + (windows_core::Interface::vtable(self).SetHelperTokenFlags)(windows_core::Interface::as_raw(self), usageflags).ok() } pub unsafe fn GetHelperTokenFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3434,7 +3434,7 @@ impl IEnumBackgroundCopyFiles { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3519,7 +3519,7 @@ impl IEnumBackgroundCopyGroups { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3604,7 +3604,7 @@ impl IEnumBackgroundCopyJobs { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3689,7 +3689,7 @@ impl IEnumBackgroundCopyJobs1 { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3774,7 +3774,7 @@ impl IEnumBitsPeerCacheRecords { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3859,7 +3859,7 @@ impl IEnumBitsPeers { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs index 1e2fbc6c5d..94142b055b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn AddClusterGroupDependency(hdependentgroup: HGROUP, hprovidergroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupDependency(hdependentgroup : HGROUP, hprovidergroup : HGROUP) -> u32); - AddClusterGroupDependency(core::mem::transmute(hdependentgroup), core::mem::transmute(hprovidergroup)) + AddClusterGroupDependency(hdependentgroup, hprovidergroup) } #[inline] pub unsafe fn AddClusterGroupDependencyEx(hdependentgroup: HGROUP, hprovidergroup: HGROUP, lpszreason: P2) -> u32 @@ -9,12 +9,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupDependencyEx(hdependentgroup : HGROUP, hprovidergroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterGroupDependencyEx(core::mem::transmute(hdependentgroup), core::mem::transmute(hprovidergroup), lpszreason.param().abi()) + AddClusterGroupDependencyEx(hdependentgroup, hprovidergroup, lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterGroupSetDependency(hdependentgroupset: HGROUPSET, hprovidergroupset: HGROUPSET) -> u32 { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupSetDependency(hdependentgroupset : HGROUPSET, hprovidergroupset : HGROUPSET) -> u32); - AddClusterGroupSetDependency(core::mem::transmute(hdependentgroupset), core::mem::transmute(hprovidergroupset)) + AddClusterGroupSetDependency(hdependentgroupset, hprovidergroupset) } #[inline] pub unsafe fn AddClusterGroupSetDependencyEx(hdependentgroupset: HGROUPSET, hprovidergroupset: HGROUPSET, lpszreason: P2) -> u32 @@ -22,12 +22,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupSetDependencyEx(hdependentgroupset : HGROUPSET, hprovidergroupset : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterGroupSetDependencyEx(core::mem::transmute(hdependentgroupset), core::mem::transmute(hprovidergroupset), lpszreason.param().abi()) + AddClusterGroupSetDependencyEx(hdependentgroupset, hprovidergroupset, lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterGroupToGroupSetDependency(hdependentgroup: HGROUP, hprovidergroupset: HGROUPSET) -> u32 { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupToGroupSetDependency(hdependentgroup : HGROUP, hprovidergroupset : HGROUPSET) -> u32); - AddClusterGroupToGroupSetDependency(core::mem::transmute(hdependentgroup), core::mem::transmute(hprovidergroupset)) + AddClusterGroupToGroupSetDependency(hdependentgroup, hprovidergroupset) } #[inline] pub unsafe fn AddClusterGroupToGroupSetDependencyEx(hdependentgroup: HGROUP, hprovidergroupset: HGROUPSET, lpszreason: P2) -> u32 @@ -35,7 +35,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupToGroupSetDependencyEx(hdependentgroup : HGROUP, hprovidergroupset : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterGroupToGroupSetDependencyEx(core::mem::transmute(hdependentgroup), core::mem::transmute(hprovidergroupset), lpszreason.param().abi()) + AddClusterGroupToGroupSetDependencyEx(hdependentgroup, hprovidergroupset, lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterNode(hcluster: HCLUSTER, lpsznodename: P1, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>) -> HNODE @@ -43,7 +43,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterNode(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> HNODE); - AddClusterNode(core::mem::transmute(hcluster), lpsznodename.param().abi(), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) + AddClusterNode(hcluster, lpsznodename.param().abi(), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn AddClusterNodeEx(hcluster: HCLUSTER, lpsznodename: P1, dwflags: u32, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>) -> HNODE @@ -51,12 +51,12 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterNodeEx(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, dwflags : u32, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> HNODE); - AddClusterNodeEx(core::mem::transmute(hcluster), lpsznodename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) + AddClusterNodeEx(hcluster, lpsznodename.param().abi(), dwflags, core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn AddClusterResourceDependency(hresource: HRESOURCE, hdependson: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceDependency(hresource : HRESOURCE, hdependson : HRESOURCE) -> u32); - AddClusterResourceDependency(core::mem::transmute(hresource), core::mem::transmute(hdependson)) + AddClusterResourceDependency(hresource, hdependson) } #[inline] pub unsafe fn AddClusterResourceDependencyEx(hresource: HRESOURCE, hdependson: HRESOURCE, lpszreason: P2) -> u32 @@ -64,12 +64,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceDependencyEx(hresource : HRESOURCE, hdependson : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterResourceDependencyEx(core::mem::transmute(hresource), core::mem::transmute(hdependson), lpszreason.param().abi()) + AddClusterResourceDependencyEx(hresource, hdependson, lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterResourceNode(hresource: HRESOURCE, hnode: HNODE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceNode(hresource : HRESOURCE, hnode : HNODE) -> u32); - AddClusterResourceNode(core::mem::transmute(hresource), core::mem::transmute(hnode)) + AddClusterResourceNode(hresource, hnode) } #[inline] pub unsafe fn AddClusterResourceNodeEx(hresource: HRESOURCE, hnode: HNODE, lpszreason: P2) -> u32 @@ -77,7 +77,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceNodeEx(hresource : HRESOURCE, hnode : HNODE, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterResourceNodeEx(core::mem::transmute(hresource), core::mem::transmute(hnode), lpszreason.param().abi()) + AddClusterResourceNodeEx(hresource, hnode, lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterStorageNode(hcluster: HCLUSTER, lpsznodename: P1, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>, lpszclusterstoragenodedescription: P4, lpszclusterstoragenodelocation: P5) -> u32 @@ -87,7 +87,7 @@ where P5: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterStorageNode(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void, lpszclusterstoragenodedescription : windows_core::PCWSTR, lpszclusterstoragenodelocation : windows_core::PCWSTR) -> u32); - AddClusterStorageNode(core::mem::transmute(hcluster), lpsznodename.param().abi(), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed())), lpszclusterstoragenodedescription.param().abi(), lpszclusterstoragenodelocation.param().abi()) + AddClusterStorageNode(hcluster, lpsznodename.param().abi(), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed())), lpszclusterstoragenodedescription.param().abi(), lpszclusterstoragenodelocation.param().abi()) } #[inline] pub unsafe fn AddCrossClusterGroupSetDependency(hdependentgroupset: HGROUPSET, lpremoteclustername: P1, lpremotegroupsetname: P2) -> u32 @@ -96,12 +96,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddCrossClusterGroupSetDependency(hdependentgroupset : HGROUPSET, lpremoteclustername : windows_core::PCWSTR, lpremotegroupsetname : windows_core::PCWSTR) -> u32); - AddCrossClusterGroupSetDependency(core::mem::transmute(hdependentgroupset), lpremoteclustername.param().abi(), lpremotegroupsetname.param().abi()) + AddCrossClusterGroupSetDependency(hdependentgroupset, lpremoteclustername.param().abi(), lpremotegroupsetname.param().abi()) } #[inline] pub unsafe fn AddResourceToClusterSharedVolumes(hresource: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn AddResourceToClusterSharedVolumes(hresource : HRESOURCE) -> u32); - AddResourceToClusterSharedVolumes(core::mem::transmute(hresource)) + AddResourceToClusterSharedVolumes(hresource) } #[inline] pub unsafe fn BackupClusterDatabase(hcluster: HCLUSTER, lpszpathname: P1) -> u32 @@ -109,27 +109,27 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn BackupClusterDatabase(hcluster : HCLUSTER, lpszpathname : windows_core::PCWSTR) -> u32); - BackupClusterDatabase(core::mem::transmute(hcluster), lpszpathname.param().abi()) + BackupClusterDatabase(hcluster, lpszpathname.param().abi()) } #[inline] pub unsafe fn CanResourceBeDependent(hresource: HRESOURCE, hresourcedependent: HRESOURCE) -> super::super::Foundation::BOOL { windows_targets::link!("clusapi.dll" "system" fn CanResourceBeDependent(hresource : HRESOURCE, hresourcedependent : HRESOURCE) -> super::super::Foundation:: BOOL); - CanResourceBeDependent(core::mem::transmute(hresource), core::mem::transmute(hresourcedependent)) + CanResourceBeDependent(hresource, hresourcedependent) } #[inline] pub unsafe fn CancelClusterGroupOperation(hgroup: HGROUP, dwcancelflags_reserved: u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn CancelClusterGroupOperation(hgroup : HGROUP, dwcancelflags_reserved : u32) -> u32); - CancelClusterGroupOperation(core::mem::transmute(hgroup), core::mem::transmute(dwcancelflags_reserved)) + CancelClusterGroupOperation(hgroup, dwcancelflags_reserved) } #[inline] pub unsafe fn ChangeClusterResourceGroup(hresource: HRESOURCE, hgroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ChangeClusterResourceGroup(hresource : HRESOURCE, hgroup : HGROUP) -> u32); - ChangeClusterResourceGroup(core::mem::transmute(hresource), core::mem::transmute(hgroup)) + ChangeClusterResourceGroup(hresource, hgroup) } #[inline] pub unsafe fn ChangeClusterResourceGroupEx(hresource: HRESOURCE, hgroup: HGROUP, flags: u64) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ChangeClusterResourceGroupEx(hresource : HRESOURCE, hgroup : HGROUP, flags : u64) -> u32); - ChangeClusterResourceGroupEx(core::mem::transmute(hresource), core::mem::transmute(hgroup), core::mem::transmute(flags)) + ChangeClusterResourceGroupEx(hresource, hgroup, flags) } #[inline] pub unsafe fn ChangeClusterResourceGroupEx2(hresource: HRESOURCE, hgroup: HGROUP, flags: u64, lpszreason: P3) -> u32 @@ -137,62 +137,62 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ChangeClusterResourceGroupEx2(hresource : HRESOURCE, hgroup : HGROUP, flags : u64, lpszreason : windows_core::PCWSTR) -> u32); - ChangeClusterResourceGroupEx2(core::mem::transmute(hresource), core::mem::transmute(hgroup), core::mem::transmute(flags), lpszreason.param().abi()) + ChangeClusterResourceGroupEx2(hresource, hgroup, flags, lpszreason.param().abi()) } #[inline] pub unsafe fn CloseCluster(hcluster: HCLUSTER) -> super::super::Foundation::BOOL { windows_targets::link!("clusapi.dll" "system" fn CloseCluster(hcluster : HCLUSTER) -> super::super::Foundation:: BOOL); - CloseCluster(core::mem::transmute(hcluster)) + CloseCluster(hcluster) } #[inline] pub unsafe fn CloseClusterCryptProvider(hcluscryptprovider: HCLUSCRYPTPROVIDER) -> u32 { windows_targets::link!("resutils.dll" "system" fn CloseClusterCryptProvider(hcluscryptprovider : HCLUSCRYPTPROVIDER) -> u32); - CloseClusterCryptProvider(core::mem::transmute(hcluscryptprovider)) + CloseClusterCryptProvider(hcluscryptprovider) } #[inline] pub unsafe fn CloseClusterGroup(hgroup: HGROUP) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroup(hgroup : HGROUP) -> super::super::Foundation:: BOOL); - CloseClusterGroup(core::mem::transmute(hgroup)).ok() + CloseClusterGroup(hgroup).ok() } #[inline] pub unsafe fn CloseClusterGroupSet(hgroupset: HGROUPSET) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroupSet(hgroupset : HGROUPSET) -> super::super::Foundation:: BOOL); - CloseClusterGroupSet(core::mem::transmute(hgroupset)).ok() + CloseClusterGroupSet(hgroupset).ok() } #[inline] pub unsafe fn CloseClusterNetInterface(hnetinterface: HNETINTERFACE) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetInterface(hnetinterface : HNETINTERFACE) -> super::super::Foundation:: BOOL); - CloseClusterNetInterface(core::mem::transmute(hnetinterface)).ok() + CloseClusterNetInterface(hnetinterface).ok() } #[inline] pub unsafe fn CloseClusterNetwork(hnetwork: HNETWORK) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetwork(hnetwork : HNETWORK) -> super::super::Foundation:: BOOL); - CloseClusterNetwork(core::mem::transmute(hnetwork)).ok() + CloseClusterNetwork(hnetwork).ok() } #[inline] pub unsafe fn CloseClusterNode(hnode: HNODE) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNode(hnode : HNODE) -> super::super::Foundation:: BOOL); - CloseClusterNode(core::mem::transmute(hnode)).ok() + CloseClusterNode(hnode).ok() } #[inline] pub unsafe fn CloseClusterNotifyPort(hchange: HCHANGE) -> super::super::Foundation::BOOL { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNotifyPort(hchange : HCHANGE) -> super::super::Foundation:: BOOL); - CloseClusterNotifyPort(core::mem::transmute(hchange)) + CloseClusterNotifyPort(hchange) } #[inline] pub unsafe fn CloseClusterResource(hresource: HRESOURCE) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn CloseClusterResource(hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - CloseClusterResource(core::mem::transmute(hresource)).ok() + CloseClusterResource(hresource).ok() } #[inline] pub unsafe fn ClusAddClusterHealthFault(hcluster: HCLUSTER, failure: *const CLUSTER_HEALTH_FAULT, param2: u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusAddClusterHealthFault(hcluster : HCLUSTER, failure : *const CLUSTER_HEALTH_FAULT, param2 : u32) -> u32); - ClusAddClusterHealthFault(core::mem::transmute(hcluster), core::mem::transmute(failure), core::mem::transmute(param2)) + ClusAddClusterHealthFault(hcluster, failure, param2) } #[inline] pub unsafe fn ClusGetClusterHealthFaults(hcluster: HCLUSTER, objects: *mut CLUSTER_HEALTH_FAULT_ARRAY, flags: u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusGetClusterHealthFaults(hcluster : HCLUSTER, objects : *mut CLUSTER_HEALTH_FAULT_ARRAY, flags : u32) -> u32); - ClusGetClusterHealthFaults(core::mem::transmute(hcluster), core::mem::transmute(objects), core::mem::transmute(flags)) + ClusGetClusterHealthFaults(hcluster, core::mem::transmute(objects), flags) } #[inline] pub unsafe fn ClusRemoveClusterHealthFault(hcluster: HCLUSTER, id: P1, flags: u32) -> u32 @@ -200,7 +200,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusRemoveClusterHealthFault(hcluster : HCLUSTER, id : windows_core::PCWSTR, flags : u32) -> u32); - ClusRemoveClusterHealthFault(core::mem::transmute(hcluster), id.param().abi(), core::mem::transmute(flags)) + ClusRemoveClusterHealthFault(hcluster, id.param().abi(), flags) } #[inline] pub unsafe fn ClusWorkerCheckTerminate(lpworker: *mut CLUS_WORKER) -> super::super::Foundation::BOOL { @@ -210,27 +210,27 @@ pub unsafe fn ClusWorkerCheckTerminate(lpworker: *mut CLUS_WORKER) -> super::sup #[inline] pub unsafe fn ClusWorkerCreate(lpworker: *mut CLUS_WORKER, lpstartaddress: PWORKER_START_ROUTINE, lpparameter: *mut core::ffi::c_void) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusWorkerCreate(lpworker : *mut CLUS_WORKER, lpstartaddress : PWORKER_START_ROUTINE, lpparameter : *mut core::ffi::c_void) -> u32); - ClusWorkerCreate(core::mem::transmute(lpworker), core::mem::transmute(lpstartaddress), core::mem::transmute(lpparameter)) + ClusWorkerCreate(core::mem::transmute(lpworker), lpstartaddress, core::mem::transmute(lpparameter)) } #[inline] pub unsafe fn ClusWorkerTerminate(lpworker: *const CLUS_WORKER) { windows_targets::link!("resutils.dll" "system" fn ClusWorkerTerminate(lpworker : *const CLUS_WORKER)); - ClusWorkerTerminate(core::mem::transmute(lpworker)) + ClusWorkerTerminate(lpworker) } #[inline] pub unsafe fn ClusWorkerTerminateEx(clusworker: *mut CLUS_WORKER, timeoutinmilliseconds: u32, waitonly: bool) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusWorkerTerminateEx(clusworker : *mut CLUS_WORKER, timeoutinmilliseconds : u32, waitonly : super::super::Foundation:: BOOL) -> u32); - ClusWorkerTerminateEx(core::mem::transmute(clusworker), core::mem::transmute(timeoutinmilliseconds), waitonly.into()) + ClusWorkerTerminateEx(core::mem::transmute(clusworker), timeoutinmilliseconds, waitonly.into()) } #[inline] pub unsafe fn ClusWorkersTerminate(clusworkers: &mut [*mut CLUS_WORKER], timeoutinmilliseconds: u32, waitonly: bool) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusWorkersTerminate(clusworkers : *mut *mut CLUS_WORKER, clusworkerscount : usize, timeoutinmilliseconds : u32, waitonly : super::super::Foundation:: BOOL) -> u32); - ClusWorkersTerminate(core::mem::transmute(clusworkers.as_ptr()), clusworkers.len().try_into().unwrap(), core::mem::transmute(timeoutinmilliseconds), waitonly.into()) + ClusWorkersTerminate(core::mem::transmute(clusworkers.as_ptr()), clusworkers.len().try_into().unwrap(), timeoutinmilliseconds, waitonly.into()) } #[inline] pub unsafe fn ClusapiSetReasonHandler(lphandler: *const CLUSAPI_REASON_HANDLER) -> *mut CLUSAPI_REASON_HANDLER { windows_targets::link!("clusapi.dll" "system" fn ClusapiSetReasonHandler(lphandler : *const CLUSAPI_REASON_HANDLER) -> *mut CLUSAPI_REASON_HANDLER); - ClusapiSetReasonHandler(core::mem::transmute(lphandler)) + ClusapiSetReasonHandler(lphandler) } #[inline] pub unsafe fn ClusterAddGroupToAffinityRule(hcluster: HCLUSTER, rulename: P1, hgroup: HGROUP) -> u32 @@ -238,17 +238,17 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR, hgroup : HGROUP) -> u32); - ClusterAddGroupToAffinityRule(core::mem::transmute(hcluster), rulename.param().abi(), core::mem::transmute(hgroup)) + ClusterAddGroupToAffinityRule(hcluster, rulename.param().abi(), hgroup) } #[inline] pub unsafe fn ClusterAddGroupToGroupSet(hgroupset: HGROUPSET, hgroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToGroupSet(hgroupset : HGROUPSET, hgroup : HGROUP) -> u32); - ClusterAddGroupToGroupSet(core::mem::transmute(hgroupset), core::mem::transmute(hgroup)) + ClusterAddGroupToGroupSet(hgroupset, hgroup) } #[inline] pub unsafe fn ClusterAddGroupToGroupSetWithDomains(hgroupset: HGROUPSET, hgroup: HGROUP, faultdomain: u32, updatedomain: u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToGroupSetWithDomains(hgroupset : HGROUPSET, hgroup : HGROUP, faultdomain : u32, updatedomain : u32) -> u32); - ClusterAddGroupToGroupSetWithDomains(core::mem::transmute(hgroupset), core::mem::transmute(hgroup), core::mem::transmute(faultdomain), core::mem::transmute(updatedomain)) + ClusterAddGroupToGroupSetWithDomains(hgroupset, hgroup, faultdomain, updatedomain) } #[inline] pub unsafe fn ClusterAddGroupToGroupSetWithDomainsEx(hgroupset: HGROUPSET, hgroup: HGROUP, faultdomain: u32, updatedomain: u32, lpszreason: P4) -> u32 @@ -256,7 +256,7 @@ where P4: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToGroupSetWithDomainsEx(hgroupset : HGROUPSET, hgroup : HGROUP, faultdomain : u32, updatedomain : u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterAddGroupToGroupSetWithDomainsEx(core::mem::transmute(hgroupset), core::mem::transmute(hgroup), core::mem::transmute(faultdomain), core::mem::transmute(updatedomain), lpszreason.param().abi()) + ClusterAddGroupToGroupSetWithDomainsEx(hgroupset, hgroup, faultdomain, updatedomain, lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterAffinityRuleControl(hcluster: HCLUSTER, affinityrulename: P1, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 @@ -264,7 +264,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterAffinityRuleControl(hcluster : HCLUSTER, affinityrulename : windows_core::PCWSTR, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterAffinityRuleControl(core::mem::transmute(hcluster), affinityrulename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterAffinityRuleControl(hcluster, affinityrulename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterClearBackupStateForSharedVolume(lpszvolumepathname: P0) -> u32 @@ -277,17 +277,17 @@ where #[inline] pub unsafe fn ClusterCloseEnum(henum: HCLUSENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterCloseEnum(henum : HCLUSENUM) -> u32); - ClusterCloseEnum(core::mem::transmute(henum)) + ClusterCloseEnum(henum) } #[inline] pub unsafe fn ClusterCloseEnumEx(hclusterenum: HCLUSENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterCloseEnumEx(hclusterenum : HCLUSENUMEX) -> u32); - ClusterCloseEnumEx(core::mem::transmute(hclusterenum)) + ClusterCloseEnumEx(hclusterenum) } #[inline] pub unsafe fn ClusterControl(hcluster: HCLUSTER, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterControl(hcluster : HCLUSTER, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterControl(core::mem::transmute(hcluster), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterControl(hcluster, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterControlEx(hcluster: HCLUSTER, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -295,7 +295,7 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterControlEx(hcluster : HCLUSTER, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterControlEx(core::mem::transmute(hcluster), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterControlEx(hcluster, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterCreateAffinityRule(hcluster: HCLUSTER, rulename: P1, ruletype: CLUS_AFFINITY_RULE_TYPE) -> u32 @@ -303,37 +303,37 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterCreateAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR, ruletype : CLUS_AFFINITY_RULE_TYPE) -> u32); - ClusterCreateAffinityRule(core::mem::transmute(hcluster), rulename.param().abi(), core::mem::transmute(ruletype)) + ClusterCreateAffinityRule(hcluster, rulename.param().abi(), ruletype) } #[inline] pub unsafe fn ClusterDecrypt(hcluscryptprovider: HCLUSCRYPTPROVIDER, pcryptinput: *const u8, cbcryptinput: u32, ppcryptoutput: *mut *mut u8, pcbcryptoutput: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusterDecrypt(hcluscryptprovider : HCLUSCRYPTPROVIDER, pcryptinput : *const u8, cbcryptinput : u32, ppcryptoutput : *mut *mut u8, pcbcryptoutput : *mut u32) -> u32); - ClusterDecrypt(core::mem::transmute(hcluscryptprovider), core::mem::transmute(pcryptinput), core::mem::transmute(cbcryptinput), core::mem::transmute(ppcryptoutput), core::mem::transmute(pcbcryptoutput)) + ClusterDecrypt(hcluscryptprovider, pcryptinput, cbcryptinput, core::mem::transmute(ppcryptoutput), core::mem::transmute(pcbcryptoutput)) } #[inline] pub unsafe fn ClusterEncrypt(hcluscryptprovider: HCLUSCRYPTPROVIDER, pdata: &[u8], ppdata: *mut *mut u8, pcbdata: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ClusterEncrypt(hcluscryptprovider : HCLUSCRYPTPROVIDER, pdata : *const u8, cbdata : u32, ppdata : *mut *mut u8, pcbdata : *mut u32) -> u32); - ClusterEncrypt(core::mem::transmute(hcluscryptprovider), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(ppdata), core::mem::transmute(pcbdata)) + ClusterEncrypt(hcluscryptprovider, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(ppdata), core::mem::transmute(pcbdata)) } #[inline] pub unsafe fn ClusterEnum(henum: HCLUSENUM, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterEnum(henum : HCLUSENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterEnum(core::mem::transmute(henum), core::mem::transmute(dwindex), core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterEnum(henum, dwindex, core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterEnumEx(hclusterenum: HCLUSENUMEX, dwindex: u32, pitem: *mut CLUSTER_ENUM_ITEM, cbitem: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterEnumEx(hclusterenum : HCLUSENUMEX, dwindex : u32, pitem : *mut CLUSTER_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterEnumEx(core::mem::transmute(hclusterenum), core::mem::transmute(dwindex), core::mem::transmute(pitem), core::mem::transmute(cbitem)) + ClusterEnumEx(hclusterenum, dwindex, core::mem::transmute(pitem), core::mem::transmute(cbitem)) } #[inline] pub unsafe fn ClusterGetEnumCount(henum: HCLUSENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGetEnumCount(henum : HCLUSENUM) -> u32); - ClusterGetEnumCount(core::mem::transmute(henum)) + ClusterGetEnumCount(henum) } #[inline] pub unsafe fn ClusterGetEnumCountEx(hclusterenum: HCLUSENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGetEnumCountEx(hclusterenum : HCLUSENUMEX) -> u32); - ClusterGetEnumCountEx(core::mem::transmute(hclusterenum)) + ClusterGetEnumCountEx(hclusterenum) } #[inline] pub unsafe fn ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint: P0, lpszvolumename: windows_core::PWSTR, cchbufferlength: u32) -> windows_core::Result<()> @@ -341,7 +341,7 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename), core::mem::transmute(cchbufferlength)).ok() + ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename), cchbufferlength).ok() } #[inline] pub unsafe fn ClusterGetVolumePathName(lpszfilename: P0, lpszvolumepathname: windows_core::PWSTR, cchbufferlength: u32) -> windows_core::Result<()> @@ -349,22 +349,22 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterGetVolumePathName(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - ClusterGetVolumePathName(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname), core::mem::transmute(cchbufferlength)).ok() + ClusterGetVolumePathName(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname), cchbufferlength).ok() } #[inline] pub unsafe fn ClusterGroupCloseEnum(hgroupenum: HGROUPENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupCloseEnum(hgroupenum : HGROUPENUM) -> u32); - ClusterGroupCloseEnum(core::mem::transmute(hgroupenum)) + ClusterGroupCloseEnum(hgroupenum) } #[inline] pub unsafe fn ClusterGroupCloseEnumEx(hgroupenumex: HGROUPENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupCloseEnumEx(hgroupenumex : HGROUPENUMEX) -> u32); - ClusterGroupCloseEnumEx(core::mem::transmute(hgroupenumex)) + ClusterGroupCloseEnumEx(hgroupenumex) } #[inline] pub unsafe fn ClusterGroupControl(hgroup: HGROUP, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupControl(hgroup : HGROUP, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterGroupControl(core::mem::transmute(hgroup), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterGroupControl(hgroup, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterGroupControlEx(hgroup: HGROUP, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -372,32 +372,32 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupControlEx(hgroup : HGROUP, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterGroupControlEx(core::mem::transmute(hgroup), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterGroupControlEx(hgroup, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterGroupEnum(hgroupenum: HGROUPENUM, dwindex: u32, lpdwtype: *mut u32, lpszresourcename: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupEnum(hgroupenum : HGROUPENUM, dwindex : u32, lpdwtype : *mut u32, lpszresourcename : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterGroupEnum(core::mem::transmute(hgroupenum), core::mem::transmute(dwindex), core::mem::transmute(lpdwtype), core::mem::transmute(lpszresourcename), core::mem::transmute(lpcchname)) + ClusterGroupEnum(hgroupenum, dwindex, core::mem::transmute(lpdwtype), core::mem::transmute(lpszresourcename), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterGroupEnumEx(hgroupenumex: HGROUPENUMEX, dwindex: u32, pitem: *mut CLUSTER_GROUP_ENUM_ITEM, cbitem: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupEnumEx(hgroupenumex : HGROUPENUMEX, dwindex : u32, pitem : *mut CLUSTER_GROUP_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterGroupEnumEx(core::mem::transmute(hgroupenumex), core::mem::transmute(dwindex), core::mem::transmute(pitem), core::mem::transmute(cbitem)) + ClusterGroupEnumEx(hgroupenumex, dwindex, core::mem::transmute(pitem), core::mem::transmute(cbitem)) } #[inline] pub unsafe fn ClusterGroupGetEnumCount(hgroupenum: HGROUPENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupGetEnumCount(hgroupenum : HGROUPENUM) -> u32); - ClusterGroupGetEnumCount(core::mem::transmute(hgroupenum)) + ClusterGroupGetEnumCount(hgroupenum) } #[inline] pub unsafe fn ClusterGroupGetEnumCountEx(hgroupenumex: HGROUPENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupGetEnumCountEx(hgroupenumex : HGROUPENUMEX) -> u32); - ClusterGroupGetEnumCountEx(core::mem::transmute(hgroupenumex)) + ClusterGroupGetEnumCountEx(hgroupenumex) } #[inline] pub unsafe fn ClusterGroupOpenEnum(hgroup: HGROUP, dwtype: u32) -> HGROUPENUM { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupOpenEnum(hgroup : HGROUP, dwtype : u32) -> HGROUPENUM); - ClusterGroupOpenEnum(core::mem::transmute(hgroup), core::mem::transmute(dwtype)) + ClusterGroupOpenEnum(hgroup, dwtype) } #[inline] pub unsafe fn ClusterGroupOpenEnumEx(hcluster: HCLUSTER, lpszproperties: P1, cbproperties: u32, lpszroproperties: P3, cbroproperties: u32, dwflags: u32) -> HGROUPENUMEX @@ -406,17 +406,17 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupOpenEnumEx(hcluster : HCLUSTER, lpszproperties : windows_core::PCWSTR, cbproperties : u32, lpszroproperties : windows_core::PCWSTR, cbroproperties : u32, dwflags : u32) -> HGROUPENUMEX); - ClusterGroupOpenEnumEx(core::mem::transmute(hcluster), lpszproperties.param().abi(), core::mem::transmute(cbproperties), lpszroproperties.param().abi(), core::mem::transmute(cbroproperties), core::mem::transmute(dwflags)) + ClusterGroupOpenEnumEx(hcluster, lpszproperties.param().abi(), cbproperties, lpszroproperties.param().abi(), cbroproperties, dwflags) } #[inline] pub unsafe fn ClusterGroupSetCloseEnum(hgroupsetenum: HGROUPSETENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetCloseEnum(hgroupsetenum : HGROUPSETENUM) -> u32); - ClusterGroupSetCloseEnum(core::mem::transmute(hgroupsetenum)) + ClusterGroupSetCloseEnum(hgroupsetenum) } #[inline] pub unsafe fn ClusterGroupSetControl(hgroupset: HGROUPSET, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetControl(hgroupset : HGROUPSET, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterGroupSetControl(core::mem::transmute(hgroupset), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterGroupSetControl(hgroupset, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterGroupSetControlEx(hgroupset: HGROUPSET, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -424,22 +424,22 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetControlEx(hgroupset : HGROUPSET, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterGroupSetControlEx(core::mem::transmute(hgroupset), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterGroupSetControlEx(hgroupset, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterGroupSetEnum(hgroupsetenum: HGROUPSETENUM, dwindex: u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetEnum(hgroupsetenum : HGROUPSETENUM, dwindex : u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterGroupSetEnum(core::mem::transmute(hgroupsetenum), core::mem::transmute(dwindex), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterGroupSetEnum(hgroupsetenum, dwindex, core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterGroupSetGetEnumCount(hgroupsetenum: HGROUPSETENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetGetEnumCount(hgroupsetenum : HGROUPSETENUM) -> u32); - ClusterGroupSetGetEnumCount(core::mem::transmute(hgroupsetenum)) + ClusterGroupSetGetEnumCount(hgroupsetenum) } #[inline] pub unsafe fn ClusterGroupSetOpenEnum(hcluster: HCLUSTER) -> HGROUPSETENUM { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetOpenEnum(hcluster : HCLUSTER) -> HGROUPSETENUM); - ClusterGroupSetOpenEnum(core::mem::transmute(hcluster)) + ClusterGroupSetOpenEnum(hcluster) } #[inline] pub unsafe fn ClusterIsPathOnSharedVolume(lpszpathname: P0) -> super::super::Foundation::BOOL @@ -452,12 +452,12 @@ where #[inline] pub unsafe fn ClusterNetInterfaceCloseEnum(hnetinterfaceenum: HNETINTERFACEENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceCloseEnum(hnetinterfaceenum : HNETINTERFACEENUM) -> u32); - ClusterNetInterfaceCloseEnum(core::mem::transmute(hnetinterfaceenum)) + ClusterNetInterfaceCloseEnum(hnetinterfaceenum) } #[inline] pub unsafe fn ClusterNetInterfaceControl(hnetinterface: HNETINTERFACE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceControl(hnetinterface : HNETINTERFACE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterNetInterfaceControl(core::mem::transmute(hnetinterface), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterNetInterfaceControl(hnetinterface, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterNetInterfaceControlEx(hnetinterface: HNETINTERFACE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -465,12 +465,12 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceControlEx(hnetinterface : HNETINTERFACE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterNetInterfaceControlEx(core::mem::transmute(hnetinterface), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterNetInterfaceControlEx(hnetinterface, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterNetInterfaceEnum(hnetinterfaceenum: HNETINTERFACEENUM, dwindex: u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceEnum(hnetinterfaceenum : HNETINTERFACEENUM, dwindex : u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterNetInterfaceEnum(core::mem::transmute(hnetinterfaceenum), core::mem::transmute(dwindex), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterNetInterfaceEnum(hnetinterfaceenum, dwindex, core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterNetInterfaceOpenEnum(hcluster: HCLUSTER, lpsznodename: P1, lpsznetworkname: P2) -> HNETINTERFACEENUM @@ -479,17 +479,17 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceOpenEnum(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, lpsznetworkname : windows_core::PCWSTR) -> HNETINTERFACEENUM); - ClusterNetInterfaceOpenEnum(core::mem::transmute(hcluster), lpsznodename.param().abi(), lpsznetworkname.param().abi()) + ClusterNetInterfaceOpenEnum(hcluster, lpsznodename.param().abi(), lpsznetworkname.param().abi()) } #[inline] pub unsafe fn ClusterNetworkCloseEnum(hnetworkenum: HNETWORKENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkCloseEnum(hnetworkenum : HNETWORKENUM) -> u32); - ClusterNetworkCloseEnum(core::mem::transmute(hnetworkenum)) + ClusterNetworkCloseEnum(hnetworkenum) } #[inline] pub unsafe fn ClusterNetworkControl(hnetwork: HNETWORK, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkControl(hnetwork : HNETWORK, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterNetworkControl(core::mem::transmute(hnetwork), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterNetworkControl(hnetwork, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterNetworkControlEx(hnetwork: HNETWORK, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -497,37 +497,37 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkControlEx(hnetwork : HNETWORK, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterNetworkControlEx(core::mem::transmute(hnetwork), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterNetworkControlEx(hnetwork, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterNetworkEnum(hnetworkenum: HNETWORKENUM, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkEnum(hnetworkenum : HNETWORKENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterNetworkEnum(core::mem::transmute(hnetworkenum), core::mem::transmute(dwindex), core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterNetworkEnum(hnetworkenum, dwindex, core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterNetworkGetEnumCount(hnetworkenum: HNETWORKENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkGetEnumCount(hnetworkenum : HNETWORKENUM) -> u32); - ClusterNetworkGetEnumCount(core::mem::transmute(hnetworkenum)) + ClusterNetworkGetEnumCount(hnetworkenum) } #[inline] pub unsafe fn ClusterNetworkOpenEnum(hnetwork: HNETWORK, dwtype: u32) -> HNETWORKENUM { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkOpenEnum(hnetwork : HNETWORK, dwtype : u32) -> HNETWORKENUM); - ClusterNetworkOpenEnum(core::mem::transmute(hnetwork), core::mem::transmute(dwtype)) + ClusterNetworkOpenEnum(hnetwork, dwtype) } #[inline] pub unsafe fn ClusterNodeCloseEnum(hnodeenum: HNODEENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeCloseEnum(hnodeenum : HNODEENUM) -> u32); - ClusterNodeCloseEnum(core::mem::transmute(hnodeenum)) + ClusterNodeCloseEnum(hnodeenum) } #[inline] pub unsafe fn ClusterNodeCloseEnumEx(hnodeenum: HNODEENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeCloseEnumEx(hnodeenum : HNODEENUMEX) -> u32); - ClusterNodeCloseEnumEx(core::mem::transmute(hnodeenum)) + ClusterNodeCloseEnumEx(hnodeenum) } #[inline] pub unsafe fn ClusterNodeControl(hnode: HNODE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeControl(hnode : HNODE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterNodeControl(core::mem::transmute(hnode), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterNodeControl(hnode, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterNodeControlEx(hnode: HNODE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -535,37 +535,37 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeControlEx(hnode : HNODE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterNodeControlEx(core::mem::transmute(hnode), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterNodeControlEx(hnode, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterNodeEnum(hnodeenum: HNODEENUM, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeEnum(hnodeenum : HNODEENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterNodeEnum(core::mem::transmute(hnodeenum), core::mem::transmute(dwindex), core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterNodeEnum(hnodeenum, dwindex, core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterNodeEnumEx(hnodeenum: HNODEENUMEX, dwindex: u32, pitem: *mut CLUSTER_ENUM_ITEM, cbitem: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeEnumEx(hnodeenum : HNODEENUMEX, dwindex : u32, pitem : *mut CLUSTER_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterNodeEnumEx(core::mem::transmute(hnodeenum), core::mem::transmute(dwindex), core::mem::transmute(pitem), core::mem::transmute(cbitem)) + ClusterNodeEnumEx(hnodeenum, dwindex, core::mem::transmute(pitem), core::mem::transmute(cbitem)) } #[inline] pub unsafe fn ClusterNodeGetEnumCount(hnodeenum: HNODEENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeGetEnumCount(hnodeenum : HNODEENUM) -> u32); - ClusterNodeGetEnumCount(core::mem::transmute(hnodeenum)) + ClusterNodeGetEnumCount(hnodeenum) } #[inline] pub unsafe fn ClusterNodeGetEnumCountEx(hnodeenum: HNODEENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeGetEnumCountEx(hnodeenum : HNODEENUMEX) -> u32); - ClusterNodeGetEnumCountEx(core::mem::transmute(hnodeenum)) + ClusterNodeGetEnumCountEx(hnodeenum) } #[inline] pub unsafe fn ClusterNodeOpenEnum(hnode: HNODE, dwtype: u32) -> HNODEENUM { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeOpenEnum(hnode : HNODE, dwtype : u32) -> HNODEENUM); - ClusterNodeOpenEnum(core::mem::transmute(hnode), core::mem::transmute(dwtype)) + ClusterNodeOpenEnum(hnode, dwtype) } #[inline] pub unsafe fn ClusterNodeOpenEnumEx(hnode: HNODE, dwtype: u32, poptions: Option<*const core::ffi::c_void>) -> HNODEENUMEX { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeOpenEnumEx(hnode : HNODE, dwtype : u32, poptions : *const core::ffi::c_void) -> HNODEENUMEX); - ClusterNodeOpenEnumEx(core::mem::transmute(hnode), core::mem::transmute(dwtype), core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))) + ClusterNodeOpenEnumEx(hnode, dwtype, core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterNodeReplacement(hcluster: HCLUSTER, lpsznodenamecurrent: P1, lpsznodenamenew: P2) -> u32 @@ -574,17 +574,17 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeReplacement(hcluster : HCLUSTER, lpsznodenamecurrent : windows_core::PCWSTR, lpsznodenamenew : windows_core::PCWSTR) -> u32); - ClusterNodeReplacement(core::mem::transmute(hcluster), lpsznodenamecurrent.param().abi(), lpsznodenamenew.param().abi()) + ClusterNodeReplacement(hcluster, lpsznodenamecurrent.param().abi(), lpsznodenamenew.param().abi()) } #[inline] pub unsafe fn ClusterOpenEnum(hcluster: HCLUSTER, dwtype: u32) -> HCLUSENUM { windows_targets::link!("clusapi.dll" "system" fn ClusterOpenEnum(hcluster : HCLUSTER, dwtype : u32) -> HCLUSENUM); - ClusterOpenEnum(core::mem::transmute(hcluster), core::mem::transmute(dwtype)) + ClusterOpenEnum(hcluster, dwtype) } #[inline] pub unsafe fn ClusterOpenEnumEx(hcluster: HCLUSTER, dwtype: u32, poptions: Option<*const core::ffi::c_void>) -> HCLUSENUMEX { windows_targets::link!("clusapi.dll" "system" fn ClusterOpenEnumEx(hcluster : HCLUSTER, dwtype : u32, poptions : *const core::ffi::c_void) -> HCLUSENUMEX); - ClusterOpenEnumEx(core::mem::transmute(hcluster), core::mem::transmute(dwtype), core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))) + ClusterOpenEnumEx(hcluster, dwtype, core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterPrepareSharedVolumeForBackup(lpszfilename: P0, lpszvolumepathname: windows_core::PWSTR, lpcchvolumepathname: *mut u32, lpszvolumename: windows_core::PWSTR, lpcchvolumename: *mut u32) -> u32 @@ -600,53 +600,53 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegBatchAddCommand(hregbatch : HREGBATCH, dwcommand : CLUSTER_REG_COMMAND, wzname : windows_core::PCWSTR, dwoptions : u32, lpdata : *const core::ffi::c_void, cbdata : u32) -> i32); - ClusterRegBatchAddCommand(core::mem::transmute(hregbatch), core::mem::transmute(dwcommand), wzname.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata)) + ClusterRegBatchAddCommand(hregbatch, dwcommand, wzname.param().abi(), dwoptions, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), cbdata) } #[inline] pub unsafe fn ClusterRegBatchCloseNotification(hbatchnotification: HREGBATCHNOTIFICATION) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegBatchCloseNotification(hbatchnotification : HREGBATCHNOTIFICATION) -> i32); - ClusterRegBatchCloseNotification(core::mem::transmute(hbatchnotification)) + ClusterRegBatchCloseNotification(hbatchnotification) } #[inline] pub unsafe fn ClusterRegBatchReadCommand(hbatchnotification: HREGBATCHNOTIFICATION, pbatchcommand: *mut CLUSTER_BATCH_COMMAND) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegBatchReadCommand(hbatchnotification : HREGBATCHNOTIFICATION, pbatchcommand : *mut CLUSTER_BATCH_COMMAND) -> i32); - ClusterRegBatchReadCommand(core::mem::transmute(hbatchnotification), core::mem::transmute(pbatchcommand)) + ClusterRegBatchReadCommand(hbatchnotification, core::mem::transmute(pbatchcommand)) } #[inline] pub unsafe fn ClusterRegCloseBatch(hregbatch: HREGBATCH, bcommit: bool, failedcommandnumber: Option<*mut i32>) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatch(hregbatch : HREGBATCH, bcommit : super::super::Foundation:: BOOL, failedcommandnumber : *mut i32) -> i32); - ClusterRegCloseBatch(core::mem::transmute(hregbatch), bcommit.into(), core::mem::transmute(failedcommandnumber.unwrap_or(core::mem::zeroed()))) + ClusterRegCloseBatch(hregbatch, bcommit.into(), core::mem::transmute(failedcommandnumber.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterRegCloseBatchEx(hregbatch: HREGBATCH, flags: u32, failedcommandnumber: Option<*mut i32>) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatchEx(hregbatch : HREGBATCH, flags : u32, failedcommandnumber : *mut i32) -> i32); - ClusterRegCloseBatchEx(core::mem::transmute(hregbatch), core::mem::transmute(flags), core::mem::transmute(failedcommandnumber.unwrap_or(core::mem::zeroed()))) + ClusterRegCloseBatchEx(hregbatch, flags, core::mem::transmute(failedcommandnumber.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterRegCloseBatchNotifyPort(hbatchnotifyport: HREGBATCHPORT) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatchNotifyPort(hbatchnotifyport : HREGBATCHPORT) -> i32); - ClusterRegCloseBatchNotifyPort(core::mem::transmute(hbatchnotifyport)) + ClusterRegCloseBatchNotifyPort(hbatchnotifyport) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegCloseKey(hkey: super::super::System::Registry::HKEY) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseKey(hkey : super::super::System::Registry:: HKEY) -> i32); - ClusterRegCloseKey(core::mem::transmute(hkey)) + ClusterRegCloseKey(hkey) } #[inline] pub unsafe fn ClusterRegCloseReadBatch(hregreadbatch: HREGREADBATCH, phregreadbatchreply: *mut HREGREADBATCHREPLY) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseReadBatch(hregreadbatch : HREGREADBATCH, phregreadbatchreply : *mut HREGREADBATCHREPLY) -> i32); - ClusterRegCloseReadBatch(core::mem::transmute(hregreadbatch), core::mem::transmute(phregreadbatchreply)) + ClusterRegCloseReadBatch(hregreadbatch, core::mem::transmute(phregreadbatchreply)) } #[inline] pub unsafe fn ClusterRegCloseReadBatchEx(hregreadbatch: HREGREADBATCH, flags: u32, phregreadbatchreply: *mut HREGREADBATCHREPLY) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseReadBatchEx(hregreadbatch : HREGREADBATCH, flags : u32, phregreadbatchreply : *mut HREGREADBATCHREPLY) -> i32); - ClusterRegCloseReadBatchEx(core::mem::transmute(hregreadbatch), core::mem::transmute(flags), core::mem::transmute(phregreadbatchreply)) + ClusterRegCloseReadBatchEx(hregreadbatch, flags, core::mem::transmute(phregreadbatchreply)) } #[inline] pub unsafe fn ClusterRegCloseReadBatchReply(hregreadbatchreply: HREGREADBATCHREPLY) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseReadBatchReply(hregreadbatchreply : HREGREADBATCHREPLY) -> i32); - ClusterRegCloseReadBatchReply(core::mem::transmute(hregreadbatchreply)) + ClusterRegCloseReadBatchReply(hregreadbatchreply) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -658,7 +658,7 @@ pub unsafe fn ClusterRegCreateBatch(hkey: Option i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateBatchNotifyPort(hkey : super::super::System::Registry:: HKEY, phbatchnotifyport : *mut HREGBATCHPORT) -> i32); - ClusterRegCreateBatchNotifyPort(core::mem::transmute(hkey), core::mem::transmute(phbatchnotifyport)) + ClusterRegCreateBatchNotifyPort(hkey, core::mem::transmute(phbatchnotifyport)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] @@ -667,7 +667,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateKey(hkey : super::super::System::Registry:: HKEY, lpszsubkey : windows_core::PCWSTR, dwoptions : u32, samdesired : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut super::super::System::Registry:: HKEY, lpdwdisposition : *mut u32) -> i32); - ClusterRegCreateKey(core::mem::transmute(hkey), lpszsubkey.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(samdesired), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed()))) + ClusterRegCreateKey(hkey, lpszsubkey.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] @@ -677,13 +677,13 @@ where P7: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateKeyEx(hkey : super::super::System::Registry:: HKEY, lpsubkey : windows_core::PCWSTR, dwoptions : u32, samdesired : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut super::super::System::Registry:: HKEY, lpdwdisposition : *mut u32, lpszreason : windows_core::PCWSTR) -> i32); - ClusterRegCreateKeyEx(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(samdesired), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterRegCreateKeyEx(hkey, lpsubkey.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegCreateReadBatch(hkey: super::super::System::Registry::HKEY, phregreadbatch: *mut HREGREADBATCH) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateReadBatch(hkey : super::super::System::Registry:: HKEY, phregreadbatch : *mut HREGREADBATCH) -> i32); - ClusterRegCreateReadBatch(core::mem::transmute(hkey), core::mem::transmute(phregreadbatch)) + ClusterRegCreateReadBatch(hkey, core::mem::transmute(phregreadbatch)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -692,7 +692,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegDeleteKey(hkey : super::super::System::Registry:: HKEY, lpszsubkey : windows_core::PCWSTR) -> i32); - ClusterRegDeleteKey(core::mem::transmute(hkey), lpszsubkey.param().abi()) + ClusterRegDeleteKey(hkey, lpszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -702,7 +702,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegDeleteKeyEx(hkey : super::super::System::Registry:: HKEY, lpsubkey : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> i32); - ClusterRegDeleteKeyEx(core::mem::transmute(hkey), lpsubkey.param().abi(), lpszreason.param().abi()) + ClusterRegDeleteKeyEx(hkey, lpsubkey.param().abi(), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -711,7 +711,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegDeleteValue(hkey : super::super::System::Registry:: HKEY, lpszvaluename : windows_core::PCWSTR) -> u32); - ClusterRegDeleteValue(core::mem::transmute(hkey), lpszvaluename.param().abi()) + ClusterRegDeleteValue(hkey, lpszvaluename.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -721,30 +721,30 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegDeleteValueEx(hkey : super::super::System::Registry:: HKEY, lpszvaluename : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - ClusterRegDeleteValueEx(core::mem::transmute(hkey), lpszvaluename.param().abi(), lpszreason.param().abi()) + ClusterRegDeleteValueEx(hkey, lpszvaluename.param().abi(), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegEnumKey(hkey: super::super::System::Registry::HKEY, dwindex: u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegEnumKey(hkey : super::super::System::Registry:: HKEY, dwindex : u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32, lpftlastwritetime : *mut super::super::Foundation:: FILETIME) -> i32); - ClusterRegEnumKey(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpszname), core::mem::transmute(lpcchname), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) + ClusterRegEnumKey(hkey, dwindex, core::mem::transmute(lpszname), core::mem::transmute(lpcchname), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegEnumValue(hkey: super::super::System::Registry::HKEY, dwindex: u32, lpszvaluename: windows_core::PWSTR, lpcchvaluename: *mut u32, lpdwtype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegEnumValue(hkey : super::super::System::Registry:: HKEY, dwindex : u32, lpszvaluename : windows_core::PWSTR, lpcchvaluename : *mut u32, lpdwtype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> u32); - ClusterRegEnumValue(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpszvaluename), core::mem::transmute(lpcchvaluename), core::mem::transmute(lpdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + ClusterRegEnumValue(hkey, dwindex, core::mem::transmute(lpszvaluename), core::mem::transmute(lpcchvaluename), core::mem::transmute(lpdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterRegGetBatchNotification(hbatchnotify: HREGBATCHPORT, phbatchnotification: *mut HREGBATCHNOTIFICATION) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegGetBatchNotification(hbatchnotify : HREGBATCHPORT, phbatchnotification : *mut HREGBATCHNOTIFICATION) -> i32); - ClusterRegGetBatchNotification(core::mem::transmute(hbatchnotify), core::mem::transmute(phbatchnotification)) + ClusterRegGetBatchNotification(hbatchnotify, core::mem::transmute(phbatchnotification)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegGetKeySecurity(hkey: super::super::System::Registry::HKEY, requestedinformation: u32, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegGetKeySecurity(hkey : super::super::System::Registry:: HKEY, requestedinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> i32); - ClusterRegGetKeySecurity(core::mem::transmute(hkey), core::mem::transmute(requestedinformation), core::mem::transmute(psecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) + ClusterRegGetKeySecurity(hkey, requestedinformation, core::mem::transmute(psecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -753,13 +753,13 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegOpenKey(hkey : super::super::System::Registry:: HKEY, lpszsubkey : windows_core::PCWSTR, samdesired : u32, phkresult : *mut super::super::System::Registry:: HKEY) -> i32); - ClusterRegOpenKey(core::mem::transmute(hkey), lpszsubkey.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(phkresult)) + ClusterRegOpenKey(hkey, lpszsubkey.param().abi(), samdesired, core::mem::transmute(phkresult)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegQueryInfoKey(hkey: super::super::System::Registry::HKEY, lpcsubkeys: *const u32, lpcchmaxsubkeylen: *const u32, lpcvalues: *const u32, lpcchmaxvaluenamelen: *const u32, lpcbmaxvaluelen: *const u32, lpcbsecuritydescriptor: *const u32, lpftlastwritetime: *const super::super::Foundation::FILETIME) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegQueryInfoKey(hkey : super::super::System::Registry:: HKEY, lpcsubkeys : *const u32, lpcchmaxsubkeylen : *const u32, lpcvalues : *const u32, lpcchmaxvaluenamelen : *const u32, lpcbmaxvaluelen : *const u32, lpcbsecuritydescriptor : *const u32, lpftlastwritetime : *const super::super::Foundation:: FILETIME) -> i32); - ClusterRegQueryInfoKey(core::mem::transmute(hkey), core::mem::transmute(lpcsubkeys), core::mem::transmute(lpcchmaxsubkeylen), core::mem::transmute(lpcvalues), core::mem::transmute(lpcchmaxvaluenamelen), core::mem::transmute(lpcbmaxvaluelen), core::mem::transmute(lpcbsecuritydescriptor), core::mem::transmute(lpftlastwritetime)) + ClusterRegQueryInfoKey(hkey, lpcsubkeys, lpcchmaxsubkeylen, lpcvalues, lpcchmaxvaluenamelen, lpcbmaxvaluelen, lpcbsecuritydescriptor, lpftlastwritetime) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -768,7 +768,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegQueryValue(hkey : super::super::System::Registry:: HKEY, lpszvaluename : windows_core::PCWSTR, lpdwvaluetype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> i32); - ClusterRegQueryValue(core::mem::transmute(hkey), lpszvaluename.param().abi(), core::mem::transmute(lpdwvaluetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + ClusterRegQueryValue(hkey, lpszvaluename.param().abi(), core::mem::transmute(lpdwvaluetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterRegReadBatchAddCommand(hregreadbatch: HREGREADBATCH, wzsubkeyname: P1, wzvaluename: P2) -> i32 @@ -777,18 +777,18 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegReadBatchAddCommand(hregreadbatch : HREGREADBATCH, wzsubkeyname : windows_core::PCWSTR, wzvaluename : windows_core::PCWSTR) -> i32); - ClusterRegReadBatchAddCommand(core::mem::transmute(hregreadbatch), wzsubkeyname.param().abi(), wzvaluename.param().abi()) + ClusterRegReadBatchAddCommand(hregreadbatch, wzsubkeyname.param().abi(), wzvaluename.param().abi()) } #[inline] pub unsafe fn ClusterRegReadBatchReplyNextCommand(hregreadbatchreply: HREGREADBATCHREPLY, pbatchcommand: *mut CLUSTER_READ_BATCH_COMMAND) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegReadBatchReplyNextCommand(hregreadbatchreply : HREGREADBATCHREPLY, pbatchcommand : *mut CLUSTER_READ_BATCH_COMMAND) -> i32); - ClusterRegReadBatchReplyNextCommand(core::mem::transmute(hregreadbatchreply), core::mem::transmute(pbatchcommand)) + ClusterRegReadBatchReplyNextCommand(hregreadbatchreply, core::mem::transmute(pbatchcommand)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegSetKeySecurity(hkey: super::super::System::Registry::HKEY, securityinformation: u32, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSetKeySecurity(hkey : super::super::System::Registry:: HKEY, securityinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> i32); - ClusterRegSetKeySecurity(core::mem::transmute(hkey), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + ClusterRegSetKeySecurity(hkey, securityinformation, psecuritydescriptor) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] @@ -797,7 +797,7 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSetKeySecurityEx(hkey : super::super::System::Registry:: HKEY, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, lpszreason : windows_core::PCWSTR) -> i32); - ClusterRegSetKeySecurityEx(core::mem::transmute(hkey), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor), lpszreason.param().abi()) + ClusterRegSetKeySecurityEx(hkey, securityinformation, psecuritydescriptor, lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -806,7 +806,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSetValue(hkey : super::super::System::Registry:: HKEY, lpszvaluename : windows_core::PCWSTR, dwtype : u32, lpdata : *const u8, cbdata : u32) -> u32); - ClusterRegSetValue(core::mem::transmute(hkey), lpszvaluename.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata), core::mem::transmute(cbdata)) + ClusterRegSetValue(hkey, lpszvaluename.param().abi(), dwtype, lpdata, cbdata) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -816,12 +816,12 @@ where P5: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSetValueEx(hkey : super::super::System::Registry:: HKEY, lpszvaluename : windows_core::PCWSTR, dwtype : u32, lpdata : *const u8, cbdata : u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterRegSetValueEx(core::mem::transmute(hkey), lpszvaluename.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata), core::mem::transmute(cbdata), lpszreason.param().abi()) + ClusterRegSetValueEx(hkey, lpszvaluename.param().abi(), dwtype, lpdata, cbdata, lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterRegSyncDatabase(hcluster: HCLUSTER, flags: u32) -> i32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSyncDatabase(hcluster : HCLUSTER, flags : u32) -> i32); - ClusterRegSyncDatabase(core::mem::transmute(hcluster), core::mem::transmute(flags)) + ClusterRegSyncDatabase(hcluster, flags) } #[inline] pub unsafe fn ClusterRemoveAffinityRule(hcluster: HCLUSTER, rulename: P1) -> u32 @@ -829,7 +829,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR) -> u32); - ClusterRemoveAffinityRule(core::mem::transmute(hcluster), rulename.param().abi()) + ClusterRemoveAffinityRule(hcluster, rulename.param().abi()) } #[inline] pub unsafe fn ClusterRemoveGroupFromAffinityRule(hcluster: HCLUSTER, rulename: P1, hgroup: HGROUP) -> u32 @@ -837,12 +837,12 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveGroupFromAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR, hgroup : HGROUP) -> u32); - ClusterRemoveGroupFromAffinityRule(core::mem::transmute(hcluster), rulename.param().abi(), core::mem::transmute(hgroup)) + ClusterRemoveGroupFromAffinityRule(hcluster, rulename.param().abi(), hgroup) } #[inline] pub unsafe fn ClusterRemoveGroupFromGroupSet(hgroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveGroupFromGroupSet(hgroup : HGROUP) -> u32); - ClusterRemoveGroupFromGroupSet(core::mem::transmute(hgroup)) + ClusterRemoveGroupFromGroupSet(hgroup) } #[inline] pub unsafe fn ClusterRemoveGroupFromGroupSetEx(hgroup: HGROUP, lpszreason: P1) -> u32 @@ -850,27 +850,27 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveGroupFromGroupSetEx(hgroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - ClusterRemoveGroupFromGroupSetEx(core::mem::transmute(hgroup), lpszreason.param().abi()) + ClusterRemoveGroupFromGroupSetEx(hgroup, lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceCloseEnum(hresenum: HRESENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceCloseEnum(hresenum : HRESENUM) -> u32); - ClusterResourceCloseEnum(core::mem::transmute(hresenum)) + ClusterResourceCloseEnum(hresenum) } #[inline] pub unsafe fn ClusterResourceCloseEnumEx(hresourceenumex: HRESENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceCloseEnumEx(hresourceenumex : HRESENUMEX) -> u32); - ClusterResourceCloseEnumEx(core::mem::transmute(hresourceenumex)) + ClusterResourceCloseEnumEx(hresourceenumex) } #[inline] pub unsafe fn ClusterResourceControl(hresource: HRESOURCE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceControl(hresource : HRESOURCE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterResourceControl(core::mem::transmute(hresource), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterResourceControl(hresource, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterResourceControlAsUser(hresource: HRESOURCE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceControlAsUser(hresource : HRESOURCE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterResourceControlAsUser(core::mem::transmute(hresource), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterResourceControlAsUser(hresource, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterResourceControlAsUserEx(hresource: HRESOURCE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -878,7 +878,7 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceControlAsUserEx(hresource : HRESOURCE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterResourceControlAsUserEx(core::mem::transmute(hresource), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterResourceControlAsUserEx(hresource, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceControlEx(hresource: HRESOURCE, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, cbinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P8) -> u32 @@ -886,32 +886,32 @@ where P8: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceControlEx(hresource : HRESOURCE, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterResourceControlEx(core::mem::transmute(hresource), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterResourceControlEx(hresource, core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceEnum(hresenum: HRESENUM, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceEnum(hresenum : HRESENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterResourceEnum(core::mem::transmute(hresenum), core::mem::transmute(dwindex), core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterResourceEnum(hresenum, dwindex, core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterResourceEnumEx(hresourceenumex: HRESENUMEX, dwindex: u32, pitem: *mut CLUSTER_RESOURCE_ENUM_ITEM, cbitem: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceEnumEx(hresourceenumex : HRESENUMEX, dwindex : u32, pitem : *mut CLUSTER_RESOURCE_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterResourceEnumEx(core::mem::transmute(hresourceenumex), core::mem::transmute(dwindex), core::mem::transmute(pitem), core::mem::transmute(cbitem)) + ClusterResourceEnumEx(hresourceenumex, dwindex, core::mem::transmute(pitem), core::mem::transmute(cbitem)) } #[inline] pub unsafe fn ClusterResourceGetEnumCount(hresenum: HRESENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceGetEnumCount(hresenum : HRESENUM) -> u32); - ClusterResourceGetEnumCount(core::mem::transmute(hresenum)) + ClusterResourceGetEnumCount(hresenum) } #[inline] pub unsafe fn ClusterResourceGetEnumCountEx(hresourceenumex: HRESENUMEX) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceGetEnumCountEx(hresourceenumex : HRESENUMEX) -> u32); - ClusterResourceGetEnumCountEx(core::mem::transmute(hresourceenumex)) + ClusterResourceGetEnumCountEx(hresourceenumex) } #[inline] pub unsafe fn ClusterResourceOpenEnum(hresource: HRESOURCE, dwtype: u32) -> HRESENUM { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceOpenEnum(hresource : HRESOURCE, dwtype : u32) -> HRESENUM); - ClusterResourceOpenEnum(core::mem::transmute(hresource), core::mem::transmute(dwtype)) + ClusterResourceOpenEnum(hresource, dwtype) } #[inline] pub unsafe fn ClusterResourceOpenEnumEx(hcluster: HCLUSTER, lpszproperties: P1, cbproperties: u32, lpszroproperties: P3, cbroproperties: u32, dwflags: u32) -> HRESENUMEX @@ -920,12 +920,12 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceOpenEnumEx(hcluster : HCLUSTER, lpszproperties : windows_core::PCWSTR, cbproperties : u32, lpszroproperties : windows_core::PCWSTR, cbroproperties : u32, dwflags : u32) -> HRESENUMEX); - ClusterResourceOpenEnumEx(core::mem::transmute(hcluster), lpszproperties.param().abi(), core::mem::transmute(cbproperties), lpszroproperties.param().abi(), core::mem::transmute(cbroproperties), core::mem::transmute(dwflags)) + ClusterResourceOpenEnumEx(hcluster, lpszproperties.param().abi(), cbproperties, lpszroproperties.param().abi(), cbroproperties, dwflags) } #[inline] pub unsafe fn ClusterResourceTypeCloseEnum(hrestypeenum: HRESTYPEENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeCloseEnum(hrestypeenum : HRESTYPEENUM) -> u32); - ClusterResourceTypeCloseEnum(core::mem::transmute(hrestypeenum)) + ClusterResourceTypeCloseEnum(hrestypeenum) } #[inline] pub unsafe fn ClusterResourceTypeControl(hcluster: HCLUSTER, lpszresourcetypename: P1, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 @@ -933,7 +933,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeControl(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterResourceTypeControl(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterResourceTypeControl(hcluster, lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterResourceTypeControlAsUser(hcluster: HCLUSTER, lpszresourcetypename: P1, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>) -> u32 @@ -941,7 +941,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeControlAsUser(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32) -> u32); - ClusterResourceTypeControlAsUser(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) + ClusterResourceTypeControlAsUser(hcluster, lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ClusterResourceTypeControlAsUserEx(hcluster: HCLUSTER, lpszresourcetypename: P1, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P9) -> u32 @@ -950,7 +950,7 @@ where P9: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeControlAsUserEx(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterResourceTypeControlAsUserEx(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterResourceTypeControlAsUserEx(hcluster, lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceTypeControlEx(hcluster: HCLUSTER, lpszresourcetypename: P1, hhostnode: Option, dwcontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpszreason: P9) -> u32 @@ -959,17 +959,17 @@ where P9: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeControlEx(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, hhostnode : HNODE, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpszreason : windows_core::PCWSTR) -> u32); - ClusterResourceTypeControlEx(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + ClusterResourceTypeControlEx(hcluster, lpszresourcetypename.param().abi(), core::mem::transmute(hhostnode.unwrap_or(core::mem::zeroed())), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceTypeEnum(hrestypeenum: HRESTYPEENUM, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeEnum(hrestypeenum : HRESTYPEENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterResourceTypeEnum(core::mem::transmute(hrestypeenum), core::mem::transmute(dwindex), core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) + ClusterResourceTypeEnum(hrestypeenum, dwindex, core::mem::transmute(lpdwtype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname)) } #[inline] pub unsafe fn ClusterResourceTypeGetEnumCount(hrestypeenum: HRESTYPEENUM) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeGetEnumCount(hrestypeenum : HRESTYPEENUM) -> u32); - ClusterResourceTypeGetEnumCount(core::mem::transmute(hrestypeenum)) + ClusterResourceTypeGetEnumCount(hrestypeenum) } #[inline] pub unsafe fn ClusterResourceTypeOpenEnum(hcluster: HCLUSTER, lpszresourcetypename: P1, dwtype: u32) -> HRESTYPEENUM @@ -977,7 +977,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeOpenEnum(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, dwtype : u32) -> HRESTYPEENUM); - ClusterResourceTypeOpenEnum(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), core::mem::transmute(dwtype)) + ClusterResourceTypeOpenEnum(hcluster, lpszresourcetypename.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterSetAccountAccess(hcluster: HCLUSTER, szaccountsid: P1, dwaccess: u32, dwcontroltype: u32) -> u32 @@ -985,7 +985,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterSetAccountAccess(hcluster : HCLUSTER, szaccountsid : windows_core::PCWSTR, dwaccess : u32, dwcontroltype : u32) -> u32); - ClusterSetAccountAccess(core::mem::transmute(hcluster), szaccountsid.param().abi(), core::mem::transmute(dwaccess), core::mem::transmute(dwcontroltype)) + ClusterSetAccountAccess(hcluster, szaccountsid.param().abi(), dwaccess, dwcontroltype) } #[inline] pub unsafe fn ClusterSharedVolumeSetSnapshotState(guidsnapshotset: windows_core::GUID, lpszvolumename: P1, state: CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE) -> u32 @@ -993,17 +993,17 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterSharedVolumeSetSnapshotState(guidsnapshotset : windows_core::GUID, lpszvolumename : windows_core::PCWSTR, state : CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE) -> u32); - ClusterSharedVolumeSetSnapshotState(core::mem::transmute(guidsnapshotset), lpszvolumename.param().abi(), core::mem::transmute(state)) + ClusterSharedVolumeSetSnapshotState(core::mem::transmute(guidsnapshotset), lpszvolumename.param().abi(), state) } #[inline] pub unsafe fn ClusterUpgradeFunctionalLevel(hcluster: HCLUSTER, perform: bool, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ClusterUpgradeFunctionalLevel(hcluster : HCLUSTER, perform : super::super::Foundation:: BOOL, pfnprogresscallback : PCLUSTER_UPGRADE_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> u32); - ClusterUpgradeFunctionalLevel(core::mem::transmute(hcluster), perform.into(), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) + ClusterUpgradeFunctionalLevel(hcluster, perform.into(), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateCluster(pconfig: *const CREATE_CLUSTER_CONFIG, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>) -> HCLUSTER { windows_targets::link!("clusapi.dll" "system" fn CreateCluster(pconfig : *const CREATE_CLUSTER_CONFIG, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> HCLUSTER); - CreateCluster(core::mem::transmute(pconfig), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) + CreateCluster(pconfig, core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateClusterAvailabilitySet(hcluster: HCLUSTER, lpavailabilitysetname: P1, pavailabilitysetconfig: *const CLUSTER_AVAILABILITY_SET_CONFIG) -> HGROUPSET @@ -1011,7 +1011,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterAvailabilitySet(hcluster : HCLUSTER, lpavailabilitysetname : windows_core::PCWSTR, pavailabilitysetconfig : *const CLUSTER_AVAILABILITY_SET_CONFIG) -> HGROUPSET); - CreateClusterAvailabilitySet(core::mem::transmute(hcluster), lpavailabilitysetname.param().abi(), core::mem::transmute(pavailabilitysetconfig)) + CreateClusterAvailabilitySet(hcluster, lpavailabilitysetname.param().abi(), pavailabilitysetconfig) } #[inline] pub unsafe fn CreateClusterGroup(hcluster: HCLUSTER, lpszgroupname: P1) -> HGROUP @@ -1019,7 +1019,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterGroup(hcluster : HCLUSTER, lpszgroupname : windows_core::PCWSTR) -> HGROUP); - CreateClusterGroup(core::mem::transmute(hcluster), lpszgroupname.param().abi()) + CreateClusterGroup(hcluster, lpszgroupname.param().abi()) } #[inline] pub unsafe fn CreateClusterGroupEx(hcluster: HCLUSTER, lpszgroupname: P1, pgroupinfo: Option<*const CLUSTER_CREATE_GROUP_INFO>) -> HGROUP @@ -1027,7 +1027,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterGroupEx(hcluster : HCLUSTER, lpszgroupname : windows_core::PCWSTR, pgroupinfo : *const CLUSTER_CREATE_GROUP_INFO) -> HGROUP); - CreateClusterGroupEx(core::mem::transmute(hcluster), lpszgroupname.param().abi(), core::mem::transmute(pgroupinfo.unwrap_or(core::mem::zeroed()))) + CreateClusterGroupEx(hcluster, lpszgroupname.param().abi(), core::mem::transmute(pgroupinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateClusterGroupSet(hcluster: HCLUSTER, groupsetname: P1) -> HGROUPSET @@ -1035,22 +1035,22 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterGroupSet(hcluster : HCLUSTER, groupsetname : windows_core::PCWSTR) -> HGROUPSET); - CreateClusterGroupSet(core::mem::transmute(hcluster), groupsetname.param().abi()) + CreateClusterGroupSet(hcluster, groupsetname.param().abi()) } #[inline] pub unsafe fn CreateClusterNameAccount(hcluster: HCLUSTER, pconfig: *const CREATE_CLUSTER_NAME_ACCOUNT, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn CreateClusterNameAccount(hcluster : HCLUSTER, pconfig : *const CREATE_CLUSTER_NAME_ACCOUNT, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> u32); - CreateClusterNameAccount(core::mem::transmute(hcluster), core::mem::transmute(pconfig), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) + CreateClusterNameAccount(hcluster, pconfig, core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateClusterNotifyPort(hchange: HCHANGE, hcluster: HCLUSTER, dwfilter: u32, dwnotifykey: usize) -> HCHANGE { windows_targets::link!("clusapi.dll" "system" fn CreateClusterNotifyPort(hchange : HCHANGE, hcluster : HCLUSTER, dwfilter : u32, dwnotifykey : usize) -> HCHANGE); - CreateClusterNotifyPort(core::mem::transmute(hchange), core::mem::transmute(hcluster), core::mem::transmute(dwfilter), core::mem::transmute(dwnotifykey)) + CreateClusterNotifyPort(hchange, hcluster, dwfilter, dwnotifykey) } #[inline] pub unsafe fn CreateClusterNotifyPortV2(hchange: HCHANGE, hcluster: HCLUSTER, filters: *const NOTIFY_FILTER_AND_TYPE, dwfiltercount: u32, dwnotifykey: usize) -> HCHANGE { windows_targets::link!("clusapi.dll" "system" fn CreateClusterNotifyPortV2(hchange : HCHANGE, hcluster : HCLUSTER, filters : *const NOTIFY_FILTER_AND_TYPE, dwfiltercount : u32, dwnotifykey : usize) -> HCHANGE); - CreateClusterNotifyPortV2(core::mem::transmute(hchange), core::mem::transmute(hcluster), core::mem::transmute(filters), core::mem::transmute(dwfiltercount), core::mem::transmute(dwnotifykey)) + CreateClusterNotifyPortV2(hchange, hcluster, filters, dwfiltercount, dwnotifykey) } #[inline] pub unsafe fn CreateClusterResource(hgroup: HGROUP, lpszresourcename: P1, lpszresourcetype: P2, dwflags: u32) -> HRESOURCE @@ -1059,7 +1059,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterResource(hgroup : HGROUP, lpszresourcename : windows_core::PCWSTR, lpszresourcetype : windows_core::PCWSTR, dwflags : u32) -> HRESOURCE); - CreateClusterResource(core::mem::transmute(hgroup), lpszresourcename.param().abi(), lpszresourcetype.param().abi(), core::mem::transmute(dwflags)) + CreateClusterResource(hgroup, lpszresourcename.param().abi(), lpszresourcetype.param().abi(), dwflags) } #[inline] pub unsafe fn CreateClusterResourceEx(hgroup: HGROUP, lpszresourcename: P1, lpszresourcetype: P2, dwflags: u32, lpszreason: P4) -> HRESOURCE @@ -1069,7 +1069,7 @@ where P4: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterResourceEx(hgroup : HGROUP, lpszresourcename : windows_core::PCWSTR, lpszresourcetype : windows_core::PCWSTR, dwflags : u32, lpszreason : windows_core::PCWSTR) -> HRESOURCE); - CreateClusterResourceEx(core::mem::transmute(hgroup), lpszresourcename.param().abi(), lpszresourcetype.param().abi(), core::mem::transmute(dwflags), lpszreason.param().abi()) + CreateClusterResourceEx(hgroup, lpszresourcename.param().abi(), lpszresourcetype.param().abi(), dwflags, lpszreason.param().abi()) } #[inline] pub unsafe fn CreateClusterResourceType(hcluster: HCLUSTER, lpszresourcetypename: P1, lpszdisplayname: P2, lpszresourcetypedll: P3, dwlooksalivepollinterval: u32, dwisalivepollinterval: u32) -> u32 @@ -1079,7 +1079,7 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterResourceType(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, lpszdisplayname : windows_core::PCWSTR, lpszresourcetypedll : windows_core::PCWSTR, dwlooksalivepollinterval : u32, dwisalivepollinterval : u32) -> u32); - CreateClusterResourceType(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), lpszdisplayname.param().abi(), lpszresourcetypedll.param().abi(), core::mem::transmute(dwlooksalivepollinterval), core::mem::transmute(dwisalivepollinterval)) + CreateClusterResourceType(hcluster, lpszresourcetypename.param().abi(), lpszdisplayname.param().abi(), lpszresourcetypedll.param().abi(), dwlooksalivepollinterval, dwisalivepollinterval) } #[inline] pub unsafe fn CreateClusterResourceTypeEx(hcluster: HCLUSTER, lpszresourcetypename: P1, lpszdisplayname: P2, lpszresourcetypedll: P3, dwlooksalivepollinterval: u32, dwisalivepollinterval: u32, lpszreason: P6) -> u32 @@ -1090,12 +1090,12 @@ where P6: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterResourceTypeEx(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, lpszdisplayname : windows_core::PCWSTR, lpszresourcetypedll : windows_core::PCWSTR, dwlooksalivepollinterval : u32, dwisalivepollinterval : u32, lpszreason : windows_core::PCWSTR) -> u32); - CreateClusterResourceTypeEx(core::mem::transmute(hcluster), lpszresourcetypename.param().abi(), lpszdisplayname.param().abi(), lpszresourcetypedll.param().abi(), core::mem::transmute(dwlooksalivepollinterval), core::mem::transmute(dwisalivepollinterval), lpszreason.param().abi()) + CreateClusterResourceTypeEx(hcluster, lpszresourcetypename.param().abi(), lpszdisplayname.param().abi(), lpszresourcetypedll.param().abi(), dwlooksalivepollinterval, dwisalivepollinterval, lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterGroup(hgroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroup(hgroup : HGROUP) -> u32); - DeleteClusterGroup(core::mem::transmute(hgroup)) + DeleteClusterGroup(hgroup) } #[inline] pub unsafe fn DeleteClusterGroupEx(hgroup: HGROUP, lpszreason: P1) -> u32 @@ -1103,12 +1103,12 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroupEx(hgroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterGroupEx(core::mem::transmute(hgroup), lpszreason.param().abi()) + DeleteClusterGroupEx(hgroup, lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterGroupSet(hgroupset: HGROUPSET) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroupSet(hgroupset : HGROUPSET) -> u32); - DeleteClusterGroupSet(core::mem::transmute(hgroupset)) + DeleteClusterGroupSet(hgroupset) } #[inline] pub unsafe fn DeleteClusterGroupSetEx(hgroupset: HGROUPSET, lpszreason: P1) -> u32 @@ -1116,12 +1116,12 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroupSetEx(hgroupset : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterGroupSetEx(core::mem::transmute(hgroupset), lpszreason.param().abi()) + DeleteClusterGroupSetEx(hgroupset, lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterResource(hresource: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResource(hresource : HRESOURCE) -> u32); - DeleteClusterResource(core::mem::transmute(hresource)) + DeleteClusterResource(hresource) } #[inline] pub unsafe fn DeleteClusterResourceEx(hresource: HRESOURCE, lpszreason: P1) -> u32 @@ -1129,7 +1129,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResourceEx(hresource : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterResourceEx(core::mem::transmute(hresource), lpszreason.param().abi()) + DeleteClusterResourceEx(hresource, lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterResourceType(hcluster: HCLUSTER, lpszresourcetypename: P1) -> u32 @@ -1137,7 +1137,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResourceType(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR) -> u32); - DeleteClusterResourceType(core::mem::transmute(hcluster), lpszresourcetypename.param().abi()) + DeleteClusterResourceType(hcluster, lpszresourcetypename.param().abi()) } #[inline] pub unsafe fn DeleteClusterResourceTypeEx(hcluster: HCLUSTER, lpsztypename: P1, lpszreason: P2) -> u32 @@ -1146,17 +1146,17 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResourceTypeEx(hcluster : HCLUSTER, lpsztypename : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterResourceTypeEx(core::mem::transmute(hcluster), lpsztypename.param().abi(), lpszreason.param().abi()) + DeleteClusterResourceTypeEx(hcluster, lpsztypename.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn DestroyCluster(hcluster: HCLUSTER, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>, fdeletevirtualcomputerobjects: bool) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DestroyCluster(hcluster : HCLUSTER, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void, fdeletevirtualcomputerobjects : super::super::Foundation:: BOOL) -> u32); - DestroyCluster(core::mem::transmute(hcluster), core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed())), fdeletevirtualcomputerobjects.into()) + DestroyCluster(hcluster, core::mem::transmute(pfnprogresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackarg.unwrap_or(core::mem::zeroed())), fdeletevirtualcomputerobjects.into()) } #[inline] pub unsafe fn DestroyClusterGroup(hgroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DestroyClusterGroup(hgroup : HGROUP) -> u32); - DestroyClusterGroup(core::mem::transmute(hgroup)) + DestroyClusterGroup(hgroup) } #[inline] pub unsafe fn DestroyClusterGroupEx(hgroup: HGROUP, lpszreason: P1) -> u32 @@ -1164,37 +1164,37 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DestroyClusterGroupEx(hgroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - DestroyClusterGroupEx(core::mem::transmute(hgroup), lpszreason.param().abi()) + DestroyClusterGroupEx(hgroup, lpszreason.param().abi()) } #[inline] pub unsafe fn DetermineCNOResTypeFromCluster(hcluster: HCLUSTER, pcnorestype: *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DetermineCNOResTypeFromCluster(hcluster : HCLUSTER, pcnorestype : *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32); - DetermineCNOResTypeFromCluster(core::mem::transmute(hcluster), core::mem::transmute(pcnorestype)) + DetermineCNOResTypeFromCluster(hcluster, core::mem::transmute(pcnorestype)) } #[inline] pub unsafe fn DetermineCNOResTypeFromNodelist(cnodes: u32, ppsznodenames: *const windows_core::PCWSTR, pcnorestype: *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DetermineCNOResTypeFromNodelist(cnodes : u32, ppsznodenames : *const windows_core::PCWSTR, pcnorestype : *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32); - DetermineCNOResTypeFromNodelist(core::mem::transmute(cnodes), core::mem::transmute(ppsznodenames), core::mem::transmute(pcnorestype)) + DetermineCNOResTypeFromNodelist(cnodes, ppsznodenames, core::mem::transmute(pcnorestype)) } #[inline] pub unsafe fn DetermineClusterCloudTypeFromCluster(hcluster: HCLUSTER, pcloudtype: *mut CLUSTER_CLOUD_TYPE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DetermineClusterCloudTypeFromCluster(hcluster : HCLUSTER, pcloudtype : *mut CLUSTER_CLOUD_TYPE) -> u32); - DetermineClusterCloudTypeFromCluster(core::mem::transmute(hcluster), core::mem::transmute(pcloudtype)) + DetermineClusterCloudTypeFromCluster(hcluster, core::mem::transmute(pcloudtype)) } #[inline] pub unsafe fn DetermineClusterCloudTypeFromNodelist(cnodes: u32, ppsznodenames: *const windows_core::PCWSTR, pcloudtype: *mut CLUSTER_CLOUD_TYPE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn DetermineClusterCloudTypeFromNodelist(cnodes : u32, ppsznodenames : *const windows_core::PCWSTR, pcloudtype : *mut CLUSTER_CLOUD_TYPE) -> u32); - DetermineClusterCloudTypeFromNodelist(core::mem::transmute(cnodes), core::mem::transmute(ppsznodenames), core::mem::transmute(pcloudtype)) + DetermineClusterCloudTypeFromNodelist(cnodes, ppsznodenames, core::mem::transmute(pcloudtype)) } #[inline] pub unsafe fn EvictClusterNode(hnode: HNODE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn EvictClusterNode(hnode : HNODE) -> u32); - EvictClusterNode(core::mem::transmute(hnode)) + EvictClusterNode(hnode) } #[inline] pub unsafe fn EvictClusterNodeEx(hnode: HNODE, dwtimeout: u32, phrcleanupstatus: *mut windows_core::HRESULT) -> u32 { windows_targets::link!("clusapi.dll" "system" fn EvictClusterNodeEx(hnode : HNODE, dwtimeout : u32, phrcleanupstatus : *mut windows_core::HRESULT) -> u32); - EvictClusterNodeEx(core::mem::transmute(hnode), core::mem::transmute(dwtimeout), core::mem::transmute(phrcleanupstatus)) + EvictClusterNodeEx(hnode, dwtimeout, core::mem::transmute(phrcleanupstatus)) } #[inline] pub unsafe fn EvictClusterNodeEx2(hnode: HNODE, dwtimeout: u32, phrcleanupstatus: *mut windows_core::HRESULT, lpszreason: P3) -> u32 @@ -1202,12 +1202,12 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn EvictClusterNodeEx2(hnode : HNODE, dwtimeout : u32, phrcleanupstatus : *mut windows_core::HRESULT, lpszreason : windows_core::PCWSTR) -> u32); - EvictClusterNodeEx2(core::mem::transmute(hnode), core::mem::transmute(dwtimeout), core::mem::transmute(phrcleanupstatus), lpszreason.param().abi()) + EvictClusterNodeEx2(hnode, dwtimeout, core::mem::transmute(phrcleanupstatus), lpszreason.param().abi()) } #[inline] pub unsafe fn FailClusterResource(hresource: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn FailClusterResource(hresource : HRESOURCE) -> u32); - FailClusterResource(core::mem::transmute(hresource)) + FailClusterResource(hresource) } #[inline] pub unsafe fn FailClusterResourceEx(hresource: HRESOURCE, lpszreason: P1) -> u32 @@ -1215,12 +1215,12 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn FailClusterResourceEx(hresource : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - FailClusterResourceEx(core::mem::transmute(hresource), lpszreason.param().abi()) + FailClusterResourceEx(hresource, lpszreason.param().abi()) } #[inline] pub unsafe fn FreeClusterCrypt(pcryptinfo: *const core::ffi::c_void) -> u32 { windows_targets::link!("resutils.dll" "system" fn FreeClusterCrypt(pcryptinfo : *const core::ffi::c_void) -> u32); - FreeClusterCrypt(core::mem::transmute(pcryptinfo)) + FreeClusterCrypt(pcryptinfo) } #[inline] pub unsafe fn FreeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32 { @@ -1235,50 +1235,50 @@ pub unsafe fn FreeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_ #[inline] pub unsafe fn GetClusterFromGroup(hgroup: HGROUP) -> HCLUSTER { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromGroup(hgroup : HGROUP) -> HCLUSTER); - GetClusterFromGroup(core::mem::transmute(hgroup)) + GetClusterFromGroup(hgroup) } #[inline] pub unsafe fn GetClusterFromNetInterface(hnetinterface: HNETINTERFACE) -> HCLUSTER { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromNetInterface(hnetinterface : HNETINTERFACE) -> HCLUSTER); - GetClusterFromNetInterface(core::mem::transmute(hnetinterface)) + GetClusterFromNetInterface(hnetinterface) } #[inline] pub unsafe fn GetClusterFromNetwork(hnetwork: HNETWORK) -> HCLUSTER { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromNetwork(hnetwork : HNETWORK) -> HCLUSTER); - GetClusterFromNetwork(core::mem::transmute(hnetwork)) + GetClusterFromNetwork(hnetwork) } #[inline] pub unsafe fn GetClusterFromNode(hnode: HNODE) -> HCLUSTER { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromNode(hnode : HNODE) -> HCLUSTER); - GetClusterFromNode(core::mem::transmute(hnode)) + GetClusterFromNode(hnode) } #[inline] pub unsafe fn GetClusterFromResource(hresource: HRESOURCE) -> HCLUSTER { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromResource(hresource : HRESOURCE) -> HCLUSTER); - GetClusterFromResource(core::mem::transmute(hresource)) + GetClusterFromResource(hresource) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterGroupKey(hgroup: HGROUP, samdesired: u32) -> windows_core::Result { windows_targets::link!("clusapi.dll" "system" fn GetClusterGroupKey(hgroup : HGROUP, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterGroupKey(core::mem::transmute(hgroup), core::mem::transmute(samdesired)); + let result__ = GetClusterGroupKey(hgroup, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterGroupState(hgroup: HGROUP, lpsznodename: Option, lpcchnodename: Option<*mut u32>) -> CLUSTER_GROUP_STATE { windows_targets::link!("clusapi.dll" "system" fn GetClusterGroupState(hgroup : HGROUP, lpsznodename : windows_core::PWSTR, lpcchnodename : *mut u32) -> CLUSTER_GROUP_STATE); - GetClusterGroupState(core::mem::transmute(hgroup), core::mem::transmute(lpsznodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchnodename.unwrap_or(core::mem::zeroed()))) + GetClusterGroupState(hgroup, core::mem::transmute(lpsznodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchnodename.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetClusterInformation(hcluster: HCLUSTER, lpszclustername: windows_core::PWSTR, lpcchclustername: *mut u32, lpclusterinfo: Option<*mut CLUSTERVERSIONINFO>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetClusterInformation(hcluster : HCLUSTER, lpszclustername : windows_core::PWSTR, lpcchclustername : *mut u32, lpclusterinfo : *mut CLUSTERVERSIONINFO) -> u32); - GetClusterInformation(core::mem::transmute(hcluster), core::mem::transmute(lpszclustername), core::mem::transmute(lpcchclustername), core::mem::transmute(lpclusterinfo.unwrap_or(core::mem::zeroed()))) + GetClusterInformation(hcluster, core::mem::transmute(lpszclustername), core::mem::transmute(lpcchclustername), core::mem::transmute(lpclusterinfo.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterKey(hcluster: HCLUSTER, samdesired: u32) -> windows_core::Result { windows_targets::link!("clusapi.dll" "system" fn GetClusterKey(hcluster : HCLUSTER, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterKey(core::mem::transmute(hcluster), core::mem::transmute(samdesired)); + let result__ = GetClusterKey(hcluster, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1288,36 +1288,36 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetInterface(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, lpsznetworkname : windows_core::PCWSTR, lpszinterfacename : windows_core::PWSTR, lpcchinterfacename : *mut u32) -> u32); - GetClusterNetInterface(core::mem::transmute(hcluster), lpsznodename.param().abi(), lpsznetworkname.param().abi(), core::mem::transmute(lpszinterfacename), core::mem::transmute(lpcchinterfacename)) + GetClusterNetInterface(hcluster, lpsznodename.param().abi(), lpsznetworkname.param().abi(), core::mem::transmute(lpszinterfacename), core::mem::transmute(lpcchinterfacename)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterNetInterfaceKey(hnetinterface: HNETINTERFACE, samdesired: u32) -> windows_core::Result { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetInterfaceKey(hnetinterface : HNETINTERFACE, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterNetInterfaceKey(core::mem::transmute(hnetinterface), core::mem::transmute(samdesired)); + let result__ = GetClusterNetInterfaceKey(hnetinterface, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNetInterfaceState(hnetinterface: HNETINTERFACE) -> CLUSTER_NETINTERFACE_STATE { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetInterfaceState(hnetinterface : HNETINTERFACE) -> CLUSTER_NETINTERFACE_STATE); - GetClusterNetInterfaceState(core::mem::transmute(hnetinterface)) + GetClusterNetInterfaceState(hnetinterface) } #[inline] pub unsafe fn GetClusterNetworkId(hnetwork: HNETWORK, lpsznetworkid: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetworkId(hnetwork : HNETWORK, lpsznetworkid : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - GetClusterNetworkId(core::mem::transmute(hnetwork), core::mem::transmute(lpsznetworkid), core::mem::transmute(lpcchname)) + GetClusterNetworkId(hnetwork, core::mem::transmute(lpsznetworkid), core::mem::transmute(lpcchname)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterNetworkKey(hnetwork: HNETWORK, samdesired: u32) -> windows_core::Result { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetworkKey(hnetwork : HNETWORK, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterNetworkKey(core::mem::transmute(hnetwork), core::mem::transmute(samdesired)); + let result__ = GetClusterNetworkKey(hnetwork, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNetworkState(hnetwork: HNETWORK) -> CLUSTER_NETWORK_STATE { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetworkState(hnetwork : HNETWORK) -> CLUSTER_NETWORK_STATE); - GetClusterNetworkState(core::mem::transmute(hnetwork)) + GetClusterNetworkState(hnetwork) } #[inline] pub unsafe fn GetClusterNodeId(hnode: Option, lpsznodeid: windows_core::PWSTR, lpcchname: *mut u32) -> u32 { @@ -1328,24 +1328,24 @@ pub unsafe fn GetClusterNodeId(hnode: Option, lpsznodeid: windows_core::P #[inline] pub unsafe fn GetClusterNodeKey(hnode: HNODE, samdesired: u32) -> windows_core::Result { windows_targets::link!("clusapi.dll" "system" fn GetClusterNodeKey(hnode : HNODE, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterNodeKey(core::mem::transmute(hnode), core::mem::transmute(samdesired)); + let result__ = GetClusterNodeKey(hnode, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNodeState(hnode: HNODE) -> CLUSTER_NODE_STATE { windows_targets::link!("clusapi.dll" "system" fn GetClusterNodeState(hnode : HNODE) -> CLUSTER_NODE_STATE); - GetClusterNodeState(core::mem::transmute(hnode)) + GetClusterNodeState(hnode) } #[inline] pub unsafe fn GetClusterNotify(hchange: HCHANGE, lpdwnotifykey: *mut usize, lpdwfiltertype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32, dwmilliseconds: u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetClusterNotify(hchange : HCHANGE, lpdwnotifykey : *mut usize, lpdwfiltertype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32, dwmilliseconds : u32) -> u32); - GetClusterNotify(core::mem::transmute(hchange), core::mem::transmute(lpdwnotifykey), core::mem::transmute(lpdwfiltertype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname), core::mem::transmute(dwmilliseconds)) + GetClusterNotify(hchange, core::mem::transmute(lpdwnotifykey), core::mem::transmute(lpdwfiltertype), core::mem::transmute(lpszname), core::mem::transmute(lpcchname), dwmilliseconds) } #[inline] pub unsafe fn GetClusterNotifyV2(hchange: HCHANGE, lpdwnotifykey: *mut usize, pfilterandtype: Option<*mut NOTIFY_FILTER_AND_TYPE>, buffer: Option<*mut u8>, lpbbuffersize: Option<*mut u32>, lpszobjectid: Option, lpcchobjectid: Option<*mut u32>, lpszparentid: Option, lpcchparentid: Option<*mut u32>, lpszname: Option, lpcchname: Option<*mut u32>, lpsztype: Option, lpcchtype: Option<*mut u32>, dwmilliseconds: Option) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetClusterNotifyV2(hchange : HCHANGE, lpdwnotifykey : *mut usize, pfilterandtype : *mut NOTIFY_FILTER_AND_TYPE, buffer : *mut u8, lpbbuffersize : *mut u32, lpszobjectid : windows_core::PWSTR, lpcchobjectid : *mut u32, lpszparentid : windows_core::PWSTR, lpcchparentid : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32, lpsztype : windows_core::PWSTR, lpcchtype : *mut u32, dwmilliseconds : u32) -> u32); GetClusterNotifyV2( - core::mem::transmute(hchange), + hchange, core::mem::transmute(lpdwnotifykey), core::mem::transmute(pfilterandtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), @@ -1364,29 +1364,29 @@ pub unsafe fn GetClusterNotifyV2(hchange: HCHANGE, lpdwnotifykey: *mut usize, pf #[inline] pub unsafe fn GetClusterQuorumResource(hcluster: HCLUSTER, lpszresourcename: windows_core::PWSTR, lpcchresourcename: *mut u32, lpszdevicename: windows_core::PWSTR, lpcchdevicename: *mut u32, lpdwmaxquorumlogsize: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetClusterQuorumResource(hcluster : HCLUSTER, lpszresourcename : windows_core::PWSTR, lpcchresourcename : *mut u32, lpszdevicename : windows_core::PWSTR, lpcchdevicename : *mut u32, lpdwmaxquorumlogsize : *mut u32) -> u32); - GetClusterQuorumResource(core::mem::transmute(hcluster), core::mem::transmute(lpszresourcename), core::mem::transmute(lpcchresourcename), core::mem::transmute(lpszdevicename), core::mem::transmute(lpcchdevicename), core::mem::transmute(lpdwmaxquorumlogsize)) + GetClusterQuorumResource(hcluster, core::mem::transmute(lpszresourcename), core::mem::transmute(lpcchresourcename), core::mem::transmute(lpszdevicename), core::mem::transmute(lpcchdevicename), core::mem::transmute(lpdwmaxquorumlogsize)) } #[inline] pub unsafe fn GetClusterResourceDependencyExpression(hresource: HRESOURCE, lpszdependencyexpression: Option, lpcchdependencyexpression: *mut u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceDependencyExpression(hresource : HRESOURCE, lpszdependencyexpression : windows_core::PWSTR, lpcchdependencyexpression : *mut u32) -> u32); - GetClusterResourceDependencyExpression(core::mem::transmute(hresource), core::mem::transmute(lpszdependencyexpression.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchdependencyexpression)) + GetClusterResourceDependencyExpression(hresource, core::mem::transmute(lpszdependencyexpression.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchdependencyexpression)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterResourceKey(hresource: HRESOURCE, samdesired: u32) -> windows_core::Result { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceKey(hresource : HRESOURCE, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterResourceKey(core::mem::transmute(hresource), core::mem::transmute(samdesired)); + let result__ = GetClusterResourceKey(hresource, samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterResourceNetworkName(hresource: HRESOURCE, lpbuffer: windows_core::PWSTR, nsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceNetworkName(hresource : HRESOURCE, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - GetClusterResourceNetworkName(core::mem::transmute(hresource), core::mem::transmute(lpbuffer), core::mem::transmute(nsize)).ok() + GetClusterResourceNetworkName(hresource, core::mem::transmute(lpbuffer), core::mem::transmute(nsize)).ok() } #[inline] pub unsafe fn GetClusterResourceState(hresource: HRESOURCE, lpsznodename: Option, lpcchnodename: Option<*mut u32>, lpszgroupname: Option, lpcchgroupname: Option<*mut u32>) -> CLUSTER_RESOURCE_STATE { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceState(hresource : HRESOURCE, lpsznodename : windows_core::PWSTR, lpcchnodename : *mut u32, lpszgroupname : windows_core::PWSTR, lpcchgroupname : *mut u32) -> CLUSTER_RESOURCE_STATE); - GetClusterResourceState(core::mem::transmute(hresource), core::mem::transmute(lpsznodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchnodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpszgroupname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchgroupname.unwrap_or(core::mem::zeroed()))) + GetClusterResourceState(hresource, core::mem::transmute(lpsznodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchnodename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpszgroupname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchgroupname.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1395,7 +1395,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceTypeKey(hcluster : HCLUSTER, lpsztypename : windows_core::PCWSTR, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterResourceTypeKey(core::mem::transmute(hcluster), lpsztypename.param().abi(), core::mem::transmute(samdesired)); + let result__ = GetClusterResourceTypeKey(hcluster, lpsztypename.param().abi(), samdesired); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1417,7 +1417,7 @@ where #[inline] pub unsafe fn GetNotifyEventHandle(hchange: HCHANGE, lphtargetevent: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn GetNotifyEventHandle(hchange : HCHANGE, lphtargetevent : *mut super::super::Foundation:: HANDLE) -> u32); - GetNotifyEventHandle(core::mem::transmute(hchange), core::mem::transmute(lphtargetevent)) + GetNotifyEventHandle(hchange, core::mem::transmute(lphtargetevent)) } #[inline] pub unsafe fn InitializeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32 { @@ -1440,12 +1440,12 @@ where #[inline] pub unsafe fn MoveClusterGroup(hgroup: HGROUP, hdestinationnode: Option) -> u32 { windows_targets::link!("clusapi.dll" "system" fn MoveClusterGroup(hgroup : HGROUP, hdestinationnode : HNODE) -> u32); - MoveClusterGroup(core::mem::transmute(hgroup), core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed()))) + MoveClusterGroup(hgroup, core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MoveClusterGroupEx(hgroup: HGROUP, hdestinationnode: Option, dwmoveflags: u32, lpinbuffer: Option<&[u8]>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn MoveClusterGroupEx(hgroup : HGROUP, hdestinationnode : HNODE, dwmoveflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - MoveClusterGroupEx(core::mem::transmute(hgroup), core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmoveflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + MoveClusterGroupEx(hgroup, core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), dwmoveflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn MoveClusterGroupEx2(hgroup: HGROUP, hdestinationnode: Option, dwmoveflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P5) -> u32 @@ -1453,17 +1453,17 @@ where P5: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn MoveClusterGroupEx2(hgroup : HGROUP, hdestinationnode : HNODE, dwmoveflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32, lpszreason : windows_core::PCWSTR) -> u32); - MoveClusterGroupEx2(core::mem::transmute(hgroup), core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmoveflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) + MoveClusterGroupEx2(hgroup, core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), dwmoveflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) } #[inline] pub unsafe fn OfflineClusterGroup(hgroup: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterGroup(hgroup : HGROUP) -> u32); - OfflineClusterGroup(core::mem::transmute(hgroup)) + OfflineClusterGroup(hgroup) } #[inline] pub unsafe fn OfflineClusterGroupEx(hgroup: HGROUP, dwofflineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterGroupEx(hgroup : HGROUP, dwofflineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OfflineClusterGroupEx(core::mem::transmute(hgroup), core::mem::transmute(dwofflineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + OfflineClusterGroupEx(hgroup, dwofflineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn OfflineClusterGroupEx2(hgroup: HGROUP, dwofflineflags: u32, lpinbuffer: Option<*const u8>, cbinbuffersize: u32, lpszreason: P4) -> u32 @@ -1471,17 +1471,17 @@ where P4: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterGroupEx2(hgroup : HGROUP, dwofflineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32, lpszreason : windows_core::PCWSTR) -> u32); - OfflineClusterGroupEx2(core::mem::transmute(hgroup), core::mem::transmute(dwofflineflags), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffersize), lpszreason.param().abi()) + OfflineClusterGroupEx2(hgroup, dwofflineflags, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffersize, lpszreason.param().abi()) } #[inline] pub unsafe fn OfflineClusterResource(hresource: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterResource(hresource : HRESOURCE) -> u32); - OfflineClusterResource(core::mem::transmute(hresource)) + OfflineClusterResource(hresource) } #[inline] pub unsafe fn OfflineClusterResourceEx(hresource: HRESOURCE, dwofflineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterResourceEx(hresource : HRESOURCE, dwofflineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OfflineClusterResourceEx(core::mem::transmute(hresource), core::mem::transmute(dwofflineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + OfflineClusterResourceEx(hresource, dwofflineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn OfflineClusterResourceEx2(hresource: HRESOURCE, dwofflineflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P4) -> u32 @@ -1489,17 +1489,17 @@ where P4: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterResourceEx2(hresource : HRESOURCE, dwofflineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32, lpszreason : windows_core::PCWSTR) -> u32); - OfflineClusterResourceEx2(core::mem::transmute(hresource), core::mem::transmute(dwofflineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) + OfflineClusterResourceEx2(hresource, dwofflineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) } #[inline] pub unsafe fn OnlineClusterGroup(hgroup: HGROUP, hdestinationnode: Option) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterGroup(hgroup : HGROUP, hdestinationnode : HNODE) -> u32); - OnlineClusterGroup(core::mem::transmute(hgroup), core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed()))) + OnlineClusterGroup(hgroup, core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OnlineClusterGroupEx(hgroup: HGROUP, hdestinationnode: Option, dwonlineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterGroupEx(hgroup : HGROUP, hdestinationnode : HNODE, dwonlineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OnlineClusterGroupEx(core::mem::transmute(hgroup), core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwonlineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + OnlineClusterGroupEx(hgroup, core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), dwonlineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn OnlineClusterGroupEx2(hgroup: HGROUP, hdestinationnode: Option, dwonlineflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P5) -> u32 @@ -1507,17 +1507,17 @@ where P5: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterGroupEx2(hgroup : HGROUP, hdestinationnode : HNODE, dwonlineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32, lpszreason : windows_core::PCWSTR) -> u32); - OnlineClusterGroupEx2(core::mem::transmute(hgroup), core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwonlineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) + OnlineClusterGroupEx2(hgroup, core::mem::transmute(hdestinationnode.unwrap_or(core::mem::zeroed())), dwonlineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) } #[inline] pub unsafe fn OnlineClusterResource(hresource: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterResource(hresource : HRESOURCE) -> u32); - OnlineClusterResource(core::mem::transmute(hresource)) + OnlineClusterResource(hresource) } #[inline] pub unsafe fn OnlineClusterResourceEx(hresource: HRESOURCE, dwonlineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterResourceEx(hresource : HRESOURCE, dwonlineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OnlineClusterResourceEx(core::mem::transmute(hresource), core::mem::transmute(dwonlineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + OnlineClusterResourceEx(hresource, dwonlineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn OnlineClusterResourceEx2(hresource: HRESOURCE, dwonlineflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P4) -> u32 @@ -1525,7 +1525,7 @@ where P4: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterResourceEx2(hresource : HRESOURCE, dwonlineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32, lpszreason : windows_core::PCWSTR) -> u32); - OnlineClusterResourceEx2(core::mem::transmute(hresource), core::mem::transmute(dwonlineflags), core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) + OnlineClusterResourceEx2(hresource, dwonlineflags, core::mem::transmute(lpinbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpinbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszreason.param().abi()) } #[inline] pub unsafe fn OpenCluster(lpszclustername: P0) -> HCLUSTER @@ -1541,7 +1541,7 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn OpenClusterCryptProvider(lpszresource : windows_core::PCWSTR, lpszprovider : *const i8, dwtype : u32, dwflags : u32) -> HCLUSCRYPTPROVIDER); - OpenClusterCryptProvider(lpszresource.param().abi(), core::mem::transmute(lpszprovider), core::mem::transmute(dwtype), core::mem::transmute(dwflags)) + OpenClusterCryptProvider(lpszresource.param().abi(), lpszprovider, dwtype, dwflags) } #[inline] pub unsafe fn OpenClusterCryptProviderEx(lpszresource: P0, lpszkeyname: P1, lpszprovider: *const i8, dwtype: u32, dwflags: u32) -> HCLUSCRYPTPROVIDER @@ -1550,7 +1550,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn OpenClusterCryptProviderEx(lpszresource : windows_core::PCWSTR, lpszkeyname : windows_core::PCWSTR, lpszprovider : *const i8, dwtype : u32, dwflags : u32) -> HCLUSCRYPTPROVIDER); - OpenClusterCryptProviderEx(lpszresource.param().abi(), lpszkeyname.param().abi(), core::mem::transmute(lpszprovider), core::mem::transmute(dwtype), core::mem::transmute(dwflags)) + OpenClusterCryptProviderEx(lpszresource.param().abi(), lpszkeyname.param().abi(), lpszprovider, dwtype, dwflags) } #[inline] pub unsafe fn OpenClusterEx(lpszclustername: P0, desiredaccess: u32, grantedaccess: Option<*mut u32>) -> HCLUSTER @@ -1558,7 +1558,7 @@ where P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterEx(lpszclustername : windows_core::PCWSTR, desiredaccess : u32, grantedaccess : *mut u32) -> HCLUSTER); - OpenClusterEx(lpszclustername.param().abi(), core::mem::transmute(desiredaccess), core::mem::transmute(grantedaccess.unwrap_or(core::mem::zeroed()))) + OpenClusterEx(lpszclustername.param().abi(), desiredaccess, core::mem::transmute(grantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OpenClusterGroup(hcluster: HCLUSTER, lpszgroupname: P1) -> HGROUP @@ -1566,7 +1566,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterGroup(hcluster : HCLUSTER, lpszgroupname : windows_core::PCWSTR) -> HGROUP); - OpenClusterGroup(core::mem::transmute(hcluster), lpszgroupname.param().abi()) + OpenClusterGroup(hcluster, lpszgroupname.param().abi()) } #[inline] pub unsafe fn OpenClusterGroupEx(hcluster: HCLUSTER, lpszgroupname: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HGROUP @@ -1574,7 +1574,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterGroupEx(hcluster : HCLUSTER, lpszgroupname : windows_core::PCWSTR, dwdesiredaccess : u32, lpdwgrantedaccess : *mut u32) -> HGROUP); - OpenClusterGroupEx(core::mem::transmute(hcluster), lpszgroupname.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) + OpenClusterGroupEx(hcluster, lpszgroupname.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OpenClusterGroupSet(hcluster: HCLUSTER, lpszgroupsetname: P1) -> HGROUPSET @@ -1582,7 +1582,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterGroupSet(hcluster : HCLUSTER, lpszgroupsetname : windows_core::PCWSTR) -> HGROUPSET); - OpenClusterGroupSet(core::mem::transmute(hcluster), lpszgroupsetname.param().abi()) + OpenClusterGroupSet(hcluster, lpszgroupsetname.param().abi()) } #[inline] pub unsafe fn OpenClusterNetInterface(hcluster: HCLUSTER, lpszinterfacename: P1) -> HNETINTERFACE @@ -1590,7 +1590,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNetInterface(hcluster : HCLUSTER, lpszinterfacename : windows_core::PCWSTR) -> HNETINTERFACE); - OpenClusterNetInterface(core::mem::transmute(hcluster), lpszinterfacename.param().abi()) + OpenClusterNetInterface(hcluster, lpszinterfacename.param().abi()) } #[inline] pub unsafe fn OpenClusterNetInterfaceEx(hcluster: HCLUSTER, lpszinterfacename: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HNETINTERFACE @@ -1598,7 +1598,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNetInterfaceEx(hcluster : HCLUSTER, lpszinterfacename : windows_core::PCWSTR, dwdesiredaccess : u32, lpdwgrantedaccess : *mut u32) -> HNETINTERFACE); - OpenClusterNetInterfaceEx(core::mem::transmute(hcluster), lpszinterfacename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) + OpenClusterNetInterfaceEx(hcluster, lpszinterfacename.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OpenClusterNetwork(hcluster: HCLUSTER, lpsznetworkname: P1) -> HNETWORK @@ -1606,7 +1606,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNetwork(hcluster : HCLUSTER, lpsznetworkname : windows_core::PCWSTR) -> HNETWORK); - OpenClusterNetwork(core::mem::transmute(hcluster), lpsznetworkname.param().abi()) + OpenClusterNetwork(hcluster, lpsznetworkname.param().abi()) } #[inline] pub unsafe fn OpenClusterNetworkEx(hcluster: HCLUSTER, lpsznetworkname: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HNETWORK @@ -1614,7 +1614,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNetworkEx(hcluster : HCLUSTER, lpsznetworkname : windows_core::PCWSTR, dwdesiredaccess : u32, lpdwgrantedaccess : *mut u32) -> HNETWORK); - OpenClusterNetworkEx(core::mem::transmute(hcluster), lpsznetworkname.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) + OpenClusterNetworkEx(hcluster, lpsznetworkname.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OpenClusterNode(hcluster: HCLUSTER, lpsznodename: P1) -> HNODE @@ -1622,12 +1622,12 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNode(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR) -> HNODE); - OpenClusterNode(core::mem::transmute(hcluster), lpsznodename.param().abi()) + OpenClusterNode(hcluster, lpsznodename.param().abi()) } #[inline] pub unsafe fn OpenClusterNodeById(hcluster: HCLUSTER, nodeid: u32) -> HNODE { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNodeById(hcluster : HCLUSTER, nodeid : u32) -> HNODE); - OpenClusterNodeById(core::mem::transmute(hcluster), core::mem::transmute(nodeid)) + OpenClusterNodeById(hcluster, nodeid) } #[inline] pub unsafe fn OpenClusterNodeEx(hcluster: HCLUSTER, lpsznodename: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HNODE @@ -1635,7 +1635,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNodeEx(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, dwdesiredaccess : u32, lpdwgrantedaccess : *mut u32) -> HNODE); - OpenClusterNodeEx(core::mem::transmute(hcluster), lpsznodename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) + OpenClusterNodeEx(hcluster, lpsznodename.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OpenClusterResource(hcluster: HCLUSTER, lpszresourcename: P1) -> HRESOURCE @@ -1643,7 +1643,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterResource(hcluster : HCLUSTER, lpszresourcename : windows_core::PCWSTR) -> HRESOURCE); - OpenClusterResource(core::mem::transmute(hcluster), lpszresourcename.param().abi()) + OpenClusterResource(hcluster, lpszresourcename.param().abi()) } #[inline] pub unsafe fn OpenClusterResourceEx(hcluster: HCLUSTER, lpszresourcename: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HRESOURCE @@ -1651,17 +1651,17 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterResourceEx(hcluster : HCLUSTER, lpszresourcename : windows_core::PCWSTR, dwdesiredaccess : u32, lpdwgrantedaccess : *mut u32) -> HRESOURCE); - OpenClusterResourceEx(core::mem::transmute(hcluster), lpszresourcename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) + OpenClusterResourceEx(hcluster, lpszresourcename.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PauseClusterNode(hnode: HNODE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn PauseClusterNode(hnode : HNODE) -> u32); - PauseClusterNode(core::mem::transmute(hnode)) + PauseClusterNode(hnode) } #[inline] pub unsafe fn PauseClusterNodeEx(hnode: HNODE, bdrainnode: bool, dwpauseflags: u32, hnodedraintarget: Option) -> u32 { windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx(hnode : HNODE, bdrainnode : super::super::Foundation:: BOOL, dwpauseflags : u32, hnodedraintarget : HNODE) -> u32); - PauseClusterNodeEx(core::mem::transmute(hnode), bdrainnode.into(), core::mem::transmute(dwpauseflags), core::mem::transmute(hnodedraintarget.unwrap_or(core::mem::zeroed()))) + PauseClusterNodeEx(hnode, bdrainnode.into(), dwpauseflags, core::mem::transmute(hnodedraintarget.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PauseClusterNodeEx2(hnode: HNODE, bdrainnode: bool, dwpauseflags: u32, hnodedraintarget: Option, lpszreason: P4) -> u32 @@ -1669,32 +1669,32 @@ where P4: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx2(hnode : HNODE, bdrainnode : super::super::Foundation:: BOOL, dwpauseflags : u32, hnodedraintarget : HNODE, lpszreason : windows_core::PCWSTR) -> u32); - PauseClusterNodeEx2(core::mem::transmute(hnode), bdrainnode.into(), core::mem::transmute(dwpauseflags), core::mem::transmute(hnodedraintarget.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) + PauseClusterNodeEx2(hnode, bdrainnode.into(), dwpauseflags, core::mem::transmute(hnodedraintarget.unwrap_or(core::mem::zeroed())), lpszreason.param().abi()) } #[inline] pub unsafe fn QueryAppInstanceVersion(appinstanceid: *const windows_core::GUID, instanceversionhigh: *mut u64, instanceversionlow: *mut u64, versionstatus: *mut super::super::Foundation::NTSTATUS) -> u32 { windows_targets::link!("ntlanman.dll" "system" fn QueryAppInstanceVersion(appinstanceid : *const windows_core::GUID, instanceversionhigh : *mut u64, instanceversionlow : *mut u64, versionstatus : *mut super::super::Foundation:: NTSTATUS) -> u32); - QueryAppInstanceVersion(core::mem::transmute(appinstanceid), core::mem::transmute(instanceversionhigh), core::mem::transmute(instanceversionlow), core::mem::transmute(versionstatus)) + QueryAppInstanceVersion(appinstanceid, core::mem::transmute(instanceversionhigh), core::mem::transmute(instanceversionlow), core::mem::transmute(versionstatus)) } #[inline] pub unsafe fn RegisterAppInstance(processhandle: super::super::Foundation::HANDLE, appinstanceid: *const windows_core::GUID, childreninheritappinstance: bool) -> u32 { windows_targets::link!("ntlanman.dll" "system" fn RegisterAppInstance(processhandle : super::super::Foundation:: HANDLE, appinstanceid : *const windows_core::GUID, childreninheritappinstance : super::super::Foundation:: BOOL) -> u32); - RegisterAppInstance(core::mem::transmute(processhandle), core::mem::transmute(appinstanceid), childreninheritappinstance.into()) + RegisterAppInstance(processhandle, appinstanceid, childreninheritappinstance.into()) } #[inline] pub unsafe fn RegisterAppInstanceVersion(appinstanceid: *const windows_core::GUID, instanceversionhigh: u64, instanceversionlow: u64) -> u32 { windows_targets::link!("ntlanman.dll" "system" fn RegisterAppInstanceVersion(appinstanceid : *const windows_core::GUID, instanceversionhigh : u64, instanceversionlow : u64) -> u32); - RegisterAppInstanceVersion(core::mem::transmute(appinstanceid), core::mem::transmute(instanceversionhigh), core::mem::transmute(instanceversionlow)) + RegisterAppInstanceVersion(appinstanceid, instanceversionhigh, instanceversionlow) } #[inline] pub unsafe fn RegisterClusterNotify(hchange: HCHANGE, dwfiltertype: u32, hobject: super::super::Foundation::HANDLE, dwnotifykey: usize) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RegisterClusterNotify(hchange : HCHANGE, dwfiltertype : u32, hobject : super::super::Foundation:: HANDLE, dwnotifykey : usize) -> u32); - RegisterClusterNotify(core::mem::transmute(hchange), core::mem::transmute(dwfiltertype), core::mem::transmute(hobject), core::mem::transmute(dwnotifykey)) + RegisterClusterNotify(hchange, dwfiltertype, hobject, dwnotifykey) } #[inline] pub unsafe fn RegisterClusterNotifyV2(hchange: HCHANGE, filter: NOTIFY_FILTER_AND_TYPE, hobject: super::super::Foundation::HANDLE, dwnotifykey: usize) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RegisterClusterNotifyV2(hchange : HCHANGE, filter : NOTIFY_FILTER_AND_TYPE, hobject : super::super::Foundation:: HANDLE, dwnotifykey : usize) -> u32); - RegisterClusterNotifyV2(core::mem::transmute(hchange), core::mem::transmute(filter), core::mem::transmute(hobject), core::mem::transmute(dwnotifykey)) + RegisterClusterNotifyV2(hchange, core::mem::transmute(filter), hobject, dwnotifykey) } #[inline] pub unsafe fn RegisterClusterResourceTypeNotifyV2(hchange: HCHANGE, hcluster: HCLUSTER, flags: i64, restypename: P3, dwnotifykey: usize) -> u32 @@ -1702,12 +1702,12 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RegisterClusterResourceTypeNotifyV2(hchange : HCHANGE, hcluster : HCLUSTER, flags : i64, restypename : windows_core::PCWSTR, dwnotifykey : usize) -> u32); - RegisterClusterResourceTypeNotifyV2(core::mem::transmute(hchange), core::mem::transmute(hcluster), core::mem::transmute(flags), restypename.param().abi(), core::mem::transmute(dwnotifykey)) + RegisterClusterResourceTypeNotifyV2(hchange, hcluster, flags, restypename.param().abi(), dwnotifykey) } #[inline] pub unsafe fn RemoveClusterGroupDependency(hgroup: HGROUP, hdependson: HGROUP) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupDependency(hgroup : HGROUP, hdependson : HGROUP) -> u32); - RemoveClusterGroupDependency(core::mem::transmute(hgroup), core::mem::transmute(hdependson)) + RemoveClusterGroupDependency(hgroup, hdependson) } #[inline] pub unsafe fn RemoveClusterGroupDependencyEx(hgroup: HGROUP, hdependson: HGROUP, lpszreason: P2) -> u32 @@ -1715,12 +1715,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupDependencyEx(hgroup : HGROUP, hdependson : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterGroupDependencyEx(core::mem::transmute(hgroup), core::mem::transmute(hdependson), lpszreason.param().abi()) + RemoveClusterGroupDependencyEx(hgroup, hdependson, lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupSetDependency(hgroupset: HGROUPSET, hdependson: HGROUPSET) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupSetDependency(hgroupset : HGROUPSET, hdependson : HGROUPSET) -> u32); - RemoveClusterGroupSetDependency(core::mem::transmute(hgroupset), core::mem::transmute(hdependson)) + RemoveClusterGroupSetDependency(hgroupset, hdependson) } #[inline] pub unsafe fn RemoveClusterGroupSetDependencyEx(hgroupset: HGROUPSET, hdependson: HGROUPSET, lpszreason: P2) -> u32 @@ -1728,12 +1728,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupSetDependencyEx(hgroupset : HGROUPSET, hdependson : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterGroupSetDependencyEx(core::mem::transmute(hgroupset), core::mem::transmute(hdependson), lpszreason.param().abi()) + RemoveClusterGroupSetDependencyEx(hgroupset, hdependson, lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupToGroupSetDependency(hgroup: HGROUP, hdependson: HGROUPSET) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupToGroupSetDependency(hgroup : HGROUP, hdependson : HGROUPSET) -> u32); - RemoveClusterGroupToGroupSetDependency(core::mem::transmute(hgroup), core::mem::transmute(hdependson)) + RemoveClusterGroupToGroupSetDependency(hgroup, hdependson) } #[inline] pub unsafe fn RemoveClusterGroupToGroupSetDependencyEx(hgroup: HGROUP, hdependson: HGROUPSET, lpszreason: P2) -> u32 @@ -1741,17 +1741,17 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupToGroupSetDependencyEx(hgroup : HGROUP, hdependson : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterGroupToGroupSetDependencyEx(core::mem::transmute(hgroup), core::mem::transmute(hdependson), lpszreason.param().abi()) + RemoveClusterGroupToGroupSetDependencyEx(hgroup, hdependson, lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterNameAccount(hcluster: HCLUSTER, bdeletecomputerobjects: bool) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterNameAccount(hcluster : HCLUSTER, bdeletecomputerobjects : super::super::Foundation:: BOOL) -> u32); - RemoveClusterNameAccount(core::mem::transmute(hcluster), bdeletecomputerobjects.into()) + RemoveClusterNameAccount(hcluster, bdeletecomputerobjects.into()) } #[inline] pub unsafe fn RemoveClusterResourceDependency(hresource: HRESOURCE, hdependson: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceDependency(hresource : HRESOURCE, hdependson : HRESOURCE) -> u32); - RemoveClusterResourceDependency(core::mem::transmute(hresource), core::mem::transmute(hdependson)) + RemoveClusterResourceDependency(hresource, hdependson) } #[inline] pub unsafe fn RemoveClusterResourceDependencyEx(hresource: HRESOURCE, hdependson: HRESOURCE, lpszreason: P2) -> u32 @@ -1759,12 +1759,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceDependencyEx(hresource : HRESOURCE, hdependson : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterResourceDependencyEx(core::mem::transmute(hresource), core::mem::transmute(hdependson), lpszreason.param().abi()) + RemoveClusterResourceDependencyEx(hresource, hdependson, lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterResourceNode(hresource: HRESOURCE, hnode: HNODE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceNode(hresource : HRESOURCE, hnode : HNODE) -> u32); - RemoveClusterResourceNode(core::mem::transmute(hresource), core::mem::transmute(hnode)) + RemoveClusterResourceNode(hresource, hnode) } #[inline] pub unsafe fn RemoveClusterResourceNodeEx(hresource: HRESOURCE, hnode: HNODE, lpszreason: P2) -> u32 @@ -1772,7 +1772,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceNodeEx(hresource : HRESOURCE, hnode : HNODE, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterResourceNodeEx(core::mem::transmute(hresource), core::mem::transmute(hnode), lpszreason.param().abi()) + RemoveClusterResourceNodeEx(hresource, hnode, lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterStorageNode(hcluster: HCLUSTER, lpszclusterstorageenclosurename: P1, dwtimeout: u32, dwflags: u32) -> u32 @@ -1780,7 +1780,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterStorageNode(hcluster : HCLUSTER, lpszclusterstorageenclosurename : windows_core::PCWSTR, dwtimeout : u32, dwflags : u32) -> u32); - RemoveClusterStorageNode(core::mem::transmute(hcluster), lpszclusterstorageenclosurename.param().abi(), core::mem::transmute(dwtimeout), core::mem::transmute(dwflags)) + RemoveClusterStorageNode(hcluster, lpszclusterstorageenclosurename.param().abi(), dwtimeout, dwflags) } #[inline] pub unsafe fn RemoveCrossClusterGroupSetDependency(hdependentgroupset: HGROUPSET, lpremoteclustername: P1, lpremotegroupsetname: P2) -> u32 @@ -1789,18 +1789,18 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveCrossClusterGroupSetDependency(hdependentgroupset : HGROUPSET, lpremoteclustername : windows_core::PCWSTR, lpremotegroupsetname : windows_core::PCWSTR) -> u32); - RemoveCrossClusterGroupSetDependency(core::mem::transmute(hdependentgroupset), lpremoteclustername.param().abi(), lpremotegroupsetname.param().abi()) + RemoveCrossClusterGroupSetDependency(hdependentgroupset, lpremoteclustername.param().abi(), lpremotegroupsetname.param().abi()) } #[inline] pub unsafe fn RemoveResourceFromClusterSharedVolumes(hresource: HRESOURCE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RemoveResourceFromClusterSharedVolumes(hresource : HRESOURCE) -> u32); - RemoveResourceFromClusterSharedVolumes(core::mem::transmute(hresource)) + RemoveResourceFromClusterSharedVolumes(hresource) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilAddUnknownProperties(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut core::ffi::c_void, pcboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilAddUnknownProperties(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutpropertylist : *mut core::ffi::c_void, pcboutpropertylistsize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilAddUnknownProperties(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(poutpropertylist), core::mem::transmute(pcboutpropertylistsize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilAddUnknownProperties(hkeyclusterkey, ppropertytable, core::mem::transmute(poutpropertylist), pcboutpropertylistsize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[inline] pub unsafe fn ResUtilCreateDirectoryTree(pszpath: P0) -> u32 @@ -1813,17 +1813,17 @@ where #[inline] pub unsafe fn ResUtilDupGroup(group: HGROUP, copy: *mut HGROUP) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilDupGroup(group : HGROUP, copy : *mut HGROUP) -> u32); - ResUtilDupGroup(core::mem::transmute(group), core::mem::transmute(copy)) + ResUtilDupGroup(group, core::mem::transmute(copy)) } #[inline] pub unsafe fn ResUtilDupParameterBlock(poutparams: *mut u8, pinparams: *const u8, ppropertytable: *const RESUTIL_PROPERTY_ITEM) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilDupParameterBlock(poutparams : *mut u8, pinparams : *const u8, ppropertytable : *const RESUTIL_PROPERTY_ITEM) -> u32); - ResUtilDupParameterBlock(core::mem::transmute(poutparams), core::mem::transmute(pinparams), core::mem::transmute(ppropertytable)) + ResUtilDupParameterBlock(core::mem::transmute(poutparams), pinparams, ppropertytable) } #[inline] pub unsafe fn ResUtilDupResource(group: HRESOURCE, copy: *mut HRESOURCE) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilDupResource(group : HRESOURCE, copy : *mut HRESOURCE) -> u32); - ResUtilDupResource(core::mem::transmute(group), core::mem::transmute(copy)) + ResUtilDupResource(group, core::mem::transmute(copy)) } #[inline] pub unsafe fn ResUtilDupString(pszinstring: P0) -> windows_core::PWSTR @@ -1836,23 +1836,23 @@ where #[inline] pub unsafe fn ResUtilEnumGroups(hcluster: HCLUSTER, hself: HGROUP, prescallback: LPGROUP_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumGroups(hcluster : HCLUSTER, hself : HGROUP, prescallback : LPGROUP_CALLBACK_EX, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilEnumGroups(core::mem::transmute(hcluster), core::mem::transmute(hself), core::mem::transmute(prescallback), core::mem::transmute(pparameter)) + ResUtilEnumGroups(hcluster, hself, prescallback, core::mem::transmute(pparameter)) } #[inline] pub unsafe fn ResUtilEnumGroupsEx(hcluster: HCLUSTER, hself: HGROUP, grouptype: CLUSGROUP_TYPE, prescallback: LPGROUP_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumGroupsEx(hcluster : HCLUSTER, hself : HGROUP, grouptype : CLUSGROUP_TYPE, prescallback : LPGROUP_CALLBACK_EX, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilEnumGroupsEx(core::mem::transmute(hcluster), core::mem::transmute(hself), core::mem::transmute(grouptype), core::mem::transmute(prescallback), core::mem::transmute(pparameter)) + ResUtilEnumGroupsEx(hcluster, hself, grouptype, prescallback, core::mem::transmute(pparameter)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilEnumPrivateProperties(hkeyclusterkey: super::super::System::Registry::HKEY, pszoutproperties: windows_core::PWSTR, cboutpropertiessize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumPrivateProperties(hkeyclusterkey : super::super::System::Registry:: HKEY, pszoutproperties : windows_core::PWSTR, cboutpropertiessize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilEnumPrivateProperties(core::mem::transmute(hkeyclusterkey), core::mem::transmute(pszoutproperties), core::mem::transmute(cboutpropertiessize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilEnumPrivateProperties(hkeyclusterkey, core::mem::transmute(pszoutproperties), cboutpropertiessize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[inline] pub unsafe fn ResUtilEnumProperties(ppropertytable: *const RESUTIL_PROPERTY_ITEM, pszoutproperties: windows_core::PWSTR, cboutpropertiessize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumProperties(ppropertytable : *const RESUTIL_PROPERTY_ITEM, pszoutproperties : windows_core::PWSTR, cboutpropertiessize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilEnumProperties(core::mem::transmute(ppropertytable), core::mem::transmute(pszoutproperties), core::mem::transmute(cboutpropertiessize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilEnumProperties(ppropertytable, core::mem::transmute(pszoutproperties), cboutpropertiessize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[inline] pub unsafe fn ResUtilEnumResources(hself: HRESOURCE, lpszrestypename: P1, prescallback: LPRESOURCE_CALLBACK, pparameter: *mut core::ffi::c_void) -> u32 @@ -1860,7 +1860,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumResources(hself : HRESOURCE, lpszrestypename : windows_core::PCWSTR, prescallback : LPRESOURCE_CALLBACK, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilEnumResources(core::mem::transmute(hself), lpszrestypename.param().abi(), core::mem::transmute(prescallback), core::mem::transmute(pparameter)) + ResUtilEnumResources(hself, lpszrestypename.param().abi(), prescallback, core::mem::transmute(pparameter)) } #[inline] pub unsafe fn ResUtilEnumResourcesEx(hcluster: HCLUSTER, hself: HRESOURCE, lpszrestypename: P2, prescallback: LPRESOURCE_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 @@ -1868,7 +1868,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumResourcesEx(hcluster : HCLUSTER, hself : HRESOURCE, lpszrestypename : windows_core::PCWSTR, prescallback : LPRESOURCE_CALLBACK_EX, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilEnumResourcesEx(core::mem::transmute(hcluster), core::mem::transmute(hself), lpszrestypename.param().abi(), core::mem::transmute(prescallback), core::mem::transmute(pparameter)) + ResUtilEnumResourcesEx(hcluster, hself, lpszrestypename.param().abi(), prescallback, core::mem::transmute(pparameter)) } #[inline] pub unsafe fn ResUtilEnumResourcesEx2(hcluster: HCLUSTER, hself: HRESOURCE, lpszrestypename: P2, prescallback: LPRESOURCE_CALLBACK_EX, pparameter: *mut core::ffi::c_void, dwdesiredaccess: u32) -> u32 @@ -1876,7 +1876,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumResourcesEx2(hcluster : HCLUSTER, hself : HRESOURCE, lpszrestypename : windows_core::PCWSTR, prescallback : LPRESOURCE_CALLBACK_EX, pparameter : *mut core::ffi::c_void, dwdesiredaccess : u32) -> u32); - ResUtilEnumResourcesEx2(core::mem::transmute(hcluster), core::mem::transmute(hself), lpszrestypename.param().abi(), core::mem::transmute(prescallback), core::mem::transmute(pparameter), core::mem::transmute(dwdesiredaccess)) + ResUtilEnumResourcesEx2(hcluster, hself, lpszrestypename.param().abi(), prescallback, core::mem::transmute(pparameter), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilExpandEnvironmentStrings(pszsrc: P0) -> windows_core::PWSTR @@ -1892,12 +1892,12 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindBinaryProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pbpropertyvalue : *mut *mut u8, pcbpropertyvaluesize : *mut u32) -> u32); - ResUtilFindBinaryProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pbpropertyvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpropertyvaluesize.unwrap_or(core::mem::zeroed()))) + ResUtilFindBinaryProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pbpropertyvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpropertyvaluesize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResUtilFindDependentDiskResourceDriveLetter(hcluster: HCLUSTER, hresource: HRESOURCE, pszdriveletter: windows_core::PWSTR, pcchdriveletter: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilFindDependentDiskResourceDriveLetter(hcluster : HCLUSTER, hresource : HRESOURCE, pszdriveletter : windows_core::PWSTR, pcchdriveletter : *mut u32) -> u32); - ResUtilFindDependentDiskResourceDriveLetter(core::mem::transmute(hcluster), core::mem::transmute(hresource), core::mem::transmute(pszdriveletter), core::mem::transmute(pcchdriveletter)) + ResUtilFindDependentDiskResourceDriveLetter(hcluster, hresource, core::mem::transmute(pszdriveletter), core::mem::transmute(pcchdriveletter)) } #[inline] pub unsafe fn ResUtilFindDwordProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, pdwpropertyvalue: *mut u32) -> u32 @@ -1905,7 +1905,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindDwordProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pdwpropertyvalue : *mut u32) -> u32); - ResUtilFindDwordProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pdwpropertyvalue)) + ResUtilFindDwordProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pdwpropertyvalue)) } #[inline] pub unsafe fn ResUtilFindExpandSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, pszpropertyvalue: Option<*mut windows_core::PWSTR>) -> u32 @@ -1913,7 +1913,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindExpandSzProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pszpropertyvalue : *mut windows_core::PWSTR) -> u32); - ResUtilFindExpandSzProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(core::mem::zeroed()))) + ResUtilFindExpandSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResUtilFindExpandedSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, pszpropertyvalue: Option<*mut windows_core::PWSTR>) -> u32 @@ -1921,7 +1921,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindExpandedSzProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pszpropertyvalue : *mut windows_core::PWSTR) -> u32); - ResUtilFindExpandedSzProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(core::mem::zeroed()))) + ResUtilFindExpandedSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResUtilFindFileTimeProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, pftpropertyvalue: *mut super::super::Foundation::FILETIME) -> u32 @@ -1929,7 +1929,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindFileTimeProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pftpropertyvalue : *mut super::super::Foundation:: FILETIME) -> u32); - ResUtilFindFileTimeProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pftpropertyvalue)) + ResUtilFindFileTimeProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pftpropertyvalue)) } #[inline] pub unsafe fn ResUtilFindLongProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, plpropertyvalue: *mut i32) -> u32 @@ -1937,7 +1937,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindLongProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, plpropertyvalue : *mut i32) -> u32); - ResUtilFindLongProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(plpropertyvalue)) + ResUtilFindLongProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(plpropertyvalue)) } #[inline] pub unsafe fn ResUtilFindMultiSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, pszpropertyvalue: *mut windows_core::PWSTR, pcbpropertyvaluesize: *mut u32) -> u32 @@ -1945,7 +1945,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindMultiSzProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pszpropertyvalue : *mut windows_core::PWSTR, pcbpropertyvaluesize : *mut u32) -> u32); - ResUtilFindMultiSzProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue), core::mem::transmute(pcbpropertyvaluesize)) + ResUtilFindMultiSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue), core::mem::transmute(pcbpropertyvaluesize)) } #[inline] pub unsafe fn ResUtilFindSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, pszpropertyvalue: Option<*mut windows_core::PWSTR>) -> u32 @@ -1953,7 +1953,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindSzProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, pszpropertyvalue : *mut windows_core::PWSTR) -> u32); - ResUtilFindSzProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(core::mem::zeroed()))) + ResUtilFindSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResUtilFindULargeIntegerProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P2, plpropertyvalue: *mut u64) -> u32 @@ -1961,7 +1961,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindULargeIntegerProperty(ppropertylist : *const core::ffi::c_void, cbpropertylistsize : u32, pszpropertyname : windows_core::PCWSTR, plpropertyvalue : *mut u64) -> u32); - ResUtilFindULargeIntegerProperty(core::mem::transmute(ppropertylist), core::mem::transmute(cbpropertylistsize), pszpropertyname.param().abi(), core::mem::transmute(plpropertyvalue)) + ResUtilFindULargeIntegerProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(plpropertyvalue)) } #[inline] pub unsafe fn ResUtilFreeEnvironment(lpenvironment: *mut core::ffi::c_void) -> u32 { @@ -1971,18 +1971,18 @@ pub unsafe fn ResUtilFreeEnvironment(lpenvironment: *mut core::ffi::c_void) -> u #[inline] pub unsafe fn ResUtilFreeParameterBlock(poutparams: *mut u8, pinparams: *const u8, ppropertytable: *const RESUTIL_PROPERTY_ITEM) { windows_targets::link!("resutils.dll" "system" fn ResUtilFreeParameterBlock(poutparams : *mut u8, pinparams : *const u8, ppropertytable : *const RESUTIL_PROPERTY_ITEM)); - ResUtilFreeParameterBlock(core::mem::transmute(poutparams), core::mem::transmute(pinparams), core::mem::transmute(ppropertytable)) + ResUtilFreeParameterBlock(core::mem::transmute(poutparams), pinparams, ppropertytable) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetAllProperties(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut core::ffi::c_void, cboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetAllProperties(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutpropertylist : *mut core::ffi::c_void, cboutpropertylistsize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilGetAllProperties(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(poutpropertylist), core::mem::transmute(cboutpropertylistsize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilGetAllProperties(hkeyclusterkey, ppropertytable, core::mem::transmute(poutpropertylist), cboutpropertylistsize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[inline] pub unsafe fn ResUtilGetBinaryProperty(ppboutvalue: *mut *mut u8, pcboutvaluesize: *mut u32, pvaluestruct: *const CLUSPROP_BINARY, pboldvalue: Option<&[u8]>, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetBinaryProperty(ppboutvalue : *mut *mut u8, pcboutvaluesize : *mut u32, pvaluestruct : *const CLUSPROP_BINARY, pboldvalue : *const u8, cboldvaluesize : u32, pppropertylist : *mut *mut u8, pcbpropertylistsize : *mut u32) -> u32); - ResUtilGetBinaryProperty(core::mem::transmute(ppboutvalue), core::mem::transmute(pcboutvaluesize), core::mem::transmute(pvaluestruct), core::mem::transmute(pboldvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboldvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) + ResUtilGetBinaryProperty(core::mem::transmute(ppboutvalue), core::mem::transmute(pcboutvaluesize), pvaluestruct, core::mem::transmute(pboldvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboldvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1991,42 +1991,42 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetBinaryValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, ppboutvalue : *mut *mut u8, pcboutvaluesize : *mut u32) -> u32); - ResUtilGetBinaryValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), core::mem::transmute(ppboutvalue), core::mem::transmute(pcboutvaluesize)) + ResUtilGetBinaryValue(hkeyclusterkey, pszvaluename.param().abi(), core::mem::transmute(ppboutvalue), core::mem::transmute(pcboutvaluesize)) } #[inline] pub unsafe fn ResUtilGetClusterGroupType(hgroup: HGROUP, grouptype: *mut CLUSGROUP_TYPE) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetClusterGroupType(hgroup : HGROUP, grouptype : *mut CLUSGROUP_TYPE) -> u32); - ResUtilGetClusterGroupType(core::mem::transmute(hgroup), core::mem::transmute(grouptype)) + ResUtilGetClusterGroupType(hgroup, core::mem::transmute(grouptype)) } #[inline] pub unsafe fn ResUtilGetClusterId(hcluster: HCLUSTER, guid: *mut windows_core::GUID) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetClusterId(hcluster : HCLUSTER, guid : *mut windows_core::GUID) -> u32); - ResUtilGetClusterId(core::mem::transmute(hcluster), core::mem::transmute(guid)) + ResUtilGetClusterId(hcluster, core::mem::transmute(guid)) } #[inline] pub unsafe fn ResUtilGetClusterRoleState(hcluster: HCLUSTER, eclusterrole: CLUSTER_ROLE) -> CLUSTER_ROLE_STATE { windows_targets::link!("resutils.dll" "system" fn ResUtilGetClusterRoleState(hcluster : HCLUSTER, eclusterrole : CLUSTER_ROLE) -> CLUSTER_ROLE_STATE); - ResUtilGetClusterRoleState(core::mem::transmute(hcluster), core::mem::transmute(eclusterrole)) + ResUtilGetClusterRoleState(hcluster, eclusterrole) } #[inline] pub unsafe fn ResUtilGetCoreClusterResources(hcluster: HCLUSTER, phclusternameresource: *mut HRESOURCE, phclusteripaddressresource: *mut HRESOURCE, phclusterquorumresource: *mut HRESOURCE) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetCoreClusterResources(hcluster : HCLUSTER, phclusternameresource : *mut HRESOURCE, phclusteripaddressresource : *mut HRESOURCE, phclusterquorumresource : *mut HRESOURCE) -> u32); - ResUtilGetCoreClusterResources(core::mem::transmute(hcluster), core::mem::transmute(phclusternameresource), core::mem::transmute(phclusteripaddressresource), core::mem::transmute(phclusterquorumresource)) + ResUtilGetCoreClusterResources(hcluster, core::mem::transmute(phclusternameresource), core::mem::transmute(phclusteripaddressresource), core::mem::transmute(phclusterquorumresource)) } #[inline] pub unsafe fn ResUtilGetCoreClusterResourcesEx(hclusterin: HCLUSTER, phclusternameresourceout: Option<*mut HRESOURCE>, phclusterquorumresourceout: Option<*mut HRESOURCE>, dwdesiredaccess: u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetCoreClusterResourcesEx(hclusterin : HCLUSTER, phclusternameresourceout : *mut HRESOURCE, phclusterquorumresourceout : *mut HRESOURCE, dwdesiredaccess : u32) -> u32); - ResUtilGetCoreClusterResourcesEx(core::mem::transmute(hclusterin), core::mem::transmute(phclusternameresourceout.unwrap_or(core::mem::zeroed())), core::mem::transmute(phclusterquorumresourceout.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdesiredaccess)) + ResUtilGetCoreClusterResourcesEx(hclusterin, core::mem::transmute(phclusternameresourceout.unwrap_or(core::mem::zeroed())), core::mem::transmute(phclusterquorumresourceout.unwrap_or(core::mem::zeroed())), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetCoreGroup(hcluster: HCLUSTER) -> HGROUP { windows_targets::link!("resutils.dll" "system" fn ResUtilGetCoreGroup(hcluster : HCLUSTER) -> HGROUP); - ResUtilGetCoreGroup(core::mem::transmute(hcluster)) + ResUtilGetCoreGroup(hcluster) } #[inline] pub unsafe fn ResUtilGetDwordProperty(pdwoutvalue: *mut u32, pvaluestruct: *const CLUSPROP_DWORD, dwoldvalue: u32, dwminimum: u32, dwmaximum: u32, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetDwordProperty(pdwoutvalue : *mut u32, pvaluestruct : *const CLUSPROP_DWORD, dwoldvalue : u32, dwminimum : u32, dwmaximum : u32, pppropertylist : *mut *mut u8, pcbpropertylistsize : *mut u32) -> u32); - ResUtilGetDwordProperty(core::mem::transmute(pdwoutvalue), core::mem::transmute(pvaluestruct), core::mem::transmute(dwoldvalue), core::mem::transmute(dwminimum), core::mem::transmute(dwmaximum), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) + ResUtilGetDwordProperty(core::mem::transmute(pdwoutvalue), pvaluestruct, dwoldvalue, dwminimum, dwmaximum, core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2035,22 +2035,22 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetDwordValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, pdwoutvalue : *mut u32, dwdefaultvalue : u32) -> u32); - ResUtilGetDwordValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), core::mem::transmute(pdwoutvalue), core::mem::transmute(dwdefaultvalue)) + ResUtilGetDwordValue(hkeyclusterkey, pszvaluename.param().abi(), core::mem::transmute(pdwoutvalue), dwdefaultvalue) } #[inline] pub unsafe fn ResUtilGetEnvironmentWithNetName(hresource: HRESOURCE) -> *mut core::ffi::c_void { windows_targets::link!("resutils.dll" "system" fn ResUtilGetEnvironmentWithNetName(hresource : HRESOURCE) -> *mut core::ffi::c_void); - ResUtilGetEnvironmentWithNetName(core::mem::transmute(hresource)) + ResUtilGetEnvironmentWithNetName(hresource) } #[inline] pub unsafe fn ResUtilGetFileTimeProperty(pftoutvalue: *mut super::super::Foundation::FILETIME, pvaluestruct: *const CLUSPROP_FILETIME, ftoldvalue: super::super::Foundation::FILETIME, ftminimum: super::super::Foundation::FILETIME, ftmaximum: super::super::Foundation::FILETIME, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetFileTimeProperty(pftoutvalue : *mut super::super::Foundation:: FILETIME, pvaluestruct : *const CLUSPROP_FILETIME, ftoldvalue : super::super::Foundation:: FILETIME, ftminimum : super::super::Foundation:: FILETIME, ftmaximum : super::super::Foundation:: FILETIME, pppropertylist : *mut *mut u8, pcbpropertylistsize : *mut u32) -> u32); - ResUtilGetFileTimeProperty(core::mem::transmute(pftoutvalue), core::mem::transmute(pvaluestruct), core::mem::transmute(ftoldvalue), core::mem::transmute(ftminimum), core::mem::transmute(ftmaximum), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) + ResUtilGetFileTimeProperty(core::mem::transmute(pftoutvalue), pvaluestruct, core::mem::transmute(ftoldvalue), core::mem::transmute(ftminimum), core::mem::transmute(ftmaximum), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) } #[inline] pub unsafe fn ResUtilGetLongProperty(ploutvalue: *mut i32, pvaluestruct: *const CLUSPROP_LONG, loldvalue: i32, lminimum: i32, lmaximum: i32, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetLongProperty(ploutvalue : *mut i32, pvaluestruct : *const CLUSPROP_LONG, loldvalue : i32, lminimum : i32, lmaximum : i32, pppropertylist : *mut *mut u8, pcbpropertylistsize : *mut u32) -> u32); - ResUtilGetLongProperty(core::mem::transmute(ploutvalue), core::mem::transmute(pvaluestruct), core::mem::transmute(loldvalue), core::mem::transmute(lminimum), core::mem::transmute(lmaximum), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) + ResUtilGetLongProperty(core::mem::transmute(ploutvalue), pvaluestruct, loldvalue, lminimum, lmaximum, core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) } #[inline] pub unsafe fn ResUtilGetMultiSzProperty(ppszoutvalue: *mut windows_core::PWSTR, pcboutvaluesize: *mut u32, pvaluestruct: *const CLUSPROP_SZ, pszoldvalue: P3, cboldvaluesize: u32, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 @@ -2058,42 +2058,42 @@ where P3: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetMultiSzProperty(ppszoutvalue : *mut windows_core::PWSTR, pcboutvaluesize : *mut u32, pvaluestruct : *const CLUSPROP_SZ, pszoldvalue : windows_core::PCWSTR, cboldvaluesize : u32, pppropertylist : *mut *mut u8, pcbpropertylistsize : *mut u32) -> u32); - ResUtilGetMultiSzProperty(core::mem::transmute(ppszoutvalue), core::mem::transmute(pcboutvaluesize), core::mem::transmute(pvaluestruct), pszoldvalue.param().abi(), core::mem::transmute(cboldvaluesize), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) + ResUtilGetMultiSzProperty(core::mem::transmute(ppszoutvalue), core::mem::transmute(pcboutvaluesize), pvaluestruct, pszoldvalue.param().abi(), cboldvaluesize, core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetPrivateProperties(hkeyclusterkey: super::super::System::Registry::HKEY, poutpropertylist: *mut core::ffi::c_void, cboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetPrivateProperties(hkeyclusterkey : super::super::System::Registry:: HKEY, poutpropertylist : *mut core::ffi::c_void, cboutpropertylistsize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilGetPrivateProperties(core::mem::transmute(hkeyclusterkey), core::mem::transmute(poutpropertylist), core::mem::transmute(cboutpropertylistsize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilGetPrivateProperties(hkeyclusterkey, core::mem::transmute(poutpropertylist), cboutpropertylistsize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetProperties(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut core::ffi::c_void, cboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetProperties(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutpropertylist : *mut core::ffi::c_void, cboutpropertylistsize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilGetProperties(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(poutpropertylist), core::mem::transmute(cboutpropertylistsize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilGetProperties(hkeyclusterkey, ppropertytable, core::mem::transmute(poutpropertylist), cboutpropertylistsize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetPropertiesToParameterBlock(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutparams: *mut u8, bcheckforrequiredproperties: bool, psznameofpropinerror: *mut windows_core::PWSTR) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetPropertiesToParameterBlock(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutparams : *mut u8, bcheckforrequiredproperties : super::super::Foundation:: BOOL, psznameofpropinerror : *mut windows_core::PWSTR) -> u32); - ResUtilGetPropertiesToParameterBlock(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(poutparams), bcheckforrequiredproperties.into(), core::mem::transmute(psznameofpropinerror)) + ResUtilGetPropertiesToParameterBlock(hkeyclusterkey, ppropertytable, core::mem::transmute(poutparams), bcheckforrequiredproperties.into(), core::mem::transmute(psznameofpropinerror)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetProperty(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytableitem: *const RESUTIL_PROPERTY_ITEM, poutpropertyitem: *mut *mut core::ffi::c_void, pcboutpropertyitemsize: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetProperty(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytableitem : *const RESUTIL_PROPERTY_ITEM, poutpropertyitem : *mut *mut core::ffi::c_void, pcboutpropertyitemsize : *mut u32) -> u32); - ResUtilGetProperty(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytableitem), core::mem::transmute(poutpropertyitem), core::mem::transmute(pcboutpropertyitemsize)) + ResUtilGetProperty(hkeyclusterkey, ppropertytableitem, core::mem::transmute(poutpropertyitem), core::mem::transmute(pcboutpropertyitemsize)) } #[inline] pub unsafe fn ResUtilGetPropertyFormats(ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertyformatlist: *mut core::ffi::c_void, cbpropertyformatlistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetPropertyFormats(ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutpropertyformatlist : *mut core::ffi::c_void, cbpropertyformatlistsize : u32, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilGetPropertyFormats(core::mem::transmute(ppropertytable), core::mem::transmute(poutpropertyformatlist), core::mem::transmute(cbpropertyformatlistsize), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilGetPropertyFormats(ppropertytable, core::mem::transmute(poutpropertyformatlist), cbpropertyformatlistsize, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetPropertySize(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytableitem: *const RESUTIL_PROPERTY_ITEM, pcboutpropertylistsize: *mut u32, pnpropertycount: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetPropertySize(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytableitem : *const RESUTIL_PROPERTY_ITEM, pcboutpropertylistsize : *mut u32, pnpropertycount : *mut u32) -> u32); - ResUtilGetPropertySize(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytableitem), core::mem::transmute(pcboutpropertylistsize), core::mem::transmute(pnpropertycount)) + ResUtilGetPropertySize(hkeyclusterkey, ppropertytableitem, core::mem::transmute(pcboutpropertylistsize), core::mem::transmute(pnpropertycount)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2102,7 +2102,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetQwordValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, pqwoutvalue : *mut u64, qwdefaultvalue : u64) -> u32); - ResUtilGetQwordValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), core::mem::transmute(pqwoutvalue), core::mem::transmute(qwdefaultvalue)) + ResUtilGetQwordValue(hkeyclusterkey, pszvaluename.param().abi(), core::mem::transmute(pqwoutvalue), qwdefaultvalue) } #[inline] pub unsafe fn ResUtilGetResourceDependency(hself: super::super::Foundation::HANDLE, lpszresourcetype: P1) -> HRESOURCE @@ -2110,17 +2110,17 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependency(hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR) -> HRESOURCE); - ResUtilGetResourceDependency(core::mem::transmute(hself), lpszresourcetype.param().abi()) + ResUtilGetResourceDependency(hself, lpszresourcetype.param().abi()) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByClass(hcluster: HCLUSTER, hself: super::super::Foundation::HANDLE, prci: *mut CLUS_RESOURCE_CLASS_INFO, brecurse: bool) -> HRESOURCE { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByClass(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, prci : *mut CLUS_RESOURCE_CLASS_INFO, brecurse : super::super::Foundation:: BOOL) -> HRESOURCE); - ResUtilGetResourceDependencyByClass(core::mem::transmute(hcluster), core::mem::transmute(hself), core::mem::transmute(prci), brecurse.into()) + ResUtilGetResourceDependencyByClass(hcluster, hself, core::mem::transmute(prci), brecurse.into()) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByClassEx(hcluster: HCLUSTER, hself: super::super::Foundation::HANDLE, prci: *mut CLUS_RESOURCE_CLASS_INFO, brecurse: bool, dwdesiredaccess: u32) -> HRESOURCE { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByClassEx(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, prci : *mut CLUS_RESOURCE_CLASS_INFO, brecurse : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HRESOURCE); - ResUtilGetResourceDependencyByClassEx(core::mem::transmute(hcluster), core::mem::transmute(hself), core::mem::transmute(prci), brecurse.into(), core::mem::transmute(dwdesiredaccess)) + ResUtilGetResourceDependencyByClassEx(hcluster, hself, core::mem::transmute(prci), brecurse.into(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByName(hcluster: HCLUSTER, hself: super::super::Foundation::HANDLE, lpszresourcetype: P2, brecurse: bool) -> HRESOURCE @@ -2128,7 +2128,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByName(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, brecurse : super::super::Foundation:: BOOL) -> HRESOURCE); - ResUtilGetResourceDependencyByName(core::mem::transmute(hcluster), core::mem::transmute(hself), lpszresourcetype.param().abi(), brecurse.into()) + ResUtilGetResourceDependencyByName(hcluster, hself, lpszresourcetype.param().abi(), brecurse.into()) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByNameEx(hcluster: HCLUSTER, hself: super::super::Foundation::HANDLE, lpszresourcetype: P2, brecurse: bool, dwdesiredaccess: u32) -> HRESOURCE @@ -2136,7 +2136,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByNameEx(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, brecurse : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HRESOURCE); - ResUtilGetResourceDependencyByNameEx(core::mem::transmute(hcluster), core::mem::transmute(hself), lpszresourcetype.param().abi(), brecurse.into(), core::mem::transmute(dwdesiredaccess)) + ResUtilGetResourceDependencyByNameEx(hcluster, hself, lpszresourcetype.param().abi(), brecurse.into(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetResourceDependencyEx(hself: super::super::Foundation::HANDLE, lpszresourcetype: P1, dwdesiredaccess: u32) -> HRESOURCE @@ -2144,17 +2144,17 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyEx(hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, dwdesiredaccess : u32) -> HRESOURCE); - ResUtilGetResourceDependencyEx(core::mem::transmute(hself), lpszresourcetype.param().abi(), core::mem::transmute(dwdesiredaccess)) + ResUtilGetResourceDependencyEx(hself, lpszresourcetype.param().abi(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetResourceDependentIPAddressProps(hresource: HRESOURCE, pszaddress: windows_core::PWSTR, pcchaddress: *mut u32, pszsubnetmask: windows_core::PWSTR, pcchsubnetmask: *mut u32, psznetwork: windows_core::PWSTR, pcchnetwork: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependentIPAddressProps(hresource : HRESOURCE, pszaddress : windows_core::PWSTR, pcchaddress : *mut u32, pszsubnetmask : windows_core::PWSTR, pcchsubnetmask : *mut u32, psznetwork : windows_core::PWSTR, pcchnetwork : *mut u32) -> u32); - ResUtilGetResourceDependentIPAddressProps(core::mem::transmute(hresource), core::mem::transmute(pszaddress), core::mem::transmute(pcchaddress), core::mem::transmute(pszsubnetmask), core::mem::transmute(pcchsubnetmask), core::mem::transmute(psznetwork), core::mem::transmute(pcchnetwork)) + ResUtilGetResourceDependentIPAddressProps(hresource, core::mem::transmute(pszaddress), core::mem::transmute(pcchaddress), core::mem::transmute(pszsubnetmask), core::mem::transmute(pcchsubnetmask), core::mem::transmute(psznetwork), core::mem::transmute(pcchnetwork)) } #[inline] pub unsafe fn ResUtilGetResourceName(hresource: HRESOURCE, pszresourcename: windows_core::PWSTR, pcchresourcenameinout: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceName(hresource : HRESOURCE, pszresourcename : windows_core::PWSTR, pcchresourcenameinout : *mut u32) -> u32); - ResUtilGetResourceName(core::mem::transmute(hresource), core::mem::transmute(pszresourcename), core::mem::transmute(pcchresourcenameinout)) + ResUtilGetResourceName(hresource, core::mem::transmute(pszresourcename), core::mem::transmute(pcchresourcenameinout)) } #[inline] pub unsafe fn ResUtilGetResourceNameDependency(lpszresourcename: P0, lpszresourcetype: P1) -> HRESOURCE @@ -2172,7 +2172,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceNameDependencyEx(lpszresourcename : windows_core::PCWSTR, lpszresourcetype : windows_core::PCWSTR, dwdesiredaccess : u32) -> HRESOURCE); - ResUtilGetResourceNameDependencyEx(lpszresourcename.param().abi(), lpszresourcetype.param().abi(), core::mem::transmute(dwdesiredaccess)) + ResUtilGetResourceNameDependencyEx(lpszresourcename.param().abi(), lpszresourcetype.param().abi(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetSzProperty(ppszoutvalue: *mut windows_core::PWSTR, pvaluestruct: *const CLUSPROP_SZ, pszoldvalue: P2, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 @@ -2180,7 +2180,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetSzProperty(ppszoutvalue : *mut windows_core::PWSTR, pvaluestruct : *const CLUSPROP_SZ, pszoldvalue : windows_core::PCWSTR, pppropertylist : *mut *mut u8, pcbpropertylistsize : *mut u32) -> u32); - ResUtilGetSzProperty(core::mem::transmute(ppszoutvalue), core::mem::transmute(pvaluestruct), pszoldvalue.param().abi(), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) + ResUtilGetSzProperty(core::mem::transmute(ppszoutvalue), pvaluestruct, pszoldvalue.param().abi(), core::mem::transmute(pppropertylist), core::mem::transmute(pcbpropertylistsize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2189,12 +2189,12 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetSzValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR) -> windows_core::PWSTR); - ResUtilGetSzValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi()) + ResUtilGetSzValue(hkeyclusterkey, pszvaluename.param().abi()) } #[inline] pub unsafe fn ResUtilGroupsEqual(hself: HGROUP, hgroup: HGROUP, pequal: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilGroupsEqual(hself : HGROUP, hgroup : HGROUP, pequal : *mut super::super::Foundation:: BOOL) -> u32); - ResUtilGroupsEqual(core::mem::transmute(hself), core::mem::transmute(hgroup), core::mem::transmute(pequal)) + ResUtilGroupsEqual(hself, hgroup, core::mem::transmute(pequal)) } #[inline] pub unsafe fn ResUtilIsPathValid(pszpath: P0) -> super::super::Foundation::BOOL @@ -2207,27 +2207,27 @@ where #[inline] pub unsafe fn ResUtilIsResourceClassEqual(prci: *mut CLUS_RESOURCE_CLASS_INFO, hresource: HRESOURCE) -> super::super::Foundation::BOOL { windows_targets::link!("resutils.dll" "system" fn ResUtilIsResourceClassEqual(prci : *mut CLUS_RESOURCE_CLASS_INFO, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - ResUtilIsResourceClassEqual(core::mem::transmute(prci), core::mem::transmute(hresource)) + ResUtilIsResourceClassEqual(core::mem::transmute(prci), hresource) } #[inline] pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL { windows_targets::link!("resutils.dll" "system" fn ResUtilLeftPaxosIsLessThanRight(left : *const PaxosTagCStruct, right : *const PaxosTagCStruct) -> super::super::Foundation:: BOOL); - ResUtilLeftPaxosIsLessThanRight(core::mem::transmute(left), core::mem::transmute(right)) + ResUtilLeftPaxosIsLessThanRight(left, right) } #[inline] pub unsafe fn ResUtilNodeEnum(hcluster: HCLUSTER, pnodecallback: LPNODE_CALLBACK, pparameter: *mut core::ffi::c_void) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilNodeEnum(hcluster : HCLUSTER, pnodecallback : LPNODE_CALLBACK, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilNodeEnum(core::mem::transmute(hcluster), core::mem::transmute(pnodecallback), core::mem::transmute(pparameter)) + ResUtilNodeEnum(hcluster, pnodecallback, core::mem::transmute(pparameter)) } #[inline] pub unsafe fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL { windows_targets::link!("resutils.dll" "system" fn ResUtilPaxosComparer(left : *const PaxosTagCStruct, right : *const PaxosTagCStruct) -> super::super::Foundation:: BOOL); - ResUtilPaxosComparer(core::mem::transmute(left), core::mem::transmute(right)) + ResUtilPaxosComparer(left, right) } #[inline] pub unsafe fn ResUtilPropertyListFromParameterBlock(ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: Option<*mut core::ffi::c_void>, pcboutpropertylistsize: *mut u32, pinparams: *const u8, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilPropertyListFromParameterBlock(ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutpropertylist : *mut core::ffi::c_void, pcboutpropertylistsize : *mut u32, pinparams : *const u8, pcbbytesreturned : *mut u32, pcbrequired : *mut u32) -> u32); - ResUtilPropertyListFromParameterBlock(core::mem::transmute(ppropertytable), core::mem::transmute(poutpropertylist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutpropertylistsize), core::mem::transmute(pinparams), core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) + ResUtilPropertyListFromParameterBlock(ppropertytable, core::mem::transmute(poutpropertylist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutpropertylistsize), pinparams, core::mem::transmute(pcbbytesreturned), core::mem::transmute(pcbrequired)) } #[inline] pub unsafe fn ResUtilRemoveResourceServiceEnvironment(pszservicename: P0, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 @@ -2235,12 +2235,12 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilRemoveResourceServiceEnvironment(pszservicename : windows_core::PCWSTR, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilRemoveResourceServiceEnvironment(pszservicename.param().abi(), core::mem::transmute(pfnlogevent), core::mem::transmute(hresourcehandle)) + ResUtilRemoveResourceServiceEnvironment(pszservicename.param().abi(), pfnlogevent, hresourcehandle) } #[inline] pub unsafe fn ResUtilResourceDepEnum(hself: HRESOURCE, enumtype: u32, prescallback: LPRESOURCE_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilResourceDepEnum(hself : HRESOURCE, enumtype : u32, prescallback : LPRESOURCE_CALLBACK_EX, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilResourceDepEnum(core::mem::transmute(hself), core::mem::transmute(enumtype), core::mem::transmute(prescallback), core::mem::transmute(pparameter)) + ResUtilResourceDepEnum(hself, enumtype, prescallback, core::mem::transmute(pparameter)) } #[inline] pub unsafe fn ResUtilResourceTypesEqual(lpszresourcetypename: P0, hresource: HRESOURCE) -> super::super::Foundation::BOOL @@ -2248,12 +2248,12 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilResourceTypesEqual(lpszresourcetypename : windows_core::PCWSTR, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - ResUtilResourceTypesEqual(lpszresourcetypename.param().abi(), core::mem::transmute(hresource)) + ResUtilResourceTypesEqual(lpszresourcetypename.param().abi(), hresource) } #[inline] pub unsafe fn ResUtilResourcesEqual(hself: HRESOURCE, hresource: HRESOURCE) -> super::super::Foundation::BOOL { windows_targets::link!("resutils.dll" "system" fn ResUtilResourcesEqual(hself : HRESOURCE, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - ResUtilResourcesEqual(core::mem::transmute(hself), core::mem::transmute(hresource)) + ResUtilResourcesEqual(hself, hresource) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2262,7 +2262,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetBinaryValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, pbnewvalue : *const u8, cbnewvaluesize : u32, ppboutvalue : *mut *mut u8, pcboutvaluesize : *mut u32) -> u32); - ResUtilSetBinaryValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), core::mem::transmute(pbnewvalue.as_ptr()), pbnewvalue.len().try_into().unwrap(), core::mem::transmute(ppboutvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutvaluesize)) + ResUtilSetBinaryValue(hkeyclusterkey, pszvaluename.param().abi(), core::mem::transmute(pbnewvalue.as_ptr()), pbnewvalue.len().try_into().unwrap(), core::mem::transmute(ppboutvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutvaluesize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2271,7 +2271,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetDwordValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, dwnewvalue : u32, pdwoutvalue : *mut u32) -> u32); - ResUtilSetDwordValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), core::mem::transmute(dwnewvalue), core::mem::transmute(pdwoutvalue)) + ResUtilSetDwordValue(hkeyclusterkey, pszvaluename.param().abi(), dwnewvalue, core::mem::transmute(pdwoutvalue)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2281,7 +2281,7 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetExpandSzValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, psznewvalue : windows_core::PCWSTR, ppszoutstring : *mut windows_core::PWSTR) -> u32); - ResUtilSetExpandSzValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(core::mem::zeroed()))) + ResUtilSetExpandSzValue(hkeyclusterkey, pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2291,37 +2291,37 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetMultiSzValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, psznewvalue : windows_core::PCWSTR, cbnewvaluesize : u32, ppszoutvalue : *mut windows_core::PWSTR, pcboutvaluesize : *mut u32) -> u32); - ResUtilSetMultiSzValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(cbnewvaluesize), core::mem::transmute(ppszoutvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutvaluesize.unwrap_or(core::mem::zeroed()))) + ResUtilSetMultiSzValue(hkeyclusterkey, pszvaluename.param().abi(), psznewvalue.param().abi(), cbnewvaluesize, core::mem::transmute(ppszoutvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutvaluesize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPrivatePropertyList(hkeyclusterkey: super::super::System::Registry::HKEY, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilSetPrivatePropertyList(hkeyclusterkey : super::super::System::Registry:: HKEY, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32) -> u32); - ResUtilSetPrivatePropertyList(core::mem::transmute(hkeyclusterkey), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize)) + ResUtilSetPrivatePropertyList(hkeyclusterkey, pinpropertylist, cbinpropertylistsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyParameterBlock(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, pinparams: *const u8, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: *mut u8) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyParameterBlock(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, pinparams : *const u8, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); - ResUtilSetPropertyParameterBlock(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(reserved), core::mem::transmute(pinparams), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize), core::mem::transmute(poutparams)) + ResUtilSetPropertyParameterBlock(hkeyclusterkey, ppropertytable, core::mem::transmute(reserved), pinparams, pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyParameterBlockEx(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, pinparams: *const u8, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, bforcewrite: bool, poutparams: *mut u8) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyParameterBlockEx(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, pinparams : *const u8, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, bforcewrite : super::super::Foundation:: BOOL, poutparams : *mut u8) -> u32); - ResUtilSetPropertyParameterBlockEx(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(reserved), core::mem::transmute(pinparams), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize), bforcewrite.into(), core::mem::transmute(poutparams)) + ResUtilSetPropertyParameterBlockEx(hkeyclusterkey, ppropertytable, core::mem::transmute(reserved), pinparams, pinpropertylist, cbinpropertylistsize, bforcewrite.into(), core::mem::transmute(poutparams)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyTable(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: Option<*const core::ffi::c_void>, ballowunknownproperties: bool, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: Option<*mut u8>) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyTable(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *const core::ffi::c_void, ballowunknownproperties : super::super::Foundation:: BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); - ResUtilSetPropertyTable(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), ballowunknownproperties.into(), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize), core::mem::transmute(poutparams.unwrap_or(core::mem::zeroed()))) + ResUtilSetPropertyTable(hkeyclusterkey, ppropertytable, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), ballowunknownproperties.into(), pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyTableEx(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, ballowunknownproperties: bool, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, bforcewrite: bool, poutparams: *mut u8) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyTableEx(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, ballowunknownproperties : super::super::Foundation:: BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, bforcewrite : super::super::Foundation:: BOOL, poutparams : *mut u8) -> u32); - ResUtilSetPropertyTableEx(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(reserved), ballowunknownproperties.into(), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize), bforcewrite.into(), core::mem::transmute(poutparams)) + ResUtilSetPropertyTableEx(hkeyclusterkey, ppropertytable, core::mem::transmute(reserved), ballowunknownproperties.into(), pinpropertylist, cbinpropertylistsize, bforcewrite.into(), core::mem::transmute(poutparams)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2330,7 +2330,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetQwordValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, qwnewvalue : u64, pqwoutvalue : *mut u64) -> u32); - ResUtilSetQwordValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), core::mem::transmute(qwnewvalue), core::mem::transmute(pqwoutvalue.unwrap_or(core::mem::zeroed()))) + ResUtilSetQwordValue(hkeyclusterkey, pszvaluename.param().abi(), qwnewvalue, core::mem::transmute(pqwoutvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResUtilSetResourceServiceEnvironment(pszservicename: P0, hresource: HRESOURCE, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 @@ -2338,7 +2338,7 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetResourceServiceEnvironment(pszservicename : windows_core::PCWSTR, hresource : HRESOURCE, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilSetResourceServiceEnvironment(pszservicename.param().abi(), core::mem::transmute(hresource), core::mem::transmute(pfnlogevent), core::mem::transmute(hresourcehandle)) + ResUtilSetResourceServiceEnvironment(pszservicename.param().abi(), hresource, pfnlogevent, hresourcehandle) } #[cfg(feature = "Win32_System_Services")] #[inline] @@ -2347,7 +2347,7 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetResourceServiceStartParameters(pszservicename : windows_core::PCWSTR, schscmhandle : super::super::System::Services:: SC_HANDLE, phservice : *mut super::super::System::Services:: SC_HANDLE, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilSetResourceServiceStartParameters(pszservicename.param().abi(), core::mem::transmute(schscmhandle), core::mem::transmute(phservice), core::mem::transmute(pfnlogevent), core::mem::transmute(hresourcehandle)) + ResUtilSetResourceServiceStartParameters(pszservicename.param().abi(), schscmhandle, core::mem::transmute(phservice), pfnlogevent, hresourcehandle) } #[cfg(feature = "Win32_System_Services")] #[inline] @@ -2356,7 +2356,7 @@ where P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetResourceServiceStartParametersEx(pszservicename : windows_core::PCWSTR, schscmhandle : super::super::System::Services:: SC_HANDLE, phservice : *mut super::super::System::Services:: SC_HANDLE, dwdesiredaccess : u32, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilSetResourceServiceStartParametersEx(pszservicename.param().abi(), core::mem::transmute(schscmhandle), core::mem::transmute(phservice), core::mem::transmute(dwdesiredaccess), core::mem::transmute(pfnlogevent), core::mem::transmute(hresourcehandle)) + ResUtilSetResourceServiceStartParametersEx(pszservicename.param().abi(), schscmhandle, core::mem::transmute(phservice), dwdesiredaccess, pfnlogevent, hresourcehandle) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2366,13 +2366,13 @@ where P2: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetSzValue(hkeyclusterkey : super::super::System::Registry:: HKEY, pszvaluename : windows_core::PCWSTR, psznewvalue : windows_core::PCWSTR, ppszoutstring : *mut windows_core::PWSTR) -> u32); - ResUtilSetSzValue(core::mem::transmute(hkeyclusterkey), pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(core::mem::zeroed()))) + ResUtilSetSzValue(hkeyclusterkey, pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetUnknownProperties(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilSetUnknownProperties(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32) -> u32); - ResUtilSetUnknownProperties(core::mem::transmute(hkeyclusterkey), core::mem::transmute(ppropertytable), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize)) + ResUtilSetUnknownProperties(hkeyclusterkey, ppropertytable, pinpropertylist, cbinpropertylistsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2381,7 +2381,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetValueEx(hkeyclusterkey : super::super::System::Registry:: HKEY, valuename : windows_core::PCWSTR, valuetype : u32, valuedata : *const u8, valuesize : u32, flags : u32) -> u32); - ResUtilSetValueEx(core::mem::transmute(hkeyclusterkey), valuename.param().abi(), core::mem::transmute(valuetype), core::mem::transmute(valuedata.as_ptr()), valuedata.len().try_into().unwrap(), core::mem::transmute(flags)) + ResUtilSetValueEx(hkeyclusterkey, valuename.param().abi(), valuetype, core::mem::transmute(valuedata.as_ptr()), valuedata.len().try_into().unwrap(), flags) } #[cfg(feature = "Win32_System_Services")] #[inline] @@ -2404,22 +2404,22 @@ where #[inline] pub unsafe fn ResUtilStopService(hservicehandle: super::super::System::Services::SC_HANDLE) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilStopService(hservicehandle : super::super::System::Services:: SC_HANDLE) -> u32); - ResUtilStopService(core::mem::transmute(hservicehandle)) + ResUtilStopService(hservicehandle) } #[inline] pub unsafe fn ResUtilTerminateServiceProcessFromResDll(dwservicepid: u32, boffline: bool, pdwresourcestate: *mut u32, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilTerminateServiceProcessFromResDll(dwservicepid : u32, boffline : super::super::Foundation:: BOOL, pdwresourcestate : *mut u32, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilTerminateServiceProcessFromResDll(core::mem::transmute(dwservicepid), boffline.into(), core::mem::transmute(pdwresourcestate), core::mem::transmute(pfnlogevent), core::mem::transmute(hresourcehandle)) + ResUtilTerminateServiceProcessFromResDll(dwservicepid, boffline.into(), core::mem::transmute(pdwresourcestate), pfnlogevent, hresourcehandle) } #[inline] pub unsafe fn ResUtilVerifyPrivatePropertyList(pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyPrivatePropertyList(pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32) -> u32); - ResUtilVerifyPrivatePropertyList(core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize)) + ResUtilVerifyPrivatePropertyList(pinpropertylist, cbinpropertylistsize) } #[inline] pub unsafe fn ResUtilVerifyPropertyTable(ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: Option<*const core::ffi::c_void>, ballowunknownproperties: bool, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: Option<*mut u8>) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyPropertyTable(ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *const core::ffi::c_void, ballowunknownproperties : super::super::Foundation:: BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); - ResUtilVerifyPropertyTable(core::mem::transmute(ppropertytable), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), ballowunknownproperties.into(), core::mem::transmute(pinpropertylist), core::mem::transmute(cbinpropertylistsize), core::mem::transmute(poutparams.unwrap_or(core::mem::zeroed()))) + ResUtilVerifyPropertyTable(ppropertytable, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), ballowunknownproperties.into(), pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ResUtilVerifyResourceService(pszservicename: P0) -> u32 @@ -2433,12 +2433,12 @@ where #[inline] pub unsafe fn ResUtilVerifyService(hservicehandle: super::super::System::Services::SC_HANDLE) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyService(hservicehandle : super::super::System::Services:: SC_HANDLE) -> u32); - ResUtilVerifyService(core::mem::transmute(hservicehandle)) + ResUtilVerifyService(hservicehandle) } #[inline] pub unsafe fn ResUtilVerifyShutdownSafe(flags: u32, reason: u32, presult: *mut u32) -> u32 { windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyShutdownSafe(flags : u32, reason : u32, presult : *mut u32) -> u32); - ResUtilVerifyShutdownSafe(core::mem::transmute(flags), core::mem::transmute(reason), core::mem::transmute(presult)) + ResUtilVerifyShutdownSafe(flags, reason, core::mem::transmute(presult)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2447,7 +2447,7 @@ where P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilsDeleteKeyTree(key : super::super::System::Registry:: HKEY, keyname : windows_core::PCWSTR, treatnokeyaserror : super::super::Foundation:: BOOL) -> u32); - ResUtilsDeleteKeyTree(core::mem::transmute(key), keyname.param().abi(), treatnokeyaserror.into()) + ResUtilsDeleteKeyTree(key, keyname.param().abi(), treatnokeyaserror.into()) } #[inline] pub unsafe fn ResetAllAppInstanceVersions() -> u32 { @@ -2457,7 +2457,7 @@ pub unsafe fn ResetAllAppInstanceVersions() -> u32 { #[inline] pub unsafe fn RestartClusterResource(hresource: HRESOURCE, dwflags: u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn RestartClusterResource(hresource : HRESOURCE, dwflags : u32) -> u32); - RestartClusterResource(core::mem::transmute(hresource), core::mem::transmute(dwflags)) + RestartClusterResource(hresource, dwflags) } #[inline] pub unsafe fn RestartClusterResourceEx(hresource: HRESOURCE, dwflags: u32, lpszreason: P2) -> u32 @@ -2465,7 +2465,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RestartClusterResourceEx(hresource : HRESOURCE, dwflags : u32, lpszreason : windows_core::PCWSTR) -> u32); - RestartClusterResourceEx(core::mem::transmute(hresource), core::mem::transmute(dwflags), lpszreason.param().abi()) + RestartClusterResourceEx(hresource, dwflags, lpszreason.param().abi()) } #[inline] pub unsafe fn RestoreClusterDatabase(lpszpathname: P0, bforce: bool, lpszquorumdriveletter: P2) -> u32 @@ -2479,12 +2479,12 @@ where #[inline] pub unsafe fn ResumeClusterNode(hnode: HNODE) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ResumeClusterNode(hnode : HNODE) -> u32); - ResumeClusterNode(core::mem::transmute(hnode)) + ResumeClusterNode(hnode) } #[inline] pub unsafe fn ResumeClusterNodeEx(hnode: HNODE, eresumefailbacktype: CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved: u32) -> u32 { windows_targets::link!("clusapi.dll" "system" fn ResumeClusterNodeEx(hnode : HNODE, eresumefailbacktype : CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved : u32) -> u32); - ResumeClusterNodeEx(core::mem::transmute(hnode), core::mem::transmute(eresumefailbacktype), core::mem::transmute(dwresumeflagsreserved)) + ResumeClusterNodeEx(hnode, eresumefailbacktype, dwresumeflagsreserved) } #[inline] pub unsafe fn ResumeClusterNodeEx2(hnode: HNODE, eresumefailbacktype: CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved: u32, lpszreason: P3) -> u32 @@ -2492,12 +2492,12 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ResumeClusterNodeEx2(hnode : HNODE, eresumefailbacktype : CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved : u32, lpszreason : windows_core::PCWSTR) -> u32); - ResumeClusterNodeEx2(core::mem::transmute(hnode), core::mem::transmute(eresumefailbacktype), core::mem::transmute(dwresumeflagsreserved), lpszreason.param().abi()) + ResumeClusterNodeEx2(hnode, eresumefailbacktype, dwresumeflagsreserved, lpszreason.param().abi()) } #[inline] pub unsafe fn SetAppInstanceCsvFlags(processhandle: super::super::Foundation::HANDLE, mask: u32, flags: u32) -> u32 { windows_targets::link!("ntlanman.dll" "system" fn SetAppInstanceCsvFlags(processhandle : super::super::Foundation:: HANDLE, mask : u32, flags : u32) -> u32); - SetAppInstanceCsvFlags(core::mem::transmute(processhandle), core::mem::transmute(mask), core::mem::transmute(flags)) + SetAppInstanceCsvFlags(processhandle, mask, flags) } #[inline] pub unsafe fn SetClusterGroupName(hgroup: HGROUP, lpszgroupname: P1) -> u32 @@ -2505,7 +2505,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupName(hgroup : HGROUP, lpszgroupname : windows_core::PCWSTR) -> u32); - SetClusterGroupName(core::mem::transmute(hgroup), lpszgroupname.param().abi()) + SetClusterGroupName(hgroup, lpszgroupname.param().abi()) } #[inline] pub unsafe fn SetClusterGroupNameEx(hgroup: HGROUP, lpszgroupname: P1, lpszreason: P2) -> u32 @@ -2514,12 +2514,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupNameEx(hgroup : HGROUP, lpszgroupname : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterGroupNameEx(core::mem::transmute(hgroup), lpszgroupname.param().abi(), lpszreason.param().abi()) + SetClusterGroupNameEx(hgroup, lpszgroupname.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterGroupNodeList(hgroup: HGROUP, nodelist: Option<&[HNODE]>) -> u32 { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupNodeList(hgroup : HGROUP, nodecount : u32, nodelist : *const HNODE) -> u32); - SetClusterGroupNodeList(core::mem::transmute(hgroup), nodelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(nodelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + SetClusterGroupNodeList(hgroup, nodelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(nodelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn SetClusterGroupNodeListEx(hgroup: HGROUP, nodelist: &[HNODE], lpszreason: P3) -> u32 @@ -2527,7 +2527,7 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupNodeListEx(hgroup : HGROUP, nodecount : u32, nodelist : *const HNODE, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterGroupNodeListEx(core::mem::transmute(hgroup), nodelist.len().try_into().unwrap(), core::mem::transmute(nodelist.as_ptr()), lpszreason.param().abi()) + SetClusterGroupNodeListEx(hgroup, nodelist.len().try_into().unwrap(), core::mem::transmute(nodelist.as_ptr()), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterGroupSetDependencyExpression(hgroupset: HGROUPSET, lpszdependencyexprssion: P1) -> u32 @@ -2535,7 +2535,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupSetDependencyExpression(hgroupset : HGROUPSET, lpszdependencyexprssion : windows_core::PCWSTR) -> u32); - SetClusterGroupSetDependencyExpression(core::mem::transmute(hgroupset), lpszdependencyexprssion.param().abi()) + SetClusterGroupSetDependencyExpression(hgroupset, lpszdependencyexprssion.param().abi()) } #[inline] pub unsafe fn SetClusterGroupSetDependencyExpressionEx(hgroupset: HGROUPSET, lpszdependencyexpression: P1, lpszreason: P2) -> u32 @@ -2544,7 +2544,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupSetDependencyExpressionEx(hgroupset : HGROUPSET, lpszdependencyexpression : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterGroupSetDependencyExpressionEx(core::mem::transmute(hgroupset), lpszdependencyexpression.param().abi(), lpszreason.param().abi()) + SetClusterGroupSetDependencyExpressionEx(hgroupset, lpszdependencyexpression.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterName(hcluster: HCLUSTER, lpsznewclustername: P1) -> u32 @@ -2552,7 +2552,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterName(hcluster : HCLUSTER, lpsznewclustername : windows_core::PCWSTR) -> u32); - SetClusterName(core::mem::transmute(hcluster), lpsznewclustername.param().abi()) + SetClusterName(hcluster, lpsznewclustername.param().abi()) } #[inline] pub unsafe fn SetClusterNameEx(hcluster: HCLUSTER, lpsznewclustername: P1, lpszreason: P2) -> u32 @@ -2561,7 +2561,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNameEx(hcluster : HCLUSTER, lpsznewclustername : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterNameEx(core::mem::transmute(hcluster), lpsznewclustername.param().abi(), lpszreason.param().abi()) + SetClusterNameEx(hcluster, lpsznewclustername.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterNetworkName(hnetwork: HNETWORK, lpszname: P1) -> u32 @@ -2569,7 +2569,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNetworkName(hnetwork : HNETWORK, lpszname : windows_core::PCWSTR) -> u32); - SetClusterNetworkName(core::mem::transmute(hnetwork), lpszname.param().abi()) + SetClusterNetworkName(hnetwork, lpszname.param().abi()) } #[inline] pub unsafe fn SetClusterNetworkNameEx(hnetwork: HNETWORK, lpszname: P1, lpszreason: P2) -> u32 @@ -2578,12 +2578,12 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNetworkNameEx(hnetwork : HNETWORK, lpszname : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterNetworkNameEx(core::mem::transmute(hnetwork), lpszname.param().abi(), lpszreason.param().abi()) + SetClusterNetworkNameEx(hnetwork, lpszname.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterNetworkPriorityOrder(hcluster: HCLUSTER, networklist: &[HNETWORK]) -> u32 { windows_targets::link!("clusapi.dll" "system" fn SetClusterNetworkPriorityOrder(hcluster : HCLUSTER, networkcount : u32, networklist : *const HNETWORK) -> u32); - SetClusterNetworkPriorityOrder(core::mem::transmute(hcluster), networklist.len().try_into().unwrap(), core::mem::transmute(networklist.as_ptr())) + SetClusterNetworkPriorityOrder(hcluster, networklist.len().try_into().unwrap(), core::mem::transmute(networklist.as_ptr())) } #[inline] pub unsafe fn SetClusterQuorumResource(hresource: HRESOURCE, lpszdevicename: P1, dwmaxquologsize: u32) -> u32 @@ -2591,7 +2591,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterQuorumResource(hresource : HRESOURCE, lpszdevicename : windows_core::PCWSTR, dwmaxquologsize : u32) -> u32); - SetClusterQuorumResource(core::mem::transmute(hresource), lpszdevicename.param().abi(), core::mem::transmute(dwmaxquologsize)) + SetClusterQuorumResource(hresource, lpszdevicename.param().abi(), dwmaxquologsize) } #[inline] pub unsafe fn SetClusterQuorumResourceEx(hresource: HRESOURCE, lpszdevicename: P1, dwmaxquorumlogsize: u32, lpszreason: P3) -> u32 @@ -2600,7 +2600,7 @@ where P3: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterQuorumResourceEx(hresource : HRESOURCE, lpszdevicename : windows_core::PCWSTR, dwmaxquorumlogsize : u32, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterQuorumResourceEx(core::mem::transmute(hresource), lpszdevicename.param().abi(), core::mem::transmute(dwmaxquorumlogsize), lpszreason.param().abi()) + SetClusterQuorumResourceEx(hresource, lpszdevicename.param().abi(), dwmaxquorumlogsize, lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterResourceDependencyExpression(hresource: HRESOURCE, lpszdependencyexpression: P1) -> u32 @@ -2608,7 +2608,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterResourceDependencyExpression(hresource : HRESOURCE, lpszdependencyexpression : windows_core::PCWSTR) -> u32); - SetClusterResourceDependencyExpression(core::mem::transmute(hresource), lpszdependencyexpression.param().abi()) + SetClusterResourceDependencyExpression(hresource, lpszdependencyexpression.param().abi()) } #[inline] pub unsafe fn SetClusterResourceName(hresource: HRESOURCE, lpszresourcename: P1) -> u32 @@ -2616,7 +2616,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterResourceName(hresource : HRESOURCE, lpszresourcename : windows_core::PCWSTR) -> u32); - SetClusterResourceName(core::mem::transmute(hresource), lpszresourcename.param().abi()) + SetClusterResourceName(hresource, lpszresourcename.param().abi()) } #[inline] pub unsafe fn SetClusterResourceNameEx(hresource: HRESOURCE, lpszresourcename: P1, lpszreason: P2) -> u32 @@ -2625,7 +2625,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterResourceNameEx(hresource : HRESOURCE, lpszresourcename : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterResourceNameEx(core::mem::transmute(hresource), lpszresourcename.param().abi(), lpszreason.param().abi()) + SetClusterResourceNameEx(hresource, lpszresourcename.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterServiceAccountPassword(lpszclustername: P0, lpsznewpassword: P1, dwflags: u32, lpreturnstatusbuffer: Option<*mut CLUSTER_SET_PASSWORD_STATUS>, lpcbreturnstatusbuffersize: *mut u32) -> u32 @@ -2634,7 +2634,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterServiceAccountPassword(lpszclustername : windows_core::PCWSTR, lpsznewpassword : windows_core::PCWSTR, dwflags : u32, lpreturnstatusbuffer : *mut CLUSTER_SET_PASSWORD_STATUS, lpcbreturnstatusbuffersize : *mut u32) -> u32); - SetClusterServiceAccountPassword(lpszclustername.param().abi(), lpsznewpassword.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpreturnstatusbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbreturnstatusbuffersize)) + SetClusterServiceAccountPassword(lpszclustername.param().abi(), lpsznewpassword.param().abi(), dwflags, core::mem::transmute(lpreturnstatusbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbreturnstatusbuffersize)) } #[inline] pub unsafe fn SetGroupDependencyExpression(hgroup: HGROUP, lpszdependencyexpression: P1) -> u32 @@ -2642,7 +2642,7 @@ where P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetGroupDependencyExpression(hgroup : HGROUP, lpszdependencyexpression : windows_core::PCWSTR) -> u32); - SetGroupDependencyExpression(core::mem::transmute(hgroup), lpszdependencyexpression.param().abi()) + SetGroupDependencyExpression(hgroup, lpszdependencyexpression.param().abi()) } #[inline] pub unsafe fn SetGroupDependencyExpressionEx(hgroup: HGROUP, lpszdependencyexpression: P1, lpszreason: P2) -> u32 @@ -2651,7 +2651,7 @@ where P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetGroupDependencyExpressionEx(hgroup : HGROUP, lpszdependencyexpression : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetGroupDependencyExpressionEx(core::mem::transmute(hgroup), lpszdependencyexpression.param().abi(), lpszreason.param().abi()) + SetGroupDependencyExpressionEx(hgroup, lpszdependencyexpression.param().abi(), lpszreason.param().abi()) } pub const BitLockerDecrypted: i32 = 4i32; pub const BitLockerDecrypting: i32 = 16i32; @@ -6032,7 +6032,7 @@ windows_core::imp::define_interface!(IGetClusterGroupInfo, IGetClusterGroupInfo_ windows_core::imp::interface_hierarchy!(IGetClusterGroupInfo, windows_core::IUnknown); impl IGetClusterGroupInfo { pub unsafe fn GetGroupHandle(&self, lobjindex: i32) -> HGROUP { - (windows_core::Interface::vtable(self).GetGroupHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex)) + (windows_core::Interface::vtable(self).GetGroupHandle)(windows_core::Interface::as_raw(self), lobjindex) } } #[repr(C)] @@ -6060,7 +6060,7 @@ windows_core::imp::define_interface!(IGetClusterNetInterfaceInfo, IGetClusterNet windows_core::imp::interface_hierarchy!(IGetClusterNetInterfaceInfo, windows_core::IUnknown); impl IGetClusterNetInterfaceInfo { pub unsafe fn GetNetInterfaceHandle(&self, lobjindex: i32) -> HNETINTERFACE { - (windows_core::Interface::vtable(self).GetNetInterfaceHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex)) + (windows_core::Interface::vtable(self).GetNetInterfaceHandle)(windows_core::Interface::as_raw(self), lobjindex) } } #[repr(C)] @@ -6088,7 +6088,7 @@ windows_core::imp::define_interface!(IGetClusterNetworkInfo, IGetClusterNetworkI windows_core::imp::interface_hierarchy!(IGetClusterNetworkInfo, windows_core::IUnknown); impl IGetClusterNetworkInfo { pub unsafe fn GetNetworkHandle(&self, lobjindex: i32) -> HNETWORK { - (windows_core::Interface::vtable(self).GetNetworkHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex)) + (windows_core::Interface::vtable(self).GetNetworkHandle)(windows_core::Interface::as_raw(self), lobjindex) } } #[repr(C)] @@ -6116,7 +6116,7 @@ windows_core::imp::define_interface!(IGetClusterNodeInfo, IGetClusterNodeInfo_Vt windows_core::imp::interface_hierarchy!(IGetClusterNodeInfo, windows_core::IUnknown); impl IGetClusterNodeInfo { pub unsafe fn GetNodeHandle(&self, lobjindex: i32) -> HNODE { - (windows_core::Interface::vtable(self).GetNodeHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex)) + (windows_core::Interface::vtable(self).GetNodeHandle)(windows_core::Interface::as_raw(self), lobjindex) } } #[repr(C)] @@ -6144,10 +6144,10 @@ windows_core::imp::define_interface!(IGetClusterObjectInfo, IGetClusterObjectInf windows_core::imp::interface_hierarchy!(IGetClusterObjectInfo, windows_core::IUnknown); impl IGetClusterObjectInfo { pub unsafe fn GetObjectName(&self, lobjindex: i32, lpszname: &windows_core::BSTR, pcchname: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectName)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex), core::mem::transmute_copy(lpszname), core::mem::transmute(pcchname)).ok() + (windows_core::Interface::vtable(self).GetObjectName)(windows_core::Interface::as_raw(self), lobjindex, core::mem::transmute_copy(lpszname), core::mem::transmute(pcchname)).ok() } pub unsafe fn GetObjectType(&self, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE { - (windows_core::Interface::vtable(self).GetObjectType)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex)) + (windows_core::Interface::vtable(self).GetObjectType)(windows_core::Interface::as_raw(self), lobjindex) } } #[repr(C)] @@ -6185,13 +6185,13 @@ windows_core::imp::define_interface!(IGetClusterResourceInfo, IGetClusterResourc windows_core::imp::interface_hierarchy!(IGetClusterResourceInfo, windows_core::IUnknown); impl IGetClusterResourceInfo { pub unsafe fn GetResourceHandle(&self, lobjindex: i32) -> HRESOURCE { - (windows_core::Interface::vtable(self).GetResourceHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex)) + (windows_core::Interface::vtable(self).GetResourceHandle)(windows_core::Interface::as_raw(self), lobjindex) } pub unsafe fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: &windows_core::BSTR, pcchrestypename: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResourceTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex), core::mem::transmute_copy(lpszrestypename), core::mem::transmute(pcchrestypename)).ok() + (windows_core::Interface::vtable(self).GetResourceTypeName)(windows_core::Interface::as_raw(self), lobjindex, core::mem::transmute_copy(lpszrestypename), core::mem::transmute(pcchrestypename)).ok() } pub unsafe fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: &windows_core::BSTR, pcchnetname: *mut u32) -> super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).GetResourceNetworkName)(windows_core::Interface::as_raw(self), core::mem::transmute(lobjindex), core::mem::transmute_copy(lpsznetname), core::mem::transmute(pcchnetname)) + (windows_core::Interface::vtable(self).GetResourceNetworkName)(windows_core::Interface::as_raw(self), lobjindex, core::mem::transmute_copy(lpsznetname), core::mem::transmute(pcchnetname)) } } #[repr(C)] @@ -8492,14 +8492,14 @@ impl ISClusProperty { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, r#type: CLUSTER_PROPERTY_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn Format(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFormat(&self, format: CLUSTER_PROPERTY_FORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), format).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ReadOnly(&self) -> windows_core::Result { @@ -8762,14 +8762,14 @@ impl ISClusPropertyValue { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, r#type: CLUSTER_PROPERTY_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn Format(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFormat(&self, format: CLUSTER_PROPERTY_FORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), format).ok() } pub unsafe fn Length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9364,7 +9364,7 @@ impl ISClusResDependencies { } pub unsafe fn CreateItem(&self, bstrresourcename: &windows_core::BSTR, bstrresourcetype: &windows_core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeleteItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -9522,7 +9522,7 @@ impl ISClusResDependents { } pub unsafe fn CreateItem(&self, bstrresourcename: &windows_core::BSTR, bstrresourcetype: &windows_core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeleteItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -9987,7 +9987,7 @@ impl ISClusResGroupPreferredOwnerNodes { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), pnode.param().abi(), core::mem::transmute(nposition)).ok() + (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), pnode.param().abi(), nposition).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RemoveItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -10156,7 +10156,7 @@ impl ISClusResGroupResources { } pub unsafe fn CreateItem(&self, bstrresourcename: &windows_core::BSTR, bstrresourcetype: &windows_core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeleteItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -10864,7 +10864,7 @@ impl ISClusResTypeResources { } pub unsafe fn CreateItem(&self, bstrresourcename: &windows_core::BSTR, bstrgroupname: &windows_core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrgroupname), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrgroupname), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeleteItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -10995,7 +10995,7 @@ impl ISClusResTypes { } pub unsafe fn CreateItem(&self, bstrresourcetypename: &windows_core::BSTR, bstrdisplayname: &windows_core::BSTR, bstrresourcetypedll: &windows_core::BSTR, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcetypename), core::mem::transmute_copy(bstrdisplayname), core::mem::transmute_copy(bstrresourcetypedll), core::mem::transmute(dwlooksalivepollinterval), core::mem::transmute(dwisalivepollinterval), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcetypename), core::mem::transmute_copy(bstrdisplayname), core::mem::transmute_copy(bstrresourcetypedll), dwlooksalivepollinterval, dwisalivepollinterval, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeleteItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -11144,7 +11144,7 @@ impl ISClusResource { (windows_core::Interface::vtable(self).CoreFlag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn BecomeQuorumResource(&self, bstrdevicepath: &windows_core::BSTR, lmaxlogsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BecomeQuorumResource)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdevicepath), core::mem::transmute(lmaxlogsize)).ok() + (windows_core::Interface::vtable(self).BecomeQuorumResource)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdevicepath), lmaxlogsize).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -11155,12 +11155,12 @@ impl ISClusResource { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Online(&self, ntimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Online)(windows_core::Interface::as_raw(self), core::mem::transmute(ntimeout), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Online)(windows_core::Interface::as_raw(self), ntimeout, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Offline(&self, ntimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), core::mem::transmute(ntimeout), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), ntimeout, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ChangeResourceGroup(&self, presourcegroup: P0) -> windows_core::Result<()> where @@ -11673,7 +11673,7 @@ impl ISClusResources { } pub unsafe fn CreateItem(&self, bstrresourcename: &windows_core::BSTR, bstrresourcetype: &windows_core::BSTR, bstrgroupname: &windows_core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), core::mem::transmute_copy(bstrgroupname), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrresourcename), core::mem::transmute_copy(bstrresourcetype), core::mem::transmute_copy(bstrgroupname), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeleteItem(&self, varindex: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -12163,7 +12163,7 @@ impl ISCluster { (windows_core::Interface::vtable(self).QuorumLogSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuorumLogSize(&self, nlogsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuorumLogSize)(windows_core::Interface::as_raw(self), core::mem::transmute(nlogsize)).ok() + (windows_core::Interface::vtable(self).SetQuorumLogSize)(windows_core::Interface::as_raw(self), nlogsize).ok() } pub unsafe fn QuorumPath(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12682,7 +12682,7 @@ windows_core::imp::define_interface!(IWCContextMenuCallback, IWCContextMenuCallb windows_core::imp::interface_hierarchy!(IWCContextMenuCallback, windows_core::IUnknown); impl IWCContextMenuCallback { pub unsafe fn AddExtensionMenuItem(&self, lpszname: &windows_core::BSTR, lpszstatusbartext: &windows_core::BSTR, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddExtensionMenuItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(lpszname), core::mem::transmute_copy(lpszstatusbartext), core::mem::transmute(ncommandid), core::mem::transmute(nsubmenucommandid), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).AddExtensionMenuItem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(lpszname), core::mem::transmute_copy(lpszstatusbartext), ncommandid, nsubmenucommandid, uflags).ok() } } #[repr(C)] @@ -12710,7 +12710,7 @@ windows_core::imp::define_interface!(IWCPropertySheetCallback, IWCPropertySheetC windows_core::imp::interface_hierarchy!(IWCPropertySheetCallback, windows_core::IUnknown); impl IWCPropertySheetCallback { pub unsafe fn AddPropertySheetPage(&self, hpage: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertySheetPage)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage)).ok() + (windows_core::Interface::vtable(self).AddPropertySheetPage)(windows_core::Interface::as_raw(self), hpage).ok() } } #[repr(C)] @@ -12738,10 +12738,10 @@ windows_core::imp::define_interface!(IWCWizard97Callback, IWCWizard97Callback_Vt windows_core::imp::interface_hierarchy!(IWCWizard97Callback, windows_core::IUnknown); impl IWCWizard97Callback { pub unsafe fn AddWizard97Page(&self, hpage: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddWizard97Page)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage)).ok() + (windows_core::Interface::vtable(self).AddWizard97Page)(windows_core::Interface::as_raw(self), hpage).ok() } pub unsafe fn EnableNext(&self, hpage: *const i32, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage), benable.into()).ok() + (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), hpage, benable.into()).ok() } } #[repr(C)] @@ -12779,10 +12779,10 @@ windows_core::imp::define_interface!(IWCWizardCallback, IWCWizardCallback_Vtbl, windows_core::imp::interface_hierarchy!(IWCWizardCallback, windows_core::IUnknown); impl IWCWizardCallback { pub unsafe fn AddWizardPage(&self, hpage: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddWizardPage)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage)).ok() + (windows_core::Interface::vtable(self).AddWizardPage)(windows_core::Interface::as_raw(self), hpage).ok() } pub unsafe fn EnableNext(&self, hpage: *const i32, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage), benable.into()).ok() + (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), hpage, benable.into()).ok() } } #[repr(C)] @@ -12951,7 +12951,7 @@ impl IWEInvokeCommand { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(ncommandid), pidata.param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), ncommandid, pidata.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs index 46ae4a8333..0bac8b2b74 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs @@ -5,7 +5,7 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpAddFragmentToCache(requestqueuehandle : super::super::Foundation:: HANDLE, urlprefix : windows_core::PCWSTR, datachunk : *const HTTP_DATA_CHUNK, cachepolicy : *const HTTP_CACHE_POLICY, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpAddFragmentToCache(core::mem::transmute(requestqueuehandle), urlprefix.param().abi(), core::mem::transmute(datachunk), core::mem::transmute(cachepolicy), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpAddFragmentToCache(requestqueuehandle, urlprefix.param().abi(), datachunk, cachepolicy, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpAddUrl(requestqueuehandle: super::super::Foundation::HANDLE, fullyqualifiedurl: P1, reserved: Option<*const core::ffi::c_void>) -> u32 @@ -13,7 +13,7 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpAddUrl(requestqueuehandle : super::super::Foundation:: HANDLE, fullyqualifiedurl : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> u32); - HttpAddUrl(core::mem::transmute(requestqueuehandle), fullyqualifiedurl.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + HttpAddUrl(requestqueuehandle, fullyqualifiedurl.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpAddUrlToUrlGroup(urlgroupid: u64, pfullyqualifiedurl: P1, urlcontext: u64, reserved: Option) -> u32 @@ -21,28 +21,28 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpAddUrlToUrlGroup(urlgroupid : u64, pfullyqualifiedurl : windows_core::PCWSTR, urlcontext : u64, reserved : u32) -> u32); - HttpAddUrlToUrlGroup(core::mem::transmute(urlgroupid), pfullyqualifiedurl.param().abi(), core::mem::transmute(urlcontext), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + HttpAddUrlToUrlGroup(urlgroupid, pfullyqualifiedurl.param().abi(), urlcontext, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpCancelHttpRequest(requestqueuehandle: super::super::Foundation::HANDLE, requestid: u64, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpCancelHttpRequest(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpCancelHttpRequest(core::mem::transmute(requestqueuehandle), core::mem::transmute(requestid), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpCancelHttpRequest(requestqueuehandle, requestid, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpCloseRequestQueue(requestqueuehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpCloseRequestQueue(requestqueuehandle : super::super::Foundation:: HANDLE) -> u32); - HttpCloseRequestQueue(core::mem::transmute(requestqueuehandle)) + HttpCloseRequestQueue(requestqueuehandle) } #[inline] pub unsafe fn HttpCloseServerSession(serversessionid: u64) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpCloseServerSession(serversessionid : u64) -> u32); - HttpCloseServerSession(core::mem::transmute(serversessionid)) + HttpCloseServerSession(serversessionid) } #[inline] pub unsafe fn HttpCloseUrlGroup(urlgroupid: u64) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpCloseUrlGroup(urlgroupid : u64) -> u32); - HttpCloseUrlGroup(core::mem::transmute(urlgroupid)) + HttpCloseUrlGroup(urlgroupid) } #[inline] pub unsafe fn HttpCreateHttpHandle(requestqueuehandle: *mut super::super::Foundation::HANDLE, reserved: Option) -> u32 { @@ -66,7 +66,7 @@ pub unsafe fn HttpCreateServerSession(version: HTTPAPI_VERSION, serversessionid: #[inline] pub unsafe fn HttpCreateUrlGroup(serversessionid: u64, purlgroupid: *mut u64, reserved: Option) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpCreateUrlGroup(serversessionid : u64, purlgroupid : *mut u64, reserved : u32) -> u32); - HttpCreateUrlGroup(core::mem::transmute(serversessionid), core::mem::transmute(purlgroupid), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + HttpCreateUrlGroup(serversessionid, core::mem::transmute(purlgroupid), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpDeclarePush(requestqueuehandle: super::super::Foundation::HANDLE, requestid: u64, verb: HTTP_VERB, path: P3, query: P4, headers: Option<*const HTTP_REQUEST_HEADERS>) -> u32 @@ -75,18 +75,18 @@ where P4: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpDeclarePush(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, verb : HTTP_VERB, path : windows_core::PCWSTR, query : windows_core::PCSTR, headers : *const HTTP_REQUEST_HEADERS) -> u32); - HttpDeclarePush(core::mem::transmute(requestqueuehandle), core::mem::transmute(requestid), core::mem::transmute(verb), path.param().abi(), query.param().abi(), core::mem::transmute(headers.unwrap_or(core::mem::zeroed()))) + HttpDeclarePush(requestqueuehandle, requestid, verb, path.param().abi(), query.param().abi(), core::mem::transmute(headers.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpDelegateRequestEx(requestqueuehandle: super::super::Foundation::HANDLE, delegatequeuehandle: super::super::Foundation::HANDLE, requestid: u64, delegateurlgroupid: u64, propertyinfosetsize: u32, propertyinfoset: *const HTTP_DELEGATE_REQUEST_PROPERTY_INFO) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpDelegateRequestEx(requestqueuehandle : super::super::Foundation:: HANDLE, delegatequeuehandle : super::super::Foundation:: HANDLE, requestid : u64, delegateurlgroupid : u64, propertyinfosetsize : u32, propertyinfoset : *const HTTP_DELEGATE_REQUEST_PROPERTY_INFO) -> u32); - HttpDelegateRequestEx(core::mem::transmute(requestqueuehandle), core::mem::transmute(delegatequeuehandle), core::mem::transmute(requestid), core::mem::transmute(delegateurlgroupid), core::mem::transmute(propertyinfosetsize), core::mem::transmute(propertyinfoset)) + HttpDelegateRequestEx(requestqueuehandle, delegatequeuehandle, requestid, delegateurlgroupid, propertyinfosetsize, propertyinfoset) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpDeleteServiceConfiguration(servicehandle: Option, configid: HTTP_SERVICE_CONFIG_ID, pconfiginformation: *const core::ffi::c_void, configinformationlength: u32, poverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpDeleteServiceConfiguration(servicehandle : super::super::Foundation:: HANDLE, configid : HTTP_SERVICE_CONFIG_ID, pconfiginformation : *const core::ffi::c_void, configinformationlength : u32, poverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpDeleteServiceConfiguration(core::mem::transmute(servicehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(configid), core::mem::transmute(pconfiginformation), core::mem::transmute(configinformationlength), core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) + HttpDeleteServiceConfiguration(core::mem::transmute(servicehandle.unwrap_or(core::mem::zeroed())), configid, pconfiginformation, configinformationlength, core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpFindUrlGroupId(fullyqualifiedurl: P0, requestqueuehandle: super::super::Foundation::HANDLE, urlgroupid: *mut u64) -> u32 @@ -94,7 +94,7 @@ where P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpFindUrlGroupId(fullyqualifiedurl : windows_core::PCWSTR, requestqueuehandle : super::super::Foundation:: HANDLE, urlgroupid : *mut u64) -> u32); - HttpFindUrlGroupId(fullyqualifiedurl.param().abi(), core::mem::transmute(requestqueuehandle), core::mem::transmute(urlgroupid)) + HttpFindUrlGroupId(fullyqualifiedurl.param().abi(), requestqueuehandle, core::mem::transmute(urlgroupid)) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -103,22 +103,22 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpFlushResponseCache(requestqueuehandle : super::super::Foundation:: HANDLE, urlprefix : windows_core::PCWSTR, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpFlushResponseCache(core::mem::transmute(requestqueuehandle), urlprefix.param().abi(), core::mem::transmute(flags), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpFlushResponseCache(requestqueuehandle, urlprefix.param().abi(), flags, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpGetExtension(version: HTTPAPI_VERSION, extension: u32, buffer: *mut core::ffi::c_void, buffersize: u32) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpGetExtension(version : HTTPAPI_VERSION, extension : u32, buffer : *mut core::ffi::c_void, buffersize : u32) -> u32); - HttpGetExtension(core::mem::transmute(version), core::mem::transmute(extension), core::mem::transmute(buffer), core::mem::transmute(buffersize)) + HttpGetExtension(core::mem::transmute(version), extension, core::mem::transmute(buffer), buffersize) } #[inline] pub unsafe fn HttpInitialize(version: HTTPAPI_VERSION, flags: HTTP_INITIALIZE, preserved: Option<*mut core::ffi::c_void>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpInitialize(version : HTTPAPI_VERSION, flags : HTTP_INITIALIZE, preserved : *mut core::ffi::c_void) -> u32); - HttpInitialize(core::mem::transmute(version), core::mem::transmute(flags), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + HttpInitialize(core::mem::transmute(version), flags, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpIsFeatureSupported(featureid: HTTP_FEATURE_ID) -> super::super::Foundation::BOOL { windows_targets::link!("httpapi.dll" "system" fn HttpIsFeatureSupported(featureid : HTTP_FEATURE_ID) -> super::super::Foundation:: BOOL); - HttpIsFeatureSupported(core::mem::transmute(featureid)) + HttpIsFeatureSupported(featureid) } #[inline] pub unsafe fn HttpPrepareUrl(reserved: Option<*const core::ffi::c_void>, flags: Option, url: P2, preparedurl: *mut windows_core::PWSTR) -> u32 @@ -131,23 +131,23 @@ where #[inline] pub unsafe fn HttpQueryRequestQueueProperty(requestqueuehandle: super::super::Foundation::HANDLE, property: HTTP_SERVER_PROPERTY, propertyinformation: Option<*mut core::ffi::c_void>, propertyinformationlength: u32, reserved1: Option, returnlength: Option<*mut u32>, reserved2: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpQueryRequestQueueProperty(requestqueuehandle : super::super::Foundation:: HANDLE, property : HTTP_SERVER_PROPERTY, propertyinformation : *mut core::ffi::c_void, propertyinformationlength : u32, reserved1 : u32, returnlength : *mut u32, reserved2 : *const core::ffi::c_void) -> u32); - HttpQueryRequestQueueProperty(core::mem::transmute(requestqueuehandle), core::mem::transmute(property), core::mem::transmute(propertyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyinformationlength), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) + HttpQueryRequestQueueProperty(requestqueuehandle, property, core::mem::transmute(propertyinformation.unwrap_or(core::mem::zeroed())), propertyinformationlength, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpQueryServerSessionProperty(serversessionid: u64, property: HTTP_SERVER_PROPERTY, propertyinformation: Option<*mut core::ffi::c_void>, propertyinformationlength: u32, returnlength: Option<*mut u32>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpQueryServerSessionProperty(serversessionid : u64, property : HTTP_SERVER_PROPERTY, propertyinformation : *mut core::ffi::c_void, propertyinformationlength : u32, returnlength : *mut u32) -> u32); - HttpQueryServerSessionProperty(core::mem::transmute(serversessionid), core::mem::transmute(property), core::mem::transmute(propertyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + HttpQueryServerSessionProperty(serversessionid, property, core::mem::transmute(propertyinformation.unwrap_or(core::mem::zeroed())), propertyinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpQueryServiceConfiguration(servicehandle: Option, configid: HTTP_SERVICE_CONFIG_ID, pinput: Option<*const core::ffi::c_void>, inputlength: u32, poutput: Option<*mut core::ffi::c_void>, outputlength: u32, preturnlength: Option<*mut u32>, poverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpQueryServiceConfiguration(servicehandle : super::super::Foundation:: HANDLE, configid : HTTP_SERVICE_CONFIG_ID, pinput : *const core::ffi::c_void, inputlength : u32, poutput : *mut core::ffi::c_void, outputlength : u32, preturnlength : *mut u32, poverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpQueryServiceConfiguration(core::mem::transmute(servicehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(configid), core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputlength), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputlength), core::mem::transmute(preturnlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) + HttpQueryServiceConfiguration(core::mem::transmute(servicehandle.unwrap_or(core::mem::zeroed())), configid, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), inputlength, core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), outputlength, core::mem::transmute(preturnlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpQueryUrlGroupProperty(urlgroupid: u64, property: HTTP_SERVER_PROPERTY, propertyinformation: Option<*mut core::ffi::c_void>, propertyinformationlength: u32, returnlength: Option<*mut u32>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpQueryUrlGroupProperty(urlgroupid : u64, property : HTTP_SERVER_PROPERTY, propertyinformation : *mut core::ffi::c_void, propertyinformationlength : u32, returnlength : *mut u32) -> u32); - HttpQueryUrlGroupProperty(core::mem::transmute(urlgroupid), core::mem::transmute(property), core::mem::transmute(propertyinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + HttpQueryUrlGroupProperty(urlgroupid, property, core::mem::transmute(propertyinformation.unwrap_or(core::mem::zeroed())), propertyinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -156,25 +156,25 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpReadFragmentFromCache(requestqueuehandle : super::super::Foundation:: HANDLE, urlprefix : windows_core::PCWSTR, byterange : *const HTTP_BYTE_RANGE, buffer : *mut core::ffi::c_void, bufferlength : u32, bytesread : *mut u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpReadFragmentFromCache(core::mem::transmute(requestqueuehandle), urlprefix.param().abi(), core::mem::transmute(byterange.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(bufferlength), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpReadFragmentFromCache(requestqueuehandle, urlprefix.param().abi(), core::mem::transmute(byterange.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), bufferlength, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpReceiveClientCertificate(requestqueuehandle: super::super::Foundation::HANDLE, connectionid: u64, flags: u32, sslclientcertinfo: *mut HTTP_SSL_CLIENT_CERT_INFO, sslclientcertinfosize: u32, bytesreceived: Option<*mut u32>, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpReceiveClientCertificate(requestqueuehandle : super::super::Foundation:: HANDLE, connectionid : u64, flags : u32, sslclientcertinfo : *mut HTTP_SSL_CLIENT_CERT_INFO, sslclientcertinfosize : u32, bytesreceived : *mut u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpReceiveClientCertificate(core::mem::transmute(requestqueuehandle), core::mem::transmute(connectionid), core::mem::transmute(flags), core::mem::transmute(sslclientcertinfo), core::mem::transmute(sslclientcertinfosize), core::mem::transmute(bytesreceived.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpReceiveClientCertificate(requestqueuehandle, connectionid, flags, core::mem::transmute(sslclientcertinfo), sslclientcertinfosize, core::mem::transmute(bytesreceived.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_System_IO"))] #[inline] pub unsafe fn HttpReceiveHttpRequest(requestqueuehandle: super::super::Foundation::HANDLE, requestid: u64, flags: HTTP_RECEIVE_HTTP_REQUEST_FLAGS, requestbuffer: *mut HTTP_REQUEST_V2, requestbufferlength: u32, bytesreturned: Option<*mut u32>, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpReceiveHttpRequest(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, flags : HTTP_RECEIVE_HTTP_REQUEST_FLAGS, requestbuffer : *mut HTTP_REQUEST_V2, requestbufferlength : u32, bytesreturned : *mut u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpReceiveHttpRequest(core::mem::transmute(requestqueuehandle), core::mem::transmute(requestid), core::mem::transmute(flags), core::mem::transmute(requestbuffer), core::mem::transmute(requestbufferlength), core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpReceiveHttpRequest(requestqueuehandle, requestid, flags, core::mem::transmute(requestbuffer), requestbufferlength, core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpReceiveRequestEntityBody(requestqueuehandle: super::super::Foundation::HANDLE, requestid: u64, flags: u32, entitybuffer: *mut core::ffi::c_void, entitybufferlength: u32, bytesreturned: Option<*mut u32>, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpReceiveRequestEntityBody(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, flags : u32, entitybuffer : *mut core::ffi::c_void, entitybufferlength : u32, bytesreturned : *mut u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpReceiveRequestEntityBody(core::mem::transmute(requestqueuehandle), core::mem::transmute(requestid), core::mem::transmute(flags), core::mem::transmute(entitybuffer), core::mem::transmute(entitybufferlength), core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpReceiveRequestEntityBody(requestqueuehandle, requestid, flags, core::mem::transmute(entitybuffer), entitybufferlength, core::mem::transmute(bytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpRemoveUrl(requestqueuehandle: super::super::Foundation::HANDLE, fullyqualifiedurl: P1) -> u32 @@ -182,7 +182,7 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpRemoveUrl(requestqueuehandle : super::super::Foundation:: HANDLE, fullyqualifiedurl : windows_core::PCWSTR) -> u32); - HttpRemoveUrl(core::mem::transmute(requestqueuehandle), fullyqualifiedurl.param().abi()) + HttpRemoveUrl(requestqueuehandle, fullyqualifiedurl.param().abi()) } #[inline] pub unsafe fn HttpRemoveUrlFromUrlGroup(urlgroupid: u64, pfullyqualifiedurl: P1, flags: u32) -> u32 @@ -190,33 +190,22 @@ where P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpRemoveUrlFromUrlGroup(urlgroupid : u64, pfullyqualifiedurl : windows_core::PCWSTR, flags : u32) -> u32); - HttpRemoveUrlFromUrlGroup(core::mem::transmute(urlgroupid), pfullyqualifiedurl.param().abi(), core::mem::transmute(flags)) + HttpRemoveUrlFromUrlGroup(urlgroupid, pfullyqualifiedurl.param().abi(), flags) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpSendHttpResponse(requestqueuehandle: super::super::Foundation::HANDLE, requestid: u64, flags: u32, httpresponse: *const HTTP_RESPONSE_V2, cachepolicy: Option<*const HTTP_CACHE_POLICY>, bytessent: Option<*mut u32>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>, logdata: Option<*const HTTP_LOG_DATA>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSendHttpResponse(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, flags : u32, httpresponse : *const HTTP_RESPONSE_V2, cachepolicy : *const HTTP_CACHE_POLICY, bytessent : *mut u32, reserved1 : *const core::ffi::c_void, reserved2 : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED, logdata : *const HTTP_LOG_DATA) -> u32); - HttpSendHttpResponse( - core::mem::transmute(requestqueuehandle), - core::mem::transmute(requestid), - core::mem::transmute(flags), - core::mem::transmute(httpresponse), - core::mem::transmute(cachepolicy.unwrap_or(core::mem::zeroed())), - core::mem::transmute(bytessent.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), - core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), - core::mem::transmute(logdata.unwrap_or(core::mem::zeroed())), - ) + HttpSendHttpResponse(requestqueuehandle, requestid, flags, httpresponse, core::mem::transmute(cachepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytessent.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(logdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpSendResponseEntityBody(requestqueuehandle: super::super::Foundation::HANDLE, requestid: u64, flags: u32, entitychunks: Option<&[HTTP_DATA_CHUNK]>, bytessent: Option<*mut u32>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>, logdata: Option<*const HTTP_LOG_DATA>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSendResponseEntityBody(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, flags : u32, entitychunkcount : u16, entitychunks : *const HTTP_DATA_CHUNK, bytessent : *mut u32, reserved1 : *const core::ffi::c_void, reserved2 : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED, logdata : *const HTTP_LOG_DATA) -> u32); HttpSendResponseEntityBody( - core::mem::transmute(requestqueuehandle), - core::mem::transmute(requestid), - core::mem::transmute(flags), + requestqueuehandle, + requestid, + flags, entitychunks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entitychunks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(bytessent.unwrap_or(core::mem::zeroed())), @@ -230,62 +219,62 @@ pub unsafe fn HttpSendResponseEntityBody(requestqueuehandle: super::super::Found #[inline] pub unsafe fn HttpSetRequestProperty(requestqueuehandle: super::super::Foundation::HANDLE, id: u64, propertyid: HTTP_REQUEST_PROPERTY, input: Option<*const core::ffi::c_void>, inputpropertysize: u32, overlapped: *const super::super::System::IO::OVERLAPPED) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSetRequestProperty(requestqueuehandle : super::super::Foundation:: HANDLE, id : u64, propertyid : HTTP_REQUEST_PROPERTY, input : *const core::ffi::c_void, inputpropertysize : u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpSetRequestProperty(core::mem::transmute(requestqueuehandle), core::mem::transmute(id), core::mem::transmute(propertyid), core::mem::transmute(input.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputpropertysize), core::mem::transmute(overlapped)) + HttpSetRequestProperty(requestqueuehandle, id, propertyid, core::mem::transmute(input.unwrap_or(core::mem::zeroed())), inputpropertysize, overlapped) } #[inline] pub unsafe fn HttpSetRequestQueueProperty(requestqueuehandle: super::super::Foundation::HANDLE, property: HTTP_SERVER_PROPERTY, propertyinformation: *const core::ffi::c_void, propertyinformationlength: u32, reserved1: Option, reserved2: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSetRequestQueueProperty(requestqueuehandle : super::super::Foundation:: HANDLE, property : HTTP_SERVER_PROPERTY, propertyinformation : *const core::ffi::c_void, propertyinformationlength : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> u32); - HttpSetRequestQueueProperty(core::mem::transmute(requestqueuehandle), core::mem::transmute(property), core::mem::transmute(propertyinformation), core::mem::transmute(propertyinformationlength), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) + HttpSetRequestQueueProperty(requestqueuehandle, property, propertyinformation, propertyinformationlength, core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpSetServerSessionProperty(serversessionid: u64, property: HTTP_SERVER_PROPERTY, propertyinformation: *const core::ffi::c_void, propertyinformationlength: u32) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSetServerSessionProperty(serversessionid : u64, property : HTTP_SERVER_PROPERTY, propertyinformation : *const core::ffi::c_void, propertyinformationlength : u32) -> u32); - HttpSetServerSessionProperty(core::mem::transmute(serversessionid), core::mem::transmute(property), core::mem::transmute(propertyinformation), core::mem::transmute(propertyinformationlength)) + HttpSetServerSessionProperty(serversessionid, property, propertyinformation, propertyinformationlength) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpSetServiceConfiguration(servicehandle: Option, configid: HTTP_SERVICE_CONFIG_ID, pconfiginformation: *const core::ffi::c_void, configinformationlength: u32, poverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSetServiceConfiguration(servicehandle : super::super::Foundation:: HANDLE, configid : HTTP_SERVICE_CONFIG_ID, pconfiginformation : *const core::ffi::c_void, configinformationlength : u32, poverlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpSetServiceConfiguration(core::mem::transmute(servicehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(configid), core::mem::transmute(pconfiginformation), core::mem::transmute(configinformationlength), core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) + HttpSetServiceConfiguration(core::mem::transmute(servicehandle.unwrap_or(core::mem::zeroed())), configid, pconfiginformation, configinformationlength, core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpSetUrlGroupProperty(urlgroupid: u64, property: HTTP_SERVER_PROPERTY, propertyinformation: *const core::ffi::c_void, propertyinformationlength: u32) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpSetUrlGroupProperty(urlgroupid : u64, property : HTTP_SERVER_PROPERTY, propertyinformation : *const core::ffi::c_void, propertyinformationlength : u32) -> u32); - HttpSetUrlGroupProperty(core::mem::transmute(urlgroupid), core::mem::transmute(property), core::mem::transmute(propertyinformation), core::mem::transmute(propertyinformationlength)) + HttpSetUrlGroupProperty(urlgroupid, property, propertyinformation, propertyinformationlength) } #[inline] pub unsafe fn HttpShutdownRequestQueue(requestqueuehandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpShutdownRequestQueue(requestqueuehandle : super::super::Foundation:: HANDLE) -> u32); - HttpShutdownRequestQueue(core::mem::transmute(requestqueuehandle)) + HttpShutdownRequestQueue(requestqueuehandle) } #[inline] pub unsafe fn HttpTerminate(flags: HTTP_INITIALIZE, preserved: Option<*mut core::ffi::c_void>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpTerminate(flags : HTTP_INITIALIZE, preserved : *mut core::ffi::c_void) -> u32); - HttpTerminate(core::mem::transmute(flags), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) + HttpTerminate(flags, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpUpdateServiceConfiguration(handle: Option, configid: HTTP_SERVICE_CONFIG_ID, configinfo: *const core::ffi::c_void, configinfolength: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpUpdateServiceConfiguration(handle : super::super::Foundation:: HANDLE, configid : HTTP_SERVICE_CONFIG_ID, configinfo : *const core::ffi::c_void, configinfolength : u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpUpdateServiceConfiguration(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(configid), core::mem::transmute(configinfo), core::mem::transmute(configinfolength), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpUpdateServiceConfiguration(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), configid, configinfo, configinfolength, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpWaitForDemandStart(requestqueuehandle: super::super::Foundation::HANDLE, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpWaitForDemandStart(requestqueuehandle : super::super::Foundation:: HANDLE, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpWaitForDemandStart(core::mem::transmute(requestqueuehandle), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpWaitForDemandStart(requestqueuehandle, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpWaitForDisconnect(requestqueuehandle: super::super::Foundation::HANDLE, connectionid: u64, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpWaitForDisconnect(requestqueuehandle : super::super::Foundation:: HANDLE, connectionid : u64, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpWaitForDisconnect(core::mem::transmute(requestqueuehandle), core::mem::transmute(connectionid), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpWaitForDisconnect(requestqueuehandle, connectionid, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpWaitForDisconnectEx(requestqueuehandle: super::super::Foundation::HANDLE, connectionid: u64, reserved: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> u32 { windows_targets::link!("httpapi.dll" "system" fn HttpWaitForDisconnectEx(requestqueuehandle : super::super::Foundation:: HANDLE, connectionid : u64, reserved : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> u32); - HttpWaitForDisconnectEx(core::mem::transmute(requestqueuehandle), core::mem::transmute(connectionid), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + HttpWaitForDisconnectEx(requestqueuehandle, connectionid, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } pub const CacheRangeChunkSize: HTTP_SERVICE_CONFIG_CACHE_KEY = HTTP_SERVICE_CONFIG_CACHE_KEY(1i32); pub const CreateRequestQueueExternalIdProperty: HTTP_CREATE_REQUEST_QUEUE_PROPERTY_ID = HTTP_CREATE_REQUEST_QUEUE_PROPERTY_ID(1i32); diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs index bea576aeb2..d3d8ad6212 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs @@ -21,7 +21,7 @@ pub unsafe fn LdapUnicodeToUTF8(lpsrcstr: &[u16], lpdeststr: &mut [u8]) -> i32 { #[inline] pub unsafe fn ber_alloc_t(options: i32) -> *mut BerElement { windows_targets::link!("wldap32.dll" "cdecl" fn ber_alloc_t(options : i32) -> *mut BerElement); - ber_alloc_t(core::mem::transmute(options)) + ber_alloc_t(options) } #[inline] pub unsafe fn ber_bvdup(pberval: *mut LDAP_BERVAL) -> *mut LDAP_BERVAL { @@ -51,7 +51,7 @@ pub unsafe fn ber_flatten(pberelement: *mut BerElement, pberval: *mut *mut LDAP_ #[inline] pub unsafe fn ber_free(pberelement: *mut BerElement, fbuf: i32) { windows_targets::link!("wldap32.dll" "cdecl" fn ber_free(pberelement : *mut BerElement, fbuf : i32)); - ber_free(core::mem::transmute(pberelement), core::mem::transmute(fbuf)) + ber_free(core::mem::transmute(pberelement), fbuf) } #[inline] pub unsafe fn ber_init(pberval: *mut LDAP_BERVAL) -> *mut BerElement { @@ -98,7 +98,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn cldap_open(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - cldap_open(hostname.param().abi(), core::mem::transmute(portnumber)) + cldap_open(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn cldap_openA(hostname: P0, portnumber: u32) -> *mut LDAP @@ -106,7 +106,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn cldap_openA(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - cldap_openA(hostname.param().abi(), core::mem::transmute(portnumber)) + cldap_openA(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn cldap_openW(hostname: P0, portnumber: u32) -> *mut LDAP @@ -114,12 +114,12 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn cldap_openW(hostname : windows_core::PCWSTR, portnumber : u32) -> *mut LDAP); - cldap_openW(hostname.param().abi(), core::mem::transmute(portnumber)) + cldap_openW(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_abandon(ld: *mut LDAP, msgid: u32) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_abandon(ld : *mut LDAP, msgid : u32) -> u32); - ldap_abandon(core::mem::transmute(ld), core::mem::transmute(msgid)) + ldap_abandon(core::mem::transmute(ld), msgid) } #[inline] pub unsafe fn ldap_add(ld: *mut LDAP, dn: P1, attrs: *mut *mut LDAPModA) -> u32 @@ -224,7 +224,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_bind(ld : *mut LDAP, dn : windows_core::PCSTR, cred : windows_core::PCSTR, method : u32) -> u32); - ldap_bind(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), core::mem::transmute(method)) + ldap_bind(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bindA(ld: *mut LDAP, dn: P1, cred: P2, method: u32) -> u32 @@ -233,7 +233,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_bindA(ld : *mut LDAP, dn : windows_core::PCSTR, cred : windows_core::PCSTR, method : u32) -> u32); - ldap_bindA(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), core::mem::transmute(method)) + ldap_bindA(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bindW(ld: *mut LDAP, dn: P1, cred: P2, method: u32) -> u32 @@ -242,7 +242,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_bindW(ld : *mut LDAP, dn : windows_core::PCWSTR, cred : windows_core::PCWSTR, method : u32) -> u32); - ldap_bindW(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), core::mem::transmute(method)) + ldap_bindW(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bind_s(ld: *mut LDAP, dn: P1, cred: P2, method: u32) -> u32 @@ -251,7 +251,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_bind_s(ld : *mut LDAP, dn : windows_core::PCSTR, cred : windows_core::PCSTR, method : u32) -> u32); - ldap_bind_s(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), core::mem::transmute(method)) + ldap_bind_s(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bind_sA(ld: *mut LDAP, dn: P1, cred: P2, method: u32) -> u32 @@ -260,7 +260,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_bind_sA(ld : *mut LDAP, dn : windows_core::PCSTR, cred : windows_core::PCSTR, method : u32) -> u32); - ldap_bind_sA(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), core::mem::transmute(method)) + ldap_bind_sA(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bind_sW(ld: *mut LDAP, dn: P1, cred: P2, method: u32) -> u32 @@ -269,7 +269,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_bind_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, cred : windows_core::PCWSTR, method : u32) -> u32); - ldap_bind_sW(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), core::mem::transmute(method)) + ldap_bind_sW(core::mem::transmute(ld), dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_check_filterA(ld: *mut LDAP, searchfilter: P1) -> u32 @@ -290,12 +290,12 @@ where #[inline] pub unsafe fn ldap_cleanup(hinstance: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_cleanup(hinstance : super::super::Foundation:: HANDLE) -> u32); - ldap_cleanup(core::mem::transmute(hinstance)) + ldap_cleanup(hinstance) } #[inline] pub unsafe fn ldap_close_extended_op(ld: *mut LDAP, messagenumber: u32) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_close_extended_op(ld : *mut LDAP, messagenumber : u32) -> u32); - ldap_close_extended_op(core::mem::transmute(ld), core::mem::transmute(messagenumber)) + ldap_close_extended_op(core::mem::transmute(ld), messagenumber) } #[inline] pub unsafe fn ldap_compare(ld: *mut LDAP, dn: P1, attr: P2, value: P3) -> u32 @@ -490,42 +490,42 @@ pub unsafe fn ldap_count_values_len(vals: *mut *mut LDAP_BERVAL) -> u32 { #[inline] pub unsafe fn ldap_create_page_control(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlA) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_page_control(externalhandle : *mut LDAP, pagesize : u32, cookie : *mut LDAP_BERVAL, iscritical : u8, control : *mut *mut LDAPControlA) -> u32); - ldap_create_page_control(core::mem::transmute(externalhandle), core::mem::transmute(pagesize), core::mem::transmute(cookie), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_page_control(core::mem::transmute(externalhandle), pagesize, core::mem::transmute(cookie), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_page_controlA(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlA) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_page_controlA(externalhandle : *mut LDAP, pagesize : u32, cookie : *mut LDAP_BERVAL, iscritical : u8, control : *mut *mut LDAPControlA) -> u32); - ldap_create_page_controlA(core::mem::transmute(externalhandle), core::mem::transmute(pagesize), core::mem::transmute(cookie), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_page_controlA(core::mem::transmute(externalhandle), pagesize, core::mem::transmute(cookie), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_page_controlW(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlW) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_page_controlW(externalhandle : *mut LDAP, pagesize : u32, cookie : *mut LDAP_BERVAL, iscritical : u8, control : *mut *mut LDAPControlW) -> u32); - ldap_create_page_controlW(core::mem::transmute(externalhandle), core::mem::transmute(pagesize), core::mem::transmute(cookie), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_page_controlW(core::mem::transmute(externalhandle), pagesize, core::mem::transmute(cookie), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_sort_control(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, iscritical: u8, control: *mut *mut LDAPControlA) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_sort_control(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, iscritical : u8, control : *mut *mut LDAPControlA) -> u32); - ldap_create_sort_control(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_sort_control(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, iscritical: u8, control: *mut *mut LDAPControlA) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, iscritical : u8, control : *mut *mut LDAPControlA) -> u32); - ldap_create_sort_controlA(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_sort_controlA(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, iscritical: u8, control: *mut *mut LDAPControlW) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, iscritical : u8, control : *mut *mut LDAPControlW) -> u32); - ldap_create_sort_controlW(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_sort_controlW(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_vlv_controlA(externalhandle: *mut LDAP, vlvinfo: *mut LDAPVLVInfo, iscritical: u8, control: *mut *mut LDAPControlA) -> i32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_vlv_controlA(externalhandle : *mut LDAP, vlvinfo : *mut LDAPVLVInfo, iscritical : u8, control : *mut *mut LDAPControlA) -> i32); - ldap_create_vlv_controlA(core::mem::transmute(externalhandle), core::mem::transmute(vlvinfo), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_vlv_controlA(core::mem::transmute(externalhandle), core::mem::transmute(vlvinfo), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_create_vlv_controlW(externalhandle: *mut LDAP, vlvinfo: *mut LDAPVLVInfo, iscritical: u8, control: *mut *mut LDAPControlW) -> i32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_create_vlv_controlW(externalhandle : *mut LDAP, vlvinfo : *mut LDAPVLVInfo, iscritical : u8, control : *mut *mut LDAPControlW) -> i32); - ldap_create_vlv_controlW(core::mem::transmute(externalhandle), core::mem::transmute(vlvinfo), core::mem::transmute(iscritical), core::mem::transmute(control)) + ldap_create_vlv_controlW(core::mem::transmute(externalhandle), core::mem::transmute(vlvinfo), iscritical, core::mem::transmute(control)) } #[inline] pub unsafe fn ldap_delete(ld: *mut LDAP, dn: P1) -> u32 @@ -650,27 +650,27 @@ where #[inline] pub unsafe fn ldap_encode_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, control: *mut LDAPControlA, criticality: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : bool) -> u32); - ldap_encode_sort_controlA(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), core::mem::transmute(criticality)) + ldap_encode_sort_controlA(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), criticality) } #[inline] pub unsafe fn ldap_encode_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, control: *mut LDAPControlW, criticality: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : bool) -> u32); - ldap_encode_sort_controlW(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), core::mem::transmute(criticality)) + ldap_encode_sort_controlW(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), criticality) } #[inline] pub unsafe fn ldap_err2string(err: u32) -> windows_core::PSTR { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_err2string(err : u32) -> windows_core::PSTR); - ldap_err2string(core::mem::transmute(err)) + ldap_err2string(err) } #[inline] pub unsafe fn ldap_err2stringA(err: u32) -> windows_core::PSTR { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_err2stringA(err : u32) -> windows_core::PSTR); - ldap_err2stringA(core::mem::transmute(err)) + ldap_err2stringA(err) } #[inline] pub unsafe fn ldap_err2stringW(err: u32) -> windows_core::PWSTR { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_err2stringW(err : u32) -> windows_core::PWSTR); - ldap_err2stringW(core::mem::transmute(err)) + ldap_err2stringW(err) } #[inline] pub unsafe fn ldap_escape_filter_element(sourcefilterelement: &[u8], destfilterelement: Option<&mut [u8]>) -> u32 { @@ -685,7 +685,7 @@ pub unsafe fn ldap_escape_filter_elementA(sourcefilterelement: &[u8], destfilter #[inline] pub unsafe fn ldap_escape_filter_elementW(sourcefilterelement: &[u8], destfilterelement: Option, destlength: u32) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_escape_filter_elementW(sourcefilterelement : windows_core::PCSTR, sourcelength : u32, destfilterelement : windows_core::PWSTR, destlength : u32) -> u32); - ldap_escape_filter_elementW(core::mem::transmute(sourcefilterelement.as_ptr()), sourcefilterelement.len().try_into().unwrap(), core::mem::transmute(destfilterelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(destlength)) + ldap_escape_filter_elementW(core::mem::transmute(sourcefilterelement.as_ptr()), sourcefilterelement.len().try_into().unwrap(), core::mem::transmute(destfilterelement.unwrap_or(core::mem::zeroed())), destlength) } #[inline] pub unsafe fn ldap_explode_dn(dn: P0, notypes: u32) -> *mut windows_core::PSTR @@ -693,7 +693,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_explode_dn(dn : windows_core::PCSTR, notypes : u32) -> *mut windows_core::PSTR); - ldap_explode_dn(dn.param().abi(), core::mem::transmute(notypes)) + ldap_explode_dn(dn.param().abi(), notypes) } #[inline] pub unsafe fn ldap_explode_dnA(dn: P0, notypes: u32) -> *mut windows_core::PSTR @@ -701,7 +701,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_explode_dnA(dn : windows_core::PCSTR, notypes : u32) -> *mut windows_core::PSTR); - ldap_explode_dnA(dn.param().abi(), core::mem::transmute(notypes)) + ldap_explode_dnA(dn.param().abi(), notypes) } #[inline] pub unsafe fn ldap_explode_dnW(dn: P0, notypes: u32) -> *mut windows_core::PWSTR @@ -709,7 +709,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_explode_dnW(dn : windows_core::PCWSTR, notypes : u32) -> *mut windows_core::PWSTR); - ldap_explode_dnW(dn.param().abi(), core::mem::transmute(notypes)) + ldap_explode_dnW(dn.param().abi(), notypes) } #[inline] pub unsafe fn ldap_extended_operation(ld: *mut LDAP, oid: P1, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 @@ -809,27 +809,27 @@ pub unsafe fn ldap_get_dnW(ld: *mut LDAP, entry: *mut LDAPMessage) -> windows_co #[inline] pub unsafe fn ldap_get_next_page(externalhandle: *mut LDAP, searchhandle: PLDAPSearch, pagesize: u32, messagenumber: *mut u32) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_next_page(externalhandle : *mut LDAP, searchhandle : PLDAPSearch, pagesize : u32, messagenumber : *mut u32) -> u32); - ldap_get_next_page(core::mem::transmute(externalhandle), core::mem::transmute(searchhandle), core::mem::transmute(pagesize), core::mem::transmute(messagenumber)) + ldap_get_next_page(core::mem::transmute(externalhandle), searchhandle, pagesize, core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_get_next_page_s(externalhandle: *mut LDAP, searchhandle: PLDAPSearch, timeout: *mut LDAP_TIMEVAL, pagesize: u32, totalcount: *mut u32, results: *mut *mut LDAPMessage) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_next_page_s(externalhandle : *mut LDAP, searchhandle : PLDAPSearch, timeout : *mut LDAP_TIMEVAL, pagesize : u32, totalcount : *mut u32, results : *mut *mut LDAPMessage) -> u32); - ldap_get_next_page_s(core::mem::transmute(externalhandle), core::mem::transmute(searchhandle), core::mem::transmute(timeout), core::mem::transmute(pagesize), core::mem::transmute(totalcount), core::mem::transmute(results)) + ldap_get_next_page_s(core::mem::transmute(externalhandle), searchhandle, core::mem::transmute(timeout), pagesize, core::mem::transmute(totalcount), core::mem::transmute(results)) } #[inline] pub unsafe fn ldap_get_option(ld: *mut LDAP, option: i32, outvalue: *mut core::ffi::c_void) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_option(ld : *mut LDAP, option : i32, outvalue : *mut core::ffi::c_void) -> u32); - ldap_get_option(core::mem::transmute(ld), core::mem::transmute(option), core::mem::transmute(outvalue)) + ldap_get_option(core::mem::transmute(ld), option, core::mem::transmute(outvalue)) } #[inline] pub unsafe fn ldap_get_optionW(ld: *mut LDAP, option: i32, outvalue: *mut core::ffi::c_void) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_optionW(ld : *mut LDAP, option : i32, outvalue : *mut core::ffi::c_void) -> u32); - ldap_get_optionW(core::mem::transmute(ld), core::mem::transmute(option), core::mem::transmute(outvalue)) + ldap_get_optionW(core::mem::transmute(ld), option, core::mem::transmute(outvalue)) } #[inline] pub unsafe fn ldap_get_paged_count(externalhandle: *mut LDAP, searchblock: PLDAPSearch, totalcount: *mut u32, results: *mut LDAPMessage) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_paged_count(externalhandle : *mut LDAP, searchblock : PLDAPSearch, totalcount : *mut u32, results : *mut LDAPMessage) -> u32); - ldap_get_paged_count(core::mem::transmute(externalhandle), core::mem::transmute(searchblock), core::mem::transmute(totalcount), core::mem::transmute(results)) + ldap_get_paged_count(core::mem::transmute(externalhandle), searchblock, core::mem::transmute(totalcount), core::mem::transmute(results)) } #[inline] pub unsafe fn ldap_get_values(ld: *mut LDAP, entry: *mut LDAPMessage, attr: P2) -> *mut windows_core::PSTR @@ -885,7 +885,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_init(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_init(hostname.param().abi(), core::mem::transmute(portnumber)) + ldap_init(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_initA(hostname: P0, portnumber: u32) -> *mut LDAP @@ -893,7 +893,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_initA(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_initA(hostname.param().abi(), core::mem::transmute(portnumber)) + ldap_initA(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_initW(hostname: P0, portnumber: u32) -> *mut LDAP @@ -901,7 +901,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_initW(hostname : windows_core::PCWSTR, portnumber : u32) -> *mut LDAP); - ldap_initW(hostname.param().abi(), core::mem::transmute(portnumber)) + ldap_initW(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_memfree(block: P0) @@ -1039,7 +1039,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn2(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR, deleteoldrdn : i32) -> u32); - ldap_modrdn2(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), core::mem::transmute(deleteoldrdn)) + ldap_modrdn2(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2A(externalhandle: *mut LDAP, distinguishedname: P1, newdistinguishedname: P2, deleteoldrdn: i32) -> u32 @@ -1048,7 +1048,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn2A(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR, deleteoldrdn : i32) -> u32); - ldap_modrdn2A(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), core::mem::transmute(deleteoldrdn)) + ldap_modrdn2A(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2W(externalhandle: *mut LDAP, distinguishedname: P1, newdistinguishedname: P2, deleteoldrdn: i32) -> u32 @@ -1057,7 +1057,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn2W(externalhandle : *mut LDAP, distinguishedname : windows_core::PCWSTR, newdistinguishedname : windows_core::PCWSTR, deleteoldrdn : i32) -> u32); - ldap_modrdn2W(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), core::mem::transmute(deleteoldrdn)) + ldap_modrdn2W(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2_s(externalhandle: *mut LDAP, distinguishedname: P1, newdistinguishedname: P2, deleteoldrdn: i32) -> u32 @@ -1066,7 +1066,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn2_s(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR, deleteoldrdn : i32) -> u32); - ldap_modrdn2_s(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), core::mem::transmute(deleteoldrdn)) + ldap_modrdn2_s(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2_sA(externalhandle: *mut LDAP, distinguishedname: P1, newdistinguishedname: P2, deleteoldrdn: i32) -> u32 @@ -1075,7 +1075,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn2_sA(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR, deleteoldrdn : i32) -> u32); - ldap_modrdn2_sA(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), core::mem::transmute(deleteoldrdn)) + ldap_modrdn2_sA(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2_sW(externalhandle: *mut LDAP, distinguishedname: P1, newdistinguishedname: P2, deleteoldrdn: i32) -> u32 @@ -1084,7 +1084,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn2_sW(externalhandle : *mut LDAP, distinguishedname : windows_core::PCWSTR, newdistinguishedname : windows_core::PCWSTR, deleteoldrdn : i32) -> u32); - ldap_modrdn2_sW(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), core::mem::transmute(deleteoldrdn)) + ldap_modrdn2_sW(core::mem::transmute(externalhandle), distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdnA(externalhandle: *mut LDAP, distinguishedname: P1, newdistinguishedname: P2) -> u32 @@ -1167,7 +1167,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_open(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_open(hostname.param().abi(), core::mem::transmute(portnumber)) + ldap_open(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_openA(hostname: P0, portnumber: u32) -> *mut LDAP @@ -1175,7 +1175,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_openA(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_openA(hostname.param().abi(), core::mem::transmute(portnumber)) + ldap_openA(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_openW(hostname: P0, portnumber: u32) -> *mut LDAP @@ -1183,17 +1183,17 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_openW(hostname : windows_core::PCWSTR, portnumber : u32) -> *mut LDAP); - ldap_openW(hostname.param().abi(), core::mem::transmute(portnumber)) + ldap_openW(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_parse_extended_resultA(connection: *mut LDAP, resultmessage: *mut LDAPMessage, resultoid: Option<*mut windows_core::PSTR>, resultdata: *mut *mut LDAP_BERVAL, freeit: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_core::PSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32); - ldap_parse_extended_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), core::mem::transmute(freeit)) + ldap_parse_extended_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), freeit) } #[inline] pub unsafe fn ldap_parse_extended_resultW(connection: *mut LDAP, resultmessage: *mut LDAPMessage, resultoid: Option<*mut windows_core::PWSTR>, resultdata: *mut *mut LDAP_BERVAL, freeit: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_core::PWSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32); - ldap_parse_extended_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), core::mem::transmute(freeit)) + ldap_parse_extended_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), freeit) } #[inline] pub unsafe fn ldap_parse_page_control(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32 { @@ -1228,17 +1228,17 @@ pub unsafe fn ldap_parse_referenceW(connection: *mut LDAP, resultmessage: *mut L #[inline] pub unsafe fn ldap_parse_result(connection: *mut LDAP, resultmessage: *mut LDAPMessage, returncode: *mut u32, matcheddns: Option<*mut windows_core::PSTR>, errormessage: Option<*mut windows_core::PSTR>, referrals: Option<*mut *mut windows_core::PSTR>, servercontrols: *mut *mut *mut LDAPControlA, freeit: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_result(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PSTR, errormessage : *mut windows_core::PSTR, referrals : *mut *mut windows_core::PSTR, servercontrols : *mut *mut *mut LDAPControlA, freeit : bool) -> u32); - ldap_parse_result(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), core::mem::transmute(freeit)) + ldap_parse_result(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), freeit) } #[inline] pub unsafe fn ldap_parse_resultA(connection: *mut LDAP, resultmessage: *mut LDAPMessage, returncode: *mut u32, matcheddns: Option<*mut windows_core::PSTR>, errormessage: Option<*mut windows_core::PSTR>, referrals: Option<*mut *mut *mut i8>, servercontrols: *mut *mut *mut LDAPControlA, freeit: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PSTR, errormessage : *mut windows_core::PSTR, referrals : *mut *mut *mut i8, servercontrols : *mut *mut *mut LDAPControlA, freeit : bool) -> u32); - ldap_parse_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), core::mem::transmute(freeit)) + ldap_parse_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), freeit) } #[inline] pub unsafe fn ldap_parse_resultW(connection: *mut LDAP, resultmessage: *mut LDAPMessage, returncode: *mut u32, matcheddns: Option<*mut windows_core::PWSTR>, errormessage: Option<*mut windows_core::PWSTR>, referrals: Option<*mut *mut *mut u16>, servercontrols: *mut *mut *mut LDAPControlW, freeit: bool) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PWSTR, errormessage : *mut windows_core::PWSTR, referrals : *mut *mut *mut u16, servercontrols : *mut *mut *mut LDAPControlW, freeit : bool) -> u32); - ldap_parse_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), core::mem::transmute(freeit)) + ldap_parse_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), freeit) } #[inline] pub unsafe fn ldap_parse_sort_control(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut windows_core::PSTR) -> u32 { @@ -1281,7 +1281,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_rename_ext(ld : *mut LDAP, dn : windows_core::PCSTR, newrdn : windows_core::PCSTR, newparent : windows_core::PCSTR, deleteoldrdn : i32, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_rename_ext(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), core::mem::transmute(deleteoldrdn), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(messagenumber)) + ldap_rename_ext(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_rename_extA(ld: *mut LDAP, dn: P1, newrdn: P2, newparent: P3, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 @@ -1291,7 +1291,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_rename_extA(ld : *mut LDAP, dn : windows_core::PCSTR, newrdn : windows_core::PCSTR, newparent : windows_core::PCSTR, deleteoldrdn : i32, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_rename_extA(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), core::mem::transmute(deleteoldrdn), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(messagenumber)) + ldap_rename_extA(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_rename_extW(ld: *mut LDAP, dn: P1, newrdn: P2, newparent: P3, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 @@ -1301,7 +1301,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_rename_extW(ld : *mut LDAP, dn : windows_core::PCWSTR, newrdn : windows_core::PCWSTR, newparent : windows_core::PCWSTR, deleteoldrdn : i32, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32); - ldap_rename_extW(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), core::mem::transmute(deleteoldrdn), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(messagenumber)) + ldap_rename_extW(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_rename_ext_s(ld: *mut LDAP, dn: P1, newrdn: P2, newparent: P3, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 @@ -1311,7 +1311,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_rename_ext_s(ld : *mut LDAP, dn : windows_core::PCSTR, newrdn : windows_core::PCSTR, newparent : windows_core::PCSTR, deleteoldrdn : i32, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_rename_ext_s(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), core::mem::transmute(deleteoldrdn), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols)) + ldap_rename_ext_s(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols)) } #[inline] pub unsafe fn ldap_rename_ext_sA(ld: *mut LDAP, dn: P1, newrdn: P2, newparent: P3, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 @@ -1321,7 +1321,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_rename_ext_sA(ld : *mut LDAP, dn : windows_core::PCSTR, newrdn : windows_core::PCSTR, newparent : windows_core::PCSTR, deleteoldrdn : i32, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_rename_ext_sA(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), core::mem::transmute(deleteoldrdn), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols)) + ldap_rename_ext_sA(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols)) } #[inline] pub unsafe fn ldap_rename_ext_sW(ld: *mut LDAP, dn: P1, newrdn: P2, newparent: P3, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32 @@ -1331,17 +1331,17 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_rename_ext_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, newrdn : windows_core::PCWSTR, newparent : windows_core::PCWSTR, deleteoldrdn : i32, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32); - ldap_rename_ext_sW(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), core::mem::transmute(deleteoldrdn), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols)) + ldap_rename_ext_sW(core::mem::transmute(ld), dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols)) } #[inline] pub unsafe fn ldap_result(ld: *mut LDAP, msgid: u32, all: u32, timeout: Option<*const LDAP_TIMEVAL>, res: *mut *mut LDAPMessage) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_result(ld : *mut LDAP, msgid : u32, all : u32, timeout : *const LDAP_TIMEVAL, res : *mut *mut LDAPMessage) -> u32); - ldap_result(core::mem::transmute(ld), core::mem::transmute(msgid), core::mem::transmute(all), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(res)) + ldap_result(core::mem::transmute(ld), msgid, all, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_result2error(ld: *mut LDAP, res: *mut LDAPMessage, freeit: u32) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_result2error(ld : *mut LDAP, res : *mut LDAPMessage, freeit : u32) -> u32); - ldap_result2error(core::mem::transmute(ld), core::mem::transmute(res), core::mem::transmute(freeit)) + ldap_result2error(core::mem::transmute(ld), core::mem::transmute(res), freeit) } #[inline] pub unsafe fn ldap_sasl_bindA(externalhandle: *mut LDAP, distname: P1, authmechanism: P2, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, messagenumber: *mut i32) -> i32 @@ -1350,7 +1350,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sasl_bindA(externalhandle : *mut LDAP, distname : windows_core::PCSTR, authmechanism : windows_core::PCSTR, cred : *const LDAP_BERVAL, serverctrls : *mut *mut LDAPControlA, clientctrls : *mut *mut LDAPControlA, messagenumber : *mut i32) -> i32); - ldap_sasl_bindA(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), core::mem::transmute(cred), core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(messagenumber)) + ldap_sasl_bindA(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), cred, core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_sasl_bindW(externalhandle: *mut LDAP, distname: P1, authmechanism: P2, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, messagenumber: *mut i32) -> i32 @@ -1359,7 +1359,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sasl_bindW(externalhandle : *mut LDAP, distname : windows_core::PCWSTR, authmechanism : windows_core::PCWSTR, cred : *const LDAP_BERVAL, serverctrls : *mut *mut LDAPControlW, clientctrls : *mut *mut LDAPControlW, messagenumber : *mut i32) -> i32); - ldap_sasl_bindW(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), core::mem::transmute(cred), core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(messagenumber)) + ldap_sasl_bindW(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), cred, core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_sasl_bind_sA(externalhandle: *mut LDAP, distname: P1, authmechanism: P2, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, serverdata: *mut *mut LDAP_BERVAL) -> i32 @@ -1368,7 +1368,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sasl_bind_sA(externalhandle : *mut LDAP, distname : windows_core::PCSTR, authmechanism : windows_core::PCSTR, cred : *const LDAP_BERVAL, serverctrls : *mut *mut LDAPControlA, clientctrls : *mut *mut LDAPControlA, serverdata : *mut *mut LDAP_BERVAL) -> i32); - ldap_sasl_bind_sA(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), core::mem::transmute(cred), core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(serverdata)) + ldap_sasl_bind_sA(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), cred, core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(serverdata)) } #[inline] pub unsafe fn ldap_sasl_bind_sW(externalhandle: *mut LDAP, distname: P1, authmechanism: P2, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, serverdata: *mut *mut LDAP_BERVAL) -> i32 @@ -1377,7 +1377,7 @@ where P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sasl_bind_sW(externalhandle : *mut LDAP, distname : windows_core::PCWSTR, authmechanism : windows_core::PCWSTR, cred : *const LDAP_BERVAL, serverctrls : *mut *mut LDAPControlW, clientctrls : *mut *mut LDAPControlW, serverdata : *mut *mut LDAP_BERVAL) -> i32); - ldap_sasl_bind_sW(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), core::mem::transmute(cred), core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(serverdata)) + ldap_sasl_bind_sW(core::mem::transmute(externalhandle), distname.param().abi(), authmechanism.param().abi(), cred, core::mem::transmute(serverctrls), core::mem::transmute(clientctrls), core::mem::transmute(serverdata)) } #[inline] pub unsafe fn ldap_search(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32) -> u32 @@ -1386,7 +1386,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32) -> u32); - ldap_search(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly)) + ldap_search(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly) } #[inline] pub unsafe fn ldap_searchA(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32) -> u32 @@ -1395,7 +1395,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_searchA(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32) -> u32); - ldap_searchA(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly)) + ldap_searchA(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly) } #[inline] pub unsafe fn ldap_searchW(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const u16, attrsonly: u32) -> u32 @@ -1404,12 +1404,12 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_searchW(ld : *mut LDAP, base : windows_core::PCWSTR, scope : u32, filter : windows_core::PCWSTR, attrs : *const *const u16, attrsonly : u32) -> u32); - ldap_searchW(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly)) + ldap_searchW(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly) } #[inline] pub unsafe fn ldap_search_abandon_page(externalhandle: *mut LDAP, searchblock: PLDAPSearch) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_abandon_page(externalhandle : *mut LDAP, searchblock : PLDAPSearch) -> u32); - ldap_search_abandon_page(core::mem::transmute(externalhandle), core::mem::transmute(searchblock)) + ldap_search_abandon_page(core::mem::transmute(externalhandle), searchblock) } #[inline] pub unsafe fn ldap_search_ext(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, servercontrols: Option<*const *const LDAPControlA>, clientcontrols: Option<*const *const LDAPControlA>, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32 @@ -1418,7 +1418,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_ext(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, servercontrols : *const *const LDAPControlA, clientcontrols : *const *const LDAPControlA, timelimit : u32, sizelimit : u32, messagenumber : *mut u32) -> u32); - ldap_search_ext(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timelimit), core::mem::transmute(sizelimit), core::mem::transmute(messagenumber)) + ldap_search_ext(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), timelimit, sizelimit, core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_search_extA(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, servercontrols: Option<*const *const LDAPControlA>, clientcontrols: Option<*const *const LDAPControlA>, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32 @@ -1427,7 +1427,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_extA(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, servercontrols : *const *const LDAPControlA, clientcontrols : *const *const LDAPControlA, timelimit : u32, sizelimit : u32, messagenumber : *mut u32) -> u32); - ldap_search_extA(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timelimit), core::mem::transmute(sizelimit), core::mem::transmute(messagenumber)) + ldap_search_extA(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), timelimit, sizelimit, core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_search_extW(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const u16, attrsonly: u32, servercontrols: Option<*const *const LDAPControlW>, clientcontrols: Option<*const *const LDAPControlW>, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32 @@ -1436,7 +1436,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_extW(ld : *mut LDAP, base : windows_core::PCWSTR, scope : u32, filter : windows_core::PCWSTR, attrs : *const *const u16, attrsonly : u32, servercontrols : *const *const LDAPControlW, clientcontrols : *const *const LDAPControlW, timelimit : u32, sizelimit : u32, messagenumber : *mut u32) -> u32); - ldap_search_extW(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timelimit), core::mem::transmute(sizelimit), core::mem::transmute(messagenumber)) + ldap_search_extW(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), timelimit, sizelimit, core::mem::transmute(messagenumber)) } #[inline] pub unsafe fn ldap_search_ext_s(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, servercontrols: Option<*const *const LDAPControlA>, clientcontrols: Option<*const *const LDAPControlA>, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32 @@ -1445,7 +1445,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_ext_s(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, servercontrols : *const *const LDAPControlA, clientcontrols : *const *const LDAPControlA, timeout : *mut LDAP_TIMEVAL, sizelimit : u32, res : *mut *mut LDAPMessage) -> u32); - ldap_search_ext_s(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), core::mem::transmute(sizelimit), core::mem::transmute(res)) + ldap_search_ext_s(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), sizelimit, core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_ext_sA(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, servercontrols: Option<*const *const LDAPControlA>, clientcontrols: Option<*const *const LDAPControlA>, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32 @@ -1454,7 +1454,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_ext_sA(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, servercontrols : *const *const LDAPControlA, clientcontrols : *const *const LDAPControlA, timeout : *mut LDAP_TIMEVAL, sizelimit : u32, res : *mut *mut LDAPMessage) -> u32); - ldap_search_ext_sA(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), core::mem::transmute(sizelimit), core::mem::transmute(res)) + ldap_search_ext_sA(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), sizelimit, core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_ext_sW(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const u16, attrsonly: u32, servercontrols: Option<*const *const LDAPControlW>, clientcontrols: Option<*const *const LDAPControlW>, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32 @@ -1463,7 +1463,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_ext_sW(ld : *mut LDAP, base : windows_core::PCWSTR, scope : u32, filter : windows_core::PCWSTR, attrs : *const *const u16, attrsonly : u32, servercontrols : *const *const LDAPControlW, clientcontrols : *const *const LDAPControlW, timeout : *mut LDAP_TIMEVAL, sizelimit : u32, res : *mut *mut LDAPMessage) -> u32); - ldap_search_ext_sW(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), core::mem::transmute(sizelimit), core::mem::transmute(res)) + ldap_search_ext_sW(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(clientcontrols.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout), sizelimit, core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_init_page(externalhandle: *mut LDAP, distinguishedname: P1, scopeofsearch: u32, searchfilter: P3, attributelist: *mut *mut i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> PLDAPSearch @@ -1472,7 +1472,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_init_page(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, scopeofsearch : u32, searchfilter : windows_core::PCSTR, attributelist : *mut *mut i8, attributesonly : u32, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, pagetimelimit : u32, totalsizelimit : u32, sortkeys : *mut *mut LDAPSortKeyA) -> PLDAPSearch); - ldap_search_init_page(core::mem::transmute(externalhandle), distinguishedname.param().abi(), core::mem::transmute(scopeofsearch), searchfilter.param().abi(), core::mem::transmute(attributelist), core::mem::transmute(attributesonly), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(pagetimelimit), core::mem::transmute(totalsizelimit), core::mem::transmute(sortkeys)) + ldap_search_init_page(core::mem::transmute(externalhandle), distinguishedname.param().abi(), scopeofsearch, searchfilter.param().abi(), core::mem::transmute(attributelist), attributesonly, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), pagetimelimit, totalsizelimit, core::mem::transmute(sortkeys)) } #[inline] pub unsafe fn ldap_search_init_pageA(externalhandle: *mut LDAP, distinguishedname: P1, scopeofsearch: u32, searchfilter: P3, attributelist: *const *const i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> PLDAPSearch @@ -1481,7 +1481,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_init_pageA(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, scopeofsearch : u32, searchfilter : windows_core::PCSTR, attributelist : *const *const i8, attributesonly : u32, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, pagetimelimit : u32, totalsizelimit : u32, sortkeys : *mut *mut LDAPSortKeyA) -> PLDAPSearch); - ldap_search_init_pageA(core::mem::transmute(externalhandle), distinguishedname.param().abi(), core::mem::transmute(scopeofsearch), searchfilter.param().abi(), core::mem::transmute(attributelist), core::mem::transmute(attributesonly), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(pagetimelimit), core::mem::transmute(totalsizelimit), core::mem::transmute(sortkeys)) + ldap_search_init_pageA(core::mem::transmute(externalhandle), distinguishedname.param().abi(), scopeofsearch, searchfilter.param().abi(), attributelist, attributesonly, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), pagetimelimit, totalsizelimit, core::mem::transmute(sortkeys)) } #[inline] pub unsafe fn ldap_search_init_pageW(externalhandle: *mut LDAP, distinguishedname: P1, scopeofsearch: u32, searchfilter: P3, attributelist: *const *const u16, attributesonly: u32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyW) -> PLDAPSearch @@ -1490,7 +1490,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_init_pageW(externalhandle : *mut LDAP, distinguishedname : windows_core::PCWSTR, scopeofsearch : u32, searchfilter : windows_core::PCWSTR, attributelist : *const *const u16, attributesonly : u32, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, pagetimelimit : u32, totalsizelimit : u32, sortkeys : *mut *mut LDAPSortKeyW) -> PLDAPSearch); - ldap_search_init_pageW(core::mem::transmute(externalhandle), distinguishedname.param().abi(), core::mem::transmute(scopeofsearch), searchfilter.param().abi(), core::mem::transmute(attributelist), core::mem::transmute(attributesonly), core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), core::mem::transmute(pagetimelimit), core::mem::transmute(totalsizelimit), core::mem::transmute(sortkeys)) + ldap_search_init_pageW(core::mem::transmute(externalhandle), distinguishedname.param().abi(), scopeofsearch, searchfilter.param().abi(), attributelist, attributesonly, core::mem::transmute(servercontrols), core::mem::transmute(clientcontrols), pagetimelimit, totalsizelimit, core::mem::transmute(sortkeys)) } #[inline] pub unsafe fn ldap_search_s(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32 @@ -1499,7 +1499,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_s(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, res : *mut *mut LDAPMessage) -> u32); - ldap_search_s(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(res)) + ldap_search_s(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_sA(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32 @@ -1508,7 +1508,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_sA(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, res : *mut *mut LDAPMessage) -> u32); - ldap_search_sA(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(res)) + ldap_search_sA(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_sW(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const u16, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32 @@ -1517,7 +1517,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_sW(ld : *mut LDAP, base : windows_core::PCWSTR, scope : u32, filter : windows_core::PCWSTR, attrs : *const *const u16, attrsonly : u32, res : *mut *mut LDAPMessage) -> u32); - ldap_search_sW(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(res)) + ldap_search_sW(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_st(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32 @@ -1526,7 +1526,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_st(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, timeout : *mut LDAP_TIMEVAL, res : *mut *mut LDAPMessage) -> u32); - ldap_search_st(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(timeout), core::mem::transmute(res)) + ldap_search_st(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(timeout), core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_stA(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32 @@ -1535,7 +1535,7 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_stA(ld : *mut LDAP, base : windows_core::PCSTR, scope : u32, filter : windows_core::PCSTR, attrs : *const *const i8, attrsonly : u32, timeout : *mut LDAP_TIMEVAL, res : *mut *mut LDAPMessage) -> u32); - ldap_search_stA(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(timeout), core::mem::transmute(res)) + ldap_search_stA(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(timeout), core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_search_stW(ld: *mut LDAP, base: P1, scope: u32, filter: P3, attrs: *const *const u16, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32 @@ -1544,27 +1544,27 @@ where P3: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_stW(ld : *mut LDAP, base : windows_core::PCWSTR, scope : u32, filter : windows_core::PCWSTR, attrs : *const *const u16, attrsonly : u32, timeout : *mut LDAP_TIMEVAL, res : *mut *mut LDAPMessage) -> u32); - ldap_search_stW(core::mem::transmute(ld), base.param().abi(), core::mem::transmute(scope), filter.param().abi(), core::mem::transmute(attrs), core::mem::transmute(attrsonly), core::mem::transmute(timeout), core::mem::transmute(res)) + ldap_search_stW(core::mem::transmute(ld), base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(timeout), core::mem::transmute(res)) } #[inline] pub unsafe fn ldap_set_dbg_flags(newflags: u32) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_set_dbg_flags(newflags : u32) -> u32); - ldap_set_dbg_flags(core::mem::transmute(newflags)) + ldap_set_dbg_flags(newflags) } #[inline] pub unsafe fn ldap_set_dbg_routine(debugprintroutine: DBGPRINT) { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_set_dbg_routine(debugprintroutine : DBGPRINT)); - ldap_set_dbg_routine(core::mem::transmute(debugprintroutine)) + ldap_set_dbg_routine(debugprintroutine) } #[inline] pub unsafe fn ldap_set_option(ld: *mut LDAP, option: i32, invalue: *const core::ffi::c_void) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_set_option(ld : *mut LDAP, option : i32, invalue : *const core::ffi::c_void) -> u32); - ldap_set_option(core::mem::transmute(ld), core::mem::transmute(option), core::mem::transmute(invalue)) + ldap_set_option(core::mem::transmute(ld), option, invalue) } #[inline] pub unsafe fn ldap_set_optionW(ld: *mut LDAP, option: i32, invalue: *const core::ffi::c_void) -> u32 { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_set_optionW(ld : *mut LDAP, option : i32, invalue : *const core::ffi::c_void) -> u32); - ldap_set_optionW(core::mem::transmute(ld), core::mem::transmute(option), core::mem::transmute(invalue)) + ldap_set_optionW(core::mem::transmute(ld), option, invalue) } #[inline] pub unsafe fn ldap_simple_bind(ld: *mut LDAP, dn: P1, passwd: P2) -> u32 @@ -1626,7 +1626,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sslinit(hostname : windows_core::PCSTR, portnumber : u32, secure : i32) -> *mut LDAP); - ldap_sslinit(hostname.param().abi(), core::mem::transmute(portnumber), core::mem::transmute(secure)) + ldap_sslinit(hostname.param().abi(), portnumber, secure) } #[inline] pub unsafe fn ldap_sslinitA(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP @@ -1634,7 +1634,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sslinitA(hostname : windows_core::PCSTR, portnumber : u32, secure : i32) -> *mut LDAP); - ldap_sslinitA(hostname.param().abi(), core::mem::transmute(portnumber), core::mem::transmute(secure)) + ldap_sslinitA(hostname.param().abi(), portnumber, secure) } #[inline] pub unsafe fn ldap_sslinitW(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP @@ -1642,7 +1642,7 @@ where P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sslinitW(hostname : windows_core::PCWSTR, portnumber : u32, secure : i32) -> *mut LDAP); - ldap_sslinitW(hostname.param().abi(), core::mem::transmute(portnumber), core::mem::transmute(secure)) + ldap_sslinitW(hostname.param().abi(), portnumber, secure) } #[inline] pub unsafe fn ldap_start_tls_sA(externalhandle: *mut LDAP, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs index 79bf0c92a3..6f92ba43e5 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs @@ -20,7 +20,7 @@ impl IEnumNetworkConnections { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -123,7 +123,7 @@ impl IEnumNetworks { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -263,7 +263,7 @@ impl INetwork { (windows_core::Interface::vtable(self).GetCategory)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCategory(&self, newcategory: NLM_NETWORK_CATEGORY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(newcategory)).ok() + (windows_core::Interface::vtable(self).SetCategory)(windows_core::Interface::as_raw(self), newcategory).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -447,7 +447,7 @@ windows_core::imp::interface_hierarchy!(INetwork2, windows_core::IUnknown, super impl INetwork2 { pub unsafe fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsDomainAuthenticatedBy)(windows_core::Interface::as_raw(self), core::mem::transmute(domainauthenticationkind), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsDomainAuthenticatedBy)(windows_core::Interface::as_raw(self), domainauthenticationkind, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -650,7 +650,7 @@ windows_core::imp::interface_hierarchy!(INetworkConnection2, windows_core::IUnkn impl INetworkConnection2 { pub unsafe fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsDomainAuthenticatedBy)(windows_core::Interface::as_raw(self), core::mem::transmute(domainauthenticationkind), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsDomainAuthenticatedBy)(windows_core::Interface::as_raw(self), domainauthenticationkind, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -736,7 +736,7 @@ windows_core::imp::define_interface!(INetworkConnectionCostEvents, INetworkConne windows_core::imp::interface_hierarchy!(INetworkConnectionCostEvents, windows_core::IUnknown); impl INetworkConnectionCostEvents { pub unsafe fn ConnectionCostChanged(&self, connectionid: windows_core::GUID, newcost: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectionCostChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid), core::mem::transmute(newcost)).ok() + (windows_core::Interface::vtable(self).ConnectionCostChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid), newcost).ok() } pub unsafe fn ConnectionDataPlanStatusChanged(&self, connectionid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConnectionDataPlanStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid)).ok() @@ -777,10 +777,10 @@ windows_core::imp::define_interface!(INetworkConnectionEvents, INetworkConnectio windows_core::imp::interface_hierarchy!(INetworkConnectionEvents, windows_core::IUnknown); impl INetworkConnectionEvents { pub unsafe fn NetworkConnectionConnectivityChanged(&self, connectionid: windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NetworkConnectionConnectivityChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid), core::mem::transmute(newconnectivity)).ok() + (windows_core::Interface::vtable(self).NetworkConnectionConnectivityChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid), newconnectivity).ok() } pub unsafe fn NetworkConnectionPropertyChanged(&self, connectionid: windows_core::GUID, flags: NLM_CONNECTION_PROPERTY_CHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NetworkConnectionPropertyChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).NetworkConnectionPropertyChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionid), flags).ok() } } #[repr(C)] @@ -818,13 +818,13 @@ windows_core::imp::define_interface!(INetworkCostManager, INetworkCostManager_Vt windows_core::imp::interface_hierarchy!(INetworkCostManager, windows_core::IUnknown); impl INetworkCostManager { pub unsafe fn GetCost(&self, pcost: *mut u32, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCost)(windows_core::Interface::as_raw(self), core::mem::transmute(pcost), core::mem::transmute(pdestipaddr)).ok() + (windows_core::Interface::vtable(self).GetCost)(windows_core::Interface::as_raw(self), core::mem::transmute(pcost), pdestipaddr).ok() } pub unsafe fn GetDataPlanStatus(&self, pdataplanstatus: *mut NLM_DATAPLAN_STATUS, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDataPlanStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pdataplanstatus), core::mem::transmute(pdestipaddr)).ok() + (windows_core::Interface::vtable(self).GetDataPlanStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pdataplanstatus), pdestipaddr).ok() } pub unsafe fn SetDestinationAddresses(&self, pdestipaddrlist: &[NLM_SOCKADDR], bappend: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestinationAddresses)(windows_core::Interface::as_raw(self), pdestipaddrlist.len().try_into().unwrap(), core::mem::transmute(pdestipaddrlist.as_ptr()), core::mem::transmute(bappend)).ok() + (windows_core::Interface::vtable(self).SetDestinationAddresses)(windows_core::Interface::as_raw(self), pdestipaddrlist.len().try_into().unwrap(), core::mem::transmute(pdestipaddrlist.as_ptr()), bappend).ok() } } #[repr(C)] @@ -869,10 +869,10 @@ windows_core::imp::define_interface!(INetworkCostManagerEvents, INetworkCostMana windows_core::imp::interface_hierarchy!(INetworkCostManagerEvents, windows_core::IUnknown); impl INetworkCostManagerEvents { pub unsafe fn CostChanged(&self, newcost: u32, pdestaddr: *const NLM_SOCKADDR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CostChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newcost), core::mem::transmute(pdestaddr)).ok() + (windows_core::Interface::vtable(self).CostChanged)(windows_core::Interface::as_raw(self), newcost, pdestaddr).ok() } pub unsafe fn DataPlanStatusChanged(&self, pdestaddr: *const NLM_SOCKADDR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DataPlanStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(pdestaddr)).ok() + (windows_core::Interface::vtable(self).DataPlanStatusChanged)(windows_core::Interface::as_raw(self), pdestaddr).ok() } } #[repr(C)] @@ -916,10 +916,10 @@ impl INetworkEvents { (windows_core::Interface::vtable(self).NetworkDeleted)(windows_core::Interface::as_raw(self), core::mem::transmute(networkid)).ok() } pub unsafe fn NetworkConnectivityChanged(&self, networkid: windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NetworkConnectivityChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(networkid), core::mem::transmute(newconnectivity)).ok() + (windows_core::Interface::vtable(self).NetworkConnectivityChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(networkid), newconnectivity).ok() } pub unsafe fn NetworkPropertyChanged(&self, networkid: windows_core::GUID, flags: NLM_NETWORK_PROPERTY_CHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NetworkPropertyChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(networkid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).NetworkPropertyChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(networkid), flags).ok() } } #[repr(C)] @@ -982,7 +982,7 @@ windows_core::imp::interface_hierarchy!(INetworkListManager, windows_core::IUnkn impl INetworkListManager { pub unsafe fn GetNetworks(&self, flags: NLM_ENUM_NETWORK) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNetworks)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNetworks)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNetwork(&self, gdnetworkid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1009,7 +1009,7 @@ impl INetworkListManager { (windows_core::Interface::vtable(self).GetConnectivity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSimulatedProfileInfo(&self, psimulatedinfo: *const NLM_SIMULATED_PROFILE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSimulatedProfileInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(psimulatedinfo)).ok() + (windows_core::Interface::vtable(self).SetSimulatedProfileInfo)(windows_core::Interface::as_raw(self), psimulatedinfo).ok() } pub unsafe fn ClearSimulatedProfileInfo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearSimulatedProfileInfo)(windows_core::Interface::as_raw(self)).ok() @@ -1145,7 +1145,7 @@ windows_core::imp::define_interface!(INetworkListManagerEvents, INetworkListMana windows_core::imp::interface_hierarchy!(INetworkListManagerEvents, windows_core::IUnknown); impl INetworkListManagerEvents { pub unsafe fn ConnectivityChanged(&self, newconnectivity: NLM_CONNECTIVITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectivityChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newconnectivity)).ok() + (windows_core::Interface::vtable(self).ConnectivityChanged)(windows_core::Interface::as_raw(self), newconnectivity).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs index cd945d887d..f0061441b8 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs @@ -97,7 +97,7 @@ impl IRdcFileReader { (windows_core::Interface::vtable(self).GetFileSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Read(&self, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetfilestart), core::mem::transmute(bytestoread), core::mem::transmute(bytesactuallyread), core::mem::transmute(buffer), core::mem::transmute(eof)).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), offsetfilestart, bytestoread, core::mem::transmute(bytesactuallyread), core::mem::transmute(buffer), core::mem::transmute(eof)).ok() } pub unsafe fn GetFilePosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -165,7 +165,7 @@ windows_core::imp::interface_hierarchy!(IRdcFileWriter, windows_core::IUnknown, impl IRdcFileWriter { pub unsafe fn Write(&self, offsetfilestart: u64, bytestowrite: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(offsetfilestart), core::mem::transmute(bytestowrite), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), offsetfilestart, bytestowrite, &mut result__).map(|| result__) } pub unsafe fn Truncate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Truncate)(windows_core::Interface::as_raw(self)).ok() @@ -223,7 +223,7 @@ windows_core::imp::interface_hierarchy!(IRdcGenerator, windows_core::IUnknown); impl IRdcGenerator { pub unsafe fn GetGeneratorParameters(&self, level: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGeneratorParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(level), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetGeneratorParameters)(windows_core::Interface::as_raw(self), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Process(&self, endofinput: bool, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffers: &mut [*mut RdcBufferPointer], rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.into(), core::mem::transmute(endofoutput), core::mem::transmute(inputbuffer), outputbuffers.len().try_into().unwrap(), core::mem::transmute(outputbuffers.as_ptr()), core::mem::transmute(rdc_errorcode)).ok() @@ -274,14 +274,14 @@ impl IRdcGeneratorFilterMaxParameters { (windows_core::Interface::vtable(self).GetHorizonSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHorizonSize(&self, horizonsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHorizonSize)(windows_core::Interface::as_raw(self), core::mem::transmute(horizonsize)).ok() + (windows_core::Interface::vtable(self).SetHorizonSize)(windows_core::Interface::as_raw(self), horizonsize).ok() } pub unsafe fn GetHashWindowSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHashWindowSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHashWindowSize(&self, hashwindowsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashWindowSize)(windows_core::Interface::as_raw(self), core::mem::transmute(hashwindowsize)).ok() + (windows_core::Interface::vtable(self).SetHashWindowSize)(windows_core::Interface::as_raw(self), hashwindowsize).ok() } } #[repr(C)] @@ -356,7 +356,7 @@ impl IRdcGeneratorParameters { (windows_core::Interface::vtable(self).GetSerializeSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Serialize(&self, size: u32, parametersblob: *mut u8, byteswritten: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(parametersblob), core::mem::transmute(byteswritten)).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), size, core::mem::transmute(parametersblob), core::mem::transmute(byteswritten)).ok() } } #[repr(C)] @@ -421,15 +421,15 @@ windows_core::imp::interface_hierarchy!(IRdcLibrary, windows_core::IUnknown); impl IRdcLibrary { pub unsafe fn ComputeDefaultRecursionDepth(&self, filesize: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ComputeDefaultRecursionDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(filesize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ComputeDefaultRecursionDepth)(windows_core::Interface::as_raw(self), filesize, &mut result__).map(|| result__) } pub unsafe fn CreateGeneratorParameters(&self, parameterstype: GeneratorParametersType, level: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGeneratorParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(parameterstype), core::mem::transmute(level), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGeneratorParameters)(windows_core::Interface::as_raw(self), parameterstype, level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenGeneratorParameters(&self, size: u32, parametersblob: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenGeneratorParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(parametersblob), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenGeneratorParameters)(windows_core::Interface::as_raw(self), size, parametersblob, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGenerator(&self, igeneratorparametersarray: &[Option]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -440,7 +440,7 @@ impl IRdcLibrary { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateComparator)(windows_core::Interface::as_raw(self), iseedsignaturesfile.param().abi(), core::mem::transmute(comparatorbuffersize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateComparator)(windows_core::Interface::as_raw(self), iseedsignaturesfile.param().abi(), comparatorbuffersize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSignatureReader(&self, ifilereader: P0) -> windows_core::Result where @@ -659,7 +659,7 @@ impl ISimilarity { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.into(), core::mem::transmute(securitydescriptor), core::mem::transmute(recordsize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.into(), securitydescriptor, recordsize, &mut result__).map(|| result__) } pub unsafe fn CreateTableIndirect(&self, mapping: P0, fileidfile: P1, truncate: bool, recordsize: u32) -> windows_core::Result where @@ -667,17 +667,17 @@ impl ISimilarity { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), mapping.param().abi(), fileidfile.param().abi(), truncate.into(), core::mem::transmute(recordsize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), mapping.param().abi(), fileidfile.param().abi(), truncate.into(), recordsize, &mut result__).map(|| result__) } pub unsafe fn CloseTable(&self, isvalid: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.into()).ok() } pub unsafe fn Append(&self, similarityfileid: *const SimilarityFileId, similaritydata: *const SimilarityData) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), core::mem::transmute(similarityfileid), core::mem::transmute(similaritydata)).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), similarityfileid, similaritydata).ok() } pub unsafe fn FindSimilarFileId(&self, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, resultssize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindSimilarFileId)(windows_core::Interface::as_raw(self), core::mem::transmute(similaritydata), core::mem::transmute(numberofmatchesrequired), core::mem::transmute(resultssize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindSimilarFileId)(windows_core::Interface::as_raw(self), similaritydata, numberofmatchesrequired, resultssize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CopyAndSwap(&self, newsimilaritytables: P0, reportprogress: P1) -> windows_core::Result<()> where @@ -789,27 +789,27 @@ impl ISimilarityFileIdTable { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.into(), core::mem::transmute(securitydescriptor), core::mem::transmute(recordsize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.into(), securitydescriptor, recordsize, &mut result__).map(|| result__) } pub unsafe fn CreateTableIndirect(&self, fileidfile: P0, truncate: bool, recordsize: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), fileidfile.param().abi(), truncate.into(), core::mem::transmute(recordsize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), fileidfile.param().abi(), truncate.into(), recordsize, &mut result__).map(|| result__) } pub unsafe fn CloseTable(&self, isvalid: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.into()).ok() } pub unsafe fn Append(&self, similarityfileid: *const SimilarityFileId) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), core::mem::transmute(similarityfileid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), similarityfileid, &mut result__).map(|| result__) } pub unsafe fn Lookup(&self, similarityfileindex: u32, similarityfileid: *mut SimilarityFileId) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lookup)(windows_core::Interface::as_raw(self), core::mem::transmute(similarityfileindex), core::mem::transmute(similarityfileid)).ok() + (windows_core::Interface::vtable(self).Lookup)(windows_core::Interface::as_raw(self), similarityfileindex, core::mem::transmute(similarityfileid)).ok() } pub unsafe fn Invalidate(&self, similarityfileindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Invalidate)(windows_core::Interface::as_raw(self), core::mem::transmute(similarityfileindex)).ok() + (windows_core::Interface::vtable(self).Invalidate)(windows_core::Interface::as_raw(self), similarityfileindex).ok() } pub unsafe fn GetRecordCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -910,7 +910,7 @@ windows_core::imp::define_interface!(ISimilarityReportProgress, ISimilarityRepor windows_core::imp::interface_hierarchy!(ISimilarityReportProgress, windows_core::IUnknown); impl ISimilarityReportProgress { pub unsafe fn ReportProgress(&self, percentcompleted: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(percentcompleted)).ok() + (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), percentcompleted).ok() } } #[repr(C)] @@ -938,7 +938,7 @@ windows_core::imp::define_interface!(ISimilarityTableDumpState, ISimilarityTable windows_core::imp::interface_hierarchy!(ISimilarityTableDumpState, windows_core::IUnknown); impl ISimilarityTableDumpState { pub unsafe fn GetNextData(&self, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextData)(windows_core::Interface::as_raw(self), core::mem::transmute(resultssize), core::mem::transmute(resultsused), core::mem::transmute(eof), core::mem::transmute(results)).ok() + (windows_core::Interface::vtable(self).GetNextData)(windows_core::Interface::as_raw(self), resultssize, core::mem::transmute(resultsused), core::mem::transmute(eof), core::mem::transmute(results)).ok() } } #[repr(C)] @@ -973,7 +973,7 @@ impl ISimilarityTraitsMappedView { } pub unsafe fn Get(&self, index: u64, dirty: bool, numelements: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(index), dirty.into(), core::mem::transmute(numelements), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), index, dirty.into(), numelements, &mut result__).map(|| result__) } pub unsafe fn GetView(&self, mappedpagebegin: *mut *mut u8, mappedpageend: *mut *mut u8) { (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), core::mem::transmute(mappedpagebegin), core::mem::transmute(mappedpageend)) @@ -1037,7 +1037,7 @@ impl ISimilarityTraitsMapping { (windows_core::Interface::vtable(self).CloseMapping)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetFileSize(&self, filesize: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileSize)(windows_core::Interface::as_raw(self), core::mem::transmute(filesize)).ok() + (windows_core::Interface::vtable(self).SetFileSize)(windows_core::Interface::as_raw(self), filesize).ok() } pub unsafe fn GetFileSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1045,11 +1045,11 @@ impl ISimilarityTraitsMapping { } pub unsafe fn OpenMapping(&self, accessmode: RdcMappingAccessMode, begin: u64, end: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(accessmode), core::mem::transmute(begin), core::mem::transmute(end), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenMapping)(windows_core::Interface::as_raw(self), accessmode, begin, end, &mut result__).map(|| result__) } pub unsafe fn ResizeMapping(&self, accessmode: RdcMappingAccessMode, begin: u64, end: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResizeMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(accessmode), core::mem::transmute(begin), core::mem::transmute(end), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ResizeMapping)(windows_core::Interface::as_raw(self), accessmode, begin, end, &mut result__).map(|| result__) } pub unsafe fn GetPageSize(&self) -> u32 { let mut result__ = core::mem::zeroed(); @@ -1058,7 +1058,7 @@ impl ISimilarityTraitsMapping { } pub unsafe fn CreateView(&self, minimummappedpages: u32, accessmode: RdcMappingAccessMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), core::mem::transmute(minimummappedpages), core::mem::transmute(accessmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), minimummappedpages, accessmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1159,7 +1159,7 @@ impl ISimilarityTraitsTable { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.into(), core::mem::transmute(securitydescriptor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.into(), securitydescriptor, &mut result__).map(|| result__) } pub unsafe fn CreateTableIndirect(&self, mapping: P0, truncate: bool) -> windows_core::Result where @@ -1172,10 +1172,10 @@ impl ISimilarityTraitsTable { (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.into()).ok() } pub unsafe fn Append(&self, data: *const SimilarityData, fileindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), core::mem::transmute(data), core::mem::transmute(fileindex)).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), data, fileindex).ok() } pub unsafe fn FindSimilarFileIndex(&self, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, findsimilarfileindexresults: *mut FindSimilarFileIndexResults, resultssize: u32, resultsused: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindSimilarFileIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(similaritydata), core::mem::transmute(numberofmatchesrequired), core::mem::transmute(findsimilarfileindexresults), core::mem::transmute(resultssize), core::mem::transmute(resultsused)).ok() + (windows_core::Interface::vtable(self).FindSimilarFileIndex)(windows_core::Interface::as_raw(self), similaritydata, numberofmatchesrequired, core::mem::transmute(findsimilarfileindexresults), resultssize, core::mem::transmute(resultsused)).ok() } pub unsafe fn BeginDump(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs index 1766e73456..eddb39979e 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs @@ -1,13 +1,13 @@ #[inline] pub unsafe fn WebSocketAbortHandle(hwebsocket: WEB_SOCKET_HANDLE) { windows_targets::link!("websocket.dll" "system" fn WebSocketAbortHandle(hwebsocket : WEB_SOCKET_HANDLE)); - WebSocketAbortHandle(core::mem::transmute(hwebsocket)) + WebSocketAbortHandle(hwebsocket) } #[inline] pub unsafe fn WebSocketBeginClientHandshake(hwebsocket: WEB_SOCKET_HANDLE, pszsubprotocols: Option<&[windows_core::PCSTR]>, pszextensions: Option<&[windows_core::PCSTR]>, pinitialheaders: Option<&[WEB_SOCKET_HTTP_HEADER]>, padditionalheaders: *mut *mut WEB_SOCKET_HTTP_HEADER, puladditionalheadercount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketBeginClientHandshake(hwebsocket : WEB_SOCKET_HANDLE, pszsubprotocols : *const windows_core::PCSTR, ulsubprotocolcount : u32, pszextensions : *const windows_core::PCSTR, ulextensioncount : u32, pinitialheaders : *const WEB_SOCKET_HTTP_HEADER, ulinitialheadercount : u32, padditionalheaders : *mut *mut WEB_SOCKET_HTTP_HEADER, puladditionalheadercount : *mut u32) -> windows_core::HRESULT); WebSocketBeginClientHandshake( - core::mem::transmute(hwebsocket), + hwebsocket, core::mem::transmute(pszsubprotocols.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszsubprotocols.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pszextensions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -25,12 +25,12 @@ where P1: windows_core::Param, { windows_targets::link!("websocket.dll" "system" fn WebSocketBeginServerHandshake(hwebsocket : WEB_SOCKET_HANDLE, pszsubprotocolselected : windows_core::PCSTR, pszextensionselected : *const windows_core::PCSTR, ulextensionselectedcount : u32, prequestheaders : *const WEB_SOCKET_HTTP_HEADER, ulrequestheadercount : u32, presponseheaders : *mut *mut WEB_SOCKET_HTTP_HEADER, pulresponseheadercount : *mut u32) -> windows_core::HRESULT); - WebSocketBeginServerHandshake(core::mem::transmute(hwebsocket), pszsubprotocolselected.param().abi(), core::mem::transmute(pszextensionselected.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszextensionselected.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestheaders.as_ptr()), prequestheaders.len().try_into().unwrap(), core::mem::transmute(presponseheaders), core::mem::transmute(pulresponseheadercount)).ok() + WebSocketBeginServerHandshake(hwebsocket, pszsubprotocolselected.param().abi(), core::mem::transmute(pszextensionselected.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszextensionselected.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestheaders.as_ptr()), prequestheaders.len().try_into().unwrap(), core::mem::transmute(presponseheaders), core::mem::transmute(pulresponseheadercount)).ok() } #[inline] pub unsafe fn WebSocketCompleteAction(hwebsocket: WEB_SOCKET_HANDLE, pvactioncontext: *const core::ffi::c_void, ulbytestransferred: u32) { windows_targets::link!("websocket.dll" "system" fn WebSocketCompleteAction(hwebsocket : WEB_SOCKET_HANDLE, pvactioncontext : *const core::ffi::c_void, ulbytestransferred : u32)); - WebSocketCompleteAction(core::mem::transmute(hwebsocket), core::mem::transmute(pvactioncontext), core::mem::transmute(ulbytestransferred)) + WebSocketCompleteAction(hwebsocket, pvactioncontext, ulbytestransferred) } #[inline] pub unsafe fn WebSocketCreateClientHandle(pproperties: &[WEB_SOCKET_PROPERTY]) -> windows_core::Result { @@ -47,37 +47,37 @@ pub unsafe fn WebSocketCreateServerHandle(pproperties: &[WEB_SOCKET_PROPERTY]) - #[inline] pub unsafe fn WebSocketDeleteHandle(hwebsocket: WEB_SOCKET_HANDLE) { windows_targets::link!("websocket.dll" "system" fn WebSocketDeleteHandle(hwebsocket : WEB_SOCKET_HANDLE)); - WebSocketDeleteHandle(core::mem::transmute(hwebsocket)) + WebSocketDeleteHandle(hwebsocket) } #[inline] pub unsafe fn WebSocketEndClientHandshake(hwebsocket: WEB_SOCKET_HANDLE, presponseheaders: &[WEB_SOCKET_HTTP_HEADER], pulselectedextensions: Option<*mut u32>, pulselectedextensioncount: Option<*mut u32>, pulselectedsubprotocol: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketEndClientHandshake(hwebsocket : WEB_SOCKET_HANDLE, presponseheaders : *const WEB_SOCKET_HTTP_HEADER, ulreponseheadercount : u32, pulselectedextensions : *mut u32, pulselectedextensioncount : *mut u32, pulselectedsubprotocol : *mut u32) -> windows_core::HRESULT); - WebSocketEndClientHandshake(core::mem::transmute(hwebsocket), core::mem::transmute(presponseheaders.as_ptr()), presponseheaders.len().try_into().unwrap(), core::mem::transmute(pulselectedextensions.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulselectedextensioncount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulselectedsubprotocol.unwrap_or(core::mem::zeroed()))).ok() + WebSocketEndClientHandshake(hwebsocket, core::mem::transmute(presponseheaders.as_ptr()), presponseheaders.len().try_into().unwrap(), core::mem::transmute(pulselectedextensions.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulselectedextensioncount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulselectedsubprotocol.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WebSocketEndServerHandshake(hwebsocket: WEB_SOCKET_HANDLE) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketEndServerHandshake(hwebsocket : WEB_SOCKET_HANDLE) -> windows_core::HRESULT); - WebSocketEndServerHandshake(core::mem::transmute(hwebsocket)).ok() + WebSocketEndServerHandshake(hwebsocket).ok() } #[inline] pub unsafe fn WebSocketGetAction(hwebsocket: WEB_SOCKET_HANDLE, eactionqueue: WEB_SOCKET_ACTION_QUEUE, pdatabuffers: *mut WEB_SOCKET_BUFFER, puldatabuffercount: *mut u32, paction: *mut WEB_SOCKET_ACTION, pbuffertype: *mut WEB_SOCKET_BUFFER_TYPE, pvapplicationcontext: Option<*mut *mut core::ffi::c_void>, pvactioncontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketGetAction(hwebsocket : WEB_SOCKET_HANDLE, eactionqueue : WEB_SOCKET_ACTION_QUEUE, pdatabuffers : *mut WEB_SOCKET_BUFFER, puldatabuffercount : *mut u32, paction : *mut WEB_SOCKET_ACTION, pbuffertype : *mut WEB_SOCKET_BUFFER_TYPE, pvapplicationcontext : *mut *mut core::ffi::c_void, pvactioncontext : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - WebSocketGetAction(core::mem::transmute(hwebsocket), core::mem::transmute(eactionqueue), core::mem::transmute(pdatabuffers), core::mem::transmute(puldatabuffercount), core::mem::transmute(paction), core::mem::transmute(pbuffertype), core::mem::transmute(pvapplicationcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvactioncontext)).ok() + WebSocketGetAction(hwebsocket, eactionqueue, core::mem::transmute(pdatabuffers), core::mem::transmute(puldatabuffercount), core::mem::transmute(paction), core::mem::transmute(pbuffertype), core::mem::transmute(pvapplicationcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvactioncontext)).ok() } #[inline] pub unsafe fn WebSocketGetGlobalProperty(etype: WEB_SOCKET_PROPERTY_TYPE, pvvalue: *mut core::ffi::c_void, ulsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketGetGlobalProperty(etype : WEB_SOCKET_PROPERTY_TYPE, pvvalue : *mut core::ffi::c_void, ulsize : *mut u32) -> windows_core::HRESULT); - WebSocketGetGlobalProperty(core::mem::transmute(etype), core::mem::transmute(pvvalue), core::mem::transmute(ulsize)).ok() + WebSocketGetGlobalProperty(etype, core::mem::transmute(pvvalue), core::mem::transmute(ulsize)).ok() } #[inline] pub unsafe fn WebSocketReceive(hwebsocket: WEB_SOCKET_HANDLE, pbuffer: Option<*const WEB_SOCKET_BUFFER>, pvcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketReceive(hwebsocket : WEB_SOCKET_HANDLE, pbuffer : *const WEB_SOCKET_BUFFER, pvcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WebSocketReceive(core::mem::transmute(hwebsocket), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))).ok() + WebSocketReceive(hwebsocket, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WebSocketSend(hwebsocket: WEB_SOCKET_HANDLE, buffertype: WEB_SOCKET_BUFFER_TYPE, pbuffer: Option<*const WEB_SOCKET_BUFFER>, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("websocket.dll" "system" fn WebSocketSend(hwebsocket : WEB_SOCKET_HANDLE, buffertype : WEB_SOCKET_BUFFER_TYPE, pbuffer : *const WEB_SOCKET_BUFFER, context : *const core::ffi::c_void) -> windows_core::HRESULT); - WebSocketSend(core::mem::transmute(hwebsocket), core::mem::transmute(buffertype), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + WebSocketSend(hwebsocket, buffertype, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } pub const WEB_SOCKET_ABORTED_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = WEB_SOCKET_CLOSE_STATUS(1006i32); #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs index 879e1759c7..060a733184 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn WinHttpAddRequestHeaders(hrequest: *mut core::ffi::c_void, lpszheaders: &[u16], dwmodifiers: u32) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpAddRequestHeaders(hrequest : *mut core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwmodifiers : u32) -> super::super::Foundation:: BOOL); - WinHttpAddRequestHeaders(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), core::mem::transmute(dwmodifiers)).ok() + WinHttpAddRequestHeaders(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), dwmodifiers).ok() } #[inline] pub unsafe fn WinHttpAddRequestHeadersEx(hrequest: *mut core::ffi::c_void, dwmodifiers: u32, ullflags: u64, ullextra: u64, pheaders: &[WINHTTP_EXTENDED_HEADER]) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpAddRequestHeadersEx(hrequest : *mut core::ffi::c_void, dwmodifiers : u32, ullflags : u64, ullextra : u64, cheaders : u32, pheaders : *const WINHTTP_EXTENDED_HEADER) -> u32); - WinHttpAddRequestHeadersEx(core::mem::transmute(hrequest), core::mem::transmute(dwmodifiers), core::mem::transmute(ullflags), core::mem::transmute(ullextra), pheaders.len().try_into().unwrap(), core::mem::transmute(pheaders.as_ptr())) + WinHttpAddRequestHeadersEx(core::mem::transmute(hrequest), dwmodifiers, ullflags, ullextra, pheaders.len().try_into().unwrap(), core::mem::transmute(pheaders.as_ptr())) } #[inline] pub unsafe fn WinHttpCheckPlatform() -> windows_core::Result<()> { @@ -24,27 +24,27 @@ where P1: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpConnect(hsession : *mut core::ffi::c_void, pswzservername : windows_core::PCWSTR, nserverport : u16, dwreserved : u32) -> *mut core::ffi::c_void); - WinHttpConnect(core::mem::transmute(hsession), pswzservername.param().abi(), core::mem::transmute(nserverport), core::mem::transmute(dwreserved)) + WinHttpConnect(core::mem::transmute(hsession), pswzservername.param().abi(), nserverport, dwreserved) } #[inline] pub unsafe fn WinHttpCrackUrl(pwszurl: &[u16], dwflags: u32, lpurlcomponents: *mut URL_COMPONENTS) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpCrackUrl(pwszurl : windows_core::PCWSTR, dwurllength : u32, dwflags : u32, lpurlcomponents : *mut URL_COMPONENTS) -> super::super::Foundation:: BOOL); - WinHttpCrackUrl(core::mem::transmute(pwszurl.as_ptr()), pwszurl.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(lpurlcomponents)).ok() + WinHttpCrackUrl(core::mem::transmute(pwszurl.as_ptr()), pwszurl.len().try_into().unwrap(), dwflags, core::mem::transmute(lpurlcomponents)).ok() } #[inline] pub unsafe fn WinHttpCreateProxyResolver(hsession: *const core::ffi::c_void, phresolver: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpCreateProxyResolver(hsession : *const core::ffi::c_void, phresolver : *mut *mut core::ffi::c_void) -> u32); - WinHttpCreateProxyResolver(core::mem::transmute(hsession), core::mem::transmute(phresolver)) + WinHttpCreateProxyResolver(hsession, core::mem::transmute(phresolver)) } #[inline] pub unsafe fn WinHttpCreateUrl(lpurlcomponents: *const URL_COMPONENTS, dwflags: WIN_HTTP_CREATE_URL_FLAGS, pwszurl: Option, pdwurllength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpCreateUrl(lpurlcomponents : *const URL_COMPONENTS, dwflags : WIN_HTTP_CREATE_URL_FLAGS, pwszurl : windows_core::PWSTR, pdwurllength : *mut u32) -> super::super::Foundation:: BOOL); - WinHttpCreateUrl(core::mem::transmute(lpurlcomponents), core::mem::transmute(dwflags), core::mem::transmute(pwszurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwurllength)).ok() + WinHttpCreateUrl(lpurlcomponents, dwflags, core::mem::transmute(pwszurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwurllength)).ok() } #[inline] pub unsafe fn WinHttpDetectAutoProxyConfigUrl(dwautodetectflags: u32, ppwstrautoconfigurl: *mut windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpDetectAutoProxyConfigUrl(dwautodetectflags : u32, ppwstrautoconfigurl : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - WinHttpDetectAutoProxyConfigUrl(core::mem::transmute(dwautodetectflags), core::mem::transmute(ppwstrautoconfigurl)).ok() + WinHttpDetectAutoProxyConfigUrl(dwautodetectflags, core::mem::transmute(ppwstrautoconfigurl)).ok() } #[inline] pub unsafe fn WinHttpFreeProxyResult(pproxyresult: *mut WINHTTP_PROXY_RESULT) { @@ -59,12 +59,12 @@ pub unsafe fn WinHttpFreeProxyResultEx(pproxyresultex: *mut WINHTTP_PROXY_RESULT #[inline] pub unsafe fn WinHttpFreeProxySettings(pwinhttpproxysettings: *const WINHTTP_PROXY_SETTINGS) { windows_targets::link!("winhttp.dll" "system" fn WinHttpFreeProxySettings(pwinhttpproxysettings : *const WINHTTP_PROXY_SETTINGS)); - WinHttpFreeProxySettings(core::mem::transmute(pwinhttpproxysettings)) + WinHttpFreeProxySettings(pwinhttpproxysettings) } #[inline] pub unsafe fn WinHttpFreeProxySettingsEx(proxysettingstype: WINHTTP_PROXY_SETTINGS_TYPE, pproxysettingsex: *const core::ffi::c_void) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpFreeProxySettingsEx(proxysettingstype : WINHTTP_PROXY_SETTINGS_TYPE, pproxysettingsex : *const core::ffi::c_void) -> u32); - WinHttpFreeProxySettingsEx(core::mem::transmute(proxysettingstype), core::mem::transmute(pproxysettingsex)) + WinHttpFreeProxySettingsEx(proxysettingstype, pproxysettingsex) } #[inline] pub unsafe fn WinHttpFreeQueryConnectionGroupResult(presult: *mut WINHTTP_QUERY_CONNECTION_GROUP_RESULT) { @@ -95,7 +95,7 @@ where P1: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyForUrlEx(hresolver : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, pautoproxyoptions : *const WINHTTP_AUTOPROXY_OPTIONS, pcontext : usize) -> u32); - WinHttpGetProxyForUrlEx(core::mem::transmute(hresolver), pcwszurl.param().abi(), core::mem::transmute(pautoproxyoptions), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) + WinHttpGetProxyForUrlEx(hresolver, pcwszurl.param().abi(), pautoproxyoptions, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WinHttpGetProxyForUrlEx2(hresolver: *const core::ffi::c_void, pcwszurl: P1, pautoproxyoptions: *const WINHTTP_AUTOPROXY_OPTIONS, pinterfaceselectioncontext: Option<&[u8]>, pcontext: Option) -> u32 @@ -103,32 +103,32 @@ where P1: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyForUrlEx2(hresolver : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, pautoproxyoptions : *const WINHTTP_AUTOPROXY_OPTIONS, cbinterfaceselectioncontext : u32, pinterfaceselectioncontext : *const u8, pcontext : usize) -> u32); - WinHttpGetProxyForUrlEx2(core::mem::transmute(hresolver), pcwszurl.param().abi(), core::mem::transmute(pautoproxyoptions), pinterfaceselectioncontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinterfaceselectioncontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) + WinHttpGetProxyForUrlEx2(hresolver, pcwszurl.param().abi(), pautoproxyoptions, pinterfaceselectioncontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pinterfaceselectioncontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WinHttpGetProxyResult(hresolver: *const core::ffi::c_void, pproxyresult: *mut WINHTTP_PROXY_RESULT) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyResult(hresolver : *const core::ffi::c_void, pproxyresult : *mut WINHTTP_PROXY_RESULT) -> u32); - WinHttpGetProxyResult(core::mem::transmute(hresolver), core::mem::transmute(pproxyresult)) + WinHttpGetProxyResult(hresolver, core::mem::transmute(pproxyresult)) } #[inline] pub unsafe fn WinHttpGetProxyResultEx(hresolver: *const core::ffi::c_void, pproxyresultex: *mut WINHTTP_PROXY_RESULT_EX) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyResultEx(hresolver : *const core::ffi::c_void, pproxyresultex : *mut WINHTTP_PROXY_RESULT_EX) -> u32); - WinHttpGetProxyResultEx(core::mem::transmute(hresolver), core::mem::transmute(pproxyresultex)) + WinHttpGetProxyResultEx(hresolver, core::mem::transmute(pproxyresultex)) } #[inline] pub unsafe fn WinHttpGetProxySettingsEx(hresolver: *const core::ffi::c_void, proxysettingstype: WINHTTP_PROXY_SETTINGS_TYPE, pproxysettingsparam: Option<*const WINHTTP_PROXY_SETTINGS_PARAM>, pcontext: Option) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxySettingsEx(hresolver : *const core::ffi::c_void, proxysettingstype : WINHTTP_PROXY_SETTINGS_TYPE, pproxysettingsparam : *const WINHTTP_PROXY_SETTINGS_PARAM, pcontext : usize) -> u32); - WinHttpGetProxySettingsEx(core::mem::transmute(hresolver), core::mem::transmute(proxysettingstype), core::mem::transmute(pproxysettingsparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) + WinHttpGetProxySettingsEx(hresolver, proxysettingstype, core::mem::transmute(pproxysettingsparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WinHttpGetProxySettingsResultEx(hresolver: *const core::ffi::c_void, pproxysettingsex: *mut core::ffi::c_void) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxySettingsResultEx(hresolver : *const core::ffi::c_void, pproxysettingsex : *mut core::ffi::c_void) -> u32); - WinHttpGetProxySettingsResultEx(core::mem::transmute(hresolver), core::mem::transmute(pproxysettingsex)) + WinHttpGetProxySettingsResultEx(hresolver, core::mem::transmute(pproxysettingsex)) } #[inline] pub unsafe fn WinHttpGetProxySettingsVersion(hsession: *const core::ffi::c_void, pdwproxysettingsversion: *mut u32) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxySettingsVersion(hsession : *const core::ffi::c_void, pdwproxysettingsversion : *mut u32) -> u32); - WinHttpGetProxySettingsVersion(core::mem::transmute(hsession), core::mem::transmute(pdwproxysettingsversion)) + WinHttpGetProxySettingsVersion(hsession, core::mem::transmute(pdwproxysettingsversion)) } #[inline] pub unsafe fn WinHttpOpen(pszagentw: P0, dwaccesstype: WINHTTP_ACCESS_TYPE, pszproxyw: P2, pszproxybypassw: P3, dwflags: u32) -> *mut core::ffi::c_void @@ -138,7 +138,7 @@ where P3: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpOpen(pszagentw : windows_core::PCWSTR, dwaccesstype : WINHTTP_ACCESS_TYPE, pszproxyw : windows_core::PCWSTR, pszproxybypassw : windows_core::PCWSTR, dwflags : u32) -> *mut core::ffi::c_void); - WinHttpOpen(pszagentw.param().abi(), core::mem::transmute(dwaccesstype), pszproxyw.param().abi(), pszproxybypassw.param().abi(), core::mem::transmute(dwflags)) + WinHttpOpen(pszagentw.param().abi(), dwaccesstype, pszproxyw.param().abi(), pszproxybypassw.param().abi(), dwflags) } #[inline] pub unsafe fn WinHttpOpenRequest(hconnect: *mut core::ffi::c_void, pwszverb: P1, pwszobjectname: P2, pwszversion: P3, pwszreferrer: P4, ppwszaccepttypes: *const windows_core::PCWSTR, dwflags: WINHTTP_OPEN_REQUEST_FLAGS) -> *mut core::ffi::c_void @@ -149,7 +149,7 @@ where P4: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpOpenRequest(hconnect : *mut core::ffi::c_void, pwszverb : windows_core::PCWSTR, pwszobjectname : windows_core::PCWSTR, pwszversion : windows_core::PCWSTR, pwszreferrer : windows_core::PCWSTR, ppwszaccepttypes : *const windows_core::PCWSTR, dwflags : WINHTTP_OPEN_REQUEST_FLAGS) -> *mut core::ffi::c_void); - WinHttpOpenRequest(core::mem::transmute(hconnect), pwszverb.param().abi(), pwszobjectname.param().abi(), pwszversion.param().abi(), pwszreferrer.param().abi(), core::mem::transmute(ppwszaccepttypes), core::mem::transmute(dwflags)) + WinHttpOpenRequest(core::mem::transmute(hconnect), pwszverb.param().abi(), pwszobjectname.param().abi(), pwszversion.param().abi(), pwszreferrer.param().abi(), ppwszaccepttypes, dwflags) } #[inline] pub unsafe fn WinHttpQueryAuthSchemes(hrequest: *mut core::ffi::c_void, lpdwsupportedschemes: *mut u32, lpdwfirstscheme: *mut u32, pdwauthtarget: *mut u32) -> windows_core::Result<()> { @@ -159,7 +159,7 @@ pub unsafe fn WinHttpQueryAuthSchemes(hrequest: *mut core::ffi::c_void, lpdwsupp #[inline] pub unsafe fn WinHttpQueryConnectionGroup(hinternet: *const core::ffi::c_void, pguidconnection: Option<*const windows_core::GUID>, ullflags: u64, ppresult: *mut *mut WINHTTP_QUERY_CONNECTION_GROUP_RESULT) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryConnectionGroup(hinternet : *const core::ffi::c_void, pguidconnection : *const windows_core::GUID, ullflags : u64, ppresult : *mut *mut WINHTTP_QUERY_CONNECTION_GROUP_RESULT) -> u32); - WinHttpQueryConnectionGroup(core::mem::transmute(hinternet), core::mem::transmute(pguidconnection.unwrap_or(core::mem::zeroed())), core::mem::transmute(ullflags), core::mem::transmute(ppresult)) + WinHttpQueryConnectionGroup(hinternet, core::mem::transmute(pguidconnection.unwrap_or(core::mem::zeroed())), ullflags, core::mem::transmute(ppresult)) } #[inline] pub unsafe fn WinHttpQueryDataAvailable(hrequest: *mut core::ffi::c_void, lpdwnumberofbytesavailable: *mut u32) -> windows_core::Result<()> { @@ -172,27 +172,27 @@ where P2: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryHeaders(hrequest : *mut core::ffi::c_void, dwinfolevel : u32, pwszname : windows_core::PCWSTR, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> super::super::Foundation:: BOOL); - WinHttpQueryHeaders(core::mem::transmute(hrequest), core::mem::transmute(dwinfolevel), pwszname.param().abi(), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpdwindex)).ok() + WinHttpQueryHeaders(core::mem::transmute(hrequest), dwinfolevel, pwszname.param().abi(), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpdwindex)).ok() } #[inline] pub unsafe fn WinHttpQueryHeadersEx(hrequest: *const core::ffi::c_void, dwinfolevel: u32, ullflags: u64, uicodepage: u32, pdwindex: Option<*mut u32>, pheadername: Option<*const WINHTTP_HEADER_NAME>, pbuffer: Option<*mut core::ffi::c_void>, pdwbufferlength: *mut u32, ppheaders: Option<*mut *mut WINHTTP_EXTENDED_HEADER>, pdwheaderscount: *mut u32) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryHeadersEx(hrequest : *const core::ffi::c_void, dwinfolevel : u32, ullflags : u64, uicodepage : u32, pdwindex : *mut u32, pheadername : *const WINHTTP_HEADER_NAME, pbuffer : *mut core::ffi::c_void, pdwbufferlength : *mut u32, ppheaders : *mut *mut WINHTTP_EXTENDED_HEADER, pdwheaderscount : *mut u32) -> u32); - WinHttpQueryHeadersEx(core::mem::transmute(hrequest), core::mem::transmute(dwinfolevel), core::mem::transmute(ullflags), core::mem::transmute(uicodepage), core::mem::transmute(pdwindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(pheadername.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbufferlength), core::mem::transmute(ppheaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwheaderscount)) + WinHttpQueryHeadersEx(hrequest, dwinfolevel, ullflags, uicodepage, core::mem::transmute(pdwindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(pheadername.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbufferlength), core::mem::transmute(ppheaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwheaderscount)) } #[inline] pub unsafe fn WinHttpQueryOption(hinternet: *mut core::ffi::c_void, dwoption: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryOption(hinternet : *mut core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); - WinHttpQueryOption(core::mem::transmute(hinternet), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() + WinHttpQueryOption(core::mem::transmute(hinternet), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() } #[inline] pub unsafe fn WinHttpReadData(hrequest: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwnumberofbytestoread: u32, lpdwnumberofbytesread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpReadData(hrequest : *mut core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32) -> super::super::Foundation:: BOOL); - WinHttpReadData(core::mem::transmute(hrequest), core::mem::transmute(lpbuffer), core::mem::transmute(dwnumberofbytestoread), core::mem::transmute(lpdwnumberofbytesread)).ok() + WinHttpReadData(core::mem::transmute(hrequest), core::mem::transmute(lpbuffer), dwnumberofbytestoread, core::mem::transmute(lpdwnumberofbytesread)).ok() } #[inline] pub unsafe fn WinHttpReadDataEx(hrequest: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwnumberofbytestoread: u32, lpdwnumberofbytesread: *mut u32, ullflags: u64, cbproperty: u32, pvproperty: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpReadDataEx(hrequest : *mut core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32, ullflags : u64, cbproperty : u32, pvproperty : *const core::ffi::c_void) -> u32); - WinHttpReadDataEx(core::mem::transmute(hrequest), core::mem::transmute(lpbuffer), core::mem::transmute(dwnumberofbytestoread), core::mem::transmute(lpdwnumberofbytesread), core::mem::transmute(ullflags), core::mem::transmute(cbproperty), core::mem::transmute(pvproperty.unwrap_or(core::mem::zeroed()))) + WinHttpReadDataEx(core::mem::transmute(hrequest), core::mem::transmute(lpbuffer), dwnumberofbytestoread, core::mem::transmute(lpdwnumberofbytesread), ullflags, cbproperty, core::mem::transmute(pvproperty.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WinHttpReadProxySettings(hsession: *const core::ffi::c_void, pcwszconnectionname: P1, ffallbacktodefaultsettings: bool, fsetautodiscoverfordefaultsettings: bool, pdwsettingsversion: *mut u32, pfdefaultsettingsarereturned: *mut super::super::Foundation::BOOL, pwinhttpproxysettings: *mut WINHTTP_PROXY_SETTINGS) -> u32 @@ -200,7 +200,7 @@ where P1: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpReadProxySettings(hsession : *const core::ffi::c_void, pcwszconnectionname : windows_core::PCWSTR, ffallbacktodefaultsettings : super::super::Foundation:: BOOL, fsetautodiscoverfordefaultsettings : super::super::Foundation:: BOOL, pdwsettingsversion : *mut u32, pfdefaultsettingsarereturned : *mut super::super::Foundation:: BOOL, pwinhttpproxysettings : *mut WINHTTP_PROXY_SETTINGS) -> u32); - WinHttpReadProxySettings(core::mem::transmute(hsession), pcwszconnectionname.param().abi(), ffallbacktodefaultsettings.into(), fsetautodiscoverfordefaultsettings.into(), core::mem::transmute(pdwsettingsversion), core::mem::transmute(pfdefaultsettingsarereturned), core::mem::transmute(pwinhttpproxysettings)) + WinHttpReadProxySettings(hsession, pcwszconnectionname.param().abi(), ffallbacktodefaultsettings.into(), fsetautodiscoverfordefaultsettings.into(), core::mem::transmute(pdwsettingsversion), core::mem::transmute(pfdefaultsettingsarereturned), core::mem::transmute(pwinhttpproxysettings)) } #[inline] pub unsafe fn WinHttpReceiveResponse(hrequest: *mut core::ffi::c_void, lpreserved: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -210,17 +210,17 @@ pub unsafe fn WinHttpReceiveResponse(hrequest: *mut core::ffi::c_void, lpreserve #[inline] pub unsafe fn WinHttpRegisterProxyChangeNotification(ullflags: u64, pfncallback: WINHTTP_PROXY_CHANGE_CALLBACK, pvcontext: *const core::ffi::c_void, hregistration: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpRegisterProxyChangeNotification(ullflags : u64, pfncallback : WINHTTP_PROXY_CHANGE_CALLBACK, pvcontext : *const core::ffi::c_void, hregistration : *mut *mut core::ffi::c_void) -> u32); - WinHttpRegisterProxyChangeNotification(core::mem::transmute(ullflags), core::mem::transmute(pfncallback), core::mem::transmute(pvcontext), core::mem::transmute(hregistration)) + WinHttpRegisterProxyChangeNotification(ullflags, pfncallback, pvcontext, core::mem::transmute(hregistration)) } #[inline] pub unsafe fn WinHttpResetAutoProxy(hsession: *const core::ffi::c_void, dwflags: u32) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpResetAutoProxy(hsession : *const core::ffi::c_void, dwflags : u32) -> u32); - WinHttpResetAutoProxy(core::mem::transmute(hsession), core::mem::transmute(dwflags)) + WinHttpResetAutoProxy(hsession, dwflags) } #[inline] pub unsafe fn WinHttpSendRequest(hrequest: *mut core::ffi::c_void, lpszheaders: Option<&[u16]>, lpoptional: Option<*const core::ffi::c_void>, dwoptionallength: u32, dwtotallength: u32, dwcontext: usize) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpSendRequest(hrequest : *mut core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32, dwtotallength : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - WinHttpSendRequest(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoptional.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoptionallength), core::mem::transmute(dwtotallength), core::mem::transmute(dwcontext)).ok() + WinHttpSendRequest(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoptional.unwrap_or(core::mem::zeroed())), dwoptionallength, dwtotallength, dwcontext).ok() } #[inline] pub unsafe fn WinHttpSetCredentials(hrequest: *mut core::ffi::c_void, authtargets: u32, authscheme: u32, pwszusername: P3, pwszpassword: P4, pauthparams: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -229,7 +229,7 @@ where P4: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpSetCredentials(hrequest : *mut core::ffi::c_void, authtargets : u32, authscheme : u32, pwszusername : windows_core::PCWSTR, pwszpassword : windows_core::PCWSTR, pauthparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - WinHttpSetCredentials(core::mem::transmute(hrequest), core::mem::transmute(authtargets), core::mem::transmute(authscheme), pwszusername.param().abi(), pwszpassword.param().abi(), core::mem::transmute(pauthparams)).ok() + WinHttpSetCredentials(core::mem::transmute(hrequest), authtargets, authscheme, pwszusername.param().abi(), pwszpassword.param().abi(), core::mem::transmute(pauthparams)).ok() } #[inline] pub unsafe fn WinHttpSetDefaultProxyConfiguration(pproxyinfo: *mut WINHTTP_PROXY_INFO) -> windows_core::Result<()> { @@ -239,7 +239,7 @@ pub unsafe fn WinHttpSetDefaultProxyConfiguration(pproxyinfo: *mut WINHTTP_PROXY #[inline] pub unsafe fn WinHttpSetOption(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<&[u8]>) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpSetOption(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); - WinHttpSetOption(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + WinHttpSetOption(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser: bool) -> u32 { @@ -249,17 +249,17 @@ pub unsafe fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser: bool) -> u32 #[inline] pub unsafe fn WinHttpSetStatusCallback(hinternet: *mut core::ffi::c_void, lpfninternetcallback: WINHTTP_STATUS_CALLBACK, dwnotificationflags: u32, dwreserved: usize) -> WINHTTP_STATUS_CALLBACK { windows_targets::link!("winhttp.dll" "system" fn WinHttpSetStatusCallback(hinternet : *mut core::ffi::c_void, lpfninternetcallback : WINHTTP_STATUS_CALLBACK, dwnotificationflags : u32, dwreserved : usize) -> WINHTTP_STATUS_CALLBACK); - WinHttpSetStatusCallback(core::mem::transmute(hinternet), core::mem::transmute(lpfninternetcallback), core::mem::transmute(dwnotificationflags), core::mem::transmute(dwreserved)) + WinHttpSetStatusCallback(core::mem::transmute(hinternet), lpfninternetcallback, dwnotificationflags, dwreserved) } #[inline] pub unsafe fn WinHttpSetTimeouts(hinternet: *mut core::ffi::c_void, nresolvetimeout: i32, nconnecttimeout: i32, nsendtimeout: i32, nreceivetimeout: i32) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpSetTimeouts(hinternet : *mut core::ffi::c_void, nresolvetimeout : i32, nconnecttimeout : i32, nsendtimeout : i32, nreceivetimeout : i32) -> super::super::Foundation:: BOOL); - WinHttpSetTimeouts(core::mem::transmute(hinternet), core::mem::transmute(nresolvetimeout), core::mem::transmute(nconnecttimeout), core::mem::transmute(nsendtimeout), core::mem::transmute(nreceivetimeout)).ok() + WinHttpSetTimeouts(core::mem::transmute(hinternet), nresolvetimeout, nconnecttimeout, nsendtimeout, nreceivetimeout).ok() } #[inline] pub unsafe fn WinHttpTimeFromSystemTime(pst: *const super::super::Foundation::SYSTEMTIME, pwsztime: &mut [u16; 62]) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpTimeFromSystemTime(pst : *const super::super::Foundation:: SYSTEMTIME, pwsztime : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - WinHttpTimeFromSystemTime(core::mem::transmute(pst), core::mem::transmute(pwsztime.as_ptr())).ok() + WinHttpTimeFromSystemTime(pst, core::mem::transmute(pwsztime.as_ptr())).ok() } #[inline] pub unsafe fn WinHttpTimeToSystemTime(pwsztime: P0, pst: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> @@ -272,47 +272,47 @@ where #[inline] pub unsafe fn WinHttpUnregisterProxyChangeNotification(hregistration: *const core::ffi::c_void) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpUnregisterProxyChangeNotification(hregistration : *const core::ffi::c_void) -> u32); - WinHttpUnregisterProxyChangeNotification(core::mem::transmute(hregistration)) + WinHttpUnregisterProxyChangeNotification(hregistration) } #[inline] pub unsafe fn WinHttpWebSocketClose(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpWebSocketClose(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> u32); - WinHttpWebSocketClose(core::mem::transmute(hwebsocket), core::mem::transmute(usstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreasonlength)) + WinHttpWebSocketClose(hwebsocket, usstatus, core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), dwreasonlength) } #[inline] pub unsafe fn WinHttpWebSocketCompleteUpgrade(hrequest: *const core::ffi::c_void, pcontext: Option) -> *mut core::ffi::c_void { windows_targets::link!("winhttp.dll" "system" fn WinHttpWebSocketCompleteUpgrade(hrequest : *const core::ffi::c_void, pcontext : usize) -> *mut core::ffi::c_void); - WinHttpWebSocketCompleteUpgrade(core::mem::transmute(hrequest), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) + WinHttpWebSocketCompleteUpgrade(hrequest, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WinHttpWebSocketQueryCloseStatus(hwebsocket: *const core::ffi::c_void, pusstatus: *mut u16, pvreason: Option<*mut core::ffi::c_void>, dwreasonlength: u32, pdwreasonlengthconsumed: *mut u32) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpWebSocketQueryCloseStatus(hwebsocket : *const core::ffi::c_void, pusstatus : *mut u16, pvreason : *mut core::ffi::c_void, dwreasonlength : u32, pdwreasonlengthconsumed : *mut u32) -> u32); - WinHttpWebSocketQueryCloseStatus(core::mem::transmute(hwebsocket), core::mem::transmute(pusstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreasonlength), core::mem::transmute(pdwreasonlengthconsumed)) + WinHttpWebSocketQueryCloseStatus(hwebsocket, core::mem::transmute(pusstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), dwreasonlength, core::mem::transmute(pdwreasonlengthconsumed)) } #[inline] pub unsafe fn WinHttpWebSocketReceive(hwebsocket: *const core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, dwbufferlength: u32, pdwbytesread: *mut u32, pebuffertype: *mut WINHTTP_WEB_SOCKET_BUFFER_TYPE) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpWebSocketReceive(hwebsocket : *const core::ffi::c_void, pvbuffer : *mut core::ffi::c_void, dwbufferlength : u32, pdwbytesread : *mut u32, pebuffertype : *mut WINHTTP_WEB_SOCKET_BUFFER_TYPE) -> u32); - WinHttpWebSocketReceive(core::mem::transmute(hwebsocket), core::mem::transmute(pvbuffer), core::mem::transmute(dwbufferlength), core::mem::transmute(pdwbytesread), core::mem::transmute(pebuffertype)) + WinHttpWebSocketReceive(hwebsocket, core::mem::transmute(pvbuffer), dwbufferlength, core::mem::transmute(pdwbytesread), core::mem::transmute(pebuffertype)) } #[inline] pub unsafe fn WinHttpWebSocketSend(hwebsocket: *const core::ffi::c_void, ebuffertype: WINHTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer: Option<&[u8]>) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpWebSocketSend(hwebsocket : *const core::ffi::c_void, ebuffertype : WINHTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> u32); - WinHttpWebSocketSend(core::mem::transmute(hwebsocket), core::mem::transmute(ebuffertype), core::mem::transmute(pvbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pvbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + WinHttpWebSocketSend(hwebsocket, ebuffertype, core::mem::transmute(pvbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pvbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn WinHttpWebSocketShutdown(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpWebSocketShutdown(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> u32); - WinHttpWebSocketShutdown(core::mem::transmute(hwebsocket), core::mem::transmute(usstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreasonlength)) + WinHttpWebSocketShutdown(hwebsocket, usstatus, core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), dwreasonlength) } #[inline] pub unsafe fn WinHttpWriteData(hrequest: *mut core::ffi::c_void, lpbuffer: Option<*const core::ffi::c_void>, dwnumberofbytestowrite: u32, lpdwnumberofbyteswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhttp.dll" "system" fn WinHttpWriteData(hrequest : *mut core::ffi::c_void, lpbuffer : *const core::ffi::c_void, dwnumberofbytestowrite : u32, lpdwnumberofbyteswritten : *mut u32) -> super::super::Foundation:: BOOL); - WinHttpWriteData(core::mem::transmute(hrequest), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwnumberofbytestowrite), core::mem::transmute(lpdwnumberofbyteswritten)).ok() + WinHttpWriteData(core::mem::transmute(hrequest), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), dwnumberofbytestowrite, core::mem::transmute(lpdwnumberofbyteswritten)).ok() } #[inline] pub unsafe fn WinHttpWriteProxySettings(hsession: *const core::ffi::c_void, fforceupdate: bool, pwinhttpproxysettings: *const WINHTTP_PROXY_SETTINGS) -> u32 { windows_targets::link!("winhttp.dll" "system" fn WinHttpWriteProxySettings(hsession : *const core::ffi::c_void, fforceupdate : super::super::Foundation:: BOOL, pwinhttpproxysettings : *const WINHTTP_PROXY_SETTINGS) -> u32); - WinHttpWriteProxySettings(core::mem::transmute(hsession), fforceupdate.into(), core::mem::transmute(pwinhttpproxysettings)) + WinHttpWriteProxySettings(hsession, fforceupdate.into(), pwinhttpproxysettings) } pub const API_GET_PROXY_FOR_URL: u32 = 6u32; pub const API_GET_PROXY_SETTINGS: u32 = 7u32; @@ -466,10 +466,10 @@ windows_core::imp::interface_hierarchy!(IWinHttpRequest, windows_core::IUnknown, impl IWinHttpRequest { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProxy(&self, proxysetting: i32, proxyserver: &super::super::System::Variant::VARIANT, bypasslist: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(proxysetting), core::mem::transmute_copy(proxyserver), core::mem::transmute_copy(bypasslist)).ok() + (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), proxysetting, core::mem::transmute_copy(proxyserver), core::mem::transmute_copy(bypasslist)).ok() } pub unsafe fn SetCredentials(&self, username: &windows_core::BSTR, password: &windows_core::BSTR, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(password), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(password), flags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Open(&self, method: &windows_core::BSTR, url: &windows_core::BSTR, r#async: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -515,11 +515,11 @@ impl IWinHttpRequest { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Option(&self, option: WinHttpRequestOption) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Option)(windows_core::Interface::as_raw(self), core::mem::transmute(option), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Option)(windows_core::Interface::as_raw(self), option, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn put_Option(&self, option: WinHttpRequestOption, value: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Option)(windows_core::Interface::as_raw(self), core::mem::transmute(option), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_Option)(windows_core::Interface::as_raw(self), option, core::mem::transmute_copy(value)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn WaitForResponse(&self, timeout: &super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -530,13 +530,13 @@ impl IWinHttpRequest { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetTimeouts(&self, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeouts)(windows_core::Interface::as_raw(self), core::mem::transmute(resolvetimeout), core::mem::transmute(connecttimeout), core::mem::transmute(sendtimeout), core::mem::transmute(receivetimeout)).ok() + (windows_core::Interface::vtable(self).SetTimeouts)(windows_core::Interface::as_raw(self), resolvetimeout, connecttimeout, sendtimeout, receivetimeout).ok() } pub unsafe fn SetClientCertificate(&self, clientcertificate: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetClientCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(clientcertificate)).ok() } pub unsafe fn SetAutoLogonPolicy(&self, autologonpolicy: WinHttpRequestAutoLogonPolicy) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoLogonPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(autologonpolicy)).ok() + (windows_core::Interface::vtable(self).SetAutoLogonPolicy)(windows_core::Interface::as_raw(self), autologonpolicy).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -775,17 +775,17 @@ windows_core::imp::define_interface!(IWinHttpRequestEvents, IWinHttpRequestEvent windows_core::imp::interface_hierarchy!(IWinHttpRequestEvents, windows_core::IUnknown); impl IWinHttpRequestEvents { pub unsafe fn OnResponseStart(&self, status: i32, contenttype: &windows_core::BSTR) { - (windows_core::Interface::vtable(self).OnResponseStart)(windows_core::Interface::as_raw(self), core::mem::transmute(status), core::mem::transmute_copy(contenttype)) + (windows_core::Interface::vtable(self).OnResponseStart)(windows_core::Interface::as_raw(self), status, core::mem::transmute_copy(contenttype)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnResponseDataAvailable(&self, data: *const *const super::super::System::Com::SAFEARRAY) { - (windows_core::Interface::vtable(self).OnResponseDataAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(data)) + (windows_core::Interface::vtable(self).OnResponseDataAvailable)(windows_core::Interface::as_raw(self), data) } pub unsafe fn OnResponseFinished(&self) { (windows_core::Interface::vtable(self).OnResponseFinished)(windows_core::Interface::as_raw(self)) } pub unsafe fn OnError(&self, errornumber: i32, errordescription: &windows_core::BSTR) { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(errornumber), core::mem::transmute_copy(errordescription)) + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), errornumber, core::mem::transmute_copy(errordescription)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs index 479ae178fc..16a6f2eff0 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -10,7 +10,7 @@ where #[inline] pub unsafe fn AppCacheCloseHandle(happcache: *const core::ffi::c_void) { windows_targets::link!("wininet.dll" "system" fn AppCacheCloseHandle(happcache : *const core::ffi::c_void)); - AppCacheCloseHandle(core::mem::transmute(happcache)) + AppCacheCloseHandle(happcache) } #[inline] pub unsafe fn AppCacheCreateAndCommitFile(happcache: *const core::ffi::c_void, pwszsourcefilepath: P1, pwszurl: P2, pbresponseheaders: &[u8]) -> u32 @@ -19,7 +19,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn AppCacheCreateAndCommitFile(happcache : *const core::ffi::c_void, pwszsourcefilepath : windows_core::PCWSTR, pwszurl : windows_core::PCWSTR, pbresponseheaders : *const u8, dwresponseheaderssize : u32) -> u32); - AppCacheCreateAndCommitFile(core::mem::transmute(happcache), pwszsourcefilepath.param().abi(), pwszurl.param().abi(), core::mem::transmute(pbresponseheaders.as_ptr()), pbresponseheaders.len().try_into().unwrap()) + AppCacheCreateAndCommitFile(happcache, pwszsourcefilepath.param().abi(), pwszurl.param().abi(), core::mem::transmute(pbresponseheaders.as_ptr()), pbresponseheaders.len().try_into().unwrap()) } #[inline] pub unsafe fn AppCacheDeleteGroup(pwszmanifesturl: P0) -> u32 @@ -40,12 +40,12 @@ where #[inline] pub unsafe fn AppCacheDuplicateHandle(happcache: *const core::ffi::c_void, phduplicatedappcache: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("wininet.dll" "system" fn AppCacheDuplicateHandle(happcache : *const core::ffi::c_void, phduplicatedappcache : *mut *mut core::ffi::c_void) -> u32); - AppCacheDuplicateHandle(core::mem::transmute(happcache), core::mem::transmute(phduplicatedappcache)) + AppCacheDuplicateHandle(happcache, core::mem::transmute(phduplicatedappcache)) } #[inline] pub unsafe fn AppCacheFinalize(happcache: *const core::ffi::c_void, pbmanifestdata: &[u8], pestate: *mut APP_CACHE_FINALIZE_STATE) -> u32 { windows_targets::link!("wininet.dll" "system" fn AppCacheFinalize(happcache : *const core::ffi::c_void, pbmanifestdata : *const u8, dwmanifestdatasize : u32, pestate : *mut APP_CACHE_FINALIZE_STATE) -> u32); - AppCacheFinalize(core::mem::transmute(happcache), core::mem::transmute(pbmanifestdata.as_ptr()), pbmanifestdata.len().try_into().unwrap(), core::mem::transmute(pestate)) + AppCacheFinalize(happcache, core::mem::transmute(pbmanifestdata.as_ptr()), pbmanifestdata.len().try_into().unwrap(), core::mem::transmute(pestate)) } #[inline] pub unsafe fn AppCacheFreeDownloadList(pdownloadlist: *mut APP_CACHE_DOWNLOAD_LIST) { @@ -70,7 +70,7 @@ pub unsafe fn AppCacheFreeSpace(ftcutoff: super::super::Foundation::FILETIME) -> #[inline] pub unsafe fn AppCacheGetDownloadList(happcache: *const core::ffi::c_void, pdownloadlist: *mut APP_CACHE_DOWNLOAD_LIST) -> u32 { windows_targets::link!("wininet.dll" "system" fn AppCacheGetDownloadList(happcache : *const core::ffi::c_void, pdownloadlist : *mut APP_CACHE_DOWNLOAD_LIST) -> u32); - AppCacheGetDownloadList(core::mem::transmute(happcache), core::mem::transmute(pdownloadlist)) + AppCacheGetDownloadList(happcache, core::mem::transmute(pdownloadlist)) } #[inline] pub unsafe fn AppCacheGetFallbackUrl(happcache: *const core::ffi::c_void, pwszurl: P1, ppwszfallbackurl: *mut windows_core::PWSTR) -> u32 @@ -78,7 +78,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn AppCacheGetFallbackUrl(happcache : *const core::ffi::c_void, pwszurl : windows_core::PCWSTR, ppwszfallbackurl : *mut windows_core::PWSTR) -> u32); - AppCacheGetFallbackUrl(core::mem::transmute(happcache), pwszurl.param().abi(), core::mem::transmute(ppwszfallbackurl)) + AppCacheGetFallbackUrl(happcache, pwszurl.param().abi(), core::mem::transmute(ppwszfallbackurl)) } #[inline] pub unsafe fn AppCacheGetGroupList(pappcachegrouplist: *mut APP_CACHE_GROUP_LIST) -> u32 { @@ -93,12 +93,12 @@ pub unsafe fn AppCacheGetIEGroupList(pappcachegrouplist: *mut APP_CACHE_GROUP_LI #[inline] pub unsafe fn AppCacheGetInfo(happcache: *const core::ffi::c_void, pappcacheinfo: *mut APP_CACHE_GROUP_INFO) -> u32 { windows_targets::link!("wininet.dll" "system" fn AppCacheGetInfo(happcache : *const core::ffi::c_void, pappcacheinfo : *mut APP_CACHE_GROUP_INFO) -> u32); - AppCacheGetInfo(core::mem::transmute(happcache), core::mem::transmute(pappcacheinfo)) + AppCacheGetInfo(happcache, core::mem::transmute(pappcacheinfo)) } #[inline] pub unsafe fn AppCacheGetManifestUrl(happcache: *const core::ffi::c_void, ppwszmanifesturl: *mut windows_core::PWSTR) -> u32 { windows_targets::link!("wininet.dll" "system" fn AppCacheGetManifestUrl(happcache : *const core::ffi::c_void, ppwszmanifesturl : *mut windows_core::PWSTR) -> u32); - AppCacheGetManifestUrl(core::mem::transmute(happcache), core::mem::transmute(ppwszmanifesturl)) + AppCacheGetManifestUrl(happcache, core::mem::transmute(ppwszmanifesturl)) } #[inline] pub unsafe fn AppCacheLookup(pwszurl: P0, dwflags: u32, phappcache: *mut *mut core::ffi::c_void) -> u32 @@ -106,7 +106,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn AppCacheLookup(pwszurl : windows_core::PCWSTR, dwflags : u32, phappcache : *mut *mut core::ffi::c_void) -> u32); - AppCacheLookup(pwszurl.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(phappcache)) + AppCacheLookup(pwszurl.param().abi(), dwflags, core::mem::transmute(phappcache)) } #[inline] pub unsafe fn CommitUrlCacheEntryA(lpszurlname: P0, lpszlocalfilename: P1, expiretime: super::super::Foundation::FILETIME, lastmodifiedtime: super::super::Foundation::FILETIME, cacheentrytype: u32, lpheaderinfo: Option<&[u8]>, lpszfileextension: P7, lpszoriginalurl: P8) -> windows_core::Result<()> @@ -117,7 +117,7 @@ where P8: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryA(lpszurlname : windows_core::PCSTR, lpszlocalfilename : windows_core::PCSTR, expiretime : super::super::Foundation:: FILETIME, lastmodifiedtime : super::super::Foundation:: FILETIME, cacheentrytype : u32, lpheaderinfo : *const u8, cchheaderinfo : u32, lpszfileextension : windows_core::PCSTR, lpszoriginalurl : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CommitUrlCacheEntryA(lpszurlname.param().abi(), lpszlocalfilename.param().abi(), core::mem::transmute(expiretime), core::mem::transmute(lastmodifiedtime), core::mem::transmute(cacheentrytype), core::mem::transmute(lpheaderinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpheaderinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszfileextension.param().abi(), lpszoriginalurl.param().abi()).ok() + CommitUrlCacheEntryA(lpszurlname.param().abi(), lpszlocalfilename.param().abi(), core::mem::transmute(expiretime), core::mem::transmute(lastmodifiedtime), cacheentrytype, core::mem::transmute(lpheaderinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpheaderinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszfileextension.param().abi(), lpszoriginalurl.param().abi()).ok() } #[inline] pub unsafe fn CommitUrlCacheEntryBinaryBlob(pwszurlname: P0, dwtype: u32, ftexpiretime: super::super::Foundation::FILETIME, ftmodifiedtime: super::super::Foundation::FILETIME, pbblob: Option<&[u8]>) -> u32 @@ -125,7 +125,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryBinaryBlob(pwszurlname : windows_core::PCWSTR, dwtype : u32, ftexpiretime : super::super::Foundation:: FILETIME, ftmodifiedtime : super::super::Foundation:: FILETIME, pbblob : *const u8, cbblob : u32) -> u32); - CommitUrlCacheEntryBinaryBlob(pwszurlname.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(ftexpiretime), core::mem::transmute(ftmodifiedtime), core::mem::transmute(pbblob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbblob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CommitUrlCacheEntryBinaryBlob(pwszurlname.param().abi(), dwtype, core::mem::transmute(ftexpiretime), core::mem::transmute(ftmodifiedtime), core::mem::transmute(pbblob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbblob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CommitUrlCacheEntryW(lpszurlname: P0, lpszlocalfilename: P1, expiretime: super::super::Foundation::FILETIME, lastmodifiedtime: super::super::Foundation::FILETIME, cacheentrytype: u32, lpszheaderinfo: Option<&[u16]>, lpszfileextension: P7, lpszoriginalurl: P8) -> windows_core::Result<()> @@ -136,7 +136,7 @@ where P8: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryW(lpszurlname : windows_core::PCWSTR, lpszlocalfilename : windows_core::PCWSTR, expiretime : super::super::Foundation:: FILETIME, lastmodifiedtime : super::super::Foundation:: FILETIME, cacheentrytype : u32, lpszheaderinfo : windows_core::PCWSTR, cchheaderinfo : u32, lpszfileextension : windows_core::PCWSTR, lpszoriginalurl : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CommitUrlCacheEntryW(lpszurlname.param().abi(), lpszlocalfilename.param().abi(), core::mem::transmute(expiretime), core::mem::transmute(lastmodifiedtime), core::mem::transmute(cacheentrytype), core::mem::transmute(lpszheaderinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaderinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszfileextension.param().abi(), lpszoriginalurl.param().abi()).ok() + CommitUrlCacheEntryW(lpszurlname.param().abi(), lpszlocalfilename.param().abi(), core::mem::transmute(expiretime), core::mem::transmute(lastmodifiedtime), cacheentrytype, core::mem::transmute(lpszheaderinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaderinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszfileextension.param().abi(), lpszoriginalurl.param().abi()).ok() } #[inline] pub unsafe fn CreateMD5SSOHash(pszchallengeinfo: P0, pwszrealm: P1, pwsztarget: P2, pbhexhash: *mut u8) -> super::super::Foundation::BOOL @@ -156,7 +156,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheContainerA(name : windows_core::PCSTR, lpcacheprefix : windows_core::PCSTR, lpszcachepath : windows_core::PCSTR, kbcachelimit : u32, dwcontainertype : u32, dwoptions : u32, pvbuffer : *const core::ffi::c_void, cbbuffer : *const u32) -> super::super::Foundation:: BOOL); - CreateUrlCacheContainerA(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), core::mem::transmute(kbcachelimit), core::mem::transmute(dwcontainertype), core::mem::transmute(dwoptions), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer.unwrap_or(core::mem::zeroed()))).ok() + CreateUrlCacheContainerA(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), kbcachelimit, dwcontainertype, dwoptions, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CreateUrlCacheContainerW(name: P0, lpcacheprefix: P1, lpszcachepath: P2, kbcachelimit: u32, dwcontainertype: u32, dwoptions: u32, pvbuffer: Option<*const core::ffi::c_void>, cbbuffer: Option<*const u32>) -> windows_core::Result<()> @@ -166,7 +166,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheContainerW(name : windows_core::PCWSTR, lpcacheprefix : windows_core::PCWSTR, lpszcachepath : windows_core::PCWSTR, kbcachelimit : u32, dwcontainertype : u32, dwoptions : u32, pvbuffer : *const core::ffi::c_void, cbbuffer : *const u32) -> super::super::Foundation:: BOOL); - CreateUrlCacheContainerW(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), core::mem::transmute(kbcachelimit), core::mem::transmute(dwcontainertype), core::mem::transmute(dwoptions), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer.unwrap_or(core::mem::zeroed()))).ok() + CreateUrlCacheContainerW(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), kbcachelimit, dwcontainertype, dwoptions, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CreateUrlCacheEntryA(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P2, lpszfilename: &mut [u8; 260], dwreserved: u32) -> windows_core::Result<()> @@ -175,7 +175,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryA(lpszurlname : windows_core::PCSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCSTR, lpszfilename : windows_core::PSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - CreateUrlCacheEntryA(lpszurlname.param().abi(), core::mem::transmute(dwexpectedfilesize), lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), core::mem::transmute(dwreserved)).ok() + CreateUrlCacheEntryA(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved).ok() } #[inline] pub unsafe fn CreateUrlCacheEntryExW(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P2, lpszfilename: &mut [u16; 260], dwreserved: u32, fpreserveincomingfilename: bool) -> super::super::Foundation::BOOL @@ -184,7 +184,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryExW(lpszurlname : windows_core::PCWSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCWSTR, lpszfilename : windows_core::PWSTR, dwreserved : u32, fpreserveincomingfilename : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CreateUrlCacheEntryExW(lpszurlname.param().abi(), core::mem::transmute(dwexpectedfilesize), lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), core::mem::transmute(dwreserved), fpreserveincomingfilename.into()) + CreateUrlCacheEntryExW(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved, fpreserveincomingfilename.into()) } #[inline] pub unsafe fn CreateUrlCacheEntryW(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P2, lpszfilename: &mut [u16; 260], dwreserved: u32) -> windows_core::Result<()> @@ -193,12 +193,12 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryW(lpszurlname : windows_core::PCWSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCWSTR, lpszfilename : windows_core::PWSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - CreateUrlCacheEntryW(lpszurlname.param().abi(), core::mem::transmute(dwexpectedfilesize), lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), core::mem::transmute(dwreserved)).ok() + CreateUrlCacheEntryW(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved).ok() } #[inline] pub unsafe fn CreateUrlCacheGroup(dwflags: u32, lpreserved: Option<*const core::ffi::c_void>) -> i64 { windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheGroup(dwflags : u32, lpreserved : *const core::ffi::c_void) -> i64); - CreateUrlCacheGroup(core::mem::transmute(dwflags), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) + CreateUrlCacheGroup(dwflags, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DeleteIE3Cache(hwnd: super::super::Foundation::HWND, hinst: super::super::Foundation::HINSTANCE, lpszcmd: P2, ncmdshow: i32) -> u32 @@ -206,7 +206,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteIE3Cache(hwnd : super::super::Foundation:: HWND, hinst : super::super::Foundation:: HINSTANCE, lpszcmd : windows_core::PCSTR, ncmdshow : i32) -> u32); - DeleteIE3Cache(core::mem::transmute(hwnd), core::mem::transmute(hinst), lpszcmd.param().abi(), core::mem::transmute(ncmdshow)) + DeleteIE3Cache(hwnd, hinst, lpszcmd.param().abi(), ncmdshow) } #[inline] pub unsafe fn DeleteUrlCacheContainerA(name: P0, dwoptions: u32) -> windows_core::Result<()> @@ -214,7 +214,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerA(name : windows_core::PCSTR, dwoptions : u32) -> super::super::Foundation:: BOOL); - DeleteUrlCacheContainerA(name.param().abi(), core::mem::transmute(dwoptions)).ok() + DeleteUrlCacheContainerA(name.param().abi(), dwoptions).ok() } #[inline] pub unsafe fn DeleteUrlCacheContainerW(name: P0, dwoptions: u32) -> windows_core::Result<()> @@ -222,7 +222,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerW(name : windows_core::PCWSTR, dwoptions : u32) -> super::super::Foundation:: BOOL); - DeleteUrlCacheContainerW(name.param().abi(), core::mem::transmute(dwoptions)).ok() + DeleteUrlCacheContainerW(name.param().abi(), dwoptions).ok() } #[inline] pub unsafe fn DeleteUrlCacheEntry(lpszurlname: P0) -> windows_core::Result<()> @@ -251,17 +251,17 @@ where #[inline] pub unsafe fn DeleteUrlCacheGroup(groupid: i64, dwflags: u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheGroup(groupid : i64, dwflags : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DeleteUrlCacheGroup(core::mem::transmute(groupid), core::mem::transmute(dwflags), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + DeleteUrlCacheGroup(groupid, dwflags, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DeleteWpadCacheForNetworks(param0: WPAD_CACHE_DELETE) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn DeleteWpadCacheForNetworks(param0 : WPAD_CACHE_DELETE) -> super::super::Foundation:: BOOL); - DeleteWpadCacheForNetworks(core::mem::transmute(param0)) + DeleteWpadCacheForNetworks(param0) } #[inline] pub unsafe fn DetectAutoProxyUrl(pszautoproxyurl: &mut [u8], dwdetectflags: PROXY_AUTO_DETECT_TYPE) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn DetectAutoProxyUrl(pszautoproxyurl : windows_core::PSTR, cchautoproxyurl : u32, dwdetectflags : PROXY_AUTO_DETECT_TYPE) -> super::super::Foundation:: BOOL); - DetectAutoProxyUrl(core::mem::transmute(pszautoproxyurl.as_ptr()), pszautoproxyurl.len().try_into().unwrap(), core::mem::transmute(dwdetectflags)).ok() + DetectAutoProxyUrl(core::mem::transmute(pszautoproxyurl.as_ptr()), pszautoproxyurl.len().try_into().unwrap(), dwdetectflags).ok() } #[inline] pub unsafe fn DoConnectoidsExist() -> super::super::Foundation::BOOL { @@ -287,17 +287,17 @@ where #[inline] pub unsafe fn FindCloseUrlCache(henumhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FindCloseUrlCache(henumhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindCloseUrlCache(core::mem::transmute(henumhandle)).ok() + FindCloseUrlCache(henumhandle).ok() } #[inline] pub unsafe fn FindFirstUrlCacheContainerA(pdwmodified: *mut u32, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo: *mut u32, dwoptions: u32) -> super::super::Foundation::HANDLE { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheContainerA(pdwmodified : *mut u32, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo : *mut u32, dwoptions : u32) -> super::super::Foundation:: HANDLE); - FindFirstUrlCacheContainerA(core::mem::transmute(pdwmodified), core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo), core::mem::transmute(dwoptions)) + FindFirstUrlCacheContainerA(core::mem::transmute(pdwmodified), core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo), dwoptions) } #[inline] pub unsafe fn FindFirstUrlCacheContainerW(pdwmodified: *mut u32, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo: *mut u32, dwoptions: u32) -> super::super::Foundation::HANDLE { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheContainerW(pdwmodified : *mut u32, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo : *mut u32, dwoptions : u32) -> super::super::Foundation:: HANDLE); - FindFirstUrlCacheContainerW(core::mem::transmute(pdwmodified), core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo), core::mem::transmute(dwoptions)) + FindFirstUrlCacheContainerW(core::mem::transmute(pdwmodified), core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo), dwoptions) } #[inline] pub unsafe fn FindFirstUrlCacheEntryA(lpszurlsearchpattern: P0, lpfirstcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result @@ -314,7 +314,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheEntryExA(lpszurlsearchpattern : windows_core::PCSTR, dwflags : u32, dwfilter : u32, groupid : i64, lpfirstcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstUrlCacheEntryExA(lpszurlsearchpattern.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwfilter), core::mem::transmute(groupid), core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))); + let result__ = FindFirstUrlCacheEntryExA(lpszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -323,7 +323,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheEntryExW(lpszurlsearchpattern : windows_core::PCWSTR, dwflags : u32, dwfilter : u32, groupid : i64, lpfirstcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstUrlCacheEntryExW(lpszurlsearchpattern.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwfilter), core::mem::transmute(groupid), core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))); + let result__ = FindFirstUrlCacheEntryExW(lpszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -338,43 +338,43 @@ where #[inline] pub unsafe fn FindFirstUrlCacheGroup(dwflags: u32, dwfilter: u32, lpsearchcondition: Option<*const core::ffi::c_void>, dwsearchcondition: Option, lpgroupid: *mut i64, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheGroup(dwflags : u32, dwfilter : u32, lpsearchcondition : *const core::ffi::c_void, dwsearchcondition : u32, lpgroupid : *mut i64, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstUrlCacheGroup(core::mem::transmute(dwflags), core::mem::transmute(dwfilter), core::mem::transmute(lpsearchcondition.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsearchcondition.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpgroupid), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))); + let result__ = FindFirstUrlCacheGroup(dwflags, dwfilter, core::mem::transmute(lpsearchcondition.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsearchcondition.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpgroupid), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindNextUrlCacheContainerA(henumhandle: super::super::Foundation::HANDLE, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheContainerA(henumhandle : super::super::Foundation:: HANDLE, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo : *mut u32) -> super::super::Foundation:: BOOL); - FindNextUrlCacheContainerA(core::mem::transmute(henumhandle), core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo)) + FindNextUrlCacheContainerA(henumhandle, core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo)) } #[inline] pub unsafe fn FindNextUrlCacheContainerW(henumhandle: super::super::Foundation::HANDLE, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheContainerW(henumhandle : super::super::Foundation:: HANDLE, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo : *mut u32) -> super::super::Foundation:: BOOL); - FindNextUrlCacheContainerW(core::mem::transmute(henumhandle), core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo)) + FindNextUrlCacheContainerW(henumhandle, core::mem::transmute(lpcontainerinfo), core::mem::transmute(lpcbcontainerinfo)) } #[inline] pub unsafe fn FindNextUrlCacheEntryA(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryA(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); - FindNextUrlCacheEntryA(core::mem::transmute(henumhandle), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo)).ok() + FindNextUrlCacheEntryA(henumhandle, core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo)).ok() } #[inline] pub unsafe fn FindNextUrlCacheEntryExA(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32, lpgroupattributes: Option<*const core::ffi::c_void>, lpcbgroupattributes: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryExA(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FindNextUrlCacheEntryExA(core::mem::transmute(henumhandle), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + FindNextUrlCacheEntryExA(henumhandle, core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FindNextUrlCacheEntryExW(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32, lpgroupattributes: Option<*const core::ffi::c_void>, lpcbgroupattributes: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryExW(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FindNextUrlCacheEntryExW(core::mem::transmute(henumhandle), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + FindNextUrlCacheEntryExW(henumhandle, core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo), core::mem::transmute(lpgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FindNextUrlCacheEntryW(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryW(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); - FindNextUrlCacheEntryW(core::mem::transmute(henumhandle), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo)).ok() + FindNextUrlCacheEntryW(henumhandle, core::mem::transmute(lpnextcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo)).ok() } #[inline] pub unsafe fn FindNextUrlCacheGroup(hfind: super::super::Foundation::HANDLE, lpgroupid: *mut i64, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheGroup(hfind : super::super::Foundation:: HANDLE, lpgroupid : *mut i64, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FindNextUrlCacheGroup(core::mem::transmute(hfind), core::mem::transmute(lpgroupid), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + FindNextUrlCacheGroup(hfind, core::mem::transmute(lpgroupid), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FindP3PPolicySymbol(pszsymbol: P0) -> i32 @@ -390,7 +390,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FreeUrlCacheSpaceA(lpszcachepath : windows_core::PCSTR, dwsize : u32, dwfilter : u32) -> super::super::Foundation:: BOOL); - FreeUrlCacheSpaceA(lpszcachepath.param().abi(), core::mem::transmute(dwsize), core::mem::transmute(dwfilter)).ok() + FreeUrlCacheSpaceA(lpszcachepath.param().abi(), dwsize, dwfilter).ok() } #[inline] pub unsafe fn FreeUrlCacheSpaceW(lpszcachepath: P0, dwsize: u32, dwfilter: u32) -> windows_core::Result<()> @@ -398,7 +398,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FreeUrlCacheSpaceW(lpszcachepath : windows_core::PCWSTR, dwsize : u32, dwfilter : u32) -> super::super::Foundation:: BOOL); - FreeUrlCacheSpaceW(lpszcachepath.param().abi(), core::mem::transmute(dwsize), core::mem::transmute(dwfilter)).ok() + FreeUrlCacheSpaceW(lpszcachepath.param().abi(), dwsize, dwfilter).ok() } #[inline] pub unsafe fn FtpCommandA(hconnect: *const core::ffi::c_void, fexpectresponse: bool, dwflags: FTP_FLAGS, lpszcommand: P3, dwcontext: Option, phftpcommand: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> @@ -406,7 +406,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpCommandA(hconnect : *const core::ffi::c_void, fexpectresponse : super::super::Foundation:: BOOL, dwflags : FTP_FLAGS, lpszcommand : windows_core::PCSTR, dwcontext : usize, phftpcommand : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FtpCommandA(core::mem::transmute(hconnect), fexpectresponse.into(), core::mem::transmute(dwflags), lpszcommand.param().abi(), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phftpcommand.unwrap_or(core::mem::zeroed()))).ok() + FtpCommandA(hconnect, fexpectresponse.into(), dwflags, lpszcommand.param().abi(), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phftpcommand.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FtpCommandW(hconnect: *const core::ffi::c_void, fexpectresponse: bool, dwflags: FTP_FLAGS, lpszcommand: P3, dwcontext: Option, phftpcommand: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> @@ -414,7 +414,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpCommandW(hconnect : *const core::ffi::c_void, fexpectresponse : super::super::Foundation:: BOOL, dwflags : FTP_FLAGS, lpszcommand : windows_core::PCWSTR, dwcontext : usize, phftpcommand : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FtpCommandW(core::mem::transmute(hconnect), fexpectresponse.into(), core::mem::transmute(dwflags), lpszcommand.param().abi(), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phftpcommand.unwrap_or(core::mem::zeroed()))).ok() + FtpCommandW(hconnect, fexpectresponse.into(), dwflags, lpszcommand.param().abi(), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phftpcommand.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FtpCreateDirectoryA(hconnect: *const core::ffi::c_void, lpszdirectory: P1) -> windows_core::Result<()> @@ -422,7 +422,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpCreateDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - FtpCreateDirectoryA(core::mem::transmute(hconnect), lpszdirectory.param().abi()).ok() + FtpCreateDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpCreateDirectoryW(hconnect: *const core::ffi::c_void, lpszdirectory: P1) -> windows_core::Result<()> @@ -430,7 +430,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpCreateDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FtpCreateDirectoryW(core::mem::transmute(hconnect), lpszdirectory.param().abi()).ok() + FtpCreateDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpDeleteFileA(hconnect: *const core::ffi::c_void, lpszfilename: P1) -> windows_core::Result<()> @@ -438,7 +438,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpDeleteFileA(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - FtpDeleteFileA(core::mem::transmute(hconnect), lpszfilename.param().abi()).ok() + FtpDeleteFileA(hconnect, lpszfilename.param().abi()).ok() } #[inline] pub unsafe fn FtpDeleteFileW(hconnect: *const core::ffi::c_void, lpszfilename: P1) -> windows_core::Result<()> @@ -446,7 +446,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpDeleteFileW(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FtpDeleteFileW(core::mem::transmute(hconnect), lpszfilename.param().abi()).ok() + FtpDeleteFileW(hconnect, lpszfilename.param().abi()).ok() } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -455,7 +455,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpFindFirstFileA(hconnect : *const core::ffi::c_void, lpszsearchfile : windows_core::PCSTR, lpfindfiledata : *mut super::super::Storage::FileSystem:: WIN32_FIND_DATAA, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - FtpFindFirstFileA(core::mem::transmute(hconnect), lpszsearchfile.param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + FtpFindFirstFileA(hconnect, lpszsearchfile.param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -464,17 +464,17 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpFindFirstFileW(hconnect : *const core::ffi::c_void, lpszsearchfile : windows_core::PCWSTR, lpfindfiledata : *mut super::super::Storage::FileSystem:: WIN32_FIND_DATAW, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - FtpFindFirstFileW(core::mem::transmute(hconnect), lpszsearchfile.param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + FtpFindFirstFileW(hconnect, lpszsearchfile.param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FtpGetCurrentDirectoryA(hconnect: *const core::ffi::c_void, lpszcurrentdirectory: windows_core::PSTR, lpdwcurrentdirectory: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FtpGetCurrentDirectoryA(hconnect : *const core::ffi::c_void, lpszcurrentdirectory : windows_core::PSTR, lpdwcurrentdirectory : *mut u32) -> super::super::Foundation:: BOOL); - FtpGetCurrentDirectoryA(core::mem::transmute(hconnect), core::mem::transmute(lpszcurrentdirectory), core::mem::transmute(lpdwcurrentdirectory)).ok() + FtpGetCurrentDirectoryA(hconnect, core::mem::transmute(lpszcurrentdirectory), core::mem::transmute(lpdwcurrentdirectory)).ok() } #[inline] pub unsafe fn FtpGetCurrentDirectoryW(hconnect: *const core::ffi::c_void, lpszcurrentdirectory: windows_core::PWSTR, lpdwcurrentdirectory: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn FtpGetCurrentDirectoryW(hconnect : *const core::ffi::c_void, lpszcurrentdirectory : windows_core::PWSTR, lpdwcurrentdirectory : *mut u32) -> super::super::Foundation:: BOOL); - FtpGetCurrentDirectoryW(core::mem::transmute(hconnect), core::mem::transmute(lpszcurrentdirectory), core::mem::transmute(lpdwcurrentdirectory)).ok() + FtpGetCurrentDirectoryW(hconnect, core::mem::transmute(lpszcurrentdirectory), core::mem::transmute(lpdwcurrentdirectory)).ok() } #[inline] pub unsafe fn FtpGetFileA(hconnect: *const core::ffi::c_void, lpszremotefile: P1, lpsznewfile: P2, ffailifexists: bool, dwflagsandattributes: u32, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> @@ -483,7 +483,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpGetFileA(hconnect : *const core::ffi::c_void, lpszremotefile : windows_core::PCSTR, lpsznewfile : windows_core::PCSTR, ffailifexists : super::super::Foundation:: BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - FtpGetFileA(core::mem::transmute(hconnect), lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), core::mem::transmute(dwflagsandattributes), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + FtpGetFileA(hconnect, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), dwflagsandattributes, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FtpGetFileEx(hftpsession: *const core::ffi::c_void, lpszremotefile: P1, lpsznewfile: P2, ffailifexists: bool, dwflagsandattributes: u32, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL @@ -492,12 +492,12 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpGetFileEx(hftpsession : *const core::ffi::c_void, lpszremotefile : windows_core::PCSTR, lpsznewfile : windows_core::PCWSTR, ffailifexists : super::super::Foundation:: BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - FtpGetFileEx(core::mem::transmute(hftpsession), lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), core::mem::transmute(dwflagsandattributes), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + FtpGetFileEx(hftpsession, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), dwflagsandattributes, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FtpGetFileSize(hfile: *const core::ffi::c_void, lpdwfilesizehigh: Option<*mut u32>) -> u32 { windows_targets::link!("wininet.dll" "system" fn FtpGetFileSize(hfile : *const core::ffi::c_void, lpdwfilesizehigh : *mut u32) -> u32); - FtpGetFileSize(core::mem::transmute(hfile), core::mem::transmute(lpdwfilesizehigh.unwrap_or(core::mem::zeroed()))) + FtpGetFileSize(hfile, core::mem::transmute(lpdwfilesizehigh.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FtpGetFileW(hconnect: *const core::ffi::c_void, lpszremotefile: P1, lpsznewfile: P2, ffailifexists: bool, dwflagsandattributes: u32, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> @@ -506,7 +506,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpGetFileW(hconnect : *const core::ffi::c_void, lpszremotefile : windows_core::PCWSTR, lpsznewfile : windows_core::PCWSTR, ffailifexists : super::super::Foundation:: BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - FtpGetFileW(core::mem::transmute(hconnect), lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), core::mem::transmute(dwflagsandattributes), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + FtpGetFileW(hconnect, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), dwflagsandattributes, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FtpOpenFileA(hconnect: *const core::ffi::c_void, lpszfilename: P1, dwaccess: u32, dwflags: FTP_FLAGS, dwcontext: Option) -> *mut core::ffi::c_void @@ -514,7 +514,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpOpenFileA(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCSTR, dwaccess : u32, dwflags : FTP_FLAGS, dwcontext : usize) -> *mut core::ffi::c_void); - FtpOpenFileA(core::mem::transmute(hconnect), lpszfilename.param().abi(), core::mem::transmute(dwaccess), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + FtpOpenFileA(hconnect, lpszfilename.param().abi(), dwaccess, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FtpOpenFileW(hconnect: *const core::ffi::c_void, lpszfilename: P1, dwaccess: u32, dwflags: FTP_FLAGS, dwcontext: Option) -> *mut core::ffi::c_void @@ -522,7 +522,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpOpenFileW(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCWSTR, dwaccess : u32, dwflags : FTP_FLAGS, dwcontext : usize) -> *mut core::ffi::c_void); - FtpOpenFileW(core::mem::transmute(hconnect), lpszfilename.param().abi(), core::mem::transmute(dwaccess), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + FtpOpenFileW(hconnect, lpszfilename.param().abi(), dwaccess, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FtpPutFileA(hconnect: *const core::ffi::c_void, lpszlocalfile: P1, lpsznewremotefile: P2, dwflags: FTP_FLAGS, dwcontext: Option) -> windows_core::Result<()> @@ -531,7 +531,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpPutFileA(hconnect : *const core::ffi::c_void, lpszlocalfile : windows_core::PCSTR, lpsznewremotefile : windows_core::PCSTR, dwflags : FTP_FLAGS, dwcontext : usize) -> super::super::Foundation:: BOOL); - FtpPutFileA(core::mem::transmute(hconnect), lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + FtpPutFileA(hconnect, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FtpPutFileEx(hftpsession: *const core::ffi::c_void, lpszlocalfile: P1, lpsznewremotefile: P2, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL @@ -540,7 +540,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpPutFileEx(hftpsession : *const core::ffi::c_void, lpszlocalfile : windows_core::PCWSTR, lpsznewremotefile : windows_core::PCSTR, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - FtpPutFileEx(core::mem::transmute(hftpsession), lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + FtpPutFileEx(hftpsession, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FtpPutFileW(hconnect: *const core::ffi::c_void, lpszlocalfile: P1, lpsznewremotefile: P2, dwflags: FTP_FLAGS, dwcontext: Option) -> windows_core::Result<()> @@ -549,7 +549,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpPutFileW(hconnect : *const core::ffi::c_void, lpszlocalfile : windows_core::PCWSTR, lpsznewremotefile : windows_core::PCWSTR, dwflags : FTP_FLAGS, dwcontext : usize) -> super::super::Foundation:: BOOL); - FtpPutFileW(core::mem::transmute(hconnect), lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + FtpPutFileW(hconnect, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FtpRemoveDirectoryA(hconnect: *const core::ffi::c_void, lpszdirectory: P1) -> windows_core::Result<()> @@ -557,7 +557,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpRemoveDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - FtpRemoveDirectoryA(core::mem::transmute(hconnect), lpszdirectory.param().abi()).ok() + FtpRemoveDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpRemoveDirectoryW(hconnect: *const core::ffi::c_void, lpszdirectory: P1) -> windows_core::Result<()> @@ -565,7 +565,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpRemoveDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FtpRemoveDirectoryW(core::mem::transmute(hconnect), lpszdirectory.param().abi()).ok() + FtpRemoveDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpRenameFileA(hconnect: *const core::ffi::c_void, lpszexisting: P1, lpsznew: P2) -> windows_core::Result<()> @@ -574,7 +574,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpRenameFileA(hconnect : *const core::ffi::c_void, lpszexisting : windows_core::PCSTR, lpsznew : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - FtpRenameFileA(core::mem::transmute(hconnect), lpszexisting.param().abi(), lpsznew.param().abi()).ok() + FtpRenameFileA(hconnect, lpszexisting.param().abi(), lpsznew.param().abi()).ok() } #[inline] pub unsafe fn FtpRenameFileW(hconnect: *const core::ffi::c_void, lpszexisting: P1, lpsznew: P2) -> windows_core::Result<()> @@ -583,7 +583,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpRenameFileW(hconnect : *const core::ffi::c_void, lpszexisting : windows_core::PCWSTR, lpsznew : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FtpRenameFileW(core::mem::transmute(hconnect), lpszexisting.param().abi(), lpsznew.param().abi()).ok() + FtpRenameFileW(hconnect, lpszexisting.param().abi(), lpsznew.param().abi()).ok() } #[inline] pub unsafe fn FtpSetCurrentDirectoryA(hconnect: *const core::ffi::c_void, lpszdirectory: P1) -> windows_core::Result<()> @@ -591,7 +591,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpSetCurrentDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - FtpSetCurrentDirectoryA(core::mem::transmute(hconnect), lpszdirectory.param().abi()).ok() + FtpSetCurrentDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpSetCurrentDirectoryW(hconnect: *const core::ffi::c_void, lpszdirectory: P1) -> windows_core::Result<()> @@ -599,7 +599,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FtpSetCurrentDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FtpSetCurrentDirectoryW(core::mem::transmute(hconnect), lpszdirectory.param().abi()).ok() + FtpSetCurrentDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn GetDiskInfoA(pszpath: P0, pdwclustersize: Option<*mut u32>, pdlavail: Option<*mut u64>, pdltotal: Option<*mut u64>) -> super::super::Foundation::BOOL @@ -612,12 +612,12 @@ where #[inline] pub unsafe fn GetUrlCacheConfigInfoA(lpcacheconfiginfo: *mut INTERNET_CACHE_CONFIG_INFOA, lpcbcacheconfiginfo: Option<*const u32>, dwfieldcontrol: CACHE_CONFIG) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheConfigInfoA(lpcacheconfiginfo : *mut INTERNET_CACHE_CONFIG_INFOA, lpcbcacheconfiginfo : *const u32, dwfieldcontrol : CACHE_CONFIG) -> super::super::Foundation:: BOOL); - GetUrlCacheConfigInfoA(core::mem::transmute(lpcacheconfiginfo), core::mem::transmute(lpcbcacheconfiginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwfieldcontrol)).ok() + GetUrlCacheConfigInfoA(core::mem::transmute(lpcacheconfiginfo), core::mem::transmute(lpcbcacheconfiginfo.unwrap_or(core::mem::zeroed())), dwfieldcontrol).ok() } #[inline] pub unsafe fn GetUrlCacheConfigInfoW(lpcacheconfiginfo: *mut INTERNET_CACHE_CONFIG_INFOW, lpcbcacheconfiginfo: Option<*const u32>, dwfieldcontrol: CACHE_CONFIG) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheConfigInfoW(lpcacheconfiginfo : *mut INTERNET_CACHE_CONFIG_INFOW, lpcbcacheconfiginfo : *const u32, dwfieldcontrol : CACHE_CONFIG) -> super::super::Foundation:: BOOL); - GetUrlCacheConfigInfoW(core::mem::transmute(lpcacheconfiginfo), core::mem::transmute(lpcbcacheconfiginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwfieldcontrol)).ok() + GetUrlCacheConfigInfoW(core::mem::transmute(lpcacheconfiginfo), core::mem::transmute(lpcbcacheconfiginfo.unwrap_or(core::mem::zeroed())), dwfieldcontrol).ok() } #[inline] pub unsafe fn GetUrlCacheEntryBinaryBlob(pwszurlname: P0, dwtype: *mut u32, pftexpiretime: *mut super::super::Foundation::FILETIME, pftaccesstime: *mut super::super::Foundation::FILETIME, pftmodifiedtime: *mut super::super::Foundation::FILETIME, ppbblob: *mut *mut u8, pcbblob: *mut u32) -> u32 @@ -642,7 +642,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoExA(lpszurl : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpszredirecturl : windows_core::PCSTR, lpcbredirecturl : *const u32, lpreserved : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); - GetUrlCacheEntryInfoExA(lpszurl.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(core::mem::zeroed())), lpszredirecturl.param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + GetUrlCacheEntryInfoExA(lpszurl.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(core::mem::zeroed())), lpszredirecturl.param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn GetUrlCacheEntryInfoExW(lpszurl: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: Option<*mut u32>, lpszredirecturl: P3, lpcbredirecturl: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>, dwflags: u32) -> windows_core::Result<()> @@ -651,7 +651,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoExW(lpszurl : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpszredirecturl : windows_core::PCWSTR, lpcbredirecturl : *const u32, lpreserved : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); - GetUrlCacheEntryInfoExW(lpszurl.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(core::mem::zeroed())), lpszredirecturl.param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + GetUrlCacheEntryInfoExW(lpszurl.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(core::mem::zeroed())), lpszredirecturl.param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn GetUrlCacheEntryInfoW(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: Option<*mut u32>) -> windows_core::Result<()> @@ -664,17 +664,17 @@ where #[inline] pub unsafe fn GetUrlCacheGroupAttributeA(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *mut INTERNET_CACHE_GROUP_INFOA, lpcbgroupinfo: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheGroupAttributeA(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *mut INTERNET_CACHE_GROUP_INFOA, lpcbgroupinfo : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetUrlCacheGroupAttributeA(core::mem::transmute(gid), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwattributes), core::mem::transmute(lpgroupinfo), core::mem::transmute(lpcbgroupinfo), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + GetUrlCacheGroupAttributeA(gid, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), dwattributes, core::mem::transmute(lpgroupinfo), core::mem::transmute(lpcbgroupinfo), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetUrlCacheGroupAttributeW(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *mut INTERNET_CACHE_GROUP_INFOW, lpcbgroupinfo: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheGroupAttributeW(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *mut INTERNET_CACHE_GROUP_INFOW, lpcbgroupinfo : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetUrlCacheGroupAttributeW(core::mem::transmute(gid), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwattributes), core::mem::transmute(lpgroupinfo), core::mem::transmute(lpcbgroupinfo), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + GetUrlCacheGroupAttributeW(gid, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), dwattributes, core::mem::transmute(lpgroupinfo), core::mem::transmute(lpcbgroupinfo), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheHeaderData(nidx : u32, lpdwdata : *mut u32) -> super::super::Foundation:: BOOL); - GetUrlCacheHeaderData(core::mem::transmute(nidx), core::mem::transmute(lpdwdata)) + GetUrlCacheHeaderData(nidx, core::mem::transmute(lpdwdata)) } #[inline] pub unsafe fn GopherCreateLocatorA(lpszhost: P0, nserverport: u16, lpszdisplaystring: P2, lpszselectorstring: P3, dwgophertype: u32, lpszlocator: Option, lpdwbufferlength: *mut u32) -> windows_core::Result<()> @@ -684,7 +684,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherCreateLocatorA(lpszhost : windows_core::PCSTR, nserverport : u16, lpszdisplaystring : windows_core::PCSTR, lpszselectorstring : windows_core::PCSTR, dwgophertype : u32, lpszlocator : windows_core::PSTR, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); - GopherCreateLocatorA(lpszhost.param().abi(), core::mem::transmute(nserverport), lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), core::mem::transmute(dwgophertype), core::mem::transmute(lpszlocator.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() + GopherCreateLocatorA(lpszhost.param().abi(), nserverport, lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), dwgophertype, core::mem::transmute(lpszlocator.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() } #[inline] pub unsafe fn GopherCreateLocatorW(lpszhost: P0, nserverport: u16, lpszdisplaystring: P2, lpszselectorstring: P3, dwgophertype: u32, lpszlocator: Option, lpdwbufferlength: *mut u32) -> windows_core::Result<()> @@ -694,7 +694,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherCreateLocatorW(lpszhost : windows_core::PCWSTR, nserverport : u16, lpszdisplaystring : windows_core::PCWSTR, lpszselectorstring : windows_core::PCWSTR, dwgophertype : u32, lpszlocator : windows_core::PWSTR, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); - GopherCreateLocatorW(lpszhost.param().abi(), core::mem::transmute(nserverport), lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), core::mem::transmute(dwgophertype), core::mem::transmute(lpszlocator.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() + GopherCreateLocatorW(lpszhost.param().abi(), nserverport, lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), dwgophertype, core::mem::transmute(lpszlocator.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() } #[inline] pub unsafe fn GopherFindFirstFileA(hconnect: *const core::ffi::c_void, lpszlocator: P1, lpszsearchstring: P2, lpfinddata: Option<*mut GOPHER_FIND_DATAA>, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -703,7 +703,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherFindFirstFileA(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCSTR, lpszsearchstring : windows_core::PCSTR, lpfinddata : *mut GOPHER_FIND_DATAA, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - GopherFindFirstFileA(core::mem::transmute(hconnect), lpszlocator.param().abi(), lpszsearchstring.param().abi(), core::mem::transmute(lpfinddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + GopherFindFirstFileA(hconnect, lpszlocator.param().abi(), lpszsearchstring.param().abi(), core::mem::transmute(lpfinddata.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GopherFindFirstFileW(hconnect: *const core::ffi::c_void, lpszlocator: P1, lpszsearchstring: P2, lpfinddata: Option<*mut GOPHER_FIND_DATAW>, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -712,7 +712,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherFindFirstFileW(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCWSTR, lpszsearchstring : windows_core::PCWSTR, lpfinddata : *mut GOPHER_FIND_DATAW, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - GopherFindFirstFileW(core::mem::transmute(hconnect), lpszlocator.param().abi(), lpszsearchstring.param().abi(), core::mem::transmute(lpfinddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + GopherFindFirstFileW(hconnect, lpszlocator.param().abi(), lpszsearchstring.param().abi(), core::mem::transmute(lpfinddata.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GopherGetAttributeA(hconnect: *const core::ffi::c_void, lpszlocator: P1, lpszattributename: P2, lpbuffer: &mut [u8], lpdwcharactersreturned: *mut u32, lpfnenumerator: Option, dwcontext: Option) -> windows_core::Result<()> @@ -721,7 +721,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherGetAttributeA(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCSTR, lpszattributename : windows_core::PCSTR, lpbuffer : *mut u8, dwbufferlength : u32, lpdwcharactersreturned : *mut u32, lpfnenumerator : GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext : usize) -> super::super::Foundation:: BOOL); - GopherGetAttributeA(core::mem::transmute(hconnect), lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpdwcharactersreturned), core::mem::transmute(lpfnenumerator.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + GopherGetAttributeA(hconnect, lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpdwcharactersreturned), core::mem::transmute(lpfnenumerator.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GopherGetAttributeW(hconnect: *const core::ffi::c_void, lpszlocator: P1, lpszattributename: P2, lpbuffer: &mut [u8], lpdwcharactersreturned: *mut u32, lpfnenumerator: Option, dwcontext: Option) -> windows_core::Result<()> @@ -730,7 +730,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherGetAttributeW(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCWSTR, lpszattributename : windows_core::PCWSTR, lpbuffer : *mut u8, dwbufferlength : u32, lpdwcharactersreturned : *mut u32, lpfnenumerator : GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext : usize) -> super::super::Foundation:: BOOL); - GopherGetAttributeW(core::mem::transmute(hconnect), lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpdwcharactersreturned), core::mem::transmute(lpfnenumerator.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + GopherGetAttributeW(hconnect, lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpdwcharactersreturned), core::mem::transmute(lpfnenumerator.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GopherGetLocatorTypeA(lpszlocator: P0, lpdwgophertype: *mut u32) -> windows_core::Result<()> @@ -755,7 +755,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherOpenFileA(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCSTR, lpszview : windows_core::PCSTR, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - GopherOpenFileA(core::mem::transmute(hconnect), lpszlocator.param().abi(), lpszview.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + GopherOpenFileA(hconnect, lpszlocator.param().abi(), lpszview.param().abi(), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GopherOpenFileW(hconnect: *const core::ffi::c_void, lpszlocator: P1, lpszview: P2, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -764,17 +764,17 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherOpenFileW(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCWSTR, lpszview : windows_core::PCWSTR, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - GopherOpenFileW(core::mem::transmute(hconnect), lpszlocator.param().abi(), lpszview.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + GopherOpenFileW(hconnect, lpszlocator.param().abi(), lpszview.param().abi(), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpAddRequestHeadersA(hrequest: *const core::ffi::c_void, lpszheaders: &[u8], dwmodifiers: HTTP_ADDREQ_FLAG) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpAddRequestHeadersA(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, dwmodifiers : HTTP_ADDREQ_FLAG) -> super::super::Foundation:: BOOL); - HttpAddRequestHeadersA(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), core::mem::transmute(dwmodifiers)).ok() + HttpAddRequestHeadersA(hrequest, core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), dwmodifiers).ok() } #[inline] pub unsafe fn HttpAddRequestHeadersW(hrequest: *const core::ffi::c_void, lpszheaders: &[u16], dwmodifiers: HTTP_ADDREQ_FLAG) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpAddRequestHeadersW(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwmodifiers : HTTP_ADDREQ_FLAG) -> super::super::Foundation:: BOOL); - HttpAddRequestHeadersW(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), core::mem::transmute(dwmodifiers)).ok() + HttpAddRequestHeadersW(hrequest, core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), dwmodifiers).ok() } #[inline] pub unsafe fn HttpCheckDavComplianceA(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND, lpvreserved: *const core::ffi::c_void) -> super::super::Foundation::BOOL @@ -783,7 +783,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpCheckDavComplianceA(lpszurl : windows_core::PCSTR, lpszcompliancetoken : windows_core::PCSTR, lpffound : *mut super::super::Foundation:: BOOL, hwnd : super::super::Foundation:: HWND, lpvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - HttpCheckDavComplianceA(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), core::mem::transmute(lpffound), core::mem::transmute(hwnd), core::mem::transmute(lpvreserved)) + HttpCheckDavComplianceA(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), core::mem::transmute(lpffound), hwnd, lpvreserved) } #[inline] pub unsafe fn HttpCheckDavComplianceW(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND, lpvreserved: *const core::ffi::c_void) -> super::super::Foundation::BOOL @@ -792,27 +792,27 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpCheckDavComplianceW(lpszurl : windows_core::PCWSTR, lpszcompliancetoken : windows_core::PCWSTR, lpffound : *mut super::super::Foundation:: BOOL, hwnd : super::super::Foundation:: HWND, lpvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - HttpCheckDavComplianceW(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), core::mem::transmute(lpffound), core::mem::transmute(hwnd), core::mem::transmute(lpvreserved)) + HttpCheckDavComplianceW(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), core::mem::transmute(lpffound), hwnd, lpvreserved) } #[inline] pub unsafe fn HttpCloseDependencyHandle(hdependencyhandle: *const core::ffi::c_void) { windows_targets::link!("wininet.dll" "system" fn HttpCloseDependencyHandle(hdependencyhandle : *const core::ffi::c_void)); - HttpCloseDependencyHandle(core::mem::transmute(hdependencyhandle)) + HttpCloseDependencyHandle(hdependencyhandle) } #[inline] pub unsafe fn HttpDuplicateDependencyHandle(hdependencyhandle: *const core::ffi::c_void, phduplicateddependencyhandle: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("wininet.dll" "system" fn HttpDuplicateDependencyHandle(hdependencyhandle : *const core::ffi::c_void, phduplicateddependencyhandle : *mut *mut core::ffi::c_void) -> u32); - HttpDuplicateDependencyHandle(core::mem::transmute(hdependencyhandle), core::mem::transmute(phduplicateddependencyhandle)) + HttpDuplicateDependencyHandle(hdependencyhandle, core::mem::transmute(phduplicateddependencyhandle)) } #[inline] pub unsafe fn HttpEndRequestA(hrequest: *const core::ffi::c_void, lpbuffersout: Option<*mut INTERNET_BUFFERSA>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpEndRequestA(hrequest : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - HttpEndRequestA(core::mem::transmute(hrequest), core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + HttpEndRequestA(hrequest, core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HttpEndRequestW(hrequest: *const core::ffi::c_void, lpbuffersout: Option<*mut INTERNET_BUFFERSW>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpEndRequestW(hrequest : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - HttpEndRequestW(core::mem::transmute(hrequest), core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + HttpEndRequestW(hrequest, core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HttpGetServerCredentials(pwszurl: P0, ppwszusername: *mut windows_core::PWSTR, ppwszpassword: *mut windows_core::PWSTR) -> u32 @@ -825,7 +825,7 @@ where #[inline] pub unsafe fn HttpIndicatePageLoadComplete(hdependencyhandle: *const core::ffi::c_void) -> u32 { windows_targets::link!("wininet.dll" "system" fn HttpIndicatePageLoadComplete(hdependencyhandle : *const core::ffi::c_void) -> u32); - HttpIndicatePageLoadComplete(core::mem::transmute(hdependencyhandle)) + HttpIndicatePageLoadComplete(hdependencyhandle) } #[inline] pub unsafe fn HttpIsHostHstsEnabled(pcwszurl: P0, pfishsts: *mut super::super::Foundation::BOOL) -> u32 @@ -838,7 +838,7 @@ where #[inline] pub unsafe fn HttpOpenDependencyHandle(hrequesthandle: *const core::ffi::c_void, fbackground: bool, phdependencyhandle: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("wininet.dll" "system" fn HttpOpenDependencyHandle(hrequesthandle : *const core::ffi::c_void, fbackground : super::super::Foundation:: BOOL, phdependencyhandle : *mut *mut core::ffi::c_void) -> u32); - HttpOpenDependencyHandle(core::mem::transmute(hrequesthandle), fbackground.into(), core::mem::transmute(phdependencyhandle)) + HttpOpenDependencyHandle(hrequesthandle, fbackground.into(), core::mem::transmute(phdependencyhandle)) } #[inline] pub unsafe fn HttpOpenRequestA(hconnect: *const core::ffi::c_void, lpszverb: P1, lpszobjectname: P2, lpszversion: P3, lpszreferrer: P4, lplpszaccepttypes: Option<*const windows_core::PCSTR>, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -849,7 +849,7 @@ where P4: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpOpenRequestA(hconnect : *const core::ffi::c_void, lpszverb : windows_core::PCSTR, lpszobjectname : windows_core::PCSTR, lpszversion : windows_core::PCSTR, lpszreferrer : windows_core::PCSTR, lplpszaccepttypes : *const windows_core::PCSTR, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - HttpOpenRequestA(core::mem::transmute(hconnect), lpszverb.param().abi(), lpszobjectname.param().abi(), lpszversion.param().abi(), lpszreferrer.param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + HttpOpenRequestA(hconnect, lpszverb.param().abi(), lpszobjectname.param().abi(), lpszversion.param().abi(), lpszreferrer.param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpOpenRequestW(hconnect: *const core::ffi::c_void, lpszverb: P1, lpszobjectname: P2, lpszversion: P3, lpszreferrer: P4, lplpszaccepttypes: Option<*const windows_core::PCWSTR>, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -860,82 +860,82 @@ where P4: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpOpenRequestW(hconnect : *const core::ffi::c_void, lpszverb : windows_core::PCWSTR, lpszobjectname : windows_core::PCWSTR, lpszversion : windows_core::PCWSTR, lpszreferrer : windows_core::PCWSTR, lplpszaccepttypes : *const windows_core::PCWSTR, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - HttpOpenRequestW(core::mem::transmute(hconnect), lpszverb.param().abi(), lpszobjectname.param().abi(), lpszversion.param().abi(), lpszreferrer.param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + HttpOpenRequestW(hconnect, lpszverb.param().abi(), lpszobjectname.param().abi(), lpszversion.param().abi(), lpszreferrer.param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpPushClose(hwait: HTTP_PUSH_WAIT_HANDLE) { windows_targets::link!("wininet.dll" "system" fn HttpPushClose(hwait : HTTP_PUSH_WAIT_HANDLE)); - HttpPushClose(core::mem::transmute(hwait)) + HttpPushClose(hwait) } #[inline] pub unsafe fn HttpPushEnable(hrequest: *const core::ffi::c_void, ptransportsetting: *const HTTP_PUSH_TRANSPORT_SETTING, phwait: *mut HTTP_PUSH_WAIT_HANDLE) -> u32 { windows_targets::link!("wininet.dll" "system" fn HttpPushEnable(hrequest : *const core::ffi::c_void, ptransportsetting : *const HTTP_PUSH_TRANSPORT_SETTING, phwait : *mut HTTP_PUSH_WAIT_HANDLE) -> u32); - HttpPushEnable(core::mem::transmute(hrequest), core::mem::transmute(ptransportsetting), core::mem::transmute(phwait)) + HttpPushEnable(hrequest, ptransportsetting, core::mem::transmute(phwait)) } #[inline] pub unsafe fn HttpPushWait(hwait: HTTP_PUSH_WAIT_HANDLE, etype: HTTP_PUSH_WAIT_TYPE, pnotificationstatus: Option<*mut HTTP_PUSH_NOTIFICATION_STATUS>) -> u32 { windows_targets::link!("wininet.dll" "system" fn HttpPushWait(hwait : HTTP_PUSH_WAIT_HANDLE, etype : HTTP_PUSH_WAIT_TYPE, pnotificationstatus : *mut HTTP_PUSH_NOTIFICATION_STATUS) -> u32); - HttpPushWait(core::mem::transmute(hwait), core::mem::transmute(etype), core::mem::transmute(pnotificationstatus.unwrap_or(core::mem::zeroed()))) + HttpPushWait(hwait, etype, core::mem::transmute(pnotificationstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HttpQueryInfoA(hrequest: *const core::ffi::c_void, dwinfolevel: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32, lpdwindex: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpQueryInfoA(hrequest : *const core::ffi::c_void, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> super::super::Foundation:: BOOL); - HttpQueryInfoA(core::mem::transmute(hrequest), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpdwindex.unwrap_or(core::mem::zeroed()))).ok() + HttpQueryInfoA(hrequest, dwinfolevel, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpdwindex.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HttpQueryInfoW(hrequest: *const core::ffi::c_void, dwinfolevel: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32, lpdwindex: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpQueryInfoW(hrequest : *const core::ffi::c_void, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> super::super::Foundation:: BOOL); - HttpQueryInfoW(core::mem::transmute(hrequest), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpdwindex.unwrap_or(core::mem::zeroed()))).ok() + HttpQueryInfoW(hrequest, dwinfolevel, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpdwindex.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HttpSendRequestA(hrequest: *const core::ffi::c_void, lpszheaders: Option<&[u8]>, lpoptional: Option<*const core::ffi::c_void>, dwoptionallength: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpSendRequestA(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32) -> super::super::Foundation:: BOOL); - HttpSendRequestA(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoptional.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoptionallength)).ok() + HttpSendRequestA(hrequest, core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoptional.unwrap_or(core::mem::zeroed())), dwoptionallength).ok() } #[inline] pub unsafe fn HttpSendRequestExA(hrequest: *const core::ffi::c_void, lpbuffersin: Option<*const INTERNET_BUFFERSA>, lpbuffersout: Option<*mut INTERNET_BUFFERSA>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpSendRequestExA(hrequest : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSA, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - HttpSendRequestExA(core::mem::transmute(hrequest), core::mem::transmute(lpbuffersin.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + HttpSendRequestExA(hrequest, core::mem::transmute(lpbuffersin.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HttpSendRequestExW(hrequest: *const core::ffi::c_void, lpbuffersin: Option<*const INTERNET_BUFFERSW>, lpbuffersout: Option<*mut INTERNET_BUFFERSW>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpSendRequestExW(hrequest : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSW, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - HttpSendRequestExW(core::mem::transmute(hrequest), core::mem::transmute(lpbuffersin.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + HttpSendRequestExW(hrequest, core::mem::transmute(lpbuffersin.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffersout.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HttpSendRequestW(hrequest: *const core::ffi::c_void, lpszheaders: Option<&[u16]>, lpoptional: Option<*const core::ffi::c_void>, dwoptionallength: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn HttpSendRequestW(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32) -> super::super::Foundation:: BOOL); - HttpSendRequestW(core::mem::transmute(hrequest), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoptional.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoptionallength)).ok() + HttpSendRequestW(hrequest, core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoptional.unwrap_or(core::mem::zeroed())), dwoptionallength).ok() } #[inline] pub unsafe fn HttpWebSocketClose(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn HttpWebSocketClose(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> super::super::Foundation:: BOOL); - HttpWebSocketClose(core::mem::transmute(hwebsocket), core::mem::transmute(usstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreasonlength)) + HttpWebSocketClose(hwebsocket, usstatus, core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), dwreasonlength) } #[inline] pub unsafe fn HttpWebSocketCompleteUpgrade(hrequest: *const core::ffi::c_void, dwcontext: usize) -> *mut core::ffi::c_void { windows_targets::link!("wininet.dll" "system" fn HttpWebSocketCompleteUpgrade(hrequest : *const core::ffi::c_void, dwcontext : usize) -> *mut core::ffi::c_void); - HttpWebSocketCompleteUpgrade(core::mem::transmute(hrequest), core::mem::transmute(dwcontext)) + HttpWebSocketCompleteUpgrade(hrequest, dwcontext) } #[inline] pub unsafe fn HttpWebSocketQueryCloseStatus(hwebsocket: *const core::ffi::c_void, pusstatus: *mut u16, pvreason: Option<*mut core::ffi::c_void>, dwreasonlength: u32, pdwreasonlengthconsumed: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn HttpWebSocketQueryCloseStatus(hwebsocket : *const core::ffi::c_void, pusstatus : *mut u16, pvreason : *mut core::ffi::c_void, dwreasonlength : u32, pdwreasonlengthconsumed : *mut u32) -> super::super::Foundation:: BOOL); - HttpWebSocketQueryCloseStatus(core::mem::transmute(hwebsocket), core::mem::transmute(pusstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreasonlength), core::mem::transmute(pdwreasonlengthconsumed)) + HttpWebSocketQueryCloseStatus(hwebsocket, core::mem::transmute(pusstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), dwreasonlength, core::mem::transmute(pdwreasonlengthconsumed)) } #[inline] pub unsafe fn HttpWebSocketReceive(hwebsocket: *const core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, dwbufferlength: u32, pdwbytesread: *mut u32, pbuffertype: *mut HTTP_WEB_SOCKET_BUFFER_TYPE) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn HttpWebSocketReceive(hwebsocket : *const core::ffi::c_void, pvbuffer : *mut core::ffi::c_void, dwbufferlength : u32, pdwbytesread : *mut u32, pbuffertype : *mut HTTP_WEB_SOCKET_BUFFER_TYPE) -> super::super::Foundation:: BOOL); - HttpWebSocketReceive(core::mem::transmute(hwebsocket), core::mem::transmute(pvbuffer), core::mem::transmute(dwbufferlength), core::mem::transmute(pdwbytesread), core::mem::transmute(pbuffertype)) + HttpWebSocketReceive(hwebsocket, core::mem::transmute(pvbuffer), dwbufferlength, core::mem::transmute(pdwbytesread), core::mem::transmute(pbuffertype)) } #[inline] pub unsafe fn HttpWebSocketSend(hwebsocket: *const core::ffi::c_void, buffertype: HTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn HttpWebSocketSend(hwebsocket : *const core::ffi::c_void, buffertype : HTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); - HttpWebSocketSend(core::mem::transmute(hwebsocket), core::mem::transmute(buffertype), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength)) + HttpWebSocketSend(hwebsocket, buffertype, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength) } #[inline] pub unsafe fn HttpWebSocketShutdown(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn HttpWebSocketShutdown(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> super::super::Foundation:: BOOL); - HttpWebSocketShutdown(core::mem::transmute(hwebsocket), core::mem::transmute(usstatus), core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreasonlength)) + HttpWebSocketShutdown(hwebsocket, usstatus, core::mem::transmute(pvreason.unwrap_or(core::mem::zeroed())), dwreasonlength) } #[inline] pub unsafe fn ImportCookieFileA(szfilename: P0) -> super::super::Foundation::BOOL @@ -956,7 +956,7 @@ where #[inline] pub unsafe fn IncrementUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn IncrementUrlCacheHeaderData(nidx : u32, lpdwdata : *mut u32) -> super::super::Foundation:: BOOL); - IncrementUrlCacheHeaderData(core::mem::transmute(nidx), core::mem::transmute(lpdwdata)) + IncrementUrlCacheHeaderData(nidx, core::mem::transmute(lpdwdata)) } #[inline] pub unsafe fn InternalInternetGetCookie(lpszurl: P0, lpszcookiedata: windows_core::PSTR, lpdwdatasize: *mut u32) -> u32 @@ -970,23 +970,23 @@ where #[inline] pub unsafe fn InternetAlgIdToStringA(ai: super::super::Security::Cryptography::ALG_ID, lpstr: windows_core::PSTR, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetAlgIdToStringA(ai : super::super::Security::Cryptography:: ALG_ID, lpstr : windows_core::PSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetAlgIdToStringA(core::mem::transmute(ai), core::mem::transmute(lpstr), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetAlgIdToStringA(ai, core::mem::transmute(lpstr), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn InternetAlgIdToStringW(ai: super::super::Security::Cryptography::ALG_ID, lpstr: windows_core::PWSTR, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetAlgIdToStringW(ai : super::super::Security::Cryptography:: ALG_ID, lpstr : windows_core::PWSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetAlgIdToStringW(core::mem::transmute(ai), core::mem::transmute(lpstr), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetAlgIdToStringW(ai, core::mem::transmute(lpstr), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetAttemptConnect(dwreserved: u32) -> u32 { windows_targets::link!("wininet.dll" "system" fn InternetAttemptConnect(dwreserved : u32) -> u32); - InternetAttemptConnect(core::mem::transmute(dwreserved)) + InternetAttemptConnect(dwreserved) } #[inline] pub unsafe fn InternetAutodial(dwflags: INTERNET_AUTODIAL, hwndparent: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetAutodial(dwflags : INTERNET_AUTODIAL, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InternetAutodial(core::mem::transmute(dwflags), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed()))).ok() + InternetAutodial(dwflags, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InternetAutodialHangup(dwreserved: Option) -> windows_core::Result<()> { @@ -999,7 +999,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetCanonicalizeUrlA(lpszurl : windows_core::PCSTR, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetCanonicalizeUrlA(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(dwflags)).ok() + InternetCanonicalizeUrlA(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), dwflags).ok() } #[inline] pub unsafe fn InternetCanonicalizeUrlW(lpszurl: P0, lpszbuffer: windows_core::PWSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -1007,7 +1007,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetCanonicalizeUrlW(lpszurl : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetCanonicalizeUrlW(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(dwflags)).ok() + InternetCanonicalizeUrlW(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), dwflags).ok() } #[inline] pub unsafe fn InternetCheckConnectionA(lpszurl: P0, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> @@ -1015,7 +1015,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetCheckConnectionA(lpszurl : windows_core::PCSTR, dwflags : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetCheckConnectionA(lpszurl.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved)).ok() + InternetCheckConnectionA(lpszurl.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn InternetCheckConnectionW(lpszurl: P0, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> @@ -1023,7 +1023,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetCheckConnectionW(lpszurl : windows_core::PCWSTR, dwflags : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetCheckConnectionW(lpszurl.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved)).ok() + InternetCheckConnectionW(lpszurl.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn InternetClearAllPerSiteCookieDecisions() -> super::super::Foundation::BOOL { @@ -1033,7 +1033,7 @@ pub unsafe fn InternetClearAllPerSiteCookieDecisions() -> super::super::Foundati #[inline] pub unsafe fn InternetCloseHandle(hinternet: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetCloseHandle(hinternet : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - InternetCloseHandle(core::mem::transmute(hinternet)).ok() + InternetCloseHandle(hinternet).ok() } #[inline] pub unsafe fn InternetCombineUrlA(lpszbaseurl: P0, lpszrelativeurl: P1, lpszbuffer: windows_core::PSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -1042,7 +1042,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetCombineUrlA(lpszbaseurl : windows_core::PCSTR, lpszrelativeurl : windows_core::PCSTR, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetCombineUrlA(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(dwflags)).ok() + InternetCombineUrlA(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), dwflags).ok() } #[inline] pub unsafe fn InternetCombineUrlW(lpszbaseurl: P0, lpszrelativeurl: P1, lpszbuffer: windows_core::PWSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -1051,7 +1051,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetCombineUrlW(lpszbaseurl : windows_core::PCWSTR, lpszrelativeurl : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetCombineUrlW(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(dwflags)).ok() + InternetCombineUrlW(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), core::mem::transmute(lpdwbufferlength), dwflags).ok() } #[inline] pub unsafe fn InternetConfirmZoneCrossing(hwnd: super::super::Foundation::HWND, szurlprev: P1, szurlnew: P2, bpost: bool) -> u32 @@ -1060,7 +1060,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossing(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCSTR, szurlnew : windows_core::PCSTR, bpost : super::super::Foundation:: BOOL) -> u32); - InternetConfirmZoneCrossing(core::mem::transmute(hwnd), szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) + InternetConfirmZoneCrossing(hwnd, szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) } #[inline] pub unsafe fn InternetConfirmZoneCrossingA(hwnd: super::super::Foundation::HWND, szurlprev: P1, szurlnew: P2, bpost: bool) -> u32 @@ -1069,7 +1069,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossingA(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCSTR, szurlnew : windows_core::PCSTR, bpost : super::super::Foundation:: BOOL) -> u32); - InternetConfirmZoneCrossingA(core::mem::transmute(hwnd), szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) + InternetConfirmZoneCrossingA(hwnd, szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) } #[inline] pub unsafe fn InternetConfirmZoneCrossingW(hwnd: super::super::Foundation::HWND, szurlprev: P1, szurlnew: P2, bpost: bool) -> u32 @@ -1078,7 +1078,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossingW(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCWSTR, szurlnew : windows_core::PCWSTR, bpost : super::super::Foundation:: BOOL) -> u32); - InternetConfirmZoneCrossingW(core::mem::transmute(hwnd), szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) + InternetConfirmZoneCrossingW(hwnd, szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) } #[inline] pub unsafe fn InternetConnectA(hinternet: *const core::ffi::c_void, lpszservername: P1, nserverport: u16, lpszusername: P3, lpszpassword: P4, dwservice: u32, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -1088,7 +1088,7 @@ where P4: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetConnectA(hinternet : *const core::ffi::c_void, lpszservername : windows_core::PCSTR, nserverport : u16, lpszusername : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwservice : u32, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - InternetConnectA(core::mem::transmute(hinternet), lpszservername.param().abi(), core::mem::transmute(nserverport), lpszusername.param().abi(), lpszpassword.param().abi(), core::mem::transmute(dwservice), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetConnectA(hinternet, lpszservername.param().abi(), nserverport, lpszusername.param().abi(), lpszpassword.param().abi(), dwservice, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetConnectW(hinternet: *const core::ffi::c_void, lpszservername: P1, nserverport: u16, lpszusername: P3, lpszpassword: P4, dwservice: u32, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -1098,7 +1098,7 @@ where P4: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetConnectW(hinternet : *const core::ffi::c_void, lpszservername : windows_core::PCWSTR, nserverport : u16, lpszusername : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwservice : u32, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - InternetConnectW(core::mem::transmute(hinternet), lpszservername.param().abi(), core::mem::transmute(nserverport), lpszusername.param().abi(), lpszpassword.param().abi(), core::mem::transmute(dwservice), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetConnectW(hinternet, lpszservername.param().abi(), nserverport, lpszusername.param().abi(), lpszpassword.param().abi(), dwservice, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetConvertUrlFromWireToWideChar(pcszurl: &[u8], pcwszbaseurl: P2, dwcodepagehost: u32, dwcodepagepath: u32, fencodepathextra: bool, dwcodepageextra: u32, ppwszconvertedurl: *mut windows_core::PWSTR) -> u32 @@ -1106,29 +1106,29 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetConvertUrlFromWireToWideChar(pcszurl : windows_core::PCSTR, cchurl : u32, pcwszbaseurl : windows_core::PCWSTR, dwcodepagehost : u32, dwcodepagepath : u32, fencodepathextra : super::super::Foundation:: BOOL, dwcodepageextra : u32, ppwszconvertedurl : *mut windows_core::PWSTR) -> u32); - InternetConvertUrlFromWireToWideChar(core::mem::transmute(pcszurl.as_ptr()), pcszurl.len().try_into().unwrap(), pcwszbaseurl.param().abi(), core::mem::transmute(dwcodepagehost), core::mem::transmute(dwcodepagepath), fencodepathextra.into(), core::mem::transmute(dwcodepageextra), core::mem::transmute(ppwszconvertedurl)) + InternetConvertUrlFromWireToWideChar(core::mem::transmute(pcszurl.as_ptr()), pcszurl.len().try_into().unwrap(), pcwszbaseurl.param().abi(), dwcodepagehost, dwcodepagepath, fencodepathextra.into(), dwcodepageextra, core::mem::transmute(ppwszconvertedurl)) } #[cfg(feature = "Win32_Networking_WinHttp")] #[inline] pub unsafe fn InternetCrackUrlA(lpszurl: &[u8], dwflags: super::WinHttp::WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents: *mut URL_COMPONENTSA) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetCrackUrlA(lpszurl : windows_core::PCSTR, dwurllength : u32, dwflags : super::WinHttp:: WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents : *mut URL_COMPONENTSA) -> super::super::Foundation:: BOOL); - InternetCrackUrlA(core::mem::transmute(lpszurl.as_ptr()), lpszurl.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(lpurlcomponents)).ok() + InternetCrackUrlA(core::mem::transmute(lpszurl.as_ptr()), lpszurl.len().try_into().unwrap(), dwflags, core::mem::transmute(lpurlcomponents)).ok() } #[cfg(feature = "Win32_Networking_WinHttp")] #[inline] pub unsafe fn InternetCrackUrlW(lpszurl: &[u16], dwflags: super::WinHttp::WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents: *mut URL_COMPONENTSW) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetCrackUrlW(lpszurl : windows_core::PCWSTR, dwurllength : u32, dwflags : super::WinHttp:: WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents : *mut URL_COMPONENTSW) -> super::super::Foundation:: BOOL); - InternetCrackUrlW(core::mem::transmute(lpszurl.as_ptr()), lpszurl.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(lpurlcomponents)).ok() + InternetCrackUrlW(core::mem::transmute(lpszurl.as_ptr()), lpszurl.len().try_into().unwrap(), dwflags, core::mem::transmute(lpurlcomponents)).ok() } #[inline] pub unsafe fn InternetCreateUrlA(lpurlcomponents: *const URL_COMPONENTSA, dwflags: u32, lpszurl: Option, lpdwurllength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetCreateUrlA(lpurlcomponents : *const URL_COMPONENTSA, dwflags : u32, lpszurl : windows_core::PSTR, lpdwurllength : *mut u32) -> super::super::Foundation:: BOOL); - InternetCreateUrlA(core::mem::transmute(lpurlcomponents), core::mem::transmute(dwflags), core::mem::transmute(lpszurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwurllength)).ok() + InternetCreateUrlA(lpurlcomponents, dwflags, core::mem::transmute(lpszurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwurllength)).ok() } #[inline] pub unsafe fn InternetCreateUrlW(lpurlcomponents: *const URL_COMPONENTSW, dwflags: u32, lpszurl: Option, lpdwurllength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetCreateUrlW(lpurlcomponents : *const URL_COMPONENTSW, dwflags : u32, lpszurl : windows_core::PWSTR, lpdwurllength : *mut u32) -> super::super::Foundation:: BOOL); - InternetCreateUrlW(core::mem::transmute(lpurlcomponents), core::mem::transmute(dwflags), core::mem::transmute(lpszurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwurllength)).ok() + InternetCreateUrlW(lpurlcomponents, dwflags, core::mem::transmute(lpszurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwurllength)).ok() } #[inline] pub unsafe fn InternetDial(hwndparent: super::super::Foundation::HWND, lpszconnectoid: P1, dwflags: u32, lpdwconnection: *mut u32, dwreserved: u32) -> u32 @@ -1136,7 +1136,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetDial(hwndparent : super::super::Foundation:: HWND, lpszconnectoid : windows_core::PCSTR, dwflags : u32, lpdwconnection : *mut u32, dwreserved : u32) -> u32); - InternetDial(core::mem::transmute(hwndparent), lpszconnectoid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpdwconnection), core::mem::transmute(dwreserved)) + InternetDial(hwndparent, lpszconnectoid.param().abi(), dwflags, core::mem::transmute(lpdwconnection), dwreserved) } #[inline] pub unsafe fn InternetDialA(hwndparent: super::super::Foundation::HWND, lpszconnectoid: P1, dwflags: u32, lpdwconnection: *mut usize, dwreserved: Option) -> u32 @@ -1144,7 +1144,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetDialA(hwndparent : super::super::Foundation:: HWND, lpszconnectoid : windows_core::PCSTR, dwflags : u32, lpdwconnection : *mut usize, dwreserved : u32) -> u32); - InternetDialA(core::mem::transmute(hwndparent), lpszconnectoid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpdwconnection), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetDialA(hwndparent, lpszconnectoid.param().abi(), dwflags, core::mem::transmute(lpdwconnection), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetDialW(hwndparent: super::super::Foundation::HWND, lpszconnectoid: P1, dwflags: u32, lpdwconnection: *mut usize, dwreserved: Option) -> u32 @@ -1152,42 +1152,42 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetDialW(hwndparent : super::super::Foundation:: HWND, lpszconnectoid : windows_core::PCWSTR, dwflags : u32, lpdwconnection : *mut usize, dwreserved : u32) -> u32); - InternetDialW(core::mem::transmute(hwndparent), lpszconnectoid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpdwconnection), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetDialW(hwndparent, lpszconnectoid.param().abi(), dwflags, core::mem::transmute(lpdwconnection), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetEnumPerSiteCookieDecisionA(pszsitename: windows_core::PSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetEnumPerSiteCookieDecisionA(pszsitename : windows_core::PSTR, pcsitenamesize : *mut u32, pdwdecision : *mut u32, dwindex : u32) -> super::super::Foundation:: BOOL); - InternetEnumPerSiteCookieDecisionA(core::mem::transmute(pszsitename), core::mem::transmute(pcsitenamesize), core::mem::transmute(pdwdecision), core::mem::transmute(dwindex)) + InternetEnumPerSiteCookieDecisionA(core::mem::transmute(pszsitename), core::mem::transmute(pcsitenamesize), core::mem::transmute(pdwdecision), dwindex) } #[inline] pub unsafe fn InternetEnumPerSiteCookieDecisionW(pszsitename: windows_core::PWSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetEnumPerSiteCookieDecisionW(pszsitename : windows_core::PWSTR, pcsitenamesize : *mut u32, pdwdecision : *mut u32, dwindex : u32) -> super::super::Foundation:: BOOL); - InternetEnumPerSiteCookieDecisionW(core::mem::transmute(pszsitename), core::mem::transmute(pcsitenamesize), core::mem::transmute(pdwdecision), core::mem::transmute(dwindex)) + InternetEnumPerSiteCookieDecisionW(core::mem::transmute(pszsitename), core::mem::transmute(pcsitenamesize), core::mem::transmute(pdwdecision), dwindex) } #[inline] pub unsafe fn InternetErrorDlg(hwnd: super::super::Foundation::HWND, hrequest: Option<*mut core::ffi::c_void>, dwerror: u32, dwflags: u32, lppvdata: Option<*mut *mut core::ffi::c_void>) -> u32 { windows_targets::link!("wininet.dll" "system" fn InternetErrorDlg(hwnd : super::super::Foundation:: HWND, hrequest : *mut core::ffi::c_void, dwerror : u32, dwflags : u32, lppvdata : *mut *mut core::ffi::c_void) -> u32); - InternetErrorDlg(core::mem::transmute(hwnd), core::mem::transmute(hrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwerror), core::mem::transmute(dwflags), core::mem::transmute(lppvdata.unwrap_or(core::mem::zeroed()))) + InternetErrorDlg(hwnd, core::mem::transmute(hrequest.unwrap_or(core::mem::zeroed())), dwerror, dwflags, core::mem::transmute(lppvdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetFindNextFileA(hfind: *const core::ffi::c_void, lpvfinddata: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetFindNextFileA(hfind : *const core::ffi::c_void, lpvfinddata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - InternetFindNextFileA(core::mem::transmute(hfind), core::mem::transmute(lpvfinddata)).ok() + InternetFindNextFileA(hfind, core::mem::transmute(lpvfinddata)).ok() } #[inline] pub unsafe fn InternetFindNextFileW(hfind: *const core::ffi::c_void, lpvfinddata: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetFindNextFileW(hfind : *const core::ffi::c_void, lpvfinddata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - InternetFindNextFileW(core::mem::transmute(hfind), core::mem::transmute(lpvfinddata)).ok() + InternetFindNextFileW(hfind, core::mem::transmute(lpvfinddata)).ok() } #[inline] pub unsafe fn InternetFortezzaCommand(dwcommand: u32, hwnd: super::super::Foundation::HWND, dwreserved: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetFortezzaCommand(dwcommand : u32, hwnd : super::super::Foundation:: HWND, dwreserved : usize) -> super::super::Foundation:: BOOL); - InternetFortezzaCommand(core::mem::transmute(dwcommand), core::mem::transmute(hwnd), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetFortezzaCommand(dwcommand, hwnd, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetFreeCookies(pcookies: Option<*mut INTERNET_COOKIE2>, dwcookiecount: u32) { windows_targets::link!("wininet.dll" "system" fn InternetFreeCookies(pcookies : *mut INTERNET_COOKIE2, dwcookiecount : u32)); - InternetFreeCookies(core::mem::transmute(pcookies.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcookiecount)) + InternetFreeCookies(core::mem::transmute(pcookies.unwrap_or(core::mem::zeroed())), dwcookiecount) } #[inline] pub unsafe fn InternetFreeProxyInfoList(pproxyinfolist: *mut WININET_PROXY_INFO_LIST) { @@ -1202,7 +1202,7 @@ pub unsafe fn InternetGetConnectedState(lpdwflags: *mut INTERNET_CONNECTION, dwr #[inline] pub unsafe fn InternetGetConnectedStateEx(lpdwflags: *mut INTERNET_CONNECTION, lpszconnectionname: Option<&mut [u8]>, dwreserved: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateEx(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PSTR, dwnamelen : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetGetConnectedStateEx(core::mem::transmute(lpdwflags), core::mem::transmute(lpszconnectionname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszconnectionname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwreserved)).ok() + InternetGetConnectedStateEx(core::mem::transmute(lpdwflags), core::mem::transmute(lpszconnectionname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszconnectionname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwreserved).ok() } #[inline] pub unsafe fn InternetGetConnectedStateExA(lpdwflags: Option<*mut INTERNET_CONNECTION>, lpszconnectionname: Option<&mut [u8]>, dwreserved: Option) -> windows_core::Result<()> { @@ -1230,7 +1230,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetCookieEx2(pcwszurl : windows_core::PCWSTR, pcwszcookiename : windows_core::PCWSTR, dwflags : u32, ppcookies : *mut *mut INTERNET_COOKIE2, pdwcookiecount : *mut u32) -> u32); - InternetGetCookieEx2(pcwszurl.param().abi(), pcwszcookiename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppcookies), core::mem::transmute(pdwcookiecount)) + InternetGetCookieEx2(pcwszurl.param().abi(), pcwszcookiename.param().abi(), dwflags, core::mem::transmute(ppcookies), core::mem::transmute(pdwcookiecount)) } #[inline] pub unsafe fn InternetGetCookieExA(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, lpdwsize: *mut u32, dwflags: INTERNET_COOKIE_FLAGS, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1240,7 +1240,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetCookieExA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR, lpdwsize : *mut u32, dwflags : INTERNET_COOKIE_FLAGS, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - InternetGetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(lpdwsize), core::mem::transmute(dwflags), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + InternetGetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(lpdwsize), dwflags, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InternetGetCookieExW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, lpdwsize: *mut u32, dwflags: INTERNET_COOKIE_FLAGS, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1250,7 +1250,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetCookieExW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR, lpdwsize : *mut u32, dwflags : INTERNET_COOKIE_FLAGS, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - InternetGetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(lpdwsize), core::mem::transmute(dwflags), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + InternetGetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(lpdwsize), dwflags, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InternetGetCookieW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: Option, lpdwsize: *mut u32) -> windows_core::Result<()> @@ -1293,7 +1293,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetProxyForUrl(hinternet : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, pproxyinfolist : *mut WININET_PROXY_INFO_LIST) -> u32); - InternetGetProxyForUrl(core::mem::transmute(hinternet), pcwszurl.param().abi(), core::mem::transmute(pproxyinfolist)) + InternetGetProxyForUrl(hinternet, pcwszurl.param().abi(), core::mem::transmute(pproxyinfolist)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1328,7 +1328,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGoOnline(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetGoOnline(lpszurl.param().abi(), core::mem::transmute(hwndparent), core::mem::transmute(dwflags)).ok() + InternetGoOnline(lpszurl.param().abi(), hwndparent, dwflags).ok() } #[inline] pub unsafe fn InternetGoOnlineA(lpszurl: P0, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> @@ -1336,7 +1336,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGoOnlineA(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetGoOnlineA(lpszurl.param().abi(), core::mem::transmute(hwndparent), core::mem::transmute(dwflags)).ok() + InternetGoOnlineA(lpszurl.param().abi(), hwndparent, dwflags).ok() } #[inline] pub unsafe fn InternetGoOnlineW(lpszurl: P0, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> @@ -1344,22 +1344,22 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGoOnlineW(lpszurl : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetGoOnlineW(lpszurl.param().abi(), core::mem::transmute(hwndparent), core::mem::transmute(dwflags)).ok() + InternetGoOnlineW(lpszurl.param().abi(), hwndparent, dwflags).ok() } #[inline] pub unsafe fn InternetHangUp(dwconnection: usize, dwreserved: Option) -> u32 { windows_targets::link!("wininet.dll" "system" fn InternetHangUp(dwconnection : usize, dwreserved : u32) -> u32); - InternetHangUp(core::mem::transmute(dwconnection), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetHangUp(dwconnection, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetInitializeAutoProxyDll(dwreserved: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetInitializeAutoProxyDll(dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetInitializeAutoProxyDll(core::mem::transmute(dwreserved)).ok() + InternetInitializeAutoProxyDll(dwreserved).ok() } #[inline] pub unsafe fn InternetLockRequestFile(hinternet: *const core::ffi::c_void, lphlockrequestinfo: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetLockRequestFile(hinternet : *const core::ffi::c_void, lphlockrequestinfo : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - InternetLockRequestFile(core::mem::transmute(hinternet), core::mem::transmute(lphlockrequestinfo)).ok() + InternetLockRequestFile(hinternet, core::mem::transmute(lphlockrequestinfo)).ok() } #[inline] pub unsafe fn InternetOpenA(lpszagent: P0, dwaccesstype: u32, lpszproxy: P2, lpszproxybypass: P3, dwflags: u32) -> *mut core::ffi::c_void @@ -1369,7 +1369,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetOpenA(lpszagent : windows_core::PCSTR, dwaccesstype : u32, lpszproxy : windows_core::PCSTR, lpszproxybypass : windows_core::PCSTR, dwflags : u32) -> *mut core::ffi::c_void); - InternetOpenA(lpszagent.param().abi(), core::mem::transmute(dwaccesstype), lpszproxy.param().abi(), lpszproxybypass.param().abi(), core::mem::transmute(dwflags)) + InternetOpenA(lpszagent.param().abi(), dwaccesstype, lpszproxy.param().abi(), lpszproxybypass.param().abi(), dwflags) } #[inline] pub unsafe fn InternetOpenUrlA(hinternet: *const core::ffi::c_void, lpszurl: P1, lpszheaders: Option<&[u8]>, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -1377,7 +1377,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetOpenUrlA(hinternet : *const core::ffi::c_void, lpszurl : windows_core::PCSTR, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - InternetOpenUrlA(core::mem::transmute(hinternet), lpszurl.param().abi(), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetOpenUrlA(hinternet, lpszurl.param().abi(), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetOpenUrlW(hinternet: *const core::ffi::c_void, lpszurl: P1, lpszheaders: Option<&[u16]>, dwflags: u32, dwcontext: Option) -> *mut core::ffi::c_void @@ -1385,7 +1385,7 @@ where P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetOpenUrlW(hinternet : *const core::ffi::c_void, lpszurl : windows_core::PCWSTR, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwflags : u32, dwcontext : usize) -> *mut core::ffi::c_void); - InternetOpenUrlW(core::mem::transmute(hinternet), lpszurl.param().abi(), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetOpenUrlW(hinternet, lpszurl.param().abi(), core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetOpenW(lpszagent: P0, dwaccesstype: u32, lpszproxy: P2, lpszproxybypass: P3, dwflags: u32) -> *mut core::ffi::c_void @@ -1395,12 +1395,12 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetOpenW(lpszagent : windows_core::PCWSTR, dwaccesstype : u32, lpszproxy : windows_core::PCWSTR, lpszproxybypass : windows_core::PCWSTR, dwflags : u32) -> *mut core::ffi::c_void); - InternetOpenW(lpszagent.param().abi(), core::mem::transmute(dwaccesstype), lpszproxy.param().abi(), lpszproxybypass.param().abi(), core::mem::transmute(dwflags)) + InternetOpenW(lpszagent.param().abi(), dwaccesstype, lpszproxy.param().abi(), lpszproxybypass.param().abi(), dwflags) } #[inline] pub unsafe fn InternetQueryDataAvailable(hfile: *const core::ffi::c_void, lpdwnumberofbytesavailable: Option<*mut u32>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetQueryDataAvailable(hfile : *const core::ffi::c_void, lpdwnumberofbytesavailable : *mut u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - InternetQueryDataAvailable(core::mem::transmute(hfile), core::mem::transmute(lpdwnumberofbytesavailable.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + InternetQueryDataAvailable(hfile, core::mem::transmute(lpdwnumberofbytesavailable.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InternetQueryFortezzaStatus(pdwstatus: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { @@ -1410,37 +1410,37 @@ pub unsafe fn InternetQueryFortezzaStatus(pdwstatus: *mut u32, dwreserved: Optio #[inline] pub unsafe fn InternetQueryOptionA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetQueryOptionA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); - InternetQueryOptionA(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() + InternetQueryOptionA(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() } #[inline] pub unsafe fn InternetQueryOptionW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetQueryOptionW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); - InternetQueryOptionW(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() + InternetQueryOptionW(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() } #[inline] pub unsafe fn InternetReadFile(hfile: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwnumberofbytestoread: u32, lpdwnumberofbytesread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetReadFile(hfile : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32) -> super::super::Foundation:: BOOL); - InternetReadFile(core::mem::transmute(hfile), core::mem::transmute(lpbuffer), core::mem::transmute(dwnumberofbytestoread), core::mem::transmute(lpdwnumberofbytesread)).ok() + InternetReadFile(hfile, core::mem::transmute(lpbuffer), dwnumberofbytestoread, core::mem::transmute(lpdwnumberofbytesread)).ok() } #[inline] pub unsafe fn InternetReadFileExA(hfile: *const core::ffi::c_void, lpbuffersout: *mut INTERNET_BUFFERSA, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetReadFileExA(hfile : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - InternetReadFileExA(core::mem::transmute(hfile), core::mem::transmute(lpbuffersout), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + InternetReadFileExA(hfile, core::mem::transmute(lpbuffersout), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InternetReadFileExW(hfile: *const core::ffi::c_void, lpbuffersout: *mut INTERNET_BUFFERSW, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetReadFileExW(hfile : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - InternetReadFileExW(core::mem::transmute(hfile), core::mem::transmute(lpbuffersout), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() + InternetReadFileExW(hfile, core::mem::transmute(lpbuffersout), dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InternetSecurityProtocolToStringA(dwprotocol: u32, lpstr: Option, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetSecurityProtocolToStringA(dwprotocol : u32, lpstr : windows_core::PSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetSecurityProtocolToStringA(core::mem::transmute(dwprotocol), core::mem::transmute(lpstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetSecurityProtocolToStringA(dwprotocol, core::mem::transmute(lpstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSecurityProtocolToStringW(dwprotocol: u32, lpstr: Option, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetSecurityProtocolToStringW(dwprotocol : u32, lpstr : windows_core::PWSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetSecurityProtocolToStringW(core::mem::transmute(dwprotocol), core::mem::transmute(lpstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetSecurityProtocolToStringW(dwprotocol, core::mem::transmute(lpstr.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstrlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetCookieA(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2) -> windows_core::Result<()> @@ -1459,7 +1459,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetCookieEx2(pcwszurl : windows_core::PCWSTR, pcookie : *const INTERNET_COOKIE2, pcwszp3ppolicy : windows_core::PCWSTR, dwflags : u32, pdwcookiestate : *mut u32) -> u32); - InternetSetCookieEx2(pcwszurl.param().abi(), core::mem::transmute(pcookie), pcwszp3ppolicy.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pdwcookiestate)) + InternetSetCookieEx2(pcwszurl.param().abi(), pcookie, pcwszp3ppolicy.param().abi(), dwflags, core::mem::transmute(pdwcookiestate)) } #[inline] pub unsafe fn InternetSetCookieExA(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, dwflags: u32, dwreserved: Option) -> u32 @@ -1469,7 +1469,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetCookieExA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR, dwflags : u32, dwreserved : usize) -> u32); - InternetSetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetSetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), dwflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetCookieExW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, dwflags: u32, dwreserved: Option) -> u32 @@ -1479,7 +1479,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetCookieExW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR, dwflags : u32, dwreserved : usize) -> u32); - InternetSetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetSetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), dwflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetCookieW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2) -> windows_core::Result<()> @@ -1497,7 +1497,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetDialState(lpszconnectoid : windows_core::PCSTR, dwstate : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetSetDialState(lpszconnectoid.param().abi(), core::mem::transmute(dwstate), core::mem::transmute(dwreserved)) + InternetSetDialState(lpszconnectoid.param().abi(), dwstate, dwreserved) } #[inline] pub unsafe fn InternetSetDialStateA(lpszconnectoid: P0, dwstate: u32, dwreserved: Option) -> super::super::Foundation::BOOL @@ -1505,7 +1505,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetDialStateA(lpszconnectoid : windows_core::PCSTR, dwstate : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetSetDialStateA(lpszconnectoid.param().abi(), core::mem::transmute(dwstate), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetSetDialStateA(lpszconnectoid.param().abi(), dwstate, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetDialStateW(lpszconnectoid: P0, dwstate: u32, dwreserved: Option) -> super::super::Foundation::BOOL @@ -1513,32 +1513,32 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetDialStateW(lpszconnectoid : windows_core::PCWSTR, dwstate : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetSetDialStateW(lpszconnectoid.param().abi(), core::mem::transmute(dwstate), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + InternetSetDialStateW(lpszconnectoid.param().abi(), dwstate, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetFilePointer(hfile: *const core::ffi::c_void, ldistancetomove: i32, lpdistancetomovehigh: Option<*mut i32>, dwmovemethod: u32, dwcontext: Option) -> u32 { windows_targets::link!("wininet.dll" "system" fn InternetSetFilePointer(hfile : *const core::ffi::c_void, ldistancetomove : i32, lpdistancetomovehigh : *mut i32, dwmovemethod : u32, dwcontext : usize) -> u32); - InternetSetFilePointer(core::mem::transmute(hfile), core::mem::transmute(ldistancetomove), core::mem::transmute(lpdistancetomovehigh.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmovemethod), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetSetFilePointer(hfile, ldistancetomove, core::mem::transmute(lpdistancetomovehigh.unwrap_or(core::mem::zeroed())), dwmovemethod, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetOptionA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetSetOptionA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); - InternetSetOptionA(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength)).ok() + InternetSetOptionA(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength).ok() } #[inline] pub unsafe fn InternetSetOptionExA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetSetOptionExA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetSetOptionExA(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength), core::mem::transmute(dwflags)) + InternetSetOptionExA(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength, dwflags) } #[inline] pub unsafe fn InternetSetOptionExW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetSetOptionExW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - InternetSetOptionExW(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength), core::mem::transmute(dwflags)) + InternetSetOptionExW(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength, dwflags) } #[inline] pub unsafe fn InternetSetOptionW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetSetOptionW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); - InternetSetOptionW(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoption), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength)).ok() + InternetSetOptionW(core::mem::transmute(hinternet.unwrap_or(core::mem::zeroed())), dwoption, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength).ok() } #[inline] pub unsafe fn InternetSetPerSiteCookieDecisionA(pchhostname: P0, dwdecision: u32) -> super::super::Foundation::BOOL @@ -1546,7 +1546,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, dwdecision : u32) -> super::super::Foundation:: BOOL); - InternetSetPerSiteCookieDecisionA(pchhostname.param().abi(), core::mem::transmute(dwdecision)) + InternetSetPerSiteCookieDecisionA(pchhostname.param().abi(), dwdecision) } #[inline] pub unsafe fn InternetSetPerSiteCookieDecisionW(pchhostname: P0, dwdecision: u32) -> super::super::Foundation::BOOL @@ -1554,22 +1554,22 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, dwdecision : u32) -> super::super::Foundation:: BOOL); - InternetSetPerSiteCookieDecisionW(pchhostname.param().abi(), core::mem::transmute(dwdecision)) + InternetSetPerSiteCookieDecisionW(pchhostname.param().abi(), dwdecision) } #[inline] pub unsafe fn InternetSetStatusCallback(hinternet: *const core::ffi::c_void, lpfninternetcallback: Option) -> LPINTERNET_STATUS_CALLBACK { windows_targets::link!("wininet.dll" "system" fn InternetSetStatusCallback(hinternet : *const core::ffi::c_void, lpfninternetcallback : LPINTERNET_STATUS_CALLBACK) -> LPINTERNET_STATUS_CALLBACK); - InternetSetStatusCallback(core::mem::transmute(hinternet), core::mem::transmute(lpfninternetcallback.unwrap_or(core::mem::zeroed()))) + InternetSetStatusCallback(hinternet, core::mem::transmute(lpfninternetcallback.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetStatusCallbackA(hinternet: *const core::ffi::c_void, lpfninternetcallback: Option) -> LPINTERNET_STATUS_CALLBACK { windows_targets::link!("wininet.dll" "system" fn InternetSetStatusCallbackA(hinternet : *const core::ffi::c_void, lpfninternetcallback : LPINTERNET_STATUS_CALLBACK) -> LPINTERNET_STATUS_CALLBACK); - InternetSetStatusCallbackA(core::mem::transmute(hinternet), core::mem::transmute(lpfninternetcallback.unwrap_or(core::mem::zeroed()))) + InternetSetStatusCallbackA(hinternet, core::mem::transmute(lpfninternetcallback.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetSetStatusCallbackW(hinternet: *const core::ffi::c_void, lpfninternetcallback: Option) -> LPINTERNET_STATUS_CALLBACK { windows_targets::link!("wininet.dll" "system" fn InternetSetStatusCallbackW(hinternet : *const core::ffi::c_void, lpfninternetcallback : LPINTERNET_STATUS_CALLBACK) -> LPINTERNET_STATUS_CALLBACK); - InternetSetStatusCallbackW(core::mem::transmute(hinternet), core::mem::transmute(lpfninternetcallback.unwrap_or(core::mem::zeroed()))) + InternetSetStatusCallbackW(hinternet, core::mem::transmute(lpfninternetcallback.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetShowSecurityInfoByURL(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> super::super::Foundation::BOOL @@ -1577,7 +1577,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURL(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InternetShowSecurityInfoByURL(lpszurl.param().abi(), core::mem::transmute(hwndparent)) + InternetShowSecurityInfoByURL(lpszurl.param().abi(), hwndparent) } #[inline] pub unsafe fn InternetShowSecurityInfoByURLA(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> super::super::Foundation::BOOL @@ -1585,7 +1585,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURLA(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InternetShowSecurityInfoByURLA(lpszurl.param().abi(), core::mem::transmute(hwndparent)) + InternetShowSecurityInfoByURLA(lpszurl.param().abi(), hwndparent) } #[inline] pub unsafe fn InternetShowSecurityInfoByURLW(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> super::super::Foundation::BOOL @@ -1593,22 +1593,22 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURLW(lpszurl : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InternetShowSecurityInfoByURLW(lpszurl.param().abi(), core::mem::transmute(hwndparent)) + InternetShowSecurityInfoByURLW(lpszurl.param().abi(), hwndparent) } #[inline] pub unsafe fn InternetTimeFromSystemTime(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTime(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PSTR, cbtime : u32) -> super::super::Foundation:: BOOL); - InternetTimeFromSystemTime(core::mem::transmute(pst), core::mem::transmute(dwrfc), core::mem::transmute(lpsztime.as_ptr()), lpsztime.len().try_into().unwrap()).ok() + InternetTimeFromSystemTime(pst, dwrfc, core::mem::transmute(lpsztime.as_ptr()), lpsztime.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn InternetTimeFromSystemTimeA(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTimeA(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PSTR, cbtime : u32) -> super::super::Foundation:: BOOL); - InternetTimeFromSystemTimeA(core::mem::transmute(pst), core::mem::transmute(dwrfc), core::mem::transmute(lpsztime.as_ptr()), lpsztime.len().try_into().unwrap()).ok() + InternetTimeFromSystemTimeA(pst, dwrfc, core::mem::transmute(lpsztime.as_ptr()), lpsztime.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn InternetTimeFromSystemTimeW(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: windows_core::PWSTR, cbtime: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTimeW(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PWSTR, cbtime : u32) -> super::super::Foundation:: BOOL); - InternetTimeFromSystemTimeW(core::mem::transmute(pst), core::mem::transmute(dwrfc), core::mem::transmute(lpsztime), core::mem::transmute(cbtime)).ok() + InternetTimeFromSystemTimeW(pst, dwrfc, core::mem::transmute(lpsztime), cbtime).ok() } #[inline] pub unsafe fn InternetTimeToSystemTime(lpsztime: P0, pst: *mut super::super::Foundation::SYSTEMTIME, dwreserved: Option) -> windows_core::Result<()> @@ -1642,17 +1642,17 @@ pub unsafe fn InternetUnlockRequestFile(hlockrequestinfo: super::super::Foundati #[inline] pub unsafe fn InternetWriteFile(hfile: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, dwnumberofbytestowrite: u32, lpdwnumberofbyteswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn InternetWriteFile(hfile : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, dwnumberofbytestowrite : u32, lpdwnumberofbyteswritten : *mut u32) -> super::super::Foundation:: BOOL); - InternetWriteFile(core::mem::transmute(hfile), core::mem::transmute(lpbuffer), core::mem::transmute(dwnumberofbytestowrite), core::mem::transmute(lpdwnumberofbyteswritten)).ok() + InternetWriteFile(hfile, lpbuffer, dwnumberofbytestowrite, core::mem::transmute(lpdwnumberofbyteswritten)).ok() } #[inline] pub unsafe fn InternetWriteFileExA(hfile: *const core::ffi::c_void, lpbuffersin: *const INTERNET_BUFFERSA, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetWriteFileExA(hfile : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - InternetWriteFileExA(core::mem::transmute(hfile), core::mem::transmute(lpbuffersin), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetWriteFileExA(hfile, lpbuffersin, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InternetWriteFileExW(hfile: *const core::ffi::c_void, lpbuffersin: *const INTERNET_BUFFERSW, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn InternetWriteFileExW(hfile : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); - InternetWriteFileExW(core::mem::transmute(hfile), core::mem::transmute(lpbuffersin), core::mem::transmute(dwflags), core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) + InternetWriteFileExW(hfile, lpbuffersin, dwflags, core::mem::transmute(dwcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IsDomainLegalCookieDomainA(pchdomain: P0, pchfulldomain: P1) -> super::super::Foundation::BOOL @@ -1675,7 +1675,7 @@ where #[inline] pub unsafe fn IsHostInProxyBypassList(tscheme: INTERNET_SCHEME, lpszhost: &[u8]) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn IsHostInProxyBypassList(tscheme : INTERNET_SCHEME, lpszhost : windows_core::PCSTR, cchhost : u32) -> super::super::Foundation:: BOOL); - IsHostInProxyBypassList(core::mem::transmute(tscheme), core::mem::transmute(lpszhost.as_ptr()), lpszhost.len().try_into().unwrap()) + IsHostInProxyBypassList(tscheme, core::mem::transmute(lpszhost.as_ptr()), lpszhost.len().try_into().unwrap()) } #[inline] pub unsafe fn IsProfilesEnabled() -> super::super::Foundation::BOOL { @@ -1688,7 +1688,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn IsUrlCacheEntryExpiredA(lpszurlname : windows_core::PCSTR, dwflags : u32, pftlastmodified : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - IsUrlCacheEntryExpiredA(lpszurlname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pftlastmodified)) + IsUrlCacheEntryExpiredA(lpszurlname.param().abi(), dwflags, core::mem::transmute(pftlastmodified)) } #[inline] pub unsafe fn IsUrlCacheEntryExpiredW(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL @@ -1696,7 +1696,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn IsUrlCacheEntryExpiredW(lpszurlname : windows_core::PCWSTR, dwflags : u32, pftlastmodified : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - IsUrlCacheEntryExpiredW(lpszurlname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pftlastmodified)) + IsUrlCacheEntryExpiredW(lpszurlname.param().abi(), dwflags, core::mem::transmute(pftlastmodified)) } #[inline] pub unsafe fn LoadUrlCacheContent() -> super::super::Foundation::BOOL { @@ -1714,12 +1714,12 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn PerformOperationOverUrlCacheA(pszurlsearchpattern : windows_core::PCSTR, dwflags : u32, dwfilter : u32, groupid : i64, preserved1 : *const core::ffi::c_void, pdwreserved2 : *const u32, preserved3 : *const core::ffi::c_void, op : CACHE_OPERATOR, poperatordata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - PerformOperationOverUrlCacheA(pszurlsearchpattern.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwfilter), core::mem::transmute(groupid), core::mem::transmute(preserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved3.unwrap_or(core::mem::zeroed())), core::mem::transmute(op), core::mem::transmute(poperatordata)) + PerformOperationOverUrlCacheA(pszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(preserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved3.unwrap_or(core::mem::zeroed())), op, core::mem::transmute(poperatordata)) } #[inline] pub unsafe fn PrivacyGetZonePreferenceW(dwzone: u32, dwtype: u32, pdwtemplate: Option<*mut u32>, pszbuffer: Option, pdwbufferlength: Option<*mut u32>) -> u32 { windows_targets::link!("wininet.dll" "system" fn PrivacyGetZonePreferenceW(dwzone : u32, dwtype : u32, pdwtemplate : *mut u32, pszbuffer : windows_core::PWSTR, pdwbufferlength : *mut u32) -> u32); - PrivacyGetZonePreferenceW(core::mem::transmute(dwzone), core::mem::transmute(dwtype), core::mem::transmute(pdwtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbufferlength.unwrap_or(core::mem::zeroed()))) + PrivacyGetZonePreferenceW(dwzone, dwtype, core::mem::transmute(pdwtemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbufferlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PrivacySetZonePreferenceW(dwzone: u32, dwtype: u32, dwtemplate: u32, pszpreference: P3) -> u32 @@ -1727,7 +1727,7 @@ where P3: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn PrivacySetZonePreferenceW(dwzone : u32, dwtype : u32, dwtemplate : u32, pszpreference : windows_core::PCWSTR) -> u32); - PrivacySetZonePreferenceW(core::mem::transmute(dwzone), core::mem::transmute(dwtype), core::mem::transmute(dwtemplate), pszpreference.param().abi()) + PrivacySetZonePreferenceW(dwzone, dwtype, dwtemplate, pszpreference.param().abi()) } #[inline] pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: Option<*mut u32>, pppwsznetworkguids: Option<*mut *mut windows_core::PWSTR>, pppbstrnetworknames: Option<*mut *mut windows_core::BSTR>, pppwszgwmacs: Option<*mut *mut windows_core::PWSTR>, pcgatewaymacs: Option<*mut u32>, pdwflags: Option<*mut u32>) -> super::super::Foundation::BOOL { @@ -1737,22 +1737,22 @@ pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: Option<*mut u32>, pppwsz #[inline] pub unsafe fn ReadUrlCacheEntryStream(hurlcachestream: super::super::Foundation::HANDLE, dwlocation: u32, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32, reserved: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn ReadUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, dwlocation : u32, lpbuffer : *mut core::ffi::c_void, lpdwlen : *mut u32, reserved : u32) -> super::super::Foundation:: BOOL); - ReadUrlCacheEntryStream(core::mem::transmute(hurlcachestream), core::mem::transmute(dwlocation), core::mem::transmute(lpbuffer), core::mem::transmute(lpdwlen), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + ReadUrlCacheEntryStream(hurlcachestream, dwlocation, core::mem::transmute(lpbuffer), core::mem::transmute(lpdwlen), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReadUrlCacheEntryStreamEx(hurlcachestream: super::super::Foundation::HANDLE, qwlocation: u64, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn ReadUrlCacheEntryStreamEx(hurlcachestream : super::super::Foundation:: HANDLE, qwlocation : u64, lpbuffer : *mut core::ffi::c_void, lpdwlen : *mut u32) -> super::super::Foundation:: BOOL); - ReadUrlCacheEntryStreamEx(core::mem::transmute(hurlcachestream), core::mem::transmute(qwlocation), core::mem::transmute(lpbuffer), core::mem::transmute(lpdwlen)) + ReadUrlCacheEntryStreamEx(hurlcachestream, qwlocation, core::mem::transmute(lpbuffer), core::mem::transmute(lpdwlen)) } #[inline] pub unsafe fn RegisterUrlCacheNotification(hwnd: Option, umsg: u32, gid: i64, dwopsfilter: u32, dwreserved: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn RegisterUrlCacheNotification(hwnd : super::super::Foundation:: HWND, umsg : u32, gid : i64, dwopsfilter : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - RegisterUrlCacheNotification(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(gid), core::mem::transmute(dwopsfilter), core::mem::transmute(dwreserved)) + RegisterUrlCacheNotification(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), umsg, gid, dwopsfilter, dwreserved) } #[inline] pub unsafe fn ResumeSuspendedDownload(hrequest: *const core::ffi::c_void, dwresultcode: u32) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn ResumeSuspendedDownload(hrequest : *const core::ffi::c_void, dwresultcode : u32) -> super::super::Foundation:: BOOL); - ResumeSuspendedDownload(core::mem::transmute(hrequest), core::mem::transmute(dwresultcode)).ok() + ResumeSuspendedDownload(hrequest, dwresultcode).ok() } #[inline] pub unsafe fn RetrieveUrlCacheEntryFileA(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32, dwreserved: Option) -> windows_core::Result<()> @@ -1794,17 +1794,17 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn RunOnceUrlCache(hwnd : super::super::Foundation:: HWND, hinst : super::super::Foundation:: HINSTANCE, lpszcmd : windows_core::PCSTR, ncmdshow : i32) -> u32); - RunOnceUrlCache(core::mem::transmute(hwnd), core::mem::transmute(hinst), lpszcmd.param().abi(), core::mem::transmute(ncmdshow)) + RunOnceUrlCache(hwnd, hinst, lpszcmd.param().abi(), ncmdshow) } #[inline] pub unsafe fn SetUrlCacheConfigInfoA(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheConfigInfoA(lpcacheconfiginfo : *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); - SetUrlCacheConfigInfoA(core::mem::transmute(lpcacheconfiginfo), core::mem::transmute(dwfieldcontrol)) + SetUrlCacheConfigInfoA(lpcacheconfiginfo, dwfieldcontrol) } #[inline] pub unsafe fn SetUrlCacheConfigInfoW(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOW, dwfieldcontrol: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheConfigInfoW(lpcacheconfiginfo : *const INTERNET_CACHE_CONFIG_INFOW, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); - SetUrlCacheConfigInfoW(core::mem::transmute(lpcacheconfiginfo), core::mem::transmute(dwfieldcontrol)) + SetUrlCacheConfigInfoW(lpcacheconfiginfo, dwfieldcontrol) } #[inline] pub unsafe fn SetUrlCacheEntryGroup(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -1812,7 +1812,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroup(lpszurlname : windows_core::PCSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetUrlCacheEntryGroup(lpszurlname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(groupid), core::mem::transmute(pbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) + SetUrlCacheEntryGroup(lpszurlname.param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetUrlCacheEntryGroupA(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -1820,7 +1820,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroupA(lpszurlname : windows_core::PCSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetUrlCacheEntryGroupA(lpszurlname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(groupid), core::mem::transmute(pbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) + SetUrlCacheEntryGroupA(lpszurlname.param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetUrlCacheEntryGroupW(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -1828,7 +1828,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroupW(lpszurlname : windows_core::PCWSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetUrlCacheEntryGroupW(lpszurlname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(groupid), core::mem::transmute(pbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) + SetUrlCacheEntryGroupW(lpszurlname.param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbgroupattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetUrlCacheEntryInfoA(lpszurlname: P0, lpcacheentryinfo: *const INTERNET_CACHE_ENTRY_INFOA, dwfieldcontrol: u32) -> windows_core::Result<()> @@ -1836,7 +1836,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryInfoA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *const INTERNET_CACHE_ENTRY_INFOA, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); - SetUrlCacheEntryInfoA(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo), core::mem::transmute(dwfieldcontrol)).ok() + SetUrlCacheEntryInfoA(lpszurlname.param().abi(), lpcacheentryinfo, dwfieldcontrol).ok() } #[inline] pub unsafe fn SetUrlCacheEntryInfoW(lpszurlname: P0, lpcacheentryinfo: *const INTERNET_CACHE_ENTRY_INFOW, dwfieldcontrol: u32) -> windows_core::Result<()> @@ -1844,38 +1844,38 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryInfoW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *const INTERNET_CACHE_ENTRY_INFOW, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); - SetUrlCacheEntryInfoW(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo), core::mem::transmute(dwfieldcontrol)).ok() + SetUrlCacheEntryInfoW(lpszurlname.param().abi(), lpcacheentryinfo, dwfieldcontrol).ok() } #[inline] pub unsafe fn SetUrlCacheGroupAttributeA(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *const INTERNET_CACHE_GROUP_INFOA, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheGroupAttributeA(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *const INTERNET_CACHE_GROUP_INFOA, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetUrlCacheGroupAttributeA(core::mem::transmute(gid), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwattributes), core::mem::transmute(lpgroupinfo), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SetUrlCacheGroupAttributeA(gid, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), dwattributes, lpgroupinfo, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetUrlCacheGroupAttributeW(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *const INTERNET_CACHE_GROUP_INFOW, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheGroupAttributeW(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *const INTERNET_CACHE_GROUP_INFOW, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetUrlCacheGroupAttributeW(core::mem::transmute(gid), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwattributes), core::mem::transmute(lpgroupinfo), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SetUrlCacheGroupAttributeW(gid, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), dwattributes, lpgroupinfo, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetUrlCacheHeaderData(nidx: u32, dwdata: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wininet.dll" "system" fn SetUrlCacheHeaderData(nidx : u32, dwdata : u32) -> super::super::Foundation:: BOOL); - SetUrlCacheHeaderData(core::mem::transmute(nidx), core::mem::transmute(dwdata)) + SetUrlCacheHeaderData(nidx, dwdata) } #[inline] pub unsafe fn ShowClientAuthCerts(hwndparent: super::super::Foundation::HWND) -> u32 { windows_targets::link!("wininet.dll" "system" fn ShowClientAuthCerts(hwndparent : super::super::Foundation:: HWND) -> u32); - ShowClientAuthCerts(core::mem::transmute(hwndparent)) + ShowClientAuthCerts(hwndparent) } #[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn ShowSecurityInfo(hwndparent: super::super::Foundation::HWND, psecurityinfo: *const INTERNET_SECURITY_INFO) -> u32 { windows_targets::link!("wininet.dll" "system" fn ShowSecurityInfo(hwndparent : super::super::Foundation:: HWND, psecurityinfo : *const INTERNET_SECURITY_INFO) -> u32); - ShowSecurityInfo(core::mem::transmute(hwndparent), core::mem::transmute(psecurityinfo)) + ShowSecurityInfo(hwndparent, psecurityinfo) } #[inline] pub unsafe fn ShowX509EncodedCertificate(hwndparent: super::super::Foundation::HWND, lpcert: &[u8]) -> u32 { windows_targets::link!("wininet.dll" "system" fn ShowX509EncodedCertificate(hwndparent : super::super::Foundation:: HWND, lpcert : *const u8, cbcert : u32) -> u32); - ShowX509EncodedCertificate(core::mem::transmute(hwndparent), core::mem::transmute(lpcert.as_ptr()), lpcert.len().try_into().unwrap()) + ShowX509EncodedCertificate(hwndparent, core::mem::transmute(lpcert.as_ptr()), lpcert.len().try_into().unwrap()) } #[inline] pub unsafe fn UnlockUrlCacheEntryFile(lpszurlname: P0, dwreserved: Option) -> windows_core::Result<()> @@ -1904,7 +1904,7 @@ where #[inline] pub unsafe fn UnlockUrlCacheEntryStream(hurlcachestream: super::super::Foundation::HANDLE, reserved: Option) -> windows_core::Result<()> { windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, reserved : u32) -> super::super::Foundation:: BOOL); - UnlockUrlCacheEntryStream(core::mem::transmute(hurlcachestream), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + UnlockUrlCacheEntryStream(hurlcachestream, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UpdateUrlCacheContentPath(sznewpath: P0) -> super::super::Foundation::BOOL @@ -1917,12 +1917,12 @@ where #[inline] pub unsafe fn UrlCacheCheckEntriesExist(rgpwszurls: *const windows_core::PCWSTR, centries: u32, rgfexist: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheCheckEntriesExist(rgpwszurls : *const windows_core::PCWSTR, centries : u32, rgfexist : *mut super::super::Foundation:: BOOL) -> u32); - UrlCacheCheckEntriesExist(core::mem::transmute(rgpwszurls), core::mem::transmute(centries), core::mem::transmute(rgfexist)) + UrlCacheCheckEntriesExist(rgpwszurls, centries, core::mem::transmute(rgfexist)) } #[inline] pub unsafe fn UrlCacheCloseEntryHandle(hentryfile: *const core::ffi::c_void) { windows_targets::link!("wininet.dll" "system" fn UrlCacheCloseEntryHandle(hentryfile : *const core::ffi::c_void)); - UrlCacheCloseEntryHandle(core::mem::transmute(hentryfile)) + UrlCacheCloseEntryHandle(hentryfile) } #[inline] pub unsafe fn UrlCacheContainerSetEntryMaximumAge(pwszprefix: P0, dwentrymaxage: u32) -> u32 @@ -1930,7 +1930,7 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheContainerSetEntryMaximumAge(pwszprefix : windows_core::PCWSTR, dwentrymaxage : u32) -> u32); - UrlCacheContainerSetEntryMaximumAge(pwszprefix.param().abi(), core::mem::transmute(dwentrymaxage)) + UrlCacheContainerSetEntryMaximumAge(pwszprefix.param().abi(), dwentrymaxage) } #[inline] pub unsafe fn UrlCacheCreateContainer(pwszname: P0, pwszprefix: P1, pwszdirectory: P2, ulllimit: u64, dwoptions: u32) -> u32 @@ -1940,7 +1940,7 @@ where P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheCreateContainer(pwszname : windows_core::PCWSTR, pwszprefix : windows_core::PCWSTR, pwszdirectory : windows_core::PCWSTR, ulllimit : u64, dwoptions : u32) -> u32); - UrlCacheCreateContainer(pwszname.param().abi(), pwszprefix.param().abi(), pwszdirectory.param().abi(), core::mem::transmute(ulllimit), core::mem::transmute(dwoptions)) + UrlCacheCreateContainer(pwszname.param().abi(), pwszprefix.param().abi(), pwszdirectory.param().abi(), ulllimit, dwoptions) } #[inline] pub unsafe fn UrlCacheFindFirstEntry(pwszprefix: P0, dwflags: u32, dwfilter: u32, groupid: i64, pcacheentryinfo: *mut URLCACHE_ENTRY_INFO, phfind: *mut super::super::Foundation::HANDLE) -> u32 @@ -1948,12 +1948,12 @@ where P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheFindFirstEntry(pwszprefix : windows_core::PCWSTR, dwflags : u32, dwfilter : u32, groupid : i64, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO, phfind : *mut super::super::Foundation:: HANDLE) -> u32); - UrlCacheFindFirstEntry(pwszprefix.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwfilter), core::mem::transmute(groupid), core::mem::transmute(pcacheentryinfo), core::mem::transmute(phfind)) + UrlCacheFindFirstEntry(pwszprefix.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(pcacheentryinfo), core::mem::transmute(phfind)) } #[inline] pub unsafe fn UrlCacheFindNextEntry(hfind: super::super::Foundation::HANDLE, pcacheentryinfo: *mut URLCACHE_ENTRY_INFO) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheFindNextEntry(hfind : super::super::Foundation:: HANDLE, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO) -> u32); - UrlCacheFindNextEntry(core::mem::transmute(hfind), core::mem::transmute(pcacheentryinfo)) + UrlCacheFindNextEntry(hfind, core::mem::transmute(pcacheentryinfo)) } #[inline] pub unsafe fn UrlCacheFreeEntryInfo(pcacheentryinfo: *mut URLCACHE_ENTRY_INFO) { @@ -1963,7 +1963,7 @@ pub unsafe fn UrlCacheFreeEntryInfo(pcacheentryinfo: *mut URLCACHE_ENTRY_INFO) { #[inline] pub unsafe fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheFreeGlobalSpace(ulltargetsize : u64, dwfilter : u32) -> u32); - UrlCacheFreeGlobalSpace(core::mem::transmute(ulltargetsize), core::mem::transmute(dwfilter)) + UrlCacheFreeGlobalSpace(ulltargetsize, dwfilter) } #[inline] pub unsafe fn UrlCacheGetContentPaths(pppwszdirectories: *mut *mut windows_core::PWSTR, pcdirectories: *mut u32) -> u32 { @@ -1981,17 +1981,17 @@ where #[inline] pub unsafe fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: *mut u64, pulllimit: *mut u64) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheGetGlobalCacheSize(dwfilter : u32, pullsize : *mut u64, pulllimit : *mut u64) -> u32); - UrlCacheGetGlobalCacheSize(core::mem::transmute(dwfilter), core::mem::transmute(pullsize), core::mem::transmute(pulllimit)) + UrlCacheGetGlobalCacheSize(dwfilter, core::mem::transmute(pullsize), core::mem::transmute(pulllimit)) } #[inline] pub unsafe fn UrlCacheGetGlobalLimit(limittype: URL_CACHE_LIMIT_TYPE, pulllimit: *mut u64) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheGetGlobalLimit(limittype : URL_CACHE_LIMIT_TYPE, pulllimit : *mut u64) -> u32); - UrlCacheGetGlobalLimit(core::mem::transmute(limittype), core::mem::transmute(pulllimit)) + UrlCacheGetGlobalLimit(limittype, core::mem::transmute(pulllimit)) } #[inline] pub unsafe fn UrlCacheReadEntryStream(hurlcachestream: *const core::ffi::c_void, ulllocation: u64, pbuffer: *mut core::ffi::c_void, dwbufferlen: u32, pdwbufferlen: *mut u32) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheReadEntryStream(hurlcachestream : *const core::ffi::c_void, ulllocation : u64, pbuffer : *mut core::ffi::c_void, dwbufferlen : u32, pdwbufferlen : *mut u32) -> u32); - UrlCacheReadEntryStream(core::mem::transmute(hurlcachestream), core::mem::transmute(ulllocation), core::mem::transmute(pbuffer), core::mem::transmute(dwbufferlen), core::mem::transmute(pdwbufferlen)) + UrlCacheReadEntryStream(hurlcachestream, ulllocation, core::mem::transmute(pbuffer), dwbufferlen, core::mem::transmute(pdwbufferlen)) } #[inline] pub unsafe fn UrlCacheReloadSettings() -> u32 { @@ -2022,7 +2022,7 @@ pub unsafe fn UrlCacheServer() -> u32 { #[inline] pub unsafe fn UrlCacheSetGlobalLimit(limittype: URL_CACHE_LIMIT_TYPE, ulllimit: u64) -> u32 { windows_targets::link!("wininet.dll" "system" fn UrlCacheSetGlobalLimit(limittype : URL_CACHE_LIMIT_TYPE, ulllimit : u64) -> u32); - UrlCacheSetGlobalLimit(core::mem::transmute(limittype), core::mem::transmute(ulllimit)) + UrlCacheSetGlobalLimit(limittype, ulllimit) } #[inline] pub unsafe fn UrlCacheUpdateEntryExtraData(happcache: Option<*const core::ffi::c_void>, pcwszurl: P1, pbextradata: &[u8]) -> u32 @@ -3075,7 +3075,7 @@ impl IDialBranding { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmap(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBitmap)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -3136,7 +3136,7 @@ impl IDialEngine { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwzproperty.param().abi(), pwzvalue.param().abi(), core::mem::transmute(dwbufsize)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwzproperty.param().abi(), pwzvalue.param().abi(), dwbufsize).ok() } pub unsafe fn SetProperty(&self, pwzproperty: P0, pwzvalue: P1) -> windows_core::Result<()> where @@ -3242,7 +3242,7 @@ windows_core::imp::define_interface!(IDialEventSink, IDialEventSink_Vtbl, 0x2d86 windows_core::imp::interface_hierarchy!(IDialEventSink, windows_core::IUnknown); impl IDialEventSink { pub unsafe fn OnEvent(&self, dwevent: u32, dwstatus: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwevent), core::mem::transmute(dwstatus)).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dwevent, dwstatus).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs index 3b61ead7a6..e8a394462c 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -2,7 +2,7 @@ #[inline] pub unsafe fn AcceptEx(slistensocket: SOCKET, sacceptsocket: SOCKET, lpoutputbuffer: *mut core::ffi::c_void, dwreceivedatalength: u32, dwlocaladdresslength: u32, dwremoteaddresslength: u32, lpdwbytesreceived: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL { windows_targets::link!("mswsock.dll" "system" fn AcceptEx(slistensocket : SOCKET, sacceptsocket : SOCKET, lpoutputbuffer : *mut core::ffi::c_void, dwreceivedatalength : u32, dwlocaladdresslength : u32, dwremoteaddresslength : u32, lpdwbytesreceived : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - AcceptEx(core::mem::transmute(slistensocket), core::mem::transmute(sacceptsocket), core::mem::transmute(lpoutputbuffer), core::mem::transmute(dwreceivedatalength), core::mem::transmute(dwlocaladdresslength), core::mem::transmute(dwremoteaddresslength), core::mem::transmute(lpdwbytesreceived), core::mem::transmute(lpoverlapped)) + AcceptEx(slistensocket, sacceptsocket, core::mem::transmute(lpoutputbuffer), dwreceivedatalength, dwlocaladdresslength, dwremoteaddresslength, core::mem::transmute(lpdwbytesreceived), core::mem::transmute(lpoverlapped)) } #[inline] pub unsafe fn EnumProtocolsA(lpiprotocols: Option<*const i32>, lpprotocolbuffer: *mut core::ffi::c_void, lpdwbufferlength: *mut u32) -> i32 { @@ -32,7 +32,7 @@ pub unsafe fn FreeAddrInfoW(paddrinfo: Option<*const ADDRINFOW>) { #[inline] pub unsafe fn GetAcceptExSockaddrs(lpoutputbuffer: *const core::ffi::c_void, dwreceivedatalength: u32, dwlocaladdresslength: u32, dwremoteaddresslength: u32, localsockaddr: *mut *mut SOCKADDR, localsockaddrlength: *mut i32, remotesockaddr: *mut *mut SOCKADDR, remotesockaddrlength: *mut i32) { windows_targets::link!("mswsock.dll" "system" fn GetAcceptExSockaddrs(lpoutputbuffer : *const core::ffi::c_void, dwreceivedatalength : u32, dwlocaladdresslength : u32, dwremoteaddresslength : u32, localsockaddr : *mut *mut SOCKADDR, localsockaddrlength : *mut i32, remotesockaddr : *mut *mut SOCKADDR, remotesockaddrlength : *mut i32)); - GetAcceptExSockaddrs(core::mem::transmute(lpoutputbuffer), core::mem::transmute(dwreceivedatalength), core::mem::transmute(dwlocaladdresslength), core::mem::transmute(dwremoteaddresslength), core::mem::transmute(localsockaddr), core::mem::transmute(localsockaddrlength), core::mem::transmute(remotesockaddr), core::mem::transmute(remotesockaddrlength)) + GetAcceptExSockaddrs(lpoutputbuffer, dwreceivedatalength, dwlocaladdresslength, dwremoteaddresslength, core::mem::transmute(localsockaddr), core::mem::transmute(localsockaddrlength), core::mem::transmute(remotesockaddr), core::mem::transmute(remotesockaddrlength)) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -45,7 +45,7 @@ where GetAddrInfoExA( pname.param().abi(), pservicename.param().abi(), - core::mem::transmute(dwnamespace), + dwnamespace, core::mem::transmute(lpnspid.unwrap_or(core::mem::zeroed())), core::mem::transmute(hints.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppresult), @@ -58,13 +58,13 @@ where #[inline] pub unsafe fn GetAddrInfoExCancel(lphandle: *const super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn GetAddrInfoExCancel(lphandle : *const super::super::Foundation:: HANDLE) -> i32); - GetAddrInfoExCancel(core::mem::transmute(lphandle)) + GetAddrInfoExCancel(lphandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn GetAddrInfoExOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn GetAddrInfoExOverlappedResult(lpoverlapped : *const super::super::System::IO:: OVERLAPPED) -> i32); - GetAddrInfoExOverlappedResult(core::mem::transmute(lpoverlapped)) + GetAddrInfoExOverlappedResult(lpoverlapped) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -74,18 +74,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn GetAddrInfoExW(pname : windows_core::PCWSTR, pservicename : windows_core::PCWSTR, dwnamespace : u32, lpnspid : *const windows_core::GUID, hints : *const ADDRINFOEXW, ppresult : *mut *mut ADDRINFOEXW, timeout : *const TIMEVAL, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPLOOKUPSERVICE_COMPLETION_ROUTINE, lphandle : *mut super::super::Foundation:: HANDLE) -> i32); - GetAddrInfoExW( - pname.param().abi(), - pservicename.param().abi(), - core::mem::transmute(dwnamespace), - core::mem::transmute(lpnspid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(hints.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppresult), - core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lphandle.unwrap_or(core::mem::zeroed())), - ) + GetAddrInfoExW(pname.param().abi(), pservicename.param().abi(), dwnamespace, core::mem::transmute(lpnspid.unwrap_or(core::mem::zeroed())), core::mem::transmute(hints.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppresult), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetAddrInfoW(pnodename: P0, pservicename: P1, phints: Option<*const ADDRINFOW>, ppresult: *mut *mut ADDRINFOW) -> i32 @@ -102,7 +91,7 @@ where P2: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn GetAddressByNameA(dwnamespace : u32, lpservicetype : *const windows_core::GUID, lpservicename : windows_core::PCSTR, lpiprotocols : *const i32, dwresolution : u32, lpserviceasyncinfo : *const SERVICE_ASYNC_INFO, lpcsaddrbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpaliasbuffer : windows_core::PSTR, lpdwaliasbufferlength : *mut u32) -> i32); - GetAddressByNameA(core::mem::transmute(dwnamespace), core::mem::transmute(lpservicetype), lpservicename.param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwresolution), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcsaddrbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpaliasbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwaliasbufferlength)) + GetAddressByNameA(dwnamespace, lpservicetype, lpservicename.param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(core::mem::zeroed())), dwresolution, core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcsaddrbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpaliasbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwaliasbufferlength)) } #[inline] pub unsafe fn GetAddressByNameW(dwnamespace: u32, lpservicetype: *const windows_core::GUID, lpservicename: P2, lpiprotocols: Option<*const i32>, dwresolution: u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>, lpcsaddrbuffer: *mut core::ffi::c_void, lpdwbufferlength: *mut u32, lpaliasbuffer: Option, lpdwaliasbufferlength: *mut u32) -> i32 @@ -110,7 +99,7 @@ where P2: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn GetAddressByNameW(dwnamespace : u32, lpservicetype : *const windows_core::GUID, lpservicename : windows_core::PCWSTR, lpiprotocols : *const i32, dwresolution : u32, lpserviceasyncinfo : *const SERVICE_ASYNC_INFO, lpcsaddrbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpaliasbuffer : windows_core::PWSTR, lpdwaliasbufferlength : *mut u32) -> i32); - GetAddressByNameW(core::mem::transmute(dwnamespace), core::mem::transmute(lpservicetype), lpservicename.param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwresolution), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcsaddrbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpaliasbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwaliasbufferlength)) + GetAddressByNameW(dwnamespace, lpservicetype, lpservicename.param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(core::mem::zeroed())), dwresolution, core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcsaddrbuffer), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpaliasbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwaliasbufferlength)) } #[inline] pub unsafe fn GetHostNameW(name: &mut [u16]) -> i32 { @@ -120,17 +109,17 @@ pub unsafe fn GetHostNameW(name: &mut [u16]) -> i32 { #[inline] pub unsafe fn GetNameByTypeA(lpservicetype: *const windows_core::GUID, lpservicename: &mut [u8]) -> i32 { windows_targets::link!("mswsock.dll" "system" fn GetNameByTypeA(lpservicetype : *const windows_core::GUID, lpservicename : windows_core::PSTR, dwnamelength : u32) -> i32); - GetNameByTypeA(core::mem::transmute(lpservicetype), core::mem::transmute(lpservicename.as_ptr()), lpservicename.len().try_into().unwrap()) + GetNameByTypeA(lpservicetype, core::mem::transmute(lpservicename.as_ptr()), lpservicename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetNameByTypeW(lpservicetype: *const windows_core::GUID, lpservicename: windows_core::PWSTR, dwnamelength: u32) -> i32 { windows_targets::link!("mswsock.dll" "system" fn GetNameByTypeW(lpservicetype : *const windows_core::GUID, lpservicename : windows_core::PWSTR, dwnamelength : u32) -> i32); - GetNameByTypeW(core::mem::transmute(lpservicetype), core::mem::transmute(lpservicename), core::mem::transmute(dwnamelength)) + GetNameByTypeW(lpservicetype, core::mem::transmute(lpservicename), dwnamelength) } #[inline] pub unsafe fn GetNameInfoW(psockaddr: *const SOCKADDR, sockaddrlength: socklen_t, pnodebuffer: Option<&mut [u16]>, pservicebuffer: Option<&mut [u16]>, flags: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn GetNameInfoW(psockaddr : *const SOCKADDR, sockaddrlength : socklen_t, pnodebuffer : windows_core::PWSTR, nodebuffersize : u32, pservicebuffer : windows_core::PWSTR, servicebuffersize : u32, flags : i32) -> i32); - GetNameInfoW(core::mem::transmute(psockaddr), core::mem::transmute(sockaddrlength), core::mem::transmute(pnodebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pnodebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pservicebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pservicebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + GetNameInfoW(psockaddr, sockaddrlength, core::mem::transmute(pnodebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pnodebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pservicebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pservicebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn GetServiceA(dwnamespace: u32, lpguid: *const windows_core::GUID, lpservicename: P2, dwproperties: u32, lpbuffer: *mut core::ffi::c_void, lpdwbuffersize: *mut u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>) -> i32 @@ -138,7 +127,7 @@ where P2: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn GetServiceA(dwnamespace : u32, lpguid : *const windows_core::GUID, lpservicename : windows_core::PCSTR, dwproperties : u32, lpbuffer : *mut core::ffi::c_void, lpdwbuffersize : *mut u32, lpserviceasyncinfo : *const SERVICE_ASYNC_INFO) -> i32); - GetServiceA(core::mem::transmute(dwnamespace), core::mem::transmute(lpguid), lpservicename.param().abi(), core::mem::transmute(dwproperties), core::mem::transmute(lpbuffer), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed()))) + GetServiceA(dwnamespace, lpguid, lpservicename.param().abi(), dwproperties, core::mem::transmute(lpbuffer), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetServiceW(dwnamespace: u32, lpguid: *const windows_core::GUID, lpservicename: P2, dwproperties: u32, lpbuffer: *mut core::ffi::c_void, lpdwbuffersize: *mut u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>) -> i32 @@ -146,7 +135,7 @@ where P2: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn GetServiceW(dwnamespace : u32, lpguid : *const windows_core::GUID, lpservicename : windows_core::PCWSTR, dwproperties : u32, lpbuffer : *mut core::ffi::c_void, lpdwbuffersize : *mut u32, lpserviceasyncinfo : *const SERVICE_ASYNC_INFO) -> i32); - GetServiceW(core::mem::transmute(dwnamespace), core::mem::transmute(lpguid), lpservicename.param().abi(), core::mem::transmute(dwproperties), core::mem::transmute(lpbuffer), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed()))) + GetServiceW(dwnamespace, lpguid, lpservicename.param().abi(), dwproperties, core::mem::transmute(lpbuffer), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetTypeByNameA(lpservicename: P0, lpservicetype: *mut windows_core::GUID) -> i32 @@ -167,7 +156,7 @@ where #[inline] pub unsafe fn InetNtopW(family: i32, paddr: *const core::ffi::c_void, pstringbuf: &mut [u16]) -> windows_core::PCWSTR { windows_targets::link!("ws2_32.dll" "system" fn InetNtopW(family : i32, paddr : *const core::ffi::c_void, pstringbuf : windows_core::PWSTR, stringbufsize : usize) -> windows_core::PCWSTR); - InetNtopW(core::mem::transmute(family), core::mem::transmute(paddr), core::mem::transmute(pstringbuf.as_ptr()), pstringbuf.len().try_into().unwrap()) + InetNtopW(family, paddr, core::mem::transmute(pstringbuf.as_ptr()), pstringbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn InetPtonW(family: i32, pszaddrstring: P1, paddrbuf: *mut core::ffi::c_void) -> i32 @@ -175,31 +164,23 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn InetPtonW(family : i32, pszaddrstring : windows_core::PCWSTR, paddrbuf : *mut core::ffi::c_void) -> i32); - InetPtonW(core::mem::transmute(family), pszaddrstring.param().abi(), core::mem::transmute(paddrbuf)) + InetPtonW(family, pszaddrstring.param().abi(), core::mem::transmute(paddrbuf)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ProcessSocketNotifications(completionport: super::super::Foundation::HANDLE, registrationinfos: Option<&mut [SOCK_NOTIFY_REGISTRATION]>, timeoutms: u32, completionportentries: Option<&mut [super::super::System::IO::OVERLAPPED_ENTRY]>, receivedentrycount: Option<*mut u32>) -> u32 { windows_targets::link!("ws2_32.dll" "system" fn ProcessSocketNotifications(completionport : super::super::Foundation:: HANDLE, registrationcount : u32, registrationinfos : *mut SOCK_NOTIFY_REGISTRATION, timeoutms : u32, completioncount : u32, completionportentries : *mut super::super::System::IO:: OVERLAPPED_ENTRY, receivedentrycount : *mut u32) -> u32); - ProcessSocketNotifications( - core::mem::transmute(completionport), - registrationinfos.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(registrationinfos.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(timeoutms), - completionportentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(completionportentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(receivedentrycount.unwrap_or(core::mem::zeroed())), - ) + ProcessSocketNotifications(completionport, registrationinfos.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(registrationinfos.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), timeoutms, completionportentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(completionportentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(receivedentrycount.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlEthernetAddressToStringA(addr: *const DL_EUI48, s: &mut [u8; 18]) -> windows_core::PSTR { windows_targets::link!("ntdll.dll" "system" fn RtlEthernetAddressToStringA(addr : *const DL_EUI48, s : windows_core::PSTR) -> windows_core::PSTR); - RtlEthernetAddressToStringA(core::mem::transmute(addr), core::mem::transmute(s.as_ptr())) + RtlEthernetAddressToStringA(addr, core::mem::transmute(s.as_ptr())) } #[inline] pub unsafe fn RtlEthernetAddressToStringW(addr: *const DL_EUI48, s: &mut [u16; 18]) -> windows_core::PWSTR { windows_targets::link!("ntdll.dll" "system" fn RtlEthernetAddressToStringW(addr : *const DL_EUI48, s : windows_core::PWSTR) -> windows_core::PWSTR); - RtlEthernetAddressToStringW(core::mem::transmute(addr), core::mem::transmute(s.as_ptr())) + RtlEthernetAddressToStringW(addr, core::mem::transmute(s.as_ptr())) } #[inline] pub unsafe fn RtlEthernetStringToAddressA(s: P0, terminator: *mut windows_core::PCSTR, addr: *mut DL_EUI48) -> i32 @@ -220,22 +201,22 @@ where #[inline] pub unsafe fn RtlIpv4AddressToStringA(addr: *const IN_ADDR, s: &mut [u8; 16]) -> windows_core::PSTR { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringA(addr : *const IN_ADDR, s : windows_core::PSTR) -> windows_core::PSTR); - RtlIpv4AddressToStringA(core::mem::transmute(addr), core::mem::transmute(s.as_ptr())) + RtlIpv4AddressToStringA(addr, core::mem::transmute(s.as_ptr())) } #[inline] pub unsafe fn RtlIpv4AddressToStringExA(address: *const IN_ADDR, port: u16, addressstring: windows_core::PSTR, addressstringlength: *mut u32) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringExA(address : *const IN_ADDR, port : u16, addressstring : windows_core::PSTR, addressstringlength : *mut u32) -> i32); - RtlIpv4AddressToStringExA(core::mem::transmute(address), core::mem::transmute(port), core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) + RtlIpv4AddressToStringExA(address, port, core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) } #[inline] pub unsafe fn RtlIpv4AddressToStringExW(address: *const IN_ADDR, port: u16, addressstring: windows_core::PWSTR, addressstringlength: *mut u32) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringExW(address : *const IN_ADDR, port : u16, addressstring : windows_core::PWSTR, addressstringlength : *mut u32) -> i32); - RtlIpv4AddressToStringExW(core::mem::transmute(address), core::mem::transmute(port), core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) + RtlIpv4AddressToStringExW(address, port, core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) } #[inline] pub unsafe fn RtlIpv4AddressToStringW(addr: *const IN_ADDR, s: &mut [u16; 16]) -> windows_core::PWSTR { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringW(addr : *const IN_ADDR, s : windows_core::PWSTR) -> windows_core::PWSTR); - RtlIpv4AddressToStringW(core::mem::transmute(addr), core::mem::transmute(s.as_ptr())) + RtlIpv4AddressToStringW(addr, core::mem::transmute(s.as_ptr())) } #[inline] pub unsafe fn RtlIpv4StringToAddressA(s: P0, strict: bool, terminator: *mut windows_core::PCSTR, addr: *mut IN_ADDR) -> i32 @@ -243,7 +224,7 @@ where P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressA(s : windows_core::PCSTR, strict : bool, terminator : *mut windows_core::PCSTR, addr : *mut IN_ADDR) -> i32); - RtlIpv4StringToAddressA(s.param().abi(), core::mem::transmute(strict), core::mem::transmute(terminator), core::mem::transmute(addr)) + RtlIpv4StringToAddressA(s.param().abi(), strict, core::mem::transmute(terminator), core::mem::transmute(addr)) } #[inline] pub unsafe fn RtlIpv4StringToAddressExA(addressstring: P0, strict: bool, address: *mut IN_ADDR, port: *mut u16) -> i32 @@ -251,7 +232,7 @@ where P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExA(addressstring : windows_core::PCSTR, strict : bool, address : *mut IN_ADDR, port : *mut u16) -> i32); - RtlIpv4StringToAddressExA(addressstring.param().abi(), core::mem::transmute(strict), core::mem::transmute(address), core::mem::transmute(port)) + RtlIpv4StringToAddressExA(addressstring.param().abi(), strict, core::mem::transmute(address), core::mem::transmute(port)) } #[inline] pub unsafe fn RtlIpv4StringToAddressExW(addressstring: P0, strict: bool, address: *mut IN_ADDR, port: *mut u16) -> i32 @@ -259,7 +240,7 @@ where P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExW(addressstring : windows_core::PCWSTR, strict : bool, address : *mut IN_ADDR, port : *mut u16) -> i32); - RtlIpv4StringToAddressExW(addressstring.param().abi(), core::mem::transmute(strict), core::mem::transmute(address), core::mem::transmute(port)) + RtlIpv4StringToAddressExW(addressstring.param().abi(), strict, core::mem::transmute(address), core::mem::transmute(port)) } #[inline] pub unsafe fn RtlIpv4StringToAddressW(s: P0, strict: bool, terminator: *mut windows_core::PCWSTR, addr: *mut IN_ADDR) -> i32 @@ -267,27 +248,27 @@ where P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressW(s : windows_core::PCWSTR, strict : bool, terminator : *mut windows_core::PCWSTR, addr : *mut IN_ADDR) -> i32); - RtlIpv4StringToAddressW(s.param().abi(), core::mem::transmute(strict), core::mem::transmute(terminator), core::mem::transmute(addr)) + RtlIpv4StringToAddressW(s.param().abi(), strict, core::mem::transmute(terminator), core::mem::transmute(addr)) } #[inline] pub unsafe fn RtlIpv6AddressToStringA(addr: *const IN6_ADDR, s: &mut [u8; 46]) -> windows_core::PSTR { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringA(addr : *const IN6_ADDR, s : windows_core::PSTR) -> windows_core::PSTR); - RtlIpv6AddressToStringA(core::mem::transmute(addr), core::mem::transmute(s.as_ptr())) + RtlIpv6AddressToStringA(addr, core::mem::transmute(s.as_ptr())) } #[inline] pub unsafe fn RtlIpv6AddressToStringExA(address: *const IN6_ADDR, scopeid: u32, port: u16, addressstring: windows_core::PSTR, addressstringlength: *mut u32) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringExA(address : *const IN6_ADDR, scopeid : u32, port : u16, addressstring : windows_core::PSTR, addressstringlength : *mut u32) -> i32); - RtlIpv6AddressToStringExA(core::mem::transmute(address), core::mem::transmute(scopeid), core::mem::transmute(port), core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) + RtlIpv6AddressToStringExA(address, scopeid, port, core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) } #[inline] pub unsafe fn RtlIpv6AddressToStringExW(address: *const IN6_ADDR, scopeid: u32, port: u16, addressstring: windows_core::PWSTR, addressstringlength: *mut u32) -> i32 { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringExW(address : *const IN6_ADDR, scopeid : u32, port : u16, addressstring : windows_core::PWSTR, addressstringlength : *mut u32) -> i32); - RtlIpv6AddressToStringExW(core::mem::transmute(address), core::mem::transmute(scopeid), core::mem::transmute(port), core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) + RtlIpv6AddressToStringExW(address, scopeid, port, core::mem::transmute(addressstring), core::mem::transmute(addressstringlength)) } #[inline] pub unsafe fn RtlIpv6AddressToStringW(addr: *const IN6_ADDR, s: &mut [u16; 46]) -> windows_core::PWSTR { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringW(addr : *const IN6_ADDR, s : windows_core::PWSTR) -> windows_core::PWSTR); - RtlIpv6AddressToStringW(core::mem::transmute(addr), core::mem::transmute(s.as_ptr())) + RtlIpv6AddressToStringW(addr, core::mem::transmute(s.as_ptr())) } #[inline] pub unsafe fn RtlIpv6StringToAddressA(s: P0, terminator: *mut windows_core::PCSTR, addr: *mut IN6_ADDR) -> i32 @@ -333,10 +314,10 @@ where pname.param().abi(), pservicename.param().abi(), core::mem::transmute(paddresses.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwaddresscount), + dwaddresscount, core::mem::transmute(lpblob.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwflags), - core::mem::transmute(dwnamespace), + dwflags, + dwnamespace, core::mem::transmute(lpnspid.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), @@ -356,10 +337,10 @@ where pname.param().abi(), pservicename.param().abi(), core::mem::transmute(paddresses.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwaddresscount), + dwaddresscount, core::mem::transmute(lpblob.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwflags), - core::mem::transmute(dwnamespace), + dwflags, + dwnamespace, core::mem::transmute(lpnspid.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), @@ -371,13 +352,13 @@ where #[inline] pub unsafe fn SetServiceA(dwnamespace: u32, dwoperation: SET_SERVICE_OPERATION, dwflags: u32, lpserviceinfo: *const SERVICE_INFOA, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>, lpdwstatusflags: *mut u32) -> i32 { windows_targets::link!("mswsock.dll" "system" fn SetServiceA(dwnamespace : u32, dwoperation : SET_SERVICE_OPERATION, dwflags : u32, lpserviceinfo : *const SERVICE_INFOA, lpserviceasyncinfo : *const SERVICE_ASYNC_INFO, lpdwstatusflags : *mut u32) -> i32); - SetServiceA(core::mem::transmute(dwnamespace), core::mem::transmute(dwoperation), core::mem::transmute(dwflags), core::mem::transmute(lpserviceinfo), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstatusflags)) + SetServiceA(dwnamespace, dwoperation, dwflags, lpserviceinfo, core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstatusflags)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SetServiceW(dwnamespace: u32, dwoperation: SET_SERVICE_OPERATION, dwflags: u32, lpserviceinfo: *const SERVICE_INFOW, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>, lpdwstatusflags: *mut u32) -> i32 { windows_targets::link!("mswsock.dll" "system" fn SetServiceW(dwnamespace : u32, dwoperation : SET_SERVICE_OPERATION, dwflags : u32, lpserviceinfo : *const SERVICE_INFOW, lpserviceasyncinfo : *const SERVICE_ASYNC_INFO, lpdwstatusflags : *mut u32) -> i32); - SetServiceW(core::mem::transmute(dwnamespace), core::mem::transmute(dwoperation), core::mem::transmute(dwflags), core::mem::transmute(lpserviceinfo), core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstatusflags)) + SetServiceW(dwnamespace, dwoperation, dwflags, lpserviceinfo, core::mem::transmute(lpserviceasyncinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwstatusflags)) } #[inline] pub unsafe fn SetSocketMediaStreamingMode(value: bool) -> windows_core::Result<()> { @@ -388,40 +369,40 @@ pub unsafe fn SetSocketMediaStreamingMode(value: bool) -> windows_core::Result<( #[inline] pub unsafe fn TransmitFile(hsocket: SOCKET, hfile: super::super::Foundation::HANDLE, nnumberofbytestowrite: u32, nnumberofbytespersend: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lptransmitbuffers: Option<*const TRANSMIT_FILE_BUFFERS>, dwreserved: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mswsock.dll" "system" fn TransmitFile(hsocket : SOCKET, hfile : super::super::Foundation:: HANDLE, nnumberofbytestowrite : u32, nnumberofbytespersend : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lptransmitbuffers : *const TRANSMIT_FILE_BUFFERS, dwreserved : u32) -> super::super::Foundation:: BOOL); - TransmitFile(core::mem::transmute(hsocket), core::mem::transmute(hfile), core::mem::transmute(nnumberofbytestowrite), core::mem::transmute(nnumberofbytespersend), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptransmitbuffers.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreserved)) + TransmitFile(hsocket, hfile, nnumberofbytestowrite, nnumberofbytespersend, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptransmitbuffers.unwrap_or(core::mem::zeroed())), dwreserved) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WPUCompleteOverlappedRequest(s: SOCKET, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, dwerror: u32, cbtransferred: u32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WPUCompleteOverlappedRequest(s : SOCKET, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, dwerror : u32, cbtransferred : u32, lperrno : *mut i32) -> i32); - WPUCompleteOverlappedRequest(core::mem::transmute(s), core::mem::transmute(lpoverlapped), core::mem::transmute(dwerror), core::mem::transmute(cbtransferred), core::mem::transmute(lperrno)) + WPUCompleteOverlappedRequest(s, core::mem::transmute(lpoverlapped), dwerror, cbtransferred, core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSAAccept(s: SOCKET, addr: Option<*mut SOCKADDR>, addrlen: Option<*mut i32>, lpfncondition: Option, dwcallbackdata: Option) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn WSAAccept(s : SOCKET, addr : *mut SOCKADDR, addrlen : *mut i32, lpfncondition : LPCONDITIONPROC, dwcallbackdata : usize) -> SOCKET); - let result__ = WSAAccept(core::mem::transmute(s), core::mem::transmute(addr.unwrap_or(core::mem::zeroed())), core::mem::transmute(addrlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfncondition.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcallbackdata.unwrap_or(core::mem::zeroed()))); + let result__ = WSAAccept(s, core::mem::transmute(addr.unwrap_or(core::mem::zeroed())), core::mem::transmute(addrlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfncondition.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcallbackdata.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAddressToStringA(lpsaaddress: *const SOCKADDR, dwaddresslength: u32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOA>, lpszaddressstring: windows_core::PSTR, lpdwaddressstringlength: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAAddressToStringA(lpsaaddress : *const SOCKADDR, dwaddresslength : u32, lpprotocolinfo : *const WSAPROTOCOL_INFOA, lpszaddressstring : windows_core::PSTR, lpdwaddressstringlength : *mut u32) -> i32); - WSAAddressToStringA(core::mem::transmute(lpsaaddress), core::mem::transmute(dwaddresslength), core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpszaddressstring), core::mem::transmute(lpdwaddressstringlength)) + WSAAddressToStringA(lpsaaddress, dwaddresslength, core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpszaddressstring), core::mem::transmute(lpdwaddressstringlength)) } #[inline] pub unsafe fn WSAAddressToStringW(lpsaaddress: *const SOCKADDR, dwaddresslength: u32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOW>, lpszaddressstring: windows_core::PWSTR, lpdwaddressstringlength: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAAddressToStringW(lpsaaddress : *const SOCKADDR, dwaddresslength : u32, lpprotocolinfo : *const WSAPROTOCOL_INFOW, lpszaddressstring : windows_core::PWSTR, lpdwaddressstringlength : *mut u32) -> i32); - WSAAddressToStringW(core::mem::transmute(lpsaaddress), core::mem::transmute(dwaddresslength), core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpszaddressstring), core::mem::transmute(lpdwaddressstringlength)) + WSAAddressToStringW(lpsaaddress, dwaddresslength, core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpszaddressstring), core::mem::transmute(lpdwaddressstringlength)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSAAdvertiseProvider(puuidproviderid: *const windows_core::GUID, pnspv2routine: *const NSPV2_ROUTINE) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAAdvertiseProvider(puuidproviderid : *const windows_core::GUID, pnspv2routine : *const NSPV2_ROUTINE) -> i32); - WSAAdvertiseProvider(core::mem::transmute(puuidproviderid), core::mem::transmute(pnspv2routine)) + WSAAdvertiseProvider(puuidproviderid, pnspv2routine) } #[inline] pub unsafe fn WSAAsyncGetHostByAddr(hwnd: super::super::Foundation::HWND, wmsg: u32, addr: &[u8], r#type: i32, buf: &mut [u8]) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncGetHostByAddr(hwnd : super::super::Foundation:: HWND, wmsg : u32, addr : windows_core::PCSTR, len : i32, r#type : i32, buf : windows_core::PSTR, buflen : i32) -> super::super::Foundation:: HANDLE); - let result__ = WSAAsyncGetHostByAddr(core::mem::transmute(hwnd), core::mem::transmute(wmsg), core::mem::transmute(addr.as_ptr()), addr.len().try_into().unwrap(), core::mem::transmute(r#type), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetHostByAddr(hwnd, wmsg, core::mem::transmute(addr.as_ptr()), addr.len().try_into().unwrap(), r#type, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -430,7 +411,7 @@ where P2: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncGetHostByName(hwnd : super::super::Foundation:: HWND, wmsg : u32, name : windows_core::PCSTR, buf : windows_core::PSTR, buflen : i32) -> super::super::Foundation:: HANDLE); - let result__ = WSAAsyncGetHostByName(core::mem::transmute(hwnd), core::mem::transmute(wmsg), name.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetHostByName(hwnd, wmsg, name.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -439,13 +420,13 @@ where P2: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncGetProtoByName(hwnd : super::super::Foundation:: HWND, wmsg : u32, name : windows_core::PCSTR, buf : windows_core::PSTR, buflen : i32) -> super::super::Foundation:: HANDLE); - let result__ = WSAAsyncGetProtoByName(core::mem::transmute(hwnd), core::mem::transmute(wmsg), name.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetProtoByName(hwnd, wmsg, name.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncGetProtoByNumber(hwnd: super::super::Foundation::HWND, wmsg: u32, number: i32, buf: &mut [u8]) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncGetProtoByNumber(hwnd : super::super::Foundation:: HWND, wmsg : u32, number : i32, buf : windows_core::PSTR, buflen : i32) -> super::super::Foundation:: HANDLE); - let result__ = WSAAsyncGetProtoByNumber(core::mem::transmute(hwnd), core::mem::transmute(wmsg), core::mem::transmute(number), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetProtoByNumber(hwnd, wmsg, number, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -455,7 +436,7 @@ where P3: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncGetServByName(hwnd : super::super::Foundation:: HWND, wmsg : u32, name : windows_core::PCSTR, proto : windows_core::PCSTR, buf : windows_core::PSTR, buflen : i32) -> super::super::Foundation:: HANDLE); - let result__ = WSAAsyncGetServByName(core::mem::transmute(hwnd), core::mem::transmute(wmsg), name.param().abi(), proto.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetServByName(hwnd, wmsg, name.param().abi(), proto.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -464,18 +445,18 @@ where P3: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncGetServByPort(hwnd : super::super::Foundation:: HWND, wmsg : u32, port : i32, proto : windows_core::PCSTR, buf : windows_core::PSTR, buflen : i32) -> super::super::Foundation:: HANDLE); - let result__ = WSAAsyncGetServByPort(core::mem::transmute(hwnd), core::mem::transmute(wmsg), core::mem::transmute(port), proto.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetServByPort(hwnd, wmsg, port, proto.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncSelect(s: SOCKET, hwnd: super::super::Foundation::HWND, wmsg: u32, levent: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncSelect(s : SOCKET, hwnd : super::super::Foundation:: HWND, wmsg : u32, levent : i32) -> i32); - WSAAsyncSelect(core::mem::transmute(s), core::mem::transmute(hwnd), core::mem::transmute(wmsg), core::mem::transmute(levent)) + WSAAsyncSelect(s, hwnd, wmsg, levent) } #[inline] pub unsafe fn WSACancelAsyncRequest(hasynctaskhandle: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSACancelAsyncRequest(hasynctaskhandle : super::super::Foundation:: HANDLE) -> i32); - WSACancelAsyncRequest(core::mem::transmute(hasynctaskhandle)) + WSACancelAsyncRequest(hasynctaskhandle) } #[inline] pub unsafe fn WSACancelBlockingCall() -> i32 { @@ -490,18 +471,18 @@ pub unsafe fn WSACleanup() -> i32 { #[inline] pub unsafe fn WSACloseEvent(hevent: WSAEVENT) -> windows_core::Result<()> { windows_targets::link!("ws2_32.dll" "system" fn WSACloseEvent(hevent : WSAEVENT) -> super::super::Foundation:: BOOL); - WSACloseEvent(core::mem::transmute(hevent)).ok() + WSACloseEvent(hevent).ok() } #[inline] pub unsafe fn WSAConnect(s: SOCKET, name: *const SOCKADDR, namelen: i32, lpcallerdata: Option<*const WSABUF>, lpcalleedata: Option<*mut WSABUF>, lpsqos: Option<*const QOS>, lpgqos: Option<*const QOS>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAConnect(s : SOCKET, name : *const SOCKADDR, namelen : i32, lpcallerdata : *const WSABUF, lpcalleedata : *mut WSABUF, lpsqos : *const QOS, lpgqos : *const QOS) -> i32); - WSAConnect(core::mem::transmute(s), core::mem::transmute(name), core::mem::transmute(namelen), core::mem::transmute(lpcallerdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcalleedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsqos.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpgqos.unwrap_or(core::mem::zeroed()))) + WSAConnect(s, name, namelen, core::mem::transmute(lpcallerdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcalleedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsqos.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpgqos.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAConnectByList(s: SOCKET, socketaddress: *const SOCKET_ADDRESS_LIST, localaddresslength: Option<*mut u32>, localaddress: Option<*mut SOCKADDR>, remoteaddresslength: Option<*mut u32>, remoteaddress: Option<*mut SOCKADDR>, timeout: Option<*const TIMEVAL>, reserved: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByList(s : SOCKET, socketaddress : *const SOCKET_ADDRESS_LIST, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WSAConnectByList(core::mem::transmute(s), core::mem::transmute(socketaddress), core::mem::transmute(localaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(localaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + WSAConnectByList(s, socketaddress, core::mem::transmute(localaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(localaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -511,18 +492,7 @@ where P2: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByNameA(s : SOCKET, nodename : windows_core::PCSTR, servicename : windows_core::PCSTR, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WSAConnectByNameA( - core::mem::transmute(s), - nodename.param().abi(), - servicename.param().abi(), - core::mem::transmute(localaddresslength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(localaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(remoteaddresslength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(remoteaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), - ) - .ok() + WSAConnectByNameA(s, nodename.param().abi(), servicename.param().abi(), core::mem::transmute(localaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(localaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -532,18 +502,7 @@ where P2: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByNameW(s : SOCKET, nodename : windows_core::PCWSTR, servicename : windows_core::PCWSTR, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WSAConnectByNameW( - core::mem::transmute(s), - nodename.param().abi(), - servicename.param().abi(), - core::mem::transmute(localaddresslength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(localaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(remoteaddresslength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(remoteaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), - ) - .ok() + WSAConnectByNameW(s, nodename.param().abi(), servicename.param().abi(), core::mem::transmute(localaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(localaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddresslength.unwrap_or(core::mem::zeroed())), core::mem::transmute(remoteaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WSACreateEvent() -> windows_core::Result { @@ -555,17 +514,17 @@ pub unsafe fn WSACreateEvent() -> windows_core::Result { #[inline] pub unsafe fn WSADeleteSocketPeerTargetName(socket: SOCKET, peeraddr: *const SOCKADDR, peeraddrlen: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: Option) -> i32 { windows_targets::link!("fwpuclnt.dll" "system" fn WSADeleteSocketPeerTargetName(socket : SOCKET, peeraddr : *const SOCKADDR, peeraddrlen : u32, overlapped : *const super::super::System::IO:: OVERLAPPED, completionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSADeleteSocketPeerTargetName(core::mem::transmute(socket), core::mem::transmute(peeraddr), core::mem::transmute(peeraddrlen), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) + WSADeleteSocketPeerTargetName(socket, peeraddr, peeraddrlen, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSADuplicateSocketA(s: SOCKET, dwprocessid: u32, lpprotocolinfo: *mut WSAPROTOCOL_INFOA) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSADuplicateSocketA(s : SOCKET, dwprocessid : u32, lpprotocolinfo : *mut WSAPROTOCOL_INFOA) -> i32); - WSADuplicateSocketA(core::mem::transmute(s), core::mem::transmute(dwprocessid), core::mem::transmute(lpprotocolinfo)) + WSADuplicateSocketA(s, dwprocessid, core::mem::transmute(lpprotocolinfo)) } #[inline] pub unsafe fn WSADuplicateSocketW(s: SOCKET, dwprocessid: u32, lpprotocolinfo: *mut WSAPROTOCOL_INFOW) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSADuplicateSocketW(s : SOCKET, dwprocessid : u32, lpprotocolinfo : *mut WSAPROTOCOL_INFOW) -> i32); - WSADuplicateSocketW(core::mem::transmute(s), core::mem::transmute(dwprocessid), core::mem::transmute(lpprotocolinfo)) + WSADuplicateSocketW(s, dwprocessid, core::mem::transmute(lpprotocolinfo)) } #[inline] pub unsafe fn WSAEnumNameSpaceProvidersA(lpdwbufferlength: *mut u32, lpnspbuffer: *mut WSANAMESPACE_INFOA) -> i32 { @@ -592,7 +551,7 @@ pub unsafe fn WSAEnumNameSpaceProvidersW(lpdwbufferlength: *mut u32, lpnspbuffer #[inline] pub unsafe fn WSAEnumNetworkEvents(s: SOCKET, heventobject: WSAEVENT, lpnetworkevents: *mut WSANETWORKEVENTS) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAEnumNetworkEvents(s : SOCKET, heventobject : WSAEVENT, lpnetworkevents : *mut WSANETWORKEVENTS) -> i32); - WSAEnumNetworkEvents(core::mem::transmute(s), core::mem::transmute(heventobject), core::mem::transmute(lpnetworkevents)) + WSAEnumNetworkEvents(s, heventobject, core::mem::transmute(lpnetworkevents)) } #[inline] pub unsafe fn WSAEnumProtocolsA(lpiprotocols: Option<*const i32>, lpprotocolbuffer: Option<*mut WSAPROTOCOL_INFOA>, lpdwbufferlength: *mut u32) -> i32 { @@ -607,7 +566,7 @@ pub unsafe fn WSAEnumProtocolsW(lpiprotocols: Option<*const i32>, lpprotocolbuff #[inline] pub unsafe fn WSAEventSelect(s: SOCKET, heventobject: Option, lnetworkevents: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAEventSelect(s : SOCKET, heventobject : WSAEVENT, lnetworkevents : i32) -> i32); - WSAEventSelect(core::mem::transmute(s), core::mem::transmute(heventobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(lnetworkevents)) + WSAEventSelect(s, core::mem::transmute(heventobject.unwrap_or(core::mem::zeroed())), lnetworkevents) } #[inline] pub unsafe fn WSAGetLastError() -> WSA_ERROR { @@ -618,63 +577,63 @@ pub unsafe fn WSAGetLastError() -> WSA_ERROR { #[inline] pub unsafe fn WSAGetOverlappedResult(s: SOCKET, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcbtransfer: *mut u32, fwait: bool, lpdwflags: *mut u32) -> windows_core::Result<()> { windows_targets::link!("ws2_32.dll" "system" fn WSAGetOverlappedResult(s : SOCKET, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcbtransfer : *mut u32, fwait : super::super::Foundation:: BOOL, lpdwflags : *mut u32) -> super::super::Foundation:: BOOL); - WSAGetOverlappedResult(core::mem::transmute(s), core::mem::transmute(lpoverlapped), core::mem::transmute(lpcbtransfer), fwait.into(), core::mem::transmute(lpdwflags)).ok() + WSAGetOverlappedResult(s, lpoverlapped, core::mem::transmute(lpcbtransfer), fwait.into(), core::mem::transmute(lpdwflags)).ok() } #[inline] pub unsafe fn WSAGetQOSByName(s: SOCKET, lpqosname: *const WSABUF, lpqos: *mut QOS) -> windows_core::Result<()> { windows_targets::link!("ws2_32.dll" "system" fn WSAGetQOSByName(s : SOCKET, lpqosname : *const WSABUF, lpqos : *mut QOS) -> super::super::Foundation:: BOOL); - WSAGetQOSByName(core::mem::transmute(s), core::mem::transmute(lpqosname), core::mem::transmute(lpqos)).ok() + WSAGetQOSByName(s, lpqosname, core::mem::transmute(lpqos)).ok() } #[inline] pub unsafe fn WSAGetServiceClassInfoA(lpproviderid: *const windows_core::GUID, lpserviceclassid: *const windows_core::GUID, lpdwbufsize: *mut u32, lpserviceclassinfo: *mut WSASERVICECLASSINFOA) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAGetServiceClassInfoA(lpproviderid : *const windows_core::GUID, lpserviceclassid : *const windows_core::GUID, lpdwbufsize : *mut u32, lpserviceclassinfo : *mut WSASERVICECLASSINFOA) -> i32); - WSAGetServiceClassInfoA(core::mem::transmute(lpproviderid), core::mem::transmute(lpserviceclassid), core::mem::transmute(lpdwbufsize), core::mem::transmute(lpserviceclassinfo)) + WSAGetServiceClassInfoA(lpproviderid, lpserviceclassid, core::mem::transmute(lpdwbufsize), core::mem::transmute(lpserviceclassinfo)) } #[inline] pub unsafe fn WSAGetServiceClassInfoW(lpproviderid: *const windows_core::GUID, lpserviceclassid: *const windows_core::GUID, lpdwbufsize: *mut u32, lpserviceclassinfo: *mut WSASERVICECLASSINFOW) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAGetServiceClassInfoW(lpproviderid : *const windows_core::GUID, lpserviceclassid : *const windows_core::GUID, lpdwbufsize : *mut u32, lpserviceclassinfo : *mut WSASERVICECLASSINFOW) -> i32); - WSAGetServiceClassInfoW(core::mem::transmute(lpproviderid), core::mem::transmute(lpserviceclassid), core::mem::transmute(lpdwbufsize), core::mem::transmute(lpserviceclassinfo)) + WSAGetServiceClassInfoW(lpproviderid, lpserviceclassid, core::mem::transmute(lpdwbufsize), core::mem::transmute(lpserviceclassinfo)) } #[inline] pub unsafe fn WSAGetServiceClassNameByClassIdA(lpserviceclassid: *const windows_core::GUID, lpszserviceclassname: windows_core::PSTR, lpdwbufferlength: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAGetServiceClassNameByClassIdA(lpserviceclassid : *const windows_core::GUID, lpszserviceclassname : windows_core::PSTR, lpdwbufferlength : *mut u32) -> i32); - WSAGetServiceClassNameByClassIdA(core::mem::transmute(lpserviceclassid), core::mem::transmute(lpszserviceclassname), core::mem::transmute(lpdwbufferlength)) + WSAGetServiceClassNameByClassIdA(lpserviceclassid, core::mem::transmute(lpszserviceclassname), core::mem::transmute(lpdwbufferlength)) } #[inline] pub unsafe fn WSAGetServiceClassNameByClassIdW(lpserviceclassid: *const windows_core::GUID, lpszserviceclassname: windows_core::PWSTR, lpdwbufferlength: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAGetServiceClassNameByClassIdW(lpserviceclassid : *const windows_core::GUID, lpszserviceclassname : windows_core::PWSTR, lpdwbufferlength : *mut u32) -> i32); - WSAGetServiceClassNameByClassIdW(core::mem::transmute(lpserviceclassid), core::mem::transmute(lpszserviceclassname), core::mem::transmute(lpdwbufferlength)) + WSAGetServiceClassNameByClassIdW(lpserviceclassid, core::mem::transmute(lpszserviceclassname), core::mem::transmute(lpdwbufferlength)) } #[inline] pub unsafe fn WSAHtonl(s: SOCKET, hostlong: u32, lpnetlong: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAHtonl(s : SOCKET, hostlong : u32, lpnetlong : *mut u32) -> i32); - WSAHtonl(core::mem::transmute(s), core::mem::transmute(hostlong), core::mem::transmute(lpnetlong)) + WSAHtonl(s, hostlong, core::mem::transmute(lpnetlong)) } #[inline] pub unsafe fn WSAHtons(s: SOCKET, hostshort: u16, lpnetshort: *mut u16) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAHtons(s : SOCKET, hostshort : u16, lpnetshort : *mut u16) -> i32); - WSAHtons(core::mem::transmute(s), core::mem::transmute(hostshort), core::mem::transmute(lpnetshort)) + WSAHtons(s, hostshort, core::mem::transmute(lpnetshort)) } #[inline] pub unsafe fn WSAImpersonateSocketPeer(socket: SOCKET, peeraddr: Option<*const SOCKADDR>, peeraddrlen: u32) -> i32 { windows_targets::link!("fwpuclnt.dll" "system" fn WSAImpersonateSocketPeer(socket : SOCKET, peeraddr : *const SOCKADDR, peeraddrlen : u32) -> i32); - WSAImpersonateSocketPeer(core::mem::transmute(socket), core::mem::transmute(peeraddr.unwrap_or(core::mem::zeroed())), core::mem::transmute(peeraddrlen)) + WSAImpersonateSocketPeer(socket, core::mem::transmute(peeraddr.unwrap_or(core::mem::zeroed())), peeraddrlen) } #[inline] pub unsafe fn WSAInstallServiceClassA(lpserviceclassinfo: *const WSASERVICECLASSINFOA) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAInstallServiceClassA(lpserviceclassinfo : *const WSASERVICECLASSINFOA) -> i32); - WSAInstallServiceClassA(core::mem::transmute(lpserviceclassinfo)) + WSAInstallServiceClassA(lpserviceclassinfo) } #[inline] pub unsafe fn WSAInstallServiceClassW(lpserviceclassinfo: *const WSASERVICECLASSINFOW) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAInstallServiceClassW(lpserviceclassinfo : *const WSASERVICECLASSINFOW) -> i32); - WSAInstallServiceClassW(core::mem::transmute(lpserviceclassinfo)) + WSAInstallServiceClassW(lpserviceclassinfo) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAIoctl(s: SOCKET, dwiocontrolcode: u32, lpvinbuffer: Option<*const core::ffi::c_void>, cbinbuffer: u32, lpvoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffer: u32, lpcbbytesreturned: *mut u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAIoctl(s : SOCKET, dwiocontrolcode : u32, lpvinbuffer : *const core::ffi::c_void, cbinbuffer : u32, lpvoutbuffer : *mut core::ffi::c_void, cboutbuffer : u32, lpcbbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSAIoctl(core::mem::transmute(s), core::mem::transmute(dwiocontrolcode), core::mem::transmute(lpvinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffer), core::mem::transmute(lpvoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffer), core::mem::transmute(lpcbbytesreturned), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) + WSAIoctl(s, dwiocontrolcode, core::mem::transmute(lpvinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffer, core::mem::transmute(lpvoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffer, core::mem::transmute(lpcbbytesreturned), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSAIsBlocking() -> windows_core::Result<()> { @@ -684,63 +643,63 @@ pub unsafe fn WSAIsBlocking() -> windows_core::Result<()> { #[inline] pub unsafe fn WSAJoinLeaf(s: SOCKET, name: *const SOCKADDR, namelen: i32, lpcallerdata: Option<*const WSABUF>, lpcalleedata: Option<*mut WSABUF>, lpsqos: Option<*const QOS>, lpgqos: Option<*const QOS>, dwflags: u32) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn WSAJoinLeaf(s : SOCKET, name : *const SOCKADDR, namelen : i32, lpcallerdata : *const WSABUF, lpcalleedata : *mut WSABUF, lpsqos : *const QOS, lpgqos : *const QOS, dwflags : u32) -> SOCKET); - let result__ = WSAJoinLeaf(core::mem::transmute(s), core::mem::transmute(name), core::mem::transmute(namelen), core::mem::transmute(lpcallerdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcalleedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsqos.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpgqos.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)); + let result__ = WSAJoinLeaf(s, name, namelen, core::mem::transmute(lpcallerdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcalleedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsqos.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpgqos.unwrap_or(core::mem::zeroed())), dwflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSALookupServiceBeginA(lpqsrestrictions: *const WSAQUERYSETA, dwcontrolflags: u32, lphlookup: *mut super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceBeginA(lpqsrestrictions : *const WSAQUERYSETA, dwcontrolflags : u32, lphlookup : *mut super::super::Foundation:: HANDLE) -> i32); - WSALookupServiceBeginA(core::mem::transmute(lpqsrestrictions), core::mem::transmute(dwcontrolflags), core::mem::transmute(lphlookup)) + WSALookupServiceBeginA(lpqsrestrictions, dwcontrolflags, core::mem::transmute(lphlookup)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSALookupServiceBeginW(lpqsrestrictions: *const WSAQUERYSETW, dwcontrolflags: u32, lphlookup: *mut super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceBeginW(lpqsrestrictions : *const WSAQUERYSETW, dwcontrolflags : u32, lphlookup : *mut super::super::Foundation:: HANDLE) -> i32); - WSALookupServiceBeginW(core::mem::transmute(lpqsrestrictions), core::mem::transmute(dwcontrolflags), core::mem::transmute(lphlookup)) + WSALookupServiceBeginW(lpqsrestrictions, dwcontrolflags, core::mem::transmute(lphlookup)) } #[inline] pub unsafe fn WSALookupServiceEnd(hlookup: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceEnd(hlookup : super::super::Foundation:: HANDLE) -> i32); - WSALookupServiceEnd(core::mem::transmute(hlookup)) + WSALookupServiceEnd(hlookup) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSALookupServiceNextA(hlookup: super::super::Foundation::HANDLE, dwcontrolflags: u32, lpdwbufferlength: *mut u32, lpqsresults: *mut WSAQUERYSETA) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceNextA(hlookup : super::super::Foundation:: HANDLE, dwcontrolflags : u32, lpdwbufferlength : *mut u32, lpqsresults : *mut WSAQUERYSETA) -> i32); - WSALookupServiceNextA(core::mem::transmute(hlookup), core::mem::transmute(dwcontrolflags), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpqsresults)) + WSALookupServiceNextA(hlookup, dwcontrolflags, core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpqsresults)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSALookupServiceNextW(hlookup: super::super::Foundation::HANDLE, dwcontrolflags: u32, lpdwbufferlength: *mut u32, lpqsresults: Option<*mut WSAQUERYSETW>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceNextW(hlookup : super::super::Foundation:: HANDLE, dwcontrolflags : u32, lpdwbufferlength : *mut u32, lpqsresults : *mut WSAQUERYSETW) -> i32); - WSALookupServiceNextW(core::mem::transmute(hlookup), core::mem::transmute(dwcontrolflags), core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpqsresults.unwrap_or(core::mem::zeroed()))) + WSALookupServiceNextW(hlookup, dwcontrolflags, core::mem::transmute(lpdwbufferlength), core::mem::transmute(lpqsresults.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSANSPIoctl(hlookup: super::super::Foundation::HANDLE, dwcontrolcode: u32, lpvinbuffer: Option<*const core::ffi::c_void>, cbinbuffer: u32, lpvoutbuffer: Option<*mut core::ffi::c_void>, cboutbuffer: u32, lpcbbytesreturned: *mut u32, lpcompletion: Option<*const WSACOMPLETION>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSANSPIoctl(hlookup : super::super::Foundation:: HANDLE, dwcontrolcode : u32, lpvinbuffer : *const core::ffi::c_void, cbinbuffer : u32, lpvoutbuffer : *mut core::ffi::c_void, cboutbuffer : u32, lpcbbytesreturned : *mut u32, lpcompletion : *const WSACOMPLETION) -> i32); - WSANSPIoctl(core::mem::transmute(hlookup), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpvinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinbuffer), core::mem::transmute(lpvoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuffer), core::mem::transmute(lpcbbytesreturned), core::mem::transmute(lpcompletion.unwrap_or(core::mem::zeroed()))) + WSANSPIoctl(hlookup, dwcontrolcode, core::mem::transmute(lpvinbuffer.unwrap_or(core::mem::zeroed())), cbinbuffer, core::mem::transmute(lpvoutbuffer.unwrap_or(core::mem::zeroed())), cboutbuffer, core::mem::transmute(lpcbbytesreturned), core::mem::transmute(lpcompletion.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSANtohl(s: SOCKET, netlong: u32, lphostlong: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSANtohl(s : SOCKET, netlong : u32, lphostlong : *mut u32) -> i32); - WSANtohl(core::mem::transmute(s), core::mem::transmute(netlong), core::mem::transmute(lphostlong)) + WSANtohl(s, netlong, core::mem::transmute(lphostlong)) } #[inline] pub unsafe fn WSANtohs(s: SOCKET, netshort: u16, lphostshort: *mut u16) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSANtohs(s : SOCKET, netshort : u16, lphostshort : *mut u16) -> i32); - WSANtohs(core::mem::transmute(s), core::mem::transmute(netshort), core::mem::transmute(lphostshort)) + WSANtohs(s, netshort, core::mem::transmute(lphostshort)) } #[inline] pub unsafe fn WSAPoll(fdarray: *mut WSAPOLLFD, fds: u32, timeout: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAPoll(fdarray : *mut WSAPOLLFD, fds : u32, timeout : i32) -> i32); - WSAPoll(core::mem::transmute(fdarray), core::mem::transmute(fds), core::mem::transmute(timeout)) + WSAPoll(core::mem::transmute(fdarray), fds, timeout) } #[inline] pub unsafe fn WSAProviderCompleteAsyncCall(hasynccall: super::super::Foundation::HANDLE, iretcode: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAProviderCompleteAsyncCall(hasynccall : super::super::Foundation:: HANDLE, iretcode : i32) -> i32); - WSAProviderCompleteAsyncCall(core::mem::transmute(hasynccall), core::mem::transmute(iretcode)) + WSAProviderCompleteAsyncCall(hasynccall, iretcode) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -752,39 +711,39 @@ pub unsafe fn WSAProviderConfigChange(lpnotificationhandle: *mut super::super::F #[inline] pub unsafe fn WSAQuerySocketSecurity(socket: SOCKET, securityquerytemplate: Option<*const SOCKET_SECURITY_QUERY_TEMPLATE>, securityquerytemplatelen: u32, securityqueryinfo: Option<*mut SOCKET_SECURITY_QUERY_INFO>, securityqueryinfolen: *mut u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: Option) -> i32 { windows_targets::link!("fwpuclnt.dll" "system" fn WSAQuerySocketSecurity(socket : SOCKET, securityquerytemplate : *const SOCKET_SECURITY_QUERY_TEMPLATE, securityquerytemplatelen : u32, securityqueryinfo : *mut SOCKET_SECURITY_QUERY_INFO, securityqueryinfolen : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED, completionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSAQuerySocketSecurity(core::mem::transmute(socket), core::mem::transmute(securityquerytemplate.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityquerytemplatelen), core::mem::transmute(securityqueryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityqueryinfolen), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) + WSAQuerySocketSecurity(socket, core::mem::transmute(securityquerytemplate.unwrap_or(core::mem::zeroed())), securityquerytemplatelen, core::mem::transmute(securityqueryinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(securityqueryinfolen), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSARecv(s: SOCKET, lpbuffers: &[WSABUF], lpnumberofbytesrecvd: Option<*mut u32>, lpflags: *mut u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSARecv(s : SOCKET, lpbuffers : *const WSABUF, dwbuffercount : u32, lpnumberofbytesrecvd : *mut u32, lpflags : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSARecv(core::mem::transmute(s), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpflags), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) + WSARecv(s, core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpflags), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSARecvDisconnect(s: SOCKET, lpinbounddisconnectdata: Option<*const WSABUF>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSARecvDisconnect(s : SOCKET, lpinbounddisconnectdata : *const WSABUF) -> i32); - WSARecvDisconnect(core::mem::transmute(s), core::mem::transmute(lpinbounddisconnectdata.unwrap_or(core::mem::zeroed()))) + WSARecvDisconnect(s, core::mem::transmute(lpinbounddisconnectdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSARecvEx(s: SOCKET, buf: &mut [u8], flags: *mut i32) -> i32 { windows_targets::link!("mswsock.dll" "system" fn WSARecvEx(s : SOCKET, buf : windows_core::PSTR, len : i32, flags : *mut i32) -> i32); - WSARecvEx(core::mem::transmute(s), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), core::mem::transmute(flags)) + WSARecvEx(s, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), core::mem::transmute(flags)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSARecvFrom(s: SOCKET, lpbuffers: &[WSABUF], lpnumberofbytesrecvd: Option<*mut u32>, lpflags: *mut u32, lpfrom: Option<*mut SOCKADDR>, lpfromlen: Option<*mut i32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSARecvFrom(s : SOCKET, lpbuffers : *const WSABUF, dwbuffercount : u32, lpnumberofbytesrecvd : *mut u32, lpflags : *mut u32, lpfrom : *mut SOCKADDR, lpfromlen : *mut i32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSARecvFrom(core::mem::transmute(s), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpflags), core::mem::transmute(lpfrom.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfromlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) + WSARecvFrom(s, core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpflags), core::mem::transmute(lpfrom.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfromlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSARemoveServiceClass(lpserviceclassid: *const windows_core::GUID) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSARemoveServiceClass(lpserviceclassid : *const windows_core::GUID) -> i32); - WSARemoveServiceClass(core::mem::transmute(lpserviceclassid)) + WSARemoveServiceClass(lpserviceclassid) } #[inline] pub unsafe fn WSAResetEvent(hevent: WSAEVENT) -> windows_core::Result<()> { windows_targets::link!("ws2_32.dll" "system" fn WSAResetEvent(hevent : WSAEVENT) -> super::super::Foundation:: BOOL); - WSAResetEvent(core::mem::transmute(hevent)).ok() + WSAResetEvent(hevent).ok() } #[inline] pub unsafe fn WSARevertImpersonation() -> i32 { @@ -795,80 +754,80 @@ pub unsafe fn WSARevertImpersonation() -> i32 { #[inline] pub unsafe fn WSASend(s: SOCKET, lpbuffers: &[WSABUF], lpnumberofbytessent: Option<*mut u32>, dwflags: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSASend(s : SOCKET, lpbuffers : *const WSABUF, dwbuffercount : u32, lpnumberofbytessent : *mut u32, dwflags : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSASend(core::mem::transmute(s), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) + WSASend(s, core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSASendDisconnect(s: SOCKET, lpoutbounddisconnectdata: Option<*const WSABUF>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSASendDisconnect(s : SOCKET, lpoutbounddisconnectdata : *const WSABUF) -> i32); - WSASendDisconnect(core::mem::transmute(s), core::mem::transmute(lpoutbounddisconnectdata.unwrap_or(core::mem::zeroed()))) + WSASendDisconnect(s, core::mem::transmute(lpoutbounddisconnectdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASendMsg(handle: SOCKET, lpmsg: *const WSAMSG, dwflags: u32, lpnumberofbytessent: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSASendMsg(handle : SOCKET, lpmsg : *const WSAMSG, dwflags : u32, lpnumberofbytessent : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSASendMsg(core::mem::transmute(handle), core::mem::transmute(lpmsg), core::mem::transmute(dwflags), core::mem::transmute(lpnumberofbytessent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) + WSASendMsg(handle, lpmsg, dwflags, core::mem::transmute(lpnumberofbytessent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASendTo(s: SOCKET, lpbuffers: &[WSABUF], lpnumberofbytessent: Option<*mut u32>, dwflags: u32, lpto: Option<*const SOCKADDR>, itolen: i32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSASendTo(s : SOCKET, lpbuffers : *const WSABUF, dwbuffercount : u32, lpnumberofbytessent : *mut u32, dwflags : u32, lpto : *const SOCKADDR, itolen : i32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSASendTo(core::mem::transmute(s), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(lpto.unwrap_or(core::mem::zeroed())), core::mem::transmute(itolen), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) + WSASendTo(s, core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(lpto.unwrap_or(core::mem::zeroed())), itolen, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSASetBlockingHook(lpblockfunc: super::super::Foundation::FARPROC) -> super::super::Foundation::FARPROC { windows_targets::link!("ws2_32.dll" "system" fn WSASetBlockingHook(lpblockfunc : super::super::Foundation:: FARPROC) -> super::super::Foundation:: FARPROC); - WSASetBlockingHook(core::mem::transmute(lpblockfunc)) + WSASetBlockingHook(lpblockfunc) } #[inline] pub unsafe fn WSASetEvent(hevent: WSAEVENT) -> windows_core::Result<()> { windows_targets::link!("ws2_32.dll" "system" fn WSASetEvent(hevent : WSAEVENT) -> super::super::Foundation:: BOOL); - WSASetEvent(core::mem::transmute(hevent)).ok() + WSASetEvent(hevent).ok() } #[inline] pub unsafe fn WSASetLastError(ierror: i32) { windows_targets::link!("ws2_32.dll" "system" fn WSASetLastError(ierror : i32)); - WSASetLastError(core::mem::transmute(ierror)) + WSASetLastError(ierror) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSASetServiceA(lpqsreginfo: *const WSAQUERYSETA, essoperation: WSAESETSERVICEOP, dwcontrolflags: u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSASetServiceA(lpqsreginfo : *const WSAQUERYSETA, essoperation : WSAESETSERVICEOP, dwcontrolflags : u32) -> i32); - WSASetServiceA(core::mem::transmute(lpqsreginfo), core::mem::transmute(essoperation), core::mem::transmute(dwcontrolflags)) + WSASetServiceA(lpqsreginfo, essoperation, dwcontrolflags) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSASetServiceW(lpqsreginfo: *const WSAQUERYSETW, essoperation: WSAESETSERVICEOP, dwcontrolflags: u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSASetServiceW(lpqsreginfo : *const WSAQUERYSETW, essoperation : WSAESETSERVICEOP, dwcontrolflags : u32) -> i32); - WSASetServiceW(core::mem::transmute(lpqsreginfo), core::mem::transmute(essoperation), core::mem::transmute(dwcontrolflags)) + WSASetServiceW(lpqsreginfo, essoperation, dwcontrolflags) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASetSocketPeerTargetName(socket: SOCKET, peertargetname: *const SOCKET_PEER_TARGET_NAME, peertargetnamelen: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: Option) -> i32 { windows_targets::link!("fwpuclnt.dll" "system" fn WSASetSocketPeerTargetName(socket : SOCKET, peertargetname : *const SOCKET_PEER_TARGET_NAME, peertargetnamelen : u32, overlapped : *const super::super::System::IO:: OVERLAPPED, completionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSASetSocketPeerTargetName(core::mem::transmute(socket), core::mem::transmute(peertargetname), core::mem::transmute(peertargetnamelen), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) + WSASetSocketPeerTargetName(socket, peertargetname, peertargetnamelen, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASetSocketSecurity(socket: SOCKET, securitysettings: Option<*const SOCKET_SECURITY_SETTINGS>, securitysettingslen: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: Option) -> i32 { windows_targets::link!("fwpuclnt.dll" "system" fn WSASetSocketSecurity(socket : SOCKET, securitysettings : *const SOCKET_SECURITY_SETTINGS, securitysettingslen : u32, overlapped : *const super::super::System::IO:: OVERLAPPED, completionroutine : LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32); - WSASetSocketSecurity(core::mem::transmute(socket), core::mem::transmute(securitysettings.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitysettingslen), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) + WSASetSocketSecurity(socket, core::mem::transmute(securitysettings.unwrap_or(core::mem::zeroed())), securitysettingslen, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WSASocketA(af: i32, r#type: i32, protocol: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOA>, g: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn WSASocketA(af : i32, r#type : i32, protocol : i32, lpprotocolinfo : *const WSAPROTOCOL_INFOA, g : u32, dwflags : u32) -> SOCKET); - let result__ = WSASocketA(core::mem::transmute(af), core::mem::transmute(r#type), core::mem::transmute(protocol), core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(g), core::mem::transmute(dwflags)); + let result__ = WSASocketA(af, r#type, protocol, core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), g, dwflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSASocketW(af: i32, r#type: i32, protocol: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOW>, g: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn WSASocketW(af : i32, r#type : i32, protocol : i32, lpprotocolinfo : *const WSAPROTOCOL_INFOW, g : u32, dwflags : u32) -> SOCKET); - let result__ = WSASocketW(core::mem::transmute(af), core::mem::transmute(r#type), core::mem::transmute(protocol), core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(g), core::mem::transmute(dwflags)); + let result__ = WSASocketW(af, r#type, protocol, core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), g, dwflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAStartup(wversionrequested: u16, lpwsadata: *mut WSADATA) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAStartup(wversionrequested : u16, lpwsadata : *mut WSADATA) -> i32); - WSAStartup(core::mem::transmute(wversionrequested), core::mem::transmute(lpwsadata)) + WSAStartup(wversionrequested, core::mem::transmute(lpwsadata)) } #[inline] pub unsafe fn WSAStringToAddressA(addressstring: P0, addressfamily: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOA>, lpaddress: *mut SOCKADDR, lpaddresslength: *mut i32) -> i32 @@ -876,7 +835,7 @@ where P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAStringToAddressA(addressstring : windows_core::PCSTR, addressfamily : i32, lpprotocolinfo : *const WSAPROTOCOL_INFOA, lpaddress : *mut SOCKADDR, lpaddresslength : *mut i32) -> i32); - WSAStringToAddressA(addressstring.param().abi(), core::mem::transmute(addressfamily), core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpaddress), core::mem::transmute(lpaddresslength)) + WSAStringToAddressA(addressstring.param().abi(), addressfamily, core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpaddress), core::mem::transmute(lpaddresslength)) } #[inline] pub unsafe fn WSAStringToAddressW(addressstring: P0, addressfamily: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOW>, lpaddress: *mut SOCKADDR, lpaddresslength: *mut i32) -> i32 @@ -884,12 +843,12 @@ where P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAStringToAddressW(addressstring : windows_core::PCWSTR, addressfamily : i32, lpprotocolinfo : *const WSAPROTOCOL_INFOW, lpaddress : *mut SOCKADDR, lpaddresslength : *mut i32) -> i32); - WSAStringToAddressW(addressstring.param().abi(), core::mem::transmute(addressfamily), core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpaddress), core::mem::transmute(lpaddresslength)) + WSAStringToAddressW(addressstring.param().abi(), addressfamily, core::mem::transmute(lpprotocolinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpaddress), core::mem::transmute(lpaddresslength)) } #[inline] pub unsafe fn WSAUnadvertiseProvider(puuidproviderid: *const windows_core::GUID) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSAUnadvertiseProvider(puuidproviderid : *const windows_core::GUID) -> i32); - WSAUnadvertiseProvider(core::mem::transmute(puuidproviderid)) + WSAUnadvertiseProvider(puuidproviderid) } #[inline] pub unsafe fn WSAUnhookBlockingHook() -> i32 { @@ -899,29 +858,29 @@ pub unsafe fn WSAUnhookBlockingHook() -> i32 { #[inline] pub unsafe fn WSAWaitForMultipleEvents(lphevents: &[super::super::Foundation::HANDLE], fwaitall: bool, dwtimeout: u32, falertable: bool) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("ws2_32.dll" "system" fn WSAWaitForMultipleEvents(cevents : u32, lphevents : *const super::super::Foundation:: HANDLE, fwaitall : super::super::Foundation:: BOOL, dwtimeout : u32, falertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); - WSAWaitForMultipleEvents(lphevents.len().try_into().unwrap(), core::mem::transmute(lphevents.as_ptr()), fwaitall.into(), core::mem::transmute(dwtimeout), falertable.into()) + WSAWaitForMultipleEvents(lphevents.len().try_into().unwrap(), core::mem::transmute(lphevents.as_ptr()), fwaitall.into(), dwtimeout, falertable.into()) } #[inline] pub unsafe fn WSCDeinstallProvider(lpproviderid: *const windows_core::GUID, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCDeinstallProvider(lpproviderid : *const windows_core::GUID, lperrno : *mut i32) -> i32); - WSCDeinstallProvider(core::mem::transmute(lpproviderid), core::mem::transmute(lperrno)) + WSCDeinstallProvider(lpproviderid, core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCDeinstallProvider32(lpproviderid: *const windows_core::GUID, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCDeinstallProvider32(lpproviderid : *const windows_core::GUID, lperrno : *mut i32) -> i32); - WSCDeinstallProvider32(core::mem::transmute(lpproviderid), core::mem::transmute(lperrno)) + WSCDeinstallProvider32(lpproviderid, core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCEnableNSProvider(lpproviderid: *const windows_core::GUID, fenable: bool) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider(lpproviderid : *const windows_core::GUID, fenable : super::super::Foundation:: BOOL) -> i32); - WSCEnableNSProvider(core::mem::transmute(lpproviderid), fenable.into()) + WSCEnableNSProvider(lpproviderid, fenable.into()) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCEnableNSProvider32(lpproviderid: *const windows_core::GUID, fenable: bool) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider32(lpproviderid : *const windows_core::GUID, fenable : super::super::Foundation:: BOOL) -> i32); - WSCEnableNSProvider32(core::mem::transmute(lpproviderid), fenable.into()) + WSCEnableNSProvider32(lpproviderid, fenable.into()) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] @@ -955,24 +914,24 @@ pub unsafe fn WSCGetApplicationCategory(path: &[u16], extra: Option<&[u16]>, ppe #[inline] pub unsafe fn WSCGetProviderInfo(lpproviderid: *const windows_core::GUID, infotype: WSC_PROVIDER_INFO_TYPE, info: *mut u8, infosize: *mut usize, flags: u32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCGetProviderInfo(lpproviderid : *const windows_core::GUID, infotype : WSC_PROVIDER_INFO_TYPE, info : *mut u8, infosize : *mut usize, flags : u32, lperrno : *mut i32) -> i32); - WSCGetProviderInfo(core::mem::transmute(lpproviderid), core::mem::transmute(infotype), core::mem::transmute(info), core::mem::transmute(infosize), core::mem::transmute(flags), core::mem::transmute(lperrno)) + WSCGetProviderInfo(lpproviderid, infotype, core::mem::transmute(info), core::mem::transmute(infosize), flags, core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCGetProviderInfo32(lpproviderid: *const windows_core::GUID, infotype: WSC_PROVIDER_INFO_TYPE, info: *mut u8, infosize: *mut usize, flags: u32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCGetProviderInfo32(lpproviderid : *const windows_core::GUID, infotype : WSC_PROVIDER_INFO_TYPE, info : *mut u8, infosize : *mut usize, flags : u32, lperrno : *mut i32) -> i32); - WSCGetProviderInfo32(core::mem::transmute(lpproviderid), core::mem::transmute(infotype), core::mem::transmute(info), core::mem::transmute(infosize), core::mem::transmute(flags), core::mem::transmute(lperrno)) + WSCGetProviderInfo32(lpproviderid, infotype, core::mem::transmute(info), core::mem::transmute(infosize), flags, core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCGetProviderPath(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: windows_core::PWSTR, lpproviderdllpathlen: *mut i32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCGetProviderPath(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PWSTR, lpproviderdllpathlen : *mut i32, lperrno : *mut i32) -> i32); - WSCGetProviderPath(core::mem::transmute(lpproviderid), core::mem::transmute(lpszproviderdllpath), core::mem::transmute(lpproviderdllpathlen), core::mem::transmute(lperrno)) + WSCGetProviderPath(lpproviderid, core::mem::transmute(lpszproviderdllpath), core::mem::transmute(lpproviderdllpathlen), core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCGetProviderPath32(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: windows_core::PWSTR, lpproviderdllpathlen: *mut i32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCGetProviderPath32(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PWSTR, lpproviderdllpathlen : *mut i32, lperrno : *mut i32) -> i32); - WSCGetProviderPath32(core::mem::transmute(lpproviderid), core::mem::transmute(lpszproviderdllpath), core::mem::transmute(lpproviderdllpathlen), core::mem::transmute(lperrno)) + WSCGetProviderPath32(lpproviderid, core::mem::transmute(lpszproviderdllpath), core::mem::transmute(lpproviderdllpathlen), core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCInstallNameSpace(lpszidentifier: P0, lpszpathname: P1, dwnamespace: u32, dwversion: u32, lpproviderid: *const windows_core::GUID) -> i32 @@ -981,7 +940,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallNameSpace(lpszidentifier : windows_core::PCWSTR, lpszpathname : windows_core::PCWSTR, dwnamespace : u32, dwversion : u32, lpproviderid : *const windows_core::GUID) -> i32); - WSCInstallNameSpace(lpszidentifier.param().abi(), lpszpathname.param().abi(), core::mem::transmute(dwnamespace), core::mem::transmute(dwversion), core::mem::transmute(lpproviderid)) + WSCInstallNameSpace(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] @@ -991,7 +950,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallNameSpace32(lpszidentifier : windows_core::PCWSTR, lpszpathname : windows_core::PCWSTR, dwnamespace : u32, dwversion : u32, lpproviderid : *const windows_core::GUID) -> i32); - WSCInstallNameSpace32(lpszidentifier.param().abi(), lpszpathname.param().abi(), core::mem::transmute(dwnamespace), core::mem::transmute(dwversion), core::mem::transmute(lpproviderid)) + WSCInstallNameSpace32(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1001,7 +960,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallNameSpaceEx(lpszidentifier : windows_core::PCWSTR, lpszpathname : windows_core::PCWSTR, dwnamespace : u32, dwversion : u32, lpproviderid : *const windows_core::GUID, lpproviderspecific : *const super::super::System::Com:: BLOB) -> i32); - WSCInstallNameSpaceEx(lpszidentifier.param().abi(), lpszpathname.param().abi(), core::mem::transmute(dwnamespace), core::mem::transmute(dwversion), core::mem::transmute(lpproviderid), core::mem::transmute(lpproviderspecific)) + WSCInstallNameSpaceEx(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid, lpproviderspecific) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Com")] @@ -1012,7 +971,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallNameSpaceEx32(lpszidentifier : windows_core::PCWSTR, lpszpathname : windows_core::PCWSTR, dwnamespace : u32, dwversion : u32, lpproviderid : *const windows_core::GUID, lpproviderspecific : *const super::super::System::Com:: BLOB) -> i32); - WSCInstallNameSpaceEx32(lpszidentifier.param().abi(), lpszpathname.param().abi(), core::mem::transmute(dwnamespace), core::mem::transmute(dwversion), core::mem::transmute(lpproviderid), core::mem::transmute(lpproviderspecific)) + WSCInstallNameSpaceEx32(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid, lpproviderspecific) } #[inline] pub unsafe fn WSCInstallProvider(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P1, lpprotocolinfolist: &[WSAPROTOCOL_INFOW], lperrno: *mut i32) -> i32 @@ -1020,7 +979,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallProvider(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PCWSTR, lpprotocolinfolist : *const WSAPROTOCOL_INFOW, dwnumberofentries : u32, lperrno : *mut i32) -> i32); - WSCInstallProvider(core::mem::transmute(lpproviderid), lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) + WSCInstallProvider(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] @@ -1029,7 +988,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallProvider64_32(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PCWSTR, lpprotocolinfolist : *const WSAPROTOCOL_INFOW, dwnumberofentries : u32, lperrno : *mut i32) -> i32); - WSCInstallProvider64_32(core::mem::transmute(lpproviderid), lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) + WSCInstallProvider64_32(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] @@ -1040,34 +999,34 @@ where P3: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCInstallProviderAndChains64_32(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PCWSTR, lpszproviderdllpath32 : windows_core::PCWSTR, lpszlspname : windows_core::PCWSTR, dwserviceflags : u32, lpprotocolinfolist : *mut WSAPROTOCOL_INFOW, dwnumberofentries : u32, lpdwcatalogentryid : *mut u32, lperrno : *mut i32) -> i32); - WSCInstallProviderAndChains64_32(core::mem::transmute(lpproviderid), lpszproviderdllpath.param().abi(), lpszproviderdllpath32.param().abi(), lpszlspname.param().abi(), core::mem::transmute(dwserviceflags), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lpdwcatalogentryid.unwrap_or(core::mem::zeroed())), core::mem::transmute(lperrno)) + WSCInstallProviderAndChains64_32(lpproviderid, lpszproviderdllpath.param().abi(), lpszproviderdllpath32.param().abi(), lpszlspname.param().abi(), dwserviceflags, core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lpdwcatalogentryid.unwrap_or(core::mem::zeroed())), core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCSetApplicationCategory(path: &[u16], extra: Option<&[u16]>, permittedlspcategories: u32, pprevpermlspcat: Option<*mut u32>, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCSetApplicationCategory(path : windows_core::PCWSTR, pathlength : u32, extra : windows_core::PCWSTR, extralength : u32, permittedlspcategories : u32, pprevpermlspcat : *mut u32, lperrno : *mut i32) -> i32); - WSCSetApplicationCategory(core::mem::transmute(path.as_ptr()), path.len().try_into().unwrap(), core::mem::transmute(extra.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extra.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(permittedlspcategories), core::mem::transmute(pprevpermlspcat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lperrno)) + WSCSetApplicationCategory(core::mem::transmute(path.as_ptr()), path.len().try_into().unwrap(), core::mem::transmute(extra.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extra.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), permittedlspcategories, core::mem::transmute(pprevpermlspcat.unwrap_or(core::mem::zeroed())), core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCSetProviderInfo(lpproviderid: *const windows_core::GUID, infotype: WSC_PROVIDER_INFO_TYPE, info: &[u8], flags: u32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCSetProviderInfo(lpproviderid : *const windows_core::GUID, infotype : WSC_PROVIDER_INFO_TYPE, info : *const u8, infosize : usize, flags : u32, lperrno : *mut i32) -> i32); - WSCSetProviderInfo(core::mem::transmute(lpproviderid), core::mem::transmute(infotype), core::mem::transmute(info.as_ptr()), info.len().try_into().unwrap(), core::mem::transmute(flags), core::mem::transmute(lperrno)) + WSCSetProviderInfo(lpproviderid, infotype, core::mem::transmute(info.as_ptr()), info.len().try_into().unwrap(), flags, core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCSetProviderInfo32(lpproviderid: *const windows_core::GUID, infotype: WSC_PROVIDER_INFO_TYPE, info: &[u8], flags: u32, lperrno: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCSetProviderInfo32(lpproviderid : *const windows_core::GUID, infotype : WSC_PROVIDER_INFO_TYPE, info : *const u8, infosize : usize, flags : u32, lperrno : *mut i32) -> i32); - WSCSetProviderInfo32(core::mem::transmute(lpproviderid), core::mem::transmute(infotype), core::mem::transmute(info.as_ptr()), info.len().try_into().unwrap(), core::mem::transmute(flags), core::mem::transmute(lperrno)) + WSCSetProviderInfo32(lpproviderid, infotype, core::mem::transmute(info.as_ptr()), info.len().try_into().unwrap(), flags, core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCUnInstallNameSpace(lpproviderid: *const windows_core::GUID) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCUnInstallNameSpace(lpproviderid : *const windows_core::GUID) -> i32); - WSCUnInstallNameSpace(core::mem::transmute(lpproviderid)) + WSCUnInstallNameSpace(lpproviderid) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCUnInstallNameSpace32(lpproviderid: *const windows_core::GUID) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCUnInstallNameSpace32(lpproviderid : *const windows_core::GUID) -> i32); - WSCUnInstallNameSpace32(core::mem::transmute(lpproviderid)) + WSCUnInstallNameSpace32(lpproviderid) } #[inline] pub unsafe fn WSCUpdateProvider(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P1, lpprotocolinfolist: &[WSAPROTOCOL_INFOW], lperrno: *mut i32) -> i32 @@ -1075,7 +1034,7 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCUpdateProvider(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PCWSTR, lpprotocolinfolist : *const WSAPROTOCOL_INFOW, dwnumberofentries : u32, lperrno : *mut i32) -> i32); - WSCUpdateProvider(core::mem::transmute(lpproviderid), lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) + WSCUpdateProvider(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] @@ -1084,55 +1043,55 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCUpdateProvider32(lpproviderid : *const windows_core::GUID, lpszproviderdllpath : windows_core::PCWSTR, lpprotocolinfolist : *const WSAPROTOCOL_INFOW, dwnumberofentries : u32, lperrno : *mut i32) -> i32); - WSCUpdateProvider32(core::mem::transmute(lpproviderid), lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) + WSCUpdateProvider32(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lperrno)) } #[inline] pub unsafe fn WSCWriteNameSpaceOrder(lpproviderid: *mut windows_core::GUID, dwnumberofentries: u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCWriteNameSpaceOrder(lpproviderid : *mut windows_core::GUID, dwnumberofentries : u32) -> i32); - WSCWriteNameSpaceOrder(core::mem::transmute(lpproviderid), core::mem::transmute(dwnumberofentries)) + WSCWriteNameSpaceOrder(core::mem::transmute(lpproviderid), dwnumberofentries) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCWriteNameSpaceOrder32(lpproviderid: *mut windows_core::GUID, dwnumberofentries: u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCWriteNameSpaceOrder32(lpproviderid : *mut windows_core::GUID, dwnumberofentries : u32) -> i32); - WSCWriteNameSpaceOrder32(core::mem::transmute(lpproviderid), core::mem::transmute(dwnumberofentries)) + WSCWriteNameSpaceOrder32(core::mem::transmute(lpproviderid), dwnumberofentries) } #[inline] pub unsafe fn WSCWriteProviderOrder(lpwdcatalogentryid: *mut u32, dwnumberofentries: u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCWriteProviderOrder(lpwdcatalogentryid : *mut u32, dwnumberofentries : u32) -> i32); - WSCWriteProviderOrder(core::mem::transmute(lpwdcatalogentryid), core::mem::transmute(dwnumberofentries)) + WSCWriteProviderOrder(core::mem::transmute(lpwdcatalogentryid), dwnumberofentries) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCWriteProviderOrder32(lpwdcatalogentryid: *mut u32, dwnumberofentries: u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn WSCWriteProviderOrder32(lpwdcatalogentryid : *mut u32, dwnumberofentries : u32) -> i32); - WSCWriteProviderOrder32(core::mem::transmute(lpwdcatalogentryid), core::mem::transmute(dwnumberofentries)) + WSCWriteProviderOrder32(core::mem::transmute(lpwdcatalogentryid), dwnumberofentries) } #[inline] pub unsafe fn __WSAFDIsSet(fd: SOCKET, param1: *mut FD_SET) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn __WSAFDIsSet(fd : SOCKET, param1 : *mut FD_SET) -> i32); - __WSAFDIsSet(core::mem::transmute(fd), core::mem::transmute(param1)) + __WSAFDIsSet(fd, core::mem::transmute(param1)) } #[inline] pub unsafe fn accept(s: SOCKET, addr: Option<*mut SOCKADDR>, addrlen: Option<*mut i32>) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn accept(s : SOCKET, addr : *mut SOCKADDR, addrlen : *mut i32) -> SOCKET); - let result__ = accept(core::mem::transmute(s), core::mem::transmute(addr.unwrap_or(core::mem::zeroed())), core::mem::transmute(addrlen.unwrap_or(core::mem::zeroed()))); + let result__ = accept(s, core::mem::transmute(addr.unwrap_or(core::mem::zeroed())), core::mem::transmute(addrlen.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn bind(s: SOCKET, name: *const SOCKADDR, namelen: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn bind(s : SOCKET, name : *const SOCKADDR, namelen : i32) -> i32); - bind(core::mem::transmute(s), core::mem::transmute(name), core::mem::transmute(namelen)) + bind(s, name, namelen) } #[inline] pub unsafe fn closesocket(s: SOCKET) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn closesocket(s : SOCKET) -> i32); - closesocket(core::mem::transmute(s)) + closesocket(s) } #[inline] pub unsafe fn connect(s: SOCKET, name: *const SOCKADDR, namelen: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn connect(s : SOCKET, name : *const SOCKADDR, namelen : i32) -> i32); - connect(core::mem::transmute(s), core::mem::transmute(name), core::mem::transmute(namelen)) + connect(s, name, namelen) } #[inline] pub unsafe fn freeaddrinfo(paddrinfo: Option<*const ADDRINFOA>) { @@ -1151,7 +1110,7 @@ where #[inline] pub unsafe fn gethostbyaddr(addr: &[u8], r#type: i32) -> *mut HOSTENT { windows_targets::link!("ws2_32.dll" "system" fn gethostbyaddr(addr : windows_core::PCSTR, len : i32, r#type : i32) -> *mut HOSTENT); - gethostbyaddr(core::mem::transmute(addr.as_ptr()), addr.len().try_into().unwrap(), core::mem::transmute(r#type)) + gethostbyaddr(core::mem::transmute(addr.as_ptr()), addr.len().try_into().unwrap(), r#type) } #[inline] pub unsafe fn gethostbyname(name: P0) -> *mut HOSTENT @@ -1169,12 +1128,12 @@ pub unsafe fn gethostname(name: &mut [u8]) -> i32 { #[inline] pub unsafe fn getnameinfo(psockaddr: *const SOCKADDR, sockaddrlength: socklen_t, pnodebuffer: Option<&mut [u8]>, pservicebuffer: Option<&mut [u8]>, flags: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn getnameinfo(psockaddr : *const SOCKADDR, sockaddrlength : socklen_t, pnodebuffer : windows_core::PSTR, nodebuffersize : u32, pservicebuffer : windows_core::PSTR, servicebuffersize : u32, flags : i32) -> i32); - getnameinfo(core::mem::transmute(psockaddr), core::mem::transmute(sockaddrlength), core::mem::transmute(pnodebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pnodebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pservicebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pservicebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + getnameinfo(psockaddr, sockaddrlength, core::mem::transmute(pnodebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pnodebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pservicebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pservicebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn getpeername(s: SOCKET, name: *mut SOCKADDR, namelen: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn getpeername(s : SOCKET, name : *mut SOCKADDR, namelen : *mut i32) -> i32); - getpeername(core::mem::transmute(s), core::mem::transmute(name), core::mem::transmute(namelen)) + getpeername(s, core::mem::transmute(name), core::mem::transmute(namelen)) } #[inline] pub unsafe fn getprotobyname(name: P0) -> *mut PROTOENT @@ -1187,7 +1146,7 @@ where #[inline] pub unsafe fn getprotobynumber(number: i32) -> *mut PROTOENT { windows_targets::link!("ws2_32.dll" "system" fn getprotobynumber(number : i32) -> *mut PROTOENT); - getprotobynumber(core::mem::transmute(number)) + getprotobynumber(number) } #[inline] pub unsafe fn getservbyname(name: P0, proto: P1) -> *mut SERVENT @@ -1204,27 +1163,27 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getservbyport(port : i32, proto : windows_core::PCSTR) -> *mut SERVENT); - getservbyport(core::mem::transmute(port), proto.param().abi()) + getservbyport(port, proto.param().abi()) } #[inline] pub unsafe fn getsockname(s: SOCKET, name: *mut SOCKADDR, namelen: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn getsockname(s : SOCKET, name : *mut SOCKADDR, namelen : *mut i32) -> i32); - getsockname(core::mem::transmute(s), core::mem::transmute(name), core::mem::transmute(namelen)) + getsockname(s, core::mem::transmute(name), core::mem::transmute(namelen)) } #[inline] pub unsafe fn getsockopt(s: SOCKET, level: i32, optname: i32, optval: windows_core::PSTR, optlen: *mut i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn getsockopt(s : SOCKET, level : i32, optname : i32, optval : windows_core::PSTR, optlen : *mut i32) -> i32); - getsockopt(core::mem::transmute(s), core::mem::transmute(level), core::mem::transmute(optname), core::mem::transmute(optval), core::mem::transmute(optlen)) + getsockopt(s, level, optname, core::mem::transmute(optval), core::mem::transmute(optlen)) } #[inline] pub unsafe fn htonl(hostlong: u32) -> u32 { windows_targets::link!("ws2_32.dll" "system" fn htonl(hostlong : u32) -> u32); - htonl(core::mem::transmute(hostlong)) + htonl(hostlong) } #[inline] pub unsafe fn htons(hostshort: u16) -> u16 { windows_targets::link!("ws2_32.dll" "system" fn htons(hostshort : u16) -> u16); - htons(core::mem::transmute(hostshort)) + htons(hostshort) } #[inline] pub unsafe fn inet_addr(cp: P0) -> u32 @@ -1242,7 +1201,7 @@ pub unsafe fn inet_ntoa(r#in: IN_ADDR) -> windows_core::PSTR { #[inline] pub unsafe fn inet_ntop(family: i32, paddr: *const core::ffi::c_void, pstringbuf: &mut [u8]) -> windows_core::PCSTR { windows_targets::link!("ws2_32.dll" "system" fn inet_ntop(family : i32, paddr : *const core::ffi::c_void, pstringbuf : windows_core::PSTR, stringbufsize : usize) -> windows_core::PCSTR); - inet_ntop(core::mem::transmute(family), core::mem::transmute(paddr), core::mem::transmute(pstringbuf.as_ptr()), pstringbuf.len().try_into().unwrap()) + inet_ntop(family, paddr, core::mem::transmute(pstringbuf.as_ptr()), pstringbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn inet_pton(family: i32, pszaddrstring: P1, paddrbuf: *mut core::ffi::c_void) -> i32 @@ -1250,67 +1209,67 @@ where P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn inet_pton(family : i32, pszaddrstring : windows_core::PCSTR, paddrbuf : *mut core::ffi::c_void) -> i32); - inet_pton(core::mem::transmute(family), pszaddrstring.param().abi(), core::mem::transmute(paddrbuf)) + inet_pton(family, pszaddrstring.param().abi(), core::mem::transmute(paddrbuf)) } #[inline] pub unsafe fn ioctlsocket(s: SOCKET, cmd: i32, argp: *mut u32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn ioctlsocket(s : SOCKET, cmd : i32, argp : *mut u32) -> i32); - ioctlsocket(core::mem::transmute(s), core::mem::transmute(cmd), core::mem::transmute(argp)) + ioctlsocket(s, cmd, core::mem::transmute(argp)) } #[inline] pub unsafe fn listen(s: SOCKET, backlog: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn listen(s : SOCKET, backlog : i32) -> i32); - listen(core::mem::transmute(s), core::mem::transmute(backlog)) + listen(s, backlog) } #[inline] pub unsafe fn ntohl(netlong: u32) -> u32 { windows_targets::link!("ws2_32.dll" "system" fn ntohl(netlong : u32) -> u32); - ntohl(core::mem::transmute(netlong)) + ntohl(netlong) } #[inline] pub unsafe fn ntohs(netshort: u16) -> u16 { windows_targets::link!("ws2_32.dll" "system" fn ntohs(netshort : u16) -> u16); - ntohs(core::mem::transmute(netshort)) + ntohs(netshort) } #[inline] pub unsafe fn recv(s: SOCKET, buf: &mut [u8], flags: SEND_RECV_FLAGS) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn recv(s : SOCKET, buf : windows_core::PSTR, len : i32, flags : SEND_RECV_FLAGS) -> i32); - recv(core::mem::transmute(s), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), core::mem::transmute(flags)) + recv(s, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) } #[inline] pub unsafe fn recvfrom(s: SOCKET, buf: &mut [u8], flags: i32, from: Option<*mut SOCKADDR>, fromlen: Option<*mut i32>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn recvfrom(s : SOCKET, buf : windows_core::PSTR, len : i32, flags : i32, from : *mut SOCKADDR, fromlen : *mut i32) -> i32); - recvfrom(core::mem::transmute(s), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), core::mem::transmute(flags), core::mem::transmute(from.unwrap_or(core::mem::zeroed())), core::mem::transmute(fromlen.unwrap_or(core::mem::zeroed()))) + recvfrom(s, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags, core::mem::transmute(from.unwrap_or(core::mem::zeroed())), core::mem::transmute(fromlen.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn select(nfds: i32, readfds: Option<*mut FD_SET>, writefds: Option<*mut FD_SET>, exceptfds: Option<*mut FD_SET>, timeout: Option<*const TIMEVAL>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn select(nfds : i32, readfds : *mut FD_SET, writefds : *mut FD_SET, exceptfds : *mut FD_SET, timeout : *const TIMEVAL) -> i32); - select(core::mem::transmute(nfds), core::mem::transmute(readfds.unwrap_or(core::mem::zeroed())), core::mem::transmute(writefds.unwrap_or(core::mem::zeroed())), core::mem::transmute(exceptfds.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + select(nfds, core::mem::transmute(readfds.unwrap_or(core::mem::zeroed())), core::mem::transmute(writefds.unwrap_or(core::mem::zeroed())), core::mem::transmute(exceptfds.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn send(s: SOCKET, buf: &[u8], flags: SEND_RECV_FLAGS) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn send(s : SOCKET, buf : windows_core::PCSTR, len : i32, flags : SEND_RECV_FLAGS) -> i32); - send(core::mem::transmute(s), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), core::mem::transmute(flags)) + send(s, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) } #[inline] pub unsafe fn sendto(s: SOCKET, buf: &[u8], flags: i32, to: *const SOCKADDR, tolen: i32) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn sendto(s : SOCKET, buf : windows_core::PCSTR, len : i32, flags : i32, to : *const SOCKADDR, tolen : i32) -> i32); - sendto(core::mem::transmute(s), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), core::mem::transmute(flags), core::mem::transmute(to), core::mem::transmute(tolen)) + sendto(s, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags, to, tolen) } #[inline] pub unsafe fn setsockopt(s: SOCKET, level: i32, optname: i32, optval: Option<&[u8]>) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn setsockopt(s : SOCKET, level : i32, optname : i32, optval : windows_core::PCSTR, optlen : i32) -> i32); - setsockopt(core::mem::transmute(s), core::mem::transmute(level), core::mem::transmute(optname), core::mem::transmute(optval.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optval.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + setsockopt(s, level, optname, core::mem::transmute(optval.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optval.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn shutdown(s: SOCKET, how: WINSOCK_SHUTDOWN_HOW) -> i32 { windows_targets::link!("ws2_32.dll" "system" fn shutdown(s : SOCKET, how : WINSOCK_SHUTDOWN_HOW) -> i32); - shutdown(core::mem::transmute(s), core::mem::transmute(how)) + shutdown(s, how) } #[inline] pub unsafe fn socket(af: i32, r#type: WINSOCK_SOCKET_TYPE, protocol: i32) -> windows_core::Result { windows_targets::link!("ws2_32.dll" "system" fn socket(af : i32, r#type : WINSOCK_SOCKET_TYPE, protocol : i32) -> SOCKET); - let result__ = socket(core::mem::transmute(af), core::mem::transmute(r#type), core::mem::transmute(protocol)); + let result__ = socket(af, r#type, protocol); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } pub const AAL5_MODE_MESSAGE: u32 = 1u32; diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs index eacd39924d..c04fa0c27f 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -5,18 +5,18 @@ where { windows_targets::link!("webauthn.dll" "system" fn WebAuthNAuthenticatorGetAssertion(hwnd : super::super::Foundation:: HWND, pwszrpid : windows_core::PCWSTR, pwebauthnclientdata : *const WEBAUTHN_CLIENT_DATA, pwebauthngetassertionoptions : *const WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS, ppwebauthnassertion : *mut *mut WEBAUTHN_ASSERTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WebAuthNAuthenticatorGetAssertion(core::mem::transmute(hwnd), pwszrpid.param().abi(), core::mem::transmute(pwebauthnclientdata), core::mem::transmute(pwebauthngetassertionoptions.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + WebAuthNAuthenticatorGetAssertion(hwnd, pwszrpid.param().abi(), pwebauthnclientdata, core::mem::transmute(pwebauthngetassertionoptions.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WebAuthNAuthenticatorMakeCredential(hwnd: super::super::Foundation::HWND, prpinformation: *const WEBAUTHN_RP_ENTITY_INFORMATION, puserinformation: *const WEBAUTHN_USER_ENTITY_INFORMATION, ppubkeycredparams: *const WEBAUTHN_COSE_CREDENTIAL_PARAMETERS, pwebauthnclientdata: *const WEBAUTHN_CLIENT_DATA, pwebauthnmakecredentialoptions: Option<*const WEBAUTHN_AUTHENTICATOR_MAKE_CREDENTIAL_OPTIONS>) -> windows_core::Result<*mut WEBAUTHN_CREDENTIAL_ATTESTATION> { windows_targets::link!("webauthn.dll" "system" fn WebAuthNAuthenticatorMakeCredential(hwnd : super::super::Foundation:: HWND, prpinformation : *const WEBAUTHN_RP_ENTITY_INFORMATION, puserinformation : *const WEBAUTHN_USER_ENTITY_INFORMATION, ppubkeycredparams : *const WEBAUTHN_COSE_CREDENTIAL_PARAMETERS, pwebauthnclientdata : *const WEBAUTHN_CLIENT_DATA, pwebauthnmakecredentialoptions : *const WEBAUTHN_AUTHENTICATOR_MAKE_CREDENTIAL_OPTIONS, ppwebauthncredentialattestation : *mut *mut WEBAUTHN_CREDENTIAL_ATTESTATION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WebAuthNAuthenticatorMakeCredential(core::mem::transmute(hwnd), core::mem::transmute(prpinformation), core::mem::transmute(puserinformation), core::mem::transmute(ppubkeycredparams), core::mem::transmute(pwebauthnclientdata), core::mem::transmute(pwebauthnmakecredentialoptions.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + WebAuthNAuthenticatorMakeCredential(hwnd, prpinformation, puserinformation, ppubkeycredparams, pwebauthnclientdata, core::mem::transmute(pwebauthnmakecredentialoptions.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WebAuthNCancelCurrentOperation(pcancellationid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("webauthn.dll" "system" fn WebAuthNCancelCurrentOperation(pcancellationid : *const windows_core::GUID) -> windows_core::HRESULT); - WebAuthNCancelCurrentOperation(core::mem::transmute(pcancellationid)).ok() + WebAuthNCancelCurrentOperation(pcancellationid).ok() } #[inline] pub unsafe fn WebAuthNDeletePlatformCredential(pbcredentialid: &[u8]) -> windows_core::Result<()> { @@ -26,7 +26,7 @@ pub unsafe fn WebAuthNDeletePlatformCredential(pbcredentialid: &[u8]) -> windows #[inline] pub unsafe fn WebAuthNFreeAssertion(pwebauthnassertion: *const WEBAUTHN_ASSERTION) { windows_targets::link!("webauthn.dll" "system" fn WebAuthNFreeAssertion(pwebauthnassertion : *const WEBAUTHN_ASSERTION)); - WebAuthNFreeAssertion(core::mem::transmute(pwebauthnassertion)) + WebAuthNFreeAssertion(pwebauthnassertion) } #[inline] pub unsafe fn WebAuthNFreeCredentialAttestation(pwebauthncredentialattestation: Option<*const WEBAUTHN_CREDENTIAL_ATTESTATION>) { @@ -36,7 +36,7 @@ pub unsafe fn WebAuthNFreeCredentialAttestation(pwebauthncredentialattestation: #[inline] pub unsafe fn WebAuthNFreePlatformCredentialList(pcredentialdetailslist: *const WEBAUTHN_CREDENTIAL_DETAILS_LIST) { windows_targets::link!("webauthn.dll" "system" fn WebAuthNFreePlatformCredentialList(pcredentialdetailslist : *const WEBAUTHN_CREDENTIAL_DETAILS_LIST)); - WebAuthNFreePlatformCredentialList(core::mem::transmute(pcredentialdetailslist)) + WebAuthNFreePlatformCredentialList(pcredentialdetailslist) } #[inline] pub unsafe fn WebAuthNGetApiVersionNumber() -> u32 { @@ -52,18 +52,18 @@ pub unsafe fn WebAuthNGetCancellationId() -> windows_core::Result windows_core::PCWSTR { windows_targets::link!("webauthn.dll" "system" fn WebAuthNGetErrorName(hr : windows_core::HRESULT) -> windows_core::PCWSTR); - WebAuthNGetErrorName(core::mem::transmute(hr)) + WebAuthNGetErrorName(hr) } #[inline] pub unsafe fn WebAuthNGetPlatformCredentialList(pgetcredentialsoptions: *const WEBAUTHN_GET_CREDENTIALS_OPTIONS) -> windows_core::Result<*mut WEBAUTHN_CREDENTIAL_DETAILS_LIST> { windows_targets::link!("webauthn.dll" "system" fn WebAuthNGetPlatformCredentialList(pgetcredentialsoptions : *const WEBAUTHN_GET_CREDENTIALS_OPTIONS, ppcredentialdetailslist : *mut *mut WEBAUTHN_CREDENTIAL_DETAILS_LIST) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WebAuthNGetPlatformCredentialList(core::mem::transmute(pgetcredentialsoptions), &mut result__).map(|| core::mem::transmute(result__)) + WebAuthNGetPlatformCredentialList(pgetcredentialsoptions, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WebAuthNGetW3CExceptionDOMError(hr: windows_core::HRESULT) -> windows_core::Result<()> { windows_targets::link!("webauthn.dll" "system" fn WebAuthNGetW3CExceptionDOMError(hr : windows_core::HRESULT) -> windows_core::HRESULT); - WebAuthNGetW3CExceptionDOMError(core::mem::transmute(hr)).ok() + WebAuthNGetW3CExceptionDOMError(hr).ok() } #[inline] pub unsafe fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable() -> windows_core::Result { @@ -74,122 +74,122 @@ pub unsafe fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable() -> windows #[inline] pub unsafe fn WsAbandonCall(serviceproxy: *const WS_SERVICE_PROXY, callid: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAbandonCall(serviceproxy : *const WS_SERVICE_PROXY, callid : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAbandonCall(core::mem::transmute(serviceproxy), core::mem::transmute(callid), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAbandonCall(serviceproxy, callid, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAbandonMessage(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAbandonMessage(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAbandonMessage(core::mem::transmute(channel), core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAbandonMessage(channel, message, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAbortChannel(channel: *const WS_CHANNEL, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAbortChannel(channel : *const WS_CHANNEL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAbortChannel(core::mem::transmute(channel), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAbortChannel(channel, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAbortListener(listener: *const WS_LISTENER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAbortListener(listener : *const WS_LISTENER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAbortListener(core::mem::transmute(listener), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAbortListener(listener, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAbortServiceHost(servicehost: *const WS_SERVICE_HOST, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAbortServiceHost(servicehost : *const WS_SERVICE_HOST, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAbortServiceHost(core::mem::transmute(servicehost), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAbortServiceHost(servicehost, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAbortServiceProxy(serviceproxy: *const WS_SERVICE_PROXY, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAbortServiceProxy(serviceproxy : *const WS_SERVICE_PROXY, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAbortServiceProxy(core::mem::transmute(serviceproxy), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAbortServiceProxy(serviceproxy, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAcceptChannel(listener: *const WS_LISTENER, channel: *const WS_CHANNEL, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAcceptChannel(listener : *const WS_LISTENER, channel : *const WS_CHANNEL, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAcceptChannel(core::mem::transmute(listener), core::mem::transmute(channel), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAcceptChannel(listener, channel, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAddCustomHeader(message: *const WS_MESSAGE, headerdescription: *const WS_ELEMENT_DESCRIPTION, writeoption: WS_WRITE_OPTION, value: *const core::ffi::c_void, valuesize: u32, headerattributes: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAddCustomHeader(message : *const WS_MESSAGE, headerdescription : *const WS_ELEMENT_DESCRIPTION, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, headerattributes : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAddCustomHeader(core::mem::transmute(message), core::mem::transmute(headerdescription), core::mem::transmute(writeoption), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(headerattributes), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAddCustomHeader(message, headerdescription, writeoption, value, valuesize, headerattributes, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAddErrorString(error: *const WS_ERROR, string: *const WS_STRING) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAddErrorString(error : *const WS_ERROR, string : *const WS_STRING) -> windows_core::HRESULT); - WsAddErrorString(core::mem::transmute(error), core::mem::transmute(string)).ok() + WsAddErrorString(error, string).ok() } #[inline] pub unsafe fn WsAddMappedHeader(message: *const WS_MESSAGE, headername: *const WS_XML_STRING, valuetype: WS_TYPE, writeoption: WS_WRITE_OPTION, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAddMappedHeader(message : *const WS_MESSAGE, headername : *const WS_XML_STRING, valuetype : WS_TYPE, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAddMappedHeader(core::mem::transmute(message), core::mem::transmute(headername), core::mem::transmute(valuetype), core::mem::transmute(writeoption), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAddMappedHeader(message, headername, valuetype, writeoption, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAddressMessage(message: *const WS_MESSAGE, address: Option<*const WS_ENDPOINT_ADDRESS>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAddressMessage(message : *const WS_MESSAGE, address : *const WS_ENDPOINT_ADDRESS, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAddressMessage(core::mem::transmute(message), core::mem::transmute(address.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAddressMessage(message, core::mem::transmute(address.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAlloc(heap: *const WS_HEAP, size: usize, ptr: *mut *mut core::ffi::c_void, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAlloc(heap : *const WS_HEAP, size : usize, ptr : *mut *mut core::ffi::c_void, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAlloc(core::mem::transmute(heap), core::mem::transmute(size), core::mem::transmute(ptr), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAlloc(heap, size, core::mem::transmute(ptr), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsAsyncExecute(asyncstate: *const WS_ASYNC_STATE, operation: WS_ASYNC_FUNCTION, callbackmodel: WS_CALLBACK_MODEL, callbackstate: Option<*const core::ffi::c_void>, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsAsyncExecute(asyncstate : *const WS_ASYNC_STATE, operation : WS_ASYNC_FUNCTION, callbackmodel : WS_CALLBACK_MODEL, callbackstate : *const core::ffi::c_void, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsAsyncExecute(core::mem::transmute(asyncstate), core::mem::transmute(operation), core::mem::transmute(callbackmodel), core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsAsyncExecute(asyncstate, operation, callbackmodel, core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCall(serviceproxy: *const WS_SERVICE_PROXY, operation: *const WS_OPERATION_DESCRIPTION, arguments: Option<*const *const core::ffi::c_void>, heap: *const WS_HEAP, callproperties: Option<&[WS_CALL_PROPERTY]>, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCall(serviceproxy : *const WS_SERVICE_PROXY, operation : *const WS_OPERATION_DESCRIPTION, arguments : *const *const core::ffi::c_void, heap : *const WS_HEAP, callproperties : *const WS_CALL_PROPERTY, callpropertycount : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCall(core::mem::transmute(serviceproxy), core::mem::transmute(operation), core::mem::transmute(arguments.unwrap_or(core::mem::zeroed())), core::mem::transmute(heap), core::mem::transmute(callproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), callproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCall(serviceproxy, operation, core::mem::transmute(arguments.unwrap_or(core::mem::zeroed())), heap, core::mem::transmute(callproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), callproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCheckMustUnderstandHeaders(message: *const WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCheckMustUnderstandHeaders(message : *const WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCheckMustUnderstandHeaders(core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCheckMustUnderstandHeaders(message, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCloseChannel(channel: *const WS_CHANNEL, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCloseChannel(channel : *const WS_CHANNEL, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCloseChannel(core::mem::transmute(channel), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCloseChannel(channel, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCloseListener(listener: *const WS_LISTENER, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCloseListener(listener : *const WS_LISTENER, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCloseListener(core::mem::transmute(listener), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCloseListener(listener, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCloseServiceHost(servicehost: *const WS_SERVICE_HOST, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCloseServiceHost(servicehost : *const WS_SERVICE_HOST, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCloseServiceHost(core::mem::transmute(servicehost), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCloseServiceHost(servicehost, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCloseServiceProxy(serviceproxy: *const WS_SERVICE_PROXY, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCloseServiceProxy(serviceproxy : *const WS_SERVICE_PROXY, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCloseServiceProxy(core::mem::transmute(serviceproxy), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCloseServiceProxy(serviceproxy, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCombineUrl(baseurl: *const WS_STRING, referenceurl: *const WS_STRING, flags: u32, heap: *const WS_HEAP, resulturl: *mut WS_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCombineUrl(baseurl : *const WS_STRING, referenceurl : *const WS_STRING, flags : u32, heap : *const WS_HEAP, resulturl : *mut WS_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCombineUrl(core::mem::transmute(baseurl), core::mem::transmute(referenceurl), core::mem::transmute(flags), core::mem::transmute(heap), core::mem::transmute(resulturl), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCombineUrl(baseurl, referenceurl, flags, heap, core::mem::transmute(resulturl), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCopyError(source: *const WS_ERROR, destination: *const WS_ERROR) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCopyError(source : *const WS_ERROR, destination : *const WS_ERROR) -> windows_core::HRESULT); - WsCopyError(core::mem::transmute(source), core::mem::transmute(destination)).ok() + WsCopyError(source, destination).ok() } #[inline] pub unsafe fn WsCopyNode(writer: *const WS_XML_WRITER, reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCopyNode(writer : *const WS_XML_WRITER, reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCopyNode(core::mem::transmute(writer), core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCopyNode(writer, reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateChannel(channeltype: WS_CHANNEL_TYPE, channelbinding: WS_CHANNEL_BINDING, properties: Option<&[WS_CHANNEL_PROPERTY]>, securitydescription: Option<*const WS_SECURITY_DESCRIPTION>, channel: *mut *mut WS_CHANNEL, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateChannel(channeltype : WS_CHANNEL_TYPE, channelbinding : WS_CHANNEL_BINDING, properties : *const WS_CHANNEL_PROPERTY, propertycount : u32, securitydescription : *const WS_SECURITY_DESCRIPTION, channel : *mut *mut WS_CHANNEL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateChannel(core::mem::transmute(channeltype), core::mem::transmute(channelbinding), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(securitydescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(channel), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateChannel(channeltype, channelbinding, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(securitydescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(channel), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateChannelForListener(listener: *const WS_LISTENER, properties: Option<&[WS_CHANNEL_PROPERTY]>, channel: *mut *mut WS_CHANNEL, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateChannelForListener(listener : *const WS_LISTENER, properties : *const WS_CHANNEL_PROPERTY, propertycount : u32, channel : *mut *mut WS_CHANNEL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateChannelForListener(core::mem::transmute(listener), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(channel), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateChannelForListener(listener, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(channel), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateError(properties: Option<&[WS_ERROR_PROPERTY]>) -> windows_core::Result<*mut WS_ERROR> { @@ -200,27 +200,27 @@ pub unsafe fn WsCreateError(properties: Option<&[WS_ERROR_PROPERTY]>) -> windows #[inline] pub unsafe fn WsCreateFaultFromError(error: *const WS_ERROR, faulterrorcode: windows_core::HRESULT, faultdisclosure: WS_FAULT_DISCLOSURE, heap: *const WS_HEAP, fault: *mut WS_FAULT) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateFaultFromError(error : *const WS_ERROR, faulterrorcode : windows_core::HRESULT, faultdisclosure : WS_FAULT_DISCLOSURE, heap : *const WS_HEAP, fault : *mut WS_FAULT) -> windows_core::HRESULT); - WsCreateFaultFromError(core::mem::transmute(error), core::mem::transmute(faulterrorcode), core::mem::transmute(faultdisclosure), core::mem::transmute(heap), core::mem::transmute(fault)).ok() + WsCreateFaultFromError(error, faulterrorcode, faultdisclosure, heap, core::mem::transmute(fault)).ok() } #[inline] pub unsafe fn WsCreateHeap(maxsize: usize, trimsize: usize, properties: Option<*const WS_HEAP_PROPERTY>, propertycount: u32, heap: *mut *mut WS_HEAP, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateHeap(maxsize : usize, trimsize : usize, properties : *const WS_HEAP_PROPERTY, propertycount : u32, heap : *mut *mut WS_HEAP, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateHeap(core::mem::transmute(maxsize), core::mem::transmute(trimsize), core::mem::transmute(properties.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertycount), core::mem::transmute(heap), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateHeap(maxsize, trimsize, core::mem::transmute(properties.unwrap_or(core::mem::zeroed())), propertycount, core::mem::transmute(heap), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateListener(channeltype: WS_CHANNEL_TYPE, channelbinding: WS_CHANNEL_BINDING, properties: Option<&[WS_LISTENER_PROPERTY]>, securitydescription: Option<*const WS_SECURITY_DESCRIPTION>, listener: *mut *mut WS_LISTENER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateListener(channeltype : WS_CHANNEL_TYPE, channelbinding : WS_CHANNEL_BINDING, properties : *const WS_LISTENER_PROPERTY, propertycount : u32, securitydescription : *const WS_SECURITY_DESCRIPTION, listener : *mut *mut WS_LISTENER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateListener(core::mem::transmute(channeltype), core::mem::transmute(channelbinding), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(securitydescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(listener), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateListener(channeltype, channelbinding, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(securitydescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(listener), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateMessage(envelopeversion: WS_ENVELOPE_VERSION, addressingversion: WS_ADDRESSING_VERSION, properties: Option<&[WS_MESSAGE_PROPERTY]>, message: *mut *mut WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateMessage(envelopeversion : WS_ENVELOPE_VERSION, addressingversion : WS_ADDRESSING_VERSION, properties : *const WS_MESSAGE_PROPERTY, propertycount : u32, message : *mut *mut WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateMessage(core::mem::transmute(envelopeversion), core::mem::transmute(addressingversion), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateMessage(envelopeversion, addressingversion, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateMessageForChannel(channel: *const WS_CHANNEL, properties: Option<&[WS_MESSAGE_PROPERTY]>, message: *mut *mut WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateMessageForChannel(channel : *const WS_CHANNEL, properties : *const WS_MESSAGE_PROPERTY, propertycount : u32, message : *mut *mut WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateMessageForChannel(core::mem::transmute(channel), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateMessageForChannel(channel, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateMetadata(properties: Option<&[WS_METADATA_PROPERTY]>, metadata: *mut *mut WS_METADATA, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { @@ -236,18 +236,18 @@ pub unsafe fn WsCreateReader(properties: Option<&[WS_XML_READER_PROPERTY]>, read pub unsafe fn WsCreateServiceEndpointFromTemplate(channeltype: WS_CHANNEL_TYPE, properties: Option<&[WS_SERVICE_ENDPOINT_PROPERTY]>, addressurl: Option<*const WS_STRING>, contract: *const WS_SERVICE_CONTRACT, authorizationcallback: Option, heap: *const WS_HEAP, templatetype: WS_BINDING_TEMPLATE_TYPE, templatevalue: Option<*const core::ffi::c_void>, templatesize: u32, templatedescription: *const core::ffi::c_void, templatedescriptionsize: u32, serviceendpoint: *mut *mut WS_SERVICE_ENDPOINT, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateServiceEndpointFromTemplate(channeltype : WS_CHANNEL_TYPE, properties : *const WS_SERVICE_ENDPOINT_PROPERTY, propertycount : u32, addressurl : *const WS_STRING, contract : *const WS_SERVICE_CONTRACT, authorizationcallback : WS_SERVICE_SECURITY_CALLBACK, heap : *const WS_HEAP, templatetype : WS_BINDING_TEMPLATE_TYPE, templatevalue : *const core::ffi::c_void, templatesize : u32, templatedescription : *const core::ffi::c_void, templatedescriptionsize : u32, serviceendpoint : *mut *mut WS_SERVICE_ENDPOINT, error : *const WS_ERROR) -> windows_core::HRESULT); WsCreateServiceEndpointFromTemplate( - core::mem::transmute(channeltype), + channeltype, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(addressurl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(contract), + contract, core::mem::transmute(authorizationcallback.unwrap_or(core::mem::zeroed())), - core::mem::transmute(heap), - core::mem::transmute(templatetype), + heap, + templatetype, core::mem::transmute(templatevalue.unwrap_or(core::mem::zeroed())), - core::mem::transmute(templatesize), - core::mem::transmute(templatedescription), - core::mem::transmute(templatedescriptionsize), + templatesize, + templatedescription, + templatedescriptionsize, core::mem::transmute(serviceendpoint), core::mem::transmute(error.unwrap_or(core::mem::zeroed())), ) @@ -262,8 +262,8 @@ pub unsafe fn WsCreateServiceHost(endpoints: Option<&[*const WS_SERVICE_ENDPOINT pub unsafe fn WsCreateServiceProxy(channeltype: WS_CHANNEL_TYPE, channelbinding: WS_CHANNEL_BINDING, securitydescription: Option<*const WS_SECURITY_DESCRIPTION>, properties: Option<&[WS_PROXY_PROPERTY]>, channelproperties: Option<&[WS_CHANNEL_PROPERTY]>, serviceproxy: *mut *mut WS_SERVICE_PROXY, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateServiceProxy(channeltype : WS_CHANNEL_TYPE, channelbinding : WS_CHANNEL_BINDING, securitydescription : *const WS_SECURITY_DESCRIPTION, properties : *const WS_PROXY_PROPERTY, propertycount : u32, channelproperties : *const WS_CHANNEL_PROPERTY, channelpropertycount : u32, serviceproxy : *mut *mut WS_SERVICE_PROXY, error : *const WS_ERROR) -> windows_core::HRESULT); WsCreateServiceProxy( - core::mem::transmute(channeltype), - core::mem::transmute(channelbinding), + channeltype, + channelbinding, core::mem::transmute(securitydescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -277,19 +277,7 @@ pub unsafe fn WsCreateServiceProxy(channeltype: WS_CHANNEL_TYPE, channelbinding: #[inline] pub unsafe fn WsCreateServiceProxyFromTemplate(channeltype: WS_CHANNEL_TYPE, properties: Option<&[WS_PROXY_PROPERTY]>, templatetype: WS_BINDING_TEMPLATE_TYPE, templatevalue: Option<*const core::ffi::c_void>, templatesize: u32, templatedescription: *const core::ffi::c_void, templatedescriptionsize: u32, serviceproxy: *mut *mut WS_SERVICE_PROXY, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateServiceProxyFromTemplate(channeltype : WS_CHANNEL_TYPE, properties : *const WS_PROXY_PROPERTY, propertycount : u32, templatetype : WS_BINDING_TEMPLATE_TYPE, templatevalue : *const core::ffi::c_void, templatesize : u32, templatedescription : *const core::ffi::c_void, templatedescriptionsize : u32, serviceproxy : *mut *mut WS_SERVICE_PROXY, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateServiceProxyFromTemplate( - core::mem::transmute(channeltype), - core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(templatetype), - core::mem::transmute(templatevalue.unwrap_or(core::mem::zeroed())), - core::mem::transmute(templatesize), - core::mem::transmute(templatedescription), - core::mem::transmute(templatedescriptionsize), - core::mem::transmute(serviceproxy), - core::mem::transmute(error.unwrap_or(core::mem::zeroed())), - ) - .ok() + WsCreateServiceProxyFromTemplate(channeltype, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), templatetype, core::mem::transmute(templatevalue.unwrap_or(core::mem::zeroed())), templatesize, templatedescription, templatedescriptionsize, core::mem::transmute(serviceproxy), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateWriter(properties: Option<&[WS_XML_WRITER_PROPERTY]>, writer: *mut *mut WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { @@ -299,7 +287,7 @@ pub unsafe fn WsCreateWriter(properties: Option<&[WS_XML_WRITER_PROPERTY]>, writ #[inline] pub unsafe fn WsCreateXmlBuffer(heap: *const WS_HEAP, properties: Option<&[WS_XML_BUFFER_PROPERTY]>, buffer: *mut *mut WS_XML_BUFFER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsCreateXmlBuffer(heap : *const WS_HEAP, properties : *const WS_XML_BUFFER_PROPERTY, propertycount : u32, buffer : *mut *mut WS_XML_BUFFER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsCreateXmlBuffer(core::mem::transmute(heap), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(buffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsCreateXmlBuffer(heap, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(buffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsCreateXmlSecurityToken(tokenxml: Option<*const WS_XML_BUFFER>, tokenkey: Option<*const WS_SECURITY_KEY_HANDLE>, properties: Option<&[WS_XML_SECURITY_TOKEN_PROPERTY]>, token: *mut *mut WS_SECURITY_TOKEN, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { @@ -309,658 +297,628 @@ pub unsafe fn WsCreateXmlSecurityToken(tokenxml: Option<*const WS_XML_BUFFER>, t #[inline] pub unsafe fn WsDateTimeToFileTime(datetime: *const WS_DATETIME, filetime: *mut super::super::Foundation::FILETIME, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsDateTimeToFileTime(datetime : *const WS_DATETIME, filetime : *mut super::super::Foundation:: FILETIME, error : *const WS_ERROR) -> windows_core::HRESULT); - WsDateTimeToFileTime(core::mem::transmute(datetime), core::mem::transmute(filetime), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsDateTimeToFileTime(datetime, core::mem::transmute(filetime), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsDecodeUrl(url: *const WS_STRING, flags: u32, heap: *const WS_HEAP, outurl: *mut *mut WS_URL, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsDecodeUrl(url : *const WS_STRING, flags : u32, heap : *const WS_HEAP, outurl : *mut *mut WS_URL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsDecodeUrl(core::mem::transmute(url), core::mem::transmute(flags), core::mem::transmute(heap), core::mem::transmute(outurl), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsDecodeUrl(url, flags, heap, core::mem::transmute(outurl), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsEncodeUrl(url: *const WS_URL, flags: u32, heap: *const WS_HEAP, outurl: *mut WS_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsEncodeUrl(url : *const WS_URL, flags : u32, heap : *const WS_HEAP, outurl : *mut WS_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsEncodeUrl(core::mem::transmute(url), core::mem::transmute(flags), core::mem::transmute(heap), core::mem::transmute(outurl), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsEncodeUrl(url, flags, heap, core::mem::transmute(outurl), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsEndReaderCanonicalization(reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsEndReaderCanonicalization(reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsEndReaderCanonicalization(core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsEndReaderCanonicalization(reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsEndWriterCanonicalization(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsEndWriterCanonicalization(writer : *const WS_XML_WRITER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsEndWriterCanonicalization(core::mem::transmute(writer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsEndWriterCanonicalization(writer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFileTimeToDateTime(filetime: *const super::super::Foundation::FILETIME, datetime: *mut WS_DATETIME, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsFileTimeToDateTime(filetime : *const super::super::Foundation:: FILETIME, datetime : *mut WS_DATETIME, error : *const WS_ERROR) -> windows_core::HRESULT); - WsFileTimeToDateTime(core::mem::transmute(filetime), core::mem::transmute(datetime), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsFileTimeToDateTime(filetime, core::mem::transmute(datetime), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFillBody(message: *const WS_MESSAGE, minsize: u32, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsFillBody(message : *const WS_MESSAGE, minsize : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsFillBody(core::mem::transmute(message), core::mem::transmute(minsize), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsFillBody(message, minsize, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFillReader(reader: *const WS_XML_READER, minsize: u32, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsFillReader(reader : *const WS_XML_READER, minsize : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsFillReader(core::mem::transmute(reader), core::mem::transmute(minsize), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsFillReader(reader, minsize, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFindAttribute(reader: *const WS_XML_READER, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, required: bool, attributeindex: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsFindAttribute(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, required : super::super::Foundation:: BOOL, attributeindex : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsFindAttribute(core::mem::transmute(reader), core::mem::transmute(localname), core::mem::transmute(ns), required.into(), core::mem::transmute(attributeindex), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsFindAttribute(reader, localname, ns, required.into(), core::mem::transmute(attributeindex), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFlushBody(message: *const WS_MESSAGE, minsize: u32, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsFlushBody(message : *const WS_MESSAGE, minsize : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsFlushBody(core::mem::transmute(message), core::mem::transmute(minsize), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsFlushBody(message, minsize, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFlushWriter(writer: *const WS_XML_WRITER, minsize: u32, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsFlushWriter(writer : *const WS_XML_WRITER, minsize : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsFlushWriter(core::mem::transmute(writer), core::mem::transmute(minsize), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsFlushWriter(writer, minsize, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsFreeChannel(channel: *const WS_CHANNEL) { windows_targets::link!("webservices.dll" "system" fn WsFreeChannel(channel : *const WS_CHANNEL)); - WsFreeChannel(core::mem::transmute(channel)) + WsFreeChannel(channel) } #[inline] pub unsafe fn WsFreeError(error: *const WS_ERROR) { windows_targets::link!("webservices.dll" "system" fn WsFreeError(error : *const WS_ERROR)); - WsFreeError(core::mem::transmute(error)) + WsFreeError(error) } #[inline] pub unsafe fn WsFreeHeap(heap: *const WS_HEAP) { windows_targets::link!("webservices.dll" "system" fn WsFreeHeap(heap : *const WS_HEAP)); - WsFreeHeap(core::mem::transmute(heap)) + WsFreeHeap(heap) } #[inline] pub unsafe fn WsFreeListener(listener: *const WS_LISTENER) { windows_targets::link!("webservices.dll" "system" fn WsFreeListener(listener : *const WS_LISTENER)); - WsFreeListener(core::mem::transmute(listener)) + WsFreeListener(listener) } #[inline] pub unsafe fn WsFreeMessage(message: *const WS_MESSAGE) { windows_targets::link!("webservices.dll" "system" fn WsFreeMessage(message : *const WS_MESSAGE)); - WsFreeMessage(core::mem::transmute(message)) + WsFreeMessage(message) } #[inline] pub unsafe fn WsFreeMetadata(metadata: *const WS_METADATA) { windows_targets::link!("webservices.dll" "system" fn WsFreeMetadata(metadata : *const WS_METADATA)); - WsFreeMetadata(core::mem::transmute(metadata)) + WsFreeMetadata(metadata) } #[inline] pub unsafe fn WsFreeReader(reader: *const WS_XML_READER) { windows_targets::link!("webservices.dll" "system" fn WsFreeReader(reader : *const WS_XML_READER)); - WsFreeReader(core::mem::transmute(reader)) + WsFreeReader(reader) } #[inline] pub unsafe fn WsFreeSecurityToken(token: *const WS_SECURITY_TOKEN) { windows_targets::link!("webservices.dll" "system" fn WsFreeSecurityToken(token : *const WS_SECURITY_TOKEN)); - WsFreeSecurityToken(core::mem::transmute(token)) + WsFreeSecurityToken(token) } #[inline] pub unsafe fn WsFreeServiceHost(servicehost: *const WS_SERVICE_HOST) { windows_targets::link!("webservices.dll" "system" fn WsFreeServiceHost(servicehost : *const WS_SERVICE_HOST)); - WsFreeServiceHost(core::mem::transmute(servicehost)) + WsFreeServiceHost(servicehost) } #[inline] pub unsafe fn WsFreeServiceProxy(serviceproxy: *const WS_SERVICE_PROXY) { windows_targets::link!("webservices.dll" "system" fn WsFreeServiceProxy(serviceproxy : *const WS_SERVICE_PROXY)); - WsFreeServiceProxy(core::mem::transmute(serviceproxy)) + WsFreeServiceProxy(serviceproxy) } #[inline] pub unsafe fn WsFreeWriter(writer: *const WS_XML_WRITER) { windows_targets::link!("webservices.dll" "system" fn WsFreeWriter(writer : *const WS_XML_WRITER)); - WsFreeWriter(core::mem::transmute(writer)) + WsFreeWriter(writer) } #[inline] pub unsafe fn WsGetChannelProperty(channel: *const WS_CHANNEL, id: WS_CHANNEL_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetChannelProperty(channel : *const WS_CHANNEL, id : WS_CHANNEL_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetChannelProperty(core::mem::transmute(channel), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetChannelProperty(channel, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetCustomHeader(message: *const WS_MESSAGE, customheaderdescription: *const WS_ELEMENT_DESCRIPTION, repeatingoption: WS_REPEATING_HEADER_OPTION, headerindex: u32, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, headerattributes: Option<*mut u32>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetCustomHeader(message : *const WS_MESSAGE, customheaderdescription : *const WS_ELEMENT_DESCRIPTION, repeatingoption : WS_REPEATING_HEADER_OPTION, headerindex : u32, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, headerattributes : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetCustomHeader(core::mem::transmute(message), core::mem::transmute(customheaderdescription), core::mem::transmute(repeatingoption), core::mem::transmute(headerindex), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(headerattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetCustomHeader(message, customheaderdescription, repeatingoption, headerindex, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(headerattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetDictionary(encoding: WS_ENCODING, dictionary: *mut *mut WS_XML_DICTIONARY, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetDictionary(encoding : WS_ENCODING, dictionary : *mut *mut WS_XML_DICTIONARY, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetDictionary(core::mem::transmute(encoding), core::mem::transmute(dictionary), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetDictionary(encoding, core::mem::transmute(dictionary), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetErrorProperty(error: *const WS_ERROR, id: WS_ERROR_PROPERTY_ID, buffer: *mut core::ffi::c_void, buffersize: u32) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetErrorProperty(error : *const WS_ERROR, id : WS_ERROR_PROPERTY_ID, buffer : *mut core::ffi::c_void, buffersize : u32) -> windows_core::HRESULT); - WsGetErrorProperty(core::mem::transmute(error), core::mem::transmute(id), core::mem::transmute(buffer), core::mem::transmute(buffersize)).ok() + WsGetErrorProperty(error, id, core::mem::transmute(buffer), buffersize).ok() } #[inline] pub unsafe fn WsGetErrorString(error: *const WS_ERROR, index: u32) -> windows_core::Result { windows_targets::link!("webservices.dll" "system" fn WsGetErrorString(error : *const WS_ERROR, index : u32, string : *mut WS_STRING) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WsGetErrorString(core::mem::transmute(error), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + WsGetErrorString(error, index, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WsGetFaultErrorDetail(error: *const WS_ERROR, faultdetaildescription: *const WS_FAULT_DETAIL_DESCRIPTION, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetFaultErrorDetail(error : *const WS_ERROR, faultdetaildescription : *const WS_FAULT_DETAIL_DESCRIPTION, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32) -> windows_core::HRESULT); - WsGetFaultErrorDetail(core::mem::transmute(error), core::mem::transmute(faultdetaildescription), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize)).ok() + WsGetFaultErrorDetail(error, faultdetaildescription, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize).ok() } #[inline] pub unsafe fn WsGetFaultErrorProperty(error: *const WS_ERROR, id: WS_FAULT_ERROR_PROPERTY_ID, buffer: *mut core::ffi::c_void, buffersize: u32) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetFaultErrorProperty(error : *const WS_ERROR, id : WS_FAULT_ERROR_PROPERTY_ID, buffer : *mut core::ffi::c_void, buffersize : u32) -> windows_core::HRESULT); - WsGetFaultErrorProperty(core::mem::transmute(error), core::mem::transmute(id), core::mem::transmute(buffer), core::mem::transmute(buffersize)).ok() + WsGetFaultErrorProperty(error, id, core::mem::transmute(buffer), buffersize).ok() } #[inline] pub unsafe fn WsGetHeader(message: *const WS_MESSAGE, headertype: WS_HEADER_TYPE, valuetype: WS_TYPE, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetHeader(message : *const WS_MESSAGE, headertype : WS_HEADER_TYPE, valuetype : WS_TYPE, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetHeader(core::mem::transmute(message), core::mem::transmute(headertype), core::mem::transmute(valuetype), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetHeader(message, headertype, valuetype, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetHeaderAttributes(message: *const WS_MESSAGE, reader: *const WS_XML_READER, headerattributes: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetHeaderAttributes(message : *const WS_MESSAGE, reader : *const WS_XML_READER, headerattributes : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetHeaderAttributes(core::mem::transmute(message), core::mem::transmute(reader), core::mem::transmute(headerattributes), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetHeaderAttributes(message, reader, core::mem::transmute(headerattributes), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetHeapProperty(heap: *const WS_HEAP, id: WS_HEAP_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetHeapProperty(heap : *const WS_HEAP, id : WS_HEAP_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetHeapProperty(core::mem::transmute(heap), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetHeapProperty(heap, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetListenerProperty(listener: *const WS_LISTENER, id: WS_LISTENER_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetListenerProperty(listener : *const WS_LISTENER, id : WS_LISTENER_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetListenerProperty(core::mem::transmute(listener), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetListenerProperty(listener, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetMappedHeader(message: *const WS_MESSAGE, headername: *const WS_XML_STRING, repeatingoption: WS_REPEATING_HEADER_OPTION, headerindex: u32, valuetype: WS_TYPE, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetMappedHeader(message : *const WS_MESSAGE, headername : *const WS_XML_STRING, repeatingoption : WS_REPEATING_HEADER_OPTION, headerindex : u32, valuetype : WS_TYPE, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetMappedHeader(core::mem::transmute(message), core::mem::transmute(headername), core::mem::transmute(repeatingoption), core::mem::transmute(headerindex), core::mem::transmute(valuetype), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetMappedHeader(message, headername, repeatingoption, headerindex, valuetype, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetMessageProperty(message: *const WS_MESSAGE, id: WS_MESSAGE_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetMessageProperty(message : *const WS_MESSAGE, id : WS_MESSAGE_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetMessageProperty(core::mem::transmute(message), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetMessageProperty(message, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetMetadataEndpoints(metadata: *const WS_METADATA, endpoints: *mut WS_METADATA_ENDPOINTS, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetMetadataEndpoints(metadata : *const WS_METADATA, endpoints : *mut WS_METADATA_ENDPOINTS, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetMetadataEndpoints(core::mem::transmute(metadata), core::mem::transmute(endpoints), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetMetadataEndpoints(metadata, core::mem::transmute(endpoints), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetMetadataProperty(metadata: *const WS_METADATA, id: WS_METADATA_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetMetadataProperty(metadata : *const WS_METADATA, id : WS_METADATA_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetMetadataProperty(core::mem::transmute(metadata), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetMetadataProperty(metadata, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetMissingMetadataDocumentAddress(metadata: *const WS_METADATA, address: *mut *mut WS_ENDPOINT_ADDRESS, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetMissingMetadataDocumentAddress(metadata : *const WS_METADATA, address : *mut *mut WS_ENDPOINT_ADDRESS, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetMissingMetadataDocumentAddress(core::mem::transmute(metadata), core::mem::transmute(address), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetMissingMetadataDocumentAddress(metadata, core::mem::transmute(address), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetNamespaceFromPrefix(reader: *const WS_XML_READER, prefix: *const WS_XML_STRING, required: bool, ns: *mut *mut WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetNamespaceFromPrefix(reader : *const WS_XML_READER, prefix : *const WS_XML_STRING, required : super::super::Foundation:: BOOL, ns : *mut *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetNamespaceFromPrefix(core::mem::transmute(reader), core::mem::transmute(prefix), required.into(), core::mem::transmute(ns), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetNamespaceFromPrefix(reader, prefix, required.into(), core::mem::transmute(ns), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetOperationContextProperty(context: *const WS_OPERATION_CONTEXT, id: WS_OPERATION_CONTEXT_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetOperationContextProperty(context : *const WS_OPERATION_CONTEXT, id : WS_OPERATION_CONTEXT_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetOperationContextProperty(core::mem::transmute(context), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetOperationContextProperty(context, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetPolicyAlternativeCount(policy: *const WS_POLICY, count: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetPolicyAlternativeCount(policy : *const WS_POLICY, count : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetPolicyAlternativeCount(core::mem::transmute(policy), core::mem::transmute(count), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetPolicyAlternativeCount(policy, core::mem::transmute(count), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetPolicyProperty(policy: *const WS_POLICY, id: WS_POLICY_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetPolicyProperty(policy : *const WS_POLICY, id : WS_POLICY_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetPolicyProperty(core::mem::transmute(policy), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetPolicyProperty(policy, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetPrefixFromNamespace(writer: *const WS_XML_WRITER, ns: *const WS_XML_STRING, required: bool, prefix: *mut *mut WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetPrefixFromNamespace(writer : *const WS_XML_WRITER, ns : *const WS_XML_STRING, required : super::super::Foundation:: BOOL, prefix : *mut *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetPrefixFromNamespace(core::mem::transmute(writer), core::mem::transmute(ns), required.into(), core::mem::transmute(prefix), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetPrefixFromNamespace(writer, ns, required.into(), core::mem::transmute(prefix), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetReaderNode(xmlreader: *const WS_XML_READER, node: *mut *mut WS_XML_NODE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetReaderNode(xmlreader : *const WS_XML_READER, node : *mut *mut WS_XML_NODE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetReaderNode(core::mem::transmute(xmlreader), core::mem::transmute(node), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetReaderNode(xmlreader, core::mem::transmute(node), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetReaderPosition(reader: *const WS_XML_READER, nodeposition: *mut WS_XML_NODE_POSITION, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetReaderPosition(reader : *const WS_XML_READER, nodeposition : *mut WS_XML_NODE_POSITION, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetReaderPosition(core::mem::transmute(reader), core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetReaderPosition(reader, core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetReaderProperty(reader: *const WS_XML_READER, id: WS_XML_READER_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetReaderProperty(reader : *const WS_XML_READER, id : WS_XML_READER_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetReaderProperty(core::mem::transmute(reader), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetReaderProperty(reader, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetSecurityContextProperty(securitycontext: *const WS_SECURITY_CONTEXT, id: WS_SECURITY_CONTEXT_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetSecurityContextProperty(securitycontext : *const WS_SECURITY_CONTEXT, id : WS_SECURITY_CONTEXT_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetSecurityContextProperty(core::mem::transmute(securitycontext), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetSecurityContextProperty(securitycontext, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetSecurityTokenProperty(securitytoken: *const WS_SECURITY_TOKEN, id: WS_SECURITY_TOKEN_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, heap: Option<*const WS_HEAP>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetSecurityTokenProperty(securitytoken : *const WS_SECURITY_TOKEN, id : WS_SECURITY_TOKEN_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, heap : *const WS_HEAP, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetSecurityTokenProperty(core::mem::transmute(securitytoken), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetSecurityTokenProperty(securitytoken, id, core::mem::transmute(value), valuesize, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetServiceHostProperty(servicehost: *const WS_SERVICE_HOST, id: WS_SERVICE_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetServiceHostProperty(servicehost : *const WS_SERVICE_HOST, id : WS_SERVICE_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetServiceHostProperty(core::mem::transmute(servicehost), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetServiceHostProperty(servicehost, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetServiceProxyProperty(serviceproxy: *const WS_SERVICE_PROXY, id: WS_PROXY_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetServiceProxyProperty(serviceproxy : *const WS_SERVICE_PROXY, id : WS_PROXY_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetServiceProxyProperty(core::mem::transmute(serviceproxy), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetServiceProxyProperty(serviceproxy, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetWriterPosition(writer: *const WS_XML_WRITER, nodeposition: *mut WS_XML_NODE_POSITION, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetWriterPosition(writer : *const WS_XML_WRITER, nodeposition : *mut WS_XML_NODE_POSITION, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetWriterPosition(core::mem::transmute(writer), core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetWriterPosition(writer, core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetWriterProperty(writer: *const WS_XML_WRITER, id: WS_XML_WRITER_PROPERTY_ID, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetWriterProperty(writer : *const WS_XML_WRITER, id : WS_XML_WRITER_PROPERTY_ID, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetWriterProperty(core::mem::transmute(writer), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetWriterProperty(writer, id, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsGetXmlAttribute(reader: *const WS_XML_READER, localname: *const WS_XML_STRING, heap: *const WS_HEAP, valuechars: Option<*mut *mut u16>, valuecharcount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsGetXmlAttribute(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, heap : *const WS_HEAP, valuechars : *mut *mut u16, valuecharcount : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsGetXmlAttribute(core::mem::transmute(reader), core::mem::transmute(localname), core::mem::transmute(heap), core::mem::transmute(valuechars.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuecharcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsGetXmlAttribute(reader, localname, heap, core::mem::transmute(valuechars.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuecharcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsInitializeMessage(message: *const WS_MESSAGE, initialization: WS_MESSAGE_INITIALIZATION, sourcemessage: Option<*const WS_MESSAGE>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsInitializeMessage(message : *const WS_MESSAGE, initialization : WS_MESSAGE_INITIALIZATION, sourcemessage : *const WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsInitializeMessage(core::mem::transmute(message), core::mem::transmute(initialization), core::mem::transmute(sourcemessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsInitializeMessage(message, initialization, core::mem::transmute(sourcemessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsMarkHeaderAsUnderstood(message: *const WS_MESSAGE, headerposition: *const WS_XML_NODE_POSITION, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsMarkHeaderAsUnderstood(message : *const WS_MESSAGE, headerposition : *const WS_XML_NODE_POSITION, error : *const WS_ERROR) -> windows_core::HRESULT); - WsMarkHeaderAsUnderstood(core::mem::transmute(message), core::mem::transmute(headerposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsMarkHeaderAsUnderstood(message, headerposition, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsMatchPolicyAlternative(policy: *const WS_POLICY, alternativeindex: u32, policyconstraints: *const WS_POLICY_CONSTRAINTS, matchrequired: bool, heap: *const WS_HEAP, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsMatchPolicyAlternative(policy : *const WS_POLICY, alternativeindex : u32, policyconstraints : *const WS_POLICY_CONSTRAINTS, matchrequired : super::super::Foundation:: BOOL, heap : *const WS_HEAP, error : *const WS_ERROR) -> windows_core::HRESULT); - WsMatchPolicyAlternative(core::mem::transmute(policy), core::mem::transmute(alternativeindex), core::mem::transmute(policyconstraints), matchrequired.into(), core::mem::transmute(heap), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsMatchPolicyAlternative(policy, alternativeindex, policyconstraints, matchrequired.into(), heap, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsMoveReader(reader: *const WS_XML_READER, moveto: WS_MOVE_TO, found: Option<*mut super::super::Foundation::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsMoveReader(reader : *const WS_XML_READER, moveto : WS_MOVE_TO, found : *mut super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsMoveReader(core::mem::transmute(reader), core::mem::transmute(moveto), core::mem::transmute(found.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsMoveReader(reader, moveto, core::mem::transmute(found.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsMoveWriter(writer: *const WS_XML_WRITER, moveto: WS_MOVE_TO, found: Option<*mut super::super::Foundation::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsMoveWriter(writer : *const WS_XML_WRITER, moveto : WS_MOVE_TO, found : *mut super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsMoveWriter(core::mem::transmute(writer), core::mem::transmute(moveto), core::mem::transmute(found.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsMoveWriter(writer, moveto, core::mem::transmute(found.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsOpenChannel(channel: *const WS_CHANNEL, endpointaddress: *const WS_ENDPOINT_ADDRESS, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsOpenChannel(channel : *const WS_CHANNEL, endpointaddress : *const WS_ENDPOINT_ADDRESS, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsOpenChannel(core::mem::transmute(channel), core::mem::transmute(endpointaddress), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsOpenChannel(channel, endpointaddress, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsOpenListener(listener: *const WS_LISTENER, url: *const WS_STRING, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsOpenListener(listener : *const WS_LISTENER, url : *const WS_STRING, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsOpenListener(core::mem::transmute(listener), core::mem::transmute(url), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsOpenListener(listener, url, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsOpenServiceHost(servicehost: *const WS_SERVICE_HOST, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsOpenServiceHost(servicehost : *const WS_SERVICE_HOST, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsOpenServiceHost(core::mem::transmute(servicehost), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsOpenServiceHost(servicehost, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsOpenServiceProxy(serviceproxy: *const WS_SERVICE_PROXY, address: *const WS_ENDPOINT_ADDRESS, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsOpenServiceProxy(serviceproxy : *const WS_SERVICE_PROXY, address : *const WS_ENDPOINT_ADDRESS, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsOpenServiceProxy(core::mem::transmute(serviceproxy), core::mem::transmute(address), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsOpenServiceProxy(serviceproxy, address, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsPullBytes(writer: *const WS_XML_WRITER, callback: WS_PULL_BYTES_CALLBACK, callbackstate: Option<*const core::ffi::c_void>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsPullBytes(writer : *const WS_XML_WRITER, callback : WS_PULL_BYTES_CALLBACK, callbackstate : *const core::ffi::c_void, error : *const WS_ERROR) -> windows_core::HRESULT); - WsPullBytes(core::mem::transmute(writer), core::mem::transmute(callback), core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsPullBytes(writer, callback, core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsPushBytes(writer: *const WS_XML_WRITER, callback: WS_PUSH_BYTES_CALLBACK, callbackstate: Option<*const core::ffi::c_void>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsPushBytes(writer : *const WS_XML_WRITER, callback : WS_PUSH_BYTES_CALLBACK, callbackstate : *const core::ffi::c_void, error : *const WS_ERROR) -> windows_core::HRESULT); - WsPushBytes(core::mem::transmute(writer), core::mem::transmute(callback), core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsPushBytes(writer, callback, core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadArray(reader: *const WS_XML_READER, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, valuetype: WS_VALUE_TYPE, array: Option<*mut core::ffi::c_void>, arraysize: u32, itemoffset: u32, itemcount: u32, actualitemcount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadArray(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, valuetype : WS_VALUE_TYPE, array : *mut core::ffi::c_void, arraysize : u32, itemoffset : u32, itemcount : u32, actualitemcount : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadArray(core::mem::transmute(reader), core::mem::transmute(localname), core::mem::transmute(ns), core::mem::transmute(valuetype), core::mem::transmute(array.unwrap_or(core::mem::zeroed())), core::mem::transmute(arraysize), core::mem::transmute(itemoffset), core::mem::transmute(itemcount), core::mem::transmute(actualitemcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadArray(reader, localname, ns, valuetype, core::mem::transmute(array.unwrap_or(core::mem::zeroed())), arraysize, itemoffset, itemcount, core::mem::transmute(actualitemcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadAttribute(reader: *const WS_XML_READER, attributedescription: *const WS_ATTRIBUTE_DESCRIPTION, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadAttribute(reader : *const WS_XML_READER, attributedescription : *const WS_ATTRIBUTE_DESCRIPTION, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadAttribute(core::mem::transmute(reader), core::mem::transmute(attributedescription), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadAttribute(reader, attributedescription, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadBody(message: *const WS_MESSAGE, bodydescription: *const WS_ELEMENT_DESCRIPTION, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadBody(message : *const WS_MESSAGE, bodydescription : *const WS_ELEMENT_DESCRIPTION, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadBody(core::mem::transmute(message), core::mem::transmute(bodydescription), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadBody(message, bodydescription, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadBytes(reader: *const WS_XML_READER, bytes: *mut core::ffi::c_void, maxbytecount: u32, actualbytecount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadBytes(reader : *const WS_XML_READER, bytes : *mut core::ffi::c_void, maxbytecount : u32, actualbytecount : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadBytes(core::mem::transmute(reader), core::mem::transmute(bytes), core::mem::transmute(maxbytecount), core::mem::transmute(actualbytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadBytes(reader, core::mem::transmute(bytes), maxbytecount, core::mem::transmute(actualbytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadChars(reader: *const WS_XML_READER, chars: &mut [u16], actualcharcount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadChars(reader : *const WS_XML_READER, chars : windows_core::PWSTR, maxcharcount : u32, actualcharcount : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadChars(core::mem::transmute(reader), core::mem::transmute(chars.as_ptr()), chars.len().try_into().unwrap(), core::mem::transmute(actualcharcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadChars(reader, core::mem::transmute(chars.as_ptr()), chars.len().try_into().unwrap(), core::mem::transmute(actualcharcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadCharsUtf8(reader: *const WS_XML_READER, bytes: &mut [u8], actualbytecount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadCharsUtf8(reader : *const WS_XML_READER, bytes : *mut u8, maxbytecount : u32, actualbytecount : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadCharsUtf8(core::mem::transmute(reader), core::mem::transmute(bytes.as_ptr()), bytes.len().try_into().unwrap(), core::mem::transmute(actualbytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadCharsUtf8(reader, core::mem::transmute(bytes.as_ptr()), bytes.len().try_into().unwrap(), core::mem::transmute(actualbytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadElement(reader: *const WS_XML_READER, elementdescription: *const WS_ELEMENT_DESCRIPTION, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadElement(reader : *const WS_XML_READER, elementdescription : *const WS_ELEMENT_DESCRIPTION, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadElement(core::mem::transmute(reader), core::mem::transmute(elementdescription), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadElement(reader, elementdescription, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadEndAttribute(reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadEndAttribute(reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadEndAttribute(core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadEndAttribute(reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadEndElement(reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadEndElement(reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadEndElement(core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadEndElement(reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadEndpointAddressExtension(reader: *const WS_XML_READER, endpointaddress: *const WS_ENDPOINT_ADDRESS, extensiontype: WS_ENDPOINT_ADDRESS_EXTENSION_TYPE, readoption: WS_READ_OPTION, heap: *const WS_HEAP, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadEndpointAddressExtension(reader : *const WS_XML_READER, endpointaddress : *const WS_ENDPOINT_ADDRESS, extensiontype : WS_ENDPOINT_ADDRESS_EXTENSION_TYPE, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadEndpointAddressExtension(core::mem::transmute(reader), core::mem::transmute(endpointaddress), core::mem::transmute(extensiontype), core::mem::transmute(readoption), core::mem::transmute(heap), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadEndpointAddressExtension(reader, endpointaddress, extensiontype, readoption, heap, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadEnvelopeEnd(message: *const WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadEnvelopeEnd(message : *const WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadEnvelopeEnd(core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadEnvelopeEnd(message, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadEnvelopeStart(message: *const WS_MESSAGE, reader: *const WS_XML_READER, donecallback: Option, donecallbackstate: Option<*const core::ffi::c_void>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadEnvelopeStart(message : *const WS_MESSAGE, reader : *const WS_XML_READER, donecallback : WS_MESSAGE_DONE_CALLBACK, donecallbackstate : *const core::ffi::c_void, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadEnvelopeStart(core::mem::transmute(message), core::mem::transmute(reader), core::mem::transmute(donecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(donecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadEnvelopeStart(message, reader, core::mem::transmute(donecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(donecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadMessageEnd(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadMessageEnd(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadMessageEnd(core::mem::transmute(channel), core::mem::transmute(message), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadMessageEnd(channel, message, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadMessageStart(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadMessageStart(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadMessageStart(core::mem::transmute(channel), core::mem::transmute(message), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadMessageStart(channel, message, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadMetadata(metadata: *const WS_METADATA, reader: *const WS_XML_READER, url: *const WS_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadMetadata(metadata : *const WS_METADATA, reader : *const WS_XML_READER, url : *const WS_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadMetadata(core::mem::transmute(metadata), core::mem::transmute(reader), core::mem::transmute(url), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadMetadata(metadata, reader, url, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadNode(reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadNode(reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadNode(core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadNode(reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadQualifiedName(reader: *const WS_XML_READER, heap: *const WS_HEAP, prefix: Option<*mut WS_XML_STRING>, localname: *mut WS_XML_STRING, ns: Option<*mut WS_XML_STRING>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadQualifiedName(reader : *const WS_XML_READER, heap : *const WS_HEAP, prefix : *mut WS_XML_STRING, localname : *mut WS_XML_STRING, ns : *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadQualifiedName(core::mem::transmute(reader), core::mem::transmute(heap), core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), core::mem::transmute(localname), core::mem::transmute(ns.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadQualifiedName(reader, heap, core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), core::mem::transmute(localname), core::mem::transmute(ns.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadStartAttribute(reader: *const WS_XML_READER, attributeindex: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadStartAttribute(reader : *const WS_XML_READER, attributeindex : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadStartAttribute(core::mem::transmute(reader), core::mem::transmute(attributeindex), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadStartAttribute(reader, attributeindex, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadStartElement(reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadStartElement(reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadStartElement(core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadStartElement(reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadToStartElement(reader: *const WS_XML_READER, localname: Option<*const WS_XML_STRING>, ns: Option<*const WS_XML_STRING>, found: Option<*mut super::super::Foundation::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadToStartElement(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, found : *mut super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadToStartElement(core::mem::transmute(reader), core::mem::transmute(localname.unwrap_or(core::mem::zeroed())), core::mem::transmute(ns.unwrap_or(core::mem::zeroed())), core::mem::transmute(found.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadToStartElement(reader, core::mem::transmute(localname.unwrap_or(core::mem::zeroed())), core::mem::transmute(ns.unwrap_or(core::mem::zeroed())), core::mem::transmute(found.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadType(reader: *const WS_XML_READER, typemapping: WS_TYPE_MAPPING, r#type: WS_TYPE, typedescription: Option<*const core::ffi::c_void>, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadType(reader : *const WS_XML_READER, typemapping : WS_TYPE_MAPPING, r#type : WS_TYPE, typedescription : *const core::ffi::c_void, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadType(core::mem::transmute(reader), core::mem::transmute(typemapping), core::mem::transmute(r#type), core::mem::transmute(typedescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(readoption), core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadType(reader, typemapping, r#type, core::mem::transmute(typedescription.unwrap_or(core::mem::zeroed())), readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadValue(reader: *const WS_XML_READER, valuetype: WS_VALUE_TYPE, value: *mut core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadValue(reader : *const WS_XML_READER, valuetype : WS_VALUE_TYPE, value : *mut core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadValue(core::mem::transmute(reader), core::mem::transmute(valuetype), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadValue(reader, valuetype, core::mem::transmute(value), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadXmlBuffer(reader: *const WS_XML_READER, heap: *const WS_HEAP, xmlbuffer: *mut *mut WS_XML_BUFFER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadXmlBuffer(reader : *const WS_XML_READER, heap : *const WS_HEAP, xmlbuffer : *mut *mut WS_XML_BUFFER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadXmlBuffer(core::mem::transmute(reader), core::mem::transmute(heap), core::mem::transmute(xmlbuffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadXmlBuffer(reader, heap, core::mem::transmute(xmlbuffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReadXmlBufferFromBytes(reader: *const WS_XML_READER, encoding: Option<*const WS_XML_READER_ENCODING>, properties: Option<&[WS_XML_READER_PROPERTY]>, bytes: *const core::ffi::c_void, bytecount: u32, heap: *const WS_HEAP, xmlbuffer: *mut *mut WS_XML_BUFFER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReadXmlBufferFromBytes(reader : *const WS_XML_READER, encoding : *const WS_XML_READER_ENCODING, properties : *const WS_XML_READER_PROPERTY, propertycount : u32, bytes : *const core::ffi::c_void, bytecount : u32, heap : *const WS_HEAP, xmlbuffer : *mut *mut WS_XML_BUFFER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReadXmlBufferFromBytes(core::mem::transmute(reader), core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(bytes), core::mem::transmute(bytecount), core::mem::transmute(heap), core::mem::transmute(xmlbuffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsReadXmlBufferFromBytes(reader, core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), bytes, bytecount, heap, core::mem::transmute(xmlbuffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsReceiveMessage(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, messagedescriptions: &[*const WS_MESSAGE_DESCRIPTION], receiveoption: WS_RECEIVE_OPTION, readbodyoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: *mut core::ffi::c_void, valuesize: u32, index: Option<*mut u32>, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsReceiveMessage(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, messagedescriptions : *const *const WS_MESSAGE_DESCRIPTION, messagedescriptioncount : u32, receiveoption : WS_RECEIVE_OPTION, readbodyoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, index : *mut u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsReceiveMessage( - core::mem::transmute(channel), - core::mem::transmute(message), - core::mem::transmute(messagedescriptions.as_ptr()), - messagedescriptions.len().try_into().unwrap(), - core::mem::transmute(receiveoption), - core::mem::transmute(readbodyoption), - core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), - core::mem::transmute(value), - core::mem::transmute(valuesize), - core::mem::transmute(index.unwrap_or(core::mem::zeroed())), - core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(error.unwrap_or(core::mem::zeroed())), - ) - .ok() + WsReceiveMessage(channel, message, core::mem::transmute(messagedescriptions.as_ptr()), messagedescriptions.len().try_into().unwrap(), receiveoption, readbodyoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value), valuesize, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRegisterOperationForCancel(context: *const WS_OPERATION_CONTEXT, cancelcallback: WS_OPERATION_CANCEL_CALLBACK, freestatecallback: Option, userstate: Option<*const core::ffi::c_void>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRegisterOperationForCancel(context : *const WS_OPERATION_CONTEXT, cancelcallback : WS_OPERATION_CANCEL_CALLBACK, freestatecallback : WS_OPERATION_FREE_STATE_CALLBACK, userstate : *const core::ffi::c_void, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRegisterOperationForCancel(core::mem::transmute(context), core::mem::transmute(cancelcallback), core::mem::transmute(freestatecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(userstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRegisterOperationForCancel(context, cancelcallback, core::mem::transmute(freestatecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(userstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRemoveCustomHeader(message: *const WS_MESSAGE, headername: *const WS_XML_STRING, headerns: *const WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRemoveCustomHeader(message : *const WS_MESSAGE, headername : *const WS_XML_STRING, headerns : *const WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRemoveCustomHeader(core::mem::transmute(message), core::mem::transmute(headername), core::mem::transmute(headerns), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRemoveCustomHeader(message, headername, headerns, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRemoveHeader(message: *const WS_MESSAGE, headertype: WS_HEADER_TYPE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRemoveHeader(message : *const WS_MESSAGE, headertype : WS_HEADER_TYPE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRemoveHeader(core::mem::transmute(message), core::mem::transmute(headertype), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRemoveHeader(message, headertype, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRemoveMappedHeader(message: *const WS_MESSAGE, headername: *const WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRemoveMappedHeader(message : *const WS_MESSAGE, headername : *const WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRemoveMappedHeader(core::mem::transmute(message), core::mem::transmute(headername), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRemoveMappedHeader(message, headername, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRemoveNode(nodeposition: *const WS_XML_NODE_POSITION, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRemoveNode(nodeposition : *const WS_XML_NODE_POSITION, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRemoveNode(core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRemoveNode(nodeposition, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRequestReply(channel: *const WS_CHANNEL, requestmessage: *const WS_MESSAGE, requestmessagedescription: *const WS_MESSAGE_DESCRIPTION, writeoption: WS_WRITE_OPTION, requestbodyvalue: Option<*const core::ffi::c_void>, requestbodyvaluesize: u32, replymessage: *const WS_MESSAGE, replymessagedescription: *const WS_MESSAGE_DESCRIPTION, readoption: WS_READ_OPTION, heap: Option<*const WS_HEAP>, value: Option<*mut core::ffi::c_void>, valuesize: u32, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRequestReply(channel : *const WS_CHANNEL, requestmessage : *const WS_MESSAGE, requestmessagedescription : *const WS_MESSAGE_DESCRIPTION, writeoption : WS_WRITE_OPTION, requestbodyvalue : *const core::ffi::c_void, requestbodyvaluesize : u32, replymessage : *const WS_MESSAGE, replymessagedescription : *const WS_MESSAGE_DESCRIPTION, readoption : WS_READ_OPTION, heap : *const WS_HEAP, value : *mut core::ffi::c_void, valuesize : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRequestReply( - core::mem::transmute(channel), - core::mem::transmute(requestmessage), - core::mem::transmute(requestmessagedescription), - core::mem::transmute(writeoption), - core::mem::transmute(requestbodyvalue.unwrap_or(core::mem::zeroed())), - core::mem::transmute(requestbodyvaluesize), - core::mem::transmute(replymessage), - core::mem::transmute(replymessagedescription), - core::mem::transmute(readoption), - core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), - core::mem::transmute(value.unwrap_or(core::mem::zeroed())), - core::mem::transmute(valuesize), - core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(error.unwrap_or(core::mem::zeroed())), - ) - .ok() + WsRequestReply(channel, requestmessage, requestmessagedescription, writeoption, core::mem::transmute(requestbodyvalue.unwrap_or(core::mem::zeroed())), requestbodyvaluesize, replymessage, replymessagedescription, readoption, core::mem::transmute(heap.unwrap_or(core::mem::zeroed())), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), valuesize, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRequestSecurityToken(channel: *const WS_CHANNEL, properties: Option<&[WS_REQUEST_SECURITY_TOKEN_PROPERTY]>, token: *mut *mut WS_SECURITY_TOKEN, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRequestSecurityToken(channel : *const WS_CHANNEL, properties : *const WS_REQUEST_SECURITY_TOKEN_PROPERTY, propertycount : u32, token : *mut *mut WS_SECURITY_TOKEN, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRequestSecurityToken(core::mem::transmute(channel), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(token), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRequestSecurityToken(channel, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(token), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetChannel(channel: *const WS_CHANNEL, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetChannel(channel : *const WS_CHANNEL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetChannel(core::mem::transmute(channel), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetChannel(channel, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetError(error: *const WS_ERROR) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetError(error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetError(core::mem::transmute(error)).ok() + WsResetError(error).ok() } #[inline] pub unsafe fn WsResetHeap(heap: *const WS_HEAP, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetHeap(heap : *const WS_HEAP, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetHeap(core::mem::transmute(heap), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetHeap(heap, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetListener(listener: *const WS_LISTENER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetListener(listener : *const WS_LISTENER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetListener(core::mem::transmute(listener), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetListener(listener, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetMessage(message: *const WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetMessage(message : *const WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetMessage(core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetMessage(message, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetMetadata(metadata: *const WS_METADATA, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetMetadata(metadata : *const WS_METADATA, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetMetadata(core::mem::transmute(metadata), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetMetadata(metadata, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetServiceHost(servicehost: *const WS_SERVICE_HOST, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetServiceHost(servicehost : *const WS_SERVICE_HOST, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetServiceHost(core::mem::transmute(servicehost), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetServiceHost(servicehost, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsResetServiceProxy(serviceproxy: *const WS_SERVICE_PROXY, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsResetServiceProxy(serviceproxy : *const WS_SERVICE_PROXY, error : *const WS_ERROR) -> windows_core::HRESULT); - WsResetServiceProxy(core::mem::transmute(serviceproxy), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsResetServiceProxy(serviceproxy, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsRevokeSecurityContext(securitycontext: *const WS_SECURITY_CONTEXT, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsRevokeSecurityContext(securitycontext : *const WS_SECURITY_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsRevokeSecurityContext(core::mem::transmute(securitycontext), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsRevokeSecurityContext(securitycontext, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSendFaultMessageForError(channel: *const WS_CHANNEL, replymessage: *const WS_MESSAGE, faulterror: *const WS_ERROR, faulterrorcode: windows_core::HRESULT, faultdisclosure: WS_FAULT_DISCLOSURE, requestmessage: *const WS_MESSAGE, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSendFaultMessageForError(channel : *const WS_CHANNEL, replymessage : *const WS_MESSAGE, faulterror : *const WS_ERROR, faulterrorcode : windows_core::HRESULT, faultdisclosure : WS_FAULT_DISCLOSURE, requestmessage : *const WS_MESSAGE, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSendFaultMessageForError(core::mem::transmute(channel), core::mem::transmute(replymessage), core::mem::transmute(faulterror), core::mem::transmute(faulterrorcode), core::mem::transmute(faultdisclosure), core::mem::transmute(requestmessage), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSendFaultMessageForError(channel, replymessage, faulterror, faulterrorcode, faultdisclosure, requestmessage, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSendMessage(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, messagedescription: *const WS_MESSAGE_DESCRIPTION, writeoption: WS_WRITE_OPTION, bodyvalue: Option<*const core::ffi::c_void>, bodyvaluesize: u32, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSendMessage(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, messagedescription : *const WS_MESSAGE_DESCRIPTION, writeoption : WS_WRITE_OPTION, bodyvalue : *const core::ffi::c_void, bodyvaluesize : u32, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSendMessage(core::mem::transmute(channel), core::mem::transmute(message), core::mem::transmute(messagedescription), core::mem::transmute(writeoption), core::mem::transmute(bodyvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(bodyvaluesize), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSendMessage(channel, message, messagedescription, writeoption, core::mem::transmute(bodyvalue.unwrap_or(core::mem::zeroed())), bodyvaluesize, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSendReplyMessage(channel: *const WS_CHANNEL, replymessage: *const WS_MESSAGE, replymessagedescription: *const WS_MESSAGE_DESCRIPTION, writeoption: WS_WRITE_OPTION, replybodyvalue: Option<*const core::ffi::c_void>, replybodyvaluesize: u32, requestmessage: *const WS_MESSAGE, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSendReplyMessage(channel : *const WS_CHANNEL, replymessage : *const WS_MESSAGE, replymessagedescription : *const WS_MESSAGE_DESCRIPTION, writeoption : WS_WRITE_OPTION, replybodyvalue : *const core::ffi::c_void, replybodyvaluesize : u32, requestmessage : *const WS_MESSAGE, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSendReplyMessage(core::mem::transmute(channel), core::mem::transmute(replymessage), core::mem::transmute(replymessagedescription), core::mem::transmute(writeoption), core::mem::transmute(replybodyvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(replybodyvaluesize), core::mem::transmute(requestmessage), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSendReplyMessage(channel, replymessage, replymessagedescription, writeoption, core::mem::transmute(replybodyvalue.unwrap_or(core::mem::zeroed())), replybodyvaluesize, requestmessage, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetChannelProperty(channel: *const WS_CHANNEL, id: WS_CHANNEL_PROPERTY_ID, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetChannelProperty(channel : *const WS_CHANNEL, id : WS_CHANNEL_PROPERTY_ID, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetChannelProperty(core::mem::transmute(channel), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetChannelProperty(channel, id, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetErrorProperty(error: *const WS_ERROR, id: WS_ERROR_PROPERTY_ID, value: *const core::ffi::c_void, valuesize: u32) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetErrorProperty(error : *const WS_ERROR, id : WS_ERROR_PROPERTY_ID, value : *const core::ffi::c_void, valuesize : u32) -> windows_core::HRESULT); - WsSetErrorProperty(core::mem::transmute(error), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize)).ok() + WsSetErrorProperty(error, id, value, valuesize).ok() } #[inline] pub unsafe fn WsSetFaultErrorDetail(error: *const WS_ERROR, faultdetaildescription: *const WS_FAULT_DETAIL_DESCRIPTION, writeoption: WS_WRITE_OPTION, value: Option<*const core::ffi::c_void>, valuesize: u32) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetFaultErrorDetail(error : *const WS_ERROR, faultdetaildescription : *const WS_FAULT_DETAIL_DESCRIPTION, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32) -> windows_core::HRESULT); - WsSetFaultErrorDetail(core::mem::transmute(error), core::mem::transmute(faultdetaildescription), core::mem::transmute(writeoption), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuesize)).ok() + WsSetFaultErrorDetail(error, faultdetaildescription, writeoption, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), valuesize).ok() } #[inline] pub unsafe fn WsSetFaultErrorProperty(error: *const WS_ERROR, id: WS_FAULT_ERROR_PROPERTY_ID, value: *const core::ffi::c_void, valuesize: u32) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetFaultErrorProperty(error : *const WS_ERROR, id : WS_FAULT_ERROR_PROPERTY_ID, value : *const core::ffi::c_void, valuesize : u32) -> windows_core::HRESULT); - WsSetFaultErrorProperty(core::mem::transmute(error), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize)).ok() + WsSetFaultErrorProperty(error, id, value, valuesize).ok() } #[inline] pub unsafe fn WsSetHeader(message: *const WS_MESSAGE, headertype: WS_HEADER_TYPE, valuetype: WS_TYPE, writeoption: WS_WRITE_OPTION, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetHeader(message : *const WS_MESSAGE, headertype : WS_HEADER_TYPE, valuetype : WS_TYPE, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetHeader(core::mem::transmute(message), core::mem::transmute(headertype), core::mem::transmute(valuetype), core::mem::transmute(writeoption), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetHeader(message, headertype, valuetype, writeoption, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetInput(reader: *const WS_XML_READER, encoding: Option<*const WS_XML_READER_ENCODING>, input: Option<*const WS_XML_READER_INPUT>, properties: Option<&[WS_XML_READER_PROPERTY]>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetInput(reader : *const WS_XML_READER, encoding : *const WS_XML_READER_ENCODING, input : *const WS_XML_READER_INPUT, properties : *const WS_XML_READER_PROPERTY, propertycount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetInput(core::mem::transmute(reader), core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(input.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetInput(reader, core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(input.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetInputToBuffer(reader: *const WS_XML_READER, buffer: *const WS_XML_BUFFER, properties: Option<&[WS_XML_READER_PROPERTY]>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetInputToBuffer(reader : *const WS_XML_READER, buffer : *const WS_XML_BUFFER, properties : *const WS_XML_READER_PROPERTY, propertycount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetInputToBuffer(core::mem::transmute(reader), core::mem::transmute(buffer), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetInputToBuffer(reader, buffer, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetListenerProperty(listener: *const WS_LISTENER, id: WS_LISTENER_PROPERTY_ID, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetListenerProperty(listener : *const WS_LISTENER, id : WS_LISTENER_PROPERTY_ID, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetListenerProperty(core::mem::transmute(listener), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetListenerProperty(listener, id, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetMessageProperty(message: *const WS_MESSAGE, id: WS_MESSAGE_PROPERTY_ID, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetMessageProperty(message : *const WS_MESSAGE, id : WS_MESSAGE_PROPERTY_ID, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetMessageProperty(core::mem::transmute(message), core::mem::transmute(id), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetMessageProperty(message, id, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetOutput(writer: *const WS_XML_WRITER, encoding: Option<*const WS_XML_WRITER_ENCODING>, output: Option<*const WS_XML_WRITER_OUTPUT>, properties: Option<&[WS_XML_WRITER_PROPERTY]>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetOutput(writer : *const WS_XML_WRITER, encoding : *const WS_XML_WRITER_ENCODING, output : *const WS_XML_WRITER_OUTPUT, properties : *const WS_XML_WRITER_PROPERTY, propertycount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetOutput(core::mem::transmute(writer), core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(output.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetOutput(writer, core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(output.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetOutputToBuffer(writer: *const WS_XML_WRITER, buffer: *const WS_XML_BUFFER, properties: Option<&[WS_XML_WRITER_PROPERTY]>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetOutputToBuffer(writer : *const WS_XML_WRITER, buffer : *const WS_XML_BUFFER, properties : *const WS_XML_WRITER_PROPERTY, propertycount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetOutputToBuffer(core::mem::transmute(writer), core::mem::transmute(buffer), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetOutputToBuffer(writer, buffer, core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetReaderPosition(reader: *const WS_XML_READER, nodeposition: *const WS_XML_NODE_POSITION, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetReaderPosition(reader : *const WS_XML_READER, nodeposition : *const WS_XML_NODE_POSITION, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetReaderPosition(core::mem::transmute(reader), core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetReaderPosition(reader, nodeposition, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSetWriterPosition(writer: *const WS_XML_WRITER, nodeposition: *const WS_XML_NODE_POSITION, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSetWriterPosition(writer : *const WS_XML_WRITER, nodeposition : *const WS_XML_NODE_POSITION, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSetWriterPosition(core::mem::transmute(writer), core::mem::transmute(nodeposition), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSetWriterPosition(writer, nodeposition, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsShutdownSessionChannel(channel: *const WS_CHANNEL, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsShutdownSessionChannel(channel : *const WS_CHANNEL, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsShutdownSessionChannel(core::mem::transmute(channel), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsShutdownSessionChannel(channel, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsSkipNode(reader: *const WS_XML_READER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsSkipNode(reader : *const WS_XML_READER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsSkipNode(core::mem::transmute(reader), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsSkipNode(reader, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsStartReaderCanonicalization(reader: *const WS_XML_READER, writecallback: WS_WRITE_CALLBACK, writecallbackstate: Option<*const core::ffi::c_void>, properties: Option<&[WS_XML_CANONICALIZATION_PROPERTY]>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsStartReaderCanonicalization(reader : *const WS_XML_READER, writecallback : WS_WRITE_CALLBACK, writecallbackstate : *const core::ffi::c_void, properties : *const WS_XML_CANONICALIZATION_PROPERTY, propertycount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsStartReaderCanonicalization(core::mem::transmute(reader), core::mem::transmute(writecallback), core::mem::transmute(writecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsStartReaderCanonicalization(reader, writecallback, core::mem::transmute(writecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsStartWriterCanonicalization(writer: *const WS_XML_WRITER, writecallback: WS_WRITE_CALLBACK, writecallbackstate: Option<*const core::ffi::c_void>, properties: Option<&[WS_XML_CANONICALIZATION_PROPERTY]>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsStartWriterCanonicalization(writer : *const WS_XML_WRITER, writecallback : WS_WRITE_CALLBACK, writecallbackstate : *const core::ffi::c_void, properties : *const WS_XML_CANONICALIZATION_PROPERTY, propertycount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsStartWriterCanonicalization(core::mem::transmute(writer), core::mem::transmute(writecallback), core::mem::transmute(writecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsStartWriterCanonicalization(writer, writecallback, core::mem::transmute(writecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsTrimXmlWhitespace(chars: &[u16], trimmedchars: *mut *mut u16, trimmedcount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { @@ -975,137 +933,137 @@ pub unsafe fn WsVerifyXmlNCName(ncnamechars: &[u16], error: Option<*const WS_ERR #[inline] pub unsafe fn WsWriteArray(writer: *const WS_XML_WRITER, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, valuetype: WS_VALUE_TYPE, array: Option<*const core::ffi::c_void>, arraysize: u32, itemoffset: u32, itemcount: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteArray(writer : *const WS_XML_WRITER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, valuetype : WS_VALUE_TYPE, array : *const core::ffi::c_void, arraysize : u32, itemoffset : u32, itemcount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteArray(core::mem::transmute(writer), core::mem::transmute(localname), core::mem::transmute(ns), core::mem::transmute(valuetype), core::mem::transmute(array.unwrap_or(core::mem::zeroed())), core::mem::transmute(arraysize), core::mem::transmute(itemoffset), core::mem::transmute(itemcount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteArray(writer, localname, ns, valuetype, core::mem::transmute(array.unwrap_or(core::mem::zeroed())), arraysize, itemoffset, itemcount, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteAttribute(writer: *const WS_XML_WRITER, attributedescription: *const WS_ATTRIBUTE_DESCRIPTION, writeoption: WS_WRITE_OPTION, value: Option<*const core::ffi::c_void>, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteAttribute(writer : *const WS_XML_WRITER, attributedescription : *const WS_ATTRIBUTE_DESCRIPTION, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteAttribute(core::mem::transmute(writer), core::mem::transmute(attributedescription), core::mem::transmute(writeoption), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteAttribute(writer, attributedescription, writeoption, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteBody(message: *const WS_MESSAGE, bodydescription: *const WS_ELEMENT_DESCRIPTION, writeoption: WS_WRITE_OPTION, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteBody(message : *const WS_MESSAGE, bodydescription : *const WS_ELEMENT_DESCRIPTION, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteBody(core::mem::transmute(message), core::mem::transmute(bodydescription), core::mem::transmute(writeoption), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteBody(message, bodydescription, writeoption, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteBytes(writer: *const WS_XML_WRITER, bytes: *const core::ffi::c_void, bytecount: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteBytes(writer : *const WS_XML_WRITER, bytes : *const core::ffi::c_void, bytecount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteBytes(core::mem::transmute(writer), core::mem::transmute(bytes), core::mem::transmute(bytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteBytes(writer, bytes, bytecount, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteChars(writer: *const WS_XML_WRITER, chars: &[u16], error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteChars(writer : *const WS_XML_WRITER, chars : windows_core::PCWSTR, charcount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteChars(core::mem::transmute(writer), core::mem::transmute(chars.as_ptr()), chars.len().try_into().unwrap(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteChars(writer, core::mem::transmute(chars.as_ptr()), chars.len().try_into().unwrap(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteCharsUtf8(writer: *const WS_XML_WRITER, bytes: &[u8], error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteCharsUtf8(writer : *const WS_XML_WRITER, bytes : *const u8, bytecount : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteCharsUtf8(core::mem::transmute(writer), core::mem::transmute(bytes.as_ptr()), bytes.len().try_into().unwrap(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteCharsUtf8(writer, core::mem::transmute(bytes.as_ptr()), bytes.len().try_into().unwrap(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteElement(writer: *const WS_XML_WRITER, elementdescription: *const WS_ELEMENT_DESCRIPTION, writeoption: WS_WRITE_OPTION, value: Option<*const core::ffi::c_void>, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteElement(writer : *const WS_XML_WRITER, elementdescription : *const WS_ELEMENT_DESCRIPTION, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteElement(core::mem::transmute(writer), core::mem::transmute(elementdescription), core::mem::transmute(writeoption), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteElement(writer, elementdescription, writeoption, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteEndAttribute(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteEndAttribute(writer : *const WS_XML_WRITER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteEndAttribute(core::mem::transmute(writer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteEndAttribute(writer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteEndCData(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteEndCData(writer : *const WS_XML_WRITER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteEndCData(core::mem::transmute(writer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteEndCData(writer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteEndElement(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteEndElement(writer : *const WS_XML_WRITER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteEndElement(core::mem::transmute(writer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteEndElement(writer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteEndStartElement(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteEndStartElement(writer : *const WS_XML_WRITER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteEndStartElement(core::mem::transmute(writer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteEndStartElement(writer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteEnvelopeEnd(message: *const WS_MESSAGE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteEnvelopeEnd(message : *const WS_MESSAGE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteEnvelopeEnd(core::mem::transmute(message), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteEnvelopeEnd(message, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteEnvelopeStart(message: *const WS_MESSAGE, writer: *const WS_XML_WRITER, donecallback: Option, donecallbackstate: Option<*const core::ffi::c_void>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteEnvelopeStart(message : *const WS_MESSAGE, writer : *const WS_XML_WRITER, donecallback : WS_MESSAGE_DONE_CALLBACK, donecallbackstate : *const core::ffi::c_void, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteEnvelopeStart(core::mem::transmute(message), core::mem::transmute(writer), core::mem::transmute(donecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(donecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteEnvelopeStart(message, writer, core::mem::transmute(donecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(donecallbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteMessageEnd(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteMessageEnd(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteMessageEnd(core::mem::transmute(channel), core::mem::transmute(message), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteMessageEnd(channel, message, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteMessageStart(channel: *const WS_CHANNEL, message: *const WS_MESSAGE, asynccontext: Option<*const WS_ASYNC_CONTEXT>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteMessageStart(channel : *const WS_CHANNEL, message : *const WS_MESSAGE, asynccontext : *const WS_ASYNC_CONTEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteMessageStart(core::mem::transmute(channel), core::mem::transmute(message), core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteMessageStart(channel, message, core::mem::transmute(asynccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteNode(writer: *const WS_XML_WRITER, node: *const WS_XML_NODE, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteNode(writer : *const WS_XML_WRITER, node : *const WS_XML_NODE, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteNode(core::mem::transmute(writer), core::mem::transmute(node), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteNode(writer, node, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteQualifiedName(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, localname: *const WS_XML_STRING, ns: Option<*const WS_XML_STRING>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteQualifiedName(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteQualifiedName(core::mem::transmute(writer), core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), core::mem::transmute(localname), core::mem::transmute(ns.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteQualifiedName(writer, core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), localname, core::mem::transmute(ns.unwrap_or(core::mem::zeroed())), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteStartAttribute(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, singlequote: bool, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteStartAttribute(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, singlequote : super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteStartAttribute(core::mem::transmute(writer), core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), core::mem::transmute(localname), core::mem::transmute(ns), singlequote.into(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteStartAttribute(writer, core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), localname, ns, singlequote.into(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteStartCData(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteStartCData(writer : *const WS_XML_WRITER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteStartCData(core::mem::transmute(writer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteStartCData(writer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteStartElement(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteStartElement(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteStartElement(core::mem::transmute(writer), core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), core::mem::transmute(localname), core::mem::transmute(ns), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteStartElement(writer, core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), localname, ns, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteText(writer: *const WS_XML_WRITER, text: *const WS_XML_TEXT, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteText(writer : *const WS_XML_WRITER, text : *const WS_XML_TEXT, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteText(core::mem::transmute(writer), core::mem::transmute(text), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteText(writer, text, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteType(writer: *const WS_XML_WRITER, typemapping: WS_TYPE_MAPPING, r#type: WS_TYPE, typedescription: Option<*const core::ffi::c_void>, writeoption: WS_WRITE_OPTION, value: Option<*const core::ffi::c_void>, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteType(writer : *const WS_XML_WRITER, typemapping : WS_TYPE_MAPPING, r#type : WS_TYPE, typedescription : *const core::ffi::c_void, writeoption : WS_WRITE_OPTION, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteType(core::mem::transmute(writer), core::mem::transmute(typemapping), core::mem::transmute(r#type), core::mem::transmute(typedescription.unwrap_or(core::mem::zeroed())), core::mem::transmute(writeoption), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteType(writer, typemapping, r#type, core::mem::transmute(typedescription.unwrap_or(core::mem::zeroed())), writeoption, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteValue(writer: *const WS_XML_WRITER, valuetype: WS_VALUE_TYPE, value: *const core::ffi::c_void, valuesize: u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteValue(writer : *const WS_XML_WRITER, valuetype : WS_VALUE_TYPE, value : *const core::ffi::c_void, valuesize : u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteValue(core::mem::transmute(writer), core::mem::transmute(valuetype), core::mem::transmute(value), core::mem::transmute(valuesize), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteValue(writer, valuetype, value, valuesize, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteXmlBuffer(writer: *const WS_XML_WRITER, xmlbuffer: *const WS_XML_BUFFER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteXmlBuffer(writer : *const WS_XML_WRITER, xmlbuffer : *const WS_XML_BUFFER, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteXmlBuffer(core::mem::transmute(writer), core::mem::transmute(xmlbuffer), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteXmlBuffer(writer, xmlbuffer, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteXmlBufferToBytes(writer: *const WS_XML_WRITER, xmlbuffer: *const WS_XML_BUFFER, encoding: Option<*const WS_XML_WRITER_ENCODING>, properties: Option<&[WS_XML_WRITER_PROPERTY]>, heap: *const WS_HEAP, bytes: *mut *mut core::ffi::c_void, bytecount: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteXmlBufferToBytes(writer : *const WS_XML_WRITER, xmlbuffer : *const WS_XML_BUFFER, encoding : *const WS_XML_WRITER_ENCODING, properties : *const WS_XML_WRITER_PROPERTY, propertycount : u32, heap : *const WS_HEAP, bytes : *mut *mut core::ffi::c_void, bytecount : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteXmlBufferToBytes(core::mem::transmute(writer), core::mem::transmute(xmlbuffer), core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(heap), core::mem::transmute(bytes), core::mem::transmute(bytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteXmlBufferToBytes(writer, xmlbuffer, core::mem::transmute(encoding.unwrap_or(core::mem::zeroed())), core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), heap, core::mem::transmute(bytes), core::mem::transmute(bytecount), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsWriteXmlnsAttribute(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, ns: *const WS_XML_STRING, singlequote: bool, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsWriteXmlnsAttribute(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, ns : *const WS_XML_STRING, singlequote : super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); - WsWriteXmlnsAttribute(core::mem::transmute(writer), core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), core::mem::transmute(ns), singlequote.into(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsWriteXmlnsAttribute(writer, core::mem::transmute(prefix.unwrap_or(core::mem::zeroed())), ns, singlequote.into(), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WsXmlStringEquals(string1: *const WS_XML_STRING, string2: *const WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { windows_targets::link!("webservices.dll" "system" fn WsXmlStringEquals(string1 : *const WS_XML_STRING, string2 : *const WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); - WsXmlStringEquals(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() + WsXmlStringEquals(string1, string2, core::mem::transmute(error.unwrap_or(core::mem::zeroed()))).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs index 0b58325540..3239a7061c 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn SaferCloseLevel(hlevelhandle: super::SAFER_LEVEL_HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferCloseLevel(hlevelhandle : super:: SAFER_LEVEL_HANDLE) -> super::super::Foundation:: BOOL); - SaferCloseLevel(core::mem::transmute(hlevelhandle)).ok() + SaferCloseLevel(hlevelhandle).ok() } #[inline] pub unsafe fn SaferComputeTokenFromLevel(levelhandle: super::SAFER_LEVEL_HANDLE, inaccesstoken: Option, outaccesstoken: *mut super::super::Foundation::HANDLE, dwflags: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferComputeTokenFromLevel(levelhandle : super:: SAFER_LEVEL_HANDLE, inaccesstoken : super::super::Foundation:: HANDLE, outaccesstoken : *mut super::super::Foundation:: HANDLE, dwflags : SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - SaferComputeTokenFromLevel(core::mem::transmute(levelhandle), core::mem::transmute(inaccesstoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(outaccesstoken), core::mem::transmute(dwflags), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SaferComputeTokenFromLevel(levelhandle, core::mem::transmute(inaccesstoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(outaccesstoken), dwflags, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SaferCreateLevel(dwscopeid: u32, dwlevelid: u32, openflags: u32, plevelhandle: *mut super::SAFER_LEVEL_HANDLE, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferCreateLevel(dwscopeid : u32, dwlevelid : u32, openflags : u32, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SaferCreateLevel(core::mem::transmute(dwscopeid), core::mem::transmute(dwlevelid), core::mem::transmute(openflags), core::mem::transmute(plevelhandle), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SaferCreateLevel(dwscopeid, dwlevelid, openflags, core::mem::transmute(plevelhandle), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SaferGetLevelInformation(levelhandle: super::SAFER_LEVEL_HANDLE, dwinfotype: SAFER_OBJECT_INFO_CLASS, lpquerybuffer: Option<*mut core::ffi::c_void>, dwinbuffersize: u32, lpdwoutbuffersize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferGetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *mut core::ffi::c_void, dwinbuffersize : u32, lpdwoutbuffersize : *mut u32) -> super::super::Foundation:: BOOL); - SaferGetLevelInformation(core::mem::transmute(levelhandle), core::mem::transmute(dwinfotype), core::mem::transmute(lpquerybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinbuffersize), core::mem::transmute(lpdwoutbuffersize)).ok() + SaferGetLevelInformation(levelhandle, dwinfotype, core::mem::transmute(lpquerybuffer.unwrap_or(core::mem::zeroed())), dwinbuffersize, core::mem::transmute(lpdwoutbuffersize)).ok() } #[inline] pub unsafe fn SaferGetPolicyInformation(dwscopeid: u32, saferpolicyinfoclass: SAFER_POLICY_INFO_CLASS, infobuffersize: u32, infobuffer: *mut core::ffi::c_void, infobufferretsize: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferGetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *mut core::ffi::c_void, infobufferretsize : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SaferGetPolicyInformation(core::mem::transmute(dwscopeid), core::mem::transmute(saferpolicyinfoclass), core::mem::transmute(infobuffersize), core::mem::transmute(infobuffer), core::mem::transmute(infobufferretsize), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SaferGetPolicyInformation(dwscopeid, saferpolicyinfoclass, infobuffersize, core::mem::transmute(infobuffer), core::mem::transmute(infobufferretsize), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -35,17 +35,17 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SaferRecordEventLogEntry(hlevel : super:: SAFER_LEVEL_HANDLE, sztargetpath : windows_core::PCWSTR, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SaferRecordEventLogEntry(core::mem::transmute(hlevel), sztargetpath.param().abi(), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SaferRecordEventLogEntry(hlevel, sztargetpath.param().abi(), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SaferSetLevelInformation(levelhandle: super::SAFER_LEVEL_HANDLE, dwinfotype: SAFER_OBJECT_INFO_CLASS, lpquerybuffer: *const core::ffi::c_void, dwinbuffersize: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferSetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *const core::ffi::c_void, dwinbuffersize : u32) -> super::super::Foundation:: BOOL); - SaferSetLevelInformation(core::mem::transmute(levelhandle), core::mem::transmute(dwinfotype), core::mem::transmute(lpquerybuffer), core::mem::transmute(dwinbuffersize)).ok() + SaferSetLevelInformation(levelhandle, dwinfotype, lpquerybuffer, dwinbuffersize).ok() } #[inline] pub unsafe fn SaferSetPolicyInformation(dwscopeid: u32, saferpolicyinfoclass: SAFER_POLICY_INFO_CLASS, infobuffersize: u32, infobuffer: *const core::ffi::c_void, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SaferSetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SaferSetPolicyInformation(core::mem::transmute(dwscopeid), core::mem::transmute(saferpolicyinfoclass), core::mem::transmute(infobuffersize), core::mem::transmute(infobuffer), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + SaferSetPolicyInformation(dwscopeid, saferpolicyinfoclass, infobuffersize, infobuffer, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SaferiIsExecutableFileType(szfullpathname: P0, bfromshellexecute: bool) -> super::super::Foundation::BOOL @@ -53,7 +53,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_core::PCWSTR, bfromshellexecute : bool) -> super::super::Foundation:: BOOL); - SaferiIsExecutableFileType(szfullpathname.param().abi(), core::mem::transmute(bfromshellexecute)) + SaferiIsExecutableFileType(szfullpathname.param().abi(), bfromshellexecute) } #[repr(C)] #[cfg(feature = "Win32_Security_Cryptography")] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/mod.rs index 5cf0935d92..34de10a2c8 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/mod.rs @@ -5,7 +5,7 @@ windows_core::imp::define_interface!(AsyncIAssociatedIdentityProvider, AsyncIAss windows_core::imp::interface_hierarchy!(AsyncIAssociatedIdentityProvider, windows_core::IUnknown); impl AsyncIAssociatedIdentityProvider { pub unsafe fn Begin_AssociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_AssociateIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).Begin_AssociateIdentity)(windows_core::Interface::as_raw(self), hwndparent).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Finish_AssociateIdentity(&self) -> windows_core::Result { @@ -16,7 +16,7 @@ impl AsyncIAssociatedIdentityProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_DisassociateIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), lpszuniqueid.param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_DisassociateIdentity)(windows_core::Interface::as_raw(self), hwndparent, lpszuniqueid.param().abi()).ok() } pub unsafe fn Finish_DisassociateIdentity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_DisassociateIdentity)(windows_core::Interface::as_raw(self)).ok() @@ -25,7 +25,7 @@ impl AsyncIAssociatedIdentityProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_ChangeCredential)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), lpszuniqueid.param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_ChangeCredential)(windows_core::Interface::as_raw(self), hwndparent, lpszuniqueid.param().abi()).ok() } pub unsafe fn Finish_ChangeCredential(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_ChangeCredential)(windows_core::Interface::as_raw(self)).ok() @@ -129,7 +129,7 @@ impl AsyncIConnectedIdentityProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_GetUrl)(windows_core::Interface::as_raw(self), core::mem::transmute(identifier), context.param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_GetUrl)(windows_core::Interface::as_raw(self), identifier, context.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Finish_GetUrl(&self, postdata: *mut super::super::super::super::System::Variant::VARIANT, url: *mut windows_core::PWSTR) -> windows_core::Result<()> { @@ -258,7 +258,7 @@ impl AsyncIIdentityAdvise { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_IdentityUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidentityupdateevents), lpszuniqueid.param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_IdentityUpdated)(windows_core::Interface::as_raw(self), dwidentityupdateevents, lpszuniqueid.param().abi()).ok() } pub unsafe fn Finish_IdentityUpdated(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_IdentityUpdated)(windows_core::Interface::as_raw(self)).ok() @@ -372,7 +372,7 @@ windows_core::imp::interface_hierarchy!(AsyncIIdentityProvider, windows_core::IU impl AsyncIIdentityProvider { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Begin_GetIdentityEnum(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: Option<*const super::super::super::super::Foundation::PROPERTYKEY>, pfilterpropvarvalue: Option<*const super::super::super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_GetIdentityEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(eidentitytype), core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Begin_GetIdentityEnum)(windows_core::Interface::as_raw(self), eidentitytype, core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Finish_GetIdentityEnum(&self) -> windows_core::Result { @@ -434,14 +434,14 @@ impl AsyncIIdentityProvider { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_Advise)(windows_core::Interface::as_raw(self), pidentityadvise.param().abi(), core::mem::transmute(dwidentityupdateevents)).ok() + (windows_core::Interface::vtable(self).Begin_Advise)(windows_core::Interface::as_raw(self), pidentityadvise.param().abi(), dwidentityupdateevents).ok() } pub unsafe fn Finish_Advise(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Finish_Advise)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Begin_UnAdvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_UnAdvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Begin_UnAdvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn Finish_UnAdvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_UnAdvise)(windows_core::Interface::as_raw(self)).ok() @@ -644,7 +644,7 @@ impl AsyncIIdentityStore { (windows_core::Interface::vtable(self).Finish_GetCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Begin_GetAt(&self, dwprovider: u32, pprovguid: Option<*mut windows_core::GUID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprovider), core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Begin_GetAt)(windows_core::Interface::as_raw(self), dwprovider, core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Finish_GetAt(&self, pprovguid: Option<*mut windows_core::GUID>, ppidentityprovider: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppidentityprovider)).ok() @@ -653,7 +653,7 @@ impl AsyncIIdentityStore { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_AddToCache)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), core::mem::transmute(providerguid)).ok() + (windows_core::Interface::vtable(self).Begin_AddToCache)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), providerguid).ok() } pub unsafe fn Finish_AddToCache(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_AddToCache)(windows_core::Interface::as_raw(self)).ok() @@ -662,14 +662,14 @@ impl AsyncIIdentityStore { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_ConvertToSid)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), core::mem::transmute(providerguid), core::mem::transmute(cbsid), core::mem::transmute(psid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Begin_ConvertToSid)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), providerguid, cbsid, core::mem::transmute(psid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Finish_ConvertToSid(&self, psid: Option<*mut u8>, pcbrequiredsid: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_ConvertToSid)(windows_core::Interface::as_raw(self), core::mem::transmute(psid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbrequiredsid)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Begin_EnumerateIdentities(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: Option<*const super::super::super::super::Foundation::PROPERTYKEY>, pfilterpropvarvalue: Option<*const super::super::super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_EnumerateIdentities)(windows_core::Interface::as_raw(self), core::mem::transmute(eidentitytype), core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Begin_EnumerateIdentities)(windows_core::Interface::as_raw(self), eidentitytype, core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Finish_EnumerateIdentities(&self) -> windows_core::Result { @@ -813,7 +813,7 @@ impl AsyncIIdentityStoreEx { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_CreateConnectedIdentity)(windows_core::Interface::as_raw(self), localname.param().abi(), connectedname.param().abi(), core::mem::transmute(providerguid)).ok() + (windows_core::Interface::vtable(self).Begin_CreateConnectedIdentity)(windows_core::Interface::as_raw(self), localname.param().abi(), connectedname.param().abi(), providerguid).ok() } pub unsafe fn Finish_CreateConnectedIdentity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_CreateConnectedIdentity)(windows_core::Interface::as_raw(self)).ok() @@ -822,7 +822,7 @@ impl AsyncIIdentityStoreEx { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_DeleteConnectedIdentity)(windows_core::Interface::as_raw(self), connectedname.param().abi(), core::mem::transmute(providerguid)).ok() + (windows_core::Interface::vtable(self).Begin_DeleteConnectedIdentity)(windows_core::Interface::as_raw(self), connectedname.param().abi(), providerguid).ok() } pub unsafe fn Finish_DeleteConnectedIdentity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_DeleteConnectedIdentity)(windows_core::Interface::as_raw(self)).ok() @@ -883,19 +883,19 @@ impl IAssociatedIdentityProvider { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn AssociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AssociateIdentity)(windows_core::Interface::as_raw(self), hwndparent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DisassociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisassociateIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), lpszuniqueid.param().abi()).ok() + (windows_core::Interface::vtable(self).DisassociateIdentity)(windows_core::Interface::as_raw(self), hwndparent, lpszuniqueid.param().abi()).ok() } pub unsafe fn ChangeCredential(&self, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeCredential)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), lpszuniqueid.param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeCredential)(windows_core::Interface::as_raw(self), hwndparent, lpszuniqueid.param().abi()).ok() } } #[repr(C)] @@ -966,7 +966,7 @@ impl IConnectedIdentityProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUrl)(windows_core::Interface::as_raw(self), core::mem::transmute(identifier), context.param().abi(), core::mem::transmute(postdata), core::mem::transmute(url)).ok() + (windows_core::Interface::vtable(self).GetUrl)(windows_core::Interface::as_raw(self), identifier, context.param().abi(), core::mem::transmute(postdata), core::mem::transmute(url)).ok() } pub unsafe fn GetAccountState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1155,7 +1155,7 @@ impl IIdentityProvider { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetIdentityEnum(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: Option<*const super::super::super::super::Foundation::PROPERTYKEY>, pfilterpropvarvalue: Option<*const super::super::super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIdentityEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(eidentitytype), core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIdentityEnum)(windows_core::Interface::as_raw(self), eidentitytype, core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn Create(&self, lpszusername: P0, pppropertystore: *mut Option, pkeywordstoadd: *const super::super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> @@ -1199,7 +1199,7 @@ impl IIdentityProvider { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pidentityadvise.param().abi(), dwidentityupdateevents.0 as _, &mut result__).map(|| result__) } pub unsafe fn UnAdvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -1328,24 +1328,24 @@ impl IIdentityStore { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetAt(&self, dwprovider: u32, pprovguid: Option<*mut windows_core::GUID>, ppidentityprovider: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprovider), core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppidentityprovider)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), dwprovider, core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppidentityprovider)).ok() } pub unsafe fn AddToCache(&self, lpszuniqueid: P0, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToCache)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), core::mem::transmute(providerguid)).ok() + (windows_core::Interface::vtable(self).AddToCache)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), providerguid).ok() } pub unsafe fn ConvertToSid(&self, lpszuniqueid: P0, providerguid: *const windows_core::GUID, psid: Option<&mut [u8]>, pcbrequiredsid: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertToSid)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), core::mem::transmute(providerguid), psid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(psid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcbrequiredsid)).ok() + (windows_core::Interface::vtable(self).ConvertToSid)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), providerguid, psid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(psid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcbrequiredsid)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn EnumerateIdentities(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: Option<*const super::super::super::super::Foundation::PROPERTYKEY>, pfilterpropvarvalue: Option<*const super::super::super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateIdentities)(windows_core::Interface::as_raw(self), core::mem::transmute(eidentitytype), core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateIdentities)(windows_core::Interface::as_raw(self), eidentitytype, core::mem::transmute(pfilterkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfilterpropvarvalue.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1436,13 +1436,13 @@ impl IIdentityStoreEx { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateConnectedIdentity)(windows_core::Interface::as_raw(self), localname.param().abi(), connectedname.param().abi(), core::mem::transmute(providerguid)).ok() + (windows_core::Interface::vtable(self).CreateConnectedIdentity)(windows_core::Interface::as_raw(self), localname.param().abi(), connectedname.param().abi(), providerguid).ok() } pub unsafe fn DeleteConnectedIdentity(&self, connectedname: P0, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteConnectedIdentity)(windows_core::Interface::as_raw(self), connectedname.param().abi(), core::mem::transmute(providerguid)).ok() + (windows_core::Interface::vtable(self).DeleteConnectedIdentity)(windows_core::Interface::as_raw(self), connectedname.param().abi(), providerguid).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs index 54a8527f57..248a8e1ee3 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs @@ -4,17 +4,7 @@ pub mod Provider; #[inline] pub unsafe fn AcceptSecurityContext(phcredential: Option<*const super::super::Credentials::SecHandle>, phcontext: Option<*const super::super::Credentials::SecHandle>, pinput: Option<*const SecBufferDesc>, fcontextreq: ASC_REQ_FLAGS, targetdatarep: u32, phnewcontext: Option<*mut super::super::Credentials::SecHandle>, poutput: Option<*mut SecBufferDesc>, pfcontextattr: *mut u32, ptsexpiry: Option<*mut i64>) -> windows_core::HRESULT { windows_targets::link!("secur32.dll" "system" fn AcceptSecurityContext(phcredential : *const super::super::Credentials:: SecHandle, phcontext : *const super::super::Credentials:: SecHandle, pinput : *const SecBufferDesc, fcontextreq : ASC_REQ_FLAGS, targetdatarep : u32, phnewcontext : *mut super::super::Credentials:: SecHandle, poutput : *mut SecBufferDesc, pfcontextattr : *mut u32, ptsexpiry : *mut i64) -> windows_core::HRESULT); - AcceptSecurityContext( - core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fcontextreq), - core::mem::transmute(targetdatarep), - core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfcontextattr), - core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), - ) + AcceptSecurityContext(core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), fcontextreq, targetdatarep, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcontextattr), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -24,7 +14,7 @@ where P1: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn AcquireCredentialsHandleA(pszprincipal : windows_core::PCSTR, pszpackage : windows_core::PCSTR, fcredentialuse : SECPKG_CRED, pvlogonid : *const core::ffi::c_void, pauthdata : *const core::ffi::c_void, pgetkeyfn : SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, phcredential : *mut super::super::Credentials:: SecHandle, ptsexpiry : *mut i64) -> windows_core::HRESULT); - AcquireCredentialsHandleA(pszprincipal.param().abi(), pszpackage.param().abi(), core::mem::transmute(fcredentialuse), core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcredential), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() + AcquireCredentialsHandleA(pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcredential), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -34,7 +24,7 @@ where P1: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn AcquireCredentialsHandleW(pszprincipal : windows_core::PCWSTR, pszpackage : windows_core::PCWSTR, fcredentialuse : SECPKG_CRED, pvlogonid : *const core::ffi::c_void, pauthdata : *const core::ffi::c_void, pgetkeyfn : SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, phcredential : *mut super::super::Credentials:: SecHandle, ptsexpiry : *mut i64) -> windows_core::HRESULT); - AcquireCredentialsHandleW(pszprincipal.param().abi(), pszpackage.param().abi(), core::mem::transmute(fcredentialuse), core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcredential), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() + AcquireCredentialsHandleW(pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcredential), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -44,7 +34,7 @@ where P2: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn AddCredentialsA(hcredentials : *const super::super::Credentials:: SecHandle, pszprincipal : windows_core::PCSTR, pszpackage : windows_core::PCSTR, fcredentialuse : u32, pauthdata : *const core::ffi::c_void, pgetkeyfn : SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, ptsexpiry : *mut i64) -> windows_core::HRESULT); - AddCredentialsA(core::mem::transmute(hcredentials), pszprincipal.param().abi(), pszpackage.param().abi(), core::mem::transmute(fcredentialuse), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() + AddCredentialsA(hcredentials, pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -54,7 +44,7 @@ where P2: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn AddCredentialsW(hcredentials : *const super::super::Credentials:: SecHandle, pszprincipal : windows_core::PCWSTR, pszpackage : windows_core::PCWSTR, fcredentialuse : u32, pauthdata : *const core::ffi::c_void, pgetkeyfn : SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, ptsexpiry : *mut i64) -> windows_core::HRESULT); - AddCredentialsW(core::mem::transmute(hcredentials), pszprincipal.param().abi(), pszpackage.param().abi(), core::mem::transmute(fcredentialuse), core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() + AddCredentialsW(hcredentials, pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pauthdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgetkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvgetkeyargument.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AddSecurityPackageA(pszpackagename: P0, poptions: Option<*const SECURITY_PACKAGE_OPTIONS>) -> windows_core::Result<()> @@ -76,17 +66,17 @@ where #[inline] pub unsafe fn ApplyControlToken(phcontext: *const super::super::Credentials::SecHandle, pinput: *const SecBufferDesc) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ApplyControlToken(phcontext : *const super::super::Credentials:: SecHandle, pinput : *const SecBufferDesc) -> windows_core::HRESULT); - ApplyControlToken(core::mem::transmute(phcontext), core::mem::transmute(pinput)).ok() + ApplyControlToken(phcontext, pinput).ok() } #[inline] pub unsafe fn AuditComputeEffectivePolicyBySid(psid: super::super::PSID, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyBySid(psid : super::super:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); - AuditComputeEffectivePolicyBySid(core::mem::transmute(psid), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) + AuditComputeEffectivePolicyBySid(psid, core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] pub unsafe fn AuditComputeEffectivePolicyByToken(htokenhandle: super::super::super::Foundation::HANDLE, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyByToken(htokenhandle : super::super::super::Foundation:: HANDLE, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); - AuditComputeEffectivePolicyByToken(core::mem::transmute(htokenhandle), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) + AuditComputeEffectivePolicyByToken(htokenhandle, core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] pub unsafe fn AuditEnumerateCategories(ppauditcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> bool { @@ -101,42 +91,42 @@ pub unsafe fn AuditEnumeratePerUserPolicy(ppauditsidarray: *mut *mut POLICY_AUDI #[inline] pub unsafe fn AuditEnumerateSubCategories(pauditcategoryguid: Option<*const windows_core::GUID>, bretrieveallsubcategories: bool, ppauditsubcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateSubCategories(pauditcategoryguid : *const windows_core::GUID, bretrieveallsubcategories : bool, ppauditsubcategoriesarray : *mut *mut windows_core::GUID, pdwcountreturned : *mut u32) -> bool); - AuditEnumerateSubCategories(core::mem::transmute(pauditcategoryguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(bretrieveallsubcategories), core::mem::transmute(ppauditsubcategoriesarray), core::mem::transmute(pdwcountreturned)) + AuditEnumerateSubCategories(core::mem::transmute(pauditcategoryguid.unwrap_or(core::mem::zeroed())), bretrieveallsubcategories, core::mem::transmute(ppauditsubcategoriesarray), core::mem::transmute(pdwcountreturned)) } #[inline] pub unsafe fn AuditFree(buffer: *const core::ffi::c_void) { windows_targets::link!("advapi32.dll" "system" fn AuditFree(buffer : *const core::ffi::c_void)); - AuditFree(core::mem::transmute(buffer)) + AuditFree(buffer) } #[inline] pub unsafe fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid: POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid: *mut windows_core::GUID) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid : POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid : *mut windows_core::GUID) -> bool); - AuditLookupCategoryGuidFromCategoryId(core::mem::transmute(auditcategoryid), core::mem::transmute(pauditcategoryguid)) + AuditLookupCategoryGuidFromCategoryId(auditcategoryid, core::mem::transmute(pauditcategoryguid)) } #[inline] pub unsafe fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid: *const windows_core::GUID, pauditcategoryid: *mut POLICY_AUDIT_EVENT_TYPE) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid : *const windows_core::GUID, pauditcategoryid : *mut POLICY_AUDIT_EVENT_TYPE) -> bool); - AuditLookupCategoryIdFromCategoryGuid(core::mem::transmute(pauditcategoryguid), core::mem::transmute(pauditcategoryid)) + AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid, core::mem::transmute(pauditcategoryid)) } #[inline] pub unsafe fn AuditLookupCategoryNameA(pauditcategoryguid: *const windows_core::GUID, ppszcategoryname: *mut windows_core::PSTR) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameA(pauditcategoryguid : *const windows_core::GUID, ppszcategoryname : *mut windows_core::PSTR) -> bool); - AuditLookupCategoryNameA(core::mem::transmute(pauditcategoryguid), core::mem::transmute(ppszcategoryname)) + AuditLookupCategoryNameA(pauditcategoryguid, core::mem::transmute(ppszcategoryname)) } #[inline] pub unsafe fn AuditLookupCategoryNameW(pauditcategoryguid: *const windows_core::GUID, ppszcategoryname: *mut windows_core::PWSTR) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameW(pauditcategoryguid : *const windows_core::GUID, ppszcategoryname : *mut windows_core::PWSTR) -> bool); - AuditLookupCategoryNameW(core::mem::transmute(pauditcategoryguid), core::mem::transmute(ppszcategoryname)) + AuditLookupCategoryNameW(pauditcategoryguid, core::mem::transmute(ppszcategoryname)) } #[inline] pub unsafe fn AuditLookupSubCategoryNameA(pauditsubcategoryguid: *const windows_core::GUID, ppszsubcategoryname: *mut windows_core::PSTR) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameA(pauditsubcategoryguid : *const windows_core::GUID, ppszsubcategoryname : *mut windows_core::PSTR) -> bool); - AuditLookupSubCategoryNameA(core::mem::transmute(pauditsubcategoryguid), core::mem::transmute(ppszsubcategoryname)) + AuditLookupSubCategoryNameA(pauditsubcategoryguid, core::mem::transmute(ppszsubcategoryname)) } #[inline] pub unsafe fn AuditLookupSubCategoryNameW(pauditsubcategoryguid: *const windows_core::GUID, ppszsubcategoryname: *mut windows_core::PWSTR) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameW(pauditsubcategoryguid : *const windows_core::GUID, ppszsubcategoryname : *mut windows_core::PWSTR) -> bool); - AuditLookupSubCategoryNameW(core::mem::transmute(pauditsubcategoryguid), core::mem::transmute(ppszsubcategoryname)) + AuditLookupSubCategoryNameW(pauditsubcategoryguid, core::mem::transmute(ppszsubcategoryname)) } #[inline] pub unsafe fn AuditQueryGlobalSaclA(objecttypename: P0, acl: *mut *mut super::super::ACL) -> bool @@ -157,12 +147,12 @@ where #[inline] pub unsafe fn AuditQueryPerUserPolicy(psid: super::super::PSID, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditQueryPerUserPolicy(psid : super::super:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); - AuditQueryPerUserPolicy(core::mem::transmute(psid), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) + AuditQueryPerUserPolicy(psid, core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] pub unsafe fn AuditQuerySecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditQuerySecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor : *mut super::super:: PSECURITY_DESCRIPTOR) -> bool); - AuditQuerySecurity(core::mem::transmute(securityinformation), core::mem::transmute(ppsecuritydescriptor)) + AuditQuerySecurity(securityinformation, core::mem::transmute(ppsecuritydescriptor)) } #[inline] pub unsafe fn AuditQuerySystemPolicy(psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { @@ -188,12 +178,12 @@ where #[inline] pub unsafe fn AuditSetPerUserPolicy(psid: super::super::PSID, pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditSetPerUserPolicy(psid : super::super:: PSID, pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> bool); - AuditSetPerUserPolicy(core::mem::transmute(psid), core::mem::transmute(pauditpolicy.as_ptr()), pauditpolicy.len().try_into().unwrap()) + AuditSetPerUserPolicy(psid, core::mem::transmute(pauditpolicy.as_ptr()), pauditpolicy.len().try_into().unwrap()) } #[inline] pub unsafe fn AuditSetSecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> bool { windows_targets::link!("advapi32.dll" "system" fn AuditSetSecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super:: PSECURITY_DESCRIPTOR) -> bool); - AuditSetSecurity(core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + AuditSetSecurity(securityinformation, psecuritydescriptor) } #[inline] pub unsafe fn AuditSetSystemPolicy(pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> bool { @@ -203,42 +193,42 @@ pub unsafe fn AuditSetSystemPolicy(pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> #[inline] pub unsafe fn ChangeAccountPasswordA(pszpackagename: *const i8, pszdomainname: *const i8, pszaccountname: *const i8, pszoldpassword: *const i8, psznewpassword: *const i8, bimpersonating: bool, dwreserved: u32, poutput: *mut SecBufferDesc) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordA(pszpackagename : *const i8, pszdomainname : *const i8, pszaccountname : *const i8, pszoldpassword : *const i8, psznewpassword : *const i8, bimpersonating : bool, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); - ChangeAccountPasswordA(core::mem::transmute(pszpackagename), core::mem::transmute(pszdomainname), core::mem::transmute(pszaccountname), core::mem::transmute(pszoldpassword), core::mem::transmute(psznewpassword), core::mem::transmute(bimpersonating), core::mem::transmute(dwreserved), core::mem::transmute(poutput)).ok() + ChangeAccountPasswordA(pszpackagename, pszdomainname, pszaccountname, pszoldpassword, psznewpassword, bimpersonating, dwreserved, core::mem::transmute(poutput)).ok() } #[inline] pub unsafe fn ChangeAccountPasswordW(pszpackagename: *const u16, pszdomainname: *const u16, pszaccountname: *const u16, pszoldpassword: *const u16, psznewpassword: *const u16, bimpersonating: bool, dwreserved: u32, poutput: *mut SecBufferDesc) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordW(pszpackagename : *const u16, pszdomainname : *const u16, pszaccountname : *const u16, pszoldpassword : *const u16, psznewpassword : *const u16, bimpersonating : bool, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); - ChangeAccountPasswordW(core::mem::transmute(pszpackagename), core::mem::transmute(pszdomainname), core::mem::transmute(pszaccountname), core::mem::transmute(pszoldpassword), core::mem::transmute(psznewpassword), core::mem::transmute(bimpersonating), core::mem::transmute(dwreserved), core::mem::transmute(poutput)).ok() + ChangeAccountPasswordW(pszpackagename, pszdomainname, pszaccountname, pszoldpassword, psznewpassword, bimpersonating, dwreserved, core::mem::transmute(poutput)).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn CompleteAuthToken(phcontext: *const super::super::Credentials::SecHandle, ptoken: *const SecBufferDesc) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn CompleteAuthToken(phcontext : *const super::super::Credentials:: SecHandle, ptoken : *const SecBufferDesc) -> windows_core::HRESULT); - CompleteAuthToken(core::mem::transmute(phcontext), core::mem::transmute(ptoken)).ok() + CompleteAuthToken(phcontext, ptoken).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn CredMarshalTargetInfo(intargetinfo: *const super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: *mut *mut u16, buffersize: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn CredMarshalTargetInfo(intargetinfo : *const super::super::Credentials:: CREDENTIAL_TARGET_INFORMATIONW, buffer : *mut *mut u16, buffersize : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - CredMarshalTargetInfo(core::mem::transmute(intargetinfo), core::mem::transmute(buffer), core::mem::transmute(buffersize)) + CredMarshalTargetInfo(intargetinfo, core::mem::transmute(buffer), core::mem::transmute(buffersize)) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn CredUnmarshalTargetInfo(buffer: *const u16, buffersize: u32, rettargetinfo: Option<*mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW>, retactualsize: Option<*mut u32>) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn CredUnmarshalTargetInfo(buffer : *const u16, buffersize : u32, rettargetinfo : *mut *mut super::super::Credentials:: CREDENTIAL_TARGET_INFORMATIONW, retactualsize : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - CredUnmarshalTargetInfo(core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(rettargetinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(retactualsize.unwrap_or(core::mem::zeroed()))) + CredUnmarshalTargetInfo(buffer, buffersize, core::mem::transmute(rettargetinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(retactualsize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn DecryptMessage(phcontext: *const super::super::Credentials::SecHandle, pmessage: *const SecBufferDesc, messageseqno: u32, pfqop: Option<*mut u32>) -> windows_core::HRESULT { windows_targets::link!("secur32.dll" "system" fn DecryptMessage(phcontext : *const super::super::Credentials:: SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_core::HRESULT); - DecryptMessage(core::mem::transmute(phcontext), core::mem::transmute(pmessage), core::mem::transmute(messageseqno), core::mem::transmute(pfqop.unwrap_or(core::mem::zeroed()))) + DecryptMessage(phcontext, pmessage, messageseqno, core::mem::transmute(pfqop.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn DeleteSecurityContext(phcontext: *const super::super::Credentials::SecHandle) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn DeleteSecurityContext(phcontext : *const super::super::Credentials:: SecHandle) -> windows_core::HRESULT); - DeleteSecurityContext(core::mem::transmute(phcontext)).ok() + DeleteSecurityContext(phcontext).ok() } #[inline] pub unsafe fn DeleteSecurityPackageA(pszpackagename: P0) -> windows_core::Result<()> @@ -260,7 +250,7 @@ where #[inline] pub unsafe fn EncryptMessage(phcontext: *const super::super::Credentials::SecHandle, fqop: u32, pmessage: *const SecBufferDesc, messageseqno: u32) -> windows_core::HRESULT { windows_targets::link!("secur32.dll" "system" fn EncryptMessage(phcontext : *const super::super::Credentials:: SecHandle, fqop : u32, pmessage : *const SecBufferDesc, messageseqno : u32) -> windows_core::HRESULT); - EncryptMessage(core::mem::transmute(phcontext), core::mem::transmute(fqop), core::mem::transmute(pmessage), core::mem::transmute(messageseqno)) + EncryptMessage(phcontext, fqop, pmessage, messageseqno) } #[inline] pub unsafe fn EnumerateSecurityPackagesA(pcpackages: *mut u32, pppackageinfo: *mut *mut SecPkgInfoA) -> windows_core::Result<()> { @@ -276,7 +266,7 @@ pub unsafe fn EnumerateSecurityPackagesW(pcpackages: *mut u32, pppackageinfo: *m #[inline] pub unsafe fn ExportSecurityContext(phcontext: *const super::super::Credentials::SecHandle, fflags: EXPORT_SECURITY_CONTEXT_FLAGS, ppackedcontext: *mut SecBuffer, ptoken: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ExportSecurityContext(phcontext : *const super::super::Credentials:: SecHandle, fflags : EXPORT_SECURITY_CONTEXT_FLAGS, ppackedcontext : *mut SecBuffer, ptoken : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ExportSecurityContext(core::mem::transmute(phcontext), core::mem::transmute(fflags), core::mem::transmute(ppackedcontext), core::mem::transmute(ptoken)).ok() + ExportSecurityContext(phcontext, fflags, core::mem::transmute(ppackedcontext), core::mem::transmute(ptoken)).ok() } #[inline] pub unsafe fn FreeContextBuffer(pvcontextbuffer: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -287,33 +277,33 @@ pub unsafe fn FreeContextBuffer(pvcontextbuffer: *mut core::ffi::c_void) -> wind #[inline] pub unsafe fn FreeCredentialsHandle(phcredential: *const super::super::Credentials::SecHandle) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn FreeCredentialsHandle(phcredential : *const super::super::Credentials:: SecHandle) -> windows_core::HRESULT); - FreeCredentialsHandle(core::mem::transmute(phcredential)).ok() + FreeCredentialsHandle(phcredential).ok() } #[inline] pub unsafe fn GetComputerObjectNameA(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PSTR, nsize : *mut u32) -> bool); - GetComputerObjectNameA(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + GetComputerObjectNameA(nameformat, core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] pub unsafe fn GetComputerObjectNameW(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PWSTR, nsize : *mut u32) -> bool); - GetComputerObjectNameW(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + GetComputerObjectNameW(nameformat, core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] pub unsafe fn GetUserNameExA(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { windows_targets::link!("secur32.dll" "system" fn GetUserNameExA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PSTR, nsize : *mut u32) -> bool); - GetUserNameExA(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + GetUserNameExA(nameformat, core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] pub unsafe fn GetUserNameExW(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { windows_targets::link!("secur32.dll" "system" fn GetUserNameExW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PWSTR, nsize : *mut u32) -> bool); - GetUserNameExW(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + GetUserNameExW(nameformat, core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn ImpersonateSecurityContext(phcontext: *const super::super::Credentials::SecHandle) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn ImpersonateSecurityContext(phcontext : *const super::super::Credentials:: SecHandle) -> windows_core::HRESULT); - ImpersonateSecurityContext(core::mem::transmute(phcontext)).ok() + ImpersonateSecurityContext(phcontext).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -323,7 +313,7 @@ where { windows_targets::link!("secur32.dll" "system" fn ImportSecurityContextA(pszpackage : windows_core::PCSTR, ppackedcontext : *const SecBuffer, token : *const core::ffi::c_void, phcontext : *mut super::super::Credentials:: SecHandle) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ImportSecurityContextA(pszpackage.param().abi(), core::mem::transmute(ppackedcontext), core::mem::transmute(token), &mut result__).map(|| core::mem::transmute(result__)) + ImportSecurityContextA(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -333,7 +323,7 @@ where { windows_targets::link!("secur32.dll" "system" fn ImportSecurityContextW(pszpackage : windows_core::PCWSTR, ppackedcontext : *const SecBuffer, token : *const core::ffi::c_void, phcontext : *mut super::super::Credentials:: SecHandle) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ImportSecurityContextW(pszpackage.param().abi(), core::mem::transmute(ppackedcontext), core::mem::transmute(token), &mut result__).map(|| core::mem::transmute(result__)) + ImportSecurityContextW(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -355,11 +345,11 @@ pub unsafe fn InitializeSecurityContextA(phcredential: Option<*const super::supe core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(psztargetname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fcontextreq), - core::mem::transmute(reserved1), - core::mem::transmute(targetdatarep), + fcontextreq, + reserved1, + targetdatarep, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2), + reserved2, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcontextattr), @@ -374,11 +364,11 @@ pub unsafe fn InitializeSecurityContextW(phcredential: Option<*const super::supe core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(psztargetname.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fcontextreq), - core::mem::transmute(reserved1), - core::mem::transmute(targetdatarep), + fcontextreq, + reserved1, + targetdatarep, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2), + reserved2, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcontextattr), @@ -388,17 +378,17 @@ pub unsafe fn InitializeSecurityContextW(phcredential: Option<*const super::supe #[inline] pub unsafe fn LsaAddAccountRights(policyhandle: LSA_HANDLE, accountsid: super::super::PSID, userrights: &[LSA_UNICODE_STRING]) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaAddAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); - LsaAddAccountRights(core::mem::transmute(policyhandle), core::mem::transmute(accountsid), core::mem::transmute(userrights.as_ptr()), userrights.len().try_into().unwrap()) + LsaAddAccountRights(policyhandle, accountsid, core::mem::transmute(userrights.as_ptr()), userrights.len().try_into().unwrap()) } #[inline] pub unsafe fn LsaCallAuthenticationPackage(lsahandle: super::super::super::Foundation::HANDLE, authenticationpackage: u32, protocolsubmitbuffer: *const core::ffi::c_void, submitbufferlength: u32, protocolreturnbuffer: Option<*mut *mut core::ffi::c_void>, returnbufferlength: Option<*mut u32>, protocolstatus: Option<*mut i32>) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaCallAuthenticationPackage(lsahandle : super::super::super::Foundation:: HANDLE, authenticationpackage : u32, protocolsubmitbuffer : *const core::ffi::c_void, submitbufferlength : u32, protocolreturnbuffer : *mut *mut core::ffi::c_void, returnbufferlength : *mut u32, protocolstatus : *mut i32) -> super::super::super::Foundation:: NTSTATUS); - LsaCallAuthenticationPackage(core::mem::transmute(lsahandle), core::mem::transmute(authenticationpackage), core::mem::transmute(protocolsubmitbuffer), core::mem::transmute(submitbufferlength), core::mem::transmute(protocolreturnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnbufferlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(protocolstatus.unwrap_or(core::mem::zeroed()))) + LsaCallAuthenticationPackage(lsahandle, authenticationpackage, protocolsubmitbuffer, submitbufferlength, core::mem::transmute(protocolreturnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnbufferlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(protocolstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn LsaClose(objecthandle: LSA_HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaClose(objecthandle : LSA_HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaClose(core::mem::transmute(objecthandle)) + LsaClose(objecthandle) } #[inline] pub unsafe fn LsaConnectUntrusted(lsahandle: *mut super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::NTSTATUS { @@ -408,27 +398,27 @@ pub unsafe fn LsaConnectUntrusted(lsahandle: *mut super::super::super::Foundatio #[inline] pub unsafe fn LsaCreateTrustedDomainEx(policyhandle: LSA_HANDLE, trusteddomaininformation: *const TRUSTED_DOMAIN_INFORMATION_EX, authenticationinformation: *const TRUSTED_DOMAIN_AUTH_INFORMATION, desiredaccess: u32, trusteddomainhandle: *mut LSA_HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaCreateTrustedDomainEx(policyhandle : LSA_HANDLE, trusteddomaininformation : *const TRUSTED_DOMAIN_INFORMATION_EX, authenticationinformation : *const TRUSTED_DOMAIN_AUTH_INFORMATION, desiredaccess : u32, trusteddomainhandle : *mut LSA_HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaCreateTrustedDomainEx(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomaininformation), core::mem::transmute(authenticationinformation), core::mem::transmute(desiredaccess), core::mem::transmute(trusteddomainhandle)) + LsaCreateTrustedDomainEx(policyhandle, trusteddomaininformation, authenticationinformation, desiredaccess, core::mem::transmute(trusteddomainhandle)) } #[inline] pub unsafe fn LsaDeleteTrustedDomain(policyhandle: LSA_HANDLE, trusteddomainsid: super::super::PSID) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaDeleteTrustedDomain(policyhandle : LSA_HANDLE, trusteddomainsid : super::super:: PSID) -> super::super::super::Foundation:: NTSTATUS); - LsaDeleteTrustedDomain(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainsid)) + LsaDeleteTrustedDomain(policyhandle, trusteddomainsid) } #[inline] pub unsafe fn LsaDeregisterLogonProcess(lsahandle: super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaDeregisterLogonProcess(lsahandle : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaDeregisterLogonProcess(core::mem::transmute(lsahandle)) + LsaDeregisterLogonProcess(lsahandle) } #[inline] pub unsafe fn LsaEnumerateAccountRights(policyhandle: LSA_HANDLE, accountsid: super::super::PSID, userrights: *mut *mut LSA_UNICODE_STRING, countofrights: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaEnumerateAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, userrights : *mut *mut LSA_UNICODE_STRING, countofrights : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaEnumerateAccountRights(core::mem::transmute(policyhandle), core::mem::transmute(accountsid), core::mem::transmute(userrights), core::mem::transmute(countofrights)) + LsaEnumerateAccountRights(policyhandle, accountsid, core::mem::transmute(userrights), core::mem::transmute(countofrights)) } #[inline] pub unsafe fn LsaEnumerateAccountsWithUserRight(policyhandle: LSA_HANDLE, userright: Option<*const LSA_UNICODE_STRING>, buffer: *mut *mut core::ffi::c_void, countreturned: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaEnumerateAccountsWithUserRight(policyhandle : LSA_HANDLE, userright : *const LSA_UNICODE_STRING, buffer : *mut *mut core::ffi::c_void, countreturned : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaEnumerateAccountsWithUserRight(core::mem::transmute(policyhandle), core::mem::transmute(userright.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(countreturned)) + LsaEnumerateAccountsWithUserRight(policyhandle, core::mem::transmute(userright.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer), core::mem::transmute(countreturned)) } #[inline] pub unsafe fn LsaEnumerateLogonSessions(logonsessioncount: *mut u32, logonsessionlist: *mut *mut super::super::super::Foundation::LUID) -> super::super::super::Foundation::NTSTATUS { @@ -438,12 +428,12 @@ pub unsafe fn LsaEnumerateLogonSessions(logonsessioncount: *mut u32, logonsessio #[inline] pub unsafe fn LsaEnumerateTrustedDomains(policyhandle: LSA_HANDLE, enumerationcontext: *mut u32, buffer: *mut *mut core::ffi::c_void, preferedmaximumlength: u32, countreturned: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaEnumerateTrustedDomains(policyhandle : LSA_HANDLE, enumerationcontext : *mut u32, buffer : *mut *mut core::ffi::c_void, preferedmaximumlength : u32, countreturned : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaEnumerateTrustedDomains(core::mem::transmute(policyhandle), core::mem::transmute(enumerationcontext), core::mem::transmute(buffer), core::mem::transmute(preferedmaximumlength), core::mem::transmute(countreturned)) + LsaEnumerateTrustedDomains(policyhandle, core::mem::transmute(enumerationcontext), core::mem::transmute(buffer), preferedmaximumlength, core::mem::transmute(countreturned)) } #[inline] pub unsafe fn LsaEnumerateTrustedDomainsEx(policyhandle: LSA_HANDLE, enumerationcontext: *mut u32, buffer: *mut *mut core::ffi::c_void, preferedmaximumlength: u32, countreturned: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaEnumerateTrustedDomainsEx(policyhandle : LSA_HANDLE, enumerationcontext : *mut u32, buffer : *mut *mut core::ffi::c_void, preferedmaximumlength : u32, countreturned : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaEnumerateTrustedDomainsEx(core::mem::transmute(policyhandle), core::mem::transmute(enumerationcontext), core::mem::transmute(buffer), core::mem::transmute(preferedmaximumlength), core::mem::transmute(countreturned)) + LsaEnumerateTrustedDomainsEx(policyhandle, core::mem::transmute(enumerationcontext), core::mem::transmute(buffer), preferedmaximumlength, core::mem::transmute(countreturned)) } #[inline] pub unsafe fn LsaFreeMemory(buffer: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::NTSTATUS { @@ -453,7 +443,7 @@ pub unsafe fn LsaFreeMemory(buffer: Option<*const core::ffi::c_void>) -> super:: #[inline] pub unsafe fn LsaFreeReturnBuffer(buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaFreeReturnBuffer(buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaFreeReturnBuffer(core::mem::transmute(buffer)) + LsaFreeReturnBuffer(buffer) } #[inline] pub unsafe fn LsaGetAppliedCAPIDs(systemname: Option<*const LSA_UNICODE_STRING>, capids: *mut *mut super::super::PSID, capidcount: *mut u32) -> super::super::super::Foundation::NTSTATUS { @@ -463,67 +453,52 @@ pub unsafe fn LsaGetAppliedCAPIDs(systemname: Option<*const LSA_UNICODE_STRING>, #[inline] pub unsafe fn LsaGetLogonSessionData(logonid: *const super::super::super::Foundation::LUID, pplogonsessiondata: *mut *mut SECURITY_LOGON_SESSION_DATA) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaGetLogonSessionData(logonid : *const super::super::super::Foundation:: LUID, pplogonsessiondata : *mut *mut SECURITY_LOGON_SESSION_DATA) -> super::super::super::Foundation:: NTSTATUS); - LsaGetLogonSessionData(core::mem::transmute(logonid), core::mem::transmute(pplogonsessiondata)) + LsaGetLogonSessionData(logonid, core::mem::transmute(pplogonsessiondata)) } #[inline] pub unsafe fn LsaLogonUser(lsahandle: super::super::super::Foundation::HANDLE, originname: *const LSA_STRING, logontype: SECURITY_LOGON_TYPE, authenticationpackage: u32, authenticationinformation: *const core::ffi::c_void, authenticationinformationlength: u32, localgroups: Option<*const super::super::TOKEN_GROUPS>, sourcecontext: *const super::super::TOKEN_SOURCE, profilebuffer: *mut *mut core::ffi::c_void, profilebufferlength: *mut u32, logonid: *mut super::super::super::Foundation::LUID, token: *mut super::super::super::Foundation::HANDLE, quotas: *mut super::super::QUOTA_LIMITS, substatus: *mut i32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaLogonUser(lsahandle : super::super::super::Foundation:: HANDLE, originname : *const LSA_STRING, logontype : SECURITY_LOGON_TYPE, authenticationpackage : u32, authenticationinformation : *const core::ffi::c_void, authenticationinformationlength : u32, localgroups : *const super::super:: TOKEN_GROUPS, sourcecontext : *const super::super:: TOKEN_SOURCE, profilebuffer : *mut *mut core::ffi::c_void, profilebufferlength : *mut u32, logonid : *mut super::super::super::Foundation:: LUID, token : *mut super::super::super::Foundation:: HANDLE, quotas : *mut super::super:: QUOTA_LIMITS, substatus : *mut i32) -> super::super::super::Foundation:: NTSTATUS); - LsaLogonUser( - core::mem::transmute(lsahandle), - core::mem::transmute(originname), - core::mem::transmute(logontype), - core::mem::transmute(authenticationpackage), - core::mem::transmute(authenticationinformation), - core::mem::transmute(authenticationinformationlength), - core::mem::transmute(localgroups.unwrap_or(core::mem::zeroed())), - core::mem::transmute(sourcecontext), - core::mem::transmute(profilebuffer), - core::mem::transmute(profilebufferlength), - core::mem::transmute(logonid), - core::mem::transmute(token), - core::mem::transmute(quotas), - core::mem::transmute(substatus), - ) + LsaLogonUser(lsahandle, originname, logontype, authenticationpackage, authenticationinformation, authenticationinformationlength, core::mem::transmute(localgroups.unwrap_or(core::mem::zeroed())), sourcecontext, core::mem::transmute(profilebuffer), core::mem::transmute(profilebufferlength), core::mem::transmute(logonid), core::mem::transmute(token), core::mem::transmute(quotas), core::mem::transmute(substatus)) } #[inline] pub unsafe fn LsaLookupAuthenticationPackage(lsahandle: super::super::super::Foundation::HANDLE, packagename: *const LSA_STRING, authenticationpackage: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaLookupAuthenticationPackage(lsahandle : super::super::super::Foundation:: HANDLE, packagename : *const LSA_STRING, authenticationpackage : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupAuthenticationPackage(core::mem::transmute(lsahandle), core::mem::transmute(packagename), core::mem::transmute(authenticationpackage)) + LsaLookupAuthenticationPackage(lsahandle, packagename, core::mem::transmute(authenticationpackage)) } #[inline] pub unsafe fn LsaLookupNames(policyhandle: LSA_HANDLE, count: u32, names: *const LSA_UNICODE_STRING, referenceddomains: *mut *mut LSA_REFERENCED_DOMAIN_LIST, sids: *mut *mut LSA_TRANSLATED_SID) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaLookupNames(policyhandle : LSA_HANDLE, count : u32, names : *const LSA_UNICODE_STRING, referenceddomains : *mut *mut LSA_REFERENCED_DOMAIN_LIST, sids : *mut *mut LSA_TRANSLATED_SID) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupNames(core::mem::transmute(policyhandle), core::mem::transmute(count), core::mem::transmute(names), core::mem::transmute(referenceddomains), core::mem::transmute(sids)) + LsaLookupNames(policyhandle, count, names, core::mem::transmute(referenceddomains), core::mem::transmute(sids)) } #[inline] pub unsafe fn LsaLookupNames2(policyhandle: LSA_HANDLE, flags: u32, count: u32, names: *const LSA_UNICODE_STRING, referenceddomains: *mut *mut LSA_REFERENCED_DOMAIN_LIST, sids: *mut *mut LSA_TRANSLATED_SID2) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaLookupNames2(policyhandle : LSA_HANDLE, flags : u32, count : u32, names : *const LSA_UNICODE_STRING, referenceddomains : *mut *mut LSA_REFERENCED_DOMAIN_LIST, sids : *mut *mut LSA_TRANSLATED_SID2) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupNames2(core::mem::transmute(policyhandle), core::mem::transmute(flags), core::mem::transmute(count), core::mem::transmute(names), core::mem::transmute(referenceddomains), core::mem::transmute(sids)) + LsaLookupNames2(policyhandle, flags, count, names, core::mem::transmute(referenceddomains), core::mem::transmute(sids)) } #[inline] pub unsafe fn LsaLookupSids(policyhandle: LSA_HANDLE, count: u32, sids: *const super::super::PSID, referenceddomains: *mut *mut LSA_REFERENCED_DOMAIN_LIST, names: *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaLookupSids(policyhandle : LSA_HANDLE, count : u32, sids : *const super::super:: PSID, referenceddomains : *mut *mut LSA_REFERENCED_DOMAIN_LIST, names : *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupSids(core::mem::transmute(policyhandle), core::mem::transmute(count), core::mem::transmute(sids), core::mem::transmute(referenceddomains), core::mem::transmute(names)) + LsaLookupSids(policyhandle, count, sids, core::mem::transmute(referenceddomains), core::mem::transmute(names)) } #[inline] pub unsafe fn LsaLookupSids2(policyhandle: LSA_HANDLE, lookupoptions: u32, count: u32, sids: *const super::super::PSID, referenceddomains: *mut *mut LSA_REFERENCED_DOMAIN_LIST, names: *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaLookupSids2(policyhandle : LSA_HANDLE, lookupoptions : u32, count : u32, sids : *const super::super:: PSID, referenceddomains : *mut *mut LSA_REFERENCED_DOMAIN_LIST, names : *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupSids2(core::mem::transmute(policyhandle), core::mem::transmute(lookupoptions), core::mem::transmute(count), core::mem::transmute(sids), core::mem::transmute(referenceddomains), core::mem::transmute(names)) + LsaLookupSids2(policyhandle, lookupoptions, count, sids, core::mem::transmute(referenceddomains), core::mem::transmute(names)) } #[inline] pub unsafe fn LsaNtStatusToWinError(status: super::super::super::Foundation::NTSTATUS) -> u32 { windows_targets::link!("advapi32.dll" "system" fn LsaNtStatusToWinError(status : super::super::super::Foundation:: NTSTATUS) -> u32); - LsaNtStatusToWinError(core::mem::transmute(status)) + LsaNtStatusToWinError(status) } #[inline] pub unsafe fn LsaOpenPolicy(systemname: Option<*const LSA_UNICODE_STRING>, objectattributes: *const LSA_OBJECT_ATTRIBUTES, desiredaccess: u32, policyhandle: *mut LSA_HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaOpenPolicy(systemname : *const LSA_UNICODE_STRING, objectattributes : *const LSA_OBJECT_ATTRIBUTES, desiredaccess : u32, policyhandle : *mut LSA_HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaOpenPolicy(core::mem::transmute(systemname.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectattributes), core::mem::transmute(desiredaccess), core::mem::transmute(policyhandle)) + LsaOpenPolicy(core::mem::transmute(systemname.unwrap_or(core::mem::zeroed())), objectattributes, desiredaccess, core::mem::transmute(policyhandle)) } #[inline] pub unsafe fn LsaOpenTrustedDomainByName(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, desiredaccess: u32, trusteddomainhandle: *mut LSA_HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaOpenTrustedDomainByName(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, desiredaccess : u32, trusteddomainhandle : *mut LSA_HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaOpenTrustedDomainByName(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(desiredaccess), core::mem::transmute(trusteddomainhandle)) + LsaOpenTrustedDomainByName(policyhandle, trusteddomainname, desiredaccess, core::mem::transmute(trusteddomainhandle)) } #[inline] pub unsafe fn LsaQueryCAPs(capids: Option<&[super::super::PSID]>, caps: *mut *mut CENTRAL_ACCESS_POLICY, capcount: *mut u32) -> super::super::super::Foundation::NTSTATUS { @@ -533,157 +508,157 @@ pub unsafe fn LsaQueryCAPs(capids: Option<&[super::super::PSID]>, caps: *mut *mu #[inline] pub unsafe fn LsaQueryDomainInformationPolicy(policyhandle: LSA_HANDLE, informationclass: POLICY_DOMAIN_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaQueryDomainInformationPolicy(policyhandle : LSA_HANDLE, informationclass : POLICY_DOMAIN_INFORMATION_CLASS, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryDomainInformationPolicy(core::mem::transmute(policyhandle), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaQueryDomainInformationPolicy(policyhandle, informationclass, core::mem::transmute(buffer)) } #[inline] pub unsafe fn LsaQueryForestTrustInformation(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, foresttrustinfo: *mut *mut LSA_FOREST_TRUST_INFORMATION) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaQueryForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *mut *mut LSA_FOREST_TRUST_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryForestTrustInformation(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(foresttrustinfo)) + LsaQueryForestTrustInformation(policyhandle, trusteddomainname, core::mem::transmute(foresttrustinfo)) } #[inline] pub unsafe fn LsaQueryForestTrustInformation2(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, highestrecordtype: LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo: *mut *mut LSA_FOREST_TRUST_INFORMATION2) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaQueryForestTrustInformation2(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, highestrecordtype : LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo : *mut *mut LSA_FOREST_TRUST_INFORMATION2) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryForestTrustInformation2(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(highestrecordtype), core::mem::transmute(foresttrustinfo)) + LsaQueryForestTrustInformation2(policyhandle, trusteddomainname, highestrecordtype, core::mem::transmute(foresttrustinfo)) } #[inline] pub unsafe fn LsaQueryInformationPolicy(policyhandle: LSA_HANDLE, informationclass: POLICY_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaQueryInformationPolicy(policyhandle : LSA_HANDLE, informationclass : POLICY_INFORMATION_CLASS, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryInformationPolicy(core::mem::transmute(policyhandle), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaQueryInformationPolicy(policyhandle, informationclass, core::mem::transmute(buffer)) } #[inline] pub unsafe fn LsaQueryTrustedDomainInfo(policyhandle: LSA_HANDLE, trusteddomainsid: super::super::PSID, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaQueryTrustedDomainInfo(policyhandle : LSA_HANDLE, trusteddomainsid : super::super:: PSID, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryTrustedDomainInfo(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainsid), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaQueryTrustedDomainInfo(policyhandle, trusteddomainsid, informationclass, core::mem::transmute(buffer)) } #[inline] pub unsafe fn LsaQueryTrustedDomainInfoByName(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaQueryTrustedDomainInfoByName(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryTrustedDomainInfoByName(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaQueryTrustedDomainInfoByName(policyhandle, trusteddomainname, informationclass, core::mem::transmute(buffer)) } #[inline] pub unsafe fn LsaRegisterLogonProcess(logonprocessname: *const LSA_STRING, lsahandle: *mut super::super::super::Foundation::HANDLE, securitymode: *mut u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaRegisterLogonProcess(logonprocessname : *const LSA_STRING, lsahandle : *mut super::super::super::Foundation:: HANDLE, securitymode : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaRegisterLogonProcess(core::mem::transmute(logonprocessname), core::mem::transmute(lsahandle), core::mem::transmute(securitymode)) + LsaRegisterLogonProcess(logonprocessname, core::mem::transmute(lsahandle), core::mem::transmute(securitymode)) } #[inline] pub unsafe fn LsaRegisterPolicyChangeNotification(informationclass: POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle: super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaRegisterPolicyChangeNotification(informationclass : POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaRegisterPolicyChangeNotification(core::mem::transmute(informationclass), core::mem::transmute(notificationeventhandle)) + LsaRegisterPolicyChangeNotification(informationclass, notificationeventhandle) } #[inline] pub unsafe fn LsaRemoveAccountRights(policyhandle: LSA_HANDLE, accountsid: super::super::PSID, allrights: bool, userrights: Option<&[LSA_UNICODE_STRING]>) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaRemoveAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, allrights : bool, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); - LsaRemoveAccountRights(core::mem::transmute(policyhandle), core::mem::transmute(accountsid), core::mem::transmute(allrights), core::mem::transmute(userrights.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), userrights.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + LsaRemoveAccountRights(policyhandle, accountsid, allrights, core::mem::transmute(userrights.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), userrights.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn LsaRetrievePrivateData(policyhandle: LSA_HANDLE, keyname: *const LSA_UNICODE_STRING, privatedata: *mut *mut LSA_UNICODE_STRING) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaRetrievePrivateData(policyhandle : LSA_HANDLE, keyname : *const LSA_UNICODE_STRING, privatedata : *mut *mut LSA_UNICODE_STRING) -> super::super::super::Foundation:: NTSTATUS); - LsaRetrievePrivateData(core::mem::transmute(policyhandle), core::mem::transmute(keyname), core::mem::transmute(privatedata)) + LsaRetrievePrivateData(policyhandle, keyname, core::mem::transmute(privatedata)) } #[inline] pub unsafe fn LsaSetCAPs(capdns: Option<&[LSA_UNICODE_STRING]>, flags: u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetCAPs(capdns : *const LSA_UNICODE_STRING, capdncount : u32, flags : u32) -> super::super::super::Foundation:: NTSTATUS); - LsaSetCAPs(core::mem::transmute(capdns.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), capdns.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + LsaSetCAPs(core::mem::transmute(capdns.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), capdns.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn LsaSetDomainInformationPolicy(policyhandle: LSA_HANDLE, informationclass: POLICY_DOMAIN_INFORMATION_CLASS, buffer: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetDomainInformationPolicy(policyhandle : LSA_HANDLE, informationclass : POLICY_DOMAIN_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaSetDomainInformationPolicy(core::mem::transmute(policyhandle), core::mem::transmute(informationclass), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + LsaSetDomainInformationPolicy(policyhandle, informationclass, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn LsaSetForestTrustInformation(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, foresttrustinfo: *const LSA_FOREST_TRUST_INFORMATION, checkonly: bool, collisioninfo: *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION, checkonly : bool, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaSetForestTrustInformation(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(foresttrustinfo), core::mem::transmute(checkonly), core::mem::transmute(collisioninfo)) + LsaSetForestTrustInformation(policyhandle, trusteddomainname, foresttrustinfo, checkonly, core::mem::transmute(collisioninfo)) } #[inline] pub unsafe fn LsaSetForestTrustInformation2(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, highestrecordtype: LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo: *const LSA_FOREST_TRUST_INFORMATION2, checkonly: bool, collisioninfo: *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation2(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, highestrecordtype : LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION2, checkonly : bool, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaSetForestTrustInformation2(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(highestrecordtype), core::mem::transmute(foresttrustinfo), core::mem::transmute(checkonly), core::mem::transmute(collisioninfo)) + LsaSetForestTrustInformation2(policyhandle, trusteddomainname, highestrecordtype, foresttrustinfo, checkonly, core::mem::transmute(collisioninfo)) } #[inline] pub unsafe fn LsaSetInformationPolicy(policyhandle: LSA_HANDLE, informationclass: POLICY_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetInformationPolicy(policyhandle : LSA_HANDLE, informationclass : POLICY_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaSetInformationPolicy(core::mem::transmute(policyhandle), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaSetInformationPolicy(policyhandle, informationclass, buffer) } #[inline] pub unsafe fn LsaSetTrustedDomainInfoByName(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetTrustedDomainInfoByName(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaSetTrustedDomainInfoByName(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaSetTrustedDomainInfoByName(policyhandle, trusteddomainname, informationclass, buffer) } #[inline] pub unsafe fn LsaSetTrustedDomainInformation(policyhandle: LSA_HANDLE, trusteddomainsid: super::super::PSID, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaSetTrustedDomainInformation(policyhandle : LSA_HANDLE, trusteddomainsid : super::super:: PSID, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaSetTrustedDomainInformation(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainsid), core::mem::transmute(informationclass), core::mem::transmute(buffer)) + LsaSetTrustedDomainInformation(policyhandle, trusteddomainsid, informationclass, buffer) } #[inline] pub unsafe fn LsaStorePrivateData(policyhandle: LSA_HANDLE, keyname: *const LSA_UNICODE_STRING, privatedata: Option<*const LSA_UNICODE_STRING>) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" fn LsaStorePrivateData(policyhandle : LSA_HANDLE, keyname : *const LSA_UNICODE_STRING, privatedata : *const LSA_UNICODE_STRING) -> super::super::super::Foundation:: NTSTATUS); - LsaStorePrivateData(core::mem::transmute(policyhandle), core::mem::transmute(keyname), core::mem::transmute(privatedata.unwrap_or(core::mem::zeroed()))) + LsaStorePrivateData(policyhandle, keyname, core::mem::transmute(privatedata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn LsaUnregisterPolicyChangeNotification(informationclass: POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle: super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("secur32.dll" "system" fn LsaUnregisterPolicyChangeNotification(informationclass : POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaUnregisterPolicyChangeNotification(core::mem::transmute(informationclass), core::mem::transmute(notificationeventhandle)) + LsaUnregisterPolicyChangeNotification(informationclass, notificationeventhandle) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn MakeSignature(phcontext: *const super::super::Credentials::SecHandle, fqop: u32, pmessage: *const SecBufferDesc, messageseqno: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn MakeSignature(phcontext : *const super::super::Credentials:: SecHandle, fqop : u32, pmessage : *const SecBufferDesc, messageseqno : u32) -> windows_core::HRESULT); - MakeSignature(core::mem::transmute(phcontext), core::mem::transmute(fqop), core::mem::transmute(pmessage), core::mem::transmute(messageseqno)).ok() + MakeSignature(phcontext, fqop, pmessage, messageseqno).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryContextAttributesA(phcontext: *const super::super::Credentials::SecHandle, ulattribute: SECPKG_ATTR, pbuffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn QueryContextAttributesA(phcontext : *const super::super::Credentials:: SecHandle, ulattribute : SECPKG_ATTR, pbuffer : *mut core::ffi::c_void) -> windows_core::HRESULT); - QueryContextAttributesA(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer)).ok() + QueryContextAttributesA(phcontext, ulattribute, core::mem::transmute(pbuffer)).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryContextAttributesExA(phcontext: *const super::super::Credentials::SecHandle, ulattribute: SECPKG_ATTR, pbuffer: *mut core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn QueryContextAttributesExA(phcontext : *const super::super::Credentials:: SecHandle, ulattribute : SECPKG_ATTR, pbuffer : *mut core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - QueryContextAttributesExA(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + QueryContextAttributesExA(phcontext, ulattribute, core::mem::transmute(pbuffer), cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryContextAttributesExW(phcontext: *const super::super::Credentials::SecHandle, ulattribute: SECPKG_ATTR, pbuffer: *mut core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn QueryContextAttributesExW(phcontext : *const super::super::Credentials:: SecHandle, ulattribute : SECPKG_ATTR, pbuffer : *mut core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - QueryContextAttributesExW(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + QueryContextAttributesExW(phcontext, ulattribute, core::mem::transmute(pbuffer), cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryContextAttributesW(phcontext: *const super::super::Credentials::SecHandle, ulattribute: SECPKG_ATTR, pbuffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn QueryContextAttributesW(phcontext : *const super::super::Credentials:: SecHandle, ulattribute : SECPKG_ATTR, pbuffer : *mut core::ffi::c_void) -> windows_core::HRESULT); - QueryContextAttributesW(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer)).ok() + QueryContextAttributesW(phcontext, ulattribute, core::mem::transmute(pbuffer)).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryCredentialsAttributesA(phcredential: *const super::super::Credentials::SecHandle, ulattribute: u32, pbuffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn QueryCredentialsAttributesA(phcredential : *const super::super::Credentials:: SecHandle, ulattribute : u32, pbuffer : *mut core::ffi::c_void) -> windows_core::HRESULT); - QueryCredentialsAttributesA(core::mem::transmute(phcredential), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer)).ok() + QueryCredentialsAttributesA(phcredential, ulattribute, core::mem::transmute(pbuffer)).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryCredentialsAttributesExA(phcredential: *const super::super::Credentials::SecHandle, ulattribute: u32, pbuffer: *mut core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn QueryCredentialsAttributesExA(phcredential : *const super::super::Credentials:: SecHandle, ulattribute : u32, pbuffer : *mut core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - QueryCredentialsAttributesExA(core::mem::transmute(phcredential), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + QueryCredentialsAttributesExA(phcredential, ulattribute, core::mem::transmute(pbuffer), cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryCredentialsAttributesExW(phcredential: *const super::super::Credentials::SecHandle, ulattribute: u32, pbuffer: *mut core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn QueryCredentialsAttributesExW(phcredential : *const super::super::Credentials:: SecHandle, ulattribute : u32, pbuffer : *mut core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - QueryCredentialsAttributesExW(core::mem::transmute(phcredential), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + QueryCredentialsAttributesExW(phcredential, ulattribute, core::mem::transmute(pbuffer), cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QueryCredentialsAttributesW(phcredential: *const super::super::Credentials::SecHandle, ulattribute: u32, pbuffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn QueryCredentialsAttributesW(phcredential : *const super::super::Credentials:: SecHandle, ulattribute : u32, pbuffer : *mut core::ffi::c_void) -> windows_core::HRESULT); - QueryCredentialsAttributesW(core::mem::transmute(phcredential), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer)).ok() + QueryCredentialsAttributesW(phcredential, ulattribute, core::mem::transmute(pbuffer)).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn QuerySecurityContextToken(phcontext: *const super::super::Credentials::SecHandle, token: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn QuerySecurityContextToken(phcontext : *const super::super::Credentials:: SecHandle, token : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - QuerySecurityContextToken(core::mem::transmute(phcontext), core::mem::transmute(token)).ok() + QuerySecurityContextToken(phcontext, core::mem::transmute(token)).ok() } #[inline] pub unsafe fn QuerySecurityPackageInfoA(pszpackagename: P0) -> windows_core::Result<*mut SecPkgInfoA> @@ -707,22 +682,22 @@ where #[inline] pub unsafe fn RevertSecurityContext(phcontext: *const super::super::Credentials::SecHandle) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn RevertSecurityContext(phcontext : *const super::super::Credentials:: SecHandle) -> windows_core::HRESULT); - RevertSecurityContext(core::mem::transmute(phcontext)).ok() + RevertSecurityContext(phcontext).ok() } #[inline] pub unsafe fn RtlDecryptMemory(memory: *mut core::ffi::c_void, memorysize: u32, optionflags: u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" "SystemFunction041" fn RtlDecryptMemory(memory : *mut core::ffi::c_void, memorysize : u32, optionflags : u32) -> super::super::super::Foundation:: NTSTATUS); - RtlDecryptMemory(core::mem::transmute(memory), core::mem::transmute(memorysize), core::mem::transmute(optionflags)) + RtlDecryptMemory(core::mem::transmute(memory), memorysize, optionflags) } #[inline] pub unsafe fn RtlEncryptMemory(memory: *mut core::ffi::c_void, memorysize: u32, optionflags: u32) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("advapi32.dll" "system" "SystemFunction040" fn RtlEncryptMemory(memory : *mut core::ffi::c_void, memorysize : u32, optionflags : u32) -> super::super::super::Foundation:: NTSTATUS); - RtlEncryptMemory(core::mem::transmute(memory), core::mem::transmute(memorysize), core::mem::transmute(optionflags)) + RtlEncryptMemory(core::mem::transmute(memory), memorysize, optionflags) } #[inline] pub unsafe fn RtlGenRandom(randombuffer: *mut core::ffi::c_void, randombufferlength: u32) -> bool { windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> bool); - RtlGenRandom(core::mem::transmute(randombuffer), core::mem::transmute(randombufferlength)) + RtlGenRandom(core::mem::transmute(randombuffer), randombufferlength) } #[inline] pub unsafe fn SLAcquireGenuineTicket(ppticketblob: *mut *mut core::ffi::c_void, pcbticketblob: *mut u32, pwsztemplateid: P2, pwszserverurl: P3, pwszclienttoken: P4) -> windows_core::Result<()> @@ -740,12 +715,12 @@ where P5: windows_core::Param, { windows_targets::link!("slcext.dll" "system" fn SLActivateProduct(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, cbappspecificdata : u32, pvappspecificdata : *const core::ffi::c_void, pactivationinfo : *const SL_ACTIVATION_INFO_HEADER, pwszproxyserver : windows_core::PCWSTR, wproxyport : u16) -> windows_core::HRESULT); - SLActivateProduct(core::mem::transmute(hslc), core::mem::transmute(pproductskuid), core::mem::transmute(cbappspecificdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvappspecificdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pactivationinfo.unwrap_or(core::mem::zeroed())), pwszproxyserver.param().abi(), core::mem::transmute(wproxyport.unwrap_or(core::mem::zeroed()))).ok() + SLActivateProduct(hslc, pproductskuid, core::mem::transmute(cbappspecificdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvappspecificdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pactivationinfo.unwrap_or(core::mem::zeroed())), pwszproxyserver.param().abi(), core::mem::transmute(wproxyport.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SLClose(hslc: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLClose(hslc : *const core::ffi::c_void) -> windows_core::HRESULT); - SLClose(core::mem::transmute(hslc)).ok() + SLClose(hslc).ok() } #[inline] pub unsafe fn SLConsumeRight(hslc: *const core::ffi::c_void, pappid: *const windows_core::GUID, pproductskuid: Option<*const windows_core::GUID>, pwszrightname: P3, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -753,7 +728,7 @@ where P3: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLConsumeRight(hslc : *const core::ffi::c_void, pappid : *const windows_core::GUID, pproductskuid : *const windows_core::GUID, pwszrightname : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - SLConsumeRight(core::mem::transmute(hslc), core::mem::transmute(pappid), core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), pwszrightname.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + SLConsumeRight(hslc, pappid, core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), pwszrightname.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SLDepositOfflineConfirmationId(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, pwszinstallationid: P2, pwszconfirmationid: P3) -> windows_core::Result<()> @@ -762,7 +737,7 @@ where P3: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLDepositOfflineConfirmationId(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pwszinstallationid : windows_core::PCWSTR, pwszconfirmationid : windows_core::PCWSTR) -> windows_core::HRESULT); - SLDepositOfflineConfirmationId(core::mem::transmute(hslc), core::mem::transmute(pproductskuid), pwszinstallationid.param().abi(), pwszconfirmationid.param().abi()).ok() + SLDepositOfflineConfirmationId(hslc, pproductskuid, pwszinstallationid.param().abi(), pwszconfirmationid.param().abi()).ok() } #[inline] pub unsafe fn SLDepositOfflineConfirmationIdEx(hslc: *const core::ffi::c_void, pproductskuid: Option<*const windows_core::GUID>, pactivationinfo: Option<*const SL_ACTIVATION_INFO_HEADER>, pwszinstallationid: P3, pwszconfirmationid: P4) -> windows_core::Result<()> @@ -771,7 +746,7 @@ where P4: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLDepositOfflineConfirmationIdEx(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pactivationinfo : *const SL_ACTIVATION_INFO_HEADER, pwszinstallationid : windows_core::PCWSTR, pwszconfirmationid : windows_core::PCWSTR) -> windows_core::HRESULT); - SLDepositOfflineConfirmationIdEx(core::mem::transmute(hslc), core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pactivationinfo.unwrap_or(core::mem::zeroed())), pwszinstallationid.param().abi(), pwszconfirmationid.param().abi()).ok() + SLDepositOfflineConfirmationIdEx(hslc, core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pactivationinfo.unwrap_or(core::mem::zeroed())), pwszinstallationid.param().abi(), pwszconfirmationid.param().abi()).ok() } #[inline] pub unsafe fn SLFireEvent(hslc: *const core::ffi::c_void, pwszeventid: P1, papplicationid: *const windows_core::GUID) -> windows_core::Result<()> @@ -779,19 +754,19 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLFireEvent(hslc : *const core::ffi::c_void, pwszeventid : windows_core::PCWSTR, papplicationid : *const windows_core::GUID) -> windows_core::HRESULT); - SLFireEvent(core::mem::transmute(hslc), pwszeventid.param().abi(), core::mem::transmute(papplicationid)).ok() + SLFireEvent(hslc, pwszeventid.param().abi(), papplicationid).ok() } #[inline] pub unsafe fn SLGenerateOfflineInstallationId(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("slc.dll" "system" fn SLGenerateOfflineInstallationId(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, ppwszinstallationid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLGenerateOfflineInstallationId(core::mem::transmute(hslc), core::mem::transmute(pproductskuid), &mut result__).map(|| core::mem::transmute(result__)) + SLGenerateOfflineInstallationId(hslc, pproductskuid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLGenerateOfflineInstallationIdEx(hslc: *const core::ffi::c_void, pproductskuid: Option<*const windows_core::GUID>, pactivationinfo: Option<*const SL_ACTIVATION_INFO_HEADER>) -> windows_core::Result { windows_targets::link!("slc.dll" "system" fn SLGenerateOfflineInstallationIdEx(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pactivationinfo : *const SL_ACTIVATION_INFO_HEADER, ppwszinstallationid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLGenerateOfflineInstallationIdEx(core::mem::transmute(hslc), core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pactivationinfo.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + SLGenerateOfflineInstallationIdEx(hslc, core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pactivationinfo.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLGetApplicationInformation(hslc: *const core::ffi::c_void, papplicationid: *const windows_core::GUID, pwszvaluename: P2, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -799,7 +774,7 @@ where P2: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetApplicationInformation(hslc : *const core::ffi::c_void, papplicationid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetApplicationInformation(core::mem::transmute(hslc), core::mem::transmute(papplicationid), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetApplicationInformation(hslc, papplicationid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetGenuineInformation(pqueryid: *const windows_core::GUID, pwszvaluename: P1, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -807,23 +782,23 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetGenuineInformation(pqueryid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetGenuineInformation(core::mem::transmute(pqueryid), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetGenuineInformation(pqueryid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetInstalledProductKeyIds(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, pnproductkeyids: *mut u32, ppproductkeyids: *mut *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLGetInstalledProductKeyIds(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pnproductkeyids : *mut u32, ppproductkeyids : *mut *mut windows_core::GUID) -> windows_core::HRESULT); - SLGetInstalledProductKeyIds(core::mem::transmute(hslc), core::mem::transmute(pproductskuid), core::mem::transmute(pnproductkeyids), core::mem::transmute(ppproductkeyids)).ok() + SLGetInstalledProductKeyIds(hslc, pproductskuid, core::mem::transmute(pnproductkeyids), core::mem::transmute(ppproductkeyids)).ok() } #[inline] pub unsafe fn SLGetLicense(hslc: *const core::ffi::c_void, plicensefileid: *const windows_core::GUID, pcblicensefile: *mut u32, ppblicensefile: *mut *mut u8) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLGetLicense(hslc : *const core::ffi::c_void, plicensefileid : *const windows_core::GUID, pcblicensefile : *mut u32, ppblicensefile : *mut *mut u8) -> windows_core::HRESULT); - SLGetLicense(core::mem::transmute(hslc), core::mem::transmute(plicensefileid), core::mem::transmute(pcblicensefile), core::mem::transmute(ppblicensefile)).ok() + SLGetLicense(hslc, plicensefileid, core::mem::transmute(pcblicensefile), core::mem::transmute(ppblicensefile)).ok() } #[inline] pub unsafe fn SLGetLicenseFileId(hslc: *const core::ffi::c_void, pblicenseblob: &[u8]) -> windows_core::Result { windows_targets::link!("slc.dll" "system" fn SLGetLicenseFileId(hslc : *const core::ffi::c_void, cblicenseblob : u32, pblicenseblob : *const u8, plicensefileid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLGetLicenseFileId(core::mem::transmute(hslc), pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + SLGetLicenseFileId(hslc, pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLGetLicenseInformation(hslc: *const core::ffi::c_void, psllicenseid: *const windows_core::GUID, pwszvaluename: P2, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -831,7 +806,7 @@ where P2: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetLicenseInformation(hslc : *const core::ffi::c_void, psllicenseid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetLicenseInformation(core::mem::transmute(hslc), core::mem::transmute(psllicenseid), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetLicenseInformation(hslc, psllicenseid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetLicensingStatusInformation(hslc: *const core::ffi::c_void, pappid: Option<*const windows_core::GUID>, pproductskuid: Option<*const windows_core::GUID>, pwszrightname: P3, pnstatuscount: *mut u32, pplicensingstatus: *mut *mut SL_LICENSING_STATUS) -> windows_core::Result<()> @@ -839,7 +814,7 @@ where P3: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetLicensingStatusInformation(hslc : *const core::ffi::c_void, pappid : *const windows_core::GUID, pproductskuid : *const windows_core::GUID, pwszrightname : windows_core::PCWSTR, pnstatuscount : *mut u32, pplicensingstatus : *mut *mut SL_LICENSING_STATUS) -> windows_core::HRESULT); - SLGetLicensingStatusInformation(core::mem::transmute(hslc), core::mem::transmute(pappid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), pwszrightname.param().abi(), core::mem::transmute(pnstatuscount), core::mem::transmute(pplicensingstatus)).ok() + SLGetLicensingStatusInformation(hslc, core::mem::transmute(pappid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pproductskuid.unwrap_or(core::mem::zeroed())), pwszrightname.param().abi(), core::mem::transmute(pnstatuscount), core::mem::transmute(pplicensingstatus)).ok() } #[inline] pub unsafe fn SLGetPKeyId(hslc: *const core::ffi::c_void, pwszpkeyalgorithm: P1, pwszpkeystring: P2, pbpkeyspecificdata: Option<&[u8]>) -> windows_core::Result @@ -849,7 +824,7 @@ where { windows_targets::link!("slc.dll" "system" fn SLGetPKeyId(hslc : *const core::ffi::c_void, pwszpkeyalgorithm : windows_core::PCWSTR, pwszpkeystring : windows_core::PCWSTR, cbpkeyspecificdata : u32, pbpkeyspecificdata : *const u8, ppkeyid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLGetPKeyId(core::mem::transmute(hslc), pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) + SLGetPKeyId(hslc, pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLGetPKeyInformation(hslc: *const core::ffi::c_void, ppkeyid: *const windows_core::GUID, pwszvaluename: P2, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -857,7 +832,7 @@ where P2: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetPKeyInformation(hslc : *const core::ffi::c_void, ppkeyid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetPKeyInformation(core::mem::transmute(hslc), core::mem::transmute(ppkeyid), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetPKeyInformation(hslc, ppkeyid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetPolicyInformation(hslc: *const core::ffi::c_void, pwszvaluename: P1, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -865,7 +840,7 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetPolicyInformation(hslc : *const core::ffi::c_void, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetPolicyInformation(core::mem::transmute(hslc), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetPolicyInformation(hslc, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetPolicyInformationDWORD(hslc: *const core::ffi::c_void, pwszvaluename: P1) -> windows_core::Result @@ -874,7 +849,7 @@ where { windows_targets::link!("slc.dll" "system" fn SLGetPolicyInformationDWORD(hslc : *const core::ffi::c_void, pwszvaluename : windows_core::PCWSTR, pdwvalue : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLGetPolicyInformationDWORD(core::mem::transmute(hslc), pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SLGetPolicyInformationDWORD(hslc, pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLGetProductSkuInformation(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, pwszvaluename: P2, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -882,7 +857,7 @@ where P2: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetProductSkuInformation(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetProductSkuInformation(core::mem::transmute(hslc), core::mem::transmute(pproductskuid), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetProductSkuInformation(hslc, pproductskuid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetReferralInformation(hslc: *const core::ffi::c_void, ereferraltype: SLREFERRALTYPE, pskuorappid: *const windows_core::GUID, pwszvaluename: P3) -> windows_core::Result @@ -891,12 +866,12 @@ where { windows_targets::link!("slcext.dll" "system" fn SLGetReferralInformation(hslc : *const core::ffi::c_void, ereferraltype : SLREFERRALTYPE, pskuorappid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLGetReferralInformation(core::mem::transmute(hslc), core::mem::transmute(ereferraltype), core::mem::transmute(pskuorappid), pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SLGetReferralInformation(hslc, ereferraltype, pskuorappid, pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLGetSLIDList(hslc: *const core::ffi::c_void, equeryidtype: SLIDTYPE, pqueryid: Option<*const windows_core::GUID>, ereturnidtype: SLIDTYPE, pnreturnids: *mut u32, ppreturnids: *mut *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLGetSLIDList(hslc : *const core::ffi::c_void, equeryidtype : SLIDTYPE, pqueryid : *const windows_core::GUID, ereturnidtype : SLIDTYPE, pnreturnids : *mut u32, ppreturnids : *mut *mut windows_core::GUID) -> windows_core::HRESULT); - SLGetSLIDList(core::mem::transmute(hslc), core::mem::transmute(equeryidtype), core::mem::transmute(pqueryid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ereturnidtype), core::mem::transmute(pnreturnids), core::mem::transmute(ppreturnids)).ok() + SLGetSLIDList(hslc, equeryidtype, core::mem::transmute(pqueryid.unwrap_or(core::mem::zeroed())), ereturnidtype, core::mem::transmute(pnreturnids), core::mem::transmute(ppreturnids)).ok() } #[inline] pub unsafe fn SLGetServerStatus(pwszserverurl: P0, pwszacquisitiontype: P1, pwszproxyserver: P2, wproxyport: Option) -> windows_core::Result @@ -915,7 +890,7 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetServiceInformation(hslc : *const core::ffi::c_void, pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetServiceInformation(core::mem::transmute(hslc), pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() + SLGetServiceInformation(hslc, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue)).ok() } #[inline] pub unsafe fn SLGetWindowsInformation(pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> @@ -938,7 +913,7 @@ where pub unsafe fn SLInstallLicense(hslc: *const core::ffi::c_void, pblicenseblob: &[u8]) -> windows_core::Result { windows_targets::link!("slc.dll" "system" fn SLInstallLicense(hslc : *const core::ffi::c_void, cblicenseblob : u32, pblicenseblob : *const u8, plicensefileid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLInstallLicense(core::mem::transmute(hslc), pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + SLInstallLicense(hslc, pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLInstallProofOfPurchase(hslc: *const core::ffi::c_void, pwszpkeyalgorithm: P1, pwszpkeystring: P2, pbpkeyspecificdata: Option<&[u8]>) -> windows_core::Result @@ -948,12 +923,12 @@ where { windows_targets::link!("slc.dll" "system" fn SLInstallProofOfPurchase(hslc : *const core::ffi::c_void, pwszpkeyalgorithm : windows_core::PCWSTR, pwszpkeystring : windows_core::PCWSTR, cbpkeyspecificdata : u32, pbpkeyspecificdata : *const u8, ppkeyid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SLInstallProofOfPurchase(core::mem::transmute(hslc), pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) + SLInstallProofOfPurchase(hslc, pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SLIsGenuineLocal(pappid: *const windows_core::GUID, pgenuinestate: *mut SL_GENUINE_STATE, puioptions: Option<*mut SL_NONGENUINE_UI_OPTIONS>) -> windows_core::Result<()> { windows_targets::link!("slwga.dll" "system" fn SLIsGenuineLocal(pappid : *const windows_core::GUID, pgenuinestate : *mut SL_GENUINE_STATE, puioptions : *mut SL_NONGENUINE_UI_OPTIONS) -> windows_core::HRESULT); - SLIsGenuineLocal(core::mem::transmute(pappid), core::mem::transmute(pgenuinestate), core::mem::transmute(puioptions.unwrap_or(core::mem::zeroed()))).ok() + SLIsGenuineLocal(pappid, core::mem::transmute(pgenuinestate), core::mem::transmute(puioptions.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SLOpen(phslc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -966,7 +941,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-slapi-l1-1-0.dll" "system" fn SLQueryLicenseValueFromApp(valuename : windows_core::PCWSTR, valuetype : *mut u32, databuffer : *mut core::ffi::c_void, datasize : u32, resultdatasize : *mut u32) -> windows_core::HRESULT); - SLQueryLicenseValueFromApp(valuename.param().abi(), core::mem::transmute(valuetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(databuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(datasize), core::mem::transmute(resultdatasize)).ok() + SLQueryLicenseValueFromApp(valuename.param().abi(), core::mem::transmute(valuetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(databuffer.unwrap_or(core::mem::zeroed())), datasize, core::mem::transmute(resultdatasize)).ok() } #[inline] pub unsafe fn SLRegisterEvent(hslc: Option<*const core::ffi::c_void>, pwszeventid: P1, papplicationid: *const windows_core::GUID, hevent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -974,12 +949,12 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLRegisterEvent(hslc : *const core::ffi::c_void, pwszeventid : windows_core::PCWSTR, papplicationid : *const windows_core::GUID, hevent : super::super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - SLRegisterEvent(core::mem::transmute(hslc.unwrap_or(core::mem::zeroed())), pwszeventid.param().abi(), core::mem::transmute(papplicationid), core::mem::transmute(hevent)).ok() + SLRegisterEvent(core::mem::transmute(hslc.unwrap_or(core::mem::zeroed())), pwszeventid.param().abi(), papplicationid, hevent).ok() } #[inline] pub unsafe fn SLSetCurrentProductKey(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, pproductkeyid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLSetCurrentProductKey(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pproductkeyid : *const windows_core::GUID) -> windows_core::HRESULT); - SLSetCurrentProductKey(core::mem::transmute(hslc), core::mem::transmute(pproductskuid), core::mem::transmute(pproductkeyid)).ok() + SLSetCurrentProductKey(hslc, pproductskuid, pproductkeyid).ok() } #[inline] pub unsafe fn SLSetGenuineInformation(pqueryid: *const windows_core::GUID, pwszvaluename: P1, edatatype: SLDATATYPE, pbvalue: Option<&[u8]>) -> windows_core::Result<()> @@ -987,17 +962,17 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLSetGenuineInformation(pqueryid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, edatatype : SLDATATYPE, cbvalue : u32, pbvalue : *const u8) -> windows_core::HRESULT); - SLSetGenuineInformation(core::mem::transmute(pqueryid), pwszvaluename.param().abi(), core::mem::transmute(edatatype), pbvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + SLSetGenuineInformation(pqueryid, pwszvaluename.param().abi(), edatatype, pbvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn SLUninstallLicense(hslc: *const core::ffi::c_void, plicensefileid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLUninstallLicense(hslc : *const core::ffi::c_void, plicensefileid : *const windows_core::GUID) -> windows_core::HRESULT); - SLUninstallLicense(core::mem::transmute(hslc), core::mem::transmute(plicensefileid)).ok() + SLUninstallLicense(hslc, plicensefileid).ok() } #[inline] pub unsafe fn SLUninstallProofOfPurchase(hslc: *const core::ffi::c_void, ppkeyid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("slc.dll" "system" fn SLUninstallProofOfPurchase(hslc : *const core::ffi::c_void, ppkeyid : *const windows_core::GUID) -> windows_core::HRESULT); - SLUninstallProofOfPurchase(core::mem::transmute(hslc), core::mem::transmute(ppkeyid)).ok() + SLUninstallProofOfPurchase(hslc, ppkeyid).ok() } #[inline] pub unsafe fn SLUnregisterEvent(hslc: Option<*const core::ffi::c_void>, pwszeventid: P1, papplicationid: *const windows_core::GUID, hevent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -1005,23 +980,13 @@ where P1: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLUnregisterEvent(hslc : *const core::ffi::c_void, pwszeventid : windows_core::PCWSTR, papplicationid : *const windows_core::GUID, hevent : super::super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - SLUnregisterEvent(core::mem::transmute(hslc.unwrap_or(core::mem::zeroed())), pwszeventid.param().abi(), core::mem::transmute(papplicationid), core::mem::transmute(hevent)).ok() + SLUnregisterEvent(core::mem::transmute(hslc.unwrap_or(core::mem::zeroed())), pwszeventid.param().abi(), papplicationid, hevent).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn SaslAcceptSecurityContext(phcredential: Option<*const super::super::Credentials::SecHandle>, phcontext: Option<*const super::super::Credentials::SecHandle>, pinput: Option<*const SecBufferDesc>, fcontextreq: ASC_REQ_FLAGS, targetdatarep: u32, phnewcontext: Option<*mut super::super::Credentials::SecHandle>, poutput: Option<*mut SecBufferDesc>, pfcontextattr: *mut u32, ptsexpiry: Option<*mut i64>) -> windows_core::HRESULT { windows_targets::link!("secur32.dll" "system" fn SaslAcceptSecurityContext(phcredential : *const super::super::Credentials:: SecHandle, phcontext : *const super::super::Credentials:: SecHandle, pinput : *const SecBufferDesc, fcontextreq : ASC_REQ_FLAGS, targetdatarep : u32, phnewcontext : *mut super::super::Credentials:: SecHandle, poutput : *mut SecBufferDesc, pfcontextattr : *mut u32, ptsexpiry : *mut i64) -> windows_core::HRESULT); - SaslAcceptSecurityContext( - core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fcontextreq), - core::mem::transmute(targetdatarep), - core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfcontextattr), - core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed())), - ) + SaslAcceptSecurityContext(core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), fcontextreq, targetdatarep, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcontextattr), core::mem::transmute(ptsexpiry.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SaslEnumerateProfilesA(profilelist: *mut windows_core::PSTR, profilecount: *mut u32) -> windows_core::Result<()> { @@ -1037,7 +1002,7 @@ pub unsafe fn SaslEnumerateProfilesW(profilelist: *mut windows_core::PWSTR, prof #[inline] pub unsafe fn SaslGetContextOption(contexthandle: *const super::super::Credentials::SecHandle, option: u32, value: *mut core::ffi::c_void, size: u32, needed: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SaslGetContextOption(contexthandle : *const super::super::Credentials:: SecHandle, option : u32, value : *mut core::ffi::c_void, size : u32, needed : *mut u32) -> windows_core::HRESULT); - SaslGetContextOption(core::mem::transmute(contexthandle), core::mem::transmute(option), core::mem::transmute(value), core::mem::transmute(size), core::mem::transmute(needed.unwrap_or(core::mem::zeroed()))).ok() + SaslGetContextOption(contexthandle, option, core::mem::transmute(value), size, core::mem::transmute(needed.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SaslGetProfilePackageA(profilename: P0) -> windows_core::Result<*mut SecPkgInfoA> @@ -1061,13 +1026,13 @@ where pub unsafe fn SaslIdentifyPackageA(pinput: *const SecBufferDesc) -> windows_core::Result<*mut SecPkgInfoA> { windows_targets::link!("secur32.dll" "system" fn SaslIdentifyPackageA(pinput : *const SecBufferDesc, packageinfo : *mut *mut SecPkgInfoA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SaslIdentifyPackageA(core::mem::transmute(pinput), &mut result__).map(|| core::mem::transmute(result__)) + SaslIdentifyPackageA(pinput, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SaslIdentifyPackageW(pinput: *const SecBufferDesc) -> windows_core::Result<*mut SecPkgInfoW> { windows_targets::link!("secur32.dll" "system" fn SaslIdentifyPackageW(pinput : *const SecBufferDesc, packageinfo : *mut *mut SecPkgInfoW) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SaslIdentifyPackageW(core::mem::transmute(pinput), &mut result__).map(|| core::mem::transmute(result__)) + SaslIdentifyPackageW(pinput, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -1080,11 +1045,11 @@ where core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), - core::mem::transmute(fcontextreq), - core::mem::transmute(reserved1), - core::mem::transmute(targetdatarep), + fcontextreq, + reserved1, + targetdatarep, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2), + reserved2, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcontextattr), @@ -1102,11 +1067,11 @@ where core::mem::transmute(phcredential.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), - core::mem::transmute(fcontextreq), - core::mem::transmute(reserved1), - core::mem::transmute(targetdatarep), + fcontextreq, + reserved1, + targetdatarep, core::mem::transmute(pinput.unwrap_or(core::mem::zeroed())), - core::mem::transmute(reserved2), + reserved2, core::mem::transmute(phnewcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcontextattr), @@ -1117,7 +1082,7 @@ where #[inline] pub unsafe fn SaslSetContextOption(contexthandle: *const super::super::Credentials::SecHandle, option: u32, value: *const core::ffi::c_void, size: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SaslSetContextOption(contexthandle : *const super::super::Credentials:: SecHandle, option : u32, value : *const core::ffi::c_void, size : u32) -> windows_core::HRESULT); - SaslSetContextOption(core::mem::transmute(contexthandle), core::mem::transmute(option), core::mem::transmute(value), core::mem::transmute(size)).ok() + SaslSetContextOption(contexthandle, option, value, size).ok() } #[inline] pub unsafe fn SendSAS(asuser: bool) { @@ -1128,31 +1093,31 @@ pub unsafe fn SendSAS(asuser: bool) { #[inline] pub unsafe fn SetContextAttributesA(phcontext: *const super::super::Credentials::SecHandle, ulattribute: SECPKG_ATTR, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SetContextAttributesA(phcontext : *const super::super::Credentials:: SecHandle, ulattribute : SECPKG_ATTR, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - SetContextAttributesA(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + SetContextAttributesA(phcontext, ulattribute, pbuffer, cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn SetContextAttributesW(phcontext: *const super::super::Credentials::SecHandle, ulattribute: SECPKG_ATTR, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SetContextAttributesW(phcontext : *const super::super::Credentials:: SecHandle, ulattribute : SECPKG_ATTR, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - SetContextAttributesW(core::mem::transmute(phcontext), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + SetContextAttributesW(phcontext, ulattribute, pbuffer, cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn SetCredentialsAttributesA(phcredential: *const super::super::Credentials::SecHandle, ulattribute: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SetCredentialsAttributesA(phcredential : *const super::super::Credentials:: SecHandle, ulattribute : u32, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - SetCredentialsAttributesA(core::mem::transmute(phcredential), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + SetCredentialsAttributesA(phcredential, ulattribute, pbuffer, cbbuffer).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn SetCredentialsAttributesW(phcredential: *const super::super::Credentials::SecHandle, ulattribute: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SetCredentialsAttributesW(phcredential : *const super::super::Credentials:: SecHandle, ulattribute : u32, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_core::HRESULT); - SetCredentialsAttributesW(core::mem::transmute(phcredential), core::mem::transmute(ulattribute), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + SetCredentialsAttributesW(phcredential, ulattribute, pbuffer, cbbuffer).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn SslCrackCertificate(pbcertificate: *mut u8, cbcertificate: u32, dwflags: u32, ppcertificate: *mut *mut X509Certificate) -> super::super::super::Foundation::BOOL { windows_targets::link!("schannel.dll" "system" fn SslCrackCertificate(pbcertificate : *mut u8, cbcertificate : u32, dwflags : u32, ppcertificate : *mut *mut X509Certificate) -> super::super::super::Foundation:: BOOL); - SslCrackCertificate(core::mem::transmute(pbcertificate), core::mem::transmute(cbcertificate), core::mem::transmute(dwflags), core::mem::transmute(ppcertificate)) + SslCrackCertificate(core::mem::transmute(pbcertificate), cbcertificate, dwflags, core::mem::transmute(ppcertificate)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1167,7 +1132,7 @@ where P0: windows_core::Param, { windows_targets::link!("schannel.dll" "system" fn SslEmptyCacheA(psztargetname : windows_core::PCSTR, dwflags : u32) -> super::super::super::Foundation:: BOOL); - SslEmptyCacheA(psztargetname.param().abi(), core::mem::transmute(dwflags)) + SslEmptyCacheA(psztargetname.param().abi(), dwflags) } #[inline] pub unsafe fn SslEmptyCacheW(psztargetname: P0, dwflags: u32) -> super::super::super::Foundation::BOOL @@ -1175,7 +1140,7 @@ where P0: windows_core::Param, { windows_targets::link!("schannel.dll" "system" fn SslEmptyCacheW(psztargetname : windows_core::PCWSTR, dwflags : u32) -> super::super::super::Foundation:: BOOL); - SslEmptyCacheW(psztargetname.param().abi(), core::mem::transmute(dwflags)) + SslEmptyCacheW(psztargetname.param().abi(), dwflags) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1186,22 +1151,22 @@ pub unsafe fn SslFreeCertificate(pcertificate: *mut X509Certificate) { #[inline] pub unsafe fn SslGenerateRandomBits(prandomdata: *mut u8, crandomdata: i32) { windows_targets::link!("schannel.dll" "system" fn SslGenerateRandomBits(prandomdata : *mut u8, crandomdata : i32)); - SslGenerateRandomBits(core::mem::transmute(prandomdata), core::mem::transmute(crandomdata)) + SslGenerateRandomBits(core::mem::transmute(prandomdata), crandomdata) } #[inline] pub unsafe fn SslGetExtensions(clienthello: &[u8], genericextensions: &mut [SCH_EXTENSION_DATA], bytestoread: *mut u32, flags: SchGetExtensionsOptions) -> windows_core::Result<()> { windows_targets::link!("schannel.dll" "system" fn SslGetExtensions(clienthello : *const u8, clienthellobytesize : u32, genericextensions : *mut SCH_EXTENSION_DATA, genericextensionscount : u8, bytestoread : *mut u32, flags : SchGetExtensionsOptions) -> windows_core::HRESULT); - SslGetExtensions(core::mem::transmute(clienthello.as_ptr()), clienthello.len().try_into().unwrap(), core::mem::transmute(genericextensions.as_ptr()), genericextensions.len().try_into().unwrap(), core::mem::transmute(bytestoread), core::mem::transmute(flags)).ok() + SslGetExtensions(core::mem::transmute(clienthello.as_ptr()), clienthello.len().try_into().unwrap(), core::mem::transmute(genericextensions.as_ptr()), genericextensions.len().try_into().unwrap(), core::mem::transmute(bytestoread), flags).ok() } #[inline] pub unsafe fn SslGetMaximumKeySize(reserved: u32) -> u32 { windows_targets::link!("schannel.dll" "system" fn SslGetMaximumKeySize(reserved : u32) -> u32); - SslGetMaximumKeySize(core::mem::transmute(reserved)) + SslGetMaximumKeySize(reserved) } #[inline] pub unsafe fn SslGetServerIdentity(clienthello: &[u8], serveridentity: *mut *mut u8, serveridentitysize: *mut u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("schannel.dll" "system" fn SslGetServerIdentity(clienthello : *const u8, clienthellosize : u32, serveridentity : *mut *mut u8, serveridentitysize : *mut u32, flags : u32) -> windows_core::HRESULT); - SslGetServerIdentity(core::mem::transmute(clienthello.as_ptr()), clienthello.len().try_into().unwrap(), core::mem::transmute(serveridentity), core::mem::transmute(serveridentitysize), core::mem::transmute(flags)).ok() + SslGetServerIdentity(core::mem::transmute(clienthello.as_ptr()), clienthello.len().try_into().unwrap(), core::mem::transmute(serveridentity), core::mem::transmute(serveridentitysize), flags).ok() } #[inline] pub unsafe fn SspiCompareAuthIdentities(authidentity1: Option<*const core::ffi::c_void>, authidentity2: Option<*const core::ffi::c_void>, samesupplieduser: Option<*mut bool>, samesuppliedidentity: Option<*mut bool>) -> windows_core::Result<()> { @@ -1211,7 +1176,7 @@ pub unsafe fn SspiCompareAuthIdentities(authidentity1: Option<*const core::ffi:: #[inline] pub unsafe fn SspiCopyAuthIdentity(authdata: *const core::ffi::c_void, authdatacopy: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SspiCopyAuthIdentity(authdata : *const core::ffi::c_void, authdatacopy : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SspiCopyAuthIdentity(core::mem::transmute(authdata), core::mem::transmute(authdatacopy)).ok() + SspiCopyAuthIdentity(authdata, core::mem::transmute(authdatacopy)).ok() } #[inline] pub unsafe fn SspiDecryptAuthIdentity(encryptedauthdata: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1221,12 +1186,12 @@ pub unsafe fn SspiDecryptAuthIdentity(encryptedauthdata: *mut core::ffi::c_void) #[inline] pub unsafe fn SspiDecryptAuthIdentityEx(options: u32, encryptedauthdata: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn SspiDecryptAuthIdentityEx(options : u32, encryptedauthdata : *mut core::ffi::c_void) -> windows_core::HRESULT); - SspiDecryptAuthIdentityEx(core::mem::transmute(options), core::mem::transmute(encryptedauthdata)).ok() + SspiDecryptAuthIdentityEx(options, core::mem::transmute(encryptedauthdata)).ok() } #[inline] pub unsafe fn SspiEncodeAuthIdentityAsStrings(pauthidentity: *const core::ffi::c_void, ppszusername: *mut windows_core::PCWSTR, ppszdomainname: *mut windows_core::PCWSTR, ppszpackedcredentialsstring: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SspiEncodeAuthIdentityAsStrings(pauthidentity : *const core::ffi::c_void, ppszusername : *mut windows_core::PCWSTR, ppszdomainname : *mut windows_core::PCWSTR, ppszpackedcredentialsstring : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - SspiEncodeAuthIdentityAsStrings(core::mem::transmute(pauthidentity), core::mem::transmute(ppszusername), core::mem::transmute(ppszdomainname), core::mem::transmute(ppszpackedcredentialsstring.unwrap_or(core::mem::zeroed()))).ok() + SspiEncodeAuthIdentityAsStrings(pauthidentity, core::mem::transmute(ppszusername), core::mem::transmute(ppszdomainname), core::mem::transmute(ppszpackedcredentialsstring.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SspiEncodeStringsAsAuthIdentity(pszusername: P0, pszdomainname: P1, pszpackedcredentialsstring: P2, ppauthidentity: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1246,7 +1211,7 @@ pub unsafe fn SspiEncryptAuthIdentity(authdata: *mut core::ffi::c_void) -> windo #[inline] pub unsafe fn SspiEncryptAuthIdentityEx(options: u32, authdata: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn SspiEncryptAuthIdentityEx(options : u32, authdata : *mut core::ffi::c_void) -> windows_core::HRESULT); - SspiEncryptAuthIdentityEx(core::mem::transmute(options), core::mem::transmute(authdata)).ok() + SspiEncryptAuthIdentityEx(options, core::mem::transmute(authdata)).ok() } #[inline] pub unsafe fn SspiExcludePackage(authidentity: Option<*const core::ffi::c_void>, pszpackagename: P1, ppnewauthidentity: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1273,12 +1238,12 @@ where #[inline] pub unsafe fn SspiIsAuthIdentityEncrypted(encryptedauthdata: *const core::ffi::c_void) -> bool { windows_targets::link!("secur32.dll" "system" fn SspiIsAuthIdentityEncrypted(encryptedauthdata : *const core::ffi::c_void) -> bool); - SspiIsAuthIdentityEncrypted(core::mem::transmute(encryptedauthdata)) + SspiIsAuthIdentityEncrypted(encryptedauthdata) } #[inline] pub unsafe fn SspiIsPromptingNeeded(errororntstatus: u32) -> bool { windows_targets::link!("credui.dll" "system" fn SspiIsPromptingNeeded(errororntstatus : u32) -> bool); - SspiIsPromptingNeeded(core::mem::transmute(errororntstatus)) + SspiIsPromptingNeeded(errororntstatus) } #[inline] pub unsafe fn SspiLocalFree(databuffer: Option<*const core::ffi::c_void>) { @@ -1288,7 +1253,7 @@ pub unsafe fn SspiLocalFree(databuffer: Option<*const core::ffi::c_void>) { #[inline] pub unsafe fn SspiMarshalAuthIdentity(authidentity: *const core::ffi::c_void, authidentitylength: *mut u32, authidentitybytearray: *mut *mut i8) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SspiMarshalAuthIdentity(authidentity : *const core::ffi::c_void, authidentitylength : *mut u32, authidentitybytearray : *mut *mut i8) -> windows_core::HRESULT); - SspiMarshalAuthIdentity(core::mem::transmute(authidentity), core::mem::transmute(authidentitylength), core::mem::transmute(authidentitybytearray)).ok() + SspiMarshalAuthIdentity(authidentity, core::mem::transmute(authidentitylength), core::mem::transmute(authidentitybytearray)).ok() } #[inline] pub unsafe fn SspiPrepareForCredRead(authidentity: *const core::ffi::c_void, psztargetname: P1, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut windows_core::PCWSTR) -> windows_core::Result<()> @@ -1296,7 +1261,7 @@ where P1: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SspiPrepareForCredRead(authidentity : *const core::ffi::c_void, psztargetname : windows_core::PCWSTR, pcredmancredentialtype : *mut u32, ppszcredmantargetname : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - SspiPrepareForCredRead(core::mem::transmute(authidentity), psztargetname.param().abi(), core::mem::transmute(pcredmancredentialtype), core::mem::transmute(ppszcredmantargetname)).ok() + SspiPrepareForCredRead(authidentity, psztargetname.param().abi(), core::mem::transmute(pcredmancredentialtype), core::mem::transmute(ppszcredmantargetname)).ok() } #[inline] pub unsafe fn SspiPrepareForCredWrite(authidentity: *const core::ffi::c_void, psztargetname: P1, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut windows_core::PCWSTR, ppszcredmanusername: *mut windows_core::PCWSTR, ppcredentialblob: *mut *mut u8, pcredentialblobsize: *mut u32) -> windows_core::Result<()> @@ -1304,7 +1269,7 @@ where P1: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SspiPrepareForCredWrite(authidentity : *const core::ffi::c_void, psztargetname : windows_core::PCWSTR, pcredmancredentialtype : *mut u32, ppszcredmantargetname : *mut windows_core::PCWSTR, ppszcredmanusername : *mut windows_core::PCWSTR, ppcredentialblob : *mut *mut u8, pcredentialblobsize : *mut u32) -> windows_core::HRESULT); - SspiPrepareForCredWrite(core::mem::transmute(authidentity), psztargetname.param().abi(), core::mem::transmute(pcredmancredentialtype), core::mem::transmute(ppszcredmantargetname), core::mem::transmute(ppszcredmanusername), core::mem::transmute(ppcredentialblob), core::mem::transmute(pcredentialblobsize)).ok() + SspiPrepareForCredWrite(authidentity, psztargetname.param().abi(), core::mem::transmute(pcredmancredentialtype), core::mem::transmute(ppszcredmantargetname), core::mem::transmute(ppszcredmanusername), core::mem::transmute(ppcredentialblob), core::mem::transmute(pcredentialblobsize)).ok() } #[inline] pub unsafe fn SspiPromptForCredentialsA(psztargetname: P0, puiinfo: Option<*const core::ffi::c_void>, dwautherror: u32, pszpackage: P3, pinputauthidentity: Option<*const core::ffi::c_void>, ppauthidentity: *mut *mut core::ffi::c_void, pfsave: Option<*mut i32>, dwflags: u32) -> u32 @@ -1313,7 +1278,7 @@ where P3: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn SspiPromptForCredentialsA(psztargetname : windows_core::PCSTR, puiinfo : *const core::ffi::c_void, dwautherror : u32, pszpackage : windows_core::PCSTR, pinputauthidentity : *const core::ffi::c_void, ppauthidentity : *mut *mut core::ffi::c_void, pfsave : *mut i32, dwflags : u32) -> u32); - SspiPromptForCredentialsA(psztargetname.param().abi(), core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), pszpackage.param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppauthidentity), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + SspiPromptForCredentialsA(psztargetname.param().abi(), core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), dwautherror, pszpackage.param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppauthidentity), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn SspiPromptForCredentialsW(psztargetname: P0, puiinfo: Option<*const core::ffi::c_void>, dwautherror: u32, pszpackage: P3, pinputauthidentity: Option<*const core::ffi::c_void>, ppauthidentity: *mut *mut core::ffi::c_void, pfsave: Option<*mut i32>, dwflags: u32) -> u32 @@ -1322,12 +1287,12 @@ where P3: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn SspiPromptForCredentialsW(psztargetname : windows_core::PCWSTR, puiinfo : *const core::ffi::c_void, dwautherror : u32, pszpackage : windows_core::PCWSTR, pinputauthidentity : *const core::ffi::c_void, ppauthidentity : *mut *mut core::ffi::c_void, pfsave : *mut i32, dwflags : u32) -> u32); - SspiPromptForCredentialsW(psztargetname.param().abi(), core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), pszpackage.param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppauthidentity), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + SspiPromptForCredentialsW(psztargetname.param().abi(), core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), dwautherror, pszpackage.param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppauthidentity), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn SspiSetChannelBindingFlags(pbindings: *mut SecPkgContext_Bindings, flags: u32) -> windows_core::Result<()> { windows_targets::link!("sspicli.dll" "system" fn SspiSetChannelBindingFlags(pbindings : *mut SecPkgContext_Bindings, flags : u32) -> windows_core::HRESULT); - SspiSetChannelBindingFlags(core::mem::transmute(pbindings), core::mem::transmute(flags)).ok() + SspiSetChannelBindingFlags(core::mem::transmute(pbindings), flags).ok() } #[inline] pub unsafe fn SspiUnmarshalAuthIdentity(authidentitybytearray: &[u8], ppauthidentity: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1337,7 +1302,7 @@ pub unsafe fn SspiUnmarshalAuthIdentity(authidentitybytearray: &[u8], ppauthiden #[inline] pub unsafe fn SspiValidateAuthIdentity(authdata: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("secur32.dll" "system" fn SspiValidateAuthIdentity(authdata : *const core::ffi::c_void) -> windows_core::HRESULT); - SspiValidateAuthIdentity(core::mem::transmute(authdata)).ok() + SspiValidateAuthIdentity(authdata).ok() } #[inline] pub unsafe fn SspiZeroAuthIdentity(authdata: Option<*const core::ffi::c_void>) { @@ -1363,13 +1328,13 @@ where P1: windows_core::Param, { windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGenerateBinding(keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, targeturl : windows_core::PCWSTR, bindingtype : TOKENBINDING_TYPE, tlsekm : *const core::ffi::c_void, tlsekmsize : u32, extensionformat : TOKENBINDING_EXTENSION_FORMAT, extensiondata : *const core::ffi::c_void, tokenbinding : *mut *mut core::ffi::c_void, tokenbindingsize : *mut u32, resultdata : *mut *mut TOKENBINDING_RESULT_DATA) -> windows_core::HRESULT); - TokenBindingGenerateBinding(core::mem::transmute(keytype), targeturl.param().abi(), core::mem::transmute(bindingtype), core::mem::transmute(tlsekm), core::mem::transmute(tlsekmsize), core::mem::transmute(extensionformat), core::mem::transmute(extensiondata), core::mem::transmute(tokenbinding), core::mem::transmute(tokenbindingsize), core::mem::transmute(resultdata.unwrap_or(core::mem::zeroed()))).ok() + TokenBindingGenerateBinding(keytype, targeturl.param().abi(), bindingtype, tlsekm, tlsekmsize, extensionformat, extensiondata, core::mem::transmute(tokenbinding), core::mem::transmute(tokenbindingsize), core::mem::transmute(resultdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn TokenBindingGenerateID(keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, publickey: *const core::ffi::c_void, publickeysize: u32) -> windows_core::Result<*mut TOKENBINDING_RESULT_DATA> { windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGenerateID(keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, publickey : *const core::ffi::c_void, publickeysize : u32, resultdata : *mut *mut TOKENBINDING_RESULT_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - TokenBindingGenerateID(core::mem::transmute(keytype), core::mem::transmute(publickey), core::mem::transmute(publickeysize), &mut result__).map(|| core::mem::transmute(result__)) + TokenBindingGenerateID(keytype, publickey, publickeysize, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn TokenBindingGenerateIDForUri(keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, targeturi: P1) -> windows_core::Result<*mut TOKENBINDING_RESULT_DATA> @@ -1378,12 +1343,12 @@ where { windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGenerateIDForUri(keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, targeturi : windows_core::PCWSTR, resultdata : *mut *mut TOKENBINDING_RESULT_DATA) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - TokenBindingGenerateIDForUri(core::mem::transmute(keytype), targeturi.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + TokenBindingGenerateIDForUri(keytype, targeturi.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn TokenBindingGenerateMessage(tokenbindings: *const *const core::ffi::c_void, tokenbindingssize: *const u32, tokenbindingscount: u32, tokenbindingmessage: *mut *mut core::ffi::c_void, tokenbindingmessagesize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGenerateMessage(tokenbindings : *const *const core::ffi::c_void, tokenbindingssize : *const u32, tokenbindingscount : u32, tokenbindingmessage : *mut *mut core::ffi::c_void, tokenbindingmessagesize : *mut u32) -> windows_core::HRESULT); - TokenBindingGenerateMessage(core::mem::transmute(tokenbindings), core::mem::transmute(tokenbindingssize), core::mem::transmute(tokenbindingscount), core::mem::transmute(tokenbindingmessage), core::mem::transmute(tokenbindingmessagesize)).ok() + TokenBindingGenerateMessage(tokenbindings, tokenbindingssize, tokenbindingscount, core::mem::transmute(tokenbindingmessage), core::mem::transmute(tokenbindingmessagesize)).ok() } #[inline] pub unsafe fn TokenBindingGetHighestSupportedVersion(majorversion: *mut u8, minorversion: *mut u8) -> windows_core::Result<()> { @@ -1406,7 +1371,7 @@ pub unsafe fn TokenBindingGetKeyTypesServer() -> windows_core::Result<*mut TOKEN pub unsafe fn TokenBindingVerifyMessage(tokenbindingmessage: *const core::ffi::c_void, tokenbindingmessagesize: u32, keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, tlsekm: *const core::ffi::c_void, tlsekmsize: u32) -> windows_core::Result<*mut TOKENBINDING_RESULT_LIST> { windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingVerifyMessage(tokenbindingmessage : *const core::ffi::c_void, tokenbindingmessagesize : u32, keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, tlsekm : *const core::ffi::c_void, tlsekmsize : u32, resultlist : *mut *mut TOKENBINDING_RESULT_LIST) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - TokenBindingVerifyMessage(core::mem::transmute(tokenbindingmessage), core::mem::transmute(tokenbindingmessagesize), core::mem::transmute(keytype), core::mem::transmute(tlsekm), core::mem::transmute(tlsekmsize), &mut result__).map(|| core::mem::transmute(result__)) + TokenBindingVerifyMessage(tokenbindingmessage, tokenbindingmessagesize, keytype, tlsekm, tlsekmsize, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn TranslateNameA(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: Option, nsize: *mut u32) -> bool @@ -1414,7 +1379,7 @@ where P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn TranslateNameA(lpaccountname : windows_core::PCSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_core::PSTR, nsize : *mut u32) -> bool); - TranslateNameA(lpaccountname.param().abi(), core::mem::transmute(accountnameformat), core::mem::transmute(desirednameformat), core::mem::transmute(lptranslatedname.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + TranslateNameA(lpaccountname.param().abi(), accountnameformat, desirednameformat, core::mem::transmute(lptranslatedname.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] pub unsafe fn TranslateNameW(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: Option, nsize: *mut u32) -> bool @@ -1422,14 +1387,14 @@ where P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn TranslateNameW(lpaccountname : windows_core::PCWSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_core::PWSTR, nsize : *mut u32) -> bool); - TranslateNameW(lpaccountname.param().abi(), core::mem::transmute(accountnameformat), core::mem::transmute(desirednameformat), core::mem::transmute(lptranslatedname.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + TranslateNameW(lpaccountname.param().abi(), accountnameformat, desirednameformat, core::mem::transmute(lptranslatedname.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn VerifySignature(phcontext: *const super::super::Credentials::SecHandle, pmessage: *const SecBufferDesc, messageseqno: u32) -> windows_core::Result { windows_targets::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const super::super::Credentials:: SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VerifySignature(core::mem::transmute(phcontext), core::mem::transmute(pmessage), core::mem::transmute(messageseqno), &mut result__).map(|| core::mem::transmute(result__)) + VerifySignature(phcontext, pmessage, messageseqno, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security_Credentials")] pub type ACCEPT_SECURITY_CONTEXT_FN = Option windows_core::HRESULT>; diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs index dc432a27b7..a67aa63c3a 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs @@ -14,7 +14,7 @@ where P1: windows_core::Param, { windows_targets::link!("aclui.dll" "system" fn EditSecurity(hwndowner : super::super::super::Foundation:: HWND, psi : * mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EditSecurity(core::mem::transmute(hwndowner), psi.param().abi()).ok() + EditSecurity(hwndowner, psi.param().abi()).ok() } #[inline] pub unsafe fn EditSecurityAdvanced(hwndowner: super::super::super::Foundation::HWND, psi: P1, usipage: SI_PAGE_TYPE) -> windows_core::Result<()> @@ -22,7 +22,7 @@ where P1: windows_core::Param, { windows_targets::link!("aclui.dll" "system" fn EditSecurityAdvanced(hwndowner : super::super::super::Foundation:: HWND, psi : * mut core::ffi::c_void, usipage : SI_PAGE_TYPE) -> windows_core::HRESULT); - EditSecurityAdvanced(core::mem::transmute(hwndowner), psi.param().abi(), core::mem::transmute(usipage)).ok() + EditSecurityAdvanced(hwndowner, psi.param().abi(), usipage).ok() } pub const CFSTR_ACLUI_SID_INFO_LIST: windows_core::PCWSTR = windows_core::w!("CFSTR_ACLUI_SID_INFO_LIST"); pub const DOBJ_COND_NTACLS: i32 = 8i32; @@ -50,7 +50,7 @@ impl IEffectivePermission { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEffectivePermission)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidobjecttype), core::mem::transmute(pusersid), pszservername.param().abi(), core::mem::transmute(psd), core::mem::transmute(ppobjecttypelist), core::mem::transmute(pcobjecttypelistlength), core::mem::transmute(ppgrantedaccesslist), core::mem::transmute(pcgrantedaccesslistlength)).ok() + (windows_core::Interface::vtable(self).GetEffectivePermission)(windows_core::Interface::as_raw(self), pguidobjecttype, pusersid, pszservername.param().abi(), psd, core::mem::transmute(ppobjecttypelist), core::mem::transmute(pcobjecttypelistlength), core::mem::transmute(ppgrantedaccesslist), core::mem::transmute(pcgrantedaccesslistlength)).ok() } } #[repr(C)] @@ -99,11 +99,11 @@ impl IEffectivePermission2 { { (windows_core::Interface::vtable(self).ComputeEffectivePermissionWithSecondarySecurity)( windows_core::Interface::as_raw(self), - core::mem::transmute(psid), + psid, core::mem::transmute(pdevicesid.unwrap_or(core::mem::zeroed())), pszservername.param().abi(), core::mem::transmute(psecurityobjects), - core::mem::transmute(dwsecurityobjectcount), + dwsecurityobjectcount, core::mem::transmute(pusergroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthzusergroupsoperations.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevicegroups.unwrap_or(core::mem::zeroed())), @@ -197,23 +197,23 @@ impl ISecurityInformation { (windows_core::Interface::vtable(self).GetObjectInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pobjectinfo)).ok() } pub unsafe fn GetSecurity(&self, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedinformation), core::mem::transmute(ppsecuritydescriptor), fdefault.into()).ok() + (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), requestedinformation, core::mem::transmute(ppsecuritydescriptor), fdefault.into()).ok() } pub unsafe fn SetSecurity(&self, securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), securityinformation, psecuritydescriptor).ok() } pub unsafe fn GetAccessRights(&self, pguidobjecttype: *const windows_core::GUID, dwflags: SECURITY_INFO_PAGE_FLAGS, ppaccess: *mut *mut SI_ACCESS, pcaccesses: *mut u32, pidefaultaccess: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAccessRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidobjecttype), core::mem::transmute(dwflags), core::mem::transmute(ppaccess), core::mem::transmute(pcaccesses), core::mem::transmute(pidefaultaccess)).ok() + (windows_core::Interface::vtable(self).GetAccessRights)(windows_core::Interface::as_raw(self), pguidobjecttype, dwflags, core::mem::transmute(ppaccess), core::mem::transmute(pcaccesses), core::mem::transmute(pidefaultaccess)).ok() } pub unsafe fn MapGeneric(&self, pguidobjecttype: *const windows_core::GUID, paceflags: *mut u8, pmask: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapGeneric)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidobjecttype), core::mem::transmute(paceflags), core::mem::transmute(pmask)).ok() + (windows_core::Interface::vtable(self).MapGeneric)(windows_core::Interface::as_raw(self), pguidobjecttype, core::mem::transmute(paceflags), core::mem::transmute(pmask)).ok() } pub unsafe fn GetInheritTypes(&self, ppinherittypes: *mut *mut SI_INHERIT_TYPE, pcinherittypes: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInheritTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ppinherittypes), core::mem::transmute(pcinherittypes)).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn PropertySheetPageCallback(&self, hwnd: super::super::super::Foundation::HWND, umsg: super::super::super::UI::Controls::PSPCB_MESSAGE, upage: SI_PAGE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PropertySheetPageCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(upage)).ok() + (windows_core::Interface::vtable(self).PropertySheetPageCallback)(windows_core::Interface::as_raw(self), hwnd, umsg, upage).ok() } } #[repr(C)] @@ -292,12 +292,12 @@ windows_core::imp::define_interface!(ISecurityInformation2, ISecurityInformation windows_core::imp::interface_hierarchy!(ISecurityInformation2, windows_core::IUnknown); impl ISecurityInformation2 { pub unsafe fn IsDaclCanonical(&self, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsDaclCanonical)(windows_core::Interface::as_raw(self), core::mem::transmute(pdacl)) + (windows_core::Interface::vtable(self).IsDaclCanonical)(windows_core::Interface::as_raw(self), pdacl) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LookupSids(&self, csids: u32, rgpsids: *const super::super::PSID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupSids)(windows_core::Interface::as_raw(self), core::mem::transmute(csids), core::mem::transmute(rgpsids), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupSids)(windows_core::Interface::as_raw(self), csids, rgpsids, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -351,7 +351,7 @@ impl ISecurityInformation3 { (windows_core::Interface::vtable(self).GetFullResourceName)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OpenElevatedEditor(&self, hwnd: super::super::super::Foundation::HWND, upage: SI_PAGE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenElevatedEditor)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(upage)).ok() + (windows_core::Interface::vtable(self).OpenElevatedEditor)(windows_core::Interface::as_raw(self), hwnd, upage).ok() } } #[repr(C)] @@ -423,7 +423,7 @@ windows_core::imp::define_interface!(ISecurityObjectTypeInfo, ISecurityObjectTyp windows_core::imp::interface_hierarchy!(ISecurityObjectTypeInfo, windows_core::IUnknown); impl ISecurityObjectTypeInfo { pub unsafe fn GetInheritSource(&self, si: u32, pacl: *mut super::super::ACL, ppinheritarray: *mut *mut super::INHERITED_FROMA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInheritSource)(windows_core::Interface::as_raw(self), core::mem::transmute(si), core::mem::transmute(pacl), core::mem::transmute(ppinheritarray)).ok() + (windows_core::Interface::vtable(self).GetInheritSource)(windows_core::Interface::as_raw(self), si, core::mem::transmute(pacl), core::mem::transmute(ppinheritarray)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs index 67354871d8..3bf75b4209 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -3,43 +3,32 @@ pub mod UI; #[inline] pub unsafe fn AuthzAccessCheck(flags: AUTHZ_ACCESS_CHECK_FLAGS, hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: Option, psecuritydescriptor: super::PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray: Option<&[super::PSECURITY_DESCRIPTOR]>, preply: *mut AUTHZ_ACCESS_REPLY, phaccesscheckresults: Option<*mut AUTHZ_ACCESS_CHECK_RESULTS_HANDLE>) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzAccessCheck(flags : AUTHZ_ACCESS_CHECK_FLAGS, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor : super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray : *const super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorcount : u32, preply : *mut AUTHZ_ACCESS_REPLY, phaccesscheckresults : *mut AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> super::super::Foundation:: BOOL); - AuthzAccessCheck( - core::mem::transmute(flags), - core::mem::transmute(hauthzclientcontext), - core::mem::transmute(prequest), - core::mem::transmute(hauditevent.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psecuritydescriptor), - core::mem::transmute(optionalsecuritydescriptorarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - optionalsecuritydescriptorarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(preply), - core::mem::transmute(phaccesscheckresults.unwrap_or(core::mem::zeroed())), - ) - .ok() + AuthzAccessCheck(flags, hauthzclientcontext, prequest, core::mem::transmute(hauditevent.unwrap_or(core::mem::zeroed())), psecuritydescriptor, core::mem::transmute(optionalsecuritydescriptorarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optionalsecuritydescriptorarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(preply), core::mem::transmute(phaccesscheckresults.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AuthzAddSidsToContext(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, sids: Option<*const super::SID_AND_ATTRIBUTES>, sidcount: u32, restrictedsids: Option<*const super::SID_AND_ATTRIBUTES>, restrictedsidcount: u32, phnewauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzAddSidsToContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, sids : *const super:: SID_AND_ATTRIBUTES, sidcount : u32, restrictedsids : *const super:: SID_AND_ATTRIBUTES, restrictedsidcount : u32, phnewauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzAddSidsToContext(core::mem::transmute(hauthzclientcontext), core::mem::transmute(sids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidcount), core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), core::mem::transmute(restrictedsidcount), core::mem::transmute(phnewauthzclientcontext)).ok() + AuthzAddSidsToContext(hauthzclientcontext, core::mem::transmute(sids.unwrap_or(core::mem::zeroed())), sidcount, core::mem::transmute(restrictedsids.unwrap_or(core::mem::zeroed())), restrictedsidcount, core::mem::transmute(phnewauthzclientcontext)).ok() } #[inline] pub unsafe fn AuthzCachedAccessCheck(flags: u32, haccesscheckresults: AUTHZ_ACCESS_CHECK_RESULTS_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: Option, preply: *mut AUTHZ_ACCESS_REPLY) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzCachedAccessCheck(flags : u32, haccesscheckresults : AUTHZ_ACCESS_CHECK_RESULTS_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, preply : *mut AUTHZ_ACCESS_REPLY) -> super::super::Foundation:: BOOL); - AuthzCachedAccessCheck(core::mem::transmute(flags), core::mem::transmute(haccesscheckresults), core::mem::transmute(prequest), core::mem::transmute(hauditevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(preply)).ok() + AuthzCachedAccessCheck(flags, haccesscheckresults, prequest, core::mem::transmute(hauditevent.unwrap_or(core::mem::zeroed())), core::mem::transmute(preply)).ok() } #[inline] pub unsafe fn AuthzEnumerateSecurityEventSources(dwflags: u32, buffer: *mut AUTHZ_SOURCE_SCHEMA_REGISTRATION, pdwcount: *mut u32, pdwlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzEnumerateSecurityEventSources(dwflags : u32, buffer : *mut AUTHZ_SOURCE_SCHEMA_REGISTRATION, pdwcount : *mut u32, pdwlength : *mut u32) -> super::super::Foundation:: BOOL); - AuthzEnumerateSecurityEventSources(core::mem::transmute(dwflags), core::mem::transmute(buffer), core::mem::transmute(pdwcount), core::mem::transmute(pdwlength)).ok() + AuthzEnumerateSecurityEventSources(dwflags, core::mem::transmute(buffer), core::mem::transmute(pdwcount), core::mem::transmute(pdwlength)).ok() } #[inline] pub unsafe fn AuthzEvaluateSacl(authzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, sacl: *const super::ACL, grantedaccess: u32, accessgranted: bool, pbgenerateaudit: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("authz.dll" "system" fn AuthzEvaluateSacl(authzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, sacl : *const super:: ACL, grantedaccess : u32, accessgranted : super::super::Foundation:: BOOL, pbgenerateaudit : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AuthzEvaluateSacl(core::mem::transmute(authzclientcontext), core::mem::transmute(prequest), core::mem::transmute(sacl), core::mem::transmute(grantedaccess), accessgranted.into(), core::mem::transmute(pbgenerateaudit)) + AuthzEvaluateSacl(authzclientcontext, prequest, sacl, grantedaccess, accessgranted.into(), core::mem::transmute(pbgenerateaudit)) } #[inline] pub unsafe fn AuthzFreeAuditEvent(hauditevent: AUTHZ_AUDIT_EVENT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzFreeAuditEvent(hauditevent : AUTHZ_AUDIT_EVENT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeAuditEvent(core::mem::transmute(hauditevent)).ok() + AuthzFreeAuditEvent(hauditevent).ok() } #[inline] pub unsafe fn AuthzFreeCentralAccessPolicyCache() -> windows_core::Result<()> { @@ -49,7 +38,7 @@ pub unsafe fn AuthzFreeCentralAccessPolicyCache() -> windows_core::Result<()> { #[inline] pub unsafe fn AuthzFreeContext(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzFreeContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeContext(core::mem::transmute(hauthzclientcontext)).ok() + AuthzFreeContext(hauthzclientcontext).ok() } #[inline] pub unsafe fn AuthzFreeHandle(haccesscheckresults: AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> windows_core::Result<()> { @@ -59,32 +48,32 @@ pub unsafe fn AuthzFreeHandle(haccesscheckresults: AUTHZ_ACCESS_CHECK_RESULTS_HA #[inline] pub unsafe fn AuthzFreeResourceManager(hauthzresourcemanager: AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzFreeResourceManager(hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeResourceManager(core::mem::transmute(hauthzresourcemanager)).ok() + AuthzFreeResourceManager(hauthzresourcemanager).ok() } #[inline] pub unsafe fn AuthzGetInformationFromContext(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, infoclass: AUTHZ_CONTEXT_INFORMATION_CLASS, buffersize: u32, psizerequired: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzGetInformationFromContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, infoclass : AUTHZ_CONTEXT_INFORMATION_CLASS, buffersize : u32, psizerequired : *mut u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - AuthzGetInformationFromContext(core::mem::transmute(hauthzclientcontext), core::mem::transmute(infoclass), core::mem::transmute(buffersize), core::mem::transmute(psizerequired), core::mem::transmute(buffer)).ok() + AuthzGetInformationFromContext(hauthzclientcontext, infoclass, buffersize, core::mem::transmute(psizerequired), core::mem::transmute(buffer)).ok() } #[inline] pub unsafe fn AuthzInitializeCompoundContext(usercontext: AUTHZ_CLIENT_CONTEXT_HANDLE, devicecontext: AUTHZ_CLIENT_CONTEXT_HANDLE, phcompoundcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzInitializeCompoundContext(usercontext : AUTHZ_CLIENT_CONTEXT_HANDLE, devicecontext : AUTHZ_CLIENT_CONTEXT_HANDLE, phcompoundcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzInitializeCompoundContext(core::mem::transmute(usercontext), core::mem::transmute(devicecontext), core::mem::transmute(phcompoundcontext)).ok() + AuthzInitializeCompoundContext(usercontext, devicecontext, core::mem::transmute(phcompoundcontext)).ok() } #[inline] pub unsafe fn AuthzInitializeContextFromAuthzContext(flags: u32, hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: *const core::ffi::c_void, phnewauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromAuthzContext(flags : u32, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phnewauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzInitializeContextFromAuthzContext(core::mem::transmute(flags), core::mem::transmute(hauthzclientcontext), core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs), core::mem::transmute(phnewauthzclientcontext)).ok() + AuthzInitializeContextFromAuthzContext(flags, hauthzclientcontext, core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(identifier), dynamicgroupargs, core::mem::transmute(phnewauthzclientcontext)).ok() } #[inline] pub unsafe fn AuthzInitializeContextFromSid(flags: u32, usersid: super::PSID, hauthzresourcemanager: AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: Option<*const core::ffi::c_void>, phauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromSid(flags : u32, usersid : super:: PSID, hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzInitializeContextFromSid(core::mem::transmute(flags), core::mem::transmute(usersid), core::mem::transmute(hauthzresourcemanager), core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(core::mem::zeroed())), core::mem::transmute(phauthzclientcontext)).ok() + AuthzInitializeContextFromSid(flags, usersid, hauthzresourcemanager, core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(core::mem::zeroed())), core::mem::transmute(phauthzclientcontext)).ok() } #[inline] pub unsafe fn AuthzInitializeContextFromToken(flags: u32, tokenhandle: super::super::Foundation::HANDLE, hauthzresourcemanager: AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: Option<*const core::ffi::c_void>, phauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromToken(flags : u32, tokenhandle : super::super::Foundation:: HANDLE, hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzInitializeContextFromToken(core::mem::transmute(flags), core::mem::transmute(tokenhandle), core::mem::transmute(hauthzresourcemanager), core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(core::mem::zeroed())), core::mem::transmute(phauthzclientcontext)).ok() + AuthzInitializeContextFromToken(flags, tokenhandle, hauthzresourcemanager, core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(core::mem::zeroed())), core::mem::transmute(phauthzclientcontext)).ok() } #[inline] pub unsafe fn AuthzInitializeObjectAccessAuditEvent(flags: AUTHZ_INITIALIZE_OBJECT_ACCESS_AUDIT_EVENT_FLAGS, hauditeventtype: AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype: P2, szobjecttype: P3, szobjectname: P4, szadditionalinfo: P5, phauditevent: *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount: u32) -> windows_core::Result<()> @@ -95,7 +84,7 @@ where P5: windows_core::Param, { windows_targets::link!("authz.dll" "cdecl" fn AuthzInitializeObjectAccessAuditEvent(flags : AUTHZ_INITIALIZE_OBJECT_ACCESS_AUDIT_EVENT_FLAGS, hauditeventtype : AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype : windows_core::PCWSTR, szobjecttype : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szadditionalinfo : windows_core::PCWSTR, phauditevent : *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount : u32) -> super::super::Foundation:: BOOL); - AuthzInitializeObjectAccessAuditEvent(core::mem::transmute(flags), core::mem::transmute(hauditeventtype), szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), core::mem::transmute(phauditevent), core::mem::transmute(dwadditionalparametercount)).ok() + AuthzInitializeObjectAccessAuditEvent(flags, hauditeventtype, szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), core::mem::transmute(phauditevent), dwadditionalparametercount).ok() } #[inline] pub unsafe fn AuthzInitializeObjectAccessAuditEvent2(flags: u32, hauditeventtype: AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype: P2, szobjecttype: P3, szobjectname: P4, szadditionalinfo: P5, szadditionalinfo2: P6, phauditevent: *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount: u32) -> windows_core::Result<()> @@ -107,12 +96,12 @@ where P6: windows_core::Param, { windows_targets::link!("authz.dll" "cdecl" fn AuthzInitializeObjectAccessAuditEvent2(flags : u32, hauditeventtype : AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype : windows_core::PCWSTR, szobjecttype : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szadditionalinfo : windows_core::PCWSTR, szadditionalinfo2 : windows_core::PCWSTR, phauditevent : *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount : u32) -> super::super::Foundation:: BOOL); - AuthzInitializeObjectAccessAuditEvent2(core::mem::transmute(flags), core::mem::transmute(hauditeventtype), szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), szadditionalinfo2.param().abi(), core::mem::transmute(phauditevent), core::mem::transmute(dwadditionalparametercount)).ok() + AuthzInitializeObjectAccessAuditEvent2(flags, hauditeventtype, szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), szadditionalinfo2.param().abi(), core::mem::transmute(phauditevent), dwadditionalparametercount).ok() } #[inline] pub unsafe fn AuthzInitializeRemoteResourceManager(prpcinitinfo: *const AUTHZ_RPC_INIT_INFO_CLIENT, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzInitializeRemoteResourceManager(prpcinitinfo : *const AUTHZ_RPC_INIT_INFO_CLIENT, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); - AuthzInitializeRemoteResourceManager(core::mem::transmute(prpcinitinfo), core::mem::transmute(phauthzresourcemanager)).ok() + AuthzInitializeRemoteResourceManager(prpcinitinfo, core::mem::transmute(phauthzresourcemanager)).ok() } #[inline] pub unsafe fn AuthzInitializeResourceManager(flags: u32, pfndynamicaccesscheck: Option, pfncomputedynamicgroups: Option, pfnfreedynamicgroups: Option, szresourcemanagername: P4, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> @@ -120,7 +109,7 @@ where P4: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzInitializeResourceManager(flags : u32, pfndynamicaccesscheck : PFN_AUTHZ_DYNAMIC_ACCESS_CHECK, pfncomputedynamicgroups : PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS, pfnfreedynamicgroups : PFN_AUTHZ_FREE_DYNAMIC_GROUPS, szresourcemanagername : windows_core::PCWSTR, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); - AuthzInitializeResourceManager(core::mem::transmute(flags), core::mem::transmute(pfndynamicaccesscheck.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfncomputedynamicgroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfreedynamicgroups.unwrap_or(core::mem::zeroed())), szresourcemanagername.param().abi(), core::mem::transmute(phauthzresourcemanager)).ok() + AuthzInitializeResourceManager(flags, core::mem::transmute(pfndynamicaccesscheck.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfncomputedynamicgroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfreedynamicgroups.unwrap_or(core::mem::zeroed())), szresourcemanagername.param().abi(), core::mem::transmute(phauthzresourcemanager)).ok() } #[inline] pub unsafe fn AuthzInitializeResourceManagerEx(flags: Option, pauthzinitinfo: Option<*const AUTHZ_INIT_INFO>, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { @@ -130,33 +119,33 @@ pub unsafe fn AuthzInitializeResourceManagerEx(flags: Option windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzInstallSecurityEventSource(dwflags : u32, pregistration : *const AUTHZ_SOURCE_SCHEMA_REGISTRATION) -> super::super::Foundation:: BOOL); - AuthzInstallSecurityEventSource(core::mem::transmute(dwflags), core::mem::transmute(pregistration)).ok() + AuthzInstallSecurityEventSource(dwflags, pregistration).ok() } #[inline] pub unsafe fn AuthzModifyClaims(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, claimclass: AUTHZ_CONTEXT_INFORMATION_CLASS, pclaimoperations: *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pclaims: Option<*const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION>) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzModifyClaims(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, claimclass : AUTHZ_CONTEXT_INFORMATION_CLASS, pclaimoperations : *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pclaims : *const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION) -> super::super::Foundation:: BOOL); - AuthzModifyClaims(core::mem::transmute(hauthzclientcontext), core::mem::transmute(claimclass), core::mem::transmute(pclaimoperations), core::mem::transmute(pclaims.unwrap_or(core::mem::zeroed()))).ok() + AuthzModifyClaims(hauthzclientcontext, claimclass, pclaimoperations, core::mem::transmute(pclaims.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AuthzModifySecurityAttributes(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, poperations: *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pattributes: Option<*const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION>) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzModifySecurityAttributes(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, poperations : *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pattributes : *const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION) -> super::super::Foundation:: BOOL); - AuthzModifySecurityAttributes(core::mem::transmute(hauthzclientcontext), core::mem::transmute(poperations), core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed()))).ok() + AuthzModifySecurityAttributes(hauthzclientcontext, poperations, core::mem::transmute(pattributes.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AuthzModifySids(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, sidclass: AUTHZ_CONTEXT_INFORMATION_CLASS, psidoperations: *const AUTHZ_SID_OPERATION, psids: Option<*const super::TOKEN_GROUPS>) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzModifySids(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, sidclass : AUTHZ_CONTEXT_INFORMATION_CLASS, psidoperations : *const AUTHZ_SID_OPERATION, psids : *const super:: TOKEN_GROUPS) -> super::super::Foundation:: BOOL); - AuthzModifySids(core::mem::transmute(hauthzclientcontext), core::mem::transmute(sidclass), core::mem::transmute(psidoperations), core::mem::transmute(psids.unwrap_or(core::mem::zeroed()))).ok() + AuthzModifySids(hauthzclientcontext, sidclass, psidoperations, core::mem::transmute(psids.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AuthzOpenObjectAudit(flags: u32, hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor: super::PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray: Option<&[super::PSECURITY_DESCRIPTOR]>, preply: *const AUTHZ_ACCESS_REPLY) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzOpenObjectAudit(flags : u32, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor : super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray : *const super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorcount : u32, preply : *const AUTHZ_ACCESS_REPLY) -> super::super::Foundation:: BOOL); - AuthzOpenObjectAudit(core::mem::transmute(flags), core::mem::transmute(hauthzclientcontext), core::mem::transmute(prequest), core::mem::transmute(hauditevent), core::mem::transmute(psecuritydescriptor), core::mem::transmute(optionalsecuritydescriptorarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optionalsecuritydescriptorarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(preply)).ok() + AuthzOpenObjectAudit(flags, hauthzclientcontext, prequest, hauditevent, psecuritydescriptor, core::mem::transmute(optionalsecuritydescriptorarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optionalsecuritydescriptorarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), preply).ok() } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn AuthzRegisterCapChangeNotification(phcapchangesubscription: *mut AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE, pfncapchangecallback: super::super::System::Threading::LPTHREAD_START_ROUTINE, pcallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzRegisterCapChangeNotification(phcapchangesubscription : *mut AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE, pfncapchangecallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pcallbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - AuthzRegisterCapChangeNotification(core::mem::transmute(phcapchangesubscription), core::mem::transmute(pfncapchangecallback), core::mem::transmute(pcallbackcontext.unwrap_or(core::mem::zeroed()))).ok() + AuthzRegisterCapChangeNotification(core::mem::transmute(phcapchangesubscription), pfncapchangecallback, core::mem::transmute(pcallbackcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AuthzRegisterSecurityEventSource(dwflags: u32, szeventsourcename: P1, pheventprovider: *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::Result<()> @@ -164,22 +153,22 @@ where P1: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzRegisterSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR, pheventprovider : *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> super::super::Foundation:: BOOL); - AuthzRegisterSecurityEventSource(core::mem::transmute(dwflags), szeventsourcename.param().abi(), core::mem::transmute(pheventprovider)).ok() + AuthzRegisterSecurityEventSource(dwflags, szeventsourcename.param().abi(), core::mem::transmute(pheventprovider)).ok() } #[inline] pub unsafe fn AuthzReportSecurityEvent(dwflags: u32, heventprovider: AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid: u32, pusersid: Option, dwcount: u32) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "cdecl" fn AuthzReportSecurityEvent(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super:: PSID, dwcount : u32) -> super::super::Foundation:: BOOL); - AuthzReportSecurityEvent(core::mem::transmute(dwflags), core::mem::transmute(heventprovider), core::mem::transmute(dwauditid), core::mem::transmute(pusersid.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcount)).ok() + AuthzReportSecurityEvent(dwflags, core::mem::transmute(heventprovider), dwauditid, core::mem::transmute(pusersid.unwrap_or(core::mem::zeroed())), dwcount).ok() } #[inline] pub unsafe fn AuthzReportSecurityEventFromParams(dwflags: u32, heventprovider: AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid: u32, pusersid: Option, pparams: *const AUDIT_PARAMS) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzReportSecurityEventFromParams(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super:: PSID, pparams : *const AUDIT_PARAMS) -> super::super::Foundation:: BOOL); - AuthzReportSecurityEventFromParams(core::mem::transmute(dwflags), core::mem::transmute(heventprovider), core::mem::transmute(dwauditid), core::mem::transmute(pusersid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pparams)).ok() + AuthzReportSecurityEventFromParams(dwflags, core::mem::transmute(heventprovider), dwauditid, core::mem::transmute(pusersid.unwrap_or(core::mem::zeroed())), pparams).ok() } #[inline] pub unsafe fn AuthzSetAppContainerInformation(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, pappcontainersid: super::PSID, pcapabilitysids: Option<&[super::SID_AND_ATTRIBUTES]>) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzSetAppContainerInformation(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pappcontainersid : super:: PSID, capabilitycount : u32, pcapabilitysids : *const super:: SID_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); - AuthzSetAppContainerInformation(core::mem::transmute(hauthzclientcontext), core::mem::transmute(pappcontainersid), pcapabilitysids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcapabilitysids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + AuthzSetAppContainerInformation(hauthzclientcontext, pappcontainersid, pcapabilitysids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcapabilitysids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn AuthzUninstallSecurityEventSource(dwflags: u32, szeventsourcename: P1) -> windows_core::Result<()> @@ -187,17 +176,17 @@ where P1: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzUninstallSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AuthzUninstallSecurityEventSource(core::mem::transmute(dwflags), szeventsourcename.param().abi()).ok() + AuthzUninstallSecurityEventSource(dwflags, szeventsourcename.param().abi()).ok() } #[inline] pub unsafe fn AuthzUnregisterCapChangeNotification(hcapchangesubscription: AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzUnregisterCapChangeNotification(hcapchangesubscription : AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE) -> super::super::Foundation:: BOOL); - AuthzUnregisterCapChangeNotification(core::mem::transmute(hcapchangesubscription)).ok() + AuthzUnregisterCapChangeNotification(hcapchangesubscription).ok() } #[inline] pub unsafe fn AuthzUnregisterSecurityEventSource(dwflags: u32, pheventprovider: *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::Result<()> { windows_targets::link!("authz.dll" "system" fn AuthzUnregisterSecurityEventSource(dwflags : u32, pheventprovider : *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> super::super::Foundation:: BOOL); - AuthzUnregisterSecurityEventSource(core::mem::transmute(dwflags), core::mem::transmute(pheventprovider)).ok() + AuthzUnregisterSecurityEventSource(dwflags, core::mem::transmute(pheventprovider)).ok() } #[inline] pub unsafe fn BuildExplicitAccessWithNameA(pexplicitaccess: *mut EXPLICIT_ACCESS_A, ptrusteename: P1, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: super::ACE_FLAGS) @@ -205,7 +194,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildExplicitAccessWithNameA(pexplicitaccess : *mut EXPLICIT_ACCESS_A, ptrusteename : windows_core::PCSTR, accesspermissions : u32, accessmode : ACCESS_MODE, inheritance : super:: ACE_FLAGS)); - BuildExplicitAccessWithNameA(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), core::mem::transmute(accesspermissions), core::mem::transmute(accessmode), core::mem::transmute(inheritance)) + BuildExplicitAccessWithNameA(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildExplicitAccessWithNameW(pexplicitaccess: *mut EXPLICIT_ACCESS_W, ptrusteename: P1, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: super::ACE_FLAGS) @@ -213,7 +202,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildExplicitAccessWithNameW(pexplicitaccess : *mut EXPLICIT_ACCESS_W, ptrusteename : windows_core::PCWSTR, accesspermissions : u32, accessmode : ACCESS_MODE, inheritance : super:: ACE_FLAGS)); - BuildExplicitAccessWithNameW(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), core::mem::transmute(accesspermissions), core::mem::transmute(accessmode), core::mem::transmute(inheritance)) + BuildExplicitAccessWithNameW(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildImpersonateExplicitAccessWithNameA(pexplicitaccess: *mut EXPLICIT_ACCESS_A, ptrusteename: P1, ptrustee: Option<*const TRUSTEE_A>, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: u32) @@ -221,7 +210,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildImpersonateExplicitAccessWithNameA(pexplicitaccess : *mut EXPLICIT_ACCESS_A, ptrusteename : windows_core::PCSTR, ptrustee : *const TRUSTEE_A, accesspermissions : u32, accessmode : ACCESS_MODE, inheritance : u32)); - BuildImpersonateExplicitAccessWithNameA(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), core::mem::transmute(ptrustee.unwrap_or(core::mem::zeroed())), core::mem::transmute(accesspermissions), core::mem::transmute(accessmode), core::mem::transmute(inheritance)) + BuildImpersonateExplicitAccessWithNameA(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), core::mem::transmute(ptrustee.unwrap_or(core::mem::zeroed())), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildImpersonateExplicitAccessWithNameW(pexplicitaccess: *mut EXPLICIT_ACCESS_W, ptrusteename: P1, ptrustee: Option<*const TRUSTEE_W>, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: u32) @@ -229,7 +218,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildImpersonateExplicitAccessWithNameW(pexplicitaccess : *mut EXPLICIT_ACCESS_W, ptrusteename : windows_core::PCWSTR, ptrustee : *const TRUSTEE_W, accesspermissions : u32, accessmode : ACCESS_MODE, inheritance : u32)); - BuildImpersonateExplicitAccessWithNameW(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), core::mem::transmute(ptrustee.unwrap_or(core::mem::zeroed())), core::mem::transmute(accesspermissions), core::mem::transmute(accessmode), core::mem::transmute(inheritance)) + BuildImpersonateExplicitAccessWithNameW(core::mem::transmute(pexplicitaccess), ptrusteename.param().abi(), core::mem::transmute(ptrustee.unwrap_or(core::mem::zeroed())), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildImpersonateTrusteeA(ptrustee: *mut TRUSTEE_A, pimpersonatetrustee: Option<*const TRUSTEE_A>) { @@ -330,22 +319,22 @@ pub unsafe fn BuildTrusteeWithSidW(ptrustee: *mut TRUSTEE_W, psid: Option) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor : super:: PSECURITY_DESCRIPTOR, requestedstringsdrevision : u32, securityinformation : super:: OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor : *mut windows_core::PSTR, stringsecuritydescriptorlen : *mut u32) -> super::super::Foundation:: BOOL); - ConvertSecurityDescriptorToStringSecurityDescriptorA(core::mem::transmute(securitydescriptor), core::mem::transmute(requestedstringsdrevision), core::mem::transmute(securityinformation), core::mem::transmute(stringsecuritydescriptor), core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(core::mem::zeroed()))).ok() + ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor, requestedstringsdrevision, securityinformation, core::mem::transmute(stringsecuritydescriptor), core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor: super::PSECURITY_DESCRIPTOR, requestedstringsdrevision: u32, securityinformation: super::OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor: *mut windows_core::PWSTR, stringsecuritydescriptorlen: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor : super:: PSECURITY_DESCRIPTOR, requestedstringsdrevision : u32, securityinformation : super:: OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor : *mut windows_core::PWSTR, stringsecuritydescriptorlen : *mut u32) -> super::super::Foundation:: BOOL); - ConvertSecurityDescriptorToStringSecurityDescriptorW(core::mem::transmute(securitydescriptor), core::mem::transmute(requestedstringsdrevision), core::mem::transmute(securityinformation), core::mem::transmute(stringsecuritydescriptor), core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(core::mem::zeroed()))).ok() + ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor, requestedstringsdrevision, securityinformation, core::mem::transmute(stringsecuritydescriptor), core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ConvertSidToStringSidA(sid: super::PSID, stringsid: *mut windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidA(sid : super:: PSID, stringsid : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); - ConvertSidToStringSidA(core::mem::transmute(sid), core::mem::transmute(stringsid)).ok() + ConvertSidToStringSidA(sid, core::mem::transmute(stringsid)).ok() } #[inline] pub unsafe fn ConvertSidToStringSidW(sid: super::PSID, stringsid: *mut windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidW(sid : super:: PSID, stringsid : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - ConvertSidToStringSidW(core::mem::transmute(sid), core::mem::transmute(stringsid)).ok() + ConvertSidToStringSidW(sid, core::mem::transmute(stringsid)).ok() } #[inline] pub unsafe fn ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor: P0, stringsdrevision: u32, securitydescriptor: *mut super::PSECURITY_DESCRIPTOR, securitydescriptorsize: Option<*mut u32>) -> windows_core::Result<()> @@ -353,7 +342,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor : windows_core::PCSTR, stringsdrevision : u32, securitydescriptor : *mut super:: PSECURITY_DESCRIPTOR, securitydescriptorsize : *mut u32) -> super::super::Foundation:: BOOL); - ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor.param().abi(), core::mem::transmute(stringsdrevision), core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorsize.unwrap_or(core::mem::zeroed()))).ok() + ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor.param().abi(), stringsdrevision, core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor: P0, stringsdrevision: u32, securitydescriptor: *mut super::PSECURITY_DESCRIPTOR, securitydescriptorsize: Option<*mut u32>) -> windows_core::Result<()> @@ -361,7 +350,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor : windows_core::PCWSTR, stringsdrevision : u32, securitydescriptor : *mut super:: PSECURITY_DESCRIPTOR, securitydescriptorsize : *mut u32) -> super::super::Foundation:: BOOL); - ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor.param().abi(), core::mem::transmute(stringsdrevision), core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorsize.unwrap_or(core::mem::zeroed()))).ok() + ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor.param().abi(), stringsdrevision, core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ConvertStringSidToSidA(stringsid: P0, sid: *mut super::PSID) -> windows_core::Result<()> @@ -387,32 +376,32 @@ pub unsafe fn FreeInheritedFromArray(pinheritarray: &[INHERITED_FROMW], pfnarray #[inline] pub unsafe fn GetAuditedPermissionsFromAclA(pacl: *const super::ACL, ptrustee: *const TRUSTEE_A, psuccessfulauditedrights: *mut u32, pfailedauditrights: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetAuditedPermissionsFromAclA(pacl : *const super:: ACL, ptrustee : *const TRUSTEE_A, psuccessfulauditedrights : *mut u32, pfailedauditrights : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetAuditedPermissionsFromAclA(core::mem::transmute(pacl), core::mem::transmute(ptrustee), core::mem::transmute(psuccessfulauditedrights), core::mem::transmute(pfailedauditrights)) + GetAuditedPermissionsFromAclA(pacl, ptrustee, core::mem::transmute(psuccessfulauditedrights), core::mem::transmute(pfailedauditrights)) } #[inline] pub unsafe fn GetAuditedPermissionsFromAclW(pacl: *const super::ACL, ptrustee: *const TRUSTEE_W, psuccessfulauditedrights: *mut u32, pfailedauditrights: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetAuditedPermissionsFromAclW(pacl : *const super:: ACL, ptrustee : *const TRUSTEE_W, psuccessfulauditedrights : *mut u32, pfailedauditrights : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetAuditedPermissionsFromAclW(core::mem::transmute(pacl), core::mem::transmute(ptrustee), core::mem::transmute(psuccessfulauditedrights), core::mem::transmute(pfailedauditrights)) + GetAuditedPermissionsFromAclW(pacl, ptrustee, core::mem::transmute(psuccessfulauditedrights), core::mem::transmute(pfailedauditrights)) } #[inline] pub unsafe fn GetEffectiveRightsFromAclA(pacl: *const super::ACL, ptrustee: *const TRUSTEE_A, paccessrights: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetEffectiveRightsFromAclA(pacl : *const super:: ACL, ptrustee : *const TRUSTEE_A, paccessrights : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetEffectiveRightsFromAclA(core::mem::transmute(pacl), core::mem::transmute(ptrustee), core::mem::transmute(paccessrights)) + GetEffectiveRightsFromAclA(pacl, ptrustee, core::mem::transmute(paccessrights)) } #[inline] pub unsafe fn GetEffectiveRightsFromAclW(pacl: *const super::ACL, ptrustee: *const TRUSTEE_W, paccessrights: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetEffectiveRightsFromAclW(pacl : *const super:: ACL, ptrustee : *const TRUSTEE_W, paccessrights : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetEffectiveRightsFromAclW(core::mem::transmute(pacl), core::mem::transmute(ptrustee), core::mem::transmute(paccessrights)) + GetEffectiveRightsFromAclW(pacl, ptrustee, core::mem::transmute(paccessrights)) } #[inline] pub unsafe fn GetExplicitEntriesFromAclA(pacl: *const super::ACL, pccountofexplicitentries: *mut u32, plistofexplicitentries: *mut *mut EXPLICIT_ACCESS_A) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetExplicitEntriesFromAclA(pacl : *const super:: ACL, pccountofexplicitentries : *mut u32, plistofexplicitentries : *mut *mut EXPLICIT_ACCESS_A) -> super::super::Foundation:: WIN32_ERROR); - GetExplicitEntriesFromAclA(core::mem::transmute(pacl), core::mem::transmute(pccountofexplicitentries), core::mem::transmute(plistofexplicitentries)) + GetExplicitEntriesFromAclA(pacl, core::mem::transmute(pccountofexplicitentries), core::mem::transmute(plistofexplicitentries)) } #[inline] pub unsafe fn GetExplicitEntriesFromAclW(pacl: *const super::ACL, pccountofexplicitentries: *mut u32, plistofexplicitentries: *mut *mut EXPLICIT_ACCESS_W) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetExplicitEntriesFromAclW(pacl : *const super:: ACL, pccountofexplicitentries : *mut u32, plistofexplicitentries : *mut *mut EXPLICIT_ACCESS_W) -> super::super::Foundation:: WIN32_ERROR); - GetExplicitEntriesFromAclW(core::mem::transmute(pacl), core::mem::transmute(pccountofexplicitentries), core::mem::transmute(plistofexplicitentries)) + GetExplicitEntriesFromAclW(pacl, core::mem::transmute(pccountofexplicitentries), core::mem::transmute(plistofexplicitentries)) } #[inline] pub unsafe fn GetInheritanceSourceA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, container: bool, pobjectclassguids: Option<&[*const windows_core::GUID]>, pacl: *const super::ACL, pfnarray: Option<*const FN_OBJECT_MGR_FUNCTS>, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMA) -> super::super::Foundation::WIN32_ERROR @@ -420,7 +409,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetInheritanceSourceA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, container : super::super::Foundation:: BOOL, pobjectclassguids : *const *const windows_core::GUID, guidcount : u32, pacl : *const super:: ACL, pfnarray : *const FN_OBJECT_MGR_FUNCTS, pgenericmapping : *const super:: GENERIC_MAPPING, pinheritarray : *mut INHERITED_FROMA) -> super::super::Foundation:: WIN32_ERROR); - GetInheritanceSourceA(pobjectname.param().abi(), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), container.into(), core::mem::transmute(pobjectclassguids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pacl), core::mem::transmute(pfnarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgenericmapping), core::mem::transmute(pinheritarray)) + GetInheritanceSourceA(pobjectname.param().abi(), objecttype, securityinfo, container.into(), core::mem::transmute(pobjectclassguids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pacl, core::mem::transmute(pfnarray.unwrap_or(core::mem::zeroed())), pgenericmapping, core::mem::transmute(pinheritarray)) } #[inline] pub unsafe fn GetInheritanceSourceW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, container: bool, pobjectclassguids: Option<&[*const windows_core::GUID]>, pacl: *const super::ACL, pfnarray: Option<*const FN_OBJECT_MGR_FUNCTS>, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMW) -> super::super::Foundation::WIN32_ERROR @@ -428,7 +417,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetInheritanceSourceW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, container : super::super::Foundation:: BOOL, pobjectclassguids : *const *const windows_core::GUID, guidcount : u32, pacl : *const super:: ACL, pfnarray : *const FN_OBJECT_MGR_FUNCTS, pgenericmapping : *const super:: GENERIC_MAPPING, pinheritarray : *mut INHERITED_FROMW) -> super::super::Foundation:: WIN32_ERROR); - GetInheritanceSourceW(pobjectname.param().abi(), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), container.into(), core::mem::transmute(pobjectclassguids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pacl), core::mem::transmute(pfnarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgenericmapping), core::mem::transmute(pinheritarray)) + GetInheritanceSourceW(pobjectname.param().abi(), objecttype, securityinfo, container.into(), core::mem::transmute(pobjectclassguids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pacl, core::mem::transmute(pfnarray.unwrap_or(core::mem::zeroed())), pgenericmapping, core::mem::transmute(pinheritarray)) } #[inline] pub unsafe fn GetMultipleTrusteeA(ptrustee: Option<*const TRUSTEE_A>) -> *mut TRUSTEE_A { @@ -456,7 +445,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetNamedSecurityInfoA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, ppsidowner : *mut super:: PSID, ppsidgroup : *mut super:: PSID, ppdacl : *mut *mut super:: ACL, ppsacl : *mut *mut super:: ACL, ppsecuritydescriptor : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - GetNamedSecurityInfoA(pobjectname.param().abi(), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), core::mem::transmute(ppsidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsecuritydescriptor)) + GetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsecuritydescriptor)) } #[inline] pub unsafe fn GetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, ppsidowner: Option<*mut super::PSID>, ppsidgroup: Option<*mut super::PSID>, ppdacl: Option<*mut *mut super::ACL>, ppsacl: Option<*mut *mut super::ACL>, ppsecuritydescriptor: *mut super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR @@ -464,32 +453,32 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetNamedSecurityInfoW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, ppsidowner : *mut super:: PSID, ppsidgroup : *mut super:: PSID, ppdacl : *mut *mut super:: ACL, ppsacl : *mut *mut super:: ACL, ppsecuritydescriptor : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - GetNamedSecurityInfoW(pobjectname.param().abi(), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), core::mem::transmute(ppsidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsecuritydescriptor)) + GetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsecuritydescriptor)) } #[inline] pub unsafe fn GetSecurityInfo(handle: super::super::Foundation::HANDLE, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, ppsidowner: Option<*mut super::PSID>, ppsidgroup: Option<*mut super::PSID>, ppdacl: Option<*mut *mut super::ACL>, ppsacl: Option<*mut *mut super::ACL>, ppsecuritydescriptor: Option<*mut super::PSECURITY_DESCRIPTOR>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn GetSecurityInfo(handle : super::super::Foundation:: HANDLE, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, ppsidowner : *mut super:: PSID, ppsidgroup : *mut super:: PSID, ppdacl : *mut *mut super:: ACL, ppsacl : *mut *mut super:: ACL, ppsecuritydescriptor : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - GetSecurityInfo(core::mem::transmute(handle), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), core::mem::transmute(ppsidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsecuritydescriptor.unwrap_or(core::mem::zeroed()))) + GetSecurityInfo(handle, objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsecuritydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetTrusteeFormA(ptrustee: *const TRUSTEE_A) -> TRUSTEE_FORM { windows_targets::link!("advapi32.dll" "system" fn GetTrusteeFormA(ptrustee : *const TRUSTEE_A) -> TRUSTEE_FORM); - GetTrusteeFormA(core::mem::transmute(ptrustee)) + GetTrusteeFormA(ptrustee) } #[inline] pub unsafe fn GetTrusteeFormW(ptrustee: *const TRUSTEE_W) -> TRUSTEE_FORM { windows_targets::link!("advapi32.dll" "system" fn GetTrusteeFormW(ptrustee : *const TRUSTEE_W) -> TRUSTEE_FORM); - GetTrusteeFormW(core::mem::transmute(ptrustee)) + GetTrusteeFormW(ptrustee) } #[inline] pub unsafe fn GetTrusteeNameA(ptrustee: *const TRUSTEE_A) -> windows_core::PSTR { windows_targets::link!("advapi32.dll" "system" fn GetTrusteeNameA(ptrustee : *const TRUSTEE_A) -> windows_core::PSTR); - GetTrusteeNameA(core::mem::transmute(ptrustee)) + GetTrusteeNameA(ptrustee) } #[inline] pub unsafe fn GetTrusteeNameW(ptrustee: *const TRUSTEE_W) -> windows_core::PWSTR { windows_targets::link!("advapi32.dll" "system" fn GetTrusteeNameW(ptrustee : *const TRUSTEE_W) -> windows_core::PWSTR); - GetTrusteeNameW(core::mem::transmute(ptrustee)) + GetTrusteeNameW(ptrustee) } #[inline] pub unsafe fn GetTrusteeTypeA(ptrustee: Option<*const TRUSTEE_A>) -> TRUSTEE_TYPE { @@ -504,12 +493,12 @@ pub unsafe fn GetTrusteeTypeW(ptrustee: Option<*const TRUSTEE_W>) -> TRUSTEE_TYP #[inline] pub unsafe fn LookupSecurityDescriptorPartsA(ppowner: Option<*mut *mut TRUSTEE_A>, ppgroup: Option<*mut *mut TRUSTEE_A>, pccountofaccessentries: Option<*mut u32>, pplistofaccessentries: *mut *mut EXPLICIT_ACCESS_A, pccountofauditentries: Option<*mut u32>, pplistofauditentries: *mut *mut EXPLICIT_ACCESS_A, psd: super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn LookupSecurityDescriptorPartsA(ppowner : *mut *mut TRUSTEE_A, ppgroup : *mut *mut TRUSTEE_A, pccountofaccessentries : *mut u32, pplistofaccessentries : *mut *mut EXPLICIT_ACCESS_A, pccountofauditentries : *mut u32, pplistofauditentries : *mut *mut EXPLICIT_ACCESS_A, psd : super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - LookupSecurityDescriptorPartsA(core::mem::transmute(ppowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccountofaccessentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofaccessentries), core::mem::transmute(pccountofauditentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofauditentries), core::mem::transmute(psd)) + LookupSecurityDescriptorPartsA(core::mem::transmute(ppowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccountofaccessentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofaccessentries), core::mem::transmute(pccountofauditentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofauditentries), psd) } #[inline] pub unsafe fn LookupSecurityDescriptorPartsW(ppowner: Option<*mut *mut TRUSTEE_W>, ppgroup: Option<*mut *mut TRUSTEE_W>, pccountofaccessentries: Option<*mut u32>, pplistofaccessentries: *mut *mut EXPLICIT_ACCESS_W, pccountofauditentries: Option<*mut u32>, pplistofauditentries: *mut *mut EXPLICIT_ACCESS_W, psd: super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn LookupSecurityDescriptorPartsW(ppowner : *mut *mut TRUSTEE_W, ppgroup : *mut *mut TRUSTEE_W, pccountofaccessentries : *mut u32, pplistofaccessentries : *mut *mut EXPLICIT_ACCESS_W, pccountofauditentries : *mut u32, pplistofauditentries : *mut *mut EXPLICIT_ACCESS_W, psd : super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - LookupSecurityDescriptorPartsW(core::mem::transmute(ppowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccountofaccessentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofaccessentries), core::mem::transmute(pccountofauditentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofauditentries), core::mem::transmute(psd)) + LookupSecurityDescriptorPartsW(core::mem::transmute(ppowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccountofaccessentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofaccessentries), core::mem::transmute(pccountofauditentries.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplistofauditentries), psd) } #[inline] pub unsafe fn SetEntriesInAclA(plistofexplicitentries: Option<&[EXPLICIT_ACCESS_A]>, oldacl: Option<*const super::ACL>, newacl: *mut *mut super::ACL) -> super::super::Foundation::WIN32_ERROR { @@ -527,7 +516,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetNamedSecurityInfoA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, psidowner : super:: PSID, psidgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL) -> super::super::Foundation:: WIN32_ERROR); - SetNamedSecurityInfoA(pobjectname.param().abi(), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), core::mem::transmute(psidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(psidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed()))) + SetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(psidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(psidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, psidowner: Option, psidgroup: Option, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>) -> super::super::Foundation::WIN32_ERROR @@ -535,12 +524,12 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetNamedSecurityInfoW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, psidowner : super:: PSID, psidgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL) -> super::super::Foundation:: WIN32_ERROR); - SetNamedSecurityInfoW(pobjectname.param().abi(), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), core::mem::transmute(psidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(psidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed()))) + SetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(psidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(psidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetSecurityInfo(handle: super::super::Foundation::HANDLE, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, psidowner: Option, psidgroup: Option, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn SetSecurityInfo(handle : super::super::Foundation:: HANDLE, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, psidowner : super:: PSID, psidgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL) -> super::super::Foundation:: WIN32_ERROR); - SetSecurityInfo(core::mem::transmute(handle), core::mem::transmute(objecttype), core::mem::transmute(securityinfo), core::mem::transmute(psidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(psidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed()))) + SetSecurityInfo(handle, objecttype, securityinfo, core::mem::transmute(psidowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(psidgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TreeResetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: Option, pgroup: Option, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, keepexplicit: bool, fnprogress: Option, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -548,19 +537,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn TreeResetNamedSecurityInfoA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, keepexplicit : super::super::Foundation:: BOOL, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - TreeResetNamedSecurityInfoA( - pobjectname.param().abi(), - core::mem::transmute(objecttype), - core::mem::transmute(securityinfo), - core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), - keepexplicit.into(), - core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(progressinvokesetting), - core::mem::transmute(args.unwrap_or(core::mem::zeroed())), - ) + TreeResetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), keepexplicit.into(), core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), progressinvokesetting, core::mem::transmute(args.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TreeResetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: Option, pgroup: Option, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, keepexplicit: bool, fnprogress: Option, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -568,19 +545,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn TreeResetNamedSecurityInfoW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, keepexplicit : super::super::Foundation:: BOOL, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - TreeResetNamedSecurityInfoW( - pobjectname.param().abi(), - core::mem::transmute(objecttype), - core::mem::transmute(securityinfo), - core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), - keepexplicit.into(), - core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(progressinvokesetting), - core::mem::transmute(args.unwrap_or(core::mem::zeroed())), - ) + TreeResetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), keepexplicit.into(), core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), progressinvokesetting, core::mem::transmute(args.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TreeSetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: Option, pgroup: Option, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, dwaction: TREE_SEC_INFO, fnprogress: Option, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -588,19 +553,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn TreeSetNamedSecurityInfoA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, dwaction : TREE_SEC_INFO, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - TreeSetNamedSecurityInfoA( - pobjectname.param().abi(), - core::mem::transmute(objecttype), - core::mem::transmute(securityinfo), - core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwaction), - core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(progressinvokesetting), - core::mem::transmute(args.unwrap_or(core::mem::zeroed())), - ) + TreeSetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), dwaction, core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), progressinvokesetting, core::mem::transmute(args.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TreeSetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: Option, pgroup: Option, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, dwaction: TREE_SEC_INFO, fnprogress: Option, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -608,19 +561,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn TreeSetNamedSecurityInfoW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, dwaction : TREE_SEC_INFO, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - TreeSetNamedSecurityInfoW( - pobjectname.param().abi(), - core::mem::transmute(objecttype), - core::mem::transmute(securityinfo), - core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwaction), - core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(progressinvokesetting), - core::mem::transmute(args.unwrap_or(core::mem::zeroed())), - ) + TreeSetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(powner.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(psacl.unwrap_or(core::mem::zeroed())), dwaction, core::mem::transmute(fnprogress.unwrap_or(core::mem::zeroed())), progressinvokesetting, core::mem::transmute(args.unwrap_or(core::mem::zeroed()))) } pub const ACCCTRL_DEFAULT_PROVIDER: windows_core::PCWSTR = windows_core::w!("Windows NT Access Provider"); pub const ACCCTRL_DEFAULT_PROVIDERA: windows_core::PCSTR = windows_core::s!("Windows NT Access Provider"); @@ -1717,11 +1658,11 @@ impl IAzApplication { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { @@ -1842,19 +1783,19 @@ impl IAzApplication { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InitializeClientContextFromToken(&self, ulltokenhandle: u64, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), core::mem::transmute(ulltokenhandle), core::mem::transmute_copy(varreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, core::mem::transmute_copy(varreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InitializeClientContextFromName(&self, clientname: &windows_core::BSTR, domainname: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -1877,7 +1818,7 @@ impl IAzApplication { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InitializeClientContextFromStringSid(&self, sidstring: &windows_core::BSTR, loptions: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sidstring), core::mem::transmute(loptions), core::mem::transmute_copy(varreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sidstring), loptions, core::mem::transmute_copy(varreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { @@ -2704,7 +2645,7 @@ impl IAzApplication2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InitializeClientContextFromToken2(&self, ultokenhandlelowpart: u32, ultokenhandlehighpart: u32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromToken2)(windows_core::Interface::as_raw(self), core::mem::transmute(ultokenhandlelowpart), core::mem::transmute(ultokenhandlehighpart), core::mem::transmute_copy(varreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromToken2)(windows_core::Interface::as_raw(self), ultokenhandlelowpart, ultokenhandlehighpart, core::mem::transmute_copy(varreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InitializeClientContext2(&self, identifyingstring: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -2828,7 +2769,7 @@ impl IAzApplication3 { (windows_core::Interface::vtable(self).BizRulesEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBizRulesEnabled(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBizRulesEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetBizRulesEnabled)(windows_core::Interface::as_raw(self), benabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3035,7 +2976,7 @@ impl IAzApplicationGroup { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, lprop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(lprop)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), lprop).ok() } pub unsafe fn LdapQuery(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3110,23 +3051,23 @@ impl IAzApplicationGroup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddMemberName(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -3577,7 +3518,7 @@ impl IAzApplicationGroup2 { } pub unsafe fn RoleAssignments(&self, bstrscopename: &windows_core::BSTR, brecursive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), core::mem::transmute(brecursive), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), brecursive, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3690,7 +3631,7 @@ impl IAzApplicationGroups { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3780,7 +3721,7 @@ impl IAzApplications { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3886,21 +3827,21 @@ impl IAzAuthorizationStore { (windows_core::Interface::vtable(self).DomainTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDomainTimeout(&self, lprop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDomainTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(lprop)).ok() + (windows_core::Interface::vtable(self).SetDomainTimeout)(windows_core::Interface::as_raw(self), lprop).ok() } pub unsafe fn ScriptEngineTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ScriptEngineTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScriptEngineTimeout(&self, lprop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScriptEngineTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(lprop)).ok() + (windows_core::Interface::vtable(self).SetScriptEngineTimeout)(windows_core::Interface::as_raw(self), lprop).ok() } pub unsafe fn MaxScriptEngines(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxScriptEngines)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxScriptEngines(&self, lprop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxScriptEngines)(windows_core::Interface::as_raw(self), core::mem::transmute(lprop)).ok() + (windows_core::Interface::vtable(self).SetMaxScriptEngines)(windows_core::Interface::as_raw(self), lprop).ok() } pub unsafe fn GenerateAudits(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3916,19 +3857,19 @@ impl IAzAuthorizationStore { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyItem(&self, lpropid: AZ_PROP_CONSTANTS, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { @@ -3958,7 +3899,7 @@ impl IAzAuthorizationStore { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Initialize(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(bstrpolicyurl), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrpolicyurl), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn UpdateCache(&self, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -4006,7 +3947,7 @@ impl IAzAuthorizationStore { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { @@ -4072,7 +4013,7 @@ impl IAzAuthorizationStore { (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdelegatedpolicyuser), core::mem::transmute_copy(varreserved)).ok() } pub unsafe fn CloseApplication(&self, bstrapplicationname: &windows_core::BSTR, lflag: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationname), core::mem::transmute(lflag)).ok() + (windows_core::Interface::vtable(self).CloseApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationname), lflag).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4780,11 +4721,11 @@ impl IAzAuthorizationStore3 { (windows_core::Interface::vtable(self).BizruleGroupSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn UpgradeStoresFunctionalLevel(&self, lfunctionallevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpgradeStoresFunctionalLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lfunctionallevel)).ok() + (windows_core::Interface::vtable(self).UpgradeStoresFunctionalLevel)(windows_core::Interface::as_raw(self), lfunctionallevel).ok() } pub unsafe fn IsFunctionalLevelUpgradeSupported(&self, lfunctionallevel: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsFunctionalLevelUpgradeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(lfunctionallevel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsFunctionalLevelUpgradeSupported)(windows_core::Interface::as_raw(self), lfunctionallevel, &mut result__).map(|| result__) } pub unsafe fn GetSchemaVersion(&self, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSchemaVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(plmajorversion), core::mem::transmute(plminorversion)).ok() @@ -4972,7 +4913,7 @@ windows_core::imp::interface_hierarchy!(IAzBizRuleInterfaces, windows_core::IUnk impl IAzBizRuleInterfaces { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddInterface(&self, bstrinterfacename: &windows_core::BSTR, linterfaceflag: i32, varinterface: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddInterface)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinterfacename), core::mem::transmute(linterfaceflag), core::mem::transmute_copy(varinterface)).ok() + (windows_core::Interface::vtable(self).AddInterface)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinterfacename), linterfaceflag, core::mem::transmute_copy(varinterface)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddInterfaces(&self, varinterfacenames: &super::super::System::Variant::VARIANT, varinterfaceflags: &super::super::System::Variant::VARIANT, varinterfaces: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -5245,7 +5186,7 @@ impl IAzClientContext { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetRoles(&self, bstrscopename: &windows_core::BSTR) -> windows_core::Result { @@ -5468,7 +5409,7 @@ windows_core::imp::interface_hierarchy!(IAzClientContext2, windows_core::IUnknow impl IAzClientContext2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAssignedScopesPage(&self, loptions: i32, pagesize: i32, pvarcursor: *mut super::super::System::Variant::VARIANT, pvarscopenames: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAssignedScopesPage)(windows_core::Interface::as_raw(self), core::mem::transmute(loptions), core::mem::transmute(pagesize), core::mem::transmute(pvarcursor), core::mem::transmute(pvarscopenames)).ok() + (windows_core::Interface::vtable(self).GetAssignedScopesPage)(windows_core::Interface::as_raw(self), loptions, pagesize, core::mem::transmute(pvarcursor), core::mem::transmute(pvarscopenames)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddRoles(&self, varroles: &super::super::System::Variant::VARIANT, bstrscopename: &windows_core::BSTR) -> windows_core::Result<()> { @@ -5586,7 +5527,7 @@ windows_core::imp::interface_hierarchy!(IAzClientContext3, windows_core::IUnknow impl IAzClientContext3 { pub unsafe fn AccessCheck2(&self, bstrobjectname: &windows_core::BSTR, bstrscopename: &windows_core::BSTR, loperation: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AccessCheck2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrobjectname), core::mem::transmute_copy(bstrscopename), core::mem::transmute(loperation), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AccessCheck2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrobjectname), core::mem::transmute_copy(bstrscopename), loperation, &mut result__).map(|| result__) } pub unsafe fn IsInRoleAssignment(&self, bstrscopename: &windows_core::BSTR, bstrrolename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5824,7 +5765,7 @@ windows_core::imp::interface_hierarchy!(IAzObjectPicker, windows_core::IUnknown, impl IAzObjectPicker { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPrincipals(&self, hparentwnd: super::super::Foundation::HWND, bstrtitle: &windows_core::BSTR, pvsidtypes: *mut super::super::System::Variant::VARIANT, pvnames: *mut super::super::System::Variant::VARIANT, pvsids: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPrincipals)(windows_core::Interface::as_raw(self), core::mem::transmute(hparentwnd), core::mem::transmute_copy(bstrtitle), core::mem::transmute(pvsidtypes), core::mem::transmute(pvnames), core::mem::transmute(pvsids)).ok() + (windows_core::Interface::vtable(self).GetPrincipals)(windows_core::Interface::as_raw(self), hparentwnd, core::mem::transmute_copy(bstrtitle), core::mem::transmute(pvsidtypes), core::mem::transmute(pvnames), core::mem::transmute(pvsids)).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5914,7 +5855,7 @@ impl IAzOperation { (windows_core::Interface::vtable(self).OperationID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOperationID(&self, lprop: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperationID)(windows_core::Interface::as_raw(self), core::mem::transmute(lprop)).ok() + (windows_core::Interface::vtable(self).SetOperationID)(windows_core::Interface::as_raw(self), lprop).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5923,15 +5864,15 @@ impl IAzOperation { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6099,7 +6040,7 @@ windows_core::imp::interface_hierarchy!(IAzOperation2, windows_core::IUnknown, s impl IAzOperation2 { pub unsafe fn RoleAssignments(&self, bstrscopename: &windows_core::BSTR, brecursive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), core::mem::transmute(brecursive), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), brecursive, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6149,7 +6090,7 @@ impl IAzOperations { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6365,11 +6306,11 @@ impl IAzRole { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AppMembers(&self) -> windows_core::Result { @@ -6393,15 +6334,15 @@ impl IAzRole { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddMemberName(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -6852,7 +6793,7 @@ impl IAzRoleAssignments { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6941,7 +6882,7 @@ windows_core::imp::interface_hierarchy!(IAzRoleDefinition, windows_core::IUnknow impl IAzRoleDefinition { pub unsafe fn RoleAssignments(&self, bstrscopename: &windows_core::BSTR, brecursive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), core::mem::transmute(brecursive), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), brecursive, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddRoleDefinition(&self, bstrroledefinition: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddRoleDefinition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrroledefinition)).ok() @@ -7031,7 +6972,7 @@ impl IAzRoleDefinitions { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7121,7 +7062,7 @@ impl IAzRoles { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7236,19 +7177,19 @@ impl IAzScope { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { @@ -7332,7 +7273,7 @@ impl IAzScope { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } pub unsafe fn CanBeDelegated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8027,7 +7968,7 @@ impl IAzScopes { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8196,23 +8137,23 @@ impl IAzTask { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varreserved), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropid), core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, core::mem::transmute_copy(varprop), core::mem::transmute_copy(varreserved)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(varreserved)).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8532,7 +8473,7 @@ windows_core::imp::interface_hierarchy!(IAzTask2, windows_core::IUnknown, super: impl IAzTask2 { pub unsafe fn RoleAssignments(&self, bstrscopename: &windows_core::BSTR, brecursive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), core::mem::transmute(brecursive), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrscopename), brecursive, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8582,7 +8523,7 @@ impl IAzTasks { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs index cda24576bb..1216f0b328 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs @@ -4,7 +4,7 @@ windows_core::imp::define_interface!(ISceSvcAttachmentData, ISceSvcAttachmentDat windows_core::imp::interface_hierarchy!(ISceSvcAttachmentData, windows_core::IUnknown); impl ISceSvcAttachmentData { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(scesvchandle), core::mem::transmute(scetype), core::mem::transmute(ppvdata), core::mem::transmute(psceenumhandle)).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(scesvchandle), scetype, core::mem::transmute(ppvdata), core::mem::transmute(psceenumhandle)).ok() } pub unsafe fn Initialize(&self, lpservicename: *mut i8, lptemplatename: *mut i8, lpscesvcpersistinfo: P2, pscesvchandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs index 8362f365c9..3fbd2700e8 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs @@ -4,7 +4,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredDeleteA(targetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); - CredDeleteA(targetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() + CredDeleteA(targetname.param().abi(), r#type, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CredDeleteW(targetname: P0, r#type: CRED_TYPE, flags: Option) -> windows_core::Result<()> @@ -12,7 +12,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredDeleteW(targetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); - CredDeleteW(targetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() + CredDeleteW(targetname.param().abi(), r#type, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CredEnumerateA(filter: P0, flags: Option, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> windows_core::Result<()> @@ -36,7 +36,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredFindBestCredentialA(targetname : windows_core::PCSTR, r#type : u32, flags : u32, credential : *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); - CredFindBestCredentialA(targetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags), core::mem::transmute(credential)).ok() + CredFindBestCredentialA(targetname.param().abi(), r#type, flags, core::mem::transmute(credential)).ok() } #[inline] pub unsafe fn CredFindBestCredentialW(targetname: P0, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALW) -> windows_core::Result<()> @@ -44,12 +44,12 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredFindBestCredentialW(targetname : windows_core::PCWSTR, r#type : u32, flags : u32, credential : *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); - CredFindBestCredentialW(targetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags), core::mem::transmute(credential)).ok() + CredFindBestCredentialW(targetname.param().abi(), r#type, flags, core::mem::transmute(credential)).ok() } #[inline] pub unsafe fn CredFree(buffer: *const core::ffi::c_void) { windows_targets::link!("advapi32.dll" "system" fn CredFree(buffer : *const core::ffi::c_void)); - CredFree(core::mem::transmute(buffer)) + CredFree(buffer) } #[inline] pub unsafe fn CredGetSessionTypes(maximumpersist: &mut [u32]) -> windows_core::Result<()> { @@ -62,7 +62,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredGetTargetInfoA(targetname : windows_core::PCSTR, flags : u32, targetinfo : *mut *mut CREDENTIAL_TARGET_INFORMATIONA) -> super::super::Foundation:: BOOL); - CredGetTargetInfoA(targetname.param().abi(), core::mem::transmute(flags), core::mem::transmute(targetinfo)).ok() + CredGetTargetInfoA(targetname.param().abi(), flags, core::mem::transmute(targetinfo)).ok() } #[inline] pub unsafe fn CredGetTargetInfoW(targetname: P0, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> windows_core::Result<()> @@ -70,7 +70,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredGetTargetInfoW(targetname : windows_core::PCWSTR, flags : u32, targetinfo : *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> super::super::Foundation:: BOOL); - CredGetTargetInfoW(targetname.param().abi(), core::mem::transmute(flags), core::mem::transmute(targetinfo)).ok() + CredGetTargetInfoW(targetname.param().abi(), flags, core::mem::transmute(targetinfo)).ok() } #[inline] pub unsafe fn CredIsMarshaledCredentialA(marshaledcredential: P0) -> super::super::Foundation::BOOL @@ -107,12 +107,12 @@ where #[inline] pub unsafe fn CredMarshalCredentialA(credtype: CRED_MARSHAL_TYPE, credential: *const core::ffi::c_void, marshaledcredential: *mut windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredMarshalCredentialA(credtype : CRED_MARSHAL_TYPE, credential : *const core::ffi::c_void, marshaledcredential : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); - CredMarshalCredentialA(core::mem::transmute(credtype), core::mem::transmute(credential), core::mem::transmute(marshaledcredential)).ok() + CredMarshalCredentialA(credtype, credential, core::mem::transmute(marshaledcredential)).ok() } #[inline] pub unsafe fn CredMarshalCredentialW(credtype: CRED_MARSHAL_TYPE, credential: *const core::ffi::c_void, marshaledcredential: *mut windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredMarshalCredentialW(credtype : CRED_MARSHAL_TYPE, credential : *const core::ffi::c_void, marshaledcredential : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - CredMarshalCredentialW(core::mem::transmute(credtype), core::mem::transmute(credential), core::mem::transmute(marshaledcredential)).ok() + CredMarshalCredentialW(credtype, credential, core::mem::transmute(marshaledcredential)).ok() } #[inline] pub unsafe fn CredPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pszusername: P1, pszpassword: P2, ppackedcredentials: Option<*mut u8>, pcbpackedcredentials: *mut u32) -> windows_core::Result<()> @@ -121,7 +121,7 @@ where P2: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredPackAuthenticationBufferA(dwflags : CRED_PACK_FLAGS, pszusername : windows_core::PCSTR, pszpassword : windows_core::PCSTR, ppackedcredentials : *mut u8, pcbpackedcredentials : *mut u32) -> super::super::Foundation:: BOOL); - CredPackAuthenticationBufferA(core::mem::transmute(dwflags), pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpackedcredentials)).ok() + CredPackAuthenticationBufferA(dwflags, pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpackedcredentials)).ok() } #[inline] pub unsafe fn CredPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pszusername: P1, pszpassword: P2, ppackedcredentials: Option<*mut u8>, pcbpackedcredentials: *mut u32) -> windows_core::Result<()> @@ -130,7 +130,7 @@ where P2: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredPackAuthenticationBufferW(dwflags : CRED_PACK_FLAGS, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, ppackedcredentials : *mut u8, pcbpackedcredentials : *mut u32) -> super::super::Foundation:: BOOL); - CredPackAuthenticationBufferW(core::mem::transmute(dwflags), pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpackedcredentials)).ok() + CredPackAuthenticationBufferW(dwflags, pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbpackedcredentials)).ok() } #[inline] pub unsafe fn CredProtectA(fasself: bool, pszcredentials: &[u8], pszprotectedcredentials: windows_core::PSTR, pcchmaxchars: *mut u32, protectiontype: Option<*mut CRED_PROTECTION_TYPE>) -> windows_core::Result<()> { @@ -148,17 +148,17 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredReadA(targetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32, credential : *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); - CredReadA(targetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(credential)).ok() + CredReadA(targetname.param().abi(), r#type, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(credential)).ok() } #[inline] pub unsafe fn CredReadDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredReadDomainCredentialsA(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONA, flags : u32, count : *mut u32, credential : *mut *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); - CredReadDomainCredentialsA(core::mem::transmute(targetinfo), core::mem::transmute(flags), core::mem::transmute(count), core::mem::transmute(credential)).ok() + CredReadDomainCredentialsA(targetinfo, flags, core::mem::transmute(count), core::mem::transmute(credential)).ok() } #[inline] pub unsafe fn CredReadDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredReadDomainCredentialsW(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONW, flags : u32, count : *mut u32, credential : *mut *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); - CredReadDomainCredentialsW(core::mem::transmute(targetinfo), core::mem::transmute(flags), core::mem::transmute(count), core::mem::transmute(credential)).ok() + CredReadDomainCredentialsW(targetinfo, flags, core::mem::transmute(count), core::mem::transmute(credential)).ok() } #[inline] pub unsafe fn CredReadW(targetname: P0, r#type: CRED_TYPE, flags: Option, credential: *mut *mut CREDENTIALW) -> windows_core::Result<()> @@ -166,7 +166,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredReadW(targetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32, credential : *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); - CredReadW(targetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(credential)).ok() + CredReadW(targetname.param().abi(), r#type, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(credential)).ok() } #[inline] pub unsafe fn CredRenameA(oldtargetname: P0, newtargetname: P1, r#type: CRED_TYPE, flags: Option) -> windows_core::Result<()> @@ -175,7 +175,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredRenameA(oldtargetname : windows_core::PCSTR, newtargetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); - CredRenameA(oldtargetname.param().abi(), newtargetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() + CredRenameA(oldtargetname.param().abi(), newtargetname.param().abi(), r#type, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CredRenameW(oldtargetname: P0, newtargetname: P1, r#type: CRED_TYPE, flags: Option) -> windows_core::Result<()> @@ -184,7 +184,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredRenameW(oldtargetname : windows_core::PCWSTR, newtargetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); - CredRenameW(oldtargetname.param().abi(), newtargetname.param().abi(), core::mem::transmute(r#type), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() + CredRenameW(oldtargetname.param().abi(), newtargetname.param().abi(), r#type, core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CredUICmdLinePromptForCredentialsA(psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, username: &mut [u8], pszpassword: &mut [u8], pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> u32 @@ -192,7 +192,7 @@ where P0: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUICmdLinePromptForCredentialsA(psztargetname : windows_core::PCSTR, pcontext : *const SecHandle, dwautherror : u32, username : windows_core::PSTR, uluserbuffersize : u32, pszpassword : windows_core::PSTR, ulpasswordbuffersize : u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> u32); - CredUICmdLinePromptForCredentialsA(psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), core::mem::transmute(username.as_ptr()), username.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CredUICmdLinePromptForCredentialsA(psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), dwautherror, core::mem::transmute(username.as_ptr()), username.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn CredUICmdLinePromptForCredentialsW(psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, username: &mut [u16], pszpassword: &mut [u16], pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> u32 @@ -200,7 +200,7 @@ where P0: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUICmdLinePromptForCredentialsW(psztargetname : windows_core::PCWSTR, pcontext : *const SecHandle, dwautherror : u32, username : windows_core::PWSTR, uluserbuffersize : u32, pszpassword : windows_core::PWSTR, ulpasswordbuffersize : u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> u32); - CredUICmdLinePromptForCredentialsW(psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), core::mem::transmute(username.as_ptr()), username.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CredUICmdLinePromptForCredentialsW(psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), dwautherror, core::mem::transmute(username.as_ptr()), username.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn CredUIConfirmCredentialsA(psztargetname: P0, bconfirm: bool) -> u32 @@ -241,7 +241,7 @@ where P1: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIPromptForCredentialsA(puiinfo : *const CREDUI_INFOA, psztargetname : windows_core::PCSTR, pcontext : *const SecHandle, dwautherror : u32, pszusername : windows_core::PSTR, ulusernamebuffersize : u32, pszpassword : windows_core::PSTR, ulpasswordbuffersize : u32, save : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - CredUIPromptForCredentialsA(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), core::mem::transmute(pszusername.as_ptr()), pszusername.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(save.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CredUIPromptForCredentialsA(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), dwautherror, core::mem::transmute(pszusername.as_ptr()), pszusername.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(save.unwrap_or(core::mem::zeroed())), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -250,19 +250,19 @@ where P1: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIPromptForCredentialsW(puiinfo : *const CREDUI_INFOW, psztargetname : windows_core::PCWSTR, pcontext : *const SecHandle, dwautherror : u32, pszusername : windows_core::PWSTR, ulusernamebuffersize : u32, pszpassword : windows_core::PWSTR, ulpasswordbuffersize : u32, save : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - CredUIPromptForCredentialsW(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), core::mem::transmute(pszusername.as_ptr()), pszusername.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(save.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CredUIPromptForCredentialsW(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed())), dwautherror, core::mem::transmute(pszusername.as_ptr()), pszusername.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), core::mem::transmute(save.unwrap_or(core::mem::zeroed())), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CredUIPromptForWindowsCredentialsA(puiinfo: Option<*const CREDUI_INFOA>, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: Option<*const core::ffi::c_void>, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUIWIN_FLAGS) -> u32 { windows_targets::link!("credui.dll" "system" fn CredUIPromptForWindowsCredentialsA(puiinfo : *const CREDUI_INFOA, dwautherror : u32, pulauthpackage : *mut u32, pvinauthbuffer : *const core::ffi::c_void, ulinauthbuffersize : u32, ppvoutauthbuffer : *mut *mut core::ffi::c_void, puloutauthbuffersize : *mut u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUIWIN_FLAGS) -> u32); - CredUIPromptForWindowsCredentialsA(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), core::mem::transmute(pulauthpackage), core::mem::transmute(pvinauthbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulinauthbuffersize), core::mem::transmute(ppvoutauthbuffer), core::mem::transmute(puloutauthbuffersize), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CredUIPromptForWindowsCredentialsA(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), dwautherror, core::mem::transmute(pulauthpackage), core::mem::transmute(pvinauthbuffer.unwrap_or(core::mem::zeroed())), ulinauthbuffersize, core::mem::transmute(ppvoutauthbuffer), core::mem::transmute(puloutauthbuffersize), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CredUIPromptForWindowsCredentialsW(puiinfo: Option<*const CREDUI_INFOW>, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: Option<*const core::ffi::c_void>, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUIWIN_FLAGS) -> u32 { windows_targets::link!("credui.dll" "system" fn CredUIPromptForWindowsCredentialsW(puiinfo : *const CREDUI_INFOW, dwautherror : u32, pulauthpackage : *mut u32, pvinauthbuffer : *const core::ffi::c_void, ulinauthbuffersize : u32, ppvoutauthbuffer : *mut *mut core::ffi::c_void, puloutauthbuffersize : *mut u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUIWIN_FLAGS) -> u32); - CredUIPromptForWindowsCredentialsW(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwautherror), core::mem::transmute(pulauthpackage), core::mem::transmute(pvinauthbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulinauthbuffersize), core::mem::transmute(ppvoutauthbuffer), core::mem::transmute(puloutauthbuffersize), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CredUIPromptForWindowsCredentialsW(core::mem::transmute(puiinfo.unwrap_or(core::mem::zeroed())), dwautherror, core::mem::transmute(pulauthpackage), core::mem::transmute(pvinauthbuffer.unwrap_or(core::mem::zeroed())), ulinauthbuffersize, core::mem::transmute(ppvoutauthbuffer), core::mem::transmute(puloutauthbuffersize), core::mem::transmute(pfsave.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn CredUIReadSSOCredW(pszrealm: P0, ppszusername: *mut windows_core::PWSTR) -> u32 @@ -285,12 +285,12 @@ where #[inline] pub unsafe fn CredUnPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, pszusername: Option, pcchlmaxusername: *mut u32, pszdomainname: Option, pcchmaxdomainname: Option<*mut u32>, pszpassword: Option, pcchmaxpassword: *mut u32) -> windows_core::Result<()> { windows_targets::link!("credui.dll" "system" fn CredUnPackAuthenticationBufferA(dwflags : CRED_PACK_FLAGS, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, pszusername : windows_core::PSTR, pcchlmaxusername : *mut u32, pszdomainname : windows_core::PSTR, pcchmaxdomainname : *mut u32, pszpassword : windows_core::PSTR, pcchmaxpassword : *mut u32) -> super::super::Foundation:: BOOL); - CredUnPackAuthenticationBufferA(core::mem::transmute(dwflags), core::mem::transmute(pauthbuffer), core::mem::transmute(cbauthbuffer), core::mem::transmute(pszusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlmaxusername), core::mem::transmute(pszdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpassword.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxpassword)).ok() + CredUnPackAuthenticationBufferA(dwflags, pauthbuffer, cbauthbuffer, core::mem::transmute(pszusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchlmaxusername), core::mem::transmute(pszdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpassword.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxpassword)).ok() } #[inline] pub unsafe fn CredUnPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, pszusername: Option, pcchmaxusername: *mut u32, pszdomainname: Option, pcchmaxdomainname: Option<*mut u32>, pszpassword: Option, pcchmaxpassword: *mut u32) -> windows_core::Result<()> { windows_targets::link!("credui.dll" "system" fn CredUnPackAuthenticationBufferW(dwflags : CRED_PACK_FLAGS, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, pszusername : windows_core::PWSTR, pcchmaxusername : *mut u32, pszdomainname : windows_core::PWSTR, pcchmaxdomainname : *mut u32, pszpassword : windows_core::PWSTR, pcchmaxpassword : *mut u32) -> super::super::Foundation:: BOOL); - CredUnPackAuthenticationBufferW(core::mem::transmute(dwflags), core::mem::transmute(pauthbuffer), core::mem::transmute(cbauthbuffer), core::mem::transmute(pszusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxusername), core::mem::transmute(pszdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpassword.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxpassword)).ok() + CredUnPackAuthenticationBufferW(dwflags, pauthbuffer, cbauthbuffer, core::mem::transmute(pszusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxusername), core::mem::transmute(pszdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxdomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpassword.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxpassword)).ok() } #[inline] pub unsafe fn CredUnmarshalCredentialA(marshaledcredential: P0, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -321,22 +321,22 @@ pub unsafe fn CredUnprotectW(fasself: bool, pszprotectedcredentials: &[u16], psz #[inline] pub unsafe fn CredWriteA(credential: *const CREDENTIALA, flags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredWriteA(credential : *const CREDENTIALA, flags : u32) -> super::super::Foundation:: BOOL); - CredWriteA(core::mem::transmute(credential), core::mem::transmute(flags)).ok() + CredWriteA(credential, flags).ok() } #[inline] pub unsafe fn CredWriteDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, credential: *const CREDENTIALA, flags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredWriteDomainCredentialsA(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONA, credential : *const CREDENTIALA, flags : u32) -> super::super::Foundation:: BOOL); - CredWriteDomainCredentialsA(core::mem::transmute(targetinfo), core::mem::transmute(credential), core::mem::transmute(flags)).ok() + CredWriteDomainCredentialsA(targetinfo, credential, flags).ok() } #[inline] pub unsafe fn CredWriteDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, credential: *const CREDENTIALW, flags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredWriteDomainCredentialsW(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONW, credential : *const CREDENTIALW, flags : u32) -> super::super::Foundation:: BOOL); - CredWriteDomainCredentialsW(core::mem::transmute(targetinfo), core::mem::transmute(credential), core::mem::transmute(flags)).ok() + CredWriteDomainCredentialsW(targetinfo, credential, flags).ok() } #[inline] pub unsafe fn CredWriteW(credential: *const CREDENTIALW, flags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CredWriteW(credential : *const CREDENTIALW, flags : u32) -> super::super::Foundation:: BOOL); - CredWriteW(core::mem::transmute(credential), core::mem::transmute(flags)).ok() + CredWriteW(credential, flags).ok() } #[inline] pub unsafe fn GetOpenCardNameA(param0: *mut OPENCARDNAMEA) -> i32 { @@ -351,7 +351,7 @@ pub unsafe fn GetOpenCardNameW(param0: *mut OPENCARDNAMEW) -> i32 { #[inline] pub unsafe fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo) { windows_targets::link!("keycredmgr.dll" "system" fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo : *const KeyCredentialManagerInfo)); - KeyCredentialManagerFreeInformation(core::mem::transmute(keycredentialmanagerinfo)) + KeyCredentialManagerFreeInformation(keycredentialmanagerinfo) } #[inline] pub unsafe fn KeyCredentialManagerGetInformation() -> windows_core::Result<*mut KeyCredentialManagerInfo> { @@ -362,12 +362,12 @@ pub unsafe fn KeyCredentialManagerGetInformation() -> windows_core::Result<*mut #[inline] pub unsafe fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype: KeyCredentialManagerOperationType, isready: *mut super::super::Foundation::BOOL, keycredentialmanageroperationerrorstates: *mut KeyCredentialManagerOperationErrorStates) -> windows_core::Result<()> { windows_targets::link!("keycredmgr.dll" "system" fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype : KeyCredentialManagerOperationType, isready : *mut super::super::Foundation:: BOOL, keycredentialmanageroperationerrorstates : *mut KeyCredentialManagerOperationErrorStates) -> windows_core::HRESULT); - KeyCredentialManagerGetOperationErrorStates(core::mem::transmute(keycredentialmanageroperationtype), core::mem::transmute(isready), core::mem::transmute(keycredentialmanageroperationerrorstates)).ok() + KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype, core::mem::transmute(isready), core::mem::transmute(keycredentialmanageroperationerrorstates)).ok() } #[inline] pub unsafe fn KeyCredentialManagerShowUIOperation(hwndowner: super::super::Foundation::HWND, keycredentialmanageroperationtype: KeyCredentialManagerOperationType) -> windows_core::Result<()> { windows_targets::link!("keycredmgr.dll" "system" fn KeyCredentialManagerShowUIOperation(hwndowner : super::super::Foundation:: HWND, keycredentialmanageroperationtype : KeyCredentialManagerOperationType) -> windows_core::HRESULT); - KeyCredentialManagerShowUIOperation(core::mem::transmute(hwndowner), core::mem::transmute(keycredentialmanageroperationtype)).ok() + KeyCredentialManagerShowUIOperation(hwndowner, keycredentialmanageroperationtype).ok() } #[inline] pub unsafe fn SCardAccessStartedEvent() -> windows_core::Result { @@ -382,7 +382,7 @@ where P2: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardAddReaderToGroupA(hcontext : usize, szreadername : windows_core::PCSTR, szgroupname : windows_core::PCSTR) -> i32); - SCardAddReaderToGroupA(core::mem::transmute(hcontext), szreadername.param().abi(), szgroupname.param().abi()) + SCardAddReaderToGroupA(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardAddReaderToGroupW(hcontext: usize, szreadername: P1, szgroupname: P2) -> i32 @@ -391,22 +391,22 @@ where P2: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardAddReaderToGroupW(hcontext : usize, szreadername : windows_core::PCWSTR, szgroupname : windows_core::PCWSTR) -> i32); - SCardAddReaderToGroupW(core::mem::transmute(hcontext), szreadername.param().abi(), szgroupname.param().abi()) + SCardAddReaderToGroupW(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardAudit(hcontext: usize, dwevent: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardAudit(hcontext : usize, dwevent : u32) -> i32); - SCardAudit(core::mem::transmute(hcontext), core::mem::transmute(dwevent)) + SCardAudit(hcontext, dwevent) } #[inline] pub unsafe fn SCardBeginTransaction(hcard: usize) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardBeginTransaction(hcard : usize) -> i32); - SCardBeginTransaction(core::mem::transmute(hcard)) + SCardBeginTransaction(hcard) } #[inline] pub unsafe fn SCardCancel(hcontext: usize) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardCancel(hcontext : usize) -> i32); - SCardCancel(core::mem::transmute(hcontext)) + SCardCancel(hcontext) } #[inline] pub unsafe fn SCardConnectA(hcontext: usize, szreader: P1, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32 @@ -414,7 +414,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardConnectA(hcontext : usize, szreader : windows_core::PCSTR, dwsharemode : u32, dwpreferredprotocols : u32, phcard : *mut usize, pdwactiveprotocol : *mut u32) -> i32); - SCardConnectA(core::mem::transmute(hcontext), szreader.param().abi(), core::mem::transmute(dwsharemode), core::mem::transmute(dwpreferredprotocols), core::mem::transmute(phcard), core::mem::transmute(pdwactiveprotocol)) + SCardConnectA(hcontext, szreader.param().abi(), dwsharemode, dwpreferredprotocols, core::mem::transmute(phcard), core::mem::transmute(pdwactiveprotocol)) } #[inline] pub unsafe fn SCardConnectW(hcontext: usize, szreader: P1, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32 @@ -422,17 +422,17 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardConnectW(hcontext : usize, szreader : windows_core::PCWSTR, dwsharemode : u32, dwpreferredprotocols : u32, phcard : *mut usize, pdwactiveprotocol : *mut u32) -> i32); - SCardConnectW(core::mem::transmute(hcontext), szreader.param().abi(), core::mem::transmute(dwsharemode), core::mem::transmute(dwpreferredprotocols), core::mem::transmute(phcard), core::mem::transmute(pdwactiveprotocol)) + SCardConnectW(hcontext, szreader.param().abi(), dwsharemode, dwpreferredprotocols, core::mem::transmute(phcard), core::mem::transmute(pdwactiveprotocol)) } #[inline] pub unsafe fn SCardControl(hcard: usize, dwcontrolcode: u32, lpinbuffer: *const core::ffi::c_void, cbinbuffersize: u32, lpoutbuffer: *mut core::ffi::c_void, cboutbuffersize: u32, lpbytesreturned: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardControl(hcard : usize, dwcontrolcode : u32, lpinbuffer : *const core::ffi::c_void, cbinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, cboutbuffersize : u32, lpbytesreturned : *mut u32) -> i32); - SCardControl(core::mem::transmute(hcard), core::mem::transmute(dwcontrolcode), core::mem::transmute(lpinbuffer), core::mem::transmute(cbinbuffersize), core::mem::transmute(lpoutbuffer), core::mem::transmute(cboutbuffersize), core::mem::transmute(lpbytesreturned)) + SCardControl(hcard, dwcontrolcode, lpinbuffer, cbinbuffersize, core::mem::transmute(lpoutbuffer), cboutbuffersize, core::mem::transmute(lpbytesreturned)) } #[inline] pub unsafe fn SCardDisconnect(hcard: usize, dwdisposition: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardDisconnect(hcard : usize, dwdisposition : u32) -> i32); - SCardDisconnect(core::mem::transmute(hcard), core::mem::transmute(dwdisposition)) + SCardDisconnect(hcard, dwdisposition) } #[inline] pub unsafe fn SCardDlgExtendedError() -> i32 { @@ -442,12 +442,12 @@ pub unsafe fn SCardDlgExtendedError() -> i32 { #[inline] pub unsafe fn SCardEndTransaction(hcard: usize, dwdisposition: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardEndTransaction(hcard : usize, dwdisposition : u32) -> i32); - SCardEndTransaction(core::mem::transmute(hcard), core::mem::transmute(dwdisposition)) + SCardEndTransaction(hcard, dwdisposition) } #[inline] pub unsafe fn SCardEstablishContext(dwscope: SCARD_SCOPE, pvreserved1: Option<*const core::ffi::c_void>, pvreserved2: Option<*const core::ffi::c_void>, phcontext: *mut usize) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardEstablishContext(dwscope : SCARD_SCOPE, pvreserved1 : *const core::ffi::c_void, pvreserved2 : *const core::ffi::c_void, phcontext : *mut usize) -> i32); - SCardEstablishContext(core::mem::transmute(dwscope), core::mem::transmute(pvreserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext)) + SCardEstablishContext(dwscope, core::mem::transmute(pvreserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcontext)) } #[inline] pub unsafe fn SCardForgetCardTypeA(hcontext: usize, szcardname: P1) -> i32 @@ -455,7 +455,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetCardTypeA(hcontext : usize, szcardname : windows_core::PCSTR) -> i32); - SCardForgetCardTypeA(core::mem::transmute(hcontext), szcardname.param().abi()) + SCardForgetCardTypeA(hcontext, szcardname.param().abi()) } #[inline] pub unsafe fn SCardForgetCardTypeW(hcontext: usize, szcardname: P1) -> i32 @@ -463,7 +463,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetCardTypeW(hcontext : usize, szcardname : windows_core::PCWSTR) -> i32); - SCardForgetCardTypeW(core::mem::transmute(hcontext), szcardname.param().abi()) + SCardForgetCardTypeW(hcontext, szcardname.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderA(hcontext: usize, szreadername: P1) -> i32 @@ -471,7 +471,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderA(hcontext : usize, szreadername : windows_core::PCSTR) -> i32); - SCardForgetReaderA(core::mem::transmute(hcontext), szreadername.param().abi()) + SCardForgetReaderA(hcontext, szreadername.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderGroupA(hcontext: usize, szgroupname: P1) -> i32 @@ -479,7 +479,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderGroupA(hcontext : usize, szgroupname : windows_core::PCSTR) -> i32); - SCardForgetReaderGroupA(core::mem::transmute(hcontext), szgroupname.param().abi()) + SCardForgetReaderGroupA(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderGroupW(hcontext: usize, szgroupname: P1) -> i32 @@ -487,7 +487,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderGroupW(hcontext : usize, szgroupname : windows_core::PCWSTR) -> i32); - SCardForgetReaderGroupW(core::mem::transmute(hcontext), szgroupname.param().abi()) + SCardForgetReaderGroupW(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderW(hcontext: usize, szreadername: P1) -> i32 @@ -495,17 +495,17 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderW(hcontext : usize, szreadername : windows_core::PCWSTR) -> i32); - SCardForgetReaderW(core::mem::transmute(hcontext), szreadername.param().abi()) + SCardForgetReaderW(hcontext, szreadername.param().abi()) } #[inline] pub unsafe fn SCardFreeMemory(hcontext: usize, pvmem: *const core::ffi::c_void) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardFreeMemory(hcontext : usize, pvmem : *const core::ffi::c_void) -> i32); - SCardFreeMemory(core::mem::transmute(hcontext), core::mem::transmute(pvmem)) + SCardFreeMemory(hcontext, pvmem) } #[inline] pub unsafe fn SCardGetAttrib(hcard: usize, dwattrid: u32, pbattr: Option<*mut u8>, pcbattrlen: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardGetAttrib(hcard : usize, dwattrid : u32, pbattr : *mut u8, pcbattrlen : *mut u32) -> i32); - SCardGetAttrib(core::mem::transmute(hcard), core::mem::transmute(dwattrid), core::mem::transmute(pbattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbattrlen)) + SCardGetAttrib(hcard, dwattrid, core::mem::transmute(pbattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbattrlen)) } #[inline] pub unsafe fn SCardGetCardTypeProviderNameA(hcontext: usize, szcardname: P1, dwproviderid: u32, szprovider: windows_core::PSTR, pcchprovider: *mut u32) -> i32 @@ -513,7 +513,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetCardTypeProviderNameA(hcontext : usize, szcardname : windows_core::PCSTR, dwproviderid : u32, szprovider : windows_core::PSTR, pcchprovider : *mut u32) -> i32); - SCardGetCardTypeProviderNameA(core::mem::transmute(hcontext), szcardname.param().abi(), core::mem::transmute(dwproviderid), core::mem::transmute(szprovider), core::mem::transmute(pcchprovider)) + SCardGetCardTypeProviderNameA(hcontext, szcardname.param().abi(), dwproviderid, core::mem::transmute(szprovider), core::mem::transmute(pcchprovider)) } #[inline] pub unsafe fn SCardGetCardTypeProviderNameW(hcontext: usize, szcardname: P1, dwproviderid: u32, szprovider: windows_core::PWSTR, pcchprovider: *mut u32) -> i32 @@ -521,7 +521,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetCardTypeProviderNameW(hcontext : usize, szcardname : windows_core::PCWSTR, dwproviderid : u32, szprovider : windows_core::PWSTR, pcchprovider : *mut u32) -> i32); - SCardGetCardTypeProviderNameW(core::mem::transmute(hcontext), szcardname.param().abi(), core::mem::transmute(dwproviderid), core::mem::transmute(szprovider), core::mem::transmute(pcchprovider)) + SCardGetCardTypeProviderNameW(hcontext, szcardname.param().abi(), dwproviderid, core::mem::transmute(szprovider), core::mem::transmute(pcchprovider)) } #[inline] pub unsafe fn SCardGetDeviceTypeIdA(hcontext: usize, szreadername: P1, pdwdevicetypeid: *mut u32) -> i32 @@ -529,7 +529,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetDeviceTypeIdA(hcontext : usize, szreadername : windows_core::PCSTR, pdwdevicetypeid : *mut u32) -> i32); - SCardGetDeviceTypeIdA(core::mem::transmute(hcontext), szreadername.param().abi(), core::mem::transmute(pdwdevicetypeid)) + SCardGetDeviceTypeIdA(hcontext, szreadername.param().abi(), core::mem::transmute(pdwdevicetypeid)) } #[inline] pub unsafe fn SCardGetDeviceTypeIdW(hcontext: usize, szreadername: P1, pdwdevicetypeid: *mut u32) -> i32 @@ -537,7 +537,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetDeviceTypeIdW(hcontext : usize, szreadername : windows_core::PCWSTR, pdwdevicetypeid : *mut u32) -> i32); - SCardGetDeviceTypeIdW(core::mem::transmute(hcontext), szreadername.param().abi(), core::mem::transmute(pdwdevicetypeid)) + SCardGetDeviceTypeIdW(hcontext, szreadername.param().abi(), core::mem::transmute(pdwdevicetypeid)) } #[inline] pub unsafe fn SCardGetProviderIdA(hcontext: usize, szcard: P1, pguidproviderid: *mut windows_core::GUID) -> i32 @@ -545,7 +545,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetProviderIdA(hcontext : usize, szcard : windows_core::PCSTR, pguidproviderid : *mut windows_core::GUID) -> i32); - SCardGetProviderIdA(core::mem::transmute(hcontext), szcard.param().abi(), core::mem::transmute(pguidproviderid)) + SCardGetProviderIdA(hcontext, szcard.param().abi(), core::mem::transmute(pguidproviderid)) } #[inline] pub unsafe fn SCardGetProviderIdW(hcontext: usize, szcard: P1, pguidproviderid: *mut windows_core::GUID) -> i32 @@ -553,7 +553,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetProviderIdW(hcontext : usize, szcard : windows_core::PCWSTR, pguidproviderid : *mut windows_core::GUID) -> i32); - SCardGetProviderIdW(core::mem::transmute(hcontext), szcard.param().abi(), core::mem::transmute(pguidproviderid)) + SCardGetProviderIdW(hcontext, szcard.param().abi(), core::mem::transmute(pguidproviderid)) } #[inline] pub unsafe fn SCardGetReaderDeviceInstanceIdA(hcontext: usize, szreadername: P1, szdeviceinstanceid: Option, pcchdeviceinstanceid: *mut u32) -> i32 @@ -561,7 +561,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetReaderDeviceInstanceIdA(hcontext : usize, szreadername : windows_core::PCSTR, szdeviceinstanceid : windows_core::PSTR, pcchdeviceinstanceid : *mut u32) -> i32); - SCardGetReaderDeviceInstanceIdA(core::mem::transmute(hcontext), szreadername.param().abi(), core::mem::transmute(szdeviceinstanceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdeviceinstanceid)) + SCardGetReaderDeviceInstanceIdA(hcontext, szreadername.param().abi(), core::mem::transmute(szdeviceinstanceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdeviceinstanceid)) } #[inline] pub unsafe fn SCardGetReaderDeviceInstanceIdW(hcontext: usize, szreadername: P1, szdeviceinstanceid: Option, pcchdeviceinstanceid: *mut u32) -> i32 @@ -569,7 +569,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetReaderDeviceInstanceIdW(hcontext : usize, szreadername : windows_core::PCWSTR, szdeviceinstanceid : windows_core::PWSTR, pcchdeviceinstanceid : *mut u32) -> i32); - SCardGetReaderDeviceInstanceIdW(core::mem::transmute(hcontext), szreadername.param().abi(), core::mem::transmute(szdeviceinstanceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdeviceinstanceid)) + SCardGetReaderDeviceInstanceIdW(hcontext, szreadername.param().abi(), core::mem::transmute(szdeviceinstanceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdeviceinstanceid)) } #[inline] pub unsafe fn SCardGetReaderIconA(hcontext: usize, szreadername: P1, pbicon: *mut u8, pcbicon: *mut u32) -> i32 @@ -577,7 +577,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetReaderIconA(hcontext : usize, szreadername : windows_core::PCSTR, pbicon : *mut u8, pcbicon : *mut u32) -> i32); - SCardGetReaderIconA(core::mem::transmute(hcontext), szreadername.param().abi(), core::mem::transmute(pbicon), core::mem::transmute(pcbicon)) + SCardGetReaderIconA(hcontext, szreadername.param().abi(), core::mem::transmute(pbicon), core::mem::transmute(pcbicon)) } #[inline] pub unsafe fn SCardGetReaderIconW(hcontext: usize, szreadername: P1, pbicon: *mut u8, pcbicon: *mut u32) -> i32 @@ -585,22 +585,22 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetReaderIconW(hcontext : usize, szreadername : windows_core::PCWSTR, pbicon : *mut u8, pcbicon : *mut u32) -> i32); - SCardGetReaderIconW(core::mem::transmute(hcontext), szreadername.param().abi(), core::mem::transmute(pbicon), core::mem::transmute(pcbicon)) + SCardGetReaderIconW(hcontext, szreadername.param().abi(), core::mem::transmute(pbicon), core::mem::transmute(pcbicon)) } #[inline] pub unsafe fn SCardGetStatusChangeA(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardGetStatusChangeA(hcontext : usize, dwtimeout : u32, rgreaderstates : *mut SCARD_READERSTATEA, creaders : u32) -> i32); - SCardGetStatusChangeA(core::mem::transmute(hcontext), core::mem::transmute(dwtimeout), core::mem::transmute(rgreaderstates), core::mem::transmute(creaders)) + SCardGetStatusChangeA(hcontext, dwtimeout, core::mem::transmute(rgreaderstates), creaders) } #[inline] pub unsafe fn SCardGetStatusChangeW(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardGetStatusChangeW(hcontext : usize, dwtimeout : u32, rgreaderstates : *mut SCARD_READERSTATEW, creaders : u32) -> i32); - SCardGetStatusChangeW(core::mem::transmute(hcontext), core::mem::transmute(dwtimeout), core::mem::transmute(rgreaderstates), core::mem::transmute(creaders)) + SCardGetStatusChangeW(hcontext, dwtimeout, core::mem::transmute(rgreaderstates), creaders) } #[inline] pub unsafe fn SCardGetTransmitCount(hcard: usize, pctransmitcount: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardGetTransmitCount(hcard : usize, pctransmitcount : *mut u32) -> i32); - SCardGetTransmitCount(core::mem::transmute(hcard), core::mem::transmute(pctransmitcount)) + SCardGetTransmitCount(hcard, core::mem::transmute(pctransmitcount)) } #[inline] pub unsafe fn SCardIntroduceCardTypeA(hcontext: usize, szcardname: P1, pguidprimaryprovider: Option<*const windows_core::GUID>, rgguidinterfaces: Option<*const windows_core::GUID>, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32 @@ -608,7 +608,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceCardTypeA(hcontext : usize, szcardname : windows_core::PCSTR, pguidprimaryprovider : *const windows_core::GUID, rgguidinterfaces : *const windows_core::GUID, dwinterfacecount : u32, pbatr : *const u8, pbatrmask : *const u8, cbatrlen : u32) -> i32); - SCardIntroduceCardTypeA(core::mem::transmute(hcontext), szcardname.param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgguidinterfaces.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinterfacecount), core::mem::transmute(pbatr), core::mem::transmute(pbatrmask), core::mem::transmute(cbatrlen)) + SCardIntroduceCardTypeA(hcontext, szcardname.param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgguidinterfaces.unwrap_or(core::mem::zeroed())), dwinterfacecount, pbatr, pbatrmask, cbatrlen) } #[inline] pub unsafe fn SCardIntroduceCardTypeW(hcontext: usize, szcardname: P1, pguidprimaryprovider: Option<*const windows_core::GUID>, rgguidinterfaces: Option<*const windows_core::GUID>, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32 @@ -616,7 +616,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceCardTypeW(hcontext : usize, szcardname : windows_core::PCWSTR, pguidprimaryprovider : *const windows_core::GUID, rgguidinterfaces : *const windows_core::GUID, dwinterfacecount : u32, pbatr : *const u8, pbatrmask : *const u8, cbatrlen : u32) -> i32); - SCardIntroduceCardTypeW(core::mem::transmute(hcontext), szcardname.param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgguidinterfaces.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinterfacecount), core::mem::transmute(pbatr), core::mem::transmute(pbatrmask), core::mem::transmute(cbatrlen)) + SCardIntroduceCardTypeW(hcontext, szcardname.param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgguidinterfaces.unwrap_or(core::mem::zeroed())), dwinterfacecount, pbatr, pbatrmask, cbatrlen) } #[inline] pub unsafe fn SCardIntroduceReaderA(hcontext: usize, szreadername: P1, szdevicename: P2) -> i32 @@ -625,7 +625,7 @@ where P2: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderA(hcontext : usize, szreadername : windows_core::PCSTR, szdevicename : windows_core::PCSTR) -> i32); - SCardIntroduceReaderA(core::mem::transmute(hcontext), szreadername.param().abi(), szdevicename.param().abi()) + SCardIntroduceReaderA(hcontext, szreadername.param().abi(), szdevicename.param().abi()) } #[inline] pub unsafe fn SCardIntroduceReaderGroupA(hcontext: usize, szgroupname: P1) -> i32 @@ -633,7 +633,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderGroupA(hcontext : usize, szgroupname : windows_core::PCSTR) -> i32); - SCardIntroduceReaderGroupA(core::mem::transmute(hcontext), szgroupname.param().abi()) + SCardIntroduceReaderGroupA(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardIntroduceReaderGroupW(hcontext: usize, szgroupname: P1) -> i32 @@ -641,7 +641,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderGroupW(hcontext : usize, szgroupname : windows_core::PCWSTR) -> i32); - SCardIntroduceReaderGroupW(core::mem::transmute(hcontext), szgroupname.param().abi()) + SCardIntroduceReaderGroupW(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardIntroduceReaderW(hcontext: usize, szreadername: P1, szdevicename: P2) -> i32 @@ -650,22 +650,22 @@ where P2: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderW(hcontext : usize, szreadername : windows_core::PCWSTR, szdevicename : windows_core::PCWSTR) -> i32); - SCardIntroduceReaderW(core::mem::transmute(hcontext), szreadername.param().abi(), szdevicename.param().abi()) + SCardIntroduceReaderW(hcontext, szreadername.param().abi(), szdevicename.param().abi()) } #[inline] pub unsafe fn SCardIsValidContext(hcontext: usize) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardIsValidContext(hcontext : usize) -> i32); - SCardIsValidContext(core::mem::transmute(hcontext)) + SCardIsValidContext(hcontext) } #[inline] pub unsafe fn SCardListCardsA(hcontext: usize, pbatr: Option<*const u8>, rgquidinterfaces: Option<&[windows_core::GUID]>, mszcards: Option, pcchcards: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardListCardsA(hcontext : usize, pbatr : *const u8, rgquidinterfaces : *const windows_core::GUID, cguidinterfacecount : u32, mszcards : windows_core::PSTR, pcchcards : *mut u32) -> i32); - SCardListCardsA(core::mem::transmute(hcontext), core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgquidinterfaces.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgquidinterfaces.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(mszcards.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcards)) + SCardListCardsA(hcontext, core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgquidinterfaces.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgquidinterfaces.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(mszcards.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcards)) } #[inline] pub unsafe fn SCardListCardsW(hcontext: usize, pbatr: Option<*const u8>, rgquidinterfaces: Option<&[windows_core::GUID]>, mszcards: Option, pcchcards: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardListCardsW(hcontext : usize, pbatr : *const u8, rgquidinterfaces : *const windows_core::GUID, cguidinterfacecount : u32, mszcards : windows_core::PWSTR, pcchcards : *mut u32) -> i32); - SCardListCardsW(core::mem::transmute(hcontext), core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgquidinterfaces.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgquidinterfaces.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(mszcards.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcards)) + SCardListCardsW(hcontext, core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgquidinterfaces.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgquidinterfaces.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(mszcards.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcards)) } #[inline] pub unsafe fn SCardListInterfacesA(hcontext: usize, szcard: P1, pguidinterfaces: *mut windows_core::GUID, pcguidinterfaces: *mut u32) -> i32 @@ -673,7 +673,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardListInterfacesA(hcontext : usize, szcard : windows_core::PCSTR, pguidinterfaces : *mut windows_core::GUID, pcguidinterfaces : *mut u32) -> i32); - SCardListInterfacesA(core::mem::transmute(hcontext), szcard.param().abi(), core::mem::transmute(pguidinterfaces), core::mem::transmute(pcguidinterfaces)) + SCardListInterfacesA(hcontext, szcard.param().abi(), core::mem::transmute(pguidinterfaces), core::mem::transmute(pcguidinterfaces)) } #[inline] pub unsafe fn SCardListInterfacesW(hcontext: usize, szcard: P1, pguidinterfaces: *mut windows_core::GUID, pcguidinterfaces: *mut u32) -> i32 @@ -681,17 +681,17 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardListInterfacesW(hcontext : usize, szcard : windows_core::PCWSTR, pguidinterfaces : *mut windows_core::GUID, pcguidinterfaces : *mut u32) -> i32); - SCardListInterfacesW(core::mem::transmute(hcontext), szcard.param().abi(), core::mem::transmute(pguidinterfaces), core::mem::transmute(pcguidinterfaces)) + SCardListInterfacesW(hcontext, szcard.param().abi(), core::mem::transmute(pguidinterfaces), core::mem::transmute(pcguidinterfaces)) } #[inline] pub unsafe fn SCardListReaderGroupsA(hcontext: usize, mszgroups: Option, pcchgroups: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardListReaderGroupsA(hcontext : usize, mszgroups : windows_core::PSTR, pcchgroups : *mut u32) -> i32); - SCardListReaderGroupsA(core::mem::transmute(hcontext), core::mem::transmute(mszgroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchgroups)) + SCardListReaderGroupsA(hcontext, core::mem::transmute(mszgroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchgroups)) } #[inline] pub unsafe fn SCardListReaderGroupsW(hcontext: usize, mszgroups: Option, pcchgroups: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardListReaderGroupsW(hcontext : usize, mszgroups : windows_core::PWSTR, pcchgroups : *mut u32) -> i32); - SCardListReaderGroupsW(core::mem::transmute(hcontext), core::mem::transmute(mszgroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchgroups)) + SCardListReaderGroupsW(hcontext, core::mem::transmute(mszgroups.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchgroups)) } #[inline] pub unsafe fn SCardListReadersA(hcontext: usize, mszgroups: P1, mszreaders: Option, pcchreaders: *mut u32) -> i32 @@ -699,7 +699,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardListReadersA(hcontext : usize, mszgroups : windows_core::PCSTR, mszreaders : windows_core::PSTR, pcchreaders : *mut u32) -> i32); - SCardListReadersA(core::mem::transmute(hcontext), mszgroups.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) + SCardListReadersA(hcontext, mszgroups.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) } #[inline] pub unsafe fn SCardListReadersW(hcontext: usize, mszgroups: P1, mszreaders: Option, pcchreaders: *mut u32) -> i32 @@ -707,7 +707,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardListReadersW(hcontext : usize, mszgroups : windows_core::PCWSTR, mszreaders : windows_core::PWSTR, pcchreaders : *mut u32) -> i32); - SCardListReadersW(core::mem::transmute(hcontext), mszgroups.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) + SCardListReadersW(hcontext, mszgroups.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) } #[inline] pub unsafe fn SCardListReadersWithDeviceInstanceIdA(hcontext: usize, szdeviceinstanceid: P1, mszreaders: Option, pcchreaders: *mut u32) -> i32 @@ -715,7 +715,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardListReadersWithDeviceInstanceIdA(hcontext : usize, szdeviceinstanceid : windows_core::PCSTR, mszreaders : windows_core::PSTR, pcchreaders : *mut u32) -> i32); - SCardListReadersWithDeviceInstanceIdA(core::mem::transmute(hcontext), szdeviceinstanceid.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) + SCardListReadersWithDeviceInstanceIdA(hcontext, szdeviceinstanceid.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) } #[inline] pub unsafe fn SCardListReadersWithDeviceInstanceIdW(hcontext: usize, szdeviceinstanceid: P1, mszreaders: Option, pcchreaders: *mut u32) -> i32 @@ -723,7 +723,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardListReadersWithDeviceInstanceIdW(hcontext : usize, szdeviceinstanceid : windows_core::PCWSTR, mszreaders : windows_core::PWSTR, pcchreaders : *mut u32) -> i32); - SCardListReadersWithDeviceInstanceIdW(core::mem::transmute(hcontext), szdeviceinstanceid.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) + SCardListReadersWithDeviceInstanceIdW(hcontext, szdeviceinstanceid.param().abi(), core::mem::transmute(mszreaders.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaders)) } #[inline] pub unsafe fn SCardLocateCardsA(hcontext: usize, mszcards: P1, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32 @@ -731,17 +731,17 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardLocateCardsA(hcontext : usize, mszcards : windows_core::PCSTR, rgreaderstates : *mut SCARD_READERSTATEA, creaders : u32) -> i32); - SCardLocateCardsA(core::mem::transmute(hcontext), mszcards.param().abi(), core::mem::transmute(rgreaderstates), core::mem::transmute(creaders)) + SCardLocateCardsA(hcontext, mszcards.param().abi(), core::mem::transmute(rgreaderstates), creaders) } #[inline] pub unsafe fn SCardLocateCardsByATRA(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardLocateCardsByATRA(hcontext : usize, rgatrmasks : *const SCARD_ATRMASK, catrs : u32, rgreaderstates : *mut SCARD_READERSTATEA, creaders : u32) -> i32); - SCardLocateCardsByATRA(core::mem::transmute(hcontext), core::mem::transmute(rgatrmasks), core::mem::transmute(catrs), core::mem::transmute(rgreaderstates), core::mem::transmute(creaders)) + SCardLocateCardsByATRA(hcontext, rgatrmasks, catrs, core::mem::transmute(rgreaderstates), creaders) } #[inline] pub unsafe fn SCardLocateCardsByATRW(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardLocateCardsByATRW(hcontext : usize, rgatrmasks : *const SCARD_ATRMASK, catrs : u32, rgreaderstates : *mut SCARD_READERSTATEW, creaders : u32) -> i32); - SCardLocateCardsByATRW(core::mem::transmute(hcontext), core::mem::transmute(rgatrmasks), core::mem::transmute(catrs), core::mem::transmute(rgreaderstates), core::mem::transmute(creaders)) + SCardLocateCardsByATRW(hcontext, rgatrmasks, catrs, core::mem::transmute(rgreaderstates), creaders) } #[inline] pub unsafe fn SCardLocateCardsW(hcontext: usize, mszcards: P1, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32 @@ -749,7 +749,7 @@ where P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardLocateCardsW(hcontext : usize, mszcards : windows_core::PCWSTR, rgreaderstates : *mut SCARD_READERSTATEW, creaders : u32) -> i32); - SCardLocateCardsW(core::mem::transmute(hcontext), mszcards.param().abi(), core::mem::transmute(rgreaderstates), core::mem::transmute(creaders)) + SCardLocateCardsW(hcontext, mszcards.param().abi(), core::mem::transmute(rgreaderstates), creaders) } #[inline] pub unsafe fn SCardReadCacheA(hcontext: usize, cardidentifier: *const windows_core::GUID, freshnesscounter: u32, lookupname: P3, data: *mut u8, datalen: *mut u32) -> i32 @@ -757,7 +757,7 @@ where P3: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardReadCacheA(hcontext : usize, cardidentifier : *const windows_core::GUID, freshnesscounter : u32, lookupname : windows_core::PCSTR, data : *mut u8, datalen : *mut u32) -> i32); - SCardReadCacheA(core::mem::transmute(hcontext), core::mem::transmute(cardidentifier), core::mem::transmute(freshnesscounter), lookupname.param().abi(), core::mem::transmute(data), core::mem::transmute(datalen)) + SCardReadCacheA(hcontext, cardidentifier, freshnesscounter, lookupname.param().abi(), core::mem::transmute(data), core::mem::transmute(datalen)) } #[inline] pub unsafe fn SCardReadCacheW(hcontext: usize, cardidentifier: *const windows_core::GUID, freshnesscounter: u32, lookupname: P3, data: *mut u8, datalen: *mut u32) -> i32 @@ -765,17 +765,17 @@ where P3: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardReadCacheW(hcontext : usize, cardidentifier : *const windows_core::GUID, freshnesscounter : u32, lookupname : windows_core::PCWSTR, data : *mut u8, datalen : *mut u32) -> i32); - SCardReadCacheW(core::mem::transmute(hcontext), core::mem::transmute(cardidentifier), core::mem::transmute(freshnesscounter), lookupname.param().abi(), core::mem::transmute(data), core::mem::transmute(datalen)) + SCardReadCacheW(hcontext, cardidentifier, freshnesscounter, lookupname.param().abi(), core::mem::transmute(data), core::mem::transmute(datalen)) } #[inline] pub unsafe fn SCardReconnect(hcard: usize, dwsharemode: u32, dwpreferredprotocols: u32, dwinitialization: u32, pdwactiveprotocol: Option<*mut u32>) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardReconnect(hcard : usize, dwsharemode : u32, dwpreferredprotocols : u32, dwinitialization : u32, pdwactiveprotocol : *mut u32) -> i32); - SCardReconnect(core::mem::transmute(hcard), core::mem::transmute(dwsharemode), core::mem::transmute(dwpreferredprotocols), core::mem::transmute(dwinitialization), core::mem::transmute(pdwactiveprotocol.unwrap_or(core::mem::zeroed()))) + SCardReconnect(hcard, dwsharemode, dwpreferredprotocols, dwinitialization, core::mem::transmute(pdwactiveprotocol.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SCardReleaseContext(hcontext: usize) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardReleaseContext(hcontext : usize) -> i32); - SCardReleaseContext(core::mem::transmute(hcontext)) + SCardReleaseContext(hcontext) } #[inline] pub unsafe fn SCardReleaseStartedEvent() { @@ -789,7 +789,7 @@ where P2: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardRemoveReaderFromGroupA(hcontext : usize, szreadername : windows_core::PCSTR, szgroupname : windows_core::PCSTR) -> i32); - SCardRemoveReaderFromGroupA(core::mem::transmute(hcontext), szreadername.param().abi(), szgroupname.param().abi()) + SCardRemoveReaderFromGroupA(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardRemoveReaderFromGroupW(hcontext: usize, szreadername: P1, szgroupname: P2) -> i32 @@ -798,12 +798,12 @@ where P2: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardRemoveReaderFromGroupW(hcontext : usize, szreadername : windows_core::PCWSTR, szgroupname : windows_core::PCWSTR) -> i32); - SCardRemoveReaderFromGroupW(core::mem::transmute(hcontext), szreadername.param().abi(), szgroupname.param().abi()) + SCardRemoveReaderFromGroupW(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardSetAttrib(hcard: usize, dwattrid: u32, pbattr: &[u8]) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardSetAttrib(hcard : usize, dwattrid : u32, pbattr : *const u8, cbattrlen : u32) -> i32); - SCardSetAttrib(core::mem::transmute(hcard), core::mem::transmute(dwattrid), core::mem::transmute(pbattr.as_ptr()), pbattr.len().try_into().unwrap()) + SCardSetAttrib(hcard, dwattrid, core::mem::transmute(pbattr.as_ptr()), pbattr.len().try_into().unwrap()) } #[inline] pub unsafe fn SCardSetCardTypeProviderNameA(hcontext: usize, szcardname: P1, dwproviderid: u32, szprovider: P3) -> i32 @@ -812,7 +812,7 @@ where P3: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardSetCardTypeProviderNameA(hcontext : usize, szcardname : windows_core::PCSTR, dwproviderid : u32, szprovider : windows_core::PCSTR) -> i32); - SCardSetCardTypeProviderNameA(core::mem::transmute(hcontext), szcardname.param().abi(), core::mem::transmute(dwproviderid), szprovider.param().abi()) + SCardSetCardTypeProviderNameA(hcontext, szcardname.param().abi(), dwproviderid, szprovider.param().abi()) } #[inline] pub unsafe fn SCardSetCardTypeProviderNameW(hcontext: usize, szcardname: P1, dwproviderid: u32, szprovider: P3) -> i32 @@ -821,27 +821,27 @@ where P3: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardSetCardTypeProviderNameW(hcontext : usize, szcardname : windows_core::PCWSTR, dwproviderid : u32, szprovider : windows_core::PCWSTR) -> i32); - SCardSetCardTypeProviderNameW(core::mem::transmute(hcontext), szcardname.param().abi(), core::mem::transmute(dwproviderid), szprovider.param().abi()) + SCardSetCardTypeProviderNameW(hcontext, szcardname.param().abi(), dwproviderid, szprovider.param().abi()) } #[inline] pub unsafe fn SCardState(hcard: usize, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardState(hcard : usize, pdwstate : *mut u32, pdwprotocol : *mut u32, pbatr : *mut u8, pcbatrlen : *mut u32) -> i32); - SCardState(core::mem::transmute(hcard), core::mem::transmute(pdwstate), core::mem::transmute(pdwprotocol), core::mem::transmute(pbatr), core::mem::transmute(pcbatrlen)) + SCardState(hcard, core::mem::transmute(pdwstate), core::mem::transmute(pdwprotocol), core::mem::transmute(pbatr), core::mem::transmute(pcbatrlen)) } #[inline] pub unsafe fn SCardStatusA(hcard: usize, mszreadernames: Option, pcchreaderlen: Option<*mut u32>, pdwstate: Option<*mut u32>, pdwprotocol: Option<*mut u32>, pbatr: Option<*mut u8>, pcbatrlen: Option<*mut u32>) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardStatusA(hcard : usize, mszreadernames : windows_core::PSTR, pcchreaderlen : *mut u32, pdwstate : *mut u32, pdwprotocol : *mut u32, pbatr : *mut u8, pcbatrlen : *mut u32) -> i32); - SCardStatusA(core::mem::transmute(hcard), core::mem::transmute(mszreadernames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaderlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprotocol.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbatrlen.unwrap_or(core::mem::zeroed()))) + SCardStatusA(hcard, core::mem::transmute(mszreadernames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaderlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprotocol.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbatrlen.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SCardStatusW(hcard: usize, mszreadernames: Option, pcchreaderlen: Option<*mut u32>, pdwstate: Option<*mut u32>, pdwprotocol: Option<*mut u32>, pbatr: Option<*mut u8>, pcbatrlen: Option<*mut u32>) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardStatusW(hcard : usize, mszreadernames : windows_core::PWSTR, pcchreaderlen : *mut u32, pdwstate : *mut u32, pdwprotocol : *mut u32, pbatr : *mut u8, pcbatrlen : *mut u32) -> i32); - SCardStatusW(core::mem::transmute(hcard), core::mem::transmute(mszreadernames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaderlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprotocol.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbatrlen.unwrap_or(core::mem::zeroed()))) + SCardStatusW(hcard, core::mem::transmute(mszreadernames.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchreaderlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprotocol.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbatr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbatrlen.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SCardTransmit(hcard: usize, piosendpci: *const SCARD_IO_REQUEST, pbsendbuffer: &[u8], piorecvpci: Option<*mut SCARD_IO_REQUEST>, pbrecvbuffer: *mut u8, pcbrecvlength: *mut u32) -> i32 { windows_targets::link!("winscard.dll" "system" fn SCardTransmit(hcard : usize, piosendpci : *const SCARD_IO_REQUEST, pbsendbuffer : *const u8, cbsendlength : u32, piorecvpci : *mut SCARD_IO_REQUEST, pbrecvbuffer : *mut u8, pcbrecvlength : *mut u32) -> i32); - SCardTransmit(core::mem::transmute(hcard), core::mem::transmute(piosendpci), core::mem::transmute(pbsendbuffer.as_ptr()), pbsendbuffer.len().try_into().unwrap(), core::mem::transmute(piorecvpci.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbrecvbuffer), core::mem::transmute(pcbrecvlength)) + SCardTransmit(hcard, piosendpci, core::mem::transmute(pbsendbuffer.as_ptr()), pbsendbuffer.len().try_into().unwrap(), core::mem::transmute(piorecvpci.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbrecvbuffer), core::mem::transmute(pcbrecvlength)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -861,7 +861,7 @@ where P3: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardWriteCacheA(hcontext : usize, cardidentifier : *const windows_core::GUID, freshnesscounter : u32, lookupname : windows_core::PCSTR, data : *const u8, datalen : u32) -> i32); - SCardWriteCacheA(core::mem::transmute(hcontext), core::mem::transmute(cardidentifier), core::mem::transmute(freshnesscounter), lookupname.param().abi(), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()) + SCardWriteCacheA(hcontext, cardidentifier, freshnesscounter, lookupname.param().abi(), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()) } #[inline] pub unsafe fn SCardWriteCacheW(hcontext: usize, cardidentifier: *const windows_core::GUID, freshnesscounter: u32, lookupname: P3, data: &[u8]) -> i32 @@ -869,7 +869,7 @@ where P3: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardWriteCacheW(hcontext : usize, cardidentifier : *const windows_core::GUID, freshnesscounter : u32, lookupname : windows_core::PCWSTR, data : *const u8, datalen : u32) -> i32); - SCardWriteCacheW(core::mem::transmute(hcontext), core::mem::transmute(cardidentifier), core::mem::transmute(freshnesscounter), lookupname.param().abi(), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()) + SCardWriteCacheW(hcontext, cardidentifier, freshnesscounter, lookupname.param().abi(), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs index a6f8922536..f8b53b5bd4 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs @@ -18,37 +18,37 @@ where P2: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminAddCatalog(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, pwszselectbasename : windows_core::PCWSTR, dwflags : u32) -> isize); - CryptCATAdminAddCatalog(core::mem::transmute(hcatadmin), pwszcatalogfile.param().abi(), pwszselectbasename.param().abi(), core::mem::transmute(dwflags)) + CryptCATAdminAddCatalog(hcatadmin, pwszcatalogfile.param().abi(), pwszselectbasename.param().abi(), dwflags) } #[inline] pub unsafe fn CryptCATAdminCalcHashFromFileHandle(hfile: super::super::super::Foundation::HANDLE, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: Option) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminCalcHashFromFileHandle(hfile : super::super::super::Foundation:: HANDLE, pcbhash : *mut u32, pbhash : *mut u8, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminCalcHashFromFileHandle(core::mem::transmute(hfile), core::mem::transmute(pcbhash), core::mem::transmute(pbhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))) + CryptCATAdminCalcHashFromFileHandle(hfile, core::mem::transmute(pcbhash), core::mem::transmute(pbhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptCATAdminCalcHashFromFileHandle2(hcatadmin: isize, hfile: super::super::super::Foundation::HANDLE, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: Option) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminCalcHashFromFileHandle2(hcatadmin : isize, hfile : super::super::super::Foundation:: HANDLE, pcbhash : *mut u32, pbhash : *mut u8, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminCalcHashFromFileHandle2(core::mem::transmute(hcatadmin), core::mem::transmute(hfile), core::mem::transmute(pcbhash), core::mem::transmute(pbhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))).ok() + CryptCATAdminCalcHashFromFileHandle2(hcatadmin, hfile, core::mem::transmute(pcbhash), core::mem::transmute(pbhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptCATAdminEnumCatalogFromHash(hcatadmin: isize, pbhash: &[u8], dwflags: Option, phprevcatinfo: Option<*mut isize>) -> isize { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminEnumCatalogFromHash(hcatadmin : isize, pbhash : *const u8, cbhash : u32, dwflags : u32, phprevcatinfo : *mut isize) -> isize); - CryptCATAdminEnumCatalogFromHash(core::mem::transmute(hcatadmin), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(phprevcatinfo.unwrap_or(core::mem::zeroed()))) + CryptCATAdminEnumCatalogFromHash(hcatadmin, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(phprevcatinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptCATAdminPauseServiceForBackup(dwflags: u32, fresume: bool) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminPauseServiceForBackup(dwflags : u32, fresume : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - CryptCATAdminPauseServiceForBackup(core::mem::transmute(dwflags), fresume.into()) + CryptCATAdminPauseServiceForBackup(dwflags, fresume.into()) } #[inline] pub unsafe fn CryptCATAdminReleaseCatalogContext(hcatadmin: isize, hcatinfo: isize, dwflags: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminReleaseCatalogContext(hcatadmin : isize, hcatinfo : isize, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminReleaseCatalogContext(core::mem::transmute(hcatadmin), core::mem::transmute(hcatinfo), core::mem::transmute(dwflags)) + CryptCATAdminReleaseCatalogContext(hcatadmin, hcatinfo, dwflags) } #[inline] pub unsafe fn CryptCATAdminReleaseContext(hcatadmin: isize, dwflags: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminReleaseContext(hcatadmin : isize, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminReleaseContext(core::mem::transmute(hcatadmin), core::mem::transmute(dwflags)) + CryptCATAdminReleaseContext(hcatadmin, dwflags) } #[inline] pub unsafe fn CryptCATAdminRemoveCatalog(hcatadmin: isize, pwszcatalogfile: P1, dwflags: u32) -> windows_core::Result<()> @@ -56,7 +56,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminRemoveCatalog(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminRemoveCatalog(core::mem::transmute(hcatadmin), pwszcatalogfile.param().abi(), core::mem::transmute(dwflags)).ok() + CryptCATAdminRemoveCatalog(hcatadmin, pwszcatalogfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CryptCATAdminResolveCatalogPath(hcatadmin: isize, pwszcatalogfile: P1, pscatinfo: *mut CATALOG_INFO, dwflags: u32) -> windows_core::Result<()> @@ -64,7 +64,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminResolveCatalogPath(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, pscatinfo : *mut CATALOG_INFO, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminResolveCatalogPath(core::mem::transmute(hcatadmin), pwszcatalogfile.param().abi(), core::mem::transmute(pscatinfo), core::mem::transmute(dwflags)).ok() + CryptCATAdminResolveCatalogPath(hcatadmin, pwszcatalogfile.param().abi(), core::mem::transmute(pscatinfo), dwflags).ok() } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] @@ -73,7 +73,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATAllocSortedMemberInfo(hcatalog : super::super::super::Foundation:: HANDLE, pwszreferencetag : windows_core::PCWSTR) -> *mut CRYPTCATMEMBER); - CryptCATAllocSortedMemberInfo(core::mem::transmute(hcatalog), pwszreferencetag.param().abi()) + CryptCATAllocSortedMemberInfo(hcatalog, pwszreferencetag.param().abi()) } #[inline] pub unsafe fn CryptCATCDFClose(pcdf: *mut CRYPTCATCDF) -> super::super::super::Foundation::BOOL { @@ -84,7 +84,7 @@ pub unsafe fn CryptCATCDFClose(pcdf: *mut CRYPTCATCDF) -> super::super::super::F #[inline] pub unsafe fn CryptCATCDFEnumAttributes(pcdf: *mut CRYPTCATCDF, pmember: *mut CRYPTCATMEMBER, pprevattr: *mut CRYPTCATATTRIBUTE, pfnparseerror: PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATATTRIBUTE { windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumAttributes(pcdf : *mut CRYPTCATCDF, pmember : *mut CRYPTCATMEMBER, pprevattr : *mut CRYPTCATATTRIBUTE, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATATTRIBUTE); - CryptCATCDFEnumAttributes(core::mem::transmute(pcdf), core::mem::transmute(pmember), core::mem::transmute(pprevattr), core::mem::transmute(pfnparseerror)) + CryptCATCDFEnumAttributes(core::mem::transmute(pcdf), core::mem::transmute(pmember), core::mem::transmute(pprevattr), pfnparseerror) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] @@ -93,24 +93,24 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumAttributesWithCDFTag(pcdf : *const CRYPTCATCDF, pwszmembertag : windows_core::PCWSTR, pmember : *const CRYPTCATMEMBER, pprevattr : *const CRYPTCATATTRIBUTE, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATATTRIBUTE); - CryptCATCDFEnumAttributesWithCDFTag(core::mem::transmute(pcdf), pwszmembertag.param().abi(), core::mem::transmute(pmember), core::mem::transmute(pprevattr), core::mem::transmute(pfnparseerror)) + CryptCATCDFEnumAttributesWithCDFTag(pcdf, pwszmembertag.param().abi(), pmember, pprevattr, pfnparseerror) } #[inline] pub unsafe fn CryptCATCDFEnumCatAttributes(pcdf: *mut CRYPTCATCDF, pprevattr: *mut CRYPTCATATTRIBUTE, pfnparseerror: PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATATTRIBUTE { windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumCatAttributes(pcdf : *mut CRYPTCATCDF, pprevattr : *mut CRYPTCATATTRIBUTE, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATATTRIBUTE); - CryptCATCDFEnumCatAttributes(core::mem::transmute(pcdf), core::mem::transmute(pprevattr), core::mem::transmute(pfnparseerror)) + CryptCATCDFEnumCatAttributes(core::mem::transmute(pcdf), core::mem::transmute(pprevattr), pfnparseerror) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATCDFEnumMembers(pcdf: *mut CRYPTCATCDF, pprevmember: *mut CRYPTCATMEMBER, pfnparseerror: PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATMEMBER { windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumMembers(pcdf : *mut CRYPTCATCDF, pprevmember : *mut CRYPTCATMEMBER, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATMEMBER); - CryptCATCDFEnumMembers(core::mem::transmute(pcdf), core::mem::transmute(pprevmember), core::mem::transmute(pfnparseerror)) + CryptCATCDFEnumMembers(core::mem::transmute(pcdf), core::mem::transmute(pprevmember), pfnparseerror) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATCDFEnumMembersByCDFTagEx(pcdf: *const CRYPTCATCDF, pwszprevcdftag: windows_core::PWSTR, pfnparseerror: PFN_CDF_PARSE_ERROR_CALLBACK, ppmember: *const *const CRYPTCATMEMBER, fcontinueonerror: bool, pvreserved: *const core::ffi::c_void) -> windows_core::PWSTR { windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumMembersByCDFTagEx(pcdf : *const CRYPTCATCDF, pwszprevcdftag : windows_core::PWSTR, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK, ppmember : *const *const CRYPTCATMEMBER, fcontinueonerror : super::super::super::Foundation:: BOOL, pvreserved : *const core::ffi::c_void) -> windows_core::PWSTR); - CryptCATCDFEnumMembersByCDFTagEx(core::mem::transmute(pcdf), core::mem::transmute(pwszprevcdftag), core::mem::transmute(pfnparseerror), core::mem::transmute(ppmember), fcontinueonerror.into(), core::mem::transmute(pvreserved)) + CryptCATCDFEnumMembersByCDFTagEx(pcdf, core::mem::transmute(pwszprevcdftag), pfnparseerror, ppmember, fcontinueonerror.into(), pvreserved) } #[inline] pub unsafe fn CryptCATCDFOpen(pwszfilepath: P0, pfnparseerror: Option) -> *mut CRYPTCATCDF @@ -123,35 +123,35 @@ where #[inline] pub unsafe fn CryptCATCatalogInfoFromContext(hcatinfo: isize, pscatinfo: *mut CATALOG_INFO, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn CryptCATCatalogInfoFromContext(hcatinfo : isize, pscatinfo : *mut CATALOG_INFO, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATCatalogInfoFromContext(core::mem::transmute(hcatinfo), core::mem::transmute(pscatinfo), core::mem::transmute(dwflags)).ok() + CryptCATCatalogInfoFromContext(hcatinfo, core::mem::transmute(pscatinfo), dwflags).ok() } #[inline] pub unsafe fn CryptCATClose(hcatalog: super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptCATClose(hcatalog : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - CryptCATClose(core::mem::transmute(hcatalog)) + CryptCATClose(hcatalog) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATEnumerateAttr(hcatalog: super::super::super::Foundation::HANDLE, pcatmember: *mut CRYPTCATMEMBER, pprevattr: *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE { windows_targets::link!("wintrust.dll" "system" fn CryptCATEnumerateAttr(hcatalog : super::super::super::Foundation:: HANDLE, pcatmember : *mut CRYPTCATMEMBER, pprevattr : *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE); - CryptCATEnumerateAttr(core::mem::transmute(hcatalog), core::mem::transmute(pcatmember), core::mem::transmute(pprevattr)) + CryptCATEnumerateAttr(hcatalog, core::mem::transmute(pcatmember), core::mem::transmute(pprevattr)) } #[inline] pub unsafe fn CryptCATEnumerateCatAttr(hcatalog: super::super::super::Foundation::HANDLE, pprevattr: *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE { windows_targets::link!("wintrust.dll" "system" fn CryptCATEnumerateCatAttr(hcatalog : super::super::super::Foundation:: HANDLE, pprevattr : *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE); - CryptCATEnumerateCatAttr(core::mem::transmute(hcatalog), core::mem::transmute(pprevattr)) + CryptCATEnumerateCatAttr(hcatalog, core::mem::transmute(pprevattr)) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATEnumerateMember(hcatalog: super::super::super::Foundation::HANDLE, pprevmember: *mut CRYPTCATMEMBER) -> *mut CRYPTCATMEMBER { windows_targets::link!("wintrust.dll" "system" fn CryptCATEnumerateMember(hcatalog : super::super::super::Foundation:: HANDLE, pprevmember : *mut CRYPTCATMEMBER) -> *mut CRYPTCATMEMBER); - CryptCATEnumerateMember(core::mem::transmute(hcatalog), core::mem::transmute(pprevmember)) + CryptCATEnumerateMember(hcatalog, core::mem::transmute(pprevmember)) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATFreeSortedMemberInfo(hcatalog: super::super::super::Foundation::HANDLE, pcatmember: *mut CRYPTCATMEMBER) { windows_targets::link!("wintrust.dll" "system" fn CryptCATFreeSortedMemberInfo(hcatalog : super::super::super::Foundation:: HANDLE, pcatmember : *mut CRYPTCATMEMBER)); - CryptCATFreeSortedMemberInfo(core::mem::transmute(hcatalog), core::mem::transmute(pcatmember)) + CryptCATFreeSortedMemberInfo(hcatalog, core::mem::transmute(pcatmember)) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] @@ -160,7 +160,7 @@ where P2: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATGetAttrInfo(hcatalog : super::super::super::Foundation:: HANDLE, pcatmember : *mut CRYPTCATMEMBER, pwszreferencetag : windows_core::PCWSTR) -> *mut CRYPTCATATTRIBUTE); - CryptCATGetAttrInfo(core::mem::transmute(hcatalog), core::mem::transmute(pcatmember), pwszreferencetag.param().abi()) + CryptCATGetAttrInfo(hcatalog, core::mem::transmute(pcatmember), pwszreferencetag.param().abi()) } #[inline] pub unsafe fn CryptCATGetCatAttrInfo(hcatalog: super::super::super::Foundation::HANDLE, pwszreferencetag: P1) -> *mut CRYPTCATATTRIBUTE @@ -168,7 +168,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATGetCatAttrInfo(hcatalog : super::super::super::Foundation:: HANDLE, pwszreferencetag : windows_core::PCWSTR) -> *mut CRYPTCATATTRIBUTE); - CryptCATGetCatAttrInfo(core::mem::transmute(hcatalog), pwszreferencetag.param().abi()) + CryptCATGetCatAttrInfo(hcatalog, pwszreferencetag.param().abi()) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] @@ -177,7 +177,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATGetMemberInfo(hcatalog : super::super::super::Foundation:: HANDLE, pwszreferencetag : windows_core::PCWSTR) -> *mut CRYPTCATMEMBER); - CryptCATGetMemberInfo(core::mem::transmute(hcatalog), pwszreferencetag.param().abi()) + CryptCATGetMemberInfo(hcatalog, pwszreferencetag.param().abi()) } #[inline] pub unsafe fn CryptCATHandleFromStore(pcatstore: *mut CRYPTCATSTORE) -> super::super::super::Foundation::HANDLE { @@ -190,12 +190,12 @@ where P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATOpen(pwszfilename : windows_core::PCWSTR, fdwopenflags : CRYPTCAT_OPEN_FLAGS, hprov : usize, dwpublicversion : CRYPTCAT_VERSION, dwencodingtype : u32) -> super::super::super::Foundation:: HANDLE); - CryptCATOpen(pwszfilename.param().abi(), core::mem::transmute(fdwopenflags), core::mem::transmute(hprov), core::mem::transmute(dwpublicversion), core::mem::transmute(dwencodingtype)) + CryptCATOpen(pwszfilename.param().abi(), fdwopenflags, hprov, dwpublicversion, dwencodingtype) } #[inline] pub unsafe fn CryptCATPersistStore(hcatalog: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn CryptCATPersistStore(hcatalog : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - CryptCATPersistStore(core::mem::transmute(hcatalog)).ok() + CryptCATPersistStore(hcatalog).ok() } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] @@ -204,7 +204,7 @@ where P2: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATPutAttrInfo(hcatalog : super::super::super::Foundation:: HANDLE, pcatmember : *mut CRYPTCATMEMBER, pwszreferencetag : windows_core::PCWSTR, dwattrtypeandaction : u32, cbdata : u32, pbdata : *mut u8) -> *mut CRYPTCATATTRIBUTE); - CryptCATPutAttrInfo(core::mem::transmute(hcatalog), core::mem::transmute(pcatmember), pwszreferencetag.param().abi(), core::mem::transmute(dwattrtypeandaction), core::mem::transmute(cbdata), core::mem::transmute(pbdata)) + CryptCATPutAttrInfo(hcatalog, core::mem::transmute(pcatmember), pwszreferencetag.param().abi(), dwattrtypeandaction, cbdata, core::mem::transmute(pbdata)) } #[inline] pub unsafe fn CryptCATPutCatAttrInfo(hcatalog: super::super::super::Foundation::HANDLE, pwszreferencetag: P1, dwattrtypeandaction: u32, cbdata: u32, pbdata: *mut u8) -> *mut CRYPTCATATTRIBUTE @@ -212,7 +212,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATPutCatAttrInfo(hcatalog : super::super::super::Foundation:: HANDLE, pwszreferencetag : windows_core::PCWSTR, dwattrtypeandaction : u32, cbdata : u32, pbdata : *mut u8) -> *mut CRYPTCATATTRIBUTE); - CryptCATPutCatAttrInfo(core::mem::transmute(hcatalog), pwszreferencetag.param().abi(), core::mem::transmute(dwattrtypeandaction), core::mem::transmute(cbdata), core::mem::transmute(pbdata)) + CryptCATPutCatAttrInfo(hcatalog, pwszreferencetag.param().abi(), dwattrtypeandaction, cbdata, core::mem::transmute(pbdata)) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] @@ -222,12 +222,12 @@ where P2: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATPutMemberInfo(hcatalog : super::super::super::Foundation:: HANDLE, pwszfilename : windows_core::PCWSTR, pwszreferencetag : windows_core::PCWSTR, pgsubjecttype : *mut windows_core::GUID, dwcertversion : u32, cbsipindirectdata : u32, pbsipindirectdata : *mut u8) -> *mut CRYPTCATMEMBER); - CryptCATPutMemberInfo(core::mem::transmute(hcatalog), pwszfilename.param().abi(), pwszreferencetag.param().abi(), core::mem::transmute(pgsubjecttype), core::mem::transmute(dwcertversion), core::mem::transmute(cbsipindirectdata), core::mem::transmute(pbsipindirectdata)) + CryptCATPutMemberInfo(hcatalog, pwszfilename.param().abi(), pwszreferencetag.param().abi(), core::mem::transmute(pgsubjecttype), dwcertversion, cbsipindirectdata, core::mem::transmute(pbsipindirectdata)) } #[inline] pub unsafe fn CryptCATStoreFromHandle(hcatalog: super::super::super::Foundation::HANDLE) -> *mut CRYPTCATSTORE { windows_targets::link!("wintrust.dll" "system" fn CryptCATStoreFromHandle(hcatalog : super::super::super::Foundation:: HANDLE) -> *mut CRYPTCATSTORE); - CryptCATStoreFromHandle(core::mem::transmute(hcatalog)) + CryptCATStoreFromHandle(hcatalog) } #[inline] pub unsafe fn IsCatalogFile(hfile: super::super::super::Foundation::HANDLE, pwszfilename: P1) -> super::super::super::Foundation::BOOL @@ -235,7 +235,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn IsCatalogFile(hfile : super::super::super::Foundation:: HANDLE, pwszfilename : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - IsCatalogFile(core::mem::transmute(hfile), pwszfilename.param().abi()) + IsCatalogFile(hfile, pwszfilename.param().abi()) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs index b6e2c96731..77c1c793b5 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs @@ -16,17 +16,17 @@ pub unsafe fn CertSrvBackupFree(pv: *mut core::ffi::c_void) { #[inline] pub unsafe fn CertSrvBackupGetBackupLogsW(hbc: *const core::ffi::c_void, ppwszzbackuplogfiles: *mut windows_core::PWSTR, pcbsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("certadm.dll" "system" fn CertSrvBackupGetBackupLogsW(hbc : *const core::ffi::c_void, ppwszzbackuplogfiles : *mut windows_core::PWSTR, pcbsize : *mut u32) -> windows_core::HRESULT); - CertSrvBackupGetBackupLogsW(core::mem::transmute(hbc), core::mem::transmute(ppwszzbackuplogfiles), core::mem::transmute(pcbsize)).ok() + CertSrvBackupGetBackupLogsW(hbc, core::mem::transmute(ppwszzbackuplogfiles), core::mem::transmute(pcbsize)).ok() } #[inline] pub unsafe fn CertSrvBackupGetDatabaseNamesW(hbc: *const core::ffi::c_void, ppwszzattachmentinformation: *mut windows_core::PWSTR, pcbsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("certadm.dll" "system" fn CertSrvBackupGetDatabaseNamesW(hbc : *const core::ffi::c_void, ppwszzattachmentinformation : *mut windows_core::PWSTR, pcbsize : *mut u32) -> windows_core::HRESULT); - CertSrvBackupGetDatabaseNamesW(core::mem::transmute(hbc), core::mem::transmute(ppwszzattachmentinformation), core::mem::transmute(pcbsize)).ok() + CertSrvBackupGetDatabaseNamesW(hbc, core::mem::transmute(ppwszzattachmentinformation), core::mem::transmute(pcbsize)).ok() } #[inline] pub unsafe fn CertSrvBackupGetDynamicFileListW(hbc: *const core::ffi::c_void, ppwszzfilelist: *mut windows_core::PWSTR, pcbsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("certadm.dll" "system" fn CertSrvBackupGetDynamicFileListW(hbc : *const core::ffi::c_void, ppwszzfilelist : *mut windows_core::PWSTR, pcbsize : *mut u32) -> windows_core::HRESULT); - CertSrvBackupGetDynamicFileListW(core::mem::transmute(hbc), core::mem::transmute(ppwszzfilelist), core::mem::transmute(pcbsize)).ok() + CertSrvBackupGetDynamicFileListW(hbc, core::mem::transmute(ppwszzfilelist), core::mem::transmute(pcbsize)).ok() } #[inline] pub unsafe fn CertSrvBackupOpenFileW(hbc: *mut core::ffi::c_void, pwszattachmentname: P1, cbreadhintsize: u32, plifilesize: *mut i64) -> windows_core::Result<()> @@ -34,7 +34,7 @@ where P1: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvBackupOpenFileW(hbc : *mut core::ffi::c_void, pwszattachmentname : windows_core::PCWSTR, cbreadhintsize : u32, plifilesize : *mut i64) -> windows_core::HRESULT); - CertSrvBackupOpenFileW(core::mem::transmute(hbc), pwszattachmentname.param().abi(), core::mem::transmute(cbreadhintsize), core::mem::transmute(plifilesize)).ok() + CertSrvBackupOpenFileW(core::mem::transmute(hbc), pwszattachmentname.param().abi(), cbreadhintsize, core::mem::transmute(plifilesize)).ok() } #[inline] pub unsafe fn CertSrvBackupPrepareW(pwszservername: P0, grbitjet: u32, dwbackupflags: CSBACKUP_TYPE, phbc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -42,12 +42,12 @@ where P0: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvBackupPrepareW(pwszservername : windows_core::PCWSTR, grbitjet : u32, dwbackupflags : CSBACKUP_TYPE, phbc : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CertSrvBackupPrepareW(pwszservername.param().abi(), core::mem::transmute(grbitjet), core::mem::transmute(dwbackupflags), core::mem::transmute(phbc)).ok() + CertSrvBackupPrepareW(pwszservername.param().abi(), grbitjet, dwbackupflags, core::mem::transmute(phbc)).ok() } #[inline] pub unsafe fn CertSrvBackupRead(hbc: *mut core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, cbbuffer: u32, pcbread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("certadm.dll" "system" fn CertSrvBackupRead(hbc : *mut core::ffi::c_void, pvbuffer : *mut core::ffi::c_void, cbbuffer : u32, pcbread : *mut u32) -> windows_core::HRESULT); - CertSrvBackupRead(core::mem::transmute(hbc), core::mem::transmute(pvbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcbread)).ok() + CertSrvBackupRead(core::mem::transmute(hbc), core::mem::transmute(pvbuffer), cbbuffer, core::mem::transmute(pcbread)).ok() } #[inline] pub unsafe fn CertSrvBackupTruncateLogs(hbc: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -70,7 +70,7 @@ pub unsafe fn CertSrvRestoreEnd(hbc: *mut core::ffi::c_void) -> windows_core::Re #[inline] pub unsafe fn CertSrvRestoreGetDatabaseLocationsW(hbc: *const core::ffi::c_void, ppwszzdatabaselocationlist: *mut windows_core::PWSTR, pcbsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("certadm.dll" "system" fn CertSrvRestoreGetDatabaseLocationsW(hbc : *const core::ffi::c_void, ppwszzdatabaselocationlist : *mut windows_core::PWSTR, pcbsize : *mut u32) -> windows_core::HRESULT); - CertSrvRestoreGetDatabaseLocationsW(core::mem::transmute(hbc), core::mem::transmute(ppwszzdatabaselocationlist), core::mem::transmute(pcbsize)).ok() + CertSrvRestoreGetDatabaseLocationsW(hbc, core::mem::transmute(ppwszzdatabaselocationlist), core::mem::transmute(pcbsize)).ok() } #[inline] pub unsafe fn CertSrvRestorePrepareW(pwszservername: P0, dwrestoreflags: u32, phbc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -78,12 +78,12 @@ where P0: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvRestorePrepareW(pwszservername : windows_core::PCWSTR, dwrestoreflags : u32, phbc : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CertSrvRestorePrepareW(pwszservername.param().abi(), core::mem::transmute(dwrestoreflags), core::mem::transmute(phbc)).ok() + CertSrvRestorePrepareW(pwszservername.param().abi(), dwrestoreflags, core::mem::transmute(phbc)).ok() } #[inline] pub unsafe fn CertSrvRestoreRegisterComplete(hbc: *mut core::ffi::c_void, hrrestorestate: windows_core::HRESULT) -> windows_core::Result<()> { windows_targets::link!("certadm.dll" "system" fn CertSrvRestoreRegisterComplete(hbc : *mut core::ffi::c_void, hrrestorestate : windows_core::HRESULT) -> windows_core::HRESULT); - CertSrvRestoreRegisterComplete(core::mem::transmute(hbc), core::mem::transmute(hrrestorestate)).ok() + CertSrvRestoreRegisterComplete(core::mem::transmute(hbc), hrrestorestate).ok() } #[inline] pub unsafe fn CertSrvRestoreRegisterThroughFile(hbc: *mut core::ffi::c_void, pwszcheckpointfilepath: P1, pwszlogpath: P2, rgrstmap: *mut CSEDB_RSTMAPW, crstmap: i32, pwszbackuplogpath: P5, genlow: u32, genhigh: u32) -> windows_core::Result<()> @@ -93,7 +93,7 @@ where P5: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvRestoreRegisterThroughFile(hbc : *mut core::ffi::c_void, pwszcheckpointfilepath : windows_core::PCWSTR, pwszlogpath : windows_core::PCWSTR, rgrstmap : *mut CSEDB_RSTMAPW, crstmap : i32, pwszbackuplogpath : windows_core::PCWSTR, genlow : u32, genhigh : u32) -> windows_core::HRESULT); - CertSrvRestoreRegisterThroughFile(core::mem::transmute(hbc), pwszcheckpointfilepath.param().abi(), pwszlogpath.param().abi(), core::mem::transmute(rgrstmap), core::mem::transmute(crstmap), pwszbackuplogpath.param().abi(), core::mem::transmute(genlow), core::mem::transmute(genhigh)).ok() + CertSrvRestoreRegisterThroughFile(core::mem::transmute(hbc), pwszcheckpointfilepath.param().abi(), pwszlogpath.param().abi(), core::mem::transmute(rgrstmap), crstmap, pwszbackuplogpath.param().abi(), genlow, genhigh).ok() } #[inline] pub unsafe fn CertSrvRestoreRegisterW(hbc: *mut core::ffi::c_void, pwszcheckpointfilepath: P1, pwszlogpath: P2, rgrstmap: *mut CSEDB_RSTMAPW, crstmap: i32, pwszbackuplogpath: P5, genlow: u32, genhigh: u32) -> windows_core::Result<()> @@ -103,7 +103,7 @@ where P5: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvRestoreRegisterW(hbc : *mut core::ffi::c_void, pwszcheckpointfilepath : windows_core::PCWSTR, pwszlogpath : windows_core::PCWSTR, rgrstmap : *mut CSEDB_RSTMAPW, crstmap : i32, pwszbackuplogpath : windows_core::PCWSTR, genlow : u32, genhigh : u32) -> windows_core::HRESULT); - CertSrvRestoreRegisterW(core::mem::transmute(hbc), pwszcheckpointfilepath.param().abi(), pwszlogpath.param().abi(), core::mem::transmute(rgrstmap), core::mem::transmute(crstmap), pwszbackuplogpath.param().abi(), core::mem::transmute(genlow), core::mem::transmute(genhigh)).ok() + CertSrvRestoreRegisterW(core::mem::transmute(hbc), pwszcheckpointfilepath.param().abi(), pwszlogpath.param().abi(), core::mem::transmute(rgrstmap), crstmap, pwszbackuplogpath.param().abi(), genlow, genhigh).ok() } #[inline] pub unsafe fn CertSrvServerControlW(pwszservername: P0, dwcontrolflags: u32, pcbout: *mut u32, ppbout: *mut *mut u8) -> windows_core::Result<()> @@ -111,51 +111,51 @@ where P0: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvServerControlW(pwszservername : windows_core::PCWSTR, dwcontrolflags : u32, pcbout : *mut u32, ppbout : *mut *mut u8) -> windows_core::HRESULT); - CertSrvServerControlW(pwszservername.param().abi(), core::mem::transmute(dwcontrolflags), core::mem::transmute(pcbout), core::mem::transmute(ppbout)).ok() + CertSrvServerControlW(pwszservername.param().abi(), dwcontrolflags, core::mem::transmute(pcbout), core::mem::transmute(ppbout)).ok() } #[inline] pub unsafe fn PstAcquirePrivateKey(pcert: *const super::CERT_CONTEXT) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstAcquirePrivateKey(pcert : *const super:: CERT_CONTEXT) -> super::super::super::Foundation:: NTSTATUS); - PstAcquirePrivateKey(core::mem::transmute(pcert)) + PstAcquirePrivateKey(pcert) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn PstGetCertificateChain(pcert: *const super::CERT_CONTEXT, ptrustedissuers: *const super::super::Authentication::Identity::SecPkgContext_IssuerListInfoEx, ppcertchaincontext: *mut *mut super::CERT_CHAIN_CONTEXT) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstGetCertificateChain(pcert : *const super:: CERT_CONTEXT, ptrustedissuers : *const super::super::Authentication::Identity:: SecPkgContext_IssuerListInfoEx, ppcertchaincontext : *mut *mut super:: CERT_CHAIN_CONTEXT) -> super::super::super::Foundation:: NTSTATUS); - PstGetCertificateChain(core::mem::transmute(pcert), core::mem::transmute(ptrustedissuers), core::mem::transmute(ppcertchaincontext)) + PstGetCertificateChain(pcert, ptrustedissuers, core::mem::transmute(ppcertchaincontext)) } #[inline] pub unsafe fn PstGetCertificates(ptargetname: *const super::super::super::Foundation::UNICODE_STRING, rgpcriteria: Option<&[super::CERT_SELECT_CRITERIA]>, bisclient: bool, pdwcertchaincontextcount: *mut u32, ppcertchaincontexts: *mut *mut *mut super::CERT_CHAIN_CONTEXT) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstGetCertificates(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, ccriteria : u32, rgpcriteria : *const super:: CERT_SELECT_CRITERIA, bisclient : super::super::super::Foundation:: BOOL, pdwcertchaincontextcount : *mut u32, ppcertchaincontexts : *mut *mut *mut super:: CERT_CHAIN_CONTEXT) -> super::super::super::Foundation:: NTSTATUS); - PstGetCertificates(core::mem::transmute(ptargetname), rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bisclient.into(), core::mem::transmute(pdwcertchaincontextcount), core::mem::transmute(ppcertchaincontexts)) + PstGetCertificates(ptargetname, rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bisclient.into(), core::mem::transmute(pdwcertchaincontextcount), core::mem::transmute(ppcertchaincontexts)) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn PstGetTrustAnchors(ptargetname: *const super::super::super::Foundation::UNICODE_STRING, rgpcriteria: Option<&[super::CERT_SELECT_CRITERIA]>, pptrustedissuers: *mut *mut super::super::Authentication::Identity::SecPkgContext_IssuerListInfoEx) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstGetTrustAnchors(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, ccriteria : u32, rgpcriteria : *const super:: CERT_SELECT_CRITERIA, pptrustedissuers : *mut *mut super::super::Authentication::Identity:: SecPkgContext_IssuerListInfoEx) -> super::super::super::Foundation:: NTSTATUS); - PstGetTrustAnchors(core::mem::transmute(ptargetname), rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pptrustedissuers)) + PstGetTrustAnchors(ptargetname, rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pptrustedissuers)) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn PstGetTrustAnchorsEx(ptargetname: *const super::super::super::Foundation::UNICODE_STRING, rgpcriteria: Option<&[super::CERT_SELECT_CRITERIA]>, pcertcontext: Option<*const super::CERT_CONTEXT>, pptrustedissuers: *mut *mut super::super::Authentication::Identity::SecPkgContext_IssuerListInfoEx) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstGetTrustAnchorsEx(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, ccriteria : u32, rgpcriteria : *const super:: CERT_SELECT_CRITERIA, pcertcontext : *const super:: CERT_CONTEXT, pptrustedissuers : *mut *mut super::super::Authentication::Identity:: SecPkgContext_IssuerListInfoEx) -> super::super::super::Foundation:: NTSTATUS); - PstGetTrustAnchorsEx(core::mem::transmute(ptargetname), rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcertcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptrustedissuers)) + PstGetTrustAnchorsEx(ptargetname, rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcertcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptrustedissuers)) } #[inline] pub unsafe fn PstGetUserNameForCertificate(pcertcontext: *const super::CERT_CONTEXT, username: *mut super::super::super::Foundation::UNICODE_STRING) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstGetUserNameForCertificate(pcertcontext : *const super:: CERT_CONTEXT, username : *mut super::super::super::Foundation:: UNICODE_STRING) -> super::super::super::Foundation:: NTSTATUS); - PstGetUserNameForCertificate(core::mem::transmute(pcertcontext), core::mem::transmute(username)) + PstGetUserNameForCertificate(pcertcontext, core::mem::transmute(username)) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn PstMapCertificate(pcert: *const super::CERT_CONTEXT, ptokeninformationtype: *mut super::super::Authentication::Identity::LSA_TOKEN_INFORMATION_TYPE, pptokeninformation: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstMapCertificate(pcert : *const super:: CERT_CONTEXT, ptokeninformationtype : *mut super::super::Authentication::Identity:: LSA_TOKEN_INFORMATION_TYPE, pptokeninformation : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - PstMapCertificate(core::mem::transmute(pcert), core::mem::transmute(ptokeninformationtype), core::mem::transmute(pptokeninformation)) + PstMapCertificate(pcert, core::mem::transmute(ptokeninformationtype), core::mem::transmute(pptokeninformation)) } #[inline] pub unsafe fn PstValidate(ptargetname: Option<*const super::super::super::Foundation::UNICODE_STRING>, bisclient: bool, prequestedissuancepolicy: Option<*const super::CERT_USAGE_MATCH>, phadditionalcertstore: Option<*const super::HCERTSTORE>, pcert: *const super::CERT_CONTEXT, pprovguid: Option<*mut windows_core::GUID>) -> super::super::super::Foundation::NTSTATUS { windows_targets::link!("certpoleng.dll" "system" fn PstValidate(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, bisclient : super::super::super::Foundation:: BOOL, prequestedissuancepolicy : *const super:: CERT_USAGE_MATCH, phadditionalcertstore : *const super:: HCERTSTORE, pcert : *const super:: CERT_CONTEXT, pprovguid : *mut windows_core::GUID) -> super::super::super::Foundation:: NTSTATUS); - PstValidate(core::mem::transmute(ptargetname.unwrap_or(core::mem::zeroed())), bisclient.into(), core::mem::transmute(prequestedissuancepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(phadditionalcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcert), core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed()))) + PstValidate(core::mem::transmute(ptargetname.unwrap_or(core::mem::zeroed())), bisclient.into(), core::mem::transmute(prequestedissuancepolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(phadditionalcertstore.unwrap_or(core::mem::zeroed())), pcert, core::mem::transmute(pprovguid.unwrap_or(core::mem::zeroed()))) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -991,16 +991,16 @@ windows_core::imp::interface_hierarchy!(IAlternativeName, windows_core::IUnknown #[cfg(feature = "Win32_System_Com")] impl IAlternativeName { pub unsafe fn InitializeFromString(&self, r#type: AlternativeNameType, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromString)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute_copy(strvalue)).ok() + (windows_core::Interface::vtable(self).InitializeFromString)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn InitializeFromRawData(&self, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromRawData)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(encoding), core::mem::transmute_copy(strrawdata)).ok() + (windows_core::Interface::vtable(self).InitializeFromRawData)(windows_core::Interface::as_raw(self), r#type, encoding, core::mem::transmute_copy(strrawdata)).ok() } pub unsafe fn InitializeFromOtherName(&self, pobjectid: P0, encoding: EncodingType, strrawdata: &windows_core::BSTR, tobewrapped: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromOtherName)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), core::mem::transmute(encoding), core::mem::transmute_copy(strrawdata), core::mem::transmute(tobewrapped)).ok() + (windows_core::Interface::vtable(self).InitializeFromOtherName)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, core::mem::transmute_copy(strrawdata), tobewrapped).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1016,7 +1016,7 @@ impl IAlternativeName { } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1128,7 +1128,7 @@ windows_core::imp::interface_hierarchy!(IAlternativeNames, windows_core::IUnknow impl IAlternativeNames { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1145,7 +1145,7 @@ impl IAlternativeNames { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -1247,17 +1247,17 @@ windows_core::imp::interface_hierarchy!(IBinaryConverter, windows_core::IUnknown impl IBinaryConverter { pub unsafe fn StringToString(&self, strencodedin: &windows_core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StringToString)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodedin), core::mem::transmute(encodingin), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).StringToString)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodedin), encodingin, encoding, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: *const super::super::super::System::Variant::VARIANT, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VariantByteArrayToString)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarbytearray), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).VariantByteArrayToString)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarbytearray), encoding, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn StringToVariantByteArray(&self, strencoded: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StringToVariantByteArray)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencoded), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).StringToVariantByteArray)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencoded), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1435,11 +1435,11 @@ impl ICEnroll { } pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).enumProviders)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).enumProviders)(windows_core::Interface::as_raw(self), dwindex, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn enumContainers(&self, dwindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).enumContainers)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).enumContainers)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).freeRequestInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pkcs7orpkcs10)).ok() @@ -1463,7 +1463,7 @@ impl ICEnroll { (windows_core::Interface::vtable(self).MyStoreFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMyStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetMyStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn CAStoreName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1484,7 +1484,7 @@ impl ICEnroll { (windows_core::Interface::vtable(self).CAStoreFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCAStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetCAStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn RootStoreName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1505,7 +1505,7 @@ impl ICEnroll { (windows_core::Interface::vtable(self).RootStoreFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRootStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetRootStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn RequestStoreName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1526,7 +1526,7 @@ impl ICEnroll { (windows_core::Interface::vtable(self).RequestStoreFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRequestStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetRequestStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn ContainerName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1547,21 +1547,21 @@ impl ICEnroll { (windows_core::Interface::vtable(self).ProviderType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProviderType(&self, dwtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtype)).ok() + (windows_core::Interface::vtable(self).SetProviderType)(windows_core::Interface::as_raw(self), dwtype).ok() } pub unsafe fn KeySpec(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeySpec)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeySpec(&self, dw: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeySpec)(windows_core::Interface::as_raw(self), core::mem::transmute(dw)).ok() + (windows_core::Interface::vtable(self).SetKeySpec)(windows_core::Interface::as_raw(self), dw).ok() } pub unsafe fn ProviderFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProviderFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProviderFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetProviderFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn UseExistingKeySet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1575,7 +1575,7 @@ impl ICEnroll { (windows_core::Interface::vtable(self).GenKeyFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGenKeyFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGenKeyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetGenKeyFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn DeleteRequestCert(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2332,11 +2332,11 @@ impl ICEnroll3 { } pub unsafe fn EnumAlgs(&self, dwindex: i32, algclass: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAlgs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(algclass), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnumAlgs)(windows_core::Interface::as_raw(self), dwindex, algclass, &mut result__).map(|| result__) } pub unsafe fn GetAlgName(&self, algid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlgName)(windows_core::Interface::as_raw(self), core::mem::transmute(algid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAlgName)(windows_core::Interface::as_raw(self), algid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into()).ok() @@ -2346,7 +2346,7 @@ impl ICEnroll3 { (windows_core::Interface::vtable(self).ReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHashAlgID(&self, hashalgid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashAlgID)(windows_core::Interface::as_raw(self), core::mem::transmute(hashalgid)).ok() + (windows_core::Interface::vtable(self).SetHashAlgID)(windows_core::Interface::as_raw(self), hashalgid).ok() } pub unsafe fn HashAlgID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2563,20 +2563,20 @@ impl ICEnroll4 { } pub unsafe fn binaryToString(&self, flags: i32, strbinary: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).binaryToString)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strbinary), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).binaryToString)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strbinary), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn stringToBinary(&self, flags: i32, strencoded: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).stringToBinary)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strencoded), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).stringToBinary)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strencoded), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn addExtensionToRequest(&self, flags: i32, strname: &windows_core::BSTR, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addExtensionToRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strname), core::mem::transmute_copy(strvalue)).ok() + (windows_core::Interface::vtable(self).addExtensionToRequest)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strname), core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn addAttributeToRequest(&self, flags: i32, strname: &windows_core::BSTR, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addAttributeToRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strname), core::mem::transmute_copy(strvalue)).ok() + (windows_core::Interface::vtable(self).addAttributeToRequest)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strname), core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn addNameValuePairToRequest(&self, flags: i32, strname: &windows_core::BSTR, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addNameValuePairToRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strname), core::mem::transmute_copy(strvalue)).ok() + (windows_core::Interface::vtable(self).addNameValuePairToRequest)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strname), core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn resetExtensions(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).resetExtensions)(windows_core::Interface::as_raw(self)).ok() @@ -2586,10 +2586,10 @@ impl ICEnroll4 { } pub unsafe fn createRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &windows_core::BSTR, usage: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).createRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strdnname), core::mem::transmute_copy(usage), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).createRequest)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strdnname), core::mem::transmute_copy(usage), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn createFileRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &windows_core::BSTR, strusage: &windows_core::BSTR, strrequestfilename: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).createFileRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strdnname), core::mem::transmute_copy(strusage), core::mem::transmute_copy(strrequestfilename)).ok() + (windows_core::Interface::vtable(self).createFileRequest)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strdnname), core::mem::transmute_copy(strusage), core::mem::transmute_copy(strrequestfilename)).ok() } pub unsafe fn acceptResponse(&self, strresponse: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).acceptResponse)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strresponse)).ok() @@ -2613,26 +2613,26 @@ impl ICEnroll4 { (windows_core::Interface::vtable(self).createFilePFX)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strpfxfilename)).ok() } pub unsafe fn setPendingRequestInfo(&self, lrequestid: i32, strcadns: &windows_core::BSTR, strcaname: &windows_core::BSTR, strfriendlyname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setPendingRequestInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(lrequestid), core::mem::transmute_copy(strcadns), core::mem::transmute_copy(strcaname), core::mem::transmute_copy(strfriendlyname)).ok() + (windows_core::Interface::vtable(self).setPendingRequestInfo)(windows_core::Interface::as_raw(self), lrequestid, core::mem::transmute_copy(strcadns), core::mem::transmute_copy(strcaname), core::mem::transmute_copy(strfriendlyname)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn enumPendingRequest(&self, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).enumPendingRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(ldesiredproperty), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).enumPendingRequest)(windows_core::Interface::as_raw(self), lindex, ldesiredproperty, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn removePendingRequest(&self, strthumbprint: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).removePendingRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strthumbprint)).ok() } pub unsafe fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKeyLenEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lsizespec), core::mem::transmute(lkeyspec), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetKeyLenEx)(windows_core::Interface::as_raw(self), lsizespec, lkeyspec, &mut result__).map(|| result__) } pub unsafe fn InstallPKCS7Ex(&self, pkcs7: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InstallPKCS7Ex)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(pkcs7), &mut result__).map(|| result__) } pub unsafe fn addCertTypeToRequestEx(&self, ltype: ADDED_CERT_TYPE, bstroidorname: &windows_core::BSTR, lmajorversion: i32, fminorversion: bool, lminorversion: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addCertTypeToRequestEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ltype), core::mem::transmute_copy(bstroidorname), core::mem::transmute(lmajorversion), fminorversion.into(), core::mem::transmute(lminorversion)).ok() + (windows_core::Interface::vtable(self).addCertTypeToRequestEx)(windows_core::Interface::as_raw(self), ltype, core::mem::transmute_copy(bstroidorname), lmajorversion, fminorversion.into(), lminorversion).ok() } pub unsafe fn getProviderType(&self, strprovname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2642,14 +2642,14 @@ impl ICEnroll4 { (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcert)).ok() } pub unsafe fn SetClientId(&self, lclientid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), core::mem::transmute(lclientid)).ok() + (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), lclientid).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ClientId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn addBlobPropertyToCertificate(&self, lpropertyid: i32, lreserved: i32, bstrproperty: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addBlobPropertyToCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropertyid), core::mem::transmute(lreserved), core::mem::transmute_copy(bstrproperty)).ok() + (windows_core::Interface::vtable(self).addBlobPropertyToCertificate)(windows_core::Interface::as_raw(self), lpropertyid, lreserved, core::mem::transmute_copy(bstrproperty)).ok() } pub unsafe fn resetBlobProperties(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).resetBlobProperties)(windows_core::Interface::as_raw(self)).ok() @@ -3025,32 +3025,32 @@ impl ICertAdmin { (windows_core::Interface::vtable(self).GetRevocationReason)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn RevokeCertificate(&self, strconfig: &windows_core::BSTR, strserialnumber: &windows_core::BSTR, reason: i32, date: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RevokeCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strserialnumber), core::mem::transmute(reason), core::mem::transmute(date)).ok() + (windows_core::Interface::vtable(self).RevokeCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strserialnumber), reason, date).ok() } pub unsafe fn SetRequestAttributes(&self, strconfig: &windows_core::BSTR, requestid: i32, strattributes: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRequestAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid), core::mem::transmute_copy(strattributes)).ok() + (windows_core::Interface::vtable(self).SetRequestAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid, core::mem::transmute_copy(strattributes)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetCertificateExtension(&self, strconfig: &windows_core::BSTR, requestid: i32, strextensionname: &windows_core::BSTR, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid), core::mem::transmute_copy(strextensionname), core::mem::transmute(r#type), core::mem::transmute(flags), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid, core::mem::transmute_copy(strextensionname), r#type, flags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn DenyRequest(&self, strconfig: &windows_core::BSTR, requestid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DenyRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid)).ok() + (windows_core::Interface::vtable(self).DenyRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid).ok() } pub unsafe fn ResubmitRequest(&self, strconfig: &windows_core::BSTR, requestid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResubmitRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ResubmitRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid, &mut result__).map(|| result__) } pub unsafe fn PublishCRL(&self, strconfig: &windows_core::BSTR, date: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PublishCRL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(date)).ok() + (windows_core::Interface::vtable(self).PublishCRL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), date).ok() } pub unsafe fn GetCRL(&self, strconfig: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCRL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCRL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), flags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ImportCertificate(&self, strconfig: &windows_core::BSTR, strcertificate: &windows_core::BSTR, flags: CERT_IMPORT_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strcertificate), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ImportCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strcertificate), flags, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3191,28 +3191,28 @@ windows_core::imp::interface_hierarchy!(ICertAdmin2, windows_core::IUnknown, sup #[cfg(feature = "Win32_System_Com")] impl ICertAdmin2 { pub unsafe fn PublishCRLs(&self, strconfig: &windows_core::BSTR, date: f64, crlflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PublishCRLs)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(date), core::mem::transmute(crlflags)).ok() + (windows_core::Interface::vtable(self).PublishCRLs)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), date, crlflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCAProperty(&self, strconfig: &windows_core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), core::mem::transmute(propindex), core::mem::transmute(proptype), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, propindex, proptype, flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetCAProperty(&self, strconfig: &windows_core::BSTR, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCAProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), core::mem::transmute(propindex), core::mem::transmute(proptype), core::mem::transmute(pvarpropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetCAProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, propindex, proptype, core::mem::transmute(pvarpropertyvalue)).ok() } pub unsafe fn GetCAPropertyFlags(&self, strconfig: &windows_core::BSTR, propid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, &mut result__).map(|| result__) } pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: &windows_core::BSTR, propid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetArchivedKey(&self, strconfig: &windows_core::BSTR, requestid: i32, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetArchivedKey)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetArchivedKey)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid, flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetConfigEntry(&self, strconfig: &windows_core::BSTR, strnodepath: &windows_core::BSTR, strentryname: &windows_core::BSTR) -> windows_core::Result { @@ -3224,7 +3224,7 @@ impl ICertAdmin2 { (windows_core::Interface::vtable(self).SetConfigEntry)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strnodepath), core::mem::transmute_copy(strentryname), core::mem::transmute(pvarentry)).ok() } pub unsafe fn ImportKey(&self, strconfig: &windows_core::BSTR, requestid: i32, strcerthash: &windows_core::BSTR, flags: CERT_IMPORT_FLAGS, strkey: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ImportKey)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid), core::mem::transmute_copy(strcerthash), core::mem::transmute(flags), core::mem::transmute_copy(strkey)).ok() + (windows_core::Interface::vtable(self).ImportKey)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid, core::mem::transmute_copy(strcerthash), flags, core::mem::transmute_copy(strkey)).ok() } pub unsafe fn GetMyRoles(&self, strconfig: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3232,7 +3232,7 @@ impl ICertAdmin2 { } pub unsafe fn DeleteRow(&self, strconfig: &windows_core::BSTR, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DeleteRow)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(flags), core::mem::transmute(date), core::mem::transmute(table), core::mem::transmute(rowid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DeleteRow)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), flags, date, table, rowid, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3402,7 +3402,7 @@ windows_core::imp::interface_hierarchy!(ICertConfig, windows_core::IUnknown, sup impl ICertConfig { pub unsafe fn Reset(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn Next(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3414,7 +3414,7 @@ impl ICertConfig { } pub unsafe fn GetConfig(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3554,17 +3554,17 @@ impl ICertEncodeAltName { } pub unsafe fn GetNameChoice(&self, nameindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNameChoice)(windows_core::Interface::as_raw(self), core::mem::transmute(nameindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNameChoice)(windows_core::Interface::as_raw(self), nameindex, &mut result__).map(|| result__) } pub unsafe fn GetName(&self, nameindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), core::mem::transmute(nameindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), nameindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Reset(&self, namecount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(namecount)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), namecount).ok() } pub unsafe fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(nameindex), core::mem::transmute(namechoice), core::mem::transmute_copy(strname)).ok() + (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), nameindex, namechoice, core::mem::transmute_copy(strname)).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3679,18 +3679,18 @@ windows_core::imp::interface_hierarchy!(ICertEncodeAltName2, windows_core::IUnkn #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName2 { pub unsafe fn DecodeBlob(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetNameBlob(&self, nameindex: i32, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNameBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(nameindex), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetNameBlob)(windows_core::Interface::as_raw(self), nameindex, encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetNameEntryBlob(&self, nameindex: i32, namechoice: i32, strname: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNameEntryBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(nameindex), core::mem::transmute(namechoice), core::mem::transmute_copy(strname), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).SetNameEntryBlob)(windows_core::Interface::as_raw(self), nameindex, namechoice, core::mem::transmute_copy(strname), encoding).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3780,7 +3780,7 @@ impl ICertEncodeBitString { } pub unsafe fn Encode(&self, bitcount: i32, strbitstring: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), core::mem::transmute(bitcount), core::mem::transmute_copy(strbitstring), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), bitcount, core::mem::transmute_copy(strbitstring), &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3864,15 +3864,15 @@ windows_core::imp::interface_hierarchy!(ICertEncodeBitString2, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString2 { pub unsafe fn DecodeBlob(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn EncodeBlob(&self, bitcount: i32, strbitstring: &windows_core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(bitcount), core::mem::transmute_copy(strbitstring), core::mem::transmute(encodingin), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), bitcount, core::mem::transmute_copy(strbitstring), encodingin, encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetBitStringBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBitStringBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetBitStringBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3951,24 +3951,24 @@ impl ICertEncodeCRLDistInfo { } pub unsafe fn GetNameCount(&self, distpointindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNameCount)(windows_core::Interface::as_raw(self), core::mem::transmute(distpointindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNameCount)(windows_core::Interface::as_raw(self), distpointindex, &mut result__).map(|| result__) } pub unsafe fn GetNameChoice(&self, distpointindex: i32, nameindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNameChoice)(windows_core::Interface::as_raw(self), core::mem::transmute(distpointindex), core::mem::transmute(nameindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNameChoice)(windows_core::Interface::as_raw(self), distpointindex, nameindex, &mut result__).map(|| result__) } pub unsafe fn GetName(&self, distpointindex: i32, nameindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), core::mem::transmute(distpointindex), core::mem::transmute(nameindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), distpointindex, nameindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Reset(&self, distpointcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(distpointcount)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), distpointcount).ok() } pub unsafe fn SetNameCount(&self, distpointindex: i32, namecount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNameCount)(windows_core::Interface::as_raw(self), core::mem::transmute(distpointindex), core::mem::transmute(namecount)).ok() + (windows_core::Interface::vtable(self).SetNameCount)(windows_core::Interface::as_raw(self), distpointindex, namecount).ok() } pub unsafe fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(distpointindex), core::mem::transmute(nameindex), core::mem::transmute(namechoice), core::mem::transmute_copy(strname)).ok() + (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), distpointindex, nameindex, namechoice, core::mem::transmute_copy(strname)).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4103,11 +4103,11 @@ windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo2, windows_core::I #[cfg(feature = "Win32_System_Com")] impl ICertEncodeCRLDistInfo2 { pub unsafe fn DecodeBlob(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4173,13 +4173,13 @@ impl ICertEncodeDateArray { } pub unsafe fn GetValue(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn Reset(&self, count: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn SetValue(&self, index: i32, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), index, value).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4281,11 +4281,11 @@ windows_core::imp::interface_hierarchy!(ICertEncodeDateArray2, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray2 { pub unsafe fn DecodeBlob(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4351,13 +4351,13 @@ impl ICertEncodeLongArray { } pub unsafe fn GetValue(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn Reset(&self, count: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn SetValue(&self, index: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), index, value).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4459,11 +4459,11 @@ windows_core::imp::interface_hierarchy!(ICertEncodeLongArray2, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray2 { pub unsafe fn DecodeBlob(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4533,13 +4533,13 @@ impl ICertEncodeStringArray { } pub unsafe fn GetValue(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Reset(&self, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(stringtype)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), count, stringtype).ok() } pub unsafe fn SetValue(&self, index: i32, str: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute_copy(str)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), index, core::mem::transmute_copy(str)).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4654,11 +4654,11 @@ windows_core::imp::interface_hierarchy!(ICertEncodeStringArray2, windows_core::I #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray2 { pub unsafe fn DecodeBlob(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4720,7 +4720,7 @@ impl ICertExit { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), &mut result__).map(|| result__) } pub unsafe fn Notify(&self, exitevent: i32, context: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(exitevent), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), exitevent, context).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4845,7 +4845,7 @@ windows_core::imp::interface_hierarchy!(ICertGetConfig, windows_core::IUnknown, impl ICertGetConfig { pub unsafe fn GetConfig(&self, flags: CERT_GET_CONFIG_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetConfig)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4895,14 +4895,14 @@ impl ICertManageModule { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, strconfig: &windows_core::BSTR, strstoragelocation: &windows_core::BSTR, strpropertyname: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strstoragelocation), core::mem::transmute_copy(strpropertyname), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strstoragelocation), core::mem::transmute_copy(strpropertyname), flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, strconfig: &windows_core::BSTR, strstoragelocation: &windows_core::BSTR, strpropertyname: &windows_core::BSTR, flags: i32, pvarproperty: *const super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strstoragelocation), core::mem::transmute_copy(strpropertyname), core::mem::transmute(flags), core::mem::transmute(pvarproperty)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strstoragelocation), core::mem::transmute_copy(strpropertyname), flags, core::mem::transmute(pvarproperty)).ok() } pub unsafe fn Configure(&self, strconfig: &windows_core::BSTR, strstoragelocation: &windows_core::BSTR, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strstoragelocation), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute_copy(strstoragelocation), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4977,7 +4977,7 @@ impl ICertPolicy { } pub unsafe fn VerifyRequest(&self, strconfig: &windows_core::BSTR, context: i32, bnewrequest: i32, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VerifyRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(context), core::mem::transmute(bnewrequest), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VerifyRequest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), context, bnewrequest, flags, &mut result__).map(|| result__) } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5112,7 +5112,7 @@ windows_core::imp::interface_hierarchy!(ICertProperties, windows_core::IUnknown, impl ICertProperties { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5129,13 +5129,13 @@ impl ICertProperties { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InitializeFromCertificate(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext, encoding, core::mem::transmute_copy(strcertificate)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5240,27 +5240,27 @@ windows_core::imp::interface_hierarchy!(ICertProperty, windows_core::IUnknown, s #[cfg(feature = "Win32_System_Com")] impl ICertProperty { pub unsafe fn InitializeFromCertificate(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext, encoding, core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PropertyId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertyId)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetPropertyId)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RemoveFromCertificate(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveFromCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext, encoding, core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueOnCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext, encoding, core::mem::transmute_copy(strcertificate)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5359,7 +5359,7 @@ windows_core::imp::interface_hierarchy!(ICertPropertyArchived, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchived { pub unsafe fn Initialize(&self, archivedvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(archivedvalue)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), archivedvalue).ok() } pub unsafe fn Archived(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5417,11 +5417,11 @@ windows_core::imp::interface_hierarchy!(ICertPropertyArchivedKeyHash, windows_co #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchivedKeyHash { pub unsafe fn Initialize(&self, encoding: EncodingType, strarchivedkeyhashvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strarchivedkeyhashvalue)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strarchivedkeyhashvalue)).ok() } pub unsafe fn get_ArchivedKeyHash(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ArchivedKeyHash)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_ArchivedKeyHash)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5541,10 +5541,10 @@ windows_core::imp::interface_hierarchy!(ICertPropertyBackedUp, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ICertPropertyBackedUp { pub unsafe fn InitializeFromCurrentTime(&self, backedupvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromCurrentTime)(windows_core::Interface::as_raw(self), core::mem::transmute(backedupvalue)).ok() + (windows_core::Interface::vtable(self).InitializeFromCurrentTime)(windows_core::Interface::as_raw(self), backedupvalue).ok() } pub unsafe fn Initialize(&self, backedupvalue: super::super::super::Foundation::VARIANT_BOOL, date: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(backedupvalue), core::mem::transmute(date)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), backedupvalue, date).ok() } pub unsafe fn BackedUpValue(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5688,7 +5688,7 @@ windows_core::imp::interface_hierarchy!(ICertPropertyEnrollment, windows_core::I #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollment { pub unsafe fn Initialize(&self, requestid: i32, strcadnsname: &windows_core::BSTR, strcaname: &windows_core::BSTR, strfriendlyname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), core::mem::transmute_copy(strcadnsname), core::mem::transmute_copy(strcaname), core::mem::transmute_copy(strfriendlyname)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requestid, core::mem::transmute_copy(strcadnsname), core::mem::transmute_copy(strcaname), core::mem::transmute_copy(strfriendlyname)).ok() } pub unsafe fn RequestId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5801,7 +5801,7 @@ windows_core::imp::interface_hierarchy!(ICertPropertyEnrollmentPolicyServer, win #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollmentPolicyServer { pub unsafe fn Initialize(&self, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: &windows_core::BSTR, strurl: &windows_core::BSTR, strid: &windows_core::BSTR, strenrollmentserverurl: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyflags), core::mem::transmute(authflags), core::mem::transmute(enrollmentserverauthflags), core::mem::transmute(urlflags), core::mem::transmute_copy(strrequestid), core::mem::transmute_copy(strurl), core::mem::transmute_copy(strid), core::mem::transmute_copy(strenrollmentserverurl)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), propertyflags, authflags, enrollmentserverauthflags, urlflags, core::mem::transmute_copy(strrequestid), core::mem::transmute_copy(strurl), core::mem::transmute_copy(strid), core::mem::transmute_copy(strenrollmentserverurl)).ok() } pub unsafe fn GetPolicyServerUrl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6105,14 +6105,14 @@ windows_core::imp::interface_hierarchy!(ICertPropertyRenewal, windows_core::IUnk #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRenewal { pub unsafe fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strrenewalvalue)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strrenewalvalue)).ok() } pub unsafe fn InitializeFromCertificateHash(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromCertificateHash)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificateHash)(windows_core::Interface::as_raw(self), machinecontext, encoding, core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn get_Renewal(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Renewal)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Renewal)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6249,11 +6249,11 @@ windows_core::imp::interface_hierarchy!(ICertPropertySHA1Hash, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl ICertPropertySHA1Hash { pub unsafe fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strrenewalvalue)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strrenewalvalue)).ok() } pub unsafe fn get_SHA1Hash(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SHA1Hash)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_SHA1Hash)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6312,11 +6312,11 @@ windows_core::imp::interface_hierarchy!(ICertRequest, windows_core::IUnknown, su impl ICertRequest { pub unsafe fn Submit(&self, flags: i32, strrequest: &windows_core::BSTR, strattributes: &windows_core::BSTR, strconfig: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strrequest), core::mem::transmute_copy(strattributes), core::mem::transmute_copy(strconfig), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strrequest), core::mem::transmute_copy(strattributes), core::mem::transmute_copy(strconfig), &mut result__).map(|| result__) } pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RetrievePending)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), core::mem::transmute_copy(strconfig), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RetrievePending)(windows_core::Interface::as_raw(self), requestid, core::mem::transmute_copy(strconfig), &mut result__).map(|| result__) } pub unsafe fn GetLastStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6332,11 +6332,11 @@ impl ICertRequest { } pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCACertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(fexchangecertificate), core::mem::transmute_copy(strconfig), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, core::mem::transmute_copy(strconfig), flags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCertificate(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCertificate)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6466,29 +6466,29 @@ windows_core::imp::interface_hierarchy!(ICertRequest2, windows_core::IUnknown, s impl ICertRequest2 { pub unsafe fn GetIssuedCertificate(&self, strconfig: &windows_core::BSTR, requestid: i32, strserialnumber: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIssuedCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(requestid), core::mem::transmute_copy(strserialnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIssuedCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), requestid, core::mem::transmute_copy(strserialnumber), &mut result__).map(|| result__) } pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorMessageText)(windows_core::Interface::as_raw(self), core::mem::transmute(hrmessage), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetErrorMessageText)(windows_core::Interface::as_raw(self), hrmessage, flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCAProperty(&self, strconfig: &windows_core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), core::mem::transmute(propindex), core::mem::transmute(proptype), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, propindex, proptype, flags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCAPropertyFlags(&self, strconfig: &windows_core::BSTR, propid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, &mut result__).map(|| result__) } pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: &windows_core::BSTR, propid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), core::mem::transmute(propid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strconfig), propid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFullResponseProperty(&self, propid: FULL_RESPONSE_PROPERTY_ID, propindex: i32, proptype: CERT_PROPERTY_TYPE, flags: CERT_REQUEST_OUT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFullResponseProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), core::mem::transmute(propindex), core::mem::transmute(proptype), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFullResponseProperty)(windows_core::Interface::as_raw(self), propid, propindex, proptype, flags, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6610,7 +6610,7 @@ windows_core::imp::interface_hierarchy!(ICertRequest3, windows_core::IUnknown, s #[cfg(feature = "Win32_System_Com")] impl ICertRequest3 { pub unsafe fn SetCredential(&self, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(authtype), core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), hwnd, authtype, core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn GetRequestIdString(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6700,14 +6700,14 @@ impl ICertRequestD { P1: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pwszauthority.param().abi(), core::mem::transmute(pdwrequestid), core::mem::transmute(pdwdisposition), pwszattributes.param().abi(), core::mem::transmute(pctbrequest), core::mem::transmute(pctbcertchain), core::mem::transmute(pctbencodedcert), core::mem::transmute(pctbdispositionmessage)).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), dwflags, pwszauthority.param().abi(), core::mem::transmute(pdwrequestid), core::mem::transmute(pdwdisposition), pwszattributes.param().abi(), pctbrequest, core::mem::transmute(pctbcertchain), core::mem::transmute(pctbencodedcert), core::mem::transmute(pctbdispositionmessage)).ok() } pub unsafe fn GetCACert(&self, fchain: u32, pwszauthority: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCACert)(windows_core::Interface::as_raw(self), core::mem::transmute(fchain), pwszauthority.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCACert)(windows_core::Interface::as_raw(self), fchain, pwszauthority.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Ping(&self, pwszauthority: P0) -> windows_core::Result<()> where @@ -6775,14 +6775,14 @@ impl ICertRequestD2 { P2: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Request2)(windows_core::Interface::as_raw(self), pwszauthority.param().abi(), core::mem::transmute(dwflags), pwszserialnumber.param().abi(), core::mem::transmute(pdwrequestid), core::mem::transmute(pdwdisposition), pwszattributes.param().abi(), core::mem::transmute(pctbrequest), core::mem::transmute(pctbfullresponse), core::mem::transmute(pctbencodedcert), core::mem::transmute(pctbdispositionmessage)).ok() + (windows_core::Interface::vtable(self).Request2)(windows_core::Interface::as_raw(self), pwszauthority.param().abi(), dwflags, pwszserialnumber.param().abi(), core::mem::transmute(pdwrequestid), core::mem::transmute(pdwdisposition), pwszattributes.param().abi(), pctbrequest, core::mem::transmute(pctbfullresponse), core::mem::transmute(pctbencodedcert), core::mem::transmute(pctbdispositionmessage)).ok() } pub unsafe fn GetCAProperty(&self, pwszauthority: P0, propid: i32, propindex: i32, proptype: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), pwszauthority.param().abi(), core::mem::transmute(propid), core::mem::transmute(propindex), core::mem::transmute(proptype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), pwszauthority.param().abi(), propid, propindex, proptype, &mut result__).map(|| result__) } pub unsafe fn GetCAPropertyInfo(&self, pwszauthority: P0, pcproperty: *mut i32, pctbpropinfo: *mut CERTTRANSBLOB) -> windows_core::Result<()> where @@ -6862,12 +6862,12 @@ windows_core::imp::interface_hierarchy!(ICertServerExit, windows_core::IUnknown, #[cfg(feature = "Win32_System_Com")] impl ICertServerExit { pub unsafe fn SetContext(&self, context: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), context).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetRequestProperty(&self, strpropertyname: &windows_core::BSTR, propertytype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), core::mem::transmute(propertytype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), propertytype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetRequestAttribute(&self, strattributename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6876,19 +6876,19 @@ impl ICertServerExit { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCertificateProperty(&self, strpropertyname: &windows_core::BSTR, propertytype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), core::mem::transmute(propertytype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), propertytype, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCertificateExtension(&self, strextensionname: &windows_core::BSTR, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strextensionname), core::mem::transmute(r#type), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strextensionname), r#type, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCertificateExtensionFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCertificateExtensionFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn EnumerateExtensionsSetup(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateExtensionsSetup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EnumerateExtensionsSetup)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn EnumerateExtensions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6898,7 +6898,7 @@ impl ICertServerExit { (windows_core::Interface::vtable(self).EnumerateExtensionsClose)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumerateAttributesSetup(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateAttributesSetup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EnumerateAttributesSetup)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn EnumerateAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7078,12 +7078,12 @@ windows_core::imp::interface_hierarchy!(ICertServerPolicy, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl ICertServerPolicy { pub unsafe fn SetContext(&self, context: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), context).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetRequestProperty(&self, strpropertyname: &windows_core::BSTR, propertytype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), core::mem::transmute(propertytype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), propertytype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetRequestAttribute(&self, strattributename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7092,16 +7092,16 @@ impl ICertServerPolicy { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCertificateProperty(&self, strpropertyname: &windows_core::BSTR, propertytype: CERT_PROPERTY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), core::mem::transmute(propertytype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), propertytype, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetCertificateProperty(&self, strpropertyname: &windows_core::BSTR, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCertificateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), core::mem::transmute(propertytype), core::mem::transmute(pvarpropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetCertificateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpropertyname), propertytype, core::mem::transmute(pvarpropertyvalue)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCertificateExtension(&self, strextensionname: &windows_core::BSTR, r#type: CERT_PROPERTY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strextensionname), core::mem::transmute(r#type), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strextensionname), r#type, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCertificateExtensionFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7109,10 +7109,10 @@ impl ICertServerPolicy { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetCertificateExtension(&self, strextensionname: &windows_core::BSTR, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strextensionname), core::mem::transmute(r#type), core::mem::transmute(extflags), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strextensionname), r#type, extflags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn EnumerateExtensionsSetup(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateExtensionsSetup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EnumerateExtensionsSetup)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn EnumerateExtensions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7122,7 +7122,7 @@ impl ICertServerPolicy { (windows_core::Interface::vtable(self).EnumerateExtensionsClose)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumerateAttributesSetup(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateAttributesSetup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EnumerateAttributesSetup)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn EnumerateAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7326,23 +7326,23 @@ impl ICertView { } pub unsafe fn EnumCertViewColumn(&self, fresultcolumn: CVRC_COLUMN) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCertViewColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(fresultcolumn), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCertViewColumn)(windows_core::Interface::as_raw(self), fresultcolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetColumnCount(&self, fresultcolumn: CVRC_COLUMN, pccolumn: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnCount)(windows_core::Interface::as_raw(self), core::mem::transmute(fresultcolumn), core::mem::transmute(pccolumn)).ok() + (windows_core::Interface::vtable(self).GetColumnCount)(windows_core::Interface::as_raw(self), fresultcolumn, core::mem::transmute(pccolumn)).ok() } pub unsafe fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: &windows_core::BSTR, pcolumnindex: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(fresultcolumn), core::mem::transmute_copy(strcolumnname), core::mem::transmute(pcolumnindex)).ok() + (windows_core::Interface::vtable(self).GetColumnIndex)(windows_core::Interface::as_raw(self), fresultcolumn, core::mem::transmute_copy(strcolumnname), core::mem::transmute(pcolumnindex)).ok() } pub unsafe fn SetResultColumnCount(&self, cresultcolumn: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResultColumnCount)(windows_core::Interface::as_raw(self), core::mem::transmute(cresultcolumn)).ok() + (windows_core::Interface::vtable(self).SetResultColumnCount)(windows_core::Interface::as_raw(self), cresultcolumn).ok() } pub unsafe fn SetResultColumn(&self, columnindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResultColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(columnindex)).ok() + (windows_core::Interface::vtable(self).SetResultColumn)(windows_core::Interface::as_raw(self), columnindex).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetRestriction(&self, columnindex: CERT_VIEW_COLUMN_INDEX, seekoperator: CERT_VIEW_SEEK_OPERATOR_FLAGS, sortorder: i32, pvarvalue: *const super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRestriction)(windows_core::Interface::as_raw(self), core::mem::transmute(columnindex), core::mem::transmute(seekoperator), core::mem::transmute(sortorder), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetRestriction)(windows_core::Interface::as_raw(self), columnindex, seekoperator, sortorder, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn OpenView(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7455,7 +7455,7 @@ windows_core::imp::interface_hierarchy!(ICertView2, windows_core::IUnknown, supe #[cfg(feature = "Win32_System_Com")] impl ICertView2 { pub unsafe fn SetTable(&self, table: CVRC_TABLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTable)(windows_core::Interface::as_raw(self), core::mem::transmute(table)).ok() + (windows_core::Interface::vtable(self).SetTable)(windows_core::Interface::as_raw(self), table).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7497,11 +7497,11 @@ windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge, window #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge { pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strpendingfullcmcresponsewithchallenge)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strpendingfullcmcresponsewithchallenge)).ok() } pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DecryptChallenge)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).DecryptChallenge)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RequestID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7579,7 +7579,7 @@ impl ICertificateAttestationChallenge2 { (windows_core::Interface::vtable(self).SetKeyContainerName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(value)).ok() } pub unsafe fn put_KeyBlob(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_KeyBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_KeyBlob)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7632,7 +7632,7 @@ windows_core::imp::interface_hierarchy!(ICertificatePolicies, windows_core::IUnk impl ICertificatePolicies { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7649,7 +7649,7 @@ impl ICertificatePolicies { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -7833,7 +7833,7 @@ windows_core::imp::interface_hierarchy!(ICertificationAuthorities, windows_core: impl ICertificationAuthorities { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7850,7 +7850,7 @@ impl ICertificationAuthorities { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -7980,7 +7980,7 @@ impl ICertificationAuthority { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Property(&self, property: EnrollmentCAProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8127,7 +8127,7 @@ windows_core::imp::interface_hierarchy!(ICryptAttributes, windows_core::IUnknown impl ICryptAttributes { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8144,7 +8144,7 @@ impl ICryptAttributes { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -8279,7 +8279,7 @@ windows_core::imp::interface_hierarchy!(ICspAlgorithm, windows_core::IUnknown, s impl ICspAlgorithm { pub unsafe fn GetAlgorithmOid(&self, length: i32, algflags: AlgorithmFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlgorithmOid)(windows_core::Interface::as_raw(self), core::mem::transmute(length), core::mem::transmute(algflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAlgorithmOid)(windows_core::Interface::as_raw(self), length, algflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DefaultLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8484,7 +8484,7 @@ windows_core::imp::interface_hierarchy!(ICspAlgorithms, windows_core::IUnknown, impl ICspAlgorithms { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8501,7 +8501,7 @@ impl ICspAlgorithms { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -8645,7 +8645,7 @@ impl ICspInformation { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), palgorithm.param().abi(), core::mem::transmute(machinecontext)).ok() + (windows_core::Interface::vtable(self).InitializeFromType)(windows_core::Interface::as_raw(self), r#type, palgorithm.param().abi(), machinecontext).ok() } pub unsafe fn CspAlgorithms(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8697,7 +8697,7 @@ impl ICspInformation { } pub unsafe fn GetDefaultSecurityDescriptor(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDefaultSecurityDescriptor)(windows_core::Interface::as_raw(self), machinecontext, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn LegacyCsp(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8708,7 +8708,7 @@ impl ICspInformation { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatusFromOperations)(windows_core::Interface::as_raw(self), palgorithm.param().abi(), core::mem::transmute(operations), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCspStatusFromOperations)(windows_core::Interface::as_raw(self), palgorithm.param().abi(), operations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8956,7 +8956,7 @@ windows_core::imp::interface_hierarchy!(ICspInformations, windows_core::IUnknown impl ICspInformations { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8973,7 +8973,7 @@ impl ICspInformations { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -8987,14 +8987,14 @@ impl ICspInformations { } pub unsafe fn GetCspStatusFromProviderName(&self, strprovidername: &windows_core::BSTR, legacykeyspec: X509KeySpec) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatusFromProviderName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strprovidername), core::mem::transmute(legacykeyspec), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCspStatusFromProviderName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strprovidername), legacykeyspec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCspStatusesFromOperations(&self, operations: AlgorithmOperationFlags, pcspinformation: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatusesFromOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(operations), pcspinformation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCspStatusesFromOperations)(windows_core::Interface::as_raw(self), operations, pcspinformation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEncryptionCspAlgorithms(&self, pcspinformation: P0) -> windows_core::Result where @@ -9189,7 +9189,7 @@ impl ICspStatus { (windows_core::Interface::vtable(self).Ordinal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOrdinal(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOrdinal)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOrdinal)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn CspAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9323,7 +9323,7 @@ windows_core::imp::interface_hierarchy!(ICspStatuses, windows_core::IUnknown, su impl ICspStatuses { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9340,7 +9340,7 @@ impl ICspStatuses { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -9351,11 +9351,11 @@ impl ICspStatuses { } pub unsafe fn get_ItemByOrdinal(&self, ordinal: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByOrdinal)(windows_core::Interface::as_raw(self), core::mem::transmute(ordinal), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByOrdinal)(windows_core::Interface::as_raw(self), ordinal, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_ItemByOperations(&self, strcspname: &windows_core::BSTR, stralgorithmname: &windows_core::BSTR, operations: AlgorithmOperationFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByOperations)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strcspname), core::mem::transmute_copy(stralgorithmname), core::mem::transmute(operations), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByOperations)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strcspname), core::mem::transmute_copy(stralgorithmname), operations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_ItemByProvider(&self, pcspstatus: P0) -> windows_core::Result where @@ -9538,10 +9538,10 @@ impl IEnroll { (windows_core::Interface::vtable(self).getROOTHStore)(windows_core::Interface::as_raw(self)) } pub unsafe fn enumProvidersWStr(&self, dwindex: i32, dwflags: i32, pbstrprovname: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).enumProvidersWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(dwflags), core::mem::transmute(pbstrprovname)).ok() + (windows_core::Interface::vtable(self).enumProvidersWStr)(windows_core::Interface::as_raw(self), dwindex, dwflags, core::mem::transmute(pbstrprovname)).ok() } pub unsafe fn enumContainersWStr(&self, dwindex: i32, pbstr: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).enumContainersWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pbstr)).ok() + (windows_core::Interface::vtable(self).enumContainersWStr)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pbstr)).ok() } pub unsafe fn freeRequestInfoBlob(&self, pkcs7orpkcs10: super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).freeRequestInfoBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pkcs7orpkcs10)).ok() @@ -9568,7 +9568,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).MyStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMyStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetMyStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn CAStoreNameWStr(&self, szwname: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CAStoreNameWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(szwname)).ok() @@ -9592,7 +9592,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).CAStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCAStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetCAStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn RootStoreNameWStr(&self, szwname: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RootStoreNameWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(szwname)).ok() @@ -9616,7 +9616,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).RootStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRootStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetRootStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn RequestStoreNameWStr(&self, szwname: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestStoreNameWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(szwname)).ok() @@ -9640,7 +9640,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).RequestStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRequestStoreFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetRequestStoreFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn ContainerNameWStr(&self, szwcontainer: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ContainerNameWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(szwcontainer)).ok() @@ -9664,19 +9664,19 @@ impl IEnroll { (windows_core::Interface::vtable(self).ProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwtype)).ok() } pub unsafe fn SetProviderType(&self, dwtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtype)).ok() + (windows_core::Interface::vtable(self).SetProviderType)(windows_core::Interface::as_raw(self), dwtype).ok() } pub unsafe fn KeySpec(&self, pdw: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KeySpec)(windows_core::Interface::as_raw(self), core::mem::transmute(pdw)).ok() } pub unsafe fn SetKeySpec(&self, dw: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeySpec)(windows_core::Interface::as_raw(self), core::mem::transmute(dw)).ok() + (windows_core::Interface::vtable(self).SetKeySpec)(windows_core::Interface::as_raw(self), dw).ok() } pub unsafe fn ProviderFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ProviderFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetProviderFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetProviderFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn UseExistingKeySet(&self, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UseExistingKeySet)(windows_core::Interface::as_raw(self), core::mem::transmute(fuseexistingkeys)).ok() @@ -9688,7 +9688,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).GenKeyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetGenKeyFlags(&self, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGenKeyFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetGenKeyFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn DeleteRequestCert(&self, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteRequestCert)(windows_core::Interface::as_raw(self), core::mem::transmute(fdelete)).ok() @@ -9745,7 +9745,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).RenewalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(ppcertcontext)).ok() } pub unsafe fn SetRenewalCertificate(&self, pcertcontext: *const super::CERT_CONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRenewalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(pcertcontext)).ok() + (windows_core::Interface::vtable(self).SetRenewalCertificate)(windows_core::Interface::as_raw(self), pcertcontext).ok() } pub unsafe fn AddCertTypeToRequestWStr(&self, szw: P0) -> windows_core::Result<()> where @@ -9767,7 +9767,7 @@ impl IEnroll { (windows_core::Interface::vtable(self).AddAuthenticatedAttributesToPKCS7Request)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes)).ok() } pub unsafe fn CreatePKCS7RequestFromRequest(&self, prequest: *mut super::CRYPT_INTEGER_BLOB, psigningcertcontext: *const super::CERT_CONTEXT, ppkcs7blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreatePKCS7RequestFromRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), core::mem::transmute(psigningcertcontext), core::mem::transmute(ppkcs7blob)).ok() + (windows_core::Interface::vtable(self).CreatePKCS7RequestFromRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), psigningcertcontext, core::mem::transmute(ppkcs7blob)).ok() } } #[repr(C)] @@ -10299,10 +10299,10 @@ impl IEnroll2 { (windows_core::Interface::vtable(self).GetKeyLen)(windows_core::Interface::as_raw(self), fmin.into(), fexchange.into(), core::mem::transmute(pdwkeysize)).ok() } pub unsafe fn EnumAlgs(&self, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAlgs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(algclass), core::mem::transmute(pdwalgid)).ok() + (windows_core::Interface::vtable(self).EnumAlgs)(windows_core::Interface::as_raw(self), dwindex, algclass, core::mem::transmute(pdwalgid)).ok() } pub unsafe fn GetAlgNameWStr(&self, algid: i32, ppwsz: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAlgNameWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(algid), core::mem::transmute(ppwsz)).ok() + (windows_core::Interface::vtable(self).GetAlgNameWStr)(windows_core::Interface::as_raw(self), algid, core::mem::transmute(ppwsz)).ok() } pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into()).ok() @@ -10311,22 +10311,22 @@ impl IEnroll2 { (windows_core::Interface::vtable(self).ReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), core::mem::transmute(freusehardwarekeyifunabletogennew)).ok() } pub unsafe fn SetHashAlgID(&self, hashalgid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashAlgID)(windows_core::Interface::as_raw(self), core::mem::transmute(hashalgid)).ok() + (windows_core::Interface::vtable(self).SetHashAlgID)(windows_core::Interface::as_raw(self), hashalgid).ok() } pub unsafe fn HashAlgID(&self, hashalgid: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HashAlgID)(windows_core::Interface::as_raw(self), core::mem::transmute(hashalgid)).ok() } pub unsafe fn SetHStoreMy(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHStoreMy)(windows_core::Interface::as_raw(self), core::mem::transmute(hstore)).ok() + (windows_core::Interface::vtable(self).SetHStoreMy)(windows_core::Interface::as_raw(self), hstore).ok() } pub unsafe fn SetHStoreCA(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHStoreCA)(windows_core::Interface::as_raw(self), core::mem::transmute(hstore)).ok() + (windows_core::Interface::vtable(self).SetHStoreCA)(windows_core::Interface::as_raw(self), hstore).ok() } pub unsafe fn SetHStoreROOT(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHStoreROOT)(windows_core::Interface::as_raw(self), core::mem::transmute(hstore)).ok() + (windows_core::Interface::vtable(self).SetHStoreROOT)(windows_core::Interface::as_raw(self), hstore).ok() } pub unsafe fn SetHStoreRequest(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHStoreRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(hstore)).ok() + (windows_core::Interface::vtable(self).SetHStoreRequest)(windows_core::Interface::as_raw(self), hstore).ok() } pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into()).ok() @@ -10500,38 +10500,38 @@ impl IEnroll4 { (windows_core::Interface::vtable(self).ThumbPrintWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(thumbprintblob)).ok() } pub unsafe fn SetPrivateKeyArchiveCertificate(&self, pprivatekeyarchivecert: *const super::CERT_CONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivateKeyArchiveCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(pprivatekeyarchivecert)).ok() + (windows_core::Interface::vtable(self).SetPrivateKeyArchiveCertificate)(windows_core::Interface::as_raw(self), pprivatekeyarchivecert).ok() } pub unsafe fn GetPrivateKeyArchiveCertificate(&self) -> *mut super::CERT_CONTEXT { (windows_core::Interface::vtable(self).GetPrivateKeyArchiveCertificate)(windows_core::Interface::as_raw(self)) } pub unsafe fn binaryBlobToString(&self, flags: i32, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, ppwszstring: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).binaryBlobToString)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(pblobbinary), core::mem::transmute(ppwszstring)).ok() + (windows_core::Interface::vtable(self).binaryBlobToString)(windows_core::Interface::as_raw(self), flags, core::mem::transmute(pblobbinary), core::mem::transmute(ppwszstring)).ok() } pub unsafe fn stringToBinaryBlob(&self, flags: i32, pwszstring: P1, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, pdwskip: *mut i32, pdwflags: *mut i32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).stringToBinaryBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pwszstring.param().abi(), core::mem::transmute(pblobbinary), core::mem::transmute(pdwskip), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).stringToBinaryBlob)(windows_core::Interface::as_raw(self), flags, pwszstring.param().abi(), core::mem::transmute(pblobbinary), core::mem::transmute(pdwskip), core::mem::transmute(pdwflags)).ok() } pub unsafe fn addExtensionToRequestWStr(&self, flags: i32, pwszname: P1, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addExtensionToRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pwszname.param().abi(), core::mem::transmute(pblobvalue)).ok() + (windows_core::Interface::vtable(self).addExtensionToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.param().abi(), core::mem::transmute(pblobvalue)).ok() } pub unsafe fn addAttributeToRequestWStr(&self, flags: i32, pwszname: P1, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addAttributeToRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pwszname.param().abi(), core::mem::transmute(pblobvalue)).ok() + (windows_core::Interface::vtable(self).addAttributeToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.param().abi(), core::mem::transmute(pblobvalue)).ok() } pub unsafe fn addNameValuePairToRequestWStr(&self, flags: i32, pwszname: P1, pwszvalue: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).addNameValuePairToRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pwszname.param().abi(), pwszvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).addNameValuePairToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.param().abi(), pwszvalue.param().abi()).ok() } pub unsafe fn resetExtensions(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).resetExtensions)(windows_core::Interface::as_raw(self)).ok() @@ -10544,7 +10544,7 @@ impl IEnroll4 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).createRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pwszdnname.param().abi(), pwszusage.param().abi(), core::mem::transmute(pblobrequest)).ok() + (windows_core::Interface::vtable(self).createRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszdnname.param().abi(), pwszusage.param().abi(), core::mem::transmute(pblobrequest)).ok() } pub unsafe fn createFileRequestWStr(&self, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: P1, pwszusage: P2, pwszrequestfilename: P3) -> windows_core::Result<()> where @@ -10552,7 +10552,7 @@ impl IEnroll4 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).createFileRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pwszdnname.param().abi(), pwszusage.param().abi(), pwszrequestfilename.param().abi()).ok() + (windows_core::Interface::vtable(self).createFileRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszdnname.param().abi(), pwszusage.param().abi(), pwszrequestfilename.param().abi()).ok() } pub unsafe fn acceptResponseBlob(&self, pblobresponse: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).acceptResponseBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pblobresponse)).ok() @@ -10591,16 +10591,16 @@ impl IEnroll4 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).setPendingRequestInfoWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lrequestid), pwszcadns.param().abi(), pwszcaname.param().abi(), pwszfriendlyname.param().abi()).ok() + (windows_core::Interface::vtable(self).setPendingRequestInfoWStr)(windows_core::Interface::as_raw(self), lrequestid, pwszcadns.param().abi(), pwszcaname.param().abi(), pwszfriendlyname.param().abi()).ok() } pub unsafe fn enumPendingRequestWStr(&self, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY, ppproperty: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).enumPendingRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), core::mem::transmute(ldesiredproperty), core::mem::transmute(ppproperty)).ok() + (windows_core::Interface::vtable(self).enumPendingRequestWStr)(windows_core::Interface::as_raw(self), lindex, ldesiredproperty, core::mem::transmute(ppproperty)).ok() } pub unsafe fn removePendingRequestWStr(&self, thumbprintblob: super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).removePendingRequestWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(thumbprintblob)).ok() } pub unsafe fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetKeyLenEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lsizespec), core::mem::transmute(lkeyspec), core::mem::transmute(pdwkeysize)).ok() + (windows_core::Interface::vtable(self).GetKeyLenEx)(windows_core::Interface::as_raw(self), lsizespec, lkeyspec, core::mem::transmute(pdwkeysize)).ok() } pub unsafe fn InstallPKCS7BlobEx(&self, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB, plcertinstalled: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InstallPKCS7BlobEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pblobpkcs7), core::mem::transmute(plcertinstalled)).ok() @@ -10609,7 +10609,7 @@ impl IEnroll4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCertTypeToRequestWStrEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ltype), pwszoidorname.param().abi(), core::mem::transmute(lmajorversion), fminorversion.into(), core::mem::transmute(lminorversion)).ok() + (windows_core::Interface::vtable(self).AddCertTypeToRequestWStrEx)(windows_core::Interface::as_raw(self), ltype, pwszoidorname.param().abi(), lmajorversion, fminorversion.into(), lminorversion).ok() } pub unsafe fn getProviderTypeWStr(&self, pwszprovname: P0, plprovtype: *mut i32) -> windows_core::Result<()> where @@ -10618,13 +10618,13 @@ impl IEnroll4 { (windows_core::Interface::vtable(self).getProviderTypeWStr)(windows_core::Interface::as_raw(self), pwszprovname.param().abi(), core::mem::transmute(plprovtype)).ok() } pub unsafe fn addBlobPropertyToCertificateWStr(&self, lpropertyid: i32, lreserved: i32, pblobproperty: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).addBlobPropertyToCertificateWStr)(windows_core::Interface::as_raw(self), core::mem::transmute(lpropertyid), core::mem::transmute(lreserved), core::mem::transmute(pblobproperty)).ok() + (windows_core::Interface::vtable(self).addBlobPropertyToCertificateWStr)(windows_core::Interface::as_raw(self), lpropertyid, lreserved, core::mem::transmute(pblobproperty)).ok() } pub unsafe fn SetSignerCertificate(&self, psignercert: *const super::CERT_CONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(psignercert)).ok() + (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), psignercert).ok() } pub unsafe fn SetClientId(&self, lclientid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), core::mem::transmute(lclientid)).ok() + (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), lclientid).ok() } pub unsafe fn ClientId(&self, plclientid: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClientId)(windows_core::Interface::as_raw(self), core::mem::transmute(plclientid)).ok() @@ -10900,7 +10900,7 @@ impl IEnumCERTVIEWATTRIBUTE { (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pstrout)).ok() } pub unsafe fn Skip(&self, celt: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -11012,10 +11012,10 @@ impl IEnumCERTVIEWCOLUMN { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), flags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn Skip(&self, celt: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -11149,10 +11149,10 @@ impl IEnumCERTVIEWEXTENSION { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, r#type: CERT_PROPERTY_TYPE, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(flags), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), r#type, flags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn Skip(&self, celt: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -11263,14 +11263,14 @@ impl IEnumCERTVIEWROW { } pub unsafe fn EnumCertViewAttribute(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCertViewAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCertViewAttribute)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumCertViewExtension(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCertViewExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCertViewExtension)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Skip(&self, celt: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -11428,7 +11428,7 @@ impl INDESPolicy { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pwszchallenge.param().abi(), pwsztransactionid.param().abi(), core::mem::transmute(disposition), core::mem::transmute(lasthresult), core::mem::transmute(pctbissuedcertencoded)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pwszchallenge.param().abi(), pwsztransactionid.param().abi(), disposition, lasthresult, core::mem::transmute(pctbissuedcertencoded)).ok() } } #[repr(C)] @@ -11517,10 +11517,10 @@ impl IOCSPAdmin { (windows_core::Interface::vtable(self).OCSPCAConfigurationCollection)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetConfiguration(&self, bstrservername: &windows_core::BSTR, bforce: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrservername), core::mem::transmute(bforce)).ok() + (windows_core::Interface::vtable(self).GetConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrservername), bforce).ok() } pub unsafe fn SetConfiguration(&self, bstrservername: &windows_core::BSTR, bforce: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrservername), core::mem::transmute(bforce)).ok() + (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrservername), bforce).ok() } pub unsafe fn GetMyRoles(&self, bstrservername: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11714,7 +11714,7 @@ impl IOCSPCAConfiguration { (windows_core::Interface::vtable(self).SigningFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSigningFlags(&self, newval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSigningFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetSigningFlags)(windows_core::Interface::as_raw(self), newval).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SigningCertificate(&self) -> windows_core::Result { @@ -11730,7 +11730,7 @@ impl IOCSPCAConfiguration { (windows_core::Interface::vtable(self).ReminderDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReminderDuration(&self, newval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReminderDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetReminderDuration)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ErrorCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12108,7 +12108,7 @@ impl IOCSPCAConfigurationCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12354,7 +12354,7 @@ impl IOCSPPropertyCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12525,13 +12525,13 @@ windows_core::imp::interface_hierarchy!(IObjectId, windows_core::IUnknown, super #[cfg(feature = "Win32_System_Com")] impl IObjectId { pub unsafe fn InitializeFromName(&self, name: CERTENROLL_OBJECTID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromName)(windows_core::Interface::as_raw(self), core::mem::transmute(name)).ok() + (windows_core::Interface::vtable(self).InitializeFromName)(windows_core::Interface::as_raw(self), name).ok() } pub unsafe fn InitializeFromValue(&self, strvalue: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeFromValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn InitializeFromAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromAlgorithmName)(windows_core::Interface::as_raw(self), core::mem::transmute(groupid), core::mem::transmute(keyflags), core::mem::transmute(algflags), core::mem::transmute_copy(stralgorithmname)).ok() + (windows_core::Interface::vtable(self).InitializeFromAlgorithmName)(windows_core::Interface::as_raw(self), groupid, keyflags, algflags, core::mem::transmute_copy(stralgorithmname)).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12550,7 +12550,7 @@ impl IObjectId { } pub unsafe fn GetAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlgorithmName)(windows_core::Interface::as_raw(self), core::mem::transmute(groupid), core::mem::transmute(keyflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAlgorithmName)(windows_core::Interface::as_raw(self), groupid, keyflags, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -12669,7 +12669,7 @@ windows_core::imp::interface_hierarchy!(IObjectIds, windows_core::IUnknown, supe impl IObjectIds { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12686,7 +12686,7 @@ impl IObjectIds { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -12800,7 +12800,7 @@ windows_core::imp::interface_hierarchy!(IPolicyQualifier, windows_core::IUnknown #[cfg(feature = "Win32_System_Com")] impl IPolicyQualifier { pub unsafe fn InitializeEncode(&self, strqualifier: &windows_core::BSTR, r#type: PolicyQualifierType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strqualifier), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strqualifier), r#type).ok() } pub unsafe fn ObjectId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12816,7 +12816,7 @@ impl IPolicyQualifier { } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -12914,7 +12914,7 @@ windows_core::imp::interface_hierarchy!(IPolicyQualifiers, windows_core::IUnknow impl IPolicyQualifiers { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12931,7 +12931,7 @@ impl IPolicyQualifiers { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -13040,11 +13040,11 @@ windows_core::imp::interface_hierarchy!(ISignerCertificate, windows_core::IUnkno #[cfg(feature = "Win32_System_Com")] impl ISignerCertificate { pub unsafe fn Initialize(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext), core::mem::transmute(verifytype), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), machinecontext, verifytype, encoding, core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn PrivateKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13055,14 +13055,14 @@ impl ISignerCertificate { (windows_core::Interface::vtable(self).Silent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSilent(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ParentWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParentWindow(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn UIContextMessage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13228,7 +13228,7 @@ windows_core::imp::interface_hierarchy!(ISignerCertificates, windows_core::IUnkn impl ISignerCertificates { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13245,7 +13245,7 @@ impl ISignerCertificates { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -13367,7 +13367,7 @@ windows_core::imp::interface_hierarchy!(ISmimeCapabilities, windows_core::IUnkno impl ISmimeCapabilities { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13384,7 +13384,7 @@ impl ISmimeCapabilities { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -13396,7 +13396,7 @@ impl ISmimeCapabilities { (windows_core::Interface::vtable(self).AddFromCsp)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AddAvailableSmimeCapabilities(&self, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAvailableSmimeCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(machinecontext)).ok() + (windows_core::Interface::vtable(self).AddAvailableSmimeCapabilities)(windows_core::Interface::as_raw(self), machinecontext).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13511,7 +13511,7 @@ impl ISmimeCapability { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), core::mem::transmute(bitcount)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), bitcount).ok() } pub unsafe fn ObjectId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13590,10 +13590,10 @@ windows_core::imp::interface_hierarchy!(IX500DistinguishedName, windows_core::IU #[cfg(feature = "Win32_System_Com")] impl IX500DistinguishedName { pub unsafe fn Decode(&self, strencodedname: &windows_core::BSTR, encoding: EncodingType, nameflags: X500NameFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodedname), core::mem::transmute(encoding), core::mem::transmute(nameflags)).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodedname), encoding, nameflags).ok() } pub unsafe fn Encode(&self, strname: &windows_core::BSTR, nameflags: X500NameFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(nameflags)).ok() + (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), nameflags).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13601,7 +13601,7 @@ impl IX500DistinguishedName { } pub unsafe fn get_EncodedName(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EncodedName)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EncodedName)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -13682,7 +13682,7 @@ impl IX509Attribute { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn ObjectId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13690,7 +13690,7 @@ impl IX509Attribute { } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -13765,14 +13765,14 @@ impl IX509AttributeArchiveKey { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pkey.param().abi(), core::mem::transmute(encoding), core::mem::transmute_copy(strcaxcert), palgorithm.param().abi(), core::mem::transmute(encryptionstrength)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pkey.param().abi(), encoding, core::mem::transmute_copy(strcaxcert), palgorithm.param().abi(), encryptionstrength).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn get_EncryptedKeyBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EncryptedKeyBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EncryptedKeyBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13871,14 +13871,14 @@ windows_core::imp::interface_hierarchy!(IX509AttributeArchiveKeyHash, windows_co #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKeyHash { pub unsafe fn InitializeEncodeFromEncryptedKeyBlob(&self, encoding: EncodingType, strencryptedkeyblob: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncodeFromEncryptedKeyBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencryptedkeyblob)).ok() + (windows_core::Interface::vtable(self).InitializeEncodeFromEncryptedKeyBlob)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencryptedkeyblob)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn get_EncryptedKeyHashBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EncryptedKeyHashBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EncryptedKeyHashBlob)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -13943,10 +13943,10 @@ windows_core::imp::interface_hierarchy!(IX509AttributeClientId, windows_core::IU #[cfg(feature = "Win32_System_Com")] impl IX509AttributeClientId { pub unsafe fn InitializeEncode(&self, clientid: RequestClientInfoClientId, strmachinednsname: &windows_core::BSTR, strusersamname: &windows_core::BSTR, strprocessname: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(clientid), core::mem::transmute_copy(strmachinednsname), core::mem::transmute_copy(strusersamname), core::mem::transmute_copy(strprocessname)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), clientid, core::mem::transmute_copy(strmachinednsname), core::mem::transmute_copy(strusersamname), core::mem::transmute_copy(strprocessname)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14066,10 +14066,10 @@ windows_core::imp::interface_hierarchy!(IX509AttributeCspProvider, windows_core: #[cfg(feature = "Win32_System_Com")] impl IX509AttributeCspProvider { pub unsafe fn InitializeEncode(&self, keyspec: X509KeySpec, strprovidername: &windows_core::BSTR, encoding: EncodingType, strsignature: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(keyspec), core::mem::transmute_copy(strprovidername), core::mem::transmute(encoding), core::mem::transmute_copy(strsignature)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), keyspec, core::mem::transmute_copy(strprovidername), encoding, core::mem::transmute_copy(strsignature)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn KeySpec(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14081,7 +14081,7 @@ impl IX509AttributeCspProvider { } pub unsafe fn get_Signature(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Signature)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Signature)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -14178,7 +14178,7 @@ impl IX509AttributeExtensions { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pextensions.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn X509Extensions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14250,7 +14250,7 @@ impl IX509AttributeOSVersion { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strosversion)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn OSVersion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14319,14 +14319,14 @@ windows_core::imp::interface_hierarchy!(IX509AttributeRenewalCertificate, window #[cfg(feature = "Win32_System_Com")] impl IX509AttributeRenewalCertificate { pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strcert: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strcert)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strcert)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RenewalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -14392,7 +14392,7 @@ windows_core::imp::interface_hierarchy!(IX509Attributes, windows_core::IUnknown, impl IX509Attributes { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14409,7 +14409,7 @@ impl IX509Attributes { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -14510,7 +14510,7 @@ windows_core::imp::interface_hierarchy!(IX509CertificateRequest, windows_core::I #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequest { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn Encode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self)).ok() @@ -14520,7 +14520,7 @@ impl IX509CertificateRequest { } pub unsafe fn GetInnerRequest(&self, level: InnerRequestLevel) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInnerRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(level), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInnerRequest)(windows_core::Interface::as_raw(self), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14535,14 +14535,14 @@ impl IX509CertificateRequest { (windows_core::Interface::vtable(self).Silent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSilent(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ParentWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParentWindow(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn UIContextMessage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14556,21 +14556,21 @@ impl IX509CertificateRequest { (windows_core::Interface::vtable(self).SuppressDefaults)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSuppressDefaults(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSuppressDefaults)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSuppressDefaults)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RenewalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_RenewalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ClientId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClientId(&self, value: RequestClientInfoClientId) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn CspInformations(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14597,11 +14597,11 @@ impl IX509CertificateRequest { (windows_core::Interface::vtable(self).AlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -14912,21 +14912,21 @@ impl IX509CertificateRequestCertificate { (windows_core::Interface::vtable(self).NotBefore)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotBefore(&self, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotBefore)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNotBefore)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn NotAfter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NotAfter)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotAfter(&self, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotAfter)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNotAfter)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SerialNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_SerialNumber)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_SerialNumber(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_SerialNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_SerialNumber)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn SignerCertificate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15085,7 +15085,7 @@ impl IX509CertificateRequestCertificate2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn InitializeFromPrivateKeyTemplate(&self, context: X509CertificateEnrollmentContext, pprivatekey: P1, ppolicyserver: P2, ptemplate: P3) -> windows_core::Result<()> where @@ -15093,7 +15093,7 @@ impl IX509CertificateRequestCertificate2 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), pprivatekey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn PolicyServer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15217,14 +15217,14 @@ impl IX509CertificateRequestCmc { (windows_core::Interface::vtable(self).TransactionId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTransactionId(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransactionId)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTransactionId)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_SenderNonce(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SenderNonce)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_SenderNonce)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_SenderNonce(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_SenderNonce)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_SenderNonce)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn SignatureInformation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15235,14 +15235,14 @@ impl IX509CertificateRequestCmc { (windows_core::Interface::vtable(self).ArchivePrivateKey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetArchivePrivateKey(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetArchivePrivateKey)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetArchivePrivateKey)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15259,11 +15259,11 @@ impl IX509CertificateRequestCmc { (windows_core::Interface::vtable(self).EncryptionStrength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEncryptionStrength(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncryptionStrength)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEncryptionStrength)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EncryptedKeyHash)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EncryptedKeyHash)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SignerCertificates(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15566,7 +15566,7 @@ impl IX509CertificateRequestCmc2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn InitializeFromInnerRequestTemplate(&self, pinnerrequest: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where @@ -15585,13 +15585,13 @@ impl IX509CertificateRequestCmc2 { (windows_core::Interface::vtable(self).Template)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(allowedsignaturetypes)).ok() + (windows_core::Interface::vtable(self).CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() } pub unsafe fn CheckCertificateSignature(&self, psignercertificate: P0, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), psignercertificate.param().abi(), core::mem::transmute(validatecertificatechain)).ok() + (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), psignercertificate.param().abi(), validatecertificatechain).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -15683,28 +15683,28 @@ windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10, windows_c #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10 { pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(strtemplatename)).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(strtemplatename)).ok() } pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P1, strtemplatename: &windows_core::BSTR) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), core::mem::transmute(context), pprivatekey.param().abi(), core::mem::transmute_copy(strtemplatename)).ok() + (windows_core::Interface::vtable(self).InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), core::mem::transmute_copy(strtemplatename)).ok() } pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P1, strtemplatename: &windows_core::BSTR) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPublicKey)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppublickey.param().abi(), core::mem::transmute_copy(strtemplatename)).ok() + (windows_core::Interface::vtable(self).InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), core::mem::transmute_copy(strtemplatename)).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &windows_core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(strcertificate), core::mem::transmute(encoding), core::mem::transmute(inheritoptions)).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(allowedsignaturetypes)).ok() + (windows_core::Interface::vtable(self).CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() } pub unsafe fn IsSmartCard(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15732,7 +15732,7 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_OldCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_OldCertificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Subject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15753,7 +15753,7 @@ impl IX509CertificateRequestPkcs10 { (windows_core::Interface::vtable(self).SmimeCapabilities)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSmimeCapabilities(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSmimeCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SignatureInformation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15784,15 +15784,15 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawDataToBeSigned)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawDataToBeSigned)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_Signature(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Signature)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Signature)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCspStatuses(&self, keyspec: X509KeySpec) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatuses)(windows_core::Interface::as_raw(self), core::mem::transmute(keyspec), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCspStatuses)(windows_core::Interface::as_raw(self), keyspec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -16144,7 +16144,7 @@ impl IX509CertificateRequestPkcs10V2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn InitializeFromPrivateKeyTemplate(&self, context: X509CertificateEnrollmentContext, pprivatekey: P1, ppolicyserver: P2, ptemplate: P3) -> windows_core::Result<()> where @@ -16152,7 +16152,7 @@ impl IX509CertificateRequestPkcs10V2 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), pprivatekey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn InitializeFromPublicKeyTemplate(&self, context: X509CertificateEnrollmentContext, ppublickey: P1, ppolicyserver: P2, ptemplate: P3) -> windows_core::Result<()> where @@ -16160,7 +16160,7 @@ impl IX509CertificateRequestPkcs10V2 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppublickey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn PolicyServer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16257,14 +16257,14 @@ impl IX509CertificateRequestPkcs10V3 { (windows_core::Interface::vtable(self).AttestPrivateKey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttestPrivateKey(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttestPrivateKey)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAttestPrivateKey)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16281,7 +16281,7 @@ impl IX509CertificateRequestPkcs10V3 { (windows_core::Interface::vtable(self).EncryptionStrength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEncryptionStrength(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncryptionStrength)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEncryptionStrength)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ChallengePassword(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16447,14 +16447,14 @@ impl IX509CertificateRequestPkcs10V4 { (windows_core::Interface::vtable(self).ClaimType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClaimType(&self, value: KeyAttestationClaimType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClaimType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetClaimType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn AttestPrivateKeyPreferred(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AttestPrivateKeyPreferred)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttestPrivateKeyPreferred(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttestPrivateKeyPreferred)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAttestPrivateKeyPreferred)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -16532,10 +16532,10 @@ windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs7, windows_co #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs7 { pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(strtemplatename)).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(strtemplatename)).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: super::super::super::Foundation::VARIANT_BOOL, strcertificate: &windows_core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(renewalrequest), core::mem::transmute_copy(strcertificate), core::mem::transmute(encoding), core::mem::transmute(inheritoptions)).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest, core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } pub unsafe fn InitializeFromInnerRequest(&self, pinnerrequest: P0) -> windows_core::Result<()> where @@ -16544,7 +16544,7 @@ impl IX509CertificateRequestPkcs7 { (windows_core::Interface::vtable(self).InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn RequesterName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16671,7 +16671,7 @@ impl IX509CertificateRequestPkcs7V2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn PolicyServer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16682,7 +16682,7 @@ impl IX509CertificateRequestPkcs7V2 { (windows_core::Interface::vtable(self).Template)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CheckCertificateSignature(&self, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), core::mem::transmute(validatecertificatechain)).ok() + (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), validatecertificatechain).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -16763,7 +16763,7 @@ impl IX509CertificateRevocationList { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn Encode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self)).ok() @@ -16795,14 +16795,14 @@ impl IX509CertificateRevocationList { (windows_core::Interface::vtable(self).ThisUpdate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetThisUpdate(&self, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThisUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetThisUpdate)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn NextUpdate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NextUpdate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNextUpdate(&self, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNextUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNextUpdate)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn X509CRLEntries(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16828,17 +16828,17 @@ impl IX509CertificateRevocationList { } pub unsafe fn get_CRLNumber(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CRLNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_CRLNumber)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_CRLNumber(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_CRLNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_CRLNumber)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn CAVersion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CAVersion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCAVersion(&self, pvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCAVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetCAVersion)(windows_core::Interface::as_raw(self), pvalue).ok() } pub unsafe fn BaseCRL(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16863,7 +16863,7 @@ impl IX509CertificateRevocationList { (windows_core::Interface::vtable(self).AlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SignatureInformation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16871,15 +16871,15 @@ impl IX509CertificateRevocationList { } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawDataToBeSigned)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawDataToBeSigned)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_Signature(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Signature)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Signature)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -17237,7 +17237,7 @@ windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntries, w impl IX509CertificateRevocationListEntries { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17254,14 +17254,14 @@ impl IX509CertificateRevocationListEntries { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn get_IndexBySerialNumber(&self, encoding: EncodingType, serialnumber: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IndexBySerialNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(serialnumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IndexBySerialNumber)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(serialnumber), &mut result__).map(|| result__) } pub unsafe fn AddRange(&self, pvalue: P0) -> windows_core::Result<()> where @@ -17385,11 +17385,11 @@ windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntry, win #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationListEntry { pub unsafe fn Initialize(&self, encoding: EncodingType, serialnumber: &windows_core::BSTR, revocationdate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(serialnumber), core::mem::transmute(revocationdate)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(serialnumber), revocationdate).ok() } pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SerialNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_SerialNumber)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RevocationDate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17400,7 +17400,7 @@ impl IX509CertificateRevocationListEntry { (windows_core::Interface::vtable(self).RevocationReason)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRevocationReason(&self, value: CRLRevocationReason) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRevocationReason)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetRevocationReason)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn X509Extensions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17527,7 +17527,7 @@ impl IX509CertificateTemplate { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Property(&self, property: EnrollmentTemplateProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -17584,16 +17584,16 @@ impl IX509CertificateTemplateWritable { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn Commit(&self, commitflags: CommitTemplateFlags, strservercontext: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(commitflags), core::mem::transmute_copy(strservercontext)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), commitflags, core::mem::transmute_copy(strservercontext)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Property(&self, property: EnrollmentTemplateProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn put_Property(&self, property: EnrollmentTemplateProperty, value: &super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), core::mem::transmute(property), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), property, core::mem::transmute_copy(value)).ok() } pub unsafe fn Template(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17689,7 +17689,7 @@ windows_core::imp::interface_hierarchy!(IX509CertificateTemplates, windows_core: impl IX509CertificateTemplates { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17706,7 +17706,7 @@ impl IX509CertificateTemplates { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -17859,18 +17859,18 @@ impl IX509EndorsementKey { (windows_core::Interface::vtable(self).Opened)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddCertificate(&self, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).AddCertificate)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn RemoveCertificate(&self, encoding: EncodingType, strcertificate: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strcertificate)).ok() + (windows_core::Interface::vtable(self).RemoveCertificate)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn GetCertificateByIndex(&self, manufactureronly: super::super::super::Foundation::VARIANT_BOOL, dwindex: i32, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(manufactureronly), core::mem::transmute(dwindex), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCertificateByIndex)(windows_core::Interface::as_raw(self), manufactureronly, dwindex, encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCertificateCount(&self, manufactureronly: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateCount)(windows_core::Interface::as_raw(self), core::mem::transmute(manufactureronly), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCertificateCount)(windows_core::Interface::as_raw(self), manufactureronly, &mut result__).map(|| result__) } pub unsafe fn ExportPublicKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18031,10 +18031,10 @@ windows_core::imp::interface_hierarchy!(IX509Enrollment, windows_core::IUnknown, #[cfg(feature = "Win32_System_Com")] impl IX509Enrollment { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(strtemplatename)).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(strtemplatename)).ok() } pub unsafe fn InitializeFromRequest(&self, prequest: P0) -> windows_core::Result<()> where @@ -18044,17 +18044,17 @@ impl IX509Enrollment { } pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreateRequest)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Enroll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &windows_core::BSTR, encoding: EncodingType, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(restrictions), core::mem::transmute_copy(strresponse), core::mem::transmute(encoding), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).InstallResponse)(windows_core::Interface::as_raw(self), restrictions, core::mem::transmute_copy(strresponse), encoding, core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn CreatePFX(&self, strpassword: &windows_core::BSTR, exportoptions: PFXExportOptions, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePFX)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpassword), core::mem::transmute(exportoptions), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreatePFX)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpassword), exportoptions, encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Request(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18065,14 +18065,14 @@ impl IX509Enrollment { (windows_core::Interface::vtable(self).Silent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSilent(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ParentWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParentWindow(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn NameValuePairs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18088,11 +18088,11 @@ impl IX509Enrollment { } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_Response(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Response)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Response)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CertificateFriendlyName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18401,10 +18401,10 @@ impl IX509Enrollment2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), core::mem::transmute(context), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } pub unsafe fn InstallResponse2(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &windows_core::BSTR, encoding: EncodingType, strpassword: &windows_core::BSTR, strenrollmentpolicyserverurl: &windows_core::BSTR, strenrollmentpolicyserverid: &windows_core::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallResponse2)(windows_core::Interface::as_raw(self), core::mem::transmute(restrictions), core::mem::transmute_copy(strresponse), core::mem::transmute(encoding), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strenrollmentpolicyserverurl), core::mem::transmute_copy(strenrollmentpolicyserverid), core::mem::transmute(enrollmentpolicyserverflags), core::mem::transmute(authflags)).ok() + (windows_core::Interface::vtable(self).InstallResponse2)(windows_core::Interface::as_raw(self), restrictions, core::mem::transmute_copy(strresponse), encoding, core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strenrollmentpolicyserverurl), core::mem::transmute_copy(strenrollmentpolicyserverid), enrollmentpolicyserverflags, authflags).ok() } pub unsafe fn PolicyServer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18507,17 +18507,17 @@ windows_core::imp::interface_hierarchy!(IX509EnrollmentHelper, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentHelper { pub unsafe fn AddPolicyServer(&self, strenrollmentpolicyserveruri: &windows_core::BSTR, strenrollmentpolicyid: &windows_core::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPolicyServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strenrollmentpolicyserveruri), core::mem::transmute_copy(strenrollmentpolicyid), core::mem::transmute(enrollmentpolicyserverflags), core::mem::transmute(authflags), core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).AddPolicyServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strenrollmentpolicyserveruri), core::mem::transmute_copy(strenrollmentpolicyid), enrollmentpolicyserverflags, authflags, core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn AddEnrollmentServer(&self, strenrollmentserveruri: &windows_core::BSTR, authflags: X509EnrollmentAuthFlags, strcredential: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEnrollmentServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strenrollmentserveruri), core::mem::transmute(authflags), core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).AddEnrollmentServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strenrollmentserveruri), authflags, core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn Enroll(&self, strenrollmentpolicyserveruri: &windows_core::BSTR, strtemplatename: &windows_core::BSTR, encoding: EncodingType, enrollflags: WebEnrollmentFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strenrollmentpolicyserveruri), core::mem::transmute_copy(strtemplatename), core::mem::transmute(encoding), core::mem::transmute(enrollflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strenrollmentpolicyserveruri), core::mem::transmute_copy(strtemplatename), encoding, enrollflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), context).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -18589,10 +18589,10 @@ windows_core::imp::interface_hierarchy!(IX509EnrollmentPolicyServer, windows_cor #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentPolicyServer { pub unsafe fn Initialize(&self, bstrpolicyserverurl: &windows_core::BSTR, bstrpolicyserverid: &windows_core::BSTR, authflags: X509EnrollmentAuthFlags, fisuntrusted: super::super::super::Foundation::VARIANT_BOOL, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpolicyserverurl), core::mem::transmute_copy(bstrpolicyserverid), core::mem::transmute(authflags), core::mem::transmute(fisuntrusted), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpolicyserverurl), core::mem::transmute_copy(bstrpolicyserverid), authflags, fisuntrusted, context).ok() } pub unsafe fn LoadPolicy(&self, option: X509EnrollmentPolicyLoadOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).LoadPolicy)(windows_core::Interface::as_raw(self), option).ok() } pub unsafe fn GetTemplates(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18661,7 +18661,7 @@ impl IX509EnrollmentPolicyServer { (windows_core::Interface::vtable(self).GetAuthFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCredential(&self, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: &windows_core::BSTR, strpassword: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(flag), core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() + (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), hwndparent, flag, core::mem::transmute_copy(strcredential), core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn QueryChanges(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18674,14 +18674,14 @@ impl IX509EnrollmentPolicyServer { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Export(&self, exportflags: X509EnrollmentPolicyExportFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), core::mem::transmute(exportflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), exportflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Cost(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Cost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCost(&self, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCost)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCost)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19015,28 +19015,28 @@ impl IX509EnrollmentStatus { (windows_core::Interface::vtable(self).Selected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelected(&self, value: EnrollmentSelectionStatus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Display(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Display)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplay(&self, value: EnrollmentDisplayStatus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStatus(&self, value: EnrollmentEnrollStatus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Error(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetError(&self, value: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetError)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetError)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ErrorText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19250,7 +19250,7 @@ impl IX509Extension { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn ObjectId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19258,14 +19258,14 @@ impl IX509Extension { } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_RawData)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Critical(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Critical)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCritical(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCritical)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCritical)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19362,7 +19362,7 @@ impl IX509ExtensionAlternativeNames { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn AlternativeNames(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19431,14 +19431,14 @@ windows_core::imp::interface_hierarchy!(IX509ExtensionAuthorityKeyIdentifier, wi #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAuthorityKeyIdentifier { pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strkeyidentifier)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strkeyidentifier)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn get_AuthorityKeyIdentifier(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AuthorityKeyIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_AuthorityKeyIdentifier)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -19503,10 +19503,10 @@ windows_core::imp::interface_hierarchy!(IX509ExtensionBasicConstraints, windows_ #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionBasicConstraints { pub unsafe fn InitializeEncode(&self, isca: super::super::super::Foundation::VARIANT_BOOL, pathlenconstraint: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(isca), core::mem::transmute(pathlenconstraint)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), isca, pathlenconstraint).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn IsCA(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19598,7 +19598,7 @@ impl IX509ExtensionCertificatePolicies { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn Policies(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19673,7 +19673,7 @@ impl IX509ExtensionEnhancedKeyUsage { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn EnhancedKeyUsage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19742,10 +19742,10 @@ windows_core::imp::interface_hierarchy!(IX509ExtensionKeyUsage, windows_core::IU #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionKeyUsage { pub unsafe fn InitializeEncode(&self, usageflags: X509KeyUsageFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(usageflags)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), usageflags).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn KeyUsage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19820,7 +19820,7 @@ impl IX509ExtensionMSApplicationPolicies { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn Policies(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19895,7 +19895,7 @@ impl IX509ExtensionSmimeCapabilities { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn SmimeCapabilities(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19964,14 +19964,14 @@ windows_core::imp::interface_hierarchy!(IX509ExtensionSubjectKeyIdentifier, wind #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSubjectKeyIdentifier { pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strkeyidentifier)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strkeyidentifier)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn get_SubjectKeyIdentifier(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SubjectKeyIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_SubjectKeyIdentifier)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -20039,10 +20039,10 @@ impl IX509ExtensionTemplate { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), ptemplateoid.param().abi(), core::mem::transmute(majorversion), core::mem::transmute(minorversion)).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), ptemplateoid.param().abi(), majorversion, minorversion).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn TemplateOid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20148,7 +20148,7 @@ impl IX509ExtensionTemplateName { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strtemplatename)).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(strencodeddata)).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn TemplateName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20218,7 +20218,7 @@ windows_core::imp::interface_hierarchy!(IX509Extensions, windows_core::IUnknown, impl IX509Extensions { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20235,7 +20235,7 @@ impl IX509Extensions { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -20498,7 +20498,7 @@ windows_core::imp::interface_hierarchy!(IX509NameValuePairs, windows_core::IUnkn impl IX509NameValuePairs { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20515,7 +20515,7 @@ impl IX509NameValuePairs { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -20617,7 +20617,7 @@ windows_core::imp::interface_hierarchy!(IX509PolicyServerListManager, windows_co impl IX509PolicyServerListManager { pub unsafe fn get_ItemByIndex(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20634,13 +20634,13 @@ impl IX509PolicyServerListManager { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext, flags: PolicyServerUrlFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), context, flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -20745,7 +20745,7 @@ windows_core::imp::interface_hierarchy!(IX509PolicyServerUrl, windows_core::IUnk #[cfg(feature = "Win32_System_Com")] impl IX509PolicyServerUrl { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn Url(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20759,41 +20759,41 @@ impl IX509PolicyServerUrl { (windows_core::Interface::vtable(self).Default)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefault(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Flags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Flags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, flags: PolicyServerUrlFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn AuthFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AuthFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthFlags(&self, flags: X509EnrollmentAuthFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetAuthFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn Cost(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Cost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCost(&self, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCost)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCost)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetStringProperty(&self, propertyid: PolicyServerUrlPropertyID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStringProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetStringProperty(&self, propertyid: PolicyServerUrlPropertyID, pvalue: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStringProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute_copy(pvalue)).ok() + (windows_core::Interface::vtable(self).SetStringProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute_copy(pvalue)).ok() } pub unsafe fn UpdateRegistry(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateRegistry)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).UpdateRegistry)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn RemoveFromRegistry(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveFromRegistry)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).RemoveFromRegistry)(windows_core::Interface::as_raw(self), context).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -20984,14 +20984,14 @@ impl IX509PrivateKey { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Verify(&self, verifytype: X509PrivateKeyVerify) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Verify)(windows_core::Interface::as_raw(self), core::mem::transmute(verifytype)).ok() + (windows_core::Interface::vtable(self).Verify)(windows_core::Interface::as_raw(self), verifytype).ok() } pub unsafe fn Import(&self, strexporttype: &windows_core::BSTR, strencodedkey: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strexporttype), core::mem::transmute_copy(strencodedkey), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strexporttype), core::mem::transmute_copy(strencodedkey), encoding).ok() } pub unsafe fn Export(&self, strexporttype: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strexporttype), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strexporttype), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ExportPublicKey(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21050,14 +21050,14 @@ impl IX509PrivateKey { (windows_core::Interface::vtable(self).ProviderType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProviderType(&self, value: X509ProviderType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProviderType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn LegacyCsp(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LegacyCsp)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLegacyCsp(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLegacyCsp)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetLegacyCsp)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Algorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21074,42 +21074,42 @@ impl IX509PrivateKey { (windows_core::Interface::vtable(self).KeySpec)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeySpec(&self, value: X509KeySpec) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeySpec)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeySpec)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Length(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Length)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLength(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ExportPolicy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ExportPolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExportPolicy(&self, value: X509PrivateKeyExportFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExportPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetExportPolicy)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn KeyUsage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeyUsage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeyUsage(&self, value: X509PrivateKeyUsageFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeyUsage)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeyUsage)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn KeyProtection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeyProtection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeyProtection(&self, value: X509PrivateKeyProtection) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeyProtection)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeyProtection)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn MachineContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MachineContext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMachineContext(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMachineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMachineContext)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SecurityDescriptor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21120,10 +21120,10 @@ impl IX509PrivateKey { } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_Certificate(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Certificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_Certificate)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn UniqueContainerName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21142,21 +21142,21 @@ impl IX509PrivateKey { (windows_core::Interface::vtable(self).Existing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExisting(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Silent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Silent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSilent(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ParentWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParentWindow(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn UIContextMessage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21796,7 +21796,7 @@ impl IX509PrivateKey2 { (windows_core::Interface::vtable(self).HardwareKeyUsage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHardwareKeyUsage(&self, value: X509HardwareKeyUsageFlags) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHardwareKeyUsage)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetHardwareKeyUsage)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn AlternateStorageLocation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21814,17 +21814,17 @@ impl IX509PrivateKey2 { } pub unsafe fn get_AlgorithmParameters(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AlgorithmParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_AlgorithmParameters)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_AlgorithmParameters(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_AlgorithmParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_AlgorithmParameters)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn ParametersExportType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ParametersExportType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParametersExportType(&self, value: X509KeyParametersExportType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParametersExportType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParametersExportType)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -21965,10 +21965,10 @@ impl IX509PublicKey { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), core::mem::transmute_copy(strencodedkey), core::mem::transmute_copy(strencodedparameters), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), core::mem::transmute_copy(strencodedkey), core::mem::transmute_copy(strencodedparameters), encoding).ok() } pub unsafe fn InitializeFromEncodedPublicKeyInfo(&self, strencodedpublickeyinfo: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeFromEncodedPublicKeyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodedpublickeyinfo), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).InitializeFromEncodedPublicKeyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strencodedpublickeyinfo), encoding).ok() } pub unsafe fn Algorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21980,15 +21980,15 @@ impl IX509PublicKey { } pub unsafe fn get_EncodedKey(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EncodedKey)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EncodedKey)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn get_EncodedParameters(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EncodedParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EncodedParameters)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ComputeKeyIdentifier(&self, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ComputeKeyIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(algorithm), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ComputeKeyIdentifier)(windows_core::Interface::as_raw(self), algorithm, encoding, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -22108,26 +22108,26 @@ impl IX509SCEPEnrollment { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), prequest.param().abi(), core::mem::transmute_copy(strthumbprint), core::mem::transmute(thumprintencoding), core::mem::transmute_copy(strservercertificates), core::mem::transmute(encoding)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), prequest.param().abi(), core::mem::transmute_copy(strthumbprint), thumprintencoding, core::mem::transmute_copy(strservercertificates), encoding).ok() } pub unsafe fn InitializeForPending(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn CreateRequestMessage(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRequestMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreateRequestMessage)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRetrievePendingMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreateRetrievePendingMessage)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: &windows_core::BSTR, issuerencoding: EncodingType, strserialnumber: &windows_core::BSTR, serialnumberencoding: EncodingType, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRetrieveCertificateMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(strissuer), core::mem::transmute(issuerencoding), core::mem::transmute_copy(strserialnumber), core::mem::transmute(serialnumberencoding), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreateRetrieveCertificateMessage)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(strissuer), issuerencoding, core::mem::transmute_copy(strserialnumber), serialnumberencoding, encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ProcessResponseMessage(&self, strresponse: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProcessResponseMessage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strresponse), core::mem::transmute(encoding), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProcessResponseMessage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strresponse), encoding, &mut result__).map(|| result__) } pub unsafe fn SetServerCapabilities(&self, value: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetServerCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(value)).ok() @@ -22158,10 +22158,10 @@ impl IX509SCEPEnrollment { } pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_TransactionId)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_TransactionId)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_TransactionId(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_TransactionId)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_TransactionId)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn Request(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22180,14 +22180,14 @@ impl IX509SCEPEnrollment { } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Certificate)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Silent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Silent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSilent(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn DeleteRequest(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteRequest)(windows_core::Interface::as_raw(self)).ok() @@ -22461,11 +22461,11 @@ windows_core::imp::interface_hierarchy!(IX509SCEPEnrollment2, windows_core::IUnk impl IX509SCEPEnrollment2 { pub unsafe fn CreateChallengeAnswerMessage(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChallengeAnswerMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreateChallengeAnswerMessage)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ProcessResponseMessage2(&self, flags: X509SCEPProcessMessageFlags, strresponse: &windows_core::BSTR, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProcessResponseMessage2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(strresponse), core::mem::transmute(encoding), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProcessResponseMessage2)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(strresponse), encoding, &mut result__).map(|| result__) } pub unsafe fn ResultMessageText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22596,15 +22596,15 @@ impl IX509SCEPEnrollmentHelper { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strserverurl), core::mem::transmute_copy(strrequestheaders), prequest.param().abi(), core::mem::transmute_copy(strcacertificatethumbprint)).ok() } pub unsafe fn InitializeForPending(&self, strserverurl: &windows_core::BSTR, strrequestheaders: &windows_core::BSTR, context: X509CertificateEnrollmentContext, strtransactionid: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strserverurl), core::mem::transmute_copy(strrequestheaders), core::mem::transmute(context), core::mem::transmute_copy(strtransactionid)).ok() + (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strserverurl), core::mem::transmute_copy(strrequestheaders), context, core::mem::transmute_copy(strtransactionid)).ok() } pub unsafe fn Enroll(&self, processflags: X509SCEPProcessMessageFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self), core::mem::transmute(processflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self), processflags, &mut result__).map(|| result__) } pub unsafe fn FetchPending(&self, processflags: X509SCEPProcessMessageFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FetchPending)(windows_core::Interface::as_raw(self), core::mem::transmute(processflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FetchPending)(windows_core::Interface::as_raw(self), processflags, &mut result__).map(|| result__) } pub unsafe fn X509SCEPEnrollment(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22737,17 +22737,17 @@ impl IX509SignatureInformation { } pub unsafe fn get_Parameters(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Parameters)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Parameters)(windows_core::Interface::as_raw(self), encoding, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_Parameters(&self, encoding: EncodingType, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Parameters)(windows_core::Interface::as_raw(self), core::mem::transmute(encoding), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_Parameters)(windows_core::Interface::as_raw(self), encoding, core::mem::transmute_copy(value)).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn AlternateSignatureAlgorithmSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22758,11 +22758,11 @@ impl IX509SignatureInformation { (windows_core::Interface::vtable(self).NullSigned)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNullSigned(&self, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNullSigned)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNullSigned)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSignatureAlgorithm(&self, pkcs7signature: super::super::super::Foundation::VARIANT_BOOL, signaturekey: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSignatureAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(pkcs7signature), core::mem::transmute(signaturekey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSignatureAlgorithm)(windows_core::Interface::as_raw(self), pkcs7signature, signaturekey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultValues(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDefaultValues)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs index 8e05bee9f5..724ed0daf5 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs @@ -13,31 +13,31 @@ pub unsafe fn CryptSIPCreateIndirectData(psubjectinfo: *mut SIP_SUBJECTINFO, pcb #[inline] pub unsafe fn CryptSIPGetCaps(psubjinfo: *const SIP_SUBJECTINFO, pcaps: *mut SIP_CAP_SET_V3) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetCaps(psubjinfo : *const SIP_SUBJECTINFO, pcaps : *mut SIP_CAP_SET_V3) -> super::super::super::Foundation:: BOOL); - CryptSIPGetCaps(core::mem::transmute(psubjinfo), core::mem::transmute(pcaps)) + CryptSIPGetCaps(psubjinfo, core::mem::transmute(pcaps)) } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPGetSealedDigest(psubjectinfo: *const SIP_SUBJECTINFO, psig: Option<&[u8]>, pbdigest: Option<*mut u8>, pcbdigest: *mut u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetSealedDigest(psubjectinfo : *const SIP_SUBJECTINFO, psig : *const u8, dwsig : u32, pbdigest : *mut u8, pcbdigest : *mut u32) -> super::super::super::Foundation:: BOOL); - CryptSIPGetSealedDigest(core::mem::transmute(psubjectinfo), core::mem::transmute(psig.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psig.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdigest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdigest)) + CryptSIPGetSealedDigest(psubjectinfo, core::mem::transmute(psig.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psig.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdigest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdigest)) } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPGetSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, pdwencodingtype: *mut super::CERT_QUERY_ENCODING_TYPE, dwindex: u32, pcbsigneddatamsg: *mut u32, pbsigneddatamsg: *mut u8) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, pdwencodingtype : *mut super:: CERT_QUERY_ENCODING_TYPE, dwindex : u32, pcbsigneddatamsg : *mut u32, pbsigneddatamsg : *mut u8) -> super::super::super::Foundation:: BOOL); - CryptSIPGetSignedDataMsg(core::mem::transmute(psubjectinfo), core::mem::transmute(pdwencodingtype), core::mem::transmute(dwindex), core::mem::transmute(pcbsigneddatamsg), core::mem::transmute(pbsigneddatamsg)).ok() + CryptSIPGetSignedDataMsg(core::mem::transmute(psubjectinfo), core::mem::transmute(pdwencodingtype), dwindex, core::mem::transmute(pcbsigneddatamsg), core::mem::transmute(pbsigneddatamsg)).ok() } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPLoad(pgsubject: *const windows_core::GUID, dwflags: u32, psipdispatch: *mut SIP_DISPATCH_INFO) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptSIPLoad(pgsubject : *const windows_core::GUID, dwflags : u32, psipdispatch : *mut SIP_DISPATCH_INFO) -> super::super::super::Foundation:: BOOL); - CryptSIPLoad(core::mem::transmute(pgsubject), core::mem::transmute(dwflags), core::mem::transmute(psipdispatch)).ok() + CryptSIPLoad(pgsubject, dwflags, core::mem::transmute(psipdispatch)).ok() } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPPutSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, dwencodingtype: super::CERT_QUERY_ENCODING_TYPE, pdwindex: *mut u32, cbsigneddatamsg: u32, pbsigneddatamsg: *mut u8) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn CryptSIPPutSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwencodingtype : super:: CERT_QUERY_ENCODING_TYPE, pdwindex : *mut u32, cbsigneddatamsg : u32, pbsigneddatamsg : *mut u8) -> super::super::super::Foundation:: BOOL); - CryptSIPPutSignedDataMsg(core::mem::transmute(psubjectinfo), core::mem::transmute(dwencodingtype), core::mem::transmute(pdwindex), core::mem::transmute(cbsigneddatamsg), core::mem::transmute(pbsigneddatamsg)).ok() + CryptSIPPutSignedDataMsg(core::mem::transmute(psubjectinfo), dwencodingtype, core::mem::transmute(pdwindex), cbsigneddatamsg, core::mem::transmute(pbsigneddatamsg)).ok() } #[inline] pub unsafe fn CryptSIPRemoveProvider(pgprov: *mut windows_core::GUID) -> windows_core::Result<()> { @@ -48,7 +48,7 @@ pub unsafe fn CryptSIPRemoveProvider(pgprov: *mut windows_core::GUID) -> windows #[inline] pub unsafe fn CryptSIPRemoveSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, dwindex: u32) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn CryptSIPRemoveSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwindex : u32) -> super::super::super::Foundation:: BOOL); - CryptSIPRemoveSignedDataMsg(core::mem::transmute(psubjectinfo), core::mem::transmute(dwindex)).ok() + CryptSIPRemoveSignedDataMsg(core::mem::transmute(psubjectinfo), dwindex).ok() } #[inline] pub unsafe fn CryptSIPRetrieveSubjectGuid(filename: P0, hfilein: super::super::super::Foundation::HANDLE, pgsubject: *mut windows_core::GUID) -> windows_core::Result<()> @@ -56,7 +56,7 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptSIPRetrieveSubjectGuid(filename : windows_core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut windows_core::GUID) -> super::super::super::Foundation:: BOOL); - CryptSIPRetrieveSubjectGuid(filename.param().abi(), core::mem::transmute(hfilein), core::mem::transmute(pgsubject)).ok() + CryptSIPRetrieveSubjectGuid(filename.param().abi(), hfilein, core::mem::transmute(pgsubject)).ok() } #[inline] pub unsafe fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename: P0, hfilein: super::super::super::Foundation::HANDLE, pgsubject: *mut windows_core::GUID) -> windows_core::Result<()> @@ -64,7 +64,7 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename : windows_core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut windows_core::GUID) -> super::super::super::Foundation:: BOOL); - CryptSIPRetrieveSubjectGuidForCatalogFile(filename.param().abi(), core::mem::transmute(hfilein), core::mem::transmute(pgsubject)).ok() + CryptSIPRetrieveSubjectGuidForCatalogFile(filename.param().abi(), hfilein, core::mem::transmute(pgsubject)).ok() } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs index e9a80c8751..599a36b5d4 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn CertSelectionGetSerializedBlob(pcsi: *const CERT_SELECTUI_INPUT, ppoutbuffer: *mut *mut core::ffi::c_void, puloutbuffersize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("cryptui.dll" "system" fn CertSelectionGetSerializedBlob(pcsi : *const CERT_SELECTUI_INPUT, ppoutbuffer : *mut *mut core::ffi::c_void, puloutbuffersize : *mut u32) -> windows_core::HRESULT); - CertSelectionGetSerializedBlob(core::mem::transmute(pcsi), core::mem::transmute(ppoutbuffer), core::mem::transmute(puloutbuffersize)).ok() + CertSelectionGetSerializedBlob(pcsi, core::mem::transmute(ppoutbuffer), core::mem::transmute(puloutbuffersize)).ok() } #[inline] pub unsafe fn CryptUIDlgCertMgr(pcryptuicertmgr: *const CRYPTUI_CERT_MGR_STRUCT) -> super::super::super::Foundation::BOOL { windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgCertMgr(pcryptuicertmgr : *const CRYPTUI_CERT_MGR_STRUCT) -> super::super::super::Foundation:: BOOL); - CryptUIDlgCertMgr(core::mem::transmute(pcryptuicertmgr)) + CryptUIDlgCertMgr(pcryptuicertmgr) } #[inline] pub unsafe fn CryptUIDlgSelectCertificateFromStore(hcertstore: super::HCERTSTORE, hwnd: Option, pwsztitle: P2, pwszdisplaystring: P3, dwdontusecolumn: u32, dwflags: u32, pvreserved: *const core::ffi::c_void) -> *mut super::CERT_CONTEXT @@ -15,19 +15,19 @@ where P3: windows_core::Param, { windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgSelectCertificateFromStore(hcertstore : super:: HCERTSTORE, hwnd : super::super::super::Foundation:: HWND, pwsztitle : windows_core::PCWSTR, pwszdisplaystring : windows_core::PCWSTR, dwdontusecolumn : u32, dwflags : u32, pvreserved : *const core::ffi::c_void) -> *mut super:: CERT_CONTEXT); - CryptUIDlgSelectCertificateFromStore(core::mem::transmute(hcertstore), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pwsztitle.param().abi(), pwszdisplaystring.param().abi(), core::mem::transmute(dwdontusecolumn), core::mem::transmute(dwflags), core::mem::transmute(pvreserved)) + CryptUIDlgSelectCertificateFromStore(hcertstore, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pwsztitle.param().abi(), pwszdisplaystring.param().abi(), dwdontusecolumn, dwflags, pvreserved) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip", feature = "Win32_Security_WinTrust", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn CryptUIDlgViewCertificateA(pcertviewinfo: *const CRYPTUI_VIEWCERTIFICATE_STRUCTA, pfpropertieschanged: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewCertificateA(pcertviewinfo : *const CRYPTUI_VIEWCERTIFICATE_STRUCTA, pfpropertieschanged : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - CryptUIDlgViewCertificateA(core::mem::transmute(pcertviewinfo), core::mem::transmute(pfpropertieschanged)).ok() + CryptUIDlgViewCertificateA(pcertviewinfo, core::mem::transmute(pfpropertieschanged)).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip", feature = "Win32_Security_WinTrust", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn CryptUIDlgViewCertificateW(pcertviewinfo: *const CRYPTUI_VIEWCERTIFICATE_STRUCTW, pfpropertieschanged: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewCertificateW(pcertviewinfo : *const CRYPTUI_VIEWCERTIFICATE_STRUCTW, pfpropertieschanged : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - CryptUIDlgViewCertificateW(core::mem::transmute(pcertviewinfo), core::mem::transmute(pfpropertieschanged)).ok() + CryptUIDlgViewCertificateW(pcertviewinfo, core::mem::transmute(pfpropertieschanged)).ok() } #[inline] pub unsafe fn CryptUIDlgViewContext(dwcontexttype: u32, pvcontext: *const core::ffi::c_void, hwnd: Option, pwsztitle: P3, dwflags: u32, pvreserved: *const core::ffi::c_void) -> super::super::super::Foundation::BOOL @@ -35,7 +35,7 @@ where P3: windows_core::Param, { windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewContext(dwcontexttype : u32, pvcontext : *const core::ffi::c_void, hwnd : super::super::super::Foundation:: HWND, pwsztitle : windows_core::PCWSTR, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - CryptUIDlgViewContext(core::mem::transmute(dwcontexttype), core::mem::transmute(pvcontext), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pwsztitle.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvreserved)) + CryptUIDlgViewContext(dwcontexttype, pvcontext, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pwsztitle.param().abi(), dwflags, pvreserved) } #[inline] pub unsafe fn CryptUIWizDigitalSign(dwflags: u32, hwndparent: Option, pwszwizardtitle: P2, pdigitalsigninfo: *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext: Option<*mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT>) -> super::super::super::Foundation::BOOL @@ -43,7 +43,7 @@ where P2: windows_core::Param, { windows_targets::link!("cryptui.dll" "system" fn CryptUIWizDigitalSign(dwflags : u32, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pdigitalsigninfo : *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext : *mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation:: BOOL); - CryptUIWizDigitalSign(core::mem::transmute(dwflags), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), pwszwizardtitle.param().abi(), core::mem::transmute(pdigitalsigninfo), core::mem::transmute(ppsigncontext.unwrap_or(core::mem::zeroed()))) + CryptUIWizDigitalSign(dwflags, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), pwszwizardtitle.param().abi(), pdigitalsigninfo, core::mem::transmute(ppsigncontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptUIWizExport(dwflags: CRYPTUI_WIZ_FLAGS, hwndparent: Option, pwszwizardtitle: P2, pexportinfo: *const CRYPTUI_WIZ_EXPORT_INFO, pvoid: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -51,12 +51,12 @@ where P2: windows_core::Param, { windows_targets::link!("cryptui.dll" "system" fn CryptUIWizExport(dwflags : CRYPTUI_WIZ_FLAGS, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pexportinfo : *const CRYPTUI_WIZ_EXPORT_INFO, pvoid : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - CryptUIWizExport(core::mem::transmute(dwflags), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), pwszwizardtitle.param().abi(), core::mem::transmute(pexportinfo), core::mem::transmute(pvoid.unwrap_or(core::mem::zeroed()))).ok() + CryptUIWizExport(dwflags, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), pwszwizardtitle.param().abi(), pexportinfo, core::mem::transmute(pvoid.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptUIWizFreeDigitalSignContext(psigncontext: *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation::BOOL { windows_targets::link!("cryptui.dll" "system" fn CryptUIWizFreeDigitalSignContext(psigncontext : *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation:: BOOL); - CryptUIWizFreeDigitalSignContext(core::mem::transmute(psigncontext)) + CryptUIWizFreeDigitalSignContext(psigncontext) } #[inline] pub unsafe fn CryptUIWizImport(dwflags: CRYPTUI_WIZ_FLAGS, hwndparent: Option, pwszwizardtitle: P2, pimportsrc: Option<*const CRYPTUI_WIZ_IMPORT_SRC_INFO>, hdestcertstore: Option) -> windows_core::Result<()> @@ -64,7 +64,7 @@ where P2: windows_core::Param, { windows_targets::link!("cryptui.dll" "system" fn CryptUIWizImport(dwflags : CRYPTUI_WIZ_FLAGS, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pimportsrc : *const CRYPTUI_WIZ_IMPORT_SRC_INFO, hdestcertstore : super:: HCERTSTORE) -> super::super::super::Foundation:: BOOL); - CryptUIWizImport(core::mem::transmute(dwflags), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), pwszwizardtitle.param().abi(), core::mem::transmute(pimportsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdestcertstore.unwrap_or(core::mem::zeroed()))).ok() + CryptUIWizImport(dwflags, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), pwszwizardtitle.param().abi(), core::mem::transmute(pimportsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdestcertstore.unwrap_or(core::mem::zeroed()))).ok() } pub const ACTION_REVOCATION_DEFAULT_CACHE: u32 = 131072u32; pub const ACTION_REVOCATION_DEFAULT_ONLINE: u32 = 65536u32; diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs index 92cfe507cb..401f0769c0 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -13,7 +13,7 @@ where P3: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptAddContextFunction(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR, dwposition : u32) -> super::super::Foundation:: NTSTATUS); - BCryptAddContextFunction(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), core::mem::transmute(dwposition)) + BCryptAddContextFunction(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), dwposition) } #[inline] pub unsafe fn BCryptAddContextFunctionProvider(dwtable: u32, pszcontext: P1, dwinterface: u32, pszfunction: P3, pszprovider: P4, dwposition: u32) -> super::super::Foundation::NTSTATUS @@ -23,12 +23,12 @@ where P4: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptAddContextFunctionProvider(dwtable : u32, pszcontext : windows_core::PCWSTR, dwinterface : u32, pszfunction : windows_core::PCWSTR, pszprovider : windows_core::PCWSTR, dwposition : u32) -> super::super::Foundation:: NTSTATUS); - BCryptAddContextFunctionProvider(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), pszprovider.param().abi(), core::mem::transmute(dwposition)) + BCryptAddContextFunctionProvider(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pszprovider.param().abi(), dwposition) } #[inline] pub unsafe fn BCryptCloseAlgorithmProvider(halgorithm: BCRYPT_ALG_HANDLE, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptCloseAlgorithmProvider(halgorithm : BCRYPT_ALG_HANDLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptCloseAlgorithmProvider(core::mem::transmute(halgorithm), core::mem::transmute(dwflags)) + BCryptCloseAlgorithmProvider(core::mem::transmute(halgorithm), dwflags) } #[inline] pub unsafe fn BCryptConfigureContext(dwtable: BCRYPT_TABLE, pszcontext: P1, pconfig: *const CRYPT_CONTEXT_CONFIG) -> super::super::Foundation::NTSTATUS @@ -36,7 +36,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptConfigureContext(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, pconfig : *const CRYPT_CONTEXT_CONFIG) -> super::super::Foundation:: NTSTATUS); - BCryptConfigureContext(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(pconfig)) + BCryptConfigureContext(dwtable, pszcontext.param().abi(), pconfig) } #[inline] pub unsafe fn BCryptConfigureContextFunction(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pszfunction: P3, pconfig: *const CRYPT_CONTEXT_FUNCTION_CONFIG) -> super::super::Foundation::NTSTATUS @@ -45,7 +45,7 @@ where P3: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptConfigureContextFunction(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR, pconfig : *const CRYPT_CONTEXT_FUNCTION_CONFIG) -> super::super::Foundation:: NTSTATUS); - BCryptConfigureContextFunction(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), core::mem::transmute(pconfig)) + BCryptConfigureContextFunction(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pconfig) } #[inline] pub unsafe fn BCryptCreateContext(dwtable: BCRYPT_TABLE, pszcontext: P1, pconfig: Option<*const CRYPT_CONTEXT_CONFIG>) -> super::super::Foundation::NTSTATUS @@ -53,17 +53,17 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptCreateContext(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, pconfig : *const CRYPT_CONTEXT_CONFIG) -> super::super::Foundation:: NTSTATUS); - BCryptCreateContext(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(pconfig.unwrap_or(core::mem::zeroed()))) + BCryptCreateContext(dwtable, pszcontext.param().abi(), core::mem::transmute(pconfig.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptCreateHash(halgorithm: BCRYPT_ALG_HANDLE, phhash: *mut BCRYPT_HASH_HANDLE, pbhashobject: Option<&mut [u8]>, pbsecret: Option<&[u8]>, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptCreateHash(halgorithm : BCRYPT_ALG_HANDLE, phhash : *mut BCRYPT_HASH_HANDLE, pbhashobject : *mut u8, cbhashobject : u32, pbsecret : *const u8, cbsecret : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptCreateHash(core::mem::transmute(halgorithm), core::mem::transmute(phhash), core::mem::transmute(pbhashobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbhashobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsecret.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsecret.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags)) + BCryptCreateHash(core::mem::transmute(halgorithm), core::mem::transmute(phhash), core::mem::transmute(pbhashobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbhashobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsecret.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsecret.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags) } #[inline] pub unsafe fn BCryptCreateMultiHash(halgorithm: BCRYPT_ALG_HANDLE, phhash: *mut BCRYPT_HASH_HANDLE, nhashes: u32, pbhashobject: Option<&mut [u8]>, pbsecret: Option<&[u8]>, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptCreateMultiHash(halgorithm : BCRYPT_ALG_HANDLE, phhash : *mut BCRYPT_HASH_HANDLE, nhashes : u32, pbhashobject : *mut u8, cbhashobject : u32, pbsecret : *const u8, cbsecret : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptCreateMultiHash(core::mem::transmute(halgorithm), core::mem::transmute(phhash), core::mem::transmute(nhashes), core::mem::transmute(pbhashobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbhashobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsecret.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsecret.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags)) + BCryptCreateMultiHash(core::mem::transmute(halgorithm), core::mem::transmute(phhash), nhashes, core::mem::transmute(pbhashobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbhashobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsecret.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsecret.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags) } #[inline] pub unsafe fn BCryptDecrypt(hkey: BCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppaddinginfo: Option<*const core::ffi::c_void>, pbiv: Option<&mut [u8]>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: BCRYPT_FLAGS) -> super::super::Foundation::NTSTATUS { @@ -78,7 +78,7 @@ pub unsafe fn BCryptDecrypt(hkey: BCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppa core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), - core::mem::transmute(dwflags), + dwflags, ) } #[inline] @@ -87,7 +87,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptDeleteContext(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR) -> super::super::Foundation:: NTSTATUS); - BCryptDeleteContext(core::mem::transmute(dwtable), pszcontext.param().abi()) + BCryptDeleteContext(dwtable, pszcontext.param().abi()) } #[inline] pub unsafe fn BCryptDeriveKey(hsharedsecret: BCRYPT_SECRET_HANDLE, pwszkdf: P1, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -95,27 +95,17 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptDeriveKey(hsharedsecret : BCRYPT_SECRET_HANDLE, pwszkdf : windows_core::PCWSTR, pparameterlist : *const BCryptBufferDesc, pbderivedkey : *mut u8, cbderivedkey : u32, pcbresult : *mut u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptDeriveKey(core::mem::transmute(hsharedsecret), pwszkdf.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbderivedkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)) + BCryptDeriveKey(hsharedsecret, pwszkdf.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbderivedkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags) } #[inline] pub unsafe fn BCryptDeriveKeyCapi(hhash: BCRYPT_HASH_HANDLE, htargetalg: Option, pbderivedkey: &mut [u8], dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptDeriveKeyCapi(hhash : BCRYPT_HASH_HANDLE, htargetalg : BCRYPT_ALG_HANDLE, pbderivedkey : *mut u8, cbderivedkey : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptDeriveKeyCapi(core::mem::transmute(hhash), core::mem::transmute(htargetalg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptDeriveKeyCapi(hhash, core::mem::transmute(htargetalg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptDeriveKeyPBKDF2(hprf: BCRYPT_ALG_HANDLE, pbpassword: Option<&[u8]>, pbsalt: Option<&[u8]>, citerations: u64, pbderivedkey: &mut [u8], dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptDeriveKeyPBKDF2(hprf : BCRYPT_ALG_HANDLE, pbpassword : *const u8, cbpassword : u32, pbsalt : *const u8, cbsalt : u32, citerations : u64, pbderivedkey : *mut u8, cbderivedkey : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptDeriveKeyPBKDF2( - core::mem::transmute(hprf), - core::mem::transmute(pbpassword.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbpassword.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pbsalt.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbsalt.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(citerations), - core::mem::transmute(pbderivedkey.as_ptr()), - pbderivedkey.len().try_into().unwrap(), - core::mem::transmute(dwflags), - ) + BCryptDeriveKeyPBKDF2(hprf, core::mem::transmute(pbpassword.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbpassword.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsalt.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsalt.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), citerations, core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptDestroyHash(hhash: BCRYPT_HASH_HANDLE) -> super::super::Foundation::NTSTATUS { @@ -135,12 +125,12 @@ pub unsafe fn BCryptDestroySecret(hsecret: BCRYPT_SECRET_HANDLE) -> super::super #[inline] pub unsafe fn BCryptDuplicateHash(hhash: BCRYPT_HASH_HANDLE, phnewhash: *mut BCRYPT_HASH_HANDLE, pbhashobject: Option<&mut [u8]>, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptDuplicateHash(hhash : BCRYPT_HASH_HANDLE, phnewhash : *mut BCRYPT_HASH_HANDLE, pbhashobject : *mut u8, cbhashobject : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptDuplicateHash(core::mem::transmute(hhash), core::mem::transmute(phnewhash), core::mem::transmute(pbhashobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbhashobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags)) + BCryptDuplicateHash(hhash, core::mem::transmute(phnewhash), core::mem::transmute(pbhashobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbhashobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags) } #[inline] pub unsafe fn BCryptDuplicateKey(hkey: BCRYPT_KEY_HANDLE, phnewkey: *mut BCRYPT_KEY_HANDLE, pbkeyobject: Option<&mut [u8]>, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptDuplicateKey(hkey : BCRYPT_KEY_HANDLE, phnewkey : *mut BCRYPT_KEY_HANDLE, pbkeyobject : *mut u8, cbkeyobject : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptDuplicateKey(core::mem::transmute(hkey), core::mem::transmute(phnewkey), core::mem::transmute(pbkeyobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbkeyobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags)) + BCryptDuplicateKey(hkey, core::mem::transmute(phnewkey), core::mem::transmute(pbkeyobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbkeyobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags) } #[inline] pub unsafe fn BCryptEncrypt(hkey: BCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppaddinginfo: Option<*const core::ffi::c_void>, pbiv: Option<&mut [u8]>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: BCRYPT_FLAGS) -> super::super::Foundation::NTSTATUS { @@ -155,13 +145,13 @@ pub unsafe fn BCryptEncrypt(hkey: BCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppa core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), - core::mem::transmute(dwflags), + dwflags, ) } #[inline] pub unsafe fn BCryptEnumAlgorithms(dwalgoperations: BCRYPT_OPERATION, palgcount: *mut u32, ppalglist: *mut *mut BCRYPT_ALGORITHM_IDENTIFIER, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptEnumAlgorithms(dwalgoperations : BCRYPT_OPERATION, palgcount : *mut u32, ppalglist : *mut *mut BCRYPT_ALGORITHM_IDENTIFIER, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptEnumAlgorithms(core::mem::transmute(dwalgoperations), core::mem::transmute(palgcount), core::mem::transmute(ppalglist), core::mem::transmute(dwflags)) + BCryptEnumAlgorithms(dwalgoperations, core::mem::transmute(palgcount), core::mem::transmute(ppalglist), dwflags) } #[inline] pub unsafe fn BCryptEnumContextFunctionProviders(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pszfunction: P3, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_FUNCTION_PROVIDERS>) -> super::super::Foundation::NTSTATUS @@ -170,7 +160,7 @@ where P3: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptEnumContextFunctionProviders(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_CONTEXT_FUNCTION_PROVIDERS) -> super::super::Foundation:: NTSTATUS); - BCryptEnumContextFunctionProviders(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptEnumContextFunctionProviders(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptEnumContextFunctions(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_FUNCTIONS>) -> super::super::Foundation::NTSTATUS @@ -178,12 +168,12 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptEnumContextFunctions(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_CONTEXT_FUNCTIONS) -> super::super::Foundation:: NTSTATUS); - BCryptEnumContextFunctions(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptEnumContextFunctions(dwtable, pszcontext.param().abi(), dwinterface, core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptEnumContexts(dwtable: BCRYPT_TABLE, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXTS>) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptEnumContexts(dwtable : BCRYPT_TABLE, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_CONTEXTS) -> super::super::Foundation:: NTSTATUS); - BCryptEnumContexts(core::mem::transmute(dwtable), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptEnumContexts(dwtable, core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptEnumProviders(pszalgid: P0, pimplcount: *mut u32, ppimpllist: *mut *mut BCRYPT_PROVIDER_NAME, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -191,7 +181,7 @@ where P0: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptEnumProviders(pszalgid : windows_core::PCWSTR, pimplcount : *mut u32, ppimpllist : *mut *mut BCRYPT_PROVIDER_NAME, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptEnumProviders(pszalgid.param().abi(), core::mem::transmute(pimplcount), core::mem::transmute(ppimpllist), core::mem::transmute(dwflags)) + BCryptEnumProviders(pszalgid.param().abi(), core::mem::transmute(pimplcount), core::mem::transmute(ppimpllist), dwflags) } #[inline] pub unsafe fn BCryptEnumRegisteredProviders(pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_PROVIDERS>) -> super::super::Foundation::NTSTATUS { @@ -204,37 +194,37 @@ where P2: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptExportKey(hkey : BCRYPT_KEY_HANDLE, hexportkey : BCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptExportKey(core::mem::transmute(hkey), core::mem::transmute(hexportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)) + BCryptExportKey(hkey, core::mem::transmute(hexportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags) } #[inline] pub unsafe fn BCryptFinalizeKeyPair(hkey: BCRYPT_KEY_HANDLE, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptFinalizeKeyPair(hkey : BCRYPT_KEY_HANDLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptFinalizeKeyPair(core::mem::transmute(hkey), core::mem::transmute(dwflags)) + BCryptFinalizeKeyPair(core::mem::transmute(hkey), dwflags) } #[inline] pub unsafe fn BCryptFinishHash(hhash: BCRYPT_HASH_HANDLE, pboutput: &mut [u8], dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptFinishHash(hhash : BCRYPT_HASH_HANDLE, pboutput : *mut u8, cboutput : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptFinishHash(core::mem::transmute(hhash), core::mem::transmute(pboutput.as_ptr()), pboutput.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptFinishHash(core::mem::transmute(hhash), core::mem::transmute(pboutput.as_ptr()), pboutput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptFreeBuffer(pvbuffer: *const core::ffi::c_void) { windows_targets::link!("bcrypt.dll" "system" fn BCryptFreeBuffer(pvbuffer : *const core::ffi::c_void)); - BCryptFreeBuffer(core::mem::transmute(pvbuffer)) + BCryptFreeBuffer(pvbuffer) } #[inline] pub unsafe fn BCryptGenRandom(halgorithm: Option, pbbuffer: &mut [u8], dwflags: BCRYPTGENRANDOM_FLAGS) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptGenRandom(halgorithm : BCRYPT_ALG_HANDLE, pbbuffer : *mut u8, cbbuffer : u32, dwflags : BCRYPTGENRANDOM_FLAGS) -> super::super::Foundation:: NTSTATUS); - BCryptGenRandom(core::mem::transmute(halgorithm.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbbuffer.as_ptr()), pbbuffer.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptGenRandom(core::mem::transmute(halgorithm.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbbuffer.as_ptr()), pbbuffer.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptGenerateKeyPair(halgorithm: BCRYPT_ALG_HANDLE, phkey: *mut BCRYPT_KEY_HANDLE, dwlength: u32, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptGenerateKeyPair(halgorithm : BCRYPT_ALG_HANDLE, phkey : *mut BCRYPT_KEY_HANDLE, dwlength : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptGenerateKeyPair(core::mem::transmute(halgorithm), core::mem::transmute(phkey), core::mem::transmute(dwlength), core::mem::transmute(dwflags)) + BCryptGenerateKeyPair(core::mem::transmute(halgorithm), core::mem::transmute(phkey), dwlength, dwflags) } #[inline] pub unsafe fn BCryptGenerateSymmetricKey(halgorithm: BCRYPT_ALG_HANDLE, phkey: *mut BCRYPT_KEY_HANDLE, pbkeyobject: Option<&mut [u8]>, pbsecret: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptGenerateSymmetricKey(halgorithm : BCRYPT_ALG_HANDLE, phkey : *mut BCRYPT_KEY_HANDLE, pbkeyobject : *mut u8, cbkeyobject : u32, pbsecret : *const u8, cbsecret : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptGenerateSymmetricKey(core::mem::transmute(halgorithm), core::mem::transmute(phkey), core::mem::transmute(pbkeyobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbkeyobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsecret.as_ptr()), pbsecret.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptGenerateSymmetricKey(core::mem::transmute(halgorithm), core::mem::transmute(phkey), core::mem::transmute(pbkeyobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbkeyobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbsecret.as_ptr()), pbsecret.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptGetFipsAlgorithmMode(pfenabled: *mut u8) -> super::super::Foundation::NTSTATUS { @@ -247,7 +237,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptGetProperty(hobject : BCRYPT_HANDLE, pszproperty : windows_core::PCWSTR, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptGetProperty(core::mem::transmute(hobject), pszproperty.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)) + BCryptGetProperty(hobject, pszproperty.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags) } #[inline] pub unsafe fn BCryptHash(halgorithm: BCRYPT_ALG_HANDLE, pbsecret: Option<&[u8]>, pbinput: &[u8], pboutput: &mut [u8]) -> super::super::Foundation::NTSTATUS { @@ -257,7 +247,7 @@ pub unsafe fn BCryptHash(halgorithm: BCRYPT_ALG_HANDLE, pbsecret: Option<&[u8]>, #[inline] pub unsafe fn BCryptHashData(hhash: BCRYPT_HASH_HANDLE, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptHashData(hhash : BCRYPT_HASH_HANDLE, pbinput : *const u8, cbinput : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptHashData(core::mem::transmute(hhash), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptHashData(core::mem::transmute(hhash), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptImportKey(halgorithm: BCRYPT_ALG_HANDLE, himportkey: Option, pszblobtype: P2, phkey: *mut BCRYPT_KEY_HANDLE, pbkeyobject: Option<&mut [u8]>, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -265,7 +255,7 @@ where P2: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptImportKey(halgorithm : BCRYPT_ALG_HANDLE, himportkey : BCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, phkey : *mut BCRYPT_KEY_HANDLE, pbkeyobject : *mut u8, cbkeyobject : u32, pbinput : *const u8, cbinput : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptImportKey(core::mem::transmute(halgorithm), core::mem::transmute(himportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(phkey), core::mem::transmute(pbkeyobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbkeyobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptImportKey(halgorithm, core::mem::transmute(himportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(phkey), core::mem::transmute(pbkeyobject.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbkeyobject.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptImportKeyPair(halgorithm: BCRYPT_ALG_HANDLE, himportkey: Option, pszblobtype: P2, phkey: *mut BCRYPT_KEY_HANDLE, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -273,12 +263,12 @@ where P2: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptImportKeyPair(halgorithm : BCRYPT_ALG_HANDLE, himportkey : BCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, phkey : *mut BCRYPT_KEY_HANDLE, pbinput : *const u8, cbinput : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptImportKeyPair(core::mem::transmute(halgorithm), core::mem::transmute(himportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(phkey), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptImportKeyPair(halgorithm, core::mem::transmute(himportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(phkey), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptKeyDerivation(hkey: BCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: &mut [u8], pcbresult: *mut u32, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptKeyDerivation(hkey : BCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, pbderivedkey : *mut u8, cbderivedkey : u32, pcbresult : *mut u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptKeyDerivation(core::mem::transmute(hkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)) + BCryptKeyDerivation(hkey, core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), core::mem::transmute(pcbresult), dwflags) } #[inline] pub unsafe fn BCryptOpenAlgorithmProvider(phalgorithm: *mut BCRYPT_ALG_HANDLE, pszalgid: P1, pszimplementation: P2, dwflags: BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS) -> super::super::Foundation::NTSTATUS @@ -287,12 +277,12 @@ where P2: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptOpenAlgorithmProvider(phalgorithm : *mut BCRYPT_ALG_HANDLE, pszalgid : windows_core::PCWSTR, pszimplementation : windows_core::PCWSTR, dwflags : BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS) -> super::super::Foundation:: NTSTATUS); - BCryptOpenAlgorithmProvider(core::mem::transmute(phalgorithm), pszalgid.param().abi(), pszimplementation.param().abi(), core::mem::transmute(dwflags)) + BCryptOpenAlgorithmProvider(core::mem::transmute(phalgorithm), pszalgid.param().abi(), pszimplementation.param().abi(), dwflags) } #[inline] pub unsafe fn BCryptProcessMultiOperations(hobject: BCRYPT_HANDLE, operationtype: BCRYPT_MULTI_OPERATION_TYPE, poperations: *const core::ffi::c_void, cboperations: u32, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptProcessMultiOperations(hobject : BCRYPT_HANDLE, operationtype : BCRYPT_MULTI_OPERATION_TYPE, poperations : *const core::ffi::c_void, cboperations : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptProcessMultiOperations(core::mem::transmute(hobject), core::mem::transmute(operationtype), core::mem::transmute(poperations), core::mem::transmute(cboperations), core::mem::transmute(dwflags)) + BCryptProcessMultiOperations(core::mem::transmute(hobject), operationtype, poperations, cboperations, dwflags) } #[inline] pub unsafe fn BCryptQueryContextConfiguration(dwtable: BCRYPT_TABLE, pszcontext: P1, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_CONFIG>) -> super::super::Foundation::NTSTATUS @@ -300,7 +290,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptQueryContextConfiguration(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_CONTEXT_CONFIG) -> super::super::Foundation:: NTSTATUS); - BCryptQueryContextConfiguration(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptQueryContextConfiguration(dwtable, pszcontext.param().abi(), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptQueryContextFunctionConfiguration(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pszfunction: P3, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_FUNCTION_CONFIG>) -> super::super::Foundation::NTSTATUS @@ -309,7 +299,7 @@ where P3: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptQueryContextFunctionConfiguration(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_CONTEXT_FUNCTION_CONFIG) -> super::super::Foundation:: NTSTATUS); - BCryptQueryContextFunctionConfiguration(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptQueryContextFunctionConfiguration(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptQueryContextFunctionProperty(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pszfunction: P3, pszproperty: P4, pcbvalue: *mut u32, ppbvalue: Option<*mut *mut u8>) -> super::super::Foundation::NTSTATUS @@ -319,7 +309,7 @@ where P4: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptQueryContextFunctionProperty(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR, pszproperty : windows_core::PCWSTR, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> super::super::Foundation:: NTSTATUS); - BCryptQueryContextFunctionProperty(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), pszproperty.param().abi(), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue.unwrap_or(core::mem::zeroed()))) + BCryptQueryContextFunctionProperty(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pszproperty.param().abi(), core::mem::transmute(pcbvalue), core::mem::transmute(ppbvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptQueryProviderRegistration(pszprovider: P0, dwmode: BCRYPT_QUERY_PROVIDER_MODE, dwinterface: BCRYPT_INTERFACE, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_PROVIDER_REG>) -> super::super::Foundation::NTSTATUS @@ -327,7 +317,7 @@ where P0: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptQueryProviderRegistration(pszprovider : windows_core::PCWSTR, dwmode : BCRYPT_QUERY_PROVIDER_MODE, dwinterface : BCRYPT_INTERFACE, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_PROVIDER_REG) -> super::super::Foundation:: NTSTATUS); - BCryptQueryProviderRegistration(pszprovider.param().abi(), core::mem::transmute(dwmode), core::mem::transmute(dwinterface), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptQueryProviderRegistration(pszprovider.param().abi(), dwmode, dwinterface, core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptRegisterConfigChangeNotify(phevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::NTSTATUS { @@ -340,7 +330,7 @@ where P0: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptRegisterProvider(pszprovider : windows_core::PCWSTR, dwflags : u32, preg : *const CRYPT_PROVIDER_REG) -> super::super::Foundation:: NTSTATUS); - BCryptRegisterProvider(pszprovider.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(preg)) + BCryptRegisterProvider(pszprovider.param().abi(), dwflags, preg) } #[inline] pub unsafe fn BCryptRemoveContextFunction(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pszfunction: P3) -> super::super::Foundation::NTSTATUS @@ -349,7 +339,7 @@ where P3: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptRemoveContextFunction(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR) -> super::super::Foundation:: NTSTATUS); - BCryptRemoveContextFunction(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi()) + BCryptRemoveContextFunction(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi()) } #[inline] pub unsafe fn BCryptRemoveContextFunctionProvider(dwtable: u32, pszcontext: P1, dwinterface: u32, pszfunction: P3, pszprovider: P4) -> super::super::Foundation::NTSTATUS @@ -359,7 +349,7 @@ where P4: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptRemoveContextFunctionProvider(dwtable : u32, pszcontext : windows_core::PCWSTR, dwinterface : u32, pszfunction : windows_core::PCWSTR, pszprovider : windows_core::PCWSTR) -> super::super::Foundation:: NTSTATUS); - BCryptRemoveContextFunctionProvider(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), pszprovider.param().abi()) + BCryptRemoveContextFunctionProvider(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pszprovider.param().abi()) } #[inline] pub unsafe fn BCryptResolveProviders(pszcontext: P0, dwinterface: Option, pszfunction: P2, pszprovider: P3, dwmode: BCRYPT_QUERY_PROVIDER_MODE, dwflags: BCRYPT_RESOLVE_PROVIDERS_FLAGS, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_PROVIDER_REFS>) -> super::super::Foundation::NTSTATUS @@ -369,12 +359,12 @@ where P3: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptResolveProviders(pszcontext : windows_core::PCWSTR, dwinterface : u32, pszfunction : windows_core::PCWSTR, pszprovider : windows_core::PCWSTR, dwmode : BCRYPT_QUERY_PROVIDER_MODE, dwflags : BCRYPT_RESOLVE_PROVIDERS_FLAGS, pcbbuffer : *mut u32, ppbuffer : *mut *mut CRYPT_PROVIDER_REFS) -> super::super::Foundation:: NTSTATUS); - BCryptResolveProviders(pszcontext.param().abi(), core::mem::transmute(dwinterface.unwrap_or(core::mem::zeroed())), pszfunction.param().abi(), pszprovider.param().abi(), core::mem::transmute(dwmode), core::mem::transmute(dwflags), core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) + BCryptResolveProviders(pszcontext.param().abi(), core::mem::transmute(dwinterface.unwrap_or(core::mem::zeroed())), pszfunction.param().abi(), pszprovider.param().abi(), dwmode, dwflags, core::mem::transmute(pcbbuffer), core::mem::transmute(ppbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BCryptSecretAgreement(hprivkey: BCRYPT_KEY_HANDLE, hpubkey: BCRYPT_KEY_HANDLE, phagreedsecret: *mut BCRYPT_SECRET_HANDLE, dwflags: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptSecretAgreement(hprivkey : BCRYPT_KEY_HANDLE, hpubkey : BCRYPT_KEY_HANDLE, phagreedsecret : *mut BCRYPT_SECRET_HANDLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptSecretAgreement(core::mem::transmute(hprivkey), core::mem::transmute(hpubkey), core::mem::transmute(phagreedsecret), core::mem::transmute(dwflags)) + BCryptSecretAgreement(hprivkey, hpubkey, core::mem::transmute(phagreedsecret), dwflags) } #[inline] pub unsafe fn BCryptSetContextFunctionProperty(dwtable: BCRYPT_TABLE, pszcontext: P1, dwinterface: BCRYPT_INTERFACE, pszfunction: P3, pszproperty: P4, pbvalue: Option<&[u8]>) -> super::super::Foundation::NTSTATUS @@ -384,7 +374,7 @@ where P4: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptSetContextFunctionProperty(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR, dwinterface : BCRYPT_INTERFACE, pszfunction : windows_core::PCWSTR, pszproperty : windows_core::PCWSTR, cbvalue : u32, pbvalue : *const u8) -> super::super::Foundation:: NTSTATUS); - BCryptSetContextFunctionProperty(core::mem::transmute(dwtable), pszcontext.param().abi(), core::mem::transmute(dwinterface), pszfunction.param().abi(), pszproperty.param().abi(), pbvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + BCryptSetContextFunctionProperty(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pszproperty.param().abi(), pbvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn BCryptSetProperty(hobject: BCRYPT_HANDLE, pszproperty: P1, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -392,17 +382,17 @@ where P1: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptSetProperty(hobject : BCRYPT_HANDLE, pszproperty : windows_core::PCWSTR, pbinput : *const u8, cbinput : u32, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - BCryptSetProperty(core::mem::transmute(hobject), pszproperty.param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptSetProperty(core::mem::transmute(hobject), pszproperty.param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptSignHash(hkey: BCRYPT_KEY_HANDLE, ppaddinginfo: Option<*const core::ffi::c_void>, pbinput: &[u8], pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: BCRYPT_FLAGS) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptSignHash(hkey : BCRYPT_KEY_HANDLE, ppaddinginfo : *const core::ffi::c_void, pbinput : *const u8, cbinput : u32, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : BCRYPT_FLAGS) -> super::super::Foundation:: NTSTATUS); - BCryptSignHash(core::mem::transmute(hkey), core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)) + BCryptSignHash(hkey, core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags) } #[inline] pub unsafe fn BCryptUnregisterConfigChangeNotify(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptUnregisterConfigChangeNotify(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: NTSTATUS); - BCryptUnregisterConfigChangeNotify(core::mem::transmute(hevent)) + BCryptUnregisterConfigChangeNotify(hevent) } #[inline] pub unsafe fn BCryptUnregisterProvider(pszprovider: P0) -> super::super::Foundation::NTSTATUS @@ -415,52 +405,52 @@ where #[inline] pub unsafe fn BCryptVerifySignature(hkey: BCRYPT_KEY_HANDLE, ppaddinginfo: Option<*const core::ffi::c_void>, pbhash: &[u8], pbsignature: &[u8], dwflags: BCRYPT_FLAGS) -> super::super::Foundation::NTSTATUS { windows_targets::link!("bcrypt.dll" "system" fn BCryptVerifySignature(hkey : BCRYPT_KEY_HANDLE, ppaddinginfo : *const core::ffi::c_void, pbhash : *const u8, cbhash : u32, pbsignature : *const u8, cbsignature : u32, dwflags : BCRYPT_FLAGS) -> super::super::Foundation:: NTSTATUS); - BCryptVerifySignature(core::mem::transmute(hkey), core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), core::mem::transmute(dwflags)) + BCryptVerifySignature(hkey, core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn CertAddCRLContextToStore(hcertstore: Option, pcrlcontext: *const CRL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddCRLContextToStore(hcertstore : HCERTSTORE, pcrlcontext : *const CRL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CRL_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddCRLContextToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcrlcontext), core::mem::transmute(dwadddisposition), core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddCRLContextToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), pcrlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddCRLLinkToStore(hcertstore: HCERTSTORE, pcrlcontext: *const CRL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddCRLLinkToStore(hcertstore : HCERTSTORE, pcrlcontext : *const CRL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CRL_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddCRLLinkToStore(core::mem::transmute(hcertstore), core::mem::transmute(pcrlcontext), core::mem::transmute(dwadddisposition), core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddCRLLinkToStore(hcertstore, pcrlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddCTLContextToStore(hcertstore: Option, pctlcontext: *const CTL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddCTLContextToStore(hcertstore : HCERTSTORE, pctlcontext : *const CTL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CTL_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddCTLContextToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pctlcontext), core::mem::transmute(dwadddisposition), core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddCTLContextToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), pctlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddCTLLinkToStore(hcertstore: HCERTSTORE, pctlcontext: *const CTL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddCTLLinkToStore(hcertstore : HCERTSTORE, pctlcontext : *const CTL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CTL_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddCTLLinkToStore(core::mem::transmute(hcertstore), core::mem::transmute(pctlcontext), core::mem::transmute(dwadddisposition), core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddCTLLinkToStore(hcertstore, pctlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddCertificateContextToStore(hcertstore: Option, pcertcontext: *const CERT_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddCertificateContextToStore(hcertstore : HCERTSTORE, pcertcontext : *const CERT_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddCertificateContextToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcertcontext), core::mem::transmute(dwadddisposition), core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddCertificateContextToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), pcertcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddCertificateLinkToStore(hcertstore: HCERTSTORE, pcertcontext: *const CERT_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddCertificateLinkToStore(hcertstore : HCERTSTORE, pcertcontext : *const CERT_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddCertificateLinkToStore(core::mem::transmute(hcertstore), core::mem::transmute(pcertcontext), core::mem::transmute(dwadddisposition), core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddCertificateLinkToStore(hcertstore, pcertcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddEncodedCRLToStore(hcertstore: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcrlencoded: &[u8], dwadddisposition: u32, ppcrlcontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCRLToStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcrlencoded : *const u8, cbcrlencoded : u32, dwadddisposition : u32, ppcrlcontext : *mut *mut CRL_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddEncodedCRLToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap(), core::mem::transmute(dwadddisposition), core::mem::transmute(ppcrlcontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddEncodedCRLToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), dwcertencodingtype, core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppcrlcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddEncodedCTLToStore(hcertstore: Option, dwmsgandcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbctlencoded: &[u8], dwadddisposition: u32, ppctlcontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCTLToStore(hcertstore : HCERTSTORE, dwmsgandcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbctlencoded : *const u8, cbctlencoded : u32, dwadddisposition : u32, ppctlcontext : *mut *mut CTL_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddEncodedCTLToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmsgandcertencodingtype), core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap(), core::mem::transmute(dwadddisposition), core::mem::transmute(ppctlcontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddEncodedCTLToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), dwmsgandcertencodingtype, core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppctlcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddEncodedCertificateToStore(hcertstore: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcertencoded: &[u8], dwadddisposition: u32, ppcertcontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcertencoded : *const u8, cbcertencoded : u32, dwadddisposition : u32, ppcertcontext : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CertAddEncodedCertificateToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap(), core::mem::transmute(dwadddisposition), core::mem::transmute(ppcertcontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddEncodedCertificateToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), dwcertencodingtype, core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppcertcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddEncodedCertificateToSystemStoreA(szcertstorename: P0, pbcertencoded: &[u8]) -> windows_core::Result<()> @@ -484,7 +474,7 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertAddEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CertAddEnhancedKeyUsageIdentifier(core::mem::transmute(pcertcontext), pszusageidentifier.param().abi()).ok() + CertAddEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.param().abi()).ok() } #[inline] pub unsafe fn CertAddRefServerOcspResponse(hserverocspresponse: Option<*const core::ffi::c_void>) { @@ -499,111 +489,102 @@ pub unsafe fn CertAddRefServerOcspResponseContext(pserverocspresponsecontext: Op #[inline] pub unsafe fn CertAddSerializedElementToStore(hcertstore: Option, pbelement: &[u8], dwadddisposition: u32, dwflags: u32, dwcontexttypeflags: u32, pdwcontexttype: Option<*mut u32>, ppvcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertAddSerializedElementToStore(hcertstore : HCERTSTORE, pbelement : *const u8, cbelement : u32, dwadddisposition : u32, dwflags : u32, dwcontexttypeflags : u32, pdwcontexttype : *mut u32, ppvcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertAddSerializedElementToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbelement.as_ptr()), pbelement.len().try_into().unwrap(), core::mem::transmute(dwadddisposition), core::mem::transmute(dwflags), core::mem::transmute(dwcontexttypeflags), core::mem::transmute(pdwcontexttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppvcontext.unwrap_or(core::mem::zeroed()))).ok() + CertAddSerializedElementToStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbelement.as_ptr()), pbelement.len().try_into().unwrap(), dwadddisposition, dwflags, dwcontexttypeflags, core::mem::transmute(pdwcontexttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppvcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertAddStoreToCollection(hcollectionstore: HCERTSTORE, hsiblingstore: Option, dwupdateflags: u32, dwpriority: u32) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertAddStoreToCollection(hcollectionstore : HCERTSTORE, hsiblingstore : HCERTSTORE, dwupdateflags : u32, dwpriority : u32) -> super::super::Foundation:: BOOL); - CertAddStoreToCollection(core::mem::transmute(hcollectionstore), core::mem::transmute(hsiblingstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwupdateflags), core::mem::transmute(dwpriority)) + CertAddStoreToCollection(hcollectionstore, core::mem::transmute(hsiblingstore.unwrap_or(core::mem::zeroed())), dwupdateflags, dwpriority) } #[inline] pub unsafe fn CertAlgIdToOID(dwalgid: u32) -> windows_core::PCSTR { windows_targets::link!("crypt32.dll" "system" fn CertAlgIdToOID(dwalgid : u32) -> windows_core::PCSTR); - CertAlgIdToOID(core::mem::transmute(dwalgid)) + CertAlgIdToOID(dwalgid) } #[inline] pub unsafe fn CertCloseServerOcspResponse(hserverocspresponse: Option<*const core::ffi::c_void>, dwflags: u32) { windows_targets::link!("crypt32.dll" "system" fn CertCloseServerOcspResponse(hserverocspresponse : *const core::ffi::c_void, dwflags : u32)); - CertCloseServerOcspResponse(core::mem::transmute(hserverocspresponse.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + CertCloseServerOcspResponse(core::mem::transmute(hserverocspresponse.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn CertCloseStore(hcertstore: Option, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertCloseStore(hcertstore : HCERTSTORE, dwflags : u32) -> super::super::Foundation:: BOOL); - CertCloseStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + CertCloseStore(core::mem::transmute(hcertstore.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn CertCompareCertificate(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid1: *const CERT_INFO, pcertid2: *const CERT_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertCompareCertificate(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid1 : *const CERT_INFO, pcertid2 : *const CERT_INFO) -> super::super::Foundation:: BOOL); - CertCompareCertificate(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pcertid1), core::mem::transmute(pcertid2)) + CertCompareCertificate(dwcertencodingtype, pcertid1, pcertid2) } #[inline] pub unsafe fn CertCompareCertificateName(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertname1: *const CRYPT_INTEGER_BLOB, pcertname2: *const CRYPT_INTEGER_BLOB) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertCompareCertificateName(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertname1 : *const CRYPT_INTEGER_BLOB, pcertname2 : *const CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - CertCompareCertificateName(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pcertname1), core::mem::transmute(pcertname2)) + CertCompareCertificateName(dwcertencodingtype, pcertname1, pcertname2) } #[inline] pub unsafe fn CertCompareIntegerBlob(pint1: *const CRYPT_INTEGER_BLOB, pint2: *const CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertCompareIntegerBlob(pint1 : *const CRYPT_INTEGER_BLOB, pint2 : *const CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - CertCompareIntegerBlob(core::mem::transmute(pint1), core::mem::transmute(pint2)).ok() + CertCompareIntegerBlob(pint1, pint2).ok() } #[inline] pub unsafe fn CertComparePublicKeyInfo(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, ppublickey1: *const CERT_PUBLIC_KEY_INFO, ppublickey2: *const CERT_PUBLIC_KEY_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertComparePublicKeyInfo(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, ppublickey1 : *const CERT_PUBLIC_KEY_INFO, ppublickey2 : *const CERT_PUBLIC_KEY_INFO) -> super::super::Foundation:: BOOL); - CertComparePublicKeyInfo(core::mem::transmute(dwcertencodingtype), core::mem::transmute(ppublickey1), core::mem::transmute(ppublickey2)) + CertComparePublicKeyInfo(dwcertencodingtype, ppublickey1, ppublickey2) } #[inline] pub unsafe fn CertControlStore(hcertstore: HCERTSTORE, dwflags: CERT_CONTROL_STORE_FLAGS, dwctrltype: u32, pvctrlpara: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertControlStore(hcertstore : HCERTSTORE, dwflags : CERT_CONTROL_STORE_FLAGS, dwctrltype : u32, pvctrlpara : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertControlStore(core::mem::transmute(hcertstore), core::mem::transmute(dwflags), core::mem::transmute(dwctrltype), core::mem::transmute(pvctrlpara.unwrap_or(core::mem::zeroed()))).ok() + CertControlStore(hcertstore, dwflags, dwctrltype, core::mem::transmute(pvctrlpara.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertCreateCRLContext(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcrlencoded: &[u8]) -> *mut CRL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertCreateCRLContext(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcrlencoded : *const u8, cbcrlencoded : u32) -> *mut CRL_CONTEXT); - CertCreateCRLContext(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap()) + CertCreateCRLContext(dwcertencodingtype, core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap()) } #[inline] pub unsafe fn CertCreateCTLContext(dwmsgandcertencodingtype: u32, pbctlencoded: &[u8]) -> *mut CTL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertCreateCTLContext(dwmsgandcertencodingtype : u32, pbctlencoded : *const u8, cbctlencoded : u32) -> *mut CTL_CONTEXT); - CertCreateCTLContext(core::mem::transmute(dwmsgandcertencodingtype), core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap()) + CertCreateCTLContext(dwmsgandcertencodingtype, core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap()) } #[inline] pub unsafe fn CertCreateCTLEntryFromCertificateContextProperties(pcertcontext: *const CERT_CONTEXT, rgoptattr: Option<&[CRYPT_ATTRIBUTE]>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pctlentry: Option<*mut CTL_ENTRY>, pcbctlentry: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertCreateCTLEntryFromCertificateContextProperties(pcertcontext : *const CERT_CONTEXT, coptattr : u32, rgoptattr : *const CRYPT_ATTRIBUTE, dwflags : u32, pvreserved : *const core::ffi::c_void, pctlentry : *mut CTL_ENTRY, pcbctlentry : *mut u32) -> super::super::Foundation:: BOOL); - CertCreateCTLEntryFromCertificateContextProperties(core::mem::transmute(pcertcontext), rgoptattr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgoptattr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pctlentry.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbctlentry)).ok() + CertCreateCTLEntryFromCertificateContextProperties(pcertcontext, rgoptattr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgoptattr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pctlentry.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbctlentry)).ok() } #[inline] pub unsafe fn CertCreateCertificateChainEngine(pconfig: *const CERT_CHAIN_ENGINE_CONFIG, phchainengine: *mut HCERTCHAINENGINE) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertCreateCertificateChainEngine(pconfig : *const CERT_CHAIN_ENGINE_CONFIG, phchainengine : *mut HCERTCHAINENGINE) -> super::super::Foundation:: BOOL); - CertCreateCertificateChainEngine(core::mem::transmute(pconfig), core::mem::transmute(phchainengine)).ok() + CertCreateCertificateChainEngine(pconfig, core::mem::transmute(phchainengine)).ok() } #[inline] pub unsafe fn CertCreateCertificateContext(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcertencoded: &[u8]) -> *mut CERT_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertCreateCertificateContext(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcertencoded : *const u8, cbcertencoded : u32) -> *mut CERT_CONTEXT); - CertCreateCertificateContext(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()) + CertCreateCertificateContext(dwcertencodingtype, core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()) } #[inline] pub unsafe fn CertCreateContext(dwcontexttype: u32, dwencodingtype: u32, pbencoded: &[u8], dwflags: u32, pcreatepara: Option<*const CERT_CREATE_CONTEXT_PARA>) -> *mut core::ffi::c_void { windows_targets::link!("crypt32.dll" "system" fn CertCreateContext(dwcontexttype : u32, dwencodingtype : u32, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pcreatepara : *const CERT_CREATE_CONTEXT_PARA) -> *mut core::ffi::c_void); - CertCreateContext(core::mem::transmute(dwcontexttype), core::mem::transmute(dwencodingtype), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pcreatepara.unwrap_or(core::mem::zeroed()))) + CertCreateContext(dwcontexttype, dwencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, core::mem::transmute(pcreatepara.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertCreateSelfSignCertificate(hcryptprovorncryptkey: Option, psubjectissuerblob: *const CRYPT_INTEGER_BLOB, dwflags: CERT_CREATE_SELFSIGN_FLAGS, pkeyprovinfo: Option<*const CRYPT_KEY_PROV_INFO>, psignaturealgorithm: Option<*const CRYPT_ALGORITHM_IDENTIFIER>, pstarttime: Option<*const super::super::Foundation::SYSTEMTIME>, pendtime: Option<*const super::super::Foundation::SYSTEMTIME>, pextensions: Option<*const CERT_EXTENSIONS>) -> *mut CERT_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertCreateSelfSignCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, psubjectissuerblob : *const CRYPT_INTEGER_BLOB, dwflags : CERT_CREATE_SELFSIGN_FLAGS, pkeyprovinfo : *const CRYPT_KEY_PROV_INFO, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pstarttime : *const super::super::Foundation:: SYSTEMTIME, pendtime : *const super::super::Foundation:: SYSTEMTIME, pextensions : *const CERT_EXTENSIONS) -> *mut CERT_CONTEXT); - CertCreateSelfSignCertificate( - core::mem::transmute(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psubjectissuerblob), - core::mem::transmute(dwflags), - core::mem::transmute(pkeyprovinfo.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psignaturealgorithm.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pstarttime.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pendtime.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pextensions.unwrap_or(core::mem::zeroed())), - ) + CertCreateSelfSignCertificate(core::mem::transmute(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed())), psubjectissuerblob, dwflags, core::mem::transmute(pkeyprovinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(psignaturealgorithm.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstarttime.unwrap_or(core::mem::zeroed())), core::mem::transmute(pendtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(pextensions.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertDeleteCRLFromStore(pcrlcontext: *const CRL_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertDeleteCRLFromStore(pcrlcontext : *const CRL_CONTEXT) -> super::super::Foundation:: BOOL); - CertDeleteCRLFromStore(core::mem::transmute(pcrlcontext)).ok() + CertDeleteCRLFromStore(pcrlcontext).ok() } #[inline] pub unsafe fn CertDeleteCTLFromStore(pctlcontext: *const CTL_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertDeleteCTLFromStore(pctlcontext : *const CTL_CONTEXT) -> super::super::Foundation:: BOOL); - CertDeleteCTLFromStore(core::mem::transmute(pctlcontext)).ok() + CertDeleteCTLFromStore(pctlcontext).ok() } #[inline] pub unsafe fn CertDeleteCertificateFromStore(pcertcontext: *const CERT_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertDeleteCertificateFromStore(pcertcontext : *const CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CertDeleteCertificateFromStore(core::mem::transmute(pcertcontext)).ok() + CertDeleteCertificateFromStore(pcertcontext).ok() } #[inline] pub unsafe fn CertDuplicateCRLContext(pcrlcontext: Option<*const CRL_CONTEXT>) -> *mut CRL_CONTEXT { @@ -618,7 +599,7 @@ pub unsafe fn CertDuplicateCTLContext(pctlcontext: Option<*const CTL_CONTEXT>) - #[inline] pub unsafe fn CertDuplicateCertificateChain(pchaincontext: *const CERT_CHAIN_CONTEXT) -> *mut CERT_CHAIN_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertDuplicateCertificateChain(pchaincontext : *const CERT_CHAIN_CONTEXT) -> *mut CERT_CHAIN_CONTEXT); - CertDuplicateCertificateChain(core::mem::transmute(pchaincontext)) + CertDuplicateCertificateChain(pchaincontext) } #[inline] pub unsafe fn CertDuplicateCertificateContext(pcertcontext: Option<*const CERT_CONTEXT>) -> *mut CERT_CONTEXT { @@ -628,57 +609,57 @@ pub unsafe fn CertDuplicateCertificateContext(pcertcontext: Option<*const CERT_C #[inline] pub unsafe fn CertDuplicateStore(hcertstore: HCERTSTORE) -> HCERTSTORE { windows_targets::link!("crypt32.dll" "system" fn CertDuplicateStore(hcertstore : HCERTSTORE) -> HCERTSTORE); - CertDuplicateStore(core::mem::transmute(hcertstore)) + CertDuplicateStore(hcertstore) } #[inline] pub unsafe fn CertEnumCRLContextProperties(pcrlcontext: *const CRL_CONTEXT, dwpropid: u32) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertEnumCRLContextProperties(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32) -> u32); - CertEnumCRLContextProperties(core::mem::transmute(pcrlcontext), core::mem::transmute(dwpropid)) + CertEnumCRLContextProperties(pcrlcontext, dwpropid) } #[inline] pub unsafe fn CertEnumCRLsInStore(hcertstore: HCERTSTORE, pprevcrlcontext: Option<*const CRL_CONTEXT>) -> *mut CRL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertEnumCRLsInStore(hcertstore : HCERTSTORE, pprevcrlcontext : *const CRL_CONTEXT) -> *mut CRL_CONTEXT); - CertEnumCRLsInStore(core::mem::transmute(hcertstore), core::mem::transmute(pprevcrlcontext.unwrap_or(core::mem::zeroed()))) + CertEnumCRLsInStore(hcertstore, core::mem::transmute(pprevcrlcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertEnumCTLContextProperties(pctlcontext: *const CTL_CONTEXT, dwpropid: u32) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertEnumCTLContextProperties(pctlcontext : *const CTL_CONTEXT, dwpropid : u32) -> u32); - CertEnumCTLContextProperties(core::mem::transmute(pctlcontext), core::mem::transmute(dwpropid)) + CertEnumCTLContextProperties(pctlcontext, dwpropid) } #[inline] pub unsafe fn CertEnumCTLsInStore(hcertstore: HCERTSTORE, pprevctlcontext: Option<*const CTL_CONTEXT>) -> *mut CTL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertEnumCTLsInStore(hcertstore : HCERTSTORE, pprevctlcontext : *const CTL_CONTEXT) -> *mut CTL_CONTEXT); - CertEnumCTLsInStore(core::mem::transmute(hcertstore), core::mem::transmute(pprevctlcontext.unwrap_or(core::mem::zeroed()))) + CertEnumCTLsInStore(hcertstore, core::mem::transmute(pprevctlcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertEnumCertificateContextProperties(pcertcontext: *const CERT_CONTEXT, dwpropid: u32) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertEnumCertificateContextProperties(pcertcontext : *const CERT_CONTEXT, dwpropid : u32) -> u32); - CertEnumCertificateContextProperties(core::mem::transmute(pcertcontext), core::mem::transmute(dwpropid)) + CertEnumCertificateContextProperties(pcertcontext, dwpropid) } #[inline] pub unsafe fn CertEnumCertificatesInStore(hcertstore: HCERTSTORE, pprevcertcontext: Option<*const CERT_CONTEXT>) -> *mut CERT_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertEnumCertificatesInStore(hcertstore : HCERTSTORE, pprevcertcontext : *const CERT_CONTEXT) -> *mut CERT_CONTEXT); - CertEnumCertificatesInStore(core::mem::transmute(hcertstore), core::mem::transmute(pprevcertcontext.unwrap_or(core::mem::zeroed()))) + CertEnumCertificatesInStore(hcertstore, core::mem::transmute(pprevcertcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertEnumPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_PHYSICAL_STORE) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertEnumPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_PHYSICAL_STORE) -> super::super::Foundation:: BOOL); - CertEnumPhysicalStore(core::mem::transmute(pvsystemstore), core::mem::transmute(dwflags), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenum)).ok() + CertEnumPhysicalStore(pvsystemstore, dwflags, core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenum).ok() } #[inline] pub unsafe fn CertEnumSubjectInSortedCTL(pctlcontext: *const CTL_CONTEXT, ppvnextsubject: *mut *mut core::ffi::c_void, psubjectidentifier: Option<*mut CRYPT_INTEGER_BLOB>, pencodedattributes: Option<*mut CRYPT_INTEGER_BLOB>) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertEnumSubjectInSortedCTL(pctlcontext : *const CTL_CONTEXT, ppvnextsubject : *mut *mut core::ffi::c_void, psubjectidentifier : *mut CRYPT_INTEGER_BLOB, pencodedattributes : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - CertEnumSubjectInSortedCTL(core::mem::transmute(pctlcontext), core::mem::transmute(ppvnextsubject), core::mem::transmute(psubjectidentifier.unwrap_or(core::mem::zeroed())), core::mem::transmute(pencodedattributes.unwrap_or(core::mem::zeroed()))) + CertEnumSubjectInSortedCTL(pctlcontext, core::mem::transmute(ppvnextsubject), core::mem::transmute(psubjectidentifier.unwrap_or(core::mem::zeroed())), core::mem::transmute(pencodedattributes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertEnumSystemStore(dwflags: u32, pvsystemstorelocationpara: Option<*const core::ffi::c_void>, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_SYSTEM_STORE) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertEnumSystemStore(dwflags : u32, pvsystemstorelocationpara : *const core::ffi::c_void, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_SYSTEM_STORE) -> super::super::Foundation:: BOOL); - CertEnumSystemStore(core::mem::transmute(dwflags), core::mem::transmute(pvsystemstorelocationpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenum)) + CertEnumSystemStore(dwflags, core::mem::transmute(pvsystemstorelocationpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenum) } #[inline] pub unsafe fn CertEnumSystemStoreLocation(dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_SYSTEM_STORE_LOCATION) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertEnumSystemStoreLocation(dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_SYSTEM_STORE_LOCATION) -> super::super::Foundation:: BOOL); - CertEnumSystemStoreLocation(core::mem::transmute(dwflags), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenum)) + CertEnumSystemStoreLocation(dwflags, core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenum) } #[inline] pub unsafe fn CertFindAttribute(pszobjid: P0, rgattr: &[CRYPT_ATTRIBUTE]) -> *mut CRYPT_ATTRIBUTE @@ -691,27 +672,27 @@ where #[inline] pub unsafe fn CertFindCRLInStore(hcertstore: HCERTSTORE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwfindflags: u32, dwfindtype: u32, pvfindpara: Option<*const core::ffi::c_void>, pprevcrlcontext: Option<*const CRL_CONTEXT>) -> *mut CRL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertFindCRLInStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwfindflags : u32, dwfindtype : u32, pvfindpara : *const core::ffi::c_void, pprevcrlcontext : *const CRL_CONTEXT) -> *mut CRL_CONTEXT); - CertFindCRLInStore(core::mem::transmute(hcertstore), core::mem::transmute(dwcertencodingtype), core::mem::transmute(dwfindflags), core::mem::transmute(dwfindtype), core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevcrlcontext.unwrap_or(core::mem::zeroed()))) + CertFindCRLInStore(hcertstore, dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevcrlcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertFindCTLInStore(hcertstore: HCERTSTORE, dwmsgandcertencodingtype: u32, dwfindflags: u32, dwfindtype: CERT_FIND_TYPE, pvfindpara: Option<*const core::ffi::c_void>, pprevctlcontext: Option<*const CTL_CONTEXT>) -> *mut CTL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertFindCTLInStore(hcertstore : HCERTSTORE, dwmsgandcertencodingtype : u32, dwfindflags : u32, dwfindtype : CERT_FIND_TYPE, pvfindpara : *const core::ffi::c_void, pprevctlcontext : *const CTL_CONTEXT) -> *mut CTL_CONTEXT); - CertFindCTLInStore(core::mem::transmute(hcertstore), core::mem::transmute(dwmsgandcertencodingtype), core::mem::transmute(dwfindflags), core::mem::transmute(dwfindtype), core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevctlcontext.unwrap_or(core::mem::zeroed()))) + CertFindCTLInStore(hcertstore, dwmsgandcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevctlcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertFindCertificateInCRL(pcert: *const CERT_CONTEXT, pcrlcontext: *const CRL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppcrlentry: *mut *mut CRL_ENTRY) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertFindCertificateInCRL(pcert : *const CERT_CONTEXT, pcrlcontext : *const CRL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void, ppcrlentry : *mut *mut CRL_ENTRY) -> super::super::Foundation:: BOOL); - CertFindCertificateInCRL(core::mem::transmute(pcert), core::mem::transmute(pcrlcontext), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcrlentry)) + CertFindCertificateInCRL(pcert, pcrlcontext, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcrlentry)) } #[inline] pub unsafe fn CertFindCertificateInStore(hcertstore: HCERTSTORE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwfindflags: u32, dwfindtype: CERT_FIND_FLAGS, pvfindpara: Option<*const core::ffi::c_void>, pprevcertcontext: Option<*const CERT_CONTEXT>) -> *mut CERT_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertFindCertificateInStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwfindflags : u32, dwfindtype : CERT_FIND_FLAGS, pvfindpara : *const core::ffi::c_void, pprevcertcontext : *const CERT_CONTEXT) -> *mut CERT_CONTEXT); - CertFindCertificateInStore(core::mem::transmute(hcertstore), core::mem::transmute(dwcertencodingtype), core::mem::transmute(dwfindflags), core::mem::transmute(dwfindtype), core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevcertcontext.unwrap_or(core::mem::zeroed()))) + CertFindCertificateInStore(hcertstore, dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevcertcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertFindChainInStore(hcertstore: HCERTSTORE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwfindflags: CERT_FIND_CHAIN_IN_STORE_FLAGS, dwfindtype: u32, pvfindpara: Option<*const core::ffi::c_void>, pprevchaincontext: Option<*const CERT_CHAIN_CONTEXT>) -> *mut CERT_CHAIN_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertFindChainInStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwfindflags : CERT_FIND_CHAIN_IN_STORE_FLAGS, dwfindtype : u32, pvfindpara : *const core::ffi::c_void, pprevchaincontext : *const CERT_CHAIN_CONTEXT) -> *mut CERT_CHAIN_CONTEXT); - CertFindChainInStore(core::mem::transmute(hcertstore), core::mem::transmute(dwcertencodingtype), core::mem::transmute(dwfindflags), core::mem::transmute(dwfindtype), core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevchaincontext.unwrap_or(core::mem::zeroed()))) + CertFindChainInStore(hcertstore, dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevchaincontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertFindExtension(pszobjid: P0, rgextensions: &[CERT_EXTENSION]) -> *mut CERT_EXTENSION @@ -727,17 +708,17 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertFindRDNAttr(pszobjid : windows_core::PCSTR, pname : *const CERT_NAME_INFO) -> *mut CERT_RDN_ATTR); - CertFindRDNAttr(pszobjid.param().abi(), core::mem::transmute(pname)) + CertFindRDNAttr(pszobjid.param().abi(), pname) } #[inline] pub unsafe fn CertFindSubjectInCTL(dwencodingtype: u32, dwsubjecttype: u32, pvsubject: *const core::ffi::c_void, pctlcontext: *const CTL_CONTEXT, dwflags: u32) -> *mut CTL_ENTRY { windows_targets::link!("crypt32.dll" "system" fn CertFindSubjectInCTL(dwencodingtype : u32, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, pctlcontext : *const CTL_CONTEXT, dwflags : u32) -> *mut CTL_ENTRY); - CertFindSubjectInCTL(core::mem::transmute(dwencodingtype), core::mem::transmute(dwsubjecttype), core::mem::transmute(pvsubject), core::mem::transmute(pctlcontext), core::mem::transmute(dwflags)) + CertFindSubjectInCTL(dwencodingtype, dwsubjecttype, pvsubject, pctlcontext, dwflags) } #[inline] pub unsafe fn CertFindSubjectInSortedCTL(psubjectidentifier: *const CRYPT_INTEGER_BLOB, pctlcontext: *const CTL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pencodedattributes: Option<*mut CRYPT_INTEGER_BLOB>) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertFindSubjectInSortedCTL(psubjectidentifier : *const CRYPT_INTEGER_BLOB, pctlcontext : *const CTL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void, pencodedattributes : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - CertFindSubjectInSortedCTL(core::mem::transmute(psubjectidentifier), core::mem::transmute(pctlcontext), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pencodedattributes.unwrap_or(core::mem::zeroed()))) + CertFindSubjectInSortedCTL(psubjectidentifier, pctlcontext, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pencodedattributes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertFreeCRLContext(pcrlcontext: Option<*const CRL_CONTEXT>) -> super::super::Foundation::BOOL { @@ -752,7 +733,7 @@ pub unsafe fn CertFreeCTLContext(pctlcontext: Option<*const CTL_CONTEXT>) -> sup #[inline] pub unsafe fn CertFreeCertificateChain(pchaincontext: *const CERT_CHAIN_CONTEXT) { windows_targets::link!("crypt32.dll" "system" fn CertFreeCertificateChain(pchaincontext : *const CERT_CHAIN_CONTEXT)); - CertFreeCertificateChain(core::mem::transmute(pchaincontext)) + CertFreeCertificateChain(pchaincontext) } #[inline] pub unsafe fn CertFreeCertificateChainEngine(hchainengine: Option) { @@ -762,7 +743,7 @@ pub unsafe fn CertFreeCertificateChainEngine(hchainengine: Option) -> super::super::Foundation::BOOL { @@ -777,72 +758,72 @@ pub unsafe fn CertFreeServerOcspResponseContext(pserverocspresponsecontext: Opti #[inline] pub unsafe fn CertGetCRLContextProperty(pcrlcontext: *const CRL_CONTEXT, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetCRLContextProperty(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); - CertGetCRLContextProperty(core::mem::transmute(pcrlcontext), core::mem::transmute(dwpropid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() + CertGetCRLContextProperty(pcrlcontext, dwpropid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn CertGetCRLFromStore(hcertstore: HCERTSTORE, pissuercontext: Option<*const CERT_CONTEXT>, pprevcrlcontext: Option<*const CRL_CONTEXT>, pdwflags: *mut u32) -> *mut CRL_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertGetCRLFromStore(hcertstore : HCERTSTORE, pissuercontext : *const CERT_CONTEXT, pprevcrlcontext : *const CRL_CONTEXT, pdwflags : *mut u32) -> *mut CRL_CONTEXT); - CertGetCRLFromStore(core::mem::transmute(hcertstore), core::mem::transmute(pissuercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevcrlcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags)) + CertGetCRLFromStore(hcertstore, core::mem::transmute(pissuercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprevcrlcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags)) } #[inline] pub unsafe fn CertGetCTLContextProperty(pctlcontext: *const CTL_CONTEXT, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetCTLContextProperty(pctlcontext : *const CTL_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); - CertGetCTLContextProperty(core::mem::transmute(pctlcontext), core::mem::transmute(dwpropid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() + CertGetCTLContextProperty(pctlcontext, dwpropid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn CertGetCertificateChain(hchainengine: Option, pcertcontext: *const CERT_CONTEXT, ptime: Option<*const super::super::Foundation::FILETIME>, hadditionalstore: Option, pchainpara: *const CERT_CHAIN_PARA, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppchaincontext: *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetCertificateChain(hchainengine : HCERTCHAINENGINE, pcertcontext : *const CERT_CONTEXT, ptime : *const super::super::Foundation:: FILETIME, hadditionalstore : HCERTSTORE, pchainpara : *const CERT_CHAIN_PARA, dwflags : u32, pvreserved : *const core::ffi::c_void, ppchaincontext : *mut *mut CERT_CHAIN_CONTEXT) -> super::super::Foundation:: BOOL); - CertGetCertificateChain(core::mem::transmute(hchainengine.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcertcontext), core::mem::transmute(ptime.unwrap_or(core::mem::zeroed())), core::mem::transmute(hadditionalstore.unwrap_or(core::mem::zeroed())), core::mem::transmute(pchainpara), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppchaincontext)).ok() + CertGetCertificateChain(core::mem::transmute(hchainengine.unwrap_or(core::mem::zeroed())), pcertcontext, core::mem::transmute(ptime.unwrap_or(core::mem::zeroed())), core::mem::transmute(hadditionalstore.unwrap_or(core::mem::zeroed())), pchainpara, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppchaincontext)).ok() } #[inline] pub unsafe fn CertGetCertificateContextProperty(pcertcontext: *const CERT_CONTEXT, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetCertificateContextProperty(pcertcontext : *const CERT_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); - CertGetCertificateContextProperty(core::mem::transmute(pcertcontext), core::mem::transmute(dwpropid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() + CertGetCertificateContextProperty(pcertcontext, dwpropid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn CertGetEnhancedKeyUsage(pcertcontext: *const CERT_CONTEXT, dwflags: u32, pusage: Option<*mut CTL_USAGE>, pcbusage: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetEnhancedKeyUsage(pcertcontext : *const CERT_CONTEXT, dwflags : u32, pusage : *mut CTL_USAGE, pcbusage : *mut u32) -> super::super::Foundation:: BOOL); - CertGetEnhancedKeyUsage(core::mem::transmute(pcertcontext), core::mem::transmute(dwflags), core::mem::transmute(pusage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbusage)).ok() + CertGetEnhancedKeyUsage(pcertcontext, dwflags, core::mem::transmute(pusage.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbusage)).ok() } #[inline] pub unsafe fn CertGetIntendedKeyUsage(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertinfo: *const CERT_INFO, pbkeyusage: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetIntendedKeyUsage(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertinfo : *const CERT_INFO, pbkeyusage : *mut u8, cbkeyusage : u32) -> super::super::Foundation:: BOOL); - CertGetIntendedKeyUsage(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pcertinfo), core::mem::transmute(pbkeyusage.as_ptr()), pbkeyusage.len().try_into().unwrap()).ok() + CertGetIntendedKeyUsage(dwcertencodingtype, pcertinfo, core::mem::transmute(pbkeyusage.as_ptr()), pbkeyusage.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn CertGetIssuerCertificateFromStore(hcertstore: HCERTSTORE, psubjectcontext: *const CERT_CONTEXT, pprevissuercontext: Option<*const CERT_CONTEXT>, pdwflags: *mut u32) -> *mut CERT_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertGetIssuerCertificateFromStore(hcertstore : HCERTSTORE, psubjectcontext : *const CERT_CONTEXT, pprevissuercontext : *const CERT_CONTEXT, pdwflags : *mut u32) -> *mut CERT_CONTEXT); - CertGetIssuerCertificateFromStore(core::mem::transmute(hcertstore), core::mem::transmute(psubjectcontext), core::mem::transmute(pprevissuercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags)) + CertGetIssuerCertificateFromStore(hcertstore, psubjectcontext, core::mem::transmute(pprevissuercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags)) } #[inline] pub unsafe fn CertGetNameStringA(pcertcontext: *const CERT_CONTEXT, dwtype: u32, dwflags: u32, pvtypepara: Option<*const core::ffi::c_void>, psznamestring: Option<&mut [u8]>) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertGetNameStringA(pcertcontext : *const CERT_CONTEXT, dwtype : u32, dwflags : u32, pvtypepara : *const core::ffi::c_void, psznamestring : windows_core::PSTR, cchnamestring : u32) -> u32); - CertGetNameStringA(core::mem::transmute(pcertcontext), core::mem::transmute(dwtype), core::mem::transmute(dwflags), core::mem::transmute(pvtypepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(psznamestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psznamestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CertGetNameStringA(pcertcontext, dwtype, dwflags, core::mem::transmute(pvtypepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(psznamestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psznamestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CertGetNameStringW(pcertcontext: *const CERT_CONTEXT, dwtype: u32, dwflags: u32, pvtypepara: Option<*const core::ffi::c_void>, psznamestring: Option<&mut [u16]>) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertGetNameStringW(pcertcontext : *const CERT_CONTEXT, dwtype : u32, dwflags : u32, pvtypepara : *const core::ffi::c_void, psznamestring : windows_core::PWSTR, cchnamestring : u32) -> u32); - CertGetNameStringW(core::mem::transmute(pcertcontext), core::mem::transmute(dwtype), core::mem::transmute(dwflags), core::mem::transmute(pvtypepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(psznamestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psznamestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CertGetNameStringW(pcertcontext, dwtype, dwflags, core::mem::transmute(pvtypepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(psznamestring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psznamestring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CertGetPublicKeyLength(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, ppublickey: *const CERT_PUBLIC_KEY_INFO) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertGetPublicKeyLength(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, ppublickey : *const CERT_PUBLIC_KEY_INFO) -> u32); - CertGetPublicKeyLength(core::mem::transmute(dwcertencodingtype), core::mem::transmute(ppublickey)) + CertGetPublicKeyLength(dwcertencodingtype, ppublickey) } #[inline] pub unsafe fn CertGetServerOcspResponseContext(hserverocspresponse: *const core::ffi::c_void, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> *mut CERT_SERVER_OCSP_RESPONSE_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertGetServerOcspResponseContext(hserverocspresponse : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> *mut CERT_SERVER_OCSP_RESPONSE_CONTEXT); - CertGetServerOcspResponseContext(core::mem::transmute(hserverocspresponse), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + CertGetServerOcspResponseContext(hserverocspresponse, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertGetStoreProperty(hcertstore: HCERTSTORE, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertGetStoreProperty(hcertstore : HCERTSTORE, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); - CertGetStoreProperty(core::mem::transmute(hcertstore), core::mem::transmute(dwpropid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() + CertGetStoreProperty(hcertstore, dwpropid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn CertGetSubjectCertificateFromStore(hcertstore: HCERTSTORE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid: *const CERT_INFO) -> *mut CERT_CONTEXT { windows_targets::link!("crypt32.dll" "system" fn CertGetSubjectCertificateFromStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid : *const CERT_INFO) -> *mut CERT_CONTEXT); - CertGetSubjectCertificateFromStore(core::mem::transmute(hcertstore), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pcertid)) + CertGetSubjectCertificateFromStore(hcertstore, dwcertencodingtype, pcertid) } #[inline] pub unsafe fn CertGetValidUsages(rghcerts: &[*const CERT_CONTEXT], cnumoids: *mut i32, rghoids: Option<*mut windows_core::PSTR>, pcboids: *mut u32) -> windows_core::Result<()> { @@ -852,7 +833,7 @@ pub unsafe fn CertGetValidUsages(rghcerts: &[*const CERT_CONTEXT], cnumoids: *mu #[inline] pub unsafe fn CertIsRDNAttrsInCertificateName(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwflags: u32, pcertname: *const CRYPT_INTEGER_BLOB, prdn: *const CERT_RDN) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertIsRDNAttrsInCertificateName(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwflags : u32, pcertname : *const CRYPT_INTEGER_BLOB, prdn : *const CERT_RDN) -> super::super::Foundation:: BOOL); - CertIsRDNAttrsInCertificateName(core::mem::transmute(dwcertencodingtype), core::mem::transmute(dwflags), core::mem::transmute(pcertname), core::mem::transmute(prdn)).ok() + CertIsRDNAttrsInCertificateName(dwcertencodingtype, dwflags, pcertname, prdn).ok() } #[inline] pub unsafe fn CertIsStrongHashToSign(pstrongsignpara: *const CERT_STRONG_SIGN_PARA, pwszcnghashalgid: P1, psigningcert: Option<*const CERT_CONTEXT>) -> windows_core::Result<()> @@ -860,12 +841,12 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertIsStrongHashToSign(pstrongsignpara : *const CERT_STRONG_SIGN_PARA, pwszcnghashalgid : windows_core::PCWSTR, psigningcert : *const CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CertIsStrongHashToSign(core::mem::transmute(pstrongsignpara), pwszcnghashalgid.param().abi(), core::mem::transmute(psigningcert.unwrap_or(core::mem::zeroed()))).ok() + CertIsStrongHashToSign(pstrongsignpara, pwszcnghashalgid.param().abi(), core::mem::transmute(psigningcert.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertIsValidCRLForCertificate(pcert: *const CERT_CONTEXT, pcrl: *const CRL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertIsValidCRLForCertificate(pcert : *const CERT_CONTEXT, pcrl : *const CRL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertIsValidCRLForCertificate(core::mem::transmute(pcert), core::mem::transmute(pcrl), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + CertIsValidCRLForCertificate(pcert, pcrl, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertIsWeakHash(dwhashusetype: u32, pwszcnghashalgid: P1, dwchainflags: u32, psignerchaincontext: Option<*const CERT_CHAIN_CONTEXT>, ptimestamp: Option<*const super::super::Foundation::FILETIME>, pwszfilename: P5) -> super::super::Foundation::BOOL @@ -874,17 +855,17 @@ where P5: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertIsWeakHash(dwhashusetype : u32, pwszcnghashalgid : windows_core::PCWSTR, dwchainflags : u32, psignerchaincontext : *const CERT_CHAIN_CONTEXT, ptimestamp : *const super::super::Foundation:: FILETIME, pwszfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CertIsWeakHash(core::mem::transmute(dwhashusetype), pwszcnghashalgid.param().abi(), core::mem::transmute(dwchainflags), core::mem::transmute(psignerchaincontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptimestamp.unwrap_or(core::mem::zeroed())), pwszfilename.param().abi()) + CertIsWeakHash(dwhashusetype, pwszcnghashalgid.param().abi(), dwchainflags, core::mem::transmute(psignerchaincontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptimestamp.unwrap_or(core::mem::zeroed())), pwszfilename.param().abi()) } #[inline] pub unsafe fn CertNameToStrA(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pname: *const CRYPT_INTEGER_BLOB, dwstrtype: CERT_STRING_TYPE, psz: Option<&mut [u8]>) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertNameToStrA(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pname : *const CRYPT_INTEGER_BLOB, dwstrtype : CERT_STRING_TYPE, psz : windows_core::PSTR, csz : u32) -> u32); - CertNameToStrA(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pname), core::mem::transmute(dwstrtype), core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CertNameToStrA(dwcertencodingtype, pname, dwstrtype, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CertNameToStrW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pname: *const CRYPT_INTEGER_BLOB, dwstrtype: CERT_STRING_TYPE, psz: Option<&mut [u16]>) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertNameToStrW(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pname : *const CRYPT_INTEGER_BLOB, dwstrtype : CERT_STRING_TYPE, psz : windows_core::PWSTR, csz : u32) -> u32); - CertNameToStrW(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pname), core::mem::transmute(dwstrtype), core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CertNameToStrW(dwcertencodingtype, pname, dwstrtype, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CertOIDToAlgId(pszobjid: P0) -> u32 @@ -897,7 +878,7 @@ where #[inline] pub unsafe fn CertOpenServerOcspResponse(pchaincontext: *const CERT_CHAIN_CONTEXT, dwflags: u32, popenpara: Option<*const CERT_SERVER_OCSP_RESPONSE_OPEN_PARA>) -> *mut core::ffi::c_void { windows_targets::link!("crypt32.dll" "system" fn CertOpenServerOcspResponse(pchaincontext : *const CERT_CHAIN_CONTEXT, dwflags : u32, popenpara : *const CERT_SERVER_OCSP_RESPONSE_OPEN_PARA) -> *mut core::ffi::c_void); - CertOpenServerOcspResponse(core::mem::transmute(pchaincontext), core::mem::transmute(dwflags), core::mem::transmute(popenpara.unwrap_or(core::mem::zeroed()))) + CertOpenServerOcspResponse(pchaincontext, dwflags, core::mem::transmute(popenpara.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertOpenStore(lpszstoreprovider: P0, dwencodingtype: CERT_QUERY_ENCODING_TYPE, hcryptprov: Option, dwflags: CERT_OPEN_STORE_FLAGS, pvpara: Option<*const core::ffi::c_void>) -> windows_core::Result @@ -905,7 +886,7 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertOpenStore(lpszstoreprovider : windows_core::PCSTR, dwencodingtype : CERT_QUERY_ENCODING_TYPE, hcryptprov : HCRYPTPROV_LEGACY, dwflags : CERT_OPEN_STORE_FLAGS, pvpara : *const core::ffi::c_void) -> HCERTSTORE); - let result__ = CertOpenStore(lpszstoreprovider.param().abi(), core::mem::transmute(dwencodingtype), core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pvpara.unwrap_or(core::mem::zeroed()))); + let result__ = CertOpenStore(lpszstoreprovider.param().abi(), dwencodingtype, core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pvpara.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -929,12 +910,12 @@ where #[inline] pub unsafe fn CertRDNValueToStrA(dwvaluetype: u32, pvalue: *const CRYPT_INTEGER_BLOB, psz: Option<&mut [u8]>) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertRDNValueToStrA(dwvaluetype : u32, pvalue : *const CRYPT_INTEGER_BLOB, psz : windows_core::PSTR, csz : u32) -> u32); - CertRDNValueToStrA(core::mem::transmute(dwvaluetype), core::mem::transmute(pvalue), core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CertRDNValueToStrA(dwvaluetype, pvalue, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CertRDNValueToStrW(dwvaluetype: u32, pvalue: *const CRYPT_INTEGER_BLOB, psz: Option<&mut [u16]>) -> u32 { windows_targets::link!("crypt32.dll" "system" fn CertRDNValueToStrW(dwvaluetype : u32, pvalue : *const CRYPT_INTEGER_BLOB, psz : windows_core::PWSTR, csz : u32) -> u32); - CertRDNValueToStrW(core::mem::transmute(dwvaluetype), core::mem::transmute(pvalue), core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CertRDNValueToStrW(dwvaluetype, pvalue, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CertRegisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P2, pstoreinfo: *const CERT_PHYSICAL_STORE_INFO, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -942,12 +923,12 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertRegisterPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pwszstorename : windows_core::PCWSTR, pstoreinfo : *const CERT_PHYSICAL_STORE_INFO, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertRegisterPhysicalStore(core::mem::transmute(pvsystemstore), core::mem::transmute(dwflags), pwszstorename.param().abi(), core::mem::transmute(pstoreinfo), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + CertRegisterPhysicalStore(pvsystemstore, dwflags, pwszstorename.param().abi(), pstoreinfo, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertRegisterSystemStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pstoreinfo: Option<*const CERT_SYSTEM_STORE_INFO>, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertRegisterSystemStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pstoreinfo : *const CERT_SYSTEM_STORE_INFO, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertRegisterSystemStore(core::mem::transmute(pvsystemstore), core::mem::transmute(dwflags), core::mem::transmute(pstoreinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + CertRegisterSystemStore(pvsystemstore, dwflags, core::mem::transmute(pstoreinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext: *const CERT_CONTEXT, pszusageidentifier: P1) -> windows_core::Result<()> @@ -955,12 +936,12 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CertRemoveEnhancedKeyUsageIdentifier(core::mem::transmute(pcertcontext), pszusageidentifier.param().abi()).ok() + CertRemoveEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.param().abi()).ok() } #[inline] pub unsafe fn CertRemoveStoreFromCollection(hcollectionstore: HCERTSTORE, hsiblingstore: HCERTSTORE) { windows_targets::link!("crypt32.dll" "system" fn CertRemoveStoreFromCollection(hcollectionstore : HCERTSTORE, hsiblingstore : HCERTSTORE)); - CertRemoveStoreFromCollection(core::mem::transmute(hcollectionstore), core::mem::transmute(hsiblingstore)) + CertRemoveStoreFromCollection(hcollectionstore, hsiblingstore) } #[inline] pub unsafe fn CertResyncCertificateChainEngine(hchainengine: Option) -> windows_core::Result<()> { @@ -973,62 +954,62 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertRetrieveLogoOrBiometricInfo(pcertcontext : *const CERT_CONTEXT, lpszlogoorbiometrictype : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, dwflags : u32, pvreserved : *const core::ffi::c_void, ppbdata : *mut *mut u8, pcbdata : *mut u32, ppwszmimetype : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - CertRetrieveLogoOrBiometricInfo(core::mem::transmute(pcertcontext), lpszlogoorbiometrictype.param().abi(), core::mem::transmute(dwretrievalflags), core::mem::transmute(dwtimeout), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbdata), core::mem::transmute(pcbdata), core::mem::transmute(ppwszmimetype.unwrap_or(core::mem::zeroed()))).ok() + CertRetrieveLogoOrBiometricInfo(pcertcontext, lpszlogoorbiometrictype.param().abi(), dwretrievalflags, dwtimeout, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbdata), core::mem::transmute(pcbdata), core::mem::transmute(ppwszmimetype.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertSaveStore(hcertstore: HCERTSTORE, dwencodingtype: CERT_QUERY_ENCODING_TYPE, dwsaveas: CERT_STORE_SAVE_AS, dwsaveto: CERT_STORE_SAVE_TO, pvsavetopara: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSaveStore(hcertstore : HCERTSTORE, dwencodingtype : CERT_QUERY_ENCODING_TYPE, dwsaveas : CERT_STORE_SAVE_AS, dwsaveto : CERT_STORE_SAVE_TO, pvsavetopara : *mut core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); - CertSaveStore(core::mem::transmute(hcertstore), core::mem::transmute(dwencodingtype), core::mem::transmute(dwsaveas), core::mem::transmute(dwsaveto), core::mem::transmute(pvsavetopara), core::mem::transmute(dwflags)).ok() + CertSaveStore(hcertstore, dwencodingtype, dwsaveas, dwsaveto, core::mem::transmute(pvsavetopara), dwflags).ok() } #[inline] pub unsafe fn CertSelectCertificateChains(pselectioncontext: Option<*const windows_core::GUID>, dwflags: u32, pchainparameters: Option<*const CERT_SELECT_CHAIN_PARA>, rgpcriteria: Option<&[CERT_SELECT_CRITERIA]>, hstore: HCERTSTORE, pcselection: *mut u32, pprgpselection: *mut *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSelectCertificateChains(pselectioncontext : *const windows_core::GUID, dwflags : u32, pchainparameters : *const CERT_SELECT_CHAIN_PARA, ccriteria : u32, rgpcriteria : *const CERT_SELECT_CRITERIA, hstore : HCERTSTORE, pcselection : *mut u32, pprgpselection : *mut *mut *mut CERT_CHAIN_CONTEXT) -> super::super::Foundation:: BOOL); - CertSelectCertificateChains(core::mem::transmute(pselectioncontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pchainparameters.unwrap_or(core::mem::zeroed())), rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(hstore), core::mem::transmute(pcselection), core::mem::transmute(pprgpselection)).ok() + CertSelectCertificateChains(core::mem::transmute(pselectioncontext.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pchainparameters.unwrap_or(core::mem::zeroed())), rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), hstore, core::mem::transmute(pcselection), core::mem::transmute(pprgpselection)).ok() } #[inline] pub unsafe fn CertSerializeCRLStoreElement(pcrlcontext: *const CRL_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSerializeCRLStoreElement(pcrlcontext : *const CRL_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> super::super::Foundation:: BOOL); - CertSerializeCRLStoreElement(core::mem::transmute(pcrlcontext), core::mem::transmute(dwflags), core::mem::transmute(pbelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbelement)).ok() + CertSerializeCRLStoreElement(pcrlcontext, dwflags, core::mem::transmute(pbelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbelement)).ok() } #[inline] pub unsafe fn CertSerializeCTLStoreElement(pctlcontext: *const CTL_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSerializeCTLStoreElement(pctlcontext : *const CTL_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> super::super::Foundation:: BOOL); - CertSerializeCTLStoreElement(core::mem::transmute(pctlcontext), core::mem::transmute(dwflags), core::mem::transmute(pbelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbelement)).ok() + CertSerializeCTLStoreElement(pctlcontext, dwflags, core::mem::transmute(pbelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbelement)).ok() } #[inline] pub unsafe fn CertSerializeCertificateStoreElement(pcertcontext: *const CERT_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSerializeCertificateStoreElement(pcertcontext : *const CERT_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> super::super::Foundation:: BOOL); - CertSerializeCertificateStoreElement(core::mem::transmute(pcertcontext), core::mem::transmute(dwflags), core::mem::transmute(pbelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbelement)).ok() + CertSerializeCertificateStoreElement(pcertcontext, dwflags, core::mem::transmute(pbelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbelement)).ok() } #[inline] pub unsafe fn CertSetCRLContextProperty(pcrlcontext: *const CRL_CONTEXT, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSetCRLContextProperty(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertSetCRLContextProperty(core::mem::transmute(pcrlcontext), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() + CertSetCRLContextProperty(pcrlcontext, dwpropid, dwflags, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertSetCTLContextProperty(pctlcontext: *const CTL_CONTEXT, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSetCTLContextProperty(pctlcontext : *const CTL_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertSetCTLContextProperty(core::mem::transmute(pctlcontext), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() + CertSetCTLContextProperty(pctlcontext, dwpropid, dwflags, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext: *const CERT_CONTEXT, pctlentry: *const CTL_ENTRY, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext : *const CERT_CONTEXT, pctlentry : *const CTL_ENTRY, dwflags : u32) -> super::super::Foundation:: BOOL); - CertSetCertificateContextPropertiesFromCTLEntry(core::mem::transmute(pcertcontext), core::mem::transmute(pctlentry), core::mem::transmute(dwflags)).ok() + CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext, pctlentry, dwflags).ok() } #[inline] pub unsafe fn CertSetCertificateContextProperty(pcertcontext: *const CERT_CONTEXT, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSetCertificateContextProperty(pcertcontext : *const CERT_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertSetCertificateContextProperty(core::mem::transmute(pcertcontext), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() + CertSetCertificateContextProperty(pcertcontext, dwpropid, dwflags, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertSetEnhancedKeyUsage(pcertcontext: *const CERT_CONTEXT, pusage: Option<*const CTL_USAGE>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertSetEnhancedKeyUsage(pcertcontext : *const CERT_CONTEXT, pusage : *const CTL_USAGE) -> super::super::Foundation:: BOOL); - CertSetEnhancedKeyUsage(core::mem::transmute(pcertcontext), core::mem::transmute(pusage.unwrap_or(core::mem::zeroed()))).ok() + CertSetEnhancedKeyUsage(pcertcontext, core::mem::transmute(pusage.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertSetStoreProperty(hcertstore: HCERTSTORE, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertSetStoreProperty(hcertstore : HCERTSTORE, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CertSetStoreProperty(core::mem::transmute(hcertstore), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))) + CertSetStoreProperty(hcertstore, dwpropid, dwflags, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CertStrToNameA(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P1, dwstrtype: CERT_STRING_TYPE, pvreserved: Option<*const core::ffi::c_void>, pbencoded: Option<*mut u8>, pcbencoded: *mut u32, ppszerror: Option<*mut windows_core::PCSTR>) -> windows_core::Result<()> @@ -1036,7 +1017,7 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertStrToNameA(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszx500 : windows_core::PCSTR, dwstrtype : CERT_STRING_TYPE, pvreserved : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32, ppszerror : *mut windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CertStrToNameA(core::mem::transmute(dwcertencodingtype), pszx500.param().abi(), core::mem::transmute(dwstrtype), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded), core::mem::transmute(ppszerror.unwrap_or(core::mem::zeroed()))).ok() + CertStrToNameA(dwcertencodingtype, pszx500.param().abi(), dwstrtype, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded), core::mem::transmute(ppszerror.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertStrToNameW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P1, dwstrtype: CERT_STRING_TYPE, pvreserved: Option<*const core::ffi::c_void>, pbencoded: Option<*mut u8>, pcbencoded: *mut u32, ppszerror: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> @@ -1044,7 +1025,7 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertStrToNameW(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszx500 : windows_core::PCWSTR, dwstrtype : CERT_STRING_TYPE, pvreserved : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32, ppszerror : *mut windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CertStrToNameW(core::mem::transmute(dwcertencodingtype), pszx500.param().abi(), core::mem::transmute(dwstrtype), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded), core::mem::transmute(ppszerror.unwrap_or(core::mem::zeroed()))).ok() + CertStrToNameW(dwcertencodingtype, pszx500.param().abi(), dwstrtype, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded), core::mem::transmute(ppszerror.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CertUnregisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P2) -> super::super::Foundation::BOOL @@ -1052,27 +1033,27 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertUnregisterPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pwszstorename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CertUnregisterPhysicalStore(core::mem::transmute(pvsystemstore), core::mem::transmute(dwflags), pwszstorename.param().abi()) + CertUnregisterPhysicalStore(pvsystemstore, dwflags, pwszstorename.param().abi()) } #[inline] pub unsafe fn CertUnregisterSystemStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertUnregisterSystemStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); - CertUnregisterSystemStore(core::mem::transmute(pvsystemstore), core::mem::transmute(dwflags)) + CertUnregisterSystemStore(pvsystemstore, dwflags) } #[inline] pub unsafe fn CertVerifyCRLRevocation(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid: *const CERT_INFO, rgpcrlinfo: &[*const CRL_INFO]) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertVerifyCRLRevocation(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid : *const CERT_INFO, ccrlinfo : u32, rgpcrlinfo : *const *const CRL_INFO) -> super::super::Foundation:: BOOL); - CertVerifyCRLRevocation(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pcertid), rgpcrlinfo.len().try_into().unwrap(), core::mem::transmute(rgpcrlinfo.as_ptr())) + CertVerifyCRLRevocation(dwcertencodingtype, pcertid, rgpcrlinfo.len().try_into().unwrap(), core::mem::transmute(rgpcrlinfo.as_ptr())) } #[inline] pub unsafe fn CertVerifyCRLTimeValidity(ptimetoverify: Option<*const super::super::Foundation::FILETIME>, pcrlinfo: *const CRL_INFO) -> i32 { windows_targets::link!("crypt32.dll" "system" fn CertVerifyCRLTimeValidity(ptimetoverify : *const super::super::Foundation:: FILETIME, pcrlinfo : *const CRL_INFO) -> i32); - CertVerifyCRLTimeValidity(core::mem::transmute(ptimetoverify.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcrlinfo)) + CertVerifyCRLTimeValidity(core::mem::transmute(ptimetoverify.unwrap_or(core::mem::zeroed())), pcrlinfo) } #[inline] pub unsafe fn CertVerifyCTLUsage(dwencodingtype: u32, dwsubjecttype: u32, pvsubject: *const core::ffi::c_void, psubjectusage: *const CTL_USAGE, dwflags: u32, pverifyusagepara: Option<*const CTL_VERIFY_USAGE_PARA>, pverifyusagestatus: *mut CTL_VERIFY_USAGE_STATUS) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertVerifyCTLUsage(dwencodingtype : u32, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, psubjectusage : *const CTL_USAGE, dwflags : u32, pverifyusagepara : *const CTL_VERIFY_USAGE_PARA, pverifyusagestatus : *mut CTL_VERIFY_USAGE_STATUS) -> super::super::Foundation:: BOOL); - CertVerifyCTLUsage(core::mem::transmute(dwencodingtype), core::mem::transmute(dwsubjecttype), core::mem::transmute(pvsubject), core::mem::transmute(psubjectusage), core::mem::transmute(dwflags), core::mem::transmute(pverifyusagepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pverifyusagestatus)).ok() + CertVerifyCTLUsage(dwencodingtype, dwsubjecttype, pvsubject, psubjectusage, dwflags, core::mem::transmute(pverifyusagepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pverifyusagestatus)).ok() } #[inline] pub unsafe fn CertVerifyCertificateChainPolicy(pszpolicyoid: P0, pchaincontext: *const CERT_CHAIN_CONTEXT, ppolicypara: *const CERT_CHAIN_POLICY_PARA, ppolicystatus: *mut CERT_CHAIN_POLICY_STATUS) -> super::super::Foundation::BOOL @@ -1080,37 +1061,37 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertVerifyCertificateChainPolicy(pszpolicyoid : windows_core::PCSTR, pchaincontext : *const CERT_CHAIN_CONTEXT, ppolicypara : *const CERT_CHAIN_POLICY_PARA, ppolicystatus : *mut CERT_CHAIN_POLICY_STATUS) -> super::super::Foundation:: BOOL); - CertVerifyCertificateChainPolicy(pszpolicyoid.param().abi(), core::mem::transmute(pchaincontext), core::mem::transmute(ppolicypara), core::mem::transmute(ppolicystatus)) + CertVerifyCertificateChainPolicy(pszpolicyoid.param().abi(), pchaincontext, ppolicypara, core::mem::transmute(ppolicystatus)) } #[inline] pub unsafe fn CertVerifyRevocation(dwencodingtype: u32, dwrevtype: u32, rgpvcontext: &[*const core::ffi::c_void], dwflags: u32, prevpara: Option<*const CERT_REVOCATION_PARA>, prevstatus: *mut CERT_REVOCATION_STATUS) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertVerifyRevocation(dwencodingtype : u32, dwrevtype : u32, ccontext : u32, rgpvcontext : *const *const core::ffi::c_void, dwflags : u32, prevpara : *const CERT_REVOCATION_PARA, prevstatus : *mut CERT_REVOCATION_STATUS) -> super::super::Foundation:: BOOL); - CertVerifyRevocation(core::mem::transmute(dwencodingtype), core::mem::transmute(dwrevtype), rgpvcontext.len().try_into().unwrap(), core::mem::transmute(rgpvcontext.as_ptr()), core::mem::transmute(dwflags), core::mem::transmute(prevpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(prevstatus)).ok() + CertVerifyRevocation(dwencodingtype, dwrevtype, rgpvcontext.len().try_into().unwrap(), core::mem::transmute(rgpvcontext.as_ptr()), dwflags, core::mem::transmute(prevpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(prevstatus)).ok() } #[inline] pub unsafe fn CertVerifySubjectCertificateContext(psubject: *const CERT_CONTEXT, pissuer: Option<*const CERT_CONTEXT>, pdwflags: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CertVerifySubjectCertificateContext(psubject : *const CERT_CONTEXT, pissuer : *const CERT_CONTEXT, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); - CertVerifySubjectCertificateContext(core::mem::transmute(psubject), core::mem::transmute(pissuer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags)).ok() + CertVerifySubjectCertificateContext(psubject, core::mem::transmute(pissuer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags)).ok() } #[inline] pub unsafe fn CertVerifyTimeValidity(ptimetoverify: Option<*const super::super::Foundation::FILETIME>, pcertinfo: *const CERT_INFO) -> i32 { windows_targets::link!("crypt32.dll" "system" fn CertVerifyTimeValidity(ptimetoverify : *const super::super::Foundation:: FILETIME, pcertinfo : *const CERT_INFO) -> i32); - CertVerifyTimeValidity(core::mem::transmute(ptimetoverify.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcertinfo)) + CertVerifyTimeValidity(core::mem::transmute(ptimetoverify.unwrap_or(core::mem::zeroed())), pcertinfo) } #[inline] pub unsafe fn CertVerifyValidityNesting(psubjectinfo: *const CERT_INFO, pissuerinfo: *const CERT_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CertVerifyValidityNesting(psubjectinfo : *const CERT_INFO, pissuerinfo : *const CERT_INFO) -> super::super::Foundation:: BOOL); - CertVerifyValidityNesting(core::mem::transmute(psubjectinfo), core::mem::transmute(pissuerinfo)) + CertVerifyValidityNesting(psubjectinfo, pissuerinfo) } #[inline] pub unsafe fn CloseCryptoHandle(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn CloseCryptoHandle(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::HRESULT); - CloseCryptoHandle(core::mem::transmute(hcrypto)).ok() + CloseCryptoHandle(hcrypto).ok() } #[inline] pub unsafe fn CryptAcquireCertificatePrivateKey(pcert: *const CERT_CONTEXT, dwflags: CRYPT_ACQUIRE_FLAGS, pvparameters: Option<*const core::ffi::c_void>, phcryptprovorncryptkey: *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, pdwkeyspec: Option<*mut CERT_KEY_SPEC>, pfcallerfreeprovorncryptkey: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptAcquireCertificatePrivateKey(pcert : *const CERT_CONTEXT, dwflags : CRYPT_ACQUIRE_FLAGS, pvparameters : *const core::ffi::c_void, phcryptprovorncryptkey : *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, pdwkeyspec : *mut CERT_KEY_SPEC, pfcallerfreeprovorncryptkey : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CryptAcquireCertificatePrivateKey(core::mem::transmute(pcert), core::mem::transmute(dwflags), core::mem::transmute(pvparameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcryptprovorncryptkey), core::mem::transmute(pdwkeyspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcallerfreeprovorncryptkey.unwrap_or(core::mem::zeroed()))).ok() + CryptAcquireCertificatePrivateKey(pcert, dwflags, core::mem::transmute(pvparameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcryptprovorncryptkey), core::mem::transmute(pdwkeyspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfcallerfreeprovorncryptkey.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptAcquireContextA(phprov: *mut usize, szcontainer: P1, szprovider: P2, dwprovtype: u32, dwflags: u32) -> windows_core::Result<()> @@ -1119,7 +1100,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptAcquireContextA(phprov : *mut usize, szcontainer : windows_core::PCSTR, szprovider : windows_core::PCSTR, dwprovtype : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptAcquireContextA(core::mem::transmute(phprov), szcontainer.param().abi(), szprovider.param().abi(), core::mem::transmute(dwprovtype), core::mem::transmute(dwflags)).ok() + CryptAcquireContextA(core::mem::transmute(phprov), szcontainer.param().abi(), szprovider.param().abi(), dwprovtype, dwflags).ok() } #[inline] pub unsafe fn CryptAcquireContextW(phprov: *mut usize, szcontainer: P1, szprovider: P2, dwprovtype: u32, dwflags: u32) -> windows_core::Result<()> @@ -1128,17 +1109,17 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptAcquireContextW(phprov : *mut usize, szcontainer : windows_core::PCWSTR, szprovider : windows_core::PCWSTR, dwprovtype : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptAcquireContextW(core::mem::transmute(phprov), szcontainer.param().abi(), szprovider.param().abi(), core::mem::transmute(dwprovtype), core::mem::transmute(dwflags)).ok() + CryptAcquireContextW(core::mem::transmute(phprov), szcontainer.param().abi(), szprovider.param().abi(), dwprovtype, dwflags).ok() } #[inline] pub unsafe fn CryptBinaryToStringA(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: Option, pcchstring: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptBinaryToStringA(pbbinary : *const u8, cbbinary : u32, dwflags : CRYPT_STRING, pszstring : windows_core::PSTR, pcchstring : *mut u32) -> super::super::Foundation:: BOOL); - CryptBinaryToStringA(core::mem::transmute(pbbinary.as_ptr()), pbbinary.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pszstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchstring)) + CryptBinaryToStringA(core::mem::transmute(pbbinary.as_ptr()), pbbinary.len().try_into().unwrap(), dwflags, core::mem::transmute(pszstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchstring)) } #[inline] pub unsafe fn CryptBinaryToStringW(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: Option, pcchstring: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptBinaryToStringW(pbbinary : *const u8, cbbinary : u32, dwflags : CRYPT_STRING, pszstring : windows_core::PWSTR, pcchstring : *mut u32) -> super::super::Foundation:: BOOL); - CryptBinaryToStringW(core::mem::transmute(pbbinary.as_ptr()), pbbinary.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pszstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchstring)) + CryptBinaryToStringW(core::mem::transmute(pbbinary.as_ptr()), pbbinary.len().try_into().unwrap(), dwflags, core::mem::transmute(pszstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchstring)) } #[inline] pub unsafe fn CryptCloseAsyncHandle(hasync: Option) -> super::super::Foundation::BOOL { @@ -1148,17 +1129,17 @@ pub unsafe fn CryptCloseAsyncHandle(hasync: Option) -> super::super #[inline] pub unsafe fn CryptContextAddRef(hprov: usize, pdwreserved: Option<*const u32>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptContextAddRef(hprov : usize, pdwreserved : *const u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptContextAddRef(core::mem::transmute(hprov), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + CryptContextAddRef(hprov, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn CryptCreateAsyncHandle(dwflags: u32, phasync: *mut HCRYPTASYNC) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptCreateAsyncHandle(dwflags : u32, phasync : *mut HCRYPTASYNC) -> super::super::Foundation:: BOOL); - CryptCreateAsyncHandle(core::mem::transmute(dwflags), core::mem::transmute(phasync)) + CryptCreateAsyncHandle(dwflags, core::mem::transmute(phasync)) } #[inline] pub unsafe fn CryptCreateHash(hprov: usize, algid: ALG_ID, hkey: usize, dwflags: u32, phhash: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptCreateHash(hprov : usize, algid : ALG_ID, hkey : usize, dwflags : u32, phhash : *mut usize) -> super::super::Foundation:: BOOL); - CryptCreateHash(core::mem::transmute(hprov), core::mem::transmute(algid), core::mem::transmute(hkey), core::mem::transmute(dwflags), core::mem::transmute(phhash)).ok() + CryptCreateHash(hprov, algid, hkey, dwflags, core::mem::transmute(phhash)).ok() } #[inline] pub unsafe fn CryptCreateKeyIdentifierFromCSP(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpubkeyoid: P1, ppubkeystruc: *const PUBLICKEYSTRUC, cbpubkeystruc: u32, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pbhash: Option<*mut u8>, pcbhash: *mut u32) -> windows_core::Result<()> @@ -1166,19 +1147,19 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptCreateKeyIdentifierFromCSP(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpubkeyoid : windows_core::PCSTR, ppubkeystruc : *const PUBLICKEYSTRUC, cbpubkeystruc : u32, dwflags : u32, pvreserved : *const core::ffi::c_void, pbhash : *mut u8, pcbhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptCreateKeyIdentifierFromCSP(core::mem::transmute(dwcertencodingtype), pszpubkeyoid.param().abi(), core::mem::transmute(ppubkeystruc), core::mem::transmute(cbpubkeystruc), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhash)).ok() + CryptCreateKeyIdentifierFromCSP(dwcertencodingtype, pszpubkeyoid.param().abi(), ppubkeystruc, cbpubkeystruc, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhash)).ok() } #[inline] pub unsafe fn CryptDecodeMessage(dwmsgtypeflags: u32, pdecryptpara: Option<*const CRYPT_DECRYPT_MESSAGE_PARA>, pverifypara: Option<*const CRYPT_VERIFY_MESSAGE_PARA>, dwsignerindex: u32, pbencodedblob: &[u8], dwprevinnercontenttype: u32, pdwmsgtype: Option<*mut u32>, pdwinnercontenttype: Option<*mut u32>, pbdecoded: Option<*mut u8>, pcbdecoded: Option<*mut u32>, ppxchgcert: Option<*mut *mut CERT_CONTEXT>, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptDecodeMessage(dwmsgtypeflags : u32, pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbencodedblob : *const u8, cbencodedblob : u32, dwprevinnercontenttype : u32, pdwmsgtype : *mut u32, pdwinnercontenttype : *mut u32, pbdecoded : *mut u8, pcbdecoded : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); CryptDecodeMessage( - core::mem::transmute(dwmsgtypeflags), + dwmsgtypeflags, core::mem::transmute(pdecryptpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pverifypara.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwsignerindex), + dwsignerindex, core::mem::transmute(pbencodedblob.as_ptr()), pbencodedblob.len().try_into().unwrap(), - core::mem::transmute(dwprevinnercontenttype), + dwprevinnercontenttype, core::mem::transmute(pdwmsgtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwinnercontenttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbdecoded.unwrap_or(core::mem::zeroed())), @@ -1194,7 +1175,7 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptDecodeObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pvstructinfo : *mut core::ffi::c_void, pcbstructinfo : *mut u32) -> super::super::Foundation:: BOOL); - CryptDecodeObject(core::mem::transmute(dwcertencodingtype), lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pvstructinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbstructinfo)).ok() + CryptDecodeObject(dwcertencodingtype, lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, core::mem::transmute(pvstructinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbstructinfo)).ok() } #[inline] pub unsafe fn CryptDecodeObjectEx(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P1, pbencoded: &[u8], dwflags: u32, pdecodepara: Option<*const CRYPT_DECODE_PARA>, pvstructinfo: Option<*mut core::ffi::c_void>, pcbstructinfo: *mut u32) -> windows_core::Result<()> @@ -1202,47 +1183,47 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptDecodeObjectEx(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pdecodepara : *const CRYPT_DECODE_PARA, pvstructinfo : *mut core::ffi::c_void, pcbstructinfo : *mut u32) -> super::super::Foundation:: BOOL); - CryptDecodeObjectEx(core::mem::transmute(dwcertencodingtype), lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pdecodepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvstructinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbstructinfo)).ok() + CryptDecodeObjectEx(dwcertencodingtype, lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, core::mem::transmute(pdecodepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvstructinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbstructinfo)).ok() } #[inline] pub unsafe fn CryptDecrypt(hkey: usize, hhash: usize, r#final: bool, dwflags: u32, pbdata: *mut u8, pdwdatalen: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptDecrypt(hkey : usize, hhash : usize, r#final : super::super::Foundation:: BOOL, dwflags : u32, pbdata : *mut u8, pdwdatalen : *mut u32) -> super::super::Foundation:: BOOL); - CryptDecrypt(core::mem::transmute(hkey), core::mem::transmute(hhash), r#final.into(), core::mem::transmute(dwflags), core::mem::transmute(pbdata), core::mem::transmute(pdwdatalen)).ok() + CryptDecrypt(hkey, hhash, r#final.into(), dwflags, core::mem::transmute(pbdata), core::mem::transmute(pdwdatalen)).ok() } #[inline] pub unsafe fn CryptDecryptAndVerifyMessageSignature(pdecryptpara: *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara: *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex: u32, pbencryptedblob: &[u8], pbdecrypted: Option<*mut u8>, pcbdecrypted: Option<*mut u32>, ppxchgcert: Option<*mut *mut CERT_CONTEXT>, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptDecryptAndVerifyMessageSignature(pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbencryptedblob : *const u8, cbencryptedblob : u32, pbdecrypted : *mut u8, pcbdecrypted : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CryptDecryptAndVerifyMessageSignature(core::mem::transmute(pdecryptpara), core::mem::transmute(pverifypara), core::mem::transmute(dwsignerindex), core::mem::transmute(pbencryptedblob.as_ptr()), pbencryptedblob.len().try_into().unwrap(), core::mem::transmute(pbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppxchgcert.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsignercert.unwrap_or(core::mem::zeroed()))).ok() + CryptDecryptAndVerifyMessageSignature(pdecryptpara, pverifypara, dwsignerindex, core::mem::transmute(pbencryptedblob.as_ptr()), pbencryptedblob.len().try_into().unwrap(), core::mem::transmute(pbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppxchgcert.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsignercert.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptDecryptMessage(pdecryptpara: *const CRYPT_DECRYPT_MESSAGE_PARA, pbencryptedblob: &[u8], pbdecrypted: Option<*mut u8>, pcbdecrypted: Option<*mut u32>, ppxchgcert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptDecryptMessage(pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pbencryptedblob : *const u8, cbencryptedblob : u32, pbdecrypted : *mut u8, pcbdecrypted : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CryptDecryptMessage(core::mem::transmute(pdecryptpara), core::mem::transmute(pbencryptedblob.as_ptr()), pbencryptedblob.len().try_into().unwrap(), core::mem::transmute(pbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppxchgcert.unwrap_or(core::mem::zeroed()))).ok() + CryptDecryptMessage(pdecryptpara, core::mem::transmute(pbencryptedblob.as_ptr()), pbencryptedblob.len().try_into().unwrap(), core::mem::transmute(pbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecrypted.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppxchgcert.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptDeriveKey(hprov: usize, algid: ALG_ID, hbasedata: usize, dwflags: u32, phkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptDeriveKey(hprov : usize, algid : ALG_ID, hbasedata : usize, dwflags : u32, phkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptDeriveKey(core::mem::transmute(hprov), core::mem::transmute(algid), core::mem::transmute(hbasedata), core::mem::transmute(dwflags), core::mem::transmute(phkey)).ok() + CryptDeriveKey(hprov, algid, hbasedata, dwflags, core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptDestroyHash(hhash: usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptDestroyHash(hhash : usize) -> super::super::Foundation:: BOOL); - CryptDestroyHash(core::mem::transmute(hhash)).ok() + CryptDestroyHash(hhash).ok() } #[inline] pub unsafe fn CryptDestroyKey(hkey: usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptDestroyKey(hkey : usize) -> super::super::Foundation:: BOOL); - CryptDestroyKey(core::mem::transmute(hkey)).ok() + CryptDestroyKey(hkey).ok() } #[inline] pub unsafe fn CryptDuplicateHash(hhash: usize, pdwreserved: Option<*const u32>, dwflags: u32, phhash: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptDuplicateHash(hhash : usize, pdwreserved : *const u32, dwflags : u32, phhash : *mut usize) -> super::super::Foundation:: BOOL); - CryptDuplicateHash(core::mem::transmute(hhash), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(phhash)).ok() + CryptDuplicateHash(hhash, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(phhash)).ok() } #[inline] pub unsafe fn CryptDuplicateKey(hkey: usize, pdwreserved: Option<*const u32>, dwflags: u32, phkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptDuplicateKey(hkey : usize, pdwreserved : *const u32, dwflags : u32, phkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptDuplicateKey(core::mem::transmute(hkey), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(phkey)).ok() + CryptDuplicateKey(hkey, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptEncodeObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P1, pvstructinfo: *const core::ffi::c_void, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> @@ -1250,7 +1231,7 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptEncodeObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); - CryptEncodeObject(core::mem::transmute(dwcertencodingtype), lpszstructtype.param().abi(), core::mem::transmute(pvstructinfo), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() + CryptEncodeObject(dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() } #[inline] pub unsafe fn CryptEncodeObjectEx(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P1, pvstructinfo: *const core::ffi::c_void, dwflags: CRYPT_ENCODE_OBJECT_FLAGS, pencodepara: Option<*const CRYPT_ENCODE_PARA>, pvencoded: Option<*mut core::ffi::c_void>, pcbencoded: *mut u32) -> windows_core::Result<()> @@ -1258,17 +1239,17 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptEncodeObjectEx(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, dwflags : CRYPT_ENCODE_OBJECT_FLAGS, pencodepara : *const CRYPT_ENCODE_PARA, pvencoded : *mut core::ffi::c_void, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); - CryptEncodeObjectEx(core::mem::transmute(dwcertencodingtype), lpszstructtype.param().abi(), core::mem::transmute(pvstructinfo), core::mem::transmute(dwflags), core::mem::transmute(pencodepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() + CryptEncodeObjectEx(dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, dwflags, core::mem::transmute(pencodepara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() } #[inline] pub unsafe fn CryptEncrypt(hkey: usize, hhash: usize, r#final: bool, dwflags: u32, pbdata: Option<&mut [u8]>, pdwdatalen: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptEncrypt(hkey : usize, hhash : usize, r#final : super::super::Foundation:: BOOL, dwflags : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwbuflen : u32) -> super::super::Foundation:: BOOL); - CryptEncrypt(core::mem::transmute(hkey), core::mem::transmute(hhash), r#final.into(), core::mem::transmute(dwflags), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwdatalen), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + CryptEncrypt(hkey, hhash, r#final.into(), dwflags, core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwdatalen), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn CryptEncryptMessage(pencryptpara: *const CRYPT_ENCRYPT_MESSAGE_PARA, rgprecipientcert: &[*const CERT_CONTEXT], pbtobeencrypted: Option<&[u8]>, pbencryptedblob: Option<*mut u8>, pcbencryptedblob: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptEncryptMessage(pencryptpara : *const CRYPT_ENCRYPT_MESSAGE_PARA, crecipientcert : u32, rgprecipientcert : *const *const CERT_CONTEXT, pbtobeencrypted : *const u8, cbtobeencrypted : u32, pbencryptedblob : *mut u8, pcbencryptedblob : *mut u32) -> super::super::Foundation:: BOOL); - CryptEncryptMessage(core::mem::transmute(pencryptpara), rgprecipientcert.len().try_into().unwrap(), core::mem::transmute(rgprecipientcert.as_ptr()), core::mem::transmute(pbtobeencrypted.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbtobeencrypted.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbencryptedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencryptedblob)).ok() + CryptEncryptMessage(pencryptpara, rgprecipientcert.len().try_into().unwrap(), core::mem::transmute(rgprecipientcert.as_ptr()), core::mem::transmute(pbtobeencrypted.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbtobeencrypted.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbencryptedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencryptedblob)).ok() } #[inline] pub unsafe fn CryptEnumKeyIdentifierProperties(pkeyidentifier: Option<*const CRYPT_INTEGER_BLOB>, dwpropid: u32, dwflags: u32, pwszcomputername: P3, pvreserved: Option<*const core::ffi::c_void>, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CRYPT_ENUM_KEYID_PROP) -> windows_core::Result<()> @@ -1276,7 +1257,7 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptEnumKeyIdentifierProperties(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CRYPT_ENUM_KEYID_PROP) -> super::super::Foundation:: BOOL); - CryptEnumKeyIdentifierProperties(core::mem::transmute(pkeyidentifier.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenum)).ok() + CryptEnumKeyIdentifierProperties(core::mem::transmute(pkeyidentifier.unwrap_or(core::mem::zeroed())), dwpropid, dwflags, pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenum).ok() } #[inline] pub unsafe fn CryptEnumOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenumoidfunc: PFN_CRYPT_ENUM_OID_FUNC) -> windows_core::Result<()> @@ -1285,37 +1266,37 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptEnumOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumoidfunc : PFN_CRYPT_ENUM_OID_FUNC) -> super::super::Foundation:: BOOL); - CryptEnumOIDFunction(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), pszoid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenumoidfunc)).ok() + CryptEnumOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), dwflags, core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenumoidfunc).ok() } #[inline] pub unsafe fn CryptEnumOIDInfo(dwgroupid: u32, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenumoidinfo: PFN_CRYPT_ENUM_OID_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptEnumOIDInfo(dwgroupid : u32, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumoidinfo : PFN_CRYPT_ENUM_OID_INFO) -> super::super::Foundation:: BOOL); - CryptEnumOIDInfo(core::mem::transmute(dwgroupid), core::mem::transmute(dwflags), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenumoidinfo)) + CryptEnumOIDInfo(dwgroupid, dwflags, core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenumoidinfo) } #[inline] pub unsafe fn CryptEnumProviderTypesA(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, sztypename: Option, pcbtypename: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptEnumProviderTypesA(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, sztypename : windows_core::PSTR, pcbtypename : *mut u32) -> super::super::Foundation:: BOOL); - CryptEnumProviderTypesA(core::mem::transmute(dwindex), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pdwprovtype), core::mem::transmute(sztypename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbtypename)).ok() + CryptEnumProviderTypesA(dwindex, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pdwprovtype), core::mem::transmute(sztypename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbtypename)).ok() } #[inline] pub unsafe fn CryptEnumProviderTypesW(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, sztypename: Option, pcbtypename: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptEnumProviderTypesW(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, sztypename : windows_core::PWSTR, pcbtypename : *mut u32) -> super::super::Foundation:: BOOL); - CryptEnumProviderTypesW(core::mem::transmute(dwindex), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pdwprovtype), core::mem::transmute(sztypename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbtypename)).ok() + CryptEnumProviderTypesW(dwindex, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pdwprovtype), core::mem::transmute(sztypename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbtypename)).ok() } #[inline] pub unsafe fn CryptEnumProvidersA(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, szprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptEnumProvidersA(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, szprovname : windows_core::PSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); - CryptEnumProvidersA(core::mem::transmute(dwindex), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pdwprovtype), core::mem::transmute(szprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() + CryptEnumProvidersA(dwindex, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pdwprovtype), core::mem::transmute(szprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() } #[inline] pub unsafe fn CryptEnumProvidersW(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, szprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptEnumProvidersW(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, szprovname : windows_core::PWSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); - CryptEnumProvidersW(core::mem::transmute(dwindex), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pdwprovtype), core::mem::transmute(szprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() + CryptEnumProvidersW(dwindex, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pdwprovtype), core::mem::transmute(szprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() } #[inline] pub unsafe fn CryptExportKey(hkey: usize, hexpkey: usize, dwblobtype: u32, dwflags: CRYPT_KEY_FLAGS, pbdata: Option<*mut u8>, pdwdatalen: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptExportKey(hkey : usize, hexpkey : usize, dwblobtype : u32, dwflags : CRYPT_KEY_FLAGS, pbdata : *mut u8, pdwdatalen : *mut u32) -> super::super::Foundation:: BOOL); - CryptExportKey(core::mem::transmute(hkey), core::mem::transmute(hexpkey), core::mem::transmute(dwblobtype), core::mem::transmute(dwflags), core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen)).ok() + CryptExportKey(hkey, hexpkey, dwblobtype, dwflags, core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen)).ok() } #[inline] pub unsafe fn CryptExportPKCS8(hcryptprov: usize, dwkeyspec: u32, pszprivatekeyobjid: P2, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pbprivatekeyblob: Option<*mut u8>, pcbprivatekeyblob: *mut u32) -> windows_core::Result<()> @@ -1323,12 +1304,12 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptExportPKCS8(hcryptprov : usize, dwkeyspec : u32, pszprivatekeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pbprivatekeyblob : *mut u8, pcbprivatekeyblob : *mut u32) -> super::super::Foundation:: BOOL); - CryptExportPKCS8(core::mem::transmute(hcryptprov), core::mem::transmute(dwkeyspec), pszprivatekeyobjid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbprivatekeyblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprivatekeyblob)).ok() + CryptExportPKCS8(hcryptprov, dwkeyspec, pszprivatekeyobjid.param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbprivatekeyblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprivatekeyblob)).ok() } #[inline] pub unsafe fn CryptExportPublicKeyInfo(hcryptprovorncryptkey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfo(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> super::super::Foundation:: BOOL); - CryptExportPublicKeyInfo(core::mem::transmute(hcryptprovorncryptkey), core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbinfo)).ok() + CryptExportPublicKeyInfo(hcryptprovorncryptkey, core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), dwcertencodingtype, core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbinfo)).ok() } #[inline] pub unsafe fn CryptExportPublicKeyInfoEx(hcryptprovorncryptkey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid: P3, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> windows_core::Result<()> @@ -1336,7 +1317,7 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfoEx(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> super::super::Foundation:: BOOL); - CryptExportPublicKeyInfoEx(core::mem::transmute(hcryptprovorncryptkey), core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), pszpublickeyobjid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbinfo)).ok() + CryptExportPublicKeyInfoEx(hcryptprovorncryptkey, core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), dwcertencodingtype, pszpublickeyobjid.param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbinfo)).ok() } #[inline] pub unsafe fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey: BCRYPT_KEY_HANDLE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid: P2, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> super::super::Foundation::BOOL @@ -1344,12 +1325,12 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey : BCRYPT_KEY_HANDLE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> super::super::Foundation:: BOOL); - CryptExportPublicKeyInfoFromBCryptKeyHandle(core::mem::transmute(hbcryptkey), core::mem::transmute(dwcertencodingtype), pszpublickeyobjid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbinfo)) + CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey, dwcertencodingtype, pszpublickeyobjid.param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbinfo)) } #[inline] pub unsafe fn CryptFindCertificateKeyProvInfo(pcert: *const CERT_CONTEXT, dwflags: CRYPT_FIND_FLAGS, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptFindCertificateKeyProvInfo(pcert : *const CERT_CONTEXT, dwflags : CRYPT_FIND_FLAGS, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptFindCertificateKeyProvInfo(core::mem::transmute(pcert), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + CryptFindCertificateKeyProvInfo(pcert, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptFindLocalizedName(pwszcryptname: P0) -> windows_core::PCWSTR @@ -1362,7 +1343,7 @@ where #[inline] pub unsafe fn CryptFindOIDInfo(dwkeytype: u32, pvkey: *const core::ffi::c_void, dwgroupid: u32) -> *mut CRYPT_OID_INFO { windows_targets::link!("crypt32.dll" "system" fn CryptFindOIDInfo(dwkeytype : u32, pvkey : *const core::ffi::c_void, dwgroupid : u32) -> *mut CRYPT_OID_INFO); - CryptFindOIDInfo(core::mem::transmute(dwkeytype), core::mem::transmute(pvkey), core::mem::transmute(dwgroupid)) + CryptFindOIDInfo(dwkeytype, pvkey, dwgroupid) } #[inline] pub unsafe fn CryptFormatObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwformattype: u32, dwformatstrtype: u32, pformatstruct: Option<*const core::ffi::c_void>, lpszstructtype: P4, pbencoded: &[u8], pbformat: Option<*mut core::ffi::c_void>, pcbformat: *mut u32) -> windows_core::Result<()> @@ -1370,22 +1351,22 @@ where P4: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptFormatObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwformattype : u32, dwformatstrtype : u32, pformatstruct : *const core::ffi::c_void, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, pbformat : *mut core::ffi::c_void, pcbformat : *mut u32) -> super::super::Foundation:: BOOL); - CryptFormatObject(core::mem::transmute(dwcertencodingtype), core::mem::transmute(dwformattype), core::mem::transmute(dwformatstrtype), core::mem::transmute(pformatstruct.unwrap_or(core::mem::zeroed())), lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbformat)).ok() + CryptFormatObject(dwcertencodingtype, dwformattype, dwformatstrtype, core::mem::transmute(pformatstruct.unwrap_or(core::mem::zeroed())), lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbformat.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbformat)).ok() } #[inline] pub unsafe fn CryptFreeOIDFunctionAddress(hfuncaddr: *const core::ffi::c_void, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptFreeOIDFunctionAddress(hfuncaddr : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptFreeOIDFunctionAddress(core::mem::transmute(hfuncaddr), core::mem::transmute(dwflags)) + CryptFreeOIDFunctionAddress(hfuncaddr, dwflags) } #[inline] pub unsafe fn CryptGenKey(hprov: usize, algid: ALG_ID, dwflags: CRYPT_KEY_FLAGS, phkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGenKey(hprov : usize, algid : ALG_ID, dwflags : CRYPT_KEY_FLAGS, phkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptGenKey(core::mem::transmute(hprov), core::mem::transmute(algid), core::mem::transmute(dwflags), core::mem::transmute(phkey)).ok() + CryptGenKey(hprov, algid, dwflags, core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptGenRandom(hprov: usize, pbbuffer: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGenRandom(hprov : usize, dwlen : u32, pbbuffer : *mut u8) -> super::super::Foundation:: BOOL); - CryptGenRandom(core::mem::transmute(hprov), pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() + CryptGenRandom(hprov, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } #[inline] pub unsafe fn CryptGetAsyncParam(hasync: HCRYPTASYNC, pszparamoid: P1, ppvparam: Option<*mut *mut core::ffi::c_void>, ppfnfree: Option<*mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC>) -> super::super::Foundation::BOOL @@ -1393,12 +1374,12 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptGetAsyncParam(hasync : HCRYPTASYNC, pszparamoid : windows_core::PCSTR, ppvparam : *mut *mut core::ffi::c_void, ppfnfree : *mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation:: BOOL); - CryptGetAsyncParam(core::mem::transmute(hasync), pszparamoid.param().abi(), core::mem::transmute(ppvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppfnfree.unwrap_or(core::mem::zeroed()))) + CryptGetAsyncParam(hasync, pszparamoid.param().abi(), core::mem::transmute(ppvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppfnfree.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptGetDefaultOIDDllList(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdlllist: Option, pcchdlllist: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptGetDefaultOIDDllList(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pwszdlllist : windows_core::PWSTR, pcchdlllist : *mut u32) -> super::super::Foundation:: BOOL); - CryptGetDefaultOIDDllList(core::mem::transmute(hfuncset), core::mem::transmute(dwencodingtype), core::mem::transmute(pwszdlllist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdlllist)).ok() + CryptGetDefaultOIDDllList(hfuncset, dwencodingtype, core::mem::transmute(pwszdlllist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdlllist)).ok() } #[inline] pub unsafe fn CryptGetDefaultOIDFunctionAddress(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdll: P2, dwflags: u32, ppvfuncaddr: *mut *mut core::ffi::c_void, phfuncaddr: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL @@ -1406,22 +1387,22 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptGetDefaultOIDFunctionAddress(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pwszdll : windows_core::PCWSTR, dwflags : u32, ppvfuncaddr : *mut *mut core::ffi::c_void, phfuncaddr : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptGetDefaultOIDFunctionAddress(core::mem::transmute(hfuncset), core::mem::transmute(dwencodingtype), pwszdll.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppvfuncaddr), core::mem::transmute(phfuncaddr)) + CryptGetDefaultOIDFunctionAddress(hfuncset, dwencodingtype, pwszdll.param().abi(), dwflags, core::mem::transmute(ppvfuncaddr), core::mem::transmute(phfuncaddr)) } #[inline] pub unsafe fn CryptGetDefaultProviderA(dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32, pszprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGetDefaultProviderA(dwprovtype : u32, pdwreserved : *const u32, dwflags : u32, pszprovname : windows_core::PSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); - CryptGetDefaultProviderA(core::mem::transmute(dwprovtype), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pszprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() + CryptGetDefaultProviderA(dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pszprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() } #[inline] pub unsafe fn CryptGetDefaultProviderW(dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32, pszprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGetDefaultProviderW(dwprovtype : u32, pdwreserved : *const u32, dwflags : u32, pszprovname : windows_core::PWSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); - CryptGetDefaultProviderW(core::mem::transmute(dwprovtype), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pszprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() + CryptGetDefaultProviderW(dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pszprovname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprovname)).ok() } #[inline] pub unsafe fn CryptGetHashParam(hhash: usize, dwparam: u32, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGetHashParam(hhash : usize, dwparam : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptGetHashParam(core::mem::transmute(hhash), core::mem::transmute(dwparam), core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen), core::mem::transmute(dwflags)).ok() + CryptGetHashParam(hhash, dwparam, core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen), dwflags).ok() } #[inline] pub unsafe fn CryptGetKeyIdentifierProperty(pkeyidentifier: *const CRYPT_INTEGER_BLOB, dwpropid: u32, dwflags: u32, pwszcomputername: P3, pvreserved: Option<*const core::ffi::c_void>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> @@ -1429,23 +1410,23 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptGetKeyIdentifierProperty(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); - CryptGetKeyIdentifierProperty(core::mem::transmute(pkeyidentifier), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() + CryptGetKeyIdentifierProperty(pkeyidentifier, dwpropid, dwflags, pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn CryptGetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGetKeyParam(hkey : usize, dwparam : CRYPT_KEY_PARAM_ID, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptGetKeyParam(core::mem::transmute(hkey), core::mem::transmute(dwparam), core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen), core::mem::transmute(dwflags)).ok() + CryptGetKeyParam(hkey, dwparam, core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen), dwflags).ok() } #[inline] pub unsafe fn CryptGetMessageCertificates(dwmsgandcertencodingtype: u32, hcryptprov: Option, dwflags: u32, pbsignedblob: &[u8]) -> windows_core::Result { windows_targets::link!("crypt32.dll" "system" fn CryptGetMessageCertificates(dwmsgandcertencodingtype : u32, hcryptprov : HCRYPTPROV_LEGACY, dwflags : u32, pbsignedblob : *const u8, cbsignedblob : u32) -> HCERTSTORE); - let result__ = CryptGetMessageCertificates(core::mem::transmute(dwmsgandcertencodingtype), core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap()); + let result__ = CryptGetMessageCertificates(dwmsgandcertencodingtype, core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CryptGetMessageSignerCount(dwmsgencodingtype: u32, pbsignedblob: &[u8]) -> i32 { windows_targets::link!("crypt32.dll" "system" fn CryptGetMessageSignerCount(dwmsgencodingtype : u32, pbsignedblob : *const u8, cbsignedblob : u32) -> i32); - CryptGetMessageSignerCount(core::mem::transmute(dwmsgencodingtype), core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap()) + CryptGetMessageSignerCount(dwmsgencodingtype, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap()) } #[inline] pub unsafe fn CryptGetOIDFunctionAddress(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pszoid: P2, dwflags: u32, ppvfuncaddr: *mut *mut core::ffi::c_void, phfuncaddr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1453,7 +1434,7 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptGetOIDFunctionAddress(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pszoid : windows_core::PCSTR, dwflags : u32, ppvfuncaddr : *mut *mut core::ffi::c_void, phfuncaddr : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptGetOIDFunctionAddress(core::mem::transmute(hfuncset), core::mem::transmute(dwencodingtype), pszoid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppvfuncaddr), core::mem::transmute(phfuncaddr)).ok() + CryptGetOIDFunctionAddress(hfuncset, dwencodingtype, pszoid.param().abi(), dwflags, core::mem::transmute(ppvfuncaddr), core::mem::transmute(phfuncaddr)).ok() } #[inline] pub unsafe fn CryptGetOIDFunctionValue(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, pwszvaluename: P3, pdwvaluetype: Option<*mut u32>, pbvaluedata: Option<*mut u8>, pcbvaluedata: Option<*mut u32>) -> windows_core::Result<()> @@ -1463,7 +1444,7 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptGetOIDFunctionValue(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszvaluename : windows_core::PCWSTR, pdwvaluetype : *mut u32, pbvaluedata : *mut u8, pcbvaluedata : *mut u32) -> super::super::Foundation:: BOOL); - CryptGetOIDFunctionValue(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), core::mem::transmute(pdwvaluetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbvaluedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvaluedata.unwrap_or(core::mem::zeroed()))).ok() + CryptGetOIDFunctionValue(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), core::mem::transmute(pdwvaluetype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbvaluedata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbvaluedata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptGetObjectUrl(pszurloid: P0, pvpara: *const core::ffi::c_void, dwflags: CRYPT_GET_URL_FLAGS, purlarray: Option<*mut CRYPT_URL_ARRAY>, pcburlarray: *mut u32, purlinfo: Option<*mut CRYPT_URL_INFO>, pcburlinfo: Option<*mut u32>, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1471,22 +1452,22 @@ where P0: windows_core::Param, { windows_targets::link!("cryptnet.dll" "system" fn CryptGetObjectUrl(pszurloid : windows_core::PCSTR, pvpara : *const core::ffi::c_void, dwflags : CRYPT_GET_URL_FLAGS, purlarray : *mut CRYPT_URL_ARRAY, pcburlarray : *mut u32, purlinfo : *mut CRYPT_URL_INFO, pcburlinfo : *mut u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptGetObjectUrl(pszurloid.param().abi(), core::mem::transmute(pvpara), core::mem::transmute(dwflags), core::mem::transmute(purlarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcburlarray), core::mem::transmute(purlinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcburlinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + CryptGetObjectUrl(pszurloid.param().abi(), pvpara, dwflags, core::mem::transmute(purlarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcburlarray), core::mem::transmute(purlinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcburlinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptGetProvParam(hprov: usize, dwparam: u32, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGetProvParam(hprov : usize, dwparam : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptGetProvParam(core::mem::transmute(hprov), core::mem::transmute(dwparam), core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen), core::mem::transmute(dwflags)).ok() + CryptGetProvParam(hprov, dwparam, core::mem::transmute(pbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdatalen), dwflags).ok() } #[inline] pub unsafe fn CryptGetUserKey(hprov: usize, dwkeyspec: u32, phuserkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptGetUserKey(hprov : usize, dwkeyspec : u32, phuserkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptGetUserKey(core::mem::transmute(hprov), core::mem::transmute(dwkeyspec), core::mem::transmute(phuserkey)).ok() + CryptGetUserKey(hprov, dwkeyspec, core::mem::transmute(phuserkey)).ok() } #[inline] pub unsafe fn CryptHashCertificate(hcryptprov: Option, algid: ALG_ID, dwflags: u32, pbencoded: &[u8], pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptHashCertificate(hcryptprov : HCRYPTPROV_LEGACY, algid : ALG_ID, dwflags : u32, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptHashCertificate(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(algid), core::mem::transmute(dwflags), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() + CryptHashCertificate(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), algid, dwflags, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() } #[inline] pub unsafe fn CryptHashCertificate2(pwszcnghashalgid: P0, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pbencoded: Option<&[u8]>, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> @@ -1494,57 +1475,57 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptHashCertificate2(pwszcnghashalgid : windows_core::PCWSTR, dwflags : u32, pvreserved : *const core::ffi::c_void, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptHashCertificate2(pwszcnghashalgid.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbencoded.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() + CryptHashCertificate2(pwszcnghashalgid.param().abi(), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbencoded.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() } #[inline] pub unsafe fn CryptHashData(hhash: usize, pbdata: &[u8], dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptHashData(hhash : usize, pbdata : *const u8, dwdatalen : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptHashData(core::mem::transmute(hhash), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + CryptHashData(hhash, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn CryptHashMessage(phashpara: *const CRYPT_HASH_MESSAGE_PARA, fdetachedhash: bool, ctobehashed: u32, rgpbtobehashed: *const *const u8, rgcbtobehashed: *const u32, pbhashedblob: Option<*mut u8>, pcbhashedblob: Option<*mut u32>, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptHashMessage(phashpara : *const CRYPT_HASH_MESSAGE_PARA, fdetachedhash : super::super::Foundation:: BOOL, ctobehashed : u32, rgpbtobehashed : *const *const u8, rgcbtobehashed : *const u32, pbhashedblob : *mut u8, pcbhashedblob : *mut u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptHashMessage(core::mem::transmute(phashpara), fdetachedhash.into(), core::mem::transmute(ctobehashed), core::mem::transmute(rgpbtobehashed), core::mem::transmute(rgcbtobehashed), core::mem::transmute(pbhashedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhashedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash.unwrap_or(core::mem::zeroed()))).ok() + CryptHashMessage(phashpara, fdetachedhash.into(), ctobehashed, rgpbtobehashed, rgcbtobehashed, core::mem::transmute(pbhashedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhashedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptHashPublicKeyInfo(hcryptprov: Option, algid: ALG_ID, dwflags: u32, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptHashPublicKeyInfo(hcryptprov : HCRYPTPROV_LEGACY, algid : ALG_ID, dwflags : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptHashPublicKeyInfo(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(algid), core::mem::transmute(dwflags), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pinfo), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() + CryptHashPublicKeyInfo(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), algid, dwflags, dwcertencodingtype, pinfo, core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() } #[inline] pub unsafe fn CryptHashSessionKey(hhash: usize, hkey: usize, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptHashSessionKey(hhash : usize, hkey : usize, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptHashSessionKey(core::mem::transmute(hhash), core::mem::transmute(hkey), core::mem::transmute(dwflags)).ok() + CryptHashSessionKey(hhash, hkey, dwflags).ok() } #[inline] pub unsafe fn CryptHashToBeSigned(hcryptprov: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencoded: &[u8], pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptHashToBeSigned(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptHashToBeSigned(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() + CryptHashToBeSigned(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash)).ok() } #[inline] pub unsafe fn CryptImportKey(hprov: usize, pbdata: &[u8], hpubkey: usize, dwflags: CRYPT_KEY_FLAGS, phkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptImportKey(hprov : usize, pbdata : *const u8, dwdatalen : u32, hpubkey : usize, dwflags : CRYPT_KEY_FLAGS, phkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptImportKey(core::mem::transmute(hprov), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(hpubkey), core::mem::transmute(dwflags), core::mem::transmute(phkey)).ok() + CryptImportKey(hprov, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), hpubkey, dwflags, core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptImportPKCS8(sprivatekeyandparams: CRYPT_PKCS8_IMPORT_PARAMS, dwflags: CRYPT_KEY_FLAGS, phcryptprov: Option<*mut usize>, pvauxinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptImportPKCS8(sprivatekeyandparams : CRYPT_PKCS8_IMPORT_PARAMS, dwflags : CRYPT_KEY_FLAGS, phcryptprov : *mut usize, pvauxinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptImportPKCS8(core::mem::transmute(sprivatekeyandparams), core::mem::transmute(dwflags), core::mem::transmute(phcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed()))).ok() + CryptImportPKCS8(core::mem::transmute(sprivatekeyandparams), dwflags, core::mem::transmute(phcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptImportPublicKeyInfo(hcryptprov: usize, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, phkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfo(hcryptprov : usize, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, phkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptImportPublicKeyInfo(core::mem::transmute(hcryptprov), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pinfo), core::mem::transmute(phkey)).ok() + CryptImportPublicKeyInfo(hcryptprov, dwcertencodingtype, pinfo, core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptImportPublicKeyInfoEx(hcryptprov: usize, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, aikeyalg: ALG_ID, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, phkey: *mut usize) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfoEx(hcryptprov : usize, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, aikeyalg : ALG_ID, dwflags : u32, pvauxinfo : *const core::ffi::c_void, phkey : *mut usize) -> super::super::Foundation:: BOOL); - CryptImportPublicKeyInfoEx(core::mem::transmute(hcryptprov), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pinfo), core::mem::transmute(aikeyalg), core::mem::transmute(dwflags), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey)).ok() + CryptImportPublicKeyInfoEx(hcryptprov, dwcertencodingtype, pinfo, aikeyalg, dwflags, core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptImportPublicKeyInfoEx2(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, dwflags: CRYPT_IMPORT_PUBLIC_KEY_FLAGS, pvauxinfo: Option<*const core::ffi::c_void>, phkey: *mut BCRYPT_KEY_HANDLE) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfoEx2(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, dwflags : CRYPT_IMPORT_PUBLIC_KEY_FLAGS, pvauxinfo : *const core::ffi::c_void, phkey : *mut BCRYPT_KEY_HANDLE) -> super::super::Foundation:: BOOL); - CryptImportPublicKeyInfoEx2(core::mem::transmute(dwcertencodingtype), core::mem::transmute(pinfo), core::mem::transmute(dwflags), core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey)).ok() + CryptImportPublicKeyInfoEx2(dwcertencodingtype, pinfo, dwflags, core::mem::transmute(pvauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey)).ok() } #[inline] pub unsafe fn CryptInitOIDFunctionSet(pszfuncname: P0, dwflags: u32) -> *mut core::ffi::c_void @@ -1552,17 +1533,17 @@ where P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptInitOIDFunctionSet(pszfuncname : windows_core::PCSTR, dwflags : u32) -> *mut core::ffi::c_void); - CryptInitOIDFunctionSet(pszfuncname.param().abi(), core::mem::transmute(dwflags)) + CryptInitOIDFunctionSet(pszfuncname.param().abi(), dwflags) } #[inline] pub unsafe fn CryptInstallCancelRetrieval(pfncancel: PFN_CRYPT_CANCEL_RETRIEVAL, pvarg: Option<*const core::ffi::c_void>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("cryptnet.dll" "system" fn CryptInstallCancelRetrieval(pfncancel : PFN_CRYPT_CANCEL_RETRIEVAL, pvarg : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptInstallCancelRetrieval(core::mem::transmute(pfncancel), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + CryptInstallCancelRetrieval(pfncancel, core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptInstallDefaultContext(hcryptprov: usize, dwdefaulttype: CRYPT_DEFAULT_CONTEXT_TYPE, pvdefaultpara: Option<*const core::ffi::c_void>, dwflags: CRYPT_DEFAULT_CONTEXT_FLAGS, pvreserved: Option<*const core::ffi::c_void>, phdefaultcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptInstallDefaultContext(hcryptprov : usize, dwdefaulttype : CRYPT_DEFAULT_CONTEXT_TYPE, pvdefaultpara : *const core::ffi::c_void, dwflags : CRYPT_DEFAULT_CONTEXT_FLAGS, pvreserved : *const core::ffi::c_void, phdefaultcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptInstallDefaultContext(core::mem::transmute(hcryptprov), core::mem::transmute(dwdefaulttype), core::mem::transmute(pvdefaultpara.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(phdefaultcontext)).ok() + CryptInstallDefaultContext(hcryptprov, dwdefaulttype, core::mem::transmute(pvdefaultpara.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(phdefaultcontext)).ok() } #[inline] pub unsafe fn CryptInstallOIDFunctionAddress(hmodule: Option, dwencodingtype: u32, pszfuncname: P2, rgfuncentry: &[CRYPT_OID_FUNC_ENTRY], dwflags: u32) -> super::super::Foundation::BOOL @@ -1570,12 +1551,12 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptInstallOIDFunctionAddress(hmodule : super::super::Foundation:: HMODULE, dwencodingtype : u32, pszfuncname : windows_core::PCSTR, cfuncentry : u32, rgfuncentry : *const CRYPT_OID_FUNC_ENTRY, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptInstallOIDFunctionAddress(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), rgfuncentry.len().try_into().unwrap(), core::mem::transmute(rgfuncentry.as_ptr()), core::mem::transmute(dwflags)) + CryptInstallOIDFunctionAddress(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), dwencodingtype, pszfuncname.param().abi(), rgfuncentry.len().try_into().unwrap(), core::mem::transmute(rgfuncentry.as_ptr()), dwflags) } #[inline] pub unsafe fn CryptMemAlloc(cbsize: u32) -> *mut core::ffi::c_void { windows_targets::link!("crypt32.dll" "system" fn CryptMemAlloc(cbsize : u32) -> *mut core::ffi::c_void); - CryptMemAlloc(core::mem::transmute(cbsize)) + CryptMemAlloc(cbsize) } #[inline] pub unsafe fn CryptMemFree(pv: Option<*const core::ffi::c_void>) { @@ -1585,7 +1566,7 @@ pub unsafe fn CryptMemFree(pv: Option<*const core::ffi::c_void>) { #[inline] pub unsafe fn CryptMemRealloc(pv: Option<*const core::ffi::c_void>, cbsize: u32) -> *mut core::ffi::c_void { windows_targets::link!("crypt32.dll" "system" fn CryptMemRealloc(pv : *const core::ffi::c_void, cbsize : u32) -> *mut core::ffi::c_void); - CryptMemRealloc(core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize)) + CryptMemRealloc(core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), cbsize) } #[inline] pub unsafe fn CryptMsgCalculateEncodedLength(dwmsgencodingtype: u32, dwflags: u32, dwmsgtype: u32, pvmsgencodeinfo: *const core::ffi::c_void, pszinnercontentobjid: P4, cbdata: u32) -> u32 @@ -1593,7 +1574,7 @@ where P4: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptMsgCalculateEncodedLength(dwmsgencodingtype : u32, dwflags : u32, dwmsgtype : u32, pvmsgencodeinfo : *const core::ffi::c_void, pszinnercontentobjid : windows_core::PCSTR, cbdata : u32) -> u32); - CryptMsgCalculateEncodedLength(core::mem::transmute(dwmsgencodingtype), core::mem::transmute(dwflags), core::mem::transmute(dwmsgtype), core::mem::transmute(pvmsgencodeinfo), pszinnercontentobjid.param().abi(), core::mem::transmute(cbdata)) + CryptMsgCalculateEncodedLength(dwmsgencodingtype, dwflags, dwmsgtype, pvmsgencodeinfo, pszinnercontentobjid.param().abi(), cbdata) } #[inline] pub unsafe fn CryptMsgClose(hcryptmsg: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -1603,17 +1584,17 @@ pub unsafe fn CryptMsgClose(hcryptmsg: Option<*const core::ffi::c_void>) -> wind #[inline] pub unsafe fn CryptMsgControl(hcryptmsg: *const core::ffi::c_void, dwflags: u32, dwctrltype: u32, pvctrlpara: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgControl(hcryptmsg : *const core::ffi::c_void, dwflags : u32, dwctrltype : u32, pvctrlpara : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptMsgControl(core::mem::transmute(hcryptmsg), core::mem::transmute(dwflags), core::mem::transmute(dwctrltype), core::mem::transmute(pvctrlpara.unwrap_or(core::mem::zeroed()))).ok() + CryptMsgControl(hcryptmsg, dwflags, dwctrltype, core::mem::transmute(pvctrlpara.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptMsgCountersign(hcryptmsg: *const core::ffi::c_void, dwindex: u32, rgcountersigners: &[CMSG_SIGNER_ENCODE_INFO]) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgCountersign(hcryptmsg : *const core::ffi::c_void, dwindex : u32, ccountersigners : u32, rgcountersigners : *const CMSG_SIGNER_ENCODE_INFO) -> super::super::Foundation:: BOOL); - CryptMsgCountersign(core::mem::transmute(hcryptmsg), core::mem::transmute(dwindex), rgcountersigners.len().try_into().unwrap(), core::mem::transmute(rgcountersigners.as_ptr())).ok() + CryptMsgCountersign(hcryptmsg, dwindex, rgcountersigners.len().try_into().unwrap(), core::mem::transmute(rgcountersigners.as_ptr())).ok() } #[inline] pub unsafe fn CryptMsgCountersignEncoded(dwencodingtype: u32, pbsignerinfo: &[u8], rgcountersigners: &[CMSG_SIGNER_ENCODE_INFO], pbcountersignature: Option<*mut u8>, pcbcountersignature: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgCountersignEncoded(dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, ccountersigners : u32, rgcountersigners : *const CMSG_SIGNER_ENCODE_INFO, pbcountersignature : *mut u8, pcbcountersignature : *mut u32) -> super::super::Foundation:: BOOL); - CryptMsgCountersignEncoded(core::mem::transmute(dwencodingtype), core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), rgcountersigners.len().try_into().unwrap(), core::mem::transmute(rgcountersigners.as_ptr()), core::mem::transmute(pbcountersignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcountersignature)).ok() + CryptMsgCountersignEncoded(dwencodingtype, core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), rgcountersigners.len().try_into().unwrap(), core::mem::transmute(rgcountersigners.as_ptr()), core::mem::transmute(pbcountersignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcountersignature)).ok() } #[inline] pub unsafe fn CryptMsgDuplicate(hcryptmsg: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { @@ -1623,22 +1604,22 @@ pub unsafe fn CryptMsgDuplicate(hcryptmsg: Option<*const core::ffi::c_void>) -> #[inline] pub unsafe fn CryptMsgEncodeAndSignCTL(dwmsgencodingtype: u32, pctlinfo: *const CTL_INFO, psigninfo: *const CMSG_SIGNED_ENCODE_INFO, dwflags: u32, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgEncodeAndSignCTL(dwmsgencodingtype : u32, pctlinfo : *const CTL_INFO, psigninfo : *const CMSG_SIGNED_ENCODE_INFO, dwflags : u32, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); - CryptMsgEncodeAndSignCTL(core::mem::transmute(dwmsgencodingtype), core::mem::transmute(pctlinfo), core::mem::transmute(psigninfo), core::mem::transmute(dwflags), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() + CryptMsgEncodeAndSignCTL(dwmsgencodingtype, pctlinfo, psigninfo, dwflags, core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() } #[inline] pub unsafe fn CryptMsgGetAndVerifySigner(hcryptmsg: *const core::ffi::c_void, rghsignerstore: Option<&[HCERTSTORE]>, dwflags: u32, ppsigner: Option<*mut *mut CERT_CONTEXT>, pdwsignerindex: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgGetAndVerifySigner(hcryptmsg : *const core::ffi::c_void, csignerstore : u32, rghsignerstore : *const HCERTSTORE, dwflags : u32, ppsigner : *mut *mut CERT_CONTEXT, pdwsignerindex : *mut u32) -> super::super::Foundation:: BOOL); - CryptMsgGetAndVerifySigner(core::mem::transmute(hcryptmsg), rghsignerstore.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rghsignerstore.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwflags), core::mem::transmute(ppsigner.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsignerindex.unwrap_or(core::mem::zeroed()))).ok() + CryptMsgGetAndVerifySigner(hcryptmsg, rghsignerstore.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rghsignerstore.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwflags, core::mem::transmute(ppsigner.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsignerindex.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptMsgGetParam(hcryptmsg: *const core::ffi::c_void, dwparamtype: u32, dwindex: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgGetParam(hcryptmsg : *const core::ffi::c_void, dwparamtype : u32, dwindex : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); - CryptMsgGetParam(core::mem::transmute(hcryptmsg), core::mem::transmute(dwparamtype), core::mem::transmute(dwindex), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() + CryptMsgGetParam(hcryptmsg, dwparamtype, dwindex, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn CryptMsgOpenToDecode(dwmsgencodingtype: u32, dwflags: u32, dwmsgtype: u32, hcryptprov: Option, precipientinfo: Option<*const CERT_INFO>, pstreaminfo: Option<*const CMSG_STREAM_INFO>) -> *mut core::ffi::c_void { windows_targets::link!("crypt32.dll" "system" fn CryptMsgOpenToDecode(dwmsgencodingtype : u32, dwflags : u32, dwmsgtype : u32, hcryptprov : HCRYPTPROV_LEGACY, precipientinfo : *const CERT_INFO, pstreaminfo : *const CMSG_STREAM_INFO) -> *mut core::ffi::c_void); - CryptMsgOpenToDecode(core::mem::transmute(dwmsgencodingtype), core::mem::transmute(dwflags), core::mem::transmute(dwmsgtype), core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(precipientinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstreaminfo.unwrap_or(core::mem::zeroed()))) + CryptMsgOpenToDecode(dwmsgencodingtype, dwflags, dwmsgtype, core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(precipientinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstreaminfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptMsgOpenToEncode(dwmsgencodingtype: u32, dwflags: u32, dwmsgtype: CRYPT_MSG_TYPE, pvmsgencodeinfo: *const core::ffi::c_void, pszinnercontentobjid: P4, pstreaminfo: Option<*const CMSG_STREAM_INFO>) -> *mut core::ffi::c_void @@ -1646,27 +1627,27 @@ where P4: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptMsgOpenToEncode(dwmsgencodingtype : u32, dwflags : u32, dwmsgtype : CRYPT_MSG_TYPE, pvmsgencodeinfo : *const core::ffi::c_void, pszinnercontentobjid : windows_core::PCSTR, pstreaminfo : *const CMSG_STREAM_INFO) -> *mut core::ffi::c_void); - CryptMsgOpenToEncode(core::mem::transmute(dwmsgencodingtype), core::mem::transmute(dwflags), core::mem::transmute(dwmsgtype), core::mem::transmute(pvmsgencodeinfo), pszinnercontentobjid.param().abi(), core::mem::transmute(pstreaminfo.unwrap_or(core::mem::zeroed()))) + CryptMsgOpenToEncode(dwmsgencodingtype, dwflags, dwmsgtype, pvmsgencodeinfo, pszinnercontentobjid.param().abi(), core::mem::transmute(pstreaminfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptMsgSignCTL(dwmsgencodingtype: u32, pbctlcontent: &[u8], psigninfo: *const CMSG_SIGNED_ENCODE_INFO, dwflags: u32, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgSignCTL(dwmsgencodingtype : u32, pbctlcontent : *const u8, cbctlcontent : u32, psigninfo : *const CMSG_SIGNED_ENCODE_INFO, dwflags : u32, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); - CryptMsgSignCTL(core::mem::transmute(dwmsgencodingtype), core::mem::transmute(pbctlcontent.as_ptr()), pbctlcontent.len().try_into().unwrap(), core::mem::transmute(psigninfo), core::mem::transmute(dwflags), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() + CryptMsgSignCTL(dwmsgencodingtype, core::mem::transmute(pbctlcontent.as_ptr()), pbctlcontent.len().try_into().unwrap(), psigninfo, dwflags, core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() } #[inline] pub unsafe fn CryptMsgUpdate(hcryptmsg: *const core::ffi::c_void, pbdata: Option<&[u8]>, ffinal: bool) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgUpdate(hcryptmsg : *const core::ffi::c_void, pbdata : *const u8, cbdata : u32, ffinal : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CryptMsgUpdate(core::mem::transmute(hcryptmsg), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ffinal.into()).ok() + CryptMsgUpdate(hcryptmsg, core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ffinal.into()).ok() } #[inline] pub unsafe fn CryptMsgVerifyCountersignatureEncoded(hcryptprov: Option, dwencodingtype: u32, pbsignerinfo: &[u8], pbsignerinfocountersignature: &[u8], pcicountersigner: *const CERT_INFO) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgVerifyCountersignatureEncoded(hcryptprov : HCRYPTPROV_LEGACY, dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, pbsignerinfocountersignature : *const u8, cbsignerinfocountersignature : u32, pcicountersigner : *const CERT_INFO) -> super::super::Foundation:: BOOL); - CryptMsgVerifyCountersignatureEncoded(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencodingtype), core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), core::mem::transmute(pbsignerinfocountersignature.as_ptr()), pbsignerinfocountersignature.len().try_into().unwrap(), core::mem::transmute(pcicountersigner)).ok() + CryptMsgVerifyCountersignatureEncoded(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwencodingtype, core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), core::mem::transmute(pbsignerinfocountersignature.as_ptr()), pbsignerinfocountersignature.len().try_into().unwrap(), pcicountersigner).ok() } #[inline] pub unsafe fn CryptMsgVerifyCountersignatureEncodedEx(hcryptprov: Option, dwencodingtype: u32, pbsignerinfo: &[u8], pbsignerinfocountersignature: &[u8], dwsignertype: u32, pvsigner: *const core::ffi::c_void, dwflags: u32, pvextra: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptMsgVerifyCountersignatureEncodedEx(hcryptprov : HCRYPTPROV_LEGACY, dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, pbsignerinfocountersignature : *const u8, cbsignerinfocountersignature : u32, dwsignertype : u32, pvsigner : *const core::ffi::c_void, dwflags : u32, pvextra : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptMsgVerifyCountersignatureEncodedEx(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwencodingtype), core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), core::mem::transmute(pbsignerinfocountersignature.as_ptr()), pbsignerinfocountersignature.len().try_into().unwrap(), core::mem::transmute(dwsignertype), core::mem::transmute(pvsigner), core::mem::transmute(dwflags), core::mem::transmute(pvextra.unwrap_or(core::mem::zeroed()))).ok() + CryptMsgVerifyCountersignatureEncodedEx(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwencodingtype, core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), core::mem::transmute(pbsignerinfocountersignature.as_ptr()), pbsignerinfocountersignature.len().try_into().unwrap(), dwsignertype, pvsigner, dwflags, core::mem::transmute(pvextra.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptProtectData(pdatain: *const CRYPT_INTEGER_BLOB, szdatadescr: P1, poptionalentropy: Option<*const CRYPT_INTEGER_BLOB>, pvreserved: Option<*const core::ffi::c_void>, ppromptstruct: Option<*const CRYPTPROTECT_PROMPTSTRUCT>, dwflags: u32, pdataout: *mut CRYPT_INTEGER_BLOB) -> windows_core::Result<()> @@ -1674,22 +1655,22 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptProtectData(pdatain : *const CRYPT_INTEGER_BLOB, szdatadescr : windows_core::PCWSTR, poptionalentropy : *const CRYPT_INTEGER_BLOB, pvreserved : *const core::ffi::c_void, ppromptstruct : *const CRYPTPROTECT_PROMPTSTRUCT, dwflags : u32, pdataout : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - CryptProtectData(core::mem::transmute(pdatain), szdatadescr.param().abi(), core::mem::transmute(poptionalentropy.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppromptstruct.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pdataout)).ok() + CryptProtectData(pdatain, szdatadescr.param().abi(), core::mem::transmute(poptionalentropy.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppromptstruct.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pdataout)).ok() } #[inline] pub unsafe fn CryptProtectMemory(pdatain: *mut core::ffi::c_void, cbdatain: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptProtectMemory(pdatain : *mut core::ffi::c_void, cbdatain : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptProtectMemory(core::mem::transmute(pdatain), core::mem::transmute(cbdatain), core::mem::transmute(dwflags)).ok() + CryptProtectMemory(core::mem::transmute(pdatain), cbdatain, dwflags).ok() } #[inline] pub unsafe fn CryptQueryObject(dwobjecttype: CERT_QUERY_OBJECT_TYPE, pvobject: *const core::ffi::c_void, dwexpectedcontenttypeflags: CERT_QUERY_CONTENT_TYPE_FLAGS, dwexpectedformattypeflags: CERT_QUERY_FORMAT_TYPE_FLAGS, dwflags: u32, pdwmsgandcertencodingtype: Option<*mut CERT_QUERY_ENCODING_TYPE>, pdwcontenttype: Option<*mut CERT_QUERY_CONTENT_TYPE>, pdwformattype: Option<*mut CERT_QUERY_FORMAT_TYPE>, phcertstore: Option<*mut HCERTSTORE>, phmsg: Option<*mut *mut core::ffi::c_void>, ppvcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptQueryObject(dwobjecttype : CERT_QUERY_OBJECT_TYPE, pvobject : *const core::ffi::c_void, dwexpectedcontenttypeflags : CERT_QUERY_CONTENT_TYPE_FLAGS, dwexpectedformattypeflags : CERT_QUERY_FORMAT_TYPE_FLAGS, dwflags : u32, pdwmsgandcertencodingtype : *mut CERT_QUERY_ENCODING_TYPE, pdwcontenttype : *mut CERT_QUERY_CONTENT_TYPE, pdwformattype : *mut CERT_QUERY_FORMAT_TYPE, phcertstore : *mut HCERTSTORE, phmsg : *mut *mut core::ffi::c_void, ppvcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); CryptQueryObject( - core::mem::transmute(dwobjecttype), - core::mem::transmute(pvobject), - core::mem::transmute(dwexpectedcontenttypeflags), - core::mem::transmute(dwexpectedformattypeflags), - core::mem::transmute(dwflags), + dwobjecttype, + pvobject, + dwexpectedcontenttypeflags, + dwexpectedformattypeflags, + dwflags, core::mem::transmute(pdwmsgandcertencodingtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwcontenttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwformattype.unwrap_or(core::mem::zeroed())), @@ -1706,7 +1687,7 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptRegisterDefaultOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, dwindex : u32, pwszdll : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CryptRegisterDefaultOIDFunction(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), core::mem::transmute(dwindex), pwszdll.param().abi()) + CryptRegisterDefaultOIDFunction(dwencodingtype, pszfuncname.param().abi(), dwindex, pwszdll.param().abi()) } #[inline] pub unsafe fn CryptRegisterOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, pwszdll: P3, pszoverridefuncname: P4) -> super::super::Foundation::BOOL @@ -1717,17 +1698,17 @@ where P4: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptRegisterOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszdll : windows_core::PCWSTR, pszoverridefuncname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CryptRegisterOIDFunction(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), pszoid.param().abi(), pwszdll.param().abi(), pszoverridefuncname.param().abi()) + CryptRegisterOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszdll.param().abi(), pszoverridefuncname.param().abi()) } #[inline] pub unsafe fn CryptRegisterOIDInfo(pinfo: *const CRYPT_OID_INFO, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptRegisterOIDInfo(pinfo : *const CRYPT_OID_INFO, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptRegisterOIDInfo(core::mem::transmute(pinfo), core::mem::transmute(dwflags)) + CryptRegisterOIDInfo(pinfo, dwflags) } #[inline] pub unsafe fn CryptReleaseContext(hprov: usize, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptReleaseContext(hprov : usize, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptReleaseContext(core::mem::transmute(hprov), core::mem::transmute(dwflags)).ok() + CryptReleaseContext(hprov, dwflags).ok() } #[inline] pub unsafe fn CryptRetrieveObjectByUrlA(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: Option, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> super::super::Foundation::BOOL @@ -1736,7 +1717,7 @@ where P1: windows_core::Param, { windows_targets::link!("cryptnet.dll" "system" fn CryptRetrieveObjectByUrlA(pszurl : windows_core::PCSTR, pszobjectoid : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, ppvobject : *mut *mut core::ffi::c_void, hasyncretrieve : HCRYPTASYNC, pcredentials : *const CRYPT_CREDENTIALS, pvverify : *const core::ffi::c_void, pauxinfo : *mut CRYPT_RETRIEVE_AUX_INFO) -> super::super::Foundation:: BOOL); - CryptRetrieveObjectByUrlA(pszurl.param().abi(), pszobjectoid.param().abi(), core::mem::transmute(dwretrievalflags), core::mem::transmute(dwtimeout), core::mem::transmute(ppvobject), core::mem::transmute(hasyncretrieve.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvverify.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauxinfo.unwrap_or(core::mem::zeroed()))) + CryptRetrieveObjectByUrlA(pszurl.param().abi(), pszobjectoid.param().abi(), dwretrievalflags, dwtimeout, core::mem::transmute(ppvobject), core::mem::transmute(hasyncretrieve.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvverify.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauxinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptRetrieveObjectByUrlW(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: Option, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> super::super::Foundation::BOOL @@ -1745,7 +1726,7 @@ where P1: windows_core::Param, { windows_targets::link!("cryptnet.dll" "system" fn CryptRetrieveObjectByUrlW(pszurl : windows_core::PCWSTR, pszobjectoid : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, ppvobject : *mut *mut core::ffi::c_void, hasyncretrieve : HCRYPTASYNC, pcredentials : *const CRYPT_CREDENTIALS, pvverify : *const core::ffi::c_void, pauxinfo : *mut CRYPT_RETRIEVE_AUX_INFO) -> super::super::Foundation:: BOOL); - CryptRetrieveObjectByUrlW(pszurl.param().abi(), pszobjectoid.param().abi(), core::mem::transmute(dwretrievalflags), core::mem::transmute(dwtimeout), core::mem::transmute(ppvobject), core::mem::transmute(hasyncretrieve.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvverify.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauxinfo.unwrap_or(core::mem::zeroed()))) + CryptRetrieveObjectByUrlW(pszurl.param().abi(), pszobjectoid.param().abi(), dwretrievalflags, dwtimeout, core::mem::transmute(ppvobject), core::mem::transmute(hasyncretrieve.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvverify.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauxinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptRetrieveTimeStamp(wszurl: P0, dwretrievalflags: u32, dwtimeout: u32, pszhashid: P3, ppara: Option<*const CRYPT_TIMESTAMP_PARA>, pbdata: &[u8], pptscontext: *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner: *mut *mut CERT_CONTEXT, phstore: Option<*mut HCERTSTORE>) -> windows_core::Result<()> @@ -1754,7 +1735,7 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptRetrieveTimeStamp(wszurl : windows_core::PCWSTR, dwretrievalflags : u32, dwtimeout : u32, pszhashid : windows_core::PCSTR, ppara : *const CRYPT_TIMESTAMP_PARA, pbdata : *const u8, cbdata : u32, pptscontext : *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner : *mut *mut CERT_CONTEXT, phstore : *mut HCERTSTORE) -> super::super::Foundation:: BOOL); - CryptRetrieveTimeStamp(wszurl.param().abi(), core::mem::transmute(dwretrievalflags), core::mem::transmute(dwtimeout), pszhashid.param().abi(), core::mem::transmute(ppara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(pptscontext), core::mem::transmute(pptssigner), core::mem::transmute(phstore.unwrap_or(core::mem::zeroed()))).ok() + CryptRetrieveTimeStamp(wszurl.param().abi(), dwretrievalflags, dwtimeout, pszhashid.param().abi(), core::mem::transmute(ppara.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(pptscontext), core::mem::transmute(pptssigner), core::mem::transmute(phstore.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptSetAsyncParam(hasync: HCRYPTASYNC, pszparamoid: P1, pvparam: Option<*const core::ffi::c_void>, pfnfree: PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation::BOOL @@ -1762,12 +1743,12 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptSetAsyncParam(hasync : HCRYPTASYNC, pszparamoid : windows_core::PCSTR, pvparam : *const core::ffi::c_void, pfnfree : PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation:: BOOL); - CryptSetAsyncParam(core::mem::transmute(hasync), pszparamoid.param().abi(), core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnfree)) + CryptSetAsyncParam(hasync, pszparamoid.param().abi(), core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), pfnfree) } #[inline] pub unsafe fn CryptSetHashParam(hhash: usize, dwparam: CRYPT_SET_HASH_PARAM, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptSetHashParam(hhash : usize, dwparam : CRYPT_SET_HASH_PARAM, pbdata : *const u8, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptSetHashParam(core::mem::transmute(hhash), core::mem::transmute(dwparam), core::mem::transmute(pbdata), core::mem::transmute(dwflags)).ok() + CryptSetHashParam(hhash, dwparam, pbdata, dwflags).ok() } #[inline] pub unsafe fn CryptSetKeyIdentifierProperty(pkeyidentifier: *const CRYPT_INTEGER_BLOB, dwpropid: u32, dwflags: u32, pwszcomputername: P3, pvreserved: Option<*const core::ffi::c_void>, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1775,12 +1756,12 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptSetKeyIdentifierProperty(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptSetKeyIdentifierProperty(core::mem::transmute(pkeyidentifier), core::mem::transmute(dwpropid), core::mem::transmute(dwflags), pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() + CryptSetKeyIdentifierProperty(pkeyidentifier, dwpropid, dwflags, pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptSetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptSetKeyParam(hkey : usize, dwparam : CRYPT_KEY_PARAM_ID, pbdata : *const u8, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptSetKeyParam(core::mem::transmute(hkey), core::mem::transmute(dwparam), core::mem::transmute(pbdata), core::mem::transmute(dwflags)).ok() + CryptSetKeyParam(hkey, dwparam, pbdata, dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1791,12 +1772,12 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptSetOIDFunctionValue(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszvaluename : windows_core::PCWSTR, dwvaluetype : super::super::System::Registry:: REG_VALUE_TYPE, pbvaluedata : *const u8, cbvaluedata : u32) -> super::super::Foundation:: BOOL); - CryptSetOIDFunctionValue(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), core::mem::transmute(dwvaluetype), core::mem::transmute(pbvaluedata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbvaluedata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CryptSetOIDFunctionValue(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), dwvaluetype, core::mem::transmute(pbvaluedata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbvaluedata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CryptSetProvParam(hprov: usize, dwparam: CRYPT_SET_PROV_PARAM_ID, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CryptSetProvParam(hprov : usize, dwparam : CRYPT_SET_PROV_PARAM_ID, pbdata : *const u8, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptSetProvParam(core::mem::transmute(hprov), core::mem::transmute(dwparam), core::mem::transmute(pbdata), core::mem::transmute(dwflags)).ok() + CryptSetProvParam(hprov, dwparam, pbdata, dwflags).ok() } #[inline] pub unsafe fn CryptSetProviderA(pszprovname: P0, dwprovtype: u32) -> windows_core::Result<()> @@ -1804,7 +1785,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderA(pszprovname : windows_core::PCSTR, dwprovtype : u32) -> super::super::Foundation:: BOOL); - CryptSetProviderA(pszprovname.param().abi(), core::mem::transmute(dwprovtype)).ok() + CryptSetProviderA(pszprovname.param().abi(), dwprovtype).ok() } #[inline] pub unsafe fn CryptSetProviderExA(pszprovname: P0, dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32) -> windows_core::Result<()> @@ -1812,7 +1793,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderExA(pszprovname : windows_core::PCSTR, dwprovtype : u32, pdwreserved : *const u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptSetProviderExA(pszprovname.param().abi(), core::mem::transmute(dwprovtype), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + CryptSetProviderExA(pszprovname.param().abi(), dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn CryptSetProviderExW(pszprovname: P0, dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32) -> windows_core::Result<()> @@ -1820,7 +1801,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderExW(pszprovname : windows_core::PCWSTR, dwprovtype : u32, pdwreserved : *const u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptSetProviderExW(pszprovname.param().abi(), core::mem::transmute(dwprovtype), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + CryptSetProviderExW(pszprovname.param().abi(), dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn CryptSetProviderW(pszprovname: P0, dwprovtype: u32) -> windows_core::Result<()> @@ -1828,7 +1809,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderW(pszprovname : windows_core::PCWSTR, dwprovtype : u32) -> super::super::Foundation:: BOOL); - CryptSetProviderW(pszprovname.param().abi(), core::mem::transmute(dwprovtype)).ok() + CryptSetProviderW(pszprovname.param().abi(), dwprovtype).ok() } #[inline] pub unsafe fn CryptSignAndEncodeCertificate(hcryptprovorncryptkey: Option, dwkeyspec: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P3, pvstructinfo: *const core::ffi::c_void, psignaturealgorithm: *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo: Option<*const core::ffi::c_void>, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> @@ -1836,28 +1817,17 @@ where P3: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptSignAndEncodeCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : CERT_KEY_SPEC, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignAndEncodeCertificate(core::mem::transmute(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), lpszstructtype.param().abi(), core::mem::transmute(pvstructinfo), core::mem::transmute(psignaturealgorithm), core::mem::transmute(pvhashauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() + CryptSignAndEncodeCertificate(core::mem::transmute(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, psignaturealgorithm, core::mem::transmute(pvhashauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbencoded)).ok() } #[inline] pub unsafe fn CryptSignAndEncryptMessage(psignpara: *const CRYPT_SIGN_MESSAGE_PARA, pencryptpara: *const CRYPT_ENCRYPT_MESSAGE_PARA, rgprecipientcert: &[*const CERT_CONTEXT], pbtobesignedandencrypted: &[u8], pbsignedandencryptedblob: Option<*mut u8>, pcbsignedandencryptedblob: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptSignAndEncryptMessage(psignpara : *const CRYPT_SIGN_MESSAGE_PARA, pencryptpara : *const CRYPT_ENCRYPT_MESSAGE_PARA, crecipientcert : u32, rgprecipientcert : *const *const CERT_CONTEXT, pbtobesignedandencrypted : *const u8, cbtobesignedandencrypted : u32, pbsignedandencryptedblob : *mut u8, pcbsignedandencryptedblob : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignAndEncryptMessage(core::mem::transmute(psignpara), core::mem::transmute(pencryptpara), rgprecipientcert.len().try_into().unwrap(), core::mem::transmute(rgprecipientcert.as_ptr()), core::mem::transmute(pbtobesignedandencrypted.as_ptr()), pbtobesignedandencrypted.len().try_into().unwrap(), core::mem::transmute(pbsignedandencryptedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignedandencryptedblob)).ok() + CryptSignAndEncryptMessage(psignpara, pencryptpara, rgprecipientcert.len().try_into().unwrap(), core::mem::transmute(rgprecipientcert.as_ptr()), core::mem::transmute(pbtobesignedandencrypted.as_ptr()), pbtobesignedandencrypted.len().try_into().unwrap(), core::mem::transmute(pbsignedandencryptedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignedandencryptedblob)).ok() } #[inline] pub unsafe fn CryptSignCertificate(hcryptprovorncryptkey: Option, dwkeyspec: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencodedtobesigned: &[u8], psignaturealgorithm: *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo: Option<*const core::ffi::c_void>, pbsignature: Option<*mut u8>, pcbsignature: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptSignCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencodedtobesigned : *const u8, cbencodedtobesigned : u32, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo : *const core::ffi::c_void, pbsignature : *mut u8, pcbsignature : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignCertificate( - core::mem::transmute(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwcertencodingtype), - core::mem::transmute(pbencodedtobesigned.as_ptr()), - pbencodedtobesigned.len().try_into().unwrap(), - core::mem::transmute(psignaturealgorithm), - core::mem::transmute(pvhashauxinfo.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pbsignature.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pcbsignature), - ) - .ok() + CryptSignCertificate(core::mem::transmute(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwkeyspec.unwrap_or(core::mem::zeroed())), dwcertencodingtype, core::mem::transmute(pbencodedtobesigned.as_ptr()), pbencodedtobesigned.len().try_into().unwrap(), psignaturealgorithm, core::mem::transmute(pvhashauxinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbsignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignature)).ok() } #[inline] pub unsafe fn CryptSignHashA(hhash: usize, dwkeyspec: u32, szdescription: P2, dwflags: u32, pbsignature: Option<*mut u8>, pdwsiglen: *mut u32) -> windows_core::Result<()> @@ -1865,7 +1835,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSignHashA(hhash : usize, dwkeyspec : u32, szdescription : windows_core::PCSTR, dwflags : u32, pbsignature : *mut u8, pdwsiglen : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignHashA(core::mem::transmute(hhash), core::mem::transmute(dwkeyspec), szdescription.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pbsignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsiglen)).ok() + CryptSignHashA(hhash, dwkeyspec, szdescription.param().abi(), dwflags, core::mem::transmute(pbsignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsiglen)).ok() } #[inline] pub unsafe fn CryptSignHashW(hhash: usize, dwkeyspec: u32, szdescription: P2, dwflags: u32, pbsignature: Option<*mut u8>, pdwsiglen: *mut u32) -> windows_core::Result<()> @@ -1873,47 +1843,47 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSignHashW(hhash : usize, dwkeyspec : u32, szdescription : windows_core::PCWSTR, dwflags : u32, pbsignature : *mut u8, pdwsiglen : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignHashW(core::mem::transmute(hhash), core::mem::transmute(dwkeyspec), szdescription.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pbsignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsiglen)).ok() + CryptSignHashW(hhash, dwkeyspec, szdescription.param().abi(), dwflags, core::mem::transmute(pbsignature.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsiglen)).ok() } #[inline] pub unsafe fn CryptSignMessage(psignpara: *const CRYPT_SIGN_MESSAGE_PARA, fdetachedsignature: bool, ctobesigned: u32, rgpbtobesigned: Option<*const *const u8>, rgcbtobesigned: *const u32, pbsignedblob: Option<*mut u8>, pcbsignedblob: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptSignMessage(psignpara : *const CRYPT_SIGN_MESSAGE_PARA, fdetachedsignature : super::super::Foundation:: BOOL, ctobesigned : u32, rgpbtobesigned : *const *const u8, rgcbtobesigned : *const u32, pbsignedblob : *mut u8, pcbsignedblob : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignMessage(core::mem::transmute(psignpara), fdetachedsignature.into(), core::mem::transmute(ctobesigned), core::mem::transmute(rgpbtobesigned.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgcbtobesigned), core::mem::transmute(pbsignedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignedblob)).ok() + CryptSignMessage(psignpara, fdetachedsignature.into(), ctobesigned, core::mem::transmute(rgpbtobesigned.unwrap_or(core::mem::zeroed())), rgcbtobesigned, core::mem::transmute(pbsignedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignedblob)).ok() } #[inline] pub unsafe fn CryptSignMessageWithKey(psignpara: *const CRYPT_KEY_SIGN_MESSAGE_PARA, pbtobesigned: &[u8], pbsignedblob: Option<*mut u8>, pcbsignedblob: *mut u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptSignMessageWithKey(psignpara : *const CRYPT_KEY_SIGN_MESSAGE_PARA, pbtobesigned : *const u8, cbtobesigned : u32, pbsignedblob : *mut u8, pcbsignedblob : *mut u32) -> super::super::Foundation:: BOOL); - CryptSignMessageWithKey(core::mem::transmute(psignpara), core::mem::transmute(pbtobesigned.as_ptr()), pbtobesigned.len().try_into().unwrap(), core::mem::transmute(pbsignedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignedblob)).ok() + CryptSignMessageWithKey(psignpara, core::mem::transmute(pbtobesigned.as_ptr()), pbtobesigned.len().try_into().unwrap(), core::mem::transmute(pbsignedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsignedblob)).ok() } #[inline] pub unsafe fn CryptStringToBinaryA(pszstring: &[u8], dwflags: CRYPT_STRING, pbbinary: Option<*mut u8>, pcbbinary: *mut u32, pdwskip: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptStringToBinaryA(pszstring : windows_core::PCSTR, cchstring : u32, dwflags : CRYPT_STRING, pbbinary : *mut u8, pcbbinary : *mut u32, pdwskip : *mut u32, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); - CryptStringToBinaryA(core::mem::transmute(pszstring.as_ptr()), pszstring.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pbbinary.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbbinary), core::mem::transmute(pdwskip.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() + CryptStringToBinaryA(core::mem::transmute(pszstring.as_ptr()), pszstring.len().try_into().unwrap(), dwflags, core::mem::transmute(pbbinary.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbbinary), core::mem::transmute(pdwskip.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptStringToBinaryW(pszstring: &[u16], dwflags: CRYPT_STRING, pbbinary: Option<*mut u8>, pcbbinary: *mut u32, pdwskip: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptStringToBinaryW(pszstring : windows_core::PCWSTR, cchstring : u32, dwflags : CRYPT_STRING, pbbinary : *mut u8, pcbbinary : *mut u32, pdwskip : *mut u32, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); - CryptStringToBinaryW(core::mem::transmute(pszstring.as_ptr()), pszstring.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pbbinary.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbbinary), core::mem::transmute(pdwskip.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() + CryptStringToBinaryW(core::mem::transmute(pszstring.as_ptr()), pszstring.len().try_into().unwrap(), dwflags, core::mem::transmute(pbbinary.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbbinary), core::mem::transmute(pdwskip.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptUninstallCancelRetrieval(dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("cryptnet.dll" "system" fn CryptUninstallCancelRetrieval(dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptUninstallCancelRetrieval(core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + CryptUninstallCancelRetrieval(dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CryptUninstallDefaultContext(hdefaultcontext: Option<*const core::ffi::c_void>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptUninstallDefaultContext(hdefaultcontext : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptUninstallDefaultContext(core::mem::transmute(hdefaultcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + CryptUninstallDefaultContext(core::mem::transmute(hdefaultcontext.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptUnprotectData(pdatain: *const CRYPT_INTEGER_BLOB, ppszdatadescr: Option<*mut windows_core::PWSTR>, poptionalentropy: Option<*const CRYPT_INTEGER_BLOB>, pvreserved: Option<*const core::ffi::c_void>, ppromptstruct: Option<*const CRYPTPROTECT_PROMPTSTRUCT>, dwflags: u32, pdataout: *mut CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptUnprotectData(pdatain : *const CRYPT_INTEGER_BLOB, ppszdatadescr : *mut windows_core::PWSTR, poptionalentropy : *const CRYPT_INTEGER_BLOB, pvreserved : *const core::ffi::c_void, ppromptstruct : *const CRYPTPROTECT_PROMPTSTRUCT, dwflags : u32, pdataout : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - CryptUnprotectData(core::mem::transmute(pdatain), core::mem::transmute(ppszdatadescr.unwrap_or(core::mem::zeroed())), core::mem::transmute(poptionalentropy.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppromptstruct.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pdataout)).ok() + CryptUnprotectData(pdatain, core::mem::transmute(ppszdatadescr.unwrap_or(core::mem::zeroed())), core::mem::transmute(poptionalentropy.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppromptstruct.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pdataout)).ok() } #[inline] pub unsafe fn CryptUnprotectMemory(pdatain: *mut core::ffi::c_void, cbdatain: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptUnprotectMemory(pdatain : *mut core::ffi::c_void, cbdatain : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptUnprotectMemory(core::mem::transmute(pdatain), core::mem::transmute(cbdatain), core::mem::transmute(dwflags)).ok() + CryptUnprotectMemory(core::mem::transmute(pdatain), cbdatain, dwflags).ok() } #[inline] pub unsafe fn CryptUnregisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P1, pwszdll: P2) -> super::super::Foundation::BOOL @@ -1922,7 +1892,7 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterDefaultOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pwszdll : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CryptUnregisterDefaultOIDFunction(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), pwszdll.param().abi()) + CryptUnregisterDefaultOIDFunction(dwencodingtype, pszfuncname.param().abi(), pwszdll.param().abi()) } #[inline] pub unsafe fn CryptUnregisterOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2) -> super::super::Foundation::BOOL @@ -1931,12 +1901,12 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CryptUnregisterOIDFunction(core::mem::transmute(dwencodingtype), pszfuncname.param().abi(), pszoid.param().abi()) + CryptUnregisterOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi()) } #[inline] pub unsafe fn CryptUnregisterOIDInfo(pinfo: *const CRYPT_OID_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterOIDInfo(pinfo : *const CRYPT_OID_INFO) -> super::super::Foundation:: BOOL); - CryptUnregisterOIDInfo(core::mem::transmute(pinfo)) + CryptUnregisterOIDInfo(pinfo) } #[inline] pub unsafe fn CryptUpdateProtectedState(poldsid: Option, pwszoldpassword: P1, dwflags: u32, pdwsuccesscount: Option<*mut u32>, pdwfailurecount: Option<*mut u32>) -> windows_core::Result<()> @@ -1944,42 +1914,42 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptUpdateProtectedState(poldsid : super:: PSID, pwszoldpassword : windows_core::PCWSTR, dwflags : u32, pdwsuccesscount : *mut u32, pdwfailurecount : *mut u32) -> super::super::Foundation:: BOOL); - CryptUpdateProtectedState(core::mem::transmute(poldsid.unwrap_or(core::mem::zeroed())), pwszoldpassword.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pdwsuccesscount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwfailurecount.unwrap_or(core::mem::zeroed()))).ok() + CryptUpdateProtectedState(core::mem::transmute(poldsid.unwrap_or(core::mem::zeroed())), pwszoldpassword.param().abi(), dwflags, core::mem::transmute(pdwsuccesscount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwfailurecount.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifyCertificateSignature(hcryptprov: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencoded: &[u8], ppublickey: *const CERT_PUBLIC_KEY_INFO) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyCertificateSignature(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencoded : *const u8, cbencoded : u32, ppublickey : *const CERT_PUBLIC_KEY_INFO) -> super::super::Foundation:: BOOL); - CryptVerifyCertificateSignature(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(ppublickey)).ok() + CryptVerifyCertificateSignature(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), ppublickey).ok() } #[inline] pub unsafe fn CryptVerifyCertificateSignatureEx(hcryptprov: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwsubjecttype: u32, pvsubject: *const core::ffi::c_void, dwissuertype: u32, pvissuer: Option<*const core::ffi::c_void>, dwflags: CRYPT_VERIFY_CERT_FLAGS, pvextra: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyCertificateSignatureEx(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, dwissuertype : u32, pvissuer : *const core::ffi::c_void, dwflags : CRYPT_VERIFY_CERT_FLAGS, pvextra : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CryptVerifyCertificateSignatureEx(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertencodingtype), core::mem::transmute(dwsubjecttype), core::mem::transmute(pvsubject), core::mem::transmute(dwissuertype), core::mem::transmute(pvissuer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pvextra.unwrap_or(core::mem::zeroed()))).ok() + CryptVerifyCertificateSignatureEx(core::mem::transmute(hcryptprov.unwrap_or(core::mem::zeroed())), dwcertencodingtype, dwsubjecttype, pvsubject, dwissuertype, core::mem::transmute(pvissuer.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pvextra.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifyDetachedMessageHash(phashpara: *const CRYPT_HASH_MESSAGE_PARA, pbdetachedhashblob: &[u8], ctobehashed: u32, rgpbtobehashed: *const *const u8, rgcbtobehashed: *const u32, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyDetachedMessageHash(phashpara : *const CRYPT_HASH_MESSAGE_PARA, pbdetachedhashblob : *const u8, cbdetachedhashblob : u32, ctobehashed : u32, rgpbtobehashed : *const *const u8, rgcbtobehashed : *const u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptVerifyDetachedMessageHash(core::mem::transmute(phashpara), core::mem::transmute(pbdetachedhashblob.as_ptr()), pbdetachedhashblob.len().try_into().unwrap(), core::mem::transmute(ctobehashed), core::mem::transmute(rgpbtobehashed), core::mem::transmute(rgcbtobehashed), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash.unwrap_or(core::mem::zeroed()))).ok() + CryptVerifyDetachedMessageHash(phashpara, core::mem::transmute(pbdetachedhashblob.as_ptr()), pbdetachedhashblob.len().try_into().unwrap(), ctobehashed, rgpbtobehashed, rgcbtobehashed, core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifyDetachedMessageSignature(pverifypara: *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex: u32, pbdetachedsignblob: &[u8], ctobesigned: u32, rgpbtobesigned: *const *const u8, rgcbtobesigned: *const u32, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyDetachedMessageSignature(pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbdetachedsignblob : *const u8, cbdetachedsignblob : u32, ctobesigned : u32, rgpbtobesigned : *const *const u8, rgcbtobesigned : *const u32, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CryptVerifyDetachedMessageSignature(core::mem::transmute(pverifypara), core::mem::transmute(dwsignerindex), core::mem::transmute(pbdetachedsignblob.as_ptr()), pbdetachedsignblob.len().try_into().unwrap(), core::mem::transmute(ctobesigned), core::mem::transmute(rgpbtobesigned), core::mem::transmute(rgcbtobesigned), core::mem::transmute(ppsignercert.unwrap_or(core::mem::zeroed()))).ok() + CryptVerifyDetachedMessageSignature(pverifypara, dwsignerindex, core::mem::transmute(pbdetachedsignblob.as_ptr()), pbdetachedsignblob.len().try_into().unwrap(), ctobesigned, rgpbtobesigned, rgcbtobesigned, core::mem::transmute(ppsignercert.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifyMessageHash(phashpara: *const CRYPT_HASH_MESSAGE_PARA, pbhashedblob: &[u8], pbtobehashed: Option<*mut u8>, pcbtobehashed: Option<*mut u32>, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageHash(phashpara : *const CRYPT_HASH_MESSAGE_PARA, pbhashedblob : *const u8, cbhashedblob : u32, pbtobehashed : *mut u8, pcbtobehashed : *mut u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); - CryptVerifyMessageHash(core::mem::transmute(phashpara), core::mem::transmute(pbhashedblob.as_ptr()), pbhashedblob.len().try_into().unwrap(), core::mem::transmute(pbtobehashed.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbtobehashed.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash.unwrap_or(core::mem::zeroed()))).ok() + CryptVerifyMessageHash(phashpara, core::mem::transmute(pbhashedblob.as_ptr()), pbhashedblob.len().try_into().unwrap(), core::mem::transmute(pbtobehashed.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbtobehashed.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcomputedhash.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcomputedhash.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifyMessageSignature(pverifypara: *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex: u32, pbsignedblob: &[u8], pbdecoded: Option<*mut u8>, pcbdecoded: Option<*mut u32>, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageSignature(pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbsignedblob : *const u8, cbsignedblob : u32, pbdecoded : *mut u8, pcbdecoded : *mut u32, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); - CryptVerifyMessageSignature(core::mem::transmute(pverifypara), core::mem::transmute(dwsignerindex), core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap(), core::mem::transmute(pbdecoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsignercert.unwrap_or(core::mem::zeroed()))).ok() + CryptVerifyMessageSignature(pverifypara, dwsignerindex, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap(), core::mem::transmute(pbdecoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsignercert.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifyMessageSignatureWithKey(pverifypara: *const CRYPT_KEY_VERIFY_MESSAGE_PARA, ppublickeyinfo: Option<*const CERT_PUBLIC_KEY_INFO>, pbsignedblob: &[u8], pbdecoded: Option<*mut u8>, pcbdecoded: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageSignatureWithKey(pverifypara : *const CRYPT_KEY_VERIFY_MESSAGE_PARA, ppublickeyinfo : *const CERT_PUBLIC_KEY_INFO, pbsignedblob : *const u8, cbsignedblob : u32, pbdecoded : *mut u8, pcbdecoded : *mut u32) -> super::super::Foundation:: BOOL); - CryptVerifyMessageSignatureWithKey(core::mem::transmute(pverifypara), core::mem::transmute(ppublickeyinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap(), core::mem::transmute(pbdecoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecoded.unwrap_or(core::mem::zeroed()))).ok() + CryptVerifyMessageSignatureWithKey(pverifypara, core::mem::transmute(ppublickeyinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap(), core::mem::transmute(pbdecoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdecoded.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CryptVerifySignatureA(hhash: usize, pbsignature: &[u8], hpubkey: usize, szdescription: P4, dwflags: u32) -> windows_core::Result<()> @@ -1987,7 +1957,7 @@ where P4: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptVerifySignatureA(hhash : usize, pbsignature : *const u8, dwsiglen : u32, hpubkey : usize, szdescription : windows_core::PCSTR, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptVerifySignatureA(core::mem::transmute(hhash), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), core::mem::transmute(hpubkey), szdescription.param().abi(), core::mem::transmute(dwflags)).ok() + CryptVerifySignatureA(hhash, core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), hpubkey, szdescription.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CryptVerifySignatureW(hhash: usize, pbsignature: &[u8], hpubkey: usize, szdescription: P4, dwflags: u32) -> windows_core::Result<()> @@ -1995,7 +1965,7 @@ where P4: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptVerifySignatureW(hhash : usize, pbsignature : *const u8, dwsiglen : u32, hpubkey : usize, szdescription : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); - CryptVerifySignatureW(core::mem::transmute(hhash), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), core::mem::transmute(hpubkey), szdescription.param().abi(), core::mem::transmute(dwflags)).ok() + CryptVerifySignatureW(hhash, core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), hpubkey, szdescription.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CryptVerifyTimeStampSignature(pbtscontentinfo: &[u8], pbdata: Option<&[u8]>, hadditionalstore: Option, pptscontext: *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner: *mut *mut CERT_CONTEXT, phstore: Option<*mut HCERTSTORE>) -> windows_core::Result<()> { @@ -2006,12 +1976,12 @@ pub unsafe fn CryptVerifyTimeStampSignature(pbtscontentinfo: &[u8], pbdata: Opti pub unsafe fn CryptXmlAddObject(hsignatureorobject: *const core::ffi::c_void, dwflags: u32, rgproperty: Option<&[CRYPT_XML_PROPERTY]>, pencoded: *const CRYPT_XML_BLOB) -> windows_core::Result<*mut CRYPT_XML_OBJECT> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlAddObject(hsignatureorobject : *const core::ffi::c_void, dwflags : u32, rgproperty : *const CRYPT_XML_PROPERTY, cproperty : u32, pencoded : *const CRYPT_XML_BLOB, ppobject : *mut *mut CRYPT_XML_OBJECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlAddObject(core::mem::transmute(hsignatureorobject), core::mem::transmute(dwflags), core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pencoded), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlAddObject(hsignatureorobject, dwflags, core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pencoded, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlClose(hcryptxml: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlClose(hcryptxml : *const core::ffi::c_void) -> windows_core::HRESULT); - CryptXmlClose(core::mem::transmute(hcryptxml)).ok() + CryptXmlClose(hcryptxml).ok() } #[inline] pub unsafe fn CryptXmlCreateReference(hcryptxml: *const core::ffi::c_void, dwflags: u32, wszid: P2, wszuri: P3, wsztype: P4, pdigestmethod: *const CRYPT_XML_ALGORITHM, rgtransform: Option<&[CRYPT_XML_ALGORITHM]>, phreference: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -2021,57 +1991,57 @@ where P4: windows_core::Param, { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlCreateReference(hcryptxml : *const core::ffi::c_void, dwflags : u32, wszid : windows_core::PCWSTR, wszuri : windows_core::PCWSTR, wsztype : windows_core::PCWSTR, pdigestmethod : *const CRYPT_XML_ALGORITHM, ctransform : u32, rgtransform : *const CRYPT_XML_ALGORITHM, phreference : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CryptXmlCreateReference(core::mem::transmute(hcryptxml), core::mem::transmute(dwflags), wszid.param().abi(), wszuri.param().abi(), wsztype.param().abi(), core::mem::transmute(pdigestmethod), rgtransform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgtransform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(phreference)).ok() + CryptXmlCreateReference(hcryptxml, dwflags, wszid.param().abi(), wszuri.param().abi(), wsztype.param().abi(), pdigestmethod, rgtransform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgtransform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(phreference)).ok() } #[inline] pub unsafe fn CryptXmlDigestReference(hreference: *const core::ffi::c_void, dwflags: u32, pdataproviderin: *const CRYPT_XML_DATA_PROVIDER) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlDigestReference(hreference : *const core::ffi::c_void, dwflags : u32, pdataproviderin : *const CRYPT_XML_DATA_PROVIDER) -> windows_core::HRESULT); - CryptXmlDigestReference(core::mem::transmute(hreference), core::mem::transmute(dwflags), core::mem::transmute(pdataproviderin)).ok() + CryptXmlDigestReference(hreference, dwflags, pdataproviderin).ok() } #[inline] pub unsafe fn CryptXmlEncode(hcryptxml: *const core::ffi::c_void, dwcharset: CRYPT_XML_CHARSET, rgproperty: Option<&[CRYPT_XML_PROPERTY]>, pvcallbackstate: *mut core::ffi::c_void, pfnwrite: PFN_CRYPT_XML_WRITE_CALLBACK) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlEncode(hcryptxml : *const core::ffi::c_void, dwcharset : CRYPT_XML_CHARSET, rgproperty : *const CRYPT_XML_PROPERTY, cproperty : u32, pvcallbackstate : *mut core::ffi::c_void, pfnwrite : PFN_CRYPT_XML_WRITE_CALLBACK) -> windows_core::HRESULT); - CryptXmlEncode(core::mem::transmute(hcryptxml), core::mem::transmute(dwcharset), core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pvcallbackstate), core::mem::transmute(pfnwrite)).ok() + CryptXmlEncode(hcryptxml, dwcharset, core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pvcallbackstate), pfnwrite).ok() } #[inline] pub unsafe fn CryptXmlEnumAlgorithmInfo(dwgroupid: u32, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenumalginfo: PFN_CRYPT_XML_ENUM_ALG_INFO) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlEnumAlgorithmInfo(dwgroupid : u32, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumalginfo : PFN_CRYPT_XML_ENUM_ALG_INFO) -> windows_core::HRESULT); - CryptXmlEnumAlgorithmInfo(core::mem::transmute(dwgroupid), core::mem::transmute(dwflags), core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnenumalginfo)).ok() + CryptXmlEnumAlgorithmInfo(dwgroupid, dwflags, core::mem::transmute(pvarg.unwrap_or(core::mem::zeroed())), pfnenumalginfo).ok() } #[inline] pub unsafe fn CryptXmlFindAlgorithmInfo(dwfindbytype: u32, pvfindby: *const core::ffi::c_void, dwgroupid: u32, dwflags: u32) -> *mut CRYPT_XML_ALGORITHM_INFO { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlFindAlgorithmInfo(dwfindbytype : u32, pvfindby : *const core::ffi::c_void, dwgroupid : u32, dwflags : u32) -> *mut CRYPT_XML_ALGORITHM_INFO); - CryptXmlFindAlgorithmInfo(core::mem::transmute(dwfindbytype), core::mem::transmute(pvfindby), core::mem::transmute(dwgroupid), core::mem::transmute(dwflags)) + CryptXmlFindAlgorithmInfo(dwfindbytype, pvfindby, dwgroupid, dwflags) } #[inline] pub unsafe fn CryptXmlGetAlgorithmInfo(pxmlalgorithm: *const CRYPT_XML_ALGORITHM, dwflags: CRYPT_XML_FLAGS) -> windows_core::Result<*mut CRYPT_XML_ALGORITHM_INFO> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlGetAlgorithmInfo(pxmlalgorithm : *const CRYPT_XML_ALGORITHM, dwflags : CRYPT_XML_FLAGS, ppalginfo : *mut *mut CRYPT_XML_ALGORITHM_INFO) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlGetAlgorithmInfo(core::mem::transmute(pxmlalgorithm), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetAlgorithmInfo(pxmlalgorithm, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlGetDocContext(hcryptxml: *const core::ffi::c_void) -> windows_core::Result<*mut CRYPT_XML_DOC_CTXT> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlGetDocContext(hcryptxml : *const core::ffi::c_void, ppstruct : *mut *mut CRYPT_XML_DOC_CTXT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlGetDocContext(core::mem::transmute(hcryptxml), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetDocContext(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlGetReference(hcryptxml: *const core::ffi::c_void) -> windows_core::Result<*mut CRYPT_XML_REFERENCE> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlGetReference(hcryptxml : *const core::ffi::c_void, ppstruct : *mut *mut CRYPT_XML_REFERENCE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlGetReference(core::mem::transmute(hcryptxml), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetReference(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlGetSignature(hcryptxml: *const core::ffi::c_void) -> windows_core::Result<*mut CRYPT_XML_SIGNATURE> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlGetSignature(hcryptxml : *const core::ffi::c_void, ppstruct : *mut *mut CRYPT_XML_SIGNATURE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlGetSignature(core::mem::transmute(hcryptxml), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetSignature(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlGetStatus(hcryptxml: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlGetStatus(hcryptxml : *const core::ffi::c_void, pstatus : *mut CRYPT_XML_STATUS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlGetStatus(core::mem::transmute(hcryptxml), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetStatus(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlGetTransforms() -> windows_core::Result<*mut CRYPT_XML_TRANSFORM_CHAIN_CONFIG> { @@ -2083,12 +2053,12 @@ pub unsafe fn CryptXmlGetTransforms() -> windows_core::Result<*mut CRYPT_XML_TRA pub unsafe fn CryptXmlImportPublicKey(dwflags: CRYPT_XML_FLAGS, pkeyvalue: *const CRYPT_XML_KEY_VALUE) -> windows_core::Result { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlImportPublicKey(dwflags : CRYPT_XML_FLAGS, pkeyvalue : *const CRYPT_XML_KEY_VALUE, phkey : *mut BCRYPT_KEY_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CryptXmlImportPublicKey(core::mem::transmute(dwflags), core::mem::transmute(pkeyvalue), &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlImportPublicKey(dwflags, pkeyvalue, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CryptXmlOpenToDecode(pconfig: Option<*const CRYPT_XML_TRANSFORM_CHAIN_CONFIG>, dwflags: CRYPT_XML_FLAGS, rgproperty: Option<&[CRYPT_XML_PROPERTY]>, pencoded: *const CRYPT_XML_BLOB, phcryptxml: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlOpenToDecode(pconfig : *const CRYPT_XML_TRANSFORM_CHAIN_CONFIG, dwflags : CRYPT_XML_FLAGS, rgproperty : *const CRYPT_XML_PROPERTY, cproperty : u32, pencoded : *const CRYPT_XML_BLOB, phcryptxml : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CryptXmlOpenToDecode(core::mem::transmute(pconfig.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pencoded), core::mem::transmute(phcryptxml)).ok() + CryptXmlOpenToDecode(core::mem::transmute(pconfig.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pencoded, core::mem::transmute(phcryptxml)).ok() } #[inline] pub unsafe fn CryptXmlOpenToEncode(pconfig: Option<*const CRYPT_XML_TRANSFORM_CHAIN_CONFIG>, dwflags: CRYPT_XML_FLAGS, wszid: P2, rgproperty: Option<&[CRYPT_XML_PROPERTY]>, pencoded: Option<*const CRYPT_XML_BLOB>, phsignature: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -2096,32 +2066,32 @@ where P2: windows_core::Param, { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlOpenToEncode(pconfig : *const CRYPT_XML_TRANSFORM_CHAIN_CONFIG, dwflags : CRYPT_XML_FLAGS, wszid : windows_core::PCWSTR, rgproperty : *const CRYPT_XML_PROPERTY, cproperty : u32, pencoded : *const CRYPT_XML_BLOB, phsignature : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CryptXmlOpenToEncode(core::mem::transmute(pconfig.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), wszid.param().abi(), core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(phsignature)).ok() + CryptXmlOpenToEncode(core::mem::transmute(pconfig.unwrap_or(core::mem::zeroed())), dwflags, wszid.param().abi(), core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pencoded.unwrap_or(core::mem::zeroed())), core::mem::transmute(phsignature)).ok() } #[inline] pub unsafe fn CryptXmlSetHMACSecret(hsignature: *const core::ffi::c_void, pbsecret: &[u8]) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlSetHMACSecret(hsignature : *const core::ffi::c_void, pbsecret : *const u8, cbsecret : u32) -> windows_core::HRESULT); - CryptXmlSetHMACSecret(core::mem::transmute(hsignature), core::mem::transmute(pbsecret.as_ptr()), pbsecret.len().try_into().unwrap()).ok() + CryptXmlSetHMACSecret(hsignature, core::mem::transmute(pbsecret.as_ptr()), pbsecret.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn CryptXmlSign(hsignature: *const core::ffi::c_void, hkey: Option, dwkeyspec: CERT_KEY_SPEC, dwflags: CRYPT_XML_FLAGS, dwkeyinfospec: CRYPT_XML_KEYINFO_SPEC, pvkeyinfospec: Option<*const core::ffi::c_void>, psignaturemethod: *const CRYPT_XML_ALGORITHM, pcanonicalization: *const CRYPT_XML_ALGORITHM) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlSign(hsignature : *const core::ffi::c_void, hkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : CERT_KEY_SPEC, dwflags : CRYPT_XML_FLAGS, dwkeyinfospec : CRYPT_XML_KEYINFO_SPEC, pvkeyinfospec : *const core::ffi::c_void, psignaturemethod : *const CRYPT_XML_ALGORITHM, pcanonicalization : *const CRYPT_XML_ALGORITHM) -> windows_core::HRESULT); - CryptXmlSign(core::mem::transmute(hsignature), core::mem::transmute(hkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwkeyspec), core::mem::transmute(dwflags), core::mem::transmute(dwkeyinfospec), core::mem::transmute(pvkeyinfospec.unwrap_or(core::mem::zeroed())), core::mem::transmute(psignaturemethod), core::mem::transmute(pcanonicalization)).ok() + CryptXmlSign(hsignature, core::mem::transmute(hkey.unwrap_or(core::mem::zeroed())), dwkeyspec, dwflags, dwkeyinfospec, core::mem::transmute(pvkeyinfospec.unwrap_or(core::mem::zeroed())), psignaturemethod, pcanonicalization).ok() } #[inline] pub unsafe fn CryptXmlVerifySignature(hsignature: *const core::ffi::c_void, hkey: Option, dwflags: CRYPT_XML_FLAGS) -> windows_core::Result<()> { windows_targets::link!("cryptxml.dll" "system" fn CryptXmlVerifySignature(hsignature : *const core::ffi::c_void, hkey : BCRYPT_KEY_HANDLE, dwflags : CRYPT_XML_FLAGS) -> windows_core::HRESULT); - CryptXmlVerifySignature(core::mem::transmute(hsignature), core::mem::transmute(hkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + CryptXmlVerifySignature(hsignature, core::mem::transmute(hkey.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn Decrypt(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, foaep: bool, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn Decrypt(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, foaep : super::super::Foundation:: BOOL, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); - Decrypt(core::mem::transmute(hcrypto), foaep.into(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() + Decrypt(hcrypto, foaep.into(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() } #[inline] pub unsafe fn Encrypt(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, foaep: bool, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn Encrypt(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, foaep : super::super::Foundation:: BOOL, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); - Encrypt(core::mem::transmute(hcrypto), foaep.into(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() + Encrypt(hcrypto, foaep.into(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() } #[inline] pub unsafe fn FindCertsByIssuer(pcertchains: Option<*mut CERT_CHAIN>, pcbcertchains: *mut u32, pccertchains: *mut u32, pbencodedissuername: Option<&[u8]>, pwszpurpose: P5, dwkeyspec: u32) -> windows_core::Result<()> @@ -2129,12 +2099,12 @@ where P5: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn FindCertsByIssuer(pcertchains : *mut CERT_CHAIN, pcbcertchains : *mut u32, pccertchains : *mut u32, pbencodedissuername : *const u8, cbencodedissuername : u32, pwszpurpose : windows_core::PCWSTR, dwkeyspec : u32) -> windows_core::HRESULT); - FindCertsByIssuer(core::mem::transmute(pcertchains.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcertchains), core::mem::transmute(pccertchains), core::mem::transmute(pbencodedissuername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbencodedissuername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pwszpurpose.param().abi(), core::mem::transmute(dwkeyspec)).ok() + FindCertsByIssuer(core::mem::transmute(pcertchains.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbcertchains), core::mem::transmute(pccertchains), core::mem::transmute(pbencodedissuername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbencodedissuername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pwszpurpose.param().abi(), dwkeyspec).ok() } #[inline] pub unsafe fn FreeToken(pallocmemory: *const GENERIC_XML_TOKEN) -> super::super::Foundation::BOOL { windows_targets::link!("infocardapi.dll" "system" fn FreeToken(pallocmemory : *const GENERIC_XML_TOKEN) -> super::super::Foundation:: BOOL); - FreeToken(core::mem::transmute(pallocmemory)) + FreeToken(pallocmemory) } #[inline] pub unsafe fn GenerateDerivedKey(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, plabel: &[u8], pnonce: &[u8], derivedkeylength: u32, offset: u32, algid: P7, pcbkey: *mut u32, ppkey: *mut *mut u8) -> windows_core::Result<()> @@ -2142,7 +2112,7 @@ where P7: windows_core::Param, { windows_targets::link!("infocardapi.dll" "system" fn GenerateDerivedKey(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cblabel : u32, plabel : *const u8, cbnonce : u32, pnonce : *const u8, derivedkeylength : u32, offset : u32, algid : windows_core::PCWSTR, pcbkey : *mut u32, ppkey : *mut *mut u8) -> windows_core::HRESULT); - GenerateDerivedKey(core::mem::transmute(hcrypto), plabel.len().try_into().unwrap(), core::mem::transmute(plabel.as_ptr()), pnonce.len().try_into().unwrap(), core::mem::transmute(pnonce.as_ptr()), core::mem::transmute(derivedkeylength), core::mem::transmute(offset), algid.param().abi(), core::mem::transmute(pcbkey), core::mem::transmute(ppkey)).ok() + GenerateDerivedKey(hcrypto, plabel.len().try_into().unwrap(), core::mem::transmute(plabel.as_ptr()), pnonce.len().try_into().unwrap(), core::mem::transmute(pnonce.as_ptr()), derivedkeylength, offset, algid.param().abi(), core::mem::transmute(pcbkey), core::mem::transmute(ppkey)).ok() } #[inline] pub unsafe fn GetAsymmetricEncryptionInterface(pszprovidername: P0, pszalgid: P1, ppfunctiontable: *mut *mut BCRYPT_ASYMMETRIC_ENCRYPTION_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2151,12 +2121,12 @@ where P1: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetAsymmetricEncryptionInterface(pszprovidername : windows_core::PCWSTR, pszalgid : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_ASYMMETRIC_ENCRYPTION_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetAsymmetricEncryptionInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetAsymmetricEncryptionInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetBrowserToken(dwparamtype: u32, pparam: *const core::ffi::c_void, pcbtoken: Option<*mut u32>, pptoken: Option<*mut *mut u8>) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn GetBrowserToken(dwparamtype : u32, pparam : *const core::ffi::c_void, pcbtoken : *mut u32, pptoken : *mut *mut u8) -> windows_core::HRESULT); - GetBrowserToken(core::mem::transmute(dwparamtype), core::mem::transmute(pparam), core::mem::transmute(pcbtoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptoken.unwrap_or(core::mem::zeroed()))).ok() + GetBrowserToken(dwparamtype, pparam, core::mem::transmute(pcbtoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptoken.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetCipherInterface(pszprovidername: P0, pszalgid: P1, ppfunctiontable: *mut *mut BCRYPT_CIPHER_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2165,13 +2135,13 @@ where P1: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetCipherInterface(pszprovidername : windows_core::PCWSTR, pszalgid : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_CIPHER_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetCipherInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetCipherInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetCryptoTransform(hsymmetriccrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, mode: u32, padding: PaddingMode, feedbacksize: u32, direction: Direction, piv: &[u8]) -> windows_core::Result<*mut INFORMATIONCARD_CRYPTO_HANDLE> { windows_targets::link!("infocardapi.dll" "system" fn GetCryptoTransform(hsymmetriccrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, mode : u32, padding : PaddingMode, feedbacksize : u32, direction : Direction, cbiv : u32, piv : *const u8, pphtransform : *mut *mut INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetCryptoTransform(core::mem::transmute(hsymmetriccrypto), core::mem::transmute(mode), core::mem::transmute(padding), core::mem::transmute(feedbacksize), core::mem::transmute(direction), piv.len().try_into().unwrap(), core::mem::transmute(piv.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + GetCryptoTransform(hsymmetriccrypto, mode, padding, feedbacksize, direction, piv.len().try_into().unwrap(), core::mem::transmute(piv.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetHashInterface(pszprovidername: P0, pszalgid: P1, ppfunctiontable: *mut *mut BCRYPT_HASH_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2180,7 +2150,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetHashInterface(pszprovidername : windows_core::PCWSTR, pszalgid : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_HASH_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetHashInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetHashInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetKeyDerivationInterface(pszprovidername: P0, pszalgid: P1, ppfunctiontable: *mut *mut BCRYPT_KEY_DERIVATION_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2189,7 +2159,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetKeyDerivationInterface(pszprovidername : windows_core::PCWSTR, pszalgid : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_KEY_DERIVATION_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetKeyDerivationInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetKeyDerivationInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetKeyStorageInterface(pszprovidername: P0, ppfunctiontable: *mut *mut NCRYPT_KEY_STORAGE_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2197,13 +2167,13 @@ where P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn GetKeyStorageInterface(pszprovidername : windows_core::PCWSTR, ppfunctiontable : *mut *mut NCRYPT_KEY_STORAGE_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetKeyStorageInterface(pszprovidername.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetKeyStorageInterface(pszprovidername.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetKeyedHash(hsymmetriccrypto: *const INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::Result<*mut INFORMATIONCARD_CRYPTO_HANDLE> { windows_targets::link!("infocardapi.dll" "system" fn GetKeyedHash(hsymmetriccrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, pphhash : *mut *mut INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetKeyedHash(core::mem::transmute(hsymmetriccrypto), &mut result__).map(|| core::mem::transmute(result__)) + GetKeyedHash(hsymmetriccrypto, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetRngInterface(pszprovidername: P0, ppfunctiontable: *mut *mut BCRYPT_RNG_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2211,7 +2181,7 @@ where P0: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetRngInterface(pszprovidername : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_RNG_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetRngInterface(pszprovidername.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetRngInterface(pszprovidername.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetSChannelInterface(pszprovidername: P0, ppfunctiontable: *mut *mut NCRYPT_SSL_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2219,7 +2189,7 @@ where P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn GetSChannelInterface(pszprovidername : windows_core::PCWSTR, ppfunctiontable : *mut *mut NCRYPT_SSL_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetSChannelInterface(pszprovidername.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetSChannelInterface(pszprovidername.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetSecretAgreementInterface(pszprovidername: P0, pszalgid: P1, ppfunctiontable: *mut *mut BCRYPT_SECRET_AGREEMENT_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2228,7 +2198,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetSecretAgreementInterface(pszprovidername : windows_core::PCWSTR, pszalgid : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_SECRET_AGREEMENT_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetSecretAgreementInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetSecretAgreementInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetSignatureInterface(pszprovidername: P0, pszalgid: P1, ppfunctiontable: *mut *mut BCRYPT_SIGNATURE_FUNCTION_TABLE, dwflags: u32) -> super::super::Foundation::NTSTATUS @@ -2237,7 +2207,7 @@ where P1: windows_core::Param, { windows_targets::link!("bcryptprimitives.dll" "system" fn GetSignatureInterface(pszprovidername : windows_core::PCWSTR, pszalgid : windows_core::PCWSTR, ppfunctiontable : *mut *mut BCRYPT_SIGNATURE_FUNCTION_TABLE, dwflags : u32) -> super::super::Foundation:: NTSTATUS); - GetSignatureInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), core::mem::transmute(dwflags)) + GetSignatureInterface(pszprovidername.param().abi(), pszalgid.param().abi(), core::mem::transmute(ppfunctiontable), dwflags) } #[inline] pub unsafe fn GetToken(ppolicychain: &[POLICY_ELEMENT], securitytoken: *mut *mut GENERIC_XML_TOKEN, phprooftokencrypto: *mut *mut INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::Result<()> { @@ -2247,12 +2217,12 @@ pub unsafe fn GetToken(ppolicychain: &[POLICY_ELEMENT], securitytoken: *mut *mut #[inline] pub unsafe fn HashCore(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, pindata: &[u8]) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn HashCore(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbindata : u32, pindata : *const u8) -> windows_core::HRESULT); - HashCore(core::mem::transmute(hcrypto), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr())).ok() + HashCore(hcrypto, pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr())).ok() } #[inline] pub unsafe fn HashFinal(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn HashFinal(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); - HashFinal(core::mem::transmute(hcrypto), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() + HashFinal(hcrypto, pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() } #[inline] pub unsafe fn ImportInformationCard(filename: P0) -> windows_core::Result<()> @@ -2270,12 +2240,12 @@ pub unsafe fn ManageCardSpace() -> windows_core::Result<()> { #[inline] pub unsafe fn NCryptCloseProtectionDescriptor(hdescriptor: super::NCRYPT_DESCRIPTOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptCloseProtectionDescriptor(hdescriptor : super:: NCRYPT_DESCRIPTOR_HANDLE) -> windows_core::HRESULT); - NCryptCloseProtectionDescriptor(core::mem::transmute(hdescriptor)).ok() + NCryptCloseProtectionDescriptor(hdescriptor).ok() } #[inline] pub unsafe fn NCryptCreateClaim(hsubjectkey: Option, hauthoritykey: Option, dwclaimtype: u32, pparameterlist: Option<*const BCryptBufferDesc>, pbclaimblob: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptCreateClaim(hsubjectkey : NCRYPT_KEY_HANDLE, hauthoritykey : NCRYPT_KEY_HANDLE, dwclaimtype : u32, pparameterlist : *const BCryptBufferDesc, pbclaimblob : *mut u8, cbclaimblob : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - NCryptCreateClaim(core::mem::transmute(hsubjectkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(hauthoritykey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwclaimtype), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbclaimblob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbclaimblob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + NCryptCreateClaim(core::mem::transmute(hsubjectkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(hauthoritykey.unwrap_or(core::mem::zeroed())), dwclaimtype, core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbclaimblob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbclaimblob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptCreatePersistedKey(hprovider: NCRYPT_PROV_HANDLE, phkey: *mut NCRYPT_KEY_HANDLE, pszalgid: P2, pszkeyname: P3, dwlegacykeyspec: CERT_KEY_SPEC, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> @@ -2284,7 +2254,7 @@ where P3: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptCreatePersistedKey(hprovider : NCRYPT_PROV_HANDLE, phkey : *mut NCRYPT_KEY_HANDLE, pszalgid : windows_core::PCWSTR, pszkeyname : windows_core::PCWSTR, dwlegacykeyspec : CERT_KEY_SPEC, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptCreatePersistedKey(core::mem::transmute(hprovider), core::mem::transmute(phkey), pszalgid.param().abi(), pszkeyname.param().abi(), core::mem::transmute(dwlegacykeyspec), core::mem::transmute(dwflags)).ok() + NCryptCreatePersistedKey(hprovider, core::mem::transmute(phkey), pszalgid.param().abi(), pszkeyname.param().abi(), dwlegacykeyspec, dwflags).ok() } #[inline] pub unsafe fn NCryptCreateProtectionDescriptor(pwszdescriptorstring: P0, dwflags: u32) -> windows_core::Result @@ -2293,27 +2263,17 @@ where { windows_targets::link!("ncrypt.dll" "system" fn NCryptCreateProtectionDescriptor(pwszdescriptorstring : windows_core::PCWSTR, dwflags : u32, phdescriptor : *mut super:: NCRYPT_DESCRIPTOR_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - NCryptCreateProtectionDescriptor(pwszdescriptorstring.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + NCryptCreateProtectionDescriptor(pwszdescriptorstring.param().abi(), dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn NCryptDecrypt(hkey: NCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppaddinginfo: Option<*const core::ffi::c_void>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptDecrypt(hkey : NCRYPT_KEY_HANDLE, pbinput : *const u8, cbinput : u32, ppaddinginfo : *const core::ffi::c_void, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptDecrypt( - core::mem::transmute(hkey), - core::mem::transmute(pbinput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbinput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcbresult), - core::mem::transmute(dwflags), - ) - .ok() + NCryptDecrypt(hkey, core::mem::transmute(pbinput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbinput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptDeleteKey(hkey: NCRYPT_KEY_HANDLE, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptDeleteKey(hkey : NCRYPT_KEY_HANDLE, dwflags : u32) -> windows_core::HRESULT); - NCryptDeleteKey(core::mem::transmute(hkey), core::mem::transmute(dwflags)).ok() + NCryptDeleteKey(hkey, dwflags).ok() } #[inline] pub unsafe fn NCryptDeriveKey(hsharedsecret: NCRYPT_SECRET_HANDLE, pwszkdf: P1, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -2321,27 +2281,17 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptDeriveKey(hsharedsecret : NCRYPT_SECRET_HANDLE, pwszkdf : windows_core::PCWSTR, pparameterlist : *const BCryptBufferDesc, pbderivedkey : *mut u8, cbderivedkey : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - NCryptDeriveKey(core::mem::transmute(hsharedsecret), pwszkdf.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbderivedkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + NCryptDeriveKey(hsharedsecret, pwszkdf.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbderivedkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptEncrypt(hkey: NCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppaddinginfo: Option<*const core::ffi::c_void>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptEncrypt(hkey : NCRYPT_KEY_HANDLE, pbinput : *const u8, cbinput : u32, ppaddinginfo : *const core::ffi::c_void, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptEncrypt( - core::mem::transmute(hkey), - core::mem::transmute(pbinput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbinput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcbresult), - core::mem::transmute(dwflags), - ) - .ok() + NCryptEncrypt(hkey, core::mem::transmute(pbinput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbinput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptEnumAlgorithms(hprovider: NCRYPT_PROV_HANDLE, dwalgoperations: NCRYPT_OPERATION, pdwalgcount: *mut u32, ppalglist: *mut *mut NCryptAlgorithmName, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptEnumAlgorithms(hprovider : NCRYPT_PROV_HANDLE, dwalgoperations : NCRYPT_OPERATION, pdwalgcount : *mut u32, ppalglist : *mut *mut NCryptAlgorithmName, dwflags : u32) -> windows_core::HRESULT); - NCryptEnumAlgorithms(core::mem::transmute(hprovider), core::mem::transmute(dwalgoperations), core::mem::transmute(pdwalgcount), core::mem::transmute(ppalglist), core::mem::transmute(dwflags)).ok() + NCryptEnumAlgorithms(hprovider, dwalgoperations, core::mem::transmute(pdwalgcount), core::mem::transmute(ppalglist), dwflags).ok() } #[inline] pub unsafe fn NCryptEnumKeys(hprovider: NCRYPT_PROV_HANDLE, pszscope: P1, ppkeyname: *mut *mut NCryptKeyName, ppenumstate: *mut *mut core::ffi::c_void, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> @@ -2349,12 +2299,12 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptEnumKeys(hprovider : NCRYPT_PROV_HANDLE, pszscope : windows_core::PCWSTR, ppkeyname : *mut *mut NCryptKeyName, ppenumstate : *mut *mut core::ffi::c_void, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptEnumKeys(core::mem::transmute(hprovider), pszscope.param().abi(), core::mem::transmute(ppkeyname), core::mem::transmute(ppenumstate), core::mem::transmute(dwflags)).ok() + NCryptEnumKeys(hprovider, pszscope.param().abi(), core::mem::transmute(ppkeyname), core::mem::transmute(ppenumstate), dwflags).ok() } #[inline] pub unsafe fn NCryptEnumStorageProviders(pdwprovidercount: *mut u32, ppproviderlist: *mut *mut NCryptProviderName, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptEnumStorageProviders(pdwprovidercount : *mut u32, ppproviderlist : *mut *mut NCryptProviderName, dwflags : u32) -> windows_core::HRESULT); - NCryptEnumStorageProviders(core::mem::transmute(pdwprovidercount), core::mem::transmute(ppproviderlist), core::mem::transmute(dwflags)).ok() + NCryptEnumStorageProviders(core::mem::transmute(pdwprovidercount), core::mem::transmute(ppproviderlist), dwflags).ok() } #[inline] pub unsafe fn NCryptExportKey(hkey: NCRYPT_KEY_HANDLE, hexportkey: Option, pszblobtype: P2, pparameterlist: Option<*const BCryptBufferDesc>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> @@ -2362,12 +2312,12 @@ where P2: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptExportKey(hkey : NCRYPT_KEY_HANDLE, hexportkey : NCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, pparameterlist : *const BCryptBufferDesc, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptExportKey(core::mem::transmute(hkey), core::mem::transmute(hexportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + NCryptExportKey(hkey, core::mem::transmute(hexportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptFinalizeKey(hkey: NCRYPT_KEY_HANDLE, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptFinalizeKey(hkey : NCRYPT_KEY_HANDLE, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptFinalizeKey(core::mem::transmute(hkey), core::mem::transmute(dwflags)).ok() + NCryptFinalizeKey(hkey, dwflags).ok() } #[inline] pub unsafe fn NCryptFreeBuffer(pvinput: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2377,7 +2327,7 @@ pub unsafe fn NCryptFreeBuffer(pvinput: *mut core::ffi::c_void) -> windows_core: #[inline] pub unsafe fn NCryptFreeObject(hobject: NCRYPT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptFreeObject(hobject : NCRYPT_HANDLE) -> windows_core::HRESULT); - NCryptFreeObject(core::mem::transmute(hobject)).ok() + NCryptFreeObject(hobject).ok() } #[inline] pub unsafe fn NCryptGetProperty(hobject: NCRYPT_HANDLE, pszproperty: P1, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: super::OBJECT_SECURITY_INFORMATION) -> windows_core::Result<()> @@ -2385,12 +2335,12 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptGetProperty(hobject : NCRYPT_HANDLE, pszproperty : windows_core::PCWSTR, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : super:: OBJECT_SECURITY_INFORMATION) -> windows_core::HRESULT); - NCryptGetProperty(core::mem::transmute(hobject), pszproperty.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + NCryptGetProperty(hobject, pszproperty.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptGetProtectionDescriptorInfo(hdescriptor: super::NCRYPT_DESCRIPTOR_HANDLE, pmempara: Option<*const NCRYPT_ALLOC_PARA>, dwinfotype: u32, ppvinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptGetProtectionDescriptorInfo(hdescriptor : super:: NCRYPT_DESCRIPTOR_HANDLE, pmempara : *const NCRYPT_ALLOC_PARA, dwinfotype : u32, ppvinfo : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NCryptGetProtectionDescriptorInfo(core::mem::transmute(hdescriptor), core::mem::transmute(pmempara.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinfotype), core::mem::transmute(ppvinfo)).ok() + NCryptGetProtectionDescriptorInfo(hdescriptor, core::mem::transmute(pmempara.unwrap_or(core::mem::zeroed())), dwinfotype, core::mem::transmute(ppvinfo)).ok() } #[inline] pub unsafe fn NCryptImportKey(hprovider: NCRYPT_PROV_HANDLE, himportkey: Option, pszblobtype: P2, pparameterlist: Option<*const BCryptBufferDesc>, phkey: *mut NCRYPT_KEY_HANDLE, pbdata: &[u8], dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> @@ -2398,7 +2348,7 @@ where P2: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptImportKey(hprovider : NCRYPT_PROV_HANDLE, himportkey : NCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, pparameterlist : *const BCryptBufferDesc, phkey : *mut NCRYPT_KEY_HANDLE, pbdata : *const u8, cbdata : u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptImportKey(core::mem::transmute(hprovider), core::mem::transmute(himportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + NCryptImportKey(hprovider, core::mem::transmute(himportkey.unwrap_or(core::mem::zeroed())), pszblobtype.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn NCryptIsAlgSupported(hprovider: NCRYPT_PROV_HANDLE, pszalgid: P1, dwflags: u32) -> windows_core::Result<()> @@ -2406,22 +2356,22 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptIsAlgSupported(hprovider : NCRYPT_PROV_HANDLE, pszalgid : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - NCryptIsAlgSupported(core::mem::transmute(hprovider), pszalgid.param().abi(), core::mem::transmute(dwflags)).ok() + NCryptIsAlgSupported(hprovider, pszalgid.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptIsKeyHandle(hkey: NCRYPT_KEY_HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("ncrypt.dll" "system" fn NCryptIsKeyHandle(hkey : NCRYPT_KEY_HANDLE) -> super::super::Foundation:: BOOL); - NCryptIsKeyHandle(core::mem::transmute(hkey)) + NCryptIsKeyHandle(hkey) } #[inline] pub unsafe fn NCryptKeyDerivation(hkey: NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: &mut [u8], pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptKeyDerivation(hkey : NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, pbderivedkey : *mut u8, cbderivedkey : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - NCryptKeyDerivation(core::mem::transmute(hkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + NCryptKeyDerivation(hkey, core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptNotifyChangeKey(hprovider: NCRYPT_PROV_HANDLE, phevent: *mut super::super::Foundation::HANDLE, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptNotifyChangeKey(hprovider : NCRYPT_PROV_HANDLE, phevent : *mut super::super::Foundation:: HANDLE, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptNotifyChangeKey(core::mem::transmute(hprovider), core::mem::transmute(phevent), core::mem::transmute(dwflags)).ok() + NCryptNotifyChangeKey(hprovider, core::mem::transmute(phevent), dwflags).ok() } #[inline] pub unsafe fn NCryptOpenKey(hprovider: NCRYPT_PROV_HANDLE, phkey: *mut NCRYPT_KEY_HANDLE, pszkeyname: P2, dwlegacykeyspec: CERT_KEY_SPEC, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> @@ -2429,7 +2379,7 @@ where P2: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptOpenKey(hprovider : NCRYPT_PROV_HANDLE, phkey : *mut NCRYPT_KEY_HANDLE, pszkeyname : windows_core::PCWSTR, dwlegacykeyspec : CERT_KEY_SPEC, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptOpenKey(core::mem::transmute(hprovider), core::mem::transmute(phkey), pszkeyname.param().abi(), core::mem::transmute(dwlegacykeyspec), core::mem::transmute(dwflags)).ok() + NCryptOpenKey(hprovider, core::mem::transmute(phkey), pszkeyname.param().abi(), dwlegacykeyspec, dwflags).ok() } #[inline] pub unsafe fn NCryptOpenStorageProvider(phprovider: *mut NCRYPT_PROV_HANDLE, pszprovidername: P1, dwflags: u32) -> windows_core::Result<()> @@ -2437,12 +2387,12 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptOpenStorageProvider(phprovider : *mut NCRYPT_PROV_HANDLE, pszprovidername : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - NCryptOpenStorageProvider(core::mem::transmute(phprovider), pszprovidername.param().abi(), core::mem::transmute(dwflags)).ok() + NCryptOpenStorageProvider(core::mem::transmute(phprovider), pszprovidername.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptProtectSecret(hdescriptor: super::NCRYPT_DESCRIPTOR_HANDLE, dwflags: u32, pbdata: &[u8], pmempara: Option<*const NCRYPT_ALLOC_PARA>, hwnd: Option, ppbprotectedblob: *mut *mut u8, pcbprotectedblob: *mut u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptProtectSecret(hdescriptor : super:: NCRYPT_DESCRIPTOR_HANDLE, dwflags : u32, pbdata : *const u8, cbdata : u32, pmempara : *const NCRYPT_ALLOC_PARA, hwnd : super::super::Foundation:: HWND, ppbprotectedblob : *mut *mut u8, pcbprotectedblob : *mut u32) -> windows_core::HRESULT); - NCryptProtectSecret(core::mem::transmute(hdescriptor), core::mem::transmute(dwflags), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbprotectedblob), core::mem::transmute(pcbprotectedblob)).ok() + NCryptProtectSecret(hdescriptor, dwflags, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbprotectedblob), core::mem::transmute(pcbprotectedblob)).ok() } #[inline] pub unsafe fn NCryptQueryProtectionDescriptorName(pwszname: P0, pwszdescriptorstring: Option, pcdescriptorstring: *mut usize, dwflags: u32) -> windows_core::Result<()> @@ -2450,7 +2400,7 @@ where P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptQueryProtectionDescriptorName(pwszname : windows_core::PCWSTR, pwszdescriptorstring : windows_core::PWSTR, pcdescriptorstring : *mut usize, dwflags : u32) -> windows_core::HRESULT); - NCryptQueryProtectionDescriptorName(pwszname.param().abi(), core::mem::transmute(pwszdescriptorstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdescriptorstring), core::mem::transmute(dwflags)).ok() + NCryptQueryProtectionDescriptorName(pwszname.param().abi(), core::mem::transmute(pwszdescriptorstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcdescriptorstring), dwflags).ok() } #[inline] pub unsafe fn NCryptRegisterProtectionDescriptorName(pwszname: P0, pwszdescriptorstring: P1, dwflags: u32) -> windows_core::Result<()> @@ -2459,12 +2409,12 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptRegisterProtectionDescriptorName(pwszname : windows_core::PCWSTR, pwszdescriptorstring : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - NCryptRegisterProtectionDescriptorName(pwszname.param().abi(), pwszdescriptorstring.param().abi(), core::mem::transmute(dwflags)).ok() + NCryptRegisterProtectionDescriptorName(pwszname.param().abi(), pwszdescriptorstring.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptSecretAgreement(hprivkey: NCRYPT_KEY_HANDLE, hpubkey: NCRYPT_KEY_HANDLE, phagreedsecret: *mut NCRYPT_SECRET_HANDLE, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptSecretAgreement(hprivkey : NCRYPT_KEY_HANDLE, hpubkey : NCRYPT_KEY_HANDLE, phagreedsecret : *mut NCRYPT_SECRET_HANDLE, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptSecretAgreement(core::mem::transmute(hprivkey), core::mem::transmute(hpubkey), core::mem::transmute(phagreedsecret), core::mem::transmute(dwflags)).ok() + NCryptSecretAgreement(hprivkey, hpubkey, core::mem::transmute(phagreedsecret), dwflags).ok() } #[inline] pub unsafe fn NCryptSetProperty(hobject: NCRYPT_HANDLE, pszproperty: P1, pbinput: &[u8], dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> @@ -2472,60 +2422,60 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptSetProperty(hobject : NCRYPT_HANDLE, pszproperty : windows_core::PCWSTR, pbinput : *const u8, cbinput : u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptSetProperty(core::mem::transmute(hobject), pszproperty.param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + NCryptSetProperty(hobject, pszproperty.param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn NCryptSignHash(hkey: NCRYPT_KEY_HANDLE, ppaddinginfo: Option<*const core::ffi::c_void>, pbhashvalue: &[u8], pbsignature: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptSignHash(hkey : NCRYPT_KEY_HANDLE, ppaddinginfo : *const core::ffi::c_void, pbhashvalue : *const u8, cbhashvalue : u32, pbsignature : *mut u8, cbsignature : u32, pcbresult : *mut u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptSignHash(core::mem::transmute(hkey), core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsignature.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + NCryptSignHash(hkey, core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsignature.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn NCryptStreamClose(hstream: super::NCRYPT_STREAM_HANDLE) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamClose(hstream : super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); - NCryptStreamClose(core::mem::transmute(hstream)).ok() + NCryptStreamClose(hstream).ok() } #[inline] pub unsafe fn NCryptStreamOpenToProtect(hdescriptor: super::NCRYPT_DESCRIPTOR_HANDLE, dwflags: u32, hwnd: Option, pstreaminfo: *const NCRYPT_PROTECT_STREAM_INFO) -> windows_core::Result { windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamOpenToProtect(hdescriptor : super:: NCRYPT_DESCRIPTOR_HANDLE, dwflags : u32, hwnd : super::super::Foundation:: HWND, pstreaminfo : *const NCRYPT_PROTECT_STREAM_INFO, phstream : *mut super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - NCryptStreamOpenToProtect(core::mem::transmute(hdescriptor), core::mem::transmute(dwflags), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pstreaminfo), &mut result__).map(|| core::mem::transmute(result__)) + NCryptStreamOpenToProtect(hdescriptor, dwflags, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pstreaminfo, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn NCryptStreamOpenToUnprotect(pstreaminfo: *const NCRYPT_PROTECT_STREAM_INFO, dwflags: u32, hwnd: Option) -> windows_core::Result { windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamOpenToUnprotect(pstreaminfo : *const NCRYPT_PROTECT_STREAM_INFO, dwflags : u32, hwnd : super::super::Foundation:: HWND, phstream : *mut super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - NCryptStreamOpenToUnprotect(core::mem::transmute(pstreaminfo), core::mem::transmute(dwflags), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + NCryptStreamOpenToUnprotect(pstreaminfo, dwflags, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn NCryptStreamOpenToUnprotectEx(pstreaminfo: *const NCRYPT_PROTECT_STREAM_INFO_EX, dwflags: u32, hwnd: Option) -> windows_core::Result { windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamOpenToUnprotectEx(pstreaminfo : *const NCRYPT_PROTECT_STREAM_INFO_EX, dwflags : u32, hwnd : super::super::Foundation:: HWND, phstream : *mut super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - NCryptStreamOpenToUnprotectEx(core::mem::transmute(pstreaminfo), core::mem::transmute(dwflags), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + NCryptStreamOpenToUnprotectEx(pstreaminfo, dwflags, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn NCryptStreamUpdate(hstream: super::NCRYPT_STREAM_HANDLE, pbdata: &[u8], ffinal: bool) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamUpdate(hstream : super:: NCRYPT_STREAM_HANDLE, pbdata : *const u8, cbdata : usize, ffinal : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - NCryptStreamUpdate(core::mem::transmute(hstream), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), ffinal.into()).ok() + NCryptStreamUpdate(hstream, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), ffinal.into()).ok() } #[inline] pub unsafe fn NCryptTranslateHandle(phprovider: Option<*mut NCRYPT_PROV_HANDLE>, phkey: *mut NCRYPT_KEY_HANDLE, hlegacyprov: usize, hlegacykey: Option, dwlegacykeyspec: Option, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptTranslateHandle(phprovider : *mut NCRYPT_PROV_HANDLE, phkey : *mut NCRYPT_KEY_HANDLE, hlegacyprov : usize, hlegacykey : usize, dwlegacykeyspec : CERT_KEY_SPEC, dwflags : u32) -> windows_core::HRESULT); - NCryptTranslateHandle(core::mem::transmute(phprovider.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey), core::mem::transmute(hlegacyprov), core::mem::transmute(hlegacykey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwlegacykeyspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + NCryptTranslateHandle(core::mem::transmute(phprovider.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkey), hlegacyprov, core::mem::transmute(hlegacykey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwlegacykeyspec.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn NCryptUnprotectSecret(phdescriptor: Option<*mut super::NCRYPT_DESCRIPTOR_HANDLE>, dwflags: NCRYPT_FLAGS, pbprotectedblob: &[u8], pmempara: Option<*const NCRYPT_ALLOC_PARA>, hwnd: Option, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptUnprotectSecret(phdescriptor : *mut super:: NCRYPT_DESCRIPTOR_HANDLE, dwflags : NCRYPT_FLAGS, pbprotectedblob : *const u8, cbprotectedblob : u32, pmempara : *const NCRYPT_ALLOC_PARA, hwnd : super::super::Foundation:: HWND, ppbdata : *mut *mut u8, pcbdata : *mut u32) -> windows_core::HRESULT); - NCryptUnprotectSecret(core::mem::transmute(phdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pbprotectedblob.as_ptr()), pbprotectedblob.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbdata), core::mem::transmute(pcbdata)).ok() + NCryptUnprotectSecret(core::mem::transmute(phdescriptor.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pbprotectedblob.as_ptr()), pbprotectedblob.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppbdata), core::mem::transmute(pcbdata)).ok() } #[inline] pub unsafe fn NCryptVerifyClaim(hsubjectkey: NCRYPT_KEY_HANDLE, hauthoritykey: Option, dwclaimtype: u32, pparameterlist: Option<*const BCryptBufferDesc>, pbclaimblob: &[u8], poutput: *mut BCryptBufferDesc, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptVerifyClaim(hsubjectkey : NCRYPT_KEY_HANDLE, hauthoritykey : NCRYPT_KEY_HANDLE, dwclaimtype : u32, pparameterlist : *const BCryptBufferDesc, pbclaimblob : *const u8, cbclaimblob : u32, poutput : *mut BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - NCryptVerifyClaim(core::mem::transmute(hsubjectkey), core::mem::transmute(hauthoritykey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwclaimtype), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbclaimblob.as_ptr()), pbclaimblob.len().try_into().unwrap(), core::mem::transmute(poutput), core::mem::transmute(dwflags)).ok() + NCryptVerifyClaim(hsubjectkey, core::mem::transmute(hauthoritykey.unwrap_or(core::mem::zeroed())), dwclaimtype, core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbclaimblob.as_ptr()), pbclaimblob.len().try_into().unwrap(), core::mem::transmute(poutput), dwflags).ok() } #[inline] pub unsafe fn NCryptVerifySignature(hkey: NCRYPT_KEY_HANDLE, ppaddinginfo: Option<*const core::ffi::c_void>, pbhashvalue: &[u8], pbsignature: &[u8], dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn NCryptVerifySignature(hkey : NCRYPT_KEY_HANDLE, ppaddinginfo : *const core::ffi::c_void, pbhashvalue : *const u8, cbhashvalue : u32, pbsignature : *const u8, cbsignature : u32, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptVerifySignature(core::mem::transmute(hkey), core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + NCryptVerifySignature(hkey, core::mem::transmute(ppaddinginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn PFXExportCertStore(hstore: HCERTSTORE, ppfx: *mut CRYPT_INTEGER_BLOB, szpassword: P2, dwflags: u32) -> windows_core::Result<()> @@ -2533,7 +2483,7 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn PFXExportCertStore(hstore : HCERTSTORE, ppfx : *mut CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); - PFXExportCertStore(core::mem::transmute(hstore), core::mem::transmute(ppfx), szpassword.param().abi(), core::mem::transmute(dwflags)).ok() + PFXExportCertStore(hstore, core::mem::transmute(ppfx), szpassword.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PFXExportCertStoreEx(hstore: HCERTSTORE, ppfx: *mut CRYPT_INTEGER_BLOB, szpassword: P2, pvpara: *const core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> @@ -2541,7 +2491,7 @@ where P2: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn PFXExportCertStoreEx(hstore : HCERTSTORE, ppfx : *mut CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, pvpara : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); - PFXExportCertStoreEx(core::mem::transmute(hstore), core::mem::transmute(ppfx), szpassword.param().abi(), core::mem::transmute(pvpara), core::mem::transmute(dwflags)).ok() + PFXExportCertStoreEx(hstore, core::mem::transmute(ppfx), szpassword.param().abi(), pvpara, dwflags).ok() } #[inline] pub unsafe fn PFXImportCertStore(ppfx: *const CRYPT_INTEGER_BLOB, szpassword: P1, dwflags: CRYPT_KEY_FLAGS) -> windows_core::Result @@ -2549,13 +2499,13 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn PFXImportCertStore(ppfx : *const CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : CRYPT_KEY_FLAGS) -> HCERTSTORE); - let result__ = PFXImportCertStore(core::mem::transmute(ppfx), szpassword.param().abi(), core::mem::transmute(dwflags)); + let result__ = PFXImportCertStore(ppfx, szpassword.param().abi(), dwflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PFXIsPFXBlob(ppfx: *const CRYPT_INTEGER_BLOB) -> super::super::Foundation::BOOL { windows_targets::link!("crypt32.dll" "system" fn PFXIsPFXBlob(ppfx : *const CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); - PFXIsPFXBlob(core::mem::transmute(ppfx)) + PFXIsPFXBlob(ppfx) } #[inline] pub unsafe fn PFXVerifyPassword(ppfx: *const CRYPT_INTEGER_BLOB, szpassword: P1, dwflags: u32) -> super::super::Foundation::BOOL @@ -2563,7 +2513,7 @@ where P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn PFXVerifyPassword(ppfx : *const CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); - PFXVerifyPassword(core::mem::transmute(ppfx), szpassword.param().abi(), core::mem::transmute(dwflags)) + PFXVerifyPassword(ppfx, szpassword.param().abi(), dwflags) } #[inline] pub unsafe fn ProcessPrng(pbdata: &mut [u8]) -> super::super::Foundation::BOOL { @@ -2581,12 +2531,12 @@ where P3: windows_core::Param, { windows_targets::link!("infocardapi.dll" "system" fn SignHash(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbhash : u32, phash : *const u8, hashalgoid : windows_core::PCWSTR, pcbsig : *mut u32, ppsig : *mut *mut u8) -> windows_core::HRESULT); - SignHash(core::mem::transmute(hcrypto), phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), core::mem::transmute(pcbsig), core::mem::transmute(ppsig)).ok() + SignHash(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), core::mem::transmute(pcbsig), core::mem::transmute(ppsig)).ok() } #[inline] pub unsafe fn SignerFreeSignerContext(psignercontext: *const SIGNER_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("mssign32.dll" "system" fn SignerFreeSignerContext(psignercontext : *const SIGNER_CONTEXT) -> windows_core::HRESULT); - SignerFreeSignerContext(core::mem::transmute(psignercontext)).ok() + SignerFreeSignerContext(psignercontext).ok() } #[inline] pub unsafe fn SignerSign(psubjectinfo: *const SIGNER_SUBJECT_INFO, psignercert: *const SIGNER_CERT, psignatureinfo: *const SIGNER_SIGNATURE_INFO, pproviderinfo: Option<*const SIGNER_PROVIDER_INFO>, pwszhttptimestamp: P4, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2594,7 +2544,7 @@ where P4: windows_core::Param, { windows_targets::link!("mssign32.dll" "system" fn SignerSign(psubjectinfo : *const SIGNER_SUBJECT_INFO, psignercert : *const SIGNER_CERT, psignatureinfo : *const SIGNER_SIGNATURE_INFO, pproviderinfo : *const SIGNER_PROVIDER_INFO, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void) -> windows_core::HRESULT); - SignerSign(core::mem::transmute(psubjectinfo), core::mem::transmute(psignercert), core::mem::transmute(psignatureinfo), core::mem::transmute(pproviderinfo.unwrap_or(core::mem::zeroed())), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed()))).ok() + SignerSign(psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(core::mem::zeroed())), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SignerSignEx(dwflags: SIGNER_SIGN_FLAGS, psubjectinfo: *const SIGNER_SUBJECT_INFO, psignercert: *const SIGNER_CERT, psignatureinfo: *const SIGNER_SIGNATURE_INFO, pproviderinfo: Option<*const SIGNER_PROVIDER_INFO>, pwszhttptimestamp: P5, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>) -> windows_core::Result<*mut SIGNER_CONTEXT> @@ -2603,7 +2553,7 @@ where { windows_targets::link!("mssign32.dll" "system" fn SignerSignEx(dwflags : SIGNER_SIGN_FLAGS, psubjectinfo : *const SIGNER_SUBJECT_INFO, psignercert : *const SIGNER_CERT, psignatureinfo : *const SIGNER_SIGNATURE_INFO, pproviderinfo : *const SIGNER_PROVIDER_INFO, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SignerSignEx(core::mem::transmute(dwflags), core::mem::transmute(psubjectinfo), core::mem::transmute(psignercert), core::mem::transmute(psignatureinfo), core::mem::transmute(pproviderinfo.unwrap_or(core::mem::zeroed())), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + SignerSignEx(dwflags, psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(core::mem::zeroed())), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SignerSignEx2(dwflags: SIGNER_SIGN_FLAGS, psubjectinfo: *const SIGNER_SUBJECT_INFO, psignercert: *const SIGNER_CERT, psignatureinfo: *const SIGNER_SIGNATURE_INFO, pproviderinfo: Option<*const SIGNER_PROVIDER_INFO>, dwtimestampflags: Option, psztimestampalgorithmoid: P6, pwszhttptimestamp: P7, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>, ppsignercontext: *mut *mut SIGNER_CONTEXT, pcryptopolicy: Option<*const CERT_STRONG_SIGN_PARA>, preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2613,10 +2563,10 @@ where { windows_targets::link!("mssign32.dll" "system" fn SignerSignEx2(dwflags : SIGNER_SIGN_FLAGS, psubjectinfo : *const SIGNER_SUBJECT_INFO, psignercert : *const SIGNER_CERT, psignatureinfo : *const SIGNER_SIGNATURE_INFO, pproviderinfo : *const SIGNER_PROVIDER_INFO, dwtimestampflags : SIGNER_TIMESTAMP_FLAGS, psztimestampalgorithmoid : windows_core::PCSTR, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT, pcryptopolicy : *const CERT_STRONG_SIGN_PARA, preserved : *const core::ffi::c_void) -> windows_core::HRESULT); SignerSignEx2( - core::mem::transmute(dwflags), - core::mem::transmute(psubjectinfo), - core::mem::transmute(psignercert), - core::mem::transmute(psignatureinfo), + dwflags, + psubjectinfo, + psignercert, + psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwtimestampflags.unwrap_or(core::mem::zeroed())), psztimestampalgorithmoid.param().abi(), @@ -2637,10 +2587,10 @@ where { windows_targets::link!("mssign32.dll" "system" fn SignerSignEx3(dwflags : SIGNER_SIGN_FLAGS, psubjectinfo : *const SIGNER_SUBJECT_INFO, psignercert : *const SIGNER_CERT, psignatureinfo : *const SIGNER_SIGNATURE_INFO, pproviderinfo : *const SIGNER_PROVIDER_INFO, dwtimestampflags : SIGNER_TIMESTAMP_FLAGS, psztimestampalgorithmoid : windows_core::PCSTR, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT, pcryptopolicy : *const CERT_STRONG_SIGN_PARA, pdigestsigninfo : *const SIGNER_DIGEST_SIGN_INFO, preserved : *const core::ffi::c_void) -> windows_core::HRESULT); SignerSignEx3( - core::mem::transmute(dwflags), - core::mem::transmute(psubjectinfo), - core::mem::transmute(psignercert), - core::mem::transmute(psignatureinfo), + dwflags, + psubjectinfo, + psignercert, + psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwtimestampflags.unwrap_or(core::mem::zeroed())), psztimestampalgorithmoid.param().abi(), @@ -2660,7 +2610,7 @@ where P1: windows_core::Param, { windows_targets::link!("mssign32.dll" "system" fn SignerTimeStamp(psubjectinfo : *const SIGNER_SUBJECT_INFO, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void) -> windows_core::HRESULT); - SignerTimeStamp(core::mem::transmute(psubjectinfo), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed()))).ok() + SignerTimeStamp(psubjectinfo, pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SignerTimeStampEx(dwflags: Option, psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P2, psrequest: *const CRYPT_ATTRIBUTES, psipdata: *const core::ffi::c_void) -> windows_core::Result<*mut SIGNER_CONTEXT> @@ -2669,7 +2619,7 @@ where { windows_targets::link!("mssign32.dll" "system" fn SignerTimeStampEx(dwflags : u32, psubjectinfo : *const SIGNER_SUBJECT_INFO, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SignerTimeStampEx(core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(psubjectinfo), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest), core::mem::transmute(psipdata), &mut result__).map(|| core::mem::transmute(result__)) + SignerTimeStampEx(core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), psubjectinfo, pwszhttptimestamp.param().abi(), psrequest, psipdata, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SignerTimeStampEx2(dwflags: Option, psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P2, dwalgid: ALG_ID, psrequest: *const CRYPT_ATTRIBUTES, psipdata: *const core::ffi::c_void) -> windows_core::Result<*mut SIGNER_CONTEXT> @@ -2678,7 +2628,7 @@ where { windows_targets::link!("mssign32.dll" "system" fn SignerTimeStampEx2(dwflags : SIGNER_TIMESTAMP_FLAGS, psubjectinfo : *const SIGNER_SUBJECT_INFO, pwszhttptimestamp : windows_core::PCWSTR, dwalgid : ALG_ID, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SignerTimeStampEx2(core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(psubjectinfo), pwszhttptimestamp.param().abi(), core::mem::transmute(dwalgid), core::mem::transmute(psrequest), core::mem::transmute(psipdata), &mut result__).map(|| core::mem::transmute(result__)) + SignerTimeStampEx2(core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), psubjectinfo, pwszhttptimestamp.param().abi(), dwalgid, psrequest, psipdata, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SignerTimeStampEx3(dwflags: SIGNER_TIMESTAMP_FLAGS, dwindex: u32, psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P3, pszalgorithmoid: P4, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>, ppsignercontext: *mut *mut SIGNER_CONTEXT, pcryptopolicy: Option<*const CERT_STRONG_SIGN_PARA>, preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2687,12 +2637,12 @@ where P4: windows_core::Param, { windows_targets::link!("mssign32.dll" "system" fn SignerTimeStampEx3(dwflags : SIGNER_TIMESTAMP_FLAGS, dwindex : u32, psubjectinfo : *const SIGNER_SUBJECT_INFO, pwszhttptimestamp : windows_core::PCWSTR, pszalgorithmoid : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT, pcryptopolicy : *const CERT_STRONG_SIGN_PARA, preserved : *const core::ffi::c_void) -> windows_core::HRESULT); - SignerTimeStampEx3(core::mem::transmute(dwflags), core::mem::transmute(dwindex), core::mem::transmute(psubjectinfo), pwszhttptimestamp.param().abi(), pszalgorithmoid.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsignercontext), core::mem::transmute(pcryptopolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() + SignerTimeStampEx3(dwflags, dwindex, psubjectinfo, pwszhttptimestamp.param().abi(), pszalgorithmoid.param().abi(), core::mem::transmute(psrequest.unwrap_or(core::mem::zeroed())), core::mem::transmute(psipdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsignercontext), core::mem::transmute(pcryptopolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SslChangeNotify(hevent: super::super::Foundation::HANDLE, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslChangeNotify(hevent : super::super::Foundation:: HANDLE, dwflags : u32) -> windows_core::HRESULT); - SslChangeNotify(core::mem::transmute(hevent), core::mem::transmute(dwflags)).ok() + SslChangeNotify(hevent, dwflags).ok() } #[inline] pub unsafe fn SslComputeClientAuthHash(hsslprovider: NCRYPT_PROV_HANDLE, hmasterkey: NCRYPT_KEY_HANDLE, hhandshakehash: NCRYPT_HASH_HANDLE, pszalgid: P3, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -2700,22 +2650,22 @@ where P3: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslComputeClientAuthHash(hsslprovider : NCRYPT_PROV_HANDLE, hmasterkey : NCRYPT_KEY_HANDLE, hhandshakehash : NCRYPT_HASH_HANDLE, pszalgid : windows_core::PCWSTR, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslComputeClientAuthHash(core::mem::transmute(hsslprovider), core::mem::transmute(hmasterkey), core::mem::transmute(hhandshakehash), pszalgid.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + SslComputeClientAuthHash(hsslprovider, hmasterkey, hhandshakehash, pszalgid.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslComputeEapKeyBlock(hsslprovider: NCRYPT_PROV_HANDLE, hmasterkey: NCRYPT_KEY_HANDLE, pbrandoms: &[u8], pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslComputeEapKeyBlock(hsslprovider : NCRYPT_PROV_HANDLE, hmasterkey : NCRYPT_KEY_HANDLE, pbrandoms : *const u8, cbrandoms : u32, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslComputeEapKeyBlock(core::mem::transmute(hsslprovider), core::mem::transmute(hmasterkey), core::mem::transmute(pbrandoms.as_ptr()), pbrandoms.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + SslComputeEapKeyBlock(hsslprovider, hmasterkey, core::mem::transmute(pbrandoms.as_ptr()), pbrandoms.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslComputeFinishedHash(hsslprovider: NCRYPT_PROV_HANDLE, hmasterkey: NCRYPT_KEY_HANDLE, hhandshakehash: NCRYPT_HASH_HANDLE, pboutput: &mut [u8], dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslComputeFinishedHash(hsslprovider : NCRYPT_PROV_HANDLE, hmasterkey : NCRYPT_KEY_HANDLE, hhandshakehash : NCRYPT_HASH_HANDLE, pboutput : *mut u8, cboutput : u32, dwflags : u32) -> windows_core::HRESULT); - SslComputeFinishedHash(core::mem::transmute(hsslprovider), core::mem::transmute(hmasterkey), core::mem::transmute(hhandshakehash), core::mem::transmute(pboutput.as_ptr()), pboutput.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + SslComputeFinishedHash(hsslprovider, hmasterkey, hhandshakehash, core::mem::transmute(pboutput.as_ptr()), pboutput.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn SslComputeSessionHash(hsslprovider: NCRYPT_PROV_HANDLE, hhandshakehash: NCRYPT_HASH_HANDLE, dwprotocol: u32, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslComputeSessionHash(hsslprovider : NCRYPT_PROV_HANDLE, hhandshakehash : NCRYPT_HASH_HANDLE, dwprotocol : u32, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslComputeSessionHash(core::mem::transmute(hsslprovider), core::mem::transmute(hhandshakehash), core::mem::transmute(dwprotocol), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + SslComputeSessionHash(hsslprovider, hhandshakehash, dwprotocol, core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslCreateClientAuthHash(hsslprovider: NCRYPT_PROV_HANDLE, phhandshakehash: *mut NCRYPT_HASH_HANDLE, dwprotocol: u32, dwciphersuite: u32, pszhashalgid: P4, dwflags: u32) -> windows_core::Result<()> @@ -2723,87 +2673,87 @@ where P4: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslCreateClientAuthHash(hsslprovider : NCRYPT_PROV_HANDLE, phhandshakehash : *mut NCRYPT_HASH_HANDLE, dwprotocol : u32, dwciphersuite : u32, pszhashalgid : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - SslCreateClientAuthHash(core::mem::transmute(hsslprovider), core::mem::transmute(phhandshakehash), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), pszhashalgid.param().abi(), core::mem::transmute(dwflags)).ok() + SslCreateClientAuthHash(hsslprovider, core::mem::transmute(phhandshakehash), dwprotocol, dwciphersuite, pszhashalgid.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SslCreateEphemeralKey(hsslprovider: NCRYPT_PROV_HANDLE, phephemeralkey: *mut NCRYPT_KEY_HANDLE, dwprotocol: u32, dwciphersuite: u32, dwkeytype: u32, dwkeybitlen: u32, pbparams: Option<&[u8]>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslCreateEphemeralKey(hsslprovider : NCRYPT_PROV_HANDLE, phephemeralkey : *mut NCRYPT_KEY_HANDLE, dwprotocol : u32, dwciphersuite : u32, dwkeytype : u32, dwkeybitlen : u32, pbparams : *const u8, cbparams : u32, dwflags : u32) -> windows_core::HRESULT); - SslCreateEphemeralKey(core::mem::transmute(hsslprovider), core::mem::transmute(phephemeralkey), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(dwkeytype), core::mem::transmute(dwkeybitlen), core::mem::transmute(pbparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbparams.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags)).ok() + SslCreateEphemeralKey(hsslprovider, core::mem::transmute(phephemeralkey), dwprotocol, dwciphersuite, dwkeytype, dwkeybitlen, core::mem::transmute(pbparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbparams.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags).ok() } #[inline] pub unsafe fn SslCreateHandshakeHash(hsslprovider: NCRYPT_PROV_HANDLE, phhandshakehash: *mut NCRYPT_HASH_HANDLE, dwprotocol: u32, dwciphersuite: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslCreateHandshakeHash(hsslprovider : NCRYPT_PROV_HANDLE, phhandshakehash : *mut NCRYPT_HASH_HANDLE, dwprotocol : u32, dwciphersuite : u32, dwflags : u32) -> windows_core::HRESULT); - SslCreateHandshakeHash(core::mem::transmute(hsslprovider), core::mem::transmute(phhandshakehash), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(dwflags)).ok() + SslCreateHandshakeHash(hsslprovider, core::mem::transmute(phhandshakehash), dwprotocol, dwciphersuite, dwflags).ok() } #[inline] pub unsafe fn SslDecrementProviderReferenceCount(hsslprovider: NCRYPT_PROV_HANDLE) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslDecrementProviderReferenceCount(hsslprovider : NCRYPT_PROV_HANDLE) -> windows_core::HRESULT); - SslDecrementProviderReferenceCount(core::mem::transmute(hsslprovider)).ok() + SslDecrementProviderReferenceCount(hsslprovider).ok() } #[inline] pub unsafe fn SslDecryptPacket(hsslprovider: NCRYPT_PROV_HANDLE, hkey: NCRYPT_KEY_HANDLE, pbinput: &[u8], pboutput: Option<&mut [u8]>, pcbresult: *mut u32, sequencenumber: u64, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslDecryptPacket(hsslprovider : NCRYPT_PROV_HANDLE, hkey : NCRYPT_KEY_HANDLE, pbinput : *const u8, cbinput : u32, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, sequencenumber : u64, dwflags : u32) -> windows_core::HRESULT); - SslDecryptPacket(core::mem::transmute(hsslprovider), core::mem::transmute(hkey), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(sequencenumber), core::mem::transmute(dwflags)).ok() + SslDecryptPacket(hsslprovider, hkey, core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), sequencenumber, dwflags).ok() } #[inline] pub unsafe fn SslDuplicateTranscriptHash(hsslprovider: NCRYPT_PROV_HANDLE, htranscripthash: NCRYPT_HASH_HANDLE, phtranscripthash: *mut NCRYPT_HASH_HANDLE, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslDuplicateTranscriptHash(hsslprovider : NCRYPT_PROV_HANDLE, htranscripthash : NCRYPT_HASH_HANDLE, phtranscripthash : *mut NCRYPT_HASH_HANDLE, dwflags : u32) -> windows_core::HRESULT); - SslDuplicateTranscriptHash(core::mem::transmute(hsslprovider), core::mem::transmute(htranscripthash), core::mem::transmute(phtranscripthash), core::mem::transmute(dwflags)).ok() + SslDuplicateTranscriptHash(hsslprovider, htranscripthash, core::mem::transmute(phtranscripthash), dwflags).ok() } #[inline] pub unsafe fn SslEncryptPacket(hsslprovider: NCRYPT_PROV_HANDLE, hkey: NCRYPT_KEY_HANDLE, pbinput: &[u8], pboutput: Option<&mut [u8]>, pcbresult: *mut u32, sequencenumber: u64, dwcontenttype: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslEncryptPacket(hsslprovider : NCRYPT_PROV_HANDLE, hkey : NCRYPT_KEY_HANDLE, pbinput : *const u8, cbinput : u32, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, sequencenumber : u64, dwcontenttype : u32, dwflags : u32) -> windows_core::HRESULT); - SslEncryptPacket(core::mem::transmute(hsslprovider), core::mem::transmute(hkey), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(sequencenumber), core::mem::transmute(dwcontenttype), core::mem::transmute(dwflags)).ok() + SslEncryptPacket(hsslprovider, hkey, core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), sequencenumber, dwcontenttype, dwflags).ok() } #[inline] pub unsafe fn SslEnumCipherSuites(hsslprovider: NCRYPT_PROV_HANDLE, hprivatekey: Option, ppciphersuite: *mut *mut NCRYPT_SSL_CIPHER_SUITE, ppenumstate: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslEnumCipherSuites(hsslprovider : NCRYPT_PROV_HANDLE, hprivatekey : NCRYPT_KEY_HANDLE, ppciphersuite : *mut *mut NCRYPT_SSL_CIPHER_SUITE, ppenumstate : *mut *mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - SslEnumCipherSuites(core::mem::transmute(hsslprovider), core::mem::transmute(hprivatekey.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppciphersuite), core::mem::transmute(ppenumstate), core::mem::transmute(dwflags)).ok() + SslEnumCipherSuites(hsslprovider, core::mem::transmute(hprivatekey.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppciphersuite), core::mem::transmute(ppenumstate), dwflags).ok() } #[inline] pub unsafe fn SslEnumCipherSuitesEx(hsslprovider: NCRYPT_PROV_HANDLE, hprivatekey: Option, ppciphersuite: *mut *mut NCRYPT_SSL_CIPHER_SUITE_EX, ppenumstate: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslEnumCipherSuitesEx(hsslprovider : NCRYPT_PROV_HANDLE, hprivatekey : NCRYPT_KEY_HANDLE, ppciphersuite : *mut *mut NCRYPT_SSL_CIPHER_SUITE_EX, ppenumstate : *mut *mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - SslEnumCipherSuitesEx(core::mem::transmute(hsslprovider), core::mem::transmute(hprivatekey.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppciphersuite), core::mem::transmute(ppenumstate), core::mem::transmute(dwflags)).ok() + SslEnumCipherSuitesEx(hsslprovider, core::mem::transmute(hprivatekey.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppciphersuite), core::mem::transmute(ppenumstate), dwflags).ok() } #[inline] pub unsafe fn SslEnumEccCurves(hsslprovider: NCRYPT_PROV_HANDLE, pecccurvecount: *mut u32, ppecccurve: *mut *mut NCRYPT_SSL_ECC_CURVE, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslEnumEccCurves(hsslprovider : NCRYPT_PROV_HANDLE, pecccurvecount : *mut u32, ppecccurve : *mut *mut NCRYPT_SSL_ECC_CURVE, dwflags : u32) -> windows_core::HRESULT); - SslEnumEccCurves(core::mem::transmute(hsslprovider), core::mem::transmute(pecccurvecount), core::mem::transmute(ppecccurve), core::mem::transmute(dwflags)).ok() + SslEnumEccCurves(hsslprovider, core::mem::transmute(pecccurvecount), core::mem::transmute(ppecccurve), dwflags).ok() } #[inline] pub unsafe fn SslEnumProtocolProviders(pdwprovidercount: *mut u32, ppproviderlist: *mut *mut NCryptProviderName, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslEnumProtocolProviders(pdwprovidercount : *mut u32, ppproviderlist : *mut *mut NCryptProviderName, dwflags : u32) -> windows_core::HRESULT); - SslEnumProtocolProviders(core::mem::transmute(pdwprovidercount), core::mem::transmute(ppproviderlist), core::mem::transmute(dwflags)).ok() + SslEnumProtocolProviders(core::mem::transmute(pdwprovidercount), core::mem::transmute(ppproviderlist), dwflags).ok() } #[inline] pub unsafe fn SslExpandBinderKey(hsslprovider: NCRYPT_PROV_HANDLE, hearlykey: NCRYPT_KEY_HANDLE, phbinderkey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExpandBinderKey(hsslprovider : NCRYPT_PROV_HANDLE, hearlykey : NCRYPT_KEY_HANDLE, phbinderkey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExpandBinderKey(core::mem::transmute(hsslprovider), core::mem::transmute(hearlykey), core::mem::transmute(phbinderkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExpandBinderKey(hsslprovider, hearlykey, core::mem::transmute(phbinderkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExpandExporterMasterKey(hsslprovider: NCRYPT_PROV_HANDLE, hbasekey: NCRYPT_KEY_HANDLE, hhashvalue: NCRYPT_HASH_HANDLE, phexportermasterkey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExpandExporterMasterKey(hsslprovider : NCRYPT_PROV_HANDLE, hbasekey : NCRYPT_KEY_HANDLE, hhashvalue : NCRYPT_HASH_HANDLE, phexportermasterkey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExpandExporterMasterKey(core::mem::transmute(hsslprovider), core::mem::transmute(hbasekey), core::mem::transmute(hhashvalue), core::mem::transmute(phexportermasterkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExpandExporterMasterKey(hsslprovider, hbasekey, hhashvalue, core::mem::transmute(phexportermasterkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExpandPreSharedKey(hsslprovider: NCRYPT_PROV_HANDLE, hresumptionmasterkey: NCRYPT_KEY_HANDLE, pbticketnonce: Option<&[u8]>, phpresharedkey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExpandPreSharedKey(hsslprovider : NCRYPT_PROV_HANDLE, hresumptionmasterkey : NCRYPT_KEY_HANDLE, pbticketnonce : *const u8, cbticketnonce : u32, phpresharedkey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExpandPreSharedKey(core::mem::transmute(hsslprovider), core::mem::transmute(hresumptionmasterkey), core::mem::transmute(pbticketnonce.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbticketnonce.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phpresharedkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExpandPreSharedKey(hsslprovider, hresumptionmasterkey, core::mem::transmute(pbticketnonce.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbticketnonce.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phpresharedkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExpandResumptionMasterKey(hsslprovider: NCRYPT_PROV_HANDLE, hmasterkey: NCRYPT_KEY_HANDLE, hhashvalue: NCRYPT_HASH_HANDLE, phresumptionmasterkey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExpandResumptionMasterKey(hsslprovider : NCRYPT_PROV_HANDLE, hmasterkey : NCRYPT_KEY_HANDLE, hhashvalue : NCRYPT_HASH_HANDLE, phresumptionmasterkey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExpandResumptionMasterKey(core::mem::transmute(hsslprovider), core::mem::transmute(hmasterkey), core::mem::transmute(hhashvalue), core::mem::transmute(phresumptionmasterkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExpandResumptionMasterKey(hsslprovider, hmasterkey, hhashvalue, core::mem::transmute(phresumptionmasterkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExpandTrafficKeys(hsslprovider: NCRYPT_PROV_HANDLE, hbasekey: NCRYPT_KEY_HANDLE, hhashvalue: NCRYPT_HASH_HANDLE, phclienttraffickey: Option<*mut NCRYPT_KEY_HANDLE>, phservertraffickey: Option<*mut NCRYPT_KEY_HANDLE>, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExpandTrafficKeys(hsslprovider : NCRYPT_PROV_HANDLE, hbasekey : NCRYPT_KEY_HANDLE, hhashvalue : NCRYPT_HASH_HANDLE, phclienttraffickey : *mut NCRYPT_KEY_HANDLE, phservertraffickey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExpandTrafficKeys(core::mem::transmute(hsslprovider), core::mem::transmute(hbasekey), core::mem::transmute(hhashvalue), core::mem::transmute(phclienttraffickey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phservertraffickey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExpandTrafficKeys(hsslprovider, hbasekey, hhashvalue, core::mem::transmute(phclienttraffickey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phservertraffickey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExpandWriteKey(hsslprovider: NCRYPT_PROV_HANDLE, hbasetraffickey: NCRYPT_KEY_HANDLE, phwritekey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExpandWriteKey(hsslprovider : NCRYPT_PROV_HANDLE, hbasetraffickey : NCRYPT_KEY_HANDLE, phwritekey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExpandWriteKey(core::mem::transmute(hsslprovider), core::mem::transmute(hbasetraffickey), core::mem::transmute(phwritekey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExpandWriteKey(hsslprovider, hbasetraffickey, core::mem::transmute(phwritekey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExportKey(hsslprovider: NCRYPT_PROV_HANDLE, hkey: NCRYPT_KEY_HANDLE, pszblobtype: P2, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -2811,7 +2761,7 @@ where P2: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslExportKey(hsslprovider : NCRYPT_PROV_HANDLE, hkey : NCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslExportKey(core::mem::transmute(hsslprovider), core::mem::transmute(hkey), pszblobtype.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + SslExportKey(hsslprovider, hkey, pszblobtype.param().abi(), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslExportKeyingMaterial(hsslprovider: NCRYPT_PROV_HANDLE, hmasterkey: NCRYPT_KEY_HANDLE, slabel: P2, pbrandoms: Option<&[u8]>, pbcontextvalue: Option<&[u8]>, pboutput: &mut [u8], dwflags: u32) -> windows_core::Result<()> @@ -2819,34 +2769,22 @@ where P2: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslExportKeyingMaterial(hsslprovider : NCRYPT_PROV_HANDLE, hmasterkey : NCRYPT_KEY_HANDLE, slabel : windows_core::PCSTR, pbrandoms : *const u8, cbrandoms : u32, pbcontextvalue : *const u8, cbcontextvalue : u16, pboutput : *mut u8, cboutput : u32, dwflags : u32) -> windows_core::HRESULT); - SslExportKeyingMaterial( - core::mem::transmute(hsslprovider), - core::mem::transmute(hmasterkey), - slabel.param().abi(), - core::mem::transmute(pbrandoms.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbrandoms.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pbcontextvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pbcontextvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pboutput.as_ptr()), - pboutput.len().try_into().unwrap(), - core::mem::transmute(dwflags), - ) - .ok() + SslExportKeyingMaterial(hsslprovider, hmasterkey, slabel.param().abi(), core::mem::transmute(pbrandoms.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbrandoms.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbcontextvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbcontextvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pboutput.as_ptr()), pboutput.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn SslExtractEarlyKey(hsslprovider: NCRYPT_PROV_HANDLE, hpresharedkey: Option, phearlykey: *mut NCRYPT_KEY_HANDLE, dwprotocol: u32, dwciphersuite: u32, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExtractEarlyKey(hsslprovider : NCRYPT_PROV_HANDLE, hpresharedkey : NCRYPT_KEY_HANDLE, phearlykey : *mut NCRYPT_KEY_HANDLE, dwprotocol : u32, dwciphersuite : u32, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExtractEarlyKey(core::mem::transmute(hsslprovider), core::mem::transmute(hpresharedkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phearlykey), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExtractEarlyKey(hsslprovider, core::mem::transmute(hpresharedkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phearlykey), dwprotocol, dwciphersuite, core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExtractHandshakeKey(hsslprovider: NCRYPT_PROV_HANDLE, hprivatekey: NCRYPT_KEY_HANDLE, hpublickey: NCRYPT_KEY_HANDLE, hearlykey: NCRYPT_KEY_HANDLE, phhandshakekey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExtractHandshakeKey(hsslprovider : NCRYPT_PROV_HANDLE, hprivatekey : NCRYPT_KEY_HANDLE, hpublickey : NCRYPT_KEY_HANDLE, hearlykey : NCRYPT_KEY_HANDLE, phhandshakekey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExtractHandshakeKey(core::mem::transmute(hsslprovider), core::mem::transmute(hprivatekey), core::mem::transmute(hpublickey), core::mem::transmute(hearlykey), core::mem::transmute(phhandshakekey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExtractHandshakeKey(hsslprovider, hprivatekey, hpublickey, hearlykey, core::mem::transmute(phhandshakekey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslExtractMasterKey(hsslprovider: NCRYPT_PROV_HANDLE, hhandshakekey: NCRYPT_KEY_HANDLE, phmasterkey: *mut NCRYPT_KEY_HANDLE, pparameterlist: Option<*const BCryptBufferDesc>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslExtractMasterKey(hsslprovider : NCRYPT_PROV_HANDLE, hhandshakekey : NCRYPT_KEY_HANDLE, phmasterkey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslExtractMasterKey(core::mem::transmute(hsslprovider), core::mem::transmute(hhandshakekey), core::mem::transmute(phmasterkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslExtractMasterKey(hsslprovider, hhandshakekey, core::mem::transmute(phmasterkey), core::mem::transmute(pparameterlist.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslFreeBuffer(pvinput: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2856,40 +2794,27 @@ pub unsafe fn SslFreeBuffer(pvinput: *mut core::ffi::c_void) -> windows_core::Re #[inline] pub unsafe fn SslFreeObject(hobject: NCRYPT_HANDLE, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslFreeObject(hobject : NCRYPT_HANDLE, dwflags : u32) -> windows_core::HRESULT); - SslFreeObject(core::mem::transmute(hobject), core::mem::transmute(dwflags)).ok() + SslFreeObject(hobject, dwflags).ok() } #[inline] pub unsafe fn SslGenerateMasterKey(hsslprovider: NCRYPT_PROV_HANDLE, hprivatekey: Option, hpublickey: NCRYPT_KEY_HANDLE, phmasterkey: *mut NCRYPT_KEY_HANDLE, dwprotocol: u32, dwciphersuite: u32, pparameterlist: *const BCryptBufferDesc, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslGenerateMasterKey(hsslprovider : NCRYPT_PROV_HANDLE, hprivatekey : NCRYPT_KEY_HANDLE, hpublickey : NCRYPT_KEY_HANDLE, phmasterkey : *mut NCRYPT_KEY_HANDLE, dwprotocol : u32, dwciphersuite : u32, pparameterlist : *const BCryptBufferDesc, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslGenerateMasterKey( - core::mem::transmute(hsslprovider), - core::mem::transmute(hprivatekey.unwrap_or(core::mem::zeroed())), - core::mem::transmute(hpublickey), - core::mem::transmute(phmasterkey), - core::mem::transmute(dwprotocol), - core::mem::transmute(dwciphersuite), - core::mem::transmute(pparameterlist), - core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcbresult), - core::mem::transmute(dwflags), - ) - .ok() + SslGenerateMasterKey(hsslprovider, core::mem::transmute(hprivatekey.unwrap_or(core::mem::zeroed())), hpublickey, core::mem::transmute(phmasterkey), dwprotocol, dwciphersuite, pparameterlist, core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslGeneratePreMasterKey(hsslprovider: NCRYPT_PROV_HANDLE, hpublickey: NCRYPT_KEY_HANDLE, phpremasterkey: *mut NCRYPT_KEY_HANDLE, dwprotocol: u32, dwciphersuite: u32, pparameterlist: *const BCryptBufferDesc, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslGeneratePreMasterKey(hsslprovider : NCRYPT_PROV_HANDLE, hpublickey : NCRYPT_KEY_HANDLE, phpremasterkey : *mut NCRYPT_KEY_HANDLE, dwprotocol : u32, dwciphersuite : u32, pparameterlist : *const BCryptBufferDesc, pboutput : *mut u8, cboutput : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslGeneratePreMasterKey(core::mem::transmute(hsslprovider), core::mem::transmute(hpublickey), core::mem::transmute(phpremasterkey), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(pparameterlist), core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + SslGeneratePreMasterKey(hsslprovider, hpublickey, core::mem::transmute(phpremasterkey), dwprotocol, dwciphersuite, pparameterlist, core::mem::transmute(pboutput.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pboutput.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslGenerateSessionKeys(hsslprovider: NCRYPT_PROV_HANDLE, hmasterkey: NCRYPT_KEY_HANDLE, phreadkey: *mut NCRYPT_KEY_HANDLE, phwritekey: *mut NCRYPT_KEY_HANDLE, pparameterlist: *const BCryptBufferDesc, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslGenerateSessionKeys(hsslprovider : NCRYPT_PROV_HANDLE, hmasterkey : NCRYPT_KEY_HANDLE, phreadkey : *mut NCRYPT_KEY_HANDLE, phwritekey : *mut NCRYPT_KEY_HANDLE, pparameterlist : *const BCryptBufferDesc, dwflags : u32) -> windows_core::HRESULT); - SslGenerateSessionKeys(core::mem::transmute(hsslprovider), core::mem::transmute(hmasterkey), core::mem::transmute(phreadkey), core::mem::transmute(phwritekey), core::mem::transmute(pparameterlist), core::mem::transmute(dwflags)).ok() + SslGenerateSessionKeys(hsslprovider, hmasterkey, core::mem::transmute(phreadkey), core::mem::transmute(phwritekey), pparameterlist, dwflags).ok() } #[inline] pub unsafe fn SslGetCipherSuitePRFHashAlgorithm(hsslprovider: NCRYPT_PROV_HANDLE, dwprotocol: u32, dwciphersuite: u32, dwkeytype: u32, szprfhash: &mut [u16; 64], dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslGetCipherSuitePRFHashAlgorithm(hsslprovider : NCRYPT_PROV_HANDLE, dwprotocol : u32, dwciphersuite : u32, dwkeytype : u32, szprfhash : windows_core::PWSTR, dwflags : u32) -> windows_core::HRESULT); - SslGetCipherSuitePRFHashAlgorithm(core::mem::transmute(hsslprovider), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(dwkeytype), core::mem::transmute(szprfhash.as_ptr()), core::mem::transmute(dwflags)).ok() + SslGetCipherSuitePRFHashAlgorithm(hsslprovider, dwprotocol, dwciphersuite, dwkeytype, core::mem::transmute(szprfhash.as_ptr()), dwflags).ok() } #[inline] pub unsafe fn SslGetKeyProperty(hkey: NCRYPT_KEY_HANDLE, pszproperty: P1, ppboutput: *mut *mut u8, pcboutput: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -2897,7 +2822,7 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslGetKeyProperty(hkey : NCRYPT_KEY_HANDLE, pszproperty : windows_core::PCWSTR, ppboutput : *mut *mut u8, pcboutput : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslGetKeyProperty(core::mem::transmute(hkey), pszproperty.param().abi(), core::mem::transmute(ppboutput), core::mem::transmute(pcboutput), core::mem::transmute(dwflags)).ok() + SslGetKeyProperty(hkey, pszproperty.param().abi(), core::mem::transmute(ppboutput), core::mem::transmute(pcboutput), dwflags).ok() } #[inline] pub unsafe fn SslGetProviderProperty(hsslprovider: NCRYPT_PROV_HANDLE, pszproperty: P1, ppboutput: *mut *mut u8, pcboutput: *mut u32, ppenumstate: Option<*mut *mut core::ffi::c_void>, dwflags: u32) -> windows_core::Result<()> @@ -2905,12 +2830,12 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslGetProviderProperty(hsslprovider : NCRYPT_PROV_HANDLE, pszproperty : windows_core::PCWSTR, ppboutput : *mut *mut u8, pcboutput : *mut u32, ppenumstate : *mut *mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - SslGetProviderProperty(core::mem::transmute(hsslprovider), pszproperty.param().abi(), core::mem::transmute(ppboutput), core::mem::transmute(pcboutput), core::mem::transmute(ppenumstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + SslGetProviderProperty(hsslprovider, pszproperty.param().abi(), core::mem::transmute(ppboutput), core::mem::transmute(pcboutput), core::mem::transmute(ppenumstate.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn SslHashHandshake(hsslprovider: NCRYPT_PROV_HANDLE, hhandshakehash: NCRYPT_HASH_HANDLE, pbinput: &[u8], dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslHashHandshake(hsslprovider : NCRYPT_PROV_HANDLE, hhandshakehash : NCRYPT_HASH_HANDLE, pbinput : *const u8, cbinput : u32, dwflags : u32) -> windows_core::HRESULT); - SslHashHandshake(core::mem::transmute(hsslprovider), core::mem::transmute(hhandshakehash), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + SslHashHandshake(hsslprovider, hhandshakehash, core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn SslImportKey(hsslprovider: NCRYPT_PROV_HANDLE, phkey: *mut NCRYPT_KEY_HANDLE, pszblobtype: P2, pbkeyblob: &[u8], dwflags: u32) -> windows_core::Result<()> @@ -2918,32 +2843,32 @@ where P2: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslImportKey(hsslprovider : NCRYPT_PROV_HANDLE, phkey : *mut NCRYPT_KEY_HANDLE, pszblobtype : windows_core::PCWSTR, pbkeyblob : *const u8, cbkeyblob : u32, dwflags : u32) -> windows_core::HRESULT); - SslImportKey(core::mem::transmute(hsslprovider), core::mem::transmute(phkey), pszblobtype.param().abi(), core::mem::transmute(pbkeyblob.as_ptr()), pbkeyblob.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + SslImportKey(hsslprovider, core::mem::transmute(phkey), pszblobtype.param().abi(), core::mem::transmute(pbkeyblob.as_ptr()), pbkeyblob.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn SslImportMasterKey(hsslprovider: NCRYPT_PROV_HANDLE, hprivatekey: NCRYPT_KEY_HANDLE, phmasterkey: *mut NCRYPT_KEY_HANDLE, dwprotocol: u32, dwciphersuite: u32, pparameterlist: *const BCryptBufferDesc, pbencryptedkey: &[u8], dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslImportMasterKey(hsslprovider : NCRYPT_PROV_HANDLE, hprivatekey : NCRYPT_KEY_HANDLE, phmasterkey : *mut NCRYPT_KEY_HANDLE, dwprotocol : u32, dwciphersuite : u32, pparameterlist : *const BCryptBufferDesc, pbencryptedkey : *const u8, cbencryptedkey : u32, dwflags : u32) -> windows_core::HRESULT); - SslImportMasterKey(core::mem::transmute(hsslprovider), core::mem::transmute(hprivatekey), core::mem::transmute(phmasterkey), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(pparameterlist), core::mem::transmute(pbencryptedkey.as_ptr()), pbencryptedkey.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + SslImportMasterKey(hsslprovider, hprivatekey, core::mem::transmute(phmasterkey), dwprotocol, dwciphersuite, pparameterlist, core::mem::transmute(pbencryptedkey.as_ptr()), pbencryptedkey.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn SslIncrementProviderReferenceCount(hsslprovider: NCRYPT_PROV_HANDLE) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslIncrementProviderReferenceCount(hsslprovider : NCRYPT_PROV_HANDLE) -> windows_core::HRESULT); - SslIncrementProviderReferenceCount(core::mem::transmute(hsslprovider)).ok() + SslIncrementProviderReferenceCount(hsslprovider).ok() } #[inline] pub unsafe fn SslLookupCipherLengths(hsslprovider: NCRYPT_PROV_HANDLE, dwprotocol: u32, dwciphersuite: u32, dwkeytype: u32, pcipherlengths: *mut NCRYPT_SSL_CIPHER_LENGTHS, cbcipherlengths: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslLookupCipherLengths(hsslprovider : NCRYPT_PROV_HANDLE, dwprotocol : u32, dwciphersuite : u32, dwkeytype : u32, pcipherlengths : *mut NCRYPT_SSL_CIPHER_LENGTHS, cbcipherlengths : u32, dwflags : u32) -> windows_core::HRESULT); - SslLookupCipherLengths(core::mem::transmute(hsslprovider), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(dwkeytype), core::mem::transmute(pcipherlengths), core::mem::transmute(cbcipherlengths), core::mem::transmute(dwflags)).ok() + SslLookupCipherLengths(hsslprovider, dwprotocol, dwciphersuite, dwkeytype, core::mem::transmute(pcipherlengths), cbcipherlengths, dwflags).ok() } #[inline] pub unsafe fn SslLookupCipherSuiteInfo(hsslprovider: NCRYPT_PROV_HANDLE, dwprotocol: u32, dwciphersuite: u32, dwkeytype: u32, pciphersuite: *mut NCRYPT_SSL_CIPHER_SUITE, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslLookupCipherSuiteInfo(hsslprovider : NCRYPT_PROV_HANDLE, dwprotocol : u32, dwciphersuite : u32, dwkeytype : u32, pciphersuite : *mut NCRYPT_SSL_CIPHER_SUITE, dwflags : u32) -> windows_core::HRESULT); - SslLookupCipherSuiteInfo(core::mem::transmute(hsslprovider), core::mem::transmute(dwprotocol), core::mem::transmute(dwciphersuite), core::mem::transmute(dwkeytype), core::mem::transmute(pciphersuite), core::mem::transmute(dwflags)).ok() + SslLookupCipherSuiteInfo(hsslprovider, dwprotocol, dwciphersuite, dwkeytype, core::mem::transmute(pciphersuite), dwflags).ok() } #[inline] pub unsafe fn SslOpenPrivateKey(hsslprovider: NCRYPT_PROV_HANDLE, phprivatekey: *mut NCRYPT_KEY_HANDLE, pcertcontext: *const CERT_CONTEXT, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslOpenPrivateKey(hsslprovider : NCRYPT_PROV_HANDLE, phprivatekey : *mut NCRYPT_KEY_HANDLE, pcertcontext : *const CERT_CONTEXT, dwflags : u32) -> windows_core::HRESULT); - SslOpenPrivateKey(core::mem::transmute(hsslprovider), core::mem::transmute(phprivatekey), core::mem::transmute(pcertcontext), core::mem::transmute(dwflags)).ok() + SslOpenPrivateKey(hsslprovider, core::mem::transmute(phprivatekey), pcertcontext, dwflags).ok() } #[inline] pub unsafe fn SslOpenProvider(phsslprovider: *mut NCRYPT_PROV_HANDLE, pszprovidername: P1, dwflags: u32) -> windows_core::Result<()> @@ -2951,17 +2876,17 @@ where P1: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn SslOpenProvider(phsslprovider : *mut NCRYPT_PROV_HANDLE, pszprovidername : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - SslOpenProvider(core::mem::transmute(phsslprovider), pszprovidername.param().abi(), core::mem::transmute(dwflags)).ok() + SslOpenProvider(core::mem::transmute(phsslprovider), pszprovidername.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SslSignHash(hsslprovider: NCRYPT_PROV_HANDLE, hprivatekey: NCRYPT_KEY_HANDLE, pbhashvalue: &[u8], pbsignature: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslSignHash(hsslprovider : NCRYPT_PROV_HANDLE, hprivatekey : NCRYPT_KEY_HANDLE, pbhashvalue : *const u8, cbhashvalue : u32, pbsignature : *mut u8, cbsignature : u32, pcbresult : *mut u32, dwflags : u32) -> windows_core::HRESULT); - SslSignHash(core::mem::transmute(hsslprovider), core::mem::transmute(hprivatekey), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsignature.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), core::mem::transmute(dwflags)).ok() + SslSignHash(hsslprovider, hprivatekey, core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbsignature.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbresult), dwflags).ok() } #[inline] pub unsafe fn SslVerifySignature(hsslprovider: NCRYPT_PROV_HANDLE, hpublickey: NCRYPT_KEY_HANDLE, pbhashvalue: &[u8], pbsignature: &[u8], dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("ncrypt.dll" "system" fn SslVerifySignature(hsslprovider : NCRYPT_PROV_HANDLE, hpublickey : NCRYPT_KEY_HANDLE, pbhashvalue : *const u8, cbhashvalue : u32, pbsignature : *const u8, cbsignature : u32, dwflags : u32) -> windows_core::HRESULT); - SslVerifySignature(core::mem::transmute(hsslprovider), core::mem::transmute(hpublickey), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), core::mem::transmute(dwflags)).ok() + SslVerifySignature(hsslprovider, hpublickey, core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn SystemPrng(pbrandomdata: &mut [u8]) -> super::super::Foundation::BOOL { @@ -2971,12 +2896,12 @@ pub unsafe fn SystemPrng(pbrandomdata: &mut [u8]) -> super::super::Foundation::B #[inline] pub unsafe fn TransformBlock(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn TransformBlock(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); - TransformBlock(core::mem::transmute(hcrypto), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() + TransformBlock(hcrypto, pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() } #[inline] pub unsafe fn TransformFinalBlock(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { windows_targets::link!("infocardapi.dll" "system" fn TransformFinalBlock(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); - TransformFinalBlock(core::mem::transmute(hcrypto), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() + TransformFinalBlock(hcrypto, pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), core::mem::transmute(pcboutdata), core::mem::transmute(ppoutdata)).ok() } #[inline] pub unsafe fn VerifyHash(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, phash: &[u8], hashalgoid: P3, psig: &[u8]) -> windows_core::Result @@ -2985,7 +2910,7 @@ where { windows_targets::link!("infocardapi.dll" "system" fn VerifyHash(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbhash : u32, phash : *const u8, hashalgoid : windows_core::PCWSTR, cbsig : u32, psig : *const u8, pfverified : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VerifyHash(core::mem::transmute(hcrypto), phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), psig.len().try_into().unwrap(), core::mem::transmute(psig.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + VerifyHash(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), psig.len().try_into().unwrap(), core::mem::transmute(psig.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) } pub const ALG_CLASS_ALL: u32 = 57344u32; pub const ALG_CLASS_ANY: u32 = 0u32; @@ -11507,20 +11432,20 @@ impl ICertSrvSetup { (windows_core::Interface::vtable(self).CAErrorString)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn InitializeDefaults(&self, bserver: super::super::Foundation::VARIANT_BOOL, bclient: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeDefaults)(windows_core::Interface::as_raw(self), core::mem::transmute(bserver), core::mem::transmute(bclient)).ok() + (windows_core::Interface::vtable(self).InitializeDefaults)(windows_core::Interface::as_raw(self), bserver, bclient).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCASetupProperty(&self, propertyid: CASetupProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCASetupProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCASetupProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetCASetupProperty(&self, propertyid: CASetupProperty, ppropertyvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCASetupProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(ppropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetCASetupProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(ppropertyvalue)).ok() } pub unsafe fn IsPropertyEditable(&self, propertyid: CASetupProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPropertyEditable)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPropertyEditable)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetSupportedCATypes(&self) -> windows_core::Result { @@ -11553,13 +11478,13 @@ impl ICertSrvSetup { } pub unsafe fn CAImportPFX(&self, bstrfilename: &windows_core::BSTR, bstrpasswd: &windows_core::BSTR, boverwriteexistingkey: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CAImportPFX)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute_copy(bstrpasswd), core::mem::transmute(boverwriteexistingkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CAImportPFX)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute_copy(bstrpasswd), boverwriteexistingkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCADistinguishedName(&self, bstrcadn: &windows_core::BSTR, bignoreunicode: super::super::Foundation::VARIANT_BOOL, boverwriteexistingkey: super::super::Foundation::VARIANT_BOOL, boverwriteexistingcainds: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCADistinguishedName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcadn), core::mem::transmute(bignoreunicode), core::mem::transmute(boverwriteexistingkey), core::mem::transmute(boverwriteexistingcainds)).ok() + (windows_core::Interface::vtable(self).SetCADistinguishedName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcadn), bignoreunicode, boverwriteexistingkey, boverwriteexistingcainds).ok() } pub unsafe fn SetDatabaseInformation(&self, bstrdbdirectory: &windows_core::BSTR, bstrlogdirectory: &windows_core::BSTR, bstrsharedfolder: &windows_core::BSTR, bforceoverwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDatabaseInformation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdbdirectory), core::mem::transmute_copy(bstrlogdirectory), core::mem::transmute_copy(bstrsharedfolder), core::mem::transmute(bforceoverwrite)).ok() + (windows_core::Interface::vtable(self).SetDatabaseInformation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdbdirectory), core::mem::transmute_copy(bstrlogdirectory), core::mem::transmute_copy(bstrsharedfolder), bforceoverwrite).ok() } pub unsafe fn SetParentCAInformation(&self, bstrcaconfiguration: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetParentCAInformation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcaconfiguration)).ok() @@ -11571,7 +11496,7 @@ impl ICertSrvSetup { (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PreUnInstall(&self, bclientonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PreUnInstall)(windows_core::Interface::as_raw(self), core::mem::transmute(bclientonly)).ok() + (windows_core::Interface::vtable(self).PreUnInstall)(windows_core::Interface::as_raw(self), bclientonly).ok() } pub unsafe fn PostUnInstall(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PostUnInstall)(windows_core::Interface::as_raw(self)).ok() @@ -11850,14 +11775,14 @@ impl ICertSrvSetupKeyInformation { (windows_core::Interface::vtable(self).Length)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLength(&self, lval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(lval)).ok() + (windows_core::Interface::vtable(self).SetLength)(windows_core::Interface::as_raw(self), lval).ok() } pub unsafe fn Existing(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Existing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExisting(&self, bval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), core::mem::transmute(bval)).ok() + (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), bval).ok() } pub unsafe fn ContainerName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12050,7 +11975,7 @@ impl ICertSrvSetupKeyInformationCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12156,11 +12081,11 @@ impl ICertificateEnrollmentPolicyServerSetup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, propertyid: CEPSetupProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, propertyid: CEPSetupProperty, ppropertyvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(ppropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(ppropertyvalue)).ok() } pub unsafe fn Install(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self)).ok() @@ -12277,11 +12202,11 @@ impl ICertificateEnrollmentServerSetup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, propertyid: CESSetupProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, propertyid: CESSetupProperty, ppropertyvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(ppropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(ppropertyvalue)).ok() } pub unsafe fn SetApplicationPoolCredentials(&self, bstrusername: &windows_core::BSTR, bstrpassword: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetApplicationPoolCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword)).ok() @@ -12415,11 +12340,11 @@ impl IMSCEPSetup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetMSCEPSetupProperty(&self, propertyid: MSCEPSetupProperty) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMSCEPSetupProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMSCEPSetupProperty)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetMSCEPSetupProperty(&self, propertyid: MSCEPSetupProperty, ppropertyvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMSCEPSetupProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(ppropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetMSCEPSetupProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(ppropertyvalue)).ok() } pub unsafe fn SetAccountInformation(&self, bstrusername: &windows_core::BSTR, bstrpassword: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAccountInformation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword)).ok() @@ -12431,12 +12356,12 @@ impl IMSCEPSetup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProviderNameList(&self, bexchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProviderNameList)(windows_core::Interface::as_raw(self), core::mem::transmute(bexchange), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProviderNameList)(windows_core::Interface::as_raw(self), bexchange, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetKeyLengthList(&self, bexchange: super::super::Foundation::VARIANT_BOOL, bstrprovidername: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKeyLengthList)(windows_core::Interface::as_raw(self), core::mem::transmute(bexchange), core::mem::transmute_copy(bstrprovidername), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetKeyLengthList)(windows_core::Interface::as_raw(self), bexchange, core::mem::transmute_copy(bstrprovidername), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Install(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs index 4af9143156..9ac7757811 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn DdqCancelDiagnosticRecordOperation(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCancelDiagnosticRecordOperation(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::HRESULT); - DdqCancelDiagnosticRecordOperation(core::mem::transmute(hsession)).ok() + DdqCancelDiagnosticRecordOperation(hsession).ok() } #[inline] pub unsafe fn DdqCloseSession(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCloseSession(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::HRESULT); - DdqCloseSession(core::mem::transmute(hsession)).ok() + DdqCloseSession(hsession).ok() } #[inline] pub unsafe fn DdqCreateSession(accesslevel: DdqAccessLevel) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCreateSession(accesslevel : DdqAccessLevel, hsession : *mut HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqCreateSession(core::mem::transmute(accesslevel), &mut result__).map(|| core::mem::transmute(result__)) + DdqCreateSession(accesslevel, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqExtractDiagnosticReport(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype: u32, reportkey: P2, destinationpath: P3) -> windows_core::Result<()> @@ -21,32 +21,32 @@ where P3: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqExtractDiagnosticReport(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportkey : windows_core::PCWSTR, destinationpath : windows_core::PCWSTR) -> windows_core::HRESULT); - DdqExtractDiagnosticReport(core::mem::transmute(hsession), core::mem::transmute(reportstoretype), reportkey.param().abi(), destinationpath.param().abi()).ok() + DdqExtractDiagnosticReport(hsession, reportstoretype, reportkey.param().abi(), destinationpath.param().abi()).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordLocaleTags(htagdescription: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordLocaleTags(htagdescription : HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordLocaleTags(core::mem::transmute(htagdescription)).ok() + DdqFreeDiagnosticRecordLocaleTags(htagdescription).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordPage(hrecord: HDIAGNOSTIC_RECORD) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordPage(hrecord : HDIAGNOSTIC_RECORD) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordPage(core::mem::transmute(hrecord)).ok() + DdqFreeDiagnosticRecordPage(hrecord).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordProducerCategories(hcategorydescription: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordProducerCategories(hcategorydescription : HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordProducerCategories(core::mem::transmute(hcategorydescription)).ok() + DdqFreeDiagnosticRecordProducerCategories(hcategorydescription).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordProducers(hproducerdescription: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordProducers(hproducerdescription : HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordProducers(core::mem::transmute(hproducerdescription)).ok() + DdqFreeDiagnosticRecordProducers(hproducerdescription).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticReport(hreport: HDIAGNOSTIC_REPORT) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticReport(hreport : HDIAGNOSTIC_REPORT) -> windows_core::HRESULT); - DdqFreeDiagnosticReport(core::mem::transmute(hreport)).ok() + DdqFreeDiagnosticReport(hreport).ok() } #[inline] pub unsafe fn DdqGetDiagnosticDataAccessLevelAllowed() -> windows_core::Result { @@ -57,42 +57,42 @@ pub unsafe fn DdqGetDiagnosticDataAccessLevelAllowed() -> windows_core::Result windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordAtIndex(hrecord : HDIAGNOSTIC_RECORD, index : u32, record : *mut DIAGNOSTIC_DATA_RECORD) -> windows_core::HRESULT); - DdqGetDiagnosticRecordAtIndex(core::mem::transmute(hrecord), core::mem::transmute(index), core::mem::transmute(record)).ok() + DdqGetDiagnosticRecordAtIndex(hrecord, index, core::mem::transmute(record)).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordBinaryDistribution(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames: &[windows_core::PCWSTR], topnbinaries: u32, binarystats: *mut *mut DIAGNOSTIC_DATA_EVENT_BINARY_STATS, statcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordBinaryDistribution(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const windows_core::PCWSTR, producernamecount : u32, topnbinaries : u32, binarystats : *mut *mut DIAGNOSTIC_DATA_EVENT_BINARY_STATS, statcount : *mut u32) -> windows_core::HRESULT); - DdqGetDiagnosticRecordBinaryDistribution(core::mem::transmute(hsession), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), core::mem::transmute(topnbinaries), core::mem::transmute(binarystats), core::mem::transmute(statcount)).ok() + DdqGetDiagnosticRecordBinaryDistribution(hsession, core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), topnbinaries, core::mem::transmute(binarystats), core::mem::transmute(statcount)).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, index: u32) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription : HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, index : u32, categorydescription : *mut DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordCategoryAtIndex(core::mem::transmute(hcategorydescription), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription, index, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription : HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, categorydescriptioncount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordCategoryCount(core::mem::transmute(hcategorydescription), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordCategoryCount(hcategorydescription, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordCount(hrecord: HDIAGNOSTIC_RECORD) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCount(hrecord : HDIAGNOSTIC_RECORD, recordcount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordCount(core::mem::transmute(hrecord), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordCount(hrecord, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, index: u32) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription : HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, index : u32, tagdescription : *mut DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTagAtIndex(core::mem::transmute(htagdescription), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription, index, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription : HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, tagdescriptioncount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTagCount(core::mem::transmute(htagdescription), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordLocaleTagCount(htagdescription, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordLocaleTags(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, locale: P1) -> windows_core::Result @@ -101,25 +101,25 @@ where { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTags(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, locale : windows_core::PCWSTR, htagdescription : *mut HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTags(core::mem::transmute(hsession), locale.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordLocaleTags(hsession, locale.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordPage(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria: *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, offset: u32, pagerecordcount: u32, baserowid: i64) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPage(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, offset : u32, pagerecordcount : u32, baserowid : i64, hrecord : *mut HDIAGNOSTIC_RECORD) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordPage(core::mem::transmute(hsession), core::mem::transmute(searchcriteria), core::mem::transmute(offset), core::mem::transmute(pagerecordcount), core::mem::transmute(baserowid), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordPage(hsession, searchcriteria, offset, pagerecordcount, baserowid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordPayload(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, rowid: i64) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPayload(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, rowid : i64, payload : *mut windows_core::PCWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordPayload(core::mem::transmute(hsession), core::mem::transmute(rowid), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordPayload(hsession, rowid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, index: u32) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription : HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, index : u32, producerdescription : *mut DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducerAtIndex(core::mem::transmute(hproducerdescription), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription, index, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducerCategories(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, producername: P1) -> windows_core::Result @@ -128,69 +128,69 @@ where { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCategories(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, producername : windows_core::PCWSTR, hcategorydescription : *mut HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducerCategories(core::mem::transmute(hsession), producername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducerCategories(hsession, producername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducerCount(hproducerdescription: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCount(hproducerdescription : HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, producerdescriptioncount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducerCount(core::mem::transmute(hproducerdescription), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducerCount(hproducerdescription, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducers(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducers(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, hproducerdescription : *mut HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducers(core::mem::transmute(hsession), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducers(hsession, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticRecordStats(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria: *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, recordcount: *mut u32, minrowid: *mut i64, maxrowid: *mut i64) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordStats(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, recordcount : *mut u32, minrowid : *mut i64, maxrowid : *mut i64) -> windows_core::HRESULT); - DdqGetDiagnosticRecordStats(core::mem::transmute(hsession), core::mem::transmute(searchcriteria), core::mem::transmute(recordcount), core::mem::transmute(minrowid), core::mem::transmute(maxrowid)).ok() + DdqGetDiagnosticRecordStats(hsession, searchcriteria, core::mem::transmute(recordcount), core::mem::transmute(minrowid), core::mem::transmute(maxrowid)).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordSummary(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames: &[windows_core::PCWSTR], generalstats: *mut DIAGNOSTIC_DATA_GENERAL_STATS) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordSummary(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const windows_core::PCWSTR, producernamecount : u32, generalstats : *mut DIAGNOSTIC_DATA_GENERAL_STATS) -> windows_core::HRESULT); - DdqGetDiagnosticRecordSummary(core::mem::transmute(hsession), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), core::mem::transmute(generalstats)).ok() + DdqGetDiagnosticRecordSummary(hsession, core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), core::mem::transmute(generalstats)).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordTagDistribution(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames: &[windows_core::PCWSTR], tagstats: *mut *mut DIAGNOSTIC_DATA_EVENT_TAG_STATS, statcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordTagDistribution(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const windows_core::PCWSTR, producernamecount : u32, tagstats : *mut *mut DIAGNOSTIC_DATA_EVENT_TAG_STATS, statcount : *mut u32) -> windows_core::HRESULT); - DdqGetDiagnosticRecordTagDistribution(core::mem::transmute(hsession), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), core::mem::transmute(tagstats), core::mem::transmute(statcount)).ok() + DdqGetDiagnosticRecordTagDistribution(hsession, core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), core::mem::transmute(tagstats), core::mem::transmute(statcount)).ok() } #[inline] pub unsafe fn DdqGetDiagnosticReport(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype: u32) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReport(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, hreport : *mut HDIAGNOSTIC_REPORT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticReport(core::mem::transmute(hsession), core::mem::transmute(reportstoretype), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticReport(hsession, reportstoretype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticReportAtIndex(hreport: HDIAGNOSTIC_REPORT, index: u32, report: *mut DIAGNOSTIC_REPORT_DATA) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportAtIndex(hreport : HDIAGNOSTIC_REPORT, index : u32, report : *mut DIAGNOSTIC_REPORT_DATA) -> windows_core::HRESULT); - DdqGetDiagnosticReportAtIndex(core::mem::transmute(hreport), core::mem::transmute(index), core::mem::transmute(report)).ok() + DdqGetDiagnosticReportAtIndex(hreport, index, core::mem::transmute(report)).ok() } #[inline] pub unsafe fn DdqGetDiagnosticReportCount(hreport: HDIAGNOSTIC_REPORT) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportCount(hreport : HDIAGNOSTIC_REPORT, reportcount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticReportCount(core::mem::transmute(hreport), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticReportCount(hreport, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetDiagnosticReportStoreReportCount(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype: u32) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportStoreReportCount(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportcount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticReportStoreReportCount(core::mem::transmute(hsession), core::mem::transmute(reportstoretype), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticReportStoreReportCount(hsession, reportstoretype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetSessionAccessLevel(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetSessionAccessLevel(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, accesslevel : *mut DdqAccessLevel) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetSessionAccessLevel(core::mem::transmute(hsession), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetSessionAccessLevel(hsession, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqGetTranscriptConfiguration(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::Result { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetTranscriptConfiguration(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, currentconfig : *mut DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqGetTranscriptConfiguration(core::mem::transmute(hsession), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetTranscriptConfiguration(hsession, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqIsDiagnosticRecordSampledIn(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup: *const windows_core::GUID, providerid: Option<*const windows_core::GUID>, providername: P3, eventid: Option<*const u32>, eventname: P5, eventversion: Option<*const u32>, eventkeywords: Option<*const u64>) -> windows_core::Result @@ -200,12 +200,12 @@ where { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqIsDiagnosticRecordSampledIn(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup : *const windows_core::GUID, providerid : *const windows_core::GUID, providername : windows_core::PCWSTR, eventid : *const u32, eventname : windows_core::PCWSTR, eventversion : *const u32, eventkeywords : *const u64, issampledin : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DdqIsDiagnosticRecordSampledIn(core::mem::transmute(hsession), core::mem::transmute(providergroup), core::mem::transmute(providerid.unwrap_or(core::mem::zeroed())), providername.param().abi(), core::mem::transmute(eventid.unwrap_or(core::mem::zeroed())), eventname.param().abi(), core::mem::transmute(eventversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventkeywords.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + DdqIsDiagnosticRecordSampledIn(hsession, providergroup, core::mem::transmute(providerid.unwrap_or(core::mem::zeroed())), providername.param().abi(), core::mem::transmute(eventid.unwrap_or(core::mem::zeroed())), eventname.param().abi(), core::mem::transmute(eventversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventkeywords.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn DdqSetTranscriptConfiguration(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, desiredconfig: *const DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::Result<()> { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqSetTranscriptConfiguration(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, desiredconfig : *const DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::HRESULT); - DdqSetTranscriptConfiguration(core::mem::transmute(hsession), core::mem::transmute(desiredconfig)).ok() + DdqSetTranscriptConfiguration(hsession, desiredconfig).ok() } pub const AllUserData: DdqAccessLevel = DdqAccessLevel(2i32); pub const CurrentUserData: DdqAccessLevel = DdqAccessLevel(1i32); diff --git a/crates/libs/windows/src/Windows/Win32/Security/DirectoryServices/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/DirectoryServices/mod.rs index f73122abd2..69c3a4de76 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DirectoryServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DirectoryServices/mod.rs @@ -6,7 +6,7 @@ where P1: windows_core::Param, { windows_targets::link!("dssec.dll" "system" fn DSCreateISecurityInfoObject(pwszobjectpath : windows_core::PCWSTR, pwszobjectclass : windows_core::PCWSTR, dwflags : u32, ppsi : *mut * mut core::ffi::c_void, pfnreadsd : PFNREADOBJECTSECURITY, pfnwritesd : PFNWRITEOBJECTSECURITY, lpcontext : super::super::Foundation:: LPARAM) -> windows_core::HRESULT); - DSCreateISecurityInfoObject(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppsi), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcontext)).ok() + DSCreateISecurityInfoObject(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), dwflags, core::mem::transmute(ppsi), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), lpcontext).ok() } #[cfg(feature = "Win32_Security_Authorization_UI")] #[inline] @@ -19,7 +19,7 @@ where P4: windows_core::Param, { windows_targets::link!("dssec.dll" "system" fn DSCreateISecurityInfoObjectEx(pwszobjectpath : windows_core::PCWSTR, pwszobjectclass : windows_core::PCWSTR, pwszserver : windows_core::PCWSTR, pwszusername : windows_core::PCWSTR, pwszpassword : windows_core::PCWSTR, dwflags : u32, ppsi : *mut * mut core::ffi::c_void, pfnreadsd : PFNREADOBJECTSECURITY, pfnwritesd : PFNWRITEOBJECTSECURITY, lpcontext : super::super::Foundation:: LPARAM) -> windows_core::HRESULT); - DSCreateISecurityInfoObjectEx(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), pwszserver.param().abi(), pwszusername.param().abi(), pwszpassword.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppsi), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcontext)).ok() + DSCreateISecurityInfoObjectEx(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), pwszserver.param().abi(), pwszusername.param().abi(), pwszpassword.param().abi(), dwflags, core::mem::transmute(ppsi), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), lpcontext).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] @@ -29,7 +29,7 @@ where P1: windows_core::Param, { windows_targets::link!("dssec.dll" "system" fn DSCreateSecurityPage(pwszobjectpath : windows_core::PCWSTR, pwszobjectclass : windows_core::PCWSTR, dwflags : u32, phpage : *mut super::super::UI::Controls:: HPROPSHEETPAGE, pfnreadsd : PFNREADOBJECTSECURITY, pfnwritesd : PFNWRITEOBJECTSECURITY, lpcontext : super::super::Foundation:: LPARAM) -> windows_core::HRESULT); - DSCreateSecurityPage(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(phpage), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcontext)).ok() + DSCreateSecurityPage(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), dwflags, core::mem::transmute(phpage), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), lpcontext).ok() } #[inline] pub unsafe fn DSEditSecurity(hwndowner: super::super::Foundation::HWND, pwszobjectpath: P1, pwszobjectclass: P2, dwflags: u32, pwszcaption: P4, pfnreadsd: Option, pfnwritesd: Option, lpcontext: super::super::Foundation::LPARAM) -> windows_core::Result<()> @@ -39,7 +39,7 @@ where P4: windows_core::Param, { windows_targets::link!("dssec.dll" "system" fn DSEditSecurity(hwndowner : super::super::Foundation:: HWND, pwszobjectpath : windows_core::PCWSTR, pwszobjectclass : windows_core::PCWSTR, dwflags : u32, pwszcaption : windows_core::PCWSTR, pfnreadsd : PFNREADOBJECTSECURITY, pfnwritesd : PFNWRITEOBJECTSECURITY, lpcontext : super::super::Foundation:: LPARAM) -> windows_core::HRESULT); - DSEditSecurity(core::mem::transmute(hwndowner), pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), core::mem::transmute(dwflags), pwszcaption.param().abi(), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcontext)).ok() + DSEditSecurity(hwndowner, pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), dwflags, pwszcaption.param().abi(), core::mem::transmute(pfnreadsd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwritesd.unwrap_or(core::mem::zeroed())), lpcontext).ok() } pub const DSSI_IS_ROOT: u32 = 16u32; pub const DSSI_NO_ACCESS_CHECK: u32 = 2u32; diff --git a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs index b36c74dafb..3664df2345 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -31,7 +31,7 @@ pub unsafe fn SrpDisablePermissiveModeFileEncryption() -> windows_core::Result<( pub unsafe fn SrpDoesPolicyAllowAppExecution(packageid: *const super::super::Storage::Packaging::Appx::PACKAGE_ID) -> windows_core::Result { windows_targets::link!("srpapi.dll" "system" fn SrpDoesPolicyAllowAppExecution(packageid : *const super::super::Storage::Packaging::Appx:: PACKAGE_ID, isallowed : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SrpDoesPolicyAllowAppExecution(core::mem::transmute(packageid), &mut result__).map(|| core::mem::transmute(result__)) + SrpDoesPolicyAllowAppExecution(packageid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SrpEnablePermissiveModeFileEncryption(enterpriseid: P0) -> windows_core::Result<()> @@ -44,28 +44,28 @@ where #[inline] pub unsafe fn SrpGetEnterpriseIds(tokenhandle: super::super::Foundation::HANDLE, numberofbytes: Option<*mut u32>, enterpriseids: Option<*mut windows_core::PCWSTR>, enterpriseidcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("srpapi.dll" "system" fn SrpGetEnterpriseIds(tokenhandle : super::super::Foundation:: HANDLE, numberofbytes : *mut u32, enterpriseids : *mut windows_core::PCWSTR, enterpriseidcount : *mut u32) -> windows_core::HRESULT); - SrpGetEnterpriseIds(core::mem::transmute(tokenhandle), core::mem::transmute(numberofbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(enterpriseids.unwrap_or(core::mem::zeroed())), core::mem::transmute(enterpriseidcount)).ok() + SrpGetEnterpriseIds(tokenhandle, core::mem::transmute(numberofbytes.unwrap_or(core::mem::zeroed())), core::mem::transmute(enterpriseids.unwrap_or(core::mem::zeroed())), core::mem::transmute(enterpriseidcount)).ok() } #[inline] pub unsafe fn SrpGetEnterprisePolicy(tokenhandle: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("srpapi.dll" "system" fn SrpGetEnterprisePolicy(tokenhandle : super::super::Foundation:: HANDLE, policyflags : *mut ENTERPRISE_DATA_POLICIES) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SrpGetEnterprisePolicy(core::mem::transmute(tokenhandle), &mut result__).map(|| core::mem::transmute(result__)) + SrpGetEnterprisePolicy(tokenhandle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SrpHostingInitialize(version: SRPHOSTING_VERSION, r#type: SRPHOSTING_TYPE, pvdata: *const core::ffi::c_void, cbdata: u32) -> windows_core::Result<()> { windows_targets::link!("srpapi.dll" "system" fn SrpHostingInitialize(version : SRPHOSTING_VERSION, r#type : SRPHOSTING_TYPE, pvdata : *const core::ffi::c_void, cbdata : u32) -> windows_core::HRESULT); - SrpHostingInitialize(core::mem::transmute(version), core::mem::transmute(r#type), core::mem::transmute(pvdata), core::mem::transmute(cbdata)).ok() + SrpHostingInitialize(version, r#type, pvdata, cbdata).ok() } #[inline] pub unsafe fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE) { windows_targets::link!("srpapi.dll" "system" fn SrpHostingTerminate(r#type : SRPHOSTING_TYPE)); - SrpHostingTerminate(core::mem::transmute(r#type)) + SrpHostingTerminate(r#type) } #[inline] pub unsafe fn SrpIsTokenService(tokenhandle: super::super::Foundation::HANDLE, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS { windows_targets::link!("srpapi.dll" "system" fn SrpIsTokenService(tokenhandle : super::super::Foundation:: HANDLE, istokenservice : *mut u8) -> super::super::Foundation:: NTSTATUS); - SrpIsTokenService(core::mem::transmute(tokenhandle), core::mem::transmute(istokenservice)) + SrpIsTokenService(tokenhandle, core::mem::transmute(istokenservice)) } #[inline] pub unsafe fn SrpSetTokenEnterpriseId(tokenhandle: super::super::Foundation::HANDLE, enterpriseid: P1) -> windows_core::Result<()> @@ -73,7 +73,7 @@ where P1: windows_core::Param, { windows_targets::link!("srpapi.dll" "system" fn SrpSetTokenEnterpriseId(tokenhandle : super::super::Foundation:: HANDLE, enterpriseid : windows_core::PCWSTR) -> windows_core::HRESULT); - SrpSetTokenEnterpriseId(core::mem::transmute(tokenhandle), enterpriseid.param().abi()).ok() + SrpSetTokenEnterpriseId(tokenhandle, enterpriseid.param().abi()).ok() } #[inline] pub unsafe fn UnprotectFile(fileorfolderpath: P0, options: Option<*const FILE_UNPROTECT_OPTIONS>) -> windows_core::Result<()> @@ -152,14 +152,14 @@ impl IProtectionPolicyManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetForWindow(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -201,7 +201,7 @@ impl IProtectionPolicyManagerInterop2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessForAppWithWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessWithAuditingInfoForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: P3) -> windows_core::Result where @@ -209,7 +209,7 @@ impl IProtectionPolicyManagerInterop2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessWithAuditingInfoForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessWithAuditingInfoForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessWithMessageForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: P3, messagefromapp: &windows_core::HSTRING) -> windows_core::Result where @@ -217,7 +217,7 @@ impl IProtectionPolicyManagerInterop2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessWithMessageForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessWithMessageForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessForAppWithAuditingInfoForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P3) -> windows_core::Result where @@ -225,7 +225,7 @@ impl IProtectionPolicyManagerInterop2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithAuditingInfoForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessForAppWithAuditingInfoForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessForAppWithMessageForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P3, messagefromapp: &windows_core::HSTRING) -> windows_core::Result where @@ -233,7 +233,7 @@ impl IProtectionPolicyManagerInterop2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithMessageForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessForAppWithMessageForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -297,7 +297,7 @@ impl IProtectionPolicyManagerInterop3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessWithBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), core::mem::transmute(behavior), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessWithBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessForAppWithBehaviorForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P3, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where @@ -305,7 +305,7 @@ impl IProtectionPolicyManagerInterop3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), core::mem::transmute(behavior), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessForAppWithBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessToFilesForAppForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceitemlistunk: P1, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P3) -> windows_core::Result where @@ -314,7 +314,7 @@ impl IProtectionPolicyManagerInterop3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForAppForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), sourceitemlistunk.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessToFilesForAppForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, sourceitemlistunk.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceitemlistunk: P1, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P3, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where @@ -323,7 +323,7 @@ impl IProtectionPolicyManagerInterop3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), sourceitemlistunk.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), core::mem::transmute(behavior), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, sourceitemlistunk.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessToFilesForProcessForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceitemlistunk: P1, processid: u32, auditinfounk: P3) -> windows_core::Result where @@ -332,7 +332,7 @@ impl IProtectionPolicyManagerInterop3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForProcessForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), sourceitemlistunk.param().abi(), core::mem::transmute(processid), auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessToFilesForProcessForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, sourceitemlistunk.param().abi(), processid, auditinfounk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceitemlistunk: P1, processid: u32, auditinfounk: P3, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where @@ -341,7 +341,7 @@ impl IProtectionPolicyManagerInterop3 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), sourceitemlistunk.param().abi(), core::mem::transmute(processid), auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), core::mem::transmute(behavior), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, sourceitemlistunk.param().abi(), processid, auditinfounk.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs index d5b0425854..ab6b60b74e 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs @@ -1,22 +1,7 @@ #[inline] pub unsafe fn EapHostPeerBeginSession(dwflags: u32, eaptype: EAP_METHOD_TYPE, pattributearray: *const EAP_ATTRIBUTES, htokenimpersonateuser: super::super::Foundation::HANDLE, dwsizeofconnectiondata: u32, pconnectiondata: *const u8, dwsizeofuserdata: u32, puserdata: *const u8, dwmaxsendpacketsize: u32, pconnectionid: *const windows_core::GUID, func: NotificationHandler, pcontextdata: *mut core::ffi::c_void, psessionid: *mut u32, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerBeginSession(dwflags : u32, eaptype : EAP_METHOD_TYPE, pattributearray : *const EAP_ATTRIBUTES, htokenimpersonateuser : super::super::Foundation:: HANDLE, dwsizeofconnectiondata : u32, pconnectiondata : *const u8, dwsizeofuserdata : u32, puserdata : *const u8, dwmaxsendpacketsize : u32, pconnectionid : *const windows_core::GUID, func : NotificationHandler, pcontextdata : *mut core::ffi::c_void, psessionid : *mut u32, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerBeginSession( - core::mem::transmute(dwflags), - core::mem::transmute(eaptype), - core::mem::transmute(pattributearray), - core::mem::transmute(htokenimpersonateuser), - core::mem::transmute(dwsizeofconnectiondata), - core::mem::transmute(pconnectiondata), - core::mem::transmute(dwsizeofuserdata), - core::mem::transmute(puserdata), - core::mem::transmute(dwmaxsendpacketsize), - core::mem::transmute(pconnectionid), - core::mem::transmute(func), - core::mem::transmute(pcontextdata), - core::mem::transmute(psessionid), - core::mem::transmute(ppeaperror), - ) + EapHostPeerBeginSession(dwflags, core::mem::transmute(eaptype), pattributearray, htokenimpersonateuser, dwsizeofconnectiondata, pconnectiondata, dwsizeofuserdata, puserdata, dwmaxsendpacketsize, pconnectionid, func, core::mem::transmute(pcontextdata), core::mem::transmute(psessionid), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerClearConnection(pconnectionid: *mut windows_core::GUID, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -27,7 +12,7 @@ pub unsafe fn EapHostPeerClearConnection(pconnectionid: *mut windows_core::GUID, #[inline] pub unsafe fn EapHostPeerConfigBlob2Xml(dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconfigin: &[u8], ppconfigdoc: *mut Option, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerConfigBlob2Xml(dwflags : u32, eapmethodtype : EAP_METHOD_TYPE, dwsizeofconfigin : u32, pconfigin : *const u8, ppconfigdoc : *mut * mut core::ffi::c_void, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerConfigBlob2Xml(core::mem::transmute(dwflags), core::mem::transmute(eapmethodtype), pconfigin.len().try_into().unwrap(), core::mem::transmute(pconfigin.as_ptr()), core::mem::transmute(ppconfigdoc), core::mem::transmute(ppeaperror)) + EapHostPeerConfigBlob2Xml(dwflags, core::mem::transmute(eapmethodtype), pconfigin.len().try_into().unwrap(), core::mem::transmute(pconfigin.as_ptr()), core::mem::transmute(ppconfigdoc), core::mem::transmute(ppeaperror)) } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] #[inline] @@ -36,7 +21,7 @@ where P1: windows_core::Param, { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerConfigXml2Blob(dwflags : u32, pconfigdoc : * mut core::ffi::c_void, pdwsizeofconfigout : *mut u32, ppconfigout : *mut *mut u8, peapmethodtype : *mut EAP_METHOD_TYPE, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerConfigXml2Blob(core::mem::transmute(dwflags), pconfigdoc.param().abi(), core::mem::transmute(pdwsizeofconfigout), core::mem::transmute(ppconfigout), core::mem::transmute(peapmethodtype), core::mem::transmute(ppeaperror)) + EapHostPeerConfigXml2Blob(dwflags, pconfigdoc.param().abi(), core::mem::transmute(pdwsizeofconfigout), core::mem::transmute(ppconfigout), core::mem::transmute(peapmethodtype), core::mem::transmute(ppeaperror)) } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] #[inline] @@ -45,12 +30,12 @@ where P1: windows_core::Param, { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerCredentialsXml2Blob(dwflags : u32, pcredentialsdoc : * mut core::ffi::c_void, dwsizeofconfigin : u32, pconfigin : *const u8, pdwsizeofcredentialsout : *mut u32, ppcredentialsout : *mut *mut u8, peapmethodtype : *mut EAP_METHOD_TYPE, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerCredentialsXml2Blob(core::mem::transmute(dwflags), pcredentialsdoc.param().abi(), pconfigin.len().try_into().unwrap(), core::mem::transmute(pconfigin.as_ptr()), core::mem::transmute(pdwsizeofcredentialsout), core::mem::transmute(ppcredentialsout), core::mem::transmute(peapmethodtype), core::mem::transmute(ppeaperror)) + EapHostPeerCredentialsXml2Blob(dwflags, pcredentialsdoc.param().abi(), pconfigin.len().try_into().unwrap(), core::mem::transmute(pconfigin.as_ptr()), core::mem::transmute(pdwsizeofcredentialsout), core::mem::transmute(ppcredentialsout), core::mem::transmute(peapmethodtype), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerEndSession(sessionhandle: u32, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerEndSession(sessionhandle : u32, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerEndSession(core::mem::transmute(sessionhandle), core::mem::transmute(ppeaperror)) + EapHostPeerEndSession(sessionhandle, core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerFreeEapError(peaperror: *mut EAP_ERROR) { @@ -75,12 +60,12 @@ pub unsafe fn EapHostPeerFreeRuntimeMemory(pdata: *mut u8) { #[inline] pub unsafe fn EapHostPeerGetAuthStatus(sessionhandle: u32, authparam: EapHostPeerAuthParams, pcbauthdata: *mut u32, ppauthdata: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetAuthStatus(sessionhandle : u32, authparam : EapHostPeerAuthParams, pcbauthdata : *mut u32, ppauthdata : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerGetAuthStatus(core::mem::transmute(sessionhandle), core::mem::transmute(authparam), core::mem::transmute(pcbauthdata), core::mem::transmute(ppauthdata), core::mem::transmute(ppeaperror)) + EapHostPeerGetAuthStatus(sessionhandle, authparam, core::mem::transmute(pcbauthdata), core::mem::transmute(ppauthdata), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds: *mut windows_core::GUID, phcredentialimpersonationtoken: *mut isize, sessionhandle: u32, ppeaperror: *mut *mut EAP_ERROR, fsavetocredman: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds : *mut windows_core::GUID, phcredentialimpersonationtoken : *mut isize, sessionhandle : u32, ppeaperror : *mut *mut EAP_ERROR, fsavetocredman : *mut super::super::Foundation:: BOOL) -> u32); - EapHostPeerGetDataToUnplumbCredentials(core::mem::transmute(pconnectionidthatlastsavedcreds), core::mem::transmute(phcredentialimpersonationtoken), core::mem::transmute(sessionhandle), core::mem::transmute(ppeaperror), core::mem::transmute(fsavetocredman)) + EapHostPeerGetDataToUnplumbCredentials(core::mem::transmute(pconnectionidthatlastsavedcreds), core::mem::transmute(phcredentialimpersonationtoken), sessionhandle, core::mem::transmute(ppeaperror), core::mem::transmute(fsavetocredman)) } #[inline] pub unsafe fn EapHostPeerGetEncryptedPassword(dwsizeofpassword: u32, szpassword: P1, ppszencpassword: *mut windows_core::PWSTR) -> u32 @@ -88,20 +73,20 @@ where P1: windows_core::Param, { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetEncryptedPassword(dwsizeofpassword : u32, szpassword : windows_core::PCWSTR, ppszencpassword : *mut windows_core::PWSTR) -> u32); - EapHostPeerGetEncryptedPassword(core::mem::transmute(dwsizeofpassword), szpassword.param().abi(), core::mem::transmute(ppszencpassword)) + EapHostPeerGetEncryptedPassword(dwsizeofpassword, szpassword.param().abi(), core::mem::transmute(ppszencpassword)) } #[inline] pub unsafe fn EapHostPeerGetIdentity(dwversion: u32, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconnectiondata: &[u8], puserdata: Option<&[u8]>, htokenimpersonateuser: super::super::Foundation::HANDLE, pfinvokeui: *mut super::super::Foundation::BOOL, pdwsizeofuserdataout: *mut u32, ppuserdataout: *mut *mut u8, ppwszidentity: *mut windows_core::PWSTR, ppeaperror: *mut *mut EAP_ERROR, ppvreserved: *mut *mut u8) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetIdentity(dwversion : u32, dwflags : u32, eapmethodtype : EAP_METHOD_TYPE, dwsizeofconnectiondata : u32, pconnectiondata : *const u8, dwsizeofuserdata : u32, puserdata : *const u8, htokenimpersonateuser : super::super::Foundation:: HANDLE, pfinvokeui : *mut super::super::Foundation:: BOOL, pdwsizeofuserdataout : *mut u32, ppuserdataout : *mut *mut u8, ppwszidentity : *mut windows_core::PWSTR, ppeaperror : *mut *mut EAP_ERROR, ppvreserved : *mut *mut u8) -> u32); EapHostPeerGetIdentity( - core::mem::transmute(dwversion), - core::mem::transmute(dwflags), + dwversion, + dwflags, core::mem::transmute(eapmethodtype), pconnectiondata.len().try_into().unwrap(), core::mem::transmute(pconnectiondata.as_ptr()), puserdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puserdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(htokenimpersonateuser), + htokenimpersonateuser, core::mem::transmute(pfinvokeui), core::mem::transmute(pdwsizeofuserdataout), core::mem::transmute(ppuserdataout), @@ -113,7 +98,7 @@ pub unsafe fn EapHostPeerGetIdentity(dwversion: u32, dwflags: u32, eapmethodtype #[inline] pub unsafe fn EapHostPeerGetMethodProperties(dwversion: u32, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, huserimpersonationtoken: super::super::Foundation::HANDLE, pbeapconndata: &[u8], pbuserdata: &[u8], pmethodpropertyarray: *mut EAP_METHOD_PROPERTY_ARRAY, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerGetMethodProperties(dwversion : u32, dwflags : u32, eapmethodtype : EAP_METHOD_TYPE, huserimpersonationtoken : super::super::Foundation:: HANDLE, dweapconndatasize : u32, pbeapconndata : *const u8, dwuserdatasize : u32, pbuserdata : *const u8, pmethodpropertyarray : *mut EAP_METHOD_PROPERTY_ARRAY, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerGetMethodProperties(core::mem::transmute(dwversion), core::mem::transmute(dwflags), core::mem::transmute(eapmethodtype), core::mem::transmute(huserimpersonationtoken), pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), pbuserdata.len().try_into().unwrap(), core::mem::transmute(pbuserdata.as_ptr()), core::mem::transmute(pmethodpropertyarray), core::mem::transmute(ppeaperror)) + EapHostPeerGetMethodProperties(dwversion, dwflags, core::mem::transmute(eapmethodtype), huserimpersonationtoken, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), pbuserdata.len().try_into().unwrap(), core::mem::transmute(pbuserdata.as_ptr()), core::mem::transmute(pmethodpropertyarray), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerGetMethods(peapmethodinfoarray: *mut EAP_METHOD_INFO_ARRAY, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -123,22 +108,22 @@ pub unsafe fn EapHostPeerGetMethods(peapmethodinfoarray: *mut EAP_METHOD_INFO_AR #[inline] pub unsafe fn EapHostPeerGetResponseAttributes(sessionhandle: u32, pattribs: *mut EAP_ATTRIBUTES, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetResponseAttributes(sessionhandle : u32, pattribs : *mut EAP_ATTRIBUTES, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerGetResponseAttributes(core::mem::transmute(sessionhandle), core::mem::transmute(pattribs), core::mem::transmute(ppeaperror)) + EapHostPeerGetResponseAttributes(sessionhandle, core::mem::transmute(pattribs), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerGetResult(sessionhandle: u32, reason: EapHostPeerMethodResultReason, ppresult: *mut EapHostPeerMethodResult, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetResult(sessionhandle : u32, reason : EapHostPeerMethodResultReason, ppresult : *mut EapHostPeerMethodResult, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerGetResult(core::mem::transmute(sessionhandle), core::mem::transmute(reason), core::mem::transmute(ppresult), core::mem::transmute(ppeaperror)) + EapHostPeerGetResult(sessionhandle, reason, core::mem::transmute(ppresult), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerGetSendPacket(sessionhandle: u32, pcbsendpacket: *mut u32, ppsendpacket: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetSendPacket(sessionhandle : u32, pcbsendpacket : *mut u32, ppsendpacket : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerGetSendPacket(core::mem::transmute(sessionhandle), core::mem::transmute(pcbsendpacket), core::mem::transmute(ppsendpacket), core::mem::transmute(ppeaperror)) + EapHostPeerGetSendPacket(sessionhandle, core::mem::transmute(pcbsendpacket), core::mem::transmute(ppsendpacket), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerGetUIContext(sessionhandle: u32, pdwsizeofuicontextdata: *mut u32, ppuicontextdata: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetUIContext(sessionhandle : u32, pdwsizeofuicontextdata : *mut u32, ppuicontextdata : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerGetUIContext(core::mem::transmute(sessionhandle), core::mem::transmute(pdwsizeofuicontextdata), core::mem::transmute(ppuicontextdata), core::mem::transmute(ppeaperror)) + EapHostPeerGetUIContext(sessionhandle, core::mem::transmute(pdwsizeofuicontextdata), core::mem::transmute(ppuicontextdata), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerInitialize() -> u32 { @@ -148,16 +133,16 @@ pub unsafe fn EapHostPeerInitialize() -> u32 { #[inline] pub unsafe fn EapHostPeerInvokeConfigUI(hwndparent: super::super::Foundation::HWND, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconfigin: Option<&[u8]>, pdwsizeofconfigout: *mut u32, ppconfigout: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerInvokeConfigUI(hwndparent : super::super::Foundation:: HWND, dwflags : u32, eapmethodtype : EAP_METHOD_TYPE, dwsizeofconfigin : u32, pconfigin : *const u8, pdwsizeofconfigout : *mut u32, ppconfigout : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerInvokeConfigUI(core::mem::transmute(hwndparent), core::mem::transmute(dwflags), core::mem::transmute(eapmethodtype), pconfigin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pconfigin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwsizeofconfigout), core::mem::transmute(ppconfigout), core::mem::transmute(ppeaperror)) + EapHostPeerInvokeConfigUI(hwndparent, dwflags, core::mem::transmute(eapmethodtype), pconfigin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pconfigin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwsizeofconfigout), core::mem::transmute(ppconfigout), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerInvokeIdentityUI(dwversion: u32, eapmethodtype: EAP_METHOD_TYPE, dwflags: u32, hwndparent: super::super::Foundation::HWND, pconnectiondata: &[u8], puserdata: Option<&[u8]>, pdwsizeofuserdataout: *mut u32, ppuserdataout: *mut *mut u8, ppwszidentity: *mut windows_core::PWSTR, ppeaperror: *mut *mut EAP_ERROR, ppvreserved: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerInvokeIdentityUI(dwversion : u32, eapmethodtype : EAP_METHOD_TYPE, dwflags : u32, hwndparent : super::super::Foundation:: HWND, dwsizeofconnectiondata : u32, pconnectiondata : *const u8, dwsizeofuserdata : u32, puserdata : *const u8, pdwsizeofuserdataout : *mut u32, ppuserdataout : *mut *mut u8, ppwszidentity : *mut windows_core::PWSTR, ppeaperror : *mut *mut EAP_ERROR, ppvreserved : *mut *mut core::ffi::c_void) -> u32); EapHostPeerInvokeIdentityUI( - core::mem::transmute(dwversion), + dwversion, core::mem::transmute(eapmethodtype), - core::mem::transmute(dwflags), - core::mem::transmute(hwndparent), + dwflags, + hwndparent, pconnectiondata.len().try_into().unwrap(), core::mem::transmute(pconnectiondata.as_ptr()), puserdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -172,42 +157,42 @@ pub unsafe fn EapHostPeerInvokeIdentityUI(dwversion: u32, eapmethodtype: EAP_MET #[inline] pub unsafe fn EapHostPeerInvokeInteractiveUI(hwndparent: super::super::Foundation::HWND, puicontextdata: Option<&[u8]>, pdwsizeofdatafrominteractiveui: *mut u32, ppdatafrominteractiveui: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerInvokeInteractiveUI(hwndparent : super::super::Foundation:: HWND, dwsizeofuicontextdata : u32, puicontextdata : *const u8, pdwsizeofdatafrominteractiveui : *mut u32, ppdatafrominteractiveui : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerInvokeInteractiveUI(core::mem::transmute(hwndparent), puicontextdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puicontextdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwsizeofdatafrominteractiveui), core::mem::transmute(ppdatafrominteractiveui), core::mem::transmute(ppeaperror)) + EapHostPeerInvokeInteractiveUI(hwndparent, puicontextdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puicontextdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwsizeofdatafrominteractiveui), core::mem::transmute(ppdatafrominteractiveui), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerProcessReceivedPacket(sessionhandle: u32, cbreceivepacket: u32, preceivepacket: *const u8, peapoutput: *mut EapHostPeerResponseAction, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerProcessReceivedPacket(sessionhandle : u32, cbreceivepacket : u32, preceivepacket : *const u8, peapoutput : *mut EapHostPeerResponseAction, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerProcessReceivedPacket(core::mem::transmute(sessionhandle), core::mem::transmute(cbreceivepacket), core::mem::transmute(preceivepacket), core::mem::transmute(peapoutput), core::mem::transmute(ppeaperror)) + EapHostPeerProcessReceivedPacket(sessionhandle, cbreceivepacket, preceivepacket, core::mem::transmute(peapoutput), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerQueryCredentialInputFields(huserimpersonationtoken: super::super::Foundation::HANDLE, eapmethodtype: EAP_METHOD_TYPE, dwflags: u32, pbeapconndata: &[u8], peapconfiginputfieldarray: *mut EAP_CONFIG_INPUT_FIELD_ARRAY, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerQueryCredentialInputFields(huserimpersonationtoken : super::super::Foundation:: HANDLE, eapmethodtype : EAP_METHOD_TYPE, dwflags : u32, dweapconndatasize : u32, pbeapconndata : *const u8, peapconfiginputfieldarray : *mut EAP_CONFIG_INPUT_FIELD_ARRAY, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerQueryCredentialInputFields(core::mem::transmute(huserimpersonationtoken), core::mem::transmute(eapmethodtype), core::mem::transmute(dwflags), pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), core::mem::transmute(peapconfiginputfieldarray), core::mem::transmute(ppeaperror)) + EapHostPeerQueryCredentialInputFields(huserimpersonationtoken, core::mem::transmute(eapmethodtype), dwflags, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), core::mem::transmute(peapconfiginputfieldarray), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerQueryInteractiveUIInputFields(dwversion: u32, dwflags: u32, puicontextdata: &[u8], peapinteractiveuidata: *mut EAP_INTERACTIVE_UI_DATA, ppeaperror: *mut *mut EAP_ERROR, ppvreserved: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerQueryInteractiveUIInputFields(dwversion : u32, dwflags : u32, dwsizeofuicontextdata : u32, puicontextdata : *const u8, peapinteractiveuidata : *mut EAP_INTERACTIVE_UI_DATA, ppeaperror : *mut *mut EAP_ERROR, ppvreserved : *mut *mut core::ffi::c_void) -> u32); - EapHostPeerQueryInteractiveUIInputFields(core::mem::transmute(dwversion), core::mem::transmute(dwflags), puicontextdata.len().try_into().unwrap(), core::mem::transmute(puicontextdata.as_ptr()), core::mem::transmute(peapinteractiveuidata), core::mem::transmute(ppeaperror), core::mem::transmute(ppvreserved)) + EapHostPeerQueryInteractiveUIInputFields(dwversion, dwflags, puicontextdata.len().try_into().unwrap(), core::mem::transmute(puicontextdata.as_ptr()), core::mem::transmute(peapinteractiveuidata), core::mem::transmute(ppeaperror), core::mem::transmute(ppvreserved)) } #[inline] pub unsafe fn EapHostPeerQueryUIBlobFromInteractiveUIInputFields(dwversion: u32, dwflags: u32, puicontextdata: &[u8], peapinteractiveuidata: *const EAP_INTERACTIVE_UI_DATA, pdwsizeofdatafrominteractiveui: *mut u32, ppdatafrominteractiveui: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR, ppvreserved: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerQueryUIBlobFromInteractiveUIInputFields(dwversion : u32, dwflags : u32, dwsizeofuicontextdata : u32, puicontextdata : *const u8, peapinteractiveuidata : *const EAP_INTERACTIVE_UI_DATA, pdwsizeofdatafrominteractiveui : *mut u32, ppdatafrominteractiveui : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR, ppvreserved : *mut *mut core::ffi::c_void) -> u32); - EapHostPeerQueryUIBlobFromInteractiveUIInputFields(core::mem::transmute(dwversion), core::mem::transmute(dwflags), puicontextdata.len().try_into().unwrap(), core::mem::transmute(puicontextdata.as_ptr()), core::mem::transmute(peapinteractiveuidata), core::mem::transmute(pdwsizeofdatafrominteractiveui), core::mem::transmute(ppdatafrominteractiveui), core::mem::transmute(ppeaperror), core::mem::transmute(ppvreserved)) + EapHostPeerQueryUIBlobFromInteractiveUIInputFields(dwversion, dwflags, puicontextdata.len().try_into().unwrap(), core::mem::transmute(puicontextdata.as_ptr()), peapinteractiveuidata, core::mem::transmute(pdwsizeofdatafrominteractiveui), core::mem::transmute(ppdatafrominteractiveui), core::mem::transmute(ppeaperror), core::mem::transmute(ppvreserved)) } #[inline] pub unsafe fn EapHostPeerQueryUserBlobFromCredentialInputFields(huserimpersonationtoken: super::super::Foundation::HANDLE, eapmethodtype: EAP_METHOD_TYPE, dwflags: u32, pbeapconndata: &[u8], peapconfiginputfieldarray: *const EAP_CONFIG_INPUT_FIELD_ARRAY, pdwuserblobsize: *mut u32, ppbuserblob: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappcfg.dll" "system" fn EapHostPeerQueryUserBlobFromCredentialInputFields(huserimpersonationtoken : super::super::Foundation:: HANDLE, eapmethodtype : EAP_METHOD_TYPE, dwflags : u32, dweapconndatasize : u32, pbeapconndata : *const u8, peapconfiginputfieldarray : *const EAP_CONFIG_INPUT_FIELD_ARRAY, pdwuserblobsize : *mut u32, ppbuserblob : *mut *mut u8, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerQueryUserBlobFromCredentialInputFields(core::mem::transmute(huserimpersonationtoken), core::mem::transmute(eapmethodtype), core::mem::transmute(dwflags), pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), core::mem::transmute(peapconfiginputfieldarray), core::mem::transmute(pdwuserblobsize), core::mem::transmute(ppbuserblob), core::mem::transmute(ppeaperror)) + EapHostPeerQueryUserBlobFromCredentialInputFields(huserimpersonationtoken, core::mem::transmute(eapmethodtype), dwflags, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), peapconfiginputfieldarray, core::mem::transmute(pdwuserblobsize), core::mem::transmute(ppbuserblob), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerSetResponseAttributes(sessionhandle: u32, pattribs: *const EAP_ATTRIBUTES, peapoutput: *mut EapHostPeerResponseAction, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerSetResponseAttributes(sessionhandle : u32, pattribs : *const EAP_ATTRIBUTES, peapoutput : *mut EapHostPeerResponseAction, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerSetResponseAttributes(core::mem::transmute(sessionhandle), core::mem::transmute(pattribs), core::mem::transmute(peapoutput), core::mem::transmute(ppeaperror)) + EapHostPeerSetResponseAttributes(sessionhandle, pattribs, core::mem::transmute(peapoutput), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerSetUIContext(sessionhandle: u32, dwsizeofuicontextdata: u32, puicontextdata: *const u8, peapoutput: *mut EapHostPeerResponseAction, ppeaperror: *mut *mut EAP_ERROR) -> u32 { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerSetUIContext(sessionhandle : u32, dwsizeofuicontextdata : u32, puicontextdata : *const u8, peapoutput : *mut EapHostPeerResponseAction, ppeaperror : *mut *mut EAP_ERROR) -> u32); - EapHostPeerSetUIContext(core::mem::transmute(sessionhandle), core::mem::transmute(dwsizeofuicontextdata), core::mem::transmute(puicontextdata), core::mem::transmute(peapoutput), core::mem::transmute(ppeaperror)) + EapHostPeerSetUIContext(sessionhandle, dwsizeofuicontextdata, puicontextdata, core::mem::transmute(peapoutput), core::mem::transmute(ppeaperror)) } #[inline] pub unsafe fn EapHostPeerUninitialize() { @@ -981,16 +966,16 @@ impl IAccountingProviderConfig { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Uninitialize(&self, uconnectionparam: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam)).ok() + (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self), uconnectionparam).ok() } pub unsafe fn Configure(&self, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam), core::mem::transmute(hwnd), core::mem::transmute(dwflags), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), uconnectionparam, hwnd, dwflags, ureserved1, ureserved2).ok() } pub unsafe fn Activate(&self, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), uconnectionparam, ureserved1, ureserved2).ok() } pub unsafe fn Deactivate(&self, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), uconnectionparam, ureserved1, ureserved2).ok() } } #[repr(C)] @@ -1062,16 +1047,16 @@ impl IAuthenticationProviderConfig { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Uninitialize(&self, uconnectionparam: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam)).ok() + (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self), uconnectionparam).ok() } pub unsafe fn Configure(&self, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam), core::mem::transmute(hwnd), core::mem::transmute(dwflags), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), uconnectionparam, hwnd, dwflags, ureserved1, ureserved2).ok() } pub unsafe fn Activate(&self, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), uconnectionparam, ureserved1, ureserved2).ok() } pub unsafe fn Deactivate(&self, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), core::mem::transmute(uconnectionparam), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), uconnectionparam, ureserved1, ureserved2).ok() } } #[repr(C)] @@ -1140,19 +1125,19 @@ impl IEAPProviderConfig { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), core::mem::transmute(dweaptypeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), dweaptypeid, &mut result__).map(|| result__) } pub unsafe fn Uninitialize(&self, dweaptypeid: u32, uconnectionparam: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(uconnectionparam)).ok() + (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam).ok() } pub unsafe fn ServerInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(uconnectionparam), core::mem::transmute(hwnd), core::mem::transmute(ureserved1), core::mem::transmute(ureserved2)).ok() + (windows_core::Interface::vtable(self).ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd, ureserved1, ureserved2).ok() } pub unsafe fn RouterInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: &[u8], ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(uconnectionparam), core::mem::transmute(hwndparent), core::mem::transmute(dwflags), core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(ppconnectiondataout), core::mem::transmute(pdwsizeofconnectiondataout)).ok() + (windows_core::Interface::vtable(self).RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent, dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(ppconnectiondataout), core::mem::transmute(pdwsizeofconnectiondataout)).ok() } pub unsafe fn RouterInvokeCredentialsUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: &[u8], puserdatain: &[u8], ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(uconnectionparam), core::mem::transmute(hwndparent), core::mem::transmute(dwflags), core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), core::mem::transmute(ppuserdataout), core::mem::transmute(pdwsizeofuserdataout)).ok() + (windows_core::Interface::vtable(self).RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent, dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), core::mem::transmute(ppuserdataout), core::mem::transmute(pdwsizeofuserdataout)).ok() } } #[repr(C)] @@ -1223,10 +1208,10 @@ impl core::ops::Deref for IEAPProviderConfig2 { windows_core::imp::interface_hierarchy!(IEAPProviderConfig2, windows_core::IUnknown, IEAPProviderConfig); impl IEAPProviderConfig2 { pub unsafe fn ServerInvokeConfigUI2(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ServerInvokeConfigUI2)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(uconnectionparam), core::mem::transmute(hwnd), core::mem::transmute(pconfigdatain), core::mem::transmute(dwsizeofconfigdatain), core::mem::transmute(ppconfigdataout), core::mem::transmute(pdwsizeofconfigdataout)).ok() + (windows_core::Interface::vtable(self).ServerInvokeConfigUI2)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd, pconfigdatain, dwsizeofconfigdatain, core::mem::transmute(ppconfigdataout), core::mem::transmute(pdwsizeofconfigdataout)).ok() } pub unsafe fn GetGlobalConfig(&self, dweaptypeid: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGlobalConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(ppconfigdataout), core::mem::transmute(pdwsizeofconfigdataout)).ok() + (windows_core::Interface::vtable(self).GetGlobalConfig)(windows_core::Interface::as_raw(self), dweaptypeid, core::mem::transmute(ppconfigdataout), core::mem::transmute(pdwsizeofconfigdataout)).ok() } } #[repr(C)] @@ -1270,7 +1255,7 @@ impl core::ops::Deref for IEAPProviderConfig3 { windows_core::imp::interface_hierarchy!(IEAPProviderConfig3, windows_core::IUnknown, IEAPProviderConfig, IEAPProviderConfig2); impl IEAPProviderConfig3 { pub unsafe fn ServerInvokeCertificateConfigUI(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).ServerInvokeCertificateConfigUI)(windows_core::Interface::as_raw(self), core::mem::transmute(dweaptypeid), core::mem::transmute(uconnectionparam), core::mem::transmute(hwnd), core::mem::transmute(pconfigdatain), core::mem::transmute(dwsizeofconfigdatain), core::mem::transmute(ppconfigdataout), core::mem::transmute(pdwsizeofconfigdataout), core::mem::transmute(ureserved)).ok() + (windows_core::Interface::vtable(self).ServerInvokeCertificateConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd, pconfigdatain, dwsizeofconfigdatain, core::mem::transmute(ppconfigdataout), core::mem::transmute(pdwsizeofconfigdataout), ureserved).ok() } } #[repr(C)] @@ -1305,14 +1290,14 @@ impl IRouterProtocolConfig { P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddProtocol)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), core::mem::transmute(dwtransportid), core::mem::transmute(dwprotocolid), core::mem::transmute(hwnd), core::mem::transmute(dwflags), prouter.param().abi(), core::mem::transmute(ureserved1)).ok() + (windows_core::Interface::vtable(self).AddProtocol)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), dwtransportid, dwprotocolid, hwnd, dwflags, prouter.param().abi(), ureserved1).ok() } pub unsafe fn RemoveProtocol(&self, pszmachinename: P0, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: P5, ureserved1: usize) -> windows_core::Result<()> where P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveProtocol)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), core::mem::transmute(dwtransportid), core::mem::transmute(dwprotocolid), core::mem::transmute(hwnd), core::mem::transmute(dwflags), prouter.param().abi(), core::mem::transmute(ureserved1)).ok() + (windows_core::Interface::vtable(self).RemoveProtocol)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), dwtransportid, dwprotocolid, hwnd, dwflags, prouter.param().abi(), ureserved1).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs index d41847a8a2..3abf448f13 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs @@ -33,7 +33,7 @@ where { windows_targets::link!("userenv.dll" "system" fn DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid : super:: PSID, pszrestrictedappcontainername : windows_core::PCWSTR, ppsidrestrictedappcontainersid : *mut super:: PSID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(core::mem::transmute(psidappcontainersid), pszrestrictedappcontainername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid, pszrestrictedappcontainername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetAppContainerFolderPath(pszappcontainersid: P0) -> windows_core::Result @@ -54,7 +54,7 @@ pub unsafe fn GetAppContainerNamedObjectPath(token: Option windows_core::Result { windows_targets::link!("userenv.dll" "system" fn GetAppContainerRegistryLocation(desiredaccess : u32, phappcontainerkey : *mut super::super::System::Registry:: HKEY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetAppContainerRegistryLocation(core::mem::transmute(desiredaccess), &mut result__).map(|| core::mem::transmute(result__)) + GetAppContainerRegistryLocation(desiredaccess, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn IsCrossIsolatedEnvironmentClipboardContent() -> windows_core::Result { @@ -78,7 +78,7 @@ pub unsafe fn IsProcessInIsolatedWindowsEnvironment() -> windows_core::Result windows_core::Result { windows_targets::link!("api-ms-win-security-isolatedcontainer-l1-1-1.dll" "system" fn IsProcessInWDAGContainer(reserved : *const core::ffi::c_void, isprocessinwdagcontainer : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - IsProcessInWDAGContainer(core::mem::transmute(reserved), &mut result__).map(|| core::mem::transmute(result__)) + IsProcessInWDAGContainer(reserved, &mut result__).map(|| core::mem::transmute(result__)) } windows_core::imp::define_interface!(IIsolatedAppLauncher, IIsolatedAppLauncher_Vtbl, 0xf686878f_7b42_4cc4_96fb_f4f3b6e3d24d); windows_core::imp::interface_hierarchy!(IIsolatedAppLauncher, windows_core::IUnknown); @@ -88,7 +88,7 @@ impl IIsolatedAppLauncher { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Launch)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), arguments.param().abi(), core::mem::transmute(telemetryparameters)).ok() + (windows_core::Interface::vtable(self).Launch)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), arguments.param().abi(), telemetryparameters).ok() } } #[repr(C)] @@ -135,7 +135,7 @@ impl IIsolatedProcessLauncher { (windows_core::Interface::vtable(self).GetContainerGuid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AllowSetForegroundAccess(&self, pid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllowSetForegroundAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(pid)).ok() + (windows_core::Interface::vtable(self).AllowSetForegroundAccess)(windows_core::Interface::as_raw(self), pid).ok() } pub unsafe fn IsContainerRunning(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -221,7 +221,7 @@ impl IIsolatedProcessLauncher2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchProcess2)(windows_core::Interface::as_raw(self), process.param().abi(), arguments.param().abi(), workingdirectory.param().abi(), core::mem::transmute(correlationguid)).ok() + (windows_core::Interface::vtable(self).LaunchProcess2)(windows_core::Interface::as_raw(self), process.param().abi(), arguments.param().abi(), workingdirectory.param().abi(), correlationguid).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs index 1f4d622d47..ba53d9f61b 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs @@ -5,7 +5,7 @@ where { windows_targets::link!("licenseprotection.dll" "system" fn RegisterLicenseKeyWithExpiration(licensekey : windows_core::PCWSTR, validityindays : u32, status : *mut LicenseProtectionStatus) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RegisterLicenseKeyWithExpiration(licensekey.param().abi(), core::mem::transmute(validityindays), &mut result__).map(|| core::mem::transmute(result__)) + RegisterLicenseKeyWithExpiration(licensekey.param().abi(), validityindays, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ValidateLicenseKeyProtection(licensekey: P0, notvalidbefore: *mut super::super::Foundation::FILETIME, notvalidafter: *mut super::super::Foundation::FILETIME, status: *mut LicenseProtectionStatus) -> windows_core::Result<()> diff --git a/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs index 9b1630294a..192415ff70 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs @@ -9,7 +9,7 @@ impl ITpmVirtualSmartCardManager { (windows_core::Interface::vtable(self).CreateVirtualSmartCard)( windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), - core::mem::transmute(badminalgid), + badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), @@ -105,7 +105,7 @@ impl ITpmVirtualSmartCardManager2 { (windows_core::Interface::vtable(self).CreateVirtualSmartCardWithPinPolicy)( windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), - core::mem::transmute(badminalgid), + badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), @@ -185,7 +185,7 @@ impl ITpmVirtualSmartCardManager3 { (windows_core::Interface::vtable(self).CreateVirtualSmartCardWithAttestation)( windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), - core::mem::transmute(badminalgid), + badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), @@ -196,7 +196,7 @@ impl ITpmVirtualSmartCardManager3 { pbpin.len().try_into().unwrap(), core::mem::transmute(pbpinpolicy.as_ptr()), pbpinpolicy.len().try_into().unwrap(), - core::mem::transmute(attestationtype), + attestationtype, fgenerate.into(), pstatuscallback.param().abi(), &mut result__, @@ -255,10 +255,10 @@ windows_core::imp::define_interface!(ITpmVirtualSmartCardManagerStatusCallback, windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManagerStatusCallback, windows_core::IUnknown); impl ITpmVirtualSmartCardManagerStatusCallback { pub unsafe fn ReportProgress(&self, status: TPMVSCMGR_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn ReportError(&self, error: TPMVSCMGR_ERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), error).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs index 234040d44c..a15fb0ca5e 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs @@ -6,7 +6,7 @@ pub unsafe fn OpenPersonalTrustDBDialog(hwndparent: Option, dwflags: u32, pvreserved: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn OpenPersonalTrustDBDialogEx(hwndparent : super::super::Foundation:: HWND, dwflags : u32, pvreserved : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - OpenPersonalTrustDBDialogEx(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + OpenPersonalTrustDBDialogEx(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] @@ -18,13 +18,13 @@ pub unsafe fn WTHelperCertCheckValidSignature(pprovdata: *mut CRYPT_PROVIDER_DAT #[inline] pub unsafe fn WTHelperCertIsSelfSigned(dwencoding: u32, pcert: *mut super::Cryptography::CERT_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn WTHelperCertIsSelfSigned(dwencoding : u32, pcert : *mut super::Cryptography:: CERT_INFO) -> super::super::Foundation:: BOOL); - WTHelperCertIsSelfSigned(core::mem::transmute(dwencoding), core::mem::transmute(pcert)) + WTHelperCertIsSelfSigned(dwencoding, core::mem::transmute(pcert)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn WTHelperGetProvCertFromChain(psgnr: *mut CRYPT_PROVIDER_SGNR, idxcert: u32) -> *mut CRYPT_PROVIDER_CERT { windows_targets::link!("wintrust.dll" "system" fn WTHelperGetProvCertFromChain(psgnr : *mut CRYPT_PROVIDER_SGNR, idxcert : u32) -> *mut CRYPT_PROVIDER_CERT); - WTHelperGetProvCertFromChain(core::mem::transmute(psgnr), core::mem::transmute(idxcert)) + WTHelperGetProvCertFromChain(core::mem::transmute(psgnr), idxcert) } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] @@ -36,29 +36,29 @@ pub unsafe fn WTHelperGetProvPrivateDataFromChain(pprovdata: *mut CRYPT_PROVIDER #[inline] pub unsafe fn WTHelperGetProvSignerFromChain(pprovdata: *mut CRYPT_PROVIDER_DATA, idxsigner: u32, fcountersigner: bool, idxcountersigner: u32) -> *mut CRYPT_PROVIDER_SGNR { windows_targets::link!("wintrust.dll" "system" fn WTHelperGetProvSignerFromChain(pprovdata : *mut CRYPT_PROVIDER_DATA, idxsigner : u32, fcountersigner : super::super::Foundation:: BOOL, idxcountersigner : u32) -> *mut CRYPT_PROVIDER_SGNR); - WTHelperGetProvSignerFromChain(core::mem::transmute(pprovdata), core::mem::transmute(idxsigner), fcountersigner.into(), core::mem::transmute(idxcountersigner)) + WTHelperGetProvSignerFromChain(core::mem::transmute(pprovdata), idxsigner, fcountersigner.into(), idxcountersigner) } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] pub unsafe fn WTHelperProvDataFromStateData(hstatedata: super::super::Foundation::HANDLE) -> *mut CRYPT_PROVIDER_DATA { windows_targets::link!("wintrust.dll" "system" fn WTHelperProvDataFromStateData(hstatedata : super::super::Foundation:: HANDLE) -> *mut CRYPT_PROVIDER_DATA); - WTHelperProvDataFromStateData(core::mem::transmute(hstatedata)) + WTHelperProvDataFromStateData(hstatedata) } #[inline] pub unsafe fn WinVerifyTrust(hwnd: super::super::Foundation::HWND, pgactionid: *mut windows_core::GUID, pwvtdata: *mut core::ffi::c_void) -> i32 { windows_targets::link!("wintrust.dll" "system" fn WinVerifyTrust(hwnd : super::super::Foundation:: HWND, pgactionid : *mut windows_core::GUID, pwvtdata : *mut core::ffi::c_void) -> i32); - WinVerifyTrust(core::mem::transmute(hwnd), core::mem::transmute(pgactionid), core::mem::transmute(pwvtdata)) + WinVerifyTrust(hwnd, core::mem::transmute(pgactionid), core::mem::transmute(pwvtdata)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn WinVerifyTrustEx(hwnd: super::super::Foundation::HWND, pgactionid: *mut windows_core::GUID, pwintrustdata: *mut WINTRUST_DATA) -> i32 { windows_targets::link!("wintrust.dll" "system" fn WinVerifyTrustEx(hwnd : super::super::Foundation:: HWND, pgactionid : *mut windows_core::GUID, pwintrustdata : *mut WINTRUST_DATA) -> i32); - WinVerifyTrustEx(core::mem::transmute(hwnd), core::mem::transmute(pgactionid), core::mem::transmute(pwintrustdata)) + WinVerifyTrustEx(hwnd, core::mem::transmute(pgactionid), core::mem::transmute(pwintrustdata)) } #[inline] pub unsafe fn WintrustAddActionID(pgactionid: *const windows_core::GUID, fdwflags: u32, psprovinfo: *const CRYPT_REGISTER_ACTIONID) -> windows_core::Result<()> { windows_targets::link!("wintrust.dll" "system" fn WintrustAddActionID(pgactionid : *const windows_core::GUID, fdwflags : u32, psprovinfo : *const CRYPT_REGISTER_ACTIONID) -> super::super::Foundation:: BOOL); - WintrustAddActionID(core::mem::transmute(pgactionid), core::mem::transmute(fdwflags), core::mem::transmute(psprovinfo)).ok() + WintrustAddActionID(pgactionid, fdwflags, psprovinfo).ok() } #[inline] pub unsafe fn WintrustAddDefaultForUsage(pszusageoid: P0, psdefusage: *const CRYPT_PROVIDER_REGDEFUSAGE) -> windows_core::Result<()> @@ -66,7 +66,7 @@ where P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn WintrustAddDefaultForUsage(pszusageoid : windows_core::PCSTR, psdefusage : *const CRYPT_PROVIDER_REGDEFUSAGE) -> super::super::Foundation:: BOOL); - WintrustAddDefaultForUsage(pszusageoid.param().abi(), core::mem::transmute(psdefusage)).ok() + WintrustAddDefaultForUsage(pszusageoid.param().abi(), psdefusage).ok() } #[inline] pub unsafe fn WintrustGetDefaultForUsage(dwaction: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION, pszusageoid: P1, psusage: *mut CRYPT_PROVIDER_DEFUSAGE) -> windows_core::Result<()> @@ -74,7 +74,7 @@ where P1: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn WintrustGetDefaultForUsage(dwaction : WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION, pszusageoid : windows_core::PCSTR, psusage : *mut CRYPT_PROVIDER_DEFUSAGE) -> super::super::Foundation:: BOOL); - WintrustGetDefaultForUsage(core::mem::transmute(dwaction), pszusageoid.param().abi(), core::mem::transmute(psusage)).ok() + WintrustGetDefaultForUsage(dwaction, pszusageoid.param().abi(), core::mem::transmute(psusage)).ok() } #[inline] pub unsafe fn WintrustGetRegPolicyFlags(pdwpolicyflags: *mut WINTRUST_POLICY_FLAGS) { @@ -90,7 +90,7 @@ pub unsafe fn WintrustLoadFunctionPointers(pgactionid: *mut windows_core::GUID, #[inline] pub unsafe fn WintrustRemoveActionID(pgactionid: *const windows_core::GUID) -> super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn WintrustRemoveActionID(pgactionid : *const windows_core::GUID) -> super::super::Foundation:: BOOL); - WintrustRemoveActionID(core::mem::transmute(pgactionid)) + WintrustRemoveActionID(pgactionid) } #[inline] pub unsafe fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes: bool) { @@ -100,7 +100,7 @@ pub unsafe fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes: bool) #[inline] pub unsafe fn WintrustSetRegPolicyFlags(dwpolicyflags: WINTRUST_POLICY_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("wintrust.dll" "system" fn WintrustSetRegPolicyFlags(dwpolicyflags : WINTRUST_POLICY_FLAGS) -> super::super::Foundation:: BOOL); - WintrustSetRegPolicyFlags(core::mem::transmute(dwpolicyflags)) + WintrustSetRegPolicyFlags(dwpolicyflags) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Security/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/mod.rs index f7deac1c95..5f357c0c20 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/mod.rs @@ -33,7 +33,7 @@ pub mod WinWlx; #[inline] pub unsafe fn AccessCheck(psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AccessCheck(psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AccessCheck(core::mem::transmute(psecuritydescriptor), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), core::mem::transmute(privilegeset.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegesetlength), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)).ok() + AccessCheck(psecuritydescriptor, clienttoken, desiredaccess, genericmapping, core::mem::transmute(privilegeset.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegesetlength), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)).ok() } #[inline] pub unsafe fn AccessCheckAndAuditAlarmA(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> @@ -43,7 +43,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AccessCheckAndAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename.param().abi(), objectname.param().abi(), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(pfgenerateonclose)).ok() + AccessCheckAndAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, desiredaccess, genericmapping, objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(pfgenerateonclose)).ok() } #[inline] pub unsafe fn AccessCheckAndAuditAlarmW(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL @@ -53,19 +53,19 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AccessCheckAndAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename.param().abi(), objectname.param().abi(), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(pfgenerateonclose)) + AccessCheckAndAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, desiredaccess, genericmapping, objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(pfgenerateonclose)) } #[inline] pub unsafe fn AccessCheckByType(psecuritydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByType(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); AccessCheckByType( - core::mem::transmute(psecuritydescriptor), + psecuritydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(clienttoken), - core::mem::transmute(desiredaccess), + clienttoken, + desiredaccess, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(genericmapping), + genericmapping, core::mem::transmute(privilegeset.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegesetlength), core::mem::transmute(grantedaccess), @@ -83,17 +83,17 @@ where windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); AccessCheckByTypeAndAuditAlarmA( subsystemname.param().abi(), - core::mem::transmute(handleid), + handleid, objecttypename.param().abi(), objectname.param().abi(), - core::mem::transmute(securitydescriptor), + securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), + desiredaccess, + audittype, + flags, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(genericmapping), + genericmapping, objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), @@ -111,17 +111,17 @@ where windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); AccessCheckByTypeAndAuditAlarmW( subsystemname.param().abi(), - core::mem::transmute(handleid), + handleid, objecttypename.param().abi(), objectname.param().abi(), - core::mem::transmute(securitydescriptor), + securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), + desiredaccess, + audittype, + flags, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(genericmapping), + genericmapping, objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), @@ -131,20 +131,7 @@ where #[inline] pub unsafe fn AccessCheckByTypeResultList(psecuritydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccesslist: *mut u32, accessstatuslist: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultList(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccesslist : *mut u32, accessstatuslist : *mut u32) -> super::Foundation:: BOOL); - AccessCheckByTypeResultList( - core::mem::transmute(psecuritydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(clienttoken), - core::mem::transmute(desiredaccess), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - core::mem::transmute(privilegeset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(privilegesetlength), - core::mem::transmute(grantedaccesslist), - core::mem::transmute(accessstatuslist), - ) - .ok() + AccessCheckByTypeResultList(psecuritydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), clienttoken, desiredaccess, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, core::mem::transmute(privilegeset.unwrap_or(core::mem::zeroed())), core::mem::transmute(privilegesetlength), core::mem::transmute(grantedaccesslist), core::mem::transmute(accessstatuslist)).ok() } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> @@ -154,25 +141,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AccessCheckByTypeResultListAndAuditAlarmA( - subsystemname.param().abi(), - core::mem::transmute(handleid), - objecttypename.param().abi(), - objectname.param().abi(), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - objectcreation.into(), - core::mem::transmute(grantedaccess), - core::mem::transmute(accessstatuslist), - core::mem::transmute(pfgenerateonclose), - ) - .ok() + AccessCheckByTypeResultListAndAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatuslist), core::mem::transmute(pfgenerateonclose)).ok() } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: P3, objectname: P4, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> @@ -182,26 +151,7 @@ where P4: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AccessCheckByTypeResultListAndAuditAlarmByHandleA( - subsystemname.param().abi(), - core::mem::transmute(handleid), - core::mem::transmute(clienttoken), - objecttypename.param().abi(), - objectname.param().abi(), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - objectcreation.into(), - core::mem::transmute(grantedaccess), - core::mem::transmute(accessstatuslist), - core::mem::transmute(pfgenerateonclose), - ) - .ok() + AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname.param().abi(), handleid, clienttoken, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatuslist), core::mem::transmute(pfgenerateonclose)).ok() } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: P3, objectname: P4, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL @@ -213,18 +163,18 @@ where windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccesslist : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); AccessCheckByTypeResultListAndAuditAlarmByHandleW( subsystemname.param().abi(), - core::mem::transmute(handleid), - core::mem::transmute(clienttoken), + handleid, + clienttoken, objecttypename.param().abi(), objectname.param().abi(), - core::mem::transmute(securitydescriptor), + securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), + desiredaccess, + audittype, + flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), + objecttypelistlength, + genericmapping, objectcreation.into(), core::mem::transmute(grantedaccesslist), core::mem::transmute(accessstatuslist), @@ -239,74 +189,57 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccesslist : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AccessCheckByTypeResultListAndAuditAlarmW( - subsystemname.param().abi(), - core::mem::transmute(handleid), - objecttypename.param().abi(), - objectname.param().abi(), - core::mem::transmute(securitydescriptor), - core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(desiredaccess), - core::mem::transmute(audittype), - core::mem::transmute(flags), - core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), - core::mem::transmute(objecttypelistlength), - core::mem::transmute(genericmapping), - objectcreation.into(), - core::mem::transmute(grantedaccesslist), - core::mem::transmute(accessstatuslist), - core::mem::transmute(pfgenerateonclose), - ) + AccessCheckByTypeResultListAndAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, core::mem::transmute(principalselfsid.unwrap_or(core::mem::zeroed())), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), objecttypelistlength, genericmapping, objectcreation.into(), core::mem::transmute(grantedaccesslist), core::mem::transmute(accessstatuslist), core::mem::transmute(pfgenerateonclose)) } #[inline] pub unsafe fn AddAccessAllowedAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, accessmask: u32, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); - AddAccessAllowedAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(accessmask), core::mem::transmute(psid)).ok() + AddAccessAllowedAce(core::mem::transmute(pacl), dwacerevision, accessmask, psid).ok() } #[inline] pub unsafe fn AddAccessAllowedAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); - AddAccessAllowedAceEx(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(psid)).ok() + AddAccessAllowedAceEx(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, psid).ok() } #[inline] pub unsafe fn AddAccessAllowedObjectAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: Option<*const windows_core::GUID>, inheritedobjecttypeguid: Option<*const windows_core::GUID>, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID) -> super::Foundation:: BOOL); - AddAccessAllowedObjectAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(objecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(psid)).ok() + AddAccessAllowedObjectAce(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(core::mem::zeroed())), psid).ok() } #[inline] pub unsafe fn AddAccessDeniedAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, accessmask: u32, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); - AddAccessDeniedAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(accessmask), core::mem::transmute(psid)).ok() + AddAccessDeniedAce(core::mem::transmute(pacl), dwacerevision, accessmask, psid).ok() } #[inline] pub unsafe fn AddAccessDeniedAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); - AddAccessDeniedAceEx(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(psid)).ok() + AddAccessDeniedAceEx(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, psid).ok() } #[inline] pub unsafe fn AddAccessDeniedObjectAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: Option<*const windows_core::GUID>, inheritedobjecttypeguid: Option<*const windows_core::GUID>, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID) -> super::Foundation:: BOOL); - AddAccessDeniedObjectAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(objecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(psid)).ok() + AddAccessDeniedObjectAce(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(core::mem::zeroed())), psid).ok() } #[inline] pub unsafe fn AddAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, dwstartingaceindex: u32, pacelist: *const core::ffi::c_void, nacelistlength: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwstartingaceindex : u32, pacelist : *const core::ffi::c_void, nacelistlength : u32) -> super::Foundation:: BOOL); - AddAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(dwstartingaceindex), core::mem::transmute(pacelist), core::mem::transmute(nacelistlength)).ok() + AddAce(core::mem::transmute(pacl), dwacerevision, dwstartingaceindex, pacelist, nacelistlength).ok() } #[inline] pub unsafe fn AddAuditAccessAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, dwaccessmask: u32, psid: PSID, bauditsuccess: bool, bauditfailure: bool) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwaccessmask : u32, psid : PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AddAuditAccessAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(dwaccessmask), core::mem::transmute(psid), bauditsuccess.into(), bauditfailure.into()).ok() + AddAuditAccessAce(core::mem::transmute(pacl), dwacerevision, dwaccessmask, psid, bauditsuccess.into(), bauditfailure.into()).ok() } #[inline] pub unsafe fn AddAuditAccessAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, dwaccessmask: u32, psid: PSID, bauditsuccess: bool, bauditfailure: bool) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, dwaccessmask : u32, psid : PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AddAuditAccessAceEx(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(dwaccessmask), core::mem::transmute(psid), bauditsuccess.into(), bauditfailure.into()).ok() + AddAuditAccessAceEx(core::mem::transmute(pacl), dwacerevision, aceflags, dwaccessmask, psid, bauditsuccess.into(), bauditfailure.into()).ok() } #[inline] pub unsafe fn AddAuditAccessObjectAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: Option<*const windows_core::GUID>, inheritedobjecttypeguid: Option<*const windows_core::GUID>, psid: PSID, bauditsuccess: bool, bauditfailure: bool) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AddAuditAccessObjectAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(objecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(psid), bauditsuccess.into(), bauditfailure.into()).ok() + AddAuditAccessObjectAce(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(core::mem::zeroed())), psid, bauditsuccess.into(), bauditfailure.into()).ok() } #[inline] pub unsafe fn AddConditionalAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, acetype: u8, accessmask: u32, psid: PSID, conditionstr: P6, returnlength: *mut u32) -> windows_core::Result<()> @@ -314,37 +247,37 @@ where P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddConditionalAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, acetype : u8, accessmask : u32, psid : PSID, conditionstr : windows_core::PCWSTR, returnlength : *mut u32) -> super::Foundation:: BOOL); - AddConditionalAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(acetype), core::mem::transmute(accessmask), core::mem::transmute(psid), conditionstr.param().abi(), core::mem::transmute(returnlength)).ok() + AddConditionalAce(core::mem::transmute(pacl), dwacerevision, aceflags, acetype, accessmask, psid, conditionstr.param().abi(), core::mem::transmute(returnlength)).ok() } #[inline] pub unsafe fn AddMandatoryAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, mandatorypolicy: u32, plabelsid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AddMandatoryAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, mandatorypolicy : u32, plabelsid : PSID) -> super::Foundation:: BOOL); - AddMandatoryAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(mandatorypolicy), core::mem::transmute(plabelsid)).ok() + AddMandatoryAce(core::mem::transmute(pacl), dwacerevision, aceflags, mandatorypolicy, plabelsid).ok() } #[inline] pub unsafe fn AddResourceAttributeAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID, pattributeinfo: *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AddResourceAttributeAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID, pattributeinfo : *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength : *mut u32) -> super::Foundation:: BOOL); - AddResourceAttributeAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(psid), core::mem::transmute(pattributeinfo), core::mem::transmute(preturnlength)).ok() + AddResourceAttributeAce(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, psid, pattributeinfo, core::mem::transmute(preturnlength)).ok() } #[inline] pub unsafe fn AddScopedPolicyIDAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AddScopedPolicyIDAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); - AddScopedPolicyIDAce(core::mem::transmute(pacl), core::mem::transmute(dwacerevision), core::mem::transmute(aceflags), core::mem::transmute(accessmask), core::mem::transmute(psid)).ok() + AddScopedPolicyIDAce(core::mem::transmute(pacl), dwacerevision, aceflags, accessmask, psid).ok() } #[inline] pub unsafe fn AdjustTokenGroups(tokenhandle: super::Foundation::HANDLE, resettodefault: bool, newstate: Option<*const TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut TOKEN_GROUPS>, returnlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AdjustTokenGroups(tokenhandle : super::Foundation:: HANDLE, resettodefault : super::Foundation:: BOOL, newstate : *const TOKEN_GROUPS, bufferlength : u32, previousstate : *mut TOKEN_GROUPS, returnlength : *mut u32) -> super::Foundation:: BOOL); - AdjustTokenGroups(core::mem::transmute(tokenhandle), resettodefault.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() + AdjustTokenGroups(tokenhandle, resettodefault.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AdjustTokenPrivileges(tokenhandle: super::Foundation::HANDLE, disableallprivileges: bool, newstate: Option<*const TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AdjustTokenPrivileges(tokenhandle : super::Foundation:: HANDLE, disableallprivileges : super::Foundation:: BOOL, newstate : *const TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::Foundation:: BOOL); - AdjustTokenPrivileges(core::mem::transmute(tokenhandle), disableallprivileges.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() + AdjustTokenPrivileges(tokenhandle, disableallprivileges.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AllocateAndInitializeSid(pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8, nsubauthority0: u32, nsubauthority1: u32, nsubauthority2: u32, nsubauthority3: u32, nsubauthority4: u32, nsubauthority5: u32, nsubauthority6: u32, nsubauthority7: u32, psid: *mut PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn AllocateAndInitializeSid(pidentifierauthority : *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount : u8, nsubauthority0 : u32, nsubauthority1 : u32, nsubauthority2 : u32, nsubauthority3 : u32, nsubauthority4 : u32, nsubauthority5 : u32, nsubauthority6 : u32, nsubauthority7 : u32, psid : *mut PSID) -> super::Foundation:: BOOL); - AllocateAndInitializeSid(core::mem::transmute(pidentifierauthority), core::mem::transmute(nsubauthoritycount), core::mem::transmute(nsubauthority0), core::mem::transmute(nsubauthority1), core::mem::transmute(nsubauthority2), core::mem::transmute(nsubauthority3), core::mem::transmute(nsubauthority4), core::mem::transmute(nsubauthority5), core::mem::transmute(nsubauthority6), core::mem::transmute(nsubauthority7), core::mem::transmute(psid)).ok() + AllocateAndInitializeSid(pidentifierauthority, nsubauthoritycount, nsubauthority0, nsubauthority1, nsubauthority2, nsubauthority3, nsubauthority4, nsubauthority5, nsubauthority6, nsubauthority7, core::mem::transmute(psid)).ok() } #[inline] pub unsafe fn AllocateLocallyUniqueId(luid: *mut super::Foundation::LUID) -> windows_core::Result<()> { @@ -354,70 +287,59 @@ pub unsafe fn AllocateLocallyUniqueId(luid: *mut super::Foundation::LUID) -> win #[inline] pub unsafe fn AreAllAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn AreAllAccessesGranted(grantedaccess : u32, desiredaccess : u32) -> super::Foundation:: BOOL); - AreAllAccessesGranted(core::mem::transmute(grantedaccess), core::mem::transmute(desiredaccess)) + AreAllAccessesGranted(grantedaccess, desiredaccess) } #[inline] pub unsafe fn AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn AreAnyAccessesGranted(grantedaccess : u32, desiredaccess : u32) -> super::Foundation:: BOOL); - AreAnyAccessesGranted(core::mem::transmute(grantedaccess), core::mem::transmute(desiredaccess)) + AreAnyAccessesGranted(grantedaccess, desiredaccess) } #[inline] pub unsafe fn CheckTokenCapability(tokenhandle: Option, capabilitysidtocheck: PSID, hascapability: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CheckTokenCapability(tokenhandle : super::Foundation:: HANDLE, capabilitysidtocheck : PSID, hascapability : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - CheckTokenCapability(core::mem::transmute(tokenhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(capabilitysidtocheck), core::mem::transmute(hascapability)).ok() + CheckTokenCapability(core::mem::transmute(tokenhandle.unwrap_or(core::mem::zeroed())), capabilitysidtocheck, core::mem::transmute(hascapability)).ok() } #[inline] pub unsafe fn CheckTokenMembership(tokenhandle: Option, sidtocheck: PSID, ismember: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CheckTokenMembership(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - CheckTokenMembership(core::mem::transmute(tokenhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidtocheck), core::mem::transmute(ismember)).ok() + CheckTokenMembership(core::mem::transmute(tokenhandle.unwrap_or(core::mem::zeroed())), sidtocheck, core::mem::transmute(ismember)).ok() } #[inline] pub unsafe fn CheckTokenMembershipEx(tokenhandle: Option, sidtocheck: PSID, flags: u32, ismember: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CheckTokenMembershipEx(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, flags : u32, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - CheckTokenMembershipEx(core::mem::transmute(tokenhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidtocheck), core::mem::transmute(flags), core::mem::transmute(ismember)).ok() + CheckTokenMembershipEx(core::mem::transmute(tokenhandle.unwrap_or(core::mem::zeroed())), sidtocheck, flags, core::mem::transmute(ismember)).ok() } #[inline] pub unsafe fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor: Option, currentsecuritydescriptor: PSECURITY_DESCRIPTOR, newsecuritydescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: bool, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : bool, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); - ConvertToAutoInheritPrivateObjectSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(currentsecuritydescriptor), core::mem::transmute(newsecuritydescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(isdirectoryobject), core::mem::transmute(genericmapping)).ok() + ConvertToAutoInheritPrivateObjectSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), currentsecuritydescriptor, core::mem::transmute(newsecuritydescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), isdirectoryobject, genericmapping).ok() } #[inline] pub unsafe fn CopySid(ndestinationsidlength: u32, pdestinationsid: PSID, psourcesid: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CopySid(ndestinationsidlength : u32, pdestinationsid : PSID, psourcesid : PSID) -> super::Foundation:: BOOL); - CopySid(core::mem::transmute(ndestinationsidlength), core::mem::transmute(pdestinationsid), core::mem::transmute(psourcesid)).ok() + CopySid(ndestinationsidlength, core::mem::transmute(pdestinationsid), psourcesid).ok() } #[inline] pub unsafe fn CreatePrivateObjectSecurity(parentdescriptor: Option, creatordescriptor: Option, newdescriptor: *mut PSECURITY_DESCRIPTOR, isdirectoryobject: bool, token: Option, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, isdirectoryobject : super::Foundation:: BOOL, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); - CreatePrivateObjectSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(creatordescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), isdirectoryobject.into(), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping)).ok() + CreatePrivateObjectSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(creatordescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), isdirectoryobject.into(), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), genericmapping).ok() } #[inline] pub unsafe fn CreatePrivateObjectSecurityEx(parentdescriptor: Option, creatordescriptor: Option, newdescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, iscontainerobject: bool, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: Option, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityEx(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, iscontainerobject : super::Foundation:: BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); - CreatePrivateObjectSecurityEx(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(creatordescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), iscontainerobject.into(), core::mem::transmute(autoinheritflags), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping)).ok() + CreatePrivateObjectSecurityEx(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(creatordescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), iscontainerobject.into(), autoinheritflags, core::mem::transmute(token.unwrap_or(core::mem::zeroed())), genericmapping).ok() } #[inline] pub unsafe fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor: Option, creatordescriptor: Option, newdescriptor: *mut PSECURITY_DESCRIPTOR, objecttypes: Option<&[*const windows_core::GUID]>, iscontainerobject: bool, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: Option, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttypes : *const *const windows_core::GUID, guidcount : u32, iscontainerobject : super::Foundation:: BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); - CreatePrivateObjectSecurityWithMultipleInheritance( - core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), - core::mem::transmute(creatordescriptor.unwrap_or(core::mem::zeroed())), - core::mem::transmute(newdescriptor), - core::mem::transmute(objecttypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - objecttypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - iscontainerobject.into(), - core::mem::transmute(autoinheritflags), - core::mem::transmute(token.unwrap_or(core::mem::zeroed())), - core::mem::transmute(genericmapping), - ) - .ok() + CreatePrivateObjectSecurityWithMultipleInheritance(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(creatordescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), iscontainerobject.into(), autoinheritflags, core::mem::transmute(token.unwrap_or(core::mem::zeroed())), genericmapping).ok() } #[inline] pub unsafe fn CreateRestrictedToken(existingtokenhandle: super::Foundation::HANDLE, flags: CREATE_RESTRICTED_TOKEN_FLAGS, sidstodisable: Option<&[SID_AND_ATTRIBUTES]>, privilegestodelete: Option<&[LUID_AND_ATTRIBUTES]>, sidstorestrict: Option<&[SID_AND_ATTRIBUTES]>, newtokenhandle: *mut super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CreateRestrictedToken(existingtokenhandle : super::Foundation:: HANDLE, flags : CREATE_RESTRICTED_TOKEN_FLAGS, disablesidcount : u32, sidstodisable : *const SID_AND_ATTRIBUTES, deleteprivilegecount : u32, privilegestodelete : *const LUID_AND_ATTRIBUTES, restrictedsidcount : u32, sidstorestrict : *const SID_AND_ATTRIBUTES, newtokenhandle : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); CreateRestrictedToken( - core::mem::transmute(existingtokenhandle), - core::mem::transmute(flags), + existingtokenhandle, + flags, sidstodisable.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sidstodisable.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), privilegestodelete.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -431,12 +353,12 @@ pub unsafe fn CreateRestrictedToken(existingtokenhandle: super::Foundation::HAND #[inline] pub unsafe fn CreateWellKnownSid(wellknownsidtype: WELL_KNOWN_SID_TYPE, domainsid: Option, psid: Option, cbsid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CreateWellKnownSid(wellknownsidtype : WELL_KNOWN_SID_TYPE, domainsid : PSID, psid : PSID, cbsid : *mut u32) -> super::Foundation:: BOOL); - CreateWellKnownSid(core::mem::transmute(wellknownsidtype), core::mem::transmute(domainsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(psid.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsid)).ok() + CreateWellKnownSid(wellknownsidtype, core::mem::transmute(domainsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(psid.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsid)).ok() } #[inline] pub unsafe fn DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn DeleteAce(pacl : *mut ACL, dwaceindex : u32) -> super::Foundation:: BOOL); - DeleteAce(core::mem::transmute(pacl), core::mem::transmute(dwaceindex)).ok() + DeleteAce(core::mem::transmute(pacl), dwaceindex).ok() } #[inline] pub unsafe fn DeriveCapabilitySidsFromName(capname: P0, capabilitygroupsids: *mut *mut PSID, capabilitygroupsidcount: *mut u32, capabilitysids: *mut *mut PSID, capabilitysidcount: *mut u32) -> windows_core::Result<()> @@ -449,62 +371,62 @@ where #[inline] pub unsafe fn DestroyPrivateObjectSecurity(objectdescriptor: *const PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn DestroyPrivateObjectSecurity(objectdescriptor : *const PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - DestroyPrivateObjectSecurity(core::mem::transmute(objectdescriptor)).ok() + DestroyPrivateObjectSecurity(objectdescriptor).ok() } #[inline] pub unsafe fn DuplicateToken(existingtokenhandle: super::Foundation::HANDLE, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle: *mut super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn DuplicateToken(existingtokenhandle : super::Foundation:: HANDLE, impersonationlevel : SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - DuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(impersonationlevel), core::mem::transmute(duplicatetokenhandle)).ok() + DuplicateToken(existingtokenhandle, impersonationlevel, core::mem::transmute(duplicatetokenhandle)).ok() } #[inline] pub unsafe fn DuplicateTokenEx(hexistingtoken: super::Foundation::HANDLE, dwdesiredaccess: TOKEN_ACCESS_MASK, lptokenattributes: Option<*const SECURITY_ATTRIBUTES>, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, tokentype: TOKEN_TYPE, phnewtoken: *mut super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn DuplicateTokenEx(hexistingtoken : super::Foundation:: HANDLE, dwdesiredaccess : TOKEN_ACCESS_MASK, lptokenattributes : *const SECURITY_ATTRIBUTES, impersonationlevel : SECURITY_IMPERSONATION_LEVEL, tokentype : TOKEN_TYPE, phnewtoken : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - DuplicateTokenEx(core::mem::transmute(hexistingtoken), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lptokenattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(impersonationlevel), core::mem::transmute(tokentype), core::mem::transmute(phnewtoken)).ok() + DuplicateTokenEx(hexistingtoken, dwdesiredaccess, core::mem::transmute(lptokenattributes.unwrap_or(core::mem::zeroed())), impersonationlevel, tokentype, core::mem::transmute(phnewtoken)).ok() } #[inline] pub unsafe fn EqualDomainSid(psid1: PSID, psid2: PSID, pfequal: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EqualDomainSid(psid1 : PSID, psid2 : PSID, pfequal : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - EqualDomainSid(core::mem::transmute(psid1), core::mem::transmute(psid2), core::mem::transmute(pfequal)).ok() + EqualDomainSid(psid1, psid2, core::mem::transmute(pfequal)).ok() } #[inline] pub unsafe fn EqualPrefixSid(psid1: PSID, psid2: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EqualPrefixSid(psid1 : PSID, psid2 : PSID) -> super::Foundation:: BOOL); - EqualPrefixSid(core::mem::transmute(psid1), core::mem::transmute(psid2)).ok() + EqualPrefixSid(psid1, psid2).ok() } #[inline] pub unsafe fn EqualSid(psid1: PSID, psid2: PSID) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EqualSid(psid1 : PSID, psid2 : PSID) -> super::Foundation:: BOOL); - EqualSid(core::mem::transmute(psid1), core::mem::transmute(psid2)).ok() + EqualSid(psid1, psid2).ok() } #[inline] pub unsafe fn FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn FindFirstFreeAce(pacl : *const ACL, pace : *mut *mut core::ffi::c_void) -> super::Foundation:: BOOL); - FindFirstFreeAce(core::mem::transmute(pacl), core::mem::transmute(pace)).ok() + FindFirstFreeAce(pacl, core::mem::transmute(pace)).ok() } #[inline] pub unsafe fn FreeSid(psid: PSID) -> *mut core::ffi::c_void { windows_targets::link!("advapi32.dll" "system" fn FreeSid(psid : PSID) -> *mut core::ffi::c_void); - FreeSid(core::mem::transmute(psid)) + FreeSid(psid) } #[inline] pub unsafe fn GetAce(pacl: *const ACL, dwaceindex: u32, pace: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetAce(pacl : *const ACL, dwaceindex : u32, pace : *mut *mut core::ffi::c_void) -> super::Foundation:: BOOL); - GetAce(core::mem::transmute(pacl), core::mem::transmute(dwaceindex), core::mem::transmute(pace)).ok() + GetAce(pacl, dwaceindex, core::mem::transmute(pace)).ok() } #[inline] pub unsafe fn GetAclInformation(pacl: *const ACL, paclinformation: *mut core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetAclInformation(pacl : *const ACL, paclinformation : *mut core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> super::Foundation:: BOOL); - GetAclInformation(core::mem::transmute(pacl), core::mem::transmute(paclinformation), core::mem::transmute(naclinformationlength), core::mem::transmute(dwaclinformationclass)).ok() + GetAclInformation(pacl, core::mem::transmute(paclinformation), naclinformationlength, dwaclinformationclass).ok() } #[inline] pub unsafe fn GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcontainerace: *mut *mut core::ffi::c_void, appcontaineraceindex: Option<*mut u32>) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetAppContainerAce(acl : *const ACL, startingaceindex : u32, appcontainerace : *mut *mut core::ffi::c_void, appcontaineraceindex : *mut u32) -> super::Foundation:: BOOL); - GetAppContainerAce(core::mem::transmute(acl), core::mem::transmute(startingaceindex), core::mem::transmute(appcontainerace), core::mem::transmute(appcontaineraceindex.unwrap_or(core::mem::zeroed()))) + GetAppContainerAce(acl, startingaceindex, core::mem::transmute(appcontainerace), core::mem::transmute(appcontaineraceindex.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCachedSigningLevel(file: super::Foundation::HANDLE, flags: *mut u32, signinglevel: *mut u32, thumbprint: Option<*mut u8>, thumbprintsize: Option<*mut u32>, thumbprintalgorithm: Option<*mut u32>) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetCachedSigningLevel(file : super::Foundation:: HANDLE, flags : *mut u32, signinglevel : *mut u32, thumbprint : *mut u8, thumbprintsize : *mut u32, thumbprintalgorithm : *mut u32) -> super::Foundation:: BOOL); - GetCachedSigningLevel(core::mem::transmute(file), core::mem::transmute(flags), core::mem::transmute(signinglevel), core::mem::transmute(thumbprint.unwrap_or(core::mem::zeroed())), core::mem::transmute(thumbprintsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(thumbprintalgorithm.unwrap_or(core::mem::zeroed()))) + GetCachedSigningLevel(file, core::mem::transmute(flags), core::mem::transmute(signinglevel), core::mem::transmute(thumbprint.unwrap_or(core::mem::zeroed())), core::mem::transmute(thumbprintsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(thumbprintalgorithm.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetFileSecurityA(lpfilename: P0, requestedinformation: u32, psecuritydescriptor: Option, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> @@ -512,7 +434,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetFileSecurityA(lpfilename : windows_core::PCSTR, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); - GetFileSecurityA(lpfilename.param().abi(), core::mem::transmute(requestedinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)).ok() + GetFileSecurityA(lpfilename.param().abi(), requestedinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded)).ok() } #[inline] pub unsafe fn GetFileSecurityW(lpfilename: P0, requestedinformation: u32, psecuritydescriptor: Option, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL @@ -520,12 +442,12 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetFileSecurityW(lpfilename : windows_core::PCWSTR, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); - GetFileSecurityW(lpfilename.param().abi(), core::mem::transmute(requestedinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)) + GetFileSecurityW(lpfilename.param().abi(), requestedinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded)) } #[inline] pub unsafe fn GetKernelObjectSecurity(handle: super::Foundation::HANDLE, requestedinformation: u32, psecuritydescriptor: Option, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetKernelObjectSecurity(handle : super::Foundation:: HANDLE, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); - GetKernelObjectSecurity(core::mem::transmute(handle), core::mem::transmute(requestedinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)).ok() + GetKernelObjectSecurity(handle, requestedinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded)).ok() } #[inline] pub unsafe fn GetLengthSid(psid: PSID) -> u32 { @@ -535,132 +457,132 @@ pub unsafe fn GetLengthSid(psid: PSID) -> u32 { #[inline] pub unsafe fn GetPrivateObjectSecurity(objectdescriptor: PSECURITY_DESCRIPTOR, securityinformation: OBJECT_SECURITY_INFORMATION, resultantdescriptor: Option, descriptorlength: u32, returnlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetPrivateObjectSecurity(objectdescriptor : PSECURITY_DESCRIPTOR, securityinformation : OBJECT_SECURITY_INFORMATION, resultantdescriptor : PSECURITY_DESCRIPTOR, descriptorlength : u32, returnlength : *mut u32) -> super::Foundation:: BOOL); - GetPrivateObjectSecurity(core::mem::transmute(objectdescriptor), core::mem::transmute(securityinformation), core::mem::transmute(resultantdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(descriptorlength), core::mem::transmute(returnlength)).ok() + GetPrivateObjectSecurity(objectdescriptor, securityinformation, core::mem::transmute(resultantdescriptor.unwrap_or(core::mem::zeroed())), descriptorlength, core::mem::transmute(returnlength)).ok() } #[inline] pub unsafe fn GetSecurityDescriptorControl(psecuritydescriptor: PSECURITY_DESCRIPTOR, pcontrol: *mut u16, lpdwrevision: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, pcontrol : *mut u16, lpdwrevision : *mut u32) -> super::Foundation:: BOOL); - GetSecurityDescriptorControl(core::mem::transmute(psecuritydescriptor), core::mem::transmute(pcontrol), core::mem::transmute(lpdwrevision)).ok() + GetSecurityDescriptorControl(psecuritydescriptor, core::mem::transmute(pcontrol), core::mem::transmute(lpdwrevision)).ok() } #[inline] pub unsafe fn GetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbdaclpresent: *mut super::Foundation::BOOL, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorDacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, lpbdaclpresent : *mut super::Foundation:: BOOL, pdacl : *mut *mut ACL, lpbdacldefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - GetSecurityDescriptorDacl(core::mem::transmute(psecuritydescriptor), core::mem::transmute(lpbdaclpresent), core::mem::transmute(pdacl), core::mem::transmute(lpbdacldefaulted)).ok() + GetSecurityDescriptorDacl(psecuritydescriptor, core::mem::transmute(lpbdaclpresent), core::mem::transmute(pdacl), core::mem::transmute(lpbdacldefaulted)).ok() } #[inline] pub unsafe fn GetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: *mut PSID, lpbgroupdefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : *mut PSID, lpbgroupdefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - GetSecurityDescriptorGroup(core::mem::transmute(psecuritydescriptor), core::mem::transmute(pgroup), core::mem::transmute(lpbgroupdefaulted)).ok() + GetSecurityDescriptorGroup(psecuritydescriptor, core::mem::transmute(pgroup), core::mem::transmute(lpbgroupdefaulted)).ok() } #[inline] pub unsafe fn GetSecurityDescriptorLength(psecuritydescriptor: PSECURITY_DESCRIPTOR) -> u32 { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorLength(psecuritydescriptor : PSECURITY_DESCRIPTOR) -> u32); - GetSecurityDescriptorLength(core::mem::transmute(psecuritydescriptor)) + GetSecurityDescriptorLength(psecuritydescriptor) } #[inline] pub unsafe fn GetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: *mut PSID, lpbownerdefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : *mut PSID, lpbownerdefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - GetSecurityDescriptorOwner(core::mem::transmute(psecuritydescriptor), core::mem::transmute(powner), core::mem::transmute(lpbownerdefaulted)).ok() + GetSecurityDescriptorOwner(psecuritydescriptor, core::mem::transmute(powner), core::mem::transmute(lpbownerdefaulted)).ok() } #[inline] pub unsafe fn GetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCRIPTOR, rmcontrol: *mut u8) -> u32 { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorRMControl(securitydescriptor : PSECURITY_DESCRIPTOR, rmcontrol : *mut u8) -> u32); - GetSecurityDescriptorRMControl(core::mem::transmute(securitydescriptor), core::mem::transmute(rmcontrol)) + GetSecurityDescriptorRMControl(securitydescriptor, core::mem::transmute(rmcontrol)) } #[inline] pub unsafe fn GetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbsaclpresent: *mut super::Foundation::BOOL, psacl: *mut *mut ACL, lpbsacldefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorSacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, lpbsaclpresent : *mut super::Foundation:: BOOL, psacl : *mut *mut ACL, lpbsacldefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - GetSecurityDescriptorSacl(core::mem::transmute(psecuritydescriptor), core::mem::transmute(lpbsaclpresent), core::mem::transmute(psacl), core::mem::transmute(lpbsacldefaulted)).ok() + GetSecurityDescriptorSacl(psecuritydescriptor, core::mem::transmute(lpbsaclpresent), core::mem::transmute(psacl), core::mem::transmute(lpbsacldefaulted)).ok() } #[inline] pub unsafe fn GetSidIdentifierAuthority(psid: PSID) -> *mut SID_IDENTIFIER_AUTHORITY { windows_targets::link!("advapi32.dll" "system" fn GetSidIdentifierAuthority(psid : PSID) -> *mut SID_IDENTIFIER_AUTHORITY); - GetSidIdentifierAuthority(core::mem::transmute(psid)) + GetSidIdentifierAuthority(psid) } #[inline] pub unsafe fn GetSidLengthRequired(nsubauthoritycount: u8) -> u32 { windows_targets::link!("advapi32.dll" "system" fn GetSidLengthRequired(nsubauthoritycount : u8) -> u32); - GetSidLengthRequired(core::mem::transmute(nsubauthoritycount)) + GetSidLengthRequired(nsubauthoritycount) } #[inline] pub unsafe fn GetSidSubAuthority(psid: PSID, nsubauthority: u32) -> *mut u32 { windows_targets::link!("advapi32.dll" "system" fn GetSidSubAuthority(psid : PSID, nsubauthority : u32) -> *mut u32); - GetSidSubAuthority(core::mem::transmute(psid), core::mem::transmute(nsubauthority)) + GetSidSubAuthority(psid, nsubauthority) } #[inline] pub unsafe fn GetSidSubAuthorityCount(psid: PSID) -> *mut u8 { windows_targets::link!("advapi32.dll" "system" fn GetSidSubAuthorityCount(psid : PSID) -> *mut u8); - GetSidSubAuthorityCount(core::mem::transmute(psid)) + GetSidSubAuthorityCount(psid) } #[inline] pub unsafe fn GetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: Option<*mut core::ffi::c_void>, tokeninformationlength: u32, returnlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetTokenInformation(tokenhandle : super::Foundation:: HANDLE, tokeninformationclass : TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::Foundation:: BOOL); - GetTokenInformation(core::mem::transmute(tokenhandle), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(tokeninformationlength), core::mem::transmute(returnlength)).ok() + GetTokenInformation(tokenhandle, tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(core::mem::zeroed())), tokeninformationlength, core::mem::transmute(returnlength)).ok() } #[inline] pub unsafe fn GetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const u32, psid: Option, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const u32, psid : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); - GetUserObjectSecurity(core::mem::transmute(hobj), core::mem::transmute(psirequested), core::mem::transmute(psid.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)).ok() + GetUserObjectSecurity(hobj, psirequested, core::mem::transmute(psid.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded)).ok() } #[inline] pub unsafe fn GetWindowsAccountDomainSid(psid: PSID, pdomainsid: Option, cbdomainsid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetWindowsAccountDomainSid(psid : PSID, pdomainsid : PSID, cbdomainsid : *mut u32) -> super::Foundation:: BOOL); - GetWindowsAccountDomainSid(core::mem::transmute(psid), core::mem::transmute(pdomainsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdomainsid)).ok() + GetWindowsAccountDomainSid(psid, core::mem::transmute(pdomainsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdomainsid)).ok() } #[inline] pub unsafe fn ImpersonateAnonymousToken(threadhandle: super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ImpersonateAnonymousToken(threadhandle : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - ImpersonateAnonymousToken(core::mem::transmute(threadhandle)).ok() + ImpersonateAnonymousToken(threadhandle).ok() } #[inline] pub unsafe fn ImpersonateLoggedOnUser(htoken: super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ImpersonateLoggedOnUser(htoken : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - ImpersonateLoggedOnUser(core::mem::transmute(htoken)).ok() + ImpersonateLoggedOnUser(htoken).ok() } #[inline] pub unsafe fn ImpersonateSelf(impersonationlevel: SECURITY_IMPERSONATION_LEVEL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ImpersonateSelf(impersonationlevel : SECURITY_IMPERSONATION_LEVEL) -> super::Foundation:: BOOL); - ImpersonateSelf(core::mem::transmute(impersonationlevel)).ok() + ImpersonateSelf(impersonationlevel).ok() } #[inline] pub unsafe fn InitializeAcl(pacl: *mut ACL, nacllength: u32, dwaclrevision: ACE_REVISION) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn InitializeAcl(pacl : *mut ACL, nacllength : u32, dwaclrevision : ACE_REVISION) -> super::Foundation:: BOOL); - InitializeAcl(core::mem::transmute(pacl), core::mem::transmute(nacllength), core::mem::transmute(dwaclrevision)).ok() + InitializeAcl(core::mem::transmute(pacl), nacllength, dwaclrevision).ok() } #[inline] pub unsafe fn InitializeSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR, dwrevision: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn InitializeSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR, dwrevision : u32) -> super::Foundation:: BOOL); - InitializeSecurityDescriptor(core::mem::transmute(psecuritydescriptor), core::mem::transmute(dwrevision)).ok() + InitializeSecurityDescriptor(core::mem::transmute(psecuritydescriptor), dwrevision).ok() } #[inline] pub unsafe fn InitializeSid(sid: PSID, pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn InitializeSid(sid : PSID, pidentifierauthority : *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount : u8) -> super::Foundation:: BOOL); - InitializeSid(core::mem::transmute(sid), core::mem::transmute(pidentifierauthority), core::mem::transmute(nsubauthoritycount)).ok() + InitializeSid(core::mem::transmute(sid), pidentifierauthority, nsubauthoritycount).ok() } #[inline] pub unsafe fn IsTokenRestricted(tokenhandle: super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn IsTokenRestricted(tokenhandle : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - IsTokenRestricted(core::mem::transmute(tokenhandle)).ok() + IsTokenRestricted(tokenhandle).ok() } #[inline] pub unsafe fn IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn IsValidAcl(pacl : *const ACL) -> super::Foundation:: BOOL); - IsValidAcl(core::mem::transmute(pacl)) + IsValidAcl(pacl) } #[inline] pub unsafe fn IsValidSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn IsValidSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - IsValidSecurityDescriptor(core::mem::transmute(psecuritydescriptor)) + IsValidSecurityDescriptor(psecuritydescriptor) } #[inline] pub unsafe fn IsValidSid(psid: PSID) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn IsValidSid(psid : PSID) -> super::Foundation:: BOOL); - IsValidSid(core::mem::transmute(psid)) + IsValidSid(psid) } #[inline] pub unsafe fn IsWellKnownSid(psid: PSID, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn IsWellKnownSid(psid : PSID, wellknownsidtype : WELL_KNOWN_SID_TYPE) -> super::Foundation:: BOOL); - IsWellKnownSid(core::mem::transmute(psid), core::mem::transmute(wellknownsidtype)) + IsWellKnownSid(psid, wellknownsidtype) } #[inline] pub unsafe fn LogonUserA(lpszusername: P0, lpszdomain: P1, lpszpassword: P2, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> windows_core::Result<()> @@ -670,7 +592,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LogonUserA(lpszusername : windows_core::PCSTR, lpszdomain : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - LogonUserA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), core::mem::transmute(dwlogontype), core::mem::transmute(dwlogonprovider), core::mem::transmute(phtoken)).ok() + LogonUserA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken)).ok() } #[inline] pub unsafe fn LogonUserExA(lpszusername: P0, lpszdomain: P1, lpszpassword: P2, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: Option<*mut super::Foundation::HANDLE>, pplogonsid: Option<*mut PSID>, ppprofilebuffer: Option<*mut *mut core::ffi::c_void>, pdwprofilelength: Option<*mut u32>, pquotalimits: Option<*mut QUOTA_LIMITS>) -> windows_core::Result<()> @@ -680,19 +602,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LogonUserExA(lpszusername : windows_core::PCSTR, lpszdomain : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE, pplogonsid : *mut PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> super::Foundation:: BOOL); - LogonUserExA( - lpszusername.param().abi(), - lpszdomain.param().abi(), - lpszpassword.param().abi(), - core::mem::transmute(dwlogontype), - core::mem::transmute(dwlogonprovider), - core::mem::transmute(phtoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pplogonsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppprofilebuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdwprofilelength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pquotalimits.unwrap_or(core::mem::zeroed())), - ) - .ok() + LogonUserExA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplogonsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppprofilebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprofilelength.unwrap_or(core::mem::zeroed())), core::mem::transmute(pquotalimits.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn LogonUserExW(lpszusername: P0, lpszdomain: P1, lpszpassword: P2, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: Option<*mut super::Foundation::HANDLE>, pplogonsid: Option<*mut PSID>, ppprofilebuffer: Option<*mut *mut core::ffi::c_void>, pdwprofilelength: Option<*mut u32>, pquotalimits: Option<*mut QUOTA_LIMITS>) -> windows_core::Result<()> @@ -702,19 +612,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LogonUserExW(lpszusername : windows_core::PCWSTR, lpszdomain : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE, pplogonsid : *mut PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> super::Foundation:: BOOL); - LogonUserExW( - lpszusername.param().abi(), - lpszdomain.param().abi(), - lpszpassword.param().abi(), - core::mem::transmute(dwlogontype), - core::mem::transmute(dwlogonprovider), - core::mem::transmute(phtoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pplogonsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(ppprofilebuffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pdwprofilelength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pquotalimits.unwrap_or(core::mem::zeroed())), - ) - .ok() + LogonUserExW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(pplogonsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppprofilebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprofilelength.unwrap_or(core::mem::zeroed())), core::mem::transmute(pquotalimits.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn LogonUserW(lpszusername: P0, lpszdomain: P1, lpszpassword: P2, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> windows_core::Result<()> @@ -724,7 +622,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LogonUserW(lpszusername : windows_core::PCWSTR, lpszdomain : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - LogonUserW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), core::mem::transmute(dwlogontype), core::mem::transmute(dwlogonprovider), core::mem::transmute(phtoken)).ok() + LogonUserW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken)).ok() } #[inline] pub unsafe fn LookupAccountNameA(lpsystemname: P0, lpaccountname: P1, sid: Option, cbsid: *mut u32, referenceddomainname: Option, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> windows_core::Result<()> @@ -750,7 +648,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidA(lpsystemname : windows_core::PCSTR, sid : PSID, name : windows_core::PSTR, cchname : *mut u32, referenceddomainname : windows_core::PSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); - LookupAccountSidA(lpsystemname.param().abi(), core::mem::transmute(sid), core::mem::transmute(name.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname), core::mem::transmute(referenceddomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchreferenceddomainname), core::mem::transmute(peuse)).ok() + LookupAccountSidA(lpsystemname.param().abi(), sid, core::mem::transmute(name.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname), core::mem::transmute(referenceddomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchreferenceddomainname), core::mem::transmute(peuse)).ok() } #[inline] pub unsafe fn LookupAccountSidW(lpsystemname: P0, sid: PSID, name: Option, cchname: *mut u32, referenceddomainname: Option, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> windows_core::Result<()> @@ -758,7 +656,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidW(lpsystemname : windows_core::PCWSTR, sid : PSID, name : windows_core::PWSTR, cchname : *mut u32, referenceddomainname : windows_core::PWSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); - LookupAccountSidW(lpsystemname.param().abi(), core::mem::transmute(sid), core::mem::transmute(name.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname), core::mem::transmute(referenceddomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchreferenceddomainname), core::mem::transmute(peuse)).ok() + LookupAccountSidW(lpsystemname.param().abi(), sid, core::mem::transmute(name.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname), core::mem::transmute(referenceddomainname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchreferenceddomainname), core::mem::transmute(peuse)).ok() } #[inline] pub unsafe fn LookupPrivilegeDisplayNameA(lpsystemname: P0, lpname: P1, lpdisplayname: Option, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> windows_core::Result<()> @@ -784,7 +682,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeNameA(lpsystemname : windows_core::PCSTR, lpluid : *const super::Foundation:: LUID, lpname : windows_core::PSTR, cchname : *mut u32) -> super::Foundation:: BOOL); - LookupPrivilegeNameA(lpsystemname.param().abi(), core::mem::transmute(lpluid), core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname)).ok() + LookupPrivilegeNameA(lpsystemname.param().abi(), lpluid, core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname)).ok() } #[inline] pub unsafe fn LookupPrivilegeNameW(lpsystemname: P0, lpluid: *const super::Foundation::LUID, lpname: Option, cchname: *mut u32) -> windows_core::Result<()> @@ -792,7 +690,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeNameW(lpsystemname : windows_core::PCWSTR, lpluid : *const super::Foundation:: LUID, lpname : windows_core::PWSTR, cchname : *mut u32) -> super::Foundation:: BOOL); - LookupPrivilegeNameW(lpsystemname.param().abi(), core::mem::transmute(lpluid), core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname)).ok() + LookupPrivilegeNameW(lpsystemname.param().abi(), lpluid, core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchname)).ok() } #[inline] pub unsafe fn LookupPrivilegeValueA(lpsystemname: P0, lpname: P1, lpluid: *mut super::Foundation::LUID) -> windows_core::Result<()> @@ -816,7 +714,7 @@ where pub unsafe fn MakeAbsoluteSD(pselfrelativesecuritydescriptor: PSECURITY_DESCRIPTOR, pabsolutesecuritydescriptor: Option, lpdwabsolutesecuritydescriptorsize: *mut u32, pdacl: Option<*mut ACL>, lpdwdaclsize: *mut u32, psacl: Option<*mut ACL>, lpdwsaclsize: *mut u32, powner: Option, lpdwownersize: *mut u32, pprimarygroup: Option, lpdwprimarygroupsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn MakeAbsoluteSD(pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwabsolutesecuritydescriptorsize : *mut u32, pdacl : *mut ACL, lpdwdaclsize : *mut u32, psacl : *mut ACL, lpdwsaclsize : *mut u32, powner : PSID, lpdwownersize : *mut u32, pprimarygroup : PSID, lpdwprimarygroupsize : *mut u32) -> super::Foundation:: BOOL); MakeAbsoluteSD( - core::mem::transmute(pselfrelativesecuritydescriptor), + pselfrelativesecuritydescriptor, core::mem::transmute(pabsolutesecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwabsolutesecuritydescriptorsize), core::mem::transmute(pdacl.unwrap_or(core::mem::zeroed())), @@ -833,12 +731,12 @@ pub unsafe fn MakeAbsoluteSD(pselfrelativesecuritydescriptor: PSECURITY_DESCRIPT #[inline] pub unsafe fn MakeSelfRelativeSD(pabsolutesecuritydescriptor: PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor: Option, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn MakeSelfRelativeSD(pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwbufferlength : *mut u32) -> super::Foundation:: BOOL); - MakeSelfRelativeSD(core::mem::transmute(pabsolutesecuritydescriptor), core::mem::transmute(pselfrelativesecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() + MakeSelfRelativeSD(pabsolutesecuritydescriptor, core::mem::transmute(pselfrelativesecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwbufferlength)).ok() } #[inline] pub unsafe fn MapGenericMask(accessmask: *mut u32, genericmapping: *const GENERIC_MAPPING) { windows_targets::link!("advapi32.dll" "system" fn MapGenericMask(accessmask : *mut u32, genericmapping : *const GENERIC_MAPPING)); - MapGenericMask(core::mem::transmute(accessmask), core::mem::transmute(genericmapping)) + MapGenericMask(core::mem::transmute(accessmask), genericmapping) } #[inline] pub unsafe fn ObjectCloseAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> windows_core::Result<()> @@ -846,7 +744,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectCloseAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectCloseAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid), generateonclose.into()).ok() + ObjectCloseAuditAlarmA(subsystemname.param().abi(), handleid, generateonclose.into()).ok() } #[inline] pub unsafe fn ObjectCloseAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> super::Foundation::BOOL @@ -854,7 +752,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectCloseAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectCloseAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid), generateonclose.into()) + ObjectCloseAuditAlarmW(subsystemname.param().abi(), handleid, generateonclose.into()) } #[inline] pub unsafe fn ObjectDeleteAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> windows_core::Result<()> @@ -862,7 +760,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectDeleteAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectDeleteAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid), generateonclose.into()).ok() + ObjectDeleteAuditAlarmA(subsystemname.param().abi(), handleid, generateonclose.into()).ok() } #[inline] pub unsafe fn ObjectDeleteAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> super::Foundation::BOOL @@ -870,7 +768,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectDeleteAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectDeleteAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid), generateonclose.into()) + ObjectDeleteAuditAlarmW(subsystemname.param().abi(), handleid, generateonclose.into()) } #[inline] pub unsafe fn ObjectOpenAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> @@ -880,7 +778,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectOpenAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const PRIVILEGE_SET, objectcreation : super::Foundation:: BOOL, accessgranted : super::Foundation:: BOOL, generateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectOpenAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid), objecttypename.param().abi(), objectname.param().abi(), core::mem::transmute(psecuritydescriptor), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(grantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), objectcreation.into(), accessgranted.into(), core::mem::transmute(generateonclose)).ok() + ObjectOpenAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), psecuritydescriptor, clienttoken, desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), objectcreation.into(), accessgranted.into(), core::mem::transmute(generateonclose)).ok() } #[inline] pub unsafe fn ObjectOpenAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL @@ -890,7 +788,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectOpenAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const PRIVILEGE_SET, objectcreation : super::Foundation:: BOOL, accessgranted : super::Foundation:: BOOL, generateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectOpenAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid), objecttypename.param().abi(), objectname.param().abi(), core::mem::transmute(psecuritydescriptor), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(grantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), objectcreation.into(), accessgranted.into(), core::mem::transmute(generateonclose)) + ObjectOpenAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), psecuritydescriptor, clienttoken, desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), objectcreation.into(), accessgranted.into(), core::mem::transmute(generateonclose)) } #[inline] pub unsafe fn ObjectPrivilegeAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> windows_core::Result<()> @@ -898,7 +796,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectPrivilegeAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectPrivilegeAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), accessgranted.into()).ok() + ObjectPrivilegeAuditAlarmA(subsystemname.param().abi(), handleid, clienttoken, desiredaccess, privileges, accessgranted.into()).ok() } #[inline] pub unsafe fn ObjectPrivilegeAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> super::Foundation::BOOL @@ -906,12 +804,12 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ObjectPrivilegeAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - ObjectPrivilegeAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), accessgranted.into()) + ObjectPrivilegeAuditAlarmW(subsystemname.param().abi(), handleid, clienttoken, desiredaccess, privileges, accessgranted.into()) } #[inline] pub unsafe fn PrivilegeCheck(clienttoken: super::Foundation::HANDLE, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn PrivilegeCheck(clienttoken : super::Foundation:: HANDLE, requiredprivileges : *mut PRIVILEGE_SET, pfresult : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - PrivilegeCheck(core::mem::transmute(clienttoken), core::mem::transmute(requiredprivileges), core::mem::transmute(pfresult)).ok() + PrivilegeCheck(clienttoken, core::mem::transmute(requiredprivileges), core::mem::transmute(pfresult)).ok() } #[inline] pub unsafe fn PrivilegedServiceAuditAlarmA(subsystemname: P0, servicename: P1, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> windows_core::Result<()> @@ -920,7 +818,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmA(subsystemname : windows_core::PCSTR, servicename : windows_core::PCSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - PrivilegedServiceAuditAlarmA(subsystemname.param().abi(), servicename.param().abi(), core::mem::transmute(clienttoken), core::mem::transmute(privileges), accessgranted.into()).ok() + PrivilegedServiceAuditAlarmA(subsystemname.param().abi(), servicename.param().abi(), clienttoken, privileges, accessgranted.into()).ok() } #[inline] pub unsafe fn PrivilegedServiceAuditAlarmW(subsystemname: P0, servicename: P1, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> super::Foundation::BOOL @@ -929,13 +827,13 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmW(subsystemname : windows_core::PCWSTR, servicename : windows_core::PCWSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - PrivilegedServiceAuditAlarmW(subsystemname.param().abi(), servicename.param().abi(), core::mem::transmute(clienttoken), core::mem::transmute(privileges), accessgranted.into()) + PrivilegedServiceAuditAlarmW(subsystemname.param().abi(), servicename.param().abi(), clienttoken, privileges, accessgranted.into()) } #[inline] pub unsafe fn QuerySecurityAccessMask(securityinformation: OBJECT_SECURITY_INFORMATION) -> u32 { windows_targets::link!("advapi32.dll" "system" fn QuerySecurityAccessMask(securityinformation : OBJECT_SECURITY_INFORMATION, desiredaccess : *mut u32)); let mut result__ = core::mem::zeroed(); - QuerySecurityAccessMask(core::mem::transmute(securityinformation), &mut result__); + QuerySecurityAccessMask(securityinformation, &mut result__); result__ } #[inline] @@ -946,22 +844,22 @@ pub unsafe fn RevertToSelf() -> windows_core::Result<()> { #[inline] pub unsafe fn RtlConvertSidToUnicodeString(unicodestring: *mut super::Foundation::UNICODE_STRING, sid: PSID, allocatedestinationstring: bool) -> super::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlConvertSidToUnicodeString(unicodestring : *mut super::Foundation:: UNICODE_STRING, sid : PSID, allocatedestinationstring : bool) -> super::Foundation:: NTSTATUS); - RtlConvertSidToUnicodeString(core::mem::transmute(unicodestring), core::mem::transmute(sid), core::mem::transmute(allocatedestinationstring)) + RtlConvertSidToUnicodeString(core::mem::transmute(unicodestring), sid, allocatedestinationstring) } #[inline] pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: bool) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : bool) -> bool); - RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorlength), core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(checkonly)) + RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), securitydescriptorlength, core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), checkonly) } #[inline] pub unsafe fn SetAclInformation(pacl: *mut ACL, paclinformation: *const core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetAclInformation(pacl : *mut ACL, paclinformation : *const core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> super::Foundation:: BOOL); - SetAclInformation(core::mem::transmute(pacl), core::mem::transmute(paclinformation), core::mem::transmute(naclinformationlength), core::mem::transmute(dwaclinformationclass)).ok() + SetAclInformation(core::mem::transmute(pacl), paclinformation, naclinformationlength, dwaclinformationclass).ok() } #[inline] pub unsafe fn SetCachedSigningLevel(sourcefiles: &[super::Foundation::HANDLE], flags: u32, targetfile: Option) -> super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetCachedSigningLevel(sourcefiles : *const super::Foundation:: HANDLE, sourcefilecount : u32, flags : u32, targetfile : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - SetCachedSigningLevel(core::mem::transmute(sourcefiles.as_ptr()), sourcefiles.len().try_into().unwrap(), core::mem::transmute(flags), core::mem::transmute(targetfile.unwrap_or(core::mem::zeroed()))) + SetCachedSigningLevel(core::mem::transmute(sourcefiles.as_ptr()), sourcefiles.len().try_into().unwrap(), flags, core::mem::transmute(targetfile.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetFileSecurityA(lpfilename: P0, securityinformation: OBJECT_SECURITY_INFORMATION, psecuritydescriptor: PSECURITY_DESCRIPTOR) -> windows_core::Result<()> @@ -969,7 +867,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityA(lpfilename : windows_core::PCSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - SetFileSecurityA(lpfilename.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)).ok() + SetFileSecurityA(lpfilename.param().abi(), securityinformation, psecuritydescriptor).ok() } #[inline] pub unsafe fn SetFileSecurityW(lpfilename: P0, securityinformation: OBJECT_SECURITY_INFORMATION, psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL @@ -977,34 +875,34 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityW(lpfilename : windows_core::PCWSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - SetFileSecurityW(lpfilename.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + SetFileSecurityW(lpfilename.param().abi(), securityinformation, psecuritydescriptor) } #[inline] pub unsafe fn SetKernelObjectSecurity(handle: super::Foundation::HANDLE, securityinformation: OBJECT_SECURITY_INFORMATION, securitydescriptor: PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetKernelObjectSecurity(handle : super::Foundation:: HANDLE, securityinformation : OBJECT_SECURITY_INFORMATION, securitydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - SetKernelObjectSecurity(core::mem::transmute(handle), core::mem::transmute(securityinformation), core::mem::transmute(securitydescriptor)).ok() + SetKernelObjectSecurity(handle, securityinformation, securitydescriptor).ok() } #[inline] pub unsafe fn SetPrivateObjectSecurity(securityinformation: OBJECT_SECURITY_INFORMATION, modificationdescriptor: PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, genericmapping: *const GENERIC_MAPPING, token: Option) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetPrivateObjectSecurity(securityinformation : OBJECT_SECURITY_INFORMATION, modificationdescriptor : PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut PSECURITY_DESCRIPTOR, genericmapping : *const GENERIC_MAPPING, token : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - SetPrivateObjectSecurity(core::mem::transmute(securityinformation), core::mem::transmute(modificationdescriptor), core::mem::transmute(objectssecuritydescriptor), core::mem::transmute(genericmapping), core::mem::transmute(token.unwrap_or(core::mem::zeroed()))).ok() + SetPrivateObjectSecurity(securityinformation, modificationdescriptor, core::mem::transmute(objectssecuritydescriptor), genericmapping, core::mem::transmute(token.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetPrivateObjectSecurityEx(securityinformation: OBJECT_SECURITY_INFORMATION, modificationdescriptor: PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, genericmapping: *const GENERIC_MAPPING, token: Option) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetPrivateObjectSecurityEx(securityinformation : OBJECT_SECURITY_INFORMATION, modificationdescriptor : PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut PSECURITY_DESCRIPTOR, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, genericmapping : *const GENERIC_MAPPING, token : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - SetPrivateObjectSecurityEx(core::mem::transmute(securityinformation), core::mem::transmute(modificationdescriptor), core::mem::transmute(objectssecuritydescriptor), core::mem::transmute(autoinheritflags), core::mem::transmute(genericmapping), core::mem::transmute(token.unwrap_or(core::mem::zeroed()))).ok() + SetPrivateObjectSecurityEx(securityinformation, modificationdescriptor, core::mem::transmute(objectssecuritydescriptor), autoinheritflags, genericmapping, core::mem::transmute(token.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetSecurityAccessMask(securityinformation: OBJECT_SECURITY_INFORMATION) -> u32 { windows_targets::link!("advapi32.dll" "system" fn SetSecurityAccessMask(securityinformation : OBJECT_SECURITY_INFORMATION, desiredaccess : *mut u32)); let mut result__ = core::mem::zeroed(); - SetSecurityAccessMask(core::mem::transmute(securityinformation), &mut result__); + SetSecurityAccessMask(securityinformation, &mut result__); result__ } #[inline] pub unsafe fn SetSecurityDescriptorControl(psecuritydescriptor: PSECURITY_DESCRIPTOR, controlbitsofinterest: SECURITY_DESCRIPTOR_CONTROL, controlbitstoset: SECURITY_DESCRIPTOR_CONTROL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, controlbitsofinterest : SECURITY_DESCRIPTOR_CONTROL, controlbitstoset : SECURITY_DESCRIPTOR_CONTROL) -> super::Foundation:: BOOL); - SetSecurityDescriptorControl(core::mem::transmute(psecuritydescriptor), core::mem::transmute(controlbitsofinterest), core::mem::transmute(controlbitstoset)).ok() + SetSecurityDescriptorControl(psecuritydescriptor, controlbitsofinterest, controlbitstoset).ok() } #[inline] pub unsafe fn SetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bdaclpresent: bool, pdacl: Option<*const ACL>, bdacldefaulted: bool) -> windows_core::Result<()> { @@ -1034,12 +932,12 @@ pub unsafe fn SetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTO #[inline] pub unsafe fn SetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetTokenInformation(tokenhandle : super::Foundation:: HANDLE, tokeninformationclass : TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> super::Foundation:: BOOL); - SetTokenInformation(core::mem::transmute(tokenhandle), core::mem::transmute(tokeninformationclass), core::mem::transmute(tokeninformation), core::mem::transmute(tokeninformationlength)).ok() + SetTokenInformation(tokenhandle, tokeninformationclass, tokeninformation, tokeninformationlength).ok() } #[inline] pub unsafe fn SetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const OBJECT_SECURITY_INFORMATION, psid: PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const OBJECT_SECURITY_INFORMATION, psid : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - SetUserObjectSecurity(core::mem::transmute(hobj), core::mem::transmute(psirequested), core::mem::transmute(psid)).ok() + SetUserObjectSecurity(hobj, psirequested, psid).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs index fa53acec48..af59a960cc 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs @@ -5,27 +5,27 @@ where P2: windows_core::Param, { windows_targets::link!("cabinet.dll" "cdecl" fn FCIAddFile(hfci : *const core::ffi::c_void, pszsourcefile : windows_core::PCSTR, pszfilename : windows_core::PCSTR, fexecute : super::super::Foundation:: BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS, pfnfcigoi : PFNFCIGETOPENINFO, typecompress : u16) -> super::super::Foundation:: BOOL); - FCIAddFile(core::mem::transmute(hfci), pszsourcefile.param().abi(), pszfilename.param().abi(), fexecute.into(), core::mem::transmute(pfnfcignc), core::mem::transmute(pfnfcis), core::mem::transmute(pfnfcigoi), core::mem::transmute(typecompress)) + FCIAddFile(hfci, pszsourcefile.param().abi(), pszfilename.param().abi(), fexecute.into(), pfnfcignc, pfnfcis, pfnfcigoi, typecompress) } #[inline] pub unsafe fn FCICreate(perf: *const ERF, pfnfcifp: PFNFCIFILEPLACED, pfna: PFNFCIALLOC, pfnf: PFNFCIFREE, pfnopen: PFNFCIOPEN, pfnread: PFNFCIREAD, pfnwrite: PFNFCIWRITE, pfnclose: PFNFCICLOSE, pfnseek: PFNFCISEEK, pfndelete: PFNFCIDELETE, pfnfcigtf: PFNFCIGETTEMPFILE, pccab: *const CCAB, pv: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("cabinet.dll" "cdecl" fn FCICreate(perf : *const ERF, pfnfcifp : PFNFCIFILEPLACED, pfna : PFNFCIALLOC, pfnf : PFNFCIFREE, pfnopen : PFNFCIOPEN, pfnread : PFNFCIREAD, pfnwrite : PFNFCIWRITE, pfnclose : PFNFCICLOSE, pfnseek : PFNFCISEEK, pfndelete : PFNFCIDELETE, pfnfcigtf : PFNFCIGETTEMPFILE, pccab : *const CCAB, pv : *const core::ffi::c_void) -> *mut core::ffi::c_void); - FCICreate(core::mem::transmute(perf), core::mem::transmute(pfnfcifp), core::mem::transmute(pfna), core::mem::transmute(pfnf), core::mem::transmute(pfnopen), core::mem::transmute(pfnread), core::mem::transmute(pfnwrite), core::mem::transmute(pfnclose), core::mem::transmute(pfnseek), core::mem::transmute(pfndelete), core::mem::transmute(pfnfcigtf), core::mem::transmute(pccab), core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) + FCICreate(perf, pfnfcifp, pfna, pfnf, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek, pfndelete, pfnfcigtf, pccab, core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FCIDestroy(hfci: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("cabinet.dll" "cdecl" fn FCIDestroy(hfci : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FCIDestroy(core::mem::transmute(hfci)) + FCIDestroy(hfci) } #[inline] pub unsafe fn FCIFlushCabinet(hfci: *const core::ffi::c_void, fgetnextcab: bool, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> super::super::Foundation::BOOL { windows_targets::link!("cabinet.dll" "cdecl" fn FCIFlushCabinet(hfci : *const core::ffi::c_void, fgetnextcab : super::super::Foundation:: BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> super::super::Foundation:: BOOL); - FCIFlushCabinet(core::mem::transmute(hfci), fgetnextcab.into(), core::mem::transmute(pfnfcignc), core::mem::transmute(pfnfcis)) + FCIFlushCabinet(hfci, fgetnextcab.into(), pfnfcignc, pfnfcis) } #[inline] pub unsafe fn FCIFlushFolder(hfci: *const core::ffi::c_void, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> super::super::Foundation::BOOL { windows_targets::link!("cabinet.dll" "cdecl" fn FCIFlushFolder(hfci : *const core::ffi::c_void, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> super::super::Foundation:: BOOL); - FCIFlushFolder(core::mem::transmute(hfci), core::mem::transmute(pfnfcignc), core::mem::transmute(pfnfcis)) + FCIFlushFolder(hfci, pfnfcignc, pfnfcis) } #[inline] pub unsafe fn FDICopy(hfdi: *const core::ffi::c_void, pszcabinet: P1, pszcabpath: P2, flags: i32, pfnfdin: PFNFDINOTIFY, pfnfdid: PFNFDIDECRYPT, pvuser: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -34,22 +34,22 @@ where P2: windows_core::Param, { windows_targets::link!("cabinet.dll" "cdecl" fn FDICopy(hfdi : *const core::ffi::c_void, pszcabinet : windows_core::PCSTR, pszcabpath : windows_core::PCSTR, flags : i32, pfnfdin : PFNFDINOTIFY, pfnfdid : PFNFDIDECRYPT, pvuser : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FDICopy(core::mem::transmute(hfdi), pszcabinet.param().abi(), pszcabpath.param().abi(), core::mem::transmute(flags), core::mem::transmute(pfnfdin), core::mem::transmute(pfnfdid), core::mem::transmute(pvuser.unwrap_or(core::mem::zeroed()))) + FDICopy(hfdi, pszcabinet.param().abi(), pszcabpath.param().abi(), flags, pfnfdin, pfnfdid, core::mem::transmute(pvuser.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FDICreate(pfnalloc: PFNALLOC, pfnfree: PFNFREE, pfnopen: PFNOPEN, pfnread: PFNREAD, pfnwrite: PFNWRITE, pfnclose: PFNCLOSE, pfnseek: PFNSEEK, cputype: FDICREATE_CPU_TYPE, perf: *mut ERF) -> *mut core::ffi::c_void { windows_targets::link!("cabinet.dll" "cdecl" fn FDICreate(pfnalloc : PFNALLOC, pfnfree : PFNFREE, pfnopen : PFNOPEN, pfnread : PFNREAD, pfnwrite : PFNWRITE, pfnclose : PFNCLOSE, pfnseek : PFNSEEK, cputype : FDICREATE_CPU_TYPE, perf : *mut ERF) -> *mut core::ffi::c_void); - FDICreate(core::mem::transmute(pfnalloc), core::mem::transmute(pfnfree), core::mem::transmute(pfnopen), core::mem::transmute(pfnread), core::mem::transmute(pfnwrite), core::mem::transmute(pfnclose), core::mem::transmute(pfnseek), core::mem::transmute(cputype), core::mem::transmute(perf)) + FDICreate(pfnalloc, pfnfree, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek, cputype, core::mem::transmute(perf)) } #[inline] pub unsafe fn FDIDestroy(hfdi: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("cabinet.dll" "cdecl" fn FDIDestroy(hfdi : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FDIDestroy(core::mem::transmute(hfdi)) + FDIDestroy(hfdi) } #[inline] pub unsafe fn FDIIsCabinet(hfdi: *const core::ffi::c_void, hf: isize, pfdici: Option<*mut FDICABINETINFO>) -> super::super::Foundation::BOOL { windows_targets::link!("cabinet.dll" "cdecl" fn FDIIsCabinet(hfdi : *const core::ffi::c_void, hf : isize, pfdici : *mut FDICABINETINFO) -> super::super::Foundation:: BOOL); - FDIIsCabinet(core::mem::transmute(hfdi), core::mem::transmute(hf), core::mem::transmute(pfdici.unwrap_or(core::mem::zeroed()))) + FDIIsCabinet(hfdi, hf, core::mem::transmute(pfdici.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FDITruncateCabinet(hfdi: *const core::ffi::c_void, pszcabinetname: P1, ifoldertodelete: u16) -> super::super::Foundation::BOOL @@ -57,7 +57,7 @@ where P1: windows_core::Param, { windows_targets::link!("cabinet.dll" "cdecl" fn FDITruncateCabinet(hfdi : *const core::ffi::c_void, pszcabinetname : windows_core::PCSTR, ifoldertodelete : u16) -> super::super::Foundation:: BOOL); - FDITruncateCabinet(core::mem::transmute(hfdi), pszcabinetname.param().abi(), core::mem::transmute(ifoldertodelete)) + FDITruncateCabinet(hfdi, pszcabinetname.param().abi(), ifoldertodelete) } pub const CB_MAX_CABINET_NAME: u32 = 256u32; pub const CB_MAX_CAB_PATH: u32 = 256u32; diff --git a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs index 1305a32eea..e5eb4e881e 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn CfCloseHandle(filehandle: super::super::Foundation::HANDLE) { windows_targets::link!("cldapi.dll" "system" fn CfCloseHandle(filehandle : super::super::Foundation:: HANDLE)); - CfCloseHandle(core::mem::transmute(filehandle)) + CfCloseHandle(filehandle) } #[cfg(feature = "Win32_System_CorrelationVector")] #[inline] @@ -11,13 +11,13 @@ where { windows_targets::link!("cldapi.dll" "system" fn CfConnectSyncRoot(syncrootpath : windows_core::PCWSTR, callbacktable : *const CF_CALLBACK_REGISTRATION, callbackcontext : *const core::ffi::c_void, connectflags : CF_CONNECT_FLAGS, connectionkey : *mut CF_CONNECTION_KEY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CfConnectSyncRoot(syncrootpath.param().abi(), core::mem::transmute(callbacktable), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(connectflags), &mut result__).map(|| core::mem::transmute(result__)) + CfConnectSyncRoot(syncrootpath.param().abi(), callbacktable, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), connectflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfConvertToPlaceholder(filehandle: super::super::Foundation::HANDLE, fileidentity: Option<*const core::ffi::c_void>, fileidentitylength: u32, convertflags: CF_CONVERT_FLAGS, convertusn: Option<*mut i64>, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfConvertToPlaceholder(filehandle : super::super::Foundation:: HANDLE, fileidentity : *const core::ffi::c_void, fileidentitylength : u32, convertflags : CF_CONVERT_FLAGS, convertusn : *mut i64, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); - CfConvertToPlaceholder(core::mem::transmute(filehandle), core::mem::transmute(fileidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(fileidentitylength), core::mem::transmute(convertflags), core::mem::transmute(convertusn.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + CfConvertToPlaceholder(filehandle, core::mem::transmute(fileidentity.unwrap_or(core::mem::zeroed())), fileidentitylength, convertflags, core::mem::transmute(convertusn.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -26,62 +26,62 @@ where P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfCreatePlaceholders(basedirectorypath : windows_core::PCWSTR, placeholderarray : *mut CF_PLACEHOLDER_CREATE_INFO, placeholdercount : u32, createflags : CF_CREATE_FLAGS, entriesprocessed : *mut u32) -> windows_core::HRESULT); - CfCreatePlaceholders(basedirectorypath.param().abi(), core::mem::transmute(placeholderarray.as_ptr()), placeholderarray.len().try_into().unwrap(), core::mem::transmute(createflags), core::mem::transmute(entriesprocessed.unwrap_or(core::mem::zeroed()))).ok() + CfCreatePlaceholders(basedirectorypath.param().abi(), core::mem::transmute(placeholderarray.as_ptr()), placeholderarray.len().try_into().unwrap(), createflags, core::mem::transmute(entriesprocessed.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfDehydratePlaceholder(filehandle: super::super::Foundation::HANDLE, startingoffset: i64, length: i64, dehydrateflags: CF_DEHYDRATE_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfDehydratePlaceholder(filehandle : super::super::Foundation:: HANDLE, startingoffset : i64, length : i64, dehydrateflags : CF_DEHYDRATE_FLAGS, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); - CfDehydratePlaceholder(core::mem::transmute(filehandle), core::mem::transmute(startingoffset), core::mem::transmute(length), core::mem::transmute(dehydrateflags), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + CfDehydratePlaceholder(filehandle, startingoffset, length, dehydrateflags, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfDisconnectSyncRoot(connectionkey: CF_CONNECTION_KEY) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfDisconnectSyncRoot(connectionkey : CF_CONNECTION_KEY) -> windows_core::HRESULT); - CfDisconnectSyncRoot(core::mem::transmute(connectionkey)).ok() + CfDisconnectSyncRoot(connectionkey).ok() } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_System_CorrelationVector"))] #[inline] pub unsafe fn CfExecute(opinfo: *const CF_OPERATION_INFO, opparams: *mut CF_OPERATION_PARAMETERS) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfExecute(opinfo : *const CF_OPERATION_INFO, opparams : *mut CF_OPERATION_PARAMETERS) -> windows_core::HRESULT); - CfExecute(core::mem::transmute(opinfo), core::mem::transmute(opparams)).ok() + CfExecute(opinfo, core::mem::transmute(opparams)).ok() } #[cfg(feature = "Win32_System_CorrelationVector")] #[inline] pub unsafe fn CfGetCorrelationVector(filehandle: super::super::Foundation::HANDLE, correlationvector: *mut super::super::System::CorrelationVector::CORRELATION_VECTOR) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfGetCorrelationVector(filehandle : super::super::Foundation:: HANDLE, correlationvector : *mut super::super::System::CorrelationVector:: CORRELATION_VECTOR) -> windows_core::HRESULT); - CfGetCorrelationVector(core::mem::transmute(filehandle), core::mem::transmute(correlationvector)).ok() + CfGetCorrelationVector(filehandle, core::mem::transmute(correlationvector)).ok() } #[inline] pub unsafe fn CfGetPlaceholderInfo(filehandle: super::super::Foundation::HANDLE, infoclass: CF_PLACEHOLDER_INFO_CLASS, infobuffer: *mut core::ffi::c_void, infobufferlength: u32, returnedlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfGetPlaceholderInfo(filehandle : super::super::Foundation:: HANDLE, infoclass : CF_PLACEHOLDER_INFO_CLASS, infobuffer : *mut core::ffi::c_void, infobufferlength : u32, returnedlength : *mut u32) -> windows_core::HRESULT); - CfGetPlaceholderInfo(core::mem::transmute(filehandle), core::mem::transmute(infoclass), core::mem::transmute(infobuffer), core::mem::transmute(infobufferlength), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() + CfGetPlaceholderInfo(filehandle, infoclass, core::mem::transmute(infobuffer), infobufferlength, core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfGetPlaceholderRangeInfo(filehandle: super::super::Foundation::HANDLE, infoclass: CF_PLACEHOLDER_RANGE_INFO_CLASS, startingoffset: i64, length: i64, infobuffer: *mut core::ffi::c_void, infobufferlength: u32, returnedlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfGetPlaceholderRangeInfo(filehandle : super::super::Foundation:: HANDLE, infoclass : CF_PLACEHOLDER_RANGE_INFO_CLASS, startingoffset : i64, length : i64, infobuffer : *mut core::ffi::c_void, infobufferlength : u32, returnedlength : *mut u32) -> windows_core::HRESULT); - CfGetPlaceholderRangeInfo(core::mem::transmute(filehandle), core::mem::transmute(infoclass), core::mem::transmute(startingoffset), core::mem::transmute(length), core::mem::transmute(infobuffer), core::mem::transmute(infobufferlength), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() + CfGetPlaceholderRangeInfo(filehandle, infoclass, startingoffset, length, core::mem::transmute(infobuffer), infobufferlength, core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfGetPlaceholderRangeInfoForHydration(connectionkey: CF_CONNECTION_KEY, transferkey: i64, fileid: i64, infoclass: CF_PLACEHOLDER_RANGE_INFO_CLASS, startingoffset: i64, rangelength: i64, infobuffer: *mut core::ffi::c_void, infobuffersize: u32, infobufferwritten: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfGetPlaceholderRangeInfoForHydration(connectionkey : CF_CONNECTION_KEY, transferkey : i64, fileid : i64, infoclass : CF_PLACEHOLDER_RANGE_INFO_CLASS, startingoffset : i64, rangelength : i64, infobuffer : *mut core::ffi::c_void, infobuffersize : u32, infobufferwritten : *mut u32) -> windows_core::HRESULT); - CfGetPlaceholderRangeInfoForHydration(core::mem::transmute(connectionkey), core::mem::transmute(transferkey), core::mem::transmute(fileid), core::mem::transmute(infoclass), core::mem::transmute(startingoffset), core::mem::transmute(rangelength), core::mem::transmute(infobuffer), core::mem::transmute(infobuffersize), core::mem::transmute(infobufferwritten.unwrap_or(core::mem::zeroed()))).ok() + CfGetPlaceholderRangeInfoForHydration(connectionkey, transferkey, fileid, infoclass, startingoffset, rangelength, core::mem::transmute(infobuffer), infobuffersize, core::mem::transmute(infobufferwritten.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfGetPlaceholderStateFromAttributeTag(fileattributes: u32, reparsetag: u32) -> CF_PLACEHOLDER_STATE { windows_targets::link!("cldapi.dll" "system" fn CfGetPlaceholderStateFromAttributeTag(fileattributes : u32, reparsetag : u32) -> CF_PLACEHOLDER_STATE); - CfGetPlaceholderStateFromAttributeTag(core::mem::transmute(fileattributes), core::mem::transmute(reparsetag)) + CfGetPlaceholderStateFromAttributeTag(fileattributes, reparsetag) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn CfGetPlaceholderStateFromFileInfo(infobuffer: *const core::ffi::c_void, infoclass: super::FileSystem::FILE_INFO_BY_HANDLE_CLASS) -> CF_PLACEHOLDER_STATE { windows_targets::link!("cldapi.dll" "system" fn CfGetPlaceholderStateFromFileInfo(infobuffer : *const core::ffi::c_void, infoclass : super::FileSystem:: FILE_INFO_BY_HANDLE_CLASS) -> CF_PLACEHOLDER_STATE); - CfGetPlaceholderStateFromFileInfo(core::mem::transmute(infobuffer), core::mem::transmute(infoclass)) + CfGetPlaceholderStateFromFileInfo(infobuffer, infoclass) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn CfGetPlaceholderStateFromFindData(finddata: *const super::FileSystem::WIN32_FIND_DATAA) -> CF_PLACEHOLDER_STATE { windows_targets::link!("cldapi.dll" "system" fn CfGetPlaceholderStateFromFindData(finddata : *const super::FileSystem:: WIN32_FIND_DATAA) -> CF_PLACEHOLDER_STATE); - CfGetPlaceholderStateFromFindData(core::mem::transmute(finddata)) + CfGetPlaceholderStateFromFindData(finddata) } #[inline] pub unsafe fn CfGetPlatformInfo() -> windows_core::Result { @@ -92,7 +92,7 @@ pub unsafe fn CfGetPlatformInfo() -> windows_core::Result { #[inline] pub unsafe fn CfGetSyncRootInfoByHandle(filehandle: super::super::Foundation::HANDLE, infoclass: CF_SYNC_ROOT_INFO_CLASS, infobuffer: *mut core::ffi::c_void, infobufferlength: u32, returnedlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfGetSyncRootInfoByHandle(filehandle : super::super::Foundation:: HANDLE, infoclass : CF_SYNC_ROOT_INFO_CLASS, infobuffer : *mut core::ffi::c_void, infobufferlength : u32, returnedlength : *mut u32) -> windows_core::HRESULT); - CfGetSyncRootInfoByHandle(core::mem::transmute(filehandle), core::mem::transmute(infoclass), core::mem::transmute(infobuffer), core::mem::transmute(infobufferlength), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() + CfGetSyncRootInfoByHandle(filehandle, infoclass, core::mem::transmute(infobuffer), infobufferlength, core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfGetSyncRootInfoByPath(filepath: P0, infoclass: CF_SYNC_ROOT_INFO_CLASS, infobuffer: *mut core::ffi::c_void, infobufferlength: u32, returnedlength: Option<*mut u32>) -> windows_core::Result<()> @@ -100,24 +100,24 @@ where P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfGetSyncRootInfoByPath(filepath : windows_core::PCWSTR, infoclass : CF_SYNC_ROOT_INFO_CLASS, infobuffer : *mut core::ffi::c_void, infobufferlength : u32, returnedlength : *mut u32) -> windows_core::HRESULT); - CfGetSyncRootInfoByPath(filepath.param().abi(), core::mem::transmute(infoclass), core::mem::transmute(infobuffer), core::mem::transmute(infobufferlength), core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() + CfGetSyncRootInfoByPath(filepath.param().abi(), infoclass, core::mem::transmute(infobuffer), infobufferlength, core::mem::transmute(returnedlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfGetTransferKey(filehandle: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("cldapi.dll" "system" fn CfGetTransferKey(filehandle : super::super::Foundation:: HANDLE, transferkey : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CfGetTransferKey(core::mem::transmute(filehandle), &mut result__).map(|| core::mem::transmute(result__)) + CfGetTransferKey(filehandle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CfGetWin32HandleFromProtectedHandle(protectedhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::HANDLE { windows_targets::link!("cldapi.dll" "system" fn CfGetWin32HandleFromProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - CfGetWin32HandleFromProtectedHandle(core::mem::transmute(protectedhandle)) + CfGetWin32HandleFromProtectedHandle(protectedhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfHydratePlaceholder(filehandle: super::super::Foundation::HANDLE, startingoffset: i64, length: i64, hydrateflags: CF_HYDRATE_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfHydratePlaceholder(filehandle : super::super::Foundation:: HANDLE, startingoffset : i64, length : i64, hydrateflags : CF_HYDRATE_FLAGS, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); - CfHydratePlaceholder(core::mem::transmute(filehandle), core::mem::transmute(startingoffset), core::mem::transmute(length), core::mem::transmute(hydrateflags), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + CfHydratePlaceholder(filehandle, startingoffset, length, hydrateflags, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfOpenFileWithOplock(filepath: P0, flags: CF_OPEN_FILE_FLAGS) -> windows_core::Result @@ -126,18 +126,18 @@ where { windows_targets::link!("cldapi.dll" "system" fn CfOpenFileWithOplock(filepath : windows_core::PCWSTR, flags : CF_OPEN_FILE_FLAGS, protectedhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CfOpenFileWithOplock(filepath.param().abi(), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + CfOpenFileWithOplock(filepath.param().abi(), flags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CfQuerySyncProviderStatus(connectionkey: CF_CONNECTION_KEY) -> windows_core::Result { windows_targets::link!("cldapi.dll" "system" fn CfQuerySyncProviderStatus(connectionkey : CF_CONNECTION_KEY, providerstatus : *mut CF_SYNC_PROVIDER_STATUS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CfQuerySyncProviderStatus(core::mem::transmute(connectionkey), &mut result__).map(|| core::mem::transmute(result__)) + CfQuerySyncProviderStatus(connectionkey, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CfReferenceProtectedHandle(protectedhandle: super::super::Foundation::HANDLE) -> bool { windows_targets::link!("cldapi.dll" "system" fn CfReferenceProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> bool); - CfReferenceProtectedHandle(core::mem::transmute(protectedhandle)) + CfReferenceProtectedHandle(protectedhandle) } #[inline] pub unsafe fn CfRegisterSyncRoot(syncrootpath: P0, registration: *const CF_SYNC_REGISTRATION, policies: *const CF_SYNC_POLICIES, registerflags: CF_REGISTER_FLAGS) -> windows_core::Result<()> @@ -145,27 +145,27 @@ where P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfRegisterSyncRoot(syncrootpath : windows_core::PCWSTR, registration : *const CF_SYNC_REGISTRATION, policies : *const CF_SYNC_POLICIES, registerflags : CF_REGISTER_FLAGS) -> windows_core::HRESULT); - CfRegisterSyncRoot(syncrootpath.param().abi(), core::mem::transmute(registration), core::mem::transmute(policies), core::mem::transmute(registerflags)).ok() + CfRegisterSyncRoot(syncrootpath.param().abi(), registration, policies, registerflags).ok() } #[inline] pub unsafe fn CfReleaseProtectedHandle(protectedhandle: super::super::Foundation::HANDLE) { windows_targets::link!("cldapi.dll" "system" fn CfReleaseProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE)); - CfReleaseProtectedHandle(core::mem::transmute(protectedhandle)) + CfReleaseProtectedHandle(protectedhandle) } #[inline] pub unsafe fn CfReleaseTransferKey(filehandle: super::super::Foundation::HANDLE, transferkey: *const i64) { windows_targets::link!("cldapi.dll" "system" fn CfReleaseTransferKey(filehandle : super::super::Foundation:: HANDLE, transferkey : *const i64)); - CfReleaseTransferKey(core::mem::transmute(filehandle), core::mem::transmute(transferkey)) + CfReleaseTransferKey(filehandle, transferkey) } #[inline] pub unsafe fn CfReportProviderProgress(connectionkey: CF_CONNECTION_KEY, transferkey: i64, providerprogresstotal: i64, providerprogresscompleted: i64) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfReportProviderProgress(connectionkey : CF_CONNECTION_KEY, transferkey : i64, providerprogresstotal : i64, providerprogresscompleted : i64) -> windows_core::HRESULT); - CfReportProviderProgress(core::mem::transmute(connectionkey), core::mem::transmute(transferkey), core::mem::transmute(providerprogresstotal), core::mem::transmute(providerprogresscompleted)).ok() + CfReportProviderProgress(connectionkey, transferkey, providerprogresstotal, providerprogresscompleted).ok() } #[inline] pub unsafe fn CfReportProviderProgress2(connectionkey: CF_CONNECTION_KEY, transferkey: i64, requestkey: i64, providerprogresstotal: i64, providerprogresscompleted: i64, targetsessionid: u32) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfReportProviderProgress2(connectionkey : CF_CONNECTION_KEY, transferkey : i64, requestkey : i64, providerprogresstotal : i64, providerprogresscompleted : i64, targetsessionid : u32) -> windows_core::HRESULT); - CfReportProviderProgress2(core::mem::transmute(connectionkey), core::mem::transmute(transferkey), core::mem::transmute(requestkey), core::mem::transmute(providerprogresstotal), core::mem::transmute(providerprogresscompleted), core::mem::transmute(targetsessionid)).ok() + CfReportProviderProgress2(connectionkey, transferkey, requestkey, providerprogresstotal, providerprogresscompleted, targetsessionid).ok() } #[inline] pub unsafe fn CfReportSyncStatus(syncrootpath: P0, syncstatus: Option<*const CF_SYNC_STATUS>) -> windows_core::Result<()> @@ -179,24 +179,24 @@ where #[inline] pub unsafe fn CfRevertPlaceholder(filehandle: super::super::Foundation::HANDLE, revertflags: CF_REVERT_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfRevertPlaceholder(filehandle : super::super::Foundation:: HANDLE, revertflags : CF_REVERT_FLAGS, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); - CfRevertPlaceholder(core::mem::transmute(filehandle), core::mem::transmute(revertflags), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + CfRevertPlaceholder(filehandle, revertflags, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_CorrelationVector")] #[inline] pub unsafe fn CfSetCorrelationVector(filehandle: super::super::Foundation::HANDLE, correlationvector: *const super::super::System::CorrelationVector::CORRELATION_VECTOR) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfSetCorrelationVector(filehandle : super::super::Foundation:: HANDLE, correlationvector : *const super::super::System::CorrelationVector:: CORRELATION_VECTOR) -> windows_core::HRESULT); - CfSetCorrelationVector(core::mem::transmute(filehandle), core::mem::transmute(correlationvector)).ok() + CfSetCorrelationVector(filehandle, correlationvector).ok() } #[inline] pub unsafe fn CfSetInSyncState(filehandle: super::super::Foundation::HANDLE, insyncstate: CF_IN_SYNC_STATE, insyncflags: CF_SET_IN_SYNC_FLAGS, insyncusn: Option<*mut i64>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfSetInSyncState(filehandle : super::super::Foundation:: HANDLE, insyncstate : CF_IN_SYNC_STATE, insyncflags : CF_SET_IN_SYNC_FLAGS, insyncusn : *mut i64) -> windows_core::HRESULT); - CfSetInSyncState(core::mem::transmute(filehandle), core::mem::transmute(insyncstate), core::mem::transmute(insyncflags), core::mem::transmute(insyncusn.unwrap_or(core::mem::zeroed()))).ok() + CfSetInSyncState(filehandle, insyncstate, insyncflags, core::mem::transmute(insyncusn.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfSetPinState(filehandle: super::super::Foundation::HANDLE, pinstate: CF_PIN_STATE, pinflags: CF_SET_PIN_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfSetPinState(filehandle : super::super::Foundation:: HANDLE, pinstate : CF_PIN_STATE, pinflags : CF_SET_PIN_FLAGS, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); - CfSetPinState(core::mem::transmute(filehandle), core::mem::transmute(pinstate), core::mem::transmute(pinflags), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() + CfSetPinState(filehandle, pinstate, pinflags, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CfUnregisterSyncRoot(syncrootpath: P0) -> windows_core::Result<()> @@ -211,13 +211,13 @@ where pub unsafe fn CfUpdatePlaceholder(filehandle: super::super::Foundation::HANDLE, fsmetadata: Option<*const CF_FS_METADATA>, fileidentity: Option<*const core::ffi::c_void>, fileidentitylength: u32, dehydraterangearray: Option<&[CF_FILE_RANGE]>, updateflags: CF_UPDATE_FLAGS, updateusn: Option<*mut i64>, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfUpdatePlaceholder(filehandle : super::super::Foundation:: HANDLE, fsmetadata : *const CF_FS_METADATA, fileidentity : *const core::ffi::c_void, fileidentitylength : u32, dehydraterangearray : *const CF_FILE_RANGE, dehydraterangecount : u32, updateflags : CF_UPDATE_FLAGS, updateusn : *mut i64, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); CfUpdatePlaceholder( - core::mem::transmute(filehandle), + filehandle, core::mem::transmute(fsmetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(fileidentity.unwrap_or(core::mem::zeroed())), - core::mem::transmute(fileidentitylength), + fileidentitylength, core::mem::transmute(dehydraterangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dehydraterangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(updateflags), + updateflags, core::mem::transmute(updateusn.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), ) @@ -226,7 +226,7 @@ pub unsafe fn CfUpdatePlaceholder(filehandle: super::super::Foundation::HANDLE, #[inline] pub unsafe fn CfUpdateSyncProviderStatus(connectionkey: CF_CONNECTION_KEY, providerstatus: CF_SYNC_PROVIDER_STATUS) -> windows_core::Result<()> { windows_targets::link!("cldapi.dll" "system" fn CfUpdateSyncProviderStatus(connectionkey : CF_CONNECTION_KEY, providerstatus : CF_SYNC_PROVIDER_STATUS) -> windows_core::HRESULT); - CfUpdateSyncProviderStatus(core::mem::transmute(connectionkey), core::mem::transmute(providerstatus)).ok() + CfUpdateSyncProviderStatus(connectionkey, providerstatus).ok() } #[cfg(feature = "Win32_System_CorrelationVector")] pub type CF_CALLBACK = Option; diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs index c18906ca4d..26ec53d371 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs @@ -1,62 +1,62 @@ #[inline] pub unsafe fn CloseCompressor(compressorhandle: COMPRESSOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn CloseCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - CloseCompressor(core::mem::transmute(compressorhandle)).ok() + CloseCompressor(compressorhandle).ok() } #[inline] pub unsafe fn CloseDecompressor(decompressorhandle: DECOMPRESSOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn CloseDecompressor(decompressorhandle : DECOMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - CloseDecompressor(core::mem::transmute(decompressorhandle)).ok() + CloseDecompressor(decompressorhandle).ok() } #[inline] pub unsafe fn Compress(compressorhandle: COMPRESSOR_HANDLE, uncompresseddata: Option<*const core::ffi::c_void>, uncompresseddatasize: usize, compressedbuffer: Option<*mut core::ffi::c_void>, compressedbuffersize: usize, compresseddatasize: *mut usize) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn Compress(compressorhandle : COMPRESSOR_HANDLE, uncompresseddata : *const core::ffi::c_void, uncompresseddatasize : usize, compressedbuffer : *mut core::ffi::c_void, compressedbuffersize : usize, compresseddatasize : *mut usize) -> super::super::Foundation:: BOOL); - Compress(core::mem::transmute(compressorhandle), core::mem::transmute(uncompresseddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(uncompresseddatasize), core::mem::transmute(compressedbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(compressedbuffersize), core::mem::transmute(compresseddatasize)).ok() + Compress(compressorhandle, core::mem::transmute(uncompresseddata.unwrap_or(core::mem::zeroed())), uncompresseddatasize, core::mem::transmute(compressedbuffer.unwrap_or(core::mem::zeroed())), compressedbuffersize, core::mem::transmute(compresseddatasize)).ok() } #[inline] pub unsafe fn CreateCompressor(algorithm: COMPRESS_ALGORITHM, allocationroutines: Option<*const COMPRESS_ALLOCATION_ROUTINES>, compressorhandle: *mut COMPRESSOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn CreateCompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, compressorhandle : *mut COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - CreateCompressor(core::mem::transmute(algorithm), core::mem::transmute(allocationroutines.unwrap_or(core::mem::zeroed())), core::mem::transmute(compressorhandle)).ok() + CreateCompressor(algorithm, core::mem::transmute(allocationroutines.unwrap_or(core::mem::zeroed())), core::mem::transmute(compressorhandle)).ok() } #[inline] pub unsafe fn CreateDecompressor(algorithm: COMPRESS_ALGORITHM, allocationroutines: Option<*const COMPRESS_ALLOCATION_ROUTINES>, decompressorhandle: *mut DECOMPRESSOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn CreateDecompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, decompressorhandle : *mut DECOMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - CreateDecompressor(core::mem::transmute(algorithm), core::mem::transmute(allocationroutines.unwrap_or(core::mem::zeroed())), core::mem::transmute(decompressorhandle)).ok() + CreateDecompressor(algorithm, core::mem::transmute(allocationroutines.unwrap_or(core::mem::zeroed())), core::mem::transmute(decompressorhandle)).ok() } #[inline] pub unsafe fn Decompress(decompressorhandle: DECOMPRESSOR_HANDLE, compresseddata: Option<*const core::ffi::c_void>, compresseddatasize: usize, uncompressedbuffer: Option<*mut core::ffi::c_void>, uncompressedbuffersize: usize, uncompresseddatasize: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn Decompress(decompressorhandle : DECOMPRESSOR_HANDLE, compresseddata : *const core::ffi::c_void, compresseddatasize : usize, uncompressedbuffer : *mut core::ffi::c_void, uncompressedbuffersize : usize, uncompresseddatasize : *mut usize) -> super::super::Foundation:: BOOL); - Decompress(core::mem::transmute(decompressorhandle), core::mem::transmute(compresseddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(compresseddatasize), core::mem::transmute(uncompressedbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(uncompressedbuffersize), core::mem::transmute(uncompresseddatasize.unwrap_or(core::mem::zeroed()))).ok() + Decompress(decompressorhandle, core::mem::transmute(compresseddata.unwrap_or(core::mem::zeroed())), compresseddatasize, core::mem::transmute(uncompressedbuffer.unwrap_or(core::mem::zeroed())), uncompressedbuffersize, core::mem::transmute(uncompresseddatasize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn QueryCompressorInformation(compressorhandle: COMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *mut core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn QueryCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); - QueryCompressorInformation(core::mem::transmute(compressorhandle), core::mem::transmute(compressinformationclass), core::mem::transmute(compressinformation), core::mem::transmute(compressinformationsize)).ok() + QueryCompressorInformation(compressorhandle, compressinformationclass, core::mem::transmute(compressinformation), compressinformationsize).ok() } #[inline] pub unsafe fn QueryDecompressorInformation(decompressorhandle: DECOMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *mut core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn QueryDecompressorInformation(decompressorhandle : DECOMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); - QueryDecompressorInformation(core::mem::transmute(decompressorhandle), core::mem::transmute(compressinformationclass), core::mem::transmute(compressinformation), core::mem::transmute(compressinformationsize)).ok() + QueryDecompressorInformation(decompressorhandle, compressinformationclass, core::mem::transmute(compressinformation), compressinformationsize).ok() } #[inline] pub unsafe fn ResetCompressor(compressorhandle: COMPRESSOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn ResetCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - ResetCompressor(core::mem::transmute(compressorhandle)).ok() + ResetCompressor(compressorhandle).ok() } #[inline] pub unsafe fn ResetDecompressor(decompressorhandle: DECOMPRESSOR_HANDLE) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn ResetDecompressor(decompressorhandle : DECOMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - ResetDecompressor(core::mem::transmute(decompressorhandle)).ok() + ResetDecompressor(decompressorhandle).ok() } #[inline] pub unsafe fn SetCompressorInformation(compressorhandle: COMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *const core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn SetCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); - SetCompressorInformation(core::mem::transmute(compressorhandle), core::mem::transmute(compressinformationclass), core::mem::transmute(compressinformation), core::mem::transmute(compressinformationsize)).ok() + SetCompressorInformation(compressorhandle, compressinformationclass, compressinformation, compressinformationsize).ok() } #[inline] pub unsafe fn SetDecompressorInformation(decompressorhandle: DECOMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *const core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { windows_targets::link!("cabinet.dll" "system" fn SetDecompressorInformation(decompressorhandle : DECOMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); - SetDecompressorInformation(core::mem::transmute(decompressorhandle), core::mem::transmute(compressinformationclass), core::mem::transmute(compressinformation), core::mem::transmute(compressinformationsize)).ok() + SetDecompressorInformation(decompressorhandle, compressinformationclass, compressinformation, compressinformationsize).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs index 3de0ddb7d5..86af0975b7 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs @@ -151,7 +151,7 @@ impl IDedupBackupSupport { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RestoreFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(numberoffiles), core::mem::transmute(filefullpaths), store.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RestoreFiles)(windows_core::Interface::as_raw(self), numberoffiles, core::mem::transmute(filefullpaths), store.param().abi(), flags, &mut result__).map(|| result__) } } #[repr(C)] @@ -192,7 +192,7 @@ impl IDedupChunkLibrary { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetParameter(&self, dwparamtype: u32, vparamvalue: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparamtype), core::mem::transmute_copy(vparamvalue)).ok() + (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), dwparamtype, core::mem::transmute_copy(vparamvalue)).ok() } pub unsafe fn StartChunking(&self, iiditeratorinterfaceid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -276,7 +276,7 @@ impl IDedupDataPort { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertChunksWithStream)(windows_core::Interface::as_raw(self), pchunkmetadata.len().try_into().unwrap(), core::mem::transmute(pchunkmetadata.as_ptr()), core::mem::transmute(databytecount), pchunkdatastream.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InsertChunksWithStream)(windows_core::Interface::as_raw(self), pchunkmetadata.len().try_into().unwrap(), core::mem::transmute(pchunkmetadata.as_ptr()), databytecount, pchunkdatastream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CommitStreams(&self, pstreams: &[DedupStream], pentries: &[DedupStreamEntry]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -288,28 +288,28 @@ impl IDedupDataPort { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CommitStreamsWithStream)(windows_core::Interface::as_raw(self), pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr()), core::mem::transmute(entrycount), pentriesstream.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CommitStreamsWithStream)(windows_core::Interface::as_raw(self), pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr()), entrycount, pentriesstream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetStreams(&self, pstreampaths: &[windows_core::BSTR]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreams)(windows_core::Interface::as_raw(self), pstreampaths.len().try_into().unwrap(), core::mem::transmute(pstreampaths.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn GetStreamsResults(&self, requestid: windows_core::GUID, maxwaitms: u32, streamentryindex: u32, pstreamcount: *mut u32, ppstreams: *mut *mut DedupStream, pentrycount: *mut u32, ppentries: *mut *mut DedupStreamEntry, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStreamsResults)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), core::mem::transmute(maxwaitms), core::mem::transmute(streamentryindex), core::mem::transmute(pstreamcount), core::mem::transmute(ppstreams), core::mem::transmute(pentrycount), core::mem::transmute(ppentries), core::mem::transmute(pstatus), core::mem::transmute(ppitemresults)).ok() + (windows_core::Interface::vtable(self).GetStreamsResults)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), maxwaitms, streamentryindex, core::mem::transmute(pstreamcount), core::mem::transmute(ppstreams), core::mem::transmute(pentrycount), core::mem::transmute(ppentries), core::mem::transmute(pstatus), core::mem::transmute(ppitemresults)).ok() } pub unsafe fn GetChunks(&self, phashes: &[DedupHash]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetChunks)(windows_core::Interface::as_raw(self), phashes.len().try_into().unwrap(), core::mem::transmute(phashes.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn GetChunksResults(&self, requestid: windows_core::GUID, maxwaitms: u32, chunkindex: u32, pchunkcount: *mut u32, ppchunkmetadata: *mut *mut DedupChunk, pdatabytecount: *mut u32, ppchunkdata: *mut *mut u8, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChunksResults)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), core::mem::transmute(maxwaitms), core::mem::transmute(chunkindex), core::mem::transmute(pchunkcount), core::mem::transmute(ppchunkmetadata), core::mem::transmute(pdatabytecount), core::mem::transmute(ppchunkdata), core::mem::transmute(pstatus), core::mem::transmute(ppitemresults)).ok() + (windows_core::Interface::vtable(self).GetChunksResults)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), maxwaitms, chunkindex, core::mem::transmute(pchunkcount), core::mem::transmute(ppchunkmetadata), core::mem::transmute(pdatabytecount), core::mem::transmute(ppchunkdata), core::mem::transmute(pstatus), core::mem::transmute(ppitemresults)).ok() } pub unsafe fn GetRequestStatus(&self, requestid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRequestStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), &mut result__).map(|| result__) } pub unsafe fn GetRequestResults(&self, requestid: windows_core::GUID, maxwaitms: u32, pbatchresult: *mut windows_core::HRESULT, pbatchcount: *mut u32, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRequestResults)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), core::mem::transmute(maxwaitms), core::mem::transmute(pbatchresult), core::mem::transmute(pbatchcount), core::mem::transmute(pstatus), core::mem::transmute(ppitemresults)).ok() + (windows_core::Interface::vtable(self).GetRequestResults)(windows_core::Interface::as_raw(self), core::mem::transmute(requestid), maxwaitms, core::mem::transmute(pbatchresult), core::mem::transmute(pbatchcount), core::mem::transmute(pstatus), core::mem::transmute(ppitemresults)).ok() } } #[repr(C)] @@ -478,11 +478,11 @@ impl IDedupDataPortManager { } pub unsafe fn GetVolumeStatus(&self, options: u32, path: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVolumeStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute_copy(path), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVolumeStatus)(windows_core::Interface::as_raw(self), options, core::mem::transmute_copy(path), &mut result__).map(|| result__) } pub unsafe fn GetVolumeDataPort(&self, options: u32, path: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVolumeDataPort)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVolumeDataPort)(windows_core::Interface::as_raw(self), options, core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -600,7 +600,7 @@ windows_core::imp::define_interface!(IDedupReadFileCallback, IDedupReadFileCallb windows_core::imp::interface_hierarchy!(IDedupReadFileCallback, windows_core::IUnknown); impl IDedupReadFileCallback { pub unsafe fn ReadBackupFile(&self, filefullpath: &windows_core::BSTR, fileoffset: i64, filebuffer: &mut [u8], returnedsize: *mut u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadBackupFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filefullpath), core::mem::transmute(fileoffset), filebuffer.len().try_into().unwrap(), core::mem::transmute(filebuffer.as_ptr()), core::mem::transmute(returnedsize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ReadBackupFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filefullpath), fileoffset, filebuffer.len().try_into().unwrap(), core::mem::transmute(filebuffer.as_ptr()), core::mem::transmute(returnedsize), flags).ok() } pub unsafe fn OrderContainersRestore(&self, containerpaths: &[windows_core::BSTR], readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OrderContainersRestore)(windows_core::Interface::as_raw(self), containerpaths.len().try_into().unwrap(), core::mem::transmute(containerpaths.as_ptr()), core::mem::transmute(readplanentries), core::mem::transmute(readplan)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Storage/DistributedFileSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/DistributedFileSystem/mod.rs index 487225a630..dc3598c2d0 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DistributedFileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DistributedFileSystem/mod.rs @@ -7,7 +7,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsAdd(dfsentrypath : windows_core::PCWSTR, servername : windows_core::PCWSTR, sharename : windows_core::PCWSTR, comment : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsAdd(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), comment.param().abi(), core::mem::transmute(flags)) + NetDfsAdd(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), comment.param().abi(), flags) } #[inline] pub unsafe fn NetDfsAddFtRoot(servername: P0, rootshare: P1, ftdfsname: P2, comment: P3, flags: u32) -> u32 @@ -18,7 +18,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsAddFtRoot(servername : windows_core::PCWSTR, rootshare : windows_core::PCWSTR, ftdfsname : windows_core::PCWSTR, comment : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsAddFtRoot(servername.param().abi(), rootshare.param().abi(), ftdfsname.param().abi(), comment.param().abi(), core::mem::transmute(flags)) + NetDfsAddFtRoot(servername.param().abi(), rootshare.param().abi(), ftdfsname.param().abi(), comment.param().abi(), flags) } #[inline] pub unsafe fn NetDfsAddRootTarget(pdfspath: P0, ptargetpath: P1, majorversion: u32, pcomment: P3, flags: u32) -> u32 @@ -28,7 +28,7 @@ where P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsAddRootTarget(pdfspath : windows_core::PCWSTR, ptargetpath : windows_core::PCWSTR, majorversion : u32, pcomment : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsAddRootTarget(pdfspath.param().abi(), ptargetpath.param().abi(), core::mem::transmute(majorversion), pcomment.param().abi(), core::mem::transmute(flags)) + NetDfsAddRootTarget(pdfspath.param().abi(), ptargetpath.param().abi(), majorversion, pcomment.param().abi(), flags) } #[inline] pub unsafe fn NetDfsAddStdRoot(servername: P0, rootshare: P1, comment: P2, flags: u32) -> u32 @@ -38,7 +38,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsAddStdRoot(servername : windows_core::PCWSTR, rootshare : windows_core::PCWSTR, comment : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsAddStdRoot(servername.param().abi(), rootshare.param().abi(), comment.param().abi(), core::mem::transmute(flags)) + NetDfsAddStdRoot(servername.param().abi(), rootshare.param().abi(), comment.param().abi(), flags) } #[inline] pub unsafe fn NetDfsEnum(dfsname: P0, level: u32, prefmaxlen: u32, buffer: *mut *mut u8, entriesread: *mut u32, resumehandle: *mut u32) -> u32 @@ -46,7 +46,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsEnum(dfsname : windows_core::PCWSTR, level : u32, prefmaxlen : u32, buffer : *mut *mut u8, entriesread : *mut u32, resumehandle : *mut u32) -> u32); - NetDfsEnum(dfsname.param().abi(), core::mem::transmute(level), core::mem::transmute(prefmaxlen), core::mem::transmute(buffer), core::mem::transmute(entriesread), core::mem::transmute(resumehandle)) + NetDfsEnum(dfsname.param().abi(), level, prefmaxlen, core::mem::transmute(buffer), core::mem::transmute(entriesread), core::mem::transmute(resumehandle)) } #[inline] pub unsafe fn NetDfsGetClientInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *mut *mut u8) -> u32 @@ -56,7 +56,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsGetClientInfo(dfsentrypath : windows_core::PCWSTR, servername : windows_core::PCWSTR, sharename : windows_core::PCWSTR, level : u32, buffer : *mut *mut u8) -> u32); - NetDfsGetClientInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), core::mem::transmute(level), core::mem::transmute(buffer)) + NetDfsGetClientInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, core::mem::transmute(buffer)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -65,7 +65,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsGetFtContainerSecurity(domainname : windows_core::PCWSTR, securityinformation : u32, ppsecuritydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> u32); - NetDfsGetFtContainerSecurity(domainname.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) + NetDfsGetFtContainerSecurity(domainname.param().abi(), securityinformation, core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) } #[inline] pub unsafe fn NetDfsGetInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *mut *mut u8) -> u32 @@ -75,7 +75,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsGetInfo(dfsentrypath : windows_core::PCWSTR, servername : windows_core::PCWSTR, sharename : windows_core::PCWSTR, level : u32, buffer : *mut *mut u8) -> u32); - NetDfsGetInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), core::mem::transmute(level), core::mem::transmute(buffer)) + NetDfsGetInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, core::mem::transmute(buffer)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -84,7 +84,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsGetSecurity(dfsentrypath : windows_core::PCWSTR, securityinformation : u32, ppsecuritydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> u32); - NetDfsGetSecurity(dfsentrypath.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) + NetDfsGetSecurity(dfsentrypath.param().abi(), securityinformation, core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -93,7 +93,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsGetStdContainerSecurity(machinename : windows_core::PCWSTR, securityinformation : u32, ppsecuritydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> u32); - NetDfsGetStdContainerSecurity(machinename.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) + NetDfsGetStdContainerSecurity(machinename.param().abi(), securityinformation, core::mem::transmute(ppsecuritydescriptor), core::mem::transmute(lpcbsecuritydescriptor)) } #[inline] pub unsafe fn NetDfsGetSupportedNamespaceVersion(origin: DFS_NAMESPACE_VERSION_ORIGIN, pname: P1, ppversioninfo: *mut *mut DFS_SUPPORTED_NAMESPACE_VERSION_INFO) -> u32 @@ -101,7 +101,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsGetSupportedNamespaceVersion(origin : DFS_NAMESPACE_VERSION_ORIGIN, pname : windows_core::PCWSTR, ppversioninfo : *mut *mut DFS_SUPPORTED_NAMESPACE_VERSION_INFO) -> u32); - NetDfsGetSupportedNamespaceVersion(core::mem::transmute(origin), pname.param().abi(), core::mem::transmute(ppversioninfo)) + NetDfsGetSupportedNamespaceVersion(origin, pname.param().abi(), core::mem::transmute(ppversioninfo)) } #[inline] pub unsafe fn NetDfsMove(olddfsentrypath: P0, newdfsentrypath: P1, flags: u32) -> u32 @@ -110,7 +110,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsMove(olddfsentrypath : windows_core::PCWSTR, newdfsentrypath : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsMove(olddfsentrypath.param().abi(), newdfsentrypath.param().abi(), core::mem::transmute(flags)) + NetDfsMove(olddfsentrypath.param().abi(), newdfsentrypath.param().abi(), flags) } #[inline] pub unsafe fn NetDfsRemove(dfsentrypath: P0, servername: P1, sharename: P2) -> u32 @@ -150,7 +150,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsRemoveRootTarget(pdfspath : windows_core::PCWSTR, ptargetpath : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsRemoveRootTarget(pdfspath.param().abi(), ptargetpath.param().abi(), core::mem::transmute(flags)) + NetDfsRemoveRootTarget(pdfspath.param().abi(), ptargetpath.param().abi(), flags) } #[inline] pub unsafe fn NetDfsRemoveStdRoot(servername: P0, rootshare: P1, flags: Option) -> u32 @@ -169,7 +169,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsSetClientInfo(dfsentrypath : windows_core::PCWSTR, servername : windows_core::PCWSTR, sharename : windows_core::PCWSTR, level : u32, buffer : *const u8) -> u32); - NetDfsSetClientInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), core::mem::transmute(level), core::mem::transmute(buffer)) + NetDfsSetClientInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, buffer) } #[cfg(feature = "Win32_Security")] #[inline] @@ -178,7 +178,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsSetFtContainerSecurity(domainname : windows_core::PCWSTR, securityinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - NetDfsSetFtContainerSecurity(domainname.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + NetDfsSetFtContainerSecurity(domainname.param().abi(), securityinformation, psecuritydescriptor) } #[inline] pub unsafe fn NetDfsSetInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *const u8) -> u32 @@ -188,7 +188,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsSetInfo(dfsentrypath : windows_core::PCWSTR, servername : windows_core::PCWSTR, sharename : windows_core::PCWSTR, level : u32, buffer : *const u8) -> u32); - NetDfsSetInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), core::mem::transmute(level), core::mem::transmute(buffer)) + NetDfsSetInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, buffer) } #[cfg(feature = "Win32_Security")] #[inline] @@ -197,7 +197,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsSetSecurity(dfsentrypath : windows_core::PCWSTR, securityinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - NetDfsSetSecurity(dfsentrypath.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + NetDfsSetSecurity(dfsentrypath.param().abi(), securityinformation, psecuritydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] @@ -206,7 +206,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsSetStdContainerSecurity(machinename : windows_core::PCWSTR, securityinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - NetDfsSetStdContainerSecurity(machinename.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + NetDfsSetStdContainerSecurity(machinename.param().abi(), securityinformation, psecuritydescriptor) } pub const DFS_ADD_VOLUME: u32 = 1u32; pub const DFS_FORCE_REMOVE: u32 = 2147483648u32; diff --git a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs index 92076e4aec..e8dae73c21 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs @@ -221,7 +221,7 @@ windows_core::imp::define_interface!(IEnhancedStorageACT, IEnhancedStorageACT_Vt windows_core::imp::interface_hierarchy!(IEnhancedStorageACT, windows_core::IUnknown); impl IEnhancedStorageACT { pub unsafe fn Authorize(&self, hwndparent: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Authorize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Authorize)(windows_core::Interface::as_raw(self), hwndparent, dwflags).ok() } pub unsafe fn Unauthorize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unauthorize)(windows_core::Interface::as_raw(self)).ok() @@ -390,7 +390,7 @@ impl core::ops::Deref for IEnhancedStorageACT3 { windows_core::imp::interface_hierarchy!(IEnhancedStorageACT3, windows_core::IUnknown, IEnhancedStorageACT, IEnhancedStorageACT2); impl IEnhancedStorageACT3 { pub unsafe fn UnauthorizeEx(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnauthorizeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).UnauthorizeEx)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn IsQueueFrozen(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -462,7 +462,7 @@ impl IEnhancedStorageSilo { (windows_core::Interface::vtable(self).GetActions)(windows_core::Interface::as_raw(self), core::mem::transmute(pppienhancedstoragesiloactions), core::mem::transmute(pcenhancedstoragesiloactions)).ok() } pub unsafe fn SendCommand(&self, command: u8, pbcommandbuffer: &[u8], pbresponsebuffer: *mut u8, pcbresponsebuffer: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(command), core::mem::transmute(pbcommandbuffer.as_ptr()), pbcommandbuffer.len().try_into().unwrap(), core::mem::transmute(pbresponsebuffer), core::mem::transmute(pcbresponsebuffer)).ok() + (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), command, core::mem::transmute(pbcommandbuffer.as_ptr()), pbcommandbuffer.len().try_into().unwrap(), core::mem::transmute(pbresponsebuffer), core::mem::transmute(pcbresponsebuffer)).ok() } #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn GetPortableDevice(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs index dee29dcea3..bc986fc74c 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn FhServiceBlockBackup(pipe: FH_SERVICE_PIPE_HANDLE) -> windows_core::Result<()> { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceBlockBackup(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceBlockBackup(core::mem::transmute(pipe)).ok() + FhServiceBlockBackup(pipe).ok() } #[inline] pub unsafe fn FhServiceClosePipe(pipe: FH_SERVICE_PIPE_HANDLE) -> windows_core::Result<()> { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceClosePipe(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceClosePipe(core::mem::transmute(pipe)).ok() + FhServiceClosePipe(pipe).ok() } #[inline] pub unsafe fn FhServiceOpenPipe(startserviceifstopped: bool) -> windows_core::Result { @@ -17,22 +17,22 @@ pub unsafe fn FhServiceOpenPipe(startserviceifstopped: bool) -> windows_core::Re #[inline] pub unsafe fn FhServiceReloadConfiguration(pipe: FH_SERVICE_PIPE_HANDLE) -> windows_core::Result<()> { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceReloadConfiguration(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceReloadConfiguration(core::mem::transmute(pipe)).ok() + FhServiceReloadConfiguration(pipe).ok() } #[inline] pub unsafe fn FhServiceStartBackup(pipe: FH_SERVICE_PIPE_HANDLE, lowpriorityio: bool) -> windows_core::Result<()> { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStartBackup(pipe : FH_SERVICE_PIPE_HANDLE, lowpriorityio : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - FhServiceStartBackup(core::mem::transmute(pipe), lowpriorityio.into()).ok() + FhServiceStartBackup(pipe, lowpriorityio.into()).ok() } #[inline] pub unsafe fn FhServiceStopBackup(pipe: FH_SERVICE_PIPE_HANDLE, stoptracking: bool) -> windows_core::Result<()> { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStopBackup(pipe : FH_SERVICE_PIPE_HANDLE, stoptracking : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - FhServiceStopBackup(core::mem::transmute(pipe), stoptracking.into()).ok() + FhServiceStopBackup(pipe, stoptracking.into()).ok() } #[inline] pub unsafe fn FhServiceUnblockBackup(pipe: FH_SERVICE_PIPE_HANDLE) -> windows_core::Result<()> { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceUnblockBackup(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceUnblockBackup(core::mem::transmute(pipe)).ok() + FhServiceUnblockBackup(pipe).ok() } pub const BackupCancelled: FhBackupStopReason = FhBackupStopReason(4i32); pub const BackupInvalidStopReason: FhBackupStopReason = FhBackupStopReason(0i32); @@ -168,25 +168,25 @@ impl IFhConfigMgr { (windows_core::Interface::vtable(self).SaveConfiguration)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddRemoveExcludeRule(&self, add: bool, category: FH_PROTECTED_ITEM_CATEGORY, item: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRemoveExcludeRule)(windows_core::Interface::as_raw(self), add.into(), core::mem::transmute(category), core::mem::transmute_copy(item)).ok() + (windows_core::Interface::vtable(self).AddRemoveExcludeRule)(windows_core::Interface::as_raw(self), add.into(), category, core::mem::transmute_copy(item)).ok() } pub unsafe fn GetIncludeExcludeRules(&self, include: bool, category: FH_PROTECTED_ITEM_CATEGORY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIncludeExcludeRules)(windows_core::Interface::as_raw(self), include.into(), core::mem::transmute(category), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIncludeExcludeRules)(windows_core::Interface::as_raw(self), include.into(), category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLocalPolicy(&self, localpolicytype: FH_LOCAL_POLICY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLocalPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(localpolicytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLocalPolicy)(windows_core::Interface::as_raw(self), localpolicytype, &mut result__).map(|| result__) } pub unsafe fn SetLocalPolicy(&self, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(localpolicytype), core::mem::transmute(policyvalue)).ok() + (windows_core::Interface::vtable(self).SetLocalPolicy)(windows_core::Interface::as_raw(self), localpolicytype, policyvalue).ok() } pub unsafe fn GetBackupStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBackupStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackupStatus(&self, backupstatus: FH_BACKUP_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackupStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(backupstatus)).ok() + (windows_core::Interface::vtable(self).SetBackupStatus)(windows_core::Interface::as_raw(self), backupstatus).ok() } pub unsafe fn GetDefaultTarget(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -362,10 +362,10 @@ impl IFhReassociation { (windows_core::Interface::vtable(self).ScanTargetForConfigurations)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targeturl)).ok() } pub unsafe fn GetConfigurationDetails(&self, index: u32, username: *mut windows_core::BSTR, pcname: *mut windows_core::BSTR, backuptime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConfigurationDetails)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(username), core::mem::transmute(pcname), core::mem::transmute(backuptime)).ok() + (windows_core::Interface::vtable(self).GetConfigurationDetails)(windows_core::Interface::as_raw(self), index, core::mem::transmute(username), core::mem::transmute(pcname), core::mem::transmute(backuptime)).ok() } pub unsafe fn SelectConfiguration(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectConfiguration)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SelectConfiguration)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn PerformReassociation(&self, overwriteifexists: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PerformReassociation)(windows_core::Interface::as_raw(self), overwriteifexists.into()).ok() @@ -482,11 +482,11 @@ windows_core::imp::interface_hierarchy!(IFhTarget, windows_core::IUnknown); impl IFhTarget { pub unsafe fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertytype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStringProperty)(windows_core::Interface::as_raw(self), propertytype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetNumericalProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumericalProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumericalProperty)(windows_core::Interface::as_raw(self), propertytype, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs index 430051c449..08ea2ff372 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs @@ -539,7 +539,7 @@ windows_core::imp::interface_hierarchy!(IFsrmAccessDeniedRemediationClient, wind impl IFsrmAccessDeniedRemediationClient { pub unsafe fn Show(&self, parentwnd: usize, accesspath: &windows_core::BSTR, errortype: AdrClientErrorType, flags: i32, windowtitle: &windows_core::BSTR, windowmessage: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(parentwnd), core::mem::transmute_copy(accesspath), core::mem::transmute(errortype), core::mem::transmute(flags), core::mem::transmute_copy(windowtitle), core::mem::transmute_copy(windowmessage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), parentwnd, core::mem::transmute_copy(accesspath), errortype, flags, core::mem::transmute_copy(windowtitle), core::mem::transmute_copy(windowmessage), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -599,7 +599,7 @@ impl IFsrmAction { (windows_core::Interface::vtable(self).RunLimitInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRunLimitInterval(&self, minutes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRunLimitInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(minutes)).ok() + (windows_core::Interface::vtable(self).SetRunLimitInterval)(windows_core::Interface::as_raw(self), minutes).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -711,7 +711,7 @@ impl IFsrmActionCommand { (windows_core::Interface::vtable(self).Account)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAccount(&self, account: FsrmAccountType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAccount)(windows_core::Interface::as_raw(self), core::mem::transmute(account)).ok() + (windows_core::Interface::vtable(self).SetAccount)(windows_core::Interface::as_raw(self), account).ok() } pub unsafe fn WorkingDirectory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -725,21 +725,21 @@ impl IFsrmActionCommand { (windows_core::Interface::vtable(self).MonitorCommand)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMonitorCommand(&self, monitorcommand: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonitorCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(monitorcommand)).ok() + (windows_core::Interface::vtable(self).SetMonitorCommand)(windows_core::Interface::as_raw(self), monitorcommand).ok() } pub unsafe fn KillTimeOut(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KillTimeOut)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKillTimeOut(&self, minutes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKillTimeOut)(windows_core::Interface::as_raw(self), core::mem::transmute(minutes)).ok() + (windows_core::Interface::vtable(self).SetKillTimeOut)(windows_core::Interface::as_raw(self), minutes).ok() } pub unsafe fn LogResult(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogResult)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogResult(&self, logresults: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogResult)(windows_core::Interface::as_raw(self), core::mem::transmute(logresults)).ok() + (windows_core::Interface::vtable(self).SetLogResult)(windows_core::Interface::as_raw(self), logresults).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1145,7 +1145,7 @@ impl IFsrmActionEmail2 { (windows_core::Interface::vtable(self).AttachmentFileListSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachmentFileListSize(&self, attachmentfilelistsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachmentFileListSize)(windows_core::Interface::as_raw(self), core::mem::transmute(attachmentfilelistsize)).ok() + (windows_core::Interface::vtable(self).SetAttachmentFileListSize)(windows_core::Interface::as_raw(self), attachmentfilelistsize).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1207,7 +1207,7 @@ impl IFsrmActionEventLog { (windows_core::Interface::vtable(self).EventType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventType(&self, eventtype: FsrmEventType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventType)(windows_core::Interface::as_raw(self), core::mem::transmute(eventtype)).ok() + (windows_core::Interface::vtable(self).SetEventType)(windows_core::Interface::as_raw(self), eventtype).ok() } pub unsafe fn MessageText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1298,7 +1298,7 @@ impl IFsrmActionReport { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetReportTypes(&self, reporttypes: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttypes)).ok() + (windows_core::Interface::vtable(self).SetReportTypes)(windows_core::Interface::as_raw(self), reporttypes).ok() } pub unsafe fn MailTo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1395,11 +1395,11 @@ impl IFsrmAutoApplyQuota { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetExcludeFolders(&self, folders: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExcludeFolders)(windows_core::Interface::as_raw(self), core::mem::transmute(folders)).ok() + (windows_core::Interface::vtable(self).SetExcludeFolders)(windows_core::Interface::as_raw(self), folders).ok() } pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CommitAndUpdateDerived)(windows_core::Interface::as_raw(self), core::mem::transmute(commitoptions), core::mem::transmute(applyoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CommitAndUpdateDerived)(windows_core::Interface::as_raw(self), commitoptions, applyoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1482,14 +1482,14 @@ impl IFsrmClassificationManager { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetClassificationReportFormats(&self, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClassificationReportFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(formats)).ok() + (windows_core::Interface::vtable(self).SetClassificationReportFormats)(windows_core::Interface::as_raw(self), formats).ok() } pub unsafe fn Logging(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Logging)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogging(&self, logging: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogging)(windows_core::Interface::as_raw(self), core::mem::transmute(logging)).ok() + (windows_core::Interface::vtable(self).SetLogging)(windows_core::Interface::as_raw(self), logging).ok() } pub unsafe fn ClassificationReportMailTo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1503,7 +1503,7 @@ impl IFsrmClassificationManager { (windows_core::Interface::vtable(self).ClassificationReportEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClassificationReportEnabled(&self, reportenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClassificationReportEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(reportenabled)).ok() + (windows_core::Interface::vtable(self).SetClassificationReportEnabled)(windows_core::Interface::as_raw(self), reportenabled).ok() } pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1519,7 +1519,7 @@ impl IFsrmClassificationManager { } pub unsafe fn EnumPropertyDefinitions(&self, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumPropertyDefinitions)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumPropertyDefinitions)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyDefinition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1531,45 +1531,45 @@ impl IFsrmClassificationManager { } pub unsafe fn EnumRules(&self, ruletype: FsrmRuleType, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRules)(windows_core::Interface::as_raw(self), core::mem::transmute(ruletype), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRules)(windows_core::Interface::as_raw(self), ruletype, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRule(&self, ruletype: FsrmRuleType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRule)(windows_core::Interface::as_raw(self), core::mem::transmute(ruletype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRule)(windows_core::Interface::as_raw(self), ruletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRule(&self, rulename: &windows_core::BSTR, ruletype: FsrmRuleType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(rulename), core::mem::transmute(ruletype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(rulename), ruletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumModuleDefinitions(&self, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumModuleDefinitions)(windows_core::Interface::as_raw(self), core::mem::transmute(moduletype), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumModuleDefinitions)(windows_core::Interface::as_raw(self), moduletype, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateModuleDefinition(&self, moduletype: FsrmPipelineModuleType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateModuleDefinition)(windows_core::Interface::as_raw(self), core::mem::transmute(moduletype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateModuleDefinition)(windows_core::Interface::as_raw(self), moduletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetModuleDefinition(&self, modulename: &windows_core::BSTR, moduletype: FsrmPipelineModuleType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleDefinition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(modulename), core::mem::transmute(moduletype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetModuleDefinition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(modulename), moduletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunClassification)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(reserved)).ok() + (windows_core::Interface::vtable(self).RunClassification)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(reserved)).ok() } pub unsafe fn WaitForClassificationCompletion(&self, waitseconds: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForClassificationCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(waitseconds), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForClassificationCompletion)(windows_core::Interface::as_raw(self), waitseconds, &mut result__).map(|| result__) } pub unsafe fn CancelClassification(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelClassification)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumFileProperties(&self, filepath: &windows_core::BSTR, options: FsrmGetFilePropertyOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileProperties)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filepath), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileProperties)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filepath), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFileProperty(&self, filepath: &windows_core::BSTR, propertyname: &windows_core::BSTR, options: FsrmGetFilePropertyOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filepath), core::mem::transmute_copy(propertyname), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filepath), core::mem::transmute_copy(propertyname), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFileProperty(&self, filepath: &windows_core::BSTR, propertyname: &windows_core::BSTR, propertyvalue: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetFileProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filepath), core::mem::transmute_copy(propertyname), core::mem::transmute_copy(propertyvalue)).ok() @@ -1923,7 +1923,7 @@ windows_core::imp::interface_hierarchy!(IFsrmClassificationManager2, windows_cor impl IFsrmClassificationManager2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ClassifyFiles(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).ClassifyFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(filepaths), core::mem::transmute(propertynames), core::mem::transmute(propertyvalues), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).ClassifyFiles)(windows_core::Interface::as_raw(self), filepaths, propertynames, propertyvalues, options).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1972,7 +1972,7 @@ impl IFsrmClassificationRule { (windows_core::Interface::vtable(self).ExecutionOption)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionOption(&self, executionoption: FsrmExecutionOption) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionOption)(windows_core::Interface::as_raw(self), core::mem::transmute(executionoption)).ok() + (windows_core::Interface::vtable(self).SetExecutionOption)(windows_core::Interface::as_raw(self), executionoption).ok() } pub unsafe fn PropertyAffected(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2090,7 +2090,7 @@ impl IFsrmClassifierModuleDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPropertiesAffected(&self, propertiesaffected: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertiesAffected)(windows_core::Interface::as_raw(self), core::mem::transmute(propertiesaffected)).ok() + (windows_core::Interface::vtable(self).SetPropertiesAffected)(windows_core::Interface::as_raw(self), propertiesaffected).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PropertiesUsed(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2099,14 +2099,14 @@ impl IFsrmClassifierModuleDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPropertiesUsed(&self, propertiesused: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertiesUsed)(windows_core::Interface::as_raw(self), core::mem::transmute(propertiesused)).ok() + (windows_core::Interface::vtable(self).SetPropertiesUsed)(windows_core::Interface::as_raw(self), propertiesused).ok() } pub unsafe fn NeedsExplicitValue(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NeedsExplicitValue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNeedsExplicitValue(&self, needsexplicitvalue: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNeedsExplicitValue)(windows_core::Interface::as_raw(self), core::mem::transmute(needsexplicitvalue)).ok() + (windows_core::Interface::vtable(self).SetNeedsExplicitValue)(windows_core::Interface::as_raw(self), needsexplicitvalue).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2232,7 +2232,7 @@ impl IFsrmClassifierModuleImplementation { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeginFile)(windows_core::Interface::as_raw(self), propertybag.param().abi(), core::mem::transmute(arrayruleids)).ok() + (windows_core::Interface::vtable(self).OnBeginFile)(windows_core::Interface::as_raw(self), propertybag.param().abi(), arrayruleids).ok() } pub unsafe fn DoesPropertyValueApply(&self, property: &windows_core::BSTR, value: &windows_core::BSTR, applyvalue: *mut super::super::Foundation::VARIANT_BOOL, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DoesPropertyValueApply)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(property), core::mem::transmute_copy(value), core::mem::transmute(applyvalue), core::mem::transmute(idrule), core::mem::transmute(idpropdef)).ok() @@ -2339,7 +2339,7 @@ impl IFsrmCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2354,7 +2354,7 @@ impl IFsrmCollection { } pub unsafe fn WaitForCompletion(&self, waitseconds: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(waitseconds), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), waitseconds, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetById(&self, id: windows_core::GUID) -> windows_core::Result { @@ -2489,7 +2489,7 @@ windows_core::imp::interface_hierarchy!(IFsrmCommittableCollection, windows_core impl IFsrmCommittableCollection { pub unsafe fn Commit(&self, options: FsrmCommitOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2815,21 +2815,21 @@ impl IFsrmFileConditionProperty { (windows_core::Interface::vtable(self).PropertyId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPropertyId(&self, newval: FsrmFileSystemPropertyId) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertyId)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetPropertyId)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Operator(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Operator)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOperator(&self, newval: FsrmPropertyConditionType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperator)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetOperator)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ValueType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ValueType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetValueType(&self, newval: FsrmPropertyValueType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueType)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetValueType)(windows_core::Interface::as_raw(self), newval).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Value(&self) -> windows_core::Result { @@ -3108,7 +3108,7 @@ impl IFsrmFileGroupImported { (windows_core::Interface::vtable(self).OverwriteOnCommit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOverwriteOnCommit(&self, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(overwrite)).ok() + (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3175,7 +3175,7 @@ impl IFsrmFileGroupManager { } pub unsafe fn EnumFileGroups(&self, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileGroups)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileGroups)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ExportFileGroups(&self, filegroupnamesarray: *const super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -3307,21 +3307,21 @@ impl IFsrmFileManagementJob { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNamespaceRoots(&self, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNamespaceRoots)(windows_core::Interface::as_raw(self), core::mem::transmute(namespaceroots)).ok() + (windows_core::Interface::vtable(self).SetNamespaceRoots)(windows_core::Interface::as_raw(self), namespaceroots).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn OperationType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OperationType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOperationType(&self, operationtype: FsrmFileManagementType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperationType)(windows_core::Interface::as_raw(self), core::mem::transmute(operationtype)).ok() + (windows_core::Interface::vtable(self).SetOperationType)(windows_core::Interface::as_raw(self), operationtype).ok() } pub unsafe fn ExpirationDirectory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3344,14 +3344,14 @@ impl IFsrmFileManagementJob { (windows_core::Interface::vtable(self).Logging)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogging(&self, loggingflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogging)(windows_core::Interface::as_raw(self), core::mem::transmute(loggingflags)).ok() + (windows_core::Interface::vtable(self).SetLogging)(windows_core::Interface::as_raw(self), loggingflags).ok() } pub unsafe fn ReportEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReportEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReportEnabled(&self, reportenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(reportenabled)).ok() + (windows_core::Interface::vtable(self).SetReportEnabled)(windows_core::Interface::as_raw(self), reportenabled).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Formats(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -3360,7 +3360,7 @@ impl IFsrmFileManagementJob { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormats(&self, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(formats)).ok() + (windows_core::Interface::vtable(self).SetFormats)(windows_core::Interface::as_raw(self), formats).ok() } pub unsafe fn MailTo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3374,21 +3374,21 @@ impl IFsrmFileManagementJob { (windows_core::Interface::vtable(self).DaysSinceFileCreated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDaysSinceFileCreated(&self, dayssincecreation: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysSinceFileCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(dayssincecreation)).ok() + (windows_core::Interface::vtable(self).SetDaysSinceFileCreated)(windows_core::Interface::as_raw(self), dayssincecreation).ok() } pub unsafe fn DaysSinceFileLastAccessed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DaysSinceFileLastAccessed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDaysSinceFileLastAccessed(&self, dayssinceaccess: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysSinceFileLastAccessed)(windows_core::Interface::as_raw(self), core::mem::transmute(dayssinceaccess)).ok() + (windows_core::Interface::vtable(self).SetDaysSinceFileLastAccessed)(windows_core::Interface::as_raw(self), dayssinceaccess).ok() } pub unsafe fn DaysSinceFileLastModified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DaysSinceFileLastModified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDaysSinceFileLastModified(&self, dayssincemodify: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysSinceFileLastModified)(windows_core::Interface::as_raw(self), core::mem::transmute(dayssincemodify)).ok() + (windows_core::Interface::vtable(self).SetDaysSinceFileLastModified)(windows_core::Interface::as_raw(self), dayssincemodify).ok() } pub unsafe fn PropertyConditions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3399,7 +3399,7 @@ impl IFsrmFileManagementJob { (windows_core::Interface::vtable(self).FromDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFromDate(&self, fromdate: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFromDate)(windows_core::Interface::as_raw(self), core::mem::transmute(fromdate)).ok() + (windows_core::Interface::vtable(self).SetFromDate)(windows_core::Interface::as_raw(self), fromdate).ok() } pub unsafe fn Task(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3415,7 +3415,7 @@ impl IFsrmFileManagementJob { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetParameters(&self, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(parameters)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), parameters).ok() } pub unsafe fn RunningStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3441,31 +3441,31 @@ impl IFsrmFileManagementJob { (windows_core::Interface::vtable(self).SetFileNamePattern)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filenamepattern)).ok() } pub unsafe fn Run(&self, context: FsrmReportGenerationContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn WaitForCompletion(&self, waitseconds: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(waitseconds), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), waitseconds, &mut result__).map(|| result__) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddNotification(&self, days: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).AddNotification)(windows_core::Interface::as_raw(self), days).ok() } pub unsafe fn DeleteNotification(&self, days: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).DeleteNotification)(windows_core::Interface::as_raw(self), days).ok() } pub unsafe fn ModifyNotification(&self, days: i32, newdays: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(days), core::mem::transmute(newdays)).ok() + (windows_core::Interface::vtable(self).ModifyNotification)(windows_core::Interface::as_raw(self), days, newdays).ok() } pub unsafe fn CreateNotificationAction(&self, days: i32, actiontype: FsrmActionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNotificationAction)(windows_core::Interface::as_raw(self), core::mem::transmute(days), core::mem::transmute(actiontype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNotificationAction)(windows_core::Interface::as_raw(self), days, actiontype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumNotificationActions(&self, days: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumNotificationActions)(windows_core::Interface::as_raw(self), core::mem::transmute(days), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumNotificationActions)(windows_core::Interface::as_raw(self), days, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyCondition(&self, name: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4054,7 +4054,7 @@ impl IFsrmFileManagementJobManager { } pub unsafe fn EnumFileManagementJobs(&self, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileManagementJobs)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileManagementJobs)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFileManagementJob(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4315,11 +4315,11 @@ impl IFsrmFileScreenBase { (windows_core::Interface::vtable(self).FileScreenFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFileScreenFlags(&self, filescreenflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileScreenFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(filescreenflags)).ok() + (windows_core::Interface::vtable(self).SetFileScreenFlags)(windows_core::Interface::as_raw(self), filescreenflags).ok() } pub unsafe fn CreateAction(&self, actiontype: FsrmActionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAction)(windows_core::Interface::as_raw(self), core::mem::transmute(actiontype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAction)(windows_core::Interface::as_raw(self), actiontype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumActions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4528,7 +4528,7 @@ impl IFsrmFileScreenManager { } pub unsafe fn EnumFileScreens(&self, path: &windows_core::BSTR, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileScreens)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileScreens)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFileScreenException(&self, path: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4540,7 +4540,7 @@ impl IFsrmFileScreenManager { } pub unsafe fn EnumFileScreenExceptions(&self, path: &windows_core::BSTR, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileScreenExceptions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileScreenExceptions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFileScreenCollection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4716,7 +4716,7 @@ impl IFsrmFileScreenTemplate { } pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CommitAndUpdateDerived)(windows_core::Interface::as_raw(self), core::mem::transmute(commitoptions), core::mem::transmute(applyoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CommitAndUpdateDerived)(windows_core::Interface::as_raw(self), commitoptions, applyoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4798,7 +4798,7 @@ impl IFsrmFileScreenTemplateImported { (windows_core::Interface::vtable(self).OverwriteOnCommit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOverwriteOnCommit(&self, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(overwrite)).ok() + (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4865,7 +4865,7 @@ impl IFsrmFileScreenTemplateManager { } pub unsafe fn EnumTemplates(&self, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumTemplates)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumTemplates)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ExportTemplates(&self, filescreentemplatenamesarray: *const super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -4988,7 +4988,7 @@ impl IFsrmMutableCollection { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(item)).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn RemoveById(&self, id: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveById)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() @@ -5378,21 +5378,21 @@ impl IFsrmPipelineModuleDefinition { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn NeedsFileContent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NeedsFileContent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNeedsFileContent(&self, needsfilecontent: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNeedsFileContent)(windows_core::Interface::as_raw(self), core::mem::transmute(needsfilecontent)).ok() + (windows_core::Interface::vtable(self).SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent).ok() } pub unsafe fn Account(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Account)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAccount(&self, retrievalaccount: FsrmAccountType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAccount)(windows_core::Interface::as_raw(self), core::mem::transmute(retrievalaccount)).ok() + (windows_core::Interface::vtable(self).SetAccount)(windows_core::Interface::as_raw(self), retrievalaccount).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SupportedExtensions(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -5401,7 +5401,7 @@ impl IFsrmPipelineModuleDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSupportedExtensions(&self, supportedextensions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportedExtensions)(windows_core::Interface::as_raw(self), core::mem::transmute(supportedextensions)).ok() + (windows_core::Interface::vtable(self).SetSupportedExtensions)(windows_core::Interface::as_raw(self), supportedextensions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parameters(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -5410,7 +5410,7 @@ impl IFsrmPipelineModuleDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetParameters(&self, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(parameters)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), parameters).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5914,7 +5914,7 @@ impl IFsrmPropertyBag { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFileStreamInterface(&self, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileStreamInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(accessmode), core::mem::transmute(interfacetype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFileStreamInterface)(windows_core::Interface::as_raw(self), accessmode, interfacetype, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6245,7 +6245,7 @@ impl IFsrmPropertyBag2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFieldValue(&self, field: FsrmPropertyBagField) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldValue)(windows_core::Interface::as_raw(self), core::mem::transmute(field), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFieldValue)(windows_core::Interface::as_raw(self), field, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetUntrustedInFileProperties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6327,7 +6327,7 @@ impl IFsrmPropertyCondition { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, r#type: FsrmPropertyConditionType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6453,7 +6453,7 @@ impl IFsrmPropertyDefinition { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, r#type: FsrmPropertyDefinitionType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), r#type).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PossibleValues(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -6462,7 +6462,7 @@ impl IFsrmPropertyDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPossibleValues(&self, possiblevalues: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPossibleValues)(windows_core::Interface::as_raw(self), core::mem::transmute(possiblevalues)).ok() + (windows_core::Interface::vtable(self).SetPossibleValues)(windows_core::Interface::as_raw(self), possiblevalues).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ValueDescriptions(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -6471,7 +6471,7 @@ impl IFsrmPropertyDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetValueDescriptions(&self, valuedescriptions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueDescriptions)(windows_core::Interface::as_raw(self), core::mem::transmute(valuedescriptions)).ok() + (windows_core::Interface::vtable(self).SetValueDescriptions)(windows_core::Interface::as_raw(self), valuedescriptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parameters(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -6480,7 +6480,7 @@ impl IFsrmPropertyDefinition { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetParameters(&self, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(parameters)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), parameters).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6979,7 +6979,7 @@ impl IFsrmQuotaBase { (windows_core::Interface::vtable(self).QuotaFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuotaFlags(&self, quotaflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuotaFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(quotaflags)).ok() + (windows_core::Interface::vtable(self).SetQuotaFlags)(windows_core::Interface::as_raw(self), quotaflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Thresholds(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -6987,21 +6987,21 @@ impl IFsrmQuotaBase { (windows_core::Interface::vtable(self).Thresholds)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddThreshold(&self, threshold: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(threshold)).ok() + (windows_core::Interface::vtable(self).AddThreshold)(windows_core::Interface::as_raw(self), threshold).ok() } pub unsafe fn DeleteThreshold(&self, threshold: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(threshold)).ok() + (windows_core::Interface::vtable(self).DeleteThreshold)(windows_core::Interface::as_raw(self), threshold).ok() } pub unsafe fn ModifyThreshold(&self, threshold: i32, newthreshold: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(threshold), core::mem::transmute(newthreshold)).ok() + (windows_core::Interface::vtable(self).ModifyThreshold)(windows_core::Interface::as_raw(self), threshold, newthreshold).ok() } pub unsafe fn CreateThresholdAction(&self, threshold: i32, actiontype: FsrmActionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateThresholdAction)(windows_core::Interface::as_raw(self), core::mem::transmute(threshold), core::mem::transmute(actiontype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateThresholdAction)(windows_core::Interface::as_raw(self), threshold, actiontype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumThresholdActions(&self, threshold: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumThresholdActions)(windows_core::Interface::as_raw(self), core::mem::transmute(threshold), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumThresholdActions)(windows_core::Interface::as_raw(self), threshold, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7179,15 +7179,15 @@ impl IFsrmQuotaManager { } pub unsafe fn EnumQuotas(&self, path: &windows_core::BSTR, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumQuotas)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumQuotas)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAutoApplyQuotas(&self, path: &windows_core::BSTR, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAutoApplyQuotas)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumAutoApplyQuotas)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumEffectiveQuotas(&self, path: &windows_core::BSTR, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumEffectiveQuotas)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumEffectiveQuotas)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Scan(&self, strpath: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strpath)).ok() @@ -7389,7 +7389,7 @@ windows_core::imp::interface_hierarchy!(IFsrmQuotaManagerEx, windows_core::IUnkn impl IFsrmQuotaManagerEx { pub unsafe fn IsAffectedByQuota(&self, path: &windows_core::BSTR, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsAffectedByQuota)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(options), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsAffectedByQuota)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), options, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7578,7 +7578,7 @@ impl IFsrmQuotaTemplate { } pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CommitAndUpdateDerived)(windows_core::Interface::as_raw(self), core::mem::transmute(commitoptions), core::mem::transmute(applyoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CommitAndUpdateDerived)(windows_core::Interface::as_raw(self), commitoptions, applyoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7660,7 +7660,7 @@ impl IFsrmQuotaTemplateImported { (windows_core::Interface::vtable(self).OverwriteOnCommit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOverwriteOnCommit(&self, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(overwrite)).ok() + (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7727,7 +7727,7 @@ impl IFsrmQuotaTemplateManager { } pub unsafe fn EnumTemplates(&self, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumTemplates)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumTemplates)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ExportTemplates(&self, quotatemplatenamesarray: *const super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -7870,11 +7870,11 @@ impl IFsrmReport { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFilter(&self, filter: FsrmReportFilter) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), filter, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetFilter(&self, filter: FsrmReportFilter, filtervalue: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), core::mem::transmute_copy(filtervalue)).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), filter, core::mem::transmute_copy(filtervalue)).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -8027,7 +8027,7 @@ impl IFsrmReportJob { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNamespaceRoots(&self, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNamespaceRoots)(windows_core::Interface::as_raw(self), core::mem::transmute(namespaceroots)).ok() + (windows_core::Interface::vtable(self).SetNamespaceRoots)(windows_core::Interface::as_raw(self), namespaceroots).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Formats(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -8036,7 +8036,7 @@ impl IFsrmReportJob { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormats(&self, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormats)(windows_core::Interface::as_raw(self), core::mem::transmute(formats)).ok() + (windows_core::Interface::vtable(self).SetFormats)(windows_core::Interface::as_raw(self), formats).ok() } pub unsafe fn MailTo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8067,14 +8067,14 @@ impl IFsrmReportJob { } pub unsafe fn CreateReport(&self, reporttype: FsrmReportType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateReport)(windows_core::Interface::as_raw(self), reporttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Run(&self, context: FsrmReportGenerationContext) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn WaitForCompletion(&self, waitseconds: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(waitseconds), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), waitseconds, &mut result__).map(|| result__) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -8313,7 +8313,7 @@ windows_core::imp::interface_hierarchy!(IFsrmReportManager, windows_core::IUnkno impl IFsrmReportManager { pub unsafe fn EnumReportJobs(&self, options: FsrmEnumOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumReportJobs)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumReportJobs)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateReportJob(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8325,32 +8325,32 @@ impl IFsrmReportManager { } pub unsafe fn GetOutputDirectory(&self, context: FsrmReportGenerationContext) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(context), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetOutputDirectory)(windows_core::Interface::as_raw(self), context, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetOutputDirectory(&self, context: FsrmReportGenerationContext, path: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(path)).ok() + (windows_core::Interface::vtable(self).SetOutputDirectory)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(path)).ok() } pub unsafe fn IsFilterValidForReportType(&self, reporttype: FsrmReportType, filter: FsrmReportFilter) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsFilterValidForReportType)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), core::mem::transmute(filter), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsFilterValidForReportType)(windows_core::Interface::as_raw(self), reporttype, filter, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetDefaultFilter(&self, reporttype: FsrmReportType, filter: FsrmReportFilter) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), core::mem::transmute(filter), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDefaultFilter)(windows_core::Interface::as_raw(self), reporttype, filter, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetDefaultFilter(&self, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(reporttype), core::mem::transmute(filter), core::mem::transmute_copy(filtervalue)).ok() + (windows_core::Interface::vtable(self).SetDefaultFilter)(windows_core::Interface::as_raw(self), reporttype, filter, core::mem::transmute_copy(filtervalue)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetReportSizeLimit(&self, limit: FsrmReportLimit) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReportSizeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(limit), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetReportSizeLimit)(windows_core::Interface::as_raw(self), limit, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetReportSizeLimit(&self, limit: FsrmReportLimit, limitvalue: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportSizeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(limit), core::mem::transmute_copy(limitvalue)).ok() + (windows_core::Interface::vtable(self).SetReportSizeLimit)(windows_core::Interface::as_raw(self), limit, core::mem::transmute_copy(limitvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8623,14 +8623,14 @@ impl IFsrmRule { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNamespaceRoots(&self, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNamespaceRoots)(windows_core::Interface::as_raw(self), core::mem::transmute(namespaceroots)).ok() + (windows_core::Interface::vtable(self).SetNamespaceRoots)(windows_core::Interface::as_raw(self), namespaceroots).ok() } pub unsafe fn RuleFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RuleFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRuleFlags(&self, ruleflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRuleFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ruleflags)).ok() + (windows_core::Interface::vtable(self).SetRuleFlags)(windows_core::Interface::as_raw(self), ruleflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parameters(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -8639,7 +8639,7 @@ impl IFsrmRule { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetParameters(&self, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(parameters)).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), parameters).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn LastModified(&self) -> windows_core::Result { @@ -8848,24 +8848,24 @@ impl IFsrmSetting { (windows_core::Interface::vtable(self).DisableCommandLine)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisableCommandLine(&self, disablecommandline: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisableCommandLine)(windows_core::Interface::as_raw(self), core::mem::transmute(disablecommandline)).ok() + (windows_core::Interface::vtable(self).SetDisableCommandLine)(windows_core::Interface::as_raw(self), disablecommandline).ok() } pub unsafe fn EnableScreeningAudit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableScreeningAudit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnableScreeningAudit(&self, enablescreeningaudit: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableScreeningAudit)(windows_core::Interface::as_raw(self), core::mem::transmute(enablescreeningaudit)).ok() + (windows_core::Interface::vtable(self).SetEnableScreeningAudit)(windows_core::Interface::as_raw(self), enablescreeningaudit).ok() } pub unsafe fn EmailTest(&self, mailto: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EmailTest)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(mailto)).ok() } pub unsafe fn SetActionRunLimitInterval(&self, actiontype: FsrmActionType, delaytimeminutes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActionRunLimitInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(actiontype), core::mem::transmute(delaytimeminutes)).ok() + (windows_core::Interface::vtable(self).SetActionRunLimitInterval)(windows_core::Interface::as_raw(self), actiontype, delaytimeminutes).ok() } pub unsafe fn GetActionRunLimitInterval(&self, actiontype: FsrmActionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActionRunLimitInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(actiontype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetActionRunLimitInterval)(windows_core::Interface::as_raw(self), actiontype, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9034,21 +9034,21 @@ impl IFsrmStorageModuleDefinition { (windows_core::Interface::vtable(self).Capabilities)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCapabilities(&self, capabilities: FsrmStorageModuleCaps) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(capabilities)).ok() + (windows_core::Interface::vtable(self).SetCapabilities)(windows_core::Interface::as_raw(self), capabilities).ok() } pub unsafe fn StorageType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StorageType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStorageType(&self, storagetype: FsrmStorageModuleType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStorageType)(windows_core::Interface::as_raw(self), core::mem::transmute(storagetype)).ok() + (windows_core::Interface::vtable(self).SetStorageType)(windows_core::Interface::as_raw(self), storagetype).ok() } pub unsafe fn UpdatesFileContent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UpdatesFileContent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUpdatesFileContent(&self, updatesfilecontent: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpdatesFileContent)(windows_core::Interface::as_raw(self), core::mem::transmute(updatesfilecontent)).ok() + (windows_core::Interface::vtable(self).SetUpdatesFileContent)(windows_core::Interface::as_raw(self), updatesfilecontent).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs index 6b119e2842..15788db988 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -4,12 +4,12 @@ where P2: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn AddLogContainer(hlog : super::super::Foundation:: HANDLE, pcbcontainer : *const u64, pwszcontainerpath : windows_core::PCWSTR, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - AddLogContainer(core::mem::transmute(hlog), core::mem::transmute(pcbcontainer.unwrap_or(core::mem::zeroed())), pwszcontainerpath.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() + AddLogContainer(hlog, core::mem::transmute(pcbcontainer.unwrap_or(core::mem::zeroed())), pwszcontainerpath.param().abi(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AddLogContainerSet(hlog: super::super::Foundation::HANDLE, pcbcontainer: Option<*const u64>, rgwszcontainerpath: &[windows_core::PCWSTR], preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn AddLogContainerSet(hlog : super::super::Foundation:: HANDLE, ccontainer : u16, pcbcontainer : *const u64, rgwszcontainerpath : *const windows_core::PCWSTR, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - AddLogContainerSet(core::mem::transmute(hlog), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(pcbcontainer.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgwszcontainerpath.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() + AddLogContainerSet(hlog, rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(pcbcontainer.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgwszcontainerpath.as_ptr()), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -18,23 +18,23 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddUsersToEncryptedFile(lpfilename : windows_core::PCWSTR, pencryptioncertificates : *const ENCRYPTION_CERTIFICATE_LIST) -> u32); - AddUsersToEncryptedFile(lpfilename.param().abi(), core::mem::transmute(pencryptioncertificates)) + AddUsersToEncryptedFile(lpfilename.param().abi(), pencryptioncertificates) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn AdvanceLogBase(pvmarshal: *mut core::ffi::c_void, plsnbase: *mut CLS_LSN, fflags: u32, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn AdvanceLogBase(pvmarshal : *mut core::ffi::c_void, plsnbase : *mut CLS_LSN, fflags : u32, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - AdvanceLogBase(core::mem::transmute(pvmarshal), core::mem::transmute(plsnbase), core::mem::transmute(fflags), core::mem::transmute(poverlapped)).ok() + AdvanceLogBase(core::mem::transmute(pvmarshal), core::mem::transmute(plsnbase), fflags, core::mem::transmute(poverlapped)).ok() } #[inline] pub unsafe fn AlignReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecords: u32, rgcbreservation: *mut i64, pcbalignreservation: *mut i64) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn AlignReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, rgcbreservation : *mut i64, pcbalignreservation : *mut i64) -> super::super::Foundation:: BOOL); - AlignReservedLog(core::mem::transmute(pvmarshal), core::mem::transmute(creservedrecords), core::mem::transmute(rgcbreservation), core::mem::transmute(pcbalignreservation)).ok() + AlignReservedLog(core::mem::transmute(pvmarshal), creservedrecords, core::mem::transmute(rgcbreservation), core::mem::transmute(pcbalignreservation)).ok() } #[inline] pub unsafe fn AllocReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecords: u32, pcbadjustment: *mut i64) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn AllocReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, pcbadjustment : *mut i64) -> super::super::Foundation:: BOOL); - AllocReservedLog(core::mem::transmute(pvmarshal), core::mem::transmute(creservedrecords), core::mem::transmute(pcbadjustment)).ok() + AllocReservedLog(core::mem::transmute(pvmarshal), creservedrecords, core::mem::transmute(pcbadjustment)).ok() } #[inline] pub unsafe fn AreFileApisANSI() -> super::super::Foundation::BOOL { @@ -44,52 +44,52 @@ pub unsafe fn AreFileApisANSI() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn AreShortNamesEnabled(handle: super::super::Foundation::HANDLE, enabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn AreShortNamesEnabled(handle : super::super::Foundation:: HANDLE, enabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AreShortNamesEnabled(core::mem::transmute(handle), core::mem::transmute(enabled)) + AreShortNamesEnabled(handle, core::mem::transmute(enabled)) } #[inline] pub unsafe fn BackupRead(hfile: super::super::Foundation::HANDLE, lpbuffer: &mut [u8], lpnumberofbytesread: *mut u32, babort: bool, bprocesssecurity: bool, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn BackupRead(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpnumberofbytesread : *mut u32, babort : super::super::Foundation:: BOOL, bprocesssecurity : super::super::Foundation:: BOOL, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - BackupRead(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesread), babort.into(), bprocesssecurity.into(), core::mem::transmute(lpcontext)).ok() + BackupRead(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesread), babort.into(), bprocesssecurity.into(), core::mem::transmute(lpcontext)).ok() } #[inline] pub unsafe fn BackupSeek(hfile: super::super::Foundation::HANDLE, dwlowbytestoseek: u32, dwhighbytestoseek: u32, lpdwlowbyteseeked: *mut u32, lpdwhighbyteseeked: *mut u32, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn BackupSeek(hfile : super::super::Foundation:: HANDLE, dwlowbytestoseek : u32, dwhighbytestoseek : u32, lpdwlowbyteseeked : *mut u32, lpdwhighbyteseeked : *mut u32, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - BackupSeek(core::mem::transmute(hfile), core::mem::transmute(dwlowbytestoseek), core::mem::transmute(dwhighbytestoseek), core::mem::transmute(lpdwlowbyteseeked), core::mem::transmute(lpdwhighbyteseeked), core::mem::transmute(lpcontext)).ok() + BackupSeek(hfile, dwlowbytestoseek, dwhighbytestoseek, core::mem::transmute(lpdwlowbyteseeked), core::mem::transmute(lpdwhighbyteseeked), core::mem::transmute(lpcontext)).ok() } #[inline] pub unsafe fn BackupWrite(hfile: super::super::Foundation::HANDLE, lpbuffer: &[u8], lpnumberofbyteswritten: *mut u32, babort: bool, bprocesssecurity: bool, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn BackupWrite(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpnumberofbyteswritten : *mut u32, babort : super::super::Foundation:: BOOL, bprocesssecurity : super::super::Foundation:: BOOL, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - BackupWrite(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofbyteswritten), babort.into(), bprocesssecurity.into(), core::mem::transmute(lpcontext)).ok() + BackupWrite(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofbyteswritten), babort.into(), bprocesssecurity.into(), core::mem::transmute(lpcontext)).ok() } #[inline] pub unsafe fn BuildIoRingCancelRequest(ioring: HIORING, file: IORING_HANDLE_REF, optocancel: usize, userdata: usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn BuildIoRingCancelRequest(ioring : HIORING, file : IORING_HANDLE_REF, optocancel : usize, userdata : usize) -> windows_core::HRESULT); - BuildIoRingCancelRequest(core::mem::transmute(ioring), core::mem::transmute(file), core::mem::transmute(optocancel), core::mem::transmute(userdata)).ok() + BuildIoRingCancelRequest(ioring, core::mem::transmute(file), optocancel, userdata).ok() } #[inline] pub unsafe fn BuildIoRingFlushFile(ioring: HIORING, fileref: IORING_HANDLE_REF, flushmode: FILE_FLUSH_MODE, userdata: usize, sqeflags: IORING_SQE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn BuildIoRingFlushFile(ioring : HIORING, fileref : IORING_HANDLE_REF, flushmode : FILE_FLUSH_MODE, userdata : usize, sqeflags : IORING_SQE_FLAGS) -> windows_core::HRESULT); - BuildIoRingFlushFile(core::mem::transmute(ioring), core::mem::transmute(fileref), core::mem::transmute(flushmode), core::mem::transmute(userdata), core::mem::transmute(sqeflags)).ok() + BuildIoRingFlushFile(ioring, core::mem::transmute(fileref), flushmode, userdata, sqeflags).ok() } #[inline] pub unsafe fn BuildIoRingReadFile(ioring: HIORING, fileref: IORING_HANDLE_REF, dataref: IORING_BUFFER_REF, numberofbytestoread: u32, fileoffset: u64, userdata: usize, sqeflags: IORING_SQE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn BuildIoRingReadFile(ioring : HIORING, fileref : IORING_HANDLE_REF, dataref : IORING_BUFFER_REF, numberofbytestoread : u32, fileoffset : u64, userdata : usize, sqeflags : IORING_SQE_FLAGS) -> windows_core::HRESULT); - BuildIoRingReadFile(core::mem::transmute(ioring), core::mem::transmute(fileref), core::mem::transmute(dataref), core::mem::transmute(numberofbytestoread), core::mem::transmute(fileoffset), core::mem::transmute(userdata), core::mem::transmute(sqeflags)).ok() + BuildIoRingReadFile(ioring, core::mem::transmute(fileref), core::mem::transmute(dataref), numberofbytestoread, fileoffset, userdata, sqeflags).ok() } #[inline] pub unsafe fn BuildIoRingRegisterBuffers(ioring: HIORING, buffers: &[IORING_BUFFER_INFO], userdata: usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn BuildIoRingRegisterBuffers(ioring : HIORING, count : u32, buffers : *const IORING_BUFFER_INFO, userdata : usize) -> windows_core::HRESULT); - BuildIoRingRegisterBuffers(core::mem::transmute(ioring), buffers.len().try_into().unwrap(), core::mem::transmute(buffers.as_ptr()), core::mem::transmute(userdata)).ok() + BuildIoRingRegisterBuffers(ioring, buffers.len().try_into().unwrap(), core::mem::transmute(buffers.as_ptr()), userdata).ok() } #[inline] pub unsafe fn BuildIoRingRegisterFileHandles(ioring: HIORING, handles: &[super::super::Foundation::HANDLE], userdata: usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn BuildIoRingRegisterFileHandles(ioring : HIORING, count : u32, handles : *const super::super::Foundation:: HANDLE, userdata : usize) -> windows_core::HRESULT); - BuildIoRingRegisterFileHandles(core::mem::transmute(ioring), handles.len().try_into().unwrap(), core::mem::transmute(handles.as_ptr()), core::mem::transmute(userdata)).ok() + BuildIoRingRegisterFileHandles(ioring, handles.len().try_into().unwrap(), core::mem::transmute(handles.as_ptr()), userdata).ok() } #[inline] pub unsafe fn BuildIoRingWriteFile(ioring: HIORING, fileref: IORING_HANDLE_REF, bufferref: IORING_BUFFER_REF, numberofbytestowrite: u32, fileoffset: u64, writeflags: FILE_WRITE_FLAGS, userdata: usize, sqeflags: IORING_SQE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn BuildIoRingWriteFile(ioring : HIORING, fileref : IORING_HANDLE_REF, bufferref : IORING_BUFFER_REF, numberofbytestowrite : u32, fileoffset : u64, writeflags : FILE_WRITE_FLAGS, userdata : usize, sqeflags : IORING_SQE_FLAGS) -> windows_core::HRESULT); - BuildIoRingWriteFile(core::mem::transmute(ioring), core::mem::transmute(fileref), core::mem::transmute(bufferref), core::mem::transmute(numberofbytestowrite), core::mem::transmute(fileoffset), core::mem::transmute(writeflags), core::mem::transmute(userdata), core::mem::transmute(sqeflags)).ok() + BuildIoRingWriteFile(ioring, core::mem::transmute(fileref), core::mem::transmute(bufferref), numberofbytestowrite, fileoffset, writeflags, userdata, sqeflags).ok() } #[inline] pub unsafe fn CheckNameLegalDOS8Dot3A(lpname: P0, lpoemname: Option<&mut [u8]>, pbnamecontainsspaces: Option<*mut super::super::Foundation::BOOL>, pbnamelegal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> @@ -110,42 +110,42 @@ where #[inline] pub unsafe fn CloseAndResetLogFile(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn CloseAndResetLogFile(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CloseAndResetLogFile(core::mem::transmute(hlog)).ok() + CloseAndResetLogFile(hlog).ok() } #[inline] pub unsafe fn CloseEncryptedFileRaw(pvcontext: *const core::ffi::c_void) { windows_targets::link!("advapi32.dll" "system" fn CloseEncryptedFileRaw(pvcontext : *const core::ffi::c_void)); - CloseEncryptedFileRaw(core::mem::transmute(pvcontext)) + CloseEncryptedFileRaw(pvcontext) } #[inline] pub unsafe fn CloseIoRing(ioring: HIORING) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn CloseIoRing(ioring : HIORING) -> windows_core::HRESULT); - CloseIoRing(core::mem::transmute(ioring)).ok() + CloseIoRing(ioring).ok() } #[inline] pub unsafe fn CommitComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn CommitComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - CommitComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + CommitComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn CommitEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn CommitEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - CommitEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + CommitEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn CommitTransaction(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn CommitTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CommitTransaction(core::mem::transmute(transactionhandle)).ok() + CommitTransaction(transactionhandle).ok() } #[inline] pub unsafe fn CommitTransactionAsync(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn CommitTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CommitTransactionAsync(core::mem::transmute(transactionhandle)).ok() + CommitTransactionAsync(transactionhandle).ok() } #[inline] pub unsafe fn CompareFileTime(lpfiletime1: *const super::super::Foundation::FILETIME, lpfiletime2: *const super::super::Foundation::FILETIME) -> i32 { windows_targets::link!("kernel32.dll" "system" fn CompareFileTime(lpfiletime1 : *const super::super::Foundation:: FILETIME, lpfiletime2 : *const super::super::Foundation:: FILETIME) -> i32); - CompareFileTime(core::mem::transmute(lpfiletime1), core::mem::transmute(lpfiletime2)) + CompareFileTime(lpfiletime1, lpfiletime2) } #[inline] pub unsafe fn CopyFile2(pwszexistingfilename: P0, pwsznewfilename: P1, pextendedparameters: Option<*const COPYFILE2_EXTENDED_PARAMETERS>) -> windows_core::Result<()> @@ -172,7 +172,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFileExA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut super::super::Foundation:: BOOL, dwcopyflags : COPYFILE_FLAGS) -> super::super::Foundation:: BOOL); - CopyFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcopyflags)).ok() + CopyFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), dwcopyflags).ok() } #[inline] pub unsafe fn CopyFileExW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut super::super::Foundation::BOOL>, dwcopyflags: COPYFILE_FLAGS) -> windows_core::Result<()> @@ -181,7 +181,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFileExW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut super::super::Foundation:: BOOL, dwcopyflags : COPYFILE_FLAGS) -> super::super::Foundation:: BOOL); - CopyFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcopyflags)).ok() + CopyFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), dwcopyflags).ok() } #[inline] pub unsafe fn CopyFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: bool) -> super::super::Foundation::BOOL @@ -199,7 +199,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFileTransactedA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *const super::super::Foundation:: BOOL, dwcopyflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CopyFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcopyflags), core::mem::transmute(htransaction)).ok() + CopyFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), dwcopyflags, htransaction).ok() } #[inline] pub unsafe fn CopyFileTransactedW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const super::super::Foundation::BOOL>, dwcopyflags: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -208,7 +208,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFileTransactedW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *const super::super::Foundation:: BOOL, dwcopyflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CopyFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcopyflags), core::mem::transmute(htransaction)).ok() + CopyFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbcancel.unwrap_or(core::mem::zeroed())), dwcopyflags, htransaction).ok() } #[inline] pub unsafe fn CopyFileW(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: bool) -> windows_core::Result<()> @@ -222,7 +222,7 @@ where #[inline] pub unsafe fn CopyLZFile(hfsource: i32, hfdest: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn CopyLZFile(hfsource : i32, hfdest : i32) -> i32); - CopyLZFile(core::mem::transmute(hfsource), core::mem::transmute(hfdest)) + CopyLZFile(hfsource, hfdest) } #[cfg(feature = "Win32_Security")] #[inline] @@ -270,7 +270,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryTransactedA(lptemplatedirectory : windows_core::PCSTR, lpnewdirectory : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CreateDirectoryTransactedA(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)).ok() + CreateDirectoryTransactedA(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), htransaction).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -280,7 +280,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryTransactedW(lptemplatedirectory : windows_core::PCWSTR, lpnewdirectory : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CreateDirectoryTransactedW(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)).ok() + CreateDirectoryTransactedW(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), htransaction).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -295,7 +295,7 @@ where #[inline] pub unsafe fn CreateEnlistment(lpenlistmentattributes: *mut super::super::Security::SECURITY_ATTRIBUTES, resourcemanagerhandle: super::super::Foundation::HANDLE, transactionhandle: super::super::Foundation::HANDLE, notificationmask: u32, createoptions: u32, enlistmentkey: *mut core::ffi::c_void) -> windows_core::Result { windows_targets::link!("ktmw32.dll" "system" fn CreateEnlistment(lpenlistmentattributes : *mut super::super::Security:: SECURITY_ATTRIBUTES, resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionhandle : super::super::Foundation:: HANDLE, notificationmask : u32, createoptions : u32, enlistmentkey : *mut core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = CreateEnlistment(core::mem::transmute(lpenlistmentattributes), core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionhandle), core::mem::transmute(notificationmask), core::mem::transmute(createoptions), core::mem::transmute(enlistmentkey)); + let result__ = CreateEnlistment(core::mem::transmute(lpenlistmentattributes), resourcemanagerhandle, transactionhandle, notificationmask, createoptions, core::mem::transmute(enlistmentkey)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -305,7 +305,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFile2(lpfilename : windows_core::PCWSTR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, dwcreationdisposition : FILE_CREATION_DISPOSITION, pcreateexparams : *const CREATEFILE2_EXTENDED_PARAMETERS) -> super::super::Foundation:: HANDLE); - let result__ = CreateFile2(lpfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwcreationdisposition), core::mem::transmute(pcreateexparams.unwrap_or(core::mem::zeroed()))); + let result__ = CreateFile2(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, dwcreationdisposition, core::mem::transmute(pcreateexparams.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -315,7 +315,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CreateFile2FromAppW(lpfilename : windows_core::PCWSTR, dwdesiredaccess : u32, dwsharemode : u32, dwcreationdisposition : u32, pcreateexparams : *const CREATEFILE2_EXTENDED_PARAMETERS) -> super::super::Foundation:: HANDLE); - CreateFile2FromAppW(lpfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwcreationdisposition), core::mem::transmute(pcreateexparams.unwrap_or(core::mem::zeroed()))) + CreateFile2FromAppW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, dwcreationdisposition, core::mem::transmute(pcreateexparams.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -324,7 +324,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileA(lpfilename : windows_core::PCSTR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwcreationdisposition : FILE_CREATION_DISPOSITION, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES, htemplatefile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileA(lpfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationdisposition), core::mem::transmute(dwflagsandattributes), core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))); + let result__ = CreateFileA(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwcreationdisposition, dwflagsandattributes, core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -334,7 +334,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CreateFileFromAppW(lpfilename : windows_core::PCWSTR, dwdesiredaccess : u32, dwsharemode : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwcreationdisposition : u32, dwflagsandattributes : u32, htemplatefile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - CreateFileFromAppW(lpfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationdisposition), core::mem::transmute(dwflagsandattributes), core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))) + CreateFileFromAppW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwcreationdisposition, dwflagsandattributes, core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -343,18 +343,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileTransactedA(lpfilename : windows_core::PCSTR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwcreationdisposition : FILE_CREATION_DISPOSITION, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES, htemplatefile : super::super::Foundation:: HANDLE, htransaction : super::super::Foundation:: HANDLE, pusminiversion : *const TXFS_MINIVERSION, lpextendedparameter : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileTransactedA( - lpfilename.param().abi(), - core::mem::transmute(dwdesiredaccess), - core::mem::transmute(dwsharemode), - core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwcreationdisposition), - core::mem::transmute(dwflagsandattributes), - core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed())), - core::mem::transmute(htransaction), - core::mem::transmute(pusminiversion.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpextendedparameter.unwrap_or(core::mem::zeroed())), - ); + let result__ = CreateFileTransactedA(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwcreationdisposition, dwflagsandattributes, core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed())), htransaction, core::mem::transmute(pusminiversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpextendedparameter.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -364,18 +353,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileTransactedW(lpfilename : windows_core::PCWSTR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwcreationdisposition : FILE_CREATION_DISPOSITION, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES, htemplatefile : super::super::Foundation:: HANDLE, htransaction : super::super::Foundation:: HANDLE, pusminiversion : *const TXFS_MINIVERSION, lpextendedparameter : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileTransactedW( - lpfilename.param().abi(), - core::mem::transmute(dwdesiredaccess), - core::mem::transmute(dwsharemode), - core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwcreationdisposition), - core::mem::transmute(dwflagsandattributes), - core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed())), - core::mem::transmute(htransaction), - core::mem::transmute(pusminiversion.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpextendedparameter.unwrap_or(core::mem::zeroed())), - ); + let result__ = CreateFileTransactedW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwcreationdisposition, dwflagsandattributes, core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed())), htransaction, core::mem::transmute(pusminiversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpextendedparameter.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -385,7 +363,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileW(lpfilename : windows_core::PCWSTR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwcreationdisposition : FILE_CREATION_DISPOSITION, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES, htemplatefile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileW(lpfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationdisposition), core::mem::transmute(dwflagsandattributes), core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))); + let result__ = CreateFileW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwcreationdisposition, dwflagsandattributes, core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -406,7 +384,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkTransactedA(lpfilename : windows_core::PCSTR, lpexistingfilename : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CreateHardLinkTransactedA(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)).ok() + CreateHardLinkTransactedA(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), htransaction).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -416,7 +394,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkTransactedW(lpfilename : windows_core::PCWSTR, lpexistingfilename : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CreateHardLinkTransactedW(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)).ok() + CreateHardLinkTransactedW(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), htransaction).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -432,13 +410,13 @@ where pub unsafe fn CreateIoRing(ioringversion: IORING_VERSION, flags: IORING_CREATE_FLAGS, submissionqueuesize: u32, completionqueuesize: u32) -> windows_core::Result { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn CreateIoRing(ioringversion : IORING_VERSION, flags : IORING_CREATE_FLAGS, submissionqueuesize : u32, completionqueuesize : u32, h : *mut HIORING) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateIoRing(core::mem::transmute(ioringversion), core::mem::transmute(flags), core::mem::transmute(submissionqueuesize), core::mem::transmute(completionqueuesize), &mut result__).map(|| core::mem::transmute(result__)) + CreateIoRing(ioringversion, core::mem::transmute(flags), submissionqueuesize, completionqueuesize, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CreateLogContainerScanContext(hlog: super::super::Foundation::HANDLE, cfromcontainer: u32, ccontainers: u32, escanmode: u8, pcxscan: *mut CLS_SCAN_CONTEXT, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn CreateLogContainerScanContext(hlog : super::super::Foundation:: HANDLE, cfromcontainer : u32, ccontainers : u32, escanmode : u8, pcxscan : *mut CLS_SCAN_CONTEXT, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - CreateLogContainerScanContext(core::mem::transmute(hlog), core::mem::transmute(cfromcontainer), core::mem::transmute(ccontainers), core::mem::transmute(escanmode), core::mem::transmute(pcxscan), core::mem::transmute(poverlapped)).ok() + CreateLogContainerScanContext(hlog, cfromcontainer, ccontainers, escanmode, core::mem::transmute(pcxscan), core::mem::transmute(poverlapped)).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -447,13 +425,13 @@ where P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn CreateLogFile(pszlogfilename : windows_core::PCWSTR, fdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, psalogfile : *mut super::super::Security:: SECURITY_ATTRIBUTES, fcreatedisposition : FILE_CREATION_DISPOSITION, fflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - let result__ = CreateLogFile(pszlogfilename.param().abi(), core::mem::transmute(fdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(psalogfile), core::mem::transmute(fcreatedisposition), core::mem::transmute(fflagsandattributes)); + let result__ = CreateLogFile(pszlogfilename.param().abi(), fdesiredaccess, dwsharemode, core::mem::transmute(psalogfile), fcreatedisposition, fflagsandattributes); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateLogMarshallingArea(hlog: super::super::Foundation::HANDLE, pfnallocbuffer: CLFS_BLOCK_ALLOCATION, pfnfreebuffer: CLFS_BLOCK_DEALLOCATION, pvblockalloccontext: *mut core::ffi::c_void, cbmarshallingbuffer: u32, cmaxwritebuffers: u32, cmaxreadbuffers: u32, ppvmarshal: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn CreateLogMarshallingArea(hlog : super::super::Foundation:: HANDLE, pfnallocbuffer : CLFS_BLOCK_ALLOCATION, pfnfreebuffer : CLFS_BLOCK_DEALLOCATION, pvblockalloccontext : *mut core::ffi::c_void, cbmarshallingbuffer : u32, cmaxwritebuffers : u32, cmaxreadbuffers : u32, ppvmarshal : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CreateLogMarshallingArea(core::mem::transmute(hlog), core::mem::transmute(pfnallocbuffer), core::mem::transmute(pfnfreebuffer), core::mem::transmute(pvblockalloccontext), core::mem::transmute(cbmarshallingbuffer), core::mem::transmute(cmaxwritebuffers), core::mem::transmute(cmaxreadbuffers), core::mem::transmute(ppvmarshal)).ok() + CreateLogMarshallingArea(hlog, pfnallocbuffer, pfnfreebuffer, core::mem::transmute(pvblockalloccontext), cbmarshallingbuffer, cmaxwritebuffers, cmaxreadbuffers, core::mem::transmute(ppvmarshal)).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -462,7 +440,7 @@ where P4: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CreateResourceManager(lpresourcemanagerattributes : *mut super::super::Security:: SECURITY_ATTRIBUTES, resourcemanagerid : *mut windows_core::GUID, createoptions : u32, tmhandle : super::super::Foundation:: HANDLE, description : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateResourceManager(core::mem::transmute(lpresourcemanagerattributes), core::mem::transmute(resourcemanagerid), core::mem::transmute(createoptions), core::mem::transmute(tmhandle), description.param().abi()); + let result__ = CreateResourceManager(core::mem::transmute(lpresourcemanagerattributes), core::mem::transmute(resourcemanagerid), createoptions, tmhandle, description.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -472,7 +450,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool); - CreateSymbolicLinkA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags)) + CreateSymbolicLinkA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags) } #[inline] pub unsafe fn CreateSymbolicLinkTransactedA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: super::super::Foundation::HANDLE) -> bool @@ -481,7 +459,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> bool); - CreateSymbolicLinkTransactedA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(htransaction)) + CreateSymbolicLinkTransactedA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags, htransaction) } #[inline] pub unsafe fn CreateSymbolicLinkTransactedW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: super::super::Foundation::HANDLE) -> bool @@ -490,7 +468,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> bool); - CreateSymbolicLinkTransactedW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(htransaction)) + CreateSymbolicLinkTransactedW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags, htransaction) } #[inline] pub unsafe fn CreateSymbolicLinkW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> bool @@ -499,12 +477,12 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool); - CreateSymbolicLinkW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags)) + CreateSymbolicLinkW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags) } #[inline] pub unsafe fn CreateTapePartition(hdevice: super::super::Foundation::HANDLE, dwpartitionmethod: CREATE_TAPE_PARTITION_METHOD, dwcount: u32, dwsize: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn CreateTapePartition(hdevice : super::super::Foundation:: HANDLE, dwpartitionmethod : CREATE_TAPE_PARTITION_METHOD, dwcount : u32, dwsize : u32) -> u32); - CreateTapePartition(core::mem::transmute(hdevice), core::mem::transmute(dwpartitionmethod), core::mem::transmute(dwcount), core::mem::transmute(dwsize)) + CreateTapePartition(hdevice, dwpartitionmethod, dwcount, dwsize) } #[cfg(feature = "Win32_Security")] #[inline] @@ -513,7 +491,7 @@ where P6: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CreateTransaction(lptransactionattributes : *mut super::super::Security:: SECURITY_ATTRIBUTES, uow : *mut windows_core::GUID, createoptions : u32, isolationlevel : u32, isolationflags : u32, timeout : u32, description : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateTransaction(core::mem::transmute(lptransactionattributes), core::mem::transmute(uow), core::mem::transmute(createoptions), core::mem::transmute(isolationlevel), core::mem::transmute(isolationflags), core::mem::transmute(timeout), description.param().abi()); + let result__ = CreateTransaction(core::mem::transmute(lptransactionattributes), core::mem::transmute(uow), createoptions, isolationlevel, isolationflags, timeout, description.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -523,7 +501,7 @@ where P1: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CreateTransactionManager(lptransactionattributes : *mut super::super::Security:: SECURITY_ATTRIBUTES, logfilename : windows_core::PCWSTR, createoptions : u32, commitstrength : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateTransactionManager(core::mem::transmute(lptransactionattributes), logfilename.param().abi(), core::mem::transmute(createoptions), core::mem::transmute(commitstrength)); + let result__ = CreateTransactionManager(core::mem::transmute(lptransactionattributes), logfilename.param().abi(), createoptions, commitstrength); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -549,7 +527,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DefineDosDeviceA(dwflags : DEFINE_DOS_DEVICE_FLAGS, lpdevicename : windows_core::PCSTR, lptargetpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DefineDosDeviceA(core::mem::transmute(dwflags), lpdevicename.param().abi(), lptargetpath.param().abi()).ok() + DefineDosDeviceA(dwflags, lpdevicename.param().abi(), lptargetpath.param().abi()).ok() } #[inline] pub unsafe fn DefineDosDeviceW(dwflags: DEFINE_DOS_DEVICE_FLAGS, lpdevicename: P1, lptargetpath: P2) -> windows_core::Result<()> @@ -558,7 +536,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DefineDosDeviceW(dwflags : DEFINE_DOS_DEVICE_FLAGS, lpdevicename : windows_core::PCWSTR, lptargetpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DefineDosDeviceW(core::mem::transmute(dwflags), lpdevicename.param().abi(), lptargetpath.param().abi()).ok() + DefineDosDeviceW(dwflags, lpdevicename.param().abi(), lptargetpath.param().abi()).ok() } #[inline] pub unsafe fn DeleteFileA(lpfilename: P0) -> windows_core::Result<()> @@ -582,7 +560,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteFileTransactedA(lpfilename : windows_core::PCSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteFileTransactedA(lpfilename.param().abi(), core::mem::transmute(htransaction)).ok() + DeleteFileTransactedA(lpfilename.param().abi(), htransaction).ok() } #[inline] pub unsafe fn DeleteFileTransactedW(lpfilename: P0, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -590,7 +568,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteFileTransactedW(lpfilename : windows_core::PCWSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteFileTransactedW(lpfilename.param().abi(), core::mem::transmute(htransaction)).ok() + DeleteFileTransactedW(lpfilename.param().abi(), htransaction).ok() } #[inline] pub unsafe fn DeleteFileW(lpfilename: P0) -> windows_core::Result<()> @@ -603,7 +581,7 @@ where #[inline] pub unsafe fn DeleteLogByHandle(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn DeleteLogByHandle(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteLogByHandle(core::mem::transmute(hlog)).ok() + DeleteLogByHandle(hlog).ok() } #[inline] pub unsafe fn DeleteLogFile(pszlogfilename: P0, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -637,7 +615,7 @@ where #[inline] pub unsafe fn DeregisterManageableLogClient(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn DeregisterManageableLogClient(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeregisterManageableLogClient(core::mem::transmute(hlog)).ok() + DeregisterManageableLogClient(hlog).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -647,7 +625,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn DuplicateEncryptionInfoFile(srcfilename : windows_core::PCWSTR, dstfilename : windows_core::PCWSTR, dwcreationdistribution : u32, dwattributes : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> u32); - DuplicateEncryptionInfoFile(srcfilename.param().abi(), dstfilename.param().abi(), core::mem::transmute(dwcreationdistribution), core::mem::transmute(dwattributes), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) + DuplicateEncryptionInfoFile(srcfilename.param().abi(), dstfilename.param().abi(), dwcreationdistribution, dwattributes, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EncryptFileA(lpfilename: P0) -> windows_core::Result<()> @@ -676,7 +654,7 @@ where #[inline] pub unsafe fn EraseTape(hdevice: super::super::Foundation::HANDLE, dwerasetype: ERASE_TAPE_TYPE, bimmediate: bool) -> u32 { windows_targets::link!("kernel32.dll" "system" fn EraseTape(hdevice : super::super::Foundation:: HANDLE, dwerasetype : ERASE_TAPE_TYPE, bimmediate : super::super::Foundation:: BOOL) -> u32); - EraseTape(core::mem::transmute(hdevice), core::mem::transmute(dwerasetype), bimmediate.into()) + EraseTape(hdevice, dwerasetype, bimmediate.into()) } #[inline] pub unsafe fn FileEncryptionStatusA(lpfilename: P0, lpstatus: *mut u32) -> windows_core::Result<()> @@ -697,7 +675,7 @@ where #[inline] pub unsafe fn FileTimeToLocalFileTime(lpfiletime: *const super::super::Foundation::FILETIME, lplocalfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FileTimeToLocalFileTime(lpfiletime : *const super::super::Foundation:: FILETIME, lplocalfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - FileTimeToLocalFileTime(core::mem::transmute(lpfiletime), core::mem::transmute(lplocalfiletime)).ok() + FileTimeToLocalFileTime(lpfiletime, core::mem::transmute(lplocalfiletime)).ok() } #[inline] pub unsafe fn FindClose(hfindfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -707,7 +685,7 @@ pub unsafe fn FindClose(hfindfile: super::super::Foundation::HANDLE) -> windows_ #[inline] pub unsafe fn FindCloseChangeNotification(hchangehandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindCloseChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindCloseChangeNotification(core::mem::transmute(hchangehandle)).ok() + FindCloseChangeNotification(hchangehandle).ok() } #[inline] pub unsafe fn FindFirstChangeNotificationA(lppathname: P0, bwatchsubtree: bool, dwnotifyfilter: FILE_NOTIFY_CHANGE) -> windows_core::Result @@ -715,7 +693,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstChangeNotificationA(lppathname : windows_core::PCSTR, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstChangeNotificationA(lppathname.param().abi(), bwatchsubtree.into(), core::mem::transmute(dwnotifyfilter)); + let result__ = FindFirstChangeNotificationA(lppathname.param().abi(), bwatchsubtree.into(), dwnotifyfilter); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -724,7 +702,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstChangeNotificationW(lppathname : windows_core::PCWSTR, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstChangeNotificationW(lppathname.param().abi(), bwatchsubtree.into(), core::mem::transmute(dwnotifyfilter)); + let result__ = FindFirstChangeNotificationW(lppathname.param().abi(), bwatchsubtree.into(), dwnotifyfilter); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -742,7 +720,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileExA(lpfilename : windows_core::PCSTR, finfolevelid : FINDEX_INFO_LEVELS, lpfindfiledata : *mut core::ffi::c_void, fsearchop : FINDEX_SEARCH_OPS, lpsearchfilter : *const core::ffi::c_void, dwadditionalflags : FIND_FIRST_EX_FLAGS) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileExA(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfindfiledata), core::mem::transmute(fsearchop), core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwadditionalflags)); + let result__ = FindFirstFileExA(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfindfiledata), fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), dwadditionalflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -751,7 +729,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn FindFirstFileExFromAppW(lpfilename : windows_core::PCWSTR, finfolevelid : FINDEX_INFO_LEVELS, lpfindfiledata : *mut core::ffi::c_void, fsearchop : FINDEX_SEARCH_OPS, lpsearchfilter : *const core::ffi::c_void, dwadditionalflags : u32) -> super::super::Foundation:: HANDLE); - FindFirstFileExFromAppW(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfindfiledata), core::mem::transmute(fsearchop), core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwadditionalflags)) + FindFirstFileExFromAppW(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfindfiledata), fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), dwadditionalflags) } #[inline] pub unsafe fn FindFirstFileExW(lpfilename: P0, finfolevelid: FINDEX_INFO_LEVELS, lpfindfiledata: *mut core::ffi::c_void, fsearchop: FINDEX_SEARCH_OPS, lpsearchfilter: Option<*const core::ffi::c_void>, dwadditionalflags: FIND_FIRST_EX_FLAGS) -> windows_core::Result @@ -759,7 +737,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileExW(lpfilename : windows_core::PCWSTR, finfolevelid : FINDEX_INFO_LEVELS, lpfindfiledata : *mut core::ffi::c_void, fsearchop : FINDEX_SEARCH_OPS, lpsearchfilter : *const core::ffi::c_void, dwadditionalflags : FIND_FIRST_EX_FLAGS) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileExW(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfindfiledata), core::mem::transmute(fsearchop), core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwadditionalflags)); + let result__ = FindFirstFileExW(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfindfiledata), fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), dwadditionalflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -768,7 +746,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileNameTransactedW(lpfilename : windows_core::PCWSTR, dwflags : u32, stringlength : *mut u32, linkname : windows_core::PWSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileNameTransactedW(lpfilename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(stringlength), core::mem::transmute(linkname), core::mem::transmute(htransaction.unwrap_or(core::mem::zeroed()))); + let result__ = FindFirstFileNameTransactedW(lpfilename.param().abi(), dwflags, core::mem::transmute(stringlength), core::mem::transmute(linkname), core::mem::transmute(htransaction.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -777,7 +755,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileNameW(lpfilename : windows_core::PCWSTR, dwflags : u32, stringlength : *mut u32, linkname : windows_core::PWSTR) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileNameW(lpfilename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(stringlength), core::mem::transmute(linkname)); + let result__ = FindFirstFileNameW(lpfilename.param().abi(), dwflags, core::mem::transmute(stringlength), core::mem::transmute(linkname)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -786,7 +764,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileTransactedA(lpfilename : windows_core::PCSTR, finfolevelid : FINDEX_INFO_LEVELS, lpfindfiledata : *mut core::ffi::c_void, fsearchop : FINDEX_SEARCH_OPS, lpsearchfilter : *const core::ffi::c_void, dwadditionalflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileTransactedA(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfindfiledata), core::mem::transmute(fsearchop), core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwadditionalflags), core::mem::transmute(htransaction)); + let result__ = FindFirstFileTransactedA(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfindfiledata), fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), dwadditionalflags, htransaction); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -795,7 +773,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileTransactedW(lpfilename : windows_core::PCWSTR, finfolevelid : FINDEX_INFO_LEVELS, lpfindfiledata : *mut core::ffi::c_void, fsearchop : FINDEX_SEARCH_OPS, lpsearchfilter : *const core::ffi::c_void, dwadditionalflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileTransactedW(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfindfiledata), core::mem::transmute(fsearchop), core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwadditionalflags), core::mem::transmute(htransaction)); + let result__ = FindFirstFileTransactedW(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfindfiledata), fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(core::mem::zeroed())), dwadditionalflags, htransaction); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -813,7 +791,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstStreamTransactedW(lpfilename : windows_core::PCWSTR, infolevel : STREAM_INFO_LEVELS, lpfindstreamdata : *mut core::ffi::c_void, dwflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstStreamTransactedW(lpfilename.param().abi(), core::mem::transmute(infolevel), core::mem::transmute(lpfindstreamdata), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)); + let result__ = FindFirstStreamTransactedW(lpfilename.param().abi(), infolevel, core::mem::transmute(lpfindstreamdata), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), htransaction); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -822,7 +800,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstStreamW(lpfilename : windows_core::PCWSTR, infolevel : STREAM_INFO_LEVELS, lpfindstreamdata : *mut core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstStreamW(lpfilename.param().abi(), core::mem::transmute(infolevel), core::mem::transmute(lpfindstreamdata), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))); + let result__ = FindFirstStreamW(lpfilename.param().abi(), infolevel, core::mem::transmute(lpfindstreamdata), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -858,27 +836,27 @@ pub unsafe fn FindFirstVolumeW(lpszvolumename: &mut [u16]) -> windows_core::Resu #[inline] pub unsafe fn FindNextChangeNotification(hchangehandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindNextChangeNotification(core::mem::transmute(hchangehandle)).ok() + FindNextChangeNotification(hchangehandle).ok() } #[inline] pub unsafe fn FindNextFileA(hfindfile: super::super::Foundation::HANDLE, lpfindfiledata: *mut WIN32_FIND_DATAA) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextFileA(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAA) -> super::super::Foundation:: BOOL); - FindNextFileA(core::mem::transmute(hfindfile), core::mem::transmute(lpfindfiledata)).ok() + FindNextFileA(hfindfile, core::mem::transmute(lpfindfiledata)).ok() } #[inline] pub unsafe fn FindNextFileNameW(hfindstream: super::super::Foundation::HANDLE, stringlength: *mut u32, linkname: windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextFileNameW(hfindstream : super::super::Foundation:: HANDLE, stringlength : *mut u32, linkname : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - FindNextFileNameW(core::mem::transmute(hfindstream), core::mem::transmute(stringlength), core::mem::transmute(linkname)).ok() + FindNextFileNameW(hfindstream, core::mem::transmute(stringlength), core::mem::transmute(linkname)).ok() } #[inline] pub unsafe fn FindNextFileW(hfindfile: super::super::Foundation::HANDLE, lpfindfiledata: *mut WIN32_FIND_DATAW) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextFileW(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAW) -> super::super::Foundation:: BOOL); - FindNextFileW(core::mem::transmute(hfindfile), core::mem::transmute(lpfindfiledata)).ok() + FindNextFileW(hfindfile, core::mem::transmute(lpfindfiledata)).ok() } #[inline] pub unsafe fn FindNextStreamW(hfindstream: super::super::Foundation::HANDLE, lpfindstreamdata: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextStreamW(hfindstream : super::super::Foundation:: HANDLE, lpfindstreamdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FindNextStreamW(core::mem::transmute(hfindstream), core::mem::transmute(lpfindstreamdata)).ok() + FindNextStreamW(hfindstream, core::mem::transmute(lpfindstreamdata)).ok() } #[inline] pub unsafe fn FindNextVolumeA(hfindvolume: super::super::Foundation::HANDLE, lpszvolumename: &mut [u8]) -> windows_core::Result<()> { @@ -888,12 +866,12 @@ pub unsafe fn FindNextVolumeA(hfindvolume: super::super::Foundation::HANDLE, lps #[inline] pub unsafe fn FindNextVolumeMountPointA(hfindvolumemountpoint: super::super::Foundation::HANDLE, lpszvolumemountpoint: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointA(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - FindNextVolumeMountPointA(core::mem::transmute(hfindvolumemountpoint), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() + FindNextVolumeMountPointA(hfindvolumemountpoint, core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FindNextVolumeMountPointW(hfindvolumemountpoint: super::super::Foundation::HANDLE, lpszvolumemountpoint: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointW(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - FindNextVolumeMountPointW(core::mem::transmute(hfindvolumemountpoint), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() + FindNextVolumeMountPointW(hfindvolumemountpoint, core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FindNextVolumeW(hfindvolume: super::super::Foundation::HANDLE, lpszvolumename: &mut [u16]) -> windows_core::Result<()> { @@ -903,23 +881,23 @@ pub unsafe fn FindNextVolumeW(hfindvolume: super::super::Foundation::HANDLE, lps #[inline] pub unsafe fn FindVolumeClose(hfindvolume: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindVolumeClose(hfindvolume : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindVolumeClose(core::mem::transmute(hfindvolume)).ok() + FindVolumeClose(hfindvolume).ok() } #[inline] pub unsafe fn FindVolumeMountPointClose(hfindvolumemountpoint: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindVolumeMountPointClose(hfindvolumemountpoint : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindVolumeMountPointClose(core::mem::transmute(hfindvolumemountpoint)).ok() + FindVolumeMountPointClose(hfindvolumemountpoint).ok() } #[inline] pub unsafe fn FlushFileBuffers(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FlushFileBuffers(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FlushFileBuffers(core::mem::transmute(hfile)).ok() + FlushFileBuffers(hfile).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FlushLogBuffers(pvmarshal: *const core::ffi::c_void, poverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn FlushLogBuffers(pvmarshal : *const core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - FlushLogBuffers(core::mem::transmute(pvmarshal), core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))).ok() + FlushLogBuffers(pvmarshal, core::mem::transmute(poverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -930,18 +908,18 @@ pub unsafe fn FlushLogToLsn(pvmarshalcontext: *mut core::ffi::c_void, plsnflush: #[inline] pub unsafe fn FreeEncryptedFileMetadata(pbmetadata: *const u8) { windows_targets::link!("advapi32.dll" "system" fn FreeEncryptedFileMetadata(pbmetadata : *const u8)); - FreeEncryptedFileMetadata(core::mem::transmute(pbmetadata)) + FreeEncryptedFileMetadata(pbmetadata) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FreeEncryptionCertificateHashList(pusers: *const ENCRYPTION_CERTIFICATE_HASH_LIST) { windows_targets::link!("advapi32.dll" "system" fn FreeEncryptionCertificateHashList(pusers : *const ENCRYPTION_CERTIFICATE_HASH_LIST)); - FreeEncryptionCertificateHashList(core::mem::transmute(pusers)) + FreeEncryptionCertificateHashList(pusers) } #[inline] pub unsafe fn FreeReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecords: u32, pcbadjustment: *mut i64) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn FreeReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, pcbadjustment : *mut i64) -> super::super::Foundation:: BOOL); - FreeReservedLog(core::mem::transmute(pvmarshal), core::mem::transmute(creservedrecords), core::mem::transmute(pcbadjustment)).ok() + FreeReservedLog(core::mem::transmute(pvmarshal), creservedrecords, core::mem::transmute(pcbadjustment)).ok() } #[inline] pub unsafe fn GetBinaryTypeA(lpapplicationname: P0, lpbinarytype: *mut u32) -> windows_core::Result<()> @@ -973,7 +951,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCompressedFileSizeTransactedA(lpfilename : windows_core::PCSTR, lpfilesizehigh : *mut u32, htransaction : super::super::Foundation:: HANDLE) -> u32); - GetCompressedFileSizeTransactedA(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)) + GetCompressedFileSizeTransactedA(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(core::mem::zeroed())), htransaction) } #[inline] pub unsafe fn GetCompressedFileSizeTransactedW(lpfilename: P0, lpfilesizehigh: Option<*mut u32>, htransaction: super::super::Foundation::HANDLE) -> u32 @@ -981,7 +959,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCompressedFileSizeTransactedW(lpfilename : windows_core::PCWSTR, lpfilesizehigh : *mut u32, htransaction : super::super::Foundation:: HANDLE) -> u32); - GetCompressedFileSizeTransactedW(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)) + GetCompressedFileSizeTransactedW(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(core::mem::zeroed())), htransaction) } #[inline] pub unsafe fn GetCompressedFileSizeW(lpfilename: P0, lpfilesizehigh: Option<*mut u32>) -> u32 @@ -994,7 +972,7 @@ where #[inline] pub unsafe fn GetCurrentClockTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetCurrentClockTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - GetCurrentClockTransactionManager(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(tmvirtualclock)).ok() + GetCurrentClockTransactionManager(transactionmanagerhandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn GetDiskFreeSpaceA(lprootpathname: P0, lpsectorspercluster: Option<*mut u32>, lpbytespersector: Option<*mut u32>, lpnumberoffreeclusters: Option<*mut u32>, lptotalnumberofclusters: Option<*mut u32>) -> windows_core::Result<()> @@ -1071,12 +1049,12 @@ where #[inline] pub unsafe fn GetEnlistmentId(enlistmenthandle: super::super::Foundation::HANDLE, enlistmentid: *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentId(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - GetEnlistmentId(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentid)).ok() + GetEnlistmentId(enlistmenthandle, core::mem::transmute(enlistmentid)).ok() } #[inline] pub unsafe fn GetEnlistmentRecoveryInformation(enlistmenthandle: super::super::Foundation::HANDLE, buffersize: u32, buffer: *mut core::ffi::c_void, bufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentRecoveryInformation(enlistmenthandle : super::super::Foundation:: HANDLE, buffersize : u32, buffer : *mut core::ffi::c_void, bufferused : *mut u32) -> super::super::Foundation:: BOOL); - GetEnlistmentRecoveryInformation(core::mem::transmute(enlistmenthandle), core::mem::transmute(buffersize), core::mem::transmute(buffer), core::mem::transmute(bufferused)).ok() + GetEnlistmentRecoveryInformation(enlistmenthandle, buffersize, core::mem::transmute(buffer), core::mem::transmute(bufferused)).ok() } #[inline] pub unsafe fn GetExpandedNameA(lpszsource: P0, lpszbuffer: &mut [u8; 260]) -> i32 @@ -1108,7 +1086,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesExA(lpfilename : windows_core::PCSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileAttributesExA(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfileinformation)).ok() + GetFileAttributesExA(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfileinformation)).ok() } #[inline] pub unsafe fn GetFileAttributesExFromAppW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> super::super::Foundation::BOOL @@ -1116,7 +1094,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn GetFileAttributesExFromAppW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileAttributesExFromAppW(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfileinformation)) + GetFileAttributesExFromAppW(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfileinformation)) } #[inline] pub unsafe fn GetFileAttributesExW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1124,7 +1102,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesExW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileAttributesExW(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfileinformation)).ok() + GetFileAttributesExW(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfileinformation)).ok() } #[inline] pub unsafe fn GetFileAttributesTransactedA(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -1132,7 +1110,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesTransactedA(lpfilename : windows_core::PCSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GetFileAttributesTransactedA(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfileinformation), core::mem::transmute(htransaction)).ok() + GetFileAttributesTransactedA(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfileinformation), htransaction).ok() } #[inline] pub unsafe fn GetFileAttributesTransactedW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -1140,7 +1118,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesTransactedW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GetFileAttributesTransactedW(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfileinformation), core::mem::transmute(htransaction)).ok() + GetFileAttributesTransactedW(lpfilename.param().abi(), finfolevelid, core::mem::transmute(lpfileinformation), htransaction).ok() } #[inline] pub unsafe fn GetFileAttributesW(lpfilename: P0) -> u32 @@ -1153,37 +1131,37 @@ where #[inline] pub unsafe fn GetFileBandwidthReservation(hfile: super::super::Foundation::HANDLE, lpperiodmilliseconds: *mut u32, lpbytesperperiod: *mut u32, pdiscardable: *mut super::super::Foundation::BOOL, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetFileBandwidthReservation(hfile : super::super::Foundation:: HANDLE, lpperiodmilliseconds : *mut u32, lpbytesperperiod : *mut u32, pdiscardable : *mut super::super::Foundation:: BOOL, lptransfersize : *mut u32, lpnumoutstandingrequests : *mut u32) -> super::super::Foundation:: BOOL); - GetFileBandwidthReservation(core::mem::transmute(hfile), core::mem::transmute(lpperiodmilliseconds), core::mem::transmute(lpbytesperperiod), core::mem::transmute(pdiscardable), core::mem::transmute(lptransfersize), core::mem::transmute(lpnumoutstandingrequests)).ok() + GetFileBandwidthReservation(hfile, core::mem::transmute(lpperiodmilliseconds), core::mem::transmute(lpbytesperperiod), core::mem::transmute(pdiscardable), core::mem::transmute(lptransfersize), core::mem::transmute(lpnumoutstandingrequests)).ok() } #[inline] pub unsafe fn GetFileInformationByHandle(hfile: super::super::Foundation::HANDLE, lpfileinformation: *mut BY_HANDLE_FILE_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, lpfileinformation : *mut BY_HANDLE_FILE_INFORMATION) -> super::super::Foundation:: BOOL); - GetFileInformationByHandle(core::mem::transmute(hfile), core::mem::transmute(lpfileinformation)).ok() + GetFileInformationByHandle(hfile, core::mem::transmute(lpfileinformation)).ok() } #[inline] pub unsafe fn GetFileInformationByHandleEx(hfile: super::super::Foundation::HANDLE, fileinformationclass: FILE_INFO_BY_HANDLE_CLASS, lpfileinformation: *mut core::ffi::c_void, dwbuffersize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandleEx(hfile : super::super::Foundation:: HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *mut core::ffi::c_void, dwbuffersize : u32) -> super::super::Foundation:: BOOL); - GetFileInformationByHandleEx(core::mem::transmute(hfile), core::mem::transmute(fileinformationclass), core::mem::transmute(lpfileinformation), core::mem::transmute(dwbuffersize)).ok() + GetFileInformationByHandleEx(hfile, fileinformationclass, core::mem::transmute(lpfileinformation), dwbuffersize).ok() } #[inline] pub unsafe fn GetFileSize(hfile: super::super::Foundation::HANDLE, lpfilesizehigh: Option<*mut u32>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetFileSize(hfile : super::super::Foundation:: HANDLE, lpfilesizehigh : *mut u32) -> u32); - GetFileSize(core::mem::transmute(hfile), core::mem::transmute(lpfilesizehigh.unwrap_or(core::mem::zeroed()))) + GetFileSize(hfile, core::mem::transmute(lpfilesizehigh.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetFileSizeEx(hfile: super::super::Foundation::HANDLE, lpfilesize: *mut i64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetFileSizeEx(hfile : super::super::Foundation:: HANDLE, lpfilesize : *mut i64) -> super::super::Foundation:: BOOL); - GetFileSizeEx(core::mem::transmute(hfile), core::mem::transmute(lpfilesize)).ok() + GetFileSizeEx(hfile, core::mem::transmute(lpfilesize)).ok() } #[inline] pub unsafe fn GetFileTime(hfile: super::super::Foundation::HANDLE, lpcreationtime: Option<*mut super::super::Foundation::FILETIME>, lplastaccesstime: Option<*mut super::super::Foundation::FILETIME>, lplastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetFileTime(hfile : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lplastaccesstime : *mut super::super::Foundation:: FILETIME, lplastwritetime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - GetFileTime(core::mem::transmute(hfile), core::mem::transmute(lpcreationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastaccesstime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastwritetime.unwrap_or(core::mem::zeroed()))).ok() + GetFileTime(hfile, core::mem::transmute(lpcreationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastaccesstime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastwritetime.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetFileType(hfile: super::super::Foundation::HANDLE) -> FILE_TYPE { windows_targets::link!("kernel32.dll" "system" fn GetFileType(hfile : super::super::Foundation:: HANDLE) -> FILE_TYPE); - GetFileType(core::mem::transmute(hfile)) + GetFileType(hfile) } #[inline] pub unsafe fn GetFileVersionInfoA(lptstrfilename: P0, dwhandle: Option, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1191,7 +1169,7 @@ where P0: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoA(lptstrfilename : windows_core::PCSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileVersionInfoA(lptstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwlen), core::mem::transmute(lpdata)).ok() + GetFileVersionInfoA(lptstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), dwlen, core::mem::transmute(lpdata)).ok() } #[inline] pub unsafe fn GetFileVersionInfoExA(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P1, dwhandle: Option, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1199,7 +1177,7 @@ where P1: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoExA(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileVersionInfoExA(core::mem::transmute(dwflags), lpwstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwlen), core::mem::transmute(lpdata)).ok() + GetFileVersionInfoExA(dwflags, lpwstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), dwlen, core::mem::transmute(lpdata)).ok() } #[inline] pub unsafe fn GetFileVersionInfoExW(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P1, dwhandle: Option, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1207,7 +1185,7 @@ where P1: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoExW(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCWSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileVersionInfoExW(core::mem::transmute(dwflags), lpwstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwlen), core::mem::transmute(lpdata)).ok() + GetFileVersionInfoExW(dwflags, lpwstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), dwlen, core::mem::transmute(lpdata)).ok() } #[inline] pub unsafe fn GetFileVersionInfoSizeA(lptstrfilename: P0, lpdwhandle: Option<*mut u32>) -> u32 @@ -1223,7 +1201,7 @@ where P1: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoSizeExA(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCSTR, lpdwhandle : *mut u32) -> u32); - GetFileVersionInfoSizeExA(core::mem::transmute(dwflags), lpwstrfilename.param().abi(), core::mem::transmute(lpdwhandle)) + GetFileVersionInfoSizeExA(dwflags, lpwstrfilename.param().abi(), core::mem::transmute(lpdwhandle)) } #[inline] pub unsafe fn GetFileVersionInfoSizeExW(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P1, lpdwhandle: *mut u32) -> u32 @@ -1231,7 +1209,7 @@ where P1: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoSizeExW(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCWSTR, lpdwhandle : *mut u32) -> u32); - GetFileVersionInfoSizeExW(core::mem::transmute(dwflags), lpwstrfilename.param().abi(), core::mem::transmute(lpdwhandle)) + GetFileVersionInfoSizeExW(dwflags, lpwstrfilename.param().abi(), core::mem::transmute(lpdwhandle)) } #[inline] pub unsafe fn GetFileVersionInfoSizeW(lptstrfilename: P0, lpdwhandle: Option<*mut u32>) -> u32 @@ -1247,17 +1225,17 @@ where P0: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoW(lptstrfilename : windows_core::PCWSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetFileVersionInfoW(lptstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwlen), core::mem::transmute(lpdata)).ok() + GetFileVersionInfoW(lptstrfilename.param().abi(), core::mem::transmute(dwhandle.unwrap_or(core::mem::zeroed())), dwlen, core::mem::transmute(lpdata)).ok() } #[inline] pub unsafe fn GetFinalPathNameByHandleA(hfile: super::super::Foundation::HANDLE, lpszfilepath: &mut [u8], dwflags: GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetFinalPathNameByHandleA(hfile : super::super::Foundation:: HANDLE, lpszfilepath : windows_core::PSTR, cchfilepath : u32, dwflags : GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32); - GetFinalPathNameByHandleA(core::mem::transmute(hfile), core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), core::mem::transmute(dwflags)) + GetFinalPathNameByHandleA(hfile, core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn GetFinalPathNameByHandleW(hfile: super::super::Foundation::HANDLE, lpszfilepath: &mut [u16], dwflags: GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetFinalPathNameByHandleW(hfile : super::super::Foundation:: HANDLE, lpszfilepath : windows_core::PWSTR, cchfilepath : u32, dwflags : GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32); - GetFinalPathNameByHandleW(core::mem::transmute(hfile), core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), core::mem::transmute(dwflags)) + GetFinalPathNameByHandleW(hfile, core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn GetFullPathNameA(lpfilename: P0, lpbuffer: Option<&mut [u8]>, lpfilepart: Option<*mut windows_core::PSTR>) -> u32 @@ -1273,7 +1251,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFullPathNameTransactedA(lpfilename : windows_core::PCSTR, nbufferlength : u32, lpbuffer : windows_core::PSTR, lpfilepart : *mut windows_core::PSTR, htransaction : super::super::Foundation:: HANDLE) -> u32); - GetFullPathNameTransactedA(lpfilename.param().abi(), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpfilepart.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)) + GetFullPathNameTransactedA(lpfilename.param().abi(), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpfilepart.unwrap_or(core::mem::zeroed())), htransaction) } #[inline] pub unsafe fn GetFullPathNameTransactedW(lpfilename: P0, lpbuffer: Option<&mut [u16]>, lpfilepart: Option<*mut windows_core::PWSTR>, htransaction: super::super::Foundation::HANDLE) -> u32 @@ -1281,7 +1259,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFullPathNameTransactedW(lpfilename : windows_core::PCWSTR, nbufferlength : u32, lpbuffer : windows_core::PWSTR, lpfilepart : *mut windows_core::PWSTR, htransaction : super::super::Foundation:: HANDLE) -> u32); - GetFullPathNameTransactedW(lpfilename.param().abi(), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpfilepart.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction)) + GetFullPathNameTransactedW(lpfilename.param().abi(), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpfilepart.unwrap_or(core::mem::zeroed())), htransaction) } #[inline] pub unsafe fn GetFullPathNameW(lpfilename: P0, lpbuffer: Option<&mut [u16]>, lpfilepart: Option<*mut windows_core::PWSTR>) -> u32 @@ -1294,7 +1272,7 @@ where #[inline] pub unsafe fn GetIoRingInfo(ioring: HIORING, info: *mut IORING_INFO) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn GetIoRingInfo(ioring : HIORING, info : *mut IORING_INFO) -> windows_core::HRESULT); - GetIoRingInfo(core::mem::transmute(ioring), core::mem::transmute(info)).ok() + GetIoRingInfo(ioring, core::mem::transmute(info)).ok() } #[inline] pub unsafe fn GetLogContainerName(hlog: super::super::Foundation::HANDLE, cidlogicalcontainer: u32, pwstrcontainername: P2, clencontainername: u32, pcactuallencontainername: *mut u32) -> windows_core::Result<()> @@ -1302,22 +1280,22 @@ where P2: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn GetLogContainerName(hlog : super::super::Foundation:: HANDLE, cidlogicalcontainer : u32, pwstrcontainername : windows_core::PCWSTR, clencontainername : u32, pcactuallencontainername : *mut u32) -> super::super::Foundation:: BOOL); - GetLogContainerName(core::mem::transmute(hlog), core::mem::transmute(cidlogicalcontainer), pwstrcontainername.param().abi(), core::mem::transmute(clencontainername), core::mem::transmute(pcactuallencontainername)).ok() + GetLogContainerName(hlog, cidlogicalcontainer, pwstrcontainername.param().abi(), clencontainername, core::mem::transmute(pcactuallencontainername)).ok() } #[inline] pub unsafe fn GetLogFileInformation(hlog: super::super::Foundation::HANDLE, pinfobuffer: *mut CLS_INFORMATION, cbbuffer: *mut u32) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn GetLogFileInformation(hlog : super::super::Foundation:: HANDLE, pinfobuffer : *mut CLS_INFORMATION, cbbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetLogFileInformation(core::mem::transmute(hlog), core::mem::transmute(pinfobuffer), core::mem::transmute(cbbuffer)).ok() + GetLogFileInformation(hlog, core::mem::transmute(pinfobuffer), core::mem::transmute(cbbuffer)).ok() } #[inline] pub unsafe fn GetLogIoStatistics(hlog: super::super::Foundation::HANDLE, pvstatsbuffer: *mut core::ffi::c_void, cbstatsbuffer: u32, estatsclass: CLFS_IOSTATS_CLASS, pcbstatswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn GetLogIoStatistics(hlog : super::super::Foundation:: HANDLE, pvstatsbuffer : *mut core::ffi::c_void, cbstatsbuffer : u32, estatsclass : CLFS_IOSTATS_CLASS, pcbstatswritten : *mut u32) -> super::super::Foundation:: BOOL); - GetLogIoStatistics(core::mem::transmute(hlog), core::mem::transmute(pvstatsbuffer), core::mem::transmute(cbstatsbuffer), core::mem::transmute(estatsclass), core::mem::transmute(pcbstatswritten)).ok() + GetLogIoStatistics(hlog, core::mem::transmute(pvstatsbuffer), cbstatsbuffer, estatsclass, core::mem::transmute(pcbstatswritten)).ok() } #[inline] pub unsafe fn GetLogReservationInfo(pvmarshal: *const core::ffi::c_void, pcbrecordnumber: *mut u32, pcbuserreservation: *mut i64, pcbcommitreservation: *mut i64) -> super::super::Foundation::BOOL { windows_targets::link!("clfsw32.dll" "system" fn GetLogReservationInfo(pvmarshal : *const core::ffi::c_void, pcbrecordnumber : *mut u32, pcbuserreservation : *mut i64, pcbcommitreservation : *mut i64) -> super::super::Foundation:: BOOL); - GetLogReservationInfo(core::mem::transmute(pvmarshal), core::mem::transmute(pcbrecordnumber), core::mem::transmute(pcbuserreservation), core::mem::transmute(pcbcommitreservation)) + GetLogReservationInfo(pvmarshal, core::mem::transmute(pcbrecordnumber), core::mem::transmute(pcbuserreservation), core::mem::transmute(pcbcommitreservation)) } #[inline] pub unsafe fn GetLogicalDriveStringsA(lpbuffer: Option<&mut [u8]>) -> u32 { @@ -1348,7 +1326,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetLongPathNameTransactedA(lpszshortpath : windows_core::PCSTR, lpszlongpath : windows_core::PSTR, cchbuffer : u32, htransaction : super::super::Foundation:: HANDLE) -> u32); - GetLongPathNameTransactedA(lpszshortpath.param().abi(), core::mem::transmute(lpszlongpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszlongpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(htransaction)) + GetLongPathNameTransactedA(lpszshortpath.param().abi(), core::mem::transmute(lpszlongpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszlongpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), htransaction) } #[inline] pub unsafe fn GetLongPathNameTransactedW(lpszshortpath: P0, lpszlongpath: Option<&mut [u16]>, htransaction: super::super::Foundation::HANDLE) -> u32 @@ -1356,7 +1334,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetLongPathNameTransactedW(lpszshortpath : windows_core::PCWSTR, lpszlongpath : windows_core::PWSTR, cchbuffer : u32, htransaction : super::super::Foundation:: HANDLE) -> u32); - GetLongPathNameTransactedW(lpszshortpath.param().abi(), core::mem::transmute(lpszlongpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszlongpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(htransaction)) + GetLongPathNameTransactedW(lpszshortpath.param().abi(), core::mem::transmute(lpszlongpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszlongpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), htransaction) } #[inline] pub unsafe fn GetLongPathNameW(lpszshortpath: P0, lpszlongpath: Option<&mut [u16]>) -> u32 @@ -1369,18 +1347,18 @@ where #[inline] pub unsafe fn GetNextLogArchiveExtent(pvarchivecontext: *mut core::ffi::c_void, rgadextent: *mut CLS_ARCHIVE_DESCRIPTOR, cdescriptors: u32, pcdescriptorsreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn GetNextLogArchiveExtent(pvarchivecontext : *mut core::ffi::c_void, rgadextent : *mut CLS_ARCHIVE_DESCRIPTOR, cdescriptors : u32, pcdescriptorsreturned : *mut u32) -> super::super::Foundation:: BOOL); - GetNextLogArchiveExtent(core::mem::transmute(pvarchivecontext), core::mem::transmute(rgadextent), core::mem::transmute(cdescriptors), core::mem::transmute(pcdescriptorsreturned)).ok() + GetNextLogArchiveExtent(core::mem::transmute(pvarchivecontext), core::mem::transmute(rgadextent), cdescriptors, core::mem::transmute(pcdescriptorsreturned)).ok() } #[inline] pub unsafe fn GetNotificationResourceManager(resourcemanagerhandle: super::super::Foundation::HANDLE, transactionnotification: *mut TRANSACTION_NOTIFICATION, notificationlength: u32, dwmilliseconds: u32, returnlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetNotificationResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionnotification : *mut TRANSACTION_NOTIFICATION, notificationlength : u32, dwmilliseconds : u32, returnlength : *mut u32) -> super::super::Foundation:: BOOL); - GetNotificationResourceManager(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionnotification), core::mem::transmute(notificationlength), core::mem::transmute(dwmilliseconds), core::mem::transmute(returnlength)).ok() + GetNotificationResourceManager(resourcemanagerhandle, core::mem::transmute(transactionnotification), notificationlength, dwmilliseconds, core::mem::transmute(returnlength)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn GetNotificationResourceManagerAsync(resourcemanagerhandle: super::super::Foundation::HANDLE, transactionnotification: *mut TRANSACTION_NOTIFICATION, transactionnotificationlength: u32, returnlength: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetNotificationResourceManagerAsync(resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionnotification : *mut TRANSACTION_NOTIFICATION, transactionnotificationlength : u32, returnlength : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - GetNotificationResourceManagerAsync(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(transactionnotification), core::mem::transmute(transactionnotificationlength), core::mem::transmute(returnlength), core::mem::transmute(lpoverlapped)).ok() + GetNotificationResourceManagerAsync(resourcemanagerhandle, core::mem::transmute(transactionnotification), transactionnotificationlength, core::mem::transmute(returnlength), core::mem::transmute(lpoverlapped)).ok() } #[inline] pub unsafe fn GetShortPathNameA(lpszlongpath: P0, lpszshortpath: Option<&mut [u8]>) -> u32 @@ -1401,17 +1379,17 @@ where #[inline] pub unsafe fn GetTapeParameters(hdevice: super::super::Foundation::HANDLE, dwoperation: GET_TAPE_DRIVE_PARAMETERS_OPERATION, lpdwsize: *mut u32, lptapeinformation: *mut core::ffi::c_void) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetTapeParameters(hdevice : super::super::Foundation:: HANDLE, dwoperation : GET_TAPE_DRIVE_PARAMETERS_OPERATION, lpdwsize : *mut u32, lptapeinformation : *mut core::ffi::c_void) -> u32); - GetTapeParameters(core::mem::transmute(hdevice), core::mem::transmute(dwoperation), core::mem::transmute(lpdwsize), core::mem::transmute(lptapeinformation)) + GetTapeParameters(hdevice, dwoperation, core::mem::transmute(lpdwsize), core::mem::transmute(lptapeinformation)) } #[inline] pub unsafe fn GetTapePosition(hdevice: super::super::Foundation::HANDLE, dwpositiontype: TAPE_POSITION_TYPE, lpdwpartition: *mut u32, lpdwoffsetlow: *mut u32, lpdwoffsethigh: *mut u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetTapePosition(hdevice : super::super::Foundation:: HANDLE, dwpositiontype : TAPE_POSITION_TYPE, lpdwpartition : *mut u32, lpdwoffsetlow : *mut u32, lpdwoffsethigh : *mut u32) -> u32); - GetTapePosition(core::mem::transmute(hdevice), core::mem::transmute(dwpositiontype), core::mem::transmute(lpdwpartition), core::mem::transmute(lpdwoffsetlow), core::mem::transmute(lpdwoffsethigh)) + GetTapePosition(hdevice, dwpositiontype, core::mem::transmute(lpdwpartition), core::mem::transmute(lpdwoffsetlow), core::mem::transmute(lpdwoffsethigh)) } #[inline] pub unsafe fn GetTapeStatus(hdevice: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetTapeStatus(hdevice : super::super::Foundation:: HANDLE) -> u32); - GetTapeStatus(core::mem::transmute(hdevice)) + GetTapeStatus(hdevice) } #[inline] pub unsafe fn GetTempFileNameA(lppathname: P0, lpprefixstring: P1, uunique: u32, lptempfilename: &mut [u8; 260]) -> u32 @@ -1420,7 +1398,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetTempFileNameA(lppathname : windows_core::PCSTR, lpprefixstring : windows_core::PCSTR, uunique : u32, lptempfilename : windows_core::PSTR) -> u32); - GetTempFileNameA(lppathname.param().abi(), lpprefixstring.param().abi(), core::mem::transmute(uunique), core::mem::transmute(lptempfilename.as_ptr())) + GetTempFileNameA(lppathname.param().abi(), lpprefixstring.param().abi(), uunique, core::mem::transmute(lptempfilename.as_ptr())) } #[inline] pub unsafe fn GetTempFileNameW(lppathname: P0, lpprefixstring: P1, uunique: u32, lptempfilename: &mut [u16; 260]) -> u32 @@ -1429,7 +1407,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetTempFileNameW(lppathname : windows_core::PCWSTR, lpprefixstring : windows_core::PCWSTR, uunique : u32, lptempfilename : windows_core::PWSTR) -> u32); - GetTempFileNameW(lppathname.param().abi(), lpprefixstring.param().abi(), core::mem::transmute(uunique), core::mem::transmute(lptempfilename.as_ptr())) + GetTempFileNameW(lppathname.param().abi(), lpprefixstring.param().abi(), uunique, core::mem::transmute(lptempfilename.as_ptr())) } #[inline] pub unsafe fn GetTempPath2A(buffer: Option<&mut [u8]>) -> u32 { @@ -1454,17 +1432,17 @@ pub unsafe fn GetTempPathW(lpbuffer: Option<&mut [u16]>) -> u32 { #[inline] pub unsafe fn GetTransactionId(transactionhandle: super::super::Foundation::HANDLE, transactionid: *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetTransactionId(transactionhandle : super::super::Foundation:: HANDLE, transactionid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - GetTransactionId(core::mem::transmute(transactionhandle), core::mem::transmute(transactionid)).ok() + GetTransactionId(transactionhandle, core::mem::transmute(transactionid)).ok() } #[inline] pub unsafe fn GetTransactionInformation(transactionhandle: super::super::Foundation::HANDLE, outcome: *mut u32, isolationlevel: *mut u32, isolationflags: *mut u32, timeout: *mut u32, description: Option<&mut [u16]>) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetTransactionInformation(transactionhandle : super::super::Foundation:: HANDLE, outcome : *mut u32, isolationlevel : *mut u32, isolationflags : *mut u32, timeout : *mut u32, bufferlength : u32, description : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - GetTransactionInformation(core::mem::transmute(transactionhandle), core::mem::transmute(outcome), core::mem::transmute(isolationlevel), core::mem::transmute(isolationflags), core::mem::transmute(timeout), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + GetTransactionInformation(transactionhandle, core::mem::transmute(outcome), core::mem::transmute(isolationlevel), core::mem::transmute(isolationflags), core::mem::transmute(timeout), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn GetTransactionManagerId(transactionmanagerhandle: super::super::Foundation::HANDLE, transactionmanagerid: *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn GetTransactionManagerId(transactionmanagerhandle : super::super::Foundation:: HANDLE, transactionmanagerid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - GetTransactionManagerId(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(transactionmanagerid)).ok() + GetTransactionManagerId(transactionmanagerhandle, core::mem::transmute(transactionmanagerid)).ok() } #[inline] pub unsafe fn GetVolumeInformationA(lprootpathname: P0, lpvolumenamebuffer: Option<&mut [u8]>, lpvolumeserialnumber: Option<*mut u32>, lpmaximumcomponentlength: Option<*mut u32>, lpfilesystemflags: Option<*mut u32>, lpfilesystemnamebuffer: Option<&mut [u8]>) -> windows_core::Result<()> @@ -1488,7 +1466,7 @@ where pub unsafe fn GetVolumeInformationByHandleW(hfile: super::super::Foundation::HANDLE, lpvolumenamebuffer: Option<&mut [u16]>, lpvolumeserialnumber: Option<*mut u32>, lpmaximumcomponentlength: Option<*mut u32>, lpfilesystemflags: Option<*mut u32>, lpfilesystemnamebuffer: Option<&mut [u16]>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationByHandleW(hfile : super::super::Foundation:: HANDLE, lpvolumenamebuffer : windows_core::PWSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PWSTR, nfilesystemnamesize : u32) -> super::super::Foundation:: BOOL); GetVolumeInformationByHandleW( - core::mem::transmute(hfile), + hfile, core::mem::transmute(lpvolumenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpvolumenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpvolumeserialnumber.unwrap_or(core::mem::zeroed())), @@ -1568,27 +1546,27 @@ where #[inline] pub unsafe fn HandleLogFull(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn HandleLogFull(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HandleLogFull(core::mem::transmute(hlog)).ok() + HandleLogFull(hlog).ok() } #[inline] pub unsafe fn InstallLogPolicy(hlog: super::super::Foundation::HANDLE, ppolicy: *mut CLFS_MGMT_POLICY) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn InstallLogPolicy(hlog : super::super::Foundation:: HANDLE, ppolicy : *mut CLFS_MGMT_POLICY) -> super::super::Foundation:: BOOL); - InstallLogPolicy(core::mem::transmute(hlog), core::mem::transmute(ppolicy)).ok() + InstallLogPolicy(hlog, core::mem::transmute(ppolicy)).ok() } #[inline] pub unsafe fn IsIoRingOpSupported(ioring: HIORING, op: IORING_OP_CODE) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn IsIoRingOpSupported(ioring : HIORING, op : IORING_OP_CODE) -> super::super::Foundation:: BOOL); - IsIoRingOpSupported(core::mem::transmute(ioring), core::mem::transmute(op)) + IsIoRingOpSupported(ioring, op) } #[inline] pub unsafe fn LZClose(hfile: i32) { windows_targets::link!("kernel32.dll" "system" fn LZClose(hfile : i32)); - LZClose(core::mem::transmute(hfile)) + LZClose(hfile) } #[inline] pub unsafe fn LZCopy(hfsource: i32, hfdest: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LZCopy(hfsource : i32, hfdest : i32) -> i32); - LZCopy(core::mem::transmute(hfsource), core::mem::transmute(hfdest)) + LZCopy(hfsource, hfdest) } #[inline] pub unsafe fn LZDone() { @@ -1598,7 +1576,7 @@ pub unsafe fn LZDone() { #[inline] pub unsafe fn LZInit(hfsource: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LZInit(hfsource : i32) -> i32); - LZInit(core::mem::transmute(hfsource)) + LZInit(hfsource) } #[inline] pub unsafe fn LZOpenFileA(lpfilename: P0, lpreopenbuf: *mut OFSTRUCT, wstyle: LZOPENFILE_STYLE) -> i32 @@ -1606,7 +1584,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LZOpenFileA(lpfilename : windows_core::PCSTR, lpreopenbuf : *mut OFSTRUCT, wstyle : LZOPENFILE_STYLE) -> i32); - LZOpenFileA(lpfilename.param().abi(), core::mem::transmute(lpreopenbuf), core::mem::transmute(wstyle)) + LZOpenFileA(lpfilename.param().abi(), core::mem::transmute(lpreopenbuf), wstyle) } #[inline] pub unsafe fn LZOpenFileW(lpfilename: P0, lpreopenbuf: *mut OFSTRUCT, wstyle: LZOPENFILE_STYLE) -> i32 @@ -1614,17 +1592,17 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LZOpenFileW(lpfilename : windows_core::PCWSTR, lpreopenbuf : *mut OFSTRUCT, wstyle : LZOPENFILE_STYLE) -> i32); - LZOpenFileW(lpfilename.param().abi(), core::mem::transmute(lpreopenbuf), core::mem::transmute(wstyle)) + LZOpenFileW(lpfilename.param().abi(), core::mem::transmute(lpreopenbuf), wstyle) } #[inline] pub unsafe fn LZRead(hfile: i32, lpbuffer: &mut [u8]) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LZRead(hfile : i32, lpbuffer : windows_core::PSTR, cbread : i32) -> i32); - LZRead(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + LZRead(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn LZSeek(hfile: i32, loffset: i32, iorigin: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn LZSeek(hfile : i32, loffset : i32, iorigin : i32) -> i32); - LZSeek(core::mem::transmute(hfile), core::mem::transmute(loffset), core::mem::transmute(iorigin)) + LZSeek(hfile, loffset, iorigin) } #[inline] pub unsafe fn LZStart() -> i32 { @@ -1634,73 +1612,73 @@ pub unsafe fn LZStart() -> i32 { #[inline] pub unsafe fn LocalFileTimeToFileTime(lplocalfiletime: *const super::super::Foundation::FILETIME, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn LocalFileTimeToFileTime(lplocalfiletime : *const super::super::Foundation:: FILETIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - LocalFileTimeToFileTime(core::mem::transmute(lplocalfiletime), core::mem::transmute(lpfiletime)).ok() + LocalFileTimeToFileTime(lplocalfiletime, core::mem::transmute(lpfiletime)).ok() } #[inline] pub unsafe fn LockFile(hfile: super::super::Foundation::HANDLE, dwfileoffsetlow: u32, dwfileoffsethigh: u32, nnumberofbytestolocklow: u32, nnumberofbytestolockhigh: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn LockFile(hfile : super::super::Foundation:: HANDLE, dwfileoffsetlow : u32, dwfileoffsethigh : u32, nnumberofbytestolocklow : u32, nnumberofbytestolockhigh : u32) -> super::super::Foundation:: BOOL); - LockFile(core::mem::transmute(hfile), core::mem::transmute(dwfileoffsetlow), core::mem::transmute(dwfileoffsethigh), core::mem::transmute(nnumberofbytestolocklow), core::mem::transmute(nnumberofbytestolockhigh)).ok() + LockFile(hfile, dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestolocklow, nnumberofbytestolockhigh).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn LockFileEx(hfile: super::super::Foundation::HANDLE, dwflags: LOCK_FILE_FLAGS, dwreserved: Option, nnumberofbytestolocklow: u32, nnumberofbytestolockhigh: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn LockFileEx(hfile : super::super::Foundation:: HANDLE, dwflags : LOCK_FILE_FLAGS, dwreserved : u32, nnumberofbytestolocklow : u32, nnumberofbytestolockhigh : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - LockFileEx(core::mem::transmute(hfile), core::mem::transmute(dwflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(nnumberofbytestolocklow), core::mem::transmute(nnumberofbytestolockhigh), core::mem::transmute(lpoverlapped)).ok() + LockFileEx(hfile, dwflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), nnumberofbytestolocklow, nnumberofbytestolockhigh, core::mem::transmute(lpoverlapped)).ok() } #[inline] pub unsafe fn LogTailAdvanceFailure(hlog: super::super::Foundation::HANDLE, dwreason: u32) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn LogTailAdvanceFailure(hlog : super::super::Foundation:: HANDLE, dwreason : u32) -> super::super::Foundation:: BOOL); - LogTailAdvanceFailure(core::mem::transmute(hlog), core::mem::transmute(dwreason)).ok() + LogTailAdvanceFailure(hlog, dwreason).ok() } #[inline] pub unsafe fn LsnBlockOffset(plsn: *const CLS_LSN) -> u32 { windows_targets::link!("clfsw32.dll" "system" fn LsnBlockOffset(plsn : *const CLS_LSN) -> u32); - LsnBlockOffset(core::mem::transmute(plsn)) + LsnBlockOffset(plsn) } #[inline] pub unsafe fn LsnContainer(plsn: *const CLS_LSN) -> u32 { windows_targets::link!("clfsw32.dll" "system" fn LsnContainer(plsn : *const CLS_LSN) -> u32); - LsnContainer(core::mem::transmute(plsn)) + LsnContainer(plsn) } #[inline] pub unsafe fn LsnCreate(cidcontainer: u32, offblock: u32, crecord: u32) -> CLS_LSN { windows_targets::link!("clfsw32.dll" "system" fn LsnCreate(cidcontainer : u32, offblock : u32, crecord : u32) -> CLS_LSN); - LsnCreate(core::mem::transmute(cidcontainer), core::mem::transmute(offblock), core::mem::transmute(crecord)) + LsnCreate(cidcontainer, offblock, crecord) } #[inline] pub unsafe fn LsnEqual(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> bool { windows_targets::link!("clfsw32.dll" "system" fn LsnEqual(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); - LsnEqual(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) + LsnEqual(plsn1, plsn2) } #[inline] pub unsafe fn LsnGreater(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> bool { windows_targets::link!("clfsw32.dll" "system" fn LsnGreater(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); - LsnGreater(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) + LsnGreater(plsn1, plsn2) } #[inline] pub unsafe fn LsnIncrement(plsn: *const CLS_LSN) -> CLS_LSN { windows_targets::link!("clfsw32.dll" "system" fn LsnIncrement(plsn : *const CLS_LSN) -> CLS_LSN); - LsnIncrement(core::mem::transmute(plsn)) + LsnIncrement(plsn) } #[inline] pub unsafe fn LsnInvalid(plsn: *const CLS_LSN) -> bool { windows_targets::link!("clfsw32.dll" "system" fn LsnInvalid(plsn : *const CLS_LSN) -> bool); - LsnInvalid(core::mem::transmute(plsn)) + LsnInvalid(plsn) } #[inline] pub unsafe fn LsnLess(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> bool { windows_targets::link!("clfsw32.dll" "system" fn LsnLess(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); - LsnLess(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) + LsnLess(plsn1, plsn2) } #[inline] pub unsafe fn LsnNull(plsn: *const CLS_LSN) -> bool { windows_targets::link!("clfsw32.dll" "system" fn LsnNull(plsn : *const CLS_LSN) -> bool); - LsnNull(core::mem::transmute(plsn)) + LsnNull(plsn) } #[inline] pub unsafe fn LsnRecordSequence(plsn: *const CLS_LSN) -> u32 { windows_targets::link!("clfsw32.dll" "system" fn LsnRecordSequence(plsn : *const CLS_LSN) -> u32); - LsnRecordSequence(core::mem::transmute(plsn)) + LsnRecordSequence(plsn) } #[inline] pub unsafe fn MoveFileA(lpexistingfilename: P0, lpnewfilename: P1) -> windows_core::Result<()> @@ -1718,7 +1696,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileExA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); - MoveFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(dwflags)).ok() + MoveFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn MoveFileExW(lpexistingfilename: P0, lpnewfilename: P1, dwflags: MOVE_FILE_FLAGS) -> windows_core::Result<()> @@ -1727,7 +1705,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileExW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); - MoveFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(dwflags)).ok() + MoveFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn MoveFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1) -> super::super::Foundation::BOOL @@ -1745,7 +1723,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileTransactedA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - MoveFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(htransaction)).ok() + MoveFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), dwflags, htransaction).ok() } #[inline] pub unsafe fn MoveFileTransactedW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, dwflags: MOVE_FILE_FLAGS, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -1754,7 +1732,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileTransactedW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - MoveFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(htransaction)).ok() + MoveFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), dwflags, htransaction).ok() } #[inline] pub unsafe fn MoveFileW(lpexistingfilename: P0, lpnewfilename: P1) -> windows_core::Result<()> @@ -1772,7 +1750,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileWithProgressA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); - MoveFileWithProgressA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + MoveFileWithProgressA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn MoveFileWithProgressW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, dwflags: MOVE_FILE_FLAGS) -> windows_core::Result<()> @@ -1781,7 +1759,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileWithProgressW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); - MoveFileWithProgressW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + MoveFileWithProgressW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(lpprogressroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn NetConnectionEnum(servername: P0, qualifier: P1, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 @@ -1790,7 +1768,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetConnectionEnum(servername : windows_core::PCWSTR, qualifier : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetConnectionEnum(servername.param().abi(), qualifier.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetConnectionEnum(servername.param().abi(), qualifier.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetFileClose(servername: P0, fileid: u32) -> u32 @@ -1798,7 +1776,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetFileClose(servername : windows_core::PCWSTR, fileid : u32) -> u32); - NetFileClose(servername.param().abi(), core::mem::transmute(fileid)) + NetFileClose(servername.param().abi(), fileid) } #[inline] pub unsafe fn NetFileEnum(servername: P0, basepath: P1, username: P2, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut usize>) -> u32 @@ -1808,7 +1786,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetFileEnum(servername : windows_core::PCWSTR, basepath : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut usize) -> u32); - NetFileEnum(servername.param().abi(), basepath.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetFileEnum(servername.param().abi(), basepath.param().abi(), username.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetFileGetInfo(servername: P0, fileid: u32, level: u32, bufptr: *mut *mut u8) -> u32 @@ -1816,7 +1794,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetFileGetInfo(servername : windows_core::PCWSTR, fileid : u32, level : u32, bufptr : *mut *mut u8) -> u32); - NetFileGetInfo(servername.param().abi(), core::mem::transmute(fileid), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetFileGetInfo(servername.param().abi(), fileid, level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetServerAliasAdd(servername: P0, level: u32, buf: *const u8) -> u32 @@ -1824,7 +1802,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerAliasAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8) -> u32); - NetServerAliasAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf)) + NetServerAliasAdd(servername.param().abi(), level, buf) } #[inline] pub unsafe fn NetServerAliasDel(servername: P0, level: u32, buf: *const u8) -> u32 @@ -1832,7 +1810,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerAliasDel(servername : windows_core::PCWSTR, level : u32, buf : *const u8) -> u32); - NetServerAliasDel(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf)) + NetServerAliasDel(servername.param().abi(), level, buf) } #[inline] pub unsafe fn NetServerAliasEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: Option<*mut u32>) -> u32 @@ -1840,7 +1818,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerAliasEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resumehandle : *mut u32) -> u32); - NetServerAliasEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) + NetServerAliasEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resumehandle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetSessionDel(servername: P0, uncclientname: P1, username: P2) -> u32 @@ -1860,7 +1838,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetSessionEnum(servername : windows_core::PCWSTR, uncclientname : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetSessionEnum(servername.param().abi(), uncclientname.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetSessionEnum(servername.param().abi(), uncclientname.param().abi(), username.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetSessionGetInfo(servername: P0, uncclientname: P1, username: P2, level: u32, bufptr: *mut *mut u8) -> u32 @@ -1870,7 +1848,7 @@ where P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetSessionGetInfo(servername : windows_core::PCWSTR, uncclientname : windows_core::PCWSTR, username : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetSessionGetInfo(servername.param().abi(), uncclientname.param().abi(), username.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetSessionGetInfo(servername.param().abi(), uncclientname.param().abi(), username.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetShareAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -1878,7 +1856,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetShareAdd(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetShareAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetShareCheck(servername: P0, device: P1, r#type: *mut u32) -> u32 @@ -1904,7 +1882,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareDelEx(servername : windows_core::PCWSTR, level : u32, buf : *const u8) -> u32); - NetShareDelEx(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(buf)) + NetShareDelEx(servername.param().abi(), level, buf) } #[inline] pub unsafe fn NetShareDelSticky(servername: P0, netname: P1, reserved: Option) -> u32 @@ -1921,7 +1899,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareEnum(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetShareEnum(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetShareEnum(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetShareEnumSticky(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 @@ -1929,7 +1907,7 @@ where P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareEnumSticky(servername : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8, prefmaxlen : u32, entriesread : *mut u32, totalentries : *mut u32, resume_handle : *mut u32) -> u32); - NetShareEnumSticky(servername.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr), core::mem::transmute(prefmaxlen), core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) + NetShareEnumSticky(servername.param().abi(), level, core::mem::transmute(bufptr), prefmaxlen, core::mem::transmute(entriesread), core::mem::transmute(totalentries), core::mem::transmute(resume_handle.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetShareGetInfo(servername: P0, netname: P1, level: u32, bufptr: *mut *mut u8) -> u32 @@ -1938,7 +1916,7 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareGetInfo(servername : windows_core::PCWSTR, netname : windows_core::PCWSTR, level : u32, bufptr : *mut *mut u8) -> u32); - NetShareGetInfo(servername.param().abi(), netname.param().abi(), core::mem::transmute(level), core::mem::transmute(bufptr)) + NetShareGetInfo(servername.param().abi(), netname.param().abi(), level, core::mem::transmute(bufptr)) } #[inline] pub unsafe fn NetShareSetInfo(servername: P0, netname: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 @@ -1947,12 +1925,12 @@ where P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareSetInfo(servername : windows_core::PCWSTR, netname : windows_core::PCWSTR, level : u32, buf : *const u8, parm_err : *mut u32) -> u32); - NetShareSetInfo(servername.param().abi(), netname.param().abi(), core::mem::transmute(level), core::mem::transmute(buf), core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) + NetShareSetInfo(servername.param().abi(), netname.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NetStatisticsGet(servername: *const i8, service: *const i8, level: u32, options: u32, buffer: *mut *mut u8) -> u32 { windows_targets::link!("netapi32.dll" "system" fn NetStatisticsGet(servername : *const i8, service : *const i8, level : u32, options : u32, buffer : *mut *mut u8) -> u32); - NetStatisticsGet(core::mem::transmute(servername), core::mem::transmute(service), core::mem::transmute(level), core::mem::transmute(options), core::mem::transmute(buffer)) + NetStatisticsGet(servername, service, level, options, core::mem::transmute(buffer)) } #[inline] pub unsafe fn OpenEncryptedFileRawA(lpfilename: P0, ulflags: u32, pvcontext: *mut *mut core::ffi::c_void) -> u32 @@ -1960,7 +1938,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenEncryptedFileRawA(lpfilename : windows_core::PCSTR, ulflags : u32, pvcontext : *mut *mut core::ffi::c_void) -> u32); - OpenEncryptedFileRawA(lpfilename.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(pvcontext)) + OpenEncryptedFileRawA(lpfilename.param().abi(), ulflags, core::mem::transmute(pvcontext)) } #[inline] pub unsafe fn OpenEncryptedFileRawW(lpfilename: P0, ulflags: u32, pvcontext: *mut *mut core::ffi::c_void) -> u32 @@ -1968,12 +1946,12 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenEncryptedFileRawW(lpfilename : windows_core::PCWSTR, ulflags : u32, pvcontext : *mut *mut core::ffi::c_void) -> u32); - OpenEncryptedFileRawW(lpfilename.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(pvcontext)) + OpenEncryptedFileRawW(lpfilename.param().abi(), ulflags, core::mem::transmute(pvcontext)) } #[inline] pub unsafe fn OpenEnlistment(dwdesiredaccess: u32, resourcemanagerhandle: super::super::Foundation::HANDLE, enlistmentid: *mut windows_core::GUID) -> windows_core::Result { windows_targets::link!("ktmw32.dll" "system" fn OpenEnlistment(dwdesiredaccess : u32, resourcemanagerhandle : super::super::Foundation:: HANDLE, enlistmentid : *mut windows_core::GUID) -> super::super::Foundation:: HANDLE); - let result__ = OpenEnlistment(core::mem::transmute(dwdesiredaccess), core::mem::transmute(resourcemanagerhandle), core::mem::transmute(enlistmentid)); + let result__ = OpenEnlistment(dwdesiredaccess, resourcemanagerhandle, core::mem::transmute(enlistmentid)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1982,25 +1960,25 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenFile(lpfilename : windows_core::PCSTR, lpreopenbuff : *mut OFSTRUCT, ustyle : u32) -> i32); - OpenFile(lpfilename.param().abi(), core::mem::transmute(lpreopenbuff), core::mem::transmute(ustyle)) + OpenFile(lpfilename.param().abi(), core::mem::transmute(lpreopenbuff), ustyle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenFileById(hvolumehint: super::super::Foundation::HANDLE, lpfileid: *const FILE_ID_DESCRIPTOR, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn OpenFileById(hvolumehint : super::super::Foundation:: HANDLE, lpfileid : *const FILE_ID_DESCRIPTOR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - let result__ = OpenFileById(core::mem::transmute(hvolumehint), core::mem::transmute(lpfileid), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflagsandattributes)); + let result__ = OpenFileById(hvolumehint, lpfileid, dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwflagsandattributes); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenResourceManager(dwdesiredaccess: u32, tmhandle: super::super::Foundation::HANDLE, resourcemanagerid: *mut windows_core::GUID) -> windows_core::Result { windows_targets::link!("ktmw32.dll" "system" fn OpenResourceManager(dwdesiredaccess : u32, tmhandle : super::super::Foundation:: HANDLE, resourcemanagerid : *mut windows_core::GUID) -> super::super::Foundation:: HANDLE); - let result__ = OpenResourceManager(core::mem::transmute(dwdesiredaccess), core::mem::transmute(tmhandle), core::mem::transmute(resourcemanagerid)); + let result__ = OpenResourceManager(dwdesiredaccess, tmhandle, core::mem::transmute(resourcemanagerid)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenTransaction(dwdesiredaccess: u32, transactionid: *mut windows_core::GUID) -> windows_core::Result { windows_targets::link!("ktmw32.dll" "system" fn OpenTransaction(dwdesiredaccess : u32, transactionid : *mut windows_core::GUID) -> super::super::Foundation:: HANDLE); - let result__ = OpenTransaction(core::mem::transmute(dwdesiredaccess), core::mem::transmute(transactionid)); + let result__ = OpenTransaction(dwdesiredaccess, core::mem::transmute(transactionid)); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2009,45 +1987,45 @@ where P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn OpenTransactionManager(logfilename : windows_core::PCWSTR, desiredaccess : u32, openoptions : u32) -> super::super::Foundation:: HANDLE); - let result__ = OpenTransactionManager(logfilename.param().abi(), core::mem::transmute(desiredaccess), core::mem::transmute(openoptions)); + let result__ = OpenTransactionManager(logfilename.param().abi(), desiredaccess, openoptions); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenTransactionManagerById(transactionmanagerid: *const windows_core::GUID, desiredaccess: u32, openoptions: u32) -> windows_core::Result { windows_targets::link!("ktmw32.dll" "system" fn OpenTransactionManagerById(transactionmanagerid : *const windows_core::GUID, desiredaccess : u32, openoptions : u32) -> super::super::Foundation:: HANDLE); - let result__ = OpenTransactionManagerById(core::mem::transmute(transactionmanagerid), core::mem::transmute(desiredaccess), core::mem::transmute(openoptions)); + let result__ = OpenTransactionManagerById(transactionmanagerid, desiredaccess, openoptions); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PopIoRingCompletion(ioring: HIORING, cqe: *mut IORING_CQE) -> windows_core::HRESULT { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn PopIoRingCompletion(ioring : HIORING, cqe : *mut IORING_CQE) -> windows_core::HRESULT); - PopIoRingCompletion(core::mem::transmute(ioring), core::mem::transmute(cqe)) + PopIoRingCompletion(ioring, core::mem::transmute(cqe)) } #[inline] pub unsafe fn PrePrepareComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn PrePrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrePrepareComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + PrePrepareComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn PrePrepareEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn PrePrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrePrepareEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + PrePrepareEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn PrepareComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn PrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrepareComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + PrepareComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn PrepareEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn PrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrepareEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + PrepareEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn PrepareLogArchive(hlog: super::super::Foundation::HANDLE, pszbaselogfilename: &mut [u16], plsnlow: Option<*const CLS_LSN>, plsnhigh: Option<*const CLS_LSN>, pcactuallength: Option<*mut u32>, poffbaselogfiledata: *mut u64, pcbbaselogfilelength: *mut u64, plsnbase: *mut CLS_LSN, plsnlast: *mut CLS_LSN, plsncurrentarchivetail: *mut CLS_LSN, ppvarchivecontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn PrepareLogArchive(hlog : super::super::Foundation:: HANDLE, pszbaselogfilename : windows_core::PWSTR, clen : u32, plsnlow : *const CLS_LSN, plsnhigh : *const CLS_LSN, pcactuallength : *mut u32, poffbaselogfiledata : *mut u64, pcbbaselogfilelength : *mut u64, plsnbase : *mut CLS_LSN, plsnlast : *mut CLS_LSN, plsncurrentarchivetail : *mut CLS_LSN, ppvarchivecontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); PrepareLogArchive( - core::mem::transmute(hlog), + hlog, core::mem::transmute(pszbaselogfilename.as_ptr()), pszbaselogfilename.len().try_into().unwrap(), core::mem::transmute(plsnlow.unwrap_or(core::mem::zeroed())), @@ -2065,7 +2043,7 @@ pub unsafe fn PrepareLogArchive(hlog: super::super::Foundation::HANDLE, pszbasel #[inline] pub unsafe fn PrepareTape(hdevice: super::super::Foundation::HANDLE, dwoperation: PREPARE_TAPE_OPERATION, bimmediate: bool) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PrepareTape(hdevice : super::super::Foundation:: HANDLE, dwoperation : PREPARE_TAPE_OPERATION, bimmediate : super::super::Foundation:: BOOL) -> u32); - PrepareTape(core::mem::transmute(hdevice), core::mem::transmute(dwoperation), bimmediate.into()) + PrepareTape(hdevice, dwoperation, bimmediate.into()) } #[inline] pub unsafe fn QueryDosDeviceA(lpdevicename: P0, lptargetpath: Option<&mut [u8]>) -> u32 @@ -2092,7 +2070,7 @@ pub unsafe fn QueryIoRingCapabilities() -> windows_core::Result windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn QueryLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE, ppolicybuffer : *mut CLFS_MGMT_POLICY, pcbpolicybuffer : *mut u32) -> super::super::Foundation:: BOOL); - QueryLogPolicy(core::mem::transmute(hlog), core::mem::transmute(epolicytype), core::mem::transmute(ppolicybuffer), core::mem::transmute(pcbpolicybuffer)).ok() + QueryLogPolicy(hlog, epolicytype, core::mem::transmute(ppolicybuffer), core::mem::transmute(pcbpolicybuffer)).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -2115,60 +2093,60 @@ where #[inline] pub unsafe fn ReOpenFile(horiginalfile: super::super::Foundation::HANDLE, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn ReOpenFile(horiginalfile : super::super::Foundation:: HANDLE, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - let result__ = ReOpenFile(core::mem::transmute(horiginalfile), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwflagsandattributes)); + let result__ = ReOpenFile(horiginalfile, dwdesiredaccess, dwsharemode, dwflagsandattributes); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadDirectoryChangesExW(hdirectory: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nbufferlength: u32, bwatchsubtree: bool, dwnotifyfilter: FILE_NOTIFY_CHANGE, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option, readdirectorynotifyinformationclass: READ_DIRECTORY_NOTIFY_INFORMATION_CLASS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadDirectoryChangesExW(hdirectory : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbufferlength : u32, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE, lpbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE, readdirectorynotifyinformationclass : READ_DIRECTORY_NOTIFY_INFORMATION_CLASS) -> super::super::Foundation:: BOOL); - ReadDirectoryChangesExW(core::mem::transmute(hdirectory), core::mem::transmute(lpbuffer), core::mem::transmute(nbufferlength), bwatchsubtree.into(), core::mem::transmute(dwnotifyfilter), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(readdirectorynotifyinformationclass)).ok() + ReadDirectoryChangesExW(hdirectory, core::mem::transmute(lpbuffer), nbufferlength, bwatchsubtree.into(), dwnotifyfilter, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed())), readdirectorynotifyinformationclass).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadDirectoryChangesW(hdirectory: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nbufferlength: u32, bwatchsubtree: bool, dwnotifyfilter: FILE_NOTIFY_CHANGE, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadDirectoryChangesW(hdirectory : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbufferlength : u32, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE, lpbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> super::super::Foundation:: BOOL); - ReadDirectoryChangesW(core::mem::transmute(hdirectory), core::mem::transmute(lpbuffer), core::mem::transmute(nbufferlength), bwatchsubtree.into(), core::mem::transmute(dwnotifyfilter), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))).ok() + ReadDirectoryChangesW(hdirectory, core::mem::transmute(lpbuffer), nbufferlength, bwatchsubtree.into(), dwnotifyfilter, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcompletionroutine.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReadEncryptedFileRaw(pfexportcallback: PFE_EXPORT_FUNC, pvcallbackcontext: Option<*const core::ffi::c_void>, pvcontext: *const core::ffi::c_void) -> u32 { windows_targets::link!("advapi32.dll" "system" fn ReadEncryptedFileRaw(pfexportcallback : PFE_EXPORT_FUNC, pvcallbackcontext : *const core::ffi::c_void, pvcontext : *const core::ffi::c_void) -> u32); - ReadEncryptedFileRaw(core::mem::transmute(pfexportcallback), core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcontext)) + ReadEncryptedFileRaw(pfexportcallback, core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), pvcontext) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFile(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&mut [u8]>, lpnumberofbytesread: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadFile(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpnumberofbytesread : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ReadFile(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpnumberofbytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + ReadFile(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpnumberofbytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFileEx(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&mut [u8]>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadFileEx(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> super::super::Foundation:: BOOL); - ReadFileEx(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoverlapped), core::mem::transmute(lpcompletionroutine)).ok() + ReadFileEx(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoverlapped), lpcompletionroutine).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFileScatter(hfile: super::super::Foundation::HANDLE, asegmentarray: *const FILE_SEGMENT_ELEMENT, nnumberofbytestoread: u32, lpreserved: Option<*const u32>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadFileScatter(hfile : super::super::Foundation:: HANDLE, asegmentarray : *const FILE_SEGMENT_ELEMENT, nnumberofbytestoread : u32, lpreserved : *const u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ReadFileScatter(core::mem::transmute(hfile), core::mem::transmute(asegmentarray), core::mem::transmute(nnumberofbytestoread), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)).ok() + ReadFileScatter(hfile, asegmentarray, nnumberofbytestoread, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)).ok() } #[inline] pub unsafe fn ReadLogArchiveMetadata(pvarchivecontext: *mut core::ffi::c_void, cboffset: u32, cbbytestoread: u32, pbreadbuffer: *mut u8, pcbbytesread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn ReadLogArchiveMetadata(pvarchivecontext : *mut core::ffi::c_void, cboffset : u32, cbbytestoread : u32, pbreadbuffer : *mut u8, pcbbytesread : *mut u32) -> super::super::Foundation:: BOOL); - ReadLogArchiveMetadata(core::mem::transmute(pvarchivecontext), core::mem::transmute(cboffset), core::mem::transmute(cbbytestoread), core::mem::transmute(pbreadbuffer), core::mem::transmute(pcbbytesread)).ok() + ReadLogArchiveMetadata(core::mem::transmute(pvarchivecontext), cboffset, cbbytestoread, core::mem::transmute(pbreadbuffer), core::mem::transmute(pcbbytesread)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadLogNotification(hlog: super::super::Foundation::HANDLE, pnotification: *mut CLFS_MGMT_NOTIFICATION, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn ReadLogNotification(hlog : super::super::Foundation:: HANDLE, pnotification : *mut CLFS_MGMT_NOTIFICATION, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ReadLogNotification(core::mem::transmute(hlog), core::mem::transmute(pnotification), core::mem::transmute(lpoverlapped)).ok() + ReadLogNotification(hlog, core::mem::transmute(pnotification), core::mem::transmute(lpoverlapped)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadLogRecord(pvmarshal: *mut core::ffi::c_void, plsnfirst: *mut CLS_LSN, econtextmode: CLFS_CONTEXT_MODE, ppvreadbuffer: *mut *mut core::ffi::c_void, pcbreadbuffer: *mut u32, perecordtype: *mut u8, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, ppvreadcontext: *mut *mut core::ffi::c_void, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn ReadLogRecord(pvmarshal : *mut core::ffi::c_void, plsnfirst : *mut CLS_LSN, econtextmode : CLFS_CONTEXT_MODE, ppvreadbuffer : *mut *mut core::ffi::c_void, pcbreadbuffer : *mut u32, perecordtype : *mut u8, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, ppvreadcontext : *mut *mut core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ReadLogRecord(core::mem::transmute(pvmarshal), core::mem::transmute(plsnfirst), core::mem::transmute(econtextmode), core::mem::transmute(ppvreadbuffer), core::mem::transmute(pcbreadbuffer), core::mem::transmute(perecordtype), core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), core::mem::transmute(ppvreadcontext), core::mem::transmute(poverlapped)).ok() + ReadLogRecord(core::mem::transmute(pvmarshal), core::mem::transmute(plsnfirst), econtextmode, core::mem::transmute(ppvreadbuffer), core::mem::transmute(pcbreadbuffer), core::mem::transmute(perecordtype), core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), core::mem::transmute(ppvreadcontext), core::mem::transmute(poverlapped)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -2185,7 +2163,7 @@ pub unsafe fn ReadNextLogRecord(pvreadcontext: *mut core::ffi::c_void, ppvbuffer #[inline] pub unsafe fn ReadOnlyEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn ReadOnlyEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - ReadOnlyEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + ReadOnlyEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -2196,27 +2174,27 @@ pub unsafe fn ReadPreviousLogRestartArea(pvreadcontext: *mut core::ffi::c_void, #[inline] pub unsafe fn RecoverEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, enlistmentkey: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RecoverEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentkey : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RecoverEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(enlistmentkey)).ok() + RecoverEnlistment(enlistmenthandle, core::mem::transmute(enlistmentkey)).ok() } #[inline] pub unsafe fn RecoverResourceManager(resourcemanagerhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RecoverResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RecoverResourceManager(core::mem::transmute(resourcemanagerhandle)).ok() + RecoverResourceManager(resourcemanagerhandle).ok() } #[inline] pub unsafe fn RecoverTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RecoverTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RecoverTransactionManager(core::mem::transmute(transactionmanagerhandle)).ok() + RecoverTransactionManager(transactionmanagerhandle).ok() } #[inline] pub unsafe fn RegisterForLogWriteNotification(hlog: super::super::Foundation::HANDLE, cbthreshold: u32, fenable: bool) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn RegisterForLogWriteNotification(hlog : super::super::Foundation:: HANDLE, cbthreshold : u32, fenable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RegisterForLogWriteNotification(core::mem::transmute(hlog), core::mem::transmute(cbthreshold), fenable.into()).ok() + RegisterForLogWriteNotification(hlog, cbthreshold, fenable.into()).ok() } #[inline] pub unsafe fn RegisterManageableLogClient(hlog: super::super::Foundation::HANDLE, pcallbacks: *mut LOG_MANAGEMENT_CALLBACKS) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn RegisterManageableLogClient(hlog : super::super::Foundation:: HANDLE, pcallbacks : *mut LOG_MANAGEMENT_CALLBACKS) -> super::super::Foundation:: BOOL); - RegisterManageableLogClient(core::mem::transmute(hlog), core::mem::transmute(pcallbacks)).ok() + RegisterManageableLogClient(hlog, core::mem::transmute(pcallbacks)).ok() } #[inline] pub unsafe fn RemoveDirectoryA(lppathname: P0) -> windows_core::Result<()> @@ -2240,7 +2218,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryTransactedA(lppathname : windows_core::PCSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RemoveDirectoryTransactedA(lppathname.param().abi(), core::mem::transmute(htransaction)).ok() + RemoveDirectoryTransactedA(lppathname.param().abi(), htransaction).ok() } #[inline] pub unsafe fn RemoveDirectoryTransactedW(lppathname: P0, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -2248,7 +2226,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryTransactedW(lppathname : windows_core::PCWSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RemoveDirectoryTransactedW(lppathname.param().abi(), core::mem::transmute(htransaction)).ok() + RemoveDirectoryTransactedW(lppathname.param().abi(), htransaction).ok() } #[inline] pub unsafe fn RemoveDirectoryW(lppathname: P0) -> windows_core::Result<()> @@ -2264,17 +2242,17 @@ where P1: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn RemoveLogContainer(hlog : super::super::Foundation:: HANDLE, pwszcontainerpath : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RemoveLogContainer(core::mem::transmute(hlog), pwszcontainerpath.param().abi(), fforce.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() + RemoveLogContainer(hlog, pwszcontainerpath.param().abi(), fforce.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RemoveLogContainerSet(hlog: super::super::Foundation::HANDLE, rgwszcontainerpath: &[windows_core::PCWSTR], fforce: bool, preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn RemoveLogContainerSet(hlog : super::super::Foundation:: HANDLE, ccontainer : u16, rgwszcontainerpath : *const windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RemoveLogContainerSet(core::mem::transmute(hlog), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() + RemoveLogContainerSet(hlog, rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.into(), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RemoveLogPolicy(hlog: super::super::Foundation::HANDLE, epolicytype: CLFS_MGMT_POLICY_TYPE) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn RemoveLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE) -> super::super::Foundation:: BOOL); - RemoveLogPolicy(core::mem::transmute(hlog), core::mem::transmute(epolicytype)).ok() + RemoveLogPolicy(hlog, epolicytype).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -2283,7 +2261,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RemoveUsersFromEncryptedFile(lpfilename : windows_core::PCWSTR, phashes : *const ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32); - RemoveUsersFromEncryptedFile(lpfilename.param().abi(), core::mem::transmute(phashes)) + RemoveUsersFromEncryptedFile(lpfilename.param().abi(), phashes) } #[inline] pub unsafe fn RenameTransactionManager(logfilename: P0, existingtransactionmanagerguid: *mut windows_core::GUID) -> windows_core::Result<()> @@ -2301,7 +2279,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReplaceFileA(lpreplacedfilename : windows_core::PCSTR, lpreplacementfilename : windows_core::PCSTR, lpbackupfilename : windows_core::PCSTR, dwreplaceflags : REPLACE_FILE_FLAGS, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReplaceFileA(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), core::mem::transmute(dwreplaceflags), core::mem::transmute(lpexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + ReplaceFileA(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReplaceFileFromAppW(lpreplacedfilename: P0, lpreplacementfilename: P1, lpbackupfilename: P2, dwreplaceflags: u32, lpexclude: Option<*const core::ffi::c_void>, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -2311,7 +2289,7 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn ReplaceFileFromAppW(lpreplacedfilename : windows_core::PCWSTR, lpreplacementfilename : windows_core::PCWSTR, lpbackupfilename : windows_core::PCWSTR, dwreplaceflags : u32, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReplaceFileFromAppW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), core::mem::transmute(dwreplaceflags), core::mem::transmute(lpexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) + ReplaceFileFromAppW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReplaceFileW(lpreplacedfilename: P0, lpreplacementfilename: P1, lpbackupfilename: P2, dwreplaceflags: REPLACE_FILE_FLAGS, lpexclude: Option<*const core::ffi::c_void>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2321,49 +2299,49 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReplaceFileW(lpreplacedfilename : windows_core::PCWSTR, lpreplacementfilename : windows_core::PCWSTR, lpbackupfilename : windows_core::PCWSTR, dwreplaceflags : REPLACE_FILE_FLAGS, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReplaceFileW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), core::mem::transmute(dwreplaceflags), core::mem::transmute(lpexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + ReplaceFileW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReserveAndAppendLog(pvmarshal: *mut core::ffi::c_void, rgwriteentries: *mut CLS_WRITE_ENTRY, cwriteentries: u32, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, creserverecords: u32, rgcbreservation: *mut i64, fflags: CLFS_FLAG, plsn: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn ReserveAndAppendLog(pvmarshal : *mut core::ffi::c_void, rgwriteentries : *mut CLS_WRITE_ENTRY, cwriteentries : u32, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : CLFS_FLAG, plsn : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ReserveAndAppendLog(core::mem::transmute(pvmarshal), core::mem::transmute(rgwriteentries), core::mem::transmute(cwriteentries), core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), core::mem::transmute(creserverecords), core::mem::transmute(rgcbreservation), core::mem::transmute(fflags), core::mem::transmute(plsn), core::mem::transmute(poverlapped)).ok() + ReserveAndAppendLog(core::mem::transmute(pvmarshal), core::mem::transmute(rgwriteentries), cwriteentries, core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), creserverecords, core::mem::transmute(rgcbreservation), fflags, core::mem::transmute(plsn), core::mem::transmute(poverlapped)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReserveAndAppendLogAligned(pvmarshal: *mut core::ffi::c_void, rgwriteentries: *mut CLS_WRITE_ENTRY, cwriteentries: u32, cbentryalignment: u32, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, creserverecords: u32, rgcbreservation: *mut i64, fflags: CLFS_FLAG, plsn: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn ReserveAndAppendLogAligned(pvmarshal : *mut core::ffi::c_void, rgwriteentries : *mut CLS_WRITE_ENTRY, cwriteentries : u32, cbentryalignment : u32, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : CLFS_FLAG, plsn : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ReserveAndAppendLogAligned(core::mem::transmute(pvmarshal), core::mem::transmute(rgwriteentries), core::mem::transmute(cwriteentries), core::mem::transmute(cbentryalignment), core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), core::mem::transmute(creserverecords), core::mem::transmute(rgcbreservation), core::mem::transmute(fflags), core::mem::transmute(plsn), core::mem::transmute(poverlapped)).ok() + ReserveAndAppendLogAligned(core::mem::transmute(pvmarshal), core::mem::transmute(rgwriteentries), cwriteentries, cbentryalignment, core::mem::transmute(plsnundonext), core::mem::transmute(plsnprevious), creserverecords, core::mem::transmute(rgcbreservation), fflags, core::mem::transmute(plsn), core::mem::transmute(poverlapped)).ok() } #[inline] pub unsafe fn RollbackComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RollbackComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - RollbackComplete(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + RollbackComplete(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn RollbackEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RollbackEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - RollbackEnlistment(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + RollbackEnlistment(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn RollbackTransaction(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RollbackTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RollbackTransaction(core::mem::transmute(transactionhandle)).ok() + RollbackTransaction(transactionhandle).ok() } #[inline] pub unsafe fn RollbackTransactionAsync(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RollbackTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RollbackTransactionAsync(core::mem::transmute(transactionhandle)).ok() + RollbackTransactionAsync(transactionhandle).ok() } #[inline] pub unsafe fn RollforwardTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn RollforwardTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - RollforwardTransactionManager(core::mem::transmute(transactionmanagerhandle), core::mem::transmute(tmvirtualclock)).ok() + RollforwardTransactionManager(transactionmanagerhandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn ScanLogContainers(pcxscan: *mut CLS_SCAN_CONTEXT, escanmode: u8, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn ScanLogContainers(pcxscan : *mut CLS_SCAN_CONTEXT, escanmode : u8, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ScanLogContainers(core::mem::transmute(pcxscan), core::mem::transmute(escanmode), core::mem::transmute(preserved)).ok() + ScanLogContainers(core::mem::transmute(pcxscan), escanmode, core::mem::transmute(preserved)).ok() } #[inline] pub unsafe fn SearchPathA(lppath: P0, lpfilename: P1, lpextension: P2, lpbuffer: Option<&mut [u8]>, lpfilepart: Option<*mut windows_core::PSTR>) -> u32 @@ -2392,23 +2370,23 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetEncryptedFileMetadata(lpfilename : windows_core::PCWSTR, pboldmetadata : *const u8, pbnewmetadata : *const u8, pownerhash : *const ENCRYPTION_CERTIFICATE_HASH, dwoperation : u32, pcertificatesadded : *const ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32); - SetEncryptedFileMetadata(lpfilename.param().abi(), core::mem::transmute(pboldmetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbnewmetadata), core::mem::transmute(pownerhash), core::mem::transmute(dwoperation), core::mem::transmute(pcertificatesadded.unwrap_or(core::mem::zeroed()))) + SetEncryptedFileMetadata(lpfilename.param().abi(), core::mem::transmute(pboldmetadata.unwrap_or(core::mem::zeroed())), pbnewmetadata, pownerhash, dwoperation, core::mem::transmute(pcertificatesadded.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetEndOfFile(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetEndOfFile(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetEndOfFile(core::mem::transmute(hfile)).ok() + SetEndOfFile(hfile).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn SetEndOfLog(hlog: super::super::Foundation::HANDLE, plsnend: *mut CLS_LSN, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn SetEndOfLog(hlog : super::super::Foundation:: HANDLE, plsnend : *mut CLS_LSN, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - SetEndOfLog(core::mem::transmute(hlog), core::mem::transmute(plsnend), core::mem::transmute(lpoverlapped)).ok() + SetEndOfLog(hlog, core::mem::transmute(plsnend), core::mem::transmute(lpoverlapped)).ok() } #[inline] pub unsafe fn SetEnlistmentRecoveryInformation(enlistmenthandle: super::super::Foundation::HANDLE, buffersize: u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn SetEnlistmentRecoveryInformation(enlistmenthandle : super::super::Foundation:: HANDLE, buffersize : u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetEnlistmentRecoveryInformation(core::mem::transmute(enlistmenthandle), core::mem::transmute(buffersize), core::mem::transmute(buffer)).ok() + SetEnlistmentRecoveryInformation(enlistmenthandle, buffersize, core::mem::transmute(buffer)).ok() } #[inline] pub unsafe fn SetFileApisToANSI() { @@ -2426,7 +2404,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesA(lpfilename : windows_core::PCSTR, dwfileattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); - SetFileAttributesA(lpfilename.param().abi(), core::mem::transmute(dwfileattributes)).ok() + SetFileAttributesA(lpfilename.param().abi(), dwfileattributes).ok() } #[inline] pub unsafe fn SetFileAttributesFromAppW(lpfilename: P0, dwfileattributes: u32) -> super::super::Foundation::BOOL @@ -2434,7 +2412,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn SetFileAttributesFromAppW(lpfilename : windows_core::PCWSTR, dwfileattributes : u32) -> super::super::Foundation:: BOOL); - SetFileAttributesFromAppW(lpfilename.param().abi(), core::mem::transmute(dwfileattributes)) + SetFileAttributesFromAppW(lpfilename.param().abi(), dwfileattributes) } #[inline] pub unsafe fn SetFileAttributesTransactedA(lpfilename: P0, dwfileattributes: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -2442,7 +2420,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesTransactedA(lpfilename : windows_core::PCSTR, dwfileattributes : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetFileAttributesTransactedA(lpfilename.param().abi(), core::mem::transmute(dwfileattributes), core::mem::transmute(htransaction)).ok() + SetFileAttributesTransactedA(lpfilename.param().abi(), dwfileattributes, htransaction).ok() } #[inline] pub unsafe fn SetFileAttributesTransactedW(lpfilename: P0, dwfileattributes: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -2450,7 +2428,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesTransactedW(lpfilename : windows_core::PCWSTR, dwfileattributes : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetFileAttributesTransactedW(lpfilename.param().abi(), core::mem::transmute(dwfileattributes), core::mem::transmute(htransaction)).ok() + SetFileAttributesTransactedW(lpfilename.param().abi(), dwfileattributes, htransaction).ok() } #[inline] pub unsafe fn SetFileAttributesW(lpfilename: P0, dwfileattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result<()> @@ -2458,37 +2436,37 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesW(lpfilename : windows_core::PCWSTR, dwfileattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); - SetFileAttributesW(lpfilename.param().abi(), core::mem::transmute(dwfileattributes)).ok() + SetFileAttributesW(lpfilename.param().abi(), dwfileattributes).ok() } #[inline] pub unsafe fn SetFileBandwidthReservation(hfile: super::super::Foundation::HANDLE, nperiodmilliseconds: u32, nbytesperperiod: u32, bdiscardable: bool, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFileBandwidthReservation(hfile : super::super::Foundation:: HANDLE, nperiodmilliseconds : u32, nbytesperperiod : u32, bdiscardable : super::super::Foundation:: BOOL, lptransfersize : *mut u32, lpnumoutstandingrequests : *mut u32) -> super::super::Foundation:: BOOL); - SetFileBandwidthReservation(core::mem::transmute(hfile), core::mem::transmute(nperiodmilliseconds), core::mem::transmute(nbytesperperiod), bdiscardable.into(), core::mem::transmute(lptransfersize), core::mem::transmute(lpnumoutstandingrequests)).ok() + SetFileBandwidthReservation(hfile, nperiodmilliseconds, nbytesperperiod, bdiscardable.into(), core::mem::transmute(lptransfersize), core::mem::transmute(lpnumoutstandingrequests)).ok() } #[inline] pub unsafe fn SetFileCompletionNotificationModes(filehandle: super::super::Foundation::HANDLE, flags: u8) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFileCompletionNotificationModes(filehandle : super::super::Foundation:: HANDLE, flags : u8) -> super::super::Foundation:: BOOL); - SetFileCompletionNotificationModes(core::mem::transmute(filehandle), core::mem::transmute(flags)).ok() + SetFileCompletionNotificationModes(filehandle, flags).ok() } #[inline] pub unsafe fn SetFileInformationByHandle(hfile: super::super::Foundation::HANDLE, fileinformationclass: FILE_INFO_BY_HANDLE_CLASS, lpfileinformation: *const core::ffi::c_void, dwbuffersize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *const core::ffi::c_void, dwbuffersize : u32) -> super::super::Foundation:: BOOL); - SetFileInformationByHandle(core::mem::transmute(hfile), core::mem::transmute(fileinformationclass), core::mem::transmute(lpfileinformation), core::mem::transmute(dwbuffersize)).ok() + SetFileInformationByHandle(hfile, fileinformationclass, lpfileinformation, dwbuffersize).ok() } #[inline] pub unsafe fn SetFileIoOverlappedRange(filehandle: super::super::Foundation::HANDLE, overlappedrangestart: *const u8, length: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFileIoOverlappedRange(filehandle : super::super::Foundation:: HANDLE, overlappedrangestart : *const u8, length : u32) -> super::super::Foundation:: BOOL); - SetFileIoOverlappedRange(core::mem::transmute(filehandle), core::mem::transmute(overlappedrangestart), core::mem::transmute(length)).ok() + SetFileIoOverlappedRange(filehandle, overlappedrangestart, length).ok() } #[inline] pub unsafe fn SetFilePointer(hfile: super::super::Foundation::HANDLE, ldistancetomove: i32, lpdistancetomovehigh: Option<*mut i32>, dwmovemethod: SET_FILE_POINTER_MOVE_METHOD) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetFilePointer(hfile : super::super::Foundation:: HANDLE, ldistancetomove : i32, lpdistancetomovehigh : *mut i32, dwmovemethod : SET_FILE_POINTER_MOVE_METHOD) -> u32); - SetFilePointer(core::mem::transmute(hfile), core::mem::transmute(ldistancetomove), core::mem::transmute(lpdistancetomovehigh.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmovemethod)) + SetFilePointer(hfile, ldistancetomove, core::mem::transmute(lpdistancetomovehigh.unwrap_or(core::mem::zeroed())), dwmovemethod) } #[inline] pub unsafe fn SetFilePointerEx(hfile: super::super::Foundation::HANDLE, lidistancetomove: i64, lpnewfilepointer: Option<*mut i64>, dwmovemethod: SET_FILE_POINTER_MOVE_METHOD) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFilePointerEx(hfile : super::super::Foundation:: HANDLE, lidistancetomove : i64, lpnewfilepointer : *mut i64, dwmovemethod : SET_FILE_POINTER_MOVE_METHOD) -> super::super::Foundation:: BOOL); - SetFilePointerEx(core::mem::transmute(hfile), core::mem::transmute(lidistancetomove), core::mem::transmute(lpnewfilepointer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmovemethod)).ok() + SetFilePointerEx(hfile, lidistancetomove, core::mem::transmute(lpnewfilepointer.unwrap_or(core::mem::zeroed())), dwmovemethod).ok() } #[inline] pub unsafe fn SetFileShortNameA(hfile: super::super::Foundation::HANDLE, lpshortname: P1) -> windows_core::Result<()> @@ -2496,7 +2474,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileShortNameA(hfile : super::super::Foundation:: HANDLE, lpshortname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetFileShortNameA(core::mem::transmute(hfile), lpshortname.param().abi()).ok() + SetFileShortNameA(hfile, lpshortname.param().abi()).ok() } #[inline] pub unsafe fn SetFileShortNameW(hfile: super::super::Foundation::HANDLE, lpshortname: P1) -> windows_core::Result<()> @@ -2504,57 +2482,57 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileShortNameW(hfile : super::super::Foundation:: HANDLE, lpshortname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetFileShortNameW(core::mem::transmute(hfile), lpshortname.param().abi()).ok() + SetFileShortNameW(hfile, lpshortname.param().abi()).ok() } #[inline] pub unsafe fn SetFileTime(hfile: super::super::Foundation::HANDLE, lpcreationtime: Option<*const super::super::Foundation::FILETIME>, lplastaccesstime: Option<*const super::super::Foundation::FILETIME>, lplastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFileTime(hfile : super::super::Foundation:: HANDLE, lpcreationtime : *const super::super::Foundation:: FILETIME, lplastaccesstime : *const super::super::Foundation:: FILETIME, lplastwritetime : *const super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - SetFileTime(core::mem::transmute(hfile), core::mem::transmute(lpcreationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastaccesstime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastwritetime.unwrap_or(core::mem::zeroed()))).ok() + SetFileTime(hfile, core::mem::transmute(lpcreationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastaccesstime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplastwritetime.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetFileValidData(hfile: super::super::Foundation::HANDLE, validdatalength: i64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetFileValidData(hfile : super::super::Foundation:: HANDLE, validdatalength : i64) -> super::super::Foundation:: BOOL); - SetFileValidData(core::mem::transmute(hfile), core::mem::transmute(validdatalength)).ok() + SetFileValidData(hfile, validdatalength).ok() } #[inline] pub unsafe fn SetIoRingCompletionEvent(ioring: HIORING, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn SetIoRingCompletionEvent(ioring : HIORING, hevent : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - SetIoRingCompletionEvent(core::mem::transmute(ioring), core::mem::transmute(hevent)).ok() + SetIoRingCompletionEvent(ioring, hevent).ok() } #[inline] pub unsafe fn SetLogArchiveMode(hlog: super::super::Foundation::HANDLE, emode: CLFS_LOG_ARCHIVE_MODE) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveMode(hlog : super::super::Foundation:: HANDLE, emode : CLFS_LOG_ARCHIVE_MODE) -> super::super::Foundation:: BOOL); - SetLogArchiveMode(core::mem::transmute(hlog), core::mem::transmute(emode)).ok() + SetLogArchiveMode(hlog, emode).ok() } #[inline] pub unsafe fn SetLogArchiveTail(hlog: super::super::Foundation::HANDLE, plsnarchivetail: *mut CLS_LSN, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveTail(hlog : super::super::Foundation:: HANDLE, plsnarchivetail : *mut CLS_LSN, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetLogArchiveTail(core::mem::transmute(hlog), core::mem::transmute(plsnarchivetail), core::mem::transmute(preserved)).ok() + SetLogArchiveTail(hlog, core::mem::transmute(plsnarchivetail), core::mem::transmute(preserved)).ok() } #[inline] pub unsafe fn SetLogFileSizeWithPolicy(hlog: super::super::Foundation::HANDLE, pdesiredsize: *const u64, presultingsize: *mut u64) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn SetLogFileSizeWithPolicy(hlog : super::super::Foundation:: HANDLE, pdesiredsize : *const u64, presultingsize : *mut u64) -> super::super::Foundation:: BOOL); - SetLogFileSizeWithPolicy(core::mem::transmute(hlog), core::mem::transmute(pdesiredsize), core::mem::transmute(presultingsize)).ok() + SetLogFileSizeWithPolicy(hlog, pdesiredsize, core::mem::transmute(presultingsize)).ok() } #[inline] pub unsafe fn SetResourceManagerCompletionPort(resourcemanagerhandle: super::super::Foundation::HANDLE, iocompletionporthandle: super::super::Foundation::HANDLE, completionkey: usize) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn SetResourceManagerCompletionPort(resourcemanagerhandle : super::super::Foundation:: HANDLE, iocompletionporthandle : super::super::Foundation:: HANDLE, completionkey : usize) -> super::super::Foundation:: BOOL); - SetResourceManagerCompletionPort(core::mem::transmute(resourcemanagerhandle), core::mem::transmute(iocompletionporthandle), core::mem::transmute(completionkey)).ok() + SetResourceManagerCompletionPort(resourcemanagerhandle, iocompletionporthandle, completionkey).ok() } #[inline] pub unsafe fn SetSearchPathMode(flags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetSearchPathMode(flags : u32) -> super::super::Foundation:: BOOL); - SetSearchPathMode(core::mem::transmute(flags)).ok() + SetSearchPathMode(flags).ok() } #[inline] pub unsafe fn SetTapeParameters(hdevice: super::super::Foundation::HANDLE, dwoperation: TAPE_INFORMATION_TYPE, lptapeinformation: *const core::ffi::c_void) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetTapeParameters(hdevice : super::super::Foundation:: HANDLE, dwoperation : TAPE_INFORMATION_TYPE, lptapeinformation : *const core::ffi::c_void) -> u32); - SetTapeParameters(core::mem::transmute(hdevice), core::mem::transmute(dwoperation), core::mem::transmute(lptapeinformation)) + SetTapeParameters(hdevice, dwoperation, lptapeinformation) } #[inline] pub unsafe fn SetTapePosition(hdevice: super::super::Foundation::HANDLE, dwpositionmethod: TAPE_POSITION_METHOD, dwpartition: u32, dwoffsetlow: u32, dwoffsethigh: u32, bimmediate: bool) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetTapePosition(hdevice : super::super::Foundation:: HANDLE, dwpositionmethod : TAPE_POSITION_METHOD, dwpartition : u32, dwoffsetlow : u32, dwoffsethigh : u32, bimmediate : super::super::Foundation:: BOOL) -> u32); - SetTapePosition(core::mem::transmute(hdevice), core::mem::transmute(dwpositionmethod), core::mem::transmute(dwpartition), core::mem::transmute(dwoffsetlow), core::mem::transmute(dwoffsethigh), bimmediate.into()) + SetTapePosition(hdevice, dwpositionmethod, dwpartition, dwoffsetlow, dwoffsethigh, bimmediate.into()) } #[inline] pub unsafe fn SetTransactionInformation(transactionhandle: super::super::Foundation::HANDLE, isolationlevel: u32, isolationflags: u32, timeout: u32, description: P4) -> windows_core::Result<()> @@ -2562,7 +2540,7 @@ where P4: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn SetTransactionInformation(transactionhandle : super::super::Foundation:: HANDLE, isolationlevel : u32, isolationflags : u32, timeout : u32, description : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetTransactionInformation(core::mem::transmute(transactionhandle), core::mem::transmute(isolationlevel), core::mem::transmute(isolationflags), core::mem::transmute(timeout), description.param().abi()).ok() + SetTransactionInformation(transactionhandle, isolationlevel, isolationflags, timeout, description.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -2574,7 +2552,7 @@ pub unsafe fn SetUserFileEncryptionKey(pencryptioncertificate: Option<*const ENC #[inline] pub unsafe fn SetUserFileEncryptionKeyEx(pencryptioncertificate: Option<*const ENCRYPTION_CERTIFICATE>, dwcapabilities: u32, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("advapi32.dll" "system" fn SetUserFileEncryptionKeyEx(pencryptioncertificate : *const ENCRYPTION_CERTIFICATE, dwcapabilities : u32, dwflags : u32, pvreserved : *const core::ffi::c_void) -> u32); - SetUserFileEncryptionKeyEx(core::mem::transmute(pencryptioncertificate.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcapabilities), core::mem::transmute(dwflags), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) + SetUserFileEncryptionKeyEx(core::mem::transmute(pencryptioncertificate.unwrap_or(core::mem::zeroed())), dwcapabilities, dwflags, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetVolumeLabelA(lprootpathname: P0, lpvolumename: P1) -> windows_core::Result<()> @@ -2615,12 +2593,12 @@ where #[inline] pub unsafe fn SinglePhaseReject(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { windows_targets::link!("ktmw32.dll" "system" fn SinglePhaseReject(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - SinglePhaseReject(core::mem::transmute(enlistmenthandle), core::mem::transmute(tmvirtualclock)).ok() + SinglePhaseReject(enlistmenthandle, core::mem::transmute(tmvirtualclock)).ok() } #[inline] pub unsafe fn SubmitIoRing(ioring: HIORING, waitoperations: u32, milliseconds: u32, submittedentries: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn SubmitIoRing(ioring : HIORING, waitoperations : u32, milliseconds : u32, submittedentries : *mut u32) -> windows_core::HRESULT); - SubmitIoRing(core::mem::transmute(ioring), core::mem::transmute(waitoperations), core::mem::transmute(milliseconds), core::mem::transmute(submittedentries.unwrap_or(core::mem::zeroed()))).ok() + SubmitIoRing(ioring, waitoperations, milliseconds, core::mem::transmute(submittedentries.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn TerminateLogArchive(pvarchivecontext: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2636,7 +2614,7 @@ pub unsafe fn TerminateReadLog(pvcursorcontext: *mut core::ffi::c_void) -> windo #[inline] pub unsafe fn TruncateLog(pvmarshal: *const core::ffi::c_void, plsnend: *const CLS_LSN, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn TruncateLog(pvmarshal : *const core::ffi::c_void, plsnend : *const CLS_LSN, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - TruncateLog(core::mem::transmute(pvmarshal), core::mem::transmute(plsnend), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + TruncateLog(pvmarshal, plsnend, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn TxfGetThreadMiniVersionForCreate() -> u16 { @@ -2651,7 +2629,7 @@ where P0: windows_core::Param, { windows_targets::link!("txfw32.dll" "system" fn TxfLogCreateFileReadContext(logpath : windows_core::PCWSTR, beginninglsn : CLS_LSN, endinglsn : CLS_LSN, txffileid : *const TXF_ID, txflogcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - TxfLogCreateFileReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), core::mem::transmute(txffileid), core::mem::transmute(txflogcontext)).ok() + TxfLogCreateFileReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), txffileid, core::mem::transmute(txflogcontext)).ok() } #[inline] pub unsafe fn TxfLogCreateRangeReadContext(logpath: P0, beginninglsn: CLS_LSN, endinglsn: CLS_LSN, beginningvirtualclock: *const i64, endingvirtualclock: *const i64, recordtypemask: u32, txflogcontext: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL @@ -2659,48 +2637,48 @@ where P0: windows_core::Param, { windows_targets::link!("txfw32.dll" "system" fn TxfLogCreateRangeReadContext(logpath : windows_core::PCWSTR, beginninglsn : CLS_LSN, endinglsn : CLS_LSN, beginningvirtualclock : *const i64, endingvirtualclock : *const i64, recordtypemask : u32, txflogcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - TxfLogCreateRangeReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), core::mem::transmute(beginningvirtualclock), core::mem::transmute(endingvirtualclock), core::mem::transmute(recordtypemask), core::mem::transmute(txflogcontext)) + TxfLogCreateRangeReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), beginningvirtualclock, endingvirtualclock, recordtypemask, core::mem::transmute(txflogcontext)) } #[inline] pub unsafe fn TxfLogDestroyReadContext(txflogcontext: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("txfw32.dll" "system" fn TxfLogDestroyReadContext(txflogcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - TxfLogDestroyReadContext(core::mem::transmute(txflogcontext)).ok() + TxfLogDestroyReadContext(txflogcontext).ok() } #[inline] pub unsafe fn TxfLogReadRecords(txflogcontext: *const core::ffi::c_void, bufferlength: u32, buffer: *mut core::ffi::c_void, bytesused: *mut u32, recordcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("txfw32.dll" "system" fn TxfLogReadRecords(txflogcontext : *const core::ffi::c_void, bufferlength : u32, buffer : *mut core::ffi::c_void, bytesused : *mut u32, recordcount : *mut u32) -> super::super::Foundation:: BOOL); - TxfLogReadRecords(core::mem::transmute(txflogcontext), core::mem::transmute(bufferlength), core::mem::transmute(buffer), core::mem::transmute(bytesused), core::mem::transmute(recordcount)).ok() + TxfLogReadRecords(txflogcontext, bufferlength, core::mem::transmute(buffer), core::mem::transmute(bytesused), core::mem::transmute(recordcount)).ok() } #[inline] pub unsafe fn TxfLogRecordGetFileName(recordbuffer: *const core::ffi::c_void, recordbufferlengthinbytes: u32, namebuffer: windows_core::PWSTR, namebufferlengthinbytes: *mut u32, txfid: Option<*mut TXF_ID>) -> super::super::Foundation::BOOL { windows_targets::link!("txfw32.dll" "system" fn TxfLogRecordGetFileName(recordbuffer : *const core::ffi::c_void, recordbufferlengthinbytes : u32, namebuffer : windows_core::PWSTR, namebufferlengthinbytes : *mut u32, txfid : *mut TXF_ID) -> super::super::Foundation:: BOOL); - TxfLogRecordGetFileName(core::mem::transmute(recordbuffer), core::mem::transmute(recordbufferlengthinbytes), core::mem::transmute(namebuffer), core::mem::transmute(namebufferlengthinbytes), core::mem::transmute(txfid.unwrap_or(core::mem::zeroed()))) + TxfLogRecordGetFileName(recordbuffer, recordbufferlengthinbytes, core::mem::transmute(namebuffer), core::mem::transmute(namebufferlengthinbytes), core::mem::transmute(txfid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TxfLogRecordGetGenericType(recordbuffer: *const core::ffi::c_void, recordbufferlengthinbytes: u32, generictype: *mut u32, virtualclock: Option<*mut i64>) -> super::super::Foundation::BOOL { windows_targets::link!("txfw32.dll" "system" fn TxfLogRecordGetGenericType(recordbuffer : *const core::ffi::c_void, recordbufferlengthinbytes : u32, generictype : *mut u32, virtualclock : *mut i64) -> super::super::Foundation:: BOOL); - TxfLogRecordGetGenericType(core::mem::transmute(recordbuffer), core::mem::transmute(recordbufferlengthinbytes), core::mem::transmute(generictype), core::mem::transmute(virtualclock.unwrap_or(core::mem::zeroed()))) + TxfLogRecordGetGenericType(recordbuffer, recordbufferlengthinbytes, core::mem::transmute(generictype), core::mem::transmute(virtualclock.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TxfReadMetadataInfo(filehandle: super::super::Foundation::HANDLE, txffileid: *mut TXF_ID, lastlsn: *mut CLS_LSN, transactionstate: *mut u32, lockingtransaction: *mut windows_core::GUID) -> super::super::Foundation::BOOL { windows_targets::link!("txfw32.dll" "system" fn TxfReadMetadataInfo(filehandle : super::super::Foundation:: HANDLE, txffileid : *mut TXF_ID, lastlsn : *mut CLS_LSN, transactionstate : *mut u32, lockingtransaction : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - TxfReadMetadataInfo(core::mem::transmute(filehandle), core::mem::transmute(txffileid), core::mem::transmute(lastlsn), core::mem::transmute(transactionstate), core::mem::transmute(lockingtransaction)) + TxfReadMetadataInfo(filehandle, core::mem::transmute(txffileid), core::mem::transmute(lastlsn), core::mem::transmute(transactionstate), core::mem::transmute(lockingtransaction)) } #[inline] pub unsafe fn TxfSetThreadMiniVersionForCreate(miniversion: u16) { windows_targets::link!("txfw32.dll" "system" fn TxfSetThreadMiniVersionForCreate(miniversion : u16)); - TxfSetThreadMiniVersionForCreate(core::mem::transmute(miniversion)) + TxfSetThreadMiniVersionForCreate(miniversion) } #[inline] pub unsafe fn UnlockFile(hfile: super::super::Foundation::HANDLE, dwfileoffsetlow: u32, dwfileoffsethigh: u32, nnumberofbytestounlocklow: u32, nnumberofbytestounlockhigh: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnlockFile(hfile : super::super::Foundation:: HANDLE, dwfileoffsetlow : u32, dwfileoffsethigh : u32, nnumberofbytestounlocklow : u32, nnumberofbytestounlockhigh : u32) -> super::super::Foundation:: BOOL); - UnlockFile(core::mem::transmute(hfile), core::mem::transmute(dwfileoffsetlow), core::mem::transmute(dwfileoffsethigh), core::mem::transmute(nnumberofbytestounlocklow), core::mem::transmute(nnumberofbytestounlockhigh)).ok() + UnlockFile(hfile, dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestounlocklow, nnumberofbytestounlockhigh).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn UnlockFileEx(hfile: super::super::Foundation::HANDLE, dwreserved: Option, nnumberofbytestounlocklow: u32, nnumberofbytestounlockhigh: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnlockFileEx(hfile : super::super::Foundation:: HANDLE, dwreserved : u32, nnumberofbytestounlocklow : u32, nnumberofbytestounlockhigh : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - UnlockFileEx(core::mem::transmute(hfile), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(nnumberofbytestounlocklow), core::mem::transmute(nnumberofbytestounlockhigh), core::mem::transmute(lpoverlapped)).ok() + UnlockFileEx(hfile, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), nnumberofbytestounlocklow, nnumberofbytestounlockhigh, core::mem::transmute(lpoverlapped)).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -2719,7 +2697,7 @@ where P3: windows_core::Param, { windows_targets::link!("version.dll" "system" fn VerFindFileA(uflags : VER_FIND_FILE_FLAGS, szfilename : windows_core::PCSTR, szwindir : windows_core::PCSTR, szappdir : windows_core::PCSTR, szcurdir : windows_core::PSTR, pucurdirlen : *mut u32, szdestdir : windows_core::PSTR, pudestdirlen : *mut u32) -> VER_FIND_FILE_STATUS); - VerFindFileA(core::mem::transmute(uflags), szfilename.param().abi(), szwindir.param().abi(), szappdir.param().abi(), core::mem::transmute(szcurdir), core::mem::transmute(pucurdirlen), core::mem::transmute(szdestdir), core::mem::transmute(pudestdirlen)) + VerFindFileA(uflags, szfilename.param().abi(), szwindir.param().abi(), szappdir.param().abi(), core::mem::transmute(szcurdir), core::mem::transmute(pucurdirlen), core::mem::transmute(szdestdir), core::mem::transmute(pudestdirlen)) } #[inline] pub unsafe fn VerFindFileW(uflags: VER_FIND_FILE_FLAGS, szfilename: P1, szwindir: P2, szappdir: P3, szcurdir: windows_core::PWSTR, pucurdirlen: *mut u32, szdestdir: windows_core::PWSTR, pudestdirlen: *mut u32) -> VER_FIND_FILE_STATUS @@ -2729,7 +2707,7 @@ where P3: windows_core::Param, { windows_targets::link!("version.dll" "system" fn VerFindFileW(uflags : VER_FIND_FILE_FLAGS, szfilename : windows_core::PCWSTR, szwindir : windows_core::PCWSTR, szappdir : windows_core::PCWSTR, szcurdir : windows_core::PWSTR, pucurdirlen : *mut u32, szdestdir : windows_core::PWSTR, pudestdirlen : *mut u32) -> VER_FIND_FILE_STATUS); - VerFindFileW(core::mem::transmute(uflags), szfilename.param().abi(), szwindir.param().abi(), szappdir.param().abi(), core::mem::transmute(szcurdir), core::mem::transmute(pucurdirlen), core::mem::transmute(szdestdir), core::mem::transmute(pudestdirlen)) + VerFindFileW(uflags, szfilename.param().abi(), szwindir.param().abi(), szappdir.param().abi(), core::mem::transmute(szcurdir), core::mem::transmute(pucurdirlen), core::mem::transmute(szdestdir), core::mem::transmute(pudestdirlen)) } #[inline] pub unsafe fn VerInstallFileA(uflags: VER_INSTALL_FILE_FLAGS, szsrcfilename: P1, szdestfilename: P2, szsrcdir: P3, szdestdir: P4, szcurdir: P5, sztmpfile: windows_core::PSTR, putmpfilelen: *mut u32) -> VER_INSTALL_FILE_STATUS @@ -2741,7 +2719,7 @@ where P5: windows_core::Param, { windows_targets::link!("version.dll" "system" fn VerInstallFileA(uflags : VER_INSTALL_FILE_FLAGS, szsrcfilename : windows_core::PCSTR, szdestfilename : windows_core::PCSTR, szsrcdir : windows_core::PCSTR, szdestdir : windows_core::PCSTR, szcurdir : windows_core::PCSTR, sztmpfile : windows_core::PSTR, putmpfilelen : *mut u32) -> VER_INSTALL_FILE_STATUS); - VerInstallFileA(core::mem::transmute(uflags), szsrcfilename.param().abi(), szdestfilename.param().abi(), szsrcdir.param().abi(), szdestdir.param().abi(), szcurdir.param().abi(), core::mem::transmute(sztmpfile), core::mem::transmute(putmpfilelen)) + VerInstallFileA(uflags, szsrcfilename.param().abi(), szdestfilename.param().abi(), szsrcdir.param().abi(), szdestdir.param().abi(), szcurdir.param().abi(), core::mem::transmute(sztmpfile), core::mem::transmute(putmpfilelen)) } #[inline] pub unsafe fn VerInstallFileW(uflags: VER_INSTALL_FILE_FLAGS, szsrcfilename: P1, szdestfilename: P2, szsrcdir: P3, szdestdir: P4, szcurdir: P5, sztmpfile: windows_core::PWSTR, putmpfilelen: *mut u32) -> VER_INSTALL_FILE_STATUS @@ -2753,17 +2731,17 @@ where P5: windows_core::Param, { windows_targets::link!("version.dll" "system" fn VerInstallFileW(uflags : VER_INSTALL_FILE_FLAGS, szsrcfilename : windows_core::PCWSTR, szdestfilename : windows_core::PCWSTR, szsrcdir : windows_core::PCWSTR, szdestdir : windows_core::PCWSTR, szcurdir : windows_core::PCWSTR, sztmpfile : windows_core::PWSTR, putmpfilelen : *mut u32) -> VER_INSTALL_FILE_STATUS); - VerInstallFileW(core::mem::transmute(uflags), szsrcfilename.param().abi(), szdestfilename.param().abi(), szsrcdir.param().abi(), szdestdir.param().abi(), szcurdir.param().abi(), core::mem::transmute(sztmpfile), core::mem::transmute(putmpfilelen)) + VerInstallFileW(uflags, szsrcfilename.param().abi(), szdestfilename.param().abi(), szsrcdir.param().abi(), szdestdir.param().abi(), szcurdir.param().abi(), core::mem::transmute(sztmpfile), core::mem::transmute(putmpfilelen)) } #[inline] pub unsafe fn VerLanguageNameA(wlang: u32, szlang: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn VerLanguageNameA(wlang : u32, szlang : windows_core::PSTR, cchlang : u32) -> u32); - VerLanguageNameA(core::mem::transmute(wlang), core::mem::transmute(szlang.as_ptr()), szlang.len().try_into().unwrap()) + VerLanguageNameA(wlang, core::mem::transmute(szlang.as_ptr()), szlang.len().try_into().unwrap()) } #[inline] pub unsafe fn VerLanguageNameW(wlang: u32, szlang: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn VerLanguageNameW(wlang : u32, szlang : windows_core::PWSTR, cchlang : u32) -> u32); - VerLanguageNameW(core::mem::transmute(wlang), core::mem::transmute(szlang.as_ptr()), szlang.len().try_into().unwrap()) + VerLanguageNameW(wlang, core::mem::transmute(szlang.as_ptr()), szlang.len().try_into().unwrap()) } #[inline] pub unsafe fn VerQueryValueA(pblock: *const core::ffi::c_void, lpsubblock: P1, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> super::super::Foundation::BOOL @@ -2771,7 +2749,7 @@ where P1: windows_core::Param, { windows_targets::link!("version.dll" "system" fn VerQueryValueA(pblock : *const core::ffi::c_void, lpsubblock : windows_core::PCSTR, lplpbuffer : *mut *mut core::ffi::c_void, pulen : *mut u32) -> super::super::Foundation:: BOOL); - VerQueryValueA(core::mem::transmute(pblock), lpsubblock.param().abi(), core::mem::transmute(lplpbuffer), core::mem::transmute(pulen)) + VerQueryValueA(pblock, lpsubblock.param().abi(), core::mem::transmute(lplpbuffer), core::mem::transmute(pulen)) } #[inline] pub unsafe fn VerQueryValueW(pblock: *const core::ffi::c_void, lpsubblock: P1, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> super::super::Foundation::BOOL @@ -2779,7 +2757,7 @@ where P1: windows_core::Param, { windows_targets::link!("version.dll" "system" fn VerQueryValueW(pblock : *const core::ffi::c_void, lpsubblock : windows_core::PCWSTR, lplpbuffer : *mut *mut core::ffi::c_void, pulen : *mut u32) -> super::super::Foundation:: BOOL); - VerQueryValueW(core::mem::transmute(pblock), lpsubblock.param().abi(), core::mem::transmute(lplpbuffer), core::mem::transmute(pulen)) + VerQueryValueW(pblock, lpsubblock.param().abi(), core::mem::transmute(lplpbuffer), core::mem::transmute(pulen)) } #[inline] pub unsafe fn WofEnumEntries(volumename: P0, provider: u32, enumproc: WofEnumEntryProc, userdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2787,7 +2765,7 @@ where P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofEnumEntries(volumename : windows_core::PCWSTR, provider : u32, enumproc : WofEnumEntryProc, userdata : *const core::ffi::c_void) -> windows_core::HRESULT); - WofEnumEntries(volumename.param().abi(), core::mem::transmute(provider), core::mem::transmute(enumproc), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))).ok() + WofEnumEntries(volumename.param().abi(), provider, enumproc, core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WofFileEnumFiles(volumename: P0, algorithm: u32, enumproc: WofEnumFilesProc, userdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2795,13 +2773,13 @@ where P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofFileEnumFiles(volumename : windows_core::PCWSTR, algorithm : u32, enumproc : WofEnumFilesProc, userdata : *const core::ffi::c_void) -> windows_core::HRESULT); - WofFileEnumFiles(volumename.param().abi(), core::mem::transmute(algorithm), core::mem::transmute(enumproc), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))).ok() + WofFileEnumFiles(volumename.param().abi(), algorithm, enumproc, core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WofGetDriverVersion(fileorvolumehandle: super::super::Foundation::HANDLE, provider: u32) -> windows_core::Result { windows_targets::link!("wofutil.dll" "system" fn WofGetDriverVersion(fileorvolumehandle : super::super::Foundation:: HANDLE, provider : u32, wofversion : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WofGetDriverVersion(core::mem::transmute(fileorvolumehandle), core::mem::transmute(provider), &mut result__).map(|| core::mem::transmute(result__)) + WofGetDriverVersion(fileorvolumehandle, provider, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WofIsExternalFile(filepath: P0, isexternalfile: Option<*mut super::super::Foundation::BOOL>, provider: Option<*mut u32>, externalfileinfo: Option<*mut core::ffi::c_void>, bufferlength: Option<*mut u32>) -> windows_core::Result<()> @@ -2814,7 +2792,7 @@ where #[inline] pub unsafe fn WofSetFileDataLocation(filehandle: super::super::Foundation::HANDLE, provider: u32, externalfileinfo: *const core::ffi::c_void, length: u32) -> windows_core::Result<()> { windows_targets::link!("wofutil.dll" "system" fn WofSetFileDataLocation(filehandle : super::super::Foundation:: HANDLE, provider : u32, externalfileinfo : *const core::ffi::c_void, length : u32) -> windows_core::HRESULT); - WofSetFileDataLocation(core::mem::transmute(filehandle), core::mem::transmute(provider), core::mem::transmute(externalfileinfo), core::mem::transmute(length)).ok() + WofSetFileDataLocation(filehandle, provider, externalfileinfo, length).ok() } #[inline] pub unsafe fn WofShouldCompressBinaries(volume: P0, algorithm: *mut u32) -> super::super::Foundation::BOOL @@ -2832,7 +2810,7 @@ where { windows_targets::link!("wofutil.dll" "system" fn WofWimAddEntry(volumename : windows_core::PCWSTR, wimpath : windows_core::PCWSTR, wimtype : u32, wimindex : u32, datasourceid : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WofWimAddEntry(volumename.param().abi(), wimpath.param().abi(), core::mem::transmute(wimtype), core::mem::transmute(wimindex), &mut result__).map(|| core::mem::transmute(result__)) + WofWimAddEntry(volumename.param().abi(), wimpath.param().abi(), wimtype, wimindex, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WofWimEnumFiles(volumename: P0, datasourceid: i64, enumproc: WofEnumFilesProc, userdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -2840,7 +2818,7 @@ where P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofWimEnumFiles(volumename : windows_core::PCWSTR, datasourceid : i64, enumproc : WofEnumFilesProc, userdata : *const core::ffi::c_void) -> windows_core::HRESULT); - WofWimEnumFiles(volumename.param().abi(), core::mem::transmute(datasourceid), core::mem::transmute(enumproc), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))).ok() + WofWimEnumFiles(volumename.param().abi(), datasourceid, enumproc, core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WofWimRemoveEntry(volumename: P0, datasourceid: i64) -> windows_core::Result<()> @@ -2848,7 +2826,7 @@ where P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofWimRemoveEntry(volumename : windows_core::PCWSTR, datasourceid : i64) -> windows_core::HRESULT); - WofWimRemoveEntry(volumename.param().abi(), core::mem::transmute(datasourceid)).ok() + WofWimRemoveEntry(volumename.param().abi(), datasourceid).ok() } #[inline] pub unsafe fn WofWimSuspendEntry(volumename: P0, datasourceid: i64) -> windows_core::Result<()> @@ -2856,7 +2834,7 @@ where P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofWimSuspendEntry(volumename : windows_core::PCWSTR, datasourceid : i64) -> windows_core::HRESULT); - WofWimSuspendEntry(volumename.param().abi(), core::mem::transmute(datasourceid)).ok() + WofWimSuspendEntry(volumename.param().abi(), datasourceid).ok() } #[inline] pub unsafe fn WofWimUpdateEntry(volumename: P0, datasourceid: i64, newwimpath: P2) -> windows_core::Result<()> @@ -2865,7 +2843,7 @@ where P2: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofWimUpdateEntry(volumename : windows_core::PCWSTR, datasourceid : i64, newwimpath : windows_core::PCWSTR) -> windows_core::HRESULT); - WofWimUpdateEntry(volumename.param().abi(), core::mem::transmute(datasourceid), newwimpath.param().abi()).ok() + WofWimUpdateEntry(volumename.param().abi(), datasourceid, newwimpath.param().abi()).ok() } #[inline] pub unsafe fn Wow64DisableWow64FsRedirection(oldvalue: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2875,46 +2853,46 @@ pub unsafe fn Wow64DisableWow64FsRedirection(oldvalue: *mut *mut core::ffi::c_vo #[inline] pub unsafe fn Wow64EnableWow64FsRedirection(wow64fsenableredirection: bool) -> bool { windows_targets::link!("kernel32.dll" "system" fn Wow64EnableWow64FsRedirection(wow64fsenableredirection : bool) -> bool); - Wow64EnableWow64FsRedirection(core::mem::transmute(wow64fsenableredirection)) + Wow64EnableWow64FsRedirection(wow64fsenableredirection) } #[inline] pub unsafe fn Wow64RevertWow64FsRedirection(olvalue: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Wow64RevertWow64FsRedirection(olvalue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - Wow64RevertWow64FsRedirection(core::mem::transmute(olvalue)).ok() + Wow64RevertWow64FsRedirection(olvalue).ok() } #[inline] pub unsafe fn WriteEncryptedFileRaw(pfimportcallback: PFE_IMPORT_FUNC, pvcallbackcontext: Option<*const core::ffi::c_void>, pvcontext: *const core::ffi::c_void) -> u32 { windows_targets::link!("advapi32.dll" "system" fn WriteEncryptedFileRaw(pfimportcallback : PFE_IMPORT_FUNC, pvcallbackcontext : *const core::ffi::c_void, pvcontext : *const core::ffi::c_void) -> u32); - WriteEncryptedFileRaw(core::mem::transmute(pfimportcallback), core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcontext)) + WriteEncryptedFileRaw(pfimportcallback, core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), pvcontext) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFile(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&[u8]>, lpnumberofbyteswritten: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteFile(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpnumberofbyteswritten : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WriteFile(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpnumberofbyteswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + WriteFile(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpnumberofbyteswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFileEx(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&[u8]>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteFileEx(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> super::super::Foundation:: BOOL); - WriteFileEx(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoverlapped), core::mem::transmute(lpcompletionroutine)).ok() + WriteFileEx(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoverlapped), lpcompletionroutine).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFileGather(hfile: super::super::Foundation::HANDLE, asegmentarray: *const FILE_SEGMENT_ELEMENT, nnumberofbytestowrite: u32, lpreserved: Option<*const u32>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteFileGather(hfile : super::super::Foundation:: HANDLE, asegmentarray : *const FILE_SEGMENT_ELEMENT, nnumberofbytestowrite : u32, lpreserved : *const u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WriteFileGather(core::mem::transmute(hfile), core::mem::transmute(asegmentarray), core::mem::transmute(nnumberofbytestowrite), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)).ok() + WriteFileGather(hfile, asegmentarray, nnumberofbytestowrite, core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteLogRestartArea(pvmarshal: *mut core::ffi::c_void, pvrestartbuffer: *mut core::ffi::c_void, cbrestartbuffer: u32, plsnbase: *mut CLS_LSN, fflags: CLFS_FLAG, pcbwritten: *mut u32, plsnnext: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("clfsw32.dll" "system" fn WriteLogRestartArea(pvmarshal : *mut core::ffi::c_void, pvrestartbuffer : *mut core::ffi::c_void, cbrestartbuffer : u32, plsnbase : *mut CLS_LSN, fflags : CLFS_FLAG, pcbwritten : *mut u32, plsnnext : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - WriteLogRestartArea(core::mem::transmute(pvmarshal), core::mem::transmute(pvrestartbuffer), core::mem::transmute(cbrestartbuffer), core::mem::transmute(plsnbase), core::mem::transmute(fflags), core::mem::transmute(pcbwritten), core::mem::transmute(plsnnext), core::mem::transmute(poverlapped)).ok() + WriteLogRestartArea(core::mem::transmute(pvmarshal), core::mem::transmute(pvrestartbuffer), cbrestartbuffer, core::mem::transmute(plsnbase), fflags, core::mem::transmute(pcbwritten), core::mem::transmute(plsnnext), core::mem::transmute(poverlapped)).ok() } #[inline] pub unsafe fn WriteTapemark(hdevice: super::super::Foundation::HANDLE, dwtapemarktype: TAPEMARK_TYPE, dwtapemarkcount: u32, bimmediate: bool) -> u32 { windows_targets::link!("kernel32.dll" "system" fn WriteTapemark(hdevice : super::super::Foundation:: HANDLE, dwtapemarktype : TAPEMARK_TYPE, dwtapemarkcount : u32, bimmediate : super::super::Foundation:: BOOL) -> u32); - WriteTapemark(core::mem::transmute(hdevice), core::mem::transmute(dwtapemarktype), core::mem::transmute(dwtapemarkcount), bimmediate.into()) + WriteTapemark(hdevice, dwtapemarktype, dwtapemarkcount, bimmediate.into()) } pub const ACCESS_ALL: SHARE_INFO_PERMISSIONS = SHARE_INFO_PERMISSIONS(32768u32); pub const ACCESS_ATRIB: SHARE_INFO_PERMISSIONS = SHARE_INFO_PERMISSIONS(32u32); @@ -5161,19 +5139,19 @@ impl IDiskQuotaControl { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszpath.param().abi(), breadwrite.into()).ok() } pub unsafe fn SetQuotaState(&self, dwstate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuotaState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstate)).ok() + (windows_core::Interface::vtable(self).SetQuotaState)(windows_core::Interface::as_raw(self), dwstate).ok() } pub unsafe fn GetQuotaState(&self, pdwstate: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuotaState)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstate)).ok() } pub unsafe fn SetQuotaLogFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuotaLogFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetQuotaLogFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetQuotaLogFlags(&self, pdwflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuotaLogFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() } pub unsafe fn SetDefaultQuotaThreshold(&self, llthreshold: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultQuotaThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(llthreshold)).ok() + (windows_core::Interface::vtable(self).SetDefaultQuotaThreshold)(windows_core::Interface::as_raw(self), llthreshold).ok() } pub unsafe fn GetDefaultQuotaThreshold(&self, pllthreshold: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultQuotaThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(pllthreshold)).ok() @@ -5182,10 +5160,10 @@ impl IDiskQuotaControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultQuotaThresholdText)(windows_core::Interface::as_raw(self), psztext.param().abi(), core::mem::transmute(cchtext)).ok() + (windows_core::Interface::vtable(self).GetDefaultQuotaThresholdText)(windows_core::Interface::as_raw(self), psztext.param().abi(), cchtext).ok() } pub unsafe fn SetDefaultQuotaLimit(&self, lllimit: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultQuotaLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(lllimit)).ok() + (windows_core::Interface::vtable(self).SetDefaultQuotaLimit)(windows_core::Interface::as_raw(self), lllimit).ok() } pub unsafe fn GetDefaultQuotaLimit(&self, plllimit: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultQuotaLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(plllimit)).ok() @@ -5194,19 +5172,19 @@ impl IDiskQuotaControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.param().abi(), core::mem::transmute(cchtext)).ok() + (windows_core::Interface::vtable(self).GetDefaultQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.param().abi(), cchtext).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn AddUserSid(&self, pusersid: super::super::Security::PSID, fnameresolution: DISKQUOTA_USERNAME_RESOLVE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddUserSid)(windows_core::Interface::as_raw(self), core::mem::transmute(pusersid), core::mem::transmute(fnameresolution), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddUserSid)(windows_core::Interface::as_raw(self), pusersid, fnameresolution, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddUserName(&self, pszlogonname: P0, fnameresolution: DISKQUOTA_USERNAME_RESOLVE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddUserName)(windows_core::Interface::as_raw(self), pszlogonname.param().abi(), core::mem::transmute(fnameresolution), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddUserName)(windows_core::Interface::as_raw(self), pszlogonname.param().abi(), fnameresolution, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteUser(&self, puser: P0) -> windows_core::Result<()> where @@ -5217,7 +5195,7 @@ impl IDiskQuotaControl { #[cfg(feature = "Win32_Security")] pub unsafe fn FindUserSid(&self, pusersid: super::super::Security::PSID, fnameresolution: DISKQUOTA_USERNAME_RESOLVE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindUserSid)(windows_core::Interface::as_raw(self), core::mem::transmute(pusersid), core::mem::transmute(fnameresolution), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindUserSid)(windows_core::Interface::as_raw(self), pusersid, fnameresolution, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindUserName(&self, pszlogonname: P0) -> windows_core::Result where @@ -5228,7 +5206,7 @@ impl IDiskQuotaControl { } #[cfg(feature = "Win32_Security")] pub unsafe fn CreateEnumUsers(&self, rgpusersids: *mut super::super::Security::PSID, cpsids: u32, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppenum: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateEnumUsers)(windows_core::Interface::as_raw(self), core::mem::transmute(rgpusersids), core::mem::transmute(cpsids), core::mem::transmute(fnameresolution), core::mem::transmute(ppenum)).ok() + (windows_core::Interface::vtable(self).CreateEnumUsers)(windows_core::Interface::as_raw(self), core::mem::transmute(rgpusersids), cpsids, fnameresolution, core::mem::transmute(ppenum)).ok() } pub unsafe fn CreateUserBatch(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5497,13 +5475,13 @@ impl IDiskQuotaUser { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), pszaccountcontainer.param().abi(), core::mem::transmute(cchaccountcontainer), pszlogonname.param().abi(), core::mem::transmute(cchlogonname), pszdisplayname.param().abi(), core::mem::transmute(cchdisplayname)).ok() + (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), pszaccountcontainer.param().abi(), cchaccountcontainer, pszlogonname.param().abi(), cchlogonname, pszdisplayname.param().abi(), cchdisplayname).ok() } pub unsafe fn GetSidLength(&self, pdwlength: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSidLength)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwlength)).ok() } pub unsafe fn GetSid(&self, pbsidbuffer: *mut u8, cbsidbuffer: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSid)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsidbuffer), core::mem::transmute(cbsidbuffer)).ok() + (windows_core::Interface::vtable(self).GetSid)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsidbuffer), cbsidbuffer).ok() } pub unsafe fn GetQuotaThreshold(&self, pllthreshold: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuotaThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(pllthreshold)).ok() @@ -5512,7 +5490,7 @@ impl IDiskQuotaUser { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetQuotaThresholdText)(windows_core::Interface::as_raw(self), psztext.param().abi(), core::mem::transmute(cchtext)).ok() + (windows_core::Interface::vtable(self).GetQuotaThresholdText)(windows_core::Interface::as_raw(self), psztext.param().abi(), cchtext).ok() } pub unsafe fn GetQuotaLimit(&self, plllimit: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuotaLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(plllimit)).ok() @@ -5521,7 +5499,7 @@ impl IDiskQuotaUser { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.param().abi(), core::mem::transmute(cchtext)).ok() + (windows_core::Interface::vtable(self).GetQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.param().abi(), cchtext).ok() } pub unsafe fn GetQuotaUsed(&self, pllused: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuotaUsed)(windows_core::Interface::as_raw(self), core::mem::transmute(pllused)).ok() @@ -5530,16 +5508,16 @@ impl IDiskQuotaUser { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetQuotaUsedText)(windows_core::Interface::as_raw(self), psztext.param().abi(), core::mem::transmute(cchtext)).ok() + (windows_core::Interface::vtable(self).GetQuotaUsedText)(windows_core::Interface::as_raw(self), psztext.param().abi(), cchtext).ok() } pub unsafe fn GetQuotaInformation(&self, pbquotainfo: *mut core::ffi::c_void, cbquotainfo: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetQuotaInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pbquotainfo), core::mem::transmute(cbquotainfo)).ok() + (windows_core::Interface::vtable(self).GetQuotaInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pbquotainfo), cbquotainfo).ok() } pub unsafe fn SetQuotaThreshold(&self, llthreshold: i64, fwritethrough: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuotaThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(llthreshold), fwritethrough.into()).ok() + (windows_core::Interface::vtable(self).SetQuotaThreshold)(windows_core::Interface::as_raw(self), llthreshold, fwritethrough.into()).ok() } pub unsafe fn SetQuotaLimit(&self, lllimit: i64, fwritethrough: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuotaLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(lllimit), fwritethrough.into()).ok() + (windows_core::Interface::vtable(self).SetQuotaLimit)(windows_core::Interface::as_raw(self), lllimit, fwritethrough.into()).ok() } pub unsafe fn Invalidate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Invalidate)(windows_core::Interface::as_raw(self)).ok() @@ -5741,10 +5719,10 @@ windows_core::imp::define_interface!(IEnumDiskQuotaUsers, IEnumDiskQuotaUsers_Vt windows_core::imp::interface_hierarchy!(IEnumDiskQuotaUsers, windows_core::IUnknown); impl IEnumDiskQuotaUsers { pub unsafe fn Next(&self, cusers: u32, rgusers: *mut Option, pcusersfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cusers), core::mem::transmute(rgusers), core::mem::transmute(pcusersfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cusers, core::mem::transmute(rgusers), core::mem::transmute(pcusersfetched)).ok() } pub unsafe fn Skip(&self, cusers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cusers)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cusers).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs index 7a22e3ca36..c01aedd1e4 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn CloseIMsgSession(lpmsgsess: LPMSGSESS) { windows_targets::link!("mapi32.dll" "system" fn CloseIMsgSession(lpmsgsess : LPMSGSESS)); - CloseIMsgSession(core::mem::transmute(lpmsgsess)) + CloseIMsgSession(lpmsgsess) } #[cfg(feature = "Win32_System_AddressBook")] #[inline] @@ -12,7 +12,7 @@ pub unsafe fn GetAttribIMsgOnIStg(lpobject: *mut core::ffi::c_void, lpproptagarr #[inline] pub unsafe fn MapStorageSCode(stgscode: i32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn MapStorageSCode(stgscode : i32) -> i32); - MapStorageSCode(core::mem::transmute(stgscode)) + MapStorageSCode(stgscode) } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com_StructuredStorage"))] #[inline] @@ -22,7 +22,7 @@ where P6: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn OpenIMsgOnIStg(lpmsgsess : LPMSGSESS, lpallocatebuffer : super::super::System::AddressBook:: LPALLOCATEBUFFER, lpallocatemore : super::super::System::AddressBook:: LPALLOCATEMORE, lpfreebuffer : super::super::System::AddressBook:: LPFREEBUFFER, lpmalloc : * mut core::ffi::c_void, lpmapisup : *mut core::ffi::c_void, lpstg : * mut core::ffi::c_void, lpfmsgcallrelease : *mut MSGCALLRELEASE, ulcallerdata : u32, ulflags : u32, lppmsg : *mut * mut core::ffi::c_void) -> i32); - OpenIMsgOnIStg(core::mem::transmute(lpmsgsess), core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpallocatemore), core::mem::transmute(lpfreebuffer), lpmalloc.param().abi(), core::mem::transmute(lpmapisup), lpstg.param().abi(), core::mem::transmute(lpfmsgcallrelease), core::mem::transmute(ulcallerdata), core::mem::transmute(ulflags), core::mem::transmute(lppmsg)) + OpenIMsgOnIStg(lpmsgsess, lpallocatebuffer, lpallocatemore, lpfreebuffer, lpmalloc.param().abi(), core::mem::transmute(lpmapisup), lpstg.param().abi(), core::mem::transmute(lpfmsgcallrelease), ulcallerdata, ulflags, core::mem::transmute(lppmsg)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -31,7 +31,7 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn OpenIMsgSession(lpmalloc : * mut core::ffi::c_void, ulflags : u32, lppmsgsess : *mut LPMSGSESS) -> i32); - OpenIMsgSession(lpmalloc.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(lppmsgsess)) + OpenIMsgSession(lpmalloc.param().abi(), ulflags, core::mem::transmute(lppmsgsess)) } #[cfg(feature = "Win32_System_AddressBook")] #[inline] @@ -125,7 +125,7 @@ impl DDiscFormat2EraseEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(elapsedseconds), core::mem::transmute(estimatedtotalseconds)).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), elapsedseconds, estimatedtotalseconds).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -323,7 +323,7 @@ impl DFileSystemImageEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute_copy(currentfile), core::mem::transmute(copiedsectors), core::mem::transmute(totalsectors)).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute_copy(currentfile), copiedsectors, totalsectors).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -368,7 +368,7 @@ impl DFileSystemImageImportEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateImport)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(filesystem), core::mem::transmute_copy(currentitem), core::mem::transmute(importeddirectoryitems), core::mem::transmute(totaldirectoryitems), core::mem::transmute(importedfileitems), core::mem::transmute(totalfileitems)).ok() + (windows_core::Interface::vtable(self).UpdateImport)(windows_core::Interface::as_raw(self), object.param().abi(), filesystem, core::mem::transmute_copy(currentitem), importeddirectoryitems, totaldirectoryitems, importedfileitems, totalfileitems).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -800,14 +800,14 @@ impl IBootOptions { (windows_core::Interface::vtable(self).PlatformId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPlatformId(&self, newval: PlatformId) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlatformId)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetPlatformId)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Emulation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Emulation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEmulation(&self, newval: EmulationType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEmulation)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEmulation)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ImageSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -945,7 +945,7 @@ windows_core::imp::define_interface!(IBurnVerification, IBurnVerification_Vtbl, windows_core::imp::interface_hierarchy!(IBurnVerification, windows_core::IUnknown); impl IBurnVerification { pub unsafe fn SetBurnVerificationLevel(&self, value: IMAPI_BURN_VERIFICATION_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBurnVerificationLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBurnVerificationLevel)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn BurnVerificationLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1143,14 +1143,14 @@ impl IDiscFormat2Data { (windows_core::Interface::vtable(self).Recorder)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBufferUnderrunFreeDisabled(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn BufferUnderrunFreeDisabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPostgapAlreadyInImage(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPostgapAlreadyInImage)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetPostgapAlreadyInImage)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn PostgapAlreadyInImage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1185,14 +1185,14 @@ impl IDiscFormat2Data { (windows_core::Interface::vtable(self).LastWrittenAddressOfPreviousSession)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForceMediaToBeClosed(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForceMediaToBeClosed)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetForceMediaToBeClosed)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ForceMediaToBeClosed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ForceMediaToBeClosed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisableConsumerDvdCompatibilityMode(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisableConsumerDvdCompatibilityMode)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDisableConsumerDvdCompatibilityMode)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn DisableConsumerDvdCompatibilityMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1236,7 +1236,7 @@ impl IDiscFormat2Data { (windows_core::Interface::vtable(self).SupportedWriteSpeedDescriptors)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForceOverwrite(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForceOverwrite)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetForceOverwrite)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ForceOverwrite(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1258,7 +1258,7 @@ impl IDiscFormat2Data { (windows_core::Interface::vtable(self).CancelWrite)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWriteSpeed(&self, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedsectorspersecond), core::mem::transmute(rotationtypeispurecav)).ok() + (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1777,7 +1777,7 @@ impl IDiscFormat2Erase { (windows_core::Interface::vtable(self).Recorder)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFullErase(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFullErase)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetFullErase)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn FullErase(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1927,7 +1927,7 @@ impl IDiscFormat2RawCD { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteMedia2)(windows_core::Interface::as_raw(self), data.param().abi(), core::mem::transmute(streamleadinsectors)).ok() + (windows_core::Interface::vtable(self).WriteMedia2)(windows_core::Interface::as_raw(self), data.param().abi(), streamleadinsectors).ok() } pub unsafe fn CancelWrite(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelWrite)(windows_core::Interface::as_raw(self)).ok() @@ -1936,7 +1936,7 @@ impl IDiscFormat2RawCD { (windows_core::Interface::vtable(self).ReleaseMedia)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWriteSpeed(&self, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedsectorspersecond), core::mem::transmute(rotationtypeispurecav)).ok() + (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav).ok() } pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where @@ -1949,7 +1949,7 @@ impl IDiscFormat2RawCD { (windows_core::Interface::vtable(self).Recorder)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBufferUnderrunFreeDisabled(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn BufferUnderrunFreeDisabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1973,7 +1973,7 @@ impl IDiscFormat2RawCD { (windows_core::Interface::vtable(self).SupportedSectorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRequestedSectorType(&self, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRequestedSectorType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetRequestedSectorType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn RequestedSectorType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2417,7 +2417,7 @@ impl IDiscFormat2TrackAtOnce { (windows_core::Interface::vtable(self).ReleaseMedia)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWriteSpeed(&self, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedsectorspersecond), core::mem::transmute(rotationtypeispurecav)).ok() + (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav).ok() } pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where @@ -2430,7 +2430,7 @@ impl IDiscFormat2TrackAtOnce { (windows_core::Interface::vtable(self).Recorder)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBufferUnderrunFreeDisabled(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn BufferUnderrunFreeDisabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2453,7 +2453,7 @@ impl IDiscFormat2TrackAtOnce { (windows_core::Interface::vtable(self).UsedSectorsOnMedia)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDoNotFinalizeMedia(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDoNotFinalizeMedia)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDoNotFinalizeMedia)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn DoNotFinalizeMedia(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2924,7 +2924,7 @@ impl IDiscMaster { (windows_core::Interface::vtable(self).GetActiveDiscMasterFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetActiveDiscMasterFormat(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActiveDiscMasterFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).SetActiveDiscMasterFormat)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn EnumDiscRecorders(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2951,10 +2951,10 @@ impl IDiscMaster { (windows_core::Interface::vtable(self).ProgressAdvise)(windows_core::Interface::as_raw(self), pevents.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ProgressUnadvise(&self, vcookie: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProgressUnadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(vcookie)).ok() + (windows_core::Interface::vtable(self).ProgressUnadvise)(windows_core::Interface::as_raw(self), vcookie).ok() } pub unsafe fn RecordDisc(&self, bsimulate: u8, bejectafterburn: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecordDisc)(windows_core::Interface::as_raw(self), core::mem::transmute(bsimulate), core::mem::transmute(bejectafterburn)).ok() + (windows_core::Interface::vtable(self).RecordDisc)(windows_core::Interface::as_raw(self), bsimulate, bejectafterburn).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3111,7 +3111,7 @@ impl IDiscMaster2 { } pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3209,25 +3209,25 @@ impl IDiscMasterProgressEvents { (windows_core::Interface::vtable(self).NotifyPnPActivity)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn NotifyAddProgress(&self, ncompletedsteps: i32, ntotalsteps: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyAddProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ncompletedsteps), core::mem::transmute(ntotalsteps)).ok() + (windows_core::Interface::vtable(self).NotifyAddProgress)(windows_core::Interface::as_raw(self), ncompletedsteps, ntotalsteps).ok() } pub unsafe fn NotifyBlockProgress(&self, ncompleted: i32, ntotal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyBlockProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ncompleted), core::mem::transmute(ntotal)).ok() + (windows_core::Interface::vtable(self).NotifyBlockProgress)(windows_core::Interface::as_raw(self), ncompleted, ntotal).ok() } pub unsafe fn NotifyTrackProgress(&self, ncurrenttrack: i32, ntotaltracks: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyTrackProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ncurrenttrack), core::mem::transmute(ntotaltracks)).ok() + (windows_core::Interface::vtable(self).NotifyTrackProgress)(windows_core::Interface::as_raw(self), ncurrenttrack, ntotaltracks).ok() } pub unsafe fn NotifyPreparingBurn(&self, nestimatedseconds: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyPreparingBurn)(windows_core::Interface::as_raw(self), core::mem::transmute(nestimatedseconds)).ok() + (windows_core::Interface::vtable(self).NotifyPreparingBurn)(windows_core::Interface::as_raw(self), nestimatedseconds).ok() } pub unsafe fn NotifyClosingDisc(&self, nestimatedseconds: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyClosingDisc)(windows_core::Interface::as_raw(self), core::mem::transmute(nestimatedseconds)).ok() + (windows_core::Interface::vtable(self).NotifyClosingDisc)(windows_core::Interface::as_raw(self), nestimatedseconds).ok() } pub unsafe fn NotifyBurnComplete(&self, status: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyBurnComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).NotifyBurnComplete)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn NotifyEraseComplete(&self, status: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyEraseComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).NotifyEraseComplete)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -3320,7 +3320,7 @@ windows_core::imp::define_interface!(IDiscRecorder, IDiscRecorder_Vtbl, 0x85ac97 windows_core::imp::interface_hierarchy!(IDiscRecorder, windows_core::IUnknown); impl IDiscRecorder { pub unsafe fn Init(&self, pbyuniqueid: &[u8], nuldrivenumber: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(pbyuniqueid.as_ptr()), pbyuniqueid.len().try_into().unwrap(), core::mem::transmute(nuldrivenumber)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(pbyuniqueid.as_ptr()), pbyuniqueid.len().try_into().unwrap(), nuldrivenumber).ok() } pub unsafe fn GetRecorderGUID(&self, pbyuniqueid: Option<&mut [u8]>, pulreturnsizerequired: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRecorderGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(pbyuniqueid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbyuniqueid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pulreturnsizerequired)).ok() @@ -3369,7 +3369,7 @@ impl IDiscRecorder { (windows_core::Interface::vtable(self).Eject)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Erase(&self, bfullerase: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Erase)(windows_core::Interface::as_raw(self), core::mem::transmute(bfullerase)).ok() + (windows_core::Interface::vtable(self).Erase)(windows_core::Interface::as_raw(self), bfullerase).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3556,7 +3556,7 @@ impl IDiscRecorder2 { (windows_core::Interface::vtable(self).CloseTray)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AcquireExclusiveAccess(&self, force: super::super::Foundation::VARIANT_BOOL, __midl__idiscrecorder20000: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireExclusiveAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(force), core::mem::transmute_copy(__midl__idiscrecorder20000)).ok() + (windows_core::Interface::vtable(self).AcquireExclusiveAccess)(windows_core::Interface::as_raw(self), force, core::mem::transmute_copy(__midl__idiscrecorder20000)).ok() } pub unsafe fn ReleaseExclusiveAccess(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseExclusiveAccess)(windows_core::Interface::as_raw(self)).ok() @@ -3907,19 +3907,19 @@ windows_core::imp::define_interface!(IDiscRecorder2Ex, IDiscRecorder2Ex_Vtbl, 0x windows_core::imp::interface_hierarchy!(IDiscRecorder2Ex, windows_core::IUnknown); impl IDiscRecorder2Ex { pub unsafe fn SendCommandNoData(&self, cdb: &[u8], sensebuffer: &mut [u8; 18], timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendCommandNoData)(windows_core::Interface::as_raw(self), core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), core::mem::transmute(sensebuffer.as_ptr()), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).SendCommandNoData)(windows_core::Interface::as_raw(self), core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), core::mem::transmute(sensebuffer.as_ptr()), timeout).ok() } pub unsafe fn SendCommandSendDataToDevice(&self, cdb: &[u8], sensebuffer: &mut [u8; 18], timeout: u32, buffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendCommandSendDataToDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), core::mem::transmute(sensebuffer.as_ptr()), core::mem::transmute(timeout), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SendCommandSendDataToDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), core::mem::transmute(sensebuffer.as_ptr()), timeout, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()).ok() } pub unsafe fn SendCommandGetDataFromDevice(&self, cdb: &[u8], sensebuffer: &mut [u8; 18], timeout: u32, buffer: &mut [u8], bufferfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendCommandGetDataFromDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), core::mem::transmute(sensebuffer.as_ptr()), core::mem::transmute(timeout), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(bufferfetched)).ok() + (windows_core::Interface::vtable(self).SendCommandGetDataFromDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), core::mem::transmute(sensebuffer.as_ptr()), timeout, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(bufferfetched)).ok() } pub unsafe fn ReadDvdStructure(&self, format: u32, address: u32, layer: u32, agid: u32, data: *mut *mut u8, count: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadDvdStructure)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(address), core::mem::transmute(layer), core::mem::transmute(agid), core::mem::transmute(data), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).ReadDvdStructure)(windows_core::Interface::as_raw(self), format, address, layer, agid, core::mem::transmute(data), core::mem::transmute(count)).ok() } pub unsafe fn SendDvdStructure(&self, format: u32, data: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDvdStructure)(windows_core::Interface::as_raw(self), core::mem::transmute(format), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SendDvdStructure)(windows_core::Interface::as_raw(self), format, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn GetAdapterDescriptor(&self, data: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAdapterDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(data), core::mem::transmute(bytesize)).ok() @@ -3931,25 +3931,25 @@ impl IDiscRecorder2Ex { (windows_core::Interface::vtable(self).GetDiscInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(discinformation), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetTrackInformation(&self, address: u32, addresstype: IMAPI_READ_TRACK_ADDRESS_TYPE, trackinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTrackInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(addresstype), core::mem::transmute(trackinformation), core::mem::transmute(bytesize)).ok() + (windows_core::Interface::vtable(self).GetTrackInformation)(windows_core::Interface::as_raw(self), address, addresstype, core::mem::transmute(trackinformation), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetFeaturePage(&self, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: bool, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFeaturePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedfeature), core::mem::transmute(currentfeatureonly), core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() + (windows_core::Interface::vtable(self).GetFeaturePage)(windows_core::Interface::as_raw(self), requestedfeature, currentfeatureonly, core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetModePage(&self, requestedmodepage: IMAPI_MODE_PAGE_TYPE, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagedata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedmodepage), core::mem::transmute(requesttype), core::mem::transmute(modepagedata), core::mem::transmute(bytesize)).ok() + (windows_core::Interface::vtable(self).GetModePage)(windows_core::Interface::as_raw(self), requestedmodepage, requesttype, core::mem::transmute(modepagedata), core::mem::transmute(bytesize)).ok() } pub unsafe fn SetModePage(&self, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, data: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requesttype), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetModePage)(windows_core::Interface::as_raw(self), requesttype, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn GetSupportedFeaturePages(&self, currentfeatureonly: bool, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedFeaturePages)(windows_core::Interface::as_raw(self), core::mem::transmute(currentfeatureonly), core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() + (windows_core::Interface::vtable(self).GetSupportedFeaturePages)(windows_core::Interface::as_raw(self), currentfeatureonly, core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetSupportedProfiles(&self, currentonly: bool, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(currentonly), core::mem::transmute(profiletypes), core::mem::transmute(validprofiles)).ok() + (windows_core::Interface::vtable(self).GetSupportedProfiles)(windows_core::Interface::as_raw(self), currentonly, core::mem::transmute(profiletypes), core::mem::transmute(validprofiles)).ok() } pub unsafe fn GetSupportedModePages(&self, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagetypes: *mut *mut IMAPI_MODE_PAGE_TYPE, validpages: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedModePages)(windows_core::Interface::as_raw(self), core::mem::transmute(requesttype), core::mem::transmute(modepagetypes), core::mem::transmute(validpages)).ok() + (windows_core::Interface::vtable(self).GetSupportedModePages)(windows_core::Interface::as_raw(self), requesttype, core::mem::transmute(modepagetypes), core::mem::transmute(validpages)).ok() } pub unsafe fn GetByteAlignmentMask(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4132,7 +4132,7 @@ impl IEnumDiscMasterFormats { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), lpiidformatid.len().try_into().unwrap(), core::mem::transmute(lpiidformatid.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cformats: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cformats)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cformats).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4200,7 +4200,7 @@ impl IEnumDiscRecorders { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pprecorder.len().try_into().unwrap(), core::mem::transmute(pprecorder.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, crecorders: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(crecorders)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), crecorders).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4269,7 +4269,7 @@ impl IEnumFsiItems { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4344,7 +4344,7 @@ impl IEnumProgressItems { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4433,14 +4433,14 @@ impl IFileSystemImage { (windows_core::Interface::vtable(self).SessionStartBlock)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSessionStartBlock(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSessionStartBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetSessionStartBlock)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn FreeMediaBlocks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FreeMediaBlocks)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFreeMediaBlocks(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFreeMediaBlocks)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetFreeMediaBlocks)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn SetMaxMediaBlocksFromDevice(&self, discrecorder: P0) -> windows_core::Result<()> where @@ -4497,28 +4497,28 @@ impl IFileSystemImage { (windows_core::Interface::vtable(self).StrictFileSystemCompliance)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrictFileSystemCompliance(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn UseRestrictedCharacterSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseRestrictedCharacterSet(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn FileSystemsToCreate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FileSystemsToCreate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFileSystemsToCreate(&self, newval: FsiFileSystems) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileSystemsToCreate)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetFileSystemsToCreate)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn FileSystemsSupported(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FileSystemsSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUDFRevision(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUDFRevision)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetUDFRevision)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn UDFRevision(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4536,10 +4536,10 @@ impl IFileSystemImage { (windows_core::Interface::vtable(self).ChooseImageDefaults)(windows_core::Interface::as_raw(self), discrecorder.param().abi()).ok() } pub unsafe fn ChooseImageDefaultsForMediaType(&self, value: IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChooseImageDefaultsForMediaType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).ChooseImageDefaultsForMediaType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetISO9660InterchangeLevel(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetISO9660InterchangeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetISO9660InterchangeLevel)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ISO9660InterchangeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4571,17 +4571,17 @@ impl IFileSystemImage { } pub unsafe fn GetDefaultFileSystemForImport(&self, filesystems: FsiFileSystems) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultFileSystemForImport)(windows_core::Interface::as_raw(self), core::mem::transmute(filesystems), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultFileSystemForImport)(windows_core::Interface::as_raw(self), filesystems, &mut result__).map(|| result__) } pub unsafe fn ImportFileSystem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ImportFileSystem)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ImportSpecificFileSystem(&self, filesystemtouse: FsiFileSystems) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ImportSpecificFileSystem)(windows_core::Interface::as_raw(self), core::mem::transmute(filesystemtouse)).ok() + (windows_core::Interface::vtable(self).ImportSpecificFileSystem)(windows_core::Interface::as_raw(self), filesystemtouse).ok() } pub unsafe fn RollbackToChangePoint(&self, changepoint: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RollbackToChangePoint)(windows_core::Interface::as_raw(self), core::mem::transmute(changepoint)).ok() + (windows_core::Interface::vtable(self).RollbackToChangePoint)(windows_core::Interface::as_raw(self), changepoint).ok() } pub unsafe fn LockInChangePoint(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LockInChangePoint)(windows_core::Interface::as_raw(self)).ok() @@ -4611,7 +4611,7 @@ impl IFileSystemImage { (windows_core::Interface::vtable(self).StageFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStageFiles(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStageFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetStageFiles)(windows_core::Interface::as_raw(self), newval).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MultisessionInterfaces(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -4620,7 +4620,7 @@ impl IFileSystemImage { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMultisessionInterfaces(&self, newval: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMultisessionInterfaces)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetMultisessionInterfaces)(windows_core::Interface::as_raw(self), newval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5218,7 +5218,7 @@ impl IFileSystemImage2 { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBootImageOptionsArray(&self, newval: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBootImageOptionsArray)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetBootImageOptionsArray)(windows_core::Interface::as_raw(self), newval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5286,11 +5286,11 @@ impl IFileSystemImage3 { (windows_core::Interface::vtable(self).CreateRedundantUdfMetadataFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCreateRedundantUdfMetadataFiles(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCreateRedundantUdfMetadataFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetCreateRedundantUdfMetadataFiles)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ProbeSpecificFileSystem(&self, filesystemtoprobe: FsiFileSystems) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProbeSpecificFileSystem)(windows_core::Interface::as_raw(self), core::mem::transmute(filesystemtoprobe), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProbeSpecificFileSystem)(windows_core::Interface::as_raw(self), filesystemtoprobe, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5561,7 +5561,7 @@ impl IFsiDirectoryItem { (windows_core::Interface::vtable(self).AddFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), filedata.param().abi()).ok() } pub unsafe fn AddTree(&self, sourcedirectory: &windows_core::BSTR, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTree)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sourcedirectory), core::mem::transmute(includebasedirectory)).ok() + (windows_core::Interface::vtable(self).AddTree)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sourcedirectory), includebasedirectory).ok() } pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where @@ -5711,7 +5711,7 @@ windows_core::imp::interface_hierarchy!(IFsiDirectoryItem2, windows_core::IUnkno #[cfg(feature = "Win32_System_Com")] impl IFsiDirectoryItem2 { pub unsafe fn AddTreeWithNamedStreams(&self, sourcedirectory: &windows_core::BSTR, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTreeWithNamedStreams)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sourcedirectory), core::mem::transmute(includebasedirectory)).ok() + (windows_core::Interface::vtable(self).AddTreeWithNamedStreams)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sourcedirectory), includebasedirectory).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5899,7 +5899,7 @@ impl IFsiFileItem2 { (windows_core::Interface::vtable(self).IsRealTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsRealTime(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsRealTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetIsRealTime)(windows_core::Interface::as_raw(self), newval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6012,36 +6012,36 @@ impl IFsiItem { (windows_core::Interface::vtable(self).CreationTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCreationTime(&self, newval: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCreationTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetCreationTime)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn LastAccessedTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LastAccessedTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLastAccessedTime(&self, newval: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLastAccessedTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetLastAccessedTime)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn LastModifiedTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LastModifiedTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLastModifiedTime(&self, newval: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLastModifiedTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetLastModifiedTime)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn IsHidden(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsHidden)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsHidden(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FileSystemName)(windows_core::Interface::as_raw(self), core::mem::transmute(filesystem), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).FileSystemName)(windows_core::Interface::as_raw(self), filesystem, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FileSystemPath)(windows_core::Interface::as_raw(self), core::mem::transmute(filesystem), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).FileSystemPath)(windows_core::Interface::as_raw(self), filesystem, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6217,7 +6217,7 @@ impl IFsiNamedStreams { } pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6434,7 +6434,7 @@ impl IJolietDiscMaster { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddData)(windows_core::Interface::as_raw(self), pstorage.param().abi(), core::mem::transmute(lfileoverwrite)).ok() + (windows_core::Interface::vtable(self).AddData)(windows_core::Interface::as_raw(self), pstorage.param().abi(), lfileoverwrite).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn GetJolietProperties(&self) -> windows_core::Result { @@ -6968,7 +6968,7 @@ impl IMultisession { (windows_core::Interface::vtable(self).IsSupportedOnCurrentMediaState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInUse(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInUse)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetInUse)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn InUse(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7424,7 +7424,7 @@ impl IProgressItems { } pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7432,7 +7432,7 @@ impl IProgressItems { } pub unsafe fn ProgressItemFromBlock(&self, block: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProgressItemFromBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(block), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProgressItemFromBlock)(windows_core::Interface::as_raw(self), block, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProgressItemFromDescription(&self, description: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7569,7 +7569,7 @@ impl IRawCDImageCreator { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddTrack)(windows_core::Interface::as_raw(self), core::mem::transmute(datatype), data.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddTrack)(windows_core::Interface::as_raw(self), datatype, data.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSpecialPregap(&self, data: P0) -> windows_core::Result<()> @@ -7586,7 +7586,7 @@ impl IRawCDImageCreator { (windows_core::Interface::vtable(self).AddSubcodeRWGenerator)(windows_core::Interface::as_raw(self), subcode.param().abi()).ok() } pub unsafe fn SetResultingImageType(&self, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResultingImageType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetResultingImageType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ResultingImageType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7597,14 +7597,14 @@ impl IRawCDImageCreator { (windows_core::Interface::vtable(self).StartOfLeadout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartOfLeadoutLimit(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartOfLeadoutLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStartOfLeadoutLimit)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn StartOfLeadoutLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartOfLeadoutLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisableGaplessAudio(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisableGaplessAudio)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDisableGaplessAudio)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn DisableGaplessAudio(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7618,7 +7618,7 @@ impl IRawCDImageCreator { (windows_core::Interface::vtable(self).MediaCatalogNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetStartingTrackNumber(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartingTrackNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStartingTrackNumber)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn StartingTrackNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7626,7 +7626,7 @@ impl IRawCDImageCreator { } pub unsafe fn get_TrackInfo(&self, trackindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_TrackInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(trackindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_TrackInfo)(windows_core::Interface::as_raw(self), trackindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NumberOfExistingTracks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7924,14 +7924,14 @@ impl IRawCDImageTrackInfo { (windows_core::Interface::vtable(self).DigitalAudioCopySetting)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDigitalAudioCopySetting(&self, value: IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDigitalAudioCopySetting)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDigitalAudioCopySetting)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn AudioHasPreemphasis(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AudioHasPreemphasis)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAudioHasPreemphasis(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAudioHasPreemphasis)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAudioHasPreemphasis)(windows_core::Interface::as_raw(self), value).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TrackIndexes(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -7939,10 +7939,10 @@ impl IRawCDImageTrackInfo { (windows_core::Interface::vtable(self).TrackIndexes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddTrackIndex(&self, lbaoffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTrackIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(lbaoffset)).ok() + (windows_core::Interface::vtable(self).AddTrackIndex)(windows_core::Interface::as_raw(self), lbaoffset).ok() } pub unsafe fn ClearTrackIndex(&self, lbaoffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearTrackIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(lbaoffset)).ok() + (windows_core::Interface::vtable(self).ClearTrackIndex)(windows_core::Interface::as_raw(self), lbaoffset).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8132,7 +8132,7 @@ impl IRedbookDiscMaster { (windows_core::Interface::vtable(self).GetAudioBlockSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CreateAudioTrack(&self, nblocks: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateAudioTrack)(windows_core::Interface::as_raw(self), core::mem::transmute(nblocks)).ok() + (windows_core::Interface::vtable(self).CreateAudioTrack)(windows_core::Interface::as_raw(self), nblocks).ok() } pub unsafe fn AddAudioTrackBlocks(&self, pby: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddAudioTrackBlocks)(windows_core::Interface::as_raw(self), core::mem::transmute(pby.as_ptr()), pby.len().try_into().unwrap()).ok() @@ -8340,7 +8340,7 @@ windows_core::imp::interface_hierarchy!(IStreamInterleave, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl IStreamInterleave { pub unsafe fn Initialize(&self, streams: *const Option, interleavesizes: *const u32, streamcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(streams), core::mem::transmute(interleavesizes), core::mem::transmute(streamcount)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(streams), interleavesizes, streamcount).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8382,7 +8382,7 @@ windows_core::imp::interface_hierarchy!(IStreamPseudoRandomBased, windows_core:: #[cfg(feature = "Win32_System_Com")] impl IStreamPseudoRandomBased { pub unsafe fn SetSeed(&self, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSeed)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSeed)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Seed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8468,7 +8468,7 @@ impl IWriteEngine2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSection)(windows_core::Interface::as_raw(self), data.param().abi(), core::mem::transmute(startingblockaddress), core::mem::transmute(numberofblocks)).ok() + (windows_core::Interface::vtable(self).WriteSection)(windows_core::Interface::as_raw(self), data.param().abi(), startingblockaddress, numberofblocks).ok() } pub unsafe fn CancelWrite(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelWrite)(windows_core::Interface::as_raw(self)).ok() @@ -8484,28 +8484,28 @@ impl IWriteEngine2 { (windows_core::Interface::vtable(self).Recorder)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetUseStreamingWrite12(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseStreamingWrite12)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetUseStreamingWrite12)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn UseStreamingWrite12(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UseStreamingWrite12)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartingSectorsPerSecond(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartingSectorsPerSecond)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStartingSectorsPerSecond)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn StartingSectorsPerSecond(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartingSectorsPerSecond)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEndingSectorsPerSecond(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEndingSectorsPerSecond)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEndingSectorsPerSecond)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn EndingSectorsPerSecond(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EndingSectorsPerSecond)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBytesPerSector(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBytesPerSector)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBytesPerSector)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn BytesPerSector(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs index 1af58c951d..bea15a79ce 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs @@ -33,7 +33,7 @@ where P0: windows_core::Param, { windows_targets::link!("query.dll" "system" fn LoadIFilterEx(pwcspath : windows_core::PCWSTR, dwflags : u32, riid : *const windows_core::GUID, ppiunk : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - LoadIFilterEx(pwcspath.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(riid), core::mem::transmute(ppiunk)).ok() + LoadIFilterEx(pwcspath.param().abi(), dwflags, riid, core::mem::transmute(ppiunk)).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -297,7 +297,7 @@ windows_core::imp::interface_hierarchy!(IFilter, windows_core::IUnknown); impl IFilter { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Init(&self, grfflags: u32, aattributes: &[FULLPROPSPEC], pflags: *mut u32) -> i32 { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(grfflags), aattributes.len().try_into().unwrap(), core::mem::transmute(aattributes.as_ptr()), core::mem::transmute(pflags)) + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), grfflags, aattributes.len().try_into().unwrap(), core::mem::transmute(aattributes.as_ptr()), core::mem::transmute(pflags)) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn GetChunk(&self, pstat: *mut STAT_CHUNK) -> i32 { @@ -311,7 +311,7 @@ impl IFilter { (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pppropvalue)) } pub unsafe fn BindRegion(&self, origpos: FILTERREGION, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> i32 { - (windows_core::Interface::vtable(self).BindRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(origpos), core::mem::transmute(riid), core::mem::transmute(ppunk)) + (windows_core::Interface::vtable(self).BindRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(origpos), riid, core::mem::transmute(ppunk)) } } #[repr(C)] @@ -386,13 +386,13 @@ impl IPhraseSink { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutSmallPhrase)(windows_core::Interface::as_raw(self), pwcnoun.param().abi(), core::mem::transmute(cwcnoun), pwcmodifier.param().abi(), core::mem::transmute(cwcmodifier), core::mem::transmute(ulattachmenttype)).ok() + (windows_core::Interface::vtable(self).PutSmallPhrase)(windows_core::Interface::as_raw(self), pwcnoun.param().abi(), cwcnoun, pwcmodifier.param().abi(), cwcmodifier, ulattachmenttype).ok() } pub unsafe fn PutPhrase(&self, pwcphrase: P0, cwcphrase: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutPhrase)(windows_core::Interface::as_raw(self), pwcphrase.param().abi(), core::mem::transmute(cwcphrase)).ok() + (windows_core::Interface::vtable(self).PutPhrase)(windows_core::Interface::as_raw(self), pwcphrase.param().abi(), cwcphrase).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs index 894a2c5ce5..d8c0a3da26 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs @@ -22,7 +22,7 @@ where #[inline] pub unsafe fn FilterClose(hfilter: HFILTER) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterClose(hfilter : HFILTER) -> windows_core::HRESULT); - FilterClose(core::mem::transmute(hfilter)).ok() + FilterClose(hfilter).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -32,7 +32,7 @@ where { windows_targets::link!("fltlib.dll" "system" fn FilterConnectCommunicationPort(lpportname : windows_core::PCWSTR, dwoptions : u32, lpcontext : *const core::ffi::c_void, wsizeofcontext : u16, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, hport : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - FilterConnectCommunicationPort(lpportname.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(wsizeofcontext), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + FilterConnectCommunicationPort(lpportname.param().abi(), dwoptions, core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed())), wsizeofcontext, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn FilterCreate(lpfiltername: P0) -> windows_core::Result @@ -56,17 +56,17 @@ where #[inline] pub unsafe fn FilterFindClose(hfilterfind: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterFindClose(hfilterfind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterFindClose(core::mem::transmute(hfilterfind)).ok() + FilterFindClose(hfilterfind).ok() } #[inline] pub unsafe fn FilterFindFirst(dwinformationclass: FILTER_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32, lpfilterfind: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterFindFirst(dwinformationclass : FILTER_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32, lpfilterfind : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterFindFirst(core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned), core::mem::transmute(lpfilterfind)).ok() + FilterFindFirst(dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned), core::mem::transmute(lpfilterfind)).ok() } #[inline] pub unsafe fn FilterFindNext(hfilterfind: super::super::Foundation::HANDLE, dwinformationclass: FILTER_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterFindNext(hfilterfind : super::super::Foundation:: HANDLE, dwinformationclass : FILTER_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterFindNext(core::mem::transmute(hfilterfind), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterFindNext(hfilterfind, dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[inline] pub unsafe fn FilterGetDosName(lpvolumename: P0, lpdosname: &mut [u16]) -> windows_core::Result<()> @@ -79,18 +79,18 @@ where #[inline] pub unsafe fn FilterGetInformation(hfilter: HFILTER, dwinformationclass: FILTER_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterGetInformation(hfilter : HFILTER, dwinformationclass : FILTER_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterGetInformation(core::mem::transmute(hfilter), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterGetInformation(hfilter, dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FilterGetMessage(hport: super::super::Foundation::HANDLE, lpmessagebuffer: *mut FILTER_MESSAGE_HEADER, dwmessagebuffersize: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterGetMessage(hport : super::super::Foundation:: HANDLE, lpmessagebuffer : *mut FILTER_MESSAGE_HEADER, dwmessagebuffersize : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::HRESULT); - FilterGetMessage(core::mem::transmute(hport), core::mem::transmute(lpmessagebuffer), core::mem::transmute(dwmessagebuffersize), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + FilterGetMessage(hport, core::mem::transmute(lpmessagebuffer), dwmessagebuffersize, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FilterInstanceClose(hinstance: HFILTER_INSTANCE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceClose(hinstance : HFILTER_INSTANCE) -> windows_core::HRESULT); - FilterInstanceClose(core::mem::transmute(hinstance)).ok() + FilterInstanceClose(hinstance).ok() } #[inline] pub unsafe fn FilterInstanceCreate(lpfiltername: P0, lpvolumename: P1, lpinstancename: P2) -> windows_core::Result @@ -106,7 +106,7 @@ where #[inline] pub unsafe fn FilterInstanceFindClose(hfilterinstancefind: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceFindClose(hfilterinstancefind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterInstanceFindClose(core::mem::transmute(hfilterinstancefind)).ok() + FilterInstanceFindClose(hfilterinstancefind).ok() } #[inline] pub unsafe fn FilterInstanceFindFirst(lpfiltername: P0, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32, lpfilterinstancefind: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -114,17 +114,17 @@ where P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceFindFirst(lpfiltername : windows_core::PCWSTR, dwinformationclass : INSTANCE_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32, lpfilterinstancefind : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterInstanceFindFirst(lpfiltername.param().abi(), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned), core::mem::transmute(lpfilterinstancefind)).ok() + FilterInstanceFindFirst(lpfiltername.param().abi(), dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned), core::mem::transmute(lpfilterinstancefind)).ok() } #[inline] pub unsafe fn FilterInstanceFindNext(hfilterinstancefind: super::super::Foundation::HANDLE, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceFindNext(hfilterinstancefind : super::super::Foundation:: HANDLE, dwinformationclass : INSTANCE_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterInstanceFindNext(core::mem::transmute(hfilterinstancefind), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterInstanceFindNext(hfilterinstancefind, dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[inline] pub unsafe fn FilterInstanceGetInformation(hinstance: HFILTER_INSTANCE, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceGetInformation(hinstance : HFILTER_INSTANCE, dwinformationclass : INSTANCE_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterInstanceGetInformation(core::mem::transmute(hinstance), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterInstanceGetInformation(hinstance, dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[inline] pub unsafe fn FilterLoad(lpfiltername: P0) -> windows_core::Result<()> @@ -137,12 +137,12 @@ where #[inline] pub unsafe fn FilterReplyMessage(hport: super::super::Foundation::HANDLE, lpreplybuffer: *const FILTER_REPLY_HEADER, dwreplybuffersize: u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterReplyMessage(hport : super::super::Foundation:: HANDLE, lpreplybuffer : *const FILTER_REPLY_HEADER, dwreplybuffersize : u32) -> windows_core::HRESULT); - FilterReplyMessage(core::mem::transmute(hport), core::mem::transmute(lpreplybuffer), core::mem::transmute(dwreplybuffersize)).ok() + FilterReplyMessage(hport, lpreplybuffer, dwreplybuffersize).ok() } #[inline] pub unsafe fn FilterSendMessage(hport: super::super::Foundation::HANDLE, lpinbuffer: *const core::ffi::c_void, dwinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, dwoutbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterSendMessage(hport : super::super::Foundation:: HANDLE, lpinbuffer : *const core::ffi::c_void, dwinbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, dwoutbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterSendMessage(core::mem::transmute(hport), core::mem::transmute(lpinbuffer), core::mem::transmute(dwinbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwoutbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterSendMessage(hport, lpinbuffer, dwinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), dwoutbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[inline] pub unsafe fn FilterUnload(lpfiltername: P0) -> windows_core::Result<()> @@ -155,22 +155,22 @@ where #[inline] pub unsafe fn FilterVolumeFindClose(hvolumefind: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeFindClose(hvolumefind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterVolumeFindClose(core::mem::transmute(hvolumefind)).ok() + FilterVolumeFindClose(hvolumefind).ok() } #[inline] pub unsafe fn FilterVolumeFindFirst(dwinformationclass: FILTER_VOLUME_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32, lpvolumefind: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeFindFirst(dwinformationclass : FILTER_VOLUME_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32, lpvolumefind : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterVolumeFindFirst(core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned), core::mem::transmute(lpvolumefind)).ok() + FilterVolumeFindFirst(dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned), core::mem::transmute(lpvolumefind)).ok() } #[inline] pub unsafe fn FilterVolumeFindNext(hvolumefind: super::super::Foundation::HANDLE, dwinformationclass: FILTER_VOLUME_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeFindNext(hvolumefind : super::super::Foundation:: HANDLE, dwinformationclass : FILTER_VOLUME_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterVolumeFindNext(core::mem::transmute(hvolumefind), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterVolumeFindNext(hvolumefind, dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[inline] pub unsafe fn FilterVolumeInstanceFindClose(hvolumeinstancefind: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeInstanceFindClose(hvolumeinstancefind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterVolumeInstanceFindClose(core::mem::transmute(hvolumeinstancefind)).ok() + FilterVolumeInstanceFindClose(hvolumeinstancefind).ok() } #[inline] pub unsafe fn FilterVolumeInstanceFindFirst(lpvolumename: P0, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32, lpvolumeinstancefind: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -178,12 +178,12 @@ where P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeInstanceFindFirst(lpvolumename : windows_core::PCWSTR, dwinformationclass : INSTANCE_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32, lpvolumeinstancefind : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterVolumeInstanceFindFirst(lpvolumename.param().abi(), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned), core::mem::transmute(lpvolumeinstancefind)).ok() + FilterVolumeInstanceFindFirst(lpvolumename.param().abi(), dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned), core::mem::transmute(lpvolumeinstancefind)).ok() } #[inline] pub unsafe fn FilterVolumeInstanceFindNext(hvolumeinstancefind: super::super::Foundation::HANDLE, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeInstanceFindNext(hvolumeinstancefind : super::super::Foundation:: HANDLE, dwinformationclass : INSTANCE_INFORMATION_CLASS, lpbuffer : *mut core::ffi::c_void, dwbuffersize : u32, lpbytesreturned : *mut u32) -> windows_core::HRESULT); - FilterVolumeInstanceFindNext(core::mem::transmute(hvolumeinstancefind), core::mem::transmute(dwinformationclass), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(lpbytesreturned)).ok() + FilterVolumeInstanceFindNext(hvolumeinstancefind, dwinformationclass, core::mem::transmute(lpbuffer), dwbuffersize, core::mem::transmute(lpbytesreturned)).ok() } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs index 105d2d070c..d01efdc8f3 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs @@ -17,12 +17,12 @@ where #[inline] pub unsafe fn AddIScsiConnectionA(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, reserved: *mut core::ffi::c_void, initiatorportnumber: u32, targetportal: *mut ISCSI_TARGET_PORTALA, securityflags: u64, loginoptions: *mut ISCSI_LOGIN_OPTIONS, key: Option<&[u8]>, connectionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiConnectionA(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, reserved : *mut core::ffi::c_void, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, connectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); - AddIScsiConnectionA(core::mem::transmute(uniquesessionid), core::mem::transmute(reserved), core::mem::transmute(initiatorportnumber), core::mem::transmute(targetportal), core::mem::transmute(securityflags), core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(connectionid)) + AddIScsiConnectionA(core::mem::transmute(uniquesessionid), core::mem::transmute(reserved), initiatorportnumber, core::mem::transmute(targetportal), securityflags, core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(connectionid)) } #[inline] pub unsafe fn AddIScsiConnectionW(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, reserved: *mut core::ffi::c_void, initiatorportnumber: u32, targetportal: *mut ISCSI_TARGET_PORTALW, securityflags: u64, loginoptions: *mut ISCSI_LOGIN_OPTIONS, key: Option<&[u8]>, connectionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiConnectionW(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, reserved : *mut core::ffi::c_void, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, connectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); - AddIScsiConnectionW(core::mem::transmute(uniquesessionid), core::mem::transmute(reserved), core::mem::transmute(initiatorportnumber), core::mem::transmute(targetportal), core::mem::transmute(securityflags), core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(connectionid)) + AddIScsiConnectionW(core::mem::transmute(uniquesessionid), core::mem::transmute(reserved), initiatorportnumber, core::mem::transmute(targetportal), securityflags, core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(connectionid)) } #[inline] pub unsafe fn AddIScsiSendTargetPortalA(initiatorinstance: P0, initiatorportnumber: u32, loginoptions: *mut ISCSI_LOGIN_OPTIONS, securityflags: u64, portal: *mut ISCSI_TARGET_PORTALA) -> u32 @@ -30,7 +30,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiSendTargetPortalA(initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, loginoptions : *mut ISCSI_LOGIN_OPTIONS, securityflags : u64, portal : *mut ISCSI_TARGET_PORTALA) -> u32); - AddIScsiSendTargetPortalA(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(loginoptions), core::mem::transmute(securityflags), core::mem::transmute(portal)) + AddIScsiSendTargetPortalA(initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(loginoptions), securityflags, core::mem::transmute(portal)) } #[inline] pub unsafe fn AddIScsiSendTargetPortalW(initiatorinstance: P0, initiatorportnumber: u32, loginoptions: *mut ISCSI_LOGIN_OPTIONS, securityflags: u64, portal: *mut ISCSI_TARGET_PORTALW) -> u32 @@ -38,7 +38,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiSendTargetPortalW(initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, loginoptions : *mut ISCSI_LOGIN_OPTIONS, securityflags : u64, portal : *mut ISCSI_TARGET_PORTALW) -> u32); - AddIScsiSendTargetPortalW(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(loginoptions), core::mem::transmute(securityflags), core::mem::transmute(portal)) + AddIScsiSendTargetPortalW(initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(loginoptions), securityflags, core::mem::transmute(portal)) } #[inline] pub unsafe fn AddIScsiStaticTargetA(targetname: P0, targetalias: P1, targetflags: u32, persist: bool, mappings: *mut ISCSI_TARGET_MAPPINGA, loginoptions: *mut ISCSI_LOGIN_OPTIONS, portalgroup: *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32 @@ -47,7 +47,7 @@ where P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetA(targetname : windows_core::PCSTR, targetalias : windows_core::PCSTR, targetflags : u32, persist : bool, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32); - AddIScsiStaticTargetA(targetname.param().abi(), targetalias.param().abi(), core::mem::transmute(targetflags), core::mem::transmute(persist), core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) + AddIScsiStaticTargetA(targetname.param().abi(), targetalias.param().abi(), targetflags, persist, core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) } #[inline] pub unsafe fn AddIScsiStaticTargetW(targetname: P0, targetalias: P1, targetflags: u32, persist: bool, mappings: *mut ISCSI_TARGET_MAPPINGW, loginoptions: *mut ISCSI_LOGIN_OPTIONS, portalgroup: *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32 @@ -56,7 +56,7 @@ where P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetW(targetname : windows_core::PCWSTR, targetalias : windows_core::PCWSTR, targetflags : u32, persist : bool, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32); - AddIScsiStaticTargetW(targetname.param().abi(), targetalias.param().abi(), core::mem::transmute(targetflags), core::mem::transmute(persist), core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) + AddIScsiStaticTargetW(targetname.param().abi(), targetalias.param().abi(), targetflags, persist, core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) } #[inline] pub unsafe fn AddPersistentIScsiDeviceA(devicepath: P0) -> u32 @@ -113,7 +113,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiIKEInfoA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, reserved : *mut u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION) -> u32); - GetIScsiIKEInfoA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(reserved), core::mem::transmute(authinfo)) + GetIScsiIKEInfoA(initiatorname.param().abi(), initiatorportnumber, core::mem::transmute(reserved), core::mem::transmute(authinfo)) } #[inline] pub unsafe fn GetIScsiIKEInfoW(initiatorname: P0, initiatorportnumber: u32, reserved: *mut u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION) -> u32 @@ -121,7 +121,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiIKEInfoW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, reserved : *mut u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION) -> u32); - GetIScsiIKEInfoW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(reserved), core::mem::transmute(authinfo)) + GetIScsiIKEInfoW(initiatorname.param().abi(), initiatorportnumber, core::mem::transmute(reserved), core::mem::transmute(authinfo)) } #[inline] pub unsafe fn GetIScsiInitiatorNodeNameA(initiatornodename: windows_core::PSTR) -> u32 { @@ -155,7 +155,7 @@ where P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiTargetInformationA(targetname : windows_core::PCSTR, discoverymechanism : windows_core::PCSTR, infoclass : TARGET_INFORMATION_CLASS, buffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - GetIScsiTargetInformationA(targetname.param().abi(), discoverymechanism.param().abi(), core::mem::transmute(infoclass), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + GetIScsiTargetInformationA(targetname.param().abi(), discoverymechanism.param().abi(), infoclass, core::mem::transmute(buffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn GetIScsiTargetInformationW(targetname: P0, discoverymechanism: P1, infoclass: TARGET_INFORMATION_CLASS, buffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 @@ -164,7 +164,7 @@ where P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiTargetInformationW(targetname : windows_core::PCWSTR, discoverymechanism : windows_core::PCWSTR, infoclass : TARGET_INFORMATION_CLASS, buffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - GetIScsiTargetInformationW(targetname.param().abi(), discoverymechanism.param().abi(), core::mem::transmute(infoclass), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + GetIScsiTargetInformationW(targetname.param().abi(), discoverymechanism.param().abi(), infoclass, core::mem::transmute(buffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn GetIScsiVersionInformation(versioninfo: *mut ISCSI_VERSION_INFO) -> u32 { @@ -178,21 +178,7 @@ where P2: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetA(targetname : windows_core::PCSTR, isinformationalsession : bool, initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, ispersistent : bool, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); - LoginIScsiTargetA( - targetname.param().abi(), - core::mem::transmute(isinformationalsession), - initiatorinstance.param().abi(), - core::mem::transmute(initiatorportnumber), - core::mem::transmute(targetportal), - core::mem::transmute(securityflags), - core::mem::transmute(mappings), - core::mem::transmute(loginoptions), - key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(ispersistent), - core::mem::transmute(uniquesessionid), - core::mem::transmute(uniqueconnectionid), - ) + LoginIScsiTargetA(targetname.param().abi(), isinformationalsession, initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(targetportal), securityflags, core::mem::transmute(mappings), core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ispersistent, core::mem::transmute(uniquesessionid), core::mem::transmute(uniqueconnectionid)) } #[inline] pub unsafe fn LoginIScsiTargetW(targetname: P0, isinformationalsession: bool, initiatorinstance: P2, initiatorportnumber: u32, targetportal: *mut ISCSI_TARGET_PORTALW, securityflags: u64, mappings: *mut ISCSI_TARGET_MAPPINGW, loginoptions: *mut ISCSI_LOGIN_OPTIONS, key: Option<&[u8]>, ispersistent: bool, uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 @@ -201,21 +187,7 @@ where P2: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetW(targetname : windows_core::PCWSTR, isinformationalsession : bool, initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, ispersistent : bool, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); - LoginIScsiTargetW( - targetname.param().abi(), - core::mem::transmute(isinformationalsession), - initiatorinstance.param().abi(), - core::mem::transmute(initiatorportnumber), - core::mem::transmute(targetportal), - core::mem::transmute(securityflags), - core::mem::transmute(mappings), - core::mem::transmute(loginoptions), - key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(ispersistent), - core::mem::transmute(uniquesessionid), - core::mem::transmute(uniqueconnectionid), - ) + LoginIScsiTargetW(targetname.param().abi(), isinformationalsession, initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(targetportal), securityflags, core::mem::transmute(mappings), core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ispersistent, core::mem::transmute(uniquesessionid), core::mem::transmute(uniqueconnectionid)) } #[inline] pub unsafe fn LogoutIScsiTarget(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 { @@ -244,7 +216,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RefreshIScsiSendTargetPortalA(initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALA) -> u32); - RefreshIScsiSendTargetPortalA(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(portal)) + RefreshIScsiSendTargetPortalA(initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(portal)) } #[inline] pub unsafe fn RefreshIScsiSendTargetPortalW(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALW) -> u32 @@ -252,7 +224,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RefreshIScsiSendTargetPortalW(initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALW) -> u32); - RefreshIScsiSendTargetPortalW(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(portal)) + RefreshIScsiSendTargetPortalW(initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(portal)) } #[inline] pub unsafe fn RemoveISNSServerA(address: P0) -> u32 @@ -282,7 +254,7 @@ where P2: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiPersistentTargetA(initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, targetname : windows_core::PCSTR, portal : *mut ISCSI_TARGET_PORTALA) -> u32); - RemoveIScsiPersistentTargetA(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), targetname.param().abi(), core::mem::transmute(portal)) + RemoveIScsiPersistentTargetA(initiatorinstance.param().abi(), initiatorportnumber, targetname.param().abi(), core::mem::transmute(portal)) } #[inline] pub unsafe fn RemoveIScsiPersistentTargetW(initiatorinstance: P0, initiatorportnumber: u32, targetname: P2, portal: *mut ISCSI_TARGET_PORTALW) -> u32 @@ -291,7 +263,7 @@ where P2: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiPersistentTargetW(initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, targetname : windows_core::PCWSTR, portal : *mut ISCSI_TARGET_PORTALW) -> u32); - RemoveIScsiPersistentTargetW(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), targetname.param().abi(), core::mem::transmute(portal)) + RemoveIScsiPersistentTargetW(initiatorinstance.param().abi(), initiatorportnumber, targetname.param().abi(), core::mem::transmute(portal)) } #[inline] pub unsafe fn RemoveIScsiSendTargetPortalA(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALA) -> u32 @@ -299,7 +271,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiSendTargetPortalA(initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALA) -> u32); - RemoveIScsiSendTargetPortalA(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(portal)) + RemoveIScsiSendTargetPortalA(initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(portal)) } #[inline] pub unsafe fn RemoveIScsiSendTargetPortalW(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALW) -> u32 @@ -307,7 +279,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiSendTargetPortalW(initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALW) -> u32); - RemoveIScsiSendTargetPortalW(initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(portal)) + RemoveIScsiSendTargetPortalW(initiatorinstance.param().abi(), initiatorportnumber, core::mem::transmute(portal)) } #[inline] pub unsafe fn RemoveIScsiStaticTargetA(targetname: P0) -> u32 @@ -438,12 +410,12 @@ where #[inline] pub unsafe fn ReportIScsiTargetsA(forceupdate: bool, buffersize: *mut u32, buffer: Option) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsA(forceupdate : bool, buffersize : *mut u32, buffer : windows_core::PSTR) -> u32); - ReportIScsiTargetsA(core::mem::transmute(forceupdate), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + ReportIScsiTargetsA(forceupdate, core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReportIScsiTargetsW(forceupdate: bool, buffersize: *mut u32, buffer: Option) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsW(forceupdate : bool, buffersize : *mut u32, buffer : windows_core::PWSTR) -> u32); - ReportIScsiTargetsW(core::mem::transmute(forceupdate), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + ReportIScsiTargetsW(forceupdate, core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReportPersistentIScsiDevicesA(buffersizeinchar: *mut u32, buffer: Option) -> u32 { @@ -468,12 +440,12 @@ pub unsafe fn ReportRadiusServerListW(buffersizeinchar: *mut u32, buffer: Option #[inline] pub unsafe fn SendScsiInquiry(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, lun: u64, evpdcmddt: u8, pagecode: u8, scsistatus: *mut u8, responsesize: *mut u32, responsebuffer: *mut u8, sensesize: *mut u32, sensebuffer: *mut u8) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn SendScsiInquiry(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, lun : u64, evpdcmddt : u8, pagecode : u8, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32); - SendScsiInquiry(core::mem::transmute(uniquesessionid), core::mem::transmute(lun), core::mem::transmute(evpdcmddt), core::mem::transmute(pagecode), core::mem::transmute(scsistatus), core::mem::transmute(responsesize), core::mem::transmute(responsebuffer), core::mem::transmute(sensesize), core::mem::transmute(sensebuffer)) + SendScsiInquiry(core::mem::transmute(uniquesessionid), lun, evpdcmddt, pagecode, core::mem::transmute(scsistatus), core::mem::transmute(responsesize), core::mem::transmute(responsebuffer), core::mem::transmute(sensesize), core::mem::transmute(sensebuffer)) } #[inline] pub unsafe fn SendScsiReadCapacity(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, lun: u64, scsistatus: *mut u8, responsesize: *mut u32, responsebuffer: *mut u8, sensesize: *mut u32, sensebuffer: *mut u8) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn SendScsiReadCapacity(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, lun : u64, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32); - SendScsiReadCapacity(core::mem::transmute(uniquesessionid), core::mem::transmute(lun), core::mem::transmute(scsistatus), core::mem::transmute(responsesize), core::mem::transmute(responsebuffer), core::mem::transmute(sensesize), core::mem::transmute(sensebuffer)) + SendScsiReadCapacity(core::mem::transmute(uniquesessionid), lun, core::mem::transmute(scsistatus), core::mem::transmute(responsesize), core::mem::transmute(responsebuffer), core::mem::transmute(sensesize), core::mem::transmute(sensebuffer)) } #[inline] pub unsafe fn SendScsiReportLuns(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, scsistatus: *mut u8, responsesize: *mut u32, responsebuffer: *mut u8, sensesize: *mut u32, sensebuffer: *mut u8) -> u32 { @@ -483,7 +455,7 @@ pub unsafe fn SendScsiReportLuns(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, #[inline] pub unsafe fn SetIScsiGroupPresharedKey(keylength: u32, key: *mut u8, persist: bool) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : bool) -> u32); - SetIScsiGroupPresharedKey(core::mem::transmute(keylength), core::mem::transmute(key), core::mem::transmute(persist)) + SetIScsiGroupPresharedKey(keylength, core::mem::transmute(key), persist) } #[inline] pub unsafe fn SetIScsiIKEInfoA(initiatorname: P0, initiatorportnumber: u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION, persist: bool) -> u32 @@ -491,7 +463,7 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : bool) -> u32); - SetIScsiIKEInfoA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(authinfo), core::mem::transmute(persist)) + SetIScsiIKEInfoA(initiatorname.param().abi(), initiatorportnumber, core::mem::transmute(authinfo), persist) } #[inline] pub unsafe fn SetIScsiIKEInfoW(initiatorname: P0, initiatorportnumber: u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION, persist: bool) -> u32 @@ -499,12 +471,12 @@ where P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : bool) -> u32); - SetIScsiIKEInfoW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(authinfo), core::mem::transmute(persist)) + SetIScsiIKEInfoW(initiatorname.param().abi(), initiatorportnumber, core::mem::transmute(authinfo), persist) } #[inline] pub unsafe fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength: u32, sharedsecret: *mut u8) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength : u32, sharedsecret : *mut u8) -> u32); - SetIScsiInitiatorCHAPSharedSecret(core::mem::transmute(sharedsecretlength), core::mem::transmute(sharedsecret)) + SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength, core::mem::transmute(sharedsecret)) } #[inline] pub unsafe fn SetIScsiInitiatorNodeNameA(initiatornodename: P0) -> u32 @@ -525,7 +497,7 @@ where #[inline] pub unsafe fn SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength: u32, sharedsecret: *mut u8) -> u32 { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength : u32, sharedsecret : *mut u8) -> u32); - SetIScsiInitiatorRADIUSSharedSecret(core::mem::transmute(sharedsecretlength), core::mem::transmute(sharedsecret)) + SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength, core::mem::transmute(sharedsecret)) } #[inline] pub unsafe fn SetIScsiTunnelModeOuterAddressA(initiatorname: P0, initiatorportnumber: u32, destinationaddress: P2, outermodeaddress: P3, persist: bool) -> u32 @@ -535,7 +507,7 @@ where P3: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, destinationaddress : windows_core::PCSTR, outermodeaddress : windows_core::PCSTR, persist : bool) -> u32); - SetIScsiTunnelModeOuterAddressA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), destinationaddress.param().abi(), outermodeaddress.param().abi(), core::mem::transmute(persist)) + SetIScsiTunnelModeOuterAddressA(initiatorname.param().abi(), initiatorportnumber, destinationaddress.param().abi(), outermodeaddress.param().abi(), persist) } #[inline] pub unsafe fn SetIScsiTunnelModeOuterAddressW(initiatorname: P0, initiatorportnumber: u32, destinationaddress: P2, outermodeaddress: P3, persist: bool) -> u32 @@ -545,7 +517,7 @@ where P3: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, destinationaddress : windows_core::PCWSTR, outermodeaddress : windows_core::PCWSTR, persist : bool) -> u32); - SetIScsiTunnelModeOuterAddressW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), destinationaddress.param().abi(), outermodeaddress.param().abi(), core::mem::transmute(persist)) + SetIScsiTunnelModeOuterAddressW(initiatorname.param().abi(), initiatorportnumber, destinationaddress.param().abi(), outermodeaddress.param().abi(), persist) } #[inline] pub unsafe fn SetupPersistentIScsiDevices() -> u32 { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs index ae6f643fef..4d23e23b39 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs @@ -2,204 +2,204 @@ #[inline] pub unsafe fn JetAddColumnA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: *const i8, pcolumndef: *const JET_COLUMNDEF, pvdefault: Option<*const core::ffi::c_void>, cbdefault: u32, pcolumnid: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetAddColumnA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8, pcolumndef : *const JET_COLUMNDEF, pvdefault : *const core::ffi::c_void, cbdefault : u32, pcolumnid : *mut u32) -> i32); - JetAddColumnA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname), core::mem::transmute(pcolumndef), core::mem::transmute(pvdefault.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdefault), core::mem::transmute(pcolumnid.unwrap_or(core::mem::zeroed()))) + JetAddColumnA(sesid, tableid, szcolumnname, pcolumndef, core::mem::transmute(pvdefault.unwrap_or(core::mem::zeroed())), cbdefault, core::mem::transmute(pcolumnid.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetAddColumnW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: *const u16, pcolumndef: *const JET_COLUMNDEF, pvdefault: Option<*const core::ffi::c_void>, cbdefault: u32, pcolumnid: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetAddColumnW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16, pcolumndef : *const JET_COLUMNDEF, pvdefault : *const core::ffi::c_void, cbdefault : u32, pcolumnid : *mut u32) -> i32); - JetAddColumnW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname), core::mem::transmute(pcolumndef), core::mem::transmute(pvdefault.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdefault), core::mem::transmute(pcolumnid.unwrap_or(core::mem::zeroed()))) + JetAddColumnW(sesid, tableid, szcolumnname, pcolumndef, core::mem::transmute(pvdefault.unwrap_or(core::mem::zeroed())), cbdefault, core::mem::transmute(pcolumnid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetAttachDatabase2A(sesid: JET_SESID, szfilename: *const i8, cpgdatabasesizemax: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetAttachDatabase2A(sesid : JET_SESID, szfilename : *const i8, cpgdatabasesizemax : u32, grbit : u32) -> i32); - JetAttachDatabase2A(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(cpgdatabasesizemax), core::mem::transmute(grbit)) + JetAttachDatabase2A(sesid, szfilename, cpgdatabasesizemax, grbit) } #[inline] pub unsafe fn JetAttachDatabase2W(sesid: JET_SESID, szfilename: *const u16, cpgdatabasesizemax: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetAttachDatabase2W(sesid : JET_SESID, szfilename : *const u16, cpgdatabasesizemax : u32, grbit : u32) -> i32); - JetAttachDatabase2W(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(cpgdatabasesizemax), core::mem::transmute(grbit)) + JetAttachDatabase2W(sesid, szfilename, cpgdatabasesizemax, grbit) } #[inline] pub unsafe fn JetAttachDatabaseA(sesid: JET_SESID, szfilename: *const i8, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetAttachDatabaseA(sesid : JET_SESID, szfilename : *const i8, grbit : u32) -> i32); - JetAttachDatabaseA(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(grbit)) + JetAttachDatabaseA(sesid, szfilename, grbit) } #[inline] pub unsafe fn JetAttachDatabaseW(sesid: JET_SESID, szfilename: *const u16, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetAttachDatabaseW(sesid : JET_SESID, szfilename : *const u16, grbit : u32) -> i32); - JetAttachDatabaseW(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(grbit)) + JetAttachDatabaseW(sesid, szfilename, grbit) } #[inline] pub unsafe fn JetBackupA(szbackuppath: *const i8, grbit: u32, pfnstatus: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBackupA(szbackuppath : *const i8, grbit : u32, pfnstatus : JET_PFNSTATUS) -> i32); - JetBackupA(core::mem::transmute(szbackuppath), core::mem::transmute(grbit), core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) + JetBackupA(szbackuppath, grbit, core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetBackupInstanceA(instance: JET_INSTANCE, szbackuppath: *const i8, grbit: u32, pfnstatus: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBackupInstanceA(instance : JET_INSTANCE, szbackuppath : *const i8, grbit : u32, pfnstatus : JET_PFNSTATUS) -> i32); - JetBackupInstanceA(core::mem::transmute(instance), core::mem::transmute(szbackuppath), core::mem::transmute(grbit), core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) + JetBackupInstanceA(instance, szbackuppath, grbit, core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetBackupInstanceW(instance: JET_INSTANCE, szbackuppath: *const u16, grbit: u32, pfnstatus: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBackupInstanceW(instance : JET_INSTANCE, szbackuppath : *const u16, grbit : u32, pfnstatus : JET_PFNSTATUS) -> i32); - JetBackupInstanceW(core::mem::transmute(instance), core::mem::transmute(szbackuppath), core::mem::transmute(grbit), core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) + JetBackupInstanceW(instance, szbackuppath, grbit, core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetBackupW(szbackuppath: *const u16, grbit: u32, pfnstatus: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBackupW(szbackuppath : *const u16, grbit : u32, pfnstatus : JET_PFNSTATUS) -> i32); - JetBackupW(core::mem::transmute(szbackuppath), core::mem::transmute(grbit), core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) + JetBackupW(szbackuppath, grbit, core::mem::transmute(pfnstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetBeginExternalBackup(grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginExternalBackup(grbit : u32) -> i32); - JetBeginExternalBackup(core::mem::transmute(grbit)) + JetBeginExternalBackup(grbit) } #[inline] pub unsafe fn JetBeginExternalBackupInstance(instance: JET_INSTANCE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginExternalBackupInstance(instance : JET_INSTANCE, grbit : u32) -> i32); - JetBeginExternalBackupInstance(core::mem::transmute(instance), core::mem::transmute(grbit)) + JetBeginExternalBackupInstance(instance, grbit) } #[inline] pub unsafe fn JetBeginSessionA(instance: JET_INSTANCE, psesid: *mut JET_SESID, szusername: Option<*const i8>, szpassword: Option<*const i8>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginSessionA(instance : JET_INSTANCE, psesid : *mut JET_SESID, szusername : *const i8, szpassword : *const i8) -> i32); - JetBeginSessionA(core::mem::transmute(instance), core::mem::transmute(psesid), core::mem::transmute(szusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szpassword.unwrap_or(core::mem::zeroed()))) + JetBeginSessionA(instance, core::mem::transmute(psesid), core::mem::transmute(szusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szpassword.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetBeginSessionW(instance: JET_INSTANCE, psesid: *mut JET_SESID, szusername: Option<*const u16>, szpassword: Option<*const u16>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginSessionW(instance : JET_INSTANCE, psesid : *mut JET_SESID, szusername : *const u16, szpassword : *const u16) -> i32); - JetBeginSessionW(core::mem::transmute(instance), core::mem::transmute(psesid), core::mem::transmute(szusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szpassword.unwrap_or(core::mem::zeroed()))) + JetBeginSessionW(instance, core::mem::transmute(psesid), core::mem::transmute(szusername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szpassword.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetBeginTransaction(sesid: JET_SESID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginTransaction(sesid : JET_SESID) -> i32); - JetBeginTransaction(core::mem::transmute(sesid)) + JetBeginTransaction(sesid) } #[inline] pub unsafe fn JetBeginTransaction2(sesid: JET_SESID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginTransaction2(sesid : JET_SESID, grbit : u32) -> i32); - JetBeginTransaction2(core::mem::transmute(sesid), core::mem::transmute(grbit)) + JetBeginTransaction2(sesid, grbit) } #[inline] pub unsafe fn JetBeginTransaction3(sesid: JET_SESID, trxid: i64, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetBeginTransaction3(sesid : JET_SESID, trxid : i64, grbit : u32) -> i32); - JetBeginTransaction3(core::mem::transmute(sesid), core::mem::transmute(trxid), core::mem::transmute(grbit)) + JetBeginTransaction3(sesid, trxid, grbit) } #[inline] pub unsafe fn JetCloseDatabase(sesid: JET_SESID, dbid: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCloseDatabase(sesid : JET_SESID, dbid : u32, grbit : u32) -> i32); - JetCloseDatabase(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(grbit)) + JetCloseDatabase(sesid, dbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseFile(hffile: super::StructuredStorage::JET_HANDLE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCloseFile(hffile : super::StructuredStorage:: JET_HANDLE) -> i32); - JetCloseFile(core::mem::transmute(hffile)) + JetCloseFile(hffile) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseFileInstance(instance: JET_INSTANCE, hffile: super::StructuredStorage::JET_HANDLE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCloseFileInstance(instance : JET_INSTANCE, hffile : super::StructuredStorage:: JET_HANDLE) -> i32); - JetCloseFileInstance(core::mem::transmute(instance), core::mem::transmute(hffile)) + JetCloseFileInstance(instance, hffile) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseTable(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCloseTable(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID) -> i32); - JetCloseTable(core::mem::transmute(sesid), core::mem::transmute(tableid)) + JetCloseTable(sesid, tableid) } #[inline] pub unsafe fn JetCommitTransaction(sesid: JET_SESID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCommitTransaction(sesid : JET_SESID, grbit : u32) -> i32); - JetCommitTransaction(core::mem::transmute(sesid), core::mem::transmute(grbit)) + JetCommitTransaction(sesid, grbit) } #[inline] pub unsafe fn JetCommitTransaction2(sesid: JET_SESID, grbit: u32, cmsecdurablecommit: u32, pcommitid: Option<*mut JET_COMMIT_ID>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCommitTransaction2(sesid : JET_SESID, grbit : u32, cmsecdurablecommit : u32, pcommitid : *mut JET_COMMIT_ID) -> i32); - JetCommitTransaction2(core::mem::transmute(sesid), core::mem::transmute(grbit), core::mem::transmute(cmsecdurablecommit), core::mem::transmute(pcommitid.unwrap_or(core::mem::zeroed()))) + JetCommitTransaction2(sesid, grbit, cmsecdurablecommit, core::mem::transmute(pcommitid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetCompactA(sesid: JET_SESID, szdatabasesrc: *const i8, szdatabasedest: *const i8, pfnstatus: JET_PFNSTATUS, pconvert: Option<*const JET_CONVERT_A>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCompactA(sesid : JET_SESID, szdatabasesrc : *const i8, szdatabasedest : *const i8, pfnstatus : JET_PFNSTATUS, pconvert : *const JET_CONVERT_A, grbit : u32) -> i32); - JetCompactA(core::mem::transmute(sesid), core::mem::transmute(szdatabasesrc), core::mem::transmute(szdatabasedest), core::mem::transmute(pfnstatus), core::mem::transmute(pconvert.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetCompactA(sesid, szdatabasesrc, szdatabasedest, pfnstatus, core::mem::transmute(pconvert.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetCompactW(sesid: JET_SESID, szdatabasesrc: *const u16, szdatabasedest: *const u16, pfnstatus: JET_PFNSTATUS, pconvert: Option<*const JET_CONVERT_W>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCompactW(sesid : JET_SESID, szdatabasesrc : *const u16, szdatabasedest : *const u16, pfnstatus : JET_PFNSTATUS, pconvert : *const JET_CONVERT_W, grbit : u32) -> i32); - JetCompactW(core::mem::transmute(sesid), core::mem::transmute(szdatabasesrc), core::mem::transmute(szdatabasedest), core::mem::transmute(pfnstatus), core::mem::transmute(pconvert.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetCompactW(sesid, szdatabasesrc, szdatabasedest, pfnstatus, core::mem::transmute(pconvert.unwrap_or(core::mem::zeroed())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetComputeStats(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetComputeStats(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID) -> i32); - JetComputeStats(core::mem::transmute(sesid), core::mem::transmute(tableid)) + JetComputeStats(sesid, tableid) } #[inline] pub unsafe fn JetConfigureProcessForCrashDump(grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetConfigureProcessForCrashDump(grbit : u32) -> i32); - JetConfigureProcessForCrashDump(core::mem::transmute(grbit)) + JetConfigureProcessForCrashDump(grbit) } #[inline] pub unsafe fn JetCreateDatabase2A(sesid: JET_SESID, szfilename: *const i8, cpgdatabasesizemax: u32, pdbid: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateDatabase2A(sesid : JET_SESID, szfilename : *const i8, cpgdatabasesizemax : u32, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabase2A(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(cpgdatabasesizemax), core::mem::transmute(pdbid), core::mem::transmute(grbit)) + JetCreateDatabase2A(sesid, szfilename, cpgdatabasesizemax, core::mem::transmute(pdbid), grbit) } #[inline] pub unsafe fn JetCreateDatabase2W(sesid: JET_SESID, szfilename: *const u16, cpgdatabasesizemax: u32, pdbid: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateDatabase2W(sesid : JET_SESID, szfilename : *const u16, cpgdatabasesizemax : u32, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabase2W(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(cpgdatabasesizemax), core::mem::transmute(pdbid), core::mem::transmute(grbit)) + JetCreateDatabase2W(sesid, szfilename, cpgdatabasesizemax, core::mem::transmute(pdbid), grbit) } #[inline] pub unsafe fn JetCreateDatabaseA(sesid: JET_SESID, szfilename: *const i8, szconnect: Option<*const i8>, pdbid: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateDatabaseA(sesid : JET_SESID, szfilename : *const i8, szconnect : *const i8, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabaseA(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), core::mem::transmute(grbit)) + JetCreateDatabaseA(sesid, szfilename, core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), grbit) } #[inline] pub unsafe fn JetCreateDatabaseW(sesid: JET_SESID, szfilename: *const u16, szconnect: Option<*const u16>, pdbid: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateDatabaseW(sesid : JET_SESID, szfilename : *const u16, szconnect : *const u16, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabaseW(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), core::mem::transmute(grbit)) + JetCreateDatabaseW(sesid, szfilename, core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex2A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pindexcreate: &[JET_INDEXCREATE_A]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndex2A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE_A, cindexcreate : u32) -> i32); - JetCreateIndex2A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex2A(sesid, tableid, core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex2W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pindexcreate: &[JET_INDEXCREATE_W]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndex2W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE_W, cindexcreate : u32) -> i32); - JetCreateIndex2W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex2W(sesid, tableid, core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex3A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pindexcreate: &[JET_INDEXCREATE2_A]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndex3A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE2_A, cindexcreate : u32) -> i32); - JetCreateIndex3A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex3A(sesid, tableid, core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex3W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pindexcreate: &[JET_INDEXCREATE2_W]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndex3W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE2_W, cindexcreate : u32) -> i32); - JetCreateIndex3W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex3W(sesid, tableid, core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex4A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pindexcreate: &[JET_INDEXCREATE3_A]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndex4A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE3_A, cindexcreate : u32) -> i32); - JetCreateIndex4A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex4A(sesid, tableid, core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex4W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pindexcreate: &[JET_INDEXCREATE3_W]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndex4W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE3_W, cindexcreate : u32) -> i32); - JetCreateIndex4W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex4W(sesid, tableid, core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndexA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: *const i8, grbit: u32, szkey: &[u8], ldensity: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateIndexA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, grbit : u32, szkey : windows_core::PCSTR, cbkey : u32, ldensity : u32) -> i32); - JetCreateIndexA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname), core::mem::transmute(grbit), core::mem::transmute(szkey.as_ptr()), szkey.len().try_into().unwrap(), core::mem::transmute(ldensity)) + JetCreateIndexA(sesid, tableid, szindexname, grbit, core::mem::transmute(szkey.as_ptr()), szkey.len().try_into().unwrap(), ldensity) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -208,17 +208,17 @@ where P4: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndexW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, grbit : u32, szkey : windows_core::PCWSTR, cbkey : u32, ldensity : u32) -> i32); - JetCreateIndexW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname), core::mem::transmute(grbit), szkey.param().abi(), core::mem::transmute(cbkey), core::mem::transmute(ldensity)) + JetCreateIndexW(sesid, tableid, szindexname, grbit, szkey.param().abi(), cbkey, ldensity) } #[inline] pub unsafe fn JetCreateInstance2A(pinstance: *mut JET_INSTANCE, szinstancename: Option<*const i8>, szdisplayname: Option<*const i8>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateInstance2A(pinstance : *mut JET_INSTANCE, szinstancename : *const i8, szdisplayname : *const i8, grbit : u32) -> i32); - JetCreateInstance2A(core::mem::transmute(pinstance), core::mem::transmute(szinstancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(szdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetCreateInstance2A(core::mem::transmute(pinstance), core::mem::transmute(szinstancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(szdisplayname.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetCreateInstance2W(pinstance: *mut JET_INSTANCE, szinstancename: Option<*const u16>, szdisplayname: Option<*const u16>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateInstance2W(pinstance : *mut JET_INSTANCE, szinstancename : *const u16, szdisplayname : *const u16, grbit : u32) -> i32); - JetCreateInstance2W(core::mem::transmute(pinstance), core::mem::transmute(szinstancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(szdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetCreateInstance2W(core::mem::transmute(pinstance), core::mem::transmute(szinstancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(szdisplayname.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetCreateInstanceA(pinstance: *mut JET_INSTANCE, szinstancename: Option<*const i8>) -> i32 { @@ -234,178 +234,178 @@ pub unsafe fn JetCreateInstanceW(pinstance: *mut JET_INSTANCE, szinstancename: O #[inline] pub unsafe fn JetCreateTableA(sesid: JET_SESID, dbid: u32, sztablename: *const i8, lpages: u32, ldensity: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableA(sesid : JET_SESID, dbid : u32, sztablename : *const i8, lpages : u32, ldensity : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID) -> i32); - JetCreateTableA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(lpages), core::mem::transmute(ldensity), core::mem::transmute(ptableid)) + JetCreateTableA(sesid, dbid, sztablename, lpages, ldensity, core::mem::transmute(ptableid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex2A(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE2_A) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex2A(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE2_A) -> i32); - JetCreateTableColumnIndex2A(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndex2A(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex2W(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE2_W) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex2W(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE2_W) -> i32); - JetCreateTableColumnIndex2W(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndex2W(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex3A(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE3_A) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex3A(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE3_A) -> i32); - JetCreateTableColumnIndex3A(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndex3A(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex3W(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE3_W) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex3W(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE3_W) -> i32); - JetCreateTableColumnIndex3W(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndex3W(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex4A(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE4_A) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex4A(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE4_A) -> i32); - JetCreateTableColumnIndex4A(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndex4A(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex4W(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE4_W) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex4W(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE4_W) -> i32); - JetCreateTableColumnIndex4W(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndex4W(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndexA(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE_A) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndexA(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE_A) -> i32); - JetCreateTableColumnIndexA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndexA(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndexW(sesid: JET_SESID, dbid: u32, ptablecreate: *mut JET_TABLECREATE_W) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndexW(sesid : JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE_W) -> i32); - JetCreateTableColumnIndexW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(ptablecreate)) + JetCreateTableColumnIndexW(sesid, dbid, core::mem::transmute(ptablecreate)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableW(sesid: JET_SESID, dbid: u32, sztablename: *const u16, lpages: u32, ldensity: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetCreateTableW(sesid : JET_SESID, dbid : u32, sztablename : *const u16, lpages : u32, ldensity : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID) -> i32); - JetCreateTableW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(lpages), core::mem::transmute(ldensity), core::mem::transmute(ptableid)) + JetCreateTableW(sesid, dbid, sztablename, lpages, ldensity, core::mem::transmute(ptableid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment2A(sesid: JET_SESID, dbid: u32, sztablename: Option<*const i8>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, callback: JET_CALLBACK, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDefragment2A(sesid : JET_SESID, dbid : u32, sztablename : *const i8, pcpasses : *mut u32, pcseconds : *mut u32, callback : JET_CALLBACK, grbit : u32) -> i32); - JetDefragment2A(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(grbit)) + JetDefragment2A(sesid, dbid, core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), callback, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment2W(sesid: JET_SESID, dbid: u32, sztablename: Option<*const u16>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, callback: JET_CALLBACK, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDefragment2W(sesid : JET_SESID, dbid : u32, sztablename : *const u16, pcpasses : *mut u32, pcseconds : *mut u32, callback : JET_CALLBACK, grbit : u32) -> i32); - JetDefragment2W(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(grbit)) + JetDefragment2W(sesid, dbid, core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), callback, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment3A(sesid: JET_SESID, szdatabasename: *const i8, sztablename: Option<*const i8>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, callback: JET_CALLBACK, pvcontext: *const core::ffi::c_void, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDefragment3A(sesid : JET_SESID, szdatabasename : *const i8, sztablename : *const i8, pcpasses : *mut u32, pcseconds : *mut u32, callback : JET_CALLBACK, pvcontext : *const core::ffi::c_void, grbit : u32) -> i32); - JetDefragment3A(core::mem::transmute(sesid), core::mem::transmute(szdatabasename), core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(pvcontext), core::mem::transmute(grbit)) + JetDefragment3A(sesid, szdatabasename, core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), callback, pvcontext, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment3W(sesid: JET_SESID, szdatabasename: *const u16, sztablename: Option<*const u16>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, callback: JET_CALLBACK, pvcontext: *const core::ffi::c_void, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDefragment3W(sesid : JET_SESID, szdatabasename : *const u16, sztablename : *const u16, pcpasses : *mut u32, pcseconds : *mut u32, callback : JET_CALLBACK, pvcontext : *const core::ffi::c_void, grbit : u32) -> i32); - JetDefragment3W(core::mem::transmute(sesid), core::mem::transmute(szdatabasename), core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(pvcontext), core::mem::transmute(grbit)) + JetDefragment3W(sesid, szdatabasename, core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), callback, pvcontext, grbit) } #[inline] pub unsafe fn JetDefragmentA(sesid: JET_SESID, dbid: u32, sztablename: Option<*const i8>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDefragmentA(sesid : JET_SESID, dbid : u32, sztablename : *const i8, pcpasses : *mut u32, pcseconds : *mut u32, grbit : u32) -> i32); - JetDefragmentA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetDefragmentA(sesid, dbid, core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetDefragmentW(sesid: JET_SESID, dbid: u32, sztablename: Option<*const u16>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDefragmentW(sesid : JET_SESID, dbid : u32, sztablename : *const u16, pcpasses : *mut u32, pcseconds : *mut u32, grbit : u32) -> i32); - JetDefragmentW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetDefragmentW(sesid, dbid, core::mem::transmute(sztablename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpasses.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcseconds.unwrap_or(core::mem::zeroed())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDelete(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDelete(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID) -> i32); - JetDelete(core::mem::transmute(sesid), core::mem::transmute(tableid)) + JetDelete(sesid, tableid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumn2A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: *const i8, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteColumn2A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8, grbit : u32) -> i32); - JetDeleteColumn2A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname), core::mem::transmute(grbit)) + JetDeleteColumn2A(sesid, tableid, szcolumnname, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumn2W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: *const u16, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteColumn2W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16, grbit : u32) -> i32); - JetDeleteColumn2W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname), core::mem::transmute(grbit)) + JetDeleteColumn2W(sesid, tableid, szcolumnname, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumnA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: *const i8) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteColumnA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8) -> i32); - JetDeleteColumnA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname)) + JetDeleteColumnA(sesid, tableid, szcolumnname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumnW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: *const u16) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteColumnW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16) -> i32); - JetDeleteColumnW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname)) + JetDeleteColumnW(sesid, tableid, szcolumnname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteIndexA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: *const i8) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteIndexA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8) -> i32); - JetDeleteIndexA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname)) + JetDeleteIndexA(sesid, tableid, szindexname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteIndexW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: *const u16) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteIndexW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16) -> i32); - JetDeleteIndexW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname)) + JetDeleteIndexW(sesid, tableid, szindexname) } #[inline] pub unsafe fn JetDeleteTableA(sesid: JET_SESID, dbid: u32, sztablename: *const i8) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteTableA(sesid : JET_SESID, dbid : u32, sztablename : *const i8) -> i32); - JetDeleteTableA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename)) + JetDeleteTableA(sesid, dbid, sztablename) } #[inline] pub unsafe fn JetDeleteTableW(sesid: JET_SESID, dbid: u32, sztablename: *const u16) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDeleteTableW(sesid : JET_SESID, dbid : u32, sztablename : *const u16) -> i32); - JetDeleteTableW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename)) + JetDeleteTableW(sesid, dbid, sztablename) } #[inline] pub unsafe fn JetDetachDatabase2A(sesid: JET_SESID, szfilename: Option<*const i8>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDetachDatabase2A(sesid : JET_SESID, szfilename : *const i8, grbit : u32) -> i32); - JetDetachDatabase2A(core::mem::transmute(sesid), core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetDetachDatabase2A(sesid, core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetDetachDatabase2W(sesid: JET_SESID, szfilename: Option<*const u16>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDetachDatabase2W(sesid : JET_SESID, szfilename : *const u16, grbit : u32) -> i32); - JetDetachDatabase2W(core::mem::transmute(sesid), core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetDetachDatabase2W(sesid, core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetDetachDatabaseA(sesid: JET_SESID, szfilename: Option<*const i8>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDetachDatabaseA(sesid : JET_SESID, szfilename : *const i8) -> i32); - JetDetachDatabaseA(core::mem::transmute(sesid), core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed()))) + JetDetachDatabaseA(sesid, core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetDetachDatabaseW(sesid: JET_SESID, szfilename: Option<*const u16>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDetachDatabaseW(sesid : JET_SESID, szfilename : *const u16) -> i32); - JetDetachDatabaseW(core::mem::transmute(sesid), core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed()))) + JetDetachDatabaseW(sesid, core::mem::transmute(szfilename.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDupCursor(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, ptableid: *mut super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDupCursor(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, ptableid : *mut super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetDupCursor(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(ptableid), core::mem::transmute(grbit)) + JetDupCursor(sesid, tableid, core::mem::transmute(ptableid), grbit) } #[inline] pub unsafe fn JetDupSession(sesid: JET_SESID, psesid: *mut JET_SESID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetDupSession(sesid : JET_SESID, psesid : *mut JET_SESID) -> i32); - JetDupSession(core::mem::transmute(sesid), core::mem::transmute(psesid)) + JetDupSession(sesid, core::mem::transmute(psesid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -427,71 +427,71 @@ pub unsafe fn JetEndExternalBackup() -> i32 { #[inline] pub unsafe fn JetEndExternalBackupInstance(instance: JET_INSTANCE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetEndExternalBackupInstance(instance : JET_INSTANCE) -> i32); - JetEndExternalBackupInstance(core::mem::transmute(instance)) + JetEndExternalBackupInstance(instance) } #[inline] pub unsafe fn JetEndExternalBackupInstance2(instance: JET_INSTANCE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetEndExternalBackupInstance2(instance : JET_INSTANCE, grbit : u32) -> i32); - JetEndExternalBackupInstance2(core::mem::transmute(instance), core::mem::transmute(grbit)) + JetEndExternalBackupInstance2(instance, grbit) } #[inline] pub unsafe fn JetEndSession(sesid: JET_SESID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetEndSession(sesid : JET_SESID, grbit : u32) -> i32); - JetEndSession(core::mem::transmute(sesid), core::mem::transmute(grbit)) + JetEndSession(sesid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetEnumerateColumns(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, rgenumcolumnid: Option<&[JET_ENUMCOLUMNID]>, pcenumcolumn: *mut u32, prgenumcolumn: *mut *mut JET_ENUMCOLUMN, pfnrealloc: JET_PFNREALLOC, pvrealloccontext: Option<*const core::ffi::c_void>, cbdatamost: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetEnumerateColumns(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, cenumcolumnid : u32, rgenumcolumnid : *const JET_ENUMCOLUMNID, pcenumcolumn : *mut u32, prgenumcolumn : *mut *mut JET_ENUMCOLUMN, pfnrealloc : JET_PFNREALLOC, pvrealloccontext : *const core::ffi::c_void, cbdatamost : u32, grbit : u32) -> i32); - JetEnumerateColumns(core::mem::transmute(sesid), core::mem::transmute(tableid), rgenumcolumnid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgenumcolumnid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcenumcolumn), core::mem::transmute(prgenumcolumn), core::mem::transmute(pfnrealloc), core::mem::transmute(pvrealloccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdatamost), core::mem::transmute(grbit)) + JetEnumerateColumns(sesid, tableid, rgenumcolumnid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgenumcolumnid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcenumcolumn), core::mem::transmute(prgenumcolumn), pfnrealloc, core::mem::transmute(pvrealloccontext.unwrap_or(core::mem::zeroed())), cbdatamost, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetEscrowUpdate(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, columnid: u32, pv: *const core::ffi::c_void, cbmax: u32, pvold: Option<*mut core::ffi::c_void>, cboldmax: u32, pcboldactual: Option<*mut u32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetEscrowUpdate(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, columnid : u32, pv : *const core::ffi::c_void, cbmax : u32, pvold : *mut core::ffi::c_void, cboldmax : u32, pcboldactual : *mut u32, grbit : u32) -> i32); - JetEscrowUpdate(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(columnid), core::mem::transmute(pv), core::mem::transmute(cbmax), core::mem::transmute(pvold.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboldmax), core::mem::transmute(pcboldactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetEscrowUpdate(sesid, tableid, columnid, pv, cbmax, core::mem::transmute(pvold.unwrap_or(core::mem::zeroed())), cboldmax, core::mem::transmute(pcboldactual.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetExternalRestore2A(szcheckpointfilepath: *const i8, szlogpath: *const i8, rgrstmap: Option<&[JET_RSTMAP_A]>, szbackuplogpath: *const i8, ploginfo: *mut JET_LOGINFO_A, sztargetinstancename: Option<*const i8>, sztargetinstancelogpath: Option<*const i8>, sztargetinstancecheckpointpath: Option<*const i8>, pfn: JET_PFNSTATUS) -> i32 { windows_targets::link!("esent.dll" "system" fn JetExternalRestore2A(szcheckpointfilepath : *const i8, szlogpath : *const i8, rgrstmap : *const JET_RSTMAP_A, crstfilemap : i32, szbackuplogpath : *const i8, ploginfo : *mut JET_LOGINFO_A, sztargetinstancename : *const i8, sztargetinstancelogpath : *const i8, sztargetinstancecheckpointpath : *const i8, pfn : JET_PFNSTATUS) -> i32); JetExternalRestore2A( - core::mem::transmute(szcheckpointfilepath), - core::mem::transmute(szlogpath), + szcheckpointfilepath, + szlogpath, core::mem::transmute(rgrstmap.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgrstmap.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(szbackuplogpath), + szbackuplogpath, core::mem::transmute(ploginfo), core::mem::transmute(sztargetinstancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(sztargetinstancelogpath.unwrap_or(core::mem::zeroed())), core::mem::transmute(sztargetinstancecheckpointpath.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfn), + pfn, ) } #[inline] pub unsafe fn JetExternalRestore2W(szcheckpointfilepath: *const u16, szlogpath: *const u16, rgrstmap: Option<&[JET_RSTMAP_W]>, szbackuplogpath: *const u16, ploginfo: *mut JET_LOGINFO_W, sztargetinstancename: Option<*const u16>, sztargetinstancelogpath: Option<*const u16>, sztargetinstancecheckpointpath: Option<*const u16>, pfn: JET_PFNSTATUS) -> i32 { windows_targets::link!("esent.dll" "system" fn JetExternalRestore2W(szcheckpointfilepath : *const u16, szlogpath : *const u16, rgrstmap : *const JET_RSTMAP_W, crstfilemap : i32, szbackuplogpath : *const u16, ploginfo : *mut JET_LOGINFO_W, sztargetinstancename : *const u16, sztargetinstancelogpath : *const u16, sztargetinstancecheckpointpath : *const u16, pfn : JET_PFNSTATUS) -> i32); JetExternalRestore2W( - core::mem::transmute(szcheckpointfilepath), - core::mem::transmute(szlogpath), + szcheckpointfilepath, + szlogpath, core::mem::transmute(rgrstmap.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgrstmap.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(szbackuplogpath), + szbackuplogpath, core::mem::transmute(ploginfo), core::mem::transmute(sztargetinstancename.unwrap_or(core::mem::zeroed())), core::mem::transmute(sztargetinstancelogpath.unwrap_or(core::mem::zeroed())), core::mem::transmute(sztargetinstancecheckpointpath.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfn), + pfn, ) } #[inline] pub unsafe fn JetExternalRestoreA(szcheckpointfilepath: *const i8, szlogpath: *const i8, rgrstmap: Option<&[JET_RSTMAP_A]>, szbackuplogpath: *const i8, genlow: i32, genhigh: i32, pfn: JET_PFNSTATUS) -> i32 { windows_targets::link!("esent.dll" "system" fn JetExternalRestoreA(szcheckpointfilepath : *const i8, szlogpath : *const i8, rgrstmap : *const JET_RSTMAP_A, crstfilemap : i32, szbackuplogpath : *const i8, genlow : i32, genhigh : i32, pfn : JET_PFNSTATUS) -> i32); - JetExternalRestoreA(core::mem::transmute(szcheckpointfilepath), core::mem::transmute(szlogpath), core::mem::transmute(rgrstmap.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgrstmap.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(szbackuplogpath), core::mem::transmute(genlow), core::mem::transmute(genhigh), core::mem::transmute(pfn)) + JetExternalRestoreA(szcheckpointfilepath, szlogpath, core::mem::transmute(rgrstmap.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgrstmap.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), szbackuplogpath, genlow, genhigh, pfn) } #[inline] pub unsafe fn JetExternalRestoreW(szcheckpointfilepath: *const u16, szlogpath: *const u16, rgrstmap: Option<&[JET_RSTMAP_W]>, szbackuplogpath: *const u16, genlow: i32, genhigh: i32, pfn: JET_PFNSTATUS) -> i32 { windows_targets::link!("esent.dll" "system" fn JetExternalRestoreW(szcheckpointfilepath : *const u16, szlogpath : *const u16, rgrstmap : *const JET_RSTMAP_W, crstfilemap : i32, szbackuplogpath : *const u16, genlow : i32, genhigh : i32, pfn : JET_PFNSTATUS) -> i32); - JetExternalRestoreW(core::mem::transmute(szcheckpointfilepath), core::mem::transmute(szlogpath), core::mem::transmute(rgrstmap.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgrstmap.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(szbackuplogpath), core::mem::transmute(genlow), core::mem::transmute(genhigh), core::mem::transmute(pfn)) + JetExternalRestoreW(szcheckpointfilepath, szlogpath, core::mem::transmute(rgrstmap.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgrstmap.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), szbackuplogpath, genlow, genhigh, pfn) } #[inline] pub unsafe fn JetFreeBuffer(pbbuf: P0) -> i32 @@ -509,86 +509,86 @@ pub unsafe fn JetGetAttachInfoA(szzdatabases: Option<&mut [u8]>, pcbactual: Opti #[inline] pub unsafe fn JetGetAttachInfoInstanceA(instance: JET_INSTANCE, szzdatabases: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetAttachInfoInstanceA(instance : JET_INSTANCE, szzdatabases : *mut i8, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetAttachInfoInstanceA(core::mem::transmute(instance), core::mem::transmute(szzdatabases.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzdatabases.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetAttachInfoInstanceA(instance, core::mem::transmute(szzdatabases.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzdatabases.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetAttachInfoInstanceW(instance: JET_INSTANCE, szzdatabases: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetAttachInfoInstanceW(instance : JET_INSTANCE, szzdatabases : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetAttachInfoInstanceW(core::mem::transmute(instance), core::mem::transmute(szzdatabases.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetAttachInfoInstanceW(instance, core::mem::transmute(szzdatabases.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetAttachInfoW(wszzdatabases: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetAttachInfoW(wszzdatabases : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetAttachInfoW(core::mem::transmute(wszzdatabases.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetAttachInfoW(core::mem::transmute(wszzdatabases.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetBookmark(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvbookmark: Option<*mut core::ffi::c_void>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetBookmark(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *mut core::ffi::c_void, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetBookmark(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvbookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetBookmark(sesid, tableid, core::mem::transmute(pvbookmark.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetColumnInfoA(sesid: JET_SESID, dbid: u32, sztablename: *const i8, pcolumnnameorid: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetColumnInfoA(sesid : JET_SESID, dbid : u32, sztablename : *const i8, pcolumnnameorid : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetColumnInfoA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(pcolumnnameorid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetColumnInfoA(sesid, dbid, sztablename, core::mem::transmute(pcolumnnameorid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetColumnInfoW(sesid: JET_SESID, dbid: u32, sztablename: *const u16, pwcolumnnameorid: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetColumnInfoW(sesid : JET_SESID, dbid : u32, sztablename : *const u16, pwcolumnnameorid : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetColumnInfoW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(pwcolumnnameorid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetColumnInfoW(sesid, dbid, sztablename, core::mem::transmute(pwcolumnnameorid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetCurrentIndexA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: &mut [u8]) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetCurrentIndexA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *mut i8, cbindexname : u32) -> i32); - JetGetCurrentIndexA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.as_ptr()), szindexname.len().try_into().unwrap()) + JetGetCurrentIndexA(sesid, tableid, core::mem::transmute(szindexname.as_ptr()), szindexname.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetCurrentIndexW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: *mut u16, cbindexname: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetCurrentIndexW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *mut u16, cbindexname : u32) -> i32); - JetGetCurrentIndexW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname), core::mem::transmute(cbindexname)) + JetGetCurrentIndexW(sesid, tableid, core::mem::transmute(szindexname), cbindexname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetCursorInfo(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetCursorInfo(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetCursorInfo(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetCursorInfo(sesid, tableid, core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetDatabaseFileInfoA(szdatabasename: *const i8, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetDatabaseFileInfoA(szdatabasename : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetDatabaseFileInfoA(core::mem::transmute(szdatabasename), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetDatabaseFileInfoA(szdatabasename, core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetDatabaseFileInfoW(szdatabasename: *const u16, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetDatabaseFileInfoW(szdatabasename : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetDatabaseFileInfoW(core::mem::transmute(szdatabasename), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetDatabaseFileInfoW(szdatabasename, core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetDatabaseInfoA(sesid: JET_SESID, dbid: u32, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetDatabaseInfoA(sesid : JET_SESID, dbid : u32, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetDatabaseInfoA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetDatabaseInfoA(sesid, dbid, core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetDatabaseInfoW(sesid: JET_SESID, dbid: u32, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetDatabaseInfoW(sesid : JET_SESID, dbid : u32, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetDatabaseInfoW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetDatabaseInfoW(sesid, dbid, core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetErrorInfoW(pvcontext: Option<*const core::ffi::c_void>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetErrorInfoW(pvcontext : *const core::ffi::c_void, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32, grbit : u32) -> i32); - JetGetErrorInfoW(core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel), core::mem::transmute(grbit)) + JetGetErrorInfoW(core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel, grbit) } #[inline] pub unsafe fn JetGetIndexInfoA(sesid: JET_SESID, dbid: u32, sztablename: *const i8, szindexname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetIndexInfoA(sesid : JET_SESID, dbid : u32, sztablename : *const i8, szindexname : *const i8, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetIndexInfoA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbresult), core::mem::transmute(infolevel)) + JetGetIndexInfoA(sesid, dbid, sztablename, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbresult, infolevel) } #[inline] pub unsafe fn JetGetIndexInfoW(sesid: JET_SESID, dbid: u32, sztablename: *const u16, szindexname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetIndexInfoW(sesid : JET_SESID, dbid : u32, sztablename : *const u16, szindexname : *const u16, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetIndexInfoW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbresult), core::mem::transmute(infolevel)) + JetGetIndexInfoW(sesid, dbid, sztablename, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -605,19 +605,19 @@ pub unsafe fn JetGetInstanceInfoW(pcinstanceinfo: *mut u32, painstanceinfo: *mut #[inline] pub unsafe fn JetGetInstanceMiscInfo(instance: JET_INSTANCE, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetInstanceMiscInfo(instance : JET_INSTANCE, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetInstanceMiscInfo(core::mem::transmute(instance), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetInstanceMiscInfo(instance, core::mem::transmute(pvresult), cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLS(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pls: *mut JET_LS, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLS(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pls : *mut JET_LS, grbit : u32) -> i32); - JetGetLS(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pls), core::mem::transmute(grbit)) + JetGetLS(sesid, tableid, core::mem::transmute(pls), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLock(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLock(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetGetLock(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(grbit)) + JetGetLock(sesid, tableid, grbit) } #[inline] pub unsafe fn JetGetLogInfoA(szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 { @@ -627,168 +627,168 @@ pub unsafe fn JetGetLogInfoA(szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut #[inline] pub unsafe fn JetGetLogInfoInstance2A(instance: JET_INSTANCE, szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>, ploginfo: Option<*mut JET_LOGINFO_A>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstance2A(instance : JET_INSTANCE, szzlogs : *mut i8, cbmax : u32, pcbactual : *mut u32, ploginfo : *mut JET_LOGINFO_A) -> i32); - JetGetLogInfoInstance2A(core::mem::transmute(instance), core::mem::transmute(szzlogs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzlogs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(ploginfo.unwrap_or(core::mem::zeroed()))) + JetGetLogInfoInstance2A(instance, core::mem::transmute(szzlogs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzlogs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(ploginfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetLogInfoInstance2W(instance: JET_INSTANCE, wszzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>, ploginfo: Option<*mut JET_LOGINFO_W>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstance2W(instance : JET_INSTANCE, wszzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32, ploginfo : *mut JET_LOGINFO_W) -> i32); - JetGetLogInfoInstance2W(core::mem::transmute(instance), core::mem::transmute(wszzlogs.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(ploginfo.unwrap_or(core::mem::zeroed()))) + JetGetLogInfoInstance2W(instance, core::mem::transmute(wszzlogs.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(ploginfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetLogInfoInstanceA(instance: JET_INSTANCE, szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstanceA(instance : JET_INSTANCE, szzlogs : *mut i8, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetLogInfoInstanceA(core::mem::transmute(instance), core::mem::transmute(szzlogs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzlogs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetLogInfoInstanceA(instance, core::mem::transmute(szzlogs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzlogs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetLogInfoInstanceW(instance: JET_INSTANCE, wszzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstanceW(instance : JET_INSTANCE, wszzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetLogInfoInstanceW(core::mem::transmute(instance), core::mem::transmute(wszzlogs.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetLogInfoInstanceW(instance, core::mem::transmute(wszzlogs.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetLogInfoW(szzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoW(szzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetLogInfoW(core::mem::transmute(szzlogs.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetLogInfoW(core::mem::transmute(szzlogs.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetObjectInfoA(sesid: JET_SESID, dbid: u32, objtyp: u32, szcontainername: Option<*const i8>, szobjectname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetObjectInfoA(sesid : JET_SESID, dbid : u32, objtyp : u32, szcontainername : *const i8, szobjectname : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetObjectInfoA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(objtyp), core::mem::transmute(szcontainername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetObjectInfoA(sesid, dbid, objtyp, core::mem::transmute(szcontainername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetObjectInfoW(sesid: JET_SESID, dbid: u32, objtyp: u32, szcontainername: Option<*const u16>, szobjectname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetObjectInfoW(sesid : JET_SESID, dbid : u32, objtyp : u32, szcontainername : *const u16, szobjectname : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetObjectInfoW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(objtyp), core::mem::transmute(szcontainername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetObjectInfoW(sesid, dbid, objtyp, core::mem::transmute(szcontainername.unwrap_or(core::mem::zeroed())), core::mem::transmute(szobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetRecordPosition(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, precpos: *mut JET_RECPOS, cbrecpos: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetRecordPosition(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precpos : *mut JET_RECPOS, cbrecpos : u32) -> i32); - JetGetRecordPosition(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(precpos), core::mem::transmute(cbrecpos)) + JetGetRecordPosition(sesid, tableid, core::mem::transmute(precpos), cbrecpos) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetRecordSize(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, precsize: *mut JET_RECSIZE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetRecordSize(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precsize : *mut JET_RECSIZE, grbit : u32) -> i32); - JetGetRecordSize(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(precsize), core::mem::transmute(grbit)) + JetGetRecordSize(sesid, tableid, core::mem::transmute(precsize), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetRecordSize2(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, precsize: *mut JET_RECSIZE2, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetRecordSize2(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precsize : *mut JET_RECSIZE2, grbit : u32) -> i32); - JetGetRecordSize2(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(precsize), core::mem::transmute(grbit)) + JetGetRecordSize2(sesid, tableid, core::mem::transmute(precsize), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetSecondaryIndexBookmark(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvsecondarykey: Option<*mut core::ffi::c_void>, cbsecondarykeymax: u32, pcbsecondarykeyactual: Option<*mut u32>, pvprimarybookmark: Option<*mut core::ffi::c_void>, cbprimarybookmarkmax: u32, pcbprimarybookmarkactual: Option<*mut u32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetSecondaryIndexBookmark(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvsecondarykey : *mut core::ffi::c_void, cbsecondarykeymax : u32, pcbsecondarykeyactual : *mut u32, pvprimarybookmark : *mut core::ffi::c_void, cbprimarybookmarkmax : u32, pcbprimarybookmarkactual : *mut u32, grbit : u32) -> i32); - JetGetSecondaryIndexBookmark(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvsecondarykey.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsecondarykeymax), core::mem::transmute(pcbsecondarykeyactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvprimarybookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbprimarybookmarkmax), core::mem::transmute(pcbprimarybookmarkactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetGetSecondaryIndexBookmark(sesid, tableid, core::mem::transmute(pvsecondarykey.unwrap_or(core::mem::zeroed())), cbsecondarykeymax, core::mem::transmute(pcbsecondarykeyactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvprimarybookmark.unwrap_or(core::mem::zeroed())), cbprimarybookmarkmax, core::mem::transmute(pcbprimarybookmarkactual.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetGetSessionParameter(sesid: Option, sesparamid: u32, pvparam: &mut [u8], pcbparamactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetSessionParameter(sesid : JET_SESID, sesparamid : u32, pvparam : *mut core::ffi::c_void, cbparammax : u32, pcbparamactual : *mut u32) -> i32); - JetGetSessionParameter(core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(sesparamid), core::mem::transmute(pvparam.as_ptr()), pvparam.len().try_into().unwrap(), core::mem::transmute(pcbparamactual.unwrap_or(core::mem::zeroed()))) + JetGetSessionParameter(core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), sesparamid, core::mem::transmute(pvparam.as_ptr()), pvparam.len().try_into().unwrap(), core::mem::transmute(pcbparamactual.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetSystemParameterA(instance: JET_INSTANCE, sesid: Option, paramid: u32, plparam: Option<*mut super::StructuredStorage::JET_API_PTR>, szparam: Option<&mut [u8]>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetSystemParameterA(instance : JET_INSTANCE, sesid : JET_SESID, paramid : u32, plparam : *mut super::StructuredStorage:: JET_API_PTR, szparam : *mut i8, cbmax : u32) -> i32); - JetGetSystemParameterA(core::mem::transmute(instance), core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(paramid), core::mem::transmute(plparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szparam.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + JetGetSystemParameterA(instance, core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), paramid, core::mem::transmute(plparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szparam.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetSystemParameterW(instance: JET_INSTANCE, sesid: Option, paramid: u32, plparam: Option<*mut super::StructuredStorage::JET_API_PTR>, szparam: Option<*mut u16>, cbmax: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetSystemParameterW(instance : JET_INSTANCE, sesid : JET_SESID, paramid : u32, plparam : *mut super::StructuredStorage:: JET_API_PTR, szparam : *mut u16, cbmax : u32) -> i32); - JetGetSystemParameterW(core::mem::transmute(instance), core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(paramid), core::mem::transmute(plparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax)) + JetGetSystemParameterW(instance, core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), paramid, core::mem::transmute(plparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.unwrap_or(core::mem::zeroed())), cbmax) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableColumnInfoA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTableColumnInfoA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableColumnInfoA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetTableColumnInfoA(sesid, tableid, core::mem::transmute(szcolumnname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableColumnInfoW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szcolumnname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTableColumnInfoW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableColumnInfoW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szcolumnname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetTableColumnInfoW(sesid, tableid, core::mem::transmute(szcolumnname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableIndexInfoA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTableIndexInfoA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetTableIndexInfoA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbresult), core::mem::transmute(infolevel)) + JetGetTableIndexInfoA(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableIndexInfoW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTableIndexInfoW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetTableIndexInfoW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), core::mem::transmute(cbresult), core::mem::transmute(infolevel)) + JetGetTableIndexInfoW(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvresult), cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableInfoA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTableInfoA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableInfoA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetTableInfoA(sesid, tableid, core::mem::transmute(pvresult), cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableInfoW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTableInfoW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableInfoW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvresult), core::mem::transmute(cbmax), core::mem::transmute(infolevel)) + JetGetTableInfoW(sesid, tableid, core::mem::transmute(pvresult), cbmax, infolevel) } #[inline] pub unsafe fn JetGetThreadStats(pvresult: *mut core::ffi::c_void, cbmax: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetThreadStats(pvresult : *mut core::ffi::c_void, cbmax : u32) -> i32); - JetGetThreadStats(core::mem::transmute(pvresult), core::mem::transmute(cbmax)) + JetGetThreadStats(core::mem::transmute(pvresult), cbmax) } #[inline] pub unsafe fn JetGetTruncateLogInfoInstanceA(instance: JET_INSTANCE, szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTruncateLogInfoInstanceA(instance : JET_INSTANCE, szzlogs : *mut i8, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetTruncateLogInfoInstanceA(core::mem::transmute(instance), core::mem::transmute(szzlogs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzlogs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetTruncateLogInfoInstanceA(instance, core::mem::transmute(szzlogs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szzlogs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetTruncateLogInfoInstanceW(instance: JET_INSTANCE, wszzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetTruncateLogInfoInstanceW(instance : JET_INSTANCE, wszzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetTruncateLogInfoInstanceW(core::mem::transmute(instance), core::mem::transmute(wszzlogs.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetGetTruncateLogInfoInstanceW(instance, core::mem::transmute(wszzlogs.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetGetVersion(sesid: JET_SESID, pwversion: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGetVersion(sesid : JET_SESID, pwversion : *mut u32) -> i32); - JetGetVersion(core::mem::transmute(sesid), core::mem::transmute(pwversion)) + JetGetVersion(sesid, core::mem::transmute(pwversion)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGotoBookmark(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvbookmark: *const core::ffi::c_void, cbbookmark: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGotoBookmark(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *const core::ffi::c_void, cbbookmark : u32) -> i32); - JetGotoBookmark(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvbookmark), core::mem::transmute(cbbookmark)) + JetGotoBookmark(sesid, tableid, pvbookmark, cbbookmark) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGotoPosition(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, precpos: *const JET_RECPOS) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGotoPosition(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precpos : *const JET_RECPOS) -> i32); - JetGotoPosition(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(precpos)) + JetGotoPosition(sesid, tableid, precpos) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGotoSecondaryIndexBookmark(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvsecondarykey: *const core::ffi::c_void, cbsecondarykey: u32, pvprimarybookmark: Option<*const core::ffi::c_void>, cbprimarybookmark: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGotoSecondaryIndexBookmark(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvsecondarykey : *const core::ffi::c_void, cbsecondarykey : u32, pvprimarybookmark : *const core::ffi::c_void, cbprimarybookmark : u32, grbit : u32) -> i32); - JetGotoSecondaryIndexBookmark(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvsecondarykey), core::mem::transmute(cbsecondarykey), core::mem::transmute(pvprimarybookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbprimarybookmark), core::mem::transmute(grbit)) + JetGotoSecondaryIndexBookmark(sesid, tableid, pvsecondarykey, cbsecondarykey, core::mem::transmute(pvprimarybookmark.unwrap_or(core::mem::zeroed())), cbprimarybookmark, grbit) } #[inline] pub unsafe fn JetGrowDatabase(sesid: JET_SESID, dbid: u32, cpg: u32, pcpgreal: *const u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetGrowDatabase(sesid : JET_SESID, dbid : u32, cpg : u32, pcpgreal : *const u32) -> i32); - JetGrowDatabase(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(cpg), core::mem::transmute(pcpgreal)) + JetGrowDatabase(sesid, dbid, cpg, pcpgreal) } #[inline] pub unsafe fn JetIdle(sesid: JET_SESID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetIdle(sesid : JET_SESID, grbit : u32) -> i32); - JetIdle(core::mem::transmute(sesid), core::mem::transmute(grbit)) + JetIdle(sesid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetIndexRecordCount(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pcrec: *mut u32, crecmax: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetIndexRecordCount(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pcrec : *mut u32, crecmax : u32) -> i32); - JetIndexRecordCount(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pcrec), core::mem::transmute(crecmax)) + JetIndexRecordCount(sesid, tableid, core::mem::transmute(pcrec), crecmax) } #[inline] pub unsafe fn JetInit(pinstance: Option<*mut JET_INSTANCE>) -> i32 { @@ -798,430 +798,430 @@ pub unsafe fn JetInit(pinstance: Option<*mut JET_INSTANCE>) -> i32 { #[inline] pub unsafe fn JetInit2(pinstance: Option<*mut JET_INSTANCE>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetInit2(pinstance : *mut JET_INSTANCE, grbit : u32) -> i32); - JetInit2(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetInit2(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetInit3A(pinstance: Option<*mut JET_INSTANCE>, prstinfo: Option<*const JET_RSTINFO_A>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetInit3A(pinstance : *mut JET_INSTANCE, prstinfo : *const JET_RSTINFO_A, grbit : u32) -> i32); - JetInit3A(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(prstinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetInit3A(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(prstinfo.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetInit3W(pinstance: Option<*mut JET_INSTANCE>, prstinfo: Option<*const JET_RSTINFO_W>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetInit3W(pinstance : *mut JET_INSTANCE, prstinfo : *const JET_RSTINFO_W, grbit : u32) -> i32); - JetInit3W(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(prstinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetInit3W(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(prstinfo.unwrap_or(core::mem::zeroed())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetIntersectIndexes(sesid: JET_SESID, rgindexrange: &[JET_INDEXRANGE], precordlist: *mut JET_RECORDLIST, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetIntersectIndexes(sesid : JET_SESID, rgindexrange : *const JET_INDEXRANGE, cindexrange : u32, precordlist : *mut JET_RECORDLIST, grbit : u32) -> i32); - JetIntersectIndexes(core::mem::transmute(sesid), core::mem::transmute(rgindexrange.as_ptr()), rgindexrange.len().try_into().unwrap(), core::mem::transmute(precordlist), core::mem::transmute(grbit)) + JetIntersectIndexes(sesid, core::mem::transmute(rgindexrange.as_ptr()), rgindexrange.len().try_into().unwrap(), core::mem::transmute(precordlist), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetMakeKey(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvdata: Option<*const core::ffi::c_void>, cbdata: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetMakeKey(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32) -> i32); - JetMakeKey(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata), core::mem::transmute(grbit)) + JetMakeKey(sesid, tableid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), cbdata, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetMove(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, crow: i32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetMove(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, crow : i32, grbit : u32) -> i32); - JetMove(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(crow), core::mem::transmute(grbit)) + JetMove(sesid, tableid, crow, grbit) } #[inline] pub unsafe fn JetOSSnapshotAbort(snapid: JET_OSSNAPID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotAbort(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotAbort(core::mem::transmute(snapid), core::mem::transmute(grbit)) + JetOSSnapshotAbort(snapid, grbit) } #[inline] pub unsafe fn JetOSSnapshotEnd(snapid: JET_OSSNAPID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotEnd(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotEnd(core::mem::transmute(snapid), core::mem::transmute(grbit)) + JetOSSnapshotEnd(snapid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotFreezeA(snapid: JET_OSSNAPID, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_A, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotFreezeA(snapid : JET_OSSNAPID, pcinstanceinfo : *mut u32, painstanceinfo : *mut *mut JET_INSTANCE_INFO_A, grbit : u32) -> i32); - JetOSSnapshotFreezeA(core::mem::transmute(snapid), core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), core::mem::transmute(grbit)) + JetOSSnapshotFreezeA(snapid, core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotFreezeW(snapid: JET_OSSNAPID, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_W, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotFreezeW(snapid : JET_OSSNAPID, pcinstanceinfo : *mut u32, painstanceinfo : *mut *mut JET_INSTANCE_INFO_W, grbit : u32) -> i32); - JetOSSnapshotFreezeW(core::mem::transmute(snapid), core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), core::mem::transmute(grbit)) + JetOSSnapshotFreezeW(snapid, core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotGetFreezeInfoA(snapid: JET_OSSNAPID, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_A, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotGetFreezeInfoA(snapid : JET_OSSNAPID, pcinstanceinfo : *mut u32, painstanceinfo : *mut *mut JET_INSTANCE_INFO_A, grbit : u32) -> i32); - JetOSSnapshotGetFreezeInfoA(core::mem::transmute(snapid), core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), core::mem::transmute(grbit)) + JetOSSnapshotGetFreezeInfoA(snapid, core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotGetFreezeInfoW(snapid: JET_OSSNAPID, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_W, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotGetFreezeInfoW(snapid : JET_OSSNAPID, pcinstanceinfo : *mut u32, painstanceinfo : *mut *mut JET_INSTANCE_INFO_W, grbit : u32) -> i32); - JetOSSnapshotGetFreezeInfoW(core::mem::transmute(snapid), core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), core::mem::transmute(grbit)) + JetOSSnapshotGetFreezeInfoW(snapid, core::mem::transmute(pcinstanceinfo), core::mem::transmute(painstanceinfo), grbit) } #[inline] pub unsafe fn JetOSSnapshotPrepare(psnapid: *mut JET_OSSNAPID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotPrepare(psnapid : *mut JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotPrepare(core::mem::transmute(psnapid), core::mem::transmute(grbit)) + JetOSSnapshotPrepare(core::mem::transmute(psnapid), grbit) } #[inline] pub unsafe fn JetOSSnapshotPrepareInstance(snapid: JET_OSSNAPID, instance: JET_INSTANCE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotPrepareInstance(snapid : JET_OSSNAPID, instance : JET_INSTANCE, grbit : u32) -> i32); - JetOSSnapshotPrepareInstance(core::mem::transmute(snapid), core::mem::transmute(instance), core::mem::transmute(grbit)) + JetOSSnapshotPrepareInstance(snapid, instance, grbit) } #[inline] pub unsafe fn JetOSSnapshotThaw(snapid: JET_OSSNAPID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotThaw(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotThaw(core::mem::transmute(snapid), core::mem::transmute(grbit)) + JetOSSnapshotThaw(snapid, grbit) } #[inline] pub unsafe fn JetOSSnapshotTruncateLog(snapid: JET_OSSNAPID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotTruncateLog(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotTruncateLog(core::mem::transmute(snapid), core::mem::transmute(grbit)) + JetOSSnapshotTruncateLog(snapid, grbit) } #[inline] pub unsafe fn JetOSSnapshotTruncateLogInstance(snapid: JET_OSSNAPID, instance: JET_INSTANCE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotTruncateLogInstance(snapid : JET_OSSNAPID, instance : JET_INSTANCE, grbit : u32) -> i32); - JetOSSnapshotTruncateLogInstance(core::mem::transmute(snapid), core::mem::transmute(instance), core::mem::transmute(grbit)) + JetOSSnapshotTruncateLogInstance(snapid, instance, grbit) } #[inline] pub unsafe fn JetOpenDatabaseA(sesid: JET_SESID, szfilename: *const i8, szconnect: Option<*const i8>, pdbid: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenDatabaseA(sesid : JET_SESID, szfilename : *const i8, szconnect : *const i8, pdbid : *mut u32, grbit : u32) -> i32); - JetOpenDatabaseA(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), core::mem::transmute(grbit)) + JetOpenDatabaseA(sesid, szfilename, core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), grbit) } #[inline] pub unsafe fn JetOpenDatabaseW(sesid: JET_SESID, szfilename: *const u16, szconnect: Option<*const u16>, pdbid: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenDatabaseW(sesid : JET_SESID, szfilename : *const u16, szconnect : *const u16, pdbid : *mut u32, grbit : u32) -> i32); - JetOpenDatabaseW(core::mem::transmute(sesid), core::mem::transmute(szfilename), core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), core::mem::transmute(grbit)) + JetOpenDatabaseW(sesid, szfilename, core::mem::transmute(szconnect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdbid), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenFileA(szfilename: *const i8, phffile: *mut super::StructuredStorage::JET_HANDLE, pulfilesizelow: *mut u32, pulfilesizehigh: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenFileA(szfilename : *const i8, phffile : *mut super::StructuredStorage:: JET_HANDLE, pulfilesizelow : *mut u32, pulfilesizehigh : *mut u32) -> i32); - JetOpenFileA(core::mem::transmute(szfilename), core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) + JetOpenFileA(szfilename, core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenFileInstanceA(instance: JET_INSTANCE, szfilename: *const i8, phffile: *mut super::StructuredStorage::JET_HANDLE, pulfilesizelow: *mut u32, pulfilesizehigh: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenFileInstanceA(instance : JET_INSTANCE, szfilename : *const i8, phffile : *mut super::StructuredStorage:: JET_HANDLE, pulfilesizelow : *mut u32, pulfilesizehigh : *mut u32) -> i32); - JetOpenFileInstanceA(core::mem::transmute(instance), core::mem::transmute(szfilename), core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) + JetOpenFileInstanceA(instance, szfilename, core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenFileInstanceW(instance: JET_INSTANCE, szfilename: *const u16, phffile: *mut super::StructuredStorage::JET_HANDLE, pulfilesizelow: *mut u32, pulfilesizehigh: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenFileInstanceW(instance : JET_INSTANCE, szfilename : *const u16, phffile : *mut super::StructuredStorage:: JET_HANDLE, pulfilesizelow : *mut u32, pulfilesizehigh : *mut u32) -> i32); - JetOpenFileInstanceW(core::mem::transmute(instance), core::mem::transmute(szfilename), core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) + JetOpenFileInstanceW(instance, szfilename, core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenFileW(szfilename: *const u16, phffile: *mut super::StructuredStorage::JET_HANDLE, pulfilesizelow: *mut u32, pulfilesizehigh: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenFileW(szfilename : *const u16, phffile : *mut super::StructuredStorage:: JET_HANDLE, pulfilesizelow : *mut u32, pulfilesizehigh : *mut u32) -> i32); - JetOpenFileW(core::mem::transmute(szfilename), core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) + JetOpenFileW(szfilename, core::mem::transmute(phffile), core::mem::transmute(pulfilesizelow), core::mem::transmute(pulfilesizehigh)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTableA(sesid: JET_SESID, dbid: u32, sztablename: *const i8, pvparameters: Option<*const core::ffi::c_void>, cbparameters: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTableA(sesid : JET_SESID, dbid : u32, sztablename : *const i8, pvparameters : *const core::ffi::c_void, cbparameters : u32, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID) -> i32); - JetOpenTableA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(pvparameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbparameters), core::mem::transmute(grbit), core::mem::transmute(ptableid)) + JetOpenTableA(sesid, dbid, sztablename, core::mem::transmute(pvparameters.unwrap_or(core::mem::zeroed())), cbparameters, grbit, core::mem::transmute(ptableid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTableW(sesid: JET_SESID, dbid: u32, sztablename: *const u16, pvparameters: Option<*const core::ffi::c_void>, cbparameters: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTableW(sesid : JET_SESID, dbid : u32, sztablename : *const u16, pvparameters : *const core::ffi::c_void, cbparameters : u32, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID) -> i32); - JetOpenTableW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(pvparameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbparameters), core::mem::transmute(grbit), core::mem::transmute(ptableid)) + JetOpenTableW(sesid, dbid, sztablename, core::mem::transmute(pvparameters.unwrap_or(core::mem::zeroed())), cbparameters, grbit, core::mem::transmute(ptableid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTempTable(sesid: JET_SESID, prgcolumndef: *const JET_COLUMNDEF, ccolumn: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID, prgcolumnid: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTempTable(sesid : JET_SESID, prgcolumndef : *const JET_COLUMNDEF, ccolumn : u32, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID, prgcolumnid : *mut u32) -> i32); - JetOpenTempTable(core::mem::transmute(sesid), core::mem::transmute(prgcolumndef), core::mem::transmute(ccolumn), core::mem::transmute(grbit), core::mem::transmute(ptableid), core::mem::transmute(prgcolumnid)) + JetOpenTempTable(sesid, prgcolumndef, ccolumn, grbit, core::mem::transmute(ptableid), core::mem::transmute(prgcolumnid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTempTable2(sesid: JET_SESID, prgcolumndef: *const JET_COLUMNDEF, ccolumn: u32, lcid: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID, prgcolumnid: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTempTable2(sesid : JET_SESID, prgcolumndef : *const JET_COLUMNDEF, ccolumn : u32, lcid : u32, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID, prgcolumnid : *mut u32) -> i32); - JetOpenTempTable2(core::mem::transmute(sesid), core::mem::transmute(prgcolumndef), core::mem::transmute(ccolumn), core::mem::transmute(lcid), core::mem::transmute(grbit), core::mem::transmute(ptableid), core::mem::transmute(prgcolumnid)) + JetOpenTempTable2(sesid, prgcolumndef, ccolumn, lcid, grbit, core::mem::transmute(ptableid), core::mem::transmute(prgcolumnid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTempTable3(sesid: JET_SESID, prgcolumndef: *const JET_COLUMNDEF, ccolumn: u32, pidxunicode: Option<*const JET_UNICODEINDEX>, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID, prgcolumnid: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTempTable3(sesid : JET_SESID, prgcolumndef : *const JET_COLUMNDEF, ccolumn : u32, pidxunicode : *const JET_UNICODEINDEX, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID, prgcolumnid : *mut u32) -> i32); - JetOpenTempTable3(core::mem::transmute(sesid), core::mem::transmute(prgcolumndef), core::mem::transmute(ccolumn), core::mem::transmute(pidxunicode.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit), core::mem::transmute(ptableid), core::mem::transmute(prgcolumnid)) + JetOpenTempTable3(sesid, prgcolumndef, ccolumn, core::mem::transmute(pidxunicode.unwrap_or(core::mem::zeroed())), grbit, core::mem::transmute(ptableid), core::mem::transmute(prgcolumnid)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTemporaryTable(sesid: JET_SESID, popentemporarytable: *const JET_OPENTEMPORARYTABLE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTemporaryTable(sesid : JET_SESID, popentemporarytable : *const JET_OPENTEMPORARYTABLE) -> i32); - JetOpenTemporaryTable(core::mem::transmute(sesid), core::mem::transmute(popentemporarytable)) + JetOpenTemporaryTable(sesid, popentemporarytable) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTemporaryTable2(sesid: JET_SESID, popentemporarytable: *const JET_OPENTEMPORARYTABLE2) -> i32 { windows_targets::link!("esent.dll" "system" fn JetOpenTemporaryTable2(sesid : JET_SESID, popentemporarytable : *const JET_OPENTEMPORARYTABLE2) -> i32); - JetOpenTemporaryTable2(core::mem::transmute(sesid), core::mem::transmute(popentemporarytable)) + JetOpenTemporaryTable2(sesid, popentemporarytable) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetPrepareUpdate(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, prep: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetPrepareUpdate(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, prep : u32) -> i32); - JetPrepareUpdate(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(prep)) + JetPrepareUpdate(sesid, tableid, prep) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetPrereadIndexRanges(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, rgindexranges: &[JET_INDEX_RANGE], pcrangespreread: Option<*mut u32>, rgcolumnidpreread: &[u32], grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetPrereadIndexRanges(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, rgindexranges : *const JET_INDEX_RANGE, cindexranges : u32, pcrangespreread : *mut u32, rgcolumnidpreread : *const u32, ccolumnidpreread : u32, grbit : u32) -> i32); - JetPrereadIndexRanges(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(rgindexranges.as_ptr()), rgindexranges.len().try_into().unwrap(), core::mem::transmute(pcrangespreread.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgcolumnidpreread.as_ptr()), rgcolumnidpreread.len().try_into().unwrap(), core::mem::transmute(grbit)) + JetPrereadIndexRanges(sesid, tableid, core::mem::transmute(rgindexranges.as_ptr()), rgindexranges.len().try_into().unwrap(), core::mem::transmute(pcrangespreread.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgcolumnidpreread.as_ptr()), rgcolumnidpreread.len().try_into().unwrap(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetPrereadKeys(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, rgpvkeys: *const *const core::ffi::c_void, rgcbkeys: *const u32, ckeys: i32, pckeyspreread: Option<*mut i32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetPrereadKeys(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, rgpvkeys : *const *const core::ffi::c_void, rgcbkeys : *const u32, ckeys : i32, pckeyspreread : *mut i32, grbit : u32) -> i32); - JetPrereadKeys(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(rgpvkeys), core::mem::transmute(rgcbkeys), core::mem::transmute(ckeys), core::mem::transmute(pckeyspreread.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetPrereadKeys(sesid, tableid, rgpvkeys, rgcbkeys, ckeys, core::mem::transmute(pckeyspreread.unwrap_or(core::mem::zeroed())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetReadFile(hffile: super::StructuredStorage::JET_HANDLE, pv: *mut core::ffi::c_void, cb: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetReadFile(hffile : super::StructuredStorage:: JET_HANDLE, pv : *mut core::ffi::c_void, cb : u32, pcbactual : *mut u32) -> i32); - JetReadFile(core::mem::transmute(hffile), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetReadFile(hffile, core::mem::transmute(pv), cb, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetReadFileInstance(instance: JET_INSTANCE, hffile: super::StructuredStorage::JET_HANDLE, pv: *mut core::ffi::c_void, cb: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetReadFileInstance(instance : JET_INSTANCE, hffile : super::StructuredStorage:: JET_HANDLE, pv : *mut core::ffi::c_void, cb : u32, pcbactual : *mut u32) -> i32); - JetReadFileInstance(core::mem::transmute(instance), core::mem::transmute(hffile), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetReadFileInstance(instance, hffile, core::mem::transmute(pv), cb, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRegisterCallback(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, cbtyp: u32, pcallback: JET_CALLBACK, pvcontext: Option<*const core::ffi::c_void>, phcallbackid: *const super::StructuredStorage::JET_HANDLE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRegisterCallback(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, cbtyp : u32, pcallback : JET_CALLBACK, pvcontext : *const core::ffi::c_void, phcallbackid : *const super::StructuredStorage:: JET_HANDLE) -> i32); - JetRegisterCallback(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(cbtyp), core::mem::transmute(pcallback), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(phcallbackid)) + JetRegisterCallback(sesid, tableid, cbtyp, pcallback, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), phcallbackid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRenameColumnA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szname: *const i8, sznamenew: *const i8, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRenameColumnA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szname : *const i8, sznamenew : *const i8, grbit : u32) -> i32); - JetRenameColumnA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szname), core::mem::transmute(sznamenew), core::mem::transmute(grbit)) + JetRenameColumnA(sesid, tableid, szname, sznamenew, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRenameColumnW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szname: *const u16, sznamenew: *const u16, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRenameColumnW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szname : *const u16, sznamenew : *const u16, grbit : u32) -> i32); - JetRenameColumnW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szname), core::mem::transmute(sznamenew), core::mem::transmute(grbit)) + JetRenameColumnW(sesid, tableid, szname, sznamenew, grbit) } #[inline] pub unsafe fn JetRenameTableA(sesid: JET_SESID, dbid: u32, szname: *const i8, sznamenew: *const i8) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRenameTableA(sesid : JET_SESID, dbid : u32, szname : *const i8, sznamenew : *const i8) -> i32); - JetRenameTableA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(szname), core::mem::transmute(sznamenew)) + JetRenameTableA(sesid, dbid, szname, sznamenew) } #[inline] pub unsafe fn JetRenameTableW(sesid: JET_SESID, dbid: u32, szname: *const u16, sznamenew: *const u16) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRenameTableW(sesid : JET_SESID, dbid : u32, szname : *const u16, sznamenew : *const u16) -> i32); - JetRenameTableW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(szname), core::mem::transmute(sznamenew)) + JetRenameTableW(sesid, dbid, szname, sznamenew) } #[inline] pub unsafe fn JetResetSessionContext(sesid: JET_SESID) -> i32 { windows_targets::link!("esent.dll" "system" fn JetResetSessionContext(sesid : JET_SESID) -> i32); - JetResetSessionContext(core::mem::transmute(sesid)) + JetResetSessionContext(sesid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetResetTableSequential(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetResetTableSequential(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetResetTableSequential(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(grbit)) + JetResetTableSequential(sesid, tableid, grbit) } #[inline] pub unsafe fn JetResizeDatabase(sesid: JET_SESID, dbid: u32, cpgtarget: u32, pcpgactual: *mut u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetResizeDatabase(sesid : JET_SESID, dbid : u32, cpgtarget : u32, pcpgactual : *mut u32, grbit : u32) -> i32); - JetResizeDatabase(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(cpgtarget), core::mem::transmute(pcpgactual), core::mem::transmute(grbit)) + JetResizeDatabase(sesid, dbid, cpgtarget, core::mem::transmute(pcpgactual), grbit) } #[inline] pub unsafe fn JetRestore2A(sz: *const i8, szdest: Option<*const i8>, pfn: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRestore2A(sz : *const i8, szdest : *const i8, pfn : JET_PFNSTATUS) -> i32); - JetRestore2A(core::mem::transmute(sz), core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) + JetRestore2A(sz, core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetRestore2W(sz: *const u16, szdest: Option<*const u16>, pfn: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRestore2W(sz : *const u16, szdest : *const u16, pfn : JET_PFNSTATUS) -> i32); - JetRestore2W(core::mem::transmute(sz), core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) + JetRestore2W(sz, core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetRestoreA(szsource: *const i8, pfn: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRestoreA(szsource : *const i8, pfn : JET_PFNSTATUS) -> i32); - JetRestoreA(core::mem::transmute(szsource), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) + JetRestoreA(szsource, core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetRestoreInstanceA(instance: JET_INSTANCE, sz: *const i8, szdest: Option<*const i8>, pfn: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRestoreInstanceA(instance : JET_INSTANCE, sz : *const i8, szdest : *const i8, pfn : JET_PFNSTATUS) -> i32); - JetRestoreInstanceA(core::mem::transmute(instance), core::mem::transmute(sz), core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) + JetRestoreInstanceA(instance, sz, core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetRestoreInstanceW(instance: JET_INSTANCE, sz: *const u16, szdest: Option<*const u16>, pfn: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRestoreInstanceW(instance : JET_INSTANCE, sz : *const u16, szdest : *const u16, pfn : JET_PFNSTATUS) -> i32); - JetRestoreInstanceW(core::mem::transmute(instance), core::mem::transmute(sz), core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) + JetRestoreInstanceW(instance, sz, core::mem::transmute(szdest.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetRestoreW(szsource: *const u16, pfn: Option) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRestoreW(szsource : *const u16, pfn : JET_PFNSTATUS) -> i32); - JetRestoreW(core::mem::transmute(szsource), core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) + JetRestoreW(szsource, core::mem::transmute(pfn.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRetrieveColumn(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, columnid: u32, pvdata: Option<*mut core::ffi::c_void>, cbdata: u32, pcbactual: Option<*mut u32>, grbit: u32, pretinfo: Option<*mut JET_RETINFO>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRetrieveColumn(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, columnid : u32, pvdata : *mut core::ffi::c_void, cbdata : u32, pcbactual : *mut u32, grbit : u32, pretinfo : *mut JET_RETINFO) -> i32); - JetRetrieveColumn(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(columnid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit), core::mem::transmute(pretinfo.unwrap_or(core::mem::zeroed()))) + JetRetrieveColumn(sesid, tableid, columnid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), cbdata, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), grbit, core::mem::transmute(pretinfo.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRetrieveColumns(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pretrievecolumn: Option<&mut [JET_RETRIEVECOLUMN]>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRetrieveColumns(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pretrievecolumn : *mut JET_RETRIEVECOLUMN, cretrievecolumn : u32) -> i32); - JetRetrieveColumns(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pretrievecolumn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pretrievecolumn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + JetRetrieveColumns(sesid, tableid, core::mem::transmute(pretrievecolumn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pretrievecolumn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRetrieveKey(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvkey: Option<*mut core::ffi::c_void>, cbmax: u32, pcbactual: Option<*mut u32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRetrieveKey(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvkey : *mut core::ffi::c_void, cbmax : u32, pcbactual : *mut u32, grbit : u32) -> i32); - JetRetrieveKey(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbmax), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetRetrieveKey(sesid, tableid, core::mem::transmute(pvkey.unwrap_or(core::mem::zeroed())), cbmax, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), grbit) } #[inline] pub unsafe fn JetRollback(sesid: JET_SESID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetRollback(sesid : JET_SESID, grbit : u32) -> i32); - JetRollback(core::mem::transmute(sesid), core::mem::transmute(grbit)) + JetRollback(sesid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSeek(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSeek(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetSeek(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(grbit)) + JetSeek(sesid, tableid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetColumn(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, columnid: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: u32, grbit: u32, psetinfo: Option<*const JET_SETINFO>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetColumn(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, columnid : u32, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32, psetinfo : *const JET_SETINFO) -> i32); - JetSetColumn(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(columnid), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata), core::mem::transmute(grbit), core::mem::transmute(psetinfo.unwrap_or(core::mem::zeroed()))) + JetSetColumn(sesid, tableid, columnid, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), cbdata, grbit, core::mem::transmute(psetinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JetSetColumnDefaultValueA(sesid: JET_SESID, dbid: u32, sztablename: *const i8, szcolumnname: *const i8, pvdata: *const core::ffi::c_void, cbdata: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetColumnDefaultValueA(sesid : JET_SESID, dbid : u32, sztablename : *const i8, szcolumnname : *const i8, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32) -> i32); - JetSetColumnDefaultValueA(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(szcolumnname), core::mem::transmute(pvdata), core::mem::transmute(cbdata), core::mem::transmute(grbit)) + JetSetColumnDefaultValueA(sesid, dbid, sztablename, szcolumnname, pvdata, cbdata, grbit) } #[inline] pub unsafe fn JetSetColumnDefaultValueW(sesid: JET_SESID, dbid: u32, sztablename: *const u16, szcolumnname: *const u16, pvdata: *const core::ffi::c_void, cbdata: u32, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetColumnDefaultValueW(sesid : JET_SESID, dbid : u32, sztablename : *const u16, szcolumnname : *const u16, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32) -> i32); - JetSetColumnDefaultValueW(core::mem::transmute(sesid), core::mem::transmute(dbid), core::mem::transmute(sztablename), core::mem::transmute(szcolumnname), core::mem::transmute(pvdata), core::mem::transmute(cbdata), core::mem::transmute(grbit)) + JetSetColumnDefaultValueW(sesid, dbid, sztablename, szcolumnname, pvdata, cbdata, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetColumns(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, psetcolumn: Option<&[JET_SETCOLUMN]>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetColumns(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, psetcolumn : *const JET_SETCOLUMN, csetcolumn : u32) -> i32); - JetSetColumns(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(psetcolumn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psetcolumn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + JetSetColumns(sesid, tableid, core::mem::transmute(psetcolumn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psetcolumn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex2A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const i8>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex2A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, grbit : u32) -> i32); - JetSetCurrentIndex2A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetSetCurrentIndex2A(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex2W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const u16>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex2W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, grbit : u32) -> i32); - JetSetCurrentIndex2W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetSetCurrentIndex2W(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex3A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const i8>, grbit: u32, itagsequence: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex3A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex3A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit), core::mem::transmute(itagsequence)) + JetSetCurrentIndex3A(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex3W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const u16>, grbit: u32, itagsequence: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex3W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex3W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit), core::mem::transmute(itagsequence)) + JetSetCurrentIndex3W(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex4A(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const i8>, pindexid: Option<*const JET_INDEXID>, grbit: u32, itagsequence: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex4A(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, pindexid : *const JET_INDEXID, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex4A(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit), core::mem::transmute(itagsequence)) + JetSetCurrentIndex4A(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex4W(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const u16>, pindexid: Option<*const JET_INDEXID>, grbit: u32, itagsequence: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex4W(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, pindexid : *const JET_INDEXID, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex4W(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit), core::mem::transmute(itagsequence)) + JetSetCurrentIndex4W(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndexA(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const i8>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndexA(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8) -> i32); - JetSetCurrentIndexA(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed()))) + JetSetCurrentIndexA(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndexW(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, szindexname: Option<*const u16>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndexW(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16) -> i32); - JetSetCurrentIndexW(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed()))) + JetSetCurrentIndexW(sesid, tableid, core::mem::transmute(szindexname.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCursorFilter(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, rgcolumnfilters: &[JET_INDEX_COLUMN], grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetCursorFilter(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, rgcolumnfilters : *const JET_INDEX_COLUMN, ccolumnfilters : u32, grbit : u32) -> i32); - JetSetCursorFilter(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(rgcolumnfilters.as_ptr()), rgcolumnfilters.len().try_into().unwrap(), core::mem::transmute(grbit)) + JetSetCursorFilter(sesid, tableid, core::mem::transmute(rgcolumnfilters.as_ptr()), rgcolumnfilters.len().try_into().unwrap(), grbit) } #[inline] pub unsafe fn JetSetDatabaseSizeA(sesid: JET_SESID, szdatabasename: *const i8, cpg: u32, pcpgreal: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetDatabaseSizeA(sesid : JET_SESID, szdatabasename : *const i8, cpg : u32, pcpgreal : *mut u32) -> i32); - JetSetDatabaseSizeA(core::mem::transmute(sesid), core::mem::transmute(szdatabasename), core::mem::transmute(cpg), core::mem::transmute(pcpgreal)) + JetSetDatabaseSizeA(sesid, szdatabasename, cpg, core::mem::transmute(pcpgreal)) } #[inline] pub unsafe fn JetSetDatabaseSizeW(sesid: JET_SESID, szdatabasename: *const u16, cpg: u32, pcpgreal: *mut u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetDatabaseSizeW(sesid : JET_SESID, szdatabasename : *const u16, cpg : u32, pcpgreal : *mut u32) -> i32); - JetSetDatabaseSizeW(core::mem::transmute(sesid), core::mem::transmute(szdatabasename), core::mem::transmute(cpg), core::mem::transmute(pcpgreal)) + JetSetDatabaseSizeW(sesid, szdatabasename, cpg, core::mem::transmute(pcpgreal)) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetIndexRange(sesid: JET_SESID, tableidsrc: super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetIndexRange(sesid : JET_SESID, tableidsrc : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetSetIndexRange(core::mem::transmute(sesid), core::mem::transmute(tableidsrc), core::mem::transmute(grbit)) + JetSetIndexRange(sesid, tableidsrc, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetLS(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, ls: JET_LS, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetLS(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, ls : JET_LS, grbit : u32) -> i32); - JetSetLS(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(ls), core::mem::transmute(grbit)) + JetSetLS(sesid, tableid, ls, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSessionContext(sesid: JET_SESID, ulcontext: super::StructuredStorage::JET_API_PTR) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetSessionContext(sesid : JET_SESID, ulcontext : super::StructuredStorage:: JET_API_PTR) -> i32); - JetSetSessionContext(core::mem::transmute(sesid), core::mem::transmute(ulcontext)) + JetSetSessionContext(sesid, ulcontext) } #[inline] pub unsafe fn JetSetSessionParameter(sesid: Option, sesparamid: u32, pvparam: Option<*const core::ffi::c_void>, cbparam: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetSessionParameter(sesid : JET_SESID, sesparamid : u32, pvparam : *const core::ffi::c_void, cbparam : u32) -> i32); - JetSetSessionParameter(core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(sesparamid), core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbparam)) + JetSetSessionParameter(core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), sesparamid, core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), cbparam) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSystemParameterA(pinstance: Option<*mut JET_INSTANCE>, sesid: Option, paramid: u32, lparam: Option, szparam: Option<*const i8>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetSystemParameterA(pinstance : *mut JET_INSTANCE, sesid : JET_SESID, paramid : u32, lparam : super::StructuredStorage:: JET_API_PTR, szparam : *const i8) -> i32); - JetSetSystemParameterA(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(paramid), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.unwrap_or(core::mem::zeroed()))) + JetSetSystemParameterA(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), paramid, core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSystemParameterW(pinstance: Option<*mut JET_INSTANCE>, sesid: Option, paramid: u32, lparam: Option, szparam: Option<*const u16>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetSystemParameterW(pinstance : *mut JET_INSTANCE, sesid : JET_SESID, paramid : u32, lparam : super::StructuredStorage:: JET_API_PTR, szparam : *const u16) -> i32); - JetSetSystemParameterW(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), core::mem::transmute(paramid), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.unwrap_or(core::mem::zeroed()))) + JetSetSystemParameterW(core::mem::transmute(pinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(sesid.unwrap_or(core::mem::zeroed())), paramid, core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(szparam.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetTableSequential(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetSetTableSequential(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetSetTableSequential(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(grbit)) + JetSetTableSequential(sesid, tableid, grbit) } #[inline] pub unsafe fn JetStopBackup() -> i32 { @@ -1231,7 +1231,7 @@ pub unsafe fn JetStopBackup() -> i32 { #[inline] pub unsafe fn JetStopBackupInstance(instance: JET_INSTANCE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetStopBackupInstance(instance : JET_INSTANCE) -> i32); - JetStopBackupInstance(core::mem::transmute(instance)) + JetStopBackupInstance(instance) } #[inline] pub unsafe fn JetStopService() -> i32 { @@ -1241,22 +1241,22 @@ pub unsafe fn JetStopService() -> i32 { #[inline] pub unsafe fn JetStopServiceInstance(instance: JET_INSTANCE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetStopServiceInstance(instance : JET_INSTANCE) -> i32); - JetStopServiceInstance(core::mem::transmute(instance)) + JetStopServiceInstance(instance) } #[inline] pub unsafe fn JetStopServiceInstance2(instance: JET_INSTANCE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetStopServiceInstance2(instance : JET_INSTANCE, grbit : u32) -> i32); - JetStopServiceInstance2(core::mem::transmute(instance), core::mem::transmute(grbit)) + JetStopServiceInstance2(instance, grbit) } #[inline] pub unsafe fn JetTerm(instance: JET_INSTANCE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetTerm(instance : JET_INSTANCE) -> i32); - JetTerm(core::mem::transmute(instance)) + JetTerm(instance) } #[inline] pub unsafe fn JetTerm2(instance: JET_INSTANCE, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetTerm2(instance : JET_INSTANCE, grbit : u32) -> i32); - JetTerm2(core::mem::transmute(instance), core::mem::transmute(grbit)) + JetTerm2(instance, grbit) } #[inline] pub unsafe fn JetTruncateLog() -> i32 { @@ -1266,25 +1266,25 @@ pub unsafe fn JetTruncateLog() -> i32 { #[inline] pub unsafe fn JetTruncateLogInstance(instance: JET_INSTANCE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetTruncateLogInstance(instance : JET_INSTANCE) -> i32); - JetTruncateLogInstance(core::mem::transmute(instance)) + JetTruncateLogInstance(instance) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetUnregisterCallback(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, cbtyp: u32, hcallbackid: super::StructuredStorage::JET_HANDLE) -> i32 { windows_targets::link!("esent.dll" "system" fn JetUnregisterCallback(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, cbtyp : u32, hcallbackid : super::StructuredStorage:: JET_HANDLE) -> i32); - JetUnregisterCallback(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(cbtyp), core::mem::transmute(hcallbackid)) + JetUnregisterCallback(sesid, tableid, cbtyp, hcallbackid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetUpdate(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvbookmark: Option<*mut core::ffi::c_void>, cbbookmark: u32, pcbactual: Option<*mut u32>) -> i32 { windows_targets::link!("esent.dll" "system" fn JetUpdate(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *mut core::ffi::c_void, cbbookmark : u32, pcbactual : *mut u32) -> i32); - JetUpdate(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvbookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbookmark), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) + JetUpdate(sesid, tableid, core::mem::transmute(pvbookmark.unwrap_or(core::mem::zeroed())), cbbookmark, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetUpdate2(sesid: JET_SESID, tableid: super::StructuredStorage::JET_TABLEID, pvbookmark: Option<*mut core::ffi::c_void>, cbbookmark: u32, pcbactual: Option<*mut u32>, grbit: u32) -> i32 { windows_targets::link!("esent.dll" "system" fn JetUpdate2(sesid : JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *mut core::ffi::c_void, cbbookmark : u32, pcbactual : *mut u32, grbit : u32) -> i32); - JetUpdate2(core::mem::transmute(sesid), core::mem::transmute(tableid), core::mem::transmute(pvbookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbookmark), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), core::mem::transmute(grbit)) + JetUpdate2(sesid, tableid, core::mem::transmute(pvbookmark.unwrap_or(core::mem::zeroed())), cbbookmark, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed())), grbit) } pub const JET_BASE_NAME_LENGTH: u32 = 3u32; #[repr(C, packed(1))] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs index 6f2b122448..82ec0f43ef 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs @@ -25,7 +25,7 @@ impl IEnumOfflineFilesItems { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -93,7 +93,7 @@ impl IEnumOfflineFilesSettings { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -162,32 +162,32 @@ impl IOfflineFilesCache { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), basync.into(), core::mem::transmute(dwsynccontrol), pisyncconflicthandler.param().abi(), piprogress.param().abi(), core::mem::transmute(psyncid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), basync.into(), dwsynccontrol, pisyncconflicthandler.param().abi(), piprogress.param().abi(), core::mem::transmute(psyncid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DeleteItems(&self, rgpszpaths: &[windows_core::PCWSTR], dwflags: u32, basync: bool, piprogress: P4) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItems)(windows_core::Interface::as_raw(self), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), core::mem::transmute(dwflags), basync.into(), piprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItems)(windows_core::Interface::as_raw(self), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.into(), piprogress.param().abi()).ok() } pub unsafe fn DeleteItemsForUser(&self, pszuser: P0, rgpszpaths: &[windows_core::PCWSTR], dwflags: u32, basync: bool, piprogress: P5) -> windows_core::Result<()> where P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItemsForUser)(windows_core::Interface::as_raw(self), pszuser.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), core::mem::transmute(dwflags), basync.into(), piprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItemsForUser)(windows_core::Interface::as_raw(self), pszuser.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.into(), piprogress.param().abi()).ok() } pub unsafe fn Pin(&self, hwndparent: Option, rgpszpaths: &[windows_core::PCWSTR], bdeep: bool, basync: bool, dwpincontrolflags: u32, piprogress: P6) -> windows_core::Result<()> where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Pin)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into(), basync.into(), core::mem::transmute(dwpincontrolflags), piprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Pin)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into(), basync.into(), dwpincontrolflags, piprogress.param().abi()).ok() } pub unsafe fn Unpin(&self, hwndparent: Option, rgpszpaths: &[windows_core::PCWSTR], bdeep: bool, basync: bool, dwpincontrolflags: u32, piprogress: P6) -> windows_core::Result<()> where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Unpin)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into(), basync.into(), core::mem::transmute(dwpincontrolflags), piprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Unpin)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into(), basync.into(), dwpincontrolflags, piprogress.param().abi()).ok() } pub unsafe fn GetEncryptionStatus(&self, pbencrypted: *mut super::super::Foundation::BOOL, pbpartial: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEncryptionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pbencrypted), core::mem::transmute(pbpartial)).ok() @@ -196,14 +196,14 @@ impl IOfflineFilesCache { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Encrypt)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), bencrypt.into(), core::mem::transmute(dwencryptioncontrolflags), basync.into(), piprogress.param().abi()).ok() + (windows_core::Interface::vtable(self).Encrypt)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), bencrypt.into(), dwencryptioncontrolflags, basync.into(), piprogress.param().abi()).ok() } pub unsafe fn FindItem(&self, pszpath: P0, dwqueryflags: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItem)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(dwqueryflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItem)(windows_core::Interface::as_raw(self), pszpath.param().abi(), dwqueryflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindItemEx(&self, pszpath: P0, pincludefilefilter: P1, pincludedirfilter: P2, pexcludefilefilter: P3, pexcludedirfilter: P4, dwqueryflags: u32) -> windows_core::Result where @@ -214,7 +214,7 @@ impl IOfflineFilesCache { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemEx)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pincludefilefilter.param().abi(), pincludedirfilter.param().abi(), pexcludefilefilter.param().abi(), pexcludedirfilter.param().abi(), core::mem::transmute(dwqueryflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemEx)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pincludefilefilter.param().abi(), pincludedirfilter.param().abi(), pexcludefilefilter.param().abi(), pexcludedirfilter.param().abi(), dwqueryflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RenameItem(&self, pszpathoriginal: P0, pszpathnew: P1, breplaceifexists: bool) -> windows_core::Result<()> where @@ -231,7 +231,7 @@ impl IOfflineFilesCache { (windows_core::Interface::vtable(self).GetDiskSpaceInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbvolumetotal), core::mem::transmute(pcblimit), core::mem::transmute(pcbused), core::mem::transmute(pcbunpinnedlimit), core::mem::transmute(pcbunpinnedused)).ok() } pub unsafe fn SetDiskSpaceLimits(&self, cblimit: u64, cbunpinnedlimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiskSpaceLimits)(windows_core::Interface::as_raw(self), core::mem::transmute(cblimit), core::mem::transmute(cbunpinnedlimit)).ok() + (windows_core::Interface::vtable(self).SetDiskSpaceLimits)(windows_core::Interface::as_raw(self), cblimit, cbunpinnedlimit).ok() } pub unsafe fn ProcessAdminPinPolicy(&self, ppinprogress: P0, punpinprogress: P1) -> windows_core::Result<()> where @@ -585,14 +585,14 @@ impl IOfflineFilesConnectionInfo { (windows_core::Interface::vtable(self).GetConnectState)(windows_core::Interface::as_raw(self), core::mem::transmute(pconnectstate), core::mem::transmute(pofflinereason)).ok() } pub unsafe fn SetConnectState(&self, hwndparent: Option, dwflags: u32, connectstate: OFFLINEFILES_CONNECT_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectState)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(connectstate)).ok() + (windows_core::Interface::vtable(self).SetConnectState)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), dwflags, connectstate).ok() } pub unsafe fn TransitionOnline(&self, hwndparent: Option, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TransitionOnline)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).TransitionOnline)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn TransitionOffline(&self, hwndparent: Option, dwflags: u32, bforceopenfilesclosed: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TransitionOffline)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), bforceopenfilesclosed.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TransitionOffline)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), dwflags, bforceopenfilesclosed.into(), &mut result__).map(|| result__) } } #[repr(C)] @@ -808,34 +808,34 @@ impl IOfflineFilesEvents { (windows_core::Interface::vtable(self).EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.into(), bwaspartial.into(), bisencrypted.into(), bispartial.into()).ok() } pub unsafe fn SyncBegin(&self, rsyncid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SyncBegin)(windows_core::Interface::as_raw(self), core::mem::transmute(rsyncid)).ok() + (windows_core::Interface::vtable(self).SyncBegin)(windows_core::Interface::as_raw(self), rsyncid).ok() } pub unsafe fn SyncFileResult(&self, rsyncid: *const windows_core::GUID, pszfile: P1, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncFileResult)(windows_core::Interface::as_raw(self), core::mem::transmute(rsyncid), pszfile.param().abi(), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).SyncFileResult)(windows_core::Interface::as_raw(self), rsyncid, pszfile.param().abi(), hrresult).ok() } pub unsafe fn SyncConflictRecAdded(&self, pszconflictpath: P0, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConflictRecAdded)(windows_core::Interface::as_raw(self), pszconflictpath.param().abi(), core::mem::transmute(pftconflictdatetime), core::mem::transmute(conflictsyncstate)).ok() + (windows_core::Interface::vtable(self).SyncConflictRecAdded)(windows_core::Interface::as_raw(self), pszconflictpath.param().abi(), pftconflictdatetime, conflictsyncstate).ok() } pub unsafe fn SyncConflictRecUpdated(&self, pszconflictpath: P0, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConflictRecUpdated)(windows_core::Interface::as_raw(self), pszconflictpath.param().abi(), core::mem::transmute(pftconflictdatetime), core::mem::transmute(conflictsyncstate)).ok() + (windows_core::Interface::vtable(self).SyncConflictRecUpdated)(windows_core::Interface::as_raw(self), pszconflictpath.param().abi(), pftconflictdatetime, conflictsyncstate).ok() } pub unsafe fn SyncConflictRecRemoved(&self, pszconflictpath: P0, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConflictRecRemoved)(windows_core::Interface::as_raw(self), pszconflictpath.param().abi(), core::mem::transmute(pftconflictdatetime), core::mem::transmute(conflictsyncstate)).ok() + (windows_core::Interface::vtable(self).SyncConflictRecRemoved)(windows_core::Interface::as_raw(self), pszconflictpath.param().abi(), pftconflictdatetime, conflictsyncstate).ok() } pub unsafe fn SyncEnd(&self, rsyncid: *const windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SyncEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(rsyncid), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).SyncEnd)(windows_core::Interface::as_raw(self), rsyncid, hrresult).ok() } pub unsafe fn NetTransportArrived(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NetTransportArrived)(windows_core::Interface::as_raw(self)).ok() @@ -847,62 +847,62 @@ impl IOfflineFilesEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemDisconnected)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemDisconnected)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemReconnected(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemReconnected)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemReconnected)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemAvailableOffline(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemNotAvailableOffline(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemNotAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemNotAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemPinned(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemNotPinned(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemModified(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: bool, bmodifiedattributes: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemModified)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype), bmodifieddata.into(), bmodifiedattributes.into()).ok() + (windows_core::Interface::vtable(self).ItemModified)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype, bmodifieddata.into(), bmodifiedattributes.into()).ok() } pub unsafe fn ItemAddedToCache(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemAddedToCache)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemAddedToCache)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemDeletedFromCache(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemDeletedFromCache)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemDeletedFromCache)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemRenamed(&self, pszoldpath: P0, psznewpath: P1, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemRenamed)(windows_core::Interface::as_raw(self), pszoldpath.param().abi(), psznewpath.param().abi(), core::mem::transmute(itemtype)).ok() + (windows_core::Interface::vtable(self).ItemRenamed)(windows_core::Interface::as_raw(self), pszoldpath.param().abi(), psznewpath.param().abi(), itemtype).ok() } pub unsafe fn DataLost(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DataLost)(windows_core::Interface::as_raw(self)).ok() @@ -1125,10 +1125,10 @@ impl IOfflineFilesEvents2 { (windows_core::Interface::vtable(self).CacheEvictEnd)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn BackgroundSyncBegin(&self, dwsynccontrolflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BackgroundSyncBegin)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsynccontrolflags)).ok() + (windows_core::Interface::vtable(self).BackgroundSyncBegin)(windows_core::Interface::as_raw(self), dwsynccontrolflags).ok() } pub unsafe fn BackgroundSyncEnd(&self, dwsynccontrolflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BackgroundSyncEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsynccontrolflags)).ok() + (windows_core::Interface::vtable(self).BackgroundSyncEnd)(windows_core::Interface::as_raw(self), dwsynccontrolflags).ok() } pub unsafe fn PolicyChangeDetected(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PolicyChangeDetected)(windows_core::Interface::as_raw(self)).ok() @@ -1234,7 +1234,7 @@ impl IOfflineFilesEvents3 { P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).TransparentCacheItemNotify)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(eventtype), core::mem::transmute(itemtype), bmodifieddata.into(), bmodifiedattributes.into(), pzsoldpath.param().abi()).ok() + (windows_core::Interface::vtable(self).TransparentCacheItemNotify)(windows_core::Interface::as_raw(self), pszpath.param().abi(), eventtype, itemtype, bmodifieddata.into(), bmodifiedattributes.into(), pzsoldpath.param().abi()).ok() } pub unsafe fn PrefetchFileBegin(&self, pszpath: P0) -> windows_core::Result<()> where @@ -1246,7 +1246,7 @@ impl IOfflineFilesEvents3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrefetchFileEnd)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).PrefetchFileEnd)(windows_core::Interface::as_raw(self), pszpath.param().abi(), hrresult).ok() } } #[repr(C)] @@ -1300,7 +1300,7 @@ impl IOfflineFilesEvents4 { (windows_core::Interface::vtable(self).PrefetchCloseHandleBegin)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PrefetchCloseHandleEnd(&self, dwclosedhandlecount: u32, dwopenhandlecount: u32, hrresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrefetchCloseHandleEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclosedhandlecount), core::mem::transmute(dwopenhandlecount), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).PrefetchCloseHandleEnd)(windows_core::Interface::as_raw(self), dwclosedhandlecount, dwopenhandlecount, hrresult).ok() } } #[repr(C)] @@ -1447,14 +1447,14 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesFileSysInfo, windows_core:: impl IOfflineFilesFileSysInfo { pub unsafe fn GetAttributes(&self, copy: OFFLINEFILES_ITEM_COPY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(copy), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), copy, &mut result__).map(|| result__) } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(copy), core::mem::transmute(pftcreationtime), core::mem::transmute(pftlastwritetime), core::mem::transmute(pftchangetime), core::mem::transmute(pftlastaccesstime)).ok() + (windows_core::Interface::vtable(self).GetTimes)(windows_core::Interface::as_raw(self), copy, core::mem::transmute(pftcreationtime), core::mem::transmute(pftlastwritetime), core::mem::transmute(pftchangetime), core::mem::transmute(pftlastaccesstime)).ok() } pub unsafe fn GetFileSize(&self, copy: OFFLINEFILES_ITEM_COPY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileSize)(windows_core::Interface::as_raw(self), core::mem::transmute(copy), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFileSize)(windows_core::Interface::as_raw(self), copy, &mut result__).map(|| result__) } } #[repr(C)] @@ -1558,7 +1558,7 @@ impl IOfflineFilesItem { (windows_core::Interface::vtable(self).GetParentItem)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Refresh(&self, dwqueryflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), core::mem::transmute(dwqueryflags)).ok() + (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), dwqueryflags).ok() } pub unsafe fn IsMarkedForDeletion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1646,7 +1646,7 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesItemContainer, windows_core impl IOfflineFilesItemContainer { pub unsafe fn EnumItems(&self, dwqueryflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumItems)(windows_core::Interface::as_raw(self), core::mem::transmute(dwqueryflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumItems)(windows_core::Interface::as_raw(self), dwqueryflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumItemsEx(&self, pincludefilefilter: P0, pincludedirfilter: P1, pexcludefilefilter: P2, pexcludedirfilter: P3, dwenumflags: u32, dwqueryflags: u32) -> windows_core::Result where @@ -1656,7 +1656,7 @@ impl IOfflineFilesItemContainer { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumItemsEx)(windows_core::Interface::as_raw(self), pincludefilefilter.param().abi(), pincludedirfilter.param().abi(), pexcludefilefilter.param().abi(), pexcludedirfilter.param().abi(), core::mem::transmute(dwenumflags), core::mem::transmute(dwqueryflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumItemsEx)(windows_core::Interface::as_raw(self), pincludefilefilter.param().abi(), pincludedirfilter.param().abi(), pexcludefilefilter.param().abi(), pexcludedirfilter.param().abi(), dwenumflags, dwqueryflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1884,7 +1884,7 @@ impl IOfflineFilesProgress { (windows_core::Interface::vtable(self).QueryAbort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn End(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), hrresult).ok() } } #[repr(C)] @@ -1972,7 +1972,7 @@ impl IOfflineFilesSetting { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPreference(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, dwscope: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), core::mem::transmute(dwscope)).ok() + (windows_core::Interface::vtable(self).GetPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), dwscope).ok() } pub unsafe fn GetPreferenceScope(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1980,14 +1980,14 @@ impl IOfflineFilesSetting { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetPreference(&self, pvarvalue: *const super::super::System::Variant::VARIANT, dwscope: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), core::mem::transmute(dwscope)).ok() + (windows_core::Interface::vtable(self).SetPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), dwscope).ok() } pub unsafe fn DeletePreference(&self, dwscope: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePreference)(windows_core::Interface::as_raw(self), core::mem::transmute(dwscope)).ok() + (windows_core::Interface::vtable(self).DeletePreference)(windows_core::Interface::as_raw(self), dwscope).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPolicy(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, dwscope: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), core::mem::transmute(dwscope)).ok() + (windows_core::Interface::vtable(self).GetPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), dwscope).ok() } pub unsafe fn GetPolicyScope(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2232,7 +2232,7 @@ impl IOfflineFilesSimpleProgress { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ItemResult)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(hrresult), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ItemResult)(windows_core::Interface::as_raw(self), pszfile.param().abi(), hrresult, &mut result__).map(|| result__) } } #[repr(C)] @@ -2341,7 +2341,7 @@ impl IOfflineFilesSyncConflictHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveConflict)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(fstateknown), core::mem::transmute(state), core::mem::transmute(fchangedetails), core::mem::transmute(pconflictresolution), core::mem::transmute(ppsznewname)).ok() + (windows_core::Interface::vtable(self).ResolveConflict)(windows_core::Interface::as_raw(self), pszpath.param().abi(), fstateknown, state, fchangedetails, core::mem::transmute(pconflictresolution), core::mem::transmute(ppsznewname)).ok() } } #[repr(C)] @@ -2587,7 +2587,7 @@ impl IOfflineFilesSyncProgress { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SyncItemResult)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(hrresult), perrorinfo.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SyncItemResult)(windows_core::Interface::as_raw(self), pszfile.param().abi(), hrresult, perrorinfo.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs index 0c1ab03def..864bb676f8 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn OperationEnd(operationendparams: *const OPERATION_END_PARAMETERS) -> super::super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn OperationEnd(operationendparams : *const OPERATION_END_PARAMETERS) -> super::super::Foundation:: BOOL); - OperationEnd(core::mem::transmute(operationendparams)) + OperationEnd(operationendparams) } #[inline] pub unsafe fn OperationStart(operationstartparams: *const OPERATION_START_PARAMETERS) -> super::super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn OperationStart(operationstartparams : *const OPERATION_START_PARAMETERS) -> super::super::Foundation:: BOOL); - OperationStart(core::mem::transmute(operationstartparams)) + OperationStart(operationstartparams) } pub const OPERATION_END_DISCARD: OPERATION_END_PARAMETERS_FLAGS = OPERATION_END_PARAMETERS_FLAGS(1u32); #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/mod.rs index 95de760830..e20167180c 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/mod.rs @@ -2,7 +2,7 @@ pub unsafe fn ActivatePackageVirtualizationContext(context: PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn ActivatePackageVirtualizationContext(context : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE, cookie : *mut usize) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ActivatePackageVirtualizationContext(core::mem::transmute(context), &mut result__).map(|| core::mem::transmute(result__)) + ActivatePackageVirtualizationContext(context, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn AddPackageDependency(packagedependencyid: P0, rank: i32, options: AddPackageDependencyOptions, packagedependencycontext: *mut PACKAGEDEPENDENCY_CONTEXT, packagefullname: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -10,47 +10,47 @@ where P0: windows_core::Param, { windows_targets::link!("kernelbase.dll" "system" fn AddPackageDependency(packagedependencyid : windows_core::PCWSTR, rank : i32, options : AddPackageDependencyOptions, packagedependencycontext : *mut PACKAGEDEPENDENCY_CONTEXT, packagefullname : *mut windows_core::PWSTR) -> windows_core::HRESULT); - AddPackageDependency(packagedependencyid.param().abi(), core::mem::transmute(rank), core::mem::transmute(options), core::mem::transmute(packagedependencycontext), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))).ok() + AddPackageDependency(packagedependencyid.param().abi(), rank, options, core::mem::transmute(packagedependencycontext), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AppPolicyGetClrCompat(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyClrCompat) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetClrCompat(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyClrCompat) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetClrCompat(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetClrCompat(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetCreateFileAccess(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyCreateFileAccess) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetCreateFileAccess(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyCreateFileAccess) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetCreateFileAccess(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetCreateFileAccess(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetLifecycleManagement(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyLifecycleManagement) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetLifecycleManagement(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyLifecycleManagement) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetLifecycleManagement(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetLifecycleManagement(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetMediaFoundationCodecLoading(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyMediaFoundationCodecLoading) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetMediaFoundationCodecLoading(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyMediaFoundationCodecLoading) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetMediaFoundationCodecLoading(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetMediaFoundationCodecLoading(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetProcessTerminationMethod(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyProcessTerminationMethod) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetProcessTerminationMethod(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyProcessTerminationMethod) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetProcessTerminationMethod(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetProcessTerminationMethod(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetShowDeveloperDiagnostic(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyShowDeveloperDiagnostic) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetShowDeveloperDiagnostic(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyShowDeveloperDiagnostic) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetShowDeveloperDiagnostic(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetShowDeveloperDiagnostic(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetThreadInitializationType(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyThreadInitializationType) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetThreadInitializationType(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyThreadInitializationType) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetThreadInitializationType(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetThreadInitializationType(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn AppPolicyGetWindowingModel(processtoken: super::super::super::Foundation::HANDLE, policy: *mut AppPolicyWindowingModel) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetWindowingModel(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyWindowingModel) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetWindowingModel(core::mem::transmute(processtoken), core::mem::transmute(policy)) + AppPolicyGetWindowingModel(processtoken, core::mem::transmute(policy)) } #[inline] pub unsafe fn CheckIsMSIXPackage(packagefullname: P0) -> windows_core::Result @@ -64,7 +64,7 @@ where #[inline] pub unsafe fn ClosePackageInfo(packageinforeference: *const _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn ClosePackageInfo(packageinforeference : *const _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation:: WIN32_ERROR); - ClosePackageInfo(core::mem::transmute(packageinforeference)) + ClosePackageInfo(packageinforeference) } #[inline] pub unsafe fn CreatePackageVirtualizationContext(packagefamilyname: P0) -> windows_core::Result @@ -78,7 +78,7 @@ where #[inline] pub unsafe fn DeactivatePackageVirtualizationContext(cookie: usize) { windows_targets::link!("kernel32.dll" "system" fn DeactivatePackageVirtualizationContext(cookie : usize)); - DeactivatePackageVirtualizationContext(core::mem::transmute(cookie)) + DeactivatePackageVirtualizationContext(cookie) } #[inline] pub unsafe fn DeletePackageDependency(packagedependencyid: P0) -> windows_core::Result<()> @@ -92,7 +92,7 @@ where pub unsafe fn DuplicatePackageVirtualizationContext(sourcecontext: PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn DuplicatePackageVirtualizationContext(sourcecontext : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE, destcontext : *mut PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DuplicatePackageVirtualizationContext(core::mem::transmute(sourcecontext), &mut result__).map(|| core::mem::transmute(result__)) + DuplicatePackageVirtualizationContext(sourcecontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn FindPackagesByPackageFamily(packagefamilyname: P0, packagefilters: u32, count: *mut u32, packagefullnames: Option<*mut windows_core::PWSTR>, bufferlength: *mut u32, buffer: Option, packageproperties: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR @@ -100,7 +100,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindPackagesByPackageFamily(packagefamilyname : windows_core::PCWSTR, packagefilters : u32, count : *mut u32, packagefullnames : *mut windows_core::PWSTR, bufferlength : *mut u32, buffer : windows_core::PWSTR, packageproperties : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - FindPackagesByPackageFamily(packagefamilyname.param().abi(), core::mem::transmute(packagefilters), core::mem::transmute(count), core::mem::transmute(packagefullnames.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(packageproperties.unwrap_or(core::mem::zeroed()))) + FindPackagesByPackageFamily(packagefamilyname.param().abi(), packagefilters, core::mem::transmute(count), core::mem::transmute(packagefullnames.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(packageproperties.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FormatApplicationUserModelId(packagefamilyname: P0, packagerelativeapplicationid: P1, applicationusermodelidlength: *mut u32, applicationusermodelid: Option) -> super::super::super::Foundation::WIN32_ERROR @@ -114,12 +114,12 @@ where #[inline] pub unsafe fn GetApplicationUserModelId(hprocess: super::super::super::Foundation::HANDLE, applicationusermodelidlength: *mut u32, applicationusermodelid: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetApplicationUserModelId(hprocess : super::super::super::Foundation:: HANDLE, applicationusermodelidlength : *mut u32, applicationusermodelid : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetApplicationUserModelId(core::mem::transmute(hprocess), core::mem::transmute(applicationusermodelidlength), core::mem::transmute(applicationusermodelid.unwrap_or(core::mem::zeroed()))) + GetApplicationUserModelId(hprocess, core::mem::transmute(applicationusermodelidlength), core::mem::transmute(applicationusermodelid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetApplicationUserModelIdFromToken(token: super::super::super::Foundation::HANDLE, applicationusermodelidlength: *mut u32, applicationusermodelid: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn GetApplicationUserModelIdFromToken(token : super::super::super::Foundation:: HANDLE, applicationusermodelidlength : *mut u32, applicationusermodelid : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetApplicationUserModelIdFromToken(core::mem::transmute(token), core::mem::transmute(applicationusermodelidlength), core::mem::transmute(applicationusermodelid.unwrap_or(core::mem::zeroed()))) + GetApplicationUserModelIdFromToken(token, core::mem::transmute(applicationusermodelidlength), core::mem::transmute(applicationusermodelid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCurrentApplicationUserModelId(applicationusermodelidlength: *mut u32, applicationusermodelid: Option) -> super::super::super::Foundation::WIN32_ERROR { @@ -144,17 +144,17 @@ pub unsafe fn GetCurrentPackageId(bufferlength: *mut u32, buffer: Option<*mut u8 #[inline] pub unsafe fn GetCurrentPackageInfo(flags: u32, bufferlength: *mut u32, buffer: Option<*mut u8>, count: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetCurrentPackageInfo(flags : u32, bufferlength : *mut u32, buffer : *mut u8, count : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - GetCurrentPackageInfo(core::mem::transmute(flags), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + GetCurrentPackageInfo(flags, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCurrentPackageInfo2(flags: u32, packagepathtype: PackagePathType, bufferlength: *mut u32, buffer: Option<*mut u8>, count: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-3.dll" "system" fn GetCurrentPackageInfo2(flags : u32, packagepathtype : PackagePathType, bufferlength : *mut u32, buffer : *mut u8, count : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - GetCurrentPackageInfo2(core::mem::transmute(flags), core::mem::transmute(packagepathtype), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + GetCurrentPackageInfo2(flags, packagepathtype, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCurrentPackageInfo3(flags: u32, packageinfotype: PackageInfo3Type, bufferlength: *mut u32, buffer: Option<*mut core::ffi::c_void>, count: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCurrentPackageInfo3(flags : u32, packageinfotype : PackageInfo3Type, bufferlength : *mut u32, buffer : *mut core::ffi::c_void, count : *mut u32) -> windows_core::HRESULT); - GetCurrentPackageInfo3(core::mem::transmute(flags), core::mem::transmute(packageinfotype), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))).ok() + GetCurrentPackageInfo3(flags, packageinfotype, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetCurrentPackagePath(pathlength: *mut u32, path: Option) -> super::super::super::Foundation::WIN32_ERROR { @@ -164,7 +164,7 @@ pub unsafe fn GetCurrentPackagePath(pathlength: *mut u32, path: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-3.dll" "system" fn GetCurrentPackagePath2(packagepathtype : PackagePathType, pathlength : *mut u32, path : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetCurrentPackagePath2(core::mem::transmute(packagepathtype), core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) + GetCurrentPackagePath2(packagepathtype, core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCurrentPackageVirtualizationContext() -> PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE { @@ -175,32 +175,32 @@ pub unsafe fn GetCurrentPackageVirtualizationContext() -> PACKAGE_VIRTUALIZATION pub unsafe fn GetIdForPackageDependencyContext(packagedependencycontext: PACKAGEDEPENDENCY_CONTEXT) -> windows_core::Result { windows_targets::link!("kernelbase.dll" "system" fn GetIdForPackageDependencyContext(packagedependencycontext : PACKAGEDEPENDENCY_CONTEXT, packagedependencyid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetIdForPackageDependencyContext(core::mem::transmute(packagedependencycontext), &mut result__).map(|| core::mem::transmute(result__)) + GetIdForPackageDependencyContext(packagedependencycontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetPackageApplicationIds(packageinforeference: *const _PACKAGE_INFO_REFERENCE, bufferlength: *mut u32, buffer: Option<*mut u8>, count: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetPackageApplicationIds(packageinforeference : *const _PACKAGE_INFO_REFERENCE, bufferlength : *mut u32, buffer : *mut u8, count : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageApplicationIds(core::mem::transmute(packageinforeference), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + GetPackageApplicationIds(packageinforeference, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageFamilyName(hprocess: super::super::super::Foundation::HANDLE, packagefamilynamelength: *mut u32, packagefamilyname: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetPackageFamilyName(hprocess : super::super::super::Foundation:: HANDLE, packagefamilynamelength : *mut u32, packagefamilyname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageFamilyName(core::mem::transmute(hprocess), core::mem::transmute(packagefamilynamelength), core::mem::transmute(packagefamilyname.unwrap_or(core::mem::zeroed()))) + GetPackageFamilyName(hprocess, core::mem::transmute(packagefamilynamelength), core::mem::transmute(packagefamilyname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageFamilyNameFromToken(token: super::super::super::Foundation::HANDLE, packagefamilynamelength: *mut u32, packagefamilyname: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn GetPackageFamilyNameFromToken(token : super::super::super::Foundation:: HANDLE, packagefamilynamelength : *mut u32, packagefamilyname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageFamilyNameFromToken(core::mem::transmute(token), core::mem::transmute(packagefamilynamelength), core::mem::transmute(packagefamilyname.unwrap_or(core::mem::zeroed()))) + GetPackageFamilyNameFromToken(token, core::mem::transmute(packagefamilynamelength), core::mem::transmute(packagefamilyname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageFullName(hprocess: super::super::super::Foundation::HANDLE, packagefullnamelength: *mut u32, packagefullname: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetPackageFullName(hprocess : super::super::super::Foundation:: HANDLE, packagefullnamelength : *mut u32, packagefullname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageFullName(core::mem::transmute(hprocess), core::mem::transmute(packagefullnamelength), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))) + GetPackageFullName(hprocess, core::mem::transmute(packagefullnamelength), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageFullNameFromToken(token: super::super::super::Foundation::HANDLE, packagefullnamelength: *mut u32, packagefullname: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn GetPackageFullNameFromToken(token : super::super::super::Foundation:: HANDLE, packagefullnamelength : *mut u32, packagefullname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageFullNameFromToken(core::mem::transmute(token), core::mem::transmute(packagefullnamelength), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))) + GetPackageFullNameFromToken(token, core::mem::transmute(packagefullnamelength), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageGraphRevisionId() -> u32 { @@ -210,22 +210,22 @@ pub unsafe fn GetPackageGraphRevisionId() -> u32 { #[inline] pub unsafe fn GetPackageId(hprocess: super::super::super::Foundation::HANDLE, bufferlength: *mut u32, buffer: Option<*mut u8>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetPackageId(hprocess : super::super::super::Foundation:: HANDLE, bufferlength : *mut u32, buffer : *mut u8) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageId(core::mem::transmute(hprocess), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + GetPackageId(hprocess, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageInfo(packageinforeference: *const _PACKAGE_INFO_REFERENCE, flags: u32, bufferlength: *mut u32, buffer: Option<*mut u8>, count: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetPackageInfo(packageinforeference : *const _PACKAGE_INFO_REFERENCE, flags : u32, bufferlength : *mut u32, buffer : *mut u8, count : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageInfo(core::mem::transmute(packageinforeference), core::mem::transmute(flags), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + GetPackageInfo(packageinforeference, flags, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackageInfo2(packageinforeference: *const _PACKAGE_INFO_REFERENCE, flags: u32, packagepathtype: PackagePathType, bufferlength: *mut u32, buffer: Option<*mut u8>, count: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-3.dll" "system" fn GetPackageInfo2(packageinforeference : *const _PACKAGE_INFO_REFERENCE, flags : u32, packagepathtype : PackagePathType, bufferlength : *mut u32, buffer : *mut u8, count : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackageInfo2(core::mem::transmute(packageinforeference), core::mem::transmute(flags), core::mem::transmute(packagepathtype), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + GetPackageInfo2(packageinforeference, flags, packagepathtype, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackagePath(packageid: *const PACKAGE_ID, reserved: Option, pathlength: *mut u32, path: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn GetPackagePath(packageid : *const PACKAGE_ID, reserved : u32, pathlength : *mut u32, path : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackagePath(core::mem::transmute(packageid), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) + GetPackagePath(packageid, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackagePathByFullName(packagefullname: P0, pathlength: *mut u32, path: Option) -> super::super::super::Foundation::WIN32_ERROR @@ -241,7 +241,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-3.dll" "system" fn GetPackagePathByFullName2(packagefullname : windows_core::PCWSTR, packagepathtype : PackagePathType, pathlength : *mut u32, path : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackagePathByFullName2(packagefullname.param().abi(), core::mem::transmute(packagepathtype), core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) + GetPackagePathByFullName2(packagefullname.param().abi(), packagepathtype, core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetPackagesByPackageFamily(packagefamilyname: P0, count: *mut u32, packagefullnames: Option<*mut windows_core::PWSTR>, bufferlength: *mut u32, buffer: Option) -> super::super::super::Foundation::WIN32_ERROR @@ -290,7 +290,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-3.dll" "system" fn GetStagedPackagePathByFullName2(packagefullname : windows_core::PCWSTR, packagepathtype : PackagePathType, pathlength : *mut u32, path : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetStagedPackagePathByFullName2(packagefullname.param().abi(), core::mem::transmute(packagepathtype), core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) + GetStagedPackagePathByFullName2(packagefullname.param().abi(), packagepathtype, core::mem::transmute(pathlength), core::mem::transmute(path.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OpenPackageInfoByFullName(packagefullname: P0, reserved: Option, packageinforeference: *mut *mut _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation::WIN32_ERROR @@ -320,12 +320,12 @@ where #[inline] pub unsafe fn PackageFamilyNameFromId(packageid: *const PACKAGE_ID, packagefamilynamelength: *mut u32, packagefamilyname: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn PackageFamilyNameFromId(packageid : *const PACKAGE_ID, packagefamilynamelength : *mut u32, packagefamilyname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - PackageFamilyNameFromId(core::mem::transmute(packageid), core::mem::transmute(packagefamilynamelength), core::mem::transmute(packagefamilyname.unwrap_or(core::mem::zeroed()))) + PackageFamilyNameFromId(packageid, core::mem::transmute(packagefamilynamelength), core::mem::transmute(packagefamilyname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PackageFullNameFromId(packageid: *const PACKAGE_ID, packagefullnamelength: *mut u32, packagefullname: Option) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("kernel32.dll" "system" fn PackageFullNameFromId(packageid : *const PACKAGE_ID, packagefullnamelength : *mut u32, packagefullname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - PackageFullNameFromId(core::mem::transmute(packageid), core::mem::transmute(packagefullnamelength), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))) + PackageFullNameFromId(packageid, core::mem::transmute(packagefullnamelength), core::mem::transmute(packagefullname.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PackageIdFromFullName(packagefullname: P0, flags: u32, bufferlength: *mut u32, buffer: Option<*mut u8>) -> super::super::super::Foundation::WIN32_ERROR @@ -333,7 +333,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PackageIdFromFullName(packagefullname : windows_core::PCWSTR, flags : u32, bufferlength : *mut u32, buffer : *mut u8) -> super::super::super::Foundation:: WIN32_ERROR); - PackageIdFromFullName(packagefullname.param().abi(), core::mem::transmute(flags), core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + PackageIdFromFullName(packagefullname.param().abi(), flags, core::mem::transmute(bufferlength), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PackageNameAndPublisherIdFromFamilyName(packagefamilyname: P0, packagenamelength: *mut u32, packagename: Option, packagepublisheridlength: *mut u32, packagepublisherid: Option) -> super::super::super::Foundation::WIN32_ERROR @@ -354,12 +354,12 @@ where #[inline] pub unsafe fn ReleasePackageVirtualizationContext(context: PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) { windows_targets::link!("kernel32.dll" "system" fn ReleasePackageVirtualizationContext(context : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE)); - ReleasePackageVirtualizationContext(core::mem::transmute(context)) + ReleasePackageVirtualizationContext(context) } #[inline] pub unsafe fn RemovePackageDependency(packagedependencycontext: PACKAGEDEPENDENCY_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("kernelbase.dll" "system" fn RemovePackageDependency(packagedependencycontext : PACKAGEDEPENDENCY_CONTEXT) -> windows_core::HRESULT); - RemovePackageDependency(core::mem::transmute(packagedependencycontext)).ok() + RemovePackageDependency(packagedependencycontext).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -370,7 +370,7 @@ where { windows_targets::link!("kernelbase.dll" "system" fn TryCreatePackageDependency(user : super::super::super::Security:: PSID, packagefamilyname : windows_core::PCWSTR, minversion : PACKAGE_VERSION, packagedependencyprocessorarchitectures : PackageDependencyProcessorArchitectures, lifetimekind : PackageDependencyLifetimeKind, lifetimeartifact : windows_core::PCWSTR, options : CreatePackageDependencyOptions, packagedependencyid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - TryCreatePackageDependency(core::mem::transmute(user), packagefamilyname.param().abi(), core::mem::transmute(minversion), core::mem::transmute(packagedependencyprocessorarchitectures), core::mem::transmute(lifetimekind), lifetimeartifact.param().abi(), core::mem::transmute(options), &mut result__).map(|| core::mem::transmute(result__)) + TryCreatePackageDependency(user, packagefamilyname.param().abi(), core::mem::transmute(minversion), packagedependencyprocessorarchitectures, lifetimekind, lifetimeartifact.param().abi(), options, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VerifyApplicationUserModelId(applicationusermodelid: P0) -> super::super::super::Foundation::WIN32_ERROR @@ -399,7 +399,7 @@ where #[inline] pub unsafe fn VerifyPackageId(packageid: *const PACKAGE_ID) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn VerifyPackageId(packageid : *const PACKAGE_ID) -> super::super::super::Foundation:: WIN32_ERROR); - VerifyPackageId(core::mem::transmute(packageid)) + VerifyPackageId(packageid) } #[inline] pub unsafe fn VerifyPackageRelativeApplicationId(packagerelativeapplicationid: P0) -> super::super::super::Foundation::WIN32_ERROR @@ -1288,7 +1288,7 @@ impl IAppxBundleFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBundleWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), core::mem::transmute(bundleversion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBundleWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), bundleversion, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBundleReader(&self, inputstream: P0) -> windows_core::Result @@ -2021,7 +2021,7 @@ windows_core::imp::interface_hierarchy!(IAppxBundleReader, windows_core::IUnknow impl IAppxBundleReader { pub unsafe fn GetFootprintFile(&self, filetype: APPX_BUNDLE_FOOTPRINT_FILE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFootprintFile)(windows_core::Interface::as_raw(self), core::mem::transmute(filetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFootprintFile)(windows_core::Interface::as_raw(self), filetype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBlockMap(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2851,7 +2851,7 @@ impl IAppxEncryptedPackageWriter { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadFileEncrypted)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(compressionoption), inputstream.param().abi()).ok() + (windows_core::Interface::vtable(self).AddPayloadFileEncrypted)(windows_core::Interface::as_raw(self), filename.param().abi(), compressionoption, inputstream.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -2899,7 +2899,7 @@ windows_core::imp::interface_hierarchy!(IAppxEncryptedPackageWriter2, windows_co impl IAppxEncryptedPackageWriter2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadFilesEncrypted(&self, payloadfiles: &[APPX_PACKAGE_WRITER_PAYLOAD_STREAM], memorylimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPayloadFilesEncrypted)(windows_core::Interface::as_raw(self), payloadfiles.len().try_into().unwrap(), core::mem::transmute(payloadfiles.as_ptr()), core::mem::transmute(memorylimit)).ok() + (windows_core::Interface::vtable(self).AddPayloadFilesEncrypted)(windows_core::Interface::as_raw(self), payloadfiles.len().try_into().unwrap(), core::mem::transmute(payloadfiles.as_ptr()), memorylimit).ok() } } #[repr(C)] @@ -2938,7 +2938,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles)).ok() + (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DecryptPackage(&self, inputstream: P0, outputstream: P1, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result<()> @@ -2946,7 +2946,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(keyinfo)).ok() + (windows_core::Interface::vtable(self).DecryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), keyinfo).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedPackageWriter(&self, outputstream: P0, manifeststream: P1, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result @@ -2955,7 +2955,7 @@ impl IAppxEncryptionFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), manifeststream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), manifeststream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedPackageReader(&self, inputstream: P0, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result @@ -2963,7 +2963,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), core::mem::transmute(keyinfo), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedPackageReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), keyinfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptBundle(&self, inputstream: P0, outputstream: P1, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()> @@ -2971,7 +2971,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles)).ok() + (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DecryptBundle(&self, inputstream: P0, outputstream: P1, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result<()> @@ -2979,7 +2979,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(keyinfo)).ok() + (windows_core::Interface::vtable(self).DecryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), keyinfo).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedBundleWriter(&self, outputstream: P0, bundleversion: u64, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result @@ -2987,7 +2987,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), core::mem::transmute(bundleversion), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), bundleversion, core::mem::transmute(settings), keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedBundleReader(&self, inputstream: P0, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result @@ -2995,7 +2995,7 @@ impl IAppxEncryptionFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), core::mem::transmute(keyinfo), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedBundleReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), keyinfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3133,7 +3133,7 @@ impl IAppxEncryptionFactory2 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), manifeststream.param().abi(), contentgroupmapstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), manifeststream.param().abi(), contentgroupmapstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3178,7 +3178,7 @@ impl IAppxEncryptionFactory3 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles)).ok() + (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedPackageWriter(&self, outputstream: P0, manifeststream: P1, contentgroupmapstream: P2, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result @@ -3188,7 +3188,7 @@ impl IAppxEncryptionFactory3 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), manifeststream.param().abi(), contentgroupmapstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), manifeststream.param().abi(), contentgroupmapstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptBundle(&self, inputstream: P0, outputstream: P1, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()> @@ -3196,7 +3196,7 @@ impl IAppxEncryptionFactory3 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles)).ok() + (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedBundleWriter(&self, outputstream: P0, bundleversion: u64, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result @@ -3204,7 +3204,7 @@ impl IAppxEncryptionFactory3 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), core::mem::transmute(bundleversion), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), bundleversion, core::mem::transmute(settings), keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3288,7 +3288,7 @@ impl IAppxEncryptionFactory4 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), core::mem::transmute(keyinfo), core::mem::transmute(exemptedfiles), core::mem::transmute(memorylimit)).ok() + (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), core::mem::transmute(settings), keyinfo, exemptedfiles, memorylimit).ok() } } #[repr(C)] @@ -3328,7 +3328,7 @@ impl IAppxEncryptionFactory5 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), core::mem::transmute(keyinfo), expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedPackageReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), keyinfo, expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedBundleReader2(&self, inputstream: P0, keyinfo: *const APPX_KEY_INFO, expecteddigest: P2) -> windows_core::Result @@ -3337,7 +3337,7 @@ impl IAppxEncryptionFactory5 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), core::mem::transmute(keyinfo), expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEncryptedBundleReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), keyinfo, expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5808,7 +5808,7 @@ windows_core::imp::interface_hierarchy!(IAppxManifestReader3, windows_core::IUnk impl IAppxManifestReader3 { pub unsafe fn GetCapabilitiesByCapabilityClass(&self, capabilityclass: APPX_CAPABILITY_CLASS_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCapabilitiesByCapabilityClass)(windows_core::Interface::as_raw(self), core::mem::transmute(capabilityclass), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCapabilitiesByCapabilityClass)(windows_core::Interface::as_raw(self), capabilityclass, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTargetDeviceFamilies(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6300,7 +6300,7 @@ impl IAppxPackageEditor { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePackage)(windows_core::Interface::as_raw(self), baselinepackagestream.param().abi(), deltapackagestream.param().abi(), core::mem::transmute(updateoption)).ok() + (windows_core::Interface::vtable(self).UpdatePackage)(windows_core::Interface::as_raw(self), baselinepackagestream.param().abi(), deltapackagestream.param().abi(), updateoption).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateEncryptedPackage(&self, baselineencryptedpackagestream: P0, deltapackagestream: P1, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result<()> @@ -6308,7 +6308,7 @@ impl IAppxPackageEditor { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateEncryptedPackage)(windows_core::Interface::as_raw(self), baselineencryptedpackagestream.param().abi(), deltapackagestream.param().abi(), core::mem::transmute(updateoption), core::mem::transmute(settings), core::mem::transmute(keyinfo)).ok() + (windows_core::Interface::vtable(self).UpdateEncryptedPackage)(windows_core::Interface::as_raw(self), baselineencryptedpackagestream.param().abi(), deltapackagestream.param().abi(), updateoption, core::mem::transmute(settings), keyinfo).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdatePackageManifest(&self, packagestream: P0, updatedmanifeststream: P1, ispackageencrypted: bool, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::Result<()> @@ -6316,7 +6316,7 @@ impl IAppxPackageEditor { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePackageManifest)(windows_core::Interface::as_raw(self), packagestream.param().abi(), updatedmanifeststream.param().abi(), ispackageencrypted.into(), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).UpdatePackageManifest)(windows_core::Interface::as_raw(self), packagestream.param().abi(), updatedmanifeststream.param().abi(), ispackageencrypted.into(), options).ok() } } #[repr(C)] @@ -6405,7 +6405,7 @@ impl IAppxPackageReader { } pub unsafe fn GetFootprintFile(&self, r#type: APPX_FOOTPRINT_FILE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFootprintFile)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFootprintFile)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPayloadFile(&self, filename: P0) -> windows_core::Result where @@ -6515,7 +6515,7 @@ impl IAppxPackageWriter { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadFile)(windows_core::Interface::as_raw(self), filename.param().abi(), contenttype.param().abi(), core::mem::transmute(compressionoption), inputstream.param().abi()).ok() + (windows_core::Interface::vtable(self).AddPayloadFile)(windows_core::Interface::as_raw(self), filename.param().abi(), contenttype.param().abi(), compressionoption, inputstream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Close(&self, manifest: P0) -> windows_core::Result<()> @@ -6609,7 +6609,7 @@ windows_core::imp::interface_hierarchy!(IAppxPackageWriter3, windows_core::IUnkn impl IAppxPackageWriter3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadFiles(&self, payloadfiles: &[APPX_PACKAGE_WRITER_PAYLOAD_STREAM], memorylimit: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPayloadFiles)(windows_core::Interface::as_raw(self), payloadfiles.len().try_into().unwrap(), core::mem::transmute(payloadfiles.as_ptr()), core::mem::transmute(memorylimit)).ok() + (windows_core::Interface::vtable(self).AddPayloadFiles)(windows_core::Interface::as_raw(self), payloadfiles.len().try_into().unwrap(), core::mem::transmute(payloadfiles.as_ptr()), memorylimit).ok() } } #[repr(C)] @@ -6648,7 +6648,7 @@ impl IAppxPackagingDiagnosticEventSink { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportContextChange)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype), core::mem::transmute(contextid), contextname.param().abi(), contextmessage.param().abi(), detailsmessage.param().abi()).ok() + (windows_core::Interface::vtable(self).ReportContextChange)(windows_core::Interface::as_raw(self), changetype, contextid, contextname.param().abi(), contextmessage.param().abi(), detailsmessage.param().abi()).ok() } pub unsafe fn ReportError(&self, errormessage: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs index bb71b437d1..4e4f4f3fe9 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs @@ -99,11 +99,11 @@ windows_core::imp::interface_hierarchy!(IOpcCertificateSet, windows_core::IUnkno impl IOpcCertificateSet { #[cfg(feature = "Win32_Security_Cryptography")] pub unsafe fn Add(&self, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(certificate)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), certificate).ok() } #[cfg(feature = "Win32_Security_Cryptography")] pub unsafe fn Remove(&self, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(certificate)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), certificate).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -550,7 +550,7 @@ impl IOpcDigitalSignatureManager { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), signature.param().abi(), core::mem::transmute(certificate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), signature.param().abi(), certificate, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Security_Cryptography")] pub unsafe fn Sign(&self, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT, signingoptions: P1) -> windows_core::Result @@ -558,7 +558,7 @@ impl IOpcDigitalSignatureManager { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Sign)(windows_core::Interface::as_raw(self), core::mem::transmute(certificate), signingoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Sign)(windows_core::Interface::as_raw(self), certificate, signingoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReplaceSignatureXml(&self, signaturepartname: P0, newsignaturexml: &[u8]) -> windows_core::Result @@ -721,7 +721,7 @@ impl IOpcFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStreamOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(iomode), core::mem::transmute(securityattributes), core::mem::transmute(dwflagsandattributes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStreamOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), iomode, securityattributes, dwflagsandattributes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePackage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -733,7 +733,7 @@ impl IOpcFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadPackageFromStream)(windows_core::Interface::as_raw(self), stream.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReadPackageFromStream)(windows_core::Interface::as_raw(self), stream.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WritePackageToStream(&self, package: P0, flags: OPC_WRITE_FLAGS, stream: P2) -> windows_core::Result<()> @@ -741,7 +741,7 @@ impl IOpcFactory { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WritePackageToStream)(windows_core::Interface::as_raw(self), package.param().abi(), core::mem::transmute(flags), stream.param().abi()).ok() + (windows_core::Interface::vtable(self).WritePackageToStream)(windows_core::Interface::as_raw(self), package.param().abi(), flags, stream.param().abi()).ok() } pub unsafe fn CreateDigitalSignatureManager(&self, package: P0) -> windows_core::Result where @@ -1150,7 +1150,7 @@ impl IOpcPartSet { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePart)(windows_core::Interface::as_raw(self), name.param().abi(), contenttype.param().abi(), core::mem::transmute(compressionoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePart)(windows_core::Interface::as_raw(self), name.param().abi(), contenttype.param().abi(), compressionoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeletePart(&self, name: P0) -> windows_core::Result<()> @@ -1710,7 +1710,7 @@ impl IOpcRelationshipSelectorSet { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(selector), selectioncriterion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), selector, selectioncriterion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, relationshipselector: P0) -> windows_core::Result<()> where @@ -1791,7 +1791,7 @@ impl IOpcRelationshipSet { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.param().abi(), relationshiptype.param().abi(), targeturi.param().abi(), core::mem::transmute(targetmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.param().abi(), relationshiptype.param().abi(), targeturi.param().abi(), targetmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRelationship(&self, relationshipidentifier: P0) -> windows_core::Result<()> where @@ -2324,7 +2324,7 @@ impl IOpcSignaturePartReferenceSet { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), parturi.param().abi(), digestmethod.param().abi(), core::mem::transmute(transformmethod), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), parturi.param().abi(), digestmethod.param().abi(), transformmethod, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, partreference: P0) -> windows_core::Result<()> where @@ -2617,7 +2617,7 @@ impl IOpcSignatureReferenceSet { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), referenceuri.param().abi(), referenceid.param().abi(), r#type.param().abi(), digestmethod.param().abi(), core::mem::transmute(transformmethod), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), referenceuri.param().abi(), referenceid.param().abi(), r#type.param().abi(), digestmethod.param().abi(), transformmethod, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, reference: P0) -> windows_core::Result<()> where @@ -2909,7 +2909,7 @@ impl IOpcSignatureRelationshipReferenceSet { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), sourceuri.param().abi(), digestmethod.param().abi(), core::mem::transmute(relationshipsigningoption), selectorset.param().abi(), core::mem::transmute(transformmethod), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), sourceuri.param().abi(), digestmethod.param().abi(), relationshipsigningoption, selectorset.param().abi(), transformmethod, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRelationshipSelectorSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3033,14 +3033,14 @@ impl IOpcSigningOptions { (windows_core::Interface::vtable(self).GetCertificateEmbeddingOption)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCertificateEmbeddingOption(&self, embeddingoption: OPC_CERTIFICATE_EMBEDDING_OPTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCertificateEmbeddingOption)(windows_core::Interface::as_raw(self), core::mem::transmute(embeddingoption)).ok() + (windows_core::Interface::vtable(self).SetCertificateEmbeddingOption)(windows_core::Interface::as_raw(self), embeddingoption).ok() } pub unsafe fn GetTimeFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTimeFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTimeFormat(&self, timeformat: OPC_SIGNATURE_TIME_FORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(timeformat)).ok() + (windows_core::Interface::vtable(self).SetTimeFormat)(windows_core::Interface::as_raw(self), timeformat).ok() } pub unsafe fn GetSignaturePartReferenceSet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs index bba31d3b7a..75f221ba56 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs @@ -1,17 +1,17 @@ #[inline] pub unsafe fn PrjAllocateAlignedBuffer(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, size: usize) -> *mut core::ffi::c_void { windows_targets::link!("projectedfslib.dll" "system" fn PrjAllocateAlignedBuffer(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, size : usize) -> *mut core::ffi::c_void); - PrjAllocateAlignedBuffer(core::mem::transmute(namespacevirtualizationcontext), core::mem::transmute(size)) + PrjAllocateAlignedBuffer(namespacevirtualizationcontext, size) } #[inline] pub unsafe fn PrjClearNegativePathCache(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, totalentrynumber: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("projectedfslib.dll" "system" fn PrjClearNegativePathCache(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, totalentrynumber : *mut u32) -> windows_core::HRESULT); - PrjClearNegativePathCache(core::mem::transmute(namespacevirtualizationcontext), core::mem::transmute(totalentrynumber.unwrap_or(core::mem::zeroed()))).ok() + PrjClearNegativePathCache(namespacevirtualizationcontext, core::mem::transmute(totalentrynumber.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PrjCompleteCommand(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, commandid: i32, completionresult: windows_core::HRESULT, extendedparameters: Option<*const PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS>) -> windows_core::Result<()> { windows_targets::link!("projectedfslib.dll" "system" fn PrjCompleteCommand(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, commandid : i32, completionresult : windows_core::HRESULT, extendedparameters : *const PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS) -> windows_core::HRESULT); - PrjCompleteCommand(core::mem::transmute(namespacevirtualizationcontext), core::mem::transmute(commandid), core::mem::transmute(completionresult), core::mem::transmute(extendedparameters.unwrap_or(core::mem::zeroed()))).ok() + PrjCompleteCommand(namespacevirtualizationcontext, commandid, completionresult, core::mem::transmute(extendedparameters.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PrjDeleteFile(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename: P1, updateflags: Option, failurereason: Option<*mut PRJ_UPDATE_FAILURE_CAUSES>) -> windows_core::Result<()> @@ -19,7 +19,7 @@ where P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjDeleteFile(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename : windows_core::PCWSTR, updateflags : PRJ_UPDATE_TYPES, failurereason : *mut PRJ_UPDATE_FAILURE_CAUSES) -> windows_core::HRESULT); - PrjDeleteFile(core::mem::transmute(namespacevirtualizationcontext), destinationfilename.param().abi(), core::mem::transmute(updateflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(failurereason.unwrap_or(core::mem::zeroed()))).ok() + PrjDeleteFile(namespacevirtualizationcontext, destinationfilename.param().abi(), core::mem::transmute(updateflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(failurereason.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PrjDoesNameContainWildCards(filename: P0) -> bool @@ -53,7 +53,7 @@ where P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjFillDirEntryBuffer(filename : windows_core::PCWSTR, filebasicinfo : *const PRJ_FILE_BASIC_INFO, direntrybufferhandle : PRJ_DIR_ENTRY_BUFFER_HANDLE) -> windows_core::HRESULT); - PrjFillDirEntryBuffer(filename.param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(direntrybufferhandle)).ok() + PrjFillDirEntryBuffer(filename.param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(core::mem::zeroed())), direntrybufferhandle).ok() } #[inline] pub unsafe fn PrjFillDirEntryBuffer2(direntrybufferhandle: PRJ_DIR_ENTRY_BUFFER_HANDLE, filename: P1, filebasicinfo: Option<*const PRJ_FILE_BASIC_INFO>, extendedinfo: Option<*const PRJ_EXTENDED_INFO>) -> windows_core::Result<()> @@ -61,12 +61,12 @@ where P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjFillDirEntryBuffer2(direntrybufferhandle : PRJ_DIR_ENTRY_BUFFER_HANDLE, filename : windows_core::PCWSTR, filebasicinfo : *const PRJ_FILE_BASIC_INFO, extendedinfo : *const PRJ_EXTENDED_INFO) -> windows_core::HRESULT); - PrjFillDirEntryBuffer2(core::mem::transmute(direntrybufferhandle), filename.param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(extendedinfo.unwrap_or(core::mem::zeroed()))).ok() + PrjFillDirEntryBuffer2(direntrybufferhandle, filename.param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(extendedinfo.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PrjFreeAlignedBuffer(buffer: *const core::ffi::c_void) { windows_targets::link!("projectedfslib.dll" "system" fn PrjFreeAlignedBuffer(buffer : *const core::ffi::c_void)); - PrjFreeAlignedBuffer(core::mem::transmute(buffer)) + PrjFreeAlignedBuffer(buffer) } #[inline] pub unsafe fn PrjGetOnDiskFileState(destinationfilename: P0) -> windows_core::Result @@ -80,7 +80,7 @@ where #[inline] pub unsafe fn PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, virtualizationinstanceinfo: *mut PRJ_VIRTUALIZATION_INSTANCE_INFO) -> windows_core::Result<()> { windows_targets::link!("projectedfslib.dll" "system" fn PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, virtualizationinstanceinfo : *mut PRJ_VIRTUALIZATION_INSTANCE_INFO) -> windows_core::HRESULT); - PrjGetVirtualizationInstanceInfo(core::mem::transmute(namespacevirtualizationcontext), core::mem::transmute(virtualizationinstanceinfo)).ok() + PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext, core::mem::transmute(virtualizationinstanceinfo)).ok() } #[inline] pub unsafe fn PrjMarkDirectoryAsPlaceholder(rootpathname: P0, targetpathname: P1, versioninfo: Option<*const PRJ_PLACEHOLDER_VERSION_INFO>, virtualizationinstanceid: *const windows_core::GUID) -> windows_core::Result<()> @@ -89,7 +89,7 @@ where P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjMarkDirectoryAsPlaceholder(rootpathname : windows_core::PCWSTR, targetpathname : windows_core::PCWSTR, versioninfo : *const PRJ_PLACEHOLDER_VERSION_INFO, virtualizationinstanceid : *const windows_core::GUID) -> windows_core::HRESULT); - PrjMarkDirectoryAsPlaceholder(rootpathname.param().abi(), targetpathname.param().abi(), core::mem::transmute(versioninfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(virtualizationinstanceid)).ok() + PrjMarkDirectoryAsPlaceholder(rootpathname.param().abi(), targetpathname.param().abi(), core::mem::transmute(versioninfo.unwrap_or(core::mem::zeroed())), virtualizationinstanceid).ok() } #[inline] pub unsafe fn PrjStartVirtualizing(virtualizationrootpath: P0, callbacks: *const PRJ_CALLBACKS, instancecontext: Option<*const core::ffi::c_void>, options: Option<*const PRJ_STARTVIRTUALIZING_OPTIONS>) -> windows_core::Result @@ -98,12 +98,12 @@ where { windows_targets::link!("projectedfslib.dll" "system" fn PrjStartVirtualizing(virtualizationrootpath : windows_core::PCWSTR, callbacks : *const PRJ_CALLBACKS, instancecontext : *const core::ffi::c_void, options : *const PRJ_STARTVIRTUALIZING_OPTIONS, namespacevirtualizationcontext : *mut PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PrjStartVirtualizing(virtualizationrootpath.param().abi(), core::mem::transmute(callbacks), core::mem::transmute(instancecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + PrjStartVirtualizing(virtualizationrootpath.param().abi(), callbacks, core::mem::transmute(instancecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PrjStopVirtualizing(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT) { windows_targets::link!("projectedfslib.dll" "system" fn PrjStopVirtualizing(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT)); - PrjStopVirtualizing(core::mem::transmute(namespacevirtualizationcontext)) + PrjStopVirtualizing(namespacevirtualizationcontext) } #[inline] pub unsafe fn PrjUpdateFileIfNeeded(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename: P1, placeholderinfo: *const PRJ_PLACEHOLDER_INFO, placeholderinfosize: u32, updateflags: Option, failurereason: Option<*mut PRJ_UPDATE_FAILURE_CAUSES>) -> windows_core::Result<()> @@ -111,12 +111,12 @@ where P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjUpdateFileIfNeeded(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename : windows_core::PCWSTR, placeholderinfo : *const PRJ_PLACEHOLDER_INFO, placeholderinfosize : u32, updateflags : PRJ_UPDATE_TYPES, failurereason : *mut PRJ_UPDATE_FAILURE_CAUSES) -> windows_core::HRESULT); - PrjUpdateFileIfNeeded(core::mem::transmute(namespacevirtualizationcontext), destinationfilename.param().abi(), core::mem::transmute(placeholderinfo), core::mem::transmute(placeholderinfosize), core::mem::transmute(updateflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(failurereason.unwrap_or(core::mem::zeroed()))).ok() + PrjUpdateFileIfNeeded(namespacevirtualizationcontext, destinationfilename.param().abi(), placeholderinfo, placeholderinfosize, core::mem::transmute(updateflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(failurereason.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PrjWriteFileData(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, datastreamid: *const windows_core::GUID, buffer: *const core::ffi::c_void, byteoffset: u64, length: u32) -> windows_core::Result<()> { windows_targets::link!("projectedfslib.dll" "system" fn PrjWriteFileData(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, datastreamid : *const windows_core::GUID, buffer : *const core::ffi::c_void, byteoffset : u64, length : u32) -> windows_core::HRESULT); - PrjWriteFileData(core::mem::transmute(namespacevirtualizationcontext), core::mem::transmute(datastreamid), core::mem::transmute(buffer), core::mem::transmute(byteoffset), core::mem::transmute(length)).ok() + PrjWriteFileData(namespacevirtualizationcontext, datastreamid, buffer, byteoffset, length).ok() } #[inline] pub unsafe fn PrjWritePlaceholderInfo(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename: P1, placeholderinfo: *const PRJ_PLACEHOLDER_INFO, placeholderinfosize: u32) -> windows_core::Result<()> @@ -124,7 +124,7 @@ where P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjWritePlaceholderInfo(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename : windows_core::PCWSTR, placeholderinfo : *const PRJ_PLACEHOLDER_INFO, placeholderinfosize : u32) -> windows_core::HRESULT); - PrjWritePlaceholderInfo(core::mem::transmute(namespacevirtualizationcontext), destinationfilename.param().abi(), core::mem::transmute(placeholderinfo), core::mem::transmute(placeholderinfosize)).ok() + PrjWritePlaceholderInfo(namespacevirtualizationcontext, destinationfilename.param().abi(), placeholderinfo, placeholderinfosize).ok() } #[inline] pub unsafe fn PrjWritePlaceholderInfo2(namespacevirtualizationcontext: PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename: P1, placeholderinfo: *const PRJ_PLACEHOLDER_INFO, placeholderinfosize: u32, extendedinfo: Option<*const PRJ_EXTENDED_INFO>) -> windows_core::Result<()> @@ -132,7 +132,7 @@ where P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjWritePlaceholderInfo2(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename : windows_core::PCWSTR, placeholderinfo : *const PRJ_PLACEHOLDER_INFO, placeholderinfosize : u32, extendedinfo : *const PRJ_EXTENDED_INFO) -> windows_core::HRESULT); - PrjWritePlaceholderInfo2(core::mem::transmute(namespacevirtualizationcontext), destinationfilename.param().abi(), core::mem::transmute(placeholderinfo), core::mem::transmute(placeholderinfosize), core::mem::transmute(extendedinfo.unwrap_or(core::mem::zeroed()))).ok() + PrjWritePlaceholderInfo2(namespacevirtualizationcontext, destinationfilename.param().abi(), placeholderinfo, placeholderinfosize, core::mem::transmute(extendedinfo.unwrap_or(core::mem::zeroed()))).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs index 1c95507745..f84970b978 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs @@ -4,34 +4,34 @@ where P1: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn AddVirtualDiskParent(virtualdiskhandle : super::super::Foundation:: HANDLE, parentpath : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - AddVirtualDiskParent(core::mem::transmute(virtualdiskhandle), parentpath.param().abi()) + AddVirtualDiskParent(virtualdiskhandle, parentpath.param().abi()) } #[inline] pub unsafe fn ApplySnapshotVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const APPLY_SNAPSHOT_VHDSET_PARAMETERS, flags: APPLY_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn ApplySnapshotVhdSet(virtualdiskhandle : super::super::Foundation:: HANDLE, parameters : *const APPLY_SNAPSHOT_VHDSET_PARAMETERS, flags : APPLY_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation:: WIN32_ERROR); - ApplySnapshotVhdSet(core::mem::transmute(virtualdiskhandle), core::mem::transmute(parameters), core::mem::transmute(flags)) + ApplySnapshotVhdSet(virtualdiskhandle, parameters, flags) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn AttachVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, securitydescriptor: Option, flags: ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32, parameters: Option<*const ATTACH_VIRTUAL_DISK_PARAMETERS>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn AttachVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, securitydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, flags : ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags : u32, parameters : *const ATTACH_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - AttachVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(providerspecificflags), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + AttachVirtualDisk(virtualdiskhandle, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), flags, providerspecificflags, core::mem::transmute(parameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BreakMirrorVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn BreakMirrorVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - BreakMirrorVirtualDisk(core::mem::transmute(virtualdiskhandle)) + BreakMirrorVirtualDisk(virtualdiskhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CompactVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: COMPACT_VIRTUAL_DISK_FLAG, parameters: Option<*const COMPACT_VIRTUAL_DISK_PARAMETERS>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn CompactVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : COMPACT_VIRTUAL_DISK_FLAG, parameters : *const COMPACT_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - CompactVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + CompactVirtualDisk(virtualdiskhandle, flags, core::mem::transmute(parameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CompleteForkVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn CompleteForkVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - CompleteForkVirtualDisk(core::mem::transmute(virtualdiskhandle)) + CompleteForkVirtualDisk(virtualdiskhandle) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] @@ -40,39 +40,39 @@ where P1: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn CreateVirtualDisk(virtualstoragetype : *const VIRTUAL_STORAGE_TYPE, path : windows_core::PCWSTR, virtualdiskaccessmask : VIRTUAL_DISK_ACCESS_MASK, securitydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, flags : CREATE_VIRTUAL_DISK_FLAG, providerspecificflags : u32, parameters : *const CREATE_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED, handle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - CreateVirtualDisk(core::mem::transmute(virtualstoragetype), path.param().abi(), core::mem::transmute(virtualdiskaccessmask), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(providerspecificflags), core::mem::transmute(parameters), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle)) + CreateVirtualDisk(virtualstoragetype, path.param().abi(), virtualdiskaccessmask, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), flags, providerspecificflags, parameters, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle)) } #[inline] pub unsafe fn DeleteSnapshotVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const DELETE_SNAPSHOT_VHDSET_PARAMETERS, flags: DELETE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn DeleteSnapshotVhdSet(virtualdiskhandle : super::super::Foundation:: HANDLE, parameters : *const DELETE_SNAPSHOT_VHDSET_PARAMETERS, flags : DELETE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation:: WIN32_ERROR); - DeleteSnapshotVhdSet(core::mem::transmute(virtualdiskhandle), core::mem::transmute(parameters), core::mem::transmute(flags)) + DeleteSnapshotVhdSet(virtualdiskhandle, parameters, flags) } #[inline] pub unsafe fn DeleteVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, item: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn DeleteVirtualDiskMetadata(virtualdiskhandle : super::super::Foundation:: HANDLE, item : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - DeleteVirtualDiskMetadata(core::mem::transmute(virtualdiskhandle), core::mem::transmute(item)) + DeleteVirtualDiskMetadata(virtualdiskhandle, item) } #[inline] pub unsafe fn DetachVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn DetachVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : DETACH_VIRTUAL_DISK_FLAG, providerspecificflags : u32) -> super::super::Foundation:: WIN32_ERROR); - DetachVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(providerspecificflags)) + DetachVirtualDisk(virtualdiskhandle, flags, providerspecificflags) } #[inline] pub unsafe fn EnumerateVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, numberofitems: *mut u32, items: *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn EnumerateVirtualDiskMetadata(virtualdiskhandle : super::super::Foundation:: HANDLE, numberofitems : *mut u32, items : *mut windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - EnumerateVirtualDiskMetadata(core::mem::transmute(virtualdiskhandle), core::mem::transmute(numberofitems), core::mem::transmute(items)) + EnumerateVirtualDiskMetadata(virtualdiskhandle, core::mem::transmute(numberofitems), core::mem::transmute(items)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ExpandVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: EXPAND_VIRTUAL_DISK_FLAG, parameters: *const EXPAND_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn ExpandVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : EXPAND_VIRTUAL_DISK_FLAG, parameters : *const EXPAND_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - ExpandVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + ExpandVirtualDisk(virtualdiskhandle, flags, parameters, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ForkVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: FORK_VIRTUAL_DISK_FLAG, parameters: *const FORK_VIRTUAL_DISK_PARAMETERS, overlapped: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn ForkVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : FORK_VIRTUAL_DISK_FLAG, parameters : *const FORK_VIRTUAL_DISK_PARAMETERS, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - ForkVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(overlapped)) + ForkVirtualDisk(virtualdiskhandle, flags, parameters, core::mem::transmute(overlapped)) } #[inline] pub unsafe fn GetAllAttachedVirtualDiskPhysicalPaths(pathsbuffersizeinbytes: *mut u32, pathsbuffer: windows_core::PWSTR) -> super::super::Foundation::WIN32_ERROR { @@ -82,45 +82,45 @@ pub unsafe fn GetAllAttachedVirtualDiskPhysicalPaths(pathsbuffersizeinbytes: *mu #[inline] pub unsafe fn GetStorageDependencyInformation(objecthandle: super::super::Foundation::HANDLE, flags: GET_STORAGE_DEPENDENCY_FLAG, storagedependencyinfosize: u32, storagedependencyinfo: *mut STORAGE_DEPENDENCY_INFO, sizeused: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn GetStorageDependencyInformation(objecthandle : super::super::Foundation:: HANDLE, flags : GET_STORAGE_DEPENDENCY_FLAG, storagedependencyinfosize : u32, storagedependencyinfo : *mut STORAGE_DEPENDENCY_INFO, sizeused : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetStorageDependencyInformation(core::mem::transmute(objecthandle), core::mem::transmute(flags), core::mem::transmute(storagedependencyinfosize), core::mem::transmute(storagedependencyinfo), core::mem::transmute(sizeused.unwrap_or(core::mem::zeroed()))) + GetStorageDependencyInformation(objecthandle, flags, storagedependencyinfosize, core::mem::transmute(storagedependencyinfo), core::mem::transmute(sizeused.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetVirtualDiskInformation(virtualdiskhandle: super::super::Foundation::HANDLE, virtualdiskinfosize: *mut u32, virtualdiskinfo: *mut GET_VIRTUAL_DISK_INFO, sizeused: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn GetVirtualDiskInformation(virtualdiskhandle : super::super::Foundation:: HANDLE, virtualdiskinfosize : *mut u32, virtualdiskinfo : *mut GET_VIRTUAL_DISK_INFO, sizeused : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetVirtualDiskInformation(core::mem::transmute(virtualdiskhandle), core::mem::transmute(virtualdiskinfosize), core::mem::transmute(virtualdiskinfo), core::mem::transmute(sizeused.unwrap_or(core::mem::zeroed()))) + GetVirtualDiskInformation(virtualdiskhandle, core::mem::transmute(virtualdiskinfosize), core::mem::transmute(virtualdiskinfo), core::mem::transmute(sizeused.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, item: *const windows_core::GUID, metadatasize: *mut u32, metadata: *mut core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn GetVirtualDiskMetadata(virtualdiskhandle : super::super::Foundation:: HANDLE, item : *const windows_core::GUID, metadatasize : *mut u32, metadata : *mut core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - GetVirtualDiskMetadata(core::mem::transmute(virtualdiskhandle), core::mem::transmute(item), core::mem::transmute(metadatasize), core::mem::transmute(metadata)) + GetVirtualDiskMetadata(virtualdiskhandle, item, core::mem::transmute(metadatasize), core::mem::transmute(metadata)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn GetVirtualDiskOperationProgress(virtualdiskhandle: super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED, progress: *mut VIRTUAL_DISK_PROGRESS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn GetVirtualDiskOperationProgress(virtualdiskhandle : super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED, progress : *mut VIRTUAL_DISK_PROGRESS) -> super::super::Foundation:: WIN32_ERROR); - GetVirtualDiskOperationProgress(core::mem::transmute(virtualdiskhandle), core::mem::transmute(overlapped), core::mem::transmute(progress)) + GetVirtualDiskOperationProgress(virtualdiskhandle, overlapped, core::mem::transmute(progress)) } #[inline] pub unsafe fn GetVirtualDiskPhysicalPath(virtualdiskhandle: super::super::Foundation::HANDLE, diskpathsizeinbytes: *mut u32, diskpath: windows_core::PWSTR) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn GetVirtualDiskPhysicalPath(virtualdiskhandle : super::super::Foundation:: HANDLE, diskpathsizeinbytes : *mut u32, diskpath : windows_core::PWSTR) -> super::super::Foundation:: WIN32_ERROR); - GetVirtualDiskPhysicalPath(core::mem::transmute(virtualdiskhandle), core::mem::transmute(diskpathsizeinbytes), core::mem::transmute(diskpath)) + GetVirtualDiskPhysicalPath(virtualdiskhandle, core::mem::transmute(diskpathsizeinbytes), core::mem::transmute(diskpath)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn MergeVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: MERGE_VIRTUAL_DISK_FLAG, parameters: *const MERGE_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn MergeVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : MERGE_VIRTUAL_DISK_FLAG, parameters : *const MERGE_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - MergeVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + MergeVirtualDisk(virtualdiskhandle, flags, parameters, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn MirrorVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: MIRROR_VIRTUAL_DISK_FLAG, parameters: *const MIRROR_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn MirrorVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : MIRROR_VIRTUAL_DISK_FLAG, parameters : *const MIRROR_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - MirrorVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(overlapped)) + MirrorVirtualDisk(virtualdiskhandle, flags, parameters, overlapped) } #[inline] pub unsafe fn ModifyVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const MODIFY_VHDSET_PARAMETERS, flags: MODIFY_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn ModifyVhdSet(virtualdiskhandle : super::super::Foundation:: HANDLE, parameters : *const MODIFY_VHDSET_PARAMETERS, flags : MODIFY_VHDSET_FLAG) -> super::super::Foundation:: WIN32_ERROR); - ModifyVhdSet(core::mem::transmute(virtualdiskhandle), core::mem::transmute(parameters), core::mem::transmute(flags)) + ModifyVhdSet(virtualdiskhandle, parameters, flags) } #[inline] pub unsafe fn OpenVirtualDisk(virtualstoragetype: *const VIRTUAL_STORAGE_TYPE, path: P1, virtualdiskaccessmask: VIRTUAL_DISK_ACCESS_MASK, flags: OPEN_VIRTUAL_DISK_FLAG, parameters: Option<*const OPEN_VIRTUAL_DISK_PARAMETERS>, handle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR @@ -128,7 +128,7 @@ where P1: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn OpenVirtualDisk(virtualstoragetype : *const VIRTUAL_STORAGE_TYPE, path : windows_core::PCWSTR, virtualdiskaccessmask : VIRTUAL_DISK_ACCESS_MASK, flags : OPEN_VIRTUAL_DISK_FLAG, parameters : *const OPEN_VIRTUAL_DISK_PARAMETERS, handle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - OpenVirtualDisk(core::mem::transmute(virtualstoragetype), path.param().abi(), core::mem::transmute(virtualdiskaccessmask), core::mem::transmute(flags), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle)) + OpenVirtualDisk(virtualstoragetype, path.param().abi(), virtualdiskaccessmask, flags, core::mem::transmute(parameters.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle)) } #[inline] pub unsafe fn QueryChangesVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, changetrackingid: P1, byteoffset: u64, bytelength: u64, flags: QUERY_CHANGES_VIRTUAL_DISK_FLAG, ranges: *mut QUERY_CHANGES_VIRTUAL_DISK_RANGE, rangecount: *mut u32, processedlength: *mut u64) -> super::super::Foundation::WIN32_ERROR @@ -136,33 +136,33 @@ where P1: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn QueryChangesVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, changetrackingid : windows_core::PCWSTR, byteoffset : u64, bytelength : u64, flags : QUERY_CHANGES_VIRTUAL_DISK_FLAG, ranges : *mut QUERY_CHANGES_VIRTUAL_DISK_RANGE, rangecount : *mut u32, processedlength : *mut u64) -> super::super::Foundation:: WIN32_ERROR); - QueryChangesVirtualDisk(core::mem::transmute(virtualdiskhandle), changetrackingid.param().abi(), core::mem::transmute(byteoffset), core::mem::transmute(bytelength), core::mem::transmute(flags), core::mem::transmute(ranges), core::mem::transmute(rangecount), core::mem::transmute(processedlength)) + QueryChangesVirtualDisk(virtualdiskhandle, changetrackingid.param().abi(), byteoffset, bytelength, flags, core::mem::transmute(ranges), core::mem::transmute(rangecount), core::mem::transmute(processedlength)) } #[inline] pub unsafe fn RawSCSIVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const RAW_SCSI_VIRTUAL_DISK_PARAMETERS, flags: RAW_SCSI_VIRTUAL_DISK_FLAG, response: *mut RAW_SCSI_VIRTUAL_DISK_RESPONSE) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn RawSCSIVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, parameters : *const RAW_SCSI_VIRTUAL_DISK_PARAMETERS, flags : RAW_SCSI_VIRTUAL_DISK_FLAG, response : *mut RAW_SCSI_VIRTUAL_DISK_RESPONSE) -> super::super::Foundation:: WIN32_ERROR); - RawSCSIVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(parameters), core::mem::transmute(flags), core::mem::transmute(response)) + RawSCSIVirtualDisk(virtualdiskhandle, parameters, flags, core::mem::transmute(response)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ResizeVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: RESIZE_VIRTUAL_DISK_FLAG, parameters: *const RESIZE_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn ResizeVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE, flags : RESIZE_VIRTUAL_DISK_FLAG, parameters : *const RESIZE_VIRTUAL_DISK_PARAMETERS, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: WIN32_ERROR); - ResizeVirtualDisk(core::mem::transmute(virtualdiskhandle), core::mem::transmute(flags), core::mem::transmute(parameters), core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) + ResizeVirtualDisk(virtualdiskhandle, flags, parameters, core::mem::transmute(overlapped.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetVirtualDiskInformation(virtualdiskhandle: super::super::Foundation::HANDLE, virtualdiskinfo: *const SET_VIRTUAL_DISK_INFO) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn SetVirtualDiskInformation(virtualdiskhandle : super::super::Foundation:: HANDLE, virtualdiskinfo : *const SET_VIRTUAL_DISK_INFO) -> super::super::Foundation:: WIN32_ERROR); - SetVirtualDiskInformation(core::mem::transmute(virtualdiskhandle), core::mem::transmute(virtualdiskinfo)) + SetVirtualDiskInformation(virtualdiskhandle, virtualdiskinfo) } #[inline] pub unsafe fn SetVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, item: *const windows_core::GUID, metadatasize: u32, metadata: *const core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn SetVirtualDiskMetadata(virtualdiskhandle : super::super::Foundation:: HANDLE, item : *const windows_core::GUID, metadatasize : u32, metadata : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - SetVirtualDiskMetadata(core::mem::transmute(virtualdiskhandle), core::mem::transmute(item), core::mem::transmute(metadatasize), core::mem::transmute(metadata)) + SetVirtualDiskMetadata(virtualdiskhandle, item, metadatasize, metadata) } #[inline] pub unsafe fn TakeSnapshotVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const TAKE_SNAPSHOT_VHDSET_PARAMETERS, flags: TAKE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("virtdisk.dll" "system" fn TakeSnapshotVhdSet(virtualdiskhandle : super::super::Foundation:: HANDLE, parameters : *const TAKE_SNAPSHOT_VHDSET_PARAMETERS, flags : TAKE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation:: WIN32_ERROR); - TakeSnapshotVhdSet(core::mem::transmute(virtualdiskhandle), core::mem::transmute(parameters), core::mem::transmute(flags)) + TakeSnapshotVhdSet(virtualdiskhandle, parameters, flags) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs index d24679a470..614587b3b1 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs @@ -140,7 +140,7 @@ impl IEnumVdsObject { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppobjectarray.len().try_into().unwrap(), core::mem::transmute(ppobjectarray.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -210,7 +210,7 @@ impl IVdsAdmin { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), core::mem::transmute(providerclsid), pwszname.param().abi(), core::mem::transmute(r#type), pwszmachinename.param().abi(), pwszversion.param().abi(), core::mem::transmute(guidversionid)).ok() + (windows_core::Interface::vtable(self).RegisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), core::mem::transmute(providerclsid), pwszname.param().abi(), r#type, pwszmachinename.param().abi(), pwszversion.param().abi(), core::mem::transmute(guidversionid)).ok() } pub unsafe fn UnregisterProvider(&self, providerid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid)).ok() @@ -251,36 +251,36 @@ windows_core::imp::define_interface!(IVdsAdvancedDisk, IVdsAdvancedDisk_Vtbl, 0x windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk, windows_core::IUnknown); impl IVdsAdvancedDisk { pub unsafe fn GetPartitionProperties(&self, ulloffset: u64, ppartitionprop: *mut VDS_PARTITION_PROP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPartitionProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(ppartitionprop)).ok() + (windows_core::Interface::vtable(self).GetPartitionProperties)(windows_core::Interface::as_raw(self), ulloffset, core::mem::transmute(ppartitionprop)).ok() } pub unsafe fn QueryPartitions(&self, pppartitionproparray: *mut *mut VDS_PARTITION_PROP, plnumberofpartitions: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryPartitions)(windows_core::Interface::as_raw(self), core::mem::transmute(pppartitionproparray), core::mem::transmute(plnumberofpartitions)).ok() } pub unsafe fn CreatePartition(&self, ulloffset: u64, ullsize: u64, para: *const CREATE_PARTITION_PARAMETERS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePartition)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(ullsize), core::mem::transmute(para), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePartition)(windows_core::Interface::as_raw(self), ulloffset, ullsize, para, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeletePartition(&self, ulloffset: u64, bforce: bool, bforceprotected: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePartition)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), bforce.into(), bforceprotected.into()).ok() + (windows_core::Interface::vtable(self).DeletePartition)(windows_core::Interface::as_raw(self), ulloffset, bforce.into(), bforceprotected.into()).ok() } pub unsafe fn ChangeAttributes(&self, ulloffset: u64, para: *const CHANGE_ATTRIBUTES_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(para)).ok() + (windows_core::Interface::vtable(self).ChangeAttributes)(windows_core::Interface::as_raw(self), ulloffset, para).ok() } pub unsafe fn AssignDriveLetter(&self, ulloffset: u64, wcletter: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssignDriveLetter)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(wcletter)).ok() + (windows_core::Interface::vtable(self).AssignDriveLetter)(windows_core::Interface::as_raw(self), ulloffset, wcletter).ok() } pub unsafe fn DeleteDriveLetter(&self, ulloffset: u64, wcletter: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteDriveLetter)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(wcletter)).ok() + (windows_core::Interface::vtable(self).DeleteDriveLetter)(windows_core::Interface::as_raw(self), ulloffset, wcletter).ok() } pub unsafe fn GetDriveLetter(&self, ulloffset: u64, pwcletter: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDriveLetter)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(pwcletter)).ok() + (windows_core::Interface::vtable(self).GetDriveLetter)(windows_core::Interface::as_raw(self), ulloffset, core::mem::transmute(pwcletter)).ok() } pub unsafe fn FormatPartition(&self, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: P2, dwunitallocationsize: u32, bforce: bool, bquickformat: bool, benablecompression: bool) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatPartition)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(r#type), pwszlabel.param().abi(), core::mem::transmute(dwunitallocationsize), bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FormatPartition)(windows_core::Interface::as_raw(self), ulloffset, r#type, pwszlabel.param().abi(), dwunitallocationsize, bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clean(&self, bforce: bool, bforceoem: bool, bfullclean: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -396,7 +396,7 @@ windows_core::imp::define_interface!(IVdsAdvancedDisk2, IVdsAdvancedDisk2_Vtbl, windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk2, windows_core::IUnknown); impl IVdsAdvancedDisk2 { pub unsafe fn ChangePartitionType(&self, ulloffset: u64, bforce: bool, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangePartitionType)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), bforce.into(), core::mem::transmute(para)).ok() + (windows_core::Interface::vtable(self).ChangePartitionType)(windows_core::Interface::as_raw(self), ulloffset, bforce.into(), para).ok() } } #[repr(C)] @@ -558,7 +558,7 @@ impl IVdsController { (windows_core::Interface::vtable(self).GetSubSystem)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPortProperties(&self, sportnumber: i16, pportprop: *mut VDS_PORT_PROP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPortProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(sportnumber), core::mem::transmute(pportprop)).ok() + (windows_core::Interface::vtable(self).GetPortProperties)(windows_core::Interface::as_raw(self), sportnumber, core::mem::transmute(pportprop)).ok() } pub unsafe fn FlushCache(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCache)(windows_core::Interface::as_raw(self)).ok() @@ -574,7 +574,7 @@ impl IVdsController { (windows_core::Interface::vtable(self).QueryAssociatedLuns)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetStatus(&self, status: VDS_CONTROLLER_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -715,7 +715,7 @@ impl IVdsControllerPort { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetStatus(&self, status: VDS_PORT_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -787,7 +787,7 @@ windows_core::imp::interface_hierarchy!(IVdsCreatePartitionEx, windows_core::IUn impl IVdsCreatePartitionEx { pub unsafe fn CreatePartitionEx(&self, ulloffset: u64, ullsize: u64, ulalign: u32, para: *const CREATE_PARTITION_PARAMETERS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePartitionEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(ullsize), core::mem::transmute(ulalign), core::mem::transmute(para), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePartitionEx)(windows_core::Interface::as_raw(self), ulloffset, ullsize, ulalign, para, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -834,13 +834,13 @@ impl IVdsDisk { (windows_core::Interface::vtable(self).QueryExtents)(windows_core::Interface::as_raw(self), core::mem::transmute(ppextentarray), core::mem::transmute(plnumberofextents)).ok() } pub unsafe fn ConvertStyle(&self, newstyle: VDS_PARTITION_STYLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(newstyle)).ok() + (windows_core::Interface::vtable(self).ConvertStyle)(windows_core::Interface::as_raw(self), newstyle).ok() } pub unsafe fn SetFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn ClearFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } } #[repr(C)] @@ -950,7 +950,7 @@ impl IVdsDisk3 { (windows_core::Interface::vtable(self).GetProperties2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdiskproperties)).ok() } pub unsafe fn QueryFreeExtents(&self, ulalign: u32, ppfreeextentarray: *mut *mut VDS_DISK_FREE_EXTENT, plnumberoffreeextents: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryFreeExtents)(windows_core::Interface::as_raw(self), core::mem::transmute(ulalign), core::mem::transmute(ppfreeextentarray), core::mem::transmute(plnumberoffreeextents)).ok() + (windows_core::Interface::vtable(self).QueryFreeExtents)(windows_core::Interface::as_raw(self), ulalign, core::mem::transmute(ppfreeextentarray), core::mem::transmute(plnumberoffreeextents)).ok() } } #[repr(C)] @@ -1025,14 +1025,14 @@ windows_core::imp::define_interface!(IVdsDiskPartitionMF, IVdsDiskPartitionMF_Vt windows_core::imp::interface_hierarchy!(IVdsDiskPartitionMF, windows_core::IUnknown); impl IVdsDiskPartitionMF { pub unsafe fn GetPartitionFileSystemProperties(&self, ulloffset: u64, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPartitionFileSystemProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(pfilesystemprop)).ok() + (windows_core::Interface::vtable(self).GetPartitionFileSystemProperties)(windows_core::Interface::as_raw(self), ulloffset, core::mem::transmute(pfilesystemprop)).ok() } pub unsafe fn GetPartitionFileSystemTypeName(&self, ulloffset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartitionFileSystemTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPartitionFileSystemTypeName)(windows_core::Interface::as_raw(self), ulloffset, &mut result__).map(|| result__) } pub unsafe fn QueryPartitionFileSystemFormatSupport(&self, ulloffset: u64, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryPartitionFileSystemFormatSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), core::mem::transmute(ppfilesystemsupportprops), core::mem::transmute(plnumberoffilesystems)).ok() + (windows_core::Interface::vtable(self).QueryPartitionFileSystemFormatSupport)(windows_core::Interface::as_raw(self), ulloffset, core::mem::transmute(ppfilesystemsupportprops), core::mem::transmute(plnumberoffilesystems)).ok() } pub unsafe fn FormatPartitionEx(&self, ulloffset: u64, pwszfilesystemtypename: P1, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: P4, bforce: bool, bquickformat: bool, benablecompression: bool) -> windows_core::Result where @@ -1040,7 +1040,7 @@ impl IVdsDiskPartitionMF { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatPartitionEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), pwszfilesystemtypename.param().abi(), core::mem::transmute(usfilesystemrevision), core::mem::transmute(uldesiredunitallocationsize), pwszlabel.param().abi(), bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FormatPartitionEx)(windows_core::Interface::as_raw(self), ulloffset, pwszfilesystemtypename.param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.param().abi(), bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1109,7 +1109,7 @@ impl IVdsDiskPartitionMF2 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatPartitionEx2)(windows_core::Interface::as_raw(self), core::mem::transmute(ulloffset), pwszfilesystemtypename.param().abi(), core::mem::transmute(usfilesystemrevision), core::mem::transmute(uldesiredunitallocationsize), pwszlabel.param().abi(), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FormatPartitionEx2)(windows_core::Interface::as_raw(self), ulloffset, pwszfilesystemtypename.param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1153,13 +1153,13 @@ impl IVdsDrive { (windows_core::Interface::vtable(self).QueryExtents)(windows_core::Interface::as_raw(self), core::mem::transmute(ppextentarray), core::mem::transmute(plnumberofextents)).ok() } pub unsafe fn SetFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn ClearFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn SetStatus(&self, status: VDS_DRIVE_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -1262,7 +1262,7 @@ impl IVdsHbaPort { (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(phbaportprop)).ok() } pub unsafe fn SetAllPathStatuses(&self, status: VDS_PATH_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllPathStatuses)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetAllPathStatuses)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -1362,7 +1362,7 @@ impl IVdsHwProviderPrivate { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryIfCreatedLun)(windows_core::Interface::as_raw(self), pwszdevicepath.param().abi(), core::mem::transmute(pvdsluninformation), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryIfCreatedLun)(windows_core::Interface::as_raw(self), pwszdevicepath.param().abi(), pvdsluninformation, &mut result__).map(|| result__) } } #[repr(C)] @@ -1396,7 +1396,7 @@ windows_core::imp::define_interface!(IVdsHwProviderPrivateMpio, IVdsHwProviderPr windows_core::imp::interface_hierarchy!(IVdsHwProviderPrivateMpio, windows_core::IUnknown); impl IVdsHwProviderPrivateMpio { pub unsafe fn SetAllPathStatusesFromHbaPort(&self, hbaportprop: VDS_HBAPORT_PROP, status: VDS_PATH_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllPathStatusesFromHbaPort)(windows_core::Interface::as_raw(self), core::mem::transmute(hbaportprop), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetAllPathStatusesFromHbaPort)(windows_core::Interface::as_raw(self), core::mem::transmute(hbaportprop), status).ok() } } #[repr(C)] @@ -1425,18 +1425,18 @@ windows_core::imp::interface_hierarchy!(IVdsHwProviderStoragePools, windows_core impl IVdsHwProviderStoragePools { pub unsafe fn QueryStoragePools(&self, ulflags: u32, ullremainingfreespace: u64, ppoolattributes: *const VDS_POOL_ATTRIBUTES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryStoragePools)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(ullremainingfreespace), core::mem::transmute(ppoolattributes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryStoragePools)(windows_core::Interface::as_raw(self), ulflags, ullremainingfreespace, ppoolattributes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLunInStoragePool(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, storagepoolid: windows_core::GUID, pwszunmaskinglist: P3, phints2: *const VDS_HINTS2) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLunInStoragePool)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(ullsizeinbytes), core::mem::transmute(storagepoolid), pwszunmaskinglist.param().abi(), core::mem::transmute(phints2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLunInStoragePool)(windows_core::Interface::as_raw(self), r#type, ullsizeinbytes, core::mem::transmute(storagepoolid), pwszunmaskinglist.param().abi(), phints2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryMaxLunCreateSizeInStoragePool(&self, r#type: VDS_LUN_TYPE, storagepoolid: windows_core::GUID, phints2: *const VDS_HINTS2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryMaxLunCreateSizeInStoragePool)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(storagepoolid), core::mem::transmute(phints2), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryMaxLunCreateSizeInStoragePool)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(storagepoolid), phints2, &mut result__).map(|| result__) } } #[repr(C)] @@ -1577,7 +1577,7 @@ impl IVdsIscsiInitiatorAdapter { } pub unsafe fn LoginToTarget(&self, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: windows_core::GUID, targetportalid: windows_core::GUID, initiatorportalid: windows_core::GUID, ulloginflags: u32, bheaderdigest: bool, bdatadigest: bool, authtype: VDS_ISCSI_AUTH_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LoginToTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(logintype), core::mem::transmute(targetid), core::mem::transmute(targetportalid), core::mem::transmute(initiatorportalid), core::mem::transmute(ulloginflags), bheaderdigest.into(), bdatadigest.into(), core::mem::transmute(authtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoginToTarget)(windows_core::Interface::as_raw(self), logintype, core::mem::transmute(targetid), core::mem::transmute(targetportalid), core::mem::transmute(initiatorportalid), ulloginflags, bheaderdigest.into(), bdatadigest.into(), authtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LogoutFromTarget(&self, targetid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1658,14 +1658,14 @@ impl IVdsIscsiInitiatorPortal { (windows_core::Interface::vtable(self).GetInitiatorAdapter)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetIpsecTunnelAddress(&self, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecTunnelAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(ptunneladdress), core::mem::transmute(pdestinationaddress)).ok() + (windows_core::Interface::vtable(self).SetIpsecTunnelAddress)(windows_core::Interface::as_raw(self), ptunneladdress, pdestinationaddress).ok() } pub unsafe fn GetIpsecSecurity(&self, targetportalid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(targetportalid), &mut result__).map(|| result__) } pub unsafe fn SetIpsecSecurity(&self, targetportalid: windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(targetportalid), core::mem::transmute(ullsecurityflags), core::mem::transmute(pipseckey)).ok() + (windows_core::Interface::vtable(self).SetIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(targetportalid), ullsecurityflags, pipseckey).ok() } } #[repr(C)] @@ -1747,17 +1747,17 @@ impl IVdsIscsiPortal { (windows_core::Interface::vtable(self).QueryAssociatedPortalGroups)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetStatus(&self, status: VDS_ISCSI_PORTAL_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn SetIpsecTunnelAddress(&self, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecTunnelAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(ptunneladdress), core::mem::transmute(pdestinationaddress)).ok() + (windows_core::Interface::vtable(self).SetIpsecTunnelAddress)(windows_core::Interface::as_raw(self), ptunneladdress, pdestinationaddress).ok() } pub unsafe fn GetIpsecSecurity(&self, pinitiatorportaladdress: *const VDS_IPADDRESS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(pinitiatorportaladdress), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIpsecSecurity)(windows_core::Interface::as_raw(self), pinitiatorportaladdress, &mut result__).map(|| result__) } pub unsafe fn SetIpsecSecurity(&self, pinitiatorportaladdress: *const VDS_IPADDRESS, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(pinitiatorportaladdress), core::mem::transmute(ullsecurityflags), core::mem::transmute(pipseckey)).ok() + (windows_core::Interface::vtable(self).SetIpsecSecurity)(windows_core::Interface::as_raw(self), pinitiatorportaladdress, ullsecurityflags, pipseckey).ok() } } #[repr(C)] @@ -1964,7 +1964,7 @@ windows_core::imp::define_interface!(IVdsIscsiPortalLocal, IVdsIscsiPortalLocal_ windows_core::imp::interface_hierarchy!(IVdsIscsiPortalLocal, windows_core::IUnknown); impl IVdsIscsiPortalLocal { pub unsafe fn SetIpsecSecurityLocal(&self, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecSecurityLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(ullsecurityflags), core::mem::transmute(pipseckey)).ok() + (windows_core::Interface::vtable(self).SetIpsecSecurityLocal)(windows_core::Interface::as_raw(self), ullsecurityflags, pipseckey).ok() } } #[repr(C)] @@ -2024,13 +2024,13 @@ impl IVdsIscsiTarget { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSharedSecret)(windows_core::Interface::as_raw(self), core::mem::transmute(ptargetsharedsecret), pwszinitiatorname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSharedSecret)(windows_core::Interface::as_raw(self), ptargetsharedsecret, pwszinitiatorname.param().abi()).ok() } pub unsafe fn RememberInitiatorSharedSecret(&self, pwszinitiatorname: P0, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RememberInitiatorSharedSecret)(windows_core::Interface::as_raw(self), pwszinitiatorname.param().abi(), core::mem::transmute(pinitiatorsharedsecret)).ok() + (windows_core::Interface::vtable(self).RememberInitiatorSharedSecret)(windows_core::Interface::as_raw(self), pwszinitiatorname.param().abi(), pinitiatorsharedsecret).ok() } pub unsafe fn GetConnectedInitiators(&self, pppwszinitiatorlist: *mut *mut windows_core::PWSTR, plnumberofinitiators: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetConnectedInitiators)(windows_core::Interface::as_raw(self), core::mem::transmute(pppwszinitiatorlist), core::mem::transmute(plnumberofinitiators)).ok() @@ -2172,11 +2172,11 @@ impl IVdsLun { } pub unsafe fn Extend(&self, ullnumberofbytestoadd: u64, pdriveidarray: &[windows_core::GUID]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Extend)(windows_core::Interface::as_raw(self), core::mem::transmute(ullnumberofbytestoadd), core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Extend)(windows_core::Interface::as_raw(self), ullnumberofbytestoadd, core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Shrink(&self, ullnumberofbytestoremove: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), core::mem::transmute(ullnumberofbytestoremove), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), ullnumberofbytestoremove, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryPlexes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2210,10 +2210,10 @@ impl IVdsLun { (windows_core::Interface::vtable(self).QueryHints)(windows_core::Interface::as_raw(self), core::mem::transmute(phints)).ok() } pub unsafe fn ApplyHints(&self, phints: *const VDS_HINTS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplyHints)(windows_core::Interface::as_raw(self), core::mem::transmute(phints)).ok() + (windows_core::Interface::vtable(self).ApplyHints)(windows_core::Interface::as_raw(self), phints).ok() } pub unsafe fn SetStatus(&self, status: VDS_LUN_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn QueryMaxLunExtendSize(&self, pdriveidarray: &[windows_core::GUID]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2417,7 +2417,7 @@ impl IVdsLun2 { (windows_core::Interface::vtable(self).QueryHints2)(windows_core::Interface::as_raw(self), core::mem::transmute(phints2)).ok() } pub unsafe fn ApplyHints2(&self, phints2: *const VDS_HINTS2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplyHints2)(windows_core::Interface::as_raw(self), core::mem::transmute(phints2)).ok() + (windows_core::Interface::vtable(self).ApplyHints2)(windows_core::Interface::as_raw(self), phints2).ok() } } #[repr(C)] @@ -2557,7 +2557,7 @@ impl IVdsLunMpio { (windows_core::Interface::vtable(self).GetLoadBalancePolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(ppolicy), core::mem::transmute(pppaths), core::mem::transmute(plnumberofpaths)).ok() } pub unsafe fn SetLoadBalancePolicy(&self, policy: VDS_LOADBALANCE_POLICY_ENUM, ppaths: &[VDS_PATH_POLICY]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLoadBalancePolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(policy), core::mem::transmute(ppaths.as_ptr()), ppaths.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetLoadBalancePolicy)(windows_core::Interface::as_raw(self), policy, core::mem::transmute(ppaths.as_ptr()), ppaths.len().try_into().unwrap()).ok() } pub unsafe fn GetSupportedLbPolicies(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2698,7 +2698,7 @@ impl IVdsLunPlex { (windows_core::Interface::vtable(self).QueryHints)(windows_core::Interface::as_raw(self), core::mem::transmute(phints)).ok() } pub unsafe fn ApplyHints(&self, phints: *const VDS_HINTS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplyHints)(windows_core::Interface::as_raw(self), core::mem::transmute(phints)).ok() + (windows_core::Interface::vtable(self).ApplyHints)(windows_core::Interface::as_raw(self), phints).ok() } } #[repr(C)] @@ -2763,13 +2763,13 @@ windows_core::imp::define_interface!(IVdsMaintenance, IVdsMaintenance_Vtbl, 0xda windows_core::imp::interface_hierarchy!(IVdsMaintenance, windows_core::IUnknown); impl IVdsMaintenance { pub unsafe fn StartMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartMaintenance)(windows_core::Interface::as_raw(self), core::mem::transmute(operation)).ok() + (windows_core::Interface::vtable(self).StartMaintenance)(windows_core::Interface::as_raw(self), operation).ok() } pub unsafe fn StopMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopMaintenance)(windows_core::Interface::as_raw(self), core::mem::transmute(operation)).ok() + (windows_core::Interface::vtable(self).StopMaintenance)(windows_core::Interface::as_raw(self), operation).ok() } pub unsafe fn PulseMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PulseMaintenance)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).PulseMaintenance)(windows_core::Interface::as_raw(self), operation, ulcount).ok() } } #[repr(C)] @@ -2819,30 +2819,30 @@ impl IVdsOpenVDisk { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pstringsecuritydescriptor.param().abi(), core::mem::transmute(flags), core::mem::transmute(providerspecificflags), core::mem::transmute(timeoutinms), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pstringsecuritydescriptor.param().abi(), flags, providerspecificflags, timeoutinms, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn Detach(&self, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(providerspecificflags)).ok() + (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self), flags, providerspecificflags).ok() } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn DetachAndDelete(&self, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DetachAndDelete)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(providerspecificflags)).ok() + (windows_core::Interface::vtable(self).DetachAndDelete)(windows_core::Interface::as_raw(self), flags, providerspecificflags).ok() } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn Compact(&self, flags: super::Vhd::COMPACT_VIRTUAL_DISK_FLAG, reserved: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Compact)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Compact)(windows_core::Interface::as_raw(self), flags, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn Merge(&self, flags: super::Vhd::MERGE_VIRTUAL_DISK_FLAG, mergedepth: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(mergedepth), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), flags, mergedepth, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn Expand(&self, flags: super::Vhd::EXPAND_VIRTUAL_DISK_FLAG, newsize: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(newsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), flags, newsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2969,13 +2969,13 @@ impl IVdsPack { } pub unsafe fn CreateVolume(&self, r#type: VDS_VOLUME_TYPE, pinputdiskarray: &[VDS_INPUT_DISK], ulstripesize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pinputdiskarray.as_ptr()), pinputdiskarray.len().try_into().unwrap(), core::mem::transmute(ulstripesize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVolume)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pinputdiskarray.as_ptr()), pinputdiskarray.len().try_into().unwrap(), ulstripesize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddDisk(&self, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(diskid), core::mem::transmute(partitionstyle), bashotspare.into()).ok() + (windows_core::Interface::vtable(self).AddDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(diskid), partitionstyle, bashotspare.into()).ok() } pub unsafe fn MigrateDisks(&self, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: bool, bqueryonly: bool, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MigrateDisks)(windows_core::Interface::as_raw(self), core::mem::transmute(pdiskarray), core::mem::transmute(lnumberofdisks), core::mem::transmute(targetpack), bforce.into(), bqueryonly.into(), core::mem::transmute(presults), core::mem::transmute(pbrebootneeded)).ok() + (windows_core::Interface::vtable(self).MigrateDisks)(windows_core::Interface::as_raw(self), pdiskarray, lnumberofdisks, core::mem::transmute(targetpack), bforce.into(), bqueryonly.into(), core::mem::transmute(presults), core::mem::transmute(pbrebootneeded)).ok() } pub unsafe fn ReplaceDisk(&self, olddiskid: windows_core::GUID, newdiskid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3117,7 +3117,7 @@ windows_core::imp::interface_hierarchy!(IVdsPack2, windows_core::IUnknown); impl IVdsPack2 { pub unsafe fn CreateVolume2(&self, r#type: VDS_VOLUME_TYPE, pinputdiskarray: &[VDS_INPUT_DISK], ulstripesize: u32, ulalign: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVolume2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pinputdiskarray.as_ptr()), pinputdiskarray.len().try_into().unwrap(), core::mem::transmute(ulstripesize), core::mem::transmute(ulalign), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVolume2)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pinputdiskarray.as_ptr()), pinputdiskarray.len().try_into().unwrap(), ulstripesize, ulalign, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3180,7 +3180,7 @@ windows_core::imp::interface_hierarchy!(IVdsProviderPrivate, windows_core::IUnkn impl IVdsProviderPrivate { pub unsafe fn GetObject(&self, objectid: windows_core::GUID, r#type: VDS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnLoad(&self, pwszmachinename: P0, pcallbackobject: P1) -> windows_core::Result<()> where @@ -3324,7 +3324,7 @@ impl IVdsService { } pub unsafe fn QueryProviders(&self, masks: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryProviders)(windows_core::Interface::as_raw(self), core::mem::transmute(masks), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryProviders)(windows_core::Interface::as_raw(self), masks, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryMaskedDisks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3336,10 +3336,10 @@ impl IVdsService { } pub unsafe fn GetObject(&self, objectid: windows_core::GUID, r#type: VDS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryDriveLetters(&self, wcfirstletter: u16, pdriveletterproparray: &mut [VDS_DRIVE_LETTER_PROP]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryDriveLetters)(windows_core::Interface::as_raw(self), core::mem::transmute(wcfirstletter), pdriveletterproparray.len().try_into().unwrap(), core::mem::transmute(pdriveletterproparray.as_ptr())).ok() + (windows_core::Interface::vtable(self).QueryDriveLetters)(windows_core::Interface::as_raw(self), wcfirstletter, pdriveletterproparray.len().try_into().unwrap(), core::mem::transmute(pdriveletterproparray.as_ptr())).ok() } pub unsafe fn QueryFileSystemTypes(&self, ppfilesystemtypeprops: *mut *mut VDS_FILE_SYSTEM_TYPE_PROP, plnumberoffilesystems: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryFileSystemTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfilesystemtypeprops), core::mem::transmute(plnumberoffilesystems)).ok() @@ -3361,16 +3361,16 @@ impl IVdsService { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn Reboot(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reboot)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn ClearFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } } #[repr(C)] @@ -3623,19 +3623,19 @@ impl IVdsServiceIscsi { (windows_core::Interface::vtable(self).QueryInitiatorAdapters)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetIpsecGroupPresharedKey(&self, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecGroupPresharedKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pipseckey)).ok() + (windows_core::Interface::vtable(self).SetIpsecGroupPresharedKey)(windows_core::Interface::as_raw(self), pipseckey).ok() } pub unsafe fn SetAllIpsecTunnelAddresses(&self, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllIpsecTunnelAddresses)(windows_core::Interface::as_raw(self), core::mem::transmute(ptunneladdress), core::mem::transmute(pdestinationaddress)).ok() + (windows_core::Interface::vtable(self).SetAllIpsecTunnelAddresses)(windows_core::Interface::as_raw(self), ptunneladdress, pdestinationaddress).ok() } pub unsafe fn SetAllIpsecSecurity(&self, targetportalid: windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(targetportalid), core::mem::transmute(ullsecurityflags), core::mem::transmute(pipseckey)).ok() + (windows_core::Interface::vtable(self).SetAllIpsecSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(targetportalid), ullsecurityflags, pipseckey).ok() } pub unsafe fn SetInitiatorSharedSecret(&self, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET, targetid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitiatorSharedSecret)(windows_core::Interface::as_raw(self), core::mem::transmute(pinitiatorsharedsecret), core::mem::transmute(targetid)).ok() + (windows_core::Interface::vtable(self).SetInitiatorSharedSecret)(windows_core::Interface::as_raw(self), pinitiatorsharedsecret, core::mem::transmute(targetid)).ok() } pub unsafe fn RememberTargetSharedSecret(&self, targetid: windows_core::GUID, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RememberTargetSharedSecret)(windows_core::Interface::as_raw(self), core::mem::transmute(targetid), core::mem::transmute(ptargetsharedsecret)).ok() + (windows_core::Interface::vtable(self).RememberTargetSharedSecret)(windows_core::Interface::as_raw(self), core::mem::transmute(targetid), ptargetsharedsecret).ok() } } #[repr(C)] @@ -3762,7 +3762,7 @@ impl IVdsServiceSAN { (windows_core::Interface::vtable(self).GetSANPolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSANPolicy(&self, sanpolicy: VDS_SAN_POLICY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSANPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(sanpolicy)).ok() + (windows_core::Interface::vtable(self).SetSANPolicy)(windows_core::Interface::as_raw(self), sanpolicy).ok() } } #[repr(C)] @@ -3845,10 +3845,10 @@ windows_core::imp::interface_hierarchy!(IVdsServiceUninstallDisk, windows_core:: impl IVdsServiceUninstallDisk { pub unsafe fn GetDiskIdFromLunInfo(&self, pluninfo: *const VDS_LUN_INFORMATION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDiskIdFromLunInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pluninfo), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDiskIdFromLunInfo)(windows_core::Interface::as_raw(self), pluninfo, &mut result__).map(|| result__) } pub unsafe fn UninstallDisks(&self, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: bool, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UninstallDisks)(windows_core::Interface::as_raw(self), core::mem::transmute(pdiskidarray), core::mem::transmute(ulcount), core::mem::transmute(bforce), core::mem::transmute(pbreboot), core::mem::transmute(presults)).ok() + (windows_core::Interface::vtable(self).UninstallDisks)(windows_core::Interface::as_raw(self), pdiskidarray, ulcount, bforce, core::mem::transmute(pbreboot), core::mem::transmute(presults)).ok() } } #[repr(C)] @@ -4014,7 +4014,7 @@ impl IVdsSubSystem { } pub unsafe fn GetDrive(&self, sbusnumber: i16, sslotnumber: i16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDrive)(windows_core::Interface::as_raw(self), core::mem::transmute(sbusnumber), core::mem::transmute(sslotnumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDrive)(windows_core::Interface::as_raw(self), sbusnumber, sslotnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reenumerate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reenumerate)(windows_core::Interface::as_raw(self)).ok() @@ -4027,17 +4027,17 @@ impl IVdsSubSystem { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLun)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(ullsizeinbytes), core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), pwszunmaskinglist.param().abi(), core::mem::transmute(phints), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLun)(windows_core::Interface::as_raw(self), r#type, ullsizeinbytes, core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), pwszunmaskinglist.param().abi(), phints, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReplaceDrive(&self, drivetobereplaced: windows_core::GUID, replacementdrive: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReplaceDrive)(windows_core::Interface::as_raw(self), core::mem::transmute(drivetobereplaced), core::mem::transmute(replacementdrive)).ok() } pub unsafe fn SetStatus(&self, status: VDS_SUB_SYSTEM_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn QueryMaxLunCreateSize(&self, r#type: VDS_LUN_TYPE, pdriveidarray: &[windows_core::GUID], phints: *const VDS_HINTS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryMaxLunCreateSize)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), core::mem::transmute(phints), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryMaxLunCreateSize)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), phints, &mut result__).map(|| result__) } } #[repr(C)] @@ -4191,18 +4191,18 @@ impl IVdsSubSystem2 { } pub unsafe fn GetDrive2(&self, sbusnumber: i16, sslotnumber: i16, ulenclosurenumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDrive2)(windows_core::Interface::as_raw(self), core::mem::transmute(sbusnumber), core::mem::transmute(sslotnumber), core::mem::transmute(ulenclosurenumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDrive2)(windows_core::Interface::as_raw(self), sbusnumber, sslotnumber, ulenclosurenumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLun2(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: &[windows_core::GUID], pwszunmaskinglist: P4, phints2: *const VDS_HINTS2) -> windows_core::Result where P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLun2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(ullsizeinbytes), core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), pwszunmaskinglist.param().abi(), core::mem::transmute(phints2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLun2)(windows_core::Interface::as_raw(self), r#type, ullsizeinbytes, core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), pwszunmaskinglist.param().abi(), phints2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryMaxLunCreateSize2(&self, r#type: VDS_LUN_TYPE, pdriveidarray: &[windows_core::GUID], phints2: *const VDS_HINTS2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryMaxLunCreateSize2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), core::mem::transmute(phints2), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryMaxLunCreateSize2)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), phints2, &mut result__).map(|| result__) } } #[repr(C)] @@ -4374,7 +4374,7 @@ impl IVdsSubSystemIscsi { (windows_core::Interface::vtable(self).CreateTarget)(windows_core::Interface::as_raw(self), pwsziscsiname.param().abi(), pwszfriendlyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetIpsecGroupPresharedKey(&self, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIpsecGroupPresharedKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pipseckey)).ok() + (windows_core::Interface::vtable(self).SetIpsecGroupPresharedKey)(windows_core::Interface::as_raw(self), pipseckey).ok() } } #[repr(C)] @@ -4532,7 +4532,7 @@ impl IVdsVDisk { #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn Open(&self, accessmask: super::Vhd::VIRTUAL_DISK_ACCESS_MASK, flags: super::Vhd::OPEN_VIRTUAL_DISK_FLAG, readwritedepth: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(accessmask), core::mem::transmute(flags), core::mem::transmute(readwritedepth), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), accessmask, flags, readwritedepth, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn GetProperties(&self, pdiskproperties: *mut VDS_VDISK_PROPERTIES) -> windows_core::Result<()> { @@ -4632,14 +4632,14 @@ impl IVdsVdProvider { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(virtualdevicetype), ppath.param().abi(), pstringsecuritydescriptor.param().abi(), core::mem::transmute(flags), core::mem::transmute(providerspecificflags), core::mem::transmute(reserved), core::mem::transmute(pcreatediskparameters), core::mem::transmute(ppasync)).ok() + (windows_core::Interface::vtable(self).CreateVDisk)(windows_core::Interface::as_raw(self), virtualdevicetype, ppath.param().abi(), pstringsecuritydescriptor.param().abi(), flags, providerspecificflags, reserved, pcreatediskparameters, core::mem::transmute(ppasync)).ok() } #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn AddVDisk(&self, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: P1, ppvdisk: *mut Option) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddVDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(virtualdevicetype), ppath.param().abi(), core::mem::transmute(ppvdisk)).ok() + (windows_core::Interface::vtable(self).AddVDisk)(windows_core::Interface::as_raw(self), virtualdevicetype, ppath.param().abi(), core::mem::transmute(ppvdisk)).ok() } pub unsafe fn GetDiskFromVDisk(&self, pvdisk: P0) -> windows_core::Result where @@ -4755,7 +4755,7 @@ impl IVdsVolume { } pub unsafe fn Shrink(&self, ullnumberofbytestoremove: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), core::mem::transmute(ullnumberofbytestoremove), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), ullnumberofbytestoremove, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddPlex(&self, volumeid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4773,10 +4773,10 @@ impl IVdsVolume { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), bforce.into()).ok() } pub unsafe fn SetFlags(&self, ulflags: u32, brevertonclose: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), brevertonclose.into()).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags, brevertonclose.into()).ok() } pub unsafe fn ClearFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } } #[repr(C)] @@ -4954,7 +4954,7 @@ impl IVdsVolumeMF { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), pwszlabel.param().abi(), core::mem::transmute(dwunitallocationsize), bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), r#type, pwszlabel.param().abi(), dwunitallocationsize, bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAccessPath(&self, pwszpath: P0) -> windows_core::Result<()> where @@ -4981,10 +4981,10 @@ impl IVdsVolumeMF { (windows_core::Interface::vtable(self).Dismount)(windows_core::Interface::as_raw(self), bforce.into(), bpermanent.into()).ok() } pub unsafe fn SetFileSystemFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileSystemFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetFileSystemFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn ClearFileSystemFlags(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearFileSystemFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ClearFileSystemFlags)(windows_core::Interface::as_raw(self), ulflags).ok() } } #[repr(C)] @@ -5096,7 +5096,7 @@ impl IVdsVolumeMF2 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatEx)(windows_core::Interface::as_raw(self), pwszfilesystemtypename.param().abi(), core::mem::transmute(usfilesystemrevision), core::mem::transmute(uldesiredunitallocationsize), pwszlabel.param().abi(), bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FormatEx)(windows_core::Interface::as_raw(self), pwszfilesystemtypename.param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.param().abi(), bforce.into(), bquickformat.into(), benablecompression.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5161,7 +5161,7 @@ impl IVdsVolumeMF3 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatEx2)(windows_core::Interface::as_raw(self), pwszfilesystemtypename.param().abi(), core::mem::transmute(usfilesystemrevision), core::mem::transmute(uldesiredunitallocationsize), pwszlabel.param().abi(), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FormatEx2)(windows_core::Interface::as_raw(self), pwszfilesystemtypename.param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OfflineVolume(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OfflineVolume)(windows_core::Interface::as_raw(self)).ok() @@ -5323,7 +5323,7 @@ impl IVdsVolumeShrink { } pub unsafe fn Shrink(&self, ulldesirednumberofreclaimablebytes: u64, ullminnumberofreclaimablebytes: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), core::mem::transmute(ulldesirednumberofreclaimablebytes), core::mem::transmute(ullminnumberofreclaimablebytes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), ulldesirednumberofreclaimablebytes, ullminnumberofreclaimablebytes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs index f0b5d16b67..8a6840a784 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -8,7 +8,7 @@ windows_core::imp::define_interface!(IVssAdmin, IVssAdmin_Vtbl, 0x77ed5996_2f63_ windows_core::imp::interface_hierarchy!(IVssAdmin, windows_core::IUnknown); impl IVssAdmin { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).RegisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(pproviderid), core::mem::transmute(classid), core::mem::transmute(pwszprovidername), core::mem::transmute(eprovidertype), core::mem::transmute(pwszproviderversion), core::mem::transmute(providerversionid)).ok() + (windows_core::Interface::vtable(self).RegisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(pproviderid), core::mem::transmute(classid), pwszprovidername, eprovidertype, pwszproviderversion, core::mem::transmute(providerversionid)).ok() } pub unsafe fn UnregisterProvider(&self, providerid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid)).ok() @@ -90,7 +90,7 @@ impl IVssAdminEx { (windows_core::Interface::vtable(self).GetProviderContext)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), &mut result__).map(|| result__) } pub unsafe fn SetProviderContext(&self, providerid: windows_core::GUID, lcontext: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderContext)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), core::mem::transmute(lcontext)).ok() + (windows_core::Interface::vtable(self).SetProviderContext)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), lcontext).ok() } } #[repr(C)] @@ -150,7 +150,7 @@ impl IVssAsync { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Wait(&self, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwmilliseconds).ok() } pub unsafe fn QueryStatus(&self, phrresult: *mut windows_core::HRESULT, preserved: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(phrresult), core::mem::transmute(preserved)).ok() @@ -214,7 +214,7 @@ impl IVssComponent { } pub unsafe fn GetAlternateLocationMapping(&self, imapping: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlternateLocationMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(imapping), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAlternateLocationMapping)(windows_core::Interface::as_raw(self), imapping, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBackupMetadata(&self, wszdata: P0) -> windows_core::Result<()> where @@ -238,7 +238,7 @@ impl IVssComponent { (windows_core::Interface::vtable(self).GetPartialFileCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcpartialfiles)).ok() } pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: *mut windows_core::BSTR, pbstrfilename: *mut windows_core::BSTR, pbstrrange: *mut windows_core::BSTR, pbstrmetadata: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPartialFile)(windows_core::Interface::as_raw(self), core::mem::transmute(ipartialfile), core::mem::transmute(pbstrpath), core::mem::transmute(pbstrfilename), core::mem::transmute(pbstrrange), core::mem::transmute(pbstrmetadata)).ok() + (windows_core::Interface::vtable(self).GetPartialFile)(windows_core::Interface::as_raw(self), ipartialfile, core::mem::transmute(pbstrpath), core::mem::transmute(pbstrfilename), core::mem::transmute(pbstrrange), core::mem::transmute(pbstrmetadata)).ok() } pub unsafe fn IsSelectedForRestore(&self, pbselectedforrestore: *mut bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsSelectedForRestore)(windows_core::Interface::as_raw(self), core::mem::transmute(pbselectedforrestore)).ok() @@ -251,7 +251,7 @@ impl IVssComponent { } pub unsafe fn GetNewTarget(&self, inewtarget: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNewTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(inewtarget), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNewTarget)(windows_core::Interface::as_raw(self), inewtarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddDirectedTarget(&self, wszsourcepath: P0, wszsourcefilename: P1, wszsourcerangelist: P2, wszdestinationpath: P3, wszdestinationfilename: P4, wszdestinationrangelist: P5) -> windows_core::Result<()> where @@ -268,7 +268,7 @@ impl IVssComponent { (windows_core::Interface::vtable(self).GetDirectedTargetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdirectedtarget)).ok() } pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: *mut windows_core::BSTR, pbstrsourcefilename: *mut windows_core::BSTR, pbstrsourcerangelist: *mut windows_core::BSTR, pbstrdestinationpath: *mut windows_core::BSTR, pbstrdestinationfilename: *mut windows_core::BSTR, pbstrdestinationrangelist: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDirectedTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(idirectedtarget), core::mem::transmute(pbstrsourcepath), core::mem::transmute(pbstrsourcefilename), core::mem::transmute(pbstrsourcerangelist), core::mem::transmute(pbstrdestinationpath), core::mem::transmute(pbstrdestinationfilename), core::mem::transmute(pbstrdestinationrangelist)).ok() + (windows_core::Interface::vtable(self).GetDirectedTarget)(windows_core::Interface::as_raw(self), idirectedtarget, core::mem::transmute(pbstrsourcepath), core::mem::transmute(pbstrsourcefilename), core::mem::transmute(pbstrsourcerangelist), core::mem::transmute(pbstrdestinationpath), core::mem::transmute(pbstrdestinationfilename), core::mem::transmute(pbstrdestinationrangelist)).ok() } pub unsafe fn SetRestoreMetadata(&self, wszrestoremetadata: P0) -> windows_core::Result<()> where @@ -280,7 +280,7 @@ impl IVssComponent { (windows_core::Interface::vtable(self).GetRestoreMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrrestoremetadata)).ok() } pub unsafe fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRestoreTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(target)).ok() + (windows_core::Interface::vtable(self).SetRestoreTarget)(windows_core::Interface::as_raw(self), target).ok() } pub unsafe fn GetRestoreTarget(&self, ptarget: *mut VSS_RESTORE_TARGET) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRestoreTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(ptarget)).ok() @@ -325,7 +325,7 @@ impl IVssComponent { (windows_core::Interface::vtable(self).GetRestoreSubcomponentCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcrestoresubcomponent)).ok() } pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: *mut windows_core::BSTR, pbstrcomponentname: *mut windows_core::BSTR, pbrepair: *mut bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRestoreSubcomponent)(windows_core::Interface::as_raw(self), core::mem::transmute(icomponent), core::mem::transmute(pbstrlogicalpath), core::mem::transmute(pbstrcomponentname), core::mem::transmute(pbrepair)).ok() + (windows_core::Interface::vtable(self).GetRestoreSubcomponent)(windows_core::Interface::as_raw(self), icomponent, core::mem::transmute(pbstrlogicalpath), core::mem::transmute(pbstrcomponentname), core::mem::transmute(pbrepair)).ok() } pub unsafe fn GetFileRestoreStatus(&self, pstatus: *mut VSS_FILE_RESTORE_STATUS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFileRestoreStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatus)).ok() @@ -348,7 +348,7 @@ impl IVssComponent { (windows_core::Interface::vtable(self).GetDifferencedFilesCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcdifferencedfiles)).ok() } pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut windows_core::BSTR, pbstrfilespec: *mut windows_core::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut windows_core::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDifferencedFile)(windows_core::Interface::as_raw(self), core::mem::transmute(idifferencedfile), core::mem::transmute(pbstrpath), core::mem::transmute(pbstrfilespec), core::mem::transmute(pbrecursive), core::mem::transmute(pbstrlsnstring), core::mem::transmute(pftlastmodifytime)).ok() + (windows_core::Interface::vtable(self).GetDifferencedFile)(windows_core::Interface::as_raw(self), idifferencedfile, core::mem::transmute(pbstrpath), core::mem::transmute(pbstrfilespec), core::mem::transmute(pbrecursive), core::mem::transmute(pbstrlsnstring), core::mem::transmute(pftlastmodifytime)).ok() } } #[repr(C)] @@ -790,7 +790,7 @@ impl IVssComponentEx2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFailure)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), core::mem::transmute(hrapplication), wszapplicationmessage.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetFailure)(windows_core::Interface::as_raw(self), hr, hrapplication, wszapplicationmessage.param().abi(), dwreserved).ok() } pub unsafe fn GetFailure(&self, phr: *mut windows_core::HRESULT, phrapplication: *mut windows_core::HRESULT, pbstrapplicationmessage: *mut windows_core::BSTR, pdwreserved: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFailure)(windows_core::Interface::as_raw(self), core::mem::transmute(phr), core::mem::transmute(phrapplication), core::mem::transmute(pbstrapplicationmessage), core::mem::transmute(pdwreserved)).ok() @@ -831,7 +831,7 @@ impl IVssCreateExpressWriterMetadata { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExcludeFiles)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(brecursive)).ok() + (windows_core::Interface::vtable(self).AddExcludeFiles)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive).ok() } pub unsafe fn AddComponent(&self, ct: VSS_COMPONENT_TYPE, wszlogicalpath: P1, wszcomponentname: P2, wszcaption: P3, pbicon: *const u8, cbicon: u32, brestoremetadata: u8, bnotifyonbackupcomplete: u8, bselectable: u8, bselectableforrestore: u8, dwcomponentflags: u32) -> windows_core::Result<()> where @@ -839,7 +839,7 @@ impl IVssCreateExpressWriterMetadata { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(ct), wszlogicalpath.param().abi(), wszcomponentname.param().abi(), wszcaption.param().abi(), core::mem::transmute(pbicon), core::mem::transmute(cbicon), core::mem::transmute(brestoremetadata), core::mem::transmute(bnotifyonbackupcomplete), core::mem::transmute(bselectable), core::mem::transmute(bselectableforrestore), core::mem::transmute(dwcomponentflags)).ok() + (windows_core::Interface::vtable(self).AddComponent)(windows_core::Interface::as_raw(self), ct, wszlogicalpath.param().abi(), wszcomponentname.param().abi(), wszcaption.param().abi(), pbicon, cbicon, brestoremetadata, bnotifyonbackupcomplete, bselectable, bselectableforrestore, dwcomponentflags).ok() } pub unsafe fn AddFilesToFileGroup(&self, wszlogicalpath: P0, wszgroupname: P1, wszpath: P2, wszfilespec: P3, brecursive: u8, wszalternatelocation: P5, dwbackuptypemask: u32) -> windows_core::Result<()> where @@ -849,14 +849,14 @@ impl IVssCreateExpressWriterMetadata { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilesToFileGroup)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszgroupname.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(brecursive), wszalternatelocation.param().abi(), core::mem::transmute(dwbackuptypemask)).ok() + (windows_core::Interface::vtable(self).AddFilesToFileGroup)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszgroupname.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), brecursive, wszalternatelocation.param().abi(), dwbackuptypemask).ok() } pub unsafe fn SetRestoreMethod(&self, method: VSS_RESTOREMETHOD_ENUM, wszservice: P1, wszuserprocedure: P2, writerrestore: VSS_WRITERRESTORE_ENUM, brebootrequired: u8) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestoreMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(method), wszservice.param().abi(), wszuserprocedure.param().abi(), core::mem::transmute(writerrestore), core::mem::transmute(brebootrequired)).ok() + (windows_core::Interface::vtable(self).SetRestoreMethod)(windows_core::Interface::as_raw(self), method, wszservice.param().abi(), wszuserprocedure.param().abi(), writerrestore, brebootrequired).ok() } pub unsafe fn AddComponentDependency(&self, wszforlogicalpath: P0, wszforcomponentname: P1, onwriterid: windows_core::GUID, wszonlogicalpath: P3, wszoncomponentname: P4) -> windows_core::Result<()> where @@ -868,7 +868,7 @@ impl IVssCreateExpressWriterMetadata { (windows_core::Interface::vtable(self).AddComponentDependency)(windows_core::Interface::as_raw(self), wszforlogicalpath.param().abi(), wszforcomponentname.param().abi(), core::mem::transmute(onwriterid), wszonlogicalpath.param().abi(), wszoncomponentname.param().abi()).ok() } pub unsafe fn SetBackupSchema(&self, dwschemamask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackupSchema)(windows_core::Interface::as_raw(self), core::mem::transmute(dwschemamask)).ok() + (windows_core::Interface::vtable(self).SetBackupSchema)(windows_core::Interface::as_raw(self), dwschemamask).ok() } pub unsafe fn SaveAsXML(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -955,14 +955,14 @@ impl IVssCreateWriterMetadata { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddIncludeFiles)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(brecursive), wszalternatelocation.param().abi()).ok() + (windows_core::Interface::vtable(self).AddIncludeFiles)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive, wszalternatelocation.param().abi()).ok() } pub unsafe fn AddExcludeFiles(&self, wszpath: P0, wszfilespec: P1, brecursive: u8) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExcludeFiles)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(brecursive)).ok() + (windows_core::Interface::vtable(self).AddExcludeFiles)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive).ok() } pub unsafe fn AddComponent(&self, ct: VSS_COMPONENT_TYPE, wszlogicalpath: P1, wszcomponentname: P2, wszcaption: P3, pbicon: *const u8, cbicon: u32, brestoremetadata: u8, bnotifyonbackupcomplete: u8, bselectable: u8, bselectableforrestore: u8, dwcomponentflags: u32) -> windows_core::Result<()> where @@ -970,7 +970,7 @@ impl IVssCreateWriterMetadata { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(ct), wszlogicalpath.param().abi(), wszcomponentname.param().abi(), wszcaption.param().abi(), core::mem::transmute(pbicon), core::mem::transmute(cbicon), core::mem::transmute(brestoremetadata), core::mem::transmute(bnotifyonbackupcomplete), core::mem::transmute(bselectable), core::mem::transmute(bselectableforrestore), core::mem::transmute(dwcomponentflags)).ok() + (windows_core::Interface::vtable(self).AddComponent)(windows_core::Interface::as_raw(self), ct, wszlogicalpath.param().abi(), wszcomponentname.param().abi(), wszcaption.param().abi(), pbicon, cbicon, brestoremetadata, bnotifyonbackupcomplete, bselectable, bselectableforrestore, dwcomponentflags).ok() } pub unsafe fn AddDatabaseFiles(&self, wszlogicalpath: P0, wszdatabasename: P1, wszpath: P2, wszfilespec: P3, dwbackuptypemask: u32) -> windows_core::Result<()> where @@ -979,7 +979,7 @@ impl IVssCreateWriterMetadata { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDatabaseFiles)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszdatabasename.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(dwbackuptypemask)).ok() + (windows_core::Interface::vtable(self).AddDatabaseFiles)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszdatabasename.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), dwbackuptypemask).ok() } pub unsafe fn AddDatabaseLogFiles(&self, wszlogicalpath: P0, wszdatabasename: P1, wszpath: P2, wszfilespec: P3, dwbackuptypemask: u32) -> windows_core::Result<()> where @@ -988,7 +988,7 @@ impl IVssCreateWriterMetadata { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDatabaseLogFiles)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszdatabasename.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(dwbackuptypemask)).ok() + (windows_core::Interface::vtable(self).AddDatabaseLogFiles)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszdatabasename.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), dwbackuptypemask).ok() } pub unsafe fn AddFilesToFileGroup(&self, wszlogicalpath: P0, wszgroupname: P1, wszpath: P2, wszfilespec: P3, brecursive: u8, wszalternatelocation: P5, dwbackuptypemask: u32) -> windows_core::Result<()> where @@ -998,14 +998,14 @@ impl IVssCreateWriterMetadata { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilesToFileGroup)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszgroupname.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), core::mem::transmute(brecursive), wszalternatelocation.param().abi(), core::mem::transmute(dwbackuptypemask)).ok() + (windows_core::Interface::vtable(self).AddFilesToFileGroup)(windows_core::Interface::as_raw(self), wszlogicalpath.param().abi(), wszgroupname.param().abi(), wszpath.param().abi(), wszfilespec.param().abi(), brecursive, wszalternatelocation.param().abi(), dwbackuptypemask).ok() } pub unsafe fn SetRestoreMethod(&self, method: VSS_RESTOREMETHOD_ENUM, wszservice: P1, wszuserprocedure: P2, writerrestore: VSS_WRITERRESTORE_ENUM, brebootrequired: u8) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestoreMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(method), wszservice.param().abi(), wszuserprocedure.param().abi(), core::mem::transmute(writerrestore), core::mem::transmute(brebootrequired)).ok() + (windows_core::Interface::vtable(self).SetRestoreMethod)(windows_core::Interface::as_raw(self), method, wszservice.param().abi(), wszuserprocedure.param().abi(), writerrestore, brebootrequired).ok() } pub unsafe fn AddAlternateLocationMapping(&self, wszsourcepath: P0, wszsourcefilespec: P1, brecursive: u8, wszdestination: P3) -> windows_core::Result<()> where @@ -1013,7 +1013,7 @@ impl IVssCreateWriterMetadata { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAlternateLocationMapping)(windows_core::Interface::as_raw(self), wszsourcepath.param().abi(), wszsourcefilespec.param().abi(), core::mem::transmute(brecursive), wszdestination.param().abi()).ok() + (windows_core::Interface::vtable(self).AddAlternateLocationMapping)(windows_core::Interface::as_raw(self), wszsourcepath.param().abi(), wszsourcefilespec.param().abi(), brecursive, wszdestination.param().abi()).ok() } pub unsafe fn AddComponentDependency(&self, wszforlogicalpath: P0, wszforcomponentname: P1, onwriterid: windows_core::GUID, wszonlogicalpath: P3, wszoncomponentname: P4) -> windows_core::Result<()> where @@ -1025,7 +1025,7 @@ impl IVssCreateWriterMetadata { (windows_core::Interface::vtable(self).AddComponentDependency)(windows_core::Interface::as_raw(self), wszforlogicalpath.param().abi(), wszforcomponentname.param().abi(), core::mem::transmute(onwriterid), wszonlogicalpath.param().abi(), wszoncomponentname.param().abi()).ok() } pub unsafe fn SetBackupSchema(&self, dwschemamask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackupSchema)(windows_core::Interface::as_raw(self), core::mem::transmute(dwschemamask)).ok() + (windows_core::Interface::vtable(self).SetBackupSchema)(windows_core::Interface::as_raw(self), dwschemamask).ok() } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn GetDocument(&self) -> windows_core::Result { @@ -1172,22 +1172,22 @@ windows_core::imp::define_interface!(IVssDifferentialSoftwareSnapshotMgmt, IVssD windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt, windows_core::IUnknown); impl IVssDifferentialSoftwareSnapshotMgmt { pub unsafe fn AddDiffArea(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDiffArea)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(pwszdiffareavolumename), core::mem::transmute(llmaximumdiffspace)).ok() + (windows_core::Interface::vtable(self).AddDiffArea)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace).ok() } pub unsafe fn ChangeDiffAreaMaximumSize(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeDiffAreaMaximumSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(pwszdiffareavolumename), core::mem::transmute(llmaximumdiffspace)).ok() + (windows_core::Interface::vtable(self).ChangeDiffAreaMaximumSize)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace).ok() } pub unsafe fn QueryVolumesSupportedForDiffAreas(&self, pwszoriginalvolumename: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryVolumesSupportedForDiffAreas)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszoriginalvolumename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryVolumesSupportedForDiffAreas)(windows_core::Interface::as_raw(self), pwszoriginalvolumename, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryDiffAreasForVolume(&self, pwszvolumename: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDiffAreasForVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDiffAreasForVolume)(windows_core::Interface::as_raw(self), pwszvolumename, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryDiffAreasOnVolume(&self, pwszvolumename: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDiffAreasOnVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDiffAreasOnVolume)(windows_core::Interface::as_raw(self), pwszvolumename, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryDiffAreasForSnapshot(&self, snapshotid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1287,17 +1287,17 @@ impl core::ops::Deref for IVssDifferentialSoftwareSnapshotMgmt2 { windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt2, windows_core::IUnknown, IVssDifferentialSoftwareSnapshotMgmt); impl IVssDifferentialSoftwareSnapshotMgmt2 { pub unsafe fn ChangeDiffAreaMaximumSizeEx(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeDiffAreaMaximumSizeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(pwszdiffareavolumename), core::mem::transmute(llmaximumdiffspace), bvolatile.into()).ok() + (windows_core::Interface::vtable(self).ChangeDiffAreaMaximumSizeEx)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace, bvolatile.into()).ok() } pub unsafe fn MigrateDiffAreas(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, pwsznewdiffareavolumename: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MigrateDiffAreas)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(pwszdiffareavolumename), core::mem::transmute(pwsznewdiffareavolumename)).ok() + (windows_core::Interface::vtable(self).MigrateDiffAreas)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, pwsznewdiffareavolumename).ok() } pub unsafe fn QueryMigrationStatus(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryMigrationStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(pwszdiffareavolumename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryMigrationStatus)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSnapshotPriority(&self, idsnapshot: windows_core::GUID, priority: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapshotPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(idsnapshot), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).SetSnapshotPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(idsnapshot), priority).ok() } } #[repr(C)] @@ -1361,16 +1361,16 @@ impl core::ops::Deref for IVssDifferentialSoftwareSnapshotMgmt3 { windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt3, windows_core::IUnknown, IVssDifferentialSoftwareSnapshotMgmt, IVssDifferentialSoftwareSnapshotMgmt2); impl IVssDifferentialSoftwareSnapshotMgmt3 { pub unsafe fn SetVolumeProtectLevel(&self, pwszvolumename: *const u16, protectionlevel: VSS_PROTECTION_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolumeProtectLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(protectionlevel)).ok() + (windows_core::Interface::vtable(self).SetVolumeProtectLevel)(windows_core::Interface::as_raw(self), pwszvolumename, protectionlevel).ok() } pub unsafe fn GetVolumeProtectLevel(&self, pwszvolumename: *const u16, protectionlevel: *mut VSS_VOLUME_PROTECTION_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVolumeProtectLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(protectionlevel)).ok() + (windows_core::Interface::vtable(self).GetVolumeProtectLevel)(windows_core::Interface::as_raw(self), pwszvolumename, core::mem::transmute(protectionlevel)).ok() } pub unsafe fn ClearVolumeProtectFault(&self, pwszvolumename: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearVolumeProtectFault)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename)).ok() + (windows_core::Interface::vtable(self).ClearVolumeProtectFault)(windows_core::Interface::as_raw(self), pwszvolumename).ok() } pub unsafe fn DeleteUnusedDiffAreas(&self, pwszdiffareavolumename: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteUnusedDiffAreas)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszdiffareavolumename)).ok() + (windows_core::Interface::vtable(self).DeleteUnusedDiffAreas)(windows_core::Interface::as_raw(self), pwszdiffareavolumename).ok() } pub unsafe fn QuerySnapshotDeltaBitmap(&self, idsnapshotolder: windows_core::GUID, idsnapshotyounger: windows_core::GUID, pcblocksizeperbit: *mut u32, pcbitmaplength: *mut u32, ppbbitmap: *mut *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QuerySnapshotDeltaBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(idsnapshotolder), core::mem::transmute(idsnapshotyounger), core::mem::transmute(pcblocksizeperbit), core::mem::transmute(pcbitmaplength), core::mem::transmute(ppbbitmap)).ok() @@ -1435,7 +1435,7 @@ impl IVssEnumMgmtObject { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1496,7 +1496,7 @@ impl IVssEnumObject { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1558,13 +1558,13 @@ impl IVssExpressWriter { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(writerid), writername.param().abi(), core::mem::transmute(usagetype), core::mem::transmute(versionmajor), core::mem::transmute(versionminor), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(writerid), writername.param().abi(), usagetype, versionmajor, versionminor, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadMetadata(&self, metadata: P0, reserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadMetadata)(windows_core::Interface::as_raw(self), metadata.param().abi(), core::mem::transmute(reserved)).ok() + (windows_core::Interface::vtable(self).LoadMetadata)(windows_core::Interface::as_raw(self), metadata.param().abi(), reserved).ok() } pub unsafe fn Register(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self)).ok() @@ -1628,31 +1628,31 @@ windows_core::imp::define_interface!(IVssFileShareSnapshotProvider, IVssFileShar windows_core::imp::interface_hierarchy!(IVssFileShareSnapshotProvider, windows_core::IUnknown); impl IVssFileShareSnapshotProvider { pub unsafe fn SetContext(&self, lcontext: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(lcontext)).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), lcontext).ok() } pub unsafe fn GetSnapshotProperties(&self, snapshotid: windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSnapshotProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), core::mem::transmute(pprop)).ok() } pub unsafe fn Query(&self, queriedobjectid: windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(queriedobjectid), core::mem::transmute(equeriedobjecttype), core::mem::transmute(ereturnedobjectstype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(queriedobjectid), equeriedobjecttype, ereturnedobjectstype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteSnapshots(&self, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: bool, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), core::mem::transmute(esourceobjecttype), bforcedelete.into(), core::mem::transmute(pldeletedsnapshots), core::mem::transmute(pnondeletedsnapshotid)).ok() + (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), esourceobjecttype, bforcedelete.into(), core::mem::transmute(pldeletedsnapshots), core::mem::transmute(pnondeletedsnapshotid)).ok() } pub unsafe fn BeginPrepareSnapshot(&self, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszsharepath: *const u16, lnewcontext: i32, providerid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), core::mem::transmute(pwszsharepath), core::mem::transmute(lnewcontext), core::mem::transmute(providerid)).ok() + (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), pwszsharepath, lnewcontext, core::mem::transmute(providerid)).ok() } pub unsafe fn IsPathSupported(&self, pwszsharepath: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPathSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszsharepath), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPathSupported)(windows_core::Interface::as_raw(self), pwszsharepath, &mut result__).map(|| result__) } pub unsafe fn IsPathSnapshotted(&self, pwszsharepath: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsPathSnapshotted)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszsharepath), core::mem::transmute(pbsnapshotspresent), core::mem::transmute(plsnapshotcompatibility)).ok() + (windows_core::Interface::vtable(self).IsPathSnapshotted)(windows_core::Interface::as_raw(self), pwszsharepath, core::mem::transmute(pbsnapshotspresent), core::mem::transmute(plsnapshotcompatibility)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetSnapshotProperty(&self, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), core::mem::transmute(esnapshotpropertyid), core::mem::transmute_copy(vproperty)).ok() + (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), esnapshotpropertyid, core::mem::transmute_copy(vproperty)).ok() } } #[repr(C)] @@ -1751,19 +1751,19 @@ windows_core::imp::interface_hierarchy!(IVssHardwareSnapshotProvider, windows_co impl IVssHardwareSnapshotProvider { #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).AreLunsSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(lluncount), core::mem::transmute(lcontext), core::mem::transmute(rgwszdevices), core::mem::transmute(pluninformation), core::mem::transmute(pbissupported)).ok() + (windows_core::Interface::vtable(self).AreLunsSupported)(windows_core::Interface::as_raw(self), lluncount, lcontext, rgwszdevices, core::mem::transmute(pluninformation), core::mem::transmute(pbissupported)).ok() } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn FillInLunInfo(&self, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillInLunInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(wszdevicename), core::mem::transmute(pluninfo), core::mem::transmute(pbissupported)).ok() + (windows_core::Interface::vtable(self).FillInLunInfo)(windows_core::Interface::as_raw(self), wszdevicename, core::mem::transmute(pluninfo), core::mem::transmute(pbissupported)).ok() } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), core::mem::transmute(lcontext), core::mem::transmute(lluncount), core::mem::transmute(rgdevicenames), core::mem::transmute(rgluninformation)).ok() + (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), lcontext, lluncount, rgdevicenames, core::mem::transmute(rgluninformation)).ok() } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn GetTargetLuns(&self, lluncount: i32, rgdevicenames: *const *const u16, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, rgdestinationluns: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTargetLuns)(windows_core::Interface::as_raw(self), core::mem::transmute(lluncount), core::mem::transmute(rgdevicenames), core::mem::transmute(rgsourceluns), core::mem::transmute(rgdestinationluns)).ok() + (windows_core::Interface::vtable(self).GetTargetLuns)(windows_core::Interface::as_raw(self), lluncount, rgdevicenames, rgsourceluns, core::mem::transmute(rgdestinationluns)).ok() } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn LocateLuns(&self, rgsourceluns: &[super::VirtualDiskService::VDS_LUN_INFORMATION]) -> windows_core::Result<()> { @@ -1771,7 +1771,7 @@ impl IVssHardwareSnapshotProvider { } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn OnLunEmpty(&self, wszdevicename: *const u16, pinformation: *const super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLunEmpty)(windows_core::Interface::as_raw(self), core::mem::transmute(wszdevicename), core::mem::transmute(pinformation)).ok() + (windows_core::Interface::vtable(self).OnLunEmpty)(windows_core::Interface::as_raw(self), wszdevicename, pinformation).ok() } } #[repr(C)] @@ -1869,16 +1869,16 @@ impl IVssHardwareSnapshotProviderEx { } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn OnLunStateChange(&self, psnapshotluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, poriginalluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLunStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(psnapshotluns), core::mem::transmute(poriginalluns), core::mem::transmute(dwcount), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnLunStateChange)(windows_core::Interface::as_raw(self), psnapshotluns, poriginalluns, dwcount, dwflags).ok() } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn ResyncLuns(&self, psourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, ptargetluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResyncLuns)(windows_core::Interface::as_raw(self), core::mem::transmute(psourceluns), core::mem::transmute(ptargetluns), core::mem::transmute(dwcount), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ResyncLuns)(windows_core::Interface::as_raw(self), psourceluns, ptargetluns, dwcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub unsafe fn OnReuseLuns(&self, psnapshotluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, poriginalluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnReuseLuns)(windows_core::Interface::as_raw(self), core::mem::transmute(psnapshotluns), core::mem::transmute(poriginalluns), core::mem::transmute(dwcount)).ok() + (windows_core::Interface::vtable(self).OnReuseLuns)(windows_core::Interface::as_raw(self), psnapshotluns, poriginalluns, dwcount).ok() } } #[repr(C)] @@ -1963,7 +1963,7 @@ impl IVssProviderCreateSnapshotSet { (windows_core::Interface::vtable(self).CommitSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid)).ok() } pub unsafe fn PostCommitSnapshots(&self, snapshotsetid: windows_core::GUID, lsnapshotscount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PostCommitSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(lsnapshotscount)).ok() + (windows_core::Interface::vtable(self).PostCommitSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), lsnapshotscount).ok() } pub unsafe fn PreFinalCommitSnapshots(&self, snapshotsetid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PreFinalCommitSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid)).ok() @@ -2086,15 +2086,15 @@ windows_core::imp::interface_hierarchy!(IVssSnapshotMgmt, windows_core::IUnknown impl IVssSnapshotMgmt { pub unsafe fn GetProviderMgmtInterface(&self, providerid: windows_core::GUID, interfaceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProviderMgmtInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), core::mem::transmute(interfaceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProviderMgmtInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), interfaceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryVolumesSupportedForSnapshots(&self, providerid: windows_core::GUID, lcontext: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryVolumesSupportedForSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), core::mem::transmute(lcontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryVolumesSupportedForSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), lcontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QuerySnapshotsByVolume(&self, pwszvolumename: *const u16, providerid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QuerySnapshotsByVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(providerid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QuerySnapshotsByVolume)(windows_core::Interface::as_raw(self), pwszvolumename, core::mem::transmute(providerid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2192,38 +2192,38 @@ windows_core::imp::define_interface!(IVssSoftwareSnapshotProvider, IVssSoftwareS windows_core::imp::interface_hierarchy!(IVssSoftwareSnapshotProvider, windows_core::IUnknown); impl IVssSoftwareSnapshotProvider { pub unsafe fn SetContext(&self, lcontext: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(lcontext)).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), lcontext).ok() } pub unsafe fn GetSnapshotProperties(&self, snapshotid: windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSnapshotProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), core::mem::transmute(pprop)).ok() } pub unsafe fn Query(&self, queriedobjectid: windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(queriedobjectid), core::mem::transmute(equeriedobjecttype), core::mem::transmute(ereturnedobjectstype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(queriedobjectid), equeriedobjecttype, ereturnedobjectstype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteSnapshots(&self, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: bool, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), core::mem::transmute(esourceobjecttype), bforcedelete.into(), core::mem::transmute(pldeletedsnapshots), core::mem::transmute(pnondeletedsnapshotid)).ok() + (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), esourceobjecttype, bforcedelete.into(), core::mem::transmute(pldeletedsnapshots), core::mem::transmute(pnondeletedsnapshotid)).ok() } pub unsafe fn BeginPrepareSnapshot(&self, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszvolumename: *const u16, lnewcontext: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), core::mem::transmute(pwszvolumename), core::mem::transmute(lnewcontext)).ok() + (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), pwszvolumename, lnewcontext).ok() } pub unsafe fn IsVolumeSupported(&self, pwszvolumename: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsVolumeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsVolumeSupported)(windows_core::Interface::as_raw(self), pwszvolumename, &mut result__).map(|| result__) } pub unsafe fn IsVolumeSnapshotted(&self, pwszvolumename: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsVolumeSnapshotted)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolumename), core::mem::transmute(pbsnapshotspresent), core::mem::transmute(plsnapshotcompatibility)).ok() + (windows_core::Interface::vtable(self).IsVolumeSnapshotted)(windows_core::Interface::as_raw(self), pwszvolumename, core::mem::transmute(pbsnapshotspresent), core::mem::transmute(plsnapshotcompatibility)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetSnapshotProperty(&self, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), core::mem::transmute(esnapshotpropertyid), core::mem::transmute_copy(vproperty)).ok() + (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), esnapshotpropertyid, core::mem::transmute_copy(vproperty)).ok() } pub unsafe fn RevertToSnapshot(&self, snapshotid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RevertToSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid)).ok() } pub unsafe fn QueryRevertStatus(&self, pwszvolume: *const u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryRevertStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszvolume), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryRevertStatus)(windows_core::Interface::as_raw(self), pwszvolume, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2504,7 +2504,7 @@ impl IVssWriterComponents { } pub unsafe fn GetComponent(&self, icomponent: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetComponent)(windows_core::Interface::as_raw(self), core::mem::transmute(icomponent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetComponent)(windows_core::Interface::as_raw(self), icomponent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/mod.rs index 303a55e48d..9d176bb4af 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/mod.rs @@ -7,7 +7,7 @@ where P2: windows_core::Param, { windows_targets::link!("xpsprint.dll" "system" fn StartXpsPrintJob(printername : windows_core::PCWSTR, jobname : windows_core::PCWSTR, outputfilename : windows_core::PCWSTR, progressevent : super::super::super::Foundation:: HANDLE, completionevent : super::super::super::Foundation:: HANDLE, printablepageson : *const u8, printablepagesoncount : u32, xpsprintjob : *mut * mut core::ffi::c_void, documentstream : *mut * mut core::ffi::c_void, printticketstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - StartXpsPrintJob(printername.param().abi(), jobname.param().abi(), outputfilename.param().abi(), core::mem::transmute(progressevent), core::mem::transmute(completionevent), core::mem::transmute(printablepageson.as_ptr()), printablepageson.len().try_into().unwrap(), core::mem::transmute(xpsprintjob), core::mem::transmute(documentstream), core::mem::transmute(printticketstream)).ok() + StartXpsPrintJob(printername.param().abi(), jobname.param().abi(), outputfilename.param().abi(), progressevent, completionevent, core::mem::transmute(printablepageson.as_ptr()), printablepageson.len().try_into().unwrap(), core::mem::transmute(xpsprintjob), core::mem::transmute(documentstream), core::mem::transmute(printticketstream)).ok() } #[inline] pub unsafe fn StartXpsPrintJob1(printername: P0, jobname: P1, outputfilename: P2, progressevent: super::super::super::Foundation::HANDLE, completionevent: super::super::super::Foundation::HANDLE, xpsprintjob: *mut Option, printcontentreceiver: *mut Option) -> windows_core::Result<()> @@ -17,7 +17,7 @@ where P2: windows_core::Param, { windows_targets::link!("xpsprint.dll" "system" fn StartXpsPrintJob1(printername : windows_core::PCWSTR, jobname : windows_core::PCWSTR, outputfilename : windows_core::PCWSTR, progressevent : super::super::super::Foundation:: HANDLE, completionevent : super::super::super::Foundation:: HANDLE, xpsprintjob : *mut * mut core::ffi::c_void, printcontentreceiver : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - StartXpsPrintJob1(printername.param().abi(), jobname.param().abi(), outputfilename.param().abi(), core::mem::transmute(progressevent), core::mem::transmute(completionevent), core::mem::transmute(xpsprintjob), core::mem::transmute(printcontentreceiver)).ok() + StartXpsPrintJob1(printername.param().abi(), jobname.param().abi(), outputfilename.param().abi(), progressevent, completionevent, core::mem::transmute(xpsprintjob), core::mem::transmute(printcontentreceiver)).ok() } pub const ID_DOCUMENTPACKAGETARGET_MSXPS: windows_core::GUID = windows_core::GUID::from_u128(0x9cae40a8_ded1_41c9_a9fd_d735ef33aeda); pub const ID_DOCUMENTPACKAGETARGET_OPENXPS: windows_core::GUID = windows_core::GUID::from_u128(0x0056bb72_8c9c_4612_bd0f_93012a87099d); @@ -36,7 +36,7 @@ windows_core::imp::interface_hierarchy!(IPrintDocumentPackageStatusEvent, window #[cfg(feature = "Win32_System_Com")] impl IPrintDocumentPackageStatusEvent { pub unsafe fn PackageStatusUpdated(&self, packagestatus: *const PrintDocumentPackageStatus) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PackageStatusUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(packagestatus)).ok() + (windows_core::Interface::vtable(self).PackageStatusUpdated)(windows_core::Interface::as_raw(self), packagestatus).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -78,7 +78,7 @@ impl IPrintDocumentPackageTarget { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPackageTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(guidtargettype), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPackageTarget)(windows_core::Interface::as_raw(self), guidtargettype, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs index bcb7e1069b..2662869549 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs @@ -4,7 +4,7 @@ pub mod Printing; #[inline] pub unsafe fn AbortDoc(hdc: super::super::Graphics::Gdi::HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn AbortDoc(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - AbortDoc(core::mem::transmute(hdc)) + AbortDoc(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -14,7 +14,7 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeviceCapabilitiesA(pdevice : windows_core::PCSTR, pport : windows_core::PCSTR, fwcapability : PRINTER_DEVICE_CAPABILITIES, poutput : windows_core::PSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEA) -> i32); - DeviceCapabilitiesA(pdevice.param().abi(), pport.param().abi(), core::mem::transmute(fwcapability), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed()))) + DeviceCapabilitiesA(pdevice.param().abi(), pport.param().abi(), fwcapability, core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -24,61 +24,61 @@ where P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeviceCapabilitiesW(pdevice : windows_core::PCWSTR, pport : windows_core::PCWSTR, fwcapability : PRINTER_DEVICE_CAPABILITIES, poutput : windows_core::PWSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEW) -> i32); - DeviceCapabilitiesW(pdevice.param().abi(), pport.param().abi(), core::mem::transmute(fwcapability), core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed()))) + DeviceCapabilitiesW(pdevice.param().abi(), pport.param().abi(), fwcapability, core::mem::transmute(poutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EndDoc(hdc: super::super::Graphics::Gdi::HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EndDoc(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - EndDoc(core::mem::transmute(hdc)) + EndDoc(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EndPage(hdc: super::super::Graphics::Gdi::HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EndPage(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - EndPage(core::mem::transmute(hdc)) + EndPage(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn Escape(hdc: super::super::Graphics::Gdi::HDC, iescape: i32, pvin: Option<&[u8]>, pvout: Option<*mut core::ffi::c_void>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn Escape(hdc : super::super::Graphics::Gdi:: HDC, iescape : i32, cjin : i32, pvin : windows_core::PCSTR, pvout : *mut core::ffi::c_void) -> i32); - Escape(core::mem::transmute(hdc), core::mem::transmute(iescape), pvin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pvin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pvout.unwrap_or(core::mem::zeroed()))) + Escape(hdc, iescape, pvin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pvin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pvout.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ExtEscape(hdc: super::super::Graphics::Gdi::HDC, iescape: i32, lpindata: Option<&[u8]>, lpoutdata: Option<&mut [u8]>) -> i32 { windows_targets::link!("gdi32.dll" "system" fn ExtEscape(hdc : super::super::Graphics::Gdi:: HDC, iescape : i32, cjinput : i32, lpindata : windows_core::PCSTR, cjoutput : i32, lpoutdata : windows_core::PSTR) -> i32); - ExtEscape(core::mem::transmute(hdc), core::mem::transmute(iescape), lpindata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpindata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoutdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoutdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + ExtEscape(hdc, iescape, lpindata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpindata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoutdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpoutdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn PrintWindow(hwnd: super::super::Foundation::HWND, hdcblt: super::super::Graphics::Gdi::HDC, nflags: PRINT_WINDOW_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn PrintWindow(hwnd : super::super::Foundation:: HWND, hdcblt : super::super::Graphics::Gdi:: HDC, nflags : PRINT_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); - PrintWindow(core::mem::transmute(hwnd), core::mem::transmute(hdcblt), core::mem::transmute(nflags)) + PrintWindow(hwnd, hdcblt, nflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetAbortProc(hdc: super::super::Graphics::Gdi::HDC, proc: ABORTPROC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetAbortProc(hdc : super::super::Graphics::Gdi:: HDC, proc : ABORTPROC) -> i32); - SetAbortProc(core::mem::transmute(hdc), core::mem::transmute(proc)) + SetAbortProc(hdc, proc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn StartDocA(hdc: super::super::Graphics::Gdi::HDC, lpdi: *const DOCINFOA) -> i32 { windows_targets::link!("gdi32.dll" "system" fn StartDocA(hdc : super::super::Graphics::Gdi:: HDC, lpdi : *const DOCINFOA) -> i32); - StartDocA(core::mem::transmute(hdc), core::mem::transmute(lpdi)) + StartDocA(hdc, lpdi) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn StartDocW(hdc: super::super::Graphics::Gdi::HDC, lpdi: *const DOCINFOW) -> i32 { windows_targets::link!("gdi32.dll" "system" fn StartDocW(hdc : super::super::Graphics::Gdi:: HDC, lpdi : *const DOCINFOW) -> i32); - StartDocW(core::mem::transmute(hdc), core::mem::transmute(lpdi)) + StartDocW(hdc, lpdi) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn StartPage(hdc: super::super::Graphics::Gdi::HDC) -> i32 { windows_targets::link!("gdi32.dll" "system" fn StartPage(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - StartPage(core::mem::transmute(hdc)) + StartPage(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] pub type ABORTPROC = Option super::super::Foundation::BOOL>; @@ -318,7 +318,7 @@ impl IXpsOMBrush { (windows_core::Interface::vtable(self).GetOpacity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOpacity(&self, opacity: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), core::mem::transmute(opacity)).ok() + (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), opacity).ok() } } #[repr(C)] @@ -656,22 +656,22 @@ impl IXpsOMColorProfileResourceCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn Append(&self, object: P0) -> windows_core::Result<()> where @@ -826,7 +826,7 @@ impl IXpsOMCoreProperties { (windows_core::Interface::vtable(self).GetCreated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCreated(&self, created: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(created)).ok() + (windows_core::Interface::vtable(self).SetCreated)(windows_core::Interface::as_raw(self), created).ok() } pub unsafe fn GetCreator(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -893,14 +893,14 @@ impl IXpsOMCoreProperties { (windows_core::Interface::vtable(self).GetLastPrinted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLastPrinted(&self, lastprinted: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLastPrinted)(windows_core::Interface::as_raw(self), core::mem::transmute(lastprinted)).ok() + (windows_core::Interface::vtable(self).SetLastPrinted)(windows_core::Interface::as_raw(self), lastprinted).ok() } pub unsafe fn GetModified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetModified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetModified(&self, modified: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModified)(windows_core::Interface::as_raw(self), core::mem::transmute(modified)).ok() + (windows_core::Interface::vtable(self).SetModified)(windows_core::Interface::as_raw(self), modified).ok() } pub unsafe fn GetRevision(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1322,19 +1322,19 @@ impl IXpsOMDashCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn InsertAt(&self, index: u32, dash: *const XPS_DASH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(dash)).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, dash).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, dash: *const XPS_DASH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(dash)).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, dash).ok() } pub unsafe fn Append(&self, dash: *const XPS_DASH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), core::mem::transmute(dash)).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), dash).ok() } } #[repr(C)] @@ -1421,7 +1421,7 @@ impl IXpsOMDictionary { } pub unsafe fn GetAt(&self, index: u32, key: *mut windows_core::PWSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, core::mem::transmute(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetByKey(&self, key: P0, beforeentry: P1) -> windows_core::Result where @@ -1450,17 +1450,17 @@ impl IXpsOMDictionary { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), key.param().abi(), entry.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, key.param().abi(), entry.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, key: P1, entry: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), key.param().abi(), entry.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, key.param().abi(), entry.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1757,22 +1757,22 @@ impl IXpsOMDocumentCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, document: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), document.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, document.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, document: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), document.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, document.param().abi()).ok() } pub unsafe fn Append(&self, document: P0) -> windows_core::Result<()> where @@ -2052,7 +2052,7 @@ impl IXpsOMFontResource { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), core::mem::transmute(embeddingoption), partname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), embeddingoption, partname.param().abi()).ok() } pub unsafe fn GetEmbeddingOption(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2127,19 +2127,19 @@ impl IXpsOMFontResourceCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn Append(&self, value: P0) -> windows_core::Result<()> where @@ -2148,7 +2148,7 @@ impl IXpsOMFontResourceCollection { (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetByPartName(&self, partname: P0) -> windows_core::Result @@ -2267,7 +2267,7 @@ impl IXpsOMGeometry { (windows_core::Interface::vtable(self).GetFillRule)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFillRule(&self, fillrule: XPS_FILL_RULE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFillRule)(windows_core::Interface::as_raw(self), core::mem::transmute(fillrule)).ok() + (windows_core::Interface::vtable(self).SetFillRule)(windows_core::Interface::as_raw(self), fillrule).ok() } pub unsafe fn GetTransform(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2431,14 +2431,14 @@ impl IXpsOMGeometryFigure { (windows_core::Interface::vtable(self).GetSegmentStrokes)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentcount), core::mem::transmute(segmentstrokes)).ok() } pub unsafe fn SetSegments(&self, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegments)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentcount), core::mem::transmute(segmentdatacount), core::mem::transmute(segmenttypes), core::mem::transmute(segmentdata), core::mem::transmute(segmentstrokes)).ok() + (windows_core::Interface::vtable(self).SetSegments)(windows_core::Interface::as_raw(self), segmentcount, segmentdatacount, segmenttypes, segmentdata, segmentstrokes).ok() } pub unsafe fn GetStartPoint(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStartPoint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartPoint(&self, startpoint: *const XPS_POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint)).ok() + (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), startpoint).ok() } pub unsafe fn GetIsClosed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2650,22 +2650,22 @@ impl IXpsOMGeometryFigureCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, geometryfigure: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), geometryfigure.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, geometryfigure.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, geometryfigure: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), geometryfigure.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, geometryfigure.param().abi()).ok() } pub unsafe fn Append(&self, geometryfigure: P0) -> windows_core::Result<()> where @@ -2796,21 +2796,21 @@ impl IXpsOMGlyphs { (windows_core::Interface::vtable(self).GetStyleSimulations)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStyleSimulations(&self, stylesimulations: XPS_STYLE_SIMULATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStyleSimulations)(windows_core::Interface::as_raw(self), core::mem::transmute(stylesimulations)).ok() + (windows_core::Interface::vtable(self).SetStyleSimulations)(windows_core::Interface::as_raw(self), stylesimulations).ok() } pub unsafe fn GetOrigin(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOrigin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOrigin(&self, origin: *const XPS_POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOrigin)(windows_core::Interface::as_raw(self), core::mem::transmute(origin)).ok() + (windows_core::Interface::vtable(self).SetOrigin)(windows_core::Interface::as_raw(self), origin).ok() } pub unsafe fn GetFontRenderingEmSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFontRenderingEmSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFontRenderingEmSize(&self, fontrenderingemsize: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontRenderingEmSize)(windows_core::Interface::as_raw(self), core::mem::transmute(fontrenderingemsize)).ok() + (windows_core::Interface::vtable(self).SetFontRenderingEmSize)(windows_core::Interface::as_raw(self), fontrenderingemsize).ok() } pub unsafe fn GetFontResource(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2827,7 +2827,7 @@ impl IXpsOMGlyphs { (windows_core::Interface::vtable(self).GetFontFaceIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFontFaceIndex(&self, fontfaceindex: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontFaceIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(fontfaceindex)).ok() + (windows_core::Interface::vtable(self).SetFontFaceIndex)(windows_core::Interface::as_raw(self), fontfaceindex).ok() } pub unsafe fn GetFillBrush(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3197,7 +3197,7 @@ impl IXpsOMGlyphsEditor { (windows_core::Interface::vtable(self).GetGlyphIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcount), core::mem::transmute(glyphindices)).ok() } pub unsafe fn SetGlyphIndices(&self, indexcount: u32, glyphindices: *const XPS_GLYPH_INDEX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGlyphIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(indexcount), core::mem::transmute(glyphindices)).ok() + (windows_core::Interface::vtable(self).SetGlyphIndices)(windows_core::Interface::as_raw(self), indexcount, glyphindices).ok() } pub unsafe fn GetGlyphMappingCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3207,7 +3207,7 @@ impl IXpsOMGlyphsEditor { (windows_core::Interface::vtable(self).GetGlyphMappings)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphmappingcount), core::mem::transmute(glyphmappings)).ok() } pub unsafe fn SetGlyphMappings(&self, glyphmappingcount: u32, glyphmappings: *const XPS_GLYPH_MAPPING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGlyphMappings)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphmappingcount), core::mem::transmute(glyphmappings)).ok() + (windows_core::Interface::vtable(self).SetGlyphMappings)(windows_core::Interface::as_raw(self), glyphmappingcount, glyphmappings).ok() } pub unsafe fn GetProhibitedCaretStopCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3217,14 +3217,14 @@ impl IXpsOMGlyphsEditor { (windows_core::Interface::vtable(self).GetProhibitedCaretStops)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(prohibitedcaretstops)).ok() } pub unsafe fn SetProhibitedCaretStops(&self, count: u32, prohibitedcaretstops: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProhibitedCaretStops)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(prohibitedcaretstops)).ok() + (windows_core::Interface::vtable(self).SetProhibitedCaretStops)(windows_core::Interface::as_raw(self), count, prohibitedcaretstops).ok() } pub unsafe fn GetBidiLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBidiLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBidiLevel(&self, bidilevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBidiLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(bidilevel)).ok() + (windows_core::Interface::vtable(self).SetBidiLevel)(windows_core::Interface::as_raw(self), bidilevel).ok() } pub unsafe fn GetIsSideways(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3471,14 +3471,14 @@ impl IXpsOMGradientBrush { (windows_core::Interface::vtable(self).GetSpreadMethod)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpreadMethod(&self, spreadmethod: XPS_SPREAD_METHOD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpreadMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(spreadmethod)).ok() + (windows_core::Interface::vtable(self).SetSpreadMethod)(windows_core::Interface::as_raw(self), spreadmethod).ok() } pub unsafe fn GetColorInterpolationMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetColorInterpolationMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColorInterpolationMode(&self, colorinterpolationmode: XPS_COLOR_INTERPOLATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorInterpolationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(colorinterpolationmode)).ok() + (windows_core::Interface::vtable(self).SetColorInterpolationMode)(windows_core::Interface::as_raw(self), colorinterpolationmode).ok() } } #[repr(C)] @@ -3616,7 +3616,7 @@ impl IXpsOMGradientStop { (windows_core::Interface::vtable(self).GetOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOffset(&self, offset: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetColor(&self, color: *mut XPS_COLOR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3626,7 +3626,7 @@ impl IXpsOMGradientStop { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color), colorprofile.param().abi()).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color, colorprofile.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3725,22 +3725,22 @@ impl IXpsOMGradientStopCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, stop: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), stop.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, stop.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, stop: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), stop.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, stop.param().abi()).ok() } pub unsafe fn Append(&self, stop: P0) -> windows_core::Result<()> where @@ -3944,7 +3944,7 @@ impl IXpsOMImageResource { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), core::mem::transmute(imagetype), partname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), imagetype, partname.param().abi()).ok() } pub unsafe fn GetImageType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4019,22 +4019,22 @@ impl IXpsOMImageResourceCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn Append(&self, object: P0) -> windows_core::Result<()> where @@ -4155,14 +4155,14 @@ impl IXpsOMLinearGradientBrush { (windows_core::Interface::vtable(self).GetStartPoint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartPoint(&self, startpoint: *const XPS_POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint)).ok() + (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), startpoint).ok() } pub unsafe fn GetEndPoint(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEndPoint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEndPoint(&self, endpoint: *const XPS_POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEndPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(endpoint)).ok() + (windows_core::Interface::vtable(self).SetEndPoint)(windows_core::Interface::as_raw(self), endpoint).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4253,7 +4253,7 @@ impl IXpsOMMatrixTransform { (windows_core::Interface::vtable(self).GetMatrix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMatrix(&self, matrix: *const XPS_MATRIX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix)).ok() + (windows_core::Interface::vtable(self).SetMatrix)(windows_core::Interface::as_raw(self), matrix).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4319,7 +4319,7 @@ impl IXpsOMNameCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } } #[repr(C)] @@ -4451,7 +4451,7 @@ impl IXpsOMObjectFactory { } pub unsafe fn CreatePageReference(&self, advisorypagedimensions: *const XPS_SIZE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePageReference)(windows_core::Interface::as_raw(self), core::mem::transmute(advisorypagedimensions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePageReference)(windows_core::Interface::as_raw(self), advisorypagedimensions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePage(&self, pagedimensions: *const XPS_SIZE, language: P1, parturi: P2) -> windows_core::Result @@ -4460,7 +4460,7 @@ impl IXpsOMObjectFactory { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePage)(windows_core::Interface::as_raw(self), core::mem::transmute(pagedimensions), language.param().abi(), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePage)(windows_core::Interface::as_raw(self), pagedimensions, language.param().abi(), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePageFromStream(&self, pagemarkupstream: P0, parturi: P1, resources: P2, reuseobjects: bool) -> windows_core::Result @@ -4493,18 +4493,18 @@ impl IXpsOMObjectFactory { } pub unsafe fn CreateGeometryFigure(&self, startpoint: *const XPS_POINT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGeometryFigure)(windows_core::Interface::as_raw(self), core::mem::transmute(startpoint), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGeometryFigure)(windows_core::Interface::as_raw(self), startpoint, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateMatrixTransform(&self, matrix: *const XPS_MATRIX) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMatrixTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMatrixTransform)(windows_core::Interface::as_raw(self), matrix, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSolidColorBrush(&self, color: *const XPS_COLOR, colorprofile: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSolidColorBrush)(windows_core::Interface::as_raw(self), core::mem::transmute(color), colorprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSolidColorBrush)(windows_core::Interface::as_raw(self), color, colorprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateColorProfileResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result @@ -4520,11 +4520,11 @@ impl IXpsOMObjectFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(viewbox), core::mem::transmute(viewport), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), viewbox, viewport, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateVisualBrush(&self, viewbox: *const XPS_RECT, viewport: *const XPS_RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVisualBrush)(windows_core::Interface::as_raw(self), core::mem::transmute(viewbox), core::mem::transmute(viewport), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVisualBrush)(windows_core::Interface::as_raw(self), viewbox, viewport, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateImageResource(&self, acquiredstream: P0, contenttype: XPS_IMAGE_TYPE, parturi: P2) -> windows_core::Result @@ -4533,7 +4533,7 @@ impl IXpsOMObjectFactory { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), core::mem::transmute(contenttype), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), contenttype, parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePrintTicketResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result @@ -4551,14 +4551,14 @@ impl IXpsOMObjectFactory { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), core::mem::transmute(fontembedding), parturi.param().abi(), isobfsourcestream.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), fontembedding, parturi.param().abi(), isobfsourcestream.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGradientStop(&self, color: *const XPS_COLOR, colorprofile: P1, offset: f32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGradientStop)(windows_core::Interface::as_raw(self), core::mem::transmute(color), colorprofile.param().abi(), core::mem::transmute(offset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGradientStop)(windows_core::Interface::as_raw(self), color, colorprofile.param().abi(), offset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearGradientBrush(&self, gradstop1: P0, gradstop2: P1, startpoint: *const XPS_POINT, endpoint: *const XPS_POINT) -> windows_core::Result where @@ -4566,7 +4566,7 @@ impl IXpsOMObjectFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.param().abi(), gradstop2.param().abi(), core::mem::transmute(startpoint), core::mem::transmute(endpoint), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.param().abi(), gradstop2.param().abi(), startpoint, endpoint, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRadialGradientBrush(&self, gradstop1: P0, gradstop2: P1, centerpoint: *const XPS_POINT, gradientorigin: *const XPS_POINT, radiisizes: *const XPS_SIZE) -> windows_core::Result where @@ -4574,7 +4574,7 @@ impl IXpsOMObjectFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.param().abi(), gradstop2.param().abi(), core::mem::transmute(centerpoint), core::mem::transmute(gradientorigin), core::mem::transmute(radiisizes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.param().abi(), gradstop2.param().abi(), centerpoint, gradientorigin, radiisizes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateCoreProperties(&self, parturi: P0) -> windows_core::Result @@ -4603,7 +4603,7 @@ impl IXpsOMObjectFactory { P9: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(securityattributes), core::mem::transmute(flagsandattributes), optimizemarkupsize.into(), core::mem::transmute(interleaving), documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageWriterOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into(), interleaving, documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePackageWriterOnStream(&self, outputstream: P0, optimizemarkupsize: bool, interleaving: XPS_INTERLEAVING, documentsequencepartname: P3, coreproperties: P4, packagethumbnail: P5, documentsequenceprintticket: P6, discardcontrolpartname: P7) -> windows_core::Result @@ -4616,7 +4616,7 @@ impl IXpsOMObjectFactory { P7: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnStream)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.into(), core::mem::transmute(interleaving), documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageWriterOnStream)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.into(), interleaving, documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePartUri(&self, uri: P0) -> windows_core::Result @@ -5252,7 +5252,7 @@ impl IXpsOMObjectFactory1 { P9: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnFile1)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(securityattributes), core::mem::transmute(flagsandattributes), optimizemarkupsize.into(), core::mem::transmute(interleaving), documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), core::mem::transmute(documenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageWriterOnFile1)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into(), interleaving, documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), documenttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePackageWriterOnStream1(&self, outputstream: P0, optimizemarkupsize: bool, interleaving: XPS_INTERLEAVING, documentsequencepartname: P3, coreproperties: P4, packagethumbnail: P5, documentsequenceprintticket: P6, discardcontrolpartname: P7, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result @@ -5265,7 +5265,7 @@ impl IXpsOMObjectFactory1 { P7: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnStream1)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.into(), core::mem::transmute(interleaving), documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), core::mem::transmute(documenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageWriterOnStream1)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.into(), interleaving, documentsequencepartname.param().abi(), coreproperties.param().abi(), packagethumbnail.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), documenttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePackage1(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5293,7 +5293,7 @@ impl IXpsOMObjectFactory1 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePage1)(windows_core::Interface::as_raw(self), core::mem::transmute(pagedimensions), language.param().abi(), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePage1)(windows_core::Interface::as_raw(self), pagedimensions, language.param().abi(), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePageFromStream1(&self, pagemarkupstream: P0, parturi: P1, resources: P2, reuseobjects: bool) -> windows_core::Result @@ -5564,7 +5564,7 @@ impl IXpsOMPackage { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToFile)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(securityattributes), core::mem::transmute(flagsandattributes), optimizemarkupsize.into()).ok() + (windows_core::Interface::vtable(self).WriteToFile)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteToStream(&self, stream: P0, optimizemarkupsize: bool) -> windows_core::Result<()> @@ -5718,14 +5718,14 @@ impl IXpsOMPackage1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToFile1)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(securityattributes), core::mem::transmute(flagsandattributes), optimizemarkupsize.into(), core::mem::transmute(documenttype)).ok() + (windows_core::Interface::vtable(self).WriteToFile1)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into(), documenttype).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteToStream1(&self, outputstream: P0, optimizemarkupsize: bool, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToStream1)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.into(), core::mem::transmute(documenttype)).ok() + (windows_core::Interface::vtable(self).WriteToStream1)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.into(), documenttype).ok() } } #[repr(C)] @@ -5850,7 +5850,7 @@ impl IXpsOMPackageWriter { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), page.param().abi(), core::mem::transmute(advisorypagedimensions), discardableresourceparts.param().abi(), storyfragments.param().abi(), pageprintticket.param().abi(), pagethumbnail.param().abi()).ok() + (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), page.param().abi(), advisorypagedimensions, discardableresourceparts.param().abi(), storyfragments.param().abi(), pageprintticket.param().abi(), pagethumbnail.param().abi()).ok() } pub unsafe fn AddResource(&self, resource: P0) -> windows_core::Result<()> where @@ -6018,21 +6018,21 @@ impl IXpsOMPage { (windows_core::Interface::vtable(self).GetPageDimensions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPageDimensions(&self, pagedimensions: *const XPS_SIZE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPageDimensions)(windows_core::Interface::as_raw(self), core::mem::transmute(pagedimensions)).ok() + (windows_core::Interface::vtable(self).SetPageDimensions)(windows_core::Interface::as_raw(self), pagedimensions).ok() } pub unsafe fn GetContentBox(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetContentBox)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetContentBox(&self, contentbox: *const XPS_RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContentBox)(windows_core::Interface::as_raw(self), core::mem::transmute(contentbox)).ok() + (windows_core::Interface::vtable(self).SetContentBox)(windows_core::Interface::as_raw(self), contentbox).ok() } pub unsafe fn GetBleedBox(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBleedBox)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBleedBox(&self, bleedbox: *const XPS_RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBleedBox)(windows_core::Interface::as_raw(self), core::mem::transmute(bleedbox)).ok() + (windows_core::Interface::vtable(self).SetBleedBox)(windows_core::Interface::as_raw(self), bleedbox).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6094,7 +6094,7 @@ impl IXpsOMPage { } pub unsafe fn GenerateUnusedLookupKey(&self, r#type: XPS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateUnusedLookupKey)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GenerateUnusedLookupKey)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6374,7 +6374,7 @@ impl IXpsOMPage1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.into(), core::mem::transmute(documenttype)).ok() + (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.into(), documenttype).ok() } } #[repr(C)] @@ -6445,7 +6445,7 @@ impl IXpsOMPageReference { (windows_core::Interface::vtable(self).GetAdvisoryPageDimensions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAdvisoryPageDimensions(&self, pagedimensions: *const XPS_SIZE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAdvisoryPageDimensions)(windows_core::Interface::as_raw(self), core::mem::transmute(pagedimensions)).ok() + (windows_core::Interface::vtable(self).SetAdvisoryPageDimensions)(windows_core::Interface::as_raw(self), pagedimensions).ok() } pub unsafe fn GetStoryFragmentsResource(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6705,22 +6705,22 @@ impl IXpsOMPageReferenceCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, pagereference: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), pagereference.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, pagereference.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, pagereference: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), pagereference.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, pagereference.param().abi()).ok() } pub unsafe fn Append(&self, pagereference: P0) -> windows_core::Result<()> where @@ -6961,24 +6961,24 @@ impl IXpsOMPartUriCollection { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn InsertAt(&self, index: u32, parturi: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), parturi.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, parturi.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetAt(&self, index: u32, parturi: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), parturi.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, parturi.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn Append(&self, parturi: P0) -> windows_core::Result<()> @@ -7167,49 +7167,49 @@ impl IXpsOMPath { (windows_core::Interface::vtable(self).GetStrokeDashCap)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeDashCap(&self, strokedashcap: XPS_DASH_CAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeDashCap)(windows_core::Interface::as_raw(self), core::mem::transmute(strokedashcap)).ok() + (windows_core::Interface::vtable(self).SetStrokeDashCap)(windows_core::Interface::as_raw(self), strokedashcap).ok() } pub unsafe fn GetStrokeDashOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrokeDashOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeDashOffset(&self, strokedashoffset: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeDashOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(strokedashoffset)).ok() + (windows_core::Interface::vtable(self).SetStrokeDashOffset)(windows_core::Interface::as_raw(self), strokedashoffset).ok() } pub unsafe fn GetStrokeStartLineCap(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrokeStartLineCap)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeStartLineCap(&self, strokestartlinecap: XPS_LINE_CAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeStartLineCap)(windows_core::Interface::as_raw(self), core::mem::transmute(strokestartlinecap)).ok() + (windows_core::Interface::vtable(self).SetStrokeStartLineCap)(windows_core::Interface::as_raw(self), strokestartlinecap).ok() } pub unsafe fn GetStrokeEndLineCap(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrokeEndLineCap)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeEndLineCap(&self, strokeendlinecap: XPS_LINE_CAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeEndLineCap)(windows_core::Interface::as_raw(self), core::mem::transmute(strokeendlinecap)).ok() + (windows_core::Interface::vtable(self).SetStrokeEndLineCap)(windows_core::Interface::as_raw(self), strokeendlinecap).ok() } pub unsafe fn GetStrokeLineJoin(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrokeLineJoin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeLineJoin(&self, strokelinejoin: XPS_LINE_JOIN) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeLineJoin)(windows_core::Interface::as_raw(self), core::mem::transmute(strokelinejoin)).ok() + (windows_core::Interface::vtable(self).SetStrokeLineJoin)(windows_core::Interface::as_raw(self), strokelinejoin).ok() } pub unsafe fn GetStrokeMiterLimit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrokeMiterLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeMiterLimit(&self, strokemiterlimit: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeMiterLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(strokemiterlimit)).ok() + (windows_core::Interface::vtable(self).SetStrokeMiterLimit)(windows_core::Interface::as_raw(self), strokemiterlimit).ok() } pub unsafe fn GetStrokeThickness(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrokeThickness)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrokeThickness(&self, strokethickness: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrokeThickness)(windows_core::Interface::as_raw(self), core::mem::transmute(strokethickness)).ok() + (windows_core::Interface::vtable(self).SetStrokeThickness)(windows_core::Interface::as_raw(self), strokethickness).ok() } pub unsafe fn GetFillBrush(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7724,21 +7724,21 @@ impl IXpsOMRadialGradientBrush { (windows_core::Interface::vtable(self).GetCenter)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCenter(&self, center: *const XPS_POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCenter)(windows_core::Interface::as_raw(self), core::mem::transmute(center)).ok() + (windows_core::Interface::vtable(self).SetCenter)(windows_core::Interface::as_raw(self), center).ok() } pub unsafe fn GetRadiiSizes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadiiSizes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadiiSizes(&self, radiisizes: *const XPS_SIZE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadiiSizes)(windows_core::Interface::as_raw(self), core::mem::transmute(radiisizes)).ok() + (windows_core::Interface::vtable(self).SetRadiiSizes)(windows_core::Interface::as_raw(self), radiisizes).ok() } pub unsafe fn GetGradientOrigin(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetGradientOrigin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGradientOrigin(&self, origin: *const XPS_POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGradientOrigin)(windows_core::Interface::as_raw(self), core::mem::transmute(origin)).ok() + (windows_core::Interface::vtable(self).SetGradientOrigin)(windows_core::Interface::as_raw(self), origin).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7913,7 +7913,7 @@ impl IXpsOMRemoteDictionaryResource1 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.param().abi(), core::mem::transmute(documenttype)).ok() + (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.param().abi(), documenttype).ok() } } #[repr(C)] @@ -7968,22 +7968,22 @@ impl IXpsOMRemoteDictionaryResourceCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn Append(&self, object: P0) -> windows_core::Result<()> where @@ -8261,22 +8261,22 @@ impl IXpsOMSignatureBlockResourceCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, signatureblockresource: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), signatureblockresource.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, signatureblockresource.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, signatureblockresource: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), signatureblockresource.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, signatureblockresource.param().abi()).ok() } pub unsafe fn Append(&self, signatureblockresource: P0) -> windows_core::Result<()> where @@ -8400,7 +8400,7 @@ impl IXpsOMSolidColorBrush { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color), colorprofile.param().abi()).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color, colorprofile.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8553,7 +8553,7 @@ impl IXpsOMThumbnailGenerator { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateThumbnail)(windows_core::Interface::as_raw(self), page.param().abi(), core::mem::transmute(thumbnailtype), core::mem::transmute(thumbnailsize), imageresourcepartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateThumbnail)(windows_core::Interface::as_raw(self), page.param().abi(), thumbnailtype, thumbnailsize, imageresourcepartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8627,21 +8627,21 @@ impl IXpsOMTileBrush { (windows_core::Interface::vtable(self).GetViewbox)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetViewbox(&self, viewbox: *const XPS_RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewbox)(windows_core::Interface::as_raw(self), core::mem::transmute(viewbox)).ok() + (windows_core::Interface::vtable(self).SetViewbox)(windows_core::Interface::as_raw(self), viewbox).ok() } pub unsafe fn GetViewport(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetViewport)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetViewport(&self, viewport: *const XPS_RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewport)(windows_core::Interface::as_raw(self), core::mem::transmute(viewport)).ok() + (windows_core::Interface::vtable(self).SetViewport)(windows_core::Interface::as_raw(self), viewport).ok() } pub unsafe fn GetTileMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTileMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTileMode(&self, tilemode: XPS_TILE_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTileMode)(windows_core::Interface::as_raw(self), core::mem::transmute(tilemode)).ok() + (windows_core::Interface::vtable(self).SetTileMode)(windows_core::Interface::as_raw(self), tilemode).ok() } } #[repr(C)] @@ -8836,7 +8836,7 @@ impl IXpsOMVisual { (windows_core::Interface::vtable(self).GetOpacity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOpacity(&self, opacity: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), core::mem::transmute(opacity)).ok() + (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), opacity).ok() } pub unsafe fn GetOpacityMaskBrush(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9317,22 +9317,22 @@ impl IXpsOMVisualCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), object.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.param().abi()).ok() } pub unsafe fn Append(&self, object: P0) -> windows_core::Result<()> where @@ -9444,7 +9444,7 @@ impl IXpsSignature { #[cfg(feature = "Win32_Security_Cryptography")] pub unsafe fn Verify(&self, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Verify)(windows_core::Interface::as_raw(self), core::mem::transmute(x509certificate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Verify)(windows_core::Interface::as_raw(self), x509certificate, &mut result__).map(|| result__) } pub unsafe fn GetPolicy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9772,10 +9772,10 @@ impl IXpsSignatureBlockCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } } #[repr(C)] @@ -9837,10 +9837,10 @@ impl IXpsSignatureCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } } #[repr(C)] @@ -9915,7 +9915,7 @@ impl IXpsSignatureManager { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Sign)(windows_core::Interface::as_raw(self), signoptions.param().abi(), core::mem::transmute(x509certificate), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Sign)(windows_core::Interface::as_raw(self), signoptions.param().abi(), x509certificate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetSignatureOriginPartName(&self) -> windows_core::Result { @@ -9939,7 +9939,7 @@ impl IXpsSignatureManager { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddSignatureBlock)(windows_core::Interface::as_raw(self), partname.param().abi(), core::mem::transmute(fixeddocumentindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddSignatureBlock)(windows_core::Interface::as_raw(self), partname.param().abi(), fixeddocumentindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSignatureBlocks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9954,7 +9954,7 @@ impl IXpsSignatureManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SavePackageToFile)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(securityattributes), core::mem::transmute(flagsandattributes)).ok() + (windows_core::Interface::vtable(self).SavePackageToFile)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SavePackageToStream(&self, stream: P0) -> windows_core::Result<()> @@ -10166,7 +10166,7 @@ impl IXpsSignatureRequest { (windows_core::Interface::vtable(self).GetSpotLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(pageindex), core::mem::transmute(pagepartname), core::mem::transmute(x), core::mem::transmute(y)).ok() } pub unsafe fn SetSpotLocation(&self, pageindex: i32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpotLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(pageindex), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).SetSpotLocation)(windows_core::Interface::as_raw(self), pageindex, x, y).ok() } pub unsafe fn GetRequestId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10329,10 +10329,10 @@ impl IXpsSignatureRequestCollection { } pub unsafe fn GetAt(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } } #[repr(C)] @@ -10435,7 +10435,7 @@ impl IXpsSigningOptions { (windows_core::Interface::vtable(self).GetPolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPolicy(&self, policy: XPS_SIGN_POLICY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(policy)).ok() + (windows_core::Interface::vtable(self).SetPolicy)(windows_core::Interface::as_raw(self), policy).ok() } #[cfg(feature = "Win32_Storage_Packaging_Opc")] pub unsafe fn GetSigningTimeFormat(&self) -> windows_core::Result { @@ -10444,7 +10444,7 @@ impl IXpsSigningOptions { } #[cfg(feature = "Win32_Storage_Packaging_Opc")] pub unsafe fn SetSigningTimeFormat(&self, timeformat: super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSigningTimeFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(timeformat)).ok() + (windows_core::Interface::vtable(self).SetSigningTimeFormat)(windows_core::Interface::as_raw(self), timeformat).ok() } #[cfg(feature = "Win32_Storage_Packaging_Opc")] pub unsafe fn GetCustomObjects(&self) -> windows_core::Result { @@ -10466,7 +10466,7 @@ impl IXpsSigningOptions { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, flags: XPS_SIGN_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs index a091cd627f..34dc1be345 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs @@ -5,22 +5,22 @@ where P3: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn BuildDisplayTable(lpallocatebuffer : LPALLOCATEBUFFER, lpallocatemore : LPALLOCATEMORE, lpfreebuffer : LPFREEBUFFER, lpmalloc : * mut core::ffi::c_void, hinstance : super::super::Foundation:: HINSTANCE, cpages : u32, lppage : *mut DTPAGE, ulflags : u32, lpptable : *mut * mut core::ffi::c_void, lpptbldata : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - BuildDisplayTable(core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpallocatemore), core::mem::transmute(lpfreebuffer), lpmalloc.param().abi(), core::mem::transmute(hinstance), core::mem::transmute(cpages), core::mem::transmute(lppage), core::mem::transmute(ulflags), core::mem::transmute(lpptable), core::mem::transmute(lpptbldata)).ok() + BuildDisplayTable(lpallocatebuffer, lpallocatemore, lpfreebuffer, lpmalloc.param().abi(), hinstance, cpages, core::mem::transmute(lppage), ulflags, core::mem::transmute(lpptable), core::mem::transmute(lpptbldata)).ok() } #[inline] pub unsafe fn ChangeIdleRoutine(ftg: *mut core::ffi::c_void, lpfnidle: PFNIDLE, lpvidleparam: *mut core::ffi::c_void, priidle: i16, csecidle: u32, iroidle: u16, ircidle: u16) { windows_targets::link!("mapi32.dll" "system" fn ChangeIdleRoutine(ftg : *mut core::ffi::c_void, lpfnidle : PFNIDLE, lpvidleparam : *mut core::ffi::c_void, priidle : i16, csecidle : u32, iroidle : u16, ircidle : u16)); - ChangeIdleRoutine(core::mem::transmute(ftg), core::mem::transmute(lpfnidle), core::mem::transmute(lpvidleparam), core::mem::transmute(priidle), core::mem::transmute(csecidle), core::mem::transmute(iroidle), core::mem::transmute(ircidle)) + ChangeIdleRoutine(core::mem::transmute(ftg), lpfnidle, core::mem::transmute(lpvidleparam), priidle, csecidle, iroidle, ircidle) } #[inline] pub unsafe fn CreateIProp(lpinterface: *mut windows_core::GUID, lpallocatebuffer: LPALLOCATEBUFFER, lpallocatemore: LPALLOCATEMORE, lpfreebuffer: LPFREEBUFFER, lpvreserved: *mut core::ffi::c_void, lpppropdata: *mut Option) -> i32 { windows_targets::link!("mapi32.dll" "system" fn CreateIProp(lpinterface : *mut windows_core::GUID, lpallocatebuffer : LPALLOCATEBUFFER, lpallocatemore : LPALLOCATEMORE, lpfreebuffer : LPFREEBUFFER, lpvreserved : *mut core::ffi::c_void, lpppropdata : *mut * mut core::ffi::c_void) -> i32); - CreateIProp(core::mem::transmute(lpinterface), core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpallocatemore), core::mem::transmute(lpfreebuffer), core::mem::transmute(lpvreserved), core::mem::transmute(lpppropdata)) + CreateIProp(core::mem::transmute(lpinterface), lpallocatebuffer, lpallocatemore, lpfreebuffer, core::mem::transmute(lpvreserved), core::mem::transmute(lpppropdata)) } #[inline] pub unsafe fn CreateTable(lpinterface: *mut windows_core::GUID, lpallocatebuffer: LPALLOCATEBUFFER, lpallocatemore: LPALLOCATEMORE, lpfreebuffer: LPFREEBUFFER, lpvreserved: *mut core::ffi::c_void, ultabletype: u32, ulproptagindexcolumn: u32, lpsproptagarraycolumns: *mut SPropTagArray, lpptabledata: *mut Option) -> i32 { windows_targets::link!("rtm.dll" "system" fn CreateTable(lpinterface : *mut windows_core::GUID, lpallocatebuffer : LPALLOCATEBUFFER, lpallocatemore : LPALLOCATEMORE, lpfreebuffer : LPFREEBUFFER, lpvreserved : *mut core::ffi::c_void, ultabletype : u32, ulproptagindexcolumn : u32, lpsproptagarraycolumns : *mut SPropTagArray, lpptabledata : *mut * mut core::ffi::c_void) -> i32); - CreateTable(core::mem::transmute(lpinterface), core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpallocatemore), core::mem::transmute(lpfreebuffer), core::mem::transmute(lpvreserved), core::mem::transmute(ultabletype), core::mem::transmute(ulproptagindexcolumn), core::mem::transmute(lpsproptagarraycolumns), core::mem::transmute(lpptabledata)) + CreateTable(core::mem::transmute(lpinterface), lpallocatebuffer, lpallocatemore, lpfreebuffer, core::mem::transmute(lpvreserved), ultabletype, ulproptagindexcolumn, core::mem::transmute(lpsproptagarraycolumns), core::mem::transmute(lpptabledata)) } #[inline] pub unsafe fn DeinitMapiUtil() { @@ -46,13 +46,13 @@ pub unsafe fn FEqualNames(lpname1: *mut MAPINAMEID, lpname2: *mut MAPINAMEID) -> #[inline] pub unsafe fn FPropCompareProp(lpspropvalue1: *mut SPropValue, ulrelop: u32, lpspropvalue2: *mut SPropValue) -> super::super::Foundation::BOOL { windows_targets::link!("mapi32.dll" "system" fn FPropCompareProp(lpspropvalue1 : *mut SPropValue, ulrelop : u32, lpspropvalue2 : *mut SPropValue) -> super::super::Foundation:: BOOL); - FPropCompareProp(core::mem::transmute(lpspropvalue1), core::mem::transmute(ulrelop), core::mem::transmute(lpspropvalue2)) + FPropCompareProp(core::mem::transmute(lpspropvalue1), ulrelop, core::mem::transmute(lpspropvalue2)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn FPropContainsProp(lpspropvaluedst: *mut SPropValue, lpspropvaluesrc: *mut SPropValue, ulfuzzylevel: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mapi32.dll" "system" fn FPropContainsProp(lpspropvaluedst : *mut SPropValue, lpspropvaluesrc : *mut SPropValue, ulfuzzylevel : u32) -> super::super::Foundation:: BOOL); - FPropContainsProp(core::mem::transmute(lpspropvaluedst), core::mem::transmute(lpspropvaluesrc), core::mem::transmute(ulfuzzylevel)) + FPropContainsProp(core::mem::transmute(lpspropvaluedst), core::mem::transmute(lpspropvaluesrc), ulfuzzylevel) } #[inline] pub unsafe fn FPropExists(lpmapiprop: P0, ulproptag: u32) -> super::super::Foundation::BOOL @@ -60,7 +60,7 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn FPropExists(lpmapiprop : * mut core::ffi::c_void, ulproptag : u32) -> super::super::Foundation:: BOOL); - FPropExists(lpmapiprop.param().abi(), core::mem::transmute(ulproptag)) + FPropExists(lpmapiprop.param().abi(), ulproptag) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -82,12 +82,12 @@ pub unsafe fn FtAddFt(ftaddend1: super::super::Foundation::FILETIME, ftaddend2: #[inline] pub unsafe fn FtMulDw(ftmultiplier: u32, ftmultiplicand: super::super::Foundation::FILETIME) -> super::super::Foundation::FILETIME { windows_targets::link!("mapi32.dll" "system" fn FtMulDw(ftmultiplier : u32, ftmultiplicand : super::super::Foundation:: FILETIME) -> super::super::Foundation:: FILETIME); - FtMulDw(core::mem::transmute(ftmultiplier), core::mem::transmute(ftmultiplicand)) + FtMulDw(ftmultiplier, core::mem::transmute(ftmultiplicand)) } #[inline] pub unsafe fn FtMulDwDw(ftmultiplicand: u32, ftmultiplier: u32) -> super::super::Foundation::FILETIME { windows_targets::link!("mapi32.dll" "system" fn FtMulDwDw(ftmultiplicand : u32, ftmultiplier : u32) -> super::super::Foundation:: FILETIME); - FtMulDwDw(core::mem::transmute(ftmultiplicand), core::mem::transmute(ftmultiplier)) + FtMulDwDw(ftmultiplicand, ftmultiplier) } #[inline] pub unsafe fn FtNegFt(ft: super::super::Foundation::FILETIME) -> super::super::Foundation::FILETIME { @@ -102,7 +102,7 @@ pub unsafe fn FtSubFt(ftminuend: super::super::Foundation::FILETIME, ftsubtrahen #[inline] pub unsafe fn FtgRegisterIdleRoutine(lpfnidle: PFNIDLE, lpvidleparam: *mut core::ffi::c_void, priidle: i16, csecidle: u32, iroidle: u16) -> *mut core::ffi::c_void { windows_targets::link!("mapi32.dll" "system" fn FtgRegisterIdleRoutine(lpfnidle : PFNIDLE, lpvidleparam : *mut core::ffi::c_void, priidle : i16, csecidle : u32, iroidle : u16) -> *mut core::ffi::c_void); - FtgRegisterIdleRoutine(core::mem::transmute(lpfnidle), core::mem::transmute(lpvidleparam), core::mem::transmute(priidle), core::mem::transmute(csecidle), core::mem::transmute(iroidle)) + FtgRegisterIdleRoutine(lpfnidle, core::mem::transmute(lpvidleparam), priidle, csecidle, iroidle) } #[inline] pub unsafe fn HrAddColumns(lptbl: P0, lpproptagcolumnsnew: *mut SPropTagArray, lpallocatebuffer: LPALLOCATEBUFFER, lpfreebuffer: LPFREEBUFFER) -> windows_core::Result<()> @@ -110,7 +110,7 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrAddColumns(lptbl : * mut core::ffi::c_void, lpproptagcolumnsnew : *mut SPropTagArray, lpallocatebuffer : LPALLOCATEBUFFER, lpfreebuffer : LPFREEBUFFER) -> windows_core::HRESULT); - HrAddColumns(lptbl.param().abi(), core::mem::transmute(lpproptagcolumnsnew), core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpfreebuffer)).ok() + HrAddColumns(lptbl.param().abi(), core::mem::transmute(lpproptagcolumnsnew), lpallocatebuffer, lpfreebuffer).ok() } #[inline] pub unsafe fn HrAddColumnsEx(lptbl: P0, lpproptagcolumnsnew: *mut SPropTagArray, lpallocatebuffer: LPALLOCATEBUFFER, lpfreebuffer: LPFREEBUFFER, lpfnfiltercolumns: isize) -> windows_core::Result<()> @@ -118,18 +118,18 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrAddColumnsEx(lptbl : * mut core::ffi::c_void, lpproptagcolumnsnew : *mut SPropTagArray, lpallocatebuffer : LPALLOCATEBUFFER, lpfreebuffer : LPFREEBUFFER, lpfnfiltercolumns : isize) -> windows_core::HRESULT); - HrAddColumnsEx(lptbl.param().abi(), core::mem::transmute(lpproptagcolumnsnew), core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpfreebuffer), core::mem::transmute(lpfnfiltercolumns)).ok() + HrAddColumnsEx(lptbl.param().abi(), core::mem::transmute(lpproptagcolumnsnew), lpallocatebuffer, lpfreebuffer, lpfnfiltercolumns).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HrAllocAdviseSink(lpfncallback: LPNOTIFCALLBACK, lpvcontext: *mut core::ffi::c_void, lppadvisesink: *mut Option) -> windows_core::Result<()> { windows_targets::link!("mapi32.dll" "system" fn HrAllocAdviseSink(lpfncallback : LPNOTIFCALLBACK, lpvcontext : *mut core::ffi::c_void, lppadvisesink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - HrAllocAdviseSink(core::mem::transmute(lpfncallback), core::mem::transmute(lpvcontext), core::mem::transmute(lppadvisesink)).ok() + HrAllocAdviseSink(lpfncallback, core::mem::transmute(lpvcontext), core::mem::transmute(lppadvisesink)).ok() } #[inline] pub unsafe fn HrDispatchNotifications(ulflags: u32) -> windows_core::Result<()> { windows_targets::link!("mapi32.dll" "system" fn HrDispatchNotifications(ulflags : u32) -> windows_core::HRESULT); - HrDispatchNotifications(core::mem::transmute(ulflags)).ok() + HrDispatchNotifications(ulflags).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -138,7 +138,7 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrGetOneProp(lpmapiprop : * mut core::ffi::c_void, ulproptag : u32, lppprop : *mut *mut SPropValue) -> windows_core::HRESULT); - HrGetOneProp(lpmapiprop.param().abi(), core::mem::transmute(ulproptag), core::mem::transmute(lppprop)).ok() + HrGetOneProp(lpmapiprop.param().abi(), ulproptag, core::mem::transmute(lppprop)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -147,7 +147,7 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrIStorageFromStream(lpunkin : * mut core::ffi::c_void, lpinterface : *mut windows_core::GUID, ulflags : u32, lppstorageout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - HrIStorageFromStream(lpunkin.param().abi(), core::mem::transmute(lpinterface), core::mem::transmute(ulflags), core::mem::transmute(lppstorageout)).ok() + HrIStorageFromStream(lpunkin.param().abi(), core::mem::transmute(lpinterface), ulflags, core::mem::transmute(lppstorageout)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -156,7 +156,7 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrQueryAllRows(lptable : * mut core::ffi::c_void, lpproptags : *mut SPropTagArray, lprestriction : *mut SRestriction, lpsortorderset : *mut SSortOrderSet, crowsmax : i32, lpprows : *mut *mut SRowSet) -> windows_core::HRESULT); - HrQueryAllRows(lptable.param().abi(), core::mem::transmute(lpproptags), core::mem::transmute(lprestriction), core::mem::transmute(lpsortorderset), core::mem::transmute(crowsmax), core::mem::transmute(lpprows)).ok() + HrQueryAllRows(lptable.param().abi(), core::mem::transmute(lpproptags), core::mem::transmute(lprestriction), core::mem::transmute(lpsortorderset), crowsmax, core::mem::transmute(lpprows)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -186,7 +186,7 @@ pub unsafe fn LPropCompareProp(lpspropvaluea: *mut SPropValue, lpspropvalueb: *m #[inline] pub unsafe fn LpValFindProp(ulproptag: u32, cvalues: u32, lpproparray: *mut SPropValue) -> *mut SPropValue { windows_targets::link!("mapi32.dll" "system" fn LpValFindProp(ulproptag : u32, cvalues : u32, lpproparray : *mut SPropValue) -> *mut SPropValue); - LpValFindProp(core::mem::transmute(ulproptag), core::mem::transmute(cvalues), core::mem::transmute(lpproparray)) + LpValFindProp(ulproptag, cvalues, core::mem::transmute(lpproparray)) } #[inline] pub unsafe fn MAPIDeinitIdle() { @@ -209,19 +209,19 @@ pub unsafe fn MAPIInitIdle(lpvreserved: *mut core::ffi::c_void) -> i32 { pub unsafe fn OpenStreamOnFile(lpallocatebuffer: LPALLOCATEBUFFER, lpfreebuffer: LPFREEBUFFER, ulflags: u32, lpszfilename: *const i8, lpszprefix: Option<*const i8>) -> windows_core::Result { windows_targets::link!("mapi32.dll" "system" fn OpenStreamOnFile(lpallocatebuffer : LPALLOCATEBUFFER, lpfreebuffer : LPFREEBUFFER, ulflags : u32, lpszfilename : *const i8, lpszprefix : *const i8, lppstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OpenStreamOnFile(core::mem::transmute(lpallocatebuffer), core::mem::transmute(lpfreebuffer), core::mem::transmute(ulflags), core::mem::transmute(lpszfilename), core::mem::transmute(lpszprefix.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OpenStreamOnFile(lpallocatebuffer, lpfreebuffer, ulflags, lpszfilename, core::mem::transmute(lpszprefix.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn PpropFindProp(lpproparray: *mut SPropValue, cvalues: u32, ulproptag: u32) -> *mut SPropValue { windows_targets::link!("mapi32.dll" "system" fn PpropFindProp(lpproparray : *mut SPropValue, cvalues : u32, ulproptag : u32) -> *mut SPropValue); - PpropFindProp(core::mem::transmute(lpproparray), core::mem::transmute(cvalues), core::mem::transmute(ulproptag)) + PpropFindProp(core::mem::transmute(lpproparray), cvalues, ulproptag) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn PropCopyMore(lpspropvaluedest: *mut SPropValue, lpspropvaluesrc: *mut SPropValue, lpfallocmore: LPALLOCATEMORE, lpvobject: *mut core::ffi::c_void) -> i32 { windows_targets::link!("mapi32.dll" "system" fn PropCopyMore(lpspropvaluedest : *mut SPropValue, lpspropvaluesrc : *mut SPropValue, lpfallocmore : LPALLOCATEMORE, lpvobject : *mut core::ffi::c_void) -> i32); - PropCopyMore(core::mem::transmute(lpspropvaluedest), core::mem::transmute(lpspropvaluesrc), core::mem::transmute(lpfallocmore), core::mem::transmute(lpvobject)) + PropCopyMore(core::mem::transmute(lpspropvaluedest), core::mem::transmute(lpspropvaluesrc), lpfallocmore, core::mem::transmute(lpvobject)) } #[inline] pub unsafe fn RTFSync(lpmessage: P0, ulflags: u32, lpfmessageupdated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> @@ -229,47 +229,47 @@ where P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn RTFSync(lpmessage : * mut core::ffi::c_void, ulflags : u32, lpfmessageupdated : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RTFSync(lpmessage.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(lpfmessageupdated)).ok() + RTFSync(lpmessage.param().abi(), ulflags, core::mem::transmute(lpfmessageupdated)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ScCopyNotifications(cnotification: i32, lpnotifications: *mut NOTIFICATION, lpvdst: *mut core::ffi::c_void, lpcb: *mut u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScCopyNotifications(cnotification : i32, lpnotifications : *mut NOTIFICATION, lpvdst : *mut core::ffi::c_void, lpcb : *mut u32) -> i32); - ScCopyNotifications(core::mem::transmute(cnotification), core::mem::transmute(lpnotifications), core::mem::transmute(lpvdst), core::mem::transmute(lpcb)) + ScCopyNotifications(cnotification, core::mem::transmute(lpnotifications), core::mem::transmute(lpvdst), core::mem::transmute(lpcb)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ScCopyProps(cvalues: i32, lpproparray: *mut SPropValue, lpvdst: *mut core::ffi::c_void, lpcb: *mut u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScCopyProps(cvalues : i32, lpproparray : *mut SPropValue, lpvdst : *mut core::ffi::c_void, lpcb : *mut u32) -> i32); - ScCopyProps(core::mem::transmute(cvalues), core::mem::transmute(lpproparray), core::mem::transmute(lpvdst), core::mem::transmute(lpcb)) + ScCopyProps(cvalues, core::mem::transmute(lpproparray), core::mem::transmute(lpvdst), core::mem::transmute(lpcb)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ScCountNotifications(cnotifications: i32, lpnotifications: *mut NOTIFICATION, lpcb: *mut u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScCountNotifications(cnotifications : i32, lpnotifications : *mut NOTIFICATION, lpcb : *mut u32) -> i32); - ScCountNotifications(core::mem::transmute(cnotifications), core::mem::transmute(lpnotifications), core::mem::transmute(lpcb)) + ScCountNotifications(cnotifications, core::mem::transmute(lpnotifications), core::mem::transmute(lpcb)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ScCountProps(cvalues: i32, lpproparray: *mut SPropValue, lpcb: *mut u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScCountProps(cvalues : i32, lpproparray : *mut SPropValue, lpcb : *mut u32) -> i32); - ScCountProps(core::mem::transmute(cvalues), core::mem::transmute(lpproparray), core::mem::transmute(lpcb)) + ScCountProps(cvalues, core::mem::transmute(lpproparray), core::mem::transmute(lpcb)) } #[inline] pub unsafe fn ScCreateConversationIndex(cbparent: u32, lpbparent: *mut u8, lpcbconvindex: *mut u32, lppbconvindex: *mut *mut u8) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScCreateConversationIndex(cbparent : u32, lpbparent : *mut u8, lpcbconvindex : *mut u32, lppbconvindex : *mut *mut u8) -> i32); - ScCreateConversationIndex(core::mem::transmute(cbparent), core::mem::transmute(lpbparent), core::mem::transmute(lpcbconvindex), core::mem::transmute(lppbconvindex)) + ScCreateConversationIndex(cbparent, core::mem::transmute(lpbparent), core::mem::transmute(lpcbconvindex), core::mem::transmute(lppbconvindex)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ScDupPropset(cvalues: i32, lpproparray: *mut SPropValue, lpallocatebuffer: LPALLOCATEBUFFER, lppproparray: *mut *mut SPropValue) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScDupPropset(cvalues : i32, lpproparray : *mut SPropValue, lpallocatebuffer : LPALLOCATEBUFFER, lppproparray : *mut *mut SPropValue) -> i32); - ScDupPropset(core::mem::transmute(cvalues), core::mem::transmute(lpproparray), core::mem::transmute(lpallocatebuffer), core::mem::transmute(lppproparray)) + ScDupPropset(cvalues, core::mem::transmute(lpproparray), lpallocatebuffer, core::mem::transmute(lppproparray)) } #[inline] pub unsafe fn ScInitMapiUtil(ulflags: u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScInitMapiUtil(ulflags : u32) -> i32); - ScInitMapiUtil(core::mem::transmute(ulflags)) + ScInitMapiUtil(ulflags) } #[inline] pub unsafe fn ScLocalPathFromUNC(lpszunc: P0, lpszlocal: &[u8]) -> i32 @@ -283,13 +283,13 @@ where #[inline] pub unsafe fn ScRelocNotifications(cnotification: i32, lpnotifications: *mut NOTIFICATION, lpvbaseold: *mut core::ffi::c_void, lpvbasenew: *mut core::ffi::c_void, lpcb: *mut u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScRelocNotifications(cnotification : i32, lpnotifications : *mut NOTIFICATION, lpvbaseold : *mut core::ffi::c_void, lpvbasenew : *mut core::ffi::c_void, lpcb : *mut u32) -> i32); - ScRelocNotifications(core::mem::transmute(cnotification), core::mem::transmute(lpnotifications), core::mem::transmute(lpvbaseold), core::mem::transmute(lpvbasenew), core::mem::transmute(lpcb)) + ScRelocNotifications(cnotification, core::mem::transmute(lpnotifications), core::mem::transmute(lpvbaseold), core::mem::transmute(lpvbasenew), core::mem::transmute(lpcb)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ScRelocProps(cvalues: i32, lpproparray: *mut SPropValue, lpvbaseold: *mut core::ffi::c_void, lpvbasenew: *mut core::ffi::c_void, lpcb: *mut u32) -> i32 { windows_targets::link!("mapi32.dll" "system" fn ScRelocProps(cvalues : i32, lpproparray : *mut SPropValue, lpvbaseold : *mut core::ffi::c_void, lpvbasenew : *mut core::ffi::c_void, lpcb : *mut u32) -> i32); - ScRelocProps(core::mem::transmute(cvalues), core::mem::transmute(lpproparray), core::mem::transmute(lpvbaseold), core::mem::transmute(lpvbasenew), core::mem::transmute(lpcb)) + ScRelocProps(cvalues, core::mem::transmute(lpproparray), core::mem::transmute(lpvbaseold), core::mem::transmute(lpvbasenew), core::mem::transmute(lpcb)) } #[inline] pub unsafe fn ScUNCFromLocalPath(lpszlocal: P0, lpszunc: &[u8]) -> i32 @@ -302,12 +302,12 @@ where #[inline] pub unsafe fn SzFindCh(lpsz: *mut i8, ch: u16) -> *mut i8 { windows_targets::link!("mapi32.dll" "system" fn SzFindCh(lpsz : *mut i8, ch : u16) -> *mut i8); - SzFindCh(core::mem::transmute(lpsz), core::mem::transmute(ch)) + SzFindCh(core::mem::transmute(lpsz), ch) } #[inline] pub unsafe fn SzFindLastCh(lpsz: *mut i8, ch: u16) -> *mut i8 { windows_targets::link!("mapi32.dll" "system" fn SzFindLastCh(lpsz : *mut i8, ch : u16) -> *mut i8); - SzFindLastCh(core::mem::transmute(lpsz), core::mem::transmute(ch)) + SzFindLastCh(core::mem::transmute(lpsz), ch) } #[inline] pub unsafe fn SzFindSz(lpsz: *mut i8, lpszkey: *mut i8) -> *mut i8 { @@ -343,12 +343,12 @@ where { windows_targets::link!("mapi32.dll" "system" fn WrapCompressedRTFStream(lpcompressedrtfstream : * mut core::ffi::c_void, ulflags : u32, lpuncompressedrtfstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WrapCompressedRTFStream(lpcompressedrtfstream.param().abi(), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WrapCompressedRTFStream(lpcompressedrtfstream.param().abi(), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WrapStoreEntryID(ulflags: u32, lpszdllname: *const i8, cborigentry: u32, lporigentry: *const ENTRYID, lpcbwrappedentry: *mut u32, lppwrappedentry: *mut *mut ENTRYID) -> windows_core::Result<()> { windows_targets::link!("mapi32.dll" "system" fn WrapStoreEntryID(ulflags : u32, lpszdllname : *const i8, cborigentry : u32, lporigentry : *const ENTRYID, lpcbwrappedentry : *mut u32, lppwrappedentry : *mut *mut ENTRYID) -> windows_core::HRESULT); - WrapStoreEntryID(core::mem::transmute(ulflags), core::mem::transmute(lpszdllname), core::mem::transmute(cborigentry), core::mem::transmute(lporigentry), core::mem::transmute(lpcbwrappedentry), core::mem::transmute(lppwrappedentry)).ok() + WrapStoreEntryID(ulflags, lpszdllname, cborigentry, lporigentry, core::mem::transmute(lpcbwrappedentry), core::mem::transmute(lppwrappedentry)).ok() } #[repr(C)] #[cfg(feature = "Win32_System_Com")] @@ -798,21 +798,21 @@ windows_core::imp::interface_hierarchy!(IABContainer, windows_core::IUnknown, IM impl IABContainer { pub unsafe fn CreateEntry(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(ulcreateflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEntry)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, ulcreateflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CopyEntries(&self, lpentries: *const SBinaryArray, uluiparam: Option, lpprogress: P2, ulflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(lpentries), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), lpentries, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn DeleteEntries(&self, lpentries: *const SBinaryArray, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(lpentries), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).DeleteEntries)(windows_core::Interface::as_raw(self), lpentries, ulflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ResolveNames(&self, lpproptagarray: Option<*const SPropTagArray>, ulflags: u32, lpadrlist: *const ADRLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResolveNames)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(lpadrlist), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ResolveNames)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray.unwrap_or(core::mem::zeroed())), ulflags, lpadrlist, &mut result__).map(|| result__) } } #[repr(C)] @@ -888,68 +888,68 @@ impl core::ops::Deref for IAddrBook { windows_core::imp::interface_hierarchy!(IAddrBook, windows_core::IUnknown, IMAPIProp); impl IAddrBook { pub unsafe fn OpenEntry(&self, cbentryid: u32, lpentryid: *mut ENTRYID, lpinterface: *mut windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, lppunk: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(lpinterface), core::mem::transmute(ulflags), core::mem::transmute(lpulobjtype), core::mem::transmute(lppunk)).ok() + (windows_core::Interface::vtable(self).OpenEntry)(windows_core::Interface::as_raw(self), cbentryid, core::mem::transmute(lpentryid), core::mem::transmute(lpinterface), ulflags, core::mem::transmute(lpulobjtype), core::mem::transmute(lppunk)).ok() } pub unsafe fn CompareEntryIDs(&self, cbentryid1: u32, lpentryid1: *mut ENTRYID, cbentryid2: u32, lpentryid2: *mut ENTRYID, ulflags: u32, lpulresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompareEntryIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid1), core::mem::transmute(lpentryid1), core::mem::transmute(cbentryid2), core::mem::transmute(lpentryid2), core::mem::transmute(ulflags), core::mem::transmute(lpulresult)).ok() + (windows_core::Interface::vtable(self).CompareEntryIDs)(windows_core::Interface::as_raw(self), cbentryid1, core::mem::transmute(lpentryid1), cbentryid2, core::mem::transmute(lpentryid2), ulflags, core::mem::transmute(lpulresult)).ok() } pub unsafe fn Advise(&self, cbentryid: u32, lpentryid: *mut ENTRYID, uleventmask: u32, lpadvisesink: P3, lpulconnection: *mut u32) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(uleventmask), lpadvisesink.param().abi(), core::mem::transmute(lpulconnection)).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), cbentryid, core::mem::transmute(lpentryid), uleventmask, lpadvisesink.param().abi(), core::mem::transmute(lpulconnection)).ok() } pub unsafe fn Unadvise(&self, ulconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(ulconnection)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), ulconnection).ok() } pub unsafe fn CreateOneOff(&self, lpszname: *mut i8, lpszadrtype: *mut i8, lpszaddress: *mut i8, ulflags: u32, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateOneOff)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszname), core::mem::transmute(lpszadrtype), core::mem::transmute(lpszaddress), core::mem::transmute(ulflags), core::mem::transmute(lpcbentryid), core::mem::transmute(lppentryid)).ok() + (windows_core::Interface::vtable(self).CreateOneOff)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszname), core::mem::transmute(lpszadrtype), core::mem::transmute(lpszaddress), ulflags, core::mem::transmute(lpcbentryid), core::mem::transmute(lppentryid)).ok() } pub unsafe fn NewEntry(&self, uluiparam: u32, ulflags: u32, cbeidcontainer: u32, lpeidcontainer: *mut ENTRYID, cbeidnewentrytpl: u32, lpeidnewentrytpl: *mut ENTRYID, lpcbeidnewentry: *mut u32, lppeidnewentry: *mut *mut ENTRYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NewEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam), core::mem::transmute(ulflags), core::mem::transmute(cbeidcontainer), core::mem::transmute(lpeidcontainer), core::mem::transmute(cbeidnewentrytpl), core::mem::transmute(lpeidnewentrytpl), core::mem::transmute(lpcbeidnewentry), core::mem::transmute(lppeidnewentry)).ok() + (windows_core::Interface::vtable(self).NewEntry)(windows_core::Interface::as_raw(self), uluiparam, ulflags, cbeidcontainer, core::mem::transmute(lpeidcontainer), cbeidnewentrytpl, core::mem::transmute(lpeidnewentrytpl), core::mem::transmute(lpcbeidnewentry), core::mem::transmute(lppeidnewentry)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ResolveName(&self, uluiparam: usize, ulflags: u32, lpsznewentrytitle: *mut i8, lpadrlist: *mut ADRLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResolveName)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam), core::mem::transmute(ulflags), core::mem::transmute(lpsznewentrytitle), core::mem::transmute(lpadrlist)).ok() + (windows_core::Interface::vtable(self).ResolveName)(windows_core::Interface::as_raw(self), uluiparam, ulflags, core::mem::transmute(lpsznewentrytitle), core::mem::transmute(lpadrlist)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Address(&self, lpuluiparam: *mut u32, lpadrparms: *mut ADRPARM, lppadrlist: *mut *mut ADRLIST) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Address)(windows_core::Interface::as_raw(self), core::mem::transmute(lpuluiparam), core::mem::transmute(lpadrparms), core::mem::transmute(lppadrlist)).ok() } pub unsafe fn Details(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).Details)(windows_core::Interface::as_raw(self), core::mem::transmute(lpuluiparam), core::mem::transmute(lpfndismiss), core::mem::transmute(lpvdismisscontext), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(lpfbuttoncallback), core::mem::transmute(lpvbuttoncontext), core::mem::transmute(lpszbuttontext), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).Details)(windows_core::Interface::as_raw(self), core::mem::transmute(lpuluiparam), lpfndismiss, core::mem::transmute(lpvdismisscontext), cbentryid, core::mem::transmute(lpentryid), lpfbuttoncallback, core::mem::transmute(lpvbuttoncontext), core::mem::transmute(lpszbuttontext), ulflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RecipOptions(&self, uluiparam: u32, ulflags: u32, lprecip: *mut ADRENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecipOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam), core::mem::transmute(ulflags), core::mem::transmute(lprecip)).ok() + (windows_core::Interface::vtable(self).RecipOptions)(windows_core::Interface::as_raw(self), uluiparam, ulflags, core::mem::transmute(lprecip)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDefaultRecipOpt(&self, lpszadrtype: *mut i8, ulflags: u32, lpcvalues: *mut u32, lppoptions: *mut *mut SPropValue) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryDefaultRecipOpt)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszadrtype), core::mem::transmute(ulflags), core::mem::transmute(lpcvalues), core::mem::transmute(lppoptions)).ok() + (windows_core::Interface::vtable(self).QueryDefaultRecipOpt)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszadrtype), ulflags, core::mem::transmute(lpcvalues), core::mem::transmute(lppoptions)).ok() } pub unsafe fn GetPAB(&self, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPAB)(windows_core::Interface::as_raw(self), core::mem::transmute(lpcbentryid), core::mem::transmute(lppentryid)).ok() } pub unsafe fn SetPAB(&self, cbentryid: u32, lpentryid: *mut ENTRYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPAB)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid)).ok() + (windows_core::Interface::vtable(self).SetPAB)(windows_core::Interface::as_raw(self), cbentryid, core::mem::transmute(lpentryid)).ok() } pub unsafe fn GetDefaultDir(&self, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultDir)(windows_core::Interface::as_raw(self), core::mem::transmute(lpcbentryid), core::mem::transmute(lppentryid)).ok() } pub unsafe fn SetDefaultDir(&self, cbentryid: u32, lpentryid: *mut ENTRYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultDir)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid)).ok() + (windows_core::Interface::vtable(self).SetDefaultDir)(windows_core::Interface::as_raw(self), cbentryid, core::mem::transmute(lpentryid)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSearchPath(&self, ulflags: u32, lppsearchpath: *mut *mut SRowSet) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSearchPath)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lppsearchpath)).ok() + (windows_core::Interface::vtable(self).GetSearchPath)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lppsearchpath)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSearchPath(&self, ulflags: u32, lpsearchpath: *mut SRowSet) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSearchPath)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpsearchpath)).ok() + (windows_core::Interface::vtable(self).SetSearchPath)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpsearchpath)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PrepareRecips(&self, ulflags: u32, lpproptagarray: *mut SPropTagArray, lpreciplist: *mut ADRLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrepareRecips)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpproptagarray), core::mem::transmute(lpreciplist)).ok() + (windows_core::Interface::vtable(self).PrepareRecips)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpproptagarray), core::mem::transmute(lpreciplist)).ok() } } #[repr(C)] @@ -1155,21 +1155,21 @@ windows_core::imp::interface_hierarchy!(IDistList, windows_core::IUnknown, IMAPI impl IDistList { pub unsafe fn CreateEntry(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(ulcreateflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEntry)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, ulcreateflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CopyEntries(&self, lpentries: *const SBinaryArray, uluiparam: Option, lpprogress: P2, ulflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(lpentries), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), lpentries, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn DeleteEntries(&self, lpentries: *const SBinaryArray, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(lpentries), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).DeleteEntries)(windows_core::Interface::as_raw(self), lpentries, ulflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ResolveNames(&self, lpproptagarray: Option<*const SPropTagArray>, ulflags: u32, lpadrlist: *const ADRLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResolveNames)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(lpadrlist), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ResolveNames)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray.unwrap_or(core::mem::zeroed())), ulflags, lpadrlist, &mut result__).map(|| result__) } } #[repr(C)] @@ -1240,7 +1240,7 @@ windows_core::imp::interface_hierarchy!(IMAPIAdviseSink, windows_core::IUnknown) impl IMAPIAdviseSink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnNotify(&self, cnotif: u32, lpnotifications: *mut NOTIFICATION) -> u32 { - (windows_core::Interface::vtable(self).OnNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(cnotif), core::mem::transmute(lpnotifications)) + (windows_core::Interface::vtable(self).OnNotify)(windows_core::Interface::as_raw(self), cnotif, core::mem::transmute(lpnotifications)) } } #[repr(C)] @@ -1281,22 +1281,22 @@ windows_core::imp::interface_hierarchy!(IMAPIContainer, windows_core::IUnknown, impl IMAPIContainer { pub unsafe fn GetContentsTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContentsTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContentsTable)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetHierarchyTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHierarchyTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetHierarchyTable)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenEntry(&self, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *mut windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, lppunk: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(lpinterface), core::mem::transmute(ulflags), core::mem::transmute(lpulobjtype), core::mem::transmute(lppunk)).ok() + (windows_core::Interface::vtable(self).OpenEntry)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, core::mem::transmute(lpinterface), ulflags, core::mem::transmute(lpulobjtype), core::mem::transmute(lppunk)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSearchCriteria(&self, lprestriction: Option<*const SRestriction>, lpcontainerlist: Option<*const SBinaryArray>, ulsearchflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSearchCriteria)(windows_core::Interface::as_raw(self), core::mem::transmute(lprestriction.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcontainerlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulsearchflags)).ok() + (windows_core::Interface::vtable(self).SetSearchCriteria)(windows_core::Interface::as_raw(self), core::mem::transmute(lprestriction.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcontainerlist.unwrap_or(core::mem::zeroed())), ulsearchflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSearchCriteria(&self, ulflags: u32, lpprestriction: *mut *mut SRestriction, lppcontainerlist: *mut *mut SBinaryArray, lpulsearchstate: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSearchCriteria)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpprestriction), core::mem::transmute(lppcontainerlist), core::mem::transmute(lpulsearchstate.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSearchCriteria)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpprestriction), core::mem::transmute(lppcontainerlist), core::mem::transmute(lpulsearchstate.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -1377,13 +1377,13 @@ windows_core::imp::interface_hierarchy!(IMAPIControl, windows_core::IUnknown); impl IMAPIControl { pub unsafe fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32) -> windows_core::Result<*mut MAPIERROR> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), core::mem::transmute(ulflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), hresult, ulflags, &mut result__).map(|| result__) } pub unsafe fn Activate(&self, ulflags: u32, uluiparam: Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetState(&self, ulflags: u32, lpulstate: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpulstate)).ok() + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpulstate)).ok() } } #[repr(C)] @@ -1440,58 +1440,58 @@ impl core::ops::Deref for IMAPIFolder { windows_core::imp::interface_hierarchy!(IMAPIFolder, windows_core::IUnknown, IMAPIProp, IMAPIContainer); impl IMAPIFolder { pub unsafe fn CreateMessage(&self, lpinterface: *mut windows_core::GUID, ulflags: u32, lppmessage: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(lpinterface), core::mem::transmute(ulflags), core::mem::transmute(lppmessage)).ok() + (windows_core::Interface::vtable(self).CreateMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(lpinterface), ulflags, core::mem::transmute(lppmessage)).ok() } pub unsafe fn CopyMessages(&self, lpmsglist: *const SBinaryArray, lpinterface: Option<*const windows_core::GUID>, lpdestfolder: *const core::ffi::c_void, uluiparam: Option, lpprogress: P4, ulflags: u32) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmsglist), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdestfolder), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).CopyMessages)(windows_core::Interface::as_raw(self), lpmsglist, core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), lpdestfolder, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn DeleteMessages(&self, lpmsglist: *const SBinaryArray, uluiparam: Option, lpprogress: P2, ulflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMessages)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmsglist), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).DeleteMessages)(windows_core::Interface::as_raw(self), lpmsglist, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn CreateFolder(&self, ulfoldertype: u32, lpszfoldername: *const i8, lpszfoldercomment: Option<*const i8>, lpinterface: Option<*const windows_core::GUID>, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(ulfoldertype), core::mem::transmute(lpszfoldername), core::mem::transmute(lpszfoldercomment.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFolder)(windows_core::Interface::as_raw(self), ulfoldertype, lpszfoldername, core::mem::transmute(lpszfoldercomment.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CopyFolder(&self, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: Option<*const windows_core::GUID>, lpdestfolder: *const core::ffi::c_void, lpsznewfoldername: *const i8, uluiparam: Option, lpprogress: P6, ulflags: u32) -> windows_core::Result<()> where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdestfolder), core::mem::transmute(lpsznewfoldername), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).CopyFolder)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), lpdestfolder, lpsznewfoldername, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn DeleteFolder(&self, cbentryid: u32, lpentryid: *const ENTRYID, uluiparam: Option, lpprogress: P3, ulflags: u32) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn SetReadFlags(&self, lpmsglist: *const SBinaryArray, uluiparam: Option, lpprogress: P2, ulflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReadFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmsglist), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetReadFlags)(windows_core::Interface::as_raw(self), lpmsglist, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn GetMessageStatus(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessageStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(ulflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMessageStatus)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, ulflags, &mut result__).map(|| result__) } pub unsafe fn SetMessageStatus(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulnewstatus: u32, ulnewstatusmask: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetMessageStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(ulnewstatus), core::mem::transmute(ulnewstatusmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetMessageStatus)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, ulnewstatus, ulnewstatusmask, &mut result__).map(|| result__) } pub unsafe fn SaveContentsSort(&self, lpsortcriteria: *const SSortOrderSet, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveContentsSort)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsortcriteria), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SaveContentsSort)(windows_core::Interface::as_raw(self), lpsortcriteria, ulflags).ok() } pub unsafe fn EmptyFolder(&self, uluiparam: Option, lpprogress: P1, ulflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EmptyFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).EmptyFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } } #[repr(C)] @@ -1613,7 +1613,7 @@ windows_core::imp::define_interface!(IMAPIProgress, IMAPIProgress_Vtbl, 0); windows_core::imp::interface_hierarchy!(IMAPIProgress, windows_core::IUnknown); impl IMAPIProgress { pub unsafe fn Progress(&self, ulvalue: u32, ulcount: u32, ultotal: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), core::mem::transmute(ulvalue), core::mem::transmute(ulcount), core::mem::transmute(ultotal)).ok() + (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), ulvalue, ulcount, ultotal).ok() } pub unsafe fn GetFlags(&self, lpulflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lpulflags)).ok() @@ -1684,24 +1684,24 @@ windows_core::imp::define_interface!(IMAPIProp, IMAPIProp_Vtbl, 0); windows_core::imp::interface_hierarchy!(IMAPIProp, windows_core::IUnknown); impl IMAPIProp { pub unsafe fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), core::mem::transmute(ulflags), core::mem::transmute(lppmapierror)).ok() + (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), hresult, ulflags, core::mem::transmute(lppmapierror)).ok() } pub unsafe fn SaveChanges(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveChanges)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SaveChanges)(windows_core::Interface::as_raw(self), ulflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetProps(&self, lpproptagarray: *mut SPropTagArray, ulflags: u32, lpcvalues: *mut u32, lppproparray: *mut *mut SPropValue) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray), core::mem::transmute(ulflags), core::mem::transmute(lpcvalues), core::mem::transmute(lppproparray)).ok() + (windows_core::Interface::vtable(self).GetProps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray), ulflags, core::mem::transmute(lpcvalues), core::mem::transmute(lppproparray)).ok() } pub unsafe fn GetPropList(&self, ulflags: u32, lppproptagarray: *mut *mut SPropTagArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropList)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lppproptagarray)).ok() + (windows_core::Interface::vtable(self).GetPropList)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lppproptagarray)).ok() } pub unsafe fn OpenProperty(&self, ulproptag: u32, lpiid: *mut windows_core::GUID, ulinterfaceoptions: u32, ulflags: u32, lppunk: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(ulproptag), core::mem::transmute(lpiid), core::mem::transmute(ulinterfaceoptions), core::mem::transmute(ulflags), core::mem::transmute(lppunk)).ok() + (windows_core::Interface::vtable(self).OpenProperty)(windows_core::Interface::as_raw(self), ulproptag, core::mem::transmute(lpiid), ulinterfaceoptions, ulflags, core::mem::transmute(lppunk)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetProps(&self, cvalues: u32, lpproparray: *mut SPropValue, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProps)(windows_core::Interface::as_raw(self), core::mem::transmute(cvalues), core::mem::transmute(lpproparray), core::mem::transmute(lppproblems)).ok() + (windows_core::Interface::vtable(self).SetProps)(windows_core::Interface::as_raw(self), cvalues, core::mem::transmute(lpproparray), core::mem::transmute(lppproblems)).ok() } pub unsafe fn DeleteProps(&self, lpproptagarray: *mut SPropTagArray, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteProps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray), core::mem::transmute(lppproblems)).ok() @@ -1710,19 +1710,19 @@ impl IMAPIProp { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), core::mem::transmute(ciidexclude), core::mem::transmute(rgiidexclude), core::mem::transmute(lpexcludeprops), core::mem::transmute(uluiparam), lpprogress.param().abi(), core::mem::transmute(lpinterface), core::mem::transmute(lpdestobj), core::mem::transmute(ulflags), core::mem::transmute(lppproblems)).ok() + (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, core::mem::transmute(rgiidexclude), core::mem::transmute(lpexcludeprops), uluiparam, lpprogress.param().abi(), core::mem::transmute(lpinterface), core::mem::transmute(lpdestobj), ulflags, core::mem::transmute(lppproblems)).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P2, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyProps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpincludeprops), core::mem::transmute(uluiparam), lpprogress.param().abi(), core::mem::transmute(lpinterface), core::mem::transmute(lpdestobj), core::mem::transmute(ulflags), core::mem::transmute(lppproblems)).ok() + (windows_core::Interface::vtable(self).CopyProps)(windows_core::Interface::as_raw(self), core::mem::transmute(lpincludeprops), uluiparam, lpprogress.param().abi(), core::mem::transmute(lpinterface), core::mem::transmute(lpdestobj), ulflags, core::mem::transmute(lppproblems)).ok() } pub unsafe fn GetNamesFromIDs(&self, lppproptags: *mut *mut SPropTagArray, lppropsetguid: *mut windows_core::GUID, ulflags: u32, lpcpropnames: *mut u32, lppppropnames: *mut *mut *mut MAPINAMEID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNamesFromIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(lppproptags), core::mem::transmute(lppropsetguid), core::mem::transmute(ulflags), core::mem::transmute(lpcpropnames), core::mem::transmute(lppppropnames)).ok() + (windows_core::Interface::vtable(self).GetNamesFromIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(lppproptags), core::mem::transmute(lppropsetguid), ulflags, core::mem::transmute(lpcpropnames), core::mem::transmute(lppppropnames)).ok() } pub unsafe fn GetIDsFromNames(&self, cpropnames: u32, lpppropnames: *mut *mut MAPINAMEID, ulflags: u32, lppproptags: *mut *mut SPropTagArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIDsFromNames)(windows_core::Interface::as_raw(self), core::mem::transmute(cpropnames), core::mem::transmute(lpppropnames), core::mem::transmute(ulflags), core::mem::transmute(lppproptags)).ok() + (windows_core::Interface::vtable(self).GetIDsFromNames)(windows_core::Interface::as_raw(self), cpropnames, core::mem::transmute(lpppropnames), ulflags, core::mem::transmute(lppproptags)).ok() } } #[repr(C)] @@ -1838,16 +1838,16 @@ impl core::ops::Deref for IMAPIStatus { windows_core::imp::interface_hierarchy!(IMAPIStatus, windows_core::IUnknown, IMAPIProp); impl IMAPIStatus { pub unsafe fn ValidateState(&self, uluiparam: Option, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ValidateState)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ValidateState)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), ulflags).ok() } pub unsafe fn SettingsDialog(&self, uluiparam: Option, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SettingsDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SettingsDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), ulflags).ok() } pub unsafe fn ChangePassword(&self, lpoldpass: *const i8, lpnewpass: *const i8, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), core::mem::transmute(lpoldpass), core::mem::transmute(lpnewpass), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), lpoldpass, lpnewpass, ulflags).ok() } pub unsafe fn FlushQueues(&self, uluiparam: Option, lptargettransport: Option<&[ENTRYID]>, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FlushQueues)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lptargettransport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lptargettransport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).FlushQueues)(windows_core::Interface::as_raw(self), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lptargettransport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lptargettransport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ulflags).ok() } } #[repr(C)] @@ -1902,80 +1902,80 @@ windows_core::imp::define_interface!(IMAPITable, IMAPITable_Vtbl, 0); windows_core::imp::interface_hierarchy!(IMAPITable, windows_core::IUnknown); impl IMAPITable { pub unsafe fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), core::mem::transmute(ulflags), core::mem::transmute(lppmapierror)).ok() + (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), hresult, ulflags, core::mem::transmute(lppmapierror)).ok() } pub unsafe fn Advise(&self, uleventmask: u32, lpadvisesink: P1, lpulconnection: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute(uleventmask), lpadvisesink.param().abi(), core::mem::transmute(lpulconnection)).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), uleventmask, lpadvisesink.param().abi(), core::mem::transmute(lpulconnection)).ok() } pub unsafe fn Unadvise(&self, ulconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(ulconnection)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), ulconnection).ok() } pub unsafe fn GetStatus(&self, lpultablestatus: *mut u32, lpultabletype: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lpultablestatus), core::mem::transmute(lpultabletype)).ok() } pub unsafe fn SetColumns(&self, lpproptagarray: *mut SPropTagArray, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray), ulflags).ok() } pub unsafe fn QueryColumns(&self, ulflags: u32, lpproptagarray: *mut *mut SPropTagArray) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpproptagarray)).ok() + (windows_core::Interface::vtable(self).QueryColumns)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpproptagarray)).ok() } pub unsafe fn GetRowCount(&self, ulflags: u32, lpulcount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRowCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpulcount)).ok() + (windows_core::Interface::vtable(self).GetRowCount)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpulcount)).ok() } pub unsafe fn SeekRow(&self, bkorigin: u32, lrowcount: i32, lplrowssought: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeekRow)(windows_core::Interface::as_raw(self), core::mem::transmute(bkorigin), core::mem::transmute(lrowcount), core::mem::transmute(lplrowssought)).ok() + (windows_core::Interface::vtable(self).SeekRow)(windows_core::Interface::as_raw(self), bkorigin, lrowcount, core::mem::transmute(lplrowssought)).ok() } pub unsafe fn SeekRowApprox(&self, ulnumerator: u32, uldenominator: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeekRowApprox)(windows_core::Interface::as_raw(self), core::mem::transmute(ulnumerator), core::mem::transmute(uldenominator)).ok() + (windows_core::Interface::vtable(self).SeekRowApprox)(windows_core::Interface::as_raw(self), ulnumerator, uldenominator).ok() } pub unsafe fn QueryPosition(&self, lpulrow: *mut u32, lpulnumerator: *mut u32, lpuldenominator: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(lpulrow), core::mem::transmute(lpulnumerator), core::mem::transmute(lpuldenominator)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindRow(&self, lprestriction: *mut SRestriction, bkorigin: u32, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindRow)(windows_core::Interface::as_raw(self), core::mem::transmute(lprestriction), core::mem::transmute(bkorigin), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).FindRow)(windows_core::Interface::as_raw(self), core::mem::transmute(lprestriction), bkorigin, ulflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Restrict(&self, lprestriction: *mut SRestriction, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Restrict)(windows_core::Interface::as_raw(self), core::mem::transmute(lprestriction), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).Restrict)(windows_core::Interface::as_raw(self), core::mem::transmute(lprestriction), ulflags).ok() } pub unsafe fn CreateBookmark(&self, lpbkposition: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreateBookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbkposition)).ok() } pub unsafe fn FreeBookmark(&self, bkposition: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeBookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(bkposition)).ok() + (windows_core::Interface::vtable(self).FreeBookmark)(windows_core::Interface::as_raw(self), bkposition).ok() } pub unsafe fn SortTable(&self, lpsortcriteria: *mut SSortOrderSet, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SortTable)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsortcriteria), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SortTable)(windows_core::Interface::as_raw(self), core::mem::transmute(lpsortcriteria), ulflags).ok() } pub unsafe fn QuerySortOrder(&self, lppsortcriteria: *mut *mut SSortOrderSet) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QuerySortOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(lppsortcriteria)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryRows(&self, lrowcount: i32, ulflags: u32, lpprows: *mut *mut SRowSet) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryRows)(windows_core::Interface::as_raw(self), core::mem::transmute(lrowcount), core::mem::transmute(ulflags), core::mem::transmute(lpprows)).ok() + (windows_core::Interface::vtable(self).QueryRows)(windows_core::Interface::as_raw(self), lrowcount, ulflags, core::mem::transmute(lpprows)).ok() } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExpandRow(&self, cbinstancekey: u32, pbinstancekey: *mut u8, ulrowcount: u32, ulflags: u32, lpprows: *mut *mut SRowSet, lpulmorerows: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExpandRow)(windows_core::Interface::as_raw(self), core::mem::transmute(cbinstancekey), core::mem::transmute(pbinstancekey), core::mem::transmute(ulrowcount), core::mem::transmute(ulflags), core::mem::transmute(lpprows), core::mem::transmute(lpulmorerows)).ok() + (windows_core::Interface::vtable(self).ExpandRow)(windows_core::Interface::as_raw(self), cbinstancekey, core::mem::transmute(pbinstancekey), ulrowcount, ulflags, core::mem::transmute(lpprows), core::mem::transmute(lpulmorerows)).ok() } pub unsafe fn CollapseRow(&self, cbinstancekey: u32, pbinstancekey: *mut u8, ulflags: u32, lpulrowcount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CollapseRow)(windows_core::Interface::as_raw(self), core::mem::transmute(cbinstancekey), core::mem::transmute(pbinstancekey), core::mem::transmute(ulflags), core::mem::transmute(lpulrowcount)).ok() + (windows_core::Interface::vtable(self).CollapseRow)(windows_core::Interface::as_raw(self), cbinstancekey, core::mem::transmute(pbinstancekey), ulflags, core::mem::transmute(lpulrowcount)).ok() } pub unsafe fn WaitForCompletion(&self, ulflags: u32, ultimeout: u32, lpultablestatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(ultimeout), core::mem::transmute(lpultablestatus)).ok() + (windows_core::Interface::vtable(self).WaitForCompletion)(windows_core::Interface::as_raw(self), ulflags, ultimeout, core::mem::transmute(lpultablestatus)).ok() } pub unsafe fn GetCollapseState(&self, ulflags: u32, cbinstancekey: u32, lpbinstancekey: *mut u8, lpcbcollapsestate: *mut u32, lppbcollapsestate: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCollapseState)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(cbinstancekey), core::mem::transmute(lpbinstancekey), core::mem::transmute(lpcbcollapsestate), core::mem::transmute(lppbcollapsestate)).ok() + (windows_core::Interface::vtable(self).GetCollapseState)(windows_core::Interface::as_raw(self), ulflags, cbinstancekey, core::mem::transmute(lpbinstancekey), core::mem::transmute(lpcbcollapsestate), core::mem::transmute(lppbcollapsestate)).ok() } pub unsafe fn SetCollapseState(&self, ulflags: u32, cbcollapsestate: u32, pbcollapsestate: *mut u8, lpbklocation: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCollapseState)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(cbcollapsestate), core::mem::transmute(pbcollapsestate), core::mem::transmute(lpbklocation)).ok() + (windows_core::Interface::vtable(self).SetCollapseState)(windows_core::Interface::as_raw(self), ulflags, cbcollapsestate, core::mem::transmute(pbcollapsestate), core::mem::transmute(lpbklocation)).ok() } } #[repr(C)] @@ -2269,34 +2269,34 @@ windows_core::imp::interface_hierarchy!(IMessage, windows_core::IUnknown, IMAPIP impl IMessage { pub unsafe fn GetAttachmentTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttachmentTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttachmentTable)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenAttach(&self, ulattachmentnum: u32, lpinterface: Option<*const windows_core::GUID>, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(ulattachmentnum), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenAttach)(windows_core::Interface::as_raw(self), ulattachmentnum, core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAttach(&self, lpinterface: Option<*const windows_core::GUID>, ulflags: u32, lpulattachmentnum: *mut u32, lppattach: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(lpulattachmentnum), core::mem::transmute(lppattach)).ok() + (windows_core::Interface::vtable(self).CreateAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), ulflags, core::mem::transmute(lpulattachmentnum), core::mem::transmute(lppattach)).ok() } pub unsafe fn DeleteAttach(&self, ulattachmentnum: u32, uluiparam: Option, lpprogress: P2, ulflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(ulattachmentnum), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).DeleteAttach)(windows_core::Interface::as_raw(self), ulattachmentnum, core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), lpprogress.param().abi(), ulflags).ok() } pub unsafe fn GetRecipientTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecipientTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecipientTable)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ModifyRecipients(&self, ulflags: u32, lpmods: *const ADRLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyRecipients)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpmods)).ok() + (windows_core::Interface::vtable(self).ModifyRecipients)(windows_core::Interface::as_raw(self), ulflags, lpmods).ok() } pub unsafe fn SubmitMessage(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SubmitMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SubmitMessage)(windows_core::Interface::as_raw(self), ulflags).ok() } pub unsafe fn SetReadFlag(&self, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReadFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).SetReadFlag)(windows_core::Interface::as_raw(self), ulflags).ok() } } #[repr(C)] @@ -2410,50 +2410,50 @@ impl IMsgStore { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid.unwrap_or(core::mem::zeroed())), core::mem::transmute(uleventmask), lpadvisesink.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), cbentryid, core::mem::transmute(lpentryid.unwrap_or(core::mem::zeroed())), uleventmask, lpadvisesink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, ulconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(ulconnection)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), ulconnection).ok() } pub unsafe fn CompareEntryIDs(&self, cbentryid1: u32, lpentryid1: *const ENTRYID, cbentryid2: u32, lpentryid2: *const ENTRYID, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEntryIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid1), core::mem::transmute(lpentryid1), core::mem::transmute(cbentryid2), core::mem::transmute(lpentryid2), core::mem::transmute(ulflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareEntryIDs)(windows_core::Interface::as_raw(self), cbentryid1, lpentryid1, cbentryid2, lpentryid2, ulflags, &mut result__).map(|| result__) } pub unsafe fn OpenEntry(&self, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: Option<*const windows_core::GUID>, ulflags: u32, lpulobjtype: *mut u32, ppunk: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(lpulobjtype), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).OpenEntry)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), ulflags, core::mem::transmute(lpulobjtype), core::mem::transmute(ppunk)).ok() } pub unsafe fn SetReceiveFolder(&self, lpszmessageclass: Option<*const i8>, ulflags: u32, cbentryid: u32, lpentryid: *const ENTRYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReceiveFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszmessageclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid)).ok() + (windows_core::Interface::vtable(self).SetReceiveFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszmessageclass.unwrap_or(core::mem::zeroed())), ulflags, cbentryid, lpentryid).ok() } pub unsafe fn GetReceiveFolder(&self, lpszmessageclass: Option<*const i8>, ulflags: u32, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID, lppszexplicitclass: *mut *mut i8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetReceiveFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszmessageclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), core::mem::transmute(lpcbentryid), core::mem::transmute(lppentryid), core::mem::transmute(lppszexplicitclass)).ok() + (windows_core::Interface::vtable(self).GetReceiveFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszmessageclass.unwrap_or(core::mem::zeroed())), ulflags, core::mem::transmute(lpcbentryid), core::mem::transmute(lppentryid), core::mem::transmute(lppszexplicitclass)).ok() } pub unsafe fn GetReceiveFolderTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReceiveFolderTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReceiveFolderTable)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn StoreLogoff(&self, lpulflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StoreLogoff)(windows_core::Interface::as_raw(self), core::mem::transmute(lpulflags)).ok() } pub unsafe fn AbortSubmit(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AbortSubmit)(windows_core::Interface::as_raw(self), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).AbortSubmit)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, ulflags).ok() } pub unsafe fn GetOutgoingQueue(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutgoingQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutgoingQueue)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetLockState(&self, lpmessage: P0, ullockstate: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLockState)(windows_core::Interface::as_raw(self), lpmessage.param().abi(), core::mem::transmute(ullockstate)).ok() + (windows_core::Interface::vtable(self).SetLockState)(windows_core::Interface::as_raw(self), lpmessage.param().abi(), ullockstate).ok() } pub unsafe fn FinishedMsg(&self, ulflags: u32, cbentryid: u32, lpentryid: *const ENTRYID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishedMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(cbentryid), core::mem::transmute(lpentryid)).ok() + (windows_core::Interface::vtable(self).FinishedMsg)(windows_core::Interface::as_raw(self), ulflags, cbentryid, lpentryid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NotifyNewMail(&self, lpnotification: *const NOTIFICATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyNewMail)(windows_core::Interface::as_raw(self), core::mem::transmute(lpnotification)).ok() + (windows_core::Interface::vtable(self).NotifyNewMail)(windows_core::Interface::as_raw(self), lpnotification).ok() } } #[repr(C)] @@ -2629,7 +2629,7 @@ impl core::ops::Deref for IPropData { windows_core::imp::interface_hierarchy!(IPropData, windows_core::IUnknown, IMAPIProp); impl IPropData { pub unsafe fn HrSetObjAccess(&self, ulaccess: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrSetObjAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(ulaccess)).ok() + (windows_core::Interface::vtable(self).HrSetObjAccess)(windows_core::Interface::as_raw(self), ulaccess).ok() } pub unsafe fn HrSetPropAccess(&self, lpproptagarray: *mut SPropTagArray, rgulaccess: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HrSetPropAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(lpproptagarray), core::mem::transmute(rgulaccess)).ok() @@ -2694,23 +2694,23 @@ windows_core::imp::interface_hierarchy!(IProviderAdmin, windows_core::IUnknown); impl IProviderAdmin { pub unsafe fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32) -> windows_core::Result<*mut MAPIERROR> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), core::mem::transmute(ulflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), hresult, ulflags, &mut result__).map(|| result__) } pub unsafe fn GetProviderTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProviderTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProviderTable)(windows_core::Interface::as_raw(self), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateProvider(&self, lpszprovider: *const i8, lpprops: &[SPropValue], uluiparam: Option, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(lpszprovider), lpprops.len().try_into().unwrap(), core::mem::transmute(lpprops.as_ptr()), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), lpszprovider, lpprops.len().try_into().unwrap(), core::mem::transmute(lpprops.as_ptr()), core::mem::transmute(uluiparam.unwrap_or(core::mem::zeroed())), ulflags, &mut result__).map(|| result__) } pub unsafe fn DeleteProvider(&self, lpuid: *const MAPIUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(lpuid)).ok() + (windows_core::Interface::vtable(self).DeleteProvider)(windows_core::Interface::as_raw(self), lpuid).ok() } pub unsafe fn OpenProfileSection(&self, lpuid: Option<*const MAPIUID>, lpinterface: Option<*const windows_core::GUID>, ulflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenProfileSection)(windows_core::Interface::as_raw(self), core::mem::transmute(lpuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenProfileSection)(windows_core::Interface::as_raw(self), core::mem::transmute(lpuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpinterface.unwrap_or(core::mem::zeroed())), ulflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2799,7 +2799,7 @@ windows_core::imp::define_interface!(ITableData, ITableData_Vtbl, 0); windows_core::imp::interface_hierarchy!(ITableData, windows_core::IUnknown); impl ITableData { pub unsafe fn HrGetView(&self, lpssortorderset: *mut SSortOrderSet, lpfcallerrelease: *mut CALLERRELEASE, ulcallerdata: u32, lppmapitable: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrGetView)(windows_core::Interface::as_raw(self), core::mem::transmute(lpssortorderset), core::mem::transmute(lpfcallerrelease), core::mem::transmute(ulcallerdata), core::mem::transmute(lppmapitable)).ok() + (windows_core::Interface::vtable(self).HrGetView)(windows_core::Interface::as_raw(self), core::mem::transmute(lpssortorderset), core::mem::transmute(lpfcallerrelease), ulcallerdata, core::mem::transmute(lppmapitable)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HrModifyRow(&self, param0: *mut SRow) -> windows_core::Result<()> { @@ -2815,23 +2815,23 @@ impl ITableData { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HrEnumRow(&self, ulrownumber: u32, lppsrow: *mut *mut SRow) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrEnumRow)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrownumber), core::mem::transmute(lppsrow)).ok() + (windows_core::Interface::vtable(self).HrEnumRow)(windows_core::Interface::as_raw(self), ulrownumber, core::mem::transmute(lppsrow)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HrNotify(&self, ulflags: u32, cvalues: u32, lpspropvalue: *mut SPropValue) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(cvalues), core::mem::transmute(lpspropvalue)).ok() + (windows_core::Interface::vtable(self).HrNotify)(windows_core::Interface::as_raw(self), ulflags, cvalues, core::mem::transmute(lpspropvalue)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HrInsertRow(&self, ulirow: u32, lpsrow: *mut SRow) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrInsertRow)(windows_core::Interface::as_raw(self), core::mem::transmute(ulirow), core::mem::transmute(lpsrow)).ok() + (windows_core::Interface::vtable(self).HrInsertRow)(windows_core::Interface::as_raw(self), ulirow, core::mem::transmute(lpsrow)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HrModifyRows(&self, ulflags: u32, lpsrowset: *mut SRowSet) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrModifyRows)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lpsrowset)).ok() + (windows_core::Interface::vtable(self).HrModifyRows)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lpsrowset)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HrDeleteRows(&self, ulflags: u32, lprowsettodelete: *mut SRowSet, crowsdeleted: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HrDeleteRows)(windows_core::Interface::as_raw(self), core::mem::transmute(ulflags), core::mem::transmute(lprowsettodelete), core::mem::transmute(crowsdeleted)).ok() + (windows_core::Interface::vtable(self).HrDeleteRows)(windows_core::Interface::as_raw(self), ulflags, core::mem::transmute(lprowsettodelete), core::mem::transmute(crowsdeleted)).ok() } } #[repr(C)] @@ -2973,16 +2973,16 @@ windows_core::imp::define_interface!(IWABObject, IWABObject_Vtbl, 0); windows_core::imp::interface_hierarchy!(IWABObject, windows_core::IUnknown); impl IWABObject { pub unsafe fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), core::mem::transmute(ulflags), core::mem::transmute(lppmapierror)).ok() + (windows_core::Interface::vtable(self).GetLastError)(windows_core::Interface::as_raw(self), hresult, ulflags, core::mem::transmute(lppmapierror)).ok() } pub unsafe fn AllocateBuffer(&self, cbsize: u32, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(lppbuffer)).ok() + (windows_core::Interface::vtable(self).AllocateBuffer)(windows_core::Interface::as_raw(self), cbsize, core::mem::transmute(lppbuffer)).ok() } pub unsafe fn AllocateMore(&self, cbsize: u32, lpobject: *const core::ffi::c_void, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateMore)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(lpobject), core::mem::transmute(lppbuffer)).ok() + (windows_core::Interface::vtable(self).AllocateMore)(windows_core::Interface::as_raw(self), cbsize, lpobject, core::mem::transmute(lppbuffer)).ok() } pub unsafe fn FreeBuffer(&self, lpbuffer: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer)).ok() + (windows_core::Interface::vtable(self).FreeBuffer)(windows_core::Interface::as_raw(self), lpbuffer).ok() } pub unsafe fn Backup(&self, lpfilename: P0) -> windows_core::Result<()> where @@ -3015,7 +3015,7 @@ impl IWABObject { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LDAPUrl)(windows_core::Interface::as_raw(self), lpiab.param().abi(), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulflags), lpszurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LDAPUrl)(windows_core::Interface::as_raw(self), lpiab.param().abi(), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), ulflags, lpszurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VCardCreate(&self, lpiab: P0, ulflags: u32, lpszvcard: P2, lpmailuser: P3) -> windows_core::Result<()> where @@ -3023,7 +3023,7 @@ impl IWABObject { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).VCardCreate)(windows_core::Interface::as_raw(self), lpiab.param().abi(), core::mem::transmute(ulflags), lpszvcard.param().abi(), lpmailuser.param().abi()).ok() + (windows_core::Interface::vtable(self).VCardCreate)(windows_core::Interface::as_raw(self), lpiab.param().abi(), ulflags, lpszvcard.param().abi(), lpmailuser.param().abi()).ok() } pub unsafe fn VCardRetrieve(&self, lpiab: P0, ulflags: u32, lpszvcard: P2) -> windows_core::Result where @@ -3031,19 +3031,19 @@ impl IWABObject { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VCardRetrieve)(windows_core::Interface::as_raw(self), lpiab.param().abi(), core::mem::transmute(ulflags), lpszvcard.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).VCardRetrieve)(windows_core::Interface::as_raw(self), lpiab.param().abi(), ulflags, lpszvcard.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMe(&self, lpiab: P0, ulflags: u32, lpdwaction: *mut u32, lpsbeid: *mut SBinary, hwnd: Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMe)(windows_core::Interface::as_raw(self), lpiab.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(lpdwaction), core::mem::transmute(lpsbeid), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetMe)(windows_core::Interface::as_raw(self), lpiab.param().abi(), ulflags, core::mem::transmute(lpdwaction), core::mem::transmute(lpsbeid), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetMe(&self, lpiab: P0, ulflags: u32, sbeid: SBinary, hwnd: Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMe)(windows_core::Interface::as_raw(self), lpiab.param().abi(), core::mem::transmute(ulflags), core::mem::transmute(sbeid), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetMe)(windows_core::Interface::as_raw(self), lpiab.param().abi(), ulflags, core::mem::transmute(sbeid), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs index 253c1b0724..749d15e702 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn AmsiCloseSession(amsicontext: HAMSICONTEXT, amsisession: HAMSISESSION) { windows_targets::link!("amsi.dll" "system" fn AmsiCloseSession(amsicontext : HAMSICONTEXT, amsisession : HAMSISESSION)); - AmsiCloseSession(core::mem::transmute(amsicontext), core::mem::transmute(amsisession)) + AmsiCloseSession(amsicontext, amsisession) } #[inline] pub unsafe fn AmsiInitialize(appname: P0) -> windows_core::Result @@ -19,13 +19,13 @@ where { windows_targets::link!("amsi.dll" "system" fn AmsiNotifyOperation(amsicontext : HAMSICONTEXT, buffer : *const core::ffi::c_void, length : u32, contentname : windows_core::PCWSTR, result : *mut AMSI_RESULT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AmsiNotifyOperation(core::mem::transmute(amsicontext), core::mem::transmute(buffer), core::mem::transmute(length), contentname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AmsiNotifyOperation(amsicontext, buffer, length, contentname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn AmsiOpenSession(amsicontext: HAMSICONTEXT) -> windows_core::Result { windows_targets::link!("amsi.dll" "system" fn AmsiOpenSession(amsicontext : HAMSICONTEXT, amsisession : *mut HAMSISESSION) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AmsiOpenSession(core::mem::transmute(amsicontext), &mut result__).map(|| core::mem::transmute(result__)) + AmsiOpenSession(amsicontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn AmsiScanBuffer(amsicontext: HAMSICONTEXT, buffer: *const core::ffi::c_void, length: u32, contentname: P3, amsisession: Option) -> windows_core::Result @@ -34,7 +34,7 @@ where { windows_targets::link!("amsi.dll" "system" fn AmsiScanBuffer(amsicontext : HAMSICONTEXT, buffer : *const core::ffi::c_void, length : u32, contentname : windows_core::PCWSTR, amsisession : HAMSISESSION, result : *mut AMSI_RESULT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AmsiScanBuffer(core::mem::transmute(amsicontext), core::mem::transmute(buffer), core::mem::transmute(length), contentname.param().abi(), core::mem::transmute(amsisession.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + AmsiScanBuffer(amsicontext, buffer, length, contentname.param().abi(), core::mem::transmute(amsisession.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn AmsiScanString(amsicontext: HAMSICONTEXT, string: P1, contentname: P2, amsisession: Option) -> windows_core::Result @@ -44,17 +44,17 @@ where { windows_targets::link!("amsi.dll" "system" fn AmsiScanString(amsicontext : HAMSICONTEXT, string : windows_core::PCWSTR, contentname : windows_core::PCWSTR, amsisession : HAMSISESSION, result : *mut AMSI_RESULT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AmsiScanString(core::mem::transmute(amsicontext), string.param().abi(), contentname.param().abi(), core::mem::transmute(amsisession.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + AmsiScanString(amsicontext, string.param().abi(), contentname.param().abi(), core::mem::transmute(amsisession.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn AmsiUninitialize(amsicontext: HAMSICONTEXT) { windows_targets::link!("amsi.dll" "system" fn AmsiUninitialize(amsicontext : HAMSICONTEXT)); - AmsiUninitialize(core::mem::transmute(amsicontext)) + AmsiUninitialize(amsicontext) } #[inline] pub unsafe fn InstallELAMCertificateInfo(elamfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InstallELAMCertificateInfo(elamfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - InstallELAMCertificateInfo(core::mem::transmute(elamfile)).ok() + InstallELAMCertificateInfo(elamfile).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -233,10 +233,10 @@ windows_core::imp::define_interface!(IAmsiStream, IAmsiStream_Vtbl, 0x3e47f2e5_8 windows_core::imp::interface_hierarchy!(IAmsiStream, windows_core::IUnknown); impl IAmsiStream { pub unsafe fn GetAttribute(&self, attribute: AMSI_ATTRIBUTE, data: &mut [u8], retdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attribute), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), core::mem::transmute(retdata)).ok() + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), attribute, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), core::mem::transmute(retdata)).ok() } pub unsafe fn Read(&self, position: u64, buffer: &mut [u8], readsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(position), buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr()), core::mem::transmute(readsize)).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), position, buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr()), core::mem::transmute(readsize)).ok() } } #[repr(C)] @@ -276,7 +276,7 @@ impl IAntimalware { (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), stream.param().abi(), core::mem::transmute(result), core::mem::transmute(provider)).ok() } pub unsafe fn CloseSession(&self, session: u64) { - (windows_core::Interface::vtable(self).CloseSession)(windows_core::Interface::as_raw(self), core::mem::transmute(session)) + (windows_core::Interface::vtable(self).CloseSession)(windows_core::Interface::as_raw(self), session) } } #[repr(C)] @@ -321,7 +321,7 @@ impl IAntimalware2 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), core::mem::transmute(length), contentname.param().abi(), appname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), buffer, length, contentname.param().abi(), appname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -362,7 +362,7 @@ impl IAntimalwareProvider { (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), stream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CloseSession(&self, session: u64) { - (windows_core::Interface::vtable(self).CloseSession)(windows_core::Interface::as_raw(self), core::mem::transmute(session)) + (windows_core::Interface::vtable(self).CloseSession)(windows_core::Interface::as_raw(self), session) } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -434,7 +434,7 @@ impl IAntimalwareProvider2 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), core::mem::transmute(length), contentname.param().abi(), appname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), buffer, length, contentname.param().abi(), appname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -469,7 +469,7 @@ windows_core::imp::interface_hierarchy!(IAntimalwareUacProvider, windows_core::I impl IAntimalwareUacProvider { pub unsafe fn UacScan(&self, context: *const AMSI_UAC_REQUEST_CONTEXT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).UacScan)(windows_core::Interface::as_raw(self), core::mem::transmute(context), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).UacScan)(windows_core::Interface::as_raw(self), context, &mut result__).map(|| result__) } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs index a1096244d1..d9ee4cff08 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -16,22 +16,22 @@ where P3: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaA(applyflags : i64, lpsourcename : windows_core::PCSTR, lpdeltaname : windows_core::PCSTR, lptargetname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ApplyDeltaA(core::mem::transmute(applyflags), lpsourcename.param().abi(), lpdeltaname.param().abi(), lptargetname.param().abi()) + ApplyDeltaA(applyflags, lpsourcename.param().abi(), lpdeltaname.param().abi(), lptargetname.param().abi()) } #[inline] pub unsafe fn ApplyDeltaB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lptarget: *mut DELTA_OUTPUT) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lptarget : *mut DELTA_OUTPUT) -> super::super::Foundation:: BOOL); - ApplyDeltaB(core::mem::transmute(applyflags), core::mem::transmute(source), core::mem::transmute(delta), core::mem::transmute(lptarget)) + ApplyDeltaB(applyflags, core::mem::transmute(source), core::mem::transmute(delta), core::mem::transmute(lptarget)) } #[inline] pub unsafe fn ApplyDeltaGetReverseB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lpreversefiletime: Option<*const super::super::Foundation::FILETIME>, lptarget: *mut DELTA_OUTPUT, lptargetreverse: *mut DELTA_OUTPUT) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaGetReverseB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lpreversefiletime : *const super::super::Foundation:: FILETIME, lptarget : *mut DELTA_OUTPUT, lptargetreverse : *mut DELTA_OUTPUT) -> super::super::Foundation:: BOOL); - ApplyDeltaGetReverseB(core::mem::transmute(applyflags), core::mem::transmute(source), core::mem::transmute(delta), core::mem::transmute(lpreversefiletime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptarget), core::mem::transmute(lptargetreverse)) + ApplyDeltaGetReverseB(applyflags, core::mem::transmute(source), core::mem::transmute(delta), core::mem::transmute(lpreversefiletime.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptarget), core::mem::transmute(lptargetreverse)) } #[inline] pub unsafe fn ApplyDeltaProvidedB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lptarget: *mut core::ffi::c_void, utargetsize: usize) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaProvidedB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lptarget : *mut core::ffi::c_void, utargetsize : usize) -> super::super::Foundation:: BOOL); - ApplyDeltaProvidedB(core::mem::transmute(applyflags), core::mem::transmute(source), core::mem::transmute(delta), core::mem::transmute(lptarget), core::mem::transmute(utargetsize)) + ApplyDeltaProvidedB(applyflags, core::mem::transmute(source), core::mem::transmute(delta), core::mem::transmute(lptarget), utargetsize) } #[inline] pub unsafe fn ApplyDeltaW(applyflags: i64, lpsourcename: P1, lpdeltaname: P2, lptargetname: P3) -> super::super::Foundation::BOOL @@ -41,7 +41,7 @@ where P3: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaW(applyflags : i64, lpsourcename : windows_core::PCWSTR, lpdeltaname : windows_core::PCWSTR, lptargetname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ApplyDeltaW(core::mem::transmute(applyflags), lpsourcename.param().abi(), lpdeltaname.param().abi(), lptargetname.param().abi()) + ApplyDeltaW(applyflags, lpsourcename.param().abi(), lpdeltaname.param().abi(), lptargetname.param().abi()) } #[inline] pub unsafe fn ApplyPatchToFileA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> super::super::Foundation::BOOL @@ -51,7 +51,7 @@ where P2: windows_core::Param, { windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - ApplyPatchToFileA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), core::mem::transmute(applyoptionflags)) + ApplyPatchToFileA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags) } #[inline] pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: Option<&[u8]>, newfilebuffer: &mut [u8], newfileactualsize: Option<*mut u32>, newfiletime: Option<*mut super::super::Foundation::FILETIME>, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { @@ -65,7 +65,7 @@ pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: O newfilebuffer.len().try_into().unwrap(), core::mem::transmute(newfileactualsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(newfiletime.unwrap_or(core::mem::zeroed())), - core::mem::transmute(applyoptionflags), + applyoptionflags, core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), ) @@ -73,12 +73,12 @@ pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: O #[inline] pub unsafe fn ApplyPatchToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - ApplyPatchToFileByHandles(core::mem::transmute(patchfilehandle), core::mem::transmute(oldfilehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(newfilehandle), core::mem::transmute(applyoptionflags)) + ApplyPatchToFileByHandles(patchfilehandle, core::mem::transmute(oldfilehandle.unwrap_or(core::mem::zeroed())), newfilehandle, applyoptionflags) } #[inline] pub unsafe fn ApplyPatchToFileByHandlesEx(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByHandlesEx(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ApplyPatchToFileByHandlesEx(core::mem::transmute(patchfilehandle), core::mem::transmute(oldfilehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(newfilehandle), core::mem::transmute(applyoptionflags), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + ApplyPatchToFileByHandlesEx(patchfilehandle, core::mem::transmute(oldfilehandle.unwrap_or(core::mem::zeroed())), newfilehandle, applyoptionflags, core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ApplyPatchToFileExA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -88,7 +88,7 @@ where P2: windows_core::Param, { windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileExA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ApplyPatchToFileExA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), core::mem::transmute(applyoptionflags), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + ApplyPatchToFileExA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags, core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ApplyPatchToFileExW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -98,7 +98,7 @@ where P2: windows_core::Param, { windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileExW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ApplyPatchToFileExW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), core::mem::transmute(applyoptionflags), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + ApplyPatchToFileExW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags, core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ApplyPatchToFileW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> super::super::Foundation::BOOL @@ -108,18 +108,18 @@ where P2: windows_core::Param, { windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - ApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), core::mem::transmute(applyoptionflags)) + ApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags) } #[inline] pub unsafe fn CreateActCtxA(pactctx: *const ACTCTXA) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateActCtxA(pactctx : *const ACTCTXA) -> super::super::Foundation:: HANDLE); - let result__ = CreateActCtxA(core::mem::transmute(pactctx)); + let result__ = CreateActCtxA(pactctx); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateActCtxW(pactctx: *const ACTCTXW) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateActCtxW(pactctx : *const ACTCTXW) -> super::super::Foundation:: HANDLE); - let result__ = CreateActCtxW(core::mem::transmute(pactctx)); + let result__ = CreateActCtxW(pactctx); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security_Cryptography")] @@ -133,13 +133,13 @@ where P10: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn CreateDeltaA(filetypeset : i64, setflags : i64, resetflags : i64, lpsourcename : windows_core::PCSTR, lptargetname : windows_core::PCSTR, lpsourceoptionsname : windows_core::PCSTR, lptargetoptionsname : windows_core::PCSTR, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdeltaname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CreateDeltaA(core::mem::transmute(filetypeset), core::mem::transmute(setflags), core::mem::transmute(resetflags), lpsourcename.param().abi(), lptargetname.param().abi(), lpsourceoptionsname.param().abi(), lptargetoptionsname.param().abi(), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(core::mem::zeroed())), core::mem::transmute(hashalgid), lpdeltaname.param().abi()) + CreateDeltaA(filetypeset, setflags, resetflags, lpsourcename.param().abi(), lptargetname.param().abi(), lpsourceoptionsname.param().abi(), lptargetoptionsname.param().abi(), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(core::mem::zeroed())), hashalgid, lpdeltaname.param().abi()) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn CreateDeltaB(filetypeset: i64, setflags: i64, resetflags: i64, source: DELTA_INPUT, target: DELTA_INPUT, sourceoptions: DELTA_INPUT, targetoptions: DELTA_INPUT, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdelta: *mut DELTA_OUTPUT) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn CreateDeltaB(filetypeset : i64, setflags : i64, resetflags : i64, source : DELTA_INPUT, target : DELTA_INPUT, sourceoptions : DELTA_INPUT, targetoptions : DELTA_INPUT, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdelta : *mut DELTA_OUTPUT) -> super::super::Foundation:: BOOL); - CreateDeltaB(core::mem::transmute(filetypeset), core::mem::transmute(setflags), core::mem::transmute(resetflags), core::mem::transmute(source), core::mem::transmute(target), core::mem::transmute(sourceoptions), core::mem::transmute(targetoptions), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(core::mem::zeroed())), core::mem::transmute(hashalgid), core::mem::transmute(lpdelta)) + CreateDeltaB(filetypeset, setflags, resetflags, core::mem::transmute(source), core::mem::transmute(target), core::mem::transmute(sourceoptions), core::mem::transmute(targetoptions), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(core::mem::zeroed())), hashalgid, core::mem::transmute(lpdelta)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -152,7 +152,7 @@ where P10: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn CreateDeltaW(filetypeset : i64, setflags : i64, resetflags : i64, lpsourcename : windows_core::PCWSTR, lptargetname : windows_core::PCWSTR, lpsourceoptionsname : windows_core::PCWSTR, lptargetoptionsname : windows_core::PCWSTR, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdeltaname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CreateDeltaW(core::mem::transmute(filetypeset), core::mem::transmute(setflags), core::mem::transmute(resetflags), lpsourcename.param().abi(), lptargetname.param().abi(), lpsourceoptionsname.param().abi(), lptargetoptionsname.param().abi(), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(core::mem::zeroed())), core::mem::transmute(hashalgid), lpdeltaname.param().abi()) + CreateDeltaW(filetypeset, setflags, resetflags, lpsourcename.param().abi(), lptargetname.param().abi(), lpsourceoptionsname.param().abi(), lptargetoptionsname.param().abi(), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(core::mem::zeroed())), hashalgid, lpdeltaname.param().abi()) } #[inline] pub unsafe fn CreatePatchFileA(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL @@ -162,17 +162,17 @@ where P2: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileA(oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, patchfilename : windows_core::PCSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> super::super::Foundation:: BOOL); - CreatePatchFileA(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), core::mem::transmute(optionflags), core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed()))) + CreatePatchFileA(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreatePatchFileByHandles(oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, patchfilehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL { windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileByHandles(oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, patchfilehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> super::super::Foundation:: BOOL); - CreatePatchFileByHandles(core::mem::transmute(oldfilehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(newfilehandle), core::mem::transmute(patchfilehandle), core::mem::transmute(optionflags), core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed()))) + CreatePatchFileByHandles(core::mem::transmute(oldfilehandle.unwrap_or(core::mem::zeroed())), newfilehandle, patchfilehandle, optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreatePatchFileByHandlesEx(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_H], newfilehandle: super::super::Foundation::HANDLE, patchfilehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileByHandlesEx(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_H, newfilehandle : super::super::Foundation:: HANDLE, patchfilehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CreatePatchFileByHandlesEx(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), core::mem::transmute(newfilehandle), core::mem::transmute(patchfilehandle), core::mem::transmute(optionflags), core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + CreatePatchFileByHandlesEx(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilehandle, patchfilehandle, optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreatePatchFileExA(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_A], newfilename: P2, patchfilename: P3, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -181,7 +181,7 @@ where P3: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileExA(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_A, newfilename : windows_core::PCSTR, patchfilename : windows_core::PCSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CreatePatchFileExA(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilename.param().abi(), patchfilename.param().abi(), core::mem::transmute(optionflags), core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + CreatePatchFileExA(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilename.param().abi(), patchfilename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreatePatchFileExW(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_W], newfilename: P2, patchfilename: P3, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL @@ -190,7 +190,7 @@ where P3: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileExW(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_W, newfilename : windows_core::PCWSTR, patchfilename : windows_core::PCWSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - CreatePatchFileExW(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilename.param().abi(), patchfilename.param().abi(), core::mem::transmute(optionflags), core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) + CreatePatchFileExW(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilename.param().abi(), patchfilename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), core::mem::transmute(progresscallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreatePatchFileW(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL @@ -200,22 +200,22 @@ where P2: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileW(oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, patchfilename : windows_core::PCWSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> super::super::Foundation:: BOOL); - CreatePatchFileW(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), core::mem::transmute(optionflags), core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed()))) + CreatePatchFileW(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DeactivateActCtx(dwflags: u32, ulcookie: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeactivateActCtx(dwflags : u32, ulcookie : usize) -> super::super::Foundation:: BOOL); - DeactivateActCtx(core::mem::transmute(dwflags), core::mem::transmute(ulcookie)).ok() + DeactivateActCtx(dwflags, ulcookie).ok() } #[inline] pub unsafe fn DeltaFree(lpmemory: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn DeltaFree(lpmemory : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DeltaFree(core::mem::transmute(lpmemory)) + DeltaFree(lpmemory) } #[inline] pub unsafe fn DeltaNormalizeProvidedB(filetypeset: i64, normalizeflags: i64, normalizeoptions: DELTA_INPUT, lpsource: *mut core::ffi::c_void, usourcesize: usize) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn DeltaNormalizeProvidedB(filetypeset : i64, normalizeflags : i64, normalizeoptions : DELTA_INPUT, lpsource : *mut core::ffi::c_void, usourcesize : usize) -> super::super::Foundation:: BOOL); - DeltaNormalizeProvidedB(core::mem::transmute(filetypeset), core::mem::transmute(normalizeflags), core::mem::transmute(normalizeoptions), core::mem::transmute(lpsource), core::mem::transmute(usourcesize)) + DeltaNormalizeProvidedB(filetypeset, normalizeflags, core::mem::transmute(normalizeoptions), core::mem::transmute(lpsource), usourcesize) } #[inline] pub unsafe fn ExtractPatchHeaderToFileA(patchfilename: P0, patchheaderfilename: P1) -> super::super::Foundation::BOOL @@ -229,7 +229,7 @@ where #[inline] pub unsafe fn ExtractPatchHeaderToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, patchheaderfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, patchheaderfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ExtractPatchHeaderToFileByHandles(core::mem::transmute(patchfilehandle), core::mem::transmute(patchheaderfilehandle)) + ExtractPatchHeaderToFileByHandles(patchfilehandle, patchheaderfilehandle) } #[inline] pub unsafe fn ExtractPatchHeaderToFileW(patchfilename: P0, patchheaderfilename: P1) -> super::super::Foundation::BOOL @@ -244,7 +244,7 @@ where #[inline] pub unsafe fn FindActCtxSectionGuid(dwflags: u32, lpextensionguid: Option<*const windows_core::GUID>, ulsectionid: u32, lpguidtofind: Option<*const windows_core::GUID>, returneddata: *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionGuid(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpguidtofind : *const windows_core::GUID, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> super::super::Foundation:: BOOL); - FindActCtxSectionGuid(core::mem::transmute(dwflags), core::mem::transmute(lpextensionguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulsectionid), core::mem::transmute(lpguidtofind.unwrap_or(core::mem::zeroed())), core::mem::transmute(returneddata)).ok() + FindActCtxSectionGuid(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(core::mem::zeroed())), ulsectionid, core::mem::transmute(lpguidtofind.unwrap_or(core::mem::zeroed())), core::mem::transmute(returneddata)).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] @@ -253,7 +253,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionStringA(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpstringtofind : windows_core::PCSTR, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> super::super::Foundation:: BOOL); - FindActCtxSectionStringA(core::mem::transmute(dwflags), core::mem::transmute(lpextensionguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulsectionid), lpstringtofind.param().abi(), core::mem::transmute(returneddata)).ok() + FindActCtxSectionStringA(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(core::mem::zeroed())), ulsectionid, lpstringtofind.param().abi(), core::mem::transmute(returneddata)).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] @@ -262,7 +262,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionStringW(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpstringtofind : windows_core::PCWSTR, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> super::super::Foundation:: BOOL); - FindActCtxSectionStringW(core::mem::transmute(dwflags), core::mem::transmute(lpextensionguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulsectionid), lpstringtofind.param().abi(), core::mem::transmute(returneddata)).ok() + FindActCtxSectionStringW(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(core::mem::zeroed())), ulsectionid, lpstringtofind.param().abi(), core::mem::transmute(returneddata)).ok() } #[inline] pub unsafe fn GetCurrentActCtx(lphactctx: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -300,13 +300,13 @@ where P2: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureA(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpsourcename : windows_core::PCSTR, lphash : *mut DELTA_HASH) -> super::super::Foundation:: BOOL); - GetDeltaSignatureA(core::mem::transmute(filetypeset), core::mem::transmute(hashalgid), lpsourcename.param().abi(), core::mem::transmute(lphash)) + GetDeltaSignatureA(filetypeset, hashalgid, lpsourcename.param().abi(), core::mem::transmute(lphash)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn GetDeltaSignatureB(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, source: DELTA_INPUT, lphash: *mut DELTA_HASH) -> super::super::Foundation::BOOL { windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureB(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, source : DELTA_INPUT, lphash : *mut DELTA_HASH) -> super::super::Foundation:: BOOL); - GetDeltaSignatureB(core::mem::transmute(filetypeset), core::mem::transmute(hashalgid), core::mem::transmute(source), core::mem::transmute(lphash)) + GetDeltaSignatureB(filetypeset, hashalgid, core::mem::transmute(source), core::mem::transmute(lphash)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -315,7 +315,7 @@ where P2: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureW(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpsourcename : windows_core::PCWSTR, lphash : *mut DELTA_HASH) -> super::super::Foundation:: BOOL); - GetDeltaSignatureW(core::mem::transmute(filetypeset), core::mem::transmute(hashalgid), lpsourcename.param().abi(), core::mem::transmute(lphash)) + GetDeltaSignatureW(filetypeset, hashalgid, lpsourcename.param().abi(), core::mem::transmute(lphash)) } #[inline] pub unsafe fn GetFilePatchSignatureA(filename: P0, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> super::super::Foundation::BOOL @@ -325,7 +325,7 @@ where windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureA(filename : windows_core::PCSTR, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> super::super::Foundation:: BOOL); GetFilePatchSignatureA( filename.param().abi(), - core::mem::transmute(optionflags), + optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ignorerangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -341,7 +341,7 @@ pub unsafe fn GetFilePatchSignatureByBuffer(filebufferwritable: &mut [u8], optio GetFilePatchSignatureByBuffer( core::mem::transmute(filebufferwritable.as_ptr()), filebufferwritable.len().try_into().unwrap(), - core::mem::transmute(optionflags), + optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ignorerangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -355,8 +355,8 @@ pub unsafe fn GetFilePatchSignatureByBuffer(filebufferwritable: &mut [u8], optio pub unsafe fn GetFilePatchSignatureByHandle(filehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> super::super::Foundation::BOOL { windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureByHandle(filehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> super::super::Foundation:: BOOL); GetFilePatchSignatureByHandle( - core::mem::transmute(filehandle), - core::mem::transmute(optionflags), + filehandle, + optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ignorerangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -374,13 +374,13 @@ where windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureW(filename : windows_core::PCWSTR, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PWSTR) -> super::super::Foundation:: BOOL); GetFilePatchSignatureW( filename.param().abi(), - core::mem::transmute(optionflags), + optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ignorerangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), retainrangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(retainrangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(signaturebuffersize), + signaturebuffersize, core::mem::transmute(signaturebuffer), ) } @@ -392,7 +392,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiAdvertiseProductA(szpackagepath : windows_core::PCSTR, szscriptfilepath : windows_core::PCSTR, sztransforms : windows_core::PCSTR, lgidlanguage : u16) -> u32); - MsiAdvertiseProductA(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), core::mem::transmute(lgidlanguage)) + MsiAdvertiseProductA(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), lgidlanguage) } #[inline] pub unsafe fn MsiAdvertiseProductExA(szpackagepath: P0, szscriptfilepath: P1, sztransforms: P2, lgidlanguage: u16, dwplatform: u32, dwoptions: u32) -> u32 @@ -402,7 +402,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiAdvertiseProductExA(szpackagepath : windows_core::PCSTR, szscriptfilepath : windows_core::PCSTR, sztransforms : windows_core::PCSTR, lgidlanguage : u16, dwplatform : u32, dwoptions : u32) -> u32); - MsiAdvertiseProductExA(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), core::mem::transmute(lgidlanguage), core::mem::transmute(dwplatform), core::mem::transmute(dwoptions)) + MsiAdvertiseProductExA(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), lgidlanguage, dwplatform, dwoptions) } #[inline] pub unsafe fn MsiAdvertiseProductExW(szpackagepath: P0, szscriptfilepath: P1, sztransforms: P2, lgidlanguage: u16, dwplatform: u32, dwoptions: u32) -> u32 @@ -412,7 +412,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiAdvertiseProductExW(szpackagepath : windows_core::PCWSTR, szscriptfilepath : windows_core::PCWSTR, sztransforms : windows_core::PCWSTR, lgidlanguage : u16, dwplatform : u32, dwoptions : u32) -> u32); - MsiAdvertiseProductExW(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), core::mem::transmute(lgidlanguage), core::mem::transmute(dwplatform), core::mem::transmute(dwoptions)) + MsiAdvertiseProductExW(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), lgidlanguage, dwplatform, dwoptions) } #[inline] pub unsafe fn MsiAdvertiseProductW(szpackagepath: P0, szscriptfilepath: P1, sztransforms: P2, lgidlanguage: u16) -> u32 @@ -422,7 +422,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiAdvertiseProductW(szpackagepath : windows_core::PCWSTR, szscriptfilepath : windows_core::PCWSTR, sztransforms : windows_core::PCWSTR, lgidlanguage : u16) -> u32); - MsiAdvertiseProductW(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), core::mem::transmute(lgidlanguage)) + MsiAdvertiseProductW(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), lgidlanguage) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -431,7 +431,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiAdvertiseScriptA(szscriptfile : windows_core::PCSTR, dwflags : u32, phregdata : *const super::Registry:: HKEY, fremoveitems : super::super::Foundation:: BOOL) -> u32); - MsiAdvertiseScriptA(szscriptfile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(phregdata.unwrap_or(core::mem::zeroed())), fremoveitems.into()) + MsiAdvertiseScriptA(szscriptfile.param().abi(), dwflags, core::mem::transmute(phregdata.unwrap_or(core::mem::zeroed())), fremoveitems.into()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -440,7 +440,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiAdvertiseScriptW(szscriptfile : windows_core::PCWSTR, dwflags : u32, phregdata : *const super::Registry:: HKEY, fremoveitems : super::super::Foundation:: BOOL) -> u32); - MsiAdvertiseScriptW(szscriptfile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(phregdata.unwrap_or(core::mem::zeroed())), fremoveitems.into()) + MsiAdvertiseScriptW(szscriptfile.param().abi(), dwflags, core::mem::transmute(phregdata.unwrap_or(core::mem::zeroed())), fremoveitems.into()) } #[inline] pub unsafe fn MsiApplyMultiplePatchesA(szpatchpackages: P0, szproductcode: P1, szpropertieslist: P2) -> u32 @@ -470,7 +470,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiApplyPatchA(szpatchpackage : windows_core::PCSTR, szinstallpackage : windows_core::PCSTR, einstalltype : INSTALLTYPE, szcommandline : windows_core::PCSTR) -> u32); - MsiApplyPatchA(szpatchpackage.param().abi(), szinstallpackage.param().abi(), core::mem::transmute(einstalltype), szcommandline.param().abi()) + MsiApplyPatchA(szpatchpackage.param().abi(), szinstallpackage.param().abi(), einstalltype, szcommandline.param().abi()) } #[inline] pub unsafe fn MsiApplyPatchW(szpatchpackage: P0, szinstallpackage: P1, einstalltype: INSTALLTYPE, szcommandline: P3) -> u32 @@ -480,7 +480,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiApplyPatchW(szpatchpackage : windows_core::PCWSTR, szinstallpackage : windows_core::PCWSTR, einstalltype : INSTALLTYPE, szcommandline : windows_core::PCWSTR) -> u32); - MsiApplyPatchW(szpatchpackage.param().abi(), szinstallpackage.param().abi(), core::mem::transmute(einstalltype), szcommandline.param().abi()) + MsiApplyPatchW(szpatchpackage.param().abi(), szinstallpackage.param().abi(), einstalltype, szcommandline.param().abi()) } #[inline] pub unsafe fn MsiBeginTransactionA(szname: P0, dwtransactionattributes: u32, phtransactionhandle: *mut MSIHANDLE, phchangeofownerevent: *mut super::super::Foundation::HANDLE) -> u32 @@ -488,7 +488,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiBeginTransactionA(szname : windows_core::PCSTR, dwtransactionattributes : u32, phtransactionhandle : *mut MSIHANDLE, phchangeofownerevent : *mut super::super::Foundation:: HANDLE) -> u32); - MsiBeginTransactionA(szname.param().abi(), core::mem::transmute(dwtransactionattributes), core::mem::transmute(phtransactionhandle), core::mem::transmute(phchangeofownerevent)) + MsiBeginTransactionA(szname.param().abi(), dwtransactionattributes, core::mem::transmute(phtransactionhandle), core::mem::transmute(phchangeofownerevent)) } #[inline] pub unsafe fn MsiBeginTransactionW(szname: P0, dwtransactionattributes: u32, phtransactionhandle: *mut MSIHANDLE, phchangeofownerevent: *mut super::super::Foundation::HANDLE) -> u32 @@ -496,7 +496,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiBeginTransactionW(szname : windows_core::PCWSTR, dwtransactionattributes : u32, phtransactionhandle : *mut MSIHANDLE, phchangeofownerevent : *mut super::super::Foundation:: HANDLE) -> u32); - MsiBeginTransactionW(szname.param().abi(), core::mem::transmute(dwtransactionattributes), core::mem::transmute(phtransactionhandle), core::mem::transmute(phchangeofownerevent)) + MsiBeginTransactionW(szname.param().abi(), dwtransactionattributes, core::mem::transmute(phtransactionhandle), core::mem::transmute(phchangeofownerevent)) } #[inline] pub unsafe fn MsiCloseAllHandles() -> u32 { @@ -506,7 +506,7 @@ pub unsafe fn MsiCloseAllHandles() -> u32 { #[inline] pub unsafe fn MsiCloseHandle(hany: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiCloseHandle(hany : MSIHANDLE) -> u32); - MsiCloseHandle(core::mem::transmute(hany)) + MsiCloseHandle(hany) } #[inline] pub unsafe fn MsiCollectUserInfoA(szproduct: P0) -> u32 @@ -531,7 +531,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureFeatureA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR, einstallstate : INSTALLSTATE) -> u32); - MsiConfigureFeatureA(szproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(einstallstate)) + MsiConfigureFeatureA(szproduct.param().abi(), szfeature.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiConfigureFeatureW(szproduct: P0, szfeature: P1, einstallstate: INSTALLSTATE) -> u32 @@ -540,7 +540,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureFeatureW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR, einstallstate : INSTALLSTATE) -> u32); - MsiConfigureFeatureW(szproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(einstallstate)) + MsiConfigureFeatureW(szproduct.param().abi(), szfeature.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiConfigureProductA(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE) -> u32 @@ -548,7 +548,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureProductA(szproduct : windows_core::PCSTR, iinstalllevel : INSTALLLEVEL, einstallstate : INSTALLSTATE) -> u32); - MsiConfigureProductA(szproduct.param().abi(), core::mem::transmute(iinstalllevel), core::mem::transmute(einstallstate)) + MsiConfigureProductA(szproduct.param().abi(), iinstalllevel, einstallstate) } #[inline] pub unsafe fn MsiConfigureProductExA(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE, szcommandline: P3) -> u32 @@ -557,7 +557,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureProductExA(szproduct : windows_core::PCSTR, iinstalllevel : INSTALLLEVEL, einstallstate : INSTALLSTATE, szcommandline : windows_core::PCSTR) -> u32); - MsiConfigureProductExA(szproduct.param().abi(), core::mem::transmute(iinstalllevel), core::mem::transmute(einstallstate), szcommandline.param().abi()) + MsiConfigureProductExA(szproduct.param().abi(), iinstalllevel, einstallstate, szcommandline.param().abi()) } #[inline] pub unsafe fn MsiConfigureProductExW(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE, szcommandline: P3) -> u32 @@ -566,7 +566,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureProductExW(szproduct : windows_core::PCWSTR, iinstalllevel : INSTALLLEVEL, einstallstate : INSTALLSTATE, szcommandline : windows_core::PCWSTR) -> u32); - MsiConfigureProductExW(szproduct.param().abi(), core::mem::transmute(iinstalllevel), core::mem::transmute(einstallstate), szcommandline.param().abi()) + MsiConfigureProductExW(szproduct.param().abi(), iinstalllevel, einstallstate, szcommandline.param().abi()) } #[inline] pub unsafe fn MsiConfigureProductW(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE) -> u32 @@ -574,12 +574,12 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureProductW(szproduct : windows_core::PCWSTR, iinstalllevel : INSTALLLEVEL, einstallstate : INSTALLSTATE) -> u32); - MsiConfigureProductW(szproduct.param().abi(), core::mem::transmute(iinstalllevel), core::mem::transmute(einstallstate)) + MsiConfigureProductW(szproduct.param().abi(), iinstalllevel, einstallstate) } #[inline] pub unsafe fn MsiCreateRecord(cparams: u32) -> MSIHANDLE { windows_targets::link!("msi.dll" "system" fn MsiCreateRecord(cparams : u32) -> MSIHANDLE); - MsiCreateRecord(core::mem::transmute(cparams)) + MsiCreateRecord(cparams) } #[inline] pub unsafe fn MsiCreateTransformSummaryInfoA(hdatabase: MSIHANDLE, hdatabasereference: MSIHANDLE, sztransformfile: P2, ierrorconditions: MSITRANSFORM_ERROR, ivalidation: MSITRANSFORM_VALIDATE) -> u32 @@ -587,7 +587,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiCreateTransformSummaryInfoA(hdatabase : MSIHANDLE, hdatabasereference : MSIHANDLE, sztransformfile : windows_core::PCSTR, ierrorconditions : MSITRANSFORM_ERROR, ivalidation : MSITRANSFORM_VALIDATE) -> u32); - MsiCreateTransformSummaryInfoA(core::mem::transmute(hdatabase), core::mem::transmute(hdatabasereference), sztransformfile.param().abi(), core::mem::transmute(ierrorconditions), core::mem::transmute(ivalidation)) + MsiCreateTransformSummaryInfoA(hdatabase, hdatabasereference, sztransformfile.param().abi(), ierrorconditions, ivalidation) } #[inline] pub unsafe fn MsiCreateTransformSummaryInfoW(hdatabase: MSIHANDLE, hdatabasereference: MSIHANDLE, sztransformfile: P2, ierrorconditions: MSITRANSFORM_ERROR, ivalidation: MSITRANSFORM_VALIDATE) -> u32 @@ -595,7 +595,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiCreateTransformSummaryInfoW(hdatabase : MSIHANDLE, hdatabasereference : MSIHANDLE, sztransformfile : windows_core::PCWSTR, ierrorconditions : MSITRANSFORM_ERROR, ivalidation : MSITRANSFORM_VALIDATE) -> u32); - MsiCreateTransformSummaryInfoW(core::mem::transmute(hdatabase), core::mem::transmute(hdatabasereference), sztransformfile.param().abi(), core::mem::transmute(ierrorconditions), core::mem::transmute(ivalidation)) + MsiCreateTransformSummaryInfoW(hdatabase, hdatabasereference, sztransformfile.param().abi(), ierrorconditions, ivalidation) } #[inline] pub unsafe fn MsiDatabaseApplyTransformA(hdatabase: MSIHANDLE, sztransformfile: P1, ierrorconditions: MSITRANSFORM_ERROR) -> u32 @@ -603,7 +603,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseApplyTransformA(hdatabase : MSIHANDLE, sztransformfile : windows_core::PCSTR, ierrorconditions : MSITRANSFORM_ERROR) -> u32); - MsiDatabaseApplyTransformA(core::mem::transmute(hdatabase), sztransformfile.param().abi(), core::mem::transmute(ierrorconditions)) + MsiDatabaseApplyTransformA(hdatabase, sztransformfile.param().abi(), ierrorconditions) } #[inline] pub unsafe fn MsiDatabaseApplyTransformW(hdatabase: MSIHANDLE, sztransformfile: P1, ierrorconditions: MSITRANSFORM_ERROR) -> u32 @@ -611,12 +611,12 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseApplyTransformW(hdatabase : MSIHANDLE, sztransformfile : windows_core::PCWSTR, ierrorconditions : MSITRANSFORM_ERROR) -> u32); - MsiDatabaseApplyTransformW(core::mem::transmute(hdatabase), sztransformfile.param().abi(), core::mem::transmute(ierrorconditions)) + MsiDatabaseApplyTransformW(hdatabase, sztransformfile.param().abi(), ierrorconditions) } #[inline] pub unsafe fn MsiDatabaseCommit(hdatabase: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiDatabaseCommit(hdatabase : MSIHANDLE) -> u32); - MsiDatabaseCommit(core::mem::transmute(hdatabase)) + MsiDatabaseCommit(hdatabase) } #[inline] pub unsafe fn MsiDatabaseExportA(hdatabase: MSIHANDLE, sztablename: P1, szfolderpath: P2, szfilename: P3) -> u32 @@ -626,7 +626,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseExportA(hdatabase : MSIHANDLE, sztablename : windows_core::PCSTR, szfolderpath : windows_core::PCSTR, szfilename : windows_core::PCSTR) -> u32); - MsiDatabaseExportA(core::mem::transmute(hdatabase), sztablename.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) + MsiDatabaseExportA(hdatabase, sztablename.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseExportW(hdatabase: MSIHANDLE, sztablename: P1, szfolderpath: P2, szfilename: P3) -> u32 @@ -636,7 +636,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseExportW(hdatabase : MSIHANDLE, sztablename : windows_core::PCWSTR, szfolderpath : windows_core::PCWSTR, szfilename : windows_core::PCWSTR) -> u32); - MsiDatabaseExportW(core::mem::transmute(hdatabase), sztablename.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) + MsiDatabaseExportW(hdatabase, sztablename.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseGenerateTransformA(hdatabase: MSIHANDLE, hdatabasereference: MSIHANDLE, sztransformfile: P2, ireserved1: i32, ireserved2: i32) -> u32 @@ -644,7 +644,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseGenerateTransformA(hdatabase : MSIHANDLE, hdatabasereference : MSIHANDLE, sztransformfile : windows_core::PCSTR, ireserved1 : i32, ireserved2 : i32) -> u32); - MsiDatabaseGenerateTransformA(core::mem::transmute(hdatabase), core::mem::transmute(hdatabasereference), sztransformfile.param().abi(), core::mem::transmute(ireserved1), core::mem::transmute(ireserved2)) + MsiDatabaseGenerateTransformA(hdatabase, hdatabasereference, sztransformfile.param().abi(), ireserved1, ireserved2) } #[inline] pub unsafe fn MsiDatabaseGenerateTransformW(hdatabase: MSIHANDLE, hdatabasereference: MSIHANDLE, sztransformfile: P2, ireserved1: i32, ireserved2: i32) -> u32 @@ -652,7 +652,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseGenerateTransformW(hdatabase : MSIHANDLE, hdatabasereference : MSIHANDLE, sztransformfile : windows_core::PCWSTR, ireserved1 : i32, ireserved2 : i32) -> u32); - MsiDatabaseGenerateTransformW(core::mem::transmute(hdatabase), core::mem::transmute(hdatabasereference), sztransformfile.param().abi(), core::mem::transmute(ireserved1), core::mem::transmute(ireserved2)) + MsiDatabaseGenerateTransformW(hdatabase, hdatabasereference, sztransformfile.param().abi(), ireserved1, ireserved2) } #[inline] pub unsafe fn MsiDatabaseGetPrimaryKeysA(hdatabase: MSIHANDLE, sztablename: P1, phrecord: *mut MSIHANDLE) -> u32 @@ -660,7 +660,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseGetPrimaryKeysA(hdatabase : MSIHANDLE, sztablename : windows_core::PCSTR, phrecord : *mut MSIHANDLE) -> u32); - MsiDatabaseGetPrimaryKeysA(core::mem::transmute(hdatabase), sztablename.param().abi(), core::mem::transmute(phrecord)) + MsiDatabaseGetPrimaryKeysA(hdatabase, sztablename.param().abi(), core::mem::transmute(phrecord)) } #[inline] pub unsafe fn MsiDatabaseGetPrimaryKeysW(hdatabase: MSIHANDLE, sztablename: P1, phrecord: *mut MSIHANDLE) -> u32 @@ -668,7 +668,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseGetPrimaryKeysW(hdatabase : MSIHANDLE, sztablename : windows_core::PCWSTR, phrecord : *mut MSIHANDLE) -> u32); - MsiDatabaseGetPrimaryKeysW(core::mem::transmute(hdatabase), sztablename.param().abi(), core::mem::transmute(phrecord)) + MsiDatabaseGetPrimaryKeysW(hdatabase, sztablename.param().abi(), core::mem::transmute(phrecord)) } #[inline] pub unsafe fn MsiDatabaseImportA(hdatabase: MSIHANDLE, szfolderpath: P1, szfilename: P2) -> u32 @@ -677,7 +677,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseImportA(hdatabase : MSIHANDLE, szfolderpath : windows_core::PCSTR, szfilename : windows_core::PCSTR) -> u32); - MsiDatabaseImportA(core::mem::transmute(hdatabase), szfolderpath.param().abi(), szfilename.param().abi()) + MsiDatabaseImportA(hdatabase, szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseImportW(hdatabase: MSIHANDLE, szfolderpath: P1, szfilename: P2) -> u32 @@ -686,7 +686,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseImportW(hdatabase : MSIHANDLE, szfolderpath : windows_core::PCWSTR, szfilename : windows_core::PCWSTR) -> u32); - MsiDatabaseImportW(core::mem::transmute(hdatabase), szfolderpath.param().abi(), szfilename.param().abi()) + MsiDatabaseImportW(hdatabase, szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseIsTablePersistentA(hdatabase: MSIHANDLE, sztablename: P1) -> MSICONDITION @@ -694,7 +694,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseIsTablePersistentA(hdatabase : MSIHANDLE, sztablename : windows_core::PCSTR) -> MSICONDITION); - MsiDatabaseIsTablePersistentA(core::mem::transmute(hdatabase), sztablename.param().abi()) + MsiDatabaseIsTablePersistentA(hdatabase, sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseIsTablePersistentW(hdatabase: MSIHANDLE, sztablename: P1) -> MSICONDITION @@ -702,7 +702,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseIsTablePersistentW(hdatabase : MSIHANDLE, sztablename : windows_core::PCWSTR) -> MSICONDITION); - MsiDatabaseIsTablePersistentW(core::mem::transmute(hdatabase), sztablename.param().abi()) + MsiDatabaseIsTablePersistentW(hdatabase, sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseMergeA(hdatabase: MSIHANDLE, hdatabasemerge: MSIHANDLE, sztablename: P2) -> u32 @@ -710,7 +710,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseMergeA(hdatabase : MSIHANDLE, hdatabasemerge : MSIHANDLE, sztablename : windows_core::PCSTR) -> u32); - MsiDatabaseMergeA(core::mem::transmute(hdatabase), core::mem::transmute(hdatabasemerge), sztablename.param().abi()) + MsiDatabaseMergeA(hdatabase, hdatabasemerge, sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseMergeW(hdatabase: MSIHANDLE, hdatabasemerge: MSIHANDLE, sztablename: P2) -> u32 @@ -718,7 +718,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseMergeW(hdatabase : MSIHANDLE, hdatabasemerge : MSIHANDLE, sztablename : windows_core::PCWSTR) -> u32); - MsiDatabaseMergeW(core::mem::transmute(hdatabase), core::mem::transmute(hdatabasemerge), sztablename.param().abi()) + MsiDatabaseMergeW(hdatabase, hdatabasemerge, sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseOpenViewA(hdatabase: MSIHANDLE, szquery: P1, phview: *mut MSIHANDLE) -> u32 @@ -726,7 +726,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseOpenViewA(hdatabase : MSIHANDLE, szquery : windows_core::PCSTR, phview : *mut MSIHANDLE) -> u32); - MsiDatabaseOpenViewA(core::mem::transmute(hdatabase), szquery.param().abi(), core::mem::transmute(phview)) + MsiDatabaseOpenViewA(hdatabase, szquery.param().abi(), core::mem::transmute(phview)) } #[inline] pub unsafe fn MsiDatabaseOpenViewW(hdatabase: MSIHANDLE, szquery: P1, phview: *mut MSIHANDLE) -> u32 @@ -734,7 +734,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseOpenViewW(hdatabase : MSIHANDLE, szquery : windows_core::PCWSTR, phview : *mut MSIHANDLE) -> u32); - MsiDatabaseOpenViewW(core::mem::transmute(hdatabase), szquery.param().abi(), core::mem::transmute(phview)) + MsiDatabaseOpenViewW(hdatabase, szquery.param().abi(), core::mem::transmute(phview)) } #[inline] pub unsafe fn MsiDetermineApplicablePatchesA(szproductpackagepath: P0, ppatchinfo: &mut [MSIPATCHSEQUENCEINFOA]) -> u32 @@ -759,7 +759,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDeterminePatchSequenceA(szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, cpatchinfo : u32, ppatchinfo : *mut MSIPATCHSEQUENCEINFOA) -> u32); - MsiDeterminePatchSequenceA(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) + MsiDeterminePatchSequenceA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) } #[inline] pub unsafe fn MsiDeterminePatchSequenceW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, ppatchinfo: &mut [MSIPATCHSEQUENCEINFOW]) -> u32 @@ -768,7 +768,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDeterminePatchSequenceW(szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, cpatchinfo : u32, ppatchinfo : *mut MSIPATCHSEQUENCEINFOW) -> u32); - MsiDeterminePatchSequenceW(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) + MsiDeterminePatchSequenceW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) } #[inline] pub unsafe fn MsiDoActionA(hinstall: MSIHANDLE, szaction: P1) -> u32 @@ -776,7 +776,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDoActionA(hinstall : MSIHANDLE, szaction : windows_core::PCSTR) -> u32); - MsiDoActionA(core::mem::transmute(hinstall), szaction.param().abi()) + MsiDoActionA(hinstall, szaction.param().abi()) } #[inline] pub unsafe fn MsiDoActionW(hinstall: MSIHANDLE, szaction: P1) -> u32 @@ -784,7 +784,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDoActionW(hinstall : MSIHANDLE, szaction : windows_core::PCWSTR) -> u32); - MsiDoActionW(core::mem::transmute(hinstall), szaction.param().abi()) + MsiDoActionW(hinstall, szaction.param().abi()) } #[inline] pub unsafe fn MsiEnableLogA(dwlogmode: INSTALLLOGMODE, szlogfile: P1, dwlogattributes: u32) -> u32 @@ -792,7 +792,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnableLogA(dwlogmode : u32, szlogfile : windows_core::PCSTR, dwlogattributes : u32) -> u32); - MsiEnableLogA(dwlogmode.0 as _, szlogfile.param().abi(), core::mem::transmute(dwlogattributes)) + MsiEnableLogA(dwlogmode.0 as _, szlogfile.param().abi(), dwlogattributes) } #[inline] pub unsafe fn MsiEnableLogW(dwlogmode: INSTALLLOGMODE, szlogfile: P1, dwlogattributes: u32) -> u32 @@ -800,17 +800,17 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnableLogW(dwlogmode : u32, szlogfile : windows_core::PCWSTR, dwlogattributes : u32) -> u32); - MsiEnableLogW(dwlogmode.0 as _, szlogfile.param().abi(), core::mem::transmute(dwlogattributes)) + MsiEnableLogW(dwlogmode.0 as _, szlogfile.param().abi(), dwlogattributes) } #[inline] pub unsafe fn MsiEnableUIPreview(hdatabase: MSIHANDLE, phpreview: *mut MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiEnableUIPreview(hdatabase : MSIHANDLE, phpreview : *mut MSIHANDLE) -> u32); - MsiEnableUIPreview(core::mem::transmute(hdatabase), core::mem::transmute(phpreview)) + MsiEnableUIPreview(hdatabase, core::mem::transmute(phpreview)) } #[inline] pub unsafe fn MsiEndTransaction(dwtransactionstate: MSITRANSACTIONSTATE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiEndTransaction(dwtransactionstate : MSITRANSACTIONSTATE) -> u32); - MsiEndTransaction(core::mem::transmute(dwtransactionstate)) + MsiEndTransaction(dwtransactionstate) } #[inline] pub unsafe fn MsiEnumClientsA(szcomponent: P0, iproductindex: u32, lpproductbuf: windows_core::PSTR) -> u32 @@ -818,7 +818,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumClientsA(szcomponent : windows_core::PCSTR, iproductindex : u32, lpproductbuf : windows_core::PSTR) -> u32); - MsiEnumClientsA(szcomponent.param().abi(), core::mem::transmute(iproductindex), core::mem::transmute(lpproductbuf)) + MsiEnumClientsA(szcomponent.param().abi(), iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumClientsExA(szcomponent: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwproductindex: u32, szproductbuf: Option<&mut [u8; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: Option, pcchsid: Option<*mut u32>) -> u32 @@ -827,7 +827,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumClientsExA(szcomponent : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : u32, dwproductindex : u32, szproductbuf : windows_core::PSTR, pdwinstalledcontext : *mut MSIINSTALLCONTEXT, szsid : windows_core::PSTR, pcchsid : *mut u32) -> u32); - MsiEnumClientsExA(szcomponent.param().abi(), szusersid.param().abi(), dwcontext.0 as _, core::mem::transmute(dwproductindex), core::mem::transmute(szproductbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) + MsiEnumClientsExA(szcomponent.param().abi(), szusersid.param().abi(), dwcontext.0 as _, dwproductindex, core::mem::transmute(szproductbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumClientsExW(szcomponent: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwproductindex: u32, szproductbuf: Option<&mut [u16; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: Option, pcchsid: Option<*mut u32>) -> u32 @@ -836,7 +836,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumClientsExW(szcomponent : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : u32, dwproductindex : u32, szproductbuf : windows_core::PWSTR, pdwinstalledcontext : *mut MSIINSTALLCONTEXT, szsid : windows_core::PWSTR, pcchsid : *mut u32) -> u32); - MsiEnumClientsExW(szcomponent.param().abi(), szusersid.param().abi(), dwcontext.0 as _, core::mem::transmute(dwproductindex), core::mem::transmute(szproductbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) + MsiEnumClientsExW(szcomponent.param().abi(), szusersid.param().abi(), dwcontext.0 as _, dwproductindex, core::mem::transmute(szproductbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumClientsW(szcomponent: P0, iproductindex: u32, lpproductbuf: windows_core::PWSTR) -> u32 @@ -844,7 +844,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumClientsW(szcomponent : windows_core::PCWSTR, iproductindex : u32, lpproductbuf : windows_core::PWSTR) -> u32); - MsiEnumClientsW(szcomponent.param().abi(), core::mem::transmute(iproductindex), core::mem::transmute(lpproductbuf)) + MsiEnumClientsW(szcomponent.param().abi(), iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumComponentCostsA(hinstall: MSIHANDLE, szcomponent: P1, dwindex: u32, istate: INSTALLSTATE, szdrivebuf: windows_core::PSTR, pcchdrivebuf: *mut u32, picost: *mut i32, pitempcost: *mut i32) -> u32 @@ -852,7 +852,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentCostsA(hinstall : MSIHANDLE, szcomponent : windows_core::PCSTR, dwindex : u32, istate : INSTALLSTATE, szdrivebuf : windows_core::PSTR, pcchdrivebuf : *mut u32, picost : *mut i32, pitempcost : *mut i32) -> u32); - MsiEnumComponentCostsA(core::mem::transmute(hinstall), szcomponent.param().abi(), core::mem::transmute(dwindex), core::mem::transmute(istate), core::mem::transmute(szdrivebuf), core::mem::transmute(pcchdrivebuf), core::mem::transmute(picost), core::mem::transmute(pitempcost)) + MsiEnumComponentCostsA(hinstall, szcomponent.param().abi(), dwindex, istate, core::mem::transmute(szdrivebuf), core::mem::transmute(pcchdrivebuf), core::mem::transmute(picost), core::mem::transmute(pitempcost)) } #[inline] pub unsafe fn MsiEnumComponentCostsW(hinstall: MSIHANDLE, szcomponent: P1, dwindex: u32, istate: INSTALLSTATE, szdrivebuf: windows_core::PWSTR, pcchdrivebuf: *mut u32, picost: *mut i32, pitempcost: *mut i32) -> u32 @@ -860,7 +860,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentCostsW(hinstall : MSIHANDLE, szcomponent : windows_core::PCWSTR, dwindex : u32, istate : INSTALLSTATE, szdrivebuf : windows_core::PWSTR, pcchdrivebuf : *mut u32, picost : *mut i32, pitempcost : *mut i32) -> u32); - MsiEnumComponentCostsW(core::mem::transmute(hinstall), szcomponent.param().abi(), core::mem::transmute(dwindex), core::mem::transmute(istate), core::mem::transmute(szdrivebuf), core::mem::transmute(pcchdrivebuf), core::mem::transmute(picost), core::mem::transmute(pitempcost)) + MsiEnumComponentCostsW(hinstall, szcomponent.param().abi(), dwindex, istate, core::mem::transmute(szdrivebuf), core::mem::transmute(pcchdrivebuf), core::mem::transmute(picost), core::mem::transmute(pitempcost)) } #[inline] pub unsafe fn MsiEnumComponentQualifiersA(szcomponent: P0, iindex: u32, lpqualifierbuf: windows_core::PSTR, pcchqualifierbuf: *mut u32, lpapplicationdatabuf: Option, pcchapplicationdatabuf: Option<*mut u32>) -> u32 @@ -868,7 +868,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentQualifiersA(szcomponent : windows_core::PCSTR, iindex : u32, lpqualifierbuf : windows_core::PSTR, pcchqualifierbuf : *mut u32, lpapplicationdatabuf : windows_core::PSTR, pcchapplicationdatabuf : *mut u32) -> u32); - MsiEnumComponentQualifiersA(szcomponent.param().abi(), core::mem::transmute(iindex), core::mem::transmute(lpqualifierbuf), core::mem::transmute(pcchqualifierbuf), core::mem::transmute(lpapplicationdatabuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(core::mem::zeroed()))) + MsiEnumComponentQualifiersA(szcomponent.param().abi(), iindex, core::mem::transmute(lpqualifierbuf), core::mem::transmute(pcchqualifierbuf), core::mem::transmute(lpapplicationdatabuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumComponentQualifiersW(szcomponent: P0, iindex: u32, lpqualifierbuf: windows_core::PWSTR, pcchqualifierbuf: *mut u32, lpapplicationdatabuf: Option, pcchapplicationdatabuf: Option<*mut u32>) -> u32 @@ -876,12 +876,12 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentQualifiersW(szcomponent : windows_core::PCWSTR, iindex : u32, lpqualifierbuf : windows_core::PWSTR, pcchqualifierbuf : *mut u32, lpapplicationdatabuf : windows_core::PWSTR, pcchapplicationdatabuf : *mut u32) -> u32); - MsiEnumComponentQualifiersW(szcomponent.param().abi(), core::mem::transmute(iindex), core::mem::transmute(lpqualifierbuf), core::mem::transmute(pcchqualifierbuf), core::mem::transmute(lpapplicationdatabuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(core::mem::zeroed()))) + MsiEnumComponentQualifiersW(szcomponent.param().abi(), iindex, core::mem::transmute(lpqualifierbuf), core::mem::transmute(pcchqualifierbuf), core::mem::transmute(lpapplicationdatabuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumComponentsA(icomponentindex: u32, lpcomponentbuf: windows_core::PSTR) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentsA(icomponentindex : u32, lpcomponentbuf : windows_core::PSTR) -> u32); - MsiEnumComponentsA(core::mem::transmute(icomponentindex), core::mem::transmute(lpcomponentbuf)) + MsiEnumComponentsA(icomponentindex, core::mem::transmute(lpcomponentbuf)) } #[inline] pub unsafe fn MsiEnumComponentsExA(szusersid: P0, dwcontext: u32, dwindex: u32, szinstalledcomponentcode: Option<&mut [u8; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: Option, pcchsid: Option<*mut u32>) -> u32 @@ -889,7 +889,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentsExA(szusersid : windows_core::PCSTR, dwcontext : u32, dwindex : u32, szinstalledcomponentcode : windows_core::PSTR, pdwinstalledcontext : *mut MSIINSTALLCONTEXT, szsid : windows_core::PSTR, pcchsid : *mut u32) -> u32); - MsiEnumComponentsExA(szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwindex), core::mem::transmute(szinstalledcomponentcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) + MsiEnumComponentsExA(szusersid.param().abi(), dwcontext, dwindex, core::mem::transmute(szinstalledcomponentcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumComponentsExW(szusersid: P0, dwcontext: u32, dwindex: u32, szinstalledcomponentcode: Option<&mut [u16; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: Option, pcchsid: Option<*mut u32>) -> u32 @@ -897,12 +897,12 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentsExW(szusersid : windows_core::PCWSTR, dwcontext : u32, dwindex : u32, szinstalledcomponentcode : windows_core::PWSTR, pdwinstalledcontext : *mut MSIINSTALLCONTEXT, szsid : windows_core::PWSTR, pcchsid : *mut u32) -> u32); - MsiEnumComponentsExW(szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwindex), core::mem::transmute(szinstalledcomponentcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) + MsiEnumComponentsExW(szusersid.param().abi(), dwcontext, dwindex, core::mem::transmute(szinstalledcomponentcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumComponentsW(icomponentindex: u32, lpcomponentbuf: windows_core::PWSTR) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiEnumComponentsW(icomponentindex : u32, lpcomponentbuf : windows_core::PWSTR) -> u32); - MsiEnumComponentsW(core::mem::transmute(icomponentindex), core::mem::transmute(lpcomponentbuf)) + MsiEnumComponentsW(icomponentindex, core::mem::transmute(lpcomponentbuf)) } #[inline] pub unsafe fn MsiEnumFeaturesA(szproduct: P0, ifeatureindex: u32, lpfeaturebuf: windows_core::PSTR, lpparentbuf: Option) -> u32 @@ -910,7 +910,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumFeaturesA(szproduct : windows_core::PCSTR, ifeatureindex : u32, lpfeaturebuf : windows_core::PSTR, lpparentbuf : windows_core::PSTR) -> u32); - MsiEnumFeaturesA(szproduct.param().abi(), core::mem::transmute(ifeatureindex), core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf.unwrap_or(core::mem::zeroed()))) + MsiEnumFeaturesA(szproduct.param().abi(), ifeatureindex, core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumFeaturesW(szproduct: P0, ifeatureindex: u32, lpfeaturebuf: windows_core::PWSTR, lpparentbuf: Option) -> u32 @@ -918,7 +918,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumFeaturesW(szproduct : windows_core::PCWSTR, ifeatureindex : u32, lpfeaturebuf : windows_core::PWSTR, lpparentbuf : windows_core::PWSTR) -> u32); - MsiEnumFeaturesW(szproduct.param().abi(), core::mem::transmute(ifeatureindex), core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf.unwrap_or(core::mem::zeroed()))) + MsiEnumFeaturesW(szproduct.param().abi(), ifeatureindex, core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumPatchesA(szproduct: P0, ipatchindex: u32, lppatchbuf: windows_core::PSTR, lptransformsbuf: windows_core::PSTR, pcchtransformsbuf: *mut u32) -> u32 @@ -926,7 +926,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumPatchesA(szproduct : windows_core::PCSTR, ipatchindex : u32, lppatchbuf : windows_core::PSTR, lptransformsbuf : windows_core::PSTR, pcchtransformsbuf : *mut u32) -> u32); - MsiEnumPatchesA(szproduct.param().abi(), core::mem::transmute(ipatchindex), core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), core::mem::transmute(pcchtransformsbuf)) + MsiEnumPatchesA(szproduct.param().abi(), ipatchindex, core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), core::mem::transmute(pcchtransformsbuf)) } #[inline] pub unsafe fn MsiEnumPatchesExA(szproductcode: P0, szusersid: P1, dwcontext: u32, dwfilter: u32, dwindex: u32, szpatchcode: Option<&mut [u8; 39]>, sztargetproductcode: Option<&mut [u8; 39]>, pdwtargetproductcontext: Option<*mut MSIINSTALLCONTEXT>, sztargetusersid: Option, pcchtargetusersid: Option<*mut u32>) -> u32 @@ -938,9 +938,9 @@ where MsiEnumPatchesExA( szproductcode.param().abi(), szusersid.param().abi(), - core::mem::transmute(dwcontext), - core::mem::transmute(dwfilter), - core::mem::transmute(dwindex), + dwcontext, + dwfilter, + dwindex, core::mem::transmute(szpatchcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(sztargetproductcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwtargetproductcontext.unwrap_or(core::mem::zeroed())), @@ -958,9 +958,9 @@ where MsiEnumPatchesExW( szproductcode.param().abi(), szusersid.param().abi(), - core::mem::transmute(dwcontext), - core::mem::transmute(dwfilter), - core::mem::transmute(dwindex), + dwcontext, + dwfilter, + dwindex, core::mem::transmute(szpatchcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(sztargetproductcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwtargetproductcontext.unwrap_or(core::mem::zeroed())), @@ -974,12 +974,12 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumPatchesW(szproduct : windows_core::PCWSTR, ipatchindex : u32, lppatchbuf : windows_core::PWSTR, lptransformsbuf : windows_core::PWSTR, pcchtransformsbuf : *mut u32) -> u32); - MsiEnumPatchesW(szproduct.param().abi(), core::mem::transmute(ipatchindex), core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), core::mem::transmute(pcchtransformsbuf)) + MsiEnumPatchesW(szproduct.param().abi(), ipatchindex, core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), core::mem::transmute(pcchtransformsbuf)) } #[inline] pub unsafe fn MsiEnumProductsA(iproductindex: u32, lpproductbuf: windows_core::PSTR) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiEnumProductsA(iproductindex : u32, lpproductbuf : windows_core::PSTR) -> u32); - MsiEnumProductsA(core::mem::transmute(iproductindex), core::mem::transmute(lpproductbuf)) + MsiEnumProductsA(iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumProductsExA(szproductcode: P0, szusersid: P1, dwcontext: u32, dwindex: u32, szinstalledproductcode: Option<&mut [u8; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: Option, pcchsid: Option<*mut u32>) -> u32 @@ -988,7 +988,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumProductsExA(szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : u32, dwindex : u32, szinstalledproductcode : windows_core::PSTR, pdwinstalledcontext : *mut MSIINSTALLCONTEXT, szsid : windows_core::PSTR, pcchsid : *mut u32) -> u32); - MsiEnumProductsExA(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwindex), core::mem::transmute(szinstalledproductcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) + MsiEnumProductsExA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, dwindex, core::mem::transmute(szinstalledproductcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumProductsExW(szproductcode: P0, szusersid: P1, dwcontext: u32, dwindex: u32, szinstalledproductcode: Option<&mut [u16; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: Option, pcchsid: Option<*mut u32>) -> u32 @@ -997,12 +997,12 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumProductsExW(szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : u32, dwindex : u32, szinstalledproductcode : windows_core::PWSTR, pdwinstalledcontext : *mut MSIINSTALLCONTEXT, szsid : windows_core::PWSTR, pcchsid : *mut u32) -> u32); - MsiEnumProductsExW(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwindex), core::mem::transmute(szinstalledproductcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) + MsiEnumProductsExW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, dwindex, core::mem::transmute(szinstalledproductcode.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pdwinstalledcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(szsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiEnumProductsW(iproductindex: u32, lpproductbuf: windows_core::PWSTR) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiEnumProductsW(iproductindex : u32, lpproductbuf : windows_core::PWSTR) -> u32); - MsiEnumProductsW(core::mem::transmute(iproductindex), core::mem::transmute(lpproductbuf)) + MsiEnumProductsW(iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumRelatedProductsA(lpupgradecode: P0, dwreserved: Option, iproductindex: u32, lpproductbuf: windows_core::PSTR) -> u32 @@ -1010,7 +1010,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumRelatedProductsA(lpupgradecode : windows_core::PCSTR, dwreserved : u32, iproductindex : u32, lpproductbuf : windows_core::PSTR) -> u32); - MsiEnumRelatedProductsA(lpupgradecode.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(iproductindex), core::mem::transmute(lpproductbuf)) + MsiEnumRelatedProductsA(lpupgradecode.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumRelatedProductsW(lpupgradecode: P0, dwreserved: Option, iproductindex: u32, lpproductbuf: windows_core::PWSTR) -> u32 @@ -1018,7 +1018,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumRelatedProductsW(lpupgradecode : windows_core::PCWSTR, dwreserved : u32, iproductindex : u32, lpproductbuf : windows_core::PWSTR) -> u32); - MsiEnumRelatedProductsW(lpupgradecode.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(iproductindex), core::mem::transmute(lpproductbuf)) + MsiEnumRelatedProductsW(lpupgradecode.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEvaluateConditionA(hinstall: MSIHANDLE, szcondition: P1) -> MSICONDITION @@ -1026,7 +1026,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEvaluateConditionA(hinstall : MSIHANDLE, szcondition : windows_core::PCSTR) -> MSICONDITION); - MsiEvaluateConditionA(core::mem::transmute(hinstall), szcondition.param().abi()) + MsiEvaluateConditionA(hinstall, szcondition.param().abi()) } #[inline] pub unsafe fn MsiEvaluateConditionW(hinstall: MSIHANDLE, szcondition: P1) -> MSICONDITION @@ -1034,7 +1034,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEvaluateConditionW(hinstall : MSIHANDLE, szcondition : windows_core::PCWSTR) -> MSICONDITION); - MsiEvaluateConditionW(core::mem::transmute(hinstall), szcondition.param().abi()) + MsiEvaluateConditionW(hinstall, szcondition.param().abi()) } #[inline] pub unsafe fn MsiExtractPatchXMLDataA(szpatchpath: P0, dwreserved: Option, szxmldata: Option, pcchxmldata: Option<*mut u32>) -> u32 @@ -1055,17 +1055,17 @@ where #[inline] pub unsafe fn MsiFormatRecordA(hinstall: MSIHANDLE, hrecord: MSIHANDLE, szresultbuf: Option, pcchresultbuf: Option<*mut u32>) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiFormatRecordA(hinstall : MSIHANDLE, hrecord : MSIHANDLE, szresultbuf : windows_core::PSTR, pcchresultbuf : *mut u32) -> u32); - MsiFormatRecordA(core::mem::transmute(hinstall), core::mem::transmute(hrecord), core::mem::transmute(szresultbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchresultbuf.unwrap_or(core::mem::zeroed()))) + MsiFormatRecordA(hinstall, hrecord, core::mem::transmute(szresultbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchresultbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiFormatRecordW(hinstall: MSIHANDLE, hrecord: MSIHANDLE, szresultbuf: Option, pcchresultbuf: Option<*mut u32>) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiFormatRecordW(hinstall : MSIHANDLE, hrecord : MSIHANDLE, szresultbuf : windows_core::PWSTR, pcchresultbuf : *mut u32) -> u32); - MsiFormatRecordW(core::mem::transmute(hinstall), core::mem::transmute(hrecord), core::mem::transmute(szresultbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchresultbuf.unwrap_or(core::mem::zeroed()))) + MsiFormatRecordW(hinstall, hrecord, core::mem::transmute(szresultbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchresultbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetActiveDatabase(hinstall: MSIHANDLE) -> MSIHANDLE { windows_targets::link!("msi.dll" "system" fn MsiGetActiveDatabase(hinstall : MSIHANDLE) -> MSIHANDLE); - MsiGetActiveDatabase(core::mem::transmute(hinstall)) + MsiGetActiveDatabase(hinstall) } #[inline] pub unsafe fn MsiGetComponentPathA(szproduct: P0, szcomponent: P1, lppathbuf: Option, pcchbuf: Option<*mut u32>) -> INSTALLSTATE @@ -1111,7 +1111,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetComponentStateA(hinstall : MSIHANDLE, szcomponent : windows_core::PCSTR, piinstalled : *mut INSTALLSTATE, piaction : *mut INSTALLSTATE) -> u32); - MsiGetComponentStateA(core::mem::transmute(hinstall), szcomponent.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) + MsiGetComponentStateA(hinstall, szcomponent.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) } #[inline] pub unsafe fn MsiGetComponentStateW(hinstall: MSIHANDLE, szcomponent: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 @@ -1119,12 +1119,12 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetComponentStateW(hinstall : MSIHANDLE, szcomponent : windows_core::PCWSTR, piinstalled : *mut INSTALLSTATE, piaction : *mut INSTALLSTATE) -> u32); - MsiGetComponentStateW(core::mem::transmute(hinstall), szcomponent.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) + MsiGetComponentStateW(hinstall, szcomponent.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) } #[inline] pub unsafe fn MsiGetDatabaseState(hdatabase: MSIHANDLE) -> MSIDBSTATE { windows_targets::link!("msi.dll" "system" fn MsiGetDatabaseState(hdatabase : MSIHANDLE) -> MSIDBSTATE); - MsiGetDatabaseState(core::mem::transmute(hdatabase)) + MsiGetDatabaseState(hdatabase) } #[inline] pub unsafe fn MsiGetFeatureCostA(hinstall: MSIHANDLE, szfeature: P1, icosttree: MSICOSTTREE, istate: INSTALLSTATE, picost: *mut i32) -> u32 @@ -1132,7 +1132,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureCostA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, icosttree : MSICOSTTREE, istate : INSTALLSTATE, picost : *mut i32) -> u32); - MsiGetFeatureCostA(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(icosttree), core::mem::transmute(istate), core::mem::transmute(picost)) + MsiGetFeatureCostA(hinstall, szfeature.param().abi(), icosttree, istate, core::mem::transmute(picost)) } #[inline] pub unsafe fn MsiGetFeatureCostW(hinstall: MSIHANDLE, szfeature: P1, icosttree: MSICOSTTREE, istate: INSTALLSTATE, picost: *mut i32) -> u32 @@ -1140,7 +1140,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureCostW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, icosttree : MSICOSTTREE, istate : INSTALLSTATE, picost : *mut i32) -> u32); - MsiGetFeatureCostW(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(icosttree), core::mem::transmute(istate), core::mem::transmute(picost)) + MsiGetFeatureCostW(hinstall, szfeature.param().abi(), icosttree, istate, core::mem::transmute(picost)) } #[inline] pub unsafe fn MsiGetFeatureInfoA(hproduct: MSIHANDLE, szfeature: P1, lpattributes: Option<*mut u32>, lptitlebuf: Option, pcchtitlebuf: Option<*mut u32>, lphelpbuf: Option, pcchhelpbuf: Option<*mut u32>) -> u32 @@ -1148,7 +1148,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureInfoA(hproduct : MSIHANDLE, szfeature : windows_core::PCSTR, lpattributes : *mut u32, lptitlebuf : windows_core::PSTR, pcchtitlebuf : *mut u32, lphelpbuf : windows_core::PSTR, pcchhelpbuf : *mut u32) -> u32); - MsiGetFeatureInfoA(core::mem::transmute(hproduct), szfeature.param().abi(), core::mem::transmute(lpattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchtitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphelpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchhelpbuf.unwrap_or(core::mem::zeroed()))) + MsiGetFeatureInfoA(hproduct, szfeature.param().abi(), core::mem::transmute(lpattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchtitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphelpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchhelpbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetFeatureInfoW(hproduct: MSIHANDLE, szfeature: P1, lpattributes: Option<*mut u32>, lptitlebuf: Option, pcchtitlebuf: Option<*mut u32>, lphelpbuf: Option, pcchhelpbuf: Option<*mut u32>) -> u32 @@ -1156,7 +1156,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureInfoW(hproduct : MSIHANDLE, szfeature : windows_core::PCWSTR, lpattributes : *mut u32, lptitlebuf : windows_core::PWSTR, pcchtitlebuf : *mut u32, lphelpbuf : windows_core::PWSTR, pcchhelpbuf : *mut u32) -> u32); - MsiGetFeatureInfoW(core::mem::transmute(hproduct), szfeature.param().abi(), core::mem::transmute(lpattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchtitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphelpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchhelpbuf.unwrap_or(core::mem::zeroed()))) + MsiGetFeatureInfoW(hproduct, szfeature.param().abi(), core::mem::transmute(lpattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchtitlebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(lphelpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchhelpbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetFeatureStateA(hinstall: MSIHANDLE, szfeature: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 @@ -1164,7 +1164,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureStateA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, piinstalled : *mut INSTALLSTATE, piaction : *mut INSTALLSTATE) -> u32); - MsiGetFeatureStateA(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) + MsiGetFeatureStateA(hinstall, szfeature.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) } #[inline] pub unsafe fn MsiGetFeatureStateW(hinstall: MSIHANDLE, szfeature: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 @@ -1172,7 +1172,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureStateW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, piinstalled : *mut INSTALLSTATE, piaction : *mut INSTALLSTATE) -> u32); - MsiGetFeatureStateW(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) + MsiGetFeatureStateW(hinstall, szfeature.param().abi(), core::mem::transmute(piinstalled), core::mem::transmute(piaction)) } #[inline] pub unsafe fn MsiGetFeatureUsageA(szproduct: P0, szfeature: P1, pdwusecount: Option<*mut u32>, pwdateused: Option<*mut u16>) -> u32 @@ -1198,7 +1198,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureValidStatesA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, lpinstallstates : *mut u32) -> u32); - MsiGetFeatureValidStatesA(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(lpinstallstates)) + MsiGetFeatureValidStatesA(hinstall, szfeature.param().abi(), core::mem::transmute(lpinstallstates)) } #[inline] pub unsafe fn MsiGetFeatureValidStatesW(hinstall: MSIHANDLE, szfeature: P1, lpinstallstates: *mut u32) -> u32 @@ -1206,7 +1206,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureValidStatesW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, lpinstallstates : *mut u32) -> u32); - MsiGetFeatureValidStatesW(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(lpinstallstates)) + MsiGetFeatureValidStatesW(hinstall, szfeature.param().abi(), core::mem::transmute(lpinstallstates)) } #[inline] pub unsafe fn MsiGetFileHashA(szfilepath: P0, dwoptions: u32, phash: *mut MSIFILEHASHINFO) -> u32 @@ -1214,7 +1214,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileHashA(szfilepath : windows_core::PCSTR, dwoptions : u32, phash : *mut MSIFILEHASHINFO) -> u32); - MsiGetFileHashA(szfilepath.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(phash)) + MsiGetFileHashA(szfilepath.param().abi(), dwoptions, core::mem::transmute(phash)) } #[inline] pub unsafe fn MsiGetFileHashW(szfilepath: P0, dwoptions: u32, phash: *mut MSIFILEHASHINFO) -> u32 @@ -1222,7 +1222,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileHashW(szfilepath : windows_core::PCWSTR, dwoptions : u32, phash : *mut MSIFILEHASHINFO) -> u32); - MsiGetFileHashW(szfilepath.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(phash)) + MsiGetFileHashW(szfilepath.param().abi(), dwoptions, core::mem::transmute(phash)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1231,7 +1231,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileSignatureInformationA(szsignedobjectpath : windows_core::PCSTR, dwflags : u32, ppccertcontext : *mut *mut super::super::Security::Cryptography:: CERT_CONTEXT, pbhashdata : *mut u8, pcbhashdata : *mut u32) -> windows_core::HRESULT); - MsiGetFileSignatureInformationA(szsignedobjectpath.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppccertcontext), core::mem::transmute(pbhashdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhashdata.unwrap_or(core::mem::zeroed()))).ok() + MsiGetFileSignatureInformationA(szsignedobjectpath.param().abi(), dwflags, core::mem::transmute(ppccertcontext), core::mem::transmute(pbhashdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhashdata.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1240,7 +1240,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileSignatureInformationW(szsignedobjectpath : windows_core::PCWSTR, dwflags : u32, ppccertcontext : *mut *mut super::super::Security::Cryptography:: CERT_CONTEXT, pbhashdata : *mut u8, pcbhashdata : *mut u32) -> windows_core::HRESULT); - MsiGetFileSignatureInformationW(szsignedobjectpath.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppccertcontext), core::mem::transmute(pbhashdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhashdata.unwrap_or(core::mem::zeroed()))).ok() + MsiGetFileSignatureInformationW(szsignedobjectpath.param().abi(), dwflags, core::mem::transmute(ppccertcontext), core::mem::transmute(pbhashdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbhashdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MsiGetFileVersionA(szfilepath: P0, lpversionbuf: Option, pcchversionbuf: Option<*mut u32>, lplangbuf: Option, pcchlangbuf: Option<*mut u32>) -> u32 @@ -1261,7 +1261,7 @@ where #[inline] pub unsafe fn MsiGetLanguage(hinstall: MSIHANDLE) -> u16 { windows_targets::link!("msi.dll" "system" fn MsiGetLanguage(hinstall : MSIHANDLE) -> u16); - MsiGetLanguage(core::mem::transmute(hinstall)) + MsiGetLanguage(hinstall) } #[inline] pub unsafe fn MsiGetLastErrorRecord() -> MSIHANDLE { @@ -1271,7 +1271,7 @@ pub unsafe fn MsiGetLastErrorRecord() -> MSIHANDLE { #[inline] pub unsafe fn MsiGetMode(hinstall: MSIHANDLE, erunmode: MSIRUNMODE) -> super::super::Foundation::BOOL { windows_targets::link!("msi.dll" "system" fn MsiGetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE) -> super::super::Foundation:: BOOL); - MsiGetMode(core::mem::transmute(hinstall), core::mem::transmute(erunmode)) + MsiGetMode(hinstall, erunmode) } #[inline] pub unsafe fn MsiGetPatchFileListA(szproductcode: P0, szpatchpackages: P1, pcfiles: *mut u32, pphfilerecords: *mut *mut MSIHANDLE) -> u32 @@ -1309,7 +1309,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPatchInfoExA(szpatchcode : windows_core::PCSTR, szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, szproperty : windows_core::PCSTR, lpvalue : windows_core::PSTR, pcchvalue : *mut u32) -> u32); - MsiGetPatchInfoExA(szpatchcode.param().abi(), szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szproperty.param().abi(), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) + MsiGetPatchInfoExA(szpatchcode.param().abi(), szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetPatchInfoExW(szpatchcode: P0, szproductcode: P1, szusersid: P2, dwcontext: MSIINSTALLCONTEXT, szproperty: P4, lpvalue: Option, pcchvalue: Option<*mut u32>) -> u32 @@ -1320,7 +1320,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPatchInfoExW(szpatchcode : windows_core::PCWSTR, szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, szproperty : windows_core::PCWSTR, lpvalue : windows_core::PWSTR, pcchvalue : *mut u32) -> u32); - MsiGetPatchInfoExW(szpatchcode.param().abi(), szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szproperty.param().abi(), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) + MsiGetPatchInfoExW(szpatchcode.param().abi(), szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetPatchInfoW(szpatch: P0, szattribute: P1, lpvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 @@ -1364,7 +1364,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductInfoExA(szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, szproperty : windows_core::PCSTR, szvalue : windows_core::PSTR, pcchvalue : *mut u32) -> u32); - MsiGetProductInfoExA(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) + MsiGetProductInfoExA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetProductInfoExW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szproperty: P3, szvalue: Option, pcchvalue: Option<*mut u32>) -> u32 @@ -1374,7 +1374,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductInfoExW(szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, szproperty : windows_core::PCWSTR, szvalue : windows_core::PWSTR, pcchvalue : *mut u32) -> u32); - MsiGetProductInfoExW(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) + MsiGetProductInfoExW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetProductInfoFromScriptA(szscriptfile: P0, lpproductbuf39: Option, plgidlanguage: Option<*mut u16>, pdwversion: Option<*mut u32>, lpnamebuf: Option, pcchnamebuf: Option<*mut u32>, lppackagebuf: Option, pcchpackagebuf: Option<*mut u32>) -> u32 @@ -1425,7 +1425,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductPropertyA(hproduct : MSIHANDLE, szproperty : windows_core::PCSTR, lpvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetProductPropertyA(core::mem::transmute(hproduct), szproperty.param().abi(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiGetProductPropertyA(hproduct, szproperty.param().abi(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetProductPropertyW(hproduct: MSIHANDLE, szproperty: P1, lpvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 @@ -1433,7 +1433,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductPropertyW(hproduct : MSIHANDLE, szproperty : windows_core::PCWSTR, lpvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetProductPropertyW(core::mem::transmute(hproduct), szproperty.param().abi(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiGetProductPropertyW(hproduct, szproperty.param().abi(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetPropertyA(hinstall: MSIHANDLE, szname: P1, szvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 @@ -1441,7 +1441,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPropertyA(hinstall : MSIHANDLE, szname : windows_core::PCSTR, szvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetPropertyA(core::mem::transmute(hinstall), szname.param().abi(), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiGetPropertyA(hinstall, szname.param().abi(), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetPropertyW(hinstall: MSIHANDLE, szname: P1, szvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 @@ -1449,7 +1449,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPropertyW(hinstall : MSIHANDLE, szname : windows_core::PCWSTR, szvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetPropertyW(core::mem::transmute(hinstall), szname.param().abi(), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiGetPropertyW(hinstall, szname.param().abi(), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetShortcutTargetA(szshortcutpath: P0, szproductcode: Option, szfeatureid: Option, szcomponentcode: Option) -> u32 @@ -1473,7 +1473,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetSourcePathA(hinstall : MSIHANDLE, szfolder : windows_core::PCSTR, szpathbuf : windows_core::PSTR, pcchpathbuf : *mut u32) -> u32); - MsiGetSourcePathA(core::mem::transmute(hinstall), szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) + MsiGetSourcePathA(hinstall, szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetSourcePathW(hinstall: MSIHANDLE, szfolder: P1, szpathbuf: Option, pcchpathbuf: Option<*mut u32>) -> u32 @@ -1481,7 +1481,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetSourcePathW(hinstall : MSIHANDLE, szfolder : windows_core::PCWSTR, szpathbuf : windows_core::PWSTR, pcchpathbuf : *mut u32) -> u32); - MsiGetSourcePathW(core::mem::transmute(hinstall), szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) + MsiGetSourcePathW(hinstall, szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetSummaryInformationA(hdatabase: MSIHANDLE, szdatabasepath: P1, uiupdatecount: u32, phsummaryinfo: *mut MSIHANDLE) -> u32 @@ -1489,7 +1489,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetSummaryInformationA(hdatabase : MSIHANDLE, szdatabasepath : windows_core::PCSTR, uiupdatecount : u32, phsummaryinfo : *mut MSIHANDLE) -> u32); - MsiGetSummaryInformationA(core::mem::transmute(hdatabase), szdatabasepath.param().abi(), core::mem::transmute(uiupdatecount), core::mem::transmute(phsummaryinfo)) + MsiGetSummaryInformationA(hdatabase, szdatabasepath.param().abi(), uiupdatecount, core::mem::transmute(phsummaryinfo)) } #[inline] pub unsafe fn MsiGetSummaryInformationW(hdatabase: MSIHANDLE, szdatabasepath: P1, uiupdatecount: u32, phsummaryinfo: *mut MSIHANDLE) -> u32 @@ -1497,7 +1497,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetSummaryInformationW(hdatabase : MSIHANDLE, szdatabasepath : windows_core::PCWSTR, uiupdatecount : u32, phsummaryinfo : *mut MSIHANDLE) -> u32); - MsiGetSummaryInformationW(core::mem::transmute(hdatabase), szdatabasepath.param().abi(), core::mem::transmute(uiupdatecount), core::mem::transmute(phsummaryinfo)) + MsiGetSummaryInformationW(hdatabase, szdatabasepath.param().abi(), uiupdatecount, core::mem::transmute(phsummaryinfo)) } #[inline] pub unsafe fn MsiGetTargetPathA(hinstall: MSIHANDLE, szfolder: P1, szpathbuf: Option, pcchpathbuf: Option<*mut u32>) -> u32 @@ -1505,7 +1505,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetTargetPathA(hinstall : MSIHANDLE, szfolder : windows_core::PCSTR, szpathbuf : windows_core::PSTR, pcchpathbuf : *mut u32) -> u32); - MsiGetTargetPathA(core::mem::transmute(hinstall), szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) + MsiGetTargetPathA(hinstall, szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetTargetPathW(hinstall: MSIHANDLE, szfolder: P1, szpathbuf: Option, pcchpathbuf: Option<*mut u32>) -> u32 @@ -1513,7 +1513,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetTargetPathW(hinstall : MSIHANDLE, szfolder : windows_core::PCWSTR, szpathbuf : windows_core::PWSTR, pcchpathbuf : *mut u32) -> u32); - MsiGetTargetPathW(core::mem::transmute(hinstall), szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) + MsiGetTargetPathW(hinstall, szfolder.param().abi(), core::mem::transmute(szpathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiGetUserInfoA(szproduct: P0, lpusernamebuf: Option, pcchusernamebuf: Option<*mut u32>, lporgnamebuf: Option, pcchorgnamebuf: Option<*mut u32>, lpserialbuf: Option, pcchserialbuf: Option<*mut u32>) -> USERINFOSTATE @@ -1538,7 +1538,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiInstallMissingComponentA(szproduct : windows_core::PCSTR, szcomponent : windows_core::PCSTR, einstallstate : INSTALLSTATE) -> u32); - MsiInstallMissingComponentA(szproduct.param().abi(), szcomponent.param().abi(), core::mem::transmute(einstallstate)) + MsiInstallMissingComponentA(szproduct.param().abi(), szcomponent.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiInstallMissingComponentW(szproduct: P0, szcomponent: P1, einstallstate: INSTALLSTATE) -> u32 @@ -1547,7 +1547,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiInstallMissingComponentW(szproduct : windows_core::PCWSTR, szcomponent : windows_core::PCWSTR, einstallstate : INSTALLSTATE) -> u32); - MsiInstallMissingComponentW(szproduct.param().abi(), szcomponent.param().abi(), core::mem::transmute(einstallstate)) + MsiInstallMissingComponentW(szproduct.param().abi(), szcomponent.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiInstallMissingFileA(szproduct: P0, szfile: P1) -> u32 @@ -1604,7 +1604,7 @@ where #[inline] pub unsafe fn MsiJoinTransaction(htransactionhandle: MSIHANDLE, dwtransactionattributes: u32, phchangeofownerevent: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiJoinTransaction(htransactionhandle : MSIHANDLE, dwtransactionattributes : u32, phchangeofownerevent : *mut super::super::Foundation:: HANDLE) -> u32); - MsiJoinTransaction(core::mem::transmute(htransactionhandle), core::mem::transmute(dwtransactionattributes), core::mem::transmute(phchangeofownerevent)) + MsiJoinTransaction(htransactionhandle, dwtransactionattributes, core::mem::transmute(phchangeofownerevent)) } #[inline] pub unsafe fn MsiLocateComponentA(szcomponent: P0, lppathbuf: Option, pcchbuf: Option<*mut u32>) -> INSTALLSTATE @@ -1672,7 +1672,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenPackageExA(szpackagepath : windows_core::PCSTR, dwoptions : u32, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenPackageExA(szpackagepath.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(hproduct)) + MsiOpenPackageExA(szpackagepath.param().abi(), dwoptions, core::mem::transmute(hproduct)) } #[inline] pub unsafe fn MsiOpenPackageExW(szpackagepath: P0, dwoptions: u32, hproduct: *mut MSIHANDLE) -> u32 @@ -1680,7 +1680,7 @@ where P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenPackageExW(szpackagepath : windows_core::PCWSTR, dwoptions : u32, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenPackageExW(szpackagepath.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(hproduct)) + MsiOpenPackageExW(szpackagepath.param().abi(), dwoptions, core::mem::transmute(hproduct)) } #[inline] pub unsafe fn MsiOpenPackageW(szpackagepath: P0, hproduct: *mut MSIHANDLE) -> u32 @@ -1713,7 +1713,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewBillboardA(hpreview : MSIHANDLE, szcontrolname : windows_core::PCSTR, szbillboard : windows_core::PCSTR) -> u32); - MsiPreviewBillboardA(core::mem::transmute(hpreview), szcontrolname.param().abi(), szbillboard.param().abi()) + MsiPreviewBillboardA(hpreview, szcontrolname.param().abi(), szbillboard.param().abi()) } #[inline] pub unsafe fn MsiPreviewBillboardW(hpreview: MSIHANDLE, szcontrolname: P1, szbillboard: P2) -> u32 @@ -1722,7 +1722,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewBillboardW(hpreview : MSIHANDLE, szcontrolname : windows_core::PCWSTR, szbillboard : windows_core::PCWSTR) -> u32); - MsiPreviewBillboardW(core::mem::transmute(hpreview), szcontrolname.param().abi(), szbillboard.param().abi()) + MsiPreviewBillboardW(hpreview, szcontrolname.param().abi(), szbillboard.param().abi()) } #[inline] pub unsafe fn MsiPreviewDialogA(hpreview: MSIHANDLE, szdialogname: P1) -> u32 @@ -1730,7 +1730,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewDialogA(hpreview : MSIHANDLE, szdialogname : windows_core::PCSTR) -> u32); - MsiPreviewDialogA(core::mem::transmute(hpreview), szdialogname.param().abi()) + MsiPreviewDialogA(hpreview, szdialogname.param().abi()) } #[inline] pub unsafe fn MsiPreviewDialogW(hpreview: MSIHANDLE, szdialogname: P1) -> u32 @@ -1738,7 +1738,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewDialogW(hpreview : MSIHANDLE, szdialogname : windows_core::PCWSTR) -> u32); - MsiPreviewDialogW(core::mem::transmute(hpreview), szdialogname.param().abi()) + MsiPreviewDialogW(hpreview, szdialogname.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1763,7 +1763,7 @@ where #[inline] pub unsafe fn MsiProcessMessage(hinstall: MSIHANDLE, emessagetype: INSTALLMESSAGE, hrecord: MSIHANDLE) -> i32 { windows_targets::link!("msi.dll" "system" fn MsiProcessMessage(hinstall : MSIHANDLE, emessagetype : INSTALLMESSAGE, hrecord : MSIHANDLE) -> i32); - MsiProcessMessage(core::mem::transmute(hinstall), core::mem::transmute(emessagetype), core::mem::transmute(hrecord)) + MsiProcessMessage(hinstall, emessagetype, hrecord) } #[inline] pub unsafe fn MsiProvideAssemblyA(szassemblyname: P0, szappcontext: P1, dwinstallmode: INSTALLMODE, dwassemblyinfo: MSIASSEMBLYINFO, lppathbuf: Option, pcchpathbuf: Option<*mut u32>) -> u32 @@ -1772,7 +1772,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideAssemblyA(szassemblyname : windows_core::PCSTR, szappcontext : windows_core::PCSTR, dwinstallmode : u32, dwassemblyinfo : MSIASSEMBLYINFO, lppathbuf : windows_core::PSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideAssemblyA(szassemblyname.param().abi(), szappcontext.param().abi(), dwinstallmode.0 as _, core::mem::transmute(dwassemblyinfo), core::mem::transmute(lppathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) + MsiProvideAssemblyA(szassemblyname.param().abi(), szappcontext.param().abi(), dwinstallmode.0 as _, dwassemblyinfo, core::mem::transmute(lppathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiProvideAssemblyW(szassemblyname: P0, szappcontext: P1, dwinstallmode: INSTALLMODE, dwassemblyinfo: MSIASSEMBLYINFO, lppathbuf: Option, pcchpathbuf: Option<*mut u32>) -> u32 @@ -1781,7 +1781,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideAssemblyW(szassemblyname : windows_core::PCWSTR, szappcontext : windows_core::PCWSTR, dwinstallmode : u32, dwassemblyinfo : MSIASSEMBLYINFO, lppathbuf : windows_core::PWSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideAssemblyW(szassemblyname.param().abi(), szappcontext.param().abi(), dwinstallmode.0 as _, core::mem::transmute(dwassemblyinfo), core::mem::transmute(lppathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) + MsiProvideAssemblyW(szassemblyname.param().abi(), szappcontext.param().abi(), dwinstallmode.0 as _, dwassemblyinfo, core::mem::transmute(lppathbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiProvideComponentA(szproduct: P0, szfeature: P1, szcomponent: P2, dwinstallmode: INSTALLMODE, lppathbuf: Option, pcchpathbuf: Option<*mut u32>) -> u32 @@ -1849,7 +1849,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryComponentStateA(szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, szcomponentcode : windows_core::PCSTR, pdwstate : *mut INSTALLSTATE) -> u32); - MsiQueryComponentStateA(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szcomponentcode.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) + MsiQueryComponentStateA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szcomponentcode.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiQueryComponentStateW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szcomponentcode: P3, pdwstate: Option<*mut INSTALLSTATE>) -> u32 @@ -1859,7 +1859,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryComponentStateW(szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, szcomponentcode : windows_core::PCWSTR, pdwstate : *mut INSTALLSTATE) -> u32); - MsiQueryComponentStateW(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szcomponentcode.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) + MsiQueryComponentStateW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szcomponentcode.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiQueryFeatureStateA(szproduct: P0, szfeature: P1) -> INSTALLSTATE @@ -1878,7 +1878,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryFeatureStateExA(szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, szfeature : windows_core::PCSTR, pdwstate : *mut INSTALLSTATE) -> u32); - MsiQueryFeatureStateExA(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szfeature.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) + MsiQueryFeatureStateExA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szfeature.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiQueryFeatureStateExW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szfeature: P3, pdwstate: Option<*mut INSTALLSTATE>) -> u32 @@ -1888,7 +1888,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryFeatureStateExW(szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, szfeature : windows_core::PCWSTR, pdwstate : *mut INSTALLSTATE) -> u32); - MsiQueryFeatureStateExW(szproductcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), szfeature.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) + MsiQueryFeatureStateExW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szfeature.param().abi(), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiQueryFeatureStateW(szproduct: P0, szfeature: P1) -> INSTALLSTATE @@ -1918,47 +1918,47 @@ where #[inline] pub unsafe fn MsiRecordClearData(hrecord: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordClearData(hrecord : MSIHANDLE) -> u32); - MsiRecordClearData(core::mem::transmute(hrecord)) + MsiRecordClearData(hrecord) } #[inline] pub unsafe fn MsiRecordDataSize(hrecord: MSIHANDLE, ifield: u32) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordDataSize(hrecord : MSIHANDLE, ifield : u32) -> u32); - MsiRecordDataSize(core::mem::transmute(hrecord), core::mem::transmute(ifield)) + MsiRecordDataSize(hrecord, ifield) } #[inline] pub unsafe fn MsiRecordGetFieldCount(hrecord: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordGetFieldCount(hrecord : MSIHANDLE) -> u32); - MsiRecordGetFieldCount(core::mem::transmute(hrecord)) + MsiRecordGetFieldCount(hrecord) } #[inline] pub unsafe fn MsiRecordGetInteger(hrecord: MSIHANDLE, ifield: u32) -> i32 { windows_targets::link!("msi.dll" "system" fn MsiRecordGetInteger(hrecord : MSIHANDLE, ifield : u32) -> i32); - MsiRecordGetInteger(core::mem::transmute(hrecord), core::mem::transmute(ifield)) + MsiRecordGetInteger(hrecord, ifield) } #[inline] pub unsafe fn MsiRecordGetStringA(hrecord: MSIHANDLE, ifield: u32, szvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordGetStringA(hrecord : MSIHANDLE, ifield : u32, szvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiRecordGetStringA(core::mem::transmute(hrecord), core::mem::transmute(ifield), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiRecordGetStringA(hrecord, ifield, core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiRecordGetStringW(hrecord: MSIHANDLE, ifield: u32, szvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordGetStringW(hrecord : MSIHANDLE, ifield : u32, szvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiRecordGetStringW(core::mem::transmute(hrecord), core::mem::transmute(ifield), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiRecordGetStringW(hrecord, ifield, core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiRecordIsNull(hrecord: MSIHANDLE, ifield: u32) -> super::super::Foundation::BOOL { windows_targets::link!("msi.dll" "system" fn MsiRecordIsNull(hrecord : MSIHANDLE, ifield : u32) -> super::super::Foundation:: BOOL); - MsiRecordIsNull(core::mem::transmute(hrecord), core::mem::transmute(ifield)) + MsiRecordIsNull(hrecord, ifield) } #[inline] pub unsafe fn MsiRecordReadStream(hrecord: MSIHANDLE, ifield: u32, szdatabuf: Option, pcbdatabuf: *mut u32) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordReadStream(hrecord : MSIHANDLE, ifield : u32, szdatabuf : windows_core::PSTR, pcbdatabuf : *mut u32) -> u32); - MsiRecordReadStream(core::mem::transmute(hrecord), core::mem::transmute(ifield), core::mem::transmute(szdatabuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdatabuf)) + MsiRecordReadStream(hrecord, ifield, core::mem::transmute(szdatabuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdatabuf)) } #[inline] pub unsafe fn MsiRecordSetInteger(hrecord: MSIHANDLE, ifield: u32, ivalue: i32) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiRecordSetInteger(hrecord : MSIHANDLE, ifield : u32, ivalue : i32) -> u32); - MsiRecordSetInteger(core::mem::transmute(hrecord), core::mem::transmute(ifield), core::mem::transmute(ivalue)) + MsiRecordSetInteger(hrecord, ifield, ivalue) } #[inline] pub unsafe fn MsiRecordSetStreamA(hrecord: MSIHANDLE, ifield: u32, szfilepath: P2) -> u32 @@ -1966,7 +1966,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStreamA(hrecord : MSIHANDLE, ifield : u32, szfilepath : windows_core::PCSTR) -> u32); - MsiRecordSetStreamA(core::mem::transmute(hrecord), core::mem::transmute(ifield), szfilepath.param().abi()) + MsiRecordSetStreamA(hrecord, ifield, szfilepath.param().abi()) } #[inline] pub unsafe fn MsiRecordSetStreamW(hrecord: MSIHANDLE, ifield: u32, szfilepath: P2) -> u32 @@ -1974,7 +1974,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStreamW(hrecord : MSIHANDLE, ifield : u32, szfilepath : windows_core::PCWSTR) -> u32); - MsiRecordSetStreamW(core::mem::transmute(hrecord), core::mem::transmute(ifield), szfilepath.param().abi()) + MsiRecordSetStreamW(hrecord, ifield, szfilepath.param().abi()) } #[inline] pub unsafe fn MsiRecordSetStringA(hrecord: MSIHANDLE, ifield: u32, szvalue: P2) -> u32 @@ -1982,7 +1982,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStringA(hrecord : MSIHANDLE, ifield : u32, szvalue : windows_core::PCSTR) -> u32); - MsiRecordSetStringA(core::mem::transmute(hrecord), core::mem::transmute(ifield), szvalue.param().abi()) + MsiRecordSetStringA(hrecord, ifield, szvalue.param().abi()) } #[inline] pub unsafe fn MsiRecordSetStringW(hrecord: MSIHANDLE, ifield: u32, szvalue: P2) -> u32 @@ -1990,7 +1990,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStringW(hrecord : MSIHANDLE, ifield : u32, szvalue : windows_core::PCWSTR) -> u32); - MsiRecordSetStringW(core::mem::transmute(hrecord), core::mem::transmute(ifield), szvalue.param().abi()) + MsiRecordSetStringW(hrecord, ifield, szvalue.param().abi()) } #[inline] pub unsafe fn MsiReinstallFeatureA(szproduct: P0, szfeature: P1, dwreinstallmode: REINSTALLMODE) -> u32 @@ -2034,7 +2034,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRemovePatchesA(szpatchlist : windows_core::PCSTR, szproductcode : windows_core::PCSTR, euninstalltype : INSTALLTYPE, szpropertylist : windows_core::PCSTR) -> u32); - MsiRemovePatchesA(szpatchlist.param().abi(), szproductcode.param().abi(), core::mem::transmute(euninstalltype), szpropertylist.param().abi()) + MsiRemovePatchesA(szpatchlist.param().abi(), szproductcode.param().abi(), euninstalltype, szpropertylist.param().abi()) } #[inline] pub unsafe fn MsiRemovePatchesW(szpatchlist: P0, szproductcode: P1, euninstalltype: INSTALLTYPE, szpropertylist: P3) -> u32 @@ -2044,7 +2044,7 @@ where P3: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRemovePatchesW(szpatchlist : windows_core::PCWSTR, szproductcode : windows_core::PCWSTR, euninstalltype : INSTALLTYPE, szpropertylist : windows_core::PCWSTR) -> u32); - MsiRemovePatchesW(szpatchlist.param().abi(), szproductcode.param().abi(), core::mem::transmute(euninstalltype), szpropertylist.param().abi()) + MsiRemovePatchesW(szpatchlist.param().abi(), szproductcode.param().abi(), euninstalltype, szpropertylist.param().abi()) } #[inline] pub unsafe fn MsiSequenceA(hinstall: MSIHANDLE, sztable: P1, isequencemode: i32) -> u32 @@ -2052,7 +2052,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSequenceA(hinstall : MSIHANDLE, sztable : windows_core::PCSTR, isequencemode : i32) -> u32); - MsiSequenceA(core::mem::transmute(hinstall), sztable.param().abi(), core::mem::transmute(isequencemode)) + MsiSequenceA(hinstall, sztable.param().abi(), isequencemode) } #[inline] pub unsafe fn MsiSequenceW(hinstall: MSIHANDLE, sztable: P1, isequencemode: i32) -> u32 @@ -2060,7 +2060,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSequenceW(hinstall : MSIHANDLE, sztable : windows_core::PCWSTR, isequencemode : i32) -> u32); - MsiSequenceW(core::mem::transmute(hinstall), sztable.param().abi(), core::mem::transmute(isequencemode)) + MsiSequenceW(hinstall, sztable.param().abi(), isequencemode) } #[inline] pub unsafe fn MsiSetComponentStateA(hinstall: MSIHANDLE, szcomponent: P1, istate: INSTALLSTATE) -> u32 @@ -2068,7 +2068,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetComponentStateA(hinstall : MSIHANDLE, szcomponent : windows_core::PCSTR, istate : INSTALLSTATE) -> u32); - MsiSetComponentStateA(core::mem::transmute(hinstall), szcomponent.param().abi(), core::mem::transmute(istate)) + MsiSetComponentStateA(hinstall, szcomponent.param().abi(), istate) } #[inline] pub unsafe fn MsiSetComponentStateW(hinstall: MSIHANDLE, szcomponent: P1, istate: INSTALLSTATE) -> u32 @@ -2076,22 +2076,22 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetComponentStateW(hinstall : MSIHANDLE, szcomponent : windows_core::PCWSTR, istate : INSTALLSTATE) -> u32); - MsiSetComponentStateW(core::mem::transmute(hinstall), szcomponent.param().abi(), core::mem::transmute(istate)) + MsiSetComponentStateW(hinstall, szcomponent.param().abi(), istate) } #[inline] pub unsafe fn MsiSetExternalUIA(puihandler: Option, dwmessagefilter: u32, pvcontext: Option<*const core::ffi::c_void>) -> INSTALLUI_HANDLERA { windows_targets::link!("msi.dll" "system" fn MsiSetExternalUIA(puihandler : INSTALLUI_HANDLERA, dwmessagefilter : u32, pvcontext : *const core::ffi::c_void) -> INSTALLUI_HANDLERA); - MsiSetExternalUIA(core::mem::transmute(puihandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmessagefilter), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))) + MsiSetExternalUIA(core::mem::transmute(puihandler.unwrap_or(core::mem::zeroed())), dwmessagefilter, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSetExternalUIRecord(puihandler: Option, dwmessagefilter: u32, pvcontext: Option<*const core::ffi::c_void>, ppuiprevhandler: Option) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSetExternalUIRecord(puihandler : PINSTALLUI_HANDLER_RECORD, dwmessagefilter : u32, pvcontext : *const core::ffi::c_void, ppuiprevhandler : PINSTALLUI_HANDLER_RECORD) -> u32); - MsiSetExternalUIRecord(core::mem::transmute(puihandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmessagefilter), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppuiprevhandler.unwrap_or(core::mem::zeroed()))) + MsiSetExternalUIRecord(core::mem::transmute(puihandler.unwrap_or(core::mem::zeroed())), dwmessagefilter, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppuiprevhandler.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSetExternalUIW(puihandler: Option, dwmessagefilter: u32, pvcontext: Option<*const core::ffi::c_void>) -> INSTALLUI_HANDLERW { windows_targets::link!("msi.dll" "system" fn MsiSetExternalUIW(puihandler : INSTALLUI_HANDLERW, dwmessagefilter : u32, pvcontext : *const core::ffi::c_void) -> INSTALLUI_HANDLERW); - MsiSetExternalUIW(core::mem::transmute(puihandler.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmessagefilter), core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))) + MsiSetExternalUIW(core::mem::transmute(puihandler.unwrap_or(core::mem::zeroed())), dwmessagefilter, core::mem::transmute(pvcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSetFeatureAttributesA(hinstall: MSIHANDLE, szfeature: P1, dwattributes: u32) -> u32 @@ -2099,7 +2099,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureAttributesA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, dwattributes : u32) -> u32); - MsiSetFeatureAttributesA(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(dwattributes)) + MsiSetFeatureAttributesA(hinstall, szfeature.param().abi(), dwattributes) } #[inline] pub unsafe fn MsiSetFeatureAttributesW(hinstall: MSIHANDLE, szfeature: P1, dwattributes: u32) -> u32 @@ -2107,7 +2107,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureAttributesW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, dwattributes : u32) -> u32); - MsiSetFeatureAttributesW(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(dwattributes)) + MsiSetFeatureAttributesW(hinstall, szfeature.param().abi(), dwattributes) } #[inline] pub unsafe fn MsiSetFeatureStateA(hinstall: MSIHANDLE, szfeature: P1, istate: INSTALLSTATE) -> u32 @@ -2115,7 +2115,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureStateA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, istate : INSTALLSTATE) -> u32); - MsiSetFeatureStateA(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(istate)) + MsiSetFeatureStateA(hinstall, szfeature.param().abi(), istate) } #[inline] pub unsafe fn MsiSetFeatureStateW(hinstall: MSIHANDLE, szfeature: P1, istate: INSTALLSTATE) -> u32 @@ -2123,22 +2123,22 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureStateW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, istate : INSTALLSTATE) -> u32); - MsiSetFeatureStateW(core::mem::transmute(hinstall), szfeature.param().abi(), core::mem::transmute(istate)) + MsiSetFeatureStateW(hinstall, szfeature.param().abi(), istate) } #[inline] pub unsafe fn MsiSetInstallLevel(hinstall: MSIHANDLE, iinstalllevel: i32) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSetInstallLevel(hinstall : MSIHANDLE, iinstalllevel : i32) -> u32); - MsiSetInstallLevel(core::mem::transmute(hinstall), core::mem::transmute(iinstalllevel)) + MsiSetInstallLevel(hinstall, iinstalllevel) } #[inline] pub unsafe fn MsiSetInternalUI(dwuilevel: INSTALLUILEVEL, phwnd: Option<*mut super::super::Foundation::HWND>) -> INSTALLUILEVEL { windows_targets::link!("msi.dll" "system" fn MsiSetInternalUI(dwuilevel : INSTALLUILEVEL, phwnd : *mut super::super::Foundation:: HWND) -> INSTALLUILEVEL); - MsiSetInternalUI(core::mem::transmute(dwuilevel), core::mem::transmute(phwnd.unwrap_or(core::mem::zeroed()))) + MsiSetInternalUI(dwuilevel, core::mem::transmute(phwnd.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSetMode(hinstall: MSIHANDLE, erunmode: MSIRUNMODE, fstate: bool) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE, fstate : super::super::Foundation:: BOOL) -> u32); - MsiSetMode(core::mem::transmute(hinstall), core::mem::transmute(erunmode), fstate.into()) + MsiSetMode(hinstall, erunmode, fstate.into()) } #[inline] pub unsafe fn MsiSetPropertyA(hinstall: MSIHANDLE, szname: P1, szvalue: P2) -> u32 @@ -2147,7 +2147,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetPropertyA(hinstall : MSIHANDLE, szname : windows_core::PCSTR, szvalue : windows_core::PCSTR) -> u32); - MsiSetPropertyA(core::mem::transmute(hinstall), szname.param().abi(), szvalue.param().abi()) + MsiSetPropertyA(hinstall, szname.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSetPropertyW(hinstall: MSIHANDLE, szname: P1, szvalue: P2) -> u32 @@ -2156,7 +2156,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetPropertyW(hinstall : MSIHANDLE, szname : windows_core::PCWSTR, szvalue : windows_core::PCWSTR) -> u32); - MsiSetPropertyW(core::mem::transmute(hinstall), szname.param().abi(), szvalue.param().abi()) + MsiSetPropertyW(hinstall, szname.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSetTargetPathA(hinstall: MSIHANDLE, szfolder: P1, szfolderpath: P2) -> u32 @@ -2165,7 +2165,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetTargetPathA(hinstall : MSIHANDLE, szfolder : windows_core::PCSTR, szfolderpath : windows_core::PCSTR) -> u32); - MsiSetTargetPathA(core::mem::transmute(hinstall), szfolder.param().abi(), szfolderpath.param().abi()) + MsiSetTargetPathA(hinstall, szfolder.param().abi(), szfolderpath.param().abi()) } #[inline] pub unsafe fn MsiSetTargetPathW(hinstall: MSIHANDLE, szfolder: P1, szfolderpath: P2) -> u32 @@ -2174,7 +2174,7 @@ where P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetTargetPathW(hinstall : MSIHANDLE, szfolder : windows_core::PCWSTR, szfolderpath : windows_core::PCWSTR) -> u32); - MsiSetTargetPathW(core::mem::transmute(hinstall), szfolder.param().abi(), szfolderpath.param().abi()) + MsiSetTargetPathW(hinstall, szfolder.param().abi(), szfolderpath.param().abi()) } #[inline] pub unsafe fn MsiSourceListAddMediaDiskA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwdiskid: u32, szvolumelabel: P5, szdiskprompt: P6) -> u32 @@ -2185,7 +2185,7 @@ where P6: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListAddMediaDiskA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwdiskid : u32, szvolumelabel : windows_core::PCSTR, szdiskprompt : windows_core::PCSTR) -> u32); - MsiSourceListAddMediaDiskA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), core::mem::transmute(dwdiskid), szvolumelabel.param().abi(), szdiskprompt.param().abi()) + MsiSourceListAddMediaDiskA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwdiskid, szvolumelabel.param().abi(), szdiskprompt.param().abi()) } #[inline] pub unsafe fn MsiSourceListAddMediaDiskW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwdiskid: u32, szvolumelabel: P5, szdiskprompt: P6) -> u32 @@ -2196,7 +2196,7 @@ where P6: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListAddMediaDiskW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwdiskid : u32, szvolumelabel : windows_core::PCWSTR, szdiskprompt : windows_core::PCWSTR) -> u32); - MsiSourceListAddMediaDiskW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), core::mem::transmute(dwdiskid), szvolumelabel.param().abi(), szdiskprompt.param().abi()) + MsiSourceListAddMediaDiskW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwdiskid, szvolumelabel.param().abi(), szdiskprompt.param().abi()) } #[inline] pub unsafe fn MsiSourceListAddSourceA(szproduct: P0, szusername: P1, dwreserved: Option, szsource: P3) -> u32 @@ -2216,7 +2216,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListAddSourceExA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szsource : windows_core::PCSTR, dwindex : u32) -> u32); - MsiSourceListAddSourceExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szsource.param().abi(), core::mem::transmute(dwindex)) + MsiSourceListAddSourceExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szsource.param().abi(), dwindex) } #[inline] pub unsafe fn MsiSourceListAddSourceExW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szsource: P4, dwindex: u32) -> u32 @@ -2226,7 +2226,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListAddSourceExW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szsource : windows_core::PCWSTR, dwindex : u32) -> u32); - MsiSourceListAddSourceExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szsource.param().abi(), core::mem::transmute(dwindex)) + MsiSourceListAddSourceExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szsource.param().abi(), dwindex) } #[inline] pub unsafe fn MsiSourceListAddSourceW(szproduct: P0, szusername: P1, dwreserved: Option, szsource: P3) -> u32 @@ -2254,7 +2254,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearAllExA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32) -> u32); - MsiSourceListClearAllExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions)) + MsiSourceListClearAllExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListClearAllExW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32) -> u32 @@ -2263,7 +2263,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearAllExW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32) -> u32); - MsiSourceListClearAllExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions)) + MsiSourceListClearAllExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListClearAllW(szproduct: P0, szusername: P1, dwreserved: Option) -> u32 @@ -2281,7 +2281,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearMediaDiskA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwdiskid : u32) -> u32); - MsiSourceListClearMediaDiskA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), core::mem::transmute(dwdiskid)) + MsiSourceListClearMediaDiskA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwdiskid) } #[inline] pub unsafe fn MsiSourceListClearMediaDiskW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwdiskid: u32) -> u32 @@ -2290,7 +2290,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearMediaDiskW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwdiskid : u32) -> u32); - MsiSourceListClearMediaDiskW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), core::mem::transmute(dwdiskid)) + MsiSourceListClearMediaDiskW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwdiskid) } #[inline] pub unsafe fn MsiSourceListClearSourceA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szsource: P4) -> u32 @@ -2300,7 +2300,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearSourceA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szsource : windows_core::PCSTR) -> u32); - MsiSourceListClearSourceA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szsource.param().abi()) + MsiSourceListClearSourceA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szsource.param().abi()) } #[inline] pub unsafe fn MsiSourceListClearSourceW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szsource: P4) -> u32 @@ -2310,7 +2310,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearSourceW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szsource : windows_core::PCWSTR) -> u32); - MsiSourceListClearSourceW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szsource.param().abi()) + MsiSourceListClearSourceW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szsource.param().abi()) } #[inline] pub unsafe fn MsiSourceListEnumMediaDisksA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, pdwdiskid: Option<*mut u32>, szvolumelabel: Option, pcchvolumelabel: Option<*mut u32>, szdiskprompt: Option, pcchdiskprompt: Option<*mut u32>) -> u32 @@ -2319,18 +2319,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListEnumMediaDisksA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwindex : u32, pdwdiskid : *mut u32, szvolumelabel : windows_core::PSTR, pcchvolumelabel : *mut u32, szdiskprompt : windows_core::PSTR, pcchdiskprompt : *mut u32) -> u32); - MsiSourceListEnumMediaDisksA( - szproductcodeorpatchcode.param().abi(), - szusersid.param().abi(), - core::mem::transmute(dwcontext), - core::mem::transmute(dwoptions), - core::mem::transmute(dwindex), - core::mem::transmute(pdwdiskid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(szvolumelabel.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pcchvolumelabel.unwrap_or(core::mem::zeroed())), - core::mem::transmute(szdiskprompt.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pcchdiskprompt.unwrap_or(core::mem::zeroed())), - ) + MsiSourceListEnumMediaDisksA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(pdwdiskid.unwrap_or(core::mem::zeroed())), core::mem::transmute(szvolumelabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvolumelabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(szdiskprompt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdiskprompt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSourceListEnumMediaDisksW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, pdwdiskid: Option<*mut u32>, szvolumelabel: Option, pcchvolumelabel: Option<*mut u32>, szdiskprompt: Option, pcchdiskprompt: Option<*mut u32>) -> u32 @@ -2339,18 +2328,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListEnumMediaDisksW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwindex : u32, pdwdiskid : *mut u32, szvolumelabel : windows_core::PWSTR, pcchvolumelabel : *mut u32, szdiskprompt : windows_core::PWSTR, pcchdiskprompt : *mut u32) -> u32); - MsiSourceListEnumMediaDisksW( - szproductcodeorpatchcode.param().abi(), - szusersid.param().abi(), - core::mem::transmute(dwcontext), - core::mem::transmute(dwoptions), - core::mem::transmute(dwindex), - core::mem::transmute(pdwdiskid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(szvolumelabel.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pcchvolumelabel.unwrap_or(core::mem::zeroed())), - core::mem::transmute(szdiskprompt.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pcchdiskprompt.unwrap_or(core::mem::zeroed())), - ) + MsiSourceListEnumMediaDisksW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(pdwdiskid.unwrap_or(core::mem::zeroed())), core::mem::transmute(szvolumelabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvolumelabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(szdiskprompt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchdiskprompt.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSourceListEnumSourcesA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, szsource: Option, pcchsource: Option<*mut u32>) -> u32 @@ -2359,7 +2337,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListEnumSourcesA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwindex : u32, szsource : windows_core::PSTR, pcchsource : *mut u32) -> u32); - MsiSourceListEnumSourcesA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), core::mem::transmute(dwindex), core::mem::transmute(szsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsource.unwrap_or(core::mem::zeroed()))) + MsiSourceListEnumSourcesA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(szsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsource.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSourceListEnumSourcesW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, szsource: Option, pcchsource: Option<*mut u32>) -> u32 @@ -2368,7 +2346,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListEnumSourcesW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, dwindex : u32, szsource : windows_core::PWSTR, pcchsource : *mut u32) -> u32); - MsiSourceListEnumSourcesW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), core::mem::transmute(dwindex), core::mem::transmute(szsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsource.unwrap_or(core::mem::zeroed()))) + MsiSourceListEnumSourcesW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(szsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsource.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSourceListForceResolutionA(szproduct: P0, szusername: P1, dwreserved: Option) -> u32 @@ -2386,7 +2364,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListForceResolutionExA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32) -> u32); - MsiSourceListForceResolutionExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions)) + MsiSourceListForceResolutionExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListForceResolutionExW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32) -> u32 @@ -2395,7 +2373,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListForceResolutionExW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32) -> u32); - MsiSourceListForceResolutionExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions)) + MsiSourceListForceResolutionExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListForceResolutionW(szproduct: P0, szusername: P1, dwreserved: Option) -> u32 @@ -2414,7 +2392,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListGetInfoA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szproperty : windows_core::PCSTR, szvalue : windows_core::PSTR, pcchvalue : *mut u32) -> u32); - MsiSourceListGetInfoA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) + MsiSourceListGetInfoA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSourceListGetInfoW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szproperty: P4, szvalue: Option, pcchvalue: Option<*mut u32>) -> u32 @@ -2424,7 +2402,7 @@ where P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListGetInfoW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szproperty : windows_core::PCWSTR, szvalue : windows_core::PWSTR, pcchvalue : *mut u32) -> u32); - MsiSourceListGetInfoW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) + MsiSourceListGetInfoW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), core::mem::transmute(szvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSourceListSetInfoA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szproperty: P4, szvalue: P5) -> u32 @@ -2435,7 +2413,7 @@ where P5: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListSetInfoA(szproductcodeorpatchcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szproperty : windows_core::PCSTR, szvalue : windows_core::PCSTR) -> u32); - MsiSourceListSetInfoA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szproperty.param().abi(), szvalue.param().abi()) + MsiSourceListSetInfoA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSourceListSetInfoW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szproperty: P4, szvalue: P5) -> u32 @@ -2446,27 +2424,27 @@ where P5: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListSetInfoW(szproductcodeorpatchcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, dwoptions : u32, szproperty : windows_core::PCWSTR, szvalue : windows_core::PCWSTR) -> u32); - MsiSourceListSetInfoW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), core::mem::transmute(dwcontext), core::mem::transmute(dwoptions), szproperty.param().abi(), szvalue.param().abi()) + MsiSourceListSetInfoW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSummaryInfoGetPropertyA(hsummaryinfo: MSIHANDLE, uiproperty: u32, puidatatype: *mut u32, pivalue: *mut i32, pftvalue: Option<*mut super::super::Foundation::FILETIME>, szvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoGetPropertyA(hsummaryinfo : MSIHANDLE, uiproperty : u32, puidatatype : *mut u32, pivalue : *mut i32, pftvalue : *mut super::super::Foundation:: FILETIME, szvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiSummaryInfoGetPropertyA(core::mem::transmute(hsummaryinfo), core::mem::transmute(uiproperty), core::mem::transmute(puidatatype), core::mem::transmute(pivalue), core::mem::transmute(pftvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiSummaryInfoGetPropertyA(hsummaryinfo, uiproperty, core::mem::transmute(puidatatype), core::mem::transmute(pivalue), core::mem::transmute(pftvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSummaryInfoGetPropertyCount(hsummaryinfo: MSIHANDLE, puipropertycount: *mut u32) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoGetPropertyCount(hsummaryinfo : MSIHANDLE, puipropertycount : *mut u32) -> u32); - MsiSummaryInfoGetPropertyCount(core::mem::transmute(hsummaryinfo), core::mem::transmute(puipropertycount)) + MsiSummaryInfoGetPropertyCount(hsummaryinfo, core::mem::transmute(puipropertycount)) } #[inline] pub unsafe fn MsiSummaryInfoGetPropertyW(hsummaryinfo: MSIHANDLE, uiproperty: u32, puidatatype: *mut u32, pivalue: *mut i32, pftvalue: Option<*mut super::super::Foundation::FILETIME>, szvaluebuf: Option, pcchvaluebuf: Option<*mut u32>) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoGetPropertyW(hsummaryinfo : MSIHANDLE, uiproperty : u32, puidatatype : *mut u32, pivalue : *mut i32, pftvalue : *mut super::super::Foundation:: FILETIME, szvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiSummaryInfoGetPropertyW(core::mem::transmute(hsummaryinfo), core::mem::transmute(uiproperty), core::mem::transmute(puidatatype), core::mem::transmute(pivalue), core::mem::transmute(pftvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) + MsiSummaryInfoGetPropertyW(hsummaryinfo, uiproperty, core::mem::transmute(puidatatype), core::mem::transmute(pivalue), core::mem::transmute(pftvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(szvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluebuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiSummaryInfoPersist(hsummaryinfo: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoPersist(hsummaryinfo : MSIHANDLE) -> u32); - MsiSummaryInfoPersist(core::mem::transmute(hsummaryinfo)) + MsiSummaryInfoPersist(hsummaryinfo) } #[inline] pub unsafe fn MsiSummaryInfoSetPropertyA(hsummaryinfo: MSIHANDLE, uiproperty: u32, uidatatype: u32, ivalue: i32, pftvalue: *mut super::super::Foundation::FILETIME, szvalue: P5) -> u32 @@ -2474,7 +2452,7 @@ where P5: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoSetPropertyA(hsummaryinfo : MSIHANDLE, uiproperty : u32, uidatatype : u32, ivalue : i32, pftvalue : *mut super::super::Foundation:: FILETIME, szvalue : windows_core::PCSTR) -> u32); - MsiSummaryInfoSetPropertyA(core::mem::transmute(hsummaryinfo), core::mem::transmute(uiproperty), core::mem::transmute(uidatatype), core::mem::transmute(ivalue), core::mem::transmute(pftvalue), szvalue.param().abi()) + MsiSummaryInfoSetPropertyA(hsummaryinfo, uiproperty, uidatatype, ivalue, core::mem::transmute(pftvalue), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSummaryInfoSetPropertyW(hsummaryinfo: MSIHANDLE, uiproperty: u32, uidatatype: u32, ivalue: i32, pftvalue: *mut super::super::Foundation::FILETIME, szvalue: P5) -> u32 @@ -2482,7 +2460,7 @@ where P5: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoSetPropertyW(hsummaryinfo : MSIHANDLE, uiproperty : u32, uidatatype : u32, ivalue : i32, pftvalue : *mut super::super::Foundation:: FILETIME, szvalue : windows_core::PCWSTR) -> u32); - MsiSummaryInfoSetPropertyW(core::mem::transmute(hsummaryinfo), core::mem::transmute(uiproperty), core::mem::transmute(uidatatype), core::mem::transmute(ivalue), core::mem::transmute(pftvalue), szvalue.param().abi()) + MsiSummaryInfoSetPropertyW(hsummaryinfo, uiproperty, uidatatype, ivalue, core::mem::transmute(pftvalue), szvalue.param().abi()) } #[inline] pub unsafe fn MsiUseFeatureA(szproduct: P0, szfeature: P1) -> INSTALLSTATE @@ -2500,7 +2478,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiUseFeatureExA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR, dwinstallmode : u32, dwreserved : u32) -> INSTALLSTATE); - MsiUseFeatureExA(szproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(dwinstallmode), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + MsiUseFeatureExA(szproduct.param().abi(), szfeature.param().abi(), dwinstallmode, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiUseFeatureExW(szproduct: P0, szfeature: P1, dwinstallmode: u32, dwreserved: Option) -> INSTALLSTATE @@ -2509,7 +2487,7 @@ where P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiUseFeatureExW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR, dwinstallmode : u32, dwreserved : u32) -> INSTALLSTATE); - MsiUseFeatureExW(szproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(dwinstallmode), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + MsiUseFeatureExW(szproduct.param().abi(), szfeature.param().abi(), dwinstallmode, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiUseFeatureW(szproduct: P0, szfeature: P1) -> INSTALLSTATE @@ -2523,7 +2501,7 @@ where #[inline] pub unsafe fn MsiVerifyDiskSpace(hinstall: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiVerifyDiskSpace(hinstall : MSIHANDLE) -> u32); - MsiVerifyDiskSpace(core::mem::transmute(hinstall)) + MsiVerifyDiskSpace(hinstall) } #[inline] pub unsafe fn MsiVerifyPackageA(szpackagepath: P0) -> u32 @@ -2544,48 +2522,48 @@ where #[inline] pub unsafe fn MsiViewClose(hview: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiViewClose(hview : MSIHANDLE) -> u32); - MsiViewClose(core::mem::transmute(hview)) + MsiViewClose(hview) } #[inline] pub unsafe fn MsiViewExecute(hview: MSIHANDLE, hrecord: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiViewExecute(hview : MSIHANDLE, hrecord : MSIHANDLE) -> u32); - MsiViewExecute(core::mem::transmute(hview), core::mem::transmute(hrecord)) + MsiViewExecute(hview, hrecord) } #[inline] pub unsafe fn MsiViewFetch(hview: MSIHANDLE, phrecord: *mut MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiViewFetch(hview : MSIHANDLE, phrecord : *mut MSIHANDLE) -> u32); - MsiViewFetch(core::mem::transmute(hview), core::mem::transmute(phrecord)) + MsiViewFetch(hview, core::mem::transmute(phrecord)) } #[inline] pub unsafe fn MsiViewGetColumnInfo(hview: MSIHANDLE, ecolumninfo: MSICOLINFO, phrecord: *mut MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiViewGetColumnInfo(hview : MSIHANDLE, ecolumninfo : MSICOLINFO, phrecord : *mut MSIHANDLE) -> u32); - MsiViewGetColumnInfo(core::mem::transmute(hview), core::mem::transmute(ecolumninfo), core::mem::transmute(phrecord)) + MsiViewGetColumnInfo(hview, ecolumninfo, core::mem::transmute(phrecord)) } #[inline] pub unsafe fn MsiViewGetErrorA(hview: MSIHANDLE, szcolumnnamebuffer: Option, pcchbuf: Option<*mut u32>) -> MSIDBERROR { windows_targets::link!("msi.dll" "system" fn MsiViewGetErrorA(hview : MSIHANDLE, szcolumnnamebuffer : windows_core::PSTR, pcchbuf : *mut u32) -> MSIDBERROR); - MsiViewGetErrorA(core::mem::transmute(hview), core::mem::transmute(szcolumnnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))) + MsiViewGetErrorA(hview, core::mem::transmute(szcolumnnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiViewGetErrorW(hview: MSIHANDLE, szcolumnnamebuffer: Option, pcchbuf: Option<*mut u32>) -> MSIDBERROR { windows_targets::link!("msi.dll" "system" fn MsiViewGetErrorW(hview : MSIHANDLE, szcolumnnamebuffer : windows_core::PWSTR, pcchbuf : *mut u32) -> MSIDBERROR); - MsiViewGetErrorW(core::mem::transmute(hview), core::mem::transmute(szcolumnnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))) + MsiViewGetErrorW(hview, core::mem::transmute(szcolumnnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuf.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MsiViewModify(hview: MSIHANDLE, emodifymode: MSIMODIFY, hrecord: MSIHANDLE) -> u32 { windows_targets::link!("msi.dll" "system" fn MsiViewModify(hview : MSIHANDLE, emodifymode : MSIMODIFY, hrecord : MSIHANDLE) -> u32); - MsiViewModify(core::mem::transmute(hview), core::mem::transmute(emodifymode), core::mem::transmute(hrecord)) + MsiViewModify(hview, emodifymode, hrecord) } #[inline] pub unsafe fn NormalizeFileForPatchSignature(filebuffer: *mut core::ffi::c_void, filesize: u32, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, newfilecoffbase: u32, newfilecofftime: u32, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>) -> i32 { windows_targets::link!("mspatcha.dll" "system" fn NormalizeFileForPatchSignature(filebuffer : *mut core::ffi::c_void, filesize : u32, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, newfilecoffbase : u32, newfilecofftime : u32, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE) -> i32); NormalizeFileForPatchSignature( core::mem::transmute(filebuffer), - core::mem::transmute(filesize), - core::mem::transmute(optionflags), + filesize, + optionflags, core::mem::transmute(optiondata.unwrap_or(core::mem::zeroed())), - core::mem::transmute(newfilecoffbase), - core::mem::transmute(newfilecofftime), + newfilecoffbase, + newfilecofftime, ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ignorerangearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), retainrangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -2599,12 +2577,12 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryActCtxSettingsW(dwflags : u32, hactctx : super::super::Foundation:: HANDLE, settingsnamespace : windows_core::PCWSTR, settingname : windows_core::PCWSTR, pvbuffer : windows_core::PWSTR, dwbuffer : usize, pdwwrittenorrequired : *mut usize) -> super::super::Foundation:: BOOL); - QueryActCtxSettingsW(core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(hactctx.unwrap_or(core::mem::zeroed())), settingsnamespace.param().abi(), settingname.param().abi(), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbuffer), core::mem::transmute(pdwwrittenorrequired.unwrap_or(core::mem::zeroed()))).ok() + QueryActCtxSettingsW(core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(hactctx.unwrap_or(core::mem::zeroed())), settingsnamespace.param().abi(), settingname.param().abi(), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), dwbuffer, core::mem::transmute(pdwwrittenorrequired.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn QueryActCtxW(dwflags: u32, hactctx: super::super::Foundation::HANDLE, pvsubinstance: Option<*const core::ffi::c_void>, ulinfoclass: u32, pvbuffer: Option<*mut core::ffi::c_void>, cbbuffer: usize, pcbwrittenorrequired: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryActCtxW(dwflags : u32, hactctx : super::super::Foundation:: HANDLE, pvsubinstance : *const core::ffi::c_void, ulinfoclass : u32, pvbuffer : *mut core::ffi::c_void, cbbuffer : usize, pcbwrittenorrequired : *mut usize) -> super::super::Foundation:: BOOL); - QueryActCtxW(core::mem::transmute(dwflags), core::mem::transmute(hactctx), core::mem::transmute(pvsubinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulinfoclass), core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbuffer), core::mem::transmute(pcbwrittenorrequired.unwrap_or(core::mem::zeroed()))).ok() + QueryActCtxW(dwflags, hactctx, core::mem::transmute(pvsubinstance.unwrap_or(core::mem::zeroed())), ulinfoclass, core::mem::transmute(pvbuffer.unwrap_or(core::mem::zeroed())), cbbuffer, core::mem::transmute(pcbwrittenorrequired.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReleaseActCtx(hactctx: super::super::Foundation::HANDLE) { @@ -2614,7 +2592,7 @@ pub unsafe fn ReleaseActCtx(hactctx: super::super::Foundation::HANDLE) { #[inline] pub unsafe fn SfcGetNextProtectedFile(rpchandle: super::super::Foundation::HANDLE, protfiledata: *mut PROTECTED_FILE_DATA) -> windows_core::Result<()> { windows_targets::link!("sfc.dll" "system" fn SfcGetNextProtectedFile(rpchandle : super::super::Foundation:: HANDLE, protfiledata : *mut PROTECTED_FILE_DATA) -> super::super::Foundation:: BOOL); - SfcGetNextProtectedFile(core::mem::transmute(rpchandle), core::mem::transmute(protfiledata)).ok() + SfcGetNextProtectedFile(rpchandle, core::mem::transmute(protfiledata)).ok() } #[inline] pub unsafe fn SfcIsFileProtected(rpchandle: super::super::Foundation::HANDLE, protfilename: P1) -> super::super::Foundation::BOOL @@ -2622,7 +2600,7 @@ where P1: windows_core::Param, { windows_targets::link!("sfc.dll" "system" fn SfcIsFileProtected(rpchandle : super::super::Foundation:: HANDLE, protfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SfcIsFileProtected(core::mem::transmute(rpchandle), protfilename.param().abi()) + SfcIsFileProtected(rpchandle, protfilename.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2631,7 +2609,7 @@ where P1: windows_core::Param, { windows_targets::link!("sfc.dll" "system" fn SfcIsKeyProtected(keyhandle : super::Registry:: HKEY, subkeyname : windows_core::PCWSTR, keysam : u32) -> super::super::Foundation:: BOOL); - SfcIsKeyProtected(core::mem::transmute(keyhandle), subkeyname.param().abi(), core::mem::transmute(keysam)) + SfcIsKeyProtected(keyhandle, subkeyname.param().abi(), keysam) } #[inline] pub unsafe fn SfpVerifyFile(pszfilename: P0, pszerror: &[u8]) -> super::super::Foundation::BOOL @@ -2648,17 +2626,17 @@ where P1: windows_core::Param, { windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - TestApplyPatchToFileA(patchfilename.param().abi(), oldfilename.param().abi(), core::mem::transmute(applyoptionflags)) + TestApplyPatchToFileA(patchfilename.param().abi(), oldfilename.param().abi(), applyoptionflags) } #[inline] pub unsafe fn TestApplyPatchToFileByBuffers(patchfilebuffer: &[u8], oldfilebuffer: Option<&[u8]>, newfilesize: Option<*mut u32>, applyoptionflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileByBuffers(patchfilebuffer : *const u8, patchfilesize : u32, oldfilebuffer : *const u8, oldfilesize : u32, newfilesize : *mut u32, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - TestApplyPatchToFileByBuffers(core::mem::transmute(patchfilebuffer.as_ptr()), patchfilebuffer.len().try_into().unwrap(), core::mem::transmute(oldfilebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), oldfilebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(newfilesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(applyoptionflags)) + TestApplyPatchToFileByBuffers(core::mem::transmute(patchfilebuffer.as_ptr()), patchfilebuffer.len().try_into().unwrap(), core::mem::transmute(oldfilebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), oldfilebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(newfilesize.unwrap_or(core::mem::zeroed())), applyoptionflags) } #[inline] pub unsafe fn TestApplyPatchToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - TestApplyPatchToFileByHandles(core::mem::transmute(patchfilehandle), core::mem::transmute(oldfilehandle), core::mem::transmute(applyoptionflags)) + TestApplyPatchToFileByHandles(patchfilehandle, oldfilehandle, applyoptionflags) } #[inline] pub unsafe fn TestApplyPatchToFileW(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> super::super::Foundation::BOOL @@ -2667,7 +2645,7 @@ where P1: windows_core::Param, { windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); - TestApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), core::mem::transmute(applyoptionflags)) + TestApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), applyoptionflags) } #[inline] pub unsafe fn ZombifyActCtx(hactctx: super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -3267,19 +3245,19 @@ impl IAssemblyCache { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UninstallAssembly)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszassemblyname.param().abi(), core::mem::transmute(prefdata), core::mem::transmute(puldisposition)).ok() + (windows_core::Interface::vtable(self).UninstallAssembly)(windows_core::Interface::as_raw(self), dwflags, pszassemblyname.param().abi(), core::mem::transmute(prefdata), core::mem::transmute(puldisposition)).ok() } pub unsafe fn QueryAssemblyInfo(&self, dwflags: QUERYASMINFO_FLAGS, pszassemblyname: P1, pasminfo: *mut ASSEMBLY_INFO) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryAssemblyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszassemblyname.param().abi(), core::mem::transmute(pasminfo)).ok() + (windows_core::Interface::vtable(self).QueryAssemblyInfo)(windows_core::Interface::as_raw(self), dwflags, pszassemblyname.param().abi(), core::mem::transmute(pasminfo)).ok() } pub unsafe fn CreateAssemblyCacheItem(&self, dwflags: u32, pvreserved: *mut core::ffi::c_void, ppasmitem: *mut Option, pszassemblyname: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateAssemblyCacheItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pvreserved), core::mem::transmute(ppasmitem), pszassemblyname.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateAssemblyCacheItem)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pvreserved), core::mem::transmute(ppasmitem), pszassemblyname.param().abi()).ok() } pub unsafe fn Reserved(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3289,7 +3267,7 @@ impl IAssemblyCache { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallAssembly)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszmanifestfilepath.param().abi(), core::mem::transmute(prefdata)).ok() + (windows_core::Interface::vtable(self).InstallAssembly)(windows_core::Interface::as_raw(self), dwflags, pszmanifestfilepath.param().abi(), core::mem::transmute(prefdata)).ok() } } #[repr(C)] @@ -3358,10 +3336,10 @@ impl IAssemblyCacheItem { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszstreamname.param().abi(), core::mem::transmute(dwformat), core::mem::transmute(dwformatflags), core::mem::transmute(ppistream), core::mem::transmute(pulimaxsize)).ok() + (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), dwflags, pszstreamname.param().abi(), dwformat, dwformatflags, core::mem::transmute(ppistream), core::mem::transmute(pulimaxsize)).ok() } pub unsafe fn Commit(&self, dwflags: u32, puldisposition: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(puldisposition)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(puldisposition)).ok() } pub unsafe fn AbortItem(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AbortItem)(windows_core::Interface::as_raw(self)).ok() @@ -3415,16 +3393,16 @@ windows_core::imp::define_interface!(IAssemblyName, IAssemblyName_Vtbl, 0xcd193b windows_core::imp::interface_hierarchy!(IAssemblyName, windows_core::IUnknown); impl IAssemblyName { pub unsafe fn SetProperty(&self, propertyid: u32, pvproperty: *mut core::ffi::c_void, cbproperty: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(pvproperty), core::mem::transmute(cbproperty)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(pvproperty), cbproperty).ok() } pub unsafe fn GetProperty(&self, propertyid: u32, pvproperty: *mut core::ffi::c_void, pcbproperty: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(pvproperty), core::mem::transmute(pcbproperty)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(pvproperty), core::mem::transmute(pcbproperty)).ok() } pub unsafe fn Finalize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finalize)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDisplayName(&self, szdisplayname: Option, pccdisplayname: *mut u32, dwdisplayflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(szdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccdisplayname), core::mem::transmute(dwdisplayflags)).ok() + (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(szdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pccdisplayname), dwdisplayflags).ok() } pub unsafe fn Reserved(&self, refiid: *const windows_core::GUID, punkreserved1: P1, punkreserved2: P2, szreserved: P3, llreserved: i64, pvreserved: *mut core::ffi::c_void, cbreserved: u32, ppreserved: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where @@ -3432,7 +3410,7 @@ impl IAssemblyName { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Reserved)(windows_core::Interface::as_raw(self), core::mem::transmute(refiid), punkreserved1.param().abi(), punkreserved2.param().abi(), szreserved.param().abi(), core::mem::transmute(llreserved), core::mem::transmute(pvreserved), core::mem::transmute(cbreserved), core::mem::transmute(ppreserved)).ok() + (windows_core::Interface::vtable(self).Reserved)(windows_core::Interface::as_raw(self), refiid, punkreserved1.param().abi(), punkreserved2.param().abi(), szreserved.param().abi(), llreserved, core::mem::transmute(pvreserved), cbreserved, core::mem::transmute(ppreserved)).ok() } pub unsafe fn GetName(&self, lpcwbuffer: *mut u32, pwzname: Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), core::mem::transmute(lpcwbuffer), core::mem::transmute(pwzname.unwrap_or(core::mem::zeroed()))).ok() @@ -3444,7 +3422,7 @@ impl IAssemblyName { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pname.param().abi(), core::mem::transmute(dwcmpflags)).ok() + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pname.param().abi(), dwcmpflags).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3542,10 +3520,10 @@ windows_core::imp::interface_hierarchy!(IEnumMsmDependency, windows_core::IUnkno impl IEnumMsmDependency { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, cfetch: u32, rgmsmdependencies: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cfetch), core::mem::transmute(rgmsmdependencies), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cfetch, core::mem::transmute(rgmsmdependencies), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cskip: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cskip)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cskip).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3617,10 +3595,10 @@ windows_core::imp::interface_hierarchy!(IEnumMsmError, windows_core::IUnknown); impl IEnumMsmError { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Next(&self, cfetch: u32, rgmsmerrors: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cfetch), core::mem::transmute(rgmsmerrors), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cfetch, core::mem::transmute(rgmsmerrors), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cskip: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cskip)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cskip).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3691,10 +3669,10 @@ windows_core::imp::define_interface!(IEnumMsmString, IEnumMsmString_Vtbl, 0x0add windows_core::imp::interface_hierarchy!(IEnumMsmString, windows_core::IUnknown); impl IEnumMsmString { pub unsafe fn Next(&self, cfetch: u32, rgbstrstrings: *mut windows_core::BSTR, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cfetch), core::mem::transmute(rgbstrstrings), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cfetch, core::mem::transmute(rgbstrstrings), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cskip: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cskip)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cskip).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3770,7 +3748,7 @@ windows_core::imp::interface_hierarchy!(IMsmDependencies, windows_core::IUnknown impl IMsmDependencies { pub unsafe fn get_Item(&self, item: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(item), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self, count: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() @@ -4033,7 +4011,7 @@ windows_core::imp::interface_hierarchy!(IMsmErrors, windows_core::IUnknown, supe impl IMsmErrors { pub unsafe fn get_Item(&self, item: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(item), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self, count: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() @@ -4163,10 +4141,10 @@ impl IMsmMerge { (windows_core::Interface::vtable(self).OpenDatabase)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path)).ok() } pub unsafe fn OpenModule(&self, path: &windows_core::BSTR, language: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenModule)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(language)).ok() + (windows_core::Interface::vtable(self).OpenModule)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), language).ok() } pub unsafe fn CloseDatabase(&self, commit: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseDatabase)(windows_core::Interface::as_raw(self), core::mem::transmute(commit)).ok() + (windows_core::Interface::vtable(self).CloseDatabase)(windows_core::Interface::as_raw(self), commit).ok() } pub unsafe fn CloseModule(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseModule)(windows_core::Interface::as_raw(self)).ok() @@ -4339,7 +4317,7 @@ windows_core::imp::interface_hierarchy!(IMsmStrings, windows_core::IUnknown, sup #[cfg(feature = "Win32_System_Com")] impl IMsmStrings { pub unsafe fn get_Item(&self, item: i32, r#return: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(item), core::mem::transmute(r#return)).ok() + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item, core::mem::transmute(r#return)).ok() } pub unsafe fn Count(&self, count: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() @@ -5810,10 +5788,10 @@ impl IPMDeploymentManager { (windows_core::Interface::vtable(self).ReportDownloadBegin)(windows_core::Interface::as_raw(self), core::mem::transmute(productid)).ok() } pub unsafe fn ReportDownloadProgress(&self, productid: windows_core::GUID, usprogress: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportDownloadProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(usprogress)).ok() + (windows_core::Interface::vtable(self).ReportDownloadProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), usprogress).ok() } pub unsafe fn ReportDownloadComplete(&self, productid: windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportDownloadComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).ReportDownloadComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), hrresult).ok() } pub unsafe fn BeginInstall(&self, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginInstall)(windows_core::Interface::as_raw(self), core::mem::transmute(pinstallinfo)).ok() @@ -5881,14 +5859,14 @@ impl IPMDeploymentManager { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RebindMdilBinaries(&self, productid: windows_core::GUID, filenames: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RebindMdilBinaries)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(filenames)).ok() + (windows_core::Interface::vtable(self).RebindMdilBinaries)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), filenames).ok() } pub unsafe fn RebindAllMdilBinaries(&self, productid: windows_core::GUID, instanceid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RebindAllMdilBinaries)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(instanceid)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegenerateXbf(&self, productid: windows_core::GUID, assemblypaths: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegenerateXbf)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(assemblypaths)).ok() + (windows_core::Interface::vtable(self).RegenerateXbf)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), assemblypaths).ok() } pub unsafe fn GenerateXbfForCurrentLocale(&self, productid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GenerateXbfForCurrentLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(productid)).ok() @@ -5904,7 +5882,7 @@ impl IPMDeploymentManager { } pub unsafe fn SetApplicationsNeedMaintenance(&self, requiredmaintenanceoperations: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetApplicationsNeedMaintenance)(windows_core::Interface::as_raw(self), core::mem::transmute(requiredmaintenanceoperations), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetApplicationsNeedMaintenance)(windows_core::Interface::as_raw(self), requiredmaintenanceoperations, &mut result__).map(|| result__) } pub unsafe fn UpdateChamberProfile(&self, productid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateChamberProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(productid)).ok() @@ -5935,7 +5913,7 @@ impl IPMDeploymentManager { (windows_core::Interface::vtable(self).ReportDownloadStatusUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(productid)).ok() } pub unsafe fn BeginUninstallWithOptions(&self, productid: windows_core::GUID, removaloptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginUninstallWithOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(removaloptions)).ok() + (windows_core::Interface::vtable(self).BeginUninstallWithOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), removaloptions).ok() } pub unsafe fn BindDeferredMdilBinaries(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BindDeferredMdilBinaries)(windows_core::Interface::as_raw(self)).ok() @@ -6275,7 +6253,7 @@ impl IPMEnumerationManager { } pub unsafe fn get_BackgroundServiceAgentInfo(&self, bsaid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_BackgroundServiceAgentInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(bsaid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_BackgroundServiceAgentInfo)(windows_core::Interface::as_raw(self), bsaid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AllLiveTileJobs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6283,14 +6261,14 @@ impl IPMEnumerationManager { } pub unsafe fn get_LiveTileJob(&self, productid: windows_core::GUID, tileid: &windows_core::BSTR, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_LiveTileJob)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute_copy(tileid), core::mem::transmute(recurrencetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_LiveTileJob)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute_copy(tileid), recurrencetype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_ApplicationInfoExternal(&self, productid: windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).get_ApplicationInfoExternal)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_FileHandlerGenericLogo(&self, filetype: &windows_core::BSTR, logosize: PM_LOGO_SIZE, plogo: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_FileHandlerGenericLogo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filetype), core::mem::transmute(logosize), core::mem::transmute(plogo)).ok() + (windows_core::Interface::vtable(self).get_FileHandlerGenericLogo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filetype), logosize, core::mem::transmute(plogo)).ok() } pub unsafe fn get_ApplicationInfoFromAccessClaims(&self, sysappid0: &windows_core::BSTR, sysappid1: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6573,7 +6551,7 @@ impl IPMExtensionFileExtensionInfo { (windows_core::Interface::vtable(self).DisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(pdisplayname)).ok() } pub unsafe fn get_Logo(&self, logosize: PM_LOGO_SIZE, plogo: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_Logo)(windows_core::Interface::as_raw(self), core::mem::transmute(logosize), core::mem::transmute(plogo)).ok() + (windows_core::Interface::vtable(self).get_Logo)(windows_core::Interface::as_raw(self), logosize, core::mem::transmute(plogo)).ok() } pub unsafe fn get_ContentType(&self, filetype: &windows_core::BSTR, pcontenttype: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_ContentType)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(filetype), core::mem::transmute(pcontenttype)).ok() @@ -7001,7 +6979,7 @@ impl IPMLiveTileJobInfo { (windows_core::Interface::vtable(self).IntervalDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn set_IntervalDuration(&self, ulintervalduration: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_IntervalDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(ulintervalduration)).ok() + (windows_core::Interface::vtable(self).set_IntervalDuration)(windows_core::Interface::as_raw(self), ulintervalduration).ok() } pub unsafe fn RunForever(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7015,21 +6993,21 @@ impl IPMLiveTileJobInfo { (windows_core::Interface::vtable(self).MaxRunCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn set_MaxRunCount(&self, ulmaxruncount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_MaxRunCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmaxruncount)).ok() + (windows_core::Interface::vtable(self).set_MaxRunCount)(windows_core::Interface::as_raw(self), ulmaxruncount).ok() } pub unsafe fn RunCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RunCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn set_RunCount(&self, ulruncount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_RunCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulruncount)).ok() + (windows_core::Interface::vtable(self).set_RunCount)(windows_core::Interface::as_raw(self), ulruncount).ok() } pub unsafe fn RecurrenceType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RecurrenceType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn set_RecurrenceType(&self, ulrecurrencetype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_RecurrenceType)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrecurrencetype)).ok() + (windows_core::Interface::vtable(self).set_RecurrenceType)(windows_core::Interface::as_raw(self), ulrecurrencetype).ok() } pub unsafe fn get_TileXML(&self, ptilexml: *mut *mut u8, pcbtilexml: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_TileXML)(windows_core::Interface::as_raw(self), core::mem::transmute(ptilexml), core::mem::transmute(pcbtilexml)).ok() @@ -7048,14 +7026,14 @@ impl IPMLiveTileJobInfo { (windows_core::Interface::vtable(self).AttemptCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn set_AttemptCount(&self, ulattemptcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_AttemptCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulattemptcount)).ok() + (windows_core::Interface::vtable(self).set_AttemptCount)(windows_core::Interface::as_raw(self), ulattemptcount).ok() } pub unsafe fn DownloadState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DownloadState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn set_DownloadState(&self, uldownloadstate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_DownloadState)(windows_core::Interface::as_raw(self), core::mem::transmute(uldownloadstate)).ok() + (windows_core::Interface::vtable(self).set_DownloadState)(windows_core::Interface::as_raw(self), uldownloadstate).ok() } } #[repr(C)] @@ -7704,11 +7682,11 @@ impl IPMTileInfo { } pub unsafe fn get_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_HubPinnedState)(windows_core::Interface::as_raw(self), core::mem::transmute(hubtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_HubPinnedState)(windows_core::Interface::as_raw(self), hubtype, &mut result__).map(|| result__) } pub unsafe fn get_HubPosition(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_HubPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(hubtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_HubPosition)(windows_core::Interface::as_raw(self), hubtype, &mut result__).map(|| result__) } pub unsafe fn IsNotified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7731,7 +7709,7 @@ impl IPMTileInfo { } pub unsafe fn get_PropertyById(&self, propid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PropertyById)(windows_core::Interface::as_raw(self), core::mem::transmute(propid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_PropertyById)(windows_core::Interface::as_raw(self), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_InvocationInfo(&self, pimageurn: *mut windows_core::BSTR, pparameters: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_InvocationInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pimageurn), core::mem::transmute(pparameters)).ok() @@ -7742,19 +7720,19 @@ impl IPMTileInfo { } pub unsafe fn get_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_HubTileSize)(windows_core::Interface::as_raw(self), core::mem::transmute(hubtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_HubTileSize)(windows_core::Interface::as_raw(self), hubtype, &mut result__).map(|| result__) } pub unsafe fn set_HubPosition(&self, hubtype: PM_TILE_HUBTYPE, position: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_HubPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(hubtype), core::mem::transmute(position)).ok() + (windows_core::Interface::vtable(self).set_HubPosition)(windows_core::Interface::as_raw(self), hubtype, position).ok() } pub unsafe fn set_NotifiedState(&self, notified: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).set_NotifiedState)(windows_core::Interface::as_raw(self), notified.into()).ok() } pub unsafe fn set_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE, pinned: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_HubPinnedState)(windows_core::Interface::as_raw(self), core::mem::transmute(hubtype), pinned.into()).ok() + (windows_core::Interface::vtable(self).set_HubPinnedState)(windows_core::Interface::as_raw(self), hubtype, pinned.into()).ok() } pub unsafe fn set_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_HubTileSize)(windows_core::Interface::as_raw(self), core::mem::transmute(hubtype), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).set_HubTileSize)(windows_core::Interface::as_raw(self), hubtype, size).ok() } pub unsafe fn set_InvocationInfo(&self, taskname: &windows_core::BSTR, taskparameters: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).set_InvocationInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(taskname), core::mem::transmute_copy(taskparameters)).ok() @@ -8409,10 +8387,10 @@ impl IValidate { (windows_core::Interface::vtable(self).CloseCUB)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetDisplay(&self, pdisplayfunction: LPDISPLAYVAL, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(pdisplayfunction), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), pdisplayfunction, core::mem::transmute(pcontext)).ok() } pub unsafe fn SetStatus(&self, pstatusfunction: LPEVALCOMCALLBACK, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatusfunction), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), pstatusfunction, core::mem::transmute(pcontext)).ok() } pub unsafe fn Validate(&self, wzices: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationVerifier/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationVerifier/mod.rs index d7e680f278..52cba8a90f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationVerifier/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationVerifier/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn VerifierEnumerateResource(process: super::super::Foundation::HANDLE, flags: VERIFIER_ENUM_RESOURCE_FLAGS, resourcetype: eAvrfResourceTypes, resourcecallback: AVRF_RESOURCE_ENUMERATE_CALLBACK, enumerationcontext: *mut core::ffi::c_void) -> u32 { windows_targets::link!("verifier.dll" "system" fn VerifierEnumerateResource(process : super::super::Foundation:: HANDLE, flags : VERIFIER_ENUM_RESOURCE_FLAGS, resourcetype : u32, resourcecallback : AVRF_RESOURCE_ENUMERATE_CALLBACK, enumerationcontext : *mut core::ffi::c_void) -> u32); - VerifierEnumerateResource(core::mem::transmute(process), core::mem::transmute(flags), resourcetype.0 as _, core::mem::transmute(resourcecallback), core::mem::transmute(enumerationcontext)) + VerifierEnumerateResource(process, flags, resourcetype.0 as _, resourcecallback, core::mem::transmute(enumerationcontext)) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs index 6eaf3c856c..1c8a02a6e2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs @@ -213,7 +213,7 @@ windows_core::imp::interface_hierarchy!(IProvideWinSATResultsInfo, windows_core: impl IProvideWinSATResultsInfo { pub unsafe fn GetAssessmentInfo(&self, assessment: WINSAT_ASSESSMENT_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAssessmentInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(assessment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAssessmentInfo)(windows_core::Interface::as_raw(self), assessment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AssessmentState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -328,7 +328,7 @@ impl IProvideWinSATVisuals { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn get_Bitmap(&self, bitmapsize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Bitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(bitmapsize), core::mem::transmute(state), core::mem::transmute(rating), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_Bitmap)(windows_core::Interface::as_raw(self), bitmapsize, state, rating, &mut result__).map(|| result__) } } #[repr(C)] @@ -528,13 +528,13 @@ impl IWinSATInitiateEvents { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WinSATComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), strdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).WinSATComplete)(windows_core::Interface::as_raw(self), hresult, strdescription.param().abi()).ok() } pub unsafe fn WinSATUpdate(&self, ucurrenttick: u32, uticktotal: u32, strcurrentstate: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WinSATUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(ucurrenttick), core::mem::transmute(uticktotal), strcurrentstate.param().abi()).ok() + (windows_core::Interface::vtable(self).WinSATUpdate)(windows_core::Interface::as_raw(self), ucurrenttick, uticktotal, strcurrentstate.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs index b44a24d30f..a8965f5290 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs @@ -5,7 +5,7 @@ where { windows_targets::link!("mscoree.dll" "system" fn CLRCreateInstance(clsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppinterface : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CLRCreateInstance(core::mem::transmute(clsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CLRCreateInstance(clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CallFunctionShim(szdllname: P0, szfunctionname: P1, lpvargument1: *mut core::ffi::c_void, lpvargument2: *mut core::ffi::c_void, szversion: P4, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -23,7 +23,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn ClrCreateManagedInstance(ptypename : windows_core::PCWSTR, riid : *const windows_core::GUID, ppobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ClrCreateManagedInstance(ptypename.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppobject)).ok() + ClrCreateManagedInstance(ptypename.param().abi(), riid, core::mem::transmute(ppobject)).ok() } #[inline] pub unsafe fn CorBindToCurrentRuntime(pwszfilename: P0, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -31,7 +31,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CorBindToCurrentRuntime(pwszfilename : windows_core::PCWSTR, rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CorBindToCurrentRuntime(pwszfilename.param().abi(), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CorBindToCurrentRuntime(pwszfilename.param().abi(), rclsid, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CorBindToRuntime(pwszversion: P0, pwszbuildflavor: P1, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -40,7 +40,7 @@ where P1: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CorBindToRuntime(pwszversion : windows_core::PCWSTR, pwszbuildflavor : windows_core::PCWSTR, rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CorBindToRuntime(pwszversion.param().abi(), pwszbuildflavor.param().abi(), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CorBindToRuntime(pwszversion.param().abi(), pwszbuildflavor.param().abi(), rclsid, riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -49,7 +49,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CorBindToRuntimeByCfg(pcfgstream : * mut core::ffi::c_void, reserved : u32, startupflags : u32, rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CorBindToRuntimeByCfg(pcfgstream.param().abi(), core::mem::transmute(reserved), core::mem::transmute(startupflags), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CorBindToRuntimeByCfg(pcfgstream.param().abi(), reserved, startupflags, rclsid, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CorBindToRuntimeEx(pwszversion: P0, pwszbuildflavor: P1, startupflags: u32, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -58,7 +58,7 @@ where P1: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CorBindToRuntimeEx(pwszversion : windows_core::PCWSTR, pwszbuildflavor : windows_core::PCWSTR, startupflags : u32, rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CorBindToRuntimeEx(pwszversion.param().abi(), pwszbuildflavor.param().abi(), core::mem::transmute(startupflags), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CorBindToRuntimeEx(pwszversion.param().abi(), pwszbuildflavor.param().abi(), startupflags, rclsid, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CorBindToRuntimeHost(pwszversion: P0, pwszbuildflavor: P1, pwszhostconfigfile: P2, preserved: *mut core::ffi::c_void, startupflags: u32, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -68,12 +68,12 @@ where P2: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CorBindToRuntimeHost(pwszversion : windows_core::PCWSTR, pwszbuildflavor : windows_core::PCWSTR, pwszhostconfigfile : windows_core::PCWSTR, preserved : *mut core::ffi::c_void, startupflags : u32, rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CorBindToRuntimeHost(pwszversion.param().abi(), pwszbuildflavor.param().abi(), pwszhostconfigfile.param().abi(), core::mem::transmute(preserved), core::mem::transmute(startupflags), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CorBindToRuntimeHost(pwszversion.param().abi(), pwszbuildflavor.param().abi(), pwszhostconfigfile.param().abi(), core::mem::transmute(preserved), startupflags, rclsid, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CorExitProcess(exitcode: i32) { windows_targets::link!("mscoree.dll" "system" fn CorExitProcess(exitcode : i32)); - CorExitProcess(core::mem::transmute(exitcode)) + CorExitProcess(exitcode) } #[cfg(feature = "Win32_System_Threading")] #[inline] @@ -82,7 +82,7 @@ where P1: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CorLaunchApplication(dwclickoncehost : HOST_TYPE, pwzappfullname : windows_core::PCWSTR, dwmanifestpaths : u32, ppwzmanifestpaths : *const windows_core::PCWSTR, dwactivationdata : u32, ppwzactivationdata : *const windows_core::PCWSTR, lpprocessinformation : *mut super::Threading:: PROCESS_INFORMATION) -> windows_core::HRESULT); - CorLaunchApplication(core::mem::transmute(dwclickoncehost), pwzappfullname.param().abi(), core::mem::transmute(dwmanifestpaths), core::mem::transmute(ppwzmanifestpaths), core::mem::transmute(dwactivationdata), core::mem::transmute(ppwzactivationdata), core::mem::transmute(lpprocessinformation)).ok() + CorLaunchApplication(dwclickoncehost, pwzappfullname.param().abi(), dwmanifestpaths, ppwzmanifestpaths, dwactivationdata, ppwzactivationdata, core::mem::transmute(lpprocessinformation)).ok() } #[inline] pub unsafe fn CorMarkThreadInThreadPool() { @@ -96,13 +96,13 @@ where { windows_targets::link!("mscoree.dll" "system" fn CreateDebuggingInterfaceFromVersion(idebuggerversion : i32, szdebuggeeversion : windows_core::PCWSTR, ppcordb : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateDebuggingInterfaceFromVersion(core::mem::transmute(idebuggerversion), szdebuggeeversion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDebuggingInterfaceFromVersion(idebuggerversion, szdebuggeeversion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn GetCLRIdentityManager(riid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("mscoree.dll" "system" fn GetCLRIdentityManager(riid : *const windows_core::GUID, ppmanager : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetCLRIdentityManager(core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + GetCLRIdentityManager(riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn GetCORRequiredVersion(pbuffer: &mut [u16], dwlength: *mut u32) -> windows_core::Result<()> { @@ -147,8 +147,8 @@ where pexe.param().abi(), pwszversion.param().abi(), pconfigurationfile.param().abi(), - core::mem::transmute(startupflags), - core::mem::transmute(runtimeinfoflags), + startupflags, + runtimeinfoflags, core::mem::transmute(pdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwdirectorylength.unwrap_or(core::mem::zeroed())), @@ -169,12 +169,12 @@ where #[inline] pub unsafe fn GetRequestedRuntimeVersionForCLSID(rclsid: *const windows_core::GUID, pversion: Option<&mut [u16]>, dwlength: Option<*mut u32>, dwresolutionflags: CLSID_RESOLUTION_FLAGS) -> windows_core::Result<()> { windows_targets::link!("mscoree.dll" "system" fn GetRequestedRuntimeVersionForCLSID(rclsid : *const windows_core::GUID, pversion : windows_core::PWSTR, cchbuffer : u32, dwlength : *mut u32, dwresolutionflags : CLSID_RESOLUTION_FLAGS) -> windows_core::HRESULT); - GetRequestedRuntimeVersionForCLSID(core::mem::transmute(rclsid), core::mem::transmute(pversion.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pversion.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwresolutionflags)).ok() + GetRequestedRuntimeVersionForCLSID(rclsid, core::mem::transmute(pversion.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pversion.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwlength.unwrap_or(core::mem::zeroed())), dwresolutionflags).ok() } #[inline] pub unsafe fn GetVersionFromProcess(hprocess: super::super::Foundation::HANDLE, pversion: &mut [u16], dwlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mscoree.dll" "system" fn GetVersionFromProcess(hprocess : super::super::Foundation:: HANDLE, pversion : windows_core::PWSTR, cchbuffer : u32, dwlength : *mut u32) -> windows_core::HRESULT); - GetVersionFromProcess(core::mem::transmute(hprocess), core::mem::transmute(pversion.as_ptr()), pversion.len().try_into().unwrap(), core::mem::transmute(dwlength)).ok() + GetVersionFromProcess(hprocess, core::mem::transmute(pversion.as_ptr()), pversion.len().try_into().unwrap(), core::mem::transmute(dwlength)).ok() } #[inline] pub unsafe fn LoadLibraryShim(szdllname: P0, szversion: P1, pvreserved: *mut core::ffi::c_void, phmoddll: *mut super::super::Foundation::HMODULE) -> windows_core::Result<()> @@ -188,17 +188,17 @@ where #[inline] pub unsafe fn LoadStringRC(iresouceid: u32, szbuffer: &mut [u16], bquiet: i32) -> windows_core::Result<()> { windows_targets::link!("mscoree.dll" "system" fn LoadStringRC(iresouceid : u32, szbuffer : windows_core::PWSTR, imax : i32, bquiet : i32) -> windows_core::HRESULT); - LoadStringRC(core::mem::transmute(iresouceid), core::mem::transmute(szbuffer.as_ptr()), szbuffer.len().try_into().unwrap(), core::mem::transmute(bquiet)).ok() + LoadStringRC(iresouceid, core::mem::transmute(szbuffer.as_ptr()), szbuffer.len().try_into().unwrap(), bquiet).ok() } #[inline] pub unsafe fn LoadStringRCEx(lcid: u32, iresouceid: u32, szbuffer: &mut [u16], bquiet: i32, pcwchused: *mut i32) -> windows_core::Result<()> { windows_targets::link!("mscoree.dll" "system" fn LoadStringRCEx(lcid : u32, iresouceid : u32, szbuffer : windows_core::PWSTR, imax : i32, bquiet : i32, pcwchused : *mut i32) -> windows_core::HRESULT); - LoadStringRCEx(core::mem::transmute(lcid), core::mem::transmute(iresouceid), core::mem::transmute(szbuffer.as_ptr()), szbuffer.len().try_into().unwrap(), core::mem::transmute(bquiet), core::mem::transmute(pcwchused)).ok() + LoadStringRCEx(lcid, iresouceid, core::mem::transmute(szbuffer.as_ptr()), szbuffer.len().try_into().unwrap(), bquiet, core::mem::transmute(pcwchused)).ok() } #[inline] pub unsafe fn LockClrVersion(hostcallback: FLockClrVersionCallback, pbeginhostsetup: *mut FLockClrVersionCallback, pendhostsetup: *mut FLockClrVersionCallback) -> windows_core::Result<()> { windows_targets::link!("mscoree.dll" "system" fn LockClrVersion(hostcallback : FLockClrVersionCallback, pbeginhostsetup : *mut FLockClrVersionCallback, pendhostsetup : *mut FLockClrVersionCallback) -> windows_core::HRESULT); - LockClrVersion(core::mem::transmute(hostcallback), core::mem::transmute(pbeginhostsetup), core::mem::transmute(pendhostsetup)).ok() + LockClrVersion(hostcallback, core::mem::transmute(pbeginhostsetup), core::mem::transmute(pendhostsetup)).ok() } #[inline] pub unsafe fn RunDll32ShimW(hwnd: super::super::Foundation::HWND, hinst: super::super::Foundation::HINSTANCE, lpszcmdline: P2, ncmdshow: i32) -> windows_core::Result<()> @@ -206,7 +206,7 @@ where P2: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn RunDll32ShimW(hwnd : super::super::Foundation:: HWND, hinst : super::super::Foundation:: HINSTANCE, lpszcmdline : windows_core::PCWSTR, ncmdshow : i32) -> windows_core::HRESULT); - RunDll32ShimW(core::mem::transmute(hwnd), core::mem::transmute(hinst), lpszcmdline.param().abi(), core::mem::transmute(ncmdshow)).ok() + RunDll32ShimW(hwnd, hinst, lpszcmdline.param().abi(), ncmdshow).ok() } pub const APPDOMAIN_FORCE_TRIVIAL_WAIT_OPERATIONS: APPDOMAIN_SECURITY_FLAGS = APPDOMAIN_SECURITY_FLAGS(8i32); pub const APPDOMAIN_SECURITY_DEFAULT: APPDOMAIN_SECURITY_FLAGS = APPDOMAIN_SECURITY_FLAGS(0i32); @@ -439,7 +439,7 @@ windows_core::imp::define_interface!(IActionOnCLREvent, IActionOnCLREvent_Vtbl, windows_core::imp::interface_hierarchy!(IActionOnCLREvent, windows_core::IUnknown); impl IActionOnCLREvent { pub unsafe fn OnEvent(&self, event: EClrEvent, data: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), core::mem::transmute(data)).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), event, data).ok() } } #[repr(C)] @@ -467,7 +467,7 @@ windows_core::imp::define_interface!(IApartmentCallback, IApartmentCallback_Vtbl windows_core::imp::interface_hierarchy!(IApartmentCallback, windows_core::IUnknown); impl IApartmentCallback { pub unsafe fn DoCallback(&self, pfunc: usize, pdata: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(pfunc), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).DoCallback)(windows_core::Interface::as_raw(self), pfunc, pdata).ok() } } #[repr(C)] @@ -526,13 +526,13 @@ windows_core::imp::define_interface!(ICLRAppDomainResourceMonitor, ICLRAppDomain windows_core::imp::interface_hierarchy!(ICLRAppDomainResourceMonitor, windows_core::IUnknown); impl ICLRAppDomainResourceMonitor { pub unsafe fn GetCurrentAllocated(&self, dwappdomainid: u32, pbytesallocated: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCurrentAllocated)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappdomainid), core::mem::transmute(pbytesallocated)).ok() + (windows_core::Interface::vtable(self).GetCurrentAllocated)(windows_core::Interface::as_raw(self), dwappdomainid, core::mem::transmute(pbytesallocated)).ok() } pub unsafe fn GetCurrentSurvived(&self, dwappdomainid: u32, pappdomainbytessurvived: *mut u64, ptotalbytessurvived: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCurrentSurvived)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappdomainid), core::mem::transmute(pappdomainbytessurvived), core::mem::transmute(ptotalbytessurvived)).ok() + (windows_core::Interface::vtable(self).GetCurrentSurvived)(windows_core::Interface::as_raw(self), dwappdomainid, core::mem::transmute(pappdomainbytessurvived), core::mem::transmute(ptotalbytessurvived)).ok() } pub unsafe fn GetCurrentCpuTime(&self, dwappdomainid: u32, pmilliseconds: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCurrentCpuTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappdomainid), core::mem::transmute(pmilliseconds)).ok() + (windows_core::Interface::vtable(self).GetCurrentCpuTime)(windows_core::Interface::as_raw(self), dwappdomainid, core::mem::transmute(pmilliseconds)).ok() } } #[repr(C)] @@ -578,20 +578,20 @@ windows_core::imp::interface_hierarchy!(ICLRAssemblyIdentityManager, windows_cor impl ICLRAssemblyIdentityManager { pub unsafe fn GetCLRAssemblyReferenceList(&self, ppwzassemblyreferences: *const windows_core::PCWSTR, dwnumofreferences: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCLRAssemblyReferenceList)(windows_core::Interface::as_raw(self), core::mem::transmute(ppwzassemblyreferences), core::mem::transmute(dwnumofreferences), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCLRAssemblyReferenceList)(windows_core::Interface::as_raw(self), ppwzassemblyreferences, dwnumofreferences, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBindingIdentityFromFile(&self, pwzfilepath: P0, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBindingIdentityFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() + (windows_core::Interface::vtable(self).GetBindingIdentityFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), dwflags, core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBindingIdentityFromStream(&self, pstream: P0, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBindingIdentityFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() + (windows_core::Interface::vtable(self).GetBindingIdentityFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwflags, core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() } pub unsafe fn GetReferencedAssembliesFromFile(&self, pwzfilepath: P0, dwflags: u32, pexcludeassemblieslist: P2) -> windows_core::Result where @@ -599,7 +599,7 @@ impl ICLRAssemblyIdentityManager { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReferencedAssembliesFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(dwflags), pexcludeassemblieslist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReferencedAssembliesFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), dwflags, pexcludeassemblieslist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetReferencedAssembliesFromStream(&self, pstream: P0, dwflags: u32, pexcludeassemblieslist: P2) -> windows_core::Result @@ -608,14 +608,14 @@ impl ICLRAssemblyIdentityManager { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReferencedAssembliesFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(dwflags), pexcludeassemblieslist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReferencedAssembliesFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwflags, pexcludeassemblieslist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetProbingAssembliesFromReference(&self, dwmachinetype: u32, dwflags: u32, pwzreferenceidentity: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProbingAssembliesFromReference)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmachinetype), core::mem::transmute(dwflags), pwzreferenceidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProbingAssembliesFromReference)(windows_core::Interface::as_raw(self), dwmachinetype, dwflags, pwzreferenceidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsStronglyNamed(&self, pwzassemblyidentity: P0) -> windows_core::Result where @@ -781,7 +781,7 @@ windows_core::imp::define_interface!(ICLRControl, ICLRControl_Vtbl, 0x9065597e_d windows_core::imp::interface_hierarchy!(ICLRControl, windows_core::IUnknown); impl ICLRControl { pub unsafe fn GetCLRManager(&self, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCLRManager)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).GetCLRManager)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppobject)).ok() } pub unsafe fn SetAppDomainManagerType(&self, pwzappdomainmanagerassembly: P0, pwzappdomainmanagertype: P1) -> windows_core::Result<()> where @@ -829,17 +829,17 @@ impl ICLRDebugManager { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnectionid), szconnectionname.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginConnection)(windows_core::Interface::as_raw(self), dwconnectionid, szconnectionname.param().abi()).ok() } pub unsafe fn SetConnectionTasks(&self, id: u32, ppclrtask: &[Option]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectionTasks)(windows_core::Interface::as_raw(self), core::mem::transmute(id), ppclrtask.len().try_into().unwrap(), core::mem::transmute(ppclrtask.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetConnectionTasks)(windows_core::Interface::as_raw(self), id, ppclrtask.len().try_into().unwrap(), core::mem::transmute(ppclrtask.as_ptr())).ok() } pub unsafe fn EndConnection(&self, dwconnectionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnectionid)).ok() + (windows_core::Interface::vtable(self).EndConnection)(windows_core::Interface::as_raw(self), dwconnectionid).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn SetDacl(&self, pacl: *const super::super::Security::ACL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDacl)(windows_core::Interface::as_raw(self), core::mem::transmute(pacl)).ok() + (windows_core::Interface::vtable(self).SetDacl)(windows_core::Interface::as_raw(self), pacl).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn GetDacl(&self) -> windows_core::Result<*mut super::super::Security::ACL> { @@ -851,7 +851,7 @@ impl ICLRDebugManager { (windows_core::Interface::vtable(self).IsDebuggerAttached)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSymbolReadingPolicy(&self, policy: ESymbolReadingPolicy) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolReadingPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(policy)).ok() + (windows_core::Interface::vtable(self).SetSymbolReadingPolicy)(windows_core::Interface::as_raw(self), policy).ok() } } #[repr(C)] @@ -949,10 +949,10 @@ impl ICLRDebugging { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenVirtualProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(modulebaseaddress), pdatatarget.param().abi(), plibraryprovider.param().abi(), core::mem::transmute(pmaxdebuggersupportedversion), core::mem::transmute(riidprocess), core::mem::transmute(ppprocess), core::mem::transmute(pversion), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).OpenVirtualProcess)(windows_core::Interface::as_raw(self), modulebaseaddress, pdatatarget.param().abi(), plibraryprovider.param().abi(), pmaxdebuggersupportedversion, riidprocess, core::mem::transmute(ppprocess), core::mem::transmute(pversion), core::mem::transmute(pdwflags)).ok() } pub unsafe fn CanUnloadNow(&self, hmodule: super::super::Foundation::HMODULE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CanUnloadNow)(windows_core::Interface::as_raw(self), core::mem::transmute(hmodule)).ok() + (windows_core::Interface::vtable(self).CanUnloadNow)(windows_core::Interface::as_raw(self), hmodule).ok() } } #[repr(C)] @@ -994,7 +994,7 @@ impl ICLRDebuggingLibraryProvider { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProvideLibrary)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), core::mem::transmute(dwtimestamp), core::mem::transmute(dwsizeofimage), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProvideLibrary)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), dwtimestamp, dwsizeofimage, &mut result__).map(|| result__) } } #[repr(C)] @@ -1032,10 +1032,10 @@ impl ICLRDomainManager { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppDomainManagerType)(windows_core::Interface::as_raw(self), wszappdomainmanagerassembly.param().abi(), wszappdomainmanagertype.param().abi(), core::mem::transmute(dwinitializedomainflags)).ok() + (windows_core::Interface::vtable(self).SetAppDomainManagerType)(windows_core::Interface::as_raw(self), wszappdomainmanagerassembly.param().abi(), wszappdomainmanagertype.param().abi(), dwinitializedomainflags).ok() } pub unsafe fn SetPropertiesForDefaultAppDomain(&self, nproperties: u32, pwszpropertynames: *const windows_core::PCWSTR, pwszpropertyvalues: *const windows_core::PCWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertiesForDefaultAppDomain)(windows_core::Interface::as_raw(self), core::mem::transmute(nproperties), core::mem::transmute(pwszpropertynames), core::mem::transmute(pwszpropertyvalues)).ok() + (windows_core::Interface::vtable(self).SetPropertiesForDefaultAppDomain)(windows_core::Interface::as_raw(self), nproperties, pwszpropertynames, pwszpropertyvalues).ok() } } #[repr(C)] @@ -1076,7 +1076,7 @@ impl ICLRErrorReportingManager { (windows_core::Interface::vtable(self).GetBucketParametersForCurrentException)(windows_core::Interface::as_raw(self), core::mem::transmute(pparams)).ok() } pub unsafe fn BeginCustomDump(&self, dwflavor: ECustomDumpFlavor, items: &[CustomDumpItem], dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginCustomDump)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflavor), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr()), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).BeginCustomDump)(windows_core::Interface::as_raw(self), dwflavor, items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr()), dwreserved).ok() } pub unsafe fn EndCustomDump(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndCustomDump)(windows_core::Interface::as_raw(self)).ok() @@ -1124,13 +1124,13 @@ windows_core::imp::define_interface!(ICLRGCManager, ICLRGCManager_Vtbl, 0x54d900 windows_core::imp::interface_hierarchy!(ICLRGCManager, windows_core::IUnknown); impl ICLRGCManager { pub unsafe fn Collect(&self, generation: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Collect)(windows_core::Interface::as_raw(self), core::mem::transmute(generation)).ok() + (windows_core::Interface::vtable(self).Collect)(windows_core::Interface::as_raw(self), generation).ok() } pub unsafe fn GetStats(&self, pstats: *mut COR_GC_STATS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStats)(windows_core::Interface::as_raw(self), core::mem::transmute(pstats)).ok() } pub unsafe fn SetGCStartupLimits(&self, segmentsize: u32, maxgen0size: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGCStartupLimits)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentsize), core::mem::transmute(maxgen0size)).ok() + (windows_core::Interface::vtable(self).SetGCStartupLimits)(windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } } #[repr(C)] @@ -1181,7 +1181,7 @@ impl core::ops::Deref for ICLRGCManager2 { windows_core::imp::interface_hierarchy!(ICLRGCManager2, windows_core::IUnknown, ICLRGCManager); impl ICLRGCManager2 { pub unsafe fn SetGCStartupLimitsEx(&self, segmentsize: usize, maxgen0size: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGCStartupLimitsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentsize), core::mem::transmute(maxgen0size)).ok() + (windows_core::Interface::vtable(self).SetGCStartupLimitsEx)(windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } } #[repr(C)] @@ -1213,13 +1213,13 @@ impl ICLRHostBindingPolicyManager { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyApplicationPolicy)(windows_core::Interface::as_raw(self), pwzsourceassemblyidentity.param().abi(), pwztargetassemblyidentity.param().abi(), core::mem::transmute(pbapplicationpolicy), core::mem::transmute(cbapppolicysize), core::mem::transmute(dwpolicymodifyflags), core::mem::transmute(pbnewapplicationpolicy), core::mem::transmute(pcbnewapppolicysize)).ok() + (windows_core::Interface::vtable(self).ModifyApplicationPolicy)(windows_core::Interface::as_raw(self), pwzsourceassemblyidentity.param().abi(), pwztargetassemblyidentity.param().abi(), pbapplicationpolicy, cbapppolicysize, dwpolicymodifyflags, core::mem::transmute(pbnewapplicationpolicy), core::mem::transmute(pcbnewapppolicysize)).ok() } pub unsafe fn EvaluatePolicy(&self, pwzreferenceidentity: P0, pbapplicationpolicy: *const u8, cbapppolicysize: u32, pwzpostpolicyreferenceidentity: windows_core::PWSTR, pcchpostpolicyreferenceidentity: *mut u32, pdwpoliciesapplied: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluatePolicy)(windows_core::Interface::as_raw(self), pwzreferenceidentity.param().abi(), core::mem::transmute(pbapplicationpolicy), core::mem::transmute(cbapppolicysize), core::mem::transmute(pwzpostpolicyreferenceidentity), core::mem::transmute(pcchpostpolicyreferenceidentity), core::mem::transmute(pdwpoliciesapplied)).ok() + (windows_core::Interface::vtable(self).EvaluatePolicy)(windows_core::Interface::as_raw(self), pwzreferenceidentity.param().abi(), pbapplicationpolicy, cbapppolicysize, core::mem::transmute(pwzpostpolicyreferenceidentity), core::mem::transmute(pcchpostpolicyreferenceidentity), core::mem::transmute(pdwpoliciesapplied)).ok() } } #[repr(C)] @@ -1257,7 +1257,7 @@ windows_core::imp::define_interface!(ICLRHostProtectionManager, ICLRHostProtecti windows_core::imp::interface_hierarchy!(ICLRHostProtectionManager, windows_core::IUnknown); impl ICLRHostProtectionManager { pub unsafe fn SetProtectedCategories(&self, categories: EApiCategories) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtectedCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(categories)).ok() + (windows_core::Interface::vtable(self).SetProtectedCategories)(windows_core::Interface::as_raw(self), categories).ok() } pub unsafe fn SetEagerSerializeGrantSets(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetEagerSerializeGrantSets)(windows_core::Interface::as_raw(self)).ok() @@ -1298,7 +1298,7 @@ windows_core::imp::define_interface!(ICLRIoCompletionManager, ICLRIoCompletionMa windows_core::imp::interface_hierarchy!(ICLRIoCompletionManager, windows_core::IUnknown); impl ICLRIoCompletionManager { pub unsafe fn OnComplete(&self, dwerrorcode: u32, numberofbytestransferred: u32, pvoverlapped: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwerrorcode), core::mem::transmute(numberofbytestransferred), core::mem::transmute(pvoverlapped)).ok() + (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), dwerrorcode, numberofbytestransferred, pvoverlapped).ok() } } #[repr(C)] @@ -1326,7 +1326,7 @@ windows_core::imp::define_interface!(ICLRMemoryNotificationCallback, ICLRMemoryN windows_core::imp::interface_hierarchy!(ICLRMemoryNotificationCallback, windows_core::IUnknown); impl ICLRMemoryNotificationCallback { pub unsafe fn OnMemoryNotification(&self, ememoryavailable: EMemoryAvailable) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMemoryNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(ememoryavailable)).ok() + (windows_core::Interface::vtable(self).OnMemoryNotification)(windows_core::Interface::as_raw(self), ememoryavailable).ok() } } #[repr(C)] @@ -1375,10 +1375,10 @@ impl ICLRMetaHost { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateLoadedRuntimes(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateLoadedRuntimes)(windows_core::Interface::as_raw(self), core::mem::transmute(hndprocess), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateLoadedRuntimes)(windows_core::Interface::as_raw(self), hndprocess, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestRuntimeLoadedNotification(&self, pcallbackfunction: RuntimeLoadedCallbackFnPtr) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestRuntimeLoadedNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(pcallbackfunction)).ok() + (windows_core::Interface::vtable(self).RequestRuntimeLoadedNotification)(windows_core::Interface::as_raw(self), pcallbackfunction).ok() } pub unsafe fn QueryLegacyV2RuntimeBinding(&self) -> windows_core::Result where @@ -1388,7 +1388,7 @@ impl ICLRMetaHost { (windows_core::Interface::vtable(self).QueryLegacyV2RuntimeBinding)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExitProcess(&self, iexitcode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(iexitcode)).ok() + (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), iexitcode).ok() } } #[repr(C)] @@ -1489,7 +1489,7 @@ impl ICLRMetaHostPolicy { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetRequestedRuntime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpolicyflags), pwzbinary.param().abi(), pcfgstream.param().abi(), core::mem::transmute(pwzversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchversion), core::mem::transmute(pwzimageversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchimageversion), core::mem::transmute(pdwconfigflags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRequestedRuntime)(windows_core::Interface::as_raw(self), dwpolicyflags, pwzbinary.param().abi(), pcfgstream.param().abi(), core::mem::transmute(pwzversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchversion), core::mem::transmute(pwzimageversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchimageversion), core::mem::transmute(pdwconfigflags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1526,13 +1526,13 @@ impl ICLROnEventManager { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterActionOnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), paction.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterActionOnEvent)(windows_core::Interface::as_raw(self), event, paction.param().abi()).ok() } pub unsafe fn UnregisterActionOnEvent(&self, event: EClrEvent, paction: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterActionOnEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), paction.param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterActionOnEvent)(windows_core::Interface::as_raw(self), event, paction.param().abi()).ok() } } #[repr(C)] @@ -1570,22 +1570,22 @@ windows_core::imp::define_interface!(ICLRPolicyManager, ICLRPolicyManager_Vtbl, windows_core::imp::interface_hierarchy!(ICLRPolicyManager, windows_core::IUnknown); impl ICLRPolicyManager { pub unsafe fn SetDefaultAction(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultAction)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).SetDefaultAction)(windows_core::Interface::as_raw(self), operation, action).ok() } pub unsafe fn SetTimeout(&self, operation: EClrOperation, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).SetTimeout)(windows_core::Interface::as_raw(self), operation, dwmilliseconds).ok() } pub unsafe fn SetActionOnTimeout(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActionOnTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).SetActionOnTimeout)(windows_core::Interface::as_raw(self), operation, action).ok() } pub unsafe fn SetTimeoutAndAction(&self, operation: EClrOperation, dwmilliseconds: u32, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeoutAndAction)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(dwmilliseconds), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).SetTimeoutAndAction)(windows_core::Interface::as_raw(self), operation, dwmilliseconds, action).ok() } pub unsafe fn SetActionOnFailure(&self, failure: EClrFailure, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActionOnFailure)(windows_core::Interface::as_raw(self), core::mem::transmute(failure), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).SetActionOnFailure)(windows_core::Interface::as_raw(self), failure, action).ok() } pub unsafe fn SetUnhandledExceptionPolicy(&self, policy: EClrUnhandledException) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnhandledExceptionPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(policy)).ok() + (windows_core::Interface::vtable(self).SetUnhandledExceptionPolicy)(windows_core::Interface::as_raw(self), policy).ok() } } #[repr(C)] @@ -1651,7 +1651,7 @@ windows_core::imp::define_interface!(ICLRProbingAssemblyEnum, ICLRProbingAssembl windows_core::imp::interface_hierarchy!(ICLRProbingAssemblyEnum, windows_core::IUnknown); impl ICLRProbingAssemblyEnum { pub unsafe fn Get(&self, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() } } #[repr(C)] @@ -1682,7 +1682,7 @@ impl ICLRProfiling { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachProfiler)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofileeprocessid), core::mem::transmute(dwmillisecondsmax), core::mem::transmute(pclsidprofiler), wszprofilerpath.param().abi(), core::mem::transmute(pvclientdata.as_ptr()), pvclientdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AttachProfiler)(windows_core::Interface::as_raw(self), dwprofileeprocessid, dwmillisecondsmax, pclsidprofiler, wszprofilerpath.param().abi(), core::mem::transmute(pvclientdata.as_ptr()), pvclientdata.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -1710,7 +1710,7 @@ windows_core::imp::define_interface!(ICLRReferenceAssemblyEnum, ICLRReferenceAss windows_core::imp::interface_hierarchy!(ICLRReferenceAssemblyEnum, windows_core::IUnknown); impl ICLRReferenceAssemblyEnum { pub unsafe fn Get(&self, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffersize)).ok() } } #[repr(C)] @@ -1754,10 +1754,10 @@ impl ICLRRuntimeHost { (windows_core::Interface::vtable(self).GetCLRControl)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnloadAppDomain(&self, dwappdomainid: u32, fwaituntildone: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnloadAppDomain)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappdomainid), fwaituntildone.into()).ok() + (windows_core::Interface::vtable(self).UnloadAppDomain)(windows_core::Interface::as_raw(self), dwappdomainid, fwaituntildone.into()).ok() } pub unsafe fn ExecuteInAppDomain(&self, dwappdomainid: u32, pcallback: FExecuteInAppDomainCallback, cookie: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExecuteInAppDomain)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappdomainid), core::mem::transmute(pcallback), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).ExecuteInAppDomain)(windows_core::Interface::as_raw(self), dwappdomainid, pcallback, cookie).ok() } pub unsafe fn GetCurrentAppDomainId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1768,7 +1768,7 @@ impl ICLRRuntimeHost { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecuteApplication)(windows_core::Interface::as_raw(self), pwzappfullname.param().abi(), core::mem::transmute(dwmanifestpaths), core::mem::transmute(ppwzmanifestpaths), core::mem::transmute(dwactivationdata), core::mem::transmute(ppwzactivationdata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExecuteApplication)(windows_core::Interface::as_raw(self), pwzappfullname.param().abi(), dwmanifestpaths, ppwzmanifestpaths, dwactivationdata, ppwzactivationdata, &mut result__).map(|| result__) } pub unsafe fn ExecuteInDefaultAppDomain(&self, pwzassemblypath: P0, pwztypename: P1, pwzmethodname: P2, pwzargument: P3) -> windows_core::Result where @@ -1896,10 +1896,10 @@ impl ICLRRuntimeInfo { } pub unsafe fn IsLoaded(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsLoaded)(windows_core::Interface::as_raw(self), core::mem::transmute(hndprocess), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsLoaded)(windows_core::Interface::as_raw(self), hndprocess, &mut result__).map(|| result__) } pub unsafe fn LoadErrorString(&self, iresourceid: u32, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32, ilocaleid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadErrorString)(windows_core::Interface::as_raw(self), core::mem::transmute(iresourceid), core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffer), core::mem::transmute(ilocaleid)).ok() + (windows_core::Interface::vtable(self).LoadErrorString)(windows_core::Interface::as_raw(self), iresourceid, core::mem::transmute(pwzbuffer), core::mem::transmute(pcchbuffer), ilocaleid).ok() } pub unsafe fn LoadLibraryA(&self, pwzdllname: P0) -> windows_core::Result where @@ -1920,7 +1920,7 @@ impl ICLRRuntimeInfo { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInterface)(windows_core::Interface::as_raw(self), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsLoadable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1930,7 +1930,7 @@ impl ICLRRuntimeInfo { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultStartupFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstartupflags), pwzhostconfigfile.param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultStartupFlags)(windows_core::Interface::as_raw(self), dwstartupflags, pwzhostconfigfile.param().abi()).ok() } pub unsafe fn GetDefaultStartupFlags(&self, pdwstartupflags: *mut u32, pwzhostconfigfile: Option, pcchhostconfigfile: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultStartupFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstartupflags), core::mem::transmute(pwzhostconfigfile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchhostconfigfile)).ok() @@ -2083,7 +2083,7 @@ impl ICLRStrongName { (windows_core::Interface::vtable(self).GetHashFromAssemblyFileW)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(pihashalg), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pchhash)).ok() } pub unsafe fn GetHashFromBlob(&self, pbblob: *const u8, cchblob: u32, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHashFromBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pbblob), core::mem::transmute(cchblob), core::mem::transmute(pihashalg), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pchhash)).ok() + (windows_core::Interface::vtable(self).GetHashFromBlob)(windows_core::Interface::as_raw(self), pbblob, cchblob, core::mem::transmute(pihashalg), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pchhash)).ok() } pub unsafe fn GetHashFromFile(&self, pszfilepath: P0, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> where @@ -2098,7 +2098,7 @@ impl ICLRStrongName { (windows_core::Interface::vtable(self).GetHashFromFileW)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(pihashalg), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pchhash)).ok() } pub unsafe fn GetHashFromHandle(&self, hfile: super::super::Foundation::HANDLE, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHashFromHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hfile), core::mem::transmute(pihashalg), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pchhash)).ok() + (windows_core::Interface::vtable(self).GetHashFromHandle)(windows_core::Interface::as_raw(self), hfile, core::mem::transmute(pihashalg), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pchhash)).ok() } pub unsafe fn StrongNameCompareAssemblies(&self, pwzassembly1: P0, pwzassembly2: P1) -> windows_core::Result where @@ -2109,7 +2109,7 @@ impl ICLRStrongName { (windows_core::Interface::vtable(self).StrongNameCompareAssemblies)(windows_core::Interface::as_raw(self), pwzassembly1.param().abi(), pwzassembly2.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StrongNameFreeBuffer(&self, pbmemory: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StrongNameFreeBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pbmemory)).ok() + (windows_core::Interface::vtable(self).StrongNameFreeBuffer)(windows_core::Interface::as_raw(self), pbmemory).ok() } pub unsafe fn StrongNameGetBlob(&self, pwzfilepath: P0, pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::Result<()> where @@ -2124,11 +2124,11 @@ impl ICLRStrongName { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameGetPublicKey)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), core::mem::transmute(pbkeyblob), core::mem::transmute(cbkeyblob), core::mem::transmute(ppbpublickeyblob), core::mem::transmute(pcbpublickeyblob)).ok() + (windows_core::Interface::vtable(self).StrongNameGetPublicKey)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob, core::mem::transmute(ppbpublickeyblob), core::mem::transmute(pcbpublickeyblob)).ok() } pub unsafe fn StrongNameHashSize(&self, ulhashalg: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameHashSize)(windows_core::Interface::as_raw(self), core::mem::transmute(ulhashalg), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameHashSize)(windows_core::Interface::as_raw(self), ulhashalg, &mut result__).map(|| result__) } pub unsafe fn StrongNameKeyDelete(&self, pwzkeycontainer: P0) -> windows_core::Result<()> where @@ -2140,54 +2140,54 @@ impl ICLRStrongName { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyGen)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppbkeyblob), core::mem::transmute(pcbkeyblob)).ok() + (windows_core::Interface::vtable(self).StrongNameKeyGen)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), dwflags, core::mem::transmute(ppbkeyblob), core::mem::transmute(pcbkeyblob)).ok() } pub unsafe fn StrongNameKeyGenEx(&self, pwzkeycontainer: P0, dwflags: u32, dwkeysize: u32, ppbkeyblob: *mut *mut u8, pcbkeyblob: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyGenEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwkeysize), core::mem::transmute(ppbkeyblob), core::mem::transmute(pcbkeyblob)).ok() + (windows_core::Interface::vtable(self).StrongNameKeyGenEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), dwflags, dwkeysize, core::mem::transmute(ppbkeyblob), core::mem::transmute(pcbkeyblob)).ok() } pub unsafe fn StrongNameKeyInstall(&self, pwzkeycontainer: P0, pbkeyblob: *const u8, cbkeyblob: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyInstall)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), core::mem::transmute(pbkeyblob), core::mem::transmute(cbkeyblob)).ok() + (windows_core::Interface::vtable(self).StrongNameKeyInstall)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob).ok() } pub unsafe fn StrongNameSignatureGeneration(&self, pwzfilepath: P0, pwzkeycontainer: P1, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameSignatureGeneration)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), pwzkeycontainer.param().abi(), core::mem::transmute(pbkeyblob), core::mem::transmute(cbkeyblob), core::mem::transmute(ppbsignatureblob), core::mem::transmute(pcbsignatureblob)).ok() + (windows_core::Interface::vtable(self).StrongNameSignatureGeneration)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob, core::mem::transmute(ppbsignatureblob), core::mem::transmute(pcbsignatureblob)).ok() } pub unsafe fn StrongNameSignatureGenerationEx(&self, wszfilepath: P0, wszkeycontainer: P1, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameSignatureGenerationEx)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), wszkeycontainer.param().abi(), core::mem::transmute(pbkeyblob), core::mem::transmute(cbkeyblob), core::mem::transmute(ppbsignatureblob), core::mem::transmute(pcbsignatureblob), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).StrongNameSignatureGenerationEx)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), wszkeycontainer.param().abi(), pbkeyblob, cbkeyblob, core::mem::transmute(ppbsignatureblob), core::mem::transmute(pcbsignatureblob), dwflags).ok() } pub unsafe fn StrongNameSignatureSize(&self, pbpublickeyblob: *const u8, cbpublickeyblob: u32, pcbsize: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StrongNameSignatureSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pbpublickeyblob), core::mem::transmute(cbpublickeyblob), core::mem::transmute(pcbsize)).ok() + (windows_core::Interface::vtable(self).StrongNameSignatureSize)(windows_core::Interface::as_raw(self), pbpublickeyblob, cbpublickeyblob, pcbsize).ok() } pub unsafe fn StrongNameSignatureVerification(&self, pwzfilepath: P0, dwinflags: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerification)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(dwinflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerification)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), dwinflags, &mut result__).map(|| result__) } pub unsafe fn StrongNameSignatureVerificationEx(&self, pwzfilepath: P0, fforceverification: bool) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(fforceverification), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), fforceverification, &mut result__).map(|| result__) } pub unsafe fn StrongNameSignatureVerificationFromImage(&self, pbbase: *const u8, dwlength: u32, dwinflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationFromImage)(windows_core::Interface::as_raw(self), core::mem::transmute(pbbase), core::mem::transmute(dwlength), core::mem::transmute(dwinflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationFromImage)(windows_core::Interface::as_raw(self), pbbase, dwlength, dwinflags, &mut result__).map(|| result__) } pub unsafe fn StrongNameTokenFromAssembly(&self, pwzfilepath: P0, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::Result<()> where @@ -2202,7 +2202,7 @@ impl ICLRStrongName { (windows_core::Interface::vtable(self).StrongNameTokenFromAssemblyEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(ppbstrongnametoken), core::mem::transmute(pcbstrongnametoken), core::mem::transmute(ppbpublickeyblob), core::mem::transmute(pcbpublickeyblob)).ok() } pub unsafe fn StrongNameTokenFromPublicKey(&self, pbpublickeyblob: *const u8, cbpublickeyblob: u32, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StrongNameTokenFromPublicKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pbpublickeyblob), core::mem::transmute(cbpublickeyblob), core::mem::transmute(ppbstrongnametoken), core::mem::transmute(pcbstrongnametoken)).ok() + (windows_core::Interface::vtable(self).StrongNameTokenFromPublicKey)(windows_core::Interface::as_raw(self), pbpublickeyblob, cbpublickeyblob, core::mem::transmute(ppbstrongnametoken), core::mem::transmute(pcbstrongnametoken)).ok() } } #[repr(C)] @@ -2434,14 +2434,14 @@ impl ICLRStrongName2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameGetPublicKeyEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), core::mem::transmute(pbkeyblob), core::mem::transmute(cbkeyblob), core::mem::transmute(ppbpublickeyblob), core::mem::transmute(pcbpublickeyblob), core::mem::transmute(uhashalgid), core::mem::transmute(ureserved)).ok() + (windows_core::Interface::vtable(self).StrongNameGetPublicKeyEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob, core::mem::transmute(ppbpublickeyblob), core::mem::transmute(pcbpublickeyblob), uhashalgid, ureserved).ok() } pub unsafe fn StrongNameSignatureVerificationEx2(&self, wszfilepath: P0, fforceverification: bool, pbecmapublickey: *const u8, cbecmapublickey: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), core::mem::transmute(fforceverification), core::mem::transmute(pbecmapublickey), core::mem::transmute(cbecmapublickey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), fforceverification, pbecmapublickey, cbecmapublickey, &mut result__).map(|| result__) } } #[repr(C)] @@ -2488,13 +2488,13 @@ impl ICLRStrongName3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameDigestGenerate)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), core::mem::transmute(ppbdigestblob), core::mem::transmute(pcbdigestblob), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).StrongNameDigestGenerate)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), core::mem::transmute(ppbdigestblob), core::mem::transmute(pcbdigestblob), dwflags).ok() } pub unsafe fn StrongNameDigestSign(&self, wszkeycontainer: P0, pbkeyblob: &[u8], pbdigestblob: &[u8], hashalgid: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameDigestSign)(windows_core::Interface::as_raw(self), wszkeycontainer.param().abi(), core::mem::transmute(pbkeyblob.as_ptr()), pbkeyblob.len().try_into().unwrap(), core::mem::transmute(pbdigestblob.as_ptr()), pbdigestblob.len().try_into().unwrap(), core::mem::transmute(hashalgid), core::mem::transmute(ppbsignatureblob), core::mem::transmute(pcbsignatureblob), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).StrongNameDigestSign)(windows_core::Interface::as_raw(self), wszkeycontainer.param().abi(), core::mem::transmute(pbkeyblob.as_ptr()), pbkeyblob.len().try_into().unwrap(), core::mem::transmute(pbdigestblob.as_ptr()), pbdigestblob.len().try_into().unwrap(), hashalgid, core::mem::transmute(ppbsignatureblob), core::mem::transmute(pcbsignatureblob), dwflags).ok() } pub unsafe fn StrongNameDigestEmbed(&self, wszfilepath: P0, pbsignatureblob: &[u8]) -> windows_core::Result<()> where @@ -2546,18 +2546,18 @@ windows_core::imp::interface_hierarchy!(ICLRSyncManager, windows_core::IUnknown) impl ICLRSyncManager { pub unsafe fn GetMonitorOwner(&self, cookie: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMonitorOwner)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMonitorOwner)(windows_core::Interface::as_raw(self), cookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRWLockOwnerIterator(&self, cookie: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRWLockOwnerIterator)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateRWLockOwnerIterator)(windows_core::Interface::as_raw(self), cookie, &mut result__).map(|| result__) } pub unsafe fn GetRWLockOwnerNext(&self, iterator: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRWLockOwnerNext)(windows_core::Interface::as_raw(self), core::mem::transmute(iterator), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRWLockOwnerNext)(windows_core::Interface::as_raw(self), iterator, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRWLockOwnerIterator(&self, iterator: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteRWLockOwnerIterator)(windows_core::Interface::as_raw(self), core::mem::transmute(iterator)).ok() + (windows_core::Interface::vtable(self).DeleteRWLockOwnerIterator)(windows_core::Interface::as_raw(self), iterator).ok() } } #[repr(C)] @@ -2627,7 +2627,7 @@ windows_core::imp::define_interface!(ICLRTask, ICLRTask_Vtbl, 0x28e66a4a_9906_42 windows_core::imp::interface_hierarchy!(ICLRTask, windows_core::IUnknown); impl ICLRTask { pub unsafe fn SwitchIn(&self, threadhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SwitchIn)(windows_core::Interface::as_raw(self), core::mem::transmute(threadhandle)).ok() + (windows_core::Interface::vtable(self).SwitchIn)(windows_core::Interface::as_raw(self), threadhandle).ok() } pub unsafe fn SwitchOut(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SwitchOut)(windows_core::Interface::as_raw(self)).ok() @@ -2660,7 +2660,7 @@ impl ICLRTask { (windows_core::Interface::vtable(self).LocksHeld)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTaskIdentifier(&self, asked: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTaskIdentifier)(windows_core::Interface::as_raw(self), core::mem::transmute(asked)).ok() + (windows_core::Interface::vtable(self).SetTaskIdentifier)(windows_core::Interface::as_raw(self), asked).ok() } } #[repr(C)] @@ -2834,10 +2834,10 @@ impl ICLRTaskManager { (windows_core::Interface::vtable(self).GetCurrentTask)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetUILocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUILocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetUILocale)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn SetLocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn GetCurrentTaskType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2977,7 +2977,7 @@ impl ICorConfiguration { (windows_core::Interface::vtable(self).SetDebuggerThreadControl)(windows_core::Interface::as_raw(self), pdebuggerthreadcontrol.param().abi()).ok() } pub unsafe fn AddDebuggerSpecialThread(&self, dwspecialthreadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDebuggerSpecialThread)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspecialthreadid)).ok() + (windows_core::Interface::vtable(self).AddDebuggerSpecialThread)(windows_core::Interface::as_raw(self), dwspecialthreadid).ok() } } #[repr(C)] @@ -3035,7 +3035,7 @@ impl ICorRuntimeHost { (windows_core::Interface::vtable(self).DeleteLogicalThreadState)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SwitchInLogicalThreadState(&self, pfibercookie: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SwitchInLogicalThreadState)(windows_core::Interface::as_raw(self), core::mem::transmute(pfibercookie)).ok() + (windows_core::Interface::vtable(self).SwitchInLogicalThreadState)(windows_core::Interface::as_raw(self), pfibercookie).ok() } pub unsafe fn SwitchOutLogicalThreadState(&self) -> windows_core::Result<*mut u32> { let mut result__ = core::mem::zeroed(); @@ -3047,7 +3047,7 @@ impl ICorRuntimeHost { } pub unsafe fn MapFile(&self, hfile: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MapFile)(windows_core::Interface::as_raw(self), core::mem::transmute(hfile), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapFile)(windows_core::Interface::as_raw(self), hfile, &mut result__).map(|| result__) } pub unsafe fn GetConfiguration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3076,10 +3076,10 @@ impl ICorRuntimeHost { } pub unsafe fn NextDomain(&self, henum: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NextDomain)(windows_core::Interface::as_raw(self), core::mem::transmute(henum), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NextDomain)(windows_core::Interface::as_raw(self), henum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CloseEnum(&self, henum: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(henum)).ok() + (windows_core::Interface::vtable(self).CloseEnum)(windows_core::Interface::as_raw(self), henum).ok() } pub unsafe fn CreateDomainEx(&self, pwzfriendlyname: P0, psetup: P1, pevidence: P2) -> windows_core::Result where @@ -3331,41 +3331,41 @@ impl ICorThreadpool { #[cfg(feature = "Win32_System_Threading")] pub unsafe 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: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorRegisterWaitForSingleObject)(windows_core::Interface::as_raw(self), core::mem::transmute(phnewwaitobject), core::mem::transmute(hwaitobject), core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(timeout), executeonlyonce.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorRegisterWaitForSingleObject)(windows_core::Interface::as_raw(self), phnewwaitobject, hwaitobject, callback, context, timeout, executeonlyonce.into(), &mut result__).map(|| result__) } pub unsafe fn CorUnregisterWait(&self, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorUnregisterWait)(windows_core::Interface::as_raw(self), core::mem::transmute(hwaitobject), core::mem::transmute(completionevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorUnregisterWait)(windows_core::Interface::as_raw(self), hwaitobject, completionevent, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Threading")] pub unsafe fn CorQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorQueueUserWorkItem)(windows_core::Interface::as_raw(self), core::mem::transmute(function), core::mem::transmute(context), executeonlyonce.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorQueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, executeonlyonce.into(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Threading")] pub unsafe fn CorCreateTimer(&self, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorCreateTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(phnewtimer), core::mem::transmute(callback), core::mem::transmute(parameter), core::mem::transmute(duetime), core::mem::transmute(period), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorCreateTimer)(windows_core::Interface::as_raw(self), phnewtimer, callback, parameter, duetime, period, &mut result__).map(|| result__) } pub unsafe fn CorChangeTimer(&self, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorChangeTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorChangeTimer)(windows_core::Interface::as_raw(self), timer, duetime, period, &mut result__).map(|| result__) } pub unsafe fn CorDeleteTimer(&self, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorDeleteTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(timer), core::mem::transmute(completionevent), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorDeleteTimer)(windows_core::Interface::as_raw(self), timer, completionevent, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_IO")] pub unsafe fn CorBindIoCompletionCallback(&self, filehandle: super::super::Foundation::HANDLE, callback: super::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CorBindIoCompletionCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(filehandle), core::mem::transmute(callback)).ok() + (windows_core::Interface::vtable(self).CorBindIoCompletionCallback)(windows_core::Interface::as_raw(self), filehandle, callback).ok() } #[cfg(feature = "Win32_System_Threading")] pub unsafe fn CorCallOrQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CorCallOrQueueUserWorkItem)(windows_core::Interface::as_raw(self), core::mem::transmute(function), core::mem::transmute(context), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorCallOrQueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, &mut result__).map(|| result__) } pub unsafe fn CorSetMaxThreads(&self, maxworkerthreads: u32, maxiocompletionthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CorSetMaxThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(maxworkerthreads), core::mem::transmute(maxiocompletionthreads)).ok() + (windows_core::Interface::vtable(self).CorSetMaxThreads)(windows_core::Interface::as_raw(self), maxworkerthreads, maxiocompletionthreads).ok() } pub unsafe fn CorGetMaxThreads(&self, maxworkerthreads: *mut u32, maxiocompletionthreads: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CorGetMaxThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(maxworkerthreads), core::mem::transmute(maxiocompletionthreads)).ok() @@ -3573,7 +3573,7 @@ impl IDebuggerThreadControl { (windows_core::Interface::vtable(self).ReleaseAllRuntimeThreads)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn StartBlockingForDebugger(&self, dwunused: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartBlockingForDebugger)(windows_core::Interface::as_raw(self), core::mem::transmute(dwunused)).ok() + (windows_core::Interface::vtable(self).StartBlockingForDebugger)(windows_core::Interface::as_raw(self), dwunused).ok() } } #[repr(C)] @@ -3618,19 +3618,19 @@ windows_core::imp::define_interface!(IGCHost, IGCHost_Vtbl, 0xfac34f6e_0dcd_47b5 windows_core::imp::interface_hierarchy!(IGCHost, windows_core::IUnknown); impl IGCHost { pub unsafe fn SetGCStartupLimits(&self, segmentsize: u32, maxgen0size: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGCStartupLimits)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentsize), core::mem::transmute(maxgen0size)).ok() + (windows_core::Interface::vtable(self).SetGCStartupLimits)(windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } pub unsafe fn Collect(&self, generation: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Collect)(windows_core::Interface::as_raw(self), core::mem::transmute(generation)).ok() + (windows_core::Interface::vtable(self).Collect)(windows_core::Interface::as_raw(self), generation).ok() } pub unsafe fn GetStats(&self, pstats: *mut COR_GC_STATS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStats)(windows_core::Interface::as_raw(self), core::mem::transmute(pstats)).ok() } pub unsafe fn GetThreadStats(&self, pfibercookie: *const u32, pstats: *mut COR_GC_THREAD_STATS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadStats)(windows_core::Interface::as_raw(self), core::mem::transmute(pfibercookie), core::mem::transmute(pstats)).ok() + (windows_core::Interface::vtable(self).GetThreadStats)(windows_core::Interface::as_raw(self), pfibercookie, core::mem::transmute(pstats)).ok() } pub unsafe fn SetVirtualMemLimit(&self, sztmaxvirtualmemmb: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVirtualMemLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(sztmaxvirtualmemmb)).ok() + (windows_core::Interface::vtable(self).SetVirtualMemLimit)(windows_core::Interface::as_raw(self), sztmaxvirtualmemmb).ok() } } #[repr(C)] @@ -3695,7 +3695,7 @@ impl core::ops::Deref for IGCHost2 { windows_core::imp::interface_hierarchy!(IGCHost2, windows_core::IUnknown, IGCHost); impl IGCHost2 { pub unsafe fn SetGCStartupLimitsEx(&self, segmentsize: usize, maxgen0size: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGCStartupLimitsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(segmentsize), core::mem::transmute(maxgen0size)).ok() + (windows_core::Interface::vtable(self).SetGCStartupLimitsEx)(windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } } #[repr(C)] @@ -3723,7 +3723,7 @@ windows_core::imp::define_interface!(IGCHostControl, IGCHostControl_Vtbl, 0x5513 windows_core::imp::interface_hierarchy!(IGCHostControl, windows_core::IUnknown); impl IGCHostControl { pub unsafe fn RequestVirtualMemLimit(&self, sztmaxvirtualmemmb: usize, psztnewmaxvirtualmemmb: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestVirtualMemLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(sztmaxvirtualmemmb), core::mem::transmute(psztnewmaxvirtualmemmb)).ok() + (windows_core::Interface::vtable(self).RequestVirtualMemLimit)(windows_core::Interface::as_raw(self), sztmaxvirtualmemmb, core::mem::transmute(psztnewmaxvirtualmemmb)).ok() } } #[repr(C)] @@ -3757,7 +3757,7 @@ impl IGCThreadControl { (windows_core::Interface::vtable(self).SuspensionStarting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SuspensionEnding(&self, generation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SuspensionEnding)(windows_core::Interface::as_raw(self), core::mem::transmute(generation)).ok() + (windows_core::Interface::vtable(self).SuspensionEnding)(windows_core::Interface::as_raw(self), generation).ok() } } #[repr(C)] @@ -3858,11 +3858,11 @@ windows_core::imp::interface_hierarchy!(IHostAssemblyStore, windows_core::IUnkno impl IHostAssemblyStore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ProvideAssembly(&self, pbindinfo: *const AssemblyBindInfo, passemblyid: *mut u64, pcontext: *mut u64, ppstmassemblyimage: *mut Option, ppstmpdb: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProvideAssembly)(windows_core::Interface::as_raw(self), core::mem::transmute(pbindinfo), core::mem::transmute(passemblyid), core::mem::transmute(pcontext), core::mem::transmute(ppstmassemblyimage), core::mem::transmute(ppstmpdb)).ok() + (windows_core::Interface::vtable(self).ProvideAssembly)(windows_core::Interface::as_raw(self), pbindinfo, core::mem::transmute(passemblyid), core::mem::transmute(pcontext), core::mem::transmute(ppstmassemblyimage), core::mem::transmute(ppstmpdb)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ProvideModule(&self, pbindinfo: *const ModuleBindInfo, pdwmoduleid: *mut u32, ppstmmoduleimage: *mut Option, ppstmpdb: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProvideModule)(windows_core::Interface::as_raw(self), core::mem::transmute(pbindinfo), core::mem::transmute(pdwmoduleid), core::mem::transmute(ppstmmoduleimage), core::mem::transmute(ppstmpdb)).ok() + (windows_core::Interface::vtable(self).ProvideModule)(windows_core::Interface::as_raw(self), pbindinfo, core::mem::transmute(pdwmoduleid), core::mem::transmute(ppstmmoduleimage), core::mem::transmute(ppstmpdb)).ok() } } #[repr(C)] @@ -3909,7 +3909,7 @@ windows_core::imp::define_interface!(IHostAutoEvent, IHostAutoEvent_Vtbl, 0x50b0 windows_core::imp::interface_hierarchy!(IHostAutoEvent, windows_core::IUnknown); impl IHostAutoEvent { pub unsafe fn Wait(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() } pub unsafe fn Set(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self)).ok() @@ -3946,13 +3946,13 @@ windows_core::imp::define_interface!(IHostControl, IHostControl_Vtbl, 0x02ca073c windows_core::imp::interface_hierarchy!(IHostControl, windows_core::IUnknown); impl IHostControl { pub unsafe fn GetHostManager(&self, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHostManager)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).GetHostManager)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppobject)).ok() } pub unsafe fn SetAppDomainManager(&self, dwappdomainid: u32, punkappdomainmanager: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppDomainManager)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappdomainid), punkappdomainmanager.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppDomainManager)(windows_core::Interface::as_raw(self), dwappdomainid, punkappdomainmanager.param().abi()).ok() } } #[repr(C)] @@ -3990,17 +3990,17 @@ windows_core::imp::define_interface!(IHostCrst, IHostCrst_Vtbl, 0x6df710a6_26a4_ windows_core::imp::interface_hierarchy!(IHostCrst, windows_core::IUnknown); impl IHostCrst { pub unsafe fn Enter(&self, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Enter)(windows_core::Interface::as_raw(self), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).Enter)(windows_core::Interface::as_raw(self), option).ok() } pub unsafe fn Leave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Leave)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TryEnter(&self, option: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(option), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TryEnter)(windows_core::Interface::as_raw(self), option, &mut result__).map(|| result__) } pub unsafe fn SetSpinCount(&self, dwspincount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpinCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspincount)).ok() + (windows_core::Interface::vtable(self).SetSpinCount)(windows_core::Interface::as_raw(self), dwspincount).ok() } } #[repr(C)] @@ -4064,7 +4064,7 @@ impl IHostGCManager { (windows_core::Interface::vtable(self).SuspensionStarting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SuspensionEnding(&self, generation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SuspensionEnding)(windows_core::Interface::as_raw(self), core::mem::transmute(generation)).ok() + (windows_core::Interface::vtable(self).SuspensionEnding)(windows_core::Interface::as_raw(self), generation).ok() } } #[repr(C)] @@ -4113,10 +4113,10 @@ impl IHostIoCompletionManager { (windows_core::Interface::vtable(self).CreateIoCompletionPort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CloseIoCompletionPort(&self, hport: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseIoCompletionPort)(windows_core::Interface::as_raw(self), core::mem::transmute(hport)).ok() + (windows_core::Interface::vtable(self).CloseIoCompletionPort)(windows_core::Interface::as_raw(self), hport).ok() } pub unsafe fn SetMaxThreads(&self, dwmaxiocompletionthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxiocompletionthreads)).ok() + (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), dwmaxiocompletionthreads).ok() } pub unsafe fn GetMaxThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4137,13 +4137,13 @@ impl IHostIoCompletionManager { (windows_core::Interface::vtable(self).SetCLRIoCompletionManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } pub unsafe fn InitializeHostOverlapped(&self, pvoverlapped: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeHostOverlapped)(windows_core::Interface::as_raw(self), core::mem::transmute(pvoverlapped)).ok() + (windows_core::Interface::vtable(self).InitializeHostOverlapped)(windows_core::Interface::as_raw(self), pvoverlapped).ok() } pub unsafe fn Bind(&self, hport: super::super::Foundation::HANDLE, hhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), core::mem::transmute(hport), core::mem::transmute(hhandle)).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), hport, hhandle).ok() } pub unsafe fn SetMinThreads(&self, dwminiocompletionthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(dwminiocompletionthreads)).ok() + (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), dwminiocompletionthreads).ok() } pub unsafe fn GetMinThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4278,13 +4278,13 @@ windows_core::imp::define_interface!(IHostMalloc, IHostMalloc_Vtbl, 0x1831991c_c windows_core::imp::interface_hierarchy!(IHostMalloc, windows_core::IUnknown); impl IHostMalloc { pub unsafe fn Alloc(&self, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(ecriticallevel), core::mem::transmute(ppmem)).ok() + (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), cbsize, ecriticallevel, core::mem::transmute(ppmem)).ok() } pub unsafe fn DebugAlloc(&self, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, pszfilename: *const u8, ilineno: i32, ppmem: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DebugAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(ecriticallevel), core::mem::transmute(pszfilename), core::mem::transmute(ilineno), core::mem::transmute(ppmem)).ok() + (windows_core::Interface::vtable(self).DebugAlloc)(windows_core::Interface::as_raw(self), cbsize, ecriticallevel, pszfilename, ilineno, core::mem::transmute(ppmem)).ok() } pub unsafe fn Free(&self, pmem: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), core::mem::transmute(pmem)).ok() + (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), pmem).ok() } } #[repr(C)] @@ -4329,7 +4329,7 @@ windows_core::imp::define_interface!(IHostManualEvent, IHostManualEvent_Vtbl, 0x windows_core::imp::interface_hierarchy!(IHostManualEvent, windows_core::IUnknown); impl IHostManualEvent { pub unsafe fn Wait(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4381,20 +4381,20 @@ windows_core::imp::interface_hierarchy!(IHostMemoryManager, windows_core::IUnkno impl IHostMemoryManager { pub unsafe fn CreateMalloc(&self, dwmalloctype: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMalloc)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmalloctype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMalloc)(windows_core::Interface::as_raw(self), dwmalloctype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).VirtualAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(paddress), core::mem::transmute(dwsize), core::mem::transmute(flallocationtype), core::mem::transmute(flprotect), core::mem::transmute(ecriticallevel), core::mem::transmute(ppmem)).ok() + (windows_core::Interface::vtable(self).VirtualAlloc)(windows_core::Interface::as_raw(self), paddress, dwsize, flallocationtype, flprotect, ecriticallevel, core::mem::transmute(ppmem)).ok() } pub unsafe fn VirtualFree(&self, lpaddress: *const core::ffi::c_void, dwsize: usize, dwfreetype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VirtualFree)(windows_core::Interface::as_raw(self), core::mem::transmute(lpaddress), core::mem::transmute(dwsize), core::mem::transmute(dwfreetype)).ok() + (windows_core::Interface::vtable(self).VirtualFree)(windows_core::Interface::as_raw(self), lpaddress, dwsize, dwfreetype).ok() } pub unsafe fn VirtualQuery(&self, lpaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwlength: usize, presult: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VirtualQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(lpaddress), core::mem::transmute(lpbuffer), core::mem::transmute(dwlength), core::mem::transmute(presult)).ok() + (windows_core::Interface::vtable(self).VirtualQuery)(windows_core::Interface::as_raw(self), lpaddress, core::mem::transmute(lpbuffer), dwlength, core::mem::transmute(presult)).ok() } pub unsafe fn VirtualProtect(&self, lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VirtualProtect)(windows_core::Interface::as_raw(self), core::mem::transmute(lpaddress), core::mem::transmute(dwsize), core::mem::transmute(flnewprotect), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VirtualProtect)(windows_core::Interface::as_raw(self), lpaddress, dwsize, flnewprotect, &mut result__).map(|| result__) } pub unsafe fn GetMemoryLoad(&self, pmemoryload: *mut u32, pavailablebytes: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMemoryLoad)(windows_core::Interface::as_raw(self), core::mem::transmute(pmemoryload), core::mem::transmute(pavailablebytes)).ok() @@ -4406,13 +4406,13 @@ impl IHostMemoryManager { (windows_core::Interface::vtable(self).RegisterMemoryNotificationCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn NeedsVirtualAddressSpace(&self, startaddress: *const core::ffi::c_void, size: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NeedsVirtualAddressSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(startaddress), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).NeedsVirtualAddressSpace)(windows_core::Interface::as_raw(self), startaddress, size).ok() } pub unsafe fn AcquiredVirtualAddressSpace(&self, startaddress: *const core::ffi::c_void, size: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquiredVirtualAddressSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(startaddress), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).AcquiredVirtualAddressSpace)(windows_core::Interface::as_raw(self), startaddress, size).ok() } pub unsafe fn ReleasedVirtualAddressSpace(&self, startaddress: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleasedVirtualAddressSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(startaddress)).ok() + (windows_core::Interface::vtable(self).ReleasedVirtualAddressSpace)(windows_core::Interface::as_raw(self), startaddress).ok() } } #[repr(C)] @@ -4518,13 +4518,13 @@ windows_core::imp::define_interface!(IHostPolicyManager, IHostPolicyManager_Vtbl windows_core::imp::interface_hierarchy!(IHostPolicyManager, windows_core::IUnknown); impl IHostPolicyManager { pub unsafe fn OnDefaultAction(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDefaultAction)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).OnDefaultAction)(windows_core::Interface::as_raw(self), operation, action).ok() } pub unsafe fn OnTimeout(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(operation), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).OnTimeout)(windows_core::Interface::as_raw(self), operation, action).ok() } pub unsafe fn OnFailure(&self, failure: EClrFailure, action: EPolicyAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnFailure)(windows_core::Interface::as_raw(self), core::mem::transmute(failure), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).OnFailure)(windows_core::Interface::as_raw(self), failure, action).ok() } } #[repr(C)] @@ -4604,27 +4604,27 @@ windows_core::imp::define_interface!(IHostSecurityManager, IHostSecurityManager_ windows_core::imp::interface_hierarchy!(IHostSecurityManager, windows_core::IUnknown); impl IHostSecurityManager { pub unsafe fn ImpersonateLoggedOnUser(&self, htoken: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ImpersonateLoggedOnUser)(windows_core::Interface::as_raw(self), core::mem::transmute(htoken)).ok() + (windows_core::Interface::vtable(self).ImpersonateLoggedOnUser)(windows_core::Interface::as_raw(self), htoken).ok() } pub unsafe fn RevertToSelf(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RevertToSelf)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OpenThreadToken(&self, dwdesiredaccess: u32, bopenasself: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenThreadToken)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdesiredaccess), bopenasself.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenThreadToken)(windows_core::Interface::as_raw(self), dwdesiredaccess, bopenasself.into(), &mut result__).map(|| result__) } pub unsafe fn SetThreadToken(&self, htoken: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadToken)(windows_core::Interface::as_raw(self), core::mem::transmute(htoken)).ok() + (windows_core::Interface::vtable(self).SetThreadToken)(windows_core::Interface::as_raw(self), htoken).ok() } pub unsafe fn GetSecurityContext(&self, econtexttype: EContextType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurityContext)(windows_core::Interface::as_raw(self), core::mem::transmute(econtexttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSecurityContext)(windows_core::Interface::as_raw(self), econtexttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSecurityContext(&self, econtexttype: EContextType, psecuritycontext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityContext)(windows_core::Interface::as_raw(self), core::mem::transmute(econtexttype), psecuritycontext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityContext)(windows_core::Interface::as_raw(self), econtexttype, psecuritycontext.param().abi()).ok() } } #[repr(C)] @@ -4702,11 +4702,11 @@ windows_core::imp::define_interface!(IHostSemaphore, IHostSemaphore_Vtbl, 0x855e windows_core::imp::interface_hierarchy!(IHostSemaphore, windows_core::IUnknown); impl IHostSemaphore { pub unsafe fn Wait(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() } pub unsafe fn ReleaseSemaphore(&self, lreleasecount: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReleaseSemaphore)(windows_core::Interface::as_raw(self), core::mem::transmute(lreleasecount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReleaseSemaphore)(windows_core::Interface::as_raw(self), lreleasecount, &mut result__).map(|| result__) } } #[repr(C)] @@ -4761,7 +4761,7 @@ impl IHostSyncManager { } pub unsafe fn CreateCrstWithSpinCount(&self, dwspincount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCrstWithSpinCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspincount), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCrstWithSpinCount)(windows_core::Interface::as_raw(self), dwspincount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAutoEvent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4773,19 +4773,19 @@ impl IHostSyncManager { } pub unsafe fn CreateMonitorEvent(&self, cookie: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMonitorEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMonitorEvent)(windows_core::Interface::as_raw(self), cookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRWLockWriterEvent(&self, cookie: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRWLockWriterEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRWLockWriterEvent)(windows_core::Interface::as_raw(self), cookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRWLockReaderEvent(&self, binitialstate: bool, cookie: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRWLockReaderEvent)(windows_core::Interface::as_raw(self), binitialstate.into(), core::mem::transmute(cookie), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRWLockReaderEvent)(windows_core::Interface::as_raw(self), binitialstate.into(), cookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSemaphoreA(&self, dwinitial: u32, dwmax: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSemaphoreA)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinitial), core::mem::transmute(dwmax), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSemaphoreA)(windows_core::Interface::as_raw(self), dwinitial, dwmax, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4926,10 +4926,10 @@ impl IHostTask { (windows_core::Interface::vtable(self).Alert)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Join(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Join)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).Join)(windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() } pub unsafe fn SetPriority(&self, newpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(newpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), newpriority).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5017,26 +5017,26 @@ impl IHostTaskManager { #[cfg(feature = "Win32_System_Threading")] pub unsafe fn CreateTask(&self, dwstacksize: u32, pstartaddress: super::Threading::LPTHREAD_START_ROUTINE, pparameter: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTask)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstacksize), core::mem::transmute(pstartaddress), core::mem::transmute(pparameter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTask)(windows_core::Interface::as_raw(self), dwstacksize, pstartaddress, pparameter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Sleep(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Sleep)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmilliseconds), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).Sleep)(windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() } pub unsafe fn SwitchToTask(&self, option: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SwitchToTask)(windows_core::Interface::as_raw(self), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).SwitchToTask)(windows_core::Interface::as_raw(self), option).ok() } pub unsafe fn SetUILocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUILocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetUILocale)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn SetLocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn CallNeedsHostHook(&self, target: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CallNeedsHostHook)(windows_core::Interface::as_raw(self), core::mem::transmute(target), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CallNeedsHostHook)(windows_core::Interface::as_raw(self), target, &mut result__).map(|| result__) } pub unsafe fn LeaveRuntime(&self, target: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LeaveRuntime)(windows_core::Interface::as_raw(self), core::mem::transmute(target)).ok() + (windows_core::Interface::vtable(self).LeaveRuntime)(windows_core::Interface::as_raw(self), target).ok() } pub unsafe fn EnterRuntime(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnterRuntime)(windows_core::Interface::as_raw(self)).ok() @@ -5060,7 +5060,7 @@ impl IHostTaskManager { (windows_core::Interface::vtable(self).EndThreadAffinity)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetStackGuarantee(&self, guarantee: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStackGuarantee)(windows_core::Interface::as_raw(self), core::mem::transmute(guarantee)).ok() + (windows_core::Interface::vtable(self).SetStackGuarantee)(windows_core::Interface::as_raw(self), guarantee).ok() } pub unsafe fn GetStackGuarantee(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5251,10 +5251,10 @@ windows_core::imp::interface_hierarchy!(IHostThreadpoolManager, windows_core::IU impl IHostThreadpoolManager { #[cfg(feature = "Win32_System_Threading")] pub unsafe fn QueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueueUserWorkItem)(windows_core::Interface::as_raw(self), core::mem::transmute(function), core::mem::transmute(context), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).QueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, flags).ok() } pub unsafe fn SetMaxThreads(&self, dwmaxworkerthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxworkerthreads)).ok() + (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), dwmaxworkerthreads).ok() } pub unsafe fn GetMaxThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5265,7 +5265,7 @@ impl IHostThreadpoolManager { (windows_core::Interface::vtable(self).GetAvailableThreads)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinThreads(&self, dwminiocompletionthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(dwminiocompletionthreads)).ok() + (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), dwminiocompletionthreads).ok() } pub unsafe fn GetMinThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5454,7 +5454,7 @@ impl ITypeName { } pub unsafe fn GetNames(&self, count: u32, rgbsznames: *mut windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(rgbsznames), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), count, core::mem::transmute(rgbsznames), &mut result__).map(|| result__) } pub unsafe fn GetTypeArgumentCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5462,7 +5462,7 @@ impl ITypeName { } pub unsafe fn GetTypeArguments(&self, count: u32, rgparguments: *mut Option) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeArguments)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(rgparguments), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeArguments)(windows_core::Interface::as_raw(self), count, core::mem::transmute(rgparguments), &mut result__).map(|| result__) } pub unsafe fn GetModifierLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5470,7 +5470,7 @@ impl ITypeName { } pub unsafe fn GetModifiers(&self, count: u32, rgmodifiers: *mut u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModifiers)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(rgmodifiers), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModifiers)(windows_core::Interface::as_raw(self), count, core::mem::transmute(rgmodifiers), &mut result__).map(|| result__) } pub unsafe fn GetAssemblyName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5616,7 +5616,7 @@ impl ITypeNameBuilder { (windows_core::Interface::vtable(self).AddSzArray)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddArray(&self, rank: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddArray)(windows_core::Interface::as_raw(self), core::mem::transmute(rank)).ok() + (windows_core::Interface::vtable(self).AddArray)(windows_core::Interface::as_raw(self), rank).ok() } pub unsafe fn AddAssemblySpec(&self, szassemblyspec: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs index 00d339baac..e4519da697 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs @@ -4,7 +4,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoGetInterceptor(iidintercepted : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, iid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CoGetInterceptor(core::mem::transmute(iidintercepted), punkouter.param().abi(), core::mem::transmute(iid), core::mem::transmute(ppv)).ok() + CoGetInterceptor(iidintercepted, punkouter.param().abi(), iid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CoGetInterceptorFromTypeInfo(iidintercepted: *const windows_core::GUID, punkouter: P1, typeinfo: P2, iid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -13,7 +13,7 @@ where P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoGetInterceptorFromTypeInfo(iidintercepted : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, typeinfo : * mut core::ffi::c_void, iid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CoGetInterceptorFromTypeInfo(core::mem::transmute(iidintercepted), punkouter.param().abi(), typeinfo.param().abi(), core::mem::transmute(iid), core::mem::transmute(ppv)).ok() + CoGetInterceptorFromTypeInfo(iidintercepted, punkouter.param().abi(), typeinfo.param().abi(), iid, core::mem::transmute(ppv)).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -107,33 +107,33 @@ impl ICallFrame { (windows_core::Interface::vtable(self).GetStackLocation)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetStackLocation(&self, pvstack: *const core::ffi::c_void) { - (windows_core::Interface::vtable(self).SetStackLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(pvstack)) + (windows_core::Interface::vtable(self).SetStackLocation)(windows_core::Interface::as_raw(self), pvstack) } pub unsafe fn SetReturnValue(&self, hr: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).SetReturnValue)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)) + (windows_core::Interface::vtable(self).SetReturnValue)(windows_core::Interface::as_raw(self), hr) } pub unsafe fn GetReturnValue(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetReturnValue)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetParamInfo(&self, iparam: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(iparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParamInfo)(windows_core::Interface::as_raw(self), iparam, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetParam(&self, iparam: u32, pvar: *const super::super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParam)(windows_core::Interface::as_raw(self), core::mem::transmute(iparam), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).SetParam)(windows_core::Interface::as_raw(self), iparam, core::mem::transmute(pvar)).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetParam(&self, iparam: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParam)(windows_core::Interface::as_raw(self), core::mem::transmute(iparam), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetParam)(windows_core::Interface::as_raw(self), iparam, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Copy(&self, copycontrol: CALLFRAME_COPY, pwalker: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), core::mem::transmute(copycontrol), pwalker.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), copycontrol, pwalker.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Free(&self, pframeargsdest: P0, pwalkerdestfree: P1, pwalkercopy: P2, freeflags: u32, pwalkerfree: P4, nullflags: u32) -> windows_core::Result<()> where @@ -142,36 +142,36 @@ impl ICallFrame { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), pframeargsdest.param().abi(), pwalkerdestfree.param().abi(), pwalkercopy.param().abi(), core::mem::transmute(freeflags), pwalkerfree.param().abi(), core::mem::transmute(nullflags)).ok() + (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), pframeargsdest.param().abi(), pwalkerdestfree.param().abi(), pwalkercopy.param().abi(), freeflags, pwalkerfree.param().abi(), nullflags).ok() } pub unsafe fn FreeParam(&self, iparam: u32, freeflags: u32, pwalkerfree: P2, nullflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FreeParam)(windows_core::Interface::as_raw(self), core::mem::transmute(iparam), core::mem::transmute(freeflags), pwalkerfree.param().abi(), core::mem::transmute(nullflags)).ok() + (windows_core::Interface::vtable(self).FreeParam)(windows_core::Interface::as_raw(self), iparam, freeflags, pwalkerfree.param().abi(), nullflags).ok() } pub unsafe fn WalkFrame(&self, walkwhat: u32, pwalker: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WalkFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(walkwhat), pwalker.param().abi()).ok() + (windows_core::Interface::vtable(self).WalkFrame)(windows_core::Interface::as_raw(self), walkwhat, pwalker.param().abi()).ok() } pub unsafe fn GetMarshalSizeMax(&self, pmshlcontext: *const CALLFRAME_MARSHALCONTEXT, mshlflags: super::MSHLFLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMarshalSizeMax)(windows_core::Interface::as_raw(self), core::mem::transmute(pmshlcontext), core::mem::transmute(mshlflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMarshalSizeMax)(windows_core::Interface::as_raw(self), core::mem::transmute(pmshlcontext), mshlflags, &mut result__).map(|| result__) } pub unsafe fn Marshal(&self, pmshlcontext: *const CALLFRAME_MARSHALCONTEXT, mshlflags: super::MSHLFLAGS, pbuffer: &[u8], pcbbufferused: *mut u32, pdatarep: *mut u32, prpcflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Marshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pmshlcontext), core::mem::transmute(mshlflags), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pcbbufferused), core::mem::transmute(pdatarep), core::mem::transmute(prpcflags)).ok() + (windows_core::Interface::vtable(self).Marshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pmshlcontext), mshlflags, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pcbbufferused), core::mem::transmute(pdatarep), core::mem::transmute(prpcflags)).ok() } pub unsafe fn Unmarshal(&self, pbuffer: &[u8], datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Unmarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(datarep), core::mem::transmute(pcontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Unmarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), datarep, core::mem::transmute(pcontext), &mut result__).map(|| result__) } pub unsafe fn ReleaseMarshalData(&self, pbuffer: &[u8], ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseMarshalData)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(ibfirstrelease), core::mem::transmute(datarep), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).ReleaseMarshalData)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), ibfirstrelease, datarep, core::mem::transmute(pcontext)).ok() } pub unsafe fn Invoke(&self, pvreceiver: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(pvreceiver)).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pvreceiver).ok() } } #[repr(C)] @@ -398,7 +398,7 @@ windows_core::imp::define_interface!(ICallFrameWalker, ICallFrameWalker_Vtbl, 0x windows_core::imp::interface_hierarchy!(ICallFrameWalker, windows_core::IUnknown); impl ICallFrameWalker { pub unsafe fn OnWalkInterface(&self, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: bool, fout: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnWalkInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), core::mem::transmute(ppvinterface), fin.into(), fout.into()).ok() + (windows_core::Interface::vtable(self).OnWalkInterface)(windows_core::Interface::as_raw(self), iid, ppvinterface, fin.into(), fout.into()).ok() } } #[repr(C)] @@ -426,14 +426,14 @@ windows_core::imp::define_interface!(ICallIndirect, ICallIndirect_Vtbl, 0xd573b4 windows_core::imp::interface_hierarchy!(ICallIndirect, windows_core::IUnknown); impl ICallIndirect { pub unsafe fn CallIndirect(&self, phrreturn: *mut windows_core::HRESULT, imethod: u32, pvargs: *const core::ffi::c_void, cbargs: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallIndirect)(windows_core::Interface::as_raw(self), core::mem::transmute(phrreturn), core::mem::transmute(imethod), core::mem::transmute(pvargs), core::mem::transmute(cbargs)).ok() + (windows_core::Interface::vtable(self).CallIndirect)(windows_core::Interface::as_raw(self), core::mem::transmute(phrreturn), imethod, pvargs, core::mem::transmute(cbargs)).ok() } pub unsafe fn GetMethodInfo(&self, imethod: u32, pinfo: *mut CALLFRAMEINFO, pwszmethod: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMethodInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(imethod), core::mem::transmute(pinfo), core::mem::transmute(pwszmethod)).ok() + (windows_core::Interface::vtable(self).GetMethodInfo)(windows_core::Interface::as_raw(self), imethod, core::mem::transmute(pinfo), core::mem::transmute(pwszmethod)).ok() } pub unsafe fn GetStackSize(&self, imethod: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStackSize)(windows_core::Interface::as_raw(self), core::mem::transmute(imethod), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStackSize)(windows_core::Interface::as_raw(self), imethod, &mut result__).map(|| result__) } pub unsafe fn GetIID(&self, piid: Option<*mut windows_core::GUID>, pfderivesfromidispatch: Option<*mut super::super::super::Foundation::BOOL>, pcmethod: Option<*mut u32>, pwszinterface: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIID)(windows_core::Interface::as_raw(self), core::mem::transmute(piid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfderivesfromidispatch.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcmethod.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwszinterface)).ok() @@ -551,10 +551,10 @@ windows_core::imp::define_interface!(ICallUnmarshal, ICallUnmarshal_Vtbl, 0x5333 windows_core::imp::interface_hierarchy!(ICallUnmarshal, windows_core::IUnknown); impl ICallUnmarshal { pub unsafe fn Unmarshal(&self, imethod: u32, pbuffer: &[u8], fforcebuffercopy: bool, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unmarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(imethod), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), fforcebuffercopy.into(), core::mem::transmute(datarep), core::mem::transmute(pcontext), core::mem::transmute(pcbunmarshalled), core::mem::transmute(ppframe)).ok() + (windows_core::Interface::vtable(self).Unmarshal)(windows_core::Interface::as_raw(self), imethod, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), fforcebuffercopy.into(), datarep, core::mem::transmute(pcontext), core::mem::transmute(pcbunmarshalled), core::mem::transmute(ppframe)).ok() } pub unsafe fn ReleaseMarshalData(&self, imethod: u32, pbuffer: &[u8], ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseMarshalData)(windows_core::Interface::as_raw(self), core::mem::transmute(imethod), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(ibfirstrelease), core::mem::transmute(datarep), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).ReleaseMarshalData)(windows_core::Interface::as_raw(self), imethod, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), ibfirstrelease, datarep, core::mem::transmute(pcontext)).ok() } } #[repr(C)] @@ -592,7 +592,7 @@ windows_core::imp::define_interface!(IInterfaceRelated, IInterfaceRelated_Vtbl, windows_core::imp::interface_hierarchy!(IInterfaceRelated, windows_core::IUnknown); impl IInterfaceRelated { pub unsafe fn SetIID(&self, iid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIID)(windows_core::Interface::as_raw(self), core::mem::transmute(iid)).ok() + (windows_core::Interface::vtable(self).SetIID)(windows_core::Interface::as_raw(self), iid).ok() } pub unsafe fn GetIID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs index 0b4f8c2c73..4ffc51ff55 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs @@ -8,7 +8,7 @@ impl core::ops::Deref for IChannelCredentials { windows_core::imp::interface_hierarchy!(IChannelCredentials, windows_core::IUnknown, super::IDispatch); impl IChannelCredentials { pub unsafe fn SetWindowsCredential(&self, domain: &windows_core::BSTR, username: &windows_core::BSTR, password: &windows_core::BSTR, impersonationlevel: i32, allowntlm: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowsCredential)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(domain), core::mem::transmute_copy(username), core::mem::transmute_copy(password), core::mem::transmute(impersonationlevel), allowntlm.into()).ok() + (windows_core::Interface::vtable(self).SetWindowsCredential)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(domain), core::mem::transmute_copy(username), core::mem::transmute_copy(password), impersonationlevel, allowntlm.into()).ok() } pub unsafe fn SetUserNameCredential(&self, username: &windows_core::BSTR, password: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetUserNameCredential)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(password)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs index 7845552d3a..086d958011 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs @@ -55,7 +55,7 @@ impl IEnumEventObject { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)) } pub unsafe fn Skip(&self, cskipelem: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cskipelem)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cskipelem).ok() } } #[repr(C)] @@ -490,7 +490,7 @@ impl IEventControl { } pub unsafe fn GetSubscriptions(&self, methodname: &windows_core::BSTR, optionalcriteria: &windows_core::BSTR, optionalerrorindex: *const i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(methodname), core::mem::transmute_copy(optionalcriteria), core::mem::transmute(optionalerrorindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(methodname), core::mem::transmute_copy(optionalcriteria), optionalerrorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultQuery(&self, methodname: &windows_core::BSTR, criteria: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -574,13 +574,13 @@ windows_core::imp::define_interface!(IEventObjectChange, IEventObjectChange_Vtbl windows_core::imp::interface_hierarchy!(IEventObjectChange, windows_core::IUnknown); impl IEventObjectChange { pub unsafe fn ChangedSubscription(&self, changetype: EOC_ChangeType, bstrsubscriptionid: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangedSubscription)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype), core::mem::transmute_copy(bstrsubscriptionid)).ok() + (windows_core::Interface::vtable(self).ChangedSubscription)(windows_core::Interface::as_raw(self), changetype, core::mem::transmute_copy(bstrsubscriptionid)).ok() } pub unsafe fn ChangedEventClass(&self, changetype: EOC_ChangeType, bstreventclassid: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangedEventClass)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype), core::mem::transmute_copy(bstreventclassid)).ok() + (windows_core::Interface::vtable(self).ChangedEventClass)(windows_core::Interface::as_raw(self), changetype, core::mem::transmute_copy(bstreventclassid)).ok() } pub unsafe fn ChangedPublisher(&self, changetype: EOC_ChangeType, bstrpublisherid: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangedPublisher)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype), core::mem::transmute_copy(bstrpublisherid)).ok() + (windows_core::Interface::vtable(self).ChangedPublisher)(windows_core::Interface::as_raw(self), changetype, core::mem::transmute_copy(bstrpublisherid)).ok() } } #[repr(C)] @@ -1787,11 +1787,11 @@ impl IMultiInterfaceEventControl { } pub unsafe fn GetSubscriptions(&self, eventiid: *const windows_core::GUID, bstrmethodname: &windows_core::BSTR, optionalcriteria: &windows_core::BSTR, optionalerrorindex: *const i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), core::mem::transmute(eventiid), core::mem::transmute_copy(bstrmethodname), core::mem::transmute_copy(optionalcriteria), core::mem::transmute(optionalerrorindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), eventiid, core::mem::transmute_copy(bstrmethodname), core::mem::transmute_copy(optionalcriteria), optionalerrorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultQuery(&self, eventiid: *const windows_core::GUID, bstrmethodname: &windows_core::BSTR, bstrcriteria: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(eventiid), core::mem::transmute_copy(bstrmethodname), core::mem::transmute_copy(bstrcriteria), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), eventiid, core::mem::transmute_copy(bstrmethodname), core::mem::transmute_copy(bstrcriteria), &mut result__).map(|| result__) } pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1911,7 +1911,7 @@ impl IMultiInterfacePublisherFilter { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareToFire)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), core::mem::transmute_copy(methodname), firingcontrol.param().abi()).ok() + (windows_core::Interface::vtable(self).PrepareToFire)(windows_core::Interface::as_raw(self), iid, core::mem::transmute_copy(methodname), firingcontrol.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs index 7928b67b8c..c87270c25e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs @@ -1,82 +1,82 @@ #[inline] pub unsafe fn BSTR_UserFree(param0: *const u32, param1: *const windows_core::BSTR) { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserFree(param0 : *const u32, param1 : *const * mut core::ffi::c_void)); - BSTR_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + BSTR_UserFree(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn BSTR_UserFree64(param0: *const u32, param1: *const windows_core::BSTR) { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserFree64(param0 : *const u32, param1 : *const * mut core::ffi::c_void)); - BSTR_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + BSTR_UserFree64(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn BSTR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const windows_core::BSTR) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const * mut core::ffi::c_void) -> *mut u8); - BSTR_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + BSTR_UserMarshal(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[inline] pub unsafe fn BSTR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const windows_core::BSTR) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const * mut core::ffi::c_void) -> *mut u8); - BSTR_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + BSTR_UserMarshal64(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[inline] pub unsafe fn BSTR_UserSize(param0: *const u32, param1: u32, param2: *const windows_core::BSTR) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserSize(param0 : *const u32, param1 : u32, param2 : *const * mut core::ffi::c_void) -> u32); - BSTR_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + BSTR_UserSize(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn BSTR_UserSize64(param0: *const u32, param1: u32, param2: *const windows_core::BSTR) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserSize64(param0 : *const u32, param1 : u32, param2 : *const * mut core::ffi::c_void) -> u32); - BSTR_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + BSTR_UserSize64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn BSTR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut windows_core::BSTR) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut * mut core::ffi::c_void) -> *mut u8); - BSTR_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + BSTR_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn BSTR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut windows_core::BSTR) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn BSTR_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut * mut core::ffi::c_void) -> *mut u8); - BSTR_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + BSTR_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn CLIPFORMAT_UserFree(param0: *const u32, param1: *const u16) { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserFree(param0 : *const u32, param1 : *const u16)); - CLIPFORMAT_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + CLIPFORMAT_UserFree(param0, param1) } #[inline] pub unsafe fn CLIPFORMAT_UserFree64(param0: *const u32, param1: *const u16) { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserFree64(param0 : *const u32, param1 : *const u16)); - CLIPFORMAT_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + CLIPFORMAT_UserFree64(param0, param1) } #[inline] pub unsafe fn CLIPFORMAT_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const u16) -> *mut u8); - CLIPFORMAT_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + CLIPFORMAT_UserMarshal(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn CLIPFORMAT_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const u16) -> *mut u8); - CLIPFORMAT_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + CLIPFORMAT_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn CLIPFORMAT_UserSize(param0: *const u32, param1: u32, param2: *const u16) -> u32 { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserSize(param0 : *const u32, param1 : u32, param2 : *const u16) -> u32); - CLIPFORMAT_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + CLIPFORMAT_UserSize(param0, param1, param2) } #[inline] pub unsafe fn CLIPFORMAT_UserSize64(param0: *const u32, param1: u32, param2: *const u16) -> u32 { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserSize64(param0 : *const u32, param1 : u32, param2 : *const u16) -> u32); - CLIPFORMAT_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + CLIPFORMAT_UserSize64(param0, param1, param2) } #[inline] pub unsafe fn CLIPFORMAT_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut u16) -> *mut u8); - CLIPFORMAT_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + CLIPFORMAT_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn CLIPFORMAT_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn CLIPFORMAT_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut u16) -> *mut u8); - CLIPFORMAT_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + CLIPFORMAT_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn CoGetMarshalSizeMax(pulsize: *mut u32, riid: *const windows_core::GUID, punk: P2, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result<()> @@ -84,7 +84,7 @@ where P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoGetMarshalSizeMax(pulsize : *mut u32, riid : *const windows_core::GUID, punk : * mut core::ffi::c_void, dwdestcontext : u32, pvdestcontext : *const core::ffi::c_void, mshlflags : u32) -> windows_core::HRESULT); - CoGetMarshalSizeMax(core::mem::transmute(pulsize), core::mem::transmute(riid), punk.param().abi(), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(mshlflags)).ok() + CoGetMarshalSizeMax(core::mem::transmute(pulsize), riid, punk.param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), mshlflags).ok() } #[inline] pub unsafe fn CoGetStandardMarshal(riid: *const windows_core::GUID, punk: P1, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result @@ -93,7 +93,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoGetStandardMarshal(riid : *const windows_core::GUID, punk : * mut core::ffi::c_void, dwdestcontext : u32, pvdestcontext : *const core::ffi::c_void, mshlflags : u32, ppmarshal : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoGetStandardMarshal(core::mem::transmute(riid), punk.param().abi(), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(mshlflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetStandardMarshal(riid, punk.param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), mshlflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoGetStdMarshalEx(punkouter: P0, smexflags: u32) -> windows_core::Result @@ -102,7 +102,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoGetStdMarshalEx(punkouter : * mut core::ffi::c_void, smexflags : u32, ppunkinner : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoGetStdMarshalEx(punkouter.param().abi(), core::mem::transmute(smexflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetStdMarshalEx(punkouter.param().abi(), smexflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoMarshalHresult(pstm: P0, hresult: windows_core::HRESULT) -> windows_core::Result<()> @@ -110,7 +110,7 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoMarshalHresult(pstm : * mut core::ffi::c_void, hresult : windows_core::HRESULT) -> windows_core::HRESULT); - CoMarshalHresult(pstm.param().abi(), core::mem::transmute(hresult)).ok() + CoMarshalHresult(pstm.param().abi(), hresult).ok() } #[inline] pub unsafe fn CoMarshalInterThreadInterfaceInStream(riid: *const windows_core::GUID, punk: P1) -> windows_core::Result @@ -119,7 +119,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoMarshalInterThreadInterfaceInStream(riid : *const windows_core::GUID, punk : * mut core::ffi::c_void, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoMarshalInterThreadInterfaceInStream(core::mem::transmute(riid), punk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoMarshalInterThreadInterfaceInStream(riid, punk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoMarshalInterface(pstm: P0, riid: *const windows_core::GUID, punk: P2, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result<()> @@ -128,7 +128,7 @@ where P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoMarshalInterface(pstm : * mut core::ffi::c_void, riid : *const windows_core::GUID, punk : * mut core::ffi::c_void, dwdestcontext : u32, pvdestcontext : *const core::ffi::c_void, mshlflags : u32) -> windows_core::HRESULT); - CoMarshalInterface(pstm.param().abi(), core::mem::transmute(riid), punk.param().abi(), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(mshlflags)).ok() + CoMarshalInterface(pstm.param().abi(), riid, punk.param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), mshlflags).ok() } #[inline] pub unsafe fn CoReleaseMarshalData(pstm: P0) -> windows_core::Result<()> @@ -161,520 +161,520 @@ where #[inline] pub unsafe fn HACCEL_UserFree(param0: *const u32, param1: *const super::super::super::UI::WindowsAndMessaging::HACCEL) { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserFree(param0 : *const u32, param1 : *const super::super::super::UI::WindowsAndMessaging:: HACCEL)); - HACCEL_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HACCEL_UserFree(param0, param1) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserFree64(param0: *const u32, param1: *const super::super::super::UI::WindowsAndMessaging::HACCEL) { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserFree64(param0 : *const u32, param1 : *const super::super::super::UI::WindowsAndMessaging:: HACCEL)); - HACCEL_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HACCEL_UserFree64(param0, param1) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::UI::WindowsAndMessaging:: HACCEL) -> *mut u8); - HACCEL_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HACCEL_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::UI::WindowsAndMessaging:: HACCEL) -> *mut u8); - HACCEL_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HACCEL_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::UI::WindowsAndMessaging::HACCEL) -> u32 { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::UI::WindowsAndMessaging:: HACCEL) -> u32); - HACCEL_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HACCEL_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::UI::WindowsAndMessaging::HACCEL) -> u32 { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::UI::WindowsAndMessaging:: HACCEL) -> u32); - HACCEL_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HACCEL_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::UI::WindowsAndMessaging:: HACCEL) -> *mut u8); - HACCEL_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HACCEL_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HACCEL_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HACCEL_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::UI::WindowsAndMessaging:: HACCEL) -> *mut u8); - HACCEL_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HACCEL_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserFree(param0: *const u32, param1: *const super::super::super::Graphics::Gdi::HBITMAP) { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserFree(param0 : *const u32, param1 : *const super::super::super::Graphics::Gdi:: HBITMAP)); - HBITMAP_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HBITMAP_UserFree(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserFree64(param0: *const u32, param1: *const super::super::super::Graphics::Gdi::HBITMAP) { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserFree64(param0 : *const u32, param1 : *const super::super::super::Graphics::Gdi:: HBITMAP)); - HBITMAP_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HBITMAP_UserFree64(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Graphics::Gdi:: HBITMAP) -> *mut u8); - HBITMAP_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HBITMAP_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Graphics::Gdi:: HBITMAP) -> *mut u8); - HBITMAP_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HBITMAP_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Graphics::Gdi::HBITMAP) -> u32 { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Graphics::Gdi:: HBITMAP) -> u32); - HBITMAP_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HBITMAP_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Graphics::Gdi::HBITMAP) -> u32 { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Graphics::Gdi:: HBITMAP) -> u32); - HBITMAP_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HBITMAP_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Graphics::Gdi:: HBITMAP) -> *mut u8); - HBITMAP_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HBITMAP_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HBITMAP_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HBITMAP_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Graphics::Gdi:: HBITMAP) -> *mut u8); - HBITMAP_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HBITMAP_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserFree(param0: *const u32, param1: *const super::super::super::Graphics::Gdi::HDC) { windows_targets::link!("ole32.dll" "system" fn HDC_UserFree(param0 : *const u32, param1 : *const super::super::super::Graphics::Gdi:: HDC)); - HDC_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HDC_UserFree(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserFree64(param0: *const u32, param1: *const super::super::super::Graphics::Gdi::HDC) { windows_targets::link!("ole32.dll" "system" fn HDC_UserFree64(param0 : *const u32, param1 : *const super::super::super::Graphics::Gdi:: HDC)); - HDC_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HDC_UserFree64(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Graphics::Gdi::HDC) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HDC_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Graphics::Gdi:: HDC) -> *mut u8); - HDC_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HDC_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Graphics::Gdi::HDC) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HDC_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Graphics::Gdi:: HDC) -> *mut u8); - HDC_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HDC_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Graphics::Gdi::HDC) -> u32 { windows_targets::link!("ole32.dll" "system" fn HDC_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Graphics::Gdi:: HDC) -> u32); - HDC_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HDC_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Graphics::Gdi::HDC) -> u32 { windows_targets::link!("ole32.dll" "system" fn HDC_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Graphics::Gdi:: HDC) -> u32); - HDC_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HDC_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HDC) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HDC_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Graphics::Gdi:: HDC) -> *mut u8); - HDC_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HDC_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HDC_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HDC) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HDC_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Graphics::Gdi:: HDC) -> *mut u8); - HDC_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HDC_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HGLOBAL_UserFree(param0: *const u32, param1: *const super::super::super::Foundation::HGLOBAL) { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserFree(param0 : *const u32, param1 : *const super::super::super::Foundation:: HGLOBAL)); - HGLOBAL_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HGLOBAL_UserFree(param0, param1) } #[inline] pub unsafe fn HGLOBAL_UserFree64(param0: *const u32, param1: *const super::super::super::Foundation::HGLOBAL) { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserFree64(param0 : *const u32, param1 : *const super::super::super::Foundation:: HGLOBAL)); - HGLOBAL_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HGLOBAL_UserFree64(param0, param1) } #[inline] pub unsafe fn HGLOBAL_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::HGLOBAL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Foundation:: HGLOBAL) -> *mut u8); - HGLOBAL_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HGLOBAL_UserMarshal(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn HGLOBAL_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::HGLOBAL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Foundation:: HGLOBAL) -> *mut u8); - HGLOBAL_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HGLOBAL_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn HGLOBAL_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::HGLOBAL) -> u32 { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Foundation:: HGLOBAL) -> u32); - HGLOBAL_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HGLOBAL_UserSize(param0, param1, param2) } #[inline] pub unsafe fn HGLOBAL_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::HGLOBAL) -> u32 { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Foundation:: HGLOBAL) -> u32); - HGLOBAL_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HGLOBAL_UserSize64(param0, param1, param2) } #[inline] pub unsafe fn HGLOBAL_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::HGLOBAL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Foundation:: HGLOBAL) -> *mut u8); - HGLOBAL_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HGLOBAL_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HGLOBAL_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::HGLOBAL) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HGLOBAL_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Foundation:: HGLOBAL) -> *mut u8); - HGLOBAL_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HGLOBAL_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserFree(param0: *const u32, param1: *const super::super::super::UI::WindowsAndMessaging::HICON) { windows_targets::link!("ole32.dll" "system" fn HICON_UserFree(param0 : *const u32, param1 : *const super::super::super::UI::WindowsAndMessaging:: HICON)); - HICON_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HICON_UserFree(param0, param1) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserFree64(param0: *const u32, param1: *const super::super::super::UI::WindowsAndMessaging::HICON) { windows_targets::link!("ole32.dll" "system" fn HICON_UserFree64(param0 : *const u32, param1 : *const super::super::super::UI::WindowsAndMessaging:: HICON)); - HICON_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HICON_UserFree64(param0, param1) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HICON_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::UI::WindowsAndMessaging:: HICON) -> *mut u8); - HICON_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HICON_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HICON_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::UI::WindowsAndMessaging:: HICON) -> *mut u8); - HICON_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HICON_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::UI::WindowsAndMessaging::HICON) -> u32 { windows_targets::link!("ole32.dll" "system" fn HICON_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::UI::WindowsAndMessaging:: HICON) -> u32); - HICON_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HICON_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::UI::WindowsAndMessaging::HICON) -> u32 { windows_targets::link!("ole32.dll" "system" fn HICON_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::UI::WindowsAndMessaging:: HICON) -> u32); - HICON_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HICON_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HICON_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::UI::WindowsAndMessaging:: HICON) -> *mut u8); - HICON_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HICON_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HICON_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HICON_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::UI::WindowsAndMessaging:: HICON) -> *mut u8); - HICON_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HICON_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserFree(param0: *const u32, param1: *const super::super::super::UI::WindowsAndMessaging::HMENU) { windows_targets::link!("ole32.dll" "system" fn HMENU_UserFree(param0 : *const u32, param1 : *const super::super::super::UI::WindowsAndMessaging:: HMENU)); - HMENU_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HMENU_UserFree(param0, param1) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserFree64(param0: *const u32, param1: *const super::super::super::UI::WindowsAndMessaging::HMENU) { windows_targets::link!("ole32.dll" "system" fn HMENU_UserFree64(param0 : *const u32, param1 : *const super::super::super::UI::WindowsAndMessaging:: HMENU)); - HMENU_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HMENU_UserFree64(param0, param1) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMENU_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::UI::WindowsAndMessaging:: HMENU) -> *mut u8); - HMENU_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMENU_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMENU_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::UI::WindowsAndMessaging:: HMENU) -> *mut u8); - HMENU_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMENU_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::UI::WindowsAndMessaging::HMENU) -> u32 { windows_targets::link!("ole32.dll" "system" fn HMENU_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::UI::WindowsAndMessaging:: HMENU) -> u32); - HMENU_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMENU_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::UI::WindowsAndMessaging::HMENU) -> u32 { windows_targets::link!("ole32.dll" "system" fn HMENU_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::UI::WindowsAndMessaging:: HMENU) -> u32); - HMENU_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMENU_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMENU_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::UI::WindowsAndMessaging:: HMENU) -> *mut u8); - HMENU_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMENU_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn HMENU_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMENU_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::UI::WindowsAndMessaging:: HMENU) -> *mut u8); - HMENU_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMENU_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserFree(param0: *const u32, param1: *const super::super::super::Graphics::Gdi::HPALETTE) { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserFree(param0 : *const u32, param1 : *const super::super::super::Graphics::Gdi:: HPALETTE)); - HPALETTE_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HPALETTE_UserFree(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserFree64(param0: *const u32, param1: *const super::super::super::Graphics::Gdi::HPALETTE) { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserFree64(param0 : *const u32, param1 : *const super::super::super::Graphics::Gdi:: HPALETTE)); - HPALETTE_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HPALETTE_UserFree64(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Graphics::Gdi:: HPALETTE) -> *mut u8); - HPALETTE_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HPALETTE_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Graphics::Gdi:: HPALETTE) -> *mut u8); - HPALETTE_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HPALETTE_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Graphics::Gdi::HPALETTE) -> u32 { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Graphics::Gdi:: HPALETTE) -> u32); - HPALETTE_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HPALETTE_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Graphics::Gdi::HPALETTE) -> u32 { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Graphics::Gdi:: HPALETTE) -> u32); - HPALETTE_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HPALETTE_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Graphics::Gdi:: HPALETTE) -> *mut u8); - HPALETTE_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HPALETTE_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HPALETTE_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HPALETTE_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Graphics::Gdi:: HPALETTE) -> *mut u8); - HPALETTE_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HPALETTE_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HWND_UserFree(param0: *const u32, param1: *const super::super::super::Foundation::HWND) { windows_targets::link!("ole32.dll" "system" fn HWND_UserFree(param0 : *const u32, param1 : *const super::super::super::Foundation:: HWND)); - HWND_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HWND_UserFree(param0, param1) } #[inline] pub unsafe fn HWND_UserFree64(param0: *const u32, param1: *const super::super::super::Foundation::HWND) { windows_targets::link!("ole32.dll" "system" fn HWND_UserFree64(param0 : *const u32, param1 : *const super::super::super::Foundation:: HWND)); - HWND_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HWND_UserFree64(param0, param1) } #[inline] pub unsafe fn HWND_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::HWND) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HWND_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Foundation:: HWND) -> *mut u8); - HWND_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HWND_UserMarshal(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn HWND_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::HWND) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HWND_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::super::Foundation:: HWND) -> *mut u8); - HWND_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HWND_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn HWND_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::HWND) -> u32 { windows_targets::link!("ole32.dll" "system" fn HWND_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Foundation:: HWND) -> u32); - HWND_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HWND_UserSize(param0, param1, param2) } #[inline] pub unsafe fn HWND_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::HWND) -> u32 { windows_targets::link!("ole32.dll" "system" fn HWND_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::super::Foundation:: HWND) -> u32); - HWND_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HWND_UserSize64(param0, param1, param2) } #[inline] pub unsafe fn HWND_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::HWND) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HWND_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Foundation:: HWND) -> *mut u8); - HWND_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HWND_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HWND_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::HWND) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HWND_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::super::Foundation:: HWND) -> *mut u8); - HWND_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HWND_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn LPSAFEARRAY_UserFree(param0: *const u32, param1: *const *const super::SAFEARRAY) { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserFree(param0 : *const u32, param1 : *const *const super:: SAFEARRAY)); - LPSAFEARRAY_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + LPSAFEARRAY_UserFree(param0, param1) } #[inline] pub unsafe fn LPSAFEARRAY_UserFree64(param0: *const u32, param1: *const *const super::SAFEARRAY) { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserFree64(param0 : *const u32, param1 : *const *const super:: SAFEARRAY)); - LPSAFEARRAY_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + LPSAFEARRAY_UserFree64(param0, param1) } #[inline] pub unsafe fn LPSAFEARRAY_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const *const super::SAFEARRAY) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const *const super:: SAFEARRAY) -> *mut u8); - LPSAFEARRAY_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + LPSAFEARRAY_UserMarshal(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn LPSAFEARRAY_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const *const super::SAFEARRAY) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const *const super:: SAFEARRAY) -> *mut u8); - LPSAFEARRAY_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + LPSAFEARRAY_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn LPSAFEARRAY_UserSize(param0: *const u32, param1: u32, param2: *const *const super::SAFEARRAY) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserSize(param0 : *const u32, param1 : u32, param2 : *const *const super:: SAFEARRAY) -> u32); - LPSAFEARRAY_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + LPSAFEARRAY_UserSize(param0, param1, param2) } #[inline] pub unsafe fn LPSAFEARRAY_UserSize64(param0: *const u32, param1: u32, param2: *const *const super::SAFEARRAY) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserSize64(param0 : *const u32, param1 : u32, param2 : *const *const super:: SAFEARRAY) -> u32); - LPSAFEARRAY_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + LPSAFEARRAY_UserSize64(param0, param1, param2) } #[inline] pub unsafe fn LPSAFEARRAY_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut *mut super::SAFEARRAY) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut *mut super:: SAFEARRAY) -> *mut u8); - LPSAFEARRAY_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + LPSAFEARRAY_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn LPSAFEARRAY_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut *mut super::SAFEARRAY) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn LPSAFEARRAY_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut *mut super:: SAFEARRAY) -> *mut u8); - LPSAFEARRAY_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + LPSAFEARRAY_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn SNB_UserFree(param0: *const u32, param1: *const *const *const u16) { windows_targets::link!("ole32.dll" "system" fn SNB_UserFree(param0 : *const u32, param1 : *const *const *const u16)); - SNB_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + SNB_UserFree(param0, param1) } #[inline] pub unsafe fn SNB_UserFree64(param0: *const u32, param1: *const *const *const u16) { windows_targets::link!("ole32.dll" "system" fn SNB_UserFree64(param0 : *const u32, param1 : *const *const *const u16)); - SNB_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + SNB_UserFree64(param0, param1) } #[inline] pub unsafe fn SNB_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const *const *const u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn SNB_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const *const *const u16) -> *mut u8); - SNB_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + SNB_UserMarshal(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn SNB_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const *const *const u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn SNB_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const *const *const u16) -> *mut u8); - SNB_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + SNB_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[inline] pub unsafe fn SNB_UserSize(param0: *const u32, param1: u32, param2: *const *const *const u16) -> u32 { windows_targets::link!("ole32.dll" "system" fn SNB_UserSize(param0 : *const u32, param1 : u32, param2 : *const *const *const u16) -> u32); - SNB_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + SNB_UserSize(param0, param1, param2) } #[inline] pub unsafe fn SNB_UserSize64(param0: *const u32, param1: u32, param2: *const *const *const u16) -> u32 { windows_targets::link!("ole32.dll" "system" fn SNB_UserSize64(param0 : *const u32, param1 : u32, param2 : *const *const *const u16) -> u32); - SNB_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + SNB_UserSize64(param0, param1, param2) } #[inline] pub unsafe fn SNB_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut *mut *mut u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn SNB_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut *mut *mut u16) -> *mut u8); - SNB_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + SNB_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn SNB_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut *mut *mut u16) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn SNB_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut *mut *mut u16) -> *mut u8); - SNB_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + SNB_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserFree(param0: *const u32, param1: *const super::STGMEDIUM) { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserFree(param0 : *const u32, param1 : *const super:: STGMEDIUM)); - STGMEDIUM_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + STGMEDIUM_UserFree(param0, core::mem::transmute(param1)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserFree64(param0: *const u32, param1: *const super::STGMEDIUM) { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserFree64(param0 : *const u32, param1 : *const super:: STGMEDIUM)); - STGMEDIUM_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + STGMEDIUM_UserFree64(param0, core::mem::transmute(param1)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::STGMEDIUM) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super:: STGMEDIUM) -> *mut u8); - STGMEDIUM_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + STGMEDIUM_UserMarshal(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::STGMEDIUM) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super:: STGMEDIUM) -> *mut u8); - STGMEDIUM_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + STGMEDIUM_UserMarshal64(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserSize(param0: *const u32, param1: u32, param2: *const super::STGMEDIUM) -> u32 { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserSize(param0 : *const u32, param1 : u32, param2 : *const super:: STGMEDIUM) -> u32); - STGMEDIUM_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + STGMEDIUM_UserSize(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserSize64(param0: *const u32, param1: u32, param2: *const super::STGMEDIUM) -> u32 { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super:: STGMEDIUM) -> u32); - STGMEDIUM_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + STGMEDIUM_UserSize64(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::STGMEDIUM) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super:: STGMEDIUM) -> *mut u8); - STGMEDIUM_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + STGMEDIUM_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn STGMEDIUM_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::STGMEDIUM) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super:: STGMEDIUM) -> *mut u8); - STGMEDIUM_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + STGMEDIUM_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } windows_core::imp::define_interface!(IMarshal, IMarshal_Vtbl, 0x00000003_0000_0000_c000_000000000046); windows_core::imp::interface_hierarchy!(IMarshal, windows_core::IUnknown); impl IMarshal { pub unsafe fn GetUnmarshalClass(&self, riid: *const windows_core::GUID, pv: Option<*const core::ffi::c_void>, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUnmarshalClass)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(mshlflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUnmarshalClass)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), mshlflags, &mut result__).map(|| result__) } pub unsafe fn GetMarshalSizeMax(&self, riid: *const windows_core::GUID, pv: Option<*const core::ffi::c_void>, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMarshalSizeMax)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(mshlflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMarshalSizeMax)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), mshlflags, &mut result__).map(|| result__) } pub unsafe fn MarshalInterface(&self, pstm: P0, riid: *const windows_core::GUID, pv: Option<*const core::ffi::c_void>, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), core::mem::transmute(riid), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(mshlflags)).ok() + (windows_core::Interface::vtable(self).MarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), riid, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), mshlflags).ok() } pub unsafe fn UnmarshalInterface(&self, pstm: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnmarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).UnmarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn ReleaseMarshalData(&self, pstm: P0) -> windows_core::Result<()> where @@ -683,7 +683,7 @@ impl IMarshal { (windows_core::Interface::vtable(self).ReleaseMarshalData)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn DisconnectObject(&self, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectObject)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).DisconnectObject)(windows_core::Interface::as_raw(self), dwreserved).ok() } } #[repr(C)] @@ -790,7 +790,7 @@ windows_core::imp::interface_hierarchy!(IMarshalingStream, windows_core::IUnknow impl IMarshalingStream { pub unsafe fn GetMarshalingContextAttribute(&self, attribute: super::CO_MARSHALING_CONTEXT_ATTRIBUTES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMarshalingContextAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attribute), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMarshalingContextAttribute)(windows_core::Interface::as_raw(self), attribute, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs index 37b423c74e..e32977a778 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs @@ -11,7 +11,7 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoGetInstanceFromFile(pserverinfo : *const super:: COSERVERINFO, pclsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, dwclsctx : super:: CLSCTX, grfmode : u32, pwszname : windows_core::PCWSTR, dwcount : u32, presults : *mut super:: MULTI_QI) -> windows_core::HRESULT); - CoGetInstanceFromFile(core::mem::transmute(pserverinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pclsid.unwrap_or(core::mem::zeroed())), punkouter.param().abi(), core::mem::transmute(dwclsctx), core::mem::transmute(grfmode), pwszname.param().abi(), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoGetInstanceFromFile(core::mem::transmute(pserverinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pclsid.unwrap_or(core::mem::zeroed())), punkouter.param().abi(), dwclsctx, grfmode, pwszname.param().abi(), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() } #[inline] pub unsafe fn CoGetInstanceFromIStorage(pserverinfo: Option<*const super::COSERVERINFO>, pclsid: Option<*const windows_core::GUID>, punkouter: P2, dwclsctx: super::CLSCTX, pstg: P4, presults: &mut [super::MULTI_QI]) -> windows_core::Result<()> @@ -20,7 +20,7 @@ where P4: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoGetInstanceFromIStorage(pserverinfo : *const super:: COSERVERINFO, pclsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, dwclsctx : super:: CLSCTX, pstg : * mut core::ffi::c_void, dwcount : u32, presults : *mut super:: MULTI_QI) -> windows_core::HRESULT); - CoGetInstanceFromIStorage(core::mem::transmute(pserverinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pclsid.unwrap_or(core::mem::zeroed())), punkouter.param().abi(), core::mem::transmute(dwclsctx), pstg.param().abi(), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoGetInstanceFromIStorage(core::mem::transmute(pserverinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pclsid.unwrap_or(core::mem::zeroed())), punkouter.param().abi(), dwclsctx, pstg.param().abi(), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() } #[inline] pub unsafe fn CoGetInterfaceAndReleaseStream(pstm: P0) -> windows_core::Result @@ -42,12 +42,12 @@ pub unsafe fn CreateILockBytesOnHGlobal(hglobal: Option windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CreateStreamOnHGlobal(hglobal : super::super::super::Foundation:: HGLOBAL, fdeleteonrelease : super::super::super::Foundation:: BOOL, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateStreamOnHGlobal(core::mem::transmute(hglobal), fdeleteonrelease.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateStreamOnHGlobal(hglobal, fdeleteonrelease.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn FmtIdToPropStgName(pfmtid: *const windows_core::GUID, oszname: windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn FmtIdToPropStgName(pfmtid : *const windows_core::GUID, oszname : windows_core::PWSTR) -> windows_core::HRESULT); - FmtIdToPropStgName(core::mem::transmute(pfmtid), core::mem::transmute(oszname)).ok() + FmtIdToPropStgName(pfmtid, core::mem::transmute(oszname)).ok() } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -93,14 +93,14 @@ pub unsafe fn InitPropVariantFromBooleanVector(prgf: Option<&[super::super::supe pub unsafe fn InitPropVariantFromBuffer(pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromBuffer(pv : *const core::ffi::c_void, cb : u32, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromBuffer(core::mem::transmute(pv), core::mem::transmute(cb), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromBuffer(pv, cb, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn InitPropVariantFromCLSID(clsid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromCLSID(clsid : *const windows_core::GUID, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromCLSID(core::mem::transmute(clsid), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromCLSID(clsid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -114,7 +114,7 @@ pub unsafe fn InitPropVariantFromDoubleVector(prgn: Option<&[f64]>) -> windows_c pub unsafe fn InitPropVariantFromFileTime(pftin: *const super::super::super::Foundation::FILETIME) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromFileTime(pftin : *const super::super::super::Foundation:: FILETIME, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromFileTime(core::mem::transmute(pftin), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromFileTime(pftin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -128,7 +128,7 @@ pub unsafe fn InitPropVariantFromFileTimeVector(prgft: Option<&[super::super::su pub unsafe fn InitPropVariantFromGUIDAsString(guid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromGUIDAsString(guid : *const windows_core::GUID, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromGUIDAsString(core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromGUIDAsString(guid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -156,14 +156,14 @@ pub unsafe fn InitPropVariantFromInt64Vector(prgn: Option<&[i64]>) -> windows_co pub unsafe fn InitPropVariantFromPropVariantVectorElem(propvarin: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromPropVariantVectorElem(propvarin : *const PROPVARIANT, ielem : u32, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromPropVariantVectorElem(core::mem::transmute(propvarin), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromPropVariantVectorElem(core::mem::transmute(propvarin), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn InitPropVariantFromResource(hinst: super::super::super::Foundation::HINSTANCE, id: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromResource(hinst : super::super::super::Foundation:: HINSTANCE, id : u32, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitPropVariantFromResource(core::mem::transmute(hinst), core::mem::transmute(id), &mut result__).map(|| core::mem::transmute(result__)) + InitPropVariantFromResource(hinst, id, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -227,7 +227,7 @@ where { windows_targets::link!("ole32.dll" "system" fn OleConvertIStorageToOLESTREAMEx(pstg : * mut core::ffi::c_void, cfformat : u16, lwidth : i32, lheight : i32, dwsize : u32, pmedium : *const super:: STGMEDIUM, polestm : *mut OLESTREAM) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleConvertIStorageToOLESTREAMEx(pstg.param().abi(), core::mem::transmute(cfformat), core::mem::transmute(lwidth), core::mem::transmute(lheight), core::mem::transmute(dwsize), core::mem::transmute(pmedium), &mut result__).map(|| core::mem::transmute(result__)) + OleConvertIStorageToOLESTREAMEx(pstg.param().abi(), cfformat, lwidth, lheight, dwsize, core::mem::transmute(pmedium), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn OleConvertOLESTREAMToIStorage(lpolestream: *const OLESTREAM, pstg: P1, ptd: *const super::DVTARGETDEVICE) -> windows_core::Result<()> @@ -235,7 +235,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleConvertOLESTREAMToIStorage(lpolestream : *const OLESTREAM, pstg : * mut core::ffi::c_void, ptd : *const super:: DVTARGETDEVICE) -> windows_core::HRESULT); - OleConvertOLESTREAMToIStorage(core::mem::transmute(lpolestream), pstg.param().abi(), core::mem::transmute(ptd)).ok() + OleConvertOLESTREAMToIStorage(lpolestream, pstg.param().abi(), ptd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -244,7 +244,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleConvertOLESTREAMToIStorageEx(polestm : *const OLESTREAM, pstg : * mut core::ffi::c_void, pcfformat : *mut u16, plwwidth : *mut i32, plheight : *mut i32, pdwsize : *mut u32, pmedium : *mut super:: STGMEDIUM) -> windows_core::HRESULT); - OleConvertOLESTREAMToIStorageEx(core::mem::transmute(polestm), pstg.param().abi(), core::mem::transmute(pcfformat), core::mem::transmute(plwwidth), core::mem::transmute(plheight), core::mem::transmute(pdwsize), core::mem::transmute(pmedium)).ok() + OleConvertOLESTREAMToIStorageEx(polestm, pstg.param().abi(), core::mem::transmute(pcfformat), core::mem::transmute(plwwidth), core::mem::transmute(plheight), core::mem::transmute(pdwsize), core::mem::transmute(pmedium)).ok() } #[inline] pub unsafe fn PropStgNameToFmtId(oszname: P0) -> windows_core::Result @@ -259,7 +259,7 @@ where #[inline] pub unsafe fn PropVariantChangeType(ppropvardest: *mut PROPVARIANT, propvarsrc: *const PROPVARIANT, flags: PROPVAR_CHANGE_FLAGS, vt: super::super::Variant::VARENUM) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PropVariantChangeType(ppropvardest : *mut PROPVARIANT, propvarsrc : *const PROPVARIANT, flags : PROPVAR_CHANGE_FLAGS, vt : super::super::Variant:: VARENUM) -> windows_core::HRESULT); - PropVariantChangeType(core::mem::transmute(ppropvardest), core::mem::transmute(propvarsrc), core::mem::transmute(flags), core::mem::transmute(vt)).ok() + PropVariantChangeType(core::mem::transmute(ppropvardest), core::mem::transmute(propvarsrc), flags, vt).ok() } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -271,7 +271,7 @@ pub unsafe fn PropVariantClear(pvar: *mut PROPVARIANT) -> windows_core::Result<( #[inline] pub unsafe fn PropVariantCompareEx(propvar1: *const PROPVARIANT, propvar2: *const PROPVARIANT, unit: PROPVAR_COMPARE_UNIT, flags: PROPVAR_COMPARE_FLAGS) -> i32 { windows_targets::link!("propsys.dll" "system" fn PropVariantCompareEx(propvar1 : *const PROPVARIANT, propvar2 : *const PROPVARIANT, unit : PROPVAR_COMPARE_UNIT, flags : PROPVAR_COMPARE_FLAGS) -> i32); - PropVariantCompareEx(core::mem::transmute(propvar1), core::mem::transmute(propvar2), core::mem::transmute(unit), core::mem::transmute(flags)) + PropVariantCompareEx(core::mem::transmute(propvar1), core::mem::transmute(propvar2), unit, flags) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -284,14 +284,14 @@ pub unsafe fn PropVariantCopy(pvardest: *mut PROPVARIANT, pvarsrc: *const PROPVA pub unsafe fn PropVariantGetBooleanElem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetBooleanElem(propvar : *const PROPVARIANT, ielem : u32, pfval : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetBooleanElem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetBooleanElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetDoubleElem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetDoubleElem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetDoubleElem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetDoubleElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -304,56 +304,56 @@ pub unsafe fn PropVariantGetElementCount(propvar: *const PROPVARIANT) -> u32 { pub unsafe fn PropVariantGetFileTimeElem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetFileTimeElem(propvar : *const PROPVARIANT, ielem : u32, pftval : *mut super::super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetFileTimeElem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetFileTimeElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetInt16Elem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetInt16Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetInt16Elem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetInt16Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetInt32Elem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetInt32Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetInt32Elem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetInt32Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetInt64Elem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetInt64Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetInt64Elem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetInt64Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetStringElem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetStringElem(propvar : *const PROPVARIANT, ielem : u32, ppszval : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetStringElem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetStringElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetUInt16Elem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetUInt16Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetUInt16Elem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetUInt16Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetUInt32Elem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetUInt32Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetUInt32Elem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetUInt32Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantGetUInt64Elem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantGetUInt64Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantGetUInt64Elem(core::mem::transmute(propvar), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetUInt64Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -391,7 +391,7 @@ pub unsafe fn PropVariantToBooleanWithDefault(propvarin: *const PROPVARIANT, fde #[inline] pub unsafe fn PropVariantToBuffer(propvar: *const PROPVARIANT, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PropVariantToBuffer(propvar : *const PROPVARIANT, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::HRESULT); - PropVariantToBuffer(core::mem::transmute(propvar), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + PropVariantToBuffer(core::mem::transmute(propvar), core::mem::transmute(pv), cb).ok() } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -416,14 +416,14 @@ pub unsafe fn PropVariantToDoubleVectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToDoubleWithDefault(propvarin: *const PROPVARIANT, dbldefault: f64) -> f64 { windows_targets::link!("propsys.dll" "system" fn PropVariantToDoubleWithDefault(propvarin : *const PROPVARIANT, dbldefault : f64) -> f64); - PropVariantToDoubleWithDefault(core::mem::transmute(propvarin), core::mem::transmute(dbldefault)) + PropVariantToDoubleWithDefault(core::mem::transmute(propvarin), dbldefault) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn PropVariantToFileTime(propvar: *const PROPVARIANT, pstfout: super::super::Variant::PSTIME_FLAGS) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PropVariantToFileTime(propvar : *const PROPVARIANT, pstfout : super::super::Variant:: PSTIME_FLAGS, pftout : *mut super::super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PropVariantToFileTime(core::mem::transmute(propvar), core::mem::transmute(pstfout), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToFileTime(core::mem::transmute(propvar), pstfout, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -467,7 +467,7 @@ pub unsafe fn PropVariantToInt16VectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToInt16WithDefault(propvarin: *const PROPVARIANT, idefault: i16) -> i16 { windows_targets::link!("propsys.dll" "system" fn PropVariantToInt16WithDefault(propvarin : *const PROPVARIANT, idefault : i16) -> i16); - PropVariantToInt16WithDefault(core::mem::transmute(propvarin), core::mem::transmute(idefault)) + PropVariantToInt16WithDefault(core::mem::transmute(propvarin), idefault) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -492,7 +492,7 @@ pub unsafe fn PropVariantToInt32VectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToInt32WithDefault(propvarin: *const PROPVARIANT, ldefault: i32) -> i32 { windows_targets::link!("propsys.dll" "system" fn PropVariantToInt32WithDefault(propvarin : *const PROPVARIANT, ldefault : i32) -> i32); - PropVariantToInt32WithDefault(core::mem::transmute(propvarin), core::mem::transmute(ldefault)) + PropVariantToInt32WithDefault(core::mem::transmute(propvarin), ldefault) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -517,7 +517,7 @@ pub unsafe fn PropVariantToInt64VectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToInt64WithDefault(propvarin: *const PROPVARIANT, lldefault: i64) -> i64 { windows_targets::link!("propsys.dll" "system" fn PropVariantToInt64WithDefault(propvarin : *const PROPVARIANT, lldefault : i64) -> i64); - PropVariantToInt64WithDefault(core::mem::transmute(propvarin), core::mem::transmute(lldefault)) + PropVariantToInt64WithDefault(core::mem::transmute(propvarin), lldefault) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -576,7 +576,7 @@ pub unsafe fn PropVariantToUInt16VectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToUInt16WithDefault(propvarin: *const PROPVARIANT, uidefault: u16) -> u16 { windows_targets::link!("propsys.dll" "system" fn PropVariantToUInt16WithDefault(propvarin : *const PROPVARIANT, uidefault : u16) -> u16); - PropVariantToUInt16WithDefault(core::mem::transmute(propvarin), core::mem::transmute(uidefault)) + PropVariantToUInt16WithDefault(core::mem::transmute(propvarin), uidefault) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -601,7 +601,7 @@ pub unsafe fn PropVariantToUInt32VectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToUInt32WithDefault(propvarin: *const PROPVARIANT, uldefault: u32) -> u32 { windows_targets::link!("propsys.dll" "system" fn PropVariantToUInt32WithDefault(propvarin : *const PROPVARIANT, uldefault : u32) -> u32); - PropVariantToUInt32WithDefault(core::mem::transmute(propvarin), core::mem::transmute(uldefault)) + PropVariantToUInt32WithDefault(core::mem::transmute(propvarin), uldefault) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -626,7 +626,7 @@ pub unsafe fn PropVariantToUInt64VectorAlloc(propvar: *const PROPVARIANT, pprgn: #[inline] pub unsafe fn PropVariantToUInt64WithDefault(propvarin: *const PROPVARIANT, ulldefault: u64) -> u64 { windows_targets::link!("propsys.dll" "system" fn PropVariantToUInt64WithDefault(propvarin : *const PROPVARIANT, ulldefault : u64) -> u64); - PropVariantToUInt64WithDefault(core::mem::transmute(propvarin), core::mem::transmute(ulldefault)) + PropVariantToUInt64WithDefault(core::mem::transmute(propvarin), ulldefault) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -686,13 +686,13 @@ where P3: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgConvertPropertyToVariant(pprop : *const SERIALIZEDPROPERTYVALUE, codepage : u16, pvar : *mut PROPVARIANT, pma : * mut core::ffi::c_void) -> bool); - StgConvertPropertyToVariant(core::mem::transmute(pprop), core::mem::transmute(codepage), core::mem::transmute(pvar), pma.param().abi()) + StgConvertPropertyToVariant(pprop, codepage, core::mem::transmute(pvar), pma.param().abi()) } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn StgConvertVariantToProperty(pvar: *const PROPVARIANT, codepage: u16, pprop: Option<*mut SERIALIZEDPROPERTYVALUE>, pcb: *mut u32, pid: u32, freserved: Option, pcindirect: Option<*mut u32>) -> *mut SERIALIZEDPROPERTYVALUE { windows_targets::link!("ole32.dll" "system" fn StgConvertVariantToProperty(pvar : *const PROPVARIANT, codepage : u16, pprop : *mut SERIALIZEDPROPERTYVALUE, pcb : *mut u32, pid : u32, freserved : bool, pcindirect : *mut u32) -> *mut SERIALIZEDPROPERTYVALUE); - StgConvertVariantToProperty(core::mem::transmute(pvar), core::mem::transmute(codepage), core::mem::transmute(pprop.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcb), core::mem::transmute(pid), core::mem::transmute(freserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcindirect.unwrap_or(core::mem::zeroed()))) + StgConvertVariantToProperty(core::mem::transmute(pvar), codepage, core::mem::transmute(pprop.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcb), pid, core::mem::transmute(freserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcindirect.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn StgCreateDocfile(pwcsname: P0, grfmode: super::STGM, reserved: Option) -> windows_core::Result @@ -701,7 +701,7 @@ where { windows_targets::link!("ole32.dll" "system" fn StgCreateDocfile(pwcsname : windows_core::PCWSTR, grfmode : super:: STGM, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgCreateDocfile(pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgCreateDocfile(pwcsname.param().abi(), grfmode, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgCreateDocfileOnILockBytes(plkbyt: P0, grfmode: super::STGM, reserved: u32) -> windows_core::Result @@ -710,7 +710,7 @@ where { windows_targets::link!("ole32.dll" "system" fn StgCreateDocfileOnILockBytes(plkbyt : * mut core::ffi::c_void, grfmode : super:: STGM, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgCreateDocfileOnILockBytes(plkbyt.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgCreateDocfileOnILockBytes(plkbyt.param().abi(), grfmode, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgCreatePropSetStg(pstorage: P0, dwreserved: Option) -> windows_core::Result @@ -728,7 +728,7 @@ where { windows_targets::link!("ole32.dll" "system" fn StgCreatePropStg(punk : * mut core::ffi::c_void, fmtid : *const windows_core::GUID, pclsid : *const windows_core::GUID, grfflags : u32, dwreserved : u32, pppropstg : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgCreatePropStg(punk.param().abi(), core::mem::transmute(fmtid), core::mem::transmute(pclsid), core::mem::transmute(grfflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgCreatePropStg(punk.param().abi(), fmtid, pclsid, grfflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -737,14 +737,14 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgCreateStorageEx(pwcsname : windows_core::PCWSTR, grfmode : super:: STGM, stgfmt : STGFMT, grfattrs : u32, pstgoptions : *mut STGOPTIONS, psecuritydescriptor : super::super::super::Security:: PSECURITY_DESCRIPTOR, riid : *const windows_core::GUID, ppobjectopen : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - StgCreateStorageEx(pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(stgfmt), core::mem::transmute(grfattrs), core::mem::transmute(pstgoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(riid), core::mem::transmute(ppobjectopen)).ok() + StgCreateStorageEx(pwcsname.param().abi(), grfmode, stgfmt, grfattrs, core::mem::transmute(pstgoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), riid, core::mem::transmute(ppobjectopen)).ok() } #[cfg(feature = "Win32_System_Variant")] #[inline] pub unsafe fn StgDeserializePropVariant(pprop: *const SERIALIZEDPROPERTYVALUE, cbmax: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn StgDeserializePropVariant(pprop : *const SERIALIZEDPROPERTYVALUE, cbmax : u32, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgDeserializePropVariant(core::mem::transmute(pprop), core::mem::transmute(cbmax), &mut result__).map(|| core::mem::transmute(result__)) + StgDeserializePropVariant(pprop, cbmax, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn StgGetIFillLockBytesOnFile(pwcsname: P0) -> windows_core::Result @@ -787,7 +787,7 @@ where { windows_targets::link!("ole32.dll" "system" fn StgOpenAsyncDocfileOnIFillLockBytes(pflb : * mut core::ffi::c_void, grfmode : u32, asyncflags : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgOpenAsyncDocfileOnIFillLockBytes(pflb.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(asyncflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenAsyncDocfileOnIFillLockBytes(pflb.param().abi(), grfmode, asyncflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgOpenLayoutDocfile(pwcsdfname: P0, grfmode: u32, reserved: u32) -> windows_core::Result @@ -796,7 +796,7 @@ where { windows_targets::link!("dflayout.dll" "system" fn StgOpenLayoutDocfile(pwcsdfname : windows_core::PCWSTR, grfmode : u32, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgOpenLayoutDocfile(pwcsdfname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenLayoutDocfile(pwcsdfname.param().abi(), grfmode, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgOpenPropStg(punk: P0, fmtid: *const windows_core::GUID, grfflags: u32, dwreserved: Option) -> windows_core::Result @@ -805,7 +805,7 @@ where { windows_targets::link!("ole32.dll" "system" fn StgOpenPropStg(punk : * mut core::ffi::c_void, fmtid : *const windows_core::GUID, grfflags : u32, dwreserved : u32, pppropstg : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgOpenPropStg(punk.param().abi(), core::mem::transmute(fmtid), core::mem::transmute(grfflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenPropStg(punk.param().abi(), fmtid, grfflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgOpenStorage(pwcsname: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: Option<*const *const u16>, reserved: u32) -> windows_core::Result @@ -815,7 +815,7 @@ where { windows_targets::link!("ole32.dll" "system" fn StgOpenStorage(pwcsname : windows_core::PCWSTR, pstgpriority : * mut core::ffi::c_void, grfmode : super:: STGM, snbexclude : *const *const u16, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgOpenStorage(pwcsname.param().abi(), pstgpriority.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(snbexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenStorage(pwcsname.param().abi(), pstgpriority.param().abi(), grfmode, core::mem::transmute(snbexclude.unwrap_or(core::mem::zeroed())), reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -824,7 +824,7 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgOpenStorageEx(pwcsname : windows_core::PCWSTR, grfmode : super:: STGM, stgfmt : STGFMT, grfattrs : u32, pstgoptions : *mut STGOPTIONS, psecuritydescriptor : super::super::super::Security:: PSECURITY_DESCRIPTOR, riid : *const windows_core::GUID, ppobjectopen : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - StgOpenStorageEx(pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(stgfmt), core::mem::transmute(grfattrs), core::mem::transmute(pstgoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(riid), core::mem::transmute(ppobjectopen)).ok() + StgOpenStorageEx(pwcsname.param().abi(), grfmode, stgfmt, grfattrs, core::mem::transmute(pstgoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), riid, core::mem::transmute(ppobjectopen)).ok() } #[inline] pub unsafe fn StgOpenStorageOnILockBytes(plkbyt: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: Option<*const *const u16>, reserved: Option) -> windows_core::Result @@ -834,12 +834,12 @@ where { windows_targets::link!("ole32.dll" "system" fn StgOpenStorageOnILockBytes(plkbyt : * mut core::ffi::c_void, pstgpriority : * mut core::ffi::c_void, grfmode : super:: STGM, snbexclude : *const *const u16, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StgOpenStorageOnILockBytes(plkbyt.param().abi(), pstgpriority.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(snbexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenStorageOnILockBytes(plkbyt.param().abi(), pstgpriority.param().abi(), grfmode, core::mem::transmute(snbexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgPropertyLengthAsVariant(pprop: *const SERIALIZEDPROPERTYVALUE, cbprop: u32, codepage: u16, breserved: Option) -> u32 { windows_targets::link!("ole32.dll" "system" fn StgPropertyLengthAsVariant(pprop : *const SERIALIZEDPROPERTYVALUE, cbprop : u32, codepage : u16, breserved : u8) -> u32); - StgPropertyLengthAsVariant(core::mem::transmute(pprop), core::mem::transmute(cbprop), core::mem::transmute(codepage), core::mem::transmute(breserved.unwrap_or(core::mem::zeroed()))) + StgPropertyLengthAsVariant(pprop, cbprop, codepage, core::mem::transmute(breserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -878,7 +878,7 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn WriteClassStg(pstg : * mut core::ffi::c_void, rclsid : *const windows_core::GUID) -> windows_core::HRESULT); - WriteClassStg(pstg.param().abi(), core::mem::transmute(rclsid)).ok() + WriteClassStg(pstg.param().abi(), rclsid).ok() } #[inline] pub unsafe fn WriteClassStm(pstm: P0, rclsid: *const windows_core::GUID) -> windows_core::Result<()> @@ -886,7 +886,7 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn WriteClassStm(pstm : * mut core::ffi::c_void, rclsid : *const windows_core::GUID) -> windows_core::HRESULT); - WriteClassStm(pstm.param().abi(), core::mem::transmute(rclsid)).ok() + WriteClassStm(pstm.param().abi(), rclsid).ok() } #[inline] pub unsafe fn WriteFmtUserTypeStg(pstg: P0, cf: u16, lpszusertype: P2) -> windows_core::Result<()> @@ -895,7 +895,7 @@ where P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn WriteFmtUserTypeStg(pstg : * mut core::ffi::c_void, cf : u16, lpszusertype : windows_core::PCWSTR) -> windows_core::HRESULT); - WriteFmtUserTypeStg(pstg.param().abi(), core::mem::transmute(cf), lpszusertype.param().abi()).ok() + WriteFmtUserTypeStg(pstg.param().abi(), cf, lpszusertype.param().abi()).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -1170,7 +1170,7 @@ windows_core::imp::define_interface!(IDirectWriterLock, IDirectWriterLock_Vtbl, windows_core::imp::interface_hierarchy!(IDirectWriterLock, windows_core::IUnknown); impl IDirectWriterLock { pub unsafe fn WaitForWriteAccess(&self, dwtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForWriteAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout)).ok() + (windows_core::Interface::vtable(self).WaitForWriteAccess)(windows_core::Interface::as_raw(self), dwtimeout).ok() } pub unsafe fn ReleaseWriteAccess(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseWriteAccess)(windows_core::Interface::as_raw(self)).ok() @@ -1224,7 +1224,7 @@ impl IEnumSTATPROPSETSTG { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1293,7 +1293,7 @@ impl IEnumSTATPROPSTG { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1367,7 +1367,7 @@ impl IEnumSTATSTG { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1433,14 +1433,14 @@ windows_core::imp::interface_hierarchy!(IFillLockBytes, windows_core::IUnknown); impl IFillLockBytes { pub unsafe fn FillAppend(&self, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FillAppend)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), core::mem::transmute(cb), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FillAppend)(windows_core::Interface::as_raw(self), pv, cb, &mut result__).map(|| result__) } pub unsafe fn FillAt(&self, uloffset: u64, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FillAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uloffset), core::mem::transmute(pv), core::mem::transmute(cb), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FillAt)(windows_core::Interface::as_raw(self), uloffset, pv, cb, &mut result__).map(|| result__) } pub unsafe fn SetFillSize(&self, ulsize: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFillSize)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsize)).ok() + (windows_core::Interface::vtable(self).SetFillSize)(windows_core::Interface::as_raw(self), ulsize).ok() } pub unsafe fn Terminate(&self, bcanceled: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), bcanceled.into()).ok() @@ -1584,25 +1584,25 @@ windows_core::imp::define_interface!(ILockBytes, ILockBytes_Vtbl, 0x0000000a_000 windows_core::imp::interface_hierarchy!(ILockBytes, windows_core::IUnknown); impl ILockBytes { pub unsafe fn ReadAt(&self, uloffset: u64, pv: *mut core::ffi::c_void, cb: u32, pcbread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uloffset), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadAt)(windows_core::Interface::as_raw(self), uloffset, core::mem::transmute(pv), cb, core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteAt(&self, uloffset: u64, pv: *const core::ffi::c_void, cb: u32, pcbwritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uloffset), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteAt)(windows_core::Interface::as_raw(self), uloffset, pv, cb, core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetSize(&self, cb: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(cb)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), cb).ok() } pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(liboffset), core::mem::transmute(cb), core::mem::transmute(dwlocktype)).ok() + (windows_core::Interface::vtable(self).LockRegion)(windows_core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } pub unsafe fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(liboffset), core::mem::transmute(cb), core::mem::transmute(dwlocktype)).ok() + (windows_core::Interface::vtable(self).UnlockRegion)(windows_core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } pub unsafe fn Stat(&self, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stat)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatstg), core::mem::transmute(grfstatflag)).ok() + (windows_core::Interface::vtable(self).Stat)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatstg), grfstatflag).ok() } } #[repr(C)] @@ -1674,7 +1674,7 @@ impl windows_core::RuntimeName for ILockBytes {} windows_core::imp::define_interface!(IMemoryAllocator, IMemoryAllocator_Vtbl); impl IMemoryAllocator { pub unsafe fn Allocate(&self, cbsize: u32) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).Allocate)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize)) + (windows_core::Interface::vtable(self).Allocate)(windows_core::Interface::as_raw(self), cbsize) } pub unsafe fn Free(&self, pv: *mut core::ffi::c_void) { (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), core::mem::transmute(pv)) @@ -1877,11 +1877,11 @@ impl IPropertyBag2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(cproperties), core::mem::transmute(ppropbag), perrlog.param().abi(), core::mem::transmute(pvarvalue), core::mem::transmute(phrerror)).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), cproperties, ppropbag, perrlog.param().abi(), core::mem::transmute(pvarvalue), core::mem::transmute(phrerror)).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Write(&self, cproperties: u32, ppropbag: *const PROPBAG2, pvarvalue: *const super::super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(cproperties), core::mem::transmute(ppropbag), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), cproperties, ppropbag, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn CountProperties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1889,7 +1889,7 @@ impl IPropertyBag2 { } #[cfg(feature = "Win32_System_Variant")] pub unsafe fn GetPropertyInfo(&self, iproperty: u32, ppropbag: &mut [PROPBAG2], pcproperties: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(iproperty), ppropbag.len().try_into().unwrap(), core::mem::transmute(ppropbag.as_ptr()), core::mem::transmute(pcproperties)).ok() + (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), iproperty, ppropbag.len().try_into().unwrap(), core::mem::transmute(ppropbag.as_ptr()), core::mem::transmute(pcproperties)).ok() } pub unsafe fn LoadObject(&self, pstrname: P0, dwhint: u32, punkobject: P2, perrlog: P3) -> windows_core::Result<()> where @@ -1897,7 +1897,7 @@ impl IPropertyBag2 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadObject)(windows_core::Interface::as_raw(self), pstrname.param().abi(), core::mem::transmute(dwhint), punkobject.param().abi(), perrlog.param().abi()).ok() + (windows_core::Interface::vtable(self).LoadObject)(windows_core::Interface::as_raw(self), pstrname.param().abi(), dwhint, punkobject.param().abi(), perrlog.param().abi()).ok() } } #[repr(C)] @@ -1975,14 +1975,14 @@ windows_core::imp::interface_hierarchy!(IPropertySetStorage, windows_core::IUnkn impl IPropertySetStorage { pub unsafe fn Create(&self, rfmtid: *const windows_core::GUID, pclsid: *const windows_core::GUID, grfflags: u32, grfmode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(rfmtid), core::mem::transmute(pclsid), core::mem::transmute(grfflags), core::mem::transmute(grfmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), rfmtid, pclsid, grfflags, grfmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Open(&self, rfmtid: *const windows_core::GUID, grfmode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(rfmtid), core::mem::transmute(grfmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), rfmtid, grfmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, rfmtid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(rfmtid)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), rfmtid).ok() } pub unsafe fn Enum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2058,27 +2058,27 @@ impl IPropertyStorage { #[cfg(feature = "Win32_System_Variant")] pub unsafe fn ReadMultiple(&self, cpspec: u32, rgpspec: *const PROPSPEC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadMultiple)(windows_core::Interface::as_raw(self), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ReadMultiple)(windows_core::Interface::as_raw(self), cpspec, rgpspec, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Variant")] pub unsafe fn WriteMultiple(&self, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *const PROPVARIANT, propidnamefirst: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMultiple)(windows_core::Interface::as_raw(self), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), core::mem::transmute(rgpropvar), core::mem::transmute(propidnamefirst)).ok() + (windows_core::Interface::vtable(self).WriteMultiple)(windows_core::Interface::as_raw(self), cpspec, rgpspec, core::mem::transmute(rgpropvar), propidnamefirst).ok() } pub unsafe fn DeleteMultiple(&self, rgpspec: &[PROPSPEC]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteMultiple)(windows_core::Interface::as_raw(self), rgpspec.len().try_into().unwrap(), core::mem::transmute(rgpspec.as_ptr())).ok() } pub unsafe fn ReadPropertyNames(&self, cpropid: u32, rgpropid: *const u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadPropertyNames)(windows_core::Interface::as_raw(self), core::mem::transmute(cpropid), core::mem::transmute(rgpropid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadPropertyNames)(windows_core::Interface::as_raw(self), cpropid, rgpropid, &mut result__).map(|| result__) } pub unsafe fn WritePropertyNames(&self, cpropid: u32, rgpropid: *const u32, rglpwstrname: *const windows_core::PCWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePropertyNames)(windows_core::Interface::as_raw(self), core::mem::transmute(cpropid), core::mem::transmute(rgpropid), core::mem::transmute(rglpwstrname)).ok() + (windows_core::Interface::vtable(self).WritePropertyNames)(windows_core::Interface::as_raw(self), cpropid, rgpropid, rglpwstrname).ok() } pub unsafe fn DeletePropertyNames(&self, rgpropid: &[u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeletePropertyNames)(windows_core::Interface::as_raw(self), rgpropid.len().try_into().unwrap(), core::mem::transmute(rgpropid.as_ptr())).ok() } pub unsafe fn Commit(&self, grfcommitflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(grfcommitflags)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), grfcommitflags).ok() } pub unsafe fn Revert(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Revert)(windows_core::Interface::as_raw(self)).ok() @@ -2088,10 +2088,10 @@ impl IPropertyStorage { (windows_core::Interface::vtable(self).Enum)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetTimes(&self, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pctime), core::mem::transmute(patime), core::mem::transmute(pmtime)).ok() + (windows_core::Interface::vtable(self).SetTimes)(windows_core::Interface::as_raw(self), pctime, patime, pmtime).ok() } pub unsafe fn SetClass(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn Stat(&self, pstatpsstg: *mut STATPROPSETSTG) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stat)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatpsstg)).ok() @@ -2264,21 +2264,21 @@ impl IStorage { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(reserved1), core::mem::transmute(reserved2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), grfmode, reserved1, reserved2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenStream(&self, pwcsname: P0, reserved1: Option<*const core::ffi::c_void>, grfmode: super::STGM, reserved2: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(grfmode), core::mem::transmute(reserved2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), grfmode, reserved2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStorage(&self, pwcsname: P0, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorage)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(reserved1), core::mem::transmute(reserved2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStorage)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), grfmode, reserved1, reserved2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenStorage(&self, pwcsname: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32) -> windows_core::Result where @@ -2286,7 +2286,7 @@ impl IStorage { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenStorage)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), pstgpriority.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(snbexclude), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenStorage)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), pstgpriority.param().abi(), grfmode, snbexclude, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CopyTo(&self, rgiidexclude: Option<&[windows_core::GUID]>, snbexclude: Option<*const *const u16>, pstgdest: P3) -> windows_core::Result<()> where @@ -2303,7 +2303,7 @@ impl IStorage { (windows_core::Interface::vtable(self).MoveElementTo)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), pstgdest.param().abi(), pwcsnewname.param().abi(), grfflags.0 as _).ok() } pub unsafe fn Commit(&self, grfcommitflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(grfcommitflags)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), grfcommitflags).ok() } pub unsafe fn Revert(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Revert)(windows_core::Interface::as_raw(self)).ok() @@ -2329,16 +2329,16 @@ impl IStorage { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetElementTimes)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(pctime), core::mem::transmute(patime), core::mem::transmute(pmtime)).ok() + (windows_core::Interface::vtable(self).SetElementTimes)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), pctime, patime, pmtime).ok() } pub unsafe fn SetClass(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn SetStateBits(&self, grfstatebits: u32, grfmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStateBits)(windows_core::Interface::as_raw(self), core::mem::transmute(grfstatebits), core::mem::transmute(grfmask)).ok() + (windows_core::Interface::vtable(self).SetStateBits)(windows_core::Interface::as_raw(self), grfstatebits, grfmask).ok() } pub unsafe fn Stat(&self, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stat)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatstg), core::mem::transmute(grfstatflag)).ok() + (windows_core::Interface::vtable(self).Stat)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatstg), grfstatflag).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/UI/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/UI/mod.rs index e62ece1930..a271a3cf90 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/UI/mod.rs @@ -3,7 +3,7 @@ windows_core::imp::interface_hierarchy!(IDummyHICONIncluder, windows_core::IUnkn impl IDummyHICONIncluder { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn Dummy(&self, h1: super::super::super::UI::WindowsAndMessaging::HICON, h2: super::super::super::Graphics::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Dummy)(windows_core::Interface::as_raw(self), core::mem::transmute(h1), core::mem::transmute(h2)).ok() + (windows_core::Interface::vtable(self).Dummy)(windows_core::Interface::as_raw(self), h1, h2).ok() } } #[repr(C)] @@ -41,7 +41,7 @@ impl IThumbnailExtractor { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExtractThumbnail)(windows_core::Interface::as_raw(self), pstg.param().abi(), core::mem::transmute(ullength), core::mem::transmute(ulheight), core::mem::transmute(puloutputlength), core::mem::transmute(puloutputheight), core::mem::transmute(phoutputbitmap)).ok() + (windows_core::Interface::vtable(self).ExtractThumbnail)(windows_core::Interface::as_raw(self), pstg.param().abi(), ullength, ulheight, core::mem::transmute(puloutputlength), core::mem::transmute(puloutputheight), core::mem::transmute(phoutputbitmap)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn OnFileUpdated(&self, pstg: P0) -> windows_core::Result<()> diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/mod.rs index cc0d7212a2..7ab5589293 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/mod.rs @@ -6,7 +6,7 @@ where P5: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoGetClassObjectFromURL(rclassid : *const windows_core::GUID, szcode : windows_core::PCWSTR, dwfileversionms : u32, dwfileversionls : u32, sztype : windows_core::PCWSTR, pbindctx : * mut core::ffi::c_void, dwclscontext : super:: CLSCTX, pvreserved : *const core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CoGetClassObjectFromURL(core::mem::transmute(rclassid), szcode.param().abi(), core::mem::transmute(dwfileversionms), core::mem::transmute(dwfileversionls), sztype.param().abi(), pbindctx.param().abi(), core::mem::transmute(dwclscontext), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CoGetClassObjectFromURL(rclassid, szcode.param().abi(), dwfileversionms, dwfileversionls, sztype.param().abi(), pbindctx.param().abi(), dwclscontext, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CoInternetCombineIUri(pbaseuri: P0, prelativeuri: P1, dwcombineflags: u32, ppcombineduri: *mut Option, dwreserved: Option) -> windows_core::Result<()> @@ -15,7 +15,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetCombineIUri(pbaseuri : * mut core::ffi::c_void, prelativeuri : * mut core::ffi::c_void, dwcombineflags : u32, ppcombineduri : *mut * mut core::ffi::c_void, dwreserved : usize) -> windows_core::HRESULT); - CoInternetCombineIUri(pbaseuri.param().abi(), prelativeuri.param().abi(), core::mem::transmute(dwcombineflags), core::mem::transmute(ppcombineduri), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + CoInternetCombineIUri(pbaseuri.param().abi(), prelativeuri.param().abi(), dwcombineflags, core::mem::transmute(ppcombineduri), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInternetCombineUrl(pwzbaseurl: P0, pwzrelativeurl: P1, dwcombineflags: u32, pszresult: &mut [u16], pcchresult: Option<*mut u32>, dwreserved: Option) -> windows_core::Result<()> @@ -24,7 +24,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetCombineUrl(pwzbaseurl : windows_core::PCWSTR, pwzrelativeurl : windows_core::PCWSTR, dwcombineflags : u32, pszresult : windows_core::PWSTR, cchresult : u32, pcchresult : *mut u32, dwreserved : u32) -> windows_core::HRESULT); - CoInternetCombineUrl(pwzbaseurl.param().abi(), pwzrelativeurl.param().abi(), core::mem::transmute(dwcombineflags), core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), core::mem::transmute(pcchresult.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + CoInternetCombineUrl(pwzbaseurl.param().abi(), pwzrelativeurl.param().abi(), dwcombineflags, core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), core::mem::transmute(pcchresult.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInternetCombineUrlEx(pbaseuri: P0, pwzrelativeurl: P1, dwcombineflags: u32, ppcombineduri: *mut Option, dwreserved: Option) -> windows_core::Result<()> @@ -33,7 +33,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetCombineUrlEx(pbaseuri : * mut core::ffi::c_void, pwzrelativeurl : windows_core::PCWSTR, dwcombineflags : u32, ppcombineduri : *mut * mut core::ffi::c_void, dwreserved : usize) -> windows_core::HRESULT); - CoInternetCombineUrlEx(pbaseuri.param().abi(), pwzrelativeurl.param().abi(), core::mem::transmute(dwcombineflags), core::mem::transmute(ppcombineduri), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + CoInternetCombineUrlEx(pbaseuri.param().abi(), pwzrelativeurl.param().abi(), dwcombineflags, core::mem::transmute(ppcombineduri), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInternetCompareUrl(pwzurl1: P0, pwzurl2: P1, dwflags: u32) -> windows_core::Result<()> @@ -42,7 +42,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetCompareUrl(pwzurl1 : windows_core::PCWSTR, pwzurl2 : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - CoInternetCompareUrl(pwzurl1.param().abi(), pwzurl2.param().abi(), core::mem::transmute(dwflags)).ok() + CoInternetCompareUrl(pwzurl1.param().abi(), pwzurl2.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CoInternetCreateSecurityManager(psp: P0, ppsm: *mut Option, dwreserved: u32) -> windows_core::Result<()> @@ -50,7 +50,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetCreateSecurityManager(psp : * mut core::ffi::c_void, ppsm : *mut * mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - CoInternetCreateSecurityManager(psp.param().abi(), core::mem::transmute(ppsm), core::mem::transmute(dwreserved)).ok() + CoInternetCreateSecurityManager(psp.param().abi(), core::mem::transmute(ppsm), dwreserved).ok() } #[inline] pub unsafe fn CoInternetCreateZoneManager(psp: P0, ppzm: *mut Option, dwreserved: u32) -> windows_core::Result<()> @@ -58,7 +58,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetCreateZoneManager(psp : * mut core::ffi::c_void, ppzm : *mut * mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - CoInternetCreateZoneManager(psp.param().abi(), core::mem::transmute(ppzm), core::mem::transmute(dwreserved)).ok() + CoInternetCreateZoneManager(psp.param().abi(), core::mem::transmute(ppzm), dwreserved).ok() } #[inline] pub unsafe fn CoInternetGetProtocolFlags(pwzurl: P0, pdwflags: *mut u32, dwreserved: u32) -> windows_core::Result<()> @@ -66,7 +66,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetGetProtocolFlags(pwzurl : windows_core::PCWSTR, pdwflags : *mut u32, dwreserved : u32) -> windows_core::HRESULT); - CoInternetGetProtocolFlags(pwzurl.param().abi(), core::mem::transmute(pdwflags), core::mem::transmute(dwreserved)).ok() + CoInternetGetProtocolFlags(pwzurl.param().abi(), core::mem::transmute(pdwflags), dwreserved).ok() } #[inline] pub unsafe fn CoInternetGetSecurityUrl(pwszurl: P0, ppwszsecurl: *mut windows_core::PWSTR, psuaction: PSUACTION, dwreserved: Option) -> windows_core::Result<()> @@ -74,7 +74,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetGetSecurityUrl(pwszurl : windows_core::PCWSTR, ppwszsecurl : *mut windows_core::PWSTR, psuaction : PSUACTION, dwreserved : u32) -> windows_core::HRESULT); - CoInternetGetSecurityUrl(pwszurl.param().abi(), core::mem::transmute(ppwszsecurl), core::mem::transmute(psuaction), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + CoInternetGetSecurityUrl(pwszurl.param().abi(), core::mem::transmute(ppwszsecurl), psuaction, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInternetGetSecurityUrlEx(puri: P0, ppsecuri: *mut Option, psuaction: PSUACTION, dwreserved: Option) -> windows_core::Result<()> @@ -82,17 +82,17 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetGetSecurityUrlEx(puri : * mut core::ffi::c_void, ppsecuri : *mut * mut core::ffi::c_void, psuaction : PSUACTION, dwreserved : usize) -> windows_core::HRESULT); - CoInternetGetSecurityUrlEx(puri.param().abi(), core::mem::transmute(ppsecuri), core::mem::transmute(psuaction), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + CoInternetGetSecurityUrlEx(puri.param().abi(), core::mem::transmute(ppsecuri), psuaction, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInternetGetSession(dwsessionmode: u32, ppiinternetsession: *mut Option, dwreserved: u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn CoInternetGetSession(dwsessionmode : u32, ppiinternetsession : *mut * mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - CoInternetGetSession(core::mem::transmute(dwsessionmode), core::mem::transmute(ppiinternetsession), core::mem::transmute(dwreserved)).ok() + CoInternetGetSession(dwsessionmode, core::mem::transmute(ppiinternetsession), dwreserved).ok() } #[inline] pub unsafe fn CoInternetIsFeatureEnabled(featureentry: INTERNETFEATURELIST, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn CoInternetIsFeatureEnabled(featureentry : INTERNETFEATURELIST, dwflags : u32) -> windows_core::HRESULT); - CoInternetIsFeatureEnabled(core::mem::transmute(featureentry), core::mem::transmute(dwflags)).ok() + CoInternetIsFeatureEnabled(featureentry, dwflags).ok() } #[inline] pub unsafe fn CoInternetIsFeatureEnabledForIUri(featureentry: INTERNETFEATURELIST, dwflags: u32, piuri: P2, psecmgr: P3) -> windows_core::Result<()> @@ -101,7 +101,7 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetIsFeatureEnabledForIUri(featureentry : INTERNETFEATURELIST, dwflags : u32, piuri : * mut core::ffi::c_void, psecmgr : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoInternetIsFeatureEnabledForIUri(core::mem::transmute(featureentry), core::mem::transmute(dwflags), piuri.param().abi(), psecmgr.param().abi()).ok() + CoInternetIsFeatureEnabledForIUri(featureentry, dwflags, piuri.param().abi(), psecmgr.param().abi()).ok() } #[inline] pub unsafe fn CoInternetIsFeatureEnabledForUrl(featureentry: INTERNETFEATURELIST, dwflags: u32, szurl: P2, psecmgr: P3) -> windows_core::Result<()> @@ -110,7 +110,7 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetIsFeatureEnabledForUrl(featureentry : INTERNETFEATURELIST, dwflags : u32, szurl : windows_core::PCWSTR, psecmgr : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoInternetIsFeatureEnabledForUrl(core::mem::transmute(featureentry), core::mem::transmute(dwflags), szurl.param().abi(), psecmgr.param().abi()).ok() + CoInternetIsFeatureEnabledForUrl(featureentry, dwflags, szurl.param().abi(), psecmgr.param().abi()).ok() } #[inline] pub unsafe fn CoInternetIsFeatureZoneElevationEnabled(szfromurl: P0, sztourl: P1, psecmgr: P2, dwflags: u32) -> windows_core::Result<()> @@ -120,7 +120,7 @@ where P2: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetIsFeatureZoneElevationEnabled(szfromurl : windows_core::PCWSTR, sztourl : windows_core::PCWSTR, psecmgr : * mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - CoInternetIsFeatureZoneElevationEnabled(szfromurl.param().abi(), sztourl.param().abi(), psecmgr.param().abi(), core::mem::transmute(dwflags)).ok() + CoInternetIsFeatureZoneElevationEnabled(szfromurl.param().abi(), sztourl.param().abi(), psecmgr.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CoInternetParseIUri(piuri: P0, parseaction: PARSEACTION, dwflags: u32, pwzresult: &mut [u16], pcchresult: *mut u32, dwreserved: Option) -> windows_core::Result<()> @@ -128,7 +128,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetParseIUri(piuri : * mut core::ffi::c_void, parseaction : PARSEACTION, dwflags : u32, pwzresult : windows_core::PWSTR, cchresult : u32, pcchresult : *mut u32, dwreserved : usize) -> windows_core::HRESULT); - CoInternetParseIUri(piuri.param().abi(), core::mem::transmute(parseaction), core::mem::transmute(dwflags), core::mem::transmute(pwzresult.as_ptr()), pwzresult.len().try_into().unwrap(), core::mem::transmute(pcchresult), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + CoInternetParseIUri(piuri.param().abi(), parseaction, dwflags, core::mem::transmute(pwzresult.as_ptr()), pwzresult.len().try_into().unwrap(), core::mem::transmute(pcchresult), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInternetParseUrl(pwzurl: P0, parseaction: PARSEACTION, dwflags: u32, pszresult: &mut [u16], pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()> @@ -136,7 +136,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetParseUrl(pwzurl : windows_core::PCWSTR, parseaction : PARSEACTION, dwflags : u32, pszresult : windows_core::PWSTR, cchresult : u32, pcchresult : *mut u32, dwreserved : u32) -> windows_core::HRESULT); - CoInternetParseUrl(pwzurl.param().abi(), core::mem::transmute(parseaction), core::mem::transmute(dwflags), core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), core::mem::transmute(pcchresult), core::mem::transmute(dwreserved)).ok() + CoInternetParseUrl(pwzurl.param().abi(), parseaction, dwflags, core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), core::mem::transmute(pcchresult), dwreserved).ok() } #[inline] pub unsafe fn CoInternetQueryInfo(pwzurl: P0, queryoptions: QUERYOPTION, dwqueryflags: u32, pvbuffer: *mut core::ffi::c_void, cbbuffer: u32, pcbbuffer: Option<*mut u32>, dwreserved: u32) -> windows_core::Result<()> @@ -144,22 +144,22 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetQueryInfo(pwzurl : windows_core::PCWSTR, queryoptions : QUERYOPTION, dwqueryflags : u32, pvbuffer : *mut core::ffi::c_void, cbbuffer : u32, pcbbuffer : *mut u32, dwreserved : u32) -> windows_core::HRESULT); - CoInternetQueryInfo(pwzurl.param().abi(), core::mem::transmute(queryoptions), core::mem::transmute(dwqueryflags), core::mem::transmute(pvbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcbbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreserved)).ok() + CoInternetQueryInfo(pwzurl.param().abi(), queryoptions, dwqueryflags, core::mem::transmute(pvbuffer), cbbuffer, core::mem::transmute(pcbbuffer.unwrap_or(core::mem::zeroed())), dwreserved).ok() } #[inline] pub unsafe fn CoInternetSetFeatureEnabled(featureentry: INTERNETFEATURELIST, dwflags: u32, fenable: bool) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn CoInternetSetFeatureEnabled(featureentry : INTERNETFEATURELIST, dwflags : u32, fenable : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - CoInternetSetFeatureEnabled(core::mem::transmute(featureentry), core::mem::transmute(dwflags), fenable.into()).ok() + CoInternetSetFeatureEnabled(featureentry, dwflags, fenable.into()).ok() } #[inline] pub unsafe fn CompareSecurityIds(pbsecurityid1: &[u8], pbsecurityid2: &[u8], dwreserved: u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn CompareSecurityIds(pbsecurityid1 : *const u8, dwlen1 : u32, pbsecurityid2 : *const u8, dwlen2 : u32, dwreserved : u32) -> windows_core::HRESULT); - CompareSecurityIds(core::mem::transmute(pbsecurityid1.as_ptr()), pbsecurityid1.len().try_into().unwrap(), core::mem::transmute(pbsecurityid2.as_ptr()), pbsecurityid2.len().try_into().unwrap(), core::mem::transmute(dwreserved)).ok() + CompareSecurityIds(core::mem::transmute(pbsecurityid1.as_ptr()), pbsecurityid1.len().try_into().unwrap(), core::mem::transmute(pbsecurityid2.as_ptr()), pbsecurityid2.len().try_into().unwrap(), dwreserved).ok() } #[inline] pub unsafe fn CompatFlagsFromClsid(pclsid: *const windows_core::GUID, pdwcompatflags: *mut u32, pdwmiscstatusflags: *mut u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn CompatFlagsFromClsid(pclsid : *const windows_core::GUID, pdwcompatflags : *mut u32, pdwmiscstatusflags : *mut u32) -> windows_core::HRESULT); - CompatFlagsFromClsid(core::mem::transmute(pclsid), core::mem::transmute(pdwcompatflags), core::mem::transmute(pdwmiscstatusflags)).ok() + CompatFlagsFromClsid(pclsid, core::mem::transmute(pdwcompatflags), core::mem::transmute(pdwmiscstatusflags)).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] #[inline] @@ -182,7 +182,7 @@ where { windows_targets::link!("urlmon.dll" "system" fn CreateAsyncBindCtx(reserved : u32, pbscb : * mut core::ffi::c_void, pefetc : * mut core::ffi::c_void, ppbc : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateAsyncBindCtx(core::mem::transmute(reserved), pbscb.param().abi(), pefetc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateAsyncBindCtx(reserved, pbscb.param().abi(), pefetc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateAsyncBindCtxEx(pbc: P0, dwoptions: u32, pbscb: P2, penum: P3, ppbc: *mut Option, reserved: u32) -> windows_core::Result<()> @@ -192,7 +192,7 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CreateAsyncBindCtxEx(pbc : * mut core::ffi::c_void, dwoptions : u32, pbscb : * mut core::ffi::c_void, penum : * mut core::ffi::c_void, ppbc : *mut * mut core::ffi::c_void, reserved : u32) -> windows_core::HRESULT); - CreateAsyncBindCtxEx(pbc.param().abi(), core::mem::transmute(dwoptions), pbscb.param().abi(), penum.param().abi(), core::mem::transmute(ppbc), core::mem::transmute(reserved)).ok() + CreateAsyncBindCtxEx(pbc.param().abi(), dwoptions, pbscb.param().abi(), penum.param().abi(), core::mem::transmute(ppbc), reserved).ok() } #[inline] pub unsafe fn CreateFormatEnumerator(rgfmtetc: &[super::FORMATETC]) -> windows_core::Result { @@ -217,7 +217,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CreateURLMonikerEx(pmkctx : * mut core::ffi::c_void, szurl : windows_core::PCWSTR, ppmk : *mut * mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - CreateURLMonikerEx(pmkctx.param().abi(), szurl.param().abi(), core::mem::transmute(ppmk), core::mem::transmute(dwflags)).ok() + CreateURLMonikerEx(pmkctx.param().abi(), szurl.param().abi(), core::mem::transmute(ppmk), dwflags).ok() } #[inline] pub unsafe fn CreateURLMonikerEx2(pmkctx: P0, puri: P1, ppmk: *mut Option, dwflags: u32) -> windows_core::Result<()> @@ -226,12 +226,12 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CreateURLMonikerEx2(pmkctx : * mut core::ffi::c_void, puri : * mut core::ffi::c_void, ppmk : *mut * mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - CreateURLMonikerEx2(pmkctx.param().abi(), puri.param().abi(), core::mem::transmute(ppmk), core::mem::transmute(dwflags)).ok() + CreateURLMonikerEx2(pmkctx.param().abi(), puri.param().abi(), core::mem::transmute(ppmk), dwflags).ok() } #[inline] pub unsafe fn FaultInIEFeature(hwnd: super::super::super::Foundation::HWND, pclassspec: *const super::uCLSSPEC, pquery: Option<*mut super::QUERYCONTEXT>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn FaultInIEFeature(hwnd : super::super::super::Foundation:: HWND, pclassspec : *const super:: uCLSSPEC, pquery : *mut super:: QUERYCONTEXT, dwflags : u32) -> windows_core::HRESULT); - FaultInIEFeature(core::mem::transmute(hwnd), core::mem::transmute(pclassspec), core::mem::transmute(pquery.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + FaultInIEFeature(hwnd, pclassspec, core::mem::transmute(pquery.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn FindMediaType(rgsztypes: P0) -> windows_core::Result @@ -249,7 +249,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn FindMediaTypeClass(pbc : * mut core::ffi::c_void, sztype : windows_core::PCSTR, pclsid : *mut windows_core::GUID, reserved : u32) -> windows_core::HRESULT); - FindMediaTypeClass(pbc.param().abi(), sztype.param().abi(), core::mem::transmute(pclsid), core::mem::transmute(reserved)).ok() + FindMediaTypeClass(pbc.param().abi(), sztype.param().abi(), core::mem::transmute(pclsid), reserved).ok() } #[inline] pub unsafe fn FindMimeFromData(pbc: P0, pwzurl: P1, pbuffer: Option<*const core::ffi::c_void>, cbsize: u32, pwzmimeproposed: P4, dwmimeflags: u32, ppwzmimeout: *mut windows_core::PWSTR, dwreserved: Option) -> windows_core::Result<()> @@ -259,7 +259,7 @@ where P4: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn FindMimeFromData(pbc : * mut core::ffi::c_void, pwzurl : windows_core::PCWSTR, pbuffer : *const core::ffi::c_void, cbsize : u32, pwzmimeproposed : windows_core::PCWSTR, dwmimeflags : u32, ppwzmimeout : *mut windows_core::PWSTR, dwreserved : u32) -> windows_core::HRESULT); - FindMimeFromData(pbc.param().abi(), pwzurl.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), pwzmimeproposed.param().abi(), core::mem::transmute(dwmimeflags), core::mem::transmute(ppwzmimeout), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + FindMimeFromData(pbc.param().abi(), pwzurl.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), cbsize, pwzmimeproposed.param().abi(), dwmimeflags, core::mem::transmute(ppwzmimeout), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetClassFileOrMime(pbc: P0, szfilename: P1, pbuffer: Option<*const core::ffi::c_void>, cbsize: u32, szmime: P4, dwreserved: u32) -> windows_core::Result @@ -270,7 +270,7 @@ where { windows_targets::link!("urlmon.dll" "system" fn GetClassFileOrMime(pbc : * mut core::ffi::c_void, szfilename : windows_core::PCWSTR, pbuffer : *const core::ffi::c_void, cbsize : u32, szmime : windows_core::PCWSTR, dwreserved : u32, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetClassFileOrMime(pbc.param().abi(), szfilename.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), szmime.param().abi(), core::mem::transmute(dwreserved), &mut result__).map(|| core::mem::transmute(result__)) + GetClassFileOrMime(pbc.param().abi(), szfilename.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), cbsize, szmime.param().abi(), dwreserved, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetClassURL(szurl: P0) -> windows_core::Result @@ -285,7 +285,7 @@ where pub unsafe fn GetComponentIDFromCLSSPEC(pclassspec: *const super::uCLSSPEC) -> windows_core::Result { windows_targets::link!("urlmon.dll" "system" fn GetComponentIDFromCLSSPEC(pclassspec : *const super:: uCLSSPEC, ppszcomponentid : *mut windows_core::PSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetComponentIDFromCLSSPEC(core::mem::transmute(pclassspec), &mut result__).map(|| core::mem::transmute(result__)) + GetComponentIDFromCLSSPEC(pclassspec, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetSoftwareUpdateInfo(szdistunit: P0, psdi: *mut SOFTDISTINFO) -> windows_core::Result<()> @@ -340,7 +340,7 @@ where P5: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn HlinkSimpleNavigateToMoniker(pmktarget : * mut core::ffi::c_void, szlocation : windows_core::PCWSTR, sztargetframename : windows_core::PCWSTR, punk : * mut core::ffi::c_void, pbc : * mut core::ffi::c_void, param5 : * mut core::ffi::c_void, grfhlnf : u32, dwreserved : u32) -> windows_core::HRESULT); - HlinkSimpleNavigateToMoniker(pmktarget.param().abi(), szlocation.param().abi(), sztargetframename.param().abi(), punk.param().abi(), pbc.param().abi(), param5.param().abi(), core::mem::transmute(grfhlnf), core::mem::transmute(dwreserved)).ok() + HlinkSimpleNavigateToMoniker(pmktarget.param().abi(), szlocation.param().abi(), sztargetframename.param().abi(), punk.param().abi(), pbc.param().abi(), param5.param().abi(), grfhlnf, dwreserved).ok() } #[inline] pub unsafe fn HlinkSimpleNavigateToString(sztarget: P0, szlocation: P1, sztargetframename: P2, punk: P3, pbc: P4, param5: P5, grfhlnf: u32, dwreserved: u32) -> windows_core::Result<()> @@ -353,7 +353,7 @@ where P5: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn HlinkSimpleNavigateToString(sztarget : windows_core::PCWSTR, szlocation : windows_core::PCWSTR, sztargetframename : windows_core::PCWSTR, punk : * mut core::ffi::c_void, pbc : * mut core::ffi::c_void, param5 : * mut core::ffi::c_void, grfhlnf : u32, dwreserved : u32) -> windows_core::HRESULT); - HlinkSimpleNavigateToString(sztarget.param().abi(), szlocation.param().abi(), sztargetframename.param().abi(), punk.param().abi(), pbc.param().abi(), param5.param().abi(), core::mem::transmute(grfhlnf), core::mem::transmute(dwreserved)).ok() + HlinkSimpleNavigateToString(sztarget.param().abi(), szlocation.param().abi(), sztargetframename.param().abi(), punk.param().abi(), pbc.param().abi(), param5.param().abi(), grfhlnf, dwreserved).ok() } #[inline] pub unsafe fn IEGetUserPrivateNamespaceName() -> windows_core::PWSTR { @@ -397,7 +397,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn IsValidURL(pbc : * mut core::ffi::c_void, szurl : windows_core::PCWSTR, dwreserved : u32) -> windows_core::HRESULT); - IsValidURL(pbc.param().abi(), szurl.param().abi(), core::mem::transmute(dwreserved)).ok() + IsValidURL(pbc.param().abi(), szurl.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn MkParseDisplayNameEx(pbc: P0, szdisplayname: P1, pcheaten: *mut u32, ppmk: *mut Option) -> windows_core::Result<()> @@ -411,7 +411,7 @@ where #[inline] pub unsafe fn ObtainUserAgentString(dwoption: u32, pszuaout: windows_core::PSTR, cbsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn ObtainUserAgentString(dwoption : u32, pszuaout : windows_core::PSTR, cbsize : *mut u32) -> windows_core::HRESULT); - ObtainUserAgentString(core::mem::transmute(dwoption), core::mem::transmute(pszuaout), core::mem::transmute(cbsize)).ok() + ObtainUserAgentString(dwoption, core::mem::transmute(pszuaout), core::mem::transmute(cbsize)).ok() } #[inline] pub unsafe fn RegisterBindStatusCallback(pbc: P0, pbscb: P1, ppbscbprev: *mut Option, dwreserved: u32) -> windows_core::Result<()> @@ -420,7 +420,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn RegisterBindStatusCallback(pbc : * mut core::ffi::c_void, pbscb : * mut core::ffi::c_void, ppbscbprev : *mut * mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - RegisterBindStatusCallback(pbc.param().abi(), pbscb.param().abi(), core::mem::transmute(ppbscbprev), core::mem::transmute(dwreserved)).ok() + RegisterBindStatusCallback(pbc.param().abi(), pbscb.param().abi(), core::mem::transmute(ppbscbprev), dwreserved).ok() } #[inline] pub unsafe fn RegisterFormatEnumerator(pbc: P0, pefetc: P1, reserved: u32) -> windows_core::Result<()> @@ -429,7 +429,7 @@ where P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn RegisterFormatEnumerator(pbc : * mut core::ffi::c_void, pefetc : * mut core::ffi::c_void, reserved : u32) -> windows_core::HRESULT); - RegisterFormatEnumerator(pbc.param().abi(), pefetc.param().abi(), core::mem::transmute(reserved)).ok() + RegisterFormatEnumerator(pbc.param().abi(), pefetc.param().abi(), reserved).ok() } #[inline] pub unsafe fn RegisterMediaTypeClass(pbc: P0, ctypes: u32, rgsztypes: *const windows_core::PCSTR, rgclsid: *const windows_core::GUID, reserved: u32) -> windows_core::Result<()> @@ -437,13 +437,13 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn RegisterMediaTypeClass(pbc : * mut core::ffi::c_void, ctypes : u32, rgsztypes : *const windows_core::PCSTR, rgclsid : *const windows_core::GUID, reserved : u32) -> windows_core::HRESULT); - RegisterMediaTypeClass(pbc.param().abi(), core::mem::transmute(ctypes), core::mem::transmute(rgsztypes), core::mem::transmute(rgclsid), core::mem::transmute(reserved)).ok() + RegisterMediaTypeClass(pbc.param().abi(), ctypes, rgsztypes, rgclsid, reserved).ok() } #[inline] pub unsafe fn RegisterMediaTypes(ctypes: u32, rgsztypes: *const windows_core::PCSTR) -> windows_core::Result { windows_targets::link!("urlmon.dll" "system" fn RegisterMediaTypes(ctypes : u32, rgsztypes : *const windows_core::PCSTR, rgcftypes : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RegisterMediaTypes(core::mem::transmute(ctypes), core::mem::transmute(rgsztypes), &mut result__).map(|| core::mem::transmute(result__)) + RegisterMediaTypes(ctypes, rgsztypes, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] #[inline] @@ -472,7 +472,7 @@ where #[inline] pub unsafe fn SetAccessForIEAppContainer(hobject: super::super::super::Foundation::HANDLE, ieobjecttype: IEObjectType, dwaccessmask: u32) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn SetAccessForIEAppContainer(hobject : super::super::super::Foundation:: HANDLE, ieobjecttype : IEObjectType, dwaccessmask : u32) -> windows_core::HRESULT); - SetAccessForIEAppContainer(core::mem::transmute(hobject), core::mem::transmute(ieobjecttype), core::mem::transmute(dwaccessmask)).ok() + SetAccessForIEAppContainer(hobject, ieobjecttype, dwaccessmask).ok() } #[inline] pub unsafe fn SetSoftwareUpdateAdvertisementState(szdistunit: P0, dwadstate: u32, dwadvertisedversionms: u32, dwadvertisedversionls: u32) -> windows_core::Result<()> @@ -480,7 +480,7 @@ where P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn SetSoftwareUpdateAdvertisementState(szdistunit : windows_core::PCWSTR, dwadstate : u32, dwadvertisedversionms : u32, dwadvertisedversionls : u32) -> windows_core::HRESULT); - SetSoftwareUpdateAdvertisementState(szdistunit.param().abi(), core::mem::transmute(dwadstate), core::mem::transmute(dwadvertisedversionms), core::mem::transmute(dwadvertisedversionls)).ok() + SetSoftwareUpdateAdvertisementState(szdistunit.param().abi(), dwadstate, dwadvertisedversionms, dwadvertisedversionls).ok() } #[inline] pub unsafe fn URLDownloadToCacheFileA(param0: P0, param1: P1, param2: &mut [u8], param4: u32, param5: P5) -> windows_core::Result<()> @@ -490,7 +490,7 @@ where P5: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLDownloadToCacheFileA(param0 : * mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : windows_core::PSTR, cchfilename : u32, param4 : u32, param5 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLDownloadToCacheFileA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.as_ptr()), param2.len().try_into().unwrap(), core::mem::transmute(param4), param5.param().abi()).ok() + URLDownloadToCacheFileA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.as_ptr()), param2.len().try_into().unwrap(), param4, param5.param().abi()).ok() } #[inline] pub unsafe fn URLDownloadToCacheFileW(param0: P0, param1: P1, param2: &mut [u16], param4: u32, param5: P5) -> windows_core::Result<()> @@ -500,7 +500,7 @@ where P5: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLDownloadToCacheFileW(param0 : * mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : windows_core::PWSTR, cchfilename : u32, param4 : u32, param5 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLDownloadToCacheFileW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.as_ptr()), param2.len().try_into().unwrap(), core::mem::transmute(param4), param5.param().abi()).ok() + URLDownloadToCacheFileW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.as_ptr()), param2.len().try_into().unwrap(), param4, param5.param().abi()).ok() } #[inline] pub unsafe fn URLDownloadToFileA(param0: P0, param1: P1, param2: P2, param3: u32, param4: P4) -> windows_core::Result<()> @@ -511,7 +511,7 @@ where P4: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLDownloadToFileA(param0 : * mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : windows_core::PCSTR, param3 : u32, param4 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLDownloadToFileA(param0.param().abi(), param1.param().abi(), param2.param().abi(), core::mem::transmute(param3), param4.param().abi()).ok() + URLDownloadToFileA(param0.param().abi(), param1.param().abi(), param2.param().abi(), param3, param4.param().abi()).ok() } #[inline] pub unsafe fn URLDownloadToFileW(param0: P0, param1: P1, param2: P2, param3: u32, param4: P4) -> windows_core::Result<()> @@ -522,7 +522,7 @@ where P4: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLDownloadToFileW(param0 : * mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : windows_core::PCWSTR, param3 : u32, param4 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLDownloadToFileW(param0.param().abi(), param1.param().abi(), param2.param().abi(), core::mem::transmute(param3), param4.param().abi()).ok() + URLDownloadToFileW(param0.param().abi(), param1.param().abi(), param2.param().abi(), param3, param4.param().abi()).ok() } #[inline] pub unsafe fn URLOpenBlockingStreamA(param0: P0, param1: P1, param2: *mut Option, param3: u32, param4: P4) -> windows_core::Result<()> @@ -532,7 +532,7 @@ where P4: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLOpenBlockingStreamA(param0 : * mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : *mut * mut core::ffi::c_void, param3 : u32, param4 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLOpenBlockingStreamA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), param4.param().abi()).ok() + URLOpenBlockingStreamA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3, param4.param().abi()).ok() } #[inline] pub unsafe fn URLOpenBlockingStreamW(param0: P0, param1: P1, param2: *mut Option, param3: u32, param4: P4) -> windows_core::Result<()> @@ -542,7 +542,7 @@ where P4: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLOpenBlockingStreamW(param0 : * mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : *mut * mut core::ffi::c_void, param3 : u32, param4 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLOpenBlockingStreamW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), core::mem::transmute(param3), param4.param().abi()).ok() + URLOpenBlockingStreamW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3, param4.param().abi()).ok() } #[inline] pub unsafe fn URLOpenPullStreamA(param0: P0, param1: P1, param2: u32, param3: P3) -> windows_core::Result<()> @@ -552,7 +552,7 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLOpenPullStreamA(param0 : * mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : u32, param3 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLOpenPullStreamA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3.param().abi()).ok() + URLOpenPullStreamA(param0.param().abi(), param1.param().abi(), param2, param3.param().abi()).ok() } #[inline] pub unsafe fn URLOpenPullStreamW(param0: P0, param1: P1, param2: u32, param3: P3) -> windows_core::Result<()> @@ -562,7 +562,7 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLOpenPullStreamW(param0 : * mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : u32, param3 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLOpenPullStreamW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3.param().abi()).ok() + URLOpenPullStreamW(param0.param().abi(), param1.param().abi(), param2, param3.param().abi()).ok() } #[inline] pub unsafe fn URLOpenStreamA(param0: P0, param1: P1, param2: u32, param3: P3) -> windows_core::Result<()> @@ -572,7 +572,7 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLOpenStreamA(param0 : * mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : u32, param3 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLOpenStreamA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3.param().abi()).ok() + URLOpenStreamA(param0.param().abi(), param1.param().abi(), param2, param3.param().abi()).ok() } #[inline] pub unsafe fn URLOpenStreamW(param0: P0, param1: P1, param2: u32, param3: P3) -> windows_core::Result<()> @@ -582,22 +582,22 @@ where P3: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn URLOpenStreamW(param0 : * mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : u32, param3 : * mut core::ffi::c_void) -> windows_core::HRESULT); - URLOpenStreamW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2), param3.param().abi()).ok() + URLOpenStreamW(param0.param().abi(), param1.param().abi(), param2, param3.param().abi()).ok() } #[inline] pub unsafe fn UrlMkGetSessionOption(dwoption: u32, pbuffer: Option<*mut core::ffi::c_void>, dwbufferlength: u32, pdwbufferlengthout: *mut u32, dwreserved: Option) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn UrlMkGetSessionOption(dwoption : u32, pbuffer : *mut core::ffi::c_void, dwbufferlength : u32, pdwbufferlengthout : *mut u32, dwreserved : u32) -> windows_core::HRESULT); - UrlMkGetSessionOption(core::mem::transmute(dwoption), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength), core::mem::transmute(pdwbufferlengthout), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + UrlMkGetSessionOption(dwoption, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength, core::mem::transmute(pdwbufferlengthout), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UrlMkSetSessionOption(dwoption: u32, pbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwreserved: Option) -> windows_core::Result<()> { windows_targets::link!("urlmon.dll" "system" fn UrlMkSetSessionOption(dwoption : u32, pbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwreserved : u32) -> windows_core::HRESULT); - UrlMkSetSessionOption(core::mem::transmute(dwoption), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbufferlength), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() + UrlMkSetSessionOption(dwoption, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), dwbufferlength, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WriteHitLogging(lplogginginfo: *const HIT_LOGGING_INFO) -> super::super::super::Foundation::BOOL { windows_targets::link!("urlmon.dll" "system" fn WriteHitLogging(lplogginginfo : *const HIT_LOGGING_INFO) -> super::super::super::Foundation:: BOOL); - WriteHitLogging(core::mem::transmute(lplogginginfo)) + WriteHitLogging(lplogginginfo) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -1121,7 +1121,7 @@ impl ICodeInstall { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCodeInstallProblem)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstatuscode), szdestination.param().abi(), szsource.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).OnCodeInstallProblem)(windows_core::Interface::as_raw(self), ulstatuscode, szdestination.param().abi(), szsource.param().abi(), dwreserved).ok() } } #[repr(C)] @@ -1149,13 +1149,13 @@ windows_core::imp::define_interface!(IDataFilter, IDataFilter_Vtbl, 0x69d14c80_c windows_core::imp::interface_hierarchy!(IDataFilter, windows_core::IUnknown); impl IDataFilter { pub unsafe fn DoEncode(&self, dwflags: u32, pbinbuffer: &[u8], pboutbuffer: &mut [u8], linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoEncode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pbinbuffer.len().try_into().unwrap(), core::mem::transmute(pbinbuffer.as_ptr()), pboutbuffer.len().try_into().unwrap(), core::mem::transmute(pboutbuffer.as_ptr()), core::mem::transmute(linbytesavailable), core::mem::transmute(plinbytesread), core::mem::transmute(ploutbyteswritten), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).DoEncode)(windows_core::Interface::as_raw(self), dwflags, pbinbuffer.len().try_into().unwrap(), core::mem::transmute(pbinbuffer.as_ptr()), pboutbuffer.len().try_into().unwrap(), core::mem::transmute(pboutbuffer.as_ptr()), linbytesavailable, core::mem::transmute(plinbytesread), core::mem::transmute(ploutbyteswritten), dwreserved).ok() } pub unsafe fn DoDecode(&self, dwflags: u32, pbinbuffer: &[u8], pboutbuffer: &mut [u8], linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pbinbuffer.len().try_into().unwrap(), core::mem::transmute(pbinbuffer.as_ptr()), pboutbuffer.len().try_into().unwrap(), core::mem::transmute(pboutbuffer.as_ptr()), core::mem::transmute(linbytesavailable), core::mem::transmute(plinbytesread), core::mem::transmute(ploutbyteswritten), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).DoDecode)(windows_core::Interface::as_raw(self), dwflags, pbinbuffer.len().try_into().unwrap(), core::mem::transmute(pbinbuffer.as_ptr()), pboutbuffer.len().try_into().unwrap(), core::mem::transmute(pboutbuffer.as_ptr()), linbytesavailable, core::mem::transmute(plinbytesread), core::mem::transmute(ploutbyteswritten), dwreserved).ok() } pub unsafe fn SetEncodingLevel(&self, dwenclevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncodingLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(dwenclevel)).ok() + (windows_core::Interface::vtable(self).SetEncodingLevel)(windows_core::Interface::as_raw(self), dwenclevel).ok() } } #[repr(C)] @@ -1275,7 +1275,7 @@ windows_core::imp::interface_hierarchy!(IGetBindHandle, windows_core::IUnknown); impl IGetBindHandle { pub unsafe fn GetBindHandle(&self, enumrequestedhandle: BINDHANDLETYPES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBindHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(enumrequestedhandle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBindHandle)(windows_core::Interface::as_raw(self), enumrequestedhandle, &mut result__).map(|| result__) } } #[repr(C)] @@ -1314,7 +1314,7 @@ impl IHttpNegotiate { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginningTransaction)(windows_core::Interface::as_raw(self), szurl.param().abi(), szheaders.param().abi(), core::mem::transmute(dwreserved), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).BeginningTransaction)(windows_core::Interface::as_raw(self), szurl.param().abi(), szheaders.param().abi(), dwreserved, &mut result__).map(|| result__) } pub unsafe fn OnResponse(&self, dwresponsecode: u32, szresponseheaders: P1, szrequestheaders: P2) -> windows_core::Result where @@ -1322,7 +1322,7 @@ impl IHttpNegotiate { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(dwresponsecode), szresponseheaders.param().abi(), szrequestheaders.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnResponse)(windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.param().abi(), szrequestheaders.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1378,7 +1378,7 @@ impl core::ops::Deref for IHttpNegotiate2 { windows_core::imp::interface_hierarchy!(IHttpNegotiate2, windows_core::IUnknown, IHttpNegotiate); impl IHttpNegotiate2 { pub unsafe fn GetRootSecurityId(&self, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRootSecurityId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsecurityid), core::mem::transmute(pcbsecurityid), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetRootSecurityId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsecurityid), core::mem::transmute(pcbsecurityid), dwreserved).ok() } } #[repr(C)] @@ -1446,7 +1446,7 @@ impl core::ops::Deref for IHttpSecurity { windows_core::imp::interface_hierarchy!(IHttpSecurity, windows_core::IUnknown, IWindowForBindingUI); impl IHttpSecurity { pub unsafe fn OnSecurityProblem(&self, dwproblem: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSecurityProblem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproblem)).ok() + (windows_core::Interface::vtable(self).OnSecurityProblem)(windows_core::Interface::as_raw(self), dwproblem).ok() } } #[repr(C)] @@ -1494,7 +1494,7 @@ impl IInternetBindInfo { (windows_core::Interface::vtable(self).GetBindInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(grfbindf), core::mem::transmute(pbindinfo)).ok() } pub unsafe fn GetBindString(&self, ulstringtype: u32, ppwzstr: *mut windows_core::PWSTR, cel: u32, pcelfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBindString)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstringtype), core::mem::transmute(ppwzstr), core::mem::transmute(cel), core::mem::transmute(pcelfetched)).ok() + (windows_core::Interface::vtable(self).GetBindString)(windows_core::Interface::as_raw(self), ulstringtype, core::mem::transmute(ppwzstr), cel, core::mem::transmute(pcelfetched)).ok() } } #[repr(C)] @@ -1579,13 +1579,13 @@ windows_core::imp::define_interface!(IInternetHostSecurityManager, IInternetHost windows_core::imp::interface_hierarchy!(IInternetHostSecurityManager, windows_core::IUnknown); impl IInternetHostSecurityManager { pub unsafe fn GetSecurityId(&self, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSecurityId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsecurityid), core::mem::transmute(pcbsecurityid), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetSecurityId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsecurityid), core::mem::transmute(pcbsecurityid), dwreserved).ok() } pub unsafe fn ProcessUrlAction(&self, dwaction: u32, ppolicy: &mut [u8], pcontext: Option<&[u8]>, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessUrlAction)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(pcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwflags), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).ProcessUrlAction)(windows_core::Interface::as_raw(self), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(pcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwflags, dwreserved).ok() } pub unsafe fn QueryCustomPolicy(&self, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: &[u8], dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryCustomPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(guidkey), core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), core::mem::transmute(pcontext.as_ptr()), pcontext.len().try_into().unwrap(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).QueryCustomPolicy)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), core::mem::transmute(pcontext.as_ptr()), pcontext.len().try_into().unwrap(), dwreserved).ok() } } #[repr(C)] @@ -1630,7 +1630,7 @@ windows_core::imp::define_interface!(IInternetPriority, IInternetPriority_Vtbl, windows_core::imp::interface_hierarchy!(IInternetPriority, windows_core::IUnknown); impl IInternetPriority { pub unsafe fn SetPriority(&self, npriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(npriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), npriority).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1688,10 +1688,10 @@ impl IInternetProtocol { } pub unsafe fn Seek(&self, dlibmove: i64, dworigin: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(dlibmove), core::mem::transmute(dworigin), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), dlibmove, dworigin, &mut result__).map(|| result__) } pub unsafe fn LockRequest(&self, dwoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions)).ok() + (windows_core::Interface::vtable(self).LockRequest)(windows_core::Interface::as_raw(self), dwoptions).ok() } pub unsafe fn UnlockRequest(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnlockRequest)(windows_core::Interface::as_raw(self)).ok() @@ -1763,7 +1763,7 @@ impl IInternetProtocolEx { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).StartEx)(windows_core::Interface::as_raw(self), puri.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), core::mem::transmute(grfpi), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).StartEx)(windows_core::Interface::as_raw(self), puri.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), grfpi, dwreserved).ok() } } #[repr(C)] @@ -1794,7 +1794,7 @@ impl IInternetProtocolInfo { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseUrl)(windows_core::Interface::as_raw(self), pwzurl.param().abi(), core::mem::transmute(parseaction), core::mem::transmute(dwparseflags), core::mem::transmute(pwzresult), core::mem::transmute(cchresult), core::mem::transmute(pcchresult), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).ParseUrl)(windows_core::Interface::as_raw(self), pwzurl.param().abi(), parseaction, dwparseflags, core::mem::transmute(pwzresult), cchresult, core::mem::transmute(pcchresult), dwreserved).ok() } pub unsafe fn CombineUrl(&self, pwzbaseurl: P0, pwzrelativeurl: P1, dwcombineflags: u32, pwzresult: P3, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()> where @@ -1802,20 +1802,20 @@ impl IInternetProtocolInfo { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CombineUrl)(windows_core::Interface::as_raw(self), pwzbaseurl.param().abi(), pwzrelativeurl.param().abi(), core::mem::transmute(dwcombineflags), pwzresult.param().abi(), core::mem::transmute(cchresult), core::mem::transmute(pcchresult), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).CombineUrl)(windows_core::Interface::as_raw(self), pwzbaseurl.param().abi(), pwzrelativeurl.param().abi(), dwcombineflags, pwzresult.param().abi(), cchresult, core::mem::transmute(pcchresult), dwreserved).ok() } pub unsafe fn CompareUrl(&self, pwzurl1: P0, pwzurl2: P1, dwcompareflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareUrl)(windows_core::Interface::as_raw(self), pwzurl1.param().abi(), pwzurl2.param().abi(), core::mem::transmute(dwcompareflags)).ok() + (windows_core::Interface::vtable(self).CompareUrl)(windows_core::Interface::as_raw(self), pwzurl1.param().abi(), pwzurl2.param().abi(), dwcompareflags).ok() } pub unsafe fn QueryInfo(&self, pwzurl: P0, oueryoption: QUERYOPTION, dwqueryflags: u32, pbuffer: *mut core::ffi::c_void, cbbuffer: u32, pcbbuf: *mut u32, dwreserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInfo)(windows_core::Interface::as_raw(self), pwzurl.param().abi(), core::mem::transmute(oueryoption), core::mem::transmute(dwqueryflags), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcbbuf), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).QueryInfo)(windows_core::Interface::as_raw(self), pwzurl.param().abi(), oueryoption, dwqueryflags, core::mem::transmute(pbuffer), cbbuffer, core::mem::transmute(pcbbuf), dwreserved).ok() } } #[repr(C)] @@ -1872,16 +1872,16 @@ impl IInternetProtocolRoot { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), szurl.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), core::mem::transmute(grfpi), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), szurl.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), grfpi, dwreserved).ok() } pub unsafe fn Continue(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Continue)(windows_core::Interface::as_raw(self), core::mem::transmute(pprotocoldata)).ok() + (windows_core::Interface::vtable(self).Continue)(windows_core::Interface::as_raw(self), pprotocoldata).ok() } pub unsafe fn Abort(&self, hrreason: windows_core::HRESULT, dwoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), core::mem::transmute(hrreason), core::mem::transmute(dwoptions)).ok() + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), hrreason, dwoptions).ok() } pub unsafe fn Terminate(&self, dwoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions)).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), dwoptions).ok() } pub unsafe fn Suspend(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Suspend)(windows_core::Interface::as_raw(self)).ok() @@ -1953,22 +1953,22 @@ windows_core::imp::define_interface!(IInternetProtocolSink, IInternetProtocolSin windows_core::imp::interface_hierarchy!(IInternetProtocolSink, windows_core::IUnknown); impl IInternetProtocolSink { pub unsafe fn Switch(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Switch)(windows_core::Interface::as_raw(self), core::mem::transmute(pprotocoldata)).ok() + (windows_core::Interface::vtable(self).Switch)(windows_core::Interface::as_raw(self), pprotocoldata).ok() } pub unsafe fn ReportProgress(&self, ulstatuscode: u32, szstatustext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstatuscode), szstatustext.param().abi()).ok() + (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), ulstatuscode, szstatustext.param().abi()).ok() } pub unsafe fn ReportData(&self, grfbscf: u32, ulprogress: u32, ulprogressmax: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportData)(windows_core::Interface::as_raw(self), core::mem::transmute(grfbscf), core::mem::transmute(ulprogress), core::mem::transmute(ulprogressmax)).ok() + (windows_core::Interface::vtable(self).ReportData)(windows_core::Interface::as_raw(self), grfbscf, ulprogress, ulprogressmax).ok() } pub unsafe fn ReportResult(&self, hrresult: windows_core::HRESULT, dwerror: u32, szresult: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), core::mem::transmute(hrresult), core::mem::transmute(dwerror), szresult.param().abi()).ok() + (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), hrresult, dwerror, szresult.param().abi()).ok() } } #[repr(C)] @@ -2087,34 +2087,34 @@ impl IInternetSecurityManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pdwzone), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pdwzone), dwflags).ok() } pub unsafe fn GetSecurityId(&self, pwszurl: P0, pbsecurityid: &mut [u8; 512], pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), core::mem::transmute(pcbsecurityid), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), core::mem::transmute(pcbsecurityid), dwreserved).ok() } pub unsafe fn ProcessUrlAction(&self, pwszurl: P0, dwaction: u32, ppolicy: &mut [u8], pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessUrlAction)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(pcontext), core::mem::transmute(cbcontext), core::mem::transmute(dwflags), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).ProcessUrlAction)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved).ok() } pub unsafe fn QueryCustomPolicy(&self, pwszurl: P0, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(guidkey), core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), core::mem::transmute(pcontext), core::mem::transmute(cbcontext), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), guidkey, core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), pcontext, cbcontext, dwreserved).ok() } pub unsafe fn SetZoneMapping(&self, dwzone: u32, lpszpattern: P1, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetZoneMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), lpszpattern.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetZoneMapping)(windows_core::Interface::as_raw(self), dwzone, lpszpattern.param().abi(), dwflags).ok() } pub unsafe fn GetZoneMappings(&self, dwzone: u32, ppenumstring: *mut Option, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneMappings)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(ppenumstring), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetZoneMappings)(windows_core::Interface::as_raw(self), dwzone, core::mem::transmute(ppenumstring), dwflags).ok() } } #[repr(C)] @@ -2209,7 +2209,7 @@ impl IInternetSecurityManagerEx { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessUrlActionEx)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(pcontext), core::mem::transmute(cbcontext), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), core::mem::transmute(pdwoutflags)).ok() + (windows_core::Interface::vtable(self).ProcessUrlActionEx)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved, core::mem::transmute(pdwoutflags)).ok() } } #[repr(C)] @@ -2246,25 +2246,25 @@ impl IInternetSecurityManagerEx2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapUrlToZoneEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(pdwzone), core::mem::transmute(dwflags), core::mem::transmute(ppwszmappedurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwoutflags.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MapUrlToZoneEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(pdwzone), dwflags, core::mem::transmute(ppwszmappedurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwoutflags.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ProcessUrlActionEx2(&self, puri: P0, dwaction: u32, ppolicy: &mut [u8], pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: usize, pdwoutflags: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessUrlActionEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(pcontext), core::mem::transmute(cbcontext), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), core::mem::transmute(pdwoutflags)).ok() + (windows_core::Interface::vtable(self).ProcessUrlActionEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved, core::mem::transmute(pdwoutflags)).ok() } pub unsafe fn GetSecurityIdEx2(&self, puri: P0, pbsecurityid: &mut [u8; 512], pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSecurityIdEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), core::mem::transmute(pcbsecurityid), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetSecurityIdEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), core::mem::transmute(pcbsecurityid), dwreserved).ok() } pub unsafe fn QueryCustomPolicyEx2(&self, puri: P0, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryCustomPolicyEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(guidkey), core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), core::mem::transmute(pcontext), core::mem::transmute(cbcontext), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).QueryCustomPolicyEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), guidkey, core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), pcontext, cbcontext, dwreserved).ok() } } #[repr(C)] @@ -2368,7 +2368,7 @@ impl IInternetSession { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNameSpace)(windows_core::Interface::as_raw(self), pcf.param().abi(), core::mem::transmute(rclsid), pwzprotocol.param().abi(), core::mem::transmute(cpatterns), core::mem::transmute(ppwzpatterns), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).RegisterNameSpace)(windows_core::Interface::as_raw(self), pcf.param().abi(), rclsid, pwzprotocol.param().abi(), cpatterns, ppwzpatterns, dwreserved).ok() } pub unsafe fn UnregisterNameSpace(&self, pcf: P0, pszprotocol: P1) -> windows_core::Result<()> where @@ -2382,7 +2382,7 @@ impl IInternetSession { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterMimeFilter)(windows_core::Interface::as_raw(self), pcf.param().abi(), core::mem::transmute(rclsid), pwztype.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterMimeFilter)(windows_core::Interface::as_raw(self), pcf.param().abi(), rclsid, pwztype.param().abi()).ok() } pub unsafe fn UnregisterMimeFilter(&self, pcf: P0, pwztype: P1) -> windows_core::Result<()> where @@ -2397,13 +2397,13 @@ impl IInternetSession { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateBinding)(windows_core::Interface::as_raw(self), pbc.param().abi(), szurl.param().abi(), punkouter.param().abi(), core::mem::transmute(ppunk), core::mem::transmute(ppoinetprot), core::mem::transmute(dwoption)).ok() + (windows_core::Interface::vtable(self).CreateBinding)(windows_core::Interface::as_raw(self), pbc.param().abi(), szurl.param().abi(), punkouter.param().abi(), core::mem::transmute(ppunk), core::mem::transmute(ppoinetprot), dwoption).ok() } pub unsafe fn SetSessionOption(&self, dwoption: u32, pbuffer: *const core::ffi::c_void, dwbufferlength: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSessionOption)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoption), core::mem::transmute(pbuffer), core::mem::transmute(dwbufferlength), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetSessionOption)(windows_core::Interface::as_raw(self), dwoption, pbuffer, dwbufferlength, dwreserved).ok() } pub unsafe fn GetSessionOption(&self, dwoption: u32, pbuffer: *mut core::ffi::c_void, pdwbufferlength: *mut u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSessionOption)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoption), core::mem::transmute(pbuffer), core::mem::transmute(pdwbufferlength), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetSessionOption)(windows_core::Interface::as_raw(self), dwoption, core::mem::transmute(pbuffer), core::mem::transmute(pdwbufferlength), dwreserved).ok() } } #[repr(C)] @@ -2513,49 +2513,49 @@ windows_core::imp::define_interface!(IInternetZoneManager, IInternetZoneManager_ windows_core::imp::interface_hierarchy!(IInternetZoneManager, windows_core::IUnknown); impl IInternetZoneManager { pub unsafe fn GetZoneAttributes(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(pzoneattributes)).ok() + (windows_core::Interface::vtable(self).GetZoneAttributes)(windows_core::Interface::as_raw(self), dwzone, core::mem::transmute(pzoneattributes)).ok() } pub unsafe fn SetZoneAttributes(&self, dwzone: u32, pzoneattributes: *const ZONEATTRIBUTES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZoneAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(pzoneattributes)).ok() + (windows_core::Interface::vtable(self).SetZoneAttributes)(windows_core::Interface::as_raw(self), dwzone, pzoneattributes).ok() } pub unsafe fn GetZoneCustomPolicy(&self, dwzone: u32, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, urlzonereg: URLZONEREG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneCustomPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(guidkey), core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), core::mem::transmute(urlzonereg)).ok() + (windows_core::Interface::vtable(self).GetZoneCustomPolicy)(windows_core::Interface::as_raw(self), dwzone, guidkey, core::mem::transmute(pppolicy), core::mem::transmute(pcbpolicy), urlzonereg).ok() } pub unsafe fn SetZoneCustomPolicy(&self, dwzone: u32, guidkey: *const windows_core::GUID, ppolicy: &[u8], urlzonereg: URLZONEREG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZoneCustomPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(guidkey), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(urlzonereg)).ok() + (windows_core::Interface::vtable(self).SetZoneCustomPolicy)(windows_core::Interface::as_raw(self), dwzone, guidkey, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), urlzonereg).ok() } pub unsafe fn GetZoneActionPolicy(&self, dwzone: u32, dwaction: u32, ppolicy: &mut [u8], urlzonereg: URLZONEREG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneActionPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(urlzonereg)).ok() + (windows_core::Interface::vtable(self).GetZoneActionPolicy)(windows_core::Interface::as_raw(self), dwzone, dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), urlzonereg).ok() } pub unsafe fn SetZoneActionPolicy(&self, dwzone: u32, dwaction: u32, ppolicy: &[u8], urlzonereg: URLZONEREG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZoneActionPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(urlzonereg)).ok() + (windows_core::Interface::vtable(self).SetZoneActionPolicy)(windows_core::Interface::as_raw(self), dwzone, dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), urlzonereg).ok() } pub unsafe fn PromptAction(&self, dwaction: u32, hwndparent: super::super::super::Foundation::HWND, pwszurl: P2, pwsztext: P3, dwpromptflags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PromptAction)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaction), core::mem::transmute(hwndparent), pwszurl.param().abi(), pwsztext.param().abi(), core::mem::transmute(dwpromptflags)).ok() + (windows_core::Interface::vtable(self).PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent, pwszurl.param().abi(), pwsztext.param().abi(), dwpromptflags).ok() } pub unsafe fn LogAction(&self, dwaction: u32, pwszurl: P1, pwsztext: P2, dwlogflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogAction)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaction), pwszurl.param().abi(), pwsztext.param().abi(), core::mem::transmute(dwlogflags)).ok() + (windows_core::Interface::vtable(self).LogAction)(windows_core::Interface::as_raw(self), dwaction, pwszurl.param().abi(), pwsztext.param().abi(), dwlogflags).ok() } pub unsafe fn CreateZoneEnumerator(&self, pdwenum: *mut u32, pdwcount: *mut u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateZoneEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwenum), core::mem::transmute(pdwcount), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).CreateZoneEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwenum), core::mem::transmute(pdwcount), dwflags).ok() } pub unsafe fn GetZoneAt(&self, dwenum: u32, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetZoneAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwenum), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetZoneAt)(windows_core::Interface::as_raw(self), dwenum, dwindex, &mut result__).map(|| result__) } pub unsafe fn DestroyZoneEnumerator(&self, dwenum: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyZoneEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(dwenum)).ok() + (windows_core::Interface::vtable(self).DestroyZoneEnumerator)(windows_core::Interface::as_raw(self), dwenum).ok() } pub unsafe fn CopyTemplatePoliciesToZone(&self, dwtemplate: u32, dwzone: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyTemplatePoliciesToZone)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtemplate), core::mem::transmute(dwzone), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).CopyTemplatePoliciesToZone)(windows_core::Interface::as_raw(self), dwtemplate, dwzone, dwreserved).ok() } } #[repr(C)] @@ -2675,10 +2675,10 @@ impl core::ops::Deref for IInternetZoneManagerEx { windows_core::imp::interface_hierarchy!(IInternetZoneManagerEx, windows_core::IUnknown, IInternetZoneManager); impl IInternetZoneManagerEx { pub unsafe fn GetZoneActionPolicyEx(&self, dwzone: u32, dwaction: u32, ppolicy: &mut [u8], urlzonereg: URLZONEREG, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneActionPolicyEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(urlzonereg), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetZoneActionPolicyEx)(windows_core::Interface::as_raw(self), dwzone, dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), urlzonereg, dwflags).ok() } pub unsafe fn SetZoneActionPolicyEx(&self, dwzone: u32, dwaction: u32, ppolicy: &[u8], urlzonereg: URLZONEREG, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetZoneActionPolicyEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(dwaction), core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), core::mem::transmute(urlzonereg), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetZoneActionPolicyEx)(windows_core::Interface::as_raw(self), dwzone, dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), urlzonereg, dwflags).ok() } } #[repr(C)] @@ -2722,10 +2722,10 @@ impl core::ops::Deref for IInternetZoneManagerEx2 { windows_core::imp::interface_hierarchy!(IInternetZoneManagerEx2, windows_core::IUnknown, IInternetZoneManager, IInternetZoneManagerEx); impl IInternetZoneManagerEx2 { pub unsafe fn GetZoneAttributesEx(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneAttributesEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone), core::mem::transmute(pzoneattributes), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetZoneAttributesEx)(windows_core::Interface::as_raw(self), dwzone, core::mem::transmute(pzoneattributes), dwflags).ok() } pub unsafe fn GetZoneSecurityState(&self, dwzoneindex: u32, frespectpolicy: bool, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetZoneSecurityState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzoneindex), frespectpolicy.into(), core::mem::transmute(pdwstate), core::mem::transmute(pfpolicyencountered)).ok() + (windows_core::Interface::vtable(self).GetZoneSecurityState)(windows_core::Interface::as_raw(self), dwzoneindex, frespectpolicy.into(), core::mem::transmute(pdwstate), core::mem::transmute(pfpolicyencountered)).ok() } pub unsafe fn GetIESecurityState(&self, frespectpolicy: bool, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIESecurityState)(windows_core::Interface::as_raw(self), frespectpolicy.into(), core::mem::transmute(pdwstate), core::mem::transmute(pfpolicyencountered), fnocache.into()).ok() @@ -2786,7 +2786,7 @@ impl IMonikerProp { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(mkp), val.param().abi()).ok() + (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), mkp, val.param().abi()).ok() } } #[repr(C)] @@ -2881,7 +2881,7 @@ impl IPersistMoniker { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ffullyavailable.into(), pimkname.param().abi(), pibc.param().abi(), core::mem::transmute(grfmode)).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ffullyavailable.into(), pimkname.param().abi(), pibc.param().abi(), grfmode).ok() } pub unsafe fn Save(&self, pimkname: P0, pbc: P1, fremember: bool) -> windows_core::Result<()> where @@ -2985,16 +2985,16 @@ impl ISoftDistExt { (windows_core::Interface::vtable(self).ProcessSoftDist)(windows_core::Interface::as_raw(self), szcdfurl.param().abi(), psoftdistelement.param().abi(), core::mem::transmute(lpsdi)).ok() } pub unsafe fn GetFirstCodeBase(&self, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFirstCodeBase)(windows_core::Interface::as_raw(self), core::mem::transmute(szcodebase), core::mem::transmute(dwmaxsize)).ok() + (windows_core::Interface::vtable(self).GetFirstCodeBase)(windows_core::Interface::as_raw(self), szcodebase, dwmaxsize).ok() } pub unsafe fn GetNextCodeBase(&self, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextCodeBase)(windows_core::Interface::as_raw(self), core::mem::transmute(szcodebase), core::mem::transmute(dwmaxsize)).ok() + (windows_core::Interface::vtable(self).GetNextCodeBase)(windows_core::Interface::as_raw(self), szcodebase, dwmaxsize).ok() } pub unsafe fn AsyncInstallDistributionUnit(&self, pbc: P0, pvreserved: *const core::ffi::c_void, flags: u32, lpcbh: *const CODEBASEHOLD) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncInstallDistributionUnit)(windows_core::Interface::as_raw(self), pbc.param().abi(), core::mem::transmute(pvreserved), core::mem::transmute(flags), core::mem::transmute(lpcbh)).ok() + (windows_core::Interface::vtable(self).AsyncInstallDistributionUnit)(windows_core::Interface::as_raw(self), pbc.param().abi(), pvreserved, flags, lpcbh).ok() } } #[repr(C)] @@ -3053,11 +3053,11 @@ windows_core::imp::interface_hierarchy!(IUriBuilderFactory, windows_core::IUnkno impl IUriBuilderFactory { pub unsafe fn CreateIUriBuilder(&self, dwflags: u32, dwreserved: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateIUriBuilder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateIUriBuilder)(windows_core::Interface::as_raw(self), dwflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInitializedIUriBuilder(&self, dwflags: u32, dwreserved: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInitializedIUriBuilder)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInitializedIUriBuilder)(windows_core::Interface::as_raw(self), dwflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3210,10 +3210,10 @@ windows_core::imp::define_interface!(IWinInetFileStream, IWinInetFileStream_Vtbl windows_core::imp::interface_hierarchy!(IWinInetFileStream, windows_core::IUnknown); impl IWinInetFileStream { pub unsafe fn SetHandleForUnlock(&self, hwininetlockhandle: usize, dwreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHandleForUnlock)(windows_core::Interface::as_raw(self), core::mem::transmute(hwininetlockhandle), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetHandleForUnlock)(windows_core::Interface::as_raw(self), hwininetlockhandle, dwreserved).ok() } pub unsafe fn SetDeleteFile(&self, dwreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeleteFile)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetDeleteFile)(windows_core::Interface::as_raw(self), dwreserved).ok() } } #[repr(C)] @@ -3257,7 +3257,7 @@ impl core::ops::Deref for IWinInetHttpInfo { windows_core::imp::interface_hierarchy!(IWinInetHttpInfo, windows_core::IUnknown, IWinInetInfo); impl IWinInetHttpInfo { pub unsafe fn QueryInfo(&self, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32, pdwflags: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoption), core::mem::transmute(pbuffer), core::mem::transmute(pcbbuf), core::mem::transmute(pdwflags), core::mem::transmute(pdwreserved)).ok() + (windows_core::Interface::vtable(self).QueryInfo)(windows_core::Interface::as_raw(self), dwoption, core::mem::transmute(pbuffer), core::mem::transmute(pcbbuf), core::mem::transmute(pdwflags), core::mem::transmute(pdwreserved)).ok() } } #[repr(C)] @@ -3313,7 +3313,7 @@ windows_core::imp::define_interface!(IWinInetInfo, IWinInetInfo_Vtbl, 0x79eac9d6 windows_core::imp::interface_hierarchy!(IWinInetInfo, windows_core::IUnknown); impl IWinInetInfo { pub unsafe fn QueryOption(&self, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryOption)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoption), core::mem::transmute(pbuffer), core::mem::transmute(pcbbuf)).ok() + (windows_core::Interface::vtable(self).QueryOption)(windows_core::Interface::as_raw(self), dwoption, core::mem::transmute(pbuffer), core::mem::transmute(pcbbuf)).ok() } } #[repr(C)] @@ -3342,7 +3342,7 @@ windows_core::imp::interface_hierarchy!(IWindowForBindingUI, windows_core::IUnkn impl IWindowForBindingUI { pub unsafe fn GetWindow(&self, rguidreason: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidreason), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWindow)(windows_core::Interface::as_raw(self), rguidreason, &mut result__).map(|| result__) } } #[repr(C)] @@ -3376,7 +3376,7 @@ windows_core::imp::define_interface!(IWrappedProtocol, IWrappedProtocol_Vtbl, 0x windows_core::imp::interface_hierarchy!(IWrappedProtocol, windows_core::IUnknown); impl IWrappedProtocol { pub unsafe fn GetWrapperCode(&self, pncode: *mut i32, dwreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWrapperCode)(windows_core::Interface::as_raw(self), core::mem::transmute(pncode), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetWrapperCode)(windows_core::Interface::as_raw(self), core::mem::transmute(pncode), dwreserved).ok() } } #[repr(C)] @@ -3408,7 +3408,7 @@ impl IZoneIdentifier { (windows_core::Interface::vtable(self).GetId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetId(&self, dwzone: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwzone)).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), dwzone).ok() } pub unsafe fn Remove(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self)).ok() @@ -3485,7 +3485,7 @@ impl IZoneIdentifier2 { (windows_core::Interface::vtable(self).GetAppZoneId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppZoneId(&self, zone: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppZoneId)(windows_core::Interface::as_raw(self), core::mem::transmute(zone)).ok() + (windows_core::Interface::vtable(self).SetAppZoneId)(windows_core::Interface::as_raw(self), zone).ok() } pub unsafe fn RemoveAppZoneId(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAppZoneId)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs index 74c6d567b7..2cb5febcdb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -20,7 +20,7 @@ where { windows_targets::link!("ole32.dll" "system" fn BindMoniker(pmk : * mut core::ffi::c_void, grfopt : u32, iidresult : *const windows_core::GUID, ppvresult : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - BindMoniker(pmk.param().abi(), core::mem::transmute(grfopt), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + BindMoniker(pmk.param().abi(), grfopt, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CLSIDFromProgID(lpszprogid: P0) -> windows_core::Result @@ -65,7 +65,7 @@ where #[inline] pub unsafe fn CoAllowUnmarshalerCLSID(clsid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoAllowUnmarshalerCLSID(clsid : *const windows_core::GUID) -> windows_core::HRESULT); - CoAllowUnmarshalerCLSID(core::mem::transmute(clsid)).ok() + CoAllowUnmarshalerCLSID(clsid).ok() } #[inline] pub unsafe fn CoBuildVersion() -> u32 { @@ -75,7 +75,7 @@ pub unsafe fn CoBuildVersion() -> u32 { #[inline] pub unsafe fn CoCancelCall(dwthreadid: u32, ultimeout: u32) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoCancelCall(dwthreadid : u32, ultimeout : u32) -> windows_core::HRESULT); - CoCancelCall(core::mem::transmute(dwthreadid), core::mem::transmute(ultimeout)).ok() + CoCancelCall(dwthreadid, ultimeout).ok() } #[inline] pub unsafe fn CoCopyProxy(pproxy: P0) -> windows_core::Result @@ -109,7 +109,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoCreateInstance(rclsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, dwclscontext : CLSCTX, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CoCreateInstance(core::mem::transmute(rclsid), punkouter.param().abi(), core::mem::transmute(dwclscontext), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoCreateInstance(rclsid, punkouter.param().abi(), dwclscontext, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoCreateInstanceEx(clsid: *const windows_core::GUID, punkouter: P1, dwclsctx: CLSCTX, pserverinfo: Option<*const COSERVERINFO>, presults: &mut [MULTI_QI]) -> windows_core::Result<()> @@ -117,7 +117,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoCreateInstanceEx(clsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, dwclsctx : CLSCTX, pserverinfo : *const COSERVERINFO, dwcount : u32, presults : *mut MULTI_QI) -> windows_core::HRESULT); - CoCreateInstanceEx(core::mem::transmute(clsid), punkouter.param().abi(), core::mem::transmute(dwclsctx), core::mem::transmute(pserverinfo.unwrap_or(core::mem::zeroed())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoCreateInstanceEx(clsid, punkouter.param().abi(), dwclsctx, core::mem::transmute(pserverinfo.unwrap_or(core::mem::zeroed())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() } #[inline] pub unsafe fn CoCreateInstanceFromApp(clsid: *const windows_core::GUID, punkouter: P1, dwclsctx: CLSCTX, reserved: Option<*const core::ffi::c_void>, presults: &mut [MULTI_QI]) -> windows_core::Result<()> @@ -125,12 +125,12 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoCreateInstanceFromApp(clsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, dwclsctx : CLSCTX, reserved : *const core::ffi::c_void, dwcount : u32, presults : *mut MULTI_QI) -> windows_core::HRESULT); - CoCreateInstanceFromApp(core::mem::transmute(clsid), punkouter.param().abi(), core::mem::transmute(dwclsctx), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoCreateInstanceFromApp(clsid, punkouter.param().abi(), dwclsctx, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() } #[inline] pub unsafe fn CoDecrementMTAUsage(cookie: CO_MTA_USAGE_COOKIE) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoDecrementMTAUsage(cookie : CO_MTA_USAGE_COOKIE) -> windows_core::HRESULT); - CoDecrementMTAUsage(core::mem::transmute(cookie)).ok() + CoDecrementMTAUsage(cookie).ok() } #[inline] pub unsafe fn CoDisableCallCancellation(preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -140,7 +140,7 @@ pub unsafe fn CoDisableCallCancellation(preserved: Option<*const core::ffi::c_vo #[inline] pub unsafe fn CoDisconnectContext(dwtimeout: u32) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoDisconnectContext(dwtimeout : u32) -> windows_core::HRESULT); - CoDisconnectContext(core::mem::transmute(dwtimeout)).ok() + CoDisconnectContext(dwtimeout).ok() } #[inline] pub unsafe fn CoDisconnectObject(punk: P0, dwreserved: Option) -> windows_core::Result<()> @@ -153,7 +153,7 @@ where #[inline] pub unsafe fn CoDosDateTimeToFileTime(ndosdate: u16, ndostime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { windows_targets::link!("ole32.dll" "system" fn CoDosDateTimeToFileTime(ndosdate : u16, ndostime : u16, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - CoDosDateTimeToFileTime(core::mem::transmute(ndosdate), core::mem::transmute(ndostime), core::mem::transmute(lpfiletime)) + CoDosDateTimeToFileTime(ndosdate, ndostime, core::mem::transmute(lpfiletime)) } #[inline] pub unsafe fn CoEnableCallCancellation(preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -169,7 +169,7 @@ pub unsafe fn CoFileTimeNow() -> windows_core::Result super::super::Foundation::BOOL { windows_targets::link!("ole32.dll" "system" fn CoFileTimeToDosDateTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpdosdate : *mut u16, lpdostime : *mut u16) -> super::super::Foundation:: BOOL); - CoFileTimeToDosDateTime(core::mem::transmute(lpfiletime), core::mem::transmute(lpdosdate), core::mem::transmute(lpdostime)) + CoFileTimeToDosDateTime(lpfiletime, core::mem::transmute(lpdosdate), core::mem::transmute(lpdostime)) } #[inline] pub unsafe fn CoFreeAllLibraries() { @@ -179,7 +179,7 @@ pub unsafe fn CoFreeAllLibraries() { #[inline] pub unsafe fn CoFreeLibrary(hinst: super::super::Foundation::HINSTANCE) { windows_targets::link!("ole32.dll" "system" fn CoFreeLibrary(hinst : super::super::Foundation:: HINSTANCE)); - CoFreeLibrary(core::mem::transmute(hinst)) + CoFreeLibrary(hinst) } #[inline] pub unsafe fn CoFreeUnusedLibraries() { @@ -189,7 +189,7 @@ pub unsafe fn CoFreeUnusedLibraries() { #[inline] pub unsafe fn CoFreeUnusedLibrariesEx(dwunloaddelay: u32, dwreserved: Option) { windows_targets::link!("ole32.dll" "system" fn CoFreeUnusedLibrariesEx(dwunloaddelay : u32, dwreserved : u32)); - CoFreeUnusedLibrariesEx(core::mem::transmute(dwunloaddelay), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) + CoFreeUnusedLibrariesEx(dwunloaddelay, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CoGetApartmentType(papttype: *mut APTTYPE, paptqualifier: *mut APTTYPEQUALIFIER) -> windows_core::Result<()> { @@ -218,7 +218,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoGetCancelObject(dwthreadid : u32, iid : *const windows_core::GUID, ppunk : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CoGetCancelObject(core::mem::transmute(dwthreadid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetCancelObject(dwthreadid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoGetClassObject(rclsid: *const windows_core::GUID, dwclscontext: CLSCTX, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result @@ -227,7 +227,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoGetClassObject(rclsid : *const windows_core::GUID, dwclscontext : u32, pvreserved : *const core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CoGetClassObject(core::mem::transmute(rclsid), dwclscontext.0 as _, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetClassObject(rclsid, dwclscontext.0 as _, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoGetContextToken() -> windows_core::Result { @@ -250,7 +250,7 @@ pub unsafe fn CoGetCurrentProcess() -> u32 { pub unsafe fn CoGetMalloc(dwmemcontext: u32) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CoGetMalloc(dwmemcontext : u32, ppmalloc : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoGetMalloc(core::mem::transmute(dwmemcontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetMalloc(dwmemcontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoGetObject(pszname: P0, pbindoptions: Option<*const BIND_OPTS>) -> windows_core::Result @@ -275,18 +275,18 @@ where pub unsafe fn CoGetPSClsid(riid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CoGetPSClsid(riid : *const windows_core::GUID, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoGetPSClsid(core::mem::transmute(riid), &mut result__).map(|| core::mem::transmute(result__)) + CoGetPSClsid(riid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CoGetSystemSecurityPermissions(comsdtype: COMSD, ppsd: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoGetSystemSecurityPermissions(comsdtype : COMSD, ppsd : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> windows_core::HRESULT); - CoGetSystemSecurityPermissions(core::mem::transmute(comsdtype), core::mem::transmute(ppsd)).ok() + CoGetSystemSecurityPermissions(comsdtype, core::mem::transmute(ppsd)).ok() } #[inline] pub unsafe fn CoGetTreatAsClass(clsidold: *const windows_core::GUID, pclsidnew: *mut windows_core::GUID) -> windows_core::HRESULT { windows_targets::link!("ole32.dll" "system" fn CoGetTreatAsClass(clsidold : *const windows_core::GUID, pclsidnew : *mut windows_core::GUID) -> windows_core::HRESULT); - CoGetTreatAsClass(core::mem::transmute(clsidold), core::mem::transmute(pclsidnew)) + CoGetTreatAsClass(clsidold, core::mem::transmute(pclsidnew)) } #[inline] pub unsafe fn CoImpersonateClient() -> windows_core::Result<()> { @@ -313,7 +313,7 @@ pub unsafe fn CoInitializeEx(pvreserved: Option<*const core::ffi::c_void>, dwcoi #[inline] pub unsafe fn CoInitializeSecurity(psecdesc: Option, cauthsvc: i32, asauthsvc: Option<*const SOLE_AUTHENTICATION_SERVICE>, preserved1: Option<*const core::ffi::c_void>, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthlist: Option<*const core::ffi::c_void>, dwcapabilities: EOLE_AUTHENTICATION_CAPABILITIES, preserved3: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoInitializeSecurity(psecdesc : super::super::Security:: PSECURITY_DESCRIPTOR, cauthsvc : i32, asauthsvc : *const SOLE_AUTHENTICATION_SERVICE, preserved1 : *const core::ffi::c_void, dwauthnlevel : RPC_C_AUTHN_LEVEL, dwimplevel : RPC_C_IMP_LEVEL, pauthlist : *const core::ffi::c_void, dwcapabilities : u32, preserved3 : *const core::ffi::c_void) -> windows_core::HRESULT); - CoInitializeSecurity(core::mem::transmute(psecdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(cauthsvc), core::mem::transmute(asauthsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwauthnlevel), core::mem::transmute(dwimplevel), core::mem::transmute(pauthlist.unwrap_or(core::mem::zeroed())), dwcapabilities.0 as _, core::mem::transmute(preserved3.unwrap_or(core::mem::zeroed()))).ok() + CoInitializeSecurity(core::mem::transmute(psecdesc.unwrap_or(core::mem::zeroed())), cauthsvc, core::mem::transmute(asauthsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved1.unwrap_or(core::mem::zeroed())), dwauthnlevel, dwimplevel, core::mem::transmute(pauthlist.unwrap_or(core::mem::zeroed())), dwcapabilities.0 as _, core::mem::transmute(preserved3.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CoInstall(pbc: P0, dwflags: u32, pclassspec: *const uCLSSPEC, pquery: *const QUERYCONTEXT, pszcodebase: P4) -> windows_core::Result<()> @@ -322,7 +322,7 @@ where P4: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoInstall(pbc : * mut core::ffi::c_void, dwflags : u32, pclassspec : *const uCLSSPEC, pquery : *const QUERYCONTEXT, pszcodebase : windows_core::PCWSTR) -> windows_core::HRESULT); - CoInstall(pbc.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pclassspec), core::mem::transmute(pquery), pszcodebase.param().abi()).ok() + CoInstall(pbc.param().abi(), dwflags, pclassspec, pquery, pszcodebase.param().abi()).ok() } #[inline] pub unsafe fn CoInvalidateRemoteMachineBindings(pszmachinename: P0) -> windows_core::Result<()> @@ -343,7 +343,7 @@ where #[inline] pub unsafe fn CoIsOle1Class(rclsid: *const windows_core::GUID) -> super::super::Foundation::BOOL { windows_targets::link!("ole32.dll" "system" fn CoIsOle1Class(rclsid : *const windows_core::GUID) -> super::super::Foundation:: BOOL); - CoIsOle1Class(core::mem::transmute(rclsid)) + CoIsOle1Class(rclsid) } #[inline] pub unsafe fn CoLoadLibrary(lpszlibname: P0, bautofree: bool) -> super::super::Foundation::HINSTANCE @@ -403,7 +403,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterChannelHook(extensionuuid : *const windows_core::GUID, pchannelhook : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoRegisterChannelHook(core::mem::transmute(extensionuuid), pchannelhook.param().abi()).ok() + CoRegisterChannelHook(extensionuuid, pchannelhook.param().abi()).ok() } #[inline] pub unsafe fn CoRegisterClassObject(rclsid: *const windows_core::GUID, punk: P1, dwclscontext: CLSCTX, flags: REGCLS) -> windows_core::Result @@ -412,7 +412,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CoRegisterClassObject(rclsid : *const windows_core::GUID, punk : * mut core::ffi::c_void, dwclscontext : CLSCTX, flags : u32, lpdwregister : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoRegisterClassObject(core::mem::transmute(rclsid), punk.param().abi(), core::mem::transmute(dwclscontext), flags.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + CoRegisterClassObject(rclsid, punk.param().abi(), dwclscontext, flags.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CoRegisterDeviceCatalog(deviceinstanceid: P0) -> windows_core::Result @@ -443,7 +443,7 @@ where #[inline] pub unsafe fn CoRegisterPSClsid(riid: *const windows_core::GUID, rclsid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoRegisterPSClsid(riid : *const windows_core::GUID, rclsid : *const windows_core::GUID) -> windows_core::HRESULT); - CoRegisterPSClsid(core::mem::transmute(riid), core::mem::transmute(rclsid)).ok() + CoRegisterPSClsid(riid, rclsid).ok() } #[inline] pub unsafe fn CoRegisterSurrogate(psurrogate: P0) -> windows_core::Result<()> @@ -471,17 +471,17 @@ pub unsafe fn CoRevertToSelf() -> windows_core::Result<()> { #[inline] pub unsafe fn CoRevokeClassObject(dwregister: u32) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoRevokeClassObject(dwregister : u32) -> windows_core::HRESULT); - CoRevokeClassObject(core::mem::transmute(dwregister)).ok() + CoRevokeClassObject(dwregister).ok() } #[inline] pub unsafe fn CoRevokeDeviceCatalog(cookie: CO_DEVICE_CATALOG_COOKIE) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoRevokeDeviceCatalog(cookie : CO_DEVICE_CATALOG_COOKIE) -> windows_core::HRESULT); - CoRevokeDeviceCatalog(core::mem::transmute(cookie)).ok() + CoRevokeDeviceCatalog(cookie).ok() } #[inline] pub unsafe fn CoRevokeInitializeSpy(ulicookie: u64) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoRevokeInitializeSpy(ulicookie : u64) -> windows_core::HRESULT); - CoRevokeInitializeSpy(core::mem::transmute(ulicookie)).ok() + CoRevokeInitializeSpy(ulicookie).ok() } #[inline] pub unsafe fn CoRevokeMallocSpy() -> windows_core::Result<()> { @@ -503,7 +503,7 @@ where P3: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoSetProxyBlanket(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); - CoSetProxyBlanket(pproxy.param().abi(), core::mem::transmute(dwauthnsvc), core::mem::transmute(dwauthzsvc), pserverprincname.param().abi(), core::mem::transmute(dwauthnlevel), core::mem::transmute(dwimplevel), core::mem::transmute(pauthinfo.unwrap_or(core::mem::zeroed())), dwcapabilities.0 as _).ok() + CoSetProxyBlanket(pproxy.param().abi(), dwauthnsvc, dwauthzsvc, pserverprincname.param().abi(), dwauthnlevel, dwimplevel, core::mem::transmute(pauthinfo.unwrap_or(core::mem::zeroed())), dwcapabilities.0 as _).ok() } #[inline] pub unsafe fn CoSuspendClassObjects() -> windows_core::Result<()> { @@ -522,7 +522,7 @@ where #[inline] pub unsafe fn CoTaskMemAlloc(cb: usize) -> *mut core::ffi::c_void { windows_targets::link!("ole32.dll" "system" fn CoTaskMemAlloc(cb : usize) -> *mut core::ffi::c_void); - CoTaskMemAlloc(core::mem::transmute(cb)) + CoTaskMemAlloc(cb) } #[inline] pub unsafe fn CoTaskMemFree(pv: Option<*const core::ffi::c_void>) { @@ -532,7 +532,7 @@ pub unsafe fn CoTaskMemFree(pv: Option<*const core::ffi::c_void>) { #[inline] pub unsafe fn CoTaskMemRealloc(pv: Option<*const core::ffi::c_void>, cb: usize) -> *mut core::ffi::c_void { windows_targets::link!("ole32.dll" "system" fn CoTaskMemRealloc(pv : *const core::ffi::c_void, cb : usize) -> *mut core::ffi::c_void); - CoTaskMemRealloc(core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(cb)) + CoTaskMemRealloc(core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), cb) } #[inline] pub unsafe fn CoTestCancel() -> windows_core::Result<()> { @@ -542,7 +542,7 @@ pub unsafe fn CoTestCancel() -> windows_core::Result<()> { #[inline] pub unsafe fn CoTreatAsClass(clsidold: *const windows_core::GUID, clsidnew: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoTreatAsClass(clsidold : *const windows_core::GUID, clsidnew : *const windows_core::GUID) -> windows_core::HRESULT); - CoTreatAsClass(core::mem::transmute(clsidold), core::mem::transmute(clsidnew)).ok() + CoTreatAsClass(clsidold, clsidnew).ok() } #[inline] pub unsafe fn CoUninitialize() { @@ -553,13 +553,13 @@ pub unsafe fn CoUninitialize() { pub unsafe fn CoWaitForMultipleHandles(dwflags: u32, dwtimeout: u32, phandles: &[super::super::Foundation::HANDLE]) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CoWaitForMultipleHandles(dwflags : u32, dwtimeout : u32, chandles : u32, phandles : *const super::super::Foundation:: HANDLE, lpdwindex : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoWaitForMultipleHandles(core::mem::transmute(dwflags), core::mem::transmute(dwtimeout), phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + CoWaitForMultipleHandles(dwflags, dwtimeout, phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CoWaitForMultipleObjects(dwflags: u32, dwtimeout: u32, phandles: &[super::super::Foundation::HANDLE]) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CoWaitForMultipleObjects(dwflags : u32, dwtimeout : u32, chandles : u32, phandles : *const super::super::Foundation:: HANDLE, lpdwindex : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoWaitForMultipleObjects(core::mem::transmute(dwflags), core::mem::transmute(dwtimeout), phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + CoWaitForMultipleObjects(dwflags, dwtimeout, phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CreateAntiMoniker() -> windows_core::Result { @@ -571,13 +571,13 @@ pub unsafe fn CreateAntiMoniker() -> windows_core::Result { pub unsafe fn CreateBindCtx(reserved: u32) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CreateBindCtx(reserved : u32, ppbc : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateBindCtx(core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateBindCtx(reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateClassMoniker(rclsid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CreateClassMoniker(rclsid : *const windows_core::GUID, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateClassMoniker(core::mem::transmute(rclsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateClassMoniker(rclsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateDataAdviseHolder() -> windows_core::Result { @@ -593,7 +593,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CreateDataCache(punkouter : * mut core::ffi::c_void, rclsid : *const windows_core::GUID, iid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CreateDataCache(punkouter.param().abi(), core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDataCache(punkouter.param().abi(), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateFileMoniker(lpszpathname: P0) -> windows_core::Result @@ -621,7 +621,7 @@ where { windows_targets::link!("urlmon.dll" "system" fn CreateIUriBuilder(piuri : * mut core::ffi::c_void, dwflags : u32, dwreserved : usize, ppiuribuilder : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateIUriBuilder(piuri.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateIUriBuilder(piuri.param().abi(), dwflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateItemMoniker(lpszdelim: P0, lpszitem: P1) -> windows_core::Result @@ -659,7 +659,7 @@ where { windows_targets::link!("ole32.dll" "system" fn CreateStdProgressIndicator(hwndparent : super::super::Foundation:: HWND, psztitle : windows_core::PCWSTR, pibsccaller : * mut core::ffi::c_void, ppibsc : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateStdProgressIndicator(core::mem::transmute(hwndparent), psztitle.param().abi(), pibsccaller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateStdProgressIndicator(hwndparent, psztitle.param().abi(), pibsccaller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateUri(pwzuri: P0, dwflags: URI_CREATE_FLAGS, dwreserved: Option) -> windows_core::Result @@ -668,7 +668,7 @@ where { windows_targets::link!("urlmon.dll" "system" fn CreateUri(pwzuri : windows_core::PCWSTR, dwflags : URI_CREATE_FLAGS, dwreserved : usize, ppuri : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateUri(pwzuri.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateUri(pwzuri.param().abi(), dwflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateUriFromMultiByteString(pszansiinputuri: P0, dwencodingflags: u32, dwcodepage: u32, dwcreateflags: u32, dwreserved: Option) -> windows_core::Result @@ -677,7 +677,7 @@ where { windows_targets::link!("urlmon.dll" "system" fn CreateUriFromMultiByteString(pszansiinputuri : windows_core::PCSTR, dwencodingflags : u32, dwcodepage : u32, dwcreateflags : u32, dwreserved : usize, ppuri : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateUriFromMultiByteString(pszansiinputuri.param().abi(), core::mem::transmute(dwencodingflags), core::mem::transmute(dwcodepage), core::mem::transmute(dwcreateflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateUriFromMultiByteString(pszansiinputuri.param().abi(), dwencodingflags, dwcodepage, dwcreateflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateUriWithFragment(pwzuri: P0, pwzfragment: P1, dwflags: u32, dwreserved: Option) -> windows_core::Result @@ -687,12 +687,12 @@ where { windows_targets::link!("urlmon.dll" "system" fn CreateUriWithFragment(pwzuri : windows_core::PCWSTR, pwzfragment : windows_core::PCWSTR, dwflags : u32, dwreserved : usize, ppuri : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateUriWithFragment(pwzuri.param().abi(), pwzfragment.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateUriWithFragment(pwzuri.param().abi(), pwzfragment.param().abi(), dwflags, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn DcomChannelSetHResult(pvreserved: Option<*const core::ffi::c_void>, pulreserved: Option<*const u32>, appshr: windows_core::HRESULT) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn DcomChannelSetHResult(pvreserved : *const core::ffi::c_void, pulreserved : *const u32, appshr : windows_core::HRESULT) -> windows_core::HRESULT); - DcomChannelSetHResult(core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(appshr)).ok() + DcomChannelSetHResult(core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulreserved.unwrap_or(core::mem::zeroed())), appshr).ok() } #[inline] pub unsafe fn GetClassFile(szfilename: P0) -> windows_core::Result @@ -707,13 +707,13 @@ where pub unsafe fn GetErrorInfo(dwreserved: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn GetErrorInfo(dwreserved : u32, pperrinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetErrorInfo(core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + GetErrorInfo(dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn GetRunningObjectTable(reserved: u32) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn GetRunningObjectTable(reserved : u32, pprot : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetRunningObjectTable(core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + GetRunningObjectTable(reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn IIDFromString(lpsz: P0) -> windows_core::Result @@ -756,7 +756,7 @@ where pub unsafe fn ProgIDFromCLSID(clsid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn ProgIDFromCLSID(clsid : *const windows_core::GUID, lplpszprogid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ProgIDFromCLSID(core::mem::transmute(clsid), &mut result__).map(|| core::mem::transmute(result__)) + ProgIDFromCLSID(clsid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SetErrorInfo(dwreserved: u32, perrinfo: P1) -> windows_core::Result<()> @@ -764,24 +764,24 @@ where P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SetErrorInfo(dwreserved : u32, perrinfo : * mut core::ffi::c_void) -> windows_core::HRESULT); - SetErrorInfo(core::mem::transmute(dwreserved), perrinfo.param().abi()).ok() + SetErrorInfo(dwreserved, perrinfo.param().abi()).ok() } #[inline] pub unsafe fn StringFromCLSID(rclsid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn StringFromCLSID(rclsid : *const windows_core::GUID, lplpsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StringFromCLSID(core::mem::transmute(rclsid), &mut result__).map(|| core::mem::transmute(result__)) + StringFromCLSID(rclsid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn StringFromGUID2(rguid: *const windows_core::GUID, lpsz: &mut [u16]) -> i32 { windows_targets::link!("ole32.dll" "system" fn StringFromGUID2(rguid : *const windows_core::GUID, lpsz : windows_core::PWSTR, cchmax : i32) -> i32); - StringFromGUID2(core::mem::transmute(rguid), core::mem::transmute(lpsz.as_ptr()), lpsz.len().try_into().unwrap()) + StringFromGUID2(rguid, core::mem::transmute(lpsz.as_ptr()), lpsz.len().try_into().unwrap()) } #[inline] pub unsafe fn StringFromIID(rclsid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn StringFromIID(rclsid : *const windows_core::GUID, lplpsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - StringFromIID(core::mem::transmute(rclsid), &mut result__).map(|| core::mem::transmute(result__)) + StringFromIID(rclsid, &mut result__).map(|| core::mem::transmute(result__)) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -884,13 +884,13 @@ windows_core::imp::interface_hierarchy!(AsyncIAdviseSink, windows_core::IUnknown impl AsyncIAdviseSink { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn Begin_OnDataChange(&self, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) { - (windows_core::Interface::vtable(self).Begin_OnDataChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(pstgmed)) + (windows_core::Interface::vtable(self).Begin_OnDataChange)(windows_core::Interface::as_raw(self), pformatetc, core::mem::transmute(pstgmed)) } pub unsafe fn Finish_OnDataChange(&self) { (windows_core::Interface::vtable(self).Finish_OnDataChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn Begin_OnViewChange(&self, dwaspect: u32, lindex: i32) { - (windows_core::Interface::vtable(self).Begin_OnViewChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(lindex)) + (windows_core::Interface::vtable(self).Begin_OnViewChange)(windows_core::Interface::as_raw(self), dwaspect, lindex) } pub unsafe fn Finish_OnViewChange(&self) { (windows_core::Interface::vtable(self).Finish_OnViewChange)(windows_core::Interface::as_raw(self)) @@ -1108,7 +1108,7 @@ windows_core::imp::define_interface!(AsyncIPipeByte, AsyncIPipeByte_Vtbl, 0xdb2f windows_core::imp::interface_hierarchy!(AsyncIPipeByte, windows_core::IUnknown); impl AsyncIPipeByte { pub unsafe fn Begin_Pull(&self, crequest: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(crequest)).ok() + (windows_core::Interface::vtable(self).Begin_Pull)(windows_core::Interface::as_raw(self), crequest).ok() } pub unsafe fn Finish_Pull(&self, buf: *mut u8, pcreturned: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(buf), core::mem::transmute(pcreturned)).ok() @@ -1169,7 +1169,7 @@ windows_core::imp::define_interface!(AsyncIPipeDouble, AsyncIPipeDouble_Vtbl, 0x windows_core::imp::interface_hierarchy!(AsyncIPipeDouble, windows_core::IUnknown); impl AsyncIPipeDouble { pub unsafe fn Begin_Pull(&self, crequest: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(crequest)).ok() + (windows_core::Interface::vtable(self).Begin_Pull)(windows_core::Interface::as_raw(self), crequest).ok() } pub unsafe fn Finish_Pull(&self, buf: *mut f64, pcreturned: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(buf), core::mem::transmute(pcreturned)).ok() @@ -1230,7 +1230,7 @@ windows_core::imp::define_interface!(AsyncIPipeLong, AsyncIPipeLong_Vtbl, 0xdb2f windows_core::imp::interface_hierarchy!(AsyncIPipeLong, windows_core::IUnknown); impl AsyncIPipeLong { pub unsafe fn Begin_Pull(&self, crequest: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(crequest)).ok() + (windows_core::Interface::vtable(self).Begin_Pull)(windows_core::Interface::as_raw(self), crequest).ok() } pub unsafe fn Finish_Pull(&self, buf: *mut i32, pcreturned: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(buf), core::mem::transmute(pcreturned)).ok() @@ -1291,7 +1291,7 @@ windows_core::imp::define_interface!(AsyncIUnknown, AsyncIUnknown_Vtbl, 0x000e00 windows_core::imp::interface_hierarchy!(AsyncIUnknown, windows_core::IUnknown); impl AsyncIUnknown { pub unsafe fn Begin_QueryInterface(&self, riid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_QueryInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).Begin_QueryInterface)(windows_core::Interface::as_raw(self), riid).ok() } pub unsafe fn Finish_QueryInterface(&self, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_QueryInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(ppvobject)).ok() @@ -2355,7 +2355,7 @@ windows_core::imp::interface_hierarchy!(IActivationFilter, windows_core::IUnknow impl IActivationFilter { pub unsafe fn HandleActivation(&self, dwactivationtype: u32, rclsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HandleActivation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwactivationtype), core::mem::transmute(rclsid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HandleActivation)(windows_core::Interface::as_raw(self), dwactivationtype, rclsid, &mut result__).map(|| result__) } } #[repr(C)] @@ -2389,7 +2389,7 @@ windows_core::imp::define_interface!(IAddrExclusionControl, IAddrExclusionContro windows_core::imp::interface_hierarchy!(IAddrExclusionControl, windows_core::IUnknown); impl IAddrExclusionControl { pub unsafe fn GetCurrentAddrExclusionList(&self, riid: *const windows_core::GUID, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCurrentAddrExclusionList)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppenumerator)).ok() + (windows_core::Interface::vtable(self).GetCurrentAddrExclusionList)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppenumerator)).ok() } pub unsafe fn UpdateAddrExclusionList(&self, penumerator: P0) -> windows_core::Result<()> where @@ -2475,10 +2475,10 @@ windows_core::imp::interface_hierarchy!(IAdviseSink, windows_core::IUnknown); impl IAdviseSink { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn OnDataChange(&self, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) { - (windows_core::Interface::vtable(self).OnDataChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(pstgmed)) + (windows_core::Interface::vtable(self).OnDataChange)(windows_core::Interface::as_raw(self), pformatetc, core::mem::transmute(pstgmed)) } pub unsafe fn OnViewChange(&self, dwaspect: u32, lindex: i32) { - (windows_core::Interface::vtable(self).OnViewChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(lindex)) + (windows_core::Interface::vtable(self).OnViewChange)(windows_core::Interface::as_raw(self), dwaspect, lindex) } pub unsafe fn OnRename(&self, pmk: P0) where @@ -2611,10 +2611,10 @@ windows_core::imp::define_interface!(IAsyncManager, IAsyncManager_Vtbl, 0x000000 windows_core::imp::interface_hierarchy!(IAsyncManager, windows_core::IUnknown); impl IAsyncManager { pub unsafe fn CompleteCall(&self, result: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompleteCall)(windows_core::Interface::as_raw(self), core::mem::transmute(result)).ok() + (windows_core::Interface::vtable(self).CompleteCall)(windows_core::Interface::as_raw(self), result).ok() } pub unsafe fn GetCallContext(&self, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCallContext)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(pinterface)).ok() + (windows_core::Interface::vtable(self).GetCallContext)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(pinterface)).ok() } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2684,7 +2684,7 @@ impl IAsyncRpcChannelBuffer { (windows_core::Interface::vtable(self).Receive)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(pulstatus)).ok() } pub unsafe fn GetDestCtxEx(&self, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDestCtxEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(pdwdestcontext), core::mem::transmute(ppvdestcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDestCtxEx)(windows_core::Interface::as_raw(self), pmsg, core::mem::transmute(pdwdestcontext), core::mem::transmute(ppvdestcontext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -2763,7 +2763,7 @@ impl core::ops::Deref for IAuthenticateEx { windows_core::imp::interface_hierarchy!(IAuthenticateEx, windows_core::IUnknown, IAuthenticate); impl IAuthenticateEx { pub unsafe fn AuthenticateEx(&self, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut windows_core::PWSTR, pszpassword: *mut windows_core::PWSTR, pauthinfo: *const AUTHENTICATEINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AuthenticateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(phwnd), core::mem::transmute(pszusername), core::mem::transmute(pszpassword), core::mem::transmute(pauthinfo)).ok() + (windows_core::Interface::vtable(self).AuthenticateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(phwnd), core::mem::transmute(pszusername), core::mem::transmute(pszpassword), pauthinfo).ok() } } #[repr(C)] @@ -2806,7 +2806,7 @@ impl IBindCtx { (windows_core::Interface::vtable(self).ReleaseBoundObjects)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetBindOptions(&self, pbindopts: *const BIND_OPTS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBindOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(pbindopts)).ok() + (windows_core::Interface::vtable(self).SetBindOptions)(windows_core::Interface::as_raw(self), pbindopts).ok() } pub unsafe fn GetBindOptions(&self, pbindopts: *mut BIND_OPTS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBindOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(pbindopts)).ok() @@ -2953,7 +2953,7 @@ impl IBindHost { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMoniker)(windows_core::Interface::as_raw(self), szname.param().abi(), pbc.param().abi(), core::mem::transmute(ppmk), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).CreateMoniker)(windows_core::Interface::as_raw(self), szname.param().abi(), pbc.param().abi(), core::mem::transmute(ppmk), dwreserved).ok() } pub unsafe fn MonikerBindToStorage(&self, pmk: P0, pbc: P1, pbsc: P2, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where @@ -2961,7 +2961,7 @@ impl IBindHost { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MonikerBindToStorage)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), pbsc.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvobj)).ok() + (windows_core::Interface::vtable(self).MonikerBindToStorage)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), pbsc.param().abi(), riid, core::mem::transmute(ppvobj)).ok() } pub unsafe fn MonikerBindToObject(&self, pmk: P0, pbc: P1, pbsc: P2, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where @@ -2969,7 +2969,7 @@ impl IBindHost { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MonikerBindToObject)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), pbsc.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvobj)).ok() + (windows_core::Interface::vtable(self).MonikerBindToObject)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), pbsc.param().abi(), riid, core::mem::transmute(ppvobj)).ok() } } #[repr(C)] @@ -3017,26 +3017,26 @@ impl IBindStatusCallback { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStartBinding)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), pib.param().abi()).ok() + (windows_core::Interface::vtable(self).OnStartBinding)(windows_core::Interface::as_raw(self), dwreserved, pib.param().abi()).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OnLowResource(&self, reserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLowResource)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved)).ok() + (windows_core::Interface::vtable(self).OnLowResource)(windows_core::Interface::as_raw(self), reserved).ok() } pub unsafe fn OnProgress(&self, ulprogress: u32, ulprogressmax: u32, ulstatuscode: u32, szstatustext: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ulprogress), core::mem::transmute(ulprogressmax), core::mem::transmute(ulstatuscode), szstatustext.param().abi()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), ulprogress, ulprogressmax, ulstatuscode, szstatustext.param().abi()).ok() } pub unsafe fn OnStopBinding(&self, hresult: windows_core::HRESULT, szerror: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStopBinding)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), szerror.param().abi()).ok() + (windows_core::Interface::vtable(self).OnStopBinding)(windows_core::Interface::as_raw(self), hresult, szerror.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn GetBindInfo(&self, grfbindf: *mut u32, pbindinfo: *mut BINDINFO) -> windows_core::Result<()> { @@ -3044,13 +3044,13 @@ impl IBindStatusCallback { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn OnDataAvailable(&self, grfbscf: u32, dwsize: u32, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDataAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(grfbscf), core::mem::transmute(dwsize), core::mem::transmute(pformatetc), core::mem::transmute(pstgmed)).ok() + (windows_core::Interface::vtable(self).OnDataAvailable)(windows_core::Interface::as_raw(self), grfbscf, dwsize, pformatetc, core::mem::transmute(pstgmed)).ok() } pub unsafe fn OnObjectAvailable(&self, riid: *const windows_core::GUID, punk: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnObjectAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).OnObjectAvailable)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } } #[repr(C)] @@ -3195,7 +3195,7 @@ impl IBinding { (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetPriority(&self, npriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(npriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), npriority).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3274,7 +3274,7 @@ windows_core::imp::define_interface!(IBlockingLock, IBlockingLock_Vtbl, 0x30f3d4 windows_core::imp::interface_hierarchy!(IBlockingLock, windows_core::IUnknown); impl IBlockingLock { pub unsafe fn Lock(&self, dwtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeout)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), dwtimeout).ok() } pub unsafe fn Unlock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self)).ok() @@ -3315,7 +3315,7 @@ impl ICallFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), pctrlunk.param().abi(), core::mem::transmute(riid2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), riid, pctrlunk.param().abi(), riid2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3349,7 +3349,7 @@ windows_core::imp::define_interface!(ICancelMethodCalls, ICancelMethodCalls_Vtbl windows_core::imp::interface_hierarchy!(ICancelMethodCalls, windows_core::IUnknown); impl ICancelMethodCalls { pub unsafe fn Cancel(&self, ulseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), core::mem::transmute(ulseconds)).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), ulseconds).ok() } pub unsafe fn TestCancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TestCancel)(windows_core::Interface::as_raw(self)).ok() @@ -3387,26 +3387,26 @@ windows_core::imp::interface_hierarchy!(ICatInformation, windows_core::IUnknown) impl ICatInformation { pub unsafe fn EnumCategories(&self, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCategories)(windows_core::Interface::as_raw(self), lcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCategoryDesc(&self, rcatid: *const windows_core::GUID, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCategoryDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(rcatid), core::mem::transmute(lcid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCategoryDesc)(windows_core::Interface::as_raw(self), rcatid, lcid, &mut result__).map(|| result__) } pub unsafe fn EnumClassesOfCategories(&self, rgcatidimpl: &[windows_core::GUID], rgcatidreq: &[windows_core::GUID]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnumClassesOfCategories)(windows_core::Interface::as_raw(self), rgcatidimpl.len().try_into().unwrap(), core::mem::transmute(rgcatidimpl.as_ptr()), rgcatidreq.len().try_into().unwrap(), core::mem::transmute(rgcatidreq.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsClassOfCategories(&self, rclsid: *const windows_core::GUID, rgcatidimpl: &[windows_core::GUID], rgcatidreq: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsClassOfCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), rgcatidimpl.len().try_into().unwrap(), core::mem::transmute(rgcatidimpl.as_ptr()), rgcatidreq.len().try_into().unwrap(), core::mem::transmute(rgcatidreq.as_ptr())).ok() + (windows_core::Interface::vtable(self).IsClassOfCategories)(windows_core::Interface::as_raw(self), rclsid, rgcatidimpl.len().try_into().unwrap(), core::mem::transmute(rgcatidimpl.as_ptr()), rgcatidreq.len().try_into().unwrap(), core::mem::transmute(rgcatidreq.as_ptr())).ok() } pub unsafe fn EnumImplCategoriesOfClass(&self, rclsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumImplCategoriesOfClass)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumImplCategoriesOfClass)(windows_core::Interface::as_raw(self), rclsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumReqCategoriesOfClass(&self, rclsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumReqCategoriesOfClass)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumReqCategoriesOfClass)(windows_core::Interface::as_raw(self), rclsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3508,16 +3508,16 @@ impl ICatRegister { (windows_core::Interface::vtable(self).UnRegisterCategories)(windows_core::Interface::as_raw(self), rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() } pub unsafe fn RegisterClassImplCategories(&self, rclsid: *const windows_core::GUID, rgcatid: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterClassImplCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() + (windows_core::Interface::vtable(self).RegisterClassImplCategories)(windows_core::Interface::as_raw(self), rclsid, rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() } pub unsafe fn UnRegisterClassImplCategories(&self, rclsid: *const windows_core::GUID, rgcatid: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnRegisterClassImplCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() + (windows_core::Interface::vtable(self).UnRegisterClassImplCategories)(windows_core::Interface::as_raw(self), rclsid, rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() } pub unsafe fn RegisterClassReqCategories(&self, rclsid: *const windows_core::GUID, rgcatid: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterClassReqCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() + (windows_core::Interface::vtable(self).RegisterClassReqCategories)(windows_core::Interface::as_raw(self), rclsid, rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() } pub unsafe fn UnRegisterClassReqCategories(&self, rclsid: *const windows_core::GUID, rgcatid: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnRegisterClassReqCategories)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() + (windows_core::Interface::vtable(self).UnRegisterClassReqCategories)(windows_core::Interface::as_raw(self), rclsid, rgcatid.len().try_into().unwrap(), core::mem::transmute(rgcatid.as_ptr())).ok() } } #[repr(C)] @@ -3584,25 +3584,25 @@ windows_core::imp::interface_hierarchy!(IChannelHook, windows_core::IUnknown); impl IChannelHook { pub unsafe fn ClientGetSize(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID) -> u32 { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ClientGetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(uextent), core::mem::transmute(riid), &mut result__); + (windows_core::Interface::vtable(self).ClientGetSize)(windows_core::Interface::as_raw(self), uextent, riid, &mut result__); result__ } pub unsafe fn ClientFillBuffer(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void) { - (windows_core::Interface::vtable(self).ClientFillBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(uextent), core::mem::transmute(riid), core::mem::transmute(pdatasize), core::mem::transmute(pdatabuffer)) + (windows_core::Interface::vtable(self).ClientFillBuffer)(windows_core::Interface::as_raw(self), uextent, riid, core::mem::transmute(pdatasize), pdatabuffer) } pub unsafe 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) { - (windows_core::Interface::vtable(self).ClientNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(uextent), core::mem::transmute(riid), core::mem::transmute(cbdatasize), core::mem::transmute(pdatabuffer), core::mem::transmute(ldatarep), core::mem::transmute(hrfault)) + (windows_core::Interface::vtable(self).ClientNotify)(windows_core::Interface::as_raw(self), uextent, riid, cbdatasize, pdatabuffer, ldatarep, hrfault) } pub unsafe fn ServerNotify(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, cbdatasize: u32, pdatabuffer: *const core::ffi::c_void, ldatarep: u32) { - (windows_core::Interface::vtable(self).ServerNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(uextent), core::mem::transmute(riid), core::mem::transmute(cbdatasize), core::mem::transmute(pdatabuffer), core::mem::transmute(ldatarep)) + (windows_core::Interface::vtable(self).ServerNotify)(windows_core::Interface::as_raw(self), uextent, riid, cbdatasize, pdatabuffer, ldatarep) } pub unsafe fn ServerGetSize(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, hrfault: windows_core::HRESULT) -> u32 { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ServerGetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(uextent), core::mem::transmute(riid), core::mem::transmute(hrfault), &mut result__); + (windows_core::Interface::vtable(self).ServerGetSize)(windows_core::Interface::as_raw(self), uextent, riid, hrfault, &mut result__); result__ } pub unsafe fn ServerFillBuffer(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void, hrfault: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).ServerFillBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(uextent), core::mem::transmute(riid), core::mem::transmute(pdatasize), core::mem::transmute(pdatabuffer), core::mem::transmute(hrfault)) + (windows_core::Interface::vtable(self).ServerFillBuffer)(windows_core::Interface::as_raw(self), uextent, riid, core::mem::transmute(pdatasize), pdatabuffer, hrfault) } } #[repr(C)] @@ -3672,7 +3672,7 @@ impl IClassActivator { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetClassObject)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(dwclasscontext), core::mem::transmute(locale), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetClassObject)(windows_core::Interface::as_raw(self), rclsid, dwclasscontext, locale, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3756,7 +3756,7 @@ impl IClientSecurity { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlanket)(windows_core::Interface::as_raw(self), pproxy.param().abi(), core::mem::transmute(dwauthnsvc), core::mem::transmute(dwauthzsvc), pserverprincname.param().abi(), core::mem::transmute(dwauthnlevel), core::mem::transmute(dwimplevel), core::mem::transmute(pauthinfo.unwrap_or(core::mem::zeroed())), dwcapabilities.0 as _).ok() + (windows_core::Interface::vtable(self).SetBlanket)(windows_core::Interface::as_raw(self), pproxy.param().abi(), dwauthnsvc, dwauthzsvc, pserverprincname.param().abi(), dwauthnlevel, dwimplevel, core::mem::transmute(pauthinfo.unwrap_or(core::mem::zeroed())), dwcapabilities.0 as _).ok() } pub unsafe fn CopyProxy(&self, pproxy: P0) -> windows_core::Result where @@ -3826,7 +3826,7 @@ impl IComThreadingInfo { (windows_core::Interface::vtable(self).GetCurrentLogicalThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentLogicalThreadId(&self, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentLogicalThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).SetCurrentLogicalThreadId)(windows_core::Interface::as_raw(self), rguid).ok() } } #[repr(C)] @@ -3911,7 +3911,7 @@ impl IConnectionPoint { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), punksink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn EnumConnections(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4003,7 +4003,7 @@ impl IConnectionPointContainer { } pub unsafe fn FindConnectionPoint(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindConnectionPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindConnectionPoint)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4056,13 +4056,13 @@ impl IContext { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(rpolicyid), core::mem::transmute(flags), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), rpolicyid, flags, punk.param().abi()).ok() } pub unsafe fn RemoveProperty(&self, rpolicyid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(rpolicyid)).ok() + (windows_core::Interface::vtable(self).RemoveProperty)(windows_core::Interface::as_raw(self), rpolicyid).ok() } pub unsafe fn GetProperty(&self, rguid: *const windows_core::GUID, pflags: *mut u32, ppunk: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), core::mem::transmute(pflags), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), rguid, core::mem::transmute(pflags), core::mem::transmute(ppunk)).ok() } pub unsafe fn EnumContextProps(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4127,7 +4127,7 @@ impl IContextCallback { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ContextCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(pfncallback), core::mem::transmute(pparam), core::mem::transmute(riid), core::mem::transmute(imethod), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).ContextCallback)(windows_core::Interface::as_raw(self), pfncallback, pparam, riid, imethod, punk.param().abi()).ok() } } #[repr(C)] @@ -4212,10 +4212,10 @@ impl IDataAdviseHolder { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), core::mem::transmute(pfetc), core::mem::transmute(advf), padvise.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), pfetc, advf, padvise.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnection)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwconnection).ok() } pub unsafe fn EnumAdvise(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4225,7 +4225,7 @@ impl IDataAdviseHolder { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendOnDataChange)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(advf)).ok() + (windows_core::Interface::vtable(self).SendOnDataChange)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), advf).ok() } } #[repr(C)] @@ -4291,35 +4291,35 @@ impl IDataObject { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn GetData(&self, pformatetcin: *const FORMATETC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetcin), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pformatetcin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn GetDataHere(&self, pformatetc: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDataHere)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(pmedium)).ok() + (windows_core::Interface::vtable(self).GetDataHere)(windows_core::Interface::as_raw(self), pformatetc, core::mem::transmute(pmedium)).ok() } pub unsafe fn QueryGetData(&self, pformatetc: *const FORMATETC) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).QueryGetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc)) + (windows_core::Interface::vtable(self).QueryGetData)(windows_core::Interface::as_raw(self), pformatetc) } pub unsafe fn GetCanonicalFormatEtc(&self, pformatectin: *const FORMATETC, pformatetcout: *mut FORMATETC) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).GetCanonicalFormatEtc)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatectin), core::mem::transmute(pformatetcout)) + (windows_core::Interface::vtable(self).GetCanonicalFormatEtc)(windows_core::Interface::as_raw(self), pformatectin, core::mem::transmute(pformatetcout)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn SetData(&self, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(pmedium), frelease.into()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pformatetc, core::mem::transmute(pmedium), frelease.into()).ok() } pub unsafe fn EnumFormatEtc(&self, dwdirection: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFormatEtc)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdirection), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFormatEtc)(windows_core::Interface::as_raw(self), dwdirection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DAdvise(&self, pformatetc: *const FORMATETC, advf: u32, padvsink: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DAdvise)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(advf), padvsink.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DAdvise)(windows_core::Interface::as_raw(self), pformatetc, advf, padvsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DUnadvise(&self, dwconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DUnadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnection)).ok() + (windows_core::Interface::vtable(self).DUnadvise)(windows_core::Interface::as_raw(self), dwconnection).ok() } pub unsafe fn EnumDAdvise(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4451,15 +4451,15 @@ impl IDispatch { } pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(itinfo), core::mem::transmute(lcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), itinfo, lcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetIDsOfNames(&self, riid: *const windows_core::GUID, rgsznames: *const windows_core::PCWSTR, cnames: u32, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIDsOfNames)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(rgsznames), core::mem::transmute(cnames), core::mem::transmute(lcid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIDsOfNames)(windows_core::Interface::as_raw(self), riid, rgsznames, cnames, lcid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: Option<*mut super::Variant::VARIANT>, pexcepinfo: Option<*mut EXCEPINFO>, puargerr: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dispidmember), core::mem::transmute(riid), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult.unwrap_or(core::mem::zeroed())), core::mem::transmute(pexcepinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(puargerr.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), dispidmember, riid, lcid, wflags, pdispparams, core::mem::transmute(pvarresult.unwrap_or(core::mem::zeroed())), core::mem::transmute(pexcepinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(puargerr.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -4538,7 +4538,7 @@ impl IEnumCATEGORYINFO { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4606,7 +4606,7 @@ impl IEnumConnectionPoints { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppcp.len().try_into().unwrap(), core::mem::transmute(ppcp.as_ptr()), core::mem::transmute(pcfetched)) } pub unsafe fn Skip(&self, cconnections: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cconnections)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cconnections).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4674,7 +4674,7 @@ impl IEnumConnections { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgcd.len().try_into().unwrap(), core::mem::transmute(rgcd.as_ptr()), core::mem::transmute(pcfetched)) } pub unsafe fn Skip(&self, cconnections: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cconnections)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cconnections).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4742,7 +4742,7 @@ impl IEnumContextProps { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pcontextproperties.len().try_into().unwrap(), core::mem::transmute(pcontextproperties.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4827,7 +4827,7 @@ impl IEnumFORMATETC { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4895,7 +4895,7 @@ impl IEnumGUID { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4963,7 +4963,7 @@ impl IEnumMoniker { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5031,7 +5031,7 @@ impl IEnumSTATDATA { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5099,7 +5099,7 @@ impl IEnumString { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5167,7 +5167,7 @@ impl IEnumUnknown { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5369,10 +5369,10 @@ windows_core::imp::define_interface!(IExternalConnection, IExternalConnection_Vt windows_core::imp::interface_hierarchy!(IExternalConnection, windows_core::IUnknown); impl IExternalConnection { pub unsafe fn AddConnection(&self, extconn: u32, reserved: u32) -> u32 { - (windows_core::Interface::vtable(self).AddConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(extconn), core::mem::transmute(reserved)) + (windows_core::Interface::vtable(self).AddConnection)(windows_core::Interface::as_raw(self), extconn, reserved) } pub unsafe fn ReleaseConnection(&self, extconn: u32, reserved: u32, flastreleasecloses: bool) -> u32 { - (windows_core::Interface::vtable(self).ReleaseConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(extconn), core::mem::transmute(reserved), flastreleasecloses.into()) + (windows_core::Interface::vtable(self).ReleaseConnection)(windows_core::Interface::as_raw(self), extconn, reserved, flastreleasecloses.into()) } } #[repr(C)] @@ -5458,13 +5458,13 @@ impl IGlobalInterfaceTable { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterInterfaceInGlobal)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(riid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterInterfaceInGlobal)(windows_core::Interface::as_raw(self), punk.param().abi(), riid, &mut result__).map(|| result__) } pub unsafe fn RevokeInterfaceFromGlobal(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RevokeInterfaceFromGlobal)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).RevokeInterfaceFromGlobal)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn GetInterfaceFromGlobal(&self, dwcookie: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInterfaceFromGlobal)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetInterfaceFromGlobal)(windows_core::Interface::as_raw(self), dwcookie, riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -5515,11 +5515,11 @@ windows_core::imp::define_interface!(IGlobalOptions, IGlobalOptions_Vtbl, 0x0000 windows_core::imp::interface_hierarchy!(IGlobalOptions, windows_core::IUnknown); impl IGlobalOptions { pub unsafe fn Set(&self, dwproperty: GLOBALOPT_PROPERTIES, dwvalue: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), dwproperty, dwvalue).ok() } pub unsafe fn Query(&self, dwproperty: GLOBALOPT_PROPERTIES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), dwproperty, &mut result__).map(|| result__) } } #[repr(C)] @@ -5559,16 +5559,16 @@ windows_core::imp::define_interface!(IInitializeSpy, IInitializeSpy_Vtbl, 0x0000 windows_core::imp::interface_hierarchy!(IInitializeSpy, windows_core::IUnknown); impl IInitializeSpy { pub unsafe fn PreInitialize(&self, dwcoinit: u32, dwcurthreadaptrefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PreInitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcoinit), core::mem::transmute(dwcurthreadaptrefs)).ok() + (windows_core::Interface::vtable(self).PreInitialize)(windows_core::Interface::as_raw(self), dwcoinit, dwcurthreadaptrefs).ok() } pub unsafe fn PostInitialize(&self, hrcoinit: windows_core::HRESULT, dwcoinit: u32, dwnewthreadaptrefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PostInitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hrcoinit), core::mem::transmute(dwcoinit), core::mem::transmute(dwnewthreadaptrefs)).ok() + (windows_core::Interface::vtable(self).PostInitialize)(windows_core::Interface::as_raw(self), hrcoinit, dwcoinit, dwnewthreadaptrefs).ok() } pub unsafe fn PreUninitialize(&self, dwcurthreadaptrefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PreUninitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcurthreadaptrefs)).ok() + (windows_core::Interface::vtable(self).PreUninitialize)(windows_core::Interface::as_raw(self), dwcurthreadaptrefs).ok() } pub unsafe fn PostUninitialize(&self, dwnewthreadaptrefs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PostUninitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnewthreadaptrefs)).ok() + (windows_core::Interface::vtable(self).PostUninitialize)(windows_core::Interface::as_raw(self), dwnewthreadaptrefs).ok() } } #[repr(C)] @@ -5620,7 +5620,7 @@ windows_core::imp::define_interface!(IInternalUnknown, IInternalUnknown_Vtbl, 0x windows_core::imp::interface_hierarchy!(IInternalUnknown, windows_core::IUnknown); impl IInternalUnknown { pub unsafe fn QueryInternalInterface(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryInternalInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).QueryInternalInterface)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -5693,7 +5693,7 @@ impl IMachineGlobalObjectTable { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), identifier.param().abi(), object.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterObject)(windows_core::Interface::as_raw(self), clsid, identifier.param().abi(), object.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetObject(&self, clsid: *const windows_core::GUID, identifier: P1) -> windows_core::Result where @@ -5701,10 +5701,10 @@ impl IMachineGlobalObjectTable { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), identifier.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), clsid, identifier.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RevokeObject(&self, token: MachineGlobalObjectTableRegistrationToken) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RevokeObject)(windows_core::Interface::as_raw(self), core::mem::transmute(token)).ok() + (windows_core::Interface::vtable(self).RevokeObject)(windows_core::Interface::as_raw(self), token).ok() } } #[repr(C)] @@ -5755,10 +5755,10 @@ windows_core::imp::define_interface!(IMalloc, IMalloc_Vtbl, 0x00000002_0000_0000 windows_core::imp::interface_hierarchy!(IMalloc, windows_core::IUnknown); impl IMalloc { pub unsafe fn Alloc(&self, cb: usize) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), core::mem::transmute(cb)) + (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), cb) } pub unsafe fn Realloc(&self, pv: Option<*const core::ffi::c_void>, cb: usize) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).Realloc)(windows_core::Interface::as_raw(self), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(cb)) + (windows_core::Interface::vtable(self).Realloc)(windows_core::Interface::as_raw(self), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), cb) } pub unsafe fn Free(&self, pv: Option<*const core::ffi::c_void>) { (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) @@ -5836,34 +5836,34 @@ windows_core::imp::define_interface!(IMallocSpy, IMallocSpy_Vtbl, 0x0000001d_000 windows_core::imp::interface_hierarchy!(IMallocSpy, windows_core::IUnknown); impl IMallocSpy { pub unsafe fn PreAlloc(&self, cbrequest: usize) -> usize { - (windows_core::Interface::vtable(self).PreAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(cbrequest)) + (windows_core::Interface::vtable(self).PreAlloc)(windows_core::Interface::as_raw(self), cbrequest) } pub unsafe fn PostAlloc(&self, pactual: *const core::ffi::c_void) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).PostAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(pactual)) + (windows_core::Interface::vtable(self).PostAlloc)(windows_core::Interface::as_raw(self), pactual) } pub unsafe fn PreFree(&self, prequest: *const core::ffi::c_void, fspyed: bool) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).PreFree)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), fspyed.into()) + (windows_core::Interface::vtable(self).PreFree)(windows_core::Interface::as_raw(self), prequest, fspyed.into()) } pub unsafe fn PostFree(&self, fspyed: bool) { (windows_core::Interface::vtable(self).PostFree)(windows_core::Interface::as_raw(self), fspyed.into()) } pub unsafe fn PreRealloc(&self, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: bool) -> usize { - (windows_core::Interface::vtable(self).PreRealloc)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), core::mem::transmute(cbrequest), core::mem::transmute(ppnewrequest), fspyed.into()) + (windows_core::Interface::vtable(self).PreRealloc)(windows_core::Interface::as_raw(self), prequest, cbrequest, core::mem::transmute(ppnewrequest), fspyed.into()) } pub unsafe fn PostRealloc(&self, pactual: *const core::ffi::c_void, fspyed: bool) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).PostRealloc)(windows_core::Interface::as_raw(self), core::mem::transmute(pactual), fspyed.into()) + (windows_core::Interface::vtable(self).PostRealloc)(windows_core::Interface::as_raw(self), pactual, fspyed.into()) } pub unsafe fn PreGetSize(&self, prequest: *const core::ffi::c_void, fspyed: bool) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).PreGetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), fspyed.into()) + (windows_core::Interface::vtable(self).PreGetSize)(windows_core::Interface::as_raw(self), prequest, fspyed.into()) } pub unsafe fn PostGetSize(&self, cbactual: usize, fspyed: bool) -> usize { - (windows_core::Interface::vtable(self).PostGetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(cbactual), fspyed.into()) + (windows_core::Interface::vtable(self).PostGetSize)(windows_core::Interface::as_raw(self), cbactual, fspyed.into()) } pub unsafe fn PreDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: bool) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).PreDidAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), fspyed.into()) + (windows_core::Interface::vtable(self).PreDidAlloc)(windows_core::Interface::as_raw(self), prequest, fspyed.into()) } pub unsafe fn PostDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: bool, factual: i32) -> i32 { - (windows_core::Interface::vtable(self).PostDidAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(prequest), fspyed.into(), core::mem::transmute(factual)) + (windows_core::Interface::vtable(self).PostDidAlloc)(windows_core::Interface::as_raw(self), prequest, fspyed.into(), factual) } pub unsafe fn PreHeapMinimize(&self) { (windows_core::Interface::vtable(self).PreHeapMinimize)(windows_core::Interface::as_raw(self)) @@ -6004,7 +6004,7 @@ impl IMoniker { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reduce)(windows_core::Interface::as_raw(self), pbc.param().abi(), core::mem::transmute(dwreducehowfar), core::mem::transmute(ppmktoleft), core::mem::transmute(ppmkreduced)).ok() + (windows_core::Interface::vtable(self).Reduce)(windows_core::Interface::as_raw(self), pbc.param().abi(), dwreducehowfar, core::mem::transmute(ppmktoleft), core::mem::transmute(ppmkreduced)).ok() } pub unsafe fn ComposeWith(&self, pmkright: P0, fonlyifnotgeneric: bool) -> windows_core::Result where @@ -6330,7 +6330,7 @@ impl IOplockStorage { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateStorageEx)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(stgfmt), core::mem::transmute(grfattrs), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStorageEx)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), grfmode, stgfmt, grfattrs, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenStorageEx(&self, pwcsname: P0, grfmode: u32, stgfmt: u32, grfattrs: u32) -> windows_core::Result where @@ -6338,7 +6338,7 @@ impl IOplockStorage { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenStorageEx)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(stgfmt), core::mem::transmute(grfattrs), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenStorageEx)(windows_core::Interface::as_raw(self), pwcsname.param().abi(), grfmode, stgfmt, grfattrs, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6379,14 +6379,14 @@ impl IPSFactoryBuffer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProxy)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppproxy), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).CreateProxy)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, core::mem::transmute(ppproxy), core::mem::transmute(ppv)).ok() } pub unsafe fn CreateStub(&self, riid: *const windows_core::GUID, punkserver: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStub)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punkserver.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStub)(windows_core::Interface::as_raw(self), riid, punkserver.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6477,7 +6477,7 @@ impl IPersistFile { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), dwmode).ok() } pub unsafe fn Save(&self, pszfilename: P0, fremember: bool) -> windows_core::Result<()> where @@ -6923,7 +6923,7 @@ windows_core::imp::define_interface!(IProcessInitControl, IProcessInitControl_Vt windows_core::imp::interface_hierarchy!(IProcessInitControl, windows_core::IUnknown); impl IProcessInitControl { pub unsafe fn ResetInitializerTimeout(&self, dwsecondsremaining: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetInitializerTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsecondsremaining)).ok() + (windows_core::Interface::vtable(self).ResetInitializerTimeout)(windows_core::Interface::as_raw(self), dwsecondsremaining).ok() } } #[repr(C)] @@ -6992,7 +6992,7 @@ windows_core::imp::define_interface!(IProgressNotify, IProgressNotify_Vtbl, 0xa9 windows_core::imp::interface_hierarchy!(IProgressNotify, windows_core::IUnknown); impl IProgressNotify { pub unsafe fn OnProgress(&self, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: bool, fowner: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprogresscurrent), core::mem::transmute(dwprogressmaximum), faccurate.into(), fowner.into()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), dwprogresscurrent, dwprogressmaximum, faccurate.into(), fowner.into()).ok() } } #[repr(C)] @@ -7051,7 +7051,7 @@ impl IReleaseMarshalBuffers { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseMarshalBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(dwflags), pchnl.param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseMarshalBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), dwflags, pchnl.param().abi()).ok() } } #[repr(C)] @@ -7079,7 +7079,7 @@ windows_core::imp::define_interface!(IRpcChannelBuffer, IRpcChannelBuffer_Vtbl, windows_core::imp::interface_hierarchy!(IRpcChannelBuffer, windows_core::IUnknown); impl IRpcChannelBuffer { pub unsafe fn GetBuffer(&self, pmessage: *mut RPCOLEMESSAGE, riid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pmessage), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(pmessage), riid).ok() } pub unsafe fn SendReceive(&self, pmessage: *mut RPCOLEMESSAGE, pstatus: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendReceive)(windows_core::Interface::as_raw(self), core::mem::transmute(pmessage), core::mem::transmute(pstatus.unwrap_or(core::mem::zeroed()))).ok() @@ -7200,20 +7200,20 @@ impl IRpcChannelBuffer3 { (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(pulstatus)).ok() } pub unsafe fn Receive(&self, pmsg: *mut RPCOLEMESSAGE, ulsize: u32, pulstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Receive)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(ulsize), core::mem::transmute(pulstatus)).ok() + (windows_core::Interface::vtable(self).Receive)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), ulsize, core::mem::transmute(pulstatus)).ok() } pub unsafe fn Cancel(&self, pmsg: *mut RPCOLEMESSAGE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() } pub unsafe fn GetCallContext(&self, pmsg: *const RPCOLEMESSAGE, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCallContext)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(riid), core::mem::transmute(pinterface)).ok() + (windows_core::Interface::vtable(self).GetCallContext)(windows_core::Interface::as_raw(self), pmsg, riid, core::mem::transmute(pinterface)).ok() } pub unsafe fn GetDestCtxEx(&self, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDestCtxEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(pdwdestcontext), core::mem::transmute(ppvdestcontext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDestCtxEx)(windows_core::Interface::as_raw(self), pmsg, core::mem::transmute(pdwdestcontext), core::mem::transmute(ppvdestcontext.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetState(&self, pmsg: *const RPCOLEMESSAGE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), pmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterAsync(&self, pmsg: *mut RPCOLEMESSAGE, pasyncmgr: P1) -> windows_core::Result<()> where @@ -7303,7 +7303,7 @@ impl IRpcHelper { } pub unsafe fn GetIIDFromOBJREF(&self, pobjref: *const core::ffi::c_void) -> windows_core::Result<*mut windows_core::GUID> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIIDFromOBJREF)(windows_core::Interface::as_raw(self), core::mem::transmute(pobjref), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIIDFromOBJREF)(windows_core::Interface::as_raw(self), pobjref, &mut result__).map(|| result__) } } #[repr(C)] @@ -7356,14 +7356,14 @@ impl IRpcOptions { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), pprx.param().abi(), core::mem::transmute(dwproperty), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), pprx.param().abi(), dwproperty, dwvalue).ok() } pub unsafe fn Query(&self, pprx: P0, dwproperty: RPCOPT_PROPERTIES) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pprx.param().abi(), core::mem::transmute(dwproperty), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pprx.param().abi(), dwproperty, &mut result__).map(|| result__) } } #[repr(C)] @@ -7458,7 +7458,7 @@ impl IRpcStubBuffer { (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(_prpcmsg), _prpcchannelbuffer.param().abi()).ok() } pub unsafe fn IsIIDSupported(&self, riid: *const windows_core::GUID) -> Option { - (windows_core::Interface::vtable(self).IsIIDSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(riid)) + (windows_core::Interface::vtable(self).IsIIDSupported)(windows_core::Interface::as_raw(self), riid) } pub unsafe fn CountRefs(&self) -> u32 { (windows_core::Interface::vtable(self).CountRefs)(windows_core::Interface::as_raw(self)) @@ -7467,7 +7467,7 @@ impl IRpcStubBuffer { (windows_core::Interface::vtable(self).DebugServerQueryInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(ppv)).ok() } pub unsafe fn DebugServerRelease(&self, pv: *const core::ffi::c_void) { - (windows_core::Interface::vtable(self).DebugServerRelease)(windows_core::Interface::as_raw(self), core::mem::transmute(pv)) + (windows_core::Interface::vtable(self).DebugServerRelease)(windows_core::Interface::as_raw(self), pv) } } #[repr(C)] @@ -7654,10 +7654,10 @@ impl IRunningObjectTable { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), core::mem::transmute(grfflags), punkobject.param().abi(), pmkobjectname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), grfflags, punkobject.param().abi(), pmkobjectname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Revoke(&self, dwregister: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregister)).ok() + (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), dwregister).ok() } pub unsafe fn IsRunning(&self, pmkobjectname: P0) -> windows_core::Result<()> where @@ -7673,7 +7673,7 @@ impl IRunningObjectTable { (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pmkobjectname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NoteChangeTime(&self, dwregister: u32, pfiletime: *const super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NoteChangeTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregister), core::mem::transmute(pfiletime)).ok() + (windows_core::Interface::vtable(self).NoteChangeTime)(windows_core::Interface::as_raw(self), dwregister, pfiletime).ok() } pub unsafe fn GetTimeOfLastChange(&self, pmkobjectname: P0) -> windows_core::Result where @@ -7781,10 +7781,10 @@ windows_core::imp::define_interface!(ISequentialStream, ISequentialStream_Vtbl, windows_core::imp::interface_hierarchy!(ISequentialStream, windows_core::IUnknown); impl ISequentialStream { pub unsafe fn Read(&self, pv: *mut core::ffi::c_void, cb: u32, pcbread: Option<*mut u32>) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), cb, core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Write(&self, pv: *const core::ffi::c_void, cb: u32, pcbwritten: Option<*mut u32>) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed()))) + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pv, cb, core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed()))) } } #[repr(C)] @@ -7883,7 +7883,7 @@ impl IServiceProvider { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).QueryService)(windows_core::Interface::as_raw(self), core::mem::transmute(guidservice), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryService)(windows_core::Interface::as_raw(self), guidservice, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7912,7 +7912,7 @@ windows_core::imp::interface_hierarchy!(IStdMarshalInfo, windows_core::IUnknown) impl IStdMarshalInfo { pub unsafe fn GetClassForHandler(&self, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClassForHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetClassForHandler)(windows_core::Interface::as_raw(self), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } } #[repr(C)] @@ -7952,16 +7952,16 @@ impl core::ops::Deref for IStream { windows_core::imp::interface_hierarchy!(IStream, windows_core::IUnknown, ISequentialStream); impl IStream { pub unsafe fn Seek(&self, dlibmove: i64, dworigin: STREAM_SEEK, plibnewposition: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(dlibmove), core::mem::transmute(dworigin), core::mem::transmute(plibnewposition.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), dlibmove, dworigin, core::mem::transmute(plibnewposition.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSize(&self, libnewsize: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(libnewsize)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), libnewsize).ok() } pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), core::mem::transmute(cb), core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Commit(&self, grfcommitflags: STGC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), grfcommitflags.0 as _).ok() @@ -7970,10 +7970,10 @@ impl IStream { (windows_core::Interface::vtable(self).Revert)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: LOCKTYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(liboffset), core::mem::transmute(cb), dwlocktype.0 as _).ok() + (windows_core::Interface::vtable(self).LockRegion)(windows_core::Interface::as_raw(self), liboffset, cb, dwlocktype.0 as _).ok() } pub unsafe fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(liboffset), core::mem::transmute(cb), core::mem::transmute(dwlocktype)).ok() + (windows_core::Interface::vtable(self).UnlockRegion)(windows_core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } pub unsafe fn Stat(&self, pstatstg: *mut STATSTG, grfstatflag: STATFLAG) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stat)(windows_core::Interface::as_raw(self), core::mem::transmute(pstatstg), grfstatflag.0 as _).ok() @@ -8089,7 +8089,7 @@ windows_core::imp::define_interface!(ISupportErrorInfo, ISupportErrorInfo_Vtbl, windows_core::imp::interface_hierarchy!(ISupportErrorInfo, windows_core::IUnknown); impl ISupportErrorInfo { pub unsafe fn InterfaceSupportsErrorInfo(&self, riid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InterfaceSupportsErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).InterfaceSupportsErrorInfo)(windows_core::Interface::as_raw(self), riid).ok() } } #[repr(C)] @@ -8117,7 +8117,7 @@ windows_core::imp::define_interface!(ISurrogate, ISurrogate_Vtbl, 0x00000022_000 windows_core::imp::interface_hierarchy!(ISurrogate, windows_core::IUnknown); impl ISurrogate { pub unsafe fn LoadDllServer(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadDllServer)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).LoadDllServer)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn FreeSurrogate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FreeSurrogate)(windows_core::Interface::as_raw(self)).ok() @@ -8162,19 +8162,19 @@ impl ISurrogateService { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidprocessid), pprocesslock.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), rguidprocessid, pprocesslock.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ApplicationLaunch(&self, rguidapplid: *const windows_core::GUID, apptype: ApplicationType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplicationLaunch)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidapplid), core::mem::transmute(apptype)).ok() + (windows_core::Interface::vtable(self).ApplicationLaunch)(windows_core::Interface::as_raw(self), rguidapplid, apptype).ok() } pub unsafe fn ApplicationFree(&self, rguidapplid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplicationFree)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidapplid)).ok() + (windows_core::Interface::vtable(self).ApplicationFree)(windows_core::Interface::as_raw(self), rguidapplid).ok() } pub unsafe fn CatalogRefresh(&self, ulreserved: Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CatalogRefresh)(windows_core::Interface::as_raw(self), core::mem::transmute(ulreserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ProcessShutdown(&self, shutdowntype: ShutdownType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessShutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(shutdowntype)).ok() + (windows_core::Interface::vtable(self).ProcessShutdown)(windows_core::Interface::as_raw(self), shutdowntype).ok() } } #[repr(C)] @@ -8239,7 +8239,7 @@ windows_core::imp::define_interface!(ISynchronize, ISynchronize_Vtbl, 0x00000030 windows_core::imp::interface_hierarchy!(ISynchronize, windows_core::IUnknown); impl ISynchronize { pub unsafe fn Wait(&self, dwflags: u32, dwmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dwmilliseconds)).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() } pub unsafe fn Signal(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self)).ok() @@ -8297,7 +8297,7 @@ impl ISynchronizeContainer { } pub unsafe fn WaitMultiple(&self, dwflags: u32, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitMultiple)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).WaitMultiple)(windows_core::Interface::as_raw(self), dwflags, dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8347,7 +8347,7 @@ impl core::ops::Deref for ISynchronizeEvent { windows_core::imp::interface_hierarchy!(ISynchronizeEvent, windows_core::IUnknown, ISynchronizeHandle); impl ISynchronizeEvent { pub unsafe fn SetEventHandle(&self, ph: *const super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(ph)).ok() + (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), ph).ok() } } #[repr(C)] @@ -8444,7 +8444,7 @@ windows_core::imp::define_interface!(ITimeAndNoticeControl, ITimeAndNoticeContro windows_core::imp::interface_hierarchy!(ITimeAndNoticeControl, windows_core::IUnknown); impl ITimeAndNoticeControl { pub unsafe fn SuppressChanges(&self, res1: u32, res2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SuppressChanges)(windows_core::Interface::as_raw(self), core::mem::transmute(res1), core::mem::transmute(res2)).ok() + (windows_core::Interface::vtable(self).SuppressChanges)(windows_core::Interface::as_raw(self), res1, res2).ok() } } #[repr(C)] @@ -8476,13 +8476,13 @@ impl ITypeComp { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(lhashval), core::mem::transmute(wflags), core::mem::transmute(pptinfo), core::mem::transmute(pdesckind), core::mem::transmute(pbindptr)).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), szname.param().abi(), lhashval, wflags, core::mem::transmute(pptinfo), core::mem::transmute(pdesckind), core::mem::transmute(pbindptr)).ok() } pub unsafe fn BindType(&self, szname: P0, lhashval: u32, pptinfo: *mut Option, pptcomp: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindType)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(lhashval), core::mem::transmute(pptinfo), core::mem::transmute(pptcomp)).ok() + (windows_core::Interface::vtable(self).BindType)(windows_core::Interface::as_raw(self), szname.param().abi(), lhashval, core::mem::transmute(pptinfo), core::mem::transmute(pptcomp)).ok() } } #[repr(C)] @@ -8533,44 +8533,44 @@ impl ITypeInfo { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFuncDesc(&self, index: u32) -> windows_core::Result<*mut FUNCDESC> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFuncDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFuncDesc)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetVarDesc(&self, index: u32) -> windows_core::Result<*mut VARDESC> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVarDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVarDesc)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetNames(&self, memid: i32, rgbstrnames: &mut [windows_core::BSTR], pcnames: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(rgbstrnames.as_ptr()), rgbstrnames.len().try_into().unwrap(), core::mem::transmute(pcnames)).ok() + (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), memid, core::mem::transmute(rgbstrnames.as_ptr()), rgbstrnames.len().try_into().unwrap(), core::mem::transmute(pcnames)).ok() } pub unsafe fn GetRefTypeOfImplType(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRefTypeOfImplType)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRefTypeOfImplType)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetImplTypeFlags(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImplTypeFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetImplTypeFlags)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetIDsOfNames(&self, rgsznames: *const windows_core::PCWSTR, cnames: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIDsOfNames)(windows_core::Interface::as_raw(self), core::mem::transmute(rgsznames), core::mem::transmute(cnames), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIDsOfNames)(windows_core::Interface::as_raw(self), rgsznames, cnames, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Invoke(&self, pvinstance: *const core::ffi::c_void, memid: i32, wflags: DISPATCH_FLAGS, pdispparams: *mut DISPPARAMS, pvarresult: *mut super::Variant::VARIANT, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute(pvinstance), core::mem::transmute(memid), core::mem::transmute(wflags), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pvinstance, memid, wflags, core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() } pub unsafe fn GetDocumentation(&self, memid: i32, pbstrname: Option<*mut windows_core::BSTR>, pbstrdocstring: Option<*mut windows_core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDocumentation)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(pbstrname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrdocstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpcontext), core::mem::transmute(pbstrhelpfile.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDocumentation)(windows_core::Interface::as_raw(self), memid, core::mem::transmute(pbstrname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrdocstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpcontext), core::mem::transmute(pbstrhelpfile.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: Option<*mut windows_core::BSTR>, pbstrname: Option<*mut windows_core::BSTR>, pwordinal: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDllEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(invkind), core::mem::transmute(pbstrdllname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwordinal)).ok() + (windows_core::Interface::vtable(self).GetDllEntry)(windows_core::Interface::as_raw(self), memid, invkind, core::mem::transmute(pbstrdllname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pwordinal)).ok() } pub unsafe fn GetRefTypeInfo(&self, hreftype: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRefTypeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hreftype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRefTypeInfo)(windows_core::Interface::as_raw(self), hreftype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddressOfMember(&self, memid: i32, invkind: INVOKEKIND, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddressOfMember)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(invkind), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).AddressOfMember)(windows_core::Interface::as_raw(self), memid, invkind, core::mem::transmute(ppv)).ok() } pub unsafe fn CreateInstance(&self, punkouter: P0) -> windows_core::Result where @@ -8582,22 +8582,22 @@ impl ITypeInfo { } pub unsafe fn GetMops(&self, memid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMops)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMops)(windows_core::Interface::as_raw(self), memid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetContainingTypeLib(&self, pptlib: *mut Option, pindex: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetContainingTypeLib)(windows_core::Interface::as_raw(self), core::mem::transmute(pptlib), core::mem::transmute(pindex)).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ReleaseTypeAttr(&self, ptypeattr: *const TYPEATTR) { - (windows_core::Interface::vtable(self).ReleaseTypeAttr)(windows_core::Interface::as_raw(self), core::mem::transmute(ptypeattr)) + (windows_core::Interface::vtable(self).ReleaseTypeAttr)(windows_core::Interface::as_raw(self), ptypeattr) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ReleaseFuncDesc(&self, pfuncdesc: *const FUNCDESC) { - (windows_core::Interface::vtable(self).ReleaseFuncDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pfuncdesc)) + (windows_core::Interface::vtable(self).ReleaseFuncDesc)(windows_core::Interface::as_raw(self), pfuncdesc) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ReleaseVarDesc(&self, pvardesc: *const VARDESC) { - (windows_core::Interface::vtable(self).ReleaseVarDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pvardesc)) + (windows_core::Interface::vtable(self).ReleaseVarDesc)(windows_core::Interface::as_raw(self), pvardesc) } } #[repr(C)] @@ -8847,39 +8847,39 @@ impl ITypeInfo2 { } pub unsafe fn GetFuncIndexOfMemId(&self, memid: i32, invkind: INVOKEKIND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFuncIndexOfMemId)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(invkind), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFuncIndexOfMemId)(windows_core::Interface::as_raw(self), memid, invkind, &mut result__).map(|| result__) } pub unsafe fn GetVarIndexOfMemId(&self, memid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVarIndexOfMemId)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVarIndexOfMemId)(windows_core::Interface::as_raw(self), memid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCustData(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCustData)(windows_core::Interface::as_raw(self), guid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFuncCustData(&self, index: u32, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFuncCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFuncCustData)(windows_core::Interface::as_raw(self), index, guid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetParamCustData(&self, indexfunc: u32, indexparam: u32, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParamCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(indexfunc), core::mem::transmute(indexparam), core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetParamCustData)(windows_core::Interface::as_raw(self), indexfunc, indexparam, guid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetVarCustData(&self, index: u32, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVarCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetVarCustData)(windows_core::Interface::as_raw(self), index, guid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetImplTypeCustData(&self, index: u32, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImplTypeCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetImplTypeCustData)(windows_core::Interface::as_raw(self), index, guid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetDocumentation2(&self, memid: i32, lcid: u32, pbstrhelpstring: Option<*mut windows_core::BSTR>, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDocumentation2)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(lcid), core::mem::transmute(pbstrhelpstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpstringcontext), core::mem::transmute(pbstrhelpstringdll.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDocumentation2)(windows_core::Interface::as_raw(self), memid, lcid, core::mem::transmute(pbstrhelpstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpstringcontext), core::mem::transmute(pbstrhelpstringdll.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAllCustData(&self) -> windows_core::Result { @@ -8889,22 +8889,22 @@ impl ITypeInfo2 { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAllFuncCustData(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllFuncCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllFuncCustData)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAllParamCustData(&self, indexfunc: u32, indexparam: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllParamCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(indexfunc), core::mem::transmute(indexparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllParamCustData)(windows_core::Interface::as_raw(self), indexfunc, indexparam, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAllVarCustData(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllVarCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllVarCustData)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAllImplTypeCustData(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAllImplTypeCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAllImplTypeCustData)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } } #[repr(C)] @@ -9154,15 +9154,15 @@ impl ITypeLib { } pub unsafe fn GetTypeInfo(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTypeInfoType(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeInfoType)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeInfoType)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetTypeInfoOfGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeInfoOfGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTypeInfoOfGuid)(windows_core::Interface::as_raw(self), guid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLibAttr(&self) -> windows_core::Result<*mut TLIBATTR> { let mut result__ = core::mem::zeroed(); @@ -9173,16 +9173,16 @@ impl ITypeLib { (windows_core::Interface::vtable(self).GetTypeComp)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDocumentation(&self, index: i32, pbstrname: Option<*mut windows_core::BSTR>, pbstrdocstring: Option<*mut windows_core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDocumentation)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pbstrname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrdocstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpcontext), core::mem::transmute(pbstrhelpfile.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDocumentation)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pbstrname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrdocstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpcontext), core::mem::transmute(pbstrhelpfile.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsName)(windows_core::Interface::as_raw(self), core::mem::transmute(sznamebuf), core::mem::transmute(lhashval), core::mem::transmute(pfname)).ok() + (windows_core::Interface::vtable(self).IsName)(windows_core::Interface::as_raw(self), core::mem::transmute(sznamebuf), lhashval, core::mem::transmute(pfname)).ok() } pub unsafe fn FindName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pptinfo: *mut Option, rgmemid: *mut i32, pcfound: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindName)(windows_core::Interface::as_raw(self), core::mem::transmute(sznamebuf), core::mem::transmute(lhashval), core::mem::transmute(pptinfo), core::mem::transmute(rgmemid), core::mem::transmute(pcfound)).ok() + (windows_core::Interface::vtable(self).FindName)(windows_core::Interface::as_raw(self), core::mem::transmute(sznamebuf), lhashval, core::mem::transmute(pptinfo), core::mem::transmute(rgmemid), core::mem::transmute(pcfound)).ok() } pub unsafe fn ReleaseTLibAttr(&self, ptlibattr: *const TLIBATTR) { - (windows_core::Interface::vtable(self).ReleaseTLibAttr)(windows_core::Interface::as_raw(self), core::mem::transmute(ptlibattr)) + (windows_core::Interface::vtable(self).ReleaseTLibAttr)(windows_core::Interface::as_raw(self), ptlibattr) } } #[repr(C)] @@ -9314,13 +9314,13 @@ impl ITypeLib2 { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCustData(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCustData)(windows_core::Interface::as_raw(self), guid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetLibStatistics(&self, pcuniquenames: *mut u32, pcchuniquenames: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLibStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(pcuniquenames), core::mem::transmute(pcchuniquenames)).ok() } pub unsafe fn GetDocumentation2(&self, index: i32, lcid: u32, pbstrhelpstring: Option<*mut windows_core::BSTR>, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDocumentation2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(lcid), core::mem::transmute(pbstrhelpstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpstringcontext), core::mem::transmute(pbstrhelpstringdll.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDocumentation2)(windows_core::Interface::as_raw(self), index, lcid, core::mem::transmute(pbstrhelpstring.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwhelpstringcontext), core::mem::transmute(pbstrhelpstringdll.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAllCustData(&self) -> windows_core::Result { @@ -9590,17 +9590,17 @@ windows_core::imp::define_interface!(IUri, IUri_Vtbl, 0xa39ee748_6a27_4817_a6f2_ windows_core::imp::interface_hierarchy!(IUri, windows_core::IUnknown); impl IUri { pub unsafe fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: *mut windows_core::BSTR, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyBSTR)(windows_core::Interface::as_raw(self), core::mem::transmute(uriprop), core::mem::transmute(pbstrproperty), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetPropertyBSTR)(windows_core::Interface::as_raw(self), uriprop, core::mem::transmute(pbstrproperty), dwflags).ok() } pub unsafe fn GetPropertyLength(&self, uriprop: Uri_PROPERTY, pcchproperty: *mut u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyLength)(windows_core::Interface::as_raw(self), core::mem::transmute(uriprop), core::mem::transmute(pcchproperty), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetPropertyLength)(windows_core::Interface::as_raw(self), uriprop, core::mem::transmute(pcchproperty), dwflags).ok() } pub unsafe fn GetPropertyDWORD(&self, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyDWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(uriprop), core::mem::transmute(pdwproperty), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetPropertyDWORD)(windows_core::Interface::as_raw(self), uriprop, core::mem::transmute(pdwproperty), dwflags).ok() } pub unsafe fn HasProperty(&self, uriprop: Uri_PROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HasProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(uriprop), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasProperty)(windows_core::Interface::as_raw(self), uriprop, &mut result__).map(|| result__) } pub unsafe fn GetAbsoluteUri(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10019,15 +10019,15 @@ windows_core::imp::interface_hierarchy!(IUriBuilder, windows_core::IUnknown); impl IUriBuilder { pub unsafe fn CreateUriSimple(&self, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateUriSimple)(windows_core::Interface::as_raw(self), core::mem::transmute(dwallowencodingpropertymask), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateUriSimple)(windows_core::Interface::as_raw(self), dwallowencodingpropertymask, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateUri(&self, dwcreateflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateUri)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcreateflags), core::mem::transmute(dwallowencodingpropertymask), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateUri)(windows_core::Interface::as_raw(self), dwcreateflags, dwallowencodingpropertymask, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateUriWithFlags(&self, dwcreateflags: u32, dwuribuilderflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateUriWithFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcreateflags), core::mem::transmute(dwuribuilderflags), core::mem::transmute(dwallowencodingpropertymask), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateUriWithFlags)(windows_core::Interface::as_raw(self), dwcreateflags, dwuribuilderflags, dwallowencodingpropertymask, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetIUri(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10088,7 +10088,7 @@ impl IUriBuilder { (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetPort(&self, fhasport: bool, dwnewvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), fhasport.into(), core::mem::transmute(dwnewvalue)).ok() + (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), fhasport.into(), dwnewvalue).ok() } pub unsafe fn SetQuery(&self, pwznewvalue: P0) -> windows_core::Result<()> where @@ -10109,7 +10109,7 @@ impl IUriBuilder { (windows_core::Interface::vtable(self).SetUserName)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn RemoveProperties(&self, dwpropertymask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpropertymask)).ok() + (windows_core::Interface::vtable(self).RemoveProperties)(windows_core::Interface::as_raw(self), dwpropertymask).ok() } pub unsafe fn HasBeenModified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10334,7 +10334,7 @@ impl IUrlMon { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncGetClassBits)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), psztype.param().abi(), pszext.param().abi(), core::mem::transmute(dwfileversionms), core::mem::transmute(dwfileversionls), pszcodebase.param().abi(), pbc.param().abi(), core::mem::transmute(dwclasscontext), core::mem::transmute(riid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AsyncGetClassBits)(windows_core::Interface::as_raw(self), rclsid, psztype.param().abi(), pszext.param().abi(), dwfileversionms, dwfileversionls, pszcodebase.param().abi(), pbc.param().abi(), dwclasscontext, riid, flags).ok() } } #[repr(C)] @@ -10363,7 +10363,7 @@ windows_core::imp::interface_hierarchy!(IWaitMultiple, windows_core::IUnknown); impl IWaitMultiple { pub unsafe fn WaitMultiple(&self, timeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitMultiple)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).WaitMultiple)(windows_core::Interface::as_raw(self), timeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSynchronize(&self, psync: P0) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs index 5eb5703c3c..2ff41d975b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs @@ -4,7 +4,7 @@ where P0: windows_core::Param, { windows_targets::link!("comsvcs.dll" "system" fn CoCreateActivity(piunknown : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CoCreateActivity(piunknown.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppobj)).ok() + CoCreateActivity(piunknown.param().abi(), riid, core::mem::transmute(ppobj)).ok() } #[inline] pub unsafe fn CoEnterServiceDomain(pconfigobject: P0) -> windows_core::Result<()> @@ -18,7 +18,7 @@ where #[inline] pub unsafe fn CoGetDefaultContext(apttype: super::Com::APTTYPE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn CoGetDefaultContext(apttype : super::Com:: APTTYPE, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CoGetDefaultContext(core::mem::transmute(apttype), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + CoGetDefaultContext(apttype, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn CoLeaveServiceDomain(punkstatus: P0) @@ -42,12 +42,12 @@ pub unsafe fn GetManagedExtensions(dwexts: *mut u32) -> windows_core::Result<()> #[inline] pub unsafe fn MTSCreateActivity(riid: *const windows_core::GUID, ppobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("comsvcs.dll" "system" fn MTSCreateActivity(riid : *const windows_core::GUID, ppobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MTSCreateActivity(core::mem::transmute(riid), core::mem::transmute(ppobj)).ok() + MTSCreateActivity(riid, core::mem::transmute(ppobj)).ok() } #[inline] pub unsafe fn RecycleSurrogate(lreasoncode: i32) -> windows_core::Result<()> { windows_targets::link!("comsvcs.dll" "cdecl" fn RecycleSurrogate(lreasoncode : i32) -> windows_core::HRESULT); - RecycleSurrogate(core::mem::transmute(lreasoncode)).ok() + RecycleSurrogate(lreasoncode).ok() } #[inline] pub unsafe fn SafeRef(rid: *const windows_core::GUID, punk: P1) -> *mut core::ffi::c_void @@ -55,7 +55,7 @@ where P1: windows_core::Param, { windows_targets::link!("comsvcs.dll" "cdecl" fn SafeRef(rid : *const windows_core::GUID, punk : * mut core::ffi::c_void) -> *mut core::ffi::c_void); - SafeRef(core::mem::transmute(rid), punk.param().abi()) + SafeRef(rid, punk.param().abi()) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -919,13 +919,13 @@ impl IAppDomainHelper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkad.param().abi(), core::mem::transmute(__midl__iappdomainhelper0000), core::mem::transmute(ppool)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkad.param().abi(), __midl__iappdomainhelper0000, core::mem::transmute(ppool)).ok() } pub unsafe fn DoCallback(&self, punkad: P0, __midl__iappdomainhelper0001: isize, ppool: *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoCallback)(windows_core::Interface::as_raw(self), punkad.param().abi(), core::mem::transmute(__midl__iappdomainhelper0001), core::mem::transmute(ppool)).ok() + (windows_core::Interface::vtable(self).DoCallback)(windows_core::Interface::as_raw(self), punkad.param().abi(), __midl__iappdomainhelper0001, core::mem::transmute(ppool)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1020,7 +1020,7 @@ windows_core::imp::define_interface!(IAsyncErrorNotify, IAsyncErrorNotify_Vtbl, windows_core::imp::interface_hierarchy!(IAsyncErrorNotify, windows_core::IUnknown); impl IAsyncErrorNotify { pub unsafe fn OnError(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hr).ok() } } #[repr(C)] @@ -1076,7 +1076,7 @@ impl ICOMAdminCatalog { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollectionByQuery(&self, bstrcollname: &windows_core::BSTR, ppsavarquery: *const *const super::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCollectionByQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcollname), core::mem::transmute(ppsavarquery), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCollectionByQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcollname), ppsavarquery, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ImportComponent(&self, bstrapplidorname: &windows_core::BSTR, bstrclsidorprogid: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ImportComponent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute_copy(bstrclsidorprogid)).ok() @@ -1088,10 +1088,10 @@ impl ICOMAdminCatalog { (windows_core::Interface::vtable(self).ShutdownApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname)).ok() } pub unsafe fn ExportApplication(&self, bstrapplidorname: &windows_core::BSTR, bstrapplicationfile: &windows_core::BSTR, loptions: COMAdminApplicationExportOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExportApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute_copy(bstrapplicationfile), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).ExportApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute_copy(bstrapplicationfile), loptions).ok() } pub unsafe fn InstallApplication(&self, bstrapplicationfile: &windows_core::BSTR, bstrdestinationdirectory: &windows_core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, bstrrsn: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationfile), core::mem::transmute_copy(bstrdestinationdirectory), core::mem::transmute(loptions), core::mem::transmute_copy(bstruserid), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrrsn)).ok() + (windows_core::Interface::vtable(self).InstallApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationfile), core::mem::transmute_copy(bstrdestinationdirectory), loptions, core::mem::transmute_copy(bstruserid), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrrsn)).ok() } pub unsafe fn StopRouter(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopRouter)(windows_core::Interface::as_raw(self)).ok() @@ -1110,11 +1110,11 @@ impl ICOMAdminCatalog { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstallMultipleComponents(&self, bstrapplidorname: &windows_core::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallMultipleComponents)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute(ppsavarfilenames), core::mem::transmute(ppsavarclsids)).ok() + (windows_core::Interface::vtable(self).InstallMultipleComponents)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), ppsavarfilenames, ppsavarclsids).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMultipleComponentsInfo(&self, bstrapplidorname: &windows_core::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMultipleComponentsInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute(ppsavarfilenames), core::mem::transmute(ppsavarclsids), core::mem::transmute(ppsavarclassnames), core::mem::transmute(ppsavarfileflags), core::mem::transmute(ppsavarcomponentflags)).ok() + (windows_core::Interface::vtable(self).GetMultipleComponentsInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), ppsavarfilenames, core::mem::transmute(ppsavarclsids), core::mem::transmute(ppsavarclassnames), core::mem::transmute(ppsavarfileflags), core::mem::transmute(ppsavarcomponentflags)).ok() } pub unsafe fn RefreshComponents(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RefreshComponents)(windows_core::Interface::as_raw(self)).ok() @@ -1134,11 +1134,11 @@ impl ICOMAdminCatalog { } pub unsafe fn ServiceCheck(&self, lservice: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ServiceCheck)(windows_core::Interface::as_raw(self), core::mem::transmute(lservice), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ServiceCheck)(windows_core::Interface::as_raw(self), lservice, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstallMultipleEventClasses(&self, bstrapplidorname: &windows_core::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallMultipleEventClasses)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute(ppsavarfilenames), core::mem::transmute(ppsavarclsids)).ok() + (windows_core::Interface::vtable(self).InstallMultipleEventClasses)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), ppsavarfilenames, ppsavarclsids).ok() } pub unsafe fn InstallEventClass(&self, bstrapplidorname: &windows_core::BSTR, bstrdll: &windows_core::BSTR, bstrtlb: &windows_core::BSTR, bstrpsdll: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InstallEventClass)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplidorname), core::mem::transmute_copy(bstrdll), core::mem::transmute_copy(bstrtlb), core::mem::transmute_copy(bstrpsdll)).ok() @@ -1425,7 +1425,7 @@ impl ICOMAdminCatalog2 { } pub unsafe fn GetApplicationInstanceIDFromProcessID(&self, lprocessid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetApplicationInstanceIDFromProcessID)(windows_core::Interface::as_raw(self), core::mem::transmute(lprocessid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetApplicationInstanceIDFromProcessID)(windows_core::Interface::as_raw(self), lprocessid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ShutdownApplicationInstances(&self, pvarapplicationinstanceid: *const super::Variant::VARIANT) -> windows_core::Result<()> { @@ -1441,7 +1441,7 @@ impl ICOMAdminCatalog2 { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RecycleApplicationInstances(&self, pvarapplicationinstanceid: *const super::Variant::VARIANT, lreasoncode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecycleApplicationInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarapplicationinstanceid), core::mem::transmute(lreasoncode)).ok() + (windows_core::Interface::vtable(self).RecycleApplicationInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarapplicationinstanceid), lreasoncode).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AreApplicationInstancesPaused(&self, pvarapplicationinstanceid: *const super::Variant::VARIANT) -> windows_core::Result { @@ -1450,14 +1450,14 @@ impl ICOMAdminCatalog2 { } pub unsafe fn DumpApplicationInstance(&self, bstrapplicationinstanceid: &windows_core::BSTR, bstrdirectory: &windows_core::BSTR, lmaximages: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DumpApplicationInstance)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationinstanceid), core::mem::transmute_copy(bstrdirectory), core::mem::transmute(lmaximages), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).DumpApplicationInstance)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationinstanceid), core::mem::transmute_copy(bstrdirectory), lmaximages, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn IsApplicationInstanceDumpSupported(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsApplicationInstanceDumpSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CreateServiceForApplication(&self, bstrapplicationidorname: &windows_core::BSTR, bstrservicename: &windows_core::BSTR, bstrstarttype: &windows_core::BSTR, bstrerrorcontrol: &windows_core::BSTR, bstrdependencies: &windows_core::BSTR, bstrrunas: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, bdesktopok: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateServiceForApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationidorname), core::mem::transmute_copy(bstrservicename), core::mem::transmute_copy(bstrstarttype), core::mem::transmute_copy(bstrerrorcontrol), core::mem::transmute_copy(bstrdependencies), core::mem::transmute_copy(bstrrunas), core::mem::transmute_copy(bstrpassword), core::mem::transmute(bdesktopok)).ok() + (windows_core::Interface::vtable(self).CreateServiceForApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationidorname), core::mem::transmute_copy(bstrservicename), core::mem::transmute_copy(bstrstarttype), core::mem::transmute_copy(bstrerrorcontrol), core::mem::transmute_copy(bstrdependencies), core::mem::transmute_copy(bstrrunas), core::mem::transmute_copy(bstrpassword), bdesktopok).ok() } pub unsafe fn DeleteServiceForApplication(&self, bstrapplicationidorname: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteServiceForApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationidorname)).ok() @@ -1524,10 +1524,10 @@ impl ICOMAdminCatalog2 { (windows_core::Interface::vtable(self).Is64BitCatalogServer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ExportPartition(&self, bstrpartitionidorname: &windows_core::BSTR, bstrpartitionfilename: &windows_core::BSTR, loptions: COMAdminApplicationExportOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExportPartition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpartitionidorname), core::mem::transmute_copy(bstrpartitionfilename), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).ExportPartition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpartitionidorname), core::mem::transmute_copy(bstrpartitionfilename), loptions).ok() } pub unsafe fn InstallPartition(&self, bstrfilename: &windows_core::BSTR, bstrdestdirectory: &windows_core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, bstrrsn: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallPartition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute_copy(bstrdestdirectory), core::mem::transmute(loptions), core::mem::transmute_copy(bstruserid), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrrsn)).ok() + (windows_core::Interface::vtable(self).InstallPartition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute_copy(bstrdestdirectory), loptions, core::mem::transmute_copy(bstruserid), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrrsn)).ok() } pub unsafe fn QueryApplicationFile2(&self, bstrapplicationfile: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1976,14 +1976,14 @@ impl ICatalogCollection { } pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Remove(&self, lindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lindex).ok() } pub unsafe fn Add(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2028,10 +2028,10 @@ impl ICatalogCollection { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PopulateByKey(&self, psakeys: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PopulateByKey)(windows_core::Interface::as_raw(self), core::mem::transmute(psakeys)).ok() + (windows_core::Interface::vtable(self).PopulateByKey)(windows_core::Interface::as_raw(self), psakeys).ok() } pub unsafe fn PopulateByQuery(&self, bstrquerystring: &windows_core::BSTR, lquerytype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PopulateByQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrquerystring), core::mem::transmute(lquerytype)).ok() + (windows_core::Interface::vtable(self).PopulateByQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrquerystring), lquerytype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2448,25 +2448,25 @@ windows_core::imp::define_interface!(IComActivityEvents, IComActivityEvents_Vtbl windows_core::imp::interface_hierarchy!(IComActivityEvents, windows_core::IUnknown); impl IComActivityEvents { pub unsafe fn OnActivityCreate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityCreate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity)).ok() + (windows_core::Interface::vtable(self).OnActivityCreate)(windows_core::Interface::as_raw(self), pinfo, guidactivity).ok() } pub unsafe fn OnActivityDestroy(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityDestroy)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity)).ok() + (windows_core::Interface::vtable(self).OnActivityDestroy)(windows_core::Interface::as_raw(self), pinfo, guidactivity).ok() } pub unsafe fn OnActivityEnter(&self, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidcurrent), core::mem::transmute(guidentered), core::mem::transmute(dwthread)).ok() + (windows_core::Interface::vtable(self).OnActivityEnter)(windows_core::Interface::as_raw(self), pinfo, guidcurrent, guidentered, dwthread).ok() } pub unsafe fn OnActivityTimeout(&self, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32, dwtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidcurrent), core::mem::transmute(guidentered), core::mem::transmute(dwthread), core::mem::transmute(dwtimeout)).ok() + (windows_core::Interface::vtable(self).OnActivityTimeout)(windows_core::Interface::as_raw(self), pinfo, guidcurrent, guidentered, dwthread, dwtimeout).ok() } pub unsafe fn OnActivityReenter(&self, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, dwthread: u32, dwcalldepth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityReenter)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidcurrent), core::mem::transmute(dwthread), core::mem::transmute(dwcalldepth)).ok() + (windows_core::Interface::vtable(self).OnActivityReenter)(windows_core::Interface::as_raw(self), pinfo, guidcurrent, dwthread, dwcalldepth).ok() } pub unsafe fn OnActivityLeave(&self, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidleft: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityLeave)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidcurrent), core::mem::transmute(guidleft)).ok() + (windows_core::Interface::vtable(self).OnActivityLeave)(windows_core::Interface::as_raw(self), pinfo, guidcurrent, guidleft).ok() } pub unsafe fn OnActivityLeaveSame(&self, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, dwcalldepth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivityLeaveSame)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidcurrent), core::mem::transmute(dwcalldepth)).ok() + (windows_core::Interface::vtable(self).OnActivityLeaveSame)(windows_core::Interface::as_raw(self), pinfo, guidcurrent, dwcalldepth).ok() } } #[repr(C)] @@ -2539,19 +2539,19 @@ windows_core::imp::define_interface!(IComApp2Events, IComApp2Events_Vtbl, 0x1290 windows_core::imp::interface_hierarchy!(IComApp2Events, windows_core::IUnknown); impl IComApp2Events { pub unsafe fn OnAppActivation2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, guidprocess: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppActivation2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp), core::mem::transmute(guidprocess)).ok() + (windows_core::Interface::vtable(self).OnAppActivation2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp), core::mem::transmute(guidprocess)).ok() } pub unsafe fn OnAppShutdown2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppShutdown2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnAppShutdown2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnAppForceShutdown2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppForceShutdown2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnAppForceShutdown2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnAppPaused2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, bpaused: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppPaused2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp), bpaused.into()).ok() + (windows_core::Interface::vtable(self).OnAppPaused2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp), bpaused.into()).ok() } pub unsafe fn OnAppRecycle2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, guidprocess: windows_core::GUID, lreason: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppRecycle2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp), core::mem::transmute(guidprocess), core::mem::transmute(lreason)).ok() + (windows_core::Interface::vtable(self).OnAppRecycle2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp), core::mem::transmute(guidprocess), lreason).ok() } } #[repr(C)] @@ -2610,13 +2610,13 @@ windows_core::imp::define_interface!(IComAppEvents, IComAppEvents_Vtbl, 0x683130 windows_core::imp::interface_hierarchy!(IComAppEvents, windows_core::IUnknown); impl IComAppEvents { pub unsafe fn OnAppActivation(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppActivation)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnAppActivation)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnAppShutdown(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppShutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnAppShutdown)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnAppForceShutdown(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAppForceShutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnAppForceShutdown)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } } #[repr(C)] @@ -2661,49 +2661,49 @@ windows_core::imp::define_interface!(IComCRMEvents, IComCRMEvents_Vtbl, 0x683130 windows_core::imp::interface_hierarchy!(IComCRMEvents, windows_core::IUnknown); impl IComCRMEvents { pub unsafe fn OnCRMRecoveryStart(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMRecoveryStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnCRMRecoveryStart)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnCRMRecoveryDone(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMRecoveryDone)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnCRMRecoveryDone)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnCRMCheckpoint(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMCheckpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidapp)).ok() + (windows_core::Interface::vtable(self).OnCRMCheckpoint)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp)).ok() } pub unsafe fn OnCRMBegin(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, guidactivity: windows_core::GUID, guidtx: windows_core::GUID, szprogidcompensator: &[u16; 64], szdescription: &[u16; 64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMBegin)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid), core::mem::transmute(guidactivity), core::mem::transmute(guidtx), core::mem::transmute(szprogidcompensator.as_ptr()), core::mem::transmute(szdescription.as_ptr())).ok() + (windows_core::Interface::vtable(self).OnCRMBegin)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), core::mem::transmute(guidactivity), core::mem::transmute(guidtx), core::mem::transmute(szprogidcompensator.as_ptr()), core::mem::transmute(szdescription.as_ptr())).ok() } pub unsafe fn OnCRMPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMPrepare)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMPrepare)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMCommit(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMCommit)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMAbort)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMAbort)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMIndoubt(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMIndoubt)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMIndoubt)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMDone(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMDone)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMDone)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMRelease(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMRelease)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMRelease)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMAnalyze(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, dwcrmrecordtype: u32, dwrecordsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMAnalyze)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid), core::mem::transmute(dwcrmrecordtype), core::mem::transmute(dwrecordsize)).ok() + (windows_core::Interface::vtable(self).OnCRMAnalyze)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), dwcrmrecordtype, dwrecordsize).ok() } pub unsafe fn OnCRMWrite(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: bool, dwrecordsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMWrite)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid), fvariants.into(), core::mem::transmute(dwrecordsize)).ok() + (windows_core::Interface::vtable(self).OnCRMWrite)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), fvariants.into(), dwrecordsize).ok() } pub unsafe fn OnCRMForget(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMForget)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMForget)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMForce(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMForce)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid)).ok() + (windows_core::Interface::vtable(self).OnCRMForce)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid)).ok() } pub unsafe fn OnCRMDeliver(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: bool, dwrecordsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCRMDeliver)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidclerkclsid), fvariants.into(), core::mem::transmute(dwrecordsize)).ok() + (windows_core::Interface::vtable(self).OnCRMDeliver)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), fvariants.into(), dwrecordsize).ok() } } #[repr(C)] @@ -2835,7 +2835,7 @@ impl IComExceptionEvents { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnExceptionUser)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(code), core::mem::transmute(address), pszstacktrace.param().abi()).ok() + (windows_core::Interface::vtable(self).OnExceptionUser)(windows_core::Interface::as_raw(self), pinfo, code, address, pszstacktrace.param().abi()).ok() } } #[repr(C)] @@ -2868,7 +2868,7 @@ impl IComIdentityEvents { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIISRequestInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objid), pszclientip.param().abi(), pszserverip.param().abi(), pszurl.param().abi()).ok() + (windows_core::Interface::vtable(self).OnIISRequestInfo)(windows_core::Interface::as_raw(self), pinfo, objid, pszclientip.param().abi(), pszserverip.param().abi(), pszurl.param().abi()).ok() } } #[repr(C)] @@ -2896,10 +2896,10 @@ windows_core::imp::define_interface!(IComInstance2Events, IComInstance2Events_Vt windows_core::imp::interface_hierarchy!(IComInstance2Events, windows_core::IUnknown); impl IComInstance2Events { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnObjectCreate2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(clsid), core::mem::transmute(tsid), core::mem::transmute(ctxtid), core::mem::transmute(objectid), core::mem::transmute(guidpartition)).ok() + (windows_core::Interface::vtable(self).OnObjectCreate2)(windows_core::Interface::as_raw(self), pinfo, guidactivity, clsid, tsid, ctxtid, objectid, guidpartition).ok() } pub unsafe fn OnObjectDestroy2(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjectDestroy2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid)).ok() + (windows_core::Interface::vtable(self).OnObjectDestroy2)(windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } } #[repr(C)] @@ -2937,10 +2937,10 @@ windows_core::imp::define_interface!(IComInstanceEvents, IComInstanceEvents_Vtbl windows_core::imp::interface_hierarchy!(IComInstanceEvents, windows_core::IUnknown); impl IComInstanceEvents { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnObjectCreate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(clsid), core::mem::transmute(tsid), core::mem::transmute(ctxtid), core::mem::transmute(objectid)).ok() + (windows_core::Interface::vtable(self).OnObjectCreate)(windows_core::Interface::as_raw(self), pinfo, guidactivity, clsid, tsid, ctxtid, objectid).ok() } pub unsafe fn OnObjectDestroy(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjectDestroy)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid)).ok() + (windows_core::Interface::vtable(self).OnObjectDestroy)(windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } } #[repr(C)] @@ -2978,19 +2978,19 @@ windows_core::imp::define_interface!(IComLTxEvents, IComLTxEvents_Vtbl, 0x605cf8 windows_core::imp::interface_hierarchy!(IComLTxEvents, windows_core::IUnknown); impl IComLTxEvents { pub unsafe fn OnLtxTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, tsid: windows_core::GUID, froot: bool, nisolationlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLtxTransactionStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidltx), core::mem::transmute(tsid), froot.into(), core::mem::transmute(nisolationlevel)).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionStart)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), core::mem::transmute(tsid), froot.into(), nisolationlevel).ok() } pub unsafe fn OnLtxTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, fvote: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLtxTransactionPrepare)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidltx), fvote.into()).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionPrepare)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), fvote.into()).ok() } pub unsafe fn OnLtxTransactionAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLtxTransactionAbort)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidltx)).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionAbort)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx)).ok() } pub unsafe fn OnLtxTransactionCommit(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLtxTransactionCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidltx)).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionCommit)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx)).ok() } pub unsafe fn OnLtxTransactionPromote(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, txnid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLtxTransactionPromote)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidltx), core::mem::transmute(txnid)).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionPromote)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), core::mem::transmute(txnid)).ok() } } #[repr(C)] @@ -3049,13 +3049,13 @@ windows_core::imp::define_interface!(IComMethod2Events, IComMethod2Events_Vtbl, windows_core::imp::interface_hierarchy!(IComMethod2Events, windows_core::IUnknown); impl IComMethod2Events { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnMethodCall2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(oid), core::mem::transmute(guidcid), core::mem::transmute(guidrid), core::mem::transmute(dwthread), core::mem::transmute(imeth)).ok() + (windows_core::Interface::vtable(self).OnMethodCall2)(windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, dwthread, imeth).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnMethodReturn2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(oid), core::mem::transmute(guidcid), core::mem::transmute(guidrid), core::mem::transmute(dwthread), core::mem::transmute(imeth), core::mem::transmute(hresult)).ok() + (windows_core::Interface::vtable(self).OnMethodReturn2)(windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, dwthread, imeth, hresult).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnMethodException2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(oid), core::mem::transmute(guidcid), core::mem::transmute(guidrid), core::mem::transmute(dwthread), core::mem::transmute(imeth)).ok() + (windows_core::Interface::vtable(self).OnMethodException2)(windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, dwthread, imeth).ok() } } #[repr(C)] @@ -3100,13 +3100,13 @@ windows_core::imp::define_interface!(IComMethodEvents, IComMethodEvents_Vtbl, 0x windows_core::imp::interface_hierarchy!(IComMethodEvents, windows_core::IUnknown); impl IComMethodEvents { pub unsafe fn OnMethodCall(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMethodCall)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(oid), core::mem::transmute(guidcid), core::mem::transmute(guidrid), core::mem::transmute(imeth)).ok() + (windows_core::Interface::vtable(self).OnMethodCall)(windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, imeth).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnMethodReturn)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(oid), core::mem::transmute(guidcid), core::mem::transmute(guidrid), core::mem::transmute(imeth), core::mem::transmute(hresult)).ok() + (windows_core::Interface::vtable(self).OnMethodReturn)(windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, imeth, hresult).ok() } pub unsafe fn OnMethodException(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMethodException)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(oid), core::mem::transmute(guidcid), core::mem::transmute(guidrid), core::mem::transmute(imeth)).ok() + (windows_core::Interface::vtable(self).OnMethodException)(windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, imeth).ok() } } #[repr(C)] @@ -3151,14 +3151,14 @@ windows_core::imp::define_interface!(IComMtaThreadPoolKnobs, IComMtaThreadPoolKn windows_core::imp::interface_hierarchy!(IComMtaThreadPoolKnobs, windows_core::IUnknown); impl IComMtaThreadPoolKnobs { pub unsafe fn MTASetMaxThreadCount(&self, dwmaxthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MTASetMaxThreadCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxthreads)).ok() + (windows_core::Interface::vtable(self).MTASetMaxThreadCount)(windows_core::Interface::as_raw(self), dwmaxthreads).ok() } pub unsafe fn MTAGetMaxThreadCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MTAGetMaxThreadCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn MTASetThrottleValue(&self, dwthrottle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MTASetThrottleValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthrottle)).ok() + (windows_core::Interface::vtable(self).MTASetThrottleValue)(windows_core::Interface::as_raw(self), dwthrottle).ok() } pub unsafe fn MTAGetThrottleValue(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3229,7 +3229,7 @@ impl IComObjectConstruction2Events { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnObjectConstruct2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), sconstructstring.param().abi(), core::mem::transmute(oid), core::mem::transmute(guidpartition)).ok() + (windows_core::Interface::vtable(self).OnObjectConstruct2)(windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.param().abi(), oid, guidpartition).ok() } } #[repr(C)] @@ -3260,7 +3260,7 @@ impl IComObjectConstructionEvents { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnObjectConstruct)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), sconstructstring.param().abi(), core::mem::transmute(oid)).ok() + (windows_core::Interface::vtable(self).OnObjectConstruct)(windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.param().abi(), oid).ok() } } #[repr(C)] @@ -3288,22 +3288,22 @@ windows_core::imp::define_interface!(IComObjectEvents, IComObjectEvents_Vtbl, 0x windows_core::imp::interface_hierarchy!(IComObjectEvents, windows_core::IUnknown); impl IComObjectEvents { pub unsafe fn OnObjectActivate(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjectActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid), core::mem::transmute(objectid)).ok() + (windows_core::Interface::vtable(self).OnObjectActivate)(windows_core::Interface::as_raw(self), pinfo, ctxtid, objectid).ok() } pub unsafe fn OnObjectDeactivate(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjectDeactivate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid), core::mem::transmute(objectid)).ok() + (windows_core::Interface::vtable(self).OnObjectDeactivate)(windows_core::Interface::as_raw(self), pinfo, ctxtid, objectid).ok() } pub unsafe fn OnDisableCommit(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDisableCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid)).ok() + (windows_core::Interface::vtable(self).OnDisableCommit)(windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } pub unsafe fn OnEnableCommit(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnEnableCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid)).ok() + (windows_core::Interface::vtable(self).OnEnableCommit)(windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } pub unsafe fn OnSetComplete(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSetComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid)).ok() + (windows_core::Interface::vtable(self).OnSetComplete)(windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } pub unsafe fn OnSetAbort(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSetAbort)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(ctxtid)).ok() + (windows_core::Interface::vtable(self).OnSetAbort)(windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } } #[repr(C)] @@ -3369,16 +3369,16 @@ windows_core::imp::define_interface!(IComObjectPool2Events, IComObjectPool2Event windows_core::imp::interface_hierarchy!(IComObjectPool2Events, windows_core::IUnknown); impl IComObjectPool2Events { pub unsafe fn OnObjPoolPutObject2(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolPutObject2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), core::mem::transmute(nreason), core::mem::transmute(dwavailable), core::mem::transmute(oid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolPutObject2)(windows_core::Interface::as_raw(self), pinfo, guidobject, nreason, dwavailable, oid).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnObjPoolGetObject2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(guidobject), core::mem::transmute(dwavailable), core::mem::transmute(oid), core::mem::transmute(guidpartition)).ok() + (windows_core::Interface::vtable(self).OnObjPoolGetObject2)(windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, dwavailable, oid, guidpartition).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnObjPoolRecycleToTx2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(guidobject), core::mem::transmute(guidtx), core::mem::transmute(objid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolRecycleToTx2)(windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, guidtx, objid).ok() } pub unsafe fn OnObjPoolGetFromTx2(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolGetFromTx2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(guidobject), core::mem::transmute(guidtx), core::mem::transmute(objid), core::mem::transmute(guidpartition)).ok() + (windows_core::Interface::vtable(self).OnObjPoolGetFromTx2)(windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, guidtx, objid, guidpartition).ok() } } #[repr(C)] @@ -3430,16 +3430,16 @@ windows_core::imp::define_interface!(IComObjectPoolEvents, IComObjectPoolEvents_ windows_core::imp::interface_hierarchy!(IComObjectPoolEvents, windows_core::IUnknown); impl IComObjectPoolEvents { pub unsafe fn OnObjPoolPutObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolPutObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), core::mem::transmute(nreason), core::mem::transmute(dwavailable), core::mem::transmute(oid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolPutObject)(windows_core::Interface::as_raw(self), pinfo, guidobject, nreason, dwavailable, oid).ok() } pub unsafe fn OnObjPoolGetObject(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolGetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(guidobject), core::mem::transmute(dwavailable), core::mem::transmute(oid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolGetObject)(windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, dwavailable, oid).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnObjPoolRecycleToTx)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(guidobject), core::mem::transmute(guidtx), core::mem::transmute(objid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolRecycleToTx)(windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, guidtx, objid).ok() } pub unsafe fn OnObjPoolGetFromTx(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolGetFromTx)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(guidobject), core::mem::transmute(guidtx), core::mem::transmute(objid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolGetFromTx)(windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, guidtx, objid).ok() } } #[repr(C)] @@ -3491,19 +3491,19 @@ windows_core::imp::define_interface!(IComObjectPoolEvents2, IComObjectPoolEvents windows_core::imp::interface_hierarchy!(IComObjectPoolEvents2, windows_core::IUnknown); impl IComObjectPoolEvents2 { pub unsafe fn OnObjPoolCreateObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolCreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), core::mem::transmute(dwobjscreated), core::mem::transmute(oid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolCreateObject)(windows_core::Interface::as_raw(self), pinfo, guidobject, dwobjscreated, oid).ok() } pub unsafe fn OnObjPoolDestroyObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolDestroyObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), core::mem::transmute(dwobjscreated), core::mem::transmute(oid)).ok() + (windows_core::Interface::vtable(self).OnObjPoolDestroyObject)(windows_core::Interface::as_raw(self), pinfo, guidobject, dwobjscreated, oid).ok() } pub unsafe fn OnObjPoolCreateDecision(&self, pinfo: *const COMSVCSEVENTINFO, dwthreadswaiting: u32, dwavail: u32, dwcreated: u32, dwmin: u32, dwmax: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolCreateDecision)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(dwthreadswaiting), core::mem::transmute(dwavail), core::mem::transmute(dwcreated), core::mem::transmute(dwmin), core::mem::transmute(dwmax)).ok() + (windows_core::Interface::vtable(self).OnObjPoolCreateDecision)(windows_core::Interface::as_raw(self), pinfo, dwthreadswaiting, dwavail, dwcreated, dwmin, dwmax).ok() } pub unsafe fn OnObjPoolTimeout(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, guidactivity: *const windows_core::GUID, dwtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), core::mem::transmute(guidactivity), core::mem::transmute(dwtimeout)).ok() + (windows_core::Interface::vtable(self).OnObjPoolTimeout)(windows_core::Interface::as_raw(self), pinfo, guidobject, guidactivity, dwtimeout).ok() } pub unsafe fn OnObjPoolCreatePool(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwmin: u32, dwmax: u32, dwtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnObjPoolCreatePool)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidobject), core::mem::transmute(dwmin), core::mem::transmute(dwmax), core::mem::transmute(dwtimeout)).ok() + (windows_core::Interface::vtable(self).OnObjPoolCreatePool)(windows_core::Interface::as_raw(self), pinfo, guidobject, dwmin, dwmax, dwtimeout).ok() } } #[repr(C)] @@ -3562,25 +3562,25 @@ windows_core::imp::define_interface!(IComQCEvents, IComQCEvents_Vtbl, 0x683130b2 windows_core::imp::interface_hierarchy!(IComQCEvents, windows_core::IUnknown); impl IComQCEvents { pub unsafe fn OnQCRecord(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, szqueue: &[u16; 60], guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, msmqhr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnQCRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objid), core::mem::transmute(szqueue.as_ptr()), core::mem::transmute(guidmsgid), core::mem::transmute(guidworkflowid), core::mem::transmute(msmqhr)).ok() + (windows_core::Interface::vtable(self).OnQCRecord)(windows_core::Interface::as_raw(self), pinfo, objid, core::mem::transmute(szqueue.as_ptr()), guidmsgid, guidworkflowid, msmqhr).ok() } pub unsafe fn OnQCQueueOpen(&self, pinfo: *const COMSVCSEVENTINFO, szqueue: &[u16; 60], queueid: u64, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnQCQueueOpen)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(szqueue.as_ptr()), core::mem::transmute(queueid), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).OnQCQueueOpen)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(szqueue.as_ptr()), queueid, hr).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnQCReceive)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(queueid), core::mem::transmute(guidmsgid), core::mem::transmute(guidworkflowid), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).OnQCReceive)(windows_core::Interface::as_raw(self), pinfo, queueid, guidmsgid, guidworkflowid, hr).ok() } pub unsafe fn OnQCReceiveFail(&self, pinfo: *const COMSVCSEVENTINFO, queueid: u64, msmqhr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnQCReceiveFail)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(queueid), core::mem::transmute(msmqhr)).ok() + (windows_core::Interface::vtable(self).OnQCReceiveFail)(windows_core::Interface::as_raw(self), pinfo, queueid, msmqhr).ok() } pub unsafe fn OnQCMoveToReTryQueue(&self, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, retryindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnQCMoveToReTryQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidmsgid), core::mem::transmute(guidworkflowid), core::mem::transmute(retryindex)).ok() + (windows_core::Interface::vtable(self).OnQCMoveToReTryQueue)(windows_core::Interface::as_raw(self), pinfo, guidmsgid, guidworkflowid, retryindex).ok() } pub unsafe fn OnQCMoveToDeadQueue(&self, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnQCMoveToDeadQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidmsgid), core::mem::transmute(guidworkflowid)).ok() + (windows_core::Interface::vtable(self).OnQCMoveToDeadQueue)(windows_core::Interface::as_raw(self), pinfo, guidmsgid, guidworkflowid).ok() } pub unsafe fn OnQCPlayback(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnQCPlayback)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objid), core::mem::transmute(guidmsgid), core::mem::transmute(guidworkflowid), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).OnQCPlayback)(windows_core::Interface::as_raw(self), pinfo, objid, guidmsgid, guidworkflowid, hr).ok() } } #[repr(C)] @@ -3656,31 +3656,31 @@ impl IComResourceEvents { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceCreate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objectid), psztype.param().abi(), core::mem::transmute(resid), enlisted.into()).ok() + (windows_core::Interface::vtable(self).OnResourceCreate)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid, enlisted.into()).ok() } pub unsafe fn OnResourceAllocate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P2, resid: u64, enlisted: bool, numrated: u32, rating: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceAllocate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objectid), psztype.param().abi(), core::mem::transmute(resid), enlisted.into(), core::mem::transmute(numrated), core::mem::transmute(rating)).ok() + (windows_core::Interface::vtable(self).OnResourceAllocate)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid, enlisted.into(), numrated, rating).ok() } pub unsafe fn OnResourceRecycle(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P2, resid: u64) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceRecycle)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objectid), psztype.param().abi(), core::mem::transmute(resid)).ok() + (windows_core::Interface::vtable(self).OnResourceRecycle)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid).ok() } pub unsafe fn OnResourceDestroy(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, hr: windows_core::HRESULT, psztype: P3, resid: u64) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceDestroy)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objectid), core::mem::transmute(hr), psztype.param().abi(), core::mem::transmute(resid)).ok() + (windows_core::Interface::vtable(self).OnResourceDestroy)(windows_core::Interface::as_raw(self), pinfo, objectid, hr, psztype.param().abi(), resid).ok() } pub unsafe fn OnResourceTrack(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P2, resid: u64, enlisted: bool) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceTrack)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(objectid), psztype.param().abi(), core::mem::transmute(resid), enlisted.into()).ok() + (windows_core::Interface::vtable(self).OnResourceTrack)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid, enlisted.into()).ok() } } #[repr(C)] @@ -3739,10 +3739,10 @@ windows_core::imp::define_interface!(IComSecurityEvents, IComSecurityEvents_Vtbl windows_core::imp::interface_hierarchy!(IComSecurityEvents, windows_core::IUnknown); impl IComSecurityEvents { pub unsafe fn OnAuthenticate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, psidoriginaluser: &[u8], psidcurrentuser: &[u8], bcurrentuserinpersonatinginproc: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAuthenticate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(objectid), core::mem::transmute(guidiid), core::mem::transmute(imeth), psidoriginaluser.len().try_into().unwrap(), core::mem::transmute(psidoriginaluser.as_ptr()), psidcurrentuser.len().try_into().unwrap(), core::mem::transmute(psidcurrentuser.as_ptr()), bcurrentuserinpersonatinginproc.into()).ok() + (windows_core::Interface::vtable(self).OnAuthenticate)(windows_core::Interface::as_raw(self), pinfo, guidactivity, objectid, guidiid, imeth, psidoriginaluser.len().try_into().unwrap(), core::mem::transmute(psidoriginaluser.as_ptr()), psidcurrentuser.len().try_into().unwrap(), core::mem::transmute(psidcurrentuser.as_ptr()), bcurrentuserinpersonatinginproc.into()).ok() } pub unsafe fn OnAuthenticateFail(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, psidoriginaluser: &[u8], psidcurrentuser: &[u8], bcurrentuserinpersonatinginproc: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAuthenticateFail)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(objectid), core::mem::transmute(guidiid), core::mem::transmute(imeth), psidoriginaluser.len().try_into().unwrap(), core::mem::transmute(psidoriginaluser.as_ptr()), psidcurrentuser.len().try_into().unwrap(), core::mem::transmute(psidcurrentuser.as_ptr()), bcurrentuserinpersonatinginproc.into()).ok() + (windows_core::Interface::vtable(self).OnAuthenticateFail)(windows_core::Interface::as_raw(self), pinfo, guidactivity, objectid, guidiid, imeth, psidoriginaluser.len().try_into().unwrap(), core::mem::transmute(psidoriginaluser.as_ptr()), psidcurrentuser.len().try_into().unwrap(), core::mem::transmute(psidcurrentuser.as_ptr()), bcurrentuserinpersonatinginproc.into()).ok() } } #[repr(C)] @@ -3780,28 +3780,28 @@ windows_core::imp::define_interface!(IComStaThreadPoolKnobs, IComStaThreadPoolKn windows_core::imp::interface_hierarchy!(IComStaThreadPoolKnobs, windows_core::IUnknown); impl IComStaThreadPoolKnobs { pub unsafe fn SetMinThreadCount(&self, minthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinThreadCount)(windows_core::Interface::as_raw(self), core::mem::transmute(minthreads)).ok() + (windows_core::Interface::vtable(self).SetMinThreadCount)(windows_core::Interface::as_raw(self), minthreads).ok() } pub unsafe fn GetMinThreadCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMinThreadCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxThreadCount(&self, maxthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxThreadCount)(windows_core::Interface::as_raw(self), core::mem::transmute(maxthreads)).ok() + (windows_core::Interface::vtable(self).SetMaxThreadCount)(windows_core::Interface::as_raw(self), maxthreads).ok() } pub unsafe fn GetMaxThreadCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMaxThreadCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetActivityPerThread(&self, activitiesperthread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActivityPerThread)(windows_core::Interface::as_raw(self), core::mem::transmute(activitiesperthread)).ok() + (windows_core::Interface::vtable(self).SetActivityPerThread)(windows_core::Interface::as_raw(self), activitiesperthread).ok() } pub unsafe fn GetActivityPerThread(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetActivityPerThread)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetActivityRatio(&self, activityratio: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActivityRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(activityratio)).ok() + (windows_core::Interface::vtable(self).SetActivityRatio)(windows_core::Interface::as_raw(self), activityratio).ok() } pub unsafe fn GetActivityRatio(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3816,7 +3816,7 @@ impl IComStaThreadPoolKnobs { (windows_core::Interface::vtable(self).GetQueueDepth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQueueDepth(&self, dwqdepth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueueDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwqdepth)).ok() + (windows_core::Interface::vtable(self).SetQueueDepth)(windows_core::Interface::as_raw(self), dwqdepth).ok() } } #[repr(C)] @@ -3963,7 +3963,7 @@ impl IComStaThreadPoolKnobs2 { (windows_core::Interface::vtable(self).GetMaxCPULoad)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxCPULoad(&self, pdwload: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxCPULoad)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwload)).ok() + (windows_core::Interface::vtable(self).SetMaxCPULoad)(windows_core::Interface::as_raw(self), pdwload).ok() } pub unsafe fn GetCPUMetricEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3984,14 +3984,14 @@ impl IComStaThreadPoolKnobs2 { (windows_core::Interface::vtable(self).GetMaxCSR)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxCSR(&self, dwcsr: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxCSR)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcsr)).ok() + (windows_core::Interface::vtable(self).SetMaxCSR)(windows_core::Interface::as_raw(self), dwcsr).ok() } pub unsafe fn GetWaitTimeForThreadCleanup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetWaitTimeForThreadCleanup)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWaitTimeForThreadCleanup(&self, dwthreadcleanupwaittime: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWaitTimeForThreadCleanup)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadcleanupwaittime)).ok() + (windows_core::Interface::vtable(self).SetWaitTimeForThreadCleanup)(windows_core::Interface::as_raw(self), dwthreadcleanupwaittime).ok() } } #[repr(C)] @@ -4115,37 +4115,37 @@ windows_core::imp::define_interface!(IComThreadEvents, IComThreadEvents_Vtbl, 0x windows_core::imp::interface_hierarchy!(IComThreadEvents, windows_core::IUnknown); impl IComThreadEvents { pub unsafe fn OnThreadStart(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(dwthread), core::mem::transmute(dwtheadcnt)).ok() + (windows_core::Interface::vtable(self).OnThreadStart)(windows_core::Interface::as_raw(self), pinfo, threadid, dwthread, dwtheadcnt).ok() } pub unsafe fn OnThreadTerminate(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadTerminate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(dwthread), core::mem::transmute(dwtheadcnt)).ok() + (windows_core::Interface::vtable(self).OnThreadTerminate)(windows_core::Interface::as_raw(self), pinfo, threadid, dwthread, dwtheadcnt).ok() } pub unsafe fn OnThreadBindToApartment(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32, dwlowcnt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadBindToApartment)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(aptid), core::mem::transmute(dwactcnt), core::mem::transmute(dwlowcnt)).ok() + (windows_core::Interface::vtable(self).OnThreadBindToApartment)(windows_core::Interface::as_raw(self), pinfo, threadid, aptid, dwactcnt, dwlowcnt).ok() } pub unsafe fn OnThreadUnBind(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadUnBind)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(aptid), core::mem::transmute(dwactcnt)).ok() + (windows_core::Interface::vtable(self).OnThreadUnBind)(windows_core::Interface::as_raw(self), pinfo, threadid, aptid, dwactcnt).ok() } pub unsafe fn OnThreadWorkEnque(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadWorkEnque)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(msgworkid), core::mem::transmute(queuelen)).ok() + (windows_core::Interface::vtable(self).OnThreadWorkEnque)(windows_core::Interface::as_raw(self), pinfo, threadid, msgworkid, queuelen).ok() } pub unsafe fn OnThreadWorkPrivate(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadWorkPrivate)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(msgworkid)).ok() + (windows_core::Interface::vtable(self).OnThreadWorkPrivate)(windows_core::Interface::as_raw(self), pinfo, threadid, msgworkid).ok() } pub unsafe fn OnThreadWorkPublic(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadWorkPublic)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(msgworkid), core::mem::transmute(queuelen)).ok() + (windows_core::Interface::vtable(self).OnThreadWorkPublic)(windows_core::Interface::as_raw(self), pinfo, threadid, msgworkid, queuelen).ok() } pub unsafe fn OnThreadWorkRedirect(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32, threadnum: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadWorkRedirect)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(msgworkid), core::mem::transmute(queuelen), core::mem::transmute(threadnum)).ok() + (windows_core::Interface::vtable(self).OnThreadWorkRedirect)(windows_core::Interface::as_raw(self), pinfo, threadid, msgworkid, queuelen, threadnum).ok() } pub unsafe fn OnThreadWorkReject(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadWorkReject)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(threadid), core::mem::transmute(msgworkid), core::mem::transmute(queuelen)).ok() + (windows_core::Interface::vtable(self).OnThreadWorkReject)(windows_core::Interface::as_raw(self), pinfo, threadid, msgworkid, queuelen).ok() } pub unsafe fn OnThreadAssignApartment(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, aptid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadAssignApartment)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidactivity), core::mem::transmute(aptid)).ok() + (windows_core::Interface::vtable(self).OnThreadAssignApartment)(windows_core::Interface::as_raw(self), pinfo, guidactivity, aptid).ok() } pub unsafe fn OnThreadUnassignApartment(&self, pinfo: *const COMSVCSEVENTINFO, aptid: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadUnassignApartment)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(aptid)).ok() + (windows_core::Interface::vtable(self).OnThreadUnassignApartment)(windows_core::Interface::as_raw(self), pinfo, aptid).ok() } } #[repr(C)] @@ -4254,7 +4254,7 @@ impl IComTrackingInfoCollection { (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Item(&self, ulindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), ulindex, riid, core::mem::transmute(ppv)).ok() } } #[repr(C)] @@ -4392,7 +4392,7 @@ impl IComTrackingInfoProperties { } pub unsafe fn GetPropName(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropName)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPropName)(windows_core::Interface::as_raw(self), ulindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -4442,16 +4442,16 @@ windows_core::imp::define_interface!(IComTransaction2Events, IComTransaction2Eve windows_core::imp::interface_hierarchy!(IComTransaction2Events, windows_core::IUnknown); impl IComTransaction2Events { pub unsafe fn OnTransactionStart2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: bool, nisolationlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionStart2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx), core::mem::transmute(tsid), froot.into(), core::mem::transmute(nisolationlevel)).ok() + (windows_core::Interface::vtable(self).OnTransactionStart2)(windows_core::Interface::as_raw(self), pinfo, guidtx, tsid, froot.into(), nisolationlevel).ok() } pub unsafe fn OnTransactionPrepare2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionPrepare2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx), fvoteyes.into()).ok() + (windows_core::Interface::vtable(self).OnTransactionPrepare2)(windows_core::Interface::as_raw(self), pinfo, guidtx, fvoteyes.into()).ok() } pub unsafe fn OnTransactionAbort2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionAbort2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx)).ok() + (windows_core::Interface::vtable(self).OnTransactionAbort2)(windows_core::Interface::as_raw(self), pinfo, guidtx).ok() } pub unsafe fn OnTransactionCommit2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionCommit2)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx)).ok() + (windows_core::Interface::vtable(self).OnTransactionCommit2)(windows_core::Interface::as_raw(self), pinfo, guidtx).ok() } } #[repr(C)] @@ -4503,16 +4503,16 @@ windows_core::imp::define_interface!(IComTransactionEvents, IComTransactionEvent windows_core::imp::interface_hierarchy!(IComTransactionEvents, windows_core::IUnknown); impl IComTransactionEvents { pub unsafe fn OnTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx), core::mem::transmute(tsid), froot.into()).ok() + (windows_core::Interface::vtable(self).OnTransactionStart)(windows_core::Interface::as_raw(self), pinfo, guidtx, tsid, froot.into()).ok() } pub unsafe fn OnTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionPrepare)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx), fvoteyes.into()).ok() + (windows_core::Interface::vtable(self).OnTransactionPrepare)(windows_core::Interface::as_raw(self), pinfo, guidtx, fvoteyes.into()).ok() } pub unsafe fn OnTransactionAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionAbort)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx)).ok() + (windows_core::Interface::vtable(self).OnTransactionAbort)(windows_core::Interface::as_raw(self), pinfo, guidtx).ok() } pub unsafe fn OnTransactionCommit(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTransactionCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(guidtx)).ok() + (windows_core::Interface::vtable(self).OnTransactionCommit)(windows_core::Interface::as_raw(self), pinfo, guidtx).ok() } } #[repr(C)] @@ -4565,7 +4565,7 @@ windows_core::imp::interface_hierarchy!(IComUserEvent, windows_core::IUnknown); impl IComUserEvent { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn OnUserEvent(&self, pinfo: *const COMSVCSEVENTINFO, pvarevent: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUserEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo), core::mem::transmute(pvarevent)).ok() + (windows_core::Interface::vtable(self).OnUserEvent)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(pvarevent)).ok() } } #[repr(C)] @@ -4729,13 +4729,13 @@ windows_core::imp::define_interface!(IContextState, IContextState_Vtbl, 0x3c05e5 windows_core::imp::interface_hierarchy!(IContextState, windows_core::IUnknown); impl IContextState { pub unsafe fn SetDeactivateOnReturn(&self, bdeactivate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeactivateOnReturn)(windows_core::Interface::as_raw(self), core::mem::transmute(bdeactivate)).ok() + (windows_core::Interface::vtable(self).SetDeactivateOnReturn)(windows_core::Interface::as_raw(self), bdeactivate).ok() } pub unsafe fn GetDeactivateOnReturn(&self, pbdeactivate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeactivateOnReturn)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdeactivate)).ok() } pub unsafe fn SetMyTransactionVote(&self, txvote: TransactionVote) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMyTransactionVote)(windows_core::Interface::as_raw(self), core::mem::transmute(txvote)).ok() + (windows_core::Interface::vtable(self).SetMyTransactionVote)(windows_core::Interface::as_raw(self), txvote).ok() } pub unsafe fn GetMyTransactionVote(&self, ptxvote: *mut TransactionVote) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMyTransactionVote)(windows_core::Interface::as_raw(self), core::mem::transmute(ptxvote)).ok() @@ -4793,7 +4793,7 @@ impl ICreateWithLocalTransaction { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstanceWithSysTx)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(pobject)).ok() + (windows_core::Interface::vtable(self).CreateInstanceWithSysTx)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), rclsid, riid, core::mem::transmute(pobject)).ok() } } #[repr(C)] @@ -4825,7 +4825,7 @@ impl ICreateWithTipTransactionEx { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtipurl), core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtipurl), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4859,7 +4859,7 @@ impl ICreateWithTransactionEx { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5078,7 +5078,7 @@ impl ICrmCompensatorVariants { (windows_core::Interface::vtable(self).EndPrepareVariants)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn BeginCommitVariants(&self, brecovery: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginCommitVariants)(windows_core::Interface::as_raw(self), core::mem::transmute(brecovery)).ok() + (windows_core::Interface::vtable(self).BeginCommitVariants)(windows_core::Interface::as_raw(self), brecovery).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CommitRecordVariants(&self, plogrecord: *const super::Variant::VARIANT) -> windows_core::Result { @@ -5089,7 +5089,7 @@ impl ICrmCompensatorVariants { (windows_core::Interface::vtable(self).EndCommitVariants)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn BeginAbortVariants(&self, brecovery: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginAbortVariants)(windows_core::Interface::as_raw(self), core::mem::transmute(brecovery)).ok() + (windows_core::Interface::vtable(self).BeginAbortVariants)(windows_core::Interface::as_raw(self), brecovery).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AbortRecordVariants(&self, plogrecord: *const super::Variant::VARIANT) -> windows_core::Result { @@ -5339,7 +5339,7 @@ impl ICrmLogControl { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterCompensator)(windows_core::Interface::as_raw(self), lpcwstrprogidcompensator.param().abi(), lpcwstrdescription.param().abi(), core::mem::transmute(lcrmregflags)).ok() + (windows_core::Interface::vtable(self).RegisterCompensator)(windows_core::Interface::as_raw(self), lpcwstrprogidcompensator.param().abi(), lpcwstrdescription.param().abi(), lcrmregflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn WriteLogRecordVariants(&self, plogrecord: *const super::Variant::VARIANT) -> windows_core::Result<()> { @@ -5697,7 +5697,7 @@ impl ICrmMonitorLogRecords { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetLogRecord(&self, dwindex: u32, pcrmlogrec: *mut CrmLogRecordRead) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLogRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pcrmlogrec)).ok() + (windows_core::Interface::vtable(self).GetLogRecord)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pcrmlogrec)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetLogRecordVariants(&self, indexnumber: &super::Variant::VARIANT) -> windows_core::Result { @@ -5794,19 +5794,19 @@ windows_core::imp::define_interface!(IDispenserDriver, IDispenserDriver_Vtbl, 0x windows_core::imp::interface_hierarchy!(IDispenserDriver, windows_core::IUnknown); impl IDispenserDriver { pub unsafe fn CreateResource(&self, restypid: usize, presid: *mut usize, psecsfreebeforedestroy: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateResource)(windows_core::Interface::as_raw(self), core::mem::transmute(restypid), core::mem::transmute(presid), core::mem::transmute(psecsfreebeforedestroy)).ok() + (windows_core::Interface::vtable(self).CreateResource)(windows_core::Interface::as_raw(self), restypid, core::mem::transmute(presid), core::mem::transmute(psecsfreebeforedestroy)).ok() } pub unsafe fn RateResource(&self, restypid: usize, resid: usize, frequirestransactionenlistment: bool, prating: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RateResource)(windows_core::Interface::as_raw(self), core::mem::transmute(restypid), core::mem::transmute(resid), frequirestransactionenlistment.into(), core::mem::transmute(prating)).ok() + (windows_core::Interface::vtable(self).RateResource)(windows_core::Interface::as_raw(self), restypid, resid, frequirestransactionenlistment.into(), core::mem::transmute(prating)).ok() } pub unsafe fn EnlistResource(&self, resid: usize, transid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnlistResource)(windows_core::Interface::as_raw(self), core::mem::transmute(resid), core::mem::transmute(transid)).ok() + (windows_core::Interface::vtable(self).EnlistResource)(windows_core::Interface::as_raw(self), resid, transid).ok() } pub unsafe fn ResetResource(&self, resid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetResource)(windows_core::Interface::as_raw(self), core::mem::transmute(resid)).ok() + (windows_core::Interface::vtable(self).ResetResource)(windows_core::Interface::as_raw(self), resid).ok() } pub unsafe fn DestroyResource(&self, resid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyResource)(windows_core::Interface::as_raw(self), core::mem::transmute(resid)).ok() + (windows_core::Interface::vtable(self).DestroyResource)(windows_core::Interface::as_raw(self), resid).ok() } pub unsafe fn DestroyResourceS(&self, resid: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DestroyResourceS)(windows_core::Interface::as_raw(self), core::mem::transmute(resid)).ok() @@ -5927,10 +5927,10 @@ windows_core::imp::define_interface!(IEnumNames, IEnumNames_Vtbl, 0x51372af2_cae windows_core::imp::interface_hierarchy!(IEnumNames, windows_core::IUnknown); impl IEnumNames { pub unsafe fn Next(&self, celt: u32, rgname: *mut windows_core::BSTR, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgname), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgname), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6005,10 +6005,10 @@ windows_core::imp::interface_hierarchy!(IEventServerTrace, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl IEventServerTrace { pub unsafe fn StartTraceGuid(&self, bstrguidevent: &windows_core::BSTR, bstrguidfilter: &windows_core::BSTR, lpidfilter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartTraceGuid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguidevent), core::mem::transmute_copy(bstrguidfilter), core::mem::transmute(lpidfilter)).ok() + (windows_core::Interface::vtable(self).StartTraceGuid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguidevent), core::mem::transmute_copy(bstrguidfilter), lpidfilter).ok() } pub unsafe fn StopTraceGuid(&self, bstrguidevent: &windows_core::BSTR, bstrguidfilter: &windows_core::BSTR, lpidfilter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopTraceGuid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguidevent), core::mem::transmute_copy(bstrguidfilter), core::mem::transmute(lpidfilter)).ok() + (windows_core::Interface::vtable(self).StopTraceGuid)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrguidevent), core::mem::transmute_copy(bstrguidfilter), lpidfilter).ok() } pub unsafe fn EnumTraceGuid(&self, plcntguids: *mut i32, pbstrguidlist: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumTraceGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(plcntguids), core::mem::transmute(pbstrguidlist)).ok() @@ -6060,19 +6060,19 @@ windows_core::imp::define_interface!(IGetAppTrackerData, IGetAppTrackerData_Vtbl windows_core::imp::interface_hierarchy!(IGetAppTrackerData, windows_core::IUnknown); impl IGetAppTrackerData { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetApplicationProcesses)(windows_core::Interface::as_raw(self), core::mem::transmute(partitionid), core::mem::transmute(applicationid), core::mem::transmute(flags), core::mem::transmute(numapplicationprocesses), core::mem::transmute(applicationprocesses)).ok() + (windows_core::Interface::vtable(self).GetApplicationProcesses)(windows_core::Interface::as_raw(self), partitionid, applicationid, flags, core::mem::transmute(numapplicationprocesses), core::mem::transmute(applicationprocesses)).ok() } pub unsafe fn GetApplicationProcessDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: Option<*mut ApplicationProcessSummary>, statistics: Option<*mut ApplicationProcessStatistics>, recycleinfo: Option<*mut ApplicationProcessRecycleInfo>, anycomponentshangmonitored: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetApplicationProcessDetails)(windows_core::Interface::as_raw(self), core::mem::transmute(applicationinstanceid), core::mem::transmute(processid), core::mem::transmute(flags), core::mem::transmute(summary.unwrap_or(core::mem::zeroed())), core::mem::transmute(statistics.unwrap_or(core::mem::zeroed())), core::mem::transmute(recycleinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(anycomponentshangmonitored.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetApplicationProcessDetails)(windows_core::Interface::as_raw(self), applicationinstanceid, processid, flags, core::mem::transmute(summary.unwrap_or(core::mem::zeroed())), core::mem::transmute(statistics.unwrap_or(core::mem::zeroed())), core::mem::transmute(recycleinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(anycomponentshangmonitored.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetApplicationsInProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(applicationinstanceid), core::mem::transmute(processid), core::mem::transmute(partitionid), core::mem::transmute(flags), core::mem::transmute(numapplicationsinprocess), core::mem::transmute(applications)).ok() + (windows_core::Interface::vtable(self).GetApplicationsInProcess)(windows_core::Interface::as_raw(self), applicationinstanceid, processid, partitionid, flags, core::mem::transmute(numapplicationsinprocess), core::mem::transmute(applications)).ok() } pub unsafe fn GetComponentsInProcess(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).GetComponentsInProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(applicationinstanceid), core::mem::transmute(processid), core::mem::transmute(partitionid), core::mem::transmute(applicationid), core::mem::transmute(flags), core::mem::transmute(numcomponentsinprocess), core::mem::transmute(components)).ok() + (windows_core::Interface::vtable(self).GetComponentsInProcess)(windows_core::Interface::as_raw(self), applicationinstanceid, processid, partitionid, applicationid, flags, core::mem::transmute(numcomponentsinprocess), core::mem::transmute(components)).ok() } pub unsafe fn GetComponentDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, clsid: *const windows_core::GUID, flags: u32, summary: Option<*mut ComponentSummary>, statistics: Option<*mut ComponentStatistics>, hangmonitorinfo: Option<*mut ComponentHangMonitorInfo>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetComponentDetails)(windows_core::Interface::as_raw(self), core::mem::transmute(applicationinstanceid), core::mem::transmute(processid), core::mem::transmute(clsid), core::mem::transmute(flags), core::mem::transmute(summary.unwrap_or(core::mem::zeroed())), core::mem::transmute(statistics.unwrap_or(core::mem::zeroed())), core::mem::transmute(hangmonitorinfo.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetComponentDetails)(windows_core::Interface::as_raw(self), applicationinstanceid, processid, clsid, flags, core::mem::transmute(summary.unwrap_or(core::mem::zeroed())), core::mem::transmute(statistics.unwrap_or(core::mem::zeroed())), core::mem::transmute(hangmonitorinfo.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTrackerDataAsCollectionObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6279,19 +6279,19 @@ windows_core::imp::define_interface!(IHolder, IHolder_Vtbl, 0xbf6a1850_2b45_11cf windows_core::imp::interface_hierarchy!(IHolder, windows_core::IUnknown); impl IHolder { pub unsafe fn AllocResource(&self, __midl__iholder0000: usize, __midl__iholder0001: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocResource)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0000), core::mem::transmute(__midl__iholder0001)).ok() + (windows_core::Interface::vtable(self).AllocResource)(windows_core::Interface::as_raw(self), __midl__iholder0000, core::mem::transmute(__midl__iholder0001)).ok() } pub unsafe fn FreeResource(&self, __midl__iholder0002: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeResource)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0002)).ok() + (windows_core::Interface::vtable(self).FreeResource)(windows_core::Interface::as_raw(self), __midl__iholder0002).ok() } pub unsafe fn TrackResource(&self, __midl__iholder0003: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TrackResource)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0003)).ok() + (windows_core::Interface::vtable(self).TrackResource)(windows_core::Interface::as_raw(self), __midl__iholder0003).ok() } pub unsafe fn TrackResourceS(&self, __midl__iholder0004: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TrackResourceS)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0004)).ok() } pub unsafe fn UntrackResource(&self, __midl__iholder0005: usize, __midl__iholder0006: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UntrackResource)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0005), __midl__iholder0006.into()).ok() + (windows_core::Interface::vtable(self).UntrackResource)(windows_core::Interface::as_raw(self), __midl__iholder0005, __midl__iholder0006.into()).ok() } pub unsafe fn UntrackResourceS(&self, __midl__iholder0007: *mut u16, __midl__iholder0008: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UntrackResourceS)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0007), __midl__iholder0008.into()).ok() @@ -6300,7 +6300,7 @@ impl IHolder { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RequestDestroyResource(&self, __midl__iholder0009: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestDestroyResource)(windows_core::Interface::as_raw(self), core::mem::transmute(__midl__iholder0009)).ok() + (windows_core::Interface::vtable(self).RequestDestroyResource)(windows_core::Interface::as_raw(self), __midl__iholder0009).ok() } } #[repr(C)] @@ -6801,7 +6801,7 @@ impl IMessageMover { (windows_core::Interface::vtable(self).CommitBatchSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCommitBatchSize(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCommitBatchSize)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetCommitBatchSize)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn MoveMessages(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7162,7 +7162,7 @@ impl IMtsGrp { } pub unsafe fn Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -7400,7 +7400,7 @@ windows_core::imp::define_interface!(IObjectContext, IObjectContext_Vtbl, 0x5137 windows_core::imp::interface_hierarchy!(IObjectContext, windows_core::IUnknown); impl IObjectContext { pub unsafe fn CreateInstance(&self, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), rclsid, riid, core::mem::transmute(ppv)).ok() } pub unsafe fn SetComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetComplete)(windows_core::Interface::as_raw(self)).ok() @@ -8026,7 +8026,7 @@ impl ISecurityCallersColl { } pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8204,7 +8204,7 @@ impl ISecurityProperty { } #[cfg(feature = "Win32_Security")] pub unsafe fn ReleaseSID(&self, psid: super::super::Security::PSID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseSID)(windows_core::Interface::as_raw(self), core::mem::transmute(psid)).ok() + (windows_core::Interface::vtable(self).ReleaseSID)(windows_core::Interface::as_raw(self), psid).ok() } } #[repr(C)] @@ -8321,10 +8321,10 @@ windows_core::imp::define_interface!(ISendMethodEvents, ISendMethodEvents_Vtbl, windows_core::imp::interface_hierarchy!(ISendMethodEvents, windows_core::IUnknown); impl ISendMethodEvents { pub unsafe fn SendMethodCall(&self, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMethodCall)(windows_core::Interface::as_raw(self), core::mem::transmute(pidentity), core::mem::transmute(riid), core::mem::transmute(dwmeth)).ok() + (windows_core::Interface::vtable(self).SendMethodCall)(windows_core::Interface::as_raw(self), pidentity, riid, dwmeth).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).SendMethodReturn)(windows_core::Interface::as_raw(self), core::mem::transmute(pidentity), core::mem::transmute(riid), core::mem::transmute(dwmeth), core::mem::transmute(hrcall), core::mem::transmute(hrserver)).ok() + (windows_core::Interface::vtable(self).SendMethodReturn)(windows_core::Interface::as_raw(self), pidentity, riid, dwmeth, hrcall, hrserver).ok() } } #[repr(C)] @@ -8457,7 +8457,7 @@ windows_core::imp::define_interface!(IServiceComTIIntrinsicsConfig, IServiceComT windows_core::imp::interface_hierarchy!(IServiceComTIIntrinsicsConfig, windows_core::IUnknown); impl IServiceComTIIntrinsicsConfig { pub unsafe fn ComTIIntrinsicsConfig(&self, comtiintrinsicsconfig: CSC_COMTIIntrinsicsConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ComTIIntrinsicsConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(comtiintrinsicsconfig)).ok() + (windows_core::Interface::vtable(self).ComTIIntrinsicsConfig)(windows_core::Interface::as_raw(self), comtiintrinsicsconfig).ok() } } #[repr(C)] @@ -8485,7 +8485,7 @@ windows_core::imp::define_interface!(IServiceIISIntrinsicsConfig, IServiceIISInt windows_core::imp::interface_hierarchy!(IServiceIISIntrinsicsConfig, windows_core::IUnknown); impl IServiceIISIntrinsicsConfig { pub unsafe fn IISIntrinsicsConfig(&self, iisintrinsicsconfig: CSC_IISIntrinsicsConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IISIntrinsicsConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(iisintrinsicsconfig)).ok() + (windows_core::Interface::vtable(self).IISIntrinsicsConfig)(windows_core::Interface::as_raw(self), iisintrinsicsconfig).ok() } } #[repr(C)] @@ -8513,7 +8513,7 @@ windows_core::imp::define_interface!(IServiceInheritanceConfig, IServiceInherita windows_core::imp::interface_hierarchy!(IServiceInheritanceConfig, windows_core::IUnknown); impl IServiceInheritanceConfig { pub unsafe fn ContainingContextTreatment(&self, inheritanceconfig: CSC_InheritanceConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ContainingContextTreatment)(windows_core::Interface::as_raw(self), core::mem::transmute(inheritanceconfig)).ok() + (windows_core::Interface::vtable(self).ContainingContextTreatment)(windows_core::Interface::as_raw(self), inheritanceconfig).ok() } } #[repr(C)] @@ -8541,10 +8541,10 @@ windows_core::imp::define_interface!(IServicePartitionConfig, IServicePartitionC windows_core::imp::interface_hierarchy!(IServicePartitionConfig, windows_core::IUnknown); impl IServicePartitionConfig { pub unsafe fn PartitionConfig(&self, partitionconfig: CSC_PartitionConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PartitionConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(partitionconfig)).ok() + (windows_core::Interface::vtable(self).PartitionConfig)(windows_core::Interface::as_raw(self), partitionconfig).ok() } pub unsafe fn PartitionID(&self, guidpartitionid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PartitionID)(windows_core::Interface::as_raw(self), core::mem::transmute(guidpartitionid)).ok() + (windows_core::Interface::vtable(self).PartitionID)(windows_core::Interface::as_raw(self), guidpartitionid).ok() } } #[repr(C)] @@ -8588,7 +8588,7 @@ impl IServicePool { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), ppoolconfig.param().abi()).ok() } pub unsafe fn GetObject(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -8636,19 +8636,19 @@ windows_core::imp::define_interface!(IServicePoolConfig, IServicePoolConfig_Vtbl windows_core::imp::interface_hierarchy!(IServicePoolConfig, windows_core::IUnknown); impl IServicePoolConfig { pub unsafe fn SetMaxPoolSize(&self, dwmaxpool: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxPoolSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxpool)).ok() + (windows_core::Interface::vtable(self).SetMaxPoolSize)(windows_core::Interface::as_raw(self), dwmaxpool).ok() } pub unsafe fn MaxPoolSize(&self, pdwmaxpool: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MaxPoolSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmaxpool)).ok() } pub unsafe fn SetMinPoolSize(&self, dwminpool: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinPoolSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwminpool)).ok() + (windows_core::Interface::vtable(self).SetMinPoolSize)(windows_core::Interface::as_raw(self), dwminpool).ok() } pub unsafe fn MinPoolSize(&self, pdwminpool: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MinPoolSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwminpool)).ok() } pub unsafe fn SetCreationTimeout(&self, dwcreationtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCreationTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcreationtimeout)).ok() + (windows_core::Interface::vtable(self).SetCreationTimeout)(windows_core::Interface::as_raw(self), dwcreationtimeout).ok() } pub unsafe fn CreationTimeout(&self, pdwcreationtimeout: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreationTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcreationtimeout)).ok() @@ -8778,7 +8778,7 @@ windows_core::imp::define_interface!(IServiceSxsConfig, IServiceSxsConfig_Vtbl, windows_core::imp::interface_hierarchy!(IServiceSxsConfig, windows_core::IUnknown); impl IServiceSxsConfig { pub unsafe fn SxsConfig(&self, scsconfig: CSC_SxsConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SxsConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(scsconfig)).ok() + (windows_core::Interface::vtable(self).SxsConfig)(windows_core::Interface::as_raw(self), scsconfig).ok() } pub unsafe fn SxsName(&self, szsxsname: P0) -> windows_core::Result<()> where @@ -8835,7 +8835,7 @@ windows_core::imp::define_interface!(IServiceSynchronizationConfig, IServiceSync windows_core::imp::interface_hierarchy!(IServiceSynchronizationConfig, windows_core::IUnknown); impl IServiceSynchronizationConfig { pub unsafe fn ConfigureSynchronization(&self, synchconfig: CSC_SynchronizationConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureSynchronization)(windows_core::Interface::as_raw(self), core::mem::transmute(synchconfig)).ok() + (windows_core::Interface::vtable(self).ConfigureSynchronization)(windows_core::Interface::as_raw(self), synchconfig).ok() } } #[repr(C)] @@ -8903,10 +8903,10 @@ windows_core::imp::define_interface!(IServiceThreadPoolConfig, IServiceThreadPoo windows_core::imp::interface_hierarchy!(IServiceThreadPoolConfig, windows_core::IUnknown); impl IServiceThreadPoolConfig { pub unsafe fn SelectThreadPool(&self, threadpool: CSC_ThreadPool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectThreadPool)(windows_core::Interface::as_raw(self), core::mem::transmute(threadpool)).ok() + (windows_core::Interface::vtable(self).SelectThreadPool)(windows_core::Interface::as_raw(self), threadpool).ok() } pub unsafe fn SetBindingInfo(&self, binding: CSC_Binding) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBindingInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(binding)).ok() + (windows_core::Interface::vtable(self).SetBindingInfo)(windows_core::Interface::as_raw(self), binding).ok() } } #[repr(C)] @@ -8948,7 +8948,7 @@ impl IServiceTrackerConfig { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).TrackerConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(trackerconfig), sztrackerappname.param().abi(), sztrackerctxname.param().abi()).ok() + (windows_core::Interface::vtable(self).TrackerConfig)(windows_core::Interface::as_raw(self), trackerconfig, sztrackerappname.param().abi(), sztrackerctxname.param().abi()).ok() } } #[repr(C)] @@ -9020,13 +9020,13 @@ windows_core::imp::define_interface!(IServiceTransactionConfigBase, IServiceTran windows_core::imp::interface_hierarchy!(IServiceTransactionConfigBase, windows_core::IUnknown); impl IServiceTransactionConfigBase { pub unsafe fn ConfigureTransaction(&self, transactionconfig: CSC_TransactionConfig) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureTransaction)(windows_core::Interface::as_raw(self), core::mem::transmute(transactionconfig)).ok() + (windows_core::Interface::vtable(self).ConfigureTransaction)(windows_core::Interface::as_raw(self), transactionconfig).ok() } pub unsafe fn IsolationLevel(&self, option: COMAdminTxIsolationLevelOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsolationLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(option)).ok() + (windows_core::Interface::vtable(self).IsolationLevel)(windows_core::Interface::as_raw(self), option).ok() } pub unsafe fn TransactionTimeout(&self, ultimeoutsec: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TransactionTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(ultimeoutsec)).ok() + (windows_core::Interface::vtable(self).TransactionTimeout)(windows_core::Interface::as_raw(self), ultimeoutsec).ok() } pub unsafe fn BringYourOwnTransaction(&self, sztipurl: P0) -> windows_core::Result<()> where @@ -9173,11 +9173,11 @@ windows_core::imp::interface_hierarchy!(ISharedPropertyGroup, windows_core::IUnk #[cfg(feature = "Win32_System_Com")] impl ISharedPropertyGroup { pub unsafe fn CreatePropertyByPosition(&self, index: i32, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreatePropertyByPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(fexists), core::mem::transmute(ppprop)).ok() + (windows_core::Interface::vtable(self).CreatePropertyByPosition)(windows_core::Interface::as_raw(self), index, core::mem::transmute(fexists), core::mem::transmute(ppprop)).ok() } pub unsafe fn get_PropertyByPosition(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PropertyByPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_PropertyByPosition)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateProperty(&self, name: &windows_core::BSTR, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(fexists), core::mem::transmute(ppprop)).ok() @@ -9334,7 +9334,7 @@ impl ISystemAppEventData { (windows_core::Interface::vtable(self).Startup)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnDataChanged(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: &windows_core::BSTR, dwreason: u32, u64tracehandle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDataChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpid), core::mem::transmute(dwmask), core::mem::transmute(dwnumbersinks), core::mem::transmute_copy(bstrdwmethodmask), core::mem::transmute(dwreason), core::mem::transmute(u64tracehandle)).ok() + (windows_core::Interface::vtable(self).OnDataChanged)(windows_core::Interface::as_raw(self), dwpid, dwmask, dwnumbersinks, core::mem::transmute_copy(bstrdwmethodmask), dwreason, u64tracehandle).ok() } } #[repr(C)] @@ -9378,13 +9378,13 @@ impl IThreadPoolKnobs { (windows_core::Interface::vtable(self).GetCurrentThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(plccurrentthreads)).ok() } pub unsafe fn SetMaxThreads(&self, lcmaxthreads: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(lcmaxthreads)).ok() + (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), lcmaxthreads).ok() } pub unsafe fn GetDeleteDelay(&self, pmsecdeletedelay: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDeleteDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsecdeletedelay)).ok() } pub unsafe fn SetDeleteDelay(&self, msecdeletedelay: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDeleteDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(msecdeletedelay)).ok() + (windows_core::Interface::vtable(self).SetDeleteDelay)(windows_core::Interface::as_raw(self), msecdeletedelay).ok() } pub unsafe fn GetMaxQueuedRequests(&self, plcmaxqueuedrequests: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMaxQueuedRequests)(windows_core::Interface::as_raw(self), core::mem::transmute(plcmaxqueuedrequests)).ok() @@ -9393,13 +9393,13 @@ impl IThreadPoolKnobs { (windows_core::Interface::vtable(self).GetCurrentQueuedRequests)(windows_core::Interface::as_raw(self), core::mem::transmute(plccurrentqueuedrequests)).ok() } pub unsafe fn SetMaxQueuedRequests(&self, lcmaxqueuedrequests: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxQueuedRequests)(windows_core::Interface::as_raw(self), core::mem::transmute(lcmaxqueuedrequests)).ok() + (windows_core::Interface::vtable(self).SetMaxQueuedRequests)(windows_core::Interface::as_raw(self), lcmaxqueuedrequests).ok() } pub unsafe fn SetMinThreads(&self, lcminthreads: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(lcminthreads)).ok() + (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), lcminthreads).ok() } pub unsafe fn SetQueueDepth(&self, lcqueuedepth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueueDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(lcqueuedepth)).ok() + (windows_core::Interface::vtable(self).SetQueueDepth)(windows_core::Interface::as_raw(self), lcqueuedepth).ok() } } #[repr(C)] @@ -9573,7 +9573,7 @@ impl ITransactionContextEx { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -10006,7 +10006,7 @@ windows_core::imp::define_interface!(ITransactionStatus, ITransactionStatus_Vtbl windows_core::imp::interface_hierarchy!(ITransactionStatus, windows_core::IUnknown); impl ITransactionStatus { pub unsafe fn SetTransactionStatus(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransactionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).SetTransactionStatus)(windows_core::Interface::as_raw(self), hrstatus).ok() } pub unsafe fn GetTransactionStatus(&self, phrstatus: *mut windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTransactionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(phrstatus)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs index 1da87ca4ab..17e472edd0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs @@ -26,30 +26,30 @@ pub unsafe fn AllocConsole() -> windows_core::Result<()> { #[inline] pub unsafe fn AttachConsole(dwprocessid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AttachConsole(dwprocessid : u32) -> super::super::Foundation:: BOOL); - AttachConsole(core::mem::transmute(dwprocessid)).ok() + AttachConsole(dwprocessid).ok() } #[inline] pub unsafe fn ClosePseudoConsole(hpc: HPCON) { windows_targets::link!("kernel32.dll" "system" fn ClosePseudoConsole(hpc : HPCON)); - ClosePseudoConsole(core::mem::transmute(hpc)) + ClosePseudoConsole(hpc) } #[inline] pub unsafe fn ConsoleControl(command: CONSOLECONTROL, consoleinformation: *const core::ffi::c_void, consoleinformationlength: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("user32.dll" "system" fn ConsoleControl(command : CONSOLECONTROL, consoleinformation : *const core::ffi::c_void, consoleinformationlength : u32) -> super::super::Foundation:: NTSTATUS); - ConsoleControl(core::mem::transmute(command), core::mem::transmute(consoleinformation), core::mem::transmute(consoleinformationlength)) + ConsoleControl(command, consoleinformation, consoleinformationlength) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateConsoleScreenBuffer(dwdesiredaccess: u32, dwsharemode: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwflags: u32, lpscreenbufferdata: Option<*const core::ffi::c_void>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateConsoleScreenBuffer(dwdesiredaccess : u32, dwsharemode : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwflags : u32, lpscreenbufferdata : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - let result__ = CreateConsoleScreenBuffer(core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(lpscreenbufferdata.unwrap_or(core::mem::zeroed()))); + let result__ = CreateConsoleScreenBuffer(dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(lpscreenbufferdata.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreatePseudoConsole(size: COORD, hinput: super::super::Foundation::HANDLE, houtput: super::super::Foundation::HANDLE, dwflags: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreatePseudoConsole(size : COORD, hinput : super::super::Foundation:: HANDLE, houtput : super::super::Foundation:: HANDLE, dwflags : u32, phpc : *mut HPCON) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreatePseudoConsole(core::mem::transmute(size), core::mem::transmute(hinput), core::mem::transmute(houtput), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + CreatePseudoConsole(core::mem::transmute(size), hinput, houtput, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ExpungeConsoleCommandHistoryA(exename: P0) @@ -70,22 +70,22 @@ where #[inline] pub unsafe fn FillConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, wattribute: u16, nlength: u32, dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattribute : u16, nlength : u32, dwwritecoord : COORD, lpnumberofattrswritten : *mut u32) -> super::super::Foundation:: BOOL); - FillConsoleOutputAttribute(core::mem::transmute(hconsoleoutput), core::mem::transmute(wattribute), core::mem::transmute(nlength), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofattrswritten)).ok() + FillConsoleOutputAttribute(hconsoleoutput, wattribute, nlength, core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofattrswritten)).ok() } #[inline] pub unsafe fn FillConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, ccharacter: i8, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, ccharacter : i8, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); - FillConsoleOutputCharacterA(core::mem::transmute(hconsoleoutput), core::mem::transmute(ccharacter), core::mem::transmute(nlength), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() + FillConsoleOutputCharacterA(hconsoleoutput, ccharacter, nlength, core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() } #[inline] pub unsafe fn FillConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, ccharacter: u16, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, ccharacter : u16, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); - FillConsoleOutputCharacterW(core::mem::transmute(hconsoleoutput), core::mem::transmute(ccharacter), core::mem::transmute(nlength), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() + FillConsoleOutputCharacterW(hconsoleoutput, ccharacter, nlength, core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() } #[inline] pub unsafe fn FlushConsoleInputBuffer(hconsoleinput: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FlushConsoleInputBuffer(hconsoleinput : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FlushConsoleInputBuffer(core::mem::transmute(hconsoleinput)).ok() + FlushConsoleInputBuffer(hconsoleinput).ok() } #[inline] pub unsafe fn FreeConsole() -> windows_core::Result<()> { @@ -95,7 +95,7 @@ pub unsafe fn FreeConsole() -> windows_core::Result<()> { #[inline] pub unsafe fn GenerateConsoleCtrlEvent(dwctrlevent: u32, dwprocessgroupid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GenerateConsoleCtrlEvent(dwctrlevent : u32, dwprocessgroupid : u32) -> super::super::Foundation:: BOOL); - GenerateConsoleCtrlEvent(core::mem::transmute(dwctrlevent), core::mem::transmute(dwprocessgroupid)).ok() + GenerateConsoleCtrlEvent(dwctrlevent, dwprocessgroupid).ok() } #[inline] pub unsafe fn GetConsoleAliasA(source: P0, targetbuffer: &mut [u8], exename: P3) -> u32 @@ -202,12 +202,12 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleCommandHistoryW(commands : windows_core::PWSTR, commandbufferlength : u32, exename : windows_core::PCWSTR) -> u32); - GetConsoleCommandHistoryW(core::mem::transmute(commands), core::mem::transmute(commandbufferlength), exename.param().abi()) + GetConsoleCommandHistoryW(core::mem::transmute(commands), commandbufferlength, exename.param().abi()) } #[inline] pub unsafe fn GetConsoleCursorInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolecursorinfo: *mut CONSOLE_CURSOR_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *mut CONSOLE_CURSOR_INFO) -> super::super::Foundation:: BOOL); - GetConsoleCursorInfo(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpconsolecursorinfo)).ok() + GetConsoleCursorInfo(hconsoleoutput, core::mem::transmute(lpconsolecursorinfo)).ok() } #[inline] pub unsafe fn GetConsoleDisplayMode(lpmodeflags: *mut u32) -> windows_core::Result<()> { @@ -217,7 +217,7 @@ pub unsafe fn GetConsoleDisplayMode(lpmodeflags: *mut u32) -> windows_core::Resu #[inline] pub unsafe fn GetConsoleFontSize(hconsoleoutput: super::super::Foundation::HANDLE, nfont: u32) -> COORD { windows_targets::link!("kernel32.dll" "system" fn GetConsoleFontSize(hconsoleoutput : super::super::Foundation:: HANDLE, nfont : u32) -> COORD); - GetConsoleFontSize(core::mem::transmute(hconsoleoutput), core::mem::transmute(nfont)) + GetConsoleFontSize(hconsoleoutput, nfont) } #[inline] pub unsafe fn GetConsoleHistoryInfo(lpconsolehistoryinfo: *mut CONSOLE_HISTORY_INFO) -> windows_core::Result<()> { @@ -227,7 +227,7 @@ pub unsafe fn GetConsoleHistoryInfo(lpconsolehistoryinfo: *mut CONSOLE_HISTORY_I #[inline] pub unsafe fn GetConsoleMode(hconsolehandle: super::super::Foundation::HANDLE, lpmode: *mut CONSOLE_MODE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, lpmode : *mut CONSOLE_MODE) -> super::super::Foundation:: BOOL); - GetConsoleMode(core::mem::transmute(hconsolehandle), core::mem::transmute(lpmode)).ok() + GetConsoleMode(hconsolehandle, core::mem::transmute(lpmode)).ok() } #[inline] pub unsafe fn GetConsoleOriginalTitleA(lpconsoletitle: &mut [u8]) -> u32 { @@ -252,12 +252,12 @@ pub unsafe fn GetConsoleProcessList(lpdwprocesslist: &mut [u32]) -> u32 { #[inline] pub unsafe fn GetConsoleScreenBufferInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfo: *mut CONSOLE_SCREEN_BUFFER_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfo : *mut CONSOLE_SCREEN_BUFFER_INFO) -> super::super::Foundation:: BOOL); - GetConsoleScreenBufferInfo(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpconsolescreenbufferinfo)).ok() + GetConsoleScreenBufferInfo(hconsoleoutput, core::mem::transmute(lpconsolescreenbufferinfo)).ok() } #[inline] pub unsafe fn GetConsoleScreenBufferInfoEx(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfoex: *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation:: BOOL); - GetConsoleScreenBufferInfoEx(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpconsolescreenbufferinfoex)).ok() + GetConsoleScreenBufferInfoEx(hconsoleoutput, core::mem::transmute(lpconsolescreenbufferinfoex)).ok() } #[inline] pub unsafe fn GetConsoleSelectionInfo(lpconsoleselectioninfo: *mut CONSOLE_SELECTION_INFO) -> windows_core::Result<()> { @@ -282,22 +282,22 @@ pub unsafe fn GetConsoleWindow() -> super::super::Foundation::HWND { #[inline] pub unsafe fn GetCurrentConsoleFont(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: bool, lpconsolecurrentfont: *mut CONSOLE_FONT_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCurrentConsoleFont(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : super::super::Foundation:: BOOL, lpconsolecurrentfont : *mut CONSOLE_FONT_INFO) -> super::super::Foundation:: BOOL); - GetCurrentConsoleFont(core::mem::transmute(hconsoleoutput), bmaximumwindow.into(), core::mem::transmute(lpconsolecurrentfont)).ok() + GetCurrentConsoleFont(hconsoleoutput, bmaximumwindow.into(), core::mem::transmute(lpconsolecurrentfont)).ok() } #[inline] pub unsafe fn GetCurrentConsoleFontEx(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: bool, lpconsolecurrentfontex: *mut CONSOLE_FONT_INFOEX) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetCurrentConsoleFontEx(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : super::super::Foundation:: BOOL, lpconsolecurrentfontex : *mut CONSOLE_FONT_INFOEX) -> super::super::Foundation:: BOOL); - GetCurrentConsoleFontEx(core::mem::transmute(hconsoleoutput), bmaximumwindow.into(), core::mem::transmute(lpconsolecurrentfontex)).ok() + GetCurrentConsoleFontEx(hconsoleoutput, bmaximumwindow.into(), core::mem::transmute(lpconsolecurrentfontex)).ok() } #[inline] pub unsafe fn GetLargestConsoleWindowSize(hconsoleoutput: super::super::Foundation::HANDLE) -> COORD { windows_targets::link!("kernel32.dll" "system" fn GetLargestConsoleWindowSize(hconsoleoutput : super::super::Foundation:: HANDLE) -> COORD); - GetLargestConsoleWindowSize(core::mem::transmute(hconsoleoutput)) + GetLargestConsoleWindowSize(hconsoleoutput) } #[inline] pub unsafe fn GetNumberOfConsoleInputEvents(hconsoleinput: super::super::Foundation::HANDLE, lpnumberofevents: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumberOfConsoleInputEvents(hconsoleinput : super::super::Foundation:: HANDLE, lpnumberofevents : *mut u32) -> super::super::Foundation:: BOOL); - GetNumberOfConsoleInputEvents(core::mem::transmute(hconsoleinput), core::mem::transmute(lpnumberofevents)).ok() + GetNumberOfConsoleInputEvents(hconsoleinput, core::mem::transmute(lpnumberofevents)).ok() } #[inline] pub unsafe fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons: *mut u32) -> windows_core::Result<()> { @@ -307,88 +307,88 @@ pub unsafe fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons: *mut u32) - #[inline] pub unsafe fn GetStdHandle(nstdhandle: STD_HANDLE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn GetStdHandle(nstdhandle : STD_HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = GetStdHandle(core::mem::transmute(nstdhandle)); + let result__ = GetStdHandle(nstdhandle); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PeekConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PeekConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); - PeekConsoleInputA(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() + PeekConsoleInputA(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() } #[inline] pub unsafe fn PeekConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PeekConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); - PeekConsoleInputW(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() + PeekConsoleInputW(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() } #[inline] pub unsafe fn ReadConsoleA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: Option<*const CONSOLE_READCONSOLE_CONTROL>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nnumberofcharstoread : u32, lpnumberofcharsread : *mut u32, pinputcontrol : *const CONSOLE_READCONSOLE_CONTROL) -> super::super::Foundation:: BOOL); - ReadConsoleA(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofcharstoread), core::mem::transmute(lpnumberofcharsread), core::mem::transmute(pinputcontrol.unwrap_or(core::mem::zeroed()))).ok() + ReadConsoleA(hconsoleinput, core::mem::transmute(lpbuffer), nnumberofcharstoread, core::mem::transmute(lpnumberofcharsread), core::mem::transmute(pinputcontrol.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReadConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); - ReadConsoleInputA(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() + ReadConsoleInputA(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() } #[inline] pub unsafe fn ReadConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); - ReadConsoleInputW(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() + ReadConsoleInputW(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventsread)).ok() } #[inline] pub unsafe fn ReadConsoleOutputA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *mut CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpreadregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); - ReadConsoleOutputA(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpreadregion)).ok() + ReadConsoleOutputA(hconsoleoutput, core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpreadregion)).ok() } #[inline] pub unsafe fn ReadConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, lpattribute: &mut [u16], dwreadcoord: COORD, lpnumberofattrsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, lpattribute : *mut u16, nlength : u32, dwreadcoord : COORD, lpnumberofattrsread : *mut u32) -> super::super::Foundation:: BOOL); - ReadConsoleOutputAttribute(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), core::mem::transmute(lpnumberofattrsread)).ok() + ReadConsoleOutputAttribute(hconsoleoutput, core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), core::mem::transmute(lpnumberofattrsread)).ok() } #[inline] pub unsafe fn ReadConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &mut [u8], dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PSTR, nlength : u32, dwreadcoord : COORD, lpnumberofcharsread : *mut u32) -> super::super::Foundation:: BOOL); - ReadConsoleOutputCharacterA(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), core::mem::transmute(lpnumberofcharsread)).ok() + ReadConsoleOutputCharacterA(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), core::mem::transmute(lpnumberofcharsread)).ok() } #[inline] pub unsafe fn ReadConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &mut [u16], dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PWSTR, nlength : u32, dwreadcoord : COORD, lpnumberofcharsread : *mut u32) -> super::super::Foundation:: BOOL); - ReadConsoleOutputCharacterW(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), core::mem::transmute(lpnumberofcharsread)).ok() + ReadConsoleOutputCharacterW(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), core::mem::transmute(lpnumberofcharsread)).ok() } #[inline] pub unsafe fn ReadConsoleOutputW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *mut CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpreadregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); - ReadConsoleOutputW(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpreadregion)).ok() + ReadConsoleOutputW(hconsoleoutput, core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpreadregion)).ok() } #[inline] pub unsafe fn ReadConsoleW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: Option<*const CONSOLE_READCONSOLE_CONTROL>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadConsoleW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nnumberofcharstoread : u32, lpnumberofcharsread : *mut u32, pinputcontrol : *const CONSOLE_READCONSOLE_CONTROL) -> super::super::Foundation:: BOOL); - ReadConsoleW(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofcharstoread), core::mem::transmute(lpnumberofcharsread), core::mem::transmute(pinputcontrol.unwrap_or(core::mem::zeroed()))).ok() + ReadConsoleW(hconsoleinput, core::mem::transmute(lpbuffer), nnumberofcharstoread, core::mem::transmute(lpnumberofcharsread), core::mem::transmute(pinputcontrol.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ResizePseudoConsole(hpc: HPCON, size: COORD) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ResizePseudoConsole(hpc : HPCON, size : COORD) -> windows_core::HRESULT); - ResizePseudoConsole(core::mem::transmute(hpc), core::mem::transmute(size)).ok() + ResizePseudoConsole(hpc, core::mem::transmute(size)).ok() } #[inline] pub unsafe fn ScrollConsoleScreenBufferA(hconsoleoutput: super::super::Foundation::HANDLE, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: Option<*const SMALL_RECT>, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ScrollConsoleScreenBufferA(hconsoleoutput : super::super::Foundation:: HANDLE, lpscrollrectangle : *const SMALL_RECT, lpcliprectangle : *const SMALL_RECT, dwdestinationorigin : COORD, lpfill : *const CHAR_INFO) -> super::super::Foundation:: BOOL); - ScrollConsoleScreenBufferA(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpscrollrectangle), core::mem::transmute(lpcliprectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestinationorigin), core::mem::transmute(lpfill)).ok() + ScrollConsoleScreenBufferA(hconsoleoutput, lpscrollrectangle, core::mem::transmute(lpcliprectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestinationorigin), lpfill).ok() } #[inline] pub unsafe fn ScrollConsoleScreenBufferW(hconsoleoutput: super::super::Foundation::HANDLE, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: Option<*const SMALL_RECT>, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ScrollConsoleScreenBufferW(hconsoleoutput : super::super::Foundation:: HANDLE, lpscrollrectangle : *const SMALL_RECT, lpcliprectangle : *const SMALL_RECT, dwdestinationorigin : COORD, lpfill : *const CHAR_INFO) -> super::super::Foundation:: BOOL); - ScrollConsoleScreenBufferW(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpscrollrectangle), core::mem::transmute(lpcliprectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestinationorigin), core::mem::transmute(lpfill)).ok() + ScrollConsoleScreenBufferW(hconsoleoutput, lpscrollrectangle, core::mem::transmute(lpcliprectangle.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdestinationorigin), lpfill).ok() } #[inline] pub unsafe fn SetConsoleActiveScreenBuffer(hconsoleoutput: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleActiveScreenBuffer(hconsoleoutput : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetConsoleActiveScreenBuffer(core::mem::transmute(hconsoleoutput)).ok() + SetConsoleActiveScreenBuffer(hconsoleoutput).ok() } #[inline] pub unsafe fn SetConsoleCP(wcodepageid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleCP(wcodepageid : u32) -> super::super::Foundation:: BOOL); - SetConsoleCP(core::mem::transmute(wcodepageid)).ok() + SetConsoleCP(wcodepageid).ok() } #[inline] pub unsafe fn SetConsoleCtrlHandler(handlerroutine: Option, add: bool) -> windows_core::Result<()> { @@ -398,27 +398,27 @@ pub unsafe fn SetConsoleCtrlHandler(handlerroutine: Option, ad #[inline] pub unsafe fn SetConsoleCursorInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolecursorinfo: *const CONSOLE_CURSOR_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *const CONSOLE_CURSOR_INFO) -> super::super::Foundation:: BOOL); - SetConsoleCursorInfo(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpconsolecursorinfo)).ok() + SetConsoleCursorInfo(hconsoleoutput, lpconsolecursorinfo).ok() } #[inline] pub unsafe fn SetConsoleCursorPosition(hconsoleoutput: super::super::Foundation::HANDLE, dwcursorposition: COORD) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorPosition(hconsoleoutput : super::super::Foundation:: HANDLE, dwcursorposition : COORD) -> super::super::Foundation:: BOOL); - SetConsoleCursorPosition(core::mem::transmute(hconsoleoutput), core::mem::transmute(dwcursorposition)).ok() + SetConsoleCursorPosition(hconsoleoutput, core::mem::transmute(dwcursorposition)).ok() } #[inline] pub unsafe fn SetConsoleDisplayMode(hconsoleoutput: super::super::Foundation::HANDLE, dwflags: u32, lpnewscreenbufferdimensions: Option<*mut COORD>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleDisplayMode(hconsoleoutput : super::super::Foundation:: HANDLE, dwflags : u32, lpnewscreenbufferdimensions : *mut COORD) -> super::super::Foundation:: BOOL); - SetConsoleDisplayMode(core::mem::transmute(hconsoleoutput), core::mem::transmute(dwflags), core::mem::transmute(lpnewscreenbufferdimensions.unwrap_or(core::mem::zeroed()))).ok() + SetConsoleDisplayMode(hconsoleoutput, dwflags, core::mem::transmute(lpnewscreenbufferdimensions.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetConsoleHistoryInfo(lpconsolehistoryinfo: *const CONSOLE_HISTORY_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleHistoryInfo(lpconsolehistoryinfo : *const CONSOLE_HISTORY_INFO) -> super::super::Foundation:: BOOL); - SetConsoleHistoryInfo(core::mem::transmute(lpconsolehistoryinfo)).ok() + SetConsoleHistoryInfo(lpconsolehistoryinfo).ok() } #[inline] pub unsafe fn SetConsoleMode(hconsolehandle: super::super::Foundation::HANDLE, dwmode: CONSOLE_MODE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, dwmode : CONSOLE_MODE) -> super::super::Foundation:: BOOL); - SetConsoleMode(core::mem::transmute(hconsolehandle), core::mem::transmute(dwmode)).ok() + SetConsoleMode(hconsolehandle, dwmode).ok() } #[inline] pub unsafe fn SetConsoleNumberOfCommandsA(number: u32, exename: P1) -> super::super::Foundation::BOOL @@ -426,7 +426,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsA(number : u32, exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetConsoleNumberOfCommandsA(core::mem::transmute(number), exename.param().abi()) + SetConsoleNumberOfCommandsA(number, exename.param().abi()) } #[inline] pub unsafe fn SetConsoleNumberOfCommandsW(number: u32, exename: P1) -> super::super::Foundation::BOOL @@ -434,27 +434,27 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsW(number : u32, exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetConsoleNumberOfCommandsW(core::mem::transmute(number), exename.param().abi()) + SetConsoleNumberOfCommandsW(number, exename.param().abi()) } #[inline] pub unsafe fn SetConsoleOutputCP(wcodepageid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleOutputCP(wcodepageid : u32) -> super::super::Foundation:: BOOL); - SetConsoleOutputCP(core::mem::transmute(wcodepageid)).ok() + SetConsoleOutputCP(wcodepageid).ok() } #[inline] pub unsafe fn SetConsoleScreenBufferInfoEx(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfoex: *const CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *const CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation:: BOOL); - SetConsoleScreenBufferInfoEx(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpconsolescreenbufferinfoex)).ok() + SetConsoleScreenBufferInfoEx(hconsoleoutput, lpconsolescreenbufferinfoex).ok() } #[inline] pub unsafe fn SetConsoleScreenBufferSize(hconsoleoutput: super::super::Foundation::HANDLE, dwsize: COORD) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferSize(hconsoleoutput : super::super::Foundation:: HANDLE, dwsize : COORD) -> super::super::Foundation:: BOOL); - SetConsoleScreenBufferSize(core::mem::transmute(hconsoleoutput), core::mem::transmute(dwsize)).ok() + SetConsoleScreenBufferSize(hconsoleoutput, core::mem::transmute(dwsize)).ok() } #[inline] pub unsafe fn SetConsoleTextAttribute(hconsoleoutput: super::super::Foundation::HANDLE, wattributes: CONSOLE_CHARACTER_ATTRIBUTES) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleTextAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattributes : CONSOLE_CHARACTER_ATTRIBUTES) -> super::super::Foundation:: BOOL); - SetConsoleTextAttribute(core::mem::transmute(hconsoleoutput), core::mem::transmute(wattributes)).ok() + SetConsoleTextAttribute(hconsoleoutput, wattributes).ok() } #[inline] pub unsafe fn SetConsoleTitleA(lpconsoletitle: P0) -> windows_core::Result<()> @@ -475,67 +475,67 @@ where #[inline] pub unsafe fn SetConsoleWindowInfo(hconsoleoutput: super::super::Foundation::HANDLE, babsolute: bool, lpconsolewindow: *const SMALL_RECT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetConsoleWindowInfo(hconsoleoutput : super::super::Foundation:: HANDLE, babsolute : super::super::Foundation:: BOOL, lpconsolewindow : *const SMALL_RECT) -> super::super::Foundation:: BOOL); - SetConsoleWindowInfo(core::mem::transmute(hconsoleoutput), babsolute.into(), core::mem::transmute(lpconsolewindow)).ok() + SetConsoleWindowInfo(hconsoleoutput, babsolute.into(), lpconsolewindow).ok() } #[inline] pub unsafe fn SetCurrentConsoleFontEx(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: bool, lpconsolecurrentfontex: *const CONSOLE_FONT_INFOEX) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetCurrentConsoleFontEx(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : super::super::Foundation:: BOOL, lpconsolecurrentfontex : *const CONSOLE_FONT_INFOEX) -> super::super::Foundation:: BOOL); - SetCurrentConsoleFontEx(core::mem::transmute(hconsoleoutput), bmaximumwindow.into(), core::mem::transmute(lpconsolecurrentfontex)).ok() + SetCurrentConsoleFontEx(hconsoleoutput, bmaximumwindow.into(), lpconsolecurrentfontex).ok() } #[inline] pub unsafe fn SetStdHandle(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetStdHandle(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetStdHandle(core::mem::transmute(nstdhandle), core::mem::transmute(hhandle)).ok() + SetStdHandle(nstdhandle, hhandle).ok() } #[inline] pub unsafe fn SetStdHandleEx(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE, phprevvalue: Option<*mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetStdHandleEx(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE, phprevvalue : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetStdHandleEx(core::mem::transmute(nstdhandle), core::mem::transmute(hhandle), core::mem::transmute(phprevvalue.unwrap_or(core::mem::zeroed()))) + SetStdHandleEx(nstdhandle, hhandle, core::mem::transmute(phprevvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WriteConsoleA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: &[u8], lpnumberofcharswritten: Option<*mut u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : windows_core::PCSTR, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WriteConsoleA(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + WriteConsoleA(hconsoleoutput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WriteConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &[INPUT_RECORD], lpnumberofeventswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *const INPUT_RECORD, nlength : u32, lpnumberofeventswritten : *mut u32) -> super::super::Foundation:: BOOL); - WriteConsoleInputA(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventswritten)).ok() + WriteConsoleInputA(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventswritten)).ok() } #[inline] pub unsafe fn WriteConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &[INPUT_RECORD], lpnumberofeventswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *const INPUT_RECORD, nlength : u32, lpnumberofeventswritten : *mut u32) -> super::super::Foundation:: BOOL); - WriteConsoleInputW(core::mem::transmute(hconsoleinput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventswritten)).ok() + WriteConsoleInputW(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofeventswritten)).ok() } #[inline] pub unsafe fn WriteConsoleOutputA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpwriteregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); - WriteConsoleOutputA(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpwriteregion)).ok() + WriteConsoleOutputA(hconsoleoutput, lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpwriteregion)).ok() } #[inline] pub unsafe fn WriteConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, lpattribute: &[u16], dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, lpattribute : *const u16, nlength : u32, dwwritecoord : COORD, lpnumberofattrswritten : *mut u32) -> super::super::Foundation:: BOOL); - WriteConsoleOutputAttribute(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofattrswritten)).ok() + WriteConsoleOutputAttribute(hconsoleoutput, core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofattrswritten)).ok() } #[inline] pub unsafe fn WriteConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &[u8], dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PCSTR, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); - WriteConsoleOutputCharacterA(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() + WriteConsoleOutputCharacterA(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() } #[inline] pub unsafe fn WriteConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &[u16], dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PCWSTR, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); - WriteConsoleOutputCharacterW(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() + WriteConsoleOutputCharacterW(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), core::mem::transmute(lpnumberofcharswritten)).ok() } #[inline] pub unsafe fn WriteConsoleOutputW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpwriteregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); - WriteConsoleOutputW(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpbuffer), core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpwriteregion)).ok() + WriteConsoleOutputW(hconsoleoutput, lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), core::mem::transmute(lpwriteregion)).ok() } #[inline] pub unsafe fn WriteConsoleW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: &[u16], lpnumberofcharswritten: Option<*mut u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : windows_core::PCWSTR, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WriteConsoleW(core::mem::transmute(hconsoleoutput), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() + WriteConsoleW(hconsoleoutput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed()))).ok() } pub const ALTNUMPAD_BIT: u32 = 67108864u32; pub const ATTACH_PARENT_PROCESS: u32 = 4294967295u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs index 4d81949580..317755da3c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs @@ -137,7 +137,7 @@ impl IContact { (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), core::mem::transmute(pdwcchpathrequired)).ok() } pub unsafe fn CommitChanges(&self, dwcommitflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommitChanges)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcommitflags)).ok() + (windows_core::Interface::vtable(self).CommitChanges)(windows_core::Interface::as_raw(self), dwcommitflags).ok() } } #[repr(C)] @@ -196,7 +196,7 @@ impl IContactAggregationAggregate { } pub unsafe fn get_Groups(&self, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Groups)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Groups)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AntiLink(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -213,7 +213,7 @@ impl IContactAggregationAggregate { (windows_core::Interface::vtable(self).FavoriteOrder)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFavoriteOrder(&self, favoriteorder: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFavoriteOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(favoriteorder)).ok() + (windows_core::Interface::vtable(self).SetFavoriteOrder)(windows_core::Interface::as_raw(self), favoriteorder).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -471,7 +471,7 @@ impl IContactAggregationContact { (windows_core::Interface::vtable(self).NetworkSourceId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNetworkSourceId(&self, networksourceid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNetworkSourceId)(windows_core::Interface::as_raw(self), core::mem::transmute(networksourceid)).ok() + (windows_core::Interface::vtable(self).SetNetworkSourceId)(windows_core::Interface::as_raw(self), networksourceid).ok() } pub unsafe fn NetworkSourceIdString(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -488,14 +488,14 @@ impl IContactAggregationContact { (windows_core::Interface::vtable(self).RemoteObjectId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRemoteObjectId(&self, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRemoteObjectId)(windows_core::Interface::as_raw(self), core::mem::transmute(premoteobjectid)).ok() + (windows_core::Interface::vtable(self).SetRemoteObjectId)(windows_core::Interface::as_raw(self), premoteobjectid).ok() } pub unsafe fn SyncIdentityHash(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB> { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SyncIdentityHash)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSyncIdentityHash(&self, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncIdentityHash)(windows_core::Interface::as_raw(self), core::mem::transmute(psyncidentityhash)).ok() + (windows_core::Interface::vtable(self).SetSyncIdentityHash)(windows_core::Interface::as_raw(self), psyncidentityhash).ok() } } #[repr(C)] @@ -712,7 +712,7 @@ impl IContactAggregationContactCollection { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByIdentityHash)(windows_core::Interface::as_raw(self), psourcetype.param().abi(), paccountid.param().abi(), core::mem::transmute(pidentityhash), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByIdentityHash)(windows_core::Interface::as_raw(self), psourcetype.param().abi(), paccountid.param().abi(), pidentityhash, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -724,7 +724,7 @@ impl IContactAggregationContactCollection { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByRemoteId)(windows_core::Interface::as_raw(self), psourcetype.param().abi(), paccountid.param().abi(), core::mem::transmute(premoteobjectid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByRemoteId)(windows_core::Interface::as_raw(self), psourcetype.param().abi(), paccountid.param().abi(), premoteobjectid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -839,7 +839,7 @@ impl IContactAggregationGroup { (windows_core::Interface::vtable(self).GlobalObjectId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGlobalObjectId(&self, pglobalobjectid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGlobalObjectId)(windows_core::Interface::as_raw(self), core::mem::transmute(pglobalobjectid)).ok() + (windows_core::Interface::vtable(self).SetGlobalObjectId)(windows_core::Interface::as_raw(self), pglobalobjectid).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -976,7 +976,7 @@ impl IContactAggregationGroupCollection { } pub unsafe fn FindFirstByGlobalObjectId(&self, pglobalobjectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByGlobalObjectId)(windows_core::Interface::as_raw(self), core::mem::transmute(pglobalobjectid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByGlobalObjectId)(windows_core::Interface::as_raw(self), pglobalobjectid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindNext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1101,7 +1101,7 @@ impl IContactAggregationLink { (windows_core::Interface::vtable(self).RemoteObjectId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRemoteObjectId(&self, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRemoteObjectId)(windows_core::Interface::as_raw(self), core::mem::transmute(premoteobjectid)).ok() + (windows_core::Interface::vtable(self).SetRemoteObjectId)(windows_core::Interface::as_raw(self), premoteobjectid).ok() } pub unsafe fn ServerPerson(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1128,7 +1128,7 @@ impl IContactAggregationLink { (windows_core::Interface::vtable(self).SyncIdentityHash)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSyncIdentityHash(&self, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncIdentityHash)(windows_core::Interface::as_raw(self), core::mem::transmute(psyncidentityhash)).ok() + (windows_core::Interface::vtable(self).SetSyncIdentityHash)(windows_core::Interface::as_raw(self), psyncidentityhash).ok() } } #[repr(C)] @@ -1328,7 +1328,7 @@ impl IContactAggregationLinkCollection { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByRemoteId)(windows_core::Interface::as_raw(self), psourcetype.param().abi(), paccountid.param().abi(), core::mem::transmute(premoteid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByRemoteId)(windows_core::Interface::as_raw(self), psourcetype.param().abi(), paccountid.param().abi(), premoteid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindNext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1419,7 +1419,7 @@ impl IContactAggregationManager { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOrOpenGroup)(windows_core::Interface::as_raw(self), pgroupname.param().abi(), core::mem::transmute(options), core::mem::transmute(pcreatedgroup), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateOrOpenGroup)(windows_core::Interface::as_raw(self), pgroupname.param().abi(), options, core::mem::transmute(pcreatedgroup), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateExternalContact(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1466,15 +1466,15 @@ impl IContactAggregationManager { } pub unsafe fn get_Contacts(&self, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Contacts)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Contacts)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_AggregateContacts(&self, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AggregateContacts)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_AggregateContacts)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_Groups(&self, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Groups)(windows_core::Interface::as_raw(self), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Groups)(windows_core::Interface::as_raw(self), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServerPersons(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1732,28 +1732,28 @@ impl IContactAggregationServerPerson { (windows_core::Interface::vtable(self).FavoriteOrder)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFavoriteOrder(&self, favoriteorder: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFavoriteOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(favoriteorder)).ok() + (windows_core::Interface::vtable(self).SetFavoriteOrder)(windows_core::Interface::as_raw(self), favoriteorder).ok() } pub unsafe fn FavoriteOrderBaseline(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FavoriteOrderBaseline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFavoriteOrderBaseline(&self, favoriteorder: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFavoriteOrderBaseline)(windows_core::Interface::as_raw(self), core::mem::transmute(favoriteorder)).ok() + (windows_core::Interface::vtable(self).SetFavoriteOrderBaseline)(windows_core::Interface::as_raw(self), favoriteorder).ok() } pub unsafe fn Groups(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB> { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Groups)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGroups(&self, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroups)(windows_core::Interface::as_raw(self), core::mem::transmute(pgroups)).ok() + (windows_core::Interface::vtable(self).SetGroups)(windows_core::Interface::as_raw(self), pgroups).ok() } pub unsafe fn GroupsBaseline(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB> { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GroupsBaseline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGroupsBaseline(&self, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupsBaseline)(windows_core::Interface::as_raw(self), core::mem::transmute(pgroups)).ok() + (windows_core::Interface::vtable(self).SetGroupsBaseline)(windows_core::Interface::as_raw(self), pgroups).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2344,39 +2344,39 @@ impl IContactProperties { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pszvalue.as_ptr()), pszvalue.len().try_into().unwrap(), core::mem::transmute(pdwcchpropertyvaluerequired)).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, core::mem::transmute(pszvalue.as_ptr()), pszvalue.len().try_into().unwrap(), core::mem::transmute(pdwcchpropertyvaluerequired)).ok() } pub unsafe fn GetDate(&self, pszpropertyname: P0, dwflags: u32, pftdatetime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDate)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pftdatetime)).ok() + (windows_core::Interface::vtable(self).GetDate)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, core::mem::transmute(pftdatetime)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBinary(&self, pszpropertyname: P0, dwflags: u32, pszcontenttype: &mut [u16], pdwcchcontenttyperequired: *mut u32, ppstream: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBinary)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pszcontenttype.as_ptr()), pszcontenttype.len().try_into().unwrap(), core::mem::transmute(pdwcchcontenttyperequired), core::mem::transmute(ppstream)).ok() + (windows_core::Interface::vtable(self).GetBinary)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, core::mem::transmute(pszcontenttype.as_ptr()), pszcontenttype.len().try_into().unwrap(), core::mem::transmute(pdwcchcontenttyperequired), core::mem::transmute(ppstream)).ok() } pub unsafe fn GetLabels(&self, pszarrayelementname: P0, dwflags: u32, pszlabels: &mut [u16], pdwcchlabelsrequired: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pszlabels.as_ptr()), pszlabels.len().try_into().unwrap(), core::mem::transmute(pdwcchlabelsrequired)).ok() + (windows_core::Interface::vtable(self).GetLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), dwflags, core::mem::transmute(pszlabels.as_ptr()), pszlabels.len().try_into().unwrap(), core::mem::transmute(pdwcchlabelsrequired)).ok() } pub unsafe fn SetString(&self, pszpropertyname: P0, dwflags: u32, pszvalue: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags), pszvalue.param().abi()).ok() + (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, pszvalue.param().abi()).ok() } pub unsafe fn SetDate(&self, pszpropertyname: P0, dwflags: u32, ftdatetime: super::super::Foundation::FILETIME) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDate)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ftdatetime)).ok() + (windows_core::Interface::vtable(self).SetDate)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, core::mem::transmute(ftdatetime)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBinary(&self, pszpropertyname: P0, dwflags: u32, pszcontenttype: P2, pstream: P3) -> windows_core::Result<()> @@ -2385,43 +2385,43 @@ impl IContactProperties { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBinary)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags), pszcontenttype.param().abi(), pstream.param().abi()).ok() + (windows_core::Interface::vtable(self).SetBinary)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, pszcontenttype.param().abi(), pstream.param().abi()).ok() } pub unsafe fn SetLabels(&self, pszarrayelementname: P0, dwflags: u32, ppszlabels: &[windows_core::PCWSTR]) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), core::mem::transmute(dwflags), ppszlabels.len().try_into().unwrap(), core::mem::transmute(ppszlabels.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), dwflags, ppszlabels.len().try_into().unwrap(), core::mem::transmute(ppszlabels.as_ptr())).ok() } pub unsafe fn CreateArrayNode(&self, pszarrayname: P0, dwflags: u32, fappend: bool, psznewarrayelementname: &mut [u16], pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateArrayNode)(windows_core::Interface::as_raw(self), pszarrayname.param().abi(), core::mem::transmute(dwflags), fappend.into(), core::mem::transmute(psznewarrayelementname.as_ptr()), psznewarrayelementname.len().try_into().unwrap(), core::mem::transmute(pdwcchnewarrayelementnamerequired)).ok() + (windows_core::Interface::vtable(self).CreateArrayNode)(windows_core::Interface::as_raw(self), pszarrayname.param().abi(), dwflags, fappend.into(), core::mem::transmute(psznewarrayelementname.as_ptr()), psznewarrayelementname.len().try_into().unwrap(), core::mem::transmute(pdwcchnewarrayelementnamerequired)).ok() } pub unsafe fn DeleteProperty(&self, pszpropertyname: P0, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags).ok() } pub unsafe fn DeleteArrayNode(&self, pszarrayelementname: P0, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteArrayNode)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DeleteArrayNode)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), dwflags).ok() } pub unsafe fn DeleteLabels(&self, pszarrayelementname: P0, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DeleteLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.param().abi(), dwflags).ok() } pub unsafe fn GetPropertyCollection(&self, pppropertycollection: *mut Option, dwflags: u32, pszmultivaluename: P2, ppszlabels: &[windows_core::PCWSTR], fanylabelmatches: bool) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(pppropertycollection), core::mem::transmute(dwflags), pszmultivaluename.param().abi(), ppszlabels.len().try_into().unwrap(), core::mem::transmute(ppszlabels.as_ptr()), fanylabelmatches.into()).ok() + (windows_core::Interface::vtable(self).GetPropertyCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(pppropertycollection), dwflags, pszmultivaluename.param().abi(), ppszlabels.len().try_into().unwrap(), core::mem::transmute(ppszlabels.as_ptr()), fanylabelmatches.into()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/CorrelationVector/mod.rs b/crates/libs/windows/src/Windows/Win32/System/CorrelationVector/mod.rs index b8baa0026b..37cbc39944 100644 --- a/crates/libs/windows/src/Windows/Win32/System/CorrelationVector/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/CorrelationVector/mod.rs @@ -11,12 +11,12 @@ pub unsafe fn RtlIncrementCorrelationVector(correlationvector: *mut CORRELATION_ #[inline] pub unsafe fn RtlInitializeCorrelationVector(correlationvector: *mut CORRELATION_VECTOR, version: i32, guid: Option<*const windows_core::GUID>) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlInitializeCorrelationVector(correlationvector : *mut CORRELATION_VECTOR, version : i32, guid : *const windows_core::GUID) -> u32); - RtlInitializeCorrelationVector(core::mem::transmute(correlationvector), core::mem::transmute(version), core::mem::transmute(guid.unwrap_or(core::mem::zeroed()))) + RtlInitializeCorrelationVector(core::mem::transmute(correlationvector), version, core::mem::transmute(guid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlValidateCorrelationVector(vector: *const CORRELATION_VECTOR) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlValidateCorrelationVector(vector : *const CORRELATION_VECTOR) -> u32); - RtlValidateCorrelationVector(core::mem::transmute(vector)) + RtlValidateCorrelationVector(vector) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs index 6c66ee4067..25047551e8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs @@ -17,12 +17,12 @@ where #[inline] pub unsafe fn AddClipboardFormatListener(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn AddClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - AddClipboardFormatListener(core::mem::transmute(hwnd)).ok() + AddClipboardFormatListener(hwnd).ok() } #[inline] pub unsafe fn ChangeClipboardChain(hwndremove: super::super::Foundation::HWND, hwndnewnext: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ChangeClipboardChain(hwndremove : super::super::Foundation:: HWND, hwndnewnext : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ChangeClipboardChain(core::mem::transmute(hwndremove), core::mem::transmute(hwndnewnext)) + ChangeClipboardChain(hwndremove, hwndnewnext) } #[inline] pub unsafe fn CloseClipboard() -> windows_core::Result<()> { @@ -37,44 +37,44 @@ pub unsafe fn CountClipboardFormats() -> i32 { #[inline] pub unsafe fn DdeAbandonTransaction(idinst: u32, hconv: HCONV, idtransaction: u32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeAbandonTransaction(idinst : u32, hconv : HCONV, idtransaction : u32) -> super::super::Foundation:: BOOL); - DdeAbandonTransaction(core::mem::transmute(idinst), core::mem::transmute(hconv), core::mem::transmute(idtransaction)) + DdeAbandonTransaction(idinst, hconv, idtransaction) } #[inline] pub unsafe fn DdeAccessData(hdata: HDDEDATA, pcbdatasize: Option<*mut u32>) -> *mut u8 { windows_targets::link!("user32.dll" "system" fn DdeAccessData(hdata : HDDEDATA, pcbdatasize : *mut u32) -> *mut u8); - DdeAccessData(core::mem::transmute(hdata), core::mem::transmute(pcbdatasize.unwrap_or(core::mem::zeroed()))) + DdeAccessData(hdata, core::mem::transmute(pcbdatasize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DdeAddData(hdata: HDDEDATA, psrc: &[u8], cboff: u32) -> HDDEDATA { windows_targets::link!("user32.dll" "system" fn DdeAddData(hdata : HDDEDATA, psrc : *const u8, cb : u32, cboff : u32) -> HDDEDATA); - DdeAddData(core::mem::transmute(hdata), core::mem::transmute(psrc.as_ptr()), psrc.len().try_into().unwrap(), core::mem::transmute(cboff)) + DdeAddData(hdata, core::mem::transmute(psrc.as_ptr()), psrc.len().try_into().unwrap(), cboff) } #[inline] pub unsafe fn DdeClientTransaction(pdata: Option<*const u8>, cbdata: u32, hconv: HCONV, hszitem: Option, wfmt: u32, wtype: DDE_CLIENT_TRANSACTION_TYPE, dwtimeout: u32, pdwresult: Option<*mut u32>) -> HDDEDATA { windows_targets::link!("user32.dll" "system" fn DdeClientTransaction(pdata : *const u8, cbdata : u32, hconv : HCONV, hszitem : HSZ, wfmt : u32, wtype : DDE_CLIENT_TRANSACTION_TYPE, dwtimeout : u32, pdwresult : *mut u32) -> HDDEDATA); - DdeClientTransaction(core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata), core::mem::transmute(hconv), core::mem::transmute(hszitem.unwrap_or(core::mem::zeroed())), core::mem::transmute(wfmt), core::mem::transmute(wtype), core::mem::transmute(dwtimeout), core::mem::transmute(pdwresult.unwrap_or(core::mem::zeroed()))) + DdeClientTransaction(core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), cbdata, hconv, core::mem::transmute(hszitem.unwrap_or(core::mem::zeroed())), wfmt, wtype, dwtimeout, core::mem::transmute(pdwresult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DdeCmpStringHandles(hsz1: HSZ, hsz2: HSZ) -> i32 { windows_targets::link!("user32.dll" "system" fn DdeCmpStringHandles(hsz1 : HSZ, hsz2 : HSZ) -> i32); - DdeCmpStringHandles(core::mem::transmute(hsz1), core::mem::transmute(hsz2)) + DdeCmpStringHandles(hsz1, hsz2) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeConnect(idinst: u32, hszservice: HSZ, hsztopic: HSZ, pcc: Option<*const CONVCONTEXT>) -> HCONV { windows_targets::link!("user32.dll" "system" fn DdeConnect(idinst : u32, hszservice : HSZ, hsztopic : HSZ, pcc : *const CONVCONTEXT) -> HCONV); - DdeConnect(core::mem::transmute(idinst), core::mem::transmute(hszservice), core::mem::transmute(hsztopic), core::mem::transmute(pcc.unwrap_or(core::mem::zeroed()))) + DdeConnect(idinst, hszservice, hsztopic, core::mem::transmute(pcc.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeConnectList(idinst: u32, hszservice: HSZ, hsztopic: HSZ, hconvlist: HCONVLIST, pcc: Option<*const CONVCONTEXT>) -> HCONVLIST { windows_targets::link!("user32.dll" "system" fn DdeConnectList(idinst : u32, hszservice : HSZ, hsztopic : HSZ, hconvlist : HCONVLIST, pcc : *const CONVCONTEXT) -> HCONVLIST); - DdeConnectList(core::mem::transmute(idinst), core::mem::transmute(hszservice), core::mem::transmute(hsztopic), core::mem::transmute(hconvlist), core::mem::transmute(pcc.unwrap_or(core::mem::zeroed()))) + DdeConnectList(idinst, hszservice, hsztopic, hconvlist, core::mem::transmute(pcc.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DdeCreateDataHandle(idinst: u32, psrc: Option<&[u8]>, cboff: u32, hszitem: Option, wfmt: u32, afcmd: u32) -> HDDEDATA { windows_targets::link!("user32.dll" "system" fn DdeCreateDataHandle(idinst : u32, psrc : *const u8, cb : u32, cboff : u32, hszitem : HSZ, wfmt : u32, afcmd : u32) -> HDDEDATA); - DdeCreateDataHandle(core::mem::transmute(idinst), core::mem::transmute(psrc.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psrc.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(cboff), core::mem::transmute(hszitem.unwrap_or(core::mem::zeroed())), core::mem::transmute(wfmt), core::mem::transmute(afcmd)) + DdeCreateDataHandle(idinst, core::mem::transmute(psrc.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psrc.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), cboff, core::mem::transmute(hszitem.unwrap_or(core::mem::zeroed())), wfmt, afcmd) } #[inline] pub unsafe fn DdeCreateStringHandleA(idinst: u32, psz: P1, icodepage: i32) -> HSZ @@ -82,7 +82,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeCreateStringHandleA(idinst : u32, psz : windows_core::PCSTR, icodepage : i32) -> HSZ); - DdeCreateStringHandleA(core::mem::transmute(idinst), psz.param().abi(), core::mem::transmute(icodepage)) + DdeCreateStringHandleA(idinst, psz.param().abi(), icodepage) } #[inline] pub unsafe fn DdeCreateStringHandleW(idinst: u32, psz: P1, icodepage: i32) -> HSZ @@ -90,124 +90,124 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeCreateStringHandleW(idinst : u32, psz : windows_core::PCWSTR, icodepage : i32) -> HSZ); - DdeCreateStringHandleW(core::mem::transmute(idinst), psz.param().abi(), core::mem::transmute(icodepage)) + DdeCreateStringHandleW(idinst, psz.param().abi(), icodepage) } #[inline] pub unsafe fn DdeDisconnect(hconv: HCONV) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeDisconnect(hconv : HCONV) -> super::super::Foundation:: BOOL); - DdeDisconnect(core::mem::transmute(hconv)) + DdeDisconnect(hconv) } #[inline] pub unsafe fn DdeDisconnectList(hconvlist: HCONVLIST) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeDisconnectList(hconvlist : HCONVLIST) -> super::super::Foundation:: BOOL); - DdeDisconnectList(core::mem::transmute(hconvlist)) + DdeDisconnectList(hconvlist) } #[inline] pub unsafe fn DdeEnableCallback(idinst: u32, hconv: HCONV, wcmd: DDE_ENABLE_CALLBACK_CMD) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeEnableCallback(idinst : u32, hconv : HCONV, wcmd : DDE_ENABLE_CALLBACK_CMD) -> super::super::Foundation:: BOOL); - DdeEnableCallback(core::mem::transmute(idinst), core::mem::transmute(hconv), core::mem::transmute(wcmd)) + DdeEnableCallback(idinst, hconv, wcmd) } #[inline] pub unsafe fn DdeFreeDataHandle(hdata: HDDEDATA) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeFreeDataHandle(hdata : HDDEDATA) -> super::super::Foundation:: BOOL); - DdeFreeDataHandle(core::mem::transmute(hdata)) + DdeFreeDataHandle(hdata) } #[inline] pub unsafe fn DdeFreeStringHandle(idinst: u32, hsz: HSZ) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeFreeStringHandle(idinst : u32, hsz : HSZ) -> super::super::Foundation:: BOOL); - DdeFreeStringHandle(core::mem::transmute(idinst), core::mem::transmute(hsz)) + DdeFreeStringHandle(idinst, hsz) } #[inline] pub unsafe fn DdeGetData(hdata: HDDEDATA, pdst: Option<&mut [u8]>, cboff: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeGetData(hdata : HDDEDATA, pdst : *mut u8, cbmax : u32, cboff : u32) -> u32); - DdeGetData(core::mem::transmute(hdata), core::mem::transmute(pdst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(cboff)) + DdeGetData(hdata, core::mem::transmute(pdst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), cboff) } #[inline] pub unsafe fn DdeGetLastError(idinst: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeGetLastError(idinst : u32) -> u32); - DdeGetLastError(core::mem::transmute(idinst)) + DdeGetLastError(idinst) } #[inline] pub unsafe fn DdeImpersonateClient(hconv: HCONV) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DdeImpersonateClient(hconv : HCONV) -> super::super::Foundation:: BOOL); - DdeImpersonateClient(core::mem::transmute(hconv)).ok() + DdeImpersonateClient(hconv).ok() } #[inline] pub unsafe fn DdeInitializeA(pidinst: *mut u32, pfncallback: PFNCALLBACK, afcmd: DDE_INITIALIZE_COMMAND, ulres: Option) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeInitializeA(pidinst : *mut u32, pfncallback : PFNCALLBACK, afcmd : DDE_INITIALIZE_COMMAND, ulres : u32) -> u32); - DdeInitializeA(core::mem::transmute(pidinst), core::mem::transmute(pfncallback), core::mem::transmute(afcmd), core::mem::transmute(ulres.unwrap_or(core::mem::zeroed()))) + DdeInitializeA(core::mem::transmute(pidinst), pfncallback, afcmd, core::mem::transmute(ulres.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DdeInitializeW(pidinst: *mut u32, pfncallback: PFNCALLBACK, afcmd: DDE_INITIALIZE_COMMAND, ulres: Option) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeInitializeW(pidinst : *mut u32, pfncallback : PFNCALLBACK, afcmd : DDE_INITIALIZE_COMMAND, ulres : u32) -> u32); - DdeInitializeW(core::mem::transmute(pidinst), core::mem::transmute(pfncallback), core::mem::transmute(afcmd), core::mem::transmute(ulres.unwrap_or(core::mem::zeroed()))) + DdeInitializeW(core::mem::transmute(pidinst), pfncallback, afcmd, core::mem::transmute(ulres.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DdeKeepStringHandle(idinst: u32, hsz: HSZ) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeKeepStringHandle(idinst : u32, hsz : HSZ) -> super::super::Foundation:: BOOL); - DdeKeepStringHandle(core::mem::transmute(idinst), core::mem::transmute(hsz)) + DdeKeepStringHandle(idinst, hsz) } #[inline] pub unsafe fn DdeNameService(idinst: u32, hsz1: Option, hsz2: Option, afcmd: DDE_NAME_SERVICE_CMD) -> HDDEDATA { windows_targets::link!("user32.dll" "system" fn DdeNameService(idinst : u32, hsz1 : HSZ, hsz2 : HSZ, afcmd : DDE_NAME_SERVICE_CMD) -> HDDEDATA); - DdeNameService(core::mem::transmute(idinst), core::mem::transmute(hsz1.unwrap_or(core::mem::zeroed())), core::mem::transmute(hsz2.unwrap_or(core::mem::zeroed())), core::mem::transmute(afcmd)) + DdeNameService(idinst, core::mem::transmute(hsz1.unwrap_or(core::mem::zeroed())), core::mem::transmute(hsz2.unwrap_or(core::mem::zeroed())), afcmd) } #[inline] pub unsafe fn DdePostAdvise(idinst: u32, hsztopic: HSZ, hszitem: HSZ) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdePostAdvise(idinst : u32, hsztopic : HSZ, hszitem : HSZ) -> super::super::Foundation:: BOOL); - DdePostAdvise(core::mem::transmute(idinst), core::mem::transmute(hsztopic), core::mem::transmute(hszitem)) + DdePostAdvise(idinst, hsztopic, hszitem) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeQueryConvInfo(hconv: HCONV, idtransaction: u32, pconvinfo: *mut CONVINFO) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeQueryConvInfo(hconv : HCONV, idtransaction : u32, pconvinfo : *mut CONVINFO) -> u32); - DdeQueryConvInfo(core::mem::transmute(hconv), core::mem::transmute(idtransaction), core::mem::transmute(pconvinfo)) + DdeQueryConvInfo(hconv, idtransaction, core::mem::transmute(pconvinfo)) } #[inline] pub unsafe fn DdeQueryNextServer(hconvlist: HCONVLIST, hconvprev: HCONV) -> HCONV { windows_targets::link!("user32.dll" "system" fn DdeQueryNextServer(hconvlist : HCONVLIST, hconvprev : HCONV) -> HCONV); - DdeQueryNextServer(core::mem::transmute(hconvlist), core::mem::transmute(hconvprev)) + DdeQueryNextServer(hconvlist, hconvprev) } #[inline] pub unsafe fn DdeQueryStringA(idinst: u32, hsz: HSZ, psz: Option<&mut [u8]>, icodepage: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeQueryStringA(idinst : u32, hsz : HSZ, psz : windows_core::PSTR, cchmax : u32, icodepage : i32) -> u32); - DdeQueryStringA(core::mem::transmute(idinst), core::mem::transmute(hsz), core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(icodepage)) + DdeQueryStringA(idinst, hsz, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), icodepage) } #[inline] pub unsafe fn DdeQueryStringW(idinst: u32, hsz: HSZ, psz: Option<&mut [u16]>, icodepage: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn DdeQueryStringW(idinst : u32, hsz : HSZ, psz : windows_core::PWSTR, cchmax : u32, icodepage : i32) -> u32); - DdeQueryStringW(core::mem::transmute(idinst), core::mem::transmute(hsz), core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(icodepage)) + DdeQueryStringW(idinst, hsz, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), icodepage) } #[inline] pub unsafe fn DdeReconnect(hconv: HCONV) -> HCONV { windows_targets::link!("user32.dll" "system" fn DdeReconnect(hconv : HCONV) -> HCONV); - DdeReconnect(core::mem::transmute(hconv)) + DdeReconnect(hconv) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeSetQualityOfService(hwndclient: super::super::Foundation::HWND, pqosnew: *const super::super::Security::SECURITY_QUALITY_OF_SERVICE, pqosprev: *mut super::super::Security::SECURITY_QUALITY_OF_SERVICE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DdeSetQualityOfService(hwndclient : super::super::Foundation:: HWND, pqosnew : *const super::super::Security:: SECURITY_QUALITY_OF_SERVICE, pqosprev : *mut super::super::Security:: SECURITY_QUALITY_OF_SERVICE) -> super::super::Foundation:: BOOL); - DdeSetQualityOfService(core::mem::transmute(hwndclient), core::mem::transmute(pqosnew), core::mem::transmute(pqosprev)).ok() + DdeSetQualityOfService(hwndclient, pqosnew, core::mem::transmute(pqosprev)).ok() } #[inline] pub unsafe fn DdeSetUserHandle(hconv: HCONV, id: u32, huser: usize) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeSetUserHandle(hconv : HCONV, id : u32, huser : usize) -> super::super::Foundation:: BOOL); - DdeSetUserHandle(core::mem::transmute(hconv), core::mem::transmute(id), core::mem::transmute(huser)) + DdeSetUserHandle(hconv, id, huser) } #[inline] pub unsafe fn DdeUnaccessData(hdata: HDDEDATA) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeUnaccessData(hdata : HDDEDATA) -> super::super::Foundation:: BOOL); - DdeUnaccessData(core::mem::transmute(hdata)) + DdeUnaccessData(hdata) } #[inline] pub unsafe fn DdeUninitialize(idinst: u32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DdeUninitialize(idinst : u32) -> super::super::Foundation:: BOOL); - DdeUninitialize(core::mem::transmute(idinst)) + DdeUninitialize(idinst) } #[inline] pub unsafe fn DeleteAtom(natom: u16) -> u16 { windows_targets::link!("kernel32.dll" "system" fn DeleteAtom(natom : u16) -> u16); - DeleteAtom(core::mem::transmute(natom)) + DeleteAtom(natom) } #[inline] pub unsafe fn EmptyClipboard() -> windows_core::Result<()> { @@ -217,7 +217,7 @@ pub unsafe fn EmptyClipboard() -> windows_core::Result<()> { #[inline] pub unsafe fn EnumClipboardFormats(format: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn EnumClipboardFormats(format : u32) -> u32); - EnumClipboardFormats(core::mem::transmute(format)) + EnumClipboardFormats(format) } #[inline] pub unsafe fn FindAtomA(lpstring: P0) -> u16 @@ -238,33 +238,33 @@ where #[inline] pub unsafe fn FreeDDElParam(msg: u32, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn FreeDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - FreeDDElParam(core::mem::transmute(msg), core::mem::transmute(lparam)) + FreeDDElParam(msg, lparam) } #[inline] pub unsafe fn GetAtomNameA(natom: u16, lpbuffer: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetAtomNameA(natom : u16, lpbuffer : windows_core::PSTR, nsize : i32) -> u32); - GetAtomNameA(core::mem::transmute(natom), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + GetAtomNameA(natom, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn GetAtomNameW(natom: u16, lpbuffer: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetAtomNameW(natom : u16, lpbuffer : windows_core::PWSTR, nsize : i32) -> u32); - GetAtomNameW(core::mem::transmute(natom), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + GetAtomNameW(natom, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClipboardData(uformat: u32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetClipboardData(uformat : u32) -> super::super::Foundation:: HANDLE); - let result__ = GetClipboardData(core::mem::transmute(uformat)); + let result__ = GetClipboardData(uformat); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClipboardFormatNameA(format: u32, lpszformatname: &mut [u8]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetClipboardFormatNameA(format : u32, lpszformatname : windows_core::PSTR, cchmaxcount : i32) -> i32); - GetClipboardFormatNameA(core::mem::transmute(format), core::mem::transmute(lpszformatname.as_ptr()), lpszformatname.len().try_into().unwrap()) + GetClipboardFormatNameA(format, core::mem::transmute(lpszformatname.as_ptr()), lpszformatname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClipboardFormatNameW(format: u32, lpszformatname: &mut [u16]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetClipboardFormatNameW(format : u32, lpszformatname : windows_core::PWSTR, cchmaxcount : i32) -> i32); - GetClipboardFormatNameW(core::mem::transmute(format), core::mem::transmute(lpszformatname.as_ptr()), lpszformatname.len().try_into().unwrap()) + GetClipboardFormatNameW(format, core::mem::transmute(lpszformatname.as_ptr()), lpszformatname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClipboardOwner() -> windows_core::Result { @@ -313,7 +313,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalAddAtomExA(lpstring : windows_core::PCSTR, flags : u32) -> u16); - GlobalAddAtomExA(lpstring.param().abi(), core::mem::transmute(flags)) + GlobalAddAtomExA(lpstring.param().abi(), flags) } #[inline] pub unsafe fn GlobalAddAtomExW(lpstring: P0, flags: u32) -> u16 @@ -321,7 +321,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalAddAtomExW(lpstring : windows_core::PCWSTR, flags : u32) -> u16); - GlobalAddAtomExW(lpstring.param().abi(), core::mem::transmute(flags)) + GlobalAddAtomExW(lpstring.param().abi(), flags) } #[inline] pub unsafe fn GlobalAddAtomW(lpstring: P0) -> u16 @@ -334,7 +334,7 @@ where #[inline] pub unsafe fn GlobalDeleteAtom(natom: u16) -> u16 { windows_targets::link!("kernel32.dll" "system" fn GlobalDeleteAtom(natom : u16) -> u16); - GlobalDeleteAtom(core::mem::transmute(natom)) + GlobalDeleteAtom(natom) } #[inline] pub unsafe fn GlobalFindAtomA(lpstring: P0) -> u16 @@ -355,27 +355,27 @@ where #[inline] pub unsafe fn GlobalGetAtomNameA(natom: u16, lpbuffer: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GlobalGetAtomNameA(natom : u16, lpbuffer : windows_core::PSTR, nsize : i32) -> u32); - GlobalGetAtomNameA(core::mem::transmute(natom), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + GlobalGetAtomNameA(natom, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn GlobalGetAtomNameW(natom: u16, lpbuffer: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GlobalGetAtomNameW(natom : u16, lpbuffer : windows_core::PWSTR, nsize : i32) -> u32); - GlobalGetAtomNameW(core::mem::transmute(natom), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + GlobalGetAtomNameW(natom, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn ImpersonateDdeClientWindow(hwndclient: super::super::Foundation::HWND, hwndserver: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ImpersonateDdeClientWindow(hwndclient : super::super::Foundation:: HWND, hwndserver : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ImpersonateDdeClientWindow(core::mem::transmute(hwndclient), core::mem::transmute(hwndserver)).ok() + ImpersonateDdeClientWindow(hwndclient, hwndserver).ok() } #[inline] pub unsafe fn InitAtomTable(nsize: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn InitAtomTable(nsize : u32) -> super::super::Foundation:: BOOL); - InitAtomTable(core::mem::transmute(nsize)) + InitAtomTable(nsize) } #[inline] pub unsafe fn IsClipboardFormatAvailable(format: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsClipboardFormatAvailable(format : u32) -> super::super::Foundation:: BOOL); - IsClipboardFormatAvailable(core::mem::transmute(format)).ok() + IsClipboardFormatAvailable(format).ok() } #[inline] pub unsafe fn OpenClipboard(hwndnewowner: Option) -> windows_core::Result<()> { @@ -385,7 +385,7 @@ pub unsafe fn OpenClipboard(hwndnewowner: Option #[inline] pub unsafe fn PackDDElParam(msg: u32, uilo: usize, uihi: usize) -> super::super::Foundation::LPARAM { windows_targets::link!("user32.dll" "system" fn PackDDElParam(msg : u32, uilo : usize, uihi : usize) -> super::super::Foundation:: LPARAM); - PackDDElParam(core::mem::transmute(msg), core::mem::transmute(uilo), core::mem::transmute(uihi)) + PackDDElParam(msg, uilo, uihi) } #[inline] pub unsafe fn RegisterClipboardFormatA(lpszformat: P0) -> u32 @@ -406,23 +406,23 @@ where #[inline] pub unsafe fn RemoveClipboardFormatListener(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RemoveClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - RemoveClipboardFormatListener(core::mem::transmute(hwnd)).ok() + RemoveClipboardFormatListener(hwnd).ok() } #[inline] pub unsafe fn ReuseDDElParam(lparam: super::super::Foundation::LPARAM, msgin: u32, msgout: u32, uilo: usize, uihi: usize) -> super::super::Foundation::LPARAM { windows_targets::link!("user32.dll" "system" fn ReuseDDElParam(lparam : super::super::Foundation:: LPARAM, msgin : u32, msgout : u32, uilo : usize, uihi : usize) -> super::super::Foundation:: LPARAM); - ReuseDDElParam(core::mem::transmute(lparam), core::mem::transmute(msgin), core::mem::transmute(msgout), core::mem::transmute(uilo), core::mem::transmute(uihi)) + ReuseDDElParam(lparam, msgin, msgout, uilo, uihi) } #[inline] pub unsafe fn SetClipboardData(uformat: u32, hmem: Option) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn SetClipboardData(uformat : u32, hmem : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = SetClipboardData(core::mem::transmute(uformat), core::mem::transmute(hmem.unwrap_or(core::mem::zeroed()))); + let result__ = SetClipboardData(uformat, core::mem::transmute(hmem.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetClipboardViewer(hwndnewviewer: super::super::Foundation::HWND) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn SetClipboardViewer(hwndnewviewer : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - let result__ = SetClipboardViewer(core::mem::transmute(hwndnewviewer)); + let result__ = SetClipboardViewer(hwndnewviewer); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -434,7 +434,7 @@ pub unsafe fn SetWinMetaFileBits(lpmeta16data: &[u8], hdcref: Option super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UnpackDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM, puilo : *mut usize, puihi : *mut usize) -> super::super::Foundation:: BOOL); - UnpackDDElParam(core::mem::transmute(msg), core::mem::transmute(lparam), core::mem::transmute(puilo), core::mem::transmute(puihi)) + UnpackDDElParam(msg, lparam, core::mem::transmute(puilo), core::mem::transmute(puihi)) } pub const APPCLASS_MASK: i32 = 15i32; pub const APPCLASS_MONITOR: DDE_INITIALIZE_COMMAND = DDE_INITIALIZE_COMMAND(1u32); diff --git a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs index 3444361c78..a0f0ead43f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -1,102 +1,102 @@ #[inline] pub unsafe fn PxeAsyncRecvDone(hclientrequest: super::super::Foundation::HANDLE, action: u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeAsyncRecvDone(hclientrequest : super::super::Foundation:: HANDLE, action : u32) -> u32); - PxeAsyncRecvDone(core::mem::transmute(hclientrequest), core::mem::transmute(action)) + PxeAsyncRecvDone(hclientrequest, action) } #[inline] pub unsafe fn PxeDhcpAppendOption(preplypacket: *mut core::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, boption: u8, boptionlen: u8, pvalue: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpAppendOption(preplypacket : *mut core::ffi::c_void, umaxreplypacketlen : u32, pureplypacketlen : *mut u32, boption : u8, boptionlen : u8, pvalue : *const core::ffi::c_void) -> u32); - PxeDhcpAppendOption(core::mem::transmute(preplypacket), core::mem::transmute(umaxreplypacketlen), core::mem::transmute(pureplypacketlen), core::mem::transmute(boption), core::mem::transmute(boptionlen), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))) + PxeDhcpAppendOption(core::mem::transmute(preplypacket), umaxreplypacketlen, core::mem::transmute(pureplypacketlen), boption, boptionlen, core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpAppendOptionRaw(preplypacket: *mut core::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, ubufferlen: u16, pbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpAppendOptionRaw(preplypacket : *mut core::ffi::c_void, umaxreplypacketlen : u32, pureplypacketlen : *mut u32, ubufferlen : u16, pbuffer : *const core::ffi::c_void) -> u32); - PxeDhcpAppendOptionRaw(core::mem::transmute(preplypacket), core::mem::transmute(umaxreplypacketlen), core::mem::transmute(pureplypacketlen), core::mem::transmute(ubufferlen), core::mem::transmute(pbuffer)) + PxeDhcpAppendOptionRaw(core::mem::transmute(preplypacket), umaxreplypacketlen, core::mem::transmute(pureplypacketlen), ubufferlen, pbuffer) } #[inline] pub unsafe fn PxeDhcpGetOptionValue(ppacket: *const core::ffi::c_void, upacketlen: u32, uinstance: u32, boption: u8, pboptionlen: Option<*mut u8>, ppoptionvalue: Option<*mut *mut core::ffi::c_void>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpGetOptionValue(ppacket : *const core::ffi::c_void, upacketlen : u32, uinstance : u32, boption : u8, pboptionlen : *mut u8, ppoptionvalue : *mut *mut core::ffi::c_void) -> u32); - PxeDhcpGetOptionValue(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(uinstance), core::mem::transmute(boption), core::mem::transmute(pboptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) + PxeDhcpGetOptionValue(ppacket, upacketlen, uinstance, boption, core::mem::transmute(pboptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpGetVendorOptionValue(ppacket: *const core::ffi::c_void, upacketlen: u32, boption: u8, uinstance: u32, pboptionlen: Option<*mut u8>, ppoptionvalue: Option<*mut *mut core::ffi::c_void>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpGetVendorOptionValue(ppacket : *const core::ffi::c_void, upacketlen : u32, boption : u8, uinstance : u32, pboptionlen : *mut u8, ppoptionvalue : *mut *mut core::ffi::c_void) -> u32); - PxeDhcpGetVendorOptionValue(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(boption), core::mem::transmute(uinstance), core::mem::transmute(pboptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) + PxeDhcpGetVendorOptionValue(ppacket, upacketlen, boption, uinstance, core::mem::transmute(pboptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpInitialize(precvpacket: *const core::ffi::c_void, urecvpacketlen: u32, preplypacket: *mut core::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpInitialize(precvpacket : *const core::ffi::c_void, urecvpacketlen : u32, preplypacket : *mut core::ffi::c_void, umaxreplypacketlen : u32, pureplypacketlen : *mut u32) -> u32); - PxeDhcpInitialize(core::mem::transmute(precvpacket), core::mem::transmute(urecvpacketlen), core::mem::transmute(preplypacket), core::mem::transmute(umaxreplypacketlen), core::mem::transmute(pureplypacketlen)) + PxeDhcpInitialize(precvpacket, urecvpacketlen, core::mem::transmute(preplypacket), umaxreplypacketlen, core::mem::transmute(pureplypacketlen)) } #[inline] pub unsafe fn PxeDhcpIsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: bool, pbpxeoptionpresent: Option<*mut super::super::Foundation::BOOL>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpIsValid(ppacket : *const core::ffi::c_void, upacketlen : u32, brequestpacket : super::super::Foundation:: BOOL, pbpxeoptionpresent : *mut super::super::Foundation:: BOOL) -> u32); - PxeDhcpIsValid(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), brequestpacket.into(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(core::mem::zeroed()))) + PxeDhcpIsValid(ppacket, upacketlen, brequestpacket.into(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpv6AppendOption(preply: *mut core::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, woptiontype: u16, cboption: u16, poption: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6AppendOption(preply : *mut core::ffi::c_void, cbreply : u32, pcbreplyused : *mut u32, woptiontype : u16, cboption : u16, poption : *const core::ffi::c_void) -> u32); - PxeDhcpv6AppendOption(core::mem::transmute(preply), core::mem::transmute(cbreply), core::mem::transmute(pcbreplyused), core::mem::transmute(woptiontype), core::mem::transmute(cboption), core::mem::transmute(poption)) + PxeDhcpv6AppendOption(core::mem::transmute(preply), cbreply, core::mem::transmute(pcbreplyused), woptiontype, cboption, poption) } #[inline] pub unsafe fn PxeDhcpv6AppendOptionRaw(preply: *mut core::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, cbbuffer: u16, pbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6AppendOptionRaw(preply : *mut core::ffi::c_void, cbreply : u32, pcbreplyused : *mut u32, cbbuffer : u16, pbuffer : *const core::ffi::c_void) -> u32); - PxeDhcpv6AppendOptionRaw(core::mem::transmute(preply), core::mem::transmute(cbreply), core::mem::transmute(pcbreplyused), core::mem::transmute(cbbuffer), core::mem::transmute(pbuffer)) + PxeDhcpv6AppendOptionRaw(core::mem::transmute(preply), cbreply, core::mem::transmute(pcbreplyused), cbbuffer, pbuffer) } #[inline] pub unsafe fn PxeDhcpv6CreateRelayRepl(prelaymessages: &[PXE_DHCPV6_NESTED_RELAY_MESSAGE], pinnerpacket: &[u8], preplybuffer: *mut core::ffi::c_void, cbreplybuffer: u32, pcbreplybuffer: *mut u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6CreateRelayRepl(prelaymessages : *const PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages : u32, pinnerpacket : *const u8, cbinnerpacket : u32, preplybuffer : *mut core::ffi::c_void, cbreplybuffer : u32, pcbreplybuffer : *mut u32) -> u32); - PxeDhcpv6CreateRelayRepl(core::mem::transmute(prelaymessages.as_ptr()), prelaymessages.len().try_into().unwrap(), core::mem::transmute(pinnerpacket.as_ptr()), pinnerpacket.len().try_into().unwrap(), core::mem::transmute(preplybuffer), core::mem::transmute(cbreplybuffer), core::mem::transmute(pcbreplybuffer)) + PxeDhcpv6CreateRelayRepl(core::mem::transmute(prelaymessages.as_ptr()), prelaymessages.len().try_into().unwrap(), core::mem::transmute(pinnerpacket.as_ptr()), pinnerpacket.len().try_into().unwrap(), core::mem::transmute(preplybuffer), cbreplybuffer, core::mem::transmute(pcbreplybuffer)) } #[inline] pub unsafe fn PxeDhcpv6GetOptionValue(ppacket: *const core::ffi::c_void, upacketlen: u32, uinstance: u32, woption: u16, pwoptionlen: Option<*mut u16>, ppoptionvalue: Option<*mut *mut core::ffi::c_void>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6GetOptionValue(ppacket : *const core::ffi::c_void, upacketlen : u32, uinstance : u32, woption : u16, pwoptionlen : *mut u16, ppoptionvalue : *mut *mut core::ffi::c_void) -> u32); - PxeDhcpv6GetOptionValue(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(uinstance), core::mem::transmute(woption), core::mem::transmute(pwoptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) + PxeDhcpv6GetOptionValue(ppacket, upacketlen, uinstance, woption, core::mem::transmute(pwoptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpv6GetVendorOptionValue(ppacket: *const core::ffi::c_void, upacketlen: u32, dwenterprisenumber: u32, woption: u16, uinstance: u32, pwoptionlen: Option<*mut u16>, ppoptionvalue: Option<*mut *mut core::ffi::c_void>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6GetVendorOptionValue(ppacket : *const core::ffi::c_void, upacketlen : u32, dwenterprisenumber : u32, woption : u16, uinstance : u32, pwoptionlen : *mut u16, ppoptionvalue : *mut *mut core::ffi::c_void) -> u32); - PxeDhcpv6GetVendorOptionValue(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(dwenterprisenumber), core::mem::transmute(woption), core::mem::transmute(uinstance), core::mem::transmute(pwoptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) + PxeDhcpv6GetVendorOptionValue(ppacket, upacketlen, dwenterprisenumber, woption, uinstance, core::mem::transmute(pwoptionlen.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppoptionvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpv6Initialize(prequest: *const core::ffi::c_void, cbrequest: u32, preply: *mut core::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6Initialize(prequest : *const core::ffi::c_void, cbrequest : u32, preply : *mut core::ffi::c_void, cbreply : u32, pcbreplyused : *mut u32) -> u32); - PxeDhcpv6Initialize(core::mem::transmute(prequest), core::mem::transmute(cbrequest), core::mem::transmute(preply), core::mem::transmute(cbreply), core::mem::transmute(pcbreplyused)) + PxeDhcpv6Initialize(prequest, cbrequest, core::mem::transmute(preply), cbreply, core::mem::transmute(pcbreplyused)) } #[inline] pub unsafe fn PxeDhcpv6IsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: bool, pbpxeoptionpresent: Option<*mut super::super::Foundation::BOOL>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6IsValid(ppacket : *const core::ffi::c_void, upacketlen : u32, brequestpacket : super::super::Foundation:: BOOL, pbpxeoptionpresent : *mut super::super::Foundation:: BOOL) -> u32); - PxeDhcpv6IsValid(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), brequestpacket.into(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(core::mem::zeroed()))) + PxeDhcpv6IsValid(ppacket, upacketlen, brequestpacket.into(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeDhcpv6ParseRelayForw(prelayforwpacket: *const core::ffi::c_void, urelayforwpacketlen: u32, prelaymessages: &mut [PXE_DHCPV6_NESTED_RELAY_MESSAGE], pnrelaymessages: *mut u32, ppinnerpacket: *mut *mut u8, pcbinnerpacket: *mut u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6ParseRelayForw(prelayforwpacket : *const core::ffi::c_void, urelayforwpacketlen : u32, prelaymessages : *mut PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages : u32, pnrelaymessages : *mut u32, ppinnerpacket : *mut *mut u8, pcbinnerpacket : *mut u32) -> u32); - PxeDhcpv6ParseRelayForw(core::mem::transmute(prelayforwpacket), core::mem::transmute(urelayforwpacketlen), core::mem::transmute(prelaymessages.as_ptr()), prelaymessages.len().try_into().unwrap(), core::mem::transmute(pnrelaymessages), core::mem::transmute(ppinnerpacket), core::mem::transmute(pcbinnerpacket)) + PxeDhcpv6ParseRelayForw(prelayforwpacket, urelayforwpacketlen, core::mem::transmute(prelaymessages.as_ptr()), prelaymessages.len().try_into().unwrap(), core::mem::transmute(pnrelaymessages), core::mem::transmute(ppinnerpacket), core::mem::transmute(pcbinnerpacket)) } #[inline] pub unsafe fn PxeGetServerInfo(uinfotype: u32, pbuffer: *mut core::ffi::c_void, ubufferlen: u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeGetServerInfo(uinfotype : u32, pbuffer : *mut core::ffi::c_void, ubufferlen : u32) -> u32); - PxeGetServerInfo(core::mem::transmute(uinfotype), core::mem::transmute(pbuffer), core::mem::transmute(ubufferlen)) + PxeGetServerInfo(uinfotype, core::mem::transmute(pbuffer), ubufferlen) } #[inline] pub unsafe fn PxeGetServerInfoEx(uinfotype: u32, pbuffer: *mut core::ffi::c_void, ubufferlen: u32, pubufferused: *mut u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeGetServerInfoEx(uinfotype : u32, pbuffer : *mut core::ffi::c_void, ubufferlen : u32, pubufferused : *mut u32) -> u32); - PxeGetServerInfoEx(core::mem::transmute(uinfotype), core::mem::transmute(pbuffer), core::mem::transmute(ubufferlen), core::mem::transmute(pubufferused)) + PxeGetServerInfoEx(uinfotype, core::mem::transmute(pbuffer), ubufferlen, core::mem::transmute(pubufferused)) } #[inline] pub unsafe fn PxePacketAllocate(hprovider: super::super::Foundation::HANDLE, hclientrequest: super::super::Foundation::HANDLE, usize: u32) -> *mut core::ffi::c_void { windows_targets::link!("wdspxe.dll" "system" fn PxePacketAllocate(hprovider : super::super::Foundation:: HANDLE, hclientrequest : super::super::Foundation:: HANDLE, usize : u32) -> *mut core::ffi::c_void); - PxePacketAllocate(core::mem::transmute(hprovider), core::mem::transmute(hclientrequest), core::mem::transmute(usize)) + PxePacketAllocate(hprovider, hclientrequest, usize) } #[inline] pub unsafe fn PxePacketFree(hprovider: super::super::Foundation::HANDLE, hclientrequest: super::super::Foundation::HANDLE, ppacket: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxePacketFree(hprovider : super::super::Foundation:: HANDLE, hclientrequest : super::super::Foundation:: HANDLE, ppacket : *const core::ffi::c_void) -> u32); - PxePacketFree(core::mem::transmute(hprovider), core::mem::transmute(hclientrequest), core::mem::transmute(ppacket)) + PxePacketFree(hprovider, hclientrequest, ppacket) } #[inline] pub unsafe fn PxeProviderEnumClose(henum: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderEnumClose(henum : super::super::Foundation:: HANDLE) -> u32); - PxeProviderEnumClose(core::mem::transmute(henum)) + PxeProviderEnumClose(henum) } #[inline] pub unsafe fn PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE) -> u32 { @@ -106,12 +106,12 @@ pub unsafe fn PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE #[inline] pub unsafe fn PxeProviderEnumNext(henum: super::super::Foundation::HANDLE, ppprovider: *mut *mut PXE_PROVIDER) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderEnumNext(henum : super::super::Foundation:: HANDLE, ppprovider : *mut *mut PXE_PROVIDER) -> u32); - PxeProviderEnumNext(core::mem::transmute(henum), core::mem::transmute(ppprovider)) + PxeProviderEnumNext(henum, core::mem::transmute(ppprovider)) } #[inline] pub unsafe fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderFreeInfo(pprovider : *const PXE_PROVIDER) -> u32); - PxeProviderFreeInfo(core::mem::transmute(pprovider)) + PxeProviderFreeInfo(pprovider) } #[inline] pub unsafe fn PxeProviderQueryIndex(pszprovidername: P0, puindex: *mut u32) -> u32 @@ -129,12 +129,12 @@ where P1: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderRegister(pszprovidername : windows_core::PCWSTR, pszmodulepath : windows_core::PCWSTR, index : u32, biscritical : super::super::Foundation:: BOOL, phproviderkey : *mut super::Registry:: HKEY) -> u32); - PxeProviderRegister(pszprovidername.param().abi(), pszmodulepath.param().abi(), core::mem::transmute(index), biscritical.into(), core::mem::transmute(phproviderkey.unwrap_or(core::mem::zeroed()))) + PxeProviderRegister(pszprovidername.param().abi(), pszmodulepath.param().abi(), index, biscritical.into(), core::mem::transmute(phproviderkey.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeProviderSetAttribute(hprovider: super::super::Foundation::HANDLE, attribute: u32, pparameterbuffer: *const core::ffi::c_void, uparamlen: u32) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderSetAttribute(hprovider : super::super::Foundation:: HANDLE, attribute : u32, pparameterbuffer : *const core::ffi::c_void, uparamlen : u32) -> u32); - PxeProviderSetAttribute(core::mem::transmute(hprovider), core::mem::transmute(attribute), core::mem::transmute(pparameterbuffer), core::mem::transmute(uparamlen)) + PxeProviderSetAttribute(hprovider, attribute, pparameterbuffer, uparamlen) } #[inline] pub unsafe fn PxeProviderUnRegister(pszprovidername: P0) -> u32 @@ -147,12 +147,12 @@ where #[inline] pub unsafe fn PxeRegisterCallback(hprovider: super::super::Foundation::HANDLE, callbacktype: u32, pcallbackfunction: *const core::ffi::c_void, pcontext: Option<*const core::ffi::c_void>) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeRegisterCallback(hprovider : super::super::Foundation:: HANDLE, callbacktype : u32, pcallbackfunction : *const core::ffi::c_void, pcontext : *const core::ffi::c_void) -> u32); - PxeRegisterCallback(core::mem::transmute(hprovider), core::mem::transmute(callbacktype), core::mem::transmute(pcallbackfunction), core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) + PxeRegisterCallback(hprovider, callbacktype, pcallbackfunction, core::mem::transmute(pcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PxeSendReply(hclientrequest: super::super::Foundation::HANDLE, ppacket: *const core::ffi::c_void, upacketlen: u32, paddress: *const PXE_ADDRESS) -> u32 { windows_targets::link!("wdspxe.dll" "system" fn PxeSendReply(hclientrequest : super::super::Foundation:: HANDLE, ppacket : *const core::ffi::c_void, upacketlen : u32, paddress : *const PXE_ADDRESS) -> u32); - PxeSendReply(core::mem::transmute(hclientrequest), core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(paddress)) + PxeSendReply(hclientrequest, ppacket, upacketlen, paddress) } #[inline] pub unsafe fn PxeTrace(hprovider: super::super::Foundation::HANDLE, severity: u32, pszformat: P2) -> u32 @@ -160,7 +160,7 @@ where P2: windows_core::Param, { windows_targets::link!("wdspxe.dll" "cdecl" fn PxeTrace(hprovider : super::super::Foundation:: HANDLE, severity : u32, pszformat : windows_core::PCWSTR) -> u32); - PxeTrace(core::mem::transmute(hprovider), core::mem::transmute(severity), pszformat.param().abi()) + PxeTrace(hprovider, severity, pszformat.param().abi()) } #[inline] pub unsafe fn PxeTraceV(hprovider: super::super::Foundation::HANDLE, severity: u32, pszformat: P2, params: *const i8) -> u32 @@ -168,42 +168,42 @@ where P2: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeTraceV(hprovider : super::super::Foundation:: HANDLE, severity : u32, pszformat : windows_core::PCWSTR, params : *const i8) -> u32); - PxeTraceV(core::mem::transmute(hprovider), core::mem::transmute(severity), pszformat.param().abi(), core::mem::transmute(params)) + PxeTraceV(hprovider, severity, pszformat.param().abi(), params) } #[inline] pub unsafe fn WdsBpAddOption(hhandle: super::super::Foundation::HANDLE, uoption: u32, uvaluelen: u32, pvalue: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpAddOption(hhandle : super::super::Foundation:: HANDLE, uoption : u32, uvaluelen : u32, pvalue : *const core::ffi::c_void) -> u32); - WdsBpAddOption(core::mem::transmute(hhandle), core::mem::transmute(uoption), core::mem::transmute(uvaluelen), core::mem::transmute(pvalue)) + WdsBpAddOption(hhandle, uoption, uvaluelen, pvalue) } #[inline] pub unsafe fn WdsBpCloseHandle(hhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpCloseHandle(hhandle : super::super::Foundation:: HANDLE) -> u32); - WdsBpCloseHandle(core::mem::transmute(hhandle)) + WdsBpCloseHandle(hhandle) } #[inline] pub unsafe fn WdsBpGetOptionBuffer(hhandle: super::super::Foundation::HANDLE, ubufferlen: u32, pbuffer: *mut core::ffi::c_void, pubytes: *mut u32) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpGetOptionBuffer(hhandle : super::super::Foundation:: HANDLE, ubufferlen : u32, pbuffer : *mut core::ffi::c_void, pubytes : *mut u32) -> u32); - WdsBpGetOptionBuffer(core::mem::transmute(hhandle), core::mem::transmute(ubufferlen), core::mem::transmute(pbuffer), core::mem::transmute(pubytes)) + WdsBpGetOptionBuffer(hhandle, ubufferlen, core::mem::transmute(pbuffer), core::mem::transmute(pubytes)) } #[inline] pub unsafe fn WdsBpInitialize(bpackettype: u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpInitialize(bpackettype : u8, phhandle : *mut super::super::Foundation:: HANDLE) -> u32); - WdsBpInitialize(core::mem::transmute(bpackettype), core::mem::transmute(phhandle)) + WdsBpInitialize(bpackettype, core::mem::transmute(phhandle)) } #[inline] pub unsafe fn WdsBpParseInitialize(ppacket: *const core::ffi::c_void, upacketlen: u32, pbpackettype: Option<*mut u8>, phhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpParseInitialize(ppacket : *const core::ffi::c_void, upacketlen : u32, pbpackettype : *mut u8, phhandle : *mut super::super::Foundation:: HANDLE) -> u32); - WdsBpParseInitialize(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(pbpackettype.unwrap_or(core::mem::zeroed())), core::mem::transmute(phhandle)) + WdsBpParseInitialize(ppacket, upacketlen, core::mem::transmute(pbpackettype.unwrap_or(core::mem::zeroed())), core::mem::transmute(phhandle)) } #[inline] pub unsafe fn WdsBpParseInitializev6(ppacket: *const core::ffi::c_void, upacketlen: u32, pbpackettype: Option<*mut u8>, phhandle: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpParseInitializev6(ppacket : *const core::ffi::c_void, upacketlen : u32, pbpackettype : *mut u8, phhandle : *mut super::super::Foundation:: HANDLE) -> u32); - WdsBpParseInitializev6(core::mem::transmute(ppacket), core::mem::transmute(upacketlen), core::mem::transmute(pbpackettype.unwrap_or(core::mem::zeroed())), core::mem::transmute(phhandle)) + WdsBpParseInitializev6(ppacket, upacketlen, core::mem::transmute(pbpackettype.unwrap_or(core::mem::zeroed())), core::mem::transmute(phhandle)) } #[inline] pub unsafe fn WdsBpQueryOption(hhandle: super::super::Foundation::HANDLE, uoption: u32, uvaluelen: u32, pvalue: *mut core::ffi::c_void, pubytes: Option<*mut u32>) -> u32 { windows_targets::link!("wdsbp.dll" "system" fn WdsBpQueryOption(hhandle : super::super::Foundation:: HANDLE, uoption : u32, uvaluelen : u32, pvalue : *mut core::ffi::c_void, pubytes : *mut u32) -> u32); - WdsBpQueryOption(core::mem::transmute(hhandle), core::mem::transmute(uoption), core::mem::transmute(uvaluelen), core::mem::transmute(pvalue), core::mem::transmute(pubytes.unwrap_or(core::mem::zeroed()))) + WdsBpQueryOption(hhandle, uoption, uvaluelen, core::mem::transmute(pvalue), core::mem::transmute(pubytes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WdsCliAuthorizeSession(hsession: super::super::Foundation::HANDLE, pcred: Option<*const WDS_CLI_CRED>) -> windows_core::Result<()> { @@ -213,12 +213,12 @@ pub unsafe fn WdsCliAuthorizeSession(hsession: super::super::Foundation::HANDLE, #[inline] pub unsafe fn WdsCliCancelTransfer(htransfer: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliCancelTransfer(htransfer : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliCancelTransfer(core::mem::transmute(htransfer)).ok() + WdsCliCancelTransfer(htransfer).ok() } #[inline] pub unsafe fn WdsCliClose(handle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliClose(handle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliClose(core::mem::transmute(handle)).ok() + WdsCliClose(handle).ok() } #[inline] pub unsafe fn WdsCliCreateSession(pwszserver: P0, pcred: Option<*const WDS_CLI_CRED>) -> windows_core::Result @@ -233,12 +233,12 @@ where pub unsafe fn WdsCliFindFirstImage(hsession: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliFindFirstImage(hsession : super::super::Foundation:: HANDLE, phfindhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliFindFirstImage(core::mem::transmute(hsession), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliFindFirstImage(hsession, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliFindNextImage(handle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliFindNextImage(handle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliFindNextImage(core::mem::transmute(handle)).ok() + WdsCliFindNextImage(handle).ok() } #[inline] pub unsafe fn WdsCliFreeStringArray(ppwszarray: Option<&mut [windows_core::PWSTR]>) -> windows_core::Result<()> { @@ -258,118 +258,118 @@ where pub unsafe fn WdsCliGetEnumerationFlags(handle: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetEnumerationFlags(handle : super::super::Foundation:: HANDLE, pdwflags : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetEnumerationFlags(core::mem::transmute(handle), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetEnumerationFlags(handle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageArchitecture(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageArchitecture(hifh : super::super::Foundation:: HANDLE, pdwvalue : *mut CPU_ARCHITECTURE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageArchitecture(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageArchitecture(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageDescription(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageDescription(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageDescription(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageDescription(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageFiles(hifh: super::super::Foundation::HANDLE, pppwszfiles: *mut *mut windows_core::PWSTR, pdwcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageFiles(hifh : super::super::Foundation:: HANDLE, pppwszfiles : *mut *mut windows_core::PWSTR, pdwcount : *mut u32) -> windows_core::HRESULT); - WdsCliGetImageFiles(core::mem::transmute(hifh), core::mem::transmute(pppwszfiles), core::mem::transmute(pdwcount)).ok() + WdsCliGetImageFiles(hifh, core::mem::transmute(pppwszfiles), core::mem::transmute(pdwcount)).ok() } #[inline] pub unsafe fn WdsCliGetImageGroup(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageGroup(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageGroup(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageGroup(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageHalName(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHalName(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageHalName(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageHalName(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageHandleFromFindHandle(findhandle: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHandleFromFindHandle(findhandle : super::super::Foundation:: HANDLE, phimagehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageHandleFromFindHandle(core::mem::transmute(findhandle), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageHandleFromFindHandle(findhandle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageHandleFromTransferHandle(htransfer: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHandleFromTransferHandle(htransfer : super::super::Foundation:: HANDLE, phimagehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageHandleFromTransferHandle(core::mem::transmute(htransfer), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageHandleFromTransferHandle(htransfer, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageIndex(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageIndex(hifh : super::super::Foundation:: HANDLE, pdwvalue : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageIndex(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageIndex(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageLanguage(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageLanguage(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageLanguage(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageLanguage(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageLanguages(hifh: super::super::Foundation::HANDLE, pppszvalues: *mut *mut *mut i8, pdwnumvalues: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageLanguages(hifh : super::super::Foundation:: HANDLE, pppszvalues : *mut *mut *mut i8, pdwnumvalues : *mut u32) -> windows_core::HRESULT); - WdsCliGetImageLanguages(core::mem::transmute(hifh), core::mem::transmute(pppszvalues), core::mem::transmute(pdwnumvalues)).ok() + WdsCliGetImageLanguages(hifh, core::mem::transmute(pppszvalues), core::mem::transmute(pdwnumvalues)).ok() } #[inline] pub unsafe fn WdsCliGetImageLastModifiedTime(hifh: super::super::Foundation::HANDLE) -> windows_core::Result<*mut super::super::Foundation::SYSTEMTIME> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageLastModifiedTime(hifh : super::super::Foundation:: HANDLE, ppsystimevalue : *mut *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageLastModifiedTime(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageLastModifiedTime(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageName(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageName(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageName(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageName(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageNamespace(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageNamespace(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageNamespace(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageNamespace(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageParameter(hifh: super::super::Foundation::HANDLE, paramtype: WDS_CLI_IMAGE_PARAM_TYPE, presponse: *mut core::ffi::c_void, uresponselen: u32) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageParameter(hifh : super::super::Foundation:: HANDLE, paramtype : WDS_CLI_IMAGE_PARAM_TYPE, presponse : *mut core::ffi::c_void, uresponselen : u32) -> windows_core::HRESULT); - WdsCliGetImageParameter(core::mem::transmute(hifh), core::mem::transmute(paramtype), core::mem::transmute(presponse), core::mem::transmute(uresponselen)).ok() + WdsCliGetImageParameter(hifh, paramtype, core::mem::transmute(presponse), uresponselen).ok() } #[inline] pub unsafe fn WdsCliGetImagePath(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImagePath(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImagePath(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImagePath(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageSize(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageSize(hifh : super::super::Foundation:: HANDLE, pullvalue : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageSize(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageSize(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageType(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageType(hifh : super::super::Foundation:: HANDLE, pimagetype : *mut WDS_CLI_IMAGE_TYPE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageType(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageType(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetImageVersion(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageVersion(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetImageVersion(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageVersion(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliGetTransferSize(hifh: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetTransferSize(hifh : super::super::Foundation:: HANDLE, pullvalue : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliGetTransferSize(core::mem::transmute(hifh), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetTransferSize(hifh, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliInitializeLog(hsession: super::super::Foundation::HANDLE, ulclientarchitecture: CPU_ARCHITECTURE, pwszclientid: P2, pwszclientaddress: P3) -> windows_core::Result<()> @@ -378,17 +378,17 @@ where P3: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliInitializeLog(hsession : super::super::Foundation:: HANDLE, ulclientarchitecture : CPU_ARCHITECTURE, pwszclientid : windows_core::PCWSTR, pwszclientaddress : windows_core::PCWSTR) -> windows_core::HRESULT); - WdsCliInitializeLog(core::mem::transmute(hsession), core::mem::transmute(ulclientarchitecture), pwszclientid.param().abi(), pwszclientaddress.param().abi()).ok() + WdsCliInitializeLog(hsession, ulclientarchitecture, pwszclientid.param().abi(), pwszclientaddress.param().abi()).ok() } #[inline] pub unsafe fn WdsCliLog(hsession: super::super::Foundation::HANDLE, ulloglevel: u32, ulmessagecode: u32) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "cdecl" fn WdsCliLog(hsession : super::super::Foundation:: HANDLE, ulloglevel : u32, ulmessagecode : u32) -> windows_core::HRESULT); - WdsCliLog(core::mem::transmute(hsession), core::mem::transmute(ulloglevel), core::mem::transmute(ulmessagecode)).ok() + WdsCliLog(hsession, ulloglevel, ulmessagecode).ok() } #[inline] pub unsafe fn WdsCliObtainDriverPackages(himage: super::super::Foundation::HANDLE, ppwszservername: *mut windows_core::PWSTR, pppwszdriverpackages: *mut *mut windows_core::PWSTR, pulcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliObtainDriverPackages(himage : super::super::Foundation:: HANDLE, ppwszservername : *mut windows_core::PWSTR, pppwszdriverpackages : *mut *mut windows_core::PWSTR, pulcount : *mut u32) -> windows_core::HRESULT); - WdsCliObtainDriverPackages(core::mem::transmute(himage), core::mem::transmute(ppwszservername), core::mem::transmute(pppwszdriverpackages), core::mem::transmute(pulcount)).ok() + WdsCliObtainDriverPackages(himage, core::mem::transmute(ppwszservername), core::mem::transmute(pppwszdriverpackages), core::mem::transmute(pulcount)).ok() } #[inline] pub unsafe fn WdsCliObtainDriverPackagesEx(hsession: super::super::Foundation::HANDLE, pwszmachineinfo: P1, ppwszservername: *mut windows_core::PWSTR, pppwszdriverpackages: *mut *mut windows_core::PWSTR, pulcount: *mut u32) -> windows_core::Result<()> @@ -396,7 +396,7 @@ where P1: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliObtainDriverPackagesEx(hsession : super::super::Foundation:: HANDLE, pwszmachineinfo : windows_core::PCWSTR, ppwszservername : *mut windows_core::PWSTR, pppwszdriverpackages : *mut *mut windows_core::PWSTR, pulcount : *mut u32) -> windows_core::HRESULT); - WdsCliObtainDriverPackagesEx(core::mem::transmute(hsession), pwszmachineinfo.param().abi(), core::mem::transmute(ppwszservername), core::mem::transmute(pppwszdriverpackages), core::mem::transmute(pulcount)).ok() + WdsCliObtainDriverPackagesEx(hsession, pwszmachineinfo.param().abi(), core::mem::transmute(ppwszservername), core::mem::transmute(pppwszdriverpackages), core::mem::transmute(pulcount)).ok() } #[inline] pub unsafe fn WdsCliRegisterTrace(pfn: Option) -> windows_core::Result<()> { @@ -406,7 +406,7 @@ pub unsafe fn WdsCliRegisterTrace(pfn: Option) -> windo #[inline] pub unsafe fn WdsCliSetTransferBufferSize(ulsizeinbytes: u32) { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliSetTransferBufferSize(ulsizeinbytes : u32)); - WdsCliSetTransferBufferSize(core::mem::transmute(ulsizeinbytes)) + WdsCliSetTransferBufferSize(ulsizeinbytes) } #[inline] pub unsafe fn WdsCliTransferFile(pwszserver: P0, pwsznamespace: P1, pwszremotefilepath: P2, pwszlocalfilepath: P3, dwflags: u32, dwreserved: u32, pfnwdsclicallback: Option, pvuserdata: Option<*const core::ffi::c_void>) -> windows_core::Result @@ -418,7 +418,7 @@ where { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliTransferFile(pwszserver : windows_core::PCWSTR, pwsznamespace : windows_core::PCWSTR, pwszremotefilepath : windows_core::PCWSTR, pwszlocalfilepath : windows_core::PCWSTR, dwflags : u32, dwreserved : u32, pfnwdsclicallback : PFN_WdsCliCallback, pvuserdata : *const core::ffi::c_void, phtransfer : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliTransferFile(pwszserver.param().abi(), pwsznamespace.param().abi(), pwszremotefilepath.param().abi(), pwszlocalfilepath.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), core::mem::transmute(pfnwdsclicallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvuserdata.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliTransferFile(pwszserver.param().abi(), pwsznamespace.param().abi(), pwszremotefilepath.param().abi(), pwszlocalfilepath.param().abi(), dwflags, dwreserved, core::mem::transmute(pfnwdsclicallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvuserdata.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliTransferImage(himage: super::super::Foundation::HANDLE, pwszlocalpath: P1, dwflags: u32, dwreserved: u32, pfnwdsclicallback: Option, pvuserdata: Option<*const core::ffi::c_void>) -> windows_core::Result @@ -427,37 +427,37 @@ where { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliTransferImage(himage : super::super::Foundation:: HANDLE, pwszlocalpath : windows_core::PCWSTR, dwflags : u32, dwreserved : u32, pfnwdsclicallback : PFN_WdsCliCallback, pvuserdata : *const core::ffi::c_void, phtransfer : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WdsCliTransferImage(core::mem::transmute(himage), pwszlocalpath.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved), core::mem::transmute(pfnwdsclicallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvuserdata.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliTransferImage(himage, pwszlocalpath.param().abi(), dwflags, dwreserved, core::mem::transmute(pfnwdsclicallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvuserdata.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WdsCliWaitForTransfer(htransfer: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliWaitForTransfer(htransfer : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliWaitForTransfer(core::mem::transmute(htransfer)).ok() + WdsCliWaitForTransfer(htransfer).ok() } #[inline] pub unsafe fn WdsTransportClientAddRefBuffer(pvbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientAddRefBuffer(pvbuffer : *const core::ffi::c_void) -> u32); - WdsTransportClientAddRefBuffer(core::mem::transmute(pvbuffer)) + WdsTransportClientAddRefBuffer(pvbuffer) } #[inline] pub unsafe fn WdsTransportClientCancelSession(hsessionkey: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCancelSession(hsessionkey : super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientCancelSession(core::mem::transmute(hsessionkey)) + WdsTransportClientCancelSession(hsessionkey) } #[inline] pub unsafe fn WdsTransportClientCancelSessionEx(hsessionkey: super::super::Foundation::HANDLE, dwerrorcode: u32) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCancelSessionEx(hsessionkey : super::super::Foundation:: HANDLE, dwerrorcode : u32) -> u32); - WdsTransportClientCancelSessionEx(core::mem::transmute(hsessionkey), core::mem::transmute(dwerrorcode)) + WdsTransportClientCancelSessionEx(hsessionkey, dwerrorcode) } #[inline] pub unsafe fn WdsTransportClientCloseSession(hsessionkey: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCloseSession(hsessionkey : super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientCloseSession(core::mem::transmute(hsessionkey)) + WdsTransportClientCloseSession(hsessionkey) } #[inline] pub unsafe fn WdsTransportClientCompleteReceive(hsessionkey: super::super::Foundation::HANDLE, ulsize: u32, pulloffset: *const u64) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCompleteReceive(hsessionkey : super::super::Foundation:: HANDLE, ulsize : u32, pulloffset : *const u64) -> u32); - WdsTransportClientCompleteReceive(core::mem::transmute(hsessionkey), core::mem::transmute(ulsize), core::mem::transmute(pulloffset)) + WdsTransportClientCompleteReceive(hsessionkey, ulsize, pulloffset) } #[inline] pub unsafe fn WdsTransportClientInitialize() -> u32 { @@ -467,22 +467,22 @@ pub unsafe fn WdsTransportClientInitialize() -> u32 { #[inline] pub unsafe fn WdsTransportClientInitializeSession(psessionrequest: *const WDS_TRANSPORTCLIENT_REQUEST, pcallerdata: *const core::ffi::c_void, hsessionkey: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientInitializeSession(psessionrequest : *const WDS_TRANSPORTCLIENT_REQUEST, pcallerdata : *const core::ffi::c_void, hsessionkey : *mut super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientInitializeSession(core::mem::transmute(psessionrequest), core::mem::transmute(pcallerdata), core::mem::transmute(hsessionkey)) + WdsTransportClientInitializeSession(psessionrequest, pcallerdata, core::mem::transmute(hsessionkey)) } #[inline] pub unsafe fn WdsTransportClientQueryStatus(hsessionkey: super::super::Foundation::HANDLE, pustatus: *mut u32, puerrorcode: *mut u32) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientQueryStatus(hsessionkey : super::super::Foundation:: HANDLE, pustatus : *mut u32, puerrorcode : *mut u32) -> u32); - WdsTransportClientQueryStatus(core::mem::transmute(hsessionkey), core::mem::transmute(pustatus), core::mem::transmute(puerrorcode)) + WdsTransportClientQueryStatus(hsessionkey, core::mem::transmute(pustatus), core::mem::transmute(puerrorcode)) } #[inline] pub unsafe fn WdsTransportClientRegisterCallback(hsessionkey: super::super::Foundation::HANDLE, callbackid: TRANSPORTCLIENT_CALLBACK_ID, pfncallback: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientRegisterCallback(hsessionkey : super::super::Foundation:: HANDLE, callbackid : TRANSPORTCLIENT_CALLBACK_ID, pfncallback : *const core::ffi::c_void) -> u32); - WdsTransportClientRegisterCallback(core::mem::transmute(hsessionkey), core::mem::transmute(callbackid), core::mem::transmute(pfncallback)) + WdsTransportClientRegisterCallback(hsessionkey, callbackid, pfncallback) } #[inline] pub unsafe fn WdsTransportClientReleaseBuffer(pvbuffer: *const core::ffi::c_void) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientReleaseBuffer(pvbuffer : *const core::ffi::c_void) -> u32); - WdsTransportClientReleaseBuffer(core::mem::transmute(pvbuffer)) + WdsTransportClientReleaseBuffer(pvbuffer) } #[inline] pub unsafe fn WdsTransportClientShutdown() -> u32 { @@ -492,32 +492,32 @@ pub unsafe fn WdsTransportClientShutdown() -> u32 { #[inline] pub unsafe fn WdsTransportClientStartSession(hsessionkey: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientStartSession(hsessionkey : super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientStartSession(core::mem::transmute(hsessionkey)) + WdsTransportClientStartSession(hsessionkey) } #[inline] pub unsafe fn WdsTransportClientWaitForCompletion(hsessionkey: super::super::Foundation::HANDLE, utimeout: u32) -> u32 { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientWaitForCompletion(hsessionkey : super::super::Foundation:: HANDLE, utimeout : u32) -> u32); - WdsTransportClientWaitForCompletion(core::mem::transmute(hsessionkey), core::mem::transmute(utimeout)) + WdsTransportClientWaitForCompletion(hsessionkey, utimeout) } #[inline] pub unsafe fn WdsTransportServerAllocateBuffer(hprovider: super::super::Foundation::HANDLE, ulbuffersize: u32) -> *mut core::ffi::c_void { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerAllocateBuffer(hprovider : super::super::Foundation:: HANDLE, ulbuffersize : u32) -> *mut core::ffi::c_void); - WdsTransportServerAllocateBuffer(core::mem::transmute(hprovider), core::mem::transmute(ulbuffersize)) + WdsTransportServerAllocateBuffer(hprovider, ulbuffersize) } #[inline] pub unsafe fn WdsTransportServerCompleteRead(hprovider: super::super::Foundation::HANDLE, ulbytesread: u32, pvuserdata: *const core::ffi::c_void, hreadresult: windows_core::HRESULT) -> windows_core::Result<()> { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerCompleteRead(hprovider : super::super::Foundation:: HANDLE, ulbytesread : u32, pvuserdata : *const core::ffi::c_void, hreadresult : windows_core::HRESULT) -> windows_core::HRESULT); - WdsTransportServerCompleteRead(core::mem::transmute(hprovider), core::mem::transmute(ulbytesread), core::mem::transmute(pvuserdata), core::mem::transmute(hreadresult)).ok() + WdsTransportServerCompleteRead(hprovider, ulbytesread, pvuserdata, hreadresult).ok() } #[inline] pub unsafe fn WdsTransportServerFreeBuffer(hprovider: super::super::Foundation::HANDLE, pvbuffer: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerFreeBuffer(hprovider : super::super::Foundation:: HANDLE, pvbuffer : *const core::ffi::c_void) -> windows_core::HRESULT); - WdsTransportServerFreeBuffer(core::mem::transmute(hprovider), core::mem::transmute(pvbuffer)).ok() + WdsTransportServerFreeBuffer(hprovider, pvbuffer).ok() } #[inline] pub unsafe fn WdsTransportServerRegisterCallback(hprovider: super::super::Foundation::HANDLE, callbackid: TRANSPORTPROVIDER_CALLBACK_ID, pfncallback: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerRegisterCallback(hprovider : super::super::Foundation:: HANDLE, callbackid : TRANSPORTPROVIDER_CALLBACK_ID, pfncallback : *const core::ffi::c_void) -> windows_core::HRESULT); - WdsTransportServerRegisterCallback(core::mem::transmute(hprovider), core::mem::transmute(callbackid), core::mem::transmute(pfncallback)).ok() + WdsTransportServerRegisterCallback(hprovider, callbackid, pfncallback).ok() } #[inline] pub unsafe fn WdsTransportServerTrace(hprovider: super::super::Foundation::HANDLE, severity: u32, pwszformat: P2) -> windows_core::Result<()> @@ -525,7 +525,7 @@ where P2: windows_core::Param, { windows_targets::link!("wdsmc.dll" "cdecl" fn WdsTransportServerTrace(hprovider : super::super::Foundation:: HANDLE, severity : u32, pwszformat : windows_core::PCWSTR) -> windows_core::HRESULT); - WdsTransportServerTrace(core::mem::transmute(hprovider), core::mem::transmute(severity), pwszformat.param().abi()).ok() + WdsTransportServerTrace(hprovider, severity, pwszformat.param().abi()).ok() } #[inline] pub unsafe fn WdsTransportServerTraceV(hprovider: super::super::Foundation::HANDLE, severity: u32, pwszformat: P2, params: *const i8) -> windows_core::Result<()> @@ -533,7 +533,7 @@ where P2: windows_core::Param, { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerTraceV(hprovider : super::super::Foundation:: HANDLE, severity : u32, pwszformat : windows_core::PCWSTR, params : *const i8) -> windows_core::HRESULT); - WdsTransportServerTraceV(core::mem::transmute(hprovider), core::mem::transmute(severity), pwszformat.param().abi(), core::mem::transmute(params)).ok() + WdsTransportServerTraceV(hprovider, severity, pwszformat.param().abi(), params).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -704,7 +704,7 @@ impl IWdsTransportClient { (windows_core::Interface::vtable(self).UserIdentity)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Disconnect(&self, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(disconnectiontype)).ok() + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), disconnectiontype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -897,7 +897,7 @@ impl IWdsTransportCollection { } pub unsafe fn get_Item(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), ulindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -987,7 +987,7 @@ impl IWdsTransportConfigurationManager { } pub unsafe fn get_WdsTransportServicesRunning(&self, brealtimestatus: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_WdsTransportServicesRunning)(windows_core::Interface::as_raw(self), core::mem::transmute(brealtimestatus), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_WdsTransportServicesRunning)(windows_core::Interface::as_raw(self), brealtimestatus, &mut result__).map(|| result__) } pub unsafe fn EnableWdsTransportServices(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableWdsTransportServices)(windows_core::Interface::as_raw(self)).ok() @@ -1005,7 +1005,7 @@ impl IWdsTransportConfigurationManager { (windows_core::Interface::vtable(self).RestartWdsTransportServices)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn NotifyWdsTransportServices(&self, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyWdsTransportServices)(windows_core::Interface::as_raw(self), core::mem::transmute(servicenotification)).ok() + (windows_core::Interface::vtable(self).NotifyWdsTransportServices)(windows_core::Interface::as_raw(self), servicenotification).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1393,14 +1393,14 @@ impl IWdsTransportDiagnosticsPolicy { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(benabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benabled).ok() } pub unsafe fn Components(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Components)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetComponents(&self, ulcomponents: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetComponents)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcomponents)).ok() + (windows_core::Interface::vtable(self).SetComponents)(windows_core::Interface::as_raw(self), ulcomponents).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1531,28 +1531,28 @@ impl IWdsTransportMulticastSessionPolicy { (windows_core::Interface::vtable(self).SlowClientHandling)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSlowClientHandling(&self, slowclienthandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSlowClientHandling)(windows_core::Interface::as_raw(self), core::mem::transmute(slowclienthandling)).ok() + (windows_core::Interface::vtable(self).SetSlowClientHandling)(windows_core::Interface::as_raw(self), slowclienthandling).ok() } pub unsafe fn AutoDisconnectThreshold(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoDisconnectThreshold)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoDisconnectThreshold(&self, ulthreshold: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoDisconnectThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(ulthreshold)).ok() + (windows_core::Interface::vtable(self).SetAutoDisconnectThreshold)(windows_core::Interface::as_raw(self), ulthreshold).ok() } pub unsafe fn MultistreamStreamCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MultistreamStreamCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMultistreamStreamCount(&self, ulstreamcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMultistreamStreamCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstreamcount)).ok() + (windows_core::Interface::vtable(self).SetMultistreamStreamCount)(windows_core::Interface::as_raw(self), ulstreamcount).ok() } pub unsafe fn SlowClientFallback(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SlowClientFallback)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSlowClientFallback(&self, bclientfallback: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSlowClientFallback)(windows_core::Interface::as_raw(self), core::mem::transmute(bclientfallback)).ok() + (windows_core::Interface::vtable(self).SetSlowClientFallback)(windows_core::Interface::as_raw(self), bclientfallback).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1732,7 +1732,7 @@ impl IWdsTransportNamespace { (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Deregister(&self, bterminatesessions: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Deregister)(windows_core::Interface::as_raw(self), core::mem::transmute(bterminatesessions)).ok() + (windows_core::Interface::vtable(self).Deregister)(windows_core::Interface::as_raw(self), bterminatesessions).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2036,7 +2036,7 @@ windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceManager, windows_c impl IWdsTransportNamespaceManager { pub unsafe fn CreateNamespace(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: &windows_core::BSTR, bszcontentprovider: &windows_core::BSTR, bszconfiguration: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNamespace)(windows_core::Interface::as_raw(self), core::mem::transmute(namespacetype), core::mem::transmute_copy(bsznamespacename), core::mem::transmute_copy(bszcontentprovider), core::mem::transmute_copy(bszconfiguration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNamespace)(windows_core::Interface::as_raw(self), namespacetype, core::mem::transmute_copy(bsznamespacename), core::mem::transmute_copy(bszcontentprovider), core::mem::transmute_copy(bszconfiguration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RetrieveNamespace(&self, bsznamespacename: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2044,7 +2044,7 @@ impl IWdsTransportNamespaceManager { } pub unsafe fn RetrieveNamespaces(&self, bszcontentprovider: &windows_core::BSTR, bsznamespacename: &windows_core::BSTR, bincludetombstones: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RetrieveNamespaces)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bszcontentprovider), core::mem::transmute_copy(bsznamespacename), core::mem::transmute(bincludetombstones), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RetrieveNamespaces)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bszcontentprovider), core::mem::transmute_copy(bsznamespacename), bincludetombstones, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2167,14 +2167,14 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { (windows_core::Interface::vtable(self).MinimumClients)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinimumClients(&self, ulminimumclients: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimumClients)(windows_core::Interface::as_raw(self), core::mem::transmute(ulminimumclients)).ok() + (windows_core::Interface::vtable(self).SetMinimumClients)(windows_core::Interface::as_raw(self), ulminimumclients).ok() } pub unsafe fn StartTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartTime(&self, starttime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime)).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), starttime).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2297,7 +2297,7 @@ impl IWdsTransportServer { (windows_core::Interface::vtable(self).NamespaceManager)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DisconnectClient(&self, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectClient)(windows_core::Interface::as_raw(self), core::mem::transmute(ulclientid), core::mem::transmute(disconnectiontype)).ok() + (windows_core::Interface::vtable(self).DisconnectClient)(windows_core::Interface::as_raw(self), ulclientid, disconnectiontype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2444,45 +2444,45 @@ windows_core::imp::interface_hierarchy!(IWdsTransportServicePolicy, windows_core impl IWdsTransportServicePolicy { pub unsafe fn get_IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IpAddressSource)(windows_core::Interface::as_raw(self), core::mem::transmute(addresstype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IpAddressSource)(windows_core::Interface::as_raw(self), addresstype, &mut result__).map(|| result__) } pub unsafe fn put_IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_IpAddressSource)(windows_core::Interface::as_raw(self), core::mem::transmute(addresstype), core::mem::transmute(sourcetype)).ok() + (windows_core::Interface::vtable(self).put_IpAddressSource)(windows_core::Interface::as_raw(self), addresstype, sourcetype).ok() } pub unsafe fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_StartIpAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(addresstype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_StartIpAddress)(windows_core::Interface::as_raw(self), addresstype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_StartIpAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(addresstype), core::mem::transmute_copy(bszstartipaddress)).ok() + (windows_core::Interface::vtable(self).put_StartIpAddress)(windows_core::Interface::as_raw(self), addresstype, core::mem::transmute_copy(bszstartipaddress)).ok() } pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_EndIpAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(addresstype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_EndIpAddress)(windows_core::Interface::as_raw(self), addresstype, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_EndIpAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(addresstype), core::mem::transmute_copy(bszendipaddress)).ok() + (windows_core::Interface::vtable(self).put_EndIpAddress)(windows_core::Interface::as_raw(self), addresstype, core::mem::transmute_copy(bszendipaddress)).ok() } pub unsafe fn StartPort(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartPort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStartPort(&self, ulstartport: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartPort)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartport)).ok() + (windows_core::Interface::vtable(self).SetStartPort)(windows_core::Interface::as_raw(self), ulstartport).ok() } pub unsafe fn EndPort(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EndPort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEndPort(&self, ulendport: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEndPort)(windows_core::Interface::as_raw(self), core::mem::transmute(ulendport)).ok() + (windows_core::Interface::vtable(self).SetEndPort)(windows_core::Interface::as_raw(self), ulendport).ok() } pub unsafe fn NetworkProfile(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NetworkProfile)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNetworkProfile(&self, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNetworkProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(profiletype)).ok() + (windows_core::Interface::vtable(self).SetNetworkProfile)(windows_core::Interface::as_raw(self), profiletype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2644,21 +2644,21 @@ impl IWdsTransportServicePolicy2 { (windows_core::Interface::vtable(self).UdpPortPolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUdpPortPolicy(&self, udpportpolicy: WDSTRANSPORT_UDP_PORT_POLICY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUdpPortPolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(udpportpolicy)).ok() + (windows_core::Interface::vtable(self).SetUdpPortPolicy)(windows_core::Interface::as_raw(self), udpportpolicy).ok() } pub unsafe fn TftpMaximumBlockSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TftpMaximumBlockSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTftpMaximumBlockSize(&self, ultftpmaximumblocksize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTftpMaximumBlockSize)(windows_core::Interface::as_raw(self), core::mem::transmute(ultftpmaximumblocksize)).ok() + (windows_core::Interface::vtable(self).SetTftpMaximumBlockSize)(windows_core::Interface::as_raw(self), ultftpmaximumblocksize).ok() } pub unsafe fn EnableTftpVariableWindowExtension(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableTftpVariableWindowExtension)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnableTftpVariableWindowExtension(&self, benabletftpvariablewindowextension: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableTftpVariableWindowExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(benabletftpvariablewindowextension)).ok() + (windows_core::Interface::vtable(self).SetEnableTftpVariableWindowExtension)(windows_core::Interface::as_raw(self), benabletftpvariablewindowextension).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs index 034d82791e..118d361a2d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs @@ -193,7 +193,7 @@ impl IRDPSRAPIApplication { (windows_core::Interface::vtable(self).Shared)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShared(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -323,7 +323,7 @@ impl IRDPSRAPIApplicationFilter { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -412,7 +412,7 @@ impl IRDPSRAPIApplicationList { } pub unsafe fn get_Item(&self, item: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(item), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -484,7 +484,7 @@ impl IRDPSRAPIAttendee { (windows_core::Interface::vtable(self).ControlLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetControlLevel(&self, pnewval: CTRL_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(pnewval)).ok() + (windows_core::Interface::vtable(self).SetControlLevel)(windows_core::Interface::as_raw(self), pnewval).ok() } pub unsafe fn Invitation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -720,7 +720,7 @@ impl IRDPSRAPIAttendeeManager { } pub unsafe fn get_Item(&self, id: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -853,7 +853,7 @@ impl IRDPSRAPIClipboardUseEvents { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPasteFromClipboard)(windows_core::Interface::as_raw(self), core::mem::transmute(clipboardformat), pattendee.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnPasteFromClipboard)(windows_core::Interface::as_raw(self), clipboardformat, pattendee.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -965,7 +965,7 @@ impl IRDPSRAPIFrameBuffer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFrameBufferBits(&self, x: i32, y: i32, width: i32, heigth: i32) -> windows_core::Result<*mut super::Com::SAFEARRAY> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFrameBufferBits)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(width), core::mem::transmute(heigth), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFrameBufferBits)(windows_core::Interface::as_raw(self), x, y, width, heigth, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1074,14 +1074,14 @@ impl IRDPSRAPIInvitation { (windows_core::Interface::vtable(self).AttendeeLimit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttendeeLimit(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttendeeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetAttendeeLimit)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Revoked(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Revoked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRevoked(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRevoked)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetRevoked)(windows_core::Interface::as_raw(self), newval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1212,7 +1212,7 @@ impl IRDPSRAPIInvitationManager { } pub unsafe fn CreateInvitation(&self, bstrauthstring: &windows_core::BSTR, bstrgroupname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, attendeelimit: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInvitation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrauthstring), core::mem::transmute_copy(bstrgroupname), core::mem::transmute_copy(bstrpassword), core::mem::transmute(attendeelimit), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInvitation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrauthstring), core::mem::transmute_copy(bstrgroupname), core::mem::transmute_copy(bstrpassword), attendeelimit, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1295,7 +1295,7 @@ windows_core::imp::define_interface!(IRDPSRAPIPerfCounterLogger, IRDPSRAPIPerfCo windows_core::imp::interface_hierarchy!(IRDPSRAPIPerfCounterLogger, windows_core::IUnknown); impl IRDPSRAPIPerfCounterLogger { pub unsafe fn LogValue(&self, lvalue: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LogValue)(windows_core::Interface::as_raw(self), core::mem::transmute(lvalue)).ok() + (windows_core::Interface::vtable(self).LogValue)(windows_core::Interface::as_raw(self), lvalue).ok() } } #[repr(C)] @@ -1444,7 +1444,7 @@ impl IRDPSRAPISharingSession { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetColorDepth(&self, colordepth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(colordepth)).ok() + (windows_core::Interface::vtable(self).SetColorDepth)(windows_core::Interface::as_raw(self), colordepth).ok() } pub unsafe fn ColorDepth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1480,7 +1480,7 @@ impl IRDPSRAPISharingSession { (windows_core::Interface::vtable(self).ConnectToClient)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnectionstring)).ok() } pub unsafe fn SetDesktopSharedRect(&self, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesktopSharedRect)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)).ok() + (windows_core::Interface::vtable(self).SetDesktopSharedRect)(windows_core::Interface::as_raw(self), left, top, right, bottom).ok() } pub unsafe fn GetDesktopSharedRect(&self, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDesktopSharedRect)(windows_core::Interface::as_raw(self), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom)).ok() @@ -1668,7 +1668,7 @@ impl IRDPSRAPISharingSession2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendControlLevelChangeResponse)(windows_core::Interface::as_raw(self), pattendee.param().abi(), core::mem::transmute(requestedlevel), core::mem::transmute(reasoncode)).ok() + (windows_core::Interface::vtable(self).SendControlLevelChangeResponse)(windows_core::Interface::as_raw(self), pattendee.param().abi(), requestedlevel, reasoncode).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1844,7 +1844,7 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStream, windows_core:: impl IRDPSRAPITransportStream { pub unsafe fn AllocBuffer(&self, maxpayload: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(maxpayload), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AllocBuffer)(windows_core::Interface::as_raw(self), maxpayload, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FreeBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where @@ -1955,21 +1955,21 @@ impl IRDPSRAPITransportStreamBuffer { (windows_core::Interface::vtable(self).PayloadSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPayloadSize(&self, lval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPayloadSize)(windows_core::Interface::as_raw(self), core::mem::transmute(lval)).ok() + (windows_core::Interface::vtable(self).SetPayloadSize)(windows_core::Interface::as_raw(self), lval).ok() } pub unsafe fn PayloadOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PayloadOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPayloadOffset(&self, lretval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPayloadOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(lretval)).ok() + (windows_core::Interface::vtable(self).SetPayloadOffset)(windows_core::Interface::as_raw(self), lretval).ok() } pub unsafe fn Flags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Flags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn Context(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2121,7 +2121,7 @@ impl IRDPSRAPITransportStreamEvents { (windows_core::Interface::vtable(self).OnReadCompleted)(windows_core::Interface::as_raw(self), pbuffer.param().abi()) } pub unsafe fn OnStreamClosed(&self, hrreason: windows_core::HRESULT) { - (windows_core::Interface::vtable(self).OnStreamClosed)(windows_core::Interface::as_raw(self), core::mem::transmute(hrreason)) + (windows_core::Interface::vtable(self).OnStreamClosed)(windows_core::Interface::as_raw(self), hrreason) } } #[repr(C)] @@ -2198,14 +2198,14 @@ impl IRDPSRAPIViewer { (windows_core::Interface::vtable(self).VirtualChannelManager)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSmartSizing(&self, vbsmartsizing: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSmartSizing)(windows_core::Interface::as_raw(self), core::mem::transmute(vbsmartsizing)).ok() + (windows_core::Interface::vtable(self).SetSmartSizing)(windows_core::Interface::as_raw(self), vbsmartsizing).ok() } pub unsafe fn SmartSizing(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SmartSizing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn RequestControl(&self, ctrllevel: CTRL_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestControl)(windows_core::Interface::as_raw(self), core::mem::transmute(ctrllevel)).ok() + (windows_core::Interface::vtable(self).RequestControl)(windows_core::Interface::as_raw(self), ctrllevel).ok() } pub unsafe fn SetDisconnectedText(&self, bstrdisconnectedtext: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDisconnectedText)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdisconnectedtext)).ok() @@ -2215,7 +2215,7 @@ impl IRDPSRAPIViewer { (windows_core::Interface::vtable(self).DisconnectedText)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RequestColorDepthChange(&self, bpp: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestColorDepthChange)(windows_core::Interface::as_raw(self), core::mem::transmute(bpp)).ok() + (windows_core::Interface::vtable(self).RequestColorDepthChange)(windows_core::Interface::as_raw(self), bpp).ok() } pub unsafe fn Properties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2407,10 +2407,10 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPIVirtualChannel, windows_core::I #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIVirtualChannel { pub unsafe fn SendData(&self, bstrdata: &windows_core::BSTR, lattendeeid: i32, channelsendflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdata), core::mem::transmute(lattendeeid), core::mem::transmute(channelsendflags)).ok() + (windows_core::Interface::vtable(self).SendData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdata), lattendeeid, channelsendflags).ok() } pub unsafe fn SetAccess(&self, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAccess)(windows_core::Interface::as_raw(self), core::mem::transmute(lattendeeid), core::mem::transmute(accesstype)).ok() + (windows_core::Interface::vtable(self).SetAccess)(windows_core::Interface::as_raw(self), lattendeeid, accesstype).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2523,7 +2523,7 @@ impl IRDPSRAPIVirtualChannelManager { } pub unsafe fn CreateVirtualChannel(&self, bstrchannelname: &windows_core::BSTR, priority: CHANNEL_PRIORITY, channelflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrchannelname), core::mem::transmute(priority), core::mem::transmute(channelflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrchannelname), priority, channelflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2615,7 +2615,7 @@ impl IRDPSRAPIWindow { (windows_core::Interface::vtable(self).Shared)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShared(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2748,7 +2748,7 @@ impl IRDPSRAPIWindowList { } pub unsafe fn get_Item(&self, item: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(item), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2798,25 +2798,25 @@ windows_core::imp::define_interface!(IRDPViewerInputSink, IRDPViewerInputSink_Vt windows_core::imp::interface_hierarchy!(IRDPViewerInputSink, windows_core::IUnknown); impl IRDPViewerInputSink { pub unsafe fn SendMouseButtonEvent(&self, buttontype: RDPSRAPI_MOUSE_BUTTON_TYPE, vbbuttondown: super::super::Foundation::VARIANT_BOOL, xpos: u32, ypos: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMouseButtonEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(buttontype), core::mem::transmute(vbbuttondown), core::mem::transmute(xpos), core::mem::transmute(ypos)).ok() + (windows_core::Interface::vtable(self).SendMouseButtonEvent)(windows_core::Interface::as_raw(self), buttontype, vbbuttondown, xpos, ypos).ok() } pub unsafe fn SendMouseMoveEvent(&self, xpos: u32, ypos: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMouseMoveEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(xpos), core::mem::transmute(ypos)).ok() + (windows_core::Interface::vtable(self).SendMouseMoveEvent)(windows_core::Interface::as_raw(self), xpos, ypos).ok() } pub unsafe fn SendMouseWheelEvent(&self, wheelrotation: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMouseWheelEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(wheelrotation)).ok() + (windows_core::Interface::vtable(self).SendMouseWheelEvent)(windows_core::Interface::as_raw(self), wheelrotation).ok() } pub unsafe fn SendKeyboardEvent(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).SendKeyboardEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(codetype), core::mem::transmute(keycode), core::mem::transmute(vbkeyup), core::mem::transmute(vbrepeat), core::mem::transmute(vbextended)).ok() + (windows_core::Interface::vtable(self).SendKeyboardEvent)(windows_core::Interface::as_raw(self), codetype, keycode, vbkeyup, vbrepeat, vbextended).ok() } pub unsafe fn SendSyncEvent(&self, syncflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendSyncEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(syncflags)).ok() + (windows_core::Interface::vtable(self).SendSyncEvent)(windows_core::Interface::as_raw(self), syncflags).ok() } pub unsafe fn BeginTouchFrame(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginTouchFrame)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddTouchInput(&self, contactid: u32, event: u32, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTouchInput)(windows_core::Interface::as_raw(self), core::mem::transmute(contactid), core::mem::transmute(event), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).AddTouchInput)(windows_core::Interface::as_raw(self), contactid, event, x, y).ok() } pub unsafe fn EndTouchFrame(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndTouchFrame)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/mod.rs index 9d02df6f96..d4ff2f9c01 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/mod.rs @@ -415,7 +415,7 @@ windows_core::imp::interface_hierarchy!(ICorProfilerAssemblyReferenceProvider, w impl ICorProfilerAssemblyReferenceProvider { #[cfg(feature = "Win32_System_WinRT_Metadata")] pub unsafe fn AddAssemblyReference(&self, passemblyrefinfo: *const COR_PRF_ASSEMBLY_REFERENCE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAssemblyReference)(windows_core::Interface::as_raw(self), core::mem::transmute(passemblyrefinfo)).ok() + (windows_core::Interface::vtable(self).AddAssemblyReference)(windows_core::Interface::as_raw(self), passemblyrefinfo).ok() } } #[repr(C)] @@ -458,102 +458,102 @@ impl ICorProfilerCallback { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AppDomainCreationStarted(&self, appdomainid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppDomainCreationStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(appdomainid)).ok() + (windows_core::Interface::vtable(self).AppDomainCreationStarted)(windows_core::Interface::as_raw(self), appdomainid).ok() } pub unsafe fn AppDomainCreationFinished(&self, appdomainid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppDomainCreationFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(appdomainid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).AppDomainCreationFinished)(windows_core::Interface::as_raw(self), appdomainid, hrstatus).ok() } pub unsafe fn AppDomainShutdownStarted(&self, appdomainid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppDomainShutdownStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(appdomainid)).ok() + (windows_core::Interface::vtable(self).AppDomainShutdownStarted)(windows_core::Interface::as_raw(self), appdomainid).ok() } pub unsafe fn AppDomainShutdownFinished(&self, appdomainid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppDomainShutdownFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(appdomainid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).AppDomainShutdownFinished)(windows_core::Interface::as_raw(self), appdomainid, hrstatus).ok() } pub unsafe fn AssemblyLoadStarted(&self, assemblyid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssemblyLoadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(assemblyid)).ok() + (windows_core::Interface::vtable(self).AssemblyLoadStarted)(windows_core::Interface::as_raw(self), assemblyid).ok() } pub unsafe fn AssemblyLoadFinished(&self, assemblyid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssemblyLoadFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(assemblyid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).AssemblyLoadFinished)(windows_core::Interface::as_raw(self), assemblyid, hrstatus).ok() } pub unsafe fn AssemblyUnloadStarted(&self, assemblyid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssemblyUnloadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(assemblyid)).ok() + (windows_core::Interface::vtable(self).AssemblyUnloadStarted)(windows_core::Interface::as_raw(self), assemblyid).ok() } pub unsafe fn AssemblyUnloadFinished(&self, assemblyid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssemblyUnloadFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(assemblyid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).AssemblyUnloadFinished)(windows_core::Interface::as_raw(self), assemblyid, hrstatus).ok() } pub unsafe fn ModuleLoadStarted(&self, moduleid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModuleLoadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid)).ok() + (windows_core::Interface::vtable(self).ModuleLoadStarted)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn ModuleLoadFinished(&self, moduleid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModuleLoadFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).ModuleLoadFinished)(windows_core::Interface::as_raw(self), moduleid, hrstatus).ok() } pub unsafe fn ModuleUnloadStarted(&self, moduleid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModuleUnloadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid)).ok() + (windows_core::Interface::vtable(self).ModuleUnloadStarted)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn ModuleUnloadFinished(&self, moduleid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModuleUnloadFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).ModuleUnloadFinished)(windows_core::Interface::as_raw(self), moduleid, hrstatus).ok() } pub unsafe fn ModuleAttachedToAssembly(&self, moduleid: usize, assemblyid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModuleAttachedToAssembly)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(assemblyid)).ok() + (windows_core::Interface::vtable(self).ModuleAttachedToAssembly)(windows_core::Interface::as_raw(self), moduleid, assemblyid).ok() } pub unsafe fn ClassLoadStarted(&self, classid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClassLoadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(classid)).ok() + (windows_core::Interface::vtable(self).ClassLoadStarted)(windows_core::Interface::as_raw(self), classid).ok() } pub unsafe fn ClassLoadFinished(&self, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClassLoadFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).ClassLoadFinished)(windows_core::Interface::as_raw(self), classid, hrstatus).ok() } pub unsafe fn ClassUnloadStarted(&self, classid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClassUnloadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(classid)).ok() + (windows_core::Interface::vtable(self).ClassUnloadStarted)(windows_core::Interface::as_raw(self), classid).ok() } pub unsafe fn ClassUnloadFinished(&self, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClassUnloadFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).ClassUnloadFinished)(windows_core::Interface::as_raw(self), classid, hrstatus).ok() } pub unsafe fn FunctionUnloadStarted(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FunctionUnloadStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).FunctionUnloadStarted)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).JITCompilationStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), fissafetoblock.into()).ok() + (windows_core::Interface::vtable(self).JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).JITCompilationFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(hrstatus), fissafetoblock.into()).ok() + (windows_core::Interface::vtable(self).JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).JITCachedFunctionSearchStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).JITCachedFunctionSearchStarted)(windows_core::Interface::as_raw(self), functionid, &mut result__).map(|| result__) } pub unsafe fn JITCachedFunctionSearchFinished(&self, functionid: usize, result: COR_PRF_JIT_CACHE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).JITCachedFunctionSearchFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(result)).ok() + (windows_core::Interface::vtable(self).JITCachedFunctionSearchFinished)(windows_core::Interface::as_raw(self), functionid, result).ok() } pub unsafe fn JITFunctionPitched(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).JITFunctionPitched)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).JITFunctionPitched)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn JITInlining(&self, callerid: usize, calleeid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).JITInlining)(windows_core::Interface::as_raw(self), core::mem::transmute(callerid), core::mem::transmute(calleeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).JITInlining)(windows_core::Interface::as_raw(self), callerid, calleeid, &mut result__).map(|| result__) } pub unsafe fn ThreadCreated(&self, threadid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).ThreadCreated)(windows_core::Interface::as_raw(self), threadid).ok() } pub unsafe fn ThreadDestroyed(&self, threadid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadDestroyed)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).ThreadDestroyed)(windows_core::Interface::as_raw(self), threadid).ok() } pub unsafe fn ThreadAssignedToOSThread(&self, managedthreadid: usize, osthreadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadAssignedToOSThread)(windows_core::Interface::as_raw(self), core::mem::transmute(managedthreadid), core::mem::transmute(osthreadid)).ok() + (windows_core::Interface::vtable(self).ThreadAssignedToOSThread)(windows_core::Interface::as_raw(self), managedthreadid, osthreadid).ok() } pub unsafe fn RemotingClientInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemotingClientInvocationStarted)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(pcookie), fisasync.into()).ok() + (windows_core::Interface::vtable(self).RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), core::mem::transmute(pcookie), fisasync.into()).ok() + (windows_core::Interface::vtable(self).RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(pcookie), fisasync.into()).ok() + (windows_core::Interface::vtable(self).RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -562,16 +562,16 @@ impl ICorProfilerCallback { (windows_core::Interface::vtable(self).RemotingServerInvocationReturned)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemotingServerSendingReply)(windows_core::Interface::as_raw(self), core::mem::transmute(pcookie), fisasync.into()).ok() + (windows_core::Interface::vtable(self).RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(reason)).ok() + (windows_core::Interface::vtable(self).UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() } pub unsafe fn ManagedToUnmanagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ManagedToUnmanagedTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(reason)).ok() + (windows_core::Interface::vtable(self).ManagedToUnmanagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() } pub unsafe fn RuntimeSuspendStarted(&self, suspendreason: COR_PRF_SUSPEND_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RuntimeSuspendStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(suspendreason)).ok() + (windows_core::Interface::vtable(self).RuntimeSuspendStarted)(windows_core::Interface::as_raw(self), suspendreason).ok() } pub unsafe fn RuntimeSuspendFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RuntimeSuspendFinished)(windows_core::Interface::as_raw(self)).ok() @@ -586,73 +586,73 @@ impl ICorProfilerCallback { (windows_core::Interface::vtable(self).RuntimeResumeFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RuntimeThreadSuspended(&self, threadid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RuntimeThreadSuspended)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).RuntimeThreadSuspended)(windows_core::Interface::as_raw(self), threadid).ok() } pub unsafe fn RuntimeThreadResumed(&self, threadid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RuntimeThreadResumed)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).RuntimeThreadResumed)(windows_core::Interface::as_raw(self), threadid).ok() } pub unsafe fn MovedReferences(&self, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MovedReferences)(windows_core::Interface::as_raw(self), core::mem::transmute(cmovedobjectidranges), core::mem::transmute(oldobjectidrangestart), core::mem::transmute(newobjectidrangestart), core::mem::transmute(cobjectidrangelength)).ok() + (windows_core::Interface::vtable(self).MovedReferences)(windows_core::Interface::as_raw(self), cmovedobjectidranges, oldobjectidrangestart, newobjectidrangestart, cobjectidrangelength).ok() } pub unsafe fn ObjectAllocated(&self, objectid: usize, classid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ObjectAllocated)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(classid)).ok() + (windows_core::Interface::vtable(self).ObjectAllocated)(windows_core::Interface::as_raw(self), objectid, classid).ok() } pub unsafe fn ObjectsAllocatedByClass(&self, cclasscount: u32, classids: *const usize, cobjects: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ObjectsAllocatedByClass)(windows_core::Interface::as_raw(self), core::mem::transmute(cclasscount), core::mem::transmute(classids), core::mem::transmute(cobjects)).ok() + (windows_core::Interface::vtable(self).ObjectsAllocatedByClass)(windows_core::Interface::as_raw(self), cclasscount, classids, cobjects).ok() } pub unsafe fn ObjectReferences(&self, objectid: usize, classid: usize, objectrefids: &[usize]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ObjectReferences)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(classid), objectrefids.len().try_into().unwrap(), core::mem::transmute(objectrefids.as_ptr())).ok() + (windows_core::Interface::vtable(self).ObjectReferences)(windows_core::Interface::as_raw(self), objectid, classid, objectrefids.len().try_into().unwrap(), core::mem::transmute(objectrefids.as_ptr())).ok() } pub unsafe fn RootReferences(&self, rootrefids: &[usize]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RootReferences)(windows_core::Interface::as_raw(self), rootrefids.len().try_into().unwrap(), core::mem::transmute(rootrefids.as_ptr())).ok() } pub unsafe fn ExceptionThrown(&self, thrownobjectid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionThrown)(windows_core::Interface::as_raw(self), core::mem::transmute(thrownobjectid)).ok() + (windows_core::Interface::vtable(self).ExceptionThrown)(windows_core::Interface::as_raw(self), thrownobjectid).ok() } pub unsafe fn ExceptionSearchFunctionEnter(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionSearchFunctionEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).ExceptionSearchFunctionEnter)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn ExceptionSearchFunctionLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExceptionSearchFunctionLeave)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExceptionSearchFilterEnter(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionSearchFilterEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).ExceptionSearchFilterEnter)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn ExceptionSearchFilterLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExceptionSearchFilterLeave)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExceptionSearchCatcherFound(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionSearchCatcherFound)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).ExceptionSearchCatcherFound)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn ExceptionOSHandlerEnter(&self, __unused: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionOSHandlerEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(__unused)).ok() + (windows_core::Interface::vtable(self).ExceptionOSHandlerEnter)(windows_core::Interface::as_raw(self), __unused).ok() } pub unsafe fn ExceptionOSHandlerLeave(&self, __unused: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionOSHandlerLeave)(windows_core::Interface::as_raw(self), core::mem::transmute(__unused)).ok() + (windows_core::Interface::vtable(self).ExceptionOSHandlerLeave)(windows_core::Interface::as_raw(self), __unused).ok() } pub unsafe fn ExceptionUnwindFunctionEnter(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionUnwindFunctionEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).ExceptionUnwindFunctionEnter)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn ExceptionUnwindFunctionLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExceptionUnwindFunctionLeave)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExceptionUnwindFinallyEnter(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionUnwindFinallyEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).ExceptionUnwindFinallyEnter)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn ExceptionUnwindFinallyLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExceptionUnwindFinallyLeave)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExceptionCatcherEnter(&self, functionid: usize, objectid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExceptionCatcherEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(objectid)).ok() + (windows_core::Interface::vtable(self).ExceptionCatcherEnter)(windows_core::Interface::as_raw(self), functionid, objectid).ok() } pub unsafe fn ExceptionCatcherLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExceptionCatcherLeave)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn COMClassicVTableCreated(&self, wrappedclassid: usize, implementediid: *const windows_core::GUID, pvtable: *const core::ffi::c_void, cslots: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).COMClassicVTableCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(wrappedclassid), core::mem::transmute(implementediid), core::mem::transmute(pvtable), core::mem::transmute(cslots)).ok() + (windows_core::Interface::vtable(self).COMClassicVTableCreated)(windows_core::Interface::as_raw(self), wrappedclassid, implementediid, pvtable, cslots).ok() } pub unsafe fn COMClassicVTableDestroyed(&self, wrappedclassid: usize, implementediid: *const windows_core::GUID, pvtable: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).COMClassicVTableDestroyed)(windows_core::Interface::as_raw(self), core::mem::transmute(wrappedclassid), core::mem::transmute(implementediid), core::mem::transmute(pvtable)).ok() + (windows_core::Interface::vtable(self).COMClassicVTableDestroyed)(windows_core::Interface::as_raw(self), wrappedclassid, implementediid, pvtable).ok() } pub unsafe fn ExceptionCLRCatcherFound(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExceptionCLRCatcherFound)(windows_core::Interface::as_raw(self)).ok() @@ -1183,25 +1183,10 @@ impl core::ops::Deref for ICorProfilerCallback10 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback10, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8, ICorProfilerCallback9); impl ICorProfilerCallback10 { pub unsafe fn EventPipeEventDelivered(&self, provider: usize, eventid: u32, eventversion: u32, metadatablob: &[u8], eventdata: &[u8], pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID, eventthread: usize, numstackframes: u32, stackframes: *const usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventPipeEventDelivered)( - windows_core::Interface::as_raw(self), - core::mem::transmute(provider), - core::mem::transmute(eventid), - core::mem::transmute(eventversion), - metadatablob.len().try_into().unwrap(), - core::mem::transmute(metadatablob.as_ptr()), - eventdata.len().try_into().unwrap(), - core::mem::transmute(eventdata.as_ptr()), - core::mem::transmute(pactivityid), - core::mem::transmute(prelatedactivityid), - core::mem::transmute(eventthread), - core::mem::transmute(numstackframes), - core::mem::transmute(stackframes), - ) - .ok() + (windows_core::Interface::vtable(self).EventPipeEventDelivered)(windows_core::Interface::as_raw(self), provider, eventid, eventversion, metadatablob.len().try_into().unwrap(), core::mem::transmute(metadatablob.as_ptr()), eventdata.len().try_into().unwrap(), core::mem::transmute(eventdata.as_ptr()), pactivityid, prelatedactivityid, eventthread, numstackframes, stackframes).ok() } pub unsafe fn EventPipeProviderCreated(&self, provider: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventPipeProviderCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(provider)).ok() + (windows_core::Interface::vtable(self).EventPipeProviderCreated)(windows_core::Interface::as_raw(self), provider).ok() } } #[repr(C)] @@ -1294,28 +1279,28 @@ impl core::ops::Deref for ICorProfilerCallback2 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback2, windows_core::IUnknown, ICorProfilerCallback); impl ICorProfilerCallback2 { pub unsafe fn ThreadNameChanged(&self, threadid: usize, name: Option<&[u16]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadNameChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), name.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(name.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + (windows_core::Interface::vtable(self).ThreadNameChanged)(windows_core::Interface::as_raw(self), threadid, name.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(name.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GarbageCollectionStarted(&self, generationcollected: &[super::super::super::Foundation::BOOL], reason: COR_PRF_GC_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GarbageCollectionStarted)(windows_core::Interface::as_raw(self), generationcollected.len().try_into().unwrap(), core::mem::transmute(generationcollected.as_ptr()), core::mem::transmute(reason)).ok() + (windows_core::Interface::vtable(self).GarbageCollectionStarted)(windows_core::Interface::as_raw(self), generationcollected.len().try_into().unwrap(), core::mem::transmute(generationcollected.as_ptr()), reason).ok() } pub unsafe fn SurvivingReferences(&self, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SurvivingReferences)(windows_core::Interface::as_raw(self), core::mem::transmute(csurvivingobjectidranges), core::mem::transmute(objectidrangestart), core::mem::transmute(cobjectidrangelength)).ok() + (windows_core::Interface::vtable(self).SurvivingReferences)(windows_core::Interface::as_raw(self), csurvivingobjectidranges, objectidrangestart, cobjectidrangelength).ok() } pub unsafe fn GarbageCollectionFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GarbageCollectionFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn FinalizeableObjectQueued(&self, finalizerflags: u32, objectid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinalizeableObjectQueued)(windows_core::Interface::as_raw(self), core::mem::transmute(finalizerflags), core::mem::transmute(objectid)).ok() + (windows_core::Interface::vtable(self).FinalizeableObjectQueued)(windows_core::Interface::as_raw(self), finalizerflags, objectid).ok() } pub unsafe fn RootReferences2(&self, crootrefs: u32, rootrefids: *const usize, rootkinds: *const COR_PRF_GC_ROOT_KIND, rootflags: *const COR_PRF_GC_ROOT_FLAGS, rootids: *const usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RootReferences2)(windows_core::Interface::as_raw(self), core::mem::transmute(crootrefs), core::mem::transmute(rootrefids), core::mem::transmute(rootkinds), core::mem::transmute(rootflags), core::mem::transmute(rootids)).ok() + (windows_core::Interface::vtable(self).RootReferences2)(windows_core::Interface::as_raw(self), crootrefs, rootrefids, rootkinds, rootflags, rootids).ok() } pub unsafe fn HandleCreated(&self, handleid: usize, initialobjectid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(handleid), core::mem::transmute(initialobjectid)).ok() + (windows_core::Interface::vtable(self).HandleCreated)(windows_core::Interface::as_raw(self), handleid, initialobjectid).ok() } pub unsafe fn HandleDestroyed(&self, handleid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleDestroyed)(windows_core::Interface::as_raw(self), core::mem::transmute(handleid)).ok() + (windows_core::Interface::vtable(self).HandleDestroyed)(windows_core::Interface::as_raw(self), handleid).ok() } } #[repr(C)] @@ -1404,7 +1389,7 @@ impl ICorProfilerCallback3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.param().abi(), core::mem::transmute(pvclientdata), core::mem::transmute(cbclientdata)).ok() + (windows_core::Interface::vtable(self).InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.param().abi(), pvclientdata, cbclientdata).ok() } pub unsafe fn ProfilerAttachComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -1461,25 +1446,25 @@ impl core::ops::Deref for ICorProfilerCallback4 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback4, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3); impl ICorProfilerCallback4 { pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReJITCompilationStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(rejitid), fissafetoblock.into()).ok() + (windows_core::Interface::vtable(self).ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetReJITParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(methodid), pfunctioncontrol.param().abi()).ok() + (windows_core::Interface::vtable(self).GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.param().abi()).ok() } pub unsafe fn ReJITCompilationFinished(&self, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReJITCompilationFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(rejitid), core::mem::transmute(hrstatus), fissafetoblock.into()).ok() + (windows_core::Interface::vtable(self).ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReJITError)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(methodid), core::mem::transmute(functionid), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() } pub unsafe fn MovedReferences2(&self, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MovedReferences2)(windows_core::Interface::as_raw(self), core::mem::transmute(cmovedobjectidranges), core::mem::transmute(oldobjectidrangestart), core::mem::transmute(newobjectidrangestart), core::mem::transmute(cobjectidrangelength)).ok() + (windows_core::Interface::vtable(self).MovedReferences2)(windows_core::Interface::as_raw(self), cmovedobjectidranges, oldobjectidrangestart, newobjectidrangestart, cobjectidrangelength).ok() } pub unsafe fn SurvivingReferences2(&self, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SurvivingReferences2)(windows_core::Interface::as_raw(self), core::mem::transmute(csurvivingobjectidranges), core::mem::transmute(objectidrangestart), core::mem::transmute(cobjectidrangelength)).ok() + (windows_core::Interface::vtable(self).SurvivingReferences2)(windows_core::Interface::as_raw(self), csurvivingobjectidranges, objectidrangestart, cobjectidrangelength).ok() } } #[repr(C)] @@ -1551,7 +1536,7 @@ impl core::ops::Deref for ICorProfilerCallback5 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback5, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4); impl ICorProfilerCallback5 { pub unsafe fn ConditionalWeakTableElementReferences(&self, crootrefs: u32, keyrefids: *const usize, valuerefids: *const usize, rootids: *const usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConditionalWeakTableElementReferences)(windows_core::Interface::as_raw(self), core::mem::transmute(crootrefs), core::mem::transmute(keyrefids), core::mem::transmute(valuerefids), core::mem::transmute(rootids)).ok() + (windows_core::Interface::vtable(self).ConditionalWeakTableElementReferences)(windows_core::Interface::as_raw(self), crootrefs, keyrefids, valuerefids, rootids).ok() } } #[repr(C)] @@ -1626,7 +1611,7 @@ impl core::ops::Deref for ICorProfilerCallback7 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback7, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6); impl ICorProfilerCallback7 { pub unsafe fn ModuleInMemorySymbolsUpdated(&self, moduleid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid)).ok() + (windows_core::Interface::vtable(self).ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), moduleid).ok() } } #[repr(C)] @@ -1660,10 +1645,10 @@ impl core::ops::Deref for ICorProfilerCallback8 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback8, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7); impl ICorProfilerCallback8 { pub unsafe fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: bool, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), fissafetoblock.into(), core::mem::transmute(pilheader), core::mem::transmute(cbilheader)).ok() + (windows_core::Interface::vtable(self).DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into(), pilheader, cbilheader).ok() } pub unsafe fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(hrstatus), fissafetoblock.into()).ok() + (windows_core::Interface::vtable(self).DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into()).ok() } } #[repr(C)] @@ -1707,7 +1692,7 @@ impl core::ops::Deref for ICorProfilerCallback9 { windows_core::imp::interface_hierarchy!(ICorProfilerCallback9, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8); impl ICorProfilerCallback9 { pub unsafe fn DynamicMethodUnloaded(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DynamicMethodUnloaded)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).DynamicMethodUnloaded)(windows_core::Interface::as_raw(self), functionid).ok() } } #[repr(C)] @@ -1735,7 +1720,7 @@ windows_core::imp::define_interface!(ICorProfilerFunctionControl, ICorProfilerFu windows_core::imp::interface_hierarchy!(ICorProfilerFunctionControl, windows_core::IUnknown); impl ICorProfilerFunctionControl { pub unsafe fn SetCodegenFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodegenFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetCodegenFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetILFunctionBody(&self, pbnewilmethodheader: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetILFunctionBody)(windows_core::Interface::as_raw(self), pbnewilmethodheader.len().try_into().unwrap(), core::mem::transmute(pbnewilmethodheader.as_ptr())).ok() @@ -1786,7 +1771,7 @@ windows_core::imp::define_interface!(ICorProfilerFunctionEnum, ICorProfilerFunct windows_core::imp::interface_hierarchy!(ICorProfilerFunctionEnum, windows_core::IUnknown); impl ICorProfilerFunctionEnum { pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1872,14 +1857,14 @@ windows_core::imp::interface_hierarchy!(ICorProfilerInfo, windows_core::IUnknown impl ICorProfilerInfo { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClassFromObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetClassFromObject)(windows_core::Interface::as_raw(self), objectid, &mut result__).map(|| result__) } pub unsafe fn GetClassFromToken(&self, moduleid: usize, typedef: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClassFromToken)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(typedef), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetClassFromToken)(windows_core::Interface::as_raw(self), moduleid, typedef, &mut result__).map(|| result__) } pub unsafe fn GetCodeInfo(&self, functionid: usize, pstart: *mut *mut u8, pcsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(pstart), core::mem::transmute(pcsize)).ok() + (windows_core::Interface::vtable(self).GetCodeInfo)(windows_core::Interface::as_raw(self), functionid, core::mem::transmute(pstart), core::mem::transmute(pcsize)).ok() } pub unsafe fn GetEventMask(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1887,81 +1872,81 @@ impl ICorProfilerInfo { } pub unsafe fn GetFunctionFromIP(&self, ip: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionFromIP)(windows_core::Interface::as_raw(self), core::mem::transmute(ip), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFunctionFromIP)(windows_core::Interface::as_raw(self), ip, &mut result__).map(|| result__) } pub unsafe fn GetFunctionFromToken(&self, moduleid: usize, token: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionFromToken)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(token), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFunctionFromToken)(windows_core::Interface::as_raw(self), moduleid, token, &mut result__).map(|| result__) } pub unsafe fn GetHandleFromThread(&self, threadid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHandleFromThread)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetHandleFromThread)(windows_core::Interface::as_raw(self), threadid, &mut result__).map(|| result__) } pub unsafe fn GetObjectSize(&self, objectid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectSize)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetObjectSize)(windows_core::Interface::as_raw(self), objectid, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_WinRT_Metadata")] pub unsafe fn IsArrayClass(&self, classid: usize, pbaseelemtype: *mut super::super::WinRT::Metadata::CorElementType, pbaseclassid: *mut usize, pcrank: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsArrayClass)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(pbaseelemtype), core::mem::transmute(pbaseclassid), core::mem::transmute(pcrank)).ok() + (windows_core::Interface::vtable(self).IsArrayClass)(windows_core::Interface::as_raw(self), classid, core::mem::transmute(pbaseelemtype), core::mem::transmute(pbaseclassid), core::mem::transmute(pcrank)).ok() } pub unsafe fn GetThreadInfo(&self, threadid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadInfo)(windows_core::Interface::as_raw(self), threadid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentThreadID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetClassIDInfo(&self, classid: usize, pmoduleid: *mut usize, ptypedeftoken: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClassIDInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(pmoduleid), core::mem::transmute(ptypedeftoken)).ok() + (windows_core::Interface::vtable(self).GetClassIDInfo)(windows_core::Interface::as_raw(self), classid, core::mem::transmute(pmoduleid), core::mem::transmute(ptypedeftoken)).ok() } pub unsafe fn GetFunctionInfo(&self, functionid: usize, pclassid: *mut usize, pmoduleid: *mut usize, ptoken: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(pclassid), core::mem::transmute(pmoduleid), core::mem::transmute(ptoken)).ok() + (windows_core::Interface::vtable(self).GetFunctionInfo)(windows_core::Interface::as_raw(self), functionid, core::mem::transmute(pclassid), core::mem::transmute(pmoduleid), core::mem::transmute(ptoken)).ok() } pub unsafe fn SetEventMask(&self, dwevents: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventMask)(windows_core::Interface::as_raw(self), core::mem::transmute(dwevents)).ok() + (windows_core::Interface::vtable(self).SetEventMask)(windows_core::Interface::as_raw(self), dwevents).ok() } pub unsafe fn SetEnterLeaveFunctionHooks(&self, pfuncenter: *const FunctionEnter, pfuncleave: *const FunctionLeave, pfunctailcall: *const FunctionTailcall) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks)(windows_core::Interface::as_raw(self), core::mem::transmute(pfuncenter), core::mem::transmute(pfuncleave), core::mem::transmute(pfunctailcall)).ok() + (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks)(windows_core::Interface::as_raw(self), pfuncenter, pfuncleave, pfunctailcall).ok() } pub unsafe fn SetFunctionIDMapper(&self, pfunc: *const FunctionIDMapper) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFunctionIDMapper)(windows_core::Interface::as_raw(self), core::mem::transmute(pfunc)).ok() + (windows_core::Interface::vtable(self).SetFunctionIDMapper)(windows_core::Interface::as_raw(self), pfunc).ok() } pub unsafe fn GetTokenAndMetaDataFromFunction(&self, functionid: usize, riid: *const windows_core::GUID, ppimport: *mut Option, ptoken: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTokenAndMetaDataFromFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(riid), core::mem::transmute(ppimport), core::mem::transmute(ptoken)).ok() + (windows_core::Interface::vtable(self).GetTokenAndMetaDataFromFunction)(windows_core::Interface::as_raw(self), functionid, riid, core::mem::transmute(ppimport), core::mem::transmute(ptoken)).ok() } pub unsafe fn GetModuleInfo(&self, moduleid: usize, ppbaseloadaddress: *mut *mut u8, pcchname: *mut u32, szname: &mut [u16], passemblyid: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(ppbaseloadaddress), szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(passemblyid)).ok() + (windows_core::Interface::vtable(self).GetModuleInfo)(windows_core::Interface::as_raw(self), moduleid, core::mem::transmute(ppbaseloadaddress), szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(passemblyid)).ok() } pub unsafe fn GetModuleMetaData(&self, moduleid: usize, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleMetaData)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(dwopenflags), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetModuleMetaData)(windows_core::Interface::as_raw(self), moduleid, dwopenflags, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetILFunctionBody(&self, moduleid: usize, methodid: u32, ppmethodheader: *mut *mut u8, pcbmethodsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetILFunctionBody)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(methodid), core::mem::transmute(ppmethodheader), core::mem::transmute(pcbmethodsize)).ok() + (windows_core::Interface::vtable(self).GetILFunctionBody)(windows_core::Interface::as_raw(self), moduleid, methodid, core::mem::transmute(ppmethodheader), core::mem::transmute(pcbmethodsize)).ok() } pub unsafe fn GetILFunctionBodyAllocator(&self, moduleid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetILFunctionBodyAllocator)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetILFunctionBodyAllocator)(windows_core::Interface::as_raw(self), moduleid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetILFunctionBody(&self, moduleid: usize, methodid: u32, pbnewilmethodheader: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetILFunctionBody)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(methodid), core::mem::transmute(pbnewilmethodheader)).ok() + (windows_core::Interface::vtable(self).SetILFunctionBody)(windows_core::Interface::as_raw(self), moduleid, methodid, pbnewilmethodheader).ok() } pub unsafe fn GetAppDomainInfo(&self, appdomainid: usize, pcchname: *mut u32, szname: &mut [u16], pprocessid: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAppDomainInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(appdomainid), szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(pprocessid)).ok() + (windows_core::Interface::vtable(self).GetAppDomainInfo)(windows_core::Interface::as_raw(self), appdomainid, szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(pprocessid)).ok() } pub unsafe fn GetAssemblyInfo(&self, assemblyid: usize, pcchname: *mut u32, szname: &mut [u16], pappdomainid: *mut usize, pmoduleid: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAssemblyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(assemblyid), szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(pappdomainid), core::mem::transmute(pmoduleid)).ok() + (windows_core::Interface::vtable(self).GetAssemblyInfo)(windows_core::Interface::as_raw(self), assemblyid, szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(pappdomainid), core::mem::transmute(pmoduleid)).ok() } pub unsafe fn SetFunctionReJIT(&self, functionid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFunctionReJIT)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).SetFunctionReJIT)(windows_core::Interface::as_raw(self), functionid).ok() } pub unsafe fn ForceGC(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ForceGC)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: bool, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), fstartjit.into(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1973,17 +1958,17 @@ impl ICorProfilerInfo { } pub unsafe fn GetThreadContext(&self, threadid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), threadid, &mut result__).map(|| result__) } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndInprocDebugging)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofilercontext)).ok() + (windows_core::Interface::vtable(self).EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() } pub unsafe fn GetILToNativeMapping(&self, functionid: usize, pcmap: *mut u32, map: &mut [COR_DEBUG_IL_TO_NATIVE_MAP]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetILToNativeMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), map.len().try_into().unwrap(), core::mem::transmute(pcmap), core::mem::transmute(map.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetILToNativeMapping)(windows_core::Interface::as_raw(self), functionid, map.len().try_into().unwrap(), core::mem::transmute(pcmap), core::mem::transmute(map.as_ptr())).ok() } } #[repr(C)] @@ -2340,16 +2325,16 @@ impl core::ops::Deref for ICorProfilerInfo10 { windows_core::imp::interface_hierarchy!(ICorProfilerInfo10, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9); impl ICorProfilerInfo10 { pub unsafe fn EnumerateObjectReferences(&self, objectid: usize, callback: ObjectReferenceCallback, clientdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateObjectReferences)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(callback), core::mem::transmute(clientdata)).ok() + (windows_core::Interface::vtable(self).EnumerateObjectReferences)(windows_core::Interface::as_raw(self), objectid, callback, core::mem::transmute(clientdata)).ok() } pub unsafe fn IsFrozenObject(&self, objectid: usize, pbfrozen: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsFrozenObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(pbfrozen)).ok() + (windows_core::Interface::vtable(self).IsFrozenObject)(windows_core::Interface::as_raw(self), objectid, core::mem::transmute(pbfrozen)).ok() } pub unsafe fn GetLOHObjectSizeThreshold(&self, pthreshold: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLOHObjectSizeThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(pthreshold)).ok() } pub unsafe fn RequestReJITWithInliners(&self, dwrejitflags: u32, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestReJITWithInliners)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrejitflags), core::mem::transmute(cfunctions), core::mem::transmute(moduleids), core::mem::transmute(methodids)).ok() + (windows_core::Interface::vtable(self).RequestReJITWithInliners)(windows_core::Interface::as_raw(self), dwrejitflags, cfunctions, moduleids, methodids).ok() } pub unsafe fn SuspendRuntime(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SuspendRuntime)(windows_core::Interface::as_raw(self)).ok() @@ -2491,10 +2476,10 @@ impl ICorProfilerInfo12 { (windows_core::Interface::vtable(self).EventPipeStartSession)(windows_core::Interface::as_raw(self), pproviderconfigs.len().try_into().unwrap(), core::mem::transmute(pproviderconfigs.as_ptr()), requestrundown.into(), &mut result__).map(|| result__) } pub unsafe fn EventPipeAddProviderToSession(&self, session: u64, providerconfig: COR_PRF_EVENTPIPE_PROVIDER_CONFIG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventPipeAddProviderToSession)(windows_core::Interface::as_raw(self), core::mem::transmute(session), core::mem::transmute(providerconfig)).ok() + (windows_core::Interface::vtable(self).EventPipeAddProviderToSession)(windows_core::Interface::as_raw(self), session, core::mem::transmute(providerconfig)).ok() } pub unsafe fn EventPipeStopSession(&self, session: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventPipeStopSession)(windows_core::Interface::as_raw(self), core::mem::transmute(session)).ok() + (windows_core::Interface::vtable(self).EventPipeStopSession)(windows_core::Interface::as_raw(self), session).ok() } pub unsafe fn EventPipeCreateProvider(&self, providername: P0) -> windows_core::Result where @@ -2504,17 +2489,17 @@ impl ICorProfilerInfo12 { (windows_core::Interface::vtable(self).EventPipeCreateProvider)(windows_core::Interface::as_raw(self), providername.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EventPipeGetProviderInfo(&self, provider: usize, pcchname: *mut u32, providername: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventPipeGetProviderInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(provider), providername.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(providername.as_ptr())).ok() + (windows_core::Interface::vtable(self).EventPipeGetProviderInfo)(windows_core::Interface::as_raw(self), provider, providername.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(providername.as_ptr())).ok() } pub unsafe fn EventPipeDefineEvent(&self, provider: usize, eventname: P1, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: bool, pparamdescs: &[COR_PRF_EVENTPIPE_PARAM_DESC]) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EventPipeDefineEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(provider), eventname.param().abi(), core::mem::transmute(eventid), core::mem::transmute(keywords), core::mem::transmute(eventversion), core::mem::transmute(level), core::mem::transmute(opcode), needstack.into(), pparamdescs.len().try_into().unwrap(), core::mem::transmute(pparamdescs.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EventPipeDefineEvent)(windows_core::Interface::as_raw(self), provider, eventname.param().abi(), eventid, keywords, eventversion, level, opcode, needstack.into(), pparamdescs.len().try_into().unwrap(), core::mem::transmute(pparamdescs.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn EventPipeWriteEvent(&self, event: usize, data: &[COR_PRF_EVENT_DATA], pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EventPipeWriteEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), core::mem::transmute(pactivityid), core::mem::transmute(prelatedactivityid)).ok() + (windows_core::Interface::vtable(self).EventPipeWriteEvent)(windows_core::Interface::as_raw(self), event, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), pactivityid, prelatedactivityid).ok() } } #[repr(C)] @@ -2614,14 +2599,14 @@ impl core::ops::Deref for ICorProfilerInfo13 { windows_core::imp::interface_hierarchy!(ICorProfilerInfo13, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11, ICorProfilerInfo12); impl ICorProfilerInfo13 { pub unsafe fn CreateHandle(&self, object: usize, r#type: COR_PRF_HANDLE_TYPE, phandle: *mut *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(object), core::mem::transmute(r#type), core::mem::transmute(phandle)).ok() + (windows_core::Interface::vtable(self).CreateHandle)(windows_core::Interface::as_raw(self), object, r#type, core::mem::transmute(phandle)).ok() } pub unsafe fn DestroyHandle(&self, handle: *const *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).DestroyHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetObjectIDFromHandle(&self, handle: *const *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectIDFromHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetObjectIDFromHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } } #[repr(C)] @@ -2704,7 +2689,7 @@ impl ICorProfilerInfo14 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EventPipeCreateProvider2)(windows_core::Interface::as_raw(self), providername.param().abi(), core::mem::transmute(pcallback), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EventPipeCreateProvider2)(windows_core::Interface::as_raw(self), providername.param().abi(), pcallback, &mut result__).map(|| result__) } } #[repr(C)] @@ -2783,72 +2768,72 @@ impl core::ops::Deref for ICorProfilerInfo2 { windows_core::imp::interface_hierarchy!(ICorProfilerInfo2, windows_core::IUnknown, ICorProfilerInfo); impl ICorProfilerInfo2 { pub unsafe fn DoStackSnapshot(&self, thread: usize, callback: *const StackSnapshotCallback, infoflags: u32, clientdata: *const core::ffi::c_void, context: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoStackSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(thread), core::mem::transmute(callback), core::mem::transmute(infoflags), core::mem::transmute(clientdata), core::mem::transmute(context.as_ptr()), context.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).DoStackSnapshot)(windows_core::Interface::as_raw(self), thread, callback, infoflags, clientdata, core::mem::transmute(context.as_ptr()), context.len().try_into().unwrap()).ok() } pub unsafe fn SetEnterLeaveFunctionHooks2(&self, pfuncenter: *const FunctionEnter2, pfuncleave: *const FunctionLeave2, pfunctailcall: *const FunctionTailcall2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks2)(windows_core::Interface::as_raw(self), core::mem::transmute(pfuncenter), core::mem::transmute(pfuncleave), core::mem::transmute(pfunctailcall)).ok() + (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks2)(windows_core::Interface::as_raw(self), pfuncenter, pfuncleave, pfunctailcall).ok() } pub unsafe fn GetFunctionInfo2(&self, funcid: usize, frameinfo: usize, pclassid: *mut usize, pmoduleid: *mut usize, ptoken: *mut u32, ctypeargs: u32, pctypeargs: *mut u32, typeargs: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionInfo2)(windows_core::Interface::as_raw(self), core::mem::transmute(funcid), core::mem::transmute(frameinfo), core::mem::transmute(pclassid), core::mem::transmute(pmoduleid), core::mem::transmute(ptoken), core::mem::transmute(ctypeargs), core::mem::transmute(pctypeargs), core::mem::transmute(typeargs)).ok() + (windows_core::Interface::vtable(self).GetFunctionInfo2)(windows_core::Interface::as_raw(self), funcid, frameinfo, core::mem::transmute(pclassid), core::mem::transmute(pmoduleid), core::mem::transmute(ptoken), ctypeargs, core::mem::transmute(pctypeargs), core::mem::transmute(typeargs)).ok() } pub unsafe fn GetStringLayout(&self, pbufferlengthoffset: *mut u32, pstringlengthoffset: *mut u32, pbufferoffset: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStringLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(pbufferlengthoffset), core::mem::transmute(pstringlengthoffset), core::mem::transmute(pbufferoffset)).ok() } #[cfg(feature = "Win32_System_WinRT_Metadata")] pub unsafe fn GetClassLayout(&self, classid: usize, rfieldoffset: *mut super::super::WinRT::Metadata::COR_FIELD_OFFSET, cfieldoffset: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClassLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(rfieldoffset), core::mem::transmute(cfieldoffset), core::mem::transmute(pcfieldoffset), core::mem::transmute(pulclasssize)).ok() + (windows_core::Interface::vtable(self).GetClassLayout)(windows_core::Interface::as_raw(self), classid, core::mem::transmute(rfieldoffset), cfieldoffset, core::mem::transmute(pcfieldoffset), core::mem::transmute(pulclasssize)).ok() } pub unsafe fn GetClassIDInfo2(&self, classid: usize, pmoduleid: *mut usize, ptypedeftoken: *mut u32, pparentclassid: *mut usize, cnumtypeargs: u32, pcnumtypeargs: *mut u32, typeargs: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClassIDInfo2)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(pmoduleid), core::mem::transmute(ptypedeftoken), core::mem::transmute(pparentclassid), core::mem::transmute(cnumtypeargs), core::mem::transmute(pcnumtypeargs), core::mem::transmute(typeargs)).ok() + (windows_core::Interface::vtable(self).GetClassIDInfo2)(windows_core::Interface::as_raw(self), classid, core::mem::transmute(pmoduleid), core::mem::transmute(ptypedeftoken), core::mem::transmute(pparentclassid), cnumtypeargs, core::mem::transmute(pcnumtypeargs), core::mem::transmute(typeargs)).ok() } pub unsafe fn GetCodeInfo2(&self, functionid: usize, pccodeinfos: *mut u32, codeinfos: &mut [COR_PRF_CODE_INFO]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodeInfo2)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), codeinfos.len().try_into().unwrap(), core::mem::transmute(pccodeinfos), core::mem::transmute(codeinfos.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetCodeInfo2)(windows_core::Interface::as_raw(self), functionid, codeinfos.len().try_into().unwrap(), core::mem::transmute(pccodeinfos), core::mem::transmute(codeinfos.as_ptr())).ok() } pub unsafe fn GetClassFromTokenAndTypeArgs(&self, moduleid: usize, typedef: u32, typeargs: &[usize]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClassFromTokenAndTypeArgs)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(typedef), typeargs.len().try_into().unwrap(), core::mem::transmute(typeargs.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetClassFromTokenAndTypeArgs)(windows_core::Interface::as_raw(self), moduleid, typedef, typeargs.len().try_into().unwrap(), core::mem::transmute(typeargs.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn GetFunctionFromTokenAndTypeArgs(&self, moduleid: usize, funcdef: u32, classid: usize, typeargs: &[usize]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionFromTokenAndTypeArgs)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(funcdef), core::mem::transmute(classid), typeargs.len().try_into().unwrap(), core::mem::transmute(typeargs.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFunctionFromTokenAndTypeArgs)(windows_core::Interface::as_raw(self), moduleid, funcdef, classid, typeargs.len().try_into().unwrap(), core::mem::transmute(typeargs.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn EnumModuleFrozenObjects(&self, moduleid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumModuleFrozenObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumModuleFrozenObjects)(windows_core::Interface::as_raw(self), moduleid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetArrayObjectInfo(&self, objectid: usize, cdimensions: u32, pdimensionsizes: *mut u32, pdimensionlowerbounds: *mut i32, ppdata: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetArrayObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), core::mem::transmute(cdimensions), core::mem::transmute(pdimensionsizes), core::mem::transmute(pdimensionlowerbounds), core::mem::transmute(ppdata)).ok() + (windows_core::Interface::vtable(self).GetArrayObjectInfo)(windows_core::Interface::as_raw(self), objectid, cdimensions, core::mem::transmute(pdimensionsizes), core::mem::transmute(pdimensionlowerbounds), core::mem::transmute(ppdata)).ok() } pub unsafe fn GetBoxClassLayout(&self, classid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBoxClassLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBoxClassLayout)(windows_core::Interface::as_raw(self), classid, &mut result__).map(|| result__) } pub unsafe fn GetThreadAppDomain(&self, threadid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadAppDomain)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadAppDomain)(windows_core::Interface::as_raw(self), threadid, &mut result__).map(|| result__) } pub unsafe fn GetRVAStaticAddress(&self, classid: usize, fieldtoken: u32, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRVAStaticAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(fieldtoken), core::mem::transmute(ppaddress)).ok() + (windows_core::Interface::vtable(self).GetRVAStaticAddress)(windows_core::Interface::as_raw(self), classid, fieldtoken, core::mem::transmute(ppaddress)).ok() } pub unsafe fn GetAppDomainStaticAddress(&self, classid: usize, fieldtoken: u32, appdomainid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAppDomainStaticAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(fieldtoken), core::mem::transmute(appdomainid), core::mem::transmute(ppaddress)).ok() + (windows_core::Interface::vtable(self).GetAppDomainStaticAddress)(windows_core::Interface::as_raw(self), classid, fieldtoken, appdomainid, core::mem::transmute(ppaddress)).ok() } pub unsafe fn GetThreadStaticAddress(&self, classid: usize, fieldtoken: u32, threadid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadStaticAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(fieldtoken), core::mem::transmute(threadid), core::mem::transmute(ppaddress)).ok() + (windows_core::Interface::vtable(self).GetThreadStaticAddress)(windows_core::Interface::as_raw(self), classid, fieldtoken, threadid, core::mem::transmute(ppaddress)).ok() } pub unsafe fn GetContextStaticAddress(&self, classid: usize, fieldtoken: u32, contextid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStaticAddress)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(fieldtoken), core::mem::transmute(contextid), core::mem::transmute(ppaddress)).ok() + (windows_core::Interface::vtable(self).GetContextStaticAddress)(windows_core::Interface::as_raw(self), classid, fieldtoken, contextid, core::mem::transmute(ppaddress)).ok() } pub unsafe fn GetStaticFieldInfo(&self, classid: usize, fieldtoken: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStaticFieldInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(fieldtoken), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStaticFieldInfo)(windows_core::Interface::as_raw(self), classid, fieldtoken, &mut result__).map(|| result__) } pub unsafe fn GetGenerationBounds(&self, pcobjectranges: *mut u32, ranges: &mut [COR_PRF_GC_GENERATION_RANGE]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGenerationBounds)(windows_core::Interface::as_raw(self), ranges.len().try_into().unwrap(), core::mem::transmute(pcobjectranges), core::mem::transmute(ranges.as_ptr())).ok() } pub unsafe fn GetObjectGeneration(&self, objectid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectGeneration)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetObjectGeneration)(windows_core::Interface::as_raw(self), objectid, &mut result__).map(|| result__) } pub unsafe fn GetNotifiedExceptionClauseInfo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3087,29 +3072,29 @@ impl ICorProfilerInfo3 { (windows_core::Interface::vtable(self).EnumJITedFunctions)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestProfilerDetach(&self, dwexpectedcompletionmilliseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestProfilerDetach)(windows_core::Interface::as_raw(self), core::mem::transmute(dwexpectedcompletionmilliseconds)).ok() + (windows_core::Interface::vtable(self).RequestProfilerDetach)(windows_core::Interface::as_raw(self), dwexpectedcompletionmilliseconds).ok() } pub unsafe fn SetFunctionIDMapper2(&self, pfunc: *const FunctionIDMapper2, clientdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFunctionIDMapper2)(windows_core::Interface::as_raw(self), core::mem::transmute(pfunc), core::mem::transmute(clientdata)).ok() + (windows_core::Interface::vtable(self).SetFunctionIDMapper2)(windows_core::Interface::as_raw(self), pfunc, clientdata).ok() } pub unsafe fn GetStringLayout2(&self, pstringlengthoffset: *mut u32, pbufferoffset: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStringLayout2)(windows_core::Interface::as_raw(self), core::mem::transmute(pstringlengthoffset), core::mem::transmute(pbufferoffset)).ok() } pub unsafe fn SetEnterLeaveFunctionHooks3(&self, pfuncenter3: *const FunctionEnter3, pfuncleave3: *const FunctionLeave3, pfunctailcall3: *const FunctionTailcall3) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks3)(windows_core::Interface::as_raw(self), core::mem::transmute(pfuncenter3), core::mem::transmute(pfuncleave3), core::mem::transmute(pfunctailcall3)).ok() + (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks3)(windows_core::Interface::as_raw(self), pfuncenter3, pfuncleave3, pfunctailcall3).ok() } pub unsafe fn SetEnterLeaveFunctionHooks3WithInfo(&self, pfuncenter3withinfo: *const FunctionEnter3WithInfo, pfuncleave3withinfo: *const FunctionLeave3WithInfo, pfunctailcall3withinfo: *const FunctionTailcall3WithInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks3WithInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pfuncenter3withinfo), core::mem::transmute(pfuncleave3withinfo), core::mem::transmute(pfunctailcall3withinfo)).ok() + (windows_core::Interface::vtable(self).SetEnterLeaveFunctionHooks3WithInfo)(windows_core::Interface::as_raw(self), pfuncenter3withinfo, pfuncleave3withinfo, pfunctailcall3withinfo).ok() } pub unsafe fn GetFunctionEnter3Info(&self, functionid: usize, eltinfo: usize, pframeinfo: *mut usize, pcbargumentinfo: *mut u32, pargumentinfo: *mut COR_PRF_FUNCTION_ARGUMENT_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionEnter3Info)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(eltinfo), core::mem::transmute(pframeinfo), core::mem::transmute(pcbargumentinfo), core::mem::transmute(pargumentinfo)).ok() + (windows_core::Interface::vtable(self).GetFunctionEnter3Info)(windows_core::Interface::as_raw(self), functionid, eltinfo, core::mem::transmute(pframeinfo), core::mem::transmute(pcbargumentinfo), core::mem::transmute(pargumentinfo)).ok() } pub unsafe fn GetFunctionLeave3Info(&self, functionid: usize, eltinfo: usize, pframeinfo: *mut usize, pretvalrange: *mut COR_PRF_FUNCTION_ARGUMENT_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionLeave3Info)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(eltinfo), core::mem::transmute(pframeinfo), core::mem::transmute(pretvalrange)).ok() + (windows_core::Interface::vtable(self).GetFunctionLeave3Info)(windows_core::Interface::as_raw(self), functionid, eltinfo, core::mem::transmute(pframeinfo), core::mem::transmute(pretvalrange)).ok() } pub unsafe fn GetFunctionTailcall3Info(&self, functionid: usize, eltinfo: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionTailcall3Info)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(eltinfo), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFunctionTailcall3Info)(windows_core::Interface::as_raw(self), functionid, eltinfo, &mut result__).map(|| result__) } pub unsafe fn EnumModules(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3119,13 +3104,13 @@ impl ICorProfilerInfo3 { (windows_core::Interface::vtable(self).GetRuntimeInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pclrinstanceid), core::mem::transmute(pruntimetype), core::mem::transmute(pmajorversion), core::mem::transmute(pminorversion), core::mem::transmute(pbuildnumber), core::mem::transmute(pqfeversion), szversionstring.len().try_into().unwrap(), core::mem::transmute(pcchversionstring), core::mem::transmute(szversionstring.as_ptr())).ok() } pub unsafe fn GetThreadStaticAddress2(&self, classid: usize, fieldtoken: u32, appdomainid: usize, threadid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadStaticAddress2)(windows_core::Interface::as_raw(self), core::mem::transmute(classid), core::mem::transmute(fieldtoken), core::mem::transmute(appdomainid), core::mem::transmute(threadid), core::mem::transmute(ppaddress)).ok() + (windows_core::Interface::vtable(self).GetThreadStaticAddress2)(windows_core::Interface::as_raw(self), classid, fieldtoken, appdomainid, threadid, core::mem::transmute(ppaddress)).ok() } pub unsafe fn GetAppDomainsContainingModule(&self, moduleid: usize, pcappdomainids: *mut u32, appdomainids: &mut [usize]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAppDomainsContainingModule)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), appdomainids.len().try_into().unwrap(), core::mem::transmute(pcappdomainids), core::mem::transmute(appdomainids.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetAppDomainsContainingModule)(windows_core::Interface::as_raw(self), moduleid, appdomainids.len().try_into().unwrap(), core::mem::transmute(pcappdomainids), core::mem::transmute(appdomainids.as_ptr())).ok() } pub unsafe fn GetModuleInfo2(&self, moduleid: usize, ppbaseloadaddress: *mut *mut u8, pcchname: *mut u32, szname: &mut [u16], passemblyid: *mut usize, pdwmoduleflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleInfo2)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(ppbaseloadaddress), szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(passemblyid), core::mem::transmute(pdwmoduleflags)).ok() + (windows_core::Interface::vtable(self).GetModuleInfo2)(windows_core::Interface::as_raw(self), moduleid, core::mem::transmute(ppbaseloadaddress), szname.len().try_into().unwrap(), core::mem::transmute(pcchname), core::mem::transmute(szname.as_ptr()), core::mem::transmute(passemblyid), core::mem::transmute(pdwmoduleflags)).ok() } } #[repr(C)] @@ -3281,23 +3266,23 @@ impl ICorProfilerInfo4 { (windows_core::Interface::vtable(self).InitializeCurrentThread)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RequestReJIT(&self, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestReJIT)(windows_core::Interface::as_raw(self), core::mem::transmute(cfunctions), core::mem::transmute(moduleids), core::mem::transmute(methodids)).ok() + (windows_core::Interface::vtable(self).RequestReJIT)(windows_core::Interface::as_raw(self), cfunctions, moduleids, methodids).ok() } pub unsafe fn RequestRevert(&self, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestRevert)(windows_core::Interface::as_raw(self), core::mem::transmute(cfunctions), core::mem::transmute(moduleids), core::mem::transmute(methodids), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestRevert)(windows_core::Interface::as_raw(self), cfunctions, moduleids, methodids, &mut result__).map(|| result__) } pub unsafe fn GetCodeInfo3(&self, functionid: usize, rejitid: usize, pccodeinfos: *mut u32, codeinfos: &mut [COR_PRF_CODE_INFO]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodeInfo3)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(rejitid), codeinfos.len().try_into().unwrap(), core::mem::transmute(pccodeinfos), core::mem::transmute(codeinfos.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetCodeInfo3)(windows_core::Interface::as_raw(self), functionid, rejitid, codeinfos.len().try_into().unwrap(), core::mem::transmute(pccodeinfos), core::mem::transmute(codeinfos.as_ptr())).ok() } pub unsafe fn GetFunctionFromIP2(&self, ip: *const u8, pfunctionid: *mut usize, prejitid: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionFromIP2)(windows_core::Interface::as_raw(self), core::mem::transmute(ip), core::mem::transmute(pfunctionid), core::mem::transmute(prejitid)).ok() + (windows_core::Interface::vtable(self).GetFunctionFromIP2)(windows_core::Interface::as_raw(self), ip, core::mem::transmute(pfunctionid), core::mem::transmute(prejitid)).ok() } pub unsafe fn GetReJITIDs(&self, functionid: usize, pcrejitids: *mut u32, rejitids: &mut [usize]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetReJITIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), rejitids.len().try_into().unwrap(), core::mem::transmute(pcrejitids), core::mem::transmute(rejitids.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetReJITIDs)(windows_core::Interface::as_raw(self), functionid, rejitids.len().try_into().unwrap(), core::mem::transmute(pcrejitids), core::mem::transmute(rejitids.as_ptr())).ok() } pub unsafe fn GetILToNativeMapping2(&self, functionid: usize, rejitid: usize, pcmap: *mut u32, map: &mut [COR_DEBUG_IL_TO_NATIVE_MAP]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetILToNativeMapping2)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(rejitid), map.len().try_into().unwrap(), core::mem::transmute(pcmap), core::mem::transmute(map.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetILToNativeMapping2)(windows_core::Interface::as_raw(self), functionid, rejitid, map.len().try_into().unwrap(), core::mem::transmute(pcmap), core::mem::transmute(map.as_ptr())).ok() } pub unsafe fn EnumJITedFunctions2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3305,7 +3290,7 @@ impl ICorProfilerInfo4 { } pub unsafe fn GetObjectSize2(&self, objectid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectSize2)(windows_core::Interface::as_raw(self), core::mem::transmute(objectid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetObjectSize2)(windows_core::Interface::as_raw(self), objectid, &mut result__).map(|| result__) } } #[repr(C)] @@ -3435,7 +3420,7 @@ impl ICorProfilerInfo5 { (windows_core::Interface::vtable(self).GetEventMask2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdweventslow), core::mem::transmute(pdweventshigh)).ok() } pub unsafe fn SetEventMask2(&self, dweventslow: u32, dweventshigh: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventMask2)(windows_core::Interface::as_raw(self), core::mem::transmute(dweventslow), core::mem::transmute(dweventshigh)).ok() + (windows_core::Interface::vtable(self).SetEventMask2)(windows_core::Interface::as_raw(self), dweventslow, dweventshigh).ok() } } #[repr(C)] @@ -3482,7 +3467,7 @@ impl core::ops::Deref for ICorProfilerInfo6 { windows_core::imp::interface_hierarchy!(ICorProfilerInfo6, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5); impl ICorProfilerInfo6 { pub unsafe fn EnumNgenModuleMethodsInliningThisMethod(&self, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumNgenModuleMethodsInliningThisMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(inlinersmoduleid), core::mem::transmute(inlineemoduleid), core::mem::transmute(inlineemethodid), core::mem::transmute(incompletedata), core::mem::transmute(ppenum)).ok() + (windows_core::Interface::vtable(self).EnumNgenModuleMethodsInliningThisMethod)(windows_core::Interface::as_raw(self), inlinersmoduleid, inlineemoduleid, inlineemethodid, core::mem::transmute(incompletedata), core::mem::transmute(ppenum)).ok() } } #[repr(C)] @@ -3522,14 +3507,14 @@ impl core::ops::Deref for ICorProfilerInfo7 { windows_core::imp::interface_hierarchy!(ICorProfilerInfo7, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6); impl ICorProfilerInfo7 { pub unsafe fn ApplyMetaData(&self, moduleid: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplyMetaData)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid)).ok() + (windows_core::Interface::vtable(self).ApplyMetaData)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn GetInMemorySymbolsLength(&self, moduleid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInMemorySymbolsLength)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInMemorySymbolsLength)(windows_core::Interface::as_raw(self), moduleid, &mut result__).map(|| result__) } pub unsafe fn ReadInMemorySymbols(&self, moduleid: usize, symbolsreadoffset: u32, psymbolbytes: *mut u8, countsymbolbytes: u32, pcountsymbolbytesread: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadInMemorySymbols)(windows_core::Interface::as_raw(self), core::mem::transmute(moduleid), core::mem::transmute(symbolsreadoffset), core::mem::transmute(psymbolbytes), core::mem::transmute(countsymbolbytes), core::mem::transmute(pcountsymbolbytesread)).ok() + (windows_core::Interface::vtable(self).ReadInMemorySymbols)(windows_core::Interface::as_raw(self), moduleid, symbolsreadoffset, core::mem::transmute(psymbolbytes), countsymbolbytes, core::mem::transmute(pcountsymbolbytesread)).ok() } } #[repr(C)] @@ -3590,13 +3575,13 @@ windows_core::imp::interface_hierarchy!(ICorProfilerInfo8, windows_core::IUnknow impl ICorProfilerInfo8 { pub unsafe fn IsFunctionDynamic(&self, functionid: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsFunctionDynamic)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsFunctionDynamic)(windows_core::Interface::as_raw(self), functionid, &mut result__).map(|| result__) } pub unsafe fn GetFunctionFromIP3(&self, ip: *const u8, functionid: *mut usize, prejitid: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionFromIP3)(windows_core::Interface::as_raw(self), core::mem::transmute(ip), core::mem::transmute(functionid), core::mem::transmute(prejitid)).ok() + (windows_core::Interface::vtable(self).GetFunctionFromIP3)(windows_core::Interface::as_raw(self), ip, core::mem::transmute(functionid), core::mem::transmute(prejitid)).ok() } pub unsafe fn GetDynamicFunctionInfo(&self, functionid: usize, moduleid: *mut usize, ppvsig: *mut *mut u8, pbsig: *mut u32, cchname: u32, pcchname: *mut u32, wszname: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDynamicFunctionInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(moduleid), core::mem::transmute(ppvsig), core::mem::transmute(pbsig), core::mem::transmute(cchname), core::mem::transmute(pcchname), core::mem::transmute(wszname)).ok() + (windows_core::Interface::vtable(self).GetDynamicFunctionInfo)(windows_core::Interface::as_raw(self), functionid, core::mem::transmute(moduleid), core::mem::transmute(ppvsig), core::mem::transmute(pbsig), cchname, core::mem::transmute(pcchname), core::mem::transmute(wszname)).ok() } } #[repr(C)] @@ -3656,13 +3641,13 @@ impl core::ops::Deref for ICorProfilerInfo9 { windows_core::imp::interface_hierarchy!(ICorProfilerInfo9, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8); impl ICorProfilerInfo9 { pub unsafe fn GetNativeCodeStartAddresses(&self, functionid: usize, rejitid: usize, ccodestartaddresses: u32, pccodestartaddresses: *mut u32, codestartaddresses: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNativeCodeStartAddresses)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(rejitid), core::mem::transmute(ccodestartaddresses), core::mem::transmute(pccodestartaddresses), core::mem::transmute(codestartaddresses)).ok() + (windows_core::Interface::vtable(self).GetNativeCodeStartAddresses)(windows_core::Interface::as_raw(self), functionid, rejitid, ccodestartaddresses, core::mem::transmute(pccodestartaddresses), core::mem::transmute(codestartaddresses)).ok() } pub unsafe fn GetILToNativeMapping3(&self, pnativecodestartaddress: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetILToNativeMapping3)(windows_core::Interface::as_raw(self), core::mem::transmute(pnativecodestartaddress), core::mem::transmute(cmap), core::mem::transmute(pcmap), core::mem::transmute(map)).ok() + (windows_core::Interface::vtable(self).GetILToNativeMapping3)(windows_core::Interface::as_raw(self), pnativecodestartaddress, cmap, core::mem::transmute(pcmap), core::mem::transmute(map)).ok() } pub unsafe fn GetCodeInfo4(&self, pnativecodestartaddress: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodeInfo4)(windows_core::Interface::as_raw(self), core::mem::transmute(pnativecodestartaddress), core::mem::transmute(ccodeinfos), core::mem::transmute(pccodeinfos), core::mem::transmute(codeinfos)).ok() + (windows_core::Interface::vtable(self).GetCodeInfo4)(windows_core::Interface::as_raw(self), pnativecodestartaddress, ccodeinfos, core::mem::transmute(pccodeinfos), core::mem::transmute(codeinfos)).ok() } } #[repr(C)] @@ -3710,7 +3695,7 @@ windows_core::imp::define_interface!(ICorProfilerMethodEnum, ICorProfilerMethodE windows_core::imp::interface_hierarchy!(ICorProfilerMethodEnum, windows_core::IUnknown); impl ICorProfilerMethodEnum { pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3795,7 +3780,7 @@ windows_core::imp::define_interface!(ICorProfilerModuleEnum, ICorProfilerModuleE windows_core::imp::interface_hierarchy!(ICorProfilerModuleEnum, windows_core::IUnknown); impl ICorProfilerModuleEnum { pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3880,7 +3865,7 @@ windows_core::imp::define_interface!(ICorProfilerObjectEnum, ICorProfilerObjectE windows_core::imp::interface_hierarchy!(ICorProfilerObjectEnum, windows_core::IUnknown); impl ICorProfilerObjectEnum { pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3965,7 +3950,7 @@ windows_core::imp::define_interface!(ICorProfilerThreadEnum, ICorProfilerThreadE windows_core::imp::interface_hierarchy!(ICorProfilerThreadEnum, windows_core::IUnknown); impl ICorProfilerThreadEnum { pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4050,7 +4035,7 @@ windows_core::imp::define_interface!(IMethodMalloc, IMethodMalloc_Vtbl, 0xa0efb2 windows_core::imp::interface_hierarchy!(IMethodMalloc, windows_core::IUnknown); impl IMethodMalloc { pub unsafe fn Alloc(&self, cb: u32) -> *mut core::ffi::c_void { - (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), core::mem::transmute(cb)) + (windows_core::Interface::vtable(self).Alloc)(windows_core::Interface::as_raw(self), cb) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/mod.rs index 455dc1e4fb..511e2cc372 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/mod.rs @@ -255,7 +255,7 @@ impl IActiveScript { (windows_core::Interface::vtable(self).GetScriptSite)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetScriptState(&self, ss: SCRIPTSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScriptState)(windows_core::Interface::as_raw(self), core::mem::transmute(ss)).ok() + (windows_core::Interface::vtable(self).SetScriptState)(windows_core::Interface::as_raw(self), ss).ok() } pub unsafe fn GetScriptState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -268,10 +268,10 @@ impl IActiveScript { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNamedItem)(windows_core::Interface::as_raw(self), pstrname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddNamedItem)(windows_core::Interface::as_raw(self), pstrname.param().abi(), dwflags).ok() } pub unsafe fn AddTypeLib(&self, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTypeLib)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidtypelib), core::mem::transmute(dwmajor), core::mem::transmute(dwminor), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddTypeLib)(windows_core::Interface::as_raw(self), rguidtypelib, dwmajor, dwminor, dwflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetScriptDispatch(&self, pstritemname: P0) -> windows_core::Result @@ -287,15 +287,15 @@ impl IActiveScript { } pub unsafe fn GetScriptThreadID(&self, dwwin32threadid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScriptThreadID)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwin32threadid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetScriptThreadID)(windows_core::Interface::as_raw(self), dwwin32threadid, &mut result__).map(|| result__) } pub unsafe fn GetScriptThreadState(&self, stidthread: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScriptThreadState)(windows_core::Interface::as_raw(self), core::mem::transmute(stidthread), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetScriptThreadState)(windows_core::Interface::as_raw(self), stidthread, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InterruptScriptThread(&self, stidthread: u32, pexcepinfo: *const super::super::super::Com::EXCEPINFO, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InterruptScriptThread)(windows_core::Interface::as_raw(self), core::mem::transmute(stidthread), core::mem::transmute(pexcepinfo), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).InterruptScriptThread)(windows_core::Interface::as_raw(self), stidthread, core::mem::transmute(pexcepinfo), dwflags).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -464,7 +464,7 @@ impl IActiveScriptAuthor { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNamedItem)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(dwflags), pdisp.param().abi()).ok() + (windows_core::Interface::vtable(self).AddNamedItem)(windows_core::Interface::as_raw(self), pszname.param().abi(), dwflags, pdisp.param().abi()).ok() } pub unsafe fn AddScriptlet(&self, pszdefaultname: P0, pszcode: P1, pszitemname: P2, pszsubitemname: P3, pszeventname: P4, pszdelimiter: P5, dwcookie: u32, dwflags: u32) -> windows_core::Result<()> where @@ -475,7 +475,7 @@ impl IActiveScriptAuthor { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pszdefaultname.param().abi(), pszcode.param().abi(), pszitemname.param().abi(), pszsubitemname.param().abi(), pszeventname.param().abi(), pszdelimiter.param().abi(), core::mem::transmute(dwcookie), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pszdefaultname.param().abi(), pszcode.param().abi(), pszitemname.param().abi(), pszsubitemname.param().abi(), pszeventname.param().abi(), pszdelimiter.param().abi(), dwcookie, dwflags).ok() } pub unsafe fn ParseScriptText(&self, pszcode: P0, pszitemname: P1, pszdelimiter: P2, dwcookie: u32, dwflags: u32) -> windows_core::Result<()> where @@ -483,21 +483,21 @@ impl IActiveScriptAuthor { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pszcode.param().abi(), pszitemname.param().abi(), pszdelimiter.param().abi(), core::mem::transmute(dwcookie), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pszcode.param().abi(), pszitemname.param().abi(), pszdelimiter.param().abi(), dwcookie, dwflags).ok() } pub unsafe fn GetScriptTextAttributes(&self, pszcode: P0, cch: u32, pszdelimiter: P2, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pszcode.param().abi(), core::mem::transmute(cch), pszdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cch, pszdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn GetScriptletTextAttributes(&self, pszcode: P0, cch: u32, pszdelimiter: P2, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pszcode.param().abi(), core::mem::transmute(cch), pszdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cch, pszdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn GetRoot(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -525,24 +525,24 @@ impl IActiveScriptAuthor { (windows_core::Interface::vtable(self).RemoveNamedItem)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn AddTypeLib(&self, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTypeLib)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidtypelib), core::mem::transmute(dwmajor), core::mem::transmute(dwminor), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddTypeLib)(windows_core::Interface::as_raw(self), rguidtypelib, dwmajor, dwminor, dwflags).ok() } pub unsafe fn RemoveTypeLib(&self, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTypeLib)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidtypelib), core::mem::transmute(dwmajor), core::mem::transmute(dwminor)).ok() + (windows_core::Interface::vtable(self).RemoveTypeLib)(windows_core::Interface::as_raw(self), rguidtypelib, dwmajor, dwminor).ok() } pub unsafe fn GetChars(&self, frequestedlist: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChars)(windows_core::Interface::as_raw(self), core::mem::transmute(frequestedlist), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetChars)(windows_core::Interface::as_raw(self), frequestedlist, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetInfoFromContext(&self, pszcode: P0, cchcode: u32, ichcurrentposition: u32, dwlisttypesrequested: u32, pdwlisttypesprovided: *mut u32, pichlistanchorposition: *mut u32, pichfuncanchorposition: *mut u32, pmemid: *mut i32, picurrentparameter: *mut i32, ppunk: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInfoFromContext)(windows_core::Interface::as_raw(self), pszcode.param().abi(), core::mem::transmute(cchcode), core::mem::transmute(ichcurrentposition), core::mem::transmute(dwlisttypesrequested), core::mem::transmute(pdwlisttypesprovided), core::mem::transmute(pichlistanchorposition), core::mem::transmute(pichfuncanchorposition), core::mem::transmute(pmemid), core::mem::transmute(picurrentparameter), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetInfoFromContext)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cchcode, ichcurrentposition, dwlisttypesrequested, core::mem::transmute(pdwlisttypesprovided), core::mem::transmute(pichlistanchorposition), core::mem::transmute(pichfuncanchorposition), core::mem::transmute(pmemid), core::mem::transmute(picurrentparameter), core::mem::transmute(ppunk)).ok() } pub unsafe fn IsCommitChar(&self, ch: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsCommitChar)(windows_core::Interface::as_raw(self), core::mem::transmute(ch), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsCommitChar)(windows_core::Interface::as_raw(self), ch, &mut result__).map(|| result__) } } #[repr(C)] @@ -712,7 +712,7 @@ impl IActiveScriptAuthorProcedure { P4: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pszcode.param().abi(), pszformalparams.param().abi(), pszprocedurename.param().abi(), pszitemname.param().abi(), pszdelimiter.param().abi(), core::mem::transmute(dwcookie), core::mem::transmute(dwflags), pdispfor.param().abi()).ok() + (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pszcode.param().abi(), pszformalparams.param().abi(), pszprocedurename.param().abi(), pszitemname.param().abi(), pszdelimiter.param().abi(), dwcookie, dwflags, pdispfor.param().abi()).ok() } } #[repr(C)] @@ -750,18 +750,18 @@ impl IActiveScriptDebug32 { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), core::mem::transmute(unumcodechars), pstrdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn GetScriptletTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P2, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), core::mem::transmute(unumcodechars), pstrdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn EnumCodeContextsOfPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCodeContextsOfPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcecontext), core::mem::transmute(ucharacteroffset), core::mem::transmute(unumchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCodeContextsOfPosition)(windows_core::Interface::as_raw(self), dwsourcecontext, ucharacteroffset, unumchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -816,18 +816,18 @@ impl IActiveScriptDebug64 { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), core::mem::transmute(unumcodechars), pstrdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn GetScriptletTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P2, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), core::mem::transmute(unumcodechars), pstrdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn EnumCodeContextsOfPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCodeContextsOfPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcecontext), core::mem::transmute(ucharacteroffset), core::mem::transmute(unumchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCodeContextsOfPosition)(windows_core::Interface::as_raw(self), dwsourcecontext, ucharacteroffset, unumchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -881,13 +881,13 @@ impl IActiveScriptEncode { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeSection)(windows_core::Interface::as_raw(self), pchin.param().abi(), core::mem::transmute(cchin), core::mem::transmute(pchout), core::mem::transmute(cchout), core::mem::transmute(pcchret)).ok() + (windows_core::Interface::vtable(self).EncodeSection)(windows_core::Interface::as_raw(self), pchin.param().abi(), cchin, core::mem::transmute(pchout), cchout, core::mem::transmute(pcchret)).ok() } pub unsafe fn DecodeScript(&self, pchin: P0, cchin: u32, pchout: windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeScript)(windows_core::Interface::as_raw(self), pchin.param().abi(), core::mem::transmute(cchin), core::mem::transmute(pchout), core::mem::transmute(cchout), core::mem::transmute(pcchret)).ok() + (windows_core::Interface::vtable(self).DecodeScript)(windows_core::Interface::as_raw(self), pchin.param().abi(), cchin, core::mem::transmute(pchout), cchout, core::mem::transmute(pcchret)).ok() } pub unsafe fn GetEncodeProgId(&self, pbstrout: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEncodeProgId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrout)).ok() @@ -1136,7 +1136,7 @@ windows_core::imp::define_interface!(IActiveScriptGarbageCollector, IActiveScrip windows_core::imp::interface_hierarchy!(IActiveScriptGarbageCollector, windows_core::IUnknown); impl IActiveScriptGarbageCollector { pub unsafe fn CollectGarbage(&self, scriptgctype: SCRIPTGCTYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CollectGarbage)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptgctype)).ok() + (windows_core::Interface::vtable(self).CollectGarbage)(windows_core::Interface::as_raw(self), scriptgctype).ok() } } #[repr(C)] @@ -1164,7 +1164,7 @@ windows_core::imp::define_interface!(IActiveScriptHostEncode, IActiveScriptHostE windows_core::imp::interface_hierarchy!(IActiveScriptHostEncode, windows_core::IUnknown); impl IActiveScriptHostEncode { pub unsafe fn EncodeScriptHostFile(&self, bstrinfile: &windows_core::BSTR, pbstroutfile: *mut windows_core::BSTR, cflags: u32, bstrdefaultlang: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EncodeScriptHostFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinfile), core::mem::transmute(pbstroutfile), core::mem::transmute(cflags), core::mem::transmute_copy(bstrdefaultlang)).ok() + (windows_core::Interface::vtable(self).EncodeScriptHostFile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinfile), core::mem::transmute(pbstroutfile), cflags, core::mem::transmute_copy(bstrdefaultlang)).ok() } } #[repr(C)] @@ -1204,7 +1204,7 @@ impl IActiveScriptParse32 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pstrdefaultname.param().abi(), pstrcode.param().abi(), pstritemname.param().abi(), pstrsubitemname.param().abi(), pstreventname.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), core::mem::transmute(pbstrname), core::mem::transmute(pexcepinfo)).ok() + (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pstrdefaultname.param().abi(), pstrcode.param().abi(), pstritemname.param().abi(), pstrsubitemname.param().abi(), pstreventname.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pbstrname), core::mem::transmute(pexcepinfo)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ParseScriptText(&self, pstrcode: P0, pstritemname: P1, punkcontext: P2, pstrdelimiter: P3, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut super::super::super::Variant::VARIANT, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> @@ -1214,7 +1214,7 @@ impl IActiveScriptParse32 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo)).ok() + (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo)).ok() } } #[repr(C)] @@ -1280,7 +1280,7 @@ impl IActiveScriptParse64 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pstrdefaultname.param().abi(), pstrcode.param().abi(), pstritemname.param().abi(), pstrsubitemname.param().abi(), pstreventname.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), core::mem::transmute(pbstrname), core::mem::transmute(pexcepinfo)).ok() + (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pstrdefaultname.param().abi(), pstrcode.param().abi(), pstritemname.param().abi(), pstrsubitemname.param().abi(), pstreventname.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pbstrname), core::mem::transmute(pexcepinfo)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ParseScriptText(&self, pstrcode: P0, pstritemname: P1, punkcontext: P2, pstrdelimiter: P3, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut super::super::super::Variant::VARIANT, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> @@ -1290,7 +1290,7 @@ impl IActiveScriptParse64 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo)).ok() + (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo)).ok() } } #[repr(C)] @@ -1404,7 +1404,7 @@ impl IActiveScriptParseProcedure32 { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstrprocedurename.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstrprocedurename.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1454,7 +1454,7 @@ impl IActiveScriptParseProcedure64 { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstrprocedurename.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstrprocedurename.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1503,7 +1503,7 @@ impl IActiveScriptParseProcedureOld32 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1552,7 +1552,7 @@ impl IActiveScriptParseProcedureOld64 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), core::mem::transmute(dwsourcecontextcookie), core::mem::transmute(ulstartinglinenumber), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), pstrformalparams.param().abi(), pstritemname.param().abi(), punkcontext.param().abi(), pstrdelimiter.param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1592,16 +1592,16 @@ windows_core::imp::define_interface!(IActiveScriptProfilerCallback, IActiveScrip windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback, windows_core::IUnknown); impl IActiveScriptProfilerCallback { pub unsafe fn Initialize(&self, dwcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcontext)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), dwcontext).ok() } pub unsafe fn Shutdown(&self, hrreason: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(hrreason)).ok() + (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), hrreason).ok() } pub unsafe fn ScriptCompiled(&self, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ScriptCompiled)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptid), core::mem::transmute(r#type), pidebugdocumentcontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ScriptCompiled)(windows_core::Interface::as_raw(self), scriptid, r#type, pidebugdocumentcontext.param().abi()).ok() } pub unsafe fn FunctionCompiled(&self, functionid: i32, scriptid: i32, pwszfunctionname: P2, pwszfunctionnamehint: P3, pidebugdocumentcontext: P4) -> windows_core::Result<()> where @@ -1609,13 +1609,13 @@ impl IActiveScriptProfilerCallback { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).FunctionCompiled)(windows_core::Interface::as_raw(self), core::mem::transmute(functionid), core::mem::transmute(scriptid), pwszfunctionname.param().abi(), pwszfunctionnamehint.param().abi(), pidebugdocumentcontext.param().abi()).ok() + (windows_core::Interface::vtable(self).FunctionCompiled)(windows_core::Interface::as_raw(self), functionid, scriptid, pwszfunctionname.param().abi(), pwszfunctionnamehint.param().abi(), pidebugdocumentcontext.param().abi()).ok() } pub unsafe fn OnFunctionEnter(&self, scriptid: i32, functionid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnFunctionEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptid), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).OnFunctionEnter)(windows_core::Interface::as_raw(self), scriptid, functionid).ok() } pub unsafe fn OnFunctionExit(&self, scriptid: i32, functionid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnFunctionExit)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptid), core::mem::transmute(functionid)).ok() + (windows_core::Interface::vtable(self).OnFunctionExit)(windows_core::Interface::as_raw(self), scriptid, functionid).ok() } } #[repr(C)] @@ -1690,13 +1690,13 @@ impl IActiveScriptProfilerCallback2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFunctionEnterByName)(windows_core::Interface::as_raw(self), pwszfunctionname.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).OnFunctionEnterByName)(windows_core::Interface::as_raw(self), pwszfunctionname.param().abi(), r#type).ok() } pub unsafe fn OnFunctionExitByName(&self, pwszfunctionname: P0, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFunctionExitByName)(windows_core::Interface::as_raw(self), pwszfunctionname.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).OnFunctionExitByName)(windows_core::Interface::as_raw(self), pwszfunctionname.param().abi(), r#type).ok() } } #[repr(C)] @@ -1740,7 +1740,7 @@ impl core::ops::Deref for IActiveScriptProfilerCallback3 { windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback3, windows_core::IUnknown, IActiveScriptProfilerCallback, IActiveScriptProfilerCallback2); impl IActiveScriptProfilerCallback3 { pub unsafe fn SetWebWorkerId(&self, webworkerid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWebWorkerId)(windows_core::Interface::as_raw(self), core::mem::transmute(webworkerid)).ok() + (windows_core::Interface::vtable(self).SetWebWorkerId)(windows_core::Interface::as_raw(self), webworkerid).ok() } } #[repr(C)] @@ -1768,13 +1768,13 @@ windows_core::imp::define_interface!(IActiveScriptProfilerControl, IActiveScript windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl, windows_core::IUnknown); impl IActiveScriptProfilerControl { pub unsafe fn StartProfiling(&self, clsidprofilerobject: *const windows_core::GUID, dweventmask: u32, dwcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartProfiling)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidprofilerobject), core::mem::transmute(dweventmask), core::mem::transmute(dwcontext)).ok() + (windows_core::Interface::vtable(self).StartProfiling)(windows_core::Interface::as_raw(self), clsidprofilerobject, dweventmask, dwcontext).ok() } pub unsafe fn SetProfilerEventMask(&self, dweventmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProfilerEventMask)(windows_core::Interface::as_raw(self), core::mem::transmute(dweventmask)).ok() + (windows_core::Interface::vtable(self).SetProfilerEventMask)(windows_core::Interface::as_raw(self), dweventmask).ok() } pub unsafe fn StopProfiling(&self, hrshutdownreason: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopProfiling)(windows_core::Interface::as_raw(self), core::mem::transmute(hrshutdownreason)).ok() + (windows_core::Interface::vtable(self).StopProfiling)(windows_core::Interface::as_raw(self), hrshutdownreason).ok() } } #[repr(C)] @@ -1948,7 +1948,7 @@ windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl5, windows_c impl IActiveScriptProfilerControl5 { pub unsafe fn EnumHeap2(&self, enumflags: PROFILER_HEAP_ENUM_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumHeap2)(windows_core::Interface::as_raw(self), core::mem::transmute(enumflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumHeap2)(windows_core::Interface::as_raw(self), enumflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1985,7 +1985,7 @@ impl IActiveScriptProfilerHeapEnum { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), heapobjects.len().try_into().unwrap(), core::mem::transmute(heapobjects.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn GetOptionalInfo(&self, heapobject: *const PROFILER_HEAP_OBJECT, optionalinfo: &mut [PROFILER_HEAP_OBJECT_OPTIONAL_INFO]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOptionalInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(heapobject), optionalinfo.len().try_into().unwrap(), core::mem::transmute(optionalinfo.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetOptionalInfo)(windows_core::Interface::as_raw(self), heapobject, optionalinfo.len().try_into().unwrap(), core::mem::transmute(optionalinfo.as_ptr())).ok() } pub unsafe fn FreeObjectAndOptionalInfo(&self, heapobjects: &[*const PROFILER_HEAP_OBJECT]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FreeObjectAndOptionalInfo)(windows_core::Interface::as_raw(self), heapobjects.len().try_into().unwrap(), core::mem::transmute(heapobjects.as_ptr())).ok() @@ -2045,11 +2045,11 @@ impl IActiveScriptProperty { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, dwproperty: u32, pvarindex: *const super::super::super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), core::mem::transmute(pvarindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), dwproperty, core::mem::transmute(pvarindex), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetProperty(&self, dwproperty: u32, pvarindex: *const super::super::super::Variant::VARIANT, pvarvalue: *const super::super::super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(dwproperty), core::mem::transmute(pvarindex), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), dwproperty, core::mem::transmute(pvarindex), core::mem::transmute(pvarvalue)).ok() } } #[repr(C)] @@ -2145,7 +2145,7 @@ impl IActiveScriptSite { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetItemInfo)(windows_core::Interface::as_raw(self), pstrname.param().abi(), core::mem::transmute(dwreturnmask), core::mem::transmute(ppiunkitem), core::mem::transmute(ppti)).ok() + (windows_core::Interface::vtable(self).GetItemInfo)(windows_core::Interface::as_raw(self), pstrname.param().abi(), dwreturnmask, core::mem::transmute(ppiunkitem), core::mem::transmute(ppti)).ok() } pub unsafe fn GetDocVersionString(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2156,7 +2156,7 @@ impl IActiveScriptSite { (windows_core::Interface::vtable(self).OnScriptTerminate)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo)).ok() } pub unsafe fn OnStateChange(&self, ssscriptstate: SCRIPTSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ssscriptstate)).ok() + (windows_core::Interface::vtable(self).OnStateChange)(windows_core::Interface::as_raw(self), ssscriptstate).ok() } pub unsafe fn OnScriptError(&self, pscripterror: P0) -> windows_core::Result<()> where @@ -2270,7 +2270,7 @@ windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebug32, windows_core:: impl IActiveScriptSiteDebug32 { pub unsafe fn GetDocumentContextFromPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDocumentContextFromPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcecontext), core::mem::transmute(ucharacteroffset), core::mem::transmute(unumchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDocumentContextFromPosition)(windows_core::Interface::as_raw(self), dwsourcecontext, ucharacteroffset, unumchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetApplication(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2355,7 +2355,7 @@ windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebug64, windows_core:: impl IActiveScriptSiteDebug64 { pub unsafe fn GetDocumentContextFromPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDocumentContextFromPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcecontext), core::mem::transmute(ucharacteroffset), core::mem::transmute(unumchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDocumentContextFromPosition)(windows_core::Interface::as_raw(self), dwsourcecontext, ucharacteroffset, unumchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetApplication(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2505,7 +2505,7 @@ windows_core::imp::define_interface!(IActiveScriptSiteTraceInfo, IActiveScriptSi windows_core::imp::interface_hierarchy!(IActiveScriptSiteTraceInfo, windows_core::IUnknown); impl IActiveScriptSiteTraceInfo { pub unsafe fn SendScriptTraceInfo(&self, stieventtype: SCRIPTTRACEINFO, guidcontextid: windows_core::GUID, dwscriptcontextcookie: u32, lscriptstatementstart: i32, lscriptstatementend: i32, dwreserved: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendScriptTraceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(stieventtype), core::mem::transmute(guidcontextid), core::mem::transmute(dwscriptcontextcookie), core::mem::transmute(lscriptstatementstart), core::mem::transmute(lscriptstatementend), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SendScriptTraceInfo)(windows_core::Interface::as_raw(self), stieventtype, core::mem::transmute(guidcontextid), dwscriptcontextcookie, lscriptstatementstart, lscriptstatementend, dwreserved).ok() } } #[repr(C)] @@ -2534,7 +2534,7 @@ windows_core::imp::interface_hierarchy!(IActiveScriptSiteUIControl, windows_core impl IActiveScriptSiteUIControl { pub unsafe fn GetUIBehavior(&self, uicitem: SCRIPTUICITEM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUIBehavior)(windows_core::Interface::as_raw(self), core::mem::transmute(uicitem), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUIBehavior)(windows_core::Interface::as_raw(self), uicitem, &mut result__).map(|| result__) } } #[repr(C)] @@ -2616,10 +2616,10 @@ windows_core::imp::define_interface!(IActiveScriptStats, IActiveScriptStats_Vtbl windows_core::imp::interface_hierarchy!(IActiveScriptStats, windows_core::IUnknown); impl IActiveScriptStats { pub unsafe fn GetStat(&self, stid: u32, pluhi: *mut u32, plulo: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStat)(windows_core::Interface::as_raw(self), core::mem::transmute(stid), core::mem::transmute(pluhi), core::mem::transmute(plulo)).ok() + (windows_core::Interface::vtable(self).GetStat)(windows_core::Interface::as_raw(self), stid, core::mem::transmute(pluhi), core::mem::transmute(plulo)).ok() } pub unsafe fn GetStatEx(&self, guid: *const windows_core::GUID, pluhi: *mut u32, plulo: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatEx)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pluhi), core::mem::transmute(plulo)).ok() + (windows_core::Interface::vtable(self).GetStatEx)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pluhi), core::mem::transmute(plulo)).ok() } pub unsafe fn ResetStats(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetStats)(windows_core::Interface::as_raw(self)).ok() @@ -2834,7 +2834,7 @@ impl IApplicationDebugger { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceAtDebugger)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), punkouter.param().abi(), core::mem::transmute(dwclscontext), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceAtDebugger)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn onDebugOutput(&self, pstr: P0) -> windows_core::Result<()> where @@ -2847,7 +2847,7 @@ impl IApplicationDebugger { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).onHandleBreakPoint)(windows_core::Interface::as_raw(self), prpt.param().abi(), core::mem::transmute(br), perror.param().abi()).ok() + (windows_core::Interface::vtable(self).onHandleBreakPoint)(windows_core::Interface::as_raw(self), prpt.param().abi(), br, perror.param().abi()).ok() } pub unsafe fn onClose(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).onClose)(windows_core::Interface::as_raw(self)).ok() @@ -2856,7 +2856,7 @@ impl IApplicationDebugger { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).onDebuggerEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).onDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } } #[repr(C)] @@ -3023,13 +3023,13 @@ impl IDebugApplication11032 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).SynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn AsynchronousCallInMainThread(&self, pptc: P0, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).AsynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn CallableWaitForHandles(&self, phandles: &[super::super::super::super::Foundation::HANDLE]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3093,13 +3093,13 @@ impl IDebugApplication11064 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).SynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn AsynchronousCallInMainThread(&self, pptc: P0, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).AsynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn CallableWaitForHandles(&self, phandles: &[super::super::super::super::Foundation::HANDLE]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3179,7 +3179,7 @@ impl IDebugApplication32 { } pub unsafe fn HandleBreakPoint(&self, br: BREAKREASON) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HandleBreakPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(br), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HandleBreakPoint)(windows_core::Interface::as_raw(self), br, &mut result__).map(|| result__) } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3206,7 +3206,7 @@ impl IDebugApplication32 { (windows_core::Interface::vtable(self).AddStackFrameSniffer)(windows_core::Interface::as_raw(self), pdsfs.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveStackFrameSniffer(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStackFrameSniffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).RemoveStackFrameSniffer)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn QueryCurrentThreadIsDebuggerThread(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryCurrentThreadIsDebuggerThread)(windows_core::Interface::as_raw(self)).ok() @@ -3215,7 +3215,7 @@ impl IDebugApplication32 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInDebuggerThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).SynchronousCallInDebuggerThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn CreateApplicationNode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3225,7 +3225,7 @@ impl IDebugApplication32 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } pub unsafe fn HandleRuntimeError(&self, perrordebug: P0, pscriptsite: P1, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> where @@ -3248,7 +3248,7 @@ impl IDebugApplication32 { (windows_core::Interface::vtable(self).AddGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), pdsfs.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveGlobalExpressionContextProvider(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).RemoveGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -3473,7 +3473,7 @@ impl IDebugApplication64 { } pub unsafe fn HandleBreakPoint(&self, br: BREAKREASON) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HandleBreakPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(br), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HandleBreakPoint)(windows_core::Interface::as_raw(self), br, &mut result__).map(|| result__) } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3500,7 +3500,7 @@ impl IDebugApplication64 { (windows_core::Interface::vtable(self).AddStackFrameSniffer)(windows_core::Interface::as_raw(self), pdsfs.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveStackFrameSniffer(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStackFrameSniffer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).RemoveStackFrameSniffer)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn QueryCurrentThreadIsDebuggerThread(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryCurrentThreadIsDebuggerThread)(windows_core::Interface::as_raw(self)).ok() @@ -3509,7 +3509,7 @@ impl IDebugApplication64 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInDebuggerThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).SynchronousCallInDebuggerThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn CreateApplicationNode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3519,7 +3519,7 @@ impl IDebugApplication64 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } pub unsafe fn HandleRuntimeError(&self, perrordebug: P0, pscriptsite: P1, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> where @@ -3542,7 +3542,7 @@ impl IDebugApplication64 { (windows_core::Interface::vtable(self).AddGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), pdsfs.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveGlobalExpressionContextProvider(&self, dwcookie: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).RemoveGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -3849,11 +3849,11 @@ windows_core::imp::define_interface!(IDebugApplicationNode100, IDebugApplication windows_core::imp::interface_hierarchy!(IDebugApplicationNode100, windows_core::IUnknown); impl IDebugApplicationNode100 { pub unsafe fn SetFilterForEventSink(&self, dwcookie: u32, filter: APPLICATION_NODE_EVENT_FILTER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilterForEventSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie), core::mem::transmute(filter)).ok() + (windows_core::Interface::vtable(self).SetFilterForEventSink)(windows_core::Interface::as_raw(self), dwcookie, filter).ok() } pub unsafe fn GetExcludedDocuments(&self, filter: APPLICATION_NODE_EVENT_FILTER) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExcludedDocuments)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExcludedDocuments)(windows_core::Interface::as_raw(self), filter, &mut result__).map(|| result__) } pub unsafe fn QueryIsChildNode(&self, psearchkey: P0) -> windows_core::Result<()> where @@ -3989,7 +3989,7 @@ impl IDebugApplicationThread { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallIntoThread32)(windows_core::Interface::as_raw(self), pstcb.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).SynchronousCallIntoThread32)(windows_core::Interface::as_raw(self), pstcb.param().abi(), dwparam1, dwparam2, dwparam3).ok() } pub unsafe fn QueryIsCurrentThread(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryIsCurrentThread)(windows_core::Interface::as_raw(self)).ok() @@ -4081,7 +4081,7 @@ impl IDebugApplicationThread11032 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -4166,7 +4166,7 @@ impl IDebugApplicationThread11064 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -4245,7 +4245,7 @@ impl IDebugApplicationThread64 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallIntoThread64)(windows_core::Interface::as_raw(self), pstcb.param().abi(), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).SynchronousCallIntoThread64)(windows_core::Interface::as_raw(self), pstcb.param().abi(), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -4447,7 +4447,7 @@ impl IDebugCodeContext { (windows_core::Interface::vtable(self).GetDocumentContext)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBreakPoint(&self, bps: BREAKPOINT_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBreakPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(bps)).ok() + (windows_core::Interface::vtable(self).SetBreakPoint)(windows_core::Interface::as_raw(self), bps).ok() } } #[repr(C)] @@ -4491,7 +4491,7 @@ windows_core::imp::define_interface!(IDebugCookie, IDebugCookie_Vtbl, 0x51973c39 windows_core::imp::interface_hierarchy!(IDebugCookie, windows_core::IUnknown); impl IDebugCookie { pub unsafe fn SetDebugCookie(&self, dwdebugappcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDebugCookie)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdebugappcookie)).ok() + (windows_core::Interface::vtable(self).SetDebugCookie)(windows_core::Interface::as_raw(self), dwdebugappcookie).ok() } } #[repr(C)] @@ -4601,7 +4601,7 @@ impl IDebugDocumentHelper32 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pda.param().abi(), pszshortname.param().abi(), pszlongname.param().abi(), core::mem::transmute(docattr)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pda.param().abi(), pszshortname.param().abi(), pszlongname.param().abi(), docattr).ok() } pub unsafe fn Attach(&self, pddhparent: P0) -> windows_core::Result<()> where @@ -4631,20 +4631,20 @@ impl IDebugDocumentHelper32 { (windows_core::Interface::vtable(self).SetDebugDocumentHost)(windows_core::Interface::as_raw(self), pddh.param().abi()).ok() } pub unsafe fn AddDeferredText(&self, cchars: u32, dwtextstartcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDeferredText)(windows_core::Interface::as_raw(self), core::mem::transmute(cchars), core::mem::transmute(dwtextstartcookie)).ok() + (windows_core::Interface::vtable(self).AddDeferredText)(windows_core::Interface::as_raw(self), cchars, dwtextstartcookie).ok() } pub unsafe fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: P2, fscriptlet: bool) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcharoffset), core::mem::transmute(cchars), pas.param().abi(), fscriptlet.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), ulcharoffset, cchars, pas.param().abi(), fscriptlet.into(), &mut result__).map(|| result__) } pub unsafe fn SetDefaultTextAttr(&self, statextattr: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultTextAttr)(windows_core::Interface::as_raw(self), core::mem::transmute(statextattr)).ok() + (windows_core::Interface::vtable(self).SetDefaultTextAttr)(windows_core::Interface::as_raw(self), statextattr).ok() } pub unsafe fn SetTextAttributes(&self, ulcharoffset: u32, pstatextattr: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcharoffset), pstatextattr.len().try_into().unwrap(), core::mem::transmute(pstatextattr.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetTextAttributes)(windows_core::Interface::as_raw(self), ulcharoffset, pstatextattr.len().try_into().unwrap(), core::mem::transmute(pstatextattr.as_ptr())).ok() } pub unsafe fn SetLongName(&self, pszlongname: P0) -> windows_core::Result<()> where @@ -4659,18 +4659,18 @@ impl IDebugDocumentHelper32 { (windows_core::Interface::vtable(self).SetShortName)(windows_core::Interface::as_raw(self), pszshortname.param().abi()).ok() } pub unsafe fn SetDocumentAttr(&self, pszattributes: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDocumentAttr)(windows_core::Interface::as_raw(self), core::mem::transmute(pszattributes)).ok() + (windows_core::Interface::vtable(self).SetDocumentAttr)(windows_core::Interface::as_raw(self), pszattributes).ok() } pub unsafe fn GetDebugApplicationNode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDebugApplicationNode)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetScriptBlockInfo(&self, dwsourcecontext: u32, ppasd: *mut Option, picharpos: *mut u32, pcchars: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScriptBlockInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcecontext), core::mem::transmute(ppasd), core::mem::transmute(picharpos), core::mem::transmute(pcchars)).ok() + (windows_core::Interface::vtable(self).GetScriptBlockInfo)(windows_core::Interface::as_raw(self), dwsourcecontext, core::mem::transmute(ppasd), core::mem::transmute(picharpos), core::mem::transmute(pcchars)).ok() } pub unsafe fn CreateDebugDocumentContext(&self, icharpos: u32, cchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDebugDocumentContext)(windows_core::Interface::as_raw(self), core::mem::transmute(icharpos), core::mem::transmute(cchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDebugDocumentContext)(windows_core::Interface::as_raw(self), icharpos, cchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BringDocumentToTop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BringDocumentToTop)(windows_core::Interface::as_raw(self)).ok() @@ -4852,7 +4852,7 @@ impl IDebugDocumentHelper64 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pda.param().abi(), pszshortname.param().abi(), pszlongname.param().abi(), core::mem::transmute(docattr)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pda.param().abi(), pszshortname.param().abi(), pszlongname.param().abi(), docattr).ok() } pub unsafe fn Attach(&self, pddhparent: P0) -> windows_core::Result<()> where @@ -4882,20 +4882,20 @@ impl IDebugDocumentHelper64 { (windows_core::Interface::vtable(self).SetDebugDocumentHost)(windows_core::Interface::as_raw(self), pddh.param().abi()).ok() } pub unsafe fn AddDeferredText(&self, cchars: u32, dwtextstartcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDeferredText)(windows_core::Interface::as_raw(self), core::mem::transmute(cchars), core::mem::transmute(dwtextstartcookie)).ok() + (windows_core::Interface::vtable(self).AddDeferredText)(windows_core::Interface::as_raw(self), cchars, dwtextstartcookie).ok() } pub unsafe fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: P2, fscriptlet: bool) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcharoffset), core::mem::transmute(cchars), pas.param().abi(), fscriptlet.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), ulcharoffset, cchars, pas.param().abi(), fscriptlet.into(), &mut result__).map(|| result__) } pub unsafe fn SetDefaultTextAttr(&self, statextattr: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultTextAttr)(windows_core::Interface::as_raw(self), core::mem::transmute(statextattr)).ok() + (windows_core::Interface::vtable(self).SetDefaultTextAttr)(windows_core::Interface::as_raw(self), statextattr).ok() } pub unsafe fn SetTextAttributes(&self, ulcharoffset: u32, pstatextattr: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcharoffset), pstatextattr.len().try_into().unwrap(), core::mem::transmute(pstatextattr.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetTextAttributes)(windows_core::Interface::as_raw(self), ulcharoffset, pstatextattr.len().try_into().unwrap(), core::mem::transmute(pstatextattr.as_ptr())).ok() } pub unsafe fn SetLongName(&self, pszlongname: P0) -> windows_core::Result<()> where @@ -4910,18 +4910,18 @@ impl IDebugDocumentHelper64 { (windows_core::Interface::vtable(self).SetShortName)(windows_core::Interface::as_raw(self), pszshortname.param().abi()).ok() } pub unsafe fn SetDocumentAttr(&self, pszattributes: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDocumentAttr)(windows_core::Interface::as_raw(self), core::mem::transmute(pszattributes)).ok() + (windows_core::Interface::vtable(self).SetDocumentAttr)(windows_core::Interface::as_raw(self), pszattributes).ok() } pub unsafe fn GetDebugApplicationNode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDebugApplicationNode)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetScriptBlockInfo(&self, dwsourcecontext: u64, ppasd: *mut Option, picharpos: *mut u32, pcchars: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScriptBlockInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsourcecontext), core::mem::transmute(ppasd), core::mem::transmute(picharpos), core::mem::transmute(pcchars)).ok() + (windows_core::Interface::vtable(self).GetScriptBlockInfo)(windows_core::Interface::as_raw(self), dwsourcecontext, core::mem::transmute(ppasd), core::mem::transmute(picharpos), core::mem::transmute(pcchars)).ok() } pub unsafe fn CreateDebugDocumentContext(&self, icharpos: u32, cchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDebugDocumentContext)(windows_core::Interface::as_raw(self), core::mem::transmute(icharpos), core::mem::transmute(cchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDebugDocumentContext)(windows_core::Interface::as_raw(self), icharpos, cchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BringDocumentToTop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BringDocumentToTop)(windows_core::Interface::as_raw(self)).ok() @@ -5098,14 +5098,14 @@ windows_core::imp::define_interface!(IDebugDocumentHost, IDebugDocumentHost_Vtbl windows_core::imp::interface_hierarchy!(IDebugDocumentHost, windows_core::IUnknown); impl IDebugDocumentHost { pub unsafe fn GetDeferredText(&self, dwtextstartcookie: u32, pchartext: windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeferredText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtextstartcookie), core::mem::transmute(pchartext), core::mem::transmute(pstatextattr), core::mem::transmute(pcnumchars), core::mem::transmute(cmaxchars)).ok() + (windows_core::Interface::vtable(self).GetDeferredText)(windows_core::Interface::as_raw(self), dwtextstartcookie, core::mem::transmute(pchartext), core::mem::transmute(pstatextattr), core::mem::transmute(pcnumchars), cmaxchars).ok() } pub unsafe fn GetScriptTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P2, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), core::mem::transmute(unumcodechars), pstrdelimiter.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pattr)).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, core::mem::transmute(pattr)).ok() } pub unsafe fn OnCreateDocumentContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5198,7 +5198,7 @@ windows_core::imp::interface_hierarchy!(IDebugDocumentInfo, windows_core::IUnkno impl IDebugDocumentInfo { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), core::mem::transmute(dnt), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), dnt, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetDocumentClassId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5307,13 +5307,13 @@ impl IDebugDocumentText { } pub unsafe fn GetPositionOfLine(&self, clinenumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPositionOfLine)(windows_core::Interface::as_raw(self), core::mem::transmute(clinenumber), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPositionOfLine)(windows_core::Interface::as_raw(self), clinenumber, &mut result__).map(|| result__) } pub unsafe fn GetLineOfPosition(&self, ccharacterposition: u32, pclinenumber: *mut u32, pccharacteroffsetinline: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineOfPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(pclinenumber), core::mem::transmute(pccharacteroffsetinline)).ok() + (windows_core::Interface::vtable(self).GetLineOfPosition)(windows_core::Interface::as_raw(self), ccharacterposition, core::mem::transmute(pclinenumber), core::mem::transmute(pccharacteroffsetinline)).ok() } pub unsafe fn GetText(&self, ccharacterposition: u32, pchartext: windows_core::PWSTR, pstatextattr: Option<*mut u16>, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(pchartext), core::mem::transmute(pstatextattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcnumchars), core::mem::transmute(cmaxchars)).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), ccharacterposition, core::mem::transmute(pchartext), core::mem::transmute(pstatextattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcnumchars), cmaxchars).ok() } pub unsafe fn GetPositionOfContext(&self, psc: P0, pccharacterposition: *mut u32, cnumchars: *mut u32) -> windows_core::Result<()> where @@ -5323,7 +5323,7 @@ impl IDebugDocumentText { } pub unsafe fn GetContextOfPosition(&self, ccharacterposition: u32, cnumchars: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContextOfPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(cnumchars), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContextOfPosition)(windows_core::Interface::as_raw(self), ccharacterposition, cnumchars, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5420,13 +5420,13 @@ impl core::ops::Deref for IDebugDocumentTextAuthor { windows_core::imp::interface_hierarchy!(IDebugDocumentTextAuthor, windows_core::IUnknown, IDebugDocumentInfo, IDebugDocument, IDebugDocumentText); impl IDebugDocumentTextAuthor { pub unsafe fn InsertText(&self, ccharacterposition: u32, pchartext: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), pchartext.len().try_into().unwrap(), core::mem::transmute(pchartext.as_ptr())).ok() + (windows_core::Interface::vtable(self).InsertText)(windows_core::Interface::as_raw(self), ccharacterposition, pchartext.len().try_into().unwrap(), core::mem::transmute(pchartext.as_ptr())).ok() } pub unsafe fn RemoveText(&self, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(cnumtoremove)).ok() + (windows_core::Interface::vtable(self).RemoveText)(windows_core::Interface::as_raw(self), ccharacterposition, cnumtoremove).ok() } pub unsafe fn ReplaceText(&self, ccharacterposition: u32, pchartext: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReplaceText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), pchartext.len().try_into().unwrap(), core::mem::transmute(pchartext.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReplaceText)(windows_core::Interface::as_raw(self), ccharacterposition, pchartext.len().try_into().unwrap(), core::mem::transmute(pchartext.as_ptr())).ok() } } #[repr(C)] @@ -5474,19 +5474,19 @@ impl IDebugDocumentTextEvents { (windows_core::Interface::vtable(self).onDestroy)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn onInsertText(&self, ccharacterposition: u32, cnumtoinsert: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).onInsertText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(cnumtoinsert)).ok() + (windows_core::Interface::vtable(self).onInsertText)(windows_core::Interface::as_raw(self), ccharacterposition, cnumtoinsert).ok() } pub unsafe fn onRemoveText(&self, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).onRemoveText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(cnumtoremove)).ok() + (windows_core::Interface::vtable(self).onRemoveText)(windows_core::Interface::as_raw(self), ccharacterposition, cnumtoremove).ok() } pub unsafe fn onReplaceText(&self, ccharacterposition: u32, cnumtoreplace: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).onReplaceText)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(cnumtoreplace)).ok() + (windows_core::Interface::vtable(self).onReplaceText)(windows_core::Interface::as_raw(self), ccharacterposition, cnumtoreplace).ok() } pub unsafe fn onUpdateTextAttributes(&self, ccharacterposition: u32, cnumtoupdate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).onUpdateTextAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(ccharacterposition), core::mem::transmute(cnumtoupdate)).ok() + (windows_core::Interface::vtable(self).onUpdateTextAttributes)(windows_core::Interface::as_raw(self), ccharacterposition, cnumtoupdate).ok() } pub unsafe fn onUpdateDocumentAttributes(&self, textdocattr: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).onUpdateDocumentAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(textdocattr)).ok() + (windows_core::Interface::vtable(self).onUpdateDocumentAttributes)(windows_core::Interface::as_raw(self), textdocattr).ok() } } #[repr(C)] @@ -5717,7 +5717,7 @@ impl IDebugExpressionContext { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseLanguageText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), core::mem::transmute(nradix), pstrdelimiter.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseLanguageText)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), nradix, pstrdelimiter.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLanguageInfo(&self, pbstrlanguagename: *mut windows_core::BSTR, planguageid: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLanguageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrlanguagename), core::mem::transmute(planguageid)).ok() @@ -5766,7 +5766,7 @@ impl IDebugFormatter { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetStringForVariant(&self, pvar: *const super::super::super::Variant::VARIANT, nradix: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringForVariant)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), core::mem::transmute(nradix), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStringForVariant)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), nradix, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetVariantForString(&self, pwstrvalue: P0) -> windows_core::Result @@ -5779,7 +5779,7 @@ impl IDebugFormatter { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetStringForVarType(&self, vt: super::super::super::Variant::VARENUM, ptdescarraytype: *const super::super::super::Com::TYPEDESC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringForVarType)(windows_core::Interface::as_raw(self), core::mem::transmute(vt), core::mem::transmute(ptdescarraytype), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetStringForVarType)(windows_core::Interface::as_raw(self), vt, ptdescarraytype, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -6193,7 +6193,7 @@ windows_core::imp::interface_hierarchy!(IDebugStackFrameSnifferEx32, windows_cor impl IDebugStackFrameSnifferEx32 { pub unsafe fn EnumStackFramesEx32(&self, dwspmin: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumStackFramesEx32)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspmin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumStackFramesEx32)(windows_core::Interface::as_raw(self), dwspmin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6234,7 +6234,7 @@ windows_core::imp::interface_hierarchy!(IDebugStackFrameSnifferEx64, windows_cor impl IDebugStackFrameSnifferEx64 { pub unsafe fn EnumStackFramesEx64(&self, dwspmin: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumStackFramesEx64)(windows_core::Interface::as_raw(self), core::mem::transmute(dwspmin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumStackFramesEx64)(windows_core::Interface::as_raw(self), dwspmin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6333,7 +6333,7 @@ windows_core::imp::define_interface!(IDebugThreadCall32, IDebugThreadCall32_Vtbl windows_core::imp::interface_hierarchy!(IDebugThreadCall32, windows_core::IUnknown); impl IDebugThreadCall32 { pub unsafe fn ThreadCallHandler(&self, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadCallHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).ThreadCallHandler)(windows_core::Interface::as_raw(self), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -6361,7 +6361,7 @@ windows_core::imp::define_interface!(IDebugThreadCall64, IDebugThreadCall64_Vtbl windows_core::imp::interface_hierarchy!(IDebugThreadCall64, windows_core::IUnknown); impl IDebugThreadCall64 { pub unsafe fn ThreadCallHandler(&self, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadCallHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(dwparam1), core::mem::transmute(dwparam2), core::mem::transmute(dwparam3)).ok() + (windows_core::Interface::vtable(self).ThreadCallHandler)(windows_core::Interface::as_raw(self), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -6389,10 +6389,10 @@ windows_core::imp::define_interface!(IEnumDebugApplicationNodes, IEnumDebugAppli windows_core::imp::interface_hierarchy!(IEnumDebugApplicationNodes, windows_core::IUnknown); impl IEnumDebugApplicationNodes { pub unsafe fn Next(&self, celt: u32, pprddp: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(pprddp), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(pprddp), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6457,10 +6457,10 @@ windows_core::imp::define_interface!(IEnumDebugCodeContexts, IEnumDebugCodeConte windows_core::imp::interface_hierarchy!(IEnumDebugCodeContexts, windows_core::IUnknown); impl IEnumDebugCodeContexts { pub unsafe fn Next(&self, celt: u32, pscc: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(pscc), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(pscc), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6525,10 +6525,10 @@ windows_core::imp::define_interface!(IEnumDebugExpressionContexts, IEnumDebugExp windows_core::imp::interface_hierarchy!(IEnumDebugExpressionContexts, windows_core::IUnknown); impl IEnumDebugExpressionContexts { pub unsafe fn Next(&self, celt: u32, ppdec: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppdec), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppdec), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6593,10 +6593,10 @@ windows_core::imp::define_interface!(IEnumDebugStackFrames, IEnumDebugStackFrame windows_core::imp::interface_hierarchy!(IEnumDebugStackFrames, windows_core::IUnknown); impl IEnumDebugStackFrames { pub unsafe fn Next(&self, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(prgdsfd), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(prgdsfd), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6667,7 +6667,7 @@ impl core::ops::Deref for IEnumDebugStackFrames64 { windows_core::imp::interface_hierarchy!(IEnumDebugStackFrames64, windows_core::IUnknown, IEnumDebugStackFrames); impl IEnumDebugStackFrames64 { pub unsafe fn Next64(&self, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor64, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next64)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(prgdsfd), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next64)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(prgdsfd), core::mem::transmute(pceltfetched)).ok() } } #[repr(C)] @@ -6732,10 +6732,10 @@ windows_core::imp::define_interface!(IEnumRemoteDebugApplicationThreads, IEnumRe windows_core::imp::interface_hierarchy!(IEnumRemoteDebugApplicationThreads, windows_core::IUnknown); impl IEnumRemoteDebugApplicationThreads { pub unsafe fn Next(&self, celt: u32, pprdat: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(pprdat), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(pprdat), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6800,10 +6800,10 @@ windows_core::imp::define_interface!(IEnumRemoteDebugApplications, IEnumRemoteDe windows_core::imp::interface_hierarchy!(IEnumRemoteDebugApplications, windows_core::IUnknown); impl IEnumRemoteDebugApplications { pub unsafe fn Next(&self, celt: u32, ppda: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(ppda), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(ppda), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -6872,7 +6872,7 @@ impl IJsDebug { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenVirtualProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(processid), core::mem::transmute(runtimejsbaseaddress), pdatatarget.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenVirtualProcess)(windows_core::Interface::as_raw(self), processid, runtimejsbaseaddress, pdatatarget.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6984,36 +6984,36 @@ windows_core::imp::define_interface!(IJsDebugDataTarget, IJsDebugDataTarget_Vtbl windows_core::imp::interface_hierarchy!(IJsDebugDataTarget, windows_core::IUnknown); impl IJsDebugDataTarget { pub unsafe fn ReadMemory(&self, address: u64, flags: JsDebugReadMemoryFlags, pbuffer: &mut [u8], pbytesread: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(flags), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbytesread)).ok() + (windows_core::Interface::vtable(self).ReadMemory)(windows_core::Interface::as_raw(self), address, flags, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbytesread)).ok() } pub unsafe fn WriteMemory(&self, address: u64, pmemory: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(pmemory.as_ptr()), pmemory.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).WriteMemory)(windows_core::Interface::as_raw(self), address, core::mem::transmute(pmemory.as_ptr()), pmemory.len().try_into().unwrap()).ok() } pub unsafe fn AllocateVirtualMemory(&self, address: u64, size: u32, allocationtype: u32, pageprotection: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AllocateVirtualMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(allocationtype), core::mem::transmute(pageprotection), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AllocateVirtualMemory)(windows_core::Interface::as_raw(self), address, size, allocationtype, pageprotection, &mut result__).map(|| result__) } pub unsafe fn FreeVirtualMemory(&self, address: u64, size: u32, freetype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeVirtualMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(freetype)).ok() + (windows_core::Interface::vtable(self).FreeVirtualMemory)(windows_core::Interface::as_raw(self), address, size, freetype).ok() } pub unsafe fn GetTlsValue(&self, threadid: u32, tlsindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTlsValue)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), core::mem::transmute(tlsindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTlsValue)(windows_core::Interface::as_raw(self), threadid, tlsindex, &mut result__).map(|| result__) } pub unsafe fn ReadBSTR(&self, address: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadBSTR)(windows_core::Interface::as_raw(self), core::mem::transmute(address), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ReadBSTR)(windows_core::Interface::as_raw(self), address, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ReadNullTerminatedString(&self, address: u64, charactersize: u16, maxcharacters: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadNullTerminatedString)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(charactersize), core::mem::transmute(maxcharacters), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ReadNullTerminatedString)(windows_core::Interface::as_raw(self), address, charactersize, maxcharacters, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateStackFrameEnumerator(&self, threadid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStackFrameEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStackFrameEnumerator)(windows_core::Interface::as_raw(self), threadid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetThreadContext(&self, threadid: u32, contextflags: u32, pcontext: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), core::mem::transmute(contextflags), pcontext.len().try_into().unwrap(), core::mem::transmute(pcontext.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), threadid, contextflags, pcontext.len().try_into().unwrap(), core::mem::transmute(pcontext.as_ptr())).ok() } } #[repr(C)] @@ -7246,14 +7246,14 @@ windows_core::imp::interface_hierarchy!(IJsDebugProcess, windows_core::IUnknown) impl IJsDebugProcess { pub unsafe fn CreateStackWalker(&self, threadid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStackWalker)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStackWalker)(windows_core::Interface::as_raw(self), threadid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBreakPoint(&self, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBreakPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(documentid), core::mem::transmute(characteroffset), core::mem::transmute(charactercount), isenabled.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBreakPoint)(windows_core::Interface::as_raw(self), documentid, characteroffset, charactercount, isenabled.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PerformAsyncBreak(&self, threadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PerformAsyncBreak)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).PerformAsyncBreak)(windows_core::Interface::as_raw(self), threadid).ok() } pub unsafe fn GetExternalStepAddress(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7327,11 +7327,11 @@ windows_core::imp::define_interface!(IJsDebugProperty, IJsDebugProperty_Vtbl, 0x windows_core::imp::interface_hierarchy!(IJsDebugProperty, windows_core::IUnknown); impl IJsDebugProperty { pub unsafe fn GetPropertyInfo(&self, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(nradix), core::mem::transmute(ppropertyinfo)).ok() + (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), nradix, core::mem::transmute(ppropertyinfo)).ok() } pub unsafe fn GetMembers(&self, members: JS_PROPERTY_MEMBERS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMembers)(windows_core::Interface::as_raw(self), core::mem::transmute(members), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMembers)(windows_core::Interface::as_raw(self), members, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7461,7 +7461,7 @@ impl IMachineDebugManager { (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveApplication(&self, dwappcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappcookie)).ok() + (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), dwappcookie).ok() } pub unsafe fn EnumApplications(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7526,10 +7526,10 @@ impl IMachineDebugManagerCookie { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), core::mem::transmute(dwdebugappcookie), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), dwdebugappcookie, &mut result__).map(|| result__) } pub unsafe fn RemoveApplication(&self, dwdebugappcookie: u32, dwappcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdebugappcookie), core::mem::transmute(dwappcookie)).ok() + (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), dwdebugappcookie, dwappcookie).ok() } pub unsafe fn EnumApplications(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7593,13 +7593,13 @@ impl IMachineDebugManagerEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onAddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), core::mem::transmute(dwappcookie)).ok() + (windows_core::Interface::vtable(self).onAddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), dwappcookie).ok() } pub unsafe fn onRemoveApplication(&self, pda: P0, dwappcookie: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onRemoveApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), core::mem::transmute(dwappcookie)).ok() + (windows_core::Interface::vtable(self).onRemoveApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), dwappcookie).ok() } } #[repr(C)] @@ -7652,7 +7652,7 @@ impl IProcessDebugManager32 { (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveApplication(&self, dwappcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappcookie)).ok() + (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), dwappcookie).ok() } pub unsafe fn CreateDebugDocumentHelper(&self, punkouter: P0) -> windows_core::Result where @@ -7757,7 +7757,7 @@ impl IProcessDebugManager64 { (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveApplication(&self, dwappcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(dwappcookie)).ok() + (windows_core::Interface::vtable(self).RemoveApplication)(windows_core::Interface::as_raw(self), dwappcookie).ok() } pub unsafe fn CreateDebugDocumentHelper(&self, punkouter: P0) -> windows_core::Result where @@ -7885,7 +7885,7 @@ impl IRemoteDebugApplication { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResumeFromBreakPoint)(windows_core::Interface::as_raw(self), prptfocus.param().abi(), core::mem::transmute(bra), core::mem::transmute(era)).ok() + (windows_core::Interface::vtable(self).ResumeFromBreakPoint)(windows_core::Interface::as_raw(self), prptfocus.param().abi(), bra, era).ok() } pub unsafe fn CauseBreak(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CauseBreak)(windows_core::Interface::as_raw(self)).ok() @@ -7908,7 +7908,7 @@ impl IRemoteDebugApplication { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceAtApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), punkouter.param().abi(), core::mem::transmute(dwclscontext), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceAtApplication)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryAlive(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryAlive)(windows_core::Interface::as_raw(self)).ok() @@ -8064,7 +8064,7 @@ windows_core::imp::define_interface!(IRemoteDebugApplication110, IRemoteDebugApp windows_core::imp::interface_hierarchy!(IRemoteDebugApplication110, windows_core::IUnknown); impl IRemoteDebugApplication110 { pub unsafe fn SetDebuggerOptions(&self, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDebuggerOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDebuggerOptions)(windows_core::Interface::as_raw(self), mask, value).ok() } pub unsafe fn GetCurrentDebuggerOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8180,7 +8180,7 @@ impl IRemoteDebugApplicationEvents { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBreakFlagChange)(windows_core::Interface::as_raw(self), core::mem::transmute(abf), prdatsteppingthread.param().abi()).ok() + (windows_core::Interface::vtable(self).OnBreakFlagChange)(windows_core::Interface::as_raw(self), abf, prdatsteppingthread.param().abi()).ok() } } #[repr(C)] @@ -8548,7 +8548,7 @@ impl IScriptEntry { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), pti.param().abi(), core::mem::transmute(imethod)).ok() + (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), pti.param().abi(), imethod).ok() } pub unsafe fn GetRange(&self, pichmin: *mut u32, pcch: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(pichmin), core::mem::transmute(pcch)).ok() @@ -8780,7 +8780,7 @@ impl IScriptNode { } pub unsafe fn GetChild(&self, isn: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChild)(windows_core::Interface::as_raw(self), core::mem::transmute(isn), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChild)(windows_core::Interface::as_raw(self), isn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8791,7 +8791,7 @@ impl IScriptNode { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(isn), core::mem::transmute(dwcookie), pszdelimiter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChildEntry)(windows_core::Interface::as_raw(self), isn, dwcookie, pszdelimiter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateChildHandler(&self, pszdefaultname: P0, prgpsznames: &[windows_core::PCWSTR], pszevent: P3, pszdelimiter: P4, ptisignature: P5, imethodsignature: u32, isn: u32, dwcookie: u32) -> windows_core::Result @@ -8802,7 +8802,7 @@ impl IScriptNode { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildHandler)(windows_core::Interface::as_raw(self), pszdefaultname.param().abi(), core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len().try_into().unwrap(), pszevent.param().abi(), pszdelimiter.param().abi(), ptisignature.param().abi(), core::mem::transmute(imethodsignature), core::mem::transmute(isn), core::mem::transmute(dwcookie), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChildHandler)(windows_core::Interface::as_raw(self), pszdefaultname.param().abi(), core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len().try_into().unwrap(), pszevent.param().abi(), pszdelimiter.param().abi(), ptisignature.param().abi(), imethodsignature, isn, dwcookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9074,7 +9074,7 @@ impl ISimpleConnectionPoint { (windows_core::Interface::vtable(self).GetEventCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DescribeEvents(&self, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut windows_core::BSTR, pceventsfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DescribeEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(ievent), core::mem::transmute(cevents), core::mem::transmute(prgid), core::mem::transmute(prgbstr), core::mem::transmute(pceventsfetched)).ok() + (windows_core::Interface::vtable(self).DescribeEvents)(windows_core::Interface::as_raw(self), ievent, cevents, core::mem::transmute(prgid), core::mem::transmute(prgbstr), core::mem::transmute(pceventsfetched)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Advise(&self, pdisp: P0) -> windows_core::Result @@ -9085,7 +9085,7 @@ impl ISimpleConnectionPoint { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pdisp.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -9159,7 +9159,7 @@ impl ITridentEventSink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireEvent)(windows_core::Interface::as_raw(self), pstrevent.param().abi(), core::mem::transmute(pdp), core::mem::transmute(pvarres), core::mem::transmute(pei)).ok() + (windows_core::Interface::vtable(self).FireEvent)(windows_core::Interface::as_raw(self), pstrevent.param().abi(), pdp, core::mem::transmute(pvarres), core::mem::transmute(pei)).ok() } } #[repr(C)] @@ -9196,7 +9196,7 @@ impl IWebAppDiagnosticsObjectInitialization { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hpassedhandle), pdebugapplication.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hpassedhandle, pdebugapplication.param().abi()).ok() } } #[repr(C)] @@ -9228,7 +9228,7 @@ impl IWebAppDiagnosticsSetup { (windows_core::Interface::vtable(self).DiagnosticsSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CreateObjectWithSiteAtWebApp(&self, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, hpasstoobject: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateObjectWithSiteAtWebApp)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(dwclscontext), core::mem::transmute(riid), core::mem::transmute(hpasstoobject)).ok() + (windows_core::Interface::vtable(self).CreateObjectWithSiteAtWebApp)(windows_core::Interface::as_raw(self), rclsid, dwclscontext, riid, hpasstoobject).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs index c15c0ed668..032e6c1221 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs @@ -13,7 +13,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbgeng.dll" "system" fn DebugConnect(remoteoptions : windows_core::PCSTR, interfaceid : *const windows_core::GUID, interface : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DebugConnect(remoteoptions.param().abi(), core::mem::transmute(interfaceid), core::mem::transmute(interface)).ok() + DebugConnect(remoteoptions.param().abi(), interfaceid, core::mem::transmute(interface)).ok() } #[inline] pub unsafe fn DebugConnectWide(remoteoptions: P0, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -21,7 +21,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbgeng.dll" "system" fn DebugConnectWide(remoteoptions : windows_core::PCWSTR, interfaceid : *const windows_core::GUID, interface : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DebugConnectWide(remoteoptions.param().abi(), core::mem::transmute(interfaceid), core::mem::transmute(interface)).ok() + DebugConnectWide(remoteoptions.param().abi(), interfaceid, core::mem::transmute(interface)).ok() } #[inline] pub unsafe fn DebugCreate() -> windows_core::Result @@ -39,7 +39,7 @@ where { windows_targets::link!("dbgeng.dll" "system" fn DebugCreateEx(interfaceid : *const windows_core::GUID, dbgengoptions : u32, interface : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - DebugCreateEx(&T::IID, core::mem::transmute(dbgengoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DebugCreateEx(&T::IID, dbgengoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub const ADDRESS_TYPE_INDEX_NOT_FOUND: u32 = 11u32; pub const Ambiguous: SignatureComparison = SignatureComparison(1i32); @@ -3334,7 +3334,7 @@ impl IDataModelManager { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateErrorObject)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror), pwszmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateErrorObject)(windows_core::Interface::as_raw(self), hrerror, pwszmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypedObject(&self, context: P0, objectlocation: Location, objecttype: P2) -> windows_core::Result where @@ -3369,7 +3369,7 @@ impl IDataModelManager { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateIntrinsicObject(&self, objectkind: ModelObjectKind, intrinsicdata: *const super::super::super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateIntrinsicObject)(windows_core::Interface::as_raw(self), core::mem::transmute(objectkind), core::mem::transmute(intrinsicdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateIntrinsicObject)(windows_core::Interface::as_raw(self), objectkind, core::mem::transmute(intrinsicdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTypedIntrinsicObject(&self, intrinsicdata: *const super::super::super::Variant::VARIANT, r#type: P1) -> windows_core::Result @@ -3988,7 +3988,7 @@ impl IDataModelScriptClient { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), core::mem::transmute(errclass), core::mem::transmute(hrfail), message.param().abi(), core::mem::transmute(line), core::mem::transmute(position)).ok() + (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errclass, hrfail, message.param().abi(), line, position).ok() } } #[repr(C)] @@ -4027,11 +4027,11 @@ impl IDataModelScriptDebug { } pub unsafe fn SetBreakpoint(&self, lineposition: u32, columnposition: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(lineposition), core::mem::transmute(columnposition), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetBreakpoint)(windows_core::Interface::as_raw(self), lineposition, columnposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindBreakpointById(&self, breakpointid: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(breakpointid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindBreakpointById)(windows_core::Interface::as_raw(self), breakpointid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4039,10 +4039,10 @@ impl IDataModelScriptDebug { } pub unsafe fn GetEventFilter(&self, eventfilter: ScriptDebugEventFilter) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(eventfilter), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEventFilter)(windows_core::Interface::as_raw(self), eventfilter, &mut result__).map(|| result__) } pub unsafe fn SetEventFilter(&self, eventfilter: ScriptDebugEventFilter, isbreakenabled: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(eventfilter), core::mem::transmute(isbreakenabled)).ok() + (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), eventfilter, isbreakenabled).ok() } pub unsafe fn StartDebugging(&self, debugclient: P0) -> windows_core::Result<()> where @@ -4351,7 +4351,7 @@ impl IDataModelScriptDebugClient { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyDebugEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(peventinfo), pscript.param().abi(), peventdataobject.param().abi(), core::mem::transmute(resumeeventkind)).ok() + (windows_core::Interface::vtable(self).NotifyDebugEvent)(windows_core::Interface::as_raw(self), peventinfo, pscript.param().abi(), peventdataobject.param().abi(), core::mem::transmute(resumeeventkind)).ok() } } #[repr(C)] @@ -4383,7 +4383,7 @@ impl IDataModelScriptDebugStack { } pub unsafe fn GetStackFrame(&self, framenumber: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStackFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(framenumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStackFrame)(windows_core::Interface::as_raw(self), framenumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4596,7 +4596,7 @@ impl IDataModelScriptHostContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyScriptChange)(windows_core::Interface::as_raw(self), script.param().abi(), core::mem::transmute(changekind)).ok() + (windows_core::Interface::vtable(self).NotifyScriptChange)(windows_core::Interface::as_raw(self), script.param().abi(), changekind).ok() } pub unsafe fn GetNamespaceObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5038,10 +5038,10 @@ windows_core::imp::define_interface!(IDebugAdvanced, IDebugAdvanced_Vtbl, 0xf2df windows_core::imp::interface_hierarchy!(IDebugAdvanced, windows_core::IUnknown); impl IDebugAdvanced { pub unsafe fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), contextsize).ok() } pub unsafe fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), context, contextsize).ok() } } #[repr(C)] @@ -5079,56 +5079,31 @@ windows_core::imp::define_interface!(IDebugAdvanced2, IDebugAdvanced2_Vtbl, 0x71 windows_core::imp::interface_hierarchy!(IDebugAdvanced2, windows_core::IUnknown); impl IDebugAdvanced2 { pub unsafe fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), contextsize).ok() } pub unsafe fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), context, contextsize).ok() } pub unsafe fn Request(&self, request: u32, inbuffer: Option<*const core::ffi::c_void>, inbuffersize: u32, outbuffer: Option<*mut core::ffi::c_void>, outbuffersize: u32, outsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), core::mem::transmute(request), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outbuffersize), core::mem::transmute(outsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), request, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outbuffersize, core::mem::transmute(outsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileInformation(&self, which: u32, sourcefile: P1, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(which), sourcefile.param().abi(), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), which, sourcefile.param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FindSourceFileAndToken(&self, startelement: u32, modaddr: u64, file: P2, flags: u32, filetoken: Option<*const core::ffi::c_void>, filetokensize: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndToken)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startelement), - core::mem::transmute(modaddr), - file.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filetokensize), - core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).FindSourceFileAndToken)(windows_core::Interface::as_raw(self), startelement, modaddr, file.param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), filetokensize, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolInformation(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>, stringbuffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(which), - core::mem::transmute(arg64), - core::mem::transmute(arg32), - core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetSymbolInformation)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemObjectInformation(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemObjectInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemObjectInformation)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -5201,96 +5176,46 @@ windows_core::imp::define_interface!(IDebugAdvanced3, IDebugAdvanced3_Vtbl, 0xcb windows_core::imp::interface_hierarchy!(IDebugAdvanced3, windows_core::IUnknown); impl IDebugAdvanced3 { pub unsafe fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), contextsize).ok() } pub unsafe fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), context, contextsize).ok() } pub unsafe fn Request(&self, request: u32, inbuffer: Option<*const core::ffi::c_void>, inbuffersize: u32, outbuffer: Option<*mut core::ffi::c_void>, outbuffersize: u32, outsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), core::mem::transmute(request), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outbuffersize), core::mem::transmute(outsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), request, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outbuffersize, core::mem::transmute(outsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileInformation(&self, which: u32, sourcefile: P1, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(which), sourcefile.param().abi(), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), which, sourcefile.param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FindSourceFileAndToken(&self, startelement: u32, modaddr: u64, file: P2, flags: u32, filetoken: Option<*const core::ffi::c_void>, filetokensize: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndToken)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startelement), - core::mem::transmute(modaddr), - file.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filetokensize), - core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).FindSourceFileAndToken)(windows_core::Interface::as_raw(self), startelement, modaddr, file.param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), filetokensize, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolInformation(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>, stringbuffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(which), - core::mem::transmute(arg64), - core::mem::transmute(arg32), - core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetSymbolInformation)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemObjectInformation(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemObjectInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemObjectInformation)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileInformationWide(&self, which: u32, sourcefile: P1, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformationWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), sourcefile.param().abi(), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileInformationWide)(windows_core::Interface::as_raw(self), which, sourcefile.param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FindSourceFileAndTokenWide(&self, startelement: u32, modaddr: u64, file: P2, flags: u32, filetoken: Option<*const core::ffi::c_void>, filetokensize: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u16]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndTokenWide)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startelement), - core::mem::transmute(modaddr), - file.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filetokensize), - core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).FindSourceFileAndTokenWide)(windows_core::Interface::as_raw(self), startelement, modaddr, file.param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), filetokensize, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolInformationWide(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>, stringbuffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolInformationWide)( - windows_core::Interface::as_raw(self), - core::mem::transmute(which), - core::mem::transmute(arg64), - core::mem::transmute(arg32), - core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetSymbolInformationWide)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -5384,105 +5309,55 @@ windows_core::imp::define_interface!(IDebugAdvanced4, IDebugAdvanced4_Vtbl, 0xd1 windows_core::imp::interface_hierarchy!(IDebugAdvanced4, windows_core::IUnknown); impl IDebugAdvanced4 { pub unsafe fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).GetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), contextsize).ok() } pub unsafe fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SetThreadContext)(windows_core::Interface::as_raw(self), context, contextsize).ok() } pub unsafe fn Request(&self, request: u32, inbuffer: Option<*const core::ffi::c_void>, inbuffersize: u32, outbuffer: Option<*mut core::ffi::c_void>, outbuffersize: u32, outsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), core::mem::transmute(request), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outbuffersize), core::mem::transmute(outsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), request, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outbuffersize, core::mem::transmute(outsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileInformation(&self, which: u32, sourcefile: P1, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(which), sourcefile.param().abi(), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), which, sourcefile.param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FindSourceFileAndToken(&self, startelement: u32, modaddr: u64, file: P2, flags: u32, filetoken: Option<*const core::ffi::c_void>, filetokensize: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndToken)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startelement), - core::mem::transmute(modaddr), - file.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filetokensize), - core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).FindSourceFileAndToken)(windows_core::Interface::as_raw(self), startelement, modaddr, file.param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), filetokensize, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolInformation(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>, stringbuffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(which), - core::mem::transmute(arg64), - core::mem::transmute(arg32), - core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetSymbolInformation)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemObjectInformation(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemObjectInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemObjectInformation)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileInformationWide(&self, which: u32, sourcefile: P1, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformationWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), sourcefile.param().abi(), core::mem::transmute(arg64), core::mem::transmute(arg32), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileInformationWide)(windows_core::Interface::as_raw(self), which, sourcefile.param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FindSourceFileAndTokenWide(&self, startelement: u32, modaddr: u64, file: P2, flags: u32, filetoken: Option<*const core::ffi::c_void>, filetokensize: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u16]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndTokenWide)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startelement), - core::mem::transmute(modaddr), - file.param().abi(), - core::mem::transmute(flags), - core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), - core::mem::transmute(filetokensize), - core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).FindSourceFileAndTokenWide)(windows_core::Interface::as_raw(self), startelement, modaddr, file.param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(core::mem::zeroed())), filetokensize, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolInformationWide(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>, stringbuffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolInformationWide)( - windows_core::Interface::as_raw(self), - core::mem::transmute(which), - core::mem::transmute(arg64), - core::mem::transmute(arg32), - core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), - core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), - core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetSymbolInformationWide)(windows_core::Interface::as_raw(self), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolInformationWideEx(&self, which: u32, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>, stringbuffer: Option<&mut [u16]>, stringsize: Option<*mut u32>, pinfoex: Option<*mut SYMBOL_INFO_EX>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolInformationWideEx)( windows_core::Interface::as_raw(self), - core::mem::transmute(which), - core::mem::transmute(arg64), - core::mem::transmute(arg32), + which, + arg64, + arg32, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), - core::mem::transmute(buffersize), + buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), stringbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -5605,33 +5480,33 @@ impl IDebugBreakpoint { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn RemoveFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).RemoveFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetDataParameters(&self, size: *mut u32, accesstype: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDataParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(accesstype)).ok() } pub unsafe fn SetDataParameters(&self, size: u32, accesstype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(accesstype)).ok() + (windows_core::Interface::vtable(self).SetDataParameters)(windows_core::Interface::as_raw(self), size, accesstype).ok() } pub unsafe fn GetPassCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPassCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPassCount(&self, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPassCount)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetPassCount)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn GetCurrentPassCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5642,7 +5517,7 @@ impl IDebugBreakpoint { (windows_core::Interface::vtable(self).GetMatchThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMatchThreadId(&self, thread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatchThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(thread)).ok() + (windows_core::Interface::vtable(self).SetMatchThreadId)(windows_core::Interface::as_raw(self), thread).ok() } pub unsafe fn GetCommand(&self, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() @@ -5891,33 +5766,33 @@ impl IDebugBreakpoint2 { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn RemoveFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).RemoveFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetDataParameters(&self, size: *mut u32, accesstype: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDataParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(accesstype)).ok() } pub unsafe fn SetDataParameters(&self, size: u32, accesstype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(accesstype)).ok() + (windows_core::Interface::vtable(self).SetDataParameters)(windows_core::Interface::as_raw(self), size, accesstype).ok() } pub unsafe fn GetPassCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPassCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPassCount(&self, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPassCount)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetPassCount)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn GetCurrentPassCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5928,7 +5803,7 @@ impl IDebugBreakpoint2 { (windows_core::Interface::vtable(self).GetMatchThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMatchThreadId(&self, thread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatchThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(thread)).ok() + (windows_core::Interface::vtable(self).SetMatchThreadId)(windows_core::Interface::as_raw(self), thread).ok() } pub unsafe fn GetCommand(&self, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() @@ -6223,33 +6098,33 @@ impl IDebugBreakpoint3 { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn RemoveFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).RemoveFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetDataParameters(&self, size: *mut u32, accesstype: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDataParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(accesstype)).ok() } pub unsafe fn SetDataParameters(&self, size: u32, accesstype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(accesstype)).ok() + (windows_core::Interface::vtable(self).SetDataParameters)(windows_core::Interface::as_raw(self), size, accesstype).ok() } pub unsafe fn GetPassCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPassCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPassCount(&self, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPassCount)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetPassCount)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn GetCurrentPassCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6260,7 +6135,7 @@ impl IDebugBreakpoint3 { (windows_core::Interface::vtable(self).GetMatchThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMatchThreadId(&self, thread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMatchThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(thread)).ok() + (windows_core::Interface::vtable(self).SetMatchThreadId)(windows_core::Interface::as_raw(self), thread).ok() } pub unsafe fn GetCommand(&self, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() @@ -6560,7 +6435,7 @@ impl IDebugClient { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -6575,7 +6450,7 @@ impl IDebugClient { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -6585,24 +6460,24 @@ impl IDebugClient { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -6613,32 +6488,32 @@ impl IDebugClient { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -6650,10 +6525,10 @@ impl IDebugClient { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -6665,7 +6540,7 @@ impl IDebugClient { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -6674,14 +6549,14 @@ impl IDebugClient { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -6718,7 +6593,7 @@ impl IDebugClient { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -6731,14 +6606,14 @@ impl IDebugClient { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -6756,7 +6631,7 @@ impl IDebugClient { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7177,7 +7052,7 @@ impl IDebugClient2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -7192,7 +7067,7 @@ impl IDebugClient2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -7202,24 +7077,24 @@ impl IDebugClient2 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -7230,32 +7105,32 @@ impl IDebugClient2 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -7267,10 +7142,10 @@ impl IDebugClient2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -7282,7 +7157,7 @@ impl IDebugClient2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -7291,14 +7166,14 @@ impl IDebugClient2 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -7335,7 +7210,7 @@ impl IDebugClient2 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -7348,14 +7223,14 @@ impl IDebugClient2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -7373,7 +7248,7 @@ impl IDebugClient2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7393,19 +7268,19 @@ impl IDebugClient2 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -7881,7 +7756,7 @@ impl IDebugClient3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -7896,7 +7771,7 @@ impl IDebugClient3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -7906,24 +7781,24 @@ impl IDebugClient3 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -7934,32 +7809,32 @@ impl IDebugClient3 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -7971,10 +7846,10 @@ impl IDebugClient3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -7986,7 +7861,7 @@ impl IDebugClient3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -7995,14 +7870,14 @@ impl IDebugClient3 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -8039,7 +7914,7 @@ impl IDebugClient3 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -8052,14 +7927,14 @@ impl IDebugClient3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -8077,7 +7952,7 @@ impl IDebugClient3 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8097,19 +7972,19 @@ impl IDebugClient3 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -8128,14 +8003,14 @@ impl IDebugClient3 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescriptionWide(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u16]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u16]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescriptionWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -8149,13 +8024,13 @@ impl IDebugClient3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttachWide(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } } #[repr(C)] @@ -8653,7 +8528,7 @@ impl IDebugClient4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -8668,7 +8543,7 @@ impl IDebugClient4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -8678,24 +8553,24 @@ impl IDebugClient4 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -8706,32 +8581,32 @@ impl IDebugClient4 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -8743,10 +8618,10 @@ impl IDebugClient4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -8758,7 +8633,7 @@ impl IDebugClient4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -8767,14 +8642,14 @@ impl IDebugClient4 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -8811,7 +8686,7 @@ impl IDebugClient4 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -8824,14 +8699,14 @@ impl IDebugClient4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -8849,7 +8724,7 @@ impl IDebugClient4 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8869,19 +8744,19 @@ impl IDebugClient4 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -8900,14 +8775,14 @@ impl IDebugClient4 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescriptionWide(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u16]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u16]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescriptionWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -8921,42 +8796,42 @@ impl IDebugClient4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttachWide(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn OpenDumpFileWide(&self, filename: P0, filehandle: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle)).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle).ok() } pub unsafe fn WriteDumpFileWide(&self, filename: P0, filehandle: u64, qualifier: u32, formatflags: u32, comment: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFileWide(&self, filename: P0, filehandle: u64, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, r#type).ok() } pub unsafe fn GetNumberDumpFiles(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberDumpFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDumpFile(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn GetDumpFileWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } } #[repr(C)] @@ -9502,7 +9377,7 @@ impl IDebugClient5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -9517,7 +9392,7 @@ impl IDebugClient5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -9527,24 +9402,24 @@ impl IDebugClient5 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -9555,32 +9430,32 @@ impl IDebugClient5 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -9592,10 +9467,10 @@ impl IDebugClient5 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -9607,7 +9482,7 @@ impl IDebugClient5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -9616,14 +9491,14 @@ impl IDebugClient5 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -9660,7 +9535,7 @@ impl IDebugClient5 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -9673,14 +9548,14 @@ impl IDebugClient5 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -9698,7 +9573,7 @@ impl IDebugClient5 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9718,19 +9593,19 @@ impl IDebugClient5 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -9749,14 +9624,14 @@ impl IDebugClient5 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescriptionWide(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u16]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u16]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescriptionWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -9770,48 +9645,48 @@ impl IDebugClient5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttachWide(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn OpenDumpFileWide(&self, filename: P0, filehandle: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle)).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle).ok() } pub unsafe fn WriteDumpFileWide(&self, filename: P0, filehandle: u64, qualifier: u32, formatflags: u32, comment: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFileWide(&self, filename: P0, filehandle: u64, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, r#type).ok() } pub unsafe fn GetNumberDumpFiles(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberDumpFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDumpFile(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn GetDumpFileWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptionsWide(&self, buffer: Option<&mut [u16]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -9826,7 +9701,7 @@ impl IDebugClient5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where @@ -9845,7 +9720,7 @@ impl IDebugClient5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn GetOutputCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9873,7 +9748,7 @@ impl IDebugClient5 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9891,7 +9766,7 @@ impl IDebugClient5 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcess2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5) -> windows_core::Result<()> where @@ -9899,7 +9774,7 @@ impl IDebugClient5 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcessAndAttach2(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -9907,7 +9782,7 @@ impl IDebugClient5 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn CreateProcessAndAttach2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -9915,7 +9790,7 @@ impl IDebugClient5 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn PushOutputLinePrefix(&self, newprefix: P0) -> windows_core::Result where @@ -9932,7 +9807,7 @@ impl IDebugClient5 { (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PopOutputLinePrefix(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetNumberInputCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9944,7 +9819,7 @@ impl IDebugClient5 { } pub unsafe fn GetNumberEventCallbacks(&self, eventflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(eventflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), eventflags, &mut result__).map(|| result__) } pub unsafe fn GetQuitLockString(&self, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockString)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() @@ -10759,7 +10634,7 @@ impl IDebugClient6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -10774,7 +10649,7 @@ impl IDebugClient6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -10784,24 +10659,24 @@ impl IDebugClient6 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -10812,32 +10687,32 @@ impl IDebugClient6 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -10849,10 +10724,10 @@ impl IDebugClient6 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -10864,7 +10739,7 @@ impl IDebugClient6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -10873,14 +10748,14 @@ impl IDebugClient6 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -10917,7 +10792,7 @@ impl IDebugClient6 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -10930,14 +10805,14 @@ impl IDebugClient6 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -10955,7 +10830,7 @@ impl IDebugClient6 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10975,19 +10850,19 @@ impl IDebugClient6 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -11006,14 +10881,14 @@ impl IDebugClient6 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescriptionWide(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u16]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u16]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescriptionWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -11027,48 +10902,48 @@ impl IDebugClient6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttachWide(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn OpenDumpFileWide(&self, filename: P0, filehandle: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle)).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle).ok() } pub unsafe fn WriteDumpFileWide(&self, filename: P0, filehandle: u64, qualifier: u32, formatflags: u32, comment: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFileWide(&self, filename: P0, filehandle: u64, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, r#type).ok() } pub unsafe fn GetNumberDumpFiles(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberDumpFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDumpFile(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn GetDumpFileWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptionsWide(&self, buffer: Option<&mut [u16]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -11083,7 +10958,7 @@ impl IDebugClient6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where @@ -11102,7 +10977,7 @@ impl IDebugClient6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn GetOutputCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11130,7 +11005,7 @@ impl IDebugClient6 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11148,7 +11023,7 @@ impl IDebugClient6 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcess2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5) -> windows_core::Result<()> where @@ -11156,7 +11031,7 @@ impl IDebugClient6 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcessAndAttach2(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -11164,7 +11039,7 @@ impl IDebugClient6 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn CreateProcessAndAttach2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -11172,7 +11047,7 @@ impl IDebugClient6 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn PushOutputLinePrefix(&self, newprefix: P0) -> windows_core::Result where @@ -11189,7 +11064,7 @@ impl IDebugClient6 { (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PopOutputLinePrefix(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetNumberInputCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11201,7 +11076,7 @@ impl IDebugClient6 { } pub unsafe fn GetNumberEventCallbacks(&self, eventflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(eventflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), eventflags, &mut result__).map(|| result__) } pub unsafe fn GetQuitLockString(&self, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockString)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() @@ -12029,7 +11904,7 @@ impl IDebugClient7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -12044,7 +11919,7 @@ impl IDebugClient7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -12054,24 +11929,24 @@ impl IDebugClient7 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -12082,32 +11957,32 @@ impl IDebugClient7 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -12119,10 +11994,10 @@ impl IDebugClient7 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -12134,7 +12009,7 @@ impl IDebugClient7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -12143,14 +12018,14 @@ impl IDebugClient7 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -12187,7 +12062,7 @@ impl IDebugClient7 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -12200,14 +12075,14 @@ impl IDebugClient7 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -12225,7 +12100,7 @@ impl IDebugClient7 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12245,19 +12120,19 @@ impl IDebugClient7 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -12276,14 +12151,14 @@ impl IDebugClient7 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescriptionWide(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u16]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u16]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescriptionWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -12297,48 +12172,48 @@ impl IDebugClient7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttachWide(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn OpenDumpFileWide(&self, filename: P0, filehandle: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle)).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle).ok() } pub unsafe fn WriteDumpFileWide(&self, filename: P0, filehandle: u64, qualifier: u32, formatflags: u32, comment: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFileWide(&self, filename: P0, filehandle: u64, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, r#type).ok() } pub unsafe fn GetNumberDumpFiles(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberDumpFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDumpFile(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn GetDumpFileWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptionsWide(&self, buffer: Option<&mut [u16]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -12353,7 +12228,7 @@ impl IDebugClient7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where @@ -12372,7 +12247,7 @@ impl IDebugClient7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn GetOutputCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12400,7 +12275,7 @@ impl IDebugClient7 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12418,7 +12293,7 @@ impl IDebugClient7 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcess2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5) -> windows_core::Result<()> where @@ -12426,7 +12301,7 @@ impl IDebugClient7 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcessAndAttach2(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -12434,7 +12309,7 @@ impl IDebugClient7 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn CreateProcessAndAttach2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -12442,7 +12317,7 @@ impl IDebugClient7 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn PushOutputLinePrefix(&self, newprefix: P0) -> windows_core::Result where @@ -12459,7 +12334,7 @@ impl IDebugClient7 { (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PopOutputLinePrefix(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetNumberInputCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12471,7 +12346,7 @@ impl IDebugClient7 { } pub unsafe fn GetNumberEventCallbacks(&self, eventflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(eventflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), eventflags, &mut result__).map(|| result__) } pub unsafe fn GetQuitLockString(&self, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockString)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() @@ -12498,7 +12373,7 @@ impl IDebugClient7 { (windows_core::Interface::vtable(self).SetEventContextCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn SetClientContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SetClientContext)(windows_core::Interface::as_raw(self), context, contextsize).ok() } } #[repr(C)] @@ -13309,7 +13184,7 @@ impl IDebugClient8 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptions(&self, buffer: Option<&mut [u8]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -13324,7 +13199,7 @@ impl IDebugClient8 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where @@ -13334,24 +13209,24 @@ impl IDebugClient8 { (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisconnectProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).DisconnectProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn GetRunningProcessSystemIds(&self, server: u64, ids: Option<&mut [u32]>, actualcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRunningProcessSystemIds)(windows_core::Interface::as_raw(self), server, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P1, flags: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescription(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u8]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u8]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescription)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -13362,32 +13237,32 @@ impl IDebugClient8 { .ok() } pub unsafe fn AttachProcess(&self, server: u64, processid: u32, attachflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).AttachProcess)(windows_core::Interface::as_raw(self), server, processid, attachflags).ok() } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P1, createflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttach(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn GetProcessOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProcessOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetProcessOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetProcessOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where @@ -13399,10 +13274,10 @@ impl IDebugClient8 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier).ok() } pub unsafe fn ConnectSession(&self, flags: u32, historylimit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(historylimit)).ok() + (windows_core::Interface::vtable(self).ConnectSession)(windows_core::Interface::as_raw(self), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where @@ -13414,7 +13289,7 @@ impl IDebugClient8 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn TerminateProcesses(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateProcesses)(windows_core::Interface::as_raw(self)).ok() @@ -13423,14 +13298,14 @@ impl IDebugClient8 { (windows_core::Interface::vtable(self).DetachProcesses)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EndSession(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetExitCode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExitCode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DispatchCallbacks(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).DispatchCallbacks)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where @@ -13467,7 +13342,7 @@ impl IDebugClient8 { (windows_core::Interface::vtable(self).GetOutputMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOutputMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where @@ -13480,14 +13355,14 @@ impl IDebugClient8 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), mask).ok() } pub unsafe fn GetOutputWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutputWidth(&self, columns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(columns)).ok() + (windows_core::Interface::vtable(self).SetOutputWidth)(windows_core::Interface::as_raw(self), columns).ok() } pub unsafe fn GetOutputLinePrefix(&self, buffer: Option<&mut [u8]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prefixsize.unwrap_or(core::mem::zeroed()))).ok() @@ -13505,7 +13380,7 @@ impl IDebugClient8 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13525,19 +13400,19 @@ impl IDebugClient8 { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.param().abi(), qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFile(&self, infofile: P0, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.param().abi(), r#type).ok() } pub unsafe fn EndProcessServer(&self, server: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server)).ok() + (windows_core::Interface::vtable(self).EndProcessServer)(windows_core::Interface::as_raw(self), server).ok() } pub unsafe fn WaitForProcessServerEnd(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForProcessServerEnd)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn IsKernelDebuggerEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsKernelDebuggerEnabled)(windows_core::Interface::as_raw(self)).ok() @@ -13556,14 +13431,14 @@ impl IDebugClient8 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), exename.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetRunningProcessDescriptionWide(&self, server: u64, systemid: u32, flags: u32, exename: Option<&mut [u16]>, actualexenamesize: Option<*mut u32>, description: Option<&mut [u16]>, actualdescriptionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRunningProcessDescriptionWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(server), - core::mem::transmute(systemid), - core::mem::transmute(flags), + server, + systemid, + flags, core::mem::transmute(exename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), exename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(actualexenamesize.unwrap_or(core::mem::zeroed())), @@ -13577,48 +13452,48 @@ impl IDebugClient8 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags).ok() } pub unsafe fn CreateProcessAndAttachWide(&self, server: u64, commandline: P1, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(createflags), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } pub unsafe fn OpenDumpFileWide(&self, filename: P0, filehandle: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle)).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle).ok() } pub unsafe fn WriteDumpFileWide(&self, filename: P0, filehandle: u64, qualifier: u32, formatflags: u32, comment: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(qualifier), core::mem::transmute(formatflags), comment.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, qualifier, formatflags, comment.param().abi()).ok() } pub unsafe fn AddDumpInformationFileWide(&self, filename: P0, filehandle: u64, r#type: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, r#type).ok() } pub unsafe fn GetNumberDumpFiles(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberDumpFiles)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDumpFile(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFile)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn GetDumpFileWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>, handle: Option<*mut u64>, r#type: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).GetDumpFileWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type)).ok() } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), connectoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.param().abi()).ok() } pub unsafe fn GetKernelConnectionOptionsWide(&self, buffer: Option<&mut [u16]>, optionssize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(optionssize.unwrap_or(core::mem::zeroed()))).ok() @@ -13633,7 +13508,7 @@ impl IDebugClient8 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where @@ -13652,7 +13527,7 @@ impl IDebugClient8 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), machine.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.param().abi(), flags).ok() } pub unsafe fn GetOutputCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13680,7 +13555,7 @@ impl IDebugClient8 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.param().abi()).ok() } pub unsafe fn GetEventCallbacksWide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13698,7 +13573,7 @@ impl IDebugClient8 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcess2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5) -> windows_core::Result<()> where @@ -13706,7 +13581,7 @@ impl IDebugClient8 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi()).ok() } pub unsafe fn CreateProcessAndAttach2(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -13714,7 +13589,7 @@ impl IDebugClient8 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn CreateProcessAndAttach2Wide(&self, server: u64, commandline: P1, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P4, environment: P5, processid: u32, attachflags: u32) -> windows_core::Result<()> where @@ -13722,7 +13597,7 @@ impl IDebugClient8 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), commandline.param().abi(), core::mem::transmute(optionsbuffer), core::mem::transmute(optionsbuffersize), initialdirectory.param().abi(), environment.param().abi(), core::mem::transmute(processid), core::mem::transmute(attachflags)).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.param().abi(), environment.param().abi(), processid, attachflags).ok() } pub unsafe fn PushOutputLinePrefix(&self, newprefix: P0) -> windows_core::Result where @@ -13739,7 +13614,7 @@ impl IDebugClient8 { (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PopOutputLinePrefix(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).PopOutputLinePrefix)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetNumberInputCallbacks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13751,7 +13626,7 @@ impl IDebugClient8 { } pub unsafe fn GetNumberEventCallbacks(&self, eventflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), core::mem::transmute(eventflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNumberEventCallbacks)(windows_core::Interface::as_raw(self), eventflags, &mut result__).map(|| result__) } pub unsafe fn GetQuitLockString(&self, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockString)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() @@ -13778,13 +13653,13 @@ impl IDebugClient8 { (windows_core::Interface::vtable(self).SetEventContextCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn SetClientContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SetClientContext)(windows_core::Interface::as_raw(self), context, contextsize).ok() } pub unsafe fn OpenDumpFileWide2(&self, filename: P0, filehandle: u64, alternatearch: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide2)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(filehandle), core::mem::transmute(alternatearch)).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide2)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, alternatearch).ok() } } #[repr(C)] @@ -14602,14 +14477,14 @@ impl IDebugControl { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -14628,7 +14503,7 @@ impl IDebugControl { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -14643,63 +14518,63 @@ impl IDebugControl { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14707,36 +14582,24 @@ impl IDebugControl { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -14754,7 +14617,7 @@ impl IDebugControl { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14791,12 +14654,12 @@ impl IDebugControl { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -14811,80 +14674,80 @@ impl IDebugControl { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14892,18 +14755,18 @@ impl IDebugControl { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -14916,10 +14779,10 @@ impl IDebugControl { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -14933,14 +14796,14 @@ impl IDebugControl { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -14954,49 +14817,49 @@ impl IDebugControl { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -15005,7 +14868,7 @@ impl IDebugControl { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -15847,14 +15710,14 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -15873,7 +15736,7 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -15888,63 +15751,63 @@ impl IDebugControl2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15952,36 +15815,24 @@ impl IDebugControl2 { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -15999,7 +15850,7 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16036,12 +15887,12 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -16056,80 +15907,80 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16137,18 +15988,18 @@ impl IDebugControl2 { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -16161,10 +16012,10 @@ impl IDebugControl2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -16178,14 +16029,14 @@ impl IDebugControl2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -16199,49 +16050,49 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -16250,7 +16101,7 @@ impl IDebugControl2 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -16281,7 +16132,7 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -16302,7 +16153,7 @@ impl IDebugControl2 { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputTextReplacements(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } } #[repr(C)] @@ -17218,14 +17069,14 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -17244,7 +17095,7 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -17259,63 +17110,63 @@ impl IDebugControl3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17323,36 +17174,24 @@ impl IDebugControl3 { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -17370,7 +17209,7 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17407,12 +17246,12 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -17427,80 +17266,80 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17508,18 +17347,18 @@ impl IDebugControl3 { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -17532,10 +17371,10 @@ impl IDebugControl3 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -17549,14 +17388,14 @@ impl IDebugControl3 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -17570,49 +17409,49 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -17621,7 +17460,7 @@ impl IDebugControl3 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -17652,7 +17491,7 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -17673,27 +17512,27 @@ impl IDebugControl3 { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputTextReplacements(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetAssemblyOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAssemblyOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetExpressionSyntax(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExpressionSyntax)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExpressionSyntax(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where @@ -17708,7 +17547,7 @@ impl IDebugControl3 { pub unsafe fn GetExpressionSyntaxNames(&self, index: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -17726,7 +17565,7 @@ impl IDebugControl3 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17734,7 +17573,7 @@ impl IDebugControl3 { } pub unsafe fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(relation), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } } #[repr(C)] @@ -18777,14 +18616,14 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -18803,7 +18642,7 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -18818,63 +18657,63 @@ impl IDebugControl4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18882,36 +18721,24 @@ impl IDebugControl4 { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -18929,7 +18756,7 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18966,12 +18793,12 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -18986,80 +18813,80 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19067,18 +18894,18 @@ impl IDebugControl4 { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -19091,10 +18918,10 @@ impl IDebugControl4 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -19108,14 +18935,14 @@ impl IDebugControl4 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -19129,49 +18956,49 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -19180,7 +19007,7 @@ impl IDebugControl4 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -19211,7 +19038,7 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -19232,27 +19059,27 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputTextReplacements(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetAssemblyOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAssemblyOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetExpressionSyntax(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExpressionSyntax)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExpressionSyntax(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where @@ -19267,7 +19094,7 @@ impl IDebugControl4 { pub unsafe fn GetExpressionSyntaxNames(&self, index: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -19285,7 +19112,7 @@ impl IDebugControl4 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19293,7 +19120,7 @@ impl IDebugControl4 { } pub unsafe fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(relation), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -19317,37 +19144,37 @@ impl IDebugControl4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaListWide(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutputWide(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaListWide(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPromptWide(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaListWide(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptTextWide(&self, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() @@ -19357,15 +19184,15 @@ impl IDebugControl4 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisassembleWide(&self, offset: u64, flags: u32, buffer: Option<&mut [u16]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetProcessorTypeNamesWide(&self, r#type: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -19376,43 +19203,43 @@ impl IDebugControl4 { .ok() } pub unsafe fn GetTextMacroWide(&self, slot: u32, buffer: Option<&mut [u16]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn EvaluateWide(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFileWide(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetBreakpointByIndex2(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById2(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddBreakpoint2(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where @@ -19425,7 +19252,7 @@ impl IDebugControl4 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetExtensionByPathWide(&self, path: P0) -> windows_core::Result where @@ -19439,44 +19266,44 @@ impl IDebugControl4 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunctionWide(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetEventFilterTextWide(&self, index: u32, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterArgumentWide(&self, index: u32, buffer: Option<&mut [u16]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterSecondCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetLastEventInformationWide(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u16]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformationWide)( @@ -19485,7 +19312,7 @@ impl IDebugControl4 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -19500,7 +19327,7 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -19526,7 +19353,7 @@ impl IDebugControl4 { pub unsafe fn GetExpressionSyntaxNamesWide(&self, index: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -19540,7 +19367,7 @@ impl IDebugControl4 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLogFile2(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -19549,7 +19376,7 @@ impl IDebugControl4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetLogFile2Wide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -19558,57 +19385,34 @@ impl IDebugControl4 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetSystemVersionValues(&self, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: Option<*mut u32>, kdminor: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemVersionValues)(windows_core::Interface::as_raw(self), core::mem::transmute(platformid), core::mem::transmute(win32major), core::mem::transmute(win32minor), core::mem::transmute(kdmajor.unwrap_or(core::mem::zeroed())), core::mem::transmute(kdminor.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionString(&self, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionStringWide(&self, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetContextStackTrace(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTrace)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTrace(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetStoredEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: Option<*mut core::ffi::c_void>, contextsize: u32, contextused: Option<*mut u32>, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStoredEventInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), - core::mem::transmute(processid), - core::mem::transmute(threadid), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - core::mem::transmute(contextsize), - core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), - core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetStoredEventInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), contextsize, core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatus(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u8]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatusWide(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u16]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ResetManagedStatus(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), flags).ok() } } #[repr(C)] @@ -21064,14 +20868,14 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -21090,7 +20894,7 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -21105,63 +20909,63 @@ impl IDebugControl5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21169,36 +20973,24 @@ impl IDebugControl5 { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -21216,7 +21008,7 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21253,12 +21045,12 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -21273,80 +21065,80 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21354,18 +21146,18 @@ impl IDebugControl5 { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -21378,10 +21170,10 @@ impl IDebugControl5 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -21395,14 +21187,14 @@ impl IDebugControl5 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -21416,49 +21208,49 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -21467,7 +21259,7 @@ impl IDebugControl5 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -21498,7 +21290,7 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -21519,27 +21311,27 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputTextReplacements(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetAssemblyOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAssemblyOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetExpressionSyntax(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExpressionSyntax)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExpressionSyntax(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where @@ -21554,7 +21346,7 @@ impl IDebugControl5 { pub unsafe fn GetExpressionSyntaxNames(&self, index: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -21572,7 +21364,7 @@ impl IDebugControl5 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -21580,7 +21372,7 @@ impl IDebugControl5 { } pub unsafe fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(relation), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -21604,37 +21396,37 @@ impl IDebugControl5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaListWide(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutputWide(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaListWide(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPromptWide(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaListWide(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptTextWide(&self, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() @@ -21644,15 +21436,15 @@ impl IDebugControl5 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisassembleWide(&self, offset: u64, flags: u32, buffer: Option<&mut [u16]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetProcessorTypeNamesWide(&self, r#type: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -21663,43 +21455,43 @@ impl IDebugControl5 { .ok() } pub unsafe fn GetTextMacroWide(&self, slot: u32, buffer: Option<&mut [u16]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn EvaluateWide(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFileWide(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetBreakpointByIndex2(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById2(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddBreakpoint2(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where @@ -21712,7 +21504,7 @@ impl IDebugControl5 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetExtensionByPathWide(&self, path: P0) -> windows_core::Result where @@ -21726,44 +21518,44 @@ impl IDebugControl5 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunctionWide(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetEventFilterTextWide(&self, index: u32, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterArgumentWide(&self, index: u32, buffer: Option<&mut [u16]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterSecondCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetLastEventInformationWide(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u16]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformationWide)( @@ -21772,7 +21564,7 @@ impl IDebugControl5 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -21787,7 +21579,7 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -21813,7 +21605,7 @@ impl IDebugControl5 { pub unsafe fn GetExpressionSyntaxNamesWide(&self, index: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -21827,7 +21619,7 @@ impl IDebugControl5 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLogFile2(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -21836,7 +21628,7 @@ impl IDebugControl5 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetLogFile2Wide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -21845,84 +21637,50 @@ impl IDebugControl5 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetSystemVersionValues(&self, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: Option<*mut u32>, kdminor: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemVersionValues)(windows_core::Interface::as_raw(self), core::mem::transmute(platformid), core::mem::transmute(win32major), core::mem::transmute(win32minor), core::mem::transmute(kdmajor.unwrap_or(core::mem::zeroed())), core::mem::transmute(kdminor.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionString(&self, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionStringWide(&self, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetContextStackTrace(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTrace)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTrace(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetStoredEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: Option<*mut core::ffi::c_void>, contextsize: u32, contextused: Option<*mut u32>, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStoredEventInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), - core::mem::transmute(processid), - core::mem::transmute(threadid), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - core::mem::transmute(contextsize), - core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), - core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetStoredEventInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), contextsize, core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatus(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u8]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatusWide(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u16]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ResetManagedStatus(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetStackTraceEx(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME_EX], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTraceEx)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputStackTraceEx(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME_EX]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTraceEx)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetContextStackTraceEx(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME_EX]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTraceEx)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTraceEx(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME_EX], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTraceEx)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetBreakpointByGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByGuid)(windows_core::Interface::as_raw(self), guid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -23419,14 +23177,14 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -23445,7 +23203,7 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -23460,63 +23218,63 @@ impl IDebugControl6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23524,36 +23282,24 @@ impl IDebugControl6 { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -23571,7 +23317,7 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23608,12 +23354,12 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -23628,80 +23374,80 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23709,18 +23455,18 @@ impl IDebugControl6 { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -23733,10 +23479,10 @@ impl IDebugControl6 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -23750,14 +23496,14 @@ impl IDebugControl6 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -23771,49 +23517,49 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -23822,7 +23568,7 @@ impl IDebugControl6 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -23853,7 +23599,7 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -23874,27 +23620,27 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputTextReplacements(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetAssemblyOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAssemblyOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetExpressionSyntax(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExpressionSyntax)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExpressionSyntax(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where @@ -23909,7 +23655,7 @@ impl IDebugControl6 { pub unsafe fn GetExpressionSyntaxNames(&self, index: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -23927,7 +23673,7 @@ impl IDebugControl6 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23935,7 +23681,7 @@ impl IDebugControl6 { } pub unsafe fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(relation), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -23959,37 +23705,37 @@ impl IDebugControl6 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaListWide(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutputWide(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaListWide(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPromptWide(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaListWide(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptTextWide(&self, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() @@ -23999,15 +23745,15 @@ impl IDebugControl6 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisassembleWide(&self, offset: u64, flags: u32, buffer: Option<&mut [u16]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetProcessorTypeNamesWide(&self, r#type: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -24018,43 +23764,43 @@ impl IDebugControl6 { .ok() } pub unsafe fn GetTextMacroWide(&self, slot: u32, buffer: Option<&mut [u16]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn EvaluateWide(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFileWide(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetBreakpointByIndex2(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById2(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddBreakpoint2(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where @@ -24067,7 +23813,7 @@ impl IDebugControl6 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetExtensionByPathWide(&self, path: P0) -> windows_core::Result where @@ -24081,44 +23827,44 @@ impl IDebugControl6 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunctionWide(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetEventFilterTextWide(&self, index: u32, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterArgumentWide(&self, index: u32, buffer: Option<&mut [u16]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterSecondCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetLastEventInformationWide(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u16]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformationWide)( @@ -24127,7 +23873,7 @@ impl IDebugControl6 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -24142,7 +23888,7 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -24168,7 +23914,7 @@ impl IDebugControl6 { pub unsafe fn GetExpressionSyntaxNamesWide(&self, index: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -24182,7 +23928,7 @@ impl IDebugControl6 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLogFile2(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -24191,7 +23937,7 @@ impl IDebugControl6 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetLogFile2Wide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -24200,84 +23946,50 @@ impl IDebugControl6 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetSystemVersionValues(&self, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: Option<*mut u32>, kdminor: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemVersionValues)(windows_core::Interface::as_raw(self), core::mem::transmute(platformid), core::mem::transmute(win32major), core::mem::transmute(win32minor), core::mem::transmute(kdmajor.unwrap_or(core::mem::zeroed())), core::mem::transmute(kdminor.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionString(&self, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionStringWide(&self, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetContextStackTrace(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTrace)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTrace(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetStoredEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: Option<*mut core::ffi::c_void>, contextsize: u32, contextused: Option<*mut u32>, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStoredEventInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), - core::mem::transmute(processid), - core::mem::transmute(threadid), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - core::mem::transmute(contextsize), - core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), - core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetStoredEventInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), contextsize, core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatus(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u8]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatusWide(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u16]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ResetManagedStatus(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetStackTraceEx(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME_EX], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTraceEx)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputStackTraceEx(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME_EX]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTraceEx)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetContextStackTraceEx(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME_EX]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTraceEx)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTraceEx(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME_EX], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTraceEx)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetBreakpointByGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByGuid)(windows_core::Interface::as_raw(self), guid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetExecutionStatusEx(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25801,14 +25513,14 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetInterrupt)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetInterrupt)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetInterruptTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetInterruptTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -25827,7 +25539,7 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetLogMask)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogMask(&self, mask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetLogMask)(windows_core::Interface::as_raw(self), mask).ok() } pub unsafe fn Input(&self, buffer: &mut [u8], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Input)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(core::mem::zeroed()))).ok() @@ -25842,63 +25554,63 @@ impl IDebugControl7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaList(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutput(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaList(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPrompt(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaList(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptText(&self, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptText)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputCurrentState(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputCurrentState)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn OutputVersionInformation(&self, outputcontrol: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol)).ok() + (windows_core::Interface::vtable(self).OutputVersionInformation)(windows_core::Interface::as_raw(self), outputcontrol).ok() } pub unsafe fn GetNotifyEventHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotifyEventHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotifyEventHandle(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).SetNotifyEventHandle)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Assemble(&self, offset: u64, instr: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disassemble(&self, offset: u64, flags: u32, buffer: Option<&mut [u8]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetDisassembleEffectiveOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25906,36 +25618,24 @@ impl IDebugControl7 { } pub unsafe fn OutputDisassembly(&self, outputcontrol: u32, offset: u64, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OutputDisassembly)(windows_core::Interface::as_raw(self), outputcontrol, offset, flags, &mut result__).map(|| result__) } pub unsafe fn OutputDisassemblyLines(&self, outputcontrol: u32, previouslines: u32, offset: u64, flags: u32, offsetline: Option<*mut u32>, startoffset: Option<*mut u64>, endoffset: Option<*mut u64>, lineoffsets: Option<&mut [u64]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputDisassemblyLines)( - windows_core::Interface::as_raw(self), - core::mem::transmute(outputcontrol), - core::mem::transmute(previouslines), - lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(offset), - core::mem::transmute(flags), - core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ) - .ok() + (windows_core::Interface::vtable(self).OutputDisassemblyLines)(windows_core::Interface::as_raw(self), outputcontrol, previouslines, lineoffsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), offset, flags, core::mem::transmute(offsetline.unwrap_or(core::mem::zeroed())), core::mem::transmute(startoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(lineoffsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn GetNearInstruction(&self, offset: u64, delta: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNearInstruction)(windows_core::Interface::as_raw(self), offset, delta, &mut result__).map(|| result__) } pub unsafe fn GetStackTrace(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTrace)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetReturnOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReturnOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OutputStackTrace(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetDebuggeeType(&self, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDebuggeeType)(windows_core::Interface::as_raw(self), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() @@ -25953,7 +25653,7 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetNumberPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPossibleExecutingProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetPossibleExecutingProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetNumberProcessors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25990,12 +25690,12 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetNumberSupportedProcessorTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSupportedProcessorTypes(&self, start: u32, types: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(start), types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSupportedProcessorTypes)(windows_core::Interface::as_raw(self), start, types.len().try_into().unwrap(), core::mem::transmute(types.as_ptr())).ok() } pub unsafe fn GetProcessorTypeNames(&self, r#type: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -26010,80 +25710,80 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetEffectiveProcessorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEffectiveProcessorType(&self, r#type: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetEffectiveProcessorType)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetExecutionStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExecutionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExecutionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SetExecutionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetCodeLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCodeLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodeLevel(&self, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SetCodeLevel)(windows_core::Interface::as_raw(self), level).ok() } pub unsafe fn GetEngineOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngineOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetEngineOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetEngineOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetSystemErrorControl(&self, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() } pub unsafe fn SetSystemErrorControl(&self, outputlevel: u32, breaklevel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), core::mem::transmute(outputlevel), core::mem::transmute(breaklevel)).ok() + (windows_core::Interface::vtable(self).SetSystemErrorControl)(windows_core::Interface::as_raw(self), outputlevel, breaklevel).ok() } pub unsafe fn GetTextMacro(&self, slot: u32, buffer: Option<&mut [u8]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacro)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn GetRadix(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRadix)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRadix(&self, radix: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), core::mem::transmute(radix)).ok() + (windows_core::Interface::vtable(self).SetRadix)(windows_core::Interface::as_raw(self), radix).ok() } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CoerceValue(&self, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), core::mem::transmute(r#in), core::mem::transmute(outtype), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValue)(windows_core::Interface::as_raw(self), r#in, outtype, core::mem::transmute(out)).ok() } pub unsafe fn CoerceValues(&self, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(r#in), core::mem::transmute(outtypes), core::mem::transmute(out)).ok() + (windows_core::Interface::vtable(self).CoerceValues)(windows_core::Interface::as_raw(self), count, r#in, outtypes, core::mem::transmute(out)).ok() } pub unsafe fn Execute(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFile(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetNumberBreakpoints(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26091,18 +25791,18 @@ impl IDebugControl7 { } pub unsafe fn GetBreakpointByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointParameters(&self, count: u32, ids: Option<*const u32>, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetBreakpointParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn AddBreakpoint(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where @@ -26115,10 +25815,10 @@ impl IDebugControl7 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveExtension(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).RemoveExtension)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where @@ -26132,14 +25832,14 @@ impl IDebugControl7 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunction(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -26153,49 +25853,49 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetNumberEventFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(specificevents), core::mem::transmute(specificexceptions), core::mem::transmute(arbitraryexceptions)).ok() } pub unsafe fn GetEventFilterText(&self, index: u32, buffer: Option<&mut [u8]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterParameters(&self, start: u32, params: &mut [DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn SetSpecificFilterParameters(&self, start: u32, params: &[DEBUG_SPECIFIC_FILTER_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetSpecificFilterArgument(&self, index: u32, buffer: Option<&mut [u8]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterParameters(&self, count: u32, codes: Option<*const u32>, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(codes.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn SetExceptionFilterParameters(&self, params: &[DEBUG_EXCEPTION_FILTER_PARAMETERS]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetExceptionFilterParameters)(windows_core::Interface::as_raw(self), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn GetExceptionFilterSecondCommand(&self, index: u32, buffer: Option<&mut [u8]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn WaitForEvent(&self, flags: u32, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).WaitForEvent)(windows_core::Interface::as_raw(self), flags, timeout).ok() } pub unsafe fn GetLastEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u8]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformation)( @@ -26204,7 +25904,7 @@ impl IDebugControl7 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -26235,7 +25935,7 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -26256,27 +25956,27 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputTextReplacements(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTextReplacements)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetAssemblyOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAssemblyOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetAssemblyOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetAssemblyOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetExpressionSyntax(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExpressionSyntax)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExpressionSyntax(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntax)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where @@ -26291,7 +25991,7 @@ impl IDebugControl7 { pub unsafe fn GetExpressionSyntaxNames(&self, index: u32, fullnamebuffer: Option<&mut [u8]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u8]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -26309,7 +26009,7 @@ impl IDebugControl7 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26317,7 +26017,7 @@ impl IDebugControl7 { } pub unsafe fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(relation), core::mem::transmute(value), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(append)).ok() @@ -26341,37 +26041,37 @@ impl IDebugControl7 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.param().abi()).ok() } pub unsafe fn OutputVaListWide(&self, mask: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.param().abi(), args).ok() } pub unsafe fn ControlledOutputWide(&self, outputcontrol: u32, mask: u32, format: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi()).ok() + (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi()).ok() } pub unsafe fn ControlledOutputVaListWide(&self, outputcontrol: u32, mask: u32, format: P2, args: *const i8) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(mask), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.param().abi(), args).ok() } pub unsafe fn OutputPromptWide(&self, outputcontrol: u32, format: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi()).ok() } pub unsafe fn OutputPromptVaListWide(&self, outputcontrol: u32, format: P1, args: *const i8) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), format.param().abi(), core::mem::transmute(args)).ok() + (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.param().abi(), args).ok() } pub unsafe fn GetPromptTextWide(&self, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPromptTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() @@ -26381,15 +26081,15 @@ impl IDebugControl7 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), instr.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisassembleWide(&self, offset: u64, flags: u32, buffer: Option<&mut [u16]>, disassemblysize: Option<*mut u32>, endoffset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() + (windows_core::Interface::vtable(self).DisassembleWide)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(disassemblysize.unwrap_or(core::mem::zeroed())), core::mem::transmute(endoffset)).ok() } pub unsafe fn GetProcessorTypeNamesWide(&self, r#type: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProcessorTypeNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), + r#type, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -26400,43 +26100,43 @@ impl IDebugControl7 { .ok() } pub unsafe fn GetTextMacroWide(&self, slot: u32, buffer: Option<&mut [u16]>, macrosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTextMacroWide)(windows_core::Interface::as_raw(self), slot, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(macrosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), core::mem::transmute(slot), r#macro.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.param().abi()).ok() } pub unsafe fn EvaluateWide(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), core::mem::transmute(desiredtype), core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, core::mem::transmute(value), core::mem::transmute(remainderindex.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), command.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.param().abi(), flags).ok() } pub unsafe fn ExecuteCommandFileWide(&self, outputcontrol: u32, commandfile: P1, flags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), commandfile.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.param().abi(), flags).ok() } pub unsafe fn GetBreakpointByIndex2(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByIndex2)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBreakpointById2(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointById2)(windows_core::Interface::as_raw(self), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddBreakpoint2(&self, r#type: u32, desiredid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(desiredid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBreakpoint2)(windows_core::Interface::as_raw(self), r#type, desiredid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where @@ -26449,7 +26149,7 @@ impl IDebugControl7 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn GetExtensionByPathWide(&self, path: P0) -> windows_core::Result where @@ -26463,44 +26163,44 @@ impl IDebugControl7 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), function.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.param().abi(), arguments.param().abi()).ok() } pub unsafe fn GetExtensionFunctionWide(&self, handle: u64, funcname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), funcname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetEventFilterTextWide(&self, index: u32, buffer: Option<&mut [u16]>, textsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterTextWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEventFilterCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetSpecificFilterArgumentWide(&self, index: u32, buffer: Option<&mut [u16]>, argumentsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(argumentsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), argument.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.param().abi()).ok() } pub unsafe fn GetExceptionFilterSecondCommandWide(&self, index: u32, buffer: Option<&mut [u16]>, commandsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(commandsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), command.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.param().abi()).ok() } pub unsafe fn GetLastEventInformationWide(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>, description: Option<&mut [u16]>, descriptionused: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLastEventInformationWide)( @@ -26509,7 +26209,7 @@ impl IDebugControl7 { core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), + extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -26524,7 +26224,7 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), srctext.param().abi(), - core::mem::transmute(index), + index, core::mem::transmute(srcbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), srcbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(srcsize.unwrap_or(core::mem::zeroed())), @@ -26550,7 +26250,7 @@ impl IDebugControl7 { pub unsafe fn GetExpressionSyntaxNamesWide(&self, index: u32, fullnamebuffer: Option<&mut [u16]>, fullnamesize: Option<*mut u32>, abbrevnamebuffer: Option<&mut [u16]>, abbrevnamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExpressionSyntaxNamesWide)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), + index, core::mem::transmute(fullnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fullnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(fullnamesize.unwrap_or(core::mem::zeroed())), @@ -26564,7 +26264,7 @@ impl IDebugControl7 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(which), buffer.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLogFile2(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -26573,7 +26273,7 @@ impl IDebugControl7 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetLogFile2Wide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, flags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogFile2Wide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() @@ -26582,84 +26282,50 @@ impl IDebugControl7 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.param().abi(), flags).ok() } pub unsafe fn GetSystemVersionValues(&self, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: Option<*mut u32>, kdminor: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSystemVersionValues)(windows_core::Interface::as_raw(self), core::mem::transmute(platformid), core::mem::transmute(win32major), core::mem::transmute(win32minor), core::mem::transmute(kdmajor.unwrap_or(core::mem::zeroed())), core::mem::transmute(kdminor.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionString(&self, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionString)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSystemVersionStringWide(&self, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSystemVersionStringWide)(windows_core::Interface::as_raw(self), which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetContextStackTrace(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTrace)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTrace(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTrace)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetStoredEventInformation(&self, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: Option<*mut core::ffi::c_void>, contextsize: u32, contextused: Option<*mut u32>, extrainformation: Option<*mut core::ffi::c_void>, extrainformationsize: u32, extrainformationused: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStoredEventInformation)( - windows_core::Interface::as_raw(self), - core::mem::transmute(r#type), - core::mem::transmute(processid), - core::mem::transmute(threadid), - core::mem::transmute(context.unwrap_or(core::mem::zeroed())), - core::mem::transmute(contextsize), - core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), - core::mem::transmute(extrainformationsize), - core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetStoredEventInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(processid), core::mem::transmute(threadid), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), contextsize, core::mem::transmute(contextused.unwrap_or(core::mem::zeroed())), core::mem::transmute(extrainformation.unwrap_or(core::mem::zeroed())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatus(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u8]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetManagedStatusWide(&self, flags: Option<*mut u32>, whichstring: u32, string: Option<&mut [u16]>, stringneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), core::mem::transmute(whichstring), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetManagedStatusWide)(windows_core::Interface::as_raw(self), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), whichstring, core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ResetManagedStatus(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).ResetManagedStatus)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetStackTraceEx(&self, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: &mut [DEBUG_STACK_FRAME_EX], framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(frameoffset), core::mem::transmute(stackoffset), core::mem::transmute(instructionoffset), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStackTraceEx)(windows_core::Interface::as_raw(self), frameoffset, stackoffset, instructionoffset, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputStackTraceEx(&self, outputcontrol: u32, frames: Option<&[DEBUG_STACK_FRAME_EX]>, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputStackTraceEx)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } pub unsafe fn GetContextStackTraceEx(&self, startcontext: Option<*const core::ffi::c_void>, startcontextsize: u32, frames: Option<&mut [DEBUG_STACK_FRAME_EX]>, framecontexts: Option<*mut core::ffi::c_void>, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetContextStackTraceEx)( - windows_core::Interface::as_raw(self), - core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), - core::mem::transmute(startcontextsize), - core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), - core::mem::transmute(framecontextssize), - core::mem::transmute(framecontextsentrysize), - core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed())), - ) - .ok() + (windows_core::Interface::vtable(self).GetContextStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(startcontext.unwrap_or(core::mem::zeroed())), startcontextsize, core::mem::transmute(frames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), frames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(framecontexts.unwrap_or(core::mem::zeroed())), framecontextssize, framecontextsentrysize, core::mem::transmute(framesfilled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputContextStackTraceEx(&self, outputcontrol: u32, frames: &[DEBUG_STACK_FRAME_EX], framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputContextStackTraceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), core::mem::transmute(framecontexts), core::mem::transmute(framecontextssize), core::mem::transmute(framecontextsentrysize), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputContextStackTraceEx)(windows_core::Interface::as_raw(self), outputcontrol, core::mem::transmute(frames.as_ptr()), frames.len().try_into().unwrap(), framecontexts, framecontextssize, framecontextsentrysize, flags).ok() } pub unsafe fn GetBreakpointByGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBreakpointByGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBreakpointByGuid)(windows_core::Interface::as_raw(self), guid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetExecutionStatusEx(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26669,7 +26335,7 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).GetSynchronizationStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(sendsattempted), core::mem::transmute(secondssincelastresponse)).ok() } pub unsafe fn GetDebuggeeType2(&self, flags: u32, class: *mut u32, qualifier: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDebuggeeType2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(class), core::mem::transmute(qualifier)).ok() + (windows_core::Interface::vtable(self).GetDebuggeeType2)(windows_core::Interface::as_raw(self), flags, core::mem::transmute(class), core::mem::transmute(qualifier)).ok() } } #[repr(C)] @@ -28190,66 +27856,66 @@ windows_core::imp::define_interface!(IDebugDataSpaces, IDebugDataSpaces_Vtbl, 0x windows_core::imp::interface_hierarchy!(IDebugDataSpaces, windows_core::IUnknown); impl IDebugDataSpaces { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(patterngranularity), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), offset, length, pattern, patternsize, patterngranularity, &mut result__).map(|| result__) } pub unsafe fn ReadVirtualUncached(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtualUncached(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadPointersVirtual(&self, offset: u64, ptrs: &mut [u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn WritePointersVirtual(&self, offset: u64, ptrs: &[u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn ReadPhysical(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WritePhysical(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadControl(&self, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), processor, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteControl(&self, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), processor, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadMsr(&self, msr: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), msr, &mut result__).map(|| result__) } pub unsafe fn WriteMsr(&self, msr: u32, value: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), msr, value).ok() } pub unsafe fn ReadBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CheckLowMemory(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckLowMemory)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ReadDebuggerData(&self, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadProcessorSystemData(&self, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), processor, index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -28425,86 +28091,86 @@ windows_core::imp::define_interface!(IDebugDataSpaces2, IDebugDataSpaces2_Vtbl, windows_core::imp::interface_hierarchy!(IDebugDataSpaces2, windows_core::IUnknown); impl IDebugDataSpaces2 { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(patterngranularity), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), offset, length, pattern, patternsize, patterngranularity, &mut result__).map(|| result__) } pub unsafe fn ReadVirtualUncached(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtualUncached(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadPointersVirtual(&self, offset: u64, ptrs: &mut [u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn WritePointersVirtual(&self, offset: u64, ptrs: &[u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn ReadPhysical(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WritePhysical(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadControl(&self, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), processor, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteControl(&self, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), processor, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadMsr(&self, msr: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), msr, &mut result__).map(|| result__) } pub unsafe fn WriteMsr(&self, msr: u32, value: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), msr, value).ok() } pub unsafe fn ReadBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CheckLowMemory(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckLowMemory)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ReadDebuggerData(&self, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadProcessorSystemData(&self, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), processor, index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn VirtualToPhysical(&self, r#virtual: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VirtualToPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(r#virtual), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VirtualToPhysical)(windows_core::Interface::as_raw(self), r#virtual, &mut result__).map(|| result__) } pub unsafe fn GetVirtualTranslationPhysicalOffsets(&self, r#virtual: u64, offsets: Option<&mut [u64]>, levels: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVirtualTranslationPhysicalOffsets)(windows_core::Interface::as_raw(self), core::mem::transmute(r#virtual), core::mem::transmute(offsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), offsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(levels.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetVirtualTranslationPhysicalOffsets)(windows_core::Interface::as_raw(self), r#virtual, core::mem::transmute(offsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), offsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(levels.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadHandleData(&self, handle: u64, datatype: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadHandleData)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(datatype), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadHandleData)(windows_core::Interface::as_raw(self), handle, datatype, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FillVirtual(&self, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(size), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FillVirtual)(windows_core::Interface::as_raw(self), start, size, pattern, patternsize, core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FillPhysical(&self, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(size), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FillPhysical)(windows_core::Interface::as_raw(self), start, size, pattern, patternsize, core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Memory")] pub unsafe fn QueryVirtual(&self, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(info)).ok() + (windows_core::Interface::vtable(self).QueryVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(info)).ok() } } #[repr(C)] @@ -28734,103 +28400,103 @@ windows_core::imp::define_interface!(IDebugDataSpaces3, IDebugDataSpaces3_Vtbl, windows_core::imp::interface_hierarchy!(IDebugDataSpaces3, windows_core::IUnknown); impl IDebugDataSpaces3 { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(patterngranularity), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), offset, length, pattern, patternsize, patterngranularity, &mut result__).map(|| result__) } pub unsafe fn ReadVirtualUncached(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtualUncached(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadPointersVirtual(&self, offset: u64, ptrs: &mut [u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn WritePointersVirtual(&self, offset: u64, ptrs: &[u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn ReadPhysical(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WritePhysical(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadControl(&self, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), processor, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteControl(&self, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), processor, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadMsr(&self, msr: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), msr, &mut result__).map(|| result__) } pub unsafe fn WriteMsr(&self, msr: u32, value: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), msr, value).ok() } pub unsafe fn ReadBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CheckLowMemory(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckLowMemory)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ReadDebuggerData(&self, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadProcessorSystemData(&self, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), processor, index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn VirtualToPhysical(&self, r#virtual: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VirtualToPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(r#virtual), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VirtualToPhysical)(windows_core::Interface::as_raw(self), r#virtual, &mut result__).map(|| result__) } pub unsafe fn GetVirtualTranslationPhysicalOffsets(&self, r#virtual: u64, offsets: Option<&mut [u64]>, levels: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVirtualTranslationPhysicalOffsets)(windows_core::Interface::as_raw(self), core::mem::transmute(r#virtual), core::mem::transmute(offsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), offsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(levels.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetVirtualTranslationPhysicalOffsets)(windows_core::Interface::as_raw(self), r#virtual, core::mem::transmute(offsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), offsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(levels.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadHandleData(&self, handle: u64, datatype: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadHandleData)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(datatype), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadHandleData)(windows_core::Interface::as_raw(self), handle, datatype, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FillVirtual(&self, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(size), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FillVirtual)(windows_core::Interface::as_raw(self), start, size, pattern, patternsize, core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FillPhysical(&self, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(size), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FillPhysical)(windows_core::Interface::as_raw(self), start, size, pattern, patternsize, core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Memory")] pub unsafe fn QueryVirtual(&self, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(info)).ok() + (windows_core::Interface::vtable(self).QueryVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(info)).ok() } #[cfg(feature = "Win32_System_SystemInformation")] pub unsafe fn ReadImageNtHeaders(&self, imagebase: u64, headers: *mut super::IMAGE_NT_HEADERS64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadImageNtHeaders)(windows_core::Interface::as_raw(self), core::mem::transmute(imagebase), core::mem::transmute(headers)).ok() + (windows_core::Interface::vtable(self).ReadImageNtHeaders)(windows_core::Interface::as_raw(self), imagebase, core::mem::transmute(headers)).ok() } pub unsafe fn ReadTagged(&self, tag: *const windows_core::GUID, offset: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, totalsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTagged)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(offset), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(totalsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTagged)(windows_core::Interface::as_raw(self), tag, offset, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(totalsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn StartEnumTagged(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartEnumTagged)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetNextTagged(&self, handle: u64, tag: *mut windows_core::GUID, size: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextTagged)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(tag), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).GetNextTagged)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(tag), core::mem::transmute(size)).ok() } pub unsafe fn EndEnumTagged(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndEnumTagged)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndEnumTagged)(windows_core::Interface::as_raw(self), handle).ok() } } #[repr(C)] @@ -29104,135 +28770,135 @@ windows_core::imp::define_interface!(IDebugDataSpaces4, IDebugDataSpaces4_Vtbl, windows_core::imp::interface_hierarchy!(IDebugDataSpaces4, windows_core::IUnknown); impl IDebugDataSpaces4 { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtual)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(patterngranularity), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SearchVirtual)(windows_core::Interface::as_raw(self), offset, length, pattern, patternsize, patterngranularity, &mut result__).map(|| result__) } pub unsafe fn ReadVirtualUncached(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadVirtualUncached)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteVirtualUncached(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteVirtualUncached)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadPointersVirtual(&self, offset: u64, ptrs: &mut [u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReadPointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn WritePointersVirtual(&self, offset: u64, ptrs: &[u64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), core::mem::transmute(offset), core::mem::transmute(ptrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePointersVirtual)(windows_core::Interface::as_raw(self), ptrs.len().try_into().unwrap(), offset, core::mem::transmute(ptrs.as_ptr())).ok() } pub unsafe fn ReadPhysical(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadPhysical)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WritePhysical(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WritePhysical)(windows_core::Interface::as_raw(self), offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadControl(&self, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadControl)(windows_core::Interface::as_raw(self), processor, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteControl(&self, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteControl)(windows_core::Interface::as_raw(self), processor, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteIo(&self, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(addressspace), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteIo)(windows_core::Interface::as_raw(self), interfacetype, busnumber, addressspace, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadMsr(&self, msr: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadMsr)(windows_core::Interface::as_raw(self), msr, &mut result__).map(|| result__) } pub unsafe fn WriteMsr(&self, msr: u32, value: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), core::mem::transmute(msr), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).WriteMsr)(windows_core::Interface::as_raw(self), msr, value).ok() } pub unsafe fn ReadBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteBusData(&self, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteBusData)(windows_core::Interface::as_raw(self), busdatatype, busnumber, slotnumber, offset, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CheckLowMemory(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckLowMemory)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ReadDebuggerData(&self, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadDebuggerData)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadProcessorSystemData(&self, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), core::mem::transmute(index), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadProcessorSystemData)(windows_core::Interface::as_raw(self), processor, index, core::mem::transmute(buffer), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn VirtualToPhysical(&self, r#virtual: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).VirtualToPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(r#virtual), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VirtualToPhysical)(windows_core::Interface::as_raw(self), r#virtual, &mut result__).map(|| result__) } pub unsafe fn GetVirtualTranslationPhysicalOffsets(&self, r#virtual: u64, offsets: Option<&mut [u64]>, levels: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVirtualTranslationPhysicalOffsets)(windows_core::Interface::as_raw(self), core::mem::transmute(r#virtual), core::mem::transmute(offsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), offsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(levels.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetVirtualTranslationPhysicalOffsets)(windows_core::Interface::as_raw(self), r#virtual, core::mem::transmute(offsets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), offsets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(levels.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadHandleData(&self, handle: u64, datatype: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, datasize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadHandleData)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(datatype), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadHandleData)(windows_core::Interface::as_raw(self), handle, datatype, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(datasize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FillVirtual(&self, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(size), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FillVirtual)(windows_core::Interface::as_raw(self), start, size, pattern, patternsize, core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FillPhysical(&self, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FillPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(size), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FillPhysical)(windows_core::Interface::as_raw(self), start, size, pattern, patternsize, core::mem::transmute(filled.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Memory")] pub unsafe fn QueryVirtual(&self, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(info)).ok() + (windows_core::Interface::vtable(self).QueryVirtual)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(info)).ok() } #[cfg(feature = "Win32_System_SystemInformation")] pub unsafe fn ReadImageNtHeaders(&self, imagebase: u64, headers: *mut super::IMAGE_NT_HEADERS64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadImageNtHeaders)(windows_core::Interface::as_raw(self), core::mem::transmute(imagebase), core::mem::transmute(headers)).ok() + (windows_core::Interface::vtable(self).ReadImageNtHeaders)(windows_core::Interface::as_raw(self), imagebase, core::mem::transmute(headers)).ok() } pub unsafe fn ReadTagged(&self, tag: *const windows_core::GUID, offset: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, totalsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTagged)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(offset), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(totalsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTagged)(windows_core::Interface::as_raw(self), tag, offset, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(totalsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn StartEnumTagged(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StartEnumTagged)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetNextTagged(&self, handle: u64, tag: *mut windows_core::GUID, size: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextTagged)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(tag), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).GetNextTagged)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(tag), core::mem::transmute(size)).ok() } pub unsafe fn EndEnumTagged(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndEnumTagged)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndEnumTagged)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn GetOffsetInformation(&self, space: u32, which: u32, offset: u64, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOffsetInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(space), core::mem::transmute(which), core::mem::transmute(offset), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOffsetInformation)(windows_core::Interface::as_raw(self), space, which, offset, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(infosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetNextDifferentlyValidOffsetVirtual(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextDifferentlyValidOffsetVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNextDifferentlyValidOffsetVirtual)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetValidRegionVirtual(&self, base: u64, size: u32, validbase: *mut u64, validsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValidRegionVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), core::mem::transmute(validbase), core::mem::transmute(validsize)).ok() + (windows_core::Interface::vtable(self).GetValidRegionVirtual)(windows_core::Interface::as_raw(self), base, size, core::mem::transmute(validbase), core::mem::transmute(validsize)).ok() } pub unsafe fn SearchVirtual2(&self, offset: u64, length: u64, flags: u32, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchVirtual2)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(pattern), core::mem::transmute(patternsize), core::mem::transmute(patterngranularity), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SearchVirtual2)(windows_core::Interface::as_raw(self), offset, length, flags, pattern, patternsize, patterngranularity, &mut result__).map(|| result__) } pub unsafe fn ReadMultiByteStringVirtual(&self, offset: u64, maxbytes: u32, buffer: Option<&mut [u8]>, stringbytes: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadMultiByteStringVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(maxbytes), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadMultiByteStringVirtual)(windows_core::Interface::as_raw(self), offset, maxbytes, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadMultiByteStringVirtualWide(&self, offset: u64, maxbytes: u32, codepage: u32, buffer: Option<&mut [u16]>, stringbytes: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadMultiByteStringVirtualWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(maxbytes), core::mem::transmute(codepage), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadMultiByteStringVirtualWide)(windows_core::Interface::as_raw(self), offset, maxbytes, codepage, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadUnicodeStringVirtual(&self, offset: u64, maxbytes: u32, codepage: u32, buffer: Option<&mut [u8]>, stringbytes: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadUnicodeStringVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(maxbytes), core::mem::transmute(codepage), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadUnicodeStringVirtual)(windows_core::Interface::as_raw(self), offset, maxbytes, codepage, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadUnicodeStringVirtualWide(&self, offset: u64, maxbytes: u32, buffer: Option<&mut [u16]>, stringbytes: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadUnicodeStringVirtualWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(maxbytes), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadUnicodeStringVirtualWide)(windows_core::Interface::as_raw(self), offset, maxbytes, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringbytes.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadPhysical2(&self, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPhysical2)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadPhysical2)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WritePhysical2(&self, offset: u64, flags: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePhysical2)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WritePhysical2)(windows_core::Interface::as_raw(self), offset, flags, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -29598,51 +29264,51 @@ impl IDebugEventCallbacks { (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn Exception(&self, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Exception)(windows_core::Interface::as_raw(self), core::mem::transmute(exception), core::mem::transmute(firstchance)).ok() + (windows_core::Interface::vtable(self).Exception)(windows_core::Interface::as_raw(self), exception, firstchance).ok() } pub unsafe fn CreateThread(&self, handle: u64, dataoffset: u64, startoffset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateThread)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(dataoffset), core::mem::transmute(startoffset)).ok() + (windows_core::Interface::vtable(self).CreateThread)(windows_core::Interface::as_raw(self), handle, dataoffset, startoffset).ok() } pub unsafe fn ExitThread(&self, exitcode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitThread)(windows_core::Interface::as_raw(self), core::mem::transmute(exitcode)).ok() + (windows_core::Interface::vtable(self).ExitThread)(windows_core::Interface::as_raw(self), exitcode).ok() } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P4, imagename: P5, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::Result<()> where P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(imagefilehandle), core::mem::transmute(handle), core::mem::transmute(baseoffset), core::mem::transmute(modulesize), modulename.param().abi(), imagename.param().abi(), core::mem::transmute(checksum), core::mem::transmute(timedatestamp), core::mem::transmute(initialthreadhandle), core::mem::transmute(threaddataoffset), core::mem::transmute(startoffset)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.param().abi(), imagename.param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, startoffset).ok() } pub unsafe fn ExitProcess(&self, exitcode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(exitcode)).ok() + (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), exitcode).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P3, imagename: P4, checksum: u32, timedatestamp: u32) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), core::mem::transmute(imagefilehandle), core::mem::transmute(baseoffset), core::mem::transmute(modulesize), modulename.param().abi(), imagename.param().abi(), core::mem::transmute(checksum), core::mem::transmute(timedatestamp)).ok() + (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.param().abi(), imagename.param().abi(), checksum, timedatestamp).ok() } pub unsafe fn UnloadModule(&self, imagebasename: P0, baseoffset: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.param().abi(), core::mem::transmute(baseoffset)).ok() + (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.param().abi(), baseoffset).ok() } pub unsafe fn SystemError(&self, error: u32, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SystemError)(windows_core::Interface::as_raw(self), core::mem::transmute(error), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SystemError)(windows_core::Interface::as_raw(self), error, level).ok() } pub unsafe fn SessionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SessionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn ChangeDebuggeeState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeDebuggeeState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeDebuggeeState)(windows_core::Interface::as_raw(self), flags, argument).ok() } pub unsafe fn ChangeEngineState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeEngineState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeEngineState)(windows_core::Interface::as_raw(self), flags, argument).ok() } pub unsafe fn ChangeSymbolState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeSymbolState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeSymbolState)(windows_core::Interface::as_raw(self), flags, argument).ok() } } #[repr(C)] @@ -29780,51 +29446,51 @@ impl IDebugEventCallbacksWide { (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn Exception(&self, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Exception)(windows_core::Interface::as_raw(self), core::mem::transmute(exception), core::mem::transmute(firstchance)).ok() + (windows_core::Interface::vtable(self).Exception)(windows_core::Interface::as_raw(self), exception, firstchance).ok() } pub unsafe fn CreateThread(&self, handle: u64, dataoffset: u64, startoffset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateThread)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(dataoffset), core::mem::transmute(startoffset)).ok() + (windows_core::Interface::vtable(self).CreateThread)(windows_core::Interface::as_raw(self), handle, dataoffset, startoffset).ok() } pub unsafe fn ExitThread(&self, exitcode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitThread)(windows_core::Interface::as_raw(self), core::mem::transmute(exitcode)).ok() + (windows_core::Interface::vtable(self).ExitThread)(windows_core::Interface::as_raw(self), exitcode).ok() } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P4, imagename: P5, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::Result<()> where P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(imagefilehandle), core::mem::transmute(handle), core::mem::transmute(baseoffset), core::mem::transmute(modulesize), modulename.param().abi(), imagename.param().abi(), core::mem::transmute(checksum), core::mem::transmute(timedatestamp), core::mem::transmute(initialthreadhandle), core::mem::transmute(threaddataoffset), core::mem::transmute(startoffset)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.param().abi(), imagename.param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, startoffset).ok() } pub unsafe fn ExitProcess(&self, exitcode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(exitcode)).ok() + (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), exitcode).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P3, imagename: P4, checksum: u32, timedatestamp: u32) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), core::mem::transmute(imagefilehandle), core::mem::transmute(baseoffset), core::mem::transmute(modulesize), modulename.param().abi(), imagename.param().abi(), core::mem::transmute(checksum), core::mem::transmute(timedatestamp)).ok() + (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.param().abi(), imagename.param().abi(), checksum, timedatestamp).ok() } pub unsafe fn UnloadModule(&self, imagebasename: P0, baseoffset: u64) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.param().abi(), core::mem::transmute(baseoffset)).ok() + (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.param().abi(), baseoffset).ok() } pub unsafe fn SystemError(&self, error: u32, level: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SystemError)(windows_core::Interface::as_raw(self), core::mem::transmute(error), core::mem::transmute(level)).ok() + (windows_core::Interface::vtable(self).SystemError)(windows_core::Interface::as_raw(self), error, level).ok() } pub unsafe fn SessionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SessionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn ChangeDebuggeeState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeDebuggeeState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeDebuggeeState)(windows_core::Interface::as_raw(self), flags, argument).ok() } pub unsafe fn ChangeEngineState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeEngineState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeEngineState)(windows_core::Interface::as_raw(self), flags, argument).ok() } pub unsafe fn ChangeSymbolState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeSymbolState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeSymbolState)(windows_core::Interface::as_raw(self), flags, argument).ok() } } #[repr(C)] @@ -29959,54 +29625,54 @@ impl IDebugEventContextCallbacks { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.param().abi(), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.param().abi(), context, contextsize).ok() } pub unsafe fn Exception(&self, exception: *const super::EXCEPTION_RECORD64, firstchance: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Exception)(windows_core::Interface::as_raw(self), core::mem::transmute(exception), core::mem::transmute(firstchance), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).Exception)(windows_core::Interface::as_raw(self), exception, firstchance, context, contextsize).ok() } pub unsafe fn CreateThread(&self, handle: u64, dataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateThread)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(dataoffset), core::mem::transmute(startoffset), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).CreateThread)(windows_core::Interface::as_raw(self), handle, dataoffset, startoffset, context, contextsize).ok() } pub unsafe fn ExitThread(&self, exitcode: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitThread)(windows_core::Interface::as_raw(self), core::mem::transmute(exitcode), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).ExitThread)(windows_core::Interface::as_raw(self), exitcode, context, contextsize).ok() } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P4, imagename: P5, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> where P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), core::mem::transmute(imagefilehandle), core::mem::transmute(handle), core::mem::transmute(baseoffset), core::mem::transmute(modulesize), modulename.param().abi(), imagename.param().abi(), core::mem::transmute(checksum), core::mem::transmute(timedatestamp), core::mem::transmute(initialthreadhandle), core::mem::transmute(threaddataoffset), core::mem::transmute(startoffset), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.param().abi(), imagename.param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, startoffset, context, contextsize).ok() } pub unsafe fn ExitProcess(&self, exitcode: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), core::mem::transmute(exitcode), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).ExitProcess)(windows_core::Interface::as_raw(self), exitcode, context, contextsize).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P3, imagename: P4, checksum: u32, timedatestamp: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), core::mem::transmute(imagefilehandle), core::mem::transmute(baseoffset), core::mem::transmute(modulesize), modulename.param().abi(), imagename.param().abi(), core::mem::transmute(checksum), core::mem::transmute(timedatestamp), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.param().abi(), imagename.param().abi(), checksum, timedatestamp, context, contextsize).ok() } pub unsafe fn UnloadModule(&self, imagebasename: P0, baseoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.param().abi(), core::mem::transmute(baseoffset), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.param().abi(), baseoffset, context, contextsize).ok() } pub unsafe fn SystemError(&self, error: u32, level: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SystemError)(windows_core::Interface::as_raw(self), core::mem::transmute(error), core::mem::transmute(level), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).SystemError)(windows_core::Interface::as_raw(self), error, level, context, contextsize).ok() } pub unsafe fn SessionStatus(&self, status: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).SessionStatus)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn ChangeDebuggeeState(&self, flags: u32, argument: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeDebuggeeState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).ChangeDebuggeeState)(windows_core::Interface::as_raw(self), flags, argument, context, contextsize).ok() } pub unsafe fn ChangeEngineState(&self, flags: u32, argument: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeEngineState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument), core::mem::transmute(context), core::mem::transmute(contextsize)).ok() + (windows_core::Interface::vtable(self).ChangeEngineState)(windows_core::Interface::as_raw(self), flags, argument, context, contextsize).ok() } pub unsafe fn ChangeSymbolState(&self, flags: u32, argument: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeSymbolState)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(argument)).ok() + (windows_core::Interface::vtable(self).ChangeSymbolState)(windows_core::Interface::as_raw(self), flags, argument).ok() } } #[repr(C)] @@ -30149,20 +29815,20 @@ impl windows_core::RuntimeName for IDebugEventContextCallbacks {} windows_core::imp::define_interface!(IDebugFAEntryTags, IDebugFAEntryTags_Vtbl); impl IDebugFAEntryTags { pub unsafe fn GetType(&self, tag: DEBUG_FLR_PARAM_TYPE) -> FA_ENTRY_TYPE { - (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), core::mem::transmute(tag)) + (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), tag) } pub unsafe fn SetType(&self, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(entrytype)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), tag, entrytype).ok() } pub unsafe fn GetProperties(&self, tag: DEBUG_FLR_PARAM_TYPE, name: Option, namesize: Option<*mut u32>, description: Option, descsize: Option<*mut u32>, flags: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(name.unwrap_or(core::mem::zeroed())), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.unwrap_or(core::mem::zeroed())), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(name.unwrap_or(core::mem::zeroed())), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(description.unwrap_or(core::mem::zeroed())), core::mem::transmute(descsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetProperties(&self, tag: DEBUG_FLR_PARAM_TYPE, name: P1, description: P2, flags: Option) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), name.param().abi(), description.param().abi(), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), tag, name.param().abi(), description.param().abi(), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTagByName(&self, pluginid: P0, tagname: P1) -> windows_core::Result where @@ -30173,7 +29839,7 @@ impl IDebugFAEntryTags { (windows_core::Interface::vtable(self).GetTagByName)(windows_core::Interface::as_raw(self), pluginid.param().abi(), tagname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsValidTagToSet(&self, tag: DEBUG_FLR_PARAM_TYPE) -> super::super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsValidTagToSet)(windows_core::Interface::as_raw(self), core::mem::transmute(tag)) + (windows_core::Interface::vtable(self).IsValidTagToSet)(windows_core::Interface::as_raw(self), tag) } } #[repr(C)] @@ -30265,22 +29931,22 @@ impl IDebugFailureAnalysis { (windows_core::Interface::vtable(self).GetFailureCode)(windows_core::Interface::as_raw(self)) } pub unsafe fn Get(&self, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(tag)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), tag) } pub unsafe fn GetNext(&self, entry: *mut FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(tag), core::mem::transmute(tagmask)) + (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), tag, tagmask) } pub unsafe fn GetString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: &mut [u8]) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(str.as_ptr()), str.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(str.as_ptr()), str.len().try_into().unwrap()) } pub unsafe fn GetBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(buf), size) } pub unsafe fn GetUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).GetUlong)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(value)) } pub unsafe fn GetUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).GetUlong64)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(value)) } pub unsafe fn NextEntry(&self, entry: Option<*const FA_ENTRY>) -> *mut FA_ENTRY { (windows_core::Interface::vtable(self).NextEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(entry.unwrap_or(core::mem::zeroed()))) @@ -30386,22 +30052,22 @@ impl IDebugFailureAnalysis2 { (windows_core::Interface::vtable(self).GetFailureCode)(windows_core::Interface::as_raw(self)) } pub unsafe fn Get(&self, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(tag)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), tag) } pub unsafe fn GetNext(&self, entry: *const FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(tag), core::mem::transmute(tagmask)) + (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), entry, tag, tagmask) } pub unsafe fn GetString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: &mut [u8]) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(str.as_ptr()), str.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(str.as_ptr()), str.len().try_into().unwrap()) } pub unsafe fn GetBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(buf), size) } pub unsafe fn GetUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).GetUlong)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(value)) } pub unsafe fn GetUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).GetUlong64)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(value)) } pub unsafe fn NextEntry(&self, entry: Option<*const FA_ENTRY>) -> *mut FA_ENTRY { (windows_core::Interface::vtable(self).NextEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(entry.unwrap_or(core::mem::zeroed()))) @@ -30410,43 +30076,43 @@ impl IDebugFailureAnalysis2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), str.param().abi()) + (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), tag, str.param().abi()) } pub unsafe fn SetExtensionCommand(&self, tag: DEBUG_FLR_PARAM_TYPE, extension: P1) -> *mut FA_ENTRY where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), extension.param().abi()) + (windows_core::Interface::vtable(self).SetExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.param().abi()) } pub unsafe fn SetUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).SetUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).SetUlong)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn SetUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).SetUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).SetUlong64)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn SetBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(entrytype), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), tag, entrytype, buf, size) } pub unsafe fn AddString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: P1) -> *mut FA_ENTRY where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), str.param().abi()) + (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), tag, str.param().abi()) } pub unsafe fn AddExtensionCommand(&self, tag: DEBUG_FLR_PARAM_TYPE, extension: P1) -> *mut FA_ENTRY where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExtensionCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), extension.param().abi()) + (windows_core::Interface::vtable(self).AddExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.param().abi()) } pub unsafe fn AddUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).AddUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).AddUlong)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn AddUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).AddUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).AddUlong64)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn AddBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).AddBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(entrytype), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).AddBuffer)(windows_core::Interface::as_raw(self), tag, entrytype, buf, size) } pub unsafe fn GetDebugFATagControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30461,7 +30127,7 @@ impl IDebugFailureAnalysis2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), analysis.param().abi()).ok() + (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), tag, analysis.param().abi()).ok() } } #[repr(C)] @@ -30673,22 +30339,22 @@ impl IDebugFailureAnalysis3 { (windows_core::Interface::vtable(self).GetFailureCode)(windows_core::Interface::as_raw(self)) } pub unsafe fn Get(&self, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(tag)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), tag) } pub unsafe fn GetNext(&self, entry: *const FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(tag), core::mem::transmute(tagmask)) + (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), entry, tag, tagmask) } pub unsafe fn GetString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: &mut [u8]) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(str.as_ptr()), str.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(str.as_ptr()), str.len().try_into().unwrap()) } pub unsafe fn GetBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(buf), size) } pub unsafe fn GetUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).GetUlong)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(value)) } pub unsafe fn GetUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).GetUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).GetUlong64)(windows_core::Interface::as_raw(self), tag, core::mem::transmute(value)) } pub unsafe fn NextEntry(&self, entry: Option<*const FA_ENTRY>) -> *mut FA_ENTRY { (windows_core::Interface::vtable(self).NextEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(entry.unwrap_or(core::mem::zeroed()))) @@ -30697,43 +30363,43 @@ impl IDebugFailureAnalysis3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), str.param().abi()) + (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), tag, str.param().abi()) } pub unsafe fn SetExtensionCommand(&self, tag: DEBUG_FLR_PARAM_TYPE, extension: P1) -> *mut FA_ENTRY where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), extension.param().abi()) + (windows_core::Interface::vtable(self).SetExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.param().abi()) } pub unsafe fn SetUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).SetUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).SetUlong)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn SetUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).SetUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).SetUlong64)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn SetBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(entrytype), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), tag, entrytype, buf, size) } pub unsafe fn AddString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: P1) -> *mut FA_ENTRY where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), str.param().abi()) + (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), tag, str.param().abi()) } pub unsafe fn AddExtensionCommand(&self, tag: DEBUG_FLR_PARAM_TYPE, extension: P1) -> *mut FA_ENTRY where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExtensionCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), extension.param().abi()) + (windows_core::Interface::vtable(self).AddExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.param().abi()) } pub unsafe fn AddUlong(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).AddUlong)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).AddUlong)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn AddUlong64(&self, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).AddUlong64)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(value)) + (windows_core::Interface::vtable(self).AddUlong64)(windows_core::Interface::as_raw(self), tag, value) } pub unsafe fn AddBuffer(&self, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { - (windows_core::Interface::vtable(self).AddBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), core::mem::transmute(entrytype), core::mem::transmute(buf), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).AddBuffer)(windows_core::Interface::as_raw(self), tag, entrytype, buf, size) } pub unsafe fn GetDebugFATagControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -30748,7 +30414,7 @@ impl IDebugFailureAnalysis3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), core::mem::transmute(tag), analysis.param().abi()).ok() + (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), tag, analysis.param().abi()).ok() } pub unsafe fn AddThreads(&self, pdebugfailurethreadenum: P0) -> windows_core::Result<()> where @@ -30759,15 +30425,15 @@ impl IDebugFailureAnalysis3 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AttributeGet(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AttributeGet)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).AttributeGet)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn AttributeGetName(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AttributeGetName)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).AttributeGetName)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AttributeSet(&self, nindex: u32, value: &super::super::super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AttributeSet)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).AttributeSet)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(value)).ok() } pub unsafe fn BlameApplication(&self, postfix: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BlameApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(postfix)).ok() @@ -30788,23 +30454,23 @@ impl IDebugFailureAnalysis3 { (windows_core::Interface::vtable(self).BlameStitch)(windows_core::Interface::as_raw(self), pthread.param().abi(), core::mem::transmute_copy(stitch)).ok() } pub unsafe fn BlameTEB(&self, address: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BlameTEB)(windows_core::Interface::as_raw(self), core::mem::transmute(address)).ok() + (windows_core::Interface::vtable(self).BlameTEB)(windows_core::Interface::as_raw(self), address).ok() } pub unsafe fn BlameETHREAD(&self, address: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BlameETHREAD)(windows_core::Interface::as_raw(self), core::mem::transmute(address)).ok() + (windows_core::Interface::vtable(self).BlameETHREAD)(windows_core::Interface::as_raw(self), address).ok() } pub unsafe fn ProblemClassIsSet(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProblemClassIsSet)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProblemClassIsSet)(windows_core::Interface::as_raw(self), nindex, &mut result__).map(|| result__) } pub unsafe fn ProblemClassDelete(&self, nindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProblemClassDelete)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).ProblemClassDelete)(windows_core::Interface::as_raw(self), nindex).ok() } pub unsafe fn ProblemClassSet(&self, nindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProblemClassSet)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).ProblemClassSet)(windows_core::Interface::as_raw(self), nindex).ok() } pub unsafe fn ProblemClassSetBSTR(&self, nindex: u32, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProblemClassSetBSTR)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).ProblemClassSetBSTR)(windows_core::Interface::as_raw(self), nindex, core::mem::transmute_copy(value)).ok() } pub unsafe fn SetAdditionalXML(&self, key: &windows_core::BSTR, pxmldomelement: P1) -> windows_core::Result<()> where @@ -31456,7 +31122,7 @@ impl IDebugHostErrorSink { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), core::mem::transmute(errclass), core::mem::transmute(hrerror), message.param().abi()).ok() + (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errclass, hrerror, message.param().abi()).ok() } } #[repr(C)] @@ -31726,13 +31392,13 @@ impl IDebugHostMemory { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteBytes(&self, context: P0, location: Location, buffer: *const core::ffi::c_void, buffersize: u64, byteswritten: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadPointers(&self, context: P0, location: Location, pointers: &mut [u64]) -> windows_core::Result<()> where @@ -31751,7 +31417,7 @@ impl IDebugHostMemory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayStringForLocation)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), core::mem::transmute(verbose), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDisplayStringForLocation)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), verbose, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -31867,7 +31533,7 @@ windows_core::imp::interface_hierarchy!(IDebugHostModule, windows_core::IUnknown impl IDebugHostModule { pub unsafe fn GetImageName(&self, allowpath: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImageName)(windows_core::Interface::as_raw(self), core::mem::transmute(allowpath), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetImageName)(windows_core::Interface::as_raw(self), allowpath, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetBaseLocation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31885,7 +31551,7 @@ impl IDebugHostModule { } pub unsafe fn FindSymbolByRVA(&self, rva: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindSymbolByRVA)(windows_core::Interface::as_raw(self), core::mem::transmute(rva), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindSymbolByRVA)(windows_core::Interface::as_raw(self), rva, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindSymbolByName(&self, symbolname: P0) -> windows_core::Result where @@ -31994,7 +31660,7 @@ impl core::ops::Deref for IDebugHostModule2 { windows_core::imp::interface_hierarchy!(IDebugHostModule2, windows_core::IUnknown, IDebugHostSymbol, IDebugHostModule); impl IDebugHostModule2 { pub unsafe fn FindContainingSymbolByRVA(&self, rva: u64, symbol: *mut Option, offset: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindContainingSymbolByRVA)(windows_core::Interface::as_raw(self), core::mem::transmute(rva), core::mem::transmute(symbol), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).FindContainingSymbolByRVA)(windows_core::Interface::as_raw(self), rva, core::mem::transmute(symbol), core::mem::transmute(offset)).ok() } } #[repr(C)] @@ -32202,7 +31868,7 @@ impl IDebugHostSymbol { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateChildren)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSymbolKind(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32225,7 +31891,7 @@ impl IDebugHostSymbol { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), core::mem::transmute(comparisonflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } } #[repr(C)] @@ -32624,7 +32290,7 @@ impl IDebugHostType { } pub unsafe fn CreatePointerTo(&self, kind: PointerKind) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePointerTo)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePointerTo)(windows_core::Interface::as_raw(self), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetArrayDimensionality(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32651,7 +32317,7 @@ impl IDebugHostType { } pub unsafe fn GetFunctionParameterTypeAt(&self, i: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionParameterTypeAt)(windows_core::Interface::as_raw(self), core::mem::transmute(i), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFunctionParameterTypeAt)(windows_core::Interface::as_raw(self), i, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsGeneric(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32663,7 +32329,7 @@ impl IDebugHostType { } pub unsafe fn GetGenericArgumentAt(&self, i: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGenericArgumentAt)(windows_core::Interface::as_raw(self), core::mem::transmute(i), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetGenericArgumentAt)(windows_core::Interface::as_raw(self), i, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -33099,7 +32765,7 @@ windows_core::imp::define_interface!(IDebugInputCallbacks, IDebugInputCallbacks_ windows_core::imp::interface_hierarchy!(IDebugInputCallbacks, windows_core::IUnknown); impl IDebugInputCallbacks { pub unsafe fn StartInput(&self, buffersize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartInput)(windows_core::Interface::as_raw(self), core::mem::transmute(buffersize)).ok() + (windows_core::Interface::vtable(self).StartInput)(windows_core::Interface::as_raw(self), buffersize).ok() } pub unsafe fn EndInput(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndInput)(windows_core::Interface::as_raw(self)).ok() @@ -33143,7 +32809,7 @@ impl IDebugOutputCallbacks { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), text.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.param().abi()).ok() } } #[repr(C)] @@ -33174,7 +32840,7 @@ impl IDebugOutputCallbacks2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), text.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.param().abi()).ok() } pub unsafe fn GetInterestMask(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33184,7 +32850,7 @@ impl IDebugOutputCallbacks2 { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Output2)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(flags), core::mem::transmute(arg), text.param().abi()).ok() + (windows_core::Interface::vtable(self).Output2)(windows_core::Interface::as_raw(self), which, flags, arg, text.param().abi()).ok() } } #[repr(C)] @@ -33238,7 +32904,7 @@ impl IDebugOutputCallbacksWide { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), text.param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.param().abi()).ok() } } #[repr(C)] @@ -33302,7 +32968,7 @@ impl IDebugPlmClient { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(timeout), packagefullname.param().abi(), appname.param().abi(), arguments.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), appname.param().abi(), arguments.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() } } #[repr(C)] @@ -33335,14 +33001,14 @@ impl IDebugPlmClient2 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(timeout), packagefullname.param().abi(), appname.param().abi(), arguments.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), appname.param().abi(), arguments.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() } pub unsafe fn LaunchPlmBgTaskForDebugWide(&self, server: u64, timeout: u32, packagefullname: P2, backgroundtaskid: P3, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(timeout), packagefullname.param().abi(), backgroundtaskid.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), backgroundtaskid.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() } } #[repr(C)] @@ -33385,57 +33051,57 @@ impl IDebugPlmClient3 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(timeout), packagefullname.param().abi(), appname.param().abi(), arguments.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), appname.param().abi(), arguments.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() } pub unsafe fn LaunchPlmBgTaskForDebugWide(&self, server: u64, timeout: u32, packagefullname: P2, backgroundtaskid: P3, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), core::mem::transmute(timeout), packagefullname.param().abi(), backgroundtaskid.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), backgroundtaskid.param().abi(), core::mem::transmute(processid), core::mem::transmute(threadid)).ok() } pub unsafe fn QueryPlmPackageWide(&self, server: u64, packagefullname: P1, stream: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPlmPackageWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi(), stream.param().abi()).ok() + (windows_core::Interface::vtable(self).QueryPlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi(), stream.param().abi()).ok() } pub unsafe fn QueryPlmPackageList(&self, server: u64, stream: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPlmPackageList)(windows_core::Interface::as_raw(self), core::mem::transmute(server), stream.param().abi()).ok() + (windows_core::Interface::vtable(self).QueryPlmPackageList)(windows_core::Interface::as_raw(self), server, stream.param().abi()).ok() } pub unsafe fn EnablePlmPackageDebugWide(&self, server: u64, packagefullname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnablePlmPackageDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi()).ok() + (windows_core::Interface::vtable(self).EnablePlmPackageDebugWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi()).ok() } pub unsafe fn DisablePlmPackageDebugWide(&self, server: u64, packagefullname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisablePlmPackageDebugWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi()).ok() + (windows_core::Interface::vtable(self).DisablePlmPackageDebugWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi()).ok() } pub unsafe fn SuspendPlmPackageWide(&self, server: u64, packagefullname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SuspendPlmPackageWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi()).ok() + (windows_core::Interface::vtable(self).SuspendPlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi()).ok() } pub unsafe fn ResumePlmPackageWide(&self, server: u64, packagefullname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResumePlmPackageWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi()).ok() + (windows_core::Interface::vtable(self).ResumePlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi()).ok() } pub unsafe fn TerminatePlmPackageWide(&self, server: u64, packagefullname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TerminatePlmPackageWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi()).ok() + (windows_core::Interface::vtable(self).TerminatePlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi()).ok() } pub unsafe fn LaunchAndDebugPlmAppWide(&self, server: u64, packagefullname: P1, appname: P2, arguments: P3) -> windows_core::Result<()> where @@ -33443,14 +33109,14 @@ impl IDebugPlmClient3 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchAndDebugPlmAppWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi(), appname.param().abi(), arguments.param().abi()).ok() + (windows_core::Interface::vtable(self).LaunchAndDebugPlmAppWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi(), appname.param().abi(), arguments.param().abi()).ok() } pub unsafe fn ActivateAndDebugPlmBgTaskWide(&self, server: u64, packagefullname: P1, backgroundtaskid: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateAndDebugPlmBgTaskWide)(windows_core::Interface::as_raw(self), core::mem::transmute(server), packagefullname.param().abi(), backgroundtaskid.param().abi()).ok() + (windows_core::Interface::vtable(self).ActivateAndDebugPlmBgTaskWide)(windows_core::Interface::as_raw(self), server, packagefullname.param().abi(), backgroundtaskid.param().abi()).ok() } } #[repr(C)] @@ -33555,7 +33221,7 @@ impl IDebugRegisters { (windows_core::Interface::vtable(self).GetNumberRegisters)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDescription(&self, register: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, desc: Option<*mut DEBUG_REGISTER_DESCRIPTION>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desc.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), register, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desc.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetIndexByName(&self, name: P0) -> windows_core::Result where @@ -33565,19 +33231,19 @@ impl IDebugRegisters { (windows_core::Interface::vtable(self).GetIndexByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetValue(&self, register: u32, value: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), register, core::mem::transmute(value)).ok() } pub unsafe fn SetValue(&self, register: u32, value: *const DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), register, value).ok() } pub unsafe fn GetValues(&self, count: u32, indices: Option<*const u32>, start: u32, values: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).GetValues)(windows_core::Interface::as_raw(self), count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(values)).ok() } pub unsafe fn SetValues(&self, count: u32, indices: Option<*const u32>, start: u32, values: *const DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, values).ok() } pub unsafe fn OutputRegisters(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputRegisters)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputRegisters)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetInstructionOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33724,7 +33390,7 @@ impl IDebugRegisters2 { (windows_core::Interface::vtable(self).GetNumberRegisters)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDescription(&self, register: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, desc: Option<*mut DEBUG_REGISTER_DESCRIPTION>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desc.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), register, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desc.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetIndexByName(&self, name: P0) -> windows_core::Result where @@ -33734,19 +33400,19 @@ impl IDebugRegisters2 { (windows_core::Interface::vtable(self).GetIndexByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetValue(&self, register: u32, value: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), register, core::mem::transmute(value)).ok() } pub unsafe fn SetValue(&self, register: u32, value: *const DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), register, value).ok() } pub unsafe fn GetValues(&self, count: u32, indices: Option<*const u32>, start: u32, values: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).GetValues)(windows_core::Interface::as_raw(self), count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(values)).ok() } pub unsafe fn SetValues(&self, count: u32, indices: Option<*const u32>, start: u32, values: *const DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, values).ok() } pub unsafe fn OutputRegisters(&self, outputcontrol: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputRegisters)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputRegisters)(windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } pub unsafe fn GetInstructionOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33761,7 +33427,7 @@ impl IDebugRegisters2 { (windows_core::Interface::vtable(self).GetFrameOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetDescriptionWide(&self, register: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, desc: Option<*mut DEBUG_REGISTER_DESCRIPTION>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescriptionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desc.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetDescriptionWide)(windows_core::Interface::as_raw(self), register, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(desc.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetIndexByNameWide(&self, name: P0) -> windows_core::Result where @@ -33775,10 +33441,10 @@ impl IDebugRegisters2 { (windows_core::Interface::vtable(self).GetNumberPseudoRegisters)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPseudoDescription(&self, register: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, typemodule: Option<*mut u64>, typeid: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPseudoDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(typemodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(typeid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPseudoDescription)(windows_core::Interface::as_raw(self), register, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(typemodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(typeid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetPseudoDescriptionWide(&self, register: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, typemodule: Option<*mut u64>, typeid: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPseudoDescriptionWide)(windows_core::Interface::as_raw(self), core::mem::transmute(register), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(typemodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(typeid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetPseudoDescriptionWide)(windows_core::Interface::as_raw(self), register, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(typemodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(typeid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetPseudoIndexByName(&self, name: P0) -> windows_core::Result where @@ -33795,31 +33461,31 @@ impl IDebugRegisters2 { (windows_core::Interface::vtable(self).GetPseudoIndexByNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPseudoValues(&self, source: u32, count: u32, indices: Option<*const u32>, start: u32, values: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPseudoValues)(windows_core::Interface::as_raw(self), core::mem::transmute(source), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).GetPseudoValues)(windows_core::Interface::as_raw(self), source, count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(values)).ok() } pub unsafe fn SetPseudoValues(&self, source: u32, count: u32, indices: Option<*const u32>, start: u32, values: *const DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPseudoValues)(windows_core::Interface::as_raw(self), core::mem::transmute(source), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).SetPseudoValues)(windows_core::Interface::as_raw(self), source, count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, values).ok() } pub unsafe fn GetValues2(&self, source: u32, count: u32, indices: Option<*const u32>, start: u32, values: *mut DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValues2)(windows_core::Interface::as_raw(self), core::mem::transmute(source), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).GetValues2)(windows_core::Interface::as_raw(self), source, count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(values)).ok() } pub unsafe fn SetValues2(&self, source: u32, count: u32, indices: Option<*const u32>, start: u32, values: *const DEBUG_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValues2)(windows_core::Interface::as_raw(self), core::mem::transmute(source), core::mem::transmute(count), core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(values)).ok() + (windows_core::Interface::vtable(self).SetValues2)(windows_core::Interface::as_raw(self), source, count, core::mem::transmute(indices.unwrap_or(core::mem::zeroed())), start, values).ok() } pub unsafe fn OutputRegisters2(&self, outputcontrol: u32, source: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputRegisters2)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(source), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputRegisters2)(windows_core::Interface::as_raw(self), outputcontrol, source, flags).ok() } pub unsafe fn GetInstructionOffset2(&self, source: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInstructionOffset2)(windows_core::Interface::as_raw(self), core::mem::transmute(source), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInstructionOffset2)(windows_core::Interface::as_raw(self), source, &mut result__).map(|| result__) } pub unsafe fn GetStackOffset2(&self, source: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStackOffset2)(windows_core::Interface::as_raw(self), core::mem::transmute(source), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStackOffset2)(windows_core::Interface::as_raw(self), source, &mut result__).map(|| result__) } pub unsafe fn GetFrameOffset2(&self, source: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFrameOffset2)(windows_core::Interface::as_raw(self), core::mem::transmute(source), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFrameOffset2)(windows_core::Interface::as_raw(self), source, &mut result__).map(|| result__) } } #[repr(C)] @@ -34113,31 +33779,31 @@ impl IDebugSymbolGroup { (windows_core::Interface::vtable(self).RemoveSymbolByName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn RemoveSymbolByIndex(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolByIndex)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn GetSymbolName(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolParameters(&self, start: u32, params: &mut [DEBUG_SYMBOL_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSymbolParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn ExpandSymbol(&self, index: u32, expand: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(index), expand.into()).ok() + (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), index, expand.into()).ok() } pub unsafe fn OutputSymbols(&self, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbols)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(start), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).OutputSymbols)(windows_core::Interface::as_raw(self), outputcontrol, flags, start, count).ok() } pub unsafe fn WriteSymbol(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteSymbol)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn OutputAsType(&self, index: u32, r#type: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), core::mem::transmute(index), r#type.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), index, r#type.param().abi()).ok() } } #[repr(C)] @@ -34253,31 +33919,31 @@ impl IDebugSymbolGroup2 { (windows_core::Interface::vtable(self).RemoveSymbolByName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn RemoveSymbolByIndex(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolByIndex)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn GetSymbolName(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolParameters(&self, start: u32, params: &mut [DEBUG_SYMBOL_PARAMETERS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(start), params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSymbolParameters)(windows_core::Interface::as_raw(self), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() } pub unsafe fn ExpandSymbol(&self, index: u32, expand: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(index), expand.into()).ok() + (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), index, expand.into()).ok() } pub unsafe fn OutputSymbols(&self, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbols)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(start), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).OutputSymbols)(windows_core::Interface::as_raw(self), outputcontrol, flags, start, count).ok() } pub unsafe fn WriteSymbol(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteSymbol)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn OutputAsType(&self, index: u32, r#type: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), core::mem::transmute(index), r#type.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), index, r#type.param().abi()).ok() } pub unsafe fn AddSymbolWide(&self, name: P0, index: *mut u32) -> windows_core::Result<()> where @@ -34292,46 +33958,46 @@ impl IDebugSymbolGroup2 { (windows_core::Interface::vtable(self).RemoveSymbolByNameWide)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetSymbolNameWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolNameWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteSymbolWide(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSymbolWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).WriteSymbolWide)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn OutputAsTypeWide(&self, index: u32, r#type: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputAsTypeWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), r#type.param().abi()).ok() + (windows_core::Interface::vtable(self).OutputAsTypeWide)(windows_core::Interface::as_raw(self), index, r#type.param().abi()).ok() } pub unsafe fn GetSymbolTypeName(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolTypeNameWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolTypeNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeNameWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolSize(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolSize)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolSize)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetSymbolOffset(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolOffset)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetSymbolRegister(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolRegister)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolRegister)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetSymbolValueText(&self, index: u32, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolValueText)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolValueText)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolValueTextWide(&self, index: u32, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolValueTextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolValueTextWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryInformation(&self, index: u32, entry: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(entry)).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), index, core::mem::transmute(entry)).ok() } } #[repr(C)] @@ -34544,16 +34210,16 @@ impl IDebugSymbols { (windows_core::Interface::vtable(self).GetSymbolOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffset(&self, offset: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where @@ -34563,39 +34229,39 @@ impl IDebugSymbols { (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffset(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffset(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNumberModules(&self, loaded: *mut u32, unloaded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNumberModules)(windows_core::Interface::as_raw(self), core::mem::transmute(loaded), core::mem::transmute(unloaded)).ok() } pub unsafe fn GetModuleByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset(&self, offset: u64, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), offset, startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNames(&self, index: u32, base: u64, imagenamebuffer: Option<&mut [u8]>, imagenamesize: Option<*mut u32>, modulenamebuffer: Option<&mut [u8]>, modulenamesize: Option<*mut u32>, loadedimagenamebuffer: Option<&mut [u8]>, loadedimagenamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetModuleNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), - core::mem::transmute(base), + index, + base, core::mem::transmute(imagenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imagenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagenamesize.unwrap_or(core::mem::zeroed())), @@ -34609,7 +34275,7 @@ impl IDebugSymbols { .ok() } pub unsafe fn GetModuleParameters(&self, count: u32, bases: Option<*const u64>, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where @@ -34619,25 +34285,25 @@ impl IDebugSymbols { (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeName(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeSize(&self, module: u64, typeid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), module, typeid, &mut result__).map(|| result__) } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeId(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -34646,31 +34312,31 @@ impl IDebugSymbols { (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetTypeId(&self, offset: u64, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataVirtual(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn ReadTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataPhysical(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn GetScope(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScope(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn ResetScope(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetScope)(windows_core::Interface::as_raw(self)).ok() @@ -34680,7 +34346,7 @@ impl IDebugSymbols { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -34694,10 +34360,10 @@ impl IDebugSymbols { (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatch(&self, handle: u64, buffer: Option<&mut [u8]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EndSymbolMatch(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where @@ -34739,7 +34405,7 @@ impl IDebugSymbols { (windows_core::Interface::vtable(self).GetSourcePath)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElement(&self, index: u32, buffer: Option<&mut [u8]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where @@ -34757,7 +34423,7 @@ impl IDebugSymbols { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -35214,16 +34880,16 @@ impl IDebugSymbols2 { (windows_core::Interface::vtable(self).GetSymbolOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffset(&self, offset: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where @@ -35233,39 +34899,39 @@ impl IDebugSymbols2 { (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffset(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffset(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNumberModules(&self, loaded: *mut u32, unloaded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNumberModules)(windows_core::Interface::as_raw(self), core::mem::transmute(loaded), core::mem::transmute(unloaded)).ok() } pub unsafe fn GetModuleByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset(&self, offset: u64, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), offset, startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNames(&self, index: u32, base: u64, imagenamebuffer: Option<&mut [u8]>, imagenamesize: Option<*mut u32>, modulenamebuffer: Option<&mut [u8]>, modulenamesize: Option<*mut u32>, loadedimagenamebuffer: Option<&mut [u8]>, loadedimagenamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetModuleNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), - core::mem::transmute(base), + index, + base, core::mem::transmute(imagenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imagenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagenamesize.unwrap_or(core::mem::zeroed())), @@ -35279,7 +34945,7 @@ impl IDebugSymbols2 { .ok() } pub unsafe fn GetModuleParameters(&self, count: u32, bases: Option<*const u64>, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where @@ -35289,25 +34955,25 @@ impl IDebugSymbols2 { (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeName(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeSize(&self, module: u64, typeid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), module, typeid, &mut result__).map(|| result__) } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeId(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -35316,31 +34982,31 @@ impl IDebugSymbols2 { (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetTypeId(&self, offset: u64, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataVirtual(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn ReadTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataPhysical(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn GetScope(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScope(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn ResetScope(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetScope)(windows_core::Interface::as_raw(self)).ok() @@ -35350,7 +35016,7 @@ impl IDebugSymbols2 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -35364,10 +35030,10 @@ impl IDebugSymbols2 { (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatch(&self, handle: u64, buffer: Option<&mut [u8]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EndSymbolMatch(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where @@ -35409,7 +35075,7 @@ impl IDebugSymbols2 { (windows_core::Interface::vtable(self).GetSourcePath)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElement(&self, index: u32, buffer: Option<&mut [u8]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where @@ -35427,7 +35093,7 @@ impl IDebugSymbols2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -35439,29 +35105,29 @@ impl IDebugSymbols2 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameString(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantName(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldName(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTypeOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } } #[repr(C)] @@ -35974,16 +35640,16 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetSymbolOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffset(&self, offset: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where @@ -35993,39 +35659,39 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffset(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffset(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNumberModules(&self, loaded: *mut u32, unloaded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNumberModules)(windows_core::Interface::as_raw(self), core::mem::transmute(loaded), core::mem::transmute(unloaded)).ok() } pub unsafe fn GetModuleByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset(&self, offset: u64, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), offset, startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNames(&self, index: u32, base: u64, imagenamebuffer: Option<&mut [u8]>, imagenamesize: Option<*mut u32>, modulenamebuffer: Option<&mut [u8]>, modulenamesize: Option<*mut u32>, loadedimagenamebuffer: Option<&mut [u8]>, loadedimagenamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetModuleNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), - core::mem::transmute(base), + index, + base, core::mem::transmute(imagenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imagenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagenamesize.unwrap_or(core::mem::zeroed())), @@ -36039,7 +35705,7 @@ impl IDebugSymbols3 { .ok() } pub unsafe fn GetModuleParameters(&self, count: u32, bases: Option<*const u64>, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where @@ -36049,25 +35715,25 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeName(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeSize(&self, module: u64, typeid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), module, typeid, &mut result__).map(|| result__) } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeId(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -36076,31 +35742,31 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetTypeId(&self, offset: u64, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataVirtual(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn ReadTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataPhysical(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn GetScope(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScope(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn ResetScope(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetScope)(windows_core::Interface::as_raw(self)).ok() @@ -36110,7 +35776,7 @@ impl IDebugSymbols3 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36124,10 +35790,10 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatch(&self, handle: u64, buffer: Option<&mut [u8]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EndSymbolMatch(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where @@ -36169,7 +35835,7 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetSourcePath)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElement(&self, index: u32, buffer: Option<&mut [u8]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where @@ -36187,7 +35853,7 @@ impl IDebugSymbols3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -36199,32 +35865,32 @@ impl IDebugSymbols3 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameString(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantName(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldName(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTypeOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffsetWide(&self, offset: u64, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffsetWide)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByNameWide(&self, symbol: P0) -> windows_core::Result where @@ -36234,23 +35900,23 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetOffsetByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffsetWide(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffsetWide)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffsetWide(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u16]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffsetWide)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLineWide(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleNameWide(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolModuleWide(&self, symbol: P0) -> windows_core::Result where @@ -36260,21 +35926,21 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetSymbolModuleWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeNameWide(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeNameWide)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeIdWide(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetFieldOffsetWide(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeIdWide(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -36287,7 +35953,7 @@ impl IDebugSymbols3 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36301,7 +35967,7 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).StartSymbolMatchWide)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatchWide(&self, handle: u64, buffer: Option<&mut [u16]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatchWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatchWide)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReloadWide(&self, module: P0) -> windows_core::Result<()> where @@ -36343,7 +36009,7 @@ impl IDebugSymbols3 { (windows_core::Interface::vtable(self).GetSourcePathWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElementWide(&self, index: u32, buffer: Option<&mut [u16]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElementWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElementWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePathWide(&self, path: P0) -> windows_core::Result<()> where @@ -36361,7 +36027,7 @@ impl IDebugSymbols3 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsetsWide(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -36373,159 +36039,159 @@ impl IDebugSymbols3 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameStringWide(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameStringWide)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantNameWide(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantNameWide)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldNameWide(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldNameWide)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsManagedModule(&self, index: u32, base: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsManagedModule)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base)).ok() + (windows_core::Interface::vtable(self).IsManagedModule)(windows_core::Interface::as_raw(self), index, base).ok() } pub unsafe fn GetModuleByModuleName2(&self, name: P0, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByModuleName2Wide(&self, name: P0, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset2(&self, offset: u64, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset2)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset2)(windows_core::Interface::as_raw(self), offset, startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticModule(&self, base: u64, size: u32, imagepath: P2, modulename: P3, flags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), imagepath.param().abi(), modulename.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), base, size, imagepath.param().abi(), modulename.param().abi(), flags).ok() } pub unsafe fn AddSyntheticModuleWide(&self, base: u64, size: u32, imagepath: P2, modulename: P3, flags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), imagepath.param().abi(), modulename.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), base, size, imagepath.param().abi(), modulename.param().abi(), flags).ok() } pub unsafe fn RemoveSyntheticModule(&self, base: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSyntheticModule)(windows_core::Interface::as_raw(self), core::mem::transmute(base)).ok() + (windows_core::Interface::vtable(self).RemoveSyntheticModule)(windows_core::Interface::as_raw(self), base).ok() } pub unsafe fn GetCurrentScopeFrameIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentScopeFrameIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScopeFrameByIndex(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFrameByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetScopeFrameByIndex)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetScopeFromJitDebugInfo(&self, outputcontrol: u32, infooffset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFromJitDebugInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(infooffset)).ok() + (windows_core::Interface::vtable(self).SetScopeFromJitDebugInfo)(windows_core::Interface::as_raw(self), outputcontrol, infooffset).ok() } pub unsafe fn SetScopeFromStoredEvent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetScopeFromStoredEvent)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputSymbolByOffset(&self, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbolByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).OutputSymbolByOffset)(windows_core::Interface::as_raw(self), outputcontrol, flags, offset).ok() } pub unsafe fn GetFunctionEntryByOffset(&self, offset: u64, flags: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bufferneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionEntryByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFunctionEntryByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldTypeAndOffset(&self, module: u64, containertypeid: u32, field: P2, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(containertypeid), field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldTypeAndOffsetWide(&self, module: u64, containertypeid: u32, field: P2, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(containertypeid), field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticSymbol(&self, offset: u64, size: u32, name: P2, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(size), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), offset, size, name.param().abi(), flags, core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticSymbolWide(&self, offset: u64, size: u32, name: P2, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(size), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), offset, size, name.param().abi(), flags, core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemoveSyntheticSymbol(&self, id: *const DEBUG_MODULE_AND_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSyntheticSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).RemoveSyntheticSymbol)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetSymbolEntriesByOffset(&self, offset: u64, flags: u32, ids: Option<*mut DEBUG_MODULE_AND_ID>, displacements: Option<*mut u64>, idscount: u32, entries: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntriesByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacements.unwrap_or(core::mem::zeroed())), core::mem::transmute(idscount), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacements.unwrap_or(core::mem::zeroed())), idscount, core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntriesByName(&self, symbol: P0, flags: u32, ids: Option<&mut [DEBUG_MODULE_AND_ID]>, entries: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(flags), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), flags, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntriesByNameWide(&self, symbol: P0, flags: u32, ids: Option<&mut [DEBUG_MODULE_AND_ID]>, entries: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(flags), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), flags, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryByToken(&self, modulebase: u64, token: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolEntryByToken)(windows_core::Interface::as_raw(self), core::mem::transmute(modulebase), core::mem::transmute(token), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolEntryByToken)(windows_core::Interface::as_raw(self), modulebase, token, &mut result__).map(|| result__) } pub unsafe fn GetSymbolEntryInformation(&self, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(info)).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), id, core::mem::transmute(info)).ok() } pub unsafe fn GetSymbolEntryString(&self, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryString)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryString)(windows_core::Interface::as_raw(self), id, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryStringWide(&self, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryStringWide)(windows_core::Interface::as_raw(self), id, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryOffsetRegions(&self, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: Option<&mut [DEBUG_OFFSET_REGION]>, regionsavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryOffsetRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(flags), core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryOffsetRegions)(windows_core::Interface::as_raw(self), id, flags, core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryBySymbolEntry(&self, fromid: *const DEBUG_MODULE_AND_ID, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolEntryBySymbolEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(fromid), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolEntryBySymbolEntry)(windows_core::Interface::as_raw(self), fromid, flags, &mut result__).map(|| result__) } pub unsafe fn GetSourceEntriesByOffset(&self, offset: u64, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntriesByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntriesByLine(&self, line: u32, file: P1, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntriesByLineWide(&self, line: u32, file: P1, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), line, file.param().abi(), flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryString(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryString)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryString)(windows_core::Interface::as_raw(self), entry, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryStringWide(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryStringWide)(windows_core::Interface::as_raw(self), entry, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryOffsetRegions(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: Option<&mut [DEBUG_OFFSET_REGION]>, regionsavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryOffsetRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(flags), core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryOffsetRegions)(windows_core::Interface::as_raw(self), entry, flags, core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryBySourceEntry(&self, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(fromentry), core::mem::transmute(flags), core::mem::transmute(toentry)).ok() + (windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(windows_core::Interface::as_raw(self), fromentry, flags, core::mem::transmute(toentry)).ok() } } #[repr(C)] @@ -37566,16 +37232,16 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetSymbolOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffset(&self, offset: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where @@ -37585,39 +37251,39 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffset(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffset(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNumberModules(&self, loaded: *mut u32, unloaded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNumberModules)(windows_core::Interface::as_raw(self), core::mem::transmute(loaded), core::mem::transmute(unloaded)).ok() } pub unsafe fn GetModuleByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset(&self, offset: u64, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), offset, startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNames(&self, index: u32, base: u64, imagenamebuffer: Option<&mut [u8]>, imagenamesize: Option<*mut u32>, modulenamebuffer: Option<&mut [u8]>, modulenamesize: Option<*mut u32>, loadedimagenamebuffer: Option<&mut [u8]>, loadedimagenamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetModuleNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), - core::mem::transmute(base), + index, + base, core::mem::transmute(imagenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imagenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagenamesize.unwrap_or(core::mem::zeroed())), @@ -37631,7 +37297,7 @@ impl IDebugSymbols4 { .ok() } pub unsafe fn GetModuleParameters(&self, count: u32, bases: Option<*const u64>, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where @@ -37641,25 +37307,25 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeName(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeSize(&self, module: u64, typeid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), module, typeid, &mut result__).map(|| result__) } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeId(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -37668,31 +37334,31 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetTypeId(&self, offset: u64, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataVirtual(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn ReadTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataPhysical(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn GetScope(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScope(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn ResetScope(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetScope)(windows_core::Interface::as_raw(self)).ok() @@ -37702,7 +37368,7 @@ impl IDebugSymbols4 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -37716,10 +37382,10 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatch(&self, handle: u64, buffer: Option<&mut [u8]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EndSymbolMatch(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where @@ -37761,7 +37427,7 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetSourcePath)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElement(&self, index: u32, buffer: Option<&mut [u8]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where @@ -37779,7 +37445,7 @@ impl IDebugSymbols4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -37791,32 +37457,32 @@ impl IDebugSymbols4 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameString(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantName(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldName(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTypeOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffsetWide(&self, offset: u64, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffsetWide)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByNameWide(&self, symbol: P0) -> windows_core::Result where @@ -37826,23 +37492,23 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetOffsetByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffsetWide(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffsetWide)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffsetWide(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u16]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffsetWide)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLineWide(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleNameWide(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolModuleWide(&self, symbol: P0) -> windows_core::Result where @@ -37852,21 +37518,21 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetSymbolModuleWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeNameWide(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeNameWide)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeIdWide(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetFieldOffsetWide(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeIdWide(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -37879,7 +37545,7 @@ impl IDebugSymbols4 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -37893,7 +37559,7 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).StartSymbolMatchWide)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatchWide(&self, handle: u64, buffer: Option<&mut [u16]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatchWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatchWide)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReloadWide(&self, module: P0) -> windows_core::Result<()> where @@ -37935,7 +37601,7 @@ impl IDebugSymbols4 { (windows_core::Interface::vtable(self).GetSourcePathWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElementWide(&self, index: u32, buffer: Option<&mut [u16]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElementWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElementWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePathWide(&self, path: P0) -> windows_core::Result<()> where @@ -37953,7 +37619,7 @@ impl IDebugSymbols4 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsetsWide(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -37965,180 +37631,180 @@ impl IDebugSymbols4 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameStringWide(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameStringWide)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantNameWide(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantNameWide)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldNameWide(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldNameWide)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsManagedModule(&self, index: u32, base: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsManagedModule)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base)).ok() + (windows_core::Interface::vtable(self).IsManagedModule)(windows_core::Interface::as_raw(self), index, base).ok() } pub unsafe fn GetModuleByModuleName2(&self, name: P0, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByModuleName2Wide(&self, name: P0, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset2(&self, offset: u64, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset2)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset2)(windows_core::Interface::as_raw(self), offset, startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticModule(&self, base: u64, size: u32, imagepath: P2, modulename: P3, flags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), imagepath.param().abi(), modulename.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), base, size, imagepath.param().abi(), modulename.param().abi(), flags).ok() } pub unsafe fn AddSyntheticModuleWide(&self, base: u64, size: u32, imagepath: P2, modulename: P3, flags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), imagepath.param().abi(), modulename.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), base, size, imagepath.param().abi(), modulename.param().abi(), flags).ok() } pub unsafe fn RemoveSyntheticModule(&self, base: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSyntheticModule)(windows_core::Interface::as_raw(self), core::mem::transmute(base)).ok() + (windows_core::Interface::vtable(self).RemoveSyntheticModule)(windows_core::Interface::as_raw(self), base).ok() } pub unsafe fn GetCurrentScopeFrameIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentScopeFrameIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScopeFrameByIndex(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFrameByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetScopeFrameByIndex)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetScopeFromJitDebugInfo(&self, outputcontrol: u32, infooffset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFromJitDebugInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(infooffset)).ok() + (windows_core::Interface::vtable(self).SetScopeFromJitDebugInfo)(windows_core::Interface::as_raw(self), outputcontrol, infooffset).ok() } pub unsafe fn SetScopeFromStoredEvent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetScopeFromStoredEvent)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputSymbolByOffset(&self, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbolByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).OutputSymbolByOffset)(windows_core::Interface::as_raw(self), outputcontrol, flags, offset).ok() } pub unsafe fn GetFunctionEntryByOffset(&self, offset: u64, flags: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bufferneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionEntryByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFunctionEntryByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldTypeAndOffset(&self, module: u64, containertypeid: u32, field: P2, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(containertypeid), field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldTypeAndOffsetWide(&self, module: u64, containertypeid: u32, field: P2, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(containertypeid), field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticSymbol(&self, offset: u64, size: u32, name: P2, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(size), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), offset, size, name.param().abi(), flags, core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticSymbolWide(&self, offset: u64, size: u32, name: P2, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(size), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), offset, size, name.param().abi(), flags, core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemoveSyntheticSymbol(&self, id: *const DEBUG_MODULE_AND_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSyntheticSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).RemoveSyntheticSymbol)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetSymbolEntriesByOffset(&self, offset: u64, flags: u32, ids: Option<*mut DEBUG_MODULE_AND_ID>, displacements: Option<*mut u64>, idscount: u32, entries: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntriesByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacements.unwrap_or(core::mem::zeroed())), core::mem::transmute(idscount), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacements.unwrap_or(core::mem::zeroed())), idscount, core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntriesByName(&self, symbol: P0, flags: u32, ids: Option<&mut [DEBUG_MODULE_AND_ID]>, entries: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(flags), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), flags, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntriesByNameWide(&self, symbol: P0, flags: u32, ids: Option<&mut [DEBUG_MODULE_AND_ID]>, entries: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(flags), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), flags, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryByToken(&self, modulebase: u64, token: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolEntryByToken)(windows_core::Interface::as_raw(self), core::mem::transmute(modulebase), core::mem::transmute(token), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolEntryByToken)(windows_core::Interface::as_raw(self), modulebase, token, &mut result__).map(|| result__) } pub unsafe fn GetSymbolEntryInformation(&self, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(info)).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), id, core::mem::transmute(info)).ok() } pub unsafe fn GetSymbolEntryString(&self, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryString)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryString)(windows_core::Interface::as_raw(self), id, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryStringWide(&self, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryStringWide)(windows_core::Interface::as_raw(self), id, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryOffsetRegions(&self, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: Option<&mut [DEBUG_OFFSET_REGION]>, regionsavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryOffsetRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(flags), core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryOffsetRegions)(windows_core::Interface::as_raw(self), id, flags, core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryBySymbolEntry(&self, fromid: *const DEBUG_MODULE_AND_ID, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolEntryBySymbolEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(fromid), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolEntryBySymbolEntry)(windows_core::Interface::as_raw(self), fromid, flags, &mut result__).map(|| result__) } pub unsafe fn GetSourceEntriesByOffset(&self, offset: u64, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntriesByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntriesByLine(&self, line: u32, file: P1, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntriesByLineWide(&self, line: u32, file: P1, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), line, file.param().abi(), flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryString(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryString)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryString)(windows_core::Interface::as_raw(self), entry, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryStringWide(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryStringWide)(windows_core::Interface::as_raw(self), entry, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryOffsetRegions(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: Option<&mut [DEBUG_OFFSET_REGION]>, regionsavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryOffsetRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(flags), core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryOffsetRegions)(windows_core::Interface::as_raw(self), entry, flags, core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryBySourceEntry(&self, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(fromentry), core::mem::transmute(flags), core::mem::transmute(toentry)).ok() + (windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(windows_core::Interface::as_raw(self), fromentry, flags, core::mem::transmute(toentry)).ok() } pub unsafe fn GetScopeEx(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME_EX>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScopeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScopeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScopeEx(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME_EX>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScopeEx)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn GetNameByInlineContext(&self, offset: u64, inlinecontext: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByInlineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByInlineContext)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetNameByInlineContextWide(&self, offset: u64, inlinecontext: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByInlineContextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByInlineContextWide)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByInlineContext(&self, offset: u64, inlinecontext: u32, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByInlineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByInlineContext)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByInlineContextWide(&self, offset: u64, inlinecontext: u32, line: Option<*mut u32>, filebuffer: Option<&mut [u16]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByInlineContextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByInlineContextWide)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputSymbolByInlineContext(&self, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbolByInlineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(offset), core::mem::transmute(inlinecontext)).ok() + (windows_core::Interface::vtable(self).OutputSymbolByInlineContext)(windows_core::Interface::as_raw(self), outputcontrol, flags, offset, inlinecontext).ok() } } #[repr(C)] @@ -39228,16 +38894,16 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetSymbolOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetSymbolOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetSymbolOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffset(&self, offset: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where @@ -39247,39 +38913,39 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffset(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffset)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffset(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffset)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNumberModules(&self, loaded: *mut u32, unloaded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNumberModules)(windows_core::Interface::as_raw(self), core::mem::transmute(loaded), core::mem::transmute(unloaded)).ok() } pub unsafe fn GetModuleByIndex(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModuleByIndex)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset(&self, offset: u64, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset)(windows_core::Interface::as_raw(self), offset, startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNames(&self, index: u32, base: u64, imagenamebuffer: Option<&mut [u8]>, imagenamesize: Option<*mut u32>, modulenamebuffer: Option<&mut [u8]>, modulenamesize: Option<*mut u32>, loadedimagenamebuffer: Option<&mut [u8]>, loadedimagenamesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetModuleNames)( windows_core::Interface::as_raw(self), - core::mem::transmute(index), - core::mem::transmute(base), + index, + base, core::mem::transmute(imagenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), imagenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagenamesize.unwrap_or(core::mem::zeroed())), @@ -39293,7 +38959,7 @@ impl IDebugSymbols5 { .ok() } pub unsafe fn GetModuleParameters(&self, count: u32, bases: Option<*const u64>, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(count), core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), core::mem::transmute(start), core::mem::transmute(params)).ok() + (windows_core::Interface::vtable(self).GetModuleParameters)(windows_core::Interface::as_raw(self), count, core::mem::transmute(bases.unwrap_or(core::mem::zeroed())), start, core::mem::transmute(params)).ok() } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where @@ -39303,25 +38969,25 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeName(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeName)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeSize(&self, module: u64, typeid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeSize)(windows_core::Interface::as_raw(self), module, typeid, &mut result__).map(|| result__) } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeId(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -39330,31 +38996,31 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetTypeId(&self, offset: u64, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetOffsetTypeId)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(typeid), core::mem::transmute(module.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReadTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataVirtual(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataVirtual)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataVirtual(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataVirtual)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn ReadTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReadTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn WriteTypedDataPhysical(&self, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).WriteTypedDataPhysical)(windows_core::Interface::as_raw(self), offset, module, typeid, buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputTypedDataPhysical(&self, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(offset), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).OutputTypedDataPhysical)(windows_core::Interface::as_raw(self), outputcontrol, offset, module, typeid, flags).ok() } pub unsafe fn GetScope(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScope(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn ResetScope(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetScope)(windows_core::Interface::as_raw(self)).ok() @@ -39364,7 +39030,7 @@ impl IDebugSymbols5 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -39378,10 +39044,10 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatch(&self, handle: u64, buffer: Option<&mut [u8]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatch)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn EndSymbolMatch(&self, handle: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), core::mem::transmute(handle)).ok() + (windows_core::Interface::vtable(self).EndSymbolMatch)(windows_core::Interface::as_raw(self), handle).ok() } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where @@ -39423,7 +39089,7 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetSourcePath)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElement(&self, index: u32, buffer: Option<&mut [u8]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElement)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where @@ -39441,7 +39107,7 @@ impl IDebugSymbols5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -39453,32 +39119,32 @@ impl IDebugSymbols5 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameString(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameString)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantName(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantName)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldName(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldName)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTypeOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).AddTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn RemoveTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).RemoveTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn SetTypeOptions(&self, options: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetTypeOptions)(windows_core::Interface::as_raw(self), options).ok() } pub unsafe fn GetNameByOffsetWide(&self, offset: u64, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByOffsetWide)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByNameWide(&self, symbol: P0) -> windows_core::Result where @@ -39488,23 +39154,23 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetOffsetByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNearNameByOffsetWide(&self, offset: u64, delta: i32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNearNameByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(delta), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNearNameByOffsetWide)(windows_core::Interface::as_raw(self), offset, delta, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByOffsetWide(&self, offset: u64, line: Option<*mut u32>, filebuffer: Option<&mut [u16]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByOffsetWide)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetOffsetByLineWide(&self, line: u32, file: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), line, file.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetModuleByModuleNameWide(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolModuleWide(&self, symbol: P0) -> windows_core::Result where @@ -39514,21 +39180,21 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetSymbolModuleWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTypeNameWide(&self, module: u64, typeid: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTypeNameWide)(windows_core::Interface::as_raw(self), module, typeid, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetTypeIdWide(&self, module: u64, name: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), name.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), module, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetFieldOffsetWide(&self, module: u64, typeid: u32, field: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), field.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), module, typeid, field.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSymbolTypeIdWide(&self, symbol: P0, typeid: *mut u32, module: Option<*mut u64>) -> windows_core::Result<()> where @@ -39541,7 +39207,7 @@ impl IDebugSymbols5 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), flags, update.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSymbolGroup2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -39555,7 +39221,7 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).StartSymbolMatchWide)(windows_core::Interface::as_raw(self), pattern.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNextSymbolMatchWide(&self, handle: u64, buffer: Option<&mut [u16]>, matchsize: Option<*mut u32>, offset: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextSymbolMatchWide)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNextSymbolMatchWide)(windows_core::Interface::as_raw(self), handle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(matchsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReloadWide(&self, module: P0) -> windows_core::Result<()> where @@ -39597,7 +39263,7 @@ impl IDebugSymbols5 { (windows_core::Interface::vtable(self).GetSourcePathWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pathsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourcePathElementWide(&self, index: u32, buffer: Option<&mut [u16]>, elementsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourcePathElementWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourcePathElementWide)(windows_core::Interface::as_raw(self), index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(elementsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetSourcePathWide(&self, path: P0) -> windows_core::Result<()> where @@ -39615,7 +39281,7 @@ impl IDebugSymbols5 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(startelement), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(foundsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceFileLineOffsetsWide(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where @@ -39627,187 +39293,187 @@ impl IDebugSymbols5 { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base), item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(verinfosize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleNameStringWide(&self, which: u32, index: u32, base: u64, buffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleNameStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(index), core::mem::transmute(base), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleNameStringWide)(windows_core::Interface::as_raw(self), which, index, base, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetConstantNameWide(&self, module: u64, typeid: u32, value: u64, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConstantNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(value), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConstantNameWide)(windows_core::Interface::as_raw(self), module, typeid, value, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldNameWide(&self, module: u64, typeid: u32, fieldindex: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldNameWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(typeid), core::mem::transmute(fieldindex), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldNameWide)(windows_core::Interface::as_raw(self), module, typeid, fieldindex, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn IsManagedModule(&self, index: u32, base: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsManagedModule)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(base)).ok() + (windows_core::Interface::vtable(self).IsManagedModule)(windows_core::Interface::as_raw(self), index, base).ok() } pub unsafe fn GetModuleByModuleName2(&self, name: P0, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByModuleName2Wide(&self, name: P0, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetModuleByOffset2(&self, offset: u64, startindex: u32, flags: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleByOffset2)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(startindex), core::mem::transmute(flags), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetModuleByOffset2)(windows_core::Interface::as_raw(self), offset, startindex, flags, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(base.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticModule(&self, base: u64, size: u32, imagepath: P2, modulename: P3, flags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), imagepath.param().abi(), modulename.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), base, size, imagepath.param().abi(), modulename.param().abi(), flags).ok() } pub unsafe fn AddSyntheticModuleWide(&self, base: u64, size: u32, imagepath: P2, modulename: P3, flags: u32) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), core::mem::transmute(base), core::mem::transmute(size), imagepath.param().abi(), modulename.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), base, size, imagepath.param().abi(), modulename.param().abi(), flags).ok() } pub unsafe fn RemoveSyntheticModule(&self, base: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSyntheticModule)(windows_core::Interface::as_raw(self), core::mem::transmute(base)).ok() + (windows_core::Interface::vtable(self).RemoveSyntheticModule)(windows_core::Interface::as_raw(self), base).ok() } pub unsafe fn GetCurrentScopeFrameIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentScopeFrameIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScopeFrameByIndex(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFrameByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetScopeFrameByIndex)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn SetScopeFromJitDebugInfo(&self, outputcontrol: u32, infooffset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFromJitDebugInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(infooffset)).ok() + (windows_core::Interface::vtable(self).SetScopeFromJitDebugInfo)(windows_core::Interface::as_raw(self), outputcontrol, infooffset).ok() } pub unsafe fn SetScopeFromStoredEvent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetScopeFromStoredEvent)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OutputSymbolByOffset(&self, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbolByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).OutputSymbolByOffset)(windows_core::Interface::as_raw(self), outputcontrol, flags, offset).ok() } pub unsafe fn GetFunctionEntryByOffset(&self, offset: u64, flags: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, bufferneeded: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFunctionEntryByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFunctionEntryByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bufferneeded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldTypeAndOffset(&self, module: u64, containertypeid: u32, field: P2, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(containertypeid), field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetFieldTypeAndOffsetWide(&self, module: u64, containertypeid: u32, field: P2, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), core::mem::transmute(module), core::mem::transmute(containertypeid), field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(core::mem::zeroed())), core::mem::transmute(offset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticSymbol(&self, offset: u64, size: u32, name: P2, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(size), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), offset, size, name.param().abi(), flags, core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AddSyntheticSymbolWide(&self, offset: u64, size: u32, name: P2, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(size), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), offset, size, name.param().abi(), flags, core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemoveSyntheticSymbol(&self, id: *const DEBUG_MODULE_AND_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSyntheticSymbol)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).RemoveSyntheticSymbol)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetSymbolEntriesByOffset(&self, offset: u64, flags: u32, ids: Option<*mut DEBUG_MODULE_AND_ID>, displacements: Option<*mut u64>, idscount: u32, entries: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntriesByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacements.unwrap_or(core::mem::zeroed())), core::mem::transmute(idscount), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacements.unwrap_or(core::mem::zeroed())), idscount, core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntriesByName(&self, symbol: P0, flags: u32, ids: Option<&mut [DEBUG_MODULE_AND_ID]>, entries: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(flags), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.param().abi(), flags, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntriesByNameWide(&self, symbol: P0, flags: u32, ids: Option<&mut [DEBUG_MODULE_AND_ID]>, entries: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), core::mem::transmute(flags), core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), flags, core::mem::transmute(ids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entries.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryByToken(&self, modulebase: u64, token: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolEntryByToken)(windows_core::Interface::as_raw(self), core::mem::transmute(modulebase), core::mem::transmute(token), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolEntryByToken)(windows_core::Interface::as_raw(self), modulebase, token, &mut result__).map(|| result__) } pub unsafe fn GetSymbolEntryInformation(&self, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(info)).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryInformation)(windows_core::Interface::as_raw(self), id, core::mem::transmute(info)).ok() } pub unsafe fn GetSymbolEntryString(&self, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryString)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryString)(windows_core::Interface::as_raw(self), id, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryStringWide(&self, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryStringWide)(windows_core::Interface::as_raw(self), id, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryOffsetRegions(&self, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: Option<&mut [DEBUG_OFFSET_REGION]>, regionsavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSymbolEntryOffsetRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(flags), core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSymbolEntryOffsetRegions)(windows_core::Interface::as_raw(self), id, flags, core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSymbolEntryBySymbolEntry(&self, fromid: *const DEBUG_MODULE_AND_ID, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolEntryBySymbolEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(fromid), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSymbolEntryBySymbolEntry)(windows_core::Interface::as_raw(self), fromid, flags, &mut result__).map(|| result__) } pub unsafe fn GetSourceEntriesByOffset(&self, offset: u64, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntriesByOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByOffset)(windows_core::Interface::as_raw(self), offset, flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntriesByLine(&self, line: u32, file: P1, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), line, file.param().abi(), flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntriesByLineWide(&self, line: u32, file: P1, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), core::mem::transmute(line), file.param().abi(), core::mem::transmute(flags), core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), line, file.param().abi(), flags, core::mem::transmute(entries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), entries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(entriesavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryString(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: Option<&mut [u8]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryString)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryString)(windows_core::Interface::as_raw(self), entry, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryStringWide(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryStringWide)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(which), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryStringWide)(windows_core::Interface::as_raw(self), entry, which, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringsize.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryOffsetRegions(&self, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: Option<&mut [DEBUG_OFFSET_REGION]>, regionsavail: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryOffsetRegions)(windows_core::Interface::as_raw(self), core::mem::transmute(entry), core::mem::transmute(flags), core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceEntryOffsetRegions)(windows_core::Interface::as_raw(self), entry, flags, core::mem::transmute(regions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), regions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(regionsavail.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetSourceEntryBySourceEntry(&self, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(fromentry), core::mem::transmute(flags), core::mem::transmute(toentry)).ok() + (windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(windows_core::Interface::as_raw(self), fromentry, flags, core::mem::transmute(toentry)).ok() } pub unsafe fn GetScopeEx(&self, instructionoffset: Option<*mut u64>, scopeframe: Option<*mut DEBUG_STACK_FRAME_EX>, scopecontext: Option<*mut core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScopeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).GetScopeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn SetScopeEx(&self, instructionoffset: u64, scopeframe: Option<*const DEBUG_STACK_FRAME_EX>, scopecontext: Option<*const core::ffi::c_void>, scopecontextsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(instructionoffset), core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontextsize)).ok() + (windows_core::Interface::vtable(self).SetScopeEx)(windows_core::Interface::as_raw(self), instructionoffset, core::mem::transmute(scopeframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(scopecontext.unwrap_or(core::mem::zeroed())), scopecontextsize).ok() } pub unsafe fn GetNameByInlineContext(&self, offset: u64, inlinecontext: u32, namebuffer: Option<&mut [u8]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByInlineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByInlineContext)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetNameByInlineContextWide(&self, offset: u64, inlinecontext: u32, namebuffer: Option<&mut [u16]>, namesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameByInlineContextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetNameByInlineContextWide)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(namebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), namebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByInlineContext(&self, offset: u64, inlinecontext: u32, line: Option<*mut u32>, filebuffer: Option<&mut [u8]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByInlineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByInlineContext)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLineByInlineContextWide(&self, offset: u64, inlinecontext: u32, line: Option<*mut u32>, filebuffer: Option<&mut [u16]>, filesize: Option<*mut u32>, displacement: Option<*mut u64>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLineByInlineContextWide)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(inlinecontext), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetLineByInlineContextWide)(windows_core::Interface::as_raw(self), offset, inlinecontext, core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(filebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), filebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(filesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn OutputSymbolByInlineContext(&self, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OutputSymbolByInlineContext)(windows_core::Interface::as_raw(self), core::mem::transmute(outputcontrol), core::mem::transmute(flags), core::mem::transmute(offset), core::mem::transmute(inlinecontext)).ok() + (windows_core::Interface::vtable(self).OutputSymbolByInlineContext)(windows_core::Interface::as_raw(self), outputcontrol, flags, offset, inlinecontext).ok() } pub unsafe fn GetCurrentScopeFrameIndexEx(&self, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentScopeFrameIndexEx)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrentScopeFrameIndexEx)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| result__) } pub unsafe fn SetScopeFrameByIndexEx(&self, flags: u32, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopeFrameByIndexEx)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetScopeFrameByIndexEx)(windows_core::Interface::as_raw(self), flags, index).ok() } } #[repr(C)] @@ -40925,14 +40591,14 @@ impl IDebugSystemObjects { (windows_core::Interface::vtable(self).GetCurrentThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentThreadId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetCurrentProcessId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentProcessId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentProcessId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetNumberThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40942,11 +40608,11 @@ impl IDebugSystemObjects { (windows_core::Interface::vtable(self).GetTotalNumberThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(total), core::mem::transmute(largestprocess)).ok() } pub unsafe fn GetThreadIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetThreadIdByProcessor(&self, processor: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), processor, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40954,7 +40620,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetThreadIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadTeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40962,7 +40628,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetThreadIdByTeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40970,7 +40636,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetThreadIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40978,14 +40644,14 @@ impl IDebugSystemObjects { } pub unsafe fn GetThreadIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetNumberProcesses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberProcesses)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetProcessIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40993,7 +40659,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetProcessIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessPeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41001,7 +40667,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetProcessIdByPeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41009,7 +40675,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetProcessIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41017,7 +40683,7 @@ impl IDebugSystemObjects { } pub unsafe fn GetProcessIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessExecutableName(&self, buffer: Option<&mut [u8]>, exesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentProcessExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(exesize.unwrap_or(core::mem::zeroed()))).ok() @@ -41397,14 +41063,14 @@ impl IDebugSystemObjects2 { (windows_core::Interface::vtable(self).GetCurrentThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentThreadId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetCurrentProcessId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentProcessId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentProcessId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetNumberThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41414,11 +41080,11 @@ impl IDebugSystemObjects2 { (windows_core::Interface::vtable(self).GetTotalNumberThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(total), core::mem::transmute(largestprocess)).ok() } pub unsafe fn GetThreadIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetThreadIdByProcessor(&self, processor: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), processor, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41426,7 +41092,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetThreadIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadTeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41434,7 +41100,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetThreadIdByTeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41442,7 +41108,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetThreadIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41450,14 +41116,14 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetThreadIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetNumberProcesses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberProcesses)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetProcessIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41465,7 +41131,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetProcessIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessPeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41473,7 +41139,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetProcessIdByPeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41481,7 +41147,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetProcessIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41489,7 +41155,7 @@ impl IDebugSystemObjects2 { } pub unsafe fn GetProcessIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessExecutableName(&self, buffer: Option<&mut [u8]>, exesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentProcessExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(exesize.unwrap_or(core::mem::zeroed()))).ok() @@ -41503,14 +41169,14 @@ impl IDebugSystemObjects2 { (windows_core::Interface::vtable(self).GetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImplicitThreadDataOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetImplicitProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImplicitProcessDataOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), offset).ok() } } #[repr(C)] @@ -41940,14 +41606,14 @@ impl IDebugSystemObjects3 { (windows_core::Interface::vtable(self).GetCurrentThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentThreadId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetCurrentProcessId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentProcessId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentProcessId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetNumberThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41957,11 +41623,11 @@ impl IDebugSystemObjects3 { (windows_core::Interface::vtable(self).GetTotalNumberThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(total), core::mem::transmute(largestprocess)).ok() } pub unsafe fn GetThreadIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetThreadIdByProcessor(&self, processor: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), processor, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41969,7 +41635,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetThreadIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadTeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41977,7 +41643,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetThreadIdByTeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41985,7 +41651,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetThreadIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41993,14 +41659,14 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetThreadIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetNumberProcesses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberProcesses)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetProcessIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42008,7 +41674,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetProcessIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessPeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42016,7 +41682,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetProcessIdByPeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42024,7 +41690,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetProcessIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42032,7 +41698,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetProcessIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessExecutableName(&self, buffer: Option<&mut [u8]>, exesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentProcessExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(exesize.unwrap_or(core::mem::zeroed()))).ok() @@ -42046,14 +41712,14 @@ impl IDebugSystemObjects3 { (windows_core::Interface::vtable(self).GetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImplicitThreadDataOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetImplicitProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImplicitProcessDataOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetEventSystem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42064,14 +41730,14 @@ impl IDebugSystemObjects3 { (windows_core::Interface::vtable(self).GetCurrentSystemId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentSystemId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentSystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentSystemId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetNumberSystems(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberSystems)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSystemIdsByIndex(&self, start: u32, ids: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), ids.len().try_into().unwrap(), core::mem::transmute(ids.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSystemIdsByIndex)(windows_core::Interface::as_raw(self), start, ids.len().try_into().unwrap(), core::mem::transmute(ids.as_ptr())).ok() } pub unsafe fn GetTotalNumberThreadsAndProcesses(&self, totalthreads: *mut u32, totalprocesses: *mut u32, largestprocessthreads: *mut u32, largestsystemthreads: *mut u32, largestsystemprocesses: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTotalNumberThreadsAndProcesses)(windows_core::Interface::as_raw(self), core::mem::transmute(totalthreads), core::mem::transmute(totalprocesses), core::mem::transmute(largestprocessthreads), core::mem::transmute(largestsystemthreads), core::mem::transmute(largestsystemprocesses)).ok() @@ -42082,7 +41748,7 @@ impl IDebugSystemObjects3 { } pub unsafe fn GetSystemByServer(&self, server: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemByServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSystemByServer)(windows_core::Interface::as_raw(self), server, &mut result__).map(|| result__) } pub unsafe fn GetCurrentSystemServerName(&self, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentSystemServerName)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() @@ -42608,14 +42274,14 @@ impl IDebugSystemObjects4 { (windows_core::Interface::vtable(self).GetCurrentThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentThreadId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentThreadId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetCurrentProcessId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentProcessId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentProcessId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentProcessId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetNumberThreads(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42625,11 +42291,11 @@ impl IDebugSystemObjects4 { (windows_core::Interface::vtable(self).GetTotalNumberThreads)(windows_core::Interface::as_raw(self), core::mem::transmute(total), core::mem::transmute(largestprocess)).ok() } pub unsafe fn GetThreadIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetThreadIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetThreadIdByProcessor(&self, processor: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(processor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByProcessor)(windows_core::Interface::as_raw(self), processor, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42637,7 +42303,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetThreadIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadTeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42645,7 +42311,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetThreadIdByTeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByTeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42653,7 +42319,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetThreadIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentThreadHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42661,14 +42327,14 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetThreadIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetThreadIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetNumberProcesses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberProcesses)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetProcessIdsByIndex(&self, start: u32, count: u32, ids: Option<*mut u32>, sysids: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), core::mem::transmute(count), core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetProcessIdsByIndex)(windows_core::Interface::as_raw(self), start, count, core::mem::transmute(ids.unwrap_or(core::mem::zeroed())), core::mem::transmute(sysids.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetCurrentProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42676,7 +42342,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetProcessIdByDataOffset(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByDataOffset)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessPeb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42684,7 +42350,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetProcessIdByPeb(&self, offset: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByPeb)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessSystemId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42692,7 +42358,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetProcessIdBySystemId(&self, sysid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(sysid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdBySystemId)(windows_core::Interface::as_raw(self), sysid, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessHandle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42700,7 +42366,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetProcessIdByHandle(&self, handle: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(handle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcessIdByHandle)(windows_core::Interface::as_raw(self), handle, &mut result__).map(|| result__) } pub unsafe fn GetCurrentProcessExecutableName(&self, buffer: Option<&mut [u8]>, exesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentProcessExecutableName)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(exesize.unwrap_or(core::mem::zeroed()))).ok() @@ -42714,14 +42380,14 @@ impl IDebugSystemObjects4 { (windows_core::Interface::vtable(self).GetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImplicitThreadDataOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetImplicitThreadDataOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetImplicitProcessDataOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImplicitProcessDataOffset(&self, offset: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(windows_core::Interface::as_raw(self), offset).ok() } pub unsafe fn GetEventSystem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -42732,14 +42398,14 @@ impl IDebugSystemObjects4 { (windows_core::Interface::vtable(self).GetCurrentSystemId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentSystemId(&self, id: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentSystemId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetCurrentSystemId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetNumberSystems(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumberSystems)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetSystemIdsByIndex(&self, start: u32, ids: &mut [u32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSystemIdsByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(start), ids.len().try_into().unwrap(), core::mem::transmute(ids.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetSystemIdsByIndex)(windows_core::Interface::as_raw(self), start, ids.len().try_into().unwrap(), core::mem::transmute(ids.as_ptr())).ok() } pub unsafe fn GetTotalNumberThreadsAndProcesses(&self, totalthreads: *mut u32, totalprocesses: *mut u32, largestprocessthreads: *mut u32, largestsystemthreads: *mut u32, largestsystemprocesses: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTotalNumberThreadsAndProcesses)(windows_core::Interface::as_raw(self), core::mem::transmute(totalthreads), core::mem::transmute(totalprocesses), core::mem::transmute(largestprocessthreads), core::mem::transmute(largestsystemthreads), core::mem::transmute(largestsystemprocesses)).ok() @@ -42750,7 +42416,7 @@ impl IDebugSystemObjects4 { } pub unsafe fn GetSystemByServer(&self, server: u64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemByServer)(windows_core::Interface::as_raw(self), core::mem::transmute(server), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSystemByServer)(windows_core::Interface::as_raw(self), server, &mut result__).map(|| result__) } pub unsafe fn GetCurrentSystemServerName(&self, buffer: Option<&mut [u8]>, namesize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentSystemServerName)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namesize.unwrap_or(core::mem::zeroed()))).ok() @@ -43287,7 +42953,7 @@ impl IDynamicConceptProviderConcept { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConcept)(windows_core::Interface::as_raw(self), contextobject.param().abi(), core::mem::transmute(conceptid), core::mem::transmute(conceptinterface), core::mem::transmute(conceptmetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(hasconcept)).ok() + (windows_core::Interface::vtable(self).GetConcept)(windows_core::Interface::as_raw(self), contextobject.param().abi(), conceptid, core::mem::transmute(conceptinterface), core::mem::transmute(conceptmetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(hasconcept)).ok() } pub unsafe fn SetConcept(&self, contextobject: P0, conceptid: *const windows_core::GUID, conceptinterface: P2, conceptmetadata: P3) -> windows_core::Result<()> where @@ -43295,7 +42961,7 @@ impl IDynamicConceptProviderConcept { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConcept)(windows_core::Interface::as_raw(self), contextobject.param().abi(), core::mem::transmute(conceptid), conceptinterface.param().abi(), conceptmetadata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetConcept)(windows_core::Interface::as_raw(self), contextobject.param().abi(), conceptid, conceptinterface.param().abi(), conceptmetadata.param().abi()).ok() } pub unsafe fn NotifyParent(&self, parentmodel: P0) -> windows_core::Result<()> where @@ -44048,7 +43714,7 @@ impl IModelObject { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetIntrinsicValueAs(&self, vt: super::super::super::Variant::VARENUM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIntrinsicValueAs)(windows_core::Interface::as_raw(self), core::mem::transmute(vt), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetIntrinsicValueAs)(windows_core::Interface::as_raw(self), vt, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetKeyValue(&self, key: P0, object: Option<*mut Option>, metadata: Option<*mut Option>) -> windows_core::Result<()> where @@ -44072,11 +43738,11 @@ impl IModelObject { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRawValue)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), name.param().abi(), core::mem::transmute(searchflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRawValue)(windows_core::Interface::as_raw(self), kind, name.param().abi(), searchflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateRawValues(&self, kind: SymbolKind, searchflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateRawValues)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), core::mem::transmute(searchflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateRawValues)(windows_core::Interface::as_raw(self), kind, searchflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Dereference(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -44087,7 +43753,7 @@ impl IModelObject { (windows_core::Interface::vtable(self).TryCastToRuntimeType)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetConcept(&self, conceptid: *const windows_core::GUID, conceptinterface: *mut Option, conceptmetadata: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConcept)(windows_core::Interface::as_raw(self), core::mem::transmute(conceptid), core::mem::transmute(conceptinterface), core::mem::transmute(conceptmetadata.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConcept)(windows_core::Interface::as_raw(self), conceptid, core::mem::transmute(conceptinterface), core::mem::transmute(conceptmetadata.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetLocation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -44105,14 +43771,14 @@ impl IModelObject { (windows_core::Interface::vtable(self).GetNumberOfParentModels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetParentModel(&self, i: u64, model: *mut Option, contextobject: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParentModel)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(model), core::mem::transmute(contextobject)).ok() + (windows_core::Interface::vtable(self).GetParentModel)(windows_core::Interface::as_raw(self), i, core::mem::transmute(model), core::mem::transmute(contextobject)).ok() } pub unsafe fn AddParentModel(&self, model: P0, contextobject: P1, r#override: u8) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddParentModel)(windows_core::Interface::as_raw(self), model.param().abi(), contextobject.param().abi(), core::mem::transmute(r#override)).ok() + (windows_core::Interface::vtable(self).AddParentModel)(windows_core::Interface::as_raw(self), model.param().abi(), contextobject.param().abi(), r#override).ok() } pub unsafe fn RemoveParentModel(&self, model: P0) -> windows_core::Result<()> where @@ -44156,7 +43822,7 @@ impl IModelObject { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConcept)(windows_core::Interface::as_raw(self), core::mem::transmute(conceptid), conceptinterface.param().abi(), conceptmetadata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetConcept)(windows_core::Interface::as_raw(self), conceptid, conceptinterface.param().abi(), conceptmetadata.param().abi()).ok() } pub unsafe fn ClearConcepts(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearConcepts)(windows_core::Interface::as_raw(self)).ok() @@ -44166,11 +43832,11 @@ impl IModelObject { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRawReference)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), name.param().abi(), core::mem::transmute(searchflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRawReference)(windows_core::Interface::as_raw(self), kind, name.param().abi(), searchflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateRawReferences(&self, kind: SymbolKind, searchflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateRawReferences)(windows_core::Interface::as_raw(self), core::mem::transmute(kind), core::mem::transmute(searchflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateRawReferences)(windows_core::Interface::as_raw(self), kind, searchflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetContextForDataModel(&self, datamodelobject: P0, context: P1) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index 9526c3ad57..57f41b7fff 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -6,18 +6,18 @@ pub mod Extensions; #[inline] pub unsafe fn AddVectoredContinueHandler(first: u32, handler: PVECTORED_EXCEPTION_HANDLER) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn AddVectoredContinueHandler(first : u32, handler : PVECTORED_EXCEPTION_HANDLER) -> *mut core::ffi::c_void); - AddVectoredContinueHandler(core::mem::transmute(first), core::mem::transmute(handler)) + AddVectoredContinueHandler(first, handler) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn AddVectoredExceptionHandler(first: u32, handler: PVECTORED_EXCEPTION_HANDLER) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn AddVectoredExceptionHandler(first : u32, handler : PVECTORED_EXCEPTION_HANDLER) -> *mut core::ffi::c_void); - AddVectoredExceptionHandler(core::mem::transmute(first), core::mem::transmute(handler)) + AddVectoredExceptionHandler(first, handler) } #[inline] pub unsafe fn Beep(dwfreq: u32, dwduration: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Beep(dwfreq : u32, dwduration : u32) -> super::super::super::Foundation:: BOOL); - Beep(core::mem::transmute(dwfreq), core::mem::transmute(dwduration)).ok() + Beep(dwfreq, dwduration).ok() } #[inline] pub unsafe fn BindImage(imagename: P0, dllpath: P1, symbolpath: P2) -> windows_core::Result<()> @@ -37,42 +37,42 @@ where P3: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn BindImageEx(flags : u32, imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, symbolpath : windows_core::PCSTR, statusroutine : PIMAGEHLP_STATUS_ROUTINE) -> super::super::super::Foundation:: BOOL); - BindImageEx(core::mem::transmute(flags), imagename.param().abi(), dllpath.param().abi(), symbolpath.param().abi(), core::mem::transmute(statusroutine.unwrap_or(core::mem::zeroed()))).ok() + BindImageEx(flags, imagename.param().abi(), dllpath.param().abi(), symbolpath.param().abi(), core::mem::transmute(statusroutine.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CheckRemoteDebuggerPresent(hprocess: super::super::super::Foundation::HANDLE, pbdebuggerpresent: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CheckRemoteDebuggerPresent(hprocess : super::super::super::Foundation:: HANDLE, pbdebuggerpresent : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - CheckRemoteDebuggerPresent(core::mem::transmute(hprocess), core::mem::transmute(pbdebuggerpresent)).ok() + CheckRemoteDebuggerPresent(hprocess, core::mem::transmute(pbdebuggerpresent)).ok() } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn CheckSumMappedFile(baseaddress: *const core::ffi::c_void, filelength: u32, headersum: *mut u32, checksum: *mut u32) -> *mut IMAGE_NT_HEADERS32 { windows_targets::link!("imagehlp.dll" "system" fn CheckSumMappedFile(baseaddress : *const core::ffi::c_void, filelength : u32, headersum : *mut u32, checksum : *mut u32) -> *mut IMAGE_NT_HEADERS32); - CheckSumMappedFile(core::mem::transmute(baseaddress), core::mem::transmute(filelength), core::mem::transmute(headersum), core::mem::transmute(checksum)) + CheckSumMappedFile(baseaddress, filelength, core::mem::transmute(headersum), core::mem::transmute(checksum)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn CheckSumMappedFile(baseaddress: *const core::ffi::c_void, filelength: u32, headersum: *mut u32, checksum: *mut u32) -> *mut IMAGE_NT_HEADERS64 { windows_targets::link!("imagehlp.dll" "system" fn CheckSumMappedFile(baseaddress : *const core::ffi::c_void, filelength : u32, headersum : *mut u32, checksum : *mut u32) -> *mut IMAGE_NT_HEADERS64); - CheckSumMappedFile(core::mem::transmute(baseaddress), core::mem::transmute(filelength), core::mem::transmute(headersum), core::mem::transmute(checksum)) + CheckSumMappedFile(baseaddress, filelength, core::mem::transmute(headersum), core::mem::transmute(checksum)) } #[inline] pub unsafe fn CloseThreadWaitChainSession(wcthandle: *const core::ffi::c_void) { windows_targets::link!("advapi32.dll" "system" fn CloseThreadWaitChainSession(wcthandle : *const core::ffi::c_void)); - CloseThreadWaitChainSession(core::mem::transmute(wcthandle)) + CloseThreadWaitChainSession(wcthandle) } #[inline] pub unsafe fn ContinueDebugEvent(dwprocessid: u32, dwthreadid: u32, dwcontinuestatus: super::super::super::Foundation::NTSTATUS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ContinueDebugEvent(dwprocessid : u32, dwthreadid : u32, dwcontinuestatus : super::super::super::Foundation:: NTSTATUS) -> super::super::super::Foundation:: BOOL); - ContinueDebugEvent(core::mem::transmute(dwprocessid), core::mem::transmute(dwthreadid), core::mem::transmute(dwcontinuestatus)).ok() + ContinueDebugEvent(dwprocessid, dwthreadid, dwcontinuestatus).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn CopyContext(destination: *mut CONTEXT, contextflags: CONTEXT_FLAGS, source: *const CONTEXT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CopyContext(destination : *mut CONTEXT, contextflags : CONTEXT_FLAGS, source : *const CONTEXT) -> super::super::super::Foundation:: BOOL); - CopyContext(core::mem::transmute(destination), core::mem::transmute(contextflags), core::mem::transmute(source)).ok() + CopyContext(core::mem::transmute(destination), contextflags, source).ok() } #[inline] pub unsafe fn DbgHelpCreateUserDump(filename: P0, callback: PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL @@ -80,7 +80,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn DbgHelpCreateUserDump(filename : windows_core::PCSTR, callback : PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - DbgHelpCreateUserDump(filename.param().abi(), core::mem::transmute(callback), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))) + DbgHelpCreateUserDump(filename.param().abi(), callback, core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DbgHelpCreateUserDumpW(filename: P0, callback: PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL @@ -88,17 +88,17 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn DbgHelpCreateUserDumpW(filename : windows_core::PCWSTR, callback : PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - DbgHelpCreateUserDumpW(filename.param().abi(), core::mem::transmute(callback), core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))) + DbgHelpCreateUserDumpW(filename.param().abi(), callback, core::mem::transmute(userdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DebugActiveProcess(dwprocessid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DebugActiveProcess(dwprocessid : u32) -> super::super::super::Foundation:: BOOL); - DebugActiveProcess(core::mem::transmute(dwprocessid)).ok() + DebugActiveProcess(dwprocessid).ok() } #[inline] pub unsafe fn DebugActiveProcessStop(dwprocessid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DebugActiveProcessStop(dwprocessid : u32) -> super::super::super::Foundation:: BOOL); - DebugActiveProcessStop(core::mem::transmute(dwprocessid)).ok() + DebugActiveProcessStop(dwprocessid).ok() } #[inline] pub unsafe fn DebugBreak() { @@ -108,7 +108,7 @@ pub unsafe fn DebugBreak() { #[inline] pub unsafe fn DebugBreakProcess(process: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DebugBreakProcess(process : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - DebugBreakProcess(core::mem::transmute(process)).ok() + DebugBreakProcess(process).ok() } #[inline] pub unsafe fn DebugSetProcessKillOnExit(killonexit: bool) -> windows_core::Result<()> { @@ -123,7 +123,7 @@ pub unsafe fn DecodePointer(ptr: Option<*const core::ffi::c_void>) -> *mut core: #[inline] pub unsafe fn DecodeRemotePointer(processhandle: super::super::super::Foundation::HANDLE, ptr: Option<*const core::ffi::c_void>, decodedptr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-util-l1-1-1.dll" "system" fn DecodeRemotePointer(processhandle : super::super::super::Foundation:: HANDLE, ptr : *const core::ffi::c_void, decodedptr : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DecodeRemotePointer(core::mem::transmute(processhandle), core::mem::transmute(ptr.unwrap_or(core::mem::zeroed())), core::mem::transmute(decodedptr)).ok() + DecodeRemotePointer(processhandle, core::mem::transmute(ptr.unwrap_or(core::mem::zeroed())), core::mem::transmute(decodedptr)).ok() } #[inline] pub unsafe fn DecodeSystemPointer(ptr: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { @@ -138,7 +138,7 @@ pub unsafe fn EncodePointer(ptr: Option<*const core::ffi::c_void>) -> *mut core: #[inline] pub unsafe fn EncodeRemotePointer(processhandle: super::super::super::Foundation::HANDLE, ptr: Option<*const core::ffi::c_void>, encodedptr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-util-l1-1-1.dll" "system" fn EncodeRemotePointer(processhandle : super::super::super::Foundation:: HANDLE, ptr : *const core::ffi::c_void, encodedptr : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - EncodeRemotePointer(core::mem::transmute(processhandle), core::mem::transmute(ptr.unwrap_or(core::mem::zeroed())), core::mem::transmute(encodedptr)).ok() + EncodeRemotePointer(processhandle, core::mem::transmute(ptr.unwrap_or(core::mem::zeroed())), core::mem::transmute(encodedptr)).ok() } #[inline] pub unsafe fn EncodeSystemPointer(ptr: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { @@ -167,27 +167,27 @@ where #[inline] pub unsafe fn EnumerateLoadedModules(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModules(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumerateLoadedModules(core::mem::transmute(hprocess), core::mem::transmute(enumloadedmodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + EnumerateLoadedModules(hprocess, enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModules64(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModules64(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumerateLoadedModules64(core::mem::transmute(hprocess), core::mem::transmute(enumloadedmodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + EnumerateLoadedModules64(hprocess, enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModulesEx(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesEx(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumerateLoadedModulesEx(core::mem::transmute(hprocess), core::mem::transmute(enumloadedmodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + EnumerateLoadedModulesEx(hprocess, enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModulesExW(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesExW(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumerateLoadedModulesExW(core::mem::transmute(hprocess), core::mem::transmute(enumloadedmodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + EnumerateLoadedModulesExW(hprocess, enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModulesW64(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesW64(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumerateLoadedModulesW64(core::mem::transmute(hprocess), core::mem::transmute(enumloadedmodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + EnumerateLoadedModulesW64(hprocess, enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FatalAppExitA(uaction: u32, lpmessagetext: P1) @@ -195,7 +195,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FatalAppExitA(uaction : u32, lpmessagetext : windows_core::PCSTR)); - FatalAppExitA(core::mem::transmute(uaction), lpmessagetext.param().abi()) + FatalAppExitA(uaction, lpmessagetext.param().abi()) } #[inline] pub unsafe fn FatalAppExitW(uaction: u32, lpmessagetext: P1) @@ -203,12 +203,12 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FatalAppExitW(uaction : u32, lpmessagetext : windows_core::PCWSTR)); - FatalAppExitW(core::mem::transmute(uaction), lpmessagetext.param().abi()) + FatalAppExitW(uaction, lpmessagetext.param().abi()) } #[inline] pub unsafe fn FatalExit(exitcode: i32) -> ! { windows_targets::link!("kernel32.dll" "system" fn FatalExit(exitcode : i32) -> !); - FatalExit(core::mem::transmute(exitcode)) + FatalExit(exitcode) } #[inline] pub unsafe fn FindDebugInfoFile(filename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR) -> windows_core::Result @@ -267,7 +267,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindExecutableImageExW(filename : windows_core::PCWSTR, symbolpath : windows_core::PCWSTR, imagefilepath : windows_core::PWSTR, callback : PFIND_EXE_FILE_CALLBACKW, callerdata : *const core::ffi::c_void) -> super::super::super::Foundation:: HANDLE); - let result__ = FindExecutableImageExW(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(imagefilepath), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callerdata)); + let result__ = FindExecutableImageExW(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(imagefilepath), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), callerdata); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -277,7 +277,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindFileInPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : u32, filepath : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); - FindFileInPath(core::mem::transmute(hprocess), searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id), core::mem::transmute(two), core::mem::transmute(three), core::mem::transmute(flags), core::mem::transmute(filepath)) + FindFileInPath(hprocess, searchpatha.param().abi(), filename.param().abi(), id, two, three, flags, core::mem::transmute(filepath)) } #[inline] pub unsafe fn FindFileInSearchPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1, filename: P2, one: u32, two: u32, three: u32, filepath: windows_core::PSTR) -> super::super::super::Foundation::BOOL @@ -286,22 +286,22 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindFileInSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, one : u32, two : u32, three : u32, filepath : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); - FindFileInSearchPath(core::mem::transmute(hprocess), searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(one), core::mem::transmute(two), core::mem::transmute(three), core::mem::transmute(filepath)) + FindFileInSearchPath(hprocess, searchpatha.param().abi(), filename.param().abi(), one, two, three, core::mem::transmute(filepath)) } #[inline] pub unsafe fn FlushInstructionCache(hprocess: super::super::super::Foundation::HANDLE, lpbaseaddress: Option<*const core::ffi::c_void>, dwsize: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FlushInstructionCache(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, dwsize : usize) -> super::super::super::Foundation:: BOOL); - FlushInstructionCache(core::mem::transmute(hprocess), core::mem::transmute(lpbaseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize)).ok() + FlushInstructionCache(hprocess, core::mem::transmute(lpbaseaddress.unwrap_or(core::mem::zeroed())), dwsize).ok() } #[inline] pub unsafe fn FormatMessageA(dwflags: FORMAT_MESSAGE_OPTIONS, lpsource: Option<*const core::ffi::c_void>, dwmessageid: u32, dwlanguageid: u32, lpbuffer: windows_core::PSTR, nsize: u32, arguments: Option<*const *const i8>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn FormatMessageA(dwflags : FORMAT_MESSAGE_OPTIONS, lpsource : *const core::ffi::c_void, dwmessageid : u32, dwlanguageid : u32, lpbuffer : windows_core::PSTR, nsize : u32, arguments : *const *const i8) -> u32); - FormatMessageA(core::mem::transmute(dwflags), core::mem::transmute(lpsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmessageid), core::mem::transmute(dwlanguageid), core::mem::transmute(lpbuffer), core::mem::transmute(nsize), core::mem::transmute(arguments.unwrap_or(core::mem::zeroed()))) + FormatMessageA(dwflags, core::mem::transmute(lpsource.unwrap_or(core::mem::zeroed())), dwmessageid, dwlanguageid, core::mem::transmute(lpbuffer), nsize, core::mem::transmute(arguments.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FormatMessageW(dwflags: FORMAT_MESSAGE_OPTIONS, lpsource: Option<*const core::ffi::c_void>, dwmessageid: u32, dwlanguageid: u32, lpbuffer: windows_core::PWSTR, nsize: u32, arguments: Option<*const *const i8>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn FormatMessageW(dwflags : FORMAT_MESSAGE_OPTIONS, lpsource : *const core::ffi::c_void, dwmessageid : u32, dwlanguageid : u32, lpbuffer : windows_core::PWSTR, nsize : u32, arguments : *const *const i8) -> u32); - FormatMessageW(core::mem::transmute(dwflags), core::mem::transmute(lpsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmessageid), core::mem::transmute(dwlanguageid), core::mem::transmute(lpbuffer), core::mem::transmute(nsize), core::mem::transmute(arguments.unwrap_or(core::mem::zeroed()))) + FormatMessageW(dwflags, core::mem::transmute(lpsource.unwrap_or(core::mem::zeroed())), dwmessageid, dwlanguageid, core::mem::transmute(lpbuffer), nsize, core::mem::transmute(arguments.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] #[inline] @@ -319,20 +319,20 @@ pub unsafe fn GetErrorMode() -> u32 { #[inline] pub unsafe fn GetImageConfigInformation(loadedimage: *const LOADED_IMAGE, imageconfiginformation: *mut IMAGE_LOAD_CONFIG_DIRECTORY32) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn GetImageConfigInformation(loadedimage : *const LOADED_IMAGE, imageconfiginformation : *mut IMAGE_LOAD_CONFIG_DIRECTORY32) -> super::super::super::Foundation:: BOOL); - GetImageConfigInformation(core::mem::transmute(loadedimage), core::mem::transmute(imageconfiginformation)).ok() + GetImageConfigInformation(loadedimage, core::mem::transmute(imageconfiginformation)).ok() } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetImageConfigInformation(loadedimage: *const LOADED_IMAGE, imageconfiginformation: *mut IMAGE_LOAD_CONFIG_DIRECTORY64) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn GetImageConfigInformation(loadedimage : *const LOADED_IMAGE, imageconfiginformation : *mut IMAGE_LOAD_CONFIG_DIRECTORY64) -> super::super::super::Foundation:: BOOL); - GetImageConfigInformation(core::mem::transmute(loadedimage), core::mem::transmute(imageconfiginformation)).ok() + GetImageConfigInformation(loadedimage, core::mem::transmute(imageconfiginformation)).ok() } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetImageUnusedHeaderBytes(loadedimage: *const LOADED_IMAGE, sizeunusedheaderbytes: *mut u32) -> u32 { windows_targets::link!("imagehlp.dll" "system" fn GetImageUnusedHeaderBytes(loadedimage : *const LOADED_IMAGE, sizeunusedheaderbytes : *mut u32) -> u32); - GetImageUnusedHeaderBytes(core::mem::transmute(loadedimage), core::mem::transmute(sizeunusedheaderbytes)) + GetImageUnusedHeaderBytes(loadedimage, core::mem::transmute(sizeunusedheaderbytes)) } #[inline] pub unsafe fn GetSymLoadError() -> u32 { @@ -343,7 +343,7 @@ pub unsafe fn GetSymLoadError() -> u32 { #[inline] pub unsafe fn GetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *mut CONTEXT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut CONTEXT) -> super::super::super::Foundation:: BOOL); - GetThreadContext(core::mem::transmute(hthread), core::mem::transmute(lpcontext)).ok() + GetThreadContext(hthread, core::mem::transmute(lpcontext)).ok() } #[inline] pub unsafe fn GetThreadErrorMode() -> u32 { @@ -353,62 +353,62 @@ pub unsafe fn GetThreadErrorMode() -> u32 { #[inline] pub unsafe fn GetThreadSelectorEntry(hthread: super::super::super::Foundation::HANDLE, dwselector: u32, lpselectorentry: *mut LDT_ENTRY) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectorEntry(hthread : super::super::super::Foundation:: HANDLE, dwselector : u32, lpselectorentry : *mut LDT_ENTRY) -> super::super::super::Foundation:: BOOL); - GetThreadSelectorEntry(core::mem::transmute(hthread), core::mem::transmute(dwselector), core::mem::transmute(lpselectorentry)).ok() + GetThreadSelectorEntry(hthread, dwselector, core::mem::transmute(lpselectorentry)).ok() } #[inline] pub unsafe fn GetThreadWaitChain(wcthandle: *const core::ffi::c_void, context: Option, flags: WAIT_CHAIN_THREAD_OPTIONS, threadid: u32, nodecount: *mut u32, nodeinfoarray: *mut WAITCHAIN_NODE_INFO, iscycle: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetThreadWaitChain(wcthandle : *const core::ffi::c_void, context : usize, flags : WAIT_CHAIN_THREAD_OPTIONS, threadid : u32, nodecount : *mut u32, nodeinfoarray : *mut WAITCHAIN_NODE_INFO, iscycle : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - GetThreadWaitChain(core::mem::transmute(wcthandle), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(threadid), core::mem::transmute(nodecount), core::mem::transmute(nodeinfoarray), core::mem::transmute(iscycle)).ok() + GetThreadWaitChain(wcthandle, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), flags, threadid, core::mem::transmute(nodecount), core::mem::transmute(nodeinfoarray), core::mem::transmute(iscycle)).ok() } #[inline] pub unsafe fn GetTimestampForLoadedLibrary(module: super::super::super::Foundation::HMODULE) -> u32 { windows_targets::link!("dbghelp.dll" "system" fn GetTimestampForLoadedLibrary(module : super::super::super::Foundation:: HMODULE) -> u32); - GetTimestampForLoadedLibrary(core::mem::transmute(module)) + GetTimestampForLoadedLibrary(module) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetXStateFeaturesMask(context: *const CONTEXT, featuremask: *mut u64) -> super::super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetXStateFeaturesMask(context : *const CONTEXT, featuremask : *mut u64) -> super::super::super::Foundation:: BOOL); - GetXStateFeaturesMask(core::mem::transmute(context), core::mem::transmute(featuremask)) + GetXStateFeaturesMask(context, core::mem::transmute(featuremask)) } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageAddCertificate(filehandle: super::super::super::Foundation::HANDLE, certificate: *const super::super::super::Security::WinTrust::WIN_CERTIFICATE, index: *mut u32) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn ImageAddCertificate(filehandle : super::super::super::Foundation:: HANDLE, certificate : *const super::super::super::Security::WinTrust:: WIN_CERTIFICATE, index : *mut u32) -> super::super::super::Foundation:: BOOL); - ImageAddCertificate(core::mem::transmute(filehandle), core::mem::transmute(certificate), core::mem::transmute(index)).ok() + ImageAddCertificate(filehandle, certificate, core::mem::transmute(index)).ok() } #[inline] pub unsafe fn ImageDirectoryEntryToData(base: *const core::ffi::c_void, mappedasimage: bool, directoryentry: IMAGE_DIRECTORY_ENTRY, size: *mut u32) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToData(base : *const core::ffi::c_void, mappedasimage : bool, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32) -> *mut core::ffi::c_void); - ImageDirectoryEntryToData(core::mem::transmute(base), core::mem::transmute(mappedasimage), core::mem::transmute(directoryentry), core::mem::transmute(size)) + ImageDirectoryEntryToData(base, mappedasimage, directoryentry, core::mem::transmute(size)) } #[inline] pub unsafe fn ImageDirectoryEntryToDataEx(base: *const core::ffi::c_void, mappedasimage: bool, directoryentry: IMAGE_DIRECTORY_ENTRY, size: *mut u32, foundheader: Option<*mut *mut IMAGE_SECTION_HEADER>) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToDataEx(base : *const core::ffi::c_void, mappedasimage : bool, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32, foundheader : *mut *mut IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); - ImageDirectoryEntryToDataEx(core::mem::transmute(base), core::mem::transmute(mappedasimage), core::mem::transmute(directoryentry), core::mem::transmute(size), core::mem::transmute(foundheader.unwrap_or(core::mem::zeroed()))) + ImageDirectoryEntryToDataEx(base, mappedasimage, directoryentry, core::mem::transmute(size), core::mem::transmute(foundheader.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ImageEnumerateCertificates(filehandle: super::super::super::Foundation::HANDLE, typefilter: u16, certificatecount: *mut u32, indices: Option<&mut [u32]>) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn ImageEnumerateCertificates(filehandle : super::super::super::Foundation:: HANDLE, typefilter : u16, certificatecount : *mut u32, indices : *mut u32, indexcount : u32) -> super::super::super::Foundation:: BOOL); - ImageEnumerateCertificates(core::mem::transmute(filehandle), core::mem::transmute(typefilter), core::mem::transmute(certificatecount), core::mem::transmute(indices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), indices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + ImageEnumerateCertificates(filehandle, typefilter, core::mem::transmute(certificatecount), core::mem::transmute(indices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), indices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageGetCertificateData(filehandle: super::super::super::Foundation::HANDLE, certificateindex: u32, certificate: *mut super::super::super::Security::WinTrust::WIN_CERTIFICATE, requiredlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateData(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificate : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE, requiredlength : *mut u32) -> super::super::super::Foundation:: BOOL); - ImageGetCertificateData(core::mem::transmute(filehandle), core::mem::transmute(certificateindex), core::mem::transmute(certificate), core::mem::transmute(requiredlength)).ok() + ImageGetCertificateData(filehandle, certificateindex, core::mem::transmute(certificate), core::mem::transmute(requiredlength)).ok() } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageGetCertificateHeader(filehandle: super::super::super::Foundation::HANDLE, certificateindex: u32, certificateheader: *mut super::super::super::Security::WinTrust::WIN_CERTIFICATE) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateHeader(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificateheader : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE) -> super::super::super::Foundation:: BOOL); - ImageGetCertificateHeader(core::mem::transmute(filehandle), core::mem::transmute(certificateindex), core::mem::transmute(certificateheader)).ok() + ImageGetCertificateHeader(filehandle, certificateindex, core::mem::transmute(certificateheader)).ok() } #[inline] pub unsafe fn ImageGetDigestStream(filehandle: super::super::super::Foundation::HANDLE, digestlevel: u32, digestfunction: DIGEST_FUNCTION, digesthandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn ImageGetDigestStream(filehandle : super::super::super::Foundation:: HANDLE, digestlevel : u32, digestfunction : DIGEST_FUNCTION, digesthandle : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - ImageGetDigestStream(core::mem::transmute(filehandle), core::mem::transmute(digestlevel), core::mem::transmute(digestfunction), core::mem::transmute(digesthandle)).ok() + ImageGetDigestStream(filehandle, digestlevel, digestfunction, digesthandle).ok() } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] @@ -425,47 +425,47 @@ where #[inline] pub unsafe fn ImageNtHeader(base: *const core::ffi::c_void) -> *mut IMAGE_NT_HEADERS32 { windows_targets::link!("dbghelp.dll" "system" fn ImageNtHeader(base : *const core::ffi::c_void) -> *mut IMAGE_NT_HEADERS32); - ImageNtHeader(core::mem::transmute(base)) + ImageNtHeader(base) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn ImageNtHeader(base: *const core::ffi::c_void) -> *mut IMAGE_NT_HEADERS64 { windows_targets::link!("dbghelp.dll" "system" fn ImageNtHeader(base : *const core::ffi::c_void) -> *mut IMAGE_NT_HEADERS64); - ImageNtHeader(core::mem::transmute(base)) + ImageNtHeader(base) } #[inline] pub unsafe fn ImageRemoveCertificate(filehandle: super::super::super::Foundation::HANDLE, index: u32) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn ImageRemoveCertificate(filehandle : super::super::super::Foundation:: HANDLE, index : u32) -> super::super::super::Foundation:: BOOL); - ImageRemoveCertificate(core::mem::transmute(filehandle), core::mem::transmute(index)).ok() + ImageRemoveCertificate(filehandle, index).ok() } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn ImageRvaToSection(ntheaders: *const IMAGE_NT_HEADERS32, base: *const core::ffi::c_void, rva: u32) -> *mut IMAGE_SECTION_HEADER { windows_targets::link!("dbghelp.dll" "system" fn ImageRvaToSection(ntheaders : *const IMAGE_NT_HEADERS32, base : *const core::ffi::c_void, rva : u32) -> *mut IMAGE_SECTION_HEADER); - ImageRvaToSection(core::mem::transmute(ntheaders), core::mem::transmute(base), core::mem::transmute(rva)) + ImageRvaToSection(ntheaders, base, rva) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn ImageRvaToSection(ntheaders: *const IMAGE_NT_HEADERS64, base: *const core::ffi::c_void, rva: u32) -> *mut IMAGE_SECTION_HEADER { windows_targets::link!("dbghelp.dll" "system" fn ImageRvaToSection(ntheaders : *const IMAGE_NT_HEADERS64, base : *const core::ffi::c_void, rva : u32) -> *mut IMAGE_SECTION_HEADER); - ImageRvaToSection(core::mem::transmute(ntheaders), core::mem::transmute(base), core::mem::transmute(rva)) + ImageRvaToSection(ntheaders, base, rva) } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn ImageRvaToVa(ntheaders: *const IMAGE_NT_HEADERS32, base: *const core::ffi::c_void, rva: u32, lastrvasection: Option<*const *const IMAGE_SECTION_HEADER>) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn ImageRvaToVa(ntheaders : *const IMAGE_NT_HEADERS32, base : *const core::ffi::c_void, rva : u32, lastrvasection : *const *const IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); - ImageRvaToVa(core::mem::transmute(ntheaders), core::mem::transmute(base), core::mem::transmute(rva), core::mem::transmute(lastrvasection.unwrap_or(core::mem::zeroed()))) + ImageRvaToVa(ntheaders, base, rva, core::mem::transmute(lastrvasection.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn ImageRvaToVa(ntheaders: *const IMAGE_NT_HEADERS64, base: *const core::ffi::c_void, rva: u32, lastrvasection: Option<*const *const IMAGE_SECTION_HEADER>) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn ImageRvaToVa(ntheaders : *const IMAGE_NT_HEADERS64, base : *const core::ffi::c_void, rva : u32, lastrvasection : *const *const IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); - ImageRvaToVa(core::mem::transmute(ntheaders), core::mem::transmute(base), core::mem::transmute(rva), core::mem::transmute(lastrvasection.unwrap_or(core::mem::zeroed()))) + ImageRvaToVa(ntheaders, base, rva, core::mem::transmute(lastrvasection.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] @@ -481,19 +481,19 @@ pub unsafe fn ImagehlpApiVersion() -> *mut API_VERSION { #[inline] pub unsafe fn ImagehlpApiVersionEx(appversion: *const API_VERSION) -> *mut API_VERSION { windows_targets::link!("dbghelp.dll" "system" fn ImagehlpApiVersionEx(appversion : *const API_VERSION) -> *mut API_VERSION); - ImagehlpApiVersionEx(core::mem::transmute(appversion)) + ImagehlpApiVersionEx(appversion) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeContext(buffer: Option<*mut core::ffi::c_void>, contextflags: CONTEXT_FLAGS, context: *mut *mut CONTEXT, contextlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeContext(buffer : *mut core::ffi::c_void, contextflags : CONTEXT_FLAGS, context : *mut *mut CONTEXT, contextlength : *mut u32) -> super::super::super::Foundation:: BOOL); - InitializeContext(core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(contextflags), core::mem::transmute(context), core::mem::transmute(contextlength)).ok() + InitializeContext(core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), contextflags, core::mem::transmute(context), core::mem::transmute(contextlength)).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeContext2(buffer: Option<*mut core::ffi::c_void>, contextflags: CONTEXT_FLAGS, context: *mut *mut CONTEXT, contextlength: *mut u32, xstatecompactionmask: u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeContext2(buffer : *mut core::ffi::c_void, contextflags : CONTEXT_FLAGS, context : *mut *mut CONTEXT, contextlength : *mut u32, xstatecompactionmask : u64) -> super::super::super::Foundation:: BOOL); - InitializeContext2(core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(contextflags), core::mem::transmute(context), core::mem::transmute(contextlength), core::mem::transmute(xstatecompactionmask)).ok() + InitializeContext2(core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), contextflags, core::mem::transmute(context), core::mem::transmute(contextlength), xstatecompactionmask).ok() } #[inline] pub unsafe fn IsDebuggerPresent() -> super::super::super::Foundation::BOOL { @@ -505,7 +505,7 @@ pub unsafe fn IsDebuggerPresent() -> super::super::super::Foundation::BOOL { #[inline] pub unsafe fn LocateXStateFeature(context: *const CONTEXT, featureid: u32, length: Option<*mut u32>) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn LocateXStateFeature(context : *const CONTEXT, featureid : u32, length : *mut u32) -> *mut core::ffi::c_void); - LocateXStateFeature(core::mem::transmute(context), core::mem::transmute(featureid), core::mem::transmute(length.unwrap_or(core::mem::zeroed()))) + LocateXStateFeature(context, featureid, core::mem::transmute(length.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MakeSureDirectoryPathExists(dirpath: P0) -> windows_core::Result<()> @@ -545,23 +545,23 @@ where #[inline] pub unsafe fn MessageBeep(utype: super::super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn MessageBeep(utype : super::super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE) -> super::super::super::Foundation:: BOOL); - MessageBeep(core::mem::transmute(utype)).ok() + MessageBeep(utype).ok() } #[inline] pub unsafe fn MiniDumpReadDumpStream(baseofdump: *const core::ffi::c_void, streamnumber: u32, dir: *mut *mut MINIDUMP_DIRECTORY, streampointer: *mut *mut core::ffi::c_void, streamsize: Option<*mut u32>) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn MiniDumpReadDumpStream(baseofdump : *const core::ffi::c_void, streamnumber : u32, dir : *mut *mut MINIDUMP_DIRECTORY, streampointer : *mut *mut core::ffi::c_void, streamsize : *mut u32) -> super::super::super::Foundation:: BOOL); - MiniDumpReadDumpStream(core::mem::transmute(baseofdump), core::mem::transmute(streamnumber), core::mem::transmute(dir), core::mem::transmute(streampointer), core::mem::transmute(streamsize.unwrap_or(core::mem::zeroed()))) + MiniDumpReadDumpStream(baseofdump, streamnumber, core::mem::transmute(dir), core::mem::transmute(streampointer), core::mem::transmute(streamsize.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_System_Kernel", feature = "Win32_System_Memory"))] #[inline] pub unsafe fn MiniDumpWriteDump(hprocess: super::super::super::Foundation::HANDLE, processid: u32, hfile: super::super::super::Foundation::HANDLE, dumptype: MINIDUMP_TYPE, exceptionparam: Option<*const MINIDUMP_EXCEPTION_INFORMATION>, userstreamparam: Option<*const MINIDUMP_USER_STREAM_INFORMATION>, callbackparam: Option<*const MINIDUMP_CALLBACK_INFORMATION>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn MiniDumpWriteDump(hprocess : super::super::super::Foundation:: HANDLE, processid : u32, hfile : super::super::super::Foundation:: HANDLE, dumptype : MINIDUMP_TYPE, exceptionparam : *const MINIDUMP_EXCEPTION_INFORMATION, userstreamparam : *const MINIDUMP_USER_STREAM_INFORMATION, callbackparam : *const MINIDUMP_CALLBACK_INFORMATION) -> super::super::super::Foundation:: BOOL); - MiniDumpWriteDump(core::mem::transmute(hprocess), core::mem::transmute(processid), core::mem::transmute(hfile), core::mem::transmute(dumptype), core::mem::transmute(exceptionparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(userstreamparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackparam.unwrap_or(core::mem::zeroed()))).ok() + MiniDumpWriteDump(hprocess, processid, hfile, dumptype, core::mem::transmute(exceptionparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(userstreamparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackparam.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn OpenThreadWaitChainSession(flags: OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS, callback: Option) -> *mut core::ffi::c_void { windows_targets::link!("advapi32.dll" "system" fn OpenThreadWaitChainSession(flags : OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS, callback : PWAITCHAINCALLBACK) -> *mut core::ffi::c_void); - OpenThreadWaitChainSession(core::mem::transmute(flags), core::mem::transmute(callback.unwrap_or(core::mem::zeroed()))) + OpenThreadWaitChainSession(flags, core::mem::transmute(callback.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn OutputDebugStringA(lpoutputstring: P0) @@ -582,13 +582,13 @@ where #[inline] pub unsafe fn RaiseException(dwexceptioncode: u32, dwexceptionflags: u32, lparguments: Option<&[usize]>) { windows_targets::link!("kernel32.dll" "system" fn RaiseException(dwexceptioncode : u32, dwexceptionflags : u32, nnumberofarguments : u32, lparguments : *const usize)); - RaiseException(core::mem::transmute(dwexceptioncode), core::mem::transmute(dwexceptionflags), lparguments.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lparguments.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + RaiseException(dwexceptioncode, dwexceptionflags, lparguments.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lparguments.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RaiseFailFastException(pexceptionrecord: Option<*const EXCEPTION_RECORD>, pcontextrecord: Option<*const CONTEXT>, dwflags: u32) { windows_targets::link!("kernel32.dll" "system" fn RaiseFailFastException(pexceptionrecord : *const EXCEPTION_RECORD, pcontextrecord : *const CONTEXT, dwflags : u32)); - RaiseFailFastException(core::mem::transmute(pexceptionrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontextrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + RaiseFailFastException(core::mem::transmute(pexceptionrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcontextrecord.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn RangeMapAddPeImageSections(rmaphandle: *const core::ffi::c_void, imagename: P1, mappedimage: *const core::ffi::c_void, mappingbytes: u32, imagebase: u64, usertag: u64, mappingflags: u32) -> super::super::super::Foundation::BOOL @@ -596,7 +596,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn RangeMapAddPeImageSections(rmaphandle : *const core::ffi::c_void, imagename : windows_core::PCWSTR, mappedimage : *const core::ffi::c_void, mappingbytes : u32, imagebase : u64, usertag : u64, mappingflags : u32) -> super::super::super::Foundation:: BOOL); - RangeMapAddPeImageSections(core::mem::transmute(rmaphandle), imagename.param().abi(), core::mem::transmute(mappedimage), core::mem::transmute(mappingbytes), core::mem::transmute(imagebase), core::mem::transmute(usertag), core::mem::transmute(mappingflags)) + RangeMapAddPeImageSections(rmaphandle, imagename.param().abi(), mappedimage, mappingbytes, imagebase, usertag, mappingflags) } #[inline] pub unsafe fn RangeMapCreate() -> *mut core::ffi::c_void { @@ -611,17 +611,17 @@ pub unsafe fn RangeMapFree(rmaphandle: Option<*const core::ffi::c_void>) { #[inline] pub unsafe fn RangeMapRead(rmaphandle: *const core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, requestbytes: u32, flags: u32, donebytes: Option<*mut u32>) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn RangeMapRead(rmaphandle : *const core::ffi::c_void, offset : u64, buffer : *mut core::ffi::c_void, requestbytes : u32, flags : u32, donebytes : *mut u32) -> super::super::super::Foundation:: BOOL); - RangeMapRead(core::mem::transmute(rmaphandle), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(requestbytes), core::mem::transmute(flags), core::mem::transmute(donebytes.unwrap_or(core::mem::zeroed()))) + RangeMapRead(rmaphandle, offset, core::mem::transmute(buffer), requestbytes, flags, core::mem::transmute(donebytes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RangeMapRemove(rmaphandle: *const core::ffi::c_void, usertag: u64) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn RangeMapRemove(rmaphandle : *const core::ffi::c_void, usertag : u64) -> super::super::super::Foundation:: BOOL); - RangeMapRemove(core::mem::transmute(rmaphandle), core::mem::transmute(usertag)) + RangeMapRemove(rmaphandle, usertag) } #[inline] pub unsafe fn RangeMapWrite(rmaphandle: *const core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, requestbytes: u32, flags: u32, donebytes: Option<*mut u32>) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn RangeMapWrite(rmaphandle : *const core::ffi::c_void, offset : u64, buffer : *const core::ffi::c_void, requestbytes : u32, flags : u32, donebytes : *mut u32) -> super::super::super::Foundation:: BOOL); - RangeMapWrite(core::mem::transmute(rmaphandle), core::mem::transmute(offset), core::mem::transmute(buffer), core::mem::transmute(requestbytes), core::mem::transmute(flags), core::mem::transmute(donebytes.unwrap_or(core::mem::zeroed()))) + RangeMapWrite(rmaphandle, offset, buffer, requestbytes, flags, core::mem::transmute(donebytes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReBaseImage(currentimagename: P0, symbolpath: P1, frebase: bool, frebasesysfileok: bool, fgoingdown: bool, checkimagesize: u32, oldimagesize: *mut u32, oldimagebase: *mut usize, newimagesize: *mut u32, newimagebase: *mut usize, timestamp: u32) -> windows_core::Result<()> @@ -630,7 +630,7 @@ where P1: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn ReBaseImage(currentimagename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, frebase : super::super::super::Foundation:: BOOL, frebasesysfileok : super::super::super::Foundation:: BOOL, fgoingdown : super::super::super::Foundation:: BOOL, checkimagesize : u32, oldimagesize : *mut u32, oldimagebase : *mut usize, newimagesize : *mut u32, newimagebase : *mut usize, timestamp : u32) -> super::super::super::Foundation:: BOOL); - ReBaseImage(currentimagename.param().abi(), symbolpath.param().abi(), frebase.into(), frebasesysfileok.into(), fgoingdown.into(), core::mem::transmute(checkimagesize), core::mem::transmute(oldimagesize), core::mem::transmute(oldimagebase), core::mem::transmute(newimagesize), core::mem::transmute(newimagebase), core::mem::transmute(timestamp)).ok() + ReBaseImage(currentimagename.param().abi(), symbolpath.param().abi(), frebase.into(), frebasesysfileok.into(), fgoingdown.into(), checkimagesize, core::mem::transmute(oldimagesize), core::mem::transmute(oldimagebase), core::mem::transmute(newimagesize), core::mem::transmute(newimagebase), timestamp).ok() } #[inline] pub unsafe fn ReBaseImage64(currentimagename: P0, symbolpath: P1, frebase: bool, frebasesysfileok: bool, fgoingdown: bool, checkimagesize: u32, oldimagesize: *mut u32, oldimagebase: *mut u64, newimagesize: *mut u32, newimagebase: *mut u64, timestamp: u32) -> windows_core::Result<()> @@ -639,32 +639,32 @@ where P1: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn ReBaseImage64(currentimagename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, frebase : super::super::super::Foundation:: BOOL, frebasesysfileok : super::super::super::Foundation:: BOOL, fgoingdown : super::super::super::Foundation:: BOOL, checkimagesize : u32, oldimagesize : *mut u32, oldimagebase : *mut u64, newimagesize : *mut u32, newimagebase : *mut u64, timestamp : u32) -> super::super::super::Foundation:: BOOL); - ReBaseImage64(currentimagename.param().abi(), symbolpath.param().abi(), frebase.into(), frebasesysfileok.into(), fgoingdown.into(), core::mem::transmute(checkimagesize), core::mem::transmute(oldimagesize), core::mem::transmute(oldimagebase), core::mem::transmute(newimagesize), core::mem::transmute(newimagebase), core::mem::transmute(timestamp)).ok() + ReBaseImage64(currentimagename.param().abi(), symbolpath.param().abi(), frebase.into(), frebasesysfileok.into(), fgoingdown.into(), checkimagesize, core::mem::transmute(oldimagesize), core::mem::transmute(oldimagebase), core::mem::transmute(newimagesize), core::mem::transmute(newimagebase), timestamp).ok() } #[inline] pub unsafe fn ReadProcessMemory(hprocess: super::super::super::Foundation::HANDLE, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nsize: usize, lpnumberofbytesread: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReadProcessMemory(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, nsize : usize, lpnumberofbytesread : *mut usize) -> super::super::super::Foundation:: BOOL); - ReadProcessMemory(core::mem::transmute(hprocess), core::mem::transmute(lpbaseaddress), core::mem::transmute(lpbuffer), core::mem::transmute(nsize), core::mem::transmute(lpnumberofbytesread.unwrap_or(core::mem::zeroed()))).ok() + ReadProcessMemory(hprocess, lpbaseaddress, core::mem::transmute(lpbuffer), nsize, core::mem::transmute(lpnumberofbytesread.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RegisterWaitChainCOMCallback(callstatecallback: PCOGETCALLSTATE, activationstatecallback: PCOGETACTIVATIONSTATE) { windows_targets::link!("advapi32.dll" "system" fn RegisterWaitChainCOMCallback(callstatecallback : PCOGETCALLSTATE, activationstatecallback : PCOGETACTIVATIONSTATE)); - RegisterWaitChainCOMCallback(core::mem::transmute(callstatecallback), core::mem::transmute(activationstatecallback)) + RegisterWaitChainCOMCallback(callstatecallback, activationstatecallback) } #[inline] pub unsafe fn RemoveInvalidModuleList(hprocess: super::super::super::Foundation::HANDLE) { windows_targets::link!("dbghelp.dll" "system" fn RemoveInvalidModuleList(hprocess : super::super::super::Foundation:: HANDLE)); - RemoveInvalidModuleList(core::mem::transmute(hprocess)) + RemoveInvalidModuleList(hprocess) } #[inline] pub unsafe fn RemoveVectoredContinueHandler(handle: *const core::ffi::c_void) -> u32 { windows_targets::link!("kernel32.dll" "system" fn RemoveVectoredContinueHandler(handle : *const core::ffi::c_void) -> u32); - RemoveVectoredContinueHandler(core::mem::transmute(handle)) + RemoveVectoredContinueHandler(handle) } #[inline] pub unsafe fn RemoveVectoredExceptionHandler(handle: *const core::ffi::c_void) -> u32 { windows_targets::link!("kernel32.dll" "system" fn RemoveVectoredExceptionHandler(handle : *const core::ffi::c_void) -> u32); - RemoveVectoredExceptionHandler(core::mem::transmute(handle)) + RemoveVectoredExceptionHandler(handle) } #[inline] pub unsafe fn ReportSymbolLoadSummary(hprocess: super::super::super::Foundation::HANDLE, ploadmodule: P1, psymboldata: *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation::BOOL @@ -672,31 +672,31 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn ReportSymbolLoadSummary(hprocess : super::super::super::Foundation:: HANDLE, ploadmodule : windows_core::PCWSTR, psymboldata : *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation:: BOOL); - ReportSymbolLoadSummary(core::mem::transmute(hprocess), ploadmodule.param().abi(), core::mem::transmute(psymboldata)) + ReportSymbolLoadSummary(hprocess, ploadmodule.param().abi(), psymboldata) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_RUNTIME_FUNCTION_ENTRY], baseaddress: u64) -> bool { windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : u64) -> bool); - RtlAddFunctionTable(core::mem::transmute(functiontable.as_ptr()), functiontable.len().try_into().unwrap(), core::mem::transmute(baseaddress)) + RtlAddFunctionTable(core::mem::transmute(functiontable.as_ptr()), functiontable.len().try_into().unwrap(), baseaddress) } #[cfg(target_arch = "aarch64")] #[inline] pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY], baseaddress: usize) -> bool { windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : usize) -> bool); - RtlAddFunctionTable(core::mem::transmute(functiontable.as_ptr()), functiontable.len().try_into().unwrap(), core::mem::transmute(baseaddress)) + RtlAddFunctionTable(core::mem::transmute(functiontable.as_ptr()), functiontable.len().try_into().unwrap(), baseaddress) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlAddGrowableFunctionTable(dynamictable: *mut *mut core::ffi::c_void, functiontable: &[IMAGE_RUNTIME_FUNCTION_ENTRY], entrycount: u32, rangebase: usize, rangeend: usize) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlAddGrowableFunctionTable(dynamictable : *mut *mut core::ffi::c_void, functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, maximumentrycount : u32, rangebase : usize, rangeend : usize) -> u32); - RtlAddGrowableFunctionTable(core::mem::transmute(dynamictable), core::mem::transmute(functiontable.as_ptr()), core::mem::transmute(entrycount), functiontable.len().try_into().unwrap(), core::mem::transmute(rangebase), core::mem::transmute(rangeend)) + RtlAddGrowableFunctionTable(core::mem::transmute(dynamictable), core::mem::transmute(functiontable.as_ptr()), entrycount, functiontable.len().try_into().unwrap(), rangebase, rangeend) } #[cfg(target_arch = "aarch64")] #[inline] pub unsafe fn RtlAddGrowableFunctionTable(dynamictable: *mut *mut core::ffi::c_void, functiontable: &[IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY], entrycount: u32, rangebase: usize, rangeend: usize) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlAddGrowableFunctionTable(dynamictable : *mut *mut core::ffi::c_void, functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount : u32, maximumentrycount : u32, rangebase : usize, rangeend : usize) -> u32); - RtlAddGrowableFunctionTable(core::mem::transmute(dynamictable), core::mem::transmute(functiontable.as_ptr()), core::mem::transmute(entrycount), functiontable.len().try_into().unwrap(), core::mem::transmute(rangebase), core::mem::transmute(rangeend)) + RtlAddGrowableFunctionTable(core::mem::transmute(dynamictable), core::mem::transmute(functiontable.as_ptr()), entrycount, functiontable.len().try_into().unwrap(), rangebase, rangeend) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -714,31 +714,31 @@ pub unsafe fn RtlCaptureContext2(contextrecord: *mut CONTEXT) { #[inline] pub unsafe fn RtlCaptureStackBackTrace(framestoskip: u32, backtrace: &mut [*mut core::ffi::c_void], backtracehash: Option<*mut u32>) -> u16 { windows_targets::link!("kernel32.dll" "system" fn RtlCaptureStackBackTrace(framestoskip : u32, framestocapture : u32, backtrace : *mut *mut core::ffi::c_void, backtracehash : *mut u32) -> u16); - RtlCaptureStackBackTrace(core::mem::transmute(framestoskip), backtrace.len().try_into().unwrap(), core::mem::transmute(backtrace.as_ptr()), core::mem::transmute(backtracehash.unwrap_or(core::mem::zeroed()))) + RtlCaptureStackBackTrace(framestoskip, backtrace.len().try_into().unwrap(), core::mem::transmute(backtrace.as_ptr()), core::mem::transmute(backtracehash.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> bool { windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> bool); - RtlDeleteFunctionTable(core::mem::transmute(functiontable)) + RtlDeleteFunctionTable(functiontable) } #[cfg(target_arch = "aarch64")] #[inline] pub unsafe fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> bool { windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> bool); - RtlDeleteFunctionTable(core::mem::transmute(functiontable)) + RtlDeleteFunctionTable(functiontable) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlDeleteGrowableFunctionTable(dynamictable: *const core::ffi::c_void) { windows_targets::link!("ntdll.dll" "system" fn RtlDeleteGrowableFunctionTable(dynamictable : *const core::ffi::c_void)); - RtlDeleteGrowableFunctionTable(core::mem::transmute(dynamictable)) + RtlDeleteGrowableFunctionTable(dynamictable) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlGrowFunctionTable(dynamictable: *mut core::ffi::c_void, newentrycount: u32) { windows_targets::link!("ntdll.dll" "system" fn RtlGrowFunctionTable(dynamictable : *mut core::ffi::c_void, newentrycount : u32)); - RtlGrowFunctionTable(core::mem::transmute(dynamictable), core::mem::transmute(newentrycount)) + RtlGrowFunctionTable(core::mem::transmute(dynamictable), newentrycount) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] @@ -747,7 +747,7 @@ where P5: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_core::PCWSTR) -> bool); - RtlInstallFunctionTableCallback(core::mem::transmute(tableidentifier), core::mem::transmute(baseaddress), core::mem::transmute(length), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), outofprocesscallbackdll.param().abi()) + RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), outofprocesscallbackdll.param().abi()) } #[cfg(target_arch = "aarch64")] #[inline] @@ -756,61 +756,61 @@ where P5: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_core::PCWSTR) -> bool); - RtlInstallFunctionTableCallback(core::mem::transmute(tableidentifier), core::mem::transmute(baseaddress), core::mem::transmute(length), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), outofprocesscallbackdll.param().abi()) + RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), outofprocesscallbackdll.param().abi()) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlLookupFunctionEntry(controlpc: u64, imagebase: *mut u64, historytable: Option<*mut UNWIND_HISTORY_TABLE>) -> *mut IMAGE_RUNTIME_FUNCTION_ENTRY { windows_targets::link!("kernel32.dll" "system" fn RtlLookupFunctionEntry(controlpc : u64, imagebase : *mut u64, historytable : *mut UNWIND_HISTORY_TABLE) -> *mut IMAGE_RUNTIME_FUNCTION_ENTRY); - RtlLookupFunctionEntry(core::mem::transmute(controlpc), core::mem::transmute(imagebase), core::mem::transmute(historytable.unwrap_or(core::mem::zeroed()))) + RtlLookupFunctionEntry(controlpc, core::mem::transmute(imagebase), core::mem::transmute(historytable.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "aarch64")] #[inline] pub unsafe fn RtlLookupFunctionEntry(controlpc: usize, imagebase: *mut usize, historytable: Option<*mut UNWIND_HISTORY_TABLE>) -> *mut IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY { windows_targets::link!("kernel32.dll" "system" fn RtlLookupFunctionEntry(controlpc : usize, imagebase : *mut usize, historytable : *mut UNWIND_HISTORY_TABLE) -> *mut IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY); - RtlLookupFunctionEntry(core::mem::transmute(controlpc), core::mem::transmute(imagebase), core::mem::transmute(historytable.unwrap_or(core::mem::zeroed()))) + RtlLookupFunctionEntry(controlpc, core::mem::transmute(imagebase), core::mem::transmute(historytable.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlPcToFileHeader(pcvalue: *const core::ffi::c_void, baseofimage: *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn RtlPcToFileHeader(pcvalue : *const core::ffi::c_void, baseofimage : *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void); - RtlPcToFileHeader(core::mem::transmute(pcvalue), core::mem::transmute(baseofimage)) + RtlPcToFileHeader(pcvalue, core::mem::transmute(baseofimage)) } #[inline] pub unsafe fn RtlRaiseException(exceptionrecord: *const EXCEPTION_RECORD) { windows_targets::link!("kernel32.dll" "system" fn RtlRaiseException(exceptionrecord : *const EXCEPTION_RECORD)); - RtlRaiseException(core::mem::transmute(exceptionrecord)) + RtlRaiseException(exceptionrecord) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlRestoreContext(contextrecord: *const CONTEXT, exceptionrecord: Option<*const EXCEPTION_RECORD>) { windows_targets::link!("kernel32.dll" "cdecl" fn RtlRestoreContext(contextrecord : *const CONTEXT, exceptionrecord : *const EXCEPTION_RECORD)); - RtlRestoreContext(core::mem::transmute(contextrecord), core::mem::transmute(exceptionrecord.unwrap_or(core::mem::zeroed()))) + RtlRestoreContext(contextrecord, core::mem::transmute(exceptionrecord.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RtlUnwind(targetframe: Option<*const core::ffi::c_void>, targetip: Option<*const core::ffi::c_void>, exceptionrecord: Option<*const EXCEPTION_RECORD>, returnvalue: *const core::ffi::c_void) { windows_targets::link!("kernel32.dll" "system" fn RtlUnwind(targetframe : *const core::ffi::c_void, targetip : *const core::ffi::c_void, exceptionrecord : *const EXCEPTION_RECORD, returnvalue : *const core::ffi::c_void)); - RtlUnwind(core::mem::transmute(targetframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(targetip.unwrap_or(core::mem::zeroed())), core::mem::transmute(exceptionrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnvalue)) + RtlUnwind(core::mem::transmute(targetframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(targetip.unwrap_or(core::mem::zeroed())), core::mem::transmute(exceptionrecord.unwrap_or(core::mem::zeroed())), returnvalue) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnwindEx(targetframe: Option<*const core::ffi::c_void>, targetip: Option<*const core::ffi::c_void>, exceptionrecord: Option<*const EXCEPTION_RECORD>, returnvalue: *const core::ffi::c_void, contextrecord: *const CONTEXT, historytable: Option<*const UNWIND_HISTORY_TABLE>) { windows_targets::link!("kernel32.dll" "system" fn RtlUnwindEx(targetframe : *const core::ffi::c_void, targetip : *const core::ffi::c_void, exceptionrecord : *const EXCEPTION_RECORD, returnvalue : *const core::ffi::c_void, contextrecord : *const CONTEXT, historytable : *const UNWIND_HISTORY_TABLE)); - RtlUnwindEx(core::mem::transmute(targetframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(targetip.unwrap_or(core::mem::zeroed())), core::mem::transmute(exceptionrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnvalue), core::mem::transmute(contextrecord), core::mem::transmute(historytable.unwrap_or(core::mem::zeroed()))) + RtlUnwindEx(core::mem::transmute(targetframe.unwrap_or(core::mem::zeroed())), core::mem::transmute(targetip.unwrap_or(core::mem::zeroed())), core::mem::transmute(exceptionrecord.unwrap_or(core::mem::zeroed())), returnvalue, contextrecord, core::mem::transmute(historytable.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlVirtualUnwind(handlertype: RTL_VIRTUAL_UNWIND_HANDLER_TYPE, imagebase: u64, controlpc: u64, functionentry: *const IMAGE_RUNTIME_FUNCTION_ENTRY, contextrecord: *mut CONTEXT, handlerdata: *mut *mut core::ffi::c_void, establisherframe: *mut u64, contextpointers: Option<*mut KNONVOLATILE_CONTEXT_POINTERS>) -> super::super::Kernel::EXCEPTION_ROUTINE { windows_targets::link!("kernel32.dll" "system" fn RtlVirtualUnwind(handlertype : RTL_VIRTUAL_UNWIND_HANDLER_TYPE, imagebase : u64, controlpc : u64, functionentry : *const IMAGE_RUNTIME_FUNCTION_ENTRY, contextrecord : *mut CONTEXT, handlerdata : *mut *mut core::ffi::c_void, establisherframe : *mut u64, contextpointers : *mut KNONVOLATILE_CONTEXT_POINTERS) -> super::super::Kernel:: EXCEPTION_ROUTINE); - RtlVirtualUnwind(core::mem::transmute(handlertype), core::mem::transmute(imagebase), core::mem::transmute(controlpc), core::mem::transmute(functionentry), core::mem::transmute(contextrecord), core::mem::transmute(handlerdata), core::mem::transmute(establisherframe), core::mem::transmute(contextpointers.unwrap_or(core::mem::zeroed()))) + RtlVirtualUnwind(handlertype, imagebase, controlpc, functionentry, core::mem::transmute(contextrecord), core::mem::transmute(handlerdata), core::mem::transmute(establisherframe), core::mem::transmute(contextpointers.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "aarch64")] #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlVirtualUnwind(handlertype: RTL_VIRTUAL_UNWIND_HANDLER_TYPE, imagebase: usize, controlpc: usize, functionentry: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, contextrecord: *mut CONTEXT, handlerdata: *mut *mut core::ffi::c_void, establisherframe: *mut usize, contextpointers: Option<*mut KNONVOLATILE_CONTEXT_POINTERS>) -> super::super::Kernel::EXCEPTION_ROUTINE { windows_targets::link!("kernel32.dll" "system" fn RtlVirtualUnwind(handlertype : RTL_VIRTUAL_UNWIND_HANDLER_TYPE, imagebase : usize, controlpc : usize, functionentry : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, contextrecord : *mut CONTEXT, handlerdata : *mut *mut core::ffi::c_void, establisherframe : *mut usize, contextpointers : *mut KNONVOLATILE_CONTEXT_POINTERS) -> super::super::Kernel:: EXCEPTION_ROUTINE); - RtlVirtualUnwind(core::mem::transmute(handlertype), core::mem::transmute(imagebase), core::mem::transmute(controlpc), core::mem::transmute(functionentry), core::mem::transmute(contextrecord), core::mem::transmute(handlerdata), core::mem::transmute(establisherframe), core::mem::transmute(contextpointers.unwrap_or(core::mem::zeroed()))) + RtlVirtualUnwind(handlertype, imagebase, controlpc, functionentry, core::mem::transmute(contextrecord), core::mem::transmute(handlerdata), core::mem::transmute(establisherframe), core::mem::transmute(contextpointers.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SearchTreeForFile(rootpath: P0, inputpathname: P1, outputpathbuffer: windows_core::PSTR) -> windows_core::Result<()> @@ -833,42 +833,42 @@ where #[inline] pub unsafe fn SetCheckUserInterruptShared(lpstartaddress: LPCALL_BACK_USER_INTERRUPT_ROUTINE) { windows_targets::link!("dbghelp.dll" "system" fn SetCheckUserInterruptShared(lpstartaddress : LPCALL_BACK_USER_INTERRUPT_ROUTINE)); - SetCheckUserInterruptShared(core::mem::transmute(lpstartaddress)) + SetCheckUserInterruptShared(lpstartaddress) } #[inline] pub unsafe fn SetErrorMode(umode: THREAD_ERROR_MODE) -> THREAD_ERROR_MODE { windows_targets::link!("kernel32.dll" "system" fn SetErrorMode(umode : THREAD_ERROR_MODE) -> THREAD_ERROR_MODE); - SetErrorMode(core::mem::transmute(umode)) + SetErrorMode(umode) } #[cfg(target_arch = "x86")] #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetImageConfigInformation(loadedimage: *mut LOADED_IMAGE, imageconfiginformation: *const IMAGE_LOAD_CONFIG_DIRECTORY32) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn SetImageConfigInformation(loadedimage : *mut LOADED_IMAGE, imageconfiginformation : *const IMAGE_LOAD_CONFIG_DIRECTORY32) -> super::super::super::Foundation:: BOOL); - SetImageConfigInformation(core::mem::transmute(loadedimage), core::mem::transmute(imageconfiginformation)).ok() + SetImageConfigInformation(core::mem::transmute(loadedimage), imageconfiginformation).ok() } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetImageConfigInformation(loadedimage: *mut LOADED_IMAGE, imageconfiginformation: *const IMAGE_LOAD_CONFIG_DIRECTORY64) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn SetImageConfigInformation(loadedimage : *mut LOADED_IMAGE, imageconfiginformation : *const IMAGE_LOAD_CONFIG_DIRECTORY64) -> super::super::super::Foundation:: BOOL); - SetImageConfigInformation(core::mem::transmute(loadedimage), core::mem::transmute(imageconfiginformation)).ok() + SetImageConfigInformation(core::mem::transmute(loadedimage), imageconfiginformation).ok() } #[inline] pub unsafe fn SetSymLoadError(error: u32) { windows_targets::link!("dbghelp.dll" "system" fn SetSymLoadError(error : u32)); - SetSymLoadError(core::mem::transmute(error)) + SetSymLoadError(error) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *const CONTEXT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const CONTEXT) -> super::super::super::Foundation:: BOOL); - SetThreadContext(core::mem::transmute(hthread), core::mem::transmute(lpcontext)).ok() + SetThreadContext(hthread, lpcontext).ok() } #[inline] pub unsafe fn SetThreadErrorMode(dwnewmode: THREAD_ERROR_MODE, lpoldmode: Option<*mut THREAD_ERROR_MODE>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadErrorMode(dwnewmode : THREAD_ERROR_MODE, lpoldmode : *mut THREAD_ERROR_MODE) -> super::super::super::Foundation:: BOOL); - SetThreadErrorMode(core::mem::transmute(dwnewmode), core::mem::transmute(lpoldmode.unwrap_or(core::mem::zeroed()))).ok() + SetThreadErrorMode(dwnewmode, core::mem::transmute(lpoldmode.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -881,21 +881,21 @@ pub unsafe fn SetUnhandledExceptionFilter(lptoplevelexceptionfilter: Option super::super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetXStateFeaturesMask(context : *mut CONTEXT, featuremask : u64) -> super::super::super::Foundation:: BOOL); - SetXStateFeaturesMask(core::mem::transmute(context), core::mem::transmute(featuremask)) + SetXStateFeaturesMask(core::mem::transmute(context), featuremask) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn StackWalk(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn StackWalk(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE, translateaddress : PTRANSLATE_ADDRESS_ROUTINE) -> super::super::super::Foundation:: BOOL); - StackWalk(core::mem::transmute(machinetype), core::mem::transmute(hprocess), core::mem::transmute(hthread), core::mem::transmute(stackframe), core::mem::transmute(contextrecord), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(functiontableaccessroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed()))) + StackWalk(machinetype, hprocess, hthread, core::mem::transmute(stackframe), core::mem::transmute(contextrecord), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(functiontableaccessroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn StackWalk2(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME_EX, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option, gettargetattributevalue: Option, flags: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn StackWalk2(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME_EX, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64, gettargetattributevalue : PGET_TARGET_ATTRIBUTE_VALUE64, flags : u32) -> super::super::super::Foundation:: BOOL); StackWalk2( - core::mem::transmute(machinetype), - core::mem::transmute(hprocess), - core::mem::transmute(hthread), + machinetype, + hprocess, + hthread, core::mem::transmute(stackframe), core::mem::transmute(contextrecord), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), @@ -903,29 +903,18 @@ pub unsafe fn StackWalk2(machinetype: u32, hprocess: super::super::super::Founda core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(gettargetattributevalue.unwrap_or(core::mem::zeroed())), - core::mem::transmute(flags), + flags, ) } #[inline] pub unsafe fn StackWalk64(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME64, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn StackWalk64(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME64, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64) -> super::super::super::Foundation:: BOOL); - StackWalk64(core::mem::transmute(machinetype), core::mem::transmute(hprocess), core::mem::transmute(hthread), core::mem::transmute(stackframe), core::mem::transmute(contextrecord), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(functiontableaccessroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed()))) + StackWalk64(machinetype, hprocess, hthread, core::mem::transmute(stackframe), core::mem::transmute(contextrecord), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(functiontableaccessroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn StackWalkEx(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME_EX, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option, flags: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn StackWalkEx(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME_EX, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64, flags : u32) -> super::super::super::Foundation:: BOOL); - StackWalkEx( - core::mem::transmute(machinetype), - core::mem::transmute(hprocess), - core::mem::transmute(hthread), - core::mem::transmute(stackframe), - core::mem::transmute(contextrecord), - core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(functiontableaccessroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), - core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(flags), - ) + StackWalkEx(machinetype, hprocess, hthread, core::mem::transmute(stackframe), core::mem::transmute(contextrecord), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(functiontableaccessroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(translateaddress.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SymAddSourceStream(hprocess: super::super::super::Foundation::HANDLE, base: u64, streamfile: P2, buffer: Option<&[u8]>) -> windows_core::Result<()> @@ -933,7 +922,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStream(hprocess : super::super::super::Foundation:: HANDLE, base : u64, streamfile : windows_core::PCSTR, buffer : *const u8, size : usize) -> super::super::super::Foundation:: BOOL); - SymAddSourceStream(core::mem::transmute(hprocess), core::mem::transmute(base), streamfile.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + SymAddSourceStream(hprocess, base, streamfile.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn SymAddSourceStreamA(hprocess: super::super::super::Foundation::HANDLE, base: u64, streamfile: P2, buffer: Option<&[u8]>) -> super::super::super::Foundation::BOOL @@ -941,7 +930,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStreamA(hprocess : super::super::super::Foundation:: HANDLE, base : u64, streamfile : windows_core::PCSTR, buffer : *const u8, size : usize) -> super::super::super::Foundation:: BOOL); - SymAddSourceStreamA(core::mem::transmute(hprocess), core::mem::transmute(base), streamfile.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + SymAddSourceStreamA(hprocess, base, streamfile.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn SymAddSourceStreamW(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, buffer: Option<&[u8]>) -> windows_core::Result<()> @@ -949,7 +938,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStreamW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, buffer : *const u8, size : usize) -> super::super::super::Foundation:: BOOL); - SymAddSourceStreamW(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + SymAddSourceStreamW(hprocess, base, filespec.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn SymAddSymbol(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, name: P2, address: u64, size: u32, flags: u32) -> windows_core::Result<()> @@ -957,7 +946,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymAddSymbol(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, address : u64, size : u32, flags : u32) -> super::super::super::Foundation:: BOOL); - SymAddSymbol(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), name.param().abi(), core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(flags)).ok() + SymAddSymbol(hprocess, baseofdll, name.param().abi(), address, size, flags).ok() } #[inline] pub unsafe fn SymAddSymbolW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, name: P2, address: u64, size: u32, flags: u32) -> windows_core::Result<()> @@ -965,22 +954,22 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymAddSymbolW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, address : u64, size : u32, flags : u32) -> super::super::super::Foundation:: BOOL); - SymAddSymbolW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), name.param().abi(), core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(flags)).ok() + SymAddSymbolW(hprocess, baseofdll, name.param().abi(), address, size, flags).ok() } #[inline] pub unsafe fn SymAddrIncludeInlineTrace(hprocess: super::super::super::Foundation::HANDLE, address: u64) -> u32 { windows_targets::link!("dbghelp.dll" "system" fn SymAddrIncludeInlineTrace(hprocess : super::super::super::Foundation:: HANDLE, address : u64) -> u32); - SymAddrIncludeInlineTrace(core::mem::transmute(hprocess), core::mem::transmute(address)) + SymAddrIncludeInlineTrace(hprocess, address) } #[inline] pub unsafe fn SymCleanup(hprocess: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymCleanup(hprocess : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - SymCleanup(core::mem::transmute(hprocess)).ok() + SymCleanup(hprocess).ok() } #[inline] pub unsafe fn SymCompareInlineTrace(hprocess: super::super::super::Foundation::HANDLE, address1: u64, inlinecontext1: u32, retaddress1: u64, address2: u64, retaddress2: u64) -> u32 { windows_targets::link!("dbghelp.dll" "system" fn SymCompareInlineTrace(hprocess : super::super::super::Foundation:: HANDLE, address1 : u64, inlinecontext1 : u32, retaddress1 : u64, address2 : u64, retaddress2 : u64) -> u32); - SymCompareInlineTrace(core::mem::transmute(hprocess), core::mem::transmute(address1), core::mem::transmute(inlinecontext1), core::mem::transmute(retaddress1), core::mem::transmute(address2), core::mem::transmute(retaddress2)) + SymCompareInlineTrace(hprocess, address1, inlinecontext1, retaddress1, address2, retaddress2) } #[inline] pub unsafe fn SymDeleteSymbol(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, name: P2, address: u64, flags: u32) -> windows_core::Result<()> @@ -988,7 +977,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymDeleteSymbol(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, address : u64, flags : u32) -> super::super::super::Foundation:: BOOL); - SymDeleteSymbol(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), name.param().abi(), core::mem::transmute(address), core::mem::transmute(flags)).ok() + SymDeleteSymbol(hprocess, baseofdll, name.param().abi(), address, flags).ok() } #[inline] pub unsafe fn SymDeleteSymbolW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, name: P2, address: u64, flags: u32) -> windows_core::Result<()> @@ -996,7 +985,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymDeleteSymbolW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, address : u64, flags : u32) -> super::super::super::Foundation:: BOOL); - SymDeleteSymbolW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), name.param().abi(), core::mem::transmute(address), core::mem::transmute(flags)).ok() + SymDeleteSymbolW(hprocess, baseofdll, name.param().abi(), address, flags).ok() } #[inline] pub unsafe fn SymEnumLines(hprocess: super::super::super::Foundation::HANDLE, base: u64, obj: P2, file: P3, enumlinescallback: PSYM_ENUMLINES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1005,7 +994,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumLines(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCSTR, file : windows_core::PCSTR, enumlinescallback : PSYM_ENUMLINES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumLines(core::mem::transmute(hprocess), core::mem::transmute(base), obj.param().abi(), file.param().abi(), core::mem::transmute(enumlinescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumLines(hprocess, base, obj.param().abi(), file.param().abi(), enumlinescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumLinesW(hprocess: super::super::super::Foundation::HANDLE, base: u64, obj: P2, file: P3, enumlinescallback: PSYM_ENUMLINES_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1014,17 +1003,17 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumLinesW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCWSTR, file : windows_core::PCWSTR, enumlinescallback : PSYM_ENUMLINES_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumLinesW(core::mem::transmute(hprocess), core::mem::transmute(base), obj.param().abi(), file.param().abi(), core::mem::transmute(enumlinescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumLinesW(hprocess, base, obj.param().abi(), file.param().abi(), enumlinescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumProcesses(enumprocessescallback: PSYM_ENUMPROCESSES_CALLBACK, usercontext: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumProcesses(enumprocessescallback : PSYM_ENUMPROCESSES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumProcesses(core::mem::transmute(enumprocessescallback), core::mem::transmute(usercontext)).ok() + SymEnumProcesses(enumprocessescallback, usercontext).ok() } #[inline] pub unsafe fn SymEnumSourceFileTokens(hprocess: super::super::super::Foundation::HANDLE, base: u64, callback: PENUMSOURCEFILETOKENSCALLBACK) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFileTokens(hprocess : super::super::super::Foundation:: HANDLE, base : u64, callback : PENUMSOURCEFILETOKENSCALLBACK) -> super::super::super::Foundation:: BOOL); - SymEnumSourceFileTokens(core::mem::transmute(hprocess), core::mem::transmute(base), core::mem::transmute(callback)).ok() + SymEnumSourceFileTokens(hprocess, base, callback).ok() } #[inline] pub unsafe fn SymEnumSourceFiles(hprocess: super::super::super::Foundation::HANDLE, modbase: u64, mask: P2, cbsrcfiles: PSYM_ENUMSOURCEFILES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1032,7 +1021,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFiles(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, mask : windows_core::PCSTR, cbsrcfiles : PSYM_ENUMSOURCEFILES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSourceFiles(core::mem::transmute(hprocess), core::mem::transmute(modbase), mask.param().abi(), core::mem::transmute(cbsrcfiles), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSourceFiles(hprocess, modbase, mask.param().abi(), cbsrcfiles, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSourceFilesW(hprocess: super::super::super::Foundation::HANDLE, modbase: u64, mask: P2, cbsrcfiles: PSYM_ENUMSOURCEFILES_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1040,7 +1029,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFilesW(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, mask : windows_core::PCWSTR, cbsrcfiles : PSYM_ENUMSOURCEFILES_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSourceFilesW(core::mem::transmute(hprocess), core::mem::transmute(modbase), mask.param().abi(), core::mem::transmute(cbsrcfiles), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSourceFilesW(hprocess, modbase, mask.param().abi(), cbsrcfiles, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSourceLines(hprocess: super::super::super::Foundation::HANDLE, base: u64, obj: P2, file: P3, line: Option, flags: u32, enumlinescallback: PSYM_ENUMLINES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1049,7 +1038,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceLines(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCSTR, file : windows_core::PCSTR, line : u32, flags : u32, enumlinescallback : PSYM_ENUMLINES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSourceLines(core::mem::transmute(hprocess), core::mem::transmute(base), obj.param().abi(), file.param().abi(), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(enumlinescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSourceLines(hprocess, base, obj.param().abi(), file.param().abi(), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), flags, enumlinescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSourceLinesW(hprocess: super::super::super::Foundation::HANDLE, base: u64, obj: P2, file: P3, line: Option, flags: u32, enumlinescallback: PSYM_ENUMLINES_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1058,12 +1047,12 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceLinesW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCWSTR, file : windows_core::PCWSTR, line : u32, flags : u32, enumlinescallback : PSYM_ENUMLINES_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSourceLinesW(core::mem::transmute(hprocess), core::mem::transmute(base), obj.param().abi(), file.param().abi(), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(enumlinescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSourceLinesW(hprocess, base, obj.param().abi(), file.param().abi(), core::mem::transmute(line.unwrap_or(core::mem::zeroed())), flags, enumlinescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSym(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSym(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSym(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))) + SymEnumSym(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SymEnumSymbols(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, mask: P2, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1071,7 +1060,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbols(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSymbols(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), mask.param().abi(), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSymbols(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSymbolsEx(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, mask: P2, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> @@ -1079,7 +1068,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsEx(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); - SymEnumSymbolsEx(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), mask.param().abi(), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(options)).ok() + SymEnumSymbolsEx(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), options).ok() } #[inline] pub unsafe fn SymEnumSymbolsExW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, mask: P2, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> @@ -1087,17 +1076,17 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsExW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); - SymEnumSymbolsExW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), mask.param().abi(), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(options)).ok() + SymEnumSymbolsExW(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), options).ok() } #[inline] pub unsafe fn SymEnumSymbolsForAddr(hprocess: super::super::super::Foundation::HANDLE, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsForAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSymbolsForAddr(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSymbolsForAddr(hprocess, address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSymbolsForAddrW(hprocess: super::super::super::Foundation::HANDLE, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsForAddrW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSymbolsForAddrW(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSymbolsForAddrW(hprocess, address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumSymbolsW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, mask: P2, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1105,12 +1094,12 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumSymbolsW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), mask.param().abi(), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumSymbolsW(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumTypes(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypes(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumTypes(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumTypes(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumTypesByName(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, mask: P2, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1118,7 +1107,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesByName(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumTypesByName(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), mask.param().abi(), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumTypesByName(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumTypesByNameW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, mask: P2, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1126,50 +1115,50 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesByNameW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumTypesByNameW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), mask.param().abi(), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumTypesByNameW(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumTypesW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumTypesW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumTypesW(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateModules(hprocess: super::super::super::Foundation::HANDLE, enummodulescallback: PSYM_ENUMMODULES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModules(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateModules(core::mem::transmute(hprocess), core::mem::transmute(enummodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateModules(hprocess, enummodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumerateModules64(hprocess: super::super::super::Foundation::HANDLE, enummodulescallback: PSYM_ENUMMODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModules64(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateModules64(core::mem::transmute(hprocess), core::mem::transmute(enummodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateModules64(hprocess, enummodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumerateModulesW64(hprocess: super::super::super::Foundation::HANDLE, enummodulescallback: PSYM_ENUMMODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModulesW64(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateModulesW64(core::mem::transmute(hprocess), core::mem::transmute(enummodulescallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateModulesW64(hprocess, enummodulescallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateSymbols(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u32, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbols(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateSymbols(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateSymbols(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumerateSymbols64(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbols64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateSymbols64(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateSymbols64(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateSymbolsW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u32, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbolsW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateSymbolsW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateSymbolsW(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymEnumerateSymbolsW64(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK64W, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbolsW64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK64W, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymEnumerateSymbolsW64(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymEnumerateSymbolsW64(hprocess, baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymFindDebugInfoFile(hprocess: super::super::super::Foundation::HANDLE, filename: P1, debugfilepath: windows_core::PSTR, callback: Option, callerdata: Option<*const core::ffi::c_void>) -> windows_core::Result @@ -1177,7 +1166,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFindDebugInfoFile(hprocess : super::super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, debugfilepath : windows_core::PSTR, callback : PFIND_DEBUG_FILE_CALLBACK, callerdata : *const core::ffi::c_void) -> super::super::super::Foundation:: HANDLE); - let result__ = SymFindDebugInfoFile(core::mem::transmute(hprocess), filename.param().abi(), core::mem::transmute(debugfilepath), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callerdata.unwrap_or(core::mem::zeroed()))); + let result__ = SymFindDebugInfoFile(hprocess, filename.param().abi(), core::mem::transmute(debugfilepath), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callerdata.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1186,7 +1175,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFindDebugInfoFileW(hprocess : super::super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, debugfilepath : windows_core::PWSTR, callback : PFIND_DEBUG_FILE_CALLBACKW, callerdata : *const core::ffi::c_void) -> super::super::super::Foundation:: HANDLE); - let result__ = SymFindDebugInfoFileW(core::mem::transmute(hprocess), filename.param().abi(), core::mem::transmute(debugfilepath), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callerdata.unwrap_or(core::mem::zeroed()))); + let result__ = SymFindDebugInfoFileW(hprocess, filename.param().abi(), core::mem::transmute(debugfilepath), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callerdata.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1195,7 +1184,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFindExecutableImage(hprocess : super::super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, imagefilepath : windows_core::PSTR, callback : PFIND_EXE_FILE_CALLBACK, callerdata : *const core::ffi::c_void) -> super::super::super::Foundation:: HANDLE); - let result__ = SymFindExecutableImage(core::mem::transmute(hprocess), filename.param().abi(), core::mem::transmute(imagefilepath), core::mem::transmute(callback), core::mem::transmute(callerdata)); + let result__ = SymFindExecutableImage(hprocess, filename.param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1204,7 +1193,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFindExecutableImageW(hprocess : super::super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, imagefilepath : windows_core::PWSTR, callback : PFIND_EXE_FILE_CALLBACKW, callerdata : *const core::ffi::c_void) -> super::super::super::Foundation:: HANDLE); - let result__ = SymFindExecutableImageW(core::mem::transmute(hprocess), filename.param().abi(), core::mem::transmute(imagefilepath), core::mem::transmute(callback), core::mem::transmute(callerdata)); + let result__ = SymFindExecutableImageW(hprocess, filename.param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1214,7 +1203,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFindFileInPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : SYM_FIND_ID_OPTION, foundfile : windows_core::PSTR, callback : PFINDFILEINPATHCALLBACK, context : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymFindFileInPath(core::mem::transmute(hprocess), searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id.unwrap_or(core::mem::zeroed())), core::mem::transmute(two), core::mem::transmute(three), core::mem::transmute(flags), core::mem::transmute(foundfile), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + SymFindFileInPath(hprocess, searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id.unwrap_or(core::mem::zeroed())), two, three, flags, core::mem::transmute(foundfile), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymFindFileInPathW(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1, filename: P2, id: Option<*const core::ffi::c_void>, two: u32, three: u32, flags: SYM_FIND_ID_OPTION, foundfile: windows_core::PWSTR, callback: Option, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1223,37 +1212,37 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFindFileInPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCWSTR, filename : windows_core::PCWSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : SYM_FIND_ID_OPTION, foundfile : windows_core::PWSTR, callback : PFINDFILEINPATHCALLBACKW, context : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymFindFileInPathW(core::mem::transmute(hprocess), searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id.unwrap_or(core::mem::zeroed())), core::mem::transmute(two), core::mem::transmute(three), core::mem::transmute(flags), core::mem::transmute(foundfile), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + SymFindFileInPathW(hprocess, searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id.unwrap_or(core::mem::zeroed())), two, three, flags, core::mem::transmute(foundfile), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymFromAddr(hprocess: super::super::super::Foundation::HANDLE, address: u64, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64, displacement : *mut u64, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymFromAddr(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() + SymFromAddr(hprocess, address, core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromAddrW(hprocess: super::super::super::Foundation::HANDLE, address: u64, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromAddrW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, displacement : *mut u64, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymFromAddrW(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() + SymFromAddrW(hprocess, address, core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromIndex(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymFromIndex(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index), core::mem::transmute(symbol)).ok() + SymFromIndex(hprocess, baseofdll, index, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromIndexW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromIndexW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymFromIndexW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index), core::mem::transmute(symbol)).ok() + SymFromIndexW(hprocess, baseofdll, index, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromInlineContext(hprocess: super::super::super::Foundation::HANDLE, address: u64, inlinecontext: u32, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32, displacement : *mut u64, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymFromInlineContext(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(inlinecontext), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() + SymFromInlineContext(hprocess, address, inlinecontext, core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromInlineContextW(hprocess: super::super::super::Foundation::HANDLE, address: u64, inlinecontext: u32, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromInlineContextW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32, displacement : *mut u64, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymFromInlineContextW(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(inlinecontext), core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() + SymFromInlineContextW(hprocess, address, inlinecontext, core::mem::transmute(displacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromName(hprocess: super::super::super::Foundation::HANDLE, name: P1, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> @@ -1261,7 +1250,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFromName(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymFromName(core::mem::transmute(hprocess), name.param().abi(), core::mem::transmute(symbol)).ok() + SymFromName(hprocess, name.param().abi(), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromNameW(hprocess: super::super::super::Foundation::HANDLE, name: P1, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> @@ -1269,38 +1258,38 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFromNameW(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCWSTR, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymFromNameW(core::mem::transmute(hprocess), name.param().abi(), core::mem::transmute(symbol)).ok() + SymFromNameW(hprocess, name.param().abi(), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromToken(hprocess: super::super::super::Foundation::HANDLE, base: u64, token: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromToken(hprocess : super::super::super::Foundation:: HANDLE, base : u64, token : u32, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymFromToken(core::mem::transmute(hprocess), core::mem::transmute(base), core::mem::transmute(token), core::mem::transmute(symbol)).ok() + SymFromToken(hprocess, base, token, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymFromTokenW(hprocess: super::super::super::Foundation::HANDLE, base: u64, token: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, token : u32, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymFromTokenW(core::mem::transmute(hprocess), core::mem::transmute(base), core::mem::transmute(token), core::mem::transmute(symbol)).ok() + SymFromTokenW(hprocess, base, token, core::mem::transmute(symbol)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymFunctionTableAccess(hprocess: super::super::super::Foundation::HANDLE, addrbase: u32) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn SymFunctionTableAccess(hprocess : super::super::super::Foundation:: HANDLE, addrbase : u32) -> *mut core::ffi::c_void); - SymFunctionTableAccess(core::mem::transmute(hprocess), core::mem::transmute(addrbase)) + SymFunctionTableAccess(hprocess, addrbase) } #[inline] pub unsafe fn SymFunctionTableAccess64(hprocess: super::super::super::Foundation::HANDLE, addrbase: u64) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn SymFunctionTableAccess64(hprocess : super::super::super::Foundation:: HANDLE, addrbase : u64) -> *mut core::ffi::c_void); - SymFunctionTableAccess64(core::mem::transmute(hprocess), core::mem::transmute(addrbase)) + SymFunctionTableAccess64(hprocess, addrbase) } #[inline] pub unsafe fn SymFunctionTableAccess64AccessRoutines(hprocess: super::super::super::Foundation::HANDLE, addrbase: u64, readmemoryroutine: Option, getmodulebaseroutine: Option) -> *mut core::ffi::c_void { windows_targets::link!("dbghelp.dll" "system" fn SymFunctionTableAccess64AccessRoutines(hprocess : super::super::super::Foundation:: HANDLE, addrbase : u64, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64) -> *mut core::ffi::c_void); - SymFunctionTableAccess64AccessRoutines(core::mem::transmute(hprocess), core::mem::transmute(addrbase), core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed()))) + SymFunctionTableAccess64AccessRoutines(hprocess, addrbase, core::mem::transmute(readmemoryroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(getmodulebaseroutine.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SymGetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn SymGetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS) -> super::super::super::Foundation:: BOOL); - SymGetExtendedOption(core::mem::transmute(option)) + SymGetExtendedOption(option) } #[inline] pub unsafe fn SymGetFileLineOffsets64(hprocess: super::super::super::Foundation::HANDLE, modulename: P1, filename: P2, buffer: &mut [u64]) -> u32 @@ -1309,7 +1298,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetFileLineOffsets64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, buffer : *mut u64, bufferlines : u32) -> u32); - SymGetFileLineOffsets64(core::mem::transmute(hprocess), modulename.param().abi(), filename.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + SymGetFileLineOffsets64(hprocess, modulename.param().abi(), filename.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[inline] pub unsafe fn SymGetHomeDirectory(r#type: IMAGEHLP_HD_TYPE, dir: &mut [u8]) -> windows_core::PSTR { @@ -1325,27 +1314,27 @@ pub unsafe fn SymGetHomeDirectoryW(r#type: IMAGEHLP_HD_TYPE, dir: &mut [u16]) -> #[inline] pub unsafe fn SymGetLineFromAddr(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddr(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); - SymGetLineFromAddr(core::mem::transmute(hprocess), core::mem::transmute(dwaddr), core::mem::transmute(pdwdisplacement), core::mem::transmute(line)).ok() + SymGetLineFromAddr(hprocess, dwaddr, core::mem::transmute(pdwdisplacement), core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLineFromAddr64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, pdwdisplacement: *mut u32, line64: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddr64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, pdwdisplacement : *mut u32, line64 : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLineFromAddr64(core::mem::transmute(hprocess), core::mem::transmute(qwaddr), core::mem::transmute(pdwdisplacement), core::mem::transmute(line64)).ok() + SymGetLineFromAddr64(hprocess, qwaddr, core::mem::transmute(pdwdisplacement), core::mem::transmute(line64)).ok() } #[inline] pub unsafe fn SymGetLineFromAddrW64(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u64, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddrW64(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u64, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLineFromAddrW64(core::mem::transmute(hprocess), core::mem::transmute(dwaddr), core::mem::transmute(pdwdisplacement), core::mem::transmute(line)).ok() + SymGetLineFromAddrW64(hprocess, dwaddr, core::mem::transmute(pdwdisplacement), core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLineFromInlineContext(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, inlinecontext: u32, qwmodulebaseaddress: Option, pdwdisplacement: *mut u32, line64: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, inlinecontext : u32, qwmodulebaseaddress : u64, pdwdisplacement : *mut u32, line64 : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLineFromInlineContext(core::mem::transmute(hprocess), core::mem::transmute(qwaddr), core::mem::transmute(inlinecontext), core::mem::transmute(qwmodulebaseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdisplacement), core::mem::transmute(line64)).ok() + SymGetLineFromInlineContext(hprocess, qwaddr, inlinecontext, core::mem::transmute(qwmodulebaseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdisplacement), core::mem::transmute(line64)).ok() } #[inline] pub unsafe fn SymGetLineFromInlineContextW(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u64, inlinecontext: u32, qwmodulebaseaddress: Option, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromInlineContextW(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u64, inlinecontext : u32, qwmodulebaseaddress : u64, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLineFromInlineContextW(core::mem::transmute(hprocess), core::mem::transmute(dwaddr), core::mem::transmute(inlinecontext), core::mem::transmute(qwmodulebaseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdisplacement), core::mem::transmute(line)).ok() + SymGetLineFromInlineContextW(hprocess, dwaddr, inlinecontext, core::mem::transmute(qwmodulebaseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwdisplacement), core::mem::transmute(line)).ok() } #[cfg(target_arch = "x86")] #[inline] @@ -1355,7 +1344,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromName(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); - SymGetLineFromName(core::mem::transmute(hprocess), modulename.param().abi(), filename.param().abi(), core::mem::transmute(dwlinenumber), core::mem::transmute(pldisplacement), core::mem::transmute(line)).ok() + SymGetLineFromName(hprocess, modulename.param().abi(), filename.param().abi(), dwlinenumber, core::mem::transmute(pldisplacement), core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLineFromName64(hprocess: super::super::super::Foundation::HANDLE, modulename: P1, filename: P2, dwlinenumber: u32, pldisplacement: *mut i32, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> @@ -1364,7 +1353,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromName64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLineFromName64(core::mem::transmute(hprocess), modulename.param().abi(), filename.param().abi(), core::mem::transmute(dwlinenumber), core::mem::transmute(pldisplacement), core::mem::transmute(line)).ok() + SymGetLineFromName64(hprocess, modulename.param().abi(), filename.param().abi(), dwlinenumber, core::mem::transmute(pldisplacement), core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLineFromNameW64(hprocess: super::super::super::Foundation::HANDLE, modulename: P1, filename: P2, dwlinenumber: u32, pldisplacement: *mut i32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> @@ -1373,77 +1362,77 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromNameW64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCWSTR, filename : windows_core::PCWSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLineFromNameW64(core::mem::transmute(hprocess), modulename.param().abi(), filename.param().abi(), core::mem::transmute(dwlinenumber), core::mem::transmute(pldisplacement), core::mem::transmute(line)).ok() + SymGetLineFromNameW64(hprocess, modulename.param().abi(), filename.param().abi(), dwlinenumber, core::mem::transmute(pldisplacement), core::mem::transmute(line)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLineNext(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); - SymGetLineNext(core::mem::transmute(hprocess), core::mem::transmute(line)).ok() + SymGetLineNext(hprocess, core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLineNext64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLineNext64(core::mem::transmute(hprocess), core::mem::transmute(line)).ok() + SymGetLineNext64(hprocess, core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLineNextW64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNextW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLineNextW64(core::mem::transmute(hprocess), core::mem::transmute(line)).ok() + SymGetLineNextW64(hprocess, core::mem::transmute(line)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLinePrev(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); - SymGetLinePrev(core::mem::transmute(hprocess), core::mem::transmute(line)).ok() + SymGetLinePrev(hprocess, core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLinePrev64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLinePrev64(core::mem::transmute(hprocess), core::mem::transmute(line)).ok() + SymGetLinePrev64(hprocess, core::mem::transmute(line)).ok() } #[inline] pub unsafe fn SymGetLinePrevW64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrevW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLinePrevW64(core::mem::transmute(hprocess), core::mem::transmute(line)).ok() + SymGetLinePrevW64(hprocess, core::mem::transmute(line)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleBase(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32) -> u32 { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleBase(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32) -> u32); - SymGetModuleBase(core::mem::transmute(hprocess), core::mem::transmute(dwaddr)) + SymGetModuleBase(hprocess, dwaddr) } #[inline] pub unsafe fn SymGetModuleBase64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64) -> u64 { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleBase64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64) -> u64); - SymGetModuleBase64(core::mem::transmute(hprocess), core::mem::transmute(qwaddr)) + SymGetModuleBase64(hprocess, qwaddr) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleInfo(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, moduleinfo: *mut IMAGEHLP_MODULE) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfo(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, moduleinfo : *mut IMAGEHLP_MODULE) -> super::super::super::Foundation:: BOOL); - SymGetModuleInfo(core::mem::transmute(hprocess), core::mem::transmute(dwaddr), core::mem::transmute(moduleinfo)).ok() + SymGetModuleInfo(hprocess, dwaddr, core::mem::transmute(moduleinfo)).ok() } #[inline] pub unsafe fn SymGetModuleInfo64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, moduleinfo: *mut IMAGEHLP_MODULE64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfo64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, moduleinfo : *mut IMAGEHLP_MODULE64) -> super::super::super::Foundation:: BOOL); - SymGetModuleInfo64(core::mem::transmute(hprocess), core::mem::transmute(qwaddr), core::mem::transmute(moduleinfo)).ok() + SymGetModuleInfo64(hprocess, qwaddr, core::mem::transmute(moduleinfo)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleInfoW(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, moduleinfo: *mut IMAGEHLP_MODULEW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfoW(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, moduleinfo : *mut IMAGEHLP_MODULEW) -> super::super::super::Foundation:: BOOL); - SymGetModuleInfoW(core::mem::transmute(hprocess), core::mem::transmute(dwaddr), core::mem::transmute(moduleinfo)).ok() + SymGetModuleInfoW(hprocess, dwaddr, core::mem::transmute(moduleinfo)).ok() } #[inline] pub unsafe fn SymGetModuleInfoW64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, moduleinfo: *mut IMAGEHLP_MODULEW64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfoW64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, moduleinfo : *mut IMAGEHLP_MODULEW64) -> super::super::super::Foundation:: BOOL); - SymGetModuleInfoW64(core::mem::transmute(hprocess), core::mem::transmute(qwaddr), core::mem::transmute(moduleinfo)).ok() + SymGetModuleInfoW64(hprocess, qwaddr, core::mem::transmute(moduleinfo)).ok() } #[inline] pub unsafe fn SymGetOmaps(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, omapto: *mut *mut OMAP, comapto: *mut u64, omapfrom: *mut *mut OMAP, comapfrom: *mut u64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetOmaps(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, omapto : *mut *mut OMAP, comapto : *mut u64, omapfrom : *mut *mut OMAP, comapfrom : *mut u64) -> super::super::super::Foundation:: BOOL); - SymGetOmaps(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(omapto), core::mem::transmute(comapto), core::mem::transmute(omapfrom), core::mem::transmute(comapfrom)).ok() + SymGetOmaps(hprocess, baseofdll, core::mem::transmute(omapto), core::mem::transmute(comapto), core::mem::transmute(omapfrom), core::mem::transmute(comapfrom)).ok() } #[inline] pub unsafe fn SymGetOptions() -> u32 { @@ -1453,22 +1442,22 @@ pub unsafe fn SymGetOptions() -> u32 { #[inline] pub unsafe fn SymGetScope(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetScope(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymGetScope(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index), core::mem::transmute(symbol)).ok() + SymGetScope(hprocess, baseofdll, index, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetScopeW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetScopeW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymGetScopeW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index), core::mem::transmute(symbol)).ok() + SymGetScopeW(hprocess, baseofdll, index, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetSearchPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PSTR, searchpathlength : u32) -> super::super::super::Foundation:: BOOL); - SymGetSearchPath(core::mem::transmute(hprocess), core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() + SymGetSearchPath(hprocess, core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSearchPathW(hprocess: super::super::super::Foundation::HANDLE, searchpatha: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSearchPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PWSTR, searchpathlength : u32) -> super::super::super::Foundation:: BOOL); - SymGetSearchPathW(core::mem::transmute(hprocess), core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() + SymGetSearchPathW(hprocess, core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFile(hprocess: super::super::super::Foundation::HANDLE, base: u64, params: P2, filespec: P3, filepath: &mut [u8]) -> windows_core::Result<()> @@ -1477,7 +1466,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFile(hprocess : super::super::super::Foundation:: HANDLE, base : u64, params : windows_core::PCSTR, filespec : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFile(core::mem::transmute(hprocess), core::mem::transmute(base), params.param().abi(), filespec.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFile(hprocess, base, params.param().abi(), filespec.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFileChecksum(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, pchecksumtype: *mut u32, pchecksum: &mut [u8], pactualbyteswritten: *mut u32) -> windows_core::Result<()> @@ -1485,7 +1474,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileChecksum(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, pchecksumtype : *mut u32, pchecksum : *mut u8, checksumsize : u32, pactualbyteswritten : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileChecksum(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), core::mem::transmute(pchecksumtype), core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), core::mem::transmute(pactualbyteswritten)).ok() + SymGetSourceFileChecksum(hprocess, base, filespec.param().abi(), core::mem::transmute(pchecksumtype), core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), core::mem::transmute(pactualbyteswritten)).ok() } #[inline] pub unsafe fn SymGetSourceFileChecksumW(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, pchecksumtype: *mut u32, pchecksum: &mut [u8], pactualbyteswritten: *mut u32) -> windows_core::Result<()> @@ -1493,7 +1482,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileChecksumW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, pchecksumtype : *mut u32, pchecksum : *mut u8, checksumsize : u32, pactualbyteswritten : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileChecksumW(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), core::mem::transmute(pchecksumtype), core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), core::mem::transmute(pactualbyteswritten)).ok() + SymGetSourceFileChecksumW(hprocess, base, filespec.param().abi(), core::mem::transmute(pchecksumtype), core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), core::mem::transmute(pactualbyteswritten)).ok() } #[inline] pub unsafe fn SymGetSourceFileFromToken(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, params: P2, filepath: &mut [u8]) -> windows_core::Result<()> @@ -1501,7 +1490,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromToken(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileFromToken(core::mem::transmute(hprocess), core::mem::transmute(token), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFileFromToken(hprocess, token, params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFileFromTokenByTokenName(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, tokenname: P2, params: P3, filepath: &mut [u8]) -> super::super::super::Foundation::BOOL @@ -1510,7 +1499,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenByTokenName(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, tokenname : windows_core::PCSTR, params : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileFromTokenByTokenName(core::mem::transmute(hprocess), core::mem::transmute(token), tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) + SymGetSourceFileFromTokenByTokenName(hprocess, token, tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) } #[inline] pub unsafe fn SymGetSourceFileFromTokenByTokenNameW(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, tokenname: P2, params: P3, filepath: &mut [u16]) -> super::super::super::Foundation::BOOL @@ -1519,7 +1508,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenByTokenNameW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, tokenname : windows_core::PCWSTR, params : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileFromTokenByTokenNameW(core::mem::transmute(hprocess), core::mem::transmute(token), tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) + SymGetSourceFileFromTokenByTokenNameW(hprocess, token, tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) } #[inline] pub unsafe fn SymGetSourceFileFromTokenW(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, params: P2, filepath: &mut [u16]) -> windows_core::Result<()> @@ -1527,7 +1516,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileFromTokenW(core::mem::transmute(hprocess), core::mem::transmute(token), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFileFromTokenW(hprocess, token, params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFileToken(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, token: *mut *mut core::ffi::c_void, size: *mut u32) -> windows_core::Result<()> @@ -1535,7 +1524,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileToken(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileToken(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), core::mem::transmute(token), core::mem::transmute(size)).ok() + SymGetSourceFileToken(hprocess, base, filespec.param().abi(), core::mem::transmute(token), core::mem::transmute(size)).ok() } #[inline] pub unsafe fn SymGetSourceFileTokenByTokenName(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, tokenname: P3, tokenparameters: P4, token: *mut *mut core::ffi::c_void, size: *mut u32) -> super::super::super::Foundation::BOOL @@ -1545,7 +1534,7 @@ where P4: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenByTokenName(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, tokenname : windows_core::PCSTR, tokenparameters : windows_core::PCSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileTokenByTokenName(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), core::mem::transmute(token), core::mem::transmute(size)) + SymGetSourceFileTokenByTokenName(hprocess, base, filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), core::mem::transmute(token), core::mem::transmute(size)) } #[inline] pub unsafe fn SymGetSourceFileTokenByTokenNameW(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, tokenname: P3, tokenparameters: P4, token: *mut *mut core::ffi::c_void, size: *mut u32) -> super::super::super::Foundation::BOOL @@ -1555,7 +1544,7 @@ where P4: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenByTokenNameW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, tokenname : windows_core::PCWSTR, tokenparameters : windows_core::PCWSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileTokenByTokenNameW(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), core::mem::transmute(token), core::mem::transmute(size)) + SymGetSourceFileTokenByTokenNameW(hprocess, base, filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), core::mem::transmute(token), core::mem::transmute(size)) } #[inline] pub unsafe fn SymGetSourceFileTokenW(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, token: *mut *mut core::ffi::c_void, size: *mut u32) -> windows_core::Result<()> @@ -1563,7 +1552,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileTokenW(core::mem::transmute(hprocess), core::mem::transmute(base), filespec.param().abi(), core::mem::transmute(token), core::mem::transmute(size)).ok() + SymGetSourceFileTokenW(hprocess, base, filespec.param().abi(), core::mem::transmute(token), core::mem::transmute(size)).ok() } #[inline] pub unsafe fn SymGetSourceFileW(hprocess: super::super::super::Foundation::HANDLE, base: u64, params: P2, filespec: P3, filepath: &mut [u16]) -> windows_core::Result<()> @@ -1572,7 +1561,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, params : windows_core::PCWSTR, filespec : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceFileW(core::mem::transmute(hprocess), core::mem::transmute(base), params.param().abi(), filespec.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFileW(hprocess, base, params.param().abi(), filespec.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceVarFromToken(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, params: P2, varname: P3, value: &mut [u8]) -> windows_core::Result<()> @@ -1581,7 +1570,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceVarFromToken(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCSTR, varname : windows_core::PCSTR, value : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceVarFromToken(core::mem::transmute(hprocess), core::mem::transmute(token), params.param().abi(), varname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + SymGetSourceVarFromToken(hprocess, token, params.param().abi(), varname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceVarFromTokenW(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, params: P2, varname: P3, value: &mut [u16]) -> windows_core::Result<()> @@ -1590,18 +1579,18 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceVarFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCWSTR, varname : windows_core::PCWSTR, value : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); - SymGetSourceVarFromTokenW(core::mem::transmute(hprocess), core::mem::transmute(token), params.param().abi(), varname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + SymGetSourceVarFromTokenW(hprocess, token, params.param().abi(), varname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymFromAddr(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, pdwdisplacement: Option<*mut u32>, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromAddr(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, pdwdisplacement : *mut u32, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); - SymGetSymFromAddr(core::mem::transmute(hprocess), core::mem::transmute(dwaddr), core::mem::transmute(pdwdisplacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() + SymGetSymFromAddr(hprocess, dwaddr, core::mem::transmute(pdwdisplacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetSymFromAddr64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, pdwdisplacement: Option<*mut u64>, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromAddr64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, pdwdisplacement : *mut u64, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); - SymGetSymFromAddr64(core::mem::transmute(hprocess), core::mem::transmute(qwaddr), core::mem::transmute(pdwdisplacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() + SymGetSymFromAddr64(hprocess, qwaddr, core::mem::transmute(pdwdisplacement.unwrap_or(core::mem::zeroed())), core::mem::transmute(symbol)).ok() } #[cfg(target_arch = "x86")] #[inline] @@ -1610,7 +1599,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromName(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); - SymGetSymFromName(core::mem::transmute(hprocess), name.param().abi(), core::mem::transmute(symbol)).ok() + SymGetSymFromName(hprocess, name.param().abi(), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetSymFromName64(hprocess: super::super::super::Foundation::HANDLE, name: P1, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> @@ -1618,29 +1607,29 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromName64(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); - SymGetSymFromName64(core::mem::transmute(hprocess), name.param().abi(), core::mem::transmute(symbol)).ok() + SymGetSymFromName64(hprocess, name.param().abi(), core::mem::transmute(symbol)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymNext(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); - SymGetSymNext(core::mem::transmute(hprocess), core::mem::transmute(symbol)).ok() + SymGetSymNext(hprocess, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetSymNext64(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); - SymGetSymNext64(core::mem::transmute(hprocess), core::mem::transmute(symbol)).ok() + SymGetSymNext64(hprocess, core::mem::transmute(symbol)).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymPrev(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); - SymGetSymPrev(core::mem::transmute(hprocess), core::mem::transmute(symbol)).ok() + SymGetSymPrev(hprocess, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetSymPrev64(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); - SymGetSymPrev64(core::mem::transmute(hprocess), core::mem::transmute(symbol)).ok() + SymGetSymPrev64(hprocess, core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetSymbolFile(hprocess: Option, sympath: P1, imagefile: P2, r#type: IMAGEHLP_SF_TYPE, symbolfile: &mut [u8], dbgfile: &mut [u8]) -> windows_core::Result<()> @@ -1666,7 +1655,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeFromName(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymGetTypeFromName(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), name.param().abi(), core::mem::transmute(symbol)).ok() + SymGetTypeFromName(hprocess, baseofdll, name.param().abi(), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetTypeFromNameW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, name: P2, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> @@ -1674,22 +1663,22 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeFromNameW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymGetTypeFromNameW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), name.param().abi(), core::mem::transmute(symbol)).ok() + SymGetTypeFromNameW(hprocess, baseofdll, name.param().abi(), core::mem::transmute(symbol)).ok() } #[inline] pub unsafe fn SymGetTypeInfo(hprocess: super::super::super::Foundation::HANDLE, modbase: u64, typeid: u32, gettype: IMAGEHLP_SYMBOL_TYPE_INFO, pinfo: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeInfo(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, typeid : u32, gettype : IMAGEHLP_SYMBOL_TYPE_INFO, pinfo : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymGetTypeInfo(core::mem::transmute(hprocess), core::mem::transmute(modbase), core::mem::transmute(typeid), core::mem::transmute(gettype), core::mem::transmute(pinfo)).ok() + SymGetTypeInfo(hprocess, modbase, typeid, gettype, core::mem::transmute(pinfo)).ok() } #[inline] pub unsafe fn SymGetTypeInfoEx(hprocess: super::super::super::Foundation::HANDLE, modbase: u64, params: *mut IMAGEHLP_GET_TYPE_INFO_PARAMS) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeInfoEx(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, params : *mut IMAGEHLP_GET_TYPE_INFO_PARAMS) -> super::super::super::Foundation:: BOOL); - SymGetTypeInfoEx(core::mem::transmute(hprocess), core::mem::transmute(modbase), core::mem::transmute(params)).ok() + SymGetTypeInfoEx(hprocess, modbase, core::mem::transmute(params)).ok() } #[inline] pub unsafe fn SymGetUnwindInfo(hprocess: super::super::super::Foundation::HANDLE, address: u64, buffer: Option<*mut core::ffi::c_void>, size: *mut u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn SymGetUnwindInfo(hprocess : super::super::super::Foundation:: HANDLE, address : u64, buffer : *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); - SymGetUnwindInfo(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) + SymGetUnwindInfo(hprocess, address, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(size)) } #[inline] pub unsafe fn SymInitialize(hprocess: super::super::super::Foundation::HANDLE, usersearchpath: P1, finvadeprocess: bool) -> windows_core::Result<()> @@ -1697,7 +1686,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymInitialize(hprocess : super::super::super::Foundation:: HANDLE, usersearchpath : windows_core::PCSTR, finvadeprocess : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymInitialize(core::mem::transmute(hprocess), usersearchpath.param().abi(), finvadeprocess.into()).ok() + SymInitialize(hprocess, usersearchpath.param().abi(), finvadeprocess.into()).ok() } #[inline] pub unsafe fn SymInitializeW(hprocess: super::super::super::Foundation::HANDLE, usersearchpath: P1, finvadeprocess: bool) -> windows_core::Result<()> @@ -1705,7 +1694,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymInitializeW(hprocess : super::super::super::Foundation:: HANDLE, usersearchpath : windows_core::PCWSTR, finvadeprocess : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymInitializeW(core::mem::transmute(hprocess), usersearchpath.param().abi(), finvadeprocess.into()).ok() + SymInitializeW(hprocess, usersearchpath.param().abi(), finvadeprocess.into()).ok() } #[cfg(target_arch = "x86")] #[inline] @@ -1715,7 +1704,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymLoadModule(hprocess : super::super::super::Foundation:: HANDLE, hfile : super::super::super::Foundation:: HANDLE, imagename : windows_core::PCSTR, modulename : windows_core::PCSTR, baseofdll : u32, sizeofdll : u32) -> u32); - SymLoadModule(core::mem::transmute(hprocess), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), core::mem::transmute(baseofdll), core::mem::transmute(sizeofdll)) + SymLoadModule(hprocess, core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), baseofdll, sizeofdll) } #[inline] pub unsafe fn SymLoadModule64(hprocess: super::super::super::Foundation::HANDLE, hfile: Option, imagename: P2, modulename: P3, baseofdll: u64, sizeofdll: u32) -> u64 @@ -1724,7 +1713,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymLoadModule64(hprocess : super::super::super::Foundation:: HANDLE, hfile : super::super::super::Foundation:: HANDLE, imagename : windows_core::PCSTR, modulename : windows_core::PCSTR, baseofdll : u64, sizeofdll : u32) -> u64); - SymLoadModule64(core::mem::transmute(hprocess), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), core::mem::transmute(baseofdll), core::mem::transmute(sizeofdll)) + SymLoadModule64(hprocess, core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), baseofdll, sizeofdll) } #[inline] pub unsafe fn SymLoadModuleEx(hprocess: super::super::super::Foundation::HANDLE, hfile: Option, imagename: P2, modulename: P3, baseofdll: u64, dllsize: u32, data: Option<*const MODLOAD_DATA>, flags: Option) -> u64 @@ -1733,7 +1722,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymLoadModuleEx(hprocess : super::super::super::Foundation:: HANDLE, hfile : super::super::super::Foundation:: HANDLE, imagename : windows_core::PCSTR, modulename : windows_core::PCSTR, baseofdll : u64, dllsize : u32, data : *const MODLOAD_DATA, flags : SYM_LOAD_FLAGS) -> u64); - SymLoadModuleEx(core::mem::transmute(hprocess), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), core::mem::transmute(baseofdll), core::mem::transmute(dllsize), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + SymLoadModuleEx(hprocess, core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), baseofdll, dllsize, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SymLoadModuleExW(hprocess: super::super::super::Foundation::HANDLE, hfile: Option, imagename: P2, modulename: P3, baseofdll: u64, dllsize: u32, data: Option<*const MODLOAD_DATA>, flags: Option) -> u64 @@ -1742,7 +1731,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymLoadModuleExW(hprocess : super::super::super::Foundation:: HANDLE, hfile : super::super::super::Foundation:: HANDLE, imagename : windows_core::PCWSTR, modulename : windows_core::PCWSTR, baseofdll : u64, dllsize : u32, data : *const MODLOAD_DATA, flags : SYM_LOAD_FLAGS) -> u64); - SymLoadModuleExW(core::mem::transmute(hprocess), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), core::mem::transmute(baseofdll), core::mem::transmute(dllsize), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + SymLoadModuleExW(hprocess, core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), imagename.param().abi(), modulename.param().abi(), baseofdll, dllsize, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SymMatchFileName(filename: P0, r#match: P1, filenamestop: Option<*mut windows_core::PSTR>, matchstop: Option<*mut windows_core::PSTR>) -> windows_core::Result<()> @@ -1792,59 +1781,59 @@ where #[inline] pub unsafe fn SymNext(hprocess: super::super::super::Foundation::HANDLE, si: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymNext(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymNext(core::mem::transmute(hprocess), core::mem::transmute(si)).ok() + SymNext(hprocess, core::mem::transmute(si)).ok() } #[inline] pub unsafe fn SymNextW(hprocess: super::super::super::Foundation::HANDLE, siw: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymNextW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymNextW(core::mem::transmute(hprocess), core::mem::transmute(siw)).ok() + SymNextW(hprocess, core::mem::transmute(siw)).ok() } #[inline] pub unsafe fn SymPrev(hprocess: super::super::super::Foundation::HANDLE, si: *mut SYMBOL_INFO) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymPrev(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymPrev(core::mem::transmute(hprocess), core::mem::transmute(si)).ok() + SymPrev(hprocess, core::mem::transmute(si)).ok() } #[inline] pub unsafe fn SymPrevW(hprocess: super::super::super::Foundation::HANDLE, siw: *mut SYMBOL_INFOW) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymPrevW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymPrevW(core::mem::transmute(hprocess), core::mem::transmute(siw)).ok() + SymPrevW(hprocess, core::mem::transmute(siw)).ok() } #[inline] pub unsafe fn SymQueryInlineTrace(hprocess: super::super::super::Foundation::HANDLE, startaddress: u64, startcontext: u32, startretaddress: u64, curaddress: u64, curcontext: *mut u32, curframeindex: *mut u32) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymQueryInlineTrace(hprocess : super::super::super::Foundation:: HANDLE, startaddress : u64, startcontext : u32, startretaddress : u64, curaddress : u64, curcontext : *mut u32, curframeindex : *mut u32) -> super::super::super::Foundation:: BOOL); - SymQueryInlineTrace(core::mem::transmute(hprocess), core::mem::transmute(startaddress), core::mem::transmute(startcontext), core::mem::transmute(startretaddress), core::mem::transmute(curaddress), core::mem::transmute(curcontext), core::mem::transmute(curframeindex)).ok() + SymQueryInlineTrace(hprocess, startaddress, startcontext, startretaddress, curaddress, core::mem::transmute(curcontext), core::mem::transmute(curframeindex)).ok() } #[inline] pub unsafe fn SymRefreshModuleList(hprocess: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymRefreshModuleList(hprocess : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - SymRefreshModuleList(core::mem::transmute(hprocess)).ok() + SymRefreshModuleList(hprocess).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymRegisterCallback(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_REGISTERED_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallback(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymRegisterCallback(core::mem::transmute(hprocess), core::mem::transmute(callbackfunction), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymRegisterCallback(hprocess, callbackfunction, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymRegisterCallback64(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_REGISTERED_CALLBACK64, usercontext: u64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallback64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK64, usercontext : u64) -> super::super::super::Foundation:: BOOL); - SymRegisterCallback64(core::mem::transmute(hprocess), core::mem::transmute(callbackfunction), core::mem::transmute(usercontext)).ok() + SymRegisterCallback64(hprocess, callbackfunction, usercontext).ok() } #[inline] pub unsafe fn SymRegisterCallbackW64(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_REGISTERED_CALLBACK64, usercontext: u64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallbackW64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK64, usercontext : u64) -> super::super::super::Foundation:: BOOL); - SymRegisterCallbackW64(core::mem::transmute(hprocess), core::mem::transmute(callbackfunction), core::mem::transmute(usercontext)).ok() + SymRegisterCallbackW64(hprocess, callbackfunction, usercontext).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymRegisterFunctionEntryCallback(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_FUNCENTRY_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymRegisterFunctionEntryCallback(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_FUNCENTRY_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymRegisterFunctionEntryCallback(core::mem::transmute(hprocess), core::mem::transmute(callbackfunction), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() + SymRegisterFunctionEntryCallback(hprocess, callbackfunction, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymRegisterFunctionEntryCallback64(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_FUNCENTRY_CALLBACK64, usercontext: u64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymRegisterFunctionEntryCallback64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_FUNCENTRY_CALLBACK64, usercontext : u64) -> super::super::super::Foundation:: BOOL); - SymRegisterFunctionEntryCallback64(core::mem::transmute(hprocess), core::mem::transmute(callbackfunction), core::mem::transmute(usercontext)).ok() + SymRegisterFunctionEntryCallback64(hprocess, callbackfunction, usercontext).ok() } #[inline] pub unsafe fn SymSearch(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: Option, symtag: Option, mask: P4, address: Option, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> @@ -1852,7 +1841,7 @@ where P4: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSearch(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symtag : u32, mask : windows_core::PCSTR, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); - SymSearch(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(symtag.unwrap_or(core::mem::zeroed())), mask.param().abi(), core::mem::transmute(address.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(options)).ok() + SymSearch(hprocess, baseofdll, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(symtag.unwrap_or(core::mem::zeroed())), mask.param().abi(), core::mem::transmute(address.unwrap_or(core::mem::zeroed())), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), options).ok() } #[inline] pub unsafe fn SymSearchW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: Option, symtag: Option, mask: P4, address: Option, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> @@ -1860,17 +1849,17 @@ where P4: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSearchW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symtag : u32, mask : windows_core::PCWSTR, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); - SymSearchW(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(symtag.unwrap_or(core::mem::zeroed())), mask.param().abi(), core::mem::transmute(address.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumsymbolscallback), core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(options)).ok() + SymSearchW(hprocess, baseofdll, core::mem::transmute(index.unwrap_or(core::mem::zeroed())), core::mem::transmute(symtag.unwrap_or(core::mem::zeroed())), mask.param().abi(), core::mem::transmute(address.unwrap_or(core::mem::zeroed())), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(core::mem::zeroed())), options).ok() } #[inline] pub unsafe fn SymSetContext(hprocess: super::super::super::Foundation::HANDLE, stackframe: *const IMAGEHLP_STACK_FRAME, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymSetContext(hprocess : super::super::super::Foundation:: HANDLE, stackframe : *const IMAGEHLP_STACK_FRAME, context : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - SymSetContext(core::mem::transmute(hprocess), core::mem::transmute(stackframe), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + SymSetContext(hprocess, stackframe, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SymSetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS, value: bool) -> super::super::super::Foundation::BOOL { windows_targets::link!("dbghelp.dll" "system" fn SymSetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS, value : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymSetExtendedOption(core::mem::transmute(option), value.into()) + SymSetExtendedOption(option, value.into()) } #[inline] pub unsafe fn SymSetHomeDirectory(hprocess: Option, dir: P1) -> windows_core::PSTR @@ -1891,27 +1880,27 @@ where #[inline] pub unsafe fn SymSetOptions(symoptions: u32) -> u32 { windows_targets::link!("dbghelp.dll" "system" fn SymSetOptions(symoptions : u32) -> u32); - SymSetOptions(core::mem::transmute(symoptions)) + SymSetOptions(symoptions) } #[inline] pub unsafe fn SymSetParentWindow(hwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymSetParentWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - SymSetParentWindow(core::mem::transmute(hwnd)).ok() + SymSetParentWindow(hwnd).ok() } #[inline] pub unsafe fn SymSetScopeFromAddr(hprocess: super::super::super::Foundation::HANDLE, address: u64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64) -> super::super::super::Foundation:: BOOL); - SymSetScopeFromAddr(core::mem::transmute(hprocess), core::mem::transmute(address)).ok() + SymSetScopeFromAddr(hprocess, address).ok() } #[inline] pub unsafe fn SymSetScopeFromIndex(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32) -> super::super::super::Foundation:: BOOL); - SymSetScopeFromIndex(core::mem::transmute(hprocess), core::mem::transmute(baseofdll), core::mem::transmute(index)).ok() + SymSetScopeFromIndex(hprocess, baseofdll, index).ok() } #[inline] pub unsafe fn SymSetScopeFromInlineContext(hprocess: super::super::super::Foundation::HANDLE, address: u64, inlinecontext: u32) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32) -> super::super::super::Foundation:: BOOL); - SymSetScopeFromInlineContext(core::mem::transmute(hprocess), core::mem::transmute(address), core::mem::transmute(inlinecontext)).ok() + SymSetScopeFromInlineContext(hprocess, address, inlinecontext).ok() } #[inline] pub unsafe fn SymSetSearchPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1) -> windows_core::Result<()> @@ -1919,7 +1908,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - SymSetSearchPath(core::mem::transmute(hprocess), searchpatha.param().abi()).ok() + SymSetSearchPath(hprocess, searchpatha.param().abi()).ok() } #[inline] pub unsafe fn SymSetSearchPathW(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1) -> windows_core::Result<()> @@ -1927,7 +1916,7 @@ where P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetSearchPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - SymSetSearchPathW(core::mem::transmute(hprocess), searchpatha.param().abi()).ok() + SymSetSearchPathW(hprocess, searchpatha.param().abi()).ok() } #[inline] pub unsafe fn SymSrvDeltaName(hprocess: super::super::super::Foundation::HANDLE, sympath: P1, r#type: P2, file1: P3, file2: P4) -> windows_core::PCSTR @@ -1938,7 +1927,7 @@ where P4: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvDeltaName(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCSTR, r#type : windows_core::PCSTR, file1 : windows_core::PCSTR, file2 : windows_core::PCSTR) -> windows_core::PCSTR); - SymSrvDeltaName(core::mem::transmute(hprocess), sympath.param().abi(), r#type.param().abi(), file1.param().abi(), file2.param().abi()) + SymSrvDeltaName(hprocess, sympath.param().abi(), r#type.param().abi(), file1.param().abi(), file2.param().abi()) } #[inline] pub unsafe fn SymSrvDeltaNameW(hprocess: super::super::super::Foundation::HANDLE, sympath: P1, r#type: P2, file1: P3, file2: P4) -> windows_core::PCWSTR @@ -1949,7 +1938,7 @@ where P4: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvDeltaNameW(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCWSTR, r#type : windows_core::PCWSTR, file1 : windows_core::PCWSTR, file2 : windows_core::PCWSTR) -> windows_core::PCWSTR); - SymSrvDeltaNameW(core::mem::transmute(hprocess), sympath.param().abi(), r#type.param().abi(), file1.param().abi(), file2.param().abi()) + SymSrvDeltaNameW(hprocess, sympath.param().abi(), r#type.param().abi(), file1.param().abi(), file2.param().abi()) } #[inline] pub unsafe fn SymSrvGetFileIndexInfo(file: P0, info: *mut SYMSRV_INDEX_INFO, flags: u32) -> windows_core::Result<()> @@ -1957,7 +1946,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexInfo(file : windows_core::PCSTR, info : *mut SYMSRV_INDEX_INFO, flags : u32) -> super::super::super::Foundation:: BOOL); - SymSrvGetFileIndexInfo(file.param().abi(), core::mem::transmute(info), core::mem::transmute(flags)).ok() + SymSrvGetFileIndexInfo(file.param().abi(), core::mem::transmute(info), flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexInfoW(file: P0, info: *mut SYMSRV_INDEX_INFOW, flags: u32) -> windows_core::Result<()> @@ -1965,7 +1954,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexInfoW(file : windows_core::PCWSTR, info : *mut SYMSRV_INDEX_INFOW, flags : u32) -> super::super::super::Foundation:: BOOL); - SymSrvGetFileIndexInfoW(file.param().abi(), core::mem::transmute(info), core::mem::transmute(flags)).ok() + SymSrvGetFileIndexInfoW(file.param().abi(), core::mem::transmute(info), flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexString(hprocess: super::super::super::Foundation::HANDLE, srvpath: P1, file: P2, index: &mut [u8], flags: u32) -> windows_core::Result<()> @@ -1974,7 +1963,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexString(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCSTR, file : windows_core::PCSTR, index : windows_core::PSTR, size : usize, flags : u32) -> super::super::super::Foundation:: BOOL); - SymSrvGetFileIndexString(core::mem::transmute(hprocess), srvpath.param().abi(), file.param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), core::mem::transmute(flags)).ok() + SymSrvGetFileIndexString(hprocess, srvpath.param().abi(), file.param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexStringW(hprocess: super::super::super::Foundation::HANDLE, srvpath: P1, file: P2, index: &mut [u16], flags: u32) -> windows_core::Result<()> @@ -1983,7 +1972,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexStringW(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCWSTR, file : windows_core::PCWSTR, index : windows_core::PWSTR, size : usize, flags : u32) -> super::super::super::Foundation:: BOOL); - SymSrvGetFileIndexStringW(core::mem::transmute(hprocess), srvpath.param().abi(), file.param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), core::mem::transmute(flags)).ok() + SymSrvGetFileIndexStringW(hprocess, srvpath.param().abi(), file.param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexes(file: P0, id: *mut windows_core::GUID, val1: *mut u32, val2: Option<*mut u32>, flags: u32) -> windows_core::Result<()> @@ -1991,7 +1980,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexes(file : windows_core::PCSTR, id : *mut windows_core::GUID, val1 : *mut u32, val2 : *mut u32, flags : u32) -> super::super::super::Foundation:: BOOL); - SymSrvGetFileIndexes(file.param().abi(), core::mem::transmute(id), core::mem::transmute(val1), core::mem::transmute(val2.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SymSrvGetFileIndexes(file.param().abi(), core::mem::transmute(id), core::mem::transmute(val1), core::mem::transmute(val2.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexesW(file: P0, id: *mut windows_core::GUID, val1: *mut u32, val2: Option<*mut u32>, flags: u32) -> windows_core::Result<()> @@ -1999,7 +1988,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexesW(file : windows_core::PCWSTR, id : *mut windows_core::GUID, val1 : *mut u32, val2 : *mut u32, flags : u32) -> super::super::super::Foundation:: BOOL); - SymSrvGetFileIndexesW(file.param().abi(), core::mem::transmute(id), core::mem::transmute(val1), core::mem::transmute(val2.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + SymSrvGetFileIndexesW(file.param().abi(), core::mem::transmute(id), core::mem::transmute(val1), core::mem::transmute(val2.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn SymSrvGetSupplement(hprocess: super::super::super::Foundation::HANDLE, sympath: P1, node: P2, file: P3) -> windows_core::PCSTR @@ -2009,7 +1998,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetSupplement(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCSTR, node : windows_core::PCSTR, file : windows_core::PCSTR) -> windows_core::PCSTR); - SymSrvGetSupplement(core::mem::transmute(hprocess), sympath.param().abi(), node.param().abi(), file.param().abi()) + SymSrvGetSupplement(hprocess, sympath.param().abi(), node.param().abi(), file.param().abi()) } #[inline] pub unsafe fn SymSrvGetSupplementW(hprocess: super::super::super::Foundation::HANDLE, sympath: P1, node: P2, file: P3) -> windows_core::PCWSTR @@ -2019,7 +2008,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetSupplementW(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCWSTR, node : windows_core::PCWSTR, file : windows_core::PCWSTR) -> windows_core::PCWSTR); - SymSrvGetSupplementW(core::mem::transmute(hprocess), sympath.param().abi(), node.param().abi(), file.param().abi()) + SymSrvGetSupplementW(hprocess, sympath.param().abi(), node.param().abi(), file.param().abi()) } #[inline] pub unsafe fn SymSrvIsStore(hprocess: Option, path: P1) -> windows_core::Result<()> @@ -2044,7 +2033,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvStoreFile(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCSTR, file : windows_core::PCSTR, flags : SYM_SRV_STORE_FILE_FLAGS) -> windows_core::PCSTR); - SymSrvStoreFile(core::mem::transmute(hprocess), srvpath.param().abi(), file.param().abi(), core::mem::transmute(flags)) + SymSrvStoreFile(hprocess, srvpath.param().abi(), file.param().abi(), flags) } #[inline] pub unsafe fn SymSrvStoreFileW(hprocess: super::super::super::Foundation::HANDLE, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> windows_core::PCWSTR @@ -2053,7 +2042,7 @@ where P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvStoreFileW(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCWSTR, file : windows_core::PCWSTR, flags : SYM_SRV_STORE_FILE_FLAGS) -> windows_core::PCWSTR); - SymSrvStoreFileW(core::mem::transmute(hprocess), srvpath.param().abi(), file.param().abi(), core::mem::transmute(flags)) + SymSrvStoreFileW(hprocess, srvpath.param().abi(), file.param().abi(), flags) } #[inline] pub unsafe fn SymSrvStoreSupplement(hprocess: super::super::super::Foundation::HANDLE, srvpath: P1, node: P2, file: P3, flags: u32) -> windows_core::PCSTR @@ -2063,7 +2052,7 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvStoreSupplement(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCSTR, node : windows_core::PCSTR, file : windows_core::PCSTR, flags : u32) -> windows_core::PCSTR); - SymSrvStoreSupplement(core::mem::transmute(hprocess), srvpath.param().abi(), node.param().abi(), file.param().abi(), core::mem::transmute(flags)) + SymSrvStoreSupplement(hprocess, srvpath.param().abi(), node.param().abi(), file.param().abi(), flags) } #[inline] pub unsafe fn SymSrvStoreSupplementW(hprocess: super::super::super::Foundation::HANDLE, sympath: P1, node: P2, file: P3, flags: u32) -> windows_core::PCWSTR @@ -2073,39 +2062,39 @@ where P3: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvStoreSupplementW(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCWSTR, node : windows_core::PCWSTR, file : windows_core::PCWSTR, flags : u32) -> windows_core::PCWSTR); - SymSrvStoreSupplementW(core::mem::transmute(hprocess), sympath.param().abi(), node.param().abi(), file.param().abi(), core::mem::transmute(flags)) + SymSrvStoreSupplementW(hprocess, sympath.param().abi(), node.param().abi(), file.param().abi(), flags) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymUnDName(sym: *const IMAGEHLP_SYMBOL, undecname: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymUnDName(sym : *const IMAGEHLP_SYMBOL, undecname : windows_core::PSTR, undecnamelength : u32) -> super::super::super::Foundation:: BOOL); - SymUnDName(core::mem::transmute(sym), core::mem::transmute(undecname.as_ptr()), undecname.len().try_into().unwrap()).ok() + SymUnDName(sym, core::mem::transmute(undecname.as_ptr()), undecname.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymUnDName64(sym: *const IMAGEHLP_SYMBOL64, undecname: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymUnDName64(sym : *const IMAGEHLP_SYMBOL64, undecname : windows_core::PSTR, undecnamelength : u32) -> super::super::super::Foundation:: BOOL); - SymUnDName64(core::mem::transmute(sym), core::mem::transmute(undecname.as_ptr()), undecname.len().try_into().unwrap()).ok() + SymUnDName64(sym, core::mem::transmute(undecname.as_ptr()), undecname.len().try_into().unwrap()).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymUnloadModule(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u32) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32) -> super::super::super::Foundation:: BOOL); - SymUnloadModule(core::mem::transmute(hprocess), core::mem::transmute(baseofdll)).ok() + SymUnloadModule(hprocess, baseofdll).ok() } #[inline] pub unsafe fn SymUnloadModule64(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64) -> windows_core::Result<()> { windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64) -> super::super::super::Foundation:: BOOL); - SymUnloadModule64(core::mem::transmute(hprocess), core::mem::transmute(baseofdll)).ok() + SymUnloadModule64(hprocess, baseofdll).ok() } #[inline] pub unsafe fn TerminateProcessOnMemoryExhaustion(failedallocationsize: usize) { windows_targets::link!("api-ms-win-core-errorhandling-l1-1-3.dll" "system" fn TerminateProcessOnMemoryExhaustion(failedallocationsize : usize)); - TerminateProcessOnMemoryExhaustion(core::mem::transmute(failedallocationsize)) + TerminateProcessOnMemoryExhaustion(failedallocationsize) } #[inline] pub unsafe fn TouchFileTimes(filehandle: super::super::super::Foundation::HANDLE, psystemtime: Option<*const super::super::super::Foundation::SYSTEMTIME>) -> windows_core::Result<()> { windows_targets::link!("imagehlp.dll" "system" fn TouchFileTimes(filehandle : super::super::super::Foundation:: HANDLE, psystemtime : *const super::super::super::Foundation:: SYSTEMTIME) -> super::super::super::Foundation:: BOOL); - TouchFileTimes(core::mem::transmute(filehandle), core::mem::transmute(psystemtime.unwrap_or(core::mem::zeroed()))).ok() + TouchFileTimes(filehandle, core::mem::transmute(psystemtime.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UnDecorateSymbolName(name: P0, outputstring: &mut [u8], flags: u32) -> u32 @@ -2113,7 +2102,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn UnDecorateSymbolName(name : windows_core::PCSTR, outputstring : windows_core::PSTR, maxstringlength : u32, flags : u32) -> u32); - UnDecorateSymbolName(name.param().abi(), core::mem::transmute(outputstring.as_ptr()), outputstring.len().try_into().unwrap(), core::mem::transmute(flags)) + UnDecorateSymbolName(name.param().abi(), core::mem::transmute(outputstring.as_ptr()), outputstring.len().try_into().unwrap(), flags) } #[inline] pub unsafe fn UnDecorateSymbolNameW(name: P0, outputstring: &mut [u16], flags: u32) -> u32 @@ -2121,7 +2110,7 @@ where P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn UnDecorateSymbolNameW(name : windows_core::PCWSTR, outputstring : windows_core::PWSTR, maxstringlength : u32, flags : u32) -> u32); - UnDecorateSymbolNameW(name.param().abi(), core::mem::transmute(outputstring.as_ptr()), outputstring.len().try_into().unwrap(), core::mem::transmute(flags)) + UnDecorateSymbolNameW(name.param().abi(), core::mem::transmute(outputstring.as_ptr()), outputstring.len().try_into().unwrap(), flags) } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] @@ -2133,7 +2122,7 @@ pub unsafe fn UnMapAndLoad(loadedimage: *mut LOADED_IMAGE) -> windows_core::Resu #[inline] pub unsafe fn UnhandledExceptionFilter(exceptioninfo: *const EXCEPTION_POINTERS) -> i32 { windows_targets::link!("kernel32.dll" "system" fn UnhandledExceptionFilter(exceptioninfo : *const EXCEPTION_POINTERS) -> i32); - UnhandledExceptionFilter(core::mem::transmute(exceptioninfo)) + UnhandledExceptionFilter(exceptioninfo) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -2143,7 +2132,7 @@ where P1: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn UpdateDebugInfoFile(imagefilename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR, ntheaders : *const IMAGE_NT_HEADERS32) -> super::super::super::Foundation:: BOOL); - UpdateDebugInfoFile(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), core::mem::transmute(ntheaders)).ok() + UpdateDebugInfoFile(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), ntheaders).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -2153,39 +2142,39 @@ where P1: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn UpdateDebugInfoFileEx(imagefilename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR, ntheaders : *const IMAGE_NT_HEADERS32, oldchecksum : u32) -> super::super::super::Foundation:: BOOL); - UpdateDebugInfoFileEx(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), core::mem::transmute(ntheaders), core::mem::transmute(oldchecksum)) + UpdateDebugInfoFileEx(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), ntheaders, oldchecksum) } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn WaitForDebugEvent(lpdebugevent: *mut DEBUG_EVENT, dwmilliseconds: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WaitForDebugEvent(lpdebugevent : *mut DEBUG_EVENT, dwmilliseconds : u32) -> super::super::super::Foundation:: BOOL); - WaitForDebugEvent(core::mem::transmute(lpdebugevent), core::mem::transmute(dwmilliseconds)).ok() + WaitForDebugEvent(core::mem::transmute(lpdebugevent), dwmilliseconds).ok() } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn WaitForDebugEventEx(lpdebugevent: *mut DEBUG_EVENT, dwmilliseconds: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WaitForDebugEventEx(lpdebugevent : *mut DEBUG_EVENT, dwmilliseconds : u32) -> super::super::super::Foundation:: BOOL); - WaitForDebugEventEx(core::mem::transmute(lpdebugevent), core::mem::transmute(dwmilliseconds)).ok() + WaitForDebugEventEx(core::mem::transmute(lpdebugevent), dwmilliseconds).ok() } #[inline] pub unsafe fn Wow64GetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *mut WOW64_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut WOW64_CONTEXT) -> super::super::super::Foundation:: BOOL); - Wow64GetThreadContext(core::mem::transmute(hthread), core::mem::transmute(lpcontext)).ok() + Wow64GetThreadContext(hthread, core::mem::transmute(lpcontext)).ok() } #[inline] pub unsafe fn Wow64GetThreadSelectorEntry(hthread: super::super::super::Foundation::HANDLE, dwselector: u32, lpselectorentry: *mut WOW64_LDT_ENTRY) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadSelectorEntry(hthread : super::super::super::Foundation:: HANDLE, dwselector : u32, lpselectorentry : *mut WOW64_LDT_ENTRY) -> super::super::super::Foundation:: BOOL); - Wow64GetThreadSelectorEntry(core::mem::transmute(hthread), core::mem::transmute(dwselector), core::mem::transmute(lpselectorentry)).ok() + Wow64GetThreadSelectorEntry(hthread, dwselector, core::mem::transmute(lpselectorentry)).ok() } #[inline] pub unsafe fn Wow64SetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *const WOW64_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Wow64SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const WOW64_CONTEXT) -> super::super::super::Foundation:: BOOL); - Wow64SetThreadContext(core::mem::transmute(hthread), core::mem::transmute(lpcontext)).ok() + Wow64SetThreadContext(hthread, lpcontext).ok() } #[inline] pub unsafe fn WriteProcessMemory(hprocess: super::super::super::Foundation::HANDLE, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nsize: usize, lpnumberofbyteswritten: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WriteProcessMemory(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, nsize : usize, lpnumberofbyteswritten : *mut usize) -> super::super::super::Foundation:: BOOL); - WriteProcessMemory(core::mem::transmute(hprocess), core::mem::transmute(lpbaseaddress), core::mem::transmute(lpbuffer), core::mem::transmute(nsize), core::mem::transmute(lpnumberofbyteswritten.unwrap_or(core::mem::zeroed()))).ok() + WriteProcessMemory(hprocess, lpbaseaddress, lpbuffer, nsize, core::mem::transmute(lpnumberofbyteswritten.unwrap_or(core::mem::zeroed()))).ok() } pub const ABNORMAL_RESET_DETECTED: BUGCHECK_ERROR = BUGCHECK_ERROR(327u32); pub const ACPI_BIOS_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(165u32); @@ -3783,11 +3772,11 @@ windows_core::imp::interface_hierarchy!(IDebugExtendedProperty, windows_core::IU impl IDebugExtendedProperty { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetExtendedPropertyInfo(&self, dwfieldspec: u32, nradix: u32, pextendedpropertyinfo: *mut ExtendedDebugPropertyInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExtendedPropertyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldspec), core::mem::transmute(nradix), core::mem::transmute(pextendedpropertyinfo)).ok() + (windows_core::Interface::vtable(self).GetExtendedPropertyInfo)(windows_core::Interface::as_raw(self), dwfieldspec, nradix, core::mem::transmute(pextendedpropertyinfo)).ok() } pub unsafe fn EnumExtendedMembers(&self, dwfieldspec: u32, nradix: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumExtendedMembers)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldspec), core::mem::transmute(nradix), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumExtendedMembers)(windows_core::Interface::as_raw(self), dwfieldspec, nradix, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3837,22 +3826,22 @@ windows_core::imp::define_interface!(IDebugProperty, IDebugProperty_Vtbl, 0x5197 windows_core::imp::interface_hierarchy!(IDebugProperty, windows_core::IUnknown); impl IDebugProperty { pub unsafe fn GetPropertyInfo(&self, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldspec), core::mem::transmute(nradix), core::mem::transmute(ppropertyinfo)).ok() + (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), dwfieldspec, nradix, core::mem::transmute(ppropertyinfo)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetExtendedInfo(&self, cinfos: u32, rgguidextendedinfo: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtendedInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(cinfos), core::mem::transmute(rgguidextendedinfo), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetExtendedInfo)(windows_core::Interface::as_raw(self), cinfos, rgguidextendedinfo, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetValueAsString(&self, pszvalue: P0, nradix: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueAsString)(windows_core::Interface::as_raw(self), pszvalue.param().abi(), core::mem::transmute(nradix)).ok() + (windows_core::Interface::vtable(self).SetValueAsString)(windows_core::Interface::as_raw(self), pszvalue.param().abi(), nradix).ok() } pub unsafe fn EnumMembers(&self, dwfieldspec: u32, nradix: u32, refiid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumMembers)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldspec), core::mem::transmute(nradix), core::mem::transmute(refiid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumMembers)(windows_core::Interface::as_raw(self), dwfieldspec, nradix, refiid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4066,7 +4055,7 @@ impl IEnumDebugExtendedPropertyInfo { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgextendedpropertyinfo.len().try_into().unwrap(), core::mem::transmute(rgextendedpropertyinfo.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -4157,7 +4146,7 @@ impl IEnumDebugPropertyInfo { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pi.len().try_into().unwrap(), core::mem::transmute(pi.as_ptr()), core::mem::transmute(pceltsfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5639,10 +5628,10 @@ windows_core::imp::define_interface!(IObjectSafety, IObjectSafety_Vtbl, 0xcb5bdc windows_core::imp::interface_hierarchy!(IObjectSafety, windows_core::IUnknown); impl IObjectSafety { pub unsafe fn GetInterfaceSafetyOptions(&self, riid: *const windows_core::GUID, pdwsupportedoptions: *mut u32, pdwenabledoptions: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInterfaceSafetyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(pdwsupportedoptions), core::mem::transmute(pdwenabledoptions)).ok() + (windows_core::Interface::vtable(self).GetInterfaceSafetyOptions)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(pdwsupportedoptions), core::mem::transmute(pdwenabledoptions)).ok() } pub unsafe fn SetInterfaceSafetyOptions(&self, riid: *const windows_core::GUID, dwoptionsetmask: u32, dwenabledoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInterfaceSafetyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(dwoptionsetmask), core::mem::transmute(dwenabledoptions)).ok() + (windows_core::Interface::vtable(self).SetInterfaceSafetyOptions)(windows_core::Interface::as_raw(self), riid, dwoptionsetmask, dwenabledoptions).ok() } } #[repr(C)] @@ -5704,18 +5693,18 @@ windows_core::imp::interface_hierarchy!(IPerPropertyBrowsing2, windows_core::IUn impl IPerPropertyBrowsing2 { pub unsafe fn GetDisplayString(&self, dispid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayString)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDisplayString)(windows_core::Interface::as_raw(self), dispid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn MapPropertyToPage(&self, dispid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MapPropertyToPage)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapPropertyToPage)(windows_core::Interface::as_raw(self), dispid, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetPredefinedStrings(&self, dispid: i32, pcastrings: *mut super::super::Ole::CALPOLESTR, pcacookies: *mut super::super::Ole::CADWORD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPredefinedStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), core::mem::transmute(pcastrings), core::mem::transmute(pcacookies)).ok() + (windows_core::Interface::vtable(self).GetPredefinedStrings)(windows_core::Interface::as_raw(self), dispid, core::mem::transmute(pcastrings), core::mem::transmute(pcacookies)).ok() } pub unsafe fn SetPredefinedValue(&self, dispid: i32, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPredefinedValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).SetPredefinedValue)(windows_core::Interface::as_raw(self), dispid, dwcookie).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs index 2fbdda1b3e..7176de098b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs @@ -9,7 +9,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ControlTraceA(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES, controlcode : EVENT_TRACE_CONTROL) -> super::super::super::Foundation:: WIN32_ERROR); - ControlTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), core::mem::transmute(properties), core::mem::transmute(controlcode)) + ControlTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), core::mem::transmute(properties), controlcode) } #[inline] pub unsafe fn ControlTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P1, properties: *mut EVENT_TRACE_PROPERTIES, controlcode: EVENT_TRACE_CONTROL) -> super::super::super::Foundation::WIN32_ERROR @@ -17,12 +17,12 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ControlTraceW(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES, controlcode : EVENT_TRACE_CONTROL) -> super::super::super::Foundation:: WIN32_ERROR); - ControlTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), core::mem::transmute(properties), core::mem::transmute(controlcode)) + ControlTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), core::mem::transmute(properties), controlcode) } #[inline] pub unsafe fn CreateTraceInstanceId(reghandle: super::super::super::Foundation::HANDLE, instinfo: *mut EVENT_INSTANCE_INFO) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn CreateTraceInstanceId(reghandle : super::super::super::Foundation:: HANDLE, instinfo : *mut EVENT_INSTANCE_INFO) -> super::super::super::Foundation:: WIN32_ERROR); - CreateTraceInstanceId(core::mem::transmute(reghandle), core::mem::transmute(instinfo)) + CreateTraceInstanceId(reghandle, core::mem::transmute(instinfo)) } #[inline] pub unsafe fn CveEventWrite(cveid: P0, additionaldetails: P1) -> i32 @@ -36,17 +36,17 @@ where #[inline] pub unsafe fn EnableTrace(enable: u32, enableflag: u32, enablelevel: u32, controlguid: *const windows_core::GUID, tracehandle: CONTROLTRACE_HANDLE) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn EnableTrace(enable : u32, enableflag : u32, enablelevel : u32, controlguid : *const windows_core::GUID, tracehandle : CONTROLTRACE_HANDLE) -> super::super::super::Foundation:: WIN32_ERROR); - EnableTrace(core::mem::transmute(enable), core::mem::transmute(enableflag), core::mem::transmute(enablelevel), core::mem::transmute(controlguid), core::mem::transmute(tracehandle)) + EnableTrace(enable, enableflag, enablelevel, controlguid, core::mem::transmute(tracehandle)) } #[inline] pub unsafe fn EnableTraceEx(providerid: *const windows_core::GUID, sourceid: Option<*const windows_core::GUID>, tracehandle: CONTROLTRACE_HANDLE, isenabled: u32, level: u8, matchanykeyword: u64, matchallkeyword: u64, enableproperty: u32, enablefilterdesc: Option<*const EVENT_FILTER_DESCRIPTOR>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn EnableTraceEx(providerid : *const windows_core::GUID, sourceid : *const windows_core::GUID, tracehandle : CONTROLTRACE_HANDLE, isenabled : u32, level : u8, matchanykeyword : u64, matchallkeyword : u64, enableproperty : u32, enablefilterdesc : *const EVENT_FILTER_DESCRIPTOR) -> super::super::super::Foundation:: WIN32_ERROR); - EnableTraceEx(core::mem::transmute(providerid), core::mem::transmute(sourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(tracehandle), core::mem::transmute(isenabled), core::mem::transmute(level), core::mem::transmute(matchanykeyword), core::mem::transmute(matchallkeyword), core::mem::transmute(enableproperty), core::mem::transmute(enablefilterdesc.unwrap_or(core::mem::zeroed()))) + EnableTraceEx(providerid, core::mem::transmute(sourceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(tracehandle), isenabled, level, matchanykeyword, matchallkeyword, enableproperty, core::mem::transmute(enablefilterdesc.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnableTraceEx2(tracehandle: CONTROLTRACE_HANDLE, providerid: *const windows_core::GUID, controlcode: u32, level: u8, matchanykeyword: u64, matchallkeyword: u64, timeout: u32, enableparameters: Option<*const ENABLE_TRACE_PARAMETERS>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn EnableTraceEx2(tracehandle : CONTROLTRACE_HANDLE, providerid : *const windows_core::GUID, controlcode : u32, level : u8, matchanykeyword : u64, matchallkeyword : u64, timeout : u32, enableparameters : *const ENABLE_TRACE_PARAMETERS) -> super::super::super::Foundation:: WIN32_ERROR); - EnableTraceEx2(core::mem::transmute(tracehandle), core::mem::transmute(providerid), core::mem::transmute(controlcode), core::mem::transmute(level), core::mem::transmute(matchanykeyword), core::mem::transmute(matchallkeyword), core::mem::transmute(timeout), core::mem::transmute(enableparameters.unwrap_or(core::mem::zeroed()))) + EnableTraceEx2(core::mem::transmute(tracehandle), providerid, controlcode, level, matchanykeyword, matchallkeyword, timeout, core::mem::transmute(enableparameters.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumerateTraceGuids(guidpropertiesarray: &mut [*mut TRACE_GUID_PROPERTIES], guidcount: *mut u32) -> super::super::super::Foundation::WIN32_ERROR { @@ -56,64 +56,64 @@ pub unsafe fn EnumerateTraceGuids(guidpropertiesarray: &mut [*mut TRACE_GUID_PRO #[inline] pub unsafe fn EnumerateTraceGuidsEx(tracequeryinfoclass: TRACE_QUERY_INFO_CLASS, inbuffer: Option<*const core::ffi::c_void>, inbuffersize: u32, outbuffer: Option<*mut core::ffi::c_void>, outbuffersize: u32, returnlength: *mut u32) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn EnumerateTraceGuidsEx(tracequeryinfoclass : TRACE_QUERY_INFO_CLASS, inbuffer : *const core::ffi::c_void, inbuffersize : u32, outbuffer : *mut core::ffi::c_void, outbuffersize : u32, returnlength : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - EnumerateTraceGuidsEx(core::mem::transmute(tracequeryinfoclass), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outbuffersize), core::mem::transmute(returnlength)) + EnumerateTraceGuidsEx(tracequeryinfoclass, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outbuffersize, core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EventAccessControl(guid: *const windows_core::GUID, operation: u32, sid: super::super::super::Security::PSID, rights: u32, allowordeny: bool) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventAccessControl(guid : *const windows_core::GUID, operation : u32, sid : super::super::super::Security:: PSID, rights : u32, allowordeny : bool) -> u32); - EventAccessControl(core::mem::transmute(guid), core::mem::transmute(operation), core::mem::transmute(sid), core::mem::transmute(rights), core::mem::transmute(allowordeny)) + EventAccessControl(guid, operation, sid, rights, allowordeny) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EventAccessQuery(guid: *const windows_core::GUID, buffer: Option, buffersize: *mut u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventAccessQuery(guid : *const windows_core::GUID, buffer : super::super::super::Security:: PSECURITY_DESCRIPTOR, buffersize : *mut u32) -> u32); - EventAccessQuery(core::mem::transmute(guid), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + EventAccessQuery(guid, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[inline] pub unsafe fn EventAccessRemove(guid: *const windows_core::GUID) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventAccessRemove(guid : *const windows_core::GUID) -> u32); - EventAccessRemove(core::mem::transmute(guid)) + EventAccessRemove(guid) } #[inline] pub unsafe fn EventActivityIdControl(controlcode: u32, activityid: *mut windows_core::GUID) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventActivityIdControl(controlcode : u32, activityid : *mut windows_core::GUID) -> u32); - EventActivityIdControl(core::mem::transmute(controlcode), core::mem::transmute(activityid)) + EventActivityIdControl(controlcode, core::mem::transmute(activityid)) } #[inline] pub unsafe fn EventEnabled(reghandle: REGHANDLE, eventdescriptor: *const EVENT_DESCRIPTOR) -> bool { windows_targets::link!("advapi32.dll" "system" fn EventEnabled(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR) -> bool); - EventEnabled(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor)) + EventEnabled(reghandle, eventdescriptor) } #[inline] pub unsafe fn EventProviderEnabled(reghandle: REGHANDLE, level: u8, keyword: u64) -> bool { windows_targets::link!("advapi32.dll" "system" fn EventProviderEnabled(reghandle : REGHANDLE, level : u8, keyword : u64) -> bool); - EventProviderEnabled(core::mem::transmute(reghandle), core::mem::transmute(level), core::mem::transmute(keyword)) + EventProviderEnabled(reghandle, level, keyword) } #[inline] pub unsafe fn EventRegister(providerid: *const windows_core::GUID, enablecallback: Option, callbackcontext: Option<*const core::ffi::c_void>, reghandle: *mut REGHANDLE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventRegister(providerid : *const windows_core::GUID, enablecallback : PENABLECALLBACK, callbackcontext : *const core::ffi::c_void, reghandle : *mut REGHANDLE) -> u32); - EventRegister(core::mem::transmute(providerid), core::mem::transmute(enablecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(reghandle)) + EventRegister(providerid, core::mem::transmute(enablecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(reghandle)) } #[inline] pub unsafe fn EventSetInformation(reghandle: REGHANDLE, informationclass: EVENT_INFO_CLASS, eventinformation: *const core::ffi::c_void, informationlength: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventSetInformation(reghandle : REGHANDLE, informationclass : EVENT_INFO_CLASS, eventinformation : *const core::ffi::c_void, informationlength : u32) -> u32); - EventSetInformation(core::mem::transmute(reghandle), core::mem::transmute(informationclass), core::mem::transmute(eventinformation), core::mem::transmute(informationlength)) + EventSetInformation(reghandle, informationclass, eventinformation, informationlength) } #[inline] pub unsafe fn EventUnregister(reghandle: REGHANDLE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventUnregister(reghandle : REGHANDLE) -> u32); - EventUnregister(core::mem::transmute(reghandle)) + EventUnregister(reghandle) } #[inline] pub unsafe fn EventWrite(reghandle: REGHANDLE, eventdescriptor: *const EVENT_DESCRIPTOR, userdata: Option<&[EVENT_DATA_DESCRIPTOR]>) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventWrite(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR, userdatacount : u32, userdata : *const EVENT_DATA_DESCRIPTOR) -> u32); - EventWrite(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + EventWrite(reghandle, eventdescriptor, userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn EventWriteEx(reghandle: REGHANDLE, eventdescriptor: *const EVENT_DESCRIPTOR, filter: u64, flags: u32, activityid: Option<*const windows_core::GUID>, relatedactivityid: Option<*const windows_core::GUID>, userdata: Option<&[EVENT_DATA_DESCRIPTOR]>) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventWriteEx(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR, filter : u64, flags : u32, activityid : *const windows_core::GUID, relatedactivityid : *const windows_core::GUID, userdatacount : u32, userdata : *const EVENT_DATA_DESCRIPTOR) -> u32); - EventWriteEx(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor), core::mem::transmute(filter), core::mem::transmute(flags), core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + EventWriteEx(reghandle, eventdescriptor, filter, flags, core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn EventWriteString(reghandle: REGHANDLE, level: u8, keyword: u64, string: P3) -> u32 @@ -121,12 +121,12 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EventWriteString(reghandle : REGHANDLE, level : u8, keyword : u64, string : windows_core::PCWSTR) -> u32); - EventWriteString(core::mem::transmute(reghandle), core::mem::transmute(level), core::mem::transmute(keyword), string.param().abi()) + EventWriteString(reghandle, level, keyword, string.param().abi()) } #[inline] pub unsafe fn EventWriteTransfer(reghandle: REGHANDLE, eventdescriptor: *const EVENT_DESCRIPTOR, activityid: Option<*const windows_core::GUID>, relatedactivityid: Option<*const windows_core::GUID>, userdata: Option<&[EVENT_DATA_DESCRIPTOR]>) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EventWriteTransfer(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR, activityid : *const windows_core::GUID, relatedactivityid : *const windows_core::GUID, userdatacount : u32, userdata : *const EVENT_DATA_DESCRIPTOR) -> u32); - EventWriteTransfer(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor), core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + EventWriteTransfer(reghandle, eventdescriptor, core::mem::transmute(activityid.unwrap_or(core::mem::zeroed())), core::mem::transmute(relatedactivityid.unwrap_or(core::mem::zeroed())), userdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(userdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn FlushTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P1, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR @@ -147,17 +147,17 @@ where #[inline] pub unsafe fn GetTraceEnableFlags(tracehandle: u64) -> u32 { windows_targets::link!("advapi32.dll" "system" fn GetTraceEnableFlags(tracehandle : u64) -> u32); - GetTraceEnableFlags(core::mem::transmute(tracehandle)) + GetTraceEnableFlags(tracehandle) } #[inline] pub unsafe fn GetTraceEnableLevel(tracehandle: u64) -> u8 { windows_targets::link!("advapi32.dll" "system" fn GetTraceEnableLevel(tracehandle : u64) -> u8); - GetTraceEnableLevel(core::mem::transmute(tracehandle)) + GetTraceEnableLevel(tracehandle) } #[inline] pub unsafe fn GetTraceLoggerHandle(buffer: *const core::ffi::c_void) -> u64 { windows_targets::link!("advapi32.dll" "system" fn GetTraceLoggerHandle(buffer : *const core::ffi::c_void) -> u64); - GetTraceLoggerHandle(core::mem::transmute(buffer)) + GetTraceLoggerHandle(buffer) } #[cfg(feature = "Win32_System_Time")] #[inline] @@ -169,7 +169,7 @@ pub unsafe fn OpenTraceA(logfile: *mut EVENT_TRACE_LOGFILEA) -> PROCESSTRACE_HAN #[inline] pub unsafe fn OpenTraceFromBufferStream(options: *const ETW_OPEN_TRACE_OPTIONS, buffercompletioncallback: PETW_BUFFER_COMPLETION_CALLBACK, buffercompletioncontext: Option<*const core::ffi::c_void>) -> u64 { windows_targets::link!("advapi32.dll" "system" fn OpenTraceFromBufferStream(options : *const ETW_OPEN_TRACE_OPTIONS, buffercompletioncallback : PETW_BUFFER_COMPLETION_CALLBACK, buffercompletioncontext : *const core::ffi::c_void) -> u64); - OpenTraceFromBufferStream(core::mem::transmute(options), core::mem::transmute(buffercompletioncallback), core::mem::transmute(buffercompletioncontext.unwrap_or(core::mem::zeroed()))) + OpenTraceFromBufferStream(options, buffercompletioncallback, core::mem::transmute(buffercompletioncontext.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Time")] #[inline] @@ -178,7 +178,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenTraceFromFile(logfilename : windows_core::PCWSTR, options : *const ETW_OPEN_TRACE_OPTIONS, logfileheader : *mut TRACE_LOGFILE_HEADER) -> u64); - OpenTraceFromFile(logfilename.param().abi(), core::mem::transmute(options), core::mem::transmute(logfileheader.unwrap_or(core::mem::zeroed()))) + OpenTraceFromFile(logfilename.param().abi(), options, core::mem::transmute(logfileheader.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Time")] #[inline] @@ -187,7 +187,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenTraceFromRealTimeLogger(loggername : windows_core::PCWSTR, options : *const ETW_OPEN_TRACE_OPTIONS, logfileheader : *mut TRACE_LOGFILE_HEADER) -> u64); - OpenTraceFromRealTimeLogger(loggername.param().abi(), core::mem::transmute(options), core::mem::transmute(logfileheader.unwrap_or(core::mem::zeroed()))) + OpenTraceFromRealTimeLogger(loggername.param().abi(), options, core::mem::transmute(logfileheader.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Time")] #[inline] @@ -196,7 +196,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenTraceFromRealTimeLoggerWithAllocationOptions(loggername : windows_core::PCWSTR, options : *const ETW_OPEN_TRACE_OPTIONS, allocationsize : usize, memorypartitionhandle : super::super::super::Foundation:: HANDLE, logfileheader : *mut TRACE_LOGFILE_HEADER) -> u64); - OpenTraceFromRealTimeLoggerWithAllocationOptions(loggername.param().abi(), core::mem::transmute(options), core::mem::transmute(allocationsize), core::mem::transmute(memorypartitionhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfileheader.unwrap_or(core::mem::zeroed()))) + OpenTraceFromRealTimeLoggerWithAllocationOptions(loggername.param().abi(), options, allocationsize, core::mem::transmute(memorypartitionhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(logfileheader.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Time")] #[inline] @@ -212,17 +212,17 @@ pub unsafe fn ProcessTrace(handlearray: &[PROCESSTRACE_HANDLE], starttime: Optio #[inline] pub unsafe fn ProcessTraceAddBufferToBufferStream(tracehandle: u64, buffer: *const ETW_BUFFER_HEADER, buffersize: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn ProcessTraceAddBufferToBufferStream(tracehandle : u64, buffer : *const ETW_BUFFER_HEADER, buffersize : u32) -> u32); - ProcessTraceAddBufferToBufferStream(core::mem::transmute(tracehandle), core::mem::transmute(buffer), core::mem::transmute(buffersize)) + ProcessTraceAddBufferToBufferStream(tracehandle, buffer, buffersize) } #[inline] pub unsafe fn ProcessTraceBufferDecrementReference(buffer: *const ETW_BUFFER_HEADER) -> u32 { windows_targets::link!("advapi32.dll" "system" fn ProcessTraceBufferDecrementReference(buffer : *const ETW_BUFFER_HEADER) -> u32); - ProcessTraceBufferDecrementReference(core::mem::transmute(buffer)) + ProcessTraceBufferDecrementReference(buffer) } #[inline] pub unsafe fn ProcessTraceBufferIncrementReference(tracehandle: u64, buffer: *const ETW_BUFFER_HEADER) -> u32 { windows_targets::link!("advapi32.dll" "system" fn ProcessTraceBufferIncrementReference(tracehandle : u64, buffer : *const ETW_BUFFER_HEADER) -> u32); - ProcessTraceBufferIncrementReference(core::mem::transmute(tracehandle), core::mem::transmute(buffer)) + ProcessTraceBufferIncrementReference(tracehandle, buffer) } #[inline] pub unsafe fn QueryAllTracesA(propertyarray: &mut [*mut EVENT_TRACE_PROPERTIES], loggercount: *mut u32) -> super::super::super::Foundation::WIN32_ERROR { @@ -245,7 +245,7 @@ where #[inline] pub unsafe fn QueryTraceProcessingHandle(processinghandle: PROCESSTRACE_HANDLE, informationclass: ETW_PROCESS_HANDLE_INFO_TYPE, inbuffer: Option<*const core::ffi::c_void>, inbuffersize: u32, outbuffer: Option<*mut core::ffi::c_void>, outbuffersize: u32, returnlength: *mut u32) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn QueryTraceProcessingHandle(processinghandle : PROCESSTRACE_HANDLE, informationclass : ETW_PROCESS_HANDLE_INFO_TYPE, inbuffer : *const core::ffi::c_void, inbuffersize : u32, outbuffer : *mut core::ffi::c_void, outbuffersize : u32, returnlength : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - QueryTraceProcessingHandle(core::mem::transmute(processinghandle), core::mem::transmute(informationclass), core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inbuffersize), core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outbuffersize), core::mem::transmute(returnlength)) + QueryTraceProcessingHandle(core::mem::transmute(processinghandle), informationclass, core::mem::transmute(inbuffer.unwrap_or(core::mem::zeroed())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(core::mem::zeroed())), outbuffersize, core::mem::transmute(returnlength)) } #[inline] pub unsafe fn QueryTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P1, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR @@ -262,7 +262,7 @@ where P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterTraceGuidsA(requestaddress : WMIDPREQUEST, requestcontext : *const core::ffi::c_void, controlguid : *const windows_core::GUID, guidcount : u32, traceguidreg : *const TRACE_GUID_REGISTRATION, mofimagepath : windows_core::PCSTR, mofresourcename : windows_core::PCSTR, registrationhandle : *mut u64) -> u32); - RegisterTraceGuidsA(core::mem::transmute(requestaddress), core::mem::transmute(requestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(controlguid), traceguidreg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(traceguidreg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), mofimagepath.param().abi(), mofresourcename.param().abi(), core::mem::transmute(registrationhandle)) + RegisterTraceGuidsA(requestaddress, core::mem::transmute(requestcontext.unwrap_or(core::mem::zeroed())), controlguid, traceguidreg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(traceguidreg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), mofimagepath.param().abi(), mofresourcename.param().abi(), core::mem::transmute(registrationhandle)) } #[inline] pub unsafe fn RegisterTraceGuidsW(requestaddress: WMIDPREQUEST, requestcontext: Option<*const core::ffi::c_void>, controlguid: *const windows_core::GUID, traceguidreg: Option<&[TRACE_GUID_REGISTRATION]>, mofimagepath: P5, mofresourcename: P6, registrationhandle: *mut u64) -> u32 @@ -271,17 +271,17 @@ where P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterTraceGuidsW(requestaddress : WMIDPREQUEST, requestcontext : *const core::ffi::c_void, controlguid : *const windows_core::GUID, guidcount : u32, traceguidreg : *const TRACE_GUID_REGISTRATION, mofimagepath : windows_core::PCWSTR, mofresourcename : windows_core::PCWSTR, registrationhandle : *mut u64) -> u32); - RegisterTraceGuidsW(core::mem::transmute(requestaddress), core::mem::transmute(requestcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(controlguid), traceguidreg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(traceguidreg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), mofimagepath.param().abi(), mofresourcename.param().abi(), core::mem::transmute(registrationhandle)) + RegisterTraceGuidsW(requestaddress, core::mem::transmute(requestcontext.unwrap_or(core::mem::zeroed())), controlguid, traceguidreg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(traceguidreg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), mofimagepath.param().abi(), mofresourcename.param().abi(), core::mem::transmute(registrationhandle)) } #[inline] pub unsafe fn RemoveTraceCallback(pguid: *const windows_core::GUID) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RemoveTraceCallback(pguid : *const windows_core::GUID) -> super::super::super::Foundation:: WIN32_ERROR); - RemoveTraceCallback(core::mem::transmute(pguid)) + RemoveTraceCallback(pguid) } #[inline] pub unsafe fn SetTraceCallback(pguid: *const windows_core::GUID, eventcallback: PEVENT_CALLBACK) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn SetTraceCallback(pguid : *const windows_core::GUID, eventcallback : PEVENT_CALLBACK) -> super::super::super::Foundation:: WIN32_ERROR); - SetTraceCallback(core::mem::transmute(pguid), core::mem::transmute(eventcallback)) + SetTraceCallback(pguid, eventcallback) } #[inline] pub unsafe fn StartTraceA(tracehandle: *mut CONTROLTRACE_HANDLE, instancename: P1, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR @@ -318,7 +318,7 @@ where #[inline] pub unsafe fn TdhAggregatePayloadFilters(payloadfiltercount: u32, payloadfilterptrs: *const *const core::ffi::c_void, eventmatchallflags: Option<*const bool>, eventfilterdescriptor: *mut EVENT_FILTER_DESCRIPTOR) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhAggregatePayloadFilters(payloadfiltercount : u32, payloadfilterptrs : *const *const core::ffi::c_void, eventmatchallflags : *const bool, eventfilterdescriptor : *mut EVENT_FILTER_DESCRIPTOR) -> u32); - TdhAggregatePayloadFilters(core::mem::transmute(payloadfiltercount), core::mem::transmute(payloadfilterptrs), core::mem::transmute(eventmatchallflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventfilterdescriptor)) + TdhAggregatePayloadFilters(payloadfiltercount, payloadfilterptrs, core::mem::transmute(eventmatchallflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventfilterdescriptor)) } #[inline] pub unsafe fn TdhCleanupPayloadEventFilterDescriptor(eventfilterdescriptor: *mut EVENT_FILTER_DESCRIPTOR) -> u32 { @@ -328,12 +328,12 @@ pub unsafe fn TdhCleanupPayloadEventFilterDescriptor(eventfilterdescriptor: *mut #[inline] pub unsafe fn TdhCloseDecodingHandle(handle: TDH_HANDLE) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhCloseDecodingHandle(handle : TDH_HANDLE) -> u32); - TdhCloseDecodingHandle(core::mem::transmute(handle)) + TdhCloseDecodingHandle(handle) } #[inline] pub unsafe fn TdhCreatePayloadFilter(providerguid: *const windows_core::GUID, eventdescriptor: *const EVENT_DESCRIPTOR, eventmatchany: bool, payloadpredicates: &[PAYLOAD_FILTER_PREDICATE], payloadfilter: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhCreatePayloadFilter(providerguid : *const windows_core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, eventmatchany : bool, payloadpredicatecount : u32, payloadpredicates : *const PAYLOAD_FILTER_PREDICATE, payloadfilter : *mut *mut core::ffi::c_void) -> u32); - TdhCreatePayloadFilter(core::mem::transmute(providerguid), core::mem::transmute(eventdescriptor), core::mem::transmute(eventmatchany), payloadpredicates.len().try_into().unwrap(), core::mem::transmute(payloadpredicates.as_ptr()), core::mem::transmute(payloadfilter)) + TdhCreatePayloadFilter(providerguid, eventdescriptor, eventmatchany, payloadpredicates.len().try_into().unwrap(), core::mem::transmute(payloadpredicates.as_ptr()), core::mem::transmute(payloadfilter)) } #[inline] pub unsafe fn TdhDeletePayloadFilter(payloadfilter: *mut *mut core::ffi::c_void) -> u32 { @@ -343,17 +343,17 @@ pub unsafe fn TdhDeletePayloadFilter(payloadfilter: *mut *mut core::ffi::c_void) #[inline] pub unsafe fn TdhEnumerateManifestProviderEvents(providerguid: *const windows_core::GUID, buffer: Option<*mut PROVIDER_EVENT_INFO>, buffersize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhEnumerateManifestProviderEvents(providerguid : *const windows_core::GUID, buffer : *mut PROVIDER_EVENT_INFO, buffersize : *mut u32) -> u32); - TdhEnumerateManifestProviderEvents(core::mem::transmute(providerguid), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + TdhEnumerateManifestProviderEvents(providerguid, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[inline] pub unsafe fn TdhEnumerateProviderFieldInformation(pguid: *const windows_core::GUID, eventfieldtype: EVENT_FIELD_TYPE, pbuffer: Option<*mut PROVIDER_FIELD_INFOARRAY>, pbuffersize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhEnumerateProviderFieldInformation(pguid : *const windows_core::GUID, eventfieldtype : EVENT_FIELD_TYPE, pbuffer : *mut PROVIDER_FIELD_INFOARRAY, pbuffersize : *mut u32) -> u32); - TdhEnumerateProviderFieldInformation(core::mem::transmute(pguid), core::mem::transmute(eventfieldtype), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) + TdhEnumerateProviderFieldInformation(pguid, eventfieldtype, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) } #[inline] pub unsafe fn TdhEnumerateProviderFilters(guid: *const windows_core::GUID, tdhcontext: Option<&[TDH_CONTEXT]>, filtercount: *mut u32, buffer: Option<*mut *mut PROVIDER_FILTER_INFO>, buffersize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhEnumerateProviderFilters(guid : *const windows_core::GUID, tdhcontextcount : u32, tdhcontext : *const TDH_CONTEXT, filtercount : *mut u32, buffer : *mut *mut PROVIDER_FILTER_INFO, buffersize : *mut u32) -> u32); - TdhEnumerateProviderFilters(core::mem::transmute(guid), tdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(tdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(filtercount), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + TdhEnumerateProviderFilters(guid, tdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(tdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(filtercount), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[inline] pub unsafe fn TdhEnumerateProviders(pbuffer: Option<*mut PROVIDER_ENUMERATION_INFO>, pbuffersize: *mut u32) -> u32 { @@ -363,22 +363,22 @@ pub unsafe fn TdhEnumerateProviders(pbuffer: Option<*mut PROVIDER_ENUMERATION_IN #[inline] pub unsafe fn TdhEnumerateProvidersForDecodingSource(filter: DECODING_SOURCE, buffer: Option<*mut PROVIDER_ENUMERATION_INFO>, buffersize: u32, bufferrequired: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhEnumerateProvidersForDecodingSource(filter : DECODING_SOURCE, buffer : *mut PROVIDER_ENUMERATION_INFO, buffersize : u32, bufferrequired : *mut u32) -> u32); - TdhEnumerateProvidersForDecodingSource(core::mem::transmute(filter), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(bufferrequired)) + TdhEnumerateProvidersForDecodingSource(filter, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(bufferrequired)) } #[inline] pub unsafe fn TdhFormatProperty(eventinfo: *const TRACE_EVENT_INFO, mapinfo: Option<*const EVENT_MAP_INFO>, pointersize: u32, propertyintype: u16, propertyouttype: u16, propertylength: u16, userdata: &[u8], buffersize: *mut u32, buffer: Option, userdataconsumed: *mut u16) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhFormatProperty(eventinfo : *const TRACE_EVENT_INFO, mapinfo : *const EVENT_MAP_INFO, pointersize : u32, propertyintype : u16, propertyouttype : u16, propertylength : u16, userdatalength : u16, userdata : *const u8, buffersize : *mut u32, buffer : windows_core::PWSTR, userdataconsumed : *mut u16) -> u32); - TdhFormatProperty(core::mem::transmute(eventinfo), core::mem::transmute(mapinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(pointersize), core::mem::transmute(propertyintype), core::mem::transmute(propertyouttype), core::mem::transmute(propertylength), userdata.len().try_into().unwrap(), core::mem::transmute(userdata.as_ptr()), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(userdataconsumed)) + TdhFormatProperty(eventinfo, core::mem::transmute(mapinfo.unwrap_or(core::mem::zeroed())), pointersize, propertyintype, propertyouttype, propertylength, userdata.len().try_into().unwrap(), core::mem::transmute(userdata.as_ptr()), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(userdataconsumed)) } #[inline] pub unsafe fn TdhGetDecodingParameter(handle: TDH_HANDLE, tdhcontext: *mut TDH_CONTEXT) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhGetDecodingParameter(handle : TDH_HANDLE, tdhcontext : *mut TDH_CONTEXT) -> u32); - TdhGetDecodingParameter(core::mem::transmute(handle), core::mem::transmute(tdhcontext)) + TdhGetDecodingParameter(handle, core::mem::transmute(tdhcontext)) } #[inline] pub unsafe fn TdhGetEventInformation(event: *const EVENT_RECORD, tdhcontext: Option<&[TDH_CONTEXT]>, buffer: Option<*mut TRACE_EVENT_INFO>, buffersize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhGetEventInformation(event : *const EVENT_RECORD, tdhcontextcount : u32, tdhcontext : *const TDH_CONTEXT, buffer : *mut TRACE_EVENT_INFO, buffersize : *mut u32) -> u32); - TdhGetEventInformation(core::mem::transmute(event), tdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(tdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + TdhGetEventInformation(event, tdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(tdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[inline] pub unsafe fn TdhGetEventMapInformation(pevent: *const EVENT_RECORD, pmapname: P1, pbuffer: Option<*mut EVENT_MAP_INFO>, pbuffersize: *mut u32) -> u32 @@ -386,27 +386,27 @@ where P1: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhGetEventMapInformation(pevent : *const EVENT_RECORD, pmapname : windows_core::PCWSTR, pbuffer : *mut EVENT_MAP_INFO, pbuffersize : *mut u32) -> u32); - TdhGetEventMapInformation(core::mem::transmute(pevent), pmapname.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) + TdhGetEventMapInformation(pevent, pmapname.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) } #[inline] pub unsafe fn TdhGetManifestEventInformation(providerguid: *const windows_core::GUID, eventdescriptor: *const EVENT_DESCRIPTOR, buffer: Option<*mut TRACE_EVENT_INFO>, buffersize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhGetManifestEventInformation(providerguid : *const windows_core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, buffer : *mut TRACE_EVENT_INFO, buffersize : *mut u32) -> u32); - TdhGetManifestEventInformation(core::mem::transmute(providerguid), core::mem::transmute(eventdescriptor), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + TdhGetManifestEventInformation(providerguid, eventdescriptor, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[inline] pub unsafe fn TdhGetProperty(pevent: *const EVENT_RECORD, ptdhcontext: Option<&[TDH_CONTEXT]>, ppropertydata: &[PROPERTY_DATA_DESCRIPTOR], pbuffer: &mut [u8]) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhGetProperty(pevent : *const EVENT_RECORD, tdhcontextcount : u32, ptdhcontext : *const TDH_CONTEXT, propertydatacount : u32, ppropertydata : *const PROPERTY_DATA_DESCRIPTOR, buffersize : u32, pbuffer : *mut u8) -> u32); - TdhGetProperty(core::mem::transmute(pevent), ptdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ptdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppropertydata.len().try_into().unwrap(), core::mem::transmute(ppropertydata.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr())) + TdhGetProperty(pevent, ptdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ptdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppropertydata.len().try_into().unwrap(), core::mem::transmute(ppropertydata.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr())) } #[inline] pub unsafe fn TdhGetPropertySize(pevent: *const EVENT_RECORD, ptdhcontext: Option<&[TDH_CONTEXT]>, ppropertydata: &[PROPERTY_DATA_DESCRIPTOR], ppropertysize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhGetPropertySize(pevent : *const EVENT_RECORD, tdhcontextcount : u32, ptdhcontext : *const TDH_CONTEXT, propertydatacount : u32, ppropertydata : *const PROPERTY_DATA_DESCRIPTOR, ppropertysize : *mut u32) -> u32); - TdhGetPropertySize(core::mem::transmute(pevent), ptdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ptdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppropertydata.len().try_into().unwrap(), core::mem::transmute(ppropertydata.as_ptr()), core::mem::transmute(ppropertysize)) + TdhGetPropertySize(pevent, ptdhcontext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ptdhcontext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ppropertydata.len().try_into().unwrap(), core::mem::transmute(ppropertydata.as_ptr()), core::mem::transmute(ppropertysize)) } #[inline] pub unsafe fn TdhGetWppMessage(handle: TDH_HANDLE, eventrecord: *const EVENT_RECORD, buffersize: *mut u32, buffer: *mut u8) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhGetWppMessage(handle : TDH_HANDLE, eventrecord : *const EVENT_RECORD, buffersize : *mut u32, buffer : *mut u8) -> u32); - TdhGetWppMessage(core::mem::transmute(handle), core::mem::transmute(eventrecord), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + TdhGetWppMessage(handle, eventrecord, core::mem::transmute(buffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn TdhGetWppProperty(handle: TDH_HANDLE, eventrecord: *const EVENT_RECORD, propertyname: P2, buffersize: *mut u32, buffer: *mut u8) -> u32 @@ -414,7 +414,7 @@ where P2: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhGetWppProperty(handle : TDH_HANDLE, eventrecord : *const EVENT_RECORD, propertyname : windows_core::PCWSTR, buffersize : *mut u32, buffer : *mut u8) -> u32); - TdhGetWppProperty(core::mem::transmute(handle), core::mem::transmute(eventrecord), propertyname.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(buffer)) + TdhGetWppProperty(handle, eventrecord, propertyname.param().abi(), core::mem::transmute(buffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn TdhLoadManifest(manifest: P0) -> u32 @@ -435,7 +435,7 @@ where #[inline] pub unsafe fn TdhLoadManifestFromMemory(pdata: *const core::ffi::c_void, cbdata: u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhLoadManifestFromMemory(pdata : *const core::ffi::c_void, cbdata : u32) -> u32); - TdhLoadManifestFromMemory(core::mem::transmute(pdata), core::mem::transmute(cbdata)) + TdhLoadManifestFromMemory(pdata, cbdata) } #[inline] pub unsafe fn TdhOpenDecodingHandle(handle: *mut TDH_HANDLE) -> u32 { @@ -445,12 +445,12 @@ pub unsafe fn TdhOpenDecodingHandle(handle: *mut TDH_HANDLE) -> u32 { #[inline] pub unsafe fn TdhQueryProviderFieldInformation(pguid: *const windows_core::GUID, eventfieldvalue: u64, eventfieldtype: EVENT_FIELD_TYPE, pbuffer: Option<*mut PROVIDER_FIELD_INFOARRAY>, pbuffersize: *mut u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhQueryProviderFieldInformation(pguid : *const windows_core::GUID, eventfieldvalue : u64, eventfieldtype : EVENT_FIELD_TYPE, pbuffer : *mut PROVIDER_FIELD_INFOARRAY, pbuffersize : *mut u32) -> u32); - TdhQueryProviderFieldInformation(core::mem::transmute(pguid), core::mem::transmute(eventfieldvalue), core::mem::transmute(eventfieldtype), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) + TdhQueryProviderFieldInformation(pguid, eventfieldvalue, eventfieldtype, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) } #[inline] pub unsafe fn TdhSetDecodingParameter(handle: TDH_HANDLE, tdhcontext: *const TDH_CONTEXT) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhSetDecodingParameter(handle : TDH_HANDLE, tdhcontext : *const TDH_CONTEXT) -> u32); - TdhSetDecodingParameter(core::mem::transmute(handle), core::mem::transmute(tdhcontext)) + TdhSetDecodingParameter(handle, tdhcontext) } #[inline] pub unsafe fn TdhUnloadManifest(manifest: P0) -> u32 @@ -463,42 +463,42 @@ where #[inline] pub unsafe fn TdhUnloadManifestFromMemory(pdata: *const core::ffi::c_void, cbdata: u32) -> u32 { windows_targets::link!("tdh.dll" "system" fn TdhUnloadManifestFromMemory(pdata : *const core::ffi::c_void, cbdata : u32) -> u32); - TdhUnloadManifestFromMemory(core::mem::transmute(pdata), core::mem::transmute(cbdata)) + TdhUnloadManifestFromMemory(pdata, cbdata) } #[inline] pub unsafe fn TraceEvent(tracehandle: u64, eventtrace: *const EVENT_TRACE_HEADER) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn TraceEvent(tracehandle : u64, eventtrace : *const EVENT_TRACE_HEADER) -> super::super::super::Foundation:: WIN32_ERROR); - TraceEvent(core::mem::transmute(tracehandle), core::mem::transmute(eventtrace)) + TraceEvent(tracehandle, eventtrace) } #[inline] pub unsafe fn TraceEventInstance(tracehandle: u64, eventtrace: *const EVENT_INSTANCE_HEADER, instinfo: *const EVENT_INSTANCE_INFO, parentinstinfo: Option<*const EVENT_INSTANCE_INFO>) -> u32 { windows_targets::link!("advapi32.dll" "system" fn TraceEventInstance(tracehandle : u64, eventtrace : *const EVENT_INSTANCE_HEADER, instinfo : *const EVENT_INSTANCE_INFO, parentinstinfo : *const EVENT_INSTANCE_INFO) -> u32); - TraceEventInstance(core::mem::transmute(tracehandle), core::mem::transmute(eventtrace), core::mem::transmute(instinfo), core::mem::transmute(parentinstinfo.unwrap_or(core::mem::zeroed()))) + TraceEventInstance(tracehandle, eventtrace, instinfo, core::mem::transmute(parentinstinfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TraceMessage(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const windows_core::GUID, messagenumber: u16) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "cdecl" fn TraceMessage(loggerhandle : u64, messageflags : TRACE_MESSAGE_FLAGS, messageguid : *const windows_core::GUID, messagenumber : u16) -> super::super::super::Foundation:: WIN32_ERROR); - TraceMessage(core::mem::transmute(loggerhandle), core::mem::transmute(messageflags), core::mem::transmute(messageguid), core::mem::transmute(messagenumber)) + TraceMessage(loggerhandle, messageflags, messageguid, messagenumber) } #[inline] pub unsafe fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const windows_core::GUID, messagenumber: u16, messagearglist: *const i8) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn TraceMessageVa(loggerhandle : u64, messageflags : TRACE_MESSAGE_FLAGS, messageguid : *const windows_core::GUID, messagenumber : u16, messagearglist : *const i8) -> super::super::super::Foundation:: WIN32_ERROR); - TraceMessageVa(core::mem::transmute(loggerhandle), core::mem::transmute(messageflags), core::mem::transmute(messageguid), core::mem::transmute(messagenumber), core::mem::transmute(messagearglist)) + TraceMessageVa(loggerhandle, messageflags, messageguid, messagenumber, messagearglist) } #[inline] pub unsafe fn TraceQueryInformation(sessionhandle: CONTROLTRACE_HANDLE, informationclass: TRACE_QUERY_INFO_CLASS, traceinformation: *mut core::ffi::c_void, informationlength: u32, returnlength: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn TraceQueryInformation(sessionhandle : CONTROLTRACE_HANDLE, informationclass : TRACE_QUERY_INFO_CLASS, traceinformation : *mut core::ffi::c_void, informationlength : u32, returnlength : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); - TraceQueryInformation(core::mem::transmute(sessionhandle), core::mem::transmute(informationclass), core::mem::transmute(traceinformation), core::mem::transmute(informationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + TraceQueryInformation(core::mem::transmute(sessionhandle), informationclass, core::mem::transmute(traceinformation), informationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TraceSetInformation(sessionhandle: CONTROLTRACE_HANDLE, informationclass: TRACE_QUERY_INFO_CLASS, traceinformation: *const core::ffi::c_void, informationlength: u32) -> super::super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn TraceSetInformation(sessionhandle : CONTROLTRACE_HANDLE, informationclass : TRACE_QUERY_INFO_CLASS, traceinformation : *const core::ffi::c_void, informationlength : u32) -> super::super::super::Foundation:: WIN32_ERROR); - TraceSetInformation(core::mem::transmute(sessionhandle), core::mem::transmute(informationclass), core::mem::transmute(traceinformation), core::mem::transmute(informationlength)) + TraceSetInformation(core::mem::transmute(sessionhandle), informationclass, traceinformation, informationlength) } #[inline] pub unsafe fn UnregisterTraceGuids(registrationhandle: u64) -> u32 { windows_targets::link!("advapi32.dll" "system" fn UnregisterTraceGuids(registrationhandle : u64) -> u32); - UnregisterTraceGuids(core::mem::transmute(registrationhandle)) + UnregisterTraceGuids(registrationhandle) } #[inline] pub unsafe fn UpdateTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P1, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR @@ -2089,28 +2089,28 @@ impl ITraceEvent { (windows_core::Interface::vtable(self).SetPayload)(windows_core::Interface::as_raw(self), core::mem::transmute(payload.as_ptr()), payload.len().try_into().unwrap()).ok() } pub unsafe fn SetEventDescriptor(&self, eventdescriptor: *const EVENT_DESCRIPTOR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(eventdescriptor)).ok() + (windows_core::Interface::vtable(self).SetEventDescriptor)(windows_core::Interface::as_raw(self), eventdescriptor).ok() } pub unsafe fn SetProcessId(&self, processid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessId)(windows_core::Interface::as_raw(self), core::mem::transmute(processid)).ok() + (windows_core::Interface::vtable(self).SetProcessId)(windows_core::Interface::as_raw(self), processid).ok() } pub unsafe fn SetProcessorIndex(&self, processorindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessorIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(processorindex)).ok() + (windows_core::Interface::vtable(self).SetProcessorIndex)(windows_core::Interface::as_raw(self), processorindex).ok() } pub unsafe fn SetThreadId(&self, threadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).SetThreadId)(windows_core::Interface::as_raw(self), threadid).ok() } pub unsafe fn SetThreadTimes(&self, kerneltime: u32, usertime: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThreadTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(kerneltime), core::mem::transmute(usertime)).ok() + (windows_core::Interface::vtable(self).SetThreadTimes)(windows_core::Interface::as_raw(self), kerneltime, usertime).ok() } pub unsafe fn SetActivityId(&self, activityid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActivityId)(windows_core::Interface::as_raw(self), core::mem::transmute(activityid)).ok() + (windows_core::Interface::vtable(self).SetActivityId)(windows_core::Interface::as_raw(self), activityid).ok() } pub unsafe fn SetTimeStamp(&self, timestamp: *const i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeStamp)(windows_core::Interface::as_raw(self), core::mem::transmute(timestamp)).ok() + (windows_core::Interface::vtable(self).SetTimeStamp)(windows_core::Interface::as_raw(self), timestamp).ok() } pub unsafe fn SetProviderId(&self, providerid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderId)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid)).ok() + (windows_core::Interface::vtable(self).SetProviderId)(windows_core::Interface::as_raw(self), providerid).ok() } } #[repr(C)] @@ -2299,11 +2299,11 @@ windows_core::imp::interface_hierarchy!(ITraceRelogger, windows_core::IUnknown); impl ITraceRelogger { pub unsafe fn AddLogfileTraceStream(&self, logfilename: &windows_core::BSTR, usercontext: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddLogfileTraceStream)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(logfilename), core::mem::transmute(usercontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddLogfileTraceStream)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(logfilename), usercontext, &mut result__).map(|| result__) } pub unsafe fn AddRealtimeTraceStream(&self, loggername: &windows_core::BSTR, usercontext: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddRealtimeTraceStream)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(loggername), core::mem::transmute(usercontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddRealtimeTraceStream)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(loggername), usercontext, &mut result__).map(|| result__) } pub unsafe fn RegisterCallback(&self, callback: P0) -> windows_core::Result<()> where @@ -2319,7 +2319,7 @@ impl ITraceRelogger { } pub unsafe fn CreateEventInstance(&self, tracehandle: RELOGSTREAM_HANDLE, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEventInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(tracehandle), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEventInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(tracehandle), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProcessTrace(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ProcessTrace)(windows_core::Interface::as_raw(self)).ok() @@ -2328,7 +2328,7 @@ impl ITraceRelogger { (windows_core::Interface::vtable(self).SetOutputFilename)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(logfilename)).ok() } pub unsafe fn SetCompressionMode(&self, compressionmode: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(compressionmode)).ok() + (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), compressionmode).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs index dac5d3bbd7..c9d941bb93 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn PssCaptureSnapshot(processhandle: super::super::super::Foundation::HANDLE, captureflags: PSS_CAPTURE_FLAGS, threadcontextflags: Option, snapshothandle: *mut HPSS) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssCaptureSnapshot(processhandle : super::super::super::Foundation:: HANDLE, captureflags : PSS_CAPTURE_FLAGS, threadcontextflags : u32, snapshothandle : *mut HPSS) -> u32); - PssCaptureSnapshot(core::mem::transmute(processhandle), core::mem::transmute(captureflags), core::mem::transmute(threadcontextflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(snapshothandle)) + PssCaptureSnapshot(processhandle, captureflags, core::mem::transmute(threadcontextflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(snapshothandle)) } #[inline] pub unsafe fn PssDuplicateSnapshot(sourceprocesshandle: super::super::super::Foundation::HANDLE, snapshothandle: HPSS, targetprocesshandle: super::super::super::Foundation::HANDLE, targetsnapshothandle: *mut HPSS, flags: Option) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssDuplicateSnapshot(sourceprocesshandle : super::super::super::Foundation:: HANDLE, snapshothandle : HPSS, targetprocesshandle : super::super::super::Foundation:: HANDLE, targetsnapshothandle : *mut HPSS, flags : PSS_DUPLICATE_FLAGS) -> u32); - PssDuplicateSnapshot(core::mem::transmute(sourceprocesshandle), core::mem::transmute(snapshothandle), core::mem::transmute(targetprocesshandle), core::mem::transmute(targetsnapshothandle), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + PssDuplicateSnapshot(sourceprocesshandle, snapshothandle, targetprocesshandle, core::mem::transmute(targetsnapshothandle), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PssFreeSnapshot(processhandle: super::super::super::Foundation::HANDLE, snapshothandle: HPSS) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssFreeSnapshot(processhandle : super::super::super::Foundation:: HANDLE, snapshothandle : HPSS) -> u32); - PssFreeSnapshot(core::mem::transmute(processhandle), core::mem::transmute(snapshothandle)) + PssFreeSnapshot(processhandle, snapshothandle) } #[inline] pub unsafe fn PssQuerySnapshot(snapshothandle: HPSS, informationclass: PSS_QUERY_INFORMATION_CLASS, buffer: *mut core::ffi::c_void, bufferlength: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssQuerySnapshot(snapshothandle : HPSS, informationclass : PSS_QUERY_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, bufferlength : u32) -> u32); - PssQuerySnapshot(core::mem::transmute(snapshothandle), core::mem::transmute(informationclass), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) + PssQuerySnapshot(snapshothandle, informationclass, core::mem::transmute(buffer), bufferlength) } #[inline] pub unsafe fn PssWalkMarkerCreate(allocator: Option<*const PSS_ALLOCATOR>, walkmarkerhandle: *mut HPSSWALK) -> u32 { @@ -26,27 +26,27 @@ pub unsafe fn PssWalkMarkerCreate(allocator: Option<*const PSS_ALLOCATOR>, walkm #[inline] pub unsafe fn PssWalkMarkerFree(walkmarkerhandle: HPSSWALK) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerFree(walkmarkerhandle : HPSSWALK) -> u32); - PssWalkMarkerFree(core::mem::transmute(walkmarkerhandle)) + PssWalkMarkerFree(walkmarkerhandle) } #[inline] pub unsafe fn PssWalkMarkerGetPosition(walkmarkerhandle: HPSSWALK, position: *mut usize) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerGetPosition(walkmarkerhandle : HPSSWALK, position : *mut usize) -> u32); - PssWalkMarkerGetPosition(core::mem::transmute(walkmarkerhandle), core::mem::transmute(position)) + PssWalkMarkerGetPosition(walkmarkerhandle, core::mem::transmute(position)) } #[inline] pub unsafe fn PssWalkMarkerSeekToBeginning(walkmarkerhandle: HPSSWALK) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerSeekToBeginning(walkmarkerhandle : HPSSWALK) -> u32); - PssWalkMarkerSeekToBeginning(core::mem::transmute(walkmarkerhandle)) + PssWalkMarkerSeekToBeginning(walkmarkerhandle) } #[inline] pub unsafe fn PssWalkMarkerSetPosition(walkmarkerhandle: HPSSWALK, position: usize) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerSetPosition(walkmarkerhandle : HPSSWALK, position : usize) -> u32); - PssWalkMarkerSetPosition(core::mem::transmute(walkmarkerhandle), core::mem::transmute(position)) + PssWalkMarkerSetPosition(walkmarkerhandle, position) } #[inline] pub unsafe fn PssWalkSnapshot(snapshothandle: HPSS, informationclass: PSS_WALK_INFORMATION_CLASS, walkmarkerhandle: HPSSWALK, buffer: Option<&mut [u8]>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn PssWalkSnapshot(snapshothandle : HPSS, informationclass : PSS_WALK_INFORMATION_CLASS, walkmarkerhandle : HPSSWALK, buffer : *mut core::ffi::c_void, bufferlength : u32) -> u32); - PssWalkSnapshot(core::mem::transmute(snapshothandle), core::mem::transmute(informationclass), core::mem::transmute(walkmarkerhandle), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + PssWalkSnapshot(snapshothandle, informationclass, walkmarkerhandle, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs index 95e1a59548..b66a33ff52 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs @@ -1,23 +1,23 @@ #[inline] pub unsafe fn CreateToolhelp32Snapshot(dwflags: CREATE_TOOLHELP_SNAPSHOT_FLAGS, th32processid: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateToolhelp32Snapshot(dwflags : CREATE_TOOLHELP_SNAPSHOT_FLAGS, th32processid : u32) -> super::super::super::Foundation:: HANDLE); - let result__ = CreateToolhelp32Snapshot(core::mem::transmute(dwflags), core::mem::transmute(th32processid)); + let result__ = CreateToolhelp32Snapshot(dwflags, th32processid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn Heap32First(lphe: *mut HEAPENTRY32, th32processid: u32, th32heapid: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Heap32First(lphe : *mut HEAPENTRY32, th32processid : u32, th32heapid : usize) -> super::super::super::Foundation:: BOOL); - Heap32First(core::mem::transmute(lphe), core::mem::transmute(th32processid), core::mem::transmute(th32heapid)).ok() + Heap32First(core::mem::transmute(lphe), th32processid, th32heapid).ok() } #[inline] pub unsafe fn Heap32ListFirst(hsnapshot: super::super::super::Foundation::HANDLE, lphl: *mut HEAPLIST32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Heap32ListFirst(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); - Heap32ListFirst(core::mem::transmute(hsnapshot), core::mem::transmute(lphl)).ok() + Heap32ListFirst(hsnapshot, core::mem::transmute(lphl)).ok() } #[inline] pub unsafe fn Heap32ListNext(hsnapshot: super::super::super::Foundation::HANDLE, lphl: *mut HEAPLIST32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Heap32ListNext(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); - Heap32ListNext(core::mem::transmute(hsnapshot), core::mem::transmute(lphl)).ok() + Heap32ListNext(hsnapshot, core::mem::transmute(lphl)).ok() } #[inline] pub unsafe fn Heap32Next(lphe: *mut HEAPENTRY32) -> windows_core::Result<()> { @@ -27,57 +27,57 @@ pub unsafe fn Heap32Next(lphe: *mut HEAPENTRY32) -> windows_core::Result<()> { #[inline] pub unsafe fn Module32First(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Module32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); - Module32First(core::mem::transmute(hsnapshot), core::mem::transmute(lpme)).ok() + Module32First(hsnapshot, core::mem::transmute(lpme)).ok() } #[inline] pub unsafe fn Module32FirstW(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32W) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Module32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); - Module32FirstW(core::mem::transmute(hsnapshot), core::mem::transmute(lpme)).ok() + Module32FirstW(hsnapshot, core::mem::transmute(lpme)).ok() } #[inline] pub unsafe fn Module32Next(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Module32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); - Module32Next(core::mem::transmute(hsnapshot), core::mem::transmute(lpme)).ok() + Module32Next(hsnapshot, core::mem::transmute(lpme)).ok() } #[inline] pub unsafe fn Module32NextW(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32W) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Module32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); - Module32NextW(core::mem::transmute(hsnapshot), core::mem::transmute(lpme)).ok() + Module32NextW(hsnapshot, core::mem::transmute(lpme)).ok() } #[inline] pub unsafe fn Process32First(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Process32First(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); - Process32First(core::mem::transmute(hsnapshot), core::mem::transmute(lppe)).ok() + Process32First(hsnapshot, core::mem::transmute(lppe)).ok() } #[inline] pub unsafe fn Process32FirstW(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32W) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Process32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); - Process32FirstW(core::mem::transmute(hsnapshot), core::mem::transmute(lppe)).ok() + Process32FirstW(hsnapshot, core::mem::transmute(lppe)).ok() } #[inline] pub unsafe fn Process32Next(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Process32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); - Process32Next(core::mem::transmute(hsnapshot), core::mem::transmute(lppe)).ok() + Process32Next(hsnapshot, core::mem::transmute(lppe)).ok() } #[inline] pub unsafe fn Process32NextW(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32W) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Process32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); - Process32NextW(core::mem::transmute(hsnapshot), core::mem::transmute(lppe)).ok() + Process32NextW(hsnapshot, core::mem::transmute(lppe)).ok() } #[inline] pub unsafe fn Thread32First(hsnapshot: super::super::super::Foundation::HANDLE, lpte: *mut THREADENTRY32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Thread32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); - Thread32First(core::mem::transmute(hsnapshot), core::mem::transmute(lpte)).ok() + Thread32First(hsnapshot, core::mem::transmute(lpte)).ok() } #[inline] pub unsafe fn Thread32Next(hsnapshot: super::super::super::Foundation::HANDLE, lpte: *mut THREADENTRY32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn Thread32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); - Thread32Next(core::mem::transmute(hsnapshot), core::mem::transmute(lpte)).ok() + Thread32Next(hsnapshot, core::mem::transmute(lpte)).ok() } #[inline] pub unsafe fn Toolhelp32ReadProcessMemory(th32processid: u32, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, cbread: usize, lpnumberofbytesread: *mut usize) -> super::super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn Toolhelp32ReadProcessMemory(th32processid : u32, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, cbread : usize, lpnumberofbytesread : *mut usize) -> super::super::super::Foundation:: BOOL); - Toolhelp32ReadProcessMemory(core::mem::transmute(th32processid), core::mem::transmute(lpbaseaddress), core::mem::transmute(lpbuffer), core::mem::transmute(cbread), core::mem::transmute(lpnumberofbytesread)) + Toolhelp32ReadProcessMemory(th32processid, lpbaseaddress, core::mem::transmute(lpbuffer), cbread, core::mem::transmute(lpnumberofbytesread)) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs index 2f09a7679f..ef0e4eb637 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs @@ -5,7 +5,7 @@ where P1: windows_core::Param, { windows_targets::link!("xolehlp.dll" "cdecl" fn DtcGetTransactionManager(i_pszhost : windows_core::PCSTR, i_psztmname : windows_core::PCSTR, i_riid : *const windows_core::GUID, i_dwreserved1 : u32, i_wcbreserved2 : u16, i_pvreserved2 : *const core::ffi::c_void, o_ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DtcGetTransactionManager(i_pszhost.param().abi(), i_psztmname.param().abi(), core::mem::transmute(i_riid), core::mem::transmute(i_dwreserved1), core::mem::transmute(i_wcbreserved2), core::mem::transmute(i_pvreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(o_ppvobject)).ok() + DtcGetTransactionManager(i_pszhost.param().abi(), i_psztmname.param().abi(), i_riid, i_dwreserved1, i_wcbreserved2, core::mem::transmute(i_pvreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(o_ppvobject)).ok() } #[inline] pub unsafe fn DtcGetTransactionManagerC(i_pszhost: P0, i_psztmname: P1, i_riid: *const windows_core::GUID, i_dwreserved1: u32, i_wcbreserved2: u16, i_pvreserved2: Option<*const core::ffi::c_void>, o_ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -14,7 +14,7 @@ where P1: windows_core::Param, { windows_targets::link!("xolehlp.dll" "cdecl" fn DtcGetTransactionManagerC(i_pszhost : windows_core::PCSTR, i_psztmname : windows_core::PCSTR, i_riid : *const windows_core::GUID, i_dwreserved1 : u32, i_wcbreserved2 : u16, i_pvreserved2 : *const core::ffi::c_void, o_ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DtcGetTransactionManagerC(i_pszhost.param().abi(), i_psztmname.param().abi(), core::mem::transmute(i_riid), core::mem::transmute(i_dwreserved1), core::mem::transmute(i_wcbreserved2), core::mem::transmute(i_pvreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(o_ppvobject)).ok() + DtcGetTransactionManagerC(i_pszhost.param().abi(), i_psztmname.param().abi(), i_riid, i_dwreserved1, i_wcbreserved2, core::mem::transmute(i_pvreserved2.unwrap_or(core::mem::zeroed())), core::mem::transmute(o_ppvobject)).ok() } #[inline] pub unsafe fn DtcGetTransactionManagerExA(i_pszhost: P0, i_psztmname: P1, i_riid: *const windows_core::GUID, i_grfoptions: u32, i_pvconfigparams: *mut core::ffi::c_void, o_ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -23,7 +23,7 @@ where P1: windows_core::Param, { windows_targets::link!("xolehlp.dll" "cdecl" fn DtcGetTransactionManagerExA(i_pszhost : windows_core::PCSTR, i_psztmname : windows_core::PCSTR, i_riid : *const windows_core::GUID, i_grfoptions : u32, i_pvconfigparams : *mut core::ffi::c_void, o_ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DtcGetTransactionManagerExA(i_pszhost.param().abi(), i_psztmname.param().abi(), core::mem::transmute(i_riid), core::mem::transmute(i_grfoptions), core::mem::transmute(i_pvconfigparams), core::mem::transmute(o_ppvobject)).ok() + DtcGetTransactionManagerExA(i_pszhost.param().abi(), i_psztmname.param().abi(), i_riid, i_grfoptions, core::mem::transmute(i_pvconfigparams), core::mem::transmute(o_ppvobject)).ok() } #[inline] pub unsafe fn DtcGetTransactionManagerExW(i_pwszhost: P0, i_pwsztmname: P1, i_riid: *const windows_core::GUID, i_grfoptions: u32, i_pvconfigparams: *mut core::ffi::c_void, o_ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -32,7 +32,7 @@ where P1: windows_core::Param, { windows_targets::link!("xolehlp.dll" "cdecl" fn DtcGetTransactionManagerExW(i_pwszhost : windows_core::PCWSTR, i_pwsztmname : windows_core::PCWSTR, i_riid : *const windows_core::GUID, i_grfoptions : u32, i_pvconfigparams : *mut core::ffi::c_void, o_ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - DtcGetTransactionManagerExW(i_pwszhost.param().abi(), i_pwsztmname.param().abi(), core::mem::transmute(i_riid), core::mem::transmute(i_grfoptions), core::mem::transmute(i_pvconfigparams), core::mem::transmute(o_ppvobject)).ok() + DtcGetTransactionManagerExW(i_pwszhost.param().abi(), i_pwsztmname.param().abi(), i_riid, i_grfoptions, core::mem::transmute(i_pvconfigparams), core::mem::transmute(o_ppvobject)).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -248,7 +248,7 @@ windows_core::imp::define_interface!(IDtcLuRecoveryInitiatedByDtcStatusWork, IDt windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtcStatusWork, windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByDtcStatusWork { pub unsafe fn HandleCheckLuStatus(&self, lrecoveryseqnum: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleCheckLuStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lrecoveryseqnum)).ok() + (windows_core::Interface::vtable(self).HandleCheckLuStatus)(windows_core::Interface::as_raw(self), lrecoveryseqnum).ok() } } #[repr(C)] @@ -282,13 +282,13 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { (windows_core::Interface::vtable(self).GetOurXln)(windows_core::Interface::as_raw(self), core::mem::transmute(pxln), core::mem::transmute(pourlogname), core::mem::transmute(premotelogname), core::mem::transmute(pdwprotocol)).ok() } pub unsafe fn HandleConfirmationFromOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleConfirmationFromOurXln)(windows_core::Interface::as_raw(self), core::mem::transmute(confirmation)).ok() + (windows_core::Interface::vtable(self).HandleConfirmationFromOurXln)(windows_core::Interface::as_raw(self), confirmation).ok() } pub unsafe fn HandleTheirXlnResponse(&self, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleTheirXlnResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(xln), core::mem::transmute(premotelogname), core::mem::transmute(cbremotelogname), core::mem::transmute(dwprotocol), core::mem::transmute(pconfirmation)).ok() + (windows_core::Interface::vtable(self).HandleTheirXlnResponse)(windows_core::Interface::as_raw(self), xln, core::mem::transmute(premotelogname), cbremotelogname, dwprotocol, core::mem::transmute(pconfirmation)).ok() } pub unsafe fn HandleErrorFromOurXln(&self, error: DTCLUXLNERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleErrorFromOurXln)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).HandleErrorFromOurXln)(windows_core::Interface::as_raw(self), error).ok() } pub unsafe fn CheckForCompareStates(&self, fcomparestates: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckForCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(fcomparestates)).ok() @@ -300,10 +300,10 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { (windows_core::Interface::vtable(self).GetOurCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(pourtransid), core::mem::transmute(pcomparestate)).ok() } pub unsafe fn HandleTheirCompareStatesResponse(&self, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleTheirCompareStatesResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(comparestate), core::mem::transmute(pconfirmation)).ok() + (windows_core::Interface::vtable(self).HandleTheirCompareStatesResponse)(windows_core::Interface::as_raw(self), comparestate, core::mem::transmute(pconfirmation)).ok() } pub unsafe fn HandleErrorFromOurCompareStates(&self, error: DTCLUCOMPARESTATESERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleErrorFromOurCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).HandleErrorFromOurCompareStates)(windows_core::Interface::as_raw(self), error).ok() } pub unsafe fn ConversationLost(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConversationLost)(windows_core::Interface::as_raw(self)).ok() @@ -312,7 +312,7 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { (windows_core::Interface::vtable(self).GetRecoverySeqNum)(windows_core::Interface::as_raw(self), core::mem::transmute(plrecoveryseqnum)).ok() } pub unsafe fn ObsoleteRecoverySeqNum(&self, lnewrecoveryseqnum: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ObsoleteRecoverySeqNum)(windows_core::Interface::as_raw(self), core::mem::transmute(lnewrecoveryseqnum)).ok() + (windows_core::Interface::vtable(self).ObsoleteRecoverySeqNum)(windows_core::Interface::as_raw(self), lnewrecoveryseqnum).ok() } } #[repr(C)] @@ -462,7 +462,7 @@ windows_core::imp::define_interface!(IDtcLuRecoveryInitiatedByLuWork, IDtcLuReco windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByLuWork, windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByLuWork { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).HandleTheirXln)(windows_core::Interface::as_raw(self), core::mem::transmute(lrecoveryseqnum), core::mem::transmute(xln), core::mem::transmute(premotelogname), core::mem::transmute(cbremotelogname), core::mem::transmute(pourlogname), core::mem::transmute(cbourlogname), core::mem::transmute(dwprotocol), core::mem::transmute(presponse)).ok() + (windows_core::Interface::vtable(self).HandleTheirXln)(windows_core::Interface::as_raw(self), lrecoveryseqnum, xln, core::mem::transmute(premotelogname), cbremotelogname, core::mem::transmute(pourlogname), cbourlogname, dwprotocol, core::mem::transmute(presponse)).ok() } pub unsafe fn GetOurLogNameSize(&self, pcbourlogname: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOurLogNameSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbourlogname)).ok() @@ -471,16 +471,16 @@ impl IDtcLuRecoveryInitiatedByLuWork { (windows_core::Interface::vtable(self).GetOurXln)(windows_core::Interface::as_raw(self), core::mem::transmute(pxln), core::mem::transmute(pourlogname), core::mem::transmute(pdwprotocol)).ok() } pub unsafe fn HandleConfirmationOfOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleConfirmationOfOurXln)(windows_core::Interface::as_raw(self), core::mem::transmute(confirmation)).ok() + (windows_core::Interface::vtable(self).HandleConfirmationOfOurXln)(windows_core::Interface::as_raw(self), confirmation).ok() } pub unsafe fn HandleTheirCompareStates(&self, premotetransid: *mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: *mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: *mut DTCLUCOMPARESTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleTheirCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(premotetransid), core::mem::transmute(cbremotetransid), core::mem::transmute(comparestate), core::mem::transmute(presponse), core::mem::transmute(pcomparestate)).ok() + (windows_core::Interface::vtable(self).HandleTheirCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(premotetransid), cbremotetransid, comparestate, core::mem::transmute(presponse), core::mem::transmute(pcomparestate)).ok() } pub unsafe fn HandleConfirmationOfOurCompareStates(&self, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleConfirmationOfOurCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(confirmation)).ok() + (windows_core::Interface::vtable(self).HandleConfirmationOfOurCompareStates)(windows_core::Interface::as_raw(self), confirmation).ok() } pub unsafe fn HandleErrorFromOurCompareStates(&self, error: DTCLUCOMPARESTATESERROR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleErrorFromOurCompareStates)(windows_core::Interface::as_raw(self), core::mem::transmute(error)).ok() + (windows_core::Interface::vtable(self).HandleErrorFromOurCompareStates)(windows_core::Interface::as_raw(self), error).ok() } pub unsafe fn ConversationLost(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConversationLost)(windows_core::Interface::as_raw(self)).ok() @@ -648,7 +648,7 @@ impl IDtcLuRmEnlistmentFactory { P2: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(puclupair), core::mem::transmute(cblupair), pitransaction.param().abi(), core::mem::transmute(ptransid), core::mem::transmute(cbtransid), prmenlistmentsink.param().abi(), core::mem::transmute(pprmenlistment)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(puclupair), cblupair, pitransaction.param().abi(), core::mem::transmute(ptransid), cbtransid, prmenlistmentsink.param().abi(), core::mem::transmute(pprmenlistment)).ok() } } #[repr(C)] @@ -883,7 +883,7 @@ impl IDtcLuSubordinateDtcFactory { P5: windows_core::Param, P9: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(puclupair), core::mem::transmute(cblupair), punktransactionouter.param().abi(), core::mem::transmute(isolevel), core::mem::transmute(isoflags), poptions.param().abi(), core::mem::transmute(pptransaction), core::mem::transmute(ptransid), core::mem::transmute(cbtransid), psubordinatedtcsink.param().abi(), core::mem::transmute(ppsubordinatedtc)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(puclupair), cblupair, punktransactionouter.param().abi(), isolevel, isoflags, poptions.param().abi(), core::mem::transmute(pptransaction), core::mem::transmute(ptransid), cbtransid, psubordinatedtcsink.param().abi(), core::mem::transmute(ppsubordinatedtc)).ok() } } #[repr(C)] @@ -1229,7 +1229,7 @@ impl IDtcNetworkAccessConfig2 { (windows_core::Interface::vtable(self).GetAuthenticationLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationLevel(&self, authlevel: AUTHENTICATION_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(authlevel)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationLevel)(windows_core::Interface::as_raw(self), authlevel).ok() } } #[repr(C)] @@ -1373,7 +1373,7 @@ impl IDtcToXaHelper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TranslateTridToXid)(windows_core::Interface::as_raw(self), pitransaction.param().abi(), core::mem::transmute(pguidbqual), core::mem::transmute(pxid)).ok() + (windows_core::Interface::vtable(self).TranslateTridToXid)(windows_core::Interface::as_raw(self), pitransaction.param().abi(), pguidbqual, core::mem::transmute(pxid)).ok() } } #[repr(C)] @@ -1450,7 +1450,7 @@ impl IDtcToXaHelperSinglePipe { (windows_core::Interface::vtable(self).XARMCreate)(windows_core::Interface::as_raw(self), pszdsn.param().abi(), pszclientdll.param().abi(), core::mem::transmute(pdwrmcookie)).ok() } pub unsafe fn ConvertTridToXID(&self, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertTridToXID)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwitrans), core::mem::transmute(dwrmcookie), core::mem::transmute(pxid)).ok() + (windows_core::Interface::vtable(self).ConvertTridToXID)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwitrans), dwrmcookie, core::mem::transmute(pxid)).ok() } pub unsafe fn EnlistWithRM(&self, dwrmcookie: u32, i_pitransaction: P1, i_pitransres: P2) -> windows_core::Result where @@ -1458,10 +1458,10 @@ impl IDtcToXaHelperSinglePipe { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnlistWithRM)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrmcookie), i_pitransaction.param().abi(), i_pitransres.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnlistWithRM)(windows_core::Interface::as_raw(self), dwrmcookie, i_pitransaction.param().abi(), i_pitransres.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReleaseRMCookie(&self, i_dwrmcookie: u32, i_fnormal: bool) { - (windows_core::Interface::vtable(self).ReleaseRMCookie)(windows_core::Interface::as_raw(self), core::mem::transmute(i_dwrmcookie), i_fnormal.into()) + (windows_core::Interface::vtable(self).ReleaseRMCookie)(windows_core::Interface::as_raw(self), i_dwrmcookie, i_fnormal.into()) } } #[repr(C)] @@ -1526,13 +1526,13 @@ impl IDtcToXaMapper { (windows_core::Interface::vtable(self).RequestNewResourceManager)(windows_core::Interface::as_raw(self), pszdsn.param().abi(), pszclientdllname.param().abi(), core::mem::transmute(pdwrmcookie)).ok() } pub unsafe fn TranslateTridToXid(&self, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateTridToXid)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwitransaction), core::mem::transmute(dwrmcookie), core::mem::transmute(pxid)).ok() + (windows_core::Interface::vtable(self).TranslateTridToXid)(windows_core::Interface::as_raw(self), pdwitransaction, dwrmcookie, core::mem::transmute(pxid)).ok() } pub unsafe fn EnlistResourceManager(&self, dwrmcookie: u32, pdwitransaction: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnlistResourceManager)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrmcookie), core::mem::transmute(pdwitransaction)).ok() + (windows_core::Interface::vtable(self).EnlistResourceManager)(windows_core::Interface::as_raw(self), dwrmcookie, pdwitransaction).ok() } pub unsafe fn ReleaseResourceManager(&self, dwrmcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseResourceManager)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrmcookie)).ok() + (windows_core::Interface::vtable(self).ReleaseResourceManager)(windows_core::Interface::as_raw(self), dwrmcookie).ok() } } #[repr(C)] @@ -1584,7 +1584,7 @@ windows_core::imp::define_interface!(IGetDispenser, IGetDispenser_Vtbl, 0xc23cc3 windows_core::imp::interface_hierarchy!(IGetDispenser, windows_core::IUnknown); impl IGetDispenser { pub unsafe fn GetDispenser(&self, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDispenser)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetDispenser)(windows_core::Interface::as_raw(self), iid, core::mem::transmute(ppvobject)).ok() } } #[repr(C)] @@ -1778,7 +1778,7 @@ windows_core::imp::define_interface!(IRMHelper, IRMHelper_Vtbl, 0xe793f6d1_f53d_ windows_core::imp::interface_hierarchy!(IRMHelper, windows_core::IUnknown); impl IRMHelper { pub unsafe fn RMCount(&self, dwctotalnumberofrms: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RMCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwctotalnumberofrms)).ok() + (windows_core::Interface::vtable(self).RMCount)(windows_core::Interface::as_raw(self), dwctotalnumberofrms).ok() } pub unsafe fn RMInfo(&self, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: bool, pszopenstring: P2, pszclosestring: P3, guidrmrecovery: windows_core::GUID) -> windows_core::Result<()> where @@ -1827,13 +1827,13 @@ impl IResourceManager { } pub unsafe fn Reenlist(&self, pprepinfo: &[u8], ltimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Reenlist)(windows_core::Interface::as_raw(self), core::mem::transmute(pprepinfo.as_ptr()), pprepinfo.len().try_into().unwrap(), core::mem::transmute(ltimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Reenlist)(windows_core::Interface::as_raw(self), core::mem::transmute(pprepinfo.as_ptr()), pprepinfo.len().try_into().unwrap(), ltimeout, &mut result__).map(|| result__) } pub unsafe fn ReenlistmentComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReenlistmentComplete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetDistributedTransactionManager(&self, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDistributedTransactionManager)(windows_core::Interface::as_raw(self), core::mem::transmute(iid), core::mem::transmute(ppvobject)).ok() + (windows_core::Interface::vtable(self).GetDistributedTransactionManager)(windows_core::Interface::as_raw(self), iid, core::mem::transmute(ppvobject)).ok() } } #[repr(C)] @@ -1905,7 +1905,7 @@ impl IResourceManager2 { } pub unsafe fn Reenlist2(&self, pxid: *const XID, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Reenlist2)(windows_core::Interface::as_raw(self), core::mem::transmute(pxid), core::mem::transmute(dwtimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Reenlist2)(windows_core::Interface::as_raw(self), pxid, dwtimeout, &mut result__).map(|| result__) } } #[repr(C)] @@ -1950,7 +1950,7 @@ impl IResourceManagerFactory { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidrm), pszrmname.param().abi(), piresmgrsink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.param().abi(), piresmgrsink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1994,7 +1994,7 @@ impl IResourceManagerFactory2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidrm), pszrmname.param().abi(), piresmgrsink.param().abi(), core::mem::transmute(riidrequested), core::mem::transmute(ppvresmgr)).ok() + (windows_core::Interface::vtable(self).CreateEx)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.param().abi(), piresmgrsink.param().abi(), riidrequested, core::mem::transmute(ppvresmgr)).ok() } } #[repr(C)] @@ -2029,7 +2029,7 @@ windows_core::imp::interface_hierarchy!(IResourceManagerRejoinable, windows_core impl IResourceManagerRejoinable { pub unsafe fn Rejoin(&self, pprepinfo: &[u8], ltimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Rejoin)(windows_core::Interface::as_raw(self), core::mem::transmute(pprepinfo.as_ptr()), pprepinfo.len().try_into().unwrap(), core::mem::transmute(ltimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Rejoin)(windows_core::Interface::as_raw(self), core::mem::transmute(pprepinfo.as_ptr()), pprepinfo.len().try_into().unwrap(), ltimeout, &mut result__).map(|| result__) } } #[repr(C)] @@ -2118,14 +2118,14 @@ windows_core::imp::interface_hierarchy!(ITipHelper, windows_core::IUnknown); impl ITipHelper { pub unsafe fn Pull(&self, i_psztxurl: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Pull)(windows_core::Interface::as_raw(self), core::mem::transmute(i_psztxurl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Pull)(windows_core::Interface::as_raw(self), i_psztxurl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PullAsync(&self, i_psztxurl: *const u8, i_ptippullsink: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PullAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(i_psztxurl), i_ptippullsink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PullAsync)(windows_core::Interface::as_raw(self), i_psztxurl, i_ptippullsink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLocalTmUrl(&self) -> windows_core::Result<*mut u8> { let mut result__ = core::mem::zeroed(); @@ -2192,7 +2192,7 @@ windows_core::imp::define_interface!(ITipPullSink, ITipPullSink_Vtbl, 0x17cf72d2 windows_core::imp::interface_hierarchy!(ITipPullSink, windows_core::IUnknown); impl ITipPullSink { pub unsafe fn PullComplete(&self, i_hrpull: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PullComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(i_hrpull)).ok() + (windows_core::Interface::vtable(self).PullComplete)(windows_core::Interface::as_raw(self), i_hrpull).ok() } } #[repr(C)] @@ -2221,7 +2221,7 @@ windows_core::imp::interface_hierarchy!(ITipTransaction, windows_core::IUnknown) impl ITipTransaction { pub unsafe fn Push(&self, i_pszremotetmurl: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Push)(windows_core::Interface::as_raw(self), core::mem::transmute(i_pszremotetmurl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Push)(windows_core::Interface::as_raw(self), i_pszremotetmurl, &mut result__).map(|| result__) } pub unsafe fn GetTransactionUrl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2279,7 +2279,7 @@ impl ITmNodeName { (windows_core::Interface::vtable(self).GetNodeNameSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetNodeName(&self, cbnodenamebuffersize: u32, pnodenamebuffer: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNodeName)(windows_core::Interface::as_raw(self), core::mem::transmute(cbnodenamebuffersize), core::mem::transmute(pnodenamebuffer)).ok() + (windows_core::Interface::vtable(self).GetNodeName)(windows_core::Interface::as_raw(self), cbnodenamebuffersize, core::mem::transmute(pnodenamebuffer)).ok() } } #[repr(C)] @@ -2323,10 +2323,10 @@ windows_core::imp::define_interface!(ITransaction, ITransaction_Vtbl, 0x0fb15084 windows_core::imp::interface_hierarchy!(ITransaction, windows_core::IUnknown); impl ITransaction { pub unsafe fn Commit(&self, fretaining: bool, grftc: u32, grfrm: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fretaining.into(), core::mem::transmute(grftc), core::mem::transmute(grfrm)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fretaining.into(), grftc, grfrm).ok() } pub unsafe fn Abort(&self, pboidreason: *const BOID, fretaining: bool, fasync: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), core::mem::transmute(pboidreason), fretaining.into(), fasync.into()).ok() + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into(), fasync.into()).ok() } pub unsafe fn GetTransactionInfo(&self, pinfo: *mut XACTTRANSINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTransactionInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pinfo)).ok() @@ -2458,7 +2458,7 @@ impl ITransactionDispenser { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginTransaction)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(isolevel), core::mem::transmute(isoflags), poptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginTransaction)(windows_core::Interface::as_raw(self), punkouter.param().abi(), isolevel, isoflags, poptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2512,13 +2512,13 @@ impl ITransactionEnlistmentAsync { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareRequestDone)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), pmk.param().abi(), core::mem::transmute(pboidreason)).ok() + (windows_core::Interface::vtable(self).PrepareRequestDone)(windows_core::Interface::as_raw(self), hr, pmk.param().abi(), pboidreason).ok() } pub unsafe fn CommitRequestDone(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommitRequestDone)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).CommitRequestDone)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn AbortRequestDone(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AbortRequestDone)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).AbortRequestDone)(windows_core::Interface::as_raw(self), hr).ok() } } #[repr(C)] @@ -2758,7 +2758,7 @@ windows_core::imp::define_interface!(ITransactionLastEnlistmentAsync, ITransacti windows_core::imp::interface_hierarchy!(ITransactionLastEnlistmentAsync, windows_core::IUnknown); impl ITransactionLastEnlistmentAsync { pub unsafe fn TransactionOutcome(&self, xactstat: XACTSTAT, pboidreason: *const BOID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TransactionOutcome)(windows_core::Interface::as_raw(self), core::mem::transmute(xactstat), core::mem::transmute(pboidreason)).ok() + (windows_core::Interface::vtable(self).TransactionOutcome)(windows_core::Interface::as_raw(self), xactstat, pboidreason).ok() } } #[repr(C)] @@ -2786,10 +2786,10 @@ windows_core::imp::define_interface!(ITransactionLastResourceAsync, ITransaction windows_core::imp::interface_hierarchy!(ITransactionLastResourceAsync, windows_core::IUnknown); impl ITransactionLastResourceAsync { pub unsafe fn DelegateCommit(&self, grfrm: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DelegateCommit)(windows_core::Interface::as_raw(self), core::mem::transmute(grfrm)).ok() + (windows_core::Interface::vtable(self).DelegateCommit)(windows_core::Interface::as_raw(self), grfrm).ok() } pub unsafe fn ForgetRequest(&self, pnewuow: *const BOID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ForgetRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pnewuow)).ok() + (windows_core::Interface::vtable(self).ForgetRequest)(windows_core::Interface::as_raw(self), pnewuow).ok() } } #[repr(C)] @@ -2827,7 +2827,7 @@ windows_core::imp::define_interface!(ITransactionOptions, ITransactionOptions_Vt windows_core::imp::interface_hierarchy!(ITransactionOptions, windows_core::IUnknown); impl ITransactionOptions { pub unsafe fn SetOptions(&self, poptions: *const XACTOPT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(poptions)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), poptions).ok() } pub unsafe fn GetOptions(&self, poptions: *mut XACTOPT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(poptions)).ok() @@ -2868,13 +2868,13 @@ windows_core::imp::define_interface!(ITransactionOutcomeEvents, ITransactionOutc windows_core::imp::interface_hierarchy!(ITransactionOutcomeEvents, windows_core::IUnknown); impl ITransactionOutcomeEvents { pub unsafe fn Committed(&self, fretaining: bool, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Committed)(windows_core::Interface::as_raw(self), fretaining.into(), core::mem::transmute(pnewuow), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).Committed)(windows_core::Interface::as_raw(self), fretaining.into(), pnewuow, hr).ok() } pub unsafe fn Aborted(&self, pboidreason: *const BOID, fretaining: bool, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Aborted)(windows_core::Interface::as_raw(self), core::mem::transmute(pboidreason), fretaining.into(), core::mem::transmute(pnewuow), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).Aborted)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into(), pnewuow, hr).ok() } pub unsafe fn HeuristicDecision(&self, dwdecision: u32, pboidreason: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HeuristicDecision)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdecision), core::mem::transmute(pboidreason), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).HeuristicDecision)(windows_core::Interface::as_raw(self), dwdecision, pboidreason, hr).ok() } pub unsafe fn Indoubt(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Indoubt)(windows_core::Interface::as_raw(self)).ok() @@ -3048,7 +3048,7 @@ impl ITransactionPhase0NotifyAsync { (windows_core::Interface::vtable(self).Phase0Request)(windows_core::Interface::as_raw(self), fabortinghint.into()).ok() } pub unsafe fn EnlistCompleted(&self, status: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnlistCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).EnlistCompleted)(windows_core::Interface::as_raw(self), status).ok() } } #[repr(C)] @@ -3196,13 +3196,13 @@ windows_core::imp::define_interface!(ITransactionResource, ITransactionResource_ windows_core::imp::interface_hierarchy!(ITransactionResource, windows_core::IUnknown); impl ITransactionResource { pub unsafe fn PrepareRequest(&self, fretaining: bool, grfrm: u32, fwantmoniker: bool, fsinglephase: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.into(), core::mem::transmute(grfrm), fwantmoniker.into(), fsinglephase.into()).ok() + (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.into(), grfrm, fwantmoniker.into(), fsinglephase.into()).ok() } pub unsafe fn CommitRequest(&self, grfrm: u32, pnewuow: *const BOID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommitRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(grfrm), core::mem::transmute(pnewuow)).ok() + (windows_core::Interface::vtable(self).CommitRequest)(windows_core::Interface::as_raw(self), grfrm, pnewuow).ok() } pub unsafe fn AbortRequest(&self, pboidreason: *const BOID, fretaining: bool, pnewuow: *const BOID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pboidreason), fretaining.into(), core::mem::transmute(pnewuow)).ok() + (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into(), pnewuow).ok() } pub unsafe fn TMDown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TMDown)(windows_core::Interface::as_raw(self)).ok() @@ -3257,13 +3257,13 @@ windows_core::imp::define_interface!(ITransactionResourceAsync, ITransactionReso windows_core::imp::interface_hierarchy!(ITransactionResourceAsync, windows_core::IUnknown); impl ITransactionResourceAsync { pub unsafe fn PrepareRequest(&self, fretaining: bool, grfrm: u32, fwantmoniker: bool, fsinglephase: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.into(), core::mem::transmute(grfrm), fwantmoniker.into(), fsinglephase.into()).ok() + (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.into(), grfrm, fwantmoniker.into(), fsinglephase.into()).ok() } pub unsafe fn CommitRequest(&self, grfrm: u32, pnewuow: *const BOID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommitRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(grfrm), core::mem::transmute(pnewuow)).ok() + (windows_core::Interface::vtable(self).CommitRequest)(windows_core::Interface::as_raw(self), grfrm, pnewuow).ok() } pub unsafe fn AbortRequest(&self, pboidreason: *const BOID, fretaining: bool, pnewuow: *const BOID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pboidreason), fretaining.into(), core::mem::transmute(pnewuow)).ok() + (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into(), pnewuow).ok() } pub unsafe fn TMDown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TMDown)(windows_core::Interface::as_raw(self)).ok() @@ -3434,7 +3434,7 @@ windows_core::imp::define_interface!(ITransactionVoterBallotAsync2, ITransaction windows_core::imp::interface_hierarchy!(ITransactionVoterBallotAsync2, windows_core::IUnknown); impl ITransactionVoterBallotAsync2 { pub unsafe fn VoteRequestDone(&self, hr: windows_core::HRESULT, pboidreason: Option<*const BOID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).VoteRequestDone)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), core::mem::transmute(pboidreason.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).VoteRequestDone)(windows_core::Interface::as_raw(self), hr, core::mem::transmute(pboidreason.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -3643,7 +3643,7 @@ windows_core::imp::interface_hierarchy!(IXATransLookup2, windows_core::IUnknown) impl IXATransLookup2 { pub unsafe fn Lookup(&self, pxid: *const XID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Lookup)(windows_core::Interface::as_raw(self), core::mem::transmute(pxid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Lookup)(windows_core::Interface::as_raw(self), pxid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs index 72f4126a2a..57268136c6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn CallEnclave(lproutine: isize, lpparameter: *const core::ffi::c_void, fwaitforthread: bool, lpreturnvalue: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn CallEnclave(lproutine : isize, lpparameter : *const core::ffi::c_void, fwaitforthread : super::super::Foundation:: BOOL, lpreturnvalue : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CallEnclave(core::mem::transmute(lproutine), core::mem::transmute(lpparameter), fwaitforthread.into(), core::mem::transmute(lpreturnvalue)).ok() + CallEnclave(lproutine, lpparameter, fwaitforthread.into(), core::mem::transmute(lpreturnvalue)).ok() } #[inline] pub unsafe fn CreateEnclave(hprocess: super::super::Foundation::HANDLE, lpaddress: Option<*const core::ffi::c_void>, dwsize: usize, dwinitialcommitment: usize, flenclavetype: u32, lpenclaveinformation: *const core::ffi::c_void, dwinfolength: u32, lpenclaveerror: Option<*mut u32>) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn CreateEnclave(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, dwsize : usize, dwinitialcommitment : usize, flenclavetype : u32, lpenclaveinformation : *const core::ffi::c_void, dwinfolength : u32, lpenclaveerror : *mut u32) -> *mut core::ffi::c_void); - CreateEnclave(core::mem::transmute(hprocess), core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize), core::mem::transmute(dwinitialcommitment), core::mem::transmute(flenclavetype), core::mem::transmute(lpenclaveinformation), core::mem::transmute(dwinfolength), core::mem::transmute(lpenclaveerror.unwrap_or(core::mem::zeroed()))) + CreateEnclave(hprocess, core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), dwsize, dwinitialcommitment, flenclavetype, lpenclaveinformation, dwinfolength, core::mem::transmute(lpenclaveerror.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateEnvironmentBlock(lpenvironment: *mut *mut core::ffi::c_void, htoken: Option, binherit: bool) -> windows_core::Result<()> { @@ -16,37 +16,37 @@ pub unsafe fn CreateEnvironmentBlock(lpenvironment: *mut *mut core::ffi::c_void, #[inline] pub unsafe fn DeleteEnclave(lpaddress: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn DeleteEnclave(lpaddress : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DeleteEnclave(core::mem::transmute(lpaddress)).ok() + DeleteEnclave(lpaddress).ok() } #[inline] pub unsafe fn DestroyEnvironmentBlock(lpenvironment: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn DestroyEnvironmentBlock(lpenvironment : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DestroyEnvironmentBlock(core::mem::transmute(lpenvironment)).ok() + DestroyEnvironmentBlock(lpenvironment).ok() } #[inline] pub unsafe fn EnclaveGetAttestationReport(enclavedata: Option<&[u8; 64]>, report: Option<*mut core::ffi::c_void>, buffersize: u32, outputsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn EnclaveGetAttestationReport(enclavedata : *const u8, report : *mut core::ffi::c_void, buffersize : u32, outputsize : *mut u32) -> windows_core::HRESULT); - EnclaveGetAttestationReport(core::mem::transmute(enclavedata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(report.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(outputsize)).ok() + EnclaveGetAttestationReport(core::mem::transmute(enclavedata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(report.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(outputsize)).ok() } #[inline] pub unsafe fn EnclaveGetEnclaveInformation(informationsize: u32, enclaveinformation: *mut ENCLAVE_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn EnclaveGetEnclaveInformation(informationsize : u32, enclaveinformation : *mut ENCLAVE_INFORMATION) -> windows_core::HRESULT); - EnclaveGetEnclaveInformation(core::mem::transmute(informationsize), core::mem::transmute(enclaveinformation)).ok() + EnclaveGetEnclaveInformation(informationsize, core::mem::transmute(enclaveinformation)).ok() } #[inline] pub unsafe fn EnclaveSealData(datatoencrypt: *const core::ffi::c_void, datatoencryptsize: u32, identitypolicy: ENCLAVE_SEALING_IDENTITY_POLICY, runtimepolicy: u32, protectedblob: Option<*mut core::ffi::c_void>, buffersize: u32, protectedblobsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn EnclaveSealData(datatoencrypt : *const core::ffi::c_void, datatoencryptsize : u32, identitypolicy : ENCLAVE_SEALING_IDENTITY_POLICY, runtimepolicy : u32, protectedblob : *mut core::ffi::c_void, buffersize : u32, protectedblobsize : *mut u32) -> windows_core::HRESULT); - EnclaveSealData(core::mem::transmute(datatoencrypt), core::mem::transmute(datatoencryptsize), core::mem::transmute(identitypolicy), core::mem::transmute(runtimepolicy), core::mem::transmute(protectedblob.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(protectedblobsize)).ok() + EnclaveSealData(datatoencrypt, datatoencryptsize, identitypolicy, runtimepolicy, core::mem::transmute(protectedblob.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(protectedblobsize)).ok() } #[inline] pub unsafe fn EnclaveUnsealData(protectedblob: *const core::ffi::c_void, protectedblobsize: u32, decrypteddata: Option<*mut core::ffi::c_void>, buffersize: u32, decrypteddatasize: *mut u32, sealingidentity: Option<*mut ENCLAVE_IDENTITY>, unsealingflags: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn EnclaveUnsealData(protectedblob : *const core::ffi::c_void, protectedblobsize : u32, decrypteddata : *mut core::ffi::c_void, buffersize : u32, decrypteddatasize : *mut u32, sealingidentity : *mut ENCLAVE_IDENTITY, unsealingflags : *mut u32) -> windows_core::HRESULT); - EnclaveUnsealData(core::mem::transmute(protectedblob), core::mem::transmute(protectedblobsize), core::mem::transmute(decrypteddata.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(decrypteddatasize), core::mem::transmute(sealingidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(unsealingflags.unwrap_or(core::mem::zeroed()))).ok() + EnclaveUnsealData(protectedblob, protectedblobsize, core::mem::transmute(decrypteddata.unwrap_or(core::mem::zeroed())), buffersize, core::mem::transmute(decrypteddatasize), core::mem::transmute(sealingidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(unsealingflags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnclaveVerifyAttestationReport(enclavetype: u32, report: *const core::ffi::c_void, reportsize: u32) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn EnclaveVerifyAttestationReport(enclavetype : u32, report : *const core::ffi::c_void, reportsize : u32) -> windows_core::HRESULT); - EnclaveVerifyAttestationReport(core::mem::transmute(enclavetype), core::mem::transmute(report), core::mem::transmute(reportsize)).ok() + EnclaveVerifyAttestationReport(enclavetype, report, reportsize).ok() } #[inline] pub unsafe fn ExpandEnvironmentStringsA(lpsrc: P0, lpdst: Option<&mut [u8]>) -> u32 @@ -145,17 +145,17 @@ where #[inline] pub unsafe fn InitializeEnclave(hprocess: super::super::Foundation::HANDLE, lpaddress: *const core::ffi::c_void, lpenclaveinformation: *const core::ffi::c_void, dwinfolength: u32, lpenclaveerror: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeEnclave(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpenclaveinformation : *const core::ffi::c_void, dwinfolength : u32, lpenclaveerror : *mut u32) -> super::super::Foundation:: BOOL); - InitializeEnclave(core::mem::transmute(hprocess), core::mem::transmute(lpaddress), core::mem::transmute(lpenclaveinformation), core::mem::transmute(dwinfolength), core::mem::transmute(lpenclaveerror.unwrap_or(core::mem::zeroed()))).ok() + InitializeEnclave(hprocess, lpaddress, lpenclaveinformation, dwinfolength, core::mem::transmute(lpenclaveerror.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn IsEnclaveTypeSupported(flenclavetype: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsEnclaveTypeSupported(flenclavetype : u32) -> super::super::Foundation:: BOOL); - IsEnclaveTypeSupported(core::mem::transmute(flenclavetype)).ok() + IsEnclaveTypeSupported(flenclavetype).ok() } #[inline] pub unsafe fn LoadEnclaveData(hprocess: super::super::Foundation::HANDLE, lpaddress: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nsize: usize, flprotect: u32, lppageinformation: *const core::ffi::c_void, dwinfolength: u32, lpnumberofbyteswritten: *mut usize, lpenclaveerror: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn LoadEnclaveData(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, nsize : usize, flprotect : u32, lppageinformation : *const core::ffi::c_void, dwinfolength : u32, lpnumberofbyteswritten : *mut usize, lpenclaveerror : *mut u32) -> super::super::Foundation:: BOOL); - LoadEnclaveData(core::mem::transmute(hprocess), core::mem::transmute(lpaddress), core::mem::transmute(lpbuffer), core::mem::transmute(nsize), core::mem::transmute(flprotect), core::mem::transmute(lppageinformation), core::mem::transmute(dwinfolength), core::mem::transmute(lpnumberofbyteswritten), core::mem::transmute(lpenclaveerror.unwrap_or(core::mem::zeroed()))).ok() + LoadEnclaveData(hprocess, lpaddress, lpbuffer, nsize, flprotect, lppageinformation, dwinfolength, core::mem::transmute(lpnumberofbyteswritten), core::mem::transmute(lpenclaveerror.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn LoadEnclaveImageA(lpenclaveaddress: *const core::ffi::c_void, lpimagename: P1) -> super::super::Foundation::BOOL @@ -163,7 +163,7 @@ where P1: windows_core::Param, { windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn LoadEnclaveImageA(lpenclaveaddress : *const core::ffi::c_void, lpimagename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - LoadEnclaveImageA(core::mem::transmute(lpenclaveaddress), lpimagename.param().abi()) + LoadEnclaveImageA(lpenclaveaddress, lpimagename.param().abi()) } #[inline] pub unsafe fn LoadEnclaveImageW(lpenclaveaddress: *const core::ffi::c_void, lpimagename: P1) -> windows_core::Result<()> @@ -171,7 +171,7 @@ where P1: windows_core::Param, { windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn LoadEnclaveImageW(lpenclaveaddress : *const core::ffi::c_void, lpimagename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - LoadEnclaveImageW(core::mem::transmute(lpenclaveaddress), lpimagename.param().abi()).ok() + LoadEnclaveImageW(lpenclaveaddress, lpimagename.param().abi()).ok() } #[inline] pub unsafe fn NeedCurrentDirectoryForExePathA(exename: P0) -> super::super::Foundation::BOOL @@ -234,7 +234,7 @@ where #[inline] pub unsafe fn TerminateEnclave(lpaddress: *const core::ffi::c_void, fwait: bool) -> windows_core::Result<()> { windows_targets::link!("vertdll.dll" "system" fn TerminateEnclave(lpaddress : *const core::ffi::c_void, fwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - TerminateEnclave(core::mem::transmute(lpaddress), fwait.into()).ok() + TerminateEnclave(lpaddress, fwait.into()).ok() } pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ACTIVE: u32 = 4u32; pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ENABLED: u32 = 2u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs index 791e987841..71121302ae 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -18,7 +18,7 @@ where #[inline] pub unsafe fn ReportFault(pep: *const super::Diagnostics::Debug::EXCEPTION_POINTERS, dwopt: u32) -> EFaultRepRetVal { windows_targets::link!("faultrep.dll" "system" fn ReportFault(pep : *const super::Diagnostics::Debug:: EXCEPTION_POINTERS, dwopt : u32) -> EFaultRepRetVal); - ReportFault(core::mem::transmute(pep), core::mem::transmute(dwopt)) + ReportFault(pep, dwopt) } #[inline] pub unsafe fn WerAddExcludedApplication(pwzexename: P0, ballusers: bool) -> windows_core::Result<()> @@ -40,12 +40,12 @@ where pub unsafe fn WerGetFlags(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn WerGetFlags(hprocess : super::super::Foundation:: HANDLE, pdwflags : *mut WER_FAULT_REPORTING) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WerGetFlags(core::mem::transmute(hprocess), &mut result__).map(|| core::mem::transmute(result__)) + WerGetFlags(hprocess, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WerRegisterAdditionalProcess(processid: u32, captureextrainfoforthreadid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerRegisterAdditionalProcess(processid : u32, captureextrainfoforthreadid : u32) -> windows_core::HRESULT); - WerRegisterAdditionalProcess(core::mem::transmute(processid), core::mem::transmute(captureextrainfoforthreadid)).ok() + WerRegisterAdditionalProcess(processid, captureextrainfoforthreadid).ok() } #[inline] pub unsafe fn WerRegisterAppLocalDump(localappdatarelativepath: P0) -> windows_core::Result<()> @@ -67,7 +67,7 @@ where #[inline] pub unsafe fn WerRegisterExcludedMemoryBlock(address: *const core::ffi::c_void, size: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerRegisterExcludedMemoryBlock(address : *const core::ffi::c_void, size : u32) -> windows_core::HRESULT); - WerRegisterExcludedMemoryBlock(core::mem::transmute(address), core::mem::transmute(size)).ok() + WerRegisterExcludedMemoryBlock(address, size).ok() } #[inline] pub unsafe fn WerRegisterFile(pwzfile: P0, regfiletype: WER_REGISTER_FILE_TYPE, dwflags: WER_FILE) -> windows_core::Result<()> @@ -75,12 +75,12 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerRegisterFile(pwzfile : windows_core::PCWSTR, regfiletype : WER_REGISTER_FILE_TYPE, dwflags : WER_FILE) -> windows_core::HRESULT); - WerRegisterFile(pwzfile.param().abi(), core::mem::transmute(regfiletype), core::mem::transmute(dwflags)).ok() + WerRegisterFile(pwzfile.param().abi(), regfiletype, dwflags).ok() } #[inline] pub unsafe fn WerRegisterMemoryBlock(pvaddress: *const core::ffi::c_void, dwsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerRegisterMemoryBlock(pvaddress : *const core::ffi::c_void, dwsize : u32) -> windows_core::HRESULT); - WerRegisterMemoryBlock(core::mem::transmute(pvaddress), core::mem::transmute(dwsize)).ok() + WerRegisterMemoryBlock(pvaddress, dwsize).ok() } #[inline] pub unsafe fn WerRegisterRuntimeExceptionModule(pwszoutofprocesscallbackdll: P0, pcontext: *const core::ffi::c_void) -> windows_core::Result<()> @@ -88,7 +88,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerRegisterRuntimeExceptionModule(pwszoutofprocesscallbackdll : windows_core::PCWSTR, pcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WerRegisterRuntimeExceptionModule(pwszoutofprocesscallbackdll.param().abi(), core::mem::transmute(pcontext)).ok() + WerRegisterRuntimeExceptionModule(pwszoutofprocesscallbackdll.param().abi(), pcontext).ok() } #[inline] pub unsafe fn WerRemoveExcludedApplication(pwzexename: P0, ballusers: bool) -> windows_core::Result<()> @@ -102,7 +102,7 @@ where #[inline] pub unsafe fn WerReportAddDump(hreporthandle: HREPORT, hprocess: super::super::Foundation::HANDLE, hthread: Option, dumptype: WER_DUMP_TYPE, pexceptionparam: Option<*const WER_EXCEPTION_INFORMATION>, pdumpcustomoptions: Option<*const WER_DUMP_CUSTOM_OPTIONS>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("wer.dll" "system" fn WerReportAddDump(hreporthandle : HREPORT, hprocess : super::super::Foundation:: HANDLE, hthread : super::super::Foundation:: HANDLE, dumptype : WER_DUMP_TYPE, pexceptionparam : *const WER_EXCEPTION_INFORMATION, pdumpcustomoptions : *const WER_DUMP_CUSTOM_OPTIONS, dwflags : u32) -> windows_core::HRESULT); - WerReportAddDump(core::mem::transmute(hreporthandle), core::mem::transmute(hprocess), core::mem::transmute(hthread.unwrap_or(core::mem::zeroed())), core::mem::transmute(dumptype), core::mem::transmute(pexceptionparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdumpcustomoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + WerReportAddDump(hreporthandle, hprocess, core::mem::transmute(hthread.unwrap_or(core::mem::zeroed())), dumptype, core::mem::transmute(pexceptionparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdumpcustomoptions.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn WerReportAddFile(hreporthandle: HREPORT, pwzpath: P1, repfiletype: WER_FILE_TYPE, dwfileflags: WER_FILE) -> windows_core::Result<()> @@ -110,12 +110,12 @@ where P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerReportAddFile(hreporthandle : HREPORT, pwzpath : windows_core::PCWSTR, repfiletype : WER_FILE_TYPE, dwfileflags : WER_FILE) -> windows_core::HRESULT); - WerReportAddFile(core::mem::transmute(hreporthandle), pwzpath.param().abi(), core::mem::transmute(repfiletype), core::mem::transmute(dwfileflags)).ok() + WerReportAddFile(hreporthandle, pwzpath.param().abi(), repfiletype, dwfileflags).ok() } #[inline] pub unsafe fn WerReportCloseHandle(hreporthandle: HREPORT) -> windows_core::Result<()> { windows_targets::link!("wer.dll" "system" fn WerReportCloseHandle(hreporthandle : HREPORT) -> windows_core::HRESULT); - WerReportCloseHandle(core::mem::transmute(hreporthandle)).ok() + WerReportCloseHandle(hreporthandle).ok() } #[inline] pub unsafe fn WerReportCreate(pwzeventtype: P0, reptype: WER_REPORT_TYPE, preportinformation: Option<*const WER_REPORT_INFORMATION>) -> windows_core::Result @@ -124,7 +124,7 @@ where { windows_targets::link!("wer.dll" "system" fn WerReportCreate(pwzeventtype : windows_core::PCWSTR, reptype : WER_REPORT_TYPE, preportinformation : *const WER_REPORT_INFORMATION, phreporthandle : *mut HREPORT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WerReportCreate(pwzeventtype.param().abi(), core::mem::transmute(reptype), core::mem::transmute(preportinformation.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + WerReportCreate(pwzeventtype.param().abi(), reptype, core::mem::transmute(preportinformation.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WerReportHang(hwndhungapp: super::super::Foundation::HWND, pwzhungapplicationname: P1) -> windows_core::Result<()> @@ -132,7 +132,7 @@ where P1: windows_core::Param, { windows_targets::link!("faultrep.dll" "system" fn WerReportHang(hwndhungapp : super::super::Foundation:: HWND, pwzhungapplicationname : windows_core::PCWSTR) -> windows_core::HRESULT); - WerReportHang(core::mem::transmute(hwndhungapp), pwzhungapplicationname.param().abi()).ok() + WerReportHang(hwndhungapp, pwzhungapplicationname.param().abi()).ok() } #[inline] pub unsafe fn WerReportSetParameter(hreporthandle: HREPORT, dwparamid: u32, pwzname: P2, pwzvalue: P3) -> windows_core::Result<()> @@ -141,7 +141,7 @@ where P3: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerReportSetParameter(hreporthandle : HREPORT, dwparamid : u32, pwzname : windows_core::PCWSTR, pwzvalue : windows_core::PCWSTR) -> windows_core::HRESULT); - WerReportSetParameter(core::mem::transmute(hreporthandle), core::mem::transmute(dwparamid), pwzname.param().abi(), pwzvalue.param().abi()).ok() + WerReportSetParameter(hreporthandle, dwparamid, pwzname.param().abi(), pwzvalue.param().abi()).ok() } #[inline] pub unsafe fn WerReportSetUIOption(hreporthandle: HREPORT, repuitypeid: WER_REPORT_UI, pwzvalue: P2) -> windows_core::Result<()> @@ -149,17 +149,17 @@ where P2: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerReportSetUIOption(hreporthandle : HREPORT, repuitypeid : WER_REPORT_UI, pwzvalue : windows_core::PCWSTR) -> windows_core::HRESULT); - WerReportSetUIOption(core::mem::transmute(hreporthandle), core::mem::transmute(repuitypeid), pwzvalue.param().abi()).ok() + WerReportSetUIOption(hreporthandle, repuitypeid, pwzvalue.param().abi()).ok() } #[inline] pub unsafe fn WerReportSubmit(hreporthandle: HREPORT, consent: WER_CONSENT, dwflags: WER_SUBMIT_FLAGS, psubmitresult: Option<*mut WER_SUBMIT_RESULT>) -> windows_core::Result<()> { windows_targets::link!("wer.dll" "system" fn WerReportSubmit(hreporthandle : HREPORT, consent : WER_CONSENT, dwflags : WER_SUBMIT_FLAGS, psubmitresult : *mut WER_SUBMIT_RESULT) -> windows_core::HRESULT); - WerReportSubmit(core::mem::transmute(hreporthandle), core::mem::transmute(consent), core::mem::transmute(dwflags), core::mem::transmute(psubmitresult.unwrap_or(core::mem::zeroed()))).ok() + WerReportSubmit(hreporthandle, consent, dwflags, core::mem::transmute(psubmitresult.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WerSetFlags(dwflags: WER_FAULT_REPORTING) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerSetFlags(dwflags : WER_FAULT_REPORTING) -> windows_core::HRESULT); - WerSetFlags(core::mem::transmute(dwflags)).ok() + WerSetFlags(dwflags).ok() } #[inline] pub unsafe fn WerStoreClose(hreportstore: Option) { @@ -169,30 +169,30 @@ pub unsafe fn WerStoreClose(hreportstore: Option) { #[inline] pub unsafe fn WerStoreGetFirstReportKey(hreportstore: HREPORTSTORE, ppszreportkey: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> { windows_targets::link!("wer.dll" "system" fn WerStoreGetFirstReportKey(hreportstore : HREPORTSTORE, ppszreportkey : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - WerStoreGetFirstReportKey(core::mem::transmute(hreportstore), core::mem::transmute(ppszreportkey.unwrap_or(core::mem::zeroed()))).ok() + WerStoreGetFirstReportKey(hreportstore, core::mem::transmute(ppszreportkey.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WerStoreGetNextReportKey(hreportstore: HREPORTSTORE, ppszreportkey: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> { windows_targets::link!("wer.dll" "system" fn WerStoreGetNextReportKey(hreportstore : HREPORTSTORE, ppszreportkey : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - WerStoreGetNextReportKey(core::mem::transmute(hreportstore), core::mem::transmute(ppszreportkey.unwrap_or(core::mem::zeroed()))).ok() + WerStoreGetNextReportKey(hreportstore, core::mem::transmute(ppszreportkey.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WerStoreGetReportCount(hreportstore: HREPORTSTORE) -> windows_core::Result { windows_targets::link!("wer.dll" "system" fn WerStoreGetReportCount(hreportstore : HREPORTSTORE, pdwreportcount : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WerStoreGetReportCount(core::mem::transmute(hreportstore), &mut result__).map(|| core::mem::transmute(result__)) + WerStoreGetReportCount(hreportstore, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WerStoreGetSizeOnDisk(hreportstore: HREPORTSTORE) -> windows_core::Result { windows_targets::link!("wer.dll" "system" fn WerStoreGetSizeOnDisk(hreportstore : HREPORTSTORE, pqwsizeinbytes : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WerStoreGetSizeOnDisk(core::mem::transmute(hreportstore), &mut result__).map(|| core::mem::transmute(result__)) + WerStoreGetSizeOnDisk(hreportstore, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES) -> windows_core::Result { windows_targets::link!("wer.dll" "system" fn WerStoreOpen(repstoretype : REPORT_STORE_TYPES, phreportstore : *mut HREPORTSTORE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WerStoreOpen(core::mem::transmute(repstoretype), &mut result__).map(|| core::mem::transmute(result__)) + WerStoreOpen(repstoretype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WerStorePurge() -> windows_core::Result<()> { @@ -205,7 +205,7 @@ where P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreQueryReportMetadataV1(hreportstore : HREPORTSTORE, pszreportkey : windows_core::PCWSTR, preportmetadata : *mut WER_REPORT_METADATA_V1) -> windows_core::HRESULT); - WerStoreQueryReportMetadataV1(core::mem::transmute(hreportstore), pszreportkey.param().abi(), core::mem::transmute(preportmetadata)).ok() + WerStoreQueryReportMetadataV1(hreportstore, pszreportkey.param().abi(), core::mem::transmute(preportmetadata)).ok() } #[inline] pub unsafe fn WerStoreQueryReportMetadataV2(hreportstore: HREPORTSTORE, pszreportkey: P1, preportmetadata: *mut WER_REPORT_METADATA_V2) -> windows_core::Result<()> @@ -213,7 +213,7 @@ where P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreQueryReportMetadataV2(hreportstore : HREPORTSTORE, pszreportkey : windows_core::PCWSTR, preportmetadata : *mut WER_REPORT_METADATA_V2) -> windows_core::HRESULT); - WerStoreQueryReportMetadataV2(core::mem::transmute(hreportstore), pszreportkey.param().abi(), core::mem::transmute(preportmetadata)).ok() + WerStoreQueryReportMetadataV2(hreportstore, pszreportkey.param().abi(), core::mem::transmute(preportmetadata)).ok() } #[inline] pub unsafe fn WerStoreQueryReportMetadataV3(hreportstore: HREPORTSTORE, pszreportkey: P1, preportmetadata: *mut WER_REPORT_METADATA_V3) -> windows_core::Result<()> @@ -221,7 +221,7 @@ where P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreQueryReportMetadataV3(hreportstore : HREPORTSTORE, pszreportkey : windows_core::PCWSTR, preportmetadata : *mut WER_REPORT_METADATA_V3) -> windows_core::HRESULT); - WerStoreQueryReportMetadataV3(core::mem::transmute(hreportstore), pszreportkey.param().abi(), core::mem::transmute(preportmetadata)).ok() + WerStoreQueryReportMetadataV3(hreportstore, pszreportkey.param().abi(), core::mem::transmute(preportmetadata)).ok() } #[inline] pub unsafe fn WerStoreUploadReport(hreportstore: HREPORTSTORE, pszreportkey: P1, dwflags: u32, psubmitresult: Option<*mut WER_SUBMIT_RESULT>) -> windows_core::Result<()> @@ -229,12 +229,12 @@ where P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreUploadReport(hreportstore : HREPORTSTORE, pszreportkey : windows_core::PCWSTR, dwflags : u32, psubmitresult : *mut WER_SUBMIT_RESULT) -> windows_core::HRESULT); - WerStoreUploadReport(core::mem::transmute(hreportstore), pszreportkey.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(psubmitresult.unwrap_or(core::mem::zeroed()))).ok() + WerStoreUploadReport(hreportstore, pszreportkey.param().abi(), dwflags, core::mem::transmute(psubmitresult.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WerUnregisterAdditionalProcess(processid: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerUnregisterAdditionalProcess(processid : u32) -> windows_core::HRESULT); - WerUnregisterAdditionalProcess(core::mem::transmute(processid)).ok() + WerUnregisterAdditionalProcess(processid).ok() } #[inline] pub unsafe fn WerUnregisterAppLocalDump() -> windows_core::Result<()> { @@ -252,7 +252,7 @@ where #[inline] pub unsafe fn WerUnregisterExcludedMemoryBlock(address: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerUnregisterExcludedMemoryBlock(address : *const core::ffi::c_void) -> windows_core::HRESULT); - WerUnregisterExcludedMemoryBlock(core::mem::transmute(address)).ok() + WerUnregisterExcludedMemoryBlock(address).ok() } #[inline] pub unsafe fn WerUnregisterFile(pwzfilepath: P0) -> windows_core::Result<()> @@ -265,7 +265,7 @@ where #[inline] pub unsafe fn WerUnregisterMemoryBlock(pvaddress: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn WerUnregisterMemoryBlock(pvaddress : *const core::ffi::c_void) -> windows_core::HRESULT); - WerUnregisterMemoryBlock(core::mem::transmute(pvaddress)).ok() + WerUnregisterMemoryBlock(pvaddress).ok() } #[inline] pub unsafe fn WerUnregisterRuntimeExceptionModule(pwszoutofprocesscallbackdll: P0, pcontext: *const core::ffi::c_void) -> windows_core::Result<()> @@ -273,7 +273,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerUnregisterRuntimeExceptionModule(pwszoutofprocesscallbackdll : windows_core::PCWSTR, pcontext : *const core::ffi::c_void) -> windows_core::HRESULT); - WerUnregisterRuntimeExceptionModule(pwszoutofprocesscallbackdll.param().abi(), core::mem::transmute(pcontext)).ok() + WerUnregisterRuntimeExceptionModule(pwszoutofprocesscallbackdll.param().abi(), pcontext).ok() } pub const APPCRASH_EVENT: windows_core::PCWSTR = windows_core::w!("APPCRASH"); #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs index 17fc63cdcf..255d32838d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn EcClose(object: isize) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcClose(object : isize) -> super::super::Foundation:: BOOL); - EcClose(core::mem::transmute(object)) + EcClose(object) } #[inline] pub unsafe fn EcDeleteSubscription(subscriptionname: P0, flags: u32) -> super::super::Foundation::BOOL @@ -9,27 +9,27 @@ where P0: windows_core::Param, { windows_targets::link!("wecapi.dll" "system" fn EcDeleteSubscription(subscriptionname : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - EcDeleteSubscription(subscriptionname.param().abi(), core::mem::transmute(flags)) + EcDeleteSubscription(subscriptionname.param().abi(), flags) } #[inline] pub unsafe fn EcEnumNextSubscription(subscriptionenum: isize, subscriptionnamebuffer: Option<&mut [u16]>, subscriptionnamebufferused: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcEnumNextSubscription(subscriptionenum : isize, subscriptionnamebuffersize : u32, subscriptionnamebuffer : windows_core::PWSTR, subscriptionnamebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EcEnumNextSubscription(core::mem::transmute(subscriptionenum), subscriptionnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(subscriptionnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(subscriptionnamebufferused)) + EcEnumNextSubscription(subscriptionenum, subscriptionnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(subscriptionnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(subscriptionnamebufferused)) } #[inline] pub unsafe fn EcGetObjectArrayProperty(objectarray: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, arrayindex: u32, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: *mut EC_VARIANT, propertyvaluebufferused: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcGetObjectArrayProperty(objectarray : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, arrayindex : u32, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EC_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EcGetObjectArrayProperty(core::mem::transmute(objectarray), core::mem::transmute(propertyid), core::mem::transmute(arrayindex), core::mem::transmute(flags), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer), core::mem::transmute(propertyvaluebufferused)) + EcGetObjectArrayProperty(objectarray, propertyid, arrayindex, flags, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer), core::mem::transmute(propertyvaluebufferused)) } #[inline] pub unsafe fn EcGetObjectArraySize(objectarray: isize, objectarraysize: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcGetObjectArraySize(objectarray : isize, objectarraysize : *mut u32) -> super::super::Foundation:: BOOL); - EcGetObjectArraySize(core::mem::transmute(objectarray), core::mem::transmute(objectarraysize)) + EcGetObjectArraySize(objectarray, core::mem::transmute(objectarraysize)) } #[inline] pub unsafe fn EcGetSubscriptionProperty(subscription: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: *mut EC_VARIANT, propertyvaluebufferused: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcGetSubscriptionProperty(subscription : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EC_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EcGetSubscriptionProperty(core::mem::transmute(subscription), core::mem::transmute(propertyid), core::mem::transmute(flags), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer), core::mem::transmute(propertyvaluebufferused)) + EcGetSubscriptionProperty(subscription, propertyid, flags, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer), core::mem::transmute(propertyvaluebufferused)) } #[inline] pub unsafe fn EcGetSubscriptionRunTimeStatus(subscriptionname: P0, statusinfoid: EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename: P2, flags: u32, statusvaluebuffersize: u32, statusvaluebuffer: *mut EC_VARIANT, statusvaluebufferused: *mut u32) -> super::super::Foundation::BOOL @@ -38,12 +38,12 @@ where P2: windows_core::Param, { windows_targets::link!("wecapi.dll" "system" fn EcGetSubscriptionRunTimeStatus(subscriptionname : windows_core::PCWSTR, statusinfoid : EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename : windows_core::PCWSTR, flags : u32, statusvaluebuffersize : u32, statusvaluebuffer : *mut EC_VARIANT, statusvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EcGetSubscriptionRunTimeStatus(subscriptionname.param().abi(), core::mem::transmute(statusinfoid), eventsourcename.param().abi(), core::mem::transmute(flags), core::mem::transmute(statusvaluebuffersize), core::mem::transmute(statusvaluebuffer), core::mem::transmute(statusvaluebufferused)) + EcGetSubscriptionRunTimeStatus(subscriptionname.param().abi(), statusinfoid, eventsourcename.param().abi(), flags, statusvaluebuffersize, core::mem::transmute(statusvaluebuffer), core::mem::transmute(statusvaluebufferused)) } #[inline] pub unsafe fn EcInsertObjectArrayElement(objectarray: isize, arrayindex: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcInsertObjectArrayElement(objectarray : isize, arrayindex : u32) -> super::super::Foundation:: BOOL); - EcInsertObjectArrayElement(core::mem::transmute(objectarray), core::mem::transmute(arrayindex)) + EcInsertObjectArrayElement(objectarray, arrayindex) } #[inline] pub unsafe fn EcOpenSubscription(subscriptionname: P0, accessmask: u32, flags: u32) -> isize @@ -51,17 +51,17 @@ where P0: windows_core::Param, { windows_targets::link!("wecapi.dll" "system" fn EcOpenSubscription(subscriptionname : windows_core::PCWSTR, accessmask : u32, flags : u32) -> isize); - EcOpenSubscription(subscriptionname.param().abi(), core::mem::transmute(accessmask), core::mem::transmute(flags)) + EcOpenSubscription(subscriptionname.param().abi(), accessmask, flags) } #[inline] pub unsafe fn EcOpenSubscriptionEnum(flags: u32) -> isize { windows_targets::link!("wecapi.dll" "system" fn EcOpenSubscriptionEnum(flags : u32) -> isize); - EcOpenSubscriptionEnum(core::mem::transmute(flags)) + EcOpenSubscriptionEnum(flags) } #[inline] pub unsafe fn EcRemoveObjectArrayElement(objectarray: isize, arrayindex: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcRemoveObjectArrayElement(objectarray : isize, arrayindex : u32) -> super::super::Foundation:: BOOL); - EcRemoveObjectArrayElement(core::mem::transmute(objectarray), core::mem::transmute(arrayindex)) + EcRemoveObjectArrayElement(objectarray, arrayindex) } #[inline] pub unsafe fn EcRetrySubscription(subscriptionname: P0, eventsourcename: P1, flags: u32) -> super::super::Foundation::BOOL @@ -70,22 +70,22 @@ where P1: windows_core::Param, { windows_targets::link!("wecapi.dll" "system" fn EcRetrySubscription(subscriptionname : windows_core::PCWSTR, eventsourcename : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - EcRetrySubscription(subscriptionname.param().abi(), eventsourcename.param().abi(), core::mem::transmute(flags)) + EcRetrySubscription(subscriptionname.param().abi(), eventsourcename.param().abi(), flags) } #[inline] pub unsafe fn EcSaveSubscription(subscription: isize, flags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcSaveSubscription(subscription : isize, flags : u32) -> super::super::Foundation:: BOOL); - EcSaveSubscription(core::mem::transmute(subscription), core::mem::transmute(flags)) + EcSaveSubscription(subscription, flags) } #[inline] pub unsafe fn EcSetObjectArrayProperty(objectarray: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, arrayindex: u32, flags: u32, propertyvalue: *mut EC_VARIANT) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcSetObjectArrayProperty(objectarray : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, arrayindex : u32, flags : u32, propertyvalue : *mut EC_VARIANT) -> super::super::Foundation:: BOOL); - EcSetObjectArrayProperty(core::mem::transmute(objectarray), core::mem::transmute(propertyid), core::mem::transmute(arrayindex), core::mem::transmute(flags), core::mem::transmute(propertyvalue)) + EcSetObjectArrayProperty(objectarray, propertyid, arrayindex, flags, core::mem::transmute(propertyvalue)) } #[inline] pub unsafe fn EcSetSubscriptionProperty(subscription: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, flags: u32, propertyvalue: *mut EC_VARIANT) -> super::super::Foundation::BOOL { windows_targets::link!("wecapi.dll" "system" fn EcSetSubscriptionProperty(subscription : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, flags : u32, propertyvalue : *mut EC_VARIANT) -> super::super::Foundation:: BOOL); - EcSetSubscriptionProperty(core::mem::transmute(subscription), core::mem::transmute(propertyid), core::mem::transmute(flags), core::mem::transmute(propertyvalue)) + EcSetSubscriptionProperty(subscription, propertyid, flags, core::mem::transmute(propertyvalue)) } pub const EC_CREATE_NEW: u32 = 1u32; pub const EC_OPEN_ALWAYS: u32 = 0u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs index 74ca4b17fd..c19fe84e7b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs @@ -4,7 +4,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BackupEventLogA(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - BackupEventLogA(core::mem::transmute(heventlog), lpbackupfilename.param().abi()).ok() + BackupEventLogA(heventlog, lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn BackupEventLogW(heventlog: super::super::Foundation::HANDLE, lpbackupfilename: P1) -> windows_core::Result<()> @@ -12,7 +12,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BackupEventLogW(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - BackupEventLogW(core::mem::transmute(heventlog), lpbackupfilename.param().abi()).ok() + BackupEventLogW(heventlog, lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn ClearEventLogA(heventlog: super::super::Foundation::HANDLE, lpbackupfilename: P1) -> windows_core::Result<()> @@ -20,7 +20,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ClearEventLogA(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ClearEventLogA(core::mem::transmute(heventlog), lpbackupfilename.param().abi()).ok() + ClearEventLogA(heventlog, lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn ClearEventLogW(heventlog: super::super::Foundation::HANDLE, lpbackupfilename: P1) -> windows_core::Result<()> @@ -28,17 +28,17 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ClearEventLogW(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ClearEventLogW(core::mem::transmute(heventlog), lpbackupfilename.param().abi()).ok() + ClearEventLogW(heventlog, lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn CloseEventLog(heventlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CloseEventLog(heventlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CloseEventLog(core::mem::transmute(heventlog)).ok() + CloseEventLog(heventlog).ok() } #[inline] pub unsafe fn DeregisterEventSource(heventlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn DeregisterEventSource(heventlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeregisterEventSource(core::mem::transmute(heventlog)).ok() + DeregisterEventSource(heventlog).ok() } #[inline] pub unsafe fn EvtArchiveExportedLog(session: Option, logfilepath: P1, locale: u32, flags: u32) -> windows_core::Result<()> @@ -46,7 +46,7 @@ where P1: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtArchiveExportedLog(session : EVT_HANDLE, logfilepath : windows_core::PCWSTR, locale : u32, flags : u32) -> super::super::Foundation:: BOOL); - EvtArchiveExportedLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), logfilepath.param().abi(), core::mem::transmute(locale), core::mem::transmute(flags)).ok() + EvtArchiveExportedLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), logfilepath.param().abi(), locale, flags).ok() } #[inline] pub unsafe fn EvtCancel(object: Option) -> windows_core::Result<()> { @@ -60,12 +60,12 @@ where P2: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtClearLog(session : EVT_HANDLE, channelpath : windows_core::PCWSTR, targetfilepath : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - EvtClearLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), channelpath.param().abi(), targetfilepath.param().abi(), core::mem::transmute(flags)).ok() + EvtClearLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), channelpath.param().abi(), targetfilepath.param().abi(), flags).ok() } #[inline] pub unsafe fn EvtClose(object: EVT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtClose(object : EVT_HANDLE) -> super::super::Foundation:: BOOL); - EvtClose(core::mem::transmute(object)).ok() + EvtClose(object).ok() } #[inline] pub unsafe fn EvtCreateBookmark(bookmarkxml: P0) -> windows_core::Result @@ -79,7 +79,7 @@ where #[inline] pub unsafe fn EvtCreateRenderContext(valuepaths: Option<&[windows_core::PCWSTR]>, flags: u32) -> windows_core::Result { windows_targets::link!("wevtapi.dll" "system" fn EvtCreateRenderContext(valuepathscount : u32, valuepaths : *const windows_core::PCWSTR, flags : u32) -> EVT_HANDLE); - let result__ = EvtCreateRenderContext(valuepaths.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(valuepaths.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(flags)); + let result__ = EvtCreateRenderContext(valuepaths.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(valuepaths.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -90,7 +90,7 @@ where P3: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtExportLog(session : EVT_HANDLE, path : windows_core::PCWSTR, query : windows_core::PCWSTR, targetfilepath : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - EvtExportLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), path.param().abi(), query.param().abi(), targetfilepath.param().abi(), core::mem::transmute(flags)).ok() + EvtExportLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), path.param().abi(), query.param().abi(), targetfilepath.param().abi(), flags).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -99,10 +99,10 @@ pub unsafe fn EvtFormatMessage(publishermetadata: Option, event: Opt EvtFormatMessage( core::mem::transmute(publishermetadata.unwrap_or(core::mem::zeroed())), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), - core::mem::transmute(messageid), + messageid, values.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(values.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(flags), + flags, buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(bufferused), @@ -113,19 +113,19 @@ pub unsafe fn EvtFormatMessage(publishermetadata: Option, event: Opt #[inline] pub unsafe fn EvtGetChannelConfigProperty(channelconfig: EVT_HANDLE, propertyid: EVT_CHANNEL_CONFIG_PROPERTY_ID, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetChannelConfigProperty(channelconfig : EVT_HANDLE, propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetChannelConfigProperty(core::mem::transmute(channelconfig), core::mem::transmute(propertyid), core::mem::transmute(flags), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() + EvtGetChannelConfigProperty(channelconfig, propertyid, flags, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetEventInfo(event: EVT_HANDLE, propertyid: EVT_EVENT_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetEventInfo(event : EVT_HANDLE, propertyid : EVT_EVENT_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetEventInfo(core::mem::transmute(event), core::mem::transmute(propertyid), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() + EvtGetEventInfo(event, propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetEventMetadataProperty(eventmetadata: EVT_HANDLE, propertyid: EVT_EVENT_METADATA_PROPERTY_ID, flags: u32, eventmetadatapropertybuffersize: u32, eventmetadatapropertybuffer: Option<*mut EVT_VARIANT>, eventmetadatapropertybufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetEventMetadataProperty(eventmetadata : EVT_HANDLE, propertyid : EVT_EVENT_METADATA_PROPERTY_ID, flags : u32, eventmetadatapropertybuffersize : u32, eventmetadatapropertybuffer : *mut EVT_VARIANT, eventmetadatapropertybufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetEventMetadataProperty(core::mem::transmute(eventmetadata), core::mem::transmute(propertyid), core::mem::transmute(flags), core::mem::transmute(eventmetadatapropertybuffersize), core::mem::transmute(eventmetadatapropertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventmetadatapropertybufferused)).ok() + EvtGetEventMetadataProperty(eventmetadata, propertyid, flags, eventmetadatapropertybuffersize, core::mem::transmute(eventmetadatapropertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventmetadatapropertybufferused)).ok() } #[inline] pub unsafe fn EvtGetExtendedStatus(buffer: Option<&mut [u16]>, bufferused: *mut u32) -> u32 { @@ -136,51 +136,51 @@ pub unsafe fn EvtGetExtendedStatus(buffer: Option<&mut [u16]>, bufferused: *mut #[inline] pub unsafe fn EvtGetLogInfo(log: EVT_HANDLE, propertyid: EVT_LOG_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetLogInfo(log : EVT_HANDLE, propertyid : EVT_LOG_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetLogInfo(core::mem::transmute(log), core::mem::transmute(propertyid), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() + EvtGetLogInfo(log, propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetObjectArrayProperty(objectarray: isize, propertyid: u32, arrayindex: u32, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetObjectArrayProperty(objectarray : isize, propertyid : u32, arrayindex : u32, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetObjectArrayProperty(core::mem::transmute(objectarray), core::mem::transmute(propertyid), core::mem::transmute(arrayindex), core::mem::transmute(flags), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() + EvtGetObjectArrayProperty(objectarray, propertyid, arrayindex, flags, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() } #[inline] pub unsafe fn EvtGetObjectArraySize(objectarray: isize, objectarraysize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetObjectArraySize(objectarray : isize, objectarraysize : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetObjectArraySize(core::mem::transmute(objectarray), core::mem::transmute(objectarraysize)).ok() + EvtGetObjectArraySize(objectarray, core::mem::transmute(objectarraysize)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetPublisherMetadataProperty(publishermetadata: EVT_HANDLE, propertyid: EVT_PUBLISHER_METADATA_PROPERTY_ID, flags: u32, publishermetadatapropertybuffersize: u32, publishermetadatapropertybuffer: Option<*mut EVT_VARIANT>, publishermetadatapropertybufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetPublisherMetadataProperty(publishermetadata : EVT_HANDLE, propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID, flags : u32, publishermetadatapropertybuffersize : u32, publishermetadatapropertybuffer : *mut EVT_VARIANT, publishermetadatapropertybufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetPublisherMetadataProperty(core::mem::transmute(publishermetadata), core::mem::transmute(propertyid), core::mem::transmute(flags), core::mem::transmute(publishermetadatapropertybuffersize), core::mem::transmute(publishermetadatapropertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(publishermetadatapropertybufferused)).ok() + EvtGetPublisherMetadataProperty(publishermetadata, propertyid, flags, publishermetadatapropertybuffersize, core::mem::transmute(publishermetadatapropertybuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(publishermetadatapropertybufferused)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetQueryInfo(queryorsubscription: EVT_HANDLE, propertyid: EVT_QUERY_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtGetQueryInfo(queryorsubscription : EVT_HANDLE, propertyid : EVT_QUERY_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtGetQueryInfo(core::mem::transmute(queryorsubscription), core::mem::transmute(propertyid), core::mem::transmute(propertyvaluebuffersize), core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() + EvtGetQueryInfo(queryorsubscription, propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(propertyvaluebufferused)).ok() } #[inline] pub unsafe fn EvtNext(resultset: EVT_HANDLE, events: &mut [isize], timeout: u32, flags: u32, returned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtNext(resultset : EVT_HANDLE, eventssize : u32, events : *mut isize, timeout : u32, flags : u32, returned : *mut u32) -> super::super::Foundation:: BOOL); - EvtNext(core::mem::transmute(resultset), events.len().try_into().unwrap(), core::mem::transmute(events.as_ptr()), core::mem::transmute(timeout), core::mem::transmute(flags), core::mem::transmute(returned)).ok() + EvtNext(resultset, events.len().try_into().unwrap(), core::mem::transmute(events.as_ptr()), timeout, flags, core::mem::transmute(returned)).ok() } #[inline] pub unsafe fn EvtNextChannelPath(channelenum: EVT_HANDLE, channelpathbuffer: Option<&mut [u16]>, channelpathbufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtNextChannelPath(channelenum : EVT_HANDLE, channelpathbuffersize : u32, channelpathbuffer : windows_core::PWSTR, channelpathbufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtNextChannelPath(core::mem::transmute(channelenum), channelpathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(channelpathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(channelpathbufferused)).ok() + EvtNextChannelPath(channelenum, channelpathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(channelpathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(channelpathbufferused)).ok() } #[inline] pub unsafe fn EvtNextEventMetadata(eventmetadataenum: EVT_HANDLE, flags: u32) -> windows_core::Result { windows_targets::link!("wevtapi.dll" "system" fn EvtNextEventMetadata(eventmetadataenum : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtNextEventMetadata(core::mem::transmute(eventmetadataenum), core::mem::transmute(flags)); + let result__ = EvtNextEventMetadata(eventmetadataenum, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtNextPublisherId(publisherenum: EVT_HANDLE, publisheridbuffer: Option<&mut [u16]>, publisheridbufferused: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtNextPublisherId(publisherenum : EVT_HANDLE, publisheridbuffersize : u32, publisheridbuffer : windows_core::PWSTR, publisheridbufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtNextPublisherId(core::mem::transmute(publisherenum), publisheridbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(publisheridbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(publisheridbufferused)).ok() + EvtNextPublisherId(publisherenum, publisheridbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(publisheridbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(publisheridbufferused)).ok() } #[inline] pub unsafe fn EvtOpenChannelConfig(session: Option, channelpath: P1, flags: u32) -> windows_core::Result @@ -188,19 +188,19 @@ where P1: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenChannelConfig(session : EVT_HANDLE, channelpath : windows_core::PCWSTR, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenChannelConfig(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), channelpath.param().abi(), core::mem::transmute(flags)); + let result__ = EvtOpenChannelConfig(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), channelpath.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenChannelEnum(session: Option, flags: u32) -> windows_core::Result { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenChannelEnum(session : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenChannelEnum(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)); + let result__ = EvtOpenChannelEnum(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenEventMetadataEnum(publishermetadata: EVT_HANDLE, flags: u32) -> windows_core::Result { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenEventMetadataEnum(publishermetadata : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenEventMetadataEnum(core::mem::transmute(publishermetadata), core::mem::transmute(flags)); + let result__ = EvtOpenEventMetadataEnum(publishermetadata, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -209,13 +209,13 @@ where P1: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenLog(session : EVT_HANDLE, path : windows_core::PCWSTR, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), path.param().abi(), core::mem::transmute(flags)); + let result__ = EvtOpenLog(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), path.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenPublisherEnum(session: Option, flags: u32) -> windows_core::Result { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenPublisherEnum(session : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenPublisherEnum(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)); + let result__ = EvtOpenPublisherEnum(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -225,13 +225,13 @@ where P2: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenPublisherMetadata(session : EVT_HANDLE, publisherid : windows_core::PCWSTR, logfilepath : windows_core::PCWSTR, locale : u32, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenPublisherMetadata(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), publisherid.param().abi(), logfilepath.param().abi(), core::mem::transmute(locale), core::mem::transmute(flags)); + let result__ = EvtOpenPublisherMetadata(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), publisherid.param().abi(), logfilepath.param().abi(), locale, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenSession(loginclass: EVT_LOGIN_CLASS, login: *const core::ffi::c_void, timeout: Option, flags: Option) -> windows_core::Result { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenSession(loginclass : EVT_LOGIN_CLASS, login : *const core::ffi::c_void, timeout : u32, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenSession(core::mem::transmute(loginclass), core::mem::transmute(login), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))); + let result__ = EvtOpenSession(loginclass, login, core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -241,29 +241,29 @@ where P2: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtQuery(session : EVT_HANDLE, path : windows_core::PCWSTR, query : windows_core::PCWSTR, flags : u32) -> EVT_HANDLE); - let result__ = EvtQuery(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), path.param().abi(), query.param().abi(), core::mem::transmute(flags)); + let result__ = EvtQuery(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), path.param().abi(), query.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtRender(context: Option, fragment: EVT_HANDLE, flags: u32, buffersize: u32, buffer: Option<*mut core::ffi::c_void>, bufferused: *mut u32, propertycount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtRender(context : EVT_HANDLE, fragment : EVT_HANDLE, flags : u32, buffersize : u32, buffer : *mut core::ffi::c_void, bufferused : *mut u32, propertycount : *mut u32) -> super::super::Foundation:: BOOL); - EvtRender(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(fragment), core::mem::transmute(flags), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferused), core::mem::transmute(propertycount)).ok() + EvtRender(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), fragment, flags, buffersize, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferused), core::mem::transmute(propertycount)).ok() } #[inline] pub unsafe fn EvtSaveChannelConfig(channelconfig: EVT_HANDLE, flags: u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtSaveChannelConfig(channelconfig : EVT_HANDLE, flags : u32) -> super::super::Foundation:: BOOL); - EvtSaveChannelConfig(core::mem::transmute(channelconfig), core::mem::transmute(flags)).ok() + EvtSaveChannelConfig(channelconfig, flags).ok() } #[inline] pub unsafe fn EvtSeek(resultset: EVT_HANDLE, position: i64, bookmark: Option, timeout: Option, flags: u32) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtSeek(resultset : EVT_HANDLE, position : i64, bookmark : EVT_HANDLE, timeout : u32, flags : u32) -> super::super::Foundation:: BOOL); - EvtSeek(core::mem::transmute(resultset), core::mem::transmute(position), core::mem::transmute(bookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + EvtSeek(resultset, position, core::mem::transmute(bookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), flags).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtSetChannelConfigProperty(channelconfig: EVT_HANDLE, propertyid: EVT_CHANNEL_CONFIG_PROPERTY_ID, flags: u32, propertyvalue: *const EVT_VARIANT) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtSetChannelConfigProperty(channelconfig : EVT_HANDLE, propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID, flags : u32, propertyvalue : *const EVT_VARIANT) -> super::super::Foundation:: BOOL); - EvtSetChannelConfigProperty(core::mem::transmute(channelconfig), core::mem::transmute(propertyid), core::mem::transmute(flags), core::mem::transmute(propertyvalue)).ok() + EvtSetChannelConfigProperty(channelconfig, propertyid, flags, propertyvalue).ok() } #[inline] pub unsafe fn EvtSubscribe(session: Option, signalevent: Option, channelpath: P2, query: P3, bookmark: Option, context: Option<*const core::ffi::c_void>, callback: Option, flags: u32) -> windows_core::Result @@ -272,33 +272,33 @@ where P3: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtSubscribe(session : EVT_HANDLE, signalevent : super::super::Foundation:: HANDLE, channelpath : windows_core::PCWSTR, query : windows_core::PCWSTR, bookmark : EVT_HANDLE, context : *const core::ffi::c_void, callback : EVT_SUBSCRIBE_CALLBACK, flags : u32) -> EVT_HANDLE); - let result__ = EvtSubscribe(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(signalevent.unwrap_or(core::mem::zeroed())), channelpath.param().abi(), query.param().abi(), core::mem::transmute(bookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)); + let result__ = EvtSubscribe(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(signalevent.unwrap_or(core::mem::zeroed())), channelpath.param().abi(), query.param().abi(), core::mem::transmute(bookmark.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback.unwrap_or(core::mem::zeroed())), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtUpdateBookmark(bookmark: EVT_HANDLE, event: EVT_HANDLE) -> windows_core::Result<()> { windows_targets::link!("wevtapi.dll" "system" fn EvtUpdateBookmark(bookmark : EVT_HANDLE, event : EVT_HANDLE) -> super::super::Foundation:: BOOL); - EvtUpdateBookmark(core::mem::transmute(bookmark), core::mem::transmute(event)).ok() + EvtUpdateBookmark(bookmark, event).ok() } #[inline] pub unsafe fn GetEventLogInformation(heventlog: super::super::Foundation::HANDLE, dwinfolevel: u32, lpbuffer: *mut core::ffi::c_void, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetEventLogInformation(heventlog : super::super::Foundation:: HANDLE, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetEventLogInformation(core::mem::transmute(heventlog), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded)).ok() + GetEventLogInformation(heventlog, dwinfolevel, core::mem::transmute(lpbuffer), cbbufsize, core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn GetNumberOfEventLogRecords(heventlog: super::super::Foundation::HANDLE, numberofrecords: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetNumberOfEventLogRecords(heventlog : super::super::Foundation:: HANDLE, numberofrecords : *mut u32) -> super::super::Foundation:: BOOL); - GetNumberOfEventLogRecords(core::mem::transmute(heventlog), core::mem::transmute(numberofrecords)).ok() + GetNumberOfEventLogRecords(heventlog, core::mem::transmute(numberofrecords)).ok() } #[inline] pub unsafe fn GetOldestEventLogRecord(heventlog: super::super::Foundation::HANDLE, oldestrecord: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn GetOldestEventLogRecord(heventlog : super::super::Foundation:: HANDLE, oldestrecord : *mut u32) -> super::super::Foundation:: BOOL); - GetOldestEventLogRecord(core::mem::transmute(heventlog), core::mem::transmute(oldestrecord)).ok() + GetOldestEventLogRecord(heventlog, core::mem::transmute(oldestrecord)).ok() } #[inline] pub unsafe fn NotifyChangeEventLog(heventlog: super::super::Foundation::HANDLE, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn NotifyChangeEventLog(heventlog : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - NotifyChangeEventLog(core::mem::transmute(heventlog), core::mem::transmute(hevent)).ok() + NotifyChangeEventLog(heventlog, hevent).ok() } #[inline] pub unsafe fn OpenBackupEventLogA(lpuncservername: P0, lpfilename: P1) -> windows_core::Result @@ -343,12 +343,12 @@ where #[inline] pub unsafe fn ReadEventLogA(heventlog: super::super::Foundation::HANDLE, dwreadflags: READ_EVENT_LOG_READ_FLAGS, dwrecordoffset: u32, lpbuffer: *mut core::ffi::c_void, nnumberofbytestoread: u32, pnbytesread: *mut u32, pnminnumberofbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ReadEventLogA(heventlog : super::super::Foundation:: HANDLE, dwreadflags : READ_EVENT_LOG_READ_FLAGS, dwrecordoffset : u32, lpbuffer : *mut core::ffi::c_void, nnumberofbytestoread : u32, pnbytesread : *mut u32, pnminnumberofbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - ReadEventLogA(core::mem::transmute(heventlog), core::mem::transmute(dwreadflags), core::mem::transmute(dwrecordoffset), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytestoread), core::mem::transmute(pnbytesread), core::mem::transmute(pnminnumberofbytesneeded)).ok() + ReadEventLogA(heventlog, dwreadflags, dwrecordoffset, core::mem::transmute(lpbuffer), nnumberofbytestoread, core::mem::transmute(pnbytesread), core::mem::transmute(pnminnumberofbytesneeded)).ok() } #[inline] pub unsafe fn ReadEventLogW(heventlog: super::super::Foundation::HANDLE, dwreadflags: READ_EVENT_LOG_READ_FLAGS, dwrecordoffset: u32, lpbuffer: *mut core::ffi::c_void, nnumberofbytestoread: u32, pnbytesread: *mut u32, pnminnumberofbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ReadEventLogW(heventlog : super::super::Foundation:: HANDLE, dwreadflags : READ_EVENT_LOG_READ_FLAGS, dwrecordoffset : u32, lpbuffer : *mut core::ffi::c_void, nnumberofbytestoread : u32, pnbytesread : *mut u32, pnminnumberofbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - ReadEventLogW(core::mem::transmute(heventlog), core::mem::transmute(dwreadflags), core::mem::transmute(dwrecordoffset), core::mem::transmute(lpbuffer), core::mem::transmute(nnumberofbytestoread), core::mem::transmute(pnbytesread), core::mem::transmute(pnminnumberofbytesneeded)).ok() + ReadEventLogW(heventlog, dwreadflags, dwrecordoffset, core::mem::transmute(lpbuffer), nnumberofbytestoread, core::mem::transmute(pnbytesread), core::mem::transmute(pnminnumberofbytesneeded)).ok() } #[inline] pub unsafe fn RegisterEventSourceA(lpuncservername: P0, lpsourcename: P1) -> windows_core::Result @@ -374,13 +374,13 @@ where #[inline] pub unsafe fn ReportEventA(heventlog: super::super::Foundation::HANDLE, wtype: REPORT_EVENT_TYPE, wcategory: u16, dweventid: u32, lpusersid: Option, dwdatasize: u32, lpstrings: Option<&[windows_core::PCSTR]>, lprawdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ReportEventA(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Security:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCSTR, lprawdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReportEventA(core::mem::transmute(heventlog), core::mem::transmute(wtype), core::mem::transmute(wcategory), core::mem::transmute(dweventid), core::mem::transmute(lpusersid.unwrap_or(core::mem::zeroed())), lpstrings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwdatasize), core::mem::transmute(lpstrings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lprawdata.unwrap_or(core::mem::zeroed()))).ok() + ReportEventA(heventlog, wtype, wcategory, dweventid, core::mem::transmute(lpusersid.unwrap_or(core::mem::zeroed())), lpstrings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwdatasize, core::mem::transmute(lpstrings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lprawdata.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ReportEventW(heventlog: super::super::Foundation::HANDLE, wtype: REPORT_EVENT_TYPE, wcategory: u16, dweventid: u32, lpusersid: Option, dwdatasize: u32, lpstrings: Option<&[windows_core::PCWSTR]>, lprawdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ReportEventW(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Security:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCWSTR, lprawdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReportEventW(core::mem::transmute(heventlog), core::mem::transmute(wtype), core::mem::transmute(wcategory), core::mem::transmute(dweventid), core::mem::transmute(lpusersid.unwrap_or(core::mem::zeroed())), lpstrings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dwdatasize), core::mem::transmute(lpstrings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lprawdata.unwrap_or(core::mem::zeroed()))).ok() + ReportEventW(heventlog, wtype, wcategory, dweventid, core::mem::transmute(lpusersid.unwrap_or(core::mem::zeroed())), lpstrings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwdatasize, core::mem::transmute(lpstrings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lprawdata.unwrap_or(core::mem::zeroed()))).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs index f90daf258e..e9560c8b12 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs @@ -141,19 +141,19 @@ windows_core::imp::interface_hierarchy!(ISensLogon2, windows_core::IUnknown, sup #[cfg(feature = "Win32_System_Com")] impl ISensLogon2 { pub unsafe fn Logon(&self, bstrusername: &windows_core::BSTR, dwsessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute(dwsessionid)).ok() + (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), dwsessionid).ok() } pub unsafe fn Logoff(&self, bstrusername: &windows_core::BSTR, dwsessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Logoff)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute(dwsessionid)).ok() + (windows_core::Interface::vtable(self).Logoff)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), dwsessionid).ok() } pub unsafe fn SessionDisconnect(&self, bstrusername: &windows_core::BSTR, dwsessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionDisconnect)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute(dwsessionid)).ok() + (windows_core::Interface::vtable(self).SessionDisconnect)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), dwsessionid).ok() } pub unsafe fn SessionReconnect(&self, bstrusername: &windows_core::BSTR, dwsessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionReconnect)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute(dwsessionid)).ok() + (windows_core::Interface::vtable(self).SessionReconnect)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), dwsessionid).ok() } pub unsafe fn PostShell(&self, bstrusername: &windows_core::BSTR, dwsessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PostShell)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), core::mem::transmute(dwsessionid)).ok() + (windows_core::Interface::vtable(self).PostShell)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername), dwsessionid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -226,19 +226,19 @@ windows_core::imp::interface_hierarchy!(ISensNetwork, windows_core::IUnknown, su #[cfg(feature = "Win32_System_Com")] impl ISensNetwork { pub unsafe fn ConnectionMade(&self, bstrconnection: &windows_core::BSTR, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectionMade)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnection), core::mem::transmute(ultype), core::mem::transmute(lpqocinfo)).ok() + (windows_core::Interface::vtable(self).ConnectionMade)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnection), ultype, lpqocinfo).ok() } pub unsafe fn ConnectionMadeNoQOCInfo(&self, bstrconnection: &windows_core::BSTR, ultype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectionMadeNoQOCInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnection), core::mem::transmute(ultype)).ok() + (windows_core::Interface::vtable(self).ConnectionMadeNoQOCInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnection), ultype).ok() } pub unsafe fn ConnectionLost(&self, bstrconnection: &windows_core::BSTR, ultype: SENS_CONNECTION_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectionLost)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnection), core::mem::transmute(ultype)).ok() + (windows_core::Interface::vtable(self).ConnectionLost)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrconnection), ultype).ok() } pub unsafe fn DestinationReachable(&self, bstrdestination: &windows_core::BSTR, bstrconnection: &windows_core::BSTR, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestinationReachable)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdestination), core::mem::transmute_copy(bstrconnection), core::mem::transmute(ultype), core::mem::transmute(lpqocinfo)).ok() + (windows_core::Interface::vtable(self).DestinationReachable)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdestination), core::mem::transmute_copy(bstrconnection), ultype, lpqocinfo).ok() } pub unsafe fn DestinationReachableNoQOCInfo(&self, bstrdestination: &windows_core::BSTR, bstrconnection: &windows_core::BSTR, ultype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestinationReachableNoQOCInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdestination), core::mem::transmute_copy(bstrconnection), core::mem::transmute(ultype)).ok() + (windows_core::Interface::vtable(self).DestinationReachableNoQOCInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdestination), core::mem::transmute_copy(bstrconnection), ultype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -314,10 +314,10 @@ impl ISensOnNow { (windows_core::Interface::vtable(self).OnACPower)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnBatteryPower(&self, dwbatterylifepercent: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnBatteryPower)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbatterylifepercent)).ok() + (windows_core::Interface::vtable(self).OnBatteryPower)(windows_core::Interface::as_raw(self), dwbatterylifepercent).ok() } pub unsafe fn BatteryLow(&self, dwbatterylifepercent: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BatteryLow)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbatterylifepercent)).ok() + (windows_core::Interface::vtable(self).BatteryLow)(windows_core::Interface::as_raw(self), dwbatterylifepercent).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs index ace7b30120..b19074a748 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs @@ -55,12 +55,12 @@ where #[inline] pub unsafe fn FreeGPOListA(pgpolist: *const GROUP_POLICY_OBJECTA) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn FreeGPOListA(pgpolist : *const GROUP_POLICY_OBJECTA) -> super::super::Foundation:: BOOL); - FreeGPOListA(core::mem::transmute(pgpolist)).ok() + FreeGPOListA(pgpolist).ok() } #[inline] pub unsafe fn FreeGPOListW(pgpolist: *const GROUP_POLICY_OBJECTW) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn FreeGPOListW(pgpolist : *const GROUP_POLICY_OBJECTW) -> super::super::Foundation:: BOOL); - FreeGPOListW(core::mem::transmute(pgpolist)).ok() + FreeGPOListW(pgpolist).ok() } #[inline] pub unsafe fn GenerateGPNotification(bmachine: bool, lpwszmgmtproduct: P1, dwmgmtproductoptions: u32) -> u32 @@ -68,7 +68,7 @@ where P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GenerateGPNotification(bmachine : super::super::Foundation:: BOOL, lpwszmgmtproduct : windows_core::PCWSTR, dwmgmtproductoptions : u32) -> u32); - GenerateGPNotification(bmachine.into(), lpwszmgmtproduct.param().abi(), core::mem::transmute(dwmgmtproductoptions)) + GenerateGPNotification(bmachine.into(), lpwszmgmtproduct.param().abi(), dwmgmtproductoptions) } #[cfg(feature = "Win32_Security")] #[inline] @@ -77,7 +77,7 @@ where P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetAppliedGPOListA(dwflags : u32, pmachinename : windows_core::PCSTR, psiduser : super::super::Security:: PSID, pguidextension : *const windows_core::GUID, ppgpolist : *mut *mut GROUP_POLICY_OBJECTA) -> u32); - GetAppliedGPOListA(core::mem::transmute(dwflags), pmachinename.param().abi(), core::mem::transmute(psiduser.unwrap_or(core::mem::zeroed())), core::mem::transmute(pguidextension), core::mem::transmute(ppgpolist)) + GetAppliedGPOListA(dwflags, pmachinename.param().abi(), core::mem::transmute(psiduser.unwrap_or(core::mem::zeroed())), pguidextension, core::mem::transmute(ppgpolist)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -86,7 +86,7 @@ where P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetAppliedGPOListW(dwflags : u32, pmachinename : windows_core::PCWSTR, psiduser : super::super::Security:: PSID, pguidextension : *const windows_core::GUID, ppgpolist : *mut *mut GROUP_POLICY_OBJECTW) -> u32); - GetAppliedGPOListW(core::mem::transmute(dwflags), pmachinename.param().abi(), core::mem::transmute(psiduser.unwrap_or(core::mem::zeroed())), core::mem::transmute(pguidextension), core::mem::transmute(ppgpolist)) + GetAppliedGPOListW(dwflags, pmachinename.param().abi(), core::mem::transmute(psiduser.unwrap_or(core::mem::zeroed())), pguidextension, core::mem::transmute(ppgpolist)) } #[inline] pub unsafe fn GetGPOListA(htoken: Option, lpname: P1, lphostname: P2, lpcomputername: P3, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> windows_core::Result<()> @@ -96,7 +96,7 @@ where P3: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetGPOListA(htoken : super::super::Foundation:: HANDLE, lpname : windows_core::PCSTR, lphostname : windows_core::PCSTR, lpcomputername : windows_core::PCSTR, dwflags : u32, pgpolist : *mut *mut GROUP_POLICY_OBJECTA) -> super::super::Foundation:: BOOL); - GetGPOListA(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pgpolist)).ok() + GetGPOListA(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), dwflags, core::mem::transmute(pgpolist)).ok() } #[inline] pub unsafe fn GetGPOListW(htoken: Option, lpname: P1, lphostname: P2, lpcomputername: P3, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> windows_core::Result<()> @@ -106,7 +106,7 @@ where P3: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetGPOListW(htoken : super::super::Foundation:: HANDLE, lpname : windows_core::PCWSTR, lphostname : windows_core::PCWSTR, lpcomputername : windows_core::PCWSTR, dwflags : u32, pgpolist : *mut *mut GROUP_POLICY_OBJECTW) -> super::super::Foundation:: BOOL); - GetGPOListW(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pgpolist)).ok() + GetGPOListW(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), dwflags, core::mem::transmute(pgpolist)).ok() } #[inline] pub unsafe fn GetLocalManagedApplicationData(productcode: P0, displayname: *mut windows_core::PWSTR, supporturl: *mut windows_core::PWSTR) @@ -130,7 +130,7 @@ pub unsafe fn GetManagedApplicationCategories(dwreserved: Option, pappcateg #[inline] pub unsafe fn GetManagedApplications(pcategory: *const windows_core::GUID, dwqueryflags: u32, dwinfolevel: u32, pdwapps: *mut u32, prgmanagedapps: *mut *mut MANAGEDAPPLICATION) -> u32 { windows_targets::link!("advapi32.dll" "system" fn GetManagedApplications(pcategory : *const windows_core::GUID, dwqueryflags : u32, dwinfolevel : u32, pdwapps : *mut u32, prgmanagedapps : *mut *mut MANAGEDAPPLICATION) -> u32); - GetManagedApplications(core::mem::transmute(pcategory), core::mem::transmute(dwqueryflags), core::mem::transmute(dwinfolevel), core::mem::transmute(pdwapps), core::mem::transmute(prgmanagedapps)) + GetManagedApplications(pcategory, dwqueryflags, dwinfolevel, core::mem::transmute(pdwapps), core::mem::transmute(prgmanagedapps)) } #[inline] pub unsafe fn ImportRSoPData(lpnamespace: P0, lpfilename: P1) -> windows_core::Result<()> @@ -144,22 +144,22 @@ where #[inline] pub unsafe fn InstallApplication(pinstallinfo: *const INSTALLDATA) -> u32 { windows_targets::link!("advapi32.dll" "system" fn InstallApplication(pinstallinfo : *const INSTALLDATA) -> u32); - InstallApplication(core::mem::transmute(pinstallinfo)) + InstallApplication(pinstallinfo) } #[inline] pub unsafe fn LeaveCriticalPolicySection(hsection: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn LeaveCriticalPolicySection(hsection : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - LeaveCriticalPolicySection(core::mem::transmute(hsection)).ok() + LeaveCriticalPolicySection(hsection).ok() } #[inline] pub unsafe fn ProcessGroupPolicyCompleted(extensionid: *const windows_core::GUID, pasynchandle: usize, dwstatus: u32) -> u32 { windows_targets::link!("userenv.dll" "system" fn ProcessGroupPolicyCompleted(extensionid : *const windows_core::GUID, pasynchandle : usize, dwstatus : u32) -> u32); - ProcessGroupPolicyCompleted(core::mem::transmute(extensionid), core::mem::transmute(pasynchandle), core::mem::transmute(dwstatus)) + ProcessGroupPolicyCompleted(extensionid, pasynchandle, dwstatus) } #[inline] pub unsafe fn ProcessGroupPolicyCompletedEx(extensionid: *const windows_core::GUID, pasynchandle: usize, dwstatus: u32, rsopstatus: windows_core::HRESULT) -> u32 { windows_targets::link!("userenv.dll" "system" fn ProcessGroupPolicyCompletedEx(extensionid : *const windows_core::GUID, pasynchandle : usize, dwstatus : u32, rsopstatus : windows_core::HRESULT) -> u32); - ProcessGroupPolicyCompletedEx(core::mem::transmute(extensionid), core::mem::transmute(pasynchandle), core::mem::transmute(dwstatus), core::mem::transmute(rsopstatus)) + ProcessGroupPolicyCompletedEx(extensionid, pasynchandle, dwstatus, rsopstatus) } #[inline] pub unsafe fn RefreshPolicy(bmachine: bool) -> windows_core::Result<()> { @@ -169,25 +169,25 @@ pub unsafe fn RefreshPolicy(bmachine: bool) -> windows_core::Result<()> { #[inline] pub unsafe fn RefreshPolicyEx(bmachine: bool, dwoptions: u32) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn RefreshPolicyEx(bmachine : super::super::Foundation:: BOOL, dwoptions : u32) -> super::super::Foundation:: BOOL); - RefreshPolicyEx(bmachine.into(), core::mem::transmute(dwoptions)).ok() + RefreshPolicyEx(bmachine.into(), dwoptions).ok() } #[inline] pub unsafe fn RegisterGPNotification(hevent: super::super::Foundation::HANDLE, bmachine: bool) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn RegisterGPNotification(hevent : super::super::Foundation:: HANDLE, bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RegisterGPNotification(core::mem::transmute(hevent), bmachine.into()).ok() + RegisterGPNotification(hevent, bmachine.into()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RsopAccessCheckByType(psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, pprincipalselfsid: Option, prsoptoken: *const core::ffi::c_void, dwdesiredaccessmask: u32, pobjecttypelist: Option<&[super::super::Security::OBJECT_TYPE_LIST]>, pgenericmapping: *const super::super::Security::GENERIC_MAPPING, pprivilegeset: Option<*const super::super::Security::PRIVILEGE_SET>, pdwprivilegesetlength: Option<*const u32>, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn RsopAccessCheckByType(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pprincipalselfsid : super::super::Security:: PSID, prsoptoken : *const core::ffi::c_void, dwdesiredaccessmask : u32, pobjecttypelist : *const super::super::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, pgenericmapping : *const super::super::Security:: GENERIC_MAPPING, pprivilegeset : *const super::super::Security:: PRIVILEGE_SET, pdwprivilegesetlength : *const u32, pdwgrantedaccessmask : *mut u32, pbaccessstatus : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); RsopAccessCheckByType( - core::mem::transmute(psecuritydescriptor), + psecuritydescriptor, core::mem::transmute(pprincipalselfsid.unwrap_or(core::mem::zeroed())), - core::mem::transmute(prsoptoken), - core::mem::transmute(dwdesiredaccessmask), + prsoptoken, + dwdesiredaccessmask, core::mem::transmute(pobjecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pgenericmapping), + pgenericmapping, core::mem::transmute(pprivilegeset.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwprivilegesetlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwgrantedaccessmask), @@ -201,7 +201,7 @@ where P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RsopFileAccessCheck(pszfilename : windows_core::PCWSTR, prsoptoken : *const core::ffi::c_void, dwdesiredaccessmask : u32, pdwgrantedaccessmask : *mut u32, pbaccessstatus : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RsopFileAccessCheck(pszfilename.param().abi(), core::mem::transmute(prsoptoken), core::mem::transmute(dwdesiredaccessmask), core::mem::transmute(pdwgrantedaccessmask), core::mem::transmute(pbaccessstatus)).ok() + RsopFileAccessCheck(pszfilename.param().abi(), prsoptoken, dwdesiredaccessmask, core::mem::transmute(pdwgrantedaccessmask), core::mem::transmute(pbaccessstatus)).ok() } #[cfg(feature = "Win32_System_Wmi")] #[inline] @@ -211,7 +211,7 @@ where P2: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RsopResetPolicySettingStatus(dwflags : u32, pservices : * mut core::ffi::c_void, psettinginstance : * mut core::ffi::c_void) -> windows_core::HRESULT); - RsopResetPolicySettingStatus(core::mem::transmute(dwflags), pservices.param().abi(), psettinginstance.param().abi()).ok() + RsopResetPolicySettingStatus(dwflags, pservices.param().abi(), psettinginstance.param().abi()).ok() } #[cfg(feature = "Win32_System_Wmi")] #[inline] @@ -221,7 +221,7 @@ where P2: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RsopSetPolicySettingStatus(dwflags : u32, pservices : * mut core::ffi::c_void, psettinginstance : * mut core::ffi::c_void, ninfo : u32, pstatus : *const POLICYSETTINGSTATUSINFO) -> windows_core::HRESULT); - RsopSetPolicySettingStatus(core::mem::transmute(dwflags), pservices.param().abi(), psettinginstance.param().abi(), pstatus.len().try_into().unwrap(), core::mem::transmute(pstatus.as_ptr())).ok() + RsopSetPolicySettingStatus(dwflags, pservices.param().abi(), psettinginstance.param().abi(), pstatus.len().try_into().unwrap(), core::mem::transmute(pstatus.as_ptr())).ok() } #[inline] pub unsafe fn UninstallApplication(productcode: P0, dwstatus: u32) -> u32 @@ -229,12 +229,12 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn UninstallApplication(productcode : windows_core::PCWSTR, dwstatus : u32) -> u32); - UninstallApplication(productcode.param().abi(), core::mem::transmute(dwstatus)) + UninstallApplication(productcode.param().abi(), dwstatus) } #[inline] pub unsafe fn UnregisterGPNotification(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn UnregisterGPNotification(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnregisterGPNotification(core::mem::transmute(hevent)).ok() + UnregisterGPNotification(hevent).ok() } pub const ABSENT: APPSTATE = APPSTATE(0i32); pub const ADMXCOMMENTS_EXTENSION_GUID: windows_core::GUID = windows_core::GUID::from_u128(0x6c5a2a86_9eb3_42b9_aa83_a7371ba011b9); @@ -517,13 +517,13 @@ impl IGPEInformation { } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn GetRegistryKey(&self, dwsection: u32, hkey: *mut super::Registry::HKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegistryKey)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(hkey)).ok() + (windows_core::Interface::vtable(self).GetRegistryKey)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(hkey)).ok() } pub unsafe fn GetDSPath(&self, dwsection: u32, pszpath: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDSPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetDSPath)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() } pub unsafe fn GetFileSysPath(&self, dwsection: u32, pszpath: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFileSysPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFileSysPath)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() } pub unsafe fn GetOptions(&self, dwoptions: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions)).ok() @@ -639,7 +639,7 @@ windows_core::imp::interface_hierarchy!(IGPM, windows_core::IUnknown, super::Com impl IGPM { pub unsafe fn GetDomain(&self, bstrdomain: &windows_core::BSTR, bstrdomaincontroller: &windows_core::BSTR, ldcflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDomain)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdomain), core::mem::transmute_copy(bstrdomaincontroller), core::mem::transmute(ldcflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDomain)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdomain), core::mem::transmute_copy(bstrdomaincontroller), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBackupDir(&self, bstrbackupdir: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -647,15 +647,15 @@ impl IGPM { } pub unsafe fn GetSitesContainer(&self, bstrforest: &windows_core::BSTR, bstrdomain: &windows_core::BSTR, bstrdomaincontroller: &windows_core::BSTR, ldcflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSitesContainer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrforest), core::mem::transmute_copy(bstrdomain), core::mem::transmute_copy(bstrdomaincontroller), core::mem::transmute(ldcflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSitesContainer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrforest), core::mem::transmute_copy(bstrdomain), core::mem::transmute_copy(bstrdomaincontroller), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: &windows_core::BSTR, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRSOP)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmrsopmode), core::mem::transmute_copy(bstrnamespace), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRSOP)(windows_core::Interface::as_raw(self), gpmrsopmode, core::mem::transmute_copy(bstrnamespace), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePermission(&self, bstrtrustee: &windows_core::BSTR, perm: GPMPermissionType, binheritable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePermission)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtrustee), core::mem::transmute(perm), core::mem::transmute(binheritable), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePermission)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtrustee), perm, binheritable, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSearchCriteria(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -871,10 +871,10 @@ windows_core::imp::interface_hierarchy!(IGPM2, windows_core::IUnknown, super::Co impl IGPM2 { pub unsafe fn GetBackupDirEx(&self, bstrbackupdir: &windows_core::BSTR, backupdirtype: GPMBackupType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackupDirEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrbackupdir), core::mem::transmute(backupdirtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackupDirEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrbackupdir), backupdirtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InitializeReportingEx(&self, bstradmpath: &windows_core::BSTR, reportingoptions: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeReportingEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstradmpath), core::mem::transmute(reportingoptions)).ok() + (windows_core::Interface::vtable(self).InitializeReportingEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstradmpath), reportingoptions).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -978,7 +978,7 @@ impl IGPMAsyncProgress { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), core::mem::transmute(lprogressnumerator), core::mem::transmute(lprogressdenominator), core::mem::transmute(hrstatus), core::mem::transmute(presult), ppigpmstatusmsgcollection.param().abi()).ok() + (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), lprogressnumerator, lprogressdenominator, hrstatus, core::mem::transmute(presult), ppigpmstatusmsgcollection.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1056,11 +1056,11 @@ impl IGPMBackup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1231,7 +1231,7 @@ impl IGPMBackupCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -1528,7 +1528,7 @@ impl IGPMCSECollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -1856,7 +1856,7 @@ impl IGPMConstants { } pub unsafe fn get_SecurityFlags(&self, vbowner: super::super::Foundation::VARIANT_BOOL, vbgroup: super::super::Foundation::VARIANT_BOOL, vbdacl: super::super::Foundation::VARIANT_BOOL, vbsacl: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SecurityFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(vbowner), core::mem::transmute(vbgroup), core::mem::transmute(vbdacl), core::mem::transmute(vbsacl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_SecurityFlags)(windows_core::Interface::as_raw(self), vbowner, vbgroup, vbdacl, vbsacl, &mut result__).map(|| result__) } pub unsafe fn DoNotValidateDC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1948,7 +1948,7 @@ impl IGPMConstants { } pub unsafe fn get_RsopPlanningLoopbackOption(&self, vbmerge: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RsopPlanningLoopbackOption)(windows_core::Interface::as_raw(self), core::mem::transmute(vbmerge), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_RsopPlanningLoopbackOption)(windows_core::Interface::as_raw(self), vbmerge, &mut result__).map(|| result__) } pub unsafe fn RsopPlanningAssumeUserWQLFilterTrue(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3092,7 +3092,7 @@ impl IGPMDomain { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RestoreGPO)(windows_core::Interface::as_raw(self), pigpmbackup.param().abi(), core::mem::transmute(ldcflags), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RestoreGPO)(windows_core::Interface::as_raw(self), pigpmbackup.param().abi(), ldcflags, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSOM(&self, bstrpath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3309,7 +3309,7 @@ impl IGPMDomain2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn LoadStarterGPO(&self, bstrloadfile: &windows_core::BSTR, boverwrite: super::super::Foundation::VARIANT_BOOL, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadStarterGPO)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrloadfile), core::mem::transmute(boverwrite), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadStarterGPO)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrloadfile), boverwrite, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RestoreStarterGPO(&self, pigpmtmplbackup: P0, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result @@ -3441,7 +3441,7 @@ impl IGPMDomain3 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InfrastructureDC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3451,7 +3451,7 @@ impl IGPMDomain3 { (windows_core::Interface::vtable(self).SetInfrastructureDC)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(newval)).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInfrastructureFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetInfrastructureFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3585,10 +3585,10 @@ impl IGPMGPO { (windows_core::Interface::vtable(self).SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(vbenabled)).ok() + (windows_core::Interface::vtable(self).SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetComputerEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(vbenabled)).ok() + (windows_core::Interface::vtable(self).SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled).ok() } pub unsafe fn IsUserEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3622,16 +3622,16 @@ impl IGPMGPO { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pigpmbackup.param().abi(), core::mem::transmute(pvarmigrationtable), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), lflags, pigpmbackup.param().abi(), core::mem::transmute(pvarmigrationtable), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CopyTo(&self, lflags: i32, pigpmdomain: P1, pvarnewdisplayname: *const super::Variant::VARIANT, pvarmigrationtable: *const super::Variant::VARIANT, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result @@ -3639,17 +3639,17 @@ impl IGPMGPO { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pigpmdomain.param().abi(), core::mem::transmute(pvarnewdisplayname), core::mem::transmute(pvarmigrationtable), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), lflags, pigpmdomain.param().abi(), core::mem::transmute(pvarnewdisplayname), core::mem::transmute(pvarmigrationtable), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSecurityDescriptor(&self, lflags: i32, psd: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), psd.param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.param().abi()).ok() } pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsACLConsistent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4104,7 +4104,7 @@ impl IGPMGPO3 { (windows_core::Interface::vtable(self).SetInfrastructureDC)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(newval)).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInfrastructureFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetInfrastructureFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4175,7 +4175,7 @@ impl IGPMGPOCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -4275,14 +4275,14 @@ impl IGPMGPOLink { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Enforced(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enforced)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnforced(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnforced)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEnforced)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn SOMLinkOrder(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4436,7 +4436,7 @@ impl IGPMGPOLinksCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -4633,7 +4633,7 @@ impl IGPMMapEntryCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -4725,12 +4725,12 @@ impl IGPMMigrationTable { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, lflags: i32, var: &super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(var)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(var)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddEntry(&self, bstrsource: &windows_core::BSTR, gpmentrytype: GPMEntryType, pvardestination: *const super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsource), core::mem::transmute(gpmentrytype), core::mem::transmute(pvardestination), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsource), gpmentrytype, core::mem::transmute(pvardestination), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEntry(&self, bstrsource: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5025,14 +5025,14 @@ impl IGPMRSOP { (windows_core::Interface::vtable(self).LoggingUser)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetLoggingFlags(&self, lval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLoggingFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lval)).ok() + (windows_core::Interface::vtable(self).SetLoggingFlags)(windows_core::Interface::as_raw(self), lval).ok() } pub unsafe fn LoggingFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LoggingFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPlanningFlags(&self, lval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlanningFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(lval)).ok() + (windows_core::Interface::vtable(self).SetPlanningFlags)(windows_core::Interface::as_raw(self), lval).ok() } pub unsafe fn PlanningFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5130,11 +5130,11 @@ impl IGPMRSOP { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5648,7 +5648,7 @@ impl IGPMSOM { (windows_core::Interface::vtable(self).GPOInheritanceBlocked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGPOInheritanceBlocked(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGPOInheritanceBlocked)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetGPOInheritanceBlocked)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5663,7 +5663,7 @@ impl IGPMSOM { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGPOLink)(windows_core::Interface::as_raw(self), core::mem::transmute(llinkpos), pgpo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGPOLink)(windows_core::Interface::as_raw(self), llinkpos, pgpo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5847,7 +5847,7 @@ impl IGPMSOMCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -5936,7 +5936,7 @@ windows_core::imp::interface_hierarchy!(IGPMSearchCriteria, windows_core::IUnkno impl IGPMSearchCriteria { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, searchproperty: GPMSearchProperty, searchoperation: GPMSearchOperation, varvalue: &super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(searchproperty), core::mem::transmute(searchoperation), core::mem::transmute_copy(varvalue)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), searchproperty, searchoperation, core::mem::transmute_copy(varvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5987,7 +5987,7 @@ impl IGPMSecurityInfo { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -6289,7 +6289,7 @@ impl IGPMStarterGPO { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Save(&self, bstrsavefile: &windows_core::BSTR, boverwrite: super::super::Foundation::VARIANT_BOOL, bsaveassystem: super::super::Foundation::VARIANT_BOOL, bstrlanguage: *const super::Variant::VARIANT, bstrauthor: *const super::Variant::VARIANT, bstrproduct: *const super::Variant::VARIANT, bstruniqueid: *const super::Variant::VARIANT, bstrversion: *const super::Variant::VARIANT, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsavefile), core::mem::transmute(boverwrite), core::mem::transmute(bsaveassystem), core::mem::transmute(bstrlanguage), core::mem::transmute(bstrauthor), core::mem::transmute(bstrproduct), core::mem::transmute(bstruniqueid), core::mem::transmute(bstrversion), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsavefile), boverwrite, bsaveassystem, core::mem::transmute(bstrlanguage), core::mem::transmute(bstrauthor), core::mem::transmute(bstrproduct), core::mem::transmute(bstruniqueid), core::mem::transmute(bstrversion), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Backup(&self, bstrbackupdir: &windows_core::BSTR, bstrcomment: &windows_core::BSTR, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { @@ -6304,11 +6304,11 @@ impl IGPMStarterGPO { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *const super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSecurityInfo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6654,11 +6654,11 @@ impl IGPMStarterGPOBackup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Variant::VARIANT, pvargpmcancel: *mut super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReport)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), core::mem::transmute(gpmreporttype), core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, core::mem::transmute_copy(bstrtargetfilepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6842,7 +6842,7 @@ impl IGPMStarterGPOBackupCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -6936,7 +6936,7 @@ impl IGPMStarterGPOCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -7153,7 +7153,7 @@ impl IGPMStatusMsgCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -7524,7 +7524,7 @@ impl IGPMWMIFilterCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> windows_core::Result { @@ -7606,22 +7606,22 @@ impl IGroupPolicyObject { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).New)(windows_core::Interface::as_raw(self), pszdomainname.param().abi(), pszdisplayname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).New)(windows_core::Interface::as_raw(self), pszdomainname.param().abi(), pszdisplayname.param().abi(), dwflags).ok() } pub unsafe fn OpenDSGPO(&self, pszpath: P0, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDSGPO)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OpenDSGPO)(windows_core::Interface::as_raw(self), pszpath.param().abi(), dwflags).ok() } pub unsafe fn OpenLocalMachineGPO(&self, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenLocalMachineGPO)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OpenLocalMachineGPO)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn OpenRemoteMachineGPO(&self, pszcomputername: P0, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenRemoteMachineGPO)(windows_core::Interface::as_raw(self), pszcomputername.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OpenRemoteMachineGPO)(windows_core::Interface::as_raw(self), pszcomputername.param().abi(), dwflags).ok() } pub unsafe fn Save(&self, bmachine: bool, badd: bool, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), bmachine.into(), badd.into(), core::mem::transmute(pguidextension), core::mem::transmute(pguid)).ok() @@ -7645,20 +7645,20 @@ impl IGroupPolicyObject { (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() } pub unsafe fn GetDSPath(&self, dwsection: u32, pszpath: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDSPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetDSPath)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() } pub unsafe fn GetFileSysPath(&self, dwsection: u32, pszpath: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFileSysPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFileSysPath)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn GetRegistryKey(&self, dwsection: GPO_SECTION, hkey: *mut super::Registry::HKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegistryKey)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(hkey)).ok() + (windows_core::Interface::vtable(self).GetRegistryKey)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(hkey)).ok() } pub unsafe fn GetOptions(&self, dwoptions: *mut GPO_OPTIONS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions)).ok() } pub unsafe fn SetOptions(&self, dwoptions: GPO_OPTIONS, dwmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), dwoptions, dwmask).ok() } pub unsafe fn GetType(&self, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), core::mem::transmute(gpotype)).ok() @@ -7876,7 +7876,7 @@ windows_core::imp::define_interface!(IRSOPInformation, IRSOPInformation_Vtbl, 0x windows_core::imp::interface_hierarchy!(IRSOPInformation, windows_core::IUnknown); impl IRSOPInformation { pub unsafe fn GetNamespace(&self, dwsection: u32, pszname: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNamespace)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsection), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetNamespace)(windows_core::Interface::as_raw(self), dwsection, core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() } pub unsafe fn GetFlags(&self, pdwflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() @@ -7888,7 +7888,7 @@ impl IRSOPInformation { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventLogEntryText)(windows_core::Interface::as_raw(self), pszeventsource.param().abi(), pszeventlogname.param().abi(), pszeventtime.param().abi(), core::mem::transmute(dweventid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEventLogEntryText)(windows_core::Interface::as_raw(self), pszeventsource.param().abi(), pszeventlogname.param().abi(), pszeventtime.param().abi(), dweventid, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs b/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs index 40196d0915..7f999a4151 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn HcnCloseEndpoint(endpoint: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnCloseEndpoint(endpoint : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnCloseEndpoint(core::mem::transmute(endpoint)).ok() + HcnCloseEndpoint(endpoint).ok() } #[inline] pub unsafe fn HcnCloseGuestNetworkService(guestnetworkservice: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnCloseGuestNetworkService(guestnetworkservice : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnCloseGuestNetworkService(core::mem::transmute(guestnetworkservice)).ok() + HcnCloseGuestNetworkService(guestnetworkservice).ok() } #[inline] pub unsafe fn HcnCloseLoadBalancer(loadbalancer: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnCloseLoadBalancer(loadbalancer : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnCloseLoadBalancer(core::mem::transmute(loadbalancer)).ok() + HcnCloseLoadBalancer(loadbalancer).ok() } #[inline] pub unsafe fn HcnCloseNamespace(namespace: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnCloseNamespace(namespace : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnCloseNamespace(core::mem::transmute(namespace)).ok() + HcnCloseNamespace(namespace).ok() } #[inline] pub unsafe fn HcnCloseNetwork(network: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnCloseNetwork(network : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnCloseNetwork(core::mem::transmute(network)).ok() + HcnCloseNetwork(network).ok() } #[inline] pub unsafe fn HcnCreateEndpoint(network: *const core::ffi::c_void, id: *const windows_core::GUID, settings: P2, endpoint: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -29,7 +29,7 @@ where P2: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnCreateEndpoint(network : *const core::ffi::c_void, id : *const windows_core::GUID, settings : windows_core::PCWSTR, endpoint : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnCreateEndpoint(core::mem::transmute(network), core::mem::transmute(id), settings.param().abi(), core::mem::transmute(endpoint), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnCreateEndpoint(network, id, settings.param().abi(), core::mem::transmute(endpoint), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnCreateGuestNetworkService(id: *const windows_core::GUID, settings: P1, guestnetworkservice: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -37,7 +37,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnCreateGuestNetworkService(id : *const windows_core::GUID, settings : windows_core::PCWSTR, guestnetworkservice : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnCreateGuestNetworkService(core::mem::transmute(id), settings.param().abi(), core::mem::transmute(guestnetworkservice), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnCreateGuestNetworkService(id, settings.param().abi(), core::mem::transmute(guestnetworkservice), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnCreateLoadBalancer(id: *const windows_core::GUID, settings: P1, loadbalancer: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -45,7 +45,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnCreateLoadBalancer(id : *const windows_core::GUID, settings : windows_core::PCWSTR, loadbalancer : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnCreateLoadBalancer(core::mem::transmute(id), settings.param().abi(), core::mem::transmute(loadbalancer), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnCreateLoadBalancer(id, settings.param().abi(), core::mem::transmute(loadbalancer), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnCreateNamespace(id: *const windows_core::GUID, settings: P1, namespace: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -53,7 +53,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnCreateNamespace(id : *const windows_core::GUID, settings : windows_core::PCWSTR, namespace : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnCreateNamespace(core::mem::transmute(id), settings.param().abi(), core::mem::transmute(namespace), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnCreateNamespace(id, settings.param().abi(), core::mem::transmute(namespace), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnCreateNetwork(id: *const windows_core::GUID, settings: P1, network: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -61,32 +61,32 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnCreateNetwork(id : *const windows_core::GUID, settings : windows_core::PCWSTR, network : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnCreateNetwork(core::mem::transmute(id), settings.param().abi(), core::mem::transmute(network), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnCreateNetwork(id, settings.param().abi(), core::mem::transmute(network), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnDeleteEndpoint(id: *const windows_core::GUID, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnDeleteEndpoint(id : *const windows_core::GUID, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnDeleteEndpoint(core::mem::transmute(id), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnDeleteEndpoint(id, core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnDeleteGuestNetworkService(id: *const windows_core::GUID, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnDeleteGuestNetworkService(id : *const windows_core::GUID, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnDeleteGuestNetworkService(core::mem::transmute(id), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnDeleteGuestNetworkService(id, core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnDeleteLoadBalancer(id: *const windows_core::GUID, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnDeleteLoadBalancer(id : *const windows_core::GUID, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnDeleteLoadBalancer(core::mem::transmute(id), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnDeleteLoadBalancer(id, core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnDeleteNamespace(id: *const windows_core::GUID, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnDeleteNamespace(id : *const windows_core::GUID, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnDeleteNamespace(core::mem::transmute(id), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnDeleteNamespace(id, core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnDeleteNetwork(id: *const windows_core::GUID, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnDeleteNetwork(id : *const windows_core::GUID, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnDeleteNetwork(core::mem::transmute(id), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnDeleteNetwork(id, core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnEnumerateEndpoints(query: P0, endpoints: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -136,7 +136,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnModifyEndpoint(endpoint : *const core::ffi::c_void, settings : windows_core::PCWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnModifyEndpoint(core::mem::transmute(endpoint), settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnModifyEndpoint(endpoint, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnModifyGuestNetworkService(guestnetworkservice: *const core::ffi::c_void, settings: P1, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -144,7 +144,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnModifyGuestNetworkService(guestnetworkservice : *const core::ffi::c_void, settings : windows_core::PCWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnModifyGuestNetworkService(core::mem::transmute(guestnetworkservice), settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnModifyGuestNetworkService(guestnetworkservice, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnModifyLoadBalancer(loadbalancer: *const core::ffi::c_void, settings: P1, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -152,7 +152,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnModifyLoadBalancer(loadbalancer : *const core::ffi::c_void, settings : windows_core::PCWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnModifyLoadBalancer(core::mem::transmute(loadbalancer), settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnModifyLoadBalancer(loadbalancer, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnModifyNamespace(namespace: *const core::ffi::c_void, settings: P1, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -160,7 +160,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnModifyNamespace(namespace : *const core::ffi::c_void, settings : windows_core::PCWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnModifyNamespace(core::mem::transmute(namespace), settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnModifyNamespace(namespace, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnModifyNetwork(network: *const core::ffi::c_void, settings: P1, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -168,27 +168,27 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnModifyNetwork(network : *const core::ffi::c_void, settings : windows_core::PCWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnModifyNetwork(core::mem::transmute(network), settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnModifyNetwork(network, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnOpenEndpoint(id: *const windows_core::GUID, endpoint: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnOpenEndpoint(id : *const windows_core::GUID, endpoint : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnOpenEndpoint(core::mem::transmute(id), core::mem::transmute(endpoint), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnOpenEndpoint(id, core::mem::transmute(endpoint), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnOpenLoadBalancer(id: *const windows_core::GUID, loadbalancer: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnOpenLoadBalancer(id : *const windows_core::GUID, loadbalancer : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnOpenLoadBalancer(core::mem::transmute(id), core::mem::transmute(loadbalancer), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnOpenLoadBalancer(id, core::mem::transmute(loadbalancer), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnOpenNamespace(id: *const windows_core::GUID, namespace: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnOpenNamespace(id : *const windows_core::GUID, namespace : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnOpenNamespace(core::mem::transmute(id), core::mem::transmute(namespace), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnOpenNamespace(id, core::mem::transmute(namespace), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnOpenNetwork(id: *const windows_core::GUID, network: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnOpenNetwork(id : *const windows_core::GUID, network : *mut *mut core::ffi::c_void, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnOpenNetwork(core::mem::transmute(id), core::mem::transmute(network), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnOpenNetwork(id, core::mem::transmute(network), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnQueryEndpointAddresses(endpoint: *const core::ffi::c_void, query: P1, addresses: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -196,7 +196,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnQueryEndpointAddresses(endpoint : *const core::ffi::c_void, query : windows_core::PCWSTR, addresses : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnQueryEndpointAddresses(core::mem::transmute(endpoint), query.param().abi(), core::mem::transmute(addresses), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnQueryEndpointAddresses(endpoint, query.param().abi(), core::mem::transmute(addresses), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnQueryEndpointProperties(endpoint: *const core::ffi::c_void, query: P1, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -204,7 +204,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnQueryEndpointProperties(endpoint : *const core::ffi::c_void, query : windows_core::PCWSTR, properties : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnQueryEndpointProperties(core::mem::transmute(endpoint), query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnQueryEndpointProperties(endpoint, query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnQueryEndpointStats(endpoint: *const core::ffi::c_void, query: P1, stats: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -212,7 +212,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnQueryEndpointStats(endpoint : *const core::ffi::c_void, query : windows_core::PCWSTR, stats : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnQueryEndpointStats(core::mem::transmute(endpoint), query.param().abi(), core::mem::transmute(stats), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnQueryEndpointStats(endpoint, query.param().abi(), core::mem::transmute(stats), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnQueryLoadBalancerProperties(loadbalancer: *const core::ffi::c_void, query: P1, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -220,7 +220,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnQueryLoadBalancerProperties(loadbalancer : *const core::ffi::c_void, query : windows_core::PCWSTR, properties : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnQueryLoadBalancerProperties(core::mem::transmute(loadbalancer), query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnQueryLoadBalancerProperties(loadbalancer, query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnQueryNamespaceProperties(namespace: *const core::ffi::c_void, query: P1, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -228,7 +228,7 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnQueryNamespaceProperties(namespace : *const core::ffi::c_void, query : windows_core::PCWSTR, properties : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnQueryNamespaceProperties(core::mem::transmute(namespace), query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnQueryNamespaceProperties(namespace, query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnQueryNetworkProperties(network: *const core::ffi::c_void, query: P1, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -236,43 +236,43 @@ where P1: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnQueryNetworkProperties(network : *const core::ffi::c_void, query : windows_core::PCWSTR, properties : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnQueryNetworkProperties(core::mem::transmute(network), query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() + HcnQueryNetworkProperties(network, query.param().abi(), core::mem::transmute(properties), core::mem::transmute(errorrecord.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcnRegisterGuestNetworkServiceCallback(guestnetworkservice: *const core::ffi::c_void, callback: HCN_NOTIFICATION_CALLBACK, context: *const core::ffi::c_void, callbackhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnRegisterGuestNetworkServiceCallback(guestnetworkservice : *const core::ffi::c_void, callback : HCN_NOTIFICATION_CALLBACK, context : *const core::ffi::c_void, callbackhandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HcnRegisterGuestNetworkServiceCallback(core::mem::transmute(guestnetworkservice), core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(callbackhandle)).ok() + HcnRegisterGuestNetworkServiceCallback(guestnetworkservice, callback, context, core::mem::transmute(callbackhandle)).ok() } #[inline] pub unsafe fn HcnRegisterServiceCallback(callback: HCN_NOTIFICATION_CALLBACK, context: *const core::ffi::c_void, callbackhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnRegisterServiceCallback(callback : HCN_NOTIFICATION_CALLBACK, context : *const core::ffi::c_void, callbackhandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HcnRegisterServiceCallback(core::mem::transmute(callback), core::mem::transmute(context), core::mem::transmute(callbackhandle)).ok() + HcnRegisterServiceCallback(callback, context, core::mem::transmute(callbackhandle)).ok() } #[inline] pub unsafe fn HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcnReleaseGuestNetworkServicePortReservationHandle(core::mem::transmute(portreservationhandle)).ok() + HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle).ok() } #[inline] pub unsafe fn HcnReserveGuestNetworkServicePort(guestnetworkservice: *const core::ffi::c_void, protocol: HCN_PORT_PROTOCOL, access: HCN_PORT_ACCESS, port: u16) -> windows_core::Result { windows_targets::link!("computenetwork.dll" "system" fn HcnReserveGuestNetworkServicePort(guestnetworkservice : *const core::ffi::c_void, protocol : HCN_PORT_PROTOCOL, access : HCN_PORT_ACCESS, port : u16, portreservationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcnReserveGuestNetworkServicePort(core::mem::transmute(guestnetworkservice), core::mem::transmute(protocol), core::mem::transmute(access), core::mem::transmute(port), &mut result__).map(|| core::mem::transmute(result__)) + HcnReserveGuestNetworkServicePort(guestnetworkservice, protocol, access, port, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcnReserveGuestNetworkServicePortRange(guestnetworkservice: *const core::ffi::c_void, portcount: u16, portrangereservation: *mut HCN_PORT_RANGE_RESERVATION, portreservationhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnReserveGuestNetworkServicePortRange(guestnetworkservice : *const core::ffi::c_void, portcount : u16, portrangereservation : *mut HCN_PORT_RANGE_RESERVATION, portreservationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcnReserveGuestNetworkServicePortRange(core::mem::transmute(guestnetworkservice), core::mem::transmute(portcount), core::mem::transmute(portrangereservation), core::mem::transmute(portreservationhandle)).ok() + HcnReserveGuestNetworkServicePortRange(guestnetworkservice, portcount, core::mem::transmute(portrangereservation), core::mem::transmute(portreservationhandle)).ok() } #[inline] pub unsafe fn HcnUnregisterGuestNetworkServiceCallback(callbackhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnUnregisterGuestNetworkServiceCallback(callbackhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnUnregisterGuestNetworkServiceCallback(core::mem::transmute(callbackhandle)).ok() + HcnUnregisterGuestNetworkServiceCallback(callbackhandle).ok() } #[inline] pub unsafe fn HcnUnregisterServiceCallback(callbackhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("computenetwork.dll" "system" fn HcnUnregisterServiceCallback(callbackhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - HcnUnregisterServiceCallback(core::mem::transmute(callbackhandle)).ok() + HcnUnregisterServiceCallback(callbackhandle).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs index 61d0b19b40..8257aff9a6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs @@ -4,7 +4,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsAddResourceToOperation(operation : HCS_OPERATION, r#type : HCS_RESOURCE_TYPE, uri : windows_core::PCWSTR, handle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcsAddResourceToOperation(core::mem::transmute(operation), core::mem::transmute(r#type), uri.param().abi(), core::mem::transmute(handle)).ok() + HcsAddResourceToOperation(operation, r#type, uri.param().abi(), handle).ok() } #[inline] pub unsafe fn HcsAttachLayerStorageFilter(layerpath: P0, layerdata: P1) -> windows_core::Result<()> @@ -18,22 +18,22 @@ where #[inline] pub unsafe fn HcsCancelOperation(operation: HCS_OPERATION) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsCancelOperation(operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsCancelOperation(core::mem::transmute(operation)).ok() + HcsCancelOperation(operation).ok() } #[inline] pub unsafe fn HcsCloseComputeSystem(computesystem: HCS_SYSTEM) { windows_targets::link!("computecore.dll" "system" fn HcsCloseComputeSystem(computesystem : HCS_SYSTEM)); - HcsCloseComputeSystem(core::mem::transmute(computesystem)) + HcsCloseComputeSystem(computesystem) } #[inline] pub unsafe fn HcsCloseOperation(operation: HCS_OPERATION) { windows_targets::link!("computecore.dll" "system" fn HcsCloseOperation(operation : HCS_OPERATION)); - HcsCloseOperation(core::mem::transmute(operation)) + HcsCloseOperation(operation) } #[inline] pub unsafe fn HcsCloseProcess(process: HCS_PROCESS) { windows_targets::link!("computecore.dll" "system" fn HcsCloseProcess(process : HCS_PROCESS)); - HcsCloseProcess(core::mem::transmute(process)) + HcsCloseProcess(process) } #[inline] pub unsafe fn HcsCrashComputeSystem(computesystem: HCS_SYSTEM, operation: HCS_OPERATION, options: P2) -> windows_core::Result<()> @@ -41,7 +41,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCrashComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsCrashComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsCrashComputeSystem(computesystem, operation, options.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -52,7 +52,7 @@ where { windows_targets::link!("computecore.dll" "system" fn HcsCreateComputeSystem(id : windows_core::PCWSTR, configuration : windows_core::PCWSTR, operation : HCS_OPERATION, securitydescriptor : *const super::super::Security:: SECURITY_DESCRIPTOR, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsCreateComputeSystem(id.param().abi(), configuration.param().abi(), core::mem::transmute(operation), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + HcsCreateComputeSystem(id.param().abi(), configuration.param().abi(), operation, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsCreateComputeSystemInNamespace(idnamespace: P0, id: P1, configuration: P2, operation: HCS_OPERATION, options: Option<*const HCS_CREATE_OPTIONS>) -> windows_core::Result @@ -63,7 +63,7 @@ where { windows_targets::link!("computecore.dll" "system" fn HcsCreateComputeSystemInNamespace(idnamespace : windows_core::PCWSTR, id : windows_core::PCWSTR, configuration : windows_core::PCWSTR, operation : HCS_OPERATION, options : *const HCS_CREATE_OPTIONS, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsCreateComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), configuration.param().abi(), core::mem::transmute(operation), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + HcsCreateComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), configuration.param().abi(), operation, core::mem::transmute(options.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsCreateEmptyGuestStateFile(gueststatefilepath: P0) -> windows_core::Result<()> @@ -89,7 +89,7 @@ pub unsafe fn HcsCreateOperation(context: Option<*const core::ffi::c_void>, call #[inline] pub unsafe fn HcsCreateOperationWithNotifications(eventtypes: HCS_OPERATION_OPTIONS, context: Option<*const core::ffi::c_void>, callback: HCS_EVENT_CALLBACK) -> HCS_OPERATION { windows_targets::link!("computecore.dll" "system" fn HcsCreateOperationWithNotifications(eventtypes : HCS_OPERATION_OPTIONS, context : *const core::ffi::c_void, callback : HCS_EVENT_CALLBACK) -> HCS_OPERATION); - HcsCreateOperationWithNotifications(core::mem::transmute(eventtypes), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback)) + HcsCreateOperationWithNotifications(eventtypes, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), callback) } #[cfg(feature = "Win32_Security")] #[inline] @@ -99,7 +99,7 @@ where { windows_targets::link!("computecore.dll" "system" fn HcsCreateProcess(computesystem : HCS_SYSTEM, processparameters : windows_core::PCWSTR, operation : HCS_OPERATION, securitydescriptor : *const super::super::Security:: SECURITY_DESCRIPTOR, process : *mut HCS_PROCESS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsCreateProcess(core::mem::transmute(computesystem), processparameters.param().abi(), core::mem::transmute(operation), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + HcsCreateProcess(computesystem, processparameters.param().abi(), operation, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsDestroyLayer(layerpath: P0) -> windows_core::Result<()> @@ -123,7 +123,7 @@ where P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsEnumerateComputeSystems(query : windows_core::PCWSTR, operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsEnumerateComputeSystems(query.param().abi(), core::mem::transmute(operation)).ok() + HcsEnumerateComputeSystems(query.param().abi(), operation).ok() } #[inline] pub unsafe fn HcsEnumerateComputeSystemsInNamespace(idnamespace: P0, query: P1, operation: HCS_OPERATION) -> windows_core::Result<()> @@ -132,7 +132,7 @@ where P1: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsEnumerateComputeSystemsInNamespace(idnamespace : windows_core::PCWSTR, query : windows_core::PCWSTR, operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsEnumerateComputeSystemsInNamespace(idnamespace.param().abi(), query.param().abi(), core::mem::transmute(operation)).ok() + HcsEnumerateComputeSystemsInNamespace(idnamespace.param().abi(), query.param().abi(), operation).ok() } #[inline] pub unsafe fn HcsExportLayer(layerpath: P0, exportfolderpath: P1, layerdata: P2, options: P3) -> windows_core::Result<()> @@ -159,12 +159,12 @@ where #[inline] pub unsafe fn HcsFormatWritableLayerVhd(vhdhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("computestorage.dll" "system" fn HcsFormatWritableLayerVhd(vhdhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcsFormatWritableLayerVhd(core::mem::transmute(vhdhandle)).ok() + HcsFormatWritableLayerVhd(vhdhandle).ok() } #[inline] pub unsafe fn HcsGetComputeSystemFromOperation(operation: HCS_OPERATION) -> HCS_SYSTEM { windows_targets::link!("computecore.dll" "system" fn HcsGetComputeSystemFromOperation(operation : HCS_OPERATION) -> HCS_SYSTEM); - HcsGetComputeSystemFromOperation(core::mem::transmute(operation)) + HcsGetComputeSystemFromOperation(operation) } #[inline] pub unsafe fn HcsGetComputeSystemProperties(computesystem: HCS_SYSTEM, operation: HCS_OPERATION, propertyquery: P2) -> windows_core::Result<()> @@ -172,48 +172,48 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetComputeSystemProperties(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, propertyquery : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsGetComputeSystemProperties(core::mem::transmute(computesystem), core::mem::transmute(operation), propertyquery.param().abi()).ok() + HcsGetComputeSystemProperties(computesystem, operation, propertyquery.param().abi()).ok() } #[inline] pub unsafe fn HcsGetLayerVhdMountPath(vhdhandle: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("computestorage.dll" "system" fn HcsGetLayerVhdMountPath(vhdhandle : super::super::Foundation:: HANDLE, mountpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsGetLayerVhdMountPath(core::mem::transmute(vhdhandle), &mut result__).map(|| core::mem::transmute(result__)) + HcsGetLayerVhdMountPath(vhdhandle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsGetOperationContext(operation: HCS_OPERATION) -> *mut core::ffi::c_void { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationContext(operation : HCS_OPERATION) -> *mut core::ffi::c_void); - HcsGetOperationContext(core::mem::transmute(operation)) + HcsGetOperationContext(operation) } #[inline] pub unsafe fn HcsGetOperationId(operation: HCS_OPERATION) -> u64 { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationId(operation : HCS_OPERATION) -> u64); - HcsGetOperationId(core::mem::transmute(operation)) + HcsGetOperationId(operation) } #[inline] pub unsafe fn HcsGetOperationResult(operation: HCS_OPERATION, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationResult(operation : HCS_OPERATION, resultdocument : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsGetOperationResult(core::mem::transmute(operation), core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() + HcsGetOperationResult(operation, core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsGetOperationResultAndProcessInfo(operation: HCS_OPERATION, processinformation: Option<*mut HCS_PROCESS_INFORMATION>, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationResultAndProcessInfo(operation : HCS_OPERATION, processinformation : *mut HCS_PROCESS_INFORMATION, resultdocument : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsGetOperationResultAndProcessInfo(core::mem::transmute(operation), core::mem::transmute(processinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() + HcsGetOperationResultAndProcessInfo(operation, core::mem::transmute(processinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsGetOperationType(operation: HCS_OPERATION) -> HCS_OPERATION_TYPE { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationType(operation : HCS_OPERATION) -> HCS_OPERATION_TYPE); - HcsGetOperationType(core::mem::transmute(operation)) + HcsGetOperationType(operation) } #[inline] pub unsafe fn HcsGetProcessFromOperation(operation: HCS_OPERATION) -> HCS_PROCESS { windows_targets::link!("computecore.dll" "system" fn HcsGetProcessFromOperation(operation : HCS_OPERATION) -> HCS_PROCESS); - HcsGetProcessFromOperation(core::mem::transmute(operation)) + HcsGetProcessFromOperation(operation) } #[inline] pub unsafe fn HcsGetProcessInfo(process: HCS_PROCESS, operation: HCS_OPERATION) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsGetProcessInfo(process : HCS_PROCESS, operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsGetProcessInfo(core::mem::transmute(process), core::mem::transmute(operation)).ok() + HcsGetProcessInfo(process, operation).ok() } #[inline] pub unsafe fn HcsGetProcessProperties(process: HCS_PROCESS, operation: HCS_OPERATION, propertyquery: P2) -> windows_core::Result<()> @@ -221,7 +221,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetProcessProperties(process : HCS_PROCESS, operation : HCS_OPERATION, propertyquery : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsGetProcessProperties(core::mem::transmute(process), core::mem::transmute(operation), propertyquery.param().abi()).ok() + HcsGetProcessProperties(process, operation, propertyquery.param().abi()).ok() } #[inline] pub unsafe fn HcsGetProcessorCompatibilityFromSavedState(runtimefilename: P0, processorfeaturesstring: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> @@ -294,7 +294,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsModifyComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, configuration : windows_core::PCWSTR, identity : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcsModifyComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), configuration.param().abi(), core::mem::transmute(identity.unwrap_or(core::mem::zeroed()))).ok() + HcsModifyComputeSystem(computesystem, operation, configuration.param().abi(), core::mem::transmute(identity.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsModifyProcess(process: HCS_PROCESS, operation: HCS_OPERATION, settings: P2) -> windows_core::Result<()> @@ -302,7 +302,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsModifyProcess(process : HCS_PROCESS, operation : HCS_OPERATION, settings : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsModifyProcess(core::mem::transmute(process), core::mem::transmute(operation), settings.param().abi()).ok() + HcsModifyProcess(process, operation, settings.param().abi()).ok() } #[inline] pub unsafe fn HcsModifyServiceSettings(settings: P0, result: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -319,7 +319,7 @@ where { windows_targets::link!("computecore.dll" "system" fn HcsOpenComputeSystem(id : windows_core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsOpenComputeSystem(id.param().abi(), core::mem::transmute(requestedaccess), &mut result__).map(|| core::mem::transmute(result__)) + HcsOpenComputeSystem(id.param().abi(), requestedaccess, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsOpenComputeSystemInNamespace(idnamespace: P0, id: P1, requestedaccess: u32) -> windows_core::Result @@ -329,13 +329,13 @@ where { windows_targets::link!("computecore.dll" "system" fn HcsOpenComputeSystemInNamespace(idnamespace : windows_core::PCWSTR, id : windows_core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsOpenComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), core::mem::transmute(requestedaccess), &mut result__).map(|| core::mem::transmute(result__)) + HcsOpenComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), requestedaccess, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsOpenProcess(computesystem: HCS_SYSTEM, processid: u32, requestedaccess: u32) -> windows_core::Result { windows_targets::link!("computecore.dll" "system" fn HcsOpenProcess(computesystem : HCS_SYSTEM, processid : u32, requestedaccess : u32, process : *mut HCS_PROCESS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HcsOpenProcess(core::mem::transmute(computesystem), core::mem::transmute(processid), core::mem::transmute(requestedaccess), &mut result__).map(|| core::mem::transmute(result__)) + HcsOpenProcess(computesystem, processid, requestedaccess, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HcsPauseComputeSystem(computesystem: HCS_SYSTEM, operation: HCS_OPERATION, options: P2) -> windows_core::Result<()> @@ -343,7 +343,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsPauseComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsPauseComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsPauseComputeSystem(computesystem, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsResumeComputeSystem(computesystem: HCS_SYSTEM, operation: HCS_OPERATION, options: P2) -> windows_core::Result<()> @@ -351,7 +351,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsResumeComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsResumeComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsResumeComputeSystem(computesystem, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsRevokeVmAccess(vmid: P0, filepath: P1) -> windows_core::Result<()> @@ -376,27 +376,27 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsSaveComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsSaveComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsSaveComputeSystem(computesystem, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsSetComputeSystemCallback(computesystem: HCS_SYSTEM, callbackoptions: HCS_EVENT_OPTIONS, context: Option<*const core::ffi::c_void>, callback: HCS_EVENT_CALLBACK) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsSetComputeSystemCallback(computesystem : HCS_SYSTEM, callbackoptions : HCS_EVENT_OPTIONS, context : *const core::ffi::c_void, callback : HCS_EVENT_CALLBACK) -> windows_core::HRESULT); - HcsSetComputeSystemCallback(core::mem::transmute(computesystem), core::mem::transmute(callbackoptions), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback)).ok() + HcsSetComputeSystemCallback(computesystem, callbackoptions, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), callback).ok() } #[inline] pub unsafe fn HcsSetOperationCallback(operation: HCS_OPERATION, context: Option<*const core::ffi::c_void>, callback: HCS_OPERATION_COMPLETION) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsSetOperationCallback(operation : HCS_OPERATION, context : *const core::ffi::c_void, callback : HCS_OPERATION_COMPLETION) -> windows_core::HRESULT); - HcsSetOperationCallback(core::mem::transmute(operation), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback)).ok() + HcsSetOperationCallback(operation, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), callback).ok() } #[inline] pub unsafe fn HcsSetOperationContext(operation: HCS_OPERATION, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsSetOperationContext(operation : HCS_OPERATION, context : *const core::ffi::c_void) -> windows_core::HRESULT); - HcsSetOperationContext(core::mem::transmute(operation), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + HcsSetOperationContext(operation, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsSetProcessCallback(process: HCS_PROCESS, callbackoptions: HCS_EVENT_OPTIONS, context: *const core::ffi::c_void, callback: HCS_EVENT_CALLBACK) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsSetProcessCallback(process : HCS_PROCESS, callbackoptions : HCS_EVENT_OPTIONS, context : *const core::ffi::c_void, callback : HCS_EVENT_CALLBACK) -> windows_core::HRESULT); - HcsSetProcessCallback(core::mem::transmute(process), core::mem::transmute(callbackoptions), core::mem::transmute(context), core::mem::transmute(callback)).ok() + HcsSetProcessCallback(process, callbackoptions, context, callback).ok() } #[inline] pub unsafe fn HcsSetupBaseOSLayer(layerpath: P0, vhdhandle: super::super::Foundation::HANDLE, options: P2) -> windows_core::Result<()> @@ -405,7 +405,7 @@ where P2: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsSetupBaseOSLayer(layerpath : windows_core::PCWSTR, vhdhandle : super::super::Foundation:: HANDLE, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsSetupBaseOSLayer(layerpath.param().abi(), core::mem::transmute(vhdhandle), options.param().abi()).ok() + HcsSetupBaseOSLayer(layerpath.param().abi(), vhdhandle, options.param().abi()).ok() } #[inline] pub unsafe fn HcsSetupBaseOSVolume(layerpath: P0, volumepath: P1, options: P2) -> windows_core::Result<()> @@ -423,7 +423,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsShutDownComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsShutDownComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsShutDownComputeSystem(computesystem, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsSignalProcess(process: HCS_PROCESS, operation: HCS_OPERATION, options: P2) -> windows_core::Result<()> @@ -431,7 +431,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsSignalProcess(process : HCS_PROCESS, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsSignalProcess(core::mem::transmute(process), core::mem::transmute(operation), options.param().abi()).ok() + HcsSignalProcess(process, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsStartComputeSystem(computesystem: HCS_SYSTEM, operation: HCS_OPERATION, options: P2) -> windows_core::Result<()> @@ -439,7 +439,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsStartComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsStartComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsStartComputeSystem(computesystem, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsSubmitWerReport(settings: P0) -> windows_core::Result<()> @@ -455,7 +455,7 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsTerminateComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsTerminateComputeSystem(core::mem::transmute(computesystem), core::mem::transmute(operation), options.param().abi()).ok() + HcsTerminateComputeSystem(computesystem, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsTerminateProcess(process: HCS_PROCESS, operation: HCS_OPERATION, options: P2) -> windows_core::Result<()> @@ -463,27 +463,27 @@ where P2: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsTerminateProcess(process : HCS_PROCESS, operation : HCS_OPERATION, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsTerminateProcess(core::mem::transmute(process), core::mem::transmute(operation), options.param().abi()).ok() + HcsTerminateProcess(process, operation, options.param().abi()).ok() } #[inline] pub unsafe fn HcsWaitForComputeSystemExit(computesystem: HCS_SYSTEM, timeoutms: u32, result: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsWaitForComputeSystemExit(computesystem : HCS_SYSTEM, timeoutms : u32, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForComputeSystemExit(core::mem::transmute(computesystem), core::mem::transmute(timeoutms), core::mem::transmute(result.unwrap_or(core::mem::zeroed()))).ok() + HcsWaitForComputeSystemExit(computesystem, timeoutms, core::mem::transmute(result.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsWaitForOperationResult(operation: HCS_OPERATION, timeoutms: u32, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsWaitForOperationResult(operation : HCS_OPERATION, timeoutms : u32, resultdocument : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForOperationResult(core::mem::transmute(operation), core::mem::transmute(timeoutms), core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() + HcsWaitForOperationResult(operation, timeoutms, core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsWaitForOperationResultAndProcessInfo(operation: HCS_OPERATION, timeoutms: u32, processinformation: Option<*mut HCS_PROCESS_INFORMATION>, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsWaitForOperationResultAndProcessInfo(operation : HCS_OPERATION, timeoutms : u32, processinformation : *mut HCS_PROCESS_INFORMATION, resultdocument : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForOperationResultAndProcessInfo(core::mem::transmute(operation), core::mem::transmute(timeoutms), core::mem::transmute(processinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() + HcsWaitForOperationResultAndProcessInfo(operation, timeoutms, core::mem::transmute(processinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdocument.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HcsWaitForProcessExit(computesystem: HCS_PROCESS, timeoutms: u32, result: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { windows_targets::link!("computecore.dll" "system" fn HcsWaitForProcessExit(computesystem : HCS_PROCESS, timeoutms : u32, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForProcessExit(core::mem::transmute(computesystem), core::mem::transmute(timeoutms), core::mem::transmute(result.unwrap_or(core::mem::zeroed()))).ok() + HcsWaitForProcessExit(computesystem, timeoutms, core::mem::transmute(result.unwrap_or(core::mem::zeroed()))).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs index d9ea64d155..6cfadb138b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn ApplyGuestMemoryFix(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, virtualaddress: u64, fixbuffer: *const core::ffi::c_void, fixbuffersize: u32) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ApplyGuestMemoryFix(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, virtualaddress : u64, fixbuffer : *const core::ffi::c_void, fixbuffersize : u32) -> windows_core::HRESULT); - ApplyGuestMemoryFix(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(virtualaddress), core::mem::transmute(fixbuffer), core::mem::transmute(fixbuffersize)).ok() + ApplyGuestMemoryFix(core::mem::transmute(vmsavedstatedumphandle), vpid, virtualaddress, fixbuffer, fixbuffersize).ok() } #[inline] pub unsafe fn ApplyPendingSavedStateFileReplayLog(vmrsfile: P0) -> windows_core::Result<()> @@ -14,7 +14,7 @@ where #[inline] pub unsafe fn CallStackUnwind(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, imageinfo: *const MODULE_INFO, imageinfocount: u32, framecount: u32, callstack: *mut windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn CallStackUnwind(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, imageinfo : *const MODULE_INFO, imageinfocount : u32, framecount : u32, callstack : *mut windows_core::PWSTR) -> windows_core::HRESULT); - CallStackUnwind(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(imageinfo), core::mem::transmute(imageinfocount), core::mem::transmute(framecount), core::mem::transmute(callstack)).ok() + CallStackUnwind(core::mem::transmute(vmsavedstatedumphandle), vpid, imageinfo, imageinfocount, framecount, core::mem::transmute(callstack)).ok() } #[inline] pub unsafe fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P2, fieldname: P3, offset: *mut u32, found: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> @@ -23,42 +23,42 @@ where P3: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, typename : windows_core::PCSTR, fieldname : windows_core::PCWSTR, offset : *mut u32, found : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - FindSavedStateSymbolFieldInType(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), typename.param().abi(), fieldname.param().abi(), core::mem::transmute(offset), core::mem::transmute(found)).ok() + FindSavedStateSymbolFieldInType(core::mem::transmute(vmsavedstatedumphandle), vpid, typename.param().abi(), fieldname.param().abi(), core::mem::transmute(offset), core::mem::transmute(found)).ok() } #[inline] pub unsafe fn ForceActiveVirtualTrustLevel(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, virtualtrustlevel: u8) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceActiveVirtualTrustLevel(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, virtualtrustlevel : u8) -> windows_core::HRESULT); - ForceActiveVirtualTrustLevel(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(virtualtrustlevel)).ok() + ForceActiveVirtualTrustLevel(core::mem::transmute(vmsavedstatedumphandle), vpid, virtualtrustlevel).ok() } #[inline] pub unsafe fn ForceArchitecture(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, architecture: VIRTUAL_PROCESSOR_ARCH) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceArchitecture(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, architecture : VIRTUAL_PROCESSOR_ARCH) -> windows_core::HRESULT); - ForceArchitecture(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(architecture)).ok() + ForceArchitecture(core::mem::transmute(vmsavedstatedumphandle), vpid, architecture).ok() } #[inline] pub unsafe fn ForceNestedHostMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, hostmode: bool, oldmode: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceNestedHostMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, hostmode : super::super::Foundation:: BOOL, oldmode : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - ForceNestedHostMode(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), hostmode.into(), core::mem::transmute(oldmode.unwrap_or(core::mem::zeroed()))).ok() + ForceNestedHostMode(core::mem::transmute(vmsavedstatedumphandle), vpid, hostmode.into(), core::mem::transmute(oldmode.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ForcePagingMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, pagingmode: PAGING_MODE) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForcePagingMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, pagingmode : PAGING_MODE) -> windows_core::HRESULT); - ForcePagingMode(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(pagingmode)).ok() + ForcePagingMode(core::mem::transmute(vmsavedstatedumphandle), vpid, pagingmode).ok() } #[inline] pub unsafe fn GetActiveVirtualTrustLevel(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, virtualtrustlevel: *mut u8) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetActiveVirtualTrustLevel(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, virtualtrustlevel : *mut u8) -> windows_core::HRESULT); - GetActiveVirtualTrustLevel(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(virtualtrustlevel)).ok() + GetActiveVirtualTrustLevel(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(virtualtrustlevel)).ok() } #[inline] pub unsafe fn GetArchitecture(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, architecture: *mut VIRTUAL_PROCESSOR_ARCH) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetArchitecture(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, architecture : *mut VIRTUAL_PROCESSOR_ARCH) -> windows_core::HRESULT); - GetArchitecture(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(architecture)).ok() + GetArchitecture(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(architecture)).ok() } #[inline] pub unsafe fn GetEnabledVirtualTrustLevels(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, virtualtrustlevels: *mut u32) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetEnabledVirtualTrustLevels(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, virtualtrustlevels : *mut u32) -> windows_core::HRESULT); - GetEnabledVirtualTrustLevels(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(virtualtrustlevels)).ok() + GetEnabledVirtualTrustLevels(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(virtualtrustlevels)).ok() } #[inline] pub unsafe fn GetGuestEnabledVirtualTrustLevels(vmsavedstatedumphandle: *mut core::ffi::c_void, virtualtrustlevels: *mut u32) -> windows_core::Result<()> { @@ -68,7 +68,7 @@ pub unsafe fn GetGuestEnabledVirtualTrustLevels(vmsavedstatedumphandle: *mut cor #[inline] pub unsafe fn GetGuestOsInfo(vmsavedstatedumphandle: *mut core::ffi::c_void, virtualtrustlevel: u8, guestosinfo: *mut GUEST_OS_INFO) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetGuestOsInfo(vmsavedstatedumphandle : *mut core::ffi::c_void, virtualtrustlevel : u8, guestosinfo : *mut GUEST_OS_INFO) -> windows_core::HRESULT); - GetGuestOsInfo(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(virtualtrustlevel), core::mem::transmute(guestosinfo)).ok() + GetGuestOsInfo(core::mem::transmute(vmsavedstatedumphandle), virtualtrustlevel, core::mem::transmute(guestosinfo)).ok() } #[inline] pub unsafe fn GetGuestPhysicalMemoryChunks(vmsavedstatedumphandle: *mut core::ffi::c_void, memorychunkpagesize: *mut u64, memorychunks: *mut GPA_MEMORY_CHUNK, memorychunkcount: *mut u64) -> windows_core::Result<()> { @@ -88,17 +88,17 @@ pub unsafe fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut core::ffi::c #[inline] pub unsafe fn GetNestedVirtualizationMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, enabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetNestedVirtualizationMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, enabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - GetNestedVirtualizationMode(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(enabled)).ok() + GetNestedVirtualizationMode(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(enabled)).ok() } #[inline] pub unsafe fn GetPagingMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, pagingmode: *mut PAGING_MODE) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetPagingMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, pagingmode : *mut PAGING_MODE) -> windows_core::HRESULT); - GetPagingMode(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(pagingmode)).ok() + GetPagingMode(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(pagingmode)).ok() } #[inline] pub unsafe fn GetRegisterValue(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, registerid: u32, registervalue: *mut VIRTUAL_PROCESSOR_REGISTER) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetRegisterValue(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, registerid : u32, registervalue : *mut VIRTUAL_PROCESSOR_REGISTER) -> windows_core::HRESULT); - GetRegisterValue(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(registerid), core::mem::transmute(registervalue)).ok() + GetRegisterValue(core::mem::transmute(vmsavedstatedumphandle), vpid, registerid, core::mem::transmute(registervalue)).ok() } #[inline] pub unsafe fn GetSavedStateSymbolFieldInfo(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P2, typefieldinfomap: *mut windows_core::PWSTR) -> windows_core::Result<()> @@ -106,7 +106,7 @@ where P2: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetSavedStateSymbolFieldInfo(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, typename : windows_core::PCSTR, typefieldinfomap : *mut windows_core::PWSTR) -> windows_core::HRESULT); - GetSavedStateSymbolFieldInfo(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), typename.param().abi(), core::mem::transmute(typefieldinfomap)).ok() + GetSavedStateSymbolFieldInfo(core::mem::transmute(vmsavedstatedumphandle), vpid, typename.param().abi(), core::mem::transmute(typefieldinfomap)).ok() } #[inline] pub unsafe fn GetSavedStateSymbolProviderHandle(vmsavedstatedumphandle: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { @@ -119,7 +119,7 @@ where P2: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetSavedStateSymbolTypeSize(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, typename : windows_core::PCSTR, size : *mut u32) -> windows_core::HRESULT); - GetSavedStateSymbolTypeSize(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), typename.param().abi(), core::mem::transmute(size)).ok() + GetSavedStateSymbolTypeSize(core::mem::transmute(vmsavedstatedumphandle), vpid, typename.param().abi(), core::mem::transmute(size)).ok() } #[inline] pub unsafe fn GetVpCount(vmsavedstatedumphandle: *mut core::ffi::c_void, vpcount: *mut u32) -> windows_core::Result<()> { @@ -129,89 +129,89 @@ pub unsafe fn GetVpCount(vmsavedstatedumphandle: *mut core::ffi::c_void, vpcount #[inline] pub unsafe fn GuestPhysicalAddressToRawSavedMemoryOffset(vmsavedstatedumphandle: *mut core::ffi::c_void, physicaladdress: u64, rawsavedmemoryoffset: *mut u64) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GuestPhysicalAddressToRawSavedMemoryOffset(vmsavedstatedumphandle : *mut core::ffi::c_void, physicaladdress : u64, rawsavedmemoryoffset : *mut u64) -> windows_core::HRESULT); - GuestPhysicalAddressToRawSavedMemoryOffset(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(physicaladdress), core::mem::transmute(rawsavedmemoryoffset)).ok() + GuestPhysicalAddressToRawSavedMemoryOffset(core::mem::transmute(vmsavedstatedumphandle), physicaladdress, core::mem::transmute(rawsavedmemoryoffset)).ok() } #[inline] pub unsafe fn GuestVirtualAddressToPhysicalAddress(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, virtualaddress: u64, physicaladdress: *mut u64, unmappedregionsize: Option<*mut u64>) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GuestVirtualAddressToPhysicalAddress(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, virtualaddress : u64, physicaladdress : *mut u64, unmappedregionsize : *mut u64) -> windows_core::HRESULT); - GuestVirtualAddressToPhysicalAddress(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress), core::mem::transmute(unmappedregionsize.unwrap_or(core::mem::zeroed()))).ok() + GuestVirtualAddressToPhysicalAddress(core::mem::transmute(vmsavedstatedumphandle), vpid, virtualaddress, core::mem::transmute(physicaladdress), core::mem::transmute(unmappedregionsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HdvCreateDeviceInstance(devicehosthandle: *const core::ffi::c_void, devicetype: HDV_DEVICE_TYPE, deviceclassid: *const windows_core::GUID, deviceinstanceid: *const windows_core::GUID, deviceinterface: *const core::ffi::c_void, devicecontext: Option<*const core::ffi::c_void>, devicehandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvCreateDeviceInstance(devicehosthandle : *const core::ffi::c_void, devicetype : HDV_DEVICE_TYPE, deviceclassid : *const windows_core::GUID, deviceinstanceid : *const windows_core::GUID, deviceinterface : *const core::ffi::c_void, devicecontext : *const core::ffi::c_void, devicehandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HdvCreateDeviceInstance(core::mem::transmute(devicehosthandle), core::mem::transmute(devicetype), core::mem::transmute(deviceclassid), core::mem::transmute(deviceinstanceid), core::mem::transmute(deviceinterface), core::mem::transmute(devicecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicehandle)).ok() + HdvCreateDeviceInstance(devicehosthandle, devicetype, deviceclassid, deviceinstanceid, deviceinterface, core::mem::transmute(devicecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicehandle)).ok() } #[inline] pub unsafe fn HdvCreateGuestMemoryAperture(requestor: *const core::ffi::c_void, guestphysicaladdress: u64, bytecount: u32, writeprotected: bool, mappedaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvCreateGuestMemoryAperture(requestor : *const core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, writeprotected : super::super::Foundation:: BOOL, mappedaddress : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HdvCreateGuestMemoryAperture(core::mem::transmute(requestor), core::mem::transmute(guestphysicaladdress), core::mem::transmute(bytecount), writeprotected.into(), core::mem::transmute(mappedaddress)).ok() + HdvCreateGuestMemoryAperture(requestor, guestphysicaladdress, bytecount, writeprotected.into(), core::mem::transmute(mappedaddress)).ok() } #[inline] pub unsafe fn HdvCreateSectionBackedMmioRange(requestor: *const core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offsetinpages: u64, lengthinpages: u64, mappingflags: HDV_MMIO_MAPPING_FLAGS, sectionhandle: super::super::Foundation::HANDLE, sectionoffsetinpages: u64) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvCreateSectionBackedMmioRange(requestor : *const core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, offsetinpages : u64, lengthinpages : u64, mappingflags : HDV_MMIO_MAPPING_FLAGS, sectionhandle : super::super::Foundation:: HANDLE, sectionoffsetinpages : u64) -> windows_core::HRESULT); - HdvCreateSectionBackedMmioRange(core::mem::transmute(requestor), core::mem::transmute(barindex), core::mem::transmute(offsetinpages), core::mem::transmute(lengthinpages), core::mem::transmute(mappingflags), core::mem::transmute(sectionhandle), core::mem::transmute(sectionoffsetinpages)).ok() + HdvCreateSectionBackedMmioRange(requestor, barindex, offsetinpages, lengthinpages, mappingflags, sectionhandle, sectionoffsetinpages).ok() } #[inline] pub unsafe fn HdvDeliverGuestInterrupt(requestor: *const core::ffi::c_void, msiaddress: u64, msidata: u32) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvDeliverGuestInterrupt(requestor : *const core::ffi::c_void, msiaddress : u64, msidata : u32) -> windows_core::HRESULT); - HdvDeliverGuestInterrupt(core::mem::transmute(requestor), core::mem::transmute(msiaddress), core::mem::transmute(msidata)).ok() + HdvDeliverGuestInterrupt(requestor, msiaddress, msidata).ok() } #[inline] pub unsafe fn HdvDestroyGuestMemoryAperture(requestor: *const core::ffi::c_void, mappedaddress: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvDestroyGuestMemoryAperture(requestor : *const core::ffi::c_void, mappedaddress : *const core::ffi::c_void) -> windows_core::HRESULT); - HdvDestroyGuestMemoryAperture(core::mem::transmute(requestor), core::mem::transmute(mappedaddress)).ok() + HdvDestroyGuestMemoryAperture(requestor, mappedaddress).ok() } #[inline] pub unsafe fn HdvDestroySectionBackedMmioRange(requestor: *const core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offsetinpages: u64) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvDestroySectionBackedMmioRange(requestor : *const core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, offsetinpages : u64) -> windows_core::HRESULT); - HdvDestroySectionBackedMmioRange(core::mem::transmute(requestor), core::mem::transmute(barindex), core::mem::transmute(offsetinpages)).ok() + HdvDestroySectionBackedMmioRange(requestor, barindex, offsetinpages).ok() } #[cfg(feature = "Win32_System_HostComputeSystem")] #[inline] pub unsafe fn HdvInitializeDeviceHost(computesystem: super::HostComputeSystem::HCS_SYSTEM, devicehosthandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvInitializeDeviceHost(computesystem : super::HostComputeSystem:: HCS_SYSTEM, devicehosthandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HdvInitializeDeviceHost(core::mem::transmute(computesystem), core::mem::transmute(devicehosthandle)).ok() + HdvInitializeDeviceHost(computesystem, core::mem::transmute(devicehosthandle)).ok() } #[cfg(feature = "Win32_System_HostComputeSystem")] #[inline] pub unsafe fn HdvInitializeDeviceHostEx(computesystem: super::HostComputeSystem::HCS_SYSTEM, flags: HDV_DEVICE_HOST_FLAGS, devicehosthandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvInitializeDeviceHostEx(computesystem : super::HostComputeSystem:: HCS_SYSTEM, flags : HDV_DEVICE_HOST_FLAGS, devicehosthandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HdvInitializeDeviceHostEx(core::mem::transmute(computesystem), core::mem::transmute(flags), core::mem::transmute(devicehosthandle)).ok() + HdvInitializeDeviceHostEx(computesystem, flags, core::mem::transmute(devicehosthandle)).ok() } #[inline] pub unsafe fn HdvReadGuestMemory(requestor: *const core::ffi::c_void, guestphysicaladdress: u64, buffer: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvReadGuestMemory(requestor : *const core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, buffer : *mut u8) -> windows_core::HRESULT); - HdvReadGuestMemory(core::mem::transmute(requestor), core::mem::transmute(guestphysicaladdress), buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr())).ok() + HdvReadGuestMemory(requestor, guestphysicaladdress, buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr())).ok() } #[inline] pub unsafe fn HdvRegisterDoorbell(requestor: *const core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, baroffset: u64, triggervalue: u64, flags: u64, doorbellevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvRegisterDoorbell(requestor : *const core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, baroffset : u64, triggervalue : u64, flags : u64, doorbellevent : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HdvRegisterDoorbell(core::mem::transmute(requestor), core::mem::transmute(barindex), core::mem::transmute(baroffset), core::mem::transmute(triggervalue), core::mem::transmute(flags), core::mem::transmute(doorbellevent)).ok() + HdvRegisterDoorbell(requestor, barindex, baroffset, triggervalue, flags, doorbellevent).ok() } #[inline] pub unsafe fn HdvTeardownDeviceHost(devicehosthandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvTeardownDeviceHost(devicehosthandle : *const core::ffi::c_void) -> windows_core::HRESULT); - HdvTeardownDeviceHost(core::mem::transmute(devicehosthandle)).ok() + HdvTeardownDeviceHost(devicehosthandle).ok() } #[inline] pub unsafe fn HdvUnregisterDoorbell(requestor: *const core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, baroffset: u64, triggervalue: u64, flags: u64) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvUnregisterDoorbell(requestor : *const core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, baroffset : u64, triggervalue : u64, flags : u64) -> windows_core::HRESULT); - HdvUnregisterDoorbell(core::mem::transmute(requestor), core::mem::transmute(barindex), core::mem::transmute(baroffset), core::mem::transmute(triggervalue), core::mem::transmute(flags)).ok() + HdvUnregisterDoorbell(requestor, barindex, baroffset, triggervalue, flags).ok() } #[inline] pub unsafe fn HdvWriteGuestMemory(requestor: *const core::ffi::c_void, guestphysicaladdress: u64, buffer: &[u8]) -> windows_core::Result<()> { windows_targets::link!("vmdevicehost.dll" "system" fn HdvWriteGuestMemory(requestor : *const core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, buffer : *const u8) -> windows_core::HRESULT); - HdvWriteGuestMemory(core::mem::transmute(requestor), core::mem::transmute(guestphysicaladdress), buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr())).ok() + HdvWriteGuestMemory(requestor, guestphysicaladdress, buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr())).ok() } #[inline] pub unsafe fn InKernelSpace(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, inkernelspace: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn InKernelSpace(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, inkernelspace : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - InKernelSpace(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(inkernelspace)).ok() + InKernelSpace(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(inkernelspace)).ok() } #[inline] pub unsafe fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, activevirtualtrustlevelenabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, activevirtualtrustlevelenabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - IsActiveVirtualTrustLevelEnabled(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(activevirtualtrustlevelenabled)).ok() + IsActiveVirtualTrustLevelEnabled(core::mem::transmute(vmsavedstatedumphandle), vpid, core::mem::transmute(activevirtualtrustlevelenabled)).ok() } #[inline] pub unsafe fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { @@ -242,7 +242,7 @@ where P2: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateModuleSymbols(vmsavedstatedumphandle : *mut core::ffi::c_void, imagename : windows_core::PCSTR, modulename : windows_core::PCSTR, baseaddress : u64, sizeofbase : u32) -> windows_core::HRESULT); - LoadSavedStateModuleSymbols(core::mem::transmute(vmsavedstatedumphandle), imagename.param().abi(), modulename.param().abi(), core::mem::transmute(baseaddress), core::mem::transmute(sizeofbase)).ok() + LoadSavedStateModuleSymbols(core::mem::transmute(vmsavedstatedumphandle), imagename.param().abi(), modulename.param().abi(), baseaddress, sizeofbase).ok() } #[inline] pub unsafe fn LoadSavedStateModuleSymbolsEx(vmsavedstatedumphandle: *mut core::ffi::c_void, imagename: P1, imagetimestamp: u32, modulename: P3, baseaddress: u64, sizeofbase: u32) -> windows_core::Result<()> @@ -251,7 +251,7 @@ where P3: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateModuleSymbolsEx(vmsavedstatedumphandle : *mut core::ffi::c_void, imagename : windows_core::PCSTR, imagetimestamp : u32, modulename : windows_core::PCSTR, baseaddress : u64, sizeofbase : u32) -> windows_core::HRESULT); - LoadSavedStateModuleSymbolsEx(core::mem::transmute(vmsavedstatedumphandle), imagename.param().abi(), core::mem::transmute(imagetimestamp), modulename.param().abi(), core::mem::transmute(baseaddress), core::mem::transmute(sizeofbase)).ok() + LoadSavedStateModuleSymbolsEx(core::mem::transmute(vmsavedstatedumphandle), imagename.param().abi(), imagetimestamp, modulename.param().abi(), baseaddress, sizeofbase).ok() } #[inline] pub unsafe fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle: *mut core::ffi::c_void, usersymbols: P1, force: bool) -> windows_core::Result<()> @@ -273,12 +273,12 @@ where #[inline] pub unsafe fn ReadGuestPhysicalAddress(vmsavedstatedumphandle: *mut core::ffi::c_void, physicaladdress: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReadGuestPhysicalAddress(vmsavedstatedumphandle : *mut core::ffi::c_void, physicaladdress : u64, buffer : *mut core::ffi::c_void, buffersize : u32, bytesread : *mut u32) -> windows_core::HRESULT); - ReadGuestPhysicalAddress(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(physicaladdress), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + ReadGuestPhysicalAddress(core::mem::transmute(vmsavedstatedumphandle), physicaladdress, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReadGuestRawSavedMemory(vmsavedstatedumphandle: *mut core::ffi::c_void, rawsavedmemoryoffset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReadGuestRawSavedMemory(vmsavedstatedumphandle : *mut core::ffi::c_void, rawsavedmemoryoffset : u64, buffer : *mut core::ffi::c_void, buffersize : u32, bytesread : *mut u32) -> windows_core::HRESULT); - ReadGuestRawSavedMemory(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(rawsavedmemoryoffset), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() + ReadGuestRawSavedMemory(core::mem::transmute(vmsavedstatedumphandle), rawsavedmemoryoffset, core::mem::transmute(buffer), buffersize, core::mem::transmute(bytesread.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReadSavedStateGlobalVariable(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, globalname: P2, buffer: *mut core::ffi::c_void, buffersize: u32) -> windows_core::Result<()> @@ -286,7 +286,7 @@ where P2: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReadSavedStateGlobalVariable(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, globalname : windows_core::PCSTR, buffer : *mut core::ffi::c_void, buffersize : u32) -> windows_core::HRESULT); - ReadSavedStateGlobalVariable(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), globalname.param().abi(), core::mem::transmute(buffer), core::mem::transmute(buffersize)).ok() + ReadSavedStateGlobalVariable(core::mem::transmute(vmsavedstatedumphandle), vpid, globalname.param().abi(), core::mem::transmute(buffer), buffersize).ok() } #[inline] pub unsafe fn ReleaseSavedStateFiles(vmsavedstatedumphandle: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -304,59 +304,59 @@ where P2: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ResolveSavedStateGlobalVariableAddress(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, globalname : windows_core::PCSTR, virtualaddress : *mut u64, size : *mut u32) -> windows_core::HRESULT); - ResolveSavedStateGlobalVariableAddress(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), globalname.param().abi(), core::mem::transmute(virtualaddress), core::mem::transmute(size.unwrap_or(core::mem::zeroed()))).ok() + ResolveSavedStateGlobalVariableAddress(core::mem::transmute(vmsavedstatedumphandle), vpid, globalname.param().abi(), core::mem::transmute(virtualaddress), core::mem::transmute(size.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ScanMemoryForDosImages(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, startaddress: u64, endaddress: u64, callbackcontext: *mut core::ffi::c_void, foundimagecallback: FOUND_IMAGE_CALLBACK, standaloneaddress: *const u64, standaloneaddresscount: u32) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ScanMemoryForDosImages(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, startaddress : u64, endaddress : u64, callbackcontext : *mut core::ffi::c_void, foundimagecallback : FOUND_IMAGE_CALLBACK, standaloneaddress : *const u64, standaloneaddresscount : u32) -> windows_core::HRESULT); - ScanMemoryForDosImages(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(vpid), core::mem::transmute(startaddress), core::mem::transmute(endaddress), core::mem::transmute(callbackcontext), core::mem::transmute(foundimagecallback), core::mem::transmute(standaloneaddress), core::mem::transmute(standaloneaddresscount)).ok() + ScanMemoryForDosImages(core::mem::transmute(vmsavedstatedumphandle), vpid, startaddress, endaddress, core::mem::transmute(callbackcontext), foundimagecallback, standaloneaddress, standaloneaddresscount).ok() } #[inline] pub unsafe fn SetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut core::ffi::c_void, memoryblockcachelimit: u64) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn SetMemoryBlockCacheLimit(vmsavedstatedumphandle : *mut core::ffi::c_void, memoryblockcachelimit : u64) -> windows_core::HRESULT); - SetMemoryBlockCacheLimit(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(memoryblockcachelimit)).ok() + SetMemoryBlockCacheLimit(core::mem::transmute(vmsavedstatedumphandle), memoryblockcachelimit).ok() } #[inline] pub unsafe fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut core::ffi::c_void, callback: GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> windows_core::Result<()> { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle : *mut core::ffi::c_void, callback : GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> windows_core::HRESULT); - SetSavedStateSymbolProviderDebugInfoCallback(core::mem::transmute(vmsavedstatedumphandle), core::mem::transmute(callback)).ok() + SetSavedStateSymbolProviderDebugInfoCallback(core::mem::transmute(vmsavedstatedumphandle), callback).ok() } #[inline] pub unsafe fn WHvAcceptPartitionMigration(migrationhandle: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("winhvplatform.dll" "system" fn WHvAcceptPartitionMigration(migrationhandle : super::super::Foundation:: HANDLE, partition : *mut WHV_PARTITION_HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvAcceptPartitionMigration(core::mem::transmute(migrationhandle), &mut result__).map(|| core::mem::transmute(result__)) + WHvAcceptPartitionMigration(migrationhandle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvAdviseGpaRange(partition: WHV_PARTITION_HANDLE, gparanges: &[WHV_MEMORY_RANGE_ENTRY], advice: WHV_ADVISE_GPA_RANGE_CODE, advicebuffer: *const core::ffi::c_void, advicebuffersizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvAdviseGpaRange(partition : WHV_PARTITION_HANDLE, gparanges : *const WHV_MEMORY_RANGE_ENTRY, gparangescount : u32, advice : WHV_ADVISE_GPA_RANGE_CODE, advicebuffer : *const core::ffi::c_void, advicebuffersizeinbytes : u32) -> windows_core::HRESULT); - WHvAdviseGpaRange(core::mem::transmute(partition), core::mem::transmute(gparanges.as_ptr()), gparanges.len().try_into().unwrap(), core::mem::transmute(advice), core::mem::transmute(advicebuffer), core::mem::transmute(advicebuffersizeinbytes)).ok() + WHvAdviseGpaRange(partition, core::mem::transmute(gparanges.as_ptr()), gparanges.len().try_into().unwrap(), advice, advicebuffer, advicebuffersizeinbytes).ok() } #[inline] pub unsafe fn WHvAllocateVpciResource(providerid: Option<*const windows_core::GUID>, flags: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, resourcedescriptor: Option<&[u8]>) -> windows_core::Result { windows_targets::link!("winhvplatform.dll" "system" fn WHvAllocateVpciResource(providerid : *const windows_core::GUID, flags : WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, resourcedescriptor : *const core::ffi::c_void, resourcedescriptorsizeinbytes : u32, vpciresource : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvAllocateVpciResource(core::mem::transmute(providerid.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(resourcedescriptor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), resourcedescriptor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) + WHvAllocateVpciResource(core::mem::transmute(providerid.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(resourcedescriptor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), resourcedescriptor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvCancelPartitionMigration(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCancelPartitionMigration(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvCancelPartitionMigration(core::mem::transmute(partition)).ok() + WHvCancelPartitionMigration(partition).ok() } #[inline] pub unsafe fn WHvCancelRunVirtualProcessor(partition: WHV_PARTITION_HANDLE, vpindex: u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCancelRunVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, flags : u32) -> windows_core::HRESULT); - WHvCancelRunVirtualProcessor(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(flags)).ok() + WHvCancelRunVirtualProcessor(partition, vpindex, flags).ok() } #[inline] pub unsafe fn WHvCompletePartitionMigration(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCompletePartitionMigration(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvCompletePartitionMigration(core::mem::transmute(partition)).ok() + WHvCompletePartitionMigration(partition).ok() } #[inline] pub unsafe fn WHvCreateNotificationPort(partition: WHV_PARTITION_HANDLE, parameters: *const WHV_NOTIFICATION_PORT_PARAMETERS, eventhandle: super::super::Foundation::HANDLE, porthandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateNotificationPort(partition : WHV_PARTITION_HANDLE, parameters : *const WHV_NOTIFICATION_PORT_PARAMETERS, eventhandle : super::super::Foundation:: HANDLE, porthandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - WHvCreateNotificationPort(core::mem::transmute(partition), core::mem::transmute(parameters), core::mem::transmute(eventhandle), core::mem::transmute(porthandle)).ok() + WHvCreateNotificationPort(partition, parameters, eventhandle, core::mem::transmute(porthandle)).ok() } #[inline] pub unsafe fn WHvCreatePartition() -> windows_core::Result { @@ -367,318 +367,318 @@ pub unsafe fn WHvCreatePartition() -> windows_core::Result #[inline] pub unsafe fn WHvCreateTrigger(partition: WHV_PARTITION_HANDLE, parameters: *const WHV_TRIGGER_PARAMETERS, triggerhandle: *mut *mut core::ffi::c_void, eventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateTrigger(partition : WHV_PARTITION_HANDLE, parameters : *const WHV_TRIGGER_PARAMETERS, triggerhandle : *mut *mut core::ffi::c_void, eventhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WHvCreateTrigger(core::mem::transmute(partition), core::mem::transmute(parameters), core::mem::transmute(triggerhandle), core::mem::transmute(eventhandle)).ok() + WHvCreateTrigger(partition, parameters, core::mem::transmute(triggerhandle), core::mem::transmute(eventhandle)).ok() } #[inline] pub unsafe fn WHvCreateVirtualProcessor(partition: WHV_PARTITION_HANDLE, vpindex: u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, flags : u32) -> windows_core::HRESULT); - WHvCreateVirtualProcessor(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(flags)).ok() + WHvCreateVirtualProcessor(partition, vpindex, flags).ok() } #[inline] pub unsafe fn WHvCreateVirtualProcessor2(partition: WHV_PARTITION_HANDLE, vpindex: u32, properties: &[WHV_VIRTUAL_PROCESSOR_PROPERTY]) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateVirtualProcessor2(partition : WHV_PARTITION_HANDLE, vpindex : u32, properties : *const WHV_VIRTUAL_PROCESSOR_PROPERTY, propertycount : u32) -> windows_core::HRESULT); - WHvCreateVirtualProcessor2(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() + WHvCreateVirtualProcessor2(partition, vpindex, core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn WHvCreateVpciDevice(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, vpciresource: super::super::Foundation::HANDLE, flags: WHV_CREATE_VPCI_DEVICE_FLAGS, notificationeventhandle: Option) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateVpciDevice(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, vpciresource : super::super::Foundation:: HANDLE, flags : WHV_CREATE_VPCI_DEVICE_FLAGS, notificationeventhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WHvCreateVpciDevice(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(vpciresource), core::mem::transmute(flags), core::mem::transmute(notificationeventhandle.unwrap_or(core::mem::zeroed()))).ok() + WHvCreateVpciDevice(partition, logicaldeviceid, vpciresource, flags, core::mem::transmute(notificationeventhandle.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvDeleteNotificationPort(partition: WHV_PARTITION_HANDLE, porthandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteNotificationPort(partition : WHV_PARTITION_HANDLE, porthandle : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvDeleteNotificationPort(core::mem::transmute(partition), core::mem::transmute(porthandle)).ok() + WHvDeleteNotificationPort(partition, porthandle).ok() } #[inline] pub unsafe fn WHvDeletePartition(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeletePartition(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvDeletePartition(core::mem::transmute(partition)).ok() + WHvDeletePartition(partition).ok() } #[inline] pub unsafe fn WHvDeleteTrigger(partition: WHV_PARTITION_HANDLE, triggerhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteTrigger(partition : WHV_PARTITION_HANDLE, triggerhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvDeleteTrigger(core::mem::transmute(partition), core::mem::transmute(triggerhandle)).ok() + WHvDeleteTrigger(partition, triggerhandle).ok() } #[inline] pub unsafe fn WHvDeleteVirtualProcessor(partition: WHV_PARTITION_HANDLE, vpindex: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32) -> windows_core::HRESULT); - WHvDeleteVirtualProcessor(core::mem::transmute(partition), core::mem::transmute(vpindex)).ok() + WHvDeleteVirtualProcessor(partition, vpindex).ok() } #[inline] pub unsafe fn WHvDeleteVpciDevice(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteVpciDevice(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64) -> windows_core::HRESULT); - WHvDeleteVpciDevice(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid)).ok() + WHvDeleteVpciDevice(partition, logicaldeviceid).ok() } #[inline] pub unsafe fn WHvEmulatorCreateEmulator(callbacks: *const WHV_EMULATOR_CALLBACKS, emulator: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorCreateEmulator(callbacks : *const WHV_EMULATOR_CALLBACKS, emulator : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - WHvEmulatorCreateEmulator(core::mem::transmute(callbacks), core::mem::transmute(emulator)).ok() + WHvEmulatorCreateEmulator(callbacks, core::mem::transmute(emulator)).ok() } #[inline] pub unsafe fn WHvEmulatorDestroyEmulator(emulator: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorDestroyEmulator(emulator : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvEmulatorDestroyEmulator(core::mem::transmute(emulator)).ok() + WHvEmulatorDestroyEmulator(emulator).ok() } #[inline] pub unsafe fn WHvEmulatorTryIoEmulation(emulator: *const core::ffi::c_void, context: *const core::ffi::c_void, vpcontext: *const WHV_VP_EXIT_CONTEXT, ioinstructioncontext: *const WHV_X64_IO_PORT_ACCESS_CONTEXT) -> windows_core::Result { windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorTryIoEmulation(emulator : *const core::ffi::c_void, context : *const core::ffi::c_void, vpcontext : *const WHV_VP_EXIT_CONTEXT, ioinstructioncontext : *const WHV_X64_IO_PORT_ACCESS_CONTEXT, emulatorreturnstatus : *mut WHV_EMULATOR_STATUS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvEmulatorTryIoEmulation(core::mem::transmute(emulator), core::mem::transmute(context), core::mem::transmute(vpcontext), core::mem::transmute(ioinstructioncontext), &mut result__).map(|| core::mem::transmute(result__)) + WHvEmulatorTryIoEmulation(emulator, context, vpcontext, ioinstructioncontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvEmulatorTryMmioEmulation(emulator: *const core::ffi::c_void, context: *const core::ffi::c_void, vpcontext: *const WHV_VP_EXIT_CONTEXT, mmioinstructioncontext: *const WHV_MEMORY_ACCESS_CONTEXT) -> windows_core::Result { windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorTryMmioEmulation(emulator : *const core::ffi::c_void, context : *const core::ffi::c_void, vpcontext : *const WHV_VP_EXIT_CONTEXT, mmioinstructioncontext : *const WHV_MEMORY_ACCESS_CONTEXT, emulatorreturnstatus : *mut WHV_EMULATOR_STATUS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvEmulatorTryMmioEmulation(core::mem::transmute(emulator), core::mem::transmute(context), core::mem::transmute(vpcontext), core::mem::transmute(mmioinstructioncontext), &mut result__).map(|| core::mem::transmute(result__)) + WHvEmulatorTryMmioEmulation(emulator, context, vpcontext, mmioinstructioncontext, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvGetCapability(capabilitycode: WHV_CAPABILITY_CODE, capabilitybuffer: *mut core::ffi::c_void, capabilitybuffersizeinbytes: u32, writtensizeinbytes: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetCapability(capabilitycode : WHV_CAPABILITY_CODE, capabilitybuffer : *mut core::ffi::c_void, capabilitybuffersizeinbytes : u32, writtensizeinbytes : *mut u32) -> windows_core::HRESULT); - WHvGetCapability(core::mem::transmute(capabilitycode), core::mem::transmute(capabilitybuffer), core::mem::transmute(capabilitybuffersizeinbytes), core::mem::transmute(writtensizeinbytes.unwrap_or(core::mem::zeroed()))).ok() + WHvGetCapability(capabilitycode, core::mem::transmute(capabilitybuffer), capabilitybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetInterruptTargetVpSet(partition: WHV_PARTITION_HANDLE, destination: u64, destinationmode: WHV_INTERRUPT_DESTINATION_MODE, targetvps: &mut [u32], targetvpcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetInterruptTargetVpSet(partition : WHV_PARTITION_HANDLE, destination : u64, destinationmode : WHV_INTERRUPT_DESTINATION_MODE, targetvps : *mut u32, vpcount : u32, targetvpcount : *mut u32) -> windows_core::HRESULT); - WHvGetInterruptTargetVpSet(core::mem::transmute(partition), core::mem::transmute(destination), core::mem::transmute(destinationmode), core::mem::transmute(targetvps.as_ptr()), targetvps.len().try_into().unwrap(), core::mem::transmute(targetvpcount)).ok() + WHvGetInterruptTargetVpSet(partition, destination, destinationmode, core::mem::transmute(targetvps.as_ptr()), targetvps.len().try_into().unwrap(), core::mem::transmute(targetvpcount)).ok() } #[inline] pub unsafe fn WHvGetPartitionCounters(partition: WHV_PARTITION_HANDLE, counterset: WHV_PARTITION_COUNTER_SET, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetPartitionCounters(partition : WHV_PARTITION_HANDLE, counterset : WHV_PARTITION_COUNTER_SET, buffer : *mut core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> windows_core::HRESULT); - WHvGetPartitionCounters(core::mem::transmute(partition), core::mem::transmute(counterset), core::mem::transmute(buffer), core::mem::transmute(buffersizeinbytes), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + WHvGetPartitionCounters(partition, counterset, core::mem::transmute(buffer), buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetPartitionProperty(partition: WHV_PARTITION_HANDLE, propertycode: WHV_PARTITION_PROPERTY_CODE, propertybuffer: *mut core::ffi::c_void, propertybuffersizeinbytes: u32, writtensizeinbytes: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetPartitionProperty(partition : WHV_PARTITION_HANDLE, propertycode : WHV_PARTITION_PROPERTY_CODE, propertybuffer : *mut core::ffi::c_void, propertybuffersizeinbytes : u32, writtensizeinbytes : *mut u32) -> windows_core::HRESULT); - WHvGetPartitionProperty(core::mem::transmute(partition), core::mem::transmute(propertycode), core::mem::transmute(propertybuffer), core::mem::transmute(propertybuffersizeinbytes), core::mem::transmute(writtensizeinbytes.unwrap_or(core::mem::zeroed()))).ok() + WHvGetPartitionProperty(partition, propertycode, core::mem::transmute(propertybuffer), propertybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorCounters(partition: WHV_PARTITION_HANDLE, vpindex: u32, counterset: WHV_PROCESSOR_COUNTER_SET, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorCounters(partition : WHV_PARTITION_HANDLE, vpindex : u32, counterset : WHV_PROCESSOR_COUNTER_SET, buffer : *mut core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> windows_core::HRESULT); - WHvGetVirtualProcessorCounters(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(counterset), core::mem::transmute(buffer), core::mem::transmute(buffersizeinbytes), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + WHvGetVirtualProcessorCounters(partition, vpindex, counterset, core::mem::transmute(buffer), buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorCpuidOutput(partition: WHV_PARTITION_HANDLE, vpindex: u32, eax: u32, ecx: u32) -> windows_core::Result { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorCpuidOutput(partition : WHV_PARTITION_HANDLE, vpindex : u32, eax : u32, ecx : u32, cpuidoutput : *mut WHV_CPUID_OUTPUT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvGetVirtualProcessorCpuidOutput(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(eax), core::mem::transmute(ecx), &mut result__).map(|| core::mem::transmute(result__)) + WHvGetVirtualProcessorCpuidOutput(partition, vpindex, eax, ecx, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvGetVirtualProcessorInterruptControllerState(partition: WHV_PARTITION_HANDLE, vpindex: u32, state: *mut core::ffi::c_void, statesize: u32, writtensize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorInterruptControllerState(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *mut core::ffi::c_void, statesize : u32, writtensize : *mut u32) -> windows_core::HRESULT); - WHvGetVirtualProcessorInterruptControllerState(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(state), core::mem::transmute(statesize), core::mem::transmute(writtensize.unwrap_or(core::mem::zeroed()))).ok() + WHvGetVirtualProcessorInterruptControllerState(partition, vpindex, core::mem::transmute(state), statesize, core::mem::transmute(writtensize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorInterruptControllerState2(partition: WHV_PARTITION_HANDLE, vpindex: u32, state: *mut core::ffi::c_void, statesize: u32, writtensize: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorInterruptControllerState2(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *mut core::ffi::c_void, statesize : u32, writtensize : *mut u32) -> windows_core::HRESULT); - WHvGetVirtualProcessorInterruptControllerState2(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(state), core::mem::transmute(statesize), core::mem::transmute(writtensize.unwrap_or(core::mem::zeroed()))).ok() + WHvGetVirtualProcessorInterruptControllerState2(partition, vpindex, core::mem::transmute(state), statesize, core::mem::transmute(writtensize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorRegisters(partition: WHV_PARTITION_HANDLE, vpindex: u32, registernames: *const WHV_REGISTER_NAME, registercount: u32) -> windows_core::Result { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorRegisters(partition : WHV_PARTITION_HANDLE, vpindex : u32, registernames : *const WHV_REGISTER_NAME, registercount : u32, registervalues : *mut WHV_REGISTER_VALUE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvGetVirtualProcessorRegisters(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(registernames), core::mem::transmute(registercount), &mut result__).map(|| core::mem::transmute(result__)) + WHvGetVirtualProcessorRegisters(partition, vpindex, registernames, registercount, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvGetVirtualProcessorState(partition: WHV_PARTITION_HANDLE, vpindex: u32, statetype: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorState(partition : WHV_PARTITION_HANDLE, vpindex : u32, statetype : WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer : *mut core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> windows_core::HRESULT); - WHvGetVirtualProcessorState(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(statetype), core::mem::transmute(buffer), core::mem::transmute(buffersizeinbytes), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + WHvGetVirtualProcessorState(partition, vpindex, statetype, core::mem::transmute(buffer), buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorXsaveState(partition: WHV_PARTITION_HANDLE, vpindex: u32, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorXsaveState(partition : WHV_PARTITION_HANDLE, vpindex : u32, buffer : *mut core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> windows_core::HRESULT); - WHvGetVirtualProcessorXsaveState(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(buffer), core::mem::transmute(buffersizeinbytes), core::mem::transmute(byteswritten)).ok() + WHvGetVirtualProcessorXsaveState(partition, vpindex, core::mem::transmute(buffer), buffersizeinbytes, core::mem::transmute(byteswritten)).ok() } #[inline] pub unsafe fn WHvGetVpciDeviceInterruptTarget(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, index: u32, multimessagenumber: u32, target: *mut WHV_VPCI_INTERRUPT_TARGET, targetsizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVpciDeviceInterruptTarget(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32, multimessagenumber : u32, target : *mut WHV_VPCI_INTERRUPT_TARGET, targetsizeinbytes : u32, byteswritten : *mut u32) -> windows_core::HRESULT); - WHvGetVpciDeviceInterruptTarget(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(index), core::mem::transmute(multimessagenumber), core::mem::transmute(target), core::mem::transmute(targetsizeinbytes), core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() + WHvGetVpciDeviceInterruptTarget(partition, logicaldeviceid, index, multimessagenumber, core::mem::transmute(target), targetsizeinbytes, core::mem::transmute(byteswritten.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvGetVpciDeviceNotification(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, notification: *mut WHV_VPCI_DEVICE_NOTIFICATION, notificationsizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVpciDeviceNotification(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, notification : *mut WHV_VPCI_DEVICE_NOTIFICATION, notificationsizeinbytes : u32) -> windows_core::HRESULT); - WHvGetVpciDeviceNotification(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(notification), core::mem::transmute(notificationsizeinbytes)).ok() + WHvGetVpciDeviceNotification(partition, logicaldeviceid, core::mem::transmute(notification), notificationsizeinbytes).ok() } #[inline] pub unsafe fn WHvGetVpciDeviceProperty(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, propertycode: WHV_VPCI_DEVICE_PROPERTY_CODE, propertybuffer: *mut core::ffi::c_void, propertybuffersizeinbytes: u32, writtensizeinbytes: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVpciDeviceProperty(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, propertycode : WHV_VPCI_DEVICE_PROPERTY_CODE, propertybuffer : *mut core::ffi::c_void, propertybuffersizeinbytes : u32, writtensizeinbytes : *mut u32) -> windows_core::HRESULT); - WHvGetVpciDeviceProperty(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(propertycode), core::mem::transmute(propertybuffer), core::mem::transmute(propertybuffersizeinbytes), core::mem::transmute(writtensizeinbytes.unwrap_or(core::mem::zeroed()))).ok() + WHvGetVpciDeviceProperty(partition, logicaldeviceid, propertycode, core::mem::transmute(propertybuffer), propertybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvMapGpaRange(partition: WHV_PARTITION_HANDLE, sourceaddress: *const core::ffi::c_void, guestaddress: u64, sizeinbytes: u64, flags: WHV_MAP_GPA_RANGE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvMapGpaRange(partition : WHV_PARTITION_HANDLE, sourceaddress : *const core::ffi::c_void, guestaddress : u64, sizeinbytes : u64, flags : WHV_MAP_GPA_RANGE_FLAGS) -> windows_core::HRESULT); - WHvMapGpaRange(core::mem::transmute(partition), core::mem::transmute(sourceaddress), core::mem::transmute(guestaddress), core::mem::transmute(sizeinbytes), core::mem::transmute(flags)).ok() + WHvMapGpaRange(partition, sourceaddress, guestaddress, sizeinbytes, flags).ok() } #[inline] pub unsafe fn WHvMapGpaRange2(partition: WHV_PARTITION_HANDLE, process: super::super::Foundation::HANDLE, sourceaddress: *const core::ffi::c_void, guestaddress: u64, sizeinbytes: u64, flags: WHV_MAP_GPA_RANGE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvMapGpaRange2(partition : WHV_PARTITION_HANDLE, process : super::super::Foundation:: HANDLE, sourceaddress : *const core::ffi::c_void, guestaddress : u64, sizeinbytes : u64, flags : WHV_MAP_GPA_RANGE_FLAGS) -> windows_core::HRESULT); - WHvMapGpaRange2(core::mem::transmute(partition), core::mem::transmute(process), core::mem::transmute(sourceaddress), core::mem::transmute(guestaddress), core::mem::transmute(sizeinbytes), core::mem::transmute(flags)).ok() + WHvMapGpaRange2(partition, process, sourceaddress, guestaddress, sizeinbytes, flags).ok() } #[inline] pub unsafe fn WHvMapVpciDeviceInterrupt(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, index: u32, messagecount: u32, target: *const WHV_VPCI_INTERRUPT_TARGET, msiaddress: *mut u64, msidata: *mut u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvMapVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32, messagecount : u32, target : *const WHV_VPCI_INTERRUPT_TARGET, msiaddress : *mut u64, msidata : *mut u32) -> windows_core::HRESULT); - WHvMapVpciDeviceInterrupt(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(index), core::mem::transmute(messagecount), core::mem::transmute(target), core::mem::transmute(msiaddress), core::mem::transmute(msidata)).ok() + WHvMapVpciDeviceInterrupt(partition, logicaldeviceid, index, messagecount, target, core::mem::transmute(msiaddress), core::mem::transmute(msidata)).ok() } #[inline] pub unsafe fn WHvMapVpciDeviceMmioRanges(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, mappingcount: *mut u32, mappings: *mut *mut WHV_VPCI_MMIO_MAPPING) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvMapVpciDeviceMmioRanges(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, mappingcount : *mut u32, mappings : *mut *mut WHV_VPCI_MMIO_MAPPING) -> windows_core::HRESULT); - WHvMapVpciDeviceMmioRanges(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(mappingcount), core::mem::transmute(mappings)).ok() + WHvMapVpciDeviceMmioRanges(partition, logicaldeviceid, core::mem::transmute(mappingcount), core::mem::transmute(mappings)).ok() } #[inline] pub unsafe fn WHvPostVirtualProcessorSynicMessage(partition: WHV_PARTITION_HANDLE, vpindex: u32, sintindex: u32, message: *const core::ffi::c_void, messagesizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvPostVirtualProcessorSynicMessage(partition : WHV_PARTITION_HANDLE, vpindex : u32, sintindex : u32, message : *const core::ffi::c_void, messagesizeinbytes : u32) -> windows_core::HRESULT); - WHvPostVirtualProcessorSynicMessage(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(sintindex), core::mem::transmute(message), core::mem::transmute(messagesizeinbytes)).ok() + WHvPostVirtualProcessorSynicMessage(partition, vpindex, sintindex, message, messagesizeinbytes).ok() } #[inline] pub unsafe fn WHvQueryGpaRangeDirtyBitmap(partition: WHV_PARTITION_HANDLE, guestaddress: u64, rangesizeinbytes: u64, bitmap: Option<*mut u64>, bitmapsizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvQueryGpaRangeDirtyBitmap(partition : WHV_PARTITION_HANDLE, guestaddress : u64, rangesizeinbytes : u64, bitmap : *mut u64, bitmapsizeinbytes : u32) -> windows_core::HRESULT); - WHvQueryGpaRangeDirtyBitmap(core::mem::transmute(partition), core::mem::transmute(guestaddress), core::mem::transmute(rangesizeinbytes), core::mem::transmute(bitmap.unwrap_or(core::mem::zeroed())), core::mem::transmute(bitmapsizeinbytes)).ok() + WHvQueryGpaRangeDirtyBitmap(partition, guestaddress, rangesizeinbytes, core::mem::transmute(bitmap.unwrap_or(core::mem::zeroed())), bitmapsizeinbytes).ok() } #[inline] pub unsafe fn WHvReadGpaRange(partition: WHV_PARTITION_HANDLE, vpindex: u32, guestaddress: u64, controls: WHV_ACCESS_GPA_CONTROLS, data: *mut core::ffi::c_void, datasizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvReadGpaRange(partition : WHV_PARTITION_HANDLE, vpindex : u32, guestaddress : u64, controls : WHV_ACCESS_GPA_CONTROLS, data : *mut core::ffi::c_void, datasizeinbytes : u32) -> windows_core::HRESULT); - WHvReadGpaRange(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(guestaddress), core::mem::transmute(controls), core::mem::transmute(data), core::mem::transmute(datasizeinbytes)).ok() + WHvReadGpaRange(partition, vpindex, guestaddress, core::mem::transmute(controls), core::mem::transmute(data), datasizeinbytes).ok() } #[inline] pub unsafe fn WHvReadVpciDeviceRegister(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, register: *const WHV_VPCI_DEVICE_REGISTER, data: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvReadVpciDeviceRegister(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, register : *const WHV_VPCI_DEVICE_REGISTER, data : *mut core::ffi::c_void) -> windows_core::HRESULT); - WHvReadVpciDeviceRegister(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(register), core::mem::transmute(data)).ok() + WHvReadVpciDeviceRegister(partition, logicaldeviceid, register, core::mem::transmute(data)).ok() } #[inline] pub unsafe fn WHvRegisterPartitionDoorbellEvent(partition: WHV_PARTITION_HANDLE, matchdata: *const WHV_DOORBELL_MATCH_DATA, eventhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvRegisterPartitionDoorbellEvent(partition : WHV_PARTITION_HANDLE, matchdata : *const WHV_DOORBELL_MATCH_DATA, eventhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WHvRegisterPartitionDoorbellEvent(core::mem::transmute(partition), core::mem::transmute(matchdata), core::mem::transmute(eventhandle)).ok() + WHvRegisterPartitionDoorbellEvent(partition, matchdata, eventhandle).ok() } #[inline] pub unsafe fn WHvRequestInterrupt(partition: WHV_PARTITION_HANDLE, interrupt: *const WHV_INTERRUPT_CONTROL, interruptcontrolsize: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvRequestInterrupt(partition : WHV_PARTITION_HANDLE, interrupt : *const WHV_INTERRUPT_CONTROL, interruptcontrolsize : u32) -> windows_core::HRESULT); - WHvRequestInterrupt(core::mem::transmute(partition), core::mem::transmute(interrupt), core::mem::transmute(interruptcontrolsize)).ok() + WHvRequestInterrupt(partition, interrupt, interruptcontrolsize).ok() } #[inline] pub unsafe fn WHvRequestVpciDeviceInterrupt(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, msiaddress: u64, msidata: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvRequestVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, msiaddress : u64, msidata : u32) -> windows_core::HRESULT); - WHvRequestVpciDeviceInterrupt(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(msiaddress), core::mem::transmute(msidata)).ok() + WHvRequestVpciDeviceInterrupt(partition, logicaldeviceid, msiaddress, msidata).ok() } #[inline] pub unsafe fn WHvResetPartition(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvResetPartition(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvResetPartition(core::mem::transmute(partition)).ok() + WHvResetPartition(partition).ok() } #[inline] pub unsafe fn WHvResumePartitionTime(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvResumePartitionTime(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvResumePartitionTime(core::mem::transmute(partition)).ok() + WHvResumePartitionTime(partition).ok() } #[inline] pub unsafe fn WHvRetargetVpciDeviceInterrupt(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, msiaddress: u64, msidata: u32, target: *const WHV_VPCI_INTERRUPT_TARGET) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvRetargetVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, msiaddress : u64, msidata : u32, target : *const WHV_VPCI_INTERRUPT_TARGET) -> windows_core::HRESULT); - WHvRetargetVpciDeviceInterrupt(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(msiaddress), core::mem::transmute(msidata), core::mem::transmute(target)).ok() + WHvRetargetVpciDeviceInterrupt(partition, logicaldeviceid, msiaddress, msidata, target).ok() } #[inline] pub unsafe fn WHvRunVirtualProcessor(partition: WHV_PARTITION_HANDLE, vpindex: u32, exitcontext: *mut core::ffi::c_void, exitcontextsizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvRunVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, exitcontext : *mut core::ffi::c_void, exitcontextsizeinbytes : u32) -> windows_core::HRESULT); - WHvRunVirtualProcessor(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(exitcontext), core::mem::transmute(exitcontextsizeinbytes)).ok() + WHvRunVirtualProcessor(partition, vpindex, core::mem::transmute(exitcontext), exitcontextsizeinbytes).ok() } #[inline] pub unsafe fn WHvSetNotificationPortProperty(partition: WHV_PARTITION_HANDLE, porthandle: *const core::ffi::c_void, propertycode: WHV_NOTIFICATION_PORT_PROPERTY_CODE, propertyvalue: u64) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetNotificationPortProperty(partition : WHV_PARTITION_HANDLE, porthandle : *const core::ffi::c_void, propertycode : WHV_NOTIFICATION_PORT_PROPERTY_CODE, propertyvalue : u64) -> windows_core::HRESULT); - WHvSetNotificationPortProperty(core::mem::transmute(partition), core::mem::transmute(porthandle), core::mem::transmute(propertycode), core::mem::transmute(propertyvalue)).ok() + WHvSetNotificationPortProperty(partition, porthandle, propertycode, propertyvalue).ok() } #[inline] pub unsafe fn WHvSetPartitionProperty(partition: WHV_PARTITION_HANDLE, propertycode: WHV_PARTITION_PROPERTY_CODE, propertybuffer: *const core::ffi::c_void, propertybuffersizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetPartitionProperty(partition : WHV_PARTITION_HANDLE, propertycode : WHV_PARTITION_PROPERTY_CODE, propertybuffer : *const core::ffi::c_void, propertybuffersizeinbytes : u32) -> windows_core::HRESULT); - WHvSetPartitionProperty(core::mem::transmute(partition), core::mem::transmute(propertycode), core::mem::transmute(propertybuffer), core::mem::transmute(propertybuffersizeinbytes)).ok() + WHvSetPartitionProperty(partition, propertycode, propertybuffer, propertybuffersizeinbytes).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorInterruptControllerState(partition: WHV_PARTITION_HANDLE, vpindex: u32, state: *const core::ffi::c_void, statesize: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorInterruptControllerState(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *const core::ffi::c_void, statesize : u32) -> windows_core::HRESULT); - WHvSetVirtualProcessorInterruptControllerState(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(state), core::mem::transmute(statesize)).ok() + WHvSetVirtualProcessorInterruptControllerState(partition, vpindex, state, statesize).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorInterruptControllerState2(partition: WHV_PARTITION_HANDLE, vpindex: u32, state: *const core::ffi::c_void, statesize: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorInterruptControllerState2(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *const core::ffi::c_void, statesize : u32) -> windows_core::HRESULT); - WHvSetVirtualProcessorInterruptControllerState2(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(state), core::mem::transmute(statesize)).ok() + WHvSetVirtualProcessorInterruptControllerState2(partition, vpindex, state, statesize).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorRegisters(partition: WHV_PARTITION_HANDLE, vpindex: u32, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *const WHV_REGISTER_VALUE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorRegisters(partition : WHV_PARTITION_HANDLE, vpindex : u32, registernames : *const WHV_REGISTER_NAME, registercount : u32, registervalues : *const WHV_REGISTER_VALUE) -> windows_core::HRESULT); - WHvSetVirtualProcessorRegisters(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(registernames), core::mem::transmute(registercount), core::mem::transmute(registervalues)).ok() + WHvSetVirtualProcessorRegisters(partition, vpindex, registernames, registercount, registervalues).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorState(partition: WHV_PARTITION_HANDLE, vpindex: u32, statetype: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer: *const core::ffi::c_void, buffersizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorState(partition : WHV_PARTITION_HANDLE, vpindex : u32, statetype : WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer : *const core::ffi::c_void, buffersizeinbytes : u32) -> windows_core::HRESULT); - WHvSetVirtualProcessorState(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(statetype), core::mem::transmute(buffer), core::mem::transmute(buffersizeinbytes)).ok() + WHvSetVirtualProcessorState(partition, vpindex, statetype, buffer, buffersizeinbytes).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorXsaveState(partition: WHV_PARTITION_HANDLE, vpindex: u32, buffer: *const core::ffi::c_void, buffersizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorXsaveState(partition : WHV_PARTITION_HANDLE, vpindex : u32, buffer : *const core::ffi::c_void, buffersizeinbytes : u32) -> windows_core::HRESULT); - WHvSetVirtualProcessorXsaveState(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(buffer), core::mem::transmute(buffersizeinbytes)).ok() + WHvSetVirtualProcessorXsaveState(partition, vpindex, buffer, buffersizeinbytes).ok() } #[cfg(feature = "Win32_System_Power")] #[inline] pub unsafe fn WHvSetVpciDevicePowerState(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, powerstate: super::Power::DEVICE_POWER_STATE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVpciDevicePowerState(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, powerstate : super::Power:: DEVICE_POWER_STATE) -> windows_core::HRESULT); - WHvSetVpciDevicePowerState(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(powerstate)).ok() + WHvSetVpciDevicePowerState(partition, logicaldeviceid, powerstate).ok() } #[inline] pub unsafe fn WHvSetupPartition(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetupPartition(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvSetupPartition(core::mem::transmute(partition)).ok() + WHvSetupPartition(partition).ok() } #[inline] pub unsafe fn WHvSignalVirtualProcessorSynicEvent(partition: WHV_PARTITION_HANDLE, synicevent: WHV_SYNIC_EVENT_PARAMETERS, newlysignaled: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSignalVirtualProcessorSynicEvent(partition : WHV_PARTITION_HANDLE, synicevent : WHV_SYNIC_EVENT_PARAMETERS, newlysignaled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - WHvSignalVirtualProcessorSynicEvent(core::mem::transmute(partition), core::mem::transmute(synicevent), core::mem::transmute(newlysignaled.unwrap_or(core::mem::zeroed()))).ok() + WHvSignalVirtualProcessorSynicEvent(partition, core::mem::transmute(synicevent), core::mem::transmute(newlysignaled.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WHvStartPartitionMigration(partition: WHV_PARTITION_HANDLE) -> windows_core::Result { windows_targets::link!("winhvplatform.dll" "system" fn WHvStartPartitionMigration(partition : WHV_PARTITION_HANDLE, migrationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WHvStartPartitionMigration(core::mem::transmute(partition), &mut result__).map(|| core::mem::transmute(result__)) + WHvStartPartitionMigration(partition, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WHvSuspendPartitionTime(partition: WHV_PARTITION_HANDLE) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvSuspendPartitionTime(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvSuspendPartitionTime(core::mem::transmute(partition)).ok() + WHvSuspendPartitionTime(partition).ok() } #[inline] pub unsafe fn WHvTranslateGva(partition: WHV_PARTITION_HANDLE, vpindex: u32, gva: u64, translateflags: WHV_TRANSLATE_GVA_FLAGS, translationresult: *mut WHV_TRANSLATE_GVA_RESULT, gpa: *mut u64) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvTranslateGva(partition : WHV_PARTITION_HANDLE, vpindex : u32, gva : u64, translateflags : WHV_TRANSLATE_GVA_FLAGS, translationresult : *mut WHV_TRANSLATE_GVA_RESULT, gpa : *mut u64) -> windows_core::HRESULT); - WHvTranslateGva(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(gva), core::mem::transmute(translateflags), core::mem::transmute(translationresult), core::mem::transmute(gpa)).ok() + WHvTranslateGva(partition, vpindex, gva, translateflags, core::mem::transmute(translationresult), core::mem::transmute(gpa)).ok() } #[inline] pub unsafe fn WHvUnmapGpaRange(partition: WHV_PARTITION_HANDLE, guestaddress: u64, sizeinbytes: u64) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapGpaRange(partition : WHV_PARTITION_HANDLE, guestaddress : u64, sizeinbytes : u64) -> windows_core::HRESULT); - WHvUnmapGpaRange(core::mem::transmute(partition), core::mem::transmute(guestaddress), core::mem::transmute(sizeinbytes)).ok() + WHvUnmapGpaRange(partition, guestaddress, sizeinbytes).ok() } #[inline] pub unsafe fn WHvUnmapVpciDeviceInterrupt(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, index: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32) -> windows_core::HRESULT); - WHvUnmapVpciDeviceInterrupt(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(index)).ok() + WHvUnmapVpciDeviceInterrupt(partition, logicaldeviceid, index).ok() } #[inline] pub unsafe fn WHvUnmapVpciDeviceMmioRanges(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapVpciDeviceMmioRanges(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64) -> windows_core::HRESULT); - WHvUnmapVpciDeviceMmioRanges(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid)).ok() + WHvUnmapVpciDeviceMmioRanges(partition, logicaldeviceid).ok() } #[inline] pub unsafe fn WHvUnregisterPartitionDoorbellEvent(partition: WHV_PARTITION_HANDLE, matchdata: *const WHV_DOORBELL_MATCH_DATA) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnregisterPartitionDoorbellEvent(partition : WHV_PARTITION_HANDLE, matchdata : *const WHV_DOORBELL_MATCH_DATA) -> windows_core::HRESULT); - WHvUnregisterPartitionDoorbellEvent(core::mem::transmute(partition), core::mem::transmute(matchdata)).ok() + WHvUnregisterPartitionDoorbellEvent(partition, matchdata).ok() } #[inline] pub unsafe fn WHvUpdateTriggerParameters(partition: WHV_PARTITION_HANDLE, parameters: *const WHV_TRIGGER_PARAMETERS, triggerhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvUpdateTriggerParameters(partition : WHV_PARTITION_HANDLE, parameters : *const WHV_TRIGGER_PARAMETERS, triggerhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvUpdateTriggerParameters(core::mem::transmute(partition), core::mem::transmute(parameters), core::mem::transmute(triggerhandle)).ok() + WHvUpdateTriggerParameters(partition, parameters, triggerhandle).ok() } #[inline] pub unsafe fn WHvWriteGpaRange(partition: WHV_PARTITION_HANDLE, vpindex: u32, guestaddress: u64, controls: WHV_ACCESS_GPA_CONTROLS, data: *const core::ffi::c_void, datasizeinbytes: u32) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvWriteGpaRange(partition : WHV_PARTITION_HANDLE, vpindex : u32, guestaddress : u64, controls : WHV_ACCESS_GPA_CONTROLS, data : *const core::ffi::c_void, datasizeinbytes : u32) -> windows_core::HRESULT); - WHvWriteGpaRange(core::mem::transmute(partition), core::mem::transmute(vpindex), core::mem::transmute(guestaddress), core::mem::transmute(controls), core::mem::transmute(data), core::mem::transmute(datasizeinbytes)).ok() + WHvWriteGpaRange(partition, vpindex, guestaddress, core::mem::transmute(controls), data, datasizeinbytes).ok() } #[inline] pub unsafe fn WHvWriteVpciDeviceRegister(partition: WHV_PARTITION_HANDLE, logicaldeviceid: u64, register: *const WHV_VPCI_DEVICE_REGISTER, data: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("winhvplatform.dll" "system" fn WHvWriteVpciDeviceRegister(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, register : *const WHV_VPCI_DEVICE_REGISTER, data : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvWriteVpciDeviceRegister(core::mem::transmute(partition), core::mem::transmute(logicaldeviceid), core::mem::transmute(register), core::mem::transmute(data)).ok() + WHvWriteVpciDeviceRegister(partition, logicaldeviceid, register, data).ok() } pub const ARM64_RegisterActlrEl1: REGISTER_ID = REGISTER_ID(145i32); pub const ARM64_RegisterAmairEl1: REGISTER_ID = REGISTER_ID(148i32); diff --git a/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs b/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs index fc7e669e87..22919c3958 100644 --- a/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs @@ -1,58 +1,58 @@ #[inline] pub unsafe fn BindIoCompletionCallback(filehandle: super::super::Foundation::HANDLE, function: LPOVERLAPPED_COMPLETION_ROUTINE, flags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn BindIoCompletionCallback(filehandle : super::super::Foundation:: HANDLE, function : LPOVERLAPPED_COMPLETION_ROUTINE, flags : u32) -> super::super::Foundation:: BOOL); - BindIoCompletionCallback(core::mem::transmute(filehandle), core::mem::transmute(function), core::mem::transmute(flags)).ok() + BindIoCompletionCallback(filehandle, function, flags).ok() } #[inline] pub unsafe fn CancelIo(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CancelIo(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelIo(core::mem::transmute(hfile)).ok() + CancelIo(hfile).ok() } #[inline] pub unsafe fn CancelIoEx(hfile: super::super::Foundation::HANDLE, lpoverlapped: Option<*const OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CancelIoEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL); - CancelIoEx(core::mem::transmute(hfile), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + CancelIoEx(hfile, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CancelSynchronousIo(hthread: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CancelSynchronousIo(hthread : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelSynchronousIo(core::mem::transmute(hthread)).ok() + CancelSynchronousIo(hthread).ok() } #[inline] pub unsafe fn CreateIoCompletionPort(filehandle: super::super::Foundation::HANDLE, existingcompletionport: Option, completionkey: usize, numberofconcurrentthreads: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateIoCompletionPort(filehandle : super::super::Foundation:: HANDLE, existingcompletionport : super::super::Foundation:: HANDLE, completionkey : usize, numberofconcurrentthreads : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateIoCompletionPort(core::mem::transmute(filehandle), core::mem::transmute(existingcompletionport.unwrap_or(core::mem::zeroed())), core::mem::transmute(completionkey), core::mem::transmute(numberofconcurrentthreads)); + let result__ = CreateIoCompletionPort(filehandle, core::mem::transmute(existingcompletionport.unwrap_or(core::mem::zeroed())), completionkey, numberofconcurrentthreads); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DeviceIoControl(hdevice: super::super::Foundation::HANDLE, dwiocontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeviceIoControl(hdevice : super::super::Foundation:: HANDLE, dwiocontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpoverlapped : *mut OVERLAPPED) -> super::super::Foundation:: BOOL); - DeviceIoControl(core::mem::transmute(hdevice), core::mem::transmute(dwiocontrolcode), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + DeviceIoControl(hdevice, dwiocontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetOverlappedResult(hfile: super::super::Foundation::HANDLE, lpoverlapped: *const OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetOverlappedResult(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetOverlappedResult(core::mem::transmute(hfile), core::mem::transmute(lpoverlapped), core::mem::transmute(lpnumberofbytestransferred), bwait.into()).ok() + GetOverlappedResult(hfile, lpoverlapped, core::mem::transmute(lpnumberofbytestransferred), bwait.into()).ok() } #[inline] pub unsafe fn GetOverlappedResultEx(hfile: super::super::Foundation::HANDLE, lpoverlapped: *const OVERLAPPED, lpnumberofbytestransferred: *mut u32, dwmilliseconds: u32, balertable: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetOverlappedResultEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetOverlappedResultEx(core::mem::transmute(hfile), core::mem::transmute(lpoverlapped), core::mem::transmute(lpnumberofbytestransferred), core::mem::transmute(dwmilliseconds), balertable.into()).ok() + GetOverlappedResultEx(hfile, lpoverlapped, core::mem::transmute(lpnumberofbytestransferred), dwmilliseconds, balertable.into()).ok() } #[inline] pub unsafe fn GetQueuedCompletionStatus(completionport: super::super::Foundation::HANDLE, lpnumberofbytestransferred: *mut u32, lpcompletionkey: *mut usize, lpoverlapped: *mut *mut OVERLAPPED, dwmilliseconds: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, lpnumberofbytestransferred : *mut u32, lpcompletionkey : *mut usize, lpoverlapped : *mut *mut OVERLAPPED, dwmilliseconds : u32) -> super::super::Foundation:: BOOL); - GetQueuedCompletionStatus(core::mem::transmute(completionport), core::mem::transmute(lpnumberofbytestransferred), core::mem::transmute(lpcompletionkey), core::mem::transmute(lpoverlapped), core::mem::transmute(dwmilliseconds)).ok() + GetQueuedCompletionStatus(completionport, core::mem::transmute(lpnumberofbytestransferred), core::mem::transmute(lpcompletionkey), core::mem::transmute(lpoverlapped), dwmilliseconds).ok() } #[inline] pub unsafe fn GetQueuedCompletionStatusEx(completionport: super::super::Foundation::HANDLE, lpcompletionportentries: &mut [OVERLAPPED_ENTRY], ulnumentriesremoved: *mut u32, dwmilliseconds: u32, falertable: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetQueuedCompletionStatusEx(completionport : super::super::Foundation:: HANDLE, lpcompletionportentries : *mut OVERLAPPED_ENTRY, ulcount : u32, ulnumentriesremoved : *mut u32, dwmilliseconds : u32, falertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetQueuedCompletionStatusEx(core::mem::transmute(completionport), core::mem::transmute(lpcompletionportentries.as_ptr()), lpcompletionportentries.len().try_into().unwrap(), core::mem::transmute(ulnumentriesremoved), core::mem::transmute(dwmilliseconds), falertable.into()).ok() + GetQueuedCompletionStatusEx(completionport, core::mem::transmute(lpcompletionportentries.as_ptr()), lpcompletionportentries.len().try_into().unwrap(), core::mem::transmute(ulnumentriesremoved), dwmilliseconds, falertable.into()).ok() } #[inline] pub unsafe fn PostQueuedCompletionStatus(completionport: super::super::Foundation::HANDLE, dwnumberofbytestransferred: u32, dwcompletionkey: usize, lpoverlapped: Option<*const OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PostQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, dwnumberofbytestransferred : u32, dwcompletionkey : usize, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL); - PostQueuedCompletionStatus(core::mem::transmute(completionport), core::mem::transmute(dwnumberofbytestransferred), core::mem::transmute(dwcompletionkey), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + PostQueuedCompletionStatus(completionport, dwnumberofbytestransferred, dwcompletionkey, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs index 4480950f38..75c92deaf5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs @@ -11,12 +11,12 @@ pub unsafe fn GetFilterVersion(pver: *mut HTTP_FILTER_VERSION) -> super::super:: #[inline] pub unsafe fn HttpExtensionProc(pecb: *const EXTENSION_CONTROL_BLOCK) -> u32 { windows_targets::link!("rpcproxy.dll" "system" fn HttpExtensionProc(pecb : *const EXTENSION_CONTROL_BLOCK) -> u32); - HttpExtensionProc(core::mem::transmute(pecb)) + HttpExtensionProc(pecb) } #[inline] pub unsafe fn HttpFilterProc(pfc: *mut HTTP_FILTER_CONTEXT, notificationtype: u32, pvnotification: *mut core::ffi::c_void) -> u32 { windows_targets::link!("rpcproxy.dll" "system" fn HttpFilterProc(pfc : *mut HTTP_FILTER_CONTEXT, notificationtype : u32, pvnotification : *mut core::ffi::c_void) -> u32); - HttpFilterProc(core::mem::transmute(pfc), core::mem::transmute(notificationtype), core::mem::transmute(pvnotification)) + HttpFilterProc(core::mem::transmute(pfc), notificationtype, core::mem::transmute(pvnotification)) } pub const ADMINDATA_MAX_NAME_LEN: u32 = 256u32; pub const ALL_METADATA: METADATATYPES = METADATATYPES(0i32); @@ -187,7 +187,7 @@ windows_core::imp::define_interface!(AsyncIFtpLogProvider, AsyncIFtpLogProvider_ windows_core::imp::interface_hierarchy!(AsyncIFtpLogProvider, windows_core::IUnknown); impl AsyncIFtpLogProvider { pub unsafe fn Begin_Log(&self, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_Log)(windows_core::Interface::as_raw(self), core::mem::transmute(ploggingparameters)).ok() + (windows_core::Interface::vtable(self).Begin_Log)(windows_core::Interface::as_raw(self), ploggingparameters).ok() } pub unsafe fn Finish_Log(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_Log)(windows_core::Interface::as_raw(self)).ok() @@ -228,7 +228,7 @@ windows_core::imp::define_interface!(AsyncIFtpPostprocessProvider, AsyncIFtpPost windows_core::imp::interface_hierarchy!(AsyncIFtpPostprocessProvider, windows_core::IUnknown); impl AsyncIFtpPostprocessProvider { pub unsafe fn Begin_HandlePostprocess(&self, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_HandlePostprocess)(windows_core::Interface::as_raw(self), core::mem::transmute(ppostprocessparameters)).ok() + (windows_core::Interface::vtable(self).Begin_HandlePostprocess)(windows_core::Interface::as_raw(self), ppostprocessparameters).ok() } pub unsafe fn Finish_HandlePostprocess(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -276,7 +276,7 @@ windows_core::imp::define_interface!(AsyncIFtpPreprocessProvider, AsyncIFtpPrepr windows_core::imp::interface_hierarchy!(AsyncIFtpPreprocessProvider, windows_core::IUnknown); impl AsyncIFtpPreprocessProvider { pub unsafe fn Begin_HandlePreprocess(&self, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin_HandlePreprocess)(windows_core::Interface::as_raw(self), core::mem::transmute(ppreprocessparameters)).ok() + (windows_core::Interface::vtable(self).Begin_HandlePreprocess)(windows_core::Interface::as_raw(self), ppreprocessparameters).ok() } pub unsafe fn Finish_HandlePreprocess(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1067,7 +1067,7 @@ impl IADMEXT { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnumDcomCLSIDs(&self, pclsiddcom: *mut windows_core::GUID, dwenumindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumDcomCLSIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(pclsiddcom), core::mem::transmute(dwenumindex)).ok() + (windows_core::Interface::vtable(self).EnumDcomCLSIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(pclsiddcom), dwenumindex).ok() } pub unsafe fn Terminate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self)).ok() @@ -1230,7 +1230,7 @@ windows_core::imp::define_interface!(IFtpLogProvider, IFtpLogProvider_Vtbl, 0xa1 windows_core::imp::interface_hierarchy!(IFtpLogProvider, windows_core::IUnknown); impl IFtpLogProvider { pub unsafe fn Log(&self, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), core::mem::transmute(ploggingparameters)).ok() + (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), ploggingparameters).ok() } } #[repr(C)] @@ -1259,7 +1259,7 @@ windows_core::imp::interface_hierarchy!(IFtpPostprocessProvider, windows_core::I impl IFtpPostprocessProvider { pub unsafe fn HandlePostprocess(&self, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HandlePostprocess)(windows_core::Interface::as_raw(self), core::mem::transmute(ppostprocessparameters), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HandlePostprocess)(windows_core::Interface::as_raw(self), ppostprocessparameters, &mut result__).map(|| result__) } } #[repr(C)] @@ -1294,7 +1294,7 @@ windows_core::imp::interface_hierarchy!(IFtpPreprocessProvider, windows_core::IU impl IFtpPreprocessProvider { pub unsafe fn HandlePreprocess(&self, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HandlePreprocess)(windows_core::Interface::as_raw(self), core::mem::transmute(ppreprocessparameters), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HandlePreprocess)(windows_core::Interface::as_raw(self), ppreprocessparameters, &mut result__).map(|| result__) } } #[repr(C)] @@ -1329,7 +1329,7 @@ windows_core::imp::interface_hierarchy!(IFtpProviderConstruct, windows_core::IUn impl IFtpProviderConstruct { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Construct(&self, configurationentries: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Construct)(windows_core::Interface::as_raw(self), core::mem::transmute(configurationentries)).ok() + (windows_core::Interface::vtable(self).Construct)(windows_core::Interface::as_raw(self), configurationentries).ok() } } #[repr(C)] @@ -1507,14 +1507,14 @@ impl IMSAdminBase2W { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).BackupWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), core::mem::transmute(dwmdversion), core::mem::transmute(dwmdflags), pszpasswd.param().abi()).ok() + (windows_core::Interface::vtable(self).BackupWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion, dwmdflags, pszpasswd.param().abi()).ok() } pub unsafe fn RestoreWithPasswd(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32, pszpasswd: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), core::mem::transmute(dwmdversion), core::mem::transmute(dwmdflags), pszpasswd.param().abi()).ok() + (windows_core::Interface::vtable(self).RestoreWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion, dwmdflags, pszpasswd.param().abi()).ok() } pub unsafe fn Export(&self, pszpasswd: P0, pszfilename: P1, pszsourcepath: P2, dwmdflags: u32) -> windows_core::Result<()> where @@ -1522,7 +1522,7 @@ impl IMSAdminBase2W { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), pszpasswd.param().abi(), pszfilename.param().abi(), pszsourcepath.param().abi(), core::mem::transmute(dwmdflags)).ok() + (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), pszpasswd.param().abi(), pszfilename.param().abi(), pszsourcepath.param().abi(), dwmdflags).ok() } pub unsafe fn Import(&self, pszpasswd: P0, pszfilename: P1, pszsourcepath: P2, pszdestpath: P3, dwmdflags: u32) -> windows_core::Result<()> where @@ -1531,16 +1531,16 @@ impl IMSAdminBase2W { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), pszpasswd.param().abi(), pszfilename.param().abi(), pszsourcepath.param().abi(), pszdestpath.param().abi(), core::mem::transmute(dwmdflags)).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), pszpasswd.param().abi(), pszfilename.param().abi(), pszsourcepath.param().abi(), pszdestpath.param().abi(), dwmdflags).ok() } pub unsafe fn RestoreHistory(&self, pszmdhistorylocation: P0, dwmdmajorversion: u32, dwmdminorversion: u32, dwmdflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreHistory)(windows_core::Interface::as_raw(self), pszmdhistorylocation.param().abi(), core::mem::transmute(dwmdmajorversion), core::mem::transmute(dwmdminorversion), core::mem::transmute(dwmdflags)).ok() + (windows_core::Interface::vtable(self).RestoreHistory)(windows_core::Interface::as_raw(self), pszmdhistorylocation.param().abi(), dwmdmajorversion, dwmdminorversion, dwmdflags).ok() } pub unsafe fn EnumHistory(&self, pszmdhistorylocation: &mut [u16; 256], pdwmdmajorversion: *mut u32, pdwmdminorversion: *mut u32, pftmdhistorytime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumHistory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdhistorylocation.as_ptr()), core::mem::transmute(pdwmdmajorversion), core::mem::transmute(pdwmdminorversion), core::mem::transmute(pftmdhistorytime), core::mem::transmute(dwmdenumindex)).ok() + (windows_core::Interface::vtable(self).EnumHistory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdhistorylocation.as_ptr()), core::mem::transmute(pdwmdmajorversion), core::mem::transmute(pdwmdminorversion), core::mem::transmute(pftmdhistorytime), dwmdenumindex).ok() } } #[repr(C)] @@ -1615,7 +1615,7 @@ impl IMSAdminBase3W { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetChildPaths)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), pszbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pszbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcchmdrequiredbuffersize.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetChildPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pszbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pszbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pcchmdrequiredbuffersize.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -1687,108 +1687,108 @@ impl IMSAdminBaseW { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi()).ok() + (windows_core::Interface::vtable(self).AddKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn DeleteKey(&self, hmdhandle: u32, pszmdpath: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn DeleteChildKeys(&self, hmdhandle: u32, pszmdpath: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteChildKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteChildKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn EnumKeys(&self, hmdhandle: u32, pszmdpath: P1, pszmdname: &mut [u16; 256], dwmdenumobjectindex: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(pszmdname.as_ptr()), core::mem::transmute(dwmdenumobjectindex)).ok() + (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), core::mem::transmute(pszmdname.as_ptr()), dwmdenumobjectindex).ok() } pub unsafe fn CopyKey(&self, hmdsourcehandle: u32, pszmdsourcepath: P1, hmddesthandle: u32, pszmddestpath: P3, bmdoverwriteflag: bool, bmdcopyflag: bool) -> windows_core::Result<()> where P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdsourcehandle), pszmdsourcepath.param().abi(), core::mem::transmute(hmddesthandle), pszmddestpath.param().abi(), bmdoverwriteflag.into(), bmdcopyflag.into()).ok() + (windows_core::Interface::vtable(self).CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), bmdoverwriteflag.into(), bmdcopyflag.into()).ok() } pub unsafe fn RenameKey(&self, hmdhandle: u32, pszmdpath: P1, pszmdnewname: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), pszmdnewname.param().abi()).ok() + (windows_core::Interface::vtable(self).RenameKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pszmdnewname.param().abi()).ok() } pub unsafe fn SetData(&self, hmdhandle: u32, pszmdpath: P1, pmdrmddata: *mut METADATA_RECORD) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(pmdrmddata)).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), core::mem::transmute(pmdrmddata)).ok() } pub unsafe fn GetData(&self, hmdhandle: u32, pszmdpath: P1, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(pmdrmddata), core::mem::transmute(pdwmdrequireddatalen)).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), core::mem::transmute(pmdrmddata), core::mem::transmute(pdwmdrequireddatalen)).ok() } pub unsafe fn DeleteData(&self, hmdhandle: u32, pszmdpath: P1, dwmdidentifier: u32, dwmddatatype: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(dwmdidentifier), core::mem::transmute(dwmddatatype)).ok() + (windows_core::Interface::vtable(self).DeleteData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdidentifier, dwmddatatype).ok() } pub unsafe fn EnumData(&self, hmdhandle: u32, pszmdpath: P1, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(pmdrmddata), core::mem::transmute(dwmdenumdataindex), core::mem::transmute(pdwmdrequireddatalen)).ok() + (windows_core::Interface::vtable(self).EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), core::mem::transmute(pmdrmddata), dwmdenumdataindex, core::mem::transmute(pdwmdrequireddatalen)).ok() } pub unsafe fn GetAllData(&self, hmdhandle: u32, pszmdpath: P1, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAllData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(dwmdattributes), core::mem::transmute(dwmdusertype), core::mem::transmute(dwmddatatype), core::mem::transmute(pdwmdnumdataentries), core::mem::transmute(pdwmddatasetnumber), core::mem::transmute(dwmdbuffersize), core::mem::transmute(pbmdbuffer), core::mem::transmute(pdwmdrequiredbuffersize)).ok() + (windows_core::Interface::vtable(self).GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, core::mem::transmute(pdwmdnumdataentries), core::mem::transmute(pdwmddatasetnumber), dwmdbuffersize, core::mem::transmute(pbmdbuffer), core::mem::transmute(pdwmdrequiredbuffersize)).ok() } pub unsafe fn DeleteAllData(&self, hmdhandle: u32, pszmdpath: P1, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAllData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(dwmdusertype), core::mem::transmute(dwmddatatype)).ok() + (windows_core::Interface::vtable(self).DeleteAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdusertype, dwmddatatype).ok() } pub unsafe fn CopyData(&self, hmdsourcehandle: u32, pszmdsourcepath: P1, hmddesthandle: u32, pszmddestpath: P3, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: bool) -> windows_core::Result<()> where P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyData)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdsourcehandle), pszmdsourcepath.param().abi(), core::mem::transmute(hmddesthandle), pszmddestpath.param().abi(), core::mem::transmute(dwmdattributes), core::mem::transmute(dwmdusertype), core::mem::transmute(dwmddatatype), bmdcopyflag.into()).ok() + (windows_core::Interface::vtable(self).CopyData)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, bmdcopyflag.into()).ok() } pub unsafe fn GetDataPaths(&self, hmdhandle: u32, pszmdpath: P1, dwmdidentifier: u32, dwmddatatype: u32, pszbuffer: &mut [u16], pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDataPaths)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(dwmdidentifier), core::mem::transmute(dwmddatatype), pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), core::mem::transmute(pdwmdrequiredbuffersize)).ok() + (windows_core::Interface::vtable(self).GetDataPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdidentifier, dwmddatatype, pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), core::mem::transmute(pdwmdrequiredbuffersize)).ok() } pub unsafe fn OpenKey(&self, hmdhandle: u32, pszmdpath: P1, dwmdaccessrequested: u32, dwmdtimeout: u32) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(dwmdaccessrequested), core::mem::transmute(dwmdtimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdaccessrequested, dwmdtimeout, &mut result__).map(|| result__) } pub unsafe fn CloseKey(&self, hmdhandle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle)).ok() + (windows_core::Interface::vtable(self).CloseKey)(windows_core::Interface::as_raw(self), hmdhandle).ok() } pub unsafe fn ChangePermissions(&self, hmdhandle: u32, dwmdtimeout: u32, dwmdaccessrequested: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangePermissions)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), core::mem::transmute(dwmdtimeout), core::mem::transmute(dwmdaccessrequested)).ok() + (windows_core::Interface::vtable(self).ChangePermissions)(windows_core::Interface::as_raw(self), hmdhandle, dwmdtimeout, dwmdaccessrequested).ok() } pub unsafe fn SaveData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveData)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetHandleInfo(&self, hmdhandle: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHandleInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetHandleInfo)(windows_core::Interface::as_raw(self), hmdhandle, &mut result__).map(|| result__) } pub unsafe fn GetSystemChangeNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1799,19 +1799,19 @@ impl IMSAdminBaseW { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataSetNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDataSetNumber)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P1, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastChangeTime)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(pftmdlastchangetime), blocaltime.into()).ok() + (windows_core::Interface::vtable(self).SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.into()).ok() } pub unsafe fn GetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P1, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLastChangeTime)(windows_core::Interface::as_raw(self), core::mem::transmute(hmdhandle), pszmdpath.param().abi(), core::mem::transmute(pftmdlastchangetime), blocaltime.into()).ok() + (windows_core::Interface::vtable(self).GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), core::mem::transmute(pftmdlastchangetime), blocaltime.into()).ok() } pub unsafe fn KeyExchangePhase1(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KeyExchangePhase1)(windows_core::Interface::as_raw(self)).ok() @@ -1823,22 +1823,22 @@ impl IMSAdminBaseW { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), core::mem::transmute(dwmdversion), core::mem::transmute(dwmdflags)).ok() + (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion, dwmdflags).ok() } pub unsafe fn Restore(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), core::mem::transmute(dwmdversion), core::mem::transmute(dwmdflags)).ok() + (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion, dwmdflags).ok() } pub unsafe fn EnumBackups(&self, pszmdbackuplocation: &mut [u16; 256], pdwmdversion: *mut u32, pftmdbackuptime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumBackups)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdbackuplocation.as_ptr()), core::mem::transmute(pdwmdversion), core::mem::transmute(pftmdbackuptime), core::mem::transmute(dwmdenumindex)).ok() + (windows_core::Interface::vtable(self).EnumBackups)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdbackuplocation.as_ptr()), core::mem::transmute(pdwmdversion), core::mem::transmute(pftmdbackuptime), dwmdenumindex).ok() } pub unsafe fn DeleteBackup(&self, pszmdbackuplocation: P0, dwmdversion: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), core::mem::transmute(dwmdversion)).ok() + (windows_core::Interface::vtable(self).DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion).ok() } pub unsafe fn UnmarshalInterface(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs index 5a449792c0..73f5c55da2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn AssignProcessToJobObject(hjob: super::super::Foundation::HANDLE, hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AssignProcessToJobObject(hjob : super::super::Foundation:: HANDLE, hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AssignProcessToJobObject(core::mem::transmute(hjob), core::mem::transmute(hprocess)).ok() + AssignProcessToJobObject(hjob, hprocess).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -26,17 +26,17 @@ where #[inline] pub unsafe fn CreateJobSet(userjobset: &[JOB_SET_ARRAY], flags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn CreateJobSet(numjob : u32, userjobset : *const JOB_SET_ARRAY, flags : u32) -> super::super::Foundation:: BOOL); - CreateJobSet(userjobset.len().try_into().unwrap(), core::mem::transmute(userjobset.as_ptr()), core::mem::transmute(flags)) + CreateJobSet(userjobset.len().try_into().unwrap(), core::mem::transmute(userjobset.as_ptr()), flags) } #[inline] pub unsafe fn FreeMemoryJobObject(buffer: *const core::ffi::c_void) { windows_targets::link!("kernel32.dll" "system" fn FreeMemoryJobObject(buffer : *const core::ffi::c_void)); - FreeMemoryJobObject(core::mem::transmute(buffer)) + FreeMemoryJobObject(buffer) } #[inline] pub unsafe fn IsProcessInJob(processhandle: super::super::Foundation::HANDLE, jobhandle: Option, result: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsProcessInJob(processhandle : super::super::Foundation:: HANDLE, jobhandle : super::super::Foundation:: HANDLE, result : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsProcessInJob(core::mem::transmute(processhandle), core::mem::transmute(jobhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(result)).ok() + IsProcessInJob(processhandle, core::mem::transmute(jobhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(result)).ok() } #[inline] pub unsafe fn OpenJobObjectA(dwdesiredaccess: u32, binherithandle: bool, lpname: P2) -> windows_core::Result @@ -44,7 +44,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenJobObjectA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenJobObjectA(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenJobObjectA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -53,13 +53,13 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenJobObjectW(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenJobObjectW(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenJobObjectW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn QueryInformationJobObject(hjob: Option, jobobjectinformationclass: JOBOBJECTINFOCLASS, lpjobobjectinformation: *mut core::ffi::c_void, cbjobobjectinformationlength: u32, lpreturnlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryInformationJobObject(hjob : super::super::Foundation:: HANDLE, jobobjectinformationclass : JOBOBJECTINFOCLASS, lpjobobjectinformation : *mut core::ffi::c_void, cbjobobjectinformationlength : u32, lpreturnlength : *mut u32) -> super::super::Foundation:: BOOL); - QueryInformationJobObject(core::mem::transmute(hjob.unwrap_or(core::mem::zeroed())), core::mem::transmute(jobobjectinformationclass), core::mem::transmute(lpjobobjectinformation), core::mem::transmute(cbjobobjectinformationlength), core::mem::transmute(lpreturnlength.unwrap_or(core::mem::zeroed()))).ok() + QueryInformationJobObject(core::mem::transmute(hjob.unwrap_or(core::mem::zeroed())), jobobjectinformationclass, core::mem::transmute(lpjobobjectinformation), cbjobobjectinformationlength, core::mem::transmute(lpreturnlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn QueryIoRateControlInformationJobObject(hjob: Option, volumename: P1, infoblocks: *mut *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, infoblockcount: *mut u32) -> u32 @@ -72,22 +72,22 @@ where #[inline] pub unsafe fn SetInformationJobObject(hjob: super::super::Foundation::HANDLE, jobobjectinformationclass: JOBOBJECTINFOCLASS, lpjobobjectinformation: *const core::ffi::c_void, cbjobobjectinformationlength: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetInformationJobObject(hjob : super::super::Foundation:: HANDLE, jobobjectinformationclass : JOBOBJECTINFOCLASS, lpjobobjectinformation : *const core::ffi::c_void, cbjobobjectinformationlength : u32) -> super::super::Foundation:: BOOL); - SetInformationJobObject(core::mem::transmute(hjob), core::mem::transmute(jobobjectinformationclass), core::mem::transmute(lpjobobjectinformation), core::mem::transmute(cbjobobjectinformationlength)).ok() + SetInformationJobObject(hjob, jobobjectinformationclass, lpjobobjectinformation, cbjobobjectinformationlength).ok() } #[inline] pub unsafe fn SetIoRateControlInformationJobObject(hjob: super::super::Foundation::HANDLE, ioratecontrolinfo: *const JOBOBJECT_IO_RATE_CONTROL_INFORMATION) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetIoRateControlInformationJobObject(hjob : super::super::Foundation:: HANDLE, ioratecontrolinfo : *const JOBOBJECT_IO_RATE_CONTROL_INFORMATION) -> u32); - SetIoRateControlInformationJobObject(core::mem::transmute(hjob), core::mem::transmute(ioratecontrolinfo)) + SetIoRateControlInformationJobObject(hjob, ioratecontrolinfo) } #[inline] pub unsafe fn TerminateJobObject(hjob: super::super::Foundation::HANDLE, uexitcode: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TerminateJobObject(hjob : super::super::Foundation:: HANDLE, uexitcode : u32) -> super::super::Foundation:: BOOL); - TerminateJobObject(core::mem::transmute(hjob), core::mem::transmute(uexitcode)).ok() + TerminateJobObject(hjob, uexitcode).ok() } #[inline] pub unsafe fn UserHandleGrantAccess(huserhandle: super::super::Foundation::HANDLE, hjob: super::super::Foundation::HANDLE, bgrant: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UserHandleGrantAccess(huserhandle : super::super::Foundation:: HANDLE, hjob : super::super::Foundation:: HANDLE, bgrant : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - UserHandleGrantAccess(core::mem::transmute(huserhandle), core::mem::transmute(hjob), bgrant.into()).ok() + UserHandleGrantAccess(huserhandle, hjob, bgrant.into()).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Js/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Js/mod.rs index e22bcea801..8bff877a96 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Js/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Js/mod.rs @@ -1,57 +1,57 @@ #[inline] pub unsafe fn JsAddRef(r#ref: *const core::ffi::c_void, count: Option<*mut u32>) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsAddRef(r#ref : *const core::ffi::c_void, count : *mut u32) -> JsErrorCode); - JsAddRef(core::mem::transmute(r#ref), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + JsAddRef(r#ref, core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JsBoolToBoolean(value: u8, booleanvalue: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsBoolToBoolean(value : u8, booleanvalue : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsBoolToBoolean(core::mem::transmute(value), core::mem::transmute(booleanvalue)) + JsBoolToBoolean(value, core::mem::transmute(booleanvalue)) } #[inline] pub unsafe fn JsBooleanToBool(value: *const core::ffi::c_void, boolvalue: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsBooleanToBool(value : *const core::ffi::c_void, boolvalue : *mut bool) -> JsErrorCode); - JsBooleanToBool(core::mem::transmute(value), core::mem::transmute(boolvalue)) + JsBooleanToBool(value, core::mem::transmute(boolvalue)) } #[inline] pub unsafe fn JsCallFunction(function: *const core::ffi::c_void, arguments: &[*const core::ffi::c_void], result: Option<*mut *mut core::ffi::c_void>) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCallFunction(function : *const core::ffi::c_void, arguments : *const *const core::ffi::c_void, argumentcount : u16, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCallFunction(core::mem::transmute(function), core::mem::transmute(arguments.as_ptr()), arguments.len().try_into().unwrap(), core::mem::transmute(result.unwrap_or(core::mem::zeroed()))) + JsCallFunction(function, core::mem::transmute(arguments.as_ptr()), arguments.len().try_into().unwrap(), core::mem::transmute(result.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JsCollectGarbage(runtime: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCollectGarbage(runtime : *const core::ffi::c_void) -> JsErrorCode); - JsCollectGarbage(core::mem::transmute(runtime)) + JsCollectGarbage(runtime) } #[inline] pub unsafe fn JsConstructObject(function: *const core::ffi::c_void, arguments: &[*const core::ffi::c_void], result: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsConstructObject(function : *const core::ffi::c_void, arguments : *const *const core::ffi::c_void, argumentcount : u16, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsConstructObject(core::mem::transmute(function), core::mem::transmute(arguments.as_ptr()), arguments.len().try_into().unwrap(), core::mem::transmute(result)) + JsConstructObject(function, core::mem::transmute(arguments.as_ptr()), arguments.len().try_into().unwrap(), core::mem::transmute(result)) } #[inline] pub unsafe fn JsConvertValueToBoolean(value: *const core::ffi::c_void, booleanvalue: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsConvertValueToBoolean(value : *const core::ffi::c_void, booleanvalue : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsConvertValueToBoolean(core::mem::transmute(value), core::mem::transmute(booleanvalue)) + JsConvertValueToBoolean(value, core::mem::transmute(booleanvalue)) } #[inline] pub unsafe fn JsConvertValueToNumber(value: *const core::ffi::c_void, numbervalue: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsConvertValueToNumber(value : *const core::ffi::c_void, numbervalue : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsConvertValueToNumber(core::mem::transmute(value), core::mem::transmute(numbervalue)) + JsConvertValueToNumber(value, core::mem::transmute(numbervalue)) } #[inline] pub unsafe fn JsConvertValueToObject(value: *const core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsConvertValueToObject(value : *const core::ffi::c_void, object : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsConvertValueToObject(core::mem::transmute(value), core::mem::transmute(object)) + JsConvertValueToObject(value, core::mem::transmute(object)) } #[inline] pub unsafe fn JsConvertValueToString(value: *const core::ffi::c_void, stringvalue: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsConvertValueToString(value : *const core::ffi::c_void, stringvalue : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsConvertValueToString(core::mem::transmute(value), core::mem::transmute(stringvalue)) + JsConvertValueToString(value, core::mem::transmute(stringvalue)) } #[inline] pub unsafe fn JsCreateArray(length: u32, result: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateArray(length : u32, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateArray(core::mem::transmute(length), core::mem::transmute(result)) + JsCreateArray(length, core::mem::transmute(result)) } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] @@ -61,7 +61,7 @@ where P1: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsCreateContext(runtime : *const core::ffi::c_void, debugapplication : * mut core::ffi::c_void, newcontext : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateContext(core::mem::transmute(runtime), debugapplication.param().abi(), core::mem::transmute(newcontext)) + JsCreateContext(runtime, debugapplication.param().abi(), core::mem::transmute(newcontext)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] @@ -71,12 +71,12 @@ where P1: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsCreateContext(runtime : *const core::ffi::c_void, debugapplication : * mut core::ffi::c_void, newcontext : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateContext(core::mem::transmute(runtime), debugapplication.param().abi(), core::mem::transmute(newcontext)) + JsCreateContext(runtime, debugapplication.param().abi(), core::mem::transmute(newcontext)) } #[inline] pub unsafe fn JsCreateError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateError(message : *const core::ffi::c_void, error : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateError(core::mem::transmute(message), core::mem::transmute(error)) + JsCreateError(message, core::mem::transmute(error)) } #[inline] pub unsafe fn JsCreateExternalObject(data: Option<*const core::ffi::c_void>, finalizecallback: Option, object: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -86,7 +86,7 @@ pub unsafe fn JsCreateExternalObject(data: Option<*const core::ffi::c_void>, fin #[inline] pub unsafe fn JsCreateFunction(nativefunction: JsNativeFunction, callbackstate: Option<*const core::ffi::c_void>, function: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateFunction(nativefunction : JsNativeFunction, callbackstate : *const core::ffi::c_void, function : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateFunction(core::mem::transmute(nativefunction), core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(function)) + JsCreateFunction(nativefunction, core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(function)) } #[inline] pub unsafe fn JsCreateObject(object: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -96,67 +96,67 @@ pub unsafe fn JsCreateObject(object: *mut *mut core::ffi::c_void) -> JsErrorCode #[inline] pub unsafe fn JsCreateRangeError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateRangeError(message : *const core::ffi::c_void, error : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateRangeError(core::mem::transmute(message), core::mem::transmute(error)) + JsCreateRangeError(message, core::mem::transmute(error)) } #[inline] pub unsafe fn JsCreateReferenceError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateReferenceError(message : *const core::ffi::c_void, error : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateReferenceError(core::mem::transmute(message), core::mem::transmute(error)) + JsCreateReferenceError(message, core::mem::transmute(error)) } #[inline] pub unsafe fn JsCreateRuntime(attributes: JsRuntimeAttributes, runtimeversion: JsRuntimeVersion, threadservice: Option, runtime: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateRuntime(attributes : JsRuntimeAttributes, runtimeversion : JsRuntimeVersion, threadservice : JsThreadServiceCallback, runtime : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateRuntime(core::mem::transmute(attributes), core::mem::transmute(runtimeversion), core::mem::transmute(threadservice.unwrap_or(core::mem::zeroed())), core::mem::transmute(runtime)) + JsCreateRuntime(attributes, runtimeversion, core::mem::transmute(threadservice.unwrap_or(core::mem::zeroed())), core::mem::transmute(runtime)) } #[inline] pub unsafe fn JsCreateSyntaxError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateSyntaxError(message : *const core::ffi::c_void, error : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateSyntaxError(core::mem::transmute(message), core::mem::transmute(error)) + JsCreateSyntaxError(message, core::mem::transmute(error)) } #[inline] pub unsafe fn JsCreateTypeError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateTypeError(message : *const core::ffi::c_void, error : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateTypeError(core::mem::transmute(message), core::mem::transmute(error)) + JsCreateTypeError(message, core::mem::transmute(error)) } #[inline] pub unsafe fn JsCreateURIError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsCreateURIError(message : *const core::ffi::c_void, error : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsCreateURIError(core::mem::transmute(message), core::mem::transmute(error)) + JsCreateURIError(message, core::mem::transmute(error)) } #[inline] pub unsafe fn JsDefineProperty(object: *const core::ffi::c_void, propertyid: *const core::ffi::c_void, propertydescriptor: *const core::ffi::c_void, result: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsDefineProperty(object : *const core::ffi::c_void, propertyid : *const core::ffi::c_void, propertydescriptor : *const core::ffi::c_void, result : *mut bool) -> JsErrorCode); - JsDefineProperty(core::mem::transmute(object), core::mem::transmute(propertyid), core::mem::transmute(propertydescriptor), core::mem::transmute(result)) + JsDefineProperty(object, propertyid, propertydescriptor, core::mem::transmute(result)) } #[inline] pub unsafe fn JsDeleteIndexedProperty(object: *const core::ffi::c_void, index: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsDeleteIndexedProperty(object : *const core::ffi::c_void, index : *const core::ffi::c_void) -> JsErrorCode); - JsDeleteIndexedProperty(core::mem::transmute(object), core::mem::transmute(index)) + JsDeleteIndexedProperty(object, index) } #[inline] pub unsafe fn JsDeleteProperty(object: *const core::ffi::c_void, propertyid: *const core::ffi::c_void, usestrictrules: u8, result: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsDeleteProperty(object : *const core::ffi::c_void, propertyid : *const core::ffi::c_void, usestrictrules : u8, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsDeleteProperty(core::mem::transmute(object), core::mem::transmute(propertyid), core::mem::transmute(usestrictrules), core::mem::transmute(result)) + JsDeleteProperty(object, propertyid, usestrictrules, core::mem::transmute(result)) } #[inline] pub unsafe fn JsDisableRuntimeExecution(runtime: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsDisableRuntimeExecution(runtime : *const core::ffi::c_void) -> JsErrorCode); - JsDisableRuntimeExecution(core::mem::transmute(runtime)) + JsDisableRuntimeExecution(runtime) } #[inline] pub unsafe fn JsDisposeRuntime(runtime: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsDisposeRuntime(runtime : *const core::ffi::c_void) -> JsErrorCode); - JsDisposeRuntime(core::mem::transmute(runtime)) + JsDisposeRuntime(runtime) } #[inline] pub unsafe fn JsDoubleToNumber(doublevalue: f64, value: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsDoubleToNumber(doublevalue : f64, value : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsDoubleToNumber(core::mem::transmute(doublevalue), core::mem::transmute(value)) + JsDoubleToNumber(doublevalue, core::mem::transmute(value)) } #[inline] pub unsafe fn JsEnableRuntimeExecution(runtime: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsEnableRuntimeExecution(runtime : *const core::ffi::c_void) -> JsErrorCode); - JsEnableRuntimeExecution(core::mem::transmute(runtime)) + JsEnableRuntimeExecution(runtime) } #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] #[inline] @@ -167,7 +167,7 @@ pub unsafe fn JsEnumerateHeap(enumerator: *mut Option JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsEquals(object1 : *const core::ffi::c_void, object2 : *const core::ffi::c_void, result : *mut bool) -> JsErrorCode); - JsEquals(core::mem::transmute(object1), core::mem::transmute(object2), core::mem::transmute(result)) + JsEquals(object1, object2, core::mem::transmute(result)) } #[inline] pub unsafe fn JsGetAndClearException(exception: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -182,12 +182,12 @@ pub unsafe fn JsGetCurrentContext(currentcontext: *mut *mut core::ffi::c_void) - #[inline] pub unsafe fn JsGetExtensionAllowed(object: *const core::ffi::c_void, value: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetExtensionAllowed(object : *const core::ffi::c_void, value : *mut bool) -> JsErrorCode); - JsGetExtensionAllowed(core::mem::transmute(object), core::mem::transmute(value)) + JsGetExtensionAllowed(object, core::mem::transmute(value)) } #[inline] pub unsafe fn JsGetExternalData(object: *const core::ffi::c_void, externaldata: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetExternalData(object : *const core::ffi::c_void, externaldata : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetExternalData(core::mem::transmute(object), core::mem::transmute(externaldata)) + JsGetExternalData(object, core::mem::transmute(externaldata)) } #[inline] pub unsafe fn JsGetFalseValue(falsevalue: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -202,7 +202,7 @@ pub unsafe fn JsGetGlobalObject(globalobject: *mut *mut core::ffi::c_void) -> Js #[inline] pub unsafe fn JsGetIndexedProperty(object: *const core::ffi::c_void, index: *const core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetIndexedProperty(object : *const core::ffi::c_void, index : *const core::ffi::c_void, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetIndexedProperty(core::mem::transmute(object), core::mem::transmute(index), core::mem::transmute(result)) + JsGetIndexedProperty(object, index, core::mem::transmute(result)) } #[inline] pub unsafe fn JsGetNullValue(nullvalue: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -212,17 +212,17 @@ pub unsafe fn JsGetNullValue(nullvalue: *mut *mut core::ffi::c_void) -> JsErrorC #[inline] pub unsafe fn JsGetOwnPropertyDescriptor(object: *const core::ffi::c_void, propertyid: *const core::ffi::c_void, propertydescriptor: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetOwnPropertyDescriptor(object : *const core::ffi::c_void, propertyid : *const core::ffi::c_void, propertydescriptor : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetOwnPropertyDescriptor(core::mem::transmute(object), core::mem::transmute(propertyid), core::mem::transmute(propertydescriptor)) + JsGetOwnPropertyDescriptor(object, propertyid, core::mem::transmute(propertydescriptor)) } #[inline] pub unsafe fn JsGetOwnPropertyNames(object: *const core::ffi::c_void, propertynames: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetOwnPropertyNames(object : *const core::ffi::c_void, propertynames : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetOwnPropertyNames(core::mem::transmute(object), core::mem::transmute(propertynames)) + JsGetOwnPropertyNames(object, core::mem::transmute(propertynames)) } #[inline] pub unsafe fn JsGetProperty(object: *const core::ffi::c_void, propertyid: *const core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetProperty(object : *const core::ffi::c_void, propertyid : *const core::ffi::c_void, value : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetProperty(core::mem::transmute(object), core::mem::transmute(propertyid), core::mem::transmute(value)) + JsGetProperty(object, propertyid, core::mem::transmute(value)) } #[inline] pub unsafe fn JsGetPropertyIdFromName(name: P0, propertyid: *mut *mut core::ffi::c_void) -> JsErrorCode @@ -235,32 +235,32 @@ where #[inline] pub unsafe fn JsGetPropertyNameFromId(propertyid: *const core::ffi::c_void, name: *mut *mut u16) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetPropertyNameFromId(propertyid : *const core::ffi::c_void, name : *mut *mut u16) -> JsErrorCode); - JsGetPropertyNameFromId(core::mem::transmute(propertyid), core::mem::transmute(name)) + JsGetPropertyNameFromId(propertyid, core::mem::transmute(name)) } #[inline] pub unsafe fn JsGetPrototype(object: *const core::ffi::c_void, prototypeobject: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetPrototype(object : *const core::ffi::c_void, prototypeobject : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetPrototype(core::mem::transmute(object), core::mem::transmute(prototypeobject)) + JsGetPrototype(object, core::mem::transmute(prototypeobject)) } #[inline] pub unsafe fn JsGetRuntime(context: *const core::ffi::c_void, runtime: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetRuntime(context : *const core::ffi::c_void, runtime : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetRuntime(core::mem::transmute(context), core::mem::transmute(runtime)) + JsGetRuntime(context, core::mem::transmute(runtime)) } #[inline] pub unsafe fn JsGetRuntimeMemoryLimit(runtime: *const core::ffi::c_void, memorylimit: *mut usize) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetRuntimeMemoryLimit(runtime : *const core::ffi::c_void, memorylimit : *mut usize) -> JsErrorCode); - JsGetRuntimeMemoryLimit(core::mem::transmute(runtime), core::mem::transmute(memorylimit)) + JsGetRuntimeMemoryLimit(runtime, core::mem::transmute(memorylimit)) } #[inline] pub unsafe fn JsGetRuntimeMemoryUsage(runtime: *const core::ffi::c_void, memoryusage: *mut usize) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetRuntimeMemoryUsage(runtime : *const core::ffi::c_void, memoryusage : *mut usize) -> JsErrorCode); - JsGetRuntimeMemoryUsage(core::mem::transmute(runtime), core::mem::transmute(memoryusage)) + JsGetRuntimeMemoryUsage(runtime, core::mem::transmute(memoryusage)) } #[inline] pub unsafe fn JsGetStringLength(stringvalue: *const core::ffi::c_void, length: *mut i32) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetStringLength(stringvalue : *const core::ffi::c_void, length : *mut i32) -> JsErrorCode); - JsGetStringLength(core::mem::transmute(stringvalue), core::mem::transmute(length)) + JsGetStringLength(stringvalue, core::mem::transmute(length)) } #[inline] pub unsafe fn JsGetTrueValue(truevalue: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -275,7 +275,7 @@ pub unsafe fn JsGetUndefinedValue(undefinedvalue: *mut *mut core::ffi::c_void) - #[inline] pub unsafe fn JsGetValueType(value: *const core::ffi::c_void, r#type: *mut JsValueType) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsGetValueType(value : *const core::ffi::c_void, r#type : *mut JsValueType) -> JsErrorCode); - JsGetValueType(core::mem::transmute(value), core::mem::transmute(r#type)) + JsGetValueType(value, core::mem::transmute(r#type)) } #[inline] pub unsafe fn JsHasException(hasexception: *mut bool) -> JsErrorCode { @@ -285,17 +285,17 @@ pub unsafe fn JsHasException(hasexception: *mut bool) -> JsErrorCode { #[inline] pub unsafe fn JsHasExternalData(object: *const core::ffi::c_void, value: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsHasExternalData(object : *const core::ffi::c_void, value : *mut bool) -> JsErrorCode); - JsHasExternalData(core::mem::transmute(object), core::mem::transmute(value)) + JsHasExternalData(object, core::mem::transmute(value)) } #[inline] pub unsafe fn JsHasIndexedProperty(object: *const core::ffi::c_void, index: *const core::ffi::c_void, result: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsHasIndexedProperty(object : *const core::ffi::c_void, index : *const core::ffi::c_void, result : *mut bool) -> JsErrorCode); - JsHasIndexedProperty(core::mem::transmute(object), core::mem::transmute(index), core::mem::transmute(result)) + JsHasIndexedProperty(object, index, core::mem::transmute(result)) } #[inline] pub unsafe fn JsHasProperty(object: *const core::ffi::c_void, propertyid: *const core::ffi::c_void, hasproperty: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsHasProperty(object : *const core::ffi::c_void, propertyid : *const core::ffi::c_void, hasproperty : *mut bool) -> JsErrorCode); - JsHasProperty(core::mem::transmute(object), core::mem::transmute(propertyid), core::mem::transmute(hasproperty)) + JsHasProperty(object, propertyid, core::mem::transmute(hasproperty)) } #[inline] pub unsafe fn JsIdle(nextidletick: Option<*mut u32>) -> JsErrorCode { @@ -305,7 +305,7 @@ pub unsafe fn JsIdle(nextidletick: Option<*mut u32>) -> JsErrorCode { #[inline] pub unsafe fn JsIntToNumber(intvalue: i32, value: *mut *mut core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsIntToNumber(intvalue : i32, value : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsIntToNumber(core::mem::transmute(intvalue), core::mem::transmute(value)) + JsIntToNumber(intvalue, core::mem::transmute(value)) } #[inline] pub unsafe fn JsIsEnumeratingHeap(isenumeratingheap: *mut bool) -> JsErrorCode { @@ -315,12 +315,12 @@ pub unsafe fn JsIsEnumeratingHeap(isenumeratingheap: *mut bool) -> JsErrorCode { #[inline] pub unsafe fn JsIsRuntimeExecutionDisabled(runtime: *const core::ffi::c_void, isdisabled: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsIsRuntimeExecutionDisabled(runtime : *const core::ffi::c_void, isdisabled : *mut bool) -> JsErrorCode); - JsIsRuntimeExecutionDisabled(core::mem::transmute(runtime), core::mem::transmute(isdisabled)) + JsIsRuntimeExecutionDisabled(runtime, core::mem::transmute(isdisabled)) } #[inline] pub unsafe fn JsNumberToDouble(value: *const core::ffi::c_void, doublevalue: *mut f64) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsNumberToDouble(value : *const core::ffi::c_void, doublevalue : *mut f64) -> JsErrorCode); - JsNumberToDouble(core::mem::transmute(value), core::mem::transmute(doublevalue)) + JsNumberToDouble(value, core::mem::transmute(doublevalue)) } #[inline] pub unsafe fn JsParseScript(script: P0, sourcecontext: usize, sourceurl: P2, result: *mut *mut core::ffi::c_void) -> JsErrorCode @@ -329,7 +329,7 @@ where P2: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsParseScript(script : windows_core::PCWSTR, sourcecontext : usize, sourceurl : windows_core::PCWSTR, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsParseScript(script.param().abi(), core::mem::transmute(sourcecontext), sourceurl.param().abi(), core::mem::transmute(result)) + JsParseScript(script.param().abi(), sourcecontext, sourceurl.param().abi(), core::mem::transmute(result)) } #[inline] pub unsafe fn JsParseSerializedScript(script: P0, buffer: *const u8, sourcecontext: usize, sourceurl: P3, result: *mut *mut core::ffi::c_void) -> JsErrorCode @@ -338,7 +338,7 @@ where P3: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsParseSerializedScript(script : windows_core::PCWSTR, buffer : *const u8, sourcecontext : usize, sourceurl : windows_core::PCWSTR, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsParseSerializedScript(script.param().abi(), core::mem::transmute(buffer), core::mem::transmute(sourcecontext), sourceurl.param().abi(), core::mem::transmute(result)) + JsParseSerializedScript(script.param().abi(), buffer, sourcecontext, sourceurl.param().abi(), core::mem::transmute(result)) } #[inline] pub unsafe fn JsPointerToString(stringvalue: &[u16], value: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -348,12 +348,12 @@ pub unsafe fn JsPointerToString(stringvalue: &[u16], value: *mut *mut core::ffi: #[inline] pub unsafe fn JsPreventExtension(object: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsPreventExtension(object : *const core::ffi::c_void) -> JsErrorCode); - JsPreventExtension(core::mem::transmute(object)) + JsPreventExtension(object) } #[inline] pub unsafe fn JsRelease(r#ref: *const core::ffi::c_void, count: Option<*mut u32>) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsRelease(r#ref : *const core::ffi::c_void, count : *mut u32) -> JsErrorCode); - JsRelease(core::mem::transmute(r#ref), core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) + JsRelease(r#ref, core::mem::transmute(count.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JsRunScript(script: P0, sourcecontext: usize, sourceurl: P2, result: *mut *mut core::ffi::c_void) -> JsErrorCode @@ -362,7 +362,7 @@ where P2: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsRunScript(script : windows_core::PCWSTR, sourcecontext : usize, sourceurl : windows_core::PCWSTR, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsRunScript(script.param().abi(), core::mem::transmute(sourcecontext), sourceurl.param().abi(), core::mem::transmute(result)) + JsRunScript(script.param().abi(), sourcecontext, sourceurl.param().abi(), core::mem::transmute(result)) } #[inline] pub unsafe fn JsRunSerializedScript(script: P0, buffer: *const u8, sourcecontext: usize, sourceurl: P3, result: *mut *mut core::ffi::c_void) -> JsErrorCode @@ -371,7 +371,7 @@ where P3: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsRunSerializedScript(script : windows_core::PCWSTR, buffer : *const u8, sourcecontext : usize, sourceurl : windows_core::PCWSTR, result : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsRunSerializedScript(script.param().abi(), core::mem::transmute(buffer), core::mem::transmute(sourcecontext), sourceurl.param().abi(), core::mem::transmute(result)) + JsRunSerializedScript(script.param().abi(), buffer, sourcecontext, sourceurl.param().abi(), core::mem::transmute(result)) } #[inline] pub unsafe fn JsSerializeScript(script: P0, buffer: Option<*mut u8>, buffersize: *mut u32) -> JsErrorCode @@ -384,47 +384,47 @@ where #[inline] pub unsafe fn JsSetCurrentContext(context: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetCurrentContext(context : *const core::ffi::c_void) -> JsErrorCode); - JsSetCurrentContext(core::mem::transmute(context)) + JsSetCurrentContext(context) } #[inline] pub unsafe fn JsSetException(exception: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetException(exception : *const core::ffi::c_void) -> JsErrorCode); - JsSetException(core::mem::transmute(exception)) + JsSetException(exception) } #[inline] pub unsafe fn JsSetExternalData(object: *const core::ffi::c_void, externaldata: Option<*const core::ffi::c_void>) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetExternalData(object : *const core::ffi::c_void, externaldata : *const core::ffi::c_void) -> JsErrorCode); - JsSetExternalData(core::mem::transmute(object), core::mem::transmute(externaldata.unwrap_or(core::mem::zeroed()))) + JsSetExternalData(object, core::mem::transmute(externaldata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn JsSetIndexedProperty(object: *const core::ffi::c_void, index: *const core::ffi::c_void, value: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetIndexedProperty(object : *const core::ffi::c_void, index : *const core::ffi::c_void, value : *const core::ffi::c_void) -> JsErrorCode); - JsSetIndexedProperty(core::mem::transmute(object), core::mem::transmute(index), core::mem::transmute(value)) + JsSetIndexedProperty(object, index, value) } #[inline] pub unsafe fn JsSetProperty(object: *const core::ffi::c_void, propertyid: *const core::ffi::c_void, value: *const core::ffi::c_void, usestrictrules: u8) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetProperty(object : *const core::ffi::c_void, propertyid : *const core::ffi::c_void, value : *const core::ffi::c_void, usestrictrules : u8) -> JsErrorCode); - JsSetProperty(core::mem::transmute(object), core::mem::transmute(propertyid), core::mem::transmute(value), core::mem::transmute(usestrictrules)) + JsSetProperty(object, propertyid, value, usestrictrules) } #[inline] pub unsafe fn JsSetPrototype(object: *const core::ffi::c_void, prototypeobject: *const core::ffi::c_void) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetPrototype(object : *const core::ffi::c_void, prototypeobject : *const core::ffi::c_void) -> JsErrorCode); - JsSetPrototype(core::mem::transmute(object), core::mem::transmute(prototypeobject)) + JsSetPrototype(object, prototypeobject) } #[inline] pub unsafe fn JsSetRuntimeBeforeCollectCallback(runtime: *const core::ffi::c_void, callbackstate: Option<*const core::ffi::c_void>, beforecollectcallback: JsBeforeCollectCallback) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetRuntimeBeforeCollectCallback(runtime : *const core::ffi::c_void, callbackstate : *const core::ffi::c_void, beforecollectcallback : JsBeforeCollectCallback) -> JsErrorCode); - JsSetRuntimeBeforeCollectCallback(core::mem::transmute(runtime), core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(beforecollectcallback)) + JsSetRuntimeBeforeCollectCallback(runtime, core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), beforecollectcallback) } #[inline] pub unsafe fn JsSetRuntimeMemoryAllocationCallback(runtime: *const core::ffi::c_void, callbackstate: Option<*const core::ffi::c_void>, allocationcallback: JsMemoryAllocationCallback) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetRuntimeMemoryAllocationCallback(runtime : *const core::ffi::c_void, callbackstate : *const core::ffi::c_void, allocationcallback : JsMemoryAllocationCallback) -> JsErrorCode); - JsSetRuntimeMemoryAllocationCallback(core::mem::transmute(runtime), core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(allocationcallback)) + JsSetRuntimeMemoryAllocationCallback(runtime, core::mem::transmute(callbackstate.unwrap_or(core::mem::zeroed())), allocationcallback) } #[inline] pub unsafe fn JsSetRuntimeMemoryLimit(runtime: *const core::ffi::c_void, memorylimit: usize) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsSetRuntimeMemoryLimit(runtime : *const core::ffi::c_void, memorylimit : usize) -> JsErrorCode); - JsSetRuntimeMemoryLimit(core::mem::transmute(runtime), core::mem::transmute(memorylimit)) + JsSetRuntimeMemoryLimit(runtime, memorylimit) } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] @@ -453,28 +453,28 @@ where P0: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsStartProfiling(callback : * mut core::ffi::c_void, eventmask : super::Diagnostics::Debug::ActiveScript:: PROFILER_EVENT_MASK, context : u32) -> JsErrorCode); - JsStartProfiling(callback.param().abi(), core::mem::transmute(eventmask), core::mem::transmute(context)) + JsStartProfiling(callback.param().abi(), eventmask, context) } #[inline] pub unsafe fn JsStopProfiling(reason: windows_core::HRESULT) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsStopProfiling(reason : windows_core::HRESULT) -> JsErrorCode); - JsStopProfiling(core::mem::transmute(reason)) + JsStopProfiling(reason) } #[inline] pub unsafe fn JsStrictEquals(object1: *const core::ffi::c_void, object2: *const core::ffi::c_void, result: *mut bool) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsStrictEquals(object1 : *const core::ffi::c_void, object2 : *const core::ffi::c_void, result : *mut bool) -> JsErrorCode); - JsStrictEquals(core::mem::transmute(object1), core::mem::transmute(object2), core::mem::transmute(result)) + JsStrictEquals(object1, object2, core::mem::transmute(result)) } #[inline] pub unsafe fn JsStringToPointer(value: *const core::ffi::c_void, stringvalue: *mut *mut u16, stringlength: *mut usize) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsStringToPointer(value : *const core::ffi::c_void, stringvalue : *mut *mut u16, stringlength : *mut usize) -> JsErrorCode); - JsStringToPointer(core::mem::transmute(value), core::mem::transmute(stringvalue), core::mem::transmute(stringlength)) + JsStringToPointer(value, core::mem::transmute(stringvalue), core::mem::transmute(stringlength)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn JsValueToVariant(object: *const core::ffi::c_void, variant: *mut super::Variant::VARIANT) -> JsErrorCode { windows_targets::link!("chakra.dll" "system" fn JsValueToVariant(object : *const core::ffi::c_void, variant : *mut super::Variant:: VARIANT) -> JsErrorCode); - JsValueToVariant(core::mem::transmute(object), core::mem::transmute(variant)) + JsValueToVariant(object, core::mem::transmute(variant)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/Kernel/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Kernel/mod.rs index 78026a6655..197d62f81c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Kernel/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Kernel/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn RtlFirstEntrySList(listhead: *const SLIST_HEADER) -> *mut SLIST_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlFirstEntrySList(listhead : *const SLIST_HEADER) -> *mut SLIST_ENTRY); - RtlFirstEntrySList(core::mem::transmute(listhead)) + RtlFirstEntrySList(listhead) } #[inline] pub unsafe fn RtlInitializeSListHead() -> SLIST_HEADER { @@ -28,12 +28,12 @@ pub unsafe fn RtlInterlockedPushEntrySList(listhead: *mut SLIST_HEADER, listentr #[inline] pub unsafe fn RtlInterlockedPushListSListEx(listhead: *mut SLIST_HEADER, list: *mut SLIST_ENTRY, listend: *mut SLIST_ENTRY, count: u32) -> *mut SLIST_ENTRY { windows_targets::link!("ntdll.dll" "system" fn RtlInterlockedPushListSListEx(listhead : *mut SLIST_HEADER, list : *mut SLIST_ENTRY, listend : *mut SLIST_ENTRY, count : u32) -> *mut SLIST_ENTRY); - RtlInterlockedPushListSListEx(core::mem::transmute(listhead), core::mem::transmute(list), core::mem::transmute(listend), core::mem::transmute(count)) + RtlInterlockedPushListSListEx(core::mem::transmute(listhead), core::mem::transmute(list), core::mem::transmute(listend), count) } #[inline] pub unsafe fn RtlQueryDepthSList(listhead: *const SLIST_HEADER) -> u16 { windows_targets::link!("ntdll.dll" "system" fn RtlQueryDepthSList(listhead : *const SLIST_HEADER) -> u16); - RtlQueryDepthSList(core::mem::transmute(listhead)) + RtlQueryDepthSList(listhead) } pub const BackOffice: SUITE_TYPE = SUITE_TYPE(2i32); pub const Blade: SUITE_TYPE = SUITE_TYPE(10i32); diff --git a/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs b/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs index a4e5824b61..0bbe962eb4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs @@ -27,17 +27,17 @@ where #[inline] pub unsafe fn DisableThreadLibraryCalls(hlibmodule: super::super::Foundation::HMODULE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DisableThreadLibraryCalls(hlibmodule : super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); - DisableThreadLibraryCalls(core::mem::transmute(hlibmodule)).ok() + DisableThreadLibraryCalls(hlibmodule).ok() } #[inline] pub unsafe fn EndUpdateResourceA(hupdate: super::super::Foundation::HANDLE, fdiscard: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceA(hupdate : super::super::Foundation:: HANDLE, fdiscard : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EndUpdateResourceA(core::mem::transmute(hupdate), fdiscard.into()).ok() + EndUpdateResourceA(hupdate, fdiscard.into()).ok() } #[inline] pub unsafe fn EndUpdateResourceW(hupdate: super::super::Foundation::HANDLE, fdiscard: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceW(hupdate : super::super::Foundation:: HANDLE, fdiscard : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EndUpdateResourceW(core::mem::transmute(hupdate), fdiscard.into()).ok() + EndUpdateResourceW(hupdate, fdiscard.into()).ok() } #[inline] pub unsafe fn EnumResourceLanguagesA(hmodule: Option, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCA, lparam: isize) -> windows_core::Result<()> @@ -46,7 +46,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, lpenumfunc : ENUMRESLANGPROCA, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceLanguagesA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumResourceLanguagesA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceLanguagesExA(hmodule: Option, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCA, lparam: Option, dwflags: u32, langid: u16) -> windows_core::Result<()> @@ -55,7 +55,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, lpenumfunc : ENUMRESLANGPROCA, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); - EnumResourceLanguagesExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(langid)).ok() + EnumResourceLanguagesExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), lpenumfunc, core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceLanguagesExW(hmodule: Option, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCW, lparam: Option, dwflags: u32, langid: u16) -> windows_core::Result<()> @@ -64,7 +64,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpenumfunc : ENUMRESLANGPROCW, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); - EnumResourceLanguagesExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(langid)).ok() + EnumResourceLanguagesExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), lpenumfunc, core::mem::transmute(lparam.unwrap_or(core::mem::zeroed())), dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceLanguagesW(hmodule: Option, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCW, lparam: isize) -> windows_core::Result<()> @@ -73,7 +73,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpenumfunc : ENUMRESLANGPROCW, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceLanguagesW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumResourceLanguagesW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceNamesA(hmodule: Option, lptype: P1, lpenumfunc: ENUMRESNAMEPROCA, lparam: isize) -> windows_core::Result<()> @@ -81,7 +81,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpenumfunc : ENUMRESNAMEPROCA, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceNamesA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumResourceNamesA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceNamesExA(hmodule: Option, lptype: P1, lpenumfunc: ENUMRESNAMEPROCA, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> @@ -89,7 +89,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpenumfunc : ENUMRESNAMEPROCA, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); - EnumResourceNamesExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam), core::mem::transmute(dwflags), core::mem::transmute(langid)).ok() + EnumResourceNamesExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceNamesExW(hmodule: Option, lptype: P1, lpenumfunc: ENUMRESNAMEPROCW, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> @@ -97,7 +97,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpenumfunc : ENUMRESNAMEPROCW, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); - EnumResourceNamesExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam), core::mem::transmute(dwflags), core::mem::transmute(langid)).ok() + EnumResourceNamesExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceNamesW(hmodule: Option, lptype: P1, lpenumfunc: ENUMRESNAMEPROCW, lparam: isize) -> super::super::Foundation::BOOL @@ -105,27 +105,27 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpenumfunc : ENUMRESNAMEPROCW, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceNamesW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)) + EnumResourceNamesW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpenumfunc, lparam) } #[inline] pub unsafe fn EnumResourceTypesA(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCA, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceTypesA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumResourceTypesA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceTypesExA(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCA, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesExA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); - EnumResourceTypesExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam), core::mem::transmute(dwflags), core::mem::transmute(langid)).ok() + EnumResourceTypesExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceTypesExW(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCW, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesExW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); - EnumResourceTypesExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam), core::mem::transmute(dwflags), core::mem::transmute(langid)).ok() + EnumResourceTypesExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceTypesW(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCW, lparam: isize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceTypesW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumResourceTypesW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn FindResourceA(hmodule: Option, lpname: P1, lptype: P2) -> windows_core::Result @@ -144,7 +144,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindResourceExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, wlanguage : u16) -> super::super::Foundation:: HRSRC); - let result__ = FindResourceExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(wlanguage)); + let result__ = FindResourceExA(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), wlanguage); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -154,7 +154,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindResourceExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, wlanguage : u16) -> super::super::Foundation:: HRSRC); - FindResourceExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(wlanguage)) + FindResourceExW(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), lptype.param().abi(), lpname.param().abi(), wlanguage) } #[inline] pub unsafe fn FindResourceW(hmodule: Option, lpname: P1, lptype: P2) -> super::super::Foundation::HRSRC @@ -168,12 +168,12 @@ where #[inline] pub unsafe fn FreeLibraryAndExitThread(hlibmodule: super::super::Foundation::HMODULE, dwexitcode: u32) -> ! { windows_targets::link!("kernel32.dll" "system" fn FreeLibraryAndExitThread(hlibmodule : super::super::Foundation:: HMODULE, dwexitcode : u32) -> !); - FreeLibraryAndExitThread(core::mem::transmute(hlibmodule), core::mem::transmute(dwexitcode)) + FreeLibraryAndExitThread(hlibmodule, dwexitcode) } #[inline] pub unsafe fn FreeResource(hresdata: super::super::Foundation::HGLOBAL) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn FreeResource(hresdata : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); - FreeResource(core::mem::transmute(hresdata)) + FreeResource(hresdata) } #[inline] pub unsafe fn GetDllDirectoryA(lpbuffer: Option<&mut [u8]>) -> u32 { @@ -210,7 +210,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleExA(dwflags : u32, lpmodulename : windows_core::PCSTR, phmodule : *mut super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); - GetModuleHandleExA(core::mem::transmute(dwflags), lpmodulename.param().abi(), core::mem::transmute(phmodule)).ok() + GetModuleHandleExA(dwflags, lpmodulename.param().abi(), core::mem::transmute(phmodule)).ok() } #[inline] pub unsafe fn GetModuleHandleExW(dwflags: u32, lpmodulename: P1, phmodule: *mut super::super::Foundation::HMODULE) -> windows_core::Result<()> @@ -218,7 +218,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleExW(dwflags : u32, lpmodulename : windows_core::PCWSTR, phmodule : *mut super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); - GetModuleHandleExW(core::mem::transmute(dwflags), lpmodulename.param().abi(), core::mem::transmute(phmodule)).ok() + GetModuleHandleExW(dwflags, lpmodulename.param().abi(), core::mem::transmute(phmodule)).ok() } #[inline] pub unsafe fn GetModuleHandleW(lpmodulename: P0) -> windows_core::Result @@ -235,7 +235,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcAddress(hmodule : super::super::Foundation:: HMODULE, lpprocname : windows_core::PCSTR) -> super::super::Foundation:: FARPROC); - GetProcAddress(core::mem::transmute(hmodule), lpprocname.param().abi()) + GetProcAddress(hmodule, lpprocname.param().abi()) } #[inline] pub unsafe fn LoadLibraryA(lplibfilename: P0) -> windows_core::Result @@ -252,7 +252,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LoadLibraryExA(lplibfilename : windows_core::PCSTR, hfile : super::super::Foundation:: HANDLE, dwflags : LOAD_LIBRARY_FLAGS) -> super::super::Foundation:: HMODULE); - let result__ = LoadLibraryExA(lplibfilename.param().abi(), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)); + let result__ = LoadLibraryExA(lplibfilename.param().abi(), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), dwflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -261,7 +261,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LoadLibraryExW(lplibfilename : windows_core::PCWSTR, hfile : super::super::Foundation:: HANDLE, dwflags : LOAD_LIBRARY_FLAGS) -> super::super::Foundation:: HMODULE); - let result__ = LoadLibraryExW(lplibfilename.param().abi(), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)); + let result__ = LoadLibraryExW(lplibfilename.param().abi(), core::mem::transmute(hfile.unwrap_or(core::mem::zeroed())), dwflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -279,7 +279,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LoadModule(lpmodulename : windows_core::PCSTR, lpparameterblock : *const core::ffi::c_void) -> u32); - LoadModule(lpmodulename.param().abi(), core::mem::transmute(lpparameterblock)) + LoadModule(lpmodulename.param().abi(), lpparameterblock) } #[inline] pub unsafe fn LoadPackagedLibrary(lpwlibfilename: P0, reserved: Option) -> windows_core::Result @@ -293,13 +293,13 @@ where #[inline] pub unsafe fn LoadResource(hmodule: Option, hresinfo: super::super::Foundation::HRSRC) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn LoadResource(hmodule : super::super::Foundation:: HMODULE, hresinfo : super::super::Foundation:: HRSRC) -> super::super::Foundation:: HGLOBAL); - let result__ = LoadResource(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(hresinfo)); + let result__ = LoadResource(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), hresinfo); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LockResource(hresdata: super::super::Foundation::HGLOBAL) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn LockResource(hresdata : super::super::Foundation:: HGLOBAL) -> *mut core::ffi::c_void); - LockResource(core::mem::transmute(hresdata)) + LockResource(hresdata) } #[inline] pub unsafe fn QueryOptionalDelayLoadedAPI(hparentmodule: super::super::Foundation::HMODULE, lpdllname: P1, lpprocname: P2, reserved: Option) -> windows_core::Result<()> @@ -308,17 +308,17 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-libraryloader-l2-1-0.dll" "system" fn QueryOptionalDelayLoadedAPI(hparentmodule : super::super::Foundation:: HMODULE, lpdllname : windows_core::PCSTR, lpprocname : windows_core::PCSTR, reserved : u32) -> super::super::Foundation:: BOOL); - QueryOptionalDelayLoadedAPI(core::mem::transmute(hparentmodule), lpdllname.param().abi(), lpprocname.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() + QueryOptionalDelayLoadedAPI(hparentmodule, lpdllname.param().abi(), lpprocname.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RemoveDllDirectory(cookie: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn RemoveDllDirectory(cookie : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - RemoveDllDirectory(core::mem::transmute(cookie)).ok() + RemoveDllDirectory(cookie).ok() } #[inline] pub unsafe fn SetDefaultDllDirectories(directoryflags: LOAD_LIBRARY_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetDefaultDllDirectories(directoryflags : LOAD_LIBRARY_FLAGS) -> super::super::Foundation:: BOOL); - SetDefaultDllDirectories(core::mem::transmute(directoryflags)).ok() + SetDefaultDllDirectories(directoryflags).ok() } #[inline] pub unsafe fn SetDllDirectoryA(lppathname: P0) -> windows_core::Result<()> @@ -339,7 +339,7 @@ where #[inline] pub unsafe fn SizeofResource(hmodule: Option, hresinfo: super::super::Foundation::HRSRC) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SizeofResource(hmodule : super::super::Foundation:: HMODULE, hresinfo : super::super::Foundation:: HRSRC) -> u32); - SizeofResource(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(hresinfo)) + SizeofResource(core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), hresinfo) } #[inline] pub unsafe fn UpdateResourceA(hupdate: super::super::Foundation::HANDLE, lptype: P1, lpname: P2, wlanguage: u16, lpdata: Option<*const core::ffi::c_void>, cb: u32) -> windows_core::Result<()> @@ -348,7 +348,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn UpdateResourceA(hupdate : super::super::Foundation:: HANDLE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, wlanguage : u16, lpdata : *const core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); - UpdateResourceA(core::mem::transmute(hupdate), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(wlanguage), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cb)).ok() + UpdateResourceA(hupdate, lptype.param().abi(), lpname.param().abi(), wlanguage, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), cb).ok() } #[inline] pub unsafe fn UpdateResourceW(hupdate: super::super::Foundation::HANDLE, lptype: P1, lpname: P2, wlanguage: u16, lpdata: Option<*const core::ffi::c_void>, cb: u32) -> windows_core::Result<()> @@ -357,7 +357,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn UpdateResourceW(hupdate : super::super::Foundation:: HANDLE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, wlanguage : u16, lpdata : *const core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); - UpdateResourceW(core::mem::transmute(hupdate), lptype.param().abi(), lpname.param().abi(), core::mem::transmute(wlanguage), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cb)).ok() + UpdateResourceW(hupdate, lptype.param().abi(), lpname.param().abi(), wlanguage, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), cb).ok() } pub const CURRENT_IMPORT_REDIRECTION_VERSION: u32 = 1u32; pub const DONT_RESOLVE_DLL_REFERENCES: LOAD_LIBRARY_FLAGS = LOAD_LIBRARY_FLAGS(1u32); diff --git a/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs index ebe4dda7da..fd3dfef4e0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs @@ -5,7 +5,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateMailslotA(lpname : windows_core::PCSTR, nmaxmessagesize : u32, lreadtimeout : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - let result__ = CreateMailslotA(lpname.param().abi(), core::mem::transmute(nmaxmessagesize), core::mem::transmute(lreadtimeout), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))); + let result__ = CreateMailslotA(lpname.param().abi(), nmaxmessagesize, lreadtimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -15,16 +15,16 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateMailslotW(lpname : windows_core::PCWSTR, nmaxmessagesize : u32, lreadtimeout : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - let result__ = CreateMailslotW(lpname.param().abi(), core::mem::transmute(nmaxmessagesize), core::mem::transmute(lreadtimeout), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))); + let result__ = CreateMailslotW(lpname.param().abi(), nmaxmessagesize, lreadtimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetMailslotInfo(hmailslot: super::super::Foundation::HANDLE, lpmaxmessagesize: Option<*mut u32>, lpnextsize: Option<*mut u32>, lpmessagecount: Option<*mut u32>, lpreadtimeout: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lpmaxmessagesize : *mut u32, lpnextsize : *mut u32, lpmessagecount : *mut u32, lpreadtimeout : *mut u32) -> super::super::Foundation:: BOOL); - GetMailslotInfo(core::mem::transmute(hmailslot), core::mem::transmute(lpmaxmessagesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnextsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmessagecount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreadtimeout.unwrap_or(core::mem::zeroed()))).ok() + GetMailslotInfo(hmailslot, core::mem::transmute(lpmaxmessagesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpnextsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmessagecount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreadtimeout.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetMailslotInfo(hmailslot: super::super::Foundation::HANDLE, lreadtimeout: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lreadtimeout : u32) -> super::super::Foundation:: BOOL); - SetMailslotInfo(core::mem::transmute(hmailslot), core::mem::transmute(lreadtimeout)).ok() + SetMailslotInfo(hmailslot, lreadtimeout).ok() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Memory/NonVolatile/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Memory/NonVolatile/mod.rs index c5c0d07c01..d41272fc15 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Memory/NonVolatile/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Memory/NonVolatile/mod.rs @@ -2,43 +2,43 @@ #[inline] pub unsafe fn RtlDrainNonVolatileFlush(nvtoken: *const core::ffi::c_void) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlDrainNonVolatileFlush(nvtoken : *const core::ffi::c_void) -> u32); - RtlDrainNonVolatileFlush(core::mem::transmute(nvtoken)) + RtlDrainNonVolatileFlush(nvtoken) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlFillNonVolatileMemory(nvtoken: *const core::ffi::c_void, nvdestination: *mut core::ffi::c_void, size: usize, value: u8, flags: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFillNonVolatileMemory(nvtoken : *const core::ffi::c_void, nvdestination : *mut core::ffi::c_void, size : usize, value : u8, flags : u32) -> u32); - RtlFillNonVolatileMemory(core::mem::transmute(nvtoken), core::mem::transmute(nvdestination), core::mem::transmute(size), core::mem::transmute(value), core::mem::transmute(flags)) + RtlFillNonVolatileMemory(nvtoken, core::mem::transmute(nvdestination), size, value, flags) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlFlushNonVolatileMemory(nvtoken: *const core::ffi::c_void, nvbuffer: *const core::ffi::c_void, size: usize, flags: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFlushNonVolatileMemory(nvtoken : *const core::ffi::c_void, nvbuffer : *const core::ffi::c_void, size : usize, flags : u32) -> u32); - RtlFlushNonVolatileMemory(core::mem::transmute(nvtoken), core::mem::transmute(nvbuffer), core::mem::transmute(size), core::mem::transmute(flags)) + RtlFlushNonVolatileMemory(nvtoken, nvbuffer, size, flags) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlFlushNonVolatileMemoryRanges(nvtoken: *const core::ffi::c_void, nvranges: &[NV_MEMORY_RANGE], flags: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFlushNonVolatileMemoryRanges(nvtoken : *const core::ffi::c_void, nvranges : *const NV_MEMORY_RANGE, numranges : usize, flags : u32) -> u32); - RtlFlushNonVolatileMemoryRanges(core::mem::transmute(nvtoken), core::mem::transmute(nvranges.as_ptr()), nvranges.len().try_into().unwrap(), core::mem::transmute(flags)) + RtlFlushNonVolatileMemoryRanges(nvtoken, core::mem::transmute(nvranges.as_ptr()), nvranges.len().try_into().unwrap(), flags) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlFreeNonVolatileToken(nvtoken: *const core::ffi::c_void) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlFreeNonVolatileToken(nvtoken : *const core::ffi::c_void) -> u32); - RtlFreeNonVolatileToken(core::mem::transmute(nvtoken)) + RtlFreeNonVolatileToken(nvtoken) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlGetNonVolatileToken(nvbuffer: *const core::ffi::c_void, size: usize, nvtoken: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlGetNonVolatileToken(nvbuffer : *const core::ffi::c_void, size : usize, nvtoken : *mut *mut core::ffi::c_void) -> u32); - RtlGetNonVolatileToken(core::mem::transmute(nvbuffer), core::mem::transmute(size), core::mem::transmute(nvtoken)) + RtlGetNonVolatileToken(nvbuffer, size, core::mem::transmute(nvtoken)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn RtlWriteNonVolatileMemory(nvtoken: *const core::ffi::c_void, nvdestination: *mut core::ffi::c_void, source: *const core::ffi::c_void, size: usize, flags: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlWriteNonVolatileMemory(nvtoken : *const core::ffi::c_void, nvdestination : *mut core::ffi::c_void, source : *const core::ffi::c_void, size : usize, flags : u32) -> u32); - RtlWriteNonVolatileMemory(core::mem::transmute(nvtoken), core::mem::transmute(nvdestination), core::mem::transmute(source), core::mem::transmute(size), core::mem::transmute(flags)) + RtlWriteNonVolatileMemory(nvtoken, core::mem::transmute(nvdestination), source, size, flags) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs index 4914fac5e5..b9d39e1ffc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs @@ -3,22 +3,22 @@ pub mod NonVolatile; #[inline] pub unsafe fn AddSecureMemoryCacheCallback(pfncallback: PSECURE_MEMORY_CACHE_CALLBACK) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AddSecureMemoryCacheCallback(pfncallback : PSECURE_MEMORY_CACHE_CALLBACK) -> super::super::Foundation:: BOOL); - AddSecureMemoryCacheCallback(core::mem::transmute(pfncallback)).ok() + AddSecureMemoryCacheCallback(pfncallback).ok() } #[inline] pub unsafe fn AllocateUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize) -> super::super::Foundation:: BOOL); - AllocateUserPhysicalPages(core::mem::transmute(hprocess), core::mem::transmute(numberofpages), core::mem::transmute(pagearray)).ok() + AllocateUserPhysicalPages(hprocess, core::mem::transmute(numberofpages), core::mem::transmute(pagearray)).ok() } #[inline] pub unsafe fn AllocateUserPhysicalPages2(objecthandle: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn AllocateUserPhysicalPages2(objecthandle : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize, extendedparameters : *mut MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::Foundation:: BOOL); - AllocateUserPhysicalPages2(core::mem::transmute(objecthandle), core::mem::transmute(numberofpages), core::mem::transmute(pagearray), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + AllocateUserPhysicalPages2(objecthandle, core::mem::transmute(numberofpages), core::mem::transmute(pagearray), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn AllocateUserPhysicalPagesNuma(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, nndpreferred: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPagesNuma(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize, nndpreferred : u32) -> super::super::Foundation:: BOOL); - AllocateUserPhysicalPagesNuma(core::mem::transmute(hprocess), core::mem::transmute(numberofpages), core::mem::transmute(pagearray), core::mem::transmute(nndpreferred)).ok() + AllocateUserPhysicalPagesNuma(hprocess, core::mem::transmute(numberofpages), core::mem::transmute(pagearray), nndpreferred).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -27,7 +27,7 @@ where P6: windows_core::Param, { windows_targets::link!("api-ms-win-core-memory-l1-1-7.dll" "system" fn CreateFileMapping2(file : super::super::Foundation:: HANDLE, securityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, desiredaccess : u32, pageprotection : PAGE_PROTECTION_FLAGS, allocationattributes : u32, maximumsize : u64, name : windows_core::PCWSTR, extendedparameters : *mut MEM_EXTENDED_PARAMETER, parametercount : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileMapping2(core::mem::transmute(file), core::mem::transmute(securityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(pageprotection), core::mem::transmute(allocationattributes), core::mem::transmute(maximumsize), name.param().abi(), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())); + let result__ = CreateFileMapping2(file, core::mem::transmute(securityattributes.unwrap_or(core::mem::zeroed())), desiredaccess, pageprotection, allocationattributes, maximumsize, name.param().abi(), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -37,7 +37,7 @@ where P5: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileMappingA(hfile : super::super::Foundation:: HANDLE, lpfilemappingattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flprotect : PAGE_PROTECTION_FLAGS, dwmaximumsizehigh : u32, dwmaximumsizelow : u32, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileMappingA(core::mem::transmute(hfile), core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(flprotect), core::mem::transmute(dwmaximumsizehigh), core::mem::transmute(dwmaximumsizelow), lpname.param().abi()); + let result__ = CreateFileMappingA(hfile, core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -47,7 +47,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileMappingFromApp(hfile : super::super::Foundation:: HANDLE, securityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, pageprotection : PAGE_PROTECTION_FLAGS, maximumsize : u64, name : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileMappingFromApp(core::mem::transmute(hfile), core::mem::transmute(securityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pageprotection), core::mem::transmute(maximumsize), name.param().abi()); + let result__ = CreateFileMappingFromApp(hfile, core::mem::transmute(securityattributes.unwrap_or(core::mem::zeroed())), pageprotection, maximumsize, name.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -57,7 +57,7 @@ where P5: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileMappingNumaA(hfile : super::super::Foundation:: HANDLE, lpfilemappingattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flprotect : PAGE_PROTECTION_FLAGS, dwmaximumsizehigh : u32, dwmaximumsizelow : u32, lpname : windows_core::PCSTR, nndpreferred : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileMappingNumaA(core::mem::transmute(hfile), core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(flprotect), core::mem::transmute(dwmaximumsizehigh), core::mem::transmute(dwmaximumsizelow), lpname.param().abi(), core::mem::transmute(nndpreferred)); + let result__ = CreateFileMappingNumaA(hfile, core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi(), nndpreferred); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -67,7 +67,7 @@ where P5: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileMappingNumaW(hfile : super::super::Foundation:: HANDLE, lpfilemappingattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flprotect : PAGE_PROTECTION_FLAGS, dwmaximumsizehigh : u32, dwmaximumsizelow : u32, lpname : windows_core::PCWSTR, nndpreferred : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileMappingNumaW(core::mem::transmute(hfile), core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(flprotect), core::mem::transmute(dwmaximumsizehigh), core::mem::transmute(dwmaximumsizelow), lpname.param().abi(), core::mem::transmute(nndpreferred)); + let result__ = CreateFileMappingNumaW(hfile, core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi(), nndpreferred); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -77,13 +77,13 @@ where P5: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateFileMappingW(hfile : super::super::Foundation:: HANDLE, lpfilemappingattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flprotect : PAGE_PROTECTION_FLAGS, dwmaximumsizehigh : u32, dwmaximumsizelow : u32, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateFileMappingW(core::mem::transmute(hfile), core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(flprotect), core::mem::transmute(dwmaximumsizehigh), core::mem::transmute(dwmaximumsizelow), lpname.param().abi()); + let result__ = CreateFileMappingW(hfile, core::mem::transmute(lpfilemappingattributes.unwrap_or(core::mem::zeroed())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateMemoryResourceNotification(notificationtype: MEMORY_RESOURCE_NOTIFICATION_TYPE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateMemoryResourceNotification(notificationtype : MEMORY_RESOURCE_NOTIFICATION_TYPE) -> super::super::Foundation:: HANDLE); - let result__ = CreateMemoryResourceNotification(core::mem::transmute(notificationtype)); + let result__ = CreateMemoryResourceNotification(notificationtype); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -94,12 +94,12 @@ pub unsafe fn DiscardVirtualMemory(virtualaddress: &mut [u8]) -> u32 { #[inline] pub unsafe fn FlushViewOfFile(lpbaseaddress: *const core::ffi::c_void, dwnumberofbytestoflush: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FlushViewOfFile(lpbaseaddress : *const core::ffi::c_void, dwnumberofbytestoflush : usize) -> super::super::Foundation:: BOOL); - FlushViewOfFile(core::mem::transmute(lpbaseaddress), core::mem::transmute(dwnumberofbytestoflush)).ok() + FlushViewOfFile(lpbaseaddress, dwnumberofbytestoflush).ok() } #[inline] pub unsafe fn FreeUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *const usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FreeUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); - FreeUserPhysicalPages(core::mem::transmute(hprocess), core::mem::transmute(numberofpages), core::mem::transmute(pagearray)).ok() + FreeUserPhysicalPages(hprocess, core::mem::transmute(numberofpages), pagearray).ok() } #[inline] pub unsafe fn GetLargePageMinimum() -> usize { @@ -125,7 +125,7 @@ pub unsafe fn GetProcessHeaps(processheaps: &mut [super::super::Foundation::HAND #[inline] pub unsafe fn GetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize, flags: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize, flags : *mut u32) -> super::super::Foundation:: BOOL); - GetProcessWorkingSetSizeEx(core::mem::transmute(hprocess), core::mem::transmute(lpminimumworkingsetsize), core::mem::transmute(lpmaximumworkingsetsize), core::mem::transmute(flags)) + GetProcessWorkingSetSizeEx(hprocess, core::mem::transmute(lpminimumworkingsetsize), core::mem::transmute(lpmaximumworkingsetsize), core::mem::transmute(flags)) } #[inline] pub unsafe fn GetSystemFileCacheSize(lpminimumfilecachesize: *mut usize, lpmaximumfilecachesize: *mut usize, lpflags: *mut u32) -> windows_core::Result<()> { @@ -135,116 +135,116 @@ pub unsafe fn GetSystemFileCacheSize(lpminimumfilecachesize: *mut usize, lpmaxim #[inline] pub unsafe fn GetWriteWatch(dwflags: u32, lpbaseaddress: *const core::ffi::c_void, dwregionsize: usize, lpaddresses: Option<*mut *mut core::ffi::c_void>, lpdwcount: Option<*mut usize>, lpdwgranularity: Option<*mut u32>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetWriteWatch(dwflags : u32, lpbaseaddress : *const core::ffi::c_void, dwregionsize : usize, lpaddresses : *mut *mut core::ffi::c_void, lpdwcount : *mut usize, lpdwgranularity : *mut u32) -> u32); - GetWriteWatch(core::mem::transmute(dwflags), core::mem::transmute(lpbaseaddress), core::mem::transmute(dwregionsize), core::mem::transmute(lpaddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwcount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwgranularity.unwrap_or(core::mem::zeroed()))) + GetWriteWatch(dwflags, lpbaseaddress, dwregionsize, core::mem::transmute(lpaddresses.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwcount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwgranularity.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GlobalAlloc(uflags: GLOBAL_ALLOC_FLAGS, dwbytes: usize) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn GlobalAlloc(uflags : GLOBAL_ALLOC_FLAGS, dwbytes : usize) -> super::super::Foundation:: HGLOBAL); - let result__ = GlobalAlloc(core::mem::transmute(uflags), core::mem::transmute(dwbytes)); + let result__ = GlobalAlloc(uflags, dwbytes); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GlobalFlags(hmem: super::super::Foundation::HGLOBAL) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GlobalFlags(hmem : super::super::Foundation:: HGLOBAL) -> u32); - GlobalFlags(core::mem::transmute(hmem)) + GlobalFlags(hmem) } #[inline] pub unsafe fn GlobalHandle(pmem: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn GlobalHandle(pmem : *const core::ffi::c_void) -> super::super::Foundation:: HGLOBAL); - let result__ = GlobalHandle(core::mem::transmute(pmem)); + let result__ = GlobalHandle(pmem); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GlobalLock(hmem: super::super::Foundation::HGLOBAL) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn GlobalLock(hmem : super::super::Foundation:: HGLOBAL) -> *mut core::ffi::c_void); - GlobalLock(core::mem::transmute(hmem)) + GlobalLock(hmem) } #[inline] pub unsafe fn GlobalReAlloc(hmem: super::super::Foundation::HGLOBAL, dwbytes: usize, uflags: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn GlobalReAlloc(hmem : super::super::Foundation:: HGLOBAL, dwbytes : usize, uflags : u32) -> super::super::Foundation:: HGLOBAL); - let result__ = GlobalReAlloc(core::mem::transmute(hmem), core::mem::transmute(dwbytes), core::mem::transmute(uflags)); + let result__ = GlobalReAlloc(hmem, dwbytes, uflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GlobalSize(hmem: super::super::Foundation::HGLOBAL) -> usize { windows_targets::link!("kernel32.dll" "system" fn GlobalSize(hmem : super::super::Foundation:: HGLOBAL) -> usize); - GlobalSize(core::mem::transmute(hmem)) + GlobalSize(hmem) } #[inline] pub unsafe fn GlobalUnlock(hmem: super::super::Foundation::HGLOBAL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GlobalUnlock(hmem : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); - GlobalUnlock(core::mem::transmute(hmem)).ok() + GlobalUnlock(hmem).ok() } #[inline] pub unsafe fn HeapAlloc(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, dwbytes: usize) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn HeapAlloc(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, dwbytes : usize) -> *mut core::ffi::c_void); - HeapAlloc(core::mem::transmute(hheap), core::mem::transmute(dwflags), core::mem::transmute(dwbytes)) + HeapAlloc(hheap, dwflags, dwbytes) } #[inline] pub unsafe fn HeapCompact(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS) -> usize { windows_targets::link!("kernel32.dll" "system" fn HeapCompact(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS) -> usize); - HeapCompact(core::mem::transmute(hheap), core::mem::transmute(dwflags)) + HeapCompact(hheap, dwflags) } #[inline] pub unsafe fn HeapCreate(floptions: HEAP_FLAGS, dwinitialsize: usize, dwmaximumsize: usize) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn HeapCreate(floptions : HEAP_FLAGS, dwinitialsize : usize, dwmaximumsize : usize) -> super::super::Foundation:: HANDLE); - let result__ = HeapCreate(core::mem::transmute(floptions), core::mem::transmute(dwinitialsize), core::mem::transmute(dwmaximumsize)); + let result__ = HeapCreate(floptions, dwinitialsize, dwmaximumsize); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn HeapDestroy(hheap: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapDestroy(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HeapDestroy(core::mem::transmute(hheap)).ok() + HeapDestroy(hheap).ok() } #[inline] pub unsafe fn HeapFree(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapFree(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - HeapFree(core::mem::transmute(hheap), core::mem::transmute(dwflags), core::mem::transmute(lpmem.unwrap_or(core::mem::zeroed()))).ok() + HeapFree(core::mem::transmute(hheap), dwflags, core::mem::transmute(lpmem.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HeapLock(hheap: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapLock(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HeapLock(core::mem::transmute(hheap)).ok() + HeapLock(hheap).ok() } #[inline] pub unsafe fn HeapQueryInformation(heaphandle: Option, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: Option<*mut core::ffi::c_void>, heapinformationlength: usize, returnlength: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapQueryInformation(heaphandle : super::super::Foundation:: HANDLE, heapinformationclass : HEAP_INFORMATION_CLASS, heapinformation : *mut core::ffi::c_void, heapinformationlength : usize, returnlength : *mut usize) -> super::super::Foundation:: BOOL); - HeapQueryInformation(core::mem::transmute(heaphandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(heapinformationclass), core::mem::transmute(heapinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(heapinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() + HeapQueryInformation(core::mem::transmute(heaphandle.unwrap_or(core::mem::zeroed())), heapinformationclass, core::mem::transmute(heapinformation.unwrap_or(core::mem::zeroed())), heapinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn HeapReAlloc(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>, dwbytes: usize) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn HeapReAlloc(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void, dwbytes : usize) -> *mut core::ffi::c_void); - HeapReAlloc(core::mem::transmute(hheap), core::mem::transmute(dwflags), core::mem::transmute(lpmem.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbytes)) + HeapReAlloc(core::mem::transmute(hheap), dwflags, core::mem::transmute(lpmem.unwrap_or(core::mem::zeroed())), dwbytes) } #[inline] pub unsafe fn HeapSetInformation(heaphandle: Option, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: Option<*const core::ffi::c_void>, heapinformationlength: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapSetInformation(heaphandle : super::super::Foundation:: HANDLE, heapinformationclass : HEAP_INFORMATION_CLASS, heapinformation : *const core::ffi::c_void, heapinformationlength : usize) -> super::super::Foundation:: BOOL); - HeapSetInformation(core::mem::transmute(heaphandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(heapinformationclass), core::mem::transmute(heapinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(heapinformationlength)).ok() + HeapSetInformation(core::mem::transmute(heaphandle.unwrap_or(core::mem::zeroed())), heapinformationclass, core::mem::transmute(heapinformation.unwrap_or(core::mem::zeroed())), heapinformationlength).ok() } #[inline] pub unsafe fn HeapSize(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: *const core::ffi::c_void) -> usize { windows_targets::link!("kernel32.dll" "system" fn HeapSize(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> usize); - HeapSize(core::mem::transmute(hheap), core::mem::transmute(dwflags), core::mem::transmute(lpmem)) + HeapSize(hheap, dwflags, lpmem) } #[inline] pub unsafe fn HeapSummary(hheap: super::super::Foundation::HANDLE, dwflags: u32, lpsummary: *mut HEAP_SUMMARY) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn HeapSummary(hheap : super::super::Foundation:: HANDLE, dwflags : u32, lpsummary : *mut HEAP_SUMMARY) -> super::super::Foundation:: BOOL); - HeapSummary(core::mem::transmute(hheap), core::mem::transmute(dwflags), core::mem::transmute(lpsummary)) + HeapSummary(hheap, dwflags, core::mem::transmute(lpsummary)) } #[inline] pub unsafe fn HeapUnlock(hheap: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapUnlock(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HeapUnlock(core::mem::transmute(hheap)).ok() + HeapUnlock(hheap).ok() } #[inline] pub unsafe fn HeapValidate(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn HeapValidate(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - HeapValidate(core::mem::transmute(hheap), core::mem::transmute(dwflags), core::mem::transmute(lpmem.unwrap_or(core::mem::zeroed()))) + HeapValidate(hheap, dwflags, core::mem::transmute(lpmem.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn HeapWalk(hheap: super::super::Foundation::HANDLE, lpentry: *mut PROCESS_HEAP_ENTRY) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn HeapWalk(hheap : super::super::Foundation:: HANDLE, lpentry : *mut PROCESS_HEAP_ENTRY) -> super::super::Foundation:: BOOL); - HeapWalk(core::mem::transmute(hheap), core::mem::transmute(lpentry)).ok() + HeapWalk(hheap, core::mem::transmute(lpentry)).ok() } #[inline] pub unsafe fn IsBadCodePtr(lpfn: Option) -> windows_core::Result<()> { @@ -254,7 +254,7 @@ pub unsafe fn IsBadCodePtr(lpfn: Option) -> w #[inline] pub unsafe fn IsBadReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsBadReadPtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); - IsBadReadPtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(ucb)) + IsBadReadPtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), ucb) } #[inline] pub unsafe fn IsBadStringPtrA(lpsz: P0, ucchmax: usize) -> super::super::Foundation::BOOL @@ -262,7 +262,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrA(lpsz : windows_core::PCSTR, ucchmax : usize) -> super::super::Foundation:: BOOL); - IsBadStringPtrA(lpsz.param().abi(), core::mem::transmute(ucchmax)) + IsBadStringPtrA(lpsz.param().abi(), ucchmax) } #[inline] pub unsafe fn IsBadStringPtrW(lpsz: P0, ucchmax: usize) -> super::super::Foundation::BOOL @@ -270,125 +270,105 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrW(lpsz : windows_core::PCWSTR, ucchmax : usize) -> super::super::Foundation:: BOOL); - IsBadStringPtrW(lpsz.param().abi(), core::mem::transmute(ucchmax)) + IsBadStringPtrW(lpsz.param().abi(), ucchmax) } #[inline] pub unsafe fn IsBadWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsBadWritePtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); - IsBadWritePtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(ucb)) + IsBadWritePtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), ucb) } #[inline] pub unsafe fn LocalAlloc(uflags: LOCAL_ALLOC_FLAGS, ubytes: usize) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn LocalAlloc(uflags : LOCAL_ALLOC_FLAGS, ubytes : usize) -> super::super::Foundation:: HLOCAL); - let result__ = LocalAlloc(core::mem::transmute(uflags), core::mem::transmute(ubytes)); + let result__ = LocalAlloc(uflags, ubytes); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LocalFlags(hmem: super::super::Foundation::HLOCAL) -> u32 { windows_targets::link!("kernel32.dll" "system" fn LocalFlags(hmem : super::super::Foundation:: HLOCAL) -> u32); - LocalFlags(core::mem::transmute(hmem)) + LocalFlags(hmem) } #[inline] pub unsafe fn LocalHandle(pmem: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn LocalHandle(pmem : *const core::ffi::c_void) -> super::super::Foundation:: HLOCAL); - let result__ = LocalHandle(core::mem::transmute(pmem)); + let result__ = LocalHandle(pmem); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LocalLock(hmem: super::super::Foundation::HLOCAL) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn LocalLock(hmem : super::super::Foundation:: HLOCAL) -> *mut core::ffi::c_void); - LocalLock(core::mem::transmute(hmem)) + LocalLock(hmem) } #[inline] pub unsafe fn LocalReAlloc(hmem: Option, ubytes: usize, uflags: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn LocalReAlloc(hmem : super::super::Foundation:: HLOCAL, ubytes : usize, uflags : u32) -> super::super::Foundation:: HLOCAL); - let result__ = LocalReAlloc(core::mem::transmute(hmem.unwrap_or(core::mem::zeroed())), core::mem::transmute(ubytes), core::mem::transmute(uflags)); + let result__ = LocalReAlloc(core::mem::transmute(hmem.unwrap_or(core::mem::zeroed())), ubytes, uflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LocalSize(hmem: super::super::Foundation::HLOCAL) -> usize { windows_targets::link!("kernel32.dll" "system" fn LocalSize(hmem : super::super::Foundation:: HLOCAL) -> usize); - LocalSize(core::mem::transmute(hmem)) + LocalSize(hmem) } #[inline] pub unsafe fn LocalUnlock(hmem: super::super::Foundation::HLOCAL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn LocalUnlock(hmem : super::super::Foundation:: HLOCAL) -> super::super::Foundation:: BOOL); - LocalUnlock(core::mem::transmute(hmem)).ok() + LocalUnlock(hmem).ok() } #[inline] pub unsafe fn MapUserPhysicalPages(virtualaddress: *const core::ffi::c_void, pagearray: Option<&[usize]>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn MapUserPhysicalPages(virtualaddress : *const core::ffi::c_void, numberofpages : usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); - MapUserPhysicalPages(core::mem::transmute(virtualaddress), pagearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pagearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + MapUserPhysicalPages(virtualaddress, pagearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pagearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn MapUserPhysicalPagesScatter(virtualaddresses: *const *const core::ffi::c_void, numberofpages: usize, pagearray: Option<*const usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn MapUserPhysicalPagesScatter(virtualaddresses : *const *const core::ffi::c_void, numberofpages : usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); - MapUserPhysicalPagesScatter(core::mem::transmute(virtualaddresses), core::mem::transmute(numberofpages), core::mem::transmute(pagearray.unwrap_or(core::mem::zeroed()))).ok() + MapUserPhysicalPagesScatter(virtualaddresses, numberofpages, core::mem::transmute(pagearray.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn MapViewOfFile(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("kernel32.dll" "system" fn MapViewOfFile(hfilemappingobject : super::super::Foundation:: HANDLE, dwdesiredaccess : FILE_MAP, dwfileoffsethigh : u32, dwfileoffsetlow : u32, dwnumberofbytestomap : usize) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFile(core::mem::transmute(hfilemappingobject), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwfileoffsethigh), core::mem::transmute(dwfileoffsetlow), core::mem::transmute(dwnumberofbytestomap)) + MapViewOfFile(hfilemappingobject, dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap) } #[inline] pub unsafe fn MapViewOfFile3(filemapping: super::super::Foundation::HANDLE, process: Option, baseaddress: Option<*const core::ffi::c_void>, offset: u64, viewsize: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("api-ms-win-core-memory-l1-1-6.dll" "system" fn MapViewOfFile3(filemapping : super::super::Foundation:: HANDLE, process : super::super::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, offset : u64, viewsize : usize, allocationtype : VIRTUAL_ALLOCATION_TYPE, pageprotection : u32, extendedparameters : *mut MEM_EXTENDED_PARAMETER, parametercount : u32) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFile3( - core::mem::transmute(filemapping), - core::mem::transmute(process.unwrap_or(core::mem::zeroed())), - core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(offset), - core::mem::transmute(viewsize), - core::mem::transmute(allocationtype), - core::mem::transmute(pageprotection), - core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - ) + MapViewOfFile3(filemapping, core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), offset, viewsize, allocationtype, pageprotection, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn MapViewOfFile3FromApp(filemapping: super::super::Foundation::HANDLE, process: Option, baseaddress: Option<*const core::ffi::c_void>, offset: u64, viewsize: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("api-ms-win-core-memory-l1-1-6.dll" "system" fn MapViewOfFile3FromApp(filemapping : super::super::Foundation:: HANDLE, process : super::super::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, offset : u64, viewsize : usize, allocationtype : VIRTUAL_ALLOCATION_TYPE, pageprotection : u32, extendedparameters : *mut MEM_EXTENDED_PARAMETER, parametercount : u32) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFile3FromApp( - core::mem::transmute(filemapping), - core::mem::transmute(process.unwrap_or(core::mem::zeroed())), - core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), - core::mem::transmute(offset), - core::mem::transmute(viewsize), - core::mem::transmute(allocationtype), - core::mem::transmute(pageprotection), - core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - ) + MapViewOfFile3FromApp(filemapping, core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), offset, viewsize, allocationtype, pageprotection, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn MapViewOfFileEx(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: Option<*const core::ffi::c_void>) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("kernel32.dll" "system" fn MapViewOfFileEx(hfilemappingobject : super::super::Foundation:: HANDLE, dwdesiredaccess : FILE_MAP, dwfileoffsethigh : u32, dwfileoffsetlow : u32, dwnumberofbytestomap : usize, lpbaseaddress : *const core::ffi::c_void) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFileEx(core::mem::transmute(hfilemappingobject), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwfileoffsethigh), core::mem::transmute(dwfileoffsetlow), core::mem::transmute(dwnumberofbytestomap), core::mem::transmute(lpbaseaddress.unwrap_or(core::mem::zeroed()))) + MapViewOfFileEx(hfilemappingobject, dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap, core::mem::transmute(lpbaseaddress.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MapViewOfFileExNuma(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: Option<*const core::ffi::c_void>, nndpreferred: u32) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("kernel32.dll" "system" fn MapViewOfFileExNuma(hfilemappingobject : super::super::Foundation:: HANDLE, dwdesiredaccess : FILE_MAP, dwfileoffsethigh : u32, dwfileoffsetlow : u32, dwnumberofbytestomap : usize, lpbaseaddress : *const core::ffi::c_void, nndpreferred : u32) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFileExNuma(core::mem::transmute(hfilemappingobject), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwfileoffsethigh), core::mem::transmute(dwfileoffsetlow), core::mem::transmute(dwnumberofbytestomap), core::mem::transmute(lpbaseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(nndpreferred)) + MapViewOfFileExNuma(hfilemappingobject, dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap, core::mem::transmute(lpbaseaddress.unwrap_or(core::mem::zeroed())), nndpreferred) } #[inline] pub unsafe fn MapViewOfFileFromApp(hfilemappingobject: super::super::Foundation::HANDLE, desiredaccess: FILE_MAP, fileoffset: u64, numberofbytestomap: usize) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("kernel32.dll" "system" fn MapViewOfFileFromApp(hfilemappingobject : super::super::Foundation:: HANDLE, desiredaccess : FILE_MAP, fileoffset : u64, numberofbytestomap : usize) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFileFromApp(core::mem::transmute(hfilemappingobject), core::mem::transmute(desiredaccess), core::mem::transmute(fileoffset), core::mem::transmute(numberofbytestomap)) + MapViewOfFileFromApp(hfilemappingobject, desiredaccess, fileoffset, numberofbytestomap) } #[inline] pub unsafe fn MapViewOfFileNuma2(filemappinghandle: super::super::Foundation::HANDLE, processhandle: super::super::Foundation::HANDLE, offset: u64, baseaddress: Option<*const core::ffi::c_void>, viewsize: usize, allocationtype: u32, pageprotection: u32, preferrednode: u32) -> MEMORY_MAPPED_VIEW_ADDRESS { windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn MapViewOfFileNuma2(filemappinghandle : super::super::Foundation:: HANDLE, processhandle : super::super::Foundation:: HANDLE, offset : u64, baseaddress : *const core::ffi::c_void, viewsize : usize, allocationtype : u32, pageprotection : u32, preferrednode : u32) -> MEMORY_MAPPED_VIEW_ADDRESS); - MapViewOfFileNuma2(core::mem::transmute(filemappinghandle), core::mem::transmute(processhandle), core::mem::transmute(offset), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(viewsize), core::mem::transmute(allocationtype), core::mem::transmute(pageprotection), core::mem::transmute(preferrednode)) + MapViewOfFileNuma2(filemappinghandle, processhandle, offset, core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), viewsize, allocationtype, pageprotection, preferrednode) } #[inline] pub unsafe fn OfferVirtualMemory(virtualaddress: &mut [u8], priority: OFFER_PRIORITY) -> u32 { windows_targets::link!("kernel32.dll" "system" fn OfferVirtualMemory(virtualaddress : *mut core::ffi::c_void, size : usize, priority : OFFER_PRIORITY) -> u32); - OfferVirtualMemory(core::mem::transmute(virtualaddress.as_ptr()), virtualaddress.len().try_into().unwrap(), core::mem::transmute(priority)) + OfferVirtualMemory(core::mem::transmute(virtualaddress.as_ptr()), virtualaddress.len().try_into().unwrap(), priority) } #[inline] pub unsafe fn OpenDedicatedMemoryPartition(partition: super::super::Foundation::HANDLE, dedicatedmemorytypeid: u64, desiredaccess: u32, inherithandle: bool) -> super::super::Foundation::HANDLE { windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn OpenDedicatedMemoryPartition(partition : super::super::Foundation:: HANDLE, dedicatedmemorytypeid : u64, desiredaccess : u32, inherithandle : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); - OpenDedicatedMemoryPartition(core::mem::transmute(partition), core::mem::transmute(dedicatedmemorytypeid), core::mem::transmute(desiredaccess), inherithandle.into()) + OpenDedicatedMemoryPartition(partition, dedicatedmemorytypeid, desiredaccess, inherithandle.into()) } #[inline] pub unsafe fn OpenFileMappingA(dwdesiredaccess: u32, binherithandle: bool, lpname: P2) -> windows_core::Result @@ -396,7 +376,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenFileMappingA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenFileMappingA(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenFileMappingA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -405,7 +385,7 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn OpenFileMappingFromApp(desiredaccess : u32, inherithandle : super::super::Foundation:: BOOL, name : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenFileMappingFromApp(core::mem::transmute(desiredaccess), inherithandle.into(), name.param().abi()); + let result__ = OpenFileMappingFromApp(desiredaccess, inherithandle.into(), name.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -414,28 +394,28 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenFileMappingW(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenFileMappingW(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenFileMappingW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PrefetchVirtualMemory(hprocess: super::super::Foundation::HANDLE, virtualaddresses: &[WIN32_MEMORY_RANGE_ENTRY], flags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PrefetchVirtualMemory(hprocess : super::super::Foundation:: HANDLE, numberofentries : usize, virtualaddresses : *const WIN32_MEMORY_RANGE_ENTRY, flags : u32) -> super::super::Foundation:: BOOL); - PrefetchVirtualMemory(core::mem::transmute(hprocess), virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), core::mem::transmute(flags)).ok() + PrefetchVirtualMemory(hprocess, virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), flags).ok() } #[inline] pub unsafe fn QueryMemoryResourceNotification(resourcenotificationhandle: super::super::Foundation::HANDLE, resourcestate: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryMemoryResourceNotification(resourcenotificationhandle : super::super::Foundation:: HANDLE, resourcestate : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - QueryMemoryResourceNotification(core::mem::transmute(resourcenotificationhandle), core::mem::transmute(resourcestate)).ok() + QueryMemoryResourceNotification(resourcenotificationhandle, core::mem::transmute(resourcestate)).ok() } #[inline] pub unsafe fn QueryPartitionInformation(partition: super::super::Foundation::HANDLE, partitioninformationclass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn QueryPartitionInformation(partition : super::super::Foundation:: HANDLE, partitioninformationclass : WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation : *mut core::ffi::c_void, partitioninformationlength : u32) -> super::super::Foundation:: BOOL); - QueryPartitionInformation(core::mem::transmute(partition), core::mem::transmute(partitioninformationclass), core::mem::transmute(partitioninformation), core::mem::transmute(partitioninformationlength)) + QueryPartitionInformation(partition, partitioninformationclass, core::mem::transmute(partitioninformation), partitioninformationlength) } #[inline] pub unsafe fn QueryVirtualMemoryInformation(process: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, memoryinformationclass: WIN32_MEMORY_INFORMATION_CLASS, memoryinformation: *mut core::ffi::c_void, memoryinformationsize: usize, returnsize: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-memory-l1-1-4.dll" "system" fn QueryVirtualMemoryInformation(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, memoryinformationclass : WIN32_MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationsize : usize, returnsize : *mut usize) -> super::super::Foundation:: BOOL); - QueryVirtualMemoryInformation(core::mem::transmute(process), core::mem::transmute(virtualaddress), core::mem::transmute(memoryinformationclass), core::mem::transmute(memoryinformation), core::mem::transmute(memoryinformationsize), core::mem::transmute(returnsize.unwrap_or(core::mem::zeroed()))).ok() + QueryVirtualMemoryInformation(process, virtualaddress, memoryinformationclass, core::mem::transmute(memoryinformation), memoryinformationsize, core::mem::transmute(returnsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReclaimVirtualMemory(virtualaddress: &[u8]) -> u32 { @@ -445,57 +425,57 @@ pub unsafe fn ReclaimVirtualMemory(virtualaddress: &[u8]) -> u32 { #[inline] pub unsafe fn RegisterBadMemoryNotification(callback: PBAD_MEMORY_CALLBACK_ROUTINE) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn RegisterBadMemoryNotification(callback : PBAD_MEMORY_CALLBACK_ROUTINE) -> *mut core::ffi::c_void); - RegisterBadMemoryNotification(core::mem::transmute(callback)) + RegisterBadMemoryNotification(callback) } #[inline] pub unsafe fn RemoveSecureMemoryCacheCallback(pfncallback: PSECURE_MEMORY_CACHE_CALLBACK) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn RemoveSecureMemoryCacheCallback(pfncallback : PSECURE_MEMORY_CACHE_CALLBACK) -> super::super::Foundation:: BOOL); - RemoveSecureMemoryCacheCallback(core::mem::transmute(pfncallback)) + RemoveSecureMemoryCacheCallback(pfncallback) } #[inline] pub unsafe fn ResetWriteWatch(lpbaseaddress: *const core::ffi::c_void, dwregionsize: usize) -> u32 { windows_targets::link!("kernel32.dll" "system" fn ResetWriteWatch(lpbaseaddress : *const core::ffi::c_void, dwregionsize : usize) -> u32); - ResetWriteWatch(core::mem::transmute(lpbaseaddress), core::mem::transmute(dwregionsize)) + ResetWriteWatch(lpbaseaddress, dwregionsize) } #[inline] pub unsafe fn RtlCompareMemory(source1: *const core::ffi::c_void, source2: *const core::ffi::c_void, length: usize) -> usize { windows_targets::link!("kernel32.dll" "system" fn RtlCompareMemory(source1 : *const core::ffi::c_void, source2 : *const core::ffi::c_void, length : usize) -> usize); - RtlCompareMemory(core::mem::transmute(source1), core::mem::transmute(source2), core::mem::transmute(length)) + RtlCompareMemory(source1, source2, length) } #[inline] pub unsafe fn RtlCrc32(buffer: *const core::ffi::c_void, size: usize, initialcrc: u32) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlCrc32(buffer : *const core::ffi::c_void, size : usize, initialcrc : u32) -> u32); - RtlCrc32(core::mem::transmute(buffer), core::mem::transmute(size), core::mem::transmute(initialcrc)) + RtlCrc32(buffer, size, initialcrc) } #[inline] pub unsafe fn RtlCrc64(buffer: *const core::ffi::c_void, size: usize, initialcrc: u64) -> u64 { windows_targets::link!("ntdll.dll" "system" fn RtlCrc64(buffer : *const core::ffi::c_void, size : usize, initialcrc : u64) -> u64); - RtlCrc64(core::mem::transmute(buffer), core::mem::transmute(size), core::mem::transmute(initialcrc)) + RtlCrc64(buffer, size, initialcrc) } #[inline] pub unsafe fn RtlIsZeroMemory(buffer: *const core::ffi::c_void, length: usize) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlIsZeroMemory(buffer : *const core::ffi::c_void, length : usize) -> bool); - RtlIsZeroMemory(core::mem::transmute(buffer), core::mem::transmute(length)) + RtlIsZeroMemory(buffer, length) } #[inline] pub unsafe fn SetProcessValidCallTargets(hprocess: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO]) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn SetProcessValidCallTargets(hprocess : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO) -> super::super::Foundation:: BOOL); - SetProcessValidCallTargets(core::mem::transmute(hprocess), core::mem::transmute(virtualaddress), core::mem::transmute(regionsize), offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr())).ok() + SetProcessValidCallTargets(hprocess, virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr())).ok() } #[inline] pub unsafe fn SetProcessValidCallTargetsForMappedView(process: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO], section: super::super::Foundation::HANDLE, expectedfileoffset: u64) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-memory-l1-1-7.dll" "system" fn SetProcessValidCallTargetsForMappedView(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO, section : super::super::Foundation:: HANDLE, expectedfileoffset : u64) -> super::super::Foundation:: BOOL); - SetProcessValidCallTargetsForMappedView(core::mem::transmute(process), core::mem::transmute(virtualaddress), core::mem::transmute(regionsize), offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr()), core::mem::transmute(section), core::mem::transmute(expectedfileoffset)) + SetProcessValidCallTargetsForMappedView(process, virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr()), section, expectedfileoffset) } #[inline] pub unsafe fn SetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize, flags: SETPROCESSWORKINGSETSIZEEX_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize, flags : SETPROCESSWORKINGSETSIZEEX_FLAGS) -> super::super::Foundation:: BOOL); - SetProcessWorkingSetSizeEx(core::mem::transmute(hprocess), core::mem::transmute(dwminimumworkingsetsize), core::mem::transmute(dwmaximumworkingsetsize), core::mem::transmute(flags)).ok() + SetProcessWorkingSetSizeEx(hprocess, dwminimumworkingsetsize, dwmaximumworkingsetsize, flags).ok() } #[inline] pub unsafe fn SetSystemFileCacheSize(minimumfilecachesize: usize, maximumfilecachesize: usize, flags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetSystemFileCacheSize(minimumfilecachesize : usize, maximumfilecachesize : usize, flags : u32) -> super::super::Foundation:: BOOL); - SetSystemFileCacheSize(core::mem::transmute(minimumfilecachesize), core::mem::transmute(maximumfilecachesize), core::mem::transmute(flags)).ok() + SetSystemFileCacheSize(minimumfilecachesize, maximumfilecachesize, flags).ok() } #[inline] pub unsafe fn UnmapViewOfFile(lpbaseaddress: MEMORY_MAPPED_VIEW_ADDRESS) -> windows_core::Result<()> { @@ -505,97 +485,97 @@ pub unsafe fn UnmapViewOfFile(lpbaseaddress: MEMORY_MAPPED_VIEW_ADDRESS) -> wind #[inline] pub unsafe fn UnmapViewOfFile2(process: super::super::Foundation::HANDLE, baseaddress: MEMORY_MAPPED_VIEW_ADDRESS, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn UnmapViewOfFile2(process : super::super::Foundation:: HANDLE, baseaddress : MEMORY_MAPPED_VIEW_ADDRESS, unmapflags : UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation:: BOOL); - UnmapViewOfFile2(core::mem::transmute(process), core::mem::transmute(baseaddress), core::mem::transmute(unmapflags)).ok() + UnmapViewOfFile2(process, core::mem::transmute(baseaddress), unmapflags).ok() } #[inline] pub unsafe fn UnmapViewOfFileEx(baseaddress: MEMORY_MAPPED_VIEW_ADDRESS, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnmapViewOfFileEx(baseaddress : MEMORY_MAPPED_VIEW_ADDRESS, unmapflags : UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation:: BOOL); - UnmapViewOfFileEx(core::mem::transmute(baseaddress), core::mem::transmute(unmapflags)).ok() + UnmapViewOfFileEx(core::mem::transmute(baseaddress), unmapflags).ok() } #[inline] pub unsafe fn UnregisterBadMemoryNotification(registrationhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnregisterBadMemoryNotification(registrationhandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - UnregisterBadMemoryNotification(core::mem::transmute(registrationhandle)).ok() + UnregisterBadMemoryNotification(registrationhandle).ok() } #[inline] pub unsafe fn VirtualAlloc(lpaddress: Option<*const core::ffi::c_void>, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn VirtualAlloc(lpaddress : *const core::ffi::c_void, dwsize : usize, flallocationtype : VIRTUAL_ALLOCATION_TYPE, flprotect : PAGE_PROTECTION_FLAGS) -> *mut core::ffi::c_void); - VirtualAlloc(core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize), core::mem::transmute(flallocationtype), core::mem::transmute(flprotect)) + VirtualAlloc(core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), dwsize, flallocationtype, flprotect) } #[inline] pub unsafe fn VirtualAlloc2(process: Option, baseaddress: Option<*const core::ffi::c_void>, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> *mut core::ffi::c_void { windows_targets::link!("api-ms-win-core-memory-l1-1-6.dll" "system" fn VirtualAlloc2(process : super::super::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, size : usize, allocationtype : VIRTUAL_ALLOCATION_TYPE, pageprotection : u32, extendedparameters : *mut MEM_EXTENDED_PARAMETER, parametercount : u32) -> *mut core::ffi::c_void); - VirtualAlloc2(core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(allocationtype), core::mem::transmute(pageprotection), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + VirtualAlloc2(core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), size, allocationtype, pageprotection, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn VirtualAlloc2FromApp(process: Option, baseaddress: Option<*const core::ffi::c_void>, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> *mut core::ffi::c_void { windows_targets::link!("api-ms-win-core-memory-l1-1-6.dll" "system" fn VirtualAlloc2FromApp(process : super::super::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, size : usize, allocationtype : VIRTUAL_ALLOCATION_TYPE, pageprotection : u32, extendedparameters : *mut MEM_EXTENDED_PARAMETER, parametercount : u32) -> *mut core::ffi::c_void); - VirtualAlloc2FromApp(core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(allocationtype), core::mem::transmute(pageprotection), core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + VirtualAlloc2FromApp(core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), size, allocationtype, pageprotection, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn VirtualAllocEx(hprocess: super::super::Foundation::HANDLE, lpaddress: Option<*const core::ffi::c_void>, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn VirtualAllocEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, dwsize : usize, flallocationtype : VIRTUAL_ALLOCATION_TYPE, flprotect : PAGE_PROTECTION_FLAGS) -> *mut core::ffi::c_void); - VirtualAllocEx(core::mem::transmute(hprocess), core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize), core::mem::transmute(flallocationtype), core::mem::transmute(flprotect)) + VirtualAllocEx(hprocess, core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), dwsize, flallocationtype, flprotect) } #[inline] pub unsafe fn VirtualAllocExNuma(hprocess: super::super::Foundation::HANDLE, lpaddress: Option<*const core::ffi::c_void>, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: u32, nndpreferred: u32) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn VirtualAllocExNuma(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, dwsize : usize, flallocationtype : VIRTUAL_ALLOCATION_TYPE, flprotect : u32, nndpreferred : u32) -> *mut core::ffi::c_void); - VirtualAllocExNuma(core::mem::transmute(hprocess), core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize), core::mem::transmute(flallocationtype), core::mem::transmute(flprotect), core::mem::transmute(nndpreferred)) + VirtualAllocExNuma(hprocess, core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), dwsize, flallocationtype, flprotect, nndpreferred) } #[inline] pub unsafe fn VirtualAllocFromApp(baseaddress: Option<*const core::ffi::c_void>, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, protection: u32) -> *mut core::ffi::c_void { windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn VirtualAllocFromApp(baseaddress : *const core::ffi::c_void, size : usize, allocationtype : VIRTUAL_ALLOCATION_TYPE, protection : u32) -> *mut core::ffi::c_void); - VirtualAllocFromApp(core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(allocationtype), core::mem::transmute(protection)) + VirtualAllocFromApp(core::mem::transmute(baseaddress.unwrap_or(core::mem::zeroed())), size, allocationtype, protection) } #[inline] pub unsafe fn VirtualFree(lpaddress: *mut core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VirtualFree(lpaddress : *mut core::ffi::c_void, dwsize : usize, dwfreetype : VIRTUAL_FREE_TYPE) -> super::super::Foundation:: BOOL); - VirtualFree(core::mem::transmute(lpaddress), core::mem::transmute(dwsize), core::mem::transmute(dwfreetype)).ok() + VirtualFree(core::mem::transmute(lpaddress), dwsize, dwfreetype).ok() } #[inline] pub unsafe fn VirtualFreeEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *mut core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VirtualFreeEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *mut core::ffi::c_void, dwsize : usize, dwfreetype : VIRTUAL_FREE_TYPE) -> super::super::Foundation:: BOOL); - VirtualFreeEx(core::mem::transmute(hprocess), core::mem::transmute(lpaddress), core::mem::transmute(dwsize), core::mem::transmute(dwfreetype)).ok() + VirtualFreeEx(hprocess, core::mem::transmute(lpaddress), dwsize, dwfreetype).ok() } #[inline] pub unsafe fn VirtualLock(lpaddress: *const core::ffi::c_void, dwsize: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VirtualLock(lpaddress : *const core::ffi::c_void, dwsize : usize) -> super::super::Foundation:: BOOL); - VirtualLock(core::mem::transmute(lpaddress), core::mem::transmute(dwsize)).ok() + VirtualLock(lpaddress, dwsize).ok() } #[inline] pub unsafe fn VirtualProtect(lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VirtualProtect(lpaddress : *const core::ffi::c_void, dwsize : usize, flnewprotect : PAGE_PROTECTION_FLAGS, lpfloldprotect : *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation:: BOOL); - VirtualProtect(core::mem::transmute(lpaddress), core::mem::transmute(dwsize), core::mem::transmute(flnewprotect), core::mem::transmute(lpfloldprotect)).ok() + VirtualProtect(lpaddress, dwsize, flnewprotect, core::mem::transmute(lpfloldprotect)).ok() } #[inline] pub unsafe fn VirtualProtectEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VirtualProtectEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, dwsize : usize, flnewprotect : PAGE_PROTECTION_FLAGS, lpfloldprotect : *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation:: BOOL); - VirtualProtectEx(core::mem::transmute(hprocess), core::mem::transmute(lpaddress), core::mem::transmute(dwsize), core::mem::transmute(flnewprotect), core::mem::transmute(lpfloldprotect)).ok() + VirtualProtectEx(hprocess, lpaddress, dwsize, flnewprotect, core::mem::transmute(lpfloldprotect)).ok() } #[inline] pub unsafe fn VirtualProtectFromApp(address: *const core::ffi::c_void, size: usize, newprotection: u32, oldprotection: *mut u32) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn VirtualProtectFromApp(address : *const core::ffi::c_void, size : usize, newprotection : u32, oldprotection : *mut u32) -> super::super::Foundation:: BOOL); - VirtualProtectFromApp(core::mem::transmute(address), core::mem::transmute(size), core::mem::transmute(newprotection), core::mem::transmute(oldprotection)).ok() + VirtualProtectFromApp(address, size, newprotection, core::mem::transmute(oldprotection)).ok() } #[inline] pub unsafe fn VirtualQuery(lpaddress: Option<*const core::ffi::c_void>, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize { windows_targets::link!("kernel32.dll" "system" fn VirtualQuery(lpaddress : *const core::ffi::c_void, lpbuffer : *mut MEMORY_BASIC_INFORMATION, dwlength : usize) -> usize); - VirtualQuery(core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffer), core::mem::transmute(dwlength)) + VirtualQuery(core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffer), dwlength) } #[inline] pub unsafe fn VirtualQueryEx(hprocess: super::super::Foundation::HANDLE, lpaddress: Option<*const core::ffi::c_void>, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize { windows_targets::link!("kernel32.dll" "system" fn VirtualQueryEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpbuffer : *mut MEMORY_BASIC_INFORMATION, dwlength : usize) -> usize); - VirtualQueryEx(core::mem::transmute(hprocess), core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffer), core::mem::transmute(dwlength)) + VirtualQueryEx(hprocess, core::mem::transmute(lpaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbuffer), dwlength) } #[inline] pub unsafe fn VirtualUnlock(lpaddress: *const core::ffi::c_void, dwsize: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VirtualUnlock(lpaddress : *const core::ffi::c_void, dwsize : usize) -> super::super::Foundation:: BOOL); - VirtualUnlock(core::mem::transmute(lpaddress), core::mem::transmute(dwsize)).ok() + VirtualUnlock(lpaddress, dwsize).ok() } #[inline] pub unsafe fn VirtualUnlockEx(process: Option, address: *const core::ffi::c_void, size: usize) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn VirtualUnlockEx(process : super::super::Foundation:: HANDLE, address : *const core::ffi::c_void, size : usize) -> super::super::Foundation:: BOOL); - VirtualUnlockEx(core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(address), core::mem::transmute(size)) + VirtualUnlockEx(core::mem::transmute(process.unwrap_or(core::mem::zeroed())), address, size) } #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] diff --git a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs index 303609795f..0756707e95 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs @@ -16,18 +16,18 @@ pub unsafe fn MQBeginTransaction() -> windows_core::Result windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQCloseCursor(hcursor : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - MQCloseCursor(core::mem::transmute(hcursor)).ok() + MQCloseCursor(hcursor).ok() } #[inline] pub unsafe fn MQCloseQueue(hqueue: isize) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQCloseQueue(hqueue : isize) -> windows_core::HRESULT); - MQCloseQueue(core::mem::transmute(hqueue)).ok() + MQCloseQueue(hqueue).ok() } #[inline] pub unsafe fn MQCreateCursor(hqueue: isize) -> windows_core::Result { windows_targets::link!("mqrt.dll" "system" fn MQCreateCursor(hqueue : isize, phcursor : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MQCreateCursor(core::mem::transmute(hqueue), &mut result__).map(|| core::mem::transmute(result__)) + MQCreateCursor(hqueue, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -46,12 +46,12 @@ where #[inline] pub unsafe fn MQFreeMemory(pvmemory: *const core::ffi::c_void) { windows_targets::link!("mqrt.dll" "system" fn MQFreeMemory(pvmemory : *const core::ffi::c_void)); - MQFreeMemory(core::mem::transmute(pvmemory)) + MQFreeMemory(pvmemory) } #[inline] pub unsafe fn MQFreeSecurityContext(hsecuritycontext: super::super::Foundation::HANDLE) { windows_targets::link!("mqrt.dll" "system" fn MQFreeSecurityContext(hsecuritycontext : super::super::Foundation:: HANDLE)); - MQFreeSecurityContext(core::mem::transmute(hsecuritycontext)) + MQFreeSecurityContext(hsecuritycontext) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -66,7 +66,7 @@ where #[inline] pub unsafe fn MQGetOverlappedResult(lpoverlapped: *const super::IO::OVERLAPPED) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQGetOverlappedResult(lpoverlapped : *const super::IO:: OVERLAPPED) -> windows_core::HRESULT); - MQGetOverlappedResult(core::mem::transmute(lpoverlapped)).ok() + MQGetOverlappedResult(lpoverlapped).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -93,29 +93,29 @@ where P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQGetQueueSecurity(lpwcsformatname : windows_core::PCWSTR, requestedinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::HRESULT); - MQGetQueueSecurity(lpwcsformatname.param().abi(), core::mem::transmute(requestedinformation), core::mem::transmute(psecuritydescriptor), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)).ok() + MQGetQueueSecurity(lpwcsformatname.param().abi(), requestedinformation, core::mem::transmute(psecuritydescriptor), nlength, core::mem::transmute(lpnlengthneeded)).ok() } #[inline] pub unsafe fn MQGetSecurityContext(lpcertbuffer: Option<*const core::ffi::c_void>, dwcertbufferlength: u32) -> windows_core::Result { windows_targets::link!("mqrt.dll" "system" fn MQGetSecurityContext(lpcertbuffer : *const core::ffi::c_void, dwcertbufferlength : u32, phsecuritycontext : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MQGetSecurityContext(core::mem::transmute(lpcertbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertbufferlength), &mut result__).map(|| core::mem::transmute(result__)) + MQGetSecurityContext(core::mem::transmute(lpcertbuffer.unwrap_or(core::mem::zeroed())), dwcertbufferlength, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MQGetSecurityContextEx(lpcertbuffer: Option<*const core::ffi::c_void>, dwcertbufferlength: u32) -> windows_core::Result { windows_targets::link!("mqrt.dll" "system" fn MQGetSecurityContextEx(lpcertbuffer : *const core::ffi::c_void, dwcertbufferlength : u32, phsecuritycontext : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MQGetSecurityContextEx(core::mem::transmute(lpcertbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcertbufferlength), &mut result__).map(|| core::mem::transmute(result__)) + MQGetSecurityContextEx(core::mem::transmute(lpcertbuffer.unwrap_or(core::mem::zeroed())), dwcertbufferlength, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MQHandleToFormatName(hqueue: isize, lpwcsformatname: windows_core::PWSTR, lpdwformatnamelength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQHandleToFormatName(hqueue : isize, lpwcsformatname : windows_core::PWSTR, lpdwformatnamelength : *mut u32) -> windows_core::HRESULT); - MQHandleToFormatName(core::mem::transmute(hqueue), core::mem::transmute(lpwcsformatname), core::mem::transmute(lpdwformatnamelength)).ok() + MQHandleToFormatName(hqueue, core::mem::transmute(lpwcsformatname), core::mem::transmute(lpdwformatnamelength)).ok() } #[inline] pub unsafe fn MQInstanceToFormatName(pguid: *const windows_core::GUID, lpwcsformatname: windows_core::PWSTR, lpdwformatnamelength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQInstanceToFormatName(pguid : *const windows_core::GUID, lpwcsformatname : windows_core::PWSTR, lpdwformatnamelength : *mut u32) -> windows_core::HRESULT); - MQInstanceToFormatName(core::mem::transmute(pguid), core::mem::transmute(lpwcsformatname), core::mem::transmute(lpdwformatnamelength)).ok() + MQInstanceToFormatName(pguid, core::mem::transmute(lpwcsformatname), core::mem::transmute(lpdwformatnamelength)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -125,23 +125,23 @@ where { windows_targets::link!("mqrt.dll" "system" fn MQLocateBegin(lpwcscontext : windows_core::PCWSTR, prestriction : *const MQRESTRICTION, pcolumns : *const MQCOLUMNSET, psort : *const MQSORTSET, phenum : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MQLocateBegin(lpwcscontext.param().abi(), core::mem::transmute(prestriction.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcolumns), core::mem::transmute(psort), &mut result__).map(|| core::mem::transmute(result__)) + MQLocateBegin(lpwcscontext.param().abi(), core::mem::transmute(prestriction.unwrap_or(core::mem::zeroed())), pcolumns, psort, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MQLocateEnd(henum: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQLocateEnd(henum : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - MQLocateEnd(core::mem::transmute(henum)).ok() + MQLocateEnd(henum).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn MQLocateNext(henum: super::super::Foundation::HANDLE, pcprops: *mut u32, apropvar: *mut super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQLocateNext(henum : super::super::Foundation:: HANDLE, pcprops : *mut u32, apropvar : *mut super::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); - MQLocateNext(core::mem::transmute(henum), core::mem::transmute(pcprops), core::mem::transmute(apropvar)).ok() + MQLocateNext(henum, core::mem::transmute(pcprops), core::mem::transmute(apropvar)).ok() } #[inline] pub unsafe fn MQMarkMessageRejected(hqueue: super::super::Foundation::HANDLE, ulllookupid: u64) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQMarkMessageRejected(hqueue : super::super::Foundation:: HANDLE, ulllookupid : u64) -> windows_core::HRESULT); - MQMarkMessageRejected(core::mem::transmute(hqueue), core::mem::transmute(ulllookupid)).ok() + MQMarkMessageRejected(hqueue, ulllookupid).ok() } #[inline] pub unsafe fn MQMgmtAction(pcomputername: P0, pobjectname: P1, paction: P2) -> windows_core::Result<()> @@ -170,7 +170,7 @@ where P3: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQMoveMessage(hsourcequeue : isize, hdestinationqueue : isize, ulllookupid : u64, ptransaction : * mut core::ffi::c_void) -> windows_core::HRESULT); - MQMoveMessage(core::mem::transmute(hsourcequeue), core::mem::transmute(hdestinationqueue), core::mem::transmute(ulllookupid), ptransaction.param().abi()).ok() + MQMoveMessage(hsourcequeue, hdestinationqueue, ulllookupid, ptransaction.param().abi()).ok() } #[inline] pub unsafe fn MQOpenQueue(lpwcsformatname: P0, dwaccess: u32, dwsharemode: u32) -> windows_core::Result @@ -179,7 +179,7 @@ where { windows_targets::link!("mqrt.dll" "system" fn MQOpenQueue(lpwcsformatname : windows_core::PCWSTR, dwaccess : u32, dwsharemode : u32, phqueue : *mut isize) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - MQOpenQueue(lpwcsformatname.param().abi(), core::mem::transmute(dwaccess), core::mem::transmute(dwsharemode), &mut result__).map(|| core::mem::transmute(result__)) + MQOpenQueue(lpwcsformatname.param().abi(), dwaccess, dwsharemode, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MQPathNameToFormatName(lpwcspathname: P0, lpwcsformatname: windows_core::PWSTR, lpdwformatnamelength: *mut u32) -> windows_core::Result<()> @@ -192,7 +192,7 @@ where #[inline] pub unsafe fn MQPurgeQueue(hqueue: isize) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQPurgeQueue(hqueue : isize) -> windows_core::HRESULT); - MQPurgeQueue(core::mem::transmute(hqueue)).ok() + MQPurgeQueue(hqueue).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_DistributedTransactionCoordinator", feature = "Win32_System_IO", feature = "Win32_System_Variant"))] #[inline] @@ -201,7 +201,7 @@ where P7: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQReceiveMessage(hsource : isize, dwtimeout : u32, dwaction : u32, pmessageprops : *mut MQMSGPROPS, lpoverlapped : *mut super::IO:: OVERLAPPED, fnreceivecallback : PMQRECEIVECALLBACK, hcursor : super::super::Foundation:: HANDLE, ptransaction : * mut core::ffi::c_void) -> windows_core::HRESULT); - MQReceiveMessage(core::mem::transmute(hsource), core::mem::transmute(dwtimeout), core::mem::transmute(dwaction), core::mem::transmute(pmessageprops.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(fnreceivecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(hcursor.unwrap_or(core::mem::zeroed())), ptransaction.param().abi()).ok() + MQReceiveMessage(hsource, dwtimeout, dwaction, core::mem::transmute(pmessageprops.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(fnreceivecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(hcursor.unwrap_or(core::mem::zeroed())), ptransaction.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_DistributedTransactionCoordinator", feature = "Win32_System_IO", feature = "Win32_System_Variant"))] #[inline] @@ -210,12 +210,12 @@ where P6: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQReceiveMessageByLookupId(hsource : isize, ulllookupid : u64, dwlookupaction : u32, pmessageprops : *mut MQMSGPROPS, lpoverlapped : *mut super::IO:: OVERLAPPED, fnreceivecallback : PMQRECEIVECALLBACK, ptransaction : * mut core::ffi::c_void) -> windows_core::HRESULT); - MQReceiveMessageByLookupId(core::mem::transmute(hsource), core::mem::transmute(ulllookupid), core::mem::transmute(dwlookupaction), core::mem::transmute(pmessageprops.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(fnreceivecallback.unwrap_or(core::mem::zeroed())), ptransaction.param().abi()).ok() + MQReceiveMessageByLookupId(hsource, ulllookupid, dwlookupaction, core::mem::transmute(pmessageprops.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed())), core::mem::transmute(fnreceivecallback.unwrap_or(core::mem::zeroed())), ptransaction.param().abi()).ok() } #[inline] pub unsafe fn MQRegisterCertificate(dwflags: u32, lpcertbuffer: *const core::ffi::c_void, dwcertbufferlength: u32) -> windows_core::Result<()> { windows_targets::link!("mqrt.dll" "system" fn MQRegisterCertificate(dwflags : u32, lpcertbuffer : *const core::ffi::c_void, dwcertbufferlength : u32) -> windows_core::HRESULT); - MQRegisterCertificate(core::mem::transmute(dwflags), core::mem::transmute(lpcertbuffer), core::mem::transmute(dwcertbufferlength)).ok() + MQRegisterCertificate(dwflags, lpcertbuffer, dwcertbufferlength).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_DistributedTransactionCoordinator", feature = "Win32_System_Variant"))] #[inline] @@ -224,7 +224,7 @@ where P2: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQSendMessage(hdestinationqueue : isize, pmessageprops : *const MQMSGPROPS, ptransaction : * mut core::ffi::c_void) -> windows_core::HRESULT); - MQSendMessage(core::mem::transmute(hdestinationqueue), core::mem::transmute(pmessageprops), ptransaction.param().abi()).ok() + MQSendMessage(hdestinationqueue, pmessageprops, ptransaction.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -242,7 +242,7 @@ where P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQSetQueueSecurity(lpwcsformatname : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> windows_core::HRESULT); - MQSetQueueSecurity(lpwcsformatname.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed()))).ok() + MQSetQueueSecurity(lpwcsformatname.param().abi(), securityinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed()))).ok() } pub const DEFAULT_M_ACKNOWLEDGE: MQDEFAULT = MQDEFAULT(0i32); pub const DEFAULT_M_APPSPECIFIC: MQDEFAULT = MQDEFAULT(0i32); @@ -1477,14 +1477,14 @@ impl IMSMQMessage { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn AuthLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AuthLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthLevel(&self, lauthlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthlevel)).ok() + (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), lauthlevel).ok() } pub unsafe fn IsAuthenticated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1495,28 +1495,28 @@ impl IMSMQMessage { (windows_core::Interface::vtable(self).Delivery)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDelivery(&self, ldelivery: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), core::mem::transmute(ldelivery)).ok() + (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), ldelivery).ok() } pub unsafe fn Trace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Trace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTrace(&self, ltrace: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(ltrace)).ok() + (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), ltrace).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lpriority).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn ResponseQueueInfo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1533,7 +1533,7 @@ impl IMSMQMessage { (windows_core::Interface::vtable(self).AppSpecific)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(lappspecific)).ok() + (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), lappspecific).ok() } pub unsafe fn SourceMachineGuid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1581,7 +1581,7 @@ impl IMSMQMessage { (windows_core::Interface::vtable(self).Ack)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAck(&self, lack: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), core::mem::transmute(lack)).ok() + (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), lack).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1595,28 +1595,28 @@ impl IMSMQMessage { (windows_core::Interface::vtable(self).MaxTimeToReachQueue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreachqueue)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), lmaxtimetoreachqueue).ok() } pub unsafe fn MaxTimeToReceive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxTimeToReceive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReceive(&self, lmaxtimetoreceive: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreceive)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), lmaxtimetoreceive).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HashAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHashAlgorithm(&self, lhashalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lhashalg)).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), lhashalg).ok() } pub unsafe fn EncryptAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EncryptAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEncryptAlgorithm(&self, lencryptalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lencryptalg)).ok() + (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), lencryptalg).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SentTime(&self) -> windows_core::Result { @@ -1651,7 +1651,7 @@ impl IMSMQMessage { (windows_core::Interface::vtable(self).SenderIdType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSenderIdType(&self, lsenderidtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), core::mem::transmute(lsenderidtype)).ok() + (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), lsenderidtype).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const super::Variant::VARIANT) -> windows_core::Result<()> @@ -2251,14 +2251,14 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn AuthLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AuthLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthLevel(&self, lauthlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthlevel)).ok() + (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), lauthlevel).ok() } pub unsafe fn IsAuthenticated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2269,28 +2269,28 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).Delivery)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDelivery(&self, ldelivery: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), core::mem::transmute(ldelivery)).ok() + (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), ldelivery).ok() } pub unsafe fn Trace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Trace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTrace(&self, ltrace: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(ltrace)).ok() + (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), ltrace).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lpriority).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn ResponseQueueInfo_v1(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2307,7 +2307,7 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).AppSpecific)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(lappspecific)).ok() + (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), lappspecific).ok() } pub unsafe fn SourceMachineGuid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2355,7 +2355,7 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).Ack)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAck(&self, lack: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), core::mem::transmute(lack)).ok() + (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), lack).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2369,28 +2369,28 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).MaxTimeToReachQueue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreachqueue)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), lmaxtimetoreachqueue).ok() } pub unsafe fn MaxTimeToReceive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxTimeToReceive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReceive(&self, lmaxtimetoreceive: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreceive)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), lmaxtimetoreceive).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HashAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHashAlgorithm(&self, lhashalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lhashalg)).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), lhashalg).ok() } pub unsafe fn EncryptAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EncryptAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEncryptAlgorithm(&self, lencryptalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lencryptalg)).ok() + (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), lencryptalg).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SentTime(&self) -> windows_core::Result { @@ -2425,7 +2425,7 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).SenderIdType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSenderIdType(&self, lsenderidtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), core::mem::transmute(lsenderidtype)).ok() + (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), lsenderidtype).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const super::Variant::VARIANT) -> windows_core::Result<()> @@ -2484,7 +2484,7 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).AuthenticationProviderType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthprovtype)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationProviderType)(windows_core::Interface::as_raw(self), lauthprovtype).ok() } pub unsafe fn AuthenticationProviderName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2502,7 +2502,7 @@ impl IMSMQMessage2 { (windows_core::Interface::vtable(self).MsgClass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMsgClass(&self, lmsgclass: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMsgClass)(windows_core::Interface::as_raw(self), core::mem::transmute(lmsgclass)).ok() + (windows_core::Interface::vtable(self).SetMsgClass)(windows_core::Interface::as_raw(self), lmsgclass).ok() } pub unsafe fn Properties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3435,14 +3435,14 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn AuthLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AuthLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthLevel(&self, lauthlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthlevel)).ok() + (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), lauthlevel).ok() } pub unsafe fn IsAuthenticated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3453,28 +3453,28 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).Delivery)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDelivery(&self, ldelivery: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), core::mem::transmute(ldelivery)).ok() + (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), ldelivery).ok() } pub unsafe fn Trace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Trace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTrace(&self, ltrace: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(ltrace)).ok() + (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), ltrace).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lpriority).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn ResponseQueueInfo_v1(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3491,7 +3491,7 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).AppSpecific)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(lappspecific)).ok() + (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), lappspecific).ok() } pub unsafe fn SourceMachineGuid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3539,7 +3539,7 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).Ack)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAck(&self, lack: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), core::mem::transmute(lack)).ok() + (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), lack).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3553,28 +3553,28 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).MaxTimeToReachQueue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreachqueue)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), lmaxtimetoreachqueue).ok() } pub unsafe fn MaxTimeToReceive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxTimeToReceive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReceive(&self, lmaxtimetoreceive: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreceive)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), lmaxtimetoreceive).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HashAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHashAlgorithm(&self, lhashalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lhashalg)).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), lhashalg).ok() } pub unsafe fn EncryptAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EncryptAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEncryptAlgorithm(&self, lencryptalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lencryptalg)).ok() + (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), lencryptalg).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SentTime(&self) -> windows_core::Result { @@ -3609,7 +3609,7 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).SenderIdType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSenderIdType(&self, lsenderidtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), core::mem::transmute(lsenderidtype)).ok() + (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), lsenderidtype).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const super::Variant::VARIANT) -> windows_core::Result<()> @@ -3668,7 +3668,7 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).AuthenticationProviderType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthprovtype)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationProviderType)(windows_core::Interface::as_raw(self), lauthprovtype).ok() } pub unsafe fn AuthenticationProviderName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3686,7 +3686,7 @@ impl IMSMQMessage3 { (windows_core::Interface::vtable(self).MsgClass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMsgClass(&self, lmsgclass: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMsgClass)(windows_core::Interface::as_raw(self), core::mem::transmute(lmsgclass)).ok() + (windows_core::Interface::vtable(self).SetMsgClass)(windows_core::Interface::as_raw(self), lmsgclass).ok() } pub unsafe fn Properties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4866,14 +4866,14 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn AuthLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AuthLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthLevel(&self, lauthlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthlevel)).ok() + (windows_core::Interface::vtable(self).SetAuthLevel)(windows_core::Interface::as_raw(self), lauthlevel).ok() } pub unsafe fn IsAuthenticated(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4884,28 +4884,28 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).Delivery)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDelivery(&self, ldelivery: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), core::mem::transmute(ldelivery)).ok() + (windows_core::Interface::vtable(self).SetDelivery)(windows_core::Interface::as_raw(self), ldelivery).ok() } pub unsafe fn Trace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Trace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTrace(&self, ltrace: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(ltrace)).ok() + (windows_core::Interface::vtable(self).SetTrace)(windows_core::Interface::as_raw(self), ltrace).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, lpriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), lpriority).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn ResponseQueueInfo_v1(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4922,7 +4922,7 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).AppSpecific)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), core::mem::transmute(lappspecific)).ok() + (windows_core::Interface::vtable(self).SetAppSpecific)(windows_core::Interface::as_raw(self), lappspecific).ok() } pub unsafe fn SourceMachineGuid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4970,7 +4970,7 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).Ack)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAck(&self, lack: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), core::mem::transmute(lack)).ok() + (windows_core::Interface::vtable(self).SetAck)(windows_core::Interface::as_raw(self), lack).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4984,28 +4984,28 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).MaxTimeToReachQueue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreachqueue)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReachQueue)(windows_core::Interface::as_raw(self), lmaxtimetoreachqueue).ok() } pub unsafe fn MaxTimeToReceive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxTimeToReceive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxTimeToReceive(&self, lmaxtimetoreceive: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxtimetoreceive)).ok() + (windows_core::Interface::vtable(self).SetMaxTimeToReceive)(windows_core::Interface::as_raw(self), lmaxtimetoreceive).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HashAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHashAlgorithm(&self, lhashalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lhashalg)).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), lhashalg).ok() } pub unsafe fn EncryptAlgorithm(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EncryptAlgorithm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEncryptAlgorithm(&self, lencryptalg: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), core::mem::transmute(lencryptalg)).ok() + (windows_core::Interface::vtable(self).SetEncryptAlgorithm)(windows_core::Interface::as_raw(self), lencryptalg).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SentTime(&self) -> windows_core::Result { @@ -5040,7 +5040,7 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).SenderIdType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSenderIdType(&self, lsenderidtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), core::mem::transmute(lsenderidtype)).ok() + (windows_core::Interface::vtable(self).SetSenderIdType)(windows_core::Interface::as_raw(self), lsenderidtype).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const super::Variant::VARIANT) -> windows_core::Result<()> @@ -5099,7 +5099,7 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).AuthenticationProviderType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationProviderType)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthprovtype)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationProviderType)(windows_core::Interface::as_raw(self), lauthprovtype).ok() } pub unsafe fn AuthenticationProviderName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5117,7 +5117,7 @@ impl IMSMQMessage4 { (windows_core::Interface::vtable(self).MsgClass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMsgClass(&self, lmsgclass: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMsgClass)(windows_core::Interface::as_raw(self), core::mem::transmute(lmsgclass)).ok() + (windows_core::Interface::vtable(self).SetMsgClass)(windows_core::Interface::as_raw(self), lmsgclass).ok() } pub unsafe fn Properties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6482,13 +6482,13 @@ impl IMSMQPrivateEvent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireArrivedEvent)(windows_core::Interface::as_raw(self), pq.param().abi(), core::mem::transmute(msgcursor)).ok() + (windows_core::Interface::vtable(self).FireArrivedEvent)(windows_core::Interface::as_raw(self), pq.param().abi(), msgcursor).ok() } pub unsafe fn FireArrivedErrorEvent(&self, pq: P0, hrstatus: windows_core::HRESULT, msgcursor: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireArrivedErrorEvent)(windows_core::Interface::as_raw(self), pq.param().abi(), core::mem::transmute(hrstatus), core::mem::transmute(msgcursor)).ok() + (windows_core::Interface::vtable(self).FireArrivedErrorEvent)(windows_core::Interface::as_raw(self), pq.param().abi(), hrstatus, msgcursor).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8858,28 +8858,28 @@ impl IMSMQQueueInfo { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn Quota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Quota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuota(&self, lquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(lquota)).ok() + (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), lquota).ok() } pub unsafe fn BasePriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BasePriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBasePriority(&self, lbasepriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lbasepriority)).ok() + (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), lbasepriority).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTime(&self) -> windows_core::Result { @@ -8896,14 +8896,14 @@ impl IMSMQQueueInfo { (windows_core::Interface::vtable(self).Authenticate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticate(&self, lauthenticate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthenticate)).ok() + (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), lauthenticate).ok() } pub unsafe fn JournalQuota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JournalQuota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournalQuota(&self, ljournalquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournalquota)).ok() + (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), ljournalquota).ok() } pub unsafe fn IsWorldReadable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8918,7 +8918,7 @@ impl IMSMQQueueInfo { } pub unsafe fn Open(&self, access: i32, sharemode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(access), core::mem::transmute(sharemode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), access, sharemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -9317,28 +9317,28 @@ impl IMSMQQueueInfo2 { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn Quota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Quota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuota(&self, lquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(lquota)).ok() + (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), lquota).ok() } pub unsafe fn BasePriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BasePriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBasePriority(&self, lbasepriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lbasepriority)).ok() + (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), lbasepriority).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTime(&self) -> windows_core::Result { @@ -9355,14 +9355,14 @@ impl IMSMQQueueInfo2 { (windows_core::Interface::vtable(self).Authenticate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticate(&self, lauthenticate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthenticate)).ok() + (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), lauthenticate).ok() } pub unsafe fn JournalQuota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JournalQuota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournalQuota(&self, ljournalquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournalquota)).ok() + (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), ljournalquota).ok() } pub unsafe fn IsWorldReadable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9377,7 +9377,7 @@ impl IMSMQQueueInfo2 { } pub unsafe fn Open(&self, access: i32, sharemode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(access), core::mem::transmute(sharemode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), access, sharemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -9845,28 +9845,28 @@ impl IMSMQQueueInfo3 { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn Quota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Quota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuota(&self, lquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(lquota)).ok() + (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), lquota).ok() } pub unsafe fn BasePriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BasePriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBasePriority(&self, lbasepriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lbasepriority)).ok() + (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), lbasepriority).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTime(&self) -> windows_core::Result { @@ -9883,14 +9883,14 @@ impl IMSMQQueueInfo3 { (windows_core::Interface::vtable(self).Authenticate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticate(&self, lauthenticate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthenticate)).ok() + (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), lauthenticate).ok() } pub unsafe fn JournalQuota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JournalQuota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournalQuota(&self, ljournalquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournalquota)).ok() + (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), ljournalquota).ok() } pub unsafe fn IsWorldReadable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9905,7 +9905,7 @@ impl IMSMQQueueInfo3 { } pub unsafe fn Open(&self, access: i32, sharemode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(access), core::mem::transmute(sharemode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), access, sharemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -10451,28 +10451,28 @@ impl IMSMQQueueInfo4 { (windows_core::Interface::vtable(self).PrivLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivLevel(&self, lprivlevel: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(lprivlevel)).ok() + (windows_core::Interface::vtable(self).SetPrivLevel)(windows_core::Interface::as_raw(self), lprivlevel).ok() } pub unsafe fn Journal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Journal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournal(&self, ljournal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournal)).ok() + (windows_core::Interface::vtable(self).SetJournal)(windows_core::Interface::as_raw(self), ljournal).ok() } pub unsafe fn Quota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Quota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuota(&self, lquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(lquota)).ok() + (windows_core::Interface::vtable(self).SetQuota)(windows_core::Interface::as_raw(self), lquota).ok() } pub unsafe fn BasePriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BasePriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBasePriority(&self, lbasepriority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(lbasepriority)).ok() + (windows_core::Interface::vtable(self).SetBasePriority)(windows_core::Interface::as_raw(self), lbasepriority).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTime(&self) -> windows_core::Result { @@ -10489,14 +10489,14 @@ impl IMSMQQueueInfo4 { (windows_core::Interface::vtable(self).Authenticate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticate(&self, lauthenticate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), core::mem::transmute(lauthenticate)).ok() + (windows_core::Interface::vtable(self).SetAuthenticate)(windows_core::Interface::as_raw(self), lauthenticate).ok() } pub unsafe fn JournalQuota(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JournalQuota)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJournalQuota(&self, ljournalquota: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), core::mem::transmute(ljournalquota)).ok() + (windows_core::Interface::vtable(self).SetJournalQuota)(windows_core::Interface::as_raw(self), ljournalquota).ok() } pub unsafe fn IsWorldReadable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10511,7 +10511,7 @@ impl IMSMQQueueInfo4 { } pub unsafe fn Open(&self, access: i32, sharemode: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(access), core::mem::transmute(sharemode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), access, sharemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs index 4f27c75722..8bedd938c8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs @@ -127,14 +127,14 @@ impl Column { (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, width: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(width)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), width).ok() } pub unsafe fn DisplayPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DisplayPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplayPosition(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetDisplayPosition)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Hidden(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -144,7 +144,7 @@ impl Column { (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), hidden.into()).ok() } pub unsafe fn SetAsSortColumn(&self, sortorder: _ColumnSortOrder) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAsSortColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(sortorder)).ok() + (windows_core::Interface::vtable(self).SetAsSortColumn)(windows_core::Interface::as_raw(self), sortorder).ok() } pub unsafe fn IsSortColumn(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -280,7 +280,7 @@ windows_core::imp::interface_hierarchy!(Columns, windows_core::IUnknown, super:: impl Columns { pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -499,7 +499,7 @@ impl Document { (windows_core::Interface::vtable(self).Mode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMode(&self, mode: _DocumentMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn RootNode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -885,7 +885,7 @@ impl Extensions { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -979,28 +979,28 @@ impl Frame { (windows_core::Interface::vtable(self).Top)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTop(&self, top: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), top).ok() } pub unsafe fn Bottom(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Bottom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBottom(&self, bottom: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottom)(windows_core::Interface::as_raw(self), core::mem::transmute(bottom)).ok() + (windows_core::Interface::vtable(self).SetBottom)(windows_core::Interface::as_raw(self), bottom).ok() } pub unsafe fn Left(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Left)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeft(&self, left: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(left)).ok() + (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), left).ok() } pub unsafe fn Right(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Right)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRight(&self, right: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRight)(windows_core::Interface::as_raw(self), core::mem::transmute(right)).ok() + (windows_core::Interface::vtable(self).SetRight)(windows_core::Interface::as_raw(self), right).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1132,18 +1132,18 @@ windows_core::imp::define_interface!(IColumnData, IColumnData_Vtbl, 0x547c1354_0 windows_core::imp::interface_hierarchy!(IColumnData, windows_core::IUnknown); impl IColumnData { pub unsafe fn SetColumnConfigData(&self, pcolid: *const SColumnSetID, pcolsetdata: *const MMC_COLUMN_SET_DATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnConfigData)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolid), core::mem::transmute(pcolsetdata)).ok() + (windows_core::Interface::vtable(self).SetColumnConfigData)(windows_core::Interface::as_raw(self), pcolid, pcolsetdata).ok() } pub unsafe fn GetColumnConfigData(&self, pcolid: *const SColumnSetID) -> windows_core::Result<*mut MMC_COLUMN_SET_DATA> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnConfigData)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetColumnConfigData)(windows_core::Interface::as_raw(self), pcolid, &mut result__).map(|| result__) } pub unsafe fn SetColumnSortData(&self, pcolid: *const SColumnSetID, pcolsortdata: *const MMC_SORT_SET_DATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnSortData)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolid), core::mem::transmute(pcolsortdata)).ok() + (windows_core::Interface::vtable(self).SetColumnSortData)(windows_core::Interface::as_raw(self), pcolid, pcolsortdata).ok() } pub unsafe fn GetColumnSortData(&self, pcolid: *const SColumnSetID) -> windows_core::Result<*mut MMC_SORT_SET_DATA> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnSortData)(windows_core::Interface::as_raw(self), core::mem::transmute(pcolid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetColumnSortData)(windows_core::Interface::as_raw(self), pcolid, &mut result__).map(|| result__) } } #[repr(C)] @@ -1217,18 +1217,18 @@ impl IComponent { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), core::mem::transmute(event), core::mem::transmute(arg), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), event, arg, param3).ok() } pub unsafe fn Destroy(&self, cookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self), cookie).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDataObject(&self, cookie: isize, r#type: DATA_OBJECT_TYPES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDataObject)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDataObject)(windows_core::Interface::as_raw(self), cookie, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetResultViewType(&self, cookie: isize, ppviewtype: *mut windows_core::PWSTR, pviewoptions: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResultViewType)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(ppviewtype), core::mem::transmute(pviewoptions)).ok() + (windows_core::Interface::vtable(self).GetResultViewType)(windows_core::Interface::as_raw(self), cookie, core::mem::transmute(ppviewtype), core::mem::transmute(pviewoptions)).ok() } pub unsafe fn GetDisplayInfo(&self, presultdataitem: *mut RESULTDATAITEM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDisplayInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(presultdataitem)).ok() @@ -1338,13 +1338,13 @@ impl IComponent2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDispatch(&self, cookie: isize, r#type: DATA_OBJECT_TYPES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDispatch)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDispatch)(windows_core::Interface::as_raw(self), cookie, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetResultViewType2(&self, cookie: isize, presultviewtype: *mut RESULT_VIEW_TYPE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetResultViewType2)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(presultviewtype)).ok() + (windows_core::Interface::vtable(self).GetResultViewType2)(windows_core::Interface::as_raw(self), cookie, core::mem::transmute(presultviewtype)).ok() } pub unsafe fn RestoreResultView(&self, cookie: isize, presultviewtype: *const RESULT_VIEW_TYPE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RestoreResultView)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(presultviewtype)).ok() + (windows_core::Interface::vtable(self).RestoreResultView)(windows_core::Interface::as_raw(self), cookie, core::mem::transmute(presultviewtype)).ok() } } #[repr(C)] @@ -1415,7 +1415,7 @@ impl IComponentData { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), core::mem::transmute(event), core::mem::transmute(arg), core::mem::transmute(param3)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), event, arg, param3).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -1423,7 +1423,7 @@ impl IComponentData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDataObject(&self, cookie: isize, r#type: DATA_OBJECT_TYPES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDataObject)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDataObject)(windows_core::Interface::as_raw(self), cookie, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDisplayInfo(&self, pscopedataitem: *mut SCOPEDATAITEM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDisplayInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pscopedataitem)).ok() @@ -1539,7 +1539,7 @@ impl IComponentData2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDispatch(&self, cookie: isize, r#type: DATA_OBJECT_TYPES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDispatch)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDispatch)(windows_core::Interface::as_raw(self), cookie, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1607,7 +1607,7 @@ impl IConsole { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), core::mem::transmute(data), core::mem::transmute(hint)).ok() + (windows_core::Interface::vtable(self).UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), data, hint).ok() } pub unsafe fn MessageBox(&self, lpsztext: P0, lpsztitle: P1, fustyle: u32) -> windows_core::Result where @@ -1615,21 +1615,21 @@ impl IConsole { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MessageBox)(windows_core::Interface::as_raw(self), lpsztext.param().abi(), lpsztitle.param().abi(), core::mem::transmute(fustyle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MessageBox)(windows_core::Interface::as_raw(self), lpsztext.param().abi(), lpsztitle.param().abi(), fustyle, &mut result__).map(|| result__) } pub unsafe fn QueryConsoleVerb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryConsoleVerb)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectScopeItem(&self, hscopeitem: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectScopeItem)(windows_core::Interface::as_raw(self), core::mem::transmute(hscopeitem)).ok() + (windows_core::Interface::vtable(self).SelectScopeItem)(windows_core::Interface::as_raw(self), hscopeitem).ok() } pub unsafe fn GetMainWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMainWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn NewWindow(&self, hscopeitem: isize, loptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NewWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hscopeitem), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).NewWindow)(windows_core::Interface::as_raw(self), hscopeitem, loptions).ok() } } #[repr(C)] @@ -1778,7 +1778,7 @@ impl core::ops::Deref for IConsole2 { windows_core::imp::interface_hierarchy!(IConsole2, windows_core::IUnknown, IConsole); impl IConsole2 { pub unsafe fn Expand(&self, hitem: isize, bexpand: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), core::mem::transmute(hitem), bexpand.into()).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), hitem, bexpand.into()).ok() } pub unsafe fn IsTaskpadViewPreferred(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsTaskpadViewPreferred)(windows_core::Interface::as_raw(self)).ok() @@ -1841,7 +1841,7 @@ impl core::ops::Deref for IConsole3 { windows_core::imp::interface_hierarchy!(IConsole3, windows_core::IUnknown, IConsole, IConsole2); impl IConsole3 { pub unsafe fn RenameScopeItem(&self, hscopeitem: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RenameScopeItem)(windows_core::Interface::as_raw(self), core::mem::transmute(hscopeitem)).ok() + (windows_core::Interface::vtable(self).RenameScopeItem)(windows_core::Interface::as_raw(self), hscopeitem).ok() } } #[repr(C)] @@ -1875,22 +1875,22 @@ impl IConsoleNameSpace { (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() } pub unsafe fn DeleteItem(&self, hitem: isize, fdeletethis: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(hitem), core::mem::transmute(fdeletethis)).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), hitem, fdeletethis).ok() } pub unsafe fn SetItem(&self, item: *const SCOPEDATAITEM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() + (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), item).ok() } pub unsafe fn GetItem(&self, item: *mut SCOPEDATAITEM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() } pub unsafe fn GetChildItem(&self, item: isize, pitemchild: *mut isize, pcookie: *mut isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChildItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item), core::mem::transmute(pitemchild), core::mem::transmute(pcookie)).ok() + (windows_core::Interface::vtable(self).GetChildItem)(windows_core::Interface::as_raw(self), item, core::mem::transmute(pitemchild), core::mem::transmute(pcookie)).ok() } pub unsafe fn GetNextItem(&self, item: isize, pitemnext: *mut isize, pcookie: *mut isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item), core::mem::transmute(pitemnext), core::mem::transmute(pcookie)).ok() + (windows_core::Interface::vtable(self).GetNextItem)(windows_core::Interface::as_raw(self), item, core::mem::transmute(pitemnext), core::mem::transmute(pcookie)).ok() } pub unsafe fn GetParentItem(&self, item: isize, pitemparent: *mut isize, pcookie: *mut isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParentItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item), core::mem::transmute(pitemparent), core::mem::transmute(pcookie)).ok() + (windows_core::Interface::vtable(self).GetParentItem)(windows_core::Interface::as_raw(self), item, core::mem::transmute(pitemparent), core::mem::transmute(pcookie)).ok() } } #[repr(C)] @@ -1969,10 +1969,10 @@ impl core::ops::Deref for IConsoleNameSpace2 { windows_core::imp::interface_hierarchy!(IConsoleNameSpace2, windows_core::IUnknown, IConsoleNameSpace); impl IConsoleNameSpace2 { pub unsafe fn Expand(&self, hitem: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), core::mem::transmute(hitem)).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), hitem).ok() } pub unsafe fn AddExtension(&self, hitem: isize, lpclsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(hitem), core::mem::transmute(lpclsid)).ok() + (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), hitem, lpclsid).ok() } } #[repr(C)] @@ -2006,10 +2006,10 @@ windows_core::imp::define_interface!(IConsolePower, IConsolePower_Vtbl, 0x1cfbdd windows_core::imp::interface_hierarchy!(IConsolePower, windows_core::IUnknown); impl IConsolePower { pub unsafe fn SetExecutionState(&self, dwadd: u32, dwremove: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExecutionState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwadd), core::mem::transmute(dwremove)).ok() + (windows_core::Interface::vtable(self).SetExecutionState)(windows_core::Interface::as_raw(self), dwadd, dwremove).ok() } pub unsafe fn ResetIdleTimer(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetIdleTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ResetIdleTimer)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -2048,7 +2048,7 @@ windows_core::imp::interface_hierarchy!(IConsolePowerSink, windows_core::IUnknow impl IConsolePowerSink { pub unsafe fn OnPowerBroadcast(&self, nevent: u32, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPowerBroadcast)(windows_core::Interface::as_raw(self), core::mem::transmute(nevent), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnPowerBroadcast)(windows_core::Interface::as_raw(self), nevent, lparam, &mut result__).map(|| result__) } } #[repr(C)] @@ -2083,13 +2083,13 @@ windows_core::imp::interface_hierarchy!(IConsoleVerb, windows_core::IUnknown); impl IConsoleVerb { pub unsafe fn GetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVerbState)(windows_core::Interface::as_raw(self), core::mem::transmute(ecmdid), core::mem::transmute(nstate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVerbState)(windows_core::Interface::as_raw(self), ecmdid, nstate, &mut result__).map(|| result__) } pub unsafe fn SetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVerbState)(windows_core::Interface::as_raw(self), core::mem::transmute(ecmdid), core::mem::transmute(nstate), bstate.into()).ok() + (windows_core::Interface::vtable(self).SetVerbState)(windows_core::Interface::as_raw(self), ecmdid, nstate, bstate.into()).ok() } pub unsafe fn SetDefaultVerb(&self, ecmdid: MMC_CONSOLE_VERB) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultVerb)(windows_core::Interface::as_raw(self), core::mem::transmute(ecmdid)).ok() + (windows_core::Interface::vtable(self).SetDefaultVerb)(windows_core::Interface::as_raw(self), ecmdid).ok() } pub unsafe fn GetDefaultVerb(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2157,7 +2157,7 @@ windows_core::imp::define_interface!(IContextMenuCallback, IContextMenuCallback_ windows_core::imp::interface_hierarchy!(IContextMenuCallback, windows_core::IUnknown); impl IContextMenuCallback { pub unsafe fn AddItem(&self, pitem: *const CONTEXTMENUITEM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pitem)).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), pitem).ok() } } #[repr(C)] @@ -2185,7 +2185,7 @@ windows_core::imp::define_interface!(IContextMenuCallback2, IContextMenuCallback windows_core::imp::interface_hierarchy!(IContextMenuCallback2, windows_core::IUnknown); impl IContextMenuCallback2 { pub unsafe fn AddItem(&self, pitem: *const CONTEXTMENUITEM2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pitem)).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), pitem).ok() } } #[repr(C)] @@ -2238,7 +2238,7 @@ impl IContextMenuProvider { } pub unsafe fn ShowContextMenu(&self, hwndparent: super::super::Foundation::HWND, xpos: i32, ypos: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(xpos), core::mem::transmute(ypos), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShowContextMenu)(windows_core::Interface::as_raw(self), hwndparent, xpos, ypos, &mut result__).map(|| result__) } } #[repr(C)] @@ -2309,13 +2309,13 @@ impl IControlbar { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(ntype), pextendcontrolbar.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), ntype, pextendcontrolbar.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Attach(&self, ntype: MMC_CONTROL_TYPE, lpunknown: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), core::mem::transmute(ntype), lpunknown.param().abi()).ok() + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), ntype, lpunknown.param().abi()).ok() } pub unsafe fn Detach(&self, lpunknown: P0) -> windows_core::Result<()> where @@ -2406,7 +2406,7 @@ impl IEnumTASK { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -2483,7 +2483,7 @@ impl IExtendContextMenu { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Command)(windows_core::Interface::as_raw(self), core::mem::transmute(lcommandid), pidataobject.param().abi()).ok() + (windows_core::Interface::vtable(self).Command)(windows_core::Interface::as_raw(self), lcommandid, pidataobject.param().abi()).ok() } } #[repr(C)] @@ -2536,7 +2536,7 @@ impl IExtendControlbar { (windows_core::Interface::vtable(self).SetControlbar)(windows_core::Interface::as_raw(self), pcontrolbar.param().abi()).ok() } pub unsafe fn ControlbarNotify(&self, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param2: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ControlbarNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(event), core::mem::transmute(arg), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).ControlbarNotify)(windows_core::Interface::as_raw(self), event, arg, param2).ok() } } #[repr(C)] @@ -2579,7 +2579,7 @@ impl IExtendPropertySheet { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePropertyPages)(windows_core::Interface::as_raw(self), lpprovider.param().abi(), core::mem::transmute(handle), lpidataobject.param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePropertyPages)(windows_core::Interface::as_raw(self), lpprovider.param().abi(), handle, lpidataobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryPagesFor(&self, lpdataobject: P0) -> windows_core::Result<()> @@ -2865,27 +2865,27 @@ impl IHeaderCtrl { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ncol), title.param().abi(), core::mem::transmute(nformat), core::mem::transmute(nwidth)).ok() + (windows_core::Interface::vtable(self).InsertColumn)(windows_core::Interface::as_raw(self), ncol, title.param().abi(), nformat, nwidth).ok() } pub unsafe fn DeleteColumn(&self, ncol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ncol)).ok() + (windows_core::Interface::vtable(self).DeleteColumn)(windows_core::Interface::as_raw(self), ncol).ok() } pub unsafe fn SetColumnText(&self, ncol: i32, title: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColumnText)(windows_core::Interface::as_raw(self), core::mem::transmute(ncol), title.param().abi()).ok() + (windows_core::Interface::vtable(self).SetColumnText)(windows_core::Interface::as_raw(self), ncol, title.param().abi()).ok() } pub unsafe fn GetColumnText(&self, ncol: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnText)(windows_core::Interface::as_raw(self), core::mem::transmute(ncol), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetColumnText)(windows_core::Interface::as_raw(self), ncol, &mut result__).map(|| result__) } pub unsafe fn SetColumnWidth(&self, ncol: i32, nwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(ncol), core::mem::transmute(nwidth)).ok() + (windows_core::Interface::vtable(self).SetColumnWidth)(windows_core::Interface::as_raw(self), ncol, nwidth).ok() } pub unsafe fn GetColumnWidth(&self, ncol: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(ncol), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetColumnWidth)(windows_core::Interface::as_raw(self), ncol, &mut result__).map(|| result__) } } #[repr(C)] @@ -2969,13 +2969,13 @@ impl core::ops::Deref for IHeaderCtrl2 { windows_core::imp::interface_hierarchy!(IHeaderCtrl2, windows_core::IUnknown, IHeaderCtrl); impl IHeaderCtrl2 { pub unsafe fn SetChangeTimeOut(&self, utimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChangeTimeOut)(windows_core::Interface::as_raw(self), core::mem::transmute(utimeout)).ok() + (windows_core::Interface::vtable(self).SetChangeTimeOut)(windows_core::Interface::as_raw(self), utimeout).ok() } pub unsafe fn SetColumnFilter(&self, ncolumn: u32, dwtype: u32, pfilterdata: *const MMC_FILTERDATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(ncolumn), core::mem::transmute(dwtype), core::mem::transmute(pfilterdata)).ok() + (windows_core::Interface::vtable(self).SetColumnFilter)(windows_core::Interface::as_raw(self), ncolumn, dwtype, pfilterdata).ok() } pub unsafe fn GetColumnFilter(&self, ncolumn: u32, pdwtype: *mut u32, pfilterdata: *mut MMC_FILTERDATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(ncolumn), core::mem::transmute(pdwtype), core::mem::transmute(pfilterdata)).ok() + (windows_core::Interface::vtable(self).GetColumnFilter)(windows_core::Interface::as_raw(self), ncolumn, core::mem::transmute(pdwtype), core::mem::transmute(pfilterdata)).ok() } } #[repr(C)] @@ -3020,10 +3020,10 @@ windows_core::imp::define_interface!(IImageList, IImageList_Vtbl, 0x43136eb8_d36 windows_core::imp::interface_hierarchy!(IImageList, windows_core::IUnknown); impl IImageList { pub unsafe fn ImageListSetIcon(&self, picon: *const isize, nloc: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ImageListSetIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(picon), core::mem::transmute(nloc)).ok() + (windows_core::Interface::vtable(self).ImageListSetIcon)(windows_core::Interface::as_raw(self), picon, nloc).ok() } pub unsafe fn ImageListSetStrip(&self, pbmapsm: *const isize, pbmaplg: *const isize, nstartloc: i32, cmask: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ImageListSetStrip)(windows_core::Interface::as_raw(self), core::mem::transmute(pbmapsm), core::mem::transmute(pbmaplg), core::mem::transmute(nstartloc), core::mem::transmute(cmask)).ok() + (windows_core::Interface::vtable(self).ImageListSetStrip)(windows_core::Interface::as_raw(self), pbmapsm, pbmaplg, nstartloc, cmask).ok() } } #[repr(C)] @@ -3095,17 +3095,17 @@ impl IMenuButton { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddButton)(windows_core::Interface::as_raw(self), core::mem::transmute(idcommand), lpbuttontext.param().abi(), lptooltiptext.param().abi()).ok() + (windows_core::Interface::vtable(self).AddButton)(windows_core::Interface::as_raw(self), idcommand, lpbuttontext.param().abi(), lptooltiptext.param().abi()).ok() } pub unsafe fn SetButton(&self, idcommand: i32, lpbuttontext: P1, lptooltiptext: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetButton)(windows_core::Interface::as_raw(self), core::mem::transmute(idcommand), lpbuttontext.param().abi(), lptooltiptext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetButton)(windows_core::Interface::as_raw(self), idcommand, lpbuttontext.param().abi(), lptooltiptext.param().abi()).ok() } pub unsafe fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), core::mem::transmute(idcommand), core::mem::transmute(nstate), bstate.into()).ok() + (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, bstate.into()).ok() } } #[repr(C)] @@ -3162,7 +3162,7 @@ impl IMessageView { (windows_core::Interface::vtable(self).SetBodyText)(windows_core::Interface::as_raw(self), pszbodytext.param().abi()).ok() } pub unsafe fn SetIcon(&self, id: IconIdentifier) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -3264,11 +3264,11 @@ windows_core::imp::interface_hierarchy!(IPropertySheetCallback, windows_core::IU impl IPropertySheetCallback { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPage(&self, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage)).ok() + (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), hpage).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn RemovePage(&self, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemovePage)(windows_core::Interface::as_raw(self), core::mem::transmute(hpage)).ok() + (windows_core::Interface::vtable(self).RemovePage)(windows_core::Interface::as_raw(self), hpage).ok() } } #[repr(C)] @@ -3316,7 +3316,7 @@ impl IPropertySheetProvider { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePropertySheet)(windows_core::Interface::as_raw(self), title.param().abi(), core::mem::transmute(r#type), core::mem::transmute(cookie), pidataobjectm.param().abi(), core::mem::transmute(dwoptions)).ok() + (windows_core::Interface::vtable(self).CreatePropertySheet)(windows_core::Interface::as_raw(self), title.param().abi(), r#type, cookie, pidataobjectm.param().abi(), dwoptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindPropertySheet(&self, hitem: isize, lpcomponent: P1, lpdataobject: P2) -> windows_core::Result<()> @@ -3324,19 +3324,19 @@ impl IPropertySheetProvider { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindPropertySheet)(windows_core::Interface::as_raw(self), core::mem::transmute(hitem), lpcomponent.param().abi(), lpdataobject.param().abi()).ok() + (windows_core::Interface::vtable(self).FindPropertySheet)(windows_core::Interface::as_raw(self), hitem, lpcomponent.param().abi(), lpdataobject.param().abi()).ok() } pub unsafe fn AddPrimaryPages(&self, lpunknown: P0, bcreatehandle: bool, hnotifywindow: super::super::Foundation::HWND, bscopepane: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPrimaryPages)(windows_core::Interface::as_raw(self), lpunknown.param().abi(), bcreatehandle.into(), core::mem::transmute(hnotifywindow), bscopepane.into()).ok() + (windows_core::Interface::vtable(self).AddPrimaryPages)(windows_core::Interface::as_raw(self), lpunknown.param().abi(), bcreatehandle.into(), hnotifywindow, bscopepane.into()).ok() } pub unsafe fn AddExtensionPages(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddExtensionPages)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Show(&self, window: isize, page: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(window), core::mem::transmute(page)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), window, page).ok() } } #[repr(C)] @@ -3472,17 +3472,17 @@ impl IResultData { (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() } pub unsafe fn DeleteItem(&self, itemid: isize, ncol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), core::mem::transmute(ncol)).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), itemid, ncol).ok() } pub unsafe fn FindItemByLParam(&self, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByLParam)(windows_core::Interface::as_raw(self), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindItemByLParam)(windows_core::Interface::as_raw(self), lparam, &mut result__).map(|| result__) } pub unsafe fn DeleteAllRsltItems(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAllRsltItems)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetItem(&self, item: *const RESULTDATAITEM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() + (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), item).ok() } pub unsafe fn GetItem(&self, item: *mut RESULTDATAITEM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() @@ -3491,23 +3491,23 @@ impl IResultData { (windows_core::Interface::vtable(self).GetNextItem)(windows_core::Interface::as_raw(self), core::mem::transmute(item)).ok() } pub unsafe fn ModifyItemState(&self, nindex: i32, itemid: isize, uadd: u32, uremove: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyItemState)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(itemid), core::mem::transmute(uadd), core::mem::transmute(uremove)).ok() + (windows_core::Interface::vtable(self).ModifyItemState)(windows_core::Interface::as_raw(self), nindex, itemid, uadd, uremove).ok() } pub unsafe fn ModifyViewStyle(&self, add: MMC_RESULT_VIEW_STYLE, remove: MMC_RESULT_VIEW_STYLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyViewStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(add), core::mem::transmute(remove)).ok() + (windows_core::Interface::vtable(self).ModifyViewStyle)(windows_core::Interface::as_raw(self), add, remove).ok() } pub unsafe fn SetViewMode(&self, lviewmode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewMode)(windows_core::Interface::as_raw(self), core::mem::transmute(lviewmode)).ok() + (windows_core::Interface::vtable(self).SetViewMode)(windows_core::Interface::as_raw(self), lviewmode).ok() } pub unsafe fn GetViewMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetViewMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn UpdateItem(&self, itemid: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid)).ok() + (windows_core::Interface::vtable(self).UpdateItem)(windows_core::Interface::as_raw(self), itemid).ok() } pub unsafe fn Sort(&self, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), core::mem::transmute(ncolumn), core::mem::transmute(dwsortoptions), core::mem::transmute(luserparam)).ok() + (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam).ok() } pub unsafe fn SetDescBarText(&self, desctext: P0) -> windows_core::Result<()> where @@ -3516,7 +3516,7 @@ impl IResultData { (windows_core::Interface::vtable(self).SetDescBarText)(windows_core::Interface::as_raw(self), desctext.param().abi()).ok() } pub unsafe fn SetItemCount(&self, nitemcount: i32, dwoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItemCount)(windows_core::Interface::as_raw(self), core::mem::transmute(nitemcount), core::mem::transmute(dwoptions)).ok() + (windows_core::Interface::vtable(self).SetItemCount)(windows_core::Interface::as_raw(self), nitemcount, dwoptions).ok() } } #[repr(C)] @@ -3663,7 +3663,7 @@ impl core::ops::Deref for IResultData2 { windows_core::imp::interface_hierarchy!(IResultData2, windows_core::IUnknown, IResultData); impl IResultData2 { pub unsafe fn RenameResultItem(&self, itemid: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RenameResultItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid)).ok() + (windows_core::Interface::vtable(self).RenameResultItem)(windows_core::Interface::as_raw(self), itemid).ok() } } #[repr(C)] @@ -3691,7 +3691,7 @@ windows_core::imp::define_interface!(IResultDataCompare, IResultDataCompare_Vtbl windows_core::imp::interface_hierarchy!(IResultDataCompare, windows_core::IUnknown); impl IResultDataCompare { pub unsafe fn Compare(&self, luserparam: super::super::Foundation::LPARAM, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), core::mem::transmute(luserparam), core::mem::transmute(cookiea), core::mem::transmute(cookieb), core::mem::transmute(pnresult)).ok() + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), luserparam, cookiea, cookieb, core::mem::transmute(pnresult)).ok() } } #[repr(C)] @@ -3720,7 +3720,7 @@ windows_core::imp::interface_hierarchy!(IResultDataCompareEx, windows_core::IUnk impl IResultDataCompareEx { pub unsafe fn Compare(&self, prdc: *const RDCOMPARE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), core::mem::transmute(prdc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), prdc, &mut result__).map(|| result__) } } #[repr(C)] @@ -3755,13 +3755,13 @@ windows_core::imp::interface_hierarchy!(IResultOwnerData, windows_core::IUnknown impl IResultOwnerData { pub unsafe fn FindItem(&self, pfindinfo: *const RESULTFINDINFO) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pfindinfo), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindItem)(windows_core::Interface::as_raw(self), pfindinfo, &mut result__).map(|| result__) } pub unsafe fn CacheHint(&self, nstartindex: i32, nendindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CacheHint)(windows_core::Interface::as_raw(self), core::mem::transmute(nstartindex), core::mem::transmute(nendindex)).ok() + (windows_core::Interface::vtable(self).CacheHint)(windows_core::Interface::as_raw(self), nstartindex, nendindex).ok() } pub unsafe fn SortItems(&self, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SortItems)(windows_core::Interface::as_raw(self), core::mem::transmute(ncolumn), core::mem::transmute(dwsortoptions), core::mem::transmute(luserparam)).ok() + (windows_core::Interface::vtable(self).SortItems)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam).ok() } } #[repr(C)] @@ -4069,7 +4069,7 @@ impl ISnapinPropertiesCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyName)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddPropertyName)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), dwflags).ok() } } #[repr(C)] @@ -4104,14 +4104,14 @@ impl IStringTable { (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), pszadd.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetString(&self, stringid: u32, lpbuffer: &mut [u16], pcchout: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(stringid), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpbuffer.as_ptr()), core::mem::transmute(pcchout)).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), stringid, lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpbuffer.as_ptr()), core::mem::transmute(pcchout)).ok() } pub unsafe fn GetStringLength(&self, stringid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), core::mem::transmute(stringid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringLength)(windows_core::Interface::as_raw(self), stringid, &mut result__).map(|| result__) } pub unsafe fn DeleteString(&self, stringid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteString)(windows_core::Interface::as_raw(self), core::mem::transmute(stringid)).ok() + (windows_core::Interface::vtable(self).DeleteString)(windows_core::Interface::as_raw(self), stringid).ok() } pub unsafe fn DeleteAllStrings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAllStrings)(windows_core::Interface::as_raw(self)).ok() @@ -4230,23 +4230,23 @@ windows_core::imp::interface_hierarchy!(IToolbar, windows_core::IUnknown); impl IToolbar { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddBitmap(&self, nimages: i32, hbmp: super::super::Graphics::Gdi::HBITMAP, cxsize: i32, cysize: i32, crmask: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(nimages), core::mem::transmute(hbmp), core::mem::transmute(cxsize), core::mem::transmute(cysize), core::mem::transmute(crmask)).ok() + (windows_core::Interface::vtable(self).AddBitmap)(windows_core::Interface::as_raw(self), nimages, hbmp, cxsize, cysize, crmask).ok() } pub unsafe fn AddButtons(&self, nbuttons: i32, lpbuttons: *const MMCBUTTON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddButtons)(windows_core::Interface::as_raw(self), core::mem::transmute(nbuttons), core::mem::transmute(lpbuttons)).ok() + (windows_core::Interface::vtable(self).AddButtons)(windows_core::Interface::as_raw(self), nbuttons, lpbuttons).ok() } pub unsafe fn InsertButton(&self, nindex: i32, lpbutton: *const MMCBUTTON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertButton)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(lpbutton)).ok() + (windows_core::Interface::vtable(self).InsertButton)(windows_core::Interface::as_raw(self), nindex, lpbutton).ok() } pub unsafe fn DeleteButton(&self, nindex: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteButton)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).DeleteButton)(windows_core::Interface::as_raw(self), nindex).ok() } pub unsafe fn GetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetButtonState)(windows_core::Interface::as_raw(self), core::mem::transmute(idcommand), core::mem::transmute(nstate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, &mut result__).map(|| result__) } pub unsafe fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), core::mem::transmute(idcommand), core::mem::transmute(nstate), bstate.into()).ok() + (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, bstate.into()).ok() } } #[repr(C)] @@ -4324,7 +4324,7 @@ windows_core::imp::define_interface!(IViewExtensionCallback, IViewExtensionCallb windows_core::imp::interface_hierarchy!(IViewExtensionCallback, windows_core::IUnknown); impl IViewExtensionCallback { pub unsafe fn AddView(&self, pextviewdata: *const MMC_EXT_VIEW_DATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddView)(windows_core::Interface::as_raw(self), core::mem::transmute(pextviewdata)).ok() + (windows_core::Interface::vtable(self).AddView)(windows_core::Interface::as_raw(self), pextviewdata).ok() } } #[repr(C)] @@ -5034,7 +5034,7 @@ impl Nodes { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5804,7 +5804,7 @@ impl SnapIns { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6074,17 +6074,17 @@ impl View { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CellContents)(windows_core::Interface::as_raw(self), node.param().abi(), core::mem::transmute(column), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_CellContents)(windows_core::Interface::as_raw(self), node.param().abi(), column, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ExportList(&self, file: &windows_core::BSTR, exportoptions: _ExportListOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExportList)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(file), core::mem::transmute(exportoptions)).ok() + (windows_core::Interface::vtable(self).ExportList)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(file), exportoptions).ok() } pub unsafe fn ListViewMode(&self) -> windows_core::Result<_ListViewMode> { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ListViewMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetListViewMode(&self, mode: _ListViewMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListViewMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetListViewMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn ControlObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6552,7 +6552,7 @@ windows_core::imp::interface_hierarchy!(Views, windows_core::IUnknown, super::Co impl Views { pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6562,7 +6562,7 @@ impl Views { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), node.param().abi(), core::mem::transmute(viewoptions)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), node.param().abi(), viewoptions).ok() } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs index 728c6abc7c..0987e16242 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn BstrFromVector(psa: *const super::Com::SAFEARRAY) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn BstrFromVector(psa : *const super::Com:: SAFEARRAY, pbstr : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - BstrFromVector(core::mem::transmute(psa), &mut result__).map(|| core::mem::transmute(result__)) + BstrFromVector(psa, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -15,7 +15,7 @@ pub unsafe fn ClearCustData(pcustdata: *mut super::Com::CUSTDATA) { #[inline] pub unsafe fn CreateDispTypeInfo(pidata: *mut INTERFACEDATA, lcid: u32, pptinfo: *mut Option) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn CreateDispTypeInfo(pidata : *mut INTERFACEDATA, lcid : u32, pptinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - CreateDispTypeInfo(core::mem::transmute(pidata), core::mem::transmute(lcid), core::mem::transmute(pptinfo)).ok() + CreateDispTypeInfo(core::mem::transmute(pidata), lcid, core::mem::transmute(pptinfo)).ok() } #[inline] pub unsafe fn CreateErrorInfo() -> windows_core::Result { @@ -47,7 +47,7 @@ where { windows_targets::link!("oleaut32.dll" "system" fn CreateTypeLib(syskind : super::Com:: SYSKIND, szfile : windows_core::PCWSTR, ppctlib : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateTypeLib(core::mem::transmute(syskind), szfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateTypeLib(syskind, szfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -57,14 +57,14 @@ where { windows_targets::link!("oleaut32.dll" "system" fn CreateTypeLib2(syskind : super::Com:: SYSKIND, szfile : windows_core::PCWSTR, ppctlib : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateTypeLib2(core::mem::transmute(syskind), szfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateTypeLib2(syskind, szfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn DispCallFunc(pvinstance: Option<*const core::ffi::c_void>, ovft: usize, cc: super::Com::CALLCONV, vtreturn: super::Variant::VARENUM, cactuals: u32, prgvt: *const u16, prgpvarg: *const *const super::Variant::VARIANT) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn DispCallFunc(pvinstance : *const core::ffi::c_void, ovft : usize, cc : super::Com:: CALLCONV, vtreturn : super::Variant:: VARENUM, cactuals : u32, prgvt : *const u16, prgpvarg : *const *const super::Variant:: VARIANT, pvargresult : *mut super::Variant:: VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DispCallFunc(core::mem::transmute(pvinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(ovft), core::mem::transmute(cc), core::mem::transmute(vtreturn), core::mem::transmute(cactuals), core::mem::transmute(prgvt), core::mem::transmute(prgpvarg), &mut result__).map(|| core::mem::transmute(result__)) + DispCallFunc(core::mem::transmute(pvinstance.unwrap_or(core::mem::zeroed())), ovft, cc, vtreturn, cactuals, prgvt, prgpvarg, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -74,13 +74,13 @@ where { windows_targets::link!("oleaut32.dll" "system" fn DispGetIDsOfNames(ptinfo : * mut core::ffi::c_void, rgsznames : *const windows_core::PCWSTR, cnames : u32, rgdispid : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - DispGetIDsOfNames(ptinfo.param().abi(), core::mem::transmute(rgsznames), core::mem::transmute(cnames), &mut result__).map(|| core::mem::transmute(result__)) + DispGetIDsOfNames(ptinfo.param().abi(), rgsznames, cnames, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn DispGetParam(pdispparams: *const super::Com::DISPPARAMS, position: u32, vttarg: super::Variant::VARENUM, pvarresult: *mut super::Variant::VARIANT, puargerr: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn DispGetParam(pdispparams : *const super::Com:: DISPPARAMS, position : u32, vttarg : super::Variant:: VARENUM, pvarresult : *mut super::Variant:: VARIANT, puargerr : *mut u32) -> windows_core::HRESULT); - DispGetParam(core::mem::transmute(pdispparams), core::mem::transmute(position), core::mem::transmute(vttarg), core::mem::transmute(pvarresult), core::mem::transmute(puargerr.unwrap_or(core::mem::zeroed()))).ok() + DispGetParam(pdispparams, position, vttarg, core::mem::transmute(pvarresult), core::mem::transmute(puargerr.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -89,7 +89,7 @@ where P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn DispInvoke(_this : *mut core::ffi::c_void, ptinfo : * mut core::ffi::c_void, dispidmember : i32, wflags : u16, pparams : *mut super::Com:: DISPPARAMS, pvarresult : *mut super::Variant:: VARIANT, pexcepinfo : *mut super::Com:: EXCEPINFO, puargerr : *mut u32) -> windows_core::HRESULT); - DispInvoke(core::mem::transmute(_this), ptinfo.param().abi(), core::mem::transmute(dispidmember), core::mem::transmute(wflags), core::mem::transmute(pparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() + DispInvoke(core::mem::transmute(_this), ptinfo.param().abi(), dispidmember, wflags, core::mem::transmute(pparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -99,24 +99,24 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn DoDragDrop(pdataobj : * mut core::ffi::c_void, pdropsource : * mut core::ffi::c_void, dwokeffects : DROPEFFECT, pdweffect : *mut DROPEFFECT) -> windows_core::HRESULT); - DoDragDrop(pdataobj.param().abi(), pdropsource.param().abi(), core::mem::transmute(dwokeffects), core::mem::transmute(pdweffect)) + DoDragDrop(pdataobj.param().abi(), pdropsource.param().abi(), dwokeffects, core::mem::transmute(pdweffect)) } #[inline] pub unsafe fn GetActiveObject(rclsid: *const windows_core::GUID, pvreserved: Option<*mut core::ffi::c_void>, ppunk: *mut Option) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn GetActiveObject(rclsid : *const windows_core::GUID, pvreserved : *mut core::ffi::c_void, ppunk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - GetActiveObject(core::mem::transmute(rclsid), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk)).ok() + GetActiveObject(rclsid, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk)).ok() } #[inline] pub unsafe fn GetAltMonthNames(lcid: u32) -> windows_core::Result<*mut windows_core::PWSTR> { windows_targets::link!("oleaut32.dll" "system" fn GetAltMonthNames(lcid : u32, prgp : *mut *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetAltMonthNames(core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + GetAltMonthNames(lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetRecordInfoFromGuids(rguidtypelib: *const windows_core::GUID, uvermajor: u32, uverminor: u32, lcid: u32, rguidtypeinfo: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn GetRecordInfoFromGuids(rguidtypelib : *const windows_core::GUID, uvermajor : u32, uverminor : u32, lcid : u32, rguidtypeinfo : *const windows_core::GUID, pprecinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetRecordInfoFromGuids(core::mem::transmute(rguidtypelib), core::mem::transmute(uvermajor), core::mem::transmute(uverminor), core::mem::transmute(lcid), core::mem::transmute(rguidtypeinfo), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + GetRecordInfoFromGuids(rguidtypelib, uvermajor, uverminor, lcid, rguidtypeinfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -132,55 +132,55 @@ where #[inline] pub unsafe fn HRGN_UserFree(param0: *const u32, param1: *const super::super::Graphics::Gdi::HRGN) { windows_targets::link!("ole32.dll" "system" fn HRGN_UserFree(param0 : *const u32, param1 : *const super::super::Graphics::Gdi:: HRGN)); - HRGN_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HRGN_UserFree(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserFree64(param0: *const u32, param1: *const super::super::Graphics::Gdi::HRGN) { windows_targets::link!("api-ms-win-core-marshal-l1-1-0.dll" "system" fn HRGN_UserFree64(param0 : *const u32, param1 : *const super::super::Graphics::Gdi:: HRGN)); - HRGN_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HRGN_UserFree64(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HRGN) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HRGN_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::Graphics::Gdi:: HRGN) -> *mut u8); - HRGN_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HRGN_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HRGN) -> *mut u8 { windows_targets::link!("api-ms-win-core-marshal-l1-1-0.dll" "system" fn HRGN_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::Graphics::Gdi:: HRGN) -> *mut u8); - HRGN_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HRGN_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserSize(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HRGN) -> u32 { windows_targets::link!("ole32.dll" "system" fn HRGN_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::Graphics::Gdi:: HRGN) -> u32); - HRGN_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HRGN_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HRGN) -> u32 { windows_targets::link!("api-ms-win-core-marshal-l1-1-0.dll" "system" fn HRGN_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::Graphics::Gdi:: HRGN) -> u32); - HRGN_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HRGN_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HRGN) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HRGN_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::Graphics::Gdi:: HRGN) -> *mut u8); - HRGN_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HRGN_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HRGN_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HRGN) -> *mut u8 { windows_targets::link!("api-ms-win-core-marshal-l1-1-0.dll" "system" fn HRGN_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::Graphics::Gdi:: HRGN) -> *mut u8); - HRGN_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HRGN_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn IsAccelerator(haccel: super::super::UI::WindowsAndMessaging::HACCEL, caccelentries: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, lpwcmd: *mut u16) -> super::super::Foundation::BOOL { windows_targets::link!("ole32.dll" "system" fn IsAccelerator(haccel : super::super::UI::WindowsAndMessaging:: HACCEL, caccelentries : i32, lpmsg : *const super::super::UI::WindowsAndMessaging:: MSG, lpwcmd : *mut u16) -> super::super::Foundation:: BOOL); - IsAccelerator(core::mem::transmute(haccel), core::mem::transmute(caccelentries), core::mem::transmute(lpmsg), core::mem::transmute(lpwcmd)) + IsAccelerator(haccel, caccelentries, lpmsg, core::mem::transmute(lpwcmd)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -189,7 +189,7 @@ where P2: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn LHashValOfNameSys(syskind : super::Com:: SYSKIND, lcid : u32, szname : windows_core::PCWSTR) -> u32); - LHashValOfNameSys(core::mem::transmute(syskind), core::mem::transmute(lcid), szname.param().abi()) + LHashValOfNameSys(syskind, lcid, szname.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -198,14 +198,14 @@ where P2: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn LHashValOfNameSysA(syskind : super::Com:: SYSKIND, lcid : u32, szname : windows_core::PCSTR) -> u32); - LHashValOfNameSysA(core::mem::transmute(syskind), core::mem::transmute(lcid), szname.param().abi()) + LHashValOfNameSysA(syskind, lcid, szname.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn LoadRegTypeLib(rguid: *const windows_core::GUID, wvermajor: u16, wverminor: u16, lcid: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn LoadRegTypeLib(rguid : *const windows_core::GUID, wvermajor : u16, wverminor : u16, lcid : u32, pptlib : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - LoadRegTypeLib(core::mem::transmute(rguid), core::mem::transmute(wvermajor), core::mem::transmute(wverminor), core::mem::transmute(lcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + LoadRegTypeLib(rguid, wvermajor, wverminor, lcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -225,7 +225,7 @@ where { windows_targets::link!("oleaut32.dll" "system" fn LoadTypeLibEx(szfile : windows_core::PCWSTR, regkind : REGKIND, pptlib : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - LoadTypeLibEx(szfile.param().abi(), core::mem::transmute(regkind), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + LoadTypeLibEx(szfile.param().abi(), regkind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OaBuildVersion() -> u32 { @@ -249,7 +249,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleConvertOLESTREAMToIStorage2(lpolestream : *const super::Com::StructuredStorage:: OLESTREAM, pstg : * mut core::ffi::c_void, ptd : *const super::Com:: DVTARGETDEVICE, opt : u32, pvcallbackcontext : *const core::ffi::c_void, pqueryconvertolelinkcallback : OLESTREAMQUERYCONVERTOLELINKCALLBACK) -> windows_core::HRESULT); - OleConvertOLESTREAMToIStorage2(core::mem::transmute(lpolestream), pstg.param().abi(), core::mem::transmute(ptd.unwrap_or(core::mem::zeroed())), core::mem::transmute(opt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pqueryconvertolelinkcallback.unwrap_or(core::mem::zeroed()))).ok() + OleConvertOLESTREAMToIStorage2(lpolestream, pstg.param().abi(), core::mem::transmute(ptd.unwrap_or(core::mem::zeroed())), core::mem::transmute(opt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pqueryconvertolelinkcallback.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] @@ -258,7 +258,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleConvertOLESTREAMToIStorageEx2(polestm : *const super::Com::StructuredStorage:: OLESTREAM, pstg : * mut core::ffi::c_void, pcfformat : *mut u16, plwwidth : *mut i32, plheight : *mut i32, pdwsize : *mut u32, pmedium : *mut super::Com:: STGMEDIUM, opt : u32, pvcallbackcontext : *const core::ffi::c_void, pqueryconvertolelinkcallback : OLESTREAMQUERYCONVERTOLELINKCALLBACK) -> windows_core::HRESULT); - OleConvertOLESTREAMToIStorageEx2(core::mem::transmute(polestm), pstg.param().abi(), core::mem::transmute(pcfformat), core::mem::transmute(plwwidth), core::mem::transmute(plheight), core::mem::transmute(pdwsize), core::mem::transmute(pmedium), core::mem::transmute(opt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pqueryconvertolelinkcallback.unwrap_or(core::mem::zeroed()))).ok() + OleConvertOLESTREAMToIStorageEx2(polestm, pstg.param().abi(), core::mem::transmute(pcfformat), core::mem::transmute(plwwidth), core::mem::transmute(plheight), core::mem::transmute(pdwsize), core::mem::transmute(pmedium), core::mem::transmute(opt.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(pqueryconvertolelinkcallback.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -268,7 +268,7 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreate(rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, renderopt : u32, pformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreate(core::mem::transmute(rclsid), core::mem::transmute(riid), renderopt.0 as _, core::mem::transmute(pformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreate(rclsid, riid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[inline] pub unsafe fn OleCreateDefaultHandler(clsid: *const windows_core::GUID, punkouter: P1, riid: *const windows_core::GUID, lplpobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -276,7 +276,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateDefaultHandler(clsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, lplpobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateDefaultHandler(core::mem::transmute(clsid), punkouter.param().abi(), core::mem::transmute(riid), core::mem::transmute(lplpobj)).ok() + OleCreateDefaultHandler(clsid, punkouter.param().abi(), riid, core::mem::transmute(lplpobj)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -286,7 +286,7 @@ where P3: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateEmbeddingHelper(clsid : *const windows_core::GUID, punkouter : * mut core::ffi::c_void, flags : EMBDHLP_FLAGS, pcf : * mut core::ffi::c_void, riid : *const windows_core::GUID, lplpobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateEmbeddingHelper(core::mem::transmute(clsid), punkouter.param().abi(), core::mem::transmute(flags), pcf.param().abi(), core::mem::transmute(riid), core::mem::transmute(lplpobj)).ok() + OleCreateEmbeddingHelper(clsid, punkouter.param().abi(), flags, pcf.param().abi(), riid, core::mem::transmute(lplpobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -297,13 +297,13 @@ where P10: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateEx(rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, dwflags : OLECREATE, renderopt : u32, cformats : u32, rgadvf : *const u32, rgformatetc : *const super::Com:: FORMATETC, lpadvisesink : * mut core::ffi::c_void, rgdwconnection : *mut u32, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateEx(core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(dwflags), renderopt.0 as _, core::mem::transmute(cformats), core::mem::transmute(rgadvf), core::mem::transmute(rgformatetc), lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateEx(rclsid, riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleCreateFontIndirect(lpfontdesc: *const FONTDESC, riid: *const windows_core::GUID, lplpvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn OleCreateFontIndirect(lpfontdesc : *const FONTDESC, riid : *const windows_core::GUID, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateFontIndirect(core::mem::transmute(lpfontdesc), core::mem::transmute(riid), core::mem::transmute(lplpvobj)).ok() + OleCreateFontIndirect(lpfontdesc, riid, core::mem::transmute(lplpvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -314,7 +314,7 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateFromData(psrcdataobj : * mut core::ffi::c_void, riid : *const windows_core::GUID, renderopt : u32, pformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateFromData(psrcdataobj.param().abi(), core::mem::transmute(riid), renderopt.0 as _, core::mem::transmute(pformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateFromData(psrcdataobj.param().abi(), riid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -326,7 +326,7 @@ where P10: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateFromDataEx(psrcdataobj : * mut core::ffi::c_void, riid : *const windows_core::GUID, dwflags : OLECREATE, renderopt : u32, cformats : u32, rgadvf : *const u32, rgformatetc : *const super::Com:: FORMATETC, lpadvisesink : * mut core::ffi::c_void, rgdwconnection : *mut u32, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateFromDataEx(psrcdataobj.param().abi(), core::mem::transmute(riid), core::mem::transmute(dwflags), renderopt.0 as _, core::mem::transmute(cformats), core::mem::transmute(rgadvf), core::mem::transmute(rgformatetc), lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateFromDataEx(psrcdataobj.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -337,7 +337,7 @@ where P6: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateFromFile(rclsid : *const windows_core::GUID, lpszfilename : windows_core::PCWSTR, riid : *const windows_core::GUID, renderopt : u32, lpformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateFromFile(core::mem::transmute(rclsid), lpszfilename.param().abi(), core::mem::transmute(riid), renderopt.0 as _, core::mem::transmute(lpformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateFromFile(rclsid, lpszfilename.param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -349,7 +349,7 @@ where P11: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateFromFileEx(rclsid : *const windows_core::GUID, lpszfilename : windows_core::PCWSTR, riid : *const windows_core::GUID, dwflags : OLECREATE, renderopt : u32, cformats : u32, rgadvf : *const u32, rgformatetc : *const super::Com:: FORMATETC, lpadvisesink : * mut core::ffi::c_void, rgdwconnection : *mut u32, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateFromFileEx(core::mem::transmute(rclsid), lpszfilename.param().abi(), core::mem::transmute(riid), core::mem::transmute(dwflags), renderopt.0 as _, core::mem::transmute(cformats), core::mem::transmute(rgadvf), core::mem::transmute(rgformatetc), lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateFromFileEx(rclsid, lpszfilename.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -360,7 +360,7 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateLink(pmklinksrc : * mut core::ffi::c_void, riid : *const windows_core::GUID, renderopt : u32, lpformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateLink(pmklinksrc.param().abi(), core::mem::transmute(riid), renderopt.0 as _, core::mem::transmute(lpformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateLink(pmklinksrc.param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -372,7 +372,7 @@ where P10: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateLinkEx(pmklinksrc : * mut core::ffi::c_void, riid : *const windows_core::GUID, dwflags : OLECREATE, renderopt : u32, cformats : u32, rgadvf : *const u32, rgformatetc : *const super::Com:: FORMATETC, lpadvisesink : * mut core::ffi::c_void, rgdwconnection : *mut u32, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateLinkEx(pmklinksrc.param().abi(), core::mem::transmute(riid), core::mem::transmute(dwflags), renderopt.0 as _, core::mem::transmute(cformats), core::mem::transmute(rgadvf), core::mem::transmute(rgformatetc), lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateLinkEx(pmklinksrc.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -383,7 +383,7 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateLinkFromData(psrcdataobj : * mut core::ffi::c_void, riid : *const windows_core::GUID, renderopt : u32, pformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateLinkFromData(psrcdataobj.param().abi(), core::mem::transmute(riid), renderopt.0 as _, core::mem::transmute(pformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateLinkFromData(psrcdataobj.param().abi(), riid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -395,7 +395,7 @@ where P10: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateLinkFromDataEx(psrcdataobj : * mut core::ffi::c_void, riid : *const windows_core::GUID, dwflags : OLECREATE, renderopt : u32, cformats : u32, rgadvf : *const u32, rgformatetc : *const super::Com:: FORMATETC, lpadvisesink : * mut core::ffi::c_void, rgdwconnection : *mut u32, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateLinkFromDataEx(psrcdataobj.param().abi(), core::mem::transmute(riid), core::mem::transmute(dwflags), renderopt.0 as _, core::mem::transmute(cformats), core::mem::transmute(rgadvf), core::mem::transmute(rgformatetc), lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateLinkFromDataEx(psrcdataobj.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -406,7 +406,7 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateLinkToFile(lpszfilename : windows_core::PCWSTR, riid : *const windows_core::GUID, renderopt : u32, lpformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateLinkToFile(lpszfilename.param().abi(), core::mem::transmute(riid), renderopt.0 as _, core::mem::transmute(lpformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateLinkToFile(lpszfilename.param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -418,13 +418,13 @@ where P10: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateLinkToFileEx(lpszfilename : windows_core::PCWSTR, riid : *const windows_core::GUID, dwflags : OLECREATE, renderopt : u32, cformats : u32, rgadvf : *const u32, rgformatetc : *const super::Com:: FORMATETC, lpadvisesink : * mut core::ffi::c_void, rgdwconnection : *mut u32, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateLinkToFileEx(lpszfilename.param().abi(), core::mem::transmute(riid), core::mem::transmute(dwflags), renderopt.0 as _, core::mem::transmute(cformats), core::mem::transmute(rgadvf), core::mem::transmute(rgformatetc), lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateLinkToFileEx(lpszfilename.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), core::mem::transmute(rgdwconnection), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleCreateMenuDescriptor(hmenucombined: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *const OLEMENUGROUPWIDTHS) -> isize { windows_targets::link!("ole32.dll" "system" fn OleCreateMenuDescriptor(hmenucombined : super::super::UI::WindowsAndMessaging:: HMENU, lpmenuwidths : *const OLEMENUGROUPWIDTHS) -> isize); - OleCreateMenuDescriptor(core::mem::transmute(hmenucombined), core::mem::transmute(lpmenuwidths)) + OleCreateMenuDescriptor(hmenucombined, lpmenuwidths) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] @@ -434,7 +434,7 @@ where { windows_targets::link!("oleaut32.dll" "system" fn OleCreatePictureIndirect(lppictdesc : *const PICTDESC, riid : *const windows_core::GUID, fown : super::super::Foundation:: BOOL, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - OleCreatePictureIndirect(core::mem::transmute(lppictdesc), &T::IID, fown.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleCreatePictureIndirect(lppictdesc, &T::IID, fown.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OleCreatePropertyFrame(hwndowner: super::super::Foundation::HWND, x: u32, y: u32, lpszcaption: P3, cobjects: u32, ppunk: *const Option, cpages: u32, ppageclsid: *const windows_core::GUID, lcid: u32, dwreserved: Option, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -442,12 +442,12 @@ where P3: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleCreatePropertyFrame(hwndowner : super::super::Foundation:: HWND, x : u32, y : u32, lpszcaption : windows_core::PCWSTR, cobjects : u32, ppunk : *const * mut core::ffi::c_void, cpages : u32, ppageclsid : *const windows_core::GUID, lcid : u32, dwreserved : u32, pvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - OleCreatePropertyFrame(core::mem::transmute(hwndowner), core::mem::transmute(x), core::mem::transmute(y), lpszcaption.param().abi(), core::mem::transmute(cobjects), core::mem::transmute(ppunk), core::mem::transmute(cpages), core::mem::transmute(ppageclsid), core::mem::transmute(lcid), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + OleCreatePropertyFrame(hwndowner, x, y, lpszcaption.param().abi(), cobjects, core::mem::transmute(ppunk), cpages, ppageclsid, lcid, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn OleCreatePropertyFrameIndirect(lpparams: *const OCPFIPARAMS) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn OleCreatePropertyFrameIndirect(lpparams : *const OCPFIPARAMS) -> windows_core::HRESULT); - OleCreatePropertyFrameIndirect(core::mem::transmute(lpparams)).ok() + OleCreatePropertyFrameIndirect(lpparams).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -458,12 +458,12 @@ where P5: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateStaticFromData(psrcdataobj : * mut core::ffi::c_void, iid : *const windows_core::GUID, renderopt : u32, pformatetc : *const super::Com:: FORMATETC, pclientsite : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleCreateStaticFromData(psrcdataobj.param().abi(), core::mem::transmute(iid), renderopt.0 as _, core::mem::transmute(pformatetc), pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() + OleCreateStaticFromData(psrcdataobj.param().abi(), iid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), core::mem::transmute(ppvobj)).ok() } #[inline] pub unsafe fn OleDestroyMenuDescriptor(holemenu: isize) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn OleDestroyMenuDescriptor(holemenu : isize) -> windows_core::HRESULT); - OleDestroyMenuDescriptor(core::mem::transmute(holemenu)).ok() + OleDestroyMenuDescriptor(holemenu).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -482,13 +482,13 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleDraw(punknown : * mut core::ffi::c_void, dwaspect : u32, hdcdraw : super::super::Graphics::Gdi:: HDC, lprcbounds : *const super::super::Foundation:: RECT) -> windows_core::HRESULT); - OleDraw(punknown.param().abi(), core::mem::transmute(dwaspect), core::mem::transmute(hdcdraw), core::mem::transmute(lprcbounds)).ok() + OleDraw(punknown.param().abi(), dwaspect, hdcdraw, lprcbounds).ok() } #[cfg(feature = "Win32_System_Memory")] #[inline] pub unsafe fn OleDuplicateData(hsrc: super::super::Foundation::HANDLE, cfformat: CLIPBOARD_FORMAT, uiflags: super::Memory::GLOBAL_ALLOC_FLAGS) -> super::super::Foundation::HANDLE { windows_targets::link!("ole32.dll" "system" fn OleDuplicateData(hsrc : super::super::Foundation:: HANDLE, cfformat : CLIPBOARD_FORMAT, uiflags : super::Memory:: GLOBAL_ALLOC_FLAGS) -> super::super::Foundation:: HANDLE); - OleDuplicateData(core::mem::transmute(hsrc), core::mem::transmute(cfformat), core::mem::transmute(uiflags)) + OleDuplicateData(hsrc, cfformat, uiflags) } #[inline] pub unsafe fn OleFlushClipboard() -> windows_core::Result<()> { @@ -499,7 +499,7 @@ pub unsafe fn OleFlushClipboard() -> windows_core::Result<()> { pub unsafe fn OleGetAutoConvert(clsidold: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn OleGetAutoConvert(clsidold : *const windows_core::GUID, pclsidnew : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleGetAutoConvert(core::mem::transmute(clsidold), &mut result__).map(|| core::mem::transmute(result__)) + OleGetAutoConvert(clsidold, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -520,7 +520,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleGetIconOfClass(rclsid : *const windows_core::GUID, lpszlabel : windows_core::PCWSTR, fusetypeaslabel : super::super::Foundation:: BOOL) -> super::super::Foundation:: HGLOBAL); - OleGetIconOfClass(core::mem::transmute(rclsid), lpszlabel.param().abi(), fusetypeaslabel.into()) + OleGetIconOfClass(rclsid, lpszlabel.param().abi(), fusetypeaslabel.into()) } #[inline] pub unsafe fn OleGetIconOfFile(lpszpath: P0, fusefileaslabel: bool) -> super::super::Foundation::HGLOBAL @@ -534,7 +534,7 @@ where #[inline] pub unsafe fn OleIconToCursor(hinstexe: super::super::Foundation::HINSTANCE, hicon: super::super::UI::WindowsAndMessaging::HICON) -> super::super::UI::WindowsAndMessaging::HCURSOR { windows_targets::link!("oleaut32.dll" "system" fn OleIconToCursor(hinstexe : super::super::Foundation:: HINSTANCE, hicon : super::super::UI::WindowsAndMessaging:: HICON) -> super::super::UI::WindowsAndMessaging:: HCURSOR); - OleIconToCursor(core::mem::transmute(hinstexe), core::mem::transmute(hicon)) + OleIconToCursor(hinstexe, hicon) } #[inline] pub unsafe fn OleInitialize(pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -566,7 +566,7 @@ where P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleLoad(pstg : * mut core::ffi::c_void, riid : *const windows_core::GUID, pclientsite : * mut core::ffi::c_void, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleLoad(pstg.param().abi(), core::mem::transmute(riid), pclientsite.param().abi(), core::mem::transmute(ppvobj)).ok() + OleLoad(pstg.param().abi(), riid, pclientsite.param().abi(), core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -575,7 +575,7 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleLoadFromStream(pstm : * mut core::ffi::c_void, iidinterface : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleLoadFromStream(pstm.param().abi(), core::mem::transmute(iidinterface), core::mem::transmute(ppvobj)).ok() + OleLoadFromStream(pstm.param().abi(), iidinterface, core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -584,7 +584,7 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleLoadPicture(lpstream : * mut core::ffi::c_void, lsize : i32, frunmode : super::super::Foundation:: BOOL, riid : *const windows_core::GUID, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleLoadPicture(lpstream.param().abi(), core::mem::transmute(lsize), frunmode.into(), core::mem::transmute(riid), core::mem::transmute(lplpvobj)).ok() + OleLoadPicture(lpstream.param().abi(), lsize, frunmode.into(), riid, core::mem::transmute(lplpvobj)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -593,7 +593,7 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleLoadPictureEx(lpstream : * mut core::ffi::c_void, lsize : i32, frunmode : super::super::Foundation:: BOOL, riid : *const windows_core::GUID, xsizedesired : u32, ysizedesired : u32, dwflags : LOAD_PICTURE_FLAGS, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleLoadPictureEx(lpstream.param().abi(), core::mem::transmute(lsize), frunmode.into(), core::mem::transmute(riid), core::mem::transmute(xsizedesired), core::mem::transmute(ysizedesired), core::mem::transmute(dwflags), core::mem::transmute(lplpvobj)).ok() + OleLoadPictureEx(lpstream.param().abi(), lsize, frunmode.into(), riid, xsizedesired, ysizedesired, dwflags, core::mem::transmute(lplpvobj)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -607,7 +607,7 @@ pub unsafe fn OleLoadPictureFile(varfilename: &super::Variant::VARIANT) -> windo pub unsafe fn OleLoadPictureFileEx(varfilename: &super::Variant::VARIANT, xsizedesired: u32, ysizedesired: u32, dwflags: LOAD_PICTURE_FLAGS) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn OleLoadPictureFileEx(varfilename : super::Variant:: VARIANT, xsizedesired : u32, ysizedesired : u32, dwflags : LOAD_PICTURE_FLAGS, lplpdisppicture : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleLoadPictureFileEx(core::mem::transmute_copy(varfilename), core::mem::transmute(xsizedesired), core::mem::transmute(ysizedesired), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleLoadPictureFileEx(core::mem::transmute_copy(varfilename), xsizedesired, ysizedesired, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OleLoadPicturePath(szurlorpath: P0, punkcaller: P1, dwreserved: Option, clrreserved: u32, riid: *const windows_core::GUID, ppvret: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -616,7 +616,7 @@ where P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleLoadPicturePath(szurlorpath : windows_core::PCWSTR, punkcaller : * mut core::ffi::c_void, dwreserved : u32, clrreserved : u32, riid : *const windows_core::GUID, ppvret : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - OleLoadPicturePath(szurlorpath.param().abi(), punkcaller.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(clrreserved), core::mem::transmute(riid), core::mem::transmute(ppvret)).ok() + OleLoadPicturePath(szurlorpath.param().abi(), punkcaller.param().abi(), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), clrreserved, riid, core::mem::transmute(ppvret)).ok() } #[inline] pub unsafe fn OleLockRunning(punknown: P0, flock: bool, flastunlockcloses: bool) -> windows_core::Result<()> @@ -634,7 +634,7 @@ where P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleMetafilePictFromIconAndLabel(hicon : super::super::UI::WindowsAndMessaging:: HICON, lpszlabel : windows_core::PCWSTR, lpszsourcefile : windows_core::PCWSTR, iiconindex : u32) -> super::super::Foundation:: HGLOBAL); - let result__ = OleMetafilePictFromIconAndLabel(core::mem::transmute(hicon), lpszlabel.param().abi(), lpszsourcefile.param().abi(), core::mem::transmute(iiconindex)); + let result__ = OleMetafilePictFromIconAndLabel(hicon, lpszlabel.param().abi(), lpszsourcefile.param().abi(), iiconindex); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -668,25 +668,25 @@ where pub unsafe fn OleRegEnumFormatEtc(clsid: *const windows_core::GUID, dwdirection: u32) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn OleRegEnumFormatEtc(clsid : *const windows_core::GUID, dwdirection : u32, ppenum : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleRegEnumFormatEtc(core::mem::transmute(clsid), core::mem::transmute(dwdirection), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleRegEnumFormatEtc(clsid, dwdirection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OleRegEnumVerbs(clsid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn OleRegEnumVerbs(clsid : *const windows_core::GUID, ppenum : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleRegEnumVerbs(core::mem::transmute(clsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleRegEnumVerbs(clsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OleRegGetMiscStatus(clsid: *const windows_core::GUID, dwaspect: u32) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn OleRegGetMiscStatus(clsid : *const windows_core::GUID, dwaspect : u32, pdwstatus : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleRegGetMiscStatus(core::mem::transmute(clsid), core::mem::transmute(dwaspect), &mut result__).map(|| core::mem::transmute(result__)) + OleRegGetMiscStatus(clsid, dwaspect, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn OleRegGetUserType(clsid: *const windows_core::GUID, dwformoftype: USERCLASSTYPE) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn OleRegGetUserType(clsid : *const windows_core::GUID, dwformoftype : u32, pszusertype : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleRegGetUserType(core::mem::transmute(clsid), dwformoftype.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + OleRegGetUserType(clsid, dwformoftype.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn OleRun(punknown: P0) -> windows_core::Result<()> @@ -728,7 +728,7 @@ where #[inline] pub unsafe fn OleSetAutoConvert(clsidold: *const windows_core::GUID, clsidnew: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn OleSetAutoConvert(clsidold : *const windows_core::GUID, clsidnew : *const windows_core::GUID) -> windows_core::HRESULT); - OleSetAutoConvert(core::mem::transmute(clsidold), core::mem::transmute(clsidnew)).ok() + OleSetAutoConvert(clsidold, clsidnew).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -754,7 +754,7 @@ where P4: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleSetMenuDescriptor(holemenu : isize, hwndframe : super::super::Foundation:: HWND, hwndactiveobject : super::super::Foundation:: HWND, lpframe : * mut core::ffi::c_void, lpactiveobj : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleSetMenuDescriptor(core::mem::transmute(holemenu), core::mem::transmute(hwndframe), core::mem::transmute(hwndactiveobject), lpframe.param().abi(), lpactiveobj.param().abi()).ok() + OleSetMenuDescriptor(holemenu, hwndframe, hwndactiveobject, lpframe.param().abi(), lpactiveobj.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -763,14 +763,14 @@ where P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleTranslateAccelerator(lpframe : * mut core::ffi::c_void, lpframeinfo : *const OLEINPLACEFRAMEINFO, lpmsg : *const super::super::UI::WindowsAndMessaging:: MSG) -> windows_core::HRESULT); - OleTranslateAccelerator(lpframe.param().abi(), core::mem::transmute(lpframeinfo), core::mem::transmute(lpmsg)).ok() + OleTranslateAccelerator(lpframe.param().abi(), lpframeinfo, lpmsg).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OleTranslateColor(clr: u32, hpal: super::super::Graphics::Gdi::HPALETTE) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn OleTranslateColor(clr : u32, hpal : super::super::Graphics::Gdi:: HPALETTE, lpcolorref : *mut super::super::Foundation:: COLORREF) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - OleTranslateColor(core::mem::transmute(clr), core::mem::transmute(hpal), &mut result__).map(|| core::mem::transmute(result__)) + OleTranslateColor(clr, hpal, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -780,7 +780,7 @@ where P1: windows_core::Param, { windows_targets::link!("oledlg.dll" "system" fn OleUIAddVerbMenuA(lpoleobj : * mut core::ffi::c_void, lpszshorttype : windows_core::PCSTR, hmenu : super::super::UI::WindowsAndMessaging:: HMENU, upos : u32, uidverbmin : u32, uidverbmax : u32, baddconvert : super::super::Foundation:: BOOL, idconvert : u32, lphmenu : *mut super::super::UI::WindowsAndMessaging:: HMENU) -> super::super::Foundation:: BOOL); - OleUIAddVerbMenuA(lpoleobj.param().abi(), lpszshorttype.param().abi(), core::mem::transmute(hmenu), core::mem::transmute(upos), core::mem::transmute(uidverbmin), core::mem::transmute(uidverbmax), baddconvert.into(), core::mem::transmute(idconvert), core::mem::transmute(lphmenu)) + OleUIAddVerbMenuA(lpoleobj.param().abi(), lpszshorttype.param().abi(), hmenu, upos, uidverbmin, uidverbmax, baddconvert.into(), idconvert, core::mem::transmute(lphmenu)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -790,34 +790,34 @@ where P1: windows_core::Param, { windows_targets::link!("oledlg.dll" "system" fn OleUIAddVerbMenuW(lpoleobj : * mut core::ffi::c_void, lpszshorttype : windows_core::PCWSTR, hmenu : super::super::UI::WindowsAndMessaging:: HMENU, upos : u32, uidverbmin : u32, uidverbmax : u32, baddconvert : super::super::Foundation:: BOOL, idconvert : u32, lphmenu : *mut super::super::UI::WindowsAndMessaging:: HMENU) -> super::super::Foundation:: BOOL); - OleUIAddVerbMenuW(lpoleobj.param().abi(), lpszshorttype.param().abi(), core::mem::transmute(hmenu), core::mem::transmute(upos), core::mem::transmute(uidverbmin), core::mem::transmute(uidverbmax), baddconvert.into(), core::mem::transmute(idconvert), core::mem::transmute(lphmenu)) + OleUIAddVerbMenuW(lpoleobj.param().abi(), lpszshorttype.param().abi(), hmenu, upos, uidverbmin, uidverbmax, baddconvert.into(), idconvert, core::mem::transmute(lphmenu)) } #[cfg(feature = "Win32_Media")] #[inline] pub unsafe fn OleUIBusyA(param0: *const OLEUIBUSYA) -> u32 { windows_targets::link!("oledlg.dll" "system" fn OleUIBusyA(param0 : *const OLEUIBUSYA) -> u32); - OleUIBusyA(core::mem::transmute(param0)) + OleUIBusyA(param0) } #[cfg(feature = "Win32_Media")] #[inline] pub unsafe fn OleUIBusyW(param0: *const OLEUIBUSYW) -> u32 { windows_targets::link!("oledlg.dll" "system" fn OleUIBusyW(param0 : *const OLEUIBUSYW) -> u32); - OleUIBusyW(core::mem::transmute(param0)) + OleUIBusyW(param0) } #[inline] pub unsafe fn OleUICanConvertOrActivateAs(rclsid: *const windows_core::GUID, fislinkedobject: bool, wformat: u16) -> super::super::Foundation::BOOL { windows_targets::link!("oledlg.dll" "system" fn OleUICanConvertOrActivateAs(rclsid : *const windows_core::GUID, fislinkedobject : super::super::Foundation:: BOOL, wformat : u16) -> super::super::Foundation:: BOOL); - OleUICanConvertOrActivateAs(core::mem::transmute(rclsid), fislinkedobject.into(), core::mem::transmute(wformat)) + OleUICanConvertOrActivateAs(rclsid, fislinkedobject.into(), wformat) } #[inline] pub unsafe fn OleUIChangeIconA(param0: *const OLEUICHANGEICONA) -> u32 { windows_targets::link!("oledlg.dll" "system" fn OleUIChangeIconA(param0 : *const OLEUICHANGEICONA) -> u32); - OleUIChangeIconA(core::mem::transmute(param0)) + OleUIChangeIconA(param0) } #[inline] pub unsafe fn OleUIChangeIconW(param0: *const OLEUICHANGEICONW) -> u32 { windows_targets::link!("oledlg.dll" "system" fn OleUIChangeIconW(param0 : *const OLEUICHANGEICONW) -> u32); - OleUIChangeIconW(core::mem::transmute(param0)) + OleUIChangeIconW(param0) } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] @@ -834,12 +834,12 @@ pub unsafe fn OleUIChangeSourceW(param0: *const OLEUICHANGESOURCEW) -> u32 { #[inline] pub unsafe fn OleUIConvertA(param0: *const OLEUICONVERTA) -> u32 { windows_targets::link!("oledlg.dll" "system" fn OleUIConvertA(param0 : *const OLEUICONVERTA) -> u32); - OleUIConvertA(core::mem::transmute(param0)) + OleUIConvertA(param0) } #[inline] pub unsafe fn OleUIConvertW(param0: *const OLEUICONVERTW) -> u32 { windows_targets::link!("oledlg.dll" "system" fn OleUIConvertW(param0 : *const OLEUICONVERTW) -> u32); - OleUIConvertW(core::mem::transmute(param0)) + OleUIConvertW(param0) } #[inline] pub unsafe fn OleUIEditLinksA(param0: *const OLEUIEDITLINKSA) -> u32 { @@ -890,12 +890,12 @@ pub unsafe fn OleUIPasteSpecialW(param0: *const OLEUIPASTESPECIALW) -> u32 { #[inline] pub unsafe fn OleUIPromptUserA(ntemplate: i32, hwndparent: super::super::Foundation::HWND) -> i32 { windows_targets::link!("oledlg.dll" "cdecl" fn OleUIPromptUserA(ntemplate : i32, hwndparent : super::super::Foundation:: HWND) -> i32); - OleUIPromptUserA(core::mem::transmute(ntemplate), core::mem::transmute(hwndparent)) + OleUIPromptUserA(ntemplate, hwndparent) } #[inline] pub unsafe fn OleUIPromptUserW(ntemplate: i32, hwndparent: super::super::Foundation::HWND) -> i32 { windows_targets::link!("oledlg.dll" "cdecl" fn OleUIPromptUserW(ntemplate : i32, hwndparent : super::super::Foundation:: HWND) -> i32); - OleUIPromptUserW(core::mem::transmute(ntemplate), core::mem::transmute(hwndparent)) + OleUIPromptUserW(ntemplate, hwndparent) } #[inline] pub unsafe fn OleUIUpdateLinksA(lpoleuilinkcntr: P0, hwndparent: super::super::Foundation::HWND, lpsztitle: P2, clinks: i32) -> super::super::Foundation::BOOL @@ -904,7 +904,7 @@ where P2: windows_core::Param, { windows_targets::link!("oledlg.dll" "system" fn OleUIUpdateLinksA(lpoleuilinkcntr : * mut core::ffi::c_void, hwndparent : super::super::Foundation:: HWND, lpsztitle : windows_core::PCSTR, clinks : i32) -> super::super::Foundation:: BOOL); - OleUIUpdateLinksA(lpoleuilinkcntr.param().abi(), core::mem::transmute(hwndparent), lpsztitle.param().abi(), core::mem::transmute(clinks)) + OleUIUpdateLinksA(lpoleuilinkcntr.param().abi(), hwndparent, lpsztitle.param().abi(), clinks) } #[inline] pub unsafe fn OleUIUpdateLinksW(lpoleuilinkcntr: P0, hwndparent: super::super::Foundation::HWND, lpsztitle: P2, clinks: i32) -> super::super::Foundation::BOOL @@ -913,7 +913,7 @@ where P2: windows_core::Param, { windows_targets::link!("oledlg.dll" "system" fn OleUIUpdateLinksW(lpoleuilinkcntr : * mut core::ffi::c_void, hwndparent : super::super::Foundation:: HWND, lpsztitle : windows_core::PCWSTR, clinks : i32) -> super::super::Foundation:: BOOL); - OleUIUpdateLinksW(lpoleuilinkcntr.param().abi(), core::mem::transmute(hwndparent), lpsztitle.param().abi(), core::mem::transmute(clinks)) + OleUIUpdateLinksW(lpoleuilinkcntr.param().abi(), hwndparent, lpsztitle.param().abi(), clinks) } #[inline] pub unsafe fn OleUninitialize() { @@ -924,7 +924,7 @@ pub unsafe fn OleUninitialize() { pub unsafe fn QueryPathOfRegTypeLib(guid: *const windows_core::GUID, wmaj: u16, wmin: u16, lcid: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn QueryPathOfRegTypeLib(guid : *const windows_core::GUID, wmaj : u16, wmin : u16, lcid : u32, lpbstrpathname : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - QueryPathOfRegTypeLib(core::mem::transmute(guid), core::mem::transmute(wmaj), core::mem::transmute(wmin), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + QueryPathOfRegTypeLib(guid, wmaj, wmin, lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RegisterActiveObject(punk: P0, rclsid: *const windows_core::GUID, dwflags: ACTIVEOBJECT_FLAGS, pdwregister: *mut u32) -> windows_core::Result<()> @@ -932,7 +932,7 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn RegisterActiveObject(punk : * mut core::ffi::c_void, rclsid : *const windows_core::GUID, dwflags : ACTIVEOBJECT_FLAGS, pdwregister : *mut u32) -> windows_core::HRESULT); - RegisterActiveObject(punk.param().abi(), core::mem::transmute(rclsid), core::mem::transmute(dwflags), core::mem::transmute(pdwregister)).ok() + RegisterActiveObject(punk.param().abi(), rclsid, dwflags, core::mem::transmute(pdwregister)).ok() } #[inline] pub unsafe fn RegisterDragDrop(hwnd: super::super::Foundation::HWND, pdroptarget: P1) -> windows_core::Result<()> @@ -940,7 +940,7 @@ where P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn RegisterDragDrop(hwnd : super::super::Foundation:: HWND, pdroptarget : * mut core::ffi::c_void) -> windows_core::HRESULT); - RegisterDragDrop(core::mem::transmute(hwnd), pdroptarget.param().abi()).ok() + RegisterDragDrop(hwnd, pdroptarget.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -973,193 +973,193 @@ pub unsafe fn ReleaseStgMedium(param0: *mut super::Com::STGMEDIUM) { #[inline] pub unsafe fn RevokeActiveObject(dwregister: u32, pvreserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn RevokeActiveObject(dwregister : u32, pvreserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - RevokeActiveObject(core::mem::transmute(dwregister), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + RevokeActiveObject(dwregister, core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RevokeDragDrop(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("ole32.dll" "system" fn RevokeDragDrop(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - RevokeDragDrop(core::mem::transmute(hwnd)).ok() + RevokeDragDrop(hwnd).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayAccessData(psa: *const super::Com::SAFEARRAY, ppvdata: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayAccessData(psa : *const super::Com:: SAFEARRAY, ppvdata : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SafeArrayAccessData(core::mem::transmute(psa), core::mem::transmute(ppvdata)).ok() + SafeArrayAccessData(psa, core::mem::transmute(ppvdata)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayAddRef(psa: *const super::Com::SAFEARRAY, ppdatatorelease: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayAddRef(psa : *const super::Com:: SAFEARRAY, ppdatatorelease : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SafeArrayAddRef(core::mem::transmute(psa), core::mem::transmute(ppdatatorelease)).ok() + SafeArrayAddRef(psa, core::mem::transmute(ppdatatorelease)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayAllocData(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayAllocData(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayAllocData(core::mem::transmute(psa)).ok() + SafeArrayAllocData(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayAllocDescriptor(cdims: u32) -> windows_core::Result<*mut super::Com::SAFEARRAY> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayAllocDescriptor(cdims : u32, ppsaout : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayAllocDescriptor(core::mem::transmute(cdims), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayAllocDescriptor(cdims, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SafeArrayAllocDescriptorEx(vt: super::Variant::VARENUM, cdims: u32) -> windows_core::Result<*mut super::Com::SAFEARRAY> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayAllocDescriptorEx(vt : super::Variant:: VARENUM, cdims : u32, ppsaout : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayAllocDescriptorEx(core::mem::transmute(vt), core::mem::transmute(cdims), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayAllocDescriptorEx(vt, cdims, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayCopy(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<*mut super::Com::SAFEARRAY> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayCopy(psa : *const super::Com:: SAFEARRAY, ppsaout : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayCopy(core::mem::transmute(psa), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayCopy(psa, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayCopyData(psasource: *const super::Com::SAFEARRAY, psatarget: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayCopyData(psasource : *const super::Com:: SAFEARRAY, psatarget : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayCopyData(core::mem::transmute(psasource), core::mem::transmute(psatarget)).ok() + SafeArrayCopyData(psasource, psatarget).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SafeArrayCreate(vt: super::Variant::VARENUM, cdims: u32, rgsabound: *const super::Com::SAFEARRAYBOUND) -> *mut super::Com::SAFEARRAY { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayCreate(vt : super::Variant:: VARENUM, cdims : u32, rgsabound : *const super::Com:: SAFEARRAYBOUND) -> *mut super::Com:: SAFEARRAY); - SafeArrayCreate(core::mem::transmute(vt), core::mem::transmute(cdims), core::mem::transmute(rgsabound)) + SafeArrayCreate(vt, cdims, rgsabound) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SafeArrayCreateEx(vt: super::Variant::VARENUM, cdims: u32, rgsabound: *const super::Com::SAFEARRAYBOUND, pvextra: *const core::ffi::c_void) -> *mut super::Com::SAFEARRAY { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayCreateEx(vt : super::Variant:: VARENUM, cdims : u32, rgsabound : *const super::Com:: SAFEARRAYBOUND, pvextra : *const core::ffi::c_void) -> *mut super::Com:: SAFEARRAY); - SafeArrayCreateEx(core::mem::transmute(vt), core::mem::transmute(cdims), core::mem::transmute(rgsabound), core::mem::transmute(pvextra)) + SafeArrayCreateEx(vt, cdims, rgsabound, pvextra) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SafeArrayCreateVector(vt: super::Variant::VARENUM, llbound: i32, celements: u32) -> *mut super::Com::SAFEARRAY { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayCreateVector(vt : super::Variant:: VARENUM, llbound : i32, celements : u32) -> *mut super::Com:: SAFEARRAY); - SafeArrayCreateVector(core::mem::transmute(vt), core::mem::transmute(llbound), core::mem::transmute(celements)) + SafeArrayCreateVector(vt, llbound, celements) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SafeArrayCreateVectorEx(vt: super::Variant::VARENUM, llbound: i32, celements: u32, pvextra: *const core::ffi::c_void) -> *mut super::Com::SAFEARRAY { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayCreateVectorEx(vt : super::Variant:: VARENUM, llbound : i32, celements : u32, pvextra : *const core::ffi::c_void) -> *mut super::Com:: SAFEARRAY); - SafeArrayCreateVectorEx(core::mem::transmute(vt), core::mem::transmute(llbound), core::mem::transmute(celements), core::mem::transmute(pvextra)) + SafeArrayCreateVectorEx(vt, llbound, celements, pvextra) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayDestroy(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayDestroy(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayDestroy(core::mem::transmute(psa)).ok() + SafeArrayDestroy(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayDestroyData(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayDestroyData(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayDestroyData(core::mem::transmute(psa)).ok() + SafeArrayDestroyData(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayDestroyDescriptor(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayDestroyDescriptor(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayDestroyDescriptor(core::mem::transmute(psa)).ok() + SafeArrayDestroyDescriptor(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetDim(psa: *const super::Com::SAFEARRAY) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetDim(psa : *const super::Com:: SAFEARRAY) -> u32); - SafeArrayGetDim(core::mem::transmute(psa)) + SafeArrayGetDim(psa) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetElement(psa: *const super::Com::SAFEARRAY, rgindices: *const i32, pv: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetElement(psa : *const super::Com:: SAFEARRAY, rgindices : *const i32, pv : *mut core::ffi::c_void) -> windows_core::HRESULT); - SafeArrayGetElement(core::mem::transmute(psa), core::mem::transmute(rgindices), core::mem::transmute(pv)).ok() + SafeArrayGetElement(psa, rgindices, core::mem::transmute(pv)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetElemsize(psa: *const super::Com::SAFEARRAY) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetElemsize(psa : *const super::Com:: SAFEARRAY) -> u32); - SafeArrayGetElemsize(core::mem::transmute(psa)) + SafeArrayGetElemsize(psa) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetIID(psa: *const super::Com::SAFEARRAY) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetIID(psa : *const super::Com:: SAFEARRAY, pguid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayGetIID(core::mem::transmute(psa), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetIID(psa, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetLBound(psa: *const super::Com::SAFEARRAY, ndim: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetLBound(psa : *const super::Com:: SAFEARRAY, ndim : u32, pllbound : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayGetLBound(core::mem::transmute(psa), core::mem::transmute(ndim), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetLBound(psa, ndim, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetRecordInfo(psa: *const super::Com::SAFEARRAY) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetRecordInfo(psa : *const super::Com:: SAFEARRAY, prinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayGetRecordInfo(core::mem::transmute(psa), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SafeArrayGetRecordInfo(psa, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayGetUBound(psa: *const super::Com::SAFEARRAY, ndim: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetUBound(psa : *const super::Com:: SAFEARRAY, ndim : u32, plubound : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayGetUBound(core::mem::transmute(psa), core::mem::transmute(ndim), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetUBound(psa, ndim, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn SafeArrayGetVartype(psa: *const super::Com::SAFEARRAY) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayGetVartype(psa : *const super::Com:: SAFEARRAY, pvt : *mut super::Variant:: VARENUM) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SafeArrayGetVartype(core::mem::transmute(psa), &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetVartype(psa, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayLock(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayLock(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayLock(core::mem::transmute(psa)).ok() + SafeArrayLock(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayPtrOfIndex(psa: *const super::Com::SAFEARRAY, rgindices: *const i32, ppvdata: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayPtrOfIndex(psa : *const super::Com:: SAFEARRAY, rgindices : *const i32, ppvdata : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SafeArrayPtrOfIndex(core::mem::transmute(psa), core::mem::transmute(rgindices), core::mem::transmute(ppvdata)).ok() + SafeArrayPtrOfIndex(psa, rgindices, core::mem::transmute(ppvdata)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayPutElement(psa: *const super::Com::SAFEARRAY, rgindices: *const i32, pv: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayPutElement(psa : *const super::Com:: SAFEARRAY, rgindices : *const i32, pv : *const core::ffi::c_void) -> windows_core::HRESULT); - SafeArrayPutElement(core::mem::transmute(psa), core::mem::transmute(rgindices), core::mem::transmute(pv)).ok() + SafeArrayPutElement(psa, rgindices, pv).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayRedim(psa: *mut super::Com::SAFEARRAY, psaboundnew: *const super::Com::SAFEARRAYBOUND) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayRedim(psa : *mut super::Com:: SAFEARRAY, psaboundnew : *const super::Com:: SAFEARRAYBOUND) -> windows_core::HRESULT); - SafeArrayRedim(core::mem::transmute(psa), core::mem::transmute(psaboundnew)).ok() + SafeArrayRedim(core::mem::transmute(psa), psaboundnew).ok() } #[inline] pub unsafe fn SafeArrayReleaseData(pdata: *const core::ffi::c_void) { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayReleaseData(pdata : *const core::ffi::c_void)); - SafeArrayReleaseData(core::mem::transmute(pdata)) + SafeArrayReleaseData(pdata) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayReleaseDescriptor(psa: *const super::Com::SAFEARRAY) { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayReleaseDescriptor(psa : *const super::Com:: SAFEARRAY)); - SafeArrayReleaseDescriptor(core::mem::transmute(psa)) + SafeArrayReleaseDescriptor(psa) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArraySetIID(psa: *const super::Com::SAFEARRAY, guid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArraySetIID(psa : *const super::Com:: SAFEARRAY, guid : *const windows_core::GUID) -> windows_core::HRESULT); - SafeArraySetIID(core::mem::transmute(psa), core::mem::transmute(guid)).ok() + SafeArraySetIID(psa, guid).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1168,31 +1168,31 @@ where P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SafeArraySetRecordInfo(psa : *const super::Com:: SAFEARRAY, prinfo : * mut core::ffi::c_void) -> windows_core::HRESULT); - SafeArraySetRecordInfo(core::mem::transmute(psa), prinfo.param().abi()).ok() + SafeArraySetRecordInfo(psa, prinfo.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayUnaccessData(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayUnaccessData(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayUnaccessData(core::mem::transmute(psa)).ok() + SafeArrayUnaccessData(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SafeArrayUnlock(psa: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn SafeArrayUnlock(psa : *const super::Com:: SAFEARRAY) -> windows_core::HRESULT); - SafeArrayUnlock(core::mem::transmute(psa)).ok() + SafeArrayUnlock(psa).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UnRegisterTypeLib(libid: *const windows_core::GUID, wvermajor: u16, wverminor: u16, lcid: u32, syskind: super::Com::SYSKIND) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn UnRegisterTypeLib(libid : *const windows_core::GUID, wvermajor : u16, wverminor : u16, lcid : u32, syskind : super::Com:: SYSKIND) -> windows_core::HRESULT); - UnRegisterTypeLib(core::mem::transmute(libid), core::mem::transmute(wvermajor), core::mem::transmute(wverminor), core::mem::transmute(lcid), core::mem::transmute(syskind)).ok() + UnRegisterTypeLib(libid, wvermajor, wverminor, lcid, syskind).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UnRegisterTypeLibForUser(libid: *const windows_core::GUID, wmajorvernum: u16, wminorvernum: u16, lcid: u32, syskind: super::Com::SYSKIND) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn UnRegisterTypeLibForUser(libid : *const windows_core::GUID, wmajorvernum : u16, wminorvernum : u16, lcid : u32, syskind : super::Com:: SYSKIND) -> windows_core::HRESULT); - UnRegisterTypeLibForUser(core::mem::transmute(libid), core::mem::transmute(wmajorvernum), core::mem::transmute(wminorvernum), core::mem::transmute(lcid), core::mem::transmute(syskind)).ok() + UnRegisterTypeLibForUser(libid, wmajorvernum, wminorvernum, lcid, syskind).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -1226,13 +1226,13 @@ pub unsafe fn VarBoolFromCy(cyin: super::Com::CY) -> windows_core::Result windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromDate(datein : f64, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromDec(pdecin : *const super::super::Foundation:: DECIMAL, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1242,43 +1242,43 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromI1(cin : i8, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromI2(sin : i16, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromI4(lin : i32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromI8(i64in : i64, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromR4(fltin : f32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromR8(dblin : f64, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -1287,31 +1287,31 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromUI1(bin : u8, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromUI2(uiin : u16, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromUI4(ulin : u32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBoolFromUI8(i64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBoolFromUI8(i64in : u64, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBoolFromUI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrCat(bstrleft: &windows_core::BSTR, bstrright: &windows_core::BSTR) -> windows_core::Result { @@ -1322,32 +1322,32 @@ pub unsafe fn VarBstrCat(bstrleft: &windows_core::BSTR, bstrright: &windows_core #[inline] pub unsafe fn VarBstrCmp(bstrleft: &windows_core::BSTR, bstrright: &windows_core::BSTR, lcid: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarBstrCmp(bstrleft : * mut core::ffi::c_void, bstrright : * mut core::ffi::c_void, lcid : u32, dwflags : u32) -> windows_core::HRESULT); - VarBstrCmp(core::mem::transmute_copy(bstrleft), core::mem::transmute_copy(bstrright), core::mem::transmute(lcid), core::mem::transmute(dwflags)).ok() + VarBstrCmp(core::mem::transmute_copy(bstrleft), core::mem::transmute_copy(bstrright), lcid, dwflags).ok() } #[inline] pub unsafe fn VarBstrFromBool(boolin: super::super::Foundation::VARIANT_BOOL, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromBool(core::mem::transmute(boolin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromBool(boolin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromCy(cyin : super::Com:: CY, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromCy(core::mem::transmute(cyin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromCy(core::mem::transmute(cyin), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromDate(datein : f64, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromDate(core::mem::transmute(datein), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromDate(datein, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromDec(pdecin: *const super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromDec(pdecin : *const super::super::Foundation:: DECIMAL, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromDec(core::mem::transmute(pdecin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromDec(pdecin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1357,67 +1357,67 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromDisp(pdispin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromDisp(pdispin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromI1(cin: i8, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromI1(cin : i8, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromI1(core::mem::transmute(cin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromI1(cin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromI2(ival : i16, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromI2(core::mem::transmute(ival), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromI2(ival, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromI4(lin : i32, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromI4(core::mem::transmute(lin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromI4(lin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromI8(i64in : i64, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromI8(core::mem::transmute(i64in), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromI8(i64in, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromR4(fltin : f32, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromR4(core::mem::transmute(fltin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromR4(fltin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromR8(dblin : f64, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromR8(core::mem::transmute(dblin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromR8(dblin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromUI1(bval : u8, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromUI1(core::mem::transmute(bval), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromUI1(bval, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromUI2(uiin : u16, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromUI2(core::mem::transmute(uiin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromUI2(uiin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromUI4(ulin : u32, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromUI4(core::mem::transmute(ulin), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromUI4(ulin, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromUI8(ui64in : u64, lcid : u32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarBstrFromUI8(core::mem::transmute(ui64in), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarBstrFromUI8(ui64in, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -1430,7 +1430,7 @@ pub unsafe fn VarCat(pvarleft: *const super::Variant::VARIANT, pvarright: *const #[inline] pub unsafe fn VarCmp(pvarleft: *const super::Variant::VARIANT, pvarright: *const super::Variant::VARIANT, lcid: u32, dwflags: u32) -> VARCMP { windows_targets::link!("oleaut32.dll" "system" fn VarCmp(pvarleft : *const super::Variant:: VARIANT, pvarright : *const super::Variant:: VARIANT, lcid : u32, dwflags : u32) -> VARCMP); - VarCmp(core::mem::transmute(pvarleft), core::mem::transmute(pvarright), core::mem::transmute(lcid), core::mem::transmute(dwflags)) + VarCmp(core::mem::transmute(pvarleft), core::mem::transmute(pvarright), lcid, dwflags) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1456,7 +1456,7 @@ pub unsafe fn VarCyCmp(cyleft: super::Com::CY, cyright: super::Com::CY) -> VARCM #[inline] pub unsafe fn VarCyCmpR8(cyleft: super::Com::CY, dblright: f64) -> VARCMP { windows_targets::link!("oleaut32.dll" "system" fn VarCyCmpR8(cyleft : super::Com:: CY, dblright : f64) -> VARCMP); - VarCyCmpR8(core::mem::transmute(cyleft), core::mem::transmute(dblright)) + VarCyCmpR8(core::mem::transmute(cyleft), dblright) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1470,21 +1470,21 @@ pub unsafe fn VarCyFix(cyin: super::Com::CY) -> windows_core::Result windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromDate(datein : f64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromDec(pdecin : *const super::super::Foundation:: DECIMAL, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1494,49 +1494,49 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromI1(cin : i8, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromI2(sin : i16, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromI4(lin : i32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromI8(i64in : i64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromR4(fltin : f32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromR8(dblin : f64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1546,35 +1546,35 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromUI1(bin : u8, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromUI2(uiin : u16, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromUI4(ulin : u32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyFromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyFromUI8(ui64in : u64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyFromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1595,14 +1595,14 @@ pub unsafe fn VarCyMul(cyleft: super::Com::CY, cyright: super::Com::CY) -> windo pub unsafe fn VarCyMulI4(cyleft: super::Com::CY, lright: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyMulI4(cyleft : super::Com:: CY, lright : i32, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyMulI4(core::mem::transmute(cyleft), core::mem::transmute(lright), &mut result__).map(|| core::mem::transmute(result__)) + VarCyMulI4(core::mem::transmute(cyleft), lright, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn VarCyMulI8(cyleft: super::Com::CY, lright: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyMulI8(cyleft : super::Com:: CY, lright : i64, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyMulI8(core::mem::transmute(cyleft), core::mem::transmute(lright), &mut result__).map(|| core::mem::transmute(result__)) + VarCyMulI8(core::mem::transmute(cyleft), lright, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1616,7 +1616,7 @@ pub unsafe fn VarCyNeg(cyin: super::Com::CY) -> windows_core::Result windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarCyRound(cyin : super::Com:: CY, cdecimals : i32, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarCyRound(core::mem::transmute(cyin), core::mem::transmute(cdecimals), &mut result__).map(|| core::mem::transmute(result__)) + VarCyRound(core::mem::transmute(cyin), cdecimals, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1629,7 +1629,7 @@ pub unsafe fn VarCySub(cyleft: super::Com::CY, cyright: super::Com::CY) -> windo pub unsafe fn VarDateFromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1642,7 +1642,7 @@ pub unsafe fn VarDateFromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarDateFromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromDec(pdecin : *const super::super::Foundation:: DECIMAL, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1652,43 +1652,43 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromI1(cin : i8, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromI2(sin : i16, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromI4(lin : i32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromI8(i64in : i64, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromR4(fltin : f32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromR8(dblin : f64, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -1697,83 +1697,83 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromUI1(bin : u8, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromUI2(uiin : u16, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromUI4(ulin : u32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromUI8(ui64in : u64, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromUdate(pudatein: *const UDATE, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromUdate(pudatein : *const UDATE, dwflags : u32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromUdate(core::mem::transmute(pudatein), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUdate(pudatein, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDateFromUdateEx(pudatein: *const UDATE, lcid: u32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromUdateEx(pudatein : *const UDATE, lcid : u32, dwflags : u32, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDateFromUdateEx(core::mem::transmute(pudatein), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUdateEx(pudatein, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecAbs(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecAbs(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecAbs(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecAbs(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecAdd(pdecleft: *const super::super::Foundation::DECIMAL, pdecright: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecAdd(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecAdd(core::mem::transmute(pdecleft), core::mem::transmute(pdecright), &mut result__).map(|| core::mem::transmute(result__)) + VarDecAdd(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecCmp(pdecleft: *const super::super::Foundation::DECIMAL, pdecright: *const super::super::Foundation::DECIMAL) -> VARCMP { windows_targets::link!("oleaut32.dll" "system" fn VarDecCmp(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL) -> VARCMP); - VarDecCmp(core::mem::transmute(pdecleft), core::mem::transmute(pdecright)) + VarDecCmp(pdecleft, pdecright) } #[inline] pub unsafe fn VarDecCmpR8(pdecleft: *const super::super::Foundation::DECIMAL, dblright: f64) -> VARCMP { windows_targets::link!("oleaut32.dll" "system" fn VarDecCmpR8(pdecleft : *const super::super::Foundation:: DECIMAL, dblright : f64) -> VARCMP); - VarDecCmpR8(core::mem::transmute(pdecleft), core::mem::transmute(dblright)) + VarDecCmpR8(pdecleft, dblright) } #[inline] pub unsafe fn VarDecDiv(pdecleft: *const super::super::Foundation::DECIMAL, pdecright: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecDiv(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecDiv(core::mem::transmute(pdecleft), core::mem::transmute(pdecright), &mut result__).map(|| core::mem::transmute(result__)) + VarDecDiv(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFix(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFix(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFix(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFix(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1786,7 +1786,7 @@ pub unsafe fn VarDecFromCy(cyin: super::Com::CY) -> windows_core::Result windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromDate(datein : f64, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1796,43 +1796,43 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromI1(cin : i8, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromI2(uiin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromI2(uiin : i16, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromI4(lin : i32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromI8(i64in : i64, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromR4(fltin : f32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromR8(dblin : f64, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -1841,61 +1841,61 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromUI1(bin : u8, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromUI2(uiin : u16, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromUI4(ulin : u32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecFromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecFromUI8(ui64in : u64, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecFromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecInt(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecInt(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecInt(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecInt(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecMul(pdecleft: *const super::super::Foundation::DECIMAL, pdecright: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecMul(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecMul(core::mem::transmute(pdecleft), core::mem::transmute(pdecright), &mut result__).map(|| core::mem::transmute(result__)) + VarDecMul(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecNeg(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecNeg(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecNeg(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecNeg(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecRound(pdecin: *const super::super::Foundation::DECIMAL, cdecimals: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecRound(pdecin : *const super::super::Foundation:: DECIMAL, cdecimals : i32, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecRound(core::mem::transmute(pdecin), core::mem::transmute(cdecimals), &mut result__).map(|| core::mem::transmute(result__)) + VarDecRound(pdecin, cdecimals, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarDecSub(pdecleft: *const super::super::Foundation::DECIMAL, pdecright: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarDecSub(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarDecSub(core::mem::transmute(pdecleft), core::mem::transmute(pdecright), &mut result__).map(|| core::mem::transmute(result__)) + VarDecSub(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -1926,21 +1926,21 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarFormat(pvarin : *const super::Variant:: VARIANT, pstrformat : windows_core::PCWSTR, ifirstday : VARFORMAT_FIRST_DAY, ifirstweek : VARFORMAT_FIRST_WEEK, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarFormat(core::mem::transmute(pvarin), pstrformat.param().abi(), core::mem::transmute(ifirstday), core::mem::transmute(ifirstweek), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarFormat(core::mem::transmute(pvarin), pstrformat.param().abi(), ifirstday, ifirstweek, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn VarFormatCurrency(pvarin: *const super::Variant::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarFormatCurrency(pvarin : *const super::Variant:: VARIANT, inumdig : i32, iinclead : i32, iuseparens : i32, igroup : i32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarFormatCurrency(core::mem::transmute(pvarin), core::mem::transmute(inumdig), core::mem::transmute(iinclead), core::mem::transmute(iuseparens), core::mem::transmute(igroup), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarFormatCurrency(core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn VarFormatDateTime(pvarin: *const super::Variant::VARIANT, inamedformat: VARFORMAT_NAMED_FORMAT, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarFormatDateTime(pvarin : *const super::Variant:: VARIANT, inamedformat : VARFORMAT_NAMED_FORMAT, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarFormatDateTime(core::mem::transmute(pvarin), core::mem::transmute(inamedformat), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarFormatDateTime(core::mem::transmute(pvarin), inamedformat, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -1949,26 +1949,26 @@ where P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarFormatFromTokens(pvarin : *const super::Variant:: VARIANT, pstrformat : windows_core::PCWSTR, pbtokcur : *const u8, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void, lcid : u32) -> windows_core::HRESULT); - VarFormatFromTokens(core::mem::transmute(pvarin), pstrformat.param().abi(), core::mem::transmute(pbtokcur), core::mem::transmute(dwflags), core::mem::transmute(pbstrout), core::mem::transmute(lcid)).ok() + VarFormatFromTokens(core::mem::transmute(pvarin), pstrformat.param().abi(), pbtokcur, dwflags, core::mem::transmute(pbstrout), lcid).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn VarFormatNumber(pvarin: *const super::Variant::VARIANT, inumdig: i32, iinclead: VARFORMAT_LEADING_DIGIT, iuseparens: VARFORMAT_PARENTHESES, igroup: VARFORMAT_GROUP, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarFormatNumber(pvarin : *const super::Variant:: VARIANT, inumdig : i32, iinclead : VARFORMAT_LEADING_DIGIT, iuseparens : VARFORMAT_PARENTHESES, igroup : VARFORMAT_GROUP, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarFormatNumber(core::mem::transmute(pvarin), core::mem::transmute(inumdig), core::mem::transmute(iinclead), core::mem::transmute(iuseparens), core::mem::transmute(igroup), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarFormatNumber(core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn VarFormatPercent(pvarin: *const super::Variant::VARIANT, inumdig: i32, iinclead: VARFORMAT_LEADING_DIGIT, iuseparens: VARFORMAT_PARENTHESES, igroup: VARFORMAT_GROUP, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarFormatPercent(pvarin : *const super::Variant:: VARIANT, inumdig : i32, iinclead : VARFORMAT_LEADING_DIGIT, iuseparens : VARFORMAT_PARENTHESES, igroup : VARFORMAT_GROUP, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarFormatPercent(core::mem::transmute(pvarin), core::mem::transmute(inumdig), core::mem::transmute(iinclead), core::mem::transmute(iuseparens), core::mem::transmute(igroup), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarFormatPercent(core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI1FromBool(boolin: super::super::Foundation::VARIANT_BOOL, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromBool(core::mem::transmute(boolin), core::mem::transmute(pcout)).ok() + VarI1FromBool(boolin, core::mem::transmute(pcout)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1979,12 +1979,12 @@ pub unsafe fn VarI1FromCy(cyin: super::Com::CY, pcout: windows_core::PSTR) -> wi #[inline] pub unsafe fn VarI1FromDate(datein: f64, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromDate(datein : f64, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromDate(core::mem::transmute(datein), core::mem::transmute(pcout)).ok() + VarI1FromDate(datein, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromDec(pdecin: *const super::super::Foundation::DECIMAL, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromDec(core::mem::transmute(pdecin), core::mem::transmute(pcout)).ok() + VarI1FromDec(pdecin, core::mem::transmute(pcout)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1993,32 +1993,32 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(pcout)).ok() + VarI1FromDisp(pdispin.param().abi(), lcid, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromI2(uiin: i16, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromI2(uiin : i16, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromI2(core::mem::transmute(uiin), core::mem::transmute(pcout)).ok() + VarI1FromI2(uiin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromI4(lin: i32, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromI4(lin : i32, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromI4(core::mem::transmute(lin), core::mem::transmute(pcout)).ok() + VarI1FromI4(lin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromI8(i64in: i64, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromI8(i64in : i64, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromI8(core::mem::transmute(i64in), core::mem::transmute(pcout)).ok() + VarI1FromI8(i64in, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromR4(fltin: f32, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromR4(fltin : f32, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromR4(core::mem::transmute(fltin), core::mem::transmute(pcout)).ok() + VarI1FromR4(fltin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromR8(dblin: f64, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromR8(dblin : f64, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromR8(core::mem::transmute(dblin), core::mem::transmute(pcout)).ok() + VarI1FromR8(dblin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromStr(strin: P0, lcid: u32, dwflags: u32, pcout: windows_core::PSTR) -> windows_core::Result<()> @@ -2026,33 +2026,33 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), core::mem::transmute(pcout)).ok() + VarI1FromStr(strin.param().abi(), lcid, dwflags, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromUI1(bin: u8, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromUI1(bin : u8, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromUI1(core::mem::transmute(bin), core::mem::transmute(pcout)).ok() + VarI1FromUI1(bin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromUI2(uiin: u16, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromUI2(uiin : u16, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromUI2(core::mem::transmute(uiin), core::mem::transmute(pcout)).ok() + VarI1FromUI2(uiin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromUI4(ulin: u32, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromUI4(ulin : u32, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromUI4(core::mem::transmute(ulin), core::mem::transmute(pcout)).ok() + VarI1FromUI4(ulin, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI1FromUI8(i64in: u64, pcout: windows_core::PSTR) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromUI8(i64in : u64, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromUI8(core::mem::transmute(i64in), core::mem::transmute(pcout)).ok() + VarI1FromUI8(i64in, core::mem::transmute(pcout)).ok() } #[inline] pub unsafe fn VarI2FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2064,13 +2064,13 @@ pub unsafe fn VarI2FromCy(cyin: super::Com::CY, psout: *mut i16) -> windows_core pub unsafe fn VarI2FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromDate(datein : f64, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromDec(pdecin : *const super::super::Foundation:: DECIMAL, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2080,37 +2080,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromI1(cin : i8, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromI4(lin : i32, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromI8(i64in : i64, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromR4(fltin : f32, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromR8(dblin : f64, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2119,37 +2119,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromUI1(bin : u8, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromUI2(uiin : u16, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromUI4(ulin : u32, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI2FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromUI8(ui64in : u64, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI2FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2162,13 +2162,13 @@ pub unsafe fn VarI4FromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarI4FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromDate(datein : f64, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromDec(pdecin : *const super::super::Foundation:: DECIMAL, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2178,37 +2178,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromI1(cin : i8, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromI2(sin : i16, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromI8(i64in : i64, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromR4(fltin : f32, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromR8(dblin : f64, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2217,37 +2217,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromUI1(bin : u8, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromUI2(uiin : u16, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromUI4(ulin : u32, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI4FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromUI8(ui64in : u64, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI4FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2260,13 +2260,13 @@ pub unsafe fn VarI8FromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarI8FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromDate(datein : f64, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2276,31 +2276,31 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromI1(cin : i8, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromI2(sin : i16, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromR4(fltin : f32, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromR8(dblin : f64, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2309,31 +2309,31 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromUI1(bin : u8, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromUI2(uiin : u16, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromUI4(ulin : u32, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarI8FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromUI8(ui64in : u64, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarI8FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -2367,7 +2367,7 @@ pub unsafe fn VarMod(pvarleft: *const super::Variant::VARIANT, pvarright: *const pub unsafe fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarMonthName(imonth : i32, fabbrev : i32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarMonthName(core::mem::transmute(imonth), core::mem::transmute(fabbrev), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarMonthName(imonth, fabbrev, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -2395,7 +2395,7 @@ pub unsafe fn VarNot(pvarin: *const super::Variant::VARIANT) -> windows_core::Re pub unsafe fn VarNumFromParseNum(pnumprs: *const NUMPARSE, rgbdig: *const u8, dwvtbits: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarNumFromParseNum(pnumprs : *const NUMPARSE, rgbdig : *const u8, dwvtbits : u32, pvar : *mut super::Variant:: VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarNumFromParseNum(core::mem::transmute(pnumprs), core::mem::transmute(rgbdig), core::mem::transmute(dwvtbits), &mut result__).map(|| core::mem::transmute(result__)) + VarNumFromParseNum(pnumprs, rgbdig, dwvtbits, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -2410,7 +2410,7 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarParseNumFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pnumprs : *mut NUMPARSE, rgbdig : *mut u8) -> windows_core::HRESULT); - VarParseNumFromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), core::mem::transmute(pnumprs), core::mem::transmute(rgbdig)).ok() + VarParseNumFromStr(strin.param().abi(), lcid, dwflags, core::mem::transmute(pnumprs), core::mem::transmute(rgbdig)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -2422,13 +2422,13 @@ pub unsafe fn VarPow(pvarleft: *const super::Variant::VARIANT, pvarright: *const #[inline] pub unsafe fn VarR4CmpR8(fltleft: f32, dblright: f64) -> VARCMP { windows_targets::link!("oleaut32.dll" "system" fn VarR4CmpR8(fltleft : f32, dblright : f64) -> VARCMP); - VarR4CmpR8(core::mem::transmute(fltleft), core::mem::transmute(dblright)) + VarR4CmpR8(fltleft, dblright) } #[inline] pub unsafe fn VarR4FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2440,13 +2440,13 @@ pub unsafe fn VarR4FromCy(cyin: super::Com::CY, pfltout: *mut f32) -> windows_co pub unsafe fn VarR4FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromDate(datein : f64, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2456,37 +2456,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromI1(cin : i8, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromI2(sin : i16, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromI4(lin : i32, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromI8(i64in : i64, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromR8(dblin : f64, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2495,37 +2495,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromUI1(bin : u8, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromUI2(uiin : u16, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromUI4(ulin : u32, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR4FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromUI8(ui64in : u64, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR4FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2537,13 +2537,13 @@ pub unsafe fn VarR8FromCy(cyin: super::Com::CY, pdblout: *mut f64) -> windows_co pub unsafe fn VarR8FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromDate(datein : f64, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2553,36 +2553,36 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromI1(cin: i8, pdblout: *mut f64) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromI1(cin : i8, pdblout : *mut f64) -> windows_core::HRESULT); - VarR8FromI1(core::mem::transmute(cin), core::mem::transmute(pdblout)).ok() + VarR8FromI1(cin, core::mem::transmute(pdblout)).ok() } #[inline] pub unsafe fn VarR8FromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromI2(sin : i16, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromI4(lin : i32, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromI8(i64in : i64, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromR4(fltin : f32, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2591,50 +2591,50 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromUI1(bin : u8, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromUI2(uiin : u16, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromUI4(ulin : u32, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromUI8(ui64in : u64, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8Pow(dblleft: f64, dblright: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8Pow(dblleft : f64, dblright : f64, pdblresult : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8Pow(core::mem::transmute(dblleft), core::mem::transmute(dblright), &mut result__).map(|| core::mem::transmute(result__)) + VarR8Pow(dblleft, dblright, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarR8Round(dblin: f64, cdecimals: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarR8Round(dblin : f64, cdecimals : i32, pdblresult : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarR8Round(core::mem::transmute(dblin), core::mem::transmute(cdecimals), &mut result__).map(|| core::mem::transmute(result__)) + VarR8Round(dblin, cdecimals, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn VarRound(pvarin: *const super::Variant::VARIANT, cdecimals: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarRound(pvarin : *const super::Variant:: VARIANT, cdecimals : i32, pvarresult : *mut super::Variant:: VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarRound(core::mem::transmute(pvarin), core::mem::transmute(cdecimals), &mut result__).map(|| core::mem::transmute(result__)) + VarRound(core::mem::transmute(pvarin), cdecimals, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -2649,13 +2649,13 @@ where P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarTokenizeFormatString(pstrformat : windows_core::PCWSTR, rgbtok : *mut u8, cbtok : i32, ifirstday : VARFORMAT_FIRST_DAY, ifirstweek : VARFORMAT_FIRST_WEEK, lcid : u32, pcbactual : *const i32) -> windows_core::HRESULT); - VarTokenizeFormatString(pstrformat.param().abi(), core::mem::transmute(rgbtok.as_ptr()), rgbtok.len().try_into().unwrap(), core::mem::transmute(ifirstday), core::mem::transmute(ifirstweek), core::mem::transmute(lcid), core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))).ok() + VarTokenizeFormatString(pstrformat.param().abi(), core::mem::transmute(rgbtok.as_ptr()), rgbtok.len().try_into().unwrap(), ifirstday, ifirstweek, lcid, core::mem::transmute(pcbactual.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn VarUI1FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2668,13 +2668,13 @@ pub unsafe fn VarUI1FromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarUI1FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromDate(datein : f64, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2684,43 +2684,43 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromI1(cin : i8, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromI2(sin : i16, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromI4(lin : i32, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromI8(i64in : i64, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromR4(fltin : f32, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromR8(dblin : f64, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2729,31 +2729,31 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromUI2(uiin : u16, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromUI4(ulin : u32, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI1FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromUI8(ui64in : u64, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI1FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2766,13 +2766,13 @@ pub unsafe fn VarUI2FromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarUI2FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromDate(datein : f64, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromDec(pdecin : *const super::super::Foundation:: DECIMAL, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2782,42 +2782,42 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromI1(cin : i8, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromI2(uiin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromI2(uiin : i16, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromI4(lin : i32, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromI8(i64in : i64, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromR4(fltin : f32, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromR8(dblin: f64, puiout: *mut u16) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromR8(dblin : f64, puiout : *mut u16) -> windows_core::HRESULT); - VarUI2FromR8(core::mem::transmute(dblin), core::mem::transmute(puiout)).ok() + VarUI2FromR8(dblin, core::mem::transmute(puiout)).ok() } #[inline] pub unsafe fn VarUI2FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2826,31 +2826,31 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromUI1(bin : u8, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromUI4(ulin : u32, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI2FromUI8(i64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromUI8(i64in : u64, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI2FromUI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromUI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2863,13 +2863,13 @@ pub unsafe fn VarUI4FromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarUI4FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromDate(datein : f64, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2879,43 +2879,43 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromI1(cin : i8, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromI2(uiin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromI2(uiin : i16, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromI4(lin: i32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromI4(lin : i32, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromI4(core::mem::transmute(lin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromI8(i64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromI8(i64in : i64, plout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromI8(core::mem::transmute(i64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromR4(fltin : f32, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromR8(dblin : f64, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -2924,31 +2924,31 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromUI1(bin : u8, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromUI2(uiin : u16, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI4FromUI8(ui64in: u64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromUI8(ui64in : u64, plout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI4FromUI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromBool(core::mem::transmute(boolin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2961,13 +2961,13 @@ pub unsafe fn VarUI8FromCy(cyin: super::Com::CY) -> windows_core::Result { pub unsafe fn VarUI8FromDate(datein: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromDate(datein : f64, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromDate(core::mem::transmute(datein), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromDec(core::mem::transmute(pdecin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2977,37 +2977,37 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromDisp(pdispin.param().abi(), core::mem::transmute(lcid), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromI1(cin: i8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromI1(cin : i8, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromI1(core::mem::transmute(cin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromI2(sin: i16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromI2(sin : i16, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromI2(core::mem::transmute(sin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromI8(ui64in: i64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromI8(ui64in : i64, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromI8(core::mem::transmute(ui64in), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromR4(fltin: f32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromR4(fltin : f32, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromR4(core::mem::transmute(fltin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromR8(dblin: f64) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromR8(dblin : f64, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromR8(core::mem::transmute(dblin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result @@ -3016,36 +3016,36 @@ where { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromStr(strin.param().abi(), core::mem::transmute(lcid), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromUI1(bin: u8) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromUI1(bin : u8, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromUI1(core::mem::transmute(bin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromUI2(uiin: u16) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromUI2(uiin : u16, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromUI2(core::mem::transmute(uiin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUI8FromUI4(ulin: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromUI4(ulin : u32, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarUI8FromUI4(core::mem::transmute(ulin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn VarUdateFromDate(datein: f64, dwflags: u32, pudateout: *mut UDATE) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VarUdateFromDate(datein : f64, dwflags : u32, pudateout : *mut UDATE) -> windows_core::HRESULT); - VarUdateFromDate(core::mem::transmute(datein), core::mem::transmute(dwflags), core::mem::transmute(pudateout)).ok() + VarUdateFromDate(datein, dwflags, core::mem::transmute(pudateout)).ok() } #[inline] pub unsafe fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32) -> windows_core::Result { windows_targets::link!("oleaut32.dll" "system" fn VarWeekdayName(iweekday : i32, fabbrev : i32, ifirstday : i32, dwflags : u32, pbstrout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VarWeekdayName(core::mem::transmute(iweekday), core::mem::transmute(fabbrev), core::mem::transmute(ifirstday), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + VarWeekdayName(iweekday, fabbrev, ifirstday, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -3776,7 +3776,7 @@ windows_core::imp::interface_hierarchy!(IAdviseSinkEx, windows_core::IUnknown, s #[cfg(feature = "Win32_System_Com")] impl IAdviseSinkEx { pub unsafe fn OnViewStatusChange(&self, dwviewstatus: u32) { - (windows_core::Interface::vtable(self).OnViewStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwviewstatus)) + (windows_core::Interface::vtable(self).OnViewStatusChange)(windows_core::Interface::as_raw(self), dwviewstatus) } } #[cfg(feature = "Win32_System_Com")] @@ -3857,7 +3857,7 @@ impl IClassFactory2 { } pub unsafe fn RequestLicKey(&self, dwreserved: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestLicKey)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).RequestLicKey)(windows_core::Interface::as_raw(self), dwreserved, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateInstanceLic(&self, punkouter: P0, punkreserved: P1, bstrkey: &windows_core::BSTR) -> windows_core::Result where @@ -3955,7 +3955,7 @@ impl IContinueCallback { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FContinuePrinting)(windows_core::Interface::as_raw(self), core::mem::transmute(ncntprinted), core::mem::transmute(ncurpage), pwszprintstatus.param().abi()).ok() + (windows_core::Interface::vtable(self).FContinuePrinting)(windows_core::Interface::as_raw(self), ncntprinted, ncurpage, pwszprintstatus.param().abi()).ok() } } #[repr(C)] @@ -3993,7 +3993,7 @@ windows_core::imp::define_interface!(ICreateErrorInfo, ICreateErrorInfo_Vtbl, 0x windows_core::imp::interface_hierarchy!(ICreateErrorInfo, windows_core::IUnknown); impl ICreateErrorInfo { pub unsafe fn SetGUID(&self, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).SetGUID)(windows_core::Interface::as_raw(self), rguid).ok() } pub unsafe fn SetSource(&self, szsource: P0) -> windows_core::Result<()> where @@ -4014,7 +4014,7 @@ impl ICreateErrorInfo { (windows_core::Interface::vtable(self).SetHelpFile)(windows_core::Interface::as_raw(self), szhelpfile.param().abi()).ok() } pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelpContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhelpcontext)).ok() + (windows_core::Interface::vtable(self).SetHelpContext)(windows_core::Interface::as_raw(self), dwhelpcontext).ok() } } #[repr(C)] @@ -4073,10 +4073,10 @@ windows_core::imp::define_interface!(ICreateTypeInfo, ICreateTypeInfo_Vtbl, 0x00 windows_core::imp::interface_hierarchy!(ICreateTypeInfo, windows_core::IUnknown); impl ICreateTypeInfo { pub unsafe fn SetGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid)).ok() + (windows_core::Interface::vtable(self).SetGuid)(windows_core::Interface::as_raw(self), guid).ok() } pub unsafe fn SetTypeFlags(&self, utypeflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(utypeflags)).ok() + (windows_core::Interface::vtable(self).SetTypeFlags)(windows_core::Interface::as_raw(self), utypeflags).ok() } pub unsafe fn SetDocString(&self, pstrdoc: P0) -> windows_core::Result<()> where @@ -4085,31 +4085,31 @@ impl ICreateTypeInfo { (windows_core::Interface::vtable(self).SetDocString)(windows_core::Interface::as_raw(self), pstrdoc.param().abi()).ok() } pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelpContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhelpcontext)).ok() + (windows_core::Interface::vtable(self).SetHelpContext)(windows_core::Interface::as_raw(self), dwhelpcontext).ok() } pub unsafe fn SetVersion(&self, wmajorvernum: u16, wminorvernum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(wmajorvernum), core::mem::transmute(wminorvernum)).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), wmajorvernum, wminorvernum).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRefTypeInfo(&self, ptinfo: P0, phreftype: *const u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRefTypeInfo)(windows_core::Interface::as_raw(self), ptinfo.param().abi(), core::mem::transmute(phreftype)).ok() + (windows_core::Interface::vtable(self).AddRefTypeInfo)(windows_core::Interface::as_raw(self), ptinfo.param().abi(), phreftype).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn AddFuncDesc(&self, index: u32, pfuncdesc: *const super::Com::FUNCDESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddFuncDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pfuncdesc)).ok() + (windows_core::Interface::vtable(self).AddFuncDesc)(windows_core::Interface::as_raw(self), index, pfuncdesc).ok() } pub unsafe fn AddImplType(&self, index: u32, hreftype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddImplType)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(hreftype)).ok() + (windows_core::Interface::vtable(self).AddImplType)(windows_core::Interface::as_raw(self), index, hreftype).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetImplTypeFlags(&self, index: u32, impltypeflags: super::Com::IMPLTYPEFLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplTypeFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(impltypeflags)).ok() + (windows_core::Interface::vtable(self).SetImplTypeFlags)(windows_core::Interface::as_raw(self), index, impltypeflags).ok() } pub unsafe fn SetAlignment(&self, cbalignment: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(cbalignment)).ok() + (windows_core::Interface::vtable(self).SetAlignment)(windows_core::Interface::as_raw(self), cbalignment).ok() } pub unsafe fn SetSchema(&self, pstrschema: P0) -> windows_core::Result<()> where @@ -4119,52 +4119,52 @@ impl ICreateTypeInfo { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn AddVarDesc(&self, index: u32, pvardesc: *const super::Com::VARDESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddVarDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pvardesc)).ok() + (windows_core::Interface::vtable(self).AddVarDesc)(windows_core::Interface::as_raw(self), index, pvardesc).ok() } pub unsafe fn SetFuncAndParamNames(&self, index: u32, rgsznames: &[windows_core::PCWSTR]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFuncAndParamNames)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(rgsznames.as_ptr()), rgsznames.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetFuncAndParamNames)(windows_core::Interface::as_raw(self), index, core::mem::transmute(rgsznames.as_ptr()), rgsznames.len().try_into().unwrap()).ok() } pub unsafe fn SetVarName(&self, index: u32, szname: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVarName)(windows_core::Interface::as_raw(self), core::mem::transmute(index), szname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetVarName)(windows_core::Interface::as_raw(self), index, szname.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetTypeDescAlias(&self, ptdescalias: *const super::Com::TYPEDESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeDescAlias)(windows_core::Interface::as_raw(self), core::mem::transmute(ptdescalias)).ok() + (windows_core::Interface::vtable(self).SetTypeDescAlias)(windows_core::Interface::as_raw(self), ptdescalias).ok() } pub unsafe fn DefineFuncAsDllEntry(&self, index: u32, szdllname: P1, szprocname: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineFuncAsDllEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(index), szdllname.param().abi(), szprocname.param().abi()).ok() + (windows_core::Interface::vtable(self).DefineFuncAsDllEntry)(windows_core::Interface::as_raw(self), index, szdllname.param().abi(), szprocname.param().abi()).ok() } pub unsafe fn SetFuncDocString(&self, index: u32, szdocstring: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFuncDocString)(windows_core::Interface::as_raw(self), core::mem::transmute(index), szdocstring.param().abi()).ok() + (windows_core::Interface::vtable(self).SetFuncDocString)(windows_core::Interface::as_raw(self), index, szdocstring.param().abi()).ok() } pub unsafe fn SetVarDocString(&self, index: u32, szdocstring: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVarDocString)(windows_core::Interface::as_raw(self), core::mem::transmute(index), szdocstring.param().abi()).ok() + (windows_core::Interface::vtable(self).SetVarDocString)(windows_core::Interface::as_raw(self), index, szdocstring.param().abi()).ok() } pub unsafe fn SetFuncHelpContext(&self, index: u32, dwhelpcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFuncHelpContext)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(dwhelpcontext)).ok() + (windows_core::Interface::vtable(self).SetFuncHelpContext)(windows_core::Interface::as_raw(self), index, dwhelpcontext).ok() } pub unsafe fn SetVarHelpContext(&self, index: u32, dwhelpcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVarHelpContext)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(dwhelpcontext)).ok() + (windows_core::Interface::vtable(self).SetVarHelpContext)(windows_core::Interface::as_raw(self), index, dwhelpcontext).ok() } pub unsafe fn SetMops(&self, index: u32, bstrmops: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMops)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute_copy(bstrmops)).ok() + (windows_core::Interface::vtable(self).SetMops)(windows_core::Interface::as_raw(self), index, core::mem::transmute_copy(bstrmops)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTypeIdldesc(&self, pidldesc: *const super::Com::IDLDESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeIdldesc)(windows_core::Interface::as_raw(self), core::mem::transmute(pidldesc)).ok() + (windows_core::Interface::vtable(self).SetTypeIdldesc)(windows_core::Interface::as_raw(self), pidldesc).ok() } pub unsafe fn LayOut(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LayOut)(windows_core::Interface::as_raw(self)).ok() @@ -4379,49 +4379,49 @@ impl core::ops::Deref for ICreateTypeInfo2 { windows_core::imp::interface_hierarchy!(ICreateTypeInfo2, windows_core::IUnknown, ICreateTypeInfo); impl ICreateTypeInfo2 { pub unsafe fn DeleteFuncDesc(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteFuncDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).DeleteFuncDesc)(windows_core::Interface::as_raw(self), index).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteFuncDescByMemId(&self, memid: i32, invkind: super::Com::INVOKEKIND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteFuncDescByMemId)(windows_core::Interface::as_raw(self), core::mem::transmute(memid), core::mem::transmute(invkind)).ok() + (windows_core::Interface::vtable(self).DeleteFuncDescByMemId)(windows_core::Interface::as_raw(self), memid, invkind).ok() } pub unsafe fn DeleteVarDesc(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteVarDesc)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).DeleteVarDesc)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn DeleteVarDescByMemId(&self, memid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteVarDescByMemId)(windows_core::Interface::as_raw(self), core::mem::transmute(memid)).ok() + (windows_core::Interface::vtable(self).DeleteVarDescByMemId)(windows_core::Interface::as_raw(self), memid).ok() } pub unsafe fn DeleteImplType(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteImplType)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).DeleteImplType)(windows_core::Interface::as_raw(self), index).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetCustData(&self, guid: *const windows_core::GUID, pvarval: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetCustData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pvarval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetFuncCustData(&self, index: u32, guid: *const windows_core::GUID, pvarval: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFuncCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(guid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetFuncCustData)(windows_core::Interface::as_raw(self), index, guid, core::mem::transmute(pvarval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetParamCustData(&self, indexfunc: u32, indexparam: u32, guid: *const windows_core::GUID, pvarval: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParamCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(indexfunc), core::mem::transmute(indexparam), core::mem::transmute(guid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetParamCustData)(windows_core::Interface::as_raw(self), indexfunc, indexparam, guid, core::mem::transmute(pvarval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetVarCustData(&self, index: u32, guid: *const windows_core::GUID, pvarval: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVarCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(guid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetVarCustData)(windows_core::Interface::as_raw(self), index, guid, core::mem::transmute(pvarval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetImplTypeCustData(&self, index: u32, guid: *const windows_core::GUID, pvarval: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImplTypeCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(guid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetImplTypeCustData)(windows_core::Interface::as_raw(self), index, guid, core::mem::transmute(pvarval)).ok() } pub unsafe fn SetHelpStringContext(&self, dwhelpstringcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelpStringContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhelpstringcontext)).ok() + (windows_core::Interface::vtable(self).SetHelpStringContext)(windows_core::Interface::as_raw(self), dwhelpstringcontext).ok() } pub unsafe fn SetFuncHelpStringContext(&self, index: u32, dwhelpstringcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFuncHelpStringContext)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(dwhelpstringcontext)).ok() + (windows_core::Interface::vtable(self).SetFuncHelpStringContext)(windows_core::Interface::as_raw(self), index, dwhelpstringcontext).ok() } pub unsafe fn SetVarHelpStringContext(&self, index: u32, dwhelpstringcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVarHelpStringContext)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(dwhelpstringcontext)).ok() + (windows_core::Interface::vtable(self).SetVarHelpStringContext)(windows_core::Interface::as_raw(self), index, dwhelpstringcontext).ok() } pub unsafe fn Invalidate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Invalidate)(windows_core::Interface::as_raw(self)).ok() @@ -4585,7 +4585,7 @@ impl ICreateTypeLib { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypeInfo)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(tkind), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypeInfo)(windows_core::Interface::as_raw(self), szname.param().abi(), tkind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetName(&self, szname: P0) -> windows_core::Result<()> where @@ -4594,10 +4594,10 @@ impl ICreateTypeLib { (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), szname.param().abi()).ok() } pub unsafe fn SetVersion(&self, wmajorvernum: u16, wminorvernum: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(wmajorvernum), core::mem::transmute(wminorvernum)).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), wmajorvernum, wminorvernum).ok() } pub unsafe fn SetGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid)).ok() + (windows_core::Interface::vtable(self).SetGuid)(windows_core::Interface::as_raw(self), guid).ok() } pub unsafe fn SetDocString(&self, szdoc: P0) -> windows_core::Result<()> where @@ -4612,13 +4612,13 @@ impl ICreateTypeLib { (windows_core::Interface::vtable(self).SetHelpFileName)(windows_core::Interface::as_raw(self), szhelpfilename.param().abi()).ok() } pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelpContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhelpcontext)).ok() + (windows_core::Interface::vtable(self).SetHelpContext)(windows_core::Interface::as_raw(self), dwhelpcontext).ok() } pub unsafe fn SetLcid(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLcid)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetLcid)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn SetLibFlags(&self, ulibflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLibFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(ulibflags)).ok() + (windows_core::Interface::vtable(self).SetLibFlags)(windows_core::Interface::as_raw(self), ulibflags).ok() } pub unsafe fn SaveAllChanges(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveAllChanges)(windows_core::Interface::as_raw(self)).ok() @@ -4740,10 +4740,10 @@ impl ICreateTypeLib2 { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn SetCustData(&self, guid: *const windows_core::GUID, pvarval: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCustData)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(pvarval)).ok() + (windows_core::Interface::vtable(self).SetCustData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pvarval)).ok() } pub unsafe fn SetHelpStringContext(&self, dwhelpstringcontext: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHelpStringContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhelpstringcontext)).ok() + (windows_core::Interface::vtable(self).SetHelpStringContext)(windows_core::Interface::as_raw(self), dwhelpstringcontext).ok() } pub unsafe fn SetHelpStringDll(&self, szfilename: P0) -> windows_core::Result<()> where @@ -5068,32 +5068,32 @@ windows_core::imp::interface_hierarchy!(IDispatchEx, windows_core::IUnknown, sup impl IDispatchEx { pub unsafe fn GetDispID(&self, bstrname: &windows_core::BSTR, grfdex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDispID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(grfdex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDispID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), grfdex, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn InvokeEx(&self, id: i32, lcid: u32, wflags: u16, pdp: *const super::Com::DISPPARAMS, pvarres: Option<*mut super::Variant::VARIANT>, pei: Option<*mut super::Com::EXCEPINFO>, pspcaller: P6) -> windows_core::Result<()> where P6: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(pdp), core::mem::transmute(pvarres.unwrap_or(core::mem::zeroed())), core::mem::transmute(pei.unwrap_or(core::mem::zeroed())), pspcaller.param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeEx)(windows_core::Interface::as_raw(self), id, lcid, wflags, pdp, core::mem::transmute(pvarres.unwrap_or(core::mem::zeroed())), core::mem::transmute(pei.unwrap_or(core::mem::zeroed())), pspcaller.param().abi()).ok() } pub unsafe fn DeleteMemberByName(&self, bstrname: &windows_core::BSTR, grfdex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteMemberByName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute(grfdex)).ok() + (windows_core::Interface::vtable(self).DeleteMemberByName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), grfdex).ok() } pub unsafe fn DeleteMemberByDispID(&self, id: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteMemberByDispID)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).DeleteMemberByDispID)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn GetMemberProperties(&self, id: i32, grfdexfetch: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMemberProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(grfdexfetch), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMemberProperties)(windows_core::Interface::as_raw(self), id, grfdexfetch, &mut result__).map(|| result__) } pub unsafe fn GetMemberName(&self, id: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMemberName)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMemberName)(windows_core::Interface::as_raw(self), id, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetNextDispID(&self, grfdex: u32, id: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextDispID)(windows_core::Interface::as_raw(self), core::mem::transmute(grfdex), core::mem::transmute(id), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNextDispID)(windows_core::Interface::as_raw(self), grfdex, id, &mut result__).map(|| result__) } pub unsafe fn GetNameSpaceParent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5215,10 +5215,10 @@ windows_core::imp::interface_hierarchy!(IDropSource, windows_core::IUnknown); impl IDropSource { #[cfg(feature = "Win32_System_SystemServices")] pub unsafe fn QueryContinueDrag(&self, fescapepressed: bool, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).QueryContinueDrag)(windows_core::Interface::as_raw(self), fescapepressed.into(), core::mem::transmute(grfkeystate)) + (windows_core::Interface::vtable(self).QueryContinueDrag)(windows_core::Interface::as_raw(self), fescapepressed.into(), grfkeystate) } pub unsafe fn GiveFeedback(&self, dweffect: DROPEFFECT) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).GiveFeedback)(windows_core::Interface::as_raw(self), core::mem::transmute(dweffect)) + (windows_core::Interface::vtable(self).GiveFeedback)(windows_core::Interface::as_raw(self), dweffect) } } #[repr(C)] @@ -5262,7 +5262,7 @@ windows_core::imp::define_interface!(IDropSourceNotify, IDropSourceNotify_Vtbl, windows_core::imp::interface_hierarchy!(IDropSourceNotify, windows_core::IUnknown); impl IDropSourceNotify { pub unsafe fn DragEnterTarget(&self, hwndtarget: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DragEnterTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtarget)).ok() + (windows_core::Interface::vtable(self).DragEnterTarget)(windows_core::Interface::as_raw(self), hwndtarget).ok() } pub unsafe fn DragLeaveTarget(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DragLeaveTarget)(windows_core::Interface::as_raw(self)).ok() @@ -5307,11 +5307,11 @@ impl IDropTarget { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), pdataobj.param().abi(), core::mem::transmute(grfkeystate), core::mem::transmute(pt), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), pdataobj.param().abi(), grfkeystate, core::mem::transmute(pt), core::mem::transmute(pdweffect)).ok() } #[cfg(feature = "Win32_System_SystemServices")] pub unsafe fn DragOver(&self, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DragOver)(windows_core::Interface::as_raw(self), core::mem::transmute(grfkeystate), core::mem::transmute(pt), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).DragOver)(windows_core::Interface::as_raw(self), grfkeystate, core::mem::transmute(pt), core::mem::transmute(pdweffect)).ok() } pub unsafe fn DragLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DragLeave)(windows_core::Interface::as_raw(self)).ok() @@ -5321,7 +5321,7 @@ impl IDropTarget { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobj.param().abi(), core::mem::transmute(grfkeystate), core::mem::transmute(pt), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobj.param().abi(), grfkeystate, core::mem::transmute(pt), core::mem::transmute(pdweffect)).ok() } } #[repr(C)] @@ -5440,7 +5440,7 @@ impl IEnumOLEVERB { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5511,10 +5511,10 @@ windows_core::imp::define_interface!(IEnumOleDocumentViews, IEnumOleDocumentView windows_core::imp::interface_hierarchy!(IEnumOleDocumentViews, windows_core::IUnknown); impl IEnumOleDocumentViews { pub unsafe fn Next(&self, cviews: u32, rgpview: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cviews), core::mem::transmute(rgpview), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cviews, core::mem::transmute(rgpview), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cviews: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cviews)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cviews).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5582,7 +5582,7 @@ impl IEnumOleUndoUnits { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5651,7 +5651,7 @@ impl IEnumVARIANT { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgvar.len().try_into().unwrap(), core::mem::transmute(rgvar.as_ptr()), core::mem::transmute(pceltfetched)) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5770,14 +5770,14 @@ impl IFont { (windows_core::Interface::vtable(self).Weight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWeight(&self, weight: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(weight)).ok() + (windows_core::Interface::vtable(self).SetWeight)(windows_core::Interface::as_raw(self), weight).ok() } pub unsafe fn Charset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Charset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCharset(&self, charset: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCharset)(windows_core::Interface::as_raw(self), core::mem::transmute(charset)).ok() + (windows_core::Interface::vtable(self).SetCharset)(windows_core::Interface::as_raw(self), charset).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn hFont(&self) -> windows_core::Result { @@ -5795,7 +5795,7 @@ impl IFont { (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pfontother.param().abi()).ok() } pub unsafe fn SetRatio(&self, cylogical: i32, cyhimetric: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(cylogical), core::mem::transmute(cyhimetric)).ok() + (windows_core::Interface::vtable(self).SetRatio)(windows_core::Interface::as_raw(self), cylogical, cyhimetric).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn QueryTextMetrics(&self, ptm: *mut super::super::Graphics::Gdi::TEXTMETRICW) -> windows_core::Result<()> { @@ -5803,15 +5803,15 @@ impl IFont { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddRefHfont(&self, hfont: super::super::Graphics::Gdi::HFONT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRefHfont)(windows_core::Interface::as_raw(self), core::mem::transmute(hfont)).ok() + (windows_core::Interface::vtable(self).AddRefHfont)(windows_core::Interface::as_raw(self), hfont).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseHfont(&self, hfont: super::super::Graphics::Gdi::HFONT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseHfont)(windows_core::Interface::as_raw(self), core::mem::transmute(hfont)).ok() + (windows_core::Interface::vtable(self).ReleaseHfont)(windows_core::Interface::as_raw(self), hfont).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetHdc(&self, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHdc)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).SetHdc)(windows_core::Interface::as_raw(self), hdc).ok() } } #[repr(C)] @@ -6150,7 +6150,7 @@ windows_core::imp::define_interface!(IGetOleObject, IGetOleObject_Vtbl, 0x8a701d windows_core::imp::interface_hierarchy!(IGetOleObject, windows_core::IUnknown); impl IGetOleObject { pub unsafe fn GetOleObject(&self, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOleObject)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppvobj)).ok() + (windows_core::Interface::vtable(self).GetOleObject)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppvobj)).ok() } } #[repr(C)] @@ -6178,7 +6178,7 @@ windows_core::imp::define_interface!(IGetVBAObject, IGetVBAObject_Vtbl, 0x91733a windows_core::imp::interface_hierarchy!(IGetVBAObject, windows_core::IUnknown); impl IGetVBAObject { pub unsafe fn GetObject(&self, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppvobj), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppvobj), dwreserved).ok() } } #[repr(C)] @@ -6355,7 +6355,7 @@ impl IOleAdviseHolder { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), padvise.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnection)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwconnection).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumAdvise(&self) -> windows_core::Result { @@ -6465,10 +6465,10 @@ impl IOleCache { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Cache(&self, pformatetc: *const super::Com::FORMATETC, advf: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Cache)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(advf), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Cache)(windows_core::Interface::as_raw(self), pformatetc, advf, &mut result__).map(|| result__) } pub unsafe fn Uncache(&self, dwconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Uncache)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnection)).ok() + (windows_core::Interface::vtable(self).Uncache)(windows_core::Interface::as_raw(self), dwconnection).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCache(&self) -> windows_core::Result { @@ -6484,7 +6484,7 @@ impl IOleCache { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn SetData(&self, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pformatetc), core::mem::transmute(pmedium), frelease.into()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pformatetc, core::mem::transmute(pmedium), frelease.into()).ok() } } #[repr(C)] @@ -6580,10 +6580,10 @@ impl IOleCache2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateCache)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), core::mem::transmute(grfupdf), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).UpdateCache)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), grfupdf, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DiscardCache(&self, dwdiscardoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DiscardCache)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdiscardoptions)).ok() + (windows_core::Interface::vtable(self).DiscardCache)(windows_core::Interface::as_raw(self), dwdiscardoptions).ok() } } #[repr(C)] @@ -6772,11 +6772,11 @@ windows_core::imp::define_interface!(IOleCommandTarget, IOleCommandTarget_Vtbl, windows_core::imp::interface_hierarchy!(IOleCommandTarget, windows_core::IUnknown); impl IOleCommandTarget { pub unsafe fn QueryStatus(&self, pguidcmdgroup: *const windows_core::GUID, ccmds: u32, prgcmds: *mut OLECMD, pcmdtext: *mut OLECMDTEXT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidcmdgroup), core::mem::transmute(ccmds), core::mem::transmute(prgcmds), core::mem::transmute(pcmdtext)).ok() + (windows_core::Interface::vtable(self).QueryStatus)(windows_core::Interface::as_raw(self), pguidcmdgroup, ccmds, core::mem::transmute(prgcmds), core::mem::transmute(pcmdtext)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn Exec(&self, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvain: *const super::Variant::VARIANT, pvaout: *mut super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Exec)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidcmdgroup), core::mem::transmute(ncmdid), core::mem::transmute(ncmdexecopt), core::mem::transmute(pvain), core::mem::transmute(pvaout)).ok() + (windows_core::Interface::vtable(self).Exec)(windows_core::Interface::as_raw(self), pguidcmdgroup, ncmdid, ncmdexecopt, core::mem::transmute(pvain), core::mem::transmute(pvaout)).ok() } } #[repr(C)] @@ -6882,10 +6882,10 @@ impl IOleControl { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnMnemonic(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMnemonic)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).OnMnemonic)(windows_core::Interface::as_raw(self), pmsg).ok() } pub unsafe fn OnAmbientPropertyChange(&self, dispid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAmbientPropertyChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid)).ok() + (windows_core::Interface::vtable(self).OnAmbientPropertyChange)(windows_core::Interface::as_raw(self), dispid).ok() } pub unsafe fn FreezeEvents(&self, bfreeze: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FreezeEvents)(windows_core::Interface::as_raw(self), bfreeze.into()).ok() @@ -6964,7 +6964,7 @@ impl IOleControlSite { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(grfmodifiers)).ok() + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg, grfmodifiers).ok() } pub unsafe fn OnFocus(&self, fgotfocus: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnFocus)(windows_core::Interface::as_raw(self), fgotfocus.into()).ok() @@ -7064,7 +7064,7 @@ impl IOleDocument { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), pipsite.param().abi(), pstm.param().abi(), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), pipsite.param().abi(), pstm.param().abi(), dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDocMiscStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7179,14 +7179,14 @@ impl IOleDocumentView { (windows_core::Interface::vtable(self).GetDocument)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetRect(&self, prcview: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prcview)).ok() + (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), prcview).ok() } pub unsafe fn GetRect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRectComplex(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).SetRectComplex)(windows_core::Interface::as_raw(self), core::mem::transmute(prcview), core::mem::transmute(prchscroll), core::mem::transmute(prcvscroll), core::mem::transmute(prcsizebox)).ok() + (windows_core::Interface::vtable(self).SetRectComplex)(windows_core::Interface::as_raw(self), prcview, prchscroll, prcvscroll, prcsizebox).ok() } pub unsafe fn Show(&self, fshow: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.into()).ok() @@ -7198,7 +7198,7 @@ impl IOleDocumentView { (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CloseView(&self, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseView)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).CloseView)(windows_core::Interface::as_raw(self), dwreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveViewState(&self, pstm: P0) -> windows_core::Result<()> @@ -7386,7 +7386,7 @@ impl IOleInPlaceActiveObject { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeBorder)(windows_core::Interface::as_raw(self), core::mem::transmute(prcborder), puiwindow.param().abi(), fframewindow.into()).ok() + (windows_core::Interface::vtable(self).ResizeBorder)(windows_core::Interface::as_raw(self), prcborder, puiwindow.param().abi(), fframewindow.into()).ok() } pub unsafe fn EnableModeless(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into()).ok() @@ -7461,15 +7461,15 @@ windows_core::imp::interface_hierarchy!(IOleInPlaceFrame, windows_core::IUnknown impl IOleInPlaceFrame { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn InsertMenus(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertMenus)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenushared), core::mem::transmute(lpmenuwidths)).ok() + (windows_core::Interface::vtable(self).InsertMenus)(windows_core::Interface::as_raw(self), hmenushared, core::mem::transmute(lpmenuwidths)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenu(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, holemenu: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenushared), core::mem::transmute(holemenu), core::mem::transmute(hwndactiveobject)).ok() + (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), hmenushared, holemenu, hwndactiveobject).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn RemoveMenus(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveMenus)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenushared)).ok() + (windows_core::Interface::vtable(self).RemoveMenus)(windows_core::Interface::as_raw(self), hmenushared).ok() } pub unsafe fn SetStatusText(&self, pszstatustext: P0) -> windows_core::Result<()> where @@ -7482,7 +7482,7 @@ impl IOleInPlaceFrame { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, wid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmsg), core::mem::transmute(wid)).ok() + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), lpmsg, wid).ok() } } #[repr(C)] @@ -7575,7 +7575,7 @@ impl IOleInPlaceObject { (windows_core::Interface::vtable(self).UIDeactivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetObjectRects(&self, lprcposrect: *const super::super::Foundation::RECT, lprccliprect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectRects)(windows_core::Interface::as_raw(self), core::mem::transmute(lprcposrect), core::mem::transmute(lprccliprect)).ok() + (windows_core::Interface::vtable(self).SetObjectRects)(windows_core::Interface::as_raw(self), lprcposrect, lprccliprect).ok() } pub unsafe fn ReactivateAndUndo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReactivateAndUndo)(windows_core::Interface::as_raw(self)).ok() @@ -7637,7 +7637,7 @@ windows_core::imp::interface_hierarchy!(IOleInPlaceObjectWindowless, windows_cor impl IOleInPlaceObjectWindowless { pub unsafe fn OnWindowMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn GetDropTarget(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7725,7 +7725,7 @@ impl IOleInPlaceSite { (windows_core::Interface::vtable(self).DeactivateAndUndo)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnPosRectChange(&self, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnPosRectChange)(windows_core::Interface::as_raw(self), core::mem::transmute(lprcposrect)).ok() + (windows_core::Interface::vtable(self).OnPosRectChange)(windows_core::Interface::as_raw(self), lprcposrect).ok() } } #[repr(C)] @@ -7831,7 +7831,7 @@ impl core::ops::Deref for IOleInPlaceSiteEx { windows_core::imp::interface_hierarchy!(IOleInPlaceSiteEx, windows_core::IUnknown, IOleWindow, IOleInPlaceSite); impl IOleInPlaceSiteEx { pub unsafe fn OnInPlaceActivateEx(&self, pfnoredraw: *mut super::super::Foundation::BOOL, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInPlaceActivateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pfnoredraw), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnInPlaceActivateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pfnoredraw), dwflags).ok() } pub unsafe fn OnInPlaceDeactivateEx(&self, fnoredraw: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnInPlaceDeactivateEx)(windows_core::Interface::as_raw(self), fnoredraw.into()).ok() @@ -7908,28 +7908,28 @@ impl IOleInPlaceSiteWindowless { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, prect: *const super::super::Foundation::RECT, grfflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), core::mem::transmute(prect), core::mem::transmute(grfflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), prect, grfflags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), hdc).ok() } pub unsafe fn InvalidateRect(&self, prect: *const super::super::Foundation::RECT, ferase: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prect), ferase.into()).ok() + (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), prect, ferase.into()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn InvalidateRgn(&self, hrgn: super::super::Graphics::Gdi::HRGN, ferase: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvalidateRgn)(windows_core::Interface::as_raw(self), core::mem::transmute(hrgn), ferase.into()).ok() + (windows_core::Interface::vtable(self).InvalidateRgn)(windows_core::Interface::as_raw(self), hrgn, ferase.into()).ok() } pub unsafe fn ScrollRect(&self, dx: i32, dy: i32, prectscroll: *const super::super::Foundation::RECT, prectclip: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScrollRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(prectscroll), core::mem::transmute(prectclip)).ok() + (windows_core::Interface::vtable(self).ScrollRect)(windows_core::Interface::as_raw(self), dx, dy, prectscroll, prectclip).ok() } pub unsafe fn AdjustRect(&self, prc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AdjustRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prc)).ok() } pub unsafe fn OnDefWindowMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnDefWindowMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnDefWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam, lparam, &mut result__).map(|| result__) } } #[repr(C)] @@ -8071,10 +8071,10 @@ impl IOleInPlaceUIWindow { (windows_core::Interface::vtable(self).GetBorder)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn RequestBorderSpace(&self, pborderwidths: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestBorderSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(pborderwidths)).ok() + (windows_core::Interface::vtable(self).RequestBorderSpace)(windows_core::Interface::as_raw(self), pborderwidths).ok() } pub unsafe fn SetBorderSpace(&self, pborderwidths: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(pborderwidths)).ok() + (windows_core::Interface::vtable(self).SetBorderSpace)(windows_core::Interface::as_raw(self), pborderwidths).ok() } pub unsafe fn SetActiveObject(&self, pactiveobject: P0, pszobjname: P1) -> windows_core::Result<()> where @@ -8152,7 +8152,7 @@ impl IOleItemContainer { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pszitem.param().abi(), core::mem::transmute(dwspeedneeded), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pszitem.param().abi(), dwspeedneeded, pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetObjectStorage(&self, pszitem: P0, pbc: P1) -> windows_core::Result @@ -8222,7 +8222,7 @@ windows_core::imp::define_interface!(IOleLink, IOleLink_Vtbl, 0x0000011d_0000_00 windows_core::imp::interface_hierarchy!(IOleLink, windows_core::IUnknown); impl IOleLink { pub unsafe fn SetUpdateOptions(&self, dwupdateopt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpdateOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwupdateopt)).ok() + (windows_core::Interface::vtable(self).SetUpdateOptions)(windows_core::Interface::as_raw(self), dwupdateopt).ok() } pub unsafe fn GetUpdateOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8233,7 +8233,7 @@ impl IOleLink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourceMoniker)(windows_core::Interface::as_raw(self), pmk.param().abi(), core::mem::transmute(rclsid)).ok() + (windows_core::Interface::vtable(self).SetSourceMoniker)(windows_core::Interface::as_raw(self), pmk.param().abi(), rclsid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSourceMoniker(&self) -> windows_core::Result { @@ -8255,7 +8255,7 @@ impl IOleLink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BindToSource)(windows_core::Interface::as_raw(self), core::mem::transmute(bindflags), pbc.param().abi()).ok() + (windows_core::Interface::vtable(self).BindToSource)(windows_core::Interface::as_raw(self), bindflags, pbc.param().abi()).ok() } pub unsafe fn BindIfRunning(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BindIfRunning)(windows_core::Interface::as_raw(self)).ok() @@ -8448,19 +8448,19 @@ impl IOleObject { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitFromData)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), fcreation.into(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).InitFromData)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), fcreation.into(), dwreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClipboardData(&self, dwreserved: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClipboardData)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetClipboardData)(windows_core::Interface::as_raw(self), dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn DoVerb(&self, iverb: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, pactivesite: P2, lindex: i32, hwndparent: super::super::Foundation::HWND, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DoVerb)(windows_core::Interface::as_raw(self), core::mem::transmute(iverb), core::mem::transmute(lpmsg), pactivesite.param().abi(), core::mem::transmute(lindex), core::mem::transmute(hwndparent), core::mem::transmute(lprcposrect)).ok() + (windows_core::Interface::vtable(self).DoVerb)(windows_core::Interface::as_raw(self), iverb, lpmsg, pactivesite.param().abi(), lindex, hwndparent, lprcposrect).ok() } pub unsafe fn EnumVerbs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8482,12 +8482,12 @@ impl IOleObject { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetExtent(&self, dwdrawaspect: super::Com::DVASPECT, psizel: *const super::super::Foundation::SIZE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(psizel)).ok() + (windows_core::Interface::vtable(self).SetExtent)(windows_core::Interface::as_raw(self), dwdrawaspect, psizel).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExtent(&self, dwdrawaspect: super::Com::DVASPECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtent)(windows_core::Interface::as_raw(self), dwdrawaspect, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Advise(&self, padvsink: P0) -> windows_core::Result @@ -8498,7 +8498,7 @@ impl IOleObject { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), padvsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnection)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwconnection).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumAdvise(&self) -> windows_core::Result { @@ -8508,11 +8508,11 @@ impl IOleObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMiscStatus(&self, dwaspect: super::Com::DVASPECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMiscStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMiscStatus)(windows_core::Interface::as_raw(self), dwaspect, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetColorScheme(&self, plogpal: *const super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColorScheme)(windows_core::Interface::as_raw(self), core::mem::transmute(plogpal)).ok() + (windows_core::Interface::vtable(self).SetColorScheme)(windows_core::Interface::as_raw(self), plogpal).ok() } } #[repr(C)] @@ -8875,32 +8875,32 @@ windows_core::imp::define_interface!(IOleUILinkContainerA, IOleUILinkContainerA_ windows_core::imp::interface_hierarchy!(IOleUILinkContainerA, windows_core::IUnknown); impl IOleUILinkContainerA { pub unsafe fn GetNextLink(&self, dwlink: u32) -> u32 { - (windows_core::Interface::vtable(self).GetNextLink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink)) + (windows_core::Interface::vtable(self).GetNextLink)(windows_core::Interface::as_raw(self), dwlink) } pub unsafe fn SetLinkUpdateOptions(&self, dwlink: u32, dwupdateopt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLinkUpdateOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), core::mem::transmute(dwupdateopt)).ok() + (windows_core::Interface::vtable(self).SetLinkUpdateOptions)(windows_core::Interface::as_raw(self), dwlink, dwupdateopt).ok() } pub unsafe fn GetLinkUpdateOptions(&self, dwlink: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLinkUpdateOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLinkUpdateOptions)(windows_core::Interface::as_raw(self), dwlink, &mut result__).map(|| result__) } pub unsafe fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: P1, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), lpszdisplayname.param().abi(), core::mem::transmute(lenfilename), core::mem::transmute(pcheaten), fvalidatesource.into()).ok() + (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, core::mem::transmute(pcheaten), fvalidatesource.into()).ok() } pub unsafe fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: Option<*mut windows_core::PSTR>, lplenfilename: *mut u32, lplpszfulllinktype: Option<*mut windows_core::PSTR>, lplpszshortlinktype: Option<*mut windows_core::PSTR>, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLinkSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), core::mem::transmute(lplpszdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplenfilename), core::mem::transmute(lplpszfulllinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshortlinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfsourceavailable), core::mem::transmute(lpfisselected)).ok() + (windows_core::Interface::vtable(self).GetLinkSource)(windows_core::Interface::as_raw(self), dwlink, core::mem::transmute(lplpszdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplenfilename), core::mem::transmute(lplpszfulllinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshortlinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfsourceavailable), core::mem::transmute(lpfisselected)).ok() } pub unsafe fn OpenLinkSource(&self, dwlink: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenLinkSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink)).ok() + (windows_core::Interface::vtable(self).OpenLinkSource)(windows_core::Interface::as_raw(self), dwlink).ok() } pub unsafe fn UpdateLink(&self, dwlink: u32, ferrormessage: bool, freserved: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), ferrormessage.into(), freserved.into()).ok() + (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.into(), freserved.into()).ok() } pub unsafe fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelLink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink)).ok() + (windows_core::Interface::vtable(self).CancelLink)(windows_core::Interface::as_raw(self), dwlink).ok() } } #[repr(C)] @@ -8986,32 +8986,32 @@ windows_core::imp::define_interface!(IOleUILinkContainerW, IOleUILinkContainerW_ windows_core::imp::interface_hierarchy!(IOleUILinkContainerW, windows_core::IUnknown); impl IOleUILinkContainerW { pub unsafe fn GetNextLink(&self, dwlink: u32) -> u32 { - (windows_core::Interface::vtable(self).GetNextLink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink)) + (windows_core::Interface::vtable(self).GetNextLink)(windows_core::Interface::as_raw(self), dwlink) } pub unsafe fn SetLinkUpdateOptions(&self, dwlink: u32, dwupdateopt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLinkUpdateOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), core::mem::transmute(dwupdateopt)).ok() + (windows_core::Interface::vtable(self).SetLinkUpdateOptions)(windows_core::Interface::as_raw(self), dwlink, dwupdateopt).ok() } pub unsafe fn GetLinkUpdateOptions(&self, dwlink: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLinkUpdateOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLinkUpdateOptions)(windows_core::Interface::as_raw(self), dwlink, &mut result__).map(|| result__) } pub unsafe fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: P1, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), lpszdisplayname.param().abi(), core::mem::transmute(lenfilename), core::mem::transmute(pcheaten), fvalidatesource.into()).ok() + (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, core::mem::transmute(pcheaten), fvalidatesource.into()).ok() } pub unsafe fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: Option<*mut windows_core::PWSTR>, lplenfilename: *mut u32, lplpszfulllinktype: Option<*mut windows_core::PWSTR>, lplpszshortlinktype: Option<*mut windows_core::PWSTR>, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLinkSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), core::mem::transmute(lplpszdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplenfilename), core::mem::transmute(lplpszfulllinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshortlinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfsourceavailable), core::mem::transmute(lpfisselected)).ok() + (windows_core::Interface::vtable(self).GetLinkSource)(windows_core::Interface::as_raw(self), dwlink, core::mem::transmute(lplpszdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplenfilename), core::mem::transmute(lplpszfulllinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshortlinktype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfsourceavailable), core::mem::transmute(lpfisselected)).ok() } pub unsafe fn OpenLinkSource(&self, dwlink: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenLinkSource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink)).ok() + (windows_core::Interface::vtable(self).OpenLinkSource)(windows_core::Interface::as_raw(self), dwlink).ok() } pub unsafe fn UpdateLink(&self, dwlink: u32, ferrormessage: bool, freserved: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), ferrormessage.into(), freserved.into()).ok() + (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.into(), freserved.into()).ok() } pub unsafe fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelLink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink)).ok() + (windows_core::Interface::vtable(self).CancelLink)(windows_core::Interface::as_raw(self), dwlink).ok() } } #[repr(C)] @@ -9104,7 +9104,7 @@ windows_core::imp::interface_hierarchy!(IOleUILinkInfoA, windows_core::IUnknown, impl IOleUILinkInfoA { pub unsafe fn GetLastUpdate(&self, dwlink: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLastUpdate)(windows_core::Interface::as_raw(self), dwlink, &mut result__).map(|| result__) } } #[repr(C)] @@ -9145,7 +9145,7 @@ windows_core::imp::interface_hierarchy!(IOleUILinkInfoW, windows_core::IUnknown, impl IOleUILinkInfoW { pub unsafe fn GetLastUpdate(&self, dwlink: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlink), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLastUpdate)(windows_core::Interface::as_raw(self), dwlink, &mut result__).map(|| result__) } } #[repr(C)] @@ -9179,19 +9179,19 @@ windows_core::imp::define_interface!(IOleUIObjInfoA, IOleUIObjInfoA_Vtbl, 0); windows_core::imp::interface_hierarchy!(IOleUIObjInfoA, windows_core::IUnknown); impl IOleUIObjInfoA { pub unsafe fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: Option<*mut windows_core::PSTR>, lplpsztype: Option<*mut windows_core::PSTR>, lplpszshorttype: Option<*mut windows_core::PSTR>, lplpszlocation: Option<*mut windows_core::PSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(lpdwobjsize), core::mem::transmute(lplpszlabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpsztype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshorttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszlocation.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), dwobject, core::mem::transmute(lpdwobjsize), core::mem::transmute(lplpszlabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpsztype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshorttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszlocation.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe 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: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConvertInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(lpclassid), core::mem::transmute(lpwformat), core::mem::transmute(lpconvertdefaultclassid), core::mem::transmute(lplpclsidexclude), core::mem::transmute(lpcclsidexclude.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConvertInfo)(windows_core::Interface::as_raw(self), dwobject, core::mem::transmute(lpclassid), core::mem::transmute(lpwformat), core::mem::transmute(lpconvertdefaultclassid), core::mem::transmute(lplpclsidexclude), core::mem::transmute(lpcclsidexclude.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertObject(&self, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(clsidnew)).ok() + (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), dwobject, clsidnew).ok() } pub unsafe fn GetViewInfo(&self, dwobject: u32, phmetapict: Option<*const super::super::Foundation::HGLOBAL>, pdvaspect: Option<*const u32>, pncurrentscale: Option<*const i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetViewInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(phmetapict.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdvaspect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pncurrentscale.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetViewInfo)(windows_core::Interface::as_raw(self), dwobject, core::mem::transmute(phmetapict.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdvaspect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pncurrentscale.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetViewInfo(&self, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(hmetapict), core::mem::transmute(dvaspect), core::mem::transmute(ncurrentscale), brelativetoorig.into()).ok() + (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), dwobject, hmetapict, dvaspect, ncurrentscale, brelativetoorig.into()).ok() } } #[repr(C)] @@ -9250,19 +9250,19 @@ windows_core::imp::define_interface!(IOleUIObjInfoW, IOleUIObjInfoW_Vtbl, 0); windows_core::imp::interface_hierarchy!(IOleUIObjInfoW, windows_core::IUnknown); impl IOleUIObjInfoW { pub unsafe fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: Option<*mut windows_core::PWSTR>, lplpsztype: Option<*mut windows_core::PWSTR>, lplpszshorttype: Option<*mut windows_core::PWSTR>, lplpszlocation: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(lpdwobjsize), core::mem::transmute(lplpszlabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpsztype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshorttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszlocation.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetObjectInfo)(windows_core::Interface::as_raw(self), dwobject, core::mem::transmute(lpdwobjsize), core::mem::transmute(lplpszlabel.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpsztype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszshorttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplpszlocation.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe 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: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConvertInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(lpclassid), core::mem::transmute(lpwformat), core::mem::transmute(lpconvertdefaultclassid), core::mem::transmute(lplpclsidexclude), core::mem::transmute(lpcclsidexclude.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConvertInfo)(windows_core::Interface::as_raw(self), dwobject, core::mem::transmute(lpclassid), core::mem::transmute(lpwformat), core::mem::transmute(lpconvertdefaultclassid), core::mem::transmute(lplpclsidexclude), core::mem::transmute(lpcclsidexclude.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ConvertObject(&self, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(clsidnew)).ok() + (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), dwobject, clsidnew).ok() } pub unsafe fn GetViewInfo(&self, dwobject: u32, phmetapict: Option<*const super::super::Foundation::HGLOBAL>, pdvaspect: Option<*const u32>, pncurrentscale: Option<*const i32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetViewInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(phmetapict.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdvaspect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pncurrentscale.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetViewInfo)(windows_core::Interface::as_raw(self), dwobject, core::mem::transmute(phmetapict.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdvaspect.unwrap_or(core::mem::zeroed())), core::mem::transmute(pncurrentscale.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetViewInfo(&self, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwobject), core::mem::transmute(hmetapict), core::mem::transmute(dvaspect), core::mem::transmute(ncurrentscale), brelativetoorig.into()).ok() + (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), dwobject, hmetapict, dvaspect, ncurrentscale, brelativetoorig.into()).ok() } } #[repr(C)] @@ -9674,19 +9674,19 @@ windows_core::imp::interface_hierarchy!(IPerPropertyBrowsing, windows_core::IUnk impl IPerPropertyBrowsing { pub unsafe fn GetDisplayString(&self, dispid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayString)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDisplayString)(windows_core::Interface::as_raw(self), dispid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn MapPropertyToPage(&self, dispid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MapPropertyToPage)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapPropertyToPage)(windows_core::Interface::as_raw(self), dispid, &mut result__).map(|| result__) } pub unsafe fn GetPredefinedStrings(&self, dispid: i32, pcastringsout: *mut CALPOLESTR, pcacookiesout: *mut CADWORD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPredefinedStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), core::mem::transmute(pcastringsout), core::mem::transmute(pcacookiesout)).ok() + (windows_core::Interface::vtable(self).GetPredefinedStrings)(windows_core::Interface::as_raw(self), dispid, core::mem::transmute(pcastringsout), core::mem::transmute(pcacookiesout)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn GetPredefinedValue(&self, dispid: i32, dwcookie: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPredefinedValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), core::mem::transmute(dwcookie), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPredefinedValue)(windows_core::Interface::as_raw(self), dispid, dwcookie, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -9953,10 +9953,10 @@ impl IPicture { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(cxsrc), core::mem::transmute(cysrc), core::mem::transmute(prcwbounds)).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), hdc, x, y, cx, cy, xsrc, ysrc, cxsrc, cysrc, prcwbounds).ok() } pub unsafe fn set_hPal(&self, hpal: OLE_HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_hPal)(windows_core::Interface::as_raw(self), core::mem::transmute(hpal)).ok() + (windows_core::Interface::vtable(self).set_hPal)(windows_core::Interface::as_raw(self), hpal).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CurDC(&self) -> windows_core::Result { @@ -9965,7 +9965,7 @@ impl IPicture { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SelectPicture(&self, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut OLE_HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), core::mem::transmute(hdcin), core::mem::transmute(phdcout), core::mem::transmute(phbmpout)).ok() + (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin, core::mem::transmute(phdcout), core::mem::transmute(phbmpout)).ok() } pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10199,10 +10199,10 @@ impl IPicture2 { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(xsrc), core::mem::transmute(ysrc), core::mem::transmute(cxsrc), core::mem::transmute(cysrc), core::mem::transmute(prcwbounds)).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), hdc, x, y, cx, cy, xsrc, ysrc, cxsrc, cysrc, prcwbounds).ok() } pub unsafe fn set_hPal(&self, hpal: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).set_hPal)(windows_core::Interface::as_raw(self), core::mem::transmute(hpal)).ok() + (windows_core::Interface::vtable(self).set_hPal)(windows_core::Interface::as_raw(self), hpal).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CurDC(&self) -> windows_core::Result { @@ -10211,7 +10211,7 @@ impl IPicture2 { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SelectPicture(&self, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), core::mem::transmute(hdcin), core::mem::transmute(phdcout), core::mem::transmute(phbmpout)).ok() + (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin, core::mem::transmute(phdcout), core::mem::transmute(phbmpout)).ok() } pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10457,10 +10457,10 @@ impl IPointerInactive { (windows_core::Interface::vtable(self).GetActivationPolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OnInactiveMouseMove(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInactiveMouseMove)(windows_core::Interface::as_raw(self), core::mem::transmute(prectbounds), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(grfkeystate)).ok() + (windows_core::Interface::vtable(self).OnInactiveMouseMove)(windows_core::Interface::as_raw(self), prectbounds, x, y, grfkeystate).ok() } pub unsafe fn OnInactiveSetCursor(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInactiveSetCursor)(windows_core::Interface::as_raw(self), core::mem::transmute(prectbounds), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(dwmousemsg), fsetalways.into()).ok() + (windows_core::Interface::vtable(self).OnInactiveSetCursor)(windows_core::Interface::as_raw(self), prectbounds, x, y, dwmousemsg, fsetalways.into()).ok() } } #[repr(C)] @@ -10511,7 +10511,7 @@ windows_core::imp::define_interface!(IPrint, IPrint_Vtbl, 0xb722bcc9_4e68_101b_a windows_core::imp::interface_hierarchy!(IPrint, windows_core::IUnknown); impl IPrint { pub unsafe fn SetInitialPageNum(&self, nfirstpage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialPageNum)(windows_core::Interface::as_raw(self), core::mem::transmute(nfirstpage)).ok() + (windows_core::Interface::vtable(self).SetInitialPageNum)(windows_core::Interface::as_raw(self), nfirstpage).ok() } pub unsafe fn GetPageInfo(&self, pnfirstpage: *mut i32, pcpages: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pnfirstpage), core::mem::transmute(pcpages)).ok() @@ -10521,7 +10521,7 @@ impl IPrint { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Print)(windows_core::Interface::as_raw(self), core::mem::transmute(grfflags), core::mem::transmute(pptd), core::mem::transmute(pppageset), core::mem::transmute(pstgmoptions), pcallback.param().abi(), core::mem::transmute(nfirstpage), core::mem::transmute(pcpagesprinted), core::mem::transmute(pnlastpage)).ok() + (windows_core::Interface::vtable(self).Print)(windows_core::Interface::as_raw(self), grfflags, core::mem::transmute(pptd), core::mem::transmute(pppageset), core::mem::transmute(pstgmoptions), pcallback.param().abi(), nfirstpage, core::mem::transmute(pcpagesprinted), core::mem::transmute(pnlastpage)).ok() } } #[repr(C)] @@ -10572,10 +10572,10 @@ windows_core::imp::define_interface!(IPropertyNotifySink, IPropertyNotifySink_Vt windows_core::imp::interface_hierarchy!(IPropertyNotifySink, windows_core::IUnknown); impl IPropertyNotifySink { pub unsafe fn OnChanged(&self, dispid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid)).ok() + (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), dispid).ok() } pub unsafe fn OnRequestEdit(&self, dispid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnRequestEdit)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid)).ok() + (windows_core::Interface::vtable(self).OnRequestEdit)(windows_core::Interface::as_raw(self), dispid).ok() } } #[repr(C)] @@ -10619,7 +10619,7 @@ impl IPropertyPage { (windows_core::Interface::vtable(self).SetPageSite)(windows_core::Interface::as_raw(self), ppagesite.param().abi()).ok() } pub unsafe fn Activate(&self, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(prect), bmodal.into()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), hwndparent, prect, bmodal.into()).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self)).ok() @@ -10631,10 +10631,10 @@ impl IPropertyPage { (windows_core::Interface::vtable(self).SetObjects)(windows_core::Interface::as_raw(self), ppunk.len().try_into().unwrap(), core::mem::transmute(ppunk.as_ptr())).ok() } pub unsafe fn Show(&self, ncmdshow: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(ncmdshow)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), ncmdshow).ok() } pub unsafe fn Move(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), prect).ok() } pub unsafe fn IsPageDirty(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsPageDirty)(windows_core::Interface::as_raw(self)).ok() @@ -10650,7 +10650,7 @@ impl IPropertyPage { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg).ok() } } #[repr(C)] @@ -10763,7 +10763,7 @@ impl core::ops::Deref for IPropertyPage2 { windows_core::imp::interface_hierarchy!(IPropertyPage2, windows_core::IUnknown, IPropertyPage); impl IPropertyPage2 { pub unsafe fn EditProperty(&self, dispid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EditProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid)).ok() + (windows_core::Interface::vtable(self).EditProperty)(windows_core::Interface::as_raw(self), dispid).ok() } } #[repr(C)] @@ -10806,7 +10806,7 @@ impl IPropertyPageSite { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg).ok() } } #[repr(C)] @@ -10930,7 +10930,7 @@ impl IProtectedModeMenuServices { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadMenuID)(windows_core::Interface::as_raw(self), pszmodulename.param().abi(), core::mem::transmute(wresourceid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LoadMenuID)(windows_core::Interface::as_raw(self), pszmodulename.param().abi(), wresourceid, &mut result__).map(|| result__) } } #[repr(C)] @@ -11054,7 +11054,7 @@ windows_core::imp::interface_hierarchy!(IProvideClassInfo2, windows_core::IUnkno impl IProvideClassInfo2 { pub unsafe fn GetGUID(&self, dwguidkind: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(dwguidkind), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), dwguidkind, &mut result__).map(|| result__) } } #[repr(C)] @@ -11102,7 +11102,7 @@ impl IProvideMultipleClassInfo { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetInfoOfIndex(&self, iti: u32, dwflags: MULTICLASSINFO_FLAGS, ppticoclass: *mut Option, pdwtiflags: *mut u32, pcdispidreserved: *mut u32, piidprimary: *mut windows_core::GUID, piidsource: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInfoOfIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(iti), core::mem::transmute(dwflags), core::mem::transmute(ppticoclass), core::mem::transmute(pdwtiflags), core::mem::transmute(pcdispidreserved), core::mem::transmute(piidprimary), core::mem::transmute(piidsource)).ok() + (windows_core::Interface::vtable(self).GetInfoOfIndex)(windows_core::Interface::as_raw(self), iti, dwflags, core::mem::transmute(ppticoclass), core::mem::transmute(pdwtiflags), core::mem::transmute(pcdispidreserved), core::mem::transmute(piidprimary), core::mem::transmute(piidsource)).ok() } } #[repr(C)] @@ -11184,7 +11184,7 @@ impl IQuickActivate { (windows_core::Interface::vtable(self).QuickActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(pqacontainer), core::mem::transmute(pqacontrol)).ok() } pub unsafe fn SetContentExtent(&self, psizel: *const super::super::Foundation::SIZE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContentExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(psizel)).ok() + (windows_core::Interface::vtable(self).SetContentExtent)(windows_core::Interface::as_raw(self), psizel).ok() } pub unsafe fn GetContentExtent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11248,10 +11248,10 @@ impl IRecordInfo { (windows_core::Interface::vtable(self).RecordInit)(windows_core::Interface::as_raw(self), core::mem::transmute(pvnew)).ok() } pub unsafe fn RecordClear(&self, pvexisting: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecordClear)(windows_core::Interface::as_raw(self), core::mem::transmute(pvexisting)).ok() + (windows_core::Interface::vtable(self).RecordClear)(windows_core::Interface::as_raw(self), pvexisting).ok() } pub unsafe fn RecordCopy(&self, pvexisting: *const core::ffi::c_void, pvnew: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecordCopy)(windows_core::Interface::as_raw(self), core::mem::transmute(pvexisting), core::mem::transmute(pvnew)).ok() + (windows_core::Interface::vtable(self).RecordCopy)(windows_core::Interface::as_raw(self), pvexisting, core::mem::transmute(pvnew)).ok() } pub unsafe fn GetGuid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11276,28 +11276,28 @@ impl IRecordInfo { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetField)(windows_core::Interface::as_raw(self), core::mem::transmute(pvdata), szfieldname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetField)(windows_core::Interface::as_raw(self), pvdata, szfieldname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn GetFieldNoCopy(&self, pvdata: *const core::ffi::c_void, szfieldname: P1, pvarfield: *mut super::Variant::VARIANT, ppvdatacarray: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldNoCopy)(windows_core::Interface::as_raw(self), core::mem::transmute(pvdata), szfieldname.param().abi(), core::mem::transmute(pvarfield), core::mem::transmute(ppvdatacarray)).ok() + (windows_core::Interface::vtable(self).GetFieldNoCopy)(windows_core::Interface::as_raw(self), pvdata, szfieldname.param().abi(), core::mem::transmute(pvarfield), core::mem::transmute(ppvdatacarray)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn PutField(&self, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: P2, pvarfield: *const super::Variant::VARIANT) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutField)(windows_core::Interface::as_raw(self), core::mem::transmute(wflags), core::mem::transmute(pvdata), szfieldname.param().abi(), core::mem::transmute(pvarfield)).ok() + (windows_core::Interface::vtable(self).PutField)(windows_core::Interface::as_raw(self), wflags, core::mem::transmute(pvdata), szfieldname.param().abi(), core::mem::transmute(pvarfield)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn PutFieldNoCopy(&self, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: P2, pvarfield: *const super::Variant::VARIANT) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutFieldNoCopy)(windows_core::Interface::as_raw(self), core::mem::transmute(wflags), core::mem::transmute(pvdata), szfieldname.param().abi(), core::mem::transmute(pvarfield)).ok() + (windows_core::Interface::vtable(self).PutFieldNoCopy)(windows_core::Interface::as_raw(self), wflags, core::mem::transmute(pvdata), szfieldname.param().abi(), core::mem::transmute(pvarfield)).ok() } pub unsafe fn GetFieldNames(&self, pcnames: *mut u32, rgbstrnames: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFieldNames)(windows_core::Interface::as_raw(self), core::mem::transmute(pcnames), core::mem::transmute(rgbstrnames)).ok() @@ -11312,10 +11312,10 @@ impl IRecordInfo { (windows_core::Interface::vtable(self).RecordCreate)(windows_core::Interface::as_raw(self)) } pub unsafe fn RecordCreateCopy(&self, pvsource: *const core::ffi::c_void, ppvdest: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecordCreateCopy)(windows_core::Interface::as_raw(self), core::mem::transmute(pvsource), core::mem::transmute(ppvdest)).ok() + (windows_core::Interface::vtable(self).RecordCreateCopy)(windows_core::Interface::as_raw(self), pvsource, core::mem::transmute(ppvdest)).ok() } pub unsafe fn RecordDestroy(&self, pvrecord: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RecordDestroy)(windows_core::Interface::as_raw(self), core::mem::transmute(pvrecord)).ok() + (windows_core::Interface::vtable(self).RecordDestroy)(windows_core::Interface::as_raw(self), pvrecord).ok() } } #[repr(C)] @@ -11499,10 +11499,10 @@ windows_core::imp::define_interface!(ISimpleFrameSite, ISimpleFrameSite_Vtbl, 0x windows_core::imp::interface_hierarchy!(ISimpleFrameSite, windows_core::IUnknown); impl ISimpleFrameSite { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).PreMessageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wp), core::mem::transmute(lp), core::mem::transmute(plresult), core::mem::transmute(pdwcookie)).ok() + (windows_core::Interface::vtable(self).PreMessageFilter)(windows_core::Interface::as_raw(self), hwnd, msg, wp, lp, core::mem::transmute(plresult), core::mem::transmute(pdwcookie)).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).PostMessageFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wp), core::mem::transmute(lp), core::mem::transmute(plresult), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).PostMessageFilter)(windows_core::Interface::as_raw(self), hwnd, msg, wp, lp, core::mem::transmute(plresult), dwcookie).ok() } } #[repr(C)] @@ -11581,7 +11581,7 @@ impl ITypeChangeEvents { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestTypeChange)(windows_core::Interface::as_raw(self), core::mem::transmute(changekind), ptinfobefore.param().abi(), pstrname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestTypeChange)(windows_core::Interface::as_raw(self), changekind, ptinfobefore.param().abi(), pstrname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AfterTypeChange(&self, changekind: CHANGEKIND, ptinfoafter: P1, pstrname: P2) -> windows_core::Result<()> @@ -11589,7 +11589,7 @@ impl ITypeChangeEvents { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AfterTypeChange)(windows_core::Interface::as_raw(self), core::mem::transmute(changekind), ptinfoafter.param().abi(), pstrname.param().abi()).ok() + (windows_core::Interface::vtable(self).AfterTypeChange)(windows_core::Interface::as_raw(self), changekind, ptinfoafter.param().abi(), pstrname.param().abi()).ok() } } #[repr(C)] @@ -11647,7 +11647,7 @@ impl ITypeFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFromTypeInfo)(windows_core::Interface::as_raw(self), ptypeinfo.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromTypeInfo)(windows_core::Interface::as_raw(self), ptypeinfo.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11688,16 +11688,16 @@ windows_core::imp::interface_hierarchy!(ITypeMarshal, windows_core::IUnknown); impl ITypeMarshal { pub unsafe fn Size(&self, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Size)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtype), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Size)(windows_core::Interface::as_raw(self), pvtype, dwdestcontext, pvdestcontext, &mut result__).map(|| result__) } pub unsafe fn Marshal(&self, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, pbuffer: &mut [u8], pcbwritten: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Marshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtype), core::mem::transmute(dwdestcontext), core::mem::transmute(pvdestcontext), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(pcbwritten)).ok() + (windows_core::Interface::vtable(self).Marshal)(windows_core::Interface::as_raw(self), pvtype, dwdestcontext, pvdestcontext, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(pcbwritten)).ok() } pub unsafe fn Unmarshal(&self, pvtype: *mut core::ffi::c_void, dwflags: u32, pbuffer: &[u8], pcbread: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unmarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtype), core::mem::transmute(dwflags), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(pcbread)).ok() + (windows_core::Interface::vtable(self).Unmarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtype), dwflags, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), core::mem::transmute(pcbread)).ok() } pub unsafe fn Free(&self, pvtype: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), core::mem::transmute(pvtype)).ok() + (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), pvtype).ok() } } #[repr(C)] @@ -11756,7 +11756,7 @@ windows_core::imp::interface_hierarchy!(IVBFormat, windows_core::IUnknown); impl IVBFormat { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn Format(&self, vdata: *mut super::Variant::VARIANT, bstrformat: &windows_core::BSTR, lpbuffer: *mut core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), core::mem::transmute(vdata), core::mem::transmute_copy(bstrformat), core::mem::transmute(lpbuffer), core::mem::transmute(cb), core::mem::transmute(lcid), core::mem::transmute(sfirstdayofweek), core::mem::transmute(sfirstweekofyear), core::mem::transmute(rcb)).ok() + (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), core::mem::transmute(vdata), core::mem::transmute_copy(bstrformat), core::mem::transmute(lpbuffer), cb, lcid, sfirstdayofweek, sfirstweekofyear, core::mem::transmute(rcb)).ok() } } #[repr(C)] @@ -11792,7 +11792,7 @@ impl IVBGetControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumControls(&self, dwolecontf: OLECONTF, dwwhich: ENUM_CONTROLS_WHICH_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumControls)(windows_core::Interface::as_raw(self), dwolecontf.0 as _, core::mem::transmute(dwwhich), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumControls)(windows_core::Interface::as_raw(self), dwolecontf.0 as _, dwwhich, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11833,7 +11833,7 @@ windows_core::imp::interface_hierarchy!(IVariantChangeType, windows_core::IUnkno impl IVariantChangeType { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] pub unsafe fn ChangeType(&self, pvardst: *mut super::Variant::VARIANT, pvarsrc: *const super::Variant::VARIANT, lcid: u32, vtnew: super::Variant::VARENUM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeType)(windows_core::Interface::as_raw(self), core::mem::transmute(pvardst), core::mem::transmute(pvarsrc), core::mem::transmute(lcid), core::mem::transmute(vtnew)).ok() + (windows_core::Interface::vtable(self).ChangeType)(windows_core::Interface::as_raw(self), core::mem::transmute(pvardst), core::mem::transmute(pvarsrc), lcid, vtnew).ok() } } #[repr(C)] @@ -11868,38 +11868,25 @@ windows_core::imp::interface_hierarchy!(IViewObject, windows_core::IUnknown); impl IViewObject { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn Draw(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: Option<*const super::Com::DVTARGETDEVICE>, hdctargetdev: Option, hdcdraw: super::super::Graphics::Gdi::HDC, lprcbounds: Option<*const super::super::Foundation::RECTL>, lprcwbounds: Option<*const super::super::Foundation::RECTL>, pfncontinue: Option, dwcontinue: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Draw)( - windows_core::Interface::as_raw(self), - core::mem::transmute(dwdrawaspect), - core::mem::transmute(lindex), - core::mem::transmute(pvaspect), - core::mem::transmute(ptd.unwrap_or(core::mem::zeroed())), - core::mem::transmute(hdctargetdev.unwrap_or(core::mem::zeroed())), - core::mem::transmute(hdcdraw), - core::mem::transmute(lprcbounds.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lprcwbounds.unwrap_or(core::mem::zeroed())), - core::mem::transmute(pfncontinue.unwrap_or(core::mem::zeroed())), - core::mem::transmute(dwcontinue), - ) - .ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, core::mem::transmute(pvaspect), core::mem::transmute(ptd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdctargetdev.unwrap_or(core::mem::zeroed())), hdcdraw, core::mem::transmute(lprcbounds.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcwbounds.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfncontinue.unwrap_or(core::mem::zeroed())), dwcontinue).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn GetColorSet(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: Option<*const super::Com::DVTARGETDEVICE>, hictargetdev: Option, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColorSet)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(lindex), core::mem::transmute(pvaspect), core::mem::transmute(ptd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hictargetdev.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcolorset)).ok() + (windows_core::Interface::vtable(self).GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, core::mem::transmute(pvaspect), core::mem::transmute(ptd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hictargetdev.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcolorset)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Freeze(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, pdwfreeze: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Freeze)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(lindex), core::mem::transmute(pvaspect), core::mem::transmute(pdwfreeze)).ok() + (windows_core::Interface::vtable(self).Freeze)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, core::mem::transmute(pvaspect), core::mem::transmute(pdwfreeze)).ok() } pub unsafe fn Unfreeze(&self, dwfreeze: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unfreeze)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfreeze)).ok() + (windows_core::Interface::vtable(self).Unfreeze)(windows_core::Interface::as_raw(self), dwfreeze).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAdvise(&self, aspects: super::Com::DVASPECT, advf: u32, padvsink: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdvise)(windows_core::Interface::as_raw(self), core::mem::transmute(aspects), core::mem::transmute(advf), padvsink.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAdvise)(windows_core::Interface::as_raw(self), aspects, advf, padvsink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAdvise(&self, paspects: Option<*mut u32>, padvf: Option<*mut u32>, ppadvsink: *mut Option) -> windows_core::Result<()> { @@ -11995,7 +11982,7 @@ impl IViewObject2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExtent(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(lindex), core::mem::transmute(ptd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtent)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, ptd, &mut result__).map(|| result__) } } #[repr(C)] @@ -12042,7 +12029,7 @@ windows_core::imp::interface_hierarchy!(IViewObjectEx, windows_core::IUnknown, I impl IViewObjectEx { pub unsafe fn GetRect(&self, dwaspect: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRect)(windows_core::Interface::as_raw(self), dwaspect, &mut result__).map(|| result__) } pub unsafe fn GetViewStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12050,16 +12037,16 @@ impl IViewObjectEx { } pub unsafe fn QueryHitPoint(&self, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, ptlloc: super::super::Foundation::POINT, lclosehint: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHitPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(prectbounds), core::mem::transmute(ptlloc), core::mem::transmute(lclosehint), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryHitPoint)(windows_core::Interface::as_raw(self), dwaspect, prectbounds, core::mem::transmute(ptlloc), lclosehint, &mut result__).map(|| result__) } pub unsafe fn QueryHitRect(&self, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, prectloc: *const super::super::Foundation::RECT, lclosehint: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHitRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(prectbounds), core::mem::transmute(prectloc), core::mem::transmute(lclosehint), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryHitRect)(windows_core::Interface::as_raw(self), dwaspect, prectbounds, prectloc, lclosehint, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn GetNaturalExtent(&self, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const DVEXTENTINFO) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNaturalExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(lindex), core::mem::transmute(ptd), core::mem::transmute(hictargetdev), core::mem::transmute(pextentinfo), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNaturalExtent)(windows_core::Interface::as_raw(self), dwaspect, lindex, ptd, hictargetdev, pextentinfo, &mut result__).map(|| result__) } } #[repr(C)] @@ -12154,7 +12141,7 @@ windows_core::imp::define_interface!(IZoomEvents, IZoomEvents_Vtbl, 0x41b68150_9 windows_core::imp::interface_hierarchy!(IZoomEvents, windows_core::IUnknown); impl IZoomEvents { pub unsafe fn OnZoomPercentChanged(&self, ulzoompercent: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnZoomPercentChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(ulzoompercent)).ok() + (windows_core::Interface::vtable(self).OnZoomPercentChanged)(windows_core::Interface::as_raw(self), ulzoompercent).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs index 58d35ebf37..396afbf930 100644 --- a/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs @@ -5,7 +5,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, lmoldpresent : bool, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32); - MSChapSrvChangePassword(servername.param().abi(), username.param().abi(), core::mem::transmute(lmoldpresent), core::mem::transmute(lmoldowfpassword), core::mem::transmute(lmnewowfpassword), core::mem::transmute(ntoldowfpassword), core::mem::transmute(ntnewowfpassword)) + MSChapSrvChangePassword(servername.param().abi(), username.param().abi(), lmoldpresent, lmoldowfpassword, lmnewowfpassword, ntoldowfpassword, ntnewowfpassword) } #[inline] pub unsafe fn MSChapSrvChangePassword2(servername: P0, username: P1, newpasswordencryptedwitholdnt: *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt: *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent: bool, newpasswordencryptedwitholdlm: *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt: *const ENCRYPTED_LM_OWF_PASSWORD) -> u32 @@ -14,7 +14,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword2(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, newpasswordencryptedwitholdnt : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt : *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent : bool, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32); - MSChapSrvChangePassword2(servername.param().abi(), username.param().abi(), core::mem::transmute(newpasswordencryptedwitholdnt), core::mem::transmute(oldntowfpasswordencryptedwithnewnt), core::mem::transmute(lmpresent), core::mem::transmute(newpasswordencryptedwitholdlm), core::mem::transmute(oldlmowfpasswordencryptedwithnewlmornt)) + MSChapSrvChangePassword2(servername.param().abi(), username.param().abi(), newpasswordencryptedwitholdnt, oldntowfpasswordencryptedwithnewnt, lmpresent, newpasswordencryptedwitholdlm, oldlmowfpasswordencryptedwithnewlmornt) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs index 8cd349503a..5d8baf1cdb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn DisableThreadProfiling(performancedatahandle: super::super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn DisableThreadProfiling(performancedatahandle : super::super::super::Foundation:: HANDLE) -> u32); - DisableThreadProfiling(core::mem::transmute(performancedatahandle)) + DisableThreadProfiling(performancedatahandle) } #[inline] pub unsafe fn EnableThreadProfiling(threadhandle: super::super::super::Foundation::HANDLE, flags: u32, hardwarecounters: u64, performancedatahandle: *mut super::super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn EnableThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, flags : u32, hardwarecounters : u64, performancedatahandle : *mut super::super::super::Foundation:: HANDLE) -> u32); - EnableThreadProfiling(core::mem::transmute(threadhandle), core::mem::transmute(flags), core::mem::transmute(hardwarecounters), core::mem::transmute(performancedatahandle)) + EnableThreadProfiling(threadhandle, flags, hardwarecounters, core::mem::transmute(performancedatahandle)) } #[inline] pub unsafe fn QueryThreadProfiling(threadhandle: super::super::super::Foundation::HANDLE, enabled: *mut bool) -> u32 { windows_targets::link!("kernel32.dll" "system" fn QueryThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, enabled : *mut bool) -> u32); - QueryThreadProfiling(core::mem::transmute(threadhandle), core::mem::transmute(enabled)) + QueryThreadProfiling(threadhandle, core::mem::transmute(enabled)) } #[inline] pub unsafe fn ReadThreadProfilingData(performancedatahandle: super::super::super::Foundation::HANDLE, flags: u32, performancedata: *mut PERFORMANCE_DATA) -> u32 { windows_targets::link!("kernel32.dll" "system" fn ReadThreadProfilingData(performancedatahandle : super::super::super::Foundation:: HANDLE, flags : u32, performancedata : *mut PERFORMANCE_DATA) -> u32); - ReadThreadProfilingData(core::mem::transmute(performancedatahandle), core::mem::transmute(flags), core::mem::transmute(performancedata)) + ReadThreadProfilingData(performancedatahandle, flags, core::mem::transmute(performancedata)) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs index e79335337e..49204273ff 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -16,7 +16,7 @@ where P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn InstallPerfDllA(szcomputername : windows_core::PCSTR, lpinifile : windows_core::PCSTR, dwflags : usize) -> u32); - InstallPerfDllA(szcomputername.param().abi(), lpinifile.param().abi(), core::mem::transmute(dwflags)) + InstallPerfDllA(szcomputername.param().abi(), lpinifile.param().abi(), dwflags) } #[inline] pub unsafe fn InstallPerfDllW(szcomputername: P0, lpinifile: P1, dwflags: usize) -> u32 @@ -25,7 +25,7 @@ where P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn InstallPerfDllW(szcomputername : windows_core::PCWSTR, lpinifile : windows_core::PCWSTR, dwflags : usize) -> u32); - InstallPerfDllW(szcomputername.param().abi(), lpinifile.param().abi(), core::mem::transmute(dwflags)) + InstallPerfDllW(szcomputername.param().abi(), lpinifile.param().abi(), dwflags) } #[inline] pub unsafe fn LoadPerfCounterTextStringsA(lpcommandline: P0, bquietmodearg: bool) -> u32 @@ -49,7 +49,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddCounterA(hquery : PDH_HQUERY, szfullcounterpath : windows_core::PCSTR, dwuserdata : usize, phcounter : *mut PDH_HCOUNTER) -> u32); - PdhAddCounterA(core::mem::transmute(hquery), szfullcounterpath.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(phcounter)) + PdhAddCounterA(hquery, szfullcounterpath.param().abi(), dwuserdata, core::mem::transmute(phcounter)) } #[inline] pub unsafe fn PdhAddCounterW(hquery: PDH_HQUERY, szfullcounterpath: P1, dwuserdata: usize, phcounter: *mut PDH_HCOUNTER) -> u32 @@ -57,7 +57,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddCounterW(hquery : PDH_HQUERY, szfullcounterpath : windows_core::PCWSTR, dwuserdata : usize, phcounter : *mut PDH_HCOUNTER) -> u32); - PdhAddCounterW(core::mem::transmute(hquery), szfullcounterpath.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(phcounter)) + PdhAddCounterW(hquery, szfullcounterpath.param().abi(), dwuserdata, core::mem::transmute(phcounter)) } #[inline] pub unsafe fn PdhAddEnglishCounterA(hquery: PDH_HQUERY, szfullcounterpath: P1, dwuserdata: usize, phcounter: *mut PDH_HCOUNTER) -> u32 @@ -65,7 +65,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddEnglishCounterA(hquery : PDH_HQUERY, szfullcounterpath : windows_core::PCSTR, dwuserdata : usize, phcounter : *mut PDH_HCOUNTER) -> u32); - PdhAddEnglishCounterA(core::mem::transmute(hquery), szfullcounterpath.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(phcounter)) + PdhAddEnglishCounterA(hquery, szfullcounterpath.param().abi(), dwuserdata, core::mem::transmute(phcounter)) } #[inline] pub unsafe fn PdhAddEnglishCounterW(hquery: PDH_HQUERY, szfullcounterpath: P1, dwuserdata: usize, phcounter: *mut PDH_HCOUNTER) -> u32 @@ -73,7 +73,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddEnglishCounterW(hquery : PDH_HQUERY, szfullcounterpath : windows_core::PCWSTR, dwuserdata : usize, phcounter : *mut PDH_HCOUNTER) -> u32); - PdhAddEnglishCounterW(core::mem::transmute(hquery), szfullcounterpath.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(phcounter)) + PdhAddEnglishCounterW(hquery, szfullcounterpath.param().abi(), dwuserdata, core::mem::transmute(phcounter)) } #[inline] pub unsafe fn PdhBindInputDataSourceA(phdatasource: *mut PDH_HLOG, logfilenamelist: P1) -> u32 @@ -94,32 +94,32 @@ where #[inline] pub unsafe fn PdhBrowseCountersA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_A) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhBrowseCountersA(pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_A) -> u32); - PdhBrowseCountersA(core::mem::transmute(pbrowsedlgdata)) + PdhBrowseCountersA(pbrowsedlgdata) } #[inline] pub unsafe fn PdhBrowseCountersHA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_HA) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhBrowseCountersHA(pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_HA) -> u32); - PdhBrowseCountersHA(core::mem::transmute(pbrowsedlgdata)) + PdhBrowseCountersHA(pbrowsedlgdata) } #[inline] pub unsafe fn PdhBrowseCountersHW(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_HW) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhBrowseCountersHW(pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_HW) -> u32); - PdhBrowseCountersHW(core::mem::transmute(pbrowsedlgdata)) + PdhBrowseCountersHW(pbrowsedlgdata) } #[inline] pub unsafe fn PdhBrowseCountersW(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_W) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhBrowseCountersW(pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_W) -> u32); - PdhBrowseCountersW(core::mem::transmute(pbrowsedlgdata)) + PdhBrowseCountersW(pbrowsedlgdata) } #[inline] pub unsafe fn PdhCalculateCounterFromRawValue(hcounter: PDH_HCOUNTER, dwformat: PDH_FMT, rawvalue1: *const PDH_RAW_COUNTER, rawvalue2: *const PDH_RAW_COUNTER, fmtvalue: *mut PDH_FMT_COUNTERVALUE) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhCalculateCounterFromRawValue(hcounter : PDH_HCOUNTER, dwformat : PDH_FMT, rawvalue1 : *const PDH_RAW_COUNTER, rawvalue2 : *const PDH_RAW_COUNTER, fmtvalue : *mut PDH_FMT_COUNTERVALUE) -> u32); - PdhCalculateCounterFromRawValue(core::mem::transmute(hcounter), core::mem::transmute(dwformat), core::mem::transmute(rawvalue1), core::mem::transmute(rawvalue2), core::mem::transmute(fmtvalue)) + PdhCalculateCounterFromRawValue(hcounter, dwformat, rawvalue1, rawvalue2, core::mem::transmute(fmtvalue)) } #[inline] pub unsafe fn PdhCloseLog(hlog: PDH_HLOG, dwflags: u32) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhCloseLog(hlog : PDH_HLOG, dwflags : u32) -> u32); - PdhCloseLog(core::mem::transmute(hlog), core::mem::transmute(dwflags)) + PdhCloseLog(hlog, dwflags) } #[inline] pub unsafe fn PdhCloseQuery(hquery: PDH_HQUERY) -> u32 { @@ -134,7 +134,7 @@ pub unsafe fn PdhCollectQueryData(hquery: PDH_HQUERY) -> u32 { #[inline] pub unsafe fn PdhCollectQueryDataEx(hquery: PDH_HQUERY, dwintervaltime: u32, hnewdataevent: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhCollectQueryDataEx(hquery : PDH_HQUERY, dwintervaltime : u32, hnewdataevent : super::super::Foundation:: HANDLE) -> u32); - PdhCollectQueryDataEx(core::mem::transmute(hquery), core::mem::transmute(dwintervaltime), core::mem::transmute(hnewdataevent)) + PdhCollectQueryDataEx(hquery, dwintervaltime, hnewdataevent) } #[inline] pub unsafe fn PdhCollectQueryDataWithTime(hquery: PDH_HQUERY, plltimestamp: *mut i64) -> u32 { @@ -144,7 +144,7 @@ pub unsafe fn PdhCollectQueryDataWithTime(hquery: PDH_HQUERY, plltimestamp: *mut #[inline] pub unsafe fn PdhComputeCounterStatistics(hcounter: PDH_HCOUNTER, dwformat: PDH_FMT, dwfirstentry: u32, dwnumentries: u32, lprawvaluearray: *const PDH_RAW_COUNTER, data: *mut PDH_STATISTICS) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhComputeCounterStatistics(hcounter : PDH_HCOUNTER, dwformat : PDH_FMT, dwfirstentry : u32, dwnumentries : u32, lprawvaluearray : *const PDH_RAW_COUNTER, data : *mut PDH_STATISTICS) -> u32); - PdhComputeCounterStatistics(core::mem::transmute(hcounter), core::mem::transmute(dwformat), core::mem::transmute(dwfirstentry), core::mem::transmute(dwnumentries), core::mem::transmute(lprawvaluearray), core::mem::transmute(data)) + PdhComputeCounterStatistics(hcounter, dwformat, dwfirstentry, dwnumentries, lprawvaluearray, core::mem::transmute(data)) } #[inline] pub unsafe fn PdhConnectMachineA(szmachinename: P0) -> u32 @@ -228,7 +228,7 @@ where P2: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectItemsA(szdatasource : windows_core::PCSTR, szmachinename : windows_core::PCSTR, szobjectname : windows_core::PCSTR, mszcounterlist : windows_core::PSTR, pcchcounterlistlength : *mut u32, mszinstancelist : windows_core::PSTR, pcchinstancelistlength : *mut u32, dwdetaillevel : PERF_DETAIL, dwflags : u32) -> u32); - PdhEnumObjectItemsA(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), core::mem::transmute(dwdetaillevel), core::mem::transmute(dwflags)) + PdhEnumObjectItemsA(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectItemsHA(hdatasource: Option, szmachinename: P1, szobjectname: P2, mszcounterlist: Option, pcchcounterlistlength: *mut u32, mszinstancelist: Option, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 @@ -237,7 +237,7 @@ where P2: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectItemsHA(hdatasource : PDH_HLOG, szmachinename : windows_core::PCSTR, szobjectname : windows_core::PCSTR, mszcounterlist : windows_core::PSTR, pcchcounterlistlength : *mut u32, mszinstancelist : windows_core::PSTR, pcchinstancelistlength : *mut u32, dwdetaillevel : PERF_DETAIL, dwflags : u32) -> u32); - PdhEnumObjectItemsHA(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), core::mem::transmute(dwdetaillevel), core::mem::transmute(dwflags)) + PdhEnumObjectItemsHA(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectItemsHW(hdatasource: Option, szmachinename: P1, szobjectname: P2, mszcounterlist: Option, pcchcounterlistlength: *mut u32, mszinstancelist: Option, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 @@ -246,7 +246,7 @@ where P2: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectItemsHW(hdatasource : PDH_HLOG, szmachinename : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, mszcounterlist : windows_core::PWSTR, pcchcounterlistlength : *mut u32, mszinstancelist : windows_core::PWSTR, pcchinstancelistlength : *mut u32, dwdetaillevel : PERF_DETAIL, dwflags : u32) -> u32); - PdhEnumObjectItemsHW(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), core::mem::transmute(dwdetaillevel), core::mem::transmute(dwflags)) + PdhEnumObjectItemsHW(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectItemsW(szdatasource: P0, szmachinename: P1, szobjectname: P2, mszcounterlist: Option, pcchcounterlistlength: *mut u32, mszinstancelist: Option, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 @@ -256,7 +256,7 @@ where P2: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectItemsW(szdatasource : windows_core::PCWSTR, szmachinename : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, mszcounterlist : windows_core::PWSTR, pcchcounterlistlength : *mut u32, mszinstancelist : windows_core::PWSTR, pcchinstancelistlength : *mut u32, dwdetaillevel : PERF_DETAIL, dwflags : u32) -> u32); - PdhEnumObjectItemsW(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), core::mem::transmute(dwdetaillevel), core::mem::transmute(dwflags)) + PdhEnumObjectItemsW(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcounterlistlength), core::mem::transmute(mszinstancelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchinstancelistlength), dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectsA(szdatasource: P0, szmachinename: P1, mszobjectlist: Option, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: bool) -> u32 @@ -265,7 +265,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsA(szdatasource : windows_core::PCSTR, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); - PdhEnumObjectsA(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), core::mem::transmute(dwdetaillevel), brefresh.into()) + PdhEnumObjectsA(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), dwdetaillevel, brefresh.into()) } #[inline] pub unsafe fn PdhEnumObjectsHA(hdatasource: Option, szmachinename: P1, mszobjectlist: Option, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: bool) -> u32 @@ -273,7 +273,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHA(hdatasource : PDH_HLOG, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); - PdhEnumObjectsHA(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), core::mem::transmute(dwdetaillevel), brefresh.into()) + PdhEnumObjectsHA(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), dwdetaillevel, brefresh.into()) } #[inline] pub unsafe fn PdhEnumObjectsHW(hdatasource: Option, szmachinename: P1, mszobjectlist: Option, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: bool) -> u32 @@ -281,7 +281,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHW(hdatasource : PDH_HLOG, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); - PdhEnumObjectsHW(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), core::mem::transmute(dwdetaillevel), brefresh.into()) + PdhEnumObjectsHW(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), dwdetaillevel, brefresh.into()) } #[inline] pub unsafe fn PdhEnumObjectsW(szdatasource: P0, szmachinename: P1, mszobjectlist: Option, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: bool) -> u32 @@ -290,7 +290,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsW(szdatasource : windows_core::PCWSTR, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); - PdhEnumObjectsW(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), core::mem::transmute(dwdetaillevel), brefresh.into()) + PdhEnumObjectsW(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(mszobjectlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), dwdetaillevel, brefresh.into()) } #[inline] pub unsafe fn PdhExpandCounterPathA(szwildcardpath: P0, mszexpandedpathlist: Option, pcchpathlistlength: *mut u32) -> u32 @@ -315,7 +315,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathA(szdatasource : windows_core::PCSTR, szwildcardpath : windows_core::PCSTR, mszexpandedpathlist : windows_core::PSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); - PdhExpandWildCardPathA(szdatasource.param().abi(), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), core::mem::transmute(dwflags)) + PdhExpandWildCardPathA(szdatasource.param().abi(), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), dwflags) } #[inline] pub unsafe fn PdhExpandWildCardPathHA(hdatasource: Option, szwildcardpath: P1, mszexpandedpathlist: Option, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 @@ -323,7 +323,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathHA(hdatasource : PDH_HLOG, szwildcardpath : windows_core::PCSTR, mszexpandedpathlist : windows_core::PSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); - PdhExpandWildCardPathHA(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), core::mem::transmute(dwflags)) + PdhExpandWildCardPathHA(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), dwflags) } #[inline] pub unsafe fn PdhExpandWildCardPathHW(hdatasource: Option, szwildcardpath: P1, mszexpandedpathlist: Option, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 @@ -331,7 +331,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathHW(hdatasource : PDH_HLOG, szwildcardpath : windows_core::PCWSTR, mszexpandedpathlist : windows_core::PWSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); - PdhExpandWildCardPathHW(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), core::mem::transmute(dwflags)) + PdhExpandWildCardPathHW(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), dwflags) } #[inline] pub unsafe fn PdhExpandWildCardPathW(szdatasource: P0, szwildcardpath: P1, mszexpandedpathlist: Option, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 @@ -340,27 +340,27 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathW(szdatasource : windows_core::PCWSTR, szwildcardpath : windows_core::PCWSTR, mszexpandedpathlist : windows_core::PWSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); - PdhExpandWildCardPathW(szdatasource.param().abi(), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), core::mem::transmute(dwflags)) + PdhExpandWildCardPathW(szdatasource.param().abi(), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchpathlistlength), dwflags) } #[inline] pub unsafe fn PdhFormatFromRawValue(dwcountertype: u32, dwformat: PDH_FMT, ptimebase: Option<*const i64>, prawvalue1: *const PDH_RAW_COUNTER, prawvalue2: *const PDH_RAW_COUNTER, pfmtvalue: *mut PDH_FMT_COUNTERVALUE) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhFormatFromRawValue(dwcountertype : u32, dwformat : PDH_FMT, ptimebase : *const i64, prawvalue1 : *const PDH_RAW_COUNTER, prawvalue2 : *const PDH_RAW_COUNTER, pfmtvalue : *mut PDH_FMT_COUNTERVALUE) -> u32); - PdhFormatFromRawValue(core::mem::transmute(dwcountertype), core::mem::transmute(dwformat), core::mem::transmute(ptimebase.unwrap_or(core::mem::zeroed())), core::mem::transmute(prawvalue1), core::mem::transmute(prawvalue2), core::mem::transmute(pfmtvalue)) + PdhFormatFromRawValue(dwcountertype, dwformat, core::mem::transmute(ptimebase.unwrap_or(core::mem::zeroed())), prawvalue1, prawvalue2, core::mem::transmute(pfmtvalue)) } #[inline] pub unsafe fn PdhGetCounterInfoA(hcounter: PDH_HCOUNTER, bretrieveexplaintext: bool, pdwbuffersize: *mut u32, lpbuffer: Option<*mut PDH_COUNTER_INFO_A>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoA(hcounter : PDH_HCOUNTER, bretrieveexplaintext : bool, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_A) -> u32); - PdhGetCounterInfoA(core::mem::transmute(hcounter), core::mem::transmute(bretrieveexplaintext), core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) + PdhGetCounterInfoA(hcounter, bretrieveexplaintext, core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetCounterInfoW(hcounter: PDH_HCOUNTER, bretrieveexplaintext: bool, pdwbuffersize: *mut u32, lpbuffer: Option<*mut PDH_COUNTER_INFO_W>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoW(hcounter : PDH_HCOUNTER, bretrieveexplaintext : bool, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_W) -> u32); - PdhGetCounterInfoW(core::mem::transmute(hcounter), core::mem::transmute(bretrieveexplaintext), core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) + PdhGetCounterInfoW(hcounter, bretrieveexplaintext, core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetCounterTimeBase(hcounter: PDH_HCOUNTER, ptimebase: *mut i64) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetCounterTimeBase(hcounter : PDH_HCOUNTER, ptimebase : *mut i64) -> u32); - PdhGetCounterTimeBase(core::mem::transmute(hcounter), core::mem::transmute(ptimebase)) + PdhGetCounterTimeBase(hcounter, core::mem::transmute(ptimebase)) } #[inline] pub unsafe fn PdhGetDataSourceTimeRangeA(szdatasource: P0, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 @@ -463,47 +463,47 @@ pub unsafe fn PdhGetDllVersion(lpdwversion: Option<*mut PDH_DLL_VERSION>) -> u32 #[inline] pub unsafe fn PdhGetFormattedCounterArrayA(hcounter: PDH_HCOUNTER, dwformat: PDH_FMT, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: Option<*mut PDH_FMT_COUNTERVALUE_ITEM_A>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetFormattedCounterArrayA(hcounter : PDH_HCOUNTER, dwformat : PDH_FMT, lpdwbuffersize : *mut u32, lpdwitemcount : *mut u32, itembuffer : *mut PDH_FMT_COUNTERVALUE_ITEM_A) -> u32); - PdhGetFormattedCounterArrayA(core::mem::transmute(hcounter), core::mem::transmute(dwformat), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) + PdhGetFormattedCounterArrayA(hcounter, dwformat, core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetFormattedCounterArrayW(hcounter: PDH_HCOUNTER, dwformat: PDH_FMT, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: Option<*mut PDH_FMT_COUNTERVALUE_ITEM_W>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetFormattedCounterArrayW(hcounter : PDH_HCOUNTER, dwformat : PDH_FMT, lpdwbuffersize : *mut u32, lpdwitemcount : *mut u32, itembuffer : *mut PDH_FMT_COUNTERVALUE_ITEM_W) -> u32); - PdhGetFormattedCounterArrayW(core::mem::transmute(hcounter), core::mem::transmute(dwformat), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) + PdhGetFormattedCounterArrayW(hcounter, dwformat, core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetFormattedCounterValue(hcounter: PDH_HCOUNTER, dwformat: PDH_FMT, lpdwtype: Option<*mut u32>, pvalue: *mut PDH_FMT_COUNTERVALUE) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetFormattedCounterValue(hcounter : PDH_HCOUNTER, dwformat : PDH_FMT, lpdwtype : *mut u32, pvalue : *mut PDH_FMT_COUNTERVALUE) -> u32); - PdhGetFormattedCounterValue(core::mem::transmute(hcounter), core::mem::transmute(dwformat), core::mem::transmute(lpdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue)) + PdhGetFormattedCounterValue(hcounter, dwformat, core::mem::transmute(lpdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue)) } #[inline] pub unsafe fn PdhGetLogFileSize(hlog: PDH_HLOG, llsize: *mut i64) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetLogFileSize(hlog : PDH_HLOG, llsize : *mut i64) -> u32); - PdhGetLogFileSize(core::mem::transmute(hlog), core::mem::transmute(llsize)) + PdhGetLogFileSize(hlog, core::mem::transmute(llsize)) } #[inline] pub unsafe fn PdhGetLogSetGUID(hlog: PDH_HLOG, pguid: Option<*mut windows_core::GUID>, prunid: Option<*mut i32>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetLogSetGUID(hlog : PDH_HLOG, pguid : *mut windows_core::GUID, prunid : *mut i32) -> u32); - PdhGetLogSetGUID(core::mem::transmute(hlog), core::mem::transmute(pguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(prunid.unwrap_or(core::mem::zeroed()))) + PdhGetLogSetGUID(hlog, core::mem::transmute(pguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(prunid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetRawCounterArrayA(hcounter: PDH_HCOUNTER, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: Option<*mut PDH_RAW_COUNTER_ITEM_A>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetRawCounterArrayA(hcounter : PDH_HCOUNTER, lpdwbuffersize : *mut u32, lpdwitemcount : *mut u32, itembuffer : *mut PDH_RAW_COUNTER_ITEM_A) -> u32); - PdhGetRawCounterArrayA(core::mem::transmute(hcounter), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) + PdhGetRawCounterArrayA(hcounter, core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetRawCounterArrayW(hcounter: PDH_HCOUNTER, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: Option<*mut PDH_RAW_COUNTER_ITEM_W>) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetRawCounterArrayW(hcounter : PDH_HCOUNTER, lpdwbuffersize : *mut u32, lpdwitemcount : *mut u32, itembuffer : *mut PDH_RAW_COUNTER_ITEM_W) -> u32); - PdhGetRawCounterArrayW(core::mem::transmute(hcounter), core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) + PdhGetRawCounterArrayW(hcounter, core::mem::transmute(lpdwbuffersize), core::mem::transmute(lpdwitemcount), core::mem::transmute(itembuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetRawCounterValue(hcounter: PDH_HCOUNTER, lpdwtype: Option<*mut u32>, pvalue: *mut PDH_RAW_COUNTER) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhGetRawCounterValue(hcounter : PDH_HCOUNTER, lpdwtype : *mut u32, pvalue : *mut PDH_RAW_COUNTER) -> u32); - PdhGetRawCounterValue(core::mem::transmute(hcounter), core::mem::transmute(lpdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue)) + PdhGetRawCounterValue(hcounter, core::mem::transmute(lpdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvalue)) } #[inline] pub unsafe fn PdhIsRealTimeQuery(hquery: PDH_HQUERY) -> super::super::Foundation::BOOL { windows_targets::link!("pdh.dll" "system" fn PdhIsRealTimeQuery(hquery : PDH_HQUERY) -> super::super::Foundation:: BOOL); - PdhIsRealTimeQuery(core::mem::transmute(hquery)) + PdhIsRealTimeQuery(hquery) } #[inline] pub unsafe fn PdhLookupPerfIndexByNameA(szmachinename: P0, sznamebuffer: P1, pdwindex: *mut u32) -> u32 @@ -529,7 +529,7 @@ where P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhLookupPerfNameByIndexA(szmachinename : windows_core::PCSTR, dwnameindex : u32, sznamebuffer : windows_core::PSTR, pcchnamebuffersize : *mut u32) -> u32); - PdhLookupPerfNameByIndexA(szmachinename.param().abi(), core::mem::transmute(dwnameindex), core::mem::transmute(sznamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchnamebuffersize)) + PdhLookupPerfNameByIndexA(szmachinename.param().abi(), dwnameindex, core::mem::transmute(sznamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchnamebuffersize)) } #[inline] pub unsafe fn PdhLookupPerfNameByIndexW(szmachinename: P0, dwnameindex: u32, sznamebuffer: Option, pcchnamebuffersize: *mut u32) -> u32 @@ -537,17 +537,17 @@ where P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhLookupPerfNameByIndexW(szmachinename : windows_core::PCWSTR, dwnameindex : u32, sznamebuffer : windows_core::PWSTR, pcchnamebuffersize : *mut u32) -> u32); - PdhLookupPerfNameByIndexW(szmachinename.param().abi(), core::mem::transmute(dwnameindex), core::mem::transmute(sznamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchnamebuffersize)) + PdhLookupPerfNameByIndexW(szmachinename.param().abi(), dwnameindex, core::mem::transmute(sznamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchnamebuffersize)) } #[inline] pub unsafe fn PdhMakeCounterPathA(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_A, szfullpathbuffer: Option, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhMakeCounterPathA(pcounterpathelements : *const PDH_COUNTER_PATH_ELEMENTS_A, szfullpathbuffer : windows_core::PSTR, pcchbuffersize : *mut u32, dwflags : PDH_PATH_FLAGS) -> u32); - PdhMakeCounterPathA(core::mem::transmute(pcounterpathelements), core::mem::transmute(szfullpathbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), core::mem::transmute(dwflags)) + PdhMakeCounterPathA(pcounterpathelements, core::mem::transmute(szfullpathbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), dwflags) } #[inline] pub unsafe fn PdhMakeCounterPathW(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_W, szfullpathbuffer: Option, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhMakeCounterPathW(pcounterpathelements : *const PDH_COUNTER_PATH_ELEMENTS_W, szfullpathbuffer : windows_core::PWSTR, pcchbuffersize : *mut u32, dwflags : PDH_PATH_FLAGS) -> u32); - PdhMakeCounterPathW(core::mem::transmute(pcounterpathelements), core::mem::transmute(szfullpathbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), core::mem::transmute(dwflags)) + PdhMakeCounterPathW(pcounterpathelements, core::mem::transmute(szfullpathbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuffersize), dwflags) } #[inline] pub unsafe fn PdhOpenLogA(szlogfilename: P0, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: Option, dwmaxsize: u32, szusercaption: P5, phlog: *mut PDH_HLOG) -> u32 @@ -556,7 +556,7 @@ where P5: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenLogA(szlogfilename : windows_core::PCSTR, dwaccessflags : PDH_LOG, lpdwlogtype : *mut PDH_LOG_TYPE, hquery : PDH_HQUERY, dwmaxsize : u32, szusercaption : windows_core::PCSTR, phlog : *mut PDH_HLOG) -> u32); - PdhOpenLogA(szlogfilename.param().abi(), core::mem::transmute(dwaccessflags), core::mem::transmute(lpdwlogtype), core::mem::transmute(hquery.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmaxsize), szusercaption.param().abi(), core::mem::transmute(phlog)) + PdhOpenLogA(szlogfilename.param().abi(), dwaccessflags, core::mem::transmute(lpdwlogtype), core::mem::transmute(hquery.unwrap_or(core::mem::zeroed())), dwmaxsize, szusercaption.param().abi(), core::mem::transmute(phlog)) } #[inline] pub unsafe fn PdhOpenLogW(szlogfilename: P0, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: Option, dwmaxsize: u32, szusercaption: P5, phlog: *mut PDH_HLOG) -> u32 @@ -565,7 +565,7 @@ where P5: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenLogW(szlogfilename : windows_core::PCWSTR, dwaccessflags : PDH_LOG, lpdwlogtype : *mut PDH_LOG_TYPE, hquery : PDH_HQUERY, dwmaxsize : u32, szusercaption : windows_core::PCWSTR, phlog : *mut PDH_HLOG) -> u32); - PdhOpenLogW(szlogfilename.param().abi(), core::mem::transmute(dwaccessflags), core::mem::transmute(lpdwlogtype), core::mem::transmute(hquery.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmaxsize), szusercaption.param().abi(), core::mem::transmute(phlog)) + PdhOpenLogW(szlogfilename.param().abi(), dwaccessflags, core::mem::transmute(lpdwlogtype), core::mem::transmute(hquery.unwrap_or(core::mem::zeroed())), dwmaxsize, szusercaption.param().abi(), core::mem::transmute(phlog)) } #[inline] pub unsafe fn PdhOpenQueryA(szdatasource: P0, dwuserdata: usize, phquery: *mut PDH_HQUERY) -> u32 @@ -573,12 +573,12 @@ where P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenQueryA(szdatasource : windows_core::PCSTR, dwuserdata : usize, phquery : *mut PDH_HQUERY) -> u32); - PdhOpenQueryA(szdatasource.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(phquery)) + PdhOpenQueryA(szdatasource.param().abi(), dwuserdata, core::mem::transmute(phquery)) } #[inline] pub unsafe fn PdhOpenQueryH(hdatasource: Option, dwuserdata: usize, phquery: *mut PDH_HQUERY) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhOpenQueryH(hdatasource : PDH_HLOG, dwuserdata : usize, phquery : *mut PDH_HQUERY) -> u32); - PdhOpenQueryH(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwuserdata), core::mem::transmute(phquery)) + PdhOpenQueryH(core::mem::transmute(hdatasource.unwrap_or(core::mem::zeroed())), dwuserdata, core::mem::transmute(phquery)) } #[inline] pub unsafe fn PdhOpenQueryW(szdatasource: P0, dwuserdata: usize, phquery: *mut PDH_HQUERY) -> u32 @@ -586,7 +586,7 @@ where P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenQueryW(szdatasource : windows_core::PCWSTR, dwuserdata : usize, phquery : *mut PDH_HQUERY) -> u32); - PdhOpenQueryW(szdatasource.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(phquery)) + PdhOpenQueryW(szdatasource.param().abi(), dwuserdata, core::mem::transmute(phquery)) } #[inline] pub unsafe fn PdhParseCounterPathA(szfullpathbuffer: P0, pcounterpathelements: Option<*mut PDH_COUNTER_PATH_ELEMENTS_A>, pdwbuffersize: *mut u32, dwflags: u32) -> u32 @@ -594,7 +594,7 @@ where P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhParseCounterPathA(szfullpathbuffer : windows_core::PCSTR, pcounterpathelements : *mut PDH_COUNTER_PATH_ELEMENTS_A, pdwbuffersize : *mut u32, dwflags : u32) -> u32); - PdhParseCounterPathA(szfullpathbuffer.param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbuffersize), core::mem::transmute(dwflags)) + PdhParseCounterPathA(szfullpathbuffer.param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbuffersize), dwflags) } #[inline] pub unsafe fn PdhParseCounterPathW(szfullpathbuffer: P0, pcounterpathelements: Option<*mut PDH_COUNTER_PATH_ELEMENTS_W>, pdwbuffersize: *mut u32, dwflags: u32) -> u32 @@ -602,7 +602,7 @@ where P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhParseCounterPathW(szfullpathbuffer : windows_core::PCWSTR, pcounterpathelements : *mut PDH_COUNTER_PATH_ELEMENTS_W, pdwbuffersize : *mut u32, dwflags : u32) -> u32); - PdhParseCounterPathW(szfullpathbuffer.param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbuffersize), core::mem::transmute(dwflags)) + PdhParseCounterPathW(szfullpathbuffer.param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbuffersize), dwflags) } #[inline] pub unsafe fn PdhParseInstanceNameA(szinstancestring: P0, szinstancename: Option, pcchinstancenamelength: *mut u32, szparentname: Option, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> u32 @@ -623,42 +623,42 @@ where #[inline] pub unsafe fn PdhReadRawLogRecord(hlog: PDH_HLOG, ftrecord: super::super::Foundation::FILETIME, prawlogrecord: Option<*mut PDH_RAW_LOG_RECORD>, pdwbufferlength: *mut u32) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhReadRawLogRecord(hlog : PDH_HLOG, ftrecord : super::super::Foundation:: FILETIME, prawlogrecord : *mut PDH_RAW_LOG_RECORD, pdwbufferlength : *mut u32) -> u32); - PdhReadRawLogRecord(core::mem::transmute(hlog), core::mem::transmute(ftrecord), core::mem::transmute(prawlogrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbufferlength)) + PdhReadRawLogRecord(hlog, core::mem::transmute(ftrecord), core::mem::transmute(prawlogrecord.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbufferlength)) } #[inline] pub unsafe fn PdhRemoveCounter(hcounter: PDH_HCOUNTER) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhRemoveCounter(hcounter : PDH_HCOUNTER) -> u32); - PdhRemoveCounter(core::mem::transmute(hcounter)) + PdhRemoveCounter(hcounter) } #[inline] pub unsafe fn PdhSelectDataSourceA(hwndowner: super::super::Foundation::HWND, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: windows_core::PSTR, pcchbufferlength: *mut u32) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhSelectDataSourceA(hwndowner : super::super::Foundation:: HWND, dwflags : PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource : windows_core::PSTR, pcchbufferlength : *mut u32) -> u32); - PdhSelectDataSourceA(core::mem::transmute(hwndowner), core::mem::transmute(dwflags), core::mem::transmute(szdatasource), core::mem::transmute(pcchbufferlength)) + PdhSelectDataSourceA(hwndowner, dwflags, core::mem::transmute(szdatasource), core::mem::transmute(pcchbufferlength)) } #[inline] pub unsafe fn PdhSelectDataSourceW(hwndowner: super::super::Foundation::HWND, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: windows_core::PWSTR, pcchbufferlength: *mut u32) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhSelectDataSourceW(hwndowner : super::super::Foundation:: HWND, dwflags : PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource : windows_core::PWSTR, pcchbufferlength : *mut u32) -> u32); - PdhSelectDataSourceW(core::mem::transmute(hwndowner), core::mem::transmute(dwflags), core::mem::transmute(szdatasource), core::mem::transmute(pcchbufferlength)) + PdhSelectDataSourceW(hwndowner, dwflags, core::mem::transmute(szdatasource), core::mem::transmute(pcchbufferlength)) } #[inline] pub unsafe fn PdhSetCounterScaleFactor(hcounter: PDH_HCOUNTER, lfactor: i32) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhSetCounterScaleFactor(hcounter : PDH_HCOUNTER, lfactor : i32) -> u32); - PdhSetCounterScaleFactor(core::mem::transmute(hcounter), core::mem::transmute(lfactor)) + PdhSetCounterScaleFactor(core::mem::transmute(hcounter), lfactor) } #[inline] pub unsafe fn PdhSetDefaultRealTimeDataSource(dwdatasourceid: REAL_TIME_DATA_SOURCE_ID_FLAGS) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhSetDefaultRealTimeDataSource(dwdatasourceid : REAL_TIME_DATA_SOURCE_ID_FLAGS) -> u32); - PdhSetDefaultRealTimeDataSource(core::mem::transmute(dwdatasourceid)) + PdhSetDefaultRealTimeDataSource(dwdatasourceid) } #[inline] pub unsafe fn PdhSetLogSetRunID(hlog: PDH_HLOG, runid: i32) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhSetLogSetRunID(hlog : PDH_HLOG, runid : i32) -> u32); - PdhSetLogSetRunID(core::mem::transmute(hlog), core::mem::transmute(runid)) + PdhSetLogSetRunID(core::mem::transmute(hlog), runid) } #[inline] pub unsafe fn PdhSetQueryTimeRange(hquery: PDH_HQUERY, pinfo: *const PDH_TIME_INFO) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhSetQueryTimeRange(hquery : PDH_HQUERY, pinfo : *const PDH_TIME_INFO) -> u32); - PdhSetQueryTimeRange(core::mem::transmute(hquery), core::mem::transmute(pinfo)) + PdhSetQueryTimeRange(hquery, pinfo) } #[inline] pub unsafe fn PdhUpdateLogA(hlog: PDH_HLOG, szuserstring: P1) -> u32 @@ -666,12 +666,12 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhUpdateLogA(hlog : PDH_HLOG, szuserstring : windows_core::PCSTR) -> u32); - PdhUpdateLogA(core::mem::transmute(hlog), szuserstring.param().abi()) + PdhUpdateLogA(hlog, szuserstring.param().abi()) } #[inline] pub unsafe fn PdhUpdateLogFileCatalog(hlog: PDH_HLOG) -> u32 { windows_targets::link!("pdh.dll" "system" fn PdhUpdateLogFileCatalog(hlog : PDH_HLOG) -> u32); - PdhUpdateLogFileCatalog(core::mem::transmute(hlog)) + PdhUpdateLogFileCatalog(hlog) } #[inline] pub unsafe fn PdhUpdateLogW(hlog: PDH_HLOG, szuserstring: P1) -> u32 @@ -679,7 +679,7 @@ where P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhUpdateLogW(hlog : PDH_HLOG, szuserstring : windows_core::PCWSTR) -> u32); - PdhUpdateLogW(core::mem::transmute(hlog), szuserstring.param().abi()) + PdhUpdateLogW(hlog, szuserstring.param().abi()) } #[inline] pub unsafe fn PdhValidatePathA(szfullpathbuffer: P0) -> u32 @@ -732,12 +732,12 @@ where #[inline] pub unsafe fn PerfAddCounters(hquery: super::super::Foundation::HANDLE, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfAddCounters(hquery : super::super::Foundation:: HANDLE, pcounters : *mut PERF_COUNTER_IDENTIFIER, cbcounters : u32) -> u32); - PerfAddCounters(core::mem::transmute(hquery), core::mem::transmute(pcounters), core::mem::transmute(cbcounters)) + PerfAddCounters(hquery, core::mem::transmute(pcounters), cbcounters) } #[inline] pub unsafe fn PerfCloseQueryHandle(hquery: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfCloseQueryHandle(hquery : super::super::Foundation:: HANDLE) -> u32); - PerfCloseQueryHandle(core::mem::transmute(hquery)) + PerfCloseQueryHandle(hquery) } #[inline] pub unsafe fn PerfCreateInstance(providerhandle: super::super::Foundation::HANDLE, countersetguid: *const windows_core::GUID, name: P2, id: u32) -> *mut PERF_COUNTERSET_INSTANCE @@ -745,27 +745,27 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfCreateInstance(providerhandle : super::super::Foundation:: HANDLE, countersetguid : *const windows_core::GUID, name : windows_core::PCWSTR, id : u32) -> *mut PERF_COUNTERSET_INSTANCE); - PerfCreateInstance(core::mem::transmute(providerhandle), core::mem::transmute(countersetguid), name.param().abi(), core::mem::transmute(id)) + PerfCreateInstance(providerhandle, countersetguid, name.param().abi(), id) } #[inline] pub unsafe fn PerfDecrementULongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfDecrementULongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u32) -> u32); - PerfDecrementULongCounterValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(value)) + PerfDecrementULongCounterValue(provider, core::mem::transmute(instance), counterid, value) } #[inline] pub unsafe fn PerfDecrementULongLongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfDecrementULongLongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u64) -> u32); - PerfDecrementULongLongCounterValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(value)) + PerfDecrementULongLongCounterValue(provider, core::mem::transmute(instance), counterid, value) } #[inline] pub unsafe fn PerfDeleteCounters(hquery: super::super::Foundation::HANDLE, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfDeleteCounters(hquery : super::super::Foundation:: HANDLE, pcounters : *mut PERF_COUNTER_IDENTIFIER, cbcounters : u32) -> u32); - PerfDeleteCounters(core::mem::transmute(hquery), core::mem::transmute(pcounters), core::mem::transmute(cbcounters)) + PerfDeleteCounters(hquery, core::mem::transmute(pcounters), cbcounters) } #[inline] pub unsafe fn PerfDeleteInstance(provider: super::super::Foundation::HANDLE, instanceblock: *const PERF_COUNTERSET_INSTANCE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfDeleteInstance(provider : super::super::Foundation:: HANDLE, instanceblock : *const PERF_COUNTERSET_INSTANCE) -> u32); - PerfDeleteInstance(core::mem::transmute(provider), core::mem::transmute(instanceblock)) + PerfDeleteInstance(provider, instanceblock) } #[inline] pub unsafe fn PerfEnumerateCounterSet(szmachine: P0, pcountersetids: Option<&mut [windows_core::GUID]>, pccountersetidsactual: *mut u32) -> u32 @@ -781,17 +781,17 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfEnumerateCounterSetInstances(szmachine : windows_core::PCWSTR, pcountersetid : *const windows_core::GUID, pinstances : *mut PERF_INSTANCE_HEADER, cbinstances : u32, pcbinstancesactual : *mut u32) -> u32); - PerfEnumerateCounterSetInstances(szmachine.param().abi(), core::mem::transmute(pcountersetid), core::mem::transmute(pinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinstances), core::mem::transmute(pcbinstancesactual)) + PerfEnumerateCounterSetInstances(szmachine.param().abi(), pcountersetid, core::mem::transmute(pinstances.unwrap_or(core::mem::zeroed())), cbinstances, core::mem::transmute(pcbinstancesactual)) } #[inline] pub unsafe fn PerfIncrementULongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfIncrementULongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u32) -> u32); - PerfIncrementULongCounterValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(value)) + PerfIncrementULongCounterValue(provider, core::mem::transmute(instance), counterid, value) } #[inline] pub unsafe fn PerfIncrementULongLongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfIncrementULongLongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u64) -> u32); - PerfIncrementULongLongCounterValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(value)) + PerfIncrementULongLongCounterValue(provider, core::mem::transmute(instance), counterid, value) } #[inline] pub unsafe fn PerfOpenQueryHandle(szmachine: P0, phquery: *mut super::super::Foundation::HANDLE) -> u32 @@ -804,12 +804,12 @@ where #[inline] pub unsafe fn PerfQueryCounterData(hquery: super::super::Foundation::HANDLE, pcounterblock: Option<*mut PERF_DATA_HEADER>, cbcounterblock: u32, pcbcounterblockactual: *mut u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfQueryCounterData(hquery : super::super::Foundation:: HANDLE, pcounterblock : *mut PERF_DATA_HEADER, cbcounterblock : u32, pcbcounterblockactual : *mut u32) -> u32); - PerfQueryCounterData(core::mem::transmute(hquery), core::mem::transmute(pcounterblock.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbcounterblock), core::mem::transmute(pcbcounterblockactual)) + PerfQueryCounterData(hquery, core::mem::transmute(pcounterblock.unwrap_or(core::mem::zeroed())), cbcounterblock, core::mem::transmute(pcbcounterblockactual)) } #[inline] pub unsafe fn PerfQueryCounterInfo(hquery: super::super::Foundation::HANDLE, pcounters: Option<*mut PERF_COUNTER_IDENTIFIER>, cbcounters: u32, pcbcountersactual: *mut u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfQueryCounterInfo(hquery : super::super::Foundation:: HANDLE, pcounters : *mut PERF_COUNTER_IDENTIFIER, cbcounters : u32, pcbcountersactual : *mut u32) -> u32); - PerfQueryCounterInfo(core::mem::transmute(hquery), core::mem::transmute(pcounters.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbcounters), core::mem::transmute(pcbcountersactual)) + PerfQueryCounterInfo(hquery, core::mem::transmute(pcounters.unwrap_or(core::mem::zeroed())), cbcounters, core::mem::transmute(pcbcountersactual)) } #[inline] pub unsafe fn PerfQueryCounterSetRegistrationInfo(szmachine: P0, pcountersetid: *const windows_core::GUID, requestcode: PerfRegInfoType, requestlangid: u32, pbreginfo: Option<&mut [u8]>, pcbreginfoactual: *mut u32) -> u32 @@ -817,7 +817,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfQueryCounterSetRegistrationInfo(szmachine : windows_core::PCWSTR, pcountersetid : *const windows_core::GUID, requestcode : PerfRegInfoType, requestlangid : u32, pbreginfo : *mut u8, cbreginfo : u32, pcbreginfoactual : *mut u32) -> u32); - PerfQueryCounterSetRegistrationInfo(szmachine.param().abi(), core::mem::transmute(pcountersetid), core::mem::transmute(requestcode), core::mem::transmute(requestlangid), core::mem::transmute(pbreginfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbreginfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbreginfoactual)) + PerfQueryCounterSetRegistrationInfo(szmachine.param().abi(), pcountersetid, requestcode, requestlangid, core::mem::transmute(pbreginfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbreginfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbreginfoactual)) } #[inline] pub unsafe fn PerfQueryInstance(providerhandle: super::super::Foundation::HANDLE, countersetguid: *const windows_core::GUID, name: P2, id: u32) -> *mut PERF_COUNTERSET_INSTANCE @@ -825,42 +825,42 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfQueryInstance(providerhandle : super::super::Foundation:: HANDLE, countersetguid : *const windows_core::GUID, name : windows_core::PCWSTR, id : u32) -> *mut PERF_COUNTERSET_INSTANCE); - PerfQueryInstance(core::mem::transmute(providerhandle), core::mem::transmute(countersetguid), name.param().abi(), core::mem::transmute(id)) + PerfQueryInstance(providerhandle, countersetguid, name.param().abi(), id) } #[inline] pub unsafe fn PerfSetCounterRefValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, address: *const core::ffi::c_void) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfSetCounterRefValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, address : *const core::ffi::c_void) -> u32); - PerfSetCounterRefValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(address)) + PerfSetCounterRefValue(provider, core::mem::transmute(instance), counterid, address) } #[inline] pub unsafe fn PerfSetCounterSetInfo(providerhandle: super::super::Foundation::HANDLE, template: *mut PERF_COUNTERSET_INFO, templatesize: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfSetCounterSetInfo(providerhandle : super::super::Foundation:: HANDLE, template : *mut PERF_COUNTERSET_INFO, templatesize : u32) -> u32); - PerfSetCounterSetInfo(core::mem::transmute(providerhandle), core::mem::transmute(template), core::mem::transmute(templatesize)) + PerfSetCounterSetInfo(providerhandle, core::mem::transmute(template), templatesize) } #[inline] pub unsafe fn PerfSetULongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfSetULongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u32) -> u32); - PerfSetULongCounterValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(value)) + PerfSetULongCounterValue(provider, core::mem::transmute(instance), counterid, value) } #[inline] pub unsafe fn PerfSetULongLongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfSetULongLongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u64) -> u32); - PerfSetULongLongCounterValue(core::mem::transmute(provider), core::mem::transmute(instance), core::mem::transmute(counterid), core::mem::transmute(value)) + PerfSetULongLongCounterValue(provider, core::mem::transmute(instance), counterid, value) } #[inline] pub unsafe fn PerfStartProvider(providerguid: *const windows_core::GUID, controlcallback: Option, phprovider: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfStartProvider(providerguid : *const windows_core::GUID, controlcallback : PERFLIBREQUEST, phprovider : *mut super::super::Foundation:: HANDLE) -> u32); - PerfStartProvider(core::mem::transmute(providerguid), core::mem::transmute(controlcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(phprovider)) + PerfStartProvider(providerguid, core::mem::transmute(controlcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(phprovider)) } #[inline] pub unsafe fn PerfStartProviderEx(providerguid: *const windows_core::GUID, providercontext: Option<*const PERF_PROVIDER_CONTEXT>, provider: *mut super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfStartProviderEx(providerguid : *const windows_core::GUID, providercontext : *const PERF_PROVIDER_CONTEXT, provider : *mut super::super::Foundation:: HANDLE) -> u32); - PerfStartProviderEx(core::mem::transmute(providerguid), core::mem::transmute(providercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(provider)) + PerfStartProviderEx(providerguid, core::mem::transmute(providercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(provider)) } #[inline] pub unsafe fn PerfStopProvider(providerhandle: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("advapi32.dll" "system" fn PerfStopProvider(providerhandle : super::super::Foundation:: HANDLE) -> u32); - PerfStopProvider(core::mem::transmute(providerhandle)) + PerfStopProvider(providerhandle) } #[inline] pub unsafe fn QueryPerformanceCounter(lpperformancecount: *mut i64) -> windows_core::Result<()> { @@ -923,7 +923,7 @@ where P2: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn UpdatePerfNameFilesA(sznewctrfilepath : windows_core::PCSTR, sznewhlpfilepath : windows_core::PCSTR, szlanguageid : windows_core::PCSTR, dwflags : usize) -> u32); - UpdatePerfNameFilesA(sznewctrfilepath.param().abi(), sznewhlpfilepath.param().abi(), szlanguageid.param().abi(), core::mem::transmute(dwflags)) + UpdatePerfNameFilesA(sznewctrfilepath.param().abi(), sznewhlpfilepath.param().abi(), szlanguageid.param().abi(), dwflags) } #[inline] pub unsafe fn UpdatePerfNameFilesW(sznewctrfilepath: P0, sznewhlpfilepath: P1, szlanguageid: P2, dwflags: usize) -> u32 @@ -933,7 +933,7 @@ where P2: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn UpdatePerfNameFilesW(sznewctrfilepath : windows_core::PCWSTR, sznewhlpfilepath : windows_core::PCWSTR, szlanguageid : windows_core::PCWSTR, dwflags : usize) -> u32); - UpdatePerfNameFilesW(sznewctrfilepath.param().abi(), sznewhlpfilepath.param().abi(), szlanguageid.param().abi(), core::mem::transmute(dwflags)) + UpdatePerfNameFilesW(sznewctrfilepath.param().abi(), sznewhlpfilepath.param().abi(), szlanguageid.param().abi(), dwflags) } pub const AppearPropPage: windows_core::GUID = windows_core::GUID::from_u128(0xe49741e9_93a8_4ab1_8e96_bf4482282e9c); #[repr(transparent)] @@ -1150,21 +1150,21 @@ impl IAlertDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAlertThresholds(&self, alerts: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlertThresholds)(windows_core::Interface::as_raw(self), core::mem::transmute(alerts)).ok() + (windows_core::Interface::vtable(self).SetAlertThresholds)(windows_core::Interface::as_raw(self), alerts).ok() } pub unsafe fn EventLog(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventLog)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventLog(&self, log: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventLog)(windows_core::Interface::as_raw(self), core::mem::transmute(log)).ok() + (windows_core::Interface::vtable(self).SetEventLog)(windows_core::Interface::as_raw(self), log).ok() } pub unsafe fn SampleInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SampleInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSampleInterval(&self, interval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(interval)).ok() + (windows_core::Interface::vtable(self).SetSampleInterval)(windows_core::Interface::as_raw(self), interval).ok() } pub unsafe fn Task(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1178,7 +1178,7 @@ impl IAlertDataCollector { (windows_core::Interface::vtable(self).TaskRunAsSelf)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTaskRunAsSelf(&self, runasself: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), core::mem::transmute(runasself)).ok() + (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), runasself).ok() } pub unsafe fn TaskArguments(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1407,14 +1407,14 @@ impl IApiTracingDataCollector { (windows_core::Interface::vtable(self).LogApiNamesOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogApiNamesOnly(&self, logapinames: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogApiNamesOnly)(windows_core::Interface::as_raw(self), core::mem::transmute(logapinames)).ok() + (windows_core::Interface::vtable(self).SetLogApiNamesOnly)(windows_core::Interface::as_raw(self), logapinames).ok() } pub unsafe fn LogApisRecursively(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogApisRecursively)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogApisRecursively(&self, logrecursively: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogApisRecursively)(windows_core::Interface::as_raw(self), core::mem::transmute(logrecursively)).ok() + (windows_core::Interface::vtable(self).SetLogApisRecursively)(windows_core::Interface::as_raw(self), logrecursively).ok() } pub unsafe fn ExePath(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1437,7 +1437,7 @@ impl IApiTracingDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIncludeModules(&self, includemodules: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncludeModules)(windows_core::Interface::as_raw(self), core::mem::transmute(includemodules)).ok() + (windows_core::Interface::vtable(self).SetIncludeModules)(windows_core::Interface::as_raw(self), includemodules).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IncludeApis(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1446,7 +1446,7 @@ impl IApiTracingDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIncludeApis(&self, includeapis: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncludeApis)(windows_core::Interface::as_raw(self), core::mem::transmute(includeapis)).ok() + (windows_core::Interface::vtable(self).SetIncludeApis)(windows_core::Interface::as_raw(self), includeapis).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExcludeApis(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1455,7 +1455,7 @@ impl IApiTracingDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetExcludeApis(&self, excludeapis: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExcludeApis)(windows_core::Interface::as_raw(self), core::mem::transmute(excludeapis)).ok() + (windows_core::Interface::vtable(self).SetExcludeApis)(windows_core::Interface::as_raw(self), excludeapis).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1655,21 +1655,21 @@ impl IConfigurationDataCollector { (windows_core::Interface::vtable(self).FileMaxCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFileMaxCount(&self, count: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileMaxCount)(windows_core::Interface::as_raw(self), core::mem::transmute(count)).ok() + (windows_core::Interface::vtable(self).SetFileMaxCount)(windows_core::Interface::as_raw(self), count).ok() } pub unsafe fn FileMaxRecursiveDepth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FileMaxRecursiveDepth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFileMaxRecursiveDepth(&self, depth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileMaxRecursiveDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(depth)).ok() + (windows_core::Interface::vtable(self).SetFileMaxRecursiveDepth)(windows_core::Interface::as_raw(self), depth).ok() } pub unsafe fn FileMaxTotalSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FileMaxTotalSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFileMaxTotalSize(&self, size: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileMaxTotalSize)(windows_core::Interface::as_raw(self), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).SetFileMaxTotalSize)(windows_core::Interface::as_raw(self), size).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Files(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1678,7 +1678,7 @@ impl IConfigurationDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFiles(&self, files: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(files)).ok() + (windows_core::Interface::vtable(self).SetFiles)(windows_core::Interface::as_raw(self), files).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ManagementQueries(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1687,14 +1687,14 @@ impl IConfigurationDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetManagementQueries(&self, queries: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetManagementQueries)(windows_core::Interface::as_raw(self), core::mem::transmute(queries)).ok() + (windows_core::Interface::vtable(self).SetManagementQueries)(windows_core::Interface::as_raw(self), queries).ok() } pub unsafe fn QueryNetworkAdapters(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryNetworkAdapters)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQueryNetworkAdapters(&self, network: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueryNetworkAdapters)(windows_core::Interface::as_raw(self), core::mem::transmute(network)).ok() + (windows_core::Interface::vtable(self).SetQueryNetworkAdapters)(windows_core::Interface::as_raw(self), network).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegistryKeys(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1703,14 +1703,14 @@ impl IConfigurationDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRegistryKeys(&self, query: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRegistryKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(query)).ok() + (windows_core::Interface::vtable(self).SetRegistryKeys)(windows_core::Interface::as_raw(self), query).ok() } pub unsafe fn RegistryMaxRecursiveDepth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RegistryMaxRecursiveDepth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRegistryMaxRecursiveDepth(&self, depth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRegistryMaxRecursiveDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(depth)).ok() + (windows_core::Interface::vtable(self).SetRegistryMaxRecursiveDepth)(windows_core::Interface::as_raw(self), depth).ok() } pub unsafe fn SystemStateFile(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1947,28 +1947,28 @@ impl ICounterItem { (windows_core::Interface::vtable(self).Value)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn Color(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Color)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, iwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(iwidth)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), iwidth).ok() } pub unsafe fn Width(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLineStyle(&self, ilinestyle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(ilinestyle)).ok() + (windows_core::Interface::vtable(self).SetLineStyle)(windows_core::Interface::as_raw(self), ilinestyle).ok() } pub unsafe fn LineStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LineStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScaleFactor(&self, iscale: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(iscale)).ok() + (windows_core::Interface::vtable(self).SetScaleFactor)(windows_core::Interface::as_raw(self), iscale).ok() } pub unsafe fn ScaleFactor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2132,14 +2132,14 @@ impl core::ops::Deref for ICounterItem2 { windows_core::imp::interface_hierarchy!(ICounterItem2, windows_core::IUnknown, ICounterItem); impl ICounterItem2 { pub unsafe fn SetSelected(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn Selected(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Selected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVisible(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2148,7 +2148,7 @@ impl ICounterItem2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetDataAt(&self, iindex: i32, iwhich: SysmonDataType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(iwhich), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDataAt)(windows_core::Interface::as_raw(self), iindex, iwhich, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -2387,7 +2387,7 @@ impl IDataCollector { (windows_core::Interface::vtable(self).FileNameFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileNameFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).SetFileNameFormat)(windows_core::Interface::as_raw(self), format).ok() } pub unsafe fn FileNameFormatPattern(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2408,21 +2408,21 @@ impl IDataCollector { (windows_core::Interface::vtable(self).LogAppend)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogAppend(&self, append: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogAppend)(windows_core::Interface::as_raw(self), core::mem::transmute(append)).ok() + (windows_core::Interface::vtable(self).SetLogAppend)(windows_core::Interface::as_raw(self), append).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogCircular)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogCircular(&self, circular: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogCircular)(windows_core::Interface::as_raw(self), core::mem::transmute(circular)).ok() + (windows_core::Interface::vtable(self).SetLogCircular)(windows_core::Interface::as_raw(self), circular).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogOverwrite)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogOverwrite(&self, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogOverwrite)(windows_core::Interface::as_raw(self), core::mem::transmute(overwrite)).ok() + (windows_core::Interface::vtable(self).SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2440,7 +2440,7 @@ impl IDataCollector { (windows_core::Interface::vtable(self).Index)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIndex(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetIndex)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Xml(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2452,7 +2452,7 @@ impl IDataCollector { } pub unsafe fn CreateOutputLocation(&self, latest: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOutputLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(latest), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).CreateOutputLocation)(windows_core::Interface::as_raw(self), latest, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2791,7 +2791,7 @@ impl IDataCollectorCollection { } pub unsafe fn CreateDataCollector(&self, r#type: DataCollectorType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDataCollector)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDataCollector)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2930,7 +2930,7 @@ impl IDataCollectorSet { (windows_core::Interface::vtable(self).Duration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDuration(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2961,7 +2961,7 @@ impl IDataCollectorSet { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetKeywords(&self, keywords: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeywords)(windows_core::Interface::as_raw(self), core::mem::transmute(keywords)).ok() + (windows_core::Interface::vtable(self).SetKeywords)(windows_core::Interface::as_raw(self), keywords).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2990,28 +2990,28 @@ impl IDataCollectorSet { (windows_core::Interface::vtable(self).Segment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSegment(&self, segment: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegment)(windows_core::Interface::as_raw(self), core::mem::transmute(segment)).ok() + (windows_core::Interface::vtable(self).SetSegment)(windows_core::Interface::as_raw(self), segment).ok() } pub unsafe fn SegmentMaxDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SegmentMaxDuration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSegmentMaxDuration(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegmentMaxDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetSegmentMaxDuration)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn SegmentMaxSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SegmentMaxSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSegmentMaxSize(&self, size: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegmentMaxSize)(windows_core::Interface::as_raw(self), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).SetSegmentMaxSize)(windows_core::Interface::as_raw(self), size).ok() } pub unsafe fn SerialNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SerialNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSerialNumber(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSerialNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).SetSerialNumber)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Server(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3033,7 +3033,7 @@ impl IDataCollectorSet { (windows_core::Interface::vtable(self).SubdirectoryFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSubdirectoryFormat(&self, format: AutoPathFormat) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSubdirectoryFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).SetSubdirectoryFormat)(windows_core::Interface::as_raw(self), format).ok() } pub unsafe fn SubdirectoryFormatPattern(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3054,7 +3054,7 @@ impl IDataCollectorSet { (windows_core::Interface::vtable(self).TaskRunAsSelf)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTaskRunAsSelf(&self, runasself: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), core::mem::transmute(runasself)).ok() + (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), runasself).ok() } pub unsafe fn TaskArguments(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3079,7 +3079,7 @@ impl IDataCollectorSet { (windows_core::Interface::vtable(self).SchedulesEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSchedulesEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSchedulesEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetSchedulesEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn UserAccount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3101,7 +3101,7 @@ impl IDataCollectorSet { (windows_core::Interface::vtable(self).StopOnCompletion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStopOnCompletion(&self, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopOnCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(stop)).ok() + (windows_core::Interface::vtable(self).SetStopOnCompletion)(windows_core::Interface::as_raw(self), stop).ok() } pub unsafe fn DataManager(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3115,16 +3115,16 @@ impl IDataCollectorSet { } pub unsafe fn Commit(&self, name: &windows_core::BSTR, server: &windows_core::BSTR, mode: CommitMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute_copy(server), core::mem::transmute(mode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute_copy(server), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Start(&self, synchronous: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), core::mem::transmute(synchronous)).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), synchronous).ok() } pub unsafe fn Stop(&self, synchronous: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), core::mem::transmute(synchronous)).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), synchronous).ok() } pub unsafe fn SetXml(&self, xml: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3957,42 +3957,42 @@ impl IDataManager { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(fenabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled).ok() } pub unsafe fn CheckBeforeRunning(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CheckBeforeRunning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCheckBeforeRunning(&self, fcheck: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCheckBeforeRunning)(windows_core::Interface::as_raw(self), core::mem::transmute(fcheck)).ok() + (windows_core::Interface::vtable(self).SetCheckBeforeRunning)(windows_core::Interface::as_raw(self), fcheck).ok() } pub unsafe fn MinFreeDisk(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinFreeDisk)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinFreeDisk(&self, minfreedisk: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinFreeDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(minfreedisk)).ok() + (windows_core::Interface::vtable(self).SetMinFreeDisk)(windows_core::Interface::as_raw(self), minfreedisk).ok() } pub unsafe fn MaxSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxSize(&self, ulmaxsize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxSize)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmaxsize)).ok() + (windows_core::Interface::vtable(self).SetMaxSize)(windows_core::Interface::as_raw(self), ulmaxsize).ok() } pub unsafe fn MaxFolderCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxFolderCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxFolderCount(&self, ulmaxfoldercount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxFolderCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmaxfoldercount)).ok() + (windows_core::Interface::vtable(self).SetMaxFolderCount)(windows_core::Interface::as_raw(self), ulmaxfoldercount).ok() } pub unsafe fn ResourcePolicy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ResourcePolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetResourcePolicy(&self, policy: ResourcePolicy) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResourcePolicy)(windows_core::Interface::as_raw(self), core::mem::transmute(policy)).ok() + (windows_core::Interface::vtable(self).SetResourcePolicy)(windows_core::Interface::as_raw(self), policy).ok() } pub unsafe fn FolderActions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4035,7 +4035,7 @@ impl IDataManager { } pub unsafe fn Run(&self, steps: DataManagerSteps, bstrfolder: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), core::mem::transmute(steps), core::mem::transmute_copy(bstrfolder), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), steps, core::mem::transmute_copy(bstrfolder), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Extract(&self, cabfilename: &windows_core::BSTR, destinationpath: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(cabfilename), core::mem::transmute_copy(destinationpath)).ok() @@ -4333,21 +4333,21 @@ impl IFolderAction { (windows_core::Interface::vtable(self).Age)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAge(&self, ulage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAge)(windows_core::Interface::as_raw(self), core::mem::transmute(ulage)).ok() + (windows_core::Interface::vtable(self).SetAge)(windows_core::Interface::as_raw(self), ulage).ok() } pub unsafe fn Size(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Size)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSize(&self, ulage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(ulage)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), ulage).ok() } pub unsafe fn Actions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Actions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetActions(&self, steps: FolderActionSteps) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActions)(windows_core::Interface::as_raw(self), core::mem::transmute(steps)).ok() + (windows_core::Interface::vtable(self).SetActions)(windows_core::Interface::as_raw(self), steps).ok() } pub unsafe fn SendCabTo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4798,28 +4798,28 @@ impl IPerformanceCounterDataCollector { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPerformanceCounters(&self, counters: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPerformanceCounters)(windows_core::Interface::as_raw(self), core::mem::transmute(counters)).ok() + (windows_core::Interface::vtable(self).SetPerformanceCounters)(windows_core::Interface::as_raw(self), counters).ok() } pub unsafe fn LogFileFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogFileFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogFileFormat(&self, format: FileFormat) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogFileFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).SetLogFileFormat)(windows_core::Interface::as_raw(self), format).ok() } pub unsafe fn SampleInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SampleInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSampleInterval(&self, interval: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSampleInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(interval)).ok() + (windows_core::Interface::vtable(self).SetSampleInterval)(windows_core::Interface::as_raw(self), interval).ok() } pub unsafe fn SegmentMaxRecords(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SegmentMaxRecords)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSegmentMaxRecords(&self, records: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSegmentMaxRecords)(windows_core::Interface::as_raw(self), core::mem::transmute(records)).ok() + (windows_core::Interface::vtable(self).SetSegmentMaxRecords)(windows_core::Interface::as_raw(self), records).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4994,7 +4994,7 @@ impl ISchedule { (windows_core::Interface::vtable(self).Days)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDays(&self, days: WeekDays) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDays)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).SetDays)(windows_core::Interface::as_raw(self), days).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5281,28 +5281,28 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).Appearance)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppearance(&self, iappearance: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppearance)(windows_core::Interface::as_raw(self), core::mem::transmute(iappearance)).ok() + (windows_core::Interface::vtable(self).SetAppearance)(windows_core::Interface::as_raw(self), iappearance).ok() } pub unsafe fn BackColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BackColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn BorderStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BorderStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderStyle(&self, iborderstyle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(iborderstyle)).ok() + (windows_core::Interface::vtable(self).SetBorderStyle)(windows_core::Interface::as_raw(self), iborderstyle).ok() } pub unsafe fn ForeColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ForeColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForeColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForeColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetForeColor)(windows_core::Interface::as_raw(self), color).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Font(&self) -> windows_core::Result { @@ -5322,70 +5322,70 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).Counters)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetShowVerticalGrid(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowVerticalGrid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowVerticalGrid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowHorizontalGrid(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowHorizontalGrid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowHorizontalGrid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowLegend(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowLegend(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowLegend)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowScaleLabels(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowScaleLabels(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowScaleLabels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowValueBar(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowValueBar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowValueBar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaximumScale(&self, ivalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumScale)(windows_core::Interface::as_raw(self), core::mem::transmute(ivalue)).ok() + (windows_core::Interface::vtable(self).SetMaximumScale)(windows_core::Interface::as_raw(self), ivalue).ok() } pub unsafe fn MaximumScale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaximumScale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinimumScale(&self, ivalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimumScale)(windows_core::Interface::as_raw(self), core::mem::transmute(ivalue)).ok() + (windows_core::Interface::vtable(self).SetMinimumScale)(windows_core::Interface::as_raw(self), ivalue).ok() } pub unsafe fn MinimumScale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinimumScale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUpdateInterval(&self, fvalue: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpdateInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).SetUpdateInterval)(windows_core::Interface::as_raw(self), fvalue).ok() } pub unsafe fn UpdateInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UpdateInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplayType(&self, edisplaytype: DisplayTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), core::mem::transmute(edisplaytype)).ok() + (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), edisplaytype).ok() } pub unsafe fn DisplayType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DisplayType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetManualUpdate(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ManualUpdate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5419,7 +5419,7 @@ impl ISystemMonitor { } pub unsafe fn Counter(&self, iindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Counter)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Counter)(windows_core::Interface::as_raw(self), iindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddCounter(&self, bspath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5436,7 +5436,7 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).BackColorCtl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColorCtl(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColorCtl)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBackColorCtl)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn SetLogFileName(&self, bsfilename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bsfilename)).ok() @@ -5446,14 +5446,14 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).LogFileName)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetLogViewStart(&self, starttime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogViewStart)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime)).ok() + (windows_core::Interface::vtable(self).SetLogViewStart)(windows_core::Interface::as_raw(self), starttime).ok() } pub unsafe fn LogViewStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogViewStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogViewStop(&self, stoptime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogViewStop)(windows_core::Interface::as_raw(self), core::mem::transmute(stoptime)).ok() + (windows_core::Interface::vtable(self).SetLogViewStop)(windows_core::Interface::as_raw(self), stoptime).ok() } pub unsafe fn LogViewStop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5464,28 +5464,28 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).GridColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGridColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGridColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetGridColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn TimeBarColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TimeBarColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTimeBarColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeBarColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetTimeBarColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn Highlight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Highlight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighlight(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowToolbar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowToolbar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowToolbar(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn Paste(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self)).ok() @@ -5497,28 +5497,28 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetReadOnly(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReportValueType(&self, ereportvaluetype: ReportValueTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportValueType)(windows_core::Interface::as_raw(self), core::mem::transmute(ereportvaluetype)).ok() + (windows_core::Interface::vtable(self).SetReportValueType)(windows_core::Interface::as_raw(self), ereportvaluetype).ok() } pub unsafe fn ReportValueType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReportValueType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMonitorDuplicateInstances(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn MonitorDuplicateInstances(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MonitorDuplicateInstances)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplayFilter(&self, ivalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(ivalue)).ok() + (windows_core::Interface::vtable(self).SetDisplayFilter)(windows_core::Interface::as_raw(self), ivalue).ok() } pub unsafe fn DisplayFilter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5530,7 +5530,7 @@ impl ISystemMonitor { (windows_core::Interface::vtable(self).LogFiles)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataSourceType)(windows_core::Interface::as_raw(self), core::mem::transmute(edatasourcetype)).ok() + (windows_core::Interface::vtable(self).SetDataSourceType)(windows_core::Interface::as_raw(self), edatasourcetype).ok() } pub unsafe fn DataSourceType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6341,48 +6341,48 @@ impl core::ops::Deref for ISystemMonitor2 { windows_core::imp::interface_hierarchy!(ISystemMonitor2, windows_core::IUnknown, ISystemMonitor); impl ISystemMonitor2 { pub unsafe fn SetEnableDigitGrouping(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn EnableDigitGrouping(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableDigitGrouping)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnableToolTips(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn EnableToolTips(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableToolTips)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowTimeAxisLabels(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowTimeAxisLabels(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowTimeAxisLabels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChartScroll(&self, bscroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), core::mem::transmute(bscroll)).ok() + (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), bscroll).ok() } pub unsafe fn ChartScroll(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ChartScroll)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDataPointCount(&self, inewcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataPointCount)(windows_core::Interface::as_raw(self), core::mem::transmute(inewcount)).ok() + (windows_core::Interface::vtable(self).SetDataPointCount)(windows_core::Interface::as_raw(self), inewcount).ok() } pub unsafe fn DataPointCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DataPointCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ScaleToFit(&self, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(bselectedcountersonly)).ok() + (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), bselectedcountersonly).ok() } pub unsafe fn SaveAs(&self, bstrfilename: &windows_core::BSTR, esysmonfiletype: SysmonFileType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute(esysmonfiletype)).ok() + (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), esysmonfiletype).ok() } pub unsafe fn Relog(&self, bstrfilename: &windows_core::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute(esysmonfiletype), core::mem::transmute(ifilter)).ok() + (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), esysmonfiletype, ifilter).ok() } pub unsafe fn ClearData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearData)(windows_core::Interface::as_raw(self)).ok() @@ -6396,13 +6396,13 @@ impl ISystemMonitor2 { (windows_core::Interface::vtable(self).LogSourceStopTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogViewRange(&self, starttime: f64, stoptime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogViewRange)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime), core::mem::transmute(stoptime)).ok() + (windows_core::Interface::vtable(self).SetLogViewRange)(windows_core::Interface::as_raw(self), starttime, stoptime).ok() } pub unsafe fn GetLogViewRange(&self, starttime: *mut f64, stoptime: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogViewRange)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime), core::mem::transmute(stoptime)).ok() } pub unsafe fn BatchingLock(&self, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), core::mem::transmute(flock), core::mem::transmute(ebatchreason)).ok() + (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), flock, ebatchreason).ok() } pub unsafe fn LoadSettings(&self, bstrsettingfilename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LoadSettings)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsettingfilename)).ok() @@ -6614,19 +6614,19 @@ windows_core::imp::define_interface!(ISystemMonitorEvents, ISystemMonitorEvents_ windows_core::imp::interface_hierarchy!(ISystemMonitorEvents, windows_core::IUnknown); impl ISystemMonitorEvents { pub unsafe fn OnCounterSelected(&self, index: i32) { - (windows_core::Interface::vtable(self).OnCounterSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).OnCounterSelected)(windows_core::Interface::as_raw(self), index) } pub unsafe fn OnCounterAdded(&self, index: i32) { - (windows_core::Interface::vtable(self).OnCounterAdded)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).OnCounterAdded)(windows_core::Interface::as_raw(self), index) } pub unsafe fn OnCounterDeleted(&self, index: i32) { - (windows_core::Interface::vtable(self).OnCounterDeleted)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).OnCounterDeleted)(windows_core::Interface::as_raw(self), index) } pub unsafe fn OnSampleCollected(&self) { (windows_core::Interface::vtable(self).OnSampleCollected)(windows_core::Interface::as_raw(self)) } pub unsafe fn OnDblClick(&self, index: i32) { - (windows_core::Interface::vtable(self).OnDblClick)(windows_core::Interface::as_raw(self), core::mem::transmute(index)) + (windows_core::Interface::vtable(self).OnDblClick)(windows_core::Interface::as_raw(self), index) } } #[repr(C)] @@ -6699,56 +6699,56 @@ impl ITraceDataCollector { (windows_core::Interface::vtable(self).BufferSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBufferSize(&self, size: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBufferSize)(windows_core::Interface::as_raw(self), core::mem::transmute(size)).ok() + (windows_core::Interface::vtable(self).SetBufferSize)(windows_core::Interface::as_raw(self), size).ok() } pub unsafe fn BuffersLost(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BuffersLost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBuffersLost(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBuffersLost)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetBuffersLost)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn BuffersWritten(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BuffersWritten)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBuffersWritten(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBuffersWritten)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetBuffersWritten)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn ClockType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ClockType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClockType(&self, clock: ClockType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClockType)(windows_core::Interface::as_raw(self), core::mem::transmute(clock)).ok() + (windows_core::Interface::vtable(self).SetClockType)(windows_core::Interface::as_raw(self), clock).ok() } pub unsafe fn EventsLost(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventsLost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventsLost(&self, events: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventsLost)(windows_core::Interface::as_raw(self), core::mem::transmute(events)).ok() + (windows_core::Interface::vtable(self).SetEventsLost)(windows_core::Interface::as_raw(self), events).ok() } pub unsafe fn ExtendedModes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ExtendedModes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetExtendedModes(&self, mode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExtendedModes)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetExtendedModes)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn FlushTimer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FlushTimer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlushTimer(&self, seconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlushTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(seconds)).ok() + (windows_core::Interface::vtable(self).SetFlushTimer)(windows_core::Interface::as_raw(self), seconds).ok() } pub unsafe fn FreeBuffers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FreeBuffers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFreeBuffers(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFreeBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetFreeBuffers)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn Guid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6766,49 +6766,49 @@ impl ITraceDataCollector { (windows_core::Interface::vtable(self).MaximumBuffers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaximumBuffers(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetMaximumBuffers)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn MinimumBuffers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinimumBuffers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinimumBuffers(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimumBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetMinimumBuffers)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn NumberOfBuffers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NumberOfBuffers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNumberOfBuffers(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNumberOfBuffers)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetNumberOfBuffers)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn PreallocateFile(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PreallocateFile)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPreallocateFile(&self, allocate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreallocateFile)(windows_core::Interface::as_raw(self), core::mem::transmute(allocate)).ok() + (windows_core::Interface::vtable(self).SetPreallocateFile)(windows_core::Interface::as_raw(self), allocate).ok() } pub unsafe fn ProcessMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProcessMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProcessMode(&self, process: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessMode)(windows_core::Interface::as_raw(self), core::mem::transmute(process)).ok() + (windows_core::Interface::vtable(self).SetProcessMode)(windows_core::Interface::as_raw(self), process).ok() } pub unsafe fn RealTimeBuffersLost(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RealTimeBuffersLost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRealTimeBuffersLost(&self, buffers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRealTimeBuffersLost)(windows_core::Interface::as_raw(self), core::mem::transmute(buffers)).ok() + (windows_core::Interface::vtable(self).SetRealTimeBuffersLost)(windows_core::Interface::as_raw(self), buffers).ok() } pub unsafe fn SessionId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SessionId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSessionId(&self, id: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSessionId)(windows_core::Interface::as_raw(self), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetSessionId)(windows_core::Interface::as_raw(self), id).ok() } pub unsafe fn SessionName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6822,14 +6822,14 @@ impl ITraceDataCollector { (windows_core::Interface::vtable(self).SessionThreadId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSessionThreadId(&self, tid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSessionThreadId)(windows_core::Interface::as_raw(self), core::mem::transmute(tid)).ok() + (windows_core::Interface::vtable(self).SetSessionThreadId)(windows_core::Interface::as_raw(self), tid).ok() } pub unsafe fn StreamMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StreamMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStreamMode(&self, mode: StreamMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetStreamMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn TraceDataProviders(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7311,14 +7311,14 @@ impl ITraceDataProvider { (windows_core::Interface::vtable(self).FilterEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFilterEnabled(&self, filterenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilterEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(filterenabled)).ok() + (windows_core::Interface::vtable(self).SetFilterEnabled)(windows_core::Interface::as_raw(self), filterenabled).ok() } pub unsafe fn FilterType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FilterType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFilterType(&self, ultype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilterType)(windows_core::Interface::as_raw(self), core::mem::transmute(ultype)).ok() + (windows_core::Interface::vtable(self).SetFilterType)(windows_core::Interface::as_raw(self), ultype).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FilterData(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -7327,7 +7327,7 @@ impl ITraceDataProvider { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFilterData(&self, pdata: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilterData)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).SetFilterData)(windows_core::Interface::as_raw(self), pdata).ok() } pub unsafe fn Query(&self, bstrname: &windows_core::BSTR, bstrserver: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrserver)).ok() @@ -7343,7 +7343,7 @@ impl ITraceDataProvider { } pub unsafe fn GetSecurity(&self, securityinfo: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), core::mem::transmute(securityinfo), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), securityinfo, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetRegisteredProcesses(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7629,7 +7629,7 @@ impl ITraceDataProviderCollection { (windows_core::Interface::vtable(self).GetTraceDataProviders)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(server)).ok() } pub unsafe fn GetTraceDataProvidersByProcess(&self, server: &windows_core::BSTR, pid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTraceDataProvidersByProcess)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(server), core::mem::transmute(pid)).ok() + (windows_core::Interface::vtable(self).GetTraceDataProvidersByProcess)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(server), pid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7800,7 +7800,7 @@ impl IValueMap { (windows_core::Interface::vtable(self).ValueMapType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetValueMapType(&self, r#type: ValueMapType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueMapType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetValueMapType)(windows_core::Interface::as_raw(self), r#type).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, value: &super::Variant::VARIANT) -> windows_core::Result<()> { @@ -8025,7 +8025,7 @@ impl IValueMapItem { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn Key(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8048,7 +8048,7 @@ impl IValueMapItem { (windows_core::Interface::vtable(self).ValueMapType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetValueMapType(&self, r#type: ValueMapType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueMapType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetValueMapType)(windows_core::Interface::as_raw(self), r#type).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9391,28 +9391,28 @@ impl _ICounterItemUnion { (windows_core::Interface::vtable(self).Value)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn Color(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Color)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, iwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(iwidth)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), iwidth).ok() } pub unsafe fn Width(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLineStyle(&self, ilinestyle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(ilinestyle)).ok() + (windows_core::Interface::vtable(self).SetLineStyle)(windows_core::Interface::as_raw(self), ilinestyle).ok() } pub unsafe fn LineStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LineStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScaleFactor(&self, iscale: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(iscale)).ok() + (windows_core::Interface::vtable(self).SetScaleFactor)(windows_core::Interface::as_raw(self), iscale).ok() } pub unsafe fn ScaleFactor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9429,14 +9429,14 @@ impl _ICounterItemUnion { (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(max), core::mem::transmute(min), core::mem::transmute(avg), core::mem::transmute(status)).ok() } pub unsafe fn SetSelected(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn Selected(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Selected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVisible(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9445,7 +9445,7 @@ impl _ICounterItemUnion { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetDataAt(&self, iindex: i32, iwhich: SysmonDataType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(iwhich), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDataAt)(windows_core::Interface::as_raw(self), iindex, iwhich, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -9652,28 +9652,28 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).Appearance)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppearance(&self, iappearance: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppearance)(windows_core::Interface::as_raw(self), core::mem::transmute(iappearance)).ok() + (windows_core::Interface::vtable(self).SetAppearance)(windows_core::Interface::as_raw(self), iappearance).ok() } pub unsafe fn BackColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BackColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn BorderStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BorderStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderStyle(&self, iborderstyle: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(iborderstyle)).ok() + (windows_core::Interface::vtable(self).SetBorderStyle)(windows_core::Interface::as_raw(self), iborderstyle).ok() } pub unsafe fn ForeColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ForeColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForeColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForeColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetForeColor)(windows_core::Interface::as_raw(self), color).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Font(&self) -> windows_core::Result { @@ -9693,70 +9693,70 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).Counters)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetShowVerticalGrid(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowVerticalGrid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowVerticalGrid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowHorizontalGrid(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowHorizontalGrid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowHorizontalGrid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowLegend(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowLegend(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowLegend)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowScaleLabels(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowScaleLabels(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowScaleLabels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowValueBar(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowValueBar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowValueBar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaximumScale(&self, ivalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaximumScale)(windows_core::Interface::as_raw(self), core::mem::transmute(ivalue)).ok() + (windows_core::Interface::vtable(self).SetMaximumScale)(windows_core::Interface::as_raw(self), ivalue).ok() } pub unsafe fn MaximumScale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaximumScale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinimumScale(&self, ivalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimumScale)(windows_core::Interface::as_raw(self), core::mem::transmute(ivalue)).ok() + (windows_core::Interface::vtable(self).SetMinimumScale)(windows_core::Interface::as_raw(self), ivalue).ok() } pub unsafe fn MinimumScale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinimumScale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUpdateInterval(&self, fvalue: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpdateInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(fvalue)).ok() + (windows_core::Interface::vtable(self).SetUpdateInterval)(windows_core::Interface::as_raw(self), fvalue).ok() } pub unsafe fn UpdateInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UpdateInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplayType(&self, edisplaytype: DisplayTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), core::mem::transmute(edisplaytype)).ok() + (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), edisplaytype).ok() } pub unsafe fn DisplayType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DisplayType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetManualUpdate(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ManualUpdate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9790,7 +9790,7 @@ impl _ISystemMonitorUnion { } pub unsafe fn Counter(&self, iindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Counter)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Counter)(windows_core::Interface::as_raw(self), iindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddCounter(&self, bspath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9807,7 +9807,7 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).BackColorCtl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColorCtl(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColorCtl)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBackColorCtl)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn SetLogFileName(&self, bsfilename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bsfilename)).ok() @@ -9817,14 +9817,14 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).LogFileName)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetLogViewStart(&self, starttime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogViewStart)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime)).ok() + (windows_core::Interface::vtable(self).SetLogViewStart)(windows_core::Interface::as_raw(self), starttime).ok() } pub unsafe fn LogViewStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LogViewStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogViewStop(&self, stoptime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogViewStop)(windows_core::Interface::as_raw(self), core::mem::transmute(stoptime)).ok() + (windows_core::Interface::vtable(self).SetLogViewStop)(windows_core::Interface::as_raw(self), stoptime).ok() } pub unsafe fn LogViewStop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9835,28 +9835,28 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).GridColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGridColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGridColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetGridColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn TimeBarColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TimeBarColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTimeBarColor(&self, color: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeBarColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetTimeBarColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn Highlight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Highlight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHighlight(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowToolbar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowToolbar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowToolbar(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn Paste(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self)).ok() @@ -9868,28 +9868,28 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetReadOnly(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReportValueType(&self, ereportvaluetype: ReportValueTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReportValueType)(windows_core::Interface::as_raw(self), core::mem::transmute(ereportvaluetype)).ok() + (windows_core::Interface::vtable(self).SetReportValueType)(windows_core::Interface::as_raw(self), ereportvaluetype).ok() } pub unsafe fn ReportValueType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReportValueType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMonitorDuplicateInstances(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn MonitorDuplicateInstances(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MonitorDuplicateInstances)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisplayFilter(&self, ivalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisplayFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(ivalue)).ok() + (windows_core::Interface::vtable(self).SetDisplayFilter)(windows_core::Interface::as_raw(self), ivalue).ok() } pub unsafe fn DisplayFilter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9901,7 +9901,7 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).LogFiles)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataSourceType)(windows_core::Interface::as_raw(self), core::mem::transmute(edatasourcetype)).ok() + (windows_core::Interface::vtable(self).SetDataSourceType)(windows_core::Interface::as_raw(self), edatasourcetype).ok() } pub unsafe fn DataSourceType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9922,48 +9922,48 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).SqlLogSetName)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetEnableDigitGrouping(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn EnableDigitGrouping(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableDigitGrouping)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnableToolTips(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn EnableToolTips(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableToolTips)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowTimeAxisLabels(&self, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), core::mem::transmute(bstate)).ok() + (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), bstate).ok() } pub unsafe fn ShowTimeAxisLabels(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowTimeAxisLabels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChartScroll(&self, bscroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), core::mem::transmute(bscroll)).ok() + (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), bscroll).ok() } pub unsafe fn ChartScroll(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ChartScroll)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDataPointCount(&self, inewcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataPointCount)(windows_core::Interface::as_raw(self), core::mem::transmute(inewcount)).ok() + (windows_core::Interface::vtable(self).SetDataPointCount)(windows_core::Interface::as_raw(self), inewcount).ok() } pub unsafe fn DataPointCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DataPointCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ScaleToFit(&self, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), core::mem::transmute(bselectedcountersonly)).ok() + (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), bselectedcountersonly).ok() } pub unsafe fn SaveAs(&self, bstrfilename: &windows_core::BSTR, esysmonfiletype: SysmonFileType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute(esysmonfiletype)).ok() + (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), esysmonfiletype).ok() } pub unsafe fn Relog(&self, bstrfilename: &windows_core::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), core::mem::transmute(esysmonfiletype), core::mem::transmute(ifilter)).ok() + (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrfilename), esysmonfiletype, ifilter).ok() } pub unsafe fn ClearData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearData)(windows_core::Interface::as_raw(self)).ok() @@ -9977,13 +9977,13 @@ impl _ISystemMonitorUnion { (windows_core::Interface::vtable(self).LogSourceStopTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLogViewRange(&self, starttime: f64, stoptime: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogViewRange)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime), core::mem::transmute(stoptime)).ok() + (windows_core::Interface::vtable(self).SetLogViewRange)(windows_core::Interface::as_raw(self), starttime, stoptime).ok() } pub unsafe fn GetLogViewRange(&self, starttime: *mut f64, stoptime: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLogViewRange)(windows_core::Interface::as_raw(self), core::mem::transmute(starttime), core::mem::transmute(stoptime)).ok() } pub unsafe fn BatchingLock(&self, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), core::mem::transmute(flock), core::mem::transmute(ebatchreason)).ok() + (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), flock, ebatchreason).ok() } pub unsafe fn LoadSettings(&self, bstrsettingfilename: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LoadSettings)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsettingfilename)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs index 318762bf3b..e14aab12d8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs @@ -4,7 +4,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CallNamedPipeA(lpnamedpipename : windows_core::PCSTR, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, ntimeout : u32) -> super::super::Foundation:: BOOL); - CallNamedPipeA(lpnamedpipename.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesread), core::mem::transmute(ntimeout)).ok() + CallNamedPipeA(lpnamedpipename.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesread), ntimeout).ok() } #[inline] pub unsafe fn CallNamedPipeW(lpnamedpipename: P0, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesread: *mut u32, ntimeout: u32) -> super::super::Foundation::BOOL @@ -12,13 +12,13 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CallNamedPipeW(lpnamedpipename : windows_core::PCWSTR, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, ntimeout : u32) -> super::super::Foundation:: BOOL); - CallNamedPipeW(lpnamedpipename.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesread), core::mem::transmute(ntimeout)) + CallNamedPipeW(lpnamedpipename.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesread), ntimeout) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ConnectNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpoverlapped: Option<*mut super::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ConnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpoverlapped : *mut super::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ConnectNamedPipe(core::mem::transmute(hnamedpipe), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + ConnectNamedPipe(hnamedpipe, core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))] #[inline] @@ -27,7 +27,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateNamedPipeA(lpname : windows_core::PCSTR, dwopenmode : super::super::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, dwpipemode : NAMED_PIPE_MODE, nmaxinstances : u32, noutbuffersize : u32, ninbuffersize : u32, ndefaulttimeout : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - let result__ = CreateNamedPipeA(lpname.param().abi(), core::mem::transmute(dwopenmode), core::mem::transmute(dwpipemode), core::mem::transmute(nmaxinstances), core::mem::transmute(noutbuffersize), core::mem::transmute(ninbuffersize), core::mem::transmute(ndefaulttimeout), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))); + let result__ = CreateNamedPipeA(lpname.param().abi(), dwopenmode, dwpipemode, nmaxinstances, noutbuffersize, ninbuffersize, ndefaulttimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))] @@ -37,101 +37,84 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateNamedPipeW(lpname : windows_core::PCWSTR, dwopenmode : super::super::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, dwpipemode : NAMED_PIPE_MODE, nmaxinstances : u32, noutbuffersize : u32, ninbuffersize : u32, ndefaulttimeout : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: HANDLE); - CreateNamedPipeW(lpname.param().abi(), core::mem::transmute(dwopenmode), core::mem::transmute(dwpipemode), core::mem::transmute(nmaxinstances), core::mem::transmute(noutbuffersize), core::mem::transmute(ninbuffersize), core::mem::transmute(ndefaulttimeout), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) + CreateNamedPipeW(lpname.param().abi(), dwopenmode, dwpipemode, nmaxinstances, noutbuffersize, ninbuffersize, ndefaulttimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreatePipe(hreadpipe: *mut super::super::Foundation::HANDLE, hwritepipe: *mut super::super::Foundation::HANDLE, lppipeattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, nsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CreatePipe(hreadpipe : *mut super::super::Foundation:: HANDLE, hwritepipe : *mut super::super::Foundation:: HANDLE, lppipeattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, nsize : u32) -> super::super::Foundation:: BOOL); - CreatePipe(core::mem::transmute(hreadpipe), core::mem::transmute(hwritepipe), core::mem::transmute(lppipeattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() + CreatePipe(core::mem::transmute(hreadpipe), core::mem::transmute(hwritepipe), core::mem::transmute(lppipeattributes.unwrap_or(core::mem::zeroed())), nsize).ok() } #[inline] pub unsafe fn DisconnectNamedPipe(hnamedpipe: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DisconnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DisconnectNamedPipe(core::mem::transmute(hnamedpipe)).ok() + DisconnectNamedPipe(hnamedpipe).ok() } #[inline] pub unsafe fn GetNamedPipeClientComputerNameA(pipe: super::super::Foundation::HANDLE, clientcomputername: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameA(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PSTR, clientcomputernamelength : u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientComputerNameA(core::mem::transmute(pipe), core::mem::transmute(clientcomputername.as_ptr()), clientcomputername.len().try_into().unwrap()).ok() + GetNamedPipeClientComputerNameA(pipe, core::mem::transmute(clientcomputername.as_ptr()), clientcomputername.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetNamedPipeClientComputerNameW(pipe: super::super::Foundation::HANDLE, clientcomputername: windows_core::PWSTR, clientcomputernamelength: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameW(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PWSTR, clientcomputernamelength : u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientComputerNameW(core::mem::transmute(pipe), core::mem::transmute(clientcomputername), core::mem::transmute(clientcomputernamelength)) + GetNamedPipeClientComputerNameW(pipe, core::mem::transmute(clientcomputername), clientcomputernamelength) } #[inline] pub unsafe fn GetNamedPipeClientProcessId(pipe: super::super::Foundation::HANDLE, clientprocessid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientProcessId(pipe : super::super::Foundation:: HANDLE, clientprocessid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientProcessId(core::mem::transmute(pipe), core::mem::transmute(clientprocessid)).ok() + GetNamedPipeClientProcessId(pipe, core::mem::transmute(clientprocessid)).ok() } #[inline] pub unsafe fn GetNamedPipeClientSessionId(pipe: super::super::Foundation::HANDLE, clientsessionid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientSessionId(pipe : super::super::Foundation:: HANDLE, clientsessionid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientSessionId(core::mem::transmute(pipe), core::mem::transmute(clientsessionid)).ok() + GetNamedPipeClientSessionId(pipe, core::mem::transmute(clientsessionid)).ok() } #[inline] pub unsafe fn GetNamedPipeHandleStateA(hnamedpipe: super::super::Foundation::HANDLE, lpstate: Option<*mut NAMED_PIPE_MODE>, lpcurinstances: Option<*mut u32>, lpmaxcollectioncount: Option<*mut u32>, lpcollectdatatimeout: Option<*mut u32>, lpusername: Option<&mut [u8]>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeHandleStateA(hnamedpipe : super::super::Foundation:: HANDLE, lpstate : *mut NAMED_PIPE_MODE, lpcurinstances : *mut u32, lpmaxcollectioncount : *mut u32, lpcollectdatatimeout : *mut u32, lpusername : windows_core::PSTR, nmaxusernamesize : u32) -> super::super::Foundation:: BOOL); - GetNamedPipeHandleStateA( - core::mem::transmute(hnamedpipe), - core::mem::transmute(lpstate.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpcurinstances.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpmaxcollectioncount.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpcollectdatatimeout.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpusername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - lpusername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - ) - .ok() + GetNamedPipeHandleStateA(hnamedpipe, core::mem::transmute(lpstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpusername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpusername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn GetNamedPipeHandleStateW(hnamedpipe: super::super::Foundation::HANDLE, lpstate: Option<*mut NAMED_PIPE_MODE>, lpcurinstances: Option<*mut u32>, lpmaxcollectioncount: Option<*mut u32>, lpcollectdatatimeout: Option<*mut u32>, lpusername: Option<&mut [u16]>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeHandleStateW(hnamedpipe : super::super::Foundation:: HANDLE, lpstate : *mut NAMED_PIPE_MODE, lpcurinstances : *mut u32, lpmaxcollectioncount : *mut u32, lpcollectdatatimeout : *mut u32, lpusername : windows_core::PWSTR, nmaxusernamesize : u32) -> super::super::Foundation:: BOOL); - GetNamedPipeHandleStateW( - core::mem::transmute(hnamedpipe), - core::mem::transmute(lpstate.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpcurinstances.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpmaxcollectioncount.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpcollectdatatimeout.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpusername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - lpusername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - ) + GetNamedPipeHandleStateW(hnamedpipe, core::mem::transmute(lpstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcurinstances.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpusername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpusername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetNamedPipeInfo(hnamedpipe: super::super::Foundation::HANDLE, lpflags: Option<*mut NAMED_PIPE_MODE>, lpoutbuffersize: Option<*mut u32>, lpinbuffersize: Option<*mut u32>, lpmaxinstances: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeInfo(hnamedpipe : super::super::Foundation:: HANDLE, lpflags : *mut NAMED_PIPE_MODE, lpoutbuffersize : *mut u32, lpinbuffersize : *mut u32, lpmaxinstances : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeInfo(core::mem::transmute(hnamedpipe), core::mem::transmute(lpflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoutbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpinbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmaxinstances.unwrap_or(core::mem::zeroed()))).ok() + GetNamedPipeInfo(hnamedpipe, core::mem::transmute(lpflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoutbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpinbuffersize.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmaxinstances.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetNamedPipeServerProcessId(pipe: super::super::Foundation::HANDLE, serverprocessid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerProcessId(pipe : super::super::Foundation:: HANDLE, serverprocessid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeServerProcessId(core::mem::transmute(pipe), core::mem::transmute(serverprocessid)).ok() + GetNamedPipeServerProcessId(pipe, core::mem::transmute(serverprocessid)).ok() } #[inline] pub unsafe fn GetNamedPipeServerSessionId(pipe: super::super::Foundation::HANDLE, serversessionid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerSessionId(pipe : super::super::Foundation:: HANDLE, serversessionid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeServerSessionId(core::mem::transmute(pipe), core::mem::transmute(serversessionid)).ok() + GetNamedPipeServerSessionId(pipe, core::mem::transmute(serversessionid)).ok() } #[inline] pub unsafe fn ImpersonateNamedPipeClient(hnamedpipe: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ImpersonateNamedPipeClient(hnamedpipe : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ImpersonateNamedPipeClient(core::mem::transmute(hnamedpipe)).ok() + ImpersonateNamedPipeClient(hnamedpipe).ok() } #[inline] pub unsafe fn PeekNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpbuffer: Option<*mut core::ffi::c_void>, nbuffersize: u32, lpbytesread: Option<*mut u32>, lptotalbytesavail: Option<*mut u32>, lpbytesleftthismessage: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PeekNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbuffersize : u32, lpbytesread : *mut u32, lptotalbytesavail : *mut u32, lpbytesleftthismessage : *mut u32) -> super::super::Foundation:: BOOL); - PeekNamedPipe(core::mem::transmute(hnamedpipe), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nbuffersize), core::mem::transmute(lpbytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptotalbytesavail.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbytesleftthismessage.unwrap_or(core::mem::zeroed()))).ok() + PeekNamedPipe(hnamedpipe, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), nbuffersize, core::mem::transmute(lpbytesread.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptotalbytesavail.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbytesleftthismessage.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetNamedPipeHandleState(hnamedpipe: super::super::Foundation::HANDLE, lpmode: Option<*const NAMED_PIPE_MODE>, lpmaxcollectioncount: Option<*const u32>, lpcollectdatatimeout: Option<*const u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetNamedPipeHandleState(hnamedpipe : super::super::Foundation:: HANDLE, lpmode : *const NAMED_PIPE_MODE, lpmaxcollectioncount : *const u32, lpcollectdatatimeout : *const u32) -> super::super::Foundation:: BOOL); - SetNamedPipeHandleState(core::mem::transmute(hnamedpipe), core::mem::transmute(lpmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(core::mem::zeroed()))).ok() + SetNamedPipeHandleState(hnamedpipe, core::mem::transmute(lpmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn TransactNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesread: *mut u32, lpoverlapped: Option<*mut super::IO::OVERLAPPED>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TransactNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, lpoverlapped : *mut super::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - TransactNamedPipe(core::mem::transmute(hnamedpipe), core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(ninbuffersize), core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(noutbuffersize), core::mem::transmute(lpbytesread), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() + TransactNamedPipe(hnamedpipe, core::mem::transmute(lpinbuffer.unwrap_or(core::mem::zeroed())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(core::mem::zeroed())), noutbuffersize, core::mem::transmute(lpbytesread), core::mem::transmute(lpoverlapped.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WaitNamedPipeA(lpnamedpipename: P0, ntimeout: u32) -> windows_core::Result<()> @@ -139,7 +122,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeA(lpnamedpipename : windows_core::PCSTR, ntimeout : u32) -> super::super::Foundation:: BOOL); - WaitNamedPipeA(lpnamedpipename.param().abi(), core::mem::transmute(ntimeout)).ok() + WaitNamedPipeA(lpnamedpipename.param().abi(), ntimeout).ok() } #[inline] pub unsafe fn WaitNamedPipeW(lpnamedpipename: P0, ntimeout: u32) -> super::super::Foundation::BOOL @@ -147,7 +130,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeW(lpnamedpipename : windows_core::PCWSTR, ntimeout : u32) -> super::super::Foundation:: BOOL); - WaitNamedPipeW(lpnamedpipename.param().abi(), core::mem::transmute(ntimeout)) + WaitNamedPipeW(lpnamedpipename.param().abi(), ntimeout) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs index 216d34c856..da297e9a5d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn CallNtPowerInformation(informationlevel: POWER_INFORMATION_LEVEL, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("powrprof.dll" "system" fn CallNtPowerInformation(informationlevel : POWER_INFORMATION_LEVEL, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::Foundation:: NTSTATUS); - CallNtPowerInformation(core::mem::transmute(informationlevel), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength)) + CallNtPowerInformation(informationlevel, core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), outputbufferlength) } #[inline] pub unsafe fn CanUserWritePwrScheme() -> bool { @@ -11,7 +11,7 @@ pub unsafe fn CanUserWritePwrScheme() -> bool { #[inline] pub unsafe fn DeletePwrScheme(uiid: u32) -> bool { windows_targets::link!("powrprof.dll" "system" fn DeletePwrScheme(uiid : u32) -> bool); - DeletePwrScheme(core::mem::transmute(uiid)) + DeletePwrScheme(uiid) } #[inline] pub unsafe fn DevicePowerClose() -> bool { @@ -21,7 +21,7 @@ pub unsafe fn DevicePowerClose() -> bool { #[inline] pub unsafe fn DevicePowerEnumDevices(queryindex: u32, queryinterpretationflags: u32, queryflags: u32, preturnbuffer: Option<*mut u8>, pbuffersize: *mut u32) -> bool { windows_targets::link!("powrprof.dll" "system" fn DevicePowerEnumDevices(queryindex : u32, queryinterpretationflags : u32, queryflags : u32, preturnbuffer : *mut u8, pbuffersize : *mut u32) -> bool); - DevicePowerEnumDevices(core::mem::transmute(queryindex), core::mem::transmute(queryinterpretationflags), core::mem::transmute(queryflags), core::mem::transmute(preturnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) + DevicePowerEnumDevices(queryindex, queryinterpretationflags, queryflags, core::mem::transmute(preturnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) } #[inline] pub unsafe fn DevicePowerOpen(debugmask: Option) -> bool { @@ -34,12 +34,12 @@ where P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn DevicePowerSetDeviceState(devicedescription : windows_core::PCWSTR, setflags : u32, setdata : *const core::ffi::c_void) -> u32); - DevicePowerSetDeviceState(devicedescription.param().abi(), core::mem::transmute(setflags), core::mem::transmute(setdata.unwrap_or(core::mem::zeroed()))) + DevicePowerSetDeviceState(devicedescription.param().abi(), setflags, core::mem::transmute(setdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumPwrSchemes(lpfn: PWRSCHEMESENUMPROC, lparam: super::super::Foundation::LPARAM) -> bool { windows_targets::link!("powrprof.dll" "system" fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> bool); - EnumPwrSchemes(core::mem::transmute(lpfn), core::mem::transmute(lparam)) + EnumPwrSchemes(lpfn, lparam) } #[inline] pub unsafe fn GetActivePwrScheme(puiid: *mut u32) -> bool { @@ -54,7 +54,7 @@ pub unsafe fn GetCurrentPowerPolicies(pglobalpowerpolicy: *mut GLOBAL_POWER_POLI #[inline] pub unsafe fn GetDevicePowerState(hdevice: super::super::Foundation::HANDLE, pfon: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetDevicePowerState(hdevice : super::super::Foundation:: HANDLE, pfon : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetDevicePowerState(core::mem::transmute(hdevice), core::mem::transmute(pfon)) + GetDevicePowerState(hdevice, core::mem::transmute(pfon)) } #[inline] pub unsafe fn GetPwrCapabilities(lpspc: *mut SYSTEM_POWER_CAPABILITIES) -> bool { @@ -74,7 +74,7 @@ pub unsafe fn GetSystemPowerStatus(lpsystempowerstatus: *mut SYSTEM_POWER_STATUS #[inline] pub unsafe fn IsAdminOverrideActive(papp: *const ADMINISTRATOR_POWER_POLICY) -> bool { windows_targets::link!("powrprof.dll" "system" fn IsAdminOverrideActive(papp : *const ADMINISTRATOR_POWER_POLICY) -> bool); - IsAdminOverrideActive(core::mem::transmute(papp)) + IsAdminOverrideActive(papp) } #[inline] pub unsafe fn IsPwrHibernateAllowed() -> bool { @@ -99,37 +99,37 @@ pub unsafe fn IsSystemResumeAutomatic() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerCanRestoreIndividualDefaultPowerScheme(core::mem::transmute(schemeguid)) + PowerCanRestoreIndividualDefaultPowerScheme(schemeguid) } #[inline] pub unsafe fn PowerClearRequest(powerrequest: super::super::Foundation::HANDLE, requesttype: POWER_REQUEST_TYPE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PowerClearRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); - PowerClearRequest(core::mem::transmute(powerrequest), core::mem::transmute(requesttype)).ok() + PowerClearRequest(powerrequest, requesttype).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerCreatePossibleSetting(rootsystempowerkey: Option, subgroupofpowersettingsguid: *const windows_core::GUID, powersettingguid: *const windows_core::GUID, possiblesettingindex: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerCreatePossibleSetting(rootsystempowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, possiblesettingindex : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerCreatePossibleSetting(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid), core::mem::transmute(powersettingguid), core::mem::transmute(possiblesettingindex)) + PowerCreatePossibleSetting(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), subgroupofpowersettingsguid, powersettingguid, possiblesettingindex) } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn PowerCreateRequest(context: *const super::Threading::REASON_CONTEXT) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn PowerCreateRequest(context : *const super::Threading:: REASON_CONTEXT) -> super::super::Foundation:: HANDLE); - let result__ = PowerCreateRequest(core::mem::transmute(context)); + let result__ = PowerCreateRequest(context); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerCreateSetting(rootsystempowerkey: Option, subgroupofpowersettingsguid: *const windows_core::GUID, powersettingguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerCreateSetting(rootsystempowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerCreateSetting(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid), core::mem::transmute(powersettingguid)) + PowerCreateSetting(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), subgroupofpowersettingsguid, powersettingguid) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerDeleteScheme(rootpowerkey: Option, schemeguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerDeleteScheme(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerDeleteScheme(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid)) + PowerDeleteScheme(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemeguid) } #[inline] pub unsafe fn PowerDeterminePlatformRole() -> POWER_PLATFORM_ROLE { @@ -139,19 +139,19 @@ pub unsafe fn PowerDeterminePlatformRole() -> POWER_PLATFORM_ROLE { #[inline] pub unsafe fn PowerDeterminePlatformRoleEx(version: POWER_PLATFORM_ROLE_VERSION) -> POWER_PLATFORM_ROLE { windows_targets::link!("powrprof.dll" "system" fn PowerDeterminePlatformRoleEx(version : POWER_PLATFORM_ROLE_VERSION) -> POWER_PLATFORM_ROLE); - PowerDeterminePlatformRoleEx(core::mem::transmute(version)) + PowerDeterminePlatformRoleEx(version) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerDuplicateScheme(rootpowerkey: Option, sourceschemeguid: *const windows_core::GUID, destinationschemeguid: *mut *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerDuplicateScheme(rootpowerkey : super::Registry:: HKEY, sourceschemeguid : *const windows_core::GUID, destinationschemeguid : *mut *mut windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerDuplicateScheme(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(sourceschemeguid), core::mem::transmute(destinationschemeguid)) + PowerDuplicateScheme(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), sourceschemeguid, core::mem::transmute(destinationschemeguid)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerEnumerate(rootpowerkey: Option, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, accessflags: POWER_DATA_ACCESSOR, index: u32, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerEnumerate(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, accessflags : POWER_DATA_ACCESSOR, index : u32, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerEnumerate(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessflags), core::mem::transmute(index), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + PowerEnumerate(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), accessflags, index, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -177,19 +177,19 @@ pub unsafe fn PowerIsSettingRangeDefined(subkeyguid: Option<*const windows_core: #[inline] pub unsafe fn PowerOpenSystemPowerKey(phsystempowerkey: *mut super::Registry::HKEY, access: u32, openexisting: bool) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerOpenSystemPowerKey(phsystempowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); - PowerOpenSystemPowerKey(core::mem::transmute(phsystempowerkey), core::mem::transmute(access), openexisting.into()) + PowerOpenSystemPowerKey(core::mem::transmute(phsystempowerkey), access, openexisting.into()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerOpenUserPowerKey(phuserpowerkey: *mut super::Registry::HKEY, access: u32, openexisting: bool) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerOpenUserPowerKey(phuserpowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); - PowerOpenUserPowerKey(core::mem::transmute(phuserpowerkey), core::mem::transmute(access), openexisting.into()) + PowerOpenUserPowerKey(core::mem::transmute(phuserpowerkey), access, openexisting.into()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadACDefaultIndex(rootpowerkey: Option, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, acdefaultindex: *mut u32) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerReadACDefaultIndex(rootpowerkey : super::Registry:: HKEY, schemepersonalityguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, acdefaultindex : *mut u32) -> u32); - PowerReadACDefaultIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemepersonalityguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid), core::mem::transmute(acdefaultindex)) + PowerReadACDefaultIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), powersettingguid, core::mem::transmute(acdefaultindex)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -207,7 +207,7 @@ pub unsafe fn PowerReadACValueIndex(rootpowerkey: Option, #[inline] pub unsafe fn PowerReadDCDefaultIndex(rootpowerkey: Option, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, dcdefaultindex: *mut u32) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerReadDCDefaultIndex(rootpowerkey : super::Registry:: HKEY, schemepersonalityguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, dcdefaultindex : *mut u32) -> u32); - PowerReadDCDefaultIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemepersonalityguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid), core::mem::transmute(dcdefaultindex)) + PowerReadDCDefaultIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), powersettingguid, core::mem::transmute(dcdefaultindex)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -243,19 +243,19 @@ pub unsafe fn PowerReadIconResourceSpecifier(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, possiblesettingindex: u32, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerReadPossibleDescription(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, possiblesettingindex : u32, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadPossibleDescription(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(possiblesettingindex), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + PowerReadPossibleDescription(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadPossibleFriendlyName(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, possiblesettingindex: u32, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerReadPossibleFriendlyName(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, possiblesettingindex : u32, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadPossibleFriendlyName(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(possiblesettingindex), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + PowerReadPossibleFriendlyName(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadPossibleValue(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, r#type: Option<*mut u32>, possiblesettingindex: u32, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerReadPossibleValue(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, r#type : *mut u32, possiblesettingindex : u32, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadPossibleValue(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type.unwrap_or(core::mem::zeroed())), core::mem::transmute(possiblesettingindex), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) + PowerReadPossibleValue(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type.unwrap_or(core::mem::zeroed())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize)) } #[inline] pub unsafe fn PowerReadSettingAttributes(subgroupguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>) -> u32 { @@ -289,18 +289,18 @@ pub unsafe fn PowerReadValueUnitsSpecifier(rootpowerkey: Option, registrationhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("powrprof.dll" "system" fn PowerRegisterForEffectivePowerModeNotifications(version : u32, callback : EFFECTIVE_POWER_MODE_CALLBACK, context : *const core::ffi::c_void, registrationhandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PowerRegisterForEffectivePowerModeNotifications(core::mem::transmute(version), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registrationhandle)).ok() + PowerRegisterForEffectivePowerModeNotifications(version, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registrationhandle)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn PowerRegisterSuspendResumeNotification(flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS, recipient: super::super::Foundation::HANDLE, registrationhandle: *mut *mut core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerRegisterSuspendResumeNotification(flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS, recipient : super::super::Foundation:: HANDLE, registrationhandle : *mut *mut core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - PowerRegisterSuspendResumeNotification(core::mem::transmute(flags), core::mem::transmute(recipient), core::mem::transmute(registrationhandle)) + PowerRegisterSuspendResumeNotification(flags, recipient, core::mem::transmute(registrationhandle)) } #[inline] pub unsafe fn PowerRemovePowerSetting(powersettingsubkeyguid: *const windows_core::GUID, powersettingguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerRemovePowerSetting(powersettingsubkeyguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerRemovePowerSetting(core::mem::transmute(powersettingsubkeyguid), core::mem::transmute(powersettingguid)) + PowerRemovePowerSetting(powersettingsubkeyguid, powersettingguid) } #[inline] pub unsafe fn PowerReplaceDefaultPowerSchemes() -> u32 { @@ -310,7 +310,7 @@ pub unsafe fn PowerReplaceDefaultPowerSchemes() -> u32 { #[inline] pub unsafe fn PowerReportThermalEvent(event: *const THERMAL_EVENT) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerReportThermalEvent(event : *const THERMAL_EVENT) -> super::super::Foundation:: WIN32_ERROR); - PowerReportThermalEvent(core::mem::transmute(event)) + PowerReportThermalEvent(event) } #[inline] pub unsafe fn PowerRestoreDefaultPowerSchemes() -> super::super::Foundation::WIN32_ERROR { @@ -320,7 +320,7 @@ pub unsafe fn PowerRestoreDefaultPowerSchemes() -> super::super::Foundation::WIN #[inline] pub unsafe fn PowerRestoreIndividualDefaultPowerScheme(schemeguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerRestoreIndividualDefaultPowerScheme(schemeguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerRestoreIndividualDefaultPowerScheme(core::mem::transmute(schemeguid)) + PowerRestoreIndividualDefaultPowerScheme(schemeguid) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -331,122 +331,122 @@ pub unsafe fn PowerSetActiveScheme(userrootpowerkey: Option windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PowerSetRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); - PowerSetRequest(core::mem::transmute(powerrequest), core::mem::transmute(requesttype)).ok() + PowerSetRequest(powerrequest, requesttype).ok() } #[inline] pub unsafe fn PowerSettingAccessCheck(accessflags: POWER_DATA_ACCESSOR, powerguid: Option<*const windows_core::GUID>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerSettingAccessCheck(accessflags : POWER_DATA_ACCESSOR, powerguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerSettingAccessCheck(core::mem::transmute(accessflags), core::mem::transmute(powerguid.unwrap_or(core::mem::zeroed()))) + PowerSettingAccessCheck(accessflags, core::mem::transmute(powerguid.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerSettingAccessCheckEx(accessflags: POWER_DATA_ACCESSOR, powerguid: Option<*const windows_core::GUID>, accesstype: super::Registry::REG_SAM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerSettingAccessCheckEx(accessflags : POWER_DATA_ACCESSOR, powerguid : *const windows_core::GUID, accesstype : super::Registry:: REG_SAM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - PowerSettingAccessCheckEx(core::mem::transmute(accessflags), core::mem::transmute(powerguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(accesstype)) + PowerSettingAccessCheckEx(accessflags, core::mem::transmute(powerguid.unwrap_or(core::mem::zeroed())), accesstype) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn PowerSettingRegisterNotification(settingguid: *const windows_core::GUID, flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS, recipient: super::super::Foundation::HANDLE, registrationhandle: *mut *mut core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerSettingRegisterNotification(settingguid : *const windows_core::GUID, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS, recipient : super::super::Foundation:: HANDLE, registrationhandle : *mut *mut core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - PowerSettingRegisterNotification(core::mem::transmute(settingguid), core::mem::transmute(flags), core::mem::transmute(recipient), core::mem::transmute(registrationhandle)) + PowerSettingRegisterNotification(settingguid, flags, recipient, core::mem::transmute(registrationhandle)) } #[inline] pub unsafe fn PowerSettingUnregisterNotification(registrationhandle: HPOWERNOTIFY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerSettingUnregisterNotification(registrationhandle : HPOWERNOTIFY) -> super::super::Foundation:: WIN32_ERROR); - PowerSettingUnregisterNotification(core::mem::transmute(registrationhandle)) + PowerSettingUnregisterNotification(registrationhandle) } #[inline] pub unsafe fn PowerUnregisterFromEffectivePowerModeNotifications(registrationhandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("powrprof.dll" "system" fn PowerUnregisterFromEffectivePowerModeNotifications(registrationhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - PowerUnregisterFromEffectivePowerModeNotifications(core::mem::transmute(registrationhandle)).ok() + PowerUnregisterFromEffectivePowerModeNotifications(registrationhandle).ok() } #[inline] pub unsafe fn PowerUnregisterSuspendResumeNotification(registrationhandle: HPOWERNOTIFY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerUnregisterSuspendResumeNotification(registrationhandle : HPOWERNOTIFY) -> super::super::Foundation:: WIN32_ERROR); - PowerUnregisterSuspendResumeNotification(core::mem::transmute(registrationhandle)) + PowerUnregisterSuspendResumeNotification(registrationhandle) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteACDefaultIndex(rootsystempowerkey: Option, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, defaultacindex: u32) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerWriteACDefaultIndex(rootsystempowerkey : super::Registry:: HKEY, schemepersonalityguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, defaultacindex : u32) -> u32); - PowerWriteACDefaultIndex(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemepersonalityguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid), core::mem::transmute(defaultacindex)) + PowerWriteACDefaultIndex(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), powersettingguid, defaultacindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteACValueIndex(rootpowerkey: Option, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, acvalueindex: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteACValueIndex(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, acvalueindex : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteACValueIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(acvalueindex)) + PowerWriteACValueIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), acvalueindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteDCDefaultIndex(rootsystempowerkey: Option, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, defaultdcindex: u32) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerWriteDCDefaultIndex(rootsystempowerkey : super::Registry:: HKEY, schemepersonalityguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, defaultdcindex : u32) -> u32); - PowerWriteDCDefaultIndex(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemepersonalityguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid), core::mem::transmute(defaultdcindex)) + PowerWriteDCDefaultIndex(core::mem::transmute(rootsystempowerkey.unwrap_or(core::mem::zeroed())), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), powersettingguid, defaultdcindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteDCValueIndex(rootpowerkey: Option, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, dcvalueindex: u32) -> u32 { windows_targets::link!("powrprof.dll" "system" fn PowerWriteDCValueIndex(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, dcvalueindex : u32) -> u32); - PowerWriteDCValueIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(dcvalueindex)) + PowerWriteDCValueIndex(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), dcvalueindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteDescription(rootpowerkey: Option, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteDescription(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteDescription(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteDescription(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteFriendlyName(rootpowerkey: Option, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteFriendlyName(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteFriendlyName(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteFriendlyName(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteIconResourceSpecifier(rootpowerkey: Option, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteIconResourceSpecifier(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteIconResourceSpecifier(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(schemeguid), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteIconResourceSpecifier(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWritePossibleDescription(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, possiblesettingindex: u32, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWritePossibleDescription(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, possiblesettingindex : u32, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWritePossibleDescription(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(possiblesettingindex), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWritePossibleDescription(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWritePossibleFriendlyName(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, possiblesettingindex: u32, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWritePossibleFriendlyName(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, possiblesettingindex : u32, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWritePossibleFriendlyName(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(possiblesettingindex), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWritePossibleFriendlyName(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWritePossibleValue(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, r#type: u32, possiblesettingindex: u32, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWritePossibleValue(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, r#type : u32, possiblesettingindex : u32, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWritePossibleValue(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#type), core::mem::transmute(possiblesettingindex), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWritePossibleValue(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), r#type, possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[inline] pub unsafe fn PowerWriteSettingAttributes(subgroupguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, attributes: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteSettingAttributes(subgroupguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, attributes : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteSettingAttributes(core::mem::transmute(subgroupguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(attributes)) + PowerWriteSettingAttributes(core::mem::transmute(subgroupguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), attributes) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteValueIncrement(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valueincrement: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueIncrement(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, valueincrement : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteValueIncrement(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(valueincrement)) + PowerWriteValueIncrement(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), valueincrement) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteValueMax(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valuemaximum: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueMax(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, valuemaximum : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteValueMax(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(valuemaximum)) + PowerWriteValueMax(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), valuemaximum) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteValueMin(rootpowerkey: Option, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valueminimum: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueMin(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, valueminimum : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteValueMin(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(valueminimum)) + PowerWriteValueMin(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(powersettingguid.unwrap_or(core::mem::zeroed())), valueminimum) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -457,46 +457,46 @@ pub unsafe fn PowerWriteValueUnitsSpecifier(rootpowerkey: Option bool { windows_targets::link!("powrprof.dll" "system" fn ReadGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> bool); - ReadGlobalPwrPolicy(core::mem::transmute(pglobalpowerpolicy)) + ReadGlobalPwrPolicy(pglobalpowerpolicy) } #[inline] pub unsafe fn ReadProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: *mut MACHINE_PROCESSOR_POWER_POLICY) -> bool { windows_targets::link!("powrprof.dll" "system" fn ReadProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *mut MACHINE_PROCESSOR_POWER_POLICY) -> bool); - ReadProcessorPwrScheme(core::mem::transmute(uiid), core::mem::transmute(pmachineprocessorpowerpolicy)) + ReadProcessorPwrScheme(uiid, core::mem::transmute(pmachineprocessorpowerpolicy)) } #[inline] pub unsafe fn ReadPwrScheme(uiid: u32, ppowerpolicy: *mut POWER_POLICY) -> bool { windows_targets::link!("powrprof.dll" "system" fn ReadPwrScheme(uiid : u32, ppowerpolicy : *mut POWER_POLICY) -> bool); - ReadPwrScheme(core::mem::transmute(uiid), core::mem::transmute(ppowerpolicy)) + ReadPwrScheme(uiid, core::mem::transmute(ppowerpolicy)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterPowerSettingNotification(hrecipient: super::super::Foundation::HANDLE, powersettingguid: *const windows_core::GUID, flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn RegisterPowerSettingNotification(hrecipient : super::super::Foundation:: HANDLE, powersettingguid : *const windows_core::GUID, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS) -> HPOWERNOTIFY); - let result__ = RegisterPowerSettingNotification(core::mem::transmute(hrecipient), core::mem::transmute(powersettingguid), core::mem::transmute(flags)); + let result__ = RegisterPowerSettingNotification(hrecipient, powersettingguid, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterSuspendResumeNotification(hrecipient: super::super::Foundation::HANDLE, flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn RegisterSuspendResumeNotification(hrecipient : super::super::Foundation:: HANDLE, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS) -> HPOWERNOTIFY); - let result__ = RegisterSuspendResumeNotification(core::mem::transmute(hrecipient), core::mem::transmute(flags)); + let result__ = RegisterSuspendResumeNotification(hrecipient, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RequestWakeupLatency(latency: LATENCY_TIME) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn RequestWakeupLatency(latency : LATENCY_TIME) -> super::super::Foundation:: BOOL); - RequestWakeupLatency(core::mem::transmute(latency)) + RequestWakeupLatency(latency) } #[inline] pub unsafe fn SetActivePwrScheme(uiid: u32, pglobalpowerpolicy: Option<*const GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*const POWER_POLICY>) -> bool { windows_targets::link!("powrprof.dll" "system" fn SetActivePwrScheme(uiid : u32, pglobalpowerpolicy : *const GLOBAL_POWER_POLICY, ppowerpolicy : *const POWER_POLICY) -> bool); - SetActivePwrScheme(core::mem::transmute(uiid), core::mem::transmute(pglobalpowerpolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppowerpolicy.unwrap_or(core::mem::zeroed()))) + SetActivePwrScheme(uiid, core::mem::transmute(pglobalpowerpolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppowerpolicy.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetSuspendState(bhibernate: bool, bforce: bool, bwakeupeventsdisabled: bool) -> bool { windows_targets::link!("powrprof.dll" "system" fn SetSuspendState(bhibernate : bool, bforce : bool, bwakeupeventsdisabled : bool) -> bool); - SetSuspendState(core::mem::transmute(bhibernate), core::mem::transmute(bforce), core::mem::transmute(bwakeupeventsdisabled)) + SetSuspendState(bhibernate, bforce, bwakeupeventsdisabled) } #[inline] pub unsafe fn SetSystemPowerState(fsuspend: bool, fforce: bool) -> windows_core::Result<()> { @@ -506,17 +506,17 @@ pub unsafe fn SetSystemPowerState(fsuspend: bool, fforce: bool) -> windows_core: #[inline] pub unsafe fn SetThreadExecutionState(esflags: EXECUTION_STATE) -> EXECUTION_STATE { windows_targets::link!("kernel32.dll" "system" fn SetThreadExecutionState(esflags : EXECUTION_STATE) -> EXECUTION_STATE); - SetThreadExecutionState(core::mem::transmute(esflags)) + SetThreadExecutionState(esflags) } #[inline] pub unsafe fn UnregisterPowerSettingNotification(handle: HPOWERNOTIFY) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnregisterPowerSettingNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); - UnregisterPowerSettingNotification(core::mem::transmute(handle)).ok() + UnregisterPowerSettingNotification(handle).ok() } #[inline] pub unsafe fn UnregisterSuspendResumeNotification(handle: HPOWERNOTIFY) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnregisterSuspendResumeNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); - UnregisterSuspendResumeNotification(core::mem::transmute(handle)).ok() + UnregisterSuspendResumeNotification(handle).ok() } #[inline] pub unsafe fn ValidatePowerPolicies(pglobalpowerpolicy: Option<*mut GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*mut POWER_POLICY>) -> bool { @@ -526,12 +526,12 @@ pub unsafe fn ValidatePowerPolicies(pglobalpowerpolicy: Option<*mut GLOBAL_POWER #[inline] pub unsafe fn WriteGlobalPwrPolicy(pglobalpowerpolicy: *const GLOBAL_POWER_POLICY) -> bool { windows_targets::link!("powrprof.dll" "system" fn WriteGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> bool); - WriteGlobalPwrPolicy(core::mem::transmute(pglobalpowerpolicy)) + WriteGlobalPwrPolicy(pglobalpowerpolicy) } #[inline] pub unsafe fn WriteProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: *const MACHINE_PROCESSOR_POWER_POLICY) -> bool { windows_targets::link!("powrprof.dll" "system" fn WriteProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *const MACHINE_PROCESSOR_POWER_POLICY) -> bool); - WriteProcessorPwrScheme(core::mem::transmute(uiid), core::mem::transmute(pmachineprocessorpowerpolicy)) + WriteProcessorPwrScheme(uiid, pmachineprocessorpowerpolicy) } #[inline] pub unsafe fn WritePwrScheme(puiid: *const u32, lpszschemename: P1, lpszdescription: P2, lpscheme: *const POWER_POLICY) -> bool @@ -540,7 +540,7 @@ where P2: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn WritePwrScheme(puiid : *const u32, lpszschemename : windows_core::PCWSTR, lpszdescription : windows_core::PCWSTR, lpscheme : *const POWER_POLICY) -> bool); - WritePwrScheme(core::mem::transmute(puiid), lpszschemename.param().abi(), lpszdescription.param().abi(), core::mem::transmute(lpscheme)) + WritePwrScheme(puiid, lpszschemename.param().abi(), lpszdescription.param().abi(), lpscheme) } pub const ACCESS_ACTIVE_OVERLAY_SCHEME: POWER_DATA_ACCESSOR = POWER_DATA_ACCESSOR(27i32); pub const ACCESS_ACTIVE_SCHEME: POWER_DATA_ACCESSOR = POWER_DATA_ACCESSOR(19i32); diff --git a/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs index 7935e7fa4c..5b89c9cb25 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs @@ -1,77 +1,77 @@ #[inline] pub unsafe fn EmptyWorkingSet(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - EmptyWorkingSet(core::mem::transmute(hprocess)).ok() + EmptyWorkingSet(hprocess).ok() } #[inline] pub unsafe fn EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EnumDeviceDrivers(lpimagebase : *mut *mut core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - EnumDeviceDrivers(core::mem::transmute(lpimagebase), core::mem::transmute(cb), core::mem::transmute(lpcbneeded)).ok() + EnumDeviceDrivers(core::mem::transmute(lpimagebase), cb, core::mem::transmute(lpcbneeded)).ok() } #[inline] pub unsafe fn EnumPageFilesA(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKA, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - EnumPageFilesA(core::mem::transmute(pcallbackroutine), core::mem::transmute(pcontext)).ok() + EnumPageFilesA(pcallbackroutine, core::mem::transmute(pcontext)).ok() } #[inline] pub unsafe fn EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - EnumPageFilesW(core::mem::transmute(pcallbackroutine), core::mem::transmute(pcontext)).ok() + EnumPageFilesW(pcallbackroutine, core::mem::transmute(pcontext)).ok() } #[inline] pub unsafe fn EnumProcessModules(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - EnumProcessModules(core::mem::transmute(hprocess), core::mem::transmute(lphmodule), core::mem::transmute(cb), core::mem::transmute(lpcbneeded)).ok() + EnumProcessModules(hprocess, core::mem::transmute(lphmodule), cb, core::mem::transmute(lpcbneeded)).ok() } #[inline] pub unsafe fn EnumProcessModulesEx(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: ENUM_PROCESS_MODULES_EX_FLAGS) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : ENUM_PROCESS_MODULES_EX_FLAGS) -> super::super::Foundation:: BOOL); - EnumProcessModulesEx(core::mem::transmute(hprocess), core::mem::transmute(lphmodule), core::mem::transmute(cb), core::mem::transmute(lpcbneeded), core::mem::transmute(dwfilterflag)).ok() + EnumProcessModulesEx(hprocess, core::mem::transmute(lphmodule), cb, core::mem::transmute(lpcbneeded), dwfilterflag).ok() } #[inline] pub unsafe fn EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - EnumProcesses(core::mem::transmute(lpidprocess), core::mem::transmute(cb), core::mem::transmute(lpcbneeded)).ok() + EnumProcesses(core::mem::transmute(lpidprocess), cb, core::mem::transmute(lpcbneeded)).ok() } #[inline] pub unsafe fn GetDeviceDriverBaseNameA(imagebase: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverBaseNameA(imagebase : *const core::ffi::c_void, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - GetDeviceDriverBaseNameA(core::mem::transmute(imagebase), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetDeviceDriverBaseNameA(imagebase, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetDeviceDriverBaseNameW(imagebase: *const core::ffi::c_void, lpbasename: &mut [u16]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverBaseNameW(imagebase : *const core::ffi::c_void, lpbasename : windows_core::PWSTR, nsize : u32) -> u32); - GetDeviceDriverBaseNameW(core::mem::transmute(imagebase), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + GetDeviceDriverBaseNameW(imagebase, core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetDeviceDriverFileNameA(imagebase: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverFileNameA(imagebase : *const core::ffi::c_void, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - GetDeviceDriverFileNameA(core::mem::transmute(imagebase), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetDeviceDriverFileNameA(imagebase, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetDeviceDriverFileNameW(imagebase: *const core::ffi::c_void, lpfilename: &mut [u16]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverFileNameW(imagebase : *const core::ffi::c_void, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - GetDeviceDriverFileNameW(core::mem::transmute(imagebase), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetDeviceDriverFileNameW(imagebase, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetMappedFileNameA(hprocess: super::super::Foundation::HANDLE, lpv: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetMappedFileNameA(hprocess : super::super::Foundation:: HANDLE, lpv : *const core::ffi::c_void, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - GetMappedFileNameA(core::mem::transmute(hprocess), core::mem::transmute(lpv), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetMappedFileNameA(hprocess, lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetMappedFileNameW(hprocess: super::super::Foundation::HANDLE, lpv: *const core::ffi::c_void, lpfilename: &mut [u16]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetMappedFileNameW(hprocess : super::super::Foundation:: HANDLE, lpv : *const core::ffi::c_void, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - GetMappedFileNameW(core::mem::transmute(hprocess), core::mem::transmute(lpv), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetMappedFileNameW(hprocess, lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleBaseNameA(hprocess: super::super::Foundation::HANDLE, hmodule: Option, lpbasename: &mut [u8]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetModuleBaseNameA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : windows_core::PSTR, nsize : u32) -> u32); - GetModuleBaseNameA(core::mem::transmute(hprocess), core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + GetModuleBaseNameA(hprocess, core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleBaseNameW(hprocess: super::super::Foundation::HANDLE, hmodule: Option, lpbasename: &mut [u16]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetModuleBaseNameW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : windows_core::PWSTR, nsize : u32) -> u32); - GetModuleBaseNameW(core::mem::transmute(hprocess), core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + GetModuleBaseNameW(hprocess, core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleFileNameExA(hprocess: Option, hmodule: Option, lpfilename: &mut [u8]) -> u32 { @@ -86,117 +86,117 @@ pub unsafe fn GetModuleFileNameExW(hprocess: Option windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> super::super::Foundation:: BOOL); - GetModuleInformation(core::mem::transmute(hprocess), core::mem::transmute(hmodule), core::mem::transmute(lpmodinfo), core::mem::transmute(cb)).ok() + GetModuleInformation(hprocess, hmodule, core::mem::transmute(lpmodinfo), cb).ok() } #[inline] pub unsafe fn GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); - GetPerformanceInfo(core::mem::transmute(pperformanceinformation), core::mem::transmute(cb)).ok() + GetPerformanceInfo(core::mem::transmute(pperformanceinformation), cb).ok() } #[inline] pub unsafe fn GetProcessImageFileNameA(hprocess: super::super::Foundation::HANDLE, lpimagefilename: &mut [u8]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetProcessImageFileNameA(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PSTR, nsize : u32) -> u32); - GetProcessImageFileNameA(core::mem::transmute(hprocess), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + GetProcessImageFileNameA(hprocess, core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetProcessImageFileNameW(hprocess: super::super::Foundation::HANDLE, lpimagefilename: &mut [u16]) -> u32 { windows_targets::link!("psapi.dll" "system" fn GetProcessImageFileNameW(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PWSTR, nsize : u32) -> u32); - GetProcessImageFileNameW(core::mem::transmute(hprocess), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + GetProcessImageFileNameW(hprocess, core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetProcessMemoryInfo(process: super::super::Foundation::HANDLE, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> super::super::Foundation:: BOOL); - GetProcessMemoryInfo(core::mem::transmute(process), core::mem::transmute(ppsmemcounters), core::mem::transmute(cb)).ok() + GetProcessMemoryInfo(process, core::mem::transmute(ppsmemcounters), cb).ok() } #[inline] pub unsafe fn GetWsChanges(hprocess: super::super::Foundation::HANDLE, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); - GetWsChanges(core::mem::transmute(hprocess), core::mem::transmute(lpwatchinfo), core::mem::transmute(cb)).ok() + GetWsChanges(hprocess, core::mem::transmute(lpwatchinfo), cb).ok() } #[inline] pub unsafe fn GetWsChangesEx(hprocess: super::super::Foundation::HANDLE, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> super::super::Foundation:: BOOL); - GetWsChangesEx(core::mem::transmute(hprocess), core::mem::transmute(lpwatchinfoex), core::mem::transmute(cb)).ok() + GetWsChangesEx(hprocess, core::mem::transmute(lpwatchinfoex), core::mem::transmute(cb)).ok() } #[inline] pub unsafe fn InitializeProcessForWsWatch(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - InitializeProcessForWsWatch(core::mem::transmute(hprocess)).ok() + InitializeProcessForWsWatch(hprocess).ok() } #[inline] pub unsafe fn K32EmptyWorkingSet(hprocess: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - K32EmptyWorkingSet(core::mem::transmute(hprocess)) + K32EmptyWorkingSet(hprocess) } #[inline] pub unsafe fn K32EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EnumDeviceDrivers(lpimagebase : *mut *mut core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - K32EnumDeviceDrivers(core::mem::transmute(lpimagebase), core::mem::transmute(cb), core::mem::transmute(lpcbneeded)) + K32EnumDeviceDrivers(core::mem::transmute(lpimagebase), cb, core::mem::transmute(lpcbneeded)) } #[inline] pub unsafe fn K32EnumPageFilesA(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKA, pcontext: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - K32EnumPageFilesA(core::mem::transmute(pcallbackroutine), core::mem::transmute(pcontext)) + K32EnumPageFilesA(pcallbackroutine, core::mem::transmute(pcontext)) } #[inline] pub unsafe fn K32EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pcontext: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - K32EnumPageFilesW(core::mem::transmute(pcallbackroutine), core::mem::transmute(pcontext)) + K32EnumPageFilesW(pcallbackroutine, core::mem::transmute(pcontext)) } #[inline] pub unsafe fn K32EnumProcessModules(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - K32EnumProcessModules(core::mem::transmute(hprocess), core::mem::transmute(lphmodule), core::mem::transmute(cb), core::mem::transmute(lpcbneeded)) + K32EnumProcessModules(hprocess, core::mem::transmute(lphmodule), cb, core::mem::transmute(lpcbneeded)) } #[inline] pub unsafe fn K32EnumProcessModulesEx(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : u32) -> super::super::Foundation:: BOOL); - K32EnumProcessModulesEx(core::mem::transmute(hprocess), core::mem::transmute(lphmodule), core::mem::transmute(cb), core::mem::transmute(lpcbneeded), core::mem::transmute(dwfilterflag)) + K32EnumProcessModulesEx(hprocess, core::mem::transmute(lphmodule), cb, core::mem::transmute(lpcbneeded), dwfilterflag) } #[inline] pub unsafe fn K32EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - K32EnumProcesses(core::mem::transmute(lpidprocess), core::mem::transmute(cb), core::mem::transmute(lpcbneeded)) + K32EnumProcesses(core::mem::transmute(lpidprocess), cb, core::mem::transmute(lpcbneeded)) } #[inline] pub unsafe fn K32GetDeviceDriverBaseNameA(imagebase: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverBaseNameA(imagebase : *const core::ffi::c_void, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - K32GetDeviceDriverBaseNameA(core::mem::transmute(imagebase), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetDeviceDriverBaseNameA(imagebase, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetDeviceDriverBaseNameW(imagebase: *const core::ffi::c_void, lpbasename: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverBaseNameW(imagebase : *const core::ffi::c_void, lpbasename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetDeviceDriverBaseNameW(core::mem::transmute(imagebase), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + K32GetDeviceDriverBaseNameW(imagebase, core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetDeviceDriverFileNameA(imagebase: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverFileNameA(imagebase : *const core::ffi::c_void, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - K32GetDeviceDriverFileNameA(core::mem::transmute(imagebase), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetDeviceDriverFileNameA(imagebase, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetDeviceDriverFileNameW(imagebase: *const core::ffi::c_void, lpfilename: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverFileNameW(imagebase : *const core::ffi::c_void, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetDeviceDriverFileNameW(core::mem::transmute(imagebase), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetDeviceDriverFileNameW(imagebase, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetMappedFileNameA(hprocess: super::super::Foundation::HANDLE, lpv: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetMappedFileNameA(hprocess : super::super::Foundation:: HANDLE, lpv : *const core::ffi::c_void, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - K32GetMappedFileNameA(core::mem::transmute(hprocess), core::mem::transmute(lpv), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetMappedFileNameA(hprocess, lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetMappedFileNameW(hprocess: super::super::Foundation::HANDLE, lpv: *const core::ffi::c_void, lpfilename: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetMappedFileNameW(hprocess : super::super::Foundation:: HANDLE, lpv : *const core::ffi::c_void, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetMappedFileNameW(core::mem::transmute(hprocess), core::mem::transmute(lpv), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetMappedFileNameW(hprocess, lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleBaseNameA(hprocess: super::super::Foundation::HANDLE, hmodule: Option, lpbasename: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetModuleBaseNameA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : windows_core::PSTR, nsize : u32) -> u32); - K32GetModuleBaseNameA(core::mem::transmute(hprocess), core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + K32GetModuleBaseNameA(hprocess, core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleBaseNameW(hprocess: super::super::Foundation::HANDLE, hmodule: Option, lpbasename: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetModuleBaseNameW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetModuleBaseNameW(core::mem::transmute(hprocess), core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + K32GetModuleBaseNameW(hprocess, core::mem::transmute(hmodule.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleFileNameExA(hprocess: Option, hmodule: Option, lpfilename: &mut [u8]) -> u32 { @@ -211,62 +211,62 @@ pub unsafe fn K32GetModuleFileNameExW(hprocess: Option super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> super::super::Foundation:: BOOL); - K32GetModuleInformation(core::mem::transmute(hprocess), core::mem::transmute(hmodule), core::mem::transmute(lpmodinfo), core::mem::transmute(cb)) + K32GetModuleInformation(hprocess, hmodule, core::mem::transmute(lpmodinfo), cb) } #[inline] pub unsafe fn K32GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); - K32GetPerformanceInfo(core::mem::transmute(pperformanceinformation), core::mem::transmute(cb)) + K32GetPerformanceInfo(core::mem::transmute(pperformanceinformation), cb) } #[inline] pub unsafe fn K32GetProcessImageFileNameA(hprocess: super::super::Foundation::HANDLE, lpimagefilename: &mut [u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetProcessImageFileNameA(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PSTR, nsize : u32) -> u32); - K32GetProcessImageFileNameA(core::mem::transmute(hprocess), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + K32GetProcessImageFileNameA(hprocess, core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetProcessImageFileNameW(hprocess: super::super::Foundation::HANDLE, lpimagefilename: &mut [u16]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn K32GetProcessImageFileNameW(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetProcessImageFileNameW(core::mem::transmute(hprocess), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + K32GetProcessImageFileNameW(hprocess, core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetProcessMemoryInfo(process: super::super::Foundation::HANDLE, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> super::super::Foundation:: BOOL); - K32GetProcessMemoryInfo(core::mem::transmute(process), core::mem::transmute(ppsmemcounters), core::mem::transmute(cb)) + K32GetProcessMemoryInfo(process, core::mem::transmute(ppsmemcounters), cb) } #[inline] pub unsafe fn K32GetWsChanges(hprocess: super::super::Foundation::HANDLE, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); - K32GetWsChanges(core::mem::transmute(hprocess), core::mem::transmute(lpwatchinfo), core::mem::transmute(cb)) + K32GetWsChanges(hprocess, core::mem::transmute(lpwatchinfo), cb) } #[inline] pub unsafe fn K32GetWsChangesEx(hprocess: super::super::Foundation::HANDLE, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> super::super::Foundation:: BOOL); - K32GetWsChangesEx(core::mem::transmute(hprocess), core::mem::transmute(lpwatchinfoex), core::mem::transmute(cb)) + K32GetWsChangesEx(hprocess, core::mem::transmute(lpwatchinfoex), core::mem::transmute(cb)) } #[inline] pub unsafe fn K32InitializeProcessForWsWatch(hprocess: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - K32InitializeProcessForWsWatch(core::mem::transmute(hprocess)) + K32InitializeProcessForWsWatch(hprocess) } #[inline] pub unsafe fn K32QueryWorkingSet(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); - K32QueryWorkingSet(core::mem::transmute(hprocess), core::mem::transmute(pv), core::mem::transmute(cb)) + K32QueryWorkingSet(hprocess, core::mem::transmute(pv), cb) } #[inline] pub unsafe fn K32QueryWorkingSetEx(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn K32QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); - K32QueryWorkingSetEx(core::mem::transmute(hprocess), core::mem::transmute(pv), core::mem::transmute(cb)) + K32QueryWorkingSetEx(hprocess, core::mem::transmute(pv), cb) } #[inline] pub unsafe fn QueryWorkingSet(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); - QueryWorkingSet(core::mem::transmute(hprocess), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + QueryWorkingSet(hprocess, core::mem::transmute(pv), cb).ok() } #[inline] pub unsafe fn QueryWorkingSetEx(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { windows_targets::link!("psapi.dll" "system" fn QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); - QueryWorkingSetEx(core::mem::transmute(hprocess), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + QueryWorkingSetEx(hprocess, core::mem::transmute(pv), cb).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs index 6d4299ad49..6646ab936d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs @@ -6,11 +6,11 @@ windows_core::imp::interface_hierarchy!(INetworkTransportSettings, windows_core: impl INetworkTransportSettings { #[cfg(feature = "Win32_Networking_WinSock")] pub unsafe fn ApplySetting(&self, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, valuein: &[u8], lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ApplySetting)(windows_core::Interface::as_raw(self), core::mem::transmute(settingid), valuein.len().try_into().unwrap(), core::mem::transmute(valuein.as_ptr()), core::mem::transmute(lengthout), core::mem::transmute(valueout)).ok() + (windows_core::Interface::vtable(self).ApplySetting)(windows_core::Interface::as_raw(self), settingid, valuein.len().try_into().unwrap(), core::mem::transmute(valuein.as_ptr()), core::mem::transmute(lengthout), core::mem::transmute(valueout)).ok() } #[cfg(feature = "Win32_Networking_WinSock")] pub unsafe fn QuerySetting(&self, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, valuein: &[u8], lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QuerySetting)(windows_core::Interface::as_raw(self), core::mem::transmute(settingid), valuein.len().try_into().unwrap(), core::mem::transmute(valuein.as_ptr()), core::mem::transmute(lengthout), core::mem::transmute(valueout)).ok() + (windows_core::Interface::vtable(self).QuerySetting)(windows_core::Interface::as_raw(self), settingid, valuein.len().try_into().unwrap(), core::mem::transmute(valuein.as_ptr()), core::mem::transmute(lengthout), core::mem::transmute(valueout)).ok() } } #[repr(C)] @@ -178,7 +178,7 @@ impl IRTCBuddy2 { } pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PresenceProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(enproperty), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PresenceProperty)(windows_core::Interface::as_raw(self), enproperty, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EnumeratePresenceDevices(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -728,14 +728,14 @@ impl IRTCClient { (windows_core::Interface::vtable(self).PrepareForShutdown)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetEventFilter(&self, lfilter: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(lfilter)).ok() + (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), lfilter).ok() } pub unsafe fn EventFilter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventFilter)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPreferredMediaTypes(&self, lmediatypes: i32, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreferredMediaTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatypes), core::mem::transmute(fpersistent)).ok() + (windows_core::Interface::vtable(self).SetPreferredMediaTypes)(windows_core::Interface::as_raw(self), lmediatypes, fpersistent).ok() } pub unsafe fn PreferredMediaTypes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -750,10 +750,10 @@ impl IRTCClient { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), core::mem::transmute(entype), core::mem::transmute_copy(bstrlocalphoneuri), pprofile.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), entype, core::mem::transmute_copy(bstrlocalphoneuri), pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetListenForIncomingSessions(&self, enlisten: RTC_LISTEN_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListenForIncomingSessions)(windows_core::Interface::as_raw(self), core::mem::transmute(enlisten)).ok() + (windows_core::Interface::vtable(self).SetListenForIncomingSessions)(windows_core::Interface::as_raw(self), enlisten).ok() } pub unsafe fn ListenForIncomingSessions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -762,43 +762,43 @@ impl IRTCClient { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_NetworkAddresses(&self, ftcp: super::super::Foundation::VARIANT_BOOL, fexternal: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_NetworkAddresses)(windows_core::Interface::as_raw(self), core::mem::transmute(ftcp), core::mem::transmute(fexternal), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_NetworkAddresses)(windows_core::Interface::as_raw(self), ftcp, fexternal, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_Volume(&self, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Volume)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).put_Volume)(windows_core::Interface::as_raw(self), endevice, lvolume).ok() } pub unsafe fn get_Volume(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Volume)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_Volume)(windows_core::Interface::as_raw(self), endevice, &mut result__).map(|| result__) } pub unsafe fn put_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE, fmuted: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_AudioMuted)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), core::mem::transmute(fmuted)).ok() + (windows_core::Interface::vtable(self).put_AudioMuted)(windows_core::Interface::as_raw(self), endevice, fmuted).ok() } pub unsafe fn get_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AudioMuted)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_AudioMuted)(windows_core::Interface::as_raw(self), endevice, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_System_Com"))] pub unsafe fn get_IVideoWindow(&self, endevice: RTC_VIDEO_DEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IVideoWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_IVideoWindow)(windows_core::Interface::as_raw(self), endevice, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PreferredAudioDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), core::mem::transmute_copy(bstrdevicename)).ok() + (windows_core::Interface::vtable(self).put_PreferredAudioDevice)(windows_core::Interface::as_raw(self), endevice, core::mem::transmute_copy(bstrdevicename)).ok() } pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PreferredAudioDevice)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PreferredAudioDevice)(windows_core::Interface::as_raw(self), endevice, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_PreferredVolume(&self, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PreferredVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), core::mem::transmute(lvolume)).ok() + (windows_core::Interface::vtable(self).put_PreferredVolume)(windows_core::Interface::as_raw(self), endevice, lvolume).ok() } pub unsafe fn get_PreferredVolume(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PreferredVolume)(windows_core::Interface::as_raw(self), core::mem::transmute(endevice), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_PreferredVolume)(windows_core::Interface::as_raw(self), endevice, &mut result__).map(|| result__) } pub unsafe fn SetPreferredAEC(&self, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreferredAEC)(windows_core::Interface::as_raw(self), core::mem::transmute(benable)).ok() + (windows_core::Interface::vtable(self).SetPreferredAEC)(windows_core::Interface::as_raw(self), benable).ok() } pub unsafe fn PreferredAEC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -816,14 +816,14 @@ impl IRTCClient { (windows_core::Interface::vtable(self).ActiveMedia)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxBitrate(&self, lmaxbitrate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxBitrate)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxbitrate)).ok() + (windows_core::Interface::vtable(self).SetMaxBitrate)(windows_core::Interface::as_raw(self), lmaxbitrate).ok() } pub unsafe fn MaxBitrate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxBitrate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTemporalSpatialTradeOff(&self, lvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTemporalSpatialTradeOff)(windows_core::Interface::as_raw(self), core::mem::transmute(lvalue)).ok() + (windows_core::Interface::vtable(self).SetTemporalSpatialTradeOff)(windows_core::Interface::as_raw(self), lvalue).ok() } pub unsafe fn TemporalSpatialTradeOff(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -834,14 +834,14 @@ impl IRTCClient { (windows_core::Interface::vtable(self).NetworkQuality)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn StartT120Applet(&self, enapplet: RTC_T120_APPLET) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartT120Applet)(windows_core::Interface::as_raw(self), core::mem::transmute(enapplet)).ok() + (windows_core::Interface::vtable(self).StartT120Applet)(windows_core::Interface::as_raw(self), enapplet).ok() } pub unsafe fn StopT120Applets(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopT120Applets)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn get_IsT120AppletRunning(&self, enapplet: RTC_T120_APPLET) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IsT120AppletRunning)(windows_core::Interface::as_raw(self), core::mem::transmute(enapplet), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IsT120AppletRunning)(windows_core::Interface::as_raw(self), enapplet, &mut result__).map(|| result__) } pub unsafe fn LocalUserURI(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -858,13 +858,13 @@ impl IRTCClient { (windows_core::Interface::vtable(self).SetLocalUserName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrusername)).ok() } pub unsafe fn PlayRing(&self, entype: RTC_RING_TYPE, bplay: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PlayRing)(windows_core::Interface::as_raw(self), core::mem::transmute(entype), core::mem::transmute(bplay)).ok() + (windows_core::Interface::vtable(self).PlayRing)(windows_core::Interface::as_raw(self), entype, bplay).ok() } pub unsafe fn SendDTMF(&self, endtmf: RTC_DTMF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendDTMF)(windows_core::Interface::as_raw(self), core::mem::transmute(endtmf)).ok() + (windows_core::Interface::vtable(self).SendDTMF)(windows_core::Interface::as_raw(self), endtmf).ok() } pub unsafe fn InvokeTuningWizard(&self, hwndparent: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeTuningWizard)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).InvokeTuningWizard)(windows_core::Interface::as_raw(self), hwndparent).ok() } pub unsafe fn IsTuned(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1327,14 +1327,14 @@ impl core::ops::Deref for IRTCClient2 { windows_core::imp::interface_hierarchy!(IRTCClient2, windows_core::IUnknown, IRTCClient); impl IRTCClient2 { pub unsafe fn put_AnswerMode(&self, entype: RTC_SESSION_TYPE, enmode: RTC_ANSWER_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_AnswerMode)(windows_core::Interface::as_raw(self), core::mem::transmute(entype), core::mem::transmute(enmode)).ok() + (windows_core::Interface::vtable(self).put_AnswerMode)(windows_core::Interface::as_raw(self), entype, enmode).ok() } pub unsafe fn get_AnswerMode(&self, entype: RTC_SESSION_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AnswerMode)(windows_core::Interface::as_raw(self), core::mem::transmute(entype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_AnswerMode)(windows_core::Interface::as_raw(self), entype, &mut result__).map(|| result__) } pub unsafe fn InvokeTuningWizardEx(&self, hwndparent: isize, fallowaudio: super::super::Foundation::VARIANT_BOOL, fallowvideo: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeTuningWizardEx)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(fallowaudio), core::mem::transmute(fallowvideo)).ok() + (windows_core::Interface::vtable(self).InvokeTuningWizardEx)(windows_core::Interface::as_raw(self), hwndparent, fallowaudio, fallowvideo).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1347,14 +1347,14 @@ impl IRTCClient2 { (windows_core::Interface::vtable(self).SetClientCurVer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrclientcurver)).ok() } pub unsafe fn InitializeEx(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn CreateSessionWithDescription(&self, bstrcontenttype: &windows_core::BSTR, bstrsessiondescription: &windows_core::BSTR, pprofile: P2, lflags: i32) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSessionWithDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcontenttype), core::mem::transmute_copy(bstrsessiondescription), pprofile.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSessionWithDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcontenttype), core::mem::transmute_copy(bstrsessiondescription), pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSessionDescriptionManager(&self, psessiondescriptionmanager: P0) -> windows_core::Result<()> where @@ -1363,18 +1363,18 @@ impl IRTCClient2 { (windows_core::Interface::vtable(self).SetSessionDescriptionManager)(windows_core::Interface::as_raw(self), psessiondescriptionmanager.param().abi()).ok() } pub unsafe fn put_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), core::mem::transmute(ensecuritylevel)).ok() + (windows_core::Interface::vtable(self).put_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, ensecuritylevel).ok() } pub unsafe fn get_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, &mut result__).map(|| result__) } pub unsafe fn put_AllowedPorts(&self, ltransport: i32, enlistenmode: RTC_LISTEN_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_AllowedPorts)(windows_core::Interface::as_raw(self), core::mem::transmute(ltransport), core::mem::transmute(enlistenmode)).ok() + (windows_core::Interface::vtable(self).put_AllowedPorts)(windows_core::Interface::as_raw(self), ltransport, enlistenmode).ok() } pub unsafe fn get_AllowedPorts(&self, ltransport: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AllowedPorts)(windows_core::Interface::as_raw(self), core::mem::transmute(ltransport), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_AllowedPorts)(windows_core::Interface::as_raw(self), ltransport, &mut result__).map(|| result__) } } #[repr(C)] @@ -1587,13 +1587,13 @@ windows_core::imp::define_interface!(IRTCClientPortManagement, IRTCClientPortMan windows_core::imp::interface_hierarchy!(IRTCClientPortManagement, windows_core::IUnknown); impl IRTCClientPortManagement { pub unsafe fn StartListenAddressAndPort(&self, bstrinternallocaladdress: &windows_core::BSTR, linternallocalport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartListenAddressAndPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternallocaladdress), core::mem::transmute(linternallocalport)).ok() + (windows_core::Interface::vtable(self).StartListenAddressAndPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport).ok() } pub unsafe fn StopListenAddressAndPort(&self, bstrinternallocaladdress: &windows_core::BSTR, linternallocalport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StopListenAddressAndPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternallocaladdress), core::mem::transmute(linternallocalport)).ok() + (windows_core::Interface::vtable(self).StopListenAddressAndPort)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport).ok() } pub unsafe fn GetPortRange(&self, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPortRange)(windows_core::Interface::as_raw(self), core::mem::transmute(enporttype), core::mem::transmute(plminvalue), core::mem::transmute(plmaxvalue)).ok() + (windows_core::Interface::vtable(self).GetPortRange)(windows_core::Interface::as_raw(self), enporttype, core::mem::transmute(plminvalue), core::mem::transmute(plmaxvalue)).ok() } } #[repr(C)] @@ -1639,7 +1639,7 @@ windows_core::imp::interface_hierarchy!(IRTCClientPresence, windows_core::IUnkno impl IRTCClientPresence { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn EnablePresence(&self, fusestorage: super::super::Foundation::VARIANT_BOOL, varstorage: &super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnablePresence)(windows_core::Interface::as_raw(self), core::mem::transmute(fusestorage), core::mem::transmute_copy(varstorage)).ok() + (windows_core::Interface::vtable(self).EnablePresence)(windows_core::Interface::as_raw(self), fusestorage, core::mem::transmute_copy(varstorage)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Export(&self, varstorage: &super::Variant::VARIANT) -> windows_core::Result<()> { @@ -1647,7 +1647,7 @@ impl IRTCClientPresence { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Import(&self, varstorage: &super::Variant::VARIANT, freplaceall: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varstorage), core::mem::transmute(freplaceall)).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(varstorage), freplaceall).ok() } pub unsafe fn EnumerateBuddies(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1667,7 +1667,7 @@ impl IRTCClientPresence { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBuddy)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), core::mem::transmute(fpersistent), pprofile.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBuddy)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), fpersistent, pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveBuddy(&self, pbuddy: P0) -> windows_core::Result<()> where @@ -1690,7 +1690,7 @@ impl IRTCClientPresence { } pub unsafe fn AddWatcher(&self, bstrpresentityuri: &windows_core::BSTR, bstrusername: &windows_core::BSTR, bstrdata: &windows_core::BSTR, fblocked: super::super::Foundation::VARIANT_BOOL, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddWatcher)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), core::mem::transmute(fblocked), core::mem::transmute(fpersistent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddWatcher)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), fblocked, fpersistent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveWatcher(&self, pwatcher: P0) -> windows_core::Result<()> where @@ -1699,21 +1699,21 @@ impl IRTCClientPresence { (windows_core::Interface::vtable(self).RemoveWatcher)(windows_core::Interface::as_raw(self), pwatcher.param().abi()).ok() } pub unsafe fn SetLocalPresenceInfo(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalPresenceInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(enstatus), core::mem::transmute_copy(bstrnotes)).ok() + (windows_core::Interface::vtable(self).SetLocalPresenceInfo)(windows_core::Interface::as_raw(self), enstatus, core::mem::transmute_copy(bstrnotes)).ok() } pub unsafe fn OfferWatcherMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OfferWatcherMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOfferWatcherMode(&self, enmode: RTC_OFFER_WATCHER_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOfferWatcherMode)(windows_core::Interface::as_raw(self), core::mem::transmute(enmode)).ok() + (windows_core::Interface::vtable(self).SetOfferWatcherMode)(windows_core::Interface::as_raw(self), enmode).ok() } pub unsafe fn PrivacyMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PrivacyMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPrivacyMode(&self, enmode: RTC_PRIVACY_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPrivacyMode)(windows_core::Interface::as_raw(self), core::mem::transmute(enmode)).ok() + (windows_core::Interface::vtable(self).SetPrivacyMode)(windows_core::Interface::as_raw(self), enmode).ok() } } #[repr(C)] @@ -1951,7 +1951,7 @@ impl IRTCClientPresence2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnablePresenceEx)(windows_core::Interface::as_raw(self), pprofile.param().abi(), core::mem::transmute_copy(varstorage), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).EnablePresenceEx)(windows_core::Interface::as_raw(self), pprofile.param().abi(), core::mem::transmute_copy(varstorage), lflags).ok() } pub unsafe fn DisablePresence(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisablePresence)(windows_core::Interface::as_raw(self)).ok() @@ -1961,7 +1961,7 @@ impl IRTCClientPresence2 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddGroup)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrgroupname), core::mem::transmute_copy(bstrdata), pprofile.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddGroup)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrgroupname), core::mem::transmute_copy(bstrdata), pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveGroup(&self, pgroup: P0) -> windows_core::Result<()> where @@ -1987,18 +1987,18 @@ impl IRTCClientPresence2 { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddWatcherEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), core::mem::transmute(enstate), core::mem::transmute(fpersistent), core::mem::transmute(enscope), pprofile.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddWatcherEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), enstate, fpersistent, enscope, pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_WatcherEx(&self, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_WatcherEx)(windows_core::Interface::as_raw(self), core::mem::transmute(enmode), core::mem::transmute_copy(bstrpresentityuri), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_WatcherEx)(windows_core::Interface::as_raw(self), enmode, core::mem::transmute_copy(bstrpresentityuri), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PresenceProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(enproperty), core::mem::transmute_copy(bstrproperty)).ok() + (windows_core::Interface::vtable(self).put_PresenceProperty)(windows_core::Interface::as_raw(self), enproperty, core::mem::transmute_copy(bstrproperty)).ok() } pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PresenceProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(enproperty), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PresenceProperty)(windows_core::Interface::as_raw(self), enproperty, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetPresenceData(&self, bstrnamespace: &windows_core::BSTR, bstrdata: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPresenceData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrnamespace), core::mem::transmute_copy(bstrdata)).ok() @@ -2014,7 +2014,7 @@ impl IRTCClientPresence2 { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBuddyEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), core::mem::transmute(fpersistent), core::mem::transmute(ensubscriptiontype), pprofile.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBuddyEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpresentityuri), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrdata), fpersistent, ensubscriptiontype, pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2207,7 +2207,7 @@ impl IRTCClientProvisioning { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi(), core::mem::transmute(lregisterflags)).ok() + (windows_core::Interface::vtable(self).EnableProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi(), lregisterflags).ok() } pub unsafe fn DisableProfile(&self, pprofile: P0) -> windows_core::Result<()> where @@ -2225,7 +2225,7 @@ impl IRTCClientProvisioning { (windows_core::Interface::vtable(self).Profiles)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetProfile(&self, bstruseraccount: &windows_core::BSTR, bstruserpassword: &windows_core::BSTR, bstruseruri: &windows_core::BSTR, bstrserver: &windows_core::BSTR, ltransport: i32, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstruseraccount), core::mem::transmute_copy(bstruserpassword), core::mem::transmute_copy(bstruseruri), core::mem::transmute_copy(bstrserver), core::mem::transmute(ltransport), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstruseraccount), core::mem::transmute_copy(bstruserpassword), core::mem::transmute_copy(bstruseruri), core::mem::transmute_copy(bstrserver), ltransport, lcookie).ok() } pub unsafe fn SessionCapabilities(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2341,7 +2341,7 @@ impl IRTCClientProvisioning2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableProfileEx)(windows_core::Interface::as_raw(self), pprofile.param().abi(), core::mem::transmute(lregisterflags), core::mem::transmute(lroamingflags)).ok() + (windows_core::Interface::vtable(self).EnableProfileEx)(windows_core::Interface::as_raw(self), pprofile.param().abi(), lregisterflags, lroamingflags).ok() } } #[repr(C)] @@ -2388,7 +2388,7 @@ impl IRTCCollection { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2497,7 +2497,7 @@ impl IRTCEnumBuddies { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2565,7 +2565,7 @@ impl IRTCEnumGroups { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2633,7 +2633,7 @@ impl IRTCEnumParticipants { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2701,7 +2701,7 @@ impl IRTCEnumPresenceDevices { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2769,7 +2769,7 @@ impl IRTCEnumProfiles { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2837,7 +2837,7 @@ impl IRTCEnumUserSearchResults { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2905,7 +2905,7 @@ impl IRTCEnumWatchers { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2971,7 +2971,7 @@ impl IRTCEventNotification { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), core::mem::transmute(rtcevent), pevent.param().abi()).ok() + (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), rtcevent, pevent.param().abi()).ok() } } #[repr(C)] @@ -3319,11 +3319,11 @@ impl IRTCMediaRequestEvent { (windows_core::Interface::vtable(self).CurrentMedia)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Accept(&self, lmediatypes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Accept)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatypes)).ok() + (windows_core::Interface::vtable(self).Accept)(windows_core::Interface::as_raw(self), lmediatypes).ok() } pub unsafe fn get_RemotePreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RemotePreferredSecurityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_RemotePreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, &mut result__).map(|| result__) } pub unsafe fn Reject(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reject)(windows_core::Interface::as_raw(self)).ok() @@ -3766,13 +3766,13 @@ windows_core::imp::define_interface!(IRTCPortManager, IRTCPortManager_Vtbl, 0xda windows_core::imp::interface_hierarchy!(IRTCPortManager, windows_core::IUnknown); impl IRTCPortManager { pub unsafe fn GetMapping(&self, bstrremoteaddress: &windows_core::BSTR, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut windows_core::BSTR, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut windows_core::BSTR, plexternallocalport: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMapping)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremoteaddress), core::mem::transmute(enporttype), core::mem::transmute(pbstrinternallocaladdress), core::mem::transmute(plinternallocalport), core::mem::transmute(pbstrexternallocaladdress), core::mem::transmute(plexternallocalport)).ok() + (windows_core::Interface::vtable(self).GetMapping)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremoteaddress), enporttype, core::mem::transmute(pbstrinternallocaladdress), core::mem::transmute(plinternallocalport), core::mem::transmute(pbstrexternallocaladdress), core::mem::transmute(plexternallocalport)).ok() } pub unsafe fn UpdateRemoteAddress(&self, bstrremoteaddress: &windows_core::BSTR, bstrinternallocaladdress: &windows_core::BSTR, linternallocalport: i32, bstrexternallocaladdress: &windows_core::BSTR, lexternallocalport: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateRemoteAddress)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremoteaddress), core::mem::transmute_copy(bstrinternallocaladdress), core::mem::transmute(linternallocalport), core::mem::transmute_copy(bstrexternallocaladdress), core::mem::transmute(lexternallocalport)).ok() + (windows_core::Interface::vtable(self).UpdateRemoteAddress)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrremoteaddress), core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport, core::mem::transmute_copy(bstrexternallocaladdress), lexternallocalport).ok() } pub unsafe fn ReleaseMapping(&self, bstrinternallocaladdress: &windows_core::BSTR, linternallocalport: i32, bstrexternallocaladdress: &windows_core::BSTR, lexternallocaladdress: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseMapping)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternallocaladdress), core::mem::transmute(linternallocalport), core::mem::transmute_copy(bstrexternallocaladdress), core::mem::transmute(lexternallocaladdress)).ok() + (windows_core::Interface::vtable(self).ReleaseMapping)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport, core::mem::transmute_copy(bstrexternallocaladdress), lexternallocaladdress).ok() } } #[repr(C)] @@ -3842,7 +3842,7 @@ impl IRTCPresenceContact { (windows_core::Interface::vtable(self).Persistent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPersistent(&self, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPersistent)(windows_core::Interface::as_raw(self), core::mem::transmute(fpersistent)).ok() + (windows_core::Interface::vtable(self).SetPersistent)(windows_core::Interface::as_raw(self), fpersistent).ok() } } #[repr(C)] @@ -4034,7 +4034,7 @@ impl IRTCPresenceDevice { } pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PresenceProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(enproperty), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_PresenceProperty)(windows_core::Interface::as_raw(self), enproperty, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetPresenceData(&self, pbstrnamespace: *mut windows_core::BSTR, pbstrdata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPresenceData)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrnamespace), core::mem::transmute(pbstrdata)).ok() @@ -4306,7 +4306,7 @@ impl IRTCProfile { } pub unsafe fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ProviderURI)(windows_core::Interface::as_raw(self), core::mem::transmute(enuri), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_ProviderURI)(windows_core::Interface::as_raw(self), enuri, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ProviderData(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4626,7 +4626,7 @@ impl IRTCProfile2 { (windows_core::Interface::vtable(self).AllowedAuth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowedAuth(&self, lallowedauth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowedAuth)(windows_core::Interface::as_raw(self), core::mem::transmute(lallowedauth)).ok() + (windows_core::Interface::vtable(self).SetAllowedAuth)(windows_core::Interface::as_raw(self), lallowedauth).ok() } } #[repr(C)] @@ -5154,13 +5154,13 @@ impl IRTCSession { (windows_core::Interface::vtable(self).Answer)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Terminate(&self, enreason: RTC_TERMINATE_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), core::mem::transmute(enreason)).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), enreason).ok() } pub unsafe fn Redirect(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &windows_core::BSTR, pprofile: P2, lflags: i32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), core::mem::transmute(entype), core::mem::transmute_copy(bstrlocalphoneuri), pprofile.param().abi(), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), entype, core::mem::transmute_copy(bstrlocalphoneuri), pprofile.param().abi(), lflags).ok() } pub unsafe fn AddParticipant(&self, bstraddress: &windows_core::BSTR, bstrname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5192,19 +5192,19 @@ impl IRTCSession { (windows_core::Interface::vtable(self).NextRedirectedUser)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SendMessage(&self, bstrmessageheader: &windows_core::BSTR, bstrmessage: &windows_core::BSTR, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmessageheader), core::mem::transmute_copy(bstrmessage), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrmessageheader), core::mem::transmute_copy(bstrmessage), lcookie).ok() } pub unsafe fn SendMessageStatus(&self, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendMessageStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(enuserstatus), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).SendMessageStatus)(windows_core::Interface::as_raw(self), enuserstatus, lcookie).ok() } pub unsafe fn AddStream(&self, lmediatype: i32, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), lmediatype, lcookie).ok() } pub unsafe fn RemoveStream(&self, lmediatype: i32, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), lmediatype, lcookie).ok() } pub unsafe fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_EncryptionKey)(windows_core::Interface::as_raw(self), core::mem::transmute(lmediatype), core::mem::transmute_copy(encryptionkey)).ok() + (windows_core::Interface::vtable(self).put_EncryptionKey)(windows_core::Interface::as_raw(self), lmediatype, core::mem::transmute_copy(encryptionkey)).ok() } } #[repr(C)] @@ -5440,24 +5440,24 @@ impl core::ops::Deref for IRTCSession2 { windows_core::imp::interface_hierarchy!(IRTCSession2, windows_core::IUnknown, IRTCSession); impl IRTCSession2 { pub unsafe fn SendInfo(&self, bstrinfoheader: &windows_core::BSTR, bstrinfo: &windows_core::BSTR, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinfoheader), core::mem::transmute_copy(bstrinfo), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).SendInfo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrinfoheader), core::mem::transmute_copy(bstrinfo), lcookie).ok() } pub unsafe fn put_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), core::mem::transmute(ensecuritylevel)).ok() + (windows_core::Interface::vtable(self).put_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, ensecuritylevel).ok() } pub unsafe fn get_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, &mut result__).map(|| result__) } pub unsafe fn IsSecurityEnabled(&self, ensecuritytype: RTC_SECURITY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSecurityEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSecurityEnabled)(windows_core::Interface::as_raw(self), ensecuritytype, &mut result__).map(|| result__) } pub unsafe fn AnswerWithSessionDescription(&self, bstrcontenttype: &windows_core::BSTR, bstrsessiondescription: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AnswerWithSessionDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcontenttype), core::mem::transmute_copy(bstrsessiondescription)).ok() } pub unsafe fn ReInviteWithSessionDescription(&self, bstrcontenttype: &windows_core::BSTR, bstrsessiondescription: &windows_core::BSTR, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReInviteWithSessionDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcontenttype), core::mem::transmute_copy(bstrsessiondescription), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).ReInviteWithSessionDescription)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrcontenttype), core::mem::transmute_copy(bstrsessiondescription), lcookie).ok() } } #[repr(C)] @@ -5538,10 +5538,10 @@ windows_core::imp::define_interface!(IRTCSessionCallControl, IRTCSessionCallCont windows_core::imp::interface_hierarchy!(IRTCSessionCallControl, windows_core::IUnknown); impl IRTCSessionCallControl { pub unsafe fn Hold(&self, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Hold)(windows_core::Interface::as_raw(self), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).Hold)(windows_core::Interface::as_raw(self), lcookie).ok() } pub unsafe fn UnHold(&self, lcookie: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnHold)(windows_core::Interface::as_raw(self), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).UnHold)(windows_core::Interface::as_raw(self), lcookie).ok() } pub unsafe fn Forward(&self, bstrforwardtouri: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Forward)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrforwardtouri)).ok() @@ -6029,7 +6029,7 @@ impl IRTCSessionReferredEvent { (windows_core::Interface::vtable(self).Reject)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetReferredSessionState(&self, enstate: RTC_SESSION_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReferredSessionState)(windows_core::Interface::as_raw(self), core::mem::transmute(enstate)).ok() + (windows_core::Interface::vtable(self).SetReferredSessionState)(windows_core::Interface::as_raw(self), enstate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6248,7 +6248,7 @@ impl IRTCSessionStateChangeEvent2 { } pub unsafe fn get_RemotePreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RemotePreferredSecurityLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(ensecuritytype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_RemotePreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, &mut result__).map(|| result__) } pub unsafe fn IsForked(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6337,7 +6337,7 @@ impl IRTCUserSearch { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pquery.param().abi(), pprofile.param().abi(), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pquery.param().abi(), pprofile.param().abi(), lcookie).ok() } } #[repr(C)] @@ -6392,11 +6392,11 @@ impl IRTCUserSearchQuery { (windows_core::Interface::vtable(self).SearchTerms)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_SearchPreference(&self, enpreference: RTC_USER_SEARCH_PREFERENCE, lvalue: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_SearchPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(enpreference), core::mem::transmute(lvalue)).ok() + (windows_core::Interface::vtable(self).put_SearchPreference)(windows_core::Interface::as_raw(self), enpreference, lvalue).ok() } pub unsafe fn get_SearchPreference(&self, enpreference: RTC_USER_SEARCH_PREFERENCE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SearchPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(enpreference), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_SearchPreference)(windows_core::Interface::as_raw(self), enpreference, &mut result__).map(|| result__) } pub unsafe fn SetSearchDomain(&self, bstrdomain: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSearchDomain)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdomain)).ok() @@ -6501,7 +6501,7 @@ windows_core::imp::interface_hierarchy!(IRTCUserSearchResult, windows_core::IUnk impl IRTCUserSearchResult { pub unsafe fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Value)(windows_core::Interface::as_raw(self), core::mem::transmute(encolumn), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Value)(windows_core::Interface::as_raw(self), encolumn, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -6699,7 +6699,7 @@ impl IRTCWatcher { (windows_core::Interface::vtable(self).State)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetState(&self, enstate: RTC_WATCHER_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(enstate)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), enstate).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs index 3df1e28b58..4a99b13361 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs @@ -13,18 +13,18 @@ pub unsafe fn ApplicationRecoveryInProgress() -> windows_core::Result, pdwpinginterval: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::HRESULT { windows_targets::link!("kernel32.dll" "system" fn GetApplicationRecoveryCallback(hprocess : super::super::Foundation:: HANDLE, precoverycallback : *mut super::WindowsProgramming:: APPLICATION_RECOVERY_CALLBACK, ppvparameter : *mut *mut core::ffi::c_void, pdwpinginterval : *mut u32, pdwflags : *mut u32) -> windows_core::HRESULT); - GetApplicationRecoveryCallback(core::mem::transmute(hprocess), core::mem::transmute(precoverycallback), core::mem::transmute(ppvparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwpinginterval.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))) + GetApplicationRecoveryCallback(hprocess, core::mem::transmute(precoverycallback), core::mem::transmute(ppvparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwpinginterval.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetApplicationRestartSettings(hprocess: super::super::Foundation::HANDLE, pwzcommandline: Option, pcchsize: *mut u32, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetApplicationRestartSettings(hprocess : super::super::Foundation:: HANDLE, pwzcommandline : windows_core::PWSTR, pcchsize : *mut u32, pdwflags : *mut u32) -> windows_core::HRESULT); - GetApplicationRestartSettings(core::mem::transmute(hprocess), core::mem::transmute(pwzcommandline.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsize), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() + GetApplicationRestartSettings(hprocess, core::mem::transmute(pwzcommandline.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchsize), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn RegisterApplicationRecoveryCallback(precoveycallback: super::WindowsProgramming::APPLICATION_RECOVERY_CALLBACK, pvparameter: Option<*const core::ffi::c_void>, dwpinginterval: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn RegisterApplicationRecoveryCallback(precoveycallback : super::WindowsProgramming:: APPLICATION_RECOVERY_CALLBACK, pvparameter : *const core::ffi::c_void, dwpinginterval : u32, dwflags : u32) -> windows_core::HRESULT); - RegisterApplicationRecoveryCallback(core::mem::transmute(precoveycallback), core::mem::transmute(pvparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwpinginterval), core::mem::transmute(dwflags)).ok() + RegisterApplicationRecoveryCallback(precoveycallback, core::mem::transmute(pvparameter.unwrap_or(core::mem::zeroed())), dwpinginterval, dwflags).ok() } #[inline] pub unsafe fn RegisterApplicationRestart(pwzcommandline: P0, dwflags: REGISTER_APPLICATION_RESTART_FLAGS) -> windows_core::Result<()> @@ -32,7 +32,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RegisterApplicationRestart(pwzcommandline : windows_core::PCWSTR, dwflags : REGISTER_APPLICATION_RESTART_FLAGS) -> windows_core::HRESULT); - RegisterApplicationRestart(pwzcommandline.param().abi(), core::mem::transmute(dwflags)).ok() + RegisterApplicationRestart(pwzcommandline.param().abi(), dwflags).ok() } #[inline] pub unsafe fn UnregisterApplicationRecoveryCallback() -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs index 64f118c449..8694313b3a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs @@ -6,12 +6,12 @@ where P4: windows_core::Param, { windows_targets::link!("api-ms-win-core-state-helpers-l1-1-0.dll" "system" fn GetRegistryValueWithFallbackW(hkeyprimary : HKEY, pwszprimarysubkey : windows_core::PCWSTR, hkeyfallback : HKEY, pwszfallbacksubkey : windows_core::PCWSTR, pwszvalue : windows_core::PCWSTR, dwflags : u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, cbdatain : u32, pcbdataout : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - GetRegistryValueWithFallbackW(core::mem::transmute(hkeyprimary.unwrap_or(core::mem::zeroed())), pwszprimarysubkey.param().abi(), core::mem::transmute(hkeyfallback.unwrap_or(core::mem::zeroed())), pwszfallbacksubkey.param().abi(), pwszvalue.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdatain), core::mem::transmute(pcbdataout.unwrap_or(core::mem::zeroed()))) + GetRegistryValueWithFallbackW(core::mem::transmute(hkeyprimary.unwrap_or(core::mem::zeroed())), pwszprimarysubkey.param().abi(), core::mem::transmute(hkeyfallback.unwrap_or(core::mem::zeroed())), pwszfallbacksubkey.param().abi(), pwszvalue.param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), cbdatain, core::mem::transmute(pcbdataout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegCloseKey(hkey: HKEY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegCloseKey(hkey : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegCloseKey(core::mem::transmute(hkey)) + RegCloseKey(hkey) } #[inline] pub unsafe fn RegConnectRegistryA(lpmachinename: P0, hkey: HKEY, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -19,7 +19,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegConnectRegistryA(lpmachinename : windows_core::PCSTR, hkey : HKEY, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegConnectRegistryA(lpmachinename.param().abi(), core::mem::transmute(hkey), core::mem::transmute(phkresult)) + RegConnectRegistryA(lpmachinename.param().abi(), hkey, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegConnectRegistryExA(lpmachinename: P0, hkey: HKEY, flags: u32, phkresult: *mut HKEY) -> i32 @@ -27,7 +27,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegConnectRegistryExA(lpmachinename : windows_core::PCSTR, hkey : HKEY, flags : u32, phkresult : *mut HKEY) -> i32); - RegConnectRegistryExA(lpmachinename.param().abi(), core::mem::transmute(hkey), core::mem::transmute(flags), core::mem::transmute(phkresult)) + RegConnectRegistryExA(lpmachinename.param().abi(), hkey, flags, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegConnectRegistryExW(lpmachinename: P0, hkey: HKEY, flags: u32, phkresult: *mut HKEY) -> i32 @@ -35,7 +35,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegConnectRegistryExW(lpmachinename : windows_core::PCWSTR, hkey : HKEY, flags : u32, phkresult : *mut HKEY) -> i32); - RegConnectRegistryExW(lpmachinename.param().abi(), core::mem::transmute(hkey), core::mem::transmute(flags), core::mem::transmute(phkresult)) + RegConnectRegistryExW(lpmachinename.param().abi(), hkey, flags, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegConnectRegistryW(lpmachinename: P0, hkey: HKEY, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -43,7 +43,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegConnectRegistryW(lpmachinename : windows_core::PCWSTR, hkey : HKEY, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegConnectRegistryW(lpmachinename.param().abi(), core::mem::transmute(hkey), core::mem::transmute(phkresult)) + RegConnectRegistryW(lpmachinename.param().abi(), hkey, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegCopyTreeA(hkeysrc: HKEY, lpsubkey: P1, hkeydest: HKEY) -> super::super::Foundation::WIN32_ERROR @@ -51,7 +51,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCopyTreeA(hkeysrc : HKEY, lpsubkey : windows_core::PCSTR, hkeydest : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegCopyTreeA(core::mem::transmute(hkeysrc), lpsubkey.param().abi(), core::mem::transmute(hkeydest)) + RegCopyTreeA(hkeysrc, lpsubkey.param().abi(), hkeydest) } #[inline] pub unsafe fn RegCopyTreeW(hkeysrc: HKEY, lpsubkey: P1, hkeydest: HKEY) -> super::super::Foundation::WIN32_ERROR @@ -59,7 +59,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCopyTreeW(hkeysrc : HKEY, lpsubkey : windows_core::PCWSTR, hkeydest : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegCopyTreeW(core::mem::transmute(hkeysrc), lpsubkey.param().abi(), core::mem::transmute(hkeydest)) + RegCopyTreeW(hkeysrc, lpsubkey.param().abi(), hkeydest) } #[inline] pub unsafe fn RegCreateKeyA(hkey: HKEY, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -67,7 +67,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCreateKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegCreateKeyA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(phkresult)) + RegCreateKeyA(hkey, lpsubkey.param().abi(), core::mem::transmute(phkresult)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -77,7 +77,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCreateKeyExA(hkey : HKEY, lpsubkey : windows_core::PCSTR, reserved : u32, lpclass : windows_core::PCSTR, dwoptions : REG_OPEN_CREATE_OPTIONS, samdesired : REG_SAM_FLAGS, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut HKEY, lpdwdisposition : *mut REG_CREATE_KEY_DISPOSITION) -> super::super::Foundation:: WIN32_ERROR); - RegCreateKeyExA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpclass.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(samdesired), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed()))) + RegCreateKeyExA(hkey, lpsubkey.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -87,7 +87,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCreateKeyExW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, reserved : u32, lpclass : windows_core::PCWSTR, dwoptions : REG_OPEN_CREATE_OPTIONS, samdesired : REG_SAM_FLAGS, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut HKEY, lpdwdisposition : *mut REG_CREATE_KEY_DISPOSITION) -> super::super::Foundation:: WIN32_ERROR); - RegCreateKeyExW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpclass.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(samdesired), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed()))) + RegCreateKeyExW(hkey, lpsubkey.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -97,19 +97,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCreateKeyTransactedA(hkey : HKEY, lpsubkey : windows_core::PCSTR, reserved : u32, lpclass : windows_core::PCSTR, dwoptions : REG_OPEN_CREATE_OPTIONS, samdesired : REG_SAM_FLAGS, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut HKEY, lpdwdisposition : *mut REG_CREATE_KEY_DISPOSITION, htransaction : super::super::Foundation:: HANDLE, pextendedparemeter : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - RegCreateKeyTransactedA( - core::mem::transmute(hkey), - lpsubkey.param().abi(), - core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), - lpclass.param().abi(), - core::mem::transmute(dwoptions), - core::mem::transmute(samdesired), - core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phkresult), - core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed())), - core::mem::transmute(htransaction), - core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed())), - ) + RegCreateKeyTransactedA(hkey, lpsubkey.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed())), htransaction, core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -119,19 +107,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCreateKeyTransactedW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, reserved : u32, lpclass : windows_core::PCWSTR, dwoptions : REG_OPEN_CREATE_OPTIONS, samdesired : REG_SAM_FLAGS, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut HKEY, lpdwdisposition : *mut REG_CREATE_KEY_DISPOSITION, htransaction : super::super::Foundation:: HANDLE, pextendedparemeter : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - RegCreateKeyTransactedW( - core::mem::transmute(hkey), - lpsubkey.param().abi(), - core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), - lpclass.param().abi(), - core::mem::transmute(dwoptions), - core::mem::transmute(samdesired), - core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(phkresult), - core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed())), - core::mem::transmute(htransaction), - core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed())), - ) + RegCreateKeyTransactedW(hkey, lpsubkey.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition.unwrap_or(core::mem::zeroed())), htransaction, core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegCreateKeyW(hkey: HKEY, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -139,7 +115,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCreateKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegCreateKeyW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(phkresult)) + RegCreateKeyW(hkey, lpsubkey.param().abi(), core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegDeleteKeyA(hkey: HKEY, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -147,7 +123,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyA(core::mem::transmute(hkey), lpsubkey.param().abi()) + RegDeleteKeyA(hkey, lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteKeyExA(hkey: HKEY, lpsubkey: P1, samdesired: u32, reserved: Option) -> super::super::Foundation::WIN32_ERROR @@ -155,7 +131,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyExA(hkey : HKEY, lpsubkey : windows_core::PCSTR, samdesired : u32, reserved : u32) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyExA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + RegDeleteKeyExA(hkey, lpsubkey.param().abi(), samdesired, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegDeleteKeyExW(hkey: HKEY, lpsubkey: P1, samdesired: u32, reserved: Option) -> super::super::Foundation::WIN32_ERROR @@ -163,7 +139,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyExW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, samdesired : u32, reserved : u32) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyExW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + RegDeleteKeyExW(hkey, lpsubkey.param().abi(), samdesired, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegDeleteKeyTransactedA(hkey: HKEY, lpsubkey: P1, samdesired: u32, reserved: Option, htransaction: super::super::Foundation::HANDLE, pextendedparameter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -171,7 +147,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyTransactedA(hkey : HKEY, lpsubkey : windows_core::PCSTR, samdesired : u32, reserved : u32, htransaction : super::super::Foundation:: HANDLE, pextendedparameter : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyTransactedA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction), core::mem::transmute(pextendedparameter.unwrap_or(core::mem::zeroed()))) + RegDeleteKeyTransactedA(hkey, lpsubkey.param().abi(), samdesired, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), htransaction, core::mem::transmute(pextendedparameter.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegDeleteKeyTransactedW(hkey: HKEY, lpsubkey: P1, samdesired: u32, reserved: Option, htransaction: super::super::Foundation::HANDLE, pextendedparameter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -179,7 +155,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyTransactedW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, samdesired : u32, reserved : u32, htransaction : super::super::Foundation:: HANDLE, pextendedparameter : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyTransactedW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(htransaction), core::mem::transmute(pextendedparameter.unwrap_or(core::mem::zeroed()))) + RegDeleteKeyTransactedW(hkey, lpsubkey.param().abi(), samdesired, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), htransaction, core::mem::transmute(pextendedparameter.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegDeleteKeyValueA(hkey: HKEY, lpsubkey: P1, lpvaluename: P2) -> super::super::Foundation::WIN32_ERROR @@ -188,7 +164,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyValueA(hkey : HKEY, lpsubkey : windows_core::PCSTR, lpvaluename : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyValueA(core::mem::transmute(hkey), lpsubkey.param().abi(), lpvaluename.param().abi()) + RegDeleteKeyValueA(hkey, lpsubkey.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDeleteKeyValueW(hkey: HKEY, lpsubkey: P1, lpvaluename: P2) -> super::super::Foundation::WIN32_ERROR @@ -197,7 +173,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyValueW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, lpvaluename : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyValueW(core::mem::transmute(hkey), lpsubkey.param().abi(), lpvaluename.param().abi()) + RegDeleteKeyValueW(hkey, lpsubkey.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDeleteKeyW(hkey: HKEY, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -205,7 +181,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyW(core::mem::transmute(hkey), lpsubkey.param().abi()) + RegDeleteKeyW(hkey, lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteTreeA(hkey: HKEY, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -213,7 +189,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteTreeA(hkey : HKEY, lpsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteTreeA(core::mem::transmute(hkey), lpsubkey.param().abi()) + RegDeleteTreeA(hkey, lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteTreeW(hkey: HKEY, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -221,7 +197,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteTreeW(hkey : HKEY, lpsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteTreeW(core::mem::transmute(hkey), lpsubkey.param().abi()) + RegDeleteTreeW(hkey, lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteValueA(hkey: HKEY, lpvaluename: P1) -> super::super::Foundation::WIN32_ERROR @@ -229,7 +205,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteValueA(hkey : HKEY, lpvaluename : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteValueA(core::mem::transmute(hkey), lpvaluename.param().abi()) + RegDeleteValueA(hkey, lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDeleteValueW(hkey: HKEY, lpvaluename: P1) -> super::super::Foundation::WIN32_ERROR @@ -237,7 +213,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteValueW(hkey : HKEY, lpvaluename : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteValueW(core::mem::transmute(hkey), lpvaluename.param().abi()) + RegDeleteValueW(hkey, lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDisablePredefinedCache() -> super::super::Foundation::WIN32_ERROR { @@ -252,53 +228,53 @@ pub unsafe fn RegDisablePredefinedCacheEx() -> super::super::Foundation::WIN32_E #[inline] pub unsafe fn RegDisableReflectionKey(hbase: HKEY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegDisableReflectionKey(hbase : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegDisableReflectionKey(core::mem::transmute(hbase)) + RegDisableReflectionKey(hbase) } #[inline] pub unsafe fn RegEnableReflectionKey(hbase: HKEY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnableReflectionKey(hbase : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegEnableReflectionKey(core::mem::transmute(hbase)) + RegEnableReflectionKey(hbase) } #[inline] pub unsafe fn RegEnumKeyA(hkey: HKEY, dwindex: u32, lpname: Option<&mut [u8]>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnumKeyA(hkey : HKEY, dwindex : u32, lpname : windows_core::PSTR, cchname : u32) -> super::super::Foundation:: WIN32_ERROR); - RegEnumKeyA(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + RegEnumKeyA(hkey, dwindex, core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn RegEnumKeyExA(hkey: HKEY, dwindex: u32, lpname: Option, lpcchname: *mut u32, lpreserved: Option<*const u32>, lpclass: Option, lpcchclass: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnumKeyExA(hkey : HKEY, dwindex : u32, lpname : windows_core::PSTR, lpcchname : *mut u32, lpreserved : *const u32, lpclass : windows_core::PSTR, lpcchclass : *mut u32, lpftlastwritetime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: WIN32_ERROR); - RegEnumKeyExA(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchname), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) + RegEnumKeyExA(hkey, dwindex, core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchname), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegEnumKeyExW(hkey: HKEY, dwindex: u32, lpname: Option, lpcchname: *mut u32, lpreserved: Option<*const u32>, lpclass: Option, lpcchclass: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnumKeyExW(hkey : HKEY, dwindex : u32, lpname : windows_core::PWSTR, lpcchname : *mut u32, lpreserved : *const u32, lpclass : windows_core::PWSTR, lpcchclass : *mut u32, lpftlastwritetime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: WIN32_ERROR); - RegEnumKeyExW(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchname), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) + RegEnumKeyExW(hkey, dwindex, core::mem::transmute(lpname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchname), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpftlastwritetime.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegEnumKeyW(hkey: HKEY, dwindex: u32, lpname: Option<&mut [u16]>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnumKeyW(hkey : HKEY, dwindex : u32, lpname : windows_core::PWSTR, cchname : u32) -> super::super::Foundation:: WIN32_ERROR); - RegEnumKeyW(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + RegEnumKeyW(hkey, dwindex, core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn RegEnumValueA(hkey: HKEY, dwindex: u32, lpvaluename: Option, lpcchvaluename: *mut u32, lpreserved: Option<*const u32>, lptype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnumValueA(hkey : HKEY, dwindex : u32, lpvaluename : windows_core::PSTR, lpcchvaluename : *mut u32, lpreserved : *const u32, lptype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegEnumValueA(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchvaluename), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + RegEnumValueA(hkey, dwindex, core::mem::transmute(lpvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchvaluename), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegEnumValueW(hkey: HKEY, dwindex: u32, lpvaluename: Option, lpcchvaluename: *mut u32, lpreserved: Option<*const u32>, lptype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegEnumValueW(hkey : HKEY, dwindex : u32, lpvaluename : windows_core::PWSTR, lpcchvaluename : *mut u32, lpreserved : *const u32, lptype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegEnumValueW(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(lpvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchvaluename), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + RegEnumValueW(hkey, dwindex, core::mem::transmute(lpvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchvaluename), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegFlushKey(hkey: HKEY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegFlushKey(hkey : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegFlushKey(core::mem::transmute(hkey)) + RegFlushKey(hkey) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegGetKeySecurity(hkey: HKEY, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: Option, lpcbsecuritydescriptor: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegGetKeySecurity(hkey : HKEY, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegGetKeySecurity(core::mem::transmute(hkey), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbsecuritydescriptor)) + RegGetKeySecurity(hkey, securityinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbsecuritydescriptor)) } #[inline] pub unsafe fn RegGetValueA(hkey: HKEY, lpsubkey: P1, lpvalue: P2, dwflags: REG_ROUTINE_FLAGS, pdwtype: Option<*mut REG_VALUE_TYPE>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR @@ -307,7 +283,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegGetValueA(hkey : HKEY, lpsubkey : windows_core::PCSTR, lpvalue : windows_core::PCSTR, dwflags : REG_ROUTINE_FLAGS, pdwtype : *mut REG_VALUE_TYPE, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegGetValueA(core::mem::transmute(hkey), lpsubkey.param().abi(), lpvalue.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + RegGetValueA(hkey, lpsubkey.param().abi(), lpvalue.param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegGetValueW(hkey: HKEY, lpsubkey: P1, lpvalue: P2, dwflags: REG_ROUTINE_FLAGS, pdwtype: Option<*mut REG_VALUE_TYPE>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR @@ -316,7 +292,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegGetValueW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, lpvalue : windows_core::PCWSTR, dwflags : REG_ROUTINE_FLAGS, pdwtype : *mut REG_VALUE_TYPE, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegGetValueW(core::mem::transmute(hkey), lpsubkey.param().abi(), lpvalue.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + RegGetValueW(hkey, lpsubkey.param().abi(), lpvalue.param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegLoadAppKeyA(lpfile: P0, phkresult: *mut HKEY, samdesired: u32, dwoptions: u32, reserved: Option) -> super::super::Foundation::WIN32_ERROR @@ -324,7 +300,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegLoadAppKeyA(lpfile : windows_core::PCSTR, phkresult : *mut HKEY, samdesired : u32, dwoptions : u32, reserved : u32) -> super::super::Foundation:: WIN32_ERROR); - RegLoadAppKeyA(lpfile.param().abi(), core::mem::transmute(phkresult), core::mem::transmute(samdesired), core::mem::transmute(dwoptions), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + RegLoadAppKeyA(lpfile.param().abi(), core::mem::transmute(phkresult), samdesired, dwoptions, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegLoadAppKeyW(lpfile: P0, phkresult: *mut HKEY, samdesired: u32, dwoptions: u32, reserved: Option) -> super::super::Foundation::WIN32_ERROR @@ -332,7 +308,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegLoadAppKeyW(lpfile : windows_core::PCWSTR, phkresult : *mut HKEY, samdesired : u32, dwoptions : u32, reserved : u32) -> super::super::Foundation:: WIN32_ERROR); - RegLoadAppKeyW(lpfile.param().abi(), core::mem::transmute(phkresult), core::mem::transmute(samdesired), core::mem::transmute(dwoptions), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + RegLoadAppKeyW(lpfile.param().abi(), core::mem::transmute(phkresult), samdesired, dwoptions, core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegLoadKeyA(hkey: HKEY, lpsubkey: P1, lpfile: P2) -> super::super::Foundation::WIN32_ERROR @@ -341,7 +317,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegLoadKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR, lpfile : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegLoadKeyA(core::mem::transmute(hkey), lpsubkey.param().abi(), lpfile.param().abi()) + RegLoadKeyA(hkey, lpsubkey.param().abi(), lpfile.param().abi()) } #[inline] pub unsafe fn RegLoadKeyW(hkey: HKEY, lpsubkey: P1, lpfile: P2) -> super::super::Foundation::WIN32_ERROR @@ -350,7 +326,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegLoadKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, lpfile : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegLoadKeyW(core::mem::transmute(hkey), lpsubkey.param().abi(), lpfile.param().abi()) + RegLoadKeyW(hkey, lpsubkey.param().abi(), lpfile.param().abi()) } #[inline] pub unsafe fn RegLoadMUIStringA(hkey: HKEY, pszvalue: P1, pszoutbuf: Option<&mut [u8]>, pcbdata: Option<*mut u32>, flags: u32, pszdirectory: P6) -> super::super::Foundation::WIN32_ERROR @@ -359,7 +335,7 @@ where P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegLoadMUIStringA(hkey : HKEY, pszvalue : windows_core::PCSTR, pszoutbuf : windows_core::PSTR, cboutbuf : u32, pcbdata : *mut u32, flags : u32, pszdirectory : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegLoadMUIStringA(core::mem::transmute(hkey), pszvalue.param().abi(), core::mem::transmute(pszoutbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszoutbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), pszdirectory.param().abi()) + RegLoadMUIStringA(hkey, pszvalue.param().abi(), core::mem::transmute(pszoutbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszoutbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), flags, pszdirectory.param().abi()) } #[inline] pub unsafe fn RegLoadMUIStringW(hkey: HKEY, pszvalue: P1, pszoutbuf: Option, cboutbuf: u32, pcbdata: Option<*mut u32>, flags: u32, pszdirectory: P6) -> super::super::Foundation::WIN32_ERROR @@ -368,17 +344,17 @@ where P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegLoadMUIStringW(hkey : HKEY, pszvalue : windows_core::PCWSTR, pszoutbuf : windows_core::PWSTR, cboutbuf : u32, pcbdata : *mut u32, flags : u32, pszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegLoadMUIStringW(core::mem::transmute(hkey), pszvalue.param().abi(), core::mem::transmute(pszoutbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(cboutbuf), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), pszdirectory.param().abi()) + RegLoadMUIStringW(hkey, pszvalue.param().abi(), core::mem::transmute(pszoutbuf.unwrap_or(core::mem::zeroed())), cboutbuf, core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), flags, pszdirectory.param().abi()) } #[inline] pub unsafe fn RegNotifyChangeKeyValue(hkey: HKEY, bwatchsubtree: bool, dwnotifyfilter: REG_NOTIFY_FILTER, hevent: Option, fasynchronous: bool) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegNotifyChangeKeyValue(hkey : HKEY, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : REG_NOTIFY_FILTER, hevent : super::super::Foundation:: HANDLE, fasynchronous : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - RegNotifyChangeKeyValue(core::mem::transmute(hkey), bwatchsubtree.into(), core::mem::transmute(dwnotifyfilter), core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), fasynchronous.into()) + RegNotifyChangeKeyValue(hkey, bwatchsubtree.into(), dwnotifyfilter, core::mem::transmute(hevent.unwrap_or(core::mem::zeroed())), fasynchronous.into()) } #[inline] pub unsafe fn RegOpenCurrentUser(samdesired: u32, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegOpenCurrentUser(samdesired : u32, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOpenCurrentUser(core::mem::transmute(samdesired), core::mem::transmute(phkresult)) + RegOpenCurrentUser(samdesired, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegOpenKeyA(hkey: HKEY, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -386,7 +362,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOpenKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOpenKeyA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(phkresult)) + RegOpenKeyA(hkey, lpsubkey.param().abi(), core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegOpenKeyExA(hkey: HKEY, lpsubkey: P1, uloptions: Option, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -394,7 +370,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOpenKeyExA(hkey : HKEY, lpsubkey : windows_core::PCSTR, uloptions : u32, samdesired : REG_SAM_FLAGS, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOpenKeyExA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(phkresult)) + RegOpenKeyExA(hkey, lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegOpenKeyExW(hkey: HKEY, lpsubkey: P1, uloptions: Option, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -402,7 +378,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOpenKeyExW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, uloptions : u32, samdesired : REG_SAM_FLAGS, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOpenKeyExW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(phkresult)) + RegOpenKeyExW(hkey, lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegOpenKeyTransactedA(hkey: HKEY, lpsubkey: P1, uloptions: Option, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY, htransaction: super::super::Foundation::HANDLE, pextendedparemeter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -410,7 +386,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOpenKeyTransactedA(hkey : HKEY, lpsubkey : windows_core::PCSTR, uloptions : u32, samdesired : REG_SAM_FLAGS, phkresult : *mut HKEY, htransaction : super::super::Foundation:: HANDLE, pextendedparemeter : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - RegOpenKeyTransactedA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(phkresult), core::mem::transmute(htransaction), core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed()))) + RegOpenKeyTransactedA(hkey, lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(phkresult), htransaction, core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegOpenKeyTransactedW(hkey: HKEY, lpsubkey: P1, uloptions: Option, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY, htransaction: super::super::Foundation::HANDLE, pextendedparemeter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR @@ -418,7 +394,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOpenKeyTransactedW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, uloptions : u32, samdesired : REG_SAM_FLAGS, phkresult : *mut HKEY, htransaction : super::super::Foundation:: HANDLE, pextendedparemeter : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); - RegOpenKeyTransactedW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(phkresult), core::mem::transmute(htransaction), core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed()))) + RegOpenKeyTransactedW(hkey, lpsubkey.param().abi(), core::mem::transmute(uloptions.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(phkresult), htransaction, core::mem::transmute(pextendedparemeter.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegOpenKeyW(hkey: HKEY, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR @@ -426,23 +402,23 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOpenKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOpenKeyW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(phkresult)) + RegOpenKeyW(hkey, lpsubkey.param().abi(), core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegOpenUserClassesRoot(htoken: super::super::Foundation::HANDLE, dwoptions: Option, samdesired: u32, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegOpenUserClassesRoot(htoken : super::super::Foundation:: HANDLE, dwoptions : u32, samdesired : u32, phkresult : *mut HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOpenUserClassesRoot(core::mem::transmute(htoken), core::mem::transmute(dwoptions.unwrap_or(core::mem::zeroed())), core::mem::transmute(samdesired), core::mem::transmute(phkresult)) + RegOpenUserClassesRoot(htoken, core::mem::transmute(dwoptions.unwrap_or(core::mem::zeroed())), samdesired, core::mem::transmute(phkresult)) } #[inline] pub unsafe fn RegOverridePredefKey(hkey: HKEY, hnewhkey: Option) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegOverridePredefKey(hkey : HKEY, hnewhkey : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOverridePredefKey(core::mem::transmute(hkey), core::mem::transmute(hnewhkey.unwrap_or(core::mem::zeroed()))) + RegOverridePredefKey(hkey, core::mem::transmute(hnewhkey.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegQueryInfoKeyA(hkey: HKEY, lpclass: Option, lpcchclass: Option<*mut u32>, lpreserved: Option<*const u32>, lpcsubkeys: Option<*mut u32>, lpcbmaxsubkeylen: Option<*mut u32>, lpcbmaxclasslen: Option<*mut u32>, lpcvalues: Option<*mut u32>, lpcbmaxvaluenamelen: Option<*mut u32>, lpcbmaxvaluelen: Option<*mut u32>, lpcbsecuritydescriptor: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegQueryInfoKeyA(hkey : HKEY, lpclass : windows_core::PSTR, lpcchclass : *mut u32, lpreserved : *const u32, lpcsubkeys : *mut u32, lpcbmaxsubkeylen : *mut u32, lpcbmaxclasslen : *mut u32, lpcvalues : *mut u32, lpcbmaxvaluenamelen : *mut u32, lpcbmaxvaluelen : *mut u32, lpcbsecuritydescriptor : *mut u32, lpftlastwritetime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: WIN32_ERROR); RegQueryInfoKeyA( - core::mem::transmute(hkey), + hkey, core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), @@ -460,7 +436,7 @@ pub unsafe fn RegQueryInfoKeyA(hkey: HKEY, lpclass: Option, pub unsafe fn RegQueryInfoKeyW(hkey: HKEY, lpclass: Option, lpcchclass: Option<*mut u32>, lpreserved: Option<*const u32>, lpcsubkeys: Option<*mut u32>, lpcbmaxsubkeylen: Option<*mut u32>, lpcbmaxclasslen: Option<*mut u32>, lpcvalues: Option<*mut u32>, lpcbmaxvaluenamelen: Option<*mut u32>, lpcbmaxvaluelen: Option<*mut u32>, lpcbsecuritydescriptor: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegQueryInfoKeyW(hkey : HKEY, lpclass : windows_core::PWSTR, lpcchclass : *mut u32, lpreserved : *const u32, lpcsubkeys : *mut u32, lpcbmaxsubkeylen : *mut u32, lpcbmaxclasslen : *mut u32, lpcvalues : *mut u32, lpcbmaxvaluenamelen : *mut u32, lpcbmaxvaluelen : *mut u32, lpcbsecuritydescriptor : *mut u32, lpftlastwritetime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: WIN32_ERROR); RegQueryInfoKeyW( - core::mem::transmute(hkey), + hkey, core::mem::transmute(lpclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), @@ -477,17 +453,17 @@ pub unsafe fn RegQueryInfoKeyW(hkey: HKEY, lpclass: Option, #[inline] pub unsafe fn RegQueryMultipleValuesA(hkey: HKEY, val_list: &mut [VALENTA], lpvaluebuf: Option, ldwtotsize: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegQueryMultipleValuesA(hkey : HKEY, val_list : *mut VALENTA, num_vals : u32, lpvaluebuf : windows_core::PSTR, ldwtotsize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegQueryMultipleValuesA(core::mem::transmute(hkey), core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(ldwtotsize.unwrap_or(core::mem::zeroed()))) + RegQueryMultipleValuesA(hkey, core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(ldwtotsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegQueryMultipleValuesW(hkey: HKEY, val_list: &mut [VALENTW], lpvaluebuf: Option, ldwtotsize: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegQueryMultipleValuesW(hkey : HKEY, val_list : *mut VALENTW, num_vals : u32, lpvaluebuf : windows_core::PWSTR, ldwtotsize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegQueryMultipleValuesW(core::mem::transmute(hkey), core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(ldwtotsize.unwrap_or(core::mem::zeroed()))) + RegQueryMultipleValuesW(hkey, core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(ldwtotsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegQueryReflectionKey(hbase: HKEY, bisreflectiondisabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegQueryReflectionKey(hbase : HKEY, bisreflectiondisabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - RegQueryReflectionKey(core::mem::transmute(hbase), core::mem::transmute(bisreflectiondisabled)) + RegQueryReflectionKey(hbase, core::mem::transmute(bisreflectiondisabled)) } #[inline] pub unsafe fn RegQueryValueA(hkey: HKEY, lpsubkey: P1, lpdata: Option, lpcbdata: Option<*mut i32>) -> super::super::Foundation::WIN32_ERROR @@ -495,7 +471,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegQueryValueA(hkey : HKEY, lpsubkey : windows_core::PCSTR, lpdata : windows_core::PSTR, lpcbdata : *mut i32) -> super::super::Foundation:: WIN32_ERROR); - RegQueryValueA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + RegQueryValueA(hkey, lpsubkey.param().abi(), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegQueryValueExA(hkey: HKEY, lpvaluename: P1, lpreserved: Option<*const u32>, lptype: Option<*mut REG_VALUE_TYPE>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR @@ -503,7 +479,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegQueryValueExA(hkey : HKEY, lpvaluename : windows_core::PCSTR, lpreserved : *const u32, lptype : *mut REG_VALUE_TYPE, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegQueryValueExA(core::mem::transmute(hkey), lpvaluename.param().abi(), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + RegQueryValueExA(hkey, lpvaluename.param().abi(), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegQueryValueExW(hkey: HKEY, lpvaluename: P1, lpreserved: Option<*const u32>, lptype: Option<*mut REG_VALUE_TYPE>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR @@ -511,7 +487,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegQueryValueExW(hkey : HKEY, lpvaluename : windows_core::PCWSTR, lpreserved : *const u32, lptype : *mut REG_VALUE_TYPE, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RegQueryValueExW(core::mem::transmute(hkey), lpvaluename.param().abi(), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + RegQueryValueExW(hkey, lpvaluename.param().abi(), core::mem::transmute(lpreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegQueryValueW(hkey: HKEY, lpsubkey: P1, lpdata: Option, lpcbdata: Option<*mut i32>) -> super::super::Foundation::WIN32_ERROR @@ -519,7 +495,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegQueryValueW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, lpdata : windows_core::PWSTR, lpcbdata : *mut i32) -> super::super::Foundation:: WIN32_ERROR); - RegQueryValueW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) + RegQueryValueW(hkey, lpsubkey.param().abi(), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegRenameKey(hkey: HKEY, lpsubkeyname: P1, lpnewkeyname: P2) -> super::super::Foundation::WIN32_ERROR @@ -528,7 +504,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegRenameKey(hkey : HKEY, lpsubkeyname : windows_core::PCWSTR, lpnewkeyname : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegRenameKey(core::mem::transmute(hkey), lpsubkeyname.param().abi(), lpnewkeyname.param().abi()) + RegRenameKey(hkey, lpsubkeyname.param().abi(), lpnewkeyname.param().abi()) } #[inline] pub unsafe fn RegReplaceKeyA(hkey: HKEY, lpsubkey: P1, lpnewfile: P2, lpoldfile: P3) -> super::super::Foundation::WIN32_ERROR @@ -538,7 +514,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegReplaceKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR, lpnewfile : windows_core::PCSTR, lpoldfile : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegReplaceKeyA(core::mem::transmute(hkey), lpsubkey.param().abi(), lpnewfile.param().abi(), lpoldfile.param().abi()) + RegReplaceKeyA(hkey, lpsubkey.param().abi(), lpnewfile.param().abi(), lpoldfile.param().abi()) } #[inline] pub unsafe fn RegReplaceKeyW(hkey: HKEY, lpsubkey: P1, lpnewfile: P2, lpoldfile: P3) -> super::super::Foundation::WIN32_ERROR @@ -548,7 +524,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegReplaceKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, lpnewfile : windows_core::PCWSTR, lpoldfile : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegReplaceKeyW(core::mem::transmute(hkey), lpsubkey.param().abi(), lpnewfile.param().abi(), lpoldfile.param().abi()) + RegReplaceKeyW(hkey, lpsubkey.param().abi(), lpnewfile.param().abi(), lpoldfile.param().abi()) } #[inline] pub unsafe fn RegRestoreKeyA(hkey: HKEY, lpfile: P1, dwflags: REG_RESTORE_KEY_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -556,7 +532,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegRestoreKeyA(hkey : HKEY, lpfile : windows_core::PCSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - RegRestoreKeyA(core::mem::transmute(hkey), lpfile.param().abi(), dwflags.0 as _) + RegRestoreKeyA(hkey, lpfile.param().abi(), dwflags.0 as _) } #[inline] pub unsafe fn RegRestoreKeyW(hkey: HKEY, lpfile: P1, dwflags: REG_RESTORE_KEY_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -564,7 +540,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegRestoreKeyW(hkey : HKEY, lpfile : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - RegRestoreKeyW(core::mem::transmute(hkey), lpfile.param().abi(), dwflags.0 as _) + RegRestoreKeyW(hkey, lpfile.param().abi(), dwflags.0 as _) } #[cfg(feature = "Win32_Security")] #[inline] @@ -573,7 +549,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSaveKeyA(hkey : HKEY, lpfile : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: WIN32_ERROR); - RegSaveKeyA(core::mem::transmute(hkey), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) + RegSaveKeyA(hkey, lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -582,7 +558,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSaveKeyExA(hkey : HKEY, lpfile : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flags : REG_SAVE_FORMAT) -> super::super::Foundation:: WIN32_ERROR); - RegSaveKeyExA(core::mem::transmute(hkey), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + RegSaveKeyExA(hkey, lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), flags) } #[cfg(feature = "Win32_Security")] #[inline] @@ -591,7 +567,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSaveKeyExW(hkey : HKEY, lpfile : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flags : REG_SAVE_FORMAT) -> super::super::Foundation:: WIN32_ERROR); - RegSaveKeyExW(core::mem::transmute(hkey), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + RegSaveKeyExW(hkey, lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), flags) } #[cfg(feature = "Win32_Security")] #[inline] @@ -600,13 +576,13 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSaveKeyW(hkey : HKEY, lpfile : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: WIN32_ERROR); - RegSaveKeyW(core::mem::transmute(hkey), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) + RegSaveKeyW(hkey, lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegSetKeySecurity(hkey: HKEY, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("advapi32.dll" "system" fn RegSetKeySecurity(hkey : HKEY, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - RegSetKeySecurity(core::mem::transmute(hkey), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) + RegSetKeySecurity(hkey, securityinformation, psecuritydescriptor) } #[inline] pub unsafe fn RegSetKeyValueA(hkey: HKEY, lpsubkey: P1, lpvaluename: P2, dwtype: u32, lpdata: Option<*const core::ffi::c_void>, cbdata: u32) -> super::super::Foundation::WIN32_ERROR @@ -615,7 +591,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSetKeyValueA(hkey : HKEY, lpsubkey : windows_core::PCSTR, lpvaluename : windows_core::PCSTR, dwtype : u32, lpdata : *const core::ffi::c_void, cbdata : u32) -> super::super::Foundation:: WIN32_ERROR); - RegSetKeyValueA(core::mem::transmute(hkey), lpsubkey.param().abi(), lpvaluename.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata)) + RegSetKeyValueA(hkey, lpsubkey.param().abi(), lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), cbdata) } #[inline] pub unsafe fn RegSetKeyValueW(hkey: HKEY, lpsubkey: P1, lpvaluename: P2, dwtype: u32, lpdata: Option<*const core::ffi::c_void>, cbdata: u32) -> super::super::Foundation::WIN32_ERROR @@ -624,7 +600,7 @@ where P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSetKeyValueW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, lpvaluename : windows_core::PCWSTR, dwtype : u32, lpdata : *const core::ffi::c_void, cbdata : u32) -> super::super::Foundation:: WIN32_ERROR); - RegSetKeyValueW(core::mem::transmute(hkey), lpsubkey.param().abi(), lpvaluename.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata)) + RegSetKeyValueW(hkey, lpsubkey.param().abi(), lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.unwrap_or(core::mem::zeroed())), cbdata) } #[inline] pub unsafe fn RegSetValueA(hkey: HKEY, lpsubkey: P1, dwtype: REG_VALUE_TYPE, lpdata: Option<&[u8]>) -> super::super::Foundation::WIN32_ERROR @@ -632,7 +608,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSetValueA(hkey : HKEY, lpsubkey : windows_core::PCSTR, dwtype : REG_VALUE_TYPE, lpdata : windows_core::PCSTR, cbdata : u32) -> super::super::Foundation:: WIN32_ERROR); - RegSetValueA(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + RegSetValueA(hkey, lpsubkey.param().abi(), dwtype, core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn RegSetValueExA(hkey: HKEY, lpvaluename: P1, reserved: Option, dwtype: REG_VALUE_TYPE, lpdata: Option<&[u8]>) -> super::super::Foundation::WIN32_ERROR @@ -640,7 +616,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSetValueExA(hkey : HKEY, lpvaluename : windows_core::PCSTR, reserved : u32, dwtype : REG_VALUE_TYPE, lpdata : *const u8, cbdata : u32) -> super::super::Foundation:: WIN32_ERROR); - RegSetValueExA(core::mem::transmute(hkey), lpvaluename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwtype), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + RegSetValueExA(hkey, lpvaluename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), dwtype, core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn RegSetValueExW(hkey: HKEY, lpvaluename: P1, reserved: Option, dwtype: REG_VALUE_TYPE, lpdata: Option<&[u8]>) -> super::super::Foundation::WIN32_ERROR @@ -648,7 +624,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSetValueExW(hkey : HKEY, lpvaluename : windows_core::PCWSTR, reserved : u32, dwtype : REG_VALUE_TYPE, lpdata : *const u8, cbdata : u32) -> super::super::Foundation:: WIN32_ERROR); - RegSetValueExW(core::mem::transmute(hkey), lpvaluename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwtype), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + RegSetValueExW(hkey, lpvaluename.param().abi(), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), dwtype, core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn RegSetValueW(hkey: HKEY, lpsubkey: P1, dwtype: REG_VALUE_TYPE, lpdata: P3, cbdata: u32) -> super::super::Foundation::WIN32_ERROR @@ -657,7 +633,7 @@ where P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegSetValueW(hkey : HKEY, lpsubkey : windows_core::PCWSTR, dwtype : REG_VALUE_TYPE, lpdata : windows_core::PCWSTR, cbdata : u32) -> super::super::Foundation:: WIN32_ERROR); - RegSetValueW(core::mem::transmute(hkey), lpsubkey.param().abi(), core::mem::transmute(dwtype), lpdata.param().abi(), core::mem::transmute(cbdata)) + RegSetValueW(hkey, lpsubkey.param().abi(), dwtype, lpdata.param().abi(), cbdata) } #[inline] pub unsafe fn RegUnLoadKeyA(hkey: HKEY, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -665,7 +641,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegUnLoadKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegUnLoadKeyA(core::mem::transmute(hkey), lpsubkey.param().abi()) + RegUnLoadKeyA(hkey, lpsubkey.param().abi()) } #[inline] pub unsafe fn RegUnLoadKeyW(hkey: HKEY, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -673,7 +649,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegUnLoadKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegUnLoadKeyW(core::mem::transmute(hkey), lpsubkey.param().abi()) + RegUnLoadKeyW(hkey, lpsubkey.param().abi()) } pub const AGP_FLAG_NO_1X_RATE: i32 = 1i32; pub const AGP_FLAG_NO_2X_RATE: i32 = 2i32; diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs index 5e51e1948b..e1f7e4852c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs @@ -81,7 +81,7 @@ impl IRendezvousSession { (windows_core::Interface::vtable(self).SendContextData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Terminate(&self, hr: windows_core::HRESULT, bstrappdata: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), core::mem::transmute_copy(bstrappdata)).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), hr, core::mem::transmute_copy(bstrappdata)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs index f8f9787a29..acb56e40d1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn ProcessIdToSessionId(dwprocessid: u32, psessionid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ProcessIdToSessionId(dwprocessid : u32, psessionid : *mut u32) -> super::super::Foundation:: BOOL); - ProcessIdToSessionId(core::mem::transmute(dwprocessid), core::mem::transmute(psessionid)).ok() + ProcessIdToSessionId(dwprocessid, core::mem::transmute(psessionid)).ok() } #[inline] pub unsafe fn WTSCloseServer(hserver: super::super::Foundation::HANDLE) { windows_targets::link!("wtsapi32.dll" "system" fn WTSCloseServer(hserver : super::super::Foundation:: HANDLE)); - WTSCloseServer(core::mem::transmute(hserver)) + WTSCloseServer(hserver) } #[inline] pub unsafe fn WTSConnectSessionA(logonid: u32, targetlogonid: u32, ppassword: P2, bwait: bool) -> windows_core::Result<()> @@ -14,7 +14,7 @@ where P2: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSConnectSessionA(logonid : u32, targetlogonid : u32, ppassword : windows_core::PCSTR, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSConnectSessionA(core::mem::transmute(logonid), core::mem::transmute(targetlogonid), ppassword.param().abi(), bwait.into()).ok() + WTSConnectSessionA(logonid, targetlogonid, ppassword.param().abi(), bwait.into()).ok() } #[inline] pub unsafe fn WTSConnectSessionW(logonid: u32, targetlogonid: u32, ppassword: P2, bwait: bool) -> windows_core::Result<()> @@ -22,7 +22,7 @@ where P2: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSConnectSessionW(logonid : u32, targetlogonid : u32, ppassword : windows_core::PCWSTR, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSConnectSessionW(core::mem::transmute(logonid), core::mem::transmute(targetlogonid), ppassword.param().abi(), bwait.into()).ok() + WTSConnectSessionW(logonid, targetlogonid, ppassword.param().abi(), bwait.into()).ok() } #[inline] pub unsafe fn WTSCreateListenerA(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P3, pbuffer: *const WTSLISTENERCONFIGA, flag: u32) -> windows_core::Result<()> @@ -30,7 +30,7 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSCreateListenerA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, pbuffer : *const WTSLISTENERCONFIGA, flag : u32) -> super::super::Foundation:: BOOL); - WTSCreateListenerA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(pbuffer), core::mem::transmute(flag)).ok() + WTSCreateListenerA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), pbuffer, flag).ok() } #[inline] pub unsafe fn WTSCreateListenerW(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P3, pbuffer: *const WTSLISTENERCONFIGW, flag: u32) -> windows_core::Result<()> @@ -38,12 +38,12 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSCreateListenerW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, pbuffer : *const WTSLISTENERCONFIGW, flag : u32) -> super::super::Foundation:: BOOL); - WTSCreateListenerW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(pbuffer), core::mem::transmute(flag)).ok() + WTSCreateListenerW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), pbuffer, flag).ok() } #[inline] pub unsafe fn WTSDisconnectSession(hserver: Option, sessionid: u32, bwait: bool) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSDisconnectSession(hserver : super::super::Foundation:: HANDLE, sessionid : u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSDisconnectSession(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), bwait.into()).ok() + WTSDisconnectSession(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, bwait.into()).ok() } #[inline] pub unsafe fn WTSEnableChildSessions(benable: bool) -> super::super::Foundation::BOOL { @@ -53,34 +53,34 @@ pub unsafe fn WTSEnableChildSessions(benable: bool) -> super::super::Foundation: #[inline] pub unsafe fn WTSEnumerateListenersA(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plisteners: Option<*mut *mut i8>, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateListenersA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plisteners : *mut *mut i8, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateListenersA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), core::mem::transmute(plisteners.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcount)).ok() + WTSEnumerateListenersA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, core::mem::transmute(plisteners.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateListenersW(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plisteners: Option<*mut *mut u16>, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateListenersW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plisteners : *mut *mut u16, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateListenersW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), core::mem::transmute(plisteners.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcount)).ok() + WTSEnumerateListenersW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, core::mem::transmute(plisteners.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcount)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSEnumerateProcessesA(hserver: Option, reserved: u32, version: u32, ppprocessinfo: *mut *mut WTS_PROCESS_INFOA, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesA(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppprocessinfo : *mut *mut WTS_PROCESS_INFOA, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateProcessesA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved), core::mem::transmute(version), core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() + WTSEnumerateProcessesA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), reserved, version, core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateProcessesExA(hserver: Option, plevel: *mut u32, sessionid: u32, ppprocessinfo: *mut windows_core::PSTR, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesExA(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, sessionid : u32, ppprocessinfo : *mut windows_core::PSTR, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateProcessesExA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), core::mem::transmute(sessionid), core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() + WTSEnumerateProcessesExA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), sessionid, core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateProcessesExW(hserver: Option, plevel: *mut u32, sessionid: u32, ppprocessinfo: *mut windows_core::PWSTR, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesExW(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, sessionid : u32, ppprocessinfo : *mut windows_core::PWSTR, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateProcessesExW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), core::mem::transmute(sessionid), core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() + WTSEnumerateProcessesExW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), sessionid, core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSEnumerateProcessesW(hserver: Option, reserved: u32, version: u32, ppprocessinfo: *mut *mut WTS_PROCESS_INFOW, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesW(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppprocessinfo : *mut *mut WTS_PROCESS_INFOW, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateProcessesW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved), core::mem::transmute(version), core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() + WTSEnumerateProcessesW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), reserved, version, core::mem::transmute(ppprocessinfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateServersA(pdomainname: P0, reserved: u32, version: u32, ppserverinfo: *mut *mut WTS_SERVER_INFOA, pcount: *mut u32) -> windows_core::Result<()> @@ -88,7 +88,7 @@ where P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateServersA(pdomainname : windows_core::PCSTR, reserved : u32, version : u32, ppserverinfo : *mut *mut WTS_SERVER_INFOA, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateServersA(pdomainname.param().abi(), core::mem::transmute(reserved), core::mem::transmute(version), core::mem::transmute(ppserverinfo), core::mem::transmute(pcount)).ok() + WTSEnumerateServersA(pdomainname.param().abi(), reserved, version, core::mem::transmute(ppserverinfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateServersW(pdomainname: P0, reserved: u32, version: u32, ppserverinfo: *mut *mut WTS_SERVER_INFOW, pcount: *mut u32) -> windows_core::Result<()> @@ -96,27 +96,27 @@ where P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateServersW(pdomainname : windows_core::PCWSTR, reserved : u32, version : u32, ppserverinfo : *mut *mut WTS_SERVER_INFOW, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateServersW(pdomainname.param().abi(), core::mem::transmute(reserved), core::mem::transmute(version), core::mem::transmute(ppserverinfo), core::mem::transmute(pcount)).ok() + WTSEnumerateServersW(pdomainname.param().abi(), reserved, version, core::mem::transmute(ppserverinfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsA(hserver: Option, reserved: u32, version: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFOA, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsA(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFOA, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateSessionsA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved), core::mem::transmute(version), core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() + WTSEnumerateSessionsA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), reserved, version, core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsExA(hserver: Option, plevel: *mut u32, filter: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFO_1A, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsExA(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, filter : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFO_1A, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateSessionsExA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), core::mem::transmute(filter), core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() + WTSEnumerateSessionsExA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), filter, core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsExW(hserver: Option, plevel: *mut u32, filter: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFO_1W, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsExW(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, filter : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFO_1W, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateSessionsExW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), core::mem::transmute(filter), core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() + WTSEnumerateSessionsExW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevel), filter, core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsW(hserver: Option, reserved: u32, version: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFOW, pcount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsW(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFOW, pcount : *mut u32) -> super::super::Foundation:: BOOL); - WTSEnumerateSessionsW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved), core::mem::transmute(version), core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() + WTSEnumerateSessionsW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), reserved, version, core::mem::transmute(ppsessioninfo), core::mem::transmute(pcount)).ok() } #[inline] pub unsafe fn WTSFreeMemory(pmemory: *mut core::ffi::c_void) { @@ -126,12 +126,12 @@ pub unsafe fn WTSFreeMemory(pmemory: *mut core::ffi::c_void) { #[inline] pub unsafe fn WTSFreeMemoryExA(wtstypeclass: WTS_TYPE_CLASS, pmemory: *const core::ffi::c_void, numberofentries: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSFreeMemoryExA(wtstypeclass : WTS_TYPE_CLASS, pmemory : *const core::ffi::c_void, numberofentries : u32) -> super::super::Foundation:: BOOL); - WTSFreeMemoryExA(core::mem::transmute(wtstypeclass), core::mem::transmute(pmemory), core::mem::transmute(numberofentries)).ok() + WTSFreeMemoryExA(wtstypeclass, pmemory, numberofentries).ok() } #[inline] pub unsafe fn WTSFreeMemoryExW(wtstypeclass: WTS_TYPE_CLASS, pmemory: *const core::ffi::c_void, numberofentries: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSFreeMemoryExW(wtstypeclass : WTS_TYPE_CLASS, pmemory : *const core::ffi::c_void, numberofentries : u32) -> super::super::Foundation:: BOOL); - WTSFreeMemoryExW(core::mem::transmute(wtstypeclass), core::mem::transmute(pmemory), core::mem::transmute(numberofentries)).ok() + WTSFreeMemoryExW(wtstypeclass, pmemory, numberofentries).ok() } #[inline] pub unsafe fn WTSGetActiveConsoleSessionId() -> u32 { @@ -150,7 +150,7 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSGetListenerSecurityA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); - WTSGetListenerSecurityA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)).ok() + WTSGetListenerSecurityA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), securityinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded)).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -159,7 +159,7 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSGetListenerSecurityW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); - WTSGetListenerSecurityW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded)).ok() + WTSGetListenerSecurityW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), securityinformation, core::mem::transmute(psecuritydescriptor.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded)).ok() } #[inline] pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { @@ -169,7 +169,7 @@ pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation #[inline] pub unsafe fn WTSLogoffSession(hserver: Option, sessionid: u32, bwait: bool) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSLogoffSession(hserver : super::super::Foundation:: HANDLE, sessionid : u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSLogoffSession(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), bwait.into()).ok() + WTSLogoffSession(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, bwait.into()).ok() } #[inline] pub unsafe fn WTSOpenServerA(pservername: P0) -> super::super::Foundation::HANDLE @@ -209,7 +209,7 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryListenerConfigA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, pbuffer : *mut WTSLISTENERCONFIGA) -> super::super::Foundation:: BOOL); - WTSQueryListenerConfigA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(pbuffer)).ok() + WTSQueryListenerConfigA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), core::mem::transmute(pbuffer)).ok() } #[inline] pub unsafe fn WTSQueryListenerConfigW(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P3, pbuffer: *mut WTSLISTENERCONFIGW) -> windows_core::Result<()> @@ -217,17 +217,17 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryListenerConfigW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, pbuffer : *mut WTSLISTENERCONFIGW) -> super::super::Foundation:: BOOL); - WTSQueryListenerConfigW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(pbuffer)).ok() + WTSQueryListenerConfigW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), core::mem::transmute(pbuffer)).ok() } #[inline] pub unsafe fn WTSQuerySessionInformationA(hserver: Option, sessionid: u32, wtsinfoclass: WTS_INFO_CLASS, ppbuffer: *mut windows_core::PSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSQuerySessionInformationA(hserver : super::super::Foundation:: HANDLE, sessionid : u32, wtsinfoclass : WTS_INFO_CLASS, ppbuffer : *mut windows_core::PSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); - WTSQuerySessionInformationA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), core::mem::transmute(wtsinfoclass), core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() + WTSQuerySessionInformationA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, wtsinfoclass, core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() } #[inline] pub unsafe fn WTSQuerySessionInformationW(hserver: Option, sessionid: u32, wtsinfoclass: WTS_INFO_CLASS, ppbuffer: *mut windows_core::PWSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSQuerySessionInformationW(hserver : super::super::Foundation:: HANDLE, sessionid : u32, wtsinfoclass : WTS_INFO_CLASS, ppbuffer : *mut windows_core::PWSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); - WTSQuerySessionInformationW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), core::mem::transmute(wtsinfoclass), core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() + WTSQuerySessionInformationW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, wtsinfoclass, core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() } #[inline] pub unsafe fn WTSQueryUserConfigA(pservername: P0, pusername: P1, wtsconfigclass: WTS_CONFIG_CLASS, ppbuffer: *mut windows_core::PSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> @@ -236,7 +236,7 @@ where P1: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserConfigA(pservername : windows_core::PCSTR, pusername : windows_core::PCSTR, wtsconfigclass : WTS_CONFIG_CLASS, ppbuffer : *mut windows_core::PSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); - WTSQueryUserConfigA(pservername.param().abi(), pusername.param().abi(), core::mem::transmute(wtsconfigclass), core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() + WTSQueryUserConfigA(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() } #[inline] pub unsafe fn WTSQueryUserConfigW(pservername: P0, pusername: P1, wtsconfigclass: WTS_CONFIG_CLASS, ppbuffer: *mut windows_core::PWSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> @@ -245,28 +245,28 @@ where P1: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserConfigW(pservername : windows_core::PCWSTR, pusername : windows_core::PCWSTR, wtsconfigclass : WTS_CONFIG_CLASS, ppbuffer : *mut windows_core::PWSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); - WTSQueryUserConfigW(pservername.param().abi(), pusername.param().abi(), core::mem::transmute(wtsconfigclass), core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() + WTSQueryUserConfigW(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() } #[inline] pub unsafe fn WTSQueryUserToken(sessionid: u32, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserToken(sessionid : u32, phtoken : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSQueryUserToken(core::mem::transmute(sessionid), core::mem::transmute(phtoken)).ok() + WTSQueryUserToken(sessionid, core::mem::transmute(phtoken)).ok() } #[inline] pub unsafe fn WTSRegisterSessionNotification(hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotification(hwnd : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); - WTSRegisterSessionNotification(core::mem::transmute(hwnd), core::mem::transmute(dwflags)).ok() + WTSRegisterSessionNotification(hwnd, dwflags).ok() } #[inline] pub unsafe fn WTSRegisterSessionNotificationEx(hserver: Option, hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); - WTSRegisterSessionNotificationEx(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd), core::mem::transmute(dwflags)).ok() + WTSRegisterSessionNotificationEx(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), hwnd, dwflags).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn WTSSendMessageA(hserver: Option, sessionid: u32, ptitle: &[u8], pmessage: &[u8], style: super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE, timeout: u32, presponse: *mut super::super::UI::WindowsAndMessaging::MESSAGEBOX_RESULT, bwait: bool) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSSendMessageA(hserver : super::super::Foundation:: HANDLE, sessionid : u32, ptitle : windows_core::PCSTR, titlelength : u32, pmessage : windows_core::PCSTR, messagelength : u32, style : super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE, timeout : u32, presponse : *mut super::super::UI::WindowsAndMessaging:: MESSAGEBOX_RESULT, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSSendMessageA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), core::mem::transmute(ptitle.as_ptr()), ptitle.len().try_into().unwrap(), core::mem::transmute(pmessage.as_ptr()), pmessage.len().try_into().unwrap(), core::mem::transmute(style), core::mem::transmute(timeout), core::mem::transmute(presponse), bwait.into()).ok() + WTSSendMessageA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, core::mem::transmute(ptitle.as_ptr()), ptitle.len().try_into().unwrap(), core::mem::transmute(pmessage.as_ptr()), pmessage.len().try_into().unwrap(), style, timeout, core::mem::transmute(presponse), bwait.into()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -276,7 +276,7 @@ where P4: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSSendMessageW(hserver : super::super::Foundation:: HANDLE, sessionid : u32, ptitle : windows_core::PCWSTR, titlelength : u32, pmessage : windows_core::PCWSTR, messagelength : u32, style : super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE, timeout : u32, presponse : *mut super::super::UI::WindowsAndMessaging:: MESSAGEBOX_RESULT, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSSendMessageW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), ptitle.param().abi(), core::mem::transmute(titlelength), pmessage.param().abi(), core::mem::transmute(messagelength), core::mem::transmute(style), core::mem::transmute(timeout), core::mem::transmute(presponse), bwait.into()).ok() + WTSSendMessageW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, ptitle.param().abi(), titlelength, pmessage.param().abi(), messagelength, style, timeout, core::mem::transmute(presponse), bwait.into()).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -285,7 +285,7 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSSetListenerSecurityA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); - WTSSetListenerSecurityA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)).ok() + WTSSetListenerSecurityA(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -294,12 +294,12 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSSetListenerSecurityW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); - WTSSetListenerSecurityW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(preserved), core::mem::transmute(reserved), plistenername.param().abi(), core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)).ok() + WTSSetListenerSecurityW(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor).ok() } #[inline] pub unsafe fn WTSSetRenderHint(prenderhintid: *mut u64, hwndowner: super::super::Foundation::HWND, renderhinttype: u32, phintdata: Option<&[u8]>) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSSetRenderHint(prenderhintid : *mut u64, hwndowner : super::super::Foundation:: HWND, renderhinttype : u32, cbhintdatalength : u32, phintdata : *const u8) -> windows_core::HRESULT); - WTSSetRenderHint(core::mem::transmute(prenderhintid), core::mem::transmute(hwndowner), core::mem::transmute(renderhinttype), phintdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phintdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + WTSSetRenderHint(core::mem::transmute(prenderhintid), hwndowner, renderhinttype, phintdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phintdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn WTSSetUserConfigA(pservername: P0, pusername: P1, wtsconfigclass: WTS_CONFIG_CLASS, pbuffer: &[u8]) -> windows_core::Result<()> @@ -308,7 +308,7 @@ where P1: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSSetUserConfigA(pservername : windows_core::PCSTR, pusername : windows_core::PCSTR, wtsconfigclass : WTS_CONFIG_CLASS, pbuffer : windows_core::PCSTR, datalength : u32) -> super::super::Foundation:: BOOL); - WTSSetUserConfigA(pservername.param().abi(), pusername.param().abi(), core::mem::transmute(wtsconfigclass), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()).ok() + WTSSetUserConfigA(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn WTSSetUserConfigW(pservername: P0, pusername: P1, wtsconfigclass: WTS_CONFIG_CLASS, pbuffer: P3, datalength: u32) -> windows_core::Result<()> @@ -318,12 +318,12 @@ where P3: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSSetUserConfigW(pservername : windows_core::PCWSTR, pusername : windows_core::PCWSTR, wtsconfigclass : WTS_CONFIG_CLASS, pbuffer : windows_core::PCWSTR, datalength : u32) -> super::super::Foundation:: BOOL); - WTSSetUserConfigW(pservername.param().abi(), pusername.param().abi(), core::mem::transmute(wtsconfigclass), pbuffer.param().abi(), core::mem::transmute(datalength)).ok() + WTSSetUserConfigW(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, pbuffer.param().abi(), datalength).ok() } #[inline] pub unsafe fn WTSShutdownSystem(hserver: Option, shutdownflag: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSShutdownSystem(hserver : super::super::Foundation:: HANDLE, shutdownflag : u32) -> super::super::Foundation:: BOOL); - WTSShutdownSystem(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(shutdownflag)).ok() + WTSShutdownSystem(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), shutdownflag).ok() } #[inline] pub unsafe fn WTSStartRemoteControlSessionA(ptargetservername: P0, targetlogonid: u32, hotkeyvk: u8, hotkeymodifiers: u16) -> windows_core::Result<()> @@ -331,7 +331,7 @@ where P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSStartRemoteControlSessionA(ptargetservername : windows_core::PCSTR, targetlogonid : u32, hotkeyvk : u8, hotkeymodifiers : u16) -> super::super::Foundation:: BOOL); - WTSStartRemoteControlSessionA(ptargetservername.param().abi(), core::mem::transmute(targetlogonid), core::mem::transmute(hotkeyvk), core::mem::transmute(hotkeymodifiers)).ok() + WTSStartRemoteControlSessionA(ptargetservername.param().abi(), targetlogonid, hotkeyvk, hotkeymodifiers).ok() } #[inline] pub unsafe fn WTSStartRemoteControlSessionW(ptargetservername: P0, targetlogonid: u32, hotkeyvk: u8, hotkeymodifiers: u16) -> windows_core::Result<()> @@ -339,32 +339,32 @@ where P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSStartRemoteControlSessionW(ptargetservername : windows_core::PCWSTR, targetlogonid : u32, hotkeyvk : u8, hotkeymodifiers : u16) -> super::super::Foundation:: BOOL); - WTSStartRemoteControlSessionW(ptargetservername.param().abi(), core::mem::transmute(targetlogonid), core::mem::transmute(hotkeyvk), core::mem::transmute(hotkeymodifiers)).ok() + WTSStartRemoteControlSessionW(ptargetservername.param().abi(), targetlogonid, hotkeyvk, hotkeymodifiers).ok() } #[inline] pub unsafe fn WTSStopRemoteControlSession(logonid: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSStopRemoteControlSession(logonid : u32) -> super::super::Foundation:: BOOL); - WTSStopRemoteControlSession(core::mem::transmute(logonid)).ok() + WTSStopRemoteControlSession(logonid).ok() } #[inline] pub unsafe fn WTSTerminateProcess(hserver: Option, processid: u32, exitcode: u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSTerminateProcess(hserver : super::super::Foundation:: HANDLE, processid : u32, exitcode : u32) -> super::super::Foundation:: BOOL); - WTSTerminateProcess(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(processid), core::mem::transmute(exitcode)).ok() + WTSTerminateProcess(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), processid, exitcode).ok() } #[inline] pub unsafe fn WTSUnRegisterSessionNotification(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotification(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - WTSUnRegisterSessionNotification(core::mem::transmute(hwnd)).ok() + WTSUnRegisterSessionNotification(hwnd).ok() } #[inline] pub unsafe fn WTSUnRegisterSessionNotificationEx(hserver: Option, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - WTSUnRegisterSessionNotificationEx(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd)).ok() + WTSUnRegisterSessionNotificationEx(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), hwnd).ok() } #[inline] pub unsafe fn WTSVirtualChannelClose(hchannelhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelClose(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSVirtualChannelClose(core::mem::transmute(hchannelhandle)).ok() + WTSVirtualChannelClose(hchannelhandle).ok() } #[inline] pub unsafe fn WTSVirtualChannelOpen(hserver: Option, sessionid: u32, pvirtualname: P2) -> windows_core::Result @@ -372,7 +372,7 @@ where P2: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelOpen(hserver : super::super::Foundation:: HANDLE, sessionid : u32, pvirtualname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = WTSVirtualChannelOpen(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(sessionid), pvirtualname.param().abi()); + let result__ = WTSVirtualChannelOpen(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), sessionid, pvirtualname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -381,38 +381,38 @@ where P1: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelOpenEx(sessionid : u32, pvirtualname : windows_core::PCSTR, flags : u32) -> super::super::Foundation:: HANDLE); - let result__ = WTSVirtualChannelOpenEx(core::mem::transmute(sessionid), pvirtualname.param().abi(), core::mem::transmute(flags)); + let result__ = WTSVirtualChannelOpenEx(sessionid, pvirtualname.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WTSVirtualChannelPurgeInput(hchannelhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeInput(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSVirtualChannelPurgeInput(core::mem::transmute(hchannelhandle)).ok() + WTSVirtualChannelPurgeInput(hchannelhandle).ok() } #[inline] pub unsafe fn WTSVirtualChannelPurgeOutput(hchannelhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeOutput(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSVirtualChannelPurgeOutput(core::mem::transmute(hchannelhandle)).ok() + WTSVirtualChannelPurgeOutput(hchannelhandle).ok() } #[inline] pub unsafe fn WTSVirtualChannelQuery(hchannelhandle: super::super::Foundation::HANDLE, param1: WTS_VIRTUAL_CLASS, ppbuffer: *mut *mut core::ffi::c_void, pbytesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelQuery(hchannelhandle : super::super::Foundation:: HANDLE, param1 : WTS_VIRTUAL_CLASS, ppbuffer : *mut *mut core::ffi::c_void, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); - WTSVirtualChannelQuery(core::mem::transmute(hchannelhandle), core::mem::transmute(param1), core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() + WTSVirtualChannelQuery(hchannelhandle, param1, core::mem::transmute(ppbuffer), core::mem::transmute(pbytesreturned)).ok() } #[inline] pub unsafe fn WTSVirtualChannelRead(hchannelhandle: super::super::Foundation::HANDLE, timeout: u32, buffer: &mut [u8], pbytesread: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelRead(hchannelhandle : super::super::Foundation:: HANDLE, timeout : u32, buffer : windows_core::PSTR, buffersize : u32, pbytesread : *mut u32) -> super::super::Foundation:: BOOL); - WTSVirtualChannelRead(core::mem::transmute(hchannelhandle), core::mem::transmute(timeout), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(pbytesread)).ok() + WTSVirtualChannelRead(hchannelhandle, timeout, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(pbytesread)).ok() } #[inline] pub unsafe fn WTSVirtualChannelWrite(hchannelhandle: super::super::Foundation::HANDLE, buffer: &[u8], pbyteswritten: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelWrite(hchannelhandle : super::super::Foundation:: HANDLE, buffer : windows_core::PCSTR, length : u32, pbyteswritten : *mut u32) -> super::super::Foundation:: BOOL); - WTSVirtualChannelWrite(core::mem::transmute(hchannelhandle), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(pbyteswritten)).ok() + WTSVirtualChannelWrite(hchannelhandle, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(pbyteswritten)).ok() } #[inline] pub unsafe fn WTSWaitSystemEvent(hserver: Option, eventmask: u32, peventflags: *mut u32) -> windows_core::Result<()> { windows_targets::link!("wtsapi32.dll" "system" fn WTSWaitSystemEvent(hserver : super::super::Foundation:: HANDLE, eventmask : u32, peventflags : *mut u32) -> super::super::Foundation:: BOOL); - WTSWaitSystemEvent(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventmask), core::mem::transmute(peventflags)).ok() + WTSWaitSystemEvent(core::mem::transmute(hserver.unwrap_or(core::mem::zeroed())), eventmask, core::mem::transmute(peventflags)).ok() } #[repr(C)] #[derive(Clone, Debug, PartialEq)] @@ -696,70 +696,70 @@ impl IADsTSUserEx { (windows_core::Interface::vtable(self).AllowLogon)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowLogon(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowLogon)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetAllowLogon)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn EnableRemoteControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableRemoteControl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnableRemoteControl(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableRemoteControl)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEnableRemoteControl)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn MaxDisconnectionTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxDisconnectionTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxDisconnectionTime(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxDisconnectionTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetMaxDisconnectionTime)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn MaxConnectionTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxConnectionTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxConnectionTime(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxConnectionTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetMaxConnectionTime)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn MaxIdleTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxIdleTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxIdleTime(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxIdleTime)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetMaxIdleTime)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ReconnectionAction(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReconnectionAction)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetReconnectionAction(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReconnectionAction)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetReconnectionAction)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn BrokenConnectionAction(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BrokenConnectionAction)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBrokenConnectionAction(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBrokenConnectionAction)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetBrokenConnectionAction)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ConnectClientDrivesAtLogon(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ConnectClientDrivesAtLogon)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConnectClientDrivesAtLogon(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectClientDrivesAtLogon)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetConnectClientDrivesAtLogon)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ConnectClientPrintersAtLogon(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ConnectClientPrintersAtLogon)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConnectClientPrintersAtLogon(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectClientPrintersAtLogon)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetConnectClientPrintersAtLogon)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn DefaultToMainPrinter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DefaultToMainPrinter)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultToMainPrinter(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultToMainPrinter)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetDefaultToMainPrinter)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn TerminalServicesWorkDirectory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1101,7 +1101,7 @@ windows_core::imp::define_interface!(IAudioDeviceEndpoint, IAudioDeviceEndpoint_ windows_core::imp::interface_hierarchy!(IAudioDeviceEndpoint, windows_core::IUnknown); impl IAudioDeviceEndpoint { pub unsafe fn SetBuffer(&self, maxperiod: i64, u32latencycoefficient: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(maxperiod), core::mem::transmute(u32latencycoefficient)).ok() + (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), maxperiod, u32latencycoefficient).ok() } pub unsafe fn GetRTCaps(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1112,7 +1112,7 @@ impl IAudioDeviceEndpoint { (windows_core::Interface::vtable(self).GetEventDrivenCapable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn WriteExclusiveModeParametersToSharedMemory(&self, htargetprocess: usize, hnsperiod: i64, hnsbufferduration: i64, u32latencycoefficient: u32, pu32sharedmemorysize: *mut u32, phsharedmemory: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteExclusiveModeParametersToSharedMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(htargetprocess), core::mem::transmute(hnsperiod), core::mem::transmute(hnsbufferduration), core::mem::transmute(u32latencycoefficient), core::mem::transmute(pu32sharedmemorysize), core::mem::transmute(phsharedmemory)).ok() + (windows_core::Interface::vtable(self).WriteExclusiveModeParametersToSharedMemory)(windows_core::Interface::as_raw(self), htargetprocess, hnsperiod, hnsbufferduration, u32latencycoefficient, core::mem::transmute(pu32sharedmemorysize), core::mem::transmute(phsharedmemory)).ok() } } #[repr(C)] @@ -1189,10 +1189,10 @@ impl IAudioEndpoint { (windows_core::Interface::vtable(self).GetLatency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStreamFlags(&self, streamflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStreamFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(streamflags)).ok() + (windows_core::Interface::vtable(self).SetStreamFlags)(windows_core::Interface::as_raw(self), streamflags).ok() } pub unsafe fn SetEventHandle(&self, eventhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(eventhandle)).ok() + (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle).ok() } } #[repr(C)] @@ -1391,7 +1391,7 @@ impl IAudioInputEndpointRT { (windows_core::Interface::vtable(self).GetInputDataPointer)(windows_core::Interface::as_raw(self), core::mem::transmute(pconnectionproperty), core::mem::transmute(paetimestamp)) } pub unsafe fn ReleaseInputDataPointer(&self, u32framecount: u32, pdatapointer: usize) { - (windows_core::Interface::vtable(self).ReleaseInputDataPointer)(windows_core::Interface::as_raw(self), core::mem::transmute(u32framecount), core::mem::transmute(pdatapointer)) + (windows_core::Interface::vtable(self).ReleaseInputDataPointer)(windows_core::Interface::as_raw(self), u32framecount, pdatapointer) } pub unsafe fn PulseEndpoint(&self) { (windows_core::Interface::vtable(self).PulseEndpoint)(windows_core::Interface::as_raw(self)) @@ -1445,11 +1445,11 @@ windows_core::imp::define_interface!(IAudioOutputEndpointRT, IAudioOutputEndpoin windows_core::imp::interface_hierarchy!(IAudioOutputEndpointRT, windows_core::IUnknown); impl IAudioOutputEndpointRT { pub unsafe fn GetOutputDataPointer(&self, u32framecount: u32, paetimestamp: *const AE_CURRENT_POSITION) -> usize { - (windows_core::Interface::vtable(self).GetOutputDataPointer)(windows_core::Interface::as_raw(self), core::mem::transmute(u32framecount), core::mem::transmute(paetimestamp)) + (windows_core::Interface::vtable(self).GetOutputDataPointer)(windows_core::Interface::as_raw(self), u32framecount, paetimestamp) } #[cfg(feature = "Win32_Media_Audio_Apo")] pub unsafe fn ReleaseOutputDataPointer(&self, pconnectionproperty: *const super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY) { - (windows_core::Interface::vtable(self).ReleaseOutputDataPointer)(windows_core::Interface::as_raw(self), core::mem::transmute(pconnectionproperty)) + (windows_core::Interface::vtable(self).ReleaseOutputDataPointer)(windows_core::Interface::as_raw(self), pconnectionproperty) } pub unsafe fn PulseEndpoint(&self) { (windows_core::Interface::vtable(self).PulseEndpoint)(windows_core::Interface::as_raw(self)) @@ -1519,7 +1519,7 @@ impl IRemoteDesktopClient { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Reconnect(&self, width: u32, height: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn Settings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1537,7 +1537,7 @@ impl IRemoteDesktopClient { (windows_core::Interface::vtable(self).DeleteSavedCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(servername)).ok() } pub unsafe fn UpdateSessionDisplaySettings(&self, width: u32, height: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateSessionDisplaySettings)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).UpdateSessionDisplaySettings)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn attachEvent(&self, eventname: &windows_core::BSTR, callback: P1) -> windows_core::Result<()> where @@ -1681,11 +1681,11 @@ impl IRemoteDesktopClientActions { (windows_core::Interface::vtable(self).ResumeScreenUpdates)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExecuteRemoteAction(&self, remoteaction: RemoteActionType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExecuteRemoteAction)(windows_core::Interface::as_raw(self), core::mem::transmute(remoteaction)).ok() + (windows_core::Interface::vtable(self).ExecuteRemoteAction)(windows_core::Interface::as_raw(self), remoteaction).ok() } pub unsafe fn GetSnapshot(&self, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotencoding), core::mem::transmute(snapshotformat), core::mem::transmute(snapshotwidth), core::mem::transmute(snapshotheight), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSnapshot)(windows_core::Interface::as_raw(self), snapshotencoding, snapshotformat, snapshotwidth, snapshotheight, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1854,21 +1854,21 @@ windows_core::imp::interface_hierarchy!(IRemoteDesktopClientTouchPointer, window #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientTouchPointer { pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEventsEnabled(&self, eventsenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventsEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(eventsenabled)).ok() + (windows_core::Interface::vtable(self).SetEventsEnabled)(windows_core::Interface::as_raw(self), eventsenabled).ok() } pub unsafe fn EventsEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EventsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPointerSpeed(&self, pointerspeed: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPointerSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerspeed)).ok() + (windows_core::Interface::vtable(self).SetPointerSpeed)(windows_core::Interface::as_raw(self), pointerspeed).ok() } pub unsafe fn PointerSpeed(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1992,7 +1992,7 @@ windows_core::imp::define_interface!(ITSGAccountingEngine, ITSGAccountingEngine_ windows_core::imp::interface_hierarchy!(ITSGAccountingEngine, windows_core::IUnknown); impl ITSGAccountingEngine { pub unsafe fn DoAccounting(&self, accountingdatatype: AAAccountingDataType, accountingdata: &AAAccountingData) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoAccounting)(windows_core::Interface::as_raw(self), core::mem::transmute(accountingdatatype), core::mem::transmute_copy(accountingdata)).ok() + (windows_core::Interface::vtable(self).DoAccounting)(windows_core::Interface::as_raw(self), accountingdatatype, core::mem::transmute_copy(accountingdata)).ok() } } #[repr(C)] @@ -2020,16 +2020,16 @@ windows_core::imp::define_interface!(ITSGAuthenticateUserSink, ITSGAuthenticateU windows_core::imp::interface_hierarchy!(ITSGAuthenticateUserSink, windows_core::IUnknown); impl ITSGAuthenticateUserSink { pub unsafe fn OnUserAuthenticated(&self, username: &windows_core::BSTR, userdomain: &windows_core::BSTR, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUserAuthenticated)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(userdomain), core::mem::transmute(context), core::mem::transmute(usertoken)).ok() + (windows_core::Interface::vtable(self).OnUserAuthenticated)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(userdomain), context, usertoken).ok() } pub unsafe fn OnUserAuthenticationFailed(&self, context: usize, genericerrorcode: windows_core::HRESULT, specificerrorcode: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUserAuthenticationFailed)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute(genericerrorcode), core::mem::transmute(specificerrorcode)).ok() + (windows_core::Interface::vtable(self).OnUserAuthenticationFailed)(windows_core::Interface::as_raw(self), context, genericerrorcode, specificerrorcode).ok() } pub unsafe fn ReauthenticateUser(&self, context: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReauthenticateUser)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).ReauthenticateUser)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn DisconnectUser(&self, context: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisconnectUser)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).DisconnectUser)(windows_core::Interface::as_raw(self), context).ok() } } #[repr(C)] @@ -2084,10 +2084,10 @@ impl ITSGAuthenticationEngine { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthenticateUser)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), core::mem::transmute(cookiedata), core::mem::transmute(numcookiebytes), core::mem::transmute(context), psink.param().abi()).ok() + (windows_core::Interface::vtable(self).AuthenticateUser)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), cookiedata, numcookiebytes, context, psink.param().abi()).ok() } pub unsafe fn CancelAuthentication(&self, mainsessionid: windows_core::GUID, context: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelAuthentication)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).CancelAuthentication)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), context).ok() } } #[repr(C)] @@ -2125,7 +2125,7 @@ windows_core::imp::define_interface!(ITSGAuthorizeConnectionSink, ITSGAuthorizeC windows_core::imp::interface_hierarchy!(ITSGAuthorizeConnectionSink, windows_core::IUnknown); impl ITSGAuthorizeConnectionSink { pub unsafe fn OnConnectionAuthorized(&self, hrin: windows_core::HRESULT, mainsessionid: windows_core::GUID, pbsohresponse: &[u8], idletimeout: u32, sessiontimeout: u32, sessiontimeoutaction: SESSION_TIMEOUT_ACTION_TYPE, trustclass: AATrustClassID, policyattributes: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnConnectionAuthorized)(windows_core::Interface::as_raw(self), core::mem::transmute(hrin), core::mem::transmute(mainsessionid), pbsohresponse.len().try_into().unwrap(), core::mem::transmute(pbsohresponse.as_ptr()), core::mem::transmute(idletimeout), core::mem::transmute(sessiontimeout), core::mem::transmute(sessiontimeoutaction), core::mem::transmute(trustclass), core::mem::transmute(policyattributes)).ok() + (windows_core::Interface::vtable(self).OnConnectionAuthorized)(windows_core::Interface::as_raw(self), hrin, core::mem::transmute(mainsessionid), pbsohresponse.len().try_into().unwrap(), core::mem::transmute(pbsohresponse.as_ptr()), idletimeout, sessiontimeout, sessiontimeoutaction, trustclass, policyattributes).ok() } } #[repr(C)] @@ -2153,7 +2153,7 @@ windows_core::imp::define_interface!(ITSGAuthorizeResourceSink, ITSGAuthorizeRes windows_core::imp::interface_hierarchy!(ITSGAuthorizeResourceSink, windows_core::IUnknown); impl ITSGAuthorizeResourceSink { pub unsafe fn OnChannelAuthorized(&self, hrin: windows_core::HRESULT, mainsessionid: windows_core::GUID, subsessionid: i32, allowedresourcenames: &[windows_core::BSTR], failedresourcenames: &[windows_core::BSTR]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChannelAuthorized)(windows_core::Interface::as_raw(self), core::mem::transmute(hrin), core::mem::transmute(mainsessionid), core::mem::transmute(subsessionid), core::mem::transmute(allowedresourcenames.as_ptr()), allowedresourcenames.len().try_into().unwrap(), core::mem::transmute(failedresourcenames.as_ptr()), failedresourcenames.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).OnChannelAuthorized)(windows_core::Interface::as_raw(self), hrin, core::mem::transmute(mainsessionid), subsessionid, core::mem::transmute(allowedresourcenames.as_ptr()), allowedresourcenames.len().try_into().unwrap(), core::mem::transmute(failedresourcenames.as_ptr()), failedresourcenames.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -2184,28 +2184,13 @@ impl ITSGPolicyEngine { where P10: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthorizeConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), core::mem::transmute_copy(username), core::mem::transmute(authtype), core::mem::transmute_copy(clientmachineip), core::mem::transmute_copy(clientmachinename), core::mem::transmute(sohdata.as_ptr()), sohdata.len().try_into().unwrap(), core::mem::transmute(cookiedata.as_ptr()), cookiedata.len().try_into().unwrap(), core::mem::transmute(usertoken), psink.param().abi()).ok() + (windows_core::Interface::vtable(self).AuthorizeConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), core::mem::transmute_copy(username), authtype, core::mem::transmute_copy(clientmachineip), core::mem::transmute_copy(clientmachinename), core::mem::transmute(sohdata.as_ptr()), sohdata.len().try_into().unwrap(), core::mem::transmute(cookiedata.as_ptr()), cookiedata.len().try_into().unwrap(), usertoken, psink.param().abi()).ok() } pub unsafe fn AuthorizeResource(&self, mainsessionid: windows_core::GUID, subsessionid: i32, username: &windows_core::BSTR, resourcenames: &[windows_core::BSTR], alternateresourcenames: &[windows_core::BSTR], portnumber: u32, operation: &windows_core::BSTR, cookie: &[u8], psink: P11) -> windows_core::Result<()> where P11: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthorizeResource)( - windows_core::Interface::as_raw(self), - core::mem::transmute(mainsessionid), - core::mem::transmute(subsessionid), - core::mem::transmute_copy(username), - core::mem::transmute(resourcenames.as_ptr()), - resourcenames.len().try_into().unwrap(), - core::mem::transmute(alternateresourcenames.as_ptr()), - alternateresourcenames.len().try_into().unwrap(), - core::mem::transmute(portnumber), - core::mem::transmute_copy(operation), - core::mem::transmute(cookie.as_ptr()), - cookie.len().try_into().unwrap(), - psink.param().abi(), - ) - .ok() + (windows_core::Interface::vtable(self).AuthorizeResource)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), subsessionid, core::mem::transmute_copy(username), core::mem::transmute(resourcenames.as_ptr()), resourcenames.len().try_into().unwrap(), core::mem::transmute(alternateresourcenames.as_ptr()), alternateresourcenames.len().try_into().unwrap(), portnumber, core::mem::transmute_copy(operation), core::mem::transmute(cookie.as_ptr()), cookie.len().try_into().unwrap(), psink.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -2285,10 +2270,10 @@ windows_core::imp::define_interface!(ITsSbBaseNotifySink, ITsSbBaseNotifySink_Vt windows_core::imp::interface_hierarchy!(ITsSbBaseNotifySink, windows_core::IUnknown); impl ITsSbBaseNotifySink { pub unsafe fn OnError(&self, hrerror: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror)).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hrerror).ok() } pub unsafe fn OnReportStatus(&self, messagetype: CLIENT_MESSAGE_TYPE, messageid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnReportStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(messagetype), core::mem::transmute(messageid)).ok() + (windows_core::Interface::vtable(self).OnReportStatus)(windows_core::Interface::as_raw(self), messagetype, messageid).ok() } } #[repr(C)] @@ -2829,7 +2814,7 @@ windows_core::imp::define_interface!(ITsSbGenericNotifySink, ITsSbGenericNotifyS windows_core::imp::interface_hierarchy!(ITsSbGenericNotifySink, windows_core::IUnknown); impl ITsSbGenericNotifySink { pub unsafe fn OnCompleted(&self, status: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(status)).ok() + (windows_core::Interface::vtable(self).OnCompleted)(windows_core::Interface::as_raw(self), status).ok() } pub unsafe fn GetWaitTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2882,7 +2867,7 @@ impl ITsSbGlobalStore { } pub unsafe fn QuerySessionBySessionId(&self, providername: &windows_core::BSTR, dwsessionid: u32, targetname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(providername), core::mem::transmute(dwsessionid), core::mem::transmute_copy(targetname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(providername), dwsessionid, core::mem::transmute_copy(targetname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateFarms(&self, providername: &windows_core::BSTR, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> { @@ -2895,7 +2880,7 @@ impl ITsSbGlobalStore { (windows_core::Interface::vtable(self).EnumerateEnvironmentsByProvider)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(providername), core::mem::transmute(pdwcount), core::mem::transmute(ppval)).ok() } pub unsafe fn EnumerateSessions(&self, providername: &windows_core::BSTR, targetname: &windows_core::BSTR, username: &windows_core::BSTR, userdomain: &windows_core::BSTR, poolname: &windows_core::BSTR, initialprogram: &windows_core::BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(providername), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(userdomain), core::mem::transmute_copy(poolname), core::mem::transmute_copy(initialprogram), core::mem::transmute(psessionstate), core::mem::transmute(pdwcount), core::mem::transmute(ppval)).ok() + (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(providername), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(userdomain), core::mem::transmute_copy(poolname), core::mem::transmute_copy(initialprogram), psessionstate, core::mem::transmute(pdwcount), core::mem::transmute(ppval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFarmProperty(&self, farmname: &windows_core::BSTR, propertyname: &windows_core::BSTR, pvarvalue: *const super::Variant::VARIANT) -> windows_core::Result<()> { @@ -3271,7 +3256,7 @@ impl ITsSbPlugin { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pprovider.param().abi(), pnotifysink.param().abi(), ppropertyset.param().abi()).ok() } pub unsafe fn Terminate(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), hr).ok() } } #[repr(C)] @@ -3321,7 +3306,7 @@ impl core::ops::Deref for ITsSbPluginNotifySink { windows_core::imp::interface_hierarchy!(ITsSbPluginNotifySink, windows_core::IUnknown, ITsSbBaseNotifySink); impl ITsSbPluginNotifySink { pub unsafe fn OnInitialized(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInitialized)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).OnInitialized)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn OnTerminated(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnTerminated)(windows_core::Interface::as_raw(self)).ok() @@ -3429,7 +3414,7 @@ impl ITsSbProvider { } pub unsafe fn CreateSessionObject(&self, targetname: &windows_core::BSTR, username: &windows_core::BSTR, domain: &windows_core::BSTR, sessionid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSessionObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(domain), core::mem::transmute(sessionid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSessionObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(domain), sessionid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn CreatePluginPropertySet(&self) -> windows_core::Result { @@ -3443,7 +3428,7 @@ impl ITsSbProvider { } pub unsafe fn CreateEnvironmentObject(&self, name: &windows_core::BSTR, serverweight: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEnvironmentObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(serverweight), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEnvironmentObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), serverweight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetResourcePluginStore(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3457,10 +3442,10 @@ impl ITsSbProvider { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(notificationtype), core::mem::transmute_copy(resourcetomonitor), ppluginnotification.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNotification)(windows_core::Interface::as_raw(self), notificationtype, core::mem::transmute_copy(resourcetomonitor), ppluginnotification.param().abi()).ok() } pub unsafe fn UnRegisterForNotification(&self, notificationtype: u32, resourcetomonitor: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnRegisterForNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(notificationtype), core::mem::transmute_copy(resourcetomonitor)).ok() + (windows_core::Interface::vtable(self).UnRegisterForNotification)(windows_core::Interface::as_raw(self), notificationtype, core::mem::transmute_copy(resourcetomonitor)).ok() } pub unsafe fn GetInstanceOfGlobalStore(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3664,7 +3649,7 @@ impl ITsSbProvisioning { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PatchVirtualMachines)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(jobxmlstring), core::mem::transmute_copy(jobguid), psink.param().abi(), core::mem::transmute(pvmpatchinfo)).ok() + (windows_core::Interface::vtable(self).PatchVirtualMachines)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(jobxmlstring), core::mem::transmute_copy(jobguid), psink.param().abi(), pvmpatchinfo).ok() } pub unsafe fn DeleteVirtualMachines(&self, jobxmlstring: &windows_core::BSTR, jobguid: &windows_core::BSTR, psink: P2) -> windows_core::Result<()> where @@ -3728,22 +3713,22 @@ windows_core::imp::define_interface!(ITsSbProvisioningPluginNotifySink, ITsSbPro windows_core::imp::interface_hierarchy!(ITsSbProvisioningPluginNotifySink, windows_core::IUnknown); impl ITsSbProvisioningPluginNotifySink { pub unsafe fn OnJobCreated(&self, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnJobCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(pvmnotifyinfo)).ok() + (windows_core::Interface::vtable(self).OnJobCreated)(windows_core::Interface::as_raw(self), pvmnotifyinfo).ok() } pub unsafe fn OnVirtualMachineStatusChanged(&self, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnVirtualMachineStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(pvmnotifyentry), core::mem::transmute(vmnotifystatus), core::mem::transmute(errorcode), core::mem::transmute_copy(errordescr)).ok() + (windows_core::Interface::vtable(self).OnVirtualMachineStatusChanged)(windows_core::Interface::as_raw(self), pvmnotifyentry, vmnotifystatus, errorcode, core::mem::transmute_copy(errordescr)).ok() } pub unsafe fn OnJobCompleted(&self, resultcode: windows_core::HRESULT, resultdescription: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnJobCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(resultcode), core::mem::transmute_copy(resultdescription)).ok() + (windows_core::Interface::vtable(self).OnJobCompleted)(windows_core::Interface::as_raw(self), resultcode, core::mem::transmute_copy(resultdescription)).ok() } pub unsafe fn OnJobCancelled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnJobCancelled)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn LockVirtualMachine(&self, pvmnotifyentry: *const VM_NOTIFY_ENTRY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockVirtualMachine)(windows_core::Interface::as_raw(self), core::mem::transmute(pvmnotifyentry)).ok() + (windows_core::Interface::vtable(self).LockVirtualMachine)(windows_core::Interface::as_raw(self), pvmnotifyentry).ok() } pub unsafe fn OnVirtualMachineHostStatusChanged(&self, vmhost: &windows_core::BSTR, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnVirtualMachineHostStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vmhost), core::mem::transmute(vmhostnotifystatus), core::mem::transmute(errorcode), core::mem::transmute_copy(errordescr)).ok() + (windows_core::Interface::vtable(self).OnVirtualMachineHostStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vmhost), vmhostnotifystatus, errorcode, core::mem::transmute_copy(errordescr)).ok() } } #[repr(C)] @@ -3812,19 +3797,19 @@ impl ITsSbResourceNotification { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifySessionChange)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype), psession.param().abi()).ok() + (windows_core::Interface::vtable(self).NotifySessionChange)(windows_core::Interface::as_raw(self), changetype, psession.param().abi()).ok() } pub unsafe fn NotifyTargetChange(&self, targetchangetype: u32, ptarget: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyTargetChange)(windows_core::Interface::as_raw(self), core::mem::transmute(targetchangetype), ptarget.param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyTargetChange)(windows_core::Interface::as_raw(self), targetchangetype, ptarget.param().abi()).ok() } pub unsafe fn NotifyClientConnectionStateChange(&self, changetype: CONNECTION_CHANGE_NOTIFICATION, pconnection: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyClientConnectionStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(changetype), pconnection.param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyClientConnectionStateChange)(windows_core::Interface::as_raw(self), changetype, pconnection.param().abi()).ok() } } #[repr(C)] @@ -3869,13 +3854,13 @@ windows_core::imp::define_interface!(ITsSbResourceNotificationEx, ITsSbResourceN windows_core::imp::interface_hierarchy!(ITsSbResourceNotificationEx, windows_core::IUnknown); impl ITsSbResourceNotificationEx { pub unsafe fn NotifySessionChangeEx(&self, targetname: &windows_core::BSTR, username: &windows_core::BSTR, domain: &windows_core::BSTR, sessionid: u32, sessionstate: TSSESSION_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionChangeEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(domain), core::mem::transmute(sessionid), core::mem::transmute(sessionstate)).ok() + (windows_core::Interface::vtable(self).NotifySessionChangeEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(domain), sessionid, sessionstate).ok() } pub unsafe fn NotifyTargetChangeEx(&self, targetname: &windows_core::BSTR, targetchangetype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyTargetChangeEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute(targetchangetype)).ok() + (windows_core::Interface::vtable(self).NotifyTargetChangeEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), targetchangetype).ok() } pub unsafe fn NotifyClientConnectionStateChangeEx(&self, username: &windows_core::BSTR, domain: &windows_core::BSTR, initialprogram: &windows_core::BSTR, poolname: &windows_core::BSTR, targetname: &windows_core::BSTR, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyClientConnectionStateChangeEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(domain), core::mem::transmute_copy(initialprogram), core::mem::transmute_copy(poolname), core::mem::transmute_copy(targetname), core::mem::transmute(connectionchangetype)).ok() + (windows_core::Interface::vtable(self).NotifyClientConnectionStateChangeEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(username), core::mem::transmute_copy(domain), core::mem::transmute_copy(initialprogram), core::mem::transmute_copy(poolname), core::mem::transmute_copy(targetname), connectionchangetype).ok() } } #[repr(C)] @@ -3950,7 +3935,7 @@ impl ITsSbResourcePluginStore { } pub unsafe fn QuerySessionBySessionId(&self, dwsessionid: u32, targetname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsessionid), core::mem::transmute_copy(targetname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), dwsessionid, core::mem::transmute_copy(targetname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddTargetToStore(&self, ptarget: P0) -> windows_core::Result<()> where @@ -4012,7 +3997,7 @@ impl ITsSbResourcePluginStore { } pub unsafe fn SetTargetState(&self, targetname: &windows_core::BSTR, newstate: TARGET_STATE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetTargetState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute(newstate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetTargetState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), newstate, &mut result__).map(|| result__) } pub unsafe fn SetSessionState(&self, sbsession: P0) -> windows_core::Result<()> where @@ -4021,10 +4006,10 @@ impl ITsSbResourcePluginStore { (windows_core::Interface::vtable(self).SetSessionState)(windows_core::Interface::as_raw(self), sbsession.param().abi()).ok() } pub unsafe fn EnumerateTargets(&self, farmname: &windows_core::BSTR, envname: &windows_core::BSTR, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: &windows_core::BSTR, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateTargets)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(farmname), core::mem::transmute_copy(envname), core::mem::transmute(sortbyfieldid), core::mem::transmute_copy(sortybypropname), core::mem::transmute(pdwcount), core::mem::transmute(pval)).ok() + (windows_core::Interface::vtable(self).EnumerateTargets)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(farmname), core::mem::transmute_copy(envname), sortbyfieldid, core::mem::transmute_copy(sortybypropname), core::mem::transmute(pdwcount), core::mem::transmute(pval)).ok() } pub unsafe fn EnumerateSessions(&self, targetname: &windows_core::BSTR, username: &windows_core::BSTR, userdomain: &windows_core::BSTR, poolname: &windows_core::BSTR, initialprogram: &windows_core::BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(userdomain), core::mem::transmute_copy(poolname), core::mem::transmute_copy(initialprogram), core::mem::transmute(psessionstate), core::mem::transmute(pdwcount), core::mem::transmute(ppval)).ok() + (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute_copy(username), core::mem::transmute_copy(userdomain), core::mem::transmute_copy(poolname), core::mem::transmute_copy(initialprogram), psessionstate, core::mem::transmute(pdwcount), core::mem::transmute(ppval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFarmProperty(&self, farmname: &windows_core::BSTR, propertyname: &windows_core::BSTR, pvarvalue: *const super::Variant::VARIANT) -> windows_core::Result<()> { @@ -4049,7 +4034,7 @@ impl ITsSbResourcePluginStore { } pub unsafe fn AcquireTargetLock(&self, targetname: &windows_core::BSTR, dwtimeout: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AcquireTargetLock)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), core::mem::transmute(dwtimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AcquireTargetLock)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(targetname), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReleaseTargetLock(&self, pcontext: P0) -> windows_core::Result<()> where @@ -4059,7 +4044,7 @@ impl ITsSbResourcePluginStore { } pub unsafe fn TestAndSetServerState(&self, poolname: &windows_core::BSTR, serverfqdn: &windows_core::BSTR, newstate: TARGET_STATE, teststate: TARGET_STATE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TestAndSetServerState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(poolname), core::mem::transmute_copy(serverfqdn), core::mem::transmute(newstate), core::mem::transmute(teststate), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TestAndSetServerState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(poolname), core::mem::transmute_copy(serverfqdn), newstate, teststate, &mut result__).map(|| result__) } pub unsafe fn SetServerWaitingToStart(&self, poolname: &windows_core::BSTR, servername: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetServerWaitingToStart)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(poolname), core::mem::transmute_copy(servername)).ok() @@ -4069,7 +4054,7 @@ impl ITsSbResourcePluginStore { (windows_core::Interface::vtable(self).GetServerState)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(poolname), core::mem::transmute_copy(serverfqdn), &mut result__).map(|| result__) } pub unsafe fn SetServerDrainMode(&self, serverfqdn: &windows_core::BSTR, drainmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetServerDrainMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(serverfqdn), core::mem::transmute(drainmode)).ok() + (windows_core::Interface::vtable(self).SetServerDrainMode)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(serverfqdn), drainmode).ok() } } #[repr(C)] @@ -4416,7 +4401,7 @@ impl ITsSbSession { (windows_core::Interface::vtable(self).State)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetState(&self, state: TSSESSION_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn CreateTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4451,7 +4436,7 @@ impl ITsSbSession { (windows_core::Interface::vtable(self).ProtocolType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProtocolType(&self, val: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtocolType)(windows_core::Interface::as_raw(self), core::mem::transmute(val)).ok() + (windows_core::Interface::vtable(self).SetProtocolType)(windows_core::Interface::as_raw(self), val).ok() } } #[repr(C)] @@ -4692,7 +4677,7 @@ impl ITsSbTarget { (windows_core::Interface::vtable(self).TargetState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTargetState(&self, state: TARGET_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTargetState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetTargetState)(windows_core::Interface::as_raw(self), state).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn TargetPropertySet(&self) -> windows_core::Result { @@ -5219,13 +5204,13 @@ windows_core::imp::interface_hierarchy!(ITsSbTaskPluginNotifySink, windows_core: impl ITsSbTaskPluginNotifySink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSetTaskTime(&self, sztargetname: &windows_core::BSTR, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: &windows_core::BSTR, sztaskidentifier: &windows_core::BSTR, sztaskplugin: &windows_core::BSTR, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSetTaskTime)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sztargetname), core::mem::transmute(taskstarttime), core::mem::transmute(taskendtime), core::mem::transmute(taskdeadline), core::mem::transmute_copy(sztasklabel), core::mem::transmute_copy(sztaskidentifier), core::mem::transmute_copy(sztaskplugin), core::mem::transmute(dwtaskstatus), core::mem::transmute(sacontext)).ok() + (windows_core::Interface::vtable(self).OnSetTaskTime)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sztargetname), core::mem::transmute(taskstarttime), core::mem::transmute(taskendtime), core::mem::transmute(taskdeadline), core::mem::transmute_copy(sztasklabel), core::mem::transmute_copy(sztaskidentifier), core::mem::transmute_copy(sztaskplugin), dwtaskstatus, sacontext).ok() } pub unsafe fn OnDeleteTaskTime(&self, sztargetname: &windows_core::BSTR, sztaskidentifier: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnDeleteTaskTime)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sztargetname), core::mem::transmute_copy(sztaskidentifier)).ok() } pub unsafe fn OnUpdateTaskStatus(&self, sztargetname: &windows_core::BSTR, taskidentifier: &windows_core::BSTR, taskstatus: RDV_TASK_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUpdateTaskStatus)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sztargetname), core::mem::transmute_copy(taskidentifier), core::mem::transmute(taskstatus)).ok() + (windows_core::Interface::vtable(self).OnUpdateTaskStatus)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sztargetname), core::mem::transmute_copy(taskidentifier), taskstatus).ok() } pub unsafe fn OnReportTasks(&self, szhostname: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnReportTasks)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(szhostname)).ok() @@ -5287,7 +5272,7 @@ windows_core::imp::interface_hierarchy!(IWRdsEnhancedFastReconnectArbitrator, wi impl IWRdsEnhancedFastReconnectArbitrator { pub unsafe fn GetSessionForEnhancedFastReconnect(&self, psessionidarray: *const i32, dwsessioncount: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSessionForEnhancedFastReconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(psessionidarray), core::mem::transmute(dwsessioncount), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSessionForEnhancedFastReconnect)(windows_core::Interface::as_raw(self), psessionidarray, dwsessioncount, &mut result__).map(|| result__) } } #[repr(C)] @@ -5327,7 +5312,7 @@ impl IWRdsGraphicsChannel { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(pbuffer), pcontext.param().abi()).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), cbsize, pbuffer, pcontext.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -5382,7 +5367,7 @@ windows_core::imp::define_interface!(IWRdsGraphicsChannelEvents, IWRdsGraphicsCh windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannelEvents, windows_core::IUnknown); impl IWRdsGraphicsChannelEvents { pub unsafe fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDataReceived)(windows_core::Interface::as_raw(self), core::mem::transmute(cbsize), core::mem::transmute(pbuffer)).ok() + (windows_core::Interface::vtable(self).OnDataReceived)(windows_core::Interface::as_raw(self), cbsize, pbuffer).ok() } pub unsafe fn OnClose(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnClose)(windows_core::Interface::as_raw(self)).ok() @@ -5391,16 +5376,16 @@ impl IWRdsGraphicsChannelEvents { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChannelOpened)(windows_core::Interface::as_raw(self), core::mem::transmute(openresult), popencontext.param().abi()).ok() + (windows_core::Interface::vtable(self).OnChannelOpened)(windows_core::Interface::as_raw(self), openresult, popencontext.param().abi()).ok() } pub unsafe fn OnDataSent(&self, pwritecontext: P0, bcancelled: bool, pbuffer: *const u8, cbbuffer: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDataSent)(windows_core::Interface::as_raw(self), pwritecontext.param().abi(), bcancelled.into(), core::mem::transmute(pbuffer), core::mem::transmute(cbbuffer)).ok() + (windows_core::Interface::vtable(self).OnDataSent)(windows_core::Interface::as_raw(self), pwritecontext.param().abi(), bcancelled.into(), pbuffer, cbbuffer).ok() } pub unsafe fn OnMetricsUpdate(&self, bandwidth: u32, rtt: u32, lastsentbyteindex: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMetricsUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(bandwidth), core::mem::transmute(rtt), core::mem::transmute(lastsentbyteindex)).ok() + (windows_core::Interface::vtable(self).OnMetricsUpdate)(windows_core::Interface::as_raw(self), bandwidth, rtt, lastsentbyteindex).ok() } } #[repr(C)] @@ -5460,7 +5445,7 @@ windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannelManager, windows_cor impl IWRdsGraphicsChannelManager { pub unsafe fn CreateChannel(&self, pszchannelname: *const u8, channeltype: WRdsGraphicsChannelType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(pszchannelname), core::mem::transmute(channeltype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChannel)(windows_core::Interface::as_raw(self), pszchannelname, channeltype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5517,7 +5502,7 @@ impl IWRdsProtocolConnection { (windows_core::Interface::vtable(self).AuthenticateClientToSession)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() } pub unsafe fn NotifySessionId(&self, sessionid: *const WTS_SESSION_ID, sessionhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionId)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), core::mem::transmute(sessionhandle)).ok() + (windows_core::Interface::vtable(self).NotifySessionId)(windows_core::Interface::as_raw(self), sessionid, sessionhandle).ok() } pub unsafe fn GetInputHandles(&self, pkeyboardhandle: *mut super::super::Foundation::HANDLE_PTR, pmousehandle: *mut super::super::Foundation::HANDLE_PTR, pbeephandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetInputHandles)(windows_core::Interface::as_raw(self), core::mem::transmute(pkeyboardhandle), core::mem::transmute(pmousehandle), core::mem::transmute(pbeephandle)).ok() @@ -5527,27 +5512,27 @@ impl IWRdsProtocolConnection { (windows_core::Interface::vtable(self).GetVideoHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ConnectNotify(&self, sessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).ConnectNotify)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn IsUserAllowedToLogon(&self, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: P2, pusername: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), core::mem::transmute(usertoken), pdomainname.param().abi(), pusername.param().abi()).ok() + (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), sessionid, usertoken, pdomainname.param().abi(), pusername.param().abi()).ok() } pub unsafe fn SessionArbitrationEnumeration(&self, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: bool, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(husertoken), bsinglesessionperuserenabled.into(), core::mem::transmute(psessionidarray), core::mem::transmute(pdwsessionidentifiercount)).ok() + (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), husertoken, bsinglesessionperuserenabled.into(), core::mem::transmute(psessionidarray), core::mem::transmute(pdwsessionidentifiercount)).ok() } pub unsafe fn LogonNotify(&self, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: P1, wszdomainname: P2, sessionid: *const WTS_SESSION_ID, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(hclienttoken), wszusername.param().abi(), wszdomainname.param().abi(), core::mem::transmute(sessionid), core::mem::transmute(pwrdsconnectionsettings)).ok() + (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), hclienttoken, wszusername.param().abi(), wszdomainname.param().abi(), sessionid, core::mem::transmute(pwrdsconnectionsettings)).ok() } pub unsafe fn PreDisconnect(&self, disconnectreason: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PreDisconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(disconnectreason)).ok() + (windows_core::Interface::vtable(self).PreDisconnect)(windows_core::Interface::as_raw(self), disconnectreason).ok() } pub unsafe fn DisconnectNotify(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisconnectNotify)(windows_core::Interface::as_raw(self)).ok() @@ -5563,14 +5548,14 @@ impl IWRdsProtocolConnection { (windows_core::Interface::vtable(self).GetLastInputTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetErrorInfo(&self, ulerror: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ulerror)).ok() + (windows_core::Interface::vtable(self).SetErrorInfo)(windows_core::Interface::as_raw(self), ulerror).ok() } pub unsafe fn CreateVirtualChannel(&self, szendpointname: P0, bstatic: bool, requestedpriority: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.param().abi(), bstatic.into(), core::mem::transmute(requestedpriority), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.param().abi(), bstatic.into(), requestedpriority, &mut result__).map(|| result__) } pub unsafe fn QueryProperty(&self, querytype: windows_core::GUID, ppropertyentriesin: &[WTS_PROPERTY_VALUE], ppropertyentriesout: &mut [WTS_PROPERTY_VALUE]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(querytype), ppropertyentriesin.len().try_into().unwrap(), ppropertyentriesout.len().try_into().unwrap(), core::mem::transmute(ppropertyentriesin.as_ptr()), core::mem::transmute(ppropertyentriesout.as_ptr())).ok() @@ -5580,7 +5565,7 @@ impl IWRdsProtocolConnection { (windows_core::Interface::vtable(self).GetShadowConnection)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NotifyCommandProcessCreated(&self, sessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyCommandProcessCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).NotifyCommandProcessCreated)(windows_core::Interface::as_raw(self), sessionid).ok() } } #[repr(C)] @@ -5811,13 +5796,13 @@ impl IWRdsProtocolConnectionCallback { (windows_core::Interface::vtable(self).OnReady)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn BrokenConnection(&self, reason: u32, source: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BrokenConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(reason), core::mem::transmute(source)).ok() + (windows_core::Interface::vtable(self).BrokenConnection)(windows_core::Interface::as_raw(self), reason, source).ok() } pub unsafe fn StopScreenUpdates(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopScreenUpdates)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RedrawWindow(&self, rect: *const WTS_SMALL_RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RedrawWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(rect)).ok() + (windows_core::Interface::vtable(self).RedrawWindow)(windows_core::Interface::as_raw(self), rect).ok() } pub unsafe fn GetConnectionId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5886,7 +5871,7 @@ windows_core::imp::define_interface!(IWRdsProtocolConnectionSettings, IWRdsProto windows_core::imp::interface_hierarchy!(IWRdsProtocolConnectionSettings, windows_core::IUnknown); impl IWRdsProtocolConnectionSettings { pub unsafe fn SetConnectionSetting(&self, propertyid: windows_core::GUID, ppropertyentriesin: *const WTS_PROPERTY_VALUE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectionSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(ppropertyentriesin)).ok() + (windows_core::Interface::vtable(self).SetConnectionSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), ppropertyentriesin).ok() } pub unsafe fn GetConnectionSetting(&self, propertyid: windows_core::GUID, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetConnectionSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(ppropertyentriesout)).ok() @@ -5936,7 +5921,7 @@ impl IWRdsProtocolLicenseConnection { (windows_core::Interface::vtable(self).RequestClientLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(reserve1.as_ptr()), reserve1.len().try_into().unwrap(), core::mem::transmute(ppclientlicense), core::mem::transmute(pcbclientlicense)).ok() } pub unsafe fn ProtocolComplete(&self, ulcomplete: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProtocolComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcomplete)).ok() + (windows_core::Interface::vtable(self).ProtocolComplete)(windows_core::Interface::as_raw(self), ulcomplete).ok() } } #[repr(C)] @@ -5989,7 +5974,7 @@ windows_core::imp::interface_hierarchy!(IWRdsProtocolListener, windows_core::IUn impl IWRdsProtocolListener { pub unsafe fn GetSettings(&self, wrdslistenersettinglevel: WRDS_LISTENER_SETTING_LEVEL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSettings)(windows_core::Interface::as_raw(self), core::mem::transmute(wrdslistenersettinglevel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSettings)(windows_core::Interface::as_raw(self), wrdslistenersettinglevel, &mut result__).map(|| result__) } pub unsafe fn StartListen(&self, pcallback: P0) -> windows_core::Result<()> where @@ -6053,7 +6038,7 @@ impl IWRdsProtocolListenerCallback { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnConnected)(windows_core::Interface::as_raw(self), pconnection.param().abi(), core::mem::transmute(pwrdsconnectionsettings), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OnConnected)(windows_core::Interface::as_raw(self), pconnection.param().abi(), pwrdsconnectionsettings, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6102,7 +6087,7 @@ impl IWRdsProtocolLogonErrorRedirector { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectMessage)(windows_core::Interface::as_raw(self), pszcaption.param().abi(), pszmessage.param().abi(), core::mem::transmute(utype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RedirectMessage)(windows_core::Interface::as_raw(self), pszcaption.param().abi(), pszmessage.param().abi(), utype, &mut result__).map(|| result__) } pub unsafe fn RedirectLogonError(&self, ntsstatus: i32, ntssubstatus: i32, pszcaption: P2, pszmessage: P3, utype: u32) -> windows_core::Result where @@ -6110,7 +6095,7 @@ impl IWRdsProtocolLogonErrorRedirector { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectLogonError)(windows_core::Interface::as_raw(self), core::mem::transmute(ntsstatus), core::mem::transmute(ntssubstatus), pszcaption.param().abi(), pszmessage.param().abi(), core::mem::transmute(utype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RedirectLogonError)(windows_core::Interface::as_raw(self), ntsstatus, ntssubstatus, pszcaption.param().abi(), pszmessage.param().abi(), utype, &mut result__).map(|| result__) } } #[repr(C)] @@ -6183,7 +6168,7 @@ impl IWRdsProtocolManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), piwrdssettings.param().abi(), core::mem::transmute(pwrdssettings)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), piwrdssettings.param().abi(), pwrdssettings).ok() } pub unsafe fn CreateListener(&self, wszlistenername: P0) -> windows_core::Result where @@ -6193,19 +6178,19 @@ impl IWRdsProtocolManager { (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), wszlistenername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NotifyServiceStateChange(&self, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyServiceStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ptsservicestatechange)).ok() + (windows_core::Interface::vtable(self).NotifyServiceStateChange)(windows_core::Interface::as_raw(self), ptsservicestatechange).ok() } pub unsafe fn NotifySessionOfServiceStart(&self, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionOfServiceStart)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).NotifySessionOfServiceStart)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn NotifySessionOfServiceStop(&self, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionOfServiceStop)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).NotifySessionOfServiceStop)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn NotifySessionStateChange(&self, sessionid: *const WTS_SESSION_ID, eventid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), core::mem::transmute(eventid)).ok() + (windows_core::Interface::vtable(self).NotifySessionStateChange)(windows_core::Interface::as_raw(self), sessionid, eventid).ok() } pub unsafe fn NotifySettingsChange(&self, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySettingsChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pwrdssettings)).ok() + (windows_core::Interface::vtable(self).NotifySettingsChange)(windows_core::Interface::as_raw(self), pwrdssettings).ok() } pub unsafe fn Uninitialize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Uninitialize)(windows_core::Interface::as_raw(self)).ok() @@ -6294,10 +6279,10 @@ windows_core::imp::define_interface!(IWRdsProtocolSettings, IWRdsProtocolSetting windows_core::imp::interface_hierarchy!(IWRdsProtocolSettings, windows_core::IUnknown); impl IWRdsProtocolSettings { pub unsafe fn GetSettings(&self, wrdssettingtype: WRDS_SETTING_TYPE, wrdssettinglevel: WRDS_SETTING_LEVEL, pwrdssettings: *mut WRDS_SETTINGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSettings)(windows_core::Interface::as_raw(self), core::mem::transmute(wrdssettingtype), core::mem::transmute(wrdssettinglevel), core::mem::transmute(pwrdssettings)).ok() + (windows_core::Interface::vtable(self).GetSettings)(windows_core::Interface::as_raw(self), wrdssettingtype, wrdssettinglevel, core::mem::transmute(pwrdssettings)).ok() } pub unsafe fn MergeSettings(&self, pwrdssettings: *const WRDS_SETTINGS, wrdsconnectionsettinglevel: WRDS_CONNECTION_SETTING_LEVEL, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MergeSettings)(windows_core::Interface::as_raw(self), core::mem::transmute(pwrdssettings), core::mem::transmute(wrdsconnectionsettinglevel), core::mem::transmute(pwrdsconnectionsettings)).ok() + (windows_core::Interface::vtable(self).MergeSettings)(windows_core::Interface::as_raw(self), pwrdssettings, wrdsconnectionsettinglevel, core::mem::transmute(pwrdsconnectionsettings)).ok() } } #[repr(C)] @@ -6342,7 +6327,7 @@ impl IWRdsProtocolShadowCallback { P0: windows_core::Param, P10: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeTargetShadow)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), core::mem::transmute(targetsessionid), core::mem::transmute(pparam1.as_ptr()), pparam1.len().try_into().unwrap(), core::mem::transmute(pparam2.as_ptr()), pparam2.len().try_into().unwrap(), core::mem::transmute(pparam3.as_ptr()), pparam3.len().try_into().unwrap(), core::mem::transmute(pparam4.as_ptr()), pparam4.len().try_into().unwrap(), pclientname.param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeTargetShadow)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), targetsessionid, core::mem::transmute(pparam1.as_ptr()), pparam1.len().try_into().unwrap(), core::mem::transmute(pparam2.as_ptr()), pparam2.len().try_into().unwrap(), core::mem::transmute(pparam3.as_ptr()), pparam3.len().try_into().unwrap(), core::mem::transmute(pparam4.as_ptr()), pparam4.len().try_into().unwrap(), pclientname.param().abi()).ok() } } #[repr(C)] @@ -6384,7 +6369,7 @@ impl IWRdsProtocolShadowConnection { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), core::mem::transmute(targetsessionid), core::mem::transmute(hotkeyvk), core::mem::transmute(hotkeymodifiers), pshadowcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), targetsessionid, hotkeyvk, hotkeymodifiers, pshadowcallback.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -6441,10 +6426,10 @@ impl IWRdsWddmIddProps { (windows_core::Interface::vtable(self).GetHardwareId)(windows_core::Interface::as_raw(self), core::mem::transmute(pdisplaydriverhardwareid.as_ptr()), pdisplaydriverhardwareid.len().try_into().unwrap()).ok() } pub unsafe fn OnDriverLoad(&self, sessionid: u32, driverhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), core::mem::transmute(driverhandle)).ok() + (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), sessionid, driverhandle).ok() } pub unsafe fn OnDriverUnload(&self, sessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDriverUnload)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).OnDriverUnload)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn EnableWddmIdd(&self, enabled: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableWddmIdd)(windows_core::Interface::as_raw(self), enabled.into()).ok() @@ -6505,10 +6490,10 @@ impl IWRdsWddmIddProps1 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), deviceinstance.param().abi()).ok() + (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), sessionid, deviceinstance.param().abi()).ok() } pub unsafe fn OnDriverUnload(&self, sessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDriverUnload)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).OnDriverUnload)(windows_core::Interface::as_raw(self), sessionid).ok() } } #[repr(C)] @@ -6557,7 +6542,7 @@ impl IWTSBitmapRenderService { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMappedRenderer)(windows_core::Interface::as_raw(self), core::mem::transmute(mappingid), pmappedrenderercallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMappedRenderer)(windows_core::Interface::as_raw(self), mappingid, pmappedrenderercallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6591,7 +6576,7 @@ windows_core::imp::define_interface!(IWTSBitmapRenderer, IWTSBitmapRenderer_Vtbl windows_core::imp::interface_hierarchy!(IWTSBitmapRenderer, windows_core::IUnknown); impl IWTSBitmapRenderer { pub unsafe fn Render(&self, imageformat: windows_core::GUID, dwwidth: u32, dwheight: u32, cbstride: i32, pimagebuffer: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(imageformat), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(cbstride), pimagebuffer.len().try_into().unwrap(), core::mem::transmute(pimagebuffer.as_ptr())).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), core::mem::transmute(imageformat), dwwidth, dwheight, cbstride, pimagebuffer.len().try_into().unwrap(), core::mem::transmute(pimagebuffer.as_ptr())).ok() } pub unsafe fn GetRendererStatistics(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6759,7 +6744,7 @@ impl IWTSPlugin { (windows_core::Interface::vtable(self).Connected)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Disconnected(&self, dwdisconnectcode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Disconnected)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdisconnectcode)).ok() + (windows_core::Interface::vtable(self).Disconnected)(windows_core::Interface::as_raw(self), dwdisconnectcode).ok() } pub unsafe fn Terminated(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Terminated)(windows_core::Interface::as_raw(self)).ok() @@ -6853,7 +6838,7 @@ impl IWTSProtocolConnection { (windows_core::Interface::vtable(self).GetLogonErrorRedirector)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SendPolicyData(&self, ppolicydata: *const WTS_POLICY_DATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendPolicyData)(windows_core::Interface::as_raw(self), core::mem::transmute(ppolicydata)).ok() + (windows_core::Interface::vtable(self).SendPolicyData)(windows_core::Interface::as_raw(self), ppolicydata).ok() } pub unsafe fn AcceptConnection(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AcceptConnection)(windows_core::Interface::as_raw(self)).ok() @@ -6872,33 +6857,33 @@ impl IWTSProtocolConnection { (windows_core::Interface::vtable(self).AuthenticateClientToSession)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() } pub unsafe fn NotifySessionId(&self, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionId)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).NotifySessionId)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn GetProtocolHandles(&self, 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::Result<()> { (windows_core::Interface::vtable(self).GetProtocolHandles)(windows_core::Interface::as_raw(self), core::mem::transmute(pkeyboardhandle), core::mem::transmute(pmousehandle), core::mem::transmute(pbeephandle), core::mem::transmute(pvideohandle)).ok() } pub unsafe fn ConnectNotify(&self, sessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConnectNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).ConnectNotify)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn IsUserAllowedToLogon(&self, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: P2, pusername: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), core::mem::transmute(usertoken), pdomainname.param().abi(), pusername.param().abi()).ok() + (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), sessionid, usertoken, pdomainname.param().abi(), pusername.param().abi()).ok() } pub unsafe fn SessionArbitrationEnumeration(&self, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: bool, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(husertoken), bsinglesessionperuserenabled.into(), core::mem::transmute(psessionidarray), core::mem::transmute(pdwsessionidentifiercount)).ok() + (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), husertoken, bsinglesessionperuserenabled.into(), core::mem::transmute(psessionidarray), core::mem::transmute(pdwsessionidentifiercount)).ok() } pub unsafe fn LogonNotify(&self, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: P1, wszdomainname: P2, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(hclienttoken), wszusername.param().abi(), wszdomainname.param().abi(), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), hclienttoken, wszusername.param().abi(), wszdomainname.param().abi(), sessionid).ok() } pub unsafe fn GetUserData(&self, ppolicydata: *const WTS_POLICY_DATA, pclientdata: *mut WTS_USER_DATA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUserData)(windows_core::Interface::as_raw(self), core::mem::transmute(ppolicydata), core::mem::transmute(pclientdata)).ok() + (windows_core::Interface::vtable(self).GetUserData)(windows_core::Interface::as_raw(self), ppolicydata, core::mem::transmute(pclientdata)).ok() } pub unsafe fn DisconnectNotify(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisconnectNotify)(windows_core::Interface::as_raw(self)).ok() @@ -6914,17 +6899,17 @@ impl IWTSProtocolConnection { (windows_core::Interface::vtable(self).GetLastInputTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetErrorInfo(&self, ulerror: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ulerror)).ok() + (windows_core::Interface::vtable(self).SetErrorInfo)(windows_core::Interface::as_raw(self), ulerror).ok() } pub unsafe fn SendBeep(&self, frequency: u32, duration: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendBeep)(windows_core::Interface::as_raw(self), core::mem::transmute(frequency), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).SendBeep)(windows_core::Interface::as_raw(self), frequency, duration).ok() } pub unsafe fn CreateVirtualChannel(&self, szendpointname: P0, bstatic: bool, requestedpriority: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.param().abi(), bstatic.into(), core::mem::transmute(requestedpriority), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.param().abi(), bstatic.into(), requestedpriority, &mut result__).map(|| result__) } pub unsafe fn QueryProperty(&self, querytype: windows_core::GUID, ppropertyentriesin: &[WTS_PROPERTY_VALUE], ppropertyentriesout: &mut [WTS_PROPERTY_VALUE]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(querytype), ppropertyentriesin.len().try_into().unwrap(), ppropertyentriesout.len().try_into().unwrap(), core::mem::transmute(ppropertyentriesin.as_ptr()), core::mem::transmute(ppropertyentriesout.as_ptr())).ok() @@ -7149,16 +7134,16 @@ impl IWTSProtocolConnectionCallback { (windows_core::Interface::vtable(self).OnReady)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn BrokenConnection(&self, reason: u32, source: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BrokenConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(reason), core::mem::transmute(source)).ok() + (windows_core::Interface::vtable(self).BrokenConnection)(windows_core::Interface::as_raw(self), reason, source).ok() } pub unsafe fn StopScreenUpdates(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopScreenUpdates)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RedrawWindow(&self, rect: *const WTS_SMALL_RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RedrawWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(rect)).ok() + (windows_core::Interface::vtable(self).RedrawWindow)(windows_core::Interface::as_raw(self), rect).ok() } pub unsafe fn DisplayIOCtl(&self, displayioctl: *const WTS_DISPLAY_IOCTL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayIOCtl)(windows_core::Interface::as_raw(self), core::mem::transmute(displayioctl)).ok() + (windows_core::Interface::vtable(self).DisplayIOCtl)(windows_core::Interface::as_raw(self), displayioctl).ok() } } #[repr(C)] @@ -7226,7 +7211,7 @@ impl IWTSProtocolLicenseConnection { (windows_core::Interface::vtable(self).RequestClientLicense)(windows_core::Interface::as_raw(self), core::mem::transmute(reserve1.as_ptr()), reserve1.len().try_into().unwrap(), core::mem::transmute(ppclientlicense), core::mem::transmute(pcbclientlicense)).ok() } pub unsafe fn ProtocolComplete(&self, ulcomplete: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProtocolComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcomplete)).ok() + (windows_core::Interface::vtable(self).ProtocolComplete)(windows_core::Interface::as_raw(self), ulcomplete).ok() } } #[repr(C)] @@ -7375,7 +7360,7 @@ impl IWTSProtocolLogonErrorRedirector { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectMessage)(windows_core::Interface::as_raw(self), pszcaption.param().abi(), pszmessage.param().abi(), core::mem::transmute(utype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RedirectMessage)(windows_core::Interface::as_raw(self), pszcaption.param().abi(), pszmessage.param().abi(), utype, &mut result__).map(|| result__) } pub unsafe fn RedirectLogonError(&self, ntsstatus: i32, ntssubstatus: i32, pszcaption: P2, pszmessage: P3, utype: u32) -> windows_core::Result where @@ -7383,7 +7368,7 @@ impl IWTSProtocolLogonErrorRedirector { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectLogonError)(windows_core::Interface::as_raw(self), core::mem::transmute(ntsstatus), core::mem::transmute(ntssubstatus), pszcaption.param().abi(), pszmessage.param().abi(), core::mem::transmute(utype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RedirectLogonError)(windows_core::Interface::as_raw(self), ntsstatus, ntssubstatus, pszcaption.param().abi(), pszmessage.param().abi(), utype, &mut result__).map(|| result__) } } #[repr(C)] @@ -7460,16 +7445,16 @@ impl IWTSProtocolManager { (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), wszlistenername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NotifyServiceStateChange(&self, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyServiceStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ptsservicestatechange)).ok() + (windows_core::Interface::vtable(self).NotifyServiceStateChange)(windows_core::Interface::as_raw(self), ptsservicestatechange).ok() } pub unsafe fn NotifySessionOfServiceStart(&self, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionOfServiceStart)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).NotifySessionOfServiceStart)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn NotifySessionOfServiceStop(&self, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionOfServiceStop)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).NotifySessionOfServiceStop)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn NotifySessionStateChange(&self, sessionid: *const WTS_SESSION_ID, eventid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifySessionStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid), core::mem::transmute(eventid)).ok() + (windows_core::Interface::vtable(self).NotifySessionStateChange)(windows_core::Interface::as_raw(self), sessionid, eventid).ok() } } #[repr(C)] @@ -7541,7 +7526,7 @@ impl IWTSProtocolShadowCallback { P0: windows_core::Param, P10: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeTargetShadow)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), core::mem::transmute(targetsessionid), core::mem::transmute(pparam1.as_ptr()), pparam1.len().try_into().unwrap(), core::mem::transmute(pparam2.as_ptr()), pparam2.len().try_into().unwrap(), core::mem::transmute(pparam3.as_ptr()), pparam3.len().try_into().unwrap(), core::mem::transmute(pparam4.as_ptr()), pparam4.len().try_into().unwrap(), pclientname.param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeTargetShadow)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), targetsessionid, core::mem::transmute(pparam1.as_ptr()), pparam1.len().try_into().unwrap(), core::mem::transmute(pparam2.as_ptr()), pparam2.len().try_into().unwrap(), core::mem::transmute(pparam3.as_ptr()), pparam3.len().try_into().unwrap(), core::mem::transmute(pparam4.as_ptr()), pparam4.len().try_into().unwrap(), pclientname.param().abi()).ok() } } #[repr(C)] @@ -7583,7 +7568,7 @@ impl IWTSProtocolShadowConnection { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), core::mem::transmute(targetsessionid), core::mem::transmute(hotkeyvk), core::mem::transmute(hotkeymodifiers), pshadowcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ptargetservername.param().abi(), targetsessionid, hotkeyvk, hotkeymodifiers, pshadowcallback.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -7641,10 +7626,10 @@ impl IWTSSBPlugin { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn WTSSBX_MachineChangeNotification(&self, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, pmachineinfo: *const WTSSBX_MACHINE_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WTSSBX_MachineChangeNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(notificationtype), core::mem::transmute(machineid), core::mem::transmute(pmachineinfo)).ok() + (windows_core::Interface::vtable(self).WTSSBX_MachineChangeNotification)(windows_core::Interface::as_raw(self), notificationtype, machineid, pmachineinfo).ok() } pub unsafe fn WTSSBX_SessionChangeNotification(&self, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, sessioninfo: &[WTSSBX_SESSION_INFO]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WTSSBX_SessionChangeNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(notificationtype), core::mem::transmute(machineid), sessioninfo.len().try_into().unwrap(), core::mem::transmute(sessioninfo.as_ptr())).ok() + (windows_core::Interface::vtable(self).WTSSBX_SessionChangeNotification)(windows_core::Interface::as_raw(self), notificationtype, machineid, sessioninfo.len().try_into().unwrap(), core::mem::transmute(sessioninfo.as_ptr())).ok() } pub unsafe fn WTSSBX_GetMostSuitableServer(&self, username: P0, domainname: P1, applicationtype: P2, farmname: P3, pmachineid: *mut i32) -> windows_core::Result<()> where @@ -7664,7 +7649,7 @@ impl IWTSSBPlugin { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WTSSBX_GetUserExternalSession)(windows_core::Interface::as_raw(self), username.param().abi(), domainname.param().abi(), applicationtype.param().abi(), core::mem::transmute(redirectorinternalip), core::mem::transmute(psessionid), core::mem::transmute(pmachineconnectinfo)).ok() + (windows_core::Interface::vtable(self).WTSSBX_GetUserExternalSession)(windows_core::Interface::as_raw(self), username.param().abi(), domainname.param().abi(), applicationtype.param().abi(), redirectorinternalip, core::mem::transmute(psessionid), core::mem::transmute(pmachineconnectinfo)).ok() } } #[repr(C)] @@ -7822,7 +7807,7 @@ impl IWTSVirtualChannelManager { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), pszchannelname.param().abi(), core::mem::transmute(uflags), plistenercallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), pszchannelname.param().abi(), uflags, plistenercallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7862,7 +7847,7 @@ impl IWorkspace { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: &windows_core::BSTR, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartRemoteApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute(psaparams)).ok() + (windows_core::Interface::vtable(self).StartRemoteApplication)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), psaparams).ok() } pub unsafe fn GetProcessId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7939,7 +7924,7 @@ windows_core::imp::interface_hierarchy!(IWorkspace2, windows_core::IUnknown, IWo impl IWorkspace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplicationEx(&self, bstrworkspaceid: &windows_core::BSTR, bstrrequestingappid: &windows_core::BSTR, bstrrequestingappfamilyname: &windows_core::BSTR, blaunchintoimmersiveclient: super::super::Foundation::VARIANT_BOOL, bstrimmersiveclientactivationcontext: &windows_core::BSTR, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartRemoteApplicationEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrrequestingappid), core::mem::transmute_copy(bstrrequestingappfamilyname), core::mem::transmute(blaunchintoimmersiveclient), core::mem::transmute_copy(bstrimmersiveclientactivationcontext), core::mem::transmute(psaparams)).ok() + (windows_core::Interface::vtable(self).StartRemoteApplicationEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrrequestingappid), core::mem::transmute_copy(bstrrequestingappfamilyname), blaunchintoimmersiveclient, core::mem::transmute_copy(bstrimmersiveclientactivationcontext), psaparams).ok() } } #[repr(C)] @@ -7980,10 +7965,10 @@ windows_core::imp::interface_hierarchy!(IWorkspace3, windows_core::IUnknown, IWo impl IWorkspace3 { pub unsafe fn GetClaimsToken2(&self, bstrclaimshint: &windows_core::BSTR, bstruserhint: &windows_core::BSTR, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClaimsToken2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrclaimshint), core::mem::transmute_copy(bstruserhint), core::mem::transmute(claimcookie), core::mem::transmute(hwndcreduiparent), core::mem::transmute(rectcreduiparent), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetClaimsToken2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrclaimshint), core::mem::transmute_copy(bstruserhint), claimcookie, hwndcreduiparent, core::mem::transmute(rectcreduiparent), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetClaimsToken(&self, bstraccesstoken: &windows_core::BSTR, ullaccesstokenexpiration: u64, bstrrefreshtoken: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClaimsToken)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstraccesstoken), core::mem::transmute(ullaccesstokenexpiration), core::mem::transmute_copy(bstrrefreshtoken)).ok() + (windows_core::Interface::vtable(self).SetClaimsToken)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstraccesstoken), ullaccesstokenexpiration, core::mem::transmute_copy(bstrrefreshtoken)).ok() } } #[repr(C)] @@ -8102,7 +8087,7 @@ impl IWorkspaceRegistration { (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), punk.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveResource(&self, dwcookieconnection: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveResource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookieconnection)).ok() + (windows_core::Interface::vtable(self).RemoveResource)(windows_core::Interface::as_raw(self), dwcookieconnection).ok() } } #[repr(C)] @@ -8158,7 +8143,7 @@ impl IWorkspaceRegistration2 { (windows_core::Interface::vtable(self).AddResourceEx)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute_copy(bstreventloguploadaddress), core::mem::transmute(pdwcookie), core::mem::transmute(correlationid)).ok() } pub unsafe fn RemoveResourceEx(&self, dwcookieconnection: u32, correlationid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveResourceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookieconnection), core::mem::transmute(correlationid)).ok() + (windows_core::Interface::vtable(self).RemoveResourceEx)(windows_core::Interface::as_raw(self), dwcookieconnection, core::mem::transmute(correlationid)).ok() } } #[repr(C)] @@ -8200,10 +8185,10 @@ impl IWorkspaceReportMessage { } pub unsafe fn IsErrorMessageRegistered(&self, bstrwkspid: &windows_core::BSTR, dwerrortype: u32, bstrerrormessagetype: &windows_core::BSTR, dwerrorcode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsErrorMessageRegistered)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrwkspid), core::mem::transmute(dwerrortype), core::mem::transmute_copy(bstrerrormessagetype), core::mem::transmute(dwerrorcode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsErrorMessageRegistered)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrwkspid), dwerrortype, core::mem::transmute_copy(bstrerrormessagetype), dwerrorcode, &mut result__).map(|| result__) } pub unsafe fn RegisterErrorEvent(&self, bstrwkspid: &windows_core::BSTR, dwerrortype: u32, bstrerrormessagetype: &windows_core::BSTR, dwerrorcode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterErrorEvent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrwkspid), core::mem::transmute(dwerrortype), core::mem::transmute_copy(bstrerrormessagetype), core::mem::transmute(dwerrorcode)).ok() + (windows_core::Interface::vtable(self).RegisterErrorEvent)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrwkspid), dwerrortype, core::mem::transmute_copy(bstrerrormessagetype), dwerrorcode).ok() } } #[repr(C)] @@ -8264,22 +8249,22 @@ windows_core::imp::interface_hierarchy!(IWorkspaceResTypeRegistry, windows_core: #[cfg(feature = "Win32_System_Com")] impl IWorkspaceResTypeRegistry { pub unsafe fn AddResourceType(&self, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: &windows_core::BSTR, bstrlauncher: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddResourceType)(windows_core::Interface::as_raw(self), core::mem::transmute(fmachinewide), core::mem::transmute_copy(bstrfileextension), core::mem::transmute_copy(bstrlauncher)).ok() + (windows_core::Interface::vtable(self).AddResourceType)(windows_core::Interface::as_raw(self), fmachinewide, core::mem::transmute_copy(bstrfileextension), core::mem::transmute_copy(bstrlauncher)).ok() } pub unsafe fn DeleteResourceType(&self, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteResourceType)(windows_core::Interface::as_raw(self), core::mem::transmute(fmachinewide), core::mem::transmute_copy(bstrfileextension)).ok() + (windows_core::Interface::vtable(self).DeleteResourceType)(windows_core::Interface::as_raw(self), fmachinewide, core::mem::transmute_copy(bstrfileextension)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRegisteredFileExtensions(&self, fmachinewide: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<*mut super::Com::SAFEARRAY> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRegisteredFileExtensions)(windows_core::Interface::as_raw(self), core::mem::transmute(fmachinewide), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRegisteredFileExtensions)(windows_core::Interface::as_raw(self), fmachinewide, &mut result__).map(|| result__) } pub unsafe fn GetResourceTypeInfo(&self, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceTypeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(fmachinewide), core::mem::transmute_copy(bstrfileextension), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetResourceTypeInfo)(windows_core::Interface::as_raw(self), fmachinewide, core::mem::transmute_copy(bstrfileextension), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn ModifyResourceType(&self, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: &windows_core::BSTR, bstrlauncher: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ModifyResourceType)(windows_core::Interface::as_raw(self), core::mem::transmute(fmachinewide), core::mem::transmute_copy(bstrfileextension), core::mem::transmute_copy(bstrlauncher)).ok() + (windows_core::Interface::vtable(self).ModifyResourceType)(windows_core::Interface::as_raw(self), fmachinewide, core::mem::transmute_copy(bstrfileextension), core::mem::transmute_copy(bstrlauncher)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8370,11 +8355,11 @@ impl IWorkspaceScriptable { (windows_core::Interface::vtable(self).DisconnectWorkspace)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid)).ok() } pub unsafe fn StartWorkspace(&self, bstrworkspaceid: &windows_core::BSTR, bstrusername: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, bstrworkspaceparams: &windows_core::BSTR, ltimeout: i32, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartWorkspace)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrworkspaceparams), core::mem::transmute(ltimeout), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).StartWorkspace)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: &windows_core::BSTR, bcountunauthenticatedcredentials: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute(bcountunauthenticatedcredentials), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), bcountunauthenticatedcredentials, &mut result__).map(|| result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8486,7 +8471,7 @@ windows_core::imp::interface_hierarchy!(IWorkspaceScriptable2, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable2 { pub unsafe fn StartWorkspaceEx(&self, bstrworkspaceid: &windows_core::BSTR, bstrworkspacefriendlyname: &windows_core::BSTR, bstrredirectorname: &windows_core::BSTR, bstrusername: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, bstrappcontainer: &windows_core::BSTR, bstrworkspaceparams: &windows_core::BSTR, ltimeout: i32, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartWorkspaceEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrworkspacefriendlyname), core::mem::transmute_copy(bstrredirectorname), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrappcontainer), core::mem::transmute_copy(bstrworkspaceparams), core::mem::transmute(ltimeout), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).StartWorkspaceEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrworkspacefriendlyname), core::mem::transmute_copy(bstrredirectorname), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrappcontainer), core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } pub unsafe fn ResourceDismissed(&self, bstrworkspaceid: &windows_core::BSTR, bstrworkspacefriendlyname: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResourceDismissed)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrworkspacefriendlyname)).ok() @@ -8541,21 +8526,7 @@ windows_core::imp::interface_hierarchy!(IWorkspaceScriptable3, windows_core::IUn #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable3 { pub unsafe fn StartWorkspaceEx2(&self, bstrworkspaceid: &windows_core::BSTR, bstrworkspacefriendlyname: &windows_core::BSTR, bstrredirectorname: &windows_core::BSTR, bstrusername: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, bstrappcontainer: &windows_core::BSTR, bstrworkspaceparams: &windows_core::BSTR, ltimeout: i32, lflags: i32, bstreventloguploadaddress: &windows_core::BSTR, correlationid: windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartWorkspaceEx2)( - windows_core::Interface::as_raw(self), - core::mem::transmute_copy(bstrworkspaceid), - core::mem::transmute_copy(bstrworkspacefriendlyname), - core::mem::transmute_copy(bstrredirectorname), - core::mem::transmute_copy(bstrusername), - core::mem::transmute_copy(bstrpassword), - core::mem::transmute_copy(bstrappcontainer), - core::mem::transmute_copy(bstrworkspaceparams), - core::mem::transmute(ltimeout), - core::mem::transmute(lflags), - core::mem::transmute_copy(bstreventloguploadaddress), - core::mem::transmute(correlationid), - ) - .ok() + (windows_core::Interface::vtable(self).StartWorkspaceEx2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrworkspaceid), core::mem::transmute_copy(bstrworkspacefriendlyname), core::mem::transmute_copy(bstrredirectorname), core::mem::transmute_copy(bstrusername), core::mem::transmute_copy(bstrpassword), core::mem::transmute_copy(bstrappcontainer), core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags, core::mem::transmute_copy(bstreventloguploadaddress), core::mem::transmute(correlationid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8596,7 +8567,7 @@ impl ItsPubPlugin { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), alias.param().abi(), core::mem::transmute(flags), core::mem::transmute(resource)).ok() + (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), alias.param().abi(), flags, core::mem::transmute(resource)).ok() } pub unsafe fn GetCacheLastUpdateTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8714,14 +8685,14 @@ impl ItsPubPlugin2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResource2)(windows_core::Interface::as_raw(self), alias.param().abi(), core::mem::transmute(flags), core::mem::transmute(resource)).ok() + (windows_core::Interface::vtable(self).GetResource2)(windows_core::Interface::as_raw(self), alias.param().abi(), flags, core::mem::transmute(resource)).ok() } pub unsafe fn ResolvePersonalDesktop(&self, userid: P0, poolid: P1, epdresolutiontype: TSPUB_PLUGIN_PD_RESOLUTION_TYPE, ppdassignmenttype: *mut TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE, endpointname: &mut [u16; 256]) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolvePersonalDesktop)(windows_core::Interface::as_raw(self), userid.param().abi(), poolid.param().abi(), core::mem::transmute(epdresolutiontype), core::mem::transmute(ppdassignmenttype), core::mem::transmute(endpointname.as_ptr())).ok() + (windows_core::Interface::vtable(self).ResolvePersonalDesktop)(windows_core::Interface::as_raw(self), userid.param().abi(), poolid.param().abi(), epdresolutiontype, core::mem::transmute(ppdassignmenttype), core::mem::transmute(endpointname.as_ptr())).ok() } pub unsafe fn DeletePersonalDesktopAssignment(&self, userid: P0, poolid: P1, endpointname: P2) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs index b6f10182a2..b3ec0d0992 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn WSManCloseCommand(commandhandle: Option, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseCommand(commandhandle : WSMAN_COMMAND_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManCloseCommand(core::mem::transmute(commandhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(r#async)) + WSManCloseCommand(core::mem::transmute(commandhandle.unwrap_or(core::mem::zeroed())), flags, r#async) } #[inline] pub unsafe fn WSManCloseOperation(operationhandle: Option, flags: u32) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseOperation(operationhandle : WSMAN_OPERATION_HANDLE, flags : u32) -> u32); - WSManCloseOperation(core::mem::transmute(operationhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + WSManCloseOperation(core::mem::transmute(operationhandle.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn WSManCloseSession(session: Option, flags: u32) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseSession(session : WSMAN_SESSION_HANDLE, flags : u32) -> u32); - WSManCloseSession(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + WSManCloseSession(core::mem::transmute(session.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn WSManCloseShell(shellhandle: Option, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseShell(shellhandle : WSMAN_SHELL_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManCloseShell(core::mem::transmute(shellhandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(r#async)) + WSManCloseShell(core::mem::transmute(shellhandle.unwrap_or(core::mem::zeroed())), flags, r#async) } #[inline] pub unsafe fn WSManConnectShell(session: WSMAN_SESSION_HANDLE, flags: u32, resourceuri: P2, shellid: P3, options: Option<*const WSMAN_OPTION_SET>, connectxml: Option<*const WSMAN_DATA>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_SHELL_HANDLE @@ -26,7 +26,7 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManConnectShell(session : WSMAN_SESSION_HANDLE, flags : u32, resourceuri : windows_core::PCWSTR, shellid : windows_core::PCWSTR, options : *const WSMAN_OPTION_SET, connectxml : *const WSMAN_DATA, r#async : *const WSMAN_SHELL_ASYNC, shell : *mut WSMAN_SHELL_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManConnectShell(core::mem::transmute(session), core::mem::transmute(flags), resourceuri.param().abi(), shellid.param().abi(), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(connectxml.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManConnectShell(session, flags, resourceuri.param().abi(), shellid.param().abi(), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(connectxml.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] @@ -36,7 +36,7 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManConnectShellCommand(shell : WSMAN_SHELL_HANDLE, flags : u32, commandid : windows_core::PCWSTR, options : *const WSMAN_OPTION_SET, connectxml : *const WSMAN_DATA, r#async : *const WSMAN_SHELL_ASYNC, command : *mut WSMAN_COMMAND_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManConnectShellCommand(core::mem::transmute(shell), core::mem::transmute(flags), commandid.param().abi(), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(connectxml.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManConnectShellCommand(shell, flags, commandid.param().abi(), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(connectxml.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] @@ -45,7 +45,7 @@ where P1: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManCreateSession(apihandle : WSMAN_API_HANDLE, connection : windows_core::PCWSTR, flags : u32, serverauthenticationcredentials : *const WSMAN_AUTHENTICATION_CREDENTIALS, proxyinfo : *const WSMAN_PROXY_INFO, session : *mut WSMAN_SESSION_HANDLE) -> u32); - WSManCreateSession(core::mem::transmute(apihandle), connection.param().abi(), core::mem::transmute(flags), core::mem::transmute(serverauthenticationcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(proxyinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(session)) + WSManCreateSession(apihandle, connection.param().abi(), flags, core::mem::transmute(serverauthenticationcredentials.unwrap_or(core::mem::zeroed())), core::mem::transmute(proxyinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(session)) } #[inline] pub unsafe fn WSManCreateShell(session: WSMAN_SESSION_HANDLE, flags: u32, resourceuri: P2, startupinfo: Option<*const WSMAN_SHELL_STARTUP_INFO_V11>, options: Option<*const WSMAN_OPTION_SET>, createxml: Option<*const WSMAN_DATA>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_SHELL_HANDLE @@ -54,7 +54,7 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManCreateShell(session : WSMAN_SESSION_HANDLE, flags : u32, resourceuri : windows_core::PCWSTR, startupinfo : *const WSMAN_SHELL_STARTUP_INFO_V11, options : *const WSMAN_OPTION_SET, createxml : *const WSMAN_DATA, r#async : *const WSMAN_SHELL_ASYNC, shell : *mut WSMAN_SHELL_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManCreateShell(core::mem::transmute(session), core::mem::transmute(flags), resourceuri.param().abi(), core::mem::transmute(startupinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(createxml.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManCreateShell(session, flags, resourceuri.param().abi(), core::mem::transmute(startupinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(createxml.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] @@ -65,18 +65,18 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManCreateShellEx(session : WSMAN_SESSION_HANDLE, flags : u32, resourceuri : windows_core::PCWSTR, shellid : windows_core::PCWSTR, startupinfo : *const WSMAN_SHELL_STARTUP_INFO_V11, options : *const WSMAN_OPTION_SET, createxml : *const WSMAN_DATA, r#async : *const WSMAN_SHELL_ASYNC, shell : *mut WSMAN_SHELL_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManCreateShellEx(core::mem::transmute(session), core::mem::transmute(flags), resourceuri.param().abi(), shellid.param().abi(), core::mem::transmute(startupinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(createxml.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManCreateShellEx(session, flags, resourceuri.param().abi(), shellid.param().abi(), core::mem::transmute(startupinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(createxml.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManDeinitialize(apihandle: Option, flags: u32) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManDeinitialize(apihandle : WSMAN_API_HANDLE, flags : u32) -> u32); - WSManDeinitialize(core::mem::transmute(apihandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + WSManDeinitialize(core::mem::transmute(apihandle.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn WSManDisconnectShell(shell: WSMAN_SHELL_HANDLE, flags: u32, disconnectinfo: *const WSMAN_SHELL_DISCONNECT_INFO, r#async: *const WSMAN_SHELL_ASYNC) { windows_targets::link!("wsmsvc.dll" "system" fn WSManDisconnectShell(shell : WSMAN_SHELL_HANDLE, flags : u32, disconnectinfo : *const WSMAN_SHELL_DISCONNECT_INFO, r#async : *const WSMAN_SHELL_ASYNC)); - WSManDisconnectShell(core::mem::transmute(shell), core::mem::transmute(flags), core::mem::transmute(disconnectinfo), core::mem::transmute(r#async)) + WSManDisconnectShell(shell, flags, disconnectinfo, r#async) } #[inline] pub unsafe fn WSManGetErrorMessage(apihandle: WSMAN_API_HANDLE, flags: Option, languagecode: P2, errorcode: u32, message: Option<&mut [u16]>, messagelengthused: *mut u32) -> u32 @@ -84,22 +84,22 @@ where P2: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManGetErrorMessage(apihandle : WSMAN_API_HANDLE, flags : u32, languagecode : windows_core::PCWSTR, errorcode : u32, messagelength : u32, message : windows_core::PWSTR, messagelengthused : *mut u32) -> u32); - WSManGetErrorMessage(core::mem::transmute(apihandle), core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), languagecode.param().abi(), core::mem::transmute(errorcode), message.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(messagelengthused)) + WSManGetErrorMessage(apihandle, core::mem::transmute(flags.unwrap_or(core::mem::zeroed())), languagecode.param().abi(), errorcode, message.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(messagelengthused)) } #[inline] pub unsafe fn WSManGetSessionOptionAsDword(session: WSMAN_SESSION_HANDLE, option: WSManSessionOption, value: *mut u32) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManGetSessionOptionAsDword(session : WSMAN_SESSION_HANDLE, option : WSManSessionOption, value : *mut u32) -> u32); - WSManGetSessionOptionAsDword(core::mem::transmute(session), core::mem::transmute(option), core::mem::transmute(value)) + WSManGetSessionOptionAsDword(session, option, core::mem::transmute(value)) } #[inline] pub unsafe fn WSManGetSessionOptionAsString(session: WSMAN_SESSION_HANDLE, option: WSManSessionOption, string: Option<&mut [u16]>, stringlengthused: *mut u32) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManGetSessionOptionAsString(session : WSMAN_SESSION_HANDLE, option : WSManSessionOption, stringlength : u32, string : windows_core::PWSTR, stringlengthused : *mut u32) -> u32); - WSManGetSessionOptionAsString(core::mem::transmute(session), core::mem::transmute(option), string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(stringlengthused)) + WSManGetSessionOptionAsString(session, option, string.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(string.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(stringlengthused)) } #[inline] pub unsafe fn WSManInitialize(flags: u32, apihandle: *mut WSMAN_API_HANDLE) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManInitialize(flags : u32, apihandle : *mut WSMAN_API_HANDLE) -> u32); - WSManInitialize(core::mem::transmute(flags), core::mem::transmute(apihandle)) + WSManInitialize(flags, core::mem::transmute(apihandle)) } #[inline] pub unsafe fn WSManPluginAuthzOperationComplete(senderdetails: *const WSMAN_SENDER_DETAILS, flags: u32, userauthorizationcontext: Option<*const core::ffi::c_void>, errorcode: u32, extendederrorinformation: P4) -> u32 @@ -107,7 +107,7 @@ where P4: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginAuthzOperationComplete(senderdetails : *const WSMAN_SENDER_DETAILS, flags : u32, userauthorizationcontext : *const core::ffi::c_void, errorcode : u32, extendederrorinformation : windows_core::PCWSTR) -> u32); - WSManPluginAuthzOperationComplete(core::mem::transmute(senderdetails), core::mem::transmute(flags), core::mem::transmute(userauthorizationcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(errorcode), extendederrorinformation.param().abi()) + WSManPluginAuthzOperationComplete(senderdetails, flags, core::mem::transmute(userauthorizationcontext.unwrap_or(core::mem::zeroed())), errorcode, extendederrorinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginAuthzQueryQuotaComplete(senderdetails: *const WSMAN_SENDER_DETAILS, flags: u32, quota: Option<*const WSMAN_AUTHZ_QUOTA>, errorcode: u32, extendederrorinformation: P4) -> u32 @@ -115,7 +115,7 @@ where P4: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginAuthzQueryQuotaComplete(senderdetails : *const WSMAN_SENDER_DETAILS, flags : u32, quota : *const WSMAN_AUTHZ_QUOTA, errorcode : u32, extendederrorinformation : windows_core::PCWSTR) -> u32); - WSManPluginAuthzQueryQuotaComplete(core::mem::transmute(senderdetails), core::mem::transmute(flags), core::mem::transmute(quota.unwrap_or(core::mem::zeroed())), core::mem::transmute(errorcode), extendederrorinformation.param().abi()) + WSManPluginAuthzQueryQuotaComplete(senderdetails, flags, core::mem::transmute(quota.unwrap_or(core::mem::zeroed())), errorcode, extendederrorinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginAuthzUserComplete(senderdetails: *const WSMAN_SENDER_DETAILS, flags: u32, userauthorizationcontext: Option<*const core::ffi::c_void>, impersonationtoken: Option, userisadministrator: bool, errorcode: u32, extendederrorinformation: P6) -> u32 @@ -123,22 +123,22 @@ where P6: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginAuthzUserComplete(senderdetails : *const WSMAN_SENDER_DETAILS, flags : u32, userauthorizationcontext : *const core::ffi::c_void, impersonationtoken : super::super::Foundation:: HANDLE, userisadministrator : super::super::Foundation:: BOOL, errorcode : u32, extendederrorinformation : windows_core::PCWSTR) -> u32); - WSManPluginAuthzUserComplete(core::mem::transmute(senderdetails), core::mem::transmute(flags), core::mem::transmute(userauthorizationcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(impersonationtoken.unwrap_or(core::mem::zeroed())), userisadministrator.into(), core::mem::transmute(errorcode), extendederrorinformation.param().abi()) + WSManPluginAuthzUserComplete(senderdetails, flags, core::mem::transmute(userauthorizationcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(impersonationtoken.unwrap_or(core::mem::zeroed())), userisadministrator.into(), errorcode, extendederrorinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginFreeRequestDetails(requestdetails: *const WSMAN_PLUGIN_REQUEST) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginFreeRequestDetails(requestdetails : *const WSMAN_PLUGIN_REQUEST) -> u32); - WSManPluginFreeRequestDetails(core::mem::transmute(requestdetails)) + WSManPluginFreeRequestDetails(requestdetails) } #[inline] pub unsafe fn WSManPluginGetConfiguration(plugincontext: *const core::ffi::c_void, flags: u32, data: *mut WSMAN_DATA) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginGetConfiguration(plugincontext : *const core::ffi::c_void, flags : u32, data : *mut WSMAN_DATA) -> u32); - WSManPluginGetConfiguration(core::mem::transmute(plugincontext), core::mem::transmute(flags), core::mem::transmute(data)) + WSManPluginGetConfiguration(plugincontext, flags, core::mem::transmute(data)) } #[inline] pub unsafe fn WSManPluginGetOperationParameters(requestdetails: *const WSMAN_PLUGIN_REQUEST, flags: u32, data: *mut WSMAN_DATA) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginGetOperationParameters(requestdetails : *const WSMAN_PLUGIN_REQUEST, flags : u32, data : *mut WSMAN_DATA) -> u32); - WSManPluginGetOperationParameters(core::mem::transmute(requestdetails), core::mem::transmute(flags), core::mem::transmute(data)) + WSManPluginGetOperationParameters(requestdetails, flags, core::mem::transmute(data)) } #[inline] pub unsafe fn WSManPluginOperationComplete(requestdetails: *const WSMAN_PLUGIN_REQUEST, flags: u32, errorcode: u32, extendedinformation: P3) -> u32 @@ -146,7 +146,7 @@ where P3: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginOperationComplete(requestdetails : *const WSMAN_PLUGIN_REQUEST, flags : u32, errorcode : u32, extendedinformation : windows_core::PCWSTR) -> u32); - WSManPluginOperationComplete(core::mem::transmute(requestdetails), core::mem::transmute(flags), core::mem::transmute(errorcode), extendedinformation.param().abi()) + WSManPluginOperationComplete(requestdetails, flags, errorcode, extendedinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginReceiveResult(requestdetails: *const WSMAN_PLUGIN_REQUEST, flags: u32, stream: P2, streamresult: Option<*const WSMAN_DATA>, commandstate: P4, exitcode: u32) -> u32 @@ -155,34 +155,34 @@ where P4: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginReceiveResult(requestdetails : *const WSMAN_PLUGIN_REQUEST, flags : u32, stream : windows_core::PCWSTR, streamresult : *const WSMAN_DATA, commandstate : windows_core::PCWSTR, exitcode : u32) -> u32); - WSManPluginReceiveResult(core::mem::transmute(requestdetails), core::mem::transmute(flags), stream.param().abi(), core::mem::transmute(streamresult.unwrap_or(core::mem::zeroed())), commandstate.param().abi(), core::mem::transmute(exitcode)) + WSManPluginReceiveResult(requestdetails, flags, stream.param().abi(), core::mem::transmute(streamresult.unwrap_or(core::mem::zeroed())), commandstate.param().abi(), exitcode) } #[inline] pub unsafe fn WSManPluginReportCompletion(plugincontext: *const core::ffi::c_void, flags: u32) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginReportCompletion(plugincontext : *const core::ffi::c_void, flags : u32) -> u32); - WSManPluginReportCompletion(core::mem::transmute(plugincontext), core::mem::transmute(flags)) + WSManPluginReportCompletion(plugincontext, flags) } #[inline] pub unsafe fn WSManPluginReportContext(requestdetails: *const WSMAN_PLUGIN_REQUEST, flags: u32, context: *const core::ffi::c_void) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginReportContext(requestdetails : *const WSMAN_PLUGIN_REQUEST, flags : u32, context : *const core::ffi::c_void) -> u32); - WSManPluginReportContext(core::mem::transmute(requestdetails), core::mem::transmute(flags), core::mem::transmute(context)) + WSManPluginReportContext(requestdetails, flags, context) } #[inline] pub unsafe fn WSManReceiveShellOutput(shell: WSMAN_SHELL_HANDLE, command: Option, flags: u32, desiredstreamset: Option<*const WSMAN_STREAM_ID_SET>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_OPERATION_HANDLE { windows_targets::link!("wsmsvc.dll" "system" fn WSManReceiveShellOutput(shell : WSMAN_SHELL_HANDLE, command : WSMAN_COMMAND_HANDLE, flags : u32, desiredstreamset : *const WSMAN_STREAM_ID_SET, r#async : *const WSMAN_SHELL_ASYNC, receiveoperation : *mut WSMAN_OPERATION_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManReceiveShellOutput(core::mem::transmute(shell), core::mem::transmute(command.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(desiredstreamset.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManReceiveShellOutput(shell, core::mem::transmute(command.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(desiredstreamset.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManReconnectShell(shell: WSMAN_SHELL_HANDLE, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) { windows_targets::link!("wsmsvc.dll" "system" fn WSManReconnectShell(shell : WSMAN_SHELL_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManReconnectShell(core::mem::transmute(shell), core::mem::transmute(flags), core::mem::transmute(r#async)) + WSManReconnectShell(shell, flags, r#async) } #[inline] pub unsafe fn WSManReconnectShellCommand(commandhandle: WSMAN_COMMAND_HANDLE, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) { windows_targets::link!("wsmsvc.dll" "system" fn WSManReconnectShellCommand(commandhandle : WSMAN_COMMAND_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManReconnectShellCommand(core::mem::transmute(commandhandle), core::mem::transmute(flags), core::mem::transmute(r#async)) + WSManReconnectShellCommand(commandhandle, flags, r#async) } #[inline] pub unsafe fn WSManRunShellCommand(shell: WSMAN_SHELL_HANDLE, flags: u32, commandline: P2, args: Option<*const WSMAN_COMMAND_ARG_SET>, options: Option<*const WSMAN_OPTION_SET>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_COMMAND_HANDLE @@ -191,7 +191,7 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManRunShellCommand(shell : WSMAN_SHELL_HANDLE, flags : u32, commandline : windows_core::PCWSTR, args : *const WSMAN_COMMAND_ARG_SET, options : *const WSMAN_OPTION_SET, r#async : *const WSMAN_SHELL_ASYNC, command : *mut WSMAN_COMMAND_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManRunShellCommand(core::mem::transmute(shell), core::mem::transmute(flags), commandline.param().abi(), core::mem::transmute(args.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManRunShellCommand(shell, flags, commandline.param().abi(), core::mem::transmute(args.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] @@ -202,7 +202,7 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManRunShellCommandEx(shell : WSMAN_SHELL_HANDLE, flags : u32, commandid : windows_core::PCWSTR, commandline : windows_core::PCWSTR, args : *const WSMAN_COMMAND_ARG_SET, options : *const WSMAN_OPTION_SET, r#async : *const WSMAN_SHELL_ASYNC, command : *mut WSMAN_COMMAND_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManRunShellCommandEx(core::mem::transmute(shell), core::mem::transmute(flags), commandid.param().abi(), commandline.param().abi(), core::mem::transmute(args.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(r#async), &mut result__); + WSManRunShellCommandEx(shell, flags, commandid.param().abi(), commandline.param().abi(), core::mem::transmute(args.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), r#async, &mut result__); result__ } #[inline] @@ -212,13 +212,13 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManSendShellInput(shell : WSMAN_SHELL_HANDLE, command : WSMAN_COMMAND_HANDLE, flags : u32, streamid : windows_core::PCWSTR, streamdata : *const WSMAN_DATA, endofstream : super::super::Foundation:: BOOL, r#async : *const WSMAN_SHELL_ASYNC, sendoperation : *mut WSMAN_OPERATION_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManSendShellInput(core::mem::transmute(shell), core::mem::transmute(command.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), streamid.param().abi(), core::mem::transmute(streamdata), endofstream.into(), core::mem::transmute(r#async), &mut result__); + WSManSendShellInput(shell, core::mem::transmute(command.unwrap_or(core::mem::zeroed())), flags, streamid.param().abi(), streamdata, endofstream.into(), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManSetSessionOption(session: WSMAN_SESSION_HANDLE, option: WSManSessionOption, data: *const WSMAN_DATA) -> u32 { windows_targets::link!("wsmsvc.dll" "system" fn WSManSetSessionOption(session : WSMAN_SESSION_HANDLE, option : WSManSessionOption, data : *const WSMAN_DATA) -> u32); - WSManSetSessionOption(core::mem::transmute(session), core::mem::transmute(option), core::mem::transmute(data)) + WSManSetSessionOption(session, option, data) } #[inline] pub unsafe fn WSManSignalShell(shell: WSMAN_SHELL_HANDLE, command: Option, flags: u32, code: P3, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_OPERATION_HANDLE @@ -227,7 +227,7 @@ where { windows_targets::link!("wsmsvc.dll" "system" fn WSManSignalShell(shell : WSMAN_SHELL_HANDLE, command : WSMAN_COMMAND_HANDLE, flags : u32, code : windows_core::PCWSTR, r#async : *const WSMAN_SHELL_ASYNC, signaloperation : *mut WSMAN_OPERATION_HANDLE)); let mut result__ = core::mem::zeroed(); - WSManSignalShell(core::mem::transmute(shell), core::mem::transmute(command.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), code.param().abi(), core::mem::transmute(r#async), &mut result__); + WSManSignalShell(shell, core::mem::transmute(command.unwrap_or(core::mem::zeroed())), flags, code.param().abi(), r#async, &mut result__); result__ } pub const ERROR_REDIRECT_LOCATION_INVALID: u32 = 2150859191u32; @@ -760,7 +760,7 @@ impl IWSMan { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(connection), core::mem::transmute(flags), connectionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(connection), flags, connectionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateConnectionOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -996,7 +996,7 @@ windows_core::imp::interface_hierarchy!(IWSManConnectionOptionsEx2, windows_core #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx2 { pub unsafe fn SetProxy(&self, accesstype: i32, authenticationmechanism: i32, username: &windows_core::BSTR, password: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(accesstype), core::mem::transmute(authenticationmechanism), core::mem::transmute_copy(username), core::mem::transmute_copy(password)).ok() + (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), accesstype, authenticationmechanism, core::mem::transmute_copy(username), core::mem::transmute_copy(password)).ok() } pub unsafe fn ProxyIEConfig(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1307,7 +1307,7 @@ impl IWSManEx { } pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(errornumber), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetErrorMessage)(windows_core::Interface::as_raw(self), errornumber, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn EnumerationFlagHierarchyDeep(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1829,7 +1829,7 @@ impl IWSManInternal { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ConfigSDDL)(windows_core::Interface::as_raw(self), session.param().abi(), core::mem::transmute_copy(resourceuri), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ConfigSDDL)(windows_core::Interface::as_raw(self), session.param().abi(), core::mem::transmute_copy(resourceuri), flags, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2106,35 +2106,35 @@ impl IWSManSession { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Get(&self, resourceuri: &super::Variant::VARIANT, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Put(&self, resourceuri: &super::Variant::VARIANT, resource: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(resource), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(resource), flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Create(&self, resourceuri: &super::Variant::VARIANT, resource: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(resource), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(resource), flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Delete(&self, resourceuri: &super::Variant::VARIANT, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), flags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Invoke(&self, actionuri: &windows_core::BSTR, resourceuri: &super::Variant::VARIANT, parameters: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(actionuri), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(parameters), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(actionuri), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(parameters), flags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Enumerate(&self, resourceuri: &super::Variant::VARIANT, filter: &windows_core::BSTR, dialect: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Enumerate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(filter), core::mem::transmute_copy(dialect), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Enumerate)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(resourceuri), core::mem::transmute_copy(filter), core::mem::transmute_copy(dialect), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Identify(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Identify)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Identify)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Error(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2145,14 +2145,14 @@ impl IWSManSession { (windows_core::Interface::vtable(self).BatchItems)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBatchItems(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBatchItems)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBatchItems)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Timeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Timeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTimeout(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTimeout)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs index c8bf4ead17..b9952e47fa 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs @@ -5,27 +5,27 @@ where P3: windows_core::Param, { windows_targets::link!("rstrtmgr.dll" "system" fn RmAddFilter(dwsessionhandle : u32, strmodulename : windows_core::PCWSTR, pprocess : *const RM_UNIQUE_PROCESS, strserviceshortname : windows_core::PCWSTR, filteraction : RM_FILTER_ACTION) -> super::super::Foundation:: WIN32_ERROR); - RmAddFilter(core::mem::transmute(dwsessionhandle), strmodulename.param().abi(), core::mem::transmute(pprocess.unwrap_or(core::mem::zeroed())), strserviceshortname.param().abi(), core::mem::transmute(filteraction)) + RmAddFilter(dwsessionhandle, strmodulename.param().abi(), core::mem::transmute(pprocess.unwrap_or(core::mem::zeroed())), strserviceshortname.param().abi(), filteraction) } #[inline] pub unsafe fn RmCancelCurrentTask(dwsessionhandle: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmCancelCurrentTask(dwsessionhandle : u32) -> super::super::Foundation:: WIN32_ERROR); - RmCancelCurrentTask(core::mem::transmute(dwsessionhandle)) + RmCancelCurrentTask(dwsessionhandle) } #[inline] pub unsafe fn RmEndSession(dwsessionhandle: u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmEndSession(dwsessionhandle : u32) -> super::super::Foundation:: WIN32_ERROR); - RmEndSession(core::mem::transmute(dwsessionhandle)) + RmEndSession(dwsessionhandle) } #[inline] pub unsafe fn RmGetFilterList(dwsessionhandle: u32, pbfilterbuf: Option<&mut [u8]>, cbfilterbufneeded: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmGetFilterList(dwsessionhandle : u32, pbfilterbuf : *mut u8, cbfilterbuf : u32, cbfilterbufneeded : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RmGetFilterList(core::mem::transmute(dwsessionhandle), core::mem::transmute(pbfilterbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbfilterbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(cbfilterbufneeded)) + RmGetFilterList(dwsessionhandle, core::mem::transmute(pbfilterbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbfilterbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(cbfilterbufneeded)) } #[inline] pub unsafe fn RmGetList(dwsessionhandle: u32, pnprocinfoneeded: *mut u32, pnprocinfo: *mut u32, rgaffectedapps: Option<*mut RM_PROCESS_INFO>, lpdwrebootreasons: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmGetList(dwsessionhandle : u32, pnprocinfoneeded : *mut u32, pnprocinfo : *mut u32, rgaffectedapps : *mut RM_PROCESS_INFO, lpdwrebootreasons : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - RmGetList(core::mem::transmute(dwsessionhandle), core::mem::transmute(pnprocinfoneeded), core::mem::transmute(pnprocinfo), core::mem::transmute(rgaffectedapps.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwrebootreasons)) + RmGetList(dwsessionhandle, core::mem::transmute(pnprocinfoneeded), core::mem::transmute(pnprocinfo), core::mem::transmute(rgaffectedapps.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdwrebootreasons)) } #[inline] pub unsafe fn RmJoinSession(psessionhandle: *mut u32, strsessionkey: P1) -> super::super::Foundation::WIN32_ERROR @@ -39,7 +39,7 @@ where pub unsafe fn RmRegisterResources(dwsessionhandle: u32, rgsfilenames: Option<&[windows_core::PCWSTR]>, rgapplications: Option<&[RM_UNIQUE_PROCESS]>, rgsservicenames: Option<&[windows_core::PCWSTR]>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmRegisterResources(dwsessionhandle : u32, nfiles : u32, rgsfilenames : *const windows_core::PCWSTR, napplications : u32, rgapplications : *const RM_UNIQUE_PROCESS, nservices : u32, rgsservicenames : *const windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); RmRegisterResources( - core::mem::transmute(dwsessionhandle), + dwsessionhandle, rgsfilenames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgsfilenames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgapplications.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -55,17 +55,17 @@ where P3: windows_core::Param, { windows_targets::link!("rstrtmgr.dll" "system" fn RmRemoveFilter(dwsessionhandle : u32, strmodulename : windows_core::PCWSTR, pprocess : *const RM_UNIQUE_PROCESS, strserviceshortname : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RmRemoveFilter(core::mem::transmute(dwsessionhandle), strmodulename.param().abi(), core::mem::transmute(pprocess.unwrap_or(core::mem::zeroed())), strserviceshortname.param().abi()) + RmRemoveFilter(dwsessionhandle, strmodulename.param().abi(), core::mem::transmute(pprocess.unwrap_or(core::mem::zeroed())), strserviceshortname.param().abi()) } #[inline] pub unsafe fn RmRestart(dwsessionhandle: u32, dwrestartflags: Option, fnstatus: Option) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmRestart(dwsessionhandle : u32, dwrestartflags : u32, fnstatus : RM_WRITE_STATUS_CALLBACK) -> super::super::Foundation:: WIN32_ERROR); - RmRestart(core::mem::transmute(dwsessionhandle), core::mem::transmute(dwrestartflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(fnstatus.unwrap_or(core::mem::zeroed()))) + RmRestart(dwsessionhandle, core::mem::transmute(dwrestartflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(fnstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RmShutdown(dwsessionhandle: u32, lactionflags: u32, fnstatus: Option) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("rstrtmgr.dll" "system" fn RmShutdown(dwsessionhandle : u32, lactionflags : u32, fnstatus : RM_WRITE_STATUS_CALLBACK) -> super::super::Foundation:: WIN32_ERROR); - RmShutdown(core::mem::transmute(dwsessionhandle), core::mem::transmute(lactionflags), core::mem::transmute(fnstatus.unwrap_or(core::mem::zeroed()))) + RmShutdown(dwsessionhandle, lactionflags, core::mem::transmute(fnstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RmStartSession(psessionhandle: *mut u32, dwsessionflags: Option, strsessionkey: windows_core::PWSTR) -> super::super::Foundation::WIN32_ERROR { diff --git a/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs index a4cb54e682..408d8cfce2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs @@ -1,17 +1,17 @@ #[inline] pub unsafe fn SRRemoveRestorePoint(dwrpnum: u32) -> u32 { windows_targets::link!("srclient.dll" "system" fn SRRemoveRestorePoint(dwrpnum : u32) -> u32); - SRRemoveRestorePoint(core::mem::transmute(dwrpnum)) + SRRemoveRestorePoint(dwrpnum) } #[inline] pub unsafe fn SRSetRestorePointA(prestoreptspec: *const RESTOREPOINTINFOA, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL { windows_targets::link!("sfc.dll" "system" fn SRSetRestorePointA(prestoreptspec : *const RESTOREPOINTINFOA, psmgrstatus : *mut STATEMGRSTATUS) -> super::super::Foundation:: BOOL); - SRSetRestorePointA(core::mem::transmute(prestoreptspec), core::mem::transmute(psmgrstatus)) + SRSetRestorePointA(prestoreptspec, core::mem::transmute(psmgrstatus)) } #[inline] pub unsafe fn SRSetRestorePointW(prestoreptspec: *const RESTOREPOINTINFOW, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL { windows_targets::link!("sfc.dll" "system" fn SRSetRestorePointW(prestoreptspec : *const RESTOREPOINTINFOW, psmgrstatus : *mut STATEMGRSTATUS) -> super::super::Foundation:: BOOL); - SRSetRestorePointW(core::mem::transmute(prestoreptspec), core::mem::transmute(psmgrstatus)) + SRSetRestorePointW(prestoreptspec, core::mem::transmute(psmgrstatus)) } pub const ACCESSIBILITY_SETTING: u32 = 3u32; pub const APPLICATION_INSTALL: RESTOREPOINTINFO_TYPE = RESTOREPOINTINFO_TYPE(0u32); diff --git a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs index 72a567fe40..60be57dd52 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn DceErrorInqTextA(rpcstatus: RPC_STATUS, errortext: &mut [u8; 256]) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn DceErrorInqTextA(rpcstatus : RPC_STATUS, errortext : windows_core::PSTR) -> RPC_STATUS); - DceErrorInqTextA(core::mem::transmute(rpcstatus), core::mem::transmute(errortext.as_ptr())) + DceErrorInqTextA(rpcstatus, core::mem::transmute(errortext.as_ptr())) } #[inline] pub unsafe fn DceErrorInqTextW(rpcstatus: RPC_STATUS, errortext: &mut [u16; 256]) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn DceErrorInqTextW(rpcstatus : RPC_STATUS, errortext : windows_core::PWSTR) -> RPC_STATUS); - DceErrorInqTextW(core::mem::transmute(rpcstatus), core::mem::transmute(errortext.as_ptr())) + DceErrorInqTextW(rpcstatus, core::mem::transmute(errortext.as_ptr())) } #[inline] pub unsafe fn IUnknown_AddRef_Proxy(this: P0) -> u32 @@ -22,7 +22,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn IUnknown_QueryInterface_Proxy(this : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - IUnknown_QueryInterface_Proxy(this.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + IUnknown_QueryInterface_Proxy(this.param().abi(), riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn IUnknown_Release_Proxy(this: P0) -> u32 @@ -35,19 +35,19 @@ where #[inline] pub unsafe fn I_RpcAllocate(size: u32) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcAllocate(size : u32) -> *mut core::ffi::c_void); - I_RpcAllocate(core::mem::transmute(size)) + I_RpcAllocate(size) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn I_RpcAsyncAbortCall(pasync: *const RPC_ASYNC_STATE, exceptioncode: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcAsyncAbortCall(pasync : *const RPC_ASYNC_STATE, exceptioncode : u32) -> RPC_STATUS); - I_RpcAsyncAbortCall(core::mem::transmute(pasync), core::mem::transmute(exceptioncode)) + I_RpcAsyncAbortCall(pasync, exceptioncode) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn I_RpcAsyncSetHandle(message: *const RPC_MESSAGE, pasync: *const RPC_ASYNC_STATE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcAsyncSetHandle(message : *const RPC_MESSAGE, pasync : *const RPC_ASYNC_STATE) -> RPC_STATUS); - I_RpcAsyncSetHandle(core::mem::transmute(message), core::mem::transmute(pasync)) + I_RpcAsyncSetHandle(message, pasync) } #[inline] pub unsafe fn I_RpcBindingCopy(sourcebinding: *mut core::ffi::c_void, destinationbinding: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -72,17 +72,17 @@ pub unsafe fn I_RpcBindingHandleToAsyncHandle(binding: *mut core::ffi::c_void, a #[inline] pub unsafe fn I_RpcBindingInqClientTokenAttributes(binding: *const core::ffi::c_void, tokenid: Option<*mut super::super::Foundation::LUID>, authenticationid: Option<*mut super::super::Foundation::LUID>, modifiedid: Option<*mut super::super::Foundation::LUID>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingInqClientTokenAttributes(binding : *const core::ffi::c_void, tokenid : *mut super::super::Foundation:: LUID, authenticationid : *mut super::super::Foundation:: LUID, modifiedid : *mut super::super::Foundation:: LUID) -> RPC_STATUS); - I_RpcBindingInqClientTokenAttributes(core::mem::transmute(binding), core::mem::transmute(tokenid.unwrap_or(core::mem::zeroed())), core::mem::transmute(authenticationid.unwrap_or(core::mem::zeroed())), core::mem::transmute(modifiedid.unwrap_or(core::mem::zeroed()))) + I_RpcBindingInqClientTokenAttributes(binding, core::mem::transmute(tokenid.unwrap_or(core::mem::zeroed())), core::mem::transmute(authenticationid.unwrap_or(core::mem::zeroed())), core::mem::transmute(modifiedid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn I_RpcBindingInqDynamicEndpointA(binding: *const core::ffi::c_void, dynamicendpoint: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingInqDynamicEndpointA(binding : *const core::ffi::c_void, dynamicendpoint : *mut windows_core::PSTR) -> RPC_STATUS); - I_RpcBindingInqDynamicEndpointA(core::mem::transmute(binding), core::mem::transmute(dynamicendpoint)) + I_RpcBindingInqDynamicEndpointA(binding, core::mem::transmute(dynamicendpoint)) } #[inline] pub unsafe fn I_RpcBindingInqDynamicEndpointW(binding: *const core::ffi::c_void, dynamicendpoint: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingInqDynamicEndpointW(binding : *const core::ffi::c_void, dynamicendpoint : *mut windows_core::PWSTR) -> RPC_STATUS); - I_RpcBindingInqDynamicEndpointW(core::mem::transmute(binding), core::mem::transmute(dynamicendpoint)) + I_RpcBindingInqDynamicEndpointW(binding, core::mem::transmute(dynamicendpoint)) } #[inline] pub unsafe fn I_RpcBindingInqLocalClientPID(binding: *mut core::ffi::c_void, pid: *mut u32) -> RPC_STATUS { @@ -92,7 +92,7 @@ pub unsafe fn I_RpcBindingInqLocalClientPID(binding: *mut core::ffi::c_void, pid #[inline] pub unsafe fn I_RpcBindingInqMarshalledTargetInfo(binding: *const core::ffi::c_void, marshalledtargetinfosize: *mut u32, marshalledtargetinfo: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingInqMarshalledTargetInfo(binding : *const core::ffi::c_void, marshalledtargetinfosize : *mut u32, marshalledtargetinfo : *mut windows_core::PSTR) -> RPC_STATUS); - I_RpcBindingInqMarshalledTargetInfo(core::mem::transmute(binding), core::mem::transmute(marshalledtargetinfosize), core::mem::transmute(marshalledtargetinfo)) + I_RpcBindingInqMarshalledTargetInfo(binding, core::mem::transmute(marshalledtargetinfosize), core::mem::transmute(marshalledtargetinfo)) } #[inline] pub unsafe fn I_RpcBindingInqSecurityContext(binding: *mut core::ffi::c_void, securitycontexthandle: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -112,7 +112,7 @@ pub unsafe fn I_RpcBindingInqTransportType(binding: *mut core::ffi::c_void, r#ty #[inline] pub unsafe fn I_RpcBindingInqWireIdForSnego(binding: *const core::ffi::c_void, wireid: *mut u8) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingInqWireIdForSnego(binding : *const core::ffi::c_void, wireid : *mut u8) -> RPC_STATUS); - I_RpcBindingInqWireIdForSnego(core::mem::transmute(binding), core::mem::transmute(wireid)) + I_RpcBindingInqWireIdForSnego(binding, core::mem::transmute(wireid)) } #[inline] pub unsafe fn I_RpcBindingIsClientLocal(bindinghandle: *mut core::ffi::c_void, clientlocalflag: *mut u32) -> RPC_STATUS { @@ -122,12 +122,12 @@ pub unsafe fn I_RpcBindingIsClientLocal(bindinghandle: *mut core::ffi::c_void, c #[inline] pub unsafe fn I_RpcBindingIsServerLocal(binding: *const core::ffi::c_void, serverlocalflag: *mut u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingIsServerLocal(binding : *const core::ffi::c_void, serverlocalflag : *mut u32) -> RPC_STATUS); - I_RpcBindingIsServerLocal(core::mem::transmute(binding), core::mem::transmute(serverlocalflag)) + I_RpcBindingIsServerLocal(binding, core::mem::transmute(serverlocalflag)) } #[inline] pub unsafe fn I_RpcBindingSetPrivateOption(hbinding: *const core::ffi::c_void, option: u32, optionvalue: usize) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingSetPrivateOption(hbinding : *const core::ffi::c_void, option : u32, optionvalue : usize) -> RPC_STATUS); - I_RpcBindingSetPrivateOption(core::mem::transmute(hbinding), core::mem::transmute(option), core::mem::transmute(optionvalue)) + I_RpcBindingSetPrivateOption(hbinding, option, optionvalue) } #[inline] pub unsafe fn I_RpcBindingToStaticStringBindingW(binding: *mut core::ffi::c_void, stringbinding: *mut *mut u16) -> RPC_STATUS { @@ -147,7 +147,7 @@ pub unsafe fn I_RpcDeleteMutex(mutex: *mut core::ffi::c_void) { #[inline] pub unsafe fn I_RpcExceptionFilter(exceptioncode: u32) -> i32 { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcExceptionFilter(exceptioncode : u32) -> i32); - I_RpcExceptionFilter(core::mem::transmute(exceptioncode)) + I_RpcExceptionFilter(exceptioncode) } #[inline] pub unsafe fn I_RpcFree(object: *mut core::ffi::c_void) { @@ -192,12 +192,12 @@ pub unsafe fn I_RpcGetExtendedError() -> RPC_STATUS { #[inline] pub unsafe fn I_RpcIfInqTransferSyntaxes(rpcifhandle: *mut core::ffi::c_void, transfersyntaxes: *mut RPC_TRANSFER_SYNTAX, transfersyntaxsize: u32, transfersyntaxcount: *mut u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcIfInqTransferSyntaxes(rpcifhandle : *mut core::ffi::c_void, transfersyntaxes : *mut RPC_TRANSFER_SYNTAX, transfersyntaxsize : u32, transfersyntaxcount : *mut u32) -> RPC_STATUS); - I_RpcIfInqTransferSyntaxes(core::mem::transmute(rpcifhandle), core::mem::transmute(transfersyntaxes), core::mem::transmute(transfersyntaxsize), core::mem::transmute(transfersyntaxcount)) + I_RpcIfInqTransferSyntaxes(core::mem::transmute(rpcifhandle), core::mem::transmute(transfersyntaxes), transfersyntaxsize, core::mem::transmute(transfersyntaxcount)) } #[inline] pub unsafe fn I_RpcMapWin32Status(status: RPC_STATUS) -> i32 { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcMapWin32Status(status : RPC_STATUS) -> i32); - I_RpcMapWin32Status(core::mem::transmute(status)) + I_RpcMapWin32Status(status) } #[inline] pub unsafe fn I_RpcMgmtEnableDedicatedThreadPool() -> RPC_STATUS { @@ -215,7 +215,7 @@ where P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcNsBindingSetEntryNameA(binding : *const core::ffi::c_void, entrynamesyntax : u32, entryname : windows_core::PCSTR) -> RPC_STATUS); - I_RpcNsBindingSetEntryNameA(core::mem::transmute(binding), core::mem::transmute(entrynamesyntax), entryname.param().abi()) + I_RpcNsBindingSetEntryNameA(binding, entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn I_RpcNsBindingSetEntryNameW(binding: *const core::ffi::c_void, entrynamesyntax: u32, entryname: P2) -> RPC_STATUS @@ -223,7 +223,7 @@ where P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcNsBindingSetEntryNameW(binding : *const core::ffi::c_void, entrynamesyntax : u32, entryname : windows_core::PCWSTR) -> RPC_STATUS); - I_RpcNsBindingSetEntryNameW(core::mem::transmute(binding), core::mem::transmute(entrynamesyntax), entryname.param().abi()) + I_RpcNsBindingSetEntryNameW(binding, entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn I_RpcNsGetBuffer(message: *mut RPC_MESSAGE) -> RPC_STATUS { @@ -233,17 +233,17 @@ pub unsafe fn I_RpcNsGetBuffer(message: *mut RPC_MESSAGE) -> RPC_STATUS { #[inline] pub unsafe fn I_RpcNsInterfaceExported(entrynamesyntax: u32, entryname: *const u16, rpcinterfaceinformation: *const RPC_SERVER_INTERFACE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcNsInterfaceExported(entrynamesyntax : u32, entryname : *const u16, rpcinterfaceinformation : *const RPC_SERVER_INTERFACE) -> RPC_STATUS); - I_RpcNsInterfaceExported(core::mem::transmute(entrynamesyntax), core::mem::transmute(entryname), core::mem::transmute(rpcinterfaceinformation)) + I_RpcNsInterfaceExported(entrynamesyntax, entryname, rpcinterfaceinformation) } #[inline] pub unsafe fn I_RpcNsInterfaceUnexported(entrynamesyntax: u32, entryname: *mut u16, rpcinterfaceinformation: *mut RPC_SERVER_INTERFACE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcNsInterfaceUnexported(entrynamesyntax : u32, entryname : *mut u16, rpcinterfaceinformation : *mut RPC_SERVER_INTERFACE) -> RPC_STATUS); - I_RpcNsInterfaceUnexported(core::mem::transmute(entrynamesyntax), core::mem::transmute(entryname), core::mem::transmute(rpcinterfaceinformation)) + I_RpcNsInterfaceUnexported(entrynamesyntax, core::mem::transmute(entryname), core::mem::transmute(rpcinterfaceinformation)) } #[inline] pub unsafe fn I_RpcNsRaiseException(message: *mut RPC_MESSAGE, status: RPC_STATUS) { windows_targets::link!("rpcns4.dll" "system" fn I_RpcNsRaiseException(message : *mut RPC_MESSAGE, status : RPC_STATUS)); - I_RpcNsRaiseException(core::mem::transmute(message), core::mem::transmute(status)) + I_RpcNsRaiseException(core::mem::transmute(message), status) } #[inline] pub unsafe fn I_RpcNsSendReceive(message: *mut RPC_MESSAGE, handle: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -253,12 +253,12 @@ pub unsafe fn I_RpcNsSendReceive(message: *mut RPC_MESSAGE, handle: *mut *mut co #[inline] pub unsafe fn I_RpcOpenClientProcess(binding: Option<*const core::ffi::c_void>, desiredaccess: u32, clientprocess: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcOpenClientProcess(binding : *const core::ffi::c_void, desiredaccess : u32, clientprocess : *mut *mut core::ffi::c_void) -> RPC_STATUS); - I_RpcOpenClientProcess(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(clientprocess)) + I_RpcOpenClientProcess(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), desiredaccess, core::mem::transmute(clientprocess)) } #[inline] pub unsafe fn I_RpcPauseExecution(milliseconds: u32) { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcPauseExecution(milliseconds : u32)); - I_RpcPauseExecution(core::mem::transmute(milliseconds)) + I_RpcPauseExecution(milliseconds) } #[inline] pub unsafe fn I_RpcReBindBuffer(message: *mut RPC_MESSAGE) -> RPC_STATUS { @@ -268,17 +268,17 @@ pub unsafe fn I_RpcReBindBuffer(message: *mut RPC_MESSAGE) -> RPC_STATUS { #[inline] pub unsafe fn I_RpcReallocPipeBuffer(message: *const RPC_MESSAGE, newsize: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcReallocPipeBuffer(message : *const RPC_MESSAGE, newsize : u32) -> RPC_STATUS); - I_RpcReallocPipeBuffer(core::mem::transmute(message), core::mem::transmute(newsize)) + I_RpcReallocPipeBuffer(message, newsize) } #[inline] pub unsafe fn I_RpcReceive(message: *mut RPC_MESSAGE, size: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcReceive(message : *mut RPC_MESSAGE, size : u32) -> RPC_STATUS); - I_RpcReceive(core::mem::transmute(message), core::mem::transmute(size)) + I_RpcReceive(core::mem::transmute(message), size) } #[inline] pub unsafe fn I_RpcRecordCalloutFailure(rpcstatus: RPC_STATUS, calloutstate: *mut RDR_CALLOUT_STATE, dllname: *mut u16) { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcRecordCalloutFailure(rpcstatus : RPC_STATUS, calloutstate : *mut RDR_CALLOUT_STATE, dllname : *mut u16)); - I_RpcRecordCalloutFailure(core::mem::transmute(rpcstatus), core::mem::transmute(calloutstate), core::mem::transmute(dllname)) + I_RpcRecordCalloutFailure(rpcstatus, core::mem::transmute(calloutstate), core::mem::transmute(dllname)) } #[inline] pub unsafe fn I_RpcRequestMutex(mutex: *mut *mut core::ffi::c_void) { @@ -347,7 +347,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcServerStartService(protseq : windows_core::PCWSTR, endpoint : windows_core::PCWSTR, ifspec : *const core::ffi::c_void) -> RPC_STATUS); - I_RpcServerStartService(protseq.param().abi(), endpoint.param().abi(), core::mem::transmute(ifspec)) + I_RpcServerStartService(protseq.param().abi(), endpoint.param().abi(), ifspec) } #[inline] pub unsafe fn I_RpcServerSubscribeForDisconnectNotification(binding: Option<*const core::ffi::c_void>, hevent: Option<*const core::ffi::c_void>) -> RPC_STATUS { @@ -357,7 +357,7 @@ pub unsafe fn I_RpcServerSubscribeForDisconnectNotification(binding: Option<*con #[inline] pub unsafe fn I_RpcServerSubscribeForDisconnectNotification2(binding: Option<*const core::ffi::c_void>, hevent: *const core::ffi::c_void, subscriptionid: *mut windows_core::GUID) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcServerSubscribeForDisconnectNotification2(binding : *const core::ffi::c_void, hevent : *const core::ffi::c_void, subscriptionid : *mut windows_core::GUID) -> RPC_STATUS); - I_RpcServerSubscribeForDisconnectNotification2(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(hevent), core::mem::transmute(subscriptionid)) + I_RpcServerSubscribeForDisconnectNotification2(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), hevent, core::mem::transmute(subscriptionid)) } #[inline] pub unsafe fn I_RpcServerUnsubscribeForDisconnectNotification(binding: Option<*const core::ffi::c_void>, subscriptionid: windows_core::GUID) -> RPC_STATUS { @@ -371,7 +371,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcServerUseProtseq2A(networkaddress : windows_core::PCSTR, protseq : windows_core::PCSTR, maxcalls : u32, securitydescriptor : *const core::ffi::c_void, policy : *const core::ffi::c_void) -> RPC_STATUS); - I_RpcServerUseProtseq2A(networkaddress.param().abi(), protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + I_RpcServerUseProtseq2A(networkaddress.param().abi(), protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn I_RpcServerUseProtseq2W(networkaddress: P0, protseq: P1, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const core::ffi::c_void) -> RPC_STATUS @@ -380,7 +380,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcServerUseProtseq2W(networkaddress : windows_core::PCWSTR, protseq : windows_core::PCWSTR, maxcalls : u32, securitydescriptor : *const core::ffi::c_void, policy : *const core::ffi::c_void) -> RPC_STATUS); - I_RpcServerUseProtseq2W(networkaddress.param().abi(), protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + I_RpcServerUseProtseq2W(networkaddress.param().abi(), protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn I_RpcServerUseProtseqEp2A(networkaddress: P0, protseq: P1, maxcalls: u32, endpoint: P3, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const core::ffi::c_void) -> RPC_STATUS @@ -390,7 +390,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcServerUseProtseqEp2A(networkaddress : windows_core::PCSTR, protseq : windows_core::PCSTR, maxcalls : u32, endpoint : windows_core::PCSTR, securitydescriptor : *const core::ffi::c_void, policy : *const core::ffi::c_void) -> RPC_STATUS); - I_RpcServerUseProtseqEp2A(networkaddress.param().abi(), protseq.param().abi(), core::mem::transmute(maxcalls), endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + I_RpcServerUseProtseqEp2A(networkaddress.param().abi(), protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn I_RpcServerUseProtseqEp2W(networkaddress: P0, protseq: P1, maxcalls: u32, endpoint: P3, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const core::ffi::c_void) -> RPC_STATUS @@ -400,7 +400,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcServerUseProtseqEp2W(networkaddress : windows_core::PCWSTR, protseq : windows_core::PCWSTR, maxcalls : u32, endpoint : windows_core::PCWSTR, securitydescriptor : *const core::ffi::c_void, policy : *const core::ffi::c_void) -> RPC_STATUS); - I_RpcServerUseProtseqEp2W(networkaddress.param().abi(), protseq.param().abi(), core::mem::transmute(maxcalls), endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + I_RpcServerUseProtseqEp2W(networkaddress.param().abi(), protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn I_RpcSessionStrictContextHandle() { @@ -415,7 +415,7 @@ pub unsafe fn I_RpcSsDontSerializeContext() { #[inline] pub unsafe fn I_RpcSystemHandleTypeSpecificWork(handle: *mut core::ffi::c_void, actualtype: u8, idltype: u8, marshaldirection: LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcSystemHandleTypeSpecificWork(handle : *mut core::ffi::c_void, actualtype : u8, idltype : u8, marshaldirection : LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION) -> RPC_STATUS); - I_RpcSystemHandleTypeSpecificWork(core::mem::transmute(handle), core::mem::transmute(actualtype), core::mem::transmute(idltype), core::mem::transmute(marshaldirection)) + I_RpcSystemHandleTypeSpecificWork(core::mem::transmute(handle), actualtype, idltype, marshaldirection) } #[inline] pub unsafe fn I_RpcTurnOnEEInfoPropagation() -> RPC_STATUS { @@ -430,7 +430,7 @@ pub unsafe fn I_UuidCreate(uuid: *mut windows_core::GUID) -> RPC_STATUS { #[inline] pub unsafe fn MesBufferHandleReset(handle: *const core::ffi::c_void, handlestyle: u32, operation: MIDL_ES_CODE, pbuffer: Option<&[u8]>, pencodedsize: Option<*mut u32>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn MesBufferHandleReset(handle : *const core::ffi::c_void, handlestyle : u32, operation : MIDL_ES_CODE, pbuffer : *const *const i8, buffersize : u32, pencodedsize : *mut u32) -> RPC_STATUS); - MesBufferHandleReset(core::mem::transmute(handle), core::mem::transmute(handlestyle), core::mem::transmute(operation), core::mem::transmute(pbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pencodedsize.unwrap_or(core::mem::zeroed()))) + MesBufferHandleReset(handle, handlestyle, operation, core::mem::transmute(pbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pencodedsize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MesDecodeBufferHandleCreate(buffer: &[u8], phandle: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -440,7 +440,7 @@ pub unsafe fn MesDecodeBufferHandleCreate(buffer: &[u8], phandle: *mut *mut core #[inline] pub unsafe fn MesDecodeIncrementalHandleCreate(userstate: *mut core::ffi::c_void, readfn: MIDL_ES_READ, phandle: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn MesDecodeIncrementalHandleCreate(userstate : *mut core::ffi::c_void, readfn : MIDL_ES_READ, phandle : *mut *mut core::ffi::c_void) -> RPC_STATUS); - MesDecodeIncrementalHandleCreate(core::mem::transmute(userstate), core::mem::transmute(readfn), core::mem::transmute(phandle)) + MesDecodeIncrementalHandleCreate(core::mem::transmute(userstate), readfn, core::mem::transmute(phandle)) } #[inline] pub unsafe fn MesEncodeDynBufferHandleCreate(pbuffer: *mut *mut i8, pencodedsize: *mut u32, phandle: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -455,7 +455,7 @@ pub unsafe fn MesEncodeFixedBufferHandleCreate(pbuffer: &mut [u8], pencodedsize: #[inline] pub unsafe fn MesEncodeIncrementalHandleCreate(userstate: *mut core::ffi::c_void, allocfn: MIDL_ES_ALLOC, writefn: MIDL_ES_WRITE, phandle: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn MesEncodeIncrementalHandleCreate(userstate : *mut core::ffi::c_void, allocfn : MIDL_ES_ALLOC, writefn : MIDL_ES_WRITE, phandle : *mut *mut core::ffi::c_void) -> RPC_STATUS); - MesEncodeIncrementalHandleCreate(core::mem::transmute(userstate), core::mem::transmute(allocfn), core::mem::transmute(writefn), core::mem::transmute(phandle)) + MesEncodeIncrementalHandleCreate(core::mem::transmute(userstate), allocfn, writefn, core::mem::transmute(phandle)) } #[inline] pub unsafe fn MesHandleFree(handle: *mut core::ffi::c_void) -> RPC_STATUS { @@ -465,7 +465,7 @@ pub unsafe fn MesHandleFree(handle: *mut core::ffi::c_void) -> RPC_STATUS { #[inline] pub unsafe fn MesIncrementalHandleReset(handle: *mut core::ffi::c_void, userstate: *mut core::ffi::c_void, allocfn: MIDL_ES_ALLOC, writefn: MIDL_ES_WRITE, readfn: MIDL_ES_READ, operation: MIDL_ES_CODE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn MesIncrementalHandleReset(handle : *mut core::ffi::c_void, userstate : *mut core::ffi::c_void, allocfn : MIDL_ES_ALLOC, writefn : MIDL_ES_WRITE, readfn : MIDL_ES_READ, operation : MIDL_ES_CODE) -> RPC_STATUS); - MesIncrementalHandleReset(core::mem::transmute(handle), core::mem::transmute(userstate), core::mem::transmute(allocfn), core::mem::transmute(writefn), core::mem::transmute(readfn), core::mem::transmute(operation)) + MesIncrementalHandleReset(core::mem::transmute(handle), core::mem::transmute(userstate), allocfn, writefn, readfn, operation) } #[inline] pub unsafe fn MesInqProcEncodingId(handle: *mut core::ffi::c_void, pinterfaceid: *mut RPC_SYNTAX_IDENTIFIER, pprocnum: *mut u32) -> RPC_STATUS { @@ -475,7 +475,7 @@ pub unsafe fn MesInqProcEncodingId(handle: *mut core::ffi::c_void, pinterfaceid: #[inline] pub unsafe fn NDRCContextBinding(ccontext: isize) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn NDRCContextBinding(ccontext : isize) -> *mut core::ffi::c_void); - NDRCContextBinding(core::mem::transmute(ccontext)) + NDRCContextBinding(ccontext) } #[inline] pub unsafe fn NDRCContextMarshall(ccontext: Option, pbuff: *mut core::ffi::c_void) { @@ -485,43 +485,43 @@ pub unsafe fn NDRCContextMarshall(ccontext: Option, pbuff: *mut core::ffi #[inline] pub unsafe fn NDRCContextUnmarshall(pccontext: Option<*mut isize>, hbinding: *const core::ffi::c_void, pbuff: *const core::ffi::c_void, datarepresentation: u32) { windows_targets::link!("rpcrt4.dll" "system" fn NDRCContextUnmarshall(pccontext : *mut isize, hbinding : *const core::ffi::c_void, pbuff : *const core::ffi::c_void, datarepresentation : u32)); - NDRCContextUnmarshall(core::mem::transmute(pccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(hbinding), core::mem::transmute(pbuff), core::mem::transmute(datarepresentation)) + NDRCContextUnmarshall(core::mem::transmute(pccontext.unwrap_or(core::mem::zeroed())), hbinding, pbuff, datarepresentation) } #[inline] pub unsafe fn NDRSContextMarshall(ccontext: *const NDR_SCONTEXT, pbuff: *mut core::ffi::c_void, userrundownin: NDR_RUNDOWN) { windows_targets::link!("rpcrt4.dll" "system" fn NDRSContextMarshall(ccontext : *const NDR_SCONTEXT, pbuff : *mut core::ffi::c_void, userrundownin : NDR_RUNDOWN)); - NDRSContextMarshall(core::mem::transmute(ccontext), core::mem::transmute(pbuff), core::mem::transmute(userrundownin)) + NDRSContextMarshall(ccontext, core::mem::transmute(pbuff), userrundownin) } #[inline] pub unsafe fn NDRSContextMarshall2(bindinghandle: *const core::ffi::c_void, ccontext: *const NDR_SCONTEXT, pbuff: *mut core::ffi::c_void, userrundownin: NDR_RUNDOWN, ctxguard: Option<*const core::ffi::c_void>, flags: u32) { windows_targets::link!("rpcrt4.dll" "system" fn NDRSContextMarshall2(bindinghandle : *const core::ffi::c_void, ccontext : *const NDR_SCONTEXT, pbuff : *mut core::ffi::c_void, userrundownin : NDR_RUNDOWN, ctxguard : *const core::ffi::c_void, flags : u32)); - NDRSContextMarshall2(core::mem::transmute(bindinghandle), core::mem::transmute(ccontext), core::mem::transmute(pbuff), core::mem::transmute(userrundownin), core::mem::transmute(ctxguard.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + NDRSContextMarshall2(bindinghandle, ccontext, core::mem::transmute(pbuff), userrundownin, core::mem::transmute(ctxguard.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn NDRSContextMarshallEx(bindinghandle: *const core::ffi::c_void, ccontext: *const NDR_SCONTEXT, pbuff: *mut core::ffi::c_void, userrundownin: NDR_RUNDOWN) { windows_targets::link!("rpcrt4.dll" "system" fn NDRSContextMarshallEx(bindinghandle : *const core::ffi::c_void, ccontext : *const NDR_SCONTEXT, pbuff : *mut core::ffi::c_void, userrundownin : NDR_RUNDOWN)); - NDRSContextMarshallEx(core::mem::transmute(bindinghandle), core::mem::transmute(ccontext), core::mem::transmute(pbuff), core::mem::transmute(userrundownin)) + NDRSContextMarshallEx(bindinghandle, ccontext, core::mem::transmute(pbuff), userrundownin) } #[inline] pub unsafe fn NDRSContextUnmarshall(pbuff: *const core::ffi::c_void, datarepresentation: u32) -> *mut NDR_SCONTEXT { windows_targets::link!("rpcrt4.dll" "system" fn NDRSContextUnmarshall(pbuff : *const core::ffi::c_void, datarepresentation : u32) -> *mut NDR_SCONTEXT); - NDRSContextUnmarshall(core::mem::transmute(pbuff), core::mem::transmute(datarepresentation)) + NDRSContextUnmarshall(pbuff, datarepresentation) } #[inline] pub unsafe fn NDRSContextUnmarshall2(bindinghandle: *const core::ffi::c_void, pbuff: Option<*const core::ffi::c_void>, datarepresentation: u32, ctxguard: Option<*const core::ffi::c_void>, flags: u32) -> *mut NDR_SCONTEXT { windows_targets::link!("rpcrt4.dll" "system" fn NDRSContextUnmarshall2(bindinghandle : *const core::ffi::c_void, pbuff : *const core::ffi::c_void, datarepresentation : u32, ctxguard : *const core::ffi::c_void, flags : u32) -> *mut NDR_SCONTEXT); - NDRSContextUnmarshall2(core::mem::transmute(bindinghandle), core::mem::transmute(pbuff.unwrap_or(core::mem::zeroed())), core::mem::transmute(datarepresentation), core::mem::transmute(ctxguard.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + NDRSContextUnmarshall2(bindinghandle, core::mem::transmute(pbuff.unwrap_or(core::mem::zeroed())), datarepresentation, core::mem::transmute(ctxguard.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn NDRSContextUnmarshallEx(bindinghandle: *const core::ffi::c_void, pbuff: *const core::ffi::c_void, datarepresentation: u32) -> *mut NDR_SCONTEXT { windows_targets::link!("rpcrt4.dll" "system" fn NDRSContextUnmarshallEx(bindinghandle : *const core::ffi::c_void, pbuff : *const core::ffi::c_void, datarepresentation : u32) -> *mut NDR_SCONTEXT); - NDRSContextUnmarshallEx(core::mem::transmute(bindinghandle), core::mem::transmute(pbuff), core::mem::transmute(datarepresentation)) + NDRSContextUnmarshallEx(bindinghandle, pbuff, datarepresentation) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn Ndr64AsyncClientCall(pproxyinfo: *mut MIDL_STUBLESS_PROXY_INFO, nprocnum: u32, preturnvalue: *mut core::ffi::c_void) -> CLIENT_CALL_RETURN { windows_targets::link!("rpcrt4.dll" "cdecl" fn Ndr64AsyncClientCall(pproxyinfo : *mut MIDL_STUBLESS_PROXY_INFO, nprocnum : u32, preturnvalue : *mut core::ffi::c_void) -> CLIENT_CALL_RETURN); - Ndr64AsyncClientCall(core::mem::transmute(pproxyinfo), core::mem::transmute(nprocnum), core::mem::transmute(preturnvalue)) + Ndr64AsyncClientCall(core::mem::transmute(pproxyinfo), nprocnum, core::mem::transmute(preturnvalue)) } #[inline] pub unsafe fn Ndr64AsyncServerCall64(prpcmsg: *mut RPC_MESSAGE) { @@ -537,7 +537,7 @@ pub unsafe fn Ndr64AsyncServerCallAll(prpcmsg: *mut RPC_MESSAGE) { #[inline] pub unsafe fn Ndr64DcomAsyncClientCall(pproxyinfo: *mut MIDL_STUBLESS_PROXY_INFO, nprocnum: u32, preturnvalue: *mut core::ffi::c_void) -> CLIENT_CALL_RETURN { windows_targets::link!("rpcrt4.dll" "cdecl" fn Ndr64DcomAsyncClientCall(pproxyinfo : *mut MIDL_STUBLESS_PROXY_INFO, nprocnum : u32, preturnvalue : *mut core::ffi::c_void) -> CLIENT_CALL_RETURN); - Ndr64DcomAsyncClientCall(core::mem::transmute(pproxyinfo), core::mem::transmute(nprocnum), core::mem::transmute(preturnvalue)) + Ndr64DcomAsyncClientCall(core::mem::transmute(pproxyinfo), nprocnum, core::mem::transmute(preturnvalue)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -553,7 +553,7 @@ where #[inline] pub unsafe fn NdrAllocate(pstubmsg: *mut MIDL_STUB_MESSAGE, len: usize) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn NdrAllocate(pstubmsg : *mut MIDL_STUB_MESSAGE, len : usize) -> *mut core::ffi::c_void); - NdrAllocate(core::mem::transmute(pstubmsg), core::mem::transmute(len)) + NdrAllocate(core::mem::transmute(pstubmsg), len) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -588,7 +588,7 @@ pub unsafe fn NdrByteCountPointerMarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, pmem #[inline] pub unsafe fn NdrByteCountPointerUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrByteCountPointerUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrByteCountPointerUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrByteCountPointerUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -606,13 +606,13 @@ pub unsafe fn NdrClientCall2(pstubdescriptor: *mut MIDL_STUB_DESC, pformat: *mut #[inline] pub unsafe fn NdrClientCall3(pproxyinfo: *mut MIDL_STUBLESS_PROXY_INFO, nprocnum: u32, preturnvalue: *mut core::ffi::c_void) -> CLIENT_CALL_RETURN { windows_targets::link!("rpcrt4.dll" "cdecl" fn NdrClientCall3(pproxyinfo : *mut MIDL_STUBLESS_PROXY_INFO, nprocnum : u32, preturnvalue : *mut core::ffi::c_void) -> CLIENT_CALL_RETURN); - NdrClientCall3(core::mem::transmute(pproxyinfo), core::mem::transmute(nprocnum), core::mem::transmute(preturnvalue)) + NdrClientCall3(core::mem::transmute(pproxyinfo), nprocnum, core::mem::transmute(preturnvalue)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrClientContextMarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, contexthandle: isize, fcheck: i32) { windows_targets::link!("rpcrt4.dll" "system" fn NdrClientContextMarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, contexthandle : isize, fcheck : i32)); - NdrClientContextMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(contexthandle), core::mem::transmute(fcheck)) + NdrClientContextMarshall(core::mem::transmute(pstubmsg), contexthandle, fcheck) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -624,13 +624,13 @@ pub unsafe fn NdrClientContextUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, pcont #[inline] pub unsafe fn NdrClientInitialize(prpcmsg: *mut RPC_MESSAGE, pstubmsg: *mut MIDL_STUB_MESSAGE, pstubdescriptor: *mut MIDL_STUB_DESC, procnum: u32) { windows_targets::link!("rpcrt4.dll" "system" fn NdrClientInitialize(prpcmsg : *mut RPC_MESSAGE, pstubmsg : *mut MIDL_STUB_MESSAGE, pstubdescriptor : *mut MIDL_STUB_DESC, procnum : u32)); - NdrClientInitialize(core::mem::transmute(prpcmsg), core::mem::transmute(pstubmsg), core::mem::transmute(pstubdescriptor), core::mem::transmute(procnum)) + NdrClientInitialize(core::mem::transmute(prpcmsg), core::mem::transmute(pstubmsg), core::mem::transmute(pstubdescriptor), procnum) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrClientInitializeNew(prpcmsg: *mut RPC_MESSAGE, pstubmsg: *mut MIDL_STUB_MESSAGE, pstubdescriptor: *mut MIDL_STUB_DESC, procnum: u32) { windows_targets::link!("rpcrt4.dll" "system" fn NdrClientInitializeNew(prpcmsg : *mut RPC_MESSAGE, pstubmsg : *mut MIDL_STUB_MESSAGE, pstubdescriptor : *mut MIDL_STUB_DESC, procnum : u32)); - NdrClientInitializeNew(core::mem::transmute(prpcmsg), core::mem::transmute(pstubmsg), core::mem::transmute(pstubdescriptor), core::mem::transmute(procnum)) + NdrClientInitializeNew(core::mem::transmute(prpcmsg), core::mem::transmute(pstubmsg), core::mem::transmute(pstubdescriptor), procnum) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -660,7 +660,7 @@ pub unsafe fn NdrComplexArrayMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pforma #[inline] pub unsafe fn NdrComplexArrayUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrComplexArrayUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrComplexArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrComplexArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -690,7 +690,7 @@ pub unsafe fn NdrComplexStructMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pform #[inline] pub unsafe fn NdrComplexStructUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrComplexStructUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrComplexStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrComplexStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -720,7 +720,7 @@ pub unsafe fn NdrConformantArrayMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pfo #[inline] pub unsafe fn NdrConformantArrayUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrConformantArrayUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrConformantArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrConformantArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -744,7 +744,7 @@ pub unsafe fn NdrConformantStringMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pf #[inline] pub unsafe fn NdrConformantStringUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrConformantStringUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrConformantStringUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrConformantStringUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -774,7 +774,7 @@ pub unsafe fn NdrConformantStructMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pf #[inline] pub unsafe fn NdrConformantStructUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrConformantStructUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrConformantStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrConformantStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -804,7 +804,7 @@ pub unsafe fn NdrConformantVaryingArrayMemorySize(pstubmsg: *mut MIDL_STUB_MESSA #[inline] pub unsafe fn NdrConformantVaryingArrayUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrConformantVaryingArrayUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrConformantVaryingArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrConformantVaryingArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -834,13 +834,13 @@ pub unsafe fn NdrConformantVaryingStructMemorySize(pstubmsg: *mut MIDL_STUB_MESS #[inline] pub unsafe fn NdrConformantVaryingStructUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrConformantVaryingStructUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrConformantVaryingStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrConformantVaryingStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrContextHandleInitialize(pstubmsg: *const MIDL_STUB_MESSAGE, pformat: *const u8) -> *mut NDR_SCONTEXT { windows_targets::link!("rpcrt4.dll" "system" fn NdrContextHandleInitialize(pstubmsg : *const MIDL_STUB_MESSAGE, pformat : *const u8) -> *mut NDR_SCONTEXT); - NdrContextHandleInitialize(core::mem::transmute(pstubmsg), core::mem::transmute(pformat)) + NdrContextHandleInitialize(core::mem::transmute(pstubmsg), pformat) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -858,7 +858,7 @@ pub unsafe fn NdrConvert(pstubmsg: *mut MIDL_STUB_MESSAGE, pformat: *mut u8) { #[inline] pub unsafe fn NdrConvert2(pstubmsg: *mut MIDL_STUB_MESSAGE, pformat: *mut u8, numberparams: i32) { windows_targets::link!("rpcrt4.dll" "system" fn NdrConvert2(pstubmsg : *mut MIDL_STUB_MESSAGE, pformat : *mut u8, numberparams : i32)); - NdrConvert2(core::mem::transmute(pstubmsg), core::mem::transmute(pformat), core::mem::transmute(numberparams)) + NdrConvert2(core::mem::transmute(pstubmsg), core::mem::transmute(pformat), numberparams) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -870,7 +870,7 @@ pub unsafe fn NdrCorrelationFree(pstubmsg: *mut MIDL_STUB_MESSAGE) { #[inline] pub unsafe fn NdrCorrelationInitialize(pstubmsg: *mut MIDL_STUB_MESSAGE, pmemory: *mut core::ffi::c_void, cachesize: u32, flags: u32) { windows_targets::link!("rpcrt4.dll" "system" fn NdrCorrelationInitialize(pstubmsg : *mut MIDL_STUB_MESSAGE, pmemory : *mut core::ffi::c_void, cachesize : u32, flags : u32)); - NdrCorrelationInitialize(core::mem::transmute(pstubmsg), core::mem::transmute(pmemory), core::mem::transmute(cachesize), core::mem::transmute(flags)) + NdrCorrelationInitialize(core::mem::transmute(pstubmsg), core::mem::transmute(pmemory), cachesize, flags) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -931,7 +931,7 @@ pub unsafe fn NdrEncapsulatedUnionMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, p #[inline] pub unsafe fn NdrEncapsulatedUnionUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrEncapsulatedUnionUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrEncapsulatedUnionUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrEncapsulatedUnionUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -961,7 +961,7 @@ pub unsafe fn NdrFixedArrayMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pformat: #[inline] pub unsafe fn NdrFixedArrayUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrFixedArrayUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrFixedArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrFixedArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -977,13 +977,13 @@ pub unsafe fn NdrFullPointerXlatFree(pxlattables: *mut FULL_PTR_XLAT_TABLES) { #[inline] pub unsafe fn NdrFullPointerXlatInit(numberofpointers: u32, xlatside: XLAT_SIDE) -> *mut FULL_PTR_XLAT_TABLES { windows_targets::link!("rpcrt4.dll" "system" fn NdrFullPointerXlatInit(numberofpointers : u32, xlatside : XLAT_SIDE) -> *mut FULL_PTR_XLAT_TABLES); - NdrFullPointerXlatInit(core::mem::transmute(numberofpointers), core::mem::transmute(xlatside)) + NdrFullPointerXlatInit(numberofpointers, xlatside) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrGetBuffer(pstubmsg: *mut MIDL_STUB_MESSAGE, bufferlength: u32, handle: *mut core::ffi::c_void) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrGetBuffer(pstubmsg : *mut MIDL_STUB_MESSAGE, bufferlength : u32, handle : *mut core::ffi::c_void) -> *mut u8); - NdrGetBuffer(core::mem::transmute(pstubmsg), core::mem::transmute(bufferlength), core::mem::transmute(handle)) + NdrGetBuffer(core::mem::transmute(pstubmsg), bufferlength, core::mem::transmute(handle)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -995,7 +995,7 @@ pub unsafe fn NdrGetDcomProtocolVersion(pstubmsg: *mut MIDL_STUB_MESSAGE, pversi #[inline] pub unsafe fn NdrGetUserMarshalInfo(pflags: *const u32, informationlevel: u32, pmarshalinfo: *mut NDR_USER_MARSHAL_INFO) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn NdrGetUserMarshalInfo(pflags : *const u32, informationlevel : u32, pmarshalinfo : *mut NDR_USER_MARSHAL_INFO) -> RPC_STATUS); - NdrGetUserMarshalInfo(core::mem::transmute(pflags), core::mem::transmute(informationlevel), core::mem::transmute(pmarshalinfo)) + NdrGetUserMarshalInfo(pflags, informationlevel, core::mem::transmute(pmarshalinfo)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1025,31 +1025,31 @@ pub unsafe fn NdrInterfacePointerMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pf #[inline] pub unsafe fn NdrInterfacePointerUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrInterfacePointerUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrInterfacePointerUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrInterfacePointerUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMapCommAndFaultStatus(pstubmsg: *mut MIDL_STUB_MESSAGE, pcommstatus: *mut u32, pfaultstatus: *mut u32, status: RPC_STATUS) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn NdrMapCommAndFaultStatus(pstubmsg : *mut MIDL_STUB_MESSAGE, pcommstatus : *mut u32, pfaultstatus : *mut u32, status : RPC_STATUS) -> RPC_STATUS); - NdrMapCommAndFaultStatus(core::mem::transmute(pstubmsg), core::mem::transmute(pcommstatus), core::mem::transmute(pfaultstatus), core::mem::transmute(status)) + NdrMapCommAndFaultStatus(core::mem::transmute(pstubmsg), core::mem::transmute(pcommstatus), core::mem::transmute(pfaultstatus), status) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesProcEncodeDecode(handle: *mut core::ffi::c_void, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8) { windows_targets::link!("rpcrt4.dll" "cdecl" fn NdrMesProcEncodeDecode(handle : *mut core::ffi::c_void, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8)); - NdrMesProcEncodeDecode(core::mem::transmute(handle), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring)) + NdrMesProcEncodeDecode(core::mem::transmute(handle), pstubdesc, core::mem::transmute(pformatstring)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesProcEncodeDecode2(handle: *mut core::ffi::c_void, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8) -> CLIENT_CALL_RETURN { windows_targets::link!("rpcrt4.dll" "cdecl" fn NdrMesProcEncodeDecode2(handle : *mut core::ffi::c_void, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8) -> CLIENT_CALL_RETURN); - NdrMesProcEncodeDecode2(core::mem::transmute(handle), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring)) + NdrMesProcEncodeDecode2(core::mem::transmute(handle), pstubdesc, core::mem::transmute(pformatstring)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesProcEncodeDecode3(handle: *mut core::ffi::c_void, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, nprocnum: u32, preturnvalue: *mut core::ffi::c_void) -> CLIENT_CALL_RETURN { windows_targets::link!("rpcrt4.dll" "cdecl" fn NdrMesProcEncodeDecode3(handle : *mut core::ffi::c_void, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, nprocnum : u32, preturnvalue : *mut core::ffi::c_void) -> CLIENT_CALL_RETURN); - NdrMesProcEncodeDecode3(core::mem::transmute(handle), core::mem::transmute(pproxyinfo), core::mem::transmute(nprocnum), core::mem::transmute(preturnvalue)) + NdrMesProcEncodeDecode3(core::mem::transmute(handle), pproxyinfo, nprocnum, core::mem::transmute(preturnvalue)) } #[inline] pub unsafe fn NdrMesSimpleTypeAlignSize(param0: *mut core::ffi::c_void) -> usize { @@ -1060,96 +1060,96 @@ pub unsafe fn NdrMesSimpleTypeAlignSize(param0: *mut core::ffi::c_void) -> usize #[inline] pub unsafe fn NdrMesSimpleTypeAlignSizeAll(handle: *mut core::ffi::c_void, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO) -> usize { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesSimpleTypeAlignSizeAll(handle : *mut core::ffi::c_void, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO) -> usize); - NdrMesSimpleTypeAlignSizeAll(core::mem::transmute(handle), core::mem::transmute(pproxyinfo)) + NdrMesSimpleTypeAlignSizeAll(core::mem::transmute(handle), pproxyinfo) } #[inline] pub unsafe fn NdrMesSimpleTypeDecode(handle: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, size: i16) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesSimpleTypeDecode(handle : *mut core::ffi::c_void, pobject : *mut core::ffi::c_void, size : i16)); - NdrMesSimpleTypeDecode(core::mem::transmute(handle), core::mem::transmute(pobject), core::mem::transmute(size)) + NdrMesSimpleTypeDecode(core::mem::transmute(handle), core::mem::transmute(pobject), size) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesSimpleTypeDecodeAll(handle: *mut core::ffi::c_void, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, pobject: *mut core::ffi::c_void, size: i16) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesSimpleTypeDecodeAll(handle : *mut core::ffi::c_void, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, pobject : *mut core::ffi::c_void, size : i16)); - NdrMesSimpleTypeDecodeAll(core::mem::transmute(handle), core::mem::transmute(pproxyinfo), core::mem::transmute(pobject), core::mem::transmute(size)) + NdrMesSimpleTypeDecodeAll(core::mem::transmute(handle), pproxyinfo, core::mem::transmute(pobject), size) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesSimpleTypeEncode(handle: *mut core::ffi::c_void, pstubdesc: *const MIDL_STUB_DESC, pobject: *const core::ffi::c_void, size: i16) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesSimpleTypeEncode(handle : *mut core::ffi::c_void, pstubdesc : *const MIDL_STUB_DESC, pobject : *const core::ffi::c_void, size : i16)); - NdrMesSimpleTypeEncode(core::mem::transmute(handle), core::mem::transmute(pstubdesc), core::mem::transmute(pobject), core::mem::transmute(size)) + NdrMesSimpleTypeEncode(core::mem::transmute(handle), pstubdesc, pobject, size) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesSimpleTypeEncodeAll(handle: *mut core::ffi::c_void, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, pobject: *const core::ffi::c_void, size: i16) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesSimpleTypeEncodeAll(handle : *mut core::ffi::c_void, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, pobject : *const core::ffi::c_void, size : i16)); - NdrMesSimpleTypeEncodeAll(core::mem::transmute(handle), core::mem::transmute(pproxyinfo), core::mem::transmute(pobject), core::mem::transmute(size)) + NdrMesSimpleTypeEncodeAll(core::mem::transmute(handle), pproxyinfo, pobject, size) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeAlignSize(handle: *mut core::ffi::c_void, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *const core::ffi::c_void) -> usize { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeAlignSize(handle : *mut core::ffi::c_void, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *const core::ffi::c_void) -> usize); - NdrMesTypeAlignSize(core::mem::transmute(handle), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeAlignSize(core::mem::transmute(handle), pstubdesc, core::mem::transmute(pformatstring), pobject) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeAlignSize2(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *const core::ffi::c_void) -> usize { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeAlignSize2(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *const core::ffi::c_void) -> usize); - NdrMesTypeAlignSize2(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeAlignSize2(core::mem::transmute(handle), ppicklinginfo, pstubdesc, core::mem::transmute(pformatstring), pobject) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeAlignSize3(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset: *const *const u32, ntypeindex: u32, pobject: *const core::ffi::c_void) -> usize { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeAlignSize3(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset : *const *const u32, ntypeindex : u32, pobject : *const core::ffi::c_void) -> usize); - NdrMesTypeAlignSize3(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pproxyinfo), core::mem::transmute(arrtypeoffset), core::mem::transmute(ntypeindex), core::mem::transmute(pobject)) + NdrMesTypeAlignSize3(core::mem::transmute(handle), ppicklinginfo, pproxyinfo, arrtypeoffset, ntypeindex, pobject) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeDecode(handle: *mut core::ffi::c_void, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *mut core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeDecode(handle : *mut core::ffi::c_void, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *mut core::ffi::c_void)); - NdrMesTypeDecode(core::mem::transmute(handle), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeDecode(core::mem::transmute(handle), pstubdesc, core::mem::transmute(pformatstring), core::mem::transmute(pobject)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeDecode2(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *mut core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeDecode2(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *mut core::ffi::c_void)); - NdrMesTypeDecode2(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeDecode2(core::mem::transmute(handle), ppicklinginfo, pstubdesc, core::mem::transmute(pformatstring), core::mem::transmute(pobject)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeDecode3(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset: *const *const u32, ntypeindex: u32, pobject: *mut core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeDecode3(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset : *const *const u32, ntypeindex : u32, pobject : *mut core::ffi::c_void)); - NdrMesTypeDecode3(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pproxyinfo), core::mem::transmute(arrtypeoffset), core::mem::transmute(ntypeindex), core::mem::transmute(pobject)) + NdrMesTypeDecode3(core::mem::transmute(handle), ppicklinginfo, pproxyinfo, arrtypeoffset, ntypeindex, core::mem::transmute(pobject)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeEncode(handle: *mut core::ffi::c_void, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeEncode(handle : *mut core::ffi::c_void, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *const core::ffi::c_void)); - NdrMesTypeEncode(core::mem::transmute(handle), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeEncode(core::mem::transmute(handle), pstubdesc, core::mem::transmute(pformatstring), pobject) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeEncode2(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeEncode2(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *const core::ffi::c_void)); - NdrMesTypeEncode2(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeEncode2(core::mem::transmute(handle), ppicklinginfo, pstubdesc, core::mem::transmute(pformatstring), pobject) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeEncode3(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset: *const *const u32, ntypeindex: u32, pobject: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeEncode3(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset : *const *const u32, ntypeindex : u32, pobject : *const core::ffi::c_void)); - NdrMesTypeEncode3(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pproxyinfo), core::mem::transmute(arrtypeoffset), core::mem::transmute(ntypeindex), core::mem::transmute(pobject)) + NdrMesTypeEncode3(core::mem::transmute(handle), ppicklinginfo, pproxyinfo, arrtypeoffset, ntypeindex, pobject) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeFree2(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pstubdesc: *const MIDL_STUB_DESC, pformatstring: *mut u8, pobject: *mut core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeFree2(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pstubdesc : *const MIDL_STUB_DESC, pformatstring : *mut u8, pobject : *mut core::ffi::c_void)); - NdrMesTypeFree2(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pstubdesc), core::mem::transmute(pformatstring), core::mem::transmute(pobject)) + NdrMesTypeFree2(core::mem::transmute(handle), ppicklinginfo, pstubdesc, core::mem::transmute(pformatstring), core::mem::transmute(pobject)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrMesTypeFree3(handle: *mut core::ffi::c_void, ppicklinginfo: *const MIDL_TYPE_PICKLING_INFO, pproxyinfo: *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset: *const *const u32, ntypeindex: u32, pobject: *mut core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrMesTypeFree3(handle : *mut core::ffi::c_void, ppicklinginfo : *const MIDL_TYPE_PICKLING_INFO, pproxyinfo : *const MIDL_STUBLESS_PROXY_INFO, arrtypeoffset : *const *const u32, ntypeindex : u32, pobject : *mut core::ffi::c_void)); - NdrMesTypeFree3(core::mem::transmute(handle), core::mem::transmute(ppicklinginfo), core::mem::transmute(pproxyinfo), core::mem::transmute(arrtypeoffset), core::mem::transmute(ntypeindex), core::mem::transmute(pobject)) + NdrMesTypeFree3(core::mem::transmute(handle), ppicklinginfo, pproxyinfo, arrtypeoffset, ntypeindex, core::mem::transmute(pobject)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1173,7 +1173,7 @@ pub unsafe fn NdrNonConformantStringMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, #[inline] pub unsafe fn NdrNonConformantStringUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrNonConformantStringUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrNonConformantStringUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrNonConformantStringUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1203,13 +1203,13 @@ pub unsafe fn NdrNonEncapsulatedUnionMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE #[inline] pub unsafe fn NdrNonEncapsulatedUnionUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrNonEncapsulatedUnionUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrNonEncapsulatedUnionUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrNonEncapsulatedUnionUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrNsGetBuffer(pstubmsg: *mut MIDL_STUB_MESSAGE, bufferlength: u32, handle: *mut core::ffi::c_void) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrNsGetBuffer(pstubmsg : *mut MIDL_STUB_MESSAGE, bufferlength : u32, handle : *mut core::ffi::c_void) -> *mut u8); - NdrNsGetBuffer(core::mem::transmute(pstubmsg), core::mem::transmute(bufferlength), core::mem::transmute(handle)) + NdrNsGetBuffer(core::mem::transmute(pstubmsg), bufferlength, core::mem::transmute(handle)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1220,12 +1220,12 @@ pub unsafe fn NdrNsSendReceive(pstubmsg: *mut MIDL_STUB_MESSAGE, pbufferend: *mu #[inline] pub unsafe fn NdrOleAllocate(size: usize) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn NdrOleAllocate(size : usize) -> *mut core::ffi::c_void); - NdrOleAllocate(core::mem::transmute(size)) + NdrOleAllocate(size) } #[inline] pub unsafe fn NdrOleFree(nodetofree: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrOleFree(nodetofree : *const core::ffi::c_void)); - NdrOleFree(core::mem::transmute(nodetofree)) + NdrOleFree(nodetofree) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1279,23 +1279,23 @@ pub unsafe fn NdrPointerMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pformat: *m #[inline] pub unsafe fn NdrPointerUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrPointerUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrPointerUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrPointerUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrRangeUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrRangeUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrRangeUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrRangeUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[inline] pub unsafe fn NdrRpcSmClientAllocate(size: usize) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn NdrRpcSmClientAllocate(size : usize) -> *mut core::ffi::c_void); - NdrRpcSmClientAllocate(core::mem::transmute(size)) + NdrRpcSmClientAllocate(size) } #[inline] pub unsafe fn NdrRpcSmClientFree(nodetofree: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrRpcSmClientFree(nodetofree : *const core::ffi::c_void)); - NdrRpcSmClientFree(core::mem::transmute(nodetofree)) + NdrRpcSmClientFree(nodetofree) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1306,12 +1306,12 @@ pub unsafe fn NdrRpcSmSetClientToOsf(pmessage: *mut MIDL_STUB_MESSAGE) { #[inline] pub unsafe fn NdrRpcSsDefaultAllocate(size: usize) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn NdrRpcSsDefaultAllocate(size : usize) -> *mut core::ffi::c_void); - NdrRpcSsDefaultAllocate(core::mem::transmute(size)) + NdrRpcSsDefaultAllocate(size) } #[inline] pub unsafe fn NdrRpcSsDefaultFree(nodetofree: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn NdrRpcSsDefaultFree(nodetofree : *const core::ffi::c_void)); - NdrRpcSsDefaultFree(core::mem::transmute(nodetofree)) + NdrRpcSsDefaultFree(nodetofree) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1350,19 +1350,19 @@ pub unsafe fn NdrServerCallNdr64(prpcmsg: *mut RPC_MESSAGE) { #[inline] pub unsafe fn NdrServerContextMarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, contexthandle: *mut NDR_SCONTEXT, rundownroutine: NDR_RUNDOWN) { windows_targets::link!("rpcrt4.dll" "system" fn NdrServerContextMarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, contexthandle : *mut NDR_SCONTEXT, rundownroutine : NDR_RUNDOWN)); - NdrServerContextMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(contexthandle), core::mem::transmute(rundownroutine)) + NdrServerContextMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(contexthandle), rundownroutine) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrServerContextNewMarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, contexthandle: *mut NDR_SCONTEXT, rundownroutine: NDR_RUNDOWN, pformat: *mut u8) { windows_targets::link!("rpcrt4.dll" "system" fn NdrServerContextNewMarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, contexthandle : *mut NDR_SCONTEXT, rundownroutine : NDR_RUNDOWN, pformat : *mut u8)); - NdrServerContextNewMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(contexthandle), core::mem::transmute(rundownroutine), core::mem::transmute(pformat)) + NdrServerContextNewMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(contexthandle), rundownroutine, core::mem::transmute(pformat)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrServerContextNewUnmarshall(pstubmsg: *const MIDL_STUB_MESSAGE, pformat: *const u8) -> *mut NDR_SCONTEXT { windows_targets::link!("rpcrt4.dll" "system" fn NdrServerContextNewUnmarshall(pstubmsg : *const MIDL_STUB_MESSAGE, pformat : *const u8) -> *mut NDR_SCONTEXT); - NdrServerContextNewUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(pformat)) + NdrServerContextNewUnmarshall(core::mem::transmute(pstubmsg), pformat) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1392,7 +1392,7 @@ pub unsafe fn NdrServerInitializeNew(prpcmsg: *mut RPC_MESSAGE, pstubmsg: *mut M #[inline] pub unsafe fn NdrServerInitializePartial(prpcmsg: *mut RPC_MESSAGE, pstubmsg: *mut MIDL_STUB_MESSAGE, pstubdescriptor: *mut MIDL_STUB_DESC, requestedbuffersize: u32) { windows_targets::link!("rpcrt4.dll" "system" fn NdrServerInitializePartial(prpcmsg : *mut RPC_MESSAGE, pstubmsg : *mut MIDL_STUB_MESSAGE, pstubdescriptor : *mut MIDL_STUB_DESC, requestedbuffersize : u32)); - NdrServerInitializePartial(core::mem::transmute(prpcmsg), core::mem::transmute(pstubmsg), core::mem::transmute(pstubdescriptor), core::mem::transmute(requestedbuffersize)) + NdrServerInitializePartial(core::mem::transmute(prpcmsg), core::mem::transmute(pstubmsg), core::mem::transmute(pstubdescriptor), requestedbuffersize) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1428,19 +1428,19 @@ pub unsafe fn NdrSimpleStructMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pforma #[inline] pub unsafe fn NdrSimpleStructUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrSimpleStructUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrSimpleStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrSimpleStructUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrSimpleTypeMarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, pmemory: *mut u8, formatchar: u8) { windows_targets::link!("rpcrt4.dll" "system" fn NdrSimpleTypeMarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, pmemory : *mut u8, formatchar : u8)); - NdrSimpleTypeMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(pmemory), core::mem::transmute(formatchar)) + NdrSimpleTypeMarshall(core::mem::transmute(pstubmsg), core::mem::transmute(pmemory), formatchar) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrSimpleTypeUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, pmemory: *mut u8, formatchar: u8) { windows_targets::link!("rpcrt4.dll" "system" fn NdrSimpleTypeUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, pmemory : *mut u8, formatchar : u8)); - NdrSimpleTypeUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(pmemory), core::mem::transmute(formatchar)) + NdrSimpleTypeUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(pmemory), formatchar) } #[inline] pub unsafe fn NdrStubCall2(pthis: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, prpcmsg: *mut RPC_MESSAGE, pdwstubphase: *mut u32) -> i32 { @@ -1479,13 +1479,13 @@ pub unsafe fn NdrUserMarshalMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pformat #[inline] pub unsafe fn NdrUserMarshalSimpleTypeConvert(pflags: *mut u32, pbuffer: *mut u8, formatchar: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrUserMarshalSimpleTypeConvert(pflags : *mut u32, pbuffer : *mut u8, formatchar : u8) -> *mut u8); - NdrUserMarshalSimpleTypeConvert(core::mem::transmute(pflags), core::mem::transmute(pbuffer), core::mem::transmute(formatchar)) + NdrUserMarshalSimpleTypeConvert(core::mem::transmute(pflags), core::mem::transmute(pbuffer), formatchar) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn NdrUserMarshalUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrUserMarshalUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrUserMarshalUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrUserMarshalUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1515,7 +1515,7 @@ pub unsafe fn NdrVaryingArrayMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pforma #[inline] pub unsafe fn NdrVaryingArrayUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrVaryingArrayUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrVaryingArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrVaryingArrayUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1545,13 +1545,13 @@ pub unsafe fn NdrXmitOrRepAsMemorySize(pstubmsg: *mut MIDL_STUB_MESSAGE, pformat #[inline] pub unsafe fn NdrXmitOrRepAsUnmarshall(pstubmsg: *mut MIDL_STUB_MESSAGE, ppmemory: *mut *mut u8, pformat: *mut u8, fmustalloc: u8) -> *mut u8 { windows_targets::link!("rpcrt4.dll" "system" fn NdrXmitOrRepAsUnmarshall(pstubmsg : *mut MIDL_STUB_MESSAGE, ppmemory : *mut *mut u8, pformat : *mut u8, fmustalloc : u8) -> *mut u8); - NdrXmitOrRepAsUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), core::mem::transmute(fmustalloc)) + NdrXmitOrRepAsUnmarshall(core::mem::transmute(pstubmsg), core::mem::transmute(ppmemory), core::mem::transmute(pformat), fmustalloc) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RpcAsyncAbortCall(pasync: *mut RPC_ASYNC_STATE, exceptioncode: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncAbortCall(pasync : *mut RPC_ASYNC_STATE, exceptioncode : u32) -> RPC_STATUS); - RpcAsyncAbortCall(core::mem::transmute(pasync), core::mem::transmute(exceptioncode)) + RpcAsyncAbortCall(core::mem::transmute(pasync), exceptioncode) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -1569,42 +1569,42 @@ pub unsafe fn RpcAsyncCompleteCall(pasync: *mut RPC_ASYNC_STATE, reply: Option<* #[inline] pub unsafe fn RpcAsyncGetCallStatus(pasync: *const RPC_ASYNC_STATE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncGetCallStatus(pasync : *const RPC_ASYNC_STATE) -> RPC_STATUS); - RpcAsyncGetCallStatus(core::mem::transmute(pasync)) + RpcAsyncGetCallStatus(pasync) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RpcAsyncInitializeHandle(pasync: *mut RPC_ASYNC_STATE, size: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncInitializeHandle(pasync : *mut RPC_ASYNC_STATE, size : u32) -> RPC_STATUS); - RpcAsyncInitializeHandle(core::mem::transmute(pasync), core::mem::transmute(size)) + RpcAsyncInitializeHandle(core::mem::transmute(pasync), size) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RpcAsyncRegisterInfo(pasync: *const RPC_ASYNC_STATE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncRegisterInfo(pasync : *const RPC_ASYNC_STATE) -> RPC_STATUS); - RpcAsyncRegisterInfo(core::mem::transmute(pasync)) + RpcAsyncRegisterInfo(pasync) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RpcBindingBind(pasync: Option<*const RPC_ASYNC_STATE>, binding: *const core::ffi::c_void, ifspec: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingBind(pasync : *const RPC_ASYNC_STATE, binding : *const core::ffi::c_void, ifspec : *const core::ffi::c_void) -> RPC_STATUS); - RpcBindingBind(core::mem::transmute(pasync.unwrap_or(core::mem::zeroed())), core::mem::transmute(binding), core::mem::transmute(ifspec)) + RpcBindingBind(core::mem::transmute(pasync.unwrap_or(core::mem::zeroed())), binding, ifspec) } #[inline] pub unsafe fn RpcBindingCopy(sourcebinding: *const core::ffi::c_void, destinationbinding: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingCopy(sourcebinding : *const core::ffi::c_void, destinationbinding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcBindingCopy(core::mem::transmute(sourcebinding), core::mem::transmute(destinationbinding)) + RpcBindingCopy(sourcebinding, core::mem::transmute(destinationbinding)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RpcBindingCreateA(template: *const RPC_BINDING_HANDLE_TEMPLATE_V1_A, security: Option<*const RPC_BINDING_HANDLE_SECURITY_V1_A>, options: Option<*const RPC_BINDING_HANDLE_OPTIONS_V1>, binding: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingCreateA(template : *const RPC_BINDING_HANDLE_TEMPLATE_V1_A, security : *const RPC_BINDING_HANDLE_SECURITY_V1_A, options : *const RPC_BINDING_HANDLE_OPTIONS_V1, binding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcBindingCreateA(core::mem::transmute(template), core::mem::transmute(security.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(binding)) + RpcBindingCreateA(template, core::mem::transmute(security.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(binding)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RpcBindingCreateW(template: *const RPC_BINDING_HANDLE_TEMPLATE_V1_W, security: Option<*const RPC_BINDING_HANDLE_SECURITY_V1_W>, options: Option<*const RPC_BINDING_HANDLE_OPTIONS_V1>, binding: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingCreateW(template : *const RPC_BINDING_HANDLE_TEMPLATE_V1_W, security : *const RPC_BINDING_HANDLE_SECURITY_V1_W, options : *const RPC_BINDING_HANDLE_OPTIONS_V1, binding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcBindingCreateW(core::mem::transmute(template), core::mem::transmute(security.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(binding)) + RpcBindingCreateW(template, core::mem::transmute(security.unwrap_or(core::mem::zeroed())), core::mem::transmute(options.unwrap_or(core::mem::zeroed())), core::mem::transmute(binding)) } #[inline] pub unsafe fn RpcBindingFree(binding: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -1635,12 +1635,12 @@ pub unsafe fn RpcBindingInqAuthClientA(clientbinding: Option<*const core::ffi::c #[inline] pub unsafe fn RpcBindingInqAuthClientExA(clientbinding: Option<*const core::ffi::c_void>, privs: *mut *mut core::ffi::c_void, serverprincname: Option<*mut windows_core::PSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authzsvc: Option<*mut u32>, flags: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqAuthClientExA(clientbinding : *const core::ffi::c_void, privs : *mut *mut core::ffi::c_void, serverprincname : *mut windows_core::PSTR, authnlevel : *mut u32, authnsvc : *mut u32, authzsvc : *mut u32, flags : u32) -> RPC_STATUS); - RpcBindingInqAuthClientExA(core::mem::transmute(clientbinding.unwrap_or(core::mem::zeroed())), core::mem::transmute(privs), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + RpcBindingInqAuthClientExA(core::mem::transmute(clientbinding.unwrap_or(core::mem::zeroed())), core::mem::transmute(privs), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn RpcBindingInqAuthClientExW(clientbinding: Option<*const core::ffi::c_void>, privs: *mut *mut core::ffi::c_void, serverprincname: Option<*mut windows_core::PWSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authzsvc: Option<*mut u32>, flags: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqAuthClientExW(clientbinding : *const core::ffi::c_void, privs : *mut *mut core::ffi::c_void, serverprincname : *mut windows_core::PWSTR, authnlevel : *mut u32, authnsvc : *mut u32, authzsvc : *mut u32, flags : u32) -> RPC_STATUS); - RpcBindingInqAuthClientExW(core::mem::transmute(clientbinding.unwrap_or(core::mem::zeroed())), core::mem::transmute(privs), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + RpcBindingInqAuthClientExW(core::mem::transmute(clientbinding.unwrap_or(core::mem::zeroed())), core::mem::transmute(privs), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn RpcBindingInqAuthClientW(clientbinding: Option<*const core::ffi::c_void>, privs: *mut *mut core::ffi::c_void, serverprincname: Option<*mut windows_core::PWSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authzsvc: Option<*mut u32>) -> RPC_STATUS { @@ -1650,44 +1650,44 @@ pub unsafe fn RpcBindingInqAuthClientW(clientbinding: Option<*const core::ffi::c #[inline] pub unsafe fn RpcBindingInqAuthInfoA(binding: *const core::ffi::c_void, serverprincname: Option<*mut windows_core::PSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authidentity: Option<*mut *mut core::ffi::c_void>, authzsvc: Option<*mut u32>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqAuthInfoA(binding : *const core::ffi::c_void, serverprincname : *mut windows_core::PSTR, authnlevel : *mut u32, authnsvc : *mut u32, authidentity : *mut *mut core::ffi::c_void, authzsvc : *mut u32) -> RPC_STATUS); - RpcBindingInqAuthInfoA(core::mem::transmute(binding), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed()))) + RpcBindingInqAuthInfoA(binding, core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RpcBindingInqAuthInfoExA(binding: *const core::ffi::c_void, serverprincname: Option<*mut windows_core::PSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authidentity: Option<*mut *mut core::ffi::c_void>, authzsvc: Option<*mut u32>, rpcqosversion: u32, securityqos: Option<*mut RPC_SECURITY_QOS>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqAuthInfoExA(binding : *const core::ffi::c_void, serverprincname : *mut windows_core::PSTR, authnlevel : *mut u32, authnsvc : *mut u32, authidentity : *mut *mut core::ffi::c_void, authzsvc : *mut u32, rpcqosversion : u32, securityqos : *mut RPC_SECURITY_QOS) -> RPC_STATUS); - RpcBindingInqAuthInfoExA(core::mem::transmute(binding), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(rpcqosversion), core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) + RpcBindingInqAuthInfoExA(binding, core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), rpcqosversion, core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RpcBindingInqAuthInfoExW(binding: *const core::ffi::c_void, serverprincname: Option<*mut windows_core::PWSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authidentity: Option<*mut *mut core::ffi::c_void>, authzsvc: Option<*mut u32>, rpcqosversion: u32, securityqos: Option<*mut RPC_SECURITY_QOS>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqAuthInfoExW(binding : *const core::ffi::c_void, serverprincname : *mut windows_core::PWSTR, authnlevel : *mut u32, authnsvc : *mut u32, authidentity : *mut *mut core::ffi::c_void, authzsvc : *mut u32, rpcqosversion : u32, securityqos : *mut RPC_SECURITY_QOS) -> RPC_STATUS); - RpcBindingInqAuthInfoExW(core::mem::transmute(binding), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(rpcqosversion), core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) + RpcBindingInqAuthInfoExW(binding, core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed())), rpcqosversion, core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcBindingInqAuthInfoW(binding: *const core::ffi::c_void, serverprincname: Option<*mut windows_core::PWSTR>, authnlevel: Option<*mut u32>, authnsvc: Option<*mut u32>, authidentity: Option<*mut *mut core::ffi::c_void>, authzsvc: Option<*mut u32>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqAuthInfoW(binding : *const core::ffi::c_void, serverprincname : *mut windows_core::PWSTR, authnlevel : *mut u32, authnsvc : *mut u32, authidentity : *mut *mut core::ffi::c_void, authzsvc : *mut u32) -> RPC_STATUS); - RpcBindingInqAuthInfoW(core::mem::transmute(binding), core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed()))) + RpcBindingInqAuthInfoW(binding, core::mem::transmute(serverprincname.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnlevel.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcBindingInqMaxCalls(binding: *const core::ffi::c_void, maxcalls: *mut u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqMaxCalls(binding : *const core::ffi::c_void, maxcalls : *mut u32) -> RPC_STATUS); - RpcBindingInqMaxCalls(core::mem::transmute(binding), core::mem::transmute(maxcalls)) + RpcBindingInqMaxCalls(binding, core::mem::transmute(maxcalls)) } #[inline] pub unsafe fn RpcBindingInqObject(binding: *const core::ffi::c_void, objectuuid: *mut windows_core::GUID) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqObject(binding : *const core::ffi::c_void, objectuuid : *mut windows_core::GUID) -> RPC_STATUS); - RpcBindingInqObject(core::mem::transmute(binding), core::mem::transmute(objectuuid)) + RpcBindingInqObject(binding, core::mem::transmute(objectuuid)) } #[inline] pub unsafe fn RpcBindingInqOption(hbinding: *const core::ffi::c_void, option: u32, poptionvalue: *mut usize) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingInqOption(hbinding : *const core::ffi::c_void, option : u32, poptionvalue : *mut usize) -> RPC_STATUS); - RpcBindingInqOption(core::mem::transmute(hbinding), core::mem::transmute(option), core::mem::transmute(poptionvalue)) + RpcBindingInqOption(hbinding, option, core::mem::transmute(poptionvalue)) } #[inline] pub unsafe fn RpcBindingReset(binding: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingReset(binding : *const core::ffi::c_void) -> RPC_STATUS); - RpcBindingReset(core::mem::transmute(binding)) + RpcBindingReset(binding) } #[inline] pub unsafe fn RpcBindingServerFromClient(clientbinding: Option<*const core::ffi::c_void>, serverbinding: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -1700,7 +1700,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingSetAuthInfoA(binding : *const core::ffi::c_void, serverprincname : windows_core::PCSTR, authnlevel : u32, authnsvc : u32, authidentity : *const core::ffi::c_void, authzsvc : u32) -> RPC_STATUS); - RpcBindingSetAuthInfoA(core::mem::transmute(binding), serverprincname.param().abi(), core::mem::transmute(authnlevel), core::mem::transmute(authnsvc), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc)) + RpcBindingSetAuthInfoA(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), authzsvc) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1709,7 +1709,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingSetAuthInfoExA(binding : *const core::ffi::c_void, serverprincname : windows_core::PCSTR, authnlevel : u32, authnsvc : u32, authidentity : *const core::ffi::c_void, authzsvc : u32, securityqos : *const RPC_SECURITY_QOS) -> RPC_STATUS); - RpcBindingSetAuthInfoExA(core::mem::transmute(binding), serverprincname.param().abi(), core::mem::transmute(authnlevel), core::mem::transmute(authnsvc), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc), core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) + RpcBindingSetAuthInfoExA(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), authzsvc, core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1718,7 +1718,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingSetAuthInfoExW(binding : *const core::ffi::c_void, serverprincname : windows_core::PCWSTR, authnlevel : u32, authnsvc : u32, authidentity : *const core::ffi::c_void, authzsvc : u32, securityqos : *const RPC_SECURITY_QOS) -> RPC_STATUS); - RpcBindingSetAuthInfoExW(core::mem::transmute(binding), serverprincname.param().abi(), core::mem::transmute(authnlevel), core::mem::transmute(authnsvc), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc), core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) + RpcBindingSetAuthInfoExW(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), authzsvc, core::mem::transmute(securityqos.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcBindingSetAuthInfoW(binding: *const core::ffi::c_void, serverprincname: P1, authnlevel: u32, authnsvc: u32, authidentity: Option<*const core::ffi::c_void>, authzsvc: u32) -> RPC_STATUS @@ -1726,32 +1726,32 @@ where P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingSetAuthInfoW(binding : *const core::ffi::c_void, serverprincname : windows_core::PCWSTR, authnlevel : u32, authnsvc : u32, authidentity : *const core::ffi::c_void, authzsvc : u32) -> RPC_STATUS); - RpcBindingSetAuthInfoW(core::mem::transmute(binding), serverprincname.param().abi(), core::mem::transmute(authnlevel), core::mem::transmute(authnsvc), core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), core::mem::transmute(authzsvc)) + RpcBindingSetAuthInfoW(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(core::mem::zeroed())), authzsvc) } #[inline] pub unsafe fn RpcBindingSetObject(binding: *const core::ffi::c_void, objectuuid: *const windows_core::GUID) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingSetObject(binding : *const core::ffi::c_void, objectuuid : *const windows_core::GUID) -> RPC_STATUS); - RpcBindingSetObject(core::mem::transmute(binding), core::mem::transmute(objectuuid)) + RpcBindingSetObject(binding, objectuuid) } #[inline] pub unsafe fn RpcBindingSetOption(hbinding: *const core::ffi::c_void, option: u32, optionvalue: usize) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingSetOption(hbinding : *const core::ffi::c_void, option : u32, optionvalue : usize) -> RPC_STATUS); - RpcBindingSetOption(core::mem::transmute(hbinding), core::mem::transmute(option), core::mem::transmute(optionvalue)) + RpcBindingSetOption(hbinding, option, optionvalue) } #[inline] pub unsafe fn RpcBindingToStringBindingA(binding: *const core::ffi::c_void, stringbinding: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingToStringBindingA(binding : *const core::ffi::c_void, stringbinding : *mut windows_core::PSTR) -> RPC_STATUS); - RpcBindingToStringBindingA(core::mem::transmute(binding), core::mem::transmute(stringbinding)) + RpcBindingToStringBindingA(binding, core::mem::transmute(stringbinding)) } #[inline] pub unsafe fn RpcBindingToStringBindingW(binding: *const core::ffi::c_void, stringbinding: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingToStringBindingW(binding : *const core::ffi::c_void, stringbinding : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcBindingToStringBindingW(core::mem::transmute(binding), core::mem::transmute(stringbinding)) + RpcBindingToStringBindingW(binding, core::mem::transmute(stringbinding)) } #[inline] pub unsafe fn RpcBindingUnbind(binding: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingUnbind(binding : *const core::ffi::c_void) -> RPC_STATUS); - RpcBindingUnbind(core::mem::transmute(binding)) + RpcBindingUnbind(binding) } #[inline] pub unsafe fn RpcBindingVectorFree(bindingvector: *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS { @@ -1761,24 +1761,24 @@ pub unsafe fn RpcBindingVectorFree(bindingvector: *mut *mut RPC_BINDING_VECTOR) #[inline] pub unsafe fn RpcCancelThread(thread: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcCancelThread(thread : *const core::ffi::c_void) -> RPC_STATUS); - RpcCancelThread(core::mem::transmute(thread)) + RpcCancelThread(thread) } #[inline] pub unsafe fn RpcCancelThreadEx(thread: *const core::ffi::c_void, timeout: i32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcCancelThreadEx(thread : *const core::ffi::c_void, timeout : i32) -> RPC_STATUS); - RpcCancelThreadEx(core::mem::transmute(thread), core::mem::transmute(timeout)) + RpcCancelThreadEx(thread, timeout) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn RpcCertGeneratePrincipalNameA(context: *const super::super::Security::Cryptography::CERT_CONTEXT, flags: u32, pbuffer: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcCertGeneratePrincipalNameA(context : *const super::super::Security::Cryptography:: CERT_CONTEXT, flags : u32, pbuffer : *mut windows_core::PSTR) -> RPC_STATUS); - RpcCertGeneratePrincipalNameA(core::mem::transmute(context), core::mem::transmute(flags), core::mem::transmute(pbuffer)) + RpcCertGeneratePrincipalNameA(context, flags, core::mem::transmute(pbuffer)) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn RpcCertGeneratePrincipalNameW(context: *const super::super::Security::Cryptography::CERT_CONTEXT, flags: u32, pbuffer: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcCertGeneratePrincipalNameW(context : *const super::super::Security::Cryptography:: CERT_CONTEXT, flags : u32, pbuffer : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcCertGeneratePrincipalNameW(core::mem::transmute(context), core::mem::transmute(flags), core::mem::transmute(pbuffer)) + RpcCertGeneratePrincipalNameW(context, flags, core::mem::transmute(pbuffer)) } #[inline] pub unsafe fn RpcEpRegisterA(ifspec: *const core::ffi::c_void, bindingvector: *const RPC_BINDING_VECTOR, uuidvector: Option<*const UUID_VECTOR>, annotation: P3) -> RPC_STATUS @@ -1786,7 +1786,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcEpRegisterA(ifspec : *const core::ffi::c_void, bindingvector : *const RPC_BINDING_VECTOR, uuidvector : *const UUID_VECTOR, annotation : windows_core::PCSTR) -> RPC_STATUS); - RpcEpRegisterA(core::mem::transmute(ifspec), core::mem::transmute(bindingvector), core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) + RpcEpRegisterA(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) } #[inline] pub unsafe fn RpcEpRegisterNoReplaceA(ifspec: *const core::ffi::c_void, bindingvector: *const RPC_BINDING_VECTOR, uuidvector: Option<*const UUID_VECTOR>, annotation: P3) -> RPC_STATUS @@ -1794,7 +1794,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcEpRegisterNoReplaceA(ifspec : *const core::ffi::c_void, bindingvector : *const RPC_BINDING_VECTOR, uuidvector : *const UUID_VECTOR, annotation : windows_core::PCSTR) -> RPC_STATUS); - RpcEpRegisterNoReplaceA(core::mem::transmute(ifspec), core::mem::transmute(bindingvector), core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) + RpcEpRegisterNoReplaceA(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) } #[inline] pub unsafe fn RpcEpRegisterNoReplaceW(ifspec: *const core::ffi::c_void, bindingvector: *const RPC_BINDING_VECTOR, uuidvector: Option<*const UUID_VECTOR>, annotation: P3) -> RPC_STATUS @@ -1802,7 +1802,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcEpRegisterNoReplaceW(ifspec : *const core::ffi::c_void, bindingvector : *const RPC_BINDING_VECTOR, uuidvector : *const UUID_VECTOR, annotation : windows_core::PCWSTR) -> RPC_STATUS); - RpcEpRegisterNoReplaceW(core::mem::transmute(ifspec), core::mem::transmute(bindingvector), core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) + RpcEpRegisterNoReplaceW(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) } #[inline] pub unsafe fn RpcEpRegisterW(ifspec: *const core::ffi::c_void, bindingvector: *const RPC_BINDING_VECTOR, uuidvector: Option<*const UUID_VECTOR>, annotation: P3) -> RPC_STATUS @@ -1810,22 +1810,22 @@ where P3: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcEpRegisterW(ifspec : *const core::ffi::c_void, bindingvector : *const RPC_BINDING_VECTOR, uuidvector : *const UUID_VECTOR, annotation : windows_core::PCWSTR) -> RPC_STATUS); - RpcEpRegisterW(core::mem::transmute(ifspec), core::mem::transmute(bindingvector), core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) + RpcEpRegisterW(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed())), annotation.param().abi()) } #[inline] pub unsafe fn RpcEpResolveBinding(binding: *const core::ffi::c_void, ifspec: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcEpResolveBinding(binding : *const core::ffi::c_void, ifspec : *const core::ffi::c_void) -> RPC_STATUS); - RpcEpResolveBinding(core::mem::transmute(binding), core::mem::transmute(ifspec)) + RpcEpResolveBinding(binding, ifspec) } #[inline] pub unsafe fn RpcEpUnregister(ifspec: *const core::ffi::c_void, bindingvector: *const RPC_BINDING_VECTOR, uuidvector: Option<*const UUID_VECTOR>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcEpUnregister(ifspec : *const core::ffi::c_void, bindingvector : *const RPC_BINDING_VECTOR, uuidvector : *const UUID_VECTOR) -> RPC_STATUS); - RpcEpUnregister(core::mem::transmute(ifspec), core::mem::transmute(bindingvector), core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed()))) + RpcEpUnregister(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcErrorAddRecord(errorinfo: *const RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorAddRecord(errorinfo : *const RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS); - RpcErrorAddRecord(core::mem::transmute(errorinfo)) + RpcErrorAddRecord(errorinfo) } #[inline] pub unsafe fn RpcErrorClearInformation() { @@ -1840,17 +1840,17 @@ pub unsafe fn RpcErrorEndEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) -> #[inline] pub unsafe fn RpcErrorGetNextRecord(enumhandle: *const RPC_ERROR_ENUM_HANDLE, copystrings: bool, errorinfo: *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorGetNextRecord(enumhandle : *const RPC_ERROR_ENUM_HANDLE, copystrings : super::super::Foundation:: BOOL, errorinfo : *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS); - RpcErrorGetNextRecord(core::mem::transmute(enumhandle), copystrings.into(), core::mem::transmute(errorinfo)) + RpcErrorGetNextRecord(enumhandle, copystrings.into(), core::mem::transmute(errorinfo)) } #[inline] pub unsafe fn RpcErrorGetNumberOfRecords(enumhandle: *const RPC_ERROR_ENUM_HANDLE, records: *mut i32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorGetNumberOfRecords(enumhandle : *const RPC_ERROR_ENUM_HANDLE, records : *mut i32) -> RPC_STATUS); - RpcErrorGetNumberOfRecords(core::mem::transmute(enumhandle), core::mem::transmute(records)) + RpcErrorGetNumberOfRecords(enumhandle, core::mem::transmute(records)) } #[inline] pub unsafe fn RpcErrorLoadErrorInfo(errorblob: *const core::ffi::c_void, blobsize: usize, enumhandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorLoadErrorInfo(errorblob : *const core::ffi::c_void, blobsize : usize, enumhandle : *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS); - RpcErrorLoadErrorInfo(core::mem::transmute(errorblob), core::mem::transmute(blobsize), core::mem::transmute(enumhandle)) + RpcErrorLoadErrorInfo(errorblob, blobsize, core::mem::transmute(enumhandle)) } #[inline] pub unsafe fn RpcErrorResetEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS { @@ -1860,7 +1860,7 @@ pub unsafe fn RpcErrorResetEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) - #[inline] pub unsafe fn RpcErrorSaveErrorInfo(enumhandle: *const RPC_ERROR_ENUM_HANDLE, errorblob: *mut *mut core::ffi::c_void, blobsize: *mut usize) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorSaveErrorInfo(enumhandle : *const RPC_ERROR_ENUM_HANDLE, errorblob : *mut *mut core::ffi::c_void, blobsize : *mut usize) -> RPC_STATUS); - RpcErrorSaveErrorInfo(core::mem::transmute(enumhandle), core::mem::transmute(errorblob), core::mem::transmute(blobsize)) + RpcErrorSaveErrorInfo(enumhandle, core::mem::transmute(errorblob), core::mem::transmute(blobsize)) } #[inline] pub unsafe fn RpcErrorStartEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS { @@ -1870,7 +1870,7 @@ pub unsafe fn RpcErrorStartEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) - #[inline] pub unsafe fn RpcExceptionFilter(exceptioncode: u32) -> i32 { windows_targets::link!("rpcrt4.dll" "system" fn RpcExceptionFilter(exceptioncode : u32) -> i32); - RpcExceptionFilter(core::mem::transmute(exceptioncode)) + RpcExceptionFilter(exceptioncode) } #[inline] pub unsafe fn RpcFreeAuthorizationContext(pauthzclientcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -1880,7 +1880,7 @@ pub unsafe fn RpcFreeAuthorizationContext(pauthzclientcontext: *mut *mut core::f #[inline] pub unsafe fn RpcGetAuthorizationContextForClient(clientbinding: Option<*const core::ffi::c_void>, impersonateonreturn: bool, reserved1: Option<*const core::ffi::c_void>, pexpirationtime: Option<*const i64>, reserved2: super::super::Foundation::LUID, reserved3: u32, reserved4: Option<*const core::ffi::c_void>, pauthzclientcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcGetAuthorizationContextForClient(clientbinding : *const core::ffi::c_void, impersonateonreturn : super::super::Foundation:: BOOL, reserved1 : *const core::ffi::c_void, pexpirationtime : *const i64, reserved2 : super::super::Foundation:: LUID, reserved3 : u32, reserved4 : *const core::ffi::c_void, pauthzclientcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcGetAuthorizationContextForClient(core::mem::transmute(clientbinding.unwrap_or(core::mem::zeroed())), impersonateonreturn.into(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2), core::mem::transmute(reserved3), core::mem::transmute(reserved4.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthzclientcontext)) + RpcGetAuthorizationContextForClient(core::mem::transmute(clientbinding.unwrap_or(core::mem::zeroed())), impersonateonreturn.into(), core::mem::transmute(reserved1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pexpirationtime.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved2), reserved3, core::mem::transmute(reserved4.unwrap_or(core::mem::zeroed())), core::mem::transmute(pauthzclientcontext)) } #[inline] pub unsafe fn RpcIfIdVectorFree(ifidvector: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS { @@ -1890,7 +1890,7 @@ pub unsafe fn RpcIfIdVectorFree(ifidvector: *mut *mut RPC_IF_ID_VECTOR) -> RPC_S #[inline] pub unsafe fn RpcIfInqId(rpcifhandle: *const core::ffi::c_void, rpcifid: *mut RPC_IF_ID) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcIfInqId(rpcifhandle : *const core::ffi::c_void, rpcifid : *mut RPC_IF_ID) -> RPC_STATUS); - RpcIfInqId(core::mem::transmute(rpcifhandle), core::mem::transmute(rpcifid)) + RpcIfInqId(rpcifhandle, core::mem::transmute(rpcifid)) } #[inline] pub unsafe fn RpcImpersonateClient(bindinghandle: Option<*const core::ffi::c_void>) -> RPC_STATUS { @@ -1915,7 +1915,7 @@ pub unsafe fn RpcMgmtEnableIdleCleanup() -> RPC_STATUS { #[inline] pub unsafe fn RpcMgmtEpEltInqBegin(epbinding: Option<*const core::ffi::c_void>, inquirytype: u32, ifid: Option<*const RPC_IF_ID>, versoption: Option, objectuuid: Option<*const windows_core::GUID>, inquirycontext: *mut *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtEpEltInqBegin(epbinding : *const core::ffi::c_void, inquirytype : u32, ifid : *const RPC_IF_ID, versoption : u32, objectuuid : *const windows_core::GUID, inquirycontext : *mut *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcMgmtEpEltInqBegin(core::mem::transmute(epbinding.unwrap_or(core::mem::zeroed())), core::mem::transmute(inquirytype), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(versoption.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inquirycontext)) + RpcMgmtEpEltInqBegin(core::mem::transmute(epbinding.unwrap_or(core::mem::zeroed())), inquirytype, core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(versoption.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcMgmtEpEltInqDone(inquirycontext: *mut *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -1925,27 +1925,27 @@ pub unsafe fn RpcMgmtEpEltInqDone(inquirycontext: *mut *mut *mut core::ffi::c_vo #[inline] pub unsafe fn RpcMgmtEpEltInqNextA(inquirycontext: *const *const core::ffi::c_void, ifid: *mut RPC_IF_ID, binding: Option<*mut *mut core::ffi::c_void>, objectuuid: Option<*mut windows_core::GUID>, annotation: Option<*mut windows_core::PSTR>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtEpEltInqNextA(inquirycontext : *const *const core::ffi::c_void, ifid : *mut RPC_IF_ID, binding : *mut *mut core::ffi::c_void, objectuuid : *mut windows_core::GUID, annotation : *mut windows_core::PSTR) -> RPC_STATUS); - RpcMgmtEpEltInqNextA(core::mem::transmute(inquirycontext), core::mem::transmute(ifid), core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(annotation.unwrap_or(core::mem::zeroed()))) + RpcMgmtEpEltInqNextA(inquirycontext, core::mem::transmute(ifid), core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(annotation.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcMgmtEpEltInqNextW(inquirycontext: *const *const core::ffi::c_void, ifid: *mut RPC_IF_ID, binding: Option<*mut *mut core::ffi::c_void>, objectuuid: Option<*mut windows_core::GUID>, annotation: Option<*mut windows_core::PWSTR>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtEpEltInqNextW(inquirycontext : *const *const core::ffi::c_void, ifid : *mut RPC_IF_ID, binding : *mut *mut core::ffi::c_void, objectuuid : *mut windows_core::GUID, annotation : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcMgmtEpEltInqNextW(core::mem::transmute(inquirycontext), core::mem::transmute(ifid), core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(annotation.unwrap_or(core::mem::zeroed()))) + RpcMgmtEpEltInqNextW(inquirycontext, core::mem::transmute(ifid), core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(annotation.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcMgmtEpUnregister(epbinding: Option<*const core::ffi::c_void>, ifid: *const RPC_IF_ID, binding: *const core::ffi::c_void, objectuuid: Option<*const windows_core::GUID>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtEpUnregister(epbinding : *const core::ffi::c_void, ifid : *const RPC_IF_ID, binding : *const core::ffi::c_void, objectuuid : *const windows_core::GUID) -> RPC_STATUS); - RpcMgmtEpUnregister(core::mem::transmute(epbinding.unwrap_or(core::mem::zeroed())), core::mem::transmute(ifid), core::mem::transmute(binding), core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed()))) + RpcMgmtEpUnregister(core::mem::transmute(epbinding.unwrap_or(core::mem::zeroed())), ifid, binding, core::mem::transmute(objectuuid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcMgmtInqComTimeout(binding: *const core::ffi::c_void, timeout: *mut u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtInqComTimeout(binding : *const core::ffi::c_void, timeout : *mut u32) -> RPC_STATUS); - RpcMgmtInqComTimeout(core::mem::transmute(binding), core::mem::transmute(timeout)) + RpcMgmtInqComTimeout(binding, core::mem::transmute(timeout)) } #[inline] pub unsafe fn RpcMgmtInqDefaultProtectLevel(authnsvc: u32, authnlevel: *mut u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtInqDefaultProtectLevel(authnsvc : u32, authnlevel : *mut u32) -> RPC_STATUS); - RpcMgmtInqDefaultProtectLevel(core::mem::transmute(authnsvc), core::mem::transmute(authnlevel)) + RpcMgmtInqDefaultProtectLevel(authnsvc, core::mem::transmute(authnlevel)) } #[inline] pub unsafe fn RpcMgmtInqIfIds(binding: Option<*const core::ffi::c_void>, ifidvector: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS { @@ -1955,12 +1955,12 @@ pub unsafe fn RpcMgmtInqIfIds(binding: Option<*const core::ffi::c_void>, ifidvec #[inline] pub unsafe fn RpcMgmtInqServerPrincNameA(binding: Option<*const core::ffi::c_void>, authnsvc: u32, serverprincname: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtInqServerPrincNameA(binding : *const core::ffi::c_void, authnsvc : u32, serverprincname : *mut windows_core::PSTR) -> RPC_STATUS); - RpcMgmtInqServerPrincNameA(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc), core::mem::transmute(serverprincname)) + RpcMgmtInqServerPrincNameA(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), authnsvc, core::mem::transmute(serverprincname)) } #[inline] pub unsafe fn RpcMgmtInqServerPrincNameW(binding: Option<*const core::ffi::c_void>, authnsvc: u32, serverprincname: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtInqServerPrincNameW(binding : *const core::ffi::c_void, authnsvc : u32, serverprincname : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcMgmtInqServerPrincNameW(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(authnsvc), core::mem::transmute(serverprincname)) + RpcMgmtInqServerPrincNameW(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), authnsvc, core::mem::transmute(serverprincname)) } #[inline] pub unsafe fn RpcMgmtInqStats(binding: Option<*const core::ffi::c_void>, statistics: *mut *mut RPC_STATS_VECTOR) -> RPC_STATUS { @@ -1975,22 +1975,22 @@ pub unsafe fn RpcMgmtIsServerListening(binding: Option<*const core::ffi::c_void> #[inline] pub unsafe fn RpcMgmtSetAuthorizationFn(authorizationfn: RPC_MGMT_AUTHORIZATION_FN) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtSetAuthorizationFn(authorizationfn : RPC_MGMT_AUTHORIZATION_FN) -> RPC_STATUS); - RpcMgmtSetAuthorizationFn(core::mem::transmute(authorizationfn)) + RpcMgmtSetAuthorizationFn(authorizationfn) } #[inline] pub unsafe fn RpcMgmtSetCancelTimeout(timeout: i32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtSetCancelTimeout(timeout : i32) -> RPC_STATUS); - RpcMgmtSetCancelTimeout(core::mem::transmute(timeout)) + RpcMgmtSetCancelTimeout(timeout) } #[inline] pub unsafe fn RpcMgmtSetComTimeout(binding: *const core::ffi::c_void, timeout: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtSetComTimeout(binding : *const core::ffi::c_void, timeout : u32) -> RPC_STATUS); - RpcMgmtSetComTimeout(core::mem::transmute(binding), core::mem::transmute(timeout)) + RpcMgmtSetComTimeout(binding, timeout) } #[inline] pub unsafe fn RpcMgmtSetServerStackSize(threadstacksize: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcMgmtSetServerStackSize(threadstacksize : u32) -> RPC_STATUS); - RpcMgmtSetServerStackSize(core::mem::transmute(threadstacksize)) + RpcMgmtSetServerStackSize(threadstacksize) } #[inline] pub unsafe fn RpcMgmtStatsVectorFree(statsvector: *mut *mut RPC_STATS_VECTOR) -> RPC_STATUS { @@ -2039,7 +2039,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingExportA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifspec : *const core::ffi::c_void, bindingvec : *const RPC_BINDING_VECTOR, objectuuidvec : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingExportA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(bindingvec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) + RpcNsBindingExportA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(bindingvec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingExportPnPA(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2047,7 +2047,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingExportPnPA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifspec : *const core::ffi::c_void, objectvector : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingExportPnPA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) + RpcNsBindingExportPnPA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingExportPnPW(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2055,7 +2055,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingExportPnPW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifspec : *const core::ffi::c_void, objectvector : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingExportPnPW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) + RpcNsBindingExportPnPW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingExportW(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, bindingvec: Option<*const RPC_BINDING_VECTOR>, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2063,7 +2063,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingExportW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifspec : *const core::ffi::c_void, bindingvec : *const RPC_BINDING_VECTOR, objectuuidvec : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingExportW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(bindingvec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) + RpcNsBindingExportW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(bindingvec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingImportBeginA(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, importcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2071,7 +2071,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingImportBeginA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifspec : *const core::ffi::c_void, objuuid : *const windows_core::GUID, importcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsBindingImportBeginA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(importcontext)) + RpcNsBindingImportBeginA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(importcontext)) } #[inline] pub unsafe fn RpcNsBindingImportBeginW(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, importcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2079,7 +2079,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingImportBeginW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifspec : *const core::ffi::c_void, objuuid : *const windows_core::GUID, importcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsBindingImportBeginW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(importcontext)) + RpcNsBindingImportBeginW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(importcontext)) } #[inline] pub unsafe fn RpcNsBindingImportDone(importcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2094,12 +2094,12 @@ pub unsafe fn RpcNsBindingImportNext(importcontext: *mut core::ffi::c_void, bind #[inline] pub unsafe fn RpcNsBindingInqEntryNameA(binding: *const core::ffi::c_void, entrynamesyntax: u32, entryname: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcNsBindingInqEntryNameA(binding : *const core::ffi::c_void, entrynamesyntax : u32, entryname : *mut windows_core::PSTR) -> RPC_STATUS); - RpcNsBindingInqEntryNameA(core::mem::transmute(binding), core::mem::transmute(entrynamesyntax), core::mem::transmute(entryname)) + RpcNsBindingInqEntryNameA(binding, entrynamesyntax, core::mem::transmute(entryname)) } #[inline] pub unsafe fn RpcNsBindingInqEntryNameW(binding: *const core::ffi::c_void, entrynamesyntax: u32, entryname: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcNsBindingInqEntryNameW(binding : *const core::ffi::c_void, entrynamesyntax : u32, entryname : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcNsBindingInqEntryNameW(core::mem::transmute(binding), core::mem::transmute(entrynamesyntax), core::mem::transmute(entryname)) + RpcNsBindingInqEntryNameW(binding, entrynamesyntax, core::mem::transmute(entryname)) } #[inline] pub unsafe fn RpcNsBindingLookupBeginA(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, bindingmaxcount: u32, lookupcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2107,7 +2107,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingLookupBeginA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifspec : *const core::ffi::c_void, objuuid : *const windows_core::GUID, bindingmaxcount : u32, lookupcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsBindingLookupBeginA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(bindingmaxcount), core::mem::transmute(lookupcontext)) + RpcNsBindingLookupBeginA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), bindingmaxcount, core::mem::transmute(lookupcontext)) } #[inline] pub unsafe fn RpcNsBindingLookupBeginW(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, bindingmaxcount: u32, lookupcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2115,7 +2115,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingLookupBeginW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifspec : *const core::ffi::c_void, objuuid : *const windows_core::GUID, bindingmaxcount : u32, lookupcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsBindingLookupBeginW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(bindingmaxcount), core::mem::transmute(lookupcontext)) + RpcNsBindingLookupBeginW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objuuid.unwrap_or(core::mem::zeroed())), bindingmaxcount, core::mem::transmute(lookupcontext)) } #[inline] pub unsafe fn RpcNsBindingLookupDone(lookupcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2138,7 +2138,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingUnexportA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifspec : *const core::ffi::c_void, objectuuidvec : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingUnexportA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) + RpcNsBindingUnexportA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingUnexportPnPA(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2146,7 +2146,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingUnexportPnPA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifspec : *const core::ffi::c_void, objectvector : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingUnexportPnPA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) + RpcNsBindingUnexportPnPA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingUnexportPnPW(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2154,7 +2154,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingUnexportPnPW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifspec : *const core::ffi::c_void, objectvector : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingUnexportPnPW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) + RpcNsBindingUnexportPnPW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectvector.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsBindingUnexportW(entrynamesyntax: u32, entryname: P1, ifspec: Option<*const core::ffi::c_void>, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2162,7 +2162,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsBindingUnexportW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifspec : *const core::ffi::c_void, objectuuidvec : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsBindingUnexportW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) + RpcNsBindingUnexportW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsEntryExpandNameA(entrynamesyntax: u32, entryname: P1, expandedname: *mut windows_core::PSTR) -> RPC_STATUS @@ -2170,7 +2170,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsEntryExpandNameA(entrynamesyntax : u32, entryname : windows_core::PCSTR, expandedname : *mut windows_core::PSTR) -> RPC_STATUS); - RpcNsEntryExpandNameA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(expandedname)) + RpcNsEntryExpandNameA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(expandedname)) } #[inline] pub unsafe fn RpcNsEntryExpandNameW(entrynamesyntax: u32, entryname: P1, expandedname: *mut windows_core::PWSTR) -> RPC_STATUS @@ -2178,7 +2178,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsEntryExpandNameW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, expandedname : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcNsEntryExpandNameW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(expandedname)) + RpcNsEntryExpandNameW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(expandedname)) } #[inline] pub unsafe fn RpcNsEntryObjectInqBeginA(entrynamesyntax: u32, entryname: P1, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2186,7 +2186,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsEntryObjectInqBeginA(entrynamesyntax : u32, entryname : windows_core::PCSTR, inquirycontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsEntryObjectInqBeginA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(inquirycontext)) + RpcNsEntryObjectInqBeginA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcNsEntryObjectInqBeginW(entrynamesyntax: u32, entryname: P1, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2194,7 +2194,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsEntryObjectInqBeginW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, inquirycontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsEntryObjectInqBeginW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(inquirycontext)) + RpcNsEntryObjectInqBeginW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcNsEntryObjectInqDone(inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2212,7 +2212,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupDeleteA(groupnamesyntax : GROUP_NAME_SYNTAX, groupname : windows_core::PCSTR) -> RPC_STATUS); - RpcNsGroupDeleteA(core::mem::transmute(groupnamesyntax), groupname.param().abi()) + RpcNsGroupDeleteA(groupnamesyntax, groupname.param().abi()) } #[inline] pub unsafe fn RpcNsGroupDeleteW(groupnamesyntax: GROUP_NAME_SYNTAX, groupname: P1) -> RPC_STATUS @@ -2220,7 +2220,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupDeleteW(groupnamesyntax : GROUP_NAME_SYNTAX, groupname : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsGroupDeleteW(core::mem::transmute(groupnamesyntax), groupname.param().abi()) + RpcNsGroupDeleteW(groupnamesyntax, groupname.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrAddA(groupnamesyntax: u32, groupname: P1, membernamesyntax: u32, membername: P3) -> RPC_STATUS @@ -2229,7 +2229,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupMbrAddA(groupnamesyntax : u32, groupname : windows_core::PCSTR, membernamesyntax : u32, membername : windows_core::PCSTR) -> RPC_STATUS); - RpcNsGroupMbrAddA(core::mem::transmute(groupnamesyntax), groupname.param().abi(), core::mem::transmute(membernamesyntax), membername.param().abi()) + RpcNsGroupMbrAddA(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrAddW(groupnamesyntax: u32, groupname: P1, membernamesyntax: u32, membername: P3) -> RPC_STATUS @@ -2238,7 +2238,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupMbrAddW(groupnamesyntax : u32, groupname : windows_core::PCWSTR, membernamesyntax : u32, membername : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsGroupMbrAddW(core::mem::transmute(groupnamesyntax), groupname.param().abi(), core::mem::transmute(membernamesyntax), membername.param().abi()) + RpcNsGroupMbrAddW(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrInqBeginA(groupnamesyntax: u32, groupname: P1, membernamesyntax: u32, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2246,7 +2246,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupMbrInqBeginA(groupnamesyntax : u32, groupname : windows_core::PCSTR, membernamesyntax : u32, inquirycontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsGroupMbrInqBeginA(core::mem::transmute(groupnamesyntax), groupname.param().abi(), core::mem::transmute(membernamesyntax), core::mem::transmute(inquirycontext)) + RpcNsGroupMbrInqBeginA(groupnamesyntax, groupname.param().abi(), membernamesyntax, core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcNsGroupMbrInqBeginW(groupnamesyntax: u32, groupname: P1, membernamesyntax: u32, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2254,7 +2254,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupMbrInqBeginW(groupnamesyntax : u32, groupname : windows_core::PCWSTR, membernamesyntax : u32, inquirycontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsGroupMbrInqBeginW(core::mem::transmute(groupnamesyntax), groupname.param().abi(), core::mem::transmute(membernamesyntax), core::mem::transmute(inquirycontext)) + RpcNsGroupMbrInqBeginW(groupnamesyntax, groupname.param().abi(), membernamesyntax, core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcNsGroupMbrInqDone(inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2278,7 +2278,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupMbrRemoveA(groupnamesyntax : u32, groupname : windows_core::PCSTR, membernamesyntax : u32, membername : windows_core::PCSTR) -> RPC_STATUS); - RpcNsGroupMbrRemoveA(core::mem::transmute(groupnamesyntax), groupname.param().abi(), core::mem::transmute(membernamesyntax), membername.param().abi()) + RpcNsGroupMbrRemoveA(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrRemoveW(groupnamesyntax: u32, groupname: P1, membernamesyntax: u32, membername: P3) -> RPC_STATUS @@ -2287,7 +2287,7 @@ where P3: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupMbrRemoveW(groupnamesyntax : u32, groupname : windows_core::PCWSTR, membernamesyntax : u32, membername : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsGroupMbrRemoveW(core::mem::transmute(groupnamesyntax), groupname.param().abi(), core::mem::transmute(membernamesyntax), membername.param().abi()) + RpcNsGroupMbrRemoveW(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtBindingUnexportA(entrynamesyntax: u32, entryname: P1, ifid: Option<*const RPC_IF_ID>, versoption: u32, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2295,7 +2295,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtBindingUnexportA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifid : *const RPC_IF_ID, versoption : u32, objectuuidvec : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsMgmtBindingUnexportA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(versoption), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) + RpcNsMgmtBindingUnexportA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), versoption, core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsMgmtBindingUnexportW(entrynamesyntax: u32, entryname: P1, ifid: Option<*const RPC_IF_ID>, versoption: u32, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS @@ -2303,7 +2303,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtBindingUnexportW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifid : *const RPC_IF_ID, versoption : u32, objectuuidvec : *const UUID_VECTOR) -> RPC_STATUS); - RpcNsMgmtBindingUnexportW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(versoption), core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) + RpcNsMgmtBindingUnexportW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), versoption, core::mem::transmute(objectuuidvec.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcNsMgmtEntryCreateA(entrynamesyntax: u32, entryname: P1) -> RPC_STATUS @@ -2311,7 +2311,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryCreateA(entrynamesyntax : u32, entryname : windows_core::PCSTR) -> RPC_STATUS); - RpcNsMgmtEntryCreateA(core::mem::transmute(entrynamesyntax), entryname.param().abi()) + RpcNsMgmtEntryCreateA(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryCreateW(entrynamesyntax: u32, entryname: P1) -> RPC_STATUS @@ -2319,7 +2319,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryCreateW(entrynamesyntax : u32, entryname : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsMgmtEntryCreateW(core::mem::transmute(entrynamesyntax), entryname.param().abi()) + RpcNsMgmtEntryCreateW(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryDeleteA(entrynamesyntax: u32, entryname: P1) -> RPC_STATUS @@ -2327,7 +2327,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryDeleteA(entrynamesyntax : u32, entryname : windows_core::PCSTR) -> RPC_STATUS); - RpcNsMgmtEntryDeleteA(core::mem::transmute(entrynamesyntax), entryname.param().abi()) + RpcNsMgmtEntryDeleteA(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryDeleteW(entrynamesyntax: u32, entryname: P1) -> RPC_STATUS @@ -2335,7 +2335,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryDeleteW(entrynamesyntax : u32, entryname : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsMgmtEntryDeleteW(core::mem::transmute(entrynamesyntax), entryname.param().abi()) + RpcNsMgmtEntryDeleteW(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryInqIfIdsA(entrynamesyntax: u32, entryname: P1, ifidvec: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS @@ -2343,7 +2343,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryInqIfIdsA(entrynamesyntax : u32, entryname : windows_core::PCSTR, ifidvec : *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS); - RpcNsMgmtEntryInqIfIdsA(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifidvec)) + RpcNsMgmtEntryInqIfIdsA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifidvec)) } #[inline] pub unsafe fn RpcNsMgmtEntryInqIfIdsW(entrynamesyntax: u32, entryname: P1, ifidvec: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS @@ -2351,12 +2351,12 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryInqIfIdsW(entrynamesyntax : u32, entryname : windows_core::PCWSTR, ifidvec : *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS); - RpcNsMgmtEntryInqIfIdsW(core::mem::transmute(entrynamesyntax), entryname.param().abi(), core::mem::transmute(ifidvec)) + RpcNsMgmtEntryInqIfIdsW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifidvec)) } #[inline] pub unsafe fn RpcNsMgmtHandleSetExpAge(nshandle: *mut core::ffi::c_void, expirationage: u32) -> RPC_STATUS { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtHandleSetExpAge(nshandle : *mut core::ffi::c_void, expirationage : u32) -> RPC_STATUS); - RpcNsMgmtHandleSetExpAge(core::mem::transmute(nshandle), core::mem::transmute(expirationage)) + RpcNsMgmtHandleSetExpAge(core::mem::transmute(nshandle), expirationage) } #[inline] pub unsafe fn RpcNsMgmtInqExpAge(expirationage: *mut u32) -> RPC_STATUS { @@ -2366,7 +2366,7 @@ pub unsafe fn RpcNsMgmtInqExpAge(expirationage: *mut u32) -> RPC_STATUS { #[inline] pub unsafe fn RpcNsMgmtSetExpAge(expirationage: u32) -> RPC_STATUS { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtSetExpAge(expirationage : u32) -> RPC_STATUS); - RpcNsMgmtSetExpAge(core::mem::transmute(expirationage)) + RpcNsMgmtSetExpAge(expirationage) } #[inline] pub unsafe fn RpcNsProfileDeleteA(profilenamesyntax: u32, profilename: P1) -> RPC_STATUS @@ -2374,7 +2374,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileDeleteA(profilenamesyntax : u32, profilename : windows_core::PCSTR) -> RPC_STATUS); - RpcNsProfileDeleteA(core::mem::transmute(profilenamesyntax), profilename.param().abi()) + RpcNsProfileDeleteA(profilenamesyntax, profilename.param().abi()) } #[inline] pub unsafe fn RpcNsProfileDeleteW(profilenamesyntax: u32, profilename: P1) -> RPC_STATUS @@ -2382,7 +2382,7 @@ where P1: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileDeleteW(profilenamesyntax : u32, profilename : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsProfileDeleteW(core::mem::transmute(profilenamesyntax), profilename.param().abi()) + RpcNsProfileDeleteW(profilenamesyntax, profilename.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltAddA(profilenamesyntax: u32, profilename: P1, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P4, priority: u32, annotation: P6) -> RPC_STATUS @@ -2392,7 +2392,7 @@ where P6: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltAddA(profilenamesyntax : u32, profilename : windows_core::PCSTR, ifid : *const RPC_IF_ID, membernamesyntax : u32, membername : windows_core::PCSTR, priority : u32, annotation : windows_core::PCSTR) -> RPC_STATUS); - RpcNsProfileEltAddA(core::mem::transmute(profilenamesyntax), profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membernamesyntax), membername.param().abi(), core::mem::transmute(priority), annotation.param().abi()) + RpcNsProfileEltAddA(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), membernamesyntax, membername.param().abi(), priority, annotation.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltAddW(profilenamesyntax: u32, profilename: P1, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P4, priority: u32, annotation: P6) -> RPC_STATUS @@ -2402,7 +2402,7 @@ where P6: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltAddW(profilenamesyntax : u32, profilename : windows_core::PCWSTR, ifid : *const RPC_IF_ID, membernamesyntax : u32, membername : windows_core::PCWSTR, priority : u32, annotation : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsProfileEltAddW(core::mem::transmute(profilenamesyntax), profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membernamesyntax), membername.param().abi(), core::mem::transmute(priority), annotation.param().abi()) + RpcNsProfileEltAddW(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), membernamesyntax, membername.param().abi(), priority, annotation.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltInqBeginA(profilenamesyntax: u32, profilename: P1, inquirytype: u32, ifid: Option<*const RPC_IF_ID>, versoption: u32, membernamesyntax: u32, membername: P6, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2411,7 +2411,7 @@ where P6: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltInqBeginA(profilenamesyntax : u32, profilename : windows_core::PCSTR, inquirytype : u32, ifid : *const RPC_IF_ID, versoption : u32, membernamesyntax : u32, membername : windows_core::PCSTR, inquirycontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsProfileEltInqBeginA(core::mem::transmute(profilenamesyntax), profilename.param().abi(), core::mem::transmute(inquirytype), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(versoption), core::mem::transmute(membernamesyntax), membername.param().abi(), core::mem::transmute(inquirycontext)) + RpcNsProfileEltInqBeginA(profilenamesyntax, profilename.param().abi(), inquirytype, core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), versoption, membernamesyntax, membername.param().abi(), core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcNsProfileEltInqBeginW(profilenamesyntax: u32, profilename: P1, inquirytype: u32, ifid: Option<*const RPC_IF_ID>, versoption: u32, membernamesyntax: u32, membername: P6, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS @@ -2420,7 +2420,7 @@ where P6: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltInqBeginW(profilenamesyntax : u32, profilename : windows_core::PCWSTR, inquirytype : u32, ifid : *const RPC_IF_ID, versoption : u32, membernamesyntax : u32, membername : windows_core::PCWSTR, inquirycontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcNsProfileEltInqBeginW(core::mem::transmute(profilenamesyntax), profilename.param().abi(), core::mem::transmute(inquirytype), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(versoption), core::mem::transmute(membernamesyntax), membername.param().abi(), core::mem::transmute(inquirycontext)) + RpcNsProfileEltInqBeginW(profilenamesyntax, profilename.param().abi(), inquirytype, core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), versoption, membernamesyntax, membername.param().abi(), core::mem::transmute(inquirycontext)) } #[inline] pub unsafe fn RpcNsProfileEltInqDone(inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2430,12 +2430,12 @@ pub unsafe fn RpcNsProfileEltInqDone(inquirycontext: *mut *mut core::ffi::c_void #[inline] pub unsafe fn RpcNsProfileEltInqNextA(inquirycontext: *const core::ffi::c_void, ifid: Option<*mut RPC_IF_ID>, membername: *mut windows_core::PSTR, priority: *mut u32, annotation: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltInqNextA(inquirycontext : *const core::ffi::c_void, ifid : *mut RPC_IF_ID, membername : *mut windows_core::PSTR, priority : *mut u32, annotation : *mut windows_core::PSTR) -> RPC_STATUS); - RpcNsProfileEltInqNextA(core::mem::transmute(inquirycontext), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membername), core::mem::transmute(priority), core::mem::transmute(annotation)) + RpcNsProfileEltInqNextA(inquirycontext, core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membername), core::mem::transmute(priority), core::mem::transmute(annotation)) } #[inline] pub unsafe fn RpcNsProfileEltInqNextW(inquirycontext: *const core::ffi::c_void, ifid: Option<*mut RPC_IF_ID>, membername: *mut windows_core::PWSTR, priority: *mut u32, annotation: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltInqNextW(inquirycontext : *const core::ffi::c_void, ifid : *mut RPC_IF_ID, membername : *mut windows_core::PWSTR, priority : *mut u32, annotation : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcNsProfileEltInqNextW(core::mem::transmute(inquirycontext), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membername), core::mem::transmute(priority), core::mem::transmute(annotation)) + RpcNsProfileEltInqNextW(inquirycontext, core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membername), core::mem::transmute(priority), core::mem::transmute(annotation)) } #[inline] pub unsafe fn RpcNsProfileEltRemoveA(profilenamesyntax: u32, profilename: P1, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P4) -> RPC_STATUS @@ -2444,7 +2444,7 @@ where P4: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltRemoveA(profilenamesyntax : u32, profilename : windows_core::PCSTR, ifid : *const RPC_IF_ID, membernamesyntax : u32, membername : windows_core::PCSTR) -> RPC_STATUS); - RpcNsProfileEltRemoveA(core::mem::transmute(profilenamesyntax), profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membernamesyntax), membername.param().abi()) + RpcNsProfileEltRemoveA(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltRemoveW(profilenamesyntax: u32, profilename: P1, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P4) -> RPC_STATUS @@ -2453,22 +2453,22 @@ where P4: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileEltRemoveW(profilenamesyntax : u32, profilename : windows_core::PCWSTR, ifid : *const RPC_IF_ID, membernamesyntax : u32, membername : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsProfileEltRemoveW(core::mem::transmute(profilenamesyntax), profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), core::mem::transmute(membernamesyntax), membername.param().abi()) + RpcNsProfileEltRemoveW(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(core::mem::zeroed())), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcObjectInqType(objuuid: *const windows_core::GUID, typeuuid: Option<*mut windows_core::GUID>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcObjectInqType(objuuid : *const windows_core::GUID, typeuuid : *mut windows_core::GUID) -> RPC_STATUS); - RpcObjectInqType(core::mem::transmute(objuuid), core::mem::transmute(typeuuid.unwrap_or(core::mem::zeroed()))) + RpcObjectInqType(objuuid, core::mem::transmute(typeuuid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcObjectSetInqFn(inquiryfn: RPC_OBJECT_INQ_FN) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcObjectSetInqFn(inquiryfn : RPC_OBJECT_INQ_FN) -> RPC_STATUS); - RpcObjectSetInqFn(core::mem::transmute(inquiryfn)) + RpcObjectSetInqFn(inquiryfn) } #[inline] pub unsafe fn RpcObjectSetType(objuuid: *const windows_core::GUID, typeuuid: Option<*const windows_core::GUID>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcObjectSetType(objuuid : *const windows_core::GUID, typeuuid : *const windows_core::GUID) -> RPC_STATUS); - RpcObjectSetType(core::mem::transmute(objuuid), core::mem::transmute(typeuuid.unwrap_or(core::mem::zeroed()))) + RpcObjectSetType(objuuid, core::mem::transmute(typeuuid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcProtseqVectorFreeA(protseqvector: *mut *mut RPC_PROTSEQ_VECTORA) -> RPC_STATUS { @@ -2483,7 +2483,7 @@ pub unsafe fn RpcProtseqVectorFreeW(protseqvector: *mut *mut RPC_PROTSEQ_VECTORW #[inline] pub unsafe fn RpcRaiseException(exception: RPC_STATUS) { windows_targets::link!("rpcrt4.dll" "system" fn RpcRaiseException(exception : RPC_STATUS)); - RpcRaiseException(core::mem::transmute(exception)) + RpcRaiseException(exception) } #[inline] pub unsafe fn RpcRevertContainerImpersonation() -> RPC_STATUS { @@ -2503,7 +2503,7 @@ pub unsafe fn RpcRevertToSelfEx(bindinghandle: Option<*const core::ffi::c_void>) #[inline] pub unsafe fn RpcServerCompleteSecurityCallback(bindinghandle: *const core::ffi::c_void, status: RPC_STATUS) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerCompleteSecurityCallback(bindinghandle : *const core::ffi::c_void, status : RPC_STATUS) -> RPC_STATUS); - RpcServerCompleteSecurityCallback(core::mem::transmute(bindinghandle), core::mem::transmute(status)) + RpcServerCompleteSecurityCallback(bindinghandle, status) } #[inline] pub unsafe fn RpcServerInqBindingHandle(binding: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2533,52 +2533,52 @@ pub unsafe fn RpcServerInqCallAttributesW(clientbinding: Option<*const core::ffi #[inline] pub unsafe fn RpcServerInqDefaultPrincNameA(authnsvc: u32, princname: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInqDefaultPrincNameA(authnsvc : u32, princname : *mut windows_core::PSTR) -> RPC_STATUS); - RpcServerInqDefaultPrincNameA(core::mem::transmute(authnsvc), core::mem::transmute(princname)) + RpcServerInqDefaultPrincNameA(authnsvc, core::mem::transmute(princname)) } #[inline] pub unsafe fn RpcServerInqDefaultPrincNameW(authnsvc: u32, princname: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInqDefaultPrincNameW(authnsvc : u32, princname : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcServerInqDefaultPrincNameW(core::mem::transmute(authnsvc), core::mem::transmute(princname)) + RpcServerInqDefaultPrincNameW(authnsvc, core::mem::transmute(princname)) } #[inline] pub unsafe fn RpcServerInqIf(ifspec: *const core::ffi::c_void, mgrtypeuuid: Option<*const windows_core::GUID>, mgrepv: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInqIf(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, mgrepv : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcServerInqIf(core::mem::transmute(ifspec), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv)) + RpcServerInqIf(ifspec, core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv)) } #[inline] pub unsafe fn RpcServerInterfaceGroupActivate(ifgroup: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInterfaceGroupActivate(ifgroup : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerInterfaceGroupActivate(core::mem::transmute(ifgroup)) + RpcServerInterfaceGroupActivate(ifgroup) } #[inline] pub unsafe fn RpcServerInterfaceGroupClose(ifgroup: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInterfaceGroupClose(ifgroup : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerInterfaceGroupClose(core::mem::transmute(ifgroup)) + RpcServerInterfaceGroupClose(ifgroup) } #[inline] pub unsafe fn RpcServerInterfaceGroupCreateA(interfaces: &[RPC_INTERFACE_TEMPLATEA], endpoints: &[RPC_ENDPOINT_TEMPLATEA], idleperiod: u32, idlecallbackfn: RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN, idlecallbackcontext: *const core::ffi::c_void, ifgroup: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInterfaceGroupCreateA(interfaces : *const RPC_INTERFACE_TEMPLATEA, numifs : u32, endpoints : *const RPC_ENDPOINT_TEMPLATEA, numendpoints : u32, idleperiod : u32, idlecallbackfn : RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN, idlecallbackcontext : *const core::ffi::c_void, ifgroup : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcServerInterfaceGroupCreateA(core::mem::transmute(interfaces.as_ptr()), interfaces.len().try_into().unwrap(), core::mem::transmute(endpoints.as_ptr()), endpoints.len().try_into().unwrap(), core::mem::transmute(idleperiod), core::mem::transmute(idlecallbackfn), core::mem::transmute(idlecallbackcontext), core::mem::transmute(ifgroup)) + RpcServerInterfaceGroupCreateA(core::mem::transmute(interfaces.as_ptr()), interfaces.len().try_into().unwrap(), core::mem::transmute(endpoints.as_ptr()), endpoints.len().try_into().unwrap(), idleperiod, idlecallbackfn, idlecallbackcontext, core::mem::transmute(ifgroup)) } #[inline] pub unsafe fn RpcServerInterfaceGroupCreateW(interfaces: &[RPC_INTERFACE_TEMPLATEW], endpoints: &[RPC_ENDPOINT_TEMPLATEW], idleperiod: u32, idlecallbackfn: RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN, idlecallbackcontext: *const core::ffi::c_void, ifgroup: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInterfaceGroupCreateW(interfaces : *const RPC_INTERFACE_TEMPLATEW, numifs : u32, endpoints : *const RPC_ENDPOINT_TEMPLATEW, numendpoints : u32, idleperiod : u32, idlecallbackfn : RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN, idlecallbackcontext : *const core::ffi::c_void, ifgroup : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcServerInterfaceGroupCreateW(core::mem::transmute(interfaces.as_ptr()), interfaces.len().try_into().unwrap(), core::mem::transmute(endpoints.as_ptr()), endpoints.len().try_into().unwrap(), core::mem::transmute(idleperiod), core::mem::transmute(idlecallbackfn), core::mem::transmute(idlecallbackcontext), core::mem::transmute(ifgroup)) + RpcServerInterfaceGroupCreateW(core::mem::transmute(interfaces.as_ptr()), interfaces.len().try_into().unwrap(), core::mem::transmute(endpoints.as_ptr()), endpoints.len().try_into().unwrap(), idleperiod, idlecallbackfn, idlecallbackcontext, core::mem::transmute(ifgroup)) } #[inline] pub unsafe fn RpcServerInterfaceGroupDeactivate(ifgroup: *const core::ffi::c_void, forcedeactivation: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInterfaceGroupDeactivate(ifgroup : *const core::ffi::c_void, forcedeactivation : u32) -> RPC_STATUS); - RpcServerInterfaceGroupDeactivate(core::mem::transmute(ifgroup), core::mem::transmute(forcedeactivation)) + RpcServerInterfaceGroupDeactivate(ifgroup, forcedeactivation) } #[inline] pub unsafe fn RpcServerInterfaceGroupInqBindings(ifgroup: *const core::ffi::c_void, bindingvector: *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerInterfaceGroupInqBindings(ifgroup : *const core::ffi::c_void, bindingvector : *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS); - RpcServerInterfaceGroupInqBindings(core::mem::transmute(ifgroup), core::mem::transmute(bindingvector)) + RpcServerInterfaceGroupInqBindings(ifgroup, core::mem::transmute(bindingvector)) } #[inline] pub unsafe fn RpcServerListen(minimumcallthreads: u32, maxcalls: u32, dontwait: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerListen(minimumcallthreads : u32, maxcalls : u32, dontwait : u32) -> RPC_STATUS); - RpcServerListen(core::mem::transmute(minimumcallthreads), core::mem::transmute(maxcalls), core::mem::transmute(dontwait)) + RpcServerListen(minimumcallthreads, maxcalls, dontwait) } #[inline] pub unsafe fn RpcServerRegisterAuthInfoA(serverprincname: P0, authnsvc: u32, getkeyfn: Option, arg: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2586,7 +2586,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerRegisterAuthInfoA(serverprincname : windows_core::PCSTR, authnsvc : u32, getkeyfn : RPC_AUTH_KEY_RETRIEVAL_FN, arg : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerRegisterAuthInfoA(serverprincname.param().abi(), core::mem::transmute(authnsvc), core::mem::transmute(getkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(arg.unwrap_or(core::mem::zeroed()))) + RpcServerRegisterAuthInfoA(serverprincname.param().abi(), authnsvc, core::mem::transmute(getkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(arg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerRegisterAuthInfoW(serverprincname: P0, authnsvc: u32, getkeyfn: Option, arg: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2594,33 +2594,33 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerRegisterAuthInfoW(serverprincname : windows_core::PCWSTR, authnsvc : u32, getkeyfn : RPC_AUTH_KEY_RETRIEVAL_FN, arg : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerRegisterAuthInfoW(serverprincname.param().abi(), core::mem::transmute(authnsvc), core::mem::transmute(getkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(arg.unwrap_or(core::mem::zeroed()))) + RpcServerRegisterAuthInfoW(serverprincname.param().abi(), authnsvc, core::mem::transmute(getkeyfn.unwrap_or(core::mem::zeroed())), core::mem::transmute(arg.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerRegisterIf(ifspec: *const core::ffi::c_void, mgrtypeuuid: Option<*const windows_core::GUID>, mgrepv: Option<*const core::ffi::c_void>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerRegisterIf(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, mgrepv : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerRegisterIf(core::mem::transmute(ifspec), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed()))) + RpcServerRegisterIf(ifspec, core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerRegisterIf2(ifspec: *const core::ffi::c_void, mgrtypeuuid: Option<*const windows_core::GUID>, mgrepv: Option<*const core::ffi::c_void>, flags: u32, maxcalls: u32, maxrpcsize: u32, ifcallbackfn: Option) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerRegisterIf2(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, mgrepv : *const core::ffi::c_void, flags : u32, maxcalls : u32, maxrpcsize : u32, ifcallbackfn : RPC_IF_CALLBACK_FN) -> RPC_STATUS); - RpcServerRegisterIf2(core::mem::transmute(ifspec), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(maxcalls), core::mem::transmute(maxrpcsize), core::mem::transmute(ifcallbackfn.unwrap_or(core::mem::zeroed()))) + RpcServerRegisterIf2(ifspec, core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed())), flags, maxcalls, maxrpcsize, core::mem::transmute(ifcallbackfn.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerRegisterIf3(ifspec: *const core::ffi::c_void, mgrtypeuuid: Option<*const windows_core::GUID>, mgrepv: Option<*const core::ffi::c_void>, flags: u32, maxcalls: u32, maxrpcsize: u32, ifcallback: Option, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerRegisterIf3(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, mgrepv : *const core::ffi::c_void, flags : u32, maxcalls : u32, maxrpcsize : u32, ifcallback : RPC_IF_CALLBACK_FN, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerRegisterIf3(core::mem::transmute(ifspec), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(maxcalls), core::mem::transmute(maxrpcsize), core::mem::transmute(ifcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerRegisterIf3(ifspec, core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed())), flags, maxcalls, maxrpcsize, core::mem::transmute(ifcallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerRegisterIfEx(ifspec: *const core::ffi::c_void, mgrtypeuuid: Option<*const windows_core::GUID>, mgrepv: Option<*const core::ffi::c_void>, flags: u32, maxcalls: u32, ifcallback: Option) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerRegisterIfEx(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, mgrepv : *const core::ffi::c_void, flags : u32, maxcalls : u32, ifcallback : RPC_IF_CALLBACK_FN) -> RPC_STATUS); - RpcServerRegisterIfEx(core::mem::transmute(ifspec), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(maxcalls), core::mem::transmute(ifcallback.unwrap_or(core::mem::zeroed()))) + RpcServerRegisterIfEx(ifspec, core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrepv.unwrap_or(core::mem::zeroed())), flags, maxcalls, core::mem::transmute(ifcallback.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RpcServerSubscribeForNotification(binding: Option<*const core::ffi::c_void>, notification: RPC_NOTIFICATIONS, notificationtype: RPC_NOTIFICATION_TYPES, notificationinfo: *const RPC_ASYNC_NOTIFICATION_INFO) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerSubscribeForNotification(binding : *const core::ffi::c_void, notification : RPC_NOTIFICATIONS, notificationtype : RPC_NOTIFICATION_TYPES, notificationinfo : *const RPC_ASYNC_NOTIFICATION_INFO) -> RPC_STATUS); - RpcServerSubscribeForNotification(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(notification), core::mem::transmute(notificationtype), core::mem::transmute(notificationinfo)) + RpcServerSubscribeForNotification(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), notification, notificationtype, notificationinfo) } #[inline] pub unsafe fn RpcServerTestCancel(bindinghandle: Option<*const core::ffi::c_void>) -> RPC_STATUS { @@ -2630,37 +2630,37 @@ pub unsafe fn RpcServerTestCancel(bindinghandle: Option<*const core::ffi::c_void #[inline] pub unsafe fn RpcServerUnregisterIf(ifspec: Option<*const core::ffi::c_void>, mgrtypeuuid: Option<*const windows_core::GUID>, waitforcallstocomplete: u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUnregisterIf(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, waitforcallstocomplete : u32) -> RPC_STATUS); - RpcServerUnregisterIf(core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitforcallstocomplete)) + RpcServerUnregisterIf(core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), waitforcallstocomplete) } #[inline] pub unsafe fn RpcServerUnregisterIfEx(ifspec: Option<*const core::ffi::c_void>, mgrtypeuuid: Option<*const windows_core::GUID>, rundowncontexthandles: i32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUnregisterIfEx(ifspec : *const core::ffi::c_void, mgrtypeuuid : *const windows_core::GUID, rundowncontexthandles : i32) -> RPC_STATUS); - RpcServerUnregisterIfEx(core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), core::mem::transmute(rundowncontexthandles)) + RpcServerUnregisterIfEx(core::mem::transmute(ifspec.unwrap_or(core::mem::zeroed())), core::mem::transmute(mgrtypeuuid.unwrap_or(core::mem::zeroed())), rundowncontexthandles) } #[inline] pub unsafe fn RpcServerUnsubscribeForNotification(binding: Option<*const core::ffi::c_void>, notification: RPC_NOTIFICATIONS, notificationsqueued: *mut u32) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUnsubscribeForNotification(binding : *const core::ffi::c_void, notification : RPC_NOTIFICATIONS, notificationsqueued : *mut u32) -> RPC_STATUS); - RpcServerUnsubscribeForNotification(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), core::mem::transmute(notification), core::mem::transmute(notificationsqueued)) + RpcServerUnsubscribeForNotification(core::mem::transmute(binding.unwrap_or(core::mem::zeroed())), notification, core::mem::transmute(notificationsqueued)) } #[inline] pub unsafe fn RpcServerUseAllProtseqs(maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseAllProtseqs(maxcalls : u32, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseAllProtseqs(core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseAllProtseqs(maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseAllProtseqsEx(maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseAllProtseqsEx(maxcalls : u32, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseAllProtseqsEx(core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseAllProtseqsEx(maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseAllProtseqsIf(maxcalls: u32, ifspec: *const core::ffi::c_void, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseAllProtseqsIf(maxcalls : u32, ifspec : *const core::ffi::c_void, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseAllProtseqsIf(core::mem::transmute(maxcalls), core::mem::transmute(ifspec), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseAllProtseqsIf(maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseAllProtseqsIfEx(maxcalls: u32, ifspec: *const core::ffi::c_void, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseAllProtseqsIfEx(maxcalls : u32, ifspec : *const core::ffi::c_void, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseAllProtseqsIfEx(core::mem::transmute(maxcalls), core::mem::transmute(ifspec), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseAllProtseqsIfEx(maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqA(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2668,7 +2668,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqA(protseq : windows_core::PCSTR, maxcalls : u32, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseProtseqA(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseProtseqA(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseProtseqEpA(protseq: P0, maxcalls: u32, endpoint: P2, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2677,7 +2677,7 @@ where P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqEpA(protseq : windows_core::PCSTR, maxcalls : u32, endpoint : windows_core::PCSTR, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseProtseqEpA(protseq.param().abi(), core::mem::transmute(maxcalls), endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseProtseqEpA(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseProtseqEpExA(protseq: P0, maxcalls: u32, endpoint: P2, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS @@ -2686,7 +2686,7 @@ where P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqEpExA(protseq : windows_core::PCSTR, maxcalls : u32, endpoint : windows_core::PCSTR, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseProtseqEpExA(protseq.param().abi(), core::mem::transmute(maxcalls), endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseProtseqEpExA(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqEpExW(protseq: P0, maxcalls: u32, endpoint: P2, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS @@ -2695,7 +2695,7 @@ where P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqEpExW(protseq : windows_core::PCWSTR, maxcalls : u32, endpoint : windows_core::PCWSTR, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseProtseqEpExW(protseq.param().abi(), core::mem::transmute(maxcalls), endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseProtseqEpExW(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqEpW(protseq: P0, maxcalls: u32, endpoint: P2, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2704,7 +2704,7 @@ where P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqEpW(protseq : windows_core::PCWSTR, maxcalls : u32, endpoint : windows_core::PCWSTR, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseProtseqEpW(protseq.param().abi(), core::mem::transmute(maxcalls), endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseProtseqEpW(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseProtseqExA(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS @@ -2712,7 +2712,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqExA(protseq : windows_core::PCSTR, maxcalls : u32, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseProtseqExA(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseProtseqExA(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqExW(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS @@ -2720,7 +2720,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqExW(protseq : windows_core::PCWSTR, maxcalls : u32, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseProtseqExW(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseProtseqExW(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqIfA(protseq: P0, maxcalls: u32, ifspec: *const core::ffi::c_void, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2728,7 +2728,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqIfA(protseq : windows_core::PCSTR, maxcalls : u32, ifspec : *const core::ffi::c_void, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseProtseqIfA(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(ifspec), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseProtseqIfA(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseProtseqIfExA(protseq: P0, maxcalls: u32, ifspec: *const core::ffi::c_void, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS @@ -2736,7 +2736,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqIfExA(protseq : windows_core::PCSTR, maxcalls : u32, ifspec : *const core::ffi::c_void, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseProtseqIfExA(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(ifspec), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseProtseqIfExA(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqIfExW(protseq: P0, maxcalls: u32, ifspec: *const core::ffi::c_void, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS @@ -2744,7 +2744,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqIfExW(protseq : windows_core::PCWSTR, maxcalls : u32, ifspec : *const core::ffi::c_void, securitydescriptor : *const core::ffi::c_void, policy : *const RPC_POLICY) -> RPC_STATUS); - RpcServerUseProtseqIfExW(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(ifspec), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(policy)) + RpcServerUseProtseqIfExW(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqIfW(protseq: P0, maxcalls: u32, ifspec: *const core::ffi::c_void, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2752,7 +2752,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqIfW(protseq : windows_core::PCWSTR, maxcalls : u32, ifspec : *const core::ffi::c_void, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseProtseqIfW(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(ifspec), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseProtseqIfW(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerUseProtseqW(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS @@ -2760,7 +2760,7 @@ where P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcServerUseProtseqW(protseq : windows_core::PCWSTR, maxcalls : u32, securitydescriptor : *const core::ffi::c_void) -> RPC_STATUS); - RpcServerUseProtseqW(protseq.param().abi(), core::mem::transmute(maxcalls), core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) + RpcServerUseProtseqW(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RpcServerYield() { @@ -2770,17 +2770,17 @@ pub unsafe fn RpcServerYield() { #[inline] pub unsafe fn RpcSmAllocate(size: usize, pstatus: *mut RPC_STATUS) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmAllocate(size : usize, pstatus : *mut RPC_STATUS) -> *mut core::ffi::c_void); - RpcSmAllocate(core::mem::transmute(size), core::mem::transmute(pstatus)) + RpcSmAllocate(size, core::mem::transmute(pstatus)) } #[inline] pub unsafe fn RpcSmClientFree(pnodetofree: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmClientFree(pnodetofree : *const core::ffi::c_void) -> RPC_STATUS); - RpcSmClientFree(core::mem::transmute(pnodetofree)) + RpcSmClientFree(pnodetofree) } #[inline] pub unsafe fn RpcSmDestroyClientContext(contexthandle: *const *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmDestroyClientContext(contexthandle : *const *const core::ffi::c_void) -> RPC_STATUS); - RpcSmDestroyClientContext(core::mem::transmute(contexthandle)) + RpcSmDestroyClientContext(contexthandle) } #[inline] pub unsafe fn RpcSmDisableAllocate() -> RPC_STATUS { @@ -2795,7 +2795,7 @@ pub unsafe fn RpcSmEnableAllocate() -> RPC_STATUS { #[inline] pub unsafe fn RpcSmFree(nodetofree: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmFree(nodetofree : *const core::ffi::c_void) -> RPC_STATUS); - RpcSmFree(core::mem::transmute(nodetofree)) + RpcSmFree(nodetofree) } #[inline] pub unsafe fn RpcSmGetThreadHandle(pstatus: *mut RPC_STATUS) -> *mut core::ffi::c_void { @@ -2805,37 +2805,37 @@ pub unsafe fn RpcSmGetThreadHandle(pstatus: *mut RPC_STATUS) -> *mut core::ffi:: #[inline] pub unsafe fn RpcSmSetClientAllocFree(clientalloc: RPC_CLIENT_ALLOC, clientfree: RPC_CLIENT_FREE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmSetClientAllocFree(clientalloc : RPC_CLIENT_ALLOC, clientfree : RPC_CLIENT_FREE) -> RPC_STATUS); - RpcSmSetClientAllocFree(core::mem::transmute(clientalloc), core::mem::transmute(clientfree)) + RpcSmSetClientAllocFree(clientalloc, clientfree) } #[inline] pub unsafe fn RpcSmSetThreadHandle(id: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmSetThreadHandle(id : *const core::ffi::c_void) -> RPC_STATUS); - RpcSmSetThreadHandle(core::mem::transmute(id)) + RpcSmSetThreadHandle(id) } #[inline] pub unsafe fn RpcSmSwapClientAllocFree(clientalloc: RPC_CLIENT_ALLOC, clientfree: RPC_CLIENT_FREE, oldclientalloc: *mut RPC_CLIENT_ALLOC, oldclientfree: *mut RPC_CLIENT_FREE) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSmSwapClientAllocFree(clientalloc : RPC_CLIENT_ALLOC, clientfree : RPC_CLIENT_FREE, oldclientalloc : *mut RPC_CLIENT_ALLOC, oldclientfree : *mut RPC_CLIENT_FREE) -> RPC_STATUS); - RpcSmSwapClientAllocFree(core::mem::transmute(clientalloc), core::mem::transmute(clientfree), core::mem::transmute(oldclientalloc), core::mem::transmute(oldclientfree)) + RpcSmSwapClientAllocFree(clientalloc, clientfree, core::mem::transmute(oldclientalloc), core::mem::transmute(oldclientfree)) } #[inline] pub unsafe fn RpcSsAllocate(size: usize) -> *mut core::ffi::c_void { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsAllocate(size : usize) -> *mut core::ffi::c_void); - RpcSsAllocate(core::mem::transmute(size)) + RpcSsAllocate(size) } #[inline] pub unsafe fn RpcSsContextLockExclusive(serverbindinghandle: Option<*const core::ffi::c_void>, usercontext: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsContextLockExclusive(serverbindinghandle : *const core::ffi::c_void, usercontext : *const core::ffi::c_void) -> RPC_STATUS); - RpcSsContextLockExclusive(core::mem::transmute(serverbindinghandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(usercontext)) + RpcSsContextLockExclusive(core::mem::transmute(serverbindinghandle.unwrap_or(core::mem::zeroed())), usercontext) } #[inline] pub unsafe fn RpcSsContextLockShared(serverbindinghandle: *const core::ffi::c_void, usercontext: *const core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsContextLockShared(serverbindinghandle : *const core::ffi::c_void, usercontext : *const core::ffi::c_void) -> RPC_STATUS); - RpcSsContextLockShared(core::mem::transmute(serverbindinghandle), core::mem::transmute(usercontext)) + RpcSsContextLockShared(serverbindinghandle, usercontext) } #[inline] pub unsafe fn RpcSsDestroyClientContext(contexthandle: *const *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsDestroyClientContext(contexthandle : *const *const core::ffi::c_void)); - RpcSsDestroyClientContext(core::mem::transmute(contexthandle)) + RpcSsDestroyClientContext(contexthandle) } #[inline] pub unsafe fn RpcSsDisableAllocate() { @@ -2855,12 +2855,12 @@ pub unsafe fn RpcSsEnableAllocate() { #[inline] pub unsafe fn RpcSsFree(nodetofree: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsFree(nodetofree : *const core::ffi::c_void)); - RpcSsFree(core::mem::transmute(nodetofree)) + RpcSsFree(nodetofree) } #[inline] pub unsafe fn RpcSsGetContextBinding(contexthandle: *const core::ffi::c_void, binding: *mut *mut core::ffi::c_void) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsGetContextBinding(contexthandle : *const core::ffi::c_void, binding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcSsGetContextBinding(core::mem::transmute(contexthandle), core::mem::transmute(binding)) + RpcSsGetContextBinding(contexthandle, core::mem::transmute(binding)) } #[inline] pub unsafe fn RpcSsGetThreadHandle() -> *mut core::ffi::c_void { @@ -2870,17 +2870,17 @@ pub unsafe fn RpcSsGetThreadHandle() -> *mut core::ffi::c_void { #[inline] pub unsafe fn RpcSsSetClientAllocFree(clientalloc: RPC_CLIENT_ALLOC, clientfree: RPC_CLIENT_FREE) { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsSetClientAllocFree(clientalloc : RPC_CLIENT_ALLOC, clientfree : RPC_CLIENT_FREE)); - RpcSsSetClientAllocFree(core::mem::transmute(clientalloc), core::mem::transmute(clientfree)) + RpcSsSetClientAllocFree(clientalloc, clientfree) } #[inline] pub unsafe fn RpcSsSetThreadHandle(id: *const core::ffi::c_void) { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsSetThreadHandle(id : *const core::ffi::c_void)); - RpcSsSetThreadHandle(core::mem::transmute(id)) + RpcSsSetThreadHandle(id) } #[inline] pub unsafe fn RpcSsSwapClientAllocFree(clientalloc: RPC_CLIENT_ALLOC, clientfree: RPC_CLIENT_FREE, oldclientalloc: *mut RPC_CLIENT_ALLOC, oldclientfree: *mut RPC_CLIENT_FREE) { windows_targets::link!("rpcrt4.dll" "system" fn RpcSsSwapClientAllocFree(clientalloc : RPC_CLIENT_ALLOC, clientfree : RPC_CLIENT_FREE, oldclientalloc : *mut RPC_CLIENT_ALLOC, oldclientfree : *mut RPC_CLIENT_FREE)); - RpcSsSwapClientAllocFree(core::mem::transmute(clientalloc), core::mem::transmute(clientfree), core::mem::transmute(oldclientalloc), core::mem::transmute(oldclientfree)) + RpcSsSwapClientAllocFree(clientalloc, clientfree, core::mem::transmute(oldclientalloc), core::mem::transmute(oldclientfree)) } #[inline] pub unsafe fn RpcStringBindingComposeA(objuuid: P0, protseq: P1, networkaddr: P2, endpoint: P3, options: P4, stringbinding: Option<*mut windows_core::PSTR>) -> RPC_STATUS @@ -2945,7 +2945,7 @@ pub unsafe fn RpcUserFree(asynchandle: *mut core::ffi::c_void, pbuffer: *mut cor #[inline] pub unsafe fn UuidCompare(uuid1: *const windows_core::GUID, uuid2: *const windows_core::GUID, status: *mut RPC_STATUS) -> i32 { windows_targets::link!("rpcrt4.dll" "system" fn UuidCompare(uuid1 : *const windows_core::GUID, uuid2 : *const windows_core::GUID, status : *mut RPC_STATUS) -> i32); - UuidCompare(core::mem::transmute(uuid1), core::mem::transmute(uuid2), core::mem::transmute(status)) + UuidCompare(uuid1, uuid2, core::mem::transmute(status)) } #[inline] pub unsafe fn UuidCreate(uuid: *mut windows_core::GUID) -> RPC_STATUS { @@ -2965,7 +2965,7 @@ pub unsafe fn UuidCreateSequential(uuid: *mut windows_core::GUID) -> RPC_STATUS #[inline] pub unsafe fn UuidEqual(uuid1: *const windows_core::GUID, uuid2: *const windows_core::GUID, status: *mut RPC_STATUS) -> i32 { windows_targets::link!("rpcrt4.dll" "system" fn UuidEqual(uuid1 : *const windows_core::GUID, uuid2 : *const windows_core::GUID, status : *mut RPC_STATUS) -> i32); - UuidEqual(core::mem::transmute(uuid1), core::mem::transmute(uuid2), core::mem::transmute(status)) + UuidEqual(uuid1, uuid2, core::mem::transmute(status)) } #[inline] pub unsafe fn UuidFromStringA(stringuuid: P0, uuid: *mut windows_core::GUID) -> RPC_STATUS @@ -2986,22 +2986,22 @@ where #[inline] pub unsafe fn UuidHash(uuid: *const windows_core::GUID, status: *mut RPC_STATUS) -> u16 { windows_targets::link!("rpcrt4.dll" "system" fn UuidHash(uuid : *const windows_core::GUID, status : *mut RPC_STATUS) -> u16); - UuidHash(core::mem::transmute(uuid), core::mem::transmute(status)) + UuidHash(uuid, core::mem::transmute(status)) } #[inline] pub unsafe fn UuidIsNil(uuid: *const windows_core::GUID, status: *mut RPC_STATUS) -> i32 { windows_targets::link!("rpcrt4.dll" "system" fn UuidIsNil(uuid : *const windows_core::GUID, status : *mut RPC_STATUS) -> i32); - UuidIsNil(core::mem::transmute(uuid), core::mem::transmute(status)) + UuidIsNil(uuid, core::mem::transmute(status)) } #[inline] pub unsafe fn UuidToStringA(uuid: *const windows_core::GUID, stringuuid: *mut windows_core::PSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn UuidToStringA(uuid : *const windows_core::GUID, stringuuid : *mut windows_core::PSTR) -> RPC_STATUS); - UuidToStringA(core::mem::transmute(uuid), core::mem::transmute(stringuuid)) + UuidToStringA(uuid, core::mem::transmute(stringuuid)) } #[inline] pub unsafe fn UuidToStringW(uuid: *const windows_core::GUID, stringuuid: *mut windows_core::PWSTR) -> RPC_STATUS { windows_targets::link!("rpcrt4.dll" "system" fn UuidToStringW(uuid : *const windows_core::GUID, stringuuid : *mut windows_core::PWSTR) -> RPC_STATUS); - UuidToStringW(core::mem::transmute(uuid), core::mem::transmute(stringuuid)) + UuidToStringW(uuid, core::mem::transmute(stringuuid)) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs index 32624aa9e6..40b7579119 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -8,7 +8,7 @@ pub unsafe fn ODBCGetTryWaitValue() -> u32 { #[inline] pub unsafe fn ODBCSetTryWaitValue(dwvalue: u32) -> super::super::Foundation::BOOL { windows_targets::link!("odbc32.dll" "system" fn ODBCSetTryWaitValue(dwvalue : u32) -> super::super::Foundation:: BOOL); - ODBCSetTryWaitValue(core::mem::transmute(dwvalue)) + ODBCSetTryWaitValue(dwvalue) } #[inline] pub unsafe fn SQLAllocConnect(environmenthandle: *mut core::ffi::c_void, connectionhandle: *mut *mut core::ffi::c_void) -> i16 { @@ -23,12 +23,12 @@ pub unsafe fn SQLAllocEnv(environmenthandle: *mut *mut core::ffi::c_void) -> i16 #[inline] pub unsafe fn SQLAllocHandle(handletype: i16, inputhandle: *mut core::ffi::c_void, outputhandle: *mut *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLAllocHandle(handletype : i16, inputhandle : *mut core::ffi::c_void, outputhandle : *mut *mut core::ffi::c_void) -> i16); - SQLAllocHandle(core::mem::transmute(handletype), core::mem::transmute(inputhandle), core::mem::transmute(outputhandle)) + SQLAllocHandle(handletype, core::mem::transmute(inputhandle), core::mem::transmute(outputhandle)) } #[inline] pub unsafe fn SQLAllocHandleStd(fhandletype: i16, hinput: *mut core::ffi::c_void, phoutput: *mut *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLAllocHandleStd(fhandletype : i16, hinput : *mut core::ffi::c_void, phoutput : *mut *mut core::ffi::c_void) -> i16); - SQLAllocHandleStd(core::mem::transmute(fhandletype), core::mem::transmute(hinput), core::mem::transmute(phoutput)) + SQLAllocHandleStd(fhandletype, core::mem::transmute(hinput), core::mem::transmute(phoutput)) } #[inline] pub unsafe fn SQLAllocStmt(connectionhandle: *mut core::ffi::c_void, statementhandle: *mut *mut core::ffi::c_void) -> i16 { @@ -39,37 +39,37 @@ pub unsafe fn SQLAllocStmt(connectionhandle: *mut core::ffi::c_void, statementha #[inline] pub unsafe fn SQLBindCol(statementhandle: *mut core::ffi::c_void, columnnumber: u16, targettype: i16, targetvalue: Option<*mut core::ffi::c_void>, bufferlength: i32, strlen_or_ind: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBindCol(statementhandle : *mut core::ffi::c_void, columnnumber : u16, targettype : i16, targetvalue : *mut core::ffi::c_void, bufferlength : i32, strlen_or_ind : *mut i32) -> i16); - SQLBindCol(core::mem::transmute(statementhandle), core::mem::transmute(columnnumber), core::mem::transmute(targettype), core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(strlen_or_ind.unwrap_or(core::mem::zeroed()))) + SQLBindCol(core::mem::transmute(statementhandle), columnnumber, targettype, core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(strlen_or_ind.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLBindCol(statementhandle: *mut core::ffi::c_void, columnnumber: u16, targettype: i16, targetvalue: Option<*mut core::ffi::c_void>, bufferlength: i64, strlen_or_ind: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBindCol(statementhandle : *mut core::ffi::c_void, columnnumber : u16, targettype : i16, targetvalue : *mut core::ffi::c_void, bufferlength : i64, strlen_or_ind : *mut i64) -> i16); - SQLBindCol(core::mem::transmute(statementhandle), core::mem::transmute(columnnumber), core::mem::transmute(targettype), core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(strlen_or_ind.unwrap_or(core::mem::zeroed()))) + SQLBindCol(core::mem::transmute(statementhandle), columnnumber, targettype, core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(strlen_or_ind.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLBindParam(statementhandle: *mut core::ffi::c_void, parameternumber: u16, valuetype: i16, parametertype: i16, lengthprecision: u32, parameterscale: i16, parametervalue: *mut core::ffi::c_void, strlen_or_ind: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBindParam(statementhandle : *mut core::ffi::c_void, parameternumber : u16, valuetype : i16, parametertype : i16, lengthprecision : u32, parameterscale : i16, parametervalue : *mut core::ffi::c_void, strlen_or_ind : *mut i32) -> i16); - SQLBindParam(core::mem::transmute(statementhandle), core::mem::transmute(parameternumber), core::mem::transmute(valuetype), core::mem::transmute(parametertype), core::mem::transmute(lengthprecision), core::mem::transmute(parameterscale), core::mem::transmute(parametervalue), core::mem::transmute(strlen_or_ind)) + SQLBindParam(core::mem::transmute(statementhandle), parameternumber, valuetype, parametertype, lengthprecision, parameterscale, core::mem::transmute(parametervalue), core::mem::transmute(strlen_or_ind)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLBindParam(statementhandle: *mut core::ffi::c_void, parameternumber: u16, valuetype: i16, parametertype: i16, lengthprecision: u64, parameterscale: i16, parametervalue: *mut core::ffi::c_void, strlen_or_ind: *mut i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBindParam(statementhandle : *mut core::ffi::c_void, parameternumber : u16, valuetype : i16, parametertype : i16, lengthprecision : u64, parameterscale : i16, parametervalue : *mut core::ffi::c_void, strlen_or_ind : *mut i64) -> i16); - SQLBindParam(core::mem::transmute(statementhandle), core::mem::transmute(parameternumber), core::mem::transmute(valuetype), core::mem::transmute(parametertype), core::mem::transmute(lengthprecision), core::mem::transmute(parameterscale), core::mem::transmute(parametervalue), core::mem::transmute(strlen_or_ind)) + SQLBindParam(core::mem::transmute(statementhandle), parameternumber, valuetype, parametertype, lengthprecision, parameterscale, core::mem::transmute(parametervalue), core::mem::transmute(strlen_or_ind)) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLBindParameter(hstmt: *mut core::ffi::c_void, ipar: u16, fparamtype: i16, fctype: i16, fsqltype: i16, cbcoldef: u32, ibscale: i16, rgbvalue: *mut core::ffi::c_void, cbvaluemax: i32, pcbvalue: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBindParameter(hstmt : *mut core::ffi::c_void, ipar : u16, fparamtype : i16, fctype : i16, fsqltype : i16, cbcoldef : u32, ibscale : i16, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i32, pcbvalue : *mut i32) -> i16); - SQLBindParameter(core::mem::transmute(hstmt), core::mem::transmute(ipar), core::mem::transmute(fparamtype), core::mem::transmute(fctype), core::mem::transmute(fsqltype), core::mem::transmute(cbcoldef), core::mem::transmute(ibscale), core::mem::transmute(rgbvalue), core::mem::transmute(cbvaluemax), core::mem::transmute(pcbvalue)) + SQLBindParameter(core::mem::transmute(hstmt), ipar, fparamtype, fctype, fsqltype, cbcoldef, ibscale, core::mem::transmute(rgbvalue), cbvaluemax, core::mem::transmute(pcbvalue)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLBindParameter(hstmt: *mut core::ffi::c_void, ipar: u16, fparamtype: i16, fctype: i16, fsqltype: i16, cbcoldef: u64, ibscale: i16, rgbvalue: *mut core::ffi::c_void, cbvaluemax: i64, pcbvalue: *mut i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBindParameter(hstmt : *mut core::ffi::c_void, ipar : u16, fparamtype : i16, fctype : i16, fsqltype : i16, cbcoldef : u64, ibscale : i16, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i64, pcbvalue : *mut i64) -> i16); - SQLBindParameter(core::mem::transmute(hstmt), core::mem::transmute(ipar), core::mem::transmute(fparamtype), core::mem::transmute(fctype), core::mem::transmute(fsqltype), core::mem::transmute(cbcoldef), core::mem::transmute(ibscale), core::mem::transmute(rgbvalue), core::mem::transmute(cbvaluemax), core::mem::transmute(pcbvalue)) + SQLBindParameter(core::mem::transmute(hstmt), ipar, fparamtype, fctype, fsqltype, cbcoldef, ibscale, core::mem::transmute(rgbvalue), cbvaluemax, core::mem::transmute(pcbvalue)) } #[inline] pub unsafe fn SQLBrowseConnect(hdbc: *mut core::ffi::c_void, szconnstrin: &[u8], szconnstrout: Option<&mut [u8]>, pcchconnstrout: Option<*mut i16>) -> i16 { @@ -89,7 +89,7 @@ pub unsafe fn SQLBrowseConnectW(hdbc: *mut core::ffi::c_void, szconnstrin: &[u16 #[inline] pub unsafe fn SQLBulkOperations(statementhandle: *mut core::ffi::c_void, operation: i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLBulkOperations(statementhandle : *mut core::ffi::c_void, operation : i16) -> i16); - SQLBulkOperations(core::mem::transmute(statementhandle), core::mem::transmute(operation)) + SQLBulkOperations(core::mem::transmute(statementhandle), operation) } #[inline] pub unsafe fn SQLCancel(statementhandle: *mut core::ffi::c_void) -> i16 { @@ -99,7 +99,7 @@ pub unsafe fn SQLCancel(statementhandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLCancelHandle(handletype: i16, inputhandle: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLCancelHandle(handletype : i16, inputhandle : *mut core::ffi::c_void) -> i16); - SQLCancelHandle(core::mem::transmute(handletype), core::mem::transmute(inputhandle)) + SQLCancelHandle(handletype, core::mem::transmute(inputhandle)) } #[inline] pub unsafe fn SQLCloseCursor(statementhandle: *mut core::ffi::c_void) -> i16 { @@ -109,79 +109,79 @@ pub unsafe fn SQLCloseCursor(statementhandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLCloseEnumServers(henumhandle: super::super::Foundation::HANDLE) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn SQLCloseEnumServers(henumhandle : super::super::Foundation:: HANDLE) -> i16); - SQLCloseEnumServers(core::mem::transmute(henumhandle)) + SQLCloseEnumServers(henumhandle) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLColAttribute(statementhandle: *mut core::ffi::c_void, columnnumber: u16, fieldidentifier: u16, characterattribute: Option<*mut core::ffi::c_void>, bufferlength: i16, stringlength: Option<*mut i16>, numericattribute: Option<*mut core::ffi::c_void>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttribute(statementhandle : *mut core::ffi::c_void, columnnumber : u16, fieldidentifier : u16, characterattribute : *mut core::ffi::c_void, bufferlength : i16, stringlength : *mut i16, numericattribute : *mut core::ffi::c_void) -> i16); - SQLColAttribute(core::mem::transmute(statementhandle), core::mem::transmute(columnnumber), core::mem::transmute(fieldidentifier), core::mem::transmute(characterattribute.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(numericattribute.unwrap_or(core::mem::zeroed()))) + SQLColAttribute(core::mem::transmute(statementhandle), columnnumber, fieldidentifier, core::mem::transmute(characterattribute.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(numericattribute.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLColAttribute(statementhandle: *mut core::ffi::c_void, columnnumber: u16, fieldidentifier: u16, characterattribute: Option<*mut core::ffi::c_void>, bufferlength: i16, stringlength: Option<*mut i16>, numericattribute: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttribute(statementhandle : *mut core::ffi::c_void, columnnumber : u16, fieldidentifier : u16, characterattribute : *mut core::ffi::c_void, bufferlength : i16, stringlength : *mut i16, numericattribute : *mut i64) -> i16); - SQLColAttribute(core::mem::transmute(statementhandle), core::mem::transmute(columnnumber), core::mem::transmute(fieldidentifier), core::mem::transmute(characterattribute.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(numericattribute.unwrap_or(core::mem::zeroed()))) + SQLColAttribute(core::mem::transmute(statementhandle), columnnumber, fieldidentifier, core::mem::transmute(characterattribute.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(numericattribute.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLColAttributeA(hstmt: *mut core::ffi::c_void, icol: i16, ifield: i16, pcharattr: Option<*mut core::ffi::c_void>, cbcharattrmax: i16, pcbcharattr: Option<*mut i16>, pnumattr: Option<*mut core::ffi::c_void>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributeA(hstmt : *mut core::ffi::c_void, icol : i16, ifield : i16, pcharattr : *mut core::ffi::c_void, cbcharattrmax : i16, pcbcharattr : *mut i16, pnumattr : *mut core::ffi::c_void) -> i16); - SQLColAttributeA(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(ifield), core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbcharattrmax), core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) + SQLColAttributeA(core::mem::transmute(hstmt), icol, ifield, core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), cbcharattrmax, core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLColAttributeA(hstmt: *mut core::ffi::c_void, icol: i16, ifield: i16, pcharattr: Option<*mut core::ffi::c_void>, cbcharattrmax: i16, pcbcharattr: Option<*mut i16>, pnumattr: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributeA(hstmt : *mut core::ffi::c_void, icol : i16, ifield : i16, pcharattr : *mut core::ffi::c_void, cbcharattrmax : i16, pcbcharattr : *mut i16, pnumattr : *mut i64) -> i16); - SQLColAttributeA(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(ifield), core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbcharattrmax), core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) + SQLColAttributeA(core::mem::transmute(hstmt), icol, ifield, core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), cbcharattrmax, core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLColAttributeW(hstmt: *mut core::ffi::c_void, icol: u16, ifield: u16, pcharattr: Option<*mut core::ffi::c_void>, cbdescmax: i16, pcbcharattr: Option<*mut i16>, pnumattr: Option<*mut core::ffi::c_void>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributeW(hstmt : *mut core::ffi::c_void, icol : u16, ifield : u16, pcharattr : *mut core::ffi::c_void, cbdescmax : i16, pcbcharattr : *mut i16, pnumattr : *mut core::ffi::c_void) -> i16); - SQLColAttributeW(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(ifield), core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdescmax), core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) + SQLColAttributeW(core::mem::transmute(hstmt), icol, ifield, core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), cbdescmax, core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLColAttributeW(hstmt: *mut core::ffi::c_void, icol: u16, ifield: u16, pcharattr: Option<*mut core::ffi::c_void>, cbdescmax: i16, pcbcharattr: Option<*mut i16>, pnumattr: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributeW(hstmt : *mut core::ffi::c_void, icol : u16, ifield : u16, pcharattr : *mut core::ffi::c_void, cbdescmax : i16, pcbcharattr : *mut i16, pnumattr : *mut i64) -> i16); - SQLColAttributeW(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(ifield), core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdescmax), core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) + SQLColAttributeW(core::mem::transmute(hstmt), icol, ifield, core::mem::transmute(pcharattr.unwrap_or(core::mem::zeroed())), cbdescmax, core::mem::transmute(pcbcharattr.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnumattr.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLColAttributes(hstmt: *mut core::ffi::c_void, icol: u16, fdesctype: u16, rgbdesc: *mut core::ffi::c_void, cbdescmax: i16, pcbdesc: *mut i16, pfdesc: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributes(hstmt : *mut core::ffi::c_void, icol : u16, fdesctype : u16, rgbdesc : *mut core::ffi::c_void, cbdescmax : i16, pcbdesc : *mut i16, pfdesc : *mut i32) -> i16); - SQLColAttributes(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(fdesctype), core::mem::transmute(rgbdesc), core::mem::transmute(cbdescmax), core::mem::transmute(pcbdesc), core::mem::transmute(pfdesc)) + SQLColAttributes(core::mem::transmute(hstmt), icol, fdesctype, core::mem::transmute(rgbdesc), cbdescmax, core::mem::transmute(pcbdesc), core::mem::transmute(pfdesc)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLColAttributes(hstmt: *mut core::ffi::c_void, icol: u16, fdesctype: u16, rgbdesc: *mut core::ffi::c_void, cbdescmax: i16, pcbdesc: *mut i16, pfdesc: *mut i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributes(hstmt : *mut core::ffi::c_void, icol : u16, fdesctype : u16, rgbdesc : *mut core::ffi::c_void, cbdescmax : i16, pcbdesc : *mut i16, pfdesc : *mut i64) -> i16); - SQLColAttributes(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(fdesctype), core::mem::transmute(rgbdesc), core::mem::transmute(cbdescmax), core::mem::transmute(pcbdesc), core::mem::transmute(pfdesc)) + SQLColAttributes(core::mem::transmute(hstmt), icol, fdesctype, core::mem::transmute(rgbdesc), cbdescmax, core::mem::transmute(pcbdesc), core::mem::transmute(pfdesc)) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLColAttributesA(hstmt: *mut core::ffi::c_void, icol: u16, fdesctype: u16, rgbdesc: Option<*mut core::ffi::c_void>, cbdescmax: i16, pcbdesc: Option<*mut i16>, pfdesc: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributesA(hstmt : *mut core::ffi::c_void, icol : u16, fdesctype : u16, rgbdesc : *mut core::ffi::c_void, cbdescmax : i16, pcbdesc : *mut i16, pfdesc : *mut i32) -> i16); - SQLColAttributesA(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(fdesctype), core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdescmax), core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) + SQLColAttributesA(core::mem::transmute(hstmt), icol, fdesctype, core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), cbdescmax, core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLColAttributesA(hstmt: *mut core::ffi::c_void, icol: u16, fdesctype: u16, rgbdesc: Option<*mut core::ffi::c_void>, cbdescmax: i16, pcbdesc: Option<*mut i16>, pfdesc: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributesA(hstmt : *mut core::ffi::c_void, icol : u16, fdesctype : u16, rgbdesc : *mut core::ffi::c_void, cbdescmax : i16, pcbdesc : *mut i16, pfdesc : *mut i64) -> i16); - SQLColAttributesA(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(fdesctype), core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdescmax), core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) + SQLColAttributesA(core::mem::transmute(hstmt), icol, fdesctype, core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), cbdescmax, core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLColAttributesW(hstmt: *mut core::ffi::c_void, icol: u16, fdesctype: u16, rgbdesc: Option<*mut core::ffi::c_void>, cbdescmax: i16, pcbdesc: Option<*mut i16>, pfdesc: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributesW(hstmt : *mut core::ffi::c_void, icol : u16, fdesctype : u16, rgbdesc : *mut core::ffi::c_void, cbdescmax : i16, pcbdesc : *mut i16, pfdesc : *mut i32) -> i16); - SQLColAttributesW(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(fdesctype), core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdescmax), core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) + SQLColAttributesW(core::mem::transmute(hstmt), icol, fdesctype, core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), cbdescmax, core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLColAttributesW(hstmt: *mut core::ffi::c_void, icol: u16, fdesctype: u16, rgbdesc: Option<*mut core::ffi::c_void>, cbdescmax: i16, pcbdesc: Option<*mut i16>, pfdesc: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLColAttributesW(hstmt : *mut core::ffi::c_void, icol : u16, fdesctype : u16, rgbdesc : *mut core::ffi::c_void, cbdescmax : i16, pcbdesc : *mut i16, pfdesc : *mut i64) -> i16); - SQLColAttributesW(core::mem::transmute(hstmt), core::mem::transmute(icol), core::mem::transmute(fdesctype), core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdescmax), core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) + SQLColAttributesW(core::mem::transmute(hstmt), icol, fdesctype, core::mem::transmute(rgbdesc.unwrap_or(core::mem::zeroed())), cbdescmax, core::mem::transmute(pcbdesc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfdesc.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLColumnPrivileges(hstmt: *mut core::ffi::c_void, szcatalogname: Option<&[u8]>, szschemaname: Option<&[u8]>, sztablename: Option<&[u8]>, szcolumnname: Option<&[u8]>) -> i16 { @@ -276,7 +276,7 @@ pub unsafe fn SQLColumnsW(hstmt: *mut core::ffi::c_void, szcatalogname: Option<& #[inline] pub unsafe fn SQLCompleteAsync(handletype: i16, handle: *mut core::ffi::c_void, asyncretcodeptr: *mut i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLCompleteAsync(handletype : i16, handle : *mut core::ffi::c_void, asyncretcodeptr : *mut i16) -> i16); - SQLCompleteAsync(core::mem::transmute(handletype), core::mem::transmute(handle), core::mem::transmute(asyncretcodeptr)) + SQLCompleteAsync(handletype, core::mem::transmute(handle), core::mem::transmute(asyncretcodeptr)) } #[inline] pub unsafe fn SQLConnect(connectionhandle: *mut core::ffi::c_void, servername: &[u8], username: &[u8], authentication: &[u8]) -> i16 { @@ -303,7 +303,7 @@ pub unsafe fn SQLDataSources(environmenthandle: *mut core::ffi::c_void, directio windows_targets::link!("odbc32.dll" "system" fn SQLDataSources(environmenthandle : *mut core::ffi::c_void, direction : u16, servername : *mut u8, bufferlength1 : i16, namelength1ptr : *mut i16, description : *mut u8, bufferlength2 : i16, namelength2ptr : *mut i16) -> i16); SQLDataSources( core::mem::transmute(environmenthandle), - core::mem::transmute(direction), + direction, core::mem::transmute(servername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), servername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namelength1ptr.unwrap_or(core::mem::zeroed())), @@ -315,14 +315,14 @@ pub unsafe fn SQLDataSources(environmenthandle: *mut core::ffi::c_void, directio #[inline] pub unsafe fn SQLDataSourcesA(henv: *mut core::ffi::c_void, fdirection: u16, szdsn: Option<&mut [u8]>, pcbdsn: *mut i16, szdescription: Option<&mut [u8]>, pcbdescription: *mut i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDataSourcesA(henv : *mut core::ffi::c_void, fdirection : u16, szdsn : *mut u8, cbdsnmax : i16, pcbdsn : *mut i16, szdescription : *mut u8, cbdescriptionmax : i16, pcbdescription : *mut i16) -> i16); - SQLDataSourcesA(core::mem::transmute(henv), core::mem::transmute(fdirection), core::mem::transmute(szdsn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdsn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdsn), core::mem::transmute(szdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdescription)) + SQLDataSourcesA(core::mem::transmute(henv), fdirection, core::mem::transmute(szdsn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdsn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdsn), core::mem::transmute(szdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdescription)) } #[inline] pub unsafe fn SQLDataSourcesW(henv: *mut core::ffi::c_void, fdirection: u16, szdsn: Option<&mut [u16]>, pcchdsn: Option<*mut i16>, wszdescription: Option<&mut [u16]>, pcchdescription: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDataSourcesW(henv : *mut core::ffi::c_void, fdirection : u16, szdsn : *mut u16, cchdsnmax : i16, pcchdsn : *mut i16, wszdescription : *mut u16, cchdescriptionmax : i16, pcchdescription : *mut i16) -> i16); SQLDataSourcesW( core::mem::transmute(henv), - core::mem::transmute(fdirection), + fdirection, core::mem::transmute(szdsn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdsn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchdsn.unwrap_or(core::mem::zeroed())), @@ -337,7 +337,7 @@ pub unsafe fn SQLDescribeCol(statementhandle: *mut core::ffi::c_void, columnnumb windows_targets::link!("odbc32.dll" "system" fn SQLDescribeCol(statementhandle : *mut core::ffi::c_void, columnnumber : u16, columnname : *mut u8, bufferlength : i16, namelength : *mut i16, datatype : *mut i16, columnsize : *mut u32, decimaldigits : *mut i16, nullable : *mut i16) -> i16); SQLDescribeCol( core::mem::transmute(statementhandle), - core::mem::transmute(columnnumber), + columnnumber, core::mem::transmute(columnname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), columnname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namelength.unwrap_or(core::mem::zeroed())), @@ -353,7 +353,7 @@ pub unsafe fn SQLDescribeCol(statementhandle: *mut core::ffi::c_void, columnnumb windows_targets::link!("odbc32.dll" "system" fn SQLDescribeCol(statementhandle : *mut core::ffi::c_void, columnnumber : u16, columnname : *mut u8, bufferlength : i16, namelength : *mut i16, datatype : *mut i16, columnsize : *mut u64, decimaldigits : *mut i16, nullable : *mut i16) -> i16); SQLDescribeCol( core::mem::transmute(statementhandle), - core::mem::transmute(columnnumber), + columnnumber, core::mem::transmute(columnname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), columnname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(namelength.unwrap_or(core::mem::zeroed())), @@ -369,7 +369,7 @@ pub unsafe fn SQLDescribeColA(hstmt: *mut core::ffi::c_void, icol: u16, szcolnam windows_targets::link!("odbc32.dll" "system" fn SQLDescribeColA(hstmt : *mut core::ffi::c_void, icol : u16, szcolname : *mut u8, cbcolnamemax : i16, pcbcolname : *mut i16, pfsqltype : *mut i16, pcbcoldef : *mut u32, pibscale : *mut i16, pfnullable : *mut i16) -> i16); SQLDescribeColA( core::mem::transmute(hstmt), - core::mem::transmute(icol), + icol, core::mem::transmute(szcolname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szcolname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbcolname.unwrap_or(core::mem::zeroed())), @@ -385,7 +385,7 @@ pub unsafe fn SQLDescribeColA(hstmt: *mut core::ffi::c_void, icol: u16, szcolnam windows_targets::link!("odbc32.dll" "system" fn SQLDescribeColA(hstmt : *mut core::ffi::c_void, icol : u16, szcolname : *mut u8, cbcolnamemax : i16, pcbcolname : *mut i16, pfsqltype : *mut i16, pcbcoldef : *mut u64, pibscale : *mut i16, pfnullable : *mut i16) -> i16); SQLDescribeColA( core::mem::transmute(hstmt), - core::mem::transmute(icol), + icol, core::mem::transmute(szcolname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szcolname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbcolname.unwrap_or(core::mem::zeroed())), @@ -401,7 +401,7 @@ pub unsafe fn SQLDescribeColW(hstmt: *mut core::ffi::c_void, icol: u16, szcolnam windows_targets::link!("odbc32.dll" "system" fn SQLDescribeColW(hstmt : *mut core::ffi::c_void, icol : u16, szcolname : *mut u16, cchcolnamemax : i16, pcchcolname : *mut i16, pfsqltype : *mut i16, pcbcoldef : *mut u32, pibscale : *mut i16, pfnullable : *mut i16) -> i16); SQLDescribeColW( core::mem::transmute(hstmt), - core::mem::transmute(icol), + icol, core::mem::transmute(szcolname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szcolname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchcolname.unwrap_or(core::mem::zeroed())), @@ -417,7 +417,7 @@ pub unsafe fn SQLDescribeColW(hstmt: *mut core::ffi::c_void, icol: u16, szcolnam windows_targets::link!("odbc32.dll" "system" fn SQLDescribeColW(hstmt : *mut core::ffi::c_void, icol : u16, szcolname : *mut u16, cchcolnamemax : i16, pcchcolname : *mut i16, pfsqltype : *mut i16, pcbcoldef : *mut u64, pibscale : *mut i16, pfnullable : *mut i16) -> i16); SQLDescribeColW( core::mem::transmute(hstmt), - core::mem::transmute(icol), + icol, core::mem::transmute(szcolname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szcolname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchcolname.unwrap_or(core::mem::zeroed())), @@ -431,13 +431,13 @@ pub unsafe fn SQLDescribeColW(hstmt: *mut core::ffi::c_void, icol: u16, szcolnam #[inline] pub unsafe fn SQLDescribeParam(hstmt: *mut core::ffi::c_void, ipar: u16, pfsqltype: Option<*mut i16>, pcbparamdef: Option<*mut u32>, pibscale: Option<*mut i16>, pfnullable: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDescribeParam(hstmt : *mut core::ffi::c_void, ipar : u16, pfsqltype : *mut i16, pcbparamdef : *mut u32, pibscale : *mut i16, pfnullable : *mut i16) -> i16); - SQLDescribeParam(core::mem::transmute(hstmt), core::mem::transmute(ipar), core::mem::transmute(pfsqltype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbparamdef.unwrap_or(core::mem::zeroed())), core::mem::transmute(pibscale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnullable.unwrap_or(core::mem::zeroed()))) + SQLDescribeParam(core::mem::transmute(hstmt), ipar, core::mem::transmute(pfsqltype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbparamdef.unwrap_or(core::mem::zeroed())), core::mem::transmute(pibscale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnullable.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLDescribeParam(hstmt: *mut core::ffi::c_void, ipar: u16, pfsqltype: Option<*mut i16>, pcbparamdef: Option<*mut u64>, pibscale: Option<*mut i16>, pfnullable: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDescribeParam(hstmt : *mut core::ffi::c_void, ipar : u16, pfsqltype : *mut i16, pcbparamdef : *mut u64, pibscale : *mut i16, pfnullable : *mut i16) -> i16); - SQLDescribeParam(core::mem::transmute(hstmt), core::mem::transmute(ipar), core::mem::transmute(pfsqltype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbparamdef.unwrap_or(core::mem::zeroed())), core::mem::transmute(pibscale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnullable.unwrap_or(core::mem::zeroed()))) + SQLDescribeParam(core::mem::transmute(hstmt), ipar, core::mem::transmute(pfsqltype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbparamdef.unwrap_or(core::mem::zeroed())), core::mem::transmute(pibscale.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnullable.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLDisconnect(connectionhandle: *mut core::ffi::c_void) -> i16 { @@ -447,24 +447,24 @@ pub unsafe fn SQLDisconnect(connectionhandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLDriverConnect(hdbc: *mut core::ffi::c_void, hwnd: isize, szconnstrin: &[u8], szconnstrout: Option<&mut [u8]>, pcchconnstrout: Option<*mut i16>, fdrivercompletion: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDriverConnect(hdbc : *mut core::ffi::c_void, hwnd : isize, szconnstrin : *const u8, cchconnstrin : i16, szconnstrout : *mut u8, cchconnstroutmax : i16, pcchconnstrout : *mut i16, fdrivercompletion : u16) -> i16); - SQLDriverConnect(core::mem::transmute(hdbc), core::mem::transmute(hwnd), core::mem::transmute(szconnstrin.as_ptr()), szconnstrin.len().try_into().unwrap(), core::mem::transmute(szconnstrout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szconnstrout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchconnstrout.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdrivercompletion)) + SQLDriverConnect(core::mem::transmute(hdbc), hwnd, core::mem::transmute(szconnstrin.as_ptr()), szconnstrin.len().try_into().unwrap(), core::mem::transmute(szconnstrout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szconnstrout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchconnstrout.unwrap_or(core::mem::zeroed())), fdrivercompletion) } #[inline] pub unsafe fn SQLDriverConnectA(hdbc: *mut core::ffi::c_void, hwnd: isize, szconnstrin: &[u8], szconnstrout: Option<&mut [u8]>, pcbconnstrout: Option<*mut i16>, fdrivercompletion: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDriverConnectA(hdbc : *mut core::ffi::c_void, hwnd : isize, szconnstrin : *const u8, cbconnstrin : i16, szconnstrout : *mut u8, cbconnstroutmax : i16, pcbconnstrout : *mut i16, fdrivercompletion : u16) -> i16); - SQLDriverConnectA(core::mem::transmute(hdbc), core::mem::transmute(hwnd), core::mem::transmute(szconnstrin.as_ptr()), szconnstrin.len().try_into().unwrap(), core::mem::transmute(szconnstrout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szconnstrout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbconnstrout.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdrivercompletion)) + SQLDriverConnectA(core::mem::transmute(hdbc), hwnd, core::mem::transmute(szconnstrin.as_ptr()), szconnstrin.len().try_into().unwrap(), core::mem::transmute(szconnstrout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szconnstrout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbconnstrout.unwrap_or(core::mem::zeroed())), fdrivercompletion) } #[inline] pub unsafe fn SQLDriverConnectW(hdbc: *mut core::ffi::c_void, hwnd: isize, szconnstrin: &[u16], szconnstrout: Option<&mut [u16]>, pcchconnstrout: Option<*mut i16>, fdrivercompletion: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDriverConnectW(hdbc : *mut core::ffi::c_void, hwnd : isize, szconnstrin : *const u16, cchconnstrin : i16, szconnstrout : *mut u16, cchconnstroutmax : i16, pcchconnstrout : *mut i16, fdrivercompletion : u16) -> i16); - SQLDriverConnectW(core::mem::transmute(hdbc), core::mem::transmute(hwnd), core::mem::transmute(szconnstrin.as_ptr()), szconnstrin.len().try_into().unwrap(), core::mem::transmute(szconnstrout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szconnstrout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchconnstrout.unwrap_or(core::mem::zeroed())), core::mem::transmute(fdrivercompletion)) + SQLDriverConnectW(core::mem::transmute(hdbc), hwnd, core::mem::transmute(szconnstrin.as_ptr()), szconnstrin.len().try_into().unwrap(), core::mem::transmute(szconnstrout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szconnstrout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchconnstrout.unwrap_or(core::mem::zeroed())), fdrivercompletion) } #[inline] pub unsafe fn SQLDrivers(henv: *mut core::ffi::c_void, fdirection: u16, szdriverdesc: Option<&mut [u8]>, pcchdriverdesc: Option<*mut i16>, szdriverattributes: Option<&mut [u8]>, pcchdrvrattr: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLDrivers(henv : *mut core::ffi::c_void, fdirection : u16, szdriverdesc : *mut u8, cchdriverdescmax : i16, pcchdriverdesc : *mut i16, szdriverattributes : *mut u8, cchdrvrattrmax : i16, pcchdrvrattr : *mut i16) -> i16); SQLDrivers( core::mem::transmute(henv), - core::mem::transmute(fdirection), + fdirection, core::mem::transmute(szdriverdesc.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdriverdesc.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchdriverdesc.unwrap_or(core::mem::zeroed())), @@ -478,7 +478,7 @@ pub unsafe fn SQLDriversA(henv: *mut core::ffi::c_void, fdirection: u16, szdrive windows_targets::link!("odbc32.dll" "system" fn SQLDriversA(henv : *mut core::ffi::c_void, fdirection : u16, szdriverdesc : *mut u8, cbdriverdescmax : i16, pcbdriverdesc : *mut i16, szdriverattributes : *mut u8, cbdrvrattrmax : i16, pcbdrvrattr : *mut i16) -> i16); SQLDriversA( core::mem::transmute(henv), - core::mem::transmute(fdirection), + fdirection, core::mem::transmute(szdriverdesc.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdriverdesc.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbdriverdesc.unwrap_or(core::mem::zeroed())), @@ -492,7 +492,7 @@ pub unsafe fn SQLDriversW(henv: *mut core::ffi::c_void, fdirection: u16, szdrive windows_targets::link!("odbc32.dll" "system" fn SQLDriversW(henv : *mut core::ffi::c_void, fdirection : u16, szdriverdesc : *mut u16, cchdriverdescmax : i16, pcchdriverdesc : *mut i16, szdriverattributes : *mut u16, cchdrvrattrmax : i16, pcchdrvrattr : *mut i16) -> i16); SQLDriversW( core::mem::transmute(henv), - core::mem::transmute(fdirection), + fdirection, core::mem::transmute(szdriverdesc.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szdriverdesc.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchdriverdesc.unwrap_or(core::mem::zeroed())), @@ -504,7 +504,7 @@ pub unsafe fn SQLDriversW(henv: *mut core::ffi::c_void, fdirection: u16, szdrive #[inline] pub unsafe fn SQLEndTran(handletype: i16, handle: *mut core::ffi::c_void, completiontype: i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLEndTran(handletype : i16, handle : *mut core::ffi::c_void, completiontype : i16) -> i16); - SQLEndTran(core::mem::transmute(handletype), core::mem::transmute(handle), core::mem::transmute(completiontype)) + SQLEndTran(handletype, core::mem::transmute(handle), completiontype) } #[inline] pub unsafe fn SQLError(environmenthandle: *mut core::ffi::c_void, connectionhandle: *mut core::ffi::c_void, statementhandle: *mut core::ffi::c_void, sqlstate: &mut [u8; 6], nativeerror: Option<*mut i32>, messagetext: Option<&mut [u8]>, textlength: Option<*mut i16>) -> i16 { @@ -545,13 +545,13 @@ pub unsafe fn SQLExecute(statementhandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLExtendedFetch(hstmt: *mut core::ffi::c_void, ffetchtype: u16, irow: i32, pcrow: Option<*mut u32>, rgfrowstatus: Option<*mut u16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLExtendedFetch(hstmt : *mut core::ffi::c_void, ffetchtype : u16, irow : i32, pcrow : *mut u32, rgfrowstatus : *mut u16) -> i16); - SQLExtendedFetch(core::mem::transmute(hstmt), core::mem::transmute(ffetchtype), core::mem::transmute(irow), core::mem::transmute(pcrow.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgfrowstatus.unwrap_or(core::mem::zeroed()))) + SQLExtendedFetch(core::mem::transmute(hstmt), ffetchtype, irow, core::mem::transmute(pcrow.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgfrowstatus.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLExtendedFetch(hstmt: *mut core::ffi::c_void, ffetchtype: u16, irow: i64, pcrow: Option<*mut u64>, rgfrowstatus: Option<*mut u16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLExtendedFetch(hstmt : *mut core::ffi::c_void, ffetchtype : u16, irow : i64, pcrow : *mut u64, rgfrowstatus : *mut u16) -> i16); - SQLExtendedFetch(core::mem::transmute(hstmt), core::mem::transmute(ffetchtype), core::mem::transmute(irow), core::mem::transmute(pcrow.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgfrowstatus.unwrap_or(core::mem::zeroed()))) + SQLExtendedFetch(core::mem::transmute(hstmt), ffetchtype, irow, core::mem::transmute(pcrow.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgfrowstatus.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLFetch(statementhandle: *mut core::ffi::c_void) -> i16 { @@ -562,13 +562,13 @@ pub unsafe fn SQLFetch(statementhandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLFetchScroll(statementhandle: *mut core::ffi::c_void, fetchorientation: i16, fetchoffset: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLFetchScroll(statementhandle : *mut core::ffi::c_void, fetchorientation : i16, fetchoffset : i32) -> i16); - SQLFetchScroll(core::mem::transmute(statementhandle), core::mem::transmute(fetchorientation), core::mem::transmute(fetchoffset)) + SQLFetchScroll(core::mem::transmute(statementhandle), fetchorientation, fetchoffset) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLFetchScroll(statementhandle: *mut core::ffi::c_void, fetchorientation: i16, fetchoffset: i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLFetchScroll(statementhandle : *mut core::ffi::c_void, fetchorientation : i16, fetchoffset : i64) -> i16); - SQLFetchScroll(core::mem::transmute(statementhandle), core::mem::transmute(fetchorientation), core::mem::transmute(fetchoffset)) + SQLFetchScroll(core::mem::transmute(statementhandle), fetchorientation, fetchoffset) } #[inline] pub unsafe fn SQLForeignKeys(hstmt: *mut core::ffi::c_void, szpkcatalogname: Option<&[u8]>, szpkschemaname: Option<&[u8]>, szpktablename: Option<&[u8]>, szfkcatalogname: Option<&[u8]>, szfkschemaname: Option<&[u8]>, szfktablename: Option<&[u8]>) -> i16 { @@ -640,42 +640,42 @@ pub unsafe fn SQLFreeEnv(environmenthandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLFreeHandle(handletype: i16, handle: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLFreeHandle(handletype : i16, handle : *mut core::ffi::c_void) -> i16); - SQLFreeHandle(core::mem::transmute(handletype), core::mem::transmute(handle)) + SQLFreeHandle(handletype, core::mem::transmute(handle)) } #[inline] pub unsafe fn SQLFreeStmt(statementhandle: *mut core::ffi::c_void, option: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLFreeStmt(statementhandle : *mut core::ffi::c_void, option : u16) -> i16); - SQLFreeStmt(core::mem::transmute(statementhandle), core::mem::transmute(option)) + SQLFreeStmt(core::mem::transmute(statementhandle), option) } #[inline] pub unsafe fn SQLGetConnectAttr(connectionhandle: *mut core::ffi::c_void, attribute: i32, value: Option<*mut core::ffi::c_void>, bufferlength: i32, stringlengthptr: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetConnectAttr(connectionhandle : *mut core::ffi::c_void, attribute : i32, value : *mut core::ffi::c_void, bufferlength : i32, stringlengthptr : *mut i32) -> i16); - SQLGetConnectAttr(core::mem::transmute(connectionhandle), core::mem::transmute(attribute), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlengthptr.unwrap_or(core::mem::zeroed()))) + SQLGetConnectAttr(core::mem::transmute(connectionhandle), attribute, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlengthptr.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetConnectAttrA(hdbc: *mut core::ffi::c_void, fattribute: i32, rgbvalue: Option<*mut core::ffi::c_void>, cbvaluemax: i32, pcbvalue: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetConnectAttrA(hdbc : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i32, pcbvalue : *mut i32) -> i16); - SQLGetConnectAttrA(core::mem::transmute(hdbc), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbvaluemax), core::mem::transmute(pcbvalue.unwrap_or(core::mem::zeroed()))) + SQLGetConnectAttrA(core::mem::transmute(hdbc), fattribute, core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), cbvaluemax, core::mem::transmute(pcbvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetConnectAttrW(hdbc: *mut core::ffi::c_void, fattribute: i32, rgbvalue: Option<*mut core::ffi::c_void>, cbvaluemax: i32, pcbvalue: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetConnectAttrW(hdbc : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i32, pcbvalue : *mut i32) -> i16); - SQLGetConnectAttrW(core::mem::transmute(hdbc), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbvaluemax), core::mem::transmute(pcbvalue.unwrap_or(core::mem::zeroed()))) + SQLGetConnectAttrW(core::mem::transmute(hdbc), fattribute, core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), cbvaluemax, core::mem::transmute(pcbvalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetConnectOption(connectionhandle: *mut core::ffi::c_void, option: u16, value: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetConnectOption(connectionhandle : *mut core::ffi::c_void, option : u16, value : *mut core::ffi::c_void) -> i16); - SQLGetConnectOption(core::mem::transmute(connectionhandle), core::mem::transmute(option), core::mem::transmute(value)) + SQLGetConnectOption(core::mem::transmute(connectionhandle), option, core::mem::transmute(value)) } #[inline] pub unsafe fn SQLGetConnectOptionA(hdbc: *mut core::ffi::c_void, foption: u16, pvparam: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetConnectOptionA(hdbc : *mut core::ffi::c_void, foption : u16, pvparam : *mut core::ffi::c_void) -> i16); - SQLGetConnectOptionA(core::mem::transmute(hdbc), core::mem::transmute(foption), core::mem::transmute(pvparam)) + SQLGetConnectOptionA(core::mem::transmute(hdbc), foption, core::mem::transmute(pvparam)) } #[inline] pub unsafe fn SQLGetConnectOptionW(hdbc: *mut core::ffi::c_void, foption: u16, pvparam: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetConnectOptionW(hdbc : *mut core::ffi::c_void, foption : u16, pvparam : *mut core::ffi::c_void) -> i16); - SQLGetConnectOptionW(core::mem::transmute(hdbc), core::mem::transmute(foption), core::mem::transmute(pvparam)) + SQLGetConnectOptionW(core::mem::transmute(hdbc), foption, core::mem::transmute(pvparam)) } #[inline] pub unsafe fn SQLGetCursorName(statementhandle: *mut core::ffi::c_void, cursorname: Option<&mut [u8]>, namelengthptr: Option<*mut i16>) -> i16 { @@ -696,28 +696,28 @@ pub unsafe fn SQLGetCursorNameW(hstmt: *mut core::ffi::c_void, szcursor: Option< #[inline] pub unsafe fn SQLGetData(statementhandle: *mut core::ffi::c_void, columnnumber: u16, targettype: i16, targetvalue: Option<*mut core::ffi::c_void>, bufferlength: i32, strlen_or_indptr: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetData(statementhandle : *mut core::ffi::c_void, columnnumber : u16, targettype : i16, targetvalue : *mut core::ffi::c_void, bufferlength : i32, strlen_or_indptr : *mut i32) -> i16); - SQLGetData(core::mem::transmute(statementhandle), core::mem::transmute(columnnumber), core::mem::transmute(targettype), core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(strlen_or_indptr.unwrap_or(core::mem::zeroed()))) + SQLGetData(core::mem::transmute(statementhandle), columnnumber, targettype, core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(strlen_or_indptr.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLGetData(statementhandle: *mut core::ffi::c_void, columnnumber: u16, targettype: i16, targetvalue: Option<*mut core::ffi::c_void>, bufferlength: i64, strlen_or_indptr: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetData(statementhandle : *mut core::ffi::c_void, columnnumber : u16, targettype : i16, targetvalue : *mut core::ffi::c_void, bufferlength : i64, strlen_or_indptr : *mut i64) -> i16); - SQLGetData(core::mem::transmute(statementhandle), core::mem::transmute(columnnumber), core::mem::transmute(targettype), core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(strlen_or_indptr.unwrap_or(core::mem::zeroed()))) + SQLGetData(core::mem::transmute(statementhandle), columnnumber, targettype, core::mem::transmute(targetvalue.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(strlen_or_indptr.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDescField(descriptorhandle: *mut core::ffi::c_void, recnumber: i16, fieldidentifier: i16, value: Option<*mut core::ffi::c_void>, bufferlength: i32, stringlength: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDescField(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, fieldidentifier : i16, value : *mut core::ffi::c_void, bufferlength : i32, stringlength : *mut i32) -> i16); - SQLGetDescField(core::mem::transmute(descriptorhandle), core::mem::transmute(recnumber), core::mem::transmute(fieldidentifier), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) + SQLGetDescField(core::mem::transmute(descriptorhandle), recnumber, fieldidentifier, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDescFieldA(hdesc: *mut core::ffi::c_void, irecord: i16, ifield: i16, rgbvalue: Option<*mut core::ffi::c_void>, cbbufferlength: i32, stringlength: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDescFieldA(hdesc : *mut core::ffi::c_void, irecord : i16, ifield : i16, rgbvalue : *mut core::ffi::c_void, cbbufferlength : i32, stringlength : *mut i32) -> i16); - SQLGetDescFieldA(core::mem::transmute(hdesc), core::mem::transmute(irecord), core::mem::transmute(ifield), core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) + SQLGetDescFieldA(core::mem::transmute(hdesc), irecord, ifield, core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), cbbufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDescFieldW(hdesc: *mut core::ffi::c_void, irecord: i16, ifield: i16, rgbvalue: Option<*mut core::ffi::c_void>, cbbufferlength: i32, stringlength: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDescFieldW(hdesc : *mut core::ffi::c_void, irecord : i16, ifield : i16, rgbvalue : *mut core::ffi::c_void, cbbufferlength : i32, stringlength : *mut i32) -> i16); - SQLGetDescFieldW(core::mem::transmute(hdesc), core::mem::transmute(irecord), core::mem::transmute(ifield), core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) + SQLGetDescFieldW(core::mem::transmute(hdesc), irecord, ifield, core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), cbbufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) } #[cfg(target_arch = "x86")] #[inline] @@ -725,7 +725,7 @@ pub unsafe fn SQLGetDescRec(descriptorhandle: *mut core::ffi::c_void, recnumber: windows_targets::link!("odbc32.dll" "system" fn SQLGetDescRec(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, name : *mut u8, bufferlength : i16, stringlengthptr : *mut i16, typeptr : *mut i16, subtypeptr : *mut i16, lengthptr : *mut i32, precisionptr : *mut i16, scaleptr : *mut i16, nullableptr : *mut i16) -> i16); SQLGetDescRec( core::mem::transmute(descriptorhandle), - core::mem::transmute(recnumber), + recnumber, core::mem::transmute(name.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), name.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringlengthptr.unwrap_or(core::mem::zeroed())), @@ -743,7 +743,7 @@ pub unsafe fn SQLGetDescRec(descriptorhandle: *mut core::ffi::c_void, recnumber: windows_targets::link!("odbc32.dll" "system" fn SQLGetDescRec(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, name : *mut u8, bufferlength : i16, stringlengthptr : *mut i16, typeptr : *mut i16, subtypeptr : *mut i16, lengthptr : *mut i64, precisionptr : *mut i16, scaleptr : *mut i16, nullableptr : *mut i16) -> i16); SQLGetDescRec( core::mem::transmute(descriptorhandle), - core::mem::transmute(recnumber), + recnumber, core::mem::transmute(name.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), name.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(stringlengthptr.unwrap_or(core::mem::zeroed())), @@ -761,7 +761,7 @@ pub unsafe fn SQLGetDescRecA(hdesc: *mut core::ffi::c_void, irecord: i16, szname windows_targets::link!("odbc32.dll" "system" fn SQLGetDescRecA(hdesc : *mut core::ffi::c_void, irecord : i16, szname : *mut u8, cbnamemax : i16, pcbname : *mut i16, pftype : *mut i16, pfsubtype : *mut i16, plength : *mut i32, pprecision : *mut i16, pscale : *mut i16, pnullable : *mut i16) -> i16); SQLGetDescRecA( core::mem::transmute(hdesc), - core::mem::transmute(irecord), + irecord, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbname.unwrap_or(core::mem::zeroed())), @@ -779,7 +779,7 @@ pub unsafe fn SQLGetDescRecA(hdesc: *mut core::ffi::c_void, irecord: i16, szname windows_targets::link!("odbc32.dll" "system" fn SQLGetDescRecA(hdesc : *mut core::ffi::c_void, irecord : i16, szname : *mut u8, cbnamemax : i16, pcbname : *mut i16, pftype : *mut i16, pfsubtype : *mut i16, plength : *mut i64, pprecision : *mut i16, pscale : *mut i16, pnullable : *mut i16) -> i16); SQLGetDescRecA( core::mem::transmute(hdesc), - core::mem::transmute(irecord), + irecord, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbname.unwrap_or(core::mem::zeroed())), @@ -797,7 +797,7 @@ pub unsafe fn SQLGetDescRecW(hdesc: *mut core::ffi::c_void, irecord: i16, szname windows_targets::link!("odbc32.dll" "system" fn SQLGetDescRecW(hdesc : *mut core::ffi::c_void, irecord : i16, szname : *mut u16, cchnamemax : i16, pcchname : *mut i16, pftype : *mut i16, pfsubtype : *mut i16, plength : *mut i32, pprecision : *mut i16, pscale : *mut i16, pnullable : *mut i16) -> i16); SQLGetDescRecW( core::mem::transmute(hdesc), - core::mem::transmute(irecord), + irecord, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchname.unwrap_or(core::mem::zeroed())), @@ -815,7 +815,7 @@ pub unsafe fn SQLGetDescRecW(hdesc: *mut core::ffi::c_void, irecord: i16, szname windows_targets::link!("odbc32.dll" "system" fn SQLGetDescRecW(hdesc : *mut core::ffi::c_void, irecord : i16, szname : *mut u16, cchnamemax : i16, pcchname : *mut i16, pftype : *mut i16, pfsubtype : *mut i16, plength : *mut i64, pprecision : *mut i16, pscale : *mut i16, pnullable : *mut i16) -> i16); SQLGetDescRecW( core::mem::transmute(hdesc), - core::mem::transmute(irecord), + irecord, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcchname.unwrap_or(core::mem::zeroed())), @@ -830,97 +830,97 @@ pub unsafe fn SQLGetDescRecW(hdesc: *mut core::ffi::c_void, irecord: i16, szname #[inline] pub unsafe fn SQLGetDiagField(handletype: i16, handle: *mut core::ffi::c_void, recnumber: i16, diagidentifier: i16, diaginfo: Option<*mut core::ffi::c_void>, bufferlength: i16, stringlength: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDiagField(handletype : i16, handle : *mut core::ffi::c_void, recnumber : i16, diagidentifier : i16, diaginfo : *mut core::ffi::c_void, bufferlength : i16, stringlength : *mut i16) -> i16); - SQLGetDiagField(core::mem::transmute(handletype), core::mem::transmute(handle), core::mem::transmute(recnumber), core::mem::transmute(diagidentifier), core::mem::transmute(diaginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) + SQLGetDiagField(handletype, core::mem::transmute(handle), recnumber, diagidentifier, core::mem::transmute(diaginfo.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDiagFieldA(fhandletype: i16, handle: *mut core::ffi::c_void, irecord: i16, fdiagfield: i16, rgbdiaginfo: Option<*mut core::ffi::c_void>, cbdiaginfomax: i16, pcbdiaginfo: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDiagFieldA(fhandletype : i16, handle : *mut core::ffi::c_void, irecord : i16, fdiagfield : i16, rgbdiaginfo : *mut core::ffi::c_void, cbdiaginfomax : i16, pcbdiaginfo : *mut i16) -> i16); - SQLGetDiagFieldA(core::mem::transmute(fhandletype), core::mem::transmute(handle), core::mem::transmute(irecord), core::mem::transmute(fdiagfield), core::mem::transmute(rgbdiaginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdiaginfomax), core::mem::transmute(pcbdiaginfo.unwrap_or(core::mem::zeroed()))) + SQLGetDiagFieldA(fhandletype, core::mem::transmute(handle), irecord, fdiagfield, core::mem::transmute(rgbdiaginfo.unwrap_or(core::mem::zeroed())), cbdiaginfomax, core::mem::transmute(pcbdiaginfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDiagFieldW(fhandletype: i16, handle: *mut core::ffi::c_void, irecord: i16, fdiagfield: i16, rgbdiaginfo: Option<*mut core::ffi::c_void>, cbbufferlength: i16, pcbstringlength: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDiagFieldW(fhandletype : i16, handle : *mut core::ffi::c_void, irecord : i16, fdiagfield : i16, rgbdiaginfo : *mut core::ffi::c_void, cbbufferlength : i16, pcbstringlength : *mut i16) -> i16); - SQLGetDiagFieldW(core::mem::transmute(fhandletype), core::mem::transmute(handle), core::mem::transmute(irecord), core::mem::transmute(fdiagfield), core::mem::transmute(rgbdiaginfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufferlength), core::mem::transmute(pcbstringlength.unwrap_or(core::mem::zeroed()))) + SQLGetDiagFieldW(fhandletype, core::mem::transmute(handle), irecord, fdiagfield, core::mem::transmute(rgbdiaginfo.unwrap_or(core::mem::zeroed())), cbbufferlength, core::mem::transmute(pcbstringlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDiagRec(handletype: i16, handle: *mut core::ffi::c_void, recnumber: i16, sqlstate: Option<&mut [u8; 6]>, nativeerror: *mut i32, messagetext: Option<&mut [u8]>, textlength: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDiagRec(handletype : i16, handle : *mut core::ffi::c_void, recnumber : i16, sqlstate : *mut u8, nativeerror : *mut i32, messagetext : *mut u8, bufferlength : i16, textlength : *mut i16) -> i16); - SQLGetDiagRec(core::mem::transmute(handletype), core::mem::transmute(handle), core::mem::transmute(recnumber), core::mem::transmute(sqlstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(nativeerror), core::mem::transmute(messagetext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), messagetext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textlength.unwrap_or(core::mem::zeroed()))) + SQLGetDiagRec(handletype, core::mem::transmute(handle), recnumber, core::mem::transmute(sqlstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(nativeerror), core::mem::transmute(messagetext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), messagetext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(textlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetDiagRecA(fhandletype: i16, handle: *mut core::ffi::c_void, irecord: i16, szsqlstate: Option<&mut [u8; 6]>, pfnativeerror: *mut i32, szerrormsg: Option<&mut [u8]>, pcberrormsg: *mut i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDiagRecA(fhandletype : i16, handle : *mut core::ffi::c_void, irecord : i16, szsqlstate : *mut u8, pfnativeerror : *mut i32, szerrormsg : *mut u8, cberrormsgmax : i16, pcberrormsg : *mut i16) -> i16); - SQLGetDiagRecA(core::mem::transmute(fhandletype), core::mem::transmute(handle), core::mem::transmute(irecord), core::mem::transmute(szsqlstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pfnativeerror), core::mem::transmute(szerrormsg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szerrormsg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcberrormsg)) + SQLGetDiagRecA(fhandletype, core::mem::transmute(handle), irecord, core::mem::transmute(szsqlstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pfnativeerror), core::mem::transmute(szerrormsg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szerrormsg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcberrormsg)) } #[inline] pub unsafe fn SQLGetDiagRecW(fhandletype: i16, handle: *mut core::ffi::c_void, irecord: i16, szsqlstate: Option<&mut [u16; 6]>, pfnativeerror: *mut i32, szerrormsg: Option<&mut [u16]>, pccherrormsg: *mut i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetDiagRecW(fhandletype : i16, handle : *mut core::ffi::c_void, irecord : i16, szsqlstate : *mut u16, pfnativeerror : *mut i32, szerrormsg : *mut u16, ccherrormsgmax : i16, pccherrormsg : *mut i16) -> i16); - SQLGetDiagRecW(core::mem::transmute(fhandletype), core::mem::transmute(handle), core::mem::transmute(irecord), core::mem::transmute(szsqlstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pfnativeerror), core::mem::transmute(szerrormsg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szerrormsg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pccherrormsg)) + SQLGetDiagRecW(fhandletype, core::mem::transmute(handle), irecord, core::mem::transmute(szsqlstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pfnativeerror), core::mem::transmute(szerrormsg.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szerrormsg.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pccherrormsg)) } #[inline] pub unsafe fn SQLGetEnvAttr(environmenthandle: *mut core::ffi::c_void, attribute: i32, value: *mut core::ffi::c_void, bufferlength: i32, stringlength: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetEnvAttr(environmenthandle : *mut core::ffi::c_void, attribute : i32, value : *mut core::ffi::c_void, bufferlength : i32, stringlength : *mut i32) -> i16); - SQLGetEnvAttr(core::mem::transmute(environmenthandle), core::mem::transmute(attribute), core::mem::transmute(value), core::mem::transmute(bufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) + SQLGetEnvAttr(core::mem::transmute(environmenthandle), attribute, core::mem::transmute(value), bufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetFunctions(connectionhandle: *mut core::ffi::c_void, functionid: u16, supported: Option<*mut u16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetFunctions(connectionhandle : *mut core::ffi::c_void, functionid : u16, supported : *mut u16) -> i16); - SQLGetFunctions(core::mem::transmute(connectionhandle), core::mem::transmute(functionid), core::mem::transmute(supported.unwrap_or(core::mem::zeroed()))) + SQLGetFunctions(core::mem::transmute(connectionhandle), functionid, core::mem::transmute(supported.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetInfo(connectionhandle: *mut core::ffi::c_void, infotype: u16, infovalue: Option<*mut core::ffi::c_void>, bufferlength: i16, stringlengthptr: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetInfo(connectionhandle : *mut core::ffi::c_void, infotype : u16, infovalue : *mut core::ffi::c_void, bufferlength : i16, stringlengthptr : *mut i16) -> i16); - SQLGetInfo(core::mem::transmute(connectionhandle), core::mem::transmute(infotype), core::mem::transmute(infovalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlengthptr.unwrap_or(core::mem::zeroed()))) + SQLGetInfo(core::mem::transmute(connectionhandle), infotype, core::mem::transmute(infovalue.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlengthptr.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetInfoA(hdbc: *mut core::ffi::c_void, finfotype: u16, rgbinfovalue: Option<*mut core::ffi::c_void>, cbinfovaluemax: i16, pcbinfovalue: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetInfoA(hdbc : *mut core::ffi::c_void, finfotype : u16, rgbinfovalue : *mut core::ffi::c_void, cbinfovaluemax : i16, pcbinfovalue : *mut i16) -> i16); - SQLGetInfoA(core::mem::transmute(hdbc), core::mem::transmute(finfotype), core::mem::transmute(rgbinfovalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinfovaluemax), core::mem::transmute(pcbinfovalue.unwrap_or(core::mem::zeroed()))) + SQLGetInfoA(core::mem::transmute(hdbc), finfotype, core::mem::transmute(rgbinfovalue.unwrap_or(core::mem::zeroed())), cbinfovaluemax, core::mem::transmute(pcbinfovalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetInfoW(hdbc: *mut core::ffi::c_void, finfotype: u16, rgbinfovalue: Option<*mut core::ffi::c_void>, cbinfovaluemax: i16, pcbinfovalue: Option<*mut i16>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetInfoW(hdbc : *mut core::ffi::c_void, finfotype : u16, rgbinfovalue : *mut core::ffi::c_void, cbinfovaluemax : i16, pcbinfovalue : *mut i16) -> i16); - SQLGetInfoW(core::mem::transmute(hdbc), core::mem::transmute(finfotype), core::mem::transmute(rgbinfovalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbinfovaluemax), core::mem::transmute(pcbinfovalue.unwrap_or(core::mem::zeroed()))) + SQLGetInfoW(core::mem::transmute(hdbc), finfotype, core::mem::transmute(rgbinfovalue.unwrap_or(core::mem::zeroed())), cbinfovaluemax, core::mem::transmute(pcbinfovalue.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetNextEnumeration(henumhandle: super::super::Foundation::HANDLE, prgenumdata: *mut u8, pienumlength: *mut i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn SQLGetNextEnumeration(henumhandle : super::super::Foundation:: HANDLE, prgenumdata : *mut u8, pienumlength : *mut i32) -> i16); - SQLGetNextEnumeration(core::mem::transmute(henumhandle), core::mem::transmute(prgenumdata), core::mem::transmute(pienumlength)) + SQLGetNextEnumeration(henumhandle, core::mem::transmute(prgenumdata), core::mem::transmute(pienumlength)) } #[inline] pub unsafe fn SQLGetStmtAttr(statementhandle: *mut core::ffi::c_void, attribute: i32, value: Option<*mut core::ffi::c_void>, bufferlength: i32, stringlength: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetStmtAttr(statementhandle : *mut core::ffi::c_void, attribute : i32, value : *mut core::ffi::c_void, bufferlength : i32, stringlength : *mut i32) -> i16); - SQLGetStmtAttr(core::mem::transmute(statementhandle), core::mem::transmute(attribute), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) + SQLGetStmtAttr(core::mem::transmute(statementhandle), attribute, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLGetStmtAttrA(hstmt: *mut core::ffi::c_void, fattribute: i32, rgbvalue: *mut core::ffi::c_void, cbvaluemax: i32, pcbvalue: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetStmtAttrA(hstmt : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i32, pcbvalue : *mut i32) -> i16); - SQLGetStmtAttrA(core::mem::transmute(hstmt), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue), core::mem::transmute(cbvaluemax), core::mem::transmute(pcbvalue)) + SQLGetStmtAttrA(core::mem::transmute(hstmt), fattribute, core::mem::transmute(rgbvalue), cbvaluemax, core::mem::transmute(pcbvalue)) } #[inline] pub unsafe fn SQLGetStmtAttrW(hstmt: *mut core::ffi::c_void, fattribute: i32, rgbvalue: *mut core::ffi::c_void, cbvaluemax: i32, pcbvalue: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetStmtAttrW(hstmt : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i32, pcbvalue : *mut i32) -> i16); - SQLGetStmtAttrW(core::mem::transmute(hstmt), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue), core::mem::transmute(cbvaluemax), core::mem::transmute(pcbvalue)) + SQLGetStmtAttrW(core::mem::transmute(hstmt), fattribute, core::mem::transmute(rgbvalue), cbvaluemax, core::mem::transmute(pcbvalue)) } #[inline] pub unsafe fn SQLGetStmtOption(statementhandle: *mut core::ffi::c_void, option: u16, value: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetStmtOption(statementhandle : *mut core::ffi::c_void, option : u16, value : *mut core::ffi::c_void) -> i16); - SQLGetStmtOption(core::mem::transmute(statementhandle), core::mem::transmute(option), core::mem::transmute(value)) + SQLGetStmtOption(core::mem::transmute(statementhandle), option, core::mem::transmute(value)) } #[inline] pub unsafe fn SQLGetTypeInfo(statementhandle: *mut core::ffi::c_void, datatype: i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetTypeInfo(statementhandle : *mut core::ffi::c_void, datatype : i16) -> i16); - SQLGetTypeInfo(core::mem::transmute(statementhandle), core::mem::transmute(datatype)) + SQLGetTypeInfo(core::mem::transmute(statementhandle), datatype) } #[inline] pub unsafe fn SQLGetTypeInfoA(statementhandle: *mut core::ffi::c_void, datatype: i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetTypeInfoA(statementhandle : *mut core::ffi::c_void, datatype : i16) -> i16); - SQLGetTypeInfoA(core::mem::transmute(statementhandle), core::mem::transmute(datatype)) + SQLGetTypeInfoA(core::mem::transmute(statementhandle), datatype) } #[inline] pub unsafe fn SQLGetTypeInfoW(statementhandle: *mut core::ffi::c_void, datatype: i16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLGetTypeInfoW(statementhandle : *mut core::ffi::c_void, datatype : i16) -> i16); - SQLGetTypeInfoW(core::mem::transmute(statementhandle), core::mem::transmute(datatype)) + SQLGetTypeInfoW(core::mem::transmute(statementhandle), datatype) } #[inline] pub unsafe fn SQLInitEnumServers(pwchservername: P0, pwchinstancename: P1) -> super::super::Foundation::HANDLE @@ -937,7 +937,7 @@ where P1: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn SQLLinkedCatalogsA(param0 : *mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : i16) -> i16); - SQLLinkedCatalogsA(core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)) + SQLLinkedCatalogsA(core::mem::transmute(param0), param1.param().abi(), param2) } #[inline] pub unsafe fn SQLLinkedCatalogsW(param0: *mut core::ffi::c_void, param1: P1, param2: i16) -> i16 @@ -945,7 +945,7 @@ where P1: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn SQLLinkedCatalogsW(param0 : *mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : i16) -> i16); - SQLLinkedCatalogsW(core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(param2)) + SQLLinkedCatalogsW(core::mem::transmute(param0), param1.param().abi(), param2) } #[inline] pub unsafe fn SQLLinkedServers(param0: *mut core::ffi::c_void) -> i16 { @@ -991,13 +991,13 @@ pub unsafe fn SQLParamData(statementhandle: *mut core::ffi::c_void, value: Optio #[inline] pub unsafe fn SQLParamOptions(hstmt: *mut core::ffi::c_void, crow: u32, pirow: *mut u32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLParamOptions(hstmt : *mut core::ffi::c_void, crow : u32, pirow : *mut u32) -> i16); - SQLParamOptions(core::mem::transmute(hstmt), core::mem::transmute(crow), core::mem::transmute(pirow)) + SQLParamOptions(core::mem::transmute(hstmt), crow, core::mem::transmute(pirow)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLParamOptions(hstmt: *mut core::ffi::c_void, crow: u64, pirow: *mut u64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLParamOptions(hstmt : *mut core::ffi::c_void, crow : u64, pirow : *mut u64) -> i16); - SQLParamOptions(core::mem::transmute(hstmt), core::mem::transmute(crow), core::mem::transmute(pirow)) + SQLParamOptions(core::mem::transmute(hstmt), crow, core::mem::transmute(pirow)) } #[inline] pub unsafe fn SQLPrepare(statementhandle: *mut core::ffi::c_void, statementtext: &[u8]) -> i16 { @@ -1141,76 +1141,76 @@ pub unsafe fn SQLProceduresW(hstmt: *mut core::ffi::c_void, szcatalogname: Optio #[inline] pub unsafe fn SQLPutData(statementhandle: *mut core::ffi::c_void, data: *const core::ffi::c_void, strlen_or_ind: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLPutData(statementhandle : *mut core::ffi::c_void, data : *const core::ffi::c_void, strlen_or_ind : i32) -> i16); - SQLPutData(core::mem::transmute(statementhandle), core::mem::transmute(data), core::mem::transmute(strlen_or_ind)) + SQLPutData(core::mem::transmute(statementhandle), data, strlen_or_ind) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLPutData(statementhandle: *mut core::ffi::c_void, data: *const core::ffi::c_void, strlen_or_ind: i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLPutData(statementhandle : *mut core::ffi::c_void, data : *const core::ffi::c_void, strlen_or_ind : i64) -> i16); - SQLPutData(core::mem::transmute(statementhandle), core::mem::transmute(data), core::mem::transmute(strlen_or_ind)) + SQLPutData(core::mem::transmute(statementhandle), data, strlen_or_ind) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLRowCount(statementhandle: *const core::ffi::c_void, rowcount: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLRowCount(statementhandle : *const core::ffi::c_void, rowcount : *mut i32) -> i16); - SQLRowCount(core::mem::transmute(statementhandle), core::mem::transmute(rowcount)) + SQLRowCount(statementhandle, core::mem::transmute(rowcount)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLRowCount(statementhandle: *const core::ffi::c_void, rowcount: *mut i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLRowCount(statementhandle : *const core::ffi::c_void, rowcount : *mut i64) -> i16); - SQLRowCount(core::mem::transmute(statementhandle), core::mem::transmute(rowcount)) + SQLRowCount(statementhandle, core::mem::transmute(rowcount)) } #[inline] pub unsafe fn SQLSetConnectAttr(connectionhandle: *mut core::ffi::c_void, attribute: i32, value: Option<*const core::ffi::c_void>, stringlength: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectAttr(connectionhandle : *mut core::ffi::c_void, attribute : i32, value : *const core::ffi::c_void, stringlength : i32) -> i16); - SQLSetConnectAttr(core::mem::transmute(connectionhandle), core::mem::transmute(attribute), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringlength)) + SQLSetConnectAttr(core::mem::transmute(connectionhandle), attribute, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), stringlength) } #[inline] pub unsafe fn SQLSetConnectAttrA(hdbc: *mut core::ffi::c_void, fattribute: i32, rgbvalue: Option<*const core::ffi::c_void>, cbvalue: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectAttrA(hdbc : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *const core::ffi::c_void, cbvalue : i32) -> i16); - SQLSetConnectAttrA(core::mem::transmute(hdbc), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbvalue)) + SQLSetConnectAttrA(core::mem::transmute(hdbc), fattribute, core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), cbvalue) } #[inline] pub unsafe fn SQLSetConnectAttrW(hdbc: *mut core::ffi::c_void, fattribute: i32, rgbvalue: Option<*const core::ffi::c_void>, cbvalue: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectAttrW(hdbc : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *const core::ffi::c_void, cbvalue : i32) -> i16); - SQLSetConnectAttrW(core::mem::transmute(hdbc), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbvalue)) + SQLSetConnectAttrW(core::mem::transmute(hdbc), fattribute, core::mem::transmute(rgbvalue.unwrap_or(core::mem::zeroed())), cbvalue) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetConnectOption(connectionhandle: *mut core::ffi::c_void, option: u16, value: u32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectOption(connectionhandle : *mut core::ffi::c_void, option : u16, value : u32) -> i16); - SQLSetConnectOption(core::mem::transmute(connectionhandle), core::mem::transmute(option), core::mem::transmute(value)) + SQLSetConnectOption(core::mem::transmute(connectionhandle), option, value) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetConnectOption(connectionhandle: *mut core::ffi::c_void, option: u16, value: u64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectOption(connectionhandle : *mut core::ffi::c_void, option : u16, value : u64) -> i16); - SQLSetConnectOption(core::mem::transmute(connectionhandle), core::mem::transmute(option), core::mem::transmute(value)) + SQLSetConnectOption(core::mem::transmute(connectionhandle), option, value) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetConnectOptionA(hdbc: *mut core::ffi::c_void, foption: u16, vparam: u32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectOptionA(hdbc : *mut core::ffi::c_void, foption : u16, vparam : u32) -> i16); - SQLSetConnectOptionA(core::mem::transmute(hdbc), core::mem::transmute(foption), core::mem::transmute(vparam)) + SQLSetConnectOptionA(core::mem::transmute(hdbc), foption, vparam) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetConnectOptionA(hdbc: *mut core::ffi::c_void, foption: u16, vparam: u64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectOptionA(hdbc : *mut core::ffi::c_void, foption : u16, vparam : u64) -> i16); - SQLSetConnectOptionA(core::mem::transmute(hdbc), core::mem::transmute(foption), core::mem::transmute(vparam)) + SQLSetConnectOptionA(core::mem::transmute(hdbc), foption, vparam) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetConnectOptionW(hdbc: *mut core::ffi::c_void, foption: u16, vparam: u32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectOptionW(hdbc : *mut core::ffi::c_void, foption : u16, vparam : u32) -> i16); - SQLSetConnectOptionW(core::mem::transmute(hdbc), core::mem::transmute(foption), core::mem::transmute(vparam)) + SQLSetConnectOptionW(core::mem::transmute(hdbc), foption, vparam) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetConnectOptionW(hdbc: *mut core::ffi::c_void, foption: u16, vparam: u64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetConnectOptionW(hdbc : *mut core::ffi::c_void, foption : u16, vparam : u64) -> i16); - SQLSetConnectOptionW(core::mem::transmute(hdbc), core::mem::transmute(foption), core::mem::transmute(vparam)) + SQLSetConnectOptionW(core::mem::transmute(hdbc), foption, vparam) } #[inline] pub unsafe fn SQLSetCursorName(statementhandle: *mut core::ffi::c_void, cursorname: &[u8]) -> i16 { @@ -1230,102 +1230,102 @@ pub unsafe fn SQLSetCursorNameW(hstmt: *mut core::ffi::c_void, szcursor: &[u16]) #[inline] pub unsafe fn SQLSetDescField(descriptorhandle: *mut core::ffi::c_void, recnumber: i16, fieldidentifier: i16, value: *const core::ffi::c_void, bufferlength: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetDescField(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, fieldidentifier : i16, value : *const core::ffi::c_void, bufferlength : i32) -> i16); - SQLSetDescField(core::mem::transmute(descriptorhandle), core::mem::transmute(recnumber), core::mem::transmute(fieldidentifier), core::mem::transmute(value), core::mem::transmute(bufferlength)) + SQLSetDescField(core::mem::transmute(descriptorhandle), recnumber, fieldidentifier, value, bufferlength) } #[inline] pub unsafe fn SQLSetDescFieldW(descriptorhandle: *mut core::ffi::c_void, recnumber: i16, fieldidentifier: i16, value: *mut core::ffi::c_void, bufferlength: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetDescFieldW(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, fieldidentifier : i16, value : *mut core::ffi::c_void, bufferlength : i32) -> i16); - SQLSetDescFieldW(core::mem::transmute(descriptorhandle), core::mem::transmute(recnumber), core::mem::transmute(fieldidentifier), core::mem::transmute(value), core::mem::transmute(bufferlength)) + SQLSetDescFieldW(core::mem::transmute(descriptorhandle), recnumber, fieldidentifier, core::mem::transmute(value), bufferlength) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetDescRec(descriptorhandle: *mut core::ffi::c_void, recnumber: i16, r#type: i16, subtype: i16, length: i32, precision: i16, scale: i16, data: Option<*mut core::ffi::c_void>, stringlength: Option<*mut i32>, indicator: Option<*mut i32>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetDescRec(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, r#type : i16, subtype : i16, length : i32, precision : i16, scale : i16, data : *mut core::ffi::c_void, stringlength : *mut i32, indicator : *mut i32) -> i16); - SQLSetDescRec(core::mem::transmute(descriptorhandle), core::mem::transmute(recnumber), core::mem::transmute(r#type), core::mem::transmute(subtype), core::mem::transmute(length), core::mem::transmute(precision), core::mem::transmute(scale), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(indicator.unwrap_or(core::mem::zeroed()))) + SQLSetDescRec(core::mem::transmute(descriptorhandle), recnumber, r#type, subtype, length, precision, scale, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(indicator.unwrap_or(core::mem::zeroed()))) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetDescRec(descriptorhandle: *mut core::ffi::c_void, recnumber: i16, r#type: i16, subtype: i16, length: i64, precision: i16, scale: i16, data: Option<*mut core::ffi::c_void>, stringlength: Option<*mut i64>, indicator: Option<*mut i64>) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetDescRec(descriptorhandle : *mut core::ffi::c_void, recnumber : i16, r#type : i16, subtype : i16, length : i64, precision : i16, scale : i16, data : *mut core::ffi::c_void, stringlength : *mut i64, indicator : *mut i64) -> i16); - SQLSetDescRec(core::mem::transmute(descriptorhandle), core::mem::transmute(recnumber), core::mem::transmute(r#type), core::mem::transmute(subtype), core::mem::transmute(length), core::mem::transmute(precision), core::mem::transmute(scale), core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(indicator.unwrap_or(core::mem::zeroed()))) + SQLSetDescRec(core::mem::transmute(descriptorhandle), recnumber, r#type, subtype, length, precision, scale, core::mem::transmute(data.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(indicator.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SQLSetEnvAttr(environmenthandle: *mut core::ffi::c_void, attribute: i32, value: Option<*const core::ffi::c_void>, stringlength: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetEnvAttr(environmenthandle : *mut core::ffi::c_void, attribute : i32, value : *const core::ffi::c_void, stringlength : i32) -> i16); - SQLSetEnvAttr(core::mem::transmute(environmenthandle), core::mem::transmute(attribute), core::mem::transmute(value.unwrap_or(core::mem::zeroed())), core::mem::transmute(stringlength)) + SQLSetEnvAttr(core::mem::transmute(environmenthandle), attribute, core::mem::transmute(value.unwrap_or(core::mem::zeroed())), stringlength) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetParam(statementhandle: *mut core::ffi::c_void, parameternumber: u16, valuetype: i16, parametertype: i16, lengthprecision: u32, parameterscale: i16, parametervalue: *const core::ffi::c_void, strlen_or_ind: *mut i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetParam(statementhandle : *mut core::ffi::c_void, parameternumber : u16, valuetype : i16, parametertype : i16, lengthprecision : u32, parameterscale : i16, parametervalue : *const core::ffi::c_void, strlen_or_ind : *mut i32) -> i16); - SQLSetParam(core::mem::transmute(statementhandle), core::mem::transmute(parameternumber), core::mem::transmute(valuetype), core::mem::transmute(parametertype), core::mem::transmute(lengthprecision), core::mem::transmute(parameterscale), core::mem::transmute(parametervalue), core::mem::transmute(strlen_or_ind)) + SQLSetParam(core::mem::transmute(statementhandle), parameternumber, valuetype, parametertype, lengthprecision, parameterscale, parametervalue, core::mem::transmute(strlen_or_ind)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetParam(statementhandle: *mut core::ffi::c_void, parameternumber: u16, valuetype: i16, parametertype: i16, lengthprecision: u64, parameterscale: i16, parametervalue: *const core::ffi::c_void, strlen_or_ind: *mut i64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetParam(statementhandle : *mut core::ffi::c_void, parameternumber : u16, valuetype : i16, parametertype : i16, lengthprecision : u64, parameterscale : i16, parametervalue : *const core::ffi::c_void, strlen_or_ind : *mut i64) -> i16); - SQLSetParam(core::mem::transmute(statementhandle), core::mem::transmute(parameternumber), core::mem::transmute(valuetype), core::mem::transmute(parametertype), core::mem::transmute(lengthprecision), core::mem::transmute(parameterscale), core::mem::transmute(parametervalue), core::mem::transmute(strlen_or_ind)) + SQLSetParam(core::mem::transmute(statementhandle), parameternumber, valuetype, parametertype, lengthprecision, parameterscale, parametervalue, core::mem::transmute(strlen_or_ind)) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetPos(hstmt: *mut core::ffi::c_void, irow: u16, foption: u16, flock: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetPos(hstmt : *mut core::ffi::c_void, irow : u16, foption : u16, flock : u16) -> i16); - SQLSetPos(core::mem::transmute(hstmt), core::mem::transmute(irow), core::mem::transmute(foption), core::mem::transmute(flock)) + SQLSetPos(core::mem::transmute(hstmt), irow, foption, flock) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetPos(hstmt: *mut core::ffi::c_void, irow: u64, foption: u16, flock: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetPos(hstmt : *mut core::ffi::c_void, irow : u64, foption : u16, flock : u16) -> i16); - SQLSetPos(core::mem::transmute(hstmt), core::mem::transmute(irow), core::mem::transmute(foption), core::mem::transmute(flock)) + SQLSetPos(core::mem::transmute(hstmt), irow, foption, flock) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetScrollOptions(hstmt: *mut core::ffi::c_void, fconcurrency: u16, crowkeyset: i32, crowrowset: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetScrollOptions(hstmt : *mut core::ffi::c_void, fconcurrency : u16, crowkeyset : i32, crowrowset : u16) -> i16); - SQLSetScrollOptions(core::mem::transmute(hstmt), core::mem::transmute(fconcurrency), core::mem::transmute(crowkeyset), core::mem::transmute(crowrowset)) + SQLSetScrollOptions(core::mem::transmute(hstmt), fconcurrency, crowkeyset, crowrowset) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetScrollOptions(hstmt: *mut core::ffi::c_void, fconcurrency: u16, crowkeyset: i64, crowrowset: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetScrollOptions(hstmt : *mut core::ffi::c_void, fconcurrency : u16, crowkeyset : i64, crowrowset : u16) -> i16); - SQLSetScrollOptions(core::mem::transmute(hstmt), core::mem::transmute(fconcurrency), core::mem::transmute(crowkeyset), core::mem::transmute(crowrowset)) + SQLSetScrollOptions(core::mem::transmute(hstmt), fconcurrency, crowkeyset, crowrowset) } #[inline] pub unsafe fn SQLSetStmtAttr(statementhandle: *mut core::ffi::c_void, attribute: i32, value: *const core::ffi::c_void, stringlength: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetStmtAttr(statementhandle : *mut core::ffi::c_void, attribute : i32, value : *const core::ffi::c_void, stringlength : i32) -> i16); - SQLSetStmtAttr(core::mem::transmute(statementhandle), core::mem::transmute(attribute), core::mem::transmute(value), core::mem::transmute(stringlength)) + SQLSetStmtAttr(core::mem::transmute(statementhandle), attribute, value, stringlength) } #[inline] pub unsafe fn SQLSetStmtAttrW(hstmt: *mut core::ffi::c_void, fattribute: i32, rgbvalue: *mut core::ffi::c_void, cbvaluemax: i32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetStmtAttrW(hstmt : *mut core::ffi::c_void, fattribute : i32, rgbvalue : *mut core::ffi::c_void, cbvaluemax : i32) -> i16); - SQLSetStmtAttrW(core::mem::transmute(hstmt), core::mem::transmute(fattribute), core::mem::transmute(rgbvalue), core::mem::transmute(cbvaluemax)) + SQLSetStmtAttrW(core::mem::transmute(hstmt), fattribute, core::mem::transmute(rgbvalue), cbvaluemax) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SQLSetStmtOption(statementhandle: *mut core::ffi::c_void, option: u16, value: u32) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetStmtOption(statementhandle : *mut core::ffi::c_void, option : u16, value : u32) -> i16); - SQLSetStmtOption(core::mem::transmute(statementhandle), core::mem::transmute(option), core::mem::transmute(value)) + SQLSetStmtOption(core::mem::transmute(statementhandle), option, value) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SQLSetStmtOption(statementhandle: *mut core::ffi::c_void, option: u16, value: u64) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSetStmtOption(statementhandle : *mut core::ffi::c_void, option : u16, value : u64) -> i16); - SQLSetStmtOption(core::mem::transmute(statementhandle), core::mem::transmute(option), core::mem::transmute(value)) + SQLSetStmtOption(core::mem::transmute(statementhandle), option, value) } #[inline] pub unsafe fn SQLSpecialColumns(statementhandle: *mut core::ffi::c_void, identifiertype: u16, catalogname: Option<&[u8]>, schemaname: Option<&[u8]>, tablename: Option<&[u8]>, scope: u16, nullable: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLSpecialColumns(statementhandle : *mut core::ffi::c_void, identifiertype : u16, catalogname : *const u8, namelength1 : i16, schemaname : *const u8, namelength2 : i16, tablename : *const u8, namelength3 : i16, scope : u16, nullable : u16) -> i16); SQLSpecialColumns( core::mem::transmute(statementhandle), - core::mem::transmute(identifiertype), + identifiertype, core::mem::transmute(catalogname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), catalogname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(schemaname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), schemaname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(tablename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), tablename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(scope), - core::mem::transmute(nullable), + scope, + nullable, ) } #[inline] @@ -1333,15 +1333,15 @@ pub unsafe fn SQLSpecialColumnsA(hstmt: *mut core::ffi::c_void, fcoltype: u16, s windows_targets::link!("odbc32.dll" "system" fn SQLSpecialColumnsA(hstmt : *mut core::ffi::c_void, fcoltype : u16, szcatalogname : *const u8, cbcatalogname : i16, szschemaname : *const u8, cbschemaname : i16, sztablename : *const u8, cbtablename : i16, fscope : u16, fnullable : u16) -> i16); SQLSpecialColumnsA( core::mem::transmute(hstmt), - core::mem::transmute(fcoltype), + fcoltype, core::mem::transmute(szcatalogname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szcatalogname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(szschemaname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szschemaname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sztablename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), sztablename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(fscope), - core::mem::transmute(fnullable), + fscope, + fnullable, ) } #[inline] @@ -1349,15 +1349,15 @@ pub unsafe fn SQLSpecialColumnsW(hstmt: *mut core::ffi::c_void, fcoltype: u16, s windows_targets::link!("odbc32.dll" "system" fn SQLSpecialColumnsW(hstmt : *mut core::ffi::c_void, fcoltype : u16, szcatalogname : *const u16, cchcatalogname : i16, szschemaname : *const u16, cchschemaname : i16, sztablename : *const u16, cchtablename : i16, fscope : u16, fnullable : u16) -> i16); SQLSpecialColumnsW( core::mem::transmute(hstmt), - core::mem::transmute(fcoltype), + fcoltype, core::mem::transmute(szcatalogname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szcatalogname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(szschemaname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szschemaname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sztablename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), sztablename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(fscope), - core::mem::transmute(fnullable), + fscope, + fnullable, ) } #[inline] @@ -1371,8 +1371,8 @@ pub unsafe fn SQLStatistics(statementhandle: *mut core::ffi::c_void, catalogname schemaname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(tablename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), tablename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(unique), - core::mem::transmute(reserved), + unique, + reserved, ) } #[inline] @@ -1386,8 +1386,8 @@ pub unsafe fn SQLStatisticsA(hstmt: *mut core::ffi::c_void, szcatalogname: Optio szschemaname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sztablename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), sztablename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(funique), - core::mem::transmute(faccuracy), + funique, + faccuracy, ) } #[inline] @@ -1401,8 +1401,8 @@ pub unsafe fn SQLStatisticsW(hstmt: *mut core::ffi::c_void, szcatalogname: Optio szschemaname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(sztablename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), sztablename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(funique), - core::mem::transmute(faccuracy), + funique, + faccuracy, ) } #[inline] @@ -1492,7 +1492,7 @@ pub unsafe fn SQLTablesW(hstmt: *mut core::ffi::c_void, szcatalogname: Option<&[ #[inline] pub unsafe fn SQLTransact(environmenthandle: *mut core::ffi::c_void, connectionhandle: *mut core::ffi::c_void, completiontype: u16) -> i16 { windows_targets::link!("odbc32.dll" "system" fn SQLTransact(environmenthandle : *mut core::ffi::c_void, connectionhandle : *mut core::ffi::c_void, completiontype : u16) -> i16); - SQLTransact(core::mem::transmute(environmenthandle), core::mem::transmute(connectionhandle), core::mem::transmute(completiontype)) + SQLTransact(core::mem::transmute(environmenthandle), core::mem::transmute(connectionhandle), completiontype) } #[inline] pub unsafe fn bcp_batch(param0: *mut core::ffi::c_void) -> i32 { @@ -1502,32 +1502,32 @@ pub unsafe fn bcp_batch(param0: *mut core::ffi::c_void) -> i32 { #[inline] pub unsafe fn bcp_bind(param0: *mut core::ffi::c_void, param1: *mut u8, param2: i32, param3: i32, param4: *mut u8, param5: i32, param6: i32, param7: i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_bind(param0 : *mut core::ffi::c_void, param1 : *mut u8, param2 : i32, param3 : i32, param4 : *mut u8, param5 : i32, param6 : i32, param7 : i32) -> i16); - bcp_bind(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5), core::mem::transmute(param6), core::mem::transmute(param7)) + bcp_bind(core::mem::transmute(param0), core::mem::transmute(param1), param2, param3, core::mem::transmute(param4), param5, param6, param7) } #[inline] pub unsafe fn bcp_colfmt(param0: *mut core::ffi::c_void, param1: i32, param2: u8, param3: i32, param4: i32, param5: *mut u8, param6: i32, param7: i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_colfmt(param0 : *mut core::ffi::c_void, param1 : i32, param2 : u8, param3 : i32, param4 : i32, param5 : *mut u8, param6 : i32, param7 : i32) -> i16); - bcp_colfmt(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5), core::mem::transmute(param6), core::mem::transmute(param7)) + bcp_colfmt(core::mem::transmute(param0), param1, param2, param3, param4, core::mem::transmute(param5), param6, param7) } #[inline] pub unsafe fn bcp_collen(param0: *mut core::ffi::c_void, param1: i32, param2: i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_collen(param0 : *mut core::ffi::c_void, param1 : i32, param2 : i32) -> i16); - bcp_collen(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + bcp_collen(core::mem::transmute(param0), param1, param2) } #[inline] pub unsafe fn bcp_colptr(param0: *mut core::ffi::c_void, param1: *mut u8, param2: i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_colptr(param0 : *mut core::ffi::c_void, param1 : *mut u8, param2 : i32) -> i16); - bcp_colptr(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + bcp_colptr(core::mem::transmute(param0), core::mem::transmute(param1), param2) } #[inline] pub unsafe fn bcp_columns(param0: *mut core::ffi::c_void, param1: i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_columns(param0 : *mut core::ffi::c_void, param1 : i32) -> i16); - bcp_columns(core::mem::transmute(param0), core::mem::transmute(param1)) + bcp_columns(core::mem::transmute(param0), param1) } #[inline] pub unsafe fn bcp_control(param0: *mut core::ffi::c_void, param1: i32, param2: *mut core::ffi::c_void) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_control(param0 : *mut core::ffi::c_void, param1 : i32, param2 : *mut core::ffi::c_void) -> i16); - bcp_control(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + bcp_control(core::mem::transmute(param0), param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn bcp_done(param0: *mut core::ffi::c_void) -> i32 { @@ -1542,7 +1542,7 @@ pub unsafe fn bcp_exec(param0: *mut core::ffi::c_void, param1: *mut i32) -> i16 #[inline] pub unsafe fn bcp_getcolfmt(param0: *mut core::ffi::c_void, param1: i32, param2: i32, param3: *mut core::ffi::c_void, param4: i32, param5: *mut i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_getcolfmt(param0 : *mut core::ffi::c_void, param1 : i32, param2 : i32, param3 : *mut core::ffi::c_void, param4 : i32, param5 : *mut i32) -> i16); - bcp_getcolfmt(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4), core::mem::transmute(param5)) + bcp_getcolfmt(core::mem::transmute(param0), param1, param2, core::mem::transmute(param3), param4, core::mem::transmute(param5)) } #[inline] pub unsafe fn bcp_initA(param0: *mut core::ffi::c_void, param1: P1, param2: P2, param3: P3, param4: i32) -> i16 @@ -1552,7 +1552,7 @@ where P3: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn bcp_initA(param0 : *mut core::ffi::c_void, param1 : windows_core::PCSTR, param2 : windows_core::PCSTR, param3 : windows_core::PCSTR, param4 : i32) -> i16); - bcp_initA(core::mem::transmute(param0), param1.param().abi(), param2.param().abi(), param3.param().abi(), core::mem::transmute(param4)) + bcp_initA(core::mem::transmute(param0), param1.param().abi(), param2.param().abi(), param3.param().abi(), param4) } #[inline] pub unsafe fn bcp_initW(param0: *mut core::ffi::c_void, param1: P1, param2: P2, param3: P3, param4: i32) -> i16 @@ -1562,12 +1562,12 @@ where P3: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn bcp_initW(param0 : *mut core::ffi::c_void, param1 : windows_core::PCWSTR, param2 : windows_core::PCWSTR, param3 : windows_core::PCWSTR, param4 : i32) -> i16); - bcp_initW(core::mem::transmute(param0), param1.param().abi(), param2.param().abi(), param3.param().abi(), core::mem::transmute(param4)) + bcp_initW(core::mem::transmute(param0), param1.param().abi(), param2.param().abi(), param3.param().abi(), param4) } #[inline] pub unsafe fn bcp_moretext(param0: *mut core::ffi::c_void, param1: i32, param2: *mut u8) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_moretext(param0 : *mut core::ffi::c_void, param1 : i32, param2 : *mut u8) -> i16); - bcp_moretext(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + bcp_moretext(core::mem::transmute(param0), param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn bcp_readfmtA(param0: *mut core::ffi::c_void, param1: P1) -> i16 @@ -1593,7 +1593,7 @@ pub unsafe fn bcp_sendrow(param0: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn bcp_setcolfmt(param0: *mut core::ffi::c_void, param1: i32, param2: i32, param3: *mut core::ffi::c_void, param4: i32) -> i16 { windows_targets::link!("odbcbcp.dll" "system" fn bcp_setcolfmt(param0 : *mut core::ffi::c_void, param1 : i32, param2 : i32, param3 : *mut core::ffi::c_void, param4 : i32) -> i16); - bcp_setcolfmt(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3), core::mem::transmute(param4)) + bcp_setcolfmt(core::mem::transmute(param0), param1, param2, core::mem::transmute(param3), param4) } #[inline] pub unsafe fn bcp_writefmtA(param0: *mut core::ffi::c_void, param1: P1) -> i16 @@ -1614,12 +1614,12 @@ where #[inline] pub unsafe fn dbprtypeA(param0: i32) -> windows_core::PSTR { windows_targets::link!("odbcbcp.dll" "system" fn dbprtypeA(param0 : i32) -> windows_core::PSTR); - dbprtypeA(core::mem::transmute(param0)) + dbprtypeA(param0) } #[inline] pub unsafe fn dbprtypeW(param0: i32) -> windows_core::PWSTR { windows_targets::link!("odbcbcp.dll" "system" fn dbprtypeW(param0 : i32) -> windows_core::PWSTR); - dbprtypeW(core::mem::transmute(param0)) + dbprtypeW(param0) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -4387,11 +4387,11 @@ windows_core::imp::interface_hierarchy!(DataSource, windows_core::IUnknown); impl DataSource { pub unsafe fn getDataMember(&self, bstrdm: *const u16, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getDataMember)(windows_core::Interface::as_raw(self), core::mem::transmute(bstrdm), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getDataMember)(windows_core::Interface::as_raw(self), bstrdm, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getDataMemberName(&self, lindex: i32) -> windows_core::Result<*mut u16> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getDataMemberName)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getDataMemberName)(windows_core::Interface::as_raw(self), lindex, &mut result__).map(|| result__) } pub unsafe fn getDataMemberCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4484,13 +4484,13 @@ windows_core::imp::define_interface!(DataSourceListener, DataSourceListener_Vtbl windows_core::imp::interface_hierarchy!(DataSourceListener, windows_core::IUnknown); impl DataSourceListener { pub unsafe fn dataMemberChanged(&self, bstrdm: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).dataMemberChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(bstrdm)).ok() + (windows_core::Interface::vtable(self).dataMemberChanged)(windows_core::Interface::as_raw(self), bstrdm).ok() } pub unsafe fn dataMemberAdded(&self, bstrdm: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).dataMemberAdded)(windows_core::Interface::as_raw(self), core::mem::transmute(bstrdm)).ok() + (windows_core::Interface::vtable(self).dataMemberAdded)(windows_core::Interface::as_raw(self), bstrdm).ok() } pub unsafe fn dataMemberRemoved(&self, bstrdm: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).dataMemberRemoved)(windows_core::Interface::as_raw(self), core::mem::transmute(bstrdm)).ok() + (windows_core::Interface::vtable(self).dataMemberRemoved)(windows_core::Interface::as_raw(self), bstrdm).ok() } } #[repr(C)] @@ -5102,18 +5102,18 @@ windows_core::imp::define_interface!(IAccessor, IAccessor_Vtbl, 0x0c733a8c_2a1c_ windows_core::imp::interface_hierarchy!(IAccessor, windows_core::IUnknown); impl IAccessor { pub unsafe fn AddRefAccessor(&self, haccessor: HACCESSOR, pcrefcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRefAccessor)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddRefAccessor)(windows_core::Interface::as_raw(self), haccessor, core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAccessor(&self, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateAccessor)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaccessorflags), core::mem::transmute(cbindings), core::mem::transmute(rgbindings), core::mem::transmute(cbrowsize), core::mem::transmute(phaccessor), core::mem::transmute(rgstatus.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateAccessor)(windows_core::Interface::as_raw(self), dwaccessorflags, cbindings, core::mem::transmute(rgbindings), cbrowsize, core::mem::transmute(phaccessor), core::mem::transmute(rgstatus.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBindings(&self, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: Option<*mut usize>, prgbindings: *mut *mut DBBINDING) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBindings)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(pdwaccessorflags), core::mem::transmute(pcbindings.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgbindings)).ok() + (windows_core::Interface::vtable(self).GetBindings)(windows_core::Interface::as_raw(self), haccessor, core::mem::transmute(pdwaccessorflags), core::mem::transmute(pcbindings.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgbindings)).ok() } pub unsafe fn ReleaseAccessor(&self, haccessor: HACCESSOR, pcrefcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseAccessor)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReleaseAccessor)(windows_core::Interface::as_raw(self), haccessor, core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -5175,7 +5175,7 @@ windows_core::imp::interface_hierarchy!(IAlterIndex, windows_core::IUnknown); impl IAlterIndex { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AlterIndex(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID, rgpropertysets: &mut [DBPROPSET]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AlterIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pindexid), core::mem::transmute(pnewindexid), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() + (windows_core::Interface::vtable(self).AlterIndex)(windows_core::Interface::as_raw(self), ptableid, pindexid, pnewindexid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() } } #[repr(C)] @@ -5210,11 +5210,11 @@ windows_core::imp::interface_hierarchy!(IAlterTable, windows_core::IUnknown); impl IAlterTable { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).AlterColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pcolumnid), core::mem::transmute(dwcolumndescflags), core::mem::transmute(pcolumndesc)).ok() + (windows_core::Interface::vtable(self).AlterColumn)(windows_core::Interface::as_raw(self), ptableid, pcolumnid, dwcolumndescflags, core::mem::transmute(pcolumndesc)).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AlterTable(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, rgpropertysets: &mut [DBPROPSET]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AlterTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pnewtableid), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() + (windows_core::Interface::vtable(self).AlterTable)(windows_core::Interface::as_raw(self), ptableid, pnewtableid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() } } #[repr(C)] @@ -5267,7 +5267,7 @@ impl IBindResource { P1: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), punkouter.param().abi(), pwszurl.param().abi(), core::mem::transmute(dwbindurlflags), core::mem::transmute(rguid), core::mem::transmute(riid), pauthenticate.param().abi(), core::mem::transmute(pimplsession.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbindstatus.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), punkouter.param().abi(), pwszurl.param().abi(), dwbindurlflags, rguid, riid, pauthenticate.param().abi(), core::mem::transmute(pimplsession.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbindstatus.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -5301,10 +5301,10 @@ windows_core::imp::define_interface!(IChapteredRowset, IChapteredRowset_Vtbl, 0x windows_core::imp::interface_hierarchy!(IChapteredRowset, windows_core::IUnknown); impl IChapteredRowset { pub unsafe fn AddRefChapter(&self, hchapter: usize, pcrefcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRefChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddRefChapter)(windows_core::Interface::as_raw(self), hchapter, core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ReleaseChapter(&self, hchapter: usize, pcrefcount: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ReleaseChapter)(windows_core::Interface::as_raw(self), hchapter, core::mem::transmute(pcrefcount.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -5350,11 +5350,11 @@ impl IColumnMapper { } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetPropInfoFromId(&self, ppropid: *const super::super::Storage::IndexServer::DBID, pwcsname: *mut *mut u16, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropInfoFromId)(windows_core::Interface::as_raw(self), core::mem::transmute(ppropid), core::mem::transmute(pwcsname), core::mem::transmute(pproptype), core::mem::transmute(puiwidth)).ok() + (windows_core::Interface::vtable(self).GetPropInfoFromId)(windows_core::Interface::as_raw(self), ppropid, core::mem::transmute(pwcsname), core::mem::transmute(pproptype), core::mem::transmute(puiwidth)).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).EnumPropInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ientry), core::mem::transmute(pwcsname), core::mem::transmute(pppropid), core::mem::transmute(pproptype), core::mem::transmute(puiwidth)).ok() + (windows_core::Interface::vtable(self).EnumPropInfo)(windows_core::Interface::as_raw(self), ientry, pwcsname, core::mem::transmute(pppropid), core::mem::transmute(pproptype), core::mem::transmute(puiwidth)).ok() } pub unsafe fn IsMapUpToDate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsMapUpToDate)(windows_core::Interface::as_raw(self)).ok() @@ -5465,7 +5465,7 @@ impl IColumnsInfo { } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn MapColumnIDs(&self, ccolumnids: usize, rgcolumnids: Option<*const super::super::Storage::IndexServer::DBID>, rgcolumns: Option<*mut usize>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapColumnIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(ccolumnids), core::mem::transmute(rgcolumnids.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgcolumns.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).MapColumnIDs)(windows_core::Interface::as_raw(self), ccolumnids, core::mem::transmute(rgcolumnids.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgcolumns.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -5519,7 +5519,7 @@ windows_core::imp::interface_hierarchy!(IColumnsInfo2, windows_core::IUnknown, I impl IColumnsInfo2 { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn GetRestrictedColumnInfo(&self, rgcolumnidmasks: &[super::super::Storage::IndexServer::DBID], dwflags: u32, pccolumns: *mut usize, prgcolumnids: *mut *mut super::super::Storage::IndexServer::DBID, prgcolumninfo: *mut *mut DBCOLUMNINFO, ppstringsbuffer: Option<*mut *mut u16>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRestrictedColumnInfo)(windows_core::Interface::as_raw(self), rgcolumnidmasks.len().try_into().unwrap(), core::mem::transmute(rgcolumnidmasks.as_ptr()), core::mem::transmute(dwflags), core::mem::transmute(pccolumns), core::mem::transmute(prgcolumnids), core::mem::transmute(prgcolumninfo), core::mem::transmute(ppstringsbuffer.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetRestrictedColumnInfo)(windows_core::Interface::as_raw(self), rgcolumnidmasks.len().try_into().unwrap(), core::mem::transmute(rgcolumnidmasks.as_ptr()), dwflags, core::mem::transmute(pccolumns), core::mem::transmute(prgcolumnids), core::mem::transmute(prgcolumninfo), core::mem::transmute(ppstringsbuffer.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -5561,7 +5561,7 @@ impl IColumnsRowset { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColumnsRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), rgoptcolumns.len().try_into().unwrap(), core::mem::transmute(rgoptcolumns.as_ptr()), core::mem::transmute(riid), rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppcolrowset)).ok() + (windows_core::Interface::vtable(self).GetColumnsRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), rgoptcolumns.len().try_into().unwrap(), core::mem::transmute(rgoptcolumns.as_ptr()), riid, rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppcolrowset)).ok() } } #[repr(C)] @@ -5614,11 +5614,11 @@ impl ICommand { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), core::mem::transmute(pparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcrowsaffected.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, core::mem::transmute(pparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcrowsaffected.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetDBSession(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDBSession)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDBSession)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5702,7 +5702,7 @@ impl ICommandCost { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCostLimits)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), core::mem::transmute(ccostlimits), core::mem::transmute(prgcostlimits), core::mem::transmute(dwexecutionflags)).ok() + (windows_core::Interface::vtable(self).SetCostLimits)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), ccostlimits, prgcostlimits, dwexecutionflags).ok() } } #[repr(C)] @@ -5769,7 +5769,7 @@ windows_core::imp::interface_hierarchy!(ICommandPersist, windows_core::IUnknown) impl ICommandPersist { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn DeleteCommand(&self, pcommandid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pcommandid)).ok() + (windows_core::Interface::vtable(self).DeleteCommand)(windows_core::Interface::as_raw(self), pcommandid).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetCurrentCommand(&self) -> windows_core::Result<*mut super::super::Storage::IndexServer::DBID> { @@ -5778,11 +5778,11 @@ impl ICommandPersist { } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn LoadCommand(&self, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pcommandid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).LoadCommand)(windows_core::Interface::as_raw(self), pcommandid, dwflags).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn SaveCommand(&self, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pcommandid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SaveCommand)(windows_core::Interface::as_raw(self), pcommandid, dwflags).ok() } } #[repr(C)] @@ -5855,7 +5855,7 @@ windows_core::imp::define_interface!(ICommandPrepare, ICommandPrepare_Vtbl, 0x0c windows_core::imp::interface_hierarchy!(ICommandPrepare, windows_core::IUnknown); impl ICommandPrepare { pub unsafe fn Prepare(&self, cexpectedruns: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Prepare)(windows_core::Interface::as_raw(self), core::mem::transmute(cexpectedruns)).ok() + (windows_core::Interface::vtable(self).Prepare)(windows_core::Interface::as_raw(self), cexpectedruns).ok() } pub unsafe fn Unprepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unprepare)(windows_core::Interface::as_raw(self)).ok() @@ -5950,7 +5950,7 @@ impl ICommandStream { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommandStream)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(rguiddialect), pcommandstream.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommandStream)(windows_core::Interface::as_raw(self), riid, rguiddialect, pcommandstream.param().abi()).ok() } } #[repr(C)] @@ -6000,7 +6000,7 @@ impl ICommandText { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommandText)(windows_core::Interface::as_raw(self), core::mem::transmute(rguiddialect), pwszcommand.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommandText)(windows_core::Interface::as_raw(self), rguiddialect, pwszcommand.param().abi()).ok() } } #[repr(C)] @@ -6084,10 +6084,10 @@ impl ICommandWithParameters { } pub unsafe fn MapParameterNames(&self, cparamnames: usize, rgparamnames: *const windows_core::PCWSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MapParameterNames)(windows_core::Interface::as_raw(self), core::mem::transmute(cparamnames), core::mem::transmute(rgparamnames), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapParameterNames)(windows_core::Interface::as_raw(self), cparamnames, rgparamnames, &mut result__).map(|| result__) } pub unsafe fn SetParameterInfo(&self, cparams: usize, rgparamordinals: Option<*const usize>, rgparambindinfo: Option<*const DBPARAMBINDINFO>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameterInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(cparams), core::mem::transmute(rgparamordinals.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgparambindinfo.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetParameterInfo)(windows_core::Interface::as_raw(self), cparams, core::mem::transmute(rgparamordinals.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgparambindinfo.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -6368,7 +6368,7 @@ impl IConditionFactory { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MakeAndOr)(windows_core::Interface::as_raw(self), core::mem::transmute(ct), peusubs.param().abi(), fsimplify.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MakeAndOr)(windows_core::Interface::as_raw(self), ct, peusubs.param().abi(), fsimplify.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] pub unsafe fn MakeLeaf(&self, pszpropertyname: P0, cop: Common::CONDITION_OPERATION, pszvaluetype: P2, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, ppropertynameterm: P4, poperationterm: P5, pvalueterm: P6, fexpand: bool) -> windows_core::Result @@ -6380,7 +6380,7 @@ impl IConditionFactory { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MakeLeaf)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), core::mem::transmute(cop), pszvaluetype.param().abi(), core::mem::transmute(ppropvar), ppropertynameterm.param().abi(), poperationterm.param().abi(), pvalueterm.param().abi(), fexpand.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MakeLeaf)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), cop, pszvaluetype.param().abi(), core::mem::transmute(ppropvar), ppropertynameterm.param().abi(), poperationterm.param().abi(), pvalueterm.param().abi(), fexpand.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Resolve(&self, pc: P0, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: Option<*const super::super::Foundation::SYSTEMTIME>) -> windows_core::Result @@ -6388,7 +6388,7 @@ impl IConditionFactory { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), pc.param().abi(), core::mem::transmute(sqro), core::mem::transmute(pstreferencetime.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), pc.param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6489,7 +6489,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateTrueFalse)(windows_core::Interface::as_raw(self), fval.into(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTrueFalse)(windows_core::Interface::as_raw(self), fval.into(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateNegation(&self, pcsub: P0, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6498,7 +6498,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateNegation)(windows_core::Interface::as_raw(self), pcsub.param().abi(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNegation)(windows_core::Interface::as_raw(self), pcsub.param().abi(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Search_Common", feature = "Win32_UI_Shell_Common"))] pub unsafe fn CreateCompoundFromObjectArray(&self, ct: Common::CONDITION_TYPE, poasubs: P1, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6507,7 +6507,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCompoundFromObjectArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ct), poasubs.param().abi(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompoundFromObjectArray)(windows_core::Interface::as_raw(self), ct, poasubs.param().abi(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn CreateCompoundFromArray(&self, ct: Common::CONDITION_TYPE, ppcondsubs: &[Option], cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6515,7 +6515,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCompoundFromArray)(windows_core::Interface::as_raw(self), core::mem::transmute(ct), core::mem::transmute(ppcondsubs.as_ptr()), ppcondsubs.len().try_into().unwrap(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompoundFromArray)(windows_core::Interface::as_raw(self), ct, core::mem::transmute(ppcondsubs.as_ptr()), ppcondsubs.len().try_into().unwrap(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Search_Common")] pub unsafe fn CreateStringLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, pszvalue: P2, pszlocalename: P3, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6525,7 +6525,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateStringLeaf)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), core::mem::transmute(cop), pszvalue.param().abi(), pszlocalename.param().abi(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStringLeaf)(windows_core::Interface::as_raw(self), propkey, cop, pszvalue.param().abi(), pszlocalename.param().abi(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Search_Common")] pub unsafe fn CreateIntegerLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, lvalue: i32, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6533,7 +6533,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateIntegerLeaf)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), core::mem::transmute(cop), core::mem::transmute(lvalue), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateIntegerLeaf)(windows_core::Interface::as_raw(self), propkey, cop, lvalue, cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Search_Common")] pub unsafe fn CreateBooleanLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: bool, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6541,7 +6541,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateBooleanLeaf)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), core::mem::transmute(cop), fvalue.into(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBooleanLeaf)(windows_core::Interface::as_raw(self), propkey, cop, fvalue.into(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] pub unsafe fn CreateLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, propvar: *const super::Com::StructuredStorage::PROPVARIANT, pszsemantictype: P3, pszlocalename: P4, ppropertynameterm: P5, poperationterm: P6, pvalueterm: P7, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -6554,7 +6554,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateLeaf)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), core::mem::transmute(cop), core::mem::transmute(propvar), pszsemantictype.param().abi(), pszlocalename.param().abi(), ppropertynameterm.param().abi(), poperationterm.param().abi(), pvalueterm.param().abi(), core::mem::transmute(cco), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLeaf)(windows_core::Interface::as_raw(self), propkey, cop, core::mem::transmute(propvar), pszsemantictype.param().abi(), pszlocalename.param().abi(), ppropertynameterm.param().abi(), poperationterm.param().abi(), pvalueterm.param().abi(), cco, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ResolveCondition(&self, pc: P0, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: Option<*const super::super::Foundation::SYSTEMTIME>) -> windows_core::Result @@ -6563,7 +6563,7 @@ impl IConditionFactory2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ResolveCondition)(windows_core::Interface::as_raw(self), pc.param().abi(), core::mem::transmute(sqro), core::mem::transmute(pstreferencetime.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ResolveCondition)(windows_core::Interface::as_raw(self), pc.param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6688,7 +6688,7 @@ impl IConditionGenerator { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RecognizeNamedEntities)(windows_core::Interface::as_raw(self), pszinputstring.param().abi(), core::mem::transmute(lciduserlocale), ptokencollection.param().abi(), pnamedentities.param().abi()).ok() + (windows_core::Interface::vtable(self).RecognizeNamedEntities)(windows_core::Interface::as_raw(self), pszinputstring.param().abi(), lciduserlocale, ptokencollection.param().abi(), pnamedentities.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn GenerateForLeaf(&self, pconditionfactory: P0, pszpropertyname: P1, cop: Common::CONDITION_OPERATION, pszvaluetype: P3, pszvalue: P4, pszvalue2: P5, ppropertynameterm: P6, poperationterm: P7, pvalueterm: P8, automaticwildcard: bool, pnostringquery: *mut super::super::Foundation::BOOL) -> windows_core::Result @@ -6703,7 +6703,7 @@ impl IConditionGenerator { P8: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateForLeaf)(windows_core::Interface::as_raw(self), pconditionfactory.param().abi(), pszpropertyname.param().abi(), core::mem::transmute(cop), pszvaluetype.param().abi(), pszvalue.param().abi(), pszvalue2.param().abi(), ppropertynameterm.param().abi(), poperationterm.param().abi(), pvalueterm.param().abi(), automaticwildcard.into(), core::mem::transmute(pnostringquery), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateForLeaf)(windows_core::Interface::as_raw(self), pconditionfactory.param().abi(), pszpropertyname.param().abi(), cop, pszvaluetype.param().abi(), pszvalue.param().abi(), pszvalue2.param().abi(), ppropertynameterm.param().abi(), poperationterm.param().abi(), pvalueterm.param().abi(), automaticwildcard.into(), core::mem::transmute(pnostringquery), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn DefaultPhrase(&self, pszvaluetype: P0, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, fuseenglish: bool, ppszphrase: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -6777,7 +6777,7 @@ windows_core::imp::define_interface!(IConvertType, IConvertType_Vtbl, 0x0c733a88 windows_core::imp::interface_hierarchy!(IConvertType, windows_core::IUnknown); impl IConvertType { pub unsafe fn CanConvert(&self, wfromtype: u16, wtotype: u16, dwconvertflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), core::mem::transmute(wfromtype), core::mem::transmute(wtotype), core::mem::transmute(dwconvertflags)).ok() + (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), wfromtype, wtotype, dwconvertflags).ok() } } #[repr(C)] @@ -6811,7 +6811,7 @@ impl ICreateRow { P1: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRow)(windows_core::Interface::as_raw(self), punkouter.param().abi(), pwszurl.param().abi(), core::mem::transmute(dwbindurlflags), core::mem::transmute(rguid), core::mem::transmute(riid), pauthenticate.param().abi(), core::mem::transmute(pimplsession.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbindstatus), core::mem::transmute(ppwsznewurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).CreateRow)(windows_core::Interface::as_raw(self), punkouter.param().abi(), pwszurl.param().abi(), dwbindurlflags, rguid, riid, pauthenticate.param().abi(), core::mem::transmute(pimplsession.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwbindstatus), core::mem::transmute(ppwsznewurl.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -6845,19 +6845,19 @@ windows_core::imp::define_interface!(IDBAsynchNotify, IDBAsynchNotify_Vtbl, 0x0c windows_core::imp::interface_hierarchy!(IDBAsynchNotify, windows_core::IUnknown); impl IDBAsynchNotify { pub unsafe fn OnLowResource(&self, dwreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLowResource)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).OnLowResource)(windows_core::Interface::as_raw(self), dwreserved).ok() } pub unsafe fn OnProgress(&self, hchapter: usize, eoperation: u32, ulprogress: usize, ulprogressmax: usize, easynchphase: u32, pwszstatustext: P5) -> windows_core::Result<()> where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(eoperation), core::mem::transmute(ulprogress), core::mem::transmute(ulprogressmax), core::mem::transmute(easynchphase), pwszstatustext.param().abi()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), hchapter, eoperation, ulprogress, ulprogressmax, easynchphase, pwszstatustext.param().abi()).ok() } pub unsafe fn OnStop(&self, hchapter: usize, eoperation: u32, hrstatus: windows_core::HRESULT, pwszstatustext: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStop)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(eoperation), core::mem::transmute(hrstatus), pwszstatustext.param().abi()).ok() + (windows_core::Interface::vtable(self).OnStop)(windows_core::Interface::as_raw(self), hchapter, eoperation, hrstatus, pwszstatustext.param().abi()).ok() } } #[repr(C)] @@ -6902,10 +6902,10 @@ windows_core::imp::define_interface!(IDBAsynchStatus, IDBAsynchStatus_Vtbl, 0x0c windows_core::imp::interface_hierarchy!(IDBAsynchStatus, windows_core::IUnknown); impl IDBAsynchStatus { pub unsafe fn Abort(&self, hchapter: usize, eoperation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(eoperation)).ok() + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), hchapter, eoperation).ok() } pub unsafe fn GetStatus(&self, hchapter: usize, eoperation: u32, pulprogress: Option<*mut usize>, pulprogressmax: Option<*mut usize>, peasynchphase: *mut u32, ppwszstatustext: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(eoperation), core::mem::transmute(pulprogress.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulprogressmax.unwrap_or(core::mem::zeroed())), core::mem::transmute(peasynchphase), core::mem::transmute(ppwszstatustext.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), hchapter, eoperation, core::mem::transmute(pulprogress.unwrap_or(core::mem::zeroed())), core::mem::transmute(pulprogressmax.unwrap_or(core::mem::zeroed())), core::mem::transmute(peasynchphase), core::mem::transmute(ppwszstatustext.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -6980,7 +6980,7 @@ impl IDBCreateCommand { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCommand)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCommand)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7018,7 +7018,7 @@ impl IDBCreateSession { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7056,7 +7056,7 @@ impl IDBDataSourceAdmin { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDataSource)(windows_core::Interface::as_raw(self), rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), punkouter.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppdbsession.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateDataSource)(windows_core::Interface::as_raw(self), rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), punkouter.param().abi(), riid, core::mem::transmute(ppdbsession.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DestroyDataSource(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DestroyDataSource)(windows_core::Interface::as_raw(self)).ok() @@ -7224,7 +7224,7 @@ impl IDBPromptInitialize { P0: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).PromptDataSource)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(hwndparent), core::mem::transmute(dwpromptoptions), rgsourcetypefilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgsourcetypefilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwszszzproviderfilter.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppdatasource)).ok() + (windows_core::Interface::vtable(self).PromptDataSource)(windows_core::Interface::as_raw(self), punkouter.param().abi(), hwndparent, dwpromptoptions, rgsourcetypefilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgsourcetypefilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwszszzproviderfilter.param().abi(), riid, core::mem::transmute(ppdatasource)).ok() } pub unsafe fn PromptFileName(&self, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, pwszinitialdirectory: P2, pwszinitialfile: P3) -> windows_core::Result where @@ -7232,7 +7232,7 @@ impl IDBPromptInitialize { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PromptFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(dwpromptoptions), pwszinitialdirectory.param().abi(), pwszinitialfile.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PromptFileName)(windows_core::Interface::as_raw(self), hwndparent, dwpromptoptions, pwszinitialdirectory.param().abi(), pwszinitialfile.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -7346,7 +7346,7 @@ impl IDBSchemaCommand { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(rguidschema), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), punkouter.param().abi(), rguidschema, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSchemas(&self, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSchemas)(windows_core::Interface::as_raw(self), core::mem::transmute(pcschemas), core::mem::transmute(prgschemas)).ok() @@ -7397,18 +7397,7 @@ impl IDBSchemaRowset { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRowset)( - windows_core::Interface::as_raw(self), - punkouter.param().abi(), - core::mem::transmute(rguidschema), - rgrestrictions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(rgrestrictions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(riid), - rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(pprowset), - ) - .ok() + (windows_core::Interface::vtable(self).GetRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), rguidschema, rgrestrictions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgrestrictions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), riid, rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pprowset)).ok() } pub unsafe fn GetSchemas(&self, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID, prgrestrictionsupport: *mut *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSchemas)(windows_core::Interface::as_raw(self), core::mem::transmute(pcschemas), core::mem::transmute(prgschemas), core::mem::transmute(prgrestrictionsupport)).ok() @@ -7457,7 +7446,7 @@ impl IDCInfo { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetInfo(&self, cinfo: u32, rgeinfotype: *const u32) -> windows_core::Result<*mut DCINFO> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(cinfo), core::mem::transmute(rgeinfotype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), cinfo, rgeinfotype, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetInfo(&self, rginfo: &[DCINFO]) -> windows_core::Result<()> { @@ -7568,28 +7557,13 @@ windows_core::imp::define_interface!(IDataConvert, IDataConvert_Vtbl, 0x0c733a8d windows_core::imp::interface_hierarchy!(IDataConvert, windows_core::IUnknown); impl IDataConvert { pub unsafe fn DataConvert(&self, wsrctype: u16, wdsttype: u16, cbsrclength: usize, pcbdstlength: Option<*mut usize>, psrc: *const core::ffi::c_void, pdst: *mut core::ffi::c_void, cbdstmaxlength: usize, dbssrcstatus: u32, pdbsstatus: Option<*mut u32>, bprecision: u8, bscale: u8, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DataConvert)( - windows_core::Interface::as_raw(self), - core::mem::transmute(wsrctype), - core::mem::transmute(wdsttype), - core::mem::transmute(cbsrclength), - core::mem::transmute(pcbdstlength.unwrap_or(core::mem::zeroed())), - core::mem::transmute(psrc), - core::mem::transmute(pdst), - core::mem::transmute(cbdstmaxlength), - core::mem::transmute(dbssrcstatus), - core::mem::transmute(pdbsstatus.unwrap_or(core::mem::zeroed())), - core::mem::transmute(bprecision), - core::mem::transmute(bscale), - core::mem::transmute(dwflags), - ) - .ok() + (windows_core::Interface::vtable(self).DataConvert)(windows_core::Interface::as_raw(self), wsrctype, wdsttype, cbsrclength, core::mem::transmute(pcbdstlength.unwrap_or(core::mem::zeroed())), psrc, core::mem::transmute(pdst), cbdstmaxlength, dbssrcstatus, core::mem::transmute(pdbsstatus.unwrap_or(core::mem::zeroed())), bprecision, bscale, dwflags).ok() } pub unsafe fn CanConvert(&self, wsrctype: u16, wdsttype: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), core::mem::transmute(wsrctype), core::mem::transmute(wdsttype)).ok() + (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), wsrctype, wdsttype).ok() } pub unsafe fn GetConversionSize(&self, wsrctype: u16, wdsttype: u16, pcbsrclength: Option<*const usize>, pcbdstlength: Option<*mut usize>, psrc: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConversionSize)(windows_core::Interface::as_raw(self), core::mem::transmute(wsrctype), core::mem::transmute(wdsttype), core::mem::transmute(pcbsrclength.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdstlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetConversionSize)(windows_core::Interface::as_raw(self), wsrctype, wdsttype, core::mem::transmute(pcbsrclength.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdstlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(psrc.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -7638,14 +7612,14 @@ impl IDataInitialize { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDataSource)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(dwclsctx), pwszinitializationstring.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppdatasource)).ok() + (windows_core::Interface::vtable(self).GetDataSource)(windows_core::Interface::as_raw(self), punkouter.param().abi(), dwclsctx, pwszinitializationstring.param().abi(), riid, core::mem::transmute(ppdatasource)).ok() } pub unsafe fn GetInitializationString(&self, pdatasource: P0, fincludepassword: u8) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInitializationString)(windows_core::Interface::as_raw(self), pdatasource.param().abi(), core::mem::transmute(fincludepassword), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInitializationString)(windows_core::Interface::as_raw(self), pdatasource.param().abi(), fincludepassword, &mut result__).map(|| result__) } pub unsafe fn CreateDBInstance(&self, clsidprovider: *const windows_core::GUID, punkouter: P1, dwclsctx: u32, pwszreserved: P3, riid: *const windows_core::GUID) -> windows_core::Result where @@ -7653,7 +7627,7 @@ impl IDataInitialize { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDBInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidprovider), punkouter.param().abi(), core::mem::transmute(dwclsctx), pwszreserved.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDBInstance)(windows_core::Interface::as_raw(self), clsidprovider, punkouter.param().abi(), dwclsctx, pwszreserved.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDBInstanceEx(&self, clsidprovider: *const windows_core::GUID, punkouter: P1, dwclsctx: u32, pwszreserved: P3, pserverinfo: *const super::Com::COSERVERINFO, rgmqresults: &mut [super::Com::MULTI_QI]) -> windows_core::Result<()> @@ -7661,7 +7635,7 @@ impl IDataInitialize { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDBInstanceEx)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidprovider), punkouter.param().abi(), core::mem::transmute(dwclsctx), pwszreserved.param().abi(), core::mem::transmute(pserverinfo), rgmqresults.len().try_into().unwrap(), core::mem::transmute(rgmqresults.as_ptr())).ok() + (windows_core::Interface::vtable(self).CreateDBInstanceEx)(windows_core::Interface::as_raw(self), clsidprovider, punkouter.param().abi(), dwclsctx, pwszreserved.param().abi(), pserverinfo, rgmqresults.len().try_into().unwrap(), core::mem::transmute(rgmqresults.as_ptr())).ok() } pub unsafe fn LoadStringFromStorage(&self, pwszfilename: P0) -> windows_core::Result where @@ -7675,7 +7649,7 @@ impl IDataInitialize { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStringToStorage)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), pwszinitializationstring.param().abi(), core::mem::transmute(dwcreationdisposition)).ok() + (windows_core::Interface::vtable(self).WriteStringToStorage)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), pwszinitializationstring.param().abi(), dwcreationdisposition).ok() } } #[repr(C)] @@ -7779,7 +7753,7 @@ impl IDataSourceLocator { (windows_core::Interface::vtable(self).hWnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SethWnd(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), hwndparent).ok() } pub unsafe fn PromptNew(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7998,7 +7972,7 @@ impl IEnumItemProperties { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -8089,7 +8063,7 @@ impl IEnumSearchRoots { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -8157,7 +8131,7 @@ impl IEnumSearchScopeRules { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), pprgelt.len().try_into().unwrap(), core::mem::transmute(pprgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -8225,7 +8199,7 @@ impl IEnumSubscription { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -8308,13 +8282,13 @@ windows_core::imp::interface_hierarchy!(IErrorLookup, windows_core::IUnknown); impl IErrorLookup { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetErrorDescription(&self, hrerror: windows_core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: Option<*mut windows_core::BSTR>, pbstrdescription: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror), core::mem::transmute(dwlookupid), core::mem::transmute(pdispparams), core::mem::transmute(lcid), core::mem::transmute(pbstrsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrdescription.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), hrerror, dwlookupid, pdispparams, lcid, core::mem::transmute(pbstrsource.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbstrdescription.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetHelpInfo(&self, hrerror: windows_core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut windows_core::BSTR, pdwhelpcontext: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHelpInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror), core::mem::transmute(dwlookupid), core::mem::transmute(lcid), core::mem::transmute(pbstrhelpfile), core::mem::transmute(pdwhelpcontext)).ok() + (windows_core::Interface::vtable(self).GetHelpInfo)(windows_core::Interface::as_raw(self), hrerror, dwlookupid, lcid, core::mem::transmute(pbstrhelpfile), core::mem::transmute(pdwhelpcontext)).ok() } pub unsafe fn ReleaseErrors(&self, dwdynamicerrorid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseErrors)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdynamicerrorid)).ok() + (windows_core::Interface::vtable(self).ReleaseErrors)(windows_core::Interface::as_raw(self), dwdynamicerrorid).ok() } } #[repr(C)] @@ -8369,24 +8343,24 @@ impl IErrorRecords { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddErrorRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(perrorinfo), core::mem::transmute(dwlookupid), core::mem::transmute(pdispparams.unwrap_or(core::mem::zeroed())), punkcustomerror.param().abi(), core::mem::transmute(dwdynamicerrorid)).ok() + (windows_core::Interface::vtable(self).AddErrorRecord)(windows_core::Interface::as_raw(self), perrorinfo, dwlookupid, core::mem::transmute(pdispparams.unwrap_or(core::mem::zeroed())), punkcustomerror.param().abi(), dwdynamicerrorid).ok() } pub unsafe fn GetBasicErrorInfo(&self, ulrecordnum: u32, perrorinfo: *mut ERRORINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBasicErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrecordnum), core::mem::transmute(perrorinfo)).ok() + (windows_core::Interface::vtable(self).GetBasicErrorInfo)(windows_core::Interface::as_raw(self), ulrecordnum, core::mem::transmute(perrorinfo)).ok() } pub unsafe fn GetCustomErrorObject(&self, ulrecordnum: u32, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCustomErrorObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrecordnum), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCustomErrorObject)(windows_core::Interface::as_raw(self), ulrecordnum, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetErrorInfo(&self, ulrecordnum: u32, lcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrecordnum), core::mem::transmute(lcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetErrorInfo)(windows_core::Interface::as_raw(self), ulrecordnum, lcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetErrorParameters(&self, ulrecordnum: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrecordnum), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetErrorParameters)(windows_core::Interface::as_raw(self), ulrecordnum, &mut result__).map(|| result__) } pub unsafe fn GetRecordCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8493,7 +8467,7 @@ windows_core::imp::interface_hierarchy!(IGetDataSource, windows_core::IUnknown); impl IGetDataSource { pub unsafe fn GetDataSource(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataSource)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDataSource)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8531,11 +8505,11 @@ impl IGetRow { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRowFromHROW)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(hrow), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRowFromHROW)(windows_core::Interface::as_raw(self), punkouter.param().abi(), hrow, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetURLFromHROW(&self, hrow: usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetURLFromHROW)(windows_core::Interface::as_raw(self), core::mem::transmute(hrow), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetURLFromHROW)(windows_core::Interface::as_raw(self), hrow, &mut result__).map(|| result__) } } #[repr(C)] @@ -8586,7 +8560,7 @@ windows_core::imp::interface_hierarchy!(IGetSession, windows_core::IUnknown); impl IGetSession { pub unsafe fn GetSession(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSession)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSession)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8621,7 +8595,7 @@ windows_core::imp::interface_hierarchy!(IGetSourceRow, windows_core::IUnknown); impl IGetSourceRow { pub unsafe fn GetSourceRow(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSourceRow)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSourceRow)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8656,11 +8630,11 @@ windows_core::imp::interface_hierarchy!(IIndexDefinition, windows_core::IUnknown impl IIndexDefinition { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateIndex(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: Option<*const super::super::Storage::IndexServer::DBID>, rgindexcolumndescs: &[DBINDEXCOLUMNDESC], rgpropertysets: &mut [DBPROPSET], ppindexid: Option<*mut *mut super::super::Storage::IndexServer::DBID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), rgindexcolumndescs.len().try_into().unwrap(), core::mem::transmute(rgindexcolumndescs.as_ptr()), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(ppindexid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CreateIndex)(windows_core::Interface::as_raw(self), ptableid, core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), rgindexcolumndescs.len().try_into().unwrap(), core::mem::transmute(rgindexcolumndescs.as_ptr()), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(ppindexid.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn DropIndex(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: Option<*const super::super::Storage::IndexServer::DBID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DropIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DropIndex)(windows_core::Interface::as_raw(self), ptableid, core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -8751,7 +8725,7 @@ impl ILoadFilter { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadIFilter)(windows_core::Interface::as_raw(self), pwcspath.param().abi(), core::mem::transmute(pfilteredsources), punkouter.param().abi(), fusedefault.into(), core::mem::transmute(pfilterclsid), core::mem::transmute(searchdecsize), core::mem::transmute(pwcssearchdesc), core::mem::transmute(ppifilt)).ok() + (windows_core::Interface::vtable(self).LoadIFilter)(windows_core::Interface::as_raw(self), pwcspath.param().abi(), pfilteredsources, punkouter.param().abi(), fusedefault.into(), core::mem::transmute(pfilterclsid), core::mem::transmute(searchdecsize), core::mem::transmute(pwcssearchdesc), core::mem::transmute(ppifilt)).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn LoadIFilterFromStorage(&self, pstg: P0, punkouter: P1, pwcsoverride: P2, fusedefault: bool, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> @@ -8768,7 +8742,7 @@ impl ILoadFilter { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadIFilterFromStream)(windows_core::Interface::as_raw(self), pstm.param().abi(), core::mem::transmute(pfilteredsources), punkouter.param().abi(), fusedefault.into(), core::mem::transmute(pfilterclsid), core::mem::transmute(searchdecsize), core::mem::transmute(pwcssearchdesc), core::mem::transmute(ppifilt)).ok() + (windows_core::Interface::vtable(self).LoadIFilterFromStream)(windows_core::Interface::as_raw(self), pstm.param().abi(), pfilteredsources, punkouter.param().abi(), fusedefault.into(), core::mem::transmute(pfilterclsid), core::mem::transmute(searchdecsize), core::mem::transmute(pwcssearchdesc), core::mem::transmute(ppifilt)).ok() } } #[repr(C)] @@ -8832,7 +8806,7 @@ windows_core::imp::interface_hierarchy!(ILoadFilterWithPrivateComActivation, win impl ILoadFilterWithPrivateComActivation { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn LoadIFilterWithPrivateComActivation(&self, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: bool, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadIFilterWithPrivateComActivation)(windows_core::Interface::as_raw(self), core::mem::transmute(filteredsources), usedefault.into(), core::mem::transmute(filterclsid), core::mem::transmute(isfilterprivatecomactivated), core::mem::transmute(filterobj)).ok() + (windows_core::Interface::vtable(self).LoadIFilterWithPrivateComActivation)(windows_core::Interface::as_raw(self), filteredsources, usedefault.into(), core::mem::transmute(filterclsid), core::mem::transmute(isfilterprivatecomactivated), core::mem::transmute(filterobj)).ok() } } #[repr(C)] @@ -8879,14 +8853,14 @@ impl IMDDataset { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAxisRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(iaxis), core::mem::transmute(riid), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset)).ok() + (windows_core::Interface::vtable(self).GetAxisRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), iaxis, riid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset)).ok() } pub unsafe fn GetCellData(&self, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCellData)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(ulstartcell), core::mem::transmute(ulendcell), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetCellData)(windows_core::Interface::as_raw(self), haccessor, ulstartcell, ulendcell, core::mem::transmute(pdata)).ok() } pub unsafe fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8958,11 +8932,11 @@ windows_core::imp::interface_hierarchy!(IMDFind, windows_core::IUnknown); impl IMDFind { pub unsafe fn FindCell(&self, ulstartingordinal: usize, rgpwszmember: &[windows_core::PCWSTR]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindCell)(windows_core::Interface::as_raw(self), core::mem::transmute(ulstartingordinal), rgpwszmember.len().try_into().unwrap(), core::mem::transmute(rgpwszmember.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindCell)(windows_core::Interface::as_raw(self), ulstartingordinal, rgpwszmember.len().try_into().unwrap(), core::mem::transmute(rgpwszmember.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn FindTuple(&self, ulaxisidentifier: u32, ulstartingordinal: usize, rgpwszmember: &[windows_core::PCWSTR]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTuple)(windows_core::Interface::as_raw(self), core::mem::transmute(ulaxisidentifier), core::mem::transmute(ulstartingordinal), rgpwszmember.len().try_into().unwrap(), core::mem::transmute(rgpwszmember.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindTuple)(windows_core::Interface::as_raw(self), ulaxisidentifier, ulstartingordinal, rgpwszmember.len().try_into().unwrap(), core::mem::transmute(rgpwszmember.as_ptr()), &mut result__).map(|| result__) } } #[repr(C)] @@ -9012,7 +8986,7 @@ impl IMDRangeRowset { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRangeRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ulstartcell), core::mem::transmute(ulendcell), core::mem::transmute(riid), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset)).ok() + (windows_core::Interface::vtable(self).GetRangeRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), ulstartcell, ulendcell, riid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset)).ok() } } #[repr(C)] @@ -9077,7 +9051,7 @@ impl IMultipleResults { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResult)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(lresultflag), core::mem::transmute(riid), core::mem::transmute(pcrowsaffected.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetResult)(windows_core::Interface::as_raw(self), punkouter.param().abi(), lresultflag, riid, core::mem::transmute(pcrowsaffected.unwrap_or(core::mem::zeroed())), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -9181,7 +9155,7 @@ impl INamedEntityCollector { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(beginspan), core::mem::transmute(endspan), core::mem::transmute(beginactual), core::mem::transmute(endactual), ptype.param().abi(), pszvalue.param().abi(), core::mem::transmute(certainty)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), beginspan, endspan, beginactual, endactual, ptype.param().abi(), pszvalue.param().abi(), certainty).ok() } } #[repr(C)] @@ -9210,25 +9184,25 @@ windows_core::imp::interface_hierarchy!(IObjectAccessControl, windows_core::IUnk impl IObjectAccessControl { #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] pub unsafe fn GetObjectAccessRights(&self, pobject: *const SEC_OBJECT, pcaccessentries: *mut u32, prgaccessentries: *mut *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjectAccessRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pobject), core::mem::transmute(pcaccessentries), core::mem::transmute(prgaccessentries)).ok() + (windows_core::Interface::vtable(self).GetObjectAccessRights)(windows_core::Interface::as_raw(self), pobject, core::mem::transmute(pcaccessentries), core::mem::transmute(prgaccessentries)).ok() } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] pub unsafe fn GetObjectOwner(&self, pobject: *const SEC_OBJECT) -> windows_core::Result<*mut super::super::Security::Authorization::TRUSTEE_W> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectOwner)(windows_core::Interface::as_raw(self), core::mem::transmute(pobject), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetObjectOwner)(windows_core::Interface::as_raw(self), pobject, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] pub unsafe fn IsObjectAccessAllowed(&self, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsObjectAccessAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(pobject), core::mem::transmute(paccessentry), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsObjectAccessAllowed)(windows_core::Interface::as_raw(self), pobject, paccessentry, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] pub unsafe fn SetObjectAccessRights(&self, pobject: *const SEC_OBJECT, caccessentries: u32, prgaccessentries: *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectAccessRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pobject), core::mem::transmute(caccessentries), core::mem::transmute(prgaccessentries)).ok() + (windows_core::Interface::vtable(self).SetObjectAccessRights)(windows_core::Interface::as_raw(self), pobject, caccessentries, core::mem::transmute(prgaccessentries)).ok() } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] pub unsafe fn SetObjectOwner(&self, pobject: *const SEC_OBJECT, powner: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectOwner)(windows_core::Interface::as_raw(self), core::mem::transmute(pobject), core::mem::transmute(powner)).ok() + (windows_core::Interface::vtable(self).SetObjectOwner)(windows_core::Interface::as_raw(self), pobject, powner).ok() } } #[repr(C)] @@ -9393,7 +9367,7 @@ impl IOpenRowset { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), core::mem::transmute(riid), rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), riid, rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -9431,7 +9405,7 @@ impl IParentRowset { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChildRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(iordinal), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChildRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), iordinal, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9471,7 +9445,7 @@ impl IProtocolHandlerSite { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pclsidobj), pcwszcontenttype.param().abi(), pcwszextension.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), pclsidobj, pcwszcontenttype.param().abi(), pcwszextension.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9563,19 +9537,19 @@ impl IQueryParser { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetOption(&self, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(option), core::mem::transmute(poptionvalue)).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), option, core::mem::transmute(poptionvalue)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetOption(&self, option: STRUCTURED_QUERY_SINGLE_OPTION) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(option), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), option, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetMultiOption(&self, option: STRUCTURED_QUERY_MULTIOPTION, pszoptionkey: P1, poptionvalue: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiOption)(windows_core::Interface::as_raw(self), core::mem::transmute(option), pszoptionkey.param().abi(), core::mem::transmute(poptionvalue)).ok() + (windows_core::Interface::vtable(self).SetMultiOption)(windows_core::Interface::as_raw(self), option, pszoptionkey.param().abi(), core::mem::transmute(poptionvalue)).ok() } pub unsafe fn GetSchemaProvider(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9738,7 +9712,7 @@ impl IQueryParserManager { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateLoadedParser)(windows_core::Interface::as_raw(self), pszcatalog.param().abi(), core::mem::transmute(langidforkeywords), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLoadedParser)(windows_core::Interface::as_raw(self), pszcatalog.param().abi(), langidforkeywords, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InitializeOptions(&self, funderstandnqs: bool, fautowildcard: bool, pqueryparser: P2) -> windows_core::Result<()> where @@ -9748,7 +9722,7 @@ impl IQueryParserManager { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetOption(&self, option: QUERY_PARSER_MANAGER_OPTION, poptionvalue: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(option), core::mem::transmute(poptionvalue)).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), option, core::mem::transmute(poptionvalue)).ok() } } #[repr(C)] @@ -9867,10 +9841,10 @@ windows_core::imp::define_interface!(IReadData, IReadData_Vtbl, 0x0c733a6a_2a1c_ windows_core::imp::interface_hierarchy!(IReadData, windows_core::IUnknown); impl IReadData { pub unsafe fn ReadData(&self, hchapter: usize, pbookmark: &[u8], lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadData)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(lrowsoffset), core::mem::transmute(haccessor), core::mem::transmute(crows), core::mem::transmute(pcrowsobtained), core::mem::transmute(ppfixeddata), core::mem::transmute(pcbvariabletotal), core::mem::transmute(ppvariabledata)).ok() + (windows_core::Interface::vtable(self).ReadData)(windows_core::Interface::as_raw(self), hchapter, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), lrowsoffset, haccessor, crows, core::mem::transmute(pcrowsobtained), core::mem::transmute(ppfixeddata), core::mem::transmute(pcbvariabletotal), core::mem::transmute(ppvariabledata)).ok() } pub unsafe fn ReleaseChapter(&self, hchapter: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter)).ok() + (windows_core::Interface::vtable(self).ReleaseChapter)(windows_core::Interface::as_raw(self), hchapter).ok() } } #[repr(C)] @@ -9912,19 +9886,19 @@ impl IRegisterProvider { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetURLMapping)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwreserved), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetURLMapping)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwreserved, &mut result__).map(|| result__) } pub unsafe fn SetURLMapping(&self, pwszurl: P0, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURLMapping)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwreserved), core::mem::transmute(rclsidprovider)).ok() + (windows_core::Interface::vtable(self).SetURLMapping)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwreserved, rclsidprovider).ok() } pub unsafe fn UnregisterProvider(&self, pwszurl: P0, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterProvider)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(dwreserved), core::mem::transmute(rclsidprovider)).ok() + (windows_core::Interface::vtable(self).UnregisterProvider)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwreserved, rclsidprovider).ok() } } #[repr(C)] @@ -10103,14 +10077,14 @@ impl IRow { (windows_core::Interface::vtable(self).GetColumns)(windows_core::Interface::as_raw(self), rgcolumns.len().try_into().unwrap(), core::mem::transmute(rgcolumns.as_ptr())).ok() } pub unsafe fn GetSourceRowset(&self, riid: *const windows_core::GUID, pprowset: Option<*mut Option>, phrow: Option<*mut usize>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSourceRowset)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed())), core::mem::transmute(phrow.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetSourceRowset)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed())), core::mem::transmute(phrow.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn Open(&self, punkouter: P0, pcolumnid: *const super::super::Storage::IndexServer::DBID, rguidcolumntype: *const windows_core::GUID, dwbindflags: u32, riid: *const windows_core::GUID, ppunk: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(pcolumnid), core::mem::transmute(rguidcolumntype), core::mem::transmute(dwbindflags), core::mem::transmute(riid), core::mem::transmute(ppunk.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), punkouter.param().abi(), pcolumnid, rguidcolumntype, dwbindflags, riid, core::mem::transmute(ppunk.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -10206,7 +10180,7 @@ impl IRowPosition { } pub unsafe fn GetRowset(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRowset)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRowset)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Initialize(&self, prowset: P0) -> windows_core::Result<()> where @@ -10215,7 +10189,7 @@ impl IRowPosition { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), prowset.param().abi()).ok() } pub unsafe fn SetRowPosition(&self, hchapter: usize, hrow: usize, dwpositionflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRowPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(hrow), core::mem::transmute(dwpositionflags)).ok() + (windows_core::Interface::vtable(self).SetRowPosition)(windows_core::Interface::as_raw(self), hchapter, hrow, dwpositionflags).ok() } } #[repr(C)] @@ -10280,7 +10254,7 @@ windows_core::imp::define_interface!(IRowPositionChange, IRowPositionChange_Vtbl windows_core::imp::interface_hierarchy!(IRowPositionChange, windows_core::IUnknown); impl IRowPositionChange { pub unsafe fn OnRowPositionChange(&self, ereason: u32, ephase: u32, fcantdeny: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnRowPositionChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ereason), core::mem::transmute(ephase), fcantdeny.into()).ok() + (windows_core::Interface::vtable(self).OnRowPositionChange)(windows_core::Interface::as_raw(self), ereason, ephase, fcantdeny.into()).ok() } } #[repr(C)] @@ -10315,11 +10289,11 @@ windows_core::imp::interface_hierarchy!(IRowSchemaChange, windows_core::IUnknown impl IRowSchemaChange { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn DeleteColumns(&self, ccolumns: usize, rgcolumnids: *const super::super::Storage::IndexServer::DBID, rgdwstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(ccolumns), core::mem::transmute(rgcolumnids), core::mem::transmute(rgdwstatus)).ok() + (windows_core::Interface::vtable(self).DeleteColumns)(windows_core::Interface::as_raw(self), ccolumns, rgcolumnids, core::mem::transmute(rgdwstatus)).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn AddColumns(&self, ccolumns: usize, rgnewcolumninfo: *const DBCOLUMNINFO, rgcolumns: *mut DBCOLUMNACCESS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(ccolumns), core::mem::transmute(rgnewcolumninfo), core::mem::transmute(rgcolumns)).ok() + (windows_core::Interface::vtable(self).AddColumns)(windows_core::Interface::as_raw(self), ccolumns, core::mem::transmute(rgnewcolumninfo), core::mem::transmute(rgcolumns)).ok() } } #[repr(C)] @@ -10362,19 +10336,19 @@ windows_core::imp::define_interface!(IRowset, IRowset_Vtbl, 0x0c733a7c_2a1c_11ce windows_core::imp::interface_hierarchy!(IRowset, windows_core::IUnknown); impl IRowset { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRefRows)(windows_core::Interface::as_raw(self), core::mem::transmute(crows), core::mem::transmute(rghrows), core::mem::transmute(rgrefcounts), core::mem::transmute(rgrowstatus)).ok() + (windows_core::Interface::vtable(self).AddRefRows)(windows_core::Interface::as_raw(self), crows, rghrows, core::mem::transmute(rgrefcounts), core::mem::transmute(rgrowstatus)).ok() } pub unsafe fn GetData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(hrow), core::mem::transmute(haccessor), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), hrow, haccessor, core::mem::transmute(pdata)).ok() } pub unsafe fn GetNextRows(&self, hreserved: usize, lrowsoffset: isize, pcrowsobtained: *mut usize, prghrows: &mut [*mut usize]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextRows)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(lrowsoffset), prghrows.len().try_into().unwrap(), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetNextRows)(windows_core::Interface::as_raw(self), hreserved, lrowsoffset, prghrows.len().try_into().unwrap(), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows.as_ptr())).ok() } pub unsafe fn ReleaseRows(&self, crows: usize, rghrows: *const usize, rgrowoptions: *const u32, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseRows)(windows_core::Interface::as_raw(self), core::mem::transmute(crows), core::mem::transmute(rghrows), core::mem::transmute(rgrowoptions), core::mem::transmute(rgrefcounts), core::mem::transmute(rgrowstatus)).ok() + (windows_core::Interface::vtable(self).ReleaseRows)(windows_core::Interface::as_raw(self), crows, rghrows, rgrowoptions, core::mem::transmute(rgrefcounts), core::mem::transmute(rgrowstatus)).ok() } pub unsafe fn RestartPosition(&self, hreserved: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RestartPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved)).ok() + (windows_core::Interface::vtable(self).RestartPosition)(windows_core::Interface::as_raw(self), hreserved).ok() } } #[repr(C)] @@ -10470,7 +10444,7 @@ windows_core::imp::define_interface!(IRowsetBookmark, IRowsetBookmark_Vtbl, 0x0c windows_core::imp::interface_hierarchy!(IRowsetBookmark, windows_core::IUnknown); impl IRowsetBookmark { pub unsafe fn PositionOnBookmark(&self, hchapter: usize, pbookmark: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PositionOnBookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr())).ok() + (windows_core::Interface::vtable(self).PositionOnBookmark)(windows_core::Interface::as_raw(self), hchapter, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr())).ok() } } #[repr(C)] @@ -10499,14 +10473,14 @@ windows_core::imp::interface_hierarchy!(IRowsetChange, windows_core::IUnknown); impl IRowsetChange { pub unsafe fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: *const usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DeleteRows)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(crows), core::mem::transmute(rghrows), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DeleteRows)(windows_core::Interface::as_raw(self), hreserved, crows, rghrows, &mut result__).map(|| result__) } pub unsafe fn SetData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), core::mem::transmute(hrow), core::mem::transmute(haccessor), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), hrow, haccessor, pdata).ok() } pub unsafe fn InsertRow(&self, hreserved: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(haccessor), core::mem::transmute(pdata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), hreserved, haccessor, pdata, &mut result__).map(|| result__) } } #[repr(C)] @@ -10563,10 +10537,10 @@ windows_core::imp::define_interface!(IRowsetChangeExtInfo, IRowsetChangeExtInfo_ windows_core::imp::interface_hierarchy!(IRowsetChangeExtInfo, windows_core::IUnknown); impl IRowsetChangeExtInfo { pub unsafe fn GetOriginalRow(&self, hreserved: usize, hrow: usize, phroworiginal: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOriginalRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(hrow), core::mem::transmute(phroworiginal)).ok() + (windows_core::Interface::vtable(self).GetOriginalRow)(windows_core::Interface::as_raw(self), hreserved, hrow, core::mem::transmute(phroworiginal)).ok() } pub unsafe fn GetPendingColumns(&self, hreserved: usize, hrow: usize, ccolumnordinals: u32, rgiordinals: *const u32, rgcolumnstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPendingColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(hrow), core::mem::transmute(ccolumnordinals), core::mem::transmute(rgiordinals), core::mem::transmute(rgcolumnstatus)).ok() + (windows_core::Interface::vtable(self).GetPendingColumns)(windows_core::Interface::as_raw(self), hreserved, hrow, ccolumnordinals, rgiordinals, core::mem::transmute(rgcolumnstatus)).ok() } } #[repr(C)] @@ -10604,7 +10578,7 @@ windows_core::imp::define_interface!(IRowsetChapterMember, IRowsetChapterMember_ windows_core::imp::interface_hierarchy!(IRowsetChapterMember, windows_core::IUnknown); impl IRowsetChapterMember { pub unsafe fn IsRowInChapter(&self, hchapter: usize, hrow: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsRowInChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(hrow)).ok() + (windows_core::Interface::vtable(self).IsRowInChapter)(windows_core::Interface::as_raw(self), hchapter, hrow).ok() } } #[repr(C)] @@ -10632,21 +10606,21 @@ windows_core::imp::define_interface!(IRowsetCopyRows, IRowsetCopyRows_Vtbl, 0x0c windows_core::imp::interface_hierarchy!(IRowsetCopyRows, windows_core::IUnknown); impl IRowsetCopyRows { pub unsafe fn CloseSource(&self, hsourceid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseSource)(windows_core::Interface::as_raw(self), core::mem::transmute(hsourceid)).ok() + (windows_core::Interface::vtable(self).CloseSource)(windows_core::Interface::as_raw(self), hsourceid).ok() } pub unsafe fn CopyByHROWS(&self, hsourceid: u16, hreserved: usize, rghrows: &[usize], bflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyByHROWS)(windows_core::Interface::as_raw(self), core::mem::transmute(hsourceid), core::mem::transmute(hreserved), rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), core::mem::transmute(bflags)).ok() + (windows_core::Interface::vtable(self).CopyByHROWS)(windows_core::Interface::as_raw(self), hsourceid, hreserved, rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), bflags).ok() } pub unsafe fn CopyRows(&self, hsourceid: u16, hreserved: usize, crows: isize, bflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyRows)(windows_core::Interface::as_raw(self), core::mem::transmute(hsourceid), core::mem::transmute(hreserved), core::mem::transmute(crows), core::mem::transmute(bflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CopyRows)(windows_core::Interface::as_raw(self), hsourceid, hreserved, crows, bflags, &mut result__).map(|| result__) } pub unsafe fn DefineSource(&self, prowsetsource: P0, ccolids: usize, rgsourcecolumns: *const isize, rgtargetcolumns: *const isize) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineSource)(windows_core::Interface::as_raw(self), prowsetsource.param().abi(), core::mem::transmute(ccolids), core::mem::transmute(rgsourcecolumns), core::mem::transmute(rgtargetcolumns), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DefineSource)(windows_core::Interface::as_raw(self), prowsetsource.param().abi(), ccolids, rgsourcecolumns, rgtargetcolumns, &mut result__).map(|| result__) } } #[repr(C)] @@ -10722,7 +10696,7 @@ impl IRowsetCurrentIndex { } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn SetIndex(&self, pindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(pindexid)).ok() + (windows_core::Interface::vtable(self).SetIndex)(windows_core::Interface::as_raw(self), pindexid).ok() } } #[repr(C)] @@ -10772,19 +10746,19 @@ windows_core::imp::interface_hierarchy!(IRowsetEvents, windows_core::IUnknown); impl IRowsetEvents { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn OnNewItem(&self, itemid: *const super::Com::StructuredStorage::PROPVARIANT, newitemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNewItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), core::mem::transmute(newitemstate)).ok() + (windows_core::Interface::vtable(self).OnNewItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), newitemstate).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn OnChangedItem(&self, itemid: *const super::Com::StructuredStorage::PROPVARIANT, rowsetitemstate: ROWSETEVENT_ITEMSTATE, changeditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChangedItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), core::mem::transmute(rowsetitemstate), core::mem::transmute(changeditemstate)).ok() + (windows_core::Interface::vtable(self).OnChangedItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), rowsetitemstate, changeditemstate).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn OnDeletedItem(&self, itemid: *const super::Com::StructuredStorage::PROPVARIANT, deleteditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDeletedItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), core::mem::transmute(deleteditemstate)).ok() + (windows_core::Interface::vtable(self).OnDeletedItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), deleteditemstate).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn OnRowsetEvent(&self, eventtype: ROWSETEVENT_TYPE, eventdata: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnRowsetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventtype), core::mem::transmute(eventdata)).ok() + (windows_core::Interface::vtable(self).OnRowsetEvent)(windows_core::Interface::as_raw(self), eventtype, core::mem::transmute(eventdata)).ok() } } #[repr(C)] @@ -10857,7 +10831,7 @@ impl core::ops::Deref for IRowsetExactScroll { windows_core::imp::interface_hierarchy!(IRowsetExactScroll, windows_core::IUnknown, IRowset, IRowsetLocate, IRowsetScroll); impl IRowsetExactScroll { pub unsafe fn GetExactPosition(&self, hchapter: usize, pbookmark: &[u8], pulposition: *mut usize, pcrows: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExactPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(pulposition), core::mem::transmute(pcrows)).ok() + (windows_core::Interface::vtable(self).GetExactPosition)(windows_core::Interface::as_raw(self), hchapter, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(pulposition), core::mem::transmute(pcrows)).ok() } } #[repr(C)] @@ -10885,7 +10859,7 @@ windows_core::imp::define_interface!(IRowsetFastLoad, IRowsetFastLoad_Vtbl, 0x5c windows_core::imp::interface_hierarchy!(IRowsetFastLoad, windows_core::IUnknown); impl IRowsetFastLoad { pub unsafe fn InsertRow(&self, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), haccessor, core::mem::transmute(pdata)).ok() } pub unsafe fn Commit(&self, fdone: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fdone.into()).ok() @@ -10922,7 +10896,7 @@ windows_core::imp::define_interface!(IRowsetFind, IRowsetFind_Vtbl, 0x0c733a9d_2 windows_core::imp::interface_hierarchy!(IRowsetFind, windows_core::IUnknown); impl IRowsetFind { pub unsafe fn FindNextRow(&self, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *const core::ffi::c_void, compareop: u32, pbookmark: &[u8], lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindNextRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(haccessor), core::mem::transmute(pfindvalue), core::mem::transmute(compareop), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(lrowsoffset), core::mem::transmute(crows), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows)).ok() + (windows_core::Interface::vtable(self).FindNextRow)(windows_core::Interface::as_raw(self), hchapter, haccessor, pfindvalue, compareop, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), lrowsoffset, crows, core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows)).ok() } } #[repr(C)] @@ -10950,7 +10924,7 @@ windows_core::imp::define_interface!(IRowsetIdentity, IRowsetIdentity_Vtbl, 0x0c windows_core::imp::interface_hierarchy!(IRowsetIdentity, windows_core::IUnknown); impl IRowsetIdentity { pub unsafe fn IsSameRow(&self, hthisrow: usize, hthatrow: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsSameRow)(windows_core::Interface::as_raw(self), core::mem::transmute(hthisrow), core::mem::transmute(hthatrow)).ok() + (windows_core::Interface::vtable(self).IsSameRow)(windows_core::Interface::as_raw(self), hthisrow, hthatrow).ok() } } #[repr(C)] @@ -10982,10 +10956,10 @@ impl IRowsetIndex { (windows_core::Interface::vtable(self).GetIndexInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pckeycolumns), core::mem::transmute(prgindexcolumndesc), core::mem::transmute(pcindexpropertysets), core::mem::transmute(prgindexpropertysets)).ok() } pub unsafe fn Seek(&self, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *const core::ffi::c_void, dwseekoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(ckeyvalues), core::mem::transmute(pdata), core::mem::transmute(dwseekoptions)).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), haccessor, ckeyvalues, pdata, dwseekoptions).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(cstartkeycolumns), core::mem::transmute(pstartdata), core::mem::transmute(cendkeycolumns), core::mem::transmute(penddata), core::mem::transmute(dwrangeoptions)).ok() + (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), haccessor, cstartkeycolumns, pstartdata, cendkeycolumns, penddata, dwrangeoptions).ok() } } #[repr(C)] @@ -11041,11 +11015,11 @@ impl IRowsetInfo { } pub unsafe fn GetReferencedRowset(&self, iordinal: usize, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReferencedRowset)(windows_core::Interface::as_raw(self), core::mem::transmute(iordinal), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReferencedRowset)(windows_core::Interface::as_raw(self), iordinal, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11143,16 +11117,16 @@ windows_core::imp::interface_hierarchy!(IRowsetLocate, windows_core::IUnknown, I impl IRowsetLocate { pub unsafe fn Compare(&self, hreserved: usize, pbookmark1: &[u8], pbookmark2: &[u8]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), pbookmark1.len().try_into().unwrap(), core::mem::transmute(pbookmark1.as_ptr()), pbookmark2.len().try_into().unwrap(), core::mem::transmute(pbookmark2.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), hreserved, pbookmark1.len().try_into().unwrap(), core::mem::transmute(pbookmark1.as_ptr()), pbookmark2.len().try_into().unwrap(), core::mem::transmute(pbookmark2.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn GetRowsAt(&self, hreserved1: usize, hreserved2: usize, pbookmark: &[u8], lrowsoffset: isize, pcrowsobtained: *mut usize, prghrows: &mut [*mut usize]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRowsAt)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved1), core::mem::transmute(hreserved2), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(lrowsoffset), prghrows.len().try_into().unwrap(), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetRowsAt)(windows_core::Interface::as_raw(self), hreserved1, hreserved2, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), lrowsoffset, prghrows.len().try_into().unwrap(), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows.as_ptr())).ok() } pub unsafe fn GetRowsByBookmark(&self, hreserved: usize, crows: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghrows: *mut usize, rgrowstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRowsByBookmark)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(crows), core::mem::transmute(rgcbbookmarks), core::mem::transmute(rgpbookmarks), core::mem::transmute(rghrows), core::mem::transmute(rgrowstatus)).ok() + (windows_core::Interface::vtable(self).GetRowsByBookmark)(windows_core::Interface::as_raw(self), hreserved, crows, rgcbbookmarks, rgpbookmarks, core::mem::transmute(rghrows), core::mem::transmute(rgrowstatus)).ok() } pub unsafe fn Hash(&self, hreserved: usize, cbookmarks: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghashedvalues: *mut usize, rgbookmarkstatus: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Hash)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(cbookmarks), core::mem::transmute(rgcbbookmarks), core::mem::transmute(rgpbookmarks), core::mem::transmute(rghashedvalues), core::mem::transmute(rgbookmarkstatus)).ok() + (windows_core::Interface::vtable(self).Hash)(windows_core::Interface::as_raw(self), hreserved, cbookmarks, rgcbbookmarks, rgpbookmarks, core::mem::transmute(rghashedvalues), core::mem::transmute(rgbookmarkstatus)).ok() } } #[repr(C)] @@ -11211,7 +11185,7 @@ windows_core::imp::interface_hierarchy!(IRowsetNewRowAfter, windows_core::IUnkno impl IRowsetNewRowAfter { pub unsafe fn SetNewDataAfter(&self, hchapter: usize, pbmprevious: &[u8], haccessor: HACCESSOR, pdata: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNewDataAfter)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), pbmprevious.len().try_into().unwrap(), core::mem::transmute(pbmprevious.as_ptr()), core::mem::transmute(haccessor), core::mem::transmute(pdata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetNewDataAfter)(windows_core::Interface::as_raw(self), hchapter, pbmprevious.len().try_into().unwrap(), core::mem::transmute(pbmprevious.as_ptr()), haccessor, pdata, &mut result__).map(|| result__) } } #[repr(C)] @@ -11249,7 +11223,7 @@ impl IRowsetNextRowset { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11286,19 +11260,19 @@ impl IRowsetNotify { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFieldChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), core::mem::transmute(hrow), rgcolumns.len().try_into().unwrap(), core::mem::transmute(rgcolumns.as_ptr()), core::mem::transmute(ereason), core::mem::transmute(ephase), fcantdeny.into()).ok() + (windows_core::Interface::vtable(self).OnFieldChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), hrow, rgcolumns.len().try_into().unwrap(), core::mem::transmute(rgcolumns.as_ptr()), ereason, ephase, fcantdeny.into()).ok() } pub unsafe fn OnRowChange(&self, prowset: P0, rghrows: &[usize], ereason: u32, ephase: u32, fcantdeny: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRowChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), core::mem::transmute(ereason), core::mem::transmute(ephase), fcantdeny.into()).ok() + (windows_core::Interface::vtable(self).OnRowChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), ereason, ephase, fcantdeny.into()).ok() } pub unsafe fn OnRowsetChange(&self, prowset: P0, ereason: u32, ephase: u32, fcantdeny: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRowsetChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), core::mem::transmute(ereason), core::mem::transmute(ephase), fcantdeny.into()).ok() + (windows_core::Interface::vtable(self).OnRowsetChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), ereason, ephase, fcantdeny.into()).ok() } } #[repr(C)] @@ -11343,7 +11317,7 @@ windows_core::imp::define_interface!(IRowsetPrioritization, IRowsetPrioritizatio windows_core::imp::interface_hierarchy!(IRowsetPrioritization, windows_core::IUnknown); impl IRowsetPrioritization { pub unsafe fn SetScopePriority(&self, priority: PRIORITY_LEVEL, scopestatisticseventfrequency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScopePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority), core::mem::transmute(scopestatisticseventfrequency)).ok() + (windows_core::Interface::vtable(self).SetScopePriority)(windows_core::Interface::as_raw(self), priority, scopestatisticseventfrequency).ok() } pub unsafe fn GetScopePriority(&self, priority: *mut PRIORITY_LEVEL, scopestatisticseventfrequency: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetScopePriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority), core::mem::transmute(scopestatisticseventfrequency)).ok() @@ -11397,7 +11371,7 @@ impl IRowsetQueryStatus { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatus)).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetStatusEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatus), core::mem::transmute(pcfiltereddocuments), core::mem::transmute(pcdocumentstofilter), core::mem::transmute(pdwratiofinisheddenominator), core::mem::transmute(pdwratiofinishednumerator), core::mem::transmute(cbbmk), core::mem::transmute(pbmk), core::mem::transmute(pirowbmk), core::mem::transmute(pcrowstotal)).ok() + (windows_core::Interface::vtable(self).GetStatusEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstatus), core::mem::transmute(pcfiltereddocuments), core::mem::transmute(pcdocumentstofilter), core::mem::transmute(pdwratiofinisheddenominator), core::mem::transmute(pdwratiofinishednumerator), cbbmk, pbmk, core::mem::transmute(pirowbmk), core::mem::transmute(pcrowstotal)).ok() } } #[repr(C)] @@ -11435,10 +11409,10 @@ windows_core::imp::define_interface!(IRowsetRefresh, IRowsetRefresh_Vtbl, 0x0c73 windows_core::imp::interface_hierarchy!(IRowsetRefresh, windows_core::IUnknown); impl IRowsetRefresh { pub unsafe fn RefreshVisibleData(&self, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: bool, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RefreshVisibleData)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(crows), core::mem::transmute(rghrows), foverwrite.into(), core::mem::transmute(pcrowsrefreshed), core::mem::transmute(prghrowsrefreshed), core::mem::transmute(prgrowstatus)).ok() + (windows_core::Interface::vtable(self).RefreshVisibleData)(windows_core::Interface::as_raw(self), hchapter, crows, rghrows, foverwrite.into(), core::mem::transmute(pcrowsrefreshed), core::mem::transmute(prghrowsrefreshed), core::mem::transmute(prgrowstatus)).ok() } pub unsafe fn GetLastVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLastVisibleData)(windows_core::Interface::as_raw(self), core::mem::transmute(hrow), core::mem::transmute(haccessor), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetLastVisibleData)(windows_core::Interface::as_raw(self), hrow, haccessor, core::mem::transmute(pdata)).ok() } } #[repr(C)] @@ -11476,10 +11450,10 @@ windows_core::imp::define_interface!(IRowsetResynch, IRowsetResynch_Vtbl, 0x0c73 windows_core::imp::interface_hierarchy!(IRowsetResynch, windows_core::IUnknown); impl IRowsetResynch { pub unsafe fn GetVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetVisibleData)(windows_core::Interface::as_raw(self), core::mem::transmute(hrow), core::mem::transmute(haccessor), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetVisibleData)(windows_core::Interface::as_raw(self), hrow, haccessor, core::mem::transmute(pdata)).ok() } pub unsafe fn ResynchRows(&self, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResynchRows)(windows_core::Interface::as_raw(self), core::mem::transmute(crows), core::mem::transmute(rghrows), core::mem::transmute(pcrowsresynched), core::mem::transmute(prghrowsresynched), core::mem::transmute(prgrowstatus)).ok() + (windows_core::Interface::vtable(self).ResynchRows)(windows_core::Interface::as_raw(self), crows, rghrows, core::mem::transmute(pcrowsresynched), core::mem::transmute(prghrowsresynched), core::mem::transmute(prgrowstatus)).ok() } } #[repr(C)] @@ -11523,10 +11497,10 @@ impl core::ops::Deref for IRowsetScroll { windows_core::imp::interface_hierarchy!(IRowsetScroll, windows_core::IUnknown, IRowset, IRowsetLocate); impl IRowsetScroll { pub unsafe fn GetApproximatePosition(&self, hreserved: usize, pbookmark: &[u8], pulposition: *mut usize, pcrows: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetApproximatePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(pulposition), core::mem::transmute(pcrows)).ok() + (windows_core::Interface::vtable(self).GetApproximatePosition)(windows_core::Interface::as_raw(self), hreserved, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(pulposition), core::mem::transmute(pcrows)).ok() } pub unsafe fn GetRowsAtRatio(&self, hreserved1: usize, hreserved2: usize, ulnumerator: usize, uldenominator: usize, pcrowsobtained: *mut usize, prghrows: &mut [*mut usize]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRowsAtRatio)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved1), core::mem::transmute(hreserved2), core::mem::transmute(ulnumerator), core::mem::transmute(uldenominator), prghrows.len().try_into().unwrap(), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetRowsAtRatio)(windows_core::Interface::as_raw(self), hreserved1, hreserved2, ulnumerator, uldenominator, prghrows.len().try_into().unwrap(), core::mem::transmute(pcrowsobtained), core::mem::transmute(prghrows.as_ptr())).ok() } } #[repr(C)] @@ -11570,20 +11544,20 @@ impl core::ops::Deref for IRowsetUpdate { windows_core::imp::interface_hierarchy!(IRowsetUpdate, windows_core::IUnknown, IRowsetChange); impl IRowsetUpdate { pub unsafe fn GetOriginalData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOriginalData)(windows_core::Interface::as_raw(self), core::mem::transmute(hrow), core::mem::transmute(haccessor), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).GetOriginalData)(windows_core::Interface::as_raw(self), hrow, haccessor, core::mem::transmute(pdata)).ok() } pub unsafe fn GetPendingRows(&self, hreserved: usize, dwrowstatus: u32, pcpendingrows: *mut usize, prgpendingrows: *mut *mut usize, prgpendingstatus: *mut *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPendingRows)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(dwrowstatus), core::mem::transmute(pcpendingrows), core::mem::transmute(prgpendingrows), core::mem::transmute(prgpendingstatus)).ok() + (windows_core::Interface::vtable(self).GetPendingRows)(windows_core::Interface::as_raw(self), hreserved, dwrowstatus, core::mem::transmute(pcpendingrows), core::mem::transmute(prgpendingrows), core::mem::transmute(prgpendingstatus)).ok() } pub unsafe fn GetRowStatus(&self, hreserved: usize, crows: usize, rghrows: *const usize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRowStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), core::mem::transmute(crows), core::mem::transmute(rghrows), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRowStatus)(windows_core::Interface::as_raw(self), hreserved, crows, rghrows, &mut result__).map(|| result__) } pub unsafe fn Undo(&self, hreserved: usize, rghrows: &[usize], pcrowsundone: *mut usize, prgrowsundone: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Undo)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), core::mem::transmute(pcrowsundone), core::mem::transmute(prgrowsundone), core::mem::transmute(prgrowstatus)).ok() + (windows_core::Interface::vtable(self).Undo)(windows_core::Interface::as_raw(self), hreserved, rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), core::mem::transmute(pcrowsundone), core::mem::transmute(prgrowsundone), core::mem::transmute(prgrowstatus)).ok() } pub unsafe fn Update(&self, hreserved: usize, rghrows: &[usize], pcrows: *mut usize, prgrows: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(hreserved), rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), core::mem::transmute(pcrows), core::mem::transmute(prgrows), core::mem::transmute(prgrowstatus)).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), hreserved, rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), core::mem::transmute(pcrows), core::mem::transmute(prgrows), core::mem::transmute(prgrowstatus)).ok() } } #[repr(C)] @@ -11652,10 +11626,10 @@ impl IRowsetView { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetView(&self, hchapter: usize, riid: *const windows_core::GUID, phchaptersource: *mut usize, ppview: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), core::mem::transmute(hchapter), core::mem::transmute(riid), core::mem::transmute(phchaptersource), core::mem::transmute(ppview)).ok() + (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), hchapter, riid, core::mem::transmute(phchaptersource), core::mem::transmute(ppview)).ok() } } #[repr(C)] @@ -11749,7 +11723,7 @@ impl IRowsetWatchNotify { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), core::mem::transmute(echangereason)).ok() + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), echangereason).ok() } } #[repr(C)] @@ -11784,22 +11758,22 @@ windows_core::imp::interface_hierarchy!(IRowsetWatchRegion, windows_core::IUnkno impl IRowsetWatchRegion { pub unsafe fn CreateWatchRegion(&self, dwwatchmode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateWatchRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwatchmode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateWatchRegion)(windows_core::Interface::as_raw(self), dwwatchmode, &mut result__).map(|| result__) } pub unsafe fn ChangeWatchMode(&self, hregion: usize, dwwatchmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeWatchMode)(windows_core::Interface::as_raw(self), core::mem::transmute(hregion), core::mem::transmute(dwwatchmode)).ok() + (windows_core::Interface::vtable(self).ChangeWatchMode)(windows_core::Interface::as_raw(self), hregion, dwwatchmode).ok() } pub unsafe fn DeleteWatchRegion(&self, hregion: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteWatchRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(hregion)).ok() + (windows_core::Interface::vtable(self).DeleteWatchRegion)(windows_core::Interface::as_raw(self), hregion).ok() } pub unsafe fn GetWatchRegionInfo(&self, hregion: usize, pdwwatchmode: *mut u32, phchapter: *mut usize, pcbbookmark: *mut usize, ppbookmark: *mut *mut u8, pcrows: *mut isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetWatchRegionInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hregion), core::mem::transmute(pdwwatchmode), core::mem::transmute(phchapter), core::mem::transmute(pcbbookmark), core::mem::transmute(ppbookmark), core::mem::transmute(pcrows)).ok() + (windows_core::Interface::vtable(self).GetWatchRegionInfo)(windows_core::Interface::as_raw(self), hregion, core::mem::transmute(pdwwatchmode), core::mem::transmute(phchapter), core::mem::transmute(pcbbookmark), core::mem::transmute(ppbookmark), core::mem::transmute(pcrows)).ok() } pub unsafe fn Refresh(&self, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), core::mem::transmute(pcchangesobtained), core::mem::transmute(prgchanges)).ok() } pub unsafe fn ShrinkWatchRegion(&self, hregion: usize, hchapter: usize, pbookmark: &[u8], crows: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShrinkWatchRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(hregion), core::mem::transmute(hchapter), pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), core::mem::transmute(crows)).ok() + (windows_core::Interface::vtable(self).ShrinkWatchRegion)(windows_core::Interface::as_raw(self), hregion, hchapter, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), crows).ok() } } #[repr(C)] @@ -11875,7 +11849,7 @@ impl IRowsetWithParameters { (windows_core::Interface::vtable(self).GetParameterInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pcparams), core::mem::transmute(prgparaminfo), core::mem::transmute(ppnamesbuffer)).ok() } pub unsafe fn Requery(&self, pparams: *const DBPARAMS, pulerrorparam: *mut u32, phreserved: *mut usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Requery)(windows_core::Interface::as_raw(self), core::mem::transmute(pparams), core::mem::transmute(pulerrorparam), core::mem::transmute(phreserved)).ok() + (windows_core::Interface::vtable(self).Requery)(windows_core::Interface::as_raw(self), pparams, core::mem::transmute(pulerrorparam), core::mem::transmute(phreserved)).ok() } } #[repr(C)] @@ -12084,10 +12058,10 @@ windows_core::imp::interface_hierarchy!(ISchemaLock, windows_core::IUnknown); impl ISchemaLock { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetSchemaLock(&self, ptableid: *mut super::super::Storage::IndexServer::DBID, lmmode: u32, phlockhandle: *mut super::super::Foundation::HANDLE, ptableversion: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSchemaLock)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(lmmode), core::mem::transmute(phlockhandle), core::mem::transmute(ptableversion)).ok() + (windows_core::Interface::vtable(self).GetSchemaLock)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), lmmode, core::mem::transmute(phlockhandle), core::mem::transmute(ptableversion)).ok() } pub unsafe fn ReleaseSchemaLock(&self, hlockhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseSchemaLock)(windows_core::Interface::as_raw(self), core::mem::transmute(hlockhandle)).ok() + (windows_core::Interface::vtable(self).ReleaseSchemaLock)(windows_core::Interface::as_raw(self), hlockhandle).ok() } } #[repr(C)] @@ -12159,7 +12133,7 @@ impl ISchemaProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Localize)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), pschemalocalizersupport.param().abi()).ok() + (windows_core::Interface::vtable(self).Localize)(windows_core::Interface::as_raw(self), lcid, pschemalocalizersupport.param().abi()).ok() } pub unsafe fn SaveBinary(&self, pszschemabinarypath: P0) -> windows_core::Result<()> where @@ -12173,7 +12147,7 @@ impl ISchemaProvider { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LookupAuthoredNamedEntity)(windows_core::Interface::as_raw(self), pentity.param().abi(), pszinputstring.param().abi(), ptokencollection.param().abi(), core::mem::transmute(ctokensbegin), core::mem::transmute(pctokenslength), core::mem::transmute(ppszvalue)).ok() + (windows_core::Interface::vtable(self).LookupAuthoredNamedEntity)(windows_core::Interface::as_raw(self), pentity.param().abi(), pszinputstring.param().abi(), ptokencollection.param().abi(), ctokensbegin, core::mem::transmute(pctokenslength), core::mem::transmute(ppszvalue)).ok() } } #[repr(C)] @@ -12268,25 +12242,25 @@ impl IScopedOperations { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), core::mem::transmute(crows), core::mem::transmute(rgpwszsourceurls.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpwszdesturls), core::mem::transmute(dwcopyflags), pauthenticate.param().abi(), core::mem::transmute(rgdwstatus), core::mem::transmute(rgpwsznewurls.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppstringsbuffer.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), crows, core::mem::transmute(rgpwszsourceurls.unwrap_or(core::mem::zeroed())), rgpwszdesturls, dwcopyflags, pauthenticate.param().abi(), core::mem::transmute(rgdwstatus), core::mem::transmute(rgpwsznewurls.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppstringsbuffer.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Move(&self, crows: usize, rgpwszsourceurls: Option<*const windows_core::PCWSTR>, rgpwszdesturls: *const windows_core::PCWSTR, dwmoveflags: u32, pauthenticate: P4, rgdwstatus: *mut u32, rgpwsznewurls: Option<*mut windows_core::PWSTR>, ppstringsbuffer: Option<*mut *mut u16>) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(crows), core::mem::transmute(rgpwszsourceurls.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpwszdesturls), core::mem::transmute(dwmoveflags), pauthenticate.param().abi(), core::mem::transmute(rgdwstatus), core::mem::transmute(rgpwsznewurls.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppstringsbuffer.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), crows, core::mem::transmute(rgpwszsourceurls.unwrap_or(core::mem::zeroed())), rgpwszdesturls, dwmoveflags, pauthenticate.param().abi(), core::mem::transmute(rgdwstatus), core::mem::transmute(rgpwsznewurls.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppstringsbuffer.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Delete(&self, crows: usize, rgpwszurls: *const windows_core::PCWSTR, dwdeleteflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(crows), core::mem::transmute(rgpwszurls), core::mem::transmute(dwdeleteflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), crows, rgpwszurls, dwdeleteflags, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn OpenRowset(&self, punkouter: P0, ptableid: Option<*const super::super::Storage::IndexServer::DBID>, pindexid: Option<*const super::super::Storage::IndexServer::DBID>, riid: *const windows_core::GUID, rgpropertysets: &mut [DBPROPSET], pprowset: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), core::mem::transmute(riid), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pindexid.unwrap_or(core::mem::zeroed())), riid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -12396,14 +12370,14 @@ impl ISearchCatalogManager { (windows_core::Interface::vtable(self).ReindexSearchRoot)(windows_core::Interface::as_raw(self), pszrooturl.param().abi()).ok() } pub unsafe fn SetConnectTimeout(&self, dwconnecttimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconnecttimeout)).ok() + (windows_core::Interface::vtable(self).SetConnectTimeout)(windows_core::Interface::as_raw(self), dwconnecttimeout).ok() } pub unsafe fn ConnectTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ConnectTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDataTimeout(&self, dwdatatimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDataTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdatatimeout)).ok() + (windows_core::Interface::vtable(self).SetDataTimeout)(windows_core::Interface::as_raw(self), dwdatatimeout).ok() } pub unsafe fn DataTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12448,7 +12422,7 @@ impl ISearchCatalogManager { (windows_core::Interface::vtable(self).GetItemsChangedSink)(windows_core::Interface::as_raw(self), pisearchnotifyinlinesite.param().abi(), &T::IID, &mut result__, core::mem::transmute(pguidcatalogresetsignature), core::mem::transmute(pguidcheckpointsignature), core::mem::transmute(pdwlastcheckpointnumber)).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterViewForNotification(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterViewForNotification)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnregisterViewForNotification)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn SetExtensionClusion(&self, pszextension: P0, fexclude: bool) -> windows_core::Result<()> where @@ -12779,7 +12753,7 @@ impl ISearchCatalogManager2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrioritizeMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.param().abi(), core::mem::transmute(dwprioritizeflags)).ok() + (windows_core::Interface::vtable(self).PrioritizeMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.param().abi(), dwprioritizeflags).ok() } } #[repr(C)] @@ -12813,7 +12787,7 @@ impl ISearchCrawlScopeManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.into(), core::mem::transmute(ffollowflags)).ok() + (windows_core::Interface::vtable(self).AddDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.into(), ffollowflags).ok() } pub unsafe fn AddRoot(&self, psearchroot: P0) -> windows_core::Result<()> where @@ -12841,7 +12815,7 @@ impl ISearchCrawlScopeManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUserScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.into(), foverridechildren.into(), core::mem::transmute(ffollowflags)).ok() + (windows_core::Interface::vtable(self).AddUserScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.into(), foverridechildren.into(), ffollowflags).ok() } pub unsafe fn RemoveScopeRule(&self, pszrule: P0) -> windows_core::Result<()> where @@ -13116,7 +13090,7 @@ impl ISearchItemsChangedSink { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnItemsChanged(&self, dwnumberofchanges: u32, rgdatachangeentries: *const SEARCH_ITEM_CHANGE, rgdwdocids: *mut u32, rghrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnItemsChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnumberofchanges), core::mem::transmute(rgdatachangeentries), core::mem::transmute(rgdwdocids), core::mem::transmute(rghrcompletioncodes)).ok() + (windows_core::Interface::vtable(self).OnItemsChanged)(windows_core::Interface::as_raw(self), dwnumberofchanges, rgdatachangeentries, core::mem::transmute(rgdwdocids), core::mem::transmute(rghrcompletioncodes)).ok() } } #[repr(C)] @@ -13178,14 +13152,14 @@ impl ISearchLanguageSupport { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).LoadWordBreaker)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), &T::IID, &mut result__, core::mem::transmute(plcidused)).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadWordBreaker)(windows_core::Interface::as_raw(self), lcid, &T::IID, &mut result__, core::mem::transmute(plcidused)).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadStemmer(&self, lcid: u32, plcidused: *mut u32) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).LoadStemmer)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), &T::IID, &mut result__, core::mem::transmute(plcidused)).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadStemmer)(windows_core::Interface::as_raw(self), lcid, &T::IID, &mut result__, core::mem::transmute(plcidused)).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsPrefixNormalized(&self, pwcsquerytoken: &[u16], pwcsdocumenttoken: &[u16]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13294,7 +13268,7 @@ impl ISearchManager { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), core::mem::transmute(suseproxy), flocalbypassproxy.into(), core::mem::transmute(dwportnumber), pszproxyname.param().abi(), pszbypasslist.param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), suseproxy, flocalbypassproxy.into(), dwportnumber, pszproxyname.param().abi(), pszbypasslist.param().abi()).ok() } pub unsafe fn GetCatalog(&self, pszcatalog: P0) -> windows_core::Result where @@ -13564,10 +13538,10 @@ windows_core::imp::define_interface!(ISearchNotifyInlineSite, ISearchNotifyInlin windows_core::imp::interface_hierarchy!(ISearchNotifyInlineSite, windows_core::IUnknown); impl ISearchNotifyInlineSite { pub unsafe fn OnItemIndexedStatusChange(&self, sipstatus: SEARCH_INDEXING_PHASE, rgitemstatusentries: &[SEARCH_ITEM_INDEXING_STATUS]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnItemIndexedStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(sipstatus), rgitemstatusentries.len().try_into().unwrap(), core::mem::transmute(rgitemstatusentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).OnItemIndexedStatusChange)(windows_core::Interface::as_raw(self), sipstatus, rgitemstatusentries.len().try_into().unwrap(), core::mem::transmute(rgitemstatusentries.as_ptr())).ok() } pub unsafe fn OnCatalogStatusChange(&self, guidcatalogresetsignature: *const windows_core::GUID, guidcheckpointsignature: *const windows_core::GUID, dwlastcheckpointnumber: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCatalogStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(guidcatalogresetsignature), core::mem::transmute(guidcheckpointsignature), core::mem::transmute(dwlastcheckpointnumber)).ok() + (windows_core::Interface::vtable(self).OnCatalogStatusChange)(windows_core::Interface::as_raw(self), guidcatalogresetsignature, guidcheckpointsignature, dwlastcheckpointnumber).ok() } } #[repr(C)] @@ -13618,7 +13592,7 @@ impl ISearchPersistentItemsChangedSink { } pub unsafe fn OnItemsChanged(&self, dwnumberofchanges: u32, datachangeentries: *const SEARCH_ITEM_PERSISTENT_CHANGE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnItemsChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnumberofchanges), core::mem::transmute(datachangeentries), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnItemsChanged)(windows_core::Interface::as_raw(self), dwnumberofchanges, datachangeentries, &mut result__).map(|| result__) } } #[repr(C)] @@ -13672,14 +13646,14 @@ impl ISearchProtocol { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimeoutinfo), pprotocolhandlersite.param().abi(), core::mem::transmute(pproxyinfo)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), ptimeoutinfo, pprotocolhandlersite.param().abi(), pproxyinfo).ok() } pub unsafe fn CreateAccessor(&self, pcwszurl: P0, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAccessor)(windows_core::Interface::as_raw(self), pcwszurl.param().abi(), core::mem::transmute(pauthenticationinfo), core::mem::transmute(pincrementalaccessinfo), core::mem::transmute(piteminfo), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAccessor)(windows_core::Interface::as_raw(self), pcwszurl.param().abi(), pauthenticationinfo, pincrementalaccessinfo, piteminfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CloseAccessor(&self, paccessor: P0) -> windows_core::Result<()> where @@ -13757,7 +13731,7 @@ impl ISearchProtocol2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAccessorEx)(windows_core::Interface::as_raw(self), pcwszurl.param().abi(), core::mem::transmute(pauthenticationinfo), core::mem::transmute(pincrementalaccessinfo), core::mem::transmute(piteminfo), core::mem::transmute(puserdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAccessorEx)(windows_core::Interface::as_raw(self), pcwszurl.param().abi(), pauthenticationinfo, pincrementalaccessinfo, piteminfo, puserdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -13803,7 +13777,7 @@ impl ISearchProtocolThreadContext { (windows_core::Interface::vtable(self).ThreadShutdown)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ThreadIdle(&self, dwtimeelaspedsincelastcallinms: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThreadIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeelaspedsincelastcallinms)).ok() + (windows_core::Interface::vtable(self).ThreadIdle)(windows_core::Interface::as_raw(self), dwtimeelaspedsincelastcallinms).ok() } } #[repr(C)] @@ -13852,28 +13826,28 @@ impl ISearchQueryHelper { (windows_core::Interface::vtable(self).ConnectionString)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQueryContentLocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueryContentLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetQueryContentLocale)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn QueryContentLocale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryContentLocale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQueryKeywordLocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueryKeywordLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetQueryKeywordLocale)(windows_core::Interface::as_raw(self), lcid).ok() } pub unsafe fn QueryKeywordLocale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryKeywordLocale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQueryTermExpansion(&self, expandterms: SEARCH_TERM_EXPANSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueryTermExpansion)(windows_core::Interface::as_raw(self), core::mem::transmute(expandterms)).ok() + (windows_core::Interface::vtable(self).SetQueryTermExpansion)(windows_core::Interface::as_raw(self), expandterms).ok() } pub unsafe fn QueryTermExpansion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryTermExpansion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetQuerySyntax(&self, querysyntax: SEARCH_QUERY_SYNTAX) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQuerySyntax)(windows_core::Interface::as_raw(self), core::mem::transmute(querysyntax)).ok() + (windows_core::Interface::vtable(self).SetQuerySyntax)(windows_core::Interface::as_raw(self), querysyntax).ok() } pub unsafe fn QuerySyntax(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13928,10 +13902,10 @@ impl ISearchQueryHelper { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn WriteProperties(&self, itemid: i32, dwnumberofcolumns: u32, pcolumns: *const super::super::Foundation::PROPERTYKEY, pvalues: *const SEARCH_COLUMN_PROPERTIES, pftgathermodifiedtime: *const super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), core::mem::transmute(dwnumberofcolumns), core::mem::transmute(pcolumns), core::mem::transmute(pvalues), core::mem::transmute(pftgathermodifiedtime)).ok() + (windows_core::Interface::vtable(self).WriteProperties)(windows_core::Interface::as_raw(self), itemid, dwnumberofcolumns, pcolumns, core::mem::transmute(pvalues), pftgathermodifiedtime).ok() } pub unsafe fn SetQueryMaxResults(&self, cmaxresults: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetQueryMaxResults)(windows_core::Interface::as_raw(self), core::mem::transmute(cmaxresults)).ok() + (windows_core::Interface::vtable(self).SetQueryMaxResults)(windows_core::Interface::as_raw(self), cmaxresults).ok() } pub unsafe fn QueryMaxResults(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14182,7 +14156,7 @@ impl ISearchQueryHits { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pflt.param().abi(), core::mem::transmute(ulflags)) + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pflt.param().abi(), ulflags) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NextHitMoniker(&self, pcmnk: *mut u32, papmnk: *mut *mut Option) -> i32 { @@ -14288,14 +14262,14 @@ impl ISearchRoot { (windows_core::Interface::vtable(self).UseNotificationsOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnumerationDepth(&self, dwdepth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnumerationDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdepth)).ok() + (windows_core::Interface::vtable(self).SetEnumerationDepth)(windows_core::Interface::as_raw(self), dwdepth).ok() } pub unsafe fn EnumerationDepth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnumerationDepth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHostDepth(&self, dwdepth: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHostDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdepth)).ok() + (windows_core::Interface::vtable(self).SetHostDepth)(windows_core::Interface::as_raw(self), dwdepth).ok() } pub unsafe fn HostDepth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14309,7 +14283,7 @@ impl ISearchRoot { (windows_core::Interface::vtable(self).FollowDirectories)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationType(&self, authtype: AUTH_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationType)(windows_core::Interface::as_raw(self), core::mem::transmute(authtype)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationType)(windows_core::Interface::as_raw(self), authtype).ok() } pub unsafe fn AuthenticationType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14667,7 +14641,7 @@ windows_core::imp::interface_hierarchy!(ISearchViewChangedSink, windows_core::IU impl ISearchViewChangedSink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnChange(&self, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwdocid), core::mem::transmute(pchange), core::mem::transmute(pfinview)).ok() + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), pdwdocid, pchange, pfinview).ok() } } #[repr(C)] @@ -14872,7 +14846,7 @@ impl ISimpleCommandCreator { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultCatalog)(windows_core::Interface::as_raw(self), pwszcatalogname.param().abi(), core::mem::transmute(cwcin), core::mem::transmute(pcwcout)).ok() + (windows_core::Interface::vtable(self).GetDefaultCatalog)(windows_core::Interface::as_raw(self), pwszcatalogname.param().abi(), cwcin, core::mem::transmute(pcwcout)).ok() } } #[repr(C)] @@ -14921,7 +14895,7 @@ impl ISourcesRowset { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourcesRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), rgproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppsourcesrowset)).ok() + (windows_core::Interface::vtable(self).GetSourcesRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, rgproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppsourcesrowset)).ok() } } #[repr(C)] @@ -14955,17 +14929,17 @@ windows_core::imp::define_interface!(IStemmer, IStemmer_Vtbl, 0xefbaf140_7f42_11 windows_core::imp::interface_hierarchy!(IStemmer, windows_core::IUnknown); impl IStemmer { pub unsafe fn Init(&self, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(ulmaxtokensize), core::mem::transmute(pflicense)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), ulmaxtokensize, core::mem::transmute(pflicense)).ok() } pub unsafe fn GenerateWordForms(&self, pwcinbuf: P0, cwc: u32, pstemsink: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateWordForms)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), core::mem::transmute(cwc), pstemsink.param().abi()).ok() + (windows_core::Interface::vtable(self).GenerateWordForms)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc, pstemsink.param().abi()).ok() } pub unsafe fn GetLicenseToUse(&self, ppwcslicense: *const *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLicenseToUse)(windows_core::Interface::as_raw(self), core::mem::transmute(ppwcslicense)).ok() + (windows_core::Interface::vtable(self).GetLicenseToUse)(windows_core::Interface::as_raw(self), ppwcslicense).ok() } } #[repr(C)] @@ -15017,16 +14991,16 @@ impl ISubscriptionItem { (windows_core::Interface::vtable(self).GetSubscriptionItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(psubscriptioniteminfo)).ok() } pub unsafe fn SetSubscriptionItemInfo(&self, psubscriptioniteminfo: *const SUBSCRIPTIONITEMINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSubscriptionItemInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(psubscriptioniteminfo)).ok() + (windows_core::Interface::vtable(self).SetSubscriptionItemInfo)(windows_core::Interface::as_raw(self), psubscriptioniteminfo).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ReadProperties(&self, ncount: u32, rgwszname: *const windows_core::PCWSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(ncount), core::mem::transmute(rgwszname), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).ReadProperties)(windows_core::Interface::as_raw(self), ncount, rgwszname, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn WriteProperties(&self, ncount: u32, rgwszname: *const windows_core::PCWSTR, rgvalue: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(ncount), core::mem::transmute(rgwszname), core::mem::transmute(rgvalue)).ok() + (windows_core::Interface::vtable(self).WriteProperties)(windows_core::Interface::as_raw(self), ncount, rgwszname, core::mem::transmute(rgvalue)).ok() } pub unsafe fn EnumProperties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15136,7 +15110,7 @@ impl ISubscriptionMgr { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteSubscription)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).DeleteSubscription)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), hwnd).ok() } pub unsafe fn UpdateSubscription(&self, pwszurl: P0) -> windows_core::Result<()> where @@ -15161,20 +15135,20 @@ impl ISubscriptionMgr { (windows_core::Interface::vtable(self).GetSubscriptionInfo)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pinfo)).ok() } pub unsafe fn GetDefaultInfo(&self, subtype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDefaultInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(subtype), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).GetDefaultInfo)(windows_core::Interface::as_raw(self), subtype, core::mem::transmute(pinfo)).ok() } pub unsafe fn ShowSubscriptionProperties(&self, pwszurl: P0, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowSubscriptionProperties)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).ShowSubscriptionProperties)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), hwnd).ok() } pub unsafe fn CreateSubscription(&self, hwnd: super::super::Foundation::HWND, pwszurl: P1, pwszfriendlyname: P2, dwflags: u32, substype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSubscription)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pwszurl.param().abi(), pwszfriendlyname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(substype), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).CreateSubscription)(windows_core::Interface::as_raw(self), hwnd, pwszurl.param().abi(), pwszfriendlyname.param().abi(), dwflags, substype, core::mem::transmute(pinfo)).ok() } } #[repr(C)] @@ -15274,18 +15248,18 @@ impl ISubscriptionMgr2 { } pub unsafe fn GetItemFromCookie(&self, psubscriptioncookie: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemFromCookie)(windows_core::Interface::as_raw(self), core::mem::transmute(psubscriptioncookie), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemFromCookie)(windows_core::Interface::as_raw(self), psubscriptioncookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSubscriptionRunState(&self, dwnumcookies: u32, pcookies: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubscriptionRunState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwnumcookies), core::mem::transmute(pcookies), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubscriptionRunState)(windows_core::Interface::as_raw(self), dwnumcookies, pcookies, &mut result__).map(|| result__) } pub unsafe fn EnumSubscriptions(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumSubscriptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumSubscriptions)(windows_core::Interface::as_raw(self), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UpdateItems(&self, dwflags: u32, pcookies: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateItems)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pcookies.len().try_into().unwrap(), core::mem::transmute(pcookies.as_ptr())).ok() + (windows_core::Interface::vtable(self).UpdateItems)(windows_core::Interface::as_raw(self), dwflags, pcookies.len().try_into().unwrap(), core::mem::transmute(pcookies.as_ptr())).ok() } pub unsafe fn AbortItems(&self, pcookies: &[windows_core::GUID]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AbortItems)(windows_core::Interface::as_raw(self), pcookies.len().try_into().unwrap(), core::mem::transmute(pcookies.as_ptr())).ok() @@ -15429,7 +15403,7 @@ impl ITableCreation { pub unsafe fn GetTableDefinition(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pccolumndescs: Option<*mut usize>, prgcolumndescs: Option<*mut *mut DBCOLUMNDESC>, pcpropertysets: Option<*mut u32>, prgpropertysets: Option<*mut *mut DBPROPSET>, pcconstraintdescs: Option<*mut u32>, prgconstraintdescs: Option<*mut *mut DBCONSTRAINTDESC>, ppwszstringbuffer: Option<*mut *mut u16>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTableDefinition)( windows_core::Interface::as_raw(self), - core::mem::transmute(ptableid), + ptableid, core::mem::transmute(pccolumndescs.unwrap_or(core::mem::zeroed())), core::mem::transmute(prgcolumndescs.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpropertysets.unwrap_or(core::mem::zeroed())), @@ -15482,7 +15456,7 @@ impl ITableDefinition { core::mem::transmute(ptableid.unwrap_or(core::mem::zeroed())), rgcolumndescs.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgcolumndescs.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - core::mem::transmute(riid), + riid, rgpropertysets.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpropertysets.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pptableid.unwrap_or(core::mem::zeroed())), @@ -15492,15 +15466,15 @@ impl ITableDefinition { } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn DropTable(&self, ptableid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DropTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid)).ok() + (windows_core::Interface::vtable(self).DropTable)(windows_core::Interface::as_raw(self), ptableid).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddColumn(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumndesc: *const DBCOLUMNDESC, ppcolumnid: Option<*mut *mut super::super::Storage::IndexServer::DBID>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pcolumndesc), core::mem::transmute(ppcolumnid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddColumn)(windows_core::Interface::as_raw(self), ptableid, core::mem::transmute(pcolumndesc), core::mem::transmute(ppcolumnid.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn DropColumn(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumnid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DropColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pcolumnid)).ok() + (windows_core::Interface::vtable(self).DropColumn)(windows_core::Interface::as_raw(self), ptableid, pcolumnid).ok() } } #[repr(C)] @@ -15574,18 +15548,18 @@ windows_core::imp::interface_hierarchy!(ITableDefinitionWithConstraints, windows impl ITableDefinitionWithConstraints { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AddConstraint(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pconstraintdesc: *const DBCONSTRAINTDESC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddConstraint)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pconstraintdesc)).ok() + (windows_core::Interface::vtable(self).AddConstraint)(windows_core::Interface::as_raw(self), ptableid, pconstraintdesc).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTableWithConstraints(&self, punkouter: P0, ptableid: *const super::super::Storage::IndexServer::DBID, rgcolumndescs: &mut [DBCOLUMNDESC], rgconstraintdescs: &[DBCONSTRAINTDESC], riid: *const windows_core::GUID, rgpropertysets: &mut [DBPROPSET], pptableid: *mut *mut super::super::Storage::IndexServer::DBID, pprowset: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateTableWithConstraints)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid), rgcolumndescs.len().try_into().unwrap(), core::mem::transmute(rgcolumndescs.as_ptr()), rgconstraintdescs.len().try_into().unwrap(), core::mem::transmute(rgconstraintdescs.as_ptr()), core::mem::transmute(riid), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pptableid), core::mem::transmute(pprowset)).ok() + (windows_core::Interface::vtable(self).CreateTableWithConstraints)(windows_core::Interface::as_raw(self), punkouter.param().abi(), ptableid, rgcolumndescs.len().try_into().unwrap(), core::mem::transmute(rgcolumndescs.as_ptr()), rgconstraintdescs.len().try_into().unwrap(), core::mem::transmute(rgconstraintdescs.as_ptr()), riid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pptableid), core::mem::transmute(pprowset)).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn DropConstraint(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pconstraintid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DropConstraint)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(pconstraintid)).ok() + (windows_core::Interface::vtable(self).DropConstraint)(windows_core::Interface::as_raw(self), ptableid, pconstraintid).ok() } } #[repr(C)] @@ -15643,11 +15617,11 @@ windows_core::imp::interface_hierarchy!(ITableRename, windows_core::IUnknown); impl ITableRename { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).RenameColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ptableid), core::mem::transmute(poldcolumnid), core::mem::transmute(pnewcolumnid)).ok() + (windows_core::Interface::vtable(self).RenameColumn)(windows_core::Interface::as_raw(self), ptableid, poldcolumnid, pnewcolumnid).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).RenameTable)(windows_core::Interface::as_raw(self), core::mem::transmute(poldtableid), core::mem::transmute(poldindexid), core::mem::transmute(pnewtableid), core::mem::transmute(pnewindexid)).ok() + (windows_core::Interface::vtable(self).RenameTable)(windows_core::Interface::as_raw(self), poldtableid, poldindexid, pnewtableid, pnewindexid).ok() } } #[repr(C)] @@ -15694,10 +15668,10 @@ windows_core::imp::define_interface!(ITokenCollection, ITokenCollection_Vtbl, 0x windows_core::imp::interface_hierarchy!(ITokenCollection, windows_core::IUnknown); impl ITokenCollection { pub unsafe fn NumberOfTokens(&self, pcount: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NumberOfTokens)(windows_core::Interface::as_raw(self), core::mem::transmute(pcount)).ok() + (windows_core::Interface::vtable(self).NumberOfTokens)(windows_core::Interface::as_raw(self), pcount).ok() } pub unsafe fn GetToken(&self, i: u32, pbegin: Option<*mut u32>, plength: Option<*mut u32>, ppsz: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetToken)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(pbegin.unwrap_or(core::mem::zeroed())), core::mem::transmute(plength.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsz.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetToken)(windows_core::Interface::as_raw(self), i, core::mem::transmute(pbegin.unwrap_or(core::mem::zeroed())), core::mem::transmute(plength.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppsz.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -15745,7 +15719,7 @@ impl ITransactionJoin { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).JoinTransaction)(windows_core::Interface::as_raw(self), punktransactioncoord.param().abi(), core::mem::transmute(isolevel), core::mem::transmute(isoflags), potheroptions.param().abi()).ok() + (windows_core::Interface::vtable(self).JoinTransaction)(windows_core::Interface::as_raw(self), punktransactioncoord.param().abi(), isolevel, isoflags, potheroptions.param().abi()).ok() } } #[repr(C)] @@ -15817,7 +15791,7 @@ impl ITransactionLocal { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).StartTransaction)(windows_core::Interface::as_raw(self), core::mem::transmute(isolevel), core::mem::transmute(isoflags), potheroptions.param().abi(), core::mem::transmute(pultransactionlevel.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartTransaction)(windows_core::Interface::as_raw(self), isolevel, isoflags, potheroptions.param().abi(), core::mem::transmute(pultransactionlevel.unwrap_or(core::mem::zeroed()))).ok() } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] @@ -15873,7 +15847,7 @@ impl ITransactionObject { #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn GetTransactionObject(&self, ultransactionlevel: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTransactionObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ultransactionlevel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTransactionObject)(windows_core::Interface::as_raw(self), ultransactionlevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15914,23 +15888,23 @@ windows_core::imp::interface_hierarchy!(ITrusteeAdmin, windows_core::IUnknown); impl ITrusteeAdmin { #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn CompareTrustees(&self, ptrustee1: *const super::super::Security::Authorization::TRUSTEE_W, ptrustee2: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompareTrustees)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrustee1), core::mem::transmute(ptrustee2)).ok() + (windows_core::Interface::vtable(self).CompareTrustees)(windows_core::Interface::as_raw(self), ptrustee1, ptrustee2).ok() } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateTrustee(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, rgpropertysets: &mut [DBPROPSET]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateTrustee)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrustee), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() + (windows_core::Interface::vtable(self).CreateTrustee)(windows_core::Interface::as_raw(self), ptrustee, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() } #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn DeleteTrustee(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteTrustee)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrustee)).ok() + (windows_core::Interface::vtable(self).DeleteTrustee)(windows_core::Interface::as_raw(self), ptrustee).ok() } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetTrusteeProperties(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, rgpropertysets: &mut [DBPROPSET]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrusteeProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrustee), rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetTrusteeProperties)(windows_core::Interface::as_raw(self), ptrustee, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr())).ok() } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetTrusteeProperties(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, rgpropertyidsets: &[DBPROPIDSET], pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTrusteeProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrustee), rgpropertyidsets.len().try_into().unwrap(), core::mem::transmute(rgpropertyidsets.as_ptr()), core::mem::transmute(pcpropertysets), core::mem::transmute(prgpropertysets)).ok() + (windows_core::Interface::vtable(self).GetTrusteeProperties)(windows_core::Interface::as_raw(self), ptrustee, rgpropertyidsets.len().try_into().unwrap(), core::mem::transmute(rgpropertyidsets.as_ptr()), core::mem::transmute(pcpropertysets), core::mem::transmute(prgpropertysets)).ok() } } #[repr(C)] @@ -16008,24 +15982,24 @@ windows_core::imp::interface_hierarchy!(ITrusteeGroupAdmin, windows_core::IUnkno impl ITrusteeGroupAdmin { #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn AddMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddMember)(windows_core::Interface::as_raw(self), core::mem::transmute(pmembershiptrustee), core::mem::transmute(pmembertrustee)).ok() + (windows_core::Interface::vtable(self).AddMember)(windows_core::Interface::as_raw(self), pmembershiptrustee, pmembertrustee).ok() } #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn DeleteMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), core::mem::transmute(pmembershiptrustee), core::mem::transmute(pmembertrustee)).ok() + (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), pmembershiptrustee, pmembertrustee).ok() } #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn IsMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsMember)(windows_core::Interface::as_raw(self), core::mem::transmute(pmembershiptrustee), core::mem::transmute(pmembertrustee), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsMember)(windows_core::Interface::as_raw(self), pmembershiptrustee, pmembertrustee, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn GetMembers(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmembers: *mut u32, prgmembers: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMembers)(windows_core::Interface::as_raw(self), core::mem::transmute(pmembershiptrustee), core::mem::transmute(pcmembers), core::mem::transmute(prgmembers)).ok() + (windows_core::Interface::vtable(self).GetMembers)(windows_core::Interface::as_raw(self), pmembershiptrustee, core::mem::transmute(pcmembers), core::mem::transmute(prgmembers)).ok() } #[cfg(feature = "Win32_Security_Authorization")] pub unsafe fn GetMemberships(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmemberships: *mut u32, prgmemberships: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMemberships)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrustee), core::mem::transmute(pcmemberships), core::mem::transmute(prgmemberships)).ok() + (windows_core::Interface::vtable(self).GetMemberships)(windows_core::Interface::as_raw(self), ptrustee, core::mem::transmute(pcmemberships), core::mem::transmute(prgmemberships)).ok() } } #[repr(C)] @@ -16107,10 +16081,10 @@ impl windows_core::RuntimeName for ITrusteeGroupAdmin {} windows_core::imp::define_interface!(IUMS, IUMS_Vtbl); impl IUMS { pub unsafe fn SqlUmsSuspend(&self, ticks: u32) { - (windows_core::Interface::vtable(self).SqlUmsSuspend)(windows_core::Interface::as_raw(self), core::mem::transmute(ticks)) + (windows_core::Interface::vtable(self).SqlUmsSuspend)(windows_core::Interface::as_raw(self), ticks) } pub unsafe fn SqlUmsYield(&self, ticks: u32) { - (windows_core::Interface::vtable(self).SqlUmsYield)(windows_core::Interface::as_raw(self), core::mem::transmute(ticks)) + (windows_core::Interface::vtable(self).SqlUmsYield)(windows_core::Interface::as_raw(self), ticks) } pub unsafe fn SqlUmsSwitchPremptive(&self) { (windows_core::Interface::vtable(self).SqlUmsSwitchPremptive)(windows_core::Interface::as_raw(self)) @@ -16217,7 +16191,7 @@ windows_core::imp::interface_hierarchy!(IUrlAccessor, windows_core::IUnknown); impl IUrlAccessor { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn AddRequestParameter(&self, pspec: *const super::Com::StructuredStorage::PROPSPEC, pvar: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRequestParameter)(windows_core::Interface::as_raw(self), core::mem::transmute(pspec), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).AddRequestParameter)(windows_core::Interface::as_raw(self), pspec, core::mem::transmute(pvar)).ok() } pub unsafe fn GetDocFormat(&self, wszdocformat: &mut [u16], pdwlength: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDocFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(wszdocformat.as_ptr()), wszdocformat.len().try_into().unwrap(), core::mem::transmute(pdwlength)).ok() @@ -16539,7 +16513,7 @@ impl IUrlAccessor4 { } pub unsafe fn ShouldIndexProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShouldIndexProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShouldIndexProperty)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } } #[repr(C)] @@ -16593,10 +16567,10 @@ windows_core::imp::interface_hierarchy!(IViewChapter, windows_core::IUnknown); impl IViewChapter { pub unsafe fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenViewChapter(&self, hsource: usize, phviewchapter: Option<*mut usize>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OpenViewChapter)(windows_core::Interface::as_raw(self), core::mem::transmute(hsource), core::mem::transmute(phviewchapter.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OpenViewChapter)(windows_core::Interface::as_raw(self), hsource, core::mem::transmute(phviewchapter.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -16640,14 +16614,14 @@ windows_core::imp::define_interface!(IViewFilter, IViewFilter_Vtbl, 0x0c733a9b_2 windows_core::imp::interface_hierarchy!(IViewFilter, windows_core::IUnknown); impl IViewFilter { pub unsafe fn GetFilter(&self, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), core::mem::transmute(pcrows), core::mem::transmute(pcompareops), core::mem::transmute(pcriteriadata)).ok() + (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), haccessor, core::mem::transmute(pcrows), core::mem::transmute(pcompareops), core::mem::transmute(pcriteriadata)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFilterBindings(&self, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFilterBindings)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbindings), core::mem::transmute(prgbindings)).ok() } pub unsafe fn SetFilter(&self, haccessor: HACCESSOR, compareops: &[u32], pcriteriadata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(haccessor), compareops.len().try_into().unwrap(), core::mem::transmute(compareops.as_ptr()), core::mem::transmute(pcriteriadata)).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), haccessor, compareops.len().try_into().unwrap(), core::mem::transmute(compareops.as_ptr()), pcriteriadata).ok() } } #[repr(C)] @@ -16699,14 +16673,14 @@ windows_core::imp::interface_hierarchy!(IViewRowset, windows_core::IUnknown); impl IViewRowset { pub unsafe fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSpecification)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenViewRowset(&self, punkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenViewRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenViewRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16759,7 +16733,7 @@ impl IViewSort { (windows_core::Interface::vtable(self).GetSortOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(pcvalues), core::mem::transmute(prgcolumns), core::mem::transmute(prgorders)).ok() } pub unsafe fn SetSortOrder(&self, cvalues: usize, rgcolumns: *const usize, rgorders: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSortOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(cvalues), core::mem::transmute(rgcolumns), core::mem::transmute(rgorders)).ok() + (windows_core::Interface::vtable(self).SetSortOrder)(windows_core::Interface::as_raw(self), cvalues, rgcolumns, rgorders).ok() } } #[repr(C)] @@ -16797,7 +16771,7 @@ windows_core::imp::define_interface!(IWordBreaker, IWordBreaker_Vtbl, 0xd53552c8 windows_core::imp::interface_hierarchy!(IWordBreaker, windows_core::IUnknown); impl IWordBreaker { pub unsafe fn Init(&self, fquery: bool, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), fquery.into(), core::mem::transmute(ulmaxtokensize), core::mem::transmute(pflicense)).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), fquery.into(), ulmaxtokensize, core::mem::transmute(pflicense)).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn BreakText(&self, ptextsource: *mut TEXT_SOURCE, pwordsink: P1, pphrasesink: P2) -> windows_core::Result<()> @@ -16813,10 +16787,10 @@ impl IWordBreaker { P2: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ComposePhrase)(windows_core::Interface::as_raw(self), pwcnoun.param().abi(), core::mem::transmute(cwcnoun), pwcmodifier.param().abi(), core::mem::transmute(cwcmodifier), core::mem::transmute(ulattachmenttype), pwcphrase.param().abi(), core::mem::transmute(pcwcphrase)).ok() + (windows_core::Interface::vtable(self).ComposePhrase)(windows_core::Interface::as_raw(self), pwcnoun.param().abi(), cwcnoun, pwcmodifier.param().abi(), cwcmodifier, ulattachmenttype, pwcphrase.param().abi(), core::mem::transmute(pcwcphrase)).ok() } pub unsafe fn GetLicenseToUse(&self, ppwcslicense: *const *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLicenseToUse)(windows_core::Interface::as_raw(self), core::mem::transmute(ppwcslicense)).ok() + (windows_core::Interface::vtable(self).GetLicenseToUse)(windows_core::Interface::as_raw(self), ppwcslicense).ok() } } #[repr(C)] @@ -16877,13 +16851,13 @@ impl IWordFormSink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), core::mem::transmute(cwc)).ok() + (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc).ok() } pub unsafe fn PutWord(&self, pwcinbuf: P0, cwc: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), core::mem::transmute(cwc)).ok() + (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc).ok() } } #[repr(C)] @@ -16920,13 +16894,13 @@ impl IWordSink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), core::mem::transmute(cwc), pwcinbuf.param().abi(), core::mem::transmute(cwcsrclen), core::mem::transmute(cwcsrcpos)).ok() + (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), cwc, pwcinbuf.param().abi(), cwcsrclen, cwcsrcpos).ok() } pub unsafe fn PutAltWord(&self, cwc: u32, pwcinbuf: P1, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), core::mem::transmute(cwc), pwcinbuf.param().abi(), core::mem::transmute(cwcsrclen), core::mem::transmute(cwcsrcpos)).ok() + (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), cwc, pwcinbuf.param().abi(), cwcsrclen, cwcsrcpos).ok() } pub unsafe fn StartAltPhrase(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartAltPhrase)(windows_core::Interface::as_raw(self)).ok() @@ -16936,7 +16910,7 @@ impl IWordSink { } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn PutBreak(&self, breaktype: super::super::Storage::IndexServer::WORDREP_BREAK_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutBreak)(windows_core::Interface::as_raw(self), core::mem::transmute(breaktype)).ok() + (windows_core::Interface::vtable(self).PutBreak)(windows_core::Interface::as_raw(self), breaktype).ok() } } #[repr(C)] @@ -17508,16 +17482,16 @@ impl OLEDBSimpleProvider { } pub unsafe fn getRWStatus(&self, irow: isize, icolumn: isize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getRWStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(icolumn), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getRWStatus)(windows_core::Interface::as_raw(self), irow, icolumn, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn getVariant(&self, irow: isize, icolumn: isize, format: OSPFORMAT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).getVariant)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(icolumn), core::mem::transmute(format), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).getVariant)(windows_core::Interface::as_raw(self), irow, icolumn, format, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn setVariant(&self, irow: isize, icolumn: isize, format: OSPFORMAT, var: &super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).setVariant)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(icolumn), core::mem::transmute(format), core::mem::transmute_copy(var)).ok() + (windows_core::Interface::vtable(self).setVariant)(windows_core::Interface::as_raw(self), irow, icolumn, format, core::mem::transmute_copy(var)).ok() } pub unsafe fn getLocale(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17525,16 +17499,16 @@ impl OLEDBSimpleProvider { } pub unsafe fn deleteRows(&self, irow: isize, crows: isize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).deleteRows)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).deleteRows)(windows_core::Interface::as_raw(self), irow, crows, &mut result__).map(|| result__) } pub unsafe fn insertRows(&self, irow: isize, crows: isize) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).insertRows)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).insertRows)(windows_core::Interface::as_raw(self), irow, crows, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn find(&self, irowstart: isize, icolumn: isize, val: &super::Variant::VARIANT, findflags: OSPFIND, comptype: OSPCOMP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).find)(windows_core::Interface::as_raw(self), core::mem::transmute(irowstart), core::mem::transmute(icolumn), core::mem::transmute_copy(val), core::mem::transmute(findflags), core::mem::transmute(comptype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).find)(windows_core::Interface::as_raw(self), irowstart, icolumn, core::mem::transmute_copy(val), findflags, comptype, &mut result__).map(|| result__) } pub unsafe fn addOLEDBSimpleProviderListener(&self, pospilistener: P0) -> windows_core::Result<()> where @@ -17751,28 +17725,28 @@ windows_core::imp::define_interface!(OLEDBSimpleProviderListener, OLEDBSimplePro windows_core::imp::interface_hierarchy!(OLEDBSimpleProviderListener, windows_core::IUnknown); impl OLEDBSimpleProviderListener { pub unsafe fn aboutToChangeCell(&self, irow: isize, icolumn: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).aboutToChangeCell)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(icolumn)).ok() + (windows_core::Interface::vtable(self).aboutToChangeCell)(windows_core::Interface::as_raw(self), irow, icolumn).ok() } pub unsafe fn cellChanged(&self, irow: isize, icolumn: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).cellChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(icolumn)).ok() + (windows_core::Interface::vtable(self).cellChanged)(windows_core::Interface::as_raw(self), irow, icolumn).ok() } pub unsafe fn aboutToDeleteRows(&self, irow: isize, crows: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).aboutToDeleteRows)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows)).ok() + (windows_core::Interface::vtable(self).aboutToDeleteRows)(windows_core::Interface::as_raw(self), irow, crows).ok() } pub unsafe fn deletedRows(&self, irow: isize, crows: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).deletedRows)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows)).ok() + (windows_core::Interface::vtable(self).deletedRows)(windows_core::Interface::as_raw(self), irow, crows).ok() } pub unsafe fn aboutToInsertRows(&self, irow: isize, crows: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).aboutToInsertRows)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows)).ok() + (windows_core::Interface::vtable(self).aboutToInsertRows)(windows_core::Interface::as_raw(self), irow, crows).ok() } pub unsafe fn insertedRows(&self, irow: isize, crows: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).insertedRows)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows)).ok() + (windows_core::Interface::vtable(self).insertedRows)(windows_core::Interface::as_raw(self), irow, crows).ok() } pub unsafe fn rowsAvailable(&self, irow: isize, crows: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).rowsAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(irow), core::mem::transmute(crows)).ok() + (windows_core::Interface::vtable(self).rowsAvailable)(windows_core::Interface::as_raw(self), irow, crows).ok() } pub unsafe fn transferComplete(&self, xfer: OSPXFER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).transferComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(xfer)).ok() + (windows_core::Interface::vtable(self).transferComplete)(windows_core::Interface::as_raw(self), xfer).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs index 2f21a7e401..c816c211ca 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs @@ -7,7 +7,7 @@ pub unsafe fn WscGetAntiMalwareUri() -> windows_core::Result windows_core::Result<()> { windows_targets::link!("wscapi.dll" "system" fn WscGetSecurityProviderHealth(providers : u32, phealth : *mut WSC_SECURITY_PROVIDER_HEALTH) -> windows_core::HRESULT); - WscGetSecurityProviderHealth(core::mem::transmute(providers), core::mem::transmute(phealth)).ok() + WscGetSecurityProviderHealth(providers, core::mem::transmute(phealth)).ok() } #[inline] pub unsafe fn WscQueryAntiMalwareUri() -> windows_core::Result<()> { @@ -18,7 +18,7 @@ pub unsafe fn WscQueryAntiMalwareUri() -> windows_core::Result<()> { #[inline] pub unsafe fn WscRegisterForChanges(reserved: *mut core::ffi::c_void, phcallbackregistration: *mut super::super::Foundation::HANDLE, lpcallbackaddress: super::Threading::LPTHREAD_START_ROUTINE, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("wscapi.dll" "system" fn WscRegisterForChanges(reserved : *mut core::ffi::c_void, phcallbackregistration : *mut super::super::Foundation:: HANDLE, lpcallbackaddress : super::Threading:: LPTHREAD_START_ROUTINE, pcontext : *mut core::ffi::c_void) -> windows_core::HRESULT); - WscRegisterForChanges(core::mem::transmute(reserved), core::mem::transmute(phcallbackregistration), core::mem::transmute(lpcallbackaddress), core::mem::transmute(pcontext)).ok() + WscRegisterForChanges(core::mem::transmute(reserved), core::mem::transmute(phcallbackregistration), lpcallbackaddress, core::mem::transmute(pcontext)).ok() } #[inline] pub unsafe fn WscRegisterForUserNotifications() -> windows_core::Result<()> { @@ -28,7 +28,7 @@ pub unsafe fn WscRegisterForUserNotifications() -> windows_core::Result<()> { #[inline] pub unsafe fn WscUnRegisterChanges(hregistrationhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wscapi.dll" "system" fn WscUnRegisterChanges(hregistrationhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WscUnRegisterChanges(core::mem::transmute(hregistrationhandle)).ok() + WscUnRegisterChanges(hregistrationhandle).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IWSCDefaultProduct, IWSCDefaultProduct_Vtbl, 0x0476d69c_f21a_11e5_9ce9_5e5517507c66); @@ -44,7 +44,7 @@ windows_core::imp::interface_hierarchy!(IWSCDefaultProduct, windows_core::IUnkno #[cfg(feature = "Win32_System_Com")] impl IWSCDefaultProduct { pub unsafe fn SetDefaultProduct(&self, etype: SECURITY_PRODUCT_TYPE, pguid: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultProduct)(windows_core::Interface::as_raw(self), core::mem::transmute(etype), core::mem::transmute_copy(pguid)).ok() + (windows_core::Interface::vtable(self).SetDefaultProduct)(windows_core::Interface::as_raw(self), etype, core::mem::transmute_copy(pguid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -94,7 +94,7 @@ impl IWSCProductList { } pub unsafe fn get_Item(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs index b4a02a2bc2..596216882e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs @@ -52,7 +52,7 @@ impl IWsbApplicationBackupSupport { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckConsistency)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), core::mem::transmute(cvolumes), core::mem::transmute(rgwszsourcevolumepath), core::mem::transmute(rgwszsnapshotvolumepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CheckConsistency)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), cvolumes, rgwszsourcevolumepath, rgwszsnapshotvolumepath, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -91,7 +91,7 @@ impl IWsbApplicationRestoreSupport { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), core::mem::transmute(bnorollforward)).ok() + (windows_core::Interface::vtable(self).PreRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), bnorollforward).ok() } pub unsafe fn PostRestore(&self, wszwritermetadata: P0, wszcomponentname: P1, wszcomponentlogicalpath: P2, bnorollforward: bool) -> windows_core::Result<()> where @@ -99,10 +99,10 @@ impl IWsbApplicationRestoreSupport { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PostRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), core::mem::transmute(bnorollforward)).ok() + (windows_core::Interface::vtable(self).PostRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), bnorollforward).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OrderComponents)(windows_core::Interface::as_raw(self), core::mem::transmute(ccomponents), core::mem::transmute(rgcomponentname), core::mem::transmute(rgcomponentlogicalpaths), core::mem::transmute(prgcomponentname), core::mem::transmute(prgcomponentlogicalpath)).ok() + (windows_core::Interface::vtable(self).OrderComponents)(windows_core::Interface::as_raw(self), ccomponents, rgcomponentname, rgcomponentlogicalpaths, core::mem::transmute(prgcomponentname), core::mem::transmute(prgcomponentlogicalpath)).ok() } pub unsafe fn IsRollForwardSupported(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs index b0e82353d8..50528f63f9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn ChangeServiceConfig2A(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2A(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ChangeServiceConfig2A(core::mem::transmute(hservice), core::mem::transmute(dwinfolevel), core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed()))).ok() + ChangeServiceConfig2A(hservice, dwinfolevel, core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ChangeServiceConfig2W(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2W(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ChangeServiceConfig2W(core::mem::transmute(hservice), core::mem::transmute(dwinfolevel), core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed()))).ok() + ChangeServiceConfig2W(hservice, dwinfolevel, core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ChangeServiceConfigA(hservice: SC_HANDLE, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P4, lploadordergroup: P5, lpdwtagid: Option<*mut u32>, lpdependencies: P7, lpservicestartname: P8, lppassword: P9, lpdisplayname: P10) -> windows_core::Result<()> @@ -19,7 +19,7 @@ where P10: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigA(hservice : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCSTR, lploadordergroup : windows_core::PCSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCSTR, lpservicestartname : windows_core::PCSTR, lppassword : windows_core::PCSTR, lpdisplayname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ChangeServiceConfigA(core::mem::transmute(hservice), core::mem::transmute(dwservicetype), core::mem::transmute(dwstarttype), core::mem::transmute(dwerrorcontrol), lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() + ChangeServiceConfigA(hservice, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() } #[inline] pub unsafe fn ChangeServiceConfigW(hservice: SC_HANDLE, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P4, lploadordergroup: P5, lpdwtagid: Option<*mut u32>, lpdependencies: P7, lpservicestartname: P8, lppassword: P9, lpdisplayname: P10) -> windows_core::Result<()> @@ -32,27 +32,27 @@ where P10: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigW(hservice : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCWSTR, lploadordergroup : windows_core::PCWSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCWSTR, lpservicestartname : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, lpdisplayname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ChangeServiceConfigW(core::mem::transmute(hservice), core::mem::transmute(dwservicetype), core::mem::transmute(dwstarttype), core::mem::transmute(dwerrorcontrol), lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() + ChangeServiceConfigW(hservice, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() } #[inline] pub unsafe fn CloseServiceHandle(hscobject: SC_HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn CloseServiceHandle(hscobject : SC_HANDLE) -> super::super::Foundation:: BOOL); - CloseServiceHandle(core::mem::transmute(hscobject)).ok() + CloseServiceHandle(hscobject).ok() } #[inline] pub unsafe fn ControlService(hservice: SC_HANDLE, dwcontrol: u32, lpservicestatus: *mut SERVICE_STATUS) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ControlService(hservice : SC_HANDLE, dwcontrol : u32, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); - ControlService(core::mem::transmute(hservice), core::mem::transmute(dwcontrol), core::mem::transmute(lpservicestatus)).ok() + ControlService(hservice, dwcontrol, core::mem::transmute(lpservicestatus)).ok() } #[inline] pub unsafe fn ControlServiceExA(hservice: SC_HANDLE, dwcontrol: u32, dwinfolevel: u32, pcontrolparams: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ControlServiceExA(hservice : SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ControlServiceExA(core::mem::transmute(hservice), core::mem::transmute(dwcontrol), core::mem::transmute(dwinfolevel), core::mem::transmute(pcontrolparams)).ok() + ControlServiceExA(hservice, dwcontrol, dwinfolevel, core::mem::transmute(pcontrolparams)).ok() } #[inline] pub unsafe fn ControlServiceExW(hservice: SC_HANDLE, dwcontrol: u32, dwinfolevel: u32, pcontrolparams: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn ControlServiceExW(hservice : SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ControlServiceExW(core::mem::transmute(hservice), core::mem::transmute(dwcontrol), core::mem::transmute(dwinfolevel), core::mem::transmute(pcontrolparams)).ok() + ControlServiceExW(hservice, dwcontrol, dwinfolevel, core::mem::transmute(pcontrolparams)).ok() } #[inline] pub unsafe fn CreateServiceA(hscmanager: SC_HANDLE, lpservicename: P1, lpdisplayname: P2, dwdesiredaccess: u32, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P7, lploadordergroup: P8, lpdwtagid: Option<*mut u32>, lpdependencies: P10, lpservicestartname: P11, lppassword: P12) -> windows_core::Result @@ -66,7 +66,7 @@ where P12: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateServiceA(hscmanager : SC_HANDLE, lpservicename : windows_core::PCSTR, lpdisplayname : windows_core::PCSTR, dwdesiredaccess : u32, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCSTR, lploadordergroup : windows_core::PCSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCSTR, lpservicestartname : windows_core::PCSTR, lppassword : windows_core::PCSTR) -> SC_HANDLE); - let result__ = CreateServiceA(core::mem::transmute(hscmanager), lpservicename.param().abi(), lpdisplayname.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwservicetype), core::mem::transmute(dwstarttype), core::mem::transmute(dwerrorcontrol), lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi()); + let result__ = CreateServiceA(hscmanager, lpservicename.param().abi(), lpdisplayname.param().abi(), dwdesiredaccess, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -81,28 +81,28 @@ where P12: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateServiceW(hscmanager : SC_HANDLE, lpservicename : windows_core::PCWSTR, lpdisplayname : windows_core::PCWSTR, dwdesiredaccess : u32, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCWSTR, lploadordergroup : windows_core::PCWSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCWSTR, lpservicestartname : windows_core::PCWSTR, lppassword : windows_core::PCWSTR) -> SC_HANDLE); - let result__ = CreateServiceW(core::mem::transmute(hscmanager), lpservicename.param().abi(), lpdisplayname.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwservicetype), core::mem::transmute(dwstarttype), core::mem::transmute(dwerrorcontrol), lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi()); + let result__ = CreateServiceW(hscmanager, lpservicename.param().abi(), lpdisplayname.param().abi(), dwdesiredaccess, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(core::mem::zeroed())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DeleteService(hservice: SC_HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn DeleteService(hservice : SC_HANDLE) -> super::super::Foundation:: BOOL); - DeleteService(core::mem::transmute(hservice)).ok() + DeleteService(hservice).ok() } #[inline] pub unsafe fn EnumDependentServicesA(hservice: SC_HANDLE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesA(hservice : SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumDependentServicesA(core::mem::transmute(hservice), core::mem::transmute(dwservicestate), core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned)).ok() + EnumDependentServicesA(hservice, dwservicestate, core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned)).ok() } #[inline] pub unsafe fn EnumDependentServicesW(hservice: SC_HANDLE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesW(hservice : SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumDependentServicesW(core::mem::transmute(hservice), core::mem::transmute(dwservicestate), core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned)).ok() + EnumDependentServicesW(hservice, dwservicestate, core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned)).ok() } #[inline] pub unsafe fn EnumServicesStatusA(hscmanager: SC_HANDLE, dwservicetype: ENUM_SERVICE_TYPE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32, lpresumehandle: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusA(hscmanager : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32) -> super::super::Foundation:: BOOL); - EnumServicesStatusA(core::mem::transmute(hscmanager), core::mem::transmute(dwservicetype), core::mem::transmute(dwservicestate), core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned), core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed()))).ok() + EnumServicesStatusA(hscmanager, dwservicetype, dwservicestate, core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned), core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnumServicesStatusExA(hscmanager: SC_HANDLE, infolevel: SC_ENUM_TYPE, dwservicetype: ENUM_SERVICE_TYPE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<&mut [u8]>, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32, lpresumehandle: Option<*mut u32>, pszgroupname: P9) -> windows_core::Result<()> @@ -110,19 +110,7 @@ where P9: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExA(hscmanager : SC_HANDLE, infolevel : SC_ENUM_TYPE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32, pszgroupname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - EnumServicesStatusExA( - core::mem::transmute(hscmanager), - core::mem::transmute(infolevel), - core::mem::transmute(dwservicetype), - core::mem::transmute(dwservicestate), - core::mem::transmute(lpservices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - lpservices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcbbytesneeded), - core::mem::transmute(lpservicesreturned), - core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed())), - pszgroupname.param().abi(), - ) - .ok() + EnumServicesStatusExA(hscmanager, infolevel, dwservicetype, dwservicestate, core::mem::transmute(lpservices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpservices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned), core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed())), pszgroupname.param().abi()).ok() } #[inline] pub unsafe fn EnumServicesStatusExW(hscmanager: SC_HANDLE, infolevel: SC_ENUM_TYPE, dwservicetype: ENUM_SERVICE_TYPE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<&mut [u8]>, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32, lpresumehandle: Option<*mut u32>, pszgroupname: P9) -> windows_core::Result<()> @@ -130,29 +118,17 @@ where P9: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExW(hscmanager : SC_HANDLE, infolevel : SC_ENUM_TYPE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32, pszgroupname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - EnumServicesStatusExW( - core::mem::transmute(hscmanager), - core::mem::transmute(infolevel), - core::mem::transmute(dwservicetype), - core::mem::transmute(dwservicestate), - core::mem::transmute(lpservices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - lpservices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pcbbytesneeded), - core::mem::transmute(lpservicesreturned), - core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed())), - pszgroupname.param().abi(), - ) - .ok() + EnumServicesStatusExW(hscmanager, infolevel, dwservicetype, dwservicestate, core::mem::transmute(lpservices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpservices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned), core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed())), pszgroupname.param().abi()).ok() } #[inline] pub unsafe fn EnumServicesStatusW(hscmanager: SC_HANDLE, dwservicetype: ENUM_SERVICE_TYPE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32, lpresumehandle: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusW(hscmanager : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32) -> super::super::Foundation:: BOOL); - EnumServicesStatusW(core::mem::transmute(hscmanager), core::mem::transmute(dwservicetype), core::mem::transmute(dwservicestate), core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned), core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed()))).ok() + EnumServicesStatusW(hscmanager, dwservicetype, dwservicestate, core::mem::transmute(lpservices.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded), core::mem::transmute(lpservicesreturned), core::mem::transmute(lpresumehandle.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetServiceDirectory(hservicestatus: SERVICE_STATUS_HANDLE, edirectorytype: SERVICE_DIRECTORY_TYPE, lppathbuffer: Option<&mut [u16]>, lpcchrequiredbufferlength: *mut u32) -> u32 { windows_targets::link!("api-ms-win-service-core-l1-1-4.dll" "system" fn GetServiceDirectory(hservicestatus : SERVICE_STATUS_HANDLE, edirectorytype : SERVICE_DIRECTORY_TYPE, lppathbuffer : windows_core::PWSTR, cchpathbufferlength : u32, lpcchrequiredbufferlength : *mut u32) -> u32); - GetServiceDirectory(core::mem::transmute(hservicestatus), core::mem::transmute(edirectorytype), core::mem::transmute(lppathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lppathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpcchrequiredbufferlength)) + GetServiceDirectory(hservicestatus, edirectorytype, core::mem::transmute(lppathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lppathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpcchrequiredbufferlength)) } #[inline] pub unsafe fn GetServiceDisplayNameA(hscmanager: SC_HANDLE, lpservicename: P1, lpdisplayname: Option, lpcchbuffer: *mut u32) -> windows_core::Result<()> @@ -160,7 +136,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameA(hscmanager : SC_HANDLE, lpservicename : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceDisplayNameA(core::mem::transmute(hscmanager), lpservicename.param().abi(), core::mem::transmute(lpdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() + GetServiceDisplayNameA(hscmanager, lpservicename.param().abi(), core::mem::transmute(lpdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() } #[inline] pub unsafe fn GetServiceDisplayNameW(hscmanager: SC_HANDLE, lpservicename: P1, lpdisplayname: Option, lpcchbuffer: *mut u32) -> windows_core::Result<()> @@ -168,7 +144,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameW(hscmanager : SC_HANDLE, lpservicename : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceDisplayNameW(core::mem::transmute(hscmanager), lpservicename.param().abi(), core::mem::transmute(lpdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() + GetServiceDisplayNameW(hscmanager, lpservicename.param().abi(), core::mem::transmute(lpdisplayname.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() } #[inline] pub unsafe fn GetServiceKeyNameA(hscmanager: SC_HANDLE, lpdisplayname: P1, lpservicename: Option, lpcchbuffer: *mut u32) -> windows_core::Result<()> @@ -176,7 +152,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameA(hscmanager : SC_HANDLE, lpdisplayname : windows_core::PCSTR, lpservicename : windows_core::PSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceKeyNameA(core::mem::transmute(hscmanager), lpdisplayname.param().abi(), core::mem::transmute(lpservicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() + GetServiceKeyNameA(hscmanager, lpdisplayname.param().abi(), core::mem::transmute(lpservicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() } #[inline] pub unsafe fn GetServiceKeyNameW(hscmanager: SC_HANDLE, lpdisplayname: P1, lpservicename: Option, lpcchbuffer: *mut u32) -> windows_core::Result<()> @@ -184,29 +160,29 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameW(hscmanager : SC_HANDLE, lpdisplayname : windows_core::PCWSTR, lpservicename : windows_core::PWSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceKeyNameW(core::mem::transmute(hscmanager), lpdisplayname.param().abi(), core::mem::transmute(lpservicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() + GetServiceKeyNameW(hscmanager, lpdisplayname.param().abi(), core::mem::transmute(lpservicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchbuffer)).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetServiceRegistryStateKey(servicestatushandle: SERVICE_STATUS_HANDLE, statetype: SERVICE_REGISTRY_STATE_TYPE, accessmask: u32, servicestatekey: *mut super::Registry::HKEY) -> u32 { windows_targets::link!("api-ms-win-service-core-l1-1-3.dll" "system" fn GetServiceRegistryStateKey(servicestatushandle : SERVICE_STATUS_HANDLE, statetype : SERVICE_REGISTRY_STATE_TYPE, accessmask : u32, servicestatekey : *mut super::Registry:: HKEY) -> u32); - GetServiceRegistryStateKey(core::mem::transmute(servicestatushandle), core::mem::transmute(statetype), core::mem::transmute(accessmask), core::mem::transmute(servicestatekey)) + GetServiceRegistryStateKey(servicestatushandle, statetype, accessmask, core::mem::transmute(servicestatekey)) } #[inline] pub unsafe fn GetSharedServiceDirectory(servicehandle: SC_HANDLE, directorytype: SERVICE_SHARED_DIRECTORY_TYPE, pathbuffer: Option<&mut [u16]>, requiredbufferlength: *mut u32) -> u32 { windows_targets::link!("api-ms-win-service-core-l1-1-5.dll" "system" fn GetSharedServiceDirectory(servicehandle : SC_HANDLE, directorytype : SERVICE_SHARED_DIRECTORY_TYPE, pathbuffer : windows_core::PWSTR, pathbufferlength : u32, requiredbufferlength : *mut u32) -> u32); - GetSharedServiceDirectory(core::mem::transmute(servicehandle), core::mem::transmute(directorytype), core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredbufferlength)) + GetSharedServiceDirectory(servicehandle, directorytype, core::mem::transmute(pathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredbufferlength)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetSharedServiceRegistryStateKey(servicehandle: SC_HANDLE, statetype: SERVICE_SHARED_REGISTRY_STATE_TYPE, accessmask: u32, servicestatekey: *mut super::Registry::HKEY) -> u32 { windows_targets::link!("api-ms-win-service-core-l1-1-5.dll" "system" fn GetSharedServiceRegistryStateKey(servicehandle : SC_HANDLE, statetype : SERVICE_SHARED_REGISTRY_STATE_TYPE, accessmask : u32, servicestatekey : *mut super::Registry:: HKEY) -> u32); - GetSharedServiceRegistryStateKey(core::mem::transmute(servicehandle), core::mem::transmute(statetype), core::mem::transmute(accessmask), core::mem::transmute(servicestatekey)) + GetSharedServiceRegistryStateKey(servicehandle, statetype, accessmask, core::mem::transmute(servicestatekey)) } #[inline] pub unsafe fn LockServiceDatabase(hscmanager: SC_HANDLE) -> *mut core::ffi::c_void { windows_targets::link!("advapi32.dll" "system" fn LockServiceDatabase(hscmanager : SC_HANDLE) -> *mut core::ffi::c_void); - LockServiceDatabase(core::mem::transmute(hscmanager)) + LockServiceDatabase(hscmanager) } #[inline] pub unsafe fn NotifyBootConfigStatus(bootacceptable: bool) -> windows_core::Result<()> { @@ -216,12 +192,12 @@ pub unsafe fn NotifyBootConfigStatus(bootacceptable: bool) -> windows_core::Resu #[inline] pub unsafe fn NotifyServiceStatusChangeA(hservice: SC_HANDLE, dwnotifymask: SERVICE_NOTIFY, pnotifybuffer: *const SERVICE_NOTIFY_2A) -> u32 { windows_targets::link!("advapi32.dll" "system" fn NotifyServiceStatusChangeA(hservice : SC_HANDLE, dwnotifymask : SERVICE_NOTIFY, pnotifybuffer : *const SERVICE_NOTIFY_2A) -> u32); - NotifyServiceStatusChangeA(core::mem::transmute(hservice), core::mem::transmute(dwnotifymask), core::mem::transmute(pnotifybuffer)) + NotifyServiceStatusChangeA(hservice, dwnotifymask, pnotifybuffer) } #[inline] pub unsafe fn NotifyServiceStatusChangeW(hservice: SC_HANDLE, dwnotifymask: SERVICE_NOTIFY, pnotifybuffer: *const SERVICE_NOTIFY_2W) -> u32 { windows_targets::link!("advapi32.dll" "system" fn NotifyServiceStatusChangeW(hservice : SC_HANDLE, dwnotifymask : SERVICE_NOTIFY, pnotifybuffer : *const SERVICE_NOTIFY_2W) -> u32); - NotifyServiceStatusChangeW(core::mem::transmute(hservice), core::mem::transmute(dwnotifymask), core::mem::transmute(pnotifybuffer)) + NotifyServiceStatusChangeW(hservice, dwnotifymask, pnotifybuffer) } #[inline] pub unsafe fn OpenSCManagerA(lpmachinename: P0, lpdatabasename: P1, dwdesiredaccess: u32) -> windows_core::Result @@ -230,7 +206,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenSCManagerA(lpmachinename : windows_core::PCSTR, lpdatabasename : windows_core::PCSTR, dwdesiredaccess : u32) -> SC_HANDLE); - let result__ = OpenSCManagerA(lpmachinename.param().abi(), lpdatabasename.param().abi(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenSCManagerA(lpmachinename.param().abi(), lpdatabasename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -240,7 +216,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenSCManagerW(lpmachinename : windows_core::PCWSTR, lpdatabasename : windows_core::PCWSTR, dwdesiredaccess : u32) -> SC_HANDLE); - let result__ = OpenSCManagerW(lpmachinename.param().abi(), lpdatabasename.param().abi(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenSCManagerW(lpmachinename.param().abi(), lpdatabasename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -249,7 +225,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenServiceA(hscmanager : SC_HANDLE, lpservicename : windows_core::PCSTR, dwdesiredaccess : u32) -> SC_HANDLE); - let result__ = OpenServiceA(core::mem::transmute(hscmanager), lpservicename.param().abi(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenServiceA(hscmanager, lpservicename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -258,59 +234,59 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenServiceW(hscmanager : SC_HANDLE, lpservicename : windows_core::PCWSTR, dwdesiredaccess : u32) -> SC_HANDLE); - let result__ = OpenServiceW(core::mem::transmute(hscmanager), lpservicename.param().abi(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenServiceW(hscmanager, lpservicename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn QueryServiceConfig2A(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2A(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfig2A(core::mem::transmute(hservice), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceConfig2A(hservice, dwinfolevel, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn QueryServiceConfig2W(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2W(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfig2W(core::mem::transmute(hservice), core::mem::transmute(dwinfolevel), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceConfig2W(hservice, dwinfolevel, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn QueryServiceConfigA(hservice: SC_HANDLE, lpserviceconfig: Option<*mut QUERY_SERVICE_CONFIGA>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigA(hservice : SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfigA(core::mem::transmute(hservice), core::mem::transmute(lpserviceconfig.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceConfigA(hservice, core::mem::transmute(lpserviceconfig.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn QueryServiceConfigW(hservice: SC_HANDLE, lpserviceconfig: Option<*mut QUERY_SERVICE_CONFIGW>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigW(hservice : SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfigW(core::mem::transmute(hservice), core::mem::transmute(lpserviceconfig.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceConfigW(hservice, core::mem::transmute(lpserviceconfig.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn QueryServiceDynamicInformation(hservicestatus: SERVICE_STATUS_HANDLE, dwinfolevel: u32, ppdynamicinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceDynamicInformation(hservicestatus : SERVICE_STATUS_HANDLE, dwinfolevel : u32, ppdynamicinfo : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - QueryServiceDynamicInformation(core::mem::transmute(hservicestatus), core::mem::transmute(dwinfolevel), core::mem::transmute(ppdynamicinfo)).ok() + QueryServiceDynamicInformation(hservicestatus, dwinfolevel, core::mem::transmute(ppdynamicinfo)).ok() } #[inline] pub unsafe fn QueryServiceLockStatusA(hscmanager: SC_HANDLE, lplockstatus: Option<*mut QUERY_SERVICE_LOCK_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusA(hscmanager : SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceLockStatusA(core::mem::transmute(hscmanager), core::mem::transmute(lplockstatus.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceLockStatusA(hscmanager, core::mem::transmute(lplockstatus.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn QueryServiceLockStatusW(hscmanager: SC_HANDLE, lplockstatus: Option<*mut QUERY_SERVICE_LOCK_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusW(hscmanager : SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceLockStatusW(core::mem::transmute(hscmanager), core::mem::transmute(lplockstatus.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceLockStatusW(hscmanager, core::mem::transmute(lplockstatus.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceObjectSecurity(hservice: SC_HANDLE, dwsecurityinformation: u32, lpsecuritydescriptor: Option, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceObjectSecurity(hservice : SC_HANDLE, dwsecurityinformation : u32, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceObjectSecurity(core::mem::transmute(hservice), core::mem::transmute(dwsecurityinformation), core::mem::transmute(lpsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbbufsize), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceObjectSecurity(hservice, dwsecurityinformation, core::mem::transmute(lpsecuritydescriptor.unwrap_or(core::mem::zeroed())), cbbufsize, core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn QueryServiceStatus(hservice: SC_HANDLE, lpservicestatus: *mut SERVICE_STATUS) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatus(hservice : SC_HANDLE, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); - QueryServiceStatus(core::mem::transmute(hservice), core::mem::transmute(lpservicestatus)).ok() + QueryServiceStatus(hservice, core::mem::transmute(lpservicestatus)).ok() } #[inline] pub unsafe fn QueryServiceStatusEx(hservice: SC_HANDLE, infolevel: SC_STATUS_TYPE, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatusEx(hservice : SC_HANDLE, infolevel : SC_STATUS_TYPE, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceStatusEx(core::mem::transmute(hservice), core::mem::transmute(infolevel), core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded)).ok() + QueryServiceStatusEx(hservice, infolevel, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcbbytesneeded)).ok() } #[inline] pub unsafe fn RegisterServiceCtrlHandlerA(lpservicename: P0, lphandlerproc: LPHANDLER_FUNCTION) -> windows_core::Result @@ -318,7 +294,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerA(lpservicename : windows_core::PCSTR, lphandlerproc : LPHANDLER_FUNCTION) -> SERVICE_STATUS_HANDLE); - let result__ = RegisterServiceCtrlHandlerA(lpservicename.param().abi(), core::mem::transmute(lphandlerproc)); + let result__ = RegisterServiceCtrlHandlerA(lpservicename.param().abi(), lphandlerproc); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -327,7 +303,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerExA(lpservicename : windows_core::PCSTR, lphandlerproc : LPHANDLER_FUNCTION_EX, lpcontext : *const core::ffi::c_void) -> SERVICE_STATUS_HANDLE); - let result__ = RegisterServiceCtrlHandlerExA(lpservicename.param().abi(), core::mem::transmute(lphandlerproc), core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))); + let result__ = RegisterServiceCtrlHandlerExA(lpservicename.param().abi(), lphandlerproc, core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -336,7 +312,7 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerExW(lpservicename : windows_core::PCWSTR, lphandlerproc : LPHANDLER_FUNCTION_EX, lpcontext : *const core::ffi::c_void) -> SERVICE_STATUS_HANDLE); - let result__ = RegisterServiceCtrlHandlerExW(lpservicename.param().abi(), core::mem::transmute(lphandlerproc), core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))); + let result__ = RegisterServiceCtrlHandlerExW(lpservicename.param().abi(), lphandlerproc, core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -345,64 +321,64 @@ where P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerW(lpservicename : windows_core::PCWSTR, lphandlerproc : LPHANDLER_FUNCTION) -> SERVICE_STATUS_HANDLE); - let result__ = RegisterServiceCtrlHandlerW(lpservicename.param().abi(), core::mem::transmute(lphandlerproc)); + let result__ = RegisterServiceCtrlHandlerW(lpservicename.param().abi(), lphandlerproc); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetServiceBits(hservicestatus: SERVICE_STATUS_HANDLE, dwservicebits: u32, bsetbitson: bool, bupdateimmediately: bool) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetServiceBits(hservicestatus : SERVICE_STATUS_HANDLE, dwservicebits : u32, bsetbitson : super::super::Foundation:: BOOL, bupdateimmediately : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetServiceBits(core::mem::transmute(hservicestatus), core::mem::transmute(dwservicebits), bsetbitson.into(), bupdateimmediately.into()).ok() + SetServiceBits(hservicestatus, dwservicebits, bsetbitson.into(), bupdateimmediately.into()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SetServiceObjectSecurity(hservice: SC_HANDLE, dwsecurityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetServiceObjectSecurity(hservice : SC_HANDLE, dwsecurityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); - SetServiceObjectSecurity(core::mem::transmute(hservice), core::mem::transmute(dwsecurityinformation), core::mem::transmute(lpsecuritydescriptor)).ok() + SetServiceObjectSecurity(hservice, dwsecurityinformation, lpsecuritydescriptor).ok() } #[inline] pub unsafe fn SetServiceStatus(hservicestatus: SERVICE_STATUS_HANDLE, lpservicestatus: *const SERVICE_STATUS) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn SetServiceStatus(hservicestatus : SERVICE_STATUS_HANDLE, lpservicestatus : *const SERVICE_STATUS) -> super::super::Foundation:: BOOL); - SetServiceStatus(core::mem::transmute(hservicestatus), core::mem::transmute(lpservicestatus)).ok() + SetServiceStatus(hservicestatus, lpservicestatus).ok() } #[inline] pub unsafe fn StartServiceA(hservice: SC_HANDLE, lpserviceargvectors: Option<&[windows_core::PCSTR]>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn StartServiceA(hservice : SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCSTR) -> super::super::Foundation:: BOOL); - StartServiceA(core::mem::transmute(hservice), lpserviceargvectors.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpserviceargvectors.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + StartServiceA(hservice, lpserviceargvectors.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpserviceargvectors.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn StartServiceCtrlDispatcherA(lpservicestarttable: *const SERVICE_TABLE_ENTRYA) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn StartServiceCtrlDispatcherA(lpservicestarttable : *const SERVICE_TABLE_ENTRYA) -> super::super::Foundation:: BOOL); - StartServiceCtrlDispatcherA(core::mem::transmute(lpservicestarttable)).ok() + StartServiceCtrlDispatcherA(lpservicestarttable).ok() } #[inline] pub unsafe fn StartServiceCtrlDispatcherW(lpservicestarttable: *const SERVICE_TABLE_ENTRYW) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn StartServiceCtrlDispatcherW(lpservicestarttable : *const SERVICE_TABLE_ENTRYW) -> super::super::Foundation:: BOOL); - StartServiceCtrlDispatcherW(core::mem::transmute(lpservicestarttable)).ok() + StartServiceCtrlDispatcherW(lpservicestarttable).ok() } #[inline] pub unsafe fn StartServiceW(hservice: SC_HANDLE, lpserviceargvectors: Option<&[windows_core::PCWSTR]>) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn StartServiceW(hservice : SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - StartServiceW(core::mem::transmute(hservice), lpserviceargvectors.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpserviceargvectors.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + StartServiceW(hservice, lpserviceargvectors.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpserviceargvectors.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } #[inline] pub unsafe fn SubscribeServiceChangeNotifications(hservice: SC_HANDLE, eeventtype: SC_EVENT_TYPE, pcallback: PSC_NOTIFICATION_CALLBACK, pcallbackcontext: Option<*const core::ffi::c_void>, psubscription: *mut PSC_NOTIFICATION_REGISTRATION) -> u32 { windows_targets::link!("sechost.dll" "system" fn SubscribeServiceChangeNotifications(hservice : SC_HANDLE, eeventtype : SC_EVENT_TYPE, pcallback : PSC_NOTIFICATION_CALLBACK, pcallbackcontext : *const core::ffi::c_void, psubscription : *mut PSC_NOTIFICATION_REGISTRATION) -> u32); - SubscribeServiceChangeNotifications(core::mem::transmute(hservice), core::mem::transmute(eeventtype), core::mem::transmute(pcallback), core::mem::transmute(pcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(psubscription)) + SubscribeServiceChangeNotifications(hservice, eeventtype, pcallback, core::mem::transmute(pcallbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(psubscription)) } #[inline] pub unsafe fn UnlockServiceDatabase(sclock: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn UnlockServiceDatabase(sclock : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - UnlockServiceDatabase(core::mem::transmute(sclock)).ok() + UnlockServiceDatabase(sclock).ok() } #[inline] pub unsafe fn UnsubscribeServiceChangeNotifications(psubscription: PSC_NOTIFICATION_REGISTRATION) { windows_targets::link!("sechost.dll" "system" fn UnsubscribeServiceChangeNotifications(psubscription : PSC_NOTIFICATION_REGISTRATION)); - UnsubscribeServiceChangeNotifications(core::mem::transmute(psubscription)) + UnsubscribeServiceChangeNotifications(psubscription) } #[inline] pub unsafe fn WaitServiceState(hservice: SC_HANDLE, dwnotify: u32, dwtimeout: Option, hcancelevent: Option) -> u32 { windows_targets::link!("advapi32.dll" "system" fn WaitServiceState(hservice : SC_HANDLE, dwnotify : u32, dwtimeout : u32, hcancelevent : super::super::Foundation:: HANDLE) -> u32); - WaitServiceState(core::mem::transmute(hservice), core::mem::transmute(dwnotify), core::mem::transmute(dwtimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(hcancelevent.unwrap_or(core::mem::zeroed()))) + WaitServiceState(hservice, dwnotify, core::mem::transmute(dwtimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(hcancelevent.unwrap_or(core::mem::zeroed()))) } pub const CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID: windows_core::GUID = windows_core::GUID::from_u128(0x2d7a2816_0c5e_45fc_9ce7_570e5ecde9c9); pub const DOMAIN_JOIN_GUID: windows_core::GUID = windows_core::GUID::from_u128(0x1ce20aba_9851_4421_9430_1ddeb766e809); diff --git a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs index 6d05a13aa2..b112cb4f95 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs @@ -92,7 +92,7 @@ impl ISettingsContext { (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), ptarget.param().abi(), core::mem::transmute(pppresults), &mut result__).map(|| result__) } pub unsafe fn SetUserData(&self, puserdata: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserData)(windows_core::Interface::as_raw(self), core::mem::transmute(puserdata)).ok() + (windows_core::Interface::vtable(self).SetUserData)(windows_core::Interface::as_raw(self), puserdata).ok() } pub unsafe fn GetUserData(&self) -> windows_core::Result<*mut core::ffi::c_void> { let mut result__ = core::mem::zeroed(); @@ -214,18 +214,18 @@ windows_core::imp::interface_hierarchy!(ISettingsEngine, windows_core::IUnknown) impl ISettingsEngine { pub unsafe fn GetNamespaces(&self, flags: WcmNamespaceEnumerationFlags, reserved: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNamespaces)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNamespaces)(windows_core::Interface::as_raw(self), flags, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNamespace(&self, settingsid: P0, access: WcmNamespaceAccess, reserved: *const core::ffi::c_void) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNamespace)(windows_core::Interface::as_raw(self), settingsid.param().abi(), core::mem::transmute(access), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNamespace)(windows_core::Interface::as_raw(self), settingsid.param().abi(), access, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetErrorDescription(&self, hresult: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), hresult, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateSettingsIdentity(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -233,13 +233,13 @@ impl ISettingsEngine { } pub unsafe fn GetStoreStatus(&self, reserved: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStoreStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStoreStatus)(windows_core::Interface::as_raw(self), reserved, &mut result__).map(|| result__) } pub unsafe fn LoadStore(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadStore)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LoadStore)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn UnloadStore(&self, reserved: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnloadStore)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved)).ok() + (windows_core::Interface::vtable(self).UnloadStore)(windows_core::Interface::as_raw(self), reserved).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RegisterNamespace(&self, settingsid: P0, stream: P1, pushsettings: bool) -> windows_core::Result @@ -272,7 +272,7 @@ impl ISettingsEngine { } pub unsafe fn CreateSettingsContext(&self, flags: u32, reserved: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSettingsContext)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(reserved), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSettingsContext)(windows_core::Interface::as_raw(self), flags, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSettingsContext(&self, settingscontext: P0) -> windows_core::Result<()> where @@ -501,21 +501,21 @@ impl ISettingsIdentity { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved), name.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), reserved, name.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetAttribute(&self, reserved: *const core::ffi::c_void, name: P1, value: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved), name.param().abi(), value.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), reserved, name.param().abi(), value.param().abi()).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } } #[repr(C)] @@ -604,7 +604,7 @@ impl ISettingsItem { (windows_core::Interface::vtable(self).GetValueRaw)(windows_core::Interface::as_raw(self), core::mem::transmute(data), &mut result__).map(|| result__) } pub unsafe fn SetValueRaw(&self, datatype: i32, data: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueRaw)(windows_core::Interface::as_raw(self), core::mem::transmute(datatype), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetValueRaw)(windows_core::Interface::as_raw(self), datatype, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn HasChild(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -679,7 +679,7 @@ impl ISettingsItem { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetRestriction(&self, restrictionfacet: WcmRestrictionFacets) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRestriction)(windows_core::Interface::as_raw(self), core::mem::transmute(restrictionfacet), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetRestriction)(windows_core::Interface::as_raw(self), restrictionfacet, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetKeyValue(&self) -> windows_core::Result { @@ -1270,7 +1270,7 @@ impl ITargetInfo { (windows_core::Interface::vtable(self).GetTargetMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTargetMode(&self, targetmode: WcmTargetMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTargetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(targetmode)).ok() + (windows_core::Interface::vtable(self).SetTargetMode)(windows_core::Interface::as_raw(self), targetmode).ok() } pub unsafe fn GetTemporaryStoreLocation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1349,7 +1349,7 @@ impl ITargetInfo { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWow64Context)(windows_core::Interface::as_raw(self), installermodule.param().abi(), core::mem::transmute(wow64context)).ok() + (windows_core::Interface::vtable(self).SetWow64Context)(windows_core::Interface::as_raw(self), installermodule.param().abi(), wow64context).ok() } pub unsafe fn TranslateWow64(&self, clientarchitecture: P0, value: P1) -> windows_core::Result where diff --git a/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs index 35f291f2de..191e281e2b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs @@ -6,11 +6,11 @@ pub unsafe fn OOBEComplete(isoobecomplete: *mut super::super::Foundation::BOOL) #[inline] pub unsafe fn RegisterWaitUntilOOBECompleted(oobecompletedcallback: OOBE_COMPLETED_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>, waithandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn RegisterWaitUntilOOBECompleted(oobecompletedcallback : OOBE_COMPLETED_CALLBACK, callbackcontext : *const core::ffi::c_void, waithandle : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RegisterWaitUntilOOBECompleted(core::mem::transmute(oobecompletedcallback), core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(waithandle)).ok() + RegisterWaitUntilOOBECompleted(oobecompletedcallback, core::mem::transmute(callbackcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(waithandle)).ok() } #[inline] pub unsafe fn UnregisterWaitUntilOOBECompleted(waithandle: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitUntilOOBECompleted(waithandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - UnregisterWaitUntilOOBECompleted(core::mem::transmute(waithandle)).ok() + UnregisterWaitUntilOOBECompleted(waithandle).ok() } pub type OOBE_COMPLETED_CALLBACK = Option; diff --git a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs index 2b2bfbb58a..259722f454 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs @@ -17,12 +17,12 @@ where #[inline] pub unsafe fn CheckForHiberboot(phiberboot: *mut bool, bclearflag: bool) -> u32 { windows_targets::link!("advapi32.dll" "system" fn CheckForHiberboot(phiberboot : *mut bool, bclearflag : bool) -> u32); - CheckForHiberboot(core::mem::transmute(phiberboot), core::mem::transmute(bclearflag)) + CheckForHiberboot(core::mem::transmute(phiberboot), bclearflag) } #[inline] pub unsafe fn ExitWindowsEx(uflags: EXIT_WINDOWS_FLAGS, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ExitWindowsEx(uflags : EXIT_WINDOWS_FLAGS, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); - ExitWindowsEx(core::mem::transmute(uflags), core::mem::transmute(dwreason)).ok() + ExitWindowsEx(uflags, dwreason).ok() } #[inline] pub unsafe fn InitiateShutdownA(lpmachinename: P0, lpmessage: P1, dwgraceperiod: u32, dwshutdownflags: SHUTDOWN_FLAGS, dwreason: SHUTDOWN_REASON) -> u32 @@ -31,7 +31,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn InitiateShutdownA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwgraceperiod : u32, dwshutdownflags : SHUTDOWN_FLAGS, dwreason : SHUTDOWN_REASON) -> u32); - InitiateShutdownA(lpmachinename.param().abi(), lpmessage.param().abi(), core::mem::transmute(dwgraceperiod), core::mem::transmute(dwshutdownflags), core::mem::transmute(dwreason)) + InitiateShutdownA(lpmachinename.param().abi(), lpmessage.param().abi(), dwgraceperiod, dwshutdownflags, dwreason) } #[inline] pub unsafe fn InitiateShutdownW(lpmachinename: P0, lpmessage: P1, dwgraceperiod: u32, dwshutdownflags: SHUTDOWN_FLAGS, dwreason: SHUTDOWN_REASON) -> u32 @@ -40,7 +40,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn InitiateShutdownW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwgraceperiod : u32, dwshutdownflags : SHUTDOWN_FLAGS, dwreason : SHUTDOWN_REASON) -> u32); - InitiateShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), core::mem::transmute(dwgraceperiod), core::mem::transmute(dwshutdownflags), core::mem::transmute(dwreason)) + InitiateShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), dwgraceperiod, dwshutdownflags, dwreason) } #[inline] pub unsafe fn InitiateSystemShutdownA(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: bool, brebootaftershutdown: bool) -> windows_core::Result<()> @@ -49,7 +49,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - InitiateSystemShutdownA(lpmachinename.param().abi(), lpmessage.param().abi(), core::mem::transmute(dwtimeout), bforceappsclosed.into(), brebootaftershutdown.into()).ok() + InitiateSystemShutdownA(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into()).ok() } #[inline] pub unsafe fn InitiateSystemShutdownExA(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: bool, brebootaftershutdown: bool, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> @@ -58,7 +58,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownExA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); - InitiateSystemShutdownExA(lpmachinename.param().abi(), lpmessage.param().abi(), core::mem::transmute(dwtimeout), bforceappsclosed.into(), brebootaftershutdown.into(), core::mem::transmute(dwreason)).ok() + InitiateSystemShutdownExA(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into(), dwreason).ok() } #[inline] pub unsafe fn InitiateSystemShutdownExW(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: bool, brebootaftershutdown: bool, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> @@ -67,7 +67,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownExW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); - InitiateSystemShutdownExW(lpmachinename.param().abi(), lpmessage.param().abi(), core::mem::transmute(dwtimeout), bforceappsclosed.into(), brebootaftershutdown.into(), core::mem::transmute(dwreason)).ok() + InitiateSystemShutdownExW(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into(), dwreason).ok() } #[inline] pub unsafe fn InitiateSystemShutdownW(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: bool, brebootaftershutdown: bool) -> windows_core::Result<()> @@ -76,7 +76,7 @@ where P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - InitiateSystemShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), core::mem::transmute(dwtimeout), bforceappsclosed.into(), brebootaftershutdown.into()).ok() + InitiateSystemShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into()).ok() } #[inline] pub unsafe fn LockWorkStation() -> windows_core::Result<()> { @@ -89,17 +89,17 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonCreate(hwnd : super::super::Foundation:: HWND, pwszreason : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ShutdownBlockReasonCreate(core::mem::transmute(hwnd), pwszreason.param().abi()).ok() + ShutdownBlockReasonCreate(hwnd, pwszreason.param().abi()).ok() } #[inline] pub unsafe fn ShutdownBlockReasonDestroy(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonDestroy(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ShutdownBlockReasonDestroy(core::mem::transmute(hwnd)).ok() + ShutdownBlockReasonDestroy(hwnd).ok() } #[inline] pub unsafe fn ShutdownBlockReasonQuery(hwnd: super::super::Foundation::HWND, pwszbuff: Option, pcchbuff: *mut u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonQuery(hwnd : super::super::Foundation:: HWND, pwszbuff : windows_core::PWSTR, pcchbuff : *mut u32) -> super::super::Foundation:: BOOL); - ShutdownBlockReasonQuery(core::mem::transmute(hwnd), core::mem::transmute(pwszbuff.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuff)).ok() + ShutdownBlockReasonQuery(hwnd, core::mem::transmute(pwszbuff.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchbuff)).ok() } pub const EWX_ARSO: EXIT_WINDOWS_FLAGS = EXIT_WINDOWS_FLAGS(67108864u32); pub const EWX_BOOTOPTIONS: EXIT_WINDOWS_FLAGS = EXIT_WINDOWS_FLAGS(16777216u32); diff --git a/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs index 397d920ac0..71ef902e7a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs @@ -98,7 +98,7 @@ windows_core::imp::interface_hierarchy!(ISideShowCapabilities, windows_core::IUn impl ISideShowCapabilities { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetCapability(&self, in_keycapability: *const super::super::Foundation::PROPERTYKEY, inout_pvalue: *mut super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCapability)(windows_core::Interface::as_raw(self), core::mem::transmute(in_keycapability), core::mem::transmute(inout_pvalue)).ok() + (windows_core::Interface::vtable(self).GetCapability)(windows_core::Interface::as_raw(self), in_keycapability, core::mem::transmute(inout_pvalue)).ok() } } #[repr(C)] @@ -137,7 +137,7 @@ impl ISideShowCapabilitiesCollection { } pub unsafe fn GetAt(&self, in_dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(in_dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), in_dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -257,7 +257,7 @@ impl ISideShowContentManager { (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), in_picontent.param().abi()).ok() } pub unsafe fn Remove(&self, in_contentid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(in_contentid)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), in_contentid).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self)).ok() @@ -336,13 +336,13 @@ windows_core::imp::interface_hierarchy!(ISideShowEvents, windows_core::IUnknown) impl ISideShowEvents { pub unsafe fn ContentMissing(&self, in_contentid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ContentMissing)(windows_core::Interface::as_raw(self), core::mem::transmute(in_contentid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ContentMissing)(windows_core::Interface::as_raw(self), in_contentid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ApplicationEvent(&self, in_picapabilities: P0, in_dweventid: u32, in_pbeventdata: Option<&[u8]>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplicationEvent)(windows_core::Interface::as_raw(self), in_picapabilities.param().abi(), core::mem::transmute(in_dweventid), in_pbeventdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(in_pbeventdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + (windows_core::Interface::vtable(self).ApplicationEvent)(windows_core::Interface::as_raw(self), in_picapabilities.param().abi(), in_dweventid, in_pbeventdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(in_pbeventdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn DeviceAdded(&self, in_pidevice: P0) -> windows_core::Result<()> where @@ -412,19 +412,19 @@ windows_core::imp::define_interface!(ISideShowKeyCollection, ISideShowKeyCollect windows_core::imp::interface_hierarchy!(ISideShowKeyCollection, windows_core::IUnknown); impl ISideShowKeyCollection { pub unsafe fn Add(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), key).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetAt(&self, dwindex: u32, pkey: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pkey)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pkey)).ok() } pub unsafe fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelems)).ok() + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pcelems).ok() } pub unsafe fn RemoveAt(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), dwindex).ok() } } #[repr(C)] @@ -487,7 +487,7 @@ impl ISideShowNotification { (windows_core::Interface::vtable(self).NotificationId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotificationId(&self, in_notificationid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotificationId)(windows_core::Interface::as_raw(self), core::mem::transmute(in_notificationid)).ok() + (windows_core::Interface::vtable(self).SetNotificationId)(windows_core::Interface::as_raw(self), in_notificationid).ok() } pub unsafe fn Title(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -516,7 +516,7 @@ impl ISideShowNotification { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetImage(&self, in_hicon: super::super::UI::WindowsAndMessaging::HICON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), core::mem::transmute(in_hicon)).ok() + (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), in_hicon).ok() } pub unsafe fn ExpirationTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -662,7 +662,7 @@ impl ISideShowNotificationManager { (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), in_pinotification.param().abi()).ok() } pub unsafe fn Revoke(&self, in_notificationid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), core::mem::transmute(in_notificationid)).ok() + (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), in_notificationid).ok() } pub unsafe fn RevokeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RevokeAll)(windows_core::Interface::as_raw(self)).ok() @@ -718,13 +718,13 @@ impl ISideShowPropVariantCollection { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetAt(&self, dwindex: u32, pvalue: *mut super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pvalue)).ok() } pub unsafe fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcelems)).ok() + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pcelems).ok() } pub unsafe fn RemoveAt(&self, dwindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), dwindex).ok() } } #[repr(C)] @@ -793,11 +793,11 @@ windows_core::imp::interface_hierarchy!(ISideShowSession, windows_core::IUnknown impl ISideShowSession { pub unsafe fn RegisterContent(&self, in_applicationid: *const windows_core::GUID, in_endpointid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterContent)(windows_core::Interface::as_raw(self), core::mem::transmute(in_applicationid), core::mem::transmute(in_endpointid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterContent)(windows_core::Interface::as_raw(self), in_applicationid, in_endpointid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterNotifications(&self, in_applicationid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterNotifications)(windows_core::Interface::as_raw(self), core::mem::transmute(in_applicationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterNotifications)(windows_core::Interface::as_raw(self), in_applicationid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs index cd082f3acd..838cb1fd2e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs @@ -1,32 +1,32 @@ #[inline] pub unsafe fn BroadcastSystemMessageA(flags: u32, lpinfo: Option<*mut u32>, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> i32 { windows_targets::link!("user32.dll" "system" fn BroadcastSystemMessageA(flags : u32, lpinfo : *mut u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> i32); - BroadcastSystemMessageA(core::mem::transmute(flags), core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + BroadcastSystemMessageA(flags, core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), msg, wparam, lparam) } #[inline] pub unsafe fn BroadcastSystemMessageExA(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo: Option<*mut BROADCAST_SYSTEM_MESSAGE_INFO>, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pbsminfo: Option<*mut BSMINFO>) -> i32 { windows_targets::link!("user32.dll" "system" fn BroadcastSystemMessageExA(flags : BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo : *mut BROADCAST_SYSTEM_MESSAGE_INFO, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, pbsminfo : *mut BSMINFO) -> i32); - BroadcastSystemMessageExA(core::mem::transmute(flags), core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(pbsminfo.unwrap_or(core::mem::zeroed()))) + BroadcastSystemMessageExA(flags, core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), msg, wparam, lparam, core::mem::transmute(pbsminfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BroadcastSystemMessageExW(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo: Option<*mut BROADCAST_SYSTEM_MESSAGE_INFO>, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pbsminfo: Option<*mut BSMINFO>) -> i32 { windows_targets::link!("user32.dll" "system" fn BroadcastSystemMessageExW(flags : BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo : *mut BROADCAST_SYSTEM_MESSAGE_INFO, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, pbsminfo : *mut BSMINFO) -> i32); - BroadcastSystemMessageExW(core::mem::transmute(flags), core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(pbsminfo.unwrap_or(core::mem::zeroed()))) + BroadcastSystemMessageExW(flags, core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), msg, wparam, lparam, core::mem::transmute(pbsminfo.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn BroadcastSystemMessageW(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo: Option<*mut BROADCAST_SYSTEM_MESSAGE_INFO>, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> i32 { windows_targets::link!("user32.dll" "system" fn BroadcastSystemMessageW(flags : BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo : *mut BROADCAST_SYSTEM_MESSAGE_INFO, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> i32); - BroadcastSystemMessageW(core::mem::transmute(flags), core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + BroadcastSystemMessageW(flags, core::mem::transmute(lpinfo.unwrap_or(core::mem::zeroed())), msg, wparam, lparam) } #[inline] pub unsafe fn CloseDesktop(hdesktop: HDESK) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CloseDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); - CloseDesktop(core::mem::transmute(hdesktop)).ok() + CloseDesktop(hdesktop).ok() } #[inline] pub unsafe fn CloseWindowStation(hwinsta: HWINSTA) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CloseWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL); - CloseWindowStation(core::mem::transmute(hwinsta)).ok() + CloseWindowStation(hwinsta).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] @@ -36,7 +36,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateDesktopA(lpszdesktop : windows_core::PCSTR, lpszdevice : windows_core::PCSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEA, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HDESK); - let result__ = CreateDesktopA(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); + let result__ = CreateDesktopA(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] @@ -47,7 +47,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateDesktopExA(lpszdesktop : windows_core::PCSTR, lpszdevice : windows_core::PCSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEA, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES, ulheapsize : u32, pvoid : *const core::ffi::c_void) -> HDESK); - let result__ = CreateDesktopExA(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulheapsize), core::mem::transmute(pvoid.unwrap_or(core::mem::zeroed()))); + let result__ = CreateDesktopExA(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed())), ulheapsize, core::mem::transmute(pvoid.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] @@ -58,7 +58,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateDesktopExW(lpszdesktop : windows_core::PCWSTR, lpszdevice : windows_core::PCWSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEW, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES, ulheapsize : u32, pvoid : *const core::ffi::c_void) -> HDESK); - let result__ = CreateDesktopExW(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulheapsize), core::mem::transmute(pvoid.unwrap_or(core::mem::zeroed()))); + let result__ = CreateDesktopExW(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed())), ulheapsize, core::mem::transmute(pvoid.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] @@ -69,7 +69,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateDesktopW(lpszdesktop : windows_core::PCWSTR, lpszdevice : windows_core::PCWSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEW, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HDESK); - let result__ = CreateDesktopW(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); + let result__ = CreateDesktopW(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(core::mem::zeroed())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -79,7 +79,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateWindowStationA(lpwinsta : windows_core::PCSTR, dwflags : u32, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HWINSTA); - let result__ = CreateWindowStationA(lpwinsta.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); + let result__ = CreateWindowStationA(lpwinsta.param().abi(), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -89,34 +89,34 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateWindowStationW(lpwinsta : windows_core::PCWSTR, dwflags : u32, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HWINSTA); - let result__ = CreateWindowStationW(lpwinsta.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess), core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); + let result__ = CreateWindowStationW(lpwinsta.param().abi(), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn EnumDesktopWindows(hdesktop: Option, lpfn: super::super::UI::WindowsAndMessaging::WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnumDesktopWindows(hdesktop : HDESK, lpfn : super::super::UI::WindowsAndMessaging:: WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumDesktopWindows(core::mem::transmute(hdesktop.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfn), core::mem::transmute(lparam)).ok() + EnumDesktopWindows(core::mem::transmute(hdesktop.unwrap_or(core::mem::zeroed())), lpfn, lparam).ok() } #[inline] pub unsafe fn EnumDesktopsA(hwinsta: Option, lpenumfunc: DESKTOPENUMPROCA, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnumDesktopsA(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumDesktopsA(core::mem::transmute(hwinsta.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumDesktopsA(core::mem::transmute(hwinsta.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumDesktopsW(hwinsta: Option, lpenumfunc: DESKTOPENUMPROCW, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnumDesktopsW(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumDesktopsW(core::mem::transmute(hwinsta.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumDesktopsW(core::mem::transmute(hwinsta.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumWindowStationsA(lpenumfunc: WINSTAENUMPROCA, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnumWindowStationsA(lpenumfunc : WINSTAENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumWindowStationsA(core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumWindowStationsA(lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumWindowStationsW(lpenumfunc: WINSTAENUMPROCW, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnumWindowStationsW(lpenumfunc : WINSTAENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumWindowStationsW(core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumWindowStationsW(lpenumfunc, lparam).ok() } #[inline] pub unsafe fn GetProcessWindowStation() -> windows_core::Result { @@ -127,18 +127,18 @@ pub unsafe fn GetProcessWindowStation() -> windows_core::Result { #[inline] pub unsafe fn GetThreadDesktop(dwthreadid: u32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetThreadDesktop(dwthreadid : u32) -> HDESK); - let result__ = GetThreadDesktop(core::mem::transmute(dwthreadid)); + let result__ = GetThreadDesktop(dwthreadid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetUserObjectInformationA(hobj: super::super::Foundation::HANDLE, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: Option<*mut core::ffi::c_void>, nlength: u32, lpnlengthneeded: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetUserObjectInformationA(core::mem::transmute(hobj), core::mem::transmute(nindex), core::mem::transmute(pvinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded.unwrap_or(core::mem::zeroed()))).ok() + GetUserObjectInformationA(hobj, nindex, core::mem::transmute(pvinfo.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetUserObjectInformationW(hobj: super::super::Foundation::HANDLE, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: Option<*mut core::ffi::c_void>, nlength: u32, lpnlengthneeded: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetUserObjectInformationW(core::mem::transmute(hobj), core::mem::transmute(nindex), core::mem::transmute(pvinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(nlength), core::mem::transmute(lpnlengthneeded.unwrap_or(core::mem::zeroed()))).ok() + GetUserObjectInformationW(hobj, nindex, core::mem::transmute(pvinfo.unwrap_or(core::mem::zeroed())), nlength, core::mem::transmute(lpnlengthneeded.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn OpenDesktopA(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, finherit: bool, dwdesiredaccess: u32) -> windows_core::Result @@ -146,7 +146,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OpenDesktopA(lpszdesktop : windows_core::PCSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HDESK); - let result__ = OpenDesktopA(lpszdesktop.param().abi(), core::mem::transmute(dwflags), finherit.into(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenDesktopA(lpszdesktop.param().abi(), dwflags, finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -155,13 +155,13 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OpenDesktopW(lpszdesktop : windows_core::PCWSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HDESK); - let result__ = OpenDesktopW(lpszdesktop.param().abi(), core::mem::transmute(dwflags), finherit.into(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenDesktopW(lpszdesktop.param().abi(), dwflags, finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenInputDesktop(dwflags: DESKTOP_CONTROL_FLAGS, finherit: bool, dwdesiredaccess: DESKTOP_ACCESS_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn OpenInputDesktop(dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : DESKTOP_ACCESS_FLAGS) -> HDESK); - let result__ = OpenInputDesktop(core::mem::transmute(dwflags), finherit.into(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenInputDesktop(dwflags, finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -170,7 +170,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OpenWindowStationA(lpszwinsta : windows_core::PCSTR, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HWINSTA); - let result__ = OpenWindowStationA(lpszwinsta.param().abi(), finherit.into(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenWindowStationA(lpszwinsta.param().abi(), finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -179,33 +179,33 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OpenWindowStationW(lpszwinsta : windows_core::PCWSTR, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HWINSTA); - let result__ = OpenWindowStationW(lpszwinsta.param().abi(), finherit.into(), core::mem::transmute(dwdesiredaccess)); + let result__ = OpenWindowStationW(lpszwinsta.param().abi(), finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetProcessWindowStation(hwinsta: HWINSTA) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetProcessWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL); - SetProcessWindowStation(core::mem::transmute(hwinsta)).ok() + SetProcessWindowStation(hwinsta).ok() } #[inline] pub unsafe fn SetThreadDesktop(hdesktop: HDESK) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetThreadDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); - SetThreadDesktop(core::mem::transmute(hdesktop)).ok() + SetThreadDesktop(hdesktop).ok() } #[inline] pub unsafe fn SetUserObjectInformationA(hobj: super::super::Foundation::HANDLE, nindex: i32, pvinfo: *const core::ffi::c_void, nlength: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const core::ffi::c_void, nlength : u32) -> super::super::Foundation:: BOOL); - SetUserObjectInformationA(core::mem::transmute(hobj), core::mem::transmute(nindex), core::mem::transmute(pvinfo), core::mem::transmute(nlength)).ok() + SetUserObjectInformationA(hobj, nindex, pvinfo, nlength).ok() } #[inline] pub unsafe fn SetUserObjectInformationW(hobj: super::super::Foundation::HANDLE, nindex: i32, pvinfo: *const core::ffi::c_void, nlength: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const core::ffi::c_void, nlength : u32) -> super::super::Foundation:: BOOL); - SetUserObjectInformationW(core::mem::transmute(hobj), core::mem::transmute(nindex), core::mem::transmute(pvinfo), core::mem::transmute(nlength)).ok() + SetUserObjectInformationW(hobj, nindex, pvinfo, nlength).ok() } #[inline] pub unsafe fn SwitchDesktop(hdesktop: HDESK) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SwitchDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); - SwitchDesktop(core::mem::transmute(hdesktop)).ok() + SwitchDesktop(hdesktop).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs index cf77b3d5c4..b5e1fc1e28 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs @@ -4,7 +4,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslConfigureDistribution(distributionname : windows_core::PCWSTR, defaultuid : u32, wsldistributionflags : WSL_DISTRIBUTION_FLAGS) -> windows_core::HRESULT); - WslConfigureDistribution(distributionname.param().abi(), core::mem::transmute(defaultuid), core::mem::transmute(wsldistributionflags)).ok() + WslConfigureDistribution(distributionname.param().abi(), defaultuid, wsldistributionflags).ok() } #[inline] pub unsafe fn WslGetDistributionConfiguration(distributionname: P0, distributionversion: *mut u32, defaultuid: *mut u32, wsldistributionflags: *mut WSL_DISTRIBUTION_FLAGS, defaultenvironmentvariables: *mut *mut windows_core::PSTR, defaultenvironmentvariablecount: *mut u32) -> windows_core::Result<()> @@ -30,7 +30,7 @@ where { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslLaunch(distributionname : windows_core::PCWSTR, command : windows_core::PCWSTR, usecurrentworkingdirectory : super::super::Foundation:: BOOL, stdin : super::super::Foundation:: HANDLE, stdout : super::super::Foundation:: HANDLE, stderr : super::super::Foundation:: HANDLE, process : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WslLaunch(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.into(), core::mem::transmute(stdin), core::mem::transmute(stdout), core::mem::transmute(stderr), &mut result__).map(|| core::mem::transmute(result__)) + WslLaunch(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.into(), stdin, stdout, stderr, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WslLaunchInteractive(distributionname: P0, command: P1, usecurrentworkingdirectory: bool) -> windows_core::Result diff --git a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs index a94e712f0e..62d2df9a4a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs @@ -9,17 +9,17 @@ where #[inline] pub unsafe fn EnumSystemFirmwareTables(firmwaretableprovidersignature: FIRMWARE_TABLE_PROVIDER, pfirmwaretableenumbuffer: Option<&mut [u8]>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn EnumSystemFirmwareTables(firmwaretableprovidersignature : FIRMWARE_TABLE_PROVIDER, pfirmwaretableenumbuffer : *mut u8, buffersize : u32) -> u32); - EnumSystemFirmwareTables(core::mem::transmute(firmwaretableprovidersignature), core::mem::transmute(pfirmwaretableenumbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfirmwaretableenumbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + EnumSystemFirmwareTables(firmwaretableprovidersignature, core::mem::transmute(pfirmwaretableenumbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfirmwaretableenumbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetComputerNameExA(nametype: COMPUTER_NAME_FORMAT, lpbuffer: Option, nsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - GetComputerNameExA(core::mem::transmute(nametype), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() + GetComputerNameExA(nametype, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() } #[inline] pub unsafe fn GetComputerNameExW(nametype: COMPUTER_NAME_FORMAT, lpbuffer: Option, nsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - GetComputerNameExW(core::mem::transmute(nametype), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() + GetComputerNameExW(nametype, core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() } #[inline] pub unsafe fn GetDeveloperDriveEnablementState() -> DEVELOPER_DRIVE_ENABLEMENT_STATE { @@ -52,7 +52,7 @@ pub unsafe fn GetLogicalProcessorInformation(buffer: Option<*mut SYSTEM_LOGICAL_ #[inline] pub unsafe fn GetLogicalProcessorInformationEx(relationshiptype: LOGICAL_PROCESSOR_RELATIONSHIP, buffer: Option<*mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX>, returnedlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetLogicalProcessorInformationEx(relationshiptype : LOGICAL_PROCESSOR_RELATIONSHIP, buffer : *mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, returnedlength : *mut u32) -> super::super::Foundation:: BOOL); - GetLogicalProcessorInformationEx(core::mem::transmute(relationshiptype), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnedlength)).ok() + GetLogicalProcessorInformationEx(relationshiptype, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnedlength)).ok() } #[inline] pub unsafe fn GetNativeSystemInfo(lpsysteminfo: *mut SYSTEM_INFO) { @@ -77,17 +77,17 @@ pub unsafe fn GetPhysicallyInstalledSystemMemory(totalmemoryinkilobytes: *mut u6 #[inline] pub unsafe fn GetProcessorSystemCycleTime(group: u16, buffer: Option<*mut SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION>, returnedlength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessorSystemCycleTime(group : u16, buffer : *mut SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, returnedlength : *mut u32) -> super::super::Foundation:: BOOL); - GetProcessorSystemCycleTime(core::mem::transmute(group), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnedlength)).ok() + GetProcessorSystemCycleTime(group, core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnedlength)).ok() } #[inline] pub unsafe fn GetProductInfo(dwosmajorversion: u32, dwosminorversion: u32, dwspmajorversion: u32, dwspminorversion: u32, pdwreturnedproducttype: *mut OS_PRODUCT_TYPE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetProductInfo(dwosmajorversion : u32, dwosminorversion : u32, dwspmajorversion : u32, dwspminorversion : u32, pdwreturnedproducttype : *mut OS_PRODUCT_TYPE) -> super::super::Foundation:: BOOL); - GetProductInfo(core::mem::transmute(dwosmajorversion), core::mem::transmute(dwosminorversion), core::mem::transmute(dwspmajorversion), core::mem::transmute(dwspminorversion), core::mem::transmute(pdwreturnedproducttype)) + GetProductInfo(dwosmajorversion, dwosminorversion, dwspmajorversion, dwspminorversion, core::mem::transmute(pdwreturnedproducttype)) } #[inline] pub unsafe fn GetSystemCpuSetInformation(information: Option<*mut SYSTEM_CPU_SET_INFORMATION>, bufferlength: u32, returnedlength: *mut u32, process: Option, flags: Option) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetSystemCpuSetInformation(information : *mut SYSTEM_CPU_SET_INFORMATION, bufferlength : u32, returnedlength : *mut u32, process : super::super::Foundation:: HANDLE, flags : u32) -> super::super::Foundation:: BOOL); - GetSystemCpuSetInformation(core::mem::transmute(information.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(returnedlength), core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) + GetSystemCpuSetInformation(core::mem::transmute(information.unwrap_or(core::mem::zeroed())), bufferlength, core::mem::transmute(returnedlength), core::mem::transmute(process.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetSystemDEPPolicy() -> DEP_SYSTEM_POLICY_TYPE { @@ -107,7 +107,7 @@ pub unsafe fn GetSystemDirectoryW(lpbuffer: Option<&mut [u16]>) -> u32 { #[inline] pub unsafe fn GetSystemFirmwareTable(firmwaretableprovidersignature: FIRMWARE_TABLE_PROVIDER, firmwaretableid: u32, pfirmwaretablebuffer: Option<&mut [u8]>) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetSystemFirmwareTable(firmwaretableprovidersignature : FIRMWARE_TABLE_PROVIDER, firmwaretableid : u32, pfirmwaretablebuffer : *mut u8, buffersize : u32) -> u32); - GetSystemFirmwareTable(core::mem::transmute(firmwaretableprovidersignature), core::mem::transmute(firmwaretableid), core::mem::transmute(pfirmwaretablebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfirmwaretablebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetSystemFirmwareTable(firmwaretableprovidersignature, firmwaretableid, core::mem::transmute(pfirmwaretablebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfirmwaretablebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetSystemInfo(lpsysteminfo: *mut SYSTEM_INFO) { @@ -163,12 +163,12 @@ pub unsafe fn GetSystemWindowsDirectoryW(lpbuffer: Option<&mut [u16]>) -> u32 { #[inline] pub unsafe fn GetSystemWow64Directory2A(lpbuffer: Option<&mut [u8]>, imagefilemachinetype: IMAGE_FILE_MACHINE) -> u32 { windows_targets::link!("api-ms-win-core-wow64-l1-1-1.dll" "system" fn GetSystemWow64Directory2A(lpbuffer : windows_core::PSTR, usize : u32, imagefilemachinetype : IMAGE_FILE_MACHINE) -> u32); - GetSystemWow64Directory2A(core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagefilemachinetype)) + GetSystemWow64Directory2A(core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), imagefilemachinetype) } #[inline] pub unsafe fn GetSystemWow64Directory2W(lpbuffer: Option<&mut [u16]>, imagefilemachinetype: IMAGE_FILE_MACHINE) -> u32 { windows_targets::link!("api-ms-win-core-wow64-l1-1-1.dll" "system" fn GetSystemWow64Directory2W(lpbuffer : windows_core::PWSTR, usize : u32, imagefilemachinetype : IMAGE_FILE_MACHINE) -> u32); - GetSystemWow64Directory2W(core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(imagefilemachinetype)) + GetSystemWow64Directory2W(core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), imagefilemachinetype) } #[inline] pub unsafe fn GetSystemWow64DirectoryA(lpbuffer: Option<&mut [u8]>) -> u32 { @@ -228,13 +228,13 @@ pub unsafe fn GlobalMemoryStatusEx(lpbuffer: *mut MEMORYSTATUSEX) -> windows_cor #[inline] pub unsafe fn IsUserCetAvailableInEnvironment(usercetenvironment: USER_CET_ENVIRONMENT) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsUserCetAvailableInEnvironment(usercetenvironment : USER_CET_ENVIRONMENT) -> super::super::Foundation:: BOOL); - IsUserCetAvailableInEnvironment(core::mem::transmute(usercetenvironment)) + IsUserCetAvailableInEnvironment(usercetenvironment) } #[inline] pub unsafe fn IsWow64GuestMachineSupported(wowguestmachine: IMAGE_FILE_MACHINE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn IsWow64GuestMachineSupported(wowguestmachine : IMAGE_FILE_MACHINE, machineissupported : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - IsWow64GuestMachineSupported(core::mem::transmute(wowguestmachine), &mut result__).map(|| core::mem::transmute(result__)) + IsWow64GuestMachineSupported(wowguestmachine, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtlConvertDeviceFamilyInfoToString(puldevicefamilybuffersize: *mut u32, puldeviceformbuffersize: *mut u32, devicefamily: windows_core::PWSTR, deviceform: windows_core::PWSTR) -> u32 { @@ -249,22 +249,22 @@ pub unsafe fn RtlGetDeviceFamilyInfoEnum(pulluapinfo: Option<*mut u64>, puldevic #[inline] pub unsafe fn RtlGetProductInfo(osmajorversion: u32, osminorversion: u32, spmajorversion: u32, spminorversion: u32, returnedproducttype: *mut u32) -> bool { windows_targets::link!("ntdll.dll" "system" fn RtlGetProductInfo(osmajorversion : u32, osminorversion : u32, spmajorversion : u32, spminorversion : u32, returnedproducttype : *mut u32) -> bool); - RtlGetProductInfo(core::mem::transmute(osmajorversion), core::mem::transmute(osminorversion), core::mem::transmute(spmajorversion), core::mem::transmute(spminorversion), core::mem::transmute(returnedproducttype)) + RtlGetProductInfo(osmajorversion, osminorversion, spmajorversion, spminorversion, core::mem::transmute(returnedproducttype)) } #[inline] pub unsafe fn RtlGetSystemGlobalData(dataid: RTL_SYSTEM_GLOBAL_DATA_ID, buffer: *mut core::ffi::c_void, size: u32) -> u32 { windows_targets::link!("ntdllk.dll" "system" fn RtlGetSystemGlobalData(dataid : RTL_SYSTEM_GLOBAL_DATA_ID, buffer : *mut core::ffi::c_void, size : u32) -> u32); - RtlGetSystemGlobalData(core::mem::transmute(dataid), core::mem::transmute(buffer), core::mem::transmute(size)) + RtlGetSystemGlobalData(dataid, core::mem::transmute(buffer), size) } #[inline] pub unsafe fn RtlOsDeploymentState(flags: u32) -> OS_DEPLOYEMENT_STATE_VALUES { windows_targets::link!("ntdll.dll" "system" fn RtlOsDeploymentState(flags : u32) -> OS_DEPLOYEMENT_STATE_VALUES); - RtlOsDeploymentState(core::mem::transmute(flags)) + RtlOsDeploymentState(flags) } #[inline] pub unsafe fn RtlSwitchedVVI(versioninfo: *const OSVERSIONINFOEXW, typemask: u32, conditionmask: u64) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlSwitchedVVI(versioninfo : *const OSVERSIONINFOEXW, typemask : u32, conditionmask : u64) -> u32); - RtlSwitchedVVI(core::mem::transmute(versioninfo), core::mem::transmute(typemask), core::mem::transmute(conditionmask)) + RtlSwitchedVVI(versioninfo, typemask, conditionmask) } #[inline] pub unsafe fn SetComputerNameA(lpcomputername: P0) -> windows_core::Result<()> @@ -280,7 +280,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameEx2W(nametype : COMPUTER_NAME_FORMAT, flags : u32, lpbuffer : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetComputerNameEx2W(core::mem::transmute(nametype), core::mem::transmute(flags), lpbuffer.param().abi()) + SetComputerNameEx2W(nametype, flags, lpbuffer.param().abi()) } #[inline] pub unsafe fn SetComputerNameExA(nametype: COMPUTER_NAME_FORMAT, lpbuffer: P1) -> windows_core::Result<()> @@ -288,7 +288,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetComputerNameExA(core::mem::transmute(nametype), lpbuffer.param().abi()).ok() + SetComputerNameExA(nametype, lpbuffer.param().abi()).ok() } #[inline] pub unsafe fn SetComputerNameExW(nametype: COMPUTER_NAME_FORMAT, lpbuffer: P1) -> windows_core::Result<()> @@ -296,7 +296,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetComputerNameExW(core::mem::transmute(nametype), lpbuffer.param().abi()).ok() + SetComputerNameExW(nametype, lpbuffer.param().abi()).ok() } #[inline] pub unsafe fn SetComputerNameW(lpcomputername: P0) -> windows_core::Result<()> @@ -309,37 +309,37 @@ where #[inline] pub unsafe fn SetLocalTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetLocalTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - SetLocalTime(core::mem::transmute(lpsystemtime)).ok() + SetLocalTime(lpsystemtime).ok() } #[inline] pub unsafe fn SetSystemTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetSystemTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - SetSystemTime(core::mem::transmute(lpsystemtime)).ok() + SetSystemTime(lpsystemtime).ok() } #[inline] pub unsafe fn SetSystemTimeAdjustment(dwtimeadjustment: u32, btimeadjustmentdisabled: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetSystemTimeAdjustment(dwtimeadjustment : u32, btimeadjustmentdisabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetSystemTimeAdjustment(core::mem::transmute(dwtimeadjustment), btimeadjustmentdisabled.into()).ok() + SetSystemTimeAdjustment(dwtimeadjustment, btimeadjustmentdisabled.into()).ok() } #[inline] pub unsafe fn SetSystemTimeAdjustmentPrecise(dwtimeadjustment: u64, btimeadjustmentdisabled: bool) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-sysinfo-l1-2-4.dll" "system" fn SetSystemTimeAdjustmentPrecise(dwtimeadjustment : u64, btimeadjustmentdisabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetSystemTimeAdjustmentPrecise(core::mem::transmute(dwtimeadjustment), btimeadjustmentdisabled.into()).ok() + SetSystemTimeAdjustmentPrecise(dwtimeadjustment, btimeadjustmentdisabled.into()).ok() } #[inline] pub unsafe fn VerSetConditionMask(conditionmask: u64, typemask: VER_FLAGS, condition: u8) -> u64 { windows_targets::link!("kernel32.dll" "system" fn VerSetConditionMask(conditionmask : u64, typemask : VER_FLAGS, condition : u8) -> u64); - VerSetConditionMask(core::mem::transmute(conditionmask), core::mem::transmute(typemask), core::mem::transmute(condition)) + VerSetConditionMask(conditionmask, typemask, condition) } #[inline] pub unsafe fn VerifyVersionInfoA(lpversioninformation: *mut OSVERSIONINFOEXA, dwtypemask: VER_FLAGS, dwlconditionmask: u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VerifyVersionInfoA(lpversioninformation : *mut OSVERSIONINFOEXA, dwtypemask : VER_FLAGS, dwlconditionmask : u64) -> super::super::Foundation:: BOOL); - VerifyVersionInfoA(core::mem::transmute(lpversioninformation), core::mem::transmute(dwtypemask), core::mem::transmute(dwlconditionmask)).ok() + VerifyVersionInfoA(core::mem::transmute(lpversioninformation), dwtypemask, dwlconditionmask).ok() } #[inline] pub unsafe fn VerifyVersionInfoW(lpversioninformation: *mut OSVERSIONINFOEXW, dwtypemask: VER_FLAGS, dwlconditionmask: u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn VerifyVersionInfoW(lpversioninformation : *mut OSVERSIONINFOEXW, dwtypemask : VER_FLAGS, dwlconditionmask : u64) -> super::super::Foundation:: BOOL); - VerifyVersionInfoW(core::mem::transmute(lpversioninformation), core::mem::transmute(dwtypemask), core::mem::transmute(dwlconditionmask)).ok() + VerifyVersionInfoW(core::mem::transmute(lpversioninformation), dwtypemask, dwlconditionmask).ok() } pub const ACPI: FIRMWARE_TABLE_PROVIDER = FIRMWARE_TABLE_PROVIDER(1094930505u32); #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs index 9c8eb3e7dc..02d4baa4d8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs @@ -93,7 +93,7 @@ impl IActionCollection { } pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -107,7 +107,7 @@ impl IActionCollection { } pub unsafe fn Create(&self, r#type: TASK_ACTION_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Remove(&self, index: &super::Variant::VARIANT) -> windows_core::Result<()> { @@ -378,7 +378,7 @@ impl IDailyTrigger { (windows_core::Interface::vtable(self).DaysInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(pdays)).ok() } pub unsafe fn SetDaysInterval(&self, days: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).SetDaysInterval)(windows_core::Interface::as_raw(self), days).ok() } pub unsafe fn RandomDelay(&self, prandomdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RandomDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(prandomdelay)).ok() @@ -693,10 +693,10 @@ windows_core::imp::define_interface!(IEnumWorkItems, IEnumWorkItems_Vtbl, 0x148b windows_core::imp::interface_hierarchy!(IEnumWorkItems, windows_core::IUnknown); impl IEnumWorkItems { pub unsafe fn Next(&self, celt: u32, rgpwsznames: *mut *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgpwsznames), core::mem::transmute(pceltfetched)) + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgpwsznames), core::mem::transmute(pceltfetched)) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -974,7 +974,7 @@ impl IExecAction2 { (windows_core::Interface::vtable(self).HideAppWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(phideappwindow)).ok() } pub unsafe fn SetHideAppWindow(&self, hideappwindow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHideAppWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hideappwindow)).ok() + (windows_core::Interface::vtable(self).SetHideAppWindow)(windows_core::Interface::as_raw(self), hideappwindow).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1041,13 +1041,13 @@ impl IIdleSettings { (windows_core::Interface::vtable(self).StopOnIdleEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pstop)).ok() } pub unsafe fn SetStopOnIdleEnd(&self, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopOnIdleEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(stop)).ok() + (windows_core::Interface::vtable(self).SetStopOnIdleEnd)(windows_core::Interface::as_raw(self), stop).ok() } pub unsafe fn RestartOnIdle(&self, prestart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestartOnIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(prestart)).ok() } pub unsafe fn SetRestartOnIdle(&self, restart: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRestartOnIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(restart)).ok() + (windows_core::Interface::vtable(self).SetRestartOnIdle)(windows_core::Interface::as_raw(self), restart).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1257,7 +1257,7 @@ impl IMaintenanceSettings { (windows_core::Interface::vtable(self).Deadline)(windows_core::Interface::as_raw(self), core::mem::transmute(target)).ok() } pub unsafe fn SetExclusive(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExclusive)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetExclusive)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Exclusive(&self, target: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Exclusive)(windows_core::Interface::as_raw(self), core::mem::transmute(target)).ok() @@ -1343,25 +1343,25 @@ impl IMonthlyDOWTrigger { (windows_core::Interface::vtable(self).DaysOfWeek)(windows_core::Interface::as_raw(self), core::mem::transmute(pdays)).ok() } pub unsafe fn SetDaysOfWeek(&self, days: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysOfWeek)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).SetDaysOfWeek)(windows_core::Interface::as_raw(self), days).ok() } pub unsafe fn WeeksOfMonth(&self, pweeks: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WeeksOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(pweeks)).ok() } pub unsafe fn SetWeeksOfMonth(&self, weeks: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWeeksOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(weeks)).ok() + (windows_core::Interface::vtable(self).SetWeeksOfMonth)(windows_core::Interface::as_raw(self), weeks).ok() } pub unsafe fn MonthsOfYear(&self, pmonths: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MonthsOfYear)(windows_core::Interface::as_raw(self), core::mem::transmute(pmonths)).ok() } pub unsafe fn SetMonthsOfYear(&self, months: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonthsOfYear)(windows_core::Interface::as_raw(self), core::mem::transmute(months)).ok() + (windows_core::Interface::vtable(self).SetMonthsOfYear)(windows_core::Interface::as_raw(self), months).ok() } pub unsafe fn RunOnLastWeekOfMonth(&self, plastweek: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RunOnLastWeekOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(plastweek)).ok() } pub unsafe fn SetRunOnLastWeekOfMonth(&self, lastweek: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRunOnLastWeekOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(lastweek)).ok() + (windows_core::Interface::vtable(self).SetRunOnLastWeekOfMonth)(windows_core::Interface::as_raw(self), lastweek).ok() } pub unsafe fn RandomDelay(&self, prandomdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RandomDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(prandomdelay)).ok() @@ -1478,19 +1478,19 @@ impl IMonthlyTrigger { (windows_core::Interface::vtable(self).DaysOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(pdays)).ok() } pub unsafe fn SetDaysOfMonth(&self, days: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).SetDaysOfMonth)(windows_core::Interface::as_raw(self), days).ok() } pub unsafe fn MonthsOfYear(&self, pmonths: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MonthsOfYear)(windows_core::Interface::as_raw(self), core::mem::transmute(pmonths)).ok() } pub unsafe fn SetMonthsOfYear(&self, months: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonthsOfYear)(windows_core::Interface::as_raw(self), core::mem::transmute(months)).ok() + (windows_core::Interface::vtable(self).SetMonthsOfYear)(windows_core::Interface::as_raw(self), months).ok() } pub unsafe fn RunOnLastDayOfMonth(&self, plastday: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RunOnLastDayOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(plastday)).ok() } pub unsafe fn SetRunOnLastDayOfMonth(&self, lastday: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRunOnLastDayOfMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(lastday)).ok() + (windows_core::Interface::vtable(self).SetRunOnLastDayOfMonth)(windows_core::Interface::as_raw(self), lastday).ok() } pub unsafe fn RandomDelay(&self, prandomdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RandomDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(prandomdelay)).ok() @@ -1686,7 +1686,7 @@ impl IPrincipal { (windows_core::Interface::vtable(self).LogonType)(windows_core::Interface::as_raw(self), core::mem::transmute(plogon)).ok() } pub unsafe fn SetLogonType(&self, logon: TASK_LOGON_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLogonType)(windows_core::Interface::as_raw(self), core::mem::transmute(logon)).ok() + (windows_core::Interface::vtable(self).SetLogonType)(windows_core::Interface::as_raw(self), logon).ok() } pub unsafe fn GroupId(&self, pgroup: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GroupId)(windows_core::Interface::as_raw(self), core::mem::transmute(pgroup)).ok() @@ -1698,7 +1698,7 @@ impl IPrincipal { (windows_core::Interface::vtable(self).RunLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(prunlevel)).ok() } pub unsafe fn SetRunLevel(&self, runlevel: TASK_RUNLEVEL_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRunLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(runlevel)).ok() + (windows_core::Interface::vtable(self).SetRunLevel)(windows_core::Interface::as_raw(self), runlevel).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1823,13 +1823,13 @@ impl IPrincipal2 { (windows_core::Interface::vtable(self).ProcessTokenSidType)(windows_core::Interface::as_raw(self), core::mem::transmute(pprocesstokensidtype)).ok() } pub unsafe fn SetProcessTokenSidType(&self, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProcessTokenSidType)(windows_core::Interface::as_raw(self), core::mem::transmute(processtokensidtype)).ok() + (windows_core::Interface::vtable(self).SetProcessTokenSidType)(windows_core::Interface::as_raw(self), processtokensidtype).ok() } pub unsafe fn RequiredPrivilegeCount(&self, pcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequiredPrivilegeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcount)).ok() } pub unsafe fn get_RequiredPrivilege(&self, index: i32, pprivilege: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).get_RequiredPrivilege)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pprivilege)).ok() + (windows_core::Interface::vtable(self).get_RequiredPrivilege)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pprivilege)).ok() } pub unsafe fn AddRequiredPrivilege(&self, privilege: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddRequiredPrivilege)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(privilege)).ok() @@ -1897,7 +1897,7 @@ impl IProvideTaskPage { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetPage(&self, tptype: TASKPAGE, fpersistchanges: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPage)(windows_core::Interface::as_raw(self), core::mem::transmute(tptype), fpersistchanges.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPage)(windows_core::Interface::as_raw(self), tptype, fpersistchanges.into(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1963,7 +1963,7 @@ impl IRegisteredTask { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Run(&self, params: &super::Variant::VARIANT) -> windows_core::Result { @@ -1973,11 +1973,11 @@ impl IRegisteredTask { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RunEx(&self, params: &super::Variant::VARIANT, flags: i32, sessionid: i32, user: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RunEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(params), core::mem::transmute(flags), core::mem::transmute(sessionid), core::mem::transmute_copy(user), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RunEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(params), flags, sessionid, core::mem::transmute_copy(user), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInstances(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInstances)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LastRunTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2005,16 +2005,16 @@ impl IRegisteredTask { } pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(securityinformation), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), securityinformation, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetSecurityDescriptor(&self, sddl: &windows_core::BSTR, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sddl), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sddl), flags).ok() } pub unsafe fn Stop(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetRunTimes(&self, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pststart), core::mem::transmute(pstend), core::mem::transmute(pcount), core::mem::transmute(pruntimes)).ok() + (windows_core::Interface::vtable(self).GetRunTimes)(windows_core::Interface::as_raw(self), pststart, pstend, core::mem::transmute(pcount), core::mem::transmute(pruntimes)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2647,7 +2647,7 @@ impl IRepetitionPattern { (windows_core::Interface::vtable(self).StopAtDurationEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pstop)).ok() } pub unsafe fn SetStopAtDurationEnd(&self, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopAtDurationEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(stop)).ok() + (windows_core::Interface::vtable(self).SetStopAtDurationEnd)(windows_core::Interface::as_raw(self), stop).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2967,7 +2967,7 @@ impl IScheduledWorkItem { (windows_core::Interface::vtable(self).CreateTrigger)(windows_core::Interface::as_raw(self), core::mem::transmute(pinewtrigger), core::mem::transmute(pptrigger)).ok() } pub unsafe fn DeleteTrigger(&self, itrigger: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteTrigger)(windows_core::Interface::as_raw(self), core::mem::transmute(itrigger)).ok() + (windows_core::Interface::vtable(self).DeleteTrigger)(windows_core::Interface::as_raw(self), itrigger).ok() } pub unsafe fn GetTriggerCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2975,20 +2975,20 @@ impl IScheduledWorkItem { } pub unsafe fn GetTrigger(&self, itrigger: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTrigger)(windows_core::Interface::as_raw(self), core::mem::transmute(itrigger), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTrigger)(windows_core::Interface::as_raw(self), itrigger, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTriggerString(&self, itrigger: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTriggerString)(windows_core::Interface::as_raw(self), core::mem::transmute(itrigger), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTriggerString)(windows_core::Interface::as_raw(self), itrigger, &mut result__).map(|| result__) } pub unsafe fn GetRunTimes(&self, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRunTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pstbegin), core::mem::transmute(pstend), core::mem::transmute(pcount), core::mem::transmute(rgsttasktimes)).ok() + (windows_core::Interface::vtable(self).GetRunTimes)(windows_core::Interface::as_raw(self), pstbegin, pstend, core::mem::transmute(pcount), core::mem::transmute(rgsttasktimes)).ok() } pub unsafe fn GetNextRunTime(&self, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNextRunTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pstnextrun)).ok() } pub unsafe fn SetIdleWait(&self, widleminutes: u16, wdeadlineminutes: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIdleWait)(windows_core::Interface::as_raw(self), core::mem::transmute(widleminutes), core::mem::transmute(wdeadlineminutes)).ok() + (windows_core::Interface::vtable(self).SetIdleWait)(windows_core::Interface::as_raw(self), widleminutes, wdeadlineminutes).ok() } pub unsafe fn GetIdleWait(&self, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdleWait)(windows_core::Interface::as_raw(self), core::mem::transmute(pwidleminutes), core::mem::transmute(pwdeadlineminutes)).ok() @@ -3000,7 +3000,7 @@ impl IScheduledWorkItem { (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EditWorkItem(&self, hparent: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EditWorkItem)(windows_core::Interface::as_raw(self), core::mem::transmute(hparent), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).EditWorkItem)(windows_core::Interface::as_raw(self), hparent, dwreserved).ok() } pub unsafe fn GetMostRecentRunTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3035,27 +3035,27 @@ impl IScheduledWorkItem { (windows_core::Interface::vtable(self).GetCreator)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWorkItemData(&self, cbdata: u16, rgbdata: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWorkItemData)(windows_core::Interface::as_raw(self), core::mem::transmute(cbdata), core::mem::transmute(rgbdata)).ok() + (windows_core::Interface::vtable(self).SetWorkItemData)(windows_core::Interface::as_raw(self), cbdata, rgbdata).ok() } pub unsafe fn GetWorkItemData(&self, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWorkItemData)(windows_core::Interface::as_raw(self), core::mem::transmute(pcbdata), core::mem::transmute(prgbdata)).ok() } pub unsafe fn SetErrorRetryCount(&self, wretrycount: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorRetryCount)(windows_core::Interface::as_raw(self), core::mem::transmute(wretrycount)).ok() + (windows_core::Interface::vtable(self).SetErrorRetryCount)(windows_core::Interface::as_raw(self), wretrycount).ok() } pub unsafe fn GetErrorRetryCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetErrorRetryCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetErrorRetryInterval(&self, wretryinterval: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetErrorRetryInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(wretryinterval)).ok() + (windows_core::Interface::vtable(self).SetErrorRetryInterval)(windows_core::Interface::as_raw(self), wretryinterval).ok() } pub unsafe fn GetErrorRetryInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetErrorRetryInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3394,7 +3394,7 @@ impl ISessionStateChangeTrigger { (windows_core::Interface::vtable(self).StateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ptype)).ok() } pub unsafe fn SetStateChange(&self, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStateChange)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).SetStateChange)(windows_core::Interface::as_raw(self), r#type).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3575,21 +3575,21 @@ impl ITask { (windows_core::Interface::vtable(self).GetWorkingDirectory)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, dwpriority: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpriority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), dwpriority).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTaskFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTaskFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetTaskFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetTaskFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTaskFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxRunTime(&self, dwmaxruntimems: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxRunTime)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmaxruntimems)).ok() + (windows_core::Interface::vtable(self).SetMaxRunTime)(windows_core::Interface::as_raw(self), dwmaxruntimems).ok() } pub unsafe fn GetMaxRunTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3985,7 +3985,7 @@ impl ITaskFolder { } pub unsafe fn GetFolders(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolders)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolders)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateFolder(&self, subfoldername: &windows_core::BSTR, sddl: &super::Variant::VARIANT) -> windows_core::Result { @@ -3993,7 +3993,7 @@ impl ITaskFolder { (windows_core::Interface::vtable(self).CreateFolder)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(subfoldername), core::mem::transmute_copy(sddl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteFolder(&self, subfoldername: &windows_core::BSTR, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(subfoldername), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(subfoldername), flags).ok() } pub unsafe fn GetTask(&self, path: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4001,15 +4001,15 @@ impl ITaskFolder { } pub unsafe fn GetTasks(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTasks)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTasks)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteTask(&self, name: &windows_core::BSTR, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), flags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RegisterTask(&self, path: &windows_core::BSTR, xmltext: &windows_core::BSTR, flags: i32, userid: &super::Variant::VARIANT, password: &super::Variant::VARIANT, logontype: TASK_LOGON_TYPE, sddl: &super::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterTask)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute_copy(xmltext), core::mem::transmute(flags), core::mem::transmute_copy(userid), core::mem::transmute_copy(password), core::mem::transmute(logontype), core::mem::transmute_copy(sddl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterTask)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute_copy(xmltext), flags, core::mem::transmute_copy(userid), core::mem::transmute_copy(password), logontype, core::mem::transmute_copy(sddl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RegisterTaskDefinition(&self, path: &windows_core::BSTR, pdefinition: P1, flags: i32, userid: &super::Variant::VARIANT, password: &super::Variant::VARIANT, logontype: TASK_LOGON_TYPE, sddl: &super::Variant::VARIANT) -> windows_core::Result @@ -4017,14 +4017,14 @@ impl ITaskFolder { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterTaskDefinition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), pdefinition.param().abi(), core::mem::transmute(flags), core::mem::transmute_copy(userid), core::mem::transmute_copy(password), core::mem::transmute(logontype), core::mem::transmute_copy(sddl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterTaskDefinition)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), pdefinition.param().abi(), flags, core::mem::transmute_copy(userid), core::mem::transmute_copy(password), logontype, core::mem::transmute_copy(sddl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(securityinformation), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), securityinformation, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetSecurityDescriptor(&self, sddl: &windows_core::BSTR, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sddl), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(sddl), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4373,10 +4373,10 @@ windows_core::imp::define_interface!(ITaskHandlerStatus, ITaskHandlerStatus_Vtbl windows_core::imp::interface_hierarchy!(ITaskHandlerStatus, windows_core::IUnknown); impl ITaskHandlerStatus { pub unsafe fn UpdateStatus(&self, percentcomplete: i16, statusmessage: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(percentcomplete), core::mem::transmute_copy(statusmessage)).ok() + (windows_core::Interface::vtable(self).UpdateStatus)(windows_core::Interface::as_raw(self), percentcomplete, core::mem::transmute_copy(statusmessage)).ok() } pub unsafe fn TaskCompleted(&self, taskerrcode: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TaskCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(taskerrcode)).ok() + (windows_core::Interface::vtable(self).TaskCompleted)(windows_core::Interface::as_raw(self), taskerrcode).ok() } } #[repr(C)] @@ -4428,7 +4428,7 @@ impl ITaskNamedValueCollection { } pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4439,7 +4439,7 @@ impl ITaskNamedValueCollection { (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -4623,7 +4623,7 @@ impl ITaskScheduler { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), pwszname.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), pwszname.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, pwszname: P0) -> windows_core::Result<()> where @@ -4636,7 +4636,7 @@ impl ITaskScheduler { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NewWorkItem)(windows_core::Interface::as_raw(self), pwsztaskname.param().abi(), core::mem::transmute(rclsid), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NewWorkItem)(windows_core::Interface::as_raw(self), pwsztaskname.param().abi(), rclsid, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddWorkItem(&self, pwsztaskname: P0, pworkitem: P1) -> windows_core::Result<()> where @@ -4649,7 +4649,7 @@ impl ITaskScheduler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), pwszname.param().abi(), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), pwszname.param().abi(), riid).ok() } } #[repr(C)] @@ -4768,11 +4768,11 @@ impl ITaskService { } pub unsafe fn GetRunningTasks(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningTasks)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRunningTasks)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NewTask(&self, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NewTask)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NewTask)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Connect(&self, servername: &super::Variant::VARIANT, user: &super::Variant::VARIANT, domain: &super::Variant::VARIANT, password: &super::Variant::VARIANT) -> windows_core::Result<()> { @@ -4951,7 +4951,7 @@ impl ITaskSettings { (windows_core::Interface::vtable(self).AllowDemandStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pallowdemandstart)).ok() } pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowDemandStart)(windows_core::Interface::as_raw(self), core::mem::transmute(allowdemandstart)).ok() + (windows_core::Interface::vtable(self).SetAllowDemandStart)(windows_core::Interface::as_raw(self), allowdemandstart).ok() } pub unsafe fn RestartInterval(&self, prestartinterval: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestartInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(prestartinterval)).ok() @@ -4963,37 +4963,37 @@ impl ITaskSettings { (windows_core::Interface::vtable(self).RestartCount)(windows_core::Interface::as_raw(self), core::mem::transmute(prestartcount)).ok() } pub unsafe fn SetRestartCount(&self, restartcount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRestartCount)(windows_core::Interface::as_raw(self), core::mem::transmute(restartcount)).ok() + (windows_core::Interface::vtable(self).SetRestartCount)(windows_core::Interface::as_raw(self), restartcount).ok() } pub unsafe fn MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MultipleInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(ppolicy)).ok() } pub unsafe fn SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMultipleInstances)(windows_core::Interface::as_raw(self), core::mem::transmute(policy)).ok() + (windows_core::Interface::vtable(self).SetMultipleInstances)(windows_core::Interface::as_raw(self), policy).ok() } pub unsafe fn StopIfGoingOnBatteries(&self, pstopifonbatteries: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), core::mem::transmute(pstopifonbatteries)).ok() } pub unsafe fn SetStopIfGoingOnBatteries(&self, stopifonbatteries: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), core::mem::transmute(stopifonbatteries)).ok() + (windows_core::Interface::vtable(self).SetStopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), stopifonbatteries).ok() } pub unsafe fn DisallowStartIfOnBatteries(&self, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), core::mem::transmute(pdisallowstart)).ok() } pub unsafe fn SetDisallowStartIfOnBatteries(&self, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), core::mem::transmute(disallowstart)).ok() + (windows_core::Interface::vtable(self).SetDisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), disallowstart).ok() } pub unsafe fn AllowHardTerminate(&self, pallowhardterminate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AllowHardTerminate)(windows_core::Interface::as_raw(self), core::mem::transmute(pallowhardterminate)).ok() } pub unsafe fn SetAllowHardTerminate(&self, allowhardterminate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowHardTerminate)(windows_core::Interface::as_raw(self), core::mem::transmute(allowhardterminate)).ok() + (windows_core::Interface::vtable(self).SetAllowHardTerminate)(windows_core::Interface::as_raw(self), allowhardterminate).ok() } pub unsafe fn StartWhenAvailable(&self, pstartwhenavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartWhenAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(pstartwhenavailable)).ok() } pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStartWhenAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(startwhenavailable)).ok() + (windows_core::Interface::vtable(self).SetStartWhenAvailable)(windows_core::Interface::as_raw(self), startwhenavailable).ok() } pub unsafe fn XmlText(&self, ptext: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).XmlText)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext)).ok() @@ -5005,7 +5005,7 @@ impl ITaskSettings { (windows_core::Interface::vtable(self).RunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(prunonlyifnetworkavailable)).ok() } pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(runonlyifnetworkavailable)).ok() + (windows_core::Interface::vtable(self).SetRunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), runonlyifnetworkavailable).ok() } pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(pexecutiontimelimit)).ok() @@ -5017,7 +5017,7 @@ impl ITaskSettings { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), core::mem::transmute(penabled)).ok() } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteExpiredTaskAfter)(windows_core::Interface::as_raw(self), core::mem::transmute(pexpirationdelay)).ok() @@ -5029,19 +5029,19 @@ impl ITaskSettings { (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), core::mem::transmute(ppriority)).ok() } pub unsafe fn SetPriority(&self, priority: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(priority)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), priority).ok() } pub unsafe fn Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Compatibility)(windows_core::Interface::as_raw(self), core::mem::transmute(pcompatlevel)).ok() } pub unsafe fn SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompatibility)(windows_core::Interface::as_raw(self), core::mem::transmute(compatlevel)).ok() + (windows_core::Interface::vtable(self).SetCompatibility)(windows_core::Interface::as_raw(self), compatlevel).ok() } pub unsafe fn Hidden(&self, phidden: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Hidden)(windows_core::Interface::as_raw(self), core::mem::transmute(phidden)).ok() } pub unsafe fn SetHidden(&self, hidden: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), core::mem::transmute(hidden)).ok() + (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), hidden).ok() } pub unsafe fn IdleSettings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5057,13 +5057,13 @@ impl ITaskSettings { (windows_core::Interface::vtable(self).RunOnlyIfIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(prunonlyifidle)).ok() } pub unsafe fn SetRunOnlyIfIdle(&self, runonlyifidle: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRunOnlyIfIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(runonlyifidle)).ok() + (windows_core::Interface::vtable(self).SetRunOnlyIfIdle)(windows_core::Interface::as_raw(self), runonlyifidle).ok() } pub unsafe fn WakeToRun(&self, pwake: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WakeToRun)(windows_core::Interface::as_raw(self), core::mem::transmute(pwake)).ok() } pub unsafe fn SetWakeToRun(&self, wake: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWakeToRun)(windows_core::Interface::as_raw(self), core::mem::transmute(wake)).ok() + (windows_core::Interface::vtable(self).SetWakeToRun)(windows_core::Interface::as_raw(self), wake).ok() } pub unsafe fn NetworkSettings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5406,13 +5406,13 @@ impl ITaskSettings2 { (windows_core::Interface::vtable(self).DisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pdisallowstart)).ok() } pub unsafe fn SetDisallowStartOnRemoteAppSession(&self, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), core::mem::transmute(disallowstart)).ok() + (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), disallowstart).ok() } pub unsafe fn UseUnifiedSchedulingEngine(&self, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), core::mem::transmute(puseunifiedengine)).ok() } pub unsafe fn SetUseUnifiedSchedulingEngine(&self, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), core::mem::transmute(useunifiedengine)).ok() + (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), useunifiedengine).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5481,13 +5481,13 @@ impl ITaskSettings3 { (windows_core::Interface::vtable(self).DisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pdisallowstart)).ok() } pub unsafe fn SetDisallowStartOnRemoteAppSession(&self, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), core::mem::transmute(disallowstart)).ok() + (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), disallowstart).ok() } pub unsafe fn UseUnifiedSchedulingEngine(&self, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), core::mem::transmute(puseunifiedengine)).ok() } pub unsafe fn SetUseUnifiedSchedulingEngine(&self, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), core::mem::transmute(useunifiedengine)).ok() + (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), useunifiedengine).ok() } pub unsafe fn MaintenanceSettings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5507,7 +5507,7 @@ impl ITaskSettings3 { (windows_core::Interface::vtable(self).Volatile)(windows_core::Interface::as_raw(self), core::mem::transmute(pvolatile)).ok() } pub unsafe fn SetVolatile(&self, volatile: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVolatile)(windows_core::Interface::as_raw(self), core::mem::transmute(volatile)).ok() + (windows_core::Interface::vtable(self).SetVolatile)(windows_core::Interface::as_raw(self), volatile).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5610,7 +5610,7 @@ windows_core::imp::define_interface!(ITaskTrigger, ITaskTrigger_Vtbl, 0x148bd52b windows_core::imp::interface_hierarchy!(ITaskTrigger, windows_core::IUnknown); impl ITaskTrigger { pub unsafe fn SetTrigger(&self, ptrigger: *const TASK_TRIGGER) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrigger)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrigger)).ok() + (windows_core::Interface::vtable(self).SetTrigger)(windows_core::Interface::as_raw(self), ptrigger).ok() } pub unsafe fn GetTrigger(&self, ptrigger: *mut TASK_TRIGGER) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTrigger)(windows_core::Interface::as_raw(self), core::mem::transmute(ptrigger)).ok() @@ -5838,7 +5838,7 @@ impl ITrigger { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), core::mem::transmute(penabled)).ok() } pub unsafe fn SetEnabled(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5977,7 +5977,7 @@ impl ITriggerCollection { } pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5985,7 +5985,7 @@ impl ITriggerCollection { } pub unsafe fn Create(&self, r#type: TASK_TRIGGER_TYPE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Remove(&self, index: &super::Variant::VARIANT) -> windows_core::Result<()> { @@ -6096,13 +6096,13 @@ impl IWeeklyTrigger { (windows_core::Interface::vtable(self).DaysOfWeek)(windows_core::Interface::as_raw(self), core::mem::transmute(pdays)).ok() } pub unsafe fn SetDaysOfWeek(&self, days: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaysOfWeek)(windows_core::Interface::as_raw(self), core::mem::transmute(days)).ok() + (windows_core::Interface::vtable(self).SetDaysOfWeek)(windows_core::Interface::as_raw(self), days).ok() } pub unsafe fn WeeksInterval(&self, pweeks: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WeeksInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(pweeks)).ok() } pub unsafe fn SetWeeksInterval(&self, weeks: i16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWeeksInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(weeks)).ok() + (windows_core::Interface::vtable(self).SetWeeksInterval)(windows_core::Interface::as_raw(self), weeks).ok() } pub unsafe fn RandomDelay(&self, prandomdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RandomDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(prandomdelay)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs index a57e4fe2fa..811282ab59 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -12,33 +12,33 @@ pub unsafe fn AcquireSRWLockShared(srwlock: *mut SRWLOCK) { #[inline] pub unsafe fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, integritylabel: super::super::Security::PSID) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, integritylabel : super::super::Security:: PSID) -> super::super::Foundation:: BOOL); - AddIntegrityLabelToBoundaryDescriptor(core::mem::transmute(boundarydescriptor), core::mem::transmute(integritylabel)).ok() + AddIntegrityLabelToBoundaryDescriptor(core::mem::transmute(boundarydescriptor), integritylabel).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn AddSIDToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, requiredsid: super::super::Security::PSID) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn AddSIDToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, requiredsid : super::super::Security:: PSID) -> super::super::Foundation:: BOOL); - AddSIDToBoundaryDescriptor(core::mem::transmute(boundarydescriptor), core::mem::transmute(requiredsid)).ok() + AddSIDToBoundaryDescriptor(core::mem::transmute(boundarydescriptor), requiredsid).ok() } #[inline] pub unsafe fn AttachThreadInput(idattach: u32, idattachto: u32, fattach: bool) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn AttachThreadInput(idattach : u32, idattachto : u32, fattach : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AttachThreadInput(core::mem::transmute(idattach), core::mem::transmute(idattachto), fattach.into()) + AttachThreadInput(idattach, idattachto, fattach.into()) } #[inline] pub unsafe fn AvQuerySystemResponsiveness(avrthandle: super::super::Foundation::HANDLE, systemresponsivenessvalue: *mut u32) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvQuerySystemResponsiveness(avrthandle : super::super::Foundation:: HANDLE, systemresponsivenessvalue : *mut u32) -> super::super::Foundation:: BOOL); - AvQuerySystemResponsiveness(core::mem::transmute(avrthandle), core::mem::transmute(systemresponsivenessvalue)).ok() + AvQuerySystemResponsiveness(avrthandle, core::mem::transmute(systemresponsivenessvalue)).ok() } #[inline] pub unsafe fn AvRevertMmThreadCharacteristics(avrthandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvRevertMmThreadCharacteristics(avrthandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRevertMmThreadCharacteristics(core::mem::transmute(avrthandle)).ok() + AvRevertMmThreadCharacteristics(avrthandle).ok() } #[inline] pub unsafe fn AvRtCreateThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut windows_core::GUID, timeout: Option<*const i64>) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroup(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64) -> super::super::Foundation:: BOOL); - AvRtCreateThreadOrderingGroup(core::mem::transmute(context), core::mem::transmute(period), core::mem::transmute(threadorderingguid), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))).ok() + AvRtCreateThreadOrderingGroup(core::mem::transmute(context), period, core::mem::transmute(threadorderingguid), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn AvRtCreateThreadOrderingGroupExA(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut windows_core::GUID, timeout: Option<*const i64>, taskname: P4) -> windows_core::Result<()> @@ -46,7 +46,7 @@ where P4: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroupExA(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64, taskname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AvRtCreateThreadOrderingGroupExA(core::mem::transmute(context), core::mem::transmute(period), core::mem::transmute(threadorderingguid), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), taskname.param().abi()).ok() + AvRtCreateThreadOrderingGroupExA(core::mem::transmute(context), period, core::mem::transmute(threadorderingguid), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), taskname.param().abi()).ok() } #[inline] pub unsafe fn AvRtCreateThreadOrderingGroupExW(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut windows_core::GUID, timeout: Option<*const i64>, taskname: P4) -> windows_core::Result<()> @@ -54,27 +54,27 @@ where P4: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroupExW(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64, taskname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AvRtCreateThreadOrderingGroupExW(core::mem::transmute(context), core::mem::transmute(period), core::mem::transmute(threadorderingguid), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), taskname.param().abi()).ok() + AvRtCreateThreadOrderingGroupExW(core::mem::transmute(context), period, core::mem::transmute(threadorderingguid), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), taskname.param().abi()).ok() } #[inline] pub unsafe fn AvRtDeleteThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvRtDeleteThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRtDeleteThreadOrderingGroup(core::mem::transmute(context)).ok() + AvRtDeleteThreadOrderingGroup(context).ok() } #[inline] pub unsafe fn AvRtJoinThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, threadorderingguid: *const windows_core::GUID, before: bool) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvRtJoinThreadOrderingGroup(context : *mut super::super::Foundation:: HANDLE, threadorderingguid : *const windows_core::GUID, before : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AvRtJoinThreadOrderingGroup(core::mem::transmute(context), core::mem::transmute(threadorderingguid), before.into()).ok() + AvRtJoinThreadOrderingGroup(core::mem::transmute(context), threadorderingguid, before.into()).ok() } #[inline] pub unsafe fn AvRtLeaveThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvRtLeaveThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRtLeaveThreadOrderingGroup(core::mem::transmute(context)).ok() + AvRtLeaveThreadOrderingGroup(context).ok() } #[inline] pub unsafe fn AvRtWaitOnThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvRtWaitOnThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRtWaitOnThreadOrderingGroup(core::mem::transmute(context)).ok() + AvRtWaitOnThreadOrderingGroup(context).ok() } #[inline] pub unsafe fn AvSetMmMaxThreadCharacteristicsA(firsttask: P0, secondtask: P1, taskindex: *mut u32) -> windows_core::Result @@ -117,72 +117,72 @@ where #[inline] pub unsafe fn AvSetMmThreadPriority(avrthandle: super::super::Foundation::HANDLE, priority: AVRT_PRIORITY) -> windows_core::Result<()> { windows_targets::link!("avrt.dll" "system" fn AvSetMmThreadPriority(avrthandle : super::super::Foundation:: HANDLE, priority : AVRT_PRIORITY) -> super::super::Foundation:: BOOL); - AvSetMmThreadPriority(core::mem::transmute(avrthandle), core::mem::transmute(priority)).ok() + AvSetMmThreadPriority(avrthandle, priority).ok() } #[inline] pub unsafe fn CallbackMayRunLong(pci: PTP_CALLBACK_INSTANCE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn CallbackMayRunLong(pci : PTP_CALLBACK_INSTANCE) -> super::super::Foundation:: BOOL); - CallbackMayRunLong(core::mem::transmute(pci)) + CallbackMayRunLong(pci) } #[inline] pub unsafe fn CancelThreadpoolIo(pio: PTP_IO) { windows_targets::link!("kernel32.dll" "system" fn CancelThreadpoolIo(pio : PTP_IO)); - CancelThreadpoolIo(core::mem::transmute(pio)) + CancelThreadpoolIo(pio) } #[inline] pub unsafe fn CancelTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn CancelTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), core::mem::transmute(timer)) + CancelTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), timer) } #[inline] pub unsafe fn CancelWaitableTimer(htimer: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CancelWaitableTimer(htimer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelWaitableTimer(core::mem::transmute(htimer)).ok() + CancelWaitableTimer(htimer).ok() } #[inline] pub unsafe fn ChangeTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ChangeTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, duetime : u32, period : u32) -> super::super::Foundation:: BOOL); - ChangeTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period)).ok() + ChangeTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), core::mem::transmute(timer), duetime, period).ok() } #[inline] pub unsafe fn ClosePrivateNamespace(handle: super::super::Foundation::HANDLE, flags: u32) -> bool { windows_targets::link!("kernel32.dll" "system" fn ClosePrivateNamespace(handle : super::super::Foundation:: HANDLE, flags : u32) -> bool); - ClosePrivateNamespace(core::mem::transmute(handle), core::mem::transmute(flags)) + ClosePrivateNamespace(handle, flags) } #[inline] pub unsafe fn CloseThreadpool(ptpp: PTP_POOL) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpool(ptpp : PTP_POOL)); - CloseThreadpool(core::mem::transmute(ptpp)) + CloseThreadpool(ptpp) } #[inline] pub unsafe fn CloseThreadpoolCleanupGroup(ptpcg: PTP_CLEANUP_GROUP) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroup(ptpcg : PTP_CLEANUP_GROUP)); - CloseThreadpoolCleanupGroup(core::mem::transmute(ptpcg)) + CloseThreadpoolCleanupGroup(ptpcg) } #[inline] pub unsafe fn CloseThreadpoolCleanupGroupMembers(ptpcg: PTP_CLEANUP_GROUP, fcancelpendingcallbacks: bool, pvcleanupcontext: Option<*mut core::ffi::c_void>) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroupMembers(ptpcg : PTP_CLEANUP_GROUP, fcancelpendingcallbacks : super::super::Foundation:: BOOL, pvcleanupcontext : *mut core::ffi::c_void)); - CloseThreadpoolCleanupGroupMembers(core::mem::transmute(ptpcg), fcancelpendingcallbacks.into(), core::mem::transmute(pvcleanupcontext.unwrap_or(core::mem::zeroed()))) + CloseThreadpoolCleanupGroupMembers(ptpcg, fcancelpendingcallbacks.into(), core::mem::transmute(pvcleanupcontext.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CloseThreadpoolIo(pio: PTP_IO) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolIo(pio : PTP_IO)); - CloseThreadpoolIo(core::mem::transmute(pio)) + CloseThreadpoolIo(pio) } #[inline] pub unsafe fn CloseThreadpoolTimer(pti: PTP_TIMER) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolTimer(pti : PTP_TIMER)); - CloseThreadpoolTimer(core::mem::transmute(pti)) + CloseThreadpoolTimer(pti) } #[inline] pub unsafe fn CloseThreadpoolWait(pwa: PTP_WAIT) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolWait(pwa : PTP_WAIT)); - CloseThreadpoolWait(core::mem::transmute(pwa)) + CloseThreadpoolWait(pwa) } #[inline] pub unsafe fn CloseThreadpoolWork(pwk: PTP_WORK) { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolWork(pwk : PTP_WORK)); - CloseThreadpoolWork(core::mem::transmute(pwk)) + CloseThreadpoolWork(pwk) } #[inline] pub unsafe fn ConvertFiberToThread() -> windows_core::Result<()> { @@ -197,7 +197,7 @@ pub unsafe fn ConvertThreadToFiber(lpparameter: Option<*const core::ffi::c_void> #[inline] pub unsafe fn ConvertThreadToFiberEx(lpparameter: Option<*const core::ffi::c_void>, dwflags: u32) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn ConvertThreadToFiberEx(lpparameter : *const core::ffi::c_void, dwflags : u32) -> *mut core::ffi::c_void); - ConvertThreadToFiberEx(core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)) + ConvertThreadToFiberEx(core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), dwflags) } #[inline] pub unsafe fn CreateBoundaryDescriptorA(name: P0, flags: u32) -> windows_core::Result @@ -205,7 +205,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateBoundaryDescriptorA(name : windows_core::PCSTR, flags : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateBoundaryDescriptorA(name.param().abi(), core::mem::transmute(flags)); + let result__ = CreateBoundaryDescriptorA(name.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -214,7 +214,7 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateBoundaryDescriptorW(name : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: HANDLE); - CreateBoundaryDescriptorW(name.param().abi(), core::mem::transmute(flags)) + CreateBoundaryDescriptorW(name.param().abi(), flags) } #[cfg(feature = "Win32_Security")] #[inline] @@ -233,7 +233,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateEventExA(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpname : windows_core::PCSTR, dwflags : CREATE_EVENT, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateEventExA(core::mem::transmute(lpeventattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateEventExA(core::mem::transmute(lpeventattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -243,7 +243,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateEventExW(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpname : windows_core::PCWSTR, dwflags : CREATE_EVENT, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateEventExW(core::mem::transmute(lpeventattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateEventExW(core::mem::transmute(lpeventattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -259,12 +259,12 @@ where #[inline] pub unsafe fn CreateFiber(dwstacksize: usize, lpstartaddress: LPFIBER_START_ROUTINE, lpparameter: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn CreateFiber(dwstacksize : usize, lpstartaddress : LPFIBER_START_ROUTINE, lpparameter : *const core::ffi::c_void) -> *mut core::ffi::c_void); - CreateFiber(core::mem::transmute(dwstacksize), core::mem::transmute(lpstartaddress), core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed()))) + CreateFiber(dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CreateFiberEx(dwstackcommitsize: usize, dwstackreservesize: usize, dwflags: u32, lpstartaddress: LPFIBER_START_ROUTINE, lpparameter: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn CreateFiberEx(dwstackcommitsize : usize, dwstackreservesize : usize, dwflags : u32, lpstartaddress : LPFIBER_START_ROUTINE, lpparameter : *const core::ffi::c_void) -> *mut core::ffi::c_void); - CreateFiberEx(core::mem::transmute(dwstackcommitsize), core::mem::transmute(dwstackreservesize), core::mem::transmute(dwflags), core::mem::transmute(lpstartaddress), core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed()))) + CreateFiberEx(dwstackcommitsize, dwstackreservesize, dwflags, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -283,7 +283,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateMutexExA(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpname : windows_core::PCSTR, dwflags : u32, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateMutexExA(core::mem::transmute(lpmutexattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateMutexExA(core::mem::transmute(lpmutexattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -293,7 +293,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateMutexExW(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpname : windows_core::PCWSTR, dwflags : u32, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateMutexExW(core::mem::transmute(lpmutexattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateMutexExW(core::mem::transmute(lpmutexattributes.unwrap_or(core::mem::zeroed())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -313,7 +313,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreatePrivateNamespaceA(lpprivatenamespaceattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpboundarydescriptor : *const core::ffi::c_void, lpaliasprefix : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreatePrivateNamespaceA(core::mem::transmute(lpprivatenamespaceattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpboundarydescriptor), lpaliasprefix.param().abi()); + let result__ = CreatePrivateNamespaceA(core::mem::transmute(lpprivatenamespaceattributes.unwrap_or(core::mem::zeroed())), lpboundarydescriptor, lpaliasprefix.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -323,7 +323,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreatePrivateNamespaceW(lpprivatenamespaceattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpboundarydescriptor : *const core::ffi::c_void, lpaliasprefix : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - CreatePrivateNamespaceW(core::mem::transmute(lpprivatenamespaceattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpboundarydescriptor), lpaliasprefix.param().abi()) + CreatePrivateNamespaceW(core::mem::transmute(lpprivatenamespaceattributes.unwrap_or(core::mem::zeroed())), lpboundarydescriptor, lpaliasprefix.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -333,19 +333,7 @@ where P7: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateProcessA(lpapplicationname : windows_core::PCSTR, lpcommandline : windows_core::PSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : super::super::Foundation:: BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCSTR, lpstartupinfo : *const STARTUPINFOA, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); - CreateProcessA( - lpapplicationname.param().abi(), - core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpprocessattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), - binherithandles.into(), - core::mem::transmute(dwcreationflags), - core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), - lpcurrentdirectory.param().abi(), - core::mem::transmute(lpstartupinfo), - core::mem::transmute(lpprocessinformation), - ) - .ok() + CreateProcessA(lpapplicationname.param().abi(), core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpprocessattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), binherithandles.into(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), lpstartupinfo, core::mem::transmute(lpprocessinformation)).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -362,10 +350,10 @@ where core::mem::transmute(lpprocessattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), binherithandles.into(), - core::mem::transmute(dwcreationflags), + dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), - core::mem::transmute(lpstartupinfo), + lpstartupinfo, core::mem::transmute(lpprocessinformation), ) .ok() @@ -385,10 +373,10 @@ where core::mem::transmute(lpprocessattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), binherithandles.into(), - core::mem::transmute(dwcreationflags), + dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), - core::mem::transmute(lpstartupinfo), + lpstartupinfo, core::mem::transmute(lpprocessinformation), ) .ok() @@ -401,19 +389,7 @@ where P7: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateProcessW(lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : super::super::Foundation:: BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); - CreateProcessW( - lpapplicationname.param().abi(), - core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpprocessattributes.unwrap_or(core::mem::zeroed())), - core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), - binherithandles.into(), - core::mem::transmute(dwcreationflags), - core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), - lpcurrentdirectory.param().abi(), - core::mem::transmute(lpstartupinfo), - core::mem::transmute(lpprocessinformation), - ) - .ok() + CreateProcessW(lpapplicationname.param().abi(), core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpprocessattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), binherithandles.into(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), lpstartupinfo, core::mem::transmute(lpprocessinformation)).ok() } #[inline] pub unsafe fn CreateProcessWithLogonW(lpusername: P0, lpdomain: P1, lppassword: P2, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: P4, lpcommandline: Option, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P8, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> @@ -425,7 +401,7 @@ where P8: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateProcessWithLogonW(lpusername : windows_core::PCWSTR, lpdomain : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, dwlogonflags : CREATE_PROCESS_LOGON_FLAGS, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); - CreateProcessWithLogonW(lpusername.param().abi(), lpdomain.param().abi(), lppassword.param().abi(), core::mem::transmute(dwlogonflags), lpapplicationname.param().abi(), core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationflags), core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), core::mem::transmute(lpstartupinfo), core::mem::transmute(lpprocessinformation)).ok() + CreateProcessWithLogonW(lpusername.param().abi(), lpdomain.param().abi(), lppassword.param().abi(), dwlogonflags, lpapplicationname.param().abi(), core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), lpstartupinfo, core::mem::transmute(lpprocessinformation)).ok() } #[inline] pub unsafe fn CreateProcessWithTokenW(htoken: super::super::Foundation::HANDLE, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: P2, lpcommandline: Option, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P6, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> @@ -434,20 +410,20 @@ where P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateProcessWithTokenW(htoken : super::super::Foundation:: HANDLE, dwlogonflags : CREATE_PROCESS_LOGON_FLAGS, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); - CreateProcessWithTokenW(core::mem::transmute(htoken), core::mem::transmute(dwlogonflags), lpapplicationname.param().abi(), core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationflags), core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), core::mem::transmute(lpstartupinfo), core::mem::transmute(lpprocessinformation)).ok() + CreateProcessWithTokenW(htoken, dwlogonflags, lpapplicationname.param().abi(), core::mem::transmute(lpcommandline.unwrap_or(core::mem::zeroed())), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(core::mem::zeroed())), lpcurrentdirectory.param().abi(), lpstartupinfo, core::mem::transmute(lpprocessinformation)).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateRemoteThread(hprocess: super::super::Foundation::HANDLE, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: Option<*const core::ffi::c_void>, dwcreationflags: u32, lpthreadid: Option<*mut u32>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateRemoteThread(hprocess : super::super::Foundation:: HANDLE, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwstacksize : usize, lpstartaddress : LPTHREAD_START_ROUTINE, lpparameter : *const core::ffi::c_void, dwcreationflags : u32, lpthreadid : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateRemoteThread(core::mem::transmute(hprocess), core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstacksize), core::mem::transmute(lpstartaddress), core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationflags), core::mem::transmute(lpthreadid.unwrap_or(core::mem::zeroed()))); + let result__ = CreateRemoteThread(hprocess, core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), dwcreationflags, core::mem::transmute(lpthreadid.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateRemoteThreadEx(hprocess: super::super::Foundation::HANDLE, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: Option<*const core::ffi::c_void>, dwcreationflags: u32, lpattributelist: Option, lpthreadid: Option<*mut u32>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateRemoteThreadEx(hprocess : super::super::Foundation:: HANDLE, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwstacksize : usize, lpstartaddress : LPTHREAD_START_ROUTINE, lpparameter : *const core::ffi::c_void, dwcreationflags : u32, lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, lpthreadid : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateRemoteThreadEx(core::mem::transmute(hprocess), core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstacksize), core::mem::transmute(lpstartaddress), core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationflags), core::mem::transmute(lpattributelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpthreadid.unwrap_or(core::mem::zeroed()))); + let result__ = CreateRemoteThreadEx(hprocess, core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), dwcreationflags, core::mem::transmute(lpattributelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpthreadid.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -457,7 +433,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSemaphoreA(lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, linitialcount : i32, lmaximumcount : i32, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateSemaphoreA(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(linitialcount), core::mem::transmute(lmaximumcount), lpname.param().abi()); + let result__ = CreateSemaphoreA(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), linitialcount, lmaximumcount, lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -467,7 +443,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSemaphoreExA(lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, linitialcount : i32, lmaximumcount : i32, lpname : windows_core::PCSTR, dwflags : u32, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateSemaphoreExA(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(linitialcount), core::mem::transmute(lmaximumcount), lpname.param().abi(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateSemaphoreExA(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), linitialcount, lmaximumcount, lpname.param().abi(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -477,7 +453,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSemaphoreExW(lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, linitialcount : i32, lmaximumcount : i32, lpname : windows_core::PCWSTR, dwflags : u32, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateSemaphoreExW(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(linitialcount), core::mem::transmute(lmaximumcount), lpname.param().abi(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateSemaphoreExW(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), linitialcount, lmaximumcount, lpname.param().abi(), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -487,14 +463,14 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSemaphoreW(lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, linitialcount : i32, lmaximumcount : i32, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateSemaphoreW(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(linitialcount), core::mem::transmute(lmaximumcount), lpname.param().abi()); + let result__ = CreateSemaphoreW(core::mem::transmute(lpsemaphoreattributes.unwrap_or(core::mem::zeroed())), linitialcount, lmaximumcount, lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateThread(lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: Option<*const core::ffi::c_void>, dwcreationflags: THREAD_CREATION_FLAGS, lpthreadid: Option<*mut u32>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateThread(lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwstacksize : usize, lpstartaddress : LPTHREAD_START_ROUTINE, lpparameter : *const core::ffi::c_void, dwcreationflags : THREAD_CREATION_FLAGS, lpthreadid : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateThread(core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstacksize), core::mem::transmute(lpstartaddress), core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcreationflags), core::mem::transmute(lpthreadid.unwrap_or(core::mem::zeroed()))); + let result__ = CreateThread(core::mem::transmute(lpthreadattributes.unwrap_or(core::mem::zeroed())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(core::mem::zeroed())), dwcreationflags, core::mem::transmute(lpthreadid.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -512,25 +488,25 @@ pub unsafe fn CreateThreadpoolCleanupGroup() -> windows_core::Result, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateThreadpoolIo(fl : super::super::Foundation:: HANDLE, pfnio : PTP_WIN32_IO_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> PTP_IO); - let result__ = CreateThreadpoolIo(core::mem::transmute(fl), core::mem::transmute(pfnio), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); + let result__ = CreateThreadpoolIo(fl, pfnio, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateThreadpoolTimer(pfnti: PTP_TIMER_CALLBACK, pv: Option<*mut core::ffi::c_void>, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateThreadpoolTimer(pfnti : PTP_TIMER_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> PTP_TIMER); - let result__ = CreateThreadpoolTimer(core::mem::transmute(pfnti), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); + let result__ = CreateThreadpoolTimer(pfnti, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateThreadpoolWait(pfnwa: PTP_WAIT_CALLBACK, pv: Option<*mut core::ffi::c_void>, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateThreadpoolWait(pfnwa : PTP_WAIT_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> PTP_WAIT); - let result__ = CreateThreadpoolWait(core::mem::transmute(pfnwa), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); + let result__ = CreateThreadpoolWait(pfnwa, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateThreadpoolWork(pfnwk: PTP_WORK_CALLBACK, pv: Option<*mut core::ffi::c_void>, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn CreateThreadpoolWork(pfnwk : PTP_WORK_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> PTP_WORK); - let result__ = CreateThreadpoolWork(core::mem::transmute(pfnwk), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); + let result__ = CreateThreadpoolWork(pfnwk, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -542,7 +518,7 @@ pub unsafe fn CreateTimerQueue() -> windows_core::Result, callback: WAITORTIMERCALLBACK, parameter: Option<*const core::ffi::c_void>, duetime: u32, period: u32, flags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn CreateTimerQueueTimer(phnewtimer : *mut super::super::Foundation:: HANDLE, timerqueue : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, parameter : *const core::ffi::c_void, duetime : u32, period : u32, flags : WORKER_THREAD_FLAGS) -> super::super::Foundation:: BOOL); - CreateTimerQueueTimer(core::mem::transmute(phnewtimer), core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(flags)).ok() + CreateTimerQueueTimer(core::mem::transmute(phnewtimer), core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), callback, core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), duetime, period, flags).ok() } #[inline] pub unsafe fn CreateUmsCompletionList(umscompletionlist: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -570,7 +546,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerExA(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lptimername : windows_core::PCSTR, dwflags : u32, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - CreateWaitableTimerExA(core::mem::transmute(lptimerattributes.unwrap_or(core::mem::zeroed())), lptimername.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess)) + CreateWaitableTimerExA(core::mem::transmute(lptimerattributes.unwrap_or(core::mem::zeroed())), lptimername.param().abi(), dwflags, dwdesiredaccess) } #[cfg(feature = "Win32_Security")] #[inline] @@ -579,7 +555,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerExW(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lptimername : windows_core::PCWSTR, dwflags : u32, dwdesiredaccess : u32) -> super::super::Foundation:: HANDLE); - let result__ = CreateWaitableTimerExW(core::mem::transmute(lptimerattributes.unwrap_or(core::mem::zeroed())), lptimername.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwdesiredaccess)); + let result__ = CreateWaitableTimerExW(core::mem::transmute(lptimerattributes.unwrap_or(core::mem::zeroed())), lptimername.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -595,7 +571,7 @@ where #[inline] pub unsafe fn DeleteBoundaryDescriptor(boundarydescriptor: super::super::Foundation::HANDLE) { windows_targets::link!("kernel32.dll" "system" fn DeleteBoundaryDescriptor(boundarydescriptor : super::super::Foundation:: HANDLE)); - DeleteBoundaryDescriptor(core::mem::transmute(boundarydescriptor)) + DeleteBoundaryDescriptor(boundarydescriptor) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -606,7 +582,7 @@ pub unsafe fn DeleteCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) { #[inline] pub unsafe fn DeleteFiber(lpfiber: *const core::ffi::c_void) { windows_targets::link!("kernel32.dll" "system" fn DeleteFiber(lpfiber : *const core::ffi::c_void)); - DeleteFiber(core::mem::transmute(lpfiber)) + DeleteFiber(lpfiber) } #[inline] pub unsafe fn DeleteProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST) { @@ -621,37 +597,37 @@ pub unsafe fn DeleteSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRI #[inline] pub unsafe fn DeleteTimerQueue(timerqueue: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueue(timerqueue : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteTimerQueue(core::mem::transmute(timerqueue)).ok() + DeleteTimerQueue(timerqueue).ok() } #[inline] pub unsafe fn DeleteTimerQueueEx(timerqueue: super::super::Foundation::HANDLE, completionevent: Option) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueEx(timerqueue : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteTimerQueueEx(core::mem::transmute(timerqueue), core::mem::transmute(completionevent.unwrap_or(core::mem::zeroed()))).ok() + DeleteTimerQueueEx(timerqueue, core::mem::transmute(completionevent.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DeleteTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE, completionevent: Option) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), core::mem::transmute(timer), core::mem::transmute(completionevent.unwrap_or(core::mem::zeroed()))).ok() + DeleteTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), timer, core::mem::transmute(completionevent.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DeleteUmsCompletionList(umscompletionlist: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeleteUmsCompletionList(umscompletionlist : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DeleteUmsCompletionList(core::mem::transmute(umscompletionlist)).ok() + DeleteUmsCompletionList(umscompletionlist).ok() } #[inline] pub unsafe fn DeleteUmsThreadContext(umsthread: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DeleteUmsThreadContext(umsthread : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DeleteUmsThreadContext(core::mem::transmute(umsthread)).ok() + DeleteUmsThreadContext(umsthread).ok() } #[inline] pub unsafe fn DequeueUmsCompletionListItems(umscompletionlist: *const core::ffi::c_void, waittimeout: u32, umsthreadlist: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DequeueUmsCompletionListItems(umscompletionlist : *const core::ffi::c_void, waittimeout : u32, umsthreadlist : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - DequeueUmsCompletionListItems(core::mem::transmute(umscompletionlist), core::mem::transmute(waittimeout), core::mem::transmute(umsthreadlist)).ok() + DequeueUmsCompletionListItems(umscompletionlist, waittimeout, core::mem::transmute(umsthreadlist)).ok() } #[inline] pub unsafe fn DisassociateCurrentThreadFromCallback(pci: PTP_CALLBACK_INSTANCE) { windows_targets::link!("kernel32.dll" "system" fn DisassociateCurrentThreadFromCallback(pci : PTP_CALLBACK_INSTANCE)); - DisassociateCurrentThreadFromCallback(core::mem::transmute(pci)) + DisassociateCurrentThreadFromCallback(pci) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -662,13 +638,13 @@ pub unsafe fn EnterCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) { #[inline] pub unsafe fn EnterSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn EnterSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER, dwflags : u32) -> super::super::Foundation:: BOOL); - EnterSynchronizationBarrier(core::mem::transmute(lpbarrier), core::mem::transmute(dwflags)) + EnterSynchronizationBarrier(core::mem::transmute(lpbarrier), dwflags) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn EnterUmsSchedulingMode(schedulerstartupinfo: *const UMS_SCHEDULER_STARTUP_INFO) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn EnterUmsSchedulingMode(schedulerstartupinfo : *const UMS_SCHEDULER_STARTUP_INFO) -> super::super::Foundation:: BOOL); - EnterUmsSchedulingMode(core::mem::transmute(schedulerstartupinfo)).ok() + EnterUmsSchedulingMode(schedulerstartupinfo).ok() } #[inline] pub unsafe fn ExecuteUmsThread(umsthread: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -678,12 +654,12 @@ pub unsafe fn ExecuteUmsThread(umsthread: *mut core::ffi::c_void) -> windows_cor #[inline] pub unsafe fn ExitProcess(uexitcode: u32) -> ! { windows_targets::link!("kernel32.dll" "system" fn ExitProcess(uexitcode : u32) -> !); - ExitProcess(core::mem::transmute(uexitcode)) + ExitProcess(uexitcode) } #[inline] pub unsafe fn ExitThread(dwexitcode: u32) -> ! { windows_targets::link!("kernel32.dll" "system" fn ExitThread(dwexitcode : u32) -> !); - ExitThread(core::mem::transmute(dwexitcode)) + ExitThread(dwexitcode) } #[inline] pub unsafe fn FlsAlloc(lpcallback: Option) -> u32 { @@ -693,17 +669,17 @@ pub unsafe fn FlsAlloc(lpcallback: Option) -> u32 { #[inline] pub unsafe fn FlsFree(dwflsindex: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FlsFree(dwflsindex : u32) -> super::super::Foundation:: BOOL); - FlsFree(core::mem::transmute(dwflsindex)).ok() + FlsFree(dwflsindex).ok() } #[inline] pub unsafe fn FlsGetValue(dwflsindex: u32) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn FlsGetValue(dwflsindex : u32) -> *mut core::ffi::c_void); - FlsGetValue(core::mem::transmute(dwflsindex)) + FlsGetValue(dwflsindex) } #[inline] pub unsafe fn FlsSetValue(dwflsindex: u32, lpflsdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FlsSetValue(dwflsindex : u32, lpflsdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - FlsSetValue(core::mem::transmute(dwflsindex), core::mem::transmute(lpflsdata.unwrap_or(core::mem::zeroed()))).ok() + FlsSetValue(dwflsindex, core::mem::transmute(lpflsdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn FlushProcessWriteBuffers() { @@ -713,12 +689,12 @@ pub unsafe fn FlushProcessWriteBuffers() { #[inline] pub unsafe fn FreeLibraryWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, r#mod: super::super::Foundation::HMODULE) { windows_targets::link!("kernel32.dll" "system" fn FreeLibraryWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, r#mod : super::super::Foundation:: HMODULE)); - FreeLibraryWhenCallbackReturns(core::mem::transmute(pci), core::mem::transmute(r#mod)) + FreeLibraryWhenCallbackReturns(pci, r#mod) } #[inline] pub unsafe fn GetActiveProcessorCount(groupnumber: u16) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetActiveProcessorCount(groupnumber : u16) -> u32); - GetActiveProcessorCount(core::mem::transmute(groupnumber)) + GetActiveProcessorCount(groupnumber) } #[inline] pub unsafe fn GetActiveProcessorGroupCount() -> u16 { @@ -771,28 +747,28 @@ pub unsafe fn GetCurrentUmsThread() -> *mut core::ffi::c_void { #[inline] pub unsafe fn GetExitCodeProcess(hprocess: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetExitCodeProcess(hprocess : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> super::super::Foundation:: BOOL); - GetExitCodeProcess(core::mem::transmute(hprocess), core::mem::transmute(lpexitcode)).ok() + GetExitCodeProcess(hprocess, core::mem::transmute(lpexitcode)).ok() } #[inline] pub unsafe fn GetExitCodeThread(hthread: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetExitCodeThread(hthread : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> super::super::Foundation:: BOOL); - GetExitCodeThread(core::mem::transmute(hthread), core::mem::transmute(lpexitcode)).ok() + GetExitCodeThread(hthread, core::mem::transmute(lpexitcode)).ok() } #[inline] pub unsafe fn GetGuiResources(hprocess: super::super::Foundation::HANDLE, uiflags: GET_GUI_RESOURCES_FLAGS) -> u32 { windows_targets::link!("user32.dll" "system" fn GetGuiResources(hprocess : super::super::Foundation:: HANDLE, uiflags : GET_GUI_RESOURCES_FLAGS) -> u32); - GetGuiResources(core::mem::transmute(hprocess), core::mem::transmute(uiflags)) + GetGuiResources(hprocess, uiflags) } #[inline] pub unsafe fn GetMachineTypeAttributes(machine: u16) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn GetMachineTypeAttributes(machine : u16, machinetypeattributes : *mut MACHINE_ATTRIBUTES) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetMachineTypeAttributes(core::mem::transmute(machine), &mut result__).map(|| core::mem::transmute(result__)) + GetMachineTypeAttributes(machine, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetMaximumProcessorCount(groupnumber: u16) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetMaximumProcessorCount(groupnumber : u16) -> u32); - GetMaximumProcessorCount(core::mem::transmute(groupnumber)) + GetMaximumProcessorCount(groupnumber) } #[inline] pub unsafe fn GetMaximumProcessorGroupCount() -> u16 { @@ -807,12 +783,12 @@ pub unsafe fn GetNextUmsListItem(umscontext: *mut core::ffi::c_void) -> *mut cor #[inline] pub unsafe fn GetNumaAvailableMemoryNode(node: u8, availablebytes: *mut u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaAvailableMemoryNode(node : u8, availablebytes : *mut u64) -> super::super::Foundation:: BOOL); - GetNumaAvailableMemoryNode(core::mem::transmute(node), core::mem::transmute(availablebytes)).ok() + GetNumaAvailableMemoryNode(node, core::mem::transmute(availablebytes)).ok() } #[inline] pub unsafe fn GetNumaAvailableMemoryNodeEx(node: u16, availablebytes: *mut u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaAvailableMemoryNodeEx(node : u16, availablebytes : *mut u64) -> super::super::Foundation:: BOOL); - GetNumaAvailableMemoryNodeEx(core::mem::transmute(node), core::mem::transmute(availablebytes)).ok() + GetNumaAvailableMemoryNodeEx(node, core::mem::transmute(availablebytes)).ok() } #[inline] pub unsafe fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> windows_core::Result<()> { @@ -822,116 +798,116 @@ pub unsafe fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> windows_c #[inline] pub unsafe fn GetNumaNodeNumberFromHandle(hfile: super::super::Foundation::HANDLE, nodenumber: *mut u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeNumberFromHandle(hfile : super::super::Foundation:: HANDLE, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); - GetNumaNodeNumberFromHandle(core::mem::transmute(hfile), core::mem::transmute(nodenumber)).ok() + GetNumaNodeNumberFromHandle(hfile, core::mem::transmute(nodenumber)).ok() } #[inline] pub unsafe fn GetNumaNodeProcessorMask(node: u8, processormask: *mut u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMask(node : u8, processormask : *mut u64) -> super::super::Foundation:: BOOL); - GetNumaNodeProcessorMask(core::mem::transmute(node), core::mem::transmute(processormask)).ok() + GetNumaNodeProcessorMask(node, core::mem::transmute(processormask)).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetNumaNodeProcessorMask2(nodenumber: u16, processormasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMask2(nodenumber : u16, processormasks : *mut super::SystemInformation:: GROUP_AFFINITY, processormaskcount : u16, requiredmaskcount : *mut u16) -> super::super::Foundation:: BOOL); - GetNumaNodeProcessorMask2(core::mem::transmute(nodenumber), core::mem::transmute(processormasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), processormasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredmaskcount)) + GetNumaNodeProcessorMask2(nodenumber, core::mem::transmute(processormasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), processormasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredmaskcount)) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetNumaNodeProcessorMaskEx(node: u16, processormask: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMaskEx(node : u16, processormask : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); - GetNumaNodeProcessorMaskEx(core::mem::transmute(node), core::mem::transmute(processormask)) + GetNumaNodeProcessorMaskEx(node, core::mem::transmute(processormask)) } #[inline] pub unsafe fn GetNumaProcessorNode(processor: u8, nodenumber: *mut u8) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaProcessorNode(processor : u8, nodenumber : *mut u8) -> super::super::Foundation:: BOOL); - GetNumaProcessorNode(core::mem::transmute(processor), core::mem::transmute(nodenumber)).ok() + GetNumaProcessorNode(processor, core::mem::transmute(nodenumber)).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetNumaProcessorNodeEx(processor: *const super::Kernel::PROCESSOR_NUMBER, nodenumber: *mut u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaProcessorNodeEx(processor : *const super::Kernel:: PROCESSOR_NUMBER, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); - GetNumaProcessorNodeEx(core::mem::transmute(processor), core::mem::transmute(nodenumber)).ok() + GetNumaProcessorNodeEx(processor, core::mem::transmute(nodenumber)).ok() } #[inline] pub unsafe fn GetNumaProximityNode(proximityid: u32, nodenumber: *mut u8) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetNumaProximityNode(proximityid : u32, nodenumber : *mut u8) -> super::super::Foundation:: BOOL); - GetNumaProximityNode(core::mem::transmute(proximityid), core::mem::transmute(nodenumber)).ok() + GetNumaProximityNode(proximityid, core::mem::transmute(nodenumber)).ok() } #[inline] pub unsafe fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetNumaProximityNodeEx(proximityid : u32, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); - GetNumaProximityNodeEx(core::mem::transmute(proximityid), core::mem::transmute(nodenumber)) + GetNumaProximityNodeEx(proximityid, core::mem::transmute(nodenumber)) } #[inline] pub unsafe fn GetPriorityClass(hprocess: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetPriorityClass(hprocess : super::super::Foundation:: HANDLE) -> u32); - GetPriorityClass(core::mem::transmute(hprocess)) + GetPriorityClass(hprocess) } #[inline] pub unsafe fn GetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, lpprocessaffinitymask: *mut usize, lpsystemaffinitymask: *mut usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, lpprocessaffinitymask : *mut usize, lpsystemaffinitymask : *mut usize) -> super::super::Foundation:: BOOL); - GetProcessAffinityMask(core::mem::transmute(hprocess), core::mem::transmute(lpprocessaffinitymask), core::mem::transmute(lpsystemaffinitymask)).ok() + GetProcessAffinityMask(hprocess, core::mem::transmute(lpprocessaffinitymask), core::mem::transmute(lpsystemaffinitymask)).ok() } #[inline] pub unsafe fn GetProcessDEPPolicy(hprocess: super::super::Foundation::HANDLE, lpflags: *mut u32, lppermanent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessDEPPolicy(hprocess : super::super::Foundation:: HANDLE, lpflags : *mut u32, lppermanent : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetProcessDEPPolicy(core::mem::transmute(hprocess), core::mem::transmute(lpflags), core::mem::transmute(lppermanent)).ok() + GetProcessDEPPolicy(hprocess, core::mem::transmute(lpflags), core::mem::transmute(lppermanent)).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetProcessDefaultCpuSetMasks(process : super::super::Foundation:: HANDLE, cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16, requiredmaskcount : *mut u16) -> super::super::Foundation:: BOOL); - GetProcessDefaultCpuSetMasks(core::mem::transmute(process), core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredmaskcount)) + GetProcessDefaultCpuSetMasks(process, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredmaskcount)) } #[inline] pub unsafe fn GetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *mut u32, cpusetidcount : u32, requiredidcount : *mut u32) -> super::super::Foundation:: BOOL); - GetProcessDefaultCpuSets(core::mem::transmute(process), core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredidcount)) + GetProcessDefaultCpuSets(process, core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredidcount)) } #[inline] pub unsafe fn GetProcessGroupAffinity(hprocess: super::super::Foundation::HANDLE, groupcount: *mut u16, grouparray: *mut u16) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetProcessGroupAffinity(hprocess : super::super::Foundation:: HANDLE, groupcount : *mut u16, grouparray : *mut u16) -> super::super::Foundation:: BOOL); - GetProcessGroupAffinity(core::mem::transmute(hprocess), core::mem::transmute(groupcount), core::mem::transmute(grouparray)) + GetProcessGroupAffinity(hprocess, core::mem::transmute(groupcount), core::mem::transmute(grouparray)) } #[inline] pub unsafe fn GetProcessHandleCount(hprocess: super::super::Foundation::HANDLE, pdwhandlecount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessHandleCount(hprocess : super::super::Foundation:: HANDLE, pdwhandlecount : *mut u32) -> super::super::Foundation:: BOOL); - GetProcessHandleCount(core::mem::transmute(hprocess), core::mem::transmute(pdwhandlecount)).ok() + GetProcessHandleCount(hprocess, core::mem::transmute(pdwhandlecount)).ok() } #[inline] pub unsafe fn GetProcessHandleFromHwnd(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::HANDLE { windows_targets::link!("oleacc.dll" "system" fn GetProcessHandleFromHwnd(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: HANDLE); - GetProcessHandleFromHwnd(core::mem::transmute(hwnd)) + GetProcessHandleFromHwnd(hwnd) } #[inline] pub unsafe fn GetProcessId(process: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetProcessId(process : super::super::Foundation:: HANDLE) -> u32); - GetProcessId(core::mem::transmute(process)) + GetProcessId(process) } #[inline] pub unsafe fn GetProcessIdOfThread(thread: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetProcessIdOfThread(thread : super::super::Foundation:: HANDLE) -> u32); - GetProcessIdOfThread(core::mem::transmute(thread)) + GetProcessIdOfThread(thread) } #[inline] pub unsafe fn GetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *mut core::ffi::c_void, processinformationsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessInformation(hprocess : super::super::Foundation:: HANDLE, processinformationclass : PROCESS_INFORMATION_CLASS, processinformation : *mut core::ffi::c_void, processinformationsize : u32) -> super::super::Foundation:: BOOL); - GetProcessInformation(core::mem::transmute(hprocess), core::mem::transmute(processinformationclass), core::mem::transmute(processinformation), core::mem::transmute(processinformationsize)).ok() + GetProcessInformation(hprocess, processinformationclass, core::mem::transmute(processinformation), processinformationsize).ok() } #[inline] pub unsafe fn GetProcessIoCounters(hprocess: super::super::Foundation::HANDLE, lpiocounters: *mut IO_COUNTERS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessIoCounters(hprocess : super::super::Foundation:: HANDLE, lpiocounters : *mut IO_COUNTERS) -> super::super::Foundation:: BOOL); - GetProcessIoCounters(core::mem::transmute(hprocess), core::mem::transmute(lpiocounters)).ok() + GetProcessIoCounters(hprocess, core::mem::transmute(lpiocounters)).ok() } #[inline] pub unsafe fn GetProcessMitigationPolicy(hprocess: super::super::Foundation::HANDLE, mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *mut core::ffi::c_void, dwlength: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessMitigationPolicy(hprocess : super::super::Foundation:: HANDLE, mitigationpolicy : PROCESS_MITIGATION_POLICY, lpbuffer : *mut core::ffi::c_void, dwlength : usize) -> super::super::Foundation:: BOOL); - GetProcessMitigationPolicy(core::mem::transmute(hprocess), core::mem::transmute(mitigationpolicy), core::mem::transmute(lpbuffer), core::mem::transmute(dwlength)).ok() + GetProcessMitigationPolicy(hprocess, mitigationpolicy, core::mem::transmute(lpbuffer), dwlength).ok() } #[inline] pub unsafe fn GetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetProcessPriorityBoost(core::mem::transmute(hprocess), core::mem::transmute(pdisablepriorityboost)).ok() + GetProcessPriorityBoost(hprocess, core::mem::transmute(pdisablepriorityboost)).ok() } #[inline] pub unsafe fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut u32) -> windows_core::Result<()> { @@ -941,17 +917,17 @@ pub unsafe fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut #[inline] pub unsafe fn GetProcessTimes(hprocess: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessTimes(hprocess : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lpexittime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - GetProcessTimes(core::mem::transmute(hprocess), core::mem::transmute(lpcreationtime), core::mem::transmute(lpexittime), core::mem::transmute(lpkerneltime), core::mem::transmute(lpusertime)).ok() + GetProcessTimes(hprocess, core::mem::transmute(lpcreationtime), core::mem::transmute(lpexittime), core::mem::transmute(lpkerneltime), core::mem::transmute(lpusertime)).ok() } #[inline] pub unsafe fn GetProcessVersion(processid: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetProcessVersion(processid : u32) -> u32); - GetProcessVersion(core::mem::transmute(processid)) + GetProcessVersion(processid) } #[inline] pub unsafe fn GetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize) -> super::super::Foundation:: BOOL); - GetProcessWorkingSetSize(core::mem::transmute(hprocess), core::mem::transmute(lpminimumworkingsetsize), core::mem::transmute(lpmaximumworkingsetsize)).ok() + GetProcessWorkingSetSize(hprocess, core::mem::transmute(lpminimumworkingsetsize), core::mem::transmute(lpmaximumworkingsetsize)).ok() } #[inline] pub unsafe fn GetStartupInfoA(lpstartupinfo: *mut STARTUPINFOA) { @@ -972,85 +948,85 @@ pub unsafe fn GetSystemTimes(lpidletime: Option<*mut super::super::Foundation::F pub unsafe fn GetThreadDescription(hthread: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn GetThreadDescription(hthread : super::super::Foundation:: HANDLE, ppszthreaddescription : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThreadDescription(core::mem::transmute(hthread), &mut result__).map(|| core::mem::transmute(result__)) + GetThreadDescription(hthread, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); - GetThreadGroupAffinity(core::mem::transmute(hthread), core::mem::transmute(groupaffinity)) + GetThreadGroupAffinity(hthread, core::mem::transmute(groupaffinity)) } #[inline] pub unsafe fn GetThreadIOPendingFlag(hthread: super::super::Foundation::HANDLE, lpioispending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadIOPendingFlag(hthread : super::super::Foundation:: HANDLE, lpioispending : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetThreadIOPendingFlag(core::mem::transmute(hthread), core::mem::transmute(lpioispending)).ok() + GetThreadIOPendingFlag(hthread, core::mem::transmute(lpioispending)).ok() } #[inline] pub unsafe fn GetThreadId(thread: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn GetThreadId(thread : super::super::Foundation:: HANDLE) -> u32); - GetThreadId(core::mem::transmute(thread)) + GetThreadId(thread) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> super::super::Foundation:: BOOL); - GetThreadIdealProcessorEx(core::mem::transmute(hthread), core::mem::transmute(lpidealprocessor)).ok() + GetThreadIdealProcessorEx(hthread, core::mem::transmute(lpidealprocessor)).ok() } #[inline] pub unsafe fn GetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *mut core::ffi::c_void, threadinformationsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadInformation(hthread : super::super::Foundation:: HANDLE, threadinformationclass : THREAD_INFORMATION_CLASS, threadinformation : *mut core::ffi::c_void, threadinformationsize : u32) -> super::super::Foundation:: BOOL); - GetThreadInformation(core::mem::transmute(hthread), core::mem::transmute(threadinformationclass), core::mem::transmute(threadinformation), core::mem::transmute(threadinformationsize)).ok() + GetThreadInformation(hthread, threadinformationclass, core::mem::transmute(threadinformation), threadinformationsize).ok() } #[inline] pub unsafe fn GetThreadPriority(hthread: super::super::Foundation::HANDLE) -> i32 { windows_targets::link!("kernel32.dll" "system" fn GetThreadPriority(hthread : super::super::Foundation:: HANDLE) -> i32); - GetThreadPriority(core::mem::transmute(hthread)) + GetThreadPriority(hthread) } #[inline] pub unsafe fn GetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetThreadPriorityBoost(core::mem::transmute(hthread), core::mem::transmute(pdisablepriorityboost)).ok() + GetThreadPriorityBoost(hthread, core::mem::transmute(pdisablepriorityboost)).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectedCpuSetMasks(thread : super::super::Foundation:: HANDLE, cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16, requiredmaskcount : *mut u16) -> super::super::Foundation:: BOOL); - GetThreadSelectedCpuSetMasks(core::mem::transmute(thread), core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredmaskcount)) + GetThreadSelectedCpuSetMasks(thread, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredmaskcount)) } #[inline] pub unsafe fn GetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *mut u32, cpusetidcount : u32, requiredidcount : *mut u32) -> super::super::Foundation:: BOOL); - GetThreadSelectedCpuSets(core::mem::transmute(thread), core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredidcount)) + GetThreadSelectedCpuSets(thread, core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredidcount)) } #[inline] pub unsafe fn GetThreadTimes(hthread: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetThreadTimes(hthread : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lpexittime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - GetThreadTimes(core::mem::transmute(hthread), core::mem::transmute(lpcreationtime), core::mem::transmute(lpexittime), core::mem::transmute(lpkerneltime), core::mem::transmute(lpusertime)).ok() + GetThreadTimes(hthread, core::mem::transmute(lpcreationtime), core::mem::transmute(lpexittime), core::mem::transmute(lpkerneltime), core::mem::transmute(lpusertime)).ok() } #[inline] pub unsafe fn GetUmsCompletionListEvent(umscompletionlist: *const core::ffi::c_void, umscompletionevent: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetUmsCompletionListEvent(umscompletionlist : *const core::ffi::c_void, umscompletionevent : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GetUmsCompletionListEvent(core::mem::transmute(umscompletionlist), core::mem::transmute(umscompletionevent)).ok() + GetUmsCompletionListEvent(umscompletionlist, core::mem::transmute(umscompletionevent)).ok() } #[inline] pub unsafe fn GetUmsSystemThreadInformation(threadhandle: super::super::Foundation::HANDLE, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GetUmsSystemThreadInformation(threadhandle : super::super::Foundation:: HANDLE, systemthreadinfo : *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation:: BOOL); - GetUmsSystemThreadInformation(core::mem::transmute(threadhandle), core::mem::transmute(systemthreadinfo)) + GetUmsSystemThreadInformation(threadhandle, core::mem::transmute(systemthreadinfo)) } #[inline] pub unsafe fn InitOnceBeginInitialize(lpinitonce: *mut INIT_ONCE, dwflags: u32, fpending: *mut super::super::Foundation::BOOL, lpcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitOnceBeginInitialize(lpinitonce : *mut INIT_ONCE, dwflags : u32, fpending : *mut super::super::Foundation:: BOOL, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - InitOnceBeginInitialize(core::mem::transmute(lpinitonce), core::mem::transmute(dwflags), core::mem::transmute(fpending), core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))).ok() + InitOnceBeginInitialize(core::mem::transmute(lpinitonce), dwflags, core::mem::transmute(fpending), core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InitOnceComplete(lpinitonce: *mut INIT_ONCE, dwflags: u32, lpcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitOnceComplete(lpinitonce : *mut INIT_ONCE, dwflags : u32, lpcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - InitOnceComplete(core::mem::transmute(lpinitonce), core::mem::transmute(dwflags), core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))).ok() + InitOnceComplete(core::mem::transmute(lpinitonce), dwflags, core::mem::transmute(lpcontext.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InitOnceExecuteOnce(initonce: *mut INIT_ONCE, initfn: PINIT_ONCE_FN, parameter: Option<*mut core::ffi::c_void>, context: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitOnceExecuteOnce(initonce : *mut INIT_ONCE, initfn : PINIT_ONCE_FN, parameter : *mut core::ffi::c_void, context : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - InitOnceExecuteOnce(core::mem::transmute(initonce), core::mem::transmute(initfn), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() + InitOnceExecuteOnce(core::mem::transmute(initonce), initfn, core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn InitOnceInitialize() -> INIT_ONCE { @@ -1076,18 +1052,18 @@ pub unsafe fn InitializeCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION #[inline] pub unsafe fn InitializeCriticalSectionAndSpinCount(lpcriticalsection: *mut CRITICAL_SECTION, dwspincount: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeCriticalSectionAndSpinCount(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32) -> super::super::Foundation:: BOOL); - InitializeCriticalSectionAndSpinCount(core::mem::transmute(lpcriticalsection), core::mem::transmute(dwspincount)).ok() + InitializeCriticalSectionAndSpinCount(core::mem::transmute(lpcriticalsection), dwspincount).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeCriticalSectionEx(lpcriticalsection: *mut CRITICAL_SECTION, dwspincount: u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeCriticalSectionEx(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32, flags : u32) -> super::super::Foundation:: BOOL); - InitializeCriticalSectionEx(core::mem::transmute(lpcriticalsection), core::mem::transmute(dwspincount), core::mem::transmute(flags)).ok() + InitializeCriticalSectionEx(core::mem::transmute(lpcriticalsection), dwspincount, flags).ok() } #[inline] pub unsafe fn InitializeProcThreadAttributeList(lpattributelist: Option, dwattributecount: u32, dwflags: Option, lpsize: *mut usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeProcThreadAttributeList(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, dwattributecount : u32, dwflags : u32, lpsize : *mut usize) -> super::super::Foundation:: BOOL); - InitializeProcThreadAttributeList(core::mem::transmute(lpattributelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwattributecount), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)).ok() + InitializeProcThreadAttributeList(core::mem::transmute(lpattributelist.unwrap_or(core::mem::zeroed())), dwattributecount, core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpsize)).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -1107,7 +1083,7 @@ pub unsafe fn InitializeSRWLock() -> SRWLOCK { #[inline] pub unsafe fn InitializeSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER, ltotalthreads: i32, lspincount: i32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn InitializeSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER, ltotalthreads : i32, lspincount : i32) -> super::super::Foundation:: BOOL); - InitializeSynchronizationBarrier(core::mem::transmute(lpbarrier), core::mem::transmute(ltotalthreads), core::mem::transmute(lspincount)).ok() + InitializeSynchronizationBarrier(core::mem::transmute(lpbarrier), ltotalthreads, lspincount).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -1131,22 +1107,22 @@ pub unsafe fn InterlockedPushEntrySList(listhead: *mut super::Kernel::SLIST_HEAD #[inline] pub unsafe fn InterlockedPushListSListEx(listhead: *mut super::Kernel::SLIST_HEADER, list: *mut super::Kernel::SLIST_ENTRY, listend: *mut super::Kernel::SLIST_ENTRY, count: u32) -> *mut super::Kernel::SLIST_ENTRY { windows_targets::link!("kernel32.dll" "system" fn InterlockedPushListSListEx(listhead : *mut super::Kernel:: SLIST_HEADER, list : *mut super::Kernel:: SLIST_ENTRY, listend : *mut super::Kernel:: SLIST_ENTRY, count : u32) -> *mut super::Kernel:: SLIST_ENTRY); - InterlockedPushListSListEx(core::mem::transmute(listhead), core::mem::transmute(list), core::mem::transmute(listend), core::mem::transmute(count)) + InterlockedPushListSListEx(core::mem::transmute(listhead), core::mem::transmute(list), core::mem::transmute(listend), count) } #[inline] pub unsafe fn IsImmersiveProcess(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsImmersiveProcess(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - IsImmersiveProcess(core::mem::transmute(hprocess)).ok() + IsImmersiveProcess(hprocess).ok() } #[inline] pub unsafe fn IsProcessCritical(hprocess: super::super::Foundation::HANDLE, critical: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsProcessCritical(hprocess : super::super::Foundation:: HANDLE, critical : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsProcessCritical(core::mem::transmute(hprocess), core::mem::transmute(critical)).ok() + IsProcessCritical(hprocess, core::mem::transmute(critical)).ok() } #[inline] pub unsafe fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsProcessorFeaturePresent(processorfeature : PROCESSOR_FEATURE_ID) -> super::super::Foundation:: BOOL); - IsProcessorFeaturePresent(core::mem::transmute(processorfeature)) + IsProcessorFeaturePresent(processorfeature) } #[inline] pub unsafe fn IsThreadAFiber() -> super::super::Foundation::BOOL { @@ -1156,18 +1132,18 @@ pub unsafe fn IsThreadAFiber() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsThreadpoolTimerSet(pti: PTP_TIMER) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsThreadpoolTimerSet(pti : PTP_TIMER) -> super::super::Foundation:: BOOL); - IsThreadpoolTimerSet(core::mem::transmute(pti)) + IsThreadpoolTimerSet(pti) } #[inline] pub unsafe fn IsWow64Process(hprocess: super::super::Foundation::HANDLE, wow64process: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsWow64Process(hprocess : super::super::Foundation:: HANDLE, wow64process : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsWow64Process(core::mem::transmute(hprocess), core::mem::transmute(wow64process)).ok() + IsWow64Process(hprocess, core::mem::transmute(wow64process)).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn IsWow64Process2(hprocess: super::super::Foundation::HANDLE, pprocessmachine: *mut super::SystemInformation::IMAGE_FILE_MACHINE, pnativemachine: Option<*mut super::SystemInformation::IMAGE_FILE_MACHINE>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn IsWow64Process2(hprocess : super::super::Foundation:: HANDLE, pprocessmachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE, pnativemachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE) -> super::super::Foundation:: BOOL); - IsWow64Process2(core::mem::transmute(hprocess), core::mem::transmute(pprocessmachine), core::mem::transmute(pnativemachine.unwrap_or(core::mem::zeroed()))).ok() + IsWow64Process2(hprocess, core::mem::transmute(pprocessmachine), core::mem::transmute(pnativemachine.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -1179,7 +1155,7 @@ pub unsafe fn LeaveCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) { #[inline] pub unsafe fn LeaveCriticalSectionWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, pcs: *mut CRITICAL_SECTION) { windows_targets::link!("kernel32.dll" "system" fn LeaveCriticalSectionWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, pcs : *mut CRITICAL_SECTION)); - LeaveCriticalSectionWhenCallbackReturns(core::mem::transmute(pci), core::mem::transmute(pcs)) + LeaveCriticalSectionWhenCallbackReturns(pci, core::mem::transmute(pcs)) } #[inline] pub unsafe fn OpenEventA(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: bool, lpname: P2) -> windows_core::Result @@ -1187,7 +1163,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenEventA(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenEventA(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenEventA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1196,7 +1172,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenEventW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenEventW(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenEventW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1205,7 +1181,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenMutexW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenMutexW(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenMutexW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1214,7 +1190,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenPrivateNamespaceA(lpboundarydescriptor : *const core::ffi::c_void, lpaliasprefix : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - OpenPrivateNamespaceA(core::mem::transmute(lpboundarydescriptor), lpaliasprefix.param().abi()) + OpenPrivateNamespaceA(lpboundarydescriptor, lpaliasprefix.param().abi()) } #[inline] pub unsafe fn OpenPrivateNamespaceW(lpboundarydescriptor: *const core::ffi::c_void, lpaliasprefix: P1) -> super::super::Foundation::HANDLE @@ -1222,19 +1198,19 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenPrivateNamespaceW(lpboundarydescriptor : *const core::ffi::c_void, lpaliasprefix : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - OpenPrivateNamespaceW(core::mem::transmute(lpboundarydescriptor), lpaliasprefix.param().abi()) + OpenPrivateNamespaceW(lpboundarydescriptor, lpaliasprefix.param().abi()) } #[inline] pub unsafe fn OpenProcess(dwdesiredaccess: PROCESS_ACCESS_RIGHTS, binherithandle: bool, dwprocessid: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn OpenProcess(dwdesiredaccess : PROCESS_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, dwprocessid : u32) -> super::super::Foundation:: HANDLE); - let result__ = OpenProcess(core::mem::transmute(dwdesiredaccess), binherithandle.into(), core::mem::transmute(dwprocessid)); + let result__ = OpenProcess(dwdesiredaccess, binherithandle.into(), dwprocessid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenProcessToken(processhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, tokenhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn OpenProcessToken(processhandle : super::super::Foundation:: HANDLE, desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK, tokenhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - OpenProcessToken(core::mem::transmute(processhandle), core::mem::transmute(desiredaccess), core::mem::transmute(tokenhandle)).ok() + OpenProcessToken(processhandle, desiredaccess, core::mem::transmute(tokenhandle)).ok() } #[inline] pub unsafe fn OpenSemaphoreW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: bool, lpname: P2) -> windows_core::Result @@ -1242,20 +1218,20 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenSemaphoreW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenSemaphoreW(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()); + let result__ = OpenSemaphoreW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenThread(dwdesiredaccess: THREAD_ACCESS_RIGHTS, binherithandle: bool, dwthreadid: u32) -> windows_core::Result { windows_targets::link!("kernel32.dll" "system" fn OpenThread(dwdesiredaccess : THREAD_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, dwthreadid : u32) -> super::super::Foundation:: HANDLE); - let result__ = OpenThread(core::mem::transmute(dwdesiredaccess), binherithandle.into(), core::mem::transmute(dwthreadid)); + let result__ = OpenThread(dwdesiredaccess, binherithandle.into(), dwthreadid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenThreadToken(threadhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, openasself: bool, tokenhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("advapi32.dll" "system" fn OpenThreadToken(threadhandle : super::super::Foundation:: HANDLE, desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK, openasself : super::super::Foundation:: BOOL, tokenhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - OpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), openasself.into(), core::mem::transmute(tokenhandle)).ok() + OpenThreadToken(threadhandle, desiredaccess, openasself.into(), core::mem::transmute(tokenhandle)).ok() } #[inline] pub unsafe fn OpenWaitableTimerA(dwdesiredaccess: u32, binherithandle: bool, lptimername: P2) -> super::super::Foundation::HANDLE @@ -1263,7 +1239,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenWaitableTimerA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lptimername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - OpenWaitableTimerA(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lptimername.param().abi()) + OpenWaitableTimerA(dwdesiredaccess, binherithandle.into(), lptimername.param().abi()) } #[inline] pub unsafe fn OpenWaitableTimerW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: bool, lptimername: P2) -> windows_core::Result @@ -1271,79 +1247,79 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenWaitableTimerW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lptimername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenWaitableTimerW(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lptimername.param().abi()); + let result__ = OpenWaitableTimerW(dwdesiredaccess, binherithandle.into(), lptimername.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PulseEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn PulseEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - PulseEvent(core::mem::transmute(hevent)).ok() + PulseEvent(hevent).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn QueryDepthSList(listhead: *const super::Kernel::SLIST_HEADER) -> u16 { windows_targets::link!("kernel32.dll" "system" fn QueryDepthSList(listhead : *const super::Kernel:: SLIST_HEADER) -> u16); - QueryDepthSList(core::mem::transmute(listhead)) + QueryDepthSList(listhead) } #[inline] pub unsafe fn QueryFullProcessImageNameA(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: windows_core::PSTR, lpdwsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryFullProcessImageNameA(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_NAME_FORMAT, lpexename : windows_core::PSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - QueryFullProcessImageNameA(core::mem::transmute(hprocess), core::mem::transmute(dwflags), core::mem::transmute(lpexename), core::mem::transmute(lpdwsize)).ok() + QueryFullProcessImageNameA(hprocess, dwflags, core::mem::transmute(lpexename), core::mem::transmute(lpdwsize)).ok() } #[inline] pub unsafe fn QueryFullProcessImageNameW(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: windows_core::PWSTR, lpdwsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryFullProcessImageNameW(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_NAME_FORMAT, lpexename : windows_core::PWSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - QueryFullProcessImageNameW(core::mem::transmute(hprocess), core::mem::transmute(dwflags), core::mem::transmute(lpexename), core::mem::transmute(lpdwsize)).ok() + QueryFullProcessImageNameW(hprocess, dwflags, core::mem::transmute(lpexename), core::mem::transmute(lpdwsize)).ok() } #[inline] pub unsafe fn QueryProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, lpdwflags: Option<*mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, lpdwflags : *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); - QueryProcessAffinityUpdateMode(core::mem::transmute(hprocess), core::mem::transmute(lpdwflags.unwrap_or(core::mem::zeroed()))).ok() + QueryProcessAffinityUpdateMode(hprocess, core::mem::transmute(lpdwflags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn QueryProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: *mut usize) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn QueryProtectedPolicy(policyguid : *const windows_core::GUID, policyvalue : *mut usize) -> super::super::Foundation:: BOOL); - QueryProtectedPolicy(core::mem::transmute(policyguid), core::mem::transmute(policyvalue)) + QueryProtectedPolicy(policyguid, core::mem::transmute(policyvalue)) } #[inline] pub unsafe fn QueryThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *mut TP_POOL_STACK_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *mut TP_POOL_STACK_INFORMATION) -> super::super::Foundation:: BOOL); - QueryThreadpoolStackInformation(core::mem::transmute(ptpp), core::mem::transmute(ptpsi)).ok() + QueryThreadpoolStackInformation(ptpp, core::mem::transmute(ptpsi)).ok() } #[inline] pub unsafe fn QueryUmsThreadInformation(umsthread: *const core::ffi::c_void, umsthreadinfoclass: UMS_THREAD_INFO_CLASS, umsthreadinformation: *mut core::ffi::c_void, umsthreadinformationlength: u32, returnlength: Option<*mut u32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryUmsThreadInformation(umsthread : *const core::ffi::c_void, umsthreadinfoclass : UMS_THREAD_INFO_CLASS, umsthreadinformation : *mut core::ffi::c_void, umsthreadinformationlength : u32, returnlength : *mut u32) -> super::super::Foundation:: BOOL); - QueryUmsThreadInformation(core::mem::transmute(umsthread), core::mem::transmute(umsthreadinfoclass), core::mem::transmute(umsthreadinformation), core::mem::transmute(umsthreadinformationlength), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() + QueryUmsThreadInformation(umsthread, umsthreadinfoclass, core::mem::transmute(umsthreadinformation), umsthreadinformationlength, core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn QueueUserAPC(pfnapc: super::super::Foundation::PAPCFUNC, hthread: super::super::Foundation::HANDLE, dwdata: usize) -> u32 { windows_targets::link!("kernel32.dll" "system" fn QueueUserAPC(pfnapc : super::super::Foundation:: PAPCFUNC, hthread : super::super::Foundation:: HANDLE, dwdata : usize) -> u32); - QueueUserAPC(core::mem::transmute(pfnapc), core::mem::transmute(hthread), core::mem::transmute(dwdata)) + QueueUserAPC(pfnapc, hthread, dwdata) } #[inline] pub unsafe fn QueueUserAPC2(apcroutine: super::super::Foundation::PAPCFUNC, thread: super::super::Foundation::HANDLE, data: usize, flags: QUEUE_USER_APC_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn QueueUserAPC2(apcroutine : super::super::Foundation:: PAPCFUNC, thread : super::super::Foundation:: HANDLE, data : usize, flags : QUEUE_USER_APC_FLAGS) -> super::super::Foundation:: BOOL); - QueueUserAPC2(core::mem::transmute(apcroutine), core::mem::transmute(thread), core::mem::transmute(data), core::mem::transmute(flags)) + QueueUserAPC2(apcroutine, thread, data, flags) } #[inline] pub unsafe fn QueueUserWorkItem(function: LPTHREAD_START_ROUTINE, context: Option<*const core::ffi::c_void>, flags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueueUserWorkItem(function : LPTHREAD_START_ROUTINE, context : *const core::ffi::c_void, flags : WORKER_THREAD_FLAGS) -> super::super::Foundation:: BOOL); - QueueUserWorkItem(core::mem::transmute(function), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)).ok() + QueueUserWorkItem(function, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), flags).ok() } #[inline] pub unsafe fn RegisterWaitForSingleObject(phnewwaitobject: *mut super::super::Foundation::HANDLE, hobject: super::super::Foundation::HANDLE, callback: WAITORTIMERCALLBACK, context: Option<*const core::ffi::c_void>, dwmilliseconds: u32, dwflags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn RegisterWaitForSingleObject(phnewwaitobject : *mut super::super::Foundation:: HANDLE, hobject : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, context : *const core::ffi::c_void, dwmilliseconds : u32, dwflags : WORKER_THREAD_FLAGS) -> super::super::Foundation:: BOOL); - RegisterWaitForSingleObject(core::mem::transmute(phnewwaitobject), core::mem::transmute(hobject), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmilliseconds), core::mem::transmute(dwflags)).ok() + RegisterWaitForSingleObject(core::mem::transmute(phnewwaitobject), hobject, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), dwmilliseconds, dwflags).ok() } #[inline] pub unsafe fn ReleaseMutex(hmutex: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReleaseMutex(hmutex : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ReleaseMutex(core::mem::transmute(hmutex)).ok() + ReleaseMutex(hmutex).ok() } #[inline] pub unsafe fn ReleaseMutexWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, r#mut: super::super::Foundation::HANDLE) { windows_targets::link!("kernel32.dll" "system" fn ReleaseMutexWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, r#mut : super::super::Foundation:: HANDLE)); - ReleaseMutexWhenCallbackReturns(core::mem::transmute(pci), core::mem::transmute(r#mut)) + ReleaseMutexWhenCallbackReturns(pci, r#mut) } #[inline] pub unsafe fn ReleaseSRWLockExclusive(srwlock: *mut SRWLOCK) { @@ -1358,22 +1334,22 @@ pub unsafe fn ReleaseSRWLockShared(srwlock: *mut SRWLOCK) { #[inline] pub unsafe fn ReleaseSemaphore(hsemaphore: super::super::Foundation::HANDLE, lreleasecount: i32, lppreviouscount: Option<*mut i32>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ReleaseSemaphore(hsemaphore : super::super::Foundation:: HANDLE, lreleasecount : i32, lppreviouscount : *mut i32) -> super::super::Foundation:: BOOL); - ReleaseSemaphore(core::mem::transmute(hsemaphore), core::mem::transmute(lreleasecount), core::mem::transmute(lppreviouscount.unwrap_or(core::mem::zeroed()))).ok() + ReleaseSemaphore(hsemaphore, lreleasecount, core::mem::transmute(lppreviouscount.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ReleaseSemaphoreWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, sem: super::super::Foundation::HANDLE, crel: u32) { windows_targets::link!("kernel32.dll" "system" fn ReleaseSemaphoreWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, sem : super::super::Foundation:: HANDLE, crel : u32)); - ReleaseSemaphoreWhenCallbackReturns(core::mem::transmute(pci), core::mem::transmute(sem), core::mem::transmute(crel)) + ReleaseSemaphoreWhenCallbackReturns(pci, sem, crel) } #[inline] pub unsafe fn ResetEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn ResetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ResetEvent(core::mem::transmute(hevent)).ok() + ResetEvent(hevent).ok() } #[inline] pub unsafe fn ResumeThread(hthread: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn ResumeThread(hthread : super::super::Foundation:: HANDLE) -> u32); - ResumeThread(core::mem::transmute(hthread)) + ResumeThread(hthread) } #[inline] pub unsafe fn RtwqAddPeriodicCallback(callback: RTWQPERIODICCALLBACK, context: P1, key: Option<*mut u32>) -> windows_core::Result<()> @@ -1381,19 +1357,19 @@ where P1: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqAddPeriodicCallback(callback : RTWQPERIODICCALLBACK, context : * mut core::ffi::c_void, key : *mut u32) -> windows_core::HRESULT); - RtwqAddPeriodicCallback(core::mem::transmute(callback), context.param().abi(), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() + RtwqAddPeriodicCallback(callback, context.param().abi(), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RtwqAllocateSerialWorkQueue(workqueueidin: u32) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqAllocateSerialWorkQueue(workqueueidin : u32, workqueueidout : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqAllocateSerialWorkQueue(core::mem::transmute(workqueueidin), &mut result__).map(|| core::mem::transmute(result__)) + RtwqAllocateSerialWorkQueue(workqueueidin, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqAllocateWorkQueue(workqueuetype: RTWQ_WORKQUEUE_TYPE) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqAllocateWorkQueue(workqueuetype : RTWQ_WORKQUEUE_TYPE, workqueueid : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqAllocateWorkQueue(core::mem::transmute(workqueuetype), &mut result__).map(|| core::mem::transmute(result__)) + RtwqAllocateWorkQueue(workqueuetype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqBeginRegisterWorkQueueWithMMCSS(workqueueid: u32, usageclass: P1, dwtaskid: u32, lpriority: i32, donecallback: P4, donestate: P5) -> windows_core::Result<()> @@ -1403,7 +1379,7 @@ where P5: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqBeginRegisterWorkQueueWithMMCSS(workqueueid : u32, usageclass : windows_core::PCWSTR, dwtaskid : u32, lpriority : i32, donecallback : * mut core::ffi::c_void, donestate : * mut core::ffi::c_void) -> windows_core::HRESULT); - RtwqBeginRegisterWorkQueueWithMMCSS(core::mem::transmute(workqueueid), usageclass.param().abi(), core::mem::transmute(dwtaskid), core::mem::transmute(lpriority), donecallback.param().abi(), donestate.param().abi()).ok() + RtwqBeginRegisterWorkQueueWithMMCSS(workqueueid, usageclass.param().abi(), dwtaskid, lpriority, donecallback.param().abi(), donestate.param().abi()).ok() } #[inline] pub unsafe fn RtwqBeginUnregisterWorkQueueWithMMCSS(workqueueid: u32, donecallback: P1, donestate: P2) -> windows_core::Result<()> @@ -1412,17 +1388,17 @@ where P2: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqBeginUnregisterWorkQueueWithMMCSS(workqueueid : u32, donecallback : * mut core::ffi::c_void, donestate : * mut core::ffi::c_void) -> windows_core::HRESULT); - RtwqBeginUnregisterWorkQueueWithMMCSS(core::mem::transmute(workqueueid), donecallback.param().abi(), donestate.param().abi()).ok() + RtwqBeginUnregisterWorkQueueWithMMCSS(workqueueid, donecallback.param().abi(), donestate.param().abi()).ok() } #[inline] pub unsafe fn RtwqCancelDeadline(prequest: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqCancelDeadline(prequest : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RtwqCancelDeadline(core::mem::transmute(prequest)).ok() + RtwqCancelDeadline(prequest).ok() } #[inline] pub unsafe fn RtwqCancelWorkItem(key: u64) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqCancelWorkItem(key : u64) -> windows_core::HRESULT); - RtwqCancelWorkItem(core::mem::transmute(key)).ok() + RtwqCancelWorkItem(key).ok() } #[inline] pub unsafe fn RtwqCreateAsyncResult(appobject: P0, callback: P1, appstate: P2) -> windows_core::Result @@ -1447,19 +1423,19 @@ where #[inline] pub unsafe fn RtwqGetWorkQueueMMCSSClass(workqueueid: u32, usageclass: Option, usageclasslength: *mut u32) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqGetWorkQueueMMCSSClass(workqueueid : u32, usageclass : windows_core::PWSTR, usageclasslength : *mut u32) -> windows_core::HRESULT); - RtwqGetWorkQueueMMCSSClass(core::mem::transmute(workqueueid), core::mem::transmute(usageclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(usageclasslength)).ok() + RtwqGetWorkQueueMMCSSClass(workqueueid, core::mem::transmute(usageclass.unwrap_or(core::mem::zeroed())), core::mem::transmute(usageclasslength)).ok() } #[inline] pub unsafe fn RtwqGetWorkQueueMMCSSPriority(workqueueid: u32) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqGetWorkQueueMMCSSPriority(workqueueid : u32, priority : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqGetWorkQueueMMCSSPriority(core::mem::transmute(workqueueid), &mut result__).map(|| core::mem::transmute(result__)) + RtwqGetWorkQueueMMCSSPriority(workqueueid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqGetWorkQueueMMCSSTaskId(workqueueid: u32) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqGetWorkQueueMMCSSTaskId(workqueueid : u32, taskid : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqGetWorkQueueMMCSSTaskId(core::mem::transmute(workqueueid), &mut result__).map(|| core::mem::transmute(result__)) + RtwqGetWorkQueueMMCSSTaskId(workqueueid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqInvokeCallback(result: P0) -> windows_core::Result<()> @@ -1473,7 +1449,7 @@ where pub unsafe fn RtwqJoinWorkQueue(workqueueid: u32, hfile: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqJoinWorkQueue(workqueueid : u32, hfile : super::super::Foundation:: HANDLE, out : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqJoinWorkQueue(core::mem::transmute(workqueueid), core::mem::transmute(hfile), &mut result__).map(|| core::mem::transmute(result__)) + RtwqJoinWorkQueue(workqueueid, hfile, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqLockPlatform() -> windows_core::Result<()> { @@ -1486,12 +1462,12 @@ where P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqLockSharedWorkQueue(usageclass : windows_core::PCWSTR, basepriority : i32, taskid : *mut u32, id : *mut u32) -> windows_core::HRESULT); - RtwqLockSharedWorkQueue(usageclass.param().abi(), core::mem::transmute(basepriority), core::mem::transmute(taskid), core::mem::transmute(id)).ok() + RtwqLockSharedWorkQueue(usageclass.param().abi(), basepriority, core::mem::transmute(taskid), core::mem::transmute(id)).ok() } #[inline] pub unsafe fn RtwqLockWorkQueue(workqueueid: u32) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqLockWorkQueue(workqueueid : u32) -> windows_core::HRESULT); - RtwqLockWorkQueue(core::mem::transmute(workqueueid)).ok() + RtwqLockWorkQueue(workqueueid).ok() } #[inline] pub unsafe fn RtwqPutWaitingWorkItem(hevent: super::super::Foundation::HANDLE, lpriority: i32, result: P2, key: Option<*mut u64>) -> windows_core::Result<()> @@ -1499,7 +1475,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqPutWaitingWorkItem(hevent : super::super::Foundation:: HANDLE, lpriority : i32, result : * mut core::ffi::c_void, key : *mut u64) -> windows_core::HRESULT); - RtwqPutWaitingWorkItem(core::mem::transmute(hevent), core::mem::transmute(lpriority), result.param().abi(), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() + RtwqPutWaitingWorkItem(hevent, lpriority, result.param().abi(), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RtwqPutWorkItem(dwqueue: u32, lpriority: i32, result: P2) -> windows_core::Result<()> @@ -1507,7 +1483,7 @@ where P2: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqPutWorkItem(dwqueue : u32, lpriority : i32, result : * mut core::ffi::c_void) -> windows_core::HRESULT); - RtwqPutWorkItem(core::mem::transmute(dwqueue), core::mem::transmute(lpriority), result.param().abi()).ok() + RtwqPutWorkItem(dwqueue, lpriority, result.param().abi()).ok() } #[inline] pub unsafe fn RtwqRegisterPlatformEvents(platformevents: P0) -> windows_core::Result<()> @@ -1523,12 +1499,12 @@ where P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqRegisterPlatformWithMMCSS(usageclass : windows_core::PCWSTR, taskid : *mut u32, lpriority : i32) -> windows_core::HRESULT); - RtwqRegisterPlatformWithMMCSS(usageclass.param().abi(), core::mem::transmute(taskid), core::mem::transmute(lpriority)).ok() + RtwqRegisterPlatformWithMMCSS(usageclass.param().abi(), core::mem::transmute(taskid), lpriority).ok() } #[inline] pub unsafe fn RtwqRemovePeriodicCallback(dwkey: u32) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqRemovePeriodicCallback(dwkey : u32) -> windows_core::HRESULT); - RtwqRemovePeriodicCallback(core::mem::transmute(dwkey)).ok() + RtwqRemovePeriodicCallback(dwkey).ok() } #[inline] pub unsafe fn RtwqScheduleWorkItem(result: P0, timeout: i64, key: Option<*mut u64>) -> windows_core::Result<()> @@ -1536,24 +1512,24 @@ where P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqScheduleWorkItem(result : * mut core::ffi::c_void, timeout : i64, key : *mut u64) -> windows_core::HRESULT); - RtwqScheduleWorkItem(result.param().abi(), core::mem::transmute(timeout), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() + RtwqScheduleWorkItem(result.param().abi(), timeout, core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RtwqSetDeadline(workqueueid: u32, deadlineinhns: i64) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqSetDeadline(workqueueid : u32, deadlineinhns : i64, prequest : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqSetDeadline(core::mem::transmute(workqueueid), core::mem::transmute(deadlineinhns), &mut result__).map(|| core::mem::transmute(result__)) + RtwqSetDeadline(workqueueid, deadlineinhns, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqSetDeadline2(workqueueid: u32, deadlineinhns: i64, predeadlineinhns: i64) -> windows_core::Result { windows_targets::link!("rtworkq.dll" "system" fn RtwqSetDeadline2(workqueueid : u32, deadlineinhns : i64, predeadlineinhns : i64, prequest : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RtwqSetDeadline2(core::mem::transmute(workqueueid), core::mem::transmute(deadlineinhns), core::mem::transmute(predeadlineinhns), &mut result__).map(|| core::mem::transmute(result__)) + RtwqSetDeadline2(workqueueid, deadlineinhns, predeadlineinhns, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RtwqSetLongRunning(workqueueid: u32, enable: bool) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqSetLongRunning(workqueueid : u32, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RtwqSetLongRunning(core::mem::transmute(workqueueid), enable.into()).ok() + RtwqSetLongRunning(workqueueid, enable.into()).ok() } #[inline] pub unsafe fn RtwqShutdown() -> windows_core::Result<()> { @@ -1568,7 +1544,7 @@ pub unsafe fn RtwqStartup() -> windows_core::Result<()> { #[inline] pub unsafe fn RtwqUnjoinWorkQueue(workqueueid: u32, hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqUnjoinWorkQueue(workqueueid : u32, hfile : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RtwqUnjoinWorkQueue(core::mem::transmute(workqueueid), core::mem::transmute(hfile)).ok() + RtwqUnjoinWorkQueue(workqueueid, hfile).ok() } #[inline] pub unsafe fn RtwqUnlockPlatform() -> windows_core::Result<()> { @@ -1578,7 +1554,7 @@ pub unsafe fn RtwqUnlockPlatform() -> windows_core::Result<()> { #[inline] pub unsafe fn RtwqUnlockWorkQueue(workqueueid: u32) -> windows_core::Result<()> { windows_targets::link!("rtworkq.dll" "system" fn RtwqUnlockWorkQueue(workqueueid : u32) -> windows_core::HRESULT); - RtwqUnlockWorkQueue(core::mem::transmute(workqueueid)).ok() + RtwqUnlockWorkQueue(workqueueid).ok() } #[inline] pub unsafe fn RtwqUnregisterPlatformEvents(platformevents: P0) -> windows_core::Result<()> @@ -1597,73 +1573,73 @@ pub unsafe fn RtwqUnregisterPlatformFromMMCSS() -> windows_core::Result<()> { #[inline] pub unsafe fn SetCriticalSectionSpinCount(lpcriticalsection: *mut CRITICAL_SECTION, dwspincount: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetCriticalSectionSpinCount(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32) -> u32); - SetCriticalSectionSpinCount(core::mem::transmute(lpcriticalsection), core::mem::transmute(dwspincount)) + SetCriticalSectionSpinCount(core::mem::transmute(lpcriticalsection), dwspincount) } #[inline] pub unsafe fn SetEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetEvent(core::mem::transmute(hevent)).ok() + SetEvent(hevent).ok() } #[inline] pub unsafe fn SetEventWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, evt: super::super::Foundation::HANDLE) { windows_targets::link!("kernel32.dll" "system" fn SetEventWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, evt : super::super::Foundation:: HANDLE)); - SetEventWhenCallbackReturns(core::mem::transmute(pci), core::mem::transmute(evt)) + SetEventWhenCallbackReturns(pci, evt) } #[inline] pub unsafe fn SetPriorityClass(hprocess: super::super::Foundation::HANDLE, dwpriorityclass: PROCESS_CREATION_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetPriorityClass(hprocess : super::super::Foundation:: HANDLE, dwpriorityclass : PROCESS_CREATION_FLAGS) -> super::super::Foundation:: BOOL); - SetPriorityClass(core::mem::transmute(hprocess), core::mem::transmute(dwpriorityclass)).ok() + SetPriorityClass(hprocess, dwpriorityclass).ok() } #[inline] pub unsafe fn SetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, dwprocessaffinitymask: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, dwprocessaffinitymask : usize) -> super::super::Foundation:: BOOL); - SetProcessAffinityMask(core::mem::transmute(hprocess), core::mem::transmute(dwprocessaffinitymask)).ok() + SetProcessAffinityMask(hprocess, dwprocessaffinitymask).ok() } #[inline] pub unsafe fn SetProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); - SetProcessAffinityUpdateMode(core::mem::transmute(hprocess), core::mem::transmute(dwflags)).ok() + SetProcessAffinityUpdateMode(hprocess, dwflags).ok() } #[inline] pub unsafe fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessDEPPolicy(dwflags : PROCESS_DEP_FLAGS) -> super::super::Foundation:: BOOL); - SetProcessDEPPolicy(core::mem::transmute(dwflags)).ok() + SetProcessDEPPolicy(dwflags).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn SetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSetMasks(process : super::super::Foundation:: HANDLE, cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16) -> super::super::Foundation:: BOOL); - SetProcessDefaultCpuSetMasks(core::mem::transmute(process), core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + SetProcessDefaultCpuSetMasks(process, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn SetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: Option<&[u32]>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> super::super::Foundation:: BOOL); - SetProcessDefaultCpuSets(core::mem::transmute(process), core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + SetProcessDefaultCpuSets(process, core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn SetProcessDynamicEHContinuationTargets(process: super::super::Foundation::HANDLE, targets: &mut [PROCESS_DYNAMIC_EH_CONTINUATION_TARGET]) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessDynamicEHContinuationTargets(process : super::super::Foundation:: HANDLE, numberoftargets : u16, targets : *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET) -> super::super::Foundation:: BOOL); - SetProcessDynamicEHContinuationTargets(core::mem::transmute(process), targets.len().try_into().unwrap(), core::mem::transmute(targets.as_ptr())).ok() + SetProcessDynamicEHContinuationTargets(process, targets.len().try_into().unwrap(), core::mem::transmute(targets.as_ptr())).ok() } #[inline] pub unsafe fn SetProcessDynamicEnforcedCetCompatibleRanges(process: super::super::Foundation::HANDLE, ranges: &mut [PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE]) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetProcessDynamicEnforcedCetCompatibleRanges(process : super::super::Foundation:: HANDLE, numberofranges : u16, ranges : *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE) -> super::super::Foundation:: BOOL); - SetProcessDynamicEnforcedCetCompatibleRanges(core::mem::transmute(process), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())) + SetProcessDynamicEnforcedCetCompatibleRanges(process, ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())) } #[inline] pub unsafe fn SetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *const core::ffi::c_void, processinformationsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessInformation(hprocess : super::super::Foundation:: HANDLE, processinformationclass : PROCESS_INFORMATION_CLASS, processinformation : *const core::ffi::c_void, processinformationsize : u32) -> super::super::Foundation:: BOOL); - SetProcessInformation(core::mem::transmute(hprocess), core::mem::transmute(processinformationclass), core::mem::transmute(processinformation), core::mem::transmute(processinformationsize)).ok() + SetProcessInformation(hprocess, processinformationclass, processinformation, processinformationsize).ok() } #[inline] pub unsafe fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *const core::ffi::c_void, dwlength: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessMitigationPolicy(mitigationpolicy : PROCESS_MITIGATION_POLICY, lpbuffer : *const core::ffi::c_void, dwlength : usize) -> super::super::Foundation:: BOOL); - SetProcessMitigationPolicy(core::mem::transmute(mitigationpolicy), core::mem::transmute(lpbuffer), core::mem::transmute(dwlength)).ok() + SetProcessMitigationPolicy(mitigationpolicy, lpbuffer, dwlength).ok() } #[inline] pub unsafe fn SetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, bdisablepriorityboost: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, bdisablepriorityboost : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetProcessPriorityBoost(core::mem::transmute(hprocess), bdisablepriorityboost.into()).ok() + SetProcessPriorityBoost(hprocess, bdisablepriorityboost.into()).ok() } #[inline] pub unsafe fn SetProcessRestrictionExemption(fenableexemption: bool) -> windows_core::Result<()> { @@ -1673,22 +1649,22 @@ pub unsafe fn SetProcessRestrictionExemption(fenableexemption: bool) -> windows_ #[inline] pub unsafe fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessShutdownParameters(dwlevel : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - SetProcessShutdownParameters(core::mem::transmute(dwlevel), core::mem::transmute(dwflags)).ok() + SetProcessShutdownParameters(dwlevel, dwflags).ok() } #[inline] pub unsafe fn SetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize) -> super::super::Foundation:: BOOL); - SetProcessWorkingSetSize(core::mem::transmute(hprocess), core::mem::transmute(dwminimumworkingsetsize), core::mem::transmute(dwmaximumworkingsetsize)).ok() + SetProcessWorkingSetSize(hprocess, dwminimumworkingsetsize, dwmaximumworkingsetsize).ok() } #[inline] pub unsafe fn SetProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: usize, oldpolicyvalue: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetProtectedPolicy(policyguid : *const windows_core::GUID, policyvalue : usize, oldpolicyvalue : *mut usize) -> super::super::Foundation:: BOOL); - SetProtectedPolicy(core::mem::transmute(policyguid), core::mem::transmute(policyvalue), core::mem::transmute(oldpolicyvalue.unwrap_or(core::mem::zeroed()))).ok() + SetProtectedPolicy(policyguid, policyvalue, core::mem::transmute(oldpolicyvalue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetThreadAffinityMask(hthread: super::super::Foundation::HANDLE, dwthreadaffinitymask: usize) -> usize { windows_targets::link!("kernel32.dll" "system" fn SetThreadAffinityMask(hthread : super::super::Foundation:: HANDLE, dwthreadaffinitymask : usize) -> usize); - SetThreadAffinityMask(core::mem::transmute(hthread), core::mem::transmute(dwthreadaffinitymask)) + SetThreadAffinityMask(hthread, dwthreadaffinitymask) } #[inline] pub unsafe fn SetThreadDescription(hthread: super::super::Foundation::HANDLE, lpthreaddescription: P1) -> windows_core::Result<()> @@ -1696,50 +1672,50 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadDescription(hthread : super::super::Foundation:: HANDLE, lpthreaddescription : windows_core::PCWSTR) -> windows_core::HRESULT); - SetThreadDescription(core::mem::transmute(hthread), lpthreaddescription.param().abi()).ok() + SetThreadDescription(hthread, lpthreaddescription.param().abi()).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn SetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: Option<*mut super::SystemInformation::GROUP_AFFINITY>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *const super::SystemInformation:: GROUP_AFFINITY, previousgroupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); - SetThreadGroupAffinity(core::mem::transmute(hthread), core::mem::transmute(groupaffinity), core::mem::transmute(previousgroupaffinity.unwrap_or(core::mem::zeroed()))) + SetThreadGroupAffinity(hthread, groupaffinity, core::mem::transmute(previousgroupaffinity.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetThreadIdealProcessor(hthread: super::super::Foundation::HANDLE, dwidealprocessor: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetThreadIdealProcessor(hthread : super::super::Foundation:: HANDLE, dwidealprocessor : u32) -> u32); - SetThreadIdealProcessor(core::mem::transmute(hthread), core::mem::transmute(dwidealprocessor)) + SetThreadIdealProcessor(hthread, dwidealprocessor) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *const super::Kernel::PROCESSOR_NUMBER, lppreviousidealprocessor: Option<*mut super::Kernel::PROCESSOR_NUMBER>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *const super::Kernel:: PROCESSOR_NUMBER, lppreviousidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> super::super::Foundation:: BOOL); - SetThreadIdealProcessorEx(core::mem::transmute(hthread), core::mem::transmute(lpidealprocessor), core::mem::transmute(lppreviousidealprocessor.unwrap_or(core::mem::zeroed()))).ok() + SetThreadIdealProcessorEx(hthread, lpidealprocessor, core::mem::transmute(lppreviousidealprocessor.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *const core::ffi::c_void, threadinformationsize: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadInformation(hthread : super::super::Foundation:: HANDLE, threadinformationclass : THREAD_INFORMATION_CLASS, threadinformation : *const core::ffi::c_void, threadinformationsize : u32) -> super::super::Foundation:: BOOL); - SetThreadInformation(core::mem::transmute(hthread), core::mem::transmute(threadinformationclass), core::mem::transmute(threadinformation), core::mem::transmute(threadinformationsize)).ok() + SetThreadInformation(hthread, threadinformationclass, threadinformation, threadinformationsize).ok() } #[inline] pub unsafe fn SetThreadPriority(hthread: super::super::Foundation::HANDLE, npriority: THREAD_PRIORITY) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadPriority(hthread : super::super::Foundation:: HANDLE, npriority : THREAD_PRIORITY) -> super::super::Foundation:: BOOL); - SetThreadPriority(core::mem::transmute(hthread), core::mem::transmute(npriority)).ok() + SetThreadPriority(hthread, npriority).ok() } #[inline] pub unsafe fn SetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, bdisablepriorityboost: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, bdisablepriorityboost : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetThreadPriorityBoost(core::mem::transmute(hthread), bdisablepriorityboost.into()).ok() + SetThreadPriorityBoost(hthread, bdisablepriorityboost.into()).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn SetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSetMasks(thread : super::super::Foundation:: HANDLE, cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16) -> super::super::Foundation:: BOOL); - SetThreadSelectedCpuSetMasks(core::mem::transmute(thread), core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + SetThreadSelectedCpuSetMasks(thread, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn SetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: &[u32]) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> super::super::Foundation:: BOOL); - SetThreadSelectedCpuSets(core::mem::transmute(thread), core::mem::transmute(cpusetids.as_ptr()), cpusetids.len().try_into().unwrap()) + SetThreadSelectedCpuSets(thread, core::mem::transmute(cpusetids.as_ptr()), cpusetids.len().try_into().unwrap()) } #[inline] pub unsafe fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> windows_core::Result<()> { @@ -1754,103 +1730,103 @@ pub unsafe fn SetThreadToken(thread: Option<*const super::super::Foundation::HAN #[inline] pub unsafe fn SetThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *const TP_POOL_STACK_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *const TP_POOL_STACK_INFORMATION) -> super::super::Foundation:: BOOL); - SetThreadpoolStackInformation(core::mem::transmute(ptpp), core::mem::transmute(ptpsi)).ok() + SetThreadpoolStackInformation(ptpp, ptpsi).ok() } #[inline] pub unsafe fn SetThreadpoolThreadMaximum(ptpp: PTP_POOL, cthrdmost: u32) { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolThreadMaximum(ptpp : PTP_POOL, cthrdmost : u32)); - SetThreadpoolThreadMaximum(core::mem::transmute(ptpp), core::mem::transmute(cthrdmost)) + SetThreadpoolThreadMaximum(ptpp, cthrdmost) } #[inline] pub unsafe fn SetThreadpoolThreadMinimum(ptpp: PTP_POOL, cthrdmic: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolThreadMinimum(ptpp : PTP_POOL, cthrdmic : u32) -> super::super::Foundation:: BOOL); - SetThreadpoolThreadMinimum(core::mem::transmute(ptpp), core::mem::transmute(cthrdmic)).ok() + SetThreadpoolThreadMinimum(ptpp, cthrdmic).ok() } #[inline] pub unsafe fn SetThreadpoolTimer(pti: PTP_TIMER, pftduetime: Option<*const super::super::Foundation::FILETIME>, msperiod: u32, mswindowlength: Option) { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolTimer(pti : PTP_TIMER, pftduetime : *const super::super::Foundation:: FILETIME, msperiod : u32, mswindowlength : u32)); - SetThreadpoolTimer(core::mem::transmute(pti), core::mem::transmute(pftduetime.unwrap_or(core::mem::zeroed())), core::mem::transmute(msperiod), core::mem::transmute(mswindowlength.unwrap_or(core::mem::zeroed()))) + SetThreadpoolTimer(pti, core::mem::transmute(pftduetime.unwrap_or(core::mem::zeroed())), msperiod, core::mem::transmute(mswindowlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetThreadpoolTimerEx(pti: PTP_TIMER, pftduetime: Option<*const super::super::Foundation::FILETIME>, msperiod: u32, mswindowlength: Option) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolTimerEx(pti : PTP_TIMER, pftduetime : *const super::super::Foundation:: FILETIME, msperiod : u32, mswindowlength : u32) -> super::super::Foundation:: BOOL); - SetThreadpoolTimerEx(core::mem::transmute(pti), core::mem::transmute(pftduetime.unwrap_or(core::mem::zeroed())), core::mem::transmute(msperiod), core::mem::transmute(mswindowlength.unwrap_or(core::mem::zeroed()))) + SetThreadpoolTimerEx(pti, core::mem::transmute(pftduetime.unwrap_or(core::mem::zeroed())), msperiod, core::mem::transmute(mswindowlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetThreadpoolWait(pwa: PTP_WAIT, h: Option, pfttimeout: Option<*const super::super::Foundation::FILETIME>) { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolWait(pwa : PTP_WAIT, h : super::super::Foundation:: HANDLE, pfttimeout : *const super::super::Foundation:: FILETIME)); - SetThreadpoolWait(core::mem::transmute(pwa), core::mem::transmute(h.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfttimeout.unwrap_or(core::mem::zeroed()))) + SetThreadpoolWait(pwa, core::mem::transmute(h.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfttimeout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetThreadpoolWaitEx(pwa: PTP_WAIT, h: Option, pfttimeout: Option<*const super::super::Foundation::FILETIME>, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolWaitEx(pwa : PTP_WAIT, h : super::super::Foundation:: HANDLE, pfttimeout : *const super::super::Foundation:: FILETIME, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetThreadpoolWaitEx(core::mem::transmute(pwa), core::mem::transmute(h.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfttimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) + SetThreadpoolWaitEx(pwa, core::mem::transmute(h.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfttimeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(reserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetTimerQueueTimer(timerqueue: Option, callback: WAITORTIMERCALLBACK, parameter: Option<*const core::ffi::c_void>, duetime: u32, period: u32, preferio: bool) -> super::super::Foundation::HANDLE { windows_targets::link!("kernel32.dll" "system" fn SetTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, parameter : *const core::ffi::c_void, duetime : u32, period : u32, preferio : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); - SetTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), core::mem::transmute(callback), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(duetime), core::mem::transmute(period), preferio.into()) + SetTimerQueueTimer(core::mem::transmute(timerqueue.unwrap_or(core::mem::zeroed())), callback, core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), duetime, period, preferio.into()) } #[inline] pub unsafe fn SetUmsThreadInformation(umsthread: *const core::ffi::c_void, umsthreadinfoclass: UMS_THREAD_INFO_CLASS, umsthreadinformation: *const core::ffi::c_void, umsthreadinformationlength: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetUmsThreadInformation(umsthread : *const core::ffi::c_void, umsthreadinfoclass : UMS_THREAD_INFO_CLASS, umsthreadinformation : *const core::ffi::c_void, umsthreadinformationlength : u32) -> super::super::Foundation:: BOOL); - SetUmsThreadInformation(core::mem::transmute(umsthread), core::mem::transmute(umsthreadinfoclass), core::mem::transmute(umsthreadinformation), core::mem::transmute(umsthreadinformationlength)).ok() + SetUmsThreadInformation(umsthread, umsthreadinfoclass, umsthreadinformation, umsthreadinformationlength).ok() } #[inline] pub unsafe fn SetWaitableTimer(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: Option, lpargtocompletionroutine: Option<*const core::ffi::c_void>, fresume: bool) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetWaitableTimer(htimer : super::super::Foundation:: HANDLE, lpduetime : *const i64, lperiod : i32, pfncompletionroutine : PTIMERAPCROUTINE, lpargtocompletionroutine : *const core::ffi::c_void, fresume : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetWaitableTimer(core::mem::transmute(htimer), core::mem::transmute(lpduetime), core::mem::transmute(lperiod), core::mem::transmute(pfncompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpargtocompletionroutine.unwrap_or(core::mem::zeroed())), fresume.into()).ok() + SetWaitableTimer(htimer, lpduetime, lperiod, core::mem::transmute(pfncompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpargtocompletionroutine.unwrap_or(core::mem::zeroed())), fresume.into()).ok() } #[inline] pub unsafe fn SetWaitableTimerEx(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: Option, lpargtocompletionroutine: Option<*const core::ffi::c_void>, wakecontext: Option<*const REASON_CONTEXT>, tolerabledelay: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetWaitableTimerEx(htimer : super::super::Foundation:: HANDLE, lpduetime : *const i64, lperiod : i32, pfncompletionroutine : PTIMERAPCROUTINE, lpargtocompletionroutine : *const core::ffi::c_void, wakecontext : *const REASON_CONTEXT, tolerabledelay : u32) -> super::super::Foundation:: BOOL); - SetWaitableTimerEx(core::mem::transmute(htimer), core::mem::transmute(lpduetime), core::mem::transmute(lperiod), core::mem::transmute(pfncompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpargtocompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(wakecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(tolerabledelay)).ok() + SetWaitableTimerEx(htimer, lpduetime, lperiod, core::mem::transmute(pfncompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpargtocompletionroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(wakecontext.unwrap_or(core::mem::zeroed())), tolerabledelay).ok() } #[inline] pub unsafe fn SignalObjectAndWait(hobjecttosignal: super::super::Foundation::HANDLE, hobjecttowaiton: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: bool) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("kernel32.dll" "system" fn SignalObjectAndWait(hobjecttosignal : super::super::Foundation:: HANDLE, hobjecttowaiton : super::super::Foundation:: HANDLE, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); - SignalObjectAndWait(core::mem::transmute(hobjecttosignal), core::mem::transmute(hobjecttowaiton), core::mem::transmute(dwmilliseconds), balertable.into()) + SignalObjectAndWait(hobjecttosignal, hobjecttowaiton, dwmilliseconds, balertable.into()) } #[inline] pub unsafe fn Sleep(dwmilliseconds: u32) { windows_targets::link!("kernel32.dll" "system" fn Sleep(dwmilliseconds : u32)); - Sleep(core::mem::transmute(dwmilliseconds)) + Sleep(dwmilliseconds) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SleepConditionVariableCS(conditionvariable: *mut CONDITION_VARIABLE, criticalsection: *mut CRITICAL_SECTION, dwmilliseconds: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SleepConditionVariableCS(conditionvariable : *mut CONDITION_VARIABLE, criticalsection : *mut CRITICAL_SECTION, dwmilliseconds : u32) -> super::super::Foundation:: BOOL); - SleepConditionVariableCS(core::mem::transmute(conditionvariable), core::mem::transmute(criticalsection), core::mem::transmute(dwmilliseconds)).ok() + SleepConditionVariableCS(core::mem::transmute(conditionvariable), core::mem::transmute(criticalsection), dwmilliseconds).ok() } #[inline] pub unsafe fn SleepConditionVariableSRW(conditionvariable: *mut CONDITION_VARIABLE, srwlock: *mut SRWLOCK, dwmilliseconds: u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SleepConditionVariableSRW(conditionvariable : *mut CONDITION_VARIABLE, srwlock : *mut SRWLOCK, dwmilliseconds : u32, flags : u32) -> super::super::Foundation:: BOOL); - SleepConditionVariableSRW(core::mem::transmute(conditionvariable), core::mem::transmute(srwlock), core::mem::transmute(dwmilliseconds), core::mem::transmute(flags)).ok() + SleepConditionVariableSRW(core::mem::transmute(conditionvariable), core::mem::transmute(srwlock), dwmilliseconds, flags).ok() } #[inline] pub unsafe fn SleepEx(dwmilliseconds: u32, balertable: bool) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SleepEx(dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> u32); - SleepEx(core::mem::transmute(dwmilliseconds), balertable.into()) + SleepEx(dwmilliseconds, balertable.into()) } #[inline] pub unsafe fn StartThreadpoolIo(pio: PTP_IO) { windows_targets::link!("kernel32.dll" "system" fn StartThreadpoolIo(pio : PTP_IO)); - StartThreadpoolIo(core::mem::transmute(pio)) + StartThreadpoolIo(pio) } #[inline] pub unsafe fn SubmitThreadpoolWork(pwk: PTP_WORK) { windows_targets::link!("kernel32.dll" "system" fn SubmitThreadpoolWork(pwk : PTP_WORK)); - SubmitThreadpoolWork(core::mem::transmute(pwk)) + SubmitThreadpoolWork(pwk) } #[inline] pub unsafe fn SuspendThread(hthread: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SuspendThread(hthread : super::super::Foundation:: HANDLE) -> u32); - SuspendThread(core::mem::transmute(hthread)) + SuspendThread(hthread) } #[inline] pub unsafe fn SwitchToFiber(lpfiber: *const core::ffi::c_void) { windows_targets::link!("kernel32.dll" "system" fn SwitchToFiber(lpfiber : *const core::ffi::c_void)); - SwitchToFiber(core::mem::transmute(lpfiber)) + SwitchToFiber(lpfiber) } #[inline] pub unsafe fn SwitchToThread() -> super::super::Foundation::BOOL { @@ -1860,12 +1836,12 @@ pub unsafe fn SwitchToThread() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn TerminateProcess(hprocess: super::super::Foundation::HANDLE, uexitcode: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TerminateProcess(hprocess : super::super::Foundation:: HANDLE, uexitcode : u32) -> super::super::Foundation:: BOOL); - TerminateProcess(core::mem::transmute(hprocess), core::mem::transmute(uexitcode)).ok() + TerminateProcess(hprocess, uexitcode).ok() } #[inline] pub unsafe fn TerminateThread(hthread: super::super::Foundation::HANDLE, dwexitcode: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TerminateThread(hthread : super::super::Foundation:: HANDLE, dwexitcode : u32) -> super::super::Foundation:: BOOL); - TerminateThread(core::mem::transmute(hthread), core::mem::transmute(dwexitcode)).ok() + TerminateThread(hthread, dwexitcode).ok() } #[inline] pub unsafe fn TlsAlloc() -> u32 { @@ -1875,17 +1851,17 @@ pub unsafe fn TlsAlloc() -> u32 { #[inline] pub unsafe fn TlsFree(dwtlsindex: u32) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TlsFree(dwtlsindex : u32) -> super::super::Foundation:: BOOL); - TlsFree(core::mem::transmute(dwtlsindex)).ok() + TlsFree(dwtlsindex).ok() } #[inline] pub unsafe fn TlsGetValue(dwtlsindex: u32) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn TlsGetValue(dwtlsindex : u32) -> *mut core::ffi::c_void); - TlsGetValue(core::mem::transmute(dwtlsindex)) + TlsGetValue(dwtlsindex) } #[inline] pub unsafe fn TlsSetValue(dwtlsindex: u32, lptlsvalue: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TlsSetValue(dwtlsindex : u32, lptlsvalue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - TlsSetValue(core::mem::transmute(dwtlsindex), core::mem::transmute(lptlsvalue.unwrap_or(core::mem::zeroed()))).ok() + TlsSetValue(dwtlsindex, core::mem::transmute(lptlsvalue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn TryAcquireSRWLockExclusive(srwlock: *mut SRWLOCK) -> bool { @@ -1906,77 +1882,77 @@ pub unsafe fn TryEnterCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) #[inline] pub unsafe fn TrySubmitThreadpoolCallback(pfns: PTP_SIMPLE_CALLBACK, pv: Option<*mut core::ffi::c_void>, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TrySubmitThreadpoolCallback(pfns : PTP_SIMPLE_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> super::super::Foundation:: BOOL); - TrySubmitThreadpoolCallback(core::mem::transmute(pfns), core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))).ok() + TrySubmitThreadpoolCallback(pfns, core::mem::transmute(pv.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbe.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UmsThreadYield(schedulerparam: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UmsThreadYield(schedulerparam : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - UmsThreadYield(core::mem::transmute(schedulerparam)).ok() + UmsThreadYield(schedulerparam).ok() } #[inline] pub unsafe fn UnregisterWait(waithandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnregisterWait(waithandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnregisterWait(core::mem::transmute(waithandle)).ok() + UnregisterWait(waithandle).ok() } #[inline] pub unsafe fn UnregisterWaitEx(waithandle: super::super::Foundation::HANDLE, completionevent: Option) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitEx(waithandle : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnregisterWaitEx(core::mem::transmute(waithandle), core::mem::transmute(completionevent.unwrap_or(core::mem::zeroed()))).ok() + UnregisterWaitEx(waithandle, core::mem::transmute(completionevent.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UpdateProcThreadAttribute(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwflags: u32, attribute: usize, lpvalue: Option<*const core::ffi::c_void>, cbsize: usize, lppreviousvalue: Option<*mut core::ffi::c_void>, lpreturnsize: Option<*const usize>) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn UpdateProcThreadAttribute(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, dwflags : u32, attribute : usize, lpvalue : *const core::ffi::c_void, cbsize : usize, lppreviousvalue : *mut core::ffi::c_void, lpreturnsize : *const usize) -> super::super::Foundation:: BOOL); - UpdateProcThreadAttribute(core::mem::transmute(lpattributelist), core::mem::transmute(dwflags), core::mem::transmute(attribute), core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), core::mem::transmute(lppreviousvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreturnsize.unwrap_or(core::mem::zeroed()))).ok() + UpdateProcThreadAttribute(core::mem::transmute(lpattributelist), dwflags, attribute, core::mem::transmute(lpvalue.unwrap_or(core::mem::zeroed())), cbsize, core::mem::transmute(lppreviousvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpreturnsize.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WaitForInputIdle(hprocess: super::super::Foundation::HANDLE, dwmilliseconds: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn WaitForInputIdle(hprocess : super::super::Foundation:: HANDLE, dwmilliseconds : u32) -> u32); - WaitForInputIdle(core::mem::transmute(hprocess), core::mem::transmute(dwmilliseconds)) + WaitForInputIdle(hprocess, dwmilliseconds) } #[inline] pub unsafe fn WaitForMultipleObjects(lphandles: &[super::super::Foundation::HANDLE], bwaitall: bool, dwmilliseconds: u32) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("kernel32.dll" "system" fn WaitForMultipleObjects(ncount : u32, lphandles : *const super::super::Foundation:: HANDLE, bwaitall : super::super::Foundation:: BOOL, dwmilliseconds : u32) -> super::super::Foundation:: WAIT_EVENT); - WaitForMultipleObjects(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.into(), core::mem::transmute(dwmilliseconds)) + WaitForMultipleObjects(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.into(), dwmilliseconds) } #[inline] pub unsafe fn WaitForMultipleObjectsEx(lphandles: &[super::super::Foundation::HANDLE], bwaitall: bool, dwmilliseconds: u32, balertable: bool) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("kernel32.dll" "system" fn WaitForMultipleObjectsEx(ncount : u32, lphandles : *const super::super::Foundation:: HANDLE, bwaitall : super::super::Foundation:: BOOL, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); - WaitForMultipleObjectsEx(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.into(), core::mem::transmute(dwmilliseconds), balertable.into()) + WaitForMultipleObjectsEx(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.into(), dwmilliseconds, balertable.into()) } #[inline] pub unsafe fn WaitForSingleObject(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObject(hhandle : super::super::Foundation:: HANDLE, dwmilliseconds : u32) -> super::super::Foundation:: WAIT_EVENT); - WaitForSingleObject(core::mem::transmute(hhandle), core::mem::transmute(dwmilliseconds)) + WaitForSingleObject(hhandle, dwmilliseconds) } #[inline] pub unsafe fn WaitForSingleObjectEx(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: bool) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObjectEx(hhandle : super::super::Foundation:: HANDLE, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); - WaitForSingleObjectEx(core::mem::transmute(hhandle), core::mem::transmute(dwmilliseconds), balertable.into()) + WaitForSingleObjectEx(hhandle, dwmilliseconds, balertable.into()) } #[inline] pub unsafe fn WaitForThreadpoolIoCallbacks(pio: PTP_IO, fcancelpendingcallbacks: bool) { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolIoCallbacks(pio : PTP_IO, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolIoCallbacks(core::mem::transmute(pio), fcancelpendingcallbacks.into()) + WaitForThreadpoolIoCallbacks(pio, fcancelpendingcallbacks.into()) } #[inline] pub unsafe fn WaitForThreadpoolTimerCallbacks(pti: PTP_TIMER, fcancelpendingcallbacks: bool) { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolTimerCallbacks(pti : PTP_TIMER, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolTimerCallbacks(core::mem::transmute(pti), fcancelpendingcallbacks.into()) + WaitForThreadpoolTimerCallbacks(pti, fcancelpendingcallbacks.into()) } #[inline] pub unsafe fn WaitForThreadpoolWaitCallbacks(pwa: PTP_WAIT, fcancelpendingcallbacks: bool) { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWaitCallbacks(pwa : PTP_WAIT, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolWaitCallbacks(core::mem::transmute(pwa), fcancelpendingcallbacks.into()) + WaitForThreadpoolWaitCallbacks(pwa, fcancelpendingcallbacks.into()) } #[inline] pub unsafe fn WaitForThreadpoolWorkCallbacks(pwk: PTP_WORK, fcancelpendingcallbacks: bool) { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWorkCallbacks(pwk : PTP_WORK, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolWorkCallbacks(core::mem::transmute(pwk), fcancelpendingcallbacks.into()) + WaitForThreadpoolWorkCallbacks(pwk, fcancelpendingcallbacks.into()) } #[inline] pub unsafe fn WaitOnAddress(address: *const core::ffi::c_void, compareaddress: *const core::ffi::c_void, addresssize: usize, dwmilliseconds: Option) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-synch-l1-2-0.dll" "system" fn WaitOnAddress(address : *const core::ffi::c_void, compareaddress : *const core::ffi::c_void, addresssize : usize, dwmilliseconds : u32) -> super::super::Foundation:: BOOL); - WaitOnAddress(core::mem::transmute(address), core::mem::transmute(compareaddress), core::mem::transmute(addresssize), core::mem::transmute(dwmilliseconds.unwrap_or(core::mem::zeroed()))).ok() + WaitOnAddress(address, compareaddress, addresssize, core::mem::transmute(dwmilliseconds.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn WakeAllConditionVariable(conditionvariable: *mut CONDITION_VARIABLE) { @@ -1986,12 +1962,12 @@ pub unsafe fn WakeAllConditionVariable(conditionvariable: *mut CONDITION_VARIABL #[inline] pub unsafe fn WakeByAddressAll(address: *const core::ffi::c_void) { windows_targets::link!("api-ms-win-core-synch-l1-2-0.dll" "system" fn WakeByAddressAll(address : *const core::ffi::c_void)); - WakeByAddressAll(core::mem::transmute(address)) + WakeByAddressAll(address) } #[inline] pub unsafe fn WakeByAddressSingle(address: *const core::ffi::c_void) { windows_targets::link!("api-ms-win-core-synch-l1-2-0.dll" "system" fn WakeByAddressSingle(address : *const core::ffi::c_void)); - WakeByAddressSingle(core::mem::transmute(address)) + WakeByAddressSingle(address) } #[inline] pub unsafe fn WakeConditionVariable(conditionvariable: *mut CONDITION_VARIABLE) { @@ -2004,17 +1980,17 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WinExec(lpcmdline : windows_core::PCSTR, ucmdshow : u32) -> u32); - WinExec(lpcmdline.param().abi(), core::mem::transmute(ucmdshow)) + WinExec(lpcmdline.param().abi(), ucmdshow) } #[inline] pub unsafe fn Wow64SetThreadDefaultGuestMachine(machine: u16) -> u16 { windows_targets::link!("api-ms-win-core-wow64-l1-1-1.dll" "system" fn Wow64SetThreadDefaultGuestMachine(machine : u16) -> u16); - Wow64SetThreadDefaultGuestMachine(core::mem::transmute(machine)) + Wow64SetThreadDefaultGuestMachine(machine) } #[inline] pub unsafe fn Wow64SuspendThread(hthread: super::super::Foundation::HANDLE) -> u32 { windows_targets::link!("kernel32.dll" "system" fn Wow64SuspendThread(hthread : super::super::Foundation:: HANDLE) -> u32); - Wow64SuspendThread(core::mem::transmute(hthread)) + Wow64SuspendThread(hthread) } pub const ABOVE_NORMAL_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(32768u32); pub const ALL_PROCESSOR_GROUPS: u16 = 65535u16; @@ -2253,7 +2229,7 @@ impl IRtwqAsyncResult { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetStatus(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), hrstatus).ok() } pub unsafe fn GetObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs index ffef467272..822d92cc6c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn EnumDynamicTimeZoneInformation(dwindex: u32, lptimezoneinformation: *mut DYNAMIC_TIME_ZONE_INFORMATION) -> u32 { windows_targets::link!("advapi32.dll" "system" fn EnumDynamicTimeZoneInformation(dwindex : u32, lptimezoneinformation : *mut DYNAMIC_TIME_ZONE_INFORMATION) -> u32); - EnumDynamicTimeZoneInformation(core::mem::transmute(dwindex), core::mem::transmute(lptimezoneinformation)) + EnumDynamicTimeZoneInformation(dwindex, core::mem::transmute(lptimezoneinformation)) } #[inline] pub unsafe fn FileTimeToSystemTime(lpfiletime: *const super::super::Foundation::FILETIME, lpsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FileTimeToSystemTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - FileTimeToSystemTime(core::mem::transmute(lpfiletime), core::mem::transmute(lpsystemtime)).ok() + FileTimeToSystemTime(lpfiletime, core::mem::transmute(lpsystemtime)).ok() } #[inline] pub unsafe fn GetDynamicTimeZoneInformation(ptimezoneinformation: *mut DYNAMIC_TIME_ZONE_INFORMATION) -> u32 { @@ -16,7 +16,7 @@ pub unsafe fn GetDynamicTimeZoneInformation(ptimezoneinformation: *mut DYNAMIC_T #[inline] pub unsafe fn GetDynamicTimeZoneInformationEffectiveYears(lptimezoneinformation: *const DYNAMIC_TIME_ZONE_INFORMATION, firstyear: *mut u32, lastyear: *mut u32) -> u32 { windows_targets::link!("advapi32.dll" "system" fn GetDynamicTimeZoneInformationEffectiveYears(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, firstyear : *mut u32, lastyear : *mut u32) -> u32); - GetDynamicTimeZoneInformationEffectiveYears(core::mem::transmute(lptimezoneinformation), core::mem::transmute(firstyear), core::mem::transmute(lastyear)) + GetDynamicTimeZoneInformationEffectiveYears(lptimezoneinformation, core::mem::transmute(firstyear), core::mem::transmute(lastyear)) } #[inline] pub unsafe fn GetTimeZoneInformation(lptimezoneinformation: *mut TIME_ZONE_INFORMATION) -> u32 { @@ -26,52 +26,52 @@ pub unsafe fn GetTimeZoneInformation(lptimezoneinformation: *mut TIME_ZONE_INFOR #[inline] pub unsafe fn GetTimeZoneInformationForYear(wyear: u16, pdtzi: Option<*const DYNAMIC_TIME_ZONE_INFORMATION>, ptzi: *mut TIME_ZONE_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn GetTimeZoneInformationForYear(wyear : u16, pdtzi : *const DYNAMIC_TIME_ZONE_INFORMATION, ptzi : *mut TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); - GetTimeZoneInformationForYear(core::mem::transmute(wyear), core::mem::transmute(pdtzi.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptzi)).ok() + GetTimeZoneInformationForYear(wyear, core::mem::transmute(pdtzi.unwrap_or(core::mem::zeroed())), core::mem::transmute(ptzi)).ok() } #[inline] pub unsafe fn LocalFileTimeToLocalSystemTime(timezoneinformation: Option<*const TIME_ZONE_INFORMATION>, localfiletime: *const super::super::Foundation::FILETIME, localsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn LocalFileTimeToLocalSystemTime(timezoneinformation : *const TIME_ZONE_INFORMATION, localfiletime : *const super::super::Foundation:: FILETIME, localsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - LocalFileTimeToLocalSystemTime(core::mem::transmute(timezoneinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(localfiletime), core::mem::transmute(localsystemtime)) + LocalFileTimeToLocalSystemTime(core::mem::transmute(timezoneinformation.unwrap_or(core::mem::zeroed())), localfiletime, core::mem::transmute(localsystemtime)) } #[inline] pub unsafe fn LocalSystemTimeToLocalFileTime(timezoneinformation: Option<*const TIME_ZONE_INFORMATION>, localsystemtime: *const super::super::Foundation::SYSTEMTIME, localfiletime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn LocalSystemTimeToLocalFileTime(timezoneinformation : *const TIME_ZONE_INFORMATION, localsystemtime : *const super::super::Foundation:: SYSTEMTIME, localfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - LocalSystemTimeToLocalFileTime(core::mem::transmute(timezoneinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(localsystemtime), core::mem::transmute(localfiletime)) + LocalSystemTimeToLocalFileTime(core::mem::transmute(timezoneinformation.unwrap_or(core::mem::zeroed())), localsystemtime, core::mem::transmute(localfiletime)) } #[inline] pub unsafe fn SetDynamicTimeZoneInformation(lptimezoneinformation: *const DYNAMIC_TIME_ZONE_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetDynamicTimeZoneInformation(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); - SetDynamicTimeZoneInformation(core::mem::transmute(lptimezoneinformation)).ok() + SetDynamicTimeZoneInformation(lptimezoneinformation).ok() } #[inline] pub unsafe fn SetTimeZoneInformation(lptimezoneinformation: *const TIME_ZONE_INFORMATION) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetTimeZoneInformation(lptimezoneinformation : *const TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); - SetTimeZoneInformation(core::mem::transmute(lptimezoneinformation)).ok() + SetTimeZoneInformation(lptimezoneinformation).ok() } #[inline] pub unsafe fn SystemTimeToFileTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SystemTimeToFileTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - SystemTimeToFileTime(core::mem::transmute(lpsystemtime), core::mem::transmute(lpfiletime)).ok() + SystemTimeToFileTime(lpsystemtime, core::mem::transmute(lpfiletime)).ok() } #[inline] pub unsafe fn SystemTimeToTzSpecificLocalTime(lptimezoneinformation: Option<*const TIME_ZONE_INFORMATION>, lpuniversaltime: *const super::super::Foundation::SYSTEMTIME, lplocaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SystemTimeToTzSpecificLocalTime(lptimezoneinformation : *const TIME_ZONE_INFORMATION, lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME, lplocaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - SystemTimeToTzSpecificLocalTime(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpuniversaltime), core::mem::transmute(lplocaltime)).ok() + SystemTimeToTzSpecificLocalTime(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), lpuniversaltime, core::mem::transmute(lplocaltime)).ok() } #[inline] pub unsafe fn SystemTimeToTzSpecificLocalTimeEx(lptimezoneinformation: Option<*const DYNAMIC_TIME_ZONE_INFORMATION>, lpuniversaltime: *const super::super::Foundation::SYSTEMTIME, lplocaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SystemTimeToTzSpecificLocalTimeEx(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME, lplocaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - SystemTimeToTzSpecificLocalTimeEx(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpuniversaltime), core::mem::transmute(lplocaltime)).ok() + SystemTimeToTzSpecificLocalTimeEx(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), lpuniversaltime, core::mem::transmute(lplocaltime)).ok() } #[inline] pub unsafe fn TzSpecificLocalTimeToSystemTime(lptimezoneinformation: Option<*const TIME_ZONE_INFORMATION>, lplocaltime: *const super::super::Foundation::SYSTEMTIME, lpuniversaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTime(lptimezoneinformation : *const TIME_ZONE_INFORMATION, lplocaltime : *const super::super::Foundation:: SYSTEMTIME, lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - TzSpecificLocalTimeToSystemTime(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplocaltime), core::mem::transmute(lpuniversaltime)).ok() + TzSpecificLocalTimeToSystemTime(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), lplocaltime, core::mem::transmute(lpuniversaltime)).ok() } #[inline] pub unsafe fn TzSpecificLocalTimeToSystemTimeEx(lptimezoneinformation: Option<*const DYNAMIC_TIME_ZONE_INFORMATION>, lplocaltime: *const super::super::Foundation::SYSTEMTIME, lpuniversaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTimeEx(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, lplocaltime : *const super::super::Foundation:: SYSTEMTIME, lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - TzSpecificLocalTimeToSystemTimeEx(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lplocaltime), core::mem::transmute(lpuniversaltime)).ok() + TzSpecificLocalTimeToSystemTimeEx(core::mem::transmute(lptimezoneinformation.unwrap_or(core::mem::zeroed())), lplocaltime, core::mem::transmute(lpuniversaltime)).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs index 0a3e7fcd7e..14a4efe8cf 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs @@ -11,32 +11,32 @@ pub unsafe fn GetDeviceIDString(pszwindowsaik: Option<&mut [u16]>, pcchresult: * #[inline] pub unsafe fn Tbsi_Context_Create(pcontextparams: *const TBS_CONTEXT_PARAMS, phcontext: *mut *mut core::ffi::c_void) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_Context_Create(pcontextparams : *const TBS_CONTEXT_PARAMS, phcontext : *mut *mut core::ffi::c_void) -> u32); - Tbsi_Context_Create(core::mem::transmute(pcontextparams), core::mem::transmute(phcontext)) + Tbsi_Context_Create(pcontextparams, core::mem::transmute(phcontext)) } #[inline] pub unsafe fn Tbsi_Create_Windows_Key(keyhandle: u32) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_Create_Windows_Key(keyhandle : u32) -> u32); - Tbsi_Create_Windows_Key(core::mem::transmute(keyhandle)) + Tbsi_Create_Windows_Key(keyhandle) } #[inline] pub unsafe fn Tbsi_GetDeviceInfo(size: u32, info: *mut core::ffi::c_void) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_GetDeviceInfo(size : u32, info : *mut core::ffi::c_void) -> u32); - Tbsi_GetDeviceInfo(core::mem::transmute(size), core::mem::transmute(info)) + Tbsi_GetDeviceInfo(size, core::mem::transmute(info)) } #[inline] pub unsafe fn Tbsi_Get_OwnerAuth(hcontext: *const core::ffi::c_void, ownerauthtype: u32, poutputbuf: Option<*mut u8>, poutputbuflen: *mut u32) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_Get_OwnerAuth(hcontext : *const core::ffi::c_void, ownerauthtype : u32, poutputbuf : *mut u8, poutputbuflen : *mut u32) -> u32); - Tbsi_Get_OwnerAuth(core::mem::transmute(hcontext), core::mem::transmute(ownerauthtype), core::mem::transmute(poutputbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutputbuflen)) + Tbsi_Get_OwnerAuth(hcontext, ownerauthtype, core::mem::transmute(poutputbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutputbuflen)) } #[inline] pub unsafe fn Tbsi_Get_TCG_Log(hcontext: *const core::ffi::c_void, poutputbuf: Option<*mut u8>, poutputbuflen: *mut u32) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_Get_TCG_Log(hcontext : *const core::ffi::c_void, poutputbuf : *mut u8, poutputbuflen : *mut u32) -> u32); - Tbsi_Get_TCG_Log(core::mem::transmute(hcontext), core::mem::transmute(poutputbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutputbuflen)) + Tbsi_Get_TCG_Log(hcontext, core::mem::transmute(poutputbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutputbuflen)) } #[inline] pub unsafe fn Tbsi_Get_TCG_Log_Ex(logtype: u32, pboutput: Option<*mut u8>, pcboutput: *mut u32) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_Get_TCG_Log_Ex(logtype : u32, pboutput : *mut u8, pcboutput : *mut u32) -> u32); - Tbsi_Get_TCG_Log_Ex(core::mem::transmute(logtype), core::mem::transmute(pboutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutput)) + Tbsi_Get_TCG_Log_Ex(logtype, core::mem::transmute(pboutput.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcboutput)) } #[inline] pub unsafe fn Tbsi_Is_Tpm_Present() -> super::super::Foundation::BOOL { @@ -46,7 +46,7 @@ pub unsafe fn Tbsi_Is_Tpm_Present() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn Tbsi_Physical_Presence_Command(hcontext: *const core::ffi::c_void, pabinput: &[u8], paboutput: *mut u8, pcboutput: *mut u32) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsi_Physical_Presence_Command(hcontext : *const core::ffi::c_void, pabinput : *const u8, cbinput : u32, paboutput : *mut u8, pcboutput : *mut u32) -> u32); - Tbsi_Physical_Presence_Command(core::mem::transmute(hcontext), core::mem::transmute(pabinput.as_ptr()), pabinput.len().try_into().unwrap(), core::mem::transmute(paboutput), core::mem::transmute(pcboutput)) + Tbsi_Physical_Presence_Command(hcontext, core::mem::transmute(pabinput.as_ptr()), pabinput.len().try_into().unwrap(), core::mem::transmute(paboutput), core::mem::transmute(pcboutput)) } #[inline] pub unsafe fn Tbsi_Revoke_Attestation() -> u32 { @@ -56,17 +56,17 @@ pub unsafe fn Tbsi_Revoke_Attestation() -> u32 { #[inline] pub unsafe fn Tbsip_Cancel_Commands(hcontext: *const core::ffi::c_void) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsip_Cancel_Commands(hcontext : *const core::ffi::c_void) -> u32); - Tbsip_Cancel_Commands(core::mem::transmute(hcontext)) + Tbsip_Cancel_Commands(hcontext) } #[inline] pub unsafe fn Tbsip_Context_Close(hcontext: *const core::ffi::c_void) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsip_Context_Close(hcontext : *const core::ffi::c_void) -> u32); - Tbsip_Context_Close(core::mem::transmute(hcontext)) + Tbsip_Context_Close(hcontext) } #[inline] pub unsafe fn Tbsip_Submit_Command(hcontext: *const core::ffi::c_void, locality: TBS_COMMAND_LOCALITY, priority: TBS_COMMAND_PRIORITY, pabcommand: &[u8], pabresult: *mut u8, pcbresult: *mut u32) -> u32 { windows_targets::link!("tbs.dll" "system" fn Tbsip_Submit_Command(hcontext : *const core::ffi::c_void, locality : TBS_COMMAND_LOCALITY, priority : TBS_COMMAND_PRIORITY, pabcommand : *const u8, cbcommand : u32, pabresult : *mut u8, pcbresult : *mut u32) -> u32); - Tbsip_Submit_Command(core::mem::transmute(hcontext), core::mem::transmute(locality), core::mem::transmute(priority), core::mem::transmute(pabcommand.as_ptr()), pabcommand.len().try_into().unwrap(), core::mem::transmute(pabresult), core::mem::transmute(pcbresult)) + Tbsip_Submit_Command(hcontext, locality, priority, core::mem::transmute(pabcommand.as_ptr()), pabcommand.len().try_into().unwrap(), core::mem::transmute(pabresult), core::mem::transmute(pcbresult)) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs index f9548543f4..78f504b9ee 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs @@ -184,10 +184,10 @@ windows_core::imp::interface_hierarchy!(IPackageUtil, windows_core::IUnknown, su #[cfg(feature = "Win32_System_Com")] impl IPackageUtil { pub unsafe fn InstallPackage(&self, bstrpackagefile: &windows_core::BSTR, bstrinstallpath: &windows_core::BSTR, loptions: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InstallPackage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpackagefile), core::mem::transmute_copy(bstrinstallpath), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).InstallPackage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpackagefile), core::mem::transmute_copy(bstrinstallpath), loptions).ok() } pub unsafe fn ExportPackage(&self, bstrpackageid: &windows_core::BSTR, bstrpackagefile: &windows_core::BSTR, loptions: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExportPackage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpackageid), core::mem::transmute_copy(bstrpackagefile), core::mem::transmute(loptions)).ok() + (windows_core::Interface::vtable(self).ExportPackage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpackageid), core::mem::transmute_copy(bstrpackagefile), loptions).ok() } pub unsafe fn ShutdownPackage(&self, bstrpackageid: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShutdownPackage)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpackageid)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs index 08575dd417..c2f787c940 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs @@ -292,7 +292,7 @@ impl IAutomaticUpdatesSettings { (windows_core::Interface::vtable(self).NotificationLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotificationLevel(&self, value: AutomaticUpdatesNotificationLevel) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotificationLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNotificationLevel)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -307,14 +307,14 @@ impl IAutomaticUpdatesSettings { (windows_core::Interface::vtable(self).ScheduledInstallationDay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScheduledInstallationDay(&self, value: AutomaticUpdatesScheduledInstallationDay) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScheduledInstallationDay)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetScheduledInstallationDay)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ScheduledInstallationTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ScheduledInstallationTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScheduledInstallationTime(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScheduledInstallationTime)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetScheduledInstallationTime)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -462,11 +462,11 @@ impl IAutomaticUpdatesSettings2 { (windows_core::Interface::vtable(self).IncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIncludeRecommendedUpdates(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn CheckPermission(&self, usertype: AutomaticUpdatesUserType, permissiontype: AutomaticUpdatesPermissionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckPermission)(windows_core::Interface::as_raw(self), core::mem::transmute(usertype), core::mem::transmute(permissiontype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckPermission)(windows_core::Interface::as_raw(self), usertype, permissiontype, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -541,14 +541,14 @@ impl IAutomaticUpdatesSettings3 { (windows_core::Interface::vtable(self).NonAdministratorsElevated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNonAdministratorsElevated(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNonAdministratorsElevated)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNonAdministratorsElevated)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn FeaturedUpdatesEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FeaturedUpdatesEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFeaturedUpdatesEnabled(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFeaturedUpdatesEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetFeaturedUpdatesEnabled)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -815,7 +815,7 @@ windows_core::imp::interface_hierarchy!(ICategoryCollection, windows_core::IUnkn impl ICategoryCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1120,7 +1120,7 @@ impl IDownloadProgress { } pub unsafe fn GetUpdateResult(&self, updateindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), core::mem::transmute(updateindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), updateindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CurrentUpdateDownloadPhase(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1380,7 +1380,7 @@ impl IDownloadResult { } pub unsafe fn GetUpdateResult(&self, updateindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), core::mem::transmute(updateindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), updateindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1563,7 +1563,7 @@ impl IInstallationAgent { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RecordInstallationResult)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(installationresultcookie), core::mem::transmute(hresult), extendedreportingdata.param().abi()).ok() + (windows_core::Interface::vtable(self).RecordInstallationResult)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(installationresultcookie), hresult, extendedreportingdata.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1916,7 +1916,7 @@ impl IInstallationProgress { } pub unsafe fn GetUpdateResult(&self, updateindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), core::mem::transmute(updateindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), updateindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2107,7 +2107,7 @@ impl IInstallationResult { } pub unsafe fn GetUpdateResult(&self, updateindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), core::mem::transmute(updateindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUpdateResult)(windows_core::Interface::as_raw(self), updateindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2511,10 +2511,10 @@ windows_core::imp::interface_hierarchy!(IStringCollection, windows_core::IUnknow impl IStringCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn put_Item(&self, index: i32, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index, core::mem::transmute_copy(value)).ok() } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2540,10 +2540,10 @@ impl IStringCollection { (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Insert(&self, index: i32, value: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute_copy(value)).ok() + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), index, core::mem::transmute_copy(value)).ok() } pub unsafe fn RemoveAt(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2829,7 +2829,7 @@ impl IUpdate { (windows_core::Interface::vtable(self).IsHidden)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsHidden(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2923,7 +2923,7 @@ impl IUpdate { (windows_core::Interface::vtable(self).DeploymentAction)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn CopyFromCache(&self, path: &windows_core::BSTR, toextractcabfiles: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyFromCache)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), core::mem::transmute(toextractcabfiles)).ok() + (windows_core::Interface::vtable(self).CopyFromCache)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3806,13 +3806,13 @@ windows_core::imp::interface_hierarchy!(IUpdateCollection, windows_core::IUnknow impl IUpdateCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_Item(&self, index: i32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3844,10 +3844,10 @@ impl IUpdateCollection { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(index), value.param().abi()).ok() + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), index, value.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4090,7 +4090,7 @@ windows_core::imp::interface_hierarchy!(IUpdateDownloadContentCollection, window impl IUpdateDownloadContentCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4251,14 +4251,14 @@ impl IUpdateDownloader { (windows_core::Interface::vtable(self).IsForced)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsForced(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPriority(&self, value: DownloadPriority) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Updates(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4535,7 +4535,7 @@ windows_core::imp::interface_hierarchy!(IUpdateExceptionCollection, windows_core impl IUpdateExceptionCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4943,7 +4943,7 @@ windows_core::imp::interface_hierarchy!(IUpdateHistoryEntryCollection, windows_c impl IUpdateHistoryEntryCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5194,14 +5194,14 @@ impl IUpdateInstaller { (windows_core::Interface::vtable(self).IsForced)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsForced(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ParentHwnd(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ParentHwnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetParentHwnd(&self, value: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParentHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetParentHwnd)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetParentWindow(&self, value: P0) -> windows_core::Result<()> where @@ -5276,7 +5276,7 @@ impl IUpdateInstaller { (windows_core::Interface::vtable(self).AllowSourcePrompts)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllowSourcePrompts(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn RebootRequiredBeforeInstallation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5565,7 +5565,7 @@ impl IUpdateInstaller2 { (windows_core::Interface::vtable(self).ForceQuiet)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForceQuiet(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForceQuiet)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetForceQuiet)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5627,7 +5627,7 @@ impl IUpdateInstaller3 { (windows_core::Interface::vtable(self).AttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttemptCloseAppsIfNecessary(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5685,7 +5685,7 @@ windows_core::imp::interface_hierarchy!(IUpdateInstaller4, windows_core::IUnknow #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller4 { pub unsafe fn Commit(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5717,7 +5717,7 @@ windows_core::imp::define_interface!(IUpdateLockdown, IUpdateLockdown_Vtbl, 0xa9 windows_core::imp::interface_hierarchy!(IUpdateLockdown, windows_core::IUnknown); impl IUpdateLockdown { pub unsafe fn LockDown(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockDown)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).LockDown)(windows_core::Interface::as_raw(self), flags).ok() } } #[repr(C)] @@ -5759,7 +5759,7 @@ impl IUpdateSearcher { (windows_core::Interface::vtable(self).CanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ClientApplicationID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5773,14 +5773,14 @@ impl IUpdateSearcher { (windows_core::Interface::vtable(self).IncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIncludePotentiallySupersededUpdates(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ServerSelection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ServerSelection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetServerSelection(&self, value: ServerSelection) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetServerSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetServerSelection)(windows_core::Interface::as_raw(self), value).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn BeginSearch(&self, criteria: &windows_core::BSTR, oncompleted: P1, state: &super::Variant::VARIANT) -> windows_core::Result @@ -5803,7 +5803,7 @@ impl IUpdateSearcher { } pub unsafe fn QueryHistory(&self, startindex: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHistory)(windows_core::Interface::as_raw(self), core::mem::transmute(startindex), core::mem::transmute(count), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryHistory)(windows_core::Interface::as_raw(self), startindex, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Search(&self, criteria: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5814,7 +5814,7 @@ impl IUpdateSearcher { (windows_core::Interface::vtable(self).Online)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOnline(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOnline)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOnline)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetTotalHistoryCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6068,7 +6068,7 @@ impl IUpdateSearcher2 { (windows_core::Interface::vtable(self).IgnoreDownloadPriority)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIgnoreDownloadPriority(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIgnoreDownloadPriority)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIgnoreDownloadPriority)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6130,7 +6130,7 @@ impl IUpdateSearcher3 { (windows_core::Interface::vtable(self).SearchScope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSearchScope(&self, value: SearchScope) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSearchScope)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSearchScope)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6498,7 +6498,7 @@ windows_core::imp::interface_hierarchy!(IUpdateServiceCollection, windows_core:: impl IUpdateServiceCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6601,7 +6601,7 @@ impl IUpdateServiceManager { } pub unsafe fn AddScanPackageService(&self, servicename: &windows_core::BSTR, scanfilelocation: &windows_core::BSTR, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddScanPackageService)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(servicename), core::mem::transmute_copy(scanfilelocation), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddScanPackageService)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(servicename), core::mem::transmute_copy(scanfilelocation), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetOption(&self, optionname: &windows_core::BSTR, optionvalue: &super::Variant::VARIANT) -> windows_core::Result<()> { @@ -6725,7 +6725,7 @@ impl IUpdateServiceManager2 { } pub unsafe fn AddService2(&self, serviceid: &windows_core::BSTR, flags: i32, authorizationcabpath: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddService2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(serviceid), core::mem::transmute(flags), core::mem::transmute_copy(authorizationcabpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddService2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(serviceid), flags, core::mem::transmute_copy(authorizationcabpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7076,7 +7076,7 @@ impl IUpdateSession2 { (windows_core::Interface::vtable(self).UserLocale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUserLocale(&self, lcid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUserLocale)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid)).ok() + (windows_core::Interface::vtable(self).SetUserLocale)(windows_core::Interface::as_raw(self), lcid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7139,7 +7139,7 @@ impl IUpdateSession3 { } pub unsafe fn QueryHistory(&self, criteria: &windows_core::BSTR, startindex: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHistory)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(criteria), core::mem::transmute(startindex), core::mem::transmute(count), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryHistory)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(criteria), startindex, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7224,7 +7224,7 @@ impl IWebProxy { (windows_core::Interface::vtable(self).BypassProxyOnLocal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBypassProxyOnLocal(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBypassProxyOnLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBypassProxyOnLocal)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7247,14 +7247,14 @@ impl IWebProxy { (windows_core::Interface::vtable(self).PromptForCredentials)(windows_core::Interface::as_raw(self), parentwindow.param().abi(), core::mem::transmute_copy(title)).ok() } pub unsafe fn PromptForCredentialsFromHwnd(&self, parentwindow: super::super::Foundation::HWND, title: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PromptForCredentialsFromHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(parentwindow), core::mem::transmute_copy(title)).ok() + (windows_core::Interface::vtable(self).PromptForCredentialsFromHwnd)(windows_core::Interface::as_raw(self), parentwindow, core::mem::transmute_copy(title)).ok() } pub unsafe fn AutoDetect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoDetect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoDetect(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoDetect)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAutoDetect)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8055,7 +8055,7 @@ windows_core::imp::interface_hierarchy!(IWindowsDriverUpdateEntryCollection, win impl IWindowsDriverUpdateEntryCollection { pub unsafe fn get_Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs b/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs index f3b79778b3..600aee0101 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs @@ -2,7 +2,7 @@ #[inline] pub unsafe fn UalInstrument(data: *const UAL_DATA_BLOB) -> windows_core::Result<()> { windows_targets::link!("ualapi.dll" "system" fn UalInstrument(data : *const UAL_DATA_BLOB) -> windows_core::HRESULT); - UalInstrument(core::mem::transmute(data)).ok() + UalInstrument(data).ok() } #[inline] pub unsafe fn UalRegisterProduct(wszproductname: P0, wszrolename: P1, wszguid: P2) -> windows_core::Result<()> @@ -18,13 +18,13 @@ where #[inline] pub unsafe fn UalStart(data: *const UAL_DATA_BLOB) -> windows_core::Result<()> { windows_targets::link!("ualapi.dll" "system" fn UalStart(data : *const UAL_DATA_BLOB) -> windows_core::HRESULT); - UalStart(core::mem::transmute(data)).ok() + UalStart(data).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn UalStop(data: *const UAL_DATA_BLOB) -> windows_core::Result<()> { windows_targets::link!("ualapi.dll" "system" fn UalStop(data : *const UAL_DATA_BLOB) -> windows_core::HRESULT); - UalStop(core::mem::transmute(data)).ok() + UalStop(data).ok() } #[repr(C)] #[cfg(feature = "Win32_Networking_WinSock")] diff --git a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs index 7ebe3273e6..3c3121145c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs @@ -7,7 +7,7 @@ pub unsafe fn ClearVariantArray(pvars: &mut [VARIANT]) { #[inline] pub unsafe fn DosDateTimeToVariantTime(wdosdate: u16, wdostime: u16, pvtime: *mut f64) -> i32 { windows_targets::link!("oleaut32.dll" "system" fn DosDateTimeToVariantTime(wdosdate : u16, wdostime : u16, pvtime : *mut f64) -> i32); - DosDateTimeToVariantTime(core::mem::transmute(wdosdate), core::mem::transmute(wdostime), core::mem::transmute(pvtime)) + DosDateTimeToVariantTime(wdosdate, wdostime, core::mem::transmute(pvtime)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -21,7 +21,7 @@ pub unsafe fn InitVariantFromBooleanArray(prgf: &[super::super::Foundation::BOOL pub unsafe fn InitVariantFromBuffer(pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitVariantFromBuffer(pv : *const core::ffi::c_void, cb : u32, pvar : *mut VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitVariantFromBuffer(core::mem::transmute(pv), core::mem::transmute(cb), &mut result__).map(|| core::mem::transmute(result__)) + InitVariantFromBuffer(pv, cb, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -35,7 +35,7 @@ pub unsafe fn InitVariantFromDoubleArray(prgn: &[f64]) -> windows_core::Result windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitVariantFromFileTime(pft : *const super::super::Foundation:: FILETIME, pvar : *mut VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitVariantFromFileTime(core::mem::transmute(pft), &mut result__).map(|| core::mem::transmute(result__)) + InitVariantFromFileTime(pft, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -49,7 +49,7 @@ pub unsafe fn InitVariantFromFileTimeArray(prgft: Option<&[super::super::Foundat pub unsafe fn InitVariantFromGUIDAsString(guid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitVariantFromGUIDAsString(guid : *const windows_core::GUID, pvar : *mut VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitVariantFromGUIDAsString(core::mem::transmute(guid), &mut result__).map(|| core::mem::transmute(result__)) + InitVariantFromGUIDAsString(guid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -77,7 +77,7 @@ pub unsafe fn InitVariantFromInt64Array(prgn: &[i64]) -> windows_core::Result windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitVariantFromResource(hinst : super::super::Foundation:: HINSTANCE, id : u32, pvar : *mut VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitVariantFromResource(core::mem::transmute(hinst), core::mem::transmute(id), &mut result__).map(|| core::mem::transmute(result__)) + InitVariantFromResource(hinst, id, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -112,72 +112,72 @@ pub unsafe fn InitVariantFromUInt64Array(prgn: &[u64]) -> windows_core::Result windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitVariantFromVariantArrayElem(varin : *const VARIANT, ielem : u32, pvar : *mut VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitVariantFromVariantArrayElem(core::mem::transmute(varin), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + InitVariantFromVariantArrayElem(core::mem::transmute(varin), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SystemTimeToVariantTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME, pvtime: *mut f64) -> i32 { windows_targets::link!("oleaut32.dll" "system" fn SystemTimeToVariantTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME, pvtime : *mut f64) -> i32); - SystemTimeToVariantTime(core::mem::transmute(lpsystemtime), core::mem::transmute(pvtime)) + SystemTimeToVariantTime(lpsystemtime, core::mem::transmute(pvtime)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserFree(param0: *const u32, param1: *const VARIANT) { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserFree(param0 : *const u32, param1 : *const VARIANT)); - VARIANT_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + VARIANT_UserFree(param0, core::mem::transmute(param1)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserFree64(param0: *const u32, param1: *const VARIANT) { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserFree64(param0 : *const u32, param1 : *const VARIANT)); - VARIANT_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + VARIANT_UserFree64(param0, core::mem::transmute(param1)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const VARIANT) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const VARIANT) -> *mut u8); - VARIANT_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + VARIANT_UserMarshal(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const VARIANT) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const VARIANT) -> *mut u8); - VARIANT_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + VARIANT_UserMarshal64(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserSize(param0: *const u32, param1: u32, param2: *const VARIANT) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserSize(param0 : *const u32, param1 : u32, param2 : *const VARIANT) -> u32); - VARIANT_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + VARIANT_UserSize(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserSize64(param0: *const u32, param1: u32, param2: *const VARIANT) -> u32 { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserSize64(param0 : *const u32, param1 : u32, param2 : *const VARIANT) -> u32); - VARIANT_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + VARIANT_UserSize64(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut VARIANT) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut VARIANT) -> *mut u8); - VARIANT_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + VARIANT_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VARIANT_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut VARIANT) -> *mut u8 { windows_targets::link!("oleaut32.dll" "system" fn VARIANT_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut VARIANT) -> *mut u8); - VARIANT_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + VARIANT_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantChangeType(pvargdest: *mut VARIANT, pvarsrc: *const VARIANT, wflags: VAR_CHANGE_FLAGS, vt: VARENUM) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VariantChangeType(pvargdest : *mut VARIANT, pvarsrc : *const VARIANT, wflags : VAR_CHANGE_FLAGS, vt : VARENUM) -> windows_core::HRESULT); - VariantChangeType(core::mem::transmute(pvargdest), core::mem::transmute(pvarsrc), core::mem::transmute(wflags), core::mem::transmute(vt)).ok() + VariantChangeType(core::mem::transmute(pvargdest), core::mem::transmute(pvarsrc), wflags, vt).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantChangeTypeEx(pvargdest: *mut VARIANT, pvarsrc: *const VARIANT, lcid: u32, wflags: VAR_CHANGE_FLAGS, vt: VARENUM) -> windows_core::Result<()> { windows_targets::link!("oleaut32.dll" "system" fn VariantChangeTypeEx(pvargdest : *mut VARIANT, pvarsrc : *const VARIANT, lcid : u32, wflags : VAR_CHANGE_FLAGS, vt : VARENUM) -> windows_core::HRESULT); - VariantChangeTypeEx(core::mem::transmute(pvargdest), core::mem::transmute(pvarsrc), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(vt)).ok() + VariantChangeTypeEx(core::mem::transmute(pvargdest), core::mem::transmute(pvarsrc), lcid, wflags, vt).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -208,14 +208,14 @@ pub unsafe fn VariantCopyInd(pvardest: *mut VARIANT, pvargsrc: *const VARIANT) - pub unsafe fn VariantGetBooleanElem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetBooleanElem(var : *const VARIANT, ielem : u32, pfval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetBooleanElem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetBooleanElem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetDoubleElem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetDoubleElem(var : *const VARIANT, ielem : u32, pnval : *mut f64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetDoubleElem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetDoubleElem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -228,49 +228,49 @@ pub unsafe fn VariantGetElementCount(varin: *const VARIANT) -> u32 { pub unsafe fn VariantGetInt16Elem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetInt16Elem(var : *const VARIANT, ielem : u32, pnval : *mut i16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetInt16Elem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetInt16Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetInt32Elem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetInt32Elem(var : *const VARIANT, ielem : u32, pnval : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetInt32Elem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetInt32Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetInt64Elem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetInt64Elem(var : *const VARIANT, ielem : u32, pnval : *mut i64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetInt64Elem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetInt64Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetStringElem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetStringElem(var : *const VARIANT, ielem : u32, ppszval : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetStringElem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetStringElem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetUInt16Elem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetUInt16Elem(var : *const VARIANT, ielem : u32, pnval : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetUInt16Elem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetUInt16Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetUInt32Elem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetUInt32Elem(var : *const VARIANT, ielem : u32, pnval : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetUInt32Elem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetUInt32Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantGetUInt64Elem(var: *const VARIANT, ielem: u32) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantGetUInt64Elem(var : *const VARIANT, ielem : u32, pnval : *mut u64) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantGetUInt64Elem(core::mem::transmute(var), core::mem::transmute(ielem), &mut result__).map(|| core::mem::transmute(result__)) + VariantGetUInt64Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -283,12 +283,12 @@ pub unsafe fn VariantInit() -> VARIANT { #[inline] pub unsafe fn VariantTimeToDosDateTime(vtime: f64, pwdosdate: *mut u16, pwdostime: *mut u16) -> i32 { windows_targets::link!("oleaut32.dll" "system" fn VariantTimeToDosDateTime(vtime : f64, pwdosdate : *mut u16, pwdostime : *mut u16) -> i32); - VariantTimeToDosDateTime(core::mem::transmute(vtime), core::mem::transmute(pwdosdate), core::mem::transmute(pwdostime)) + VariantTimeToDosDateTime(vtime, core::mem::transmute(pwdosdate), core::mem::transmute(pwdostime)) } #[inline] pub unsafe fn VariantTimeToSystemTime(vtime: f64, lpsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> i32 { windows_targets::link!("oleaut32.dll" "system" fn VariantTimeToSystemTime(vtime : f64, lpsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> i32); - VariantTimeToSystemTime(core::mem::transmute(vtime), core::mem::transmute(lpsystemtime)) + VariantTimeToSystemTime(vtime, core::mem::transmute(lpsystemtime)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -319,7 +319,7 @@ pub unsafe fn VariantToBooleanWithDefault(varin: *const VARIANT, fdefault: bool) #[inline] pub unsafe fn VariantToBuffer(varin: *const VARIANT, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn VariantToBuffer(varin : *const VARIANT, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::HRESULT); - VariantToBuffer(core::mem::transmute(varin), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + VariantToBuffer(core::mem::transmute(varin), core::mem::transmute(pv), cb).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -350,14 +350,14 @@ pub unsafe fn VariantToDoubleArrayAlloc(var: *const VARIANT, pprgn: *mut *mut f6 #[inline] pub unsafe fn VariantToDoubleWithDefault(varin: *const VARIANT, dbldefault: f64) -> f64 { windows_targets::link!("propsys.dll" "system" fn VariantToDoubleWithDefault(varin : *const VARIANT, dbldefault : f64) -> f64); - VariantToDoubleWithDefault(core::mem::transmute(varin), core::mem::transmute(dbldefault)) + VariantToDoubleWithDefault(core::mem::transmute(varin), dbldefault) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn VariantToFileTime(varin: *const VARIANT, stfout: PSTIME_FLAGS) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn VariantToFileTime(varin : *const VARIANT, stfout : PSTIME_FLAGS, pftout : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - VariantToFileTime(core::mem::transmute(varin), core::mem::transmute(stfout), &mut result__).map(|| core::mem::transmute(result__)) + VariantToFileTime(core::mem::transmute(varin), stfout, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -389,7 +389,7 @@ pub unsafe fn VariantToInt16ArrayAlloc(var: *const VARIANT, pprgn: *mut *mut i16 #[inline] pub unsafe fn VariantToInt16WithDefault(varin: *const VARIANT, idefault: i16) -> i16 { windows_targets::link!("propsys.dll" "system" fn VariantToInt16WithDefault(varin : *const VARIANT, idefault : i16) -> i16); - VariantToInt16WithDefault(core::mem::transmute(varin), core::mem::transmute(idefault)) + VariantToInt16WithDefault(core::mem::transmute(varin), idefault) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -414,7 +414,7 @@ pub unsafe fn VariantToInt32ArrayAlloc(var: *const VARIANT, pprgn: *mut *mut i32 #[inline] pub unsafe fn VariantToInt32WithDefault(varin: *const VARIANT, ldefault: i32) -> i32 { windows_targets::link!("propsys.dll" "system" fn VariantToInt32WithDefault(varin : *const VARIANT, ldefault : i32) -> i32); - VariantToInt32WithDefault(core::mem::transmute(varin), core::mem::transmute(ldefault)) + VariantToInt32WithDefault(core::mem::transmute(varin), ldefault) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -439,7 +439,7 @@ pub unsafe fn VariantToInt64ArrayAlloc(var: *const VARIANT, pprgn: *mut *mut i64 #[inline] pub unsafe fn VariantToInt64WithDefault(varin: *const VARIANT, lldefault: i64) -> i64 { windows_targets::link!("propsys.dll" "system" fn VariantToInt64WithDefault(varin : *const VARIANT, lldefault : i64) -> i64); - VariantToInt64WithDefault(core::mem::transmute(varin), core::mem::transmute(lldefault)) + VariantToInt64WithDefault(core::mem::transmute(varin), lldefault) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -498,7 +498,7 @@ pub unsafe fn VariantToUInt16ArrayAlloc(var: *const VARIANT, pprgn: *mut *mut u1 #[inline] pub unsafe fn VariantToUInt16WithDefault(varin: *const VARIANT, uidefault: u16) -> u16 { windows_targets::link!("propsys.dll" "system" fn VariantToUInt16WithDefault(varin : *const VARIANT, uidefault : u16) -> u16); - VariantToUInt16WithDefault(core::mem::transmute(varin), core::mem::transmute(uidefault)) + VariantToUInt16WithDefault(core::mem::transmute(varin), uidefault) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -523,7 +523,7 @@ pub unsafe fn VariantToUInt32ArrayAlloc(var: *const VARIANT, pprgn: *mut *mut u3 #[inline] pub unsafe fn VariantToUInt32WithDefault(varin: *const VARIANT, uldefault: u32) -> u32 { windows_targets::link!("propsys.dll" "system" fn VariantToUInt32WithDefault(varin : *const VARIANT, uldefault : u32) -> u32); - VariantToUInt32WithDefault(core::mem::transmute(varin), core::mem::transmute(uldefault)) + VariantToUInt32WithDefault(core::mem::transmute(varin), uldefault) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -548,7 +548,7 @@ pub unsafe fn VariantToUInt64ArrayAlloc(var: *const VARIANT, pprgn: *mut *mut u6 #[inline] pub unsafe fn VariantToUInt64WithDefault(varin: *const VARIANT, ulldefault: u64) -> u64 { windows_targets::link!("propsys.dll" "system" fn VariantToUInt64WithDefault(varin : *const VARIANT, ulldefault : u64) -> u64); - VariantToUInt64WithDefault(core::mem::transmute(varin), core::mem::transmute(ulldefault)) + VariantToUInt64WithDefault(core::mem::transmute(varin), ulldefault) } pub const DPF_ERROR: DRAWPROGRESSFLAGS = DRAWPROGRESSFLAGS(4i32); pub const DPF_MARQUEE: DRAWPROGRESSFLAGS = DRAWPROGRESSFLAGS(1i32); diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs index be1759ad9d..bf3f7622a8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs @@ -6,7 +6,7 @@ impl IWindowsDevicesAllJoynBusAttachmentFactoryInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromWin32Handle)(windows_core::Interface::as_raw(self), core::mem::transmute(win32handle), core::mem::transmute(enableaboutdata), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromWin32Handle)(windows_core::Interface::as_raw(self), win32handle, enableaboutdata, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -79,7 +79,7 @@ impl IWindowsDevicesAllJoynBusObjectFactoryInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromWin32Handle)(windows_core::Interface::as_raw(self), core::mem::transmute(win32handle), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromWin32Handle)(windows_core::Interface::as_raw(self), win32handle, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -110,10 +110,10 @@ windows_core::imp::define_interface!(IWindowsDevicesAllJoynBusObjectInterop, IWi windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusObjectInterop, windows_core::IUnknown, windows_core::IInspectable); impl IWindowsDevicesAllJoynBusObjectInterop { pub unsafe fn AddPropertyGetHandler(&self, context: *const core::ffi::c_void, interfacename: &windows_core::HSTRING, callback: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertyGetHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(interfacename), core::mem::transmute(callback)).ok() + (windows_core::Interface::vtable(self).AddPropertyGetHandler)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(interfacename), callback).ok() } pub unsafe fn AddPropertySetHandler(&self, context: *const core::ffi::c_void, interfacename: &windows_core::HSTRING, callback: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertySetHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(context), core::mem::transmute_copy(interfacename), core::mem::transmute(callback)).ok() + (windows_core::Interface::vtable(self).AddPropertySetHandler)(windows_core::Interface::as_raw(self), context, core::mem::transmute_copy(interfacename), callback).ok() } pub unsafe fn Win32Handle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/mod.rs index 7060196108..f85e9e2ac2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/mod.rs @@ -4,7 +4,7 @@ impl ICompositionCapabilitiesInteropFactory { #[cfg(feature = "UI_Composition")] pub unsafe fn GetForWindow(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -60,7 +60,7 @@ impl ICompositionDrawingSurfaceInterop { (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(sizepixels)).ok() } pub unsafe fn Scroll(&self, scrollrect: Option<*const super::super::super::Foundation::RECT>, cliprect: Option<*const super::super::super::Foundation::RECT>, offsetx: i32, offsety: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), core::mem::transmute(scrollrect.unwrap_or(core::mem::zeroed())), core::mem::transmute(cliprect.unwrap_or(core::mem::zeroed())), core::mem::transmute(offsetx), core::mem::transmute(offsety)).ok() + (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), core::mem::transmute(scrollrect.unwrap_or(core::mem::zeroed())), core::mem::transmute(cliprect.unwrap_or(core::mem::zeroed())), offsetx, offsety).ok() } pub unsafe fn ResumeDraw(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResumeDraw)(windows_core::Interface::as_raw(self)).ok() @@ -141,7 +141,7 @@ impl ICompositionDrawingSurfaceInterop2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySurface)(windows_core::Interface::as_raw(self), destinationresource.param().abi(), core::mem::transmute(destinationoffsetx), core::mem::transmute(destinationoffsety), core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).CopySurface)(windows_core::Interface::as_raw(self), destinationresource.param().abi(), destinationoffsetx, destinationoffsety, core::mem::transmute(sourcerectangle.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -220,7 +220,7 @@ windows_core::imp::define_interface!(ICompositionTextureInterop, ICompositionTex windows_core::imp::interface_hierarchy!(ICompositionTextureInterop, windows_core::IUnknown); impl ICompositionTextureInterop { pub unsafe fn GetAvailableFence(&self, fencevalue: *mut u64, iid: *const windows_core::GUID, availablefence: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAvailableFence)(windows_core::Interface::as_raw(self), core::mem::transmute(fencevalue), core::mem::transmute(iid), core::mem::transmute(availablefence)).ok() + (windows_core::Interface::vtable(self).GetAvailableFence)(windows_core::Interface::as_raw(self), core::mem::transmute(fencevalue), iid, core::mem::transmute(availablefence)).ok() } } #[repr(C)] @@ -250,10 +250,10 @@ impl ICompositorDesktopInterop { #[cfg(feature = "UI_Composition_Desktop")] pub unsafe fn CreateDesktopWindowTarget(&self, hwndtarget: super::super::super::Foundation::HWND, istopmost: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDesktopWindowTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtarget), istopmost.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDesktopWindowTarget)(windows_core::Interface::as_raw(self), hwndtarget, istopmost.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnsureOnThread(&self, threadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnsureOnThread)(windows_core::Interface::as_raw(self), core::mem::transmute(threadid)).ok() + (windows_core::Interface::vtable(self).EnsureOnThread)(windows_core::Interface::as_raw(self), threadid).ok() } } #[repr(C)] @@ -305,7 +305,7 @@ impl ICompositorInterop { #[cfg(feature = "UI_Composition")] pub unsafe fn CreateCompositionSurfaceForHandle(&self, swapchain: super::super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCompositionSurfaceForHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(swapchain), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompositionSurfaceForHandle)(windows_core::Interface::as_raw(self), swapchain, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "UI_Composition")] pub unsafe fn CreateCompositionSurfaceForSwapChain(&self, swapchain: P0) -> windows_core::Result @@ -500,7 +500,7 @@ windows_core::imp::interface_hierarchy!(IVisualInteractionSourceInterop, windows impl IVisualInteractionSourceInterop { #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TryRedirectForManipulation(&self, pointerinfo: *const super::super::super::UI::Input::Pointer::POINTER_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TryRedirectForManipulation)(windows_core::Interface::as_raw(self), core::mem::transmute(pointerinfo)).ok() + (windows_core::Interface::vtable(self).TryRedirectForManipulation)(windows_core::Interface::as_raw(self), pointerinfo).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/mod.rs index 56fe9ff068..61a81e0e25 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/mod.rs @@ -6,7 +6,7 @@ impl ICoreFrameworkInputViewInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/mod.rs index acda5b575a..fa15431835 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/mod.rs @@ -7,11 +7,11 @@ impl IDisplayDeviceInterop { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(psecurityattributes), core::mem::transmute(access), core::mem::transmute_copy(name), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), psecurityattributes, access, core::mem::transmute_copy(name), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: super::super::super::Foundation::HANDLE, riid: windows_core::GUID) -> windows_core::Result<*mut core::ffi::c_void> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(nthandle), core::mem::transmute(riid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle, core::mem::transmute(riid), &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/mod.rs index 51a5003de4..f0d90ea1a0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/mod.rs @@ -6,7 +6,7 @@ impl IGraphicsCaptureItemInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(window), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), window, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateForMonitor(&self, monitor: super::super::super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result @@ -14,7 +14,7 @@ impl IGraphicsCaptureItemInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(monitor), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateForMonitor)(windows_core::Interface::as_raw(self), monitor, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/mod.rs index 6d81b0f438..8854ba22dd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/mod.rs @@ -100,12 +100,12 @@ impl IGraphicsEffectD2D1Interop { } pub unsafe fn GetProperty(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Graphics_Effects")] pub unsafe fn GetSource(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSource)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSource)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSourceCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/mod.rs index b1d517fe39..ce23d180e8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/mod.rs @@ -50,7 +50,7 @@ impl ISoftwareBitmapNativeFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromMF2DBuffer2)(windows_core::Interface::as_raw(self), data.param().abi(), core::mem::transmute(subtype), core::mem::transmute(width), core::mem::transmute(height), forcereadonly.into(), core::mem::transmute(mindisplayaperture.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromMF2DBuffer2)(windows_core::Interface::as_raw(self), data.param().abi(), subtype, width, height, forcereadonly.into(), core::mem::transmute(mindisplayaperture.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/mod.rs index 591b18f1fa..7dd084bbc0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/mod.rs @@ -7,7 +7,7 @@ impl IHolographicCameraInterop { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12BackBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(ptexture2ddesc), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirect3D12BackBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), ptexture2ddesc, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateDirect3D12HardwareProtectedBackBufferResource(&self, pdevice: P0, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: P2) -> windows_core::Result @@ -16,7 +16,7 @@ impl IHolographicCameraInterop { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12HardwareProtectedBackBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(ptexture2ddesc), pprotectedresourcesession.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirect3D12HardwareProtectedBackBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), ptexture2ddesc, pprotectedresourcesession.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn AcquireDirect3D12BufferResource(&self, presourcetoacquire: P0, pcommandqueue: P1) -> windows_core::Result<()> @@ -32,7 +32,7 @@ impl IHolographicCameraInterop { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResourceWithTimeout)(windows_core::Interface::as_raw(self), presourcetoacquire.param().abi(), pcommandqueue.param().abi(), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResourceWithTimeout)(windows_core::Interface::as_raw(self), presourcetoacquire.param().abi(), pcommandqueue.param().abi(), duration).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn UnacquireDirect3D12BufferResource(&self, presourcetounacquire: P0) -> windows_core::Result<()> @@ -133,7 +133,7 @@ impl IHolographicCameraRenderingParametersInterop { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitDirect3D12Resource)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.param().abi(), pcolorresourcefence.param().abi(), core::mem::transmute(colorresourcefencesignalvalue)).ok() + (windows_core::Interface::vtable(self).CommitDirect3D12Resource)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.param().abi(), pcolorresourcefence.param().abi(), colorresourcefencesignalvalue).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CommitDirect3D12ResourceWithDepthData(&self, pcolorresourcetocommit: P0, pcolorresourcefence: P1, colorresourcefencesignalvalue: u64, pdepthresourcetocommit: P3, pdepthresourcefence: P4, depthresourcefencesignalvalue: u64) -> windows_core::Result<()> @@ -143,7 +143,7 @@ impl IHolographicCameraRenderingParametersInterop { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitDirect3D12ResourceWithDepthData)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.param().abi(), pcolorresourcefence.param().abi(), core::mem::transmute(colorresourcefencesignalvalue), pdepthresourcetocommit.param().abi(), pdepthresourcefence.param().abi(), core::mem::transmute(depthresourcefencesignalvalue)).ok() + (windows_core::Interface::vtable(self).CommitDirect3D12ResourceWithDepthData)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.param().abi(), pcolorresourcefence.param().abi(), colorresourcefencesignalvalue, pdepthresourcetocommit.param().abi(), pdepthresourcefence.param().abi(), depthresourcefencesignalvalue).ok() } } #[repr(C)] @@ -195,7 +195,7 @@ impl IHolographicQuadLayerInterop { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12ContentBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(ptexture2ddesc), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirect3D12ContentBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), ptexture2ddesc, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateDirect3D12HardwareProtectedContentBufferResource(&self, pdevice: P0, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: P2) -> windows_core::Result @@ -204,7 +204,7 @@ impl IHolographicQuadLayerInterop { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12HardwareProtectedContentBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(ptexture2ddesc), pprotectedresourcesession.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirect3D12HardwareProtectedContentBufferResource)(windows_core::Interface::as_raw(self), pdevice.param().abi(), ptexture2ddesc, pprotectedresourcesession.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn AcquireDirect3D12BufferResource(&self, presourcetoacquire: P0, pcommandqueue: P1) -> windows_core::Result<()> @@ -220,7 +220,7 @@ impl IHolographicQuadLayerInterop { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResourceWithTimeout)(windows_core::Interface::as_raw(self), presourcetoacquire.param().abi(), pcommandqueue.param().abi(), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResourceWithTimeout)(windows_core::Interface::as_raw(self), presourcetoacquire.param().abi(), pcommandqueue.param().abi(), duration).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn UnacquireDirect3D12BufferResource(&self, presourcetounacquire: P0) -> windows_core::Result<()> @@ -321,7 +321,7 @@ impl IHolographicQuadLayerUpdateParametersInterop { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitDirect3D12Resource)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.param().abi(), pcolorresourcefence.param().abi(), core::mem::transmute(colorresourcefencesignalvalue)).ok() + (windows_core::Interface::vtable(self).CommitDirect3D12Resource)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.param().abi(), pcolorresourcefence.param().abi(), colorresourcefencesignalvalue).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/mod.rs index 29cf10a6b5..ccc25b0b69 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/mod.rs @@ -3,7 +3,7 @@ windows_core::imp::interface_hierarchy!(IIsolatedEnvironmentInterop, windows_cor impl IIsolatedEnvironmentInterop { pub unsafe fn GetHostHwndInterop(&self, containerhwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHostHwndInterop)(windows_core::Interface::as_raw(self), core::mem::transmute(containerhwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetHostHwndInterop)(windows_core::Interface::as_raw(self), containerhwnd, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/mod.rs index 1dbf464289..05ca68e5b8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/mod.rs @@ -89,7 +89,7 @@ windows_core::imp::define_interface!(ILearningModelSessionOptionsNative, ILearni windows_core::imp::interface_hierarchy!(ILearningModelSessionOptionsNative, windows_core::IUnknown); impl ILearningModelSessionOptionsNative { pub unsafe fn SetIntraOpNumThreadsOverride(&self, intraopnumthreads: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIntraOpNumThreadsOverride)(windows_core::Interface::as_raw(self), core::mem::transmute(intraopnumthreads)).ok() + (windows_core::Interface::vtable(self).SetIntraOpNumThreadsOverride)(windows_core::Interface::as_raw(self), intraopnumthreads).ok() } } #[repr(C)] @@ -117,7 +117,7 @@ windows_core::imp::define_interface!(ILearningModelSessionOptionsNative1, ILearn windows_core::imp::interface_hierarchy!(ILearningModelSessionOptionsNative1, windows_core::IUnknown); impl ILearningModelSessionOptionsNative1 { pub unsafe fn SetIntraOpThreadSpinning(&self, allowspinning: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIntraOpThreadSpinning)(windows_core::Interface::as_raw(self), core::mem::transmute(allowspinning)).ok() + (windows_core::Interface::vtable(self).SetIntraOpThreadSpinning)(windows_core::Interface::as_raw(self), allowspinning).ok() } } #[repr(C)] @@ -204,7 +204,7 @@ impl ITensorStaticsNative { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateFromD3D12Resource)(windows_core::Interface::as_raw(self), value.param().abi(), core::mem::transmute(shape), core::mem::transmute(shapecount), core::mem::transmute(result)).ok() + (windows_core::Interface::vtable(self).CreateFromD3D12Resource)(windows_core::Interface::as_raw(self), value.param().abi(), core::mem::transmute(shape), shapecount, core::mem::transmute(result)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/mod.rs index d81a8737cc..ea27792f84 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/mod.rs @@ -135,7 +135,7 @@ impl IVideoFrameNativeFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromMFSample)(windows_core::Interface::as_raw(self), data.param().abi(), core::mem::transmute(subtype), core::mem::transmute(width), core::mem::transmute(height), forcereadonly.into(), core::mem::transmute(mindisplayaperture.unwrap_or(core::mem::zeroed())), device.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromMFSample)(windows_core::Interface::as_raw(self), data.param().abi(), subtype, width, height, forcereadonly.into(), core::mem::transmute(mindisplayaperture.unwrap_or(core::mem::zeroed())), device.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs index 8cef0c7b67..d390c47ae2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn MetaDataGetDispenser(rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("rometadata.dll" "system" fn MetaDataGetDispenser(rclsid : *const windows_core::GUID, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - MetaDataGetDispenser(core::mem::transmute(rclsid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + MetaDataGetDispenser(rclsid, riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Foundation_Collections")] #[inline] @@ -20,7 +20,7 @@ pub unsafe fn RoCreatePropertySetSerializer() -> windows_core::Result(name: &windows_core::HSTRING, metadatadispenser: P1, metadatafilepath: Option<*mut windows_core::HSTRING>, metadataimport: Option<*mut Option>, typedeftoken: Option<*mut u32>) -> windows_core::Result<()> @@ -45,7 +45,7 @@ where { windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-1.dll" "system" fn RoIsApiContractMajorVersionPresent(name : windows_core::PCWSTR, majorversion : u16, present : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoIsApiContractMajorVersionPresent(name.param().abi(), core::mem::transmute(majorversion), &mut result__).map(|| core::mem::transmute(result__)) + RoIsApiContractMajorVersionPresent(name.param().abi(), majorversion, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RoIsApiContractPresent(name: P0, majorversion: u16, minorversion: u16) -> windows_core::Result @@ -54,12 +54,12 @@ where { windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-1.dll" "system" fn RoIsApiContractPresent(name : windows_core::PCWSTR, majorversion : u16, minorversion : u16, present : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoIsApiContractPresent(name.param().abi(), core::mem::transmute(majorversion), core::mem::transmute(minorversion), &mut result__).map(|| core::mem::transmute(result__)) + RoIsApiContractPresent(name.param().abi(), majorversion, minorversion, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RoParameterizedTypeExtraGetTypeSignature(extra: ROPARAMIIDHANDLE) -> windows_core::PCSTR { windows_targets::link!("api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll" "system" fn RoParameterizedTypeExtraGetTypeSignature(extra : ROPARAMIIDHANDLE) -> windows_core::PCSTR); - RoParameterizedTypeExtraGetTypeSignature(core::mem::transmute(extra)) + RoParameterizedTypeExtraGetTypeSignature(extra) } #[inline] pub unsafe fn RoParseTypeName(typename: &windows_core::HSTRING, partscount: *mut u32, typenameparts: *mut *mut windows_core::HSTRING) -> windows_core::Result<()> { @@ -456,13 +456,13 @@ impl ICeeGen { (windows_core::Interface::vtable(self).EmitString)(windows_core::Interface::as_raw(self), lpstring.param().abi(), core::mem::transmute(rva)).ok() } pub unsafe fn GetString(&self, rva: u32, lpstring: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(rva), core::mem::transmute(lpstring.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), rva, core::mem::transmute(lpstring.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AllocateMethodBuffer(&self, cchbuffer: u32, lpbuffer: *mut *mut u8, rva: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AllocateMethodBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(cchbuffer), core::mem::transmute(lpbuffer), core::mem::transmute(rva)).ok() + (windows_core::Interface::vtable(self).AllocateMethodBuffer)(windows_core::Interface::as_raw(self), cchbuffer, core::mem::transmute(lpbuffer), core::mem::transmute(rva)).ok() } pub unsafe fn GetMethodBuffer(&self, rva: u32, lpbuffer: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMethodBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(rva), core::mem::transmute(lpbuffer)).ok() + (windows_core::Interface::vtable(self).GetMethodBuffer)(windows_core::Interface::as_raw(self), rva, core::mem::transmute(lpbuffer)).ok() } pub unsafe fn GetIMapTokenIface(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -478,28 +478,28 @@ impl ICeeGen { (windows_core::Interface::vtable(self).GetStringSection)(windows_core::Interface::as_raw(self), core::mem::transmute(section)).ok() } pub unsafe fn AddSectionReloc(&self, section: *mut core::ffi::c_void, offset: u32, relativeto: *mut core::ffi::c_void, reloctype: CeeSectionRelocType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSectionReloc)(windows_core::Interface::as_raw(self), core::mem::transmute(section), core::mem::transmute(offset), core::mem::transmute(relativeto), core::mem::transmute(reloctype)).ok() + (windows_core::Interface::vtable(self).AddSectionReloc)(windows_core::Interface::as_raw(self), core::mem::transmute(section), offset, core::mem::transmute(relativeto), reloctype).ok() } pub unsafe fn GetSectionCreate(&self, name: P0, flags: u32, section: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSectionCreate)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(flags), core::mem::transmute(section)).ok() + (windows_core::Interface::vtable(self).GetSectionCreate)(windows_core::Interface::as_raw(self), name.param().abi(), flags, core::mem::transmute(section)).ok() } pub unsafe fn GetSectionDataLen(&self, section: *mut core::ffi::c_void, datalen: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSectionDataLen)(windows_core::Interface::as_raw(self), core::mem::transmute(section), core::mem::transmute(datalen)).ok() } pub unsafe fn GetSectionBlock(&self, section: *mut core::ffi::c_void, len: u32, align: u32, ppbytes: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSectionBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(section), core::mem::transmute(len), core::mem::transmute(align), core::mem::transmute(ppbytes)).ok() + (windows_core::Interface::vtable(self).GetSectionBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(section), len, align, core::mem::transmute(ppbytes)).ok() } pub unsafe fn TruncateSection(&self, section: *mut core::ffi::c_void, len: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TruncateSection)(windows_core::Interface::as_raw(self), core::mem::transmute(section), core::mem::transmute(len)).ok() + (windows_core::Interface::vtable(self).TruncateSection)(windows_core::Interface::as_raw(self), core::mem::transmute(section), len).ok() } pub unsafe fn GenerateCeeMemoryImage(&self, ppimage: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GenerateCeeMemoryImage)(windows_core::Interface::as_raw(self), core::mem::transmute(ppimage)).ok() } pub unsafe fn ComputePointer(&self, section: *mut core::ffi::c_void, rva: u32, lpbuffer: *mut *mut u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ComputePointer)(windows_core::Interface::as_raw(self), core::mem::transmute(section), core::mem::transmute(rva), core::mem::transmute(lpbuffer)).ok() + (windows_core::Interface::vtable(self).ComputePointer)(windows_core::Interface::as_raw(self), core::mem::transmute(section), rva, core::mem::transmute(lpbuffer)).ok() } } #[repr(C)] @@ -634,7 +634,7 @@ windows_core::imp::define_interface!(IHostFilter, IHostFilter_Vtbl, 0xd0e80dd3_1 windows_core::imp::interface_hierarchy!(IHostFilter, windows_core::IUnknown); impl IHostFilter { pub unsafe fn MarkToken(&self, tk: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MarkToken)(windows_core::Interface::as_raw(self), core::mem::transmute(tk)).ok() + (windows_core::Interface::vtable(self).MarkToken)(windows_core::Interface::as_raw(self), tk).ok() } } #[repr(C)] @@ -875,7 +875,7 @@ windows_core::imp::define_interface!(IMapToken, IMapToken_Vtbl, 0x06a3ea8b_0225_ windows_core::imp::interface_hierarchy!(IMapToken, windows_core::IUnknown); impl IMapToken { pub unsafe fn Map(&self, tkimp: u32, tkemit: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), core::mem::transmute(tkimp), core::mem::transmute(tkemit)).ok() + (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), tkimp, tkemit).ok() } } #[repr(C)] @@ -906,52 +906,52 @@ impl IMetaDataAssemblyEmit { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineAssembly)(windows_core::Interface::as_raw(self), core::mem::transmute(pbpublickey), core::mem::transmute(cbpublickey), core::mem::transmute(ulhashalgid), szname.param().abi(), core::mem::transmute(pmetadata), core::mem::transmute(dwassemblyflags), core::mem::transmute(pma)).ok() + (windows_core::Interface::vtable(self).DefineAssembly)(windows_core::Interface::as_raw(self), pbpublickey, cbpublickey, ulhashalgid, szname.param().abi(), pmetadata, dwassemblyflags, core::mem::transmute(pma)).ok() } pub unsafe fn DefineAssemblyRef(&self, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: P2, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32, pmdar: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineAssemblyRef)(windows_core::Interface::as_raw(self), core::mem::transmute(pbpublickeyortoken), core::mem::transmute(cbpublickeyortoken), szname.param().abi(), core::mem::transmute(pmetadata), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), core::mem::transmute(dwassemblyrefflags), core::mem::transmute(pmdar)).ok() + (windows_core::Interface::vtable(self).DefineAssemblyRef)(windows_core::Interface::as_raw(self), pbpublickeyortoken, cbpublickeyortoken, szname.param().abi(), pmetadata, pbhashvalue, cbhashvalue, dwassemblyrefflags, core::mem::transmute(pmdar)).ok() } pub unsafe fn DefineFile(&self, szname: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32, pmdf: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineFile)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), core::mem::transmute(dwfileflags), core::mem::transmute(pmdf)).ok() + (windows_core::Interface::vtable(self).DefineFile)(windows_core::Interface::as_raw(self), szname.param().abi(), pbhashvalue, cbhashvalue, dwfileflags, core::mem::transmute(pmdf)).ok() } pub unsafe fn DefineExportedType(&self, szname: P0, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32, pmdct: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineExportedType)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(tkimplementation), core::mem::transmute(tktypedef), core::mem::transmute(dwexportedtypeflags), core::mem::transmute(pmdct)).ok() + (windows_core::Interface::vtable(self).DefineExportedType)(windows_core::Interface::as_raw(self), szname.param().abi(), tkimplementation, tktypedef, dwexportedtypeflags, core::mem::transmute(pmdct)).ok() } pub unsafe fn DefineManifestResource(&self, szname: P0, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32, pmdmr: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineManifestResource)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(tkimplementation), core::mem::transmute(dwoffset), core::mem::transmute(dwresourceflags), core::mem::transmute(pmdmr)).ok() + (windows_core::Interface::vtable(self).DefineManifestResource)(windows_core::Interface::as_raw(self), szname.param().abi(), tkimplementation, dwoffset, dwresourceflags, core::mem::transmute(pmdmr)).ok() } pub unsafe fn SetAssemblyProps(&self, pma: u32, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: P4, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAssemblyProps)(windows_core::Interface::as_raw(self), core::mem::transmute(pma), core::mem::transmute(pbpublickey), core::mem::transmute(cbpublickey), core::mem::transmute(ulhashalgid), szname.param().abi(), core::mem::transmute(pmetadata), core::mem::transmute(dwassemblyflags)).ok() + (windows_core::Interface::vtable(self).SetAssemblyProps)(windows_core::Interface::as_raw(self), pma, pbpublickey, cbpublickey, ulhashalgid, szname.param().abi(), pmetadata, dwassemblyflags).ok() } pub unsafe fn SetAssemblyRefProps(&self, ar: u32, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: P3, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAssemblyRefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ar), core::mem::transmute(pbpublickeyortoken), core::mem::transmute(cbpublickeyortoken), szname.param().abi(), core::mem::transmute(pmetadata), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), core::mem::transmute(dwassemblyrefflags)).ok() + (windows_core::Interface::vtable(self).SetAssemblyRefProps)(windows_core::Interface::as_raw(self), ar, pbpublickeyortoken, cbpublickeyortoken, szname.param().abi(), pmetadata, pbhashvalue, cbhashvalue, dwassemblyrefflags).ok() } pub unsafe fn SetFileProps(&self, file: u32, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileProps)(windows_core::Interface::as_raw(self), core::mem::transmute(file), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), core::mem::transmute(dwfileflags)).ok() + (windows_core::Interface::vtable(self).SetFileProps)(windows_core::Interface::as_raw(self), file, pbhashvalue, cbhashvalue, dwfileflags).ok() } pub unsafe fn SetExportedTypeProps(&self, ct: u32, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExportedTypeProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ct), core::mem::transmute(tkimplementation), core::mem::transmute(tktypedef), core::mem::transmute(dwexportedtypeflags)).ok() + (windows_core::Interface::vtable(self).SetExportedTypeProps)(windows_core::Interface::as_raw(self), ct, tkimplementation, tktypedef, dwexportedtypeflags).ok() } pub unsafe fn SetManifestResourceProps(&self, mr: u32, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetManifestResourceProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mr), core::mem::transmute(tkimplementation), core::mem::transmute(dwoffset), core::mem::transmute(dwresourceflags)).ok() + (windows_core::Interface::vtable(self).SetManifestResourceProps)(windows_core::Interface::as_raw(self), mr, tkimplementation, dwoffset, dwresourceflags).ok() } } #[repr(C)] @@ -1045,44 +1045,31 @@ windows_core::imp::define_interface!(IMetaDataAssemblyImport, IMetaDataAssemblyI windows_core::imp::interface_hierarchy!(IMetaDataAssemblyImport, windows_core::IUnknown); impl IMetaDataAssemblyImport { pub unsafe fn GetAssemblyProps(&self, mda: u32, ppbpublickey: *const *const core::ffi::c_void, pcbpublickey: *mut u32, pulhashalgid: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, pdwassemblyflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAssemblyProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mda), core::mem::transmute(ppbpublickey), core::mem::transmute(pcbpublickey), core::mem::transmute(pulhashalgid), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(pmetadata), core::mem::transmute(pdwassemblyflags)).ok() + (windows_core::Interface::vtable(self).GetAssemblyProps)(windows_core::Interface::as_raw(self), mda, ppbpublickey, core::mem::transmute(pcbpublickey), core::mem::transmute(pulhashalgid), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(pmetadata), core::mem::transmute(pdwassemblyflags)).ok() } pub unsafe fn GetAssemblyRefProps(&self, mdar: u32, ppbpublickeyortoken: *const *const core::ffi::c_void, pcbpublickeyortoken: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwassemblyrefflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAssemblyRefProps)( - windows_core::Interface::as_raw(self), - core::mem::transmute(mdar), - core::mem::transmute(ppbpublickeyortoken), - core::mem::transmute(pcbpublickeyortoken), - core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pchname), - core::mem::transmute(pmetadata), - core::mem::transmute(ppbhashvalue), - core::mem::transmute(pcbhashvalue), - core::mem::transmute(pdwassemblyrefflags), - ) - .ok() + (windows_core::Interface::vtable(self).GetAssemblyRefProps)(windows_core::Interface::as_raw(self), mdar, ppbpublickeyortoken, core::mem::transmute(pcbpublickeyortoken), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(pmetadata), ppbhashvalue, core::mem::transmute(pcbhashvalue), core::mem::transmute(pdwassemblyrefflags)).ok() } pub unsafe fn GetFileProps(&self, mdf: u32, szname: Option<&mut [u16]>, pchname: *mut u32, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwfileflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFileProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mdf), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(ppbhashvalue), core::mem::transmute(pcbhashvalue), core::mem::transmute(pdwfileflags)).ok() + (windows_core::Interface::vtable(self).GetFileProps)(windows_core::Interface::as_raw(self), mdf, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), ppbhashvalue, core::mem::transmute(pcbhashvalue), core::mem::transmute(pdwfileflags)).ok() } pub unsafe fn GetExportedTypeProps(&self, mdct: u32, szname: Option<&mut [u16]>, pchname: *mut u32, ptkimplementation: *mut u32, ptktypedef: *mut u32, pdwexportedtypeflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetExportedTypeProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mdct), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(ptkimplementation), core::mem::transmute(ptktypedef), core::mem::transmute(pdwexportedtypeflags)).ok() + (windows_core::Interface::vtable(self).GetExportedTypeProps)(windows_core::Interface::as_raw(self), mdct, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(ptkimplementation), core::mem::transmute(ptktypedef), core::mem::transmute(pdwexportedtypeflags)).ok() } pub unsafe fn GetManifestResourceProps(&self, mdmr: u32, szname: Option<&mut [u16]>, pchname: *mut u32, ptkimplementation: *mut u32, pdwoffset: *mut u32, pdwresourceflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetManifestResourceProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mdmr), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(ptkimplementation), core::mem::transmute(pdwoffset), core::mem::transmute(pdwresourceflags)).ok() + (windows_core::Interface::vtable(self).GetManifestResourceProps)(windows_core::Interface::as_raw(self), mdmr, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(ptkimplementation), core::mem::transmute(pdwoffset), core::mem::transmute(pdwresourceflags)).ok() } pub unsafe fn EnumAssemblyRefs(&self, phenum: *mut *mut core::ffi::c_void, rassemblyrefs: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumAssemblyRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rassemblyrefs), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumAssemblyRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rassemblyrefs), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumFiles(&self, phenum: *mut *mut core::ffi::c_void, rfiles: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rfiles), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumFiles)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rfiles), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumExportedTypes(&self, phenum: *mut *mut core::ffi::c_void, rexportedtypes: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumExportedTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rexportedtypes), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumExportedTypes)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rexportedtypes), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumManifestResources(&self, phenum: *mut *mut core::ffi::c_void, rmanifestresources: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumManifestResources)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rmanifestresources), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumManifestResources)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rmanifestresources), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn GetAssemblyFromScope(&self, ptkassembly: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAssemblyFromScope)(windows_core::Interface::as_raw(self), core::mem::transmute(ptkassembly)).ok() @@ -1091,7 +1078,7 @@ impl IMetaDataAssemblyImport { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindExportedTypeByName)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(mdtexportedtype), core::mem::transmute(ptkexportedtype)).ok() + (windows_core::Interface::vtable(self).FindExportedTypeByName)(windows_core::Interface::as_raw(self), szname.param().abi(), mdtexportedtype, core::mem::transmute(ptkexportedtype)).ok() } pub unsafe fn FindManifestResourceByName(&self, szname: P0, ptkmanifestresource: *mut u32) -> windows_core::Result<()> where @@ -1108,7 +1095,7 @@ impl IMetaDataAssemblyImport { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindAssembliesByName)(windows_core::Interface::as_raw(self), szappbase.param().abi(), szprivatebin.param().abi(), szassemblyname.param().abi(), core::mem::transmute(ppiunk), core::mem::transmute(cmax), core::mem::transmute(pcassemblies)).ok() + (windows_core::Interface::vtable(self).FindAssembliesByName)(windows_core::Interface::as_raw(self), szappbase.param().abi(), szprivatebin.param().abi(), szassemblyname.param().abi(), core::mem::transmute(ppiunk), cmax, core::mem::transmute(pcassemblies)).ok() } } #[repr(C)] @@ -1231,18 +1218,18 @@ windows_core::imp::interface_hierarchy!(IMetaDataDispenser, windows_core::IUnkno impl IMetaDataDispenser { pub unsafe fn DefineScope(&self, rclsid: *const windows_core::GUID, dwcreateflags: u32, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineScope)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(dwcreateflags), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DefineScope)(windows_core::Interface::as_raw(self), rclsid, dwcreateflags, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenScope(&self, szscope: P0, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScope)(windows_core::Interface::as_raw(self), szscope.param().abi(), core::mem::transmute(dwopenflags), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenScope)(windows_core::Interface::as_raw(self), szscope.param().abi(), dwopenflags, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenScopeOnMemory(&self, pdata: *const core::ffi::c_void, cbdata: u32, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScopeOnMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata), core::mem::transmute(cbdata), core::mem::transmute(dwopenflags), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenScopeOnMemory)(windows_core::Interface::as_raw(self), pdata, cbdata, dwopenflags, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1312,11 +1299,11 @@ windows_core::imp::interface_hierarchy!(IMetaDataDispenserEx, windows_core::IUnk impl IMetaDataDispenserEx { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetOption(&self, optionid: *const windows_core::GUID, value: *const super::super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(optionid), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), optionid, core::mem::transmute(value)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetOption(&self, optionid: *const windows_core::GUID, pvalue: *mut super::super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(optionid), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), optionid, core::mem::transmute(pvalue)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenScopeOnITypeInfo(&self, piti: P0, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result @@ -1324,7 +1311,7 @@ impl IMetaDataDispenserEx { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScopeOnITypeInfo)(windows_core::Interface::as_raw(self), piti.param().abi(), core::mem::transmute(dwopenflags), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenScopeOnITypeInfo)(windows_core::Interface::as_raw(self), piti.param().abi(), dwopenflags, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCORSystemDirectory(&self, szbuffer: Option<&mut [u16]>, pchbuffer: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCORSystemDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(szbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchbuffer)).ok() @@ -1337,7 +1324,7 @@ impl IMetaDataDispenserEx { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).FindAssembly)(windows_core::Interface::as_raw(self), szappbase.param().abi(), szprivatebin.param().abi(), szglobalbin.param().abi(), szassemblyname.param().abi(), szname.param().abi(), core::mem::transmute(cchname), core::mem::transmute(pcname)).ok() + (windows_core::Interface::vtable(self).FindAssembly)(windows_core::Interface::as_raw(self), szappbase.param().abi(), szprivatebin.param().abi(), szglobalbin.param().abi(), szassemblyname.param().abi(), szname.param().abi(), cchname, core::mem::transmute(pcname)).ok() } pub unsafe fn FindAssemblyModule(&self, szappbase: P0, szprivatebin: P1, szglobalbin: P2, szassemblyname: P3, szmodulename: P4, szname: Option<&mut [u16]>, pcname: *mut u32) -> windows_core::Result<()> where @@ -1440,29 +1427,29 @@ impl IMetaDataEmit { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), szfile.param().abi(), core::mem::transmute(dwsaveflags)).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), szfile.param().abi(), dwsaveflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveToStream(&self, pistream: P0, dwsaveflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveToStream)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(dwsaveflags)).ok() + (windows_core::Interface::vtable(self).SaveToStream)(windows_core::Interface::as_raw(self), pistream.param().abi(), dwsaveflags).ok() } pub unsafe fn GetSaveSize(&self, fsave: CorSaveSize, pdwsavesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSaveSize)(windows_core::Interface::as_raw(self), core::mem::transmute(fsave), core::mem::transmute(pdwsavesize)).ok() + (windows_core::Interface::vtable(self).GetSaveSize)(windows_core::Interface::as_raw(self), fsave, core::mem::transmute(pdwsavesize)).ok() } pub unsafe fn DefineTypeDef(&self, sztypedef: P0, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, ptd: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineTypeDef)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), core::mem::transmute(dwtypedefflags), core::mem::transmute(tkextends), core::mem::transmute(rtkimplements), core::mem::transmute(ptd)).ok() + (windows_core::Interface::vtable(self).DefineTypeDef)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), dwtypedefflags, tkextends, core::mem::transmute(rtkimplements), core::mem::transmute(ptd)).ok() } pub unsafe fn DefineNestedType(&self, sztypedef: P0, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, tdencloser: u32, ptd: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineNestedType)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), core::mem::transmute(dwtypedefflags), core::mem::transmute(tkextends), core::mem::transmute(rtkimplements), core::mem::transmute(tdencloser), core::mem::transmute(ptd)).ok() + (windows_core::Interface::vtable(self).DefineNestedType)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), dwtypedefflags, tkextends, core::mem::transmute(rtkimplements), tdencloser, core::mem::transmute(ptd)).ok() } pub unsafe fn SetHandler(&self, punk: P0) -> windows_core::Result<()> where @@ -1474,16 +1461,16 @@ impl IMetaDataEmit { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szname.param().abi(), core::mem::transmute(dwmethodflags), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(ulcoderva), core::mem::transmute(dwimplflags), core::mem::transmute(pmd)).ok() + (windows_core::Interface::vtable(self).DefineMethod)(windows_core::Interface::as_raw(self), td, szname.param().abi(), dwmethodflags, core::mem::transmute(pvsigblob), cbsigblob, ulcoderva, dwimplflags, core::mem::transmute(pmd)).ok() } pub unsafe fn DefineMethodImpl(&self, td: u32, tkbody: u32, tkdecl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DefineMethodImpl)(windows_core::Interface::as_raw(self), core::mem::transmute(td), core::mem::transmute(tkbody), core::mem::transmute(tkdecl)).ok() + (windows_core::Interface::vtable(self).DefineMethodImpl)(windows_core::Interface::as_raw(self), td, tkbody, tkdecl).ok() } pub unsafe fn DefineTypeRefByName(&self, tkresolutionscope: u32, szname: P1, ptr: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineTypeRefByName)(windows_core::Interface::as_raw(self), core::mem::transmute(tkresolutionscope), szname.param().abi(), core::mem::transmute(ptr)).ok() + (windows_core::Interface::vtable(self).DefineTypeRefByName)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.param().abi(), core::mem::transmute(ptr)).ok() } pub unsafe fn DefineImportType(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: P3, tdimport: u32, passememit: P5, ptr: *mut u32) -> windows_core::Result<()> where @@ -1491,13 +1478,13 @@ impl IMetaDataEmit { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineImportType)(windows_core::Interface::as_raw(self), passemimport.param().abi(), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), pimport.param().abi(), core::mem::transmute(tdimport), passememit.param().abi(), core::mem::transmute(ptr)).ok() + (windows_core::Interface::vtable(self).DefineImportType)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, pimport.param().abi(), tdimport, passememit.param().abi(), core::mem::transmute(ptr)).ok() } pub unsafe fn DefineMemberRef(&self, tkimport: u32, szname: P1, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineMemberRef)(windows_core::Interface::as_raw(self), core::mem::transmute(tkimport), szname.param().abi(), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(pmr)).ok() + (windows_core::Interface::vtable(self).DefineMemberRef)(windows_core::Interface::as_raw(self), tkimport, szname.param().abi(), core::mem::transmute(pvsigblob), cbsigblob, core::mem::transmute(pmr)).ok() } pub unsafe fn DefineImportMember(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: P3, mbmember: u32, passememit: P5, tkparent: u32, pmr: *mut u32) -> windows_core::Result<()> where @@ -1505,34 +1492,34 @@ impl IMetaDataEmit { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineImportMember)(windows_core::Interface::as_raw(self), passemimport.param().abi(), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), pimport.param().abi(), core::mem::transmute(mbmember), passememit.param().abi(), core::mem::transmute(tkparent), core::mem::transmute(pmr)).ok() + (windows_core::Interface::vtable(self).DefineImportMember)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, pimport.param().abi(), mbmember, passememit.param().abi(), tkparent, core::mem::transmute(pmr)).ok() } pub unsafe fn DefineEvent(&self, td: u32, szevent: P1, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32, pmdevent: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szevent.param().abi(), core::mem::transmute(dweventflags), core::mem::transmute(tkeventtype), core::mem::transmute(mdaddon), core::mem::transmute(mdremoveon), core::mem::transmute(mdfire), core::mem::transmute(rmdothermethods), core::mem::transmute(pmdevent)).ok() + (windows_core::Interface::vtable(self).DefineEvent)(windows_core::Interface::as_raw(self), td, szevent.param().abi(), dweventflags, tkeventtype, mdaddon, mdremoveon, mdfire, core::mem::transmute(rmdothermethods), core::mem::transmute(pmdevent)).ok() } pub unsafe fn SetClassLayout(&self, td: u32, dwpacksize: u32, rfieldoffsets: *mut COR_FIELD_OFFSET, ulclasssize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClassLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(td), core::mem::transmute(dwpacksize), core::mem::transmute(rfieldoffsets), core::mem::transmute(ulclasssize)).ok() + (windows_core::Interface::vtable(self).SetClassLayout)(windows_core::Interface::as_raw(self), td, dwpacksize, core::mem::transmute(rfieldoffsets), ulclasssize).ok() } pub unsafe fn DeleteClassLayout(&self, td: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteClassLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(td)).ok() + (windows_core::Interface::vtable(self).DeleteClassLayout)(windows_core::Interface::as_raw(self), td).ok() } pub unsafe fn SetFieldMarshal(&self, tk: u32, pvnativetype: *mut u8, cbnativetype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFieldMarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(pvnativetype), core::mem::transmute(cbnativetype)).ok() + (windows_core::Interface::vtable(self).SetFieldMarshal)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(pvnativetype), cbnativetype).ok() } pub unsafe fn DeleteFieldMarshal(&self, tk: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteFieldMarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(tk)).ok() + (windows_core::Interface::vtable(self).DeleteFieldMarshal)(windows_core::Interface::as_raw(self), tk).ok() } pub unsafe fn DefinePermissionSet(&self, tk: u32, dwaction: u32, pvpermission: *const core::ffi::c_void, cbpermission: u32, ppm: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DefinePermissionSet)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(dwaction), core::mem::transmute(pvpermission), core::mem::transmute(cbpermission), core::mem::transmute(ppm)).ok() + (windows_core::Interface::vtable(self).DefinePermissionSet)(windows_core::Interface::as_raw(self), tk, dwaction, pvpermission, cbpermission, core::mem::transmute(ppm)).ok() } pub unsafe fn SetRVA(&self, md: u32, ulrva: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRVA)(windows_core::Interface::as_raw(self), core::mem::transmute(md), core::mem::transmute(ulrva)).ok() + (windows_core::Interface::vtable(self).SetRVA)(windows_core::Interface::as_raw(self), md, ulrva).ok() } pub unsafe fn GetTokenFromSig(&self, pvsig: *mut u8, cbsig: u32, pmsig: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTokenFromSig)(windows_core::Interface::as_raw(self), core::mem::transmute(pvsig), core::mem::transmute(cbsig), core::mem::transmute(pmsig)).ok() + (windows_core::Interface::vtable(self).GetTokenFromSig)(windows_core::Interface::as_raw(self), core::mem::transmute(pvsig), cbsig, core::mem::transmute(pmsig)).ok() } pub unsafe fn DefineModuleRef(&self, szname: P0, pmur: *mut u32) -> windows_core::Result<()> where @@ -1541,88 +1528,88 @@ impl IMetaDataEmit { (windows_core::Interface::vtable(self).DefineModuleRef)(windows_core::Interface::as_raw(self), szname.param().abi(), core::mem::transmute(pmur)).ok() } pub unsafe fn SetParent(&self, mr: u32, tk: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParent)(windows_core::Interface::as_raw(self), core::mem::transmute(mr), core::mem::transmute(tk)).ok() + (windows_core::Interface::vtable(self).SetParent)(windows_core::Interface::as_raw(self), mr, tk).ok() } pub unsafe fn GetTokenFromTypeSpec(&self, pvsig: *mut u8, cbsig: u32, ptypespec: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTokenFromTypeSpec)(windows_core::Interface::as_raw(self), core::mem::transmute(pvsig), core::mem::transmute(cbsig), core::mem::transmute(ptypespec)).ok() + (windows_core::Interface::vtable(self).GetTokenFromTypeSpec)(windows_core::Interface::as_raw(self), core::mem::transmute(pvsig), cbsig, core::mem::transmute(ptypespec)).ok() } pub unsafe fn SaveToMemory(&self, pbdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveToMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), core::mem::transmute(cbdata)).ok() + (windows_core::Interface::vtable(self).SaveToMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), cbdata).ok() } pub unsafe fn DefineUserString(&self, szstring: P0, cchstring: u32, pstk: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineUserString)(windows_core::Interface::as_raw(self), szstring.param().abi(), core::mem::transmute(cchstring), core::mem::transmute(pstk)).ok() + (windows_core::Interface::vtable(self).DefineUserString)(windows_core::Interface::as_raw(self), szstring.param().abi(), cchstring, core::mem::transmute(pstk)).ok() } pub unsafe fn DeleteToken(&self, tkobj: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteToken)(windows_core::Interface::as_raw(self), core::mem::transmute(tkobj)).ok() + (windows_core::Interface::vtable(self).DeleteToken)(windows_core::Interface::as_raw(self), tkobj).ok() } pub unsafe fn SetMethodProps(&self, md: u32, dwmethodflags: u32, ulcoderva: u32, dwimplflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMethodProps)(windows_core::Interface::as_raw(self), core::mem::transmute(md), core::mem::transmute(dwmethodflags), core::mem::transmute(ulcoderva), core::mem::transmute(dwimplflags)).ok() + (windows_core::Interface::vtable(self).SetMethodProps)(windows_core::Interface::as_raw(self), md, dwmethodflags, ulcoderva, dwimplflags).ok() } pub unsafe fn SetTypeDefProps(&self, td: u32, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypeDefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(td), core::mem::transmute(dwtypedefflags), core::mem::transmute(tkextends), core::mem::transmute(rtkimplements)).ok() + (windows_core::Interface::vtable(self).SetTypeDefProps)(windows_core::Interface::as_raw(self), td, dwtypedefflags, tkextends, core::mem::transmute(rtkimplements)).ok() } pub unsafe fn SetEventProps(&self, ev: u32, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ev), core::mem::transmute(dweventflags), core::mem::transmute(tkeventtype), core::mem::transmute(mdaddon), core::mem::transmute(mdremoveon), core::mem::transmute(mdfire), core::mem::transmute(rmdothermethods)).ok() + (windows_core::Interface::vtable(self).SetEventProps)(windows_core::Interface::as_raw(self), ev, dweventflags, tkeventtype, mdaddon, mdremoveon, mdfire, core::mem::transmute(rmdothermethods)).ok() } pub unsafe fn SetPermissionSetProps(&self, tk: u32, dwaction: u32, pvpermission: *const core::ffi::c_void, cbpermission: u32, ppm: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPermissionSetProps)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(dwaction), core::mem::transmute(pvpermission), core::mem::transmute(cbpermission), core::mem::transmute(ppm)).ok() + (windows_core::Interface::vtable(self).SetPermissionSetProps)(windows_core::Interface::as_raw(self), tk, dwaction, pvpermission, cbpermission, core::mem::transmute(ppm)).ok() } pub unsafe fn DefinePinvokeMap(&self, tk: u32, dwmappingflags: u32, szimportname: P2, mrimportdll: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DefinePinvokeMap)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(dwmappingflags), szimportname.param().abi(), core::mem::transmute(mrimportdll)).ok() + (windows_core::Interface::vtable(self).DefinePinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.param().abi(), mrimportdll).ok() } pub unsafe fn SetPinvokeMap(&self, tk: u32, dwmappingflags: u32, szimportname: P2, mrimportdll: u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPinvokeMap)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(dwmappingflags), szimportname.param().abi(), core::mem::transmute(mrimportdll)).ok() + (windows_core::Interface::vtable(self).SetPinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.param().abi(), mrimportdll).ok() } pub unsafe fn DeletePinvokeMap(&self, tk: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeletePinvokeMap)(windows_core::Interface::as_raw(self), core::mem::transmute(tk)).ok() + (windows_core::Interface::vtable(self).DeletePinvokeMap)(windows_core::Interface::as_raw(self), tk).ok() } pub unsafe fn DefineCustomAttribute(&self, tkowner: u32, tkctor: u32, pcustomattribute: *const core::ffi::c_void, cbcustomattribute: u32, pcv: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DefineCustomAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(tkowner), core::mem::transmute(tkctor), core::mem::transmute(pcustomattribute), core::mem::transmute(cbcustomattribute), core::mem::transmute(pcv)).ok() + (windows_core::Interface::vtable(self).DefineCustomAttribute)(windows_core::Interface::as_raw(self), tkowner, tkctor, pcustomattribute, cbcustomattribute, core::mem::transmute(pcv)).ok() } pub unsafe fn SetCustomAttributeValue(&self, pcv: u32, pcustomattribute: *const core::ffi::c_void, cbcustomattribute: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCustomAttributeValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pcv), core::mem::transmute(pcustomattribute), core::mem::transmute(cbcustomattribute)).ok() + (windows_core::Interface::vtable(self).SetCustomAttributeValue)(windows_core::Interface::as_raw(self), pcv, pcustomattribute, cbcustomattribute).ok() } pub unsafe fn DefineField(&self, td: u32, szname: P1, dwfieldflags: u32, pvsigblob: *mut u8, cbsigblob: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, pmd: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineField)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szname.param().abi(), core::mem::transmute(dwfieldflags), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(dwcplustypeflag), core::mem::transmute(pvalue), core::mem::transmute(cchvalue), core::mem::transmute(pmd)).ok() + (windows_core::Interface::vtable(self).DefineField)(windows_core::Interface::as_raw(self), td, szname.param().abi(), dwfieldflags, core::mem::transmute(pvsigblob), cbsigblob, dwcplustypeflag, pvalue, cchvalue, core::mem::transmute(pmd)).ok() } pub unsafe fn DefineProperty(&self, td: u32, szproperty: P1, 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::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szproperty.param().abi(), core::mem::transmute(dwpropflags), core::mem::transmute(pvsig), core::mem::transmute(cbsig), core::mem::transmute(dwcplustypeflag), core::mem::transmute(pvalue), core::mem::transmute(cchvalue), core::mem::transmute(mdsetter), core::mem::transmute(mdgetter), core::mem::transmute(rmdothermethods), core::mem::transmute(pmdprop)).ok() + (windows_core::Interface::vtable(self).DefineProperty)(windows_core::Interface::as_raw(self), td, szproperty.param().abi(), dwpropflags, core::mem::transmute(pvsig), cbsig, dwcplustypeflag, pvalue, cchvalue, mdsetter, mdgetter, core::mem::transmute(rmdothermethods), core::mem::transmute(pmdprop)).ok() } pub unsafe fn DefineParam(&self, md: u32, ulparamseq: u32, szname: P2, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, ppd: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineParam)(windows_core::Interface::as_raw(self), core::mem::transmute(md), core::mem::transmute(ulparamseq), szname.param().abi(), core::mem::transmute(dwparamflags), core::mem::transmute(dwcplustypeflag), core::mem::transmute(pvalue), core::mem::transmute(cchvalue), core::mem::transmute(ppd)).ok() + (windows_core::Interface::vtable(self).DefineParam)(windows_core::Interface::as_raw(self), md, ulparamseq, szname.param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue, core::mem::transmute(ppd)).ok() } pub unsafe fn SetFieldProps(&self, fd: u32, dwfieldflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFieldProps)(windows_core::Interface::as_raw(self), core::mem::transmute(fd), core::mem::transmute(dwfieldflags), core::mem::transmute(dwcplustypeflag), core::mem::transmute(pvalue), core::mem::transmute(cchvalue)).ok() + (windows_core::Interface::vtable(self).SetFieldProps)(windows_core::Interface::as_raw(self), fd, dwfieldflags, dwcplustypeflag, pvalue, cchvalue).ok() } pub unsafe fn SetPropertyProps(&self, pr: u32, dwpropflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertyProps)(windows_core::Interface::as_raw(self), core::mem::transmute(pr), core::mem::transmute(dwpropflags), core::mem::transmute(dwcplustypeflag), core::mem::transmute(pvalue), core::mem::transmute(cchvalue), core::mem::transmute(mdsetter), core::mem::transmute(mdgetter), core::mem::transmute(rmdothermethods)).ok() + (windows_core::Interface::vtable(self).SetPropertyProps)(windows_core::Interface::as_raw(self), pr, dwpropflags, dwcplustypeflag, pvalue, cchvalue, mdsetter, mdgetter, core::mem::transmute(rmdothermethods)).ok() } pub unsafe fn SetParamProps(&self, pd: u32, szname: P1, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParamProps)(windows_core::Interface::as_raw(self), core::mem::transmute(pd), szname.param().abi(), core::mem::transmute(dwparamflags), core::mem::transmute(dwcplustypeflag), core::mem::transmute(pvalue), core::mem::transmute(cchvalue)).ok() + (windows_core::Interface::vtable(self).SetParamProps)(windows_core::Interface::as_raw(self), pd, szname.param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue).ok() } pub unsafe fn DefineSecurityAttributeSet(&self, tkobj: u32, rsecattrs: *mut COR_SECATTR, csecattrs: u32, pulerrorattr: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DefineSecurityAttributeSet)(windows_core::Interface::as_raw(self), core::mem::transmute(tkobj), core::mem::transmute(rsecattrs), core::mem::transmute(csecattrs), core::mem::transmute(pulerrorattr)).ok() + (windows_core::Interface::vtable(self).DefineSecurityAttributeSet)(windows_core::Interface::as_raw(self), tkobj, core::mem::transmute(rsecattrs), csecattrs, core::mem::transmute(pulerrorattr)).ok() } pub unsafe fn ApplyEditAndContinue(&self, pimport: P0) -> windows_core::Result<()> where @@ -1637,13 +1624,13 @@ impl IMetaDataEmit { P6: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).TranslateSigWithScope)(windows_core::Interface::as_raw(self), passemimport.param().abi(), core::mem::transmute(pbhashvalue), core::mem::transmute(cbhashvalue), import.param().abi(), core::mem::transmute(pbsigblob), core::mem::transmute(cbsigblob), passememit.param().abi(), emit.param().abi(), core::mem::transmute(pvtranslatedsig), core::mem::transmute(cbtranslatedsigmax), core::mem::transmute(pcbtranslatedsig)).ok() + (windows_core::Interface::vtable(self).TranslateSigWithScope)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, import.param().abi(), core::mem::transmute(pbsigblob), cbsigblob, passememit.param().abi(), emit.param().abi(), core::mem::transmute(pvtranslatedsig), cbtranslatedsigmax, core::mem::transmute(pcbtranslatedsig)).ok() } pub unsafe fn SetMethodImplFlags(&self, md: u32, dwimplflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMethodImplFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(md), core::mem::transmute(dwimplflags)).ok() + (windows_core::Interface::vtable(self).SetMethodImplFlags)(windows_core::Interface::as_raw(self), md, dwimplflags).ok() } pub unsafe fn SetFieldRVA(&self, fd: u32, ulrva: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFieldRVA)(windows_core::Interface::as_raw(self), core::mem::transmute(fd), core::mem::transmute(ulrva)).ok() + (windows_core::Interface::vtable(self).SetFieldRVA)(windows_core::Interface::as_raw(self), fd, ulrva).ok() } pub unsafe fn Merge(&self, pimport: P0, phostmaptoken: P1, phandler: P2) -> windows_core::Result<()> where @@ -2033,38 +2020,38 @@ impl core::ops::Deref for IMetaDataEmit2 { windows_core::imp::interface_hierarchy!(IMetaDataEmit2, windows_core::IUnknown, IMetaDataEmit); impl IMetaDataEmit2 { pub unsafe fn DefineMethodSpec(&self, tkparent: u32, pvsigblob: *mut u8, cbsigblob: u32, pmi: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DefineMethodSpec)(windows_core::Interface::as_raw(self), core::mem::transmute(tkparent), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(pmi)).ok() + (windows_core::Interface::vtable(self).DefineMethodSpec)(windows_core::Interface::as_raw(self), tkparent, core::mem::transmute(pvsigblob), cbsigblob, core::mem::transmute(pmi)).ok() } pub unsafe fn GetDeltaSaveSize(&self, fsave: CorSaveSize, pdwsavesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDeltaSaveSize)(windows_core::Interface::as_raw(self), core::mem::transmute(fsave), core::mem::transmute(pdwsavesize)).ok() + (windows_core::Interface::vtable(self).GetDeltaSaveSize)(windows_core::Interface::as_raw(self), fsave, core::mem::transmute(pdwsavesize)).ok() } pub unsafe fn SaveDelta(&self, szfile: P0, dwsaveflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDelta)(windows_core::Interface::as_raw(self), szfile.param().abi(), core::mem::transmute(dwsaveflags)).ok() + (windows_core::Interface::vtable(self).SaveDelta)(windows_core::Interface::as_raw(self), szfile.param().abi(), dwsaveflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveDeltaToStream(&self, pistream: P0, dwsaveflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDeltaToStream)(windows_core::Interface::as_raw(self), pistream.param().abi(), core::mem::transmute(dwsaveflags)).ok() + (windows_core::Interface::vtable(self).SaveDeltaToStream)(windows_core::Interface::as_raw(self), pistream.param().abi(), dwsaveflags).ok() } pub unsafe fn SaveDeltaToMemory(&self, pbdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveDeltaToMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), core::mem::transmute(cbdata)).ok() + (windows_core::Interface::vtable(self).SaveDeltaToMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata), cbdata).ok() } pub unsafe fn DefineGenericParam(&self, tk: u32, ulparamseq: u32, dwparamflags: u32, szname: P3, reserved: u32, rtkconstraints: *mut u32, pgp: *mut u32) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineGenericParam)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(ulparamseq), core::mem::transmute(dwparamflags), szname.param().abi(), core::mem::transmute(reserved), core::mem::transmute(rtkconstraints), core::mem::transmute(pgp)).ok() + (windows_core::Interface::vtable(self).DefineGenericParam)(windows_core::Interface::as_raw(self), tk, ulparamseq, dwparamflags, szname.param().abi(), reserved, core::mem::transmute(rtkconstraints), core::mem::transmute(pgp)).ok() } pub unsafe fn SetGenericParamProps(&self, gp: u32, dwparamflags: u32, szname: P2, reserved: u32, rtkconstraints: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGenericParamProps)(windows_core::Interface::as_raw(self), core::mem::transmute(gp), core::mem::transmute(dwparamflags), szname.param().abi(), core::mem::transmute(reserved), core::mem::transmute(rtkconstraints)).ok() + (windows_core::Interface::vtable(self).SetGenericParamProps)(windows_core::Interface::as_raw(self), gp, dwparamflags, szname.param().abi(), reserved, core::mem::transmute(rtkconstraints)).ok() } pub unsafe fn ResetENCLog(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetENCLog)(windows_core::Interface::as_raw(self)).ok() @@ -2153,7 +2140,7 @@ windows_core::imp::define_interface!(IMetaDataError, IMetaDataError_Vtbl, 0xb81f windows_core::imp::interface_hierarchy!(IMetaDataError, windows_core::IUnknown); impl IMetaDataError { pub unsafe fn OnError(&self, hrerror: windows_core::HRESULT, token: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror), core::mem::transmute(token)).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hrerror, token).ok() } } #[repr(C)] @@ -2184,10 +2171,10 @@ impl IMetaDataFilter { (windows_core::Interface::vtable(self).UnmarkAll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn MarkToken(&self, tk: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MarkToken)(windows_core::Interface::as_raw(self), core::mem::transmute(tk)).ok() + (windows_core::Interface::vtable(self).MarkToken)(windows_core::Interface::as_raw(self), tk).ok() } pub unsafe fn IsTokenMarked(&self, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsTokenMarked)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(pismarked)).ok() + (windows_core::Interface::vtable(self).IsTokenMarked)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(pismarked)).ok() } } #[repr(C)] @@ -2238,22 +2225,22 @@ impl IMetaDataImport { (windows_core::Interface::vtable(self).CountEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(henum), core::mem::transmute(pulcount)).ok() } pub unsafe fn ResetEnum(&self, henum: *mut core::ffi::c_void, ulpos: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResetEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(henum), core::mem::transmute(ulpos)).ok() + (windows_core::Interface::vtable(self).ResetEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(henum), ulpos).ok() } pub unsafe fn EnumTypeDefs(&self, phenum: *mut *mut core::ffi::c_void, rtypedefs: *mut u32, cmax: u32, pctypedefs: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumTypeDefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rtypedefs), core::mem::transmute(cmax), core::mem::transmute(pctypedefs)).ok() + (windows_core::Interface::vtable(self).EnumTypeDefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rtypedefs), cmax, core::mem::transmute(pctypedefs)).ok() } pub unsafe fn EnumInterfaceImpls(&self, phenum: *mut *mut core::ffi::c_void, td: u32, rimpls: *mut u32, cmax: u32, pcimpls: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumInterfaceImpls)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(td), core::mem::transmute(rimpls), core::mem::transmute(cmax), core::mem::transmute(pcimpls)).ok() + (windows_core::Interface::vtable(self).EnumInterfaceImpls)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), td, core::mem::transmute(rimpls), cmax, core::mem::transmute(pcimpls)).ok() } pub unsafe fn EnumTypeRefs(&self, phenum: *mut *mut core::ffi::c_void, rtyperefs: *mut u32, cmax: u32, pctyperefs: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumTypeRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rtyperefs), core::mem::transmute(cmax), core::mem::transmute(pctyperefs)).ok() + (windows_core::Interface::vtable(self).EnumTypeRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rtyperefs), cmax, core::mem::transmute(pctyperefs)).ok() } pub unsafe fn FindTypeDefByName(&self, sztypedef: P0, tkenclosingclass: u32, ptd: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindTypeDefByName)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), core::mem::transmute(tkenclosingclass), core::mem::transmute(ptd)).ok() + (windows_core::Interface::vtable(self).FindTypeDefByName)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), tkenclosingclass, core::mem::transmute(ptd)).ok() } pub unsafe fn GetScopeProps(&self, szname: Option<&mut [u16]>, pchname: *mut u32, pmvid: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetScopeProps)(windows_core::Interface::as_raw(self), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(pmvid)).ok() @@ -2262,168 +2249,168 @@ impl IMetaDataImport { (windows_core::Interface::vtable(self).GetModuleFromScope)(windows_core::Interface::as_raw(self), core::mem::transmute(pmd)).ok() } pub unsafe fn GetTypeDefProps(&self, td: u32, sztypedef: Option<&mut [u16]>, pchtypedef: *mut u32, pdwtypedefflags: *mut u32, ptkextends: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeDefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(td), core::mem::transmute(sztypedef.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), sztypedef.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchtypedef), core::mem::transmute(pdwtypedefflags), core::mem::transmute(ptkextends)).ok() + (windows_core::Interface::vtable(self).GetTypeDefProps)(windows_core::Interface::as_raw(self), td, core::mem::transmute(sztypedef.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), sztypedef.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchtypedef), core::mem::transmute(pdwtypedefflags), core::mem::transmute(ptkextends)).ok() } pub unsafe fn GetInterfaceImplProps(&self, iiimpl: u32, pclass: *mut u32, ptkiface: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInterfaceImplProps)(windows_core::Interface::as_raw(self), core::mem::transmute(iiimpl), core::mem::transmute(pclass), core::mem::transmute(ptkiface)).ok() + (windows_core::Interface::vtable(self).GetInterfaceImplProps)(windows_core::Interface::as_raw(self), iiimpl, core::mem::transmute(pclass), core::mem::transmute(ptkiface)).ok() } pub unsafe fn GetTypeRefProps(&self, tr: u32, ptkresolutionscope: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeRefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(tr), core::mem::transmute(ptkresolutionscope), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() + (windows_core::Interface::vtable(self).GetTypeRefProps)(windows_core::Interface::as_raw(self), tr, core::mem::transmute(ptkresolutionscope), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() } pub unsafe fn ResolveTypeRef(&self, tr: u32, riid: *const windows_core::GUID, ppiscope: *mut Option, ptd: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ResolveTypeRef)(windows_core::Interface::as_raw(self), core::mem::transmute(tr), core::mem::transmute(riid), core::mem::transmute(ppiscope), core::mem::transmute(ptd)).ok() + (windows_core::Interface::vtable(self).ResolveTypeRef)(windows_core::Interface::as_raw(self), tr, riid, core::mem::transmute(ppiscope), core::mem::transmute(ptd)).ok() } pub unsafe fn EnumMembers(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMembers)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(cl), core::mem::transmute(rmembers), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumMembers)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), cl, core::mem::transmute(rmembers), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumMembersWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P2, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumMembersWithName)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(cl), szname.param().abi(), core::mem::transmute(rmembers), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumMembersWithName)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), cl, szname.param().abi(), core::mem::transmute(rmembers), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumMethods(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMethods)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(cl), core::mem::transmute(rmethods), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumMethods)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), cl, core::mem::transmute(rmethods), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumMethodsWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P2, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumMethodsWithName)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(cl), szname.param().abi(), core::mem::transmute(rmethods), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumMethodsWithName)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), cl, szname.param().abi(), core::mem::transmute(rmethods), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumFields(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumFields)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(cl), core::mem::transmute(rfields), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumFields)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), cl, core::mem::transmute(rfields), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumFieldsWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P2, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumFieldsWithName)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(cl), szname.param().abi(), core::mem::transmute(rfields), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumFieldsWithName)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), cl, szname.param().abi(), core::mem::transmute(rfields), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumParams(&self, phenum: *mut *mut core::ffi::c_void, mb: u32, rparams: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumParams)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(mb), core::mem::transmute(rparams), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumParams)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), mb, core::mem::transmute(rparams), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumMemberRefs(&self, phenum: *mut *mut core::ffi::c_void, tkparent: u32, rmemberrefs: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMemberRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(tkparent), core::mem::transmute(rmemberrefs), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumMemberRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), tkparent, core::mem::transmute(rmemberrefs), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumMethodImpls(&self, phenum: *mut *mut core::ffi::c_void, td: u32, rmethodbody: *mut u32, rmethoddecl: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMethodImpls)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(td), core::mem::transmute(rmethodbody), core::mem::transmute(rmethoddecl), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumMethodImpls)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), td, core::mem::transmute(rmethodbody), core::mem::transmute(rmethoddecl), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn EnumPermissionSets(&self, phenum: *mut *mut core::ffi::c_void, tk: u32, dwactions: u32, rpermission: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumPermissionSets)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(tk), core::mem::transmute(dwactions), core::mem::transmute(rpermission), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumPermissionSets)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), tk, dwactions, core::mem::transmute(rpermission), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn FindMember(&self, td: u32, szname: P1, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindMember)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szname.param().abi(), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(pmb)).ok() + (windows_core::Interface::vtable(self).FindMember)(windows_core::Interface::as_raw(self), td, szname.param().abi(), core::mem::transmute(pvsigblob), cbsigblob, core::mem::transmute(pmb)).ok() } pub unsafe fn FindMethod(&self, td: u32, szname: P1, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szname.param().abi(), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(pmb)).ok() + (windows_core::Interface::vtable(self).FindMethod)(windows_core::Interface::as_raw(self), td, szname.param().abi(), core::mem::transmute(pvsigblob), cbsigblob, core::mem::transmute(pmb)).ok() } pub unsafe fn FindField(&self, td: u32, szname: P1, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindField)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szname.param().abi(), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(pmb)).ok() + (windows_core::Interface::vtable(self).FindField)(windows_core::Interface::as_raw(self), td, szname.param().abi(), core::mem::transmute(pvsigblob), cbsigblob, core::mem::transmute(pmb)).ok() } pub unsafe fn FindMemberRef(&self, td: u32, szname: P1, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindMemberRef)(windows_core::Interface::as_raw(self), core::mem::transmute(td), szname.param().abi(), core::mem::transmute(pvsigblob), core::mem::transmute(cbsigblob), core::mem::transmute(pmr)).ok() + (windows_core::Interface::vtable(self).FindMemberRef)(windows_core::Interface::as_raw(self), td, szname.param().abi(), core::mem::transmute(pvsigblob), cbsigblob, core::mem::transmute(pmr)).ok() } pub unsafe fn GetMethodProps(&self, mb: u32, pclass: *mut u32, szmethod: Option<&mut [u16]>, pchmethod: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMethodProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mb), core::mem::transmute(pclass), core::mem::transmute(szmethod.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szmethod.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchmethod), core::mem::transmute(pdwattr), core::mem::transmute(ppvsigblob), core::mem::transmute(pcbsigblob), core::mem::transmute(pulcoderva), core::mem::transmute(pdwimplflags)).ok() + (windows_core::Interface::vtable(self).GetMethodProps)(windows_core::Interface::as_raw(self), mb, core::mem::transmute(pclass), core::mem::transmute(szmethod.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szmethod.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchmethod), core::mem::transmute(pdwattr), core::mem::transmute(ppvsigblob), core::mem::transmute(pcbsigblob), core::mem::transmute(pulcoderva), core::mem::transmute(pdwimplflags)).ok() } pub unsafe fn GetMemberRefProps(&self, mr: u32, ptk: *mut u32, szmember: Option<&mut [u16]>, pchmember: *mut u32, ppvsigblob: *mut *mut u8, pbsig: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMemberRefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mr), core::mem::transmute(ptk), core::mem::transmute(szmember.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szmember.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchmember), core::mem::transmute(ppvsigblob), core::mem::transmute(pbsig)).ok() + (windows_core::Interface::vtable(self).GetMemberRefProps)(windows_core::Interface::as_raw(self), mr, core::mem::transmute(ptk), core::mem::transmute(szmember.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szmember.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchmember), core::mem::transmute(ppvsigblob), core::mem::transmute(pbsig)).ok() } pub unsafe fn EnumProperties(&self, phenum: *mut *mut core::ffi::c_void, td: u32, rproperties: *mut u32, cmax: u32, pcproperties: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(td), core::mem::transmute(rproperties), core::mem::transmute(cmax), core::mem::transmute(pcproperties)).ok() + (windows_core::Interface::vtable(self).EnumProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), td, core::mem::transmute(rproperties), cmax, core::mem::transmute(pcproperties)).ok() } pub unsafe fn EnumEvents(&self, phenum: *mut *mut core::ffi::c_void, td: u32, revents: *mut u32, cmax: u32, pcevents: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(td), core::mem::transmute(revents), core::mem::transmute(cmax), core::mem::transmute(pcevents)).ok() + (windows_core::Interface::vtable(self).EnumEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), td, core::mem::transmute(revents), cmax, core::mem::transmute(pcevents)).ok() } pub unsafe fn GetEventProps(&self, ev: u32, pclass: *mut u32, szevent: P2, 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::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventProps)(windows_core::Interface::as_raw(self), core::mem::transmute(ev), core::mem::transmute(pclass), szevent.param().abi(), core::mem::transmute(cchevent), core::mem::transmute(pchevent), core::mem::transmute(pdweventflags), core::mem::transmute(ptkeventtype), core::mem::transmute(pmdaddon), core::mem::transmute(pmdremoveon), core::mem::transmute(pmdfire), core::mem::transmute(rmdothermethod), core::mem::transmute(cmax), core::mem::transmute(pcothermethod)).ok() + (windows_core::Interface::vtable(self).GetEventProps)(windows_core::Interface::as_raw(self), ev, core::mem::transmute(pclass), szevent.param().abi(), cchevent, core::mem::transmute(pchevent), core::mem::transmute(pdweventflags), core::mem::transmute(ptkeventtype), core::mem::transmute(pmdaddon), core::mem::transmute(pmdremoveon), core::mem::transmute(pmdfire), core::mem::transmute(rmdothermethod), cmax, core::mem::transmute(pcothermethod)).ok() } pub unsafe fn EnumMethodSemantics(&self, phenum: *mut *mut core::ffi::c_void, mb: u32, reventprop: *mut u32, cmax: u32, pceventprop: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMethodSemantics)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(mb), core::mem::transmute(reventprop), core::mem::transmute(cmax), core::mem::transmute(pceventprop)).ok() + (windows_core::Interface::vtable(self).EnumMethodSemantics)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), mb, core::mem::transmute(reventprop), cmax, core::mem::transmute(pceventprop)).ok() } pub unsafe fn GetMethodSemantics(&self, mb: u32, tkeventprop: u32, pdwsemanticsflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMethodSemantics)(windows_core::Interface::as_raw(self), core::mem::transmute(mb), core::mem::transmute(tkeventprop), core::mem::transmute(pdwsemanticsflags)).ok() + (windows_core::Interface::vtable(self).GetMethodSemantics)(windows_core::Interface::as_raw(self), mb, tkeventprop, core::mem::transmute(pdwsemanticsflags)).ok() } pub unsafe fn GetClassLayout(&self, td: u32, pdwpacksize: *mut u32, rfieldoffset: *mut COR_FIELD_OFFSET, cmax: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClassLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(td), core::mem::transmute(pdwpacksize), core::mem::transmute(rfieldoffset), core::mem::transmute(cmax), core::mem::transmute(pcfieldoffset), core::mem::transmute(pulclasssize)).ok() + (windows_core::Interface::vtable(self).GetClassLayout)(windows_core::Interface::as_raw(self), td, core::mem::transmute(pdwpacksize), core::mem::transmute(rfieldoffset), cmax, core::mem::transmute(pcfieldoffset), core::mem::transmute(pulclasssize)).ok() } pub unsafe fn GetFieldMarshal(&self, tk: u32, ppvnativetype: *mut *mut u8, pcbnativetype: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldMarshal)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(ppvnativetype), core::mem::transmute(pcbnativetype)).ok() + (windows_core::Interface::vtable(self).GetFieldMarshal)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(ppvnativetype), core::mem::transmute(pcbnativetype)).ok() } pub unsafe fn GetRVA(&self, tk: u32, pulcoderva: *mut u32, pdwimplflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRVA)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(pulcoderva), core::mem::transmute(pdwimplflags)).ok() + (windows_core::Interface::vtable(self).GetRVA)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(pulcoderva), core::mem::transmute(pdwimplflags)).ok() } pub unsafe fn GetPermissionSetProps(&self, pm: u32, pdwaction: *mut u32, ppvpermission: *const *const core::ffi::c_void, pcbpermission: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPermissionSetProps)(windows_core::Interface::as_raw(self), core::mem::transmute(pm), core::mem::transmute(pdwaction), core::mem::transmute(ppvpermission), core::mem::transmute(pcbpermission)).ok() + (windows_core::Interface::vtable(self).GetPermissionSetProps)(windows_core::Interface::as_raw(self), pm, core::mem::transmute(pdwaction), ppvpermission, core::mem::transmute(pcbpermission)).ok() } pub unsafe fn GetSigFromToken(&self, mdsig: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSigFromToken)(windows_core::Interface::as_raw(self), core::mem::transmute(mdsig), core::mem::transmute(ppvsig), core::mem::transmute(pcbsig)).ok() + (windows_core::Interface::vtable(self).GetSigFromToken)(windows_core::Interface::as_raw(self), mdsig, core::mem::transmute(ppvsig), core::mem::transmute(pcbsig)).ok() } pub unsafe fn GetModuleRefProps(&self, mur: u32, szname: Option<&mut [u16]>, pchname: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetModuleRefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mur), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() + (windows_core::Interface::vtable(self).GetModuleRefProps)(windows_core::Interface::as_raw(self), mur, core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() } pub unsafe fn EnumModuleRefs(&self, phenum: *mut *mut core::ffi::c_void, rmodulerefs: *mut u32, cmax: u32, pcmodulerefs: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumModuleRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rmodulerefs), core::mem::transmute(cmax), core::mem::transmute(pcmodulerefs)).ok() + (windows_core::Interface::vtable(self).EnumModuleRefs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rmodulerefs), cmax, core::mem::transmute(pcmodulerefs)).ok() } pub unsafe fn GetTypeSpecFromToken(&self, typespec: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTypeSpecFromToken)(windows_core::Interface::as_raw(self), core::mem::transmute(typespec), core::mem::transmute(ppvsig), core::mem::transmute(pcbsig)).ok() + (windows_core::Interface::vtable(self).GetTypeSpecFromToken)(windows_core::Interface::as_raw(self), typespec, core::mem::transmute(ppvsig), core::mem::transmute(pcbsig)).ok() } pub unsafe fn GetNameFromToken(&self, tk: u32, pszutf8nameptr: *mut *mut i8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNameFromToken)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(pszutf8nameptr)).ok() + (windows_core::Interface::vtable(self).GetNameFromToken)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(pszutf8nameptr)).ok() } pub unsafe fn EnumUnresolvedMethods(&self, phenum: *mut *mut core::ffi::c_void, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumUnresolvedMethods)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rmethods), core::mem::transmute(cmax), core::mem::transmute(pctokens)).ok() + (windows_core::Interface::vtable(self).EnumUnresolvedMethods)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rmethods), cmax, core::mem::transmute(pctokens)).ok() } pub unsafe fn GetUserString(&self, stk: u32, szstring: Option<&mut [u16]>, pchstring: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUserString)(windows_core::Interface::as_raw(self), core::mem::transmute(stk), core::mem::transmute(szstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchstring)).ok() + (windows_core::Interface::vtable(self).GetUserString)(windows_core::Interface::as_raw(self), stk, core::mem::transmute(szstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchstring)).ok() } pub unsafe fn GetPinvokeMap(&self, tk: u32, pdwmappingflags: *mut u32, szimportname: Option<&mut [u16]>, pchimportname: *mut u32, pmrimportdll: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPinvokeMap)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(pdwmappingflags), core::mem::transmute(szimportname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szimportname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchimportname), core::mem::transmute(pmrimportdll)).ok() + (windows_core::Interface::vtable(self).GetPinvokeMap)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(pdwmappingflags), core::mem::transmute(szimportname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szimportname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchimportname), core::mem::transmute(pmrimportdll)).ok() } pub unsafe fn EnumSignatures(&self, phenum: *mut *mut core::ffi::c_void, rsignatures: *mut u32, cmax: u32, pcsignatures: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumSignatures)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rsignatures), core::mem::transmute(cmax), core::mem::transmute(pcsignatures)).ok() + (windows_core::Interface::vtable(self).EnumSignatures)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rsignatures), cmax, core::mem::transmute(pcsignatures)).ok() } pub unsafe fn EnumTypeSpecs(&self, phenum: *mut *mut core::ffi::c_void, rtypespecs: *mut u32, cmax: u32, pctypespecs: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumTypeSpecs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rtypespecs), core::mem::transmute(cmax), core::mem::transmute(pctypespecs)).ok() + (windows_core::Interface::vtable(self).EnumTypeSpecs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rtypespecs), cmax, core::mem::transmute(pctypespecs)).ok() } pub unsafe fn EnumUserStrings(&self, phenum: *mut *mut core::ffi::c_void, rstrings: *mut u32, cmax: u32, pcstrings: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumUserStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rstrings), core::mem::transmute(cmax), core::mem::transmute(pcstrings)).ok() + (windows_core::Interface::vtable(self).EnumUserStrings)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(rstrings), cmax, core::mem::transmute(pcstrings)).ok() } pub unsafe fn GetParamForMethodIndex(&self, md: u32, ulparamseq: u32, ppd: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParamForMethodIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(md), core::mem::transmute(ulparamseq), core::mem::transmute(ppd)).ok() + (windows_core::Interface::vtable(self).GetParamForMethodIndex)(windows_core::Interface::as_raw(self), md, ulparamseq, core::mem::transmute(ppd)).ok() } pub unsafe fn EnumCustomAttributes(&self, phenum: *mut *mut core::ffi::c_void, tk: u32, tktype: u32, rcustomattributes: *mut u32, cmax: u32, pccustomattributes: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumCustomAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(tk), core::mem::transmute(tktype), core::mem::transmute(rcustomattributes), core::mem::transmute(cmax), core::mem::transmute(pccustomattributes)).ok() + (windows_core::Interface::vtable(self).EnumCustomAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), tk, tktype, core::mem::transmute(rcustomattributes), cmax, core::mem::transmute(pccustomattributes)).ok() } pub unsafe fn GetCustomAttributeProps(&self, cv: u32, ptkobj: *mut u32, ptktype: *mut u32, ppblob: *const *const core::ffi::c_void, pcbsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCustomAttributeProps)(windows_core::Interface::as_raw(self), core::mem::transmute(cv), core::mem::transmute(ptkobj), core::mem::transmute(ptktype), core::mem::transmute(ppblob), core::mem::transmute(pcbsize)).ok() + (windows_core::Interface::vtable(self).GetCustomAttributeProps)(windows_core::Interface::as_raw(self), cv, core::mem::transmute(ptkobj), core::mem::transmute(ptktype), ppblob, core::mem::transmute(pcbsize)).ok() } pub unsafe fn FindTypeRef(&self, tkresolutionscope: u32, szname: P1, ptr: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindTypeRef)(windows_core::Interface::as_raw(self), core::mem::transmute(tkresolutionscope), szname.param().abi(), core::mem::transmute(ptr)).ok() + (windows_core::Interface::vtable(self).FindTypeRef)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.param().abi(), core::mem::transmute(ptr)).ok() } pub unsafe fn GetMemberProps(&self, mb: u32, pclass: *mut u32, szmember: Option<&mut [u16]>, 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::Result<()> { (windows_core::Interface::vtable(self).GetMemberProps)( windows_core::Interface::as_raw(self), - core::mem::transmute(mb), + mb, core::mem::transmute(pclass), core::mem::transmute(szmember.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szmember.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -2440,21 +2427,7 @@ impl IMetaDataImport { .ok() } pub unsafe fn GetFieldProps(&self, mb: u32, pclass: *mut u32, szfield: Option<&mut [u16]>, 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::Result<()> { - (windows_core::Interface::vtable(self).GetFieldProps)( - windows_core::Interface::as_raw(self), - core::mem::transmute(mb), - core::mem::transmute(pclass), - core::mem::transmute(szfield.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - szfield.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), - core::mem::transmute(pchfield), - core::mem::transmute(pdwattr), - core::mem::transmute(ppvsigblob), - core::mem::transmute(pcbsigblob), - core::mem::transmute(pdwcplustypeflag), - core::mem::transmute(ppvalue), - core::mem::transmute(pcchvalue), - ) - .ok() + (windows_core::Interface::vtable(self).GetFieldProps)(windows_core::Interface::as_raw(self), mb, core::mem::transmute(pclass), core::mem::transmute(szfield.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szfield.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchfield), core::mem::transmute(pdwattr), core::mem::transmute(ppvsigblob), core::mem::transmute(pcbsigblob), core::mem::transmute(pdwcplustypeflag), core::mem::transmute(ppvalue), core::mem::transmute(pcchvalue)).ok() } pub unsafe fn GetPropertyProps(&self, prop: u32, pclass: *mut u32, szproperty: P2, 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::Result<()> where @@ -2462,10 +2435,10 @@ impl IMetaDataImport { { (windows_core::Interface::vtable(self).GetPropertyProps)( windows_core::Interface::as_raw(self), - core::mem::transmute(prop), + prop, core::mem::transmute(pclass), szproperty.param().abi(), - core::mem::transmute(cchproperty), + cchproperty, core::mem::transmute(pchproperty), core::mem::transmute(pdwpropflags), core::mem::transmute(ppvsig), @@ -2476,31 +2449,31 @@ impl IMetaDataImport { core::mem::transmute(pmdsetter), core::mem::transmute(pmdgetter), core::mem::transmute(rmdothermethod), - core::mem::transmute(cmax), + cmax, core::mem::transmute(pcothermethod), ) .ok() } pub unsafe fn GetParamProps(&self, tk: u32, pmd: *mut u32, pulsequence: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32, pdwattr: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetParamProps)(windows_core::Interface::as_raw(self), core::mem::transmute(tk), core::mem::transmute(pmd), core::mem::transmute(pulsequence), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(pdwattr), core::mem::transmute(pdwcplustypeflag), core::mem::transmute(ppvalue), core::mem::transmute(pcchvalue)).ok() + (windows_core::Interface::vtable(self).GetParamProps)(windows_core::Interface::as_raw(self), tk, core::mem::transmute(pmd), core::mem::transmute(pulsequence), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname), core::mem::transmute(pdwattr), core::mem::transmute(pdwcplustypeflag), core::mem::transmute(ppvalue), core::mem::transmute(pcchvalue)).ok() } pub unsafe fn GetCustomAttributeByName(&self, tkobj: u32, szname: P1, ppdata: *const *const core::ffi::c_void, pcbdata: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCustomAttributeByName)(windows_core::Interface::as_raw(self), core::mem::transmute(tkobj), szname.param().abi(), core::mem::transmute(ppdata), core::mem::transmute(pcbdata)).ok() + (windows_core::Interface::vtable(self).GetCustomAttributeByName)(windows_core::Interface::as_raw(self), tkobj, szname.param().abi(), ppdata, core::mem::transmute(pcbdata)).ok() } pub unsafe fn IsValidToken(&self, tk: u32) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).IsValidToken)(windows_core::Interface::as_raw(self), core::mem::transmute(tk)) + (windows_core::Interface::vtable(self).IsValidToken)(windows_core::Interface::as_raw(self), tk) } pub unsafe fn GetNestedClassProps(&self, tdnestedclass: u32, ptdenclosingclass: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNestedClassProps)(windows_core::Interface::as_raw(self), core::mem::transmute(tdnestedclass), core::mem::transmute(ptdenclosingclass)).ok() + (windows_core::Interface::vtable(self).GetNestedClassProps)(windows_core::Interface::as_raw(self), tdnestedclass, core::mem::transmute(ptdenclosingclass)).ok() } pub unsafe fn GetNativeCallConvFromSig(&self, pvsig: *const core::ffi::c_void, cbsig: u32, pcallconv: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNativeCallConvFromSig)(windows_core::Interface::as_raw(self), core::mem::transmute(pvsig), core::mem::transmute(cbsig), core::mem::transmute(pcallconv)).ok() + (windows_core::Interface::vtable(self).GetNativeCallConvFromSig)(windows_core::Interface::as_raw(self), pvsig, cbsig, core::mem::transmute(pcallconv)).ok() } pub unsafe fn IsGlobal(&self, pd: u32, pbglobal: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsGlobal)(windows_core::Interface::as_raw(self), core::mem::transmute(pd), core::mem::transmute(pbglobal)).ok() + (windows_core::Interface::vtable(self).IsGlobal)(windows_core::Interface::as_raw(self), pd, core::mem::transmute(pbglobal)).ok() } } #[repr(C)] @@ -3015,19 +2988,19 @@ impl core::ops::Deref for IMetaDataImport2 { windows_core::imp::interface_hierarchy!(IMetaDataImport2, windows_core::IUnknown, IMetaDataImport); impl IMetaDataImport2 { pub unsafe fn EnumGenericParams(&self, phenum: *mut *mut core::ffi::c_void, tk: u32, rgenericparams: *mut u32, cmax: u32, pcgenericparams: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumGenericParams)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(tk), core::mem::transmute(rgenericparams), core::mem::transmute(cmax), core::mem::transmute(pcgenericparams)).ok() + (windows_core::Interface::vtable(self).EnumGenericParams)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), tk, core::mem::transmute(rgenericparams), cmax, core::mem::transmute(pcgenericparams)).ok() } pub unsafe fn GetGenericParamProps(&self, gp: u32, pulparamseq: *mut u32, pdwparamflags: *mut u32, ptowner: *mut u32, reserved: *mut u32, wzname: Option<&mut [u16]>, pchname: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGenericParamProps)(windows_core::Interface::as_raw(self), core::mem::transmute(gp), core::mem::transmute(pulparamseq), core::mem::transmute(pdwparamflags), core::mem::transmute(ptowner), core::mem::transmute(reserved), core::mem::transmute(wzname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), wzname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() + (windows_core::Interface::vtable(self).GetGenericParamProps)(windows_core::Interface::as_raw(self), gp, core::mem::transmute(pulparamseq), core::mem::transmute(pdwparamflags), core::mem::transmute(ptowner), core::mem::transmute(reserved), core::mem::transmute(wzname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), wzname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() } pub unsafe fn GetMethodSpecProps(&self, mi: u32, tkparent: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMethodSpecProps)(windows_core::Interface::as_raw(self), core::mem::transmute(mi), core::mem::transmute(tkparent), core::mem::transmute(ppvsigblob), core::mem::transmute(pcbsigblob)).ok() + (windows_core::Interface::vtable(self).GetMethodSpecProps)(windows_core::Interface::as_raw(self), mi, core::mem::transmute(tkparent), core::mem::transmute(ppvsigblob), core::mem::transmute(pcbsigblob)).ok() } pub unsafe fn EnumGenericParamConstraints(&self, phenum: *mut *mut core::ffi::c_void, tk: u32, rgenericparamconstraints: *mut u32, cmax: u32, pcgenericparamconstraints: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumGenericParamConstraints)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(tk), core::mem::transmute(rgenericparamconstraints), core::mem::transmute(cmax), core::mem::transmute(pcgenericparamconstraints)).ok() + (windows_core::Interface::vtable(self).EnumGenericParamConstraints)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), tk, core::mem::transmute(rgenericparamconstraints), cmax, core::mem::transmute(pcgenericparamconstraints)).ok() } pub unsafe fn GetGenericParamConstraintProps(&self, gpc: u32, ptgenericparam: *mut u32, ptkconstrainttype: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGenericParamConstraintProps)(windows_core::Interface::as_raw(self), core::mem::transmute(gpc), core::mem::transmute(ptgenericparam), core::mem::transmute(ptkconstrainttype)).ok() + (windows_core::Interface::vtable(self).GetGenericParamConstraintProps)(windows_core::Interface::as_raw(self), gpc, core::mem::transmute(ptgenericparam), core::mem::transmute(ptkconstrainttype)).ok() } pub unsafe fn GetPEKind(&self, pdwpekind: *mut u32, pdwmachine: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPEKind)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwpekind), core::mem::transmute(pdwmachine)).ok() @@ -3036,7 +3009,7 @@ impl IMetaDataImport2 { (windows_core::Interface::vtable(self).GetVersionString)(windows_core::Interface::as_raw(self), core::mem::transmute(pwzbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwzbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pccbufsize)).ok() } pub unsafe fn EnumMethodSpecs(&self, phenum: *mut *mut core::ffi::c_void, tk: u32, rmethodspecs: *mut u32, cmax: u32, pcmethodspecs: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnumMethodSpecs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), core::mem::transmute(tk), core::mem::transmute(rmethodspecs), core::mem::transmute(cmax), core::mem::transmute(pcmethodspecs)).ok() + (windows_core::Interface::vtable(self).EnumMethodSpecs)(windows_core::Interface::as_raw(self), core::mem::transmute(phenum), tk, core::mem::transmute(rmethodspecs), cmax, core::mem::transmute(pcmethodspecs)).ok() } } #[repr(C)] @@ -3116,7 +3089,7 @@ windows_core::imp::define_interface!(IMetaDataInfo, IMetaDataInfo_Vtbl, 0x7998ea windows_core::imp::interface_hierarchy!(IMetaDataInfo, windows_core::IUnknown); impl IMetaDataInfo { pub unsafe fn GetFileMapping(&self, ppvdata: *const *const core::ffi::c_void, pcbdata: *mut u64, pdwmappingtype: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFileMapping)(windows_core::Interface::as_raw(self), core::mem::transmute(ppvdata), core::mem::transmute(pcbdata), core::mem::transmute(pdwmappingtype)).ok() + (windows_core::Interface::vtable(self).GetFileMapping)(windows_core::Interface::as_raw(self), ppvdata, core::mem::transmute(pcbdata), core::mem::transmute(pdwmappingtype)).ok() } } #[repr(C)] @@ -3159,46 +3132,46 @@ impl IMetaDataTables { (windows_core::Interface::vtable(self).GetNumTables)(windows_core::Interface::as_raw(self), core::mem::transmute(pctables)).ok() } pub unsafe fn GetTableIndex(&self, token: u32, pixtbl: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(token), core::mem::transmute(pixtbl)).ok() + (windows_core::Interface::vtable(self).GetTableIndex)(windows_core::Interface::as_raw(self), token, core::mem::transmute(pixtbl)).ok() } pub unsafe fn GetTableInfo(&self, ixtbl: u32, pcbrow: *mut u32, pcrows: *mut u32, pccols: *mut u32, pikey: *mut u32, ppname: *const *const i8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTableInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ixtbl), core::mem::transmute(pcbrow), core::mem::transmute(pcrows), core::mem::transmute(pccols), core::mem::transmute(pikey), core::mem::transmute(ppname)).ok() + (windows_core::Interface::vtable(self).GetTableInfo)(windows_core::Interface::as_raw(self), ixtbl, core::mem::transmute(pcbrow), core::mem::transmute(pcrows), core::mem::transmute(pccols), core::mem::transmute(pikey), ppname).ok() } pub unsafe fn GetColumnInfo(&self, ixtbl: u32, ixcol: u32, pocol: *mut u32, pcbcol: *mut u32, ptype: *mut u32, ppname: *const *const i8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ixtbl), core::mem::transmute(ixcol), core::mem::transmute(pocol), core::mem::transmute(pcbcol), core::mem::transmute(ptype), core::mem::transmute(ppname)).ok() + (windows_core::Interface::vtable(self).GetColumnInfo)(windows_core::Interface::as_raw(self), ixtbl, ixcol, core::mem::transmute(pocol), core::mem::transmute(pcbcol), core::mem::transmute(ptype), ppname).ok() } pub unsafe fn GetCodedTokenInfo(&self, ixcdtkn: u32, pctokens: *mut u32, pptokens: *mut *mut u32, ppname: *const *const i8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCodedTokenInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ixcdtkn), core::mem::transmute(pctokens), core::mem::transmute(pptokens), core::mem::transmute(ppname)).ok() + (windows_core::Interface::vtable(self).GetCodedTokenInfo)(windows_core::Interface::as_raw(self), ixcdtkn, core::mem::transmute(pctokens), core::mem::transmute(pptokens), ppname).ok() } pub unsafe fn GetRow(&self, ixtbl: u32, rid: u32, pprow: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRow)(windows_core::Interface::as_raw(self), core::mem::transmute(ixtbl), core::mem::transmute(rid), core::mem::transmute(pprow)).ok() + (windows_core::Interface::vtable(self).GetRow)(windows_core::Interface::as_raw(self), ixtbl, rid, core::mem::transmute(pprow)).ok() } pub unsafe fn GetColumn(&self, ixtbl: u32, ixcol: u32, rid: u32, pval: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(ixtbl), core::mem::transmute(ixcol), core::mem::transmute(rid), core::mem::transmute(pval)).ok() + (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), ixtbl, ixcol, rid, core::mem::transmute(pval)).ok() } pub unsafe fn GetString(&self, ixstring: u32, ppstring: *const *const i8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(ixstring), core::mem::transmute(ppstring)).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), ixstring, ppstring).ok() } pub unsafe fn GetBlob(&self, ixblob: u32, pcbdata: *mut u32, ppdata: *const *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(ixblob), core::mem::transmute(pcbdata), core::mem::transmute(ppdata)).ok() + (windows_core::Interface::vtable(self).GetBlob)(windows_core::Interface::as_raw(self), ixblob, core::mem::transmute(pcbdata), ppdata).ok() } pub unsafe fn GetGuid(&self, ixguid: u32, ppguid: *const *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(ixguid), core::mem::transmute(ppguid)).ok() + (windows_core::Interface::vtable(self).GetGuid)(windows_core::Interface::as_raw(self), ixguid, ppguid).ok() } pub unsafe fn GetUserString(&self, ixuserstring: u32, pcbdata: *mut u32, ppdata: *const *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUserString)(windows_core::Interface::as_raw(self), core::mem::transmute(ixuserstring), core::mem::transmute(pcbdata), core::mem::transmute(ppdata)).ok() + (windows_core::Interface::vtable(self).GetUserString)(windows_core::Interface::as_raw(self), ixuserstring, core::mem::transmute(pcbdata), ppdata).ok() } pub unsafe fn GetNextString(&self, ixstring: u32, pnext: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextString)(windows_core::Interface::as_raw(self), core::mem::transmute(ixstring), core::mem::transmute(pnext)).ok() + (windows_core::Interface::vtable(self).GetNextString)(windows_core::Interface::as_raw(self), ixstring, core::mem::transmute(pnext)).ok() } pub unsafe fn GetNextBlob(&self, ixblob: u32, pnext: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(ixblob), core::mem::transmute(pnext)).ok() + (windows_core::Interface::vtable(self).GetNextBlob)(windows_core::Interface::as_raw(self), ixblob, core::mem::transmute(pnext)).ok() } pub unsafe fn GetNextGuid(&self, ixguid: u32, pnext: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(ixguid), core::mem::transmute(pnext)).ok() + (windows_core::Interface::vtable(self).GetNextGuid)(windows_core::Interface::as_raw(self), ixguid, core::mem::transmute(pnext)).ok() } pub unsafe fn GetNextUserString(&self, ixuserstring: u32, pnext: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNextUserString)(windows_core::Interface::as_raw(self), core::mem::transmute(ixuserstring), core::mem::transmute(pnext)).ok() + (windows_core::Interface::vtable(self).GetNextUserString)(windows_core::Interface::as_raw(self), ixuserstring, core::mem::transmute(pnext)).ok() } } #[repr(C)] @@ -3361,10 +3334,10 @@ impl core::ops::Deref for IMetaDataTables2 { windows_core::imp::interface_hierarchy!(IMetaDataTables2, windows_core::IUnknown, IMetaDataTables); impl IMetaDataTables2 { pub unsafe fn GetMetaDataStorage(&self, ppvmd: *const *const core::ffi::c_void, pcbmd: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMetaDataStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(ppvmd), core::mem::transmute(pcbmd)).ok() + (windows_core::Interface::vtable(self).GetMetaDataStorage)(windows_core::Interface::as_raw(self), ppvmd, core::mem::transmute(pcbmd)).ok() } pub unsafe fn GetMetaDataStreamInfo(&self, ix: u32, ppchname: *const *const i8, ppv: *const *const core::ffi::c_void, pcb: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMetaDataStreamInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ix), core::mem::transmute(ppchname), core::mem::transmute(ppv), core::mem::transmute(pcb)).ok() + (windows_core::Interface::vtable(self).GetMetaDataStreamInfo)(windows_core::Interface::as_raw(self), ix, ppchname, ppv, core::mem::transmute(pcb)).ok() } } #[repr(C)] @@ -3405,7 +3378,7 @@ impl IMetaDataValidate { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidatorInit)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmoduletype), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).ValidatorInit)(windows_core::Interface::as_raw(self), dwmoduletype, punk.param().abi()).ok() } pub unsafe fn ValidateMetaData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ValidateMetaData)(windows_core::Interface::as_raw(self)).ok() @@ -3446,7 +3419,7 @@ windows_core::imp::define_interface!(IMetaDataWinMDImport, IMetaDataWinMDImport_ windows_core::imp::interface_hierarchy!(IMetaDataWinMDImport, windows_core::IUnknown); impl IMetaDataWinMDImport { pub unsafe fn GetUntransformedTypeRefProps(&self, tr: u32, ptkresolutionscope: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetUntransformedTypeRefProps)(windows_core::Interface::as_raw(self), core::mem::transmute(tr), core::mem::transmute(ptkresolutionscope), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() + (windows_core::Interface::vtable(self).GetUntransformedTypeRefProps)(windows_core::Interface::as_raw(self), tr, core::mem::transmute(ptkresolutionscope), core::mem::transmute(szname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pchname)).ok() } } #[repr(C)] @@ -3638,10 +3611,10 @@ impl IRoSimpleMetaDataBuilder { (windows_core::Interface::vtable(self).SetEnum)(windows_core::Interface::as_raw(self), name.param().abi(), basetype.param().abi()).ok() } pub unsafe fn SetParameterizedInterface(&self, piid: windows_core::GUID, numargs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameterizedInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(piid), core::mem::transmute(numargs)).ok() + (windows_core::Interface::vtable(self).SetParameterizedInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(piid), numargs).ok() } pub unsafe fn SetParameterizedDelegate(&self, piid: windows_core::GUID, numargs: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetParameterizedDelegate)(windows_core::Interface::as_raw(self), core::mem::transmute(piid), core::mem::transmute(numargs)).ok() + (windows_core::Interface::vtable(self).SetParameterizedDelegate)(windows_core::Interface::as_raw(self), core::mem::transmute(piid), numargs).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/mod.rs index d597a4b2cf..53b6534f31 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/mod.rs @@ -72,14 +72,14 @@ impl IPrintManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowPrintUIForWindowAsync(&self, appwindow: super::super::super::Foundation::HWND) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowPrintUIForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowPrintUIForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -120,10 +120,10 @@ impl IPrintPreviewPageCollection { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Paginate)(windows_core::Interface::as_raw(self), core::mem::transmute(currentjobpage), printtaskoptions.param().abi()).ok() + (windows_core::Interface::vtable(self).Paginate)(windows_core::Interface::as_raw(self), currentjobpage, printtaskoptions.param().abi()).ok() } pub unsafe fn MakePage(&self, desiredjobpage: u32, width: f32, height: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MakePage)(windows_core::Interface::as_raw(self), core::mem::transmute(desiredjobpage), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).MakePage)(windows_core::Interface::as_raw(self), desiredjobpage, width, height).ok() } } #[repr(C)] @@ -362,7 +362,7 @@ impl IPrintWorkflowXpsReceiver { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDocumentData)(windows_core::Interface::as_raw(self), core::mem::transmute(documentid), documentprintticket.param().abi(), documenturi.param().abi()).ok() + (windows_core::Interface::vtable(self).AddDocumentData)(windows_core::Interface::as_raw(self), documentid, documentprintticket.param().abi(), documenturi.param().abi()).ok() } #[cfg(feature = "Win32_Storage_Xps")] pub unsafe fn AddPage(&self, documentid: u32, pageid: u32, pagereference: P2, pageuri: P3) -> windows_core::Result<()> @@ -370,7 +370,7 @@ impl IPrintWorkflowXpsReceiver { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), core::mem::transmute(documentid), core::mem::transmute(pageid), pagereference.param().abi(), pageuri.param().abi()).ok() + (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), documentid, pageid, pagereference.param().abi(), pageuri.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -450,7 +450,7 @@ impl core::ops::Deref for IPrintWorkflowXpsReceiver2 { windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsReceiver2, windows_core::IUnknown, IPrintWorkflowXpsReceiver); impl IPrintWorkflowXpsReceiver2 { pub unsafe fn Failed(&self, xpserror: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Failed)(windows_core::Interface::as_raw(self), core::mem::transmute(xpserror)).ok() + (windows_core::Interface::vtable(self).Failed)(windows_core::Interface::as_raw(self), xpserror).ok() } } #[repr(C)] @@ -485,14 +485,14 @@ impl IPrinting3DManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowPrintUIForWindowAsync(&self, appwindow: super::super::super::Foundation::HWND) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowPrintUIForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowPrintUIForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/mod.rs index a155a801ac..0c4877124f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/mod.rs @@ -19,7 +19,7 @@ impl IDDEInitializer { P7: windows_core::Param, P8: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fileextensionorprotocol.param().abi(), core::mem::transmute(method), currentdirectory.param().abi(), exectarget.param().abi(), site.param().abi(), application.param().abi(), targetfile.param().abi(), arguments.param().abi(), verb.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fileextensionorprotocol.param().abi(), method, currentdirectory.param().abi(), exectarget.param().abi(), site.param().abi(), application.param().abi(), targetfile.param().abi(), arguments.param().abi(), verb.param().abi()).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/mod.rs index 6a9d8d5b76..edd7b804af 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/mod.rs @@ -203,7 +203,7 @@ impl IStorageFolderHandleAccess { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), filename.param().abi(), core::mem::transmute(creationoptions), core::mem::transmute(accessoptions), core::mem::transmute(sharingoptions), core::mem::transmute(options), oplockbreakinghandler.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), filename.param().abi(), creationoptions, accessoptions, sharingoptions, options, oplockbreakinghandler.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -241,7 +241,7 @@ impl IStorageItemHandleAccess { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), core::mem::transmute(accessoptions), core::mem::transmute(sharingoptions), core::mem::transmute(options), oplockbreakinghandler.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), accessoptions, sharingoptions, options, oplockbreakinghandler.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs index 62bdccfe93..328882de6f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -32,7 +32,7 @@ pub mod Storage; pub unsafe fn CoDecodeProxy(dwclientpid: u32, ui64proxyaddress: u64) -> windows_core::Result { windows_targets::link!("ole32.dll" "system" fn CoDecodeProxy(dwclientpid : u32, ui64proxyaddress : u64, pserverinformation : *mut ServerInformation) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CoDecodeProxy(core::mem::transmute(dwclientpid), core::mem::transmute(ui64proxyaddress), &mut result__).map(|| core::mem::transmute(result__)) + CoDecodeProxy(dwclientpid, ui64proxyaddress, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn CreateControlInput() -> windows_core::Result @@ -68,7 +68,7 @@ where { windows_targets::link!("api-ms-win-shcore-stream-winrt-l1-1-0.dll" "system" fn CreateRandomAccessStreamOnFile(filepath : windows_core::PCWSTR, accessmode : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CreateRandomAccessStreamOnFile(filepath.param().abi(), core::mem::transmute(accessmode), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateRandomAccessStreamOnFile(filepath.param().abi(), accessmode, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -79,7 +79,7 @@ where { windows_targets::link!("api-ms-win-shcore-stream-winrt-l1-1-0.dll" "system" fn CreateRandomAccessStreamOverStream(stream : * mut core::ffi::c_void, options : BSOS_OPTIONS, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - CreateRandomAccessStreamOverStream(stream.param().abi(), core::mem::transmute(options), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateRandomAccessStreamOverStream(stream.param().abi(), options, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateStreamOverRandomAccessStream(randomaccessstream: P0) -> windows_core::Result @@ -100,42 +100,42 @@ pub unsafe fn GetRestrictedErrorInfo() -> windows_core::Result *mut u8 { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn HSTRING_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const * mut core::ffi::c_void) -> *mut u8); - HSTRING_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HSTRING_UserMarshal(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[inline] pub unsafe fn HSTRING_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const windows_core::HSTRING) -> *mut u8 { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn HSTRING_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const * mut core::ffi::c_void) -> *mut u8); - HSTRING_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HSTRING_UserMarshal64(param0, core::mem::transmute(param1), core::mem::transmute(param2)) } #[inline] pub unsafe fn HSTRING_UserSize(param0: *const u32, param1: u32, param2: *const windows_core::HSTRING) -> u32 { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn HSTRING_UserSize(param0 : *const u32, param1 : u32, param2 : *const * mut core::ffi::c_void) -> u32); - HSTRING_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HSTRING_UserSize(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HSTRING_UserSize64(param0: *const u32, param1: u32, param2: *const windows_core::HSTRING) -> u32 { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn HSTRING_UserSize64(param0 : *const u32, param1 : u32, param2 : *const * mut core::ffi::c_void) -> u32); - HSTRING_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HSTRING_UserSize64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HSTRING_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut windows_core::HSTRING) -> *mut u8 { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn HSTRING_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut * mut core::ffi::c_void) -> *mut u8); - HSTRING_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HSTRING_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HSTRING_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut windows_core::HSTRING) -> *mut u8 { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn HSTRING_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut * mut core::ffi::c_void) -> *mut u8); - HSTRING_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HSTRING_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn IsErrorPropagationEnabled() -> super::super::Foundation::BOOL { @@ -151,7 +151,7 @@ pub unsafe fn RoActivateInstance(activatableclassid: &windows_core::HSTRING) -> #[inline] pub unsafe fn RoCaptureErrorContext(hr: windows_core::HRESULT) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoCaptureErrorContext(hr : windows_core::HRESULT) -> windows_core::HRESULT); - RoCaptureErrorContext(core::mem::transmute(hr)).ok() + RoCaptureErrorContext(hr).ok() } #[inline] pub unsafe fn RoClearError() { @@ -161,7 +161,7 @@ pub unsafe fn RoClearError() { #[inline] pub unsafe fn RoFailFastWithErrorContext(hrerror: windows_core::HRESULT) { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoFailFastWithErrorContext(hrerror : windows_core::HRESULT)); - RoFailFastWithErrorContext(core::mem::transmute(hrerror)) + RoFailFastWithErrorContext(hrerror) } #[inline] pub unsafe fn RoGetActivationFactory(activatableclassid: &windows_core::HSTRING) -> windows_core::Result @@ -179,7 +179,7 @@ where { windows_targets::link!("ole32.dll" "system" fn RoGetAgileReference(options : AgileReferenceOptions, riid : *const windows_core::GUID, punk : * mut core::ffi::c_void, ppagilereference : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoGetAgileReference(core::mem::transmute(options), core::mem::transmute(riid), punk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + RoGetAgileReference(options, riid, punk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn RoGetApartmentIdentifier() -> windows_core::Result { @@ -204,7 +204,7 @@ pub unsafe fn RoGetErrorReportingFlags() -> windows_core::Result { pub unsafe fn RoGetMatchingRestrictedErrorInfo(hrin: windows_core::HRESULT) -> windows_core::Result { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoGetMatchingRestrictedErrorInfo(hrin : windows_core::HRESULT, pprestrictederrorinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoGetMatchingRestrictedErrorInfo(core::mem::transmute(hrin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + RoGetMatchingRestrictedErrorInfo(hrin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn RoGetServerActivatableClasses(servername: &windows_core::HSTRING, activatableclassids: *mut *mut windows_core::HSTRING, count: *mut u32) -> windows_core::Result<()> { @@ -214,28 +214,28 @@ pub unsafe fn RoGetServerActivatableClasses(servername: &windows_core::HSTRING, #[inline] pub unsafe fn RoInitialize(inittype: RO_INIT_TYPE) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoInitialize(inittype : RO_INIT_TYPE) -> windows_core::HRESULT); - RoInitialize(core::mem::transmute(inittype)).ok() + RoInitialize(inittype).ok() } #[inline] pub unsafe fn RoInspectCapturedStackBackTrace(targeterrorinfoaddress: usize, machine: u16, readmemorycallback: PINSPECT_MEMORY_CALLBACK, context: Option<*const core::ffi::c_void>, framecount: *mut u32, targetbacktraceaddress: *mut usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoInspectCapturedStackBackTrace(targeterrorinfoaddress : usize, machine : u16, readmemorycallback : PINSPECT_MEMORY_CALLBACK, context : *const core::ffi::c_void, framecount : *mut u32, targetbacktraceaddress : *mut usize) -> windows_core::HRESULT); - RoInspectCapturedStackBackTrace(core::mem::transmute(targeterrorinfoaddress), core::mem::transmute(machine), core::mem::transmute(readmemorycallback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(framecount), core::mem::transmute(targetbacktraceaddress)).ok() + RoInspectCapturedStackBackTrace(targeterrorinfoaddress, machine, readmemorycallback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(framecount), core::mem::transmute(targetbacktraceaddress)).ok() } #[inline] pub unsafe fn RoInspectThreadErrorInfo(targettebaddress: usize, machine: u16, readmemorycallback: PINSPECT_MEMORY_CALLBACK, context: Option<*const core::ffi::c_void>) -> windows_core::Result { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoInspectThreadErrorInfo(targettebaddress : usize, machine : u16, readmemorycallback : PINSPECT_MEMORY_CALLBACK, context : *const core::ffi::c_void, targeterrorinfoaddress : *mut usize) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoInspectThreadErrorInfo(core::mem::transmute(targettebaddress), core::mem::transmute(machine), core::mem::transmute(readmemorycallback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + RoInspectThreadErrorInfo(targettebaddress, machine, readmemorycallback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RoOriginateError(error: windows_core::HRESULT, message: &windows_core::HSTRING) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoOriginateError(error : windows_core::HRESULT, message : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RoOriginateError(core::mem::transmute(error), core::mem::transmute_copy(message)) + RoOriginateError(error, core::mem::transmute_copy(message)) } #[inline] pub unsafe fn RoOriginateErrorW(error: windows_core::HRESULT, cchmax: u32, message: Option<&[u16; 512]>) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoOriginateErrorW(error : windows_core::HRESULT, cchmax : u32, message : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - RoOriginateErrorW(core::mem::transmute(error), core::mem::transmute(cchmax), core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + RoOriginateErrorW(error, cchmax, core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn RoOriginateLanguageException(error: windows_core::HRESULT, message: &windows_core::HSTRING, languageexception: P2) -> super::super::Foundation::BOOL @@ -243,13 +243,13 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoOriginateLanguageException(error : windows_core::HRESULT, message : * mut core::ffi::c_void, languageexception : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RoOriginateLanguageException(core::mem::transmute(error), core::mem::transmute_copy(message), languageexception.param().abi()) + RoOriginateLanguageException(error, core::mem::transmute_copy(message), languageexception.param().abi()) } #[inline] pub unsafe fn RoRegisterActivationFactories(activatableclassids: *const windows_core::HSTRING, activationfactorycallbacks: *const PFNGETACTIVATIONFACTORY, count: u32) -> windows_core::Result { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoRegisterActivationFactories(activatableclassids : *const * mut core::ffi::c_void, activationfactorycallbacks : *const PFNGETACTIVATIONFACTORY, count : u32, cookie : *mut RO_REGISTRATION_COOKIE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RoRegisterActivationFactories(core::mem::transmute(activatableclassids), core::mem::transmute(activationfactorycallbacks), core::mem::transmute(count), &mut result__).map(|| core::mem::transmute(result__)) + RoRegisterActivationFactories(core::mem::transmute(activatableclassids), activationfactorycallbacks, count, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RoRegisterForApartmentShutdown(callbackobject: P0, apartmentidentifier: *mut u64, regcookie: *mut APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> windows_core::Result<()> @@ -288,22 +288,22 @@ where #[inline] pub unsafe fn RoRevokeActivationFactories(cookie: RO_REGISTRATION_COOKIE) { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoRevokeActivationFactories(cookie : RO_REGISTRATION_COOKIE)); - RoRevokeActivationFactories(core::mem::transmute(cookie)) + RoRevokeActivationFactories(cookie) } #[inline] pub unsafe fn RoSetErrorReportingFlags(flags: u32) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoSetErrorReportingFlags(flags : u32) -> windows_core::HRESULT); - RoSetErrorReportingFlags(core::mem::transmute(flags)).ok() + RoSetErrorReportingFlags(flags).ok() } #[inline] pub unsafe fn RoTransformError(olderror: windows_core::HRESULT, newerror: windows_core::HRESULT, message: &windows_core::HSTRING) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoTransformError(olderror : windows_core::HRESULT, newerror : windows_core::HRESULT, message : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RoTransformError(core::mem::transmute(olderror), core::mem::transmute(newerror), core::mem::transmute_copy(message)) + RoTransformError(olderror, newerror, core::mem::transmute_copy(message)) } #[inline] pub unsafe fn RoTransformErrorW(olderror: windows_core::HRESULT, newerror: windows_core::HRESULT, cchmax: u32, message: Option<&[u16; 512]>) -> super::super::Foundation::BOOL { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoTransformErrorW(olderror : windows_core::HRESULT, newerror : windows_core::HRESULT, cchmax : u32, message : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - RoTransformErrorW(core::mem::transmute(olderror), core::mem::transmute(newerror), core::mem::transmute(cchmax), core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + RoTransformErrorW(olderror, newerror, cchmax, core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn RoUninitialize() { @@ -313,7 +313,7 @@ pub unsafe fn RoUninitialize() { #[inline] pub unsafe fn RoUnregisterForApartmentShutdown(regcookie: APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoUnregisterForApartmentShutdown(regcookie : APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> windows_core::HRESULT); - RoUnregisterForApartmentShutdown(core::mem::transmute(regcookie)).ok() + RoUnregisterForApartmentShutdown(regcookie).ok() } #[inline] pub unsafe fn SetRestrictedErrorInfo(prestrictederrorinfo: P0) -> windows_core::Result<()> @@ -347,7 +347,7 @@ where P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsCreateStringReference(sourcestring : windows_core::PCWSTR, length : u32, hstringheader : *mut HSTRING_HEADER, string : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - WindowsCreateStringReference(sourcestring.param().abi(), core::mem::transmute(length), core::mem::transmute(hstringheader), core::mem::transmute(string)).ok() + WindowsCreateStringReference(sourcestring.param().abi(), length, core::mem::transmute(hstringheader), core::mem::transmute(string)).ok() } #[inline] pub unsafe fn WindowsDeleteString(string: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -378,12 +378,12 @@ pub unsafe fn WindowsGetStringRawBuffer(string: &windows_core::HSTRING, length: #[inline] pub unsafe fn WindowsInspectString(targethstring: usize, machine: u16, callback: PINSPECT_HSTRING_CALLBACK, context: Option<*const core::ffi::c_void>, length: *mut u32, targetstringaddress: *mut usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsInspectString(targethstring : usize, machine : u16, callback : PINSPECT_HSTRING_CALLBACK, context : *const core::ffi::c_void, length : *mut u32, targetstringaddress : *mut usize) -> windows_core::HRESULT); - WindowsInspectString(core::mem::transmute(targethstring), core::mem::transmute(machine), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(targetstringaddress)).ok() + WindowsInspectString(targethstring, machine, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(targetstringaddress)).ok() } #[inline] pub unsafe fn WindowsInspectString2(targethstring: u64, machine: u16, callback: PINSPECT_HSTRING_CALLBACK2, context: Option<*const core::ffi::c_void>, length: *mut u32, targetstringaddress: *mut u64) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-1.dll" "system" fn WindowsInspectString2(targethstring : u64, machine : u16, callback : PINSPECT_HSTRING_CALLBACK2, context : *const core::ffi::c_void, length : *mut u32, targetstringaddress : *mut u64) -> windows_core::HRESULT); - WindowsInspectString2(core::mem::transmute(targethstring), core::mem::transmute(machine), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(targetstringaddress)).ok() + WindowsInspectString2(targethstring, machine, callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(targetstringaddress)).ok() } #[inline] pub unsafe fn WindowsIsStringEmpty(string: &windows_core::HSTRING) -> super::super::Foundation::BOOL { @@ -393,13 +393,13 @@ pub unsafe fn WindowsIsStringEmpty(string: &windows_core::HSTRING) -> super::sup #[inline] pub unsafe fn WindowsPreallocateStringBuffer(length: u32, charbuffer: *mut *mut u16, bufferhandle: *mut HSTRING_BUFFER) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsPreallocateStringBuffer(length : u32, charbuffer : *mut *mut u16, bufferhandle : *mut HSTRING_BUFFER) -> windows_core::HRESULT); - WindowsPreallocateStringBuffer(core::mem::transmute(length), core::mem::transmute(charbuffer), core::mem::transmute(bufferhandle)).ok() + WindowsPreallocateStringBuffer(length, core::mem::transmute(charbuffer), core::mem::transmute(bufferhandle)).ok() } #[inline] pub unsafe fn WindowsPromoteStringBuffer(bufferhandle: HSTRING_BUFFER) -> windows_core::Result { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsPromoteStringBuffer(bufferhandle : HSTRING_BUFFER, string : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WindowsPromoteStringBuffer(core::mem::transmute(bufferhandle), &mut result__).map(|| core::mem::transmute(result__)) + WindowsPromoteStringBuffer(bufferhandle, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WindowsReplaceString(string: &windows_core::HSTRING, stringreplaced: &windows_core::HSTRING, stringreplacewith: &windows_core::HSTRING) -> windows_core::Result { @@ -417,13 +417,13 @@ pub unsafe fn WindowsStringHasEmbeddedNull(string: &windows_core::HSTRING) -> wi pub unsafe fn WindowsSubstring(string: &windows_core::HSTRING, startindex: u32) -> windows_core::Result { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsSubstring(string : * mut core::ffi::c_void, startindex : u32, newstring : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WindowsSubstring(core::mem::transmute_copy(string), core::mem::transmute(startindex), &mut result__).map(|| core::mem::transmute(result__)) + WindowsSubstring(core::mem::transmute_copy(string), startindex, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WindowsSubstringWithSpecifiedLength(string: &windows_core::HSTRING, startindex: u32, length: u32) -> windows_core::Result { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsSubstringWithSpecifiedLength(string : * mut core::ffi::c_void, startindex : u32, length : u32, newstring : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WindowsSubstringWithSpecifiedLength(core::mem::transmute_copy(string), core::mem::transmute(startindex), core::mem::transmute(length), &mut result__).map(|| core::mem::transmute(result__)) + WindowsSubstringWithSpecifiedLength(core::mem::transmute_copy(string), startindex, length, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WindowsTrimStringEnd(string: &windows_core::HSTRING, trimstring: &windows_core::HSTRING) -> windows_core::Result { @@ -569,21 +569,21 @@ impl IAccountsSettingsPaneInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowManageAccountsForWindowAsync(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowManageAccountsForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowManageAccountsForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowAddAccountForWindowAsync(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowAddAccountForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowAddAccountForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -695,7 +695,7 @@ windows_core::imp::define_interface!(IApartmentShutdown, IApartmentShutdown_Vtbl windows_core::imp::interface_hierarchy!(IApartmentShutdown, windows_core::IUnknown); impl IApartmentShutdown { pub unsafe fn OnUninitialize(&self, ui64apartmentidentifier: u64) { - (windows_core::Interface::vtable(self).OnUninitialize)(windows_core::Interface::as_raw(self), core::mem::transmute(ui64apartmentidentifier)) + (windows_core::Interface::vtable(self).OnUninitialize)(windows_core::Interface::as_raw(self), ui64apartmentidentifier) } } #[repr(C)] @@ -810,7 +810,7 @@ impl ICastingController { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), eventhandler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnAdvise(&self, cookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self), cookie).ok() } } #[repr(C)] @@ -875,13 +875,13 @@ windows_core::imp::define_interface!(ICastingEventHandler, ICastingEventHandler_ windows_core::imp::interface_hierarchy!(ICastingEventHandler, windows_core::IUnknown); impl ICastingEventHandler { pub unsafe fn OnStateChanged(&self, newstate: CASTING_CONNECTION_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newstate)).ok() + (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), newstate).ok() } pub unsafe fn OnError(&self, errorstatus: CASTING_CONNECTION_ERROR_STATUS, errormessage: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), core::mem::transmute(errorstatus), errormessage.param().abi()).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), errorstatus, errormessage.param().abi()).ok() } } #[repr(C)] @@ -987,7 +987,7 @@ impl ICoreInputInterop { (windows_core::Interface::vtable(self).SetInputSource)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetMessageHandled(&self, value: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageHandled)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMessageHandled)(windows_core::Interface::as_raw(self), value).ok() } } #[repr(C)] @@ -1029,7 +1029,7 @@ impl ICoreInputInterop2 { (windows_core::Interface::vtable(self).WindowHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ChangeHostingContext(&self, newparentwindow: super::super::Foundation::HWND, newviewinstanceid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeHostingContext)(windows_core::Interface::as_raw(self), core::mem::transmute(newparentwindow), core::mem::transmute(newviewinstanceid)).ok() + (windows_core::Interface::vtable(self).ChangeHostingContext)(windows_core::Interface::as_raw(self), newparentwindow, newviewinstanceid).ok() } } #[repr(C)] @@ -1229,7 +1229,7 @@ impl ICoreWindowComponentInterop { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureComponentInput)(windows_core::Interface::as_raw(self), core::mem::transmute(hostviewinstanceid), core::mem::transmute(hwndhost), inputsourcevisual.param().abi()).ok() + (windows_core::Interface::vtable(self).ConfigureComponentInput)(windows_core::Interface::as_raw(self), hostviewinstanceid, hwndhost, inputsourcevisual.param().abi()).ok() } pub unsafe fn GetViewInstanceId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1281,7 +1281,7 @@ impl ICoreWindowInterop { (windows_core::Interface::vtable(self).WindowHandle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMessageHandled(&self, value: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMessageHandled)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMessageHandled)(windows_core::Interface::as_raw(self), value).ok() } } #[repr(C)] @@ -1429,7 +1429,7 @@ impl IDragDropManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1461,7 +1461,7 @@ impl IHolographicSpaceInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(window), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), window, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1496,7 +1496,7 @@ impl IInputPaneInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1633,7 +1633,7 @@ windows_core::imp::define_interface!(ILanguageExceptionStackBackTrace, ILanguage windows_core::imp::interface_hierarchy!(ILanguageExceptionStackBackTrace, windows_core::IUnknown); impl ILanguageExceptionStackBackTrace { pub unsafe fn GetStackBackTrace(&self, maxframestocapture: u32, stackbacktrace: *mut usize, framescaptured: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStackBackTrace)(windows_core::Interface::as_raw(self), core::mem::transmute(maxframestocapture), core::mem::transmute(stackbacktrace), core::mem::transmute(framescaptured)).ok() + (windows_core::Interface::vtable(self).GetStackBackTrace)(windows_core::Interface::as_raw(self), maxframestocapture, core::mem::transmute(stackbacktrace), core::mem::transmute(framescaptured)).ok() } } #[repr(C)] @@ -1759,10 +1759,10 @@ impl IPlayToManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowPlayToUIForWindow(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowPlayToUIForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow)).ok() + (windows_core::Interface::vtable(self).ShowPlayToUIForWindow)(windows_core::Interface::as_raw(self), appwindow).ok() } } #[repr(C)] @@ -1889,7 +1889,7 @@ impl IShareWindowCommandSourceInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1921,7 +1921,7 @@ impl ISpatialInteractionManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(window), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), window, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1956,7 +1956,7 @@ impl ISystemMediaTransportControlsInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1991,7 +1991,7 @@ impl IUIViewSettingsInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2023,7 +2023,7 @@ impl IUserActivityInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateSessionForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(window), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSessionForWindow)(windows_core::Interface::as_raw(self), window, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2058,7 +2058,7 @@ impl IUserActivityRequestManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(window), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), window, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2124,7 +2124,7 @@ impl IUserConsentVerifierInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestVerificationForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), core::mem::transmute_copy(message), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestVerificationForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, core::mem::transmute_copy(message), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2227,7 +2227,7 @@ impl IWebAuthenticationCoreManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestTokenForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), request.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestTokenForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, request.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestTokenWithWebAccountForWindowAsync(&self, appwindow: super::super::Foundation::HWND, request: P1, webaccount: P2) -> windows_core::Result where @@ -2236,7 +2236,7 @@ impl IWebAuthenticationCoreManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestTokenWithWebAccountForWindowAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), request.param().abi(), webaccount.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestTokenWithWebAccountForWindowAsync)(windows_core::Interface::as_raw(self), appwindow, request.param().abi(), webaccount.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs index 5daae917fe..27efc09234 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -6,7 +6,7 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn AddDelBackupEntryA(lpcszfilelist : windows_core::PCSTR, lpcszbackupdir : windows_core::PCSTR, lpcszbasename : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - AddDelBackupEntryA(lpcszfilelist.param().abi(), lpcszbackupdir.param().abi(), lpcszbasename.param().abi(), core::mem::transmute(dwflags)).ok() + AddDelBackupEntryA(lpcszfilelist.param().abi(), lpcszbackupdir.param().abi(), lpcszbasename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn AddDelBackupEntryW(lpcszfilelist: P0, lpcszbackupdir: P1, lpcszbasename: P2, dwflags: u32) -> windows_core::Result<()> @@ -16,7 +16,7 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn AddDelBackupEntryW(lpcszfilelist : windows_core::PCWSTR, lpcszbackupdir : windows_core::PCWSTR, lpcszbasename : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - AddDelBackupEntryW(lpcszfilelist.param().abi(), lpcszbackupdir.param().abi(), lpcszbasename.param().abi(), core::mem::transmute(dwflags)).ok() + AddDelBackupEntryW(lpcszfilelist.param().abi(), lpcszbackupdir.param().abi(), lpcszbasename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn AdvInstallFileA(hwnd: super::super::Foundation::HWND, lpszsourcedir: P1, lpszsourcefile: P2, lpszdestdir: P3, lpszdestfile: P4, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> @@ -27,7 +27,7 @@ where P4: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn AdvInstallFileA(hwnd : super::super::Foundation:: HWND, lpszsourcedir : windows_core::PCSTR, lpszsourcefile : windows_core::PCSTR, lpszdestdir : windows_core::PCSTR, lpszdestfile : windows_core::PCSTR, dwflags : u32, dwreserved : u32) -> windows_core::HRESULT); - AdvInstallFileA(core::mem::transmute(hwnd), lpszsourcedir.param().abi(), lpszsourcefile.param().abi(), lpszdestdir.param().abi(), lpszdestfile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved)).ok() + AdvInstallFileA(hwnd, lpszsourcedir.param().abi(), lpszsourcefile.param().abi(), lpszdestdir.param().abi(), lpszdestfile.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn AdvInstallFileW(hwnd: super::super::Foundation::HWND, lpszsourcedir: P1, lpszsourcefile: P2, lpszdestdir: P3, lpszdestfile: P4, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> @@ -38,17 +38,17 @@ where P4: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn AdvInstallFileW(hwnd : super::super::Foundation:: HWND, lpszsourcedir : windows_core::PCWSTR, lpszsourcefile : windows_core::PCWSTR, lpszdestdir : windows_core::PCWSTR, lpszdestfile : windows_core::PCWSTR, dwflags : u32, dwreserved : u32) -> windows_core::HRESULT); - AdvInstallFileW(core::mem::transmute(hwnd), lpszsourcedir.param().abi(), lpszsourcefile.param().abi(), lpszdestdir.param().abi(), lpszdestfile.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(dwreserved)).ok() + AdvInstallFileW(hwnd, lpszsourcedir.param().abi(), lpszsourcefile.param().abi(), lpszdestdir.param().abi(), lpszdestfile.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn ApphelpCheckShellObject(objectclsid: *const windows_core::GUID, bshimifnecessary: bool, pullflags: *mut u64) -> super::super::Foundation::BOOL { windows_targets::link!("apphelp.dll" "system" fn ApphelpCheckShellObject(objectclsid : *const windows_core::GUID, bshimifnecessary : super::super::Foundation:: BOOL, pullflags : *mut u64) -> super::super::Foundation:: BOOL); - ApphelpCheckShellObject(core::mem::transmute(objectclsid), bshimifnecessary.into(), core::mem::transmute(pullflags)) + ApphelpCheckShellObject(objectclsid, bshimifnecessary.into(), core::mem::transmute(pullflags)) } #[inline] pub unsafe fn CancelDeviceWakeupRequest(hdevice: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn CancelDeviceWakeupRequest(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelDeviceWakeupRequest(core::mem::transmute(hdevice)) + CancelDeviceWakeupRequest(hdevice) } #[inline] pub unsafe fn CloseINFEngine(hinf: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -58,41 +58,41 @@ pub unsafe fn CloseINFEngine(hinf: *mut core::ffi::c_void) -> windows_core::Resu #[inline] pub unsafe fn ConvertAuxiliaryCounterToPerformanceCounter(ullauxiliarycountervalue: u64, lpperformancecountervalue: *mut u64, lpconversionerror: Option<*mut u64>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-realtime-l1-1-2.dll" "system" fn ConvertAuxiliaryCounterToPerformanceCounter(ullauxiliarycountervalue : u64, lpperformancecountervalue : *mut u64, lpconversionerror : *mut u64) -> windows_core::HRESULT); - ConvertAuxiliaryCounterToPerformanceCounter(core::mem::transmute(ullauxiliarycountervalue), core::mem::transmute(lpperformancecountervalue), core::mem::transmute(lpconversionerror.unwrap_or(core::mem::zeroed()))).ok() + ConvertAuxiliaryCounterToPerformanceCounter(ullauxiliarycountervalue, core::mem::transmute(lpperformancecountervalue), core::mem::transmute(lpconversionerror.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ConvertPerformanceCounterToAuxiliaryCounter(ullperformancecountervalue: u64, lpauxiliarycountervalue: *mut u64, lpconversionerror: Option<*mut u64>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-realtime-l1-1-2.dll" "system" fn ConvertPerformanceCounterToAuxiliaryCounter(ullperformancecountervalue : u64, lpauxiliarycountervalue : *mut u64, lpconversionerror : *mut u64) -> windows_core::HRESULT); - ConvertPerformanceCounterToAuxiliaryCounter(core::mem::transmute(ullperformancecountervalue), core::mem::transmute(lpauxiliarycountervalue), core::mem::transmute(lpconversionerror.unwrap_or(core::mem::zeroed()))).ok() + ConvertPerformanceCounterToAuxiliaryCounter(ullperformancecountervalue, core::mem::transmute(lpauxiliarycountervalue), core::mem::transmute(lpconversionerror.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DCIBeginAccess(pdci: *mut DCISURFACEINFO, x: i32, y: i32, dx: i32, dy: i32) -> i32 { windows_targets::link!("dciman32.dll" "system" fn DCIBeginAccess(pdci : *mut DCISURFACEINFO, x : i32, y : i32, dx : i32, dy : i32) -> i32); - DCIBeginAccess(core::mem::transmute(pdci), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(dx), core::mem::transmute(dy)) + DCIBeginAccess(core::mem::transmute(pdci), x, y, dx, dy) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICloseProvider(hdc: super::super::Graphics::Gdi::HDC) { windows_targets::link!("dciman32.dll" "system" fn DCICloseProvider(hdc : super::super::Graphics::Gdi:: HDC)); - DCICloseProvider(core::mem::transmute(hdc)) + DCICloseProvider(hdc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICreateOffscreen(hdc: super::super::Graphics::Gdi::HDC, dwcompression: u32, dwredmask: u32, dwgreenmask: u32, dwbluemask: u32, dwwidth: u32, dwheight: u32, dwdcicaps: u32, dwbitcount: u32, lplpsurface: *mut *mut DCIOFFSCREEN) -> i32 { windows_targets::link!("dciman32.dll" "system" fn DCICreateOffscreen(hdc : super::super::Graphics::Gdi:: HDC, dwcompression : u32, dwredmask : u32, dwgreenmask : u32, dwbluemask : u32, dwwidth : u32, dwheight : u32, dwdcicaps : u32, dwbitcount : u32, lplpsurface : *mut *mut DCIOFFSCREEN) -> i32); - DCICreateOffscreen(core::mem::transmute(hdc), core::mem::transmute(dwcompression), core::mem::transmute(dwredmask), core::mem::transmute(dwgreenmask), core::mem::transmute(dwbluemask), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwdcicaps), core::mem::transmute(dwbitcount), core::mem::transmute(lplpsurface)) + DCICreateOffscreen(hdc, dwcompression, dwredmask, dwgreenmask, dwbluemask, dwwidth, dwheight, dwdcicaps, dwbitcount, core::mem::transmute(lplpsurface)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICreateOverlay(hdc: super::super::Graphics::Gdi::HDC, lpoffscreensurf: *mut core::ffi::c_void, lplpsurface: *mut *mut DCIOVERLAY) -> i32 { windows_targets::link!("dciman32.dll" "system" fn DCICreateOverlay(hdc : super::super::Graphics::Gdi:: HDC, lpoffscreensurf : *mut core::ffi::c_void, lplpsurface : *mut *mut DCIOVERLAY) -> i32); - DCICreateOverlay(core::mem::transmute(hdc), core::mem::transmute(lpoffscreensurf), core::mem::transmute(lplpsurface)) + DCICreateOverlay(hdc, core::mem::transmute(lpoffscreensurf), core::mem::transmute(lplpsurface)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICreatePrimary(hdc: super::super::Graphics::Gdi::HDC, lplpsurface: *mut *mut DCISURFACEINFO) -> i32 { windows_targets::link!("dciman32.dll" "system" fn DCICreatePrimary(hdc : super::super::Graphics::Gdi:: HDC, lplpsurface : *mut *mut DCISURFACEINFO) -> i32); - DCICreatePrimary(core::mem::transmute(hdc), core::mem::transmute(lplpsurface)) + DCICreatePrimary(hdc, core::mem::transmute(lplpsurface)) } #[inline] pub unsafe fn DCIDestroy(pdci: *mut DCISURFACEINFO) { @@ -113,7 +113,7 @@ pub unsafe fn DCIEndAccess(pdci: *mut DCISURFACEINFO) { #[inline] pub unsafe fn DCIEnum(hdc: super::super::Graphics::Gdi::HDC, lprdst: *mut super::super::Foundation::RECT, lprsrc: *mut super::super::Foundation::RECT, lpfncallback: *mut core::ffi::c_void, lpcontext: *mut core::ffi::c_void) -> i32 { windows_targets::link!("dciman32.dll" "system" fn DCIEnum(hdc : super::super::Graphics::Gdi:: HDC, lprdst : *mut super::super::Foundation:: RECT, lprsrc : *mut super::super::Foundation:: RECT, lpfncallback : *mut core::ffi::c_void, lpcontext : *mut core::ffi::c_void) -> i32); - DCIEnum(core::mem::transmute(hdc), core::mem::transmute(lprdst), core::mem::transmute(lprsrc), core::mem::transmute(lpfncallback), core::mem::transmute(lpcontext)) + DCIEnum(hdc, core::mem::transmute(lprdst), core::mem::transmute(lprsrc), core::mem::transmute(lpfncallback), core::mem::transmute(lpcontext)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -144,12 +144,12 @@ where P0: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn DelNodeA(pszfileordirname : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - DelNodeA(pszfileordirname.param().abi(), core::mem::transmute(dwflags)).ok() + DelNodeA(pszfileordirname.param().abi(), dwflags).ok() } #[inline] pub unsafe fn DelNodeRunDLL32W(hwnd: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparms: windows_core::PWSTR, nshow: i32) -> windows_core::Result<()> { windows_targets::link!("advpack.dll" "system" fn DelNodeRunDLL32W(hwnd : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparms : windows_core::PWSTR, nshow : i32) -> windows_core::HRESULT); - DelNodeRunDLL32W(core::mem::transmute(hwnd), core::mem::transmute(hinstance), core::mem::transmute(pszparms), core::mem::transmute(nshow)).ok() + DelNodeRunDLL32W(hwnd, hinstance, core::mem::transmute(pszparms), nshow).ok() } #[inline] pub unsafe fn DelNodeW(pszfileordirname: P0, dwflags: u32) -> windows_core::Result<()> @@ -157,7 +157,7 @@ where P0: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn DelNodeW(pszfileordirname : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - DelNodeW(pszfileordirname.param().abi(), core::mem::transmute(dwflags)).ok() + DelNodeW(pszfileordirname.param().abi(), dwflags).ok() } #[inline] pub unsafe fn DnsHostnameToComputerNameA(hostname: P0, computername: Option, nsize: *mut u32) -> windows_core::Result<()> @@ -178,23 +178,23 @@ where #[inline] pub unsafe fn DosDateTimeToFileTime(wfatdate: u16, wfattime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn DosDateTimeToFileTime(wfatdate : u16, wfattime : u16, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); - DosDateTimeToFileTime(core::mem::transmute(wfatdate), core::mem::transmute(wfattime), core::mem::transmute(lpfiletime)).ok() + DosDateTimeToFileTime(wfatdate, wfattime, core::mem::transmute(lpfiletime)).ok() } #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] #[inline] pub unsafe fn EnableProcessOptionalXStateFeatures(features: u64) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn EnableProcessOptionalXStateFeatures(features : u64) -> super::super::Foundation:: BOOL); - EnableProcessOptionalXStateFeatures(core::mem::transmute(features)) + EnableProcessOptionalXStateFeatures(features) } #[inline] pub unsafe fn ExecuteCabA(hwnd: super::super::Foundation::HWND, pcab: *mut CABINFOA, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advpack.dll" "system" fn ExecuteCabA(hwnd : super::super::Foundation:: HWND, pcab : *mut CABINFOA, preserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - ExecuteCabA(core::mem::transmute(hwnd), core::mem::transmute(pcab), core::mem::transmute(preserved)).ok() + ExecuteCabA(hwnd, core::mem::transmute(pcab), core::mem::transmute(preserved)).ok() } #[inline] pub unsafe fn ExecuteCabW(hwnd: super::super::Foundation::HWND, pcab: *mut CABINFOW, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("advpack.dll" "system" fn ExecuteCabW(hwnd : super::super::Foundation:: HWND, pcab : *mut CABINFOW, preserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - ExecuteCabW(core::mem::transmute(hwnd), core::mem::transmute(pcab), core::mem::transmute(preserved)).ok() + ExecuteCabW(hwnd, core::mem::transmute(pcab), core::mem::transmute(preserved)).ok() } #[inline] pub unsafe fn ExtractFilesA(pszcabname: P0, pszexpanddir: P1, dwflags: u32, pszfilelist: P3, lpreserved: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::Result<()> @@ -204,7 +204,7 @@ where P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn ExtractFilesA(pszcabname : windows_core::PCSTR, pszexpanddir : windows_core::PCSTR, dwflags : u32, pszfilelist : windows_core::PCSTR, lpreserved : *mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - ExtractFilesA(pszcabname.param().abi(), pszexpanddir.param().abi(), core::mem::transmute(dwflags), pszfilelist.param().abi(), core::mem::transmute(lpreserved), core::mem::transmute(dwreserved)).ok() + ExtractFilesA(pszcabname.param().abi(), pszexpanddir.param().abi(), dwflags, pszfilelist.param().abi(), core::mem::transmute(lpreserved), dwreserved).ok() } #[inline] pub unsafe fn ExtractFilesW(pszcabname: P0, pszexpanddir: P1, dwflags: u32, pszfilelist: P3, lpreserved: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::Result<()> @@ -214,7 +214,7 @@ where P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn ExtractFilesW(pszcabname : windows_core::PCWSTR, pszexpanddir : windows_core::PCWSTR, dwflags : u32, pszfilelist : windows_core::PCWSTR, lpreserved : *mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - ExtractFilesW(pszcabname.param().abi(), pszexpanddir.param().abi(), core::mem::transmute(dwflags), pszfilelist.param().abi(), core::mem::transmute(lpreserved), core::mem::transmute(dwreserved)).ok() + ExtractFilesW(pszcabname.param().abi(), pszexpanddir.param().abi(), dwflags, pszfilelist.param().abi(), core::mem::transmute(lpreserved), dwreserved).ok() } #[inline] pub unsafe fn FileSaveMarkNotExistA(lpfilelist: P0, lpdir: P1, lpbasename: P2) -> windows_core::Result<()> @@ -246,7 +246,7 @@ where P5: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn FileSaveRestoreOnINFA(hwnd : super::super::Foundation:: HWND, psztitle : windows_core::PCSTR, pszinf : windows_core::PCSTR, pszsection : windows_core::PCSTR, pszbackupdir : windows_core::PCSTR, pszbasebackupfile : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - FileSaveRestoreOnINFA(core::mem::transmute(hwnd), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), pszbackupdir.param().abi(), pszbasebackupfile.param().abi(), core::mem::transmute(dwflags)).ok() + FileSaveRestoreOnINFA(hwnd, psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), pszbackupdir.param().abi(), pszbasebackupfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn FileSaveRestoreOnINFW(hwnd: super::super::Foundation::HWND, psztitle: P1, pszinf: P2, pszsection: P3, pszbackupdir: P4, pszbasebackupfile: P5, dwflags: u32) -> windows_core::Result<()> @@ -258,7 +258,7 @@ where P5: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn FileSaveRestoreOnINFW(hwnd : super::super::Foundation:: HWND, psztitle : windows_core::PCWSTR, pszinf : windows_core::PCWSTR, pszsection : windows_core::PCWSTR, pszbackupdir : windows_core::PCWSTR, pszbasebackupfile : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - FileSaveRestoreOnINFW(core::mem::transmute(hwnd), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), pszbackupdir.param().abi(), pszbasebackupfile.param().abi(), core::mem::transmute(dwflags)).ok() + FileSaveRestoreOnINFW(hwnd, psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), pszbackupdir.param().abi(), pszbasebackupfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn FileSaveRestoreW(hdlg: super::super::Foundation::HWND, lpfilelist: P1, lpdir: P2, lpbasename: P3, dwflags: u32) -> windows_core::Result<()> @@ -268,12 +268,12 @@ where P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn FileSaveRestoreW(hdlg : super::super::Foundation:: HWND, lpfilelist : windows_core::PCWSTR, lpdir : windows_core::PCWSTR, lpbasename : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - FileSaveRestoreW(core::mem::transmute(hdlg), lpfilelist.param().abi(), lpdir.param().abi(), lpbasename.param().abi(), core::mem::transmute(dwflags)).ok() + FileSaveRestoreW(hdlg, lpfilelist.param().abi(), lpdir.param().abi(), lpbasename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn FileTimeToDosDateTime(lpfiletime: *const super::super::Foundation::FILETIME, lpfatdate: *mut u16, lpfattime: *mut u16) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn FileTimeToDosDateTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpfatdate : *mut u16, lpfattime : *mut u16) -> super::super::Foundation:: BOOL); - FileTimeToDosDateTime(core::mem::transmute(lpfiletime), core::mem::transmute(lpfatdate), core::mem::transmute(lpfattime)).ok() + FileTimeToDosDateTime(lpfiletime, core::mem::transmute(lpfatdate), core::mem::transmute(lpfattime)).ok() } #[inline] pub unsafe fn GdiEntry13() -> u32 { @@ -304,17 +304,17 @@ pub unsafe fn GetCurrentHwProfileW(lphwprofileinfo: *mut HW_PROFILE_INFOW) -> wi #[inline] pub unsafe fn GetDCRegionData(hdc: super::super::Graphics::Gdi::HDC, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32 { windows_targets::link!("dciman32.dll" "system" fn GetDCRegionData(hdc : super::super::Graphics::Gdi:: HDC, size : u32, prd : *mut super::super::Graphics::Gdi:: RGNDATA) -> u32); - GetDCRegionData(core::mem::transmute(hdc), core::mem::transmute(size), core::mem::transmute(prd)) + GetDCRegionData(hdc, size, core::mem::transmute(prd)) } #[inline] pub unsafe fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-0.dll" "system" fn GetFeatureEnabledState(featureid : u32, changetime : FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE); - GetFeatureEnabledState(core::mem::transmute(featureid), core::mem::transmute(changetime)) + GetFeatureEnabledState(featureid, changetime) } #[inline] pub unsafe fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut super::super::Foundation::BOOL) -> u32 { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-1.dll" "system" fn GetFeatureVariant(featureid : u32, changetime : FEATURE_CHANGE_TIME, payloadid : *mut u32, hasnotification : *mut super::super::Foundation:: BOOL) -> u32); - GetFeatureVariant(core::mem::transmute(featureid), core::mem::transmute(changetime), core::mem::transmute(payloadid), core::mem::transmute(hasnotification)) + GetFeatureVariant(featureid, changetime, core::mem::transmute(payloadid), core::mem::transmute(hasnotification)) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableA(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32) -> u32 @@ -323,7 +323,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFirmwareEnvironmentVariableA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pbuffer : *mut core::ffi::c_void, nsize : u32) -> u32); - GetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + GetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), nsize) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableExA(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32, pdwattribubutes: Option<*mut u32>) -> u32 @@ -332,7 +332,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFirmwareEnvironmentVariableExA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pbuffer : *mut core::ffi::c_void, nsize : u32, pdwattribubutes : *mut u32) -> u32); - GetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize), core::mem::transmute(pdwattribubutes.unwrap_or(core::mem::zeroed()))) + GetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), nsize, core::mem::transmute(pdwattribubutes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableExW(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32, pdwattribubutes: Option<*mut u32>) -> u32 @@ -341,7 +341,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFirmwareEnvironmentVariableExW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pbuffer : *mut core::ffi::c_void, nsize : u32, pdwattribubutes : *mut u32) -> u32); - GetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize), core::mem::transmute(pdwattribubutes.unwrap_or(core::mem::zeroed()))) + GetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), nsize, core::mem::transmute(pdwattribubutes.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableW(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32) -> u32 @@ -350,7 +350,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFirmwareEnvironmentVariableW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pbuffer : *mut core::ffi::c_void, nsize : u32) -> u32); - GetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) + GetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), nsize) } #[inline] pub unsafe fn GetPrivateProfileIntA(lpappname: P0, lpkeyname: P1, ndefault: i32, lpfilename: P3) -> u32 @@ -360,7 +360,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileIntA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, ndefault : i32, lpfilename : windows_core::PCSTR) -> u32); - GetPrivateProfileIntA(lpappname.param().abi(), lpkeyname.param().abi(), core::mem::transmute(ndefault), lpfilename.param().abi()) + GetPrivateProfileIntA(lpappname.param().abi(), lpkeyname.param().abi(), ndefault, lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileIntW(lpappname: P0, lpkeyname: P1, ndefault: i32, lpfilename: P3) -> i32 @@ -370,7 +370,7 @@ where P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileIntW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, ndefault : i32, lpfilename : windows_core::PCWSTR) -> i32); - GetPrivateProfileIntW(lpappname.param().abi(), lpkeyname.param().abi(), core::mem::transmute(ndefault), lpfilename.param().abi()) + GetPrivateProfileIntW(lpappname.param().abi(), lpkeyname.param().abi(), ndefault, lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileSectionA(lpappname: P0, lpreturnedstring: Option<&mut [u8]>, lpfilename: P3) -> u32 @@ -436,7 +436,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStructA(lpszsection : windows_core::PCSTR, lpszkey : windows_core::PCSTR, lpstruct : *mut core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - GetPrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), core::mem::transmute(usizestruct), szfile.param().abi()) + GetPrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), usizestruct, szfile.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileStructW(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P4) -> super::super::Foundation::BOOL @@ -446,7 +446,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStructW(lpszsection : windows_core::PCWSTR, lpszkey : windows_core::PCWSTR, lpstruct : *mut core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - GetPrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), core::mem::transmute(usizestruct), szfile.param().abi()) + GetPrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), usizestruct, szfile.param().abi()) } #[inline] pub unsafe fn GetProfileIntA(lpappname: P0, lpkeyname: P1, ndefault: i32) -> u32 @@ -455,7 +455,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProfileIntA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, ndefault : i32) -> u32); - GetProfileIntA(lpappname.param().abi(), lpkeyname.param().abi(), core::mem::transmute(ndefault)) + GetProfileIntA(lpappname.param().abi(), lpkeyname.param().abi(), ndefault) } #[inline] pub unsafe fn GetProfileIntW(lpappname: P0, lpkeyname: P1, ndefault: i32) -> u32 @@ -464,7 +464,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProfileIntW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, ndefault : i32) -> u32); - GetProfileIntW(lpappname.param().abi(), lpkeyname.param().abi(), core::mem::transmute(ndefault)) + GetProfileIntW(lpappname.param().abi(), lpkeyname.param().abi(), ndefault) } #[inline] pub unsafe fn GetProfileSectionA(lpappname: P0, lpreturnedstring: Option<&mut [u8]>) -> u32 @@ -559,42 +559,42 @@ where #[inline] pub unsafe fn GetWindowRegionData(hwnd: super::super::Foundation::HWND, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32 { windows_targets::link!("dciman32.dll" "system" fn GetWindowRegionData(hwnd : super::super::Foundation:: HWND, size : u32, prd : *mut super::super::Graphics::Gdi:: RGNDATA) -> u32); - GetWindowRegionData(core::mem::transmute(hwnd), core::mem::transmute(size), core::mem::transmute(prd)) + GetWindowRegionData(hwnd, size, core::mem::transmute(prd)) } #[inline] pub unsafe fn GlobalCompact(dwminfree: u32) -> usize { windows_targets::link!("kernel32.dll" "system" fn GlobalCompact(dwminfree : u32) -> usize); - GlobalCompact(core::mem::transmute(dwminfree)) + GlobalCompact(dwminfree) } #[inline] pub unsafe fn GlobalFix(hmem: super::super::Foundation::HGLOBAL) { windows_targets::link!("kernel32.dll" "system" fn GlobalFix(hmem : super::super::Foundation:: HGLOBAL)); - GlobalFix(core::mem::transmute(hmem)) + GlobalFix(hmem) } #[inline] pub unsafe fn GlobalUnWire(hmem: super::super::Foundation::HGLOBAL) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn GlobalUnWire(hmem : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); - GlobalUnWire(core::mem::transmute(hmem)) + GlobalUnWire(hmem) } #[inline] pub unsafe fn GlobalUnfix(hmem: super::super::Foundation::HGLOBAL) { windows_targets::link!("kernel32.dll" "system" fn GlobalUnfix(hmem : super::super::Foundation:: HGLOBAL)); - GlobalUnfix(core::mem::transmute(hmem)) + GlobalUnfix(hmem) } #[inline] pub unsafe fn GlobalWire(hmem: super::super::Foundation::HGLOBAL) -> *mut core::ffi::c_void { windows_targets::link!("kernel32.dll" "system" fn GlobalWire(hmem : super::super::Foundation:: HGLOBAL) -> *mut core::ffi::c_void); - GlobalWire(core::mem::transmute(hmem)) + GlobalWire(hmem) } #[inline] pub unsafe fn IMPGetIMEA(param0: super::super::Foundation::HWND, param1: *mut IMEPROA) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IMPGetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> super::super::Foundation:: BOOL); - IMPGetIMEA(core::mem::transmute(param0), core::mem::transmute(param1)) + IMPGetIMEA(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn IMPGetIMEW(param0: super::super::Foundation::HWND, param1: *mut IMEPROW) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IMPGetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> super::super::Foundation:: BOOL); - IMPGetIMEW(core::mem::transmute(param0), core::mem::transmute(param1)) + IMPGetIMEW(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn IMPQueryIMEA(param0: *mut IMEPROA) -> super::super::Foundation::BOOL { @@ -609,12 +609,12 @@ pub unsafe fn IMPQueryIMEW(param0: *mut IMEPROW) -> super::super::Foundation::BO #[inline] pub unsafe fn IMPSetIMEA(param0: super::super::Foundation::HWND, param1: *mut IMEPROA) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IMPSetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> super::super::Foundation:: BOOL); - IMPSetIMEA(core::mem::transmute(param0), core::mem::transmute(param1)) + IMPSetIMEA(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn IMPSetIMEW(param0: super::super::Foundation::HWND, param1: *mut IMEPROW) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IMPSetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> super::super::Foundation:: BOOL); - IMPSetIMEW(core::mem::transmute(param0), core::mem::transmute(param1)) + IMPSetIMEW(param0, core::mem::transmute(param1)) } #[inline] pub unsafe fn IsApiSetImplemented(contract: P0) -> super::super::Foundation::BOOL @@ -627,17 +627,17 @@ where #[inline] pub unsafe fn IsBadHugeReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsBadHugeReadPtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); - IsBadHugeReadPtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(ucb)) + IsBadHugeReadPtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), ucb) } #[inline] pub unsafe fn IsBadHugeWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn IsBadHugeWritePtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); - IsBadHugeWritePtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), core::mem::transmute(ucb)) + IsBadHugeWritePtr(core::mem::transmute(lp.unwrap_or(core::mem::zeroed())), ucb) } #[inline] pub unsafe fn IsNTAdmin(dwreserved: u32, lpdwreserved: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("advpack.dll" "system" fn IsNTAdmin(dwreserved : u32, lpdwreserved : *mut u32) -> super::super::Foundation:: BOOL); - IsNTAdmin(core::mem::transmute(dwreserved), core::mem::transmute(lpdwreserved)) + IsNTAdmin(dwreserved, core::mem::transmute(lpdwreserved)) } #[inline] pub unsafe fn IsNativeVhdBoot(nativevhdboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { @@ -647,7 +647,7 @@ pub unsafe fn IsNativeVhdBoot(nativevhdboot: *mut super::super::Foundation::BOOL #[inline] pub unsafe fn IsTokenUntrusted(tokenhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("advapi32.dll" "system" fn IsTokenUntrusted(tokenhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - IsTokenUntrusted(core::mem::transmute(tokenhandle)) + IsTokenUntrusted(tokenhandle) } #[inline] pub unsafe fn LaunchINFSectionExW(hwnd: Option, hinstance: Option, pszparms: P2, nshow: i32) -> windows_core::Result<()> @@ -655,32 +655,32 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn LaunchINFSectionExW(hwnd : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparms : windows_core::PCWSTR, nshow : i32) -> windows_core::HRESULT); - LaunchINFSectionExW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), pszparms.param().abi(), core::mem::transmute(nshow)).ok() + LaunchINFSectionExW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn LaunchINFSectionW(hwndowner: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparams: windows_core::PWSTR, nshow: i32) -> i32 { windows_targets::link!("advpack.dll" "system" fn LaunchINFSectionW(hwndowner : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparams : windows_core::PWSTR, nshow : i32) -> i32); - LaunchINFSectionW(core::mem::transmute(hwndowner), core::mem::transmute(hinstance), core::mem::transmute(pszparams), core::mem::transmute(nshow)) + LaunchINFSectionW(hwndowner, hinstance, core::mem::transmute(pszparams), nshow) } #[inline] pub unsafe fn LocalCompact(uminfree: u32) -> usize { windows_targets::link!("kernel32.dll" "system" fn LocalCompact(uminfree : u32) -> usize); - LocalCompact(core::mem::transmute(uminfree)) + LocalCompact(uminfree) } #[inline] pub unsafe fn LocalShrink(hmem: super::super::Foundation::HLOCAL, cbnewsize: u32) -> usize { windows_targets::link!("kernel32.dll" "system" fn LocalShrink(hmem : super::super::Foundation:: HLOCAL, cbnewsize : u32) -> usize); - LocalShrink(core::mem::transmute(hmem), core::mem::transmute(cbnewsize)) + LocalShrink(hmem, cbnewsize) } #[inline] pub unsafe fn MulDiv(nnumber: i32, nnumerator: i32, ndenominator: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn MulDiv(nnumber : i32, nnumerator : i32, ndenominator : i32) -> i32); - MulDiv(core::mem::transmute(nnumber), core::mem::transmute(nnumerator), core::mem::transmute(ndenominator)) + MulDiv(nnumber, nnumerator, ndenominator) } #[inline] pub unsafe fn NeedReboot(dwrebootcheck: u32) -> super::super::Foundation::BOOL { windows_targets::link!("advpack.dll" "system" fn NeedReboot(dwrebootcheck : u32) -> super::super::Foundation:: BOOL); - NeedReboot(core::mem::transmute(dwrebootcheck)) + NeedReboot(dwrebootcheck) } #[inline] pub unsafe fn NeedRebootInit() -> u32 { @@ -694,7 +694,7 @@ where P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn OpenINFEngineA(pszinffilename : windows_core::PCSTR, pszinstallsection : windows_core::PCSTR, dwflags : u32, phinf : *mut *mut core::ffi::c_void, pvreserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - OpenINFEngineA(pszinffilename.param().abi(), pszinstallsection.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(phinf), core::mem::transmute(pvreserved)).ok() + OpenINFEngineA(pszinffilename.param().abi(), pszinstallsection.param().abi(), dwflags, core::mem::transmute(phinf), core::mem::transmute(pvreserved)).ok() } #[inline] pub unsafe fn OpenINFEngineW(pszinffilename: P0, pszinstallsection: P1, dwflags: u32, phinf: *mut *mut core::ffi::c_void, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -703,7 +703,7 @@ where P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn OpenINFEngineW(pszinffilename : windows_core::PCWSTR, pszinstallsection : windows_core::PCWSTR, dwflags : u32, phinf : *mut *mut core::ffi::c_void, pvreserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - OpenINFEngineW(pszinffilename.param().abi(), pszinstallsection.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(phinf), core::mem::transmute(pvreserved)).ok() + OpenINFEngineW(pszinffilename.param().abi(), pszinstallsection.param().abi(), dwflags, core::mem::transmute(phinf), core::mem::transmute(pvreserved)).ok() } #[inline] pub unsafe fn OpenMutexA(dwdesiredaccess: u32, binherithandle: bool, lpname: P2) -> super::super::Foundation::HANDLE @@ -711,7 +711,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenMutexA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - OpenMutexA(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()) + OpenMutexA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) } #[inline] pub unsafe fn OpenSemaphoreA(dwdesiredaccess: u32, binherithandle: bool, lpname: P2) -> super::super::Foundation::HANDLE @@ -719,7 +719,7 @@ where P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenSemaphoreA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - OpenSemaphoreA(core::mem::transmute(dwdesiredaccess), binherithandle.into(), lpname.param().abi()) + OpenSemaphoreA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) } #[inline] pub unsafe fn QueryAuxiliaryCounterFrequency() -> windows_core::Result { @@ -735,7 +735,7 @@ pub unsafe fn QueryIdleProcessorCycleTime(bufferlength: *mut u32, processoridlec #[inline] pub unsafe fn QueryIdleProcessorCycleTimeEx(group: u16, bufferlength: *mut u32, processoridlecycletime: Option<*mut u64>) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn QueryIdleProcessorCycleTimeEx(group : u16, bufferlength : *mut u32, processoridlecycletime : *mut u64) -> super::super::Foundation:: BOOL); - QueryIdleProcessorCycleTimeEx(core::mem::transmute(group), core::mem::transmute(bufferlength), core::mem::transmute(processoridlecycletime.unwrap_or(core::mem::zeroed()))) + QueryIdleProcessorCycleTimeEx(group, core::mem::transmute(bufferlength), core::mem::transmute(processoridlecycletime.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn QueryInterruptTime() -> u64 { @@ -754,12 +754,12 @@ pub unsafe fn QueryInterruptTimePrecise() -> u64 { #[inline] pub unsafe fn QueryProcessCycleTime(processhandle: super::super::Foundation::HANDLE, cycletime: *mut u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryProcessCycleTime(processhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> super::super::Foundation:: BOOL); - QueryProcessCycleTime(core::mem::transmute(processhandle), core::mem::transmute(cycletime)).ok() + QueryProcessCycleTime(processhandle, core::mem::transmute(cycletime)).ok() } #[inline] pub unsafe fn QueryThreadCycleTime(threadhandle: super::super::Foundation::HANDLE, cycletime: *mut u64) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn QueryThreadCycleTime(threadhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> super::super::Foundation:: BOOL); - QueryThreadCycleTime(core::mem::transmute(threadhandle), core::mem::transmute(cycletime)).ok() + QueryThreadCycleTime(threadhandle, core::mem::transmute(cycletime)).ok() } #[inline] pub unsafe fn QueryUnbiasedInterruptTime(unbiasedtime: *mut u64) -> super::super::Foundation::BOOL { @@ -776,7 +776,7 @@ pub unsafe fn QueryUnbiasedInterruptTimePrecise() -> u64 { #[inline] pub unsafe fn RaiseCustomSystemEventTrigger(customsystemeventtriggerconfig: *const CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG) -> u32 { windows_targets::link!("api-ms-win-core-backgroundtask-l1-1-0.dll" "system" fn RaiseCustomSystemEventTrigger(customsystemeventtriggerconfig : *const CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG) -> u32); - RaiseCustomSystemEventTrigger(core::mem::transmute(customsystemeventtriggerconfig)) + RaiseCustomSystemEventTrigger(customsystemeventtriggerconfig) } #[inline] pub unsafe fn RebootCheckOnInstallA(hwnd: super::super::Foundation::HWND, pszinf: P1, pszsec: P2, dwreserved: u32) -> windows_core::Result<()> @@ -785,7 +785,7 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RebootCheckOnInstallA(hwnd : super::super::Foundation:: HWND, pszinf : windows_core::PCSTR, pszsec : windows_core::PCSTR, dwreserved : u32) -> windows_core::HRESULT); - RebootCheckOnInstallA(core::mem::transmute(hwnd), pszinf.param().abi(), pszsec.param().abi(), core::mem::transmute(dwreserved)).ok() + RebootCheckOnInstallA(hwnd, pszinf.param().abi(), pszsec.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn RebootCheckOnInstallW(hwnd: super::super::Foundation::HWND, pszinf: P1, pszsec: P2, dwreserved: u32) -> windows_core::Result<()> @@ -794,12 +794,12 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RebootCheckOnInstallW(hwnd : super::super::Foundation:: HWND, pszinf : windows_core::PCWSTR, pszsec : windows_core::PCWSTR, dwreserved : u32) -> windows_core::HRESULT); - RebootCheckOnInstallW(core::mem::transmute(hwnd), pszinf.param().abi(), pszsec.param().abi(), core::mem::transmute(dwreserved)).ok() + RebootCheckOnInstallW(hwnd, pszinf.param().abi(), pszsec.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR) { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-0.dll" "system" fn RecordFeatureError(featureid : u32, error : *const FEATURE_ERROR)); - RecordFeatureError(core::mem::transmute(featureid), core::mem::transmute(error)) + RecordFeatureError(featureid, error) } #[inline] pub unsafe fn RecordFeatureUsage(featureid: u32, kind: u32, addend: u32, originname: P3) @@ -807,7 +807,7 @@ where P3: windows_core::Param, { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-0.dll" "system" fn RecordFeatureUsage(featureid : u32, kind : u32, addend : u32, originname : windows_core::PCSTR)); - RecordFeatureUsage(core::mem::transmute(featureid), core::mem::transmute(kind), core::mem::transmute(addend), originname.param().abi()) + RecordFeatureUsage(featureid, kind, addend, originname.param().abi()) } #[inline] pub unsafe fn RegInstallA(hmod: super::super::Foundation::HMODULE, pszsection: P1, psttable: *const STRTABLEA) -> windows_core::Result<()> @@ -815,7 +815,7 @@ where P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegInstallA(hmod : super::super::Foundation:: HMODULE, pszsection : windows_core::PCSTR, psttable : *const STRTABLEA) -> windows_core::HRESULT); - RegInstallA(core::mem::transmute(hmod), pszsection.param().abi(), core::mem::transmute(psttable)).ok() + RegInstallA(hmod, pszsection.param().abi(), psttable).ok() } #[inline] pub unsafe fn RegInstallW(hmod: super::super::Foundation::HMODULE, pszsection: P1, psttable: *const STRTABLEW) -> windows_core::Result<()> @@ -823,7 +823,7 @@ where P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegInstallW(hmod : super::super::Foundation:: HMODULE, pszsection : windows_core::PCWSTR, psttable : *const STRTABLEW) -> windows_core::HRESULT); - RegInstallW(core::mem::transmute(hmod), pszsection.param().abi(), core::mem::transmute(psttable)).ok() + RegInstallW(hmod, pszsection.param().abi(), psttable).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -832,7 +832,7 @@ where P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegRestoreAllA(hwnd : super::super::Foundation:: HWND, psztitlestring : windows_core::PCSTR, hkbckupkey : super::Registry:: HKEY) -> windows_core::HRESULT); - RegRestoreAllA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztitlestring.param().abi(), core::mem::transmute(hkbckupkey)).ok() + RegRestoreAllA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztitlestring.param().abi(), hkbckupkey).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -841,7 +841,7 @@ where P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegRestoreAllW(hwnd : super::super::Foundation:: HWND, psztitlestring : windows_core::PCWSTR, hkbckupkey : super::Registry:: HKEY) -> windows_core::HRESULT); - RegRestoreAllW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztitlestring.param().abi(), core::mem::transmute(hkbckupkey)).ok() + RegRestoreAllW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztitlestring.param().abi(), hkbckupkey).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -853,7 +853,7 @@ where P5: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegSaveRestoreA(hwnd : super::super::Foundation:: HWND, psztitlestring : windows_core::PCSTR, hkbckupkey : super::Registry:: HKEY, pcszrootkey : windows_core::PCSTR, pcszsubkey : windows_core::PCSTR, pcszvaluename : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - RegSaveRestoreA(core::mem::transmute(hwnd), psztitlestring.param().abi(), core::mem::transmute(hkbckupkey), pcszrootkey.param().abi(), pcszsubkey.param().abi(), pcszvaluename.param().abi(), core::mem::transmute(dwflags)).ok() + RegSaveRestoreA(hwnd, psztitlestring.param().abi(), hkbckupkey, pcszrootkey.param().abi(), pcszsubkey.param().abi(), pcszvaluename.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -864,7 +864,7 @@ where P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegSaveRestoreOnINFA(hwnd : super::super::Foundation:: HWND, psztitle : windows_core::PCSTR, pszinf : windows_core::PCSTR, pszsection : windows_core::PCSTR, hhklmbackkey : super::Registry:: HKEY, hhkcubackkey : super::Registry:: HKEY, dwflags : u32) -> windows_core::HRESULT); - RegSaveRestoreOnINFA(core::mem::transmute(hwnd), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), core::mem::transmute(hhklmbackkey), core::mem::transmute(hhkcubackkey), core::mem::transmute(dwflags)).ok() + RegSaveRestoreOnINFA(hwnd, psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), hhklmbackkey, hhkcubackkey, dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -875,7 +875,7 @@ where P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegSaveRestoreOnINFW(hwnd : super::super::Foundation:: HWND, psztitle : windows_core::PCWSTR, pszinf : windows_core::PCWSTR, pszsection : windows_core::PCWSTR, hhklmbackkey : super::Registry:: HKEY, hhkcubackkey : super::Registry:: HKEY, dwflags : u32) -> windows_core::HRESULT); - RegSaveRestoreOnINFW(core::mem::transmute(hwnd), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), core::mem::transmute(hhklmbackkey), core::mem::transmute(hhkcubackkey), core::mem::transmute(dwflags)).ok() + RegSaveRestoreOnINFW(hwnd, psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), hhklmbackkey, hhkcubackkey, dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -887,7 +887,7 @@ where P5: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RegSaveRestoreW(hwnd : super::super::Foundation:: HWND, psztitlestring : windows_core::PCWSTR, hkbckupkey : super::Registry:: HKEY, pcszrootkey : windows_core::PCWSTR, pcszsubkey : windows_core::PCWSTR, pcszvaluename : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - RegSaveRestoreW(core::mem::transmute(hwnd), psztitlestring.param().abi(), core::mem::transmute(hkbckupkey), pcszrootkey.param().abi(), pcszsubkey.param().abi(), pcszvaluename.param().abi(), core::mem::transmute(dwflags)).ok() + RegSaveRestoreW(hwnd, psztitlestring.param().abi(), hkbckupkey, pcszrootkey.param().abi(), pcszsubkey.param().abi(), pcszvaluename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn ReplacePartitionUnit(targetpartition: P0, sparepartition: P1, flags: u32) -> super::super::Foundation::BOOL @@ -896,23 +896,23 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReplacePartitionUnit(targetpartition : windows_core::PCWSTR, sparepartition : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - ReplacePartitionUnit(targetpartition.param().abi(), sparepartition.param().abi(), core::mem::transmute(flags)) + ReplacePartitionUnit(targetpartition.param().abi(), sparepartition.param().abi(), flags) } #[inline] pub unsafe fn RequestDeviceWakeup(hdevice: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn RequestDeviceWakeup(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RequestDeviceWakeup(core::mem::transmute(hdevice)) + RequestDeviceWakeup(hdevice) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlAnsiStringToUnicodeString(destinationstring: *mut super::super::Foundation::UNICODE_STRING, sourcestring: *mut super::Kernel::STRING, allocatedestinationstring: bool) -> super::super::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlAnsiStringToUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : *mut super::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); - RtlAnsiStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlAnsiStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring) } #[inline] pub unsafe fn RtlCharToInteger(string: *mut i8, base: u32, value: *mut u32) -> super::super::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlCharToInteger(string : *mut i8, base : u32, value : *mut u32) -> super::super::Foundation:: NTSTATUS); - RtlCharToInteger(core::mem::transmute(string), core::mem::transmute(base), core::mem::transmute(value)) + RtlCharToInteger(core::mem::transmute(string), base, core::mem::transmute(value)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -982,7 +982,7 @@ pub unsafe fn RtlLocalTimeToSystemTime(localtime: *mut i64, systemtime: *mut i64 #[inline] pub unsafe fn RtlRaiseCustomSystemEventTrigger(triggerconfig: *const CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG) -> u32 { windows_targets::link!("ntdll.dll" "system" fn RtlRaiseCustomSystemEventTrigger(triggerconfig : *const CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG) -> u32); - RtlRaiseCustomSystemEventTrigger(core::mem::transmute(triggerconfig)) + RtlRaiseCustomSystemEventTrigger(triggerconfig) } #[inline] pub unsafe fn RtlTimeToSecondsSince1970(time: *mut i64, elapsedseconds: *mut u32) -> bool { @@ -993,13 +993,13 @@ pub unsafe fn RtlTimeToSecondsSince1970(time: *mut i64, elapsedseconds: *mut u32 #[inline] pub unsafe fn RtlUnicodeStringToAnsiString(destinationstring: *mut super::Kernel::STRING, sourcestring: *mut super::super::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToAnsiString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeStringToAnsiString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUnicodeStringToAnsiString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToOemString(destinationstring: *mut super::Kernel::STRING, sourcestring: *mut super::super::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToOemString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) + RtlUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring) } #[inline] pub unsafe fn RtlUnicodeToMultiByteSize(bytesinmultibytestring: *mut u32, unicodestring: P1, bytesinunicodestring: u32) -> super::super::Foundation::NTSTATUS @@ -1007,7 +1007,7 @@ where P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToMultiByteSize(bytesinmultibytestring : *mut u32, unicodestring : windows_core::PCWSTR, bytesinunicodestring : u32) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeToMultiByteSize(core::mem::transmute(bytesinmultibytestring), unicodestring.param().abi(), core::mem::transmute(bytesinunicodestring)) + RtlUnicodeToMultiByteSize(core::mem::transmute(bytesinmultibytestring), unicodestring.param().abi(), bytesinunicodestring) } #[inline] pub unsafe fn RtlUniform(seed: *mut u32) -> u32 { @@ -1023,7 +1023,7 @@ where P4: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RunSetupCommandA(hwnd : super::super::Foundation:: HWND, szcmdname : windows_core::PCSTR, szinfsection : windows_core::PCSTR, szdir : windows_core::PCSTR, lpsztitle : windows_core::PCSTR, phexe : *mut super::super::Foundation:: HANDLE, dwflags : u32, pvreserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - RunSetupCommandA(core::mem::transmute(hwnd), szcmdname.param().abi(), szinfsection.param().abi(), szdir.param().abi(), lpsztitle.param().abi(), core::mem::transmute(phexe), core::mem::transmute(dwflags), core::mem::transmute(pvreserved)).ok() + RunSetupCommandA(hwnd, szcmdname.param().abi(), szinfsection.param().abi(), szdir.param().abi(), lpsztitle.param().abi(), core::mem::transmute(phexe), dwflags, core::mem::transmute(pvreserved)).ok() } #[inline] pub unsafe fn RunSetupCommandW(hwnd: super::super::Foundation::HWND, szcmdname: P1, szinfsection: P2, szdir: P3, lpsztitle: P4, phexe: *mut super::super::Foundation::HANDLE, dwflags: u32, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -1034,17 +1034,17 @@ where P4: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn RunSetupCommandW(hwnd : super::super::Foundation:: HWND, szcmdname : windows_core::PCWSTR, szinfsection : windows_core::PCWSTR, szdir : windows_core::PCWSTR, lpsztitle : windows_core::PCWSTR, phexe : *mut super::super::Foundation:: HANDLE, dwflags : u32, pvreserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - RunSetupCommandW(core::mem::transmute(hwnd), szcmdname.param().abi(), szinfsection.param().abi(), szdir.param().abi(), lpsztitle.param().abi(), core::mem::transmute(phexe), core::mem::transmute(dwflags), core::mem::transmute(pvreserved)).ok() + RunSetupCommandW(hwnd, szcmdname.param().abi(), szinfsection.param().abi(), szdir.param().abi(), lpsztitle.param().abi(), core::mem::transmute(phexe), dwflags, core::mem::transmute(pvreserved)).ok() } #[inline] pub unsafe fn SendIMEMessageExA(param0: super::super::Foundation::HWND, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendIMEMessageExA(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendIMEMessageExA(core::mem::transmute(param0), core::mem::transmute(param1)) + SendIMEMessageExA(param0, param1) } #[inline] pub unsafe fn SendIMEMessageExW(param0: super::super::Foundation::HWND, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendIMEMessageExW(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendIMEMessageExW(core::mem::transmute(param0), core::mem::transmute(param1)) + SendIMEMessageExW(param0, param1) } #[inline] pub unsafe fn SetEnvironmentStringsA(newenvironment: P0) -> super::super::Foundation::BOOL @@ -1061,7 +1061,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pvalue : *const core::ffi::c_void, nsize : u32) -> super::super::Foundation:: BOOL); - SetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() + SetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), nsize).ok() } #[inline] pub unsafe fn SetFirmwareEnvironmentVariableExA(lpname: P0, lpguid: P1, pvalue: Option<*const core::ffi::c_void>, nsize: u32, dwattributes: u32) -> windows_core::Result<()> @@ -1070,7 +1070,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableExA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pvalue : *const core::ffi::c_void, nsize : u32, dwattributes : u32) -> super::super::Foundation:: BOOL); - SetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize), core::mem::transmute(dwattributes)).ok() + SetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), nsize, dwattributes).ok() } #[inline] pub unsafe fn SetFirmwareEnvironmentVariableExW(lpname: P0, lpguid: P1, pvalue: Option<*const core::ffi::c_void>, nsize: u32, dwattributes: u32) -> windows_core::Result<()> @@ -1079,7 +1079,7 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableExW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pvalue : *const core::ffi::c_void, nsize : u32, dwattributes : u32) -> super::super::Foundation:: BOOL); - SetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize), core::mem::transmute(dwattributes)).ok() + SetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), nsize, dwattributes).ok() } #[inline] pub unsafe fn SetFirmwareEnvironmentVariableW(lpname: P0, lpguid: P1, pvalue: Option<*const core::ffi::c_void>, nsize: u32) -> windows_core::Result<()> @@ -1088,17 +1088,17 @@ where P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pvalue : *const core::ffi::c_void, nsize : u32) -> super::super::Foundation:: BOOL); - SetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)).ok() + SetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(core::mem::zeroed())), nsize).ok() } #[inline] pub unsafe fn SetHandleCount(unumber: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn SetHandleCount(unumber : u32) -> u32); - SetHandleCount(core::mem::transmute(unumber)) + SetHandleCount(unumber) } #[inline] pub unsafe fn SetMessageWaitingIndicator(hmsgindicator: super::super::Foundation::HANDLE, ulmsgcount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("kernel32.dll" "system" fn SetMessageWaitingIndicator(hmsgindicator : super::super::Foundation:: HANDLE, ulmsgcount : u32) -> super::super::Foundation:: BOOL); - SetMessageWaitingIndicator(core::mem::transmute(hmsgindicator), core::mem::transmute(ulmsgcount)) + SetMessageWaitingIndicator(hmsgindicator, ulmsgcount) } #[inline] pub unsafe fn SetPerUserSecValuesA(pperuser: *mut PERUSERSECTIONA) -> windows_core::Result<()> { @@ -1113,7 +1113,7 @@ pub unsafe fn SetPerUserSecValuesW(pperuser: *mut PERUSERSECTIONW) -> windows_co #[inline] pub unsafe fn SubscribeFeatureStateChangeNotification(subscription: *mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: PFEATURE_STATE_CHANGE_CALLBACK, context: Option<*const core::ffi::c_void>) { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-0.dll" "system" fn SubscribeFeatureStateChangeNotification(subscription : *mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback : PFEATURE_STATE_CHANGE_CALLBACK, context : *const core::ffi::c_void)); - SubscribeFeatureStateChangeNotification(core::mem::transmute(subscription), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + SubscribeFeatureStateChangeNotification(core::mem::transmute(subscription), callback, core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TranslateInfStringA(pszinffilename: P0, pszinstallsection: P1, psztranslatesection: P2, psztranslatekey: P3, pszbuffer: Option<&mut [u8]>, pdwrequiredsize: *mut u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> @@ -1160,7 +1160,7 @@ where #[inline] pub unsafe fn UnsubscribeFeatureStateChangeNotification(subscription: FEATURE_STATE_CHANGE_SUBSCRIPTION) { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-0.dll" "system" fn UnsubscribeFeatureStateChangeNotification(subscription : FEATURE_STATE_CHANGE_SUBSCRIPTION)); - UnsubscribeFeatureStateChangeNotification(core::mem::transmute(subscription)) + UnsubscribeFeatureStateChangeNotification(subscription) } #[inline] pub unsafe fn UserInstStubWrapperA(hwnd: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparms: P2, nshow: i32) -> windows_core::Result<()> @@ -1168,7 +1168,7 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn UserInstStubWrapperA(hwnd : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparms : windows_core::PCSTR, nshow : i32) -> windows_core::HRESULT); - UserInstStubWrapperA(core::mem::transmute(hwnd), core::mem::transmute(hinstance), pszparms.param().abi(), core::mem::transmute(nshow)).ok() + UserInstStubWrapperA(hwnd, hinstance, pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn UserInstStubWrapperW(hwnd: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparms: P2, nshow: i32) -> windows_core::Result<()> @@ -1176,7 +1176,7 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn UserInstStubWrapperW(hwnd : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparms : windows_core::PCWSTR, nshow : i32) -> windows_core::HRESULT); - UserInstStubWrapperW(core::mem::transmute(hwnd), core::mem::transmute(hinstance), pszparms.param().abi(), core::mem::transmute(nshow)).ok() + UserInstStubWrapperW(hwnd, hinstance, pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn UserUnInstStubWrapperA(hwnd: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparms: P2, nshow: i32) -> windows_core::Result<()> @@ -1184,7 +1184,7 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn UserUnInstStubWrapperA(hwnd : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparms : windows_core::PCSTR, nshow : i32) -> windows_core::HRESULT); - UserUnInstStubWrapperA(core::mem::transmute(hwnd), core::mem::transmute(hinstance), pszparms.param().abi(), core::mem::transmute(nshow)).ok() + UserUnInstStubWrapperA(hwnd, hinstance, pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn UserUnInstStubWrapperW(hwnd: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparms: P2, nshow: i32) -> windows_core::Result<()> @@ -1192,48 +1192,48 @@ where P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn UserUnInstStubWrapperW(hwnd : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszparms : windows_core::PCWSTR, nshow : i32) -> windows_core::HRESULT); - UserUnInstStubWrapperW(core::mem::transmute(hwnd), core::mem::transmute(hinstance), pszparms.param().abi(), core::mem::transmute(nshow)).ok() + UserUnInstStubWrapperW(hwnd, hinstance, pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn WINNLSEnableIME(param0: super::super::Foundation::HWND, param1: bool) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn WINNLSEnableIME(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WINNLSEnableIME(core::mem::transmute(param0), param1.into()) + WINNLSEnableIME(param0, param1.into()) } #[inline] pub unsafe fn WINNLSGetEnableStatus(param0: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn WINNLSGetEnableStatus(param0 : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - WINNLSGetEnableStatus(core::mem::transmute(param0)) + WINNLSGetEnableStatus(param0) } #[inline] pub unsafe fn WINNLSGetIMEHotkey(param0: super::super::Foundation::HWND) -> u32 { windows_targets::link!("user32.dll" "system" fn WINNLSGetIMEHotkey(param0 : super::super::Foundation:: HWND) -> u32); - WINNLSGetIMEHotkey(core::mem::transmute(param0)) + WINNLSGetIMEHotkey(param0) } #[inline] pub unsafe fn WinWatchClose(hww: HWINWATCH) { windows_targets::link!("dciman32.dll" "system" fn WinWatchClose(hww : HWINWATCH)); - WinWatchClose(core::mem::transmute(hww)) + WinWatchClose(hww) } #[inline] pub unsafe fn WinWatchDidStatusChange(hww: HWINWATCH) -> super::super::Foundation::BOOL { windows_targets::link!("dciman32.dll" "system" fn WinWatchDidStatusChange(hww : HWINWATCH) -> super::super::Foundation:: BOOL); - WinWatchDidStatusChange(core::mem::transmute(hww)) + WinWatchDidStatusChange(hww) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn WinWatchGetClipList(hww: HWINWATCH, prc: *mut super::super::Foundation::RECT, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32 { windows_targets::link!("dciman32.dll" "system" fn WinWatchGetClipList(hww : HWINWATCH, prc : *mut super::super::Foundation:: RECT, size : u32, prd : *mut super::super::Graphics::Gdi:: RGNDATA) -> u32); - WinWatchGetClipList(core::mem::transmute(hww), core::mem::transmute(prc), core::mem::transmute(size), core::mem::transmute(prd)) + WinWatchGetClipList(hww, core::mem::transmute(prc), size, core::mem::transmute(prd)) } #[inline] pub unsafe fn WinWatchNotify(hww: HWINWATCH, notifycallback: WINWATCHNOTIFYPROC, notifyparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("dciman32.dll" "system" fn WinWatchNotify(hww : HWINWATCH, notifycallback : WINWATCHNOTIFYPROC, notifyparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - WinWatchNotify(core::mem::transmute(hww), core::mem::transmute(notifycallback), core::mem::transmute(notifyparam)) + WinWatchNotify(hww, notifycallback, notifyparam) } #[inline] pub unsafe fn WinWatchOpen(hwnd: super::super::Foundation::HWND) -> HWINWATCH { windows_targets::link!("dciman32.dll" "system" fn WinWatchOpen(hwnd : super::super::Foundation:: HWND) -> HWINWATCH); - WinWatchOpen(core::mem::transmute(hwnd)) + WinWatchOpen(hwnd) } #[inline] pub unsafe fn WldpCanExecuteBuffer(host: *const windows_core::GUID, options: WLDP_EXECUTION_EVALUATION_OPTIONS, buffer: &[u8], auditinfo: P4) -> windows_core::Result @@ -1242,7 +1242,7 @@ where { windows_targets::link!("wldp.dll" "system" fn WldpCanExecuteBuffer(host : *const windows_core::GUID, options : WLDP_EXECUTION_EVALUATION_OPTIONS, buffer : *const u8, buffersize : u32, auditinfo : windows_core::PCWSTR, result : *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WldpCanExecuteBuffer(core::mem::transmute(host), core::mem::transmute(options), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WldpCanExecuteBuffer(host, options, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WldpCanExecuteFile(host: *const windows_core::GUID, options: WLDP_EXECUTION_EVALUATION_OPTIONS, filehandle: super::super::Foundation::HANDLE, auditinfo: P3) -> windows_core::Result @@ -1251,7 +1251,7 @@ where { windows_targets::link!("wldp.dll" "system" fn WldpCanExecuteFile(host : *const windows_core::GUID, options : WLDP_EXECUTION_EVALUATION_OPTIONS, filehandle : super::super::Foundation:: HANDLE, auditinfo : windows_core::PCWSTR, result : *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WldpCanExecuteFile(core::mem::transmute(host), core::mem::transmute(options), core::mem::transmute(filehandle), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WldpCanExecuteFile(host, options, filehandle, auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1262,17 +1262,17 @@ where { windows_targets::link!("wldp.dll" "system" fn WldpCanExecuteStream(host : *const windows_core::GUID, options : WLDP_EXECUTION_EVALUATION_OPTIONS, stream : * mut core::ffi::c_void, auditinfo : windows_core::PCWSTR, result : *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - WldpCanExecuteStream(core::mem::transmute(host), core::mem::transmute(options), stream.param().abi(), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WldpCanExecuteStream(host, options, stream.param().abi(), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn WldpGetLockdownPolicy(hostinformation: Option<*const WLDP_HOST_INFORMATION>, lockdownstate: *mut u32, lockdownflags: u32) -> windows_core::Result<()> { windows_targets::link!("wldp.dll" "system" fn WldpGetLockdownPolicy(hostinformation : *const WLDP_HOST_INFORMATION, lockdownstate : *mut u32, lockdownflags : u32) -> windows_core::HRESULT); - WldpGetLockdownPolicy(core::mem::transmute(hostinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lockdownstate), core::mem::transmute(lockdownflags)).ok() + WldpGetLockdownPolicy(core::mem::transmute(hostinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(lockdownstate), lockdownflags).ok() } #[inline] pub unsafe fn WldpIsClassInApprovedList(classid: *const windows_core::GUID, hostinformation: *const WLDP_HOST_INFORMATION, isapproved: *mut super::super::Foundation::BOOL, optionalflags: u32) -> windows_core::Result<()> { windows_targets::link!("wldp.dll" "system" fn WldpIsClassInApprovedList(classid : *const windows_core::GUID, hostinformation : *const WLDP_HOST_INFORMATION, isapproved : *mut super::super::Foundation:: BOOL, optionalflags : u32) -> windows_core::HRESULT); - WldpIsClassInApprovedList(core::mem::transmute(classid), core::mem::transmute(hostinformation), core::mem::transmute(isapproved), core::mem::transmute(optionalflags)).ok() + WldpIsClassInApprovedList(classid, hostinformation, core::mem::transmute(isapproved), optionalflags).ok() } #[inline] pub unsafe fn WldpIsDynamicCodePolicyEnabled() -> windows_core::Result { @@ -1288,12 +1288,12 @@ pub unsafe fn WldpQueryDeviceSecurityInformation(information: Option<&mut [WLDP_ #[inline] pub unsafe fn WldpQueryDynamicCodeTrust(filehandle: Option, baseimage: Option<*const core::ffi::c_void>, imagesize: u32) -> windows_core::Result<()> { windows_targets::link!("wldp.dll" "system" fn WldpQueryDynamicCodeTrust(filehandle : super::super::Foundation:: HANDLE, baseimage : *const core::ffi::c_void, imagesize : u32) -> windows_core::HRESULT); - WldpQueryDynamicCodeTrust(core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseimage.unwrap_or(core::mem::zeroed())), core::mem::transmute(imagesize)).ok() + WldpQueryDynamicCodeTrust(core::mem::transmute(filehandle.unwrap_or(core::mem::zeroed())), core::mem::transmute(baseimage.unwrap_or(core::mem::zeroed())), imagesize).ok() } #[inline] pub unsafe fn WldpSetDynamicCodeTrust(filehandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("wldp.dll" "system" fn WldpSetDynamicCodeTrust(filehandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WldpSetDynamicCodeTrust(core::mem::transmute(filehandle)).ok() + WldpSetDynamicCodeTrust(filehandle).ok() } #[inline] pub unsafe fn WritePrivateProfileSectionA(lpappname: P0, lpstring: P1, lpfilename: P2) -> windows_core::Result<()> @@ -1345,7 +1345,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStructA(lpszsection : windows_core::PCSTR, lpszkey : windows_core::PCSTR, lpstruct : *const core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - WritePrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), core::mem::transmute(usizestruct), szfile.param().abi()).ok() + WritePrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), usizestruct, szfile.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileStructW(lpszsection: P0, lpszkey: P1, lpstruct: Option<*const core::ffi::c_void>, usizestruct: u32, szfile: P4) -> windows_core::Result<()> @@ -1355,7 +1355,7 @@ where P4: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStructW(lpszsection : windows_core::PCWSTR, lpszkey : windows_core::PCWSTR, lpstruct : *const core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WritePrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), core::mem::transmute(usizestruct), szfile.param().abi()).ok() + WritePrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(core::mem::zeroed())), usizestruct, szfile.param().abi()).ok() } #[inline] pub unsafe fn WriteProfileSectionA(lpappname: P0, lpstring: P1) -> windows_core::Result<()> @@ -1398,17 +1398,17 @@ where #[inline] pub unsafe fn _hread(hfile: i32, lpbuffer: *mut core::ffi::c_void, lbytes: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn _hread(hfile : i32, lpbuffer : *mut core::ffi::c_void, lbytes : i32) -> i32); - _hread(core::mem::transmute(hfile), core::mem::transmute(lpbuffer), core::mem::transmute(lbytes)) + _hread(hfile, core::mem::transmute(lpbuffer), lbytes) } #[inline] pub unsafe fn _hwrite(hfile: i32, lpbuffer: &[u8]) -> i32 { windows_targets::link!("kernel32.dll" "system" fn _hwrite(hfile : i32, lpbuffer : windows_core::PCSTR, lbytes : i32) -> i32); - _hwrite(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + _hwrite(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[inline] pub unsafe fn _lclose(hfile: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn _lclose(hfile : i32) -> i32); - _lclose(core::mem::transmute(hfile)) + _lclose(hfile) } #[inline] pub unsafe fn _lcreat(lppathname: P0, iattribute: i32) -> i32 @@ -1416,12 +1416,12 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn _lcreat(lppathname : windows_core::PCSTR, iattribute : i32) -> i32); - _lcreat(lppathname.param().abi(), core::mem::transmute(iattribute)) + _lcreat(lppathname.param().abi(), iattribute) } #[inline] pub unsafe fn _llseek(hfile: i32, loffset: i32, iorigin: i32) -> i32 { windows_targets::link!("kernel32.dll" "system" fn _llseek(hfile : i32, loffset : i32, iorigin : i32) -> i32); - _llseek(core::mem::transmute(hfile), core::mem::transmute(loffset), core::mem::transmute(iorigin)) + _llseek(hfile, loffset, iorigin) } #[inline] pub unsafe fn _lopen(lppathname: P0, ireadwrite: i32) -> i32 @@ -1429,65 +1429,65 @@ where P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn _lopen(lppathname : windows_core::PCSTR, ireadwrite : i32) -> i32); - _lopen(lppathname.param().abi(), core::mem::transmute(ireadwrite)) + _lopen(lppathname.param().abi(), ireadwrite) } #[inline] pub unsafe fn _lread(hfile: i32, lpbuffer: *mut core::ffi::c_void, ubytes: u32) -> u32 { windows_targets::link!("kernel32.dll" "system" fn _lread(hfile : i32, lpbuffer : *mut core::ffi::c_void, ubytes : u32) -> u32); - _lread(core::mem::transmute(hfile), core::mem::transmute(lpbuffer), core::mem::transmute(ubytes)) + _lread(hfile, core::mem::transmute(lpbuffer), ubytes) } #[inline] pub unsafe fn _lwrite(hfile: i32, lpbuffer: &[u8]) -> u32 { windows_targets::link!("kernel32.dll" "system" fn _lwrite(hfile : i32, lpbuffer : windows_core::PCSTR, ubytes : u32) -> u32); - _lwrite(core::mem::transmute(hfile), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) + _lwrite(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap()) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_lstrcmpW(string1: *const u16, string2: *const u16) -> i32 { windows_targets::link!("kernel32.dll" "system" fn uaw_lstrcmpW(string1 : *const u16, string2 : *const u16) -> i32); - uaw_lstrcmpW(core::mem::transmute(string1), core::mem::transmute(string2)) + uaw_lstrcmpW(string1, string2) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_lstrcmpiW(string1: *const u16, string2: *const u16) -> i32 { windows_targets::link!("kernel32.dll" "system" fn uaw_lstrcmpiW(string1 : *const u16, string2 : *const u16) -> i32); - uaw_lstrcmpiW(core::mem::transmute(string1), core::mem::transmute(string2)) + uaw_lstrcmpiW(string1, string2) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_lstrlenW(string: *const u16) -> i32 { windows_targets::link!("kernel32.dll" "system" fn uaw_lstrlenW(string : *const u16) -> i32); - uaw_lstrlenW(core::mem::transmute(string)) + uaw_lstrlenW(string) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_wcschr(string: *const u16, character: u16) -> *mut u16 { windows_targets::link!("kernel32.dll" "system" fn uaw_wcschr(string : *const u16, character : u16) -> *mut u16); - uaw_wcschr(core::mem::transmute(string), core::mem::transmute(character)) + uaw_wcschr(string, character) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_wcscpy(destination: *mut u16, source: *const u16) -> *mut u16 { windows_targets::link!("kernel32.dll" "system" fn uaw_wcscpy(destination : *mut u16, source : *const u16) -> *mut u16); - uaw_wcscpy(core::mem::transmute(destination), core::mem::transmute(source)) + uaw_wcscpy(core::mem::transmute(destination), source) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_wcsicmp(string1: *const u16, string2: *const u16) -> i32 { windows_targets::link!("kernel32.dll" "system" fn uaw_wcsicmp(string1 : *const u16, string2 : *const u16) -> i32); - uaw_wcsicmp(core::mem::transmute(string1), core::mem::transmute(string2)) + uaw_wcsicmp(string1, string2) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_wcslen(string: *const u16) -> usize { windows_targets::link!("kernel32.dll" "system" fn uaw_wcslen(string : *const u16) -> usize); - uaw_wcslen(core::mem::transmute(string)) + uaw_wcslen(string) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn uaw_wcsrchr(string: *const u16, character: u16) -> *mut u16 { windows_targets::link!("kernel32.dll" "system" fn uaw_wcsrchr(string : *const u16, character : u16) -> *mut u16); - uaw_wcsrchr(core::mem::transmute(string), core::mem::transmute(character)) + uaw_wcsrchr(string, character) } pub const AADBE_ADD_ENTRY: u32 = 1u32; pub const AADBE_DEL_ENTRY: u32 = 2u32; @@ -2215,7 +2215,7 @@ impl ICameraUIControl { P0: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pwindow.param().abi(), core::mem::transmute(mode), core::mem::transmute(selectionmode), core::mem::transmute(capturemode), core::mem::transmute(photoformat), core::mem::transmute(videoformat), bhasclosebutton.into(), peventcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pwindow.param().abi(), mode, selectionmode, capturemode, photoformat, videoformat, bhasclosebutton.into(), peventcallback.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -2515,7 +2515,7 @@ windows_core::imp::define_interface!(IDeleteBrowsingHistory, IDeleteBrowsingHist windows_core::imp::interface_hierarchy!(IDeleteBrowsingHistory, windows_core::IUnknown); impl IDeleteBrowsingHistory { pub unsafe fn DeleteBrowsingHistory(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteBrowsingHistory)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DeleteBrowsingHistory)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -2565,7 +2565,7 @@ windows_core::imp::interface_hierarchy!(IEditionUpgradeBroker, windows_core::IUn impl IEditionUpgradeBroker { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn InitializeParentWindow(&self, parenthandle: super::Ole::OLE_HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeParentWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(parenthandle)).ok() + (windows_core::Interface::vtable(self).InitializeParentWindow)(windows_core::Interface::as_raw(self), parenthandle).ok() } pub unsafe fn UpdateOperatingSystem(&self, parameter: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateOperatingSystem)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(parameter)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs index a717bf50cf..12de4e8e85 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs @@ -114,7 +114,7 @@ impl IChangeConflict { (windows_core::Interface::vtable(self).GetResolveActionForChange)(windows_core::Interface::as_raw(self), core::mem::transmute(presolveaction)).ok() } pub unsafe fn SetResolveActionForChange(&self, resolveaction: SYNC_RESOLVE_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResolveActionForChange)(windows_core::Interface::as_raw(self), core::mem::transmute(resolveaction)).ok() + (windows_core::Interface::vtable(self).SetResolveActionForChange)(windows_core::Interface::as_raw(self), resolveaction).ok() } pub unsafe fn GetResolveActionForChangeUnit(&self, pchangeunit: P0, presolveaction: *mut SYNC_RESOLVE_ACTION) -> windows_core::Result<()> where @@ -126,7 +126,7 @@ impl IChangeConflict { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), core::mem::transmute(resolveaction)).ok() + (windows_core::Interface::vtable(self).SetResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), resolveaction).ok() } } #[repr(C)] @@ -236,7 +236,7 @@ impl IChangeUnitException { (windows_core::Interface::vtable(self).GetChangeUnitId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbchangeunitid), core::mem::transmute(pcbidsize)).ok() } pub unsafe fn GetClockVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClockVector)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetClockVector)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -287,13 +287,13 @@ impl core::ops::Deref for IChangeUnitListFilterInfo { windows_core::imp::interface_hierarchy!(IChangeUnitListFilterInfo, windows_core::IUnknown, ISyncFilterInfo); impl IChangeUnitListFilterInfo { pub unsafe fn Initialize(&self, ppbchangeunitids: *const *const u8, dwchangeunitcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppbchangeunitids), core::mem::transmute(dwchangeunitcount)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), ppbchangeunitids, dwchangeunitcount).ok() } pub unsafe fn GetChangeUnitIdCount(&self, pdwchangeunitidcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetChangeUnitIdCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwchangeunitidcount)).ok() } pub unsafe fn GetChangeUnitId(&self, dwchangeunitidindex: u32, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChangeUnitId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangeunitidindex), core::mem::transmute(pbchangeunitid), core::mem::transmute(pcbidsize)).ok() + (windows_core::Interface::vtable(self).GetChangeUnitId)(windows_core::Interface::as_raw(self), dwchangeunitidindex, core::mem::transmute(pbchangeunitid), core::mem::transmute(pcbidsize)).ok() } } #[repr(C)] @@ -338,7 +338,7 @@ windows_core::imp::define_interface!(IClockVector, IClockVector_Vtbl, 0x14b2274a windows_core::imp::interface_hierarchy!(IClockVector, windows_core::IUnknown); impl IClockVector { pub unsafe fn GetClockVectorElements(&self, riid: *const windows_core::GUID, ppienumclockvector: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClockVectorElements)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppienumclockvector)).ok() + (windows_core::Interface::vtable(self).GetClockVectorElements)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppienumclockvector)).ok() } pub unsafe fn GetClockVectorElementCount(&self, pdwcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetClockVectorElementCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcount)).ok() @@ -430,7 +430,7 @@ impl ICombinedFilterInfo { } pub unsafe fn GetFilterInfo(&self, dwfilterindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilterInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfilterindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilterInfo)(windows_core::Interface::as_raw(self), dwfilterindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilterCombinationType(&self, pfiltercombinationtype: *mut FILTER_COMBINATION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFilterCombinationType)(windows_core::Interface::as_raw(self), core::mem::transmute(pfiltercombinationtype)).ok() @@ -511,7 +511,7 @@ impl IConstraintConflict { (windows_core::Interface::vtable(self).GetConstraintResolveActionForChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pconstraintresolveaction)).ok() } pub unsafe fn SetConstraintResolveActionForChange(&self, constraintresolveaction: SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConstraintResolveActionForChange)(windows_core::Interface::as_raw(self), core::mem::transmute(constraintresolveaction)).ok() + (windows_core::Interface::vtable(self).SetConstraintResolveActionForChange)(windows_core::Interface::as_raw(self), constraintresolveaction).ok() } pub unsafe fn GetConstraintResolveActionForChangeUnit(&self, pchangeunit: P0, pconstraintresolveaction: *mut SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::Result<()> where @@ -523,7 +523,7 @@ impl IConstraintConflict { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConstraintResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), core::mem::transmute(constraintresolveaction)).ok() + (windows_core::Interface::vtable(self).SetConstraintResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), constraintresolveaction).ok() } pub unsafe fn GetConstraintConflictReason(&self, pconstraintconflictreason: *mut CONSTRAINT_CONFLICT_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetConstraintConflictReason)(windows_core::Interface::as_raw(self), core::mem::transmute(pconstraintconflictreason)).ok() @@ -673,7 +673,7 @@ windows_core::imp::define_interface!(IConstructReplicaKeyMap, IConstructReplicaK windows_core::imp::interface_hierarchy!(IConstructReplicaKeyMap, windows_core::IUnknown); impl IConstructReplicaKeyMap { pub unsafe fn FindOrAddReplica(&self, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindOrAddReplica)(windows_core::Interface::as_raw(self), core::mem::transmute(pbreplicaid), core::mem::transmute(pdwreplicakey)).ok() + (windows_core::Interface::vtable(self).FindOrAddReplica)(windows_core::Interface::as_raw(self), pbreplicaid, core::mem::transmute(pdwreplicakey)).ok() } } #[repr(C)] @@ -772,7 +772,7 @@ windows_core::imp::define_interface!(ICoreFragmentInspector, ICoreFragmentInspec windows_core::imp::interface_hierarchy!(ICoreFragmentInspector, windows_core::IUnknown); impl ICoreFragmentInspector { pub unsafe fn NextCoreFragments(&self, requestedcount: u32, ppicorefragments: *mut Option, pfetchedcount: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NextCoreFragments)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedcount), core::mem::transmute(ppicorefragments), core::mem::transmute(pfetchedcount)).ok() + (windows_core::Interface::vtable(self).NextCoreFragments)(windows_core::Interface::as_raw(self), requestedcount, core::mem::transmute(ppicorefragments), core::mem::transmute(pfetchedcount)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -884,7 +884,7 @@ impl IDataRetrieverCallback { (windows_core::Interface::vtable(self).LoadChangeDataComplete)(windows_core::Interface::as_raw(self), punkdata.param().abi()).ok() } pub unsafe fn LoadChangeDataError(&self, hrerror: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadChangeDataError)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror)).ok() + (windows_core::Interface::vtable(self).LoadChangeDataError)(windows_core::Interface::as_raw(self), hrerror).ok() } } #[repr(C)] @@ -922,10 +922,10 @@ windows_core::imp::define_interface!(IEnumChangeUnitExceptions, IEnumChangeUnitE windows_core::imp::interface_hierarchy!(IEnumChangeUnitExceptions, windows_core::IUnknown); impl IEnumChangeUnitExceptions { pub unsafe fn Next(&self, cexceptions: u32, ppchangeunitexception: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cexceptions), core::mem::transmute(ppchangeunitexception), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cexceptions, core::mem::transmute(ppchangeunitexception), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cexceptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cexceptions)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cexceptions).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -990,10 +990,10 @@ windows_core::imp::define_interface!(IEnumClockVector, IEnumClockVector_Vtbl, 0x windows_core::imp::interface_hierarchy!(IEnumClockVector, windows_core::IUnknown); impl IEnumClockVector { pub unsafe fn Next(&self, cclockvectorelements: u32, ppiclockvectorelements: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cclockvectorelements), core::mem::transmute(ppiclockvectorelements), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cclockvectorelements, core::mem::transmute(ppiclockvectorelements), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, csyncversions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(csyncversions)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), csyncversions).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1058,10 +1058,10 @@ windows_core::imp::define_interface!(IEnumFeedClockVector, IEnumFeedClockVector_ windows_core::imp::interface_hierarchy!(IEnumFeedClockVector, windows_core::IUnknown); impl IEnumFeedClockVector { pub unsafe fn Next(&self, cclockvectorelements: u32, ppiclockvectorelements: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cclockvectorelements), core::mem::transmute(ppiclockvectorelements), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cclockvectorelements, core::mem::transmute(ppiclockvectorelements), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, csyncversions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(csyncversions)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), csyncversions).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1154,10 +1154,10 @@ windows_core::imp::define_interface!(IEnumRangeExceptions, IEnumRangeExceptions_ windows_core::imp::interface_hierarchy!(IEnumRangeExceptions, windows_core::IUnknown); impl IEnumRangeExceptions { pub unsafe fn Next(&self, cexceptions: u32, pprangeexception: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cexceptions), core::mem::transmute(pprangeexception), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cexceptions, core::mem::transmute(pprangeexception), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cexceptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cexceptions)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cexceptions).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1222,10 +1222,10 @@ windows_core::imp::define_interface!(IEnumSingleItemExceptions, IEnumSingleItemE windows_core::imp::interface_hierarchy!(IEnumSingleItemExceptions, windows_core::IUnknown); impl IEnumSingleItemExceptions { pub unsafe fn Next(&self, cexceptions: u32, ppsingleitemexception: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cexceptions), core::mem::transmute(ppsingleitemexception), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cexceptions, core::mem::transmute(ppsingleitemexception), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cexceptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cexceptions)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cexceptions).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1290,10 +1290,10 @@ windows_core::imp::define_interface!(IEnumSyncChangeUnits, IEnumSyncChangeUnits_ windows_core::imp::interface_hierarchy!(IEnumSyncChangeUnits, windows_core::IUnknown); impl IEnumSyncChangeUnits { pub unsafe fn Next(&self, cchanges: u32, ppchangeunit: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cchanges), core::mem::transmute(ppchangeunit), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cchanges, core::mem::transmute(ppchangeunit), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cchanges: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cchanges)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cchanges).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1358,10 +1358,10 @@ windows_core::imp::define_interface!(IEnumSyncChanges, IEnumSyncChanges_Vtbl, 0x windows_core::imp::interface_hierarchy!(IEnumSyncChanges, windows_core::IUnknown); impl IEnumSyncChanges { pub unsafe fn Next(&self, cchanges: u32, ppchange: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(cchanges), core::mem::transmute(ppchange), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), cchanges, core::mem::transmute(ppchange), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cchanges: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cchanges)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cchanges).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1430,7 +1430,7 @@ impl IEnumSyncProviderConfigUIInfos { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppsyncproviderconfiguiinfo.len().try_into().unwrap(), core::mem::transmute(ppsyncproviderconfiguiinfo.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cfactories: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cfactories)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cfactories).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1505,7 +1505,7 @@ impl IEnumSyncProviderInfos { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ppsyncproviderinfo.len().try_into().unwrap(), core::mem::transmute(ppsyncproviderinfo.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cinstances: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(cinstances)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), cinstances).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1680,7 +1680,7 @@ impl IFilterKeyMap { } pub unsafe fn GetFilter(&self, dwfilterkey: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfilterkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), dwfilterkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Serialize(&self, pbfilterkeymap: *mut u8, pcbfilterkeymap: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pbfilterkeymap), core::mem::transmute(pcbfilterkeymap)).ok() @@ -1744,7 +1744,7 @@ impl IFilterRequestCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), core::mem::transmute(filteringtype)).ok() + (windows_core::Interface::vtable(self).RequestFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), filteringtype).ok() } } #[repr(C)] @@ -1850,7 +1850,7 @@ windows_core::imp::define_interface!(IFilterTrackingSyncChangeBuilder, IFilterTr windows_core::imp::interface_hierarchy!(IFilterTrackingSyncChangeBuilder, windows_core::IUnknown); impl IFilterTrackingSyncChangeBuilder { pub unsafe fn AddFilterChange(&self, dwfilterkey: u32, pfilterchange: *const SYNC_FILTER_CHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddFilterChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfilterkey), core::mem::transmute(pfilterchange)).ok() + (windows_core::Interface::vtable(self).AddFilterChange)(windows_core::Interface::as_raw(self), dwfilterkey, pfilterchange).ok() } pub unsafe fn SetAllChangeUnitsPresentFlag(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAllChangeUnitsPresentFlag)(windows_core::Interface::as_raw(self)).ok() @@ -1900,7 +1900,7 @@ impl IForgottenKnowledge { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ForgetToVersion)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), core::mem::transmute(pversion)).ok() + (windows_core::Interface::vtable(self).ForgetToVersion)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), pversion).ok() } } #[repr(C)] @@ -1937,7 +1937,7 @@ impl IKnowledgeSyncProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), core::mem::transmute(role), psessionstate.param().abi()).ok() + (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), role, psessionstate.param().abi()).ok() } pub unsafe fn GetSyncBatchParameters(&self, ppsyncknowledge: *mut Option, pdwrequestedbatchsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSyncBatchParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsyncknowledge), core::mem::transmute(pdwrequestedbatchsize)).ok() @@ -1946,13 +1946,13 @@ impl IKnowledgeSyncProvider { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetChangeBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbatchsize), psyncknowledge.param().abi(), core::mem::transmute(ppsyncchangebatch), core::mem::transmute(ppunkdataretriever)).ok() + (windows_core::Interface::vtable(self).GetChangeBatch)(windows_core::Interface::as_raw(self), dwbatchsize, psyncknowledge.param().abi(), core::mem::transmute(ppsyncchangebatch), core::mem::transmute(ppunkdataretriever)).ok() } pub unsafe fn GetFullEnumerationChangeBatch(&self, dwbatchsize: u32, pblowerenumerationbound: *const u8, psyncknowledge: P2, ppsyncchangebatch: *mut Option, ppunkdataretriever: *mut Option) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbatchsize), core::mem::transmute(pblowerenumerationbound), psyncknowledge.param().abi(), core::mem::transmute(ppsyncchangebatch), core::mem::transmute(ppunkdataretriever)).ok() + (windows_core::Interface::vtable(self).GetFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), dwbatchsize, pblowerenumerationbound, psyncknowledge.param().abi(), core::mem::transmute(ppsyncchangebatch), core::mem::transmute(ppunkdataretriever)).ok() } pub unsafe fn ProcessChangeBatch(&self, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: P1, punkdataretriever: P2, pcallback: P3, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::Result<()> where @@ -1960,7 +1960,7 @@ impl IKnowledgeSyncProvider { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessChangeBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(resolutionpolicy), psourcechangebatch.param().abi(), punkdataretriever.param().abi(), pcallback.param().abi(), core::mem::transmute(psyncsessionstatistics)).ok() + (windows_core::Interface::vtable(self).ProcessChangeBatch)(windows_core::Interface::as_raw(self), resolutionpolicy, psourcechangebatch.param().abi(), punkdataretriever.param().abi(), pcallback.param().abi(), core::mem::transmute(psyncsessionstatistics)).ok() } pub unsafe fn ProcessFullEnumerationChangeBatch(&self, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: P1, punkdataretriever: P2, pcallback: P3, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::Result<()> where @@ -1968,7 +1968,7 @@ impl IKnowledgeSyncProvider { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(resolutionpolicy), psourcechangebatch.param().abi(), punkdataretriever.param().abi(), pcallback.param().abi(), core::mem::transmute(psyncsessionstatistics)).ok() + (windows_core::Interface::vtable(self).ProcessFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), resolutionpolicy, psourcechangebatch.param().abi(), punkdataretriever.param().abi(), pcallback.param().abi(), core::mem::transmute(psyncsessionstatistics)).ok() } pub unsafe fn EndSession(&self, psessionstate: P0) -> windows_core::Result<()> where @@ -2054,14 +2054,14 @@ impl ILoadChangeContext { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecoverableErrorOnChange)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror), perrordata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecoverableErrorOnChange)(windows_core::Interface::as_raw(self), hrerror, perrordata.param().abi()).ok() } pub unsafe fn SetRecoverableErrorOnChangeUnit(&self, hrerror: windows_core::HRESULT, pchangeunit: P1, perrordata: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecoverableErrorOnChangeUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(hrerror), pchangeunit.param().abi(), perrordata.param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecoverableErrorOnChangeUnit)(windows_core::Interface::as_raw(self), hrerror, pchangeunit.param().abi(), perrordata.param().abi()).ok() } } #[repr(C)] @@ -2149,7 +2149,7 @@ impl IRangeException { (windows_core::Interface::vtable(self).GetClosedRangeEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pbclosedrangeend), core::mem::transmute(pcbidsize)).ok() } pub unsafe fn GetClockVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClockVector)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetClockVector)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -2340,7 +2340,7 @@ impl IRegisteredSyncProvider { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), core::mem::transmute(pguidcontenttype), pcontextpropertystore.param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pguidinstanceid, pguidcontenttype, pcontextpropertystore.param().abi()).ok() } pub unsafe fn GetInstanceId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2404,10 +2404,10 @@ windows_core::imp::define_interface!(IReplicaKeyMap, IReplicaKeyMap_Vtbl, 0x2209 windows_core::imp::interface_hierarchy!(IReplicaKeyMap, windows_core::IUnknown); impl IReplicaKeyMap { pub unsafe fn LookupReplicaKey(&self, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LookupReplicaKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pbreplicaid), core::mem::transmute(pdwreplicakey)).ok() + (windows_core::Interface::vtable(self).LookupReplicaKey)(windows_core::Interface::as_raw(self), pbreplicaid, core::mem::transmute(pdwreplicakey)).ok() } pub unsafe fn LookupReplicaId(&self, dwreplicakey: u32, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LookupReplicaId)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreplicakey), core::mem::transmute(pbreplicaid), core::mem::transmute(pcbidsize)).ok() + (windows_core::Interface::vtable(self).LookupReplicaId)(windows_core::Interface::as_raw(self), dwreplicakey, core::mem::transmute(pbreplicaid), core::mem::transmute(pcbidsize)).ok() } pub unsafe fn Serialize(&self, pbreplicakeymap: *mut u8, pcbreplicakeymap: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pbreplicakeymap), core::mem::transmute(pcbreplicakeymap)).ok() @@ -2489,7 +2489,7 @@ impl ISingleItemException { (windows_core::Interface::vtable(self).GetItemId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(pcbidsize)).ok() } pub unsafe fn GetClockVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClockVector)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetClockVector)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -2530,7 +2530,7 @@ impl ISupportFilteredSync { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), core::mem::transmute(filteringtype)).ok() + (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), filteringtype).ok() } } #[repr(C)] @@ -2558,10 +2558,10 @@ windows_core::imp::define_interface!(ISupportLastWriteTime, ISupportLastWriteTim windows_core::imp::interface_hierarchy!(ISupportLastWriteTime, windows_core::IUnknown); impl ISupportLastWriteTime { pub unsafe fn GetItemChangeTime(&self, pbitemid: *const u8, pulltimestamp: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetItemChangeTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(pulltimestamp)).ok() + (windows_core::Interface::vtable(self).GetItemChangeTime)(windows_core::Interface::as_raw(self), pbitemid, core::mem::transmute(pulltimestamp)).ok() } pub unsafe fn GetChangeUnitChangeTime(&self, pbitemid: *const u8, pbchangeunitid: *const u8, pulltimestamp: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChangeUnitChangeTime)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(pbchangeunitid), core::mem::transmute(pulltimestamp)).ok() + (windows_core::Interface::vtable(self).GetChangeUnitChangeTime)(windows_core::Interface::as_raw(self), pbitemid, pbchangeunitid, core::mem::transmute(pulltimestamp)).ok() } } #[repr(C)] @@ -2599,7 +2599,7 @@ windows_core::imp::define_interface!(ISyncCallback, ISyncCallback_Vtbl, 0x059979 windows_core::imp::interface_hierarchy!(ISyncCallback, windows_core::IUnknown); impl ISyncCallback { pub unsafe fn OnProgress(&self, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(provider), core::mem::transmute(syncstage), core::mem::transmute(dwcompletedwork), core::mem::transmute(dwtotalwork)).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), provider, syncstage, dwcompletedwork, dwtotalwork).ok() } pub unsafe fn OnChange(&self, psyncchange: P0) -> windows_core::Result<()> where @@ -2685,10 +2685,10 @@ impl core::ops::Deref for ISyncCallback2 { windows_core::imp::interface_hierarchy!(ISyncCallback2, windows_core::IUnknown, ISyncCallback); impl ISyncCallback2 { pub unsafe fn OnChangeApplied(&self, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChangeApplied)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangesapplied), core::mem::transmute(dwchangesfailed)).ok() + (windows_core::Interface::vtable(self).OnChangeApplied)(windows_core::Interface::as_raw(self), dwchangesapplied, dwchangesfailed).ok() } pub unsafe fn OnChangeFailed(&self, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChangeFailed)(windows_core::Interface::as_raw(self), core::mem::transmute(dwchangesapplied), core::mem::transmute(dwchangesfailed)).ok() + (windows_core::Interface::vtable(self).OnChangeFailed)(windows_core::Interface::as_raw(self), dwchangesapplied, dwchangesfailed).ok() } } #[repr(C)] @@ -2732,10 +2732,10 @@ impl ISyncChange { (windows_core::Interface::vtable(self).GetRootItemId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbrootitemid), core::mem::transmute(pcbidsize)).ok() } pub unsafe fn GetChangeVersion(&self, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChangeVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcurrentreplicaid), core::mem::transmute(pversion)).ok() + (windows_core::Interface::vtable(self).GetChangeVersion)(windows_core::Interface::as_raw(self), pbcurrentreplicaid, core::mem::transmute(pversion)).ok() } pub unsafe fn GetCreationVersion(&self, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCreationVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcurrentreplicaid), core::mem::transmute(pversion)).ok() + (windows_core::Interface::vtable(self).GetCreationVersion)(windows_core::Interface::as_raw(self), pbcurrentreplicaid, core::mem::transmute(pversion)).ok() } pub unsafe fn GetFlags(&self, pdwflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags)).ok() @@ -2756,7 +2756,7 @@ impl ISyncChange { (windows_core::Interface::vtable(self).GetLearnedKnowledge)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetWorkEstimate(&self, dwwork: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWorkEstimate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwork)).ok() + (windows_core::Interface::vtable(self).SetWorkEstimate)(windows_core::Interface::as_raw(self), dwwork).ok() } } #[repr(C)] @@ -2887,7 +2887,7 @@ impl ISyncChangeBatch { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddLoggedConflict)(windows_core::Interface::as_raw(self), core::mem::transmute(pbownerreplicaid), core::mem::transmute(pbitemid), core::mem::transmute(pchangeversion), core::mem::transmute(pcreationversion), core::mem::transmute(dwflags), core::mem::transmute(dwworkforchange), pconflictknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddLoggedConflict)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbitemid, pchangeversion, pcreationversion, dwflags, dwworkforchange, pconflictknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2945,14 +2945,14 @@ windows_core::imp::interface_hierarchy!(ISyncChangeBatch2, windows_core::IUnknow impl ISyncChangeBatch2 { pub unsafe fn AddMergeTombstoneMetadataToGroup(&self, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMergeTombstoneMetadataToGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(pbownerreplicaid), core::mem::transmute(pbwinneritemid), core::mem::transmute(pbitemid), core::mem::transmute(pchangeversion), core::mem::transmute(pcreationversion), core::mem::transmute(dwworkforchange), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddMergeTombstoneMetadataToGroup)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbwinneritemid, pbitemid, pchangeversion, pcreationversion, dwworkforchange, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddMergeTombstoneLoggedConflict(&self, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, pconflictknowledge: P6) -> windows_core::Result where P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMergeTombstoneLoggedConflict)(windows_core::Interface::as_raw(self), core::mem::transmute(pbownerreplicaid), core::mem::transmute(pbwinneritemid), core::mem::transmute(pbitemid), core::mem::transmute(pchangeversion), core::mem::transmute(pcreationversion), core::mem::transmute(dwworkforchange), pconflictknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddMergeTombstoneLoggedConflict)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbwinneritemid, pbitemid, pchangeversion, pcreationversion, dwworkforchange, pconflictknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3090,17 +3090,17 @@ impl ISyncChangeBatchBase { (windows_core::Interface::vtable(self).GetRemainingWorkEstimateForSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwremainingworkforsession)).ok() } pub unsafe fn BeginOrderedGroup(&self, pblowerbound: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginOrderedGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(pblowerbound)).ok() + (windows_core::Interface::vtable(self).BeginOrderedGroup)(windows_core::Interface::as_raw(self), pblowerbound).ok() } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EndOrderedGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(pbupperbound), pmadewithknowledge.param().abi()).ok() + (windows_core::Interface::vtable(self).EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.param().abi()).ok() } pub unsafe fn AddItemMetadataToGroup(&self, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddItemMetadataToGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(pbownerreplicaid), core::mem::transmute(pbitemid), core::mem::transmute(pchangeversion), core::mem::transmute(pcreationversion), core::mem::transmute(dwflags), core::mem::transmute(dwworkforchange), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddItemMetadataToGroup)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbitemid, pchangeversion, pcreationversion, dwflags, dwworkforchange, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLearnedKnowledge(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3118,10 +3118,10 @@ impl ISyncChangeBatchBase { (windows_core::Interface::vtable(self).SetLastBatch)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWorkEstimateForBatch(&self, dwworkforbatch: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWorkEstimateForBatch)(windows_core::Interface::as_raw(self), core::mem::transmute(dwworkforbatch)).ok() + (windows_core::Interface::vtable(self).SetWorkEstimateForBatch)(windows_core::Interface::as_raw(self), dwworkforbatch).ok() } pub unsafe fn SetRemainingWorkEstimateForSession(&self, dwremainingworkforsession: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRemainingWorkEstimateForSession)(windows_core::Interface::as_raw(self), core::mem::transmute(dwremainingworkforsession)).ok() + (windows_core::Interface::vtable(self).SetRemainingWorkEstimateForSession)(windows_core::Interface::as_raw(self), dwremainingworkforsession).ok() } pub unsafe fn Serialize(&self, pbchangebatch: *mut u8, pcbchangebatch: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pbchangebatch), core::mem::transmute(pcbchangebatch)).ok() @@ -3282,7 +3282,7 @@ impl core::ops::Deref for ISyncChangeBatchBase2 { windows_core::imp::interface_hierarchy!(ISyncChangeBatchBase2, windows_core::IUnknown, ISyncChangeBatchBase); impl ISyncChangeBatchBase2 { pub unsafe fn SerializeWithOptions(&self, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SerializeWithOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(targetformatversion), core::mem::transmute(dwflags), core::mem::transmute(pbbuffer), core::mem::transmute(pdwserializedsize)).ok() + (windows_core::Interface::vtable(self).SerializeWithOptions)(windows_core::Interface::as_raw(self), targetformatversion, dwflags, core::mem::transmute(pbbuffer), core::mem::transmute(pdwserializedsize)).ok() } } #[repr(C)] @@ -3323,7 +3323,7 @@ impl ISyncChangeBatchWithFilterKeyMap { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfilterkey), pfilterforgottenknowledge.param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), dwfilterkey, pfilterforgottenknowledge.param().abi()).ok() } pub unsafe fn GetFilteredReplicaLearnedKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where @@ -3339,7 +3339,7 @@ impl ISyncChangeBatchWithFilterKeyMap { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), core::mem::transmute(dwfilterkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), dwfilterkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredReplicaLearnedForgottenKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where @@ -3363,7 +3363,7 @@ impl ISyncChangeBatchWithFilterKeyMap { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), core::mem::transmute(dwfilterkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), dwfilterkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3556,7 +3556,7 @@ windows_core::imp::define_interface!(ISyncChangeBuilder, ISyncChangeBuilder_Vtbl windows_core::imp::interface_hierarchy!(ISyncChangeBuilder, windows_core::IUnknown); impl ISyncChangeBuilder { pub unsafe fn AddChangeUnitMetadata(&self, pbchangeunitid: *const u8, pchangeunitversion: *const SYNC_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddChangeUnitMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbchangeunitid), core::mem::transmute(pchangeunitversion)).ok() + (windows_core::Interface::vtable(self).AddChangeUnitMetadata)(windows_core::Interface::as_raw(self), pbchangeunitid, pchangeunitversion).ok() } } #[repr(C)] @@ -3591,7 +3591,7 @@ impl ISyncChangeUnit { (windows_core::Interface::vtable(self).GetChangeUnitId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbchangeunitid), core::mem::transmute(pcbidsize)).ok() } pub unsafe fn GetChangeUnitVersion(&self, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChangeUnitVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcurrentreplicaid), core::mem::transmute(pversion)).ok() + (windows_core::Interface::vtable(self).GetChangeUnitVersion)(windows_core::Interface::as_raw(self), pbcurrentreplicaid, core::mem::transmute(pversion)).ok() } } #[repr(C)] @@ -3645,14 +3645,14 @@ impl ISyncChangeWithFilterKeyMap { (windows_core::Interface::vtable(self).GetFilterCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwfiltercount)).ok() } pub unsafe fn GetFilterChange(&self, dwfilterkey: u32, pfilterchange: *mut SYNC_FILTER_CHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFilterChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfilterkey), core::mem::transmute(pfilterchange)).ok() + (windows_core::Interface::vtable(self).GetFilterChange)(windows_core::Interface::as_raw(self), dwfilterkey, core::mem::transmute(pfilterchange)).ok() } pub unsafe fn GetAllChangeUnitsPresentFlag(&self, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllChangeUnitsPresentFlag)(windows_core::Interface::as_raw(self), core::mem::transmute(pfallchangeunitspresent)).ok() } pub unsafe fn GetFilterForgottenKnowledge(&self, dwfilterkey: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfilterkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), dwfilterkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredReplicaLearnedKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where @@ -3668,7 +3668,7 @@ impl ISyncChangeWithFilterKeyMap { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), core::mem::transmute(dwfilterkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), dwfilterkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredReplicaLearnedForgottenKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where @@ -3692,7 +3692,7 @@ impl ISyncChangeWithFilterKeyMap { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), core::mem::transmute(dwfilterkey), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), dwfilterkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4054,7 +4054,7 @@ windows_core::imp::interface_hierarchy!(ISyncFilterDeserializer, windows_core::I impl ISyncFilterDeserializer { pub unsafe fn DeserializeSyncFilter(&self, pbsyncfilter: *const u8, dwcbsyncfilter: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DeserializeSyncFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsyncfilter), core::mem::transmute(dwcbsyncfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DeserializeSyncFilter)(windows_core::Interface::as_raw(self), pbsyncfilter, dwcbsyncfilter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4276,7 +4276,7 @@ windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChangeBatch2, window impl ISyncFullEnumerationChangeBatch2 { pub unsafe fn AddMergeTombstoneMetadataToGroup(&self, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMergeTombstoneMetadataToGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(pbownerreplicaid), core::mem::transmute(pbwinneritemid), core::mem::transmute(pbitemid), core::mem::transmute(pchangeversion), core::mem::transmute(pcreationversion), core::mem::transmute(dwworkforchange), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddMergeTombstoneMetadataToGroup)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbwinneritemid, pbitemid, pchangeversion, pcreationversion, dwworkforchange, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4319,16 +4319,16 @@ impl ISyncKnowledge { (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.into(), core::mem::transmute(pbknowledge), core::mem::transmute(pcbknowledge)).ok() } pub unsafe fn SetLocalTickCount(&self, ulltickcount: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocalTickCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulltickcount)).ok() + (windows_core::Interface::vtable(self).SetLocalTickCount)(windows_core::Interface::as_raw(self), ulltickcount).ok() } pub unsafe fn ContainsChange(&self, pbversionownerreplicaid: *const u8, pgiditemid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ContainsChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pbversionownerreplicaid), core::mem::transmute(pgiditemid), core::mem::transmute(psyncversion)).ok() + (windows_core::Interface::vtable(self).ContainsChange)(windows_core::Interface::as_raw(self), pbversionownerreplicaid, pgiditemid, psyncversion).ok() } pub unsafe fn ContainsChangeUnit(&self, pbversionownerreplicaid: *const u8, pbitemid: *const u8, pbchangeunitid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ContainsChangeUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbversionownerreplicaid), core::mem::transmute(pbitemid), core::mem::transmute(pbchangeunitid), core::mem::transmute(psyncversion)).ok() + (windows_core::Interface::vtable(self).ContainsChangeUnit)(windows_core::Interface::as_raw(self), pbversionownerreplicaid, pbitemid, pbchangeunitid, psyncversion).ok() } pub unsafe fn GetScopeVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScopeVector)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetScopeVector)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn GetReplicaKeyMap(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4342,7 +4342,7 @@ impl ISyncKnowledge { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.param().abi(), core::mem::transmute(pbcurrentownerid), core::mem::transmute(pversionin), core::mem::transmute(pbnewownerid), core::mem::transmute(pcbidsize), core::mem::transmute(pversionout)).ok() + (windows_core::Interface::vtable(self).ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.param().abi(), pbcurrentownerid, pversionin, core::mem::transmute(pbnewownerid), core::mem::transmute(pcbidsize), core::mem::transmute(pversionout)).ok() } pub unsafe fn MapRemoteToLocal(&self, premoteknowledge: P0) -> windows_core::Result where @@ -4359,21 +4359,21 @@ impl ISyncKnowledge { } pub unsafe fn ProjectOntoItem(&self, pbitemid: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProjectOntoItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProjectOntoItem)(windows_core::Interface::as_raw(self), pbitemid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProjectOntoChangeUnit(&self, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProjectOntoChangeUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(pbchangeunitid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProjectOntoChangeUnit)(windows_core::Interface::as_raw(self), pbitemid, pbchangeunitid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProjectOntoRange(&self, psrngsyncrange: *const SYNC_RANGE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProjectOntoRange)(windows_core::Interface::as_raw(self), core::mem::transmute(psrngsyncrange), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProjectOntoRange)(windows_core::Interface::as_raw(self), psrngsyncrange, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExcludeItem(&self, pbitemid: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExcludeItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid)).ok() + (windows_core::Interface::vtable(self).ExcludeItem)(windows_core::Interface::as_raw(self), pbitemid).ok() } pub unsafe fn ExcludeChangeUnit(&self, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExcludeChangeUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(pbchangeunitid)).ok() + (windows_core::Interface::vtable(self).ExcludeChangeUnit)(windows_core::Interface::as_raw(self), pbitemid, pbchangeunitid).ok() } pub unsafe fn ContainsKnowledge(&self, pknowledge: P0) -> windows_core::Result<()> where @@ -4382,22 +4382,22 @@ impl ISyncKnowledge { (windows_core::Interface::vtable(self).ContainsKnowledge)(windows_core::Interface::as_raw(self), pknowledge.param().abi()).ok() } pub unsafe fn FindMinTickCountForReplica(&self, pbreplicaid: *const u8, pullreplicatickcount: *mut u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindMinTickCountForReplica)(windows_core::Interface::as_raw(self), core::mem::transmute(pbreplicaid), core::mem::transmute(pullreplicatickcount)).ok() + (windows_core::Interface::vtable(self).FindMinTickCountForReplica)(windows_core::Interface::as_raw(self), pbreplicaid, core::mem::transmute(pullreplicatickcount)).ok() } pub unsafe fn GetRangeExceptions(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRangeExceptions)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetRangeExceptions)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn GetSingleItemExceptions(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSingleItemExceptions)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetSingleItemExceptions)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn GetChangeUnitExceptions(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChangeUnitExceptions)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetChangeUnitExceptions)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn FindClockVectorForItem(&self, pbitemid: *const u8, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindClockVectorForItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).FindClockVectorForItem)(windows_core::Interface::as_raw(self), pbitemid, riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn FindClockVectorForChangeUnit(&self, pbitemid: *const u8, pbchangeunitid: *const u8, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindClockVectorForChangeUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(pbitemid), core::mem::transmute(pbchangeunitid), core::mem::transmute(riid), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).FindClockVectorForChangeUnit)(windows_core::Interface::as_raw(self), pbitemid, pbchangeunitid, riid, core::mem::transmute(ppunk)).ok() } pub unsafe fn GetVersion(&self, pdwversion: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwversion)).ok() @@ -4638,10 +4638,10 @@ impl ISyncKnowledge2 { } pub unsafe fn ProjectOntoColumnSet(&self, ppcolumns: *const *const u8, count: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProjectOntoColumnSet)(windows_core::Interface::as_raw(self), core::mem::transmute(ppcolumns), core::mem::transmute(count), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProjectOntoColumnSet)(windows_core::Interface::as_raw(self), ppcolumns, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SerializeWithOptions(&self, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SerializeWithOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(targetformatversion), core::mem::transmute(dwflags), core::mem::transmute(pbbuffer), core::mem::transmute(pdwserializedsize)).ok() + (windows_core::Interface::vtable(self).SerializeWithOptions)(windows_core::Interface::as_raw(self), targetformatversion, dwflags, core::mem::transmute(pbbuffer), core::mem::transmute(pdwserializedsize)).ok() } pub unsafe fn GetLowestUncontainedId(&self, pisyncknowledge: P0, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::Result<()> where @@ -4650,25 +4650,25 @@ impl ISyncKnowledge2 { (windows_core::Interface::vtable(self).GetLowestUncontainedId)(windows_core::Interface::as_raw(self), pisyncknowledge.param().abi(), core::mem::transmute(pbitemid), core::mem::transmute(pcbitemidsize)).ok() } pub unsafe fn GetInspector(&self, riid: *const windows_core::GUID, ppiinspector: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInspector)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppiinspector)).ok() + (windows_core::Interface::vtable(self).GetInspector)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppiinspector)).ok() } pub unsafe fn GetMinimumSupportedVersion(&self, pversion: *mut SYNC_SERIALIZATION_VERSION) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMinimumSupportedVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(pversion)).ok() } pub unsafe fn GetStatistics(&self, which: SYNC_STATISTICS, pvalue: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(which), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), which, core::mem::transmute(pvalue)).ok() } pub unsafe fn ContainsKnowledgeForItem(&self, pknowledge: P0, pbitemid: *const u8) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContainsKnowledgeForItem)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), core::mem::transmute(pbitemid)).ok() + (windows_core::Interface::vtable(self).ContainsKnowledgeForItem)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), pbitemid).ok() } pub unsafe fn ContainsKnowledgeForChangeUnit(&self, pknowledge: P0, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContainsKnowledgeForChangeUnit)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), core::mem::transmute(pbitemid), core::mem::transmute(pbchangeunitid)).ok() + (windows_core::Interface::vtable(self).ContainsKnowledgeForChangeUnit)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), pbitemid, pbchangeunitid).ok() } pub unsafe fn ProjectOntoKnowledgeWithPrerequisite(&self, pprerequisiteknowledge: P0, ptemplateknowledge: P1) -> windows_core::Result where @@ -4905,7 +4905,7 @@ impl ISyncProviderConfigUI { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), core::mem::transmute(pguidcontenttype), pconfigurationproperties.param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pguidinstanceid, pguidcontenttype, pconfigurationproperties.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetRegisteredProperties(&self) -> windows_core::Result { @@ -5016,7 +5016,7 @@ windows_core::imp::interface_hierarchy!(ISyncProviderConfigUIInfo, windows_core: impl ISyncProviderConfigUIInfo { pub unsafe fn GetSyncProviderConfigUI(&self, dwclscontext: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderConfigUI)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclscontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProviderConfigUI)(windows_core::Interface::as_raw(self), dwclscontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -5068,7 +5068,7 @@ windows_core::imp::interface_hierarchy!(ISyncProviderInfo, windows_core::IUnknow impl ISyncProviderInfo { pub unsafe fn GetSyncProvider(&self, dwclscontext: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(dwclscontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProvider)(windows_core::Interface::as_raw(self), dwclscontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -5111,66 +5111,66 @@ impl ISyncProviderRegistration { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateSyncProviderConfigUIRegistrationInstance(&self, pconfiguiconfig: *const SyncProviderConfigUIConfiguration) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyncProviderConfigUIRegistrationInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(pconfiguiconfig), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSyncProviderConfigUIRegistrationInstance)(windows_core::Interface::as_raw(self), pconfiguiconfig, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterSyncProviderConfigUI(&self, pguidinstanceid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterSyncProviderConfigUI)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid)).ok() + (windows_core::Interface::vtable(self).UnregisterSyncProviderConfigUI)(windows_core::Interface::as_raw(self), pguidinstanceid).ok() } pub unsafe fn EnumerateSyncProviderConfigUIs(&self, pguidcontenttype: Option<*const windows_core::GUID>, dwsupportedarchitecture: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateSyncProviderConfigUIs)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidcontenttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsupportedarchitecture), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateSyncProviderConfigUIs)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidcontenttype.unwrap_or(core::mem::zeroed())), dwsupportedarchitecture, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateSyncProviderRegistrationInstance(&self, pproviderconfiguration: *const SyncProviderConfiguration) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyncProviderRegistrationInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(pproviderconfiguration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSyncProviderRegistrationInstance)(windows_core::Interface::as_raw(self), pproviderconfiguration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterSyncProvider(&self, pguidinstanceid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterSyncProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid)).ok() + (windows_core::Interface::vtable(self).UnregisterSyncProvider)(windows_core::Interface::as_raw(self), pguidinstanceid).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetSyncProviderConfigUIInfoforProvider(&self, pguidproviderinstanceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderConfigUIInfoforProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidproviderinstanceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProviderConfigUIInfoforProvider)(windows_core::Interface::as_raw(self), pguidproviderinstanceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateSyncProviders(&self, pguidcontenttype: Option<*const windows_core::GUID>, dwstateflagstofiltermask: u32, dwstateflagstofilter: u32, refproviderclsid: *const windows_core::GUID, dwsupportedarchitecture: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateSyncProviders)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidcontenttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwstateflagstofiltermask), core::mem::transmute(dwstateflagstofilter), core::mem::transmute(refproviderclsid), core::mem::transmute(dwsupportedarchitecture), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateSyncProviders)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidcontenttype.unwrap_or(core::mem::zeroed())), dwstateflagstofiltermask, dwstateflagstofilter, refproviderclsid, dwsupportedarchitecture, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetSyncProviderInfo(&self, pguidinstanceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProviderInfo)(windows_core::Interface::as_raw(self), pguidinstanceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSyncProviderFromInstanceId(&self, pguidinstanceid: *const windows_core::GUID, dwclscontext: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderFromInstanceId)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), core::mem::transmute(dwclscontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProviderFromInstanceId)(windows_core::Interface::as_raw(self), pguidinstanceid, dwclscontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetSyncProviderConfigUIInfo(&self, pguidinstanceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderConfigUIInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProviderConfigUIInfo)(windows_core::Interface::as_raw(self), pguidinstanceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSyncProviderConfigUIFromInstanceId(&self, pguidinstanceid: *const windows_core::GUID, dwclscontext: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderConfigUIFromInstanceId)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), core::mem::transmute(dwclscontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncProviderConfigUIFromInstanceId)(windows_core::Interface::as_raw(self), pguidinstanceid, dwclscontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSyncProviderState(&self, pguidinstanceid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncProviderState)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSyncProviderState)(windows_core::Interface::as_raw(self), pguidinstanceid, &mut result__).map(|| result__) } pub unsafe fn SetSyncProviderState(&self, pguidinstanceid: *const windows_core::GUID, dwstateflagsmask: u32, dwstateflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSyncProviderState)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidinstanceid), core::mem::transmute(dwstateflagsmask), core::mem::transmute(dwstateflags)).ok() + (windows_core::Interface::vtable(self).SetSyncProviderState)(windows_core::Interface::as_raw(self), pguidinstanceid, dwstateflagsmask, dwstateflags).ok() } pub unsafe fn RegisterForEvent(&self, phevent: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegisterForEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(phevent)).ok() } pub unsafe fn RevokeEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RevokeEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent)).ok() + (windows_core::Interface::vtable(self).RevokeEvent)(windows_core::Interface::as_raw(self), hevent).ok() } pub unsafe fn GetChange(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChange)(windows_core::Interface::as_raw(self), core::mem::transmute(hevent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChange)(windows_core::Interface::as_raw(self), hevent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5486,7 +5486,7 @@ impl ISyncSessionState { (windows_core::Interface::vtable(self).GetInfoForChangeApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(pbchangeapplierinfo), core::mem::transmute(pcbchangeapplierinfo)).ok() } pub unsafe fn LoadInfoFromChangeApplication(&self, pbchangeapplierinfo: *const u8, cbchangeapplierinfo: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadInfoFromChangeApplication)(windows_core::Interface::as_raw(self), core::mem::transmute(pbchangeapplierinfo), core::mem::transmute(cbchangeapplierinfo)).ok() + (windows_core::Interface::vtable(self).LoadInfoFromChangeApplication)(windows_core::Interface::as_raw(self), pbchangeapplierinfo, cbchangeapplierinfo).ok() } pub unsafe fn GetForgottenKnowledgeRecoveryRangeStart(&self, pbrangestart: *mut u8, pcbrangestart: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetForgottenKnowledgeRecoveryRangeStart)(windows_core::Interface::as_raw(self), core::mem::transmute(pbrangestart), core::mem::transmute(pcbrangestart)).ok() @@ -5495,10 +5495,10 @@ impl ISyncSessionState { (windows_core::Interface::vtable(self).GetForgottenKnowledgeRecoveryRangeEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(pbrangeend), core::mem::transmute(pcbrangeend)).ok() } pub unsafe fn SetForgottenKnowledgeRecoveryRange(&self, prange: *const SYNC_RANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForgottenKnowledgeRecoveryRange)(windows_core::Interface::as_raw(self), core::mem::transmute(prange)).ok() + (windows_core::Interface::vtable(self).SetForgottenKnowledgeRecoveryRange)(windows_core::Interface::as_raw(self), prange).ok() } pub unsafe fn OnProgress(&self, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(provider), core::mem::transmute(syncstage), core::mem::transmute(dwcompletedwork), core::mem::transmute(dwtotalwork)).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), provider, syncstage, dwcompletedwork, dwtotalwork).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs index 76804d712d..2cf49dc72d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn MI_Application_InitializeV1(flags: u32, applicationid: Option<*const u16>, extendederror: Option<*mut *mut MI_Instance>, application: *mut MI_Application) -> MI_Result { windows_targets::link!("mi.dll" "cdecl" fn MI_Application_InitializeV1(flags : u32, applicationid : *const u16, extendederror : *mut *mut MI_Instance, application : *mut MI_Application) -> MI_Result); - MI_Application_InitializeV1(core::mem::transmute(flags), core::mem::transmute(applicationid.unwrap_or(core::mem::zeroed())), core::mem::transmute(extendederror.unwrap_or(core::mem::zeroed())), core::mem::transmute(application)) + MI_Application_InitializeV1(flags, core::mem::transmute(applicationid.unwrap_or(core::mem::zeroed())), core::mem::transmute(extendederror.unwrap_or(core::mem::zeroed())), core::mem::transmute(application)) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -32,20 +32,20 @@ impl IEnumWbemClassObject { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Next(&self, ltimeout: i32, apobjects: &mut [Option], pureturned: *mut u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout), apobjects.len().try_into().unwrap(), core::mem::transmute(apobjects.as_ptr()), core::mem::transmute(pureturned)) + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ltimeout, apobjects.len().try_into().unwrap(), core::mem::transmute(apobjects.as_ptr()), core::mem::transmute(pureturned)) } pub unsafe fn NextAsync(&self, ucount: u32, psink: P1) -> windows_core::HRESULT where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NextAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(ucount), psink.param().abi()) + (windows_core::Interface::vtable(self).NextAsync)(windows_core::Interface::as_raw(self), ucount, psink.param().abi()) } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Skip(&self, ltimeout: i32, ncount: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout), core::mem::transmute(ncount)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ltimeout, ncount) } } #[repr(C)] @@ -117,7 +117,7 @@ impl IMofCompiler { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CompileFile)(windows_core::Interface::as_raw(self), filename.param().abi(), serverandnamespace.param().abi(), user.param().abi(), authority.param().abi(), password.param().abi(), core::mem::transmute(loptionflags), core::mem::transmute(lclassflags), core::mem::transmute(linstanceflags), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).CompileFile)(windows_core::Interface::as_raw(self), filename.param().abi(), serverandnamespace.param().abi(), user.param().abi(), authority.param().abi(), password.param().abi(), loptionflags, lclassflags, linstanceflags, core::mem::transmute(pinfo)).ok() } pub unsafe fn CompileBuffer(&self, pbuffer: &[u8], serverandnamespace: P2, user: P3, authority: P4, password: P5, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()> where @@ -126,7 +126,7 @@ impl IMofCompiler { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CompileBuffer)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), serverandnamespace.param().abi(), user.param().abi(), authority.param().abi(), password.param().abi(), core::mem::transmute(loptionflags), core::mem::transmute(lclassflags), core::mem::transmute(linstanceflags), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).CompileBuffer)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), serverandnamespace.param().abi(), user.param().abi(), authority.param().abi(), password.param().abi(), loptionflags, lclassflags, linstanceflags, core::mem::transmute(pinfo)).ok() } pub unsafe fn CreateBMOF(&self, textfilename: P0, bmoffilename: P1, serverandnamespace: P2, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()> where @@ -134,7 +134,7 @@ impl IMofCompiler { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateBMOF)(windows_core::Interface::as_raw(self), textfilename.param().abi(), bmoffilename.param().abi(), serverandnamespace.param().abi(), core::mem::transmute(loptionflags), core::mem::transmute(lclassflags), core::mem::transmute(linstanceflags), core::mem::transmute(pinfo)).ok() + (windows_core::Interface::vtable(self).CreateBMOF)(windows_core::Interface::as_raw(self), textfilename.param().abi(), bmoffilename.param().abi(), serverandnamespace.param().abi(), loptionflags, lclassflags, linstanceflags, core::mem::transmute(pinfo)).ok() } } #[repr(C)] @@ -200,133 +200,133 @@ impl ISWbemDateTime { (windows_core::Interface::vtable(self).Year)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetYear(&self, iyear: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetYear)(windows_core::Interface::as_raw(self), core::mem::transmute(iyear)).ok() + (windows_core::Interface::vtable(self).SetYear)(windows_core::Interface::as_raw(self), iyear).ok() } pub unsafe fn YearSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).YearSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetYearSpecified(&self, byearspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetYearSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(byearspecified)).ok() + (windows_core::Interface::vtable(self).SetYearSpecified)(windows_core::Interface::as_raw(self), byearspecified).ok() } pub unsafe fn Month(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Month)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMonth(&self, imonth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonth)(windows_core::Interface::as_raw(self), core::mem::transmute(imonth)).ok() + (windows_core::Interface::vtable(self).SetMonth)(windows_core::Interface::as_raw(self), imonth).ok() } pub unsafe fn MonthSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MonthSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMonthSpecified(&self, bmonthspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMonthSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(bmonthspecified)).ok() + (windows_core::Interface::vtable(self).SetMonthSpecified)(windows_core::Interface::as_raw(self), bmonthspecified).ok() } pub unsafe fn Day(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Day)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDay(&self, iday: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDay)(windows_core::Interface::as_raw(self), core::mem::transmute(iday)).ok() + (windows_core::Interface::vtable(self).SetDay)(windows_core::Interface::as_raw(self), iday).ok() } pub unsafe fn DaySpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DaySpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDaySpecified(&self, bdayspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDaySpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(bdayspecified)).ok() + (windows_core::Interface::vtable(self).SetDaySpecified)(windows_core::Interface::as_raw(self), bdayspecified).ok() } pub unsafe fn Hours(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Hours)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHours(&self, ihours: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHours)(windows_core::Interface::as_raw(self), core::mem::transmute(ihours)).ok() + (windows_core::Interface::vtable(self).SetHours)(windows_core::Interface::as_raw(self), ihours).ok() } pub unsafe fn HoursSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HoursSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHoursSpecified(&self, bhoursspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHoursSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(bhoursspecified)).ok() + (windows_core::Interface::vtable(self).SetHoursSpecified)(windows_core::Interface::as_raw(self), bhoursspecified).ok() } pub unsafe fn Minutes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Minutes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinutes(&self, iminutes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinutes)(windows_core::Interface::as_raw(self), core::mem::transmute(iminutes)).ok() + (windows_core::Interface::vtable(self).SetMinutes)(windows_core::Interface::as_raw(self), iminutes).ok() } pub unsafe fn MinutesSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MinutesSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinutesSpecified(&self, bminutesspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinutesSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(bminutesspecified)).ok() + (windows_core::Interface::vtable(self).SetMinutesSpecified)(windows_core::Interface::as_raw(self), bminutesspecified).ok() } pub unsafe fn Seconds(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Seconds)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSeconds(&self, iseconds: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSeconds)(windows_core::Interface::as_raw(self), core::mem::transmute(iseconds)).ok() + (windows_core::Interface::vtable(self).SetSeconds)(windows_core::Interface::as_raw(self), iseconds).ok() } pub unsafe fn SecondsSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SecondsSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSecondsSpecified(&self, bsecondsspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecondsSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(bsecondsspecified)).ok() + (windows_core::Interface::vtable(self).SetSecondsSpecified)(windows_core::Interface::as_raw(self), bsecondsspecified).ok() } pub unsafe fn Microseconds(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Microseconds)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMicroseconds(&self, imicroseconds: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMicroseconds)(windows_core::Interface::as_raw(self), core::mem::transmute(imicroseconds)).ok() + (windows_core::Interface::vtable(self).SetMicroseconds)(windows_core::Interface::as_raw(self), imicroseconds).ok() } pub unsafe fn MicrosecondsSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MicrosecondsSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMicrosecondsSpecified(&self, bmicrosecondsspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMicrosecondsSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(bmicrosecondsspecified)).ok() + (windows_core::Interface::vtable(self).SetMicrosecondsSpecified)(windows_core::Interface::as_raw(self), bmicrosecondsspecified).ok() } pub unsafe fn UTC(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UTC)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUTC(&self, iutc: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUTC)(windows_core::Interface::as_raw(self), core::mem::transmute(iutc)).ok() + (windows_core::Interface::vtable(self).SetUTC)(windows_core::Interface::as_raw(self), iutc).ok() } pub unsafe fn UTCSpecified(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UTCSpecified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUTCSpecified(&self, butcspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUTCSpecified)(windows_core::Interface::as_raw(self), core::mem::transmute(butcspecified)).ok() + (windows_core::Interface::vtable(self).SetUTCSpecified)(windows_core::Interface::as_raw(self), butcspecified).ok() } pub unsafe fn IsInterval(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsInterval)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsInterval(&self, bisinterval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(bisinterval)).ok() + (windows_core::Interface::vtable(self).SetIsInterval)(windows_core::Interface::as_raw(self), bisinterval).ok() } pub unsafe fn GetVarDate(&self, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVarDate)(windows_core::Interface::as_raw(self), core::mem::transmute(bislocal), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVarDate)(windows_core::Interface::as_raw(self), bislocal, &mut result__).map(|| result__) } pub unsafe fn SetVarDate(&self, dvardate: f64, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVarDate)(windows_core::Interface::as_raw(self), core::mem::transmute(dvardate), core::mem::transmute(bislocal)).ok() + (windows_core::Interface::vtable(self).SetVarDate)(windows_core::Interface::as_raw(self), dvardate, bislocal).ok() } pub unsafe fn GetFileTime(&self, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileTime)(windows_core::Interface::as_raw(self), core::mem::transmute(bislocal), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFileTime)(windows_core::Interface::as_raw(self), bislocal, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetFileTime(&self, strfiletime: &windows_core::BSTR, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileTime)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfiletime), core::mem::transmute(bislocal)).ok() + (windows_core::Interface::vtable(self).SetFileTime)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfiletime), bislocal).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -765,7 +765,7 @@ windows_core::imp::interface_hierarchy!(ISWbemEventSource, windows_core::IUnknow impl ISWbemEventSource { pub unsafe fn NextEvent(&self, itimeoutms: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NextEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(itimeoutms), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NextEvent)(windows_core::Interface::as_raw(self), itimeoutms, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Security_(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -866,7 +866,7 @@ impl ISWbemLocator { P7: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strserver), core::mem::transmute_copy(strnamespace), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), core::mem::transmute_copy(strauthority), core::mem::transmute(isecurityflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strserver), core::mem::transmute_copy(strnamespace), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), core::mem::transmute_copy(strauthority), isecurityflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Security_(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1059,7 +1059,7 @@ impl ISWbemMethodSet { } pub unsafe fn Item(&self, strname: &windows_core::BSTR, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1232,7 +1232,7 @@ impl ISWbemNamedValueSet { } pub unsafe fn Item(&self, strname: &windows_core::BSTR, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1241,10 +1241,10 @@ impl ISWbemNamedValueSet { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, strname: &windows_core::BSTR, varvalue: *const super::Variant::VARIANT, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(varvalue), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(varvalue), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, strname: &windows_core::BSTR, iflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(iflags)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), iflags).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1375,7 +1375,7 @@ impl ISWbemObject { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Put_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Put_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where @@ -1383,13 +1383,13 @@ impl ISWbemObject { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Delete_(&self, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi()).ok() + (windows_core::Interface::vtable(self).Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi()).ok() } pub unsafe fn DeleteAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where @@ -1397,14 +1397,14 @@ impl ISWbemObject { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Instances_(&self, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Instances_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Instances_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InstancesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where @@ -1412,14 +1412,14 @@ impl ISWbemObject { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Subclasses_(&self, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Subclasses_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Subclasses_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SubclassesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where @@ -1427,14 +1427,14 @@ impl ISWbemObject { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Associators_(&self, strassocclass: &windows_core::BSTR, strresultclass: &windows_core::BSTR, strresultrole: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: &windows_core::BSTR, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P9) -> windows_core::Result where P9: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Associators_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strassocclass), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strresultrole), core::mem::transmute_copy(strrole), core::mem::transmute(bclassesonly), core::mem::transmute(bschemaonly), core::mem::transmute_copy(strrequiredassocqualifier), core::mem::transmute_copy(strrequiredqualifier), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Associators_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strassocclass), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strresultrole), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredassocqualifier), core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AssociatorsAsync_(&self, objwbemsink: P0, strassocclass: &windows_core::BSTR, strresultclass: &windows_core::BSTR, strresultrole: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: &windows_core::BSTR, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P10, objwbemasynccontext: P11) -> windows_core::Result<()> where @@ -1442,29 +1442,14 @@ impl ISWbemObject { P10: windows_core::Param, P11: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociatorsAsync_)( - windows_core::Interface::as_raw(self), - objwbemsink.param().abi(), - core::mem::transmute_copy(strassocclass), - core::mem::transmute_copy(strresultclass), - core::mem::transmute_copy(strresultrole), - core::mem::transmute_copy(strrole), - core::mem::transmute(bclassesonly), - core::mem::transmute(bschemaonly), - core::mem::transmute_copy(strrequiredassocqualifier), - core::mem::transmute_copy(strrequiredqualifier), - core::mem::transmute(iflags), - objwbemnamedvalueset.param().abi(), - objwbemasynccontext.param().abi(), - ) - .ok() + (windows_core::Interface::vtable(self).AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strassocclass), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strresultrole), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredassocqualifier), core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn References_(&self, strresultclass: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P6) -> windows_core::Result where P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).References_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), core::mem::transmute(bclassesonly), core::mem::transmute(bschemaonly), core::mem::transmute_copy(strrequiredqualifier), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).References_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReferencesAsync_(&self, objwbemsink: P0, strresultclass: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P7, objwbemasynccontext: P8) -> windows_core::Result<()> where @@ -1472,7 +1457,7 @@ impl ISWbemObject { P7: windows_core::Param, P8: windows_core::Param, { - (windows_core::Interface::vtable(self).ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), core::mem::transmute(bclassesonly), core::mem::transmute(bschemaonly), core::mem::transmute_copy(strrequiredqualifier), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn ExecMethod_(&self, strmethodname: &windows_core::BSTR, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result where @@ -1480,7 +1465,7 @@ impl ISWbemObject { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecMethod_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecMethod_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecMethodAsync_(&self, objwbemsink: P0, strmethodname: &windows_core::BSTR, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> windows_core::Result<()> where @@ -1489,7 +1474,7 @@ impl ISWbemObject { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Clone_(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1497,22 +1482,22 @@ impl ISWbemObject { } pub unsafe fn GetObjectText_(&self, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectText_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetObjectText_)(windows_core::Interface::as_raw(self), iflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SpawnDerivedClass_(&self, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpawnDerivedClass_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SpawnDerivedClass_)(windows_core::Interface::as_raw(self), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SpawnInstance_(&self, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpawnInstance_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SpawnInstance_)(windows_core::Interface::as_raw(self), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CompareTo_(&self, objwbemobject: P0, iflags: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.param().abi(), core::mem::transmute(iflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.param().abi(), iflags, &mut result__).map(|| result__) } pub unsafe fn Qualifiers_(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1873,7 +1858,7 @@ impl ISWbemObjectEx { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Refresh_)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi()).ok() + (windows_core::Interface::vtable(self).Refresh_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi()).ok() } pub unsafe fn SystemProperties_(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1884,13 +1869,13 @@ impl ISWbemObjectEx { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText_)(windows_core::Interface::as_raw(self), core::mem::transmute(iobjecttextformat), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText_)(windows_core::Interface::as_raw(self), iobjecttextformat, iflags, objwbemnamedvalueset.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetFromText_(&self, bstext: &windows_core::BSTR, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFromText_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstext), core::mem::transmute(iobjecttextformat), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi()).ok() + (windows_core::Interface::vtable(self).SetFromText_)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstext), iobjecttextformat, iflags, objwbemnamedvalueset.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2329,7 +2314,7 @@ impl ISWbemObjectSet { } pub unsafe fn Item(&self, strobjectpath: &windows_core::BSTR, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2341,7 +2326,7 @@ impl ISWbemObjectSet { } pub unsafe fn ItemIndex(&self, lindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ItemIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(lindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ItemIndex)(windows_core::Interface::as_raw(self), lindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2448,7 +2433,7 @@ impl ISWbemPrivilege { (windows_core::Interface::vtable(self).IsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsEnabled(&self, bisenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(bisenabled)).ok() + (windows_core::Interface::vtable(self).SetIsEnabled)(windows_core::Interface::as_raw(self), bisenabled).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2562,7 +2547,7 @@ impl ISWbemPrivilegeSet { } pub unsafe fn Item(&self, iprivilege: WbemPrivilegeEnum) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(iprivilege), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), iprivilege, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2570,17 +2555,17 @@ impl ISWbemPrivilegeSet { } pub unsafe fn Add(&self, iprivilege: WbemPrivilegeEnum, bisenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(iprivilege), core::mem::transmute(bisenabled), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), iprivilege, bisenabled, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, iprivilege: WbemPrivilegeEnum) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(iprivilege)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), iprivilege).ok() } pub unsafe fn DeleteAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddAsString(&self, strprivilege: &windows_core::BSTR, bisenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddAsString)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strprivilege), core::mem::transmute(bisenabled), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddAsString)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strprivilege), bisenabled, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2874,7 +2859,7 @@ impl ISWbemPropertySet { } pub unsafe fn Item(&self, strname: &windows_core::BSTR, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2882,10 +2867,10 @@ impl ISWbemPropertySet { } pub unsafe fn Add(&self, strname: &windows_core::BSTR, icimtype: WbemCimtypeEnum, bisarray: super::super::Foundation::VARIANT_BOOL, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(icimtype), core::mem::transmute(bisarray), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), icimtype, bisarray, iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, strname: &windows_core::BSTR, iflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(iflags)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3003,21 +2988,21 @@ impl ISWbemQualifier { (windows_core::Interface::vtable(self).PropagatesToSubclass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPropagatesToSubclass(&self, bpropagatestosubclass: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropagatesToSubclass)(windows_core::Interface::as_raw(self), core::mem::transmute(bpropagatestosubclass)).ok() + (windows_core::Interface::vtable(self).SetPropagatesToSubclass)(windows_core::Interface::as_raw(self), bpropagatestosubclass).ok() } pub unsafe fn PropagatesToInstance(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PropagatesToInstance)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPropagatesToInstance(&self, bpropagatestoinstance: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropagatesToInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(bpropagatestoinstance)).ok() + (windows_core::Interface::vtable(self).SetPropagatesToInstance)(windows_core::Interface::as_raw(self), bpropagatestoinstance).ok() } pub unsafe fn IsOverridable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOverridable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIsOverridable(&self, bisoverridable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIsOverridable)(windows_core::Interface::as_raw(self), core::mem::transmute(bisoverridable)).ok() + (windows_core::Interface::vtable(self).SetIsOverridable)(windows_core::Interface::as_raw(self), bisoverridable).ok() } pub unsafe fn IsAmended(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3189,7 +3174,7 @@ impl ISWbemQualifierSet { } pub unsafe fn Item(&self, name: &windows_core::BSTR, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3198,10 +3183,10 @@ impl ISWbemQualifierSet { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Add(&self, strname: &windows_core::BSTR, varval: *const super::Variant::VARIANT, bpropagatestosubclass: super::super::Foundation::VARIANT_BOOL, bpropagatestoinstance: super::super::Foundation::VARIANT_BOOL, bisoverridable: super::super::Foundation::VARIANT_BOOL, iflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(varval), core::mem::transmute(bpropagatestosubclass), core::mem::transmute(bpropagatestoinstance), core::mem::transmute(bisoverridable), core::mem::transmute(iflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(varval), bpropagatestosubclass, bpropagatestoinstance, bisoverridable, iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, strname: &windows_core::BSTR, iflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(iflags)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3321,7 +3306,7 @@ impl ISWbemRefreshableItem { (windows_core::Interface::vtable(self).ObjectSet)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, iflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3436,7 +3421,7 @@ impl ISWbemRefresher { } pub unsafe fn Item(&self, iindex: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), iindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3448,7 +3433,7 @@ impl ISWbemRefresher { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), objwbemservices.param().abi(), core::mem::transmute_copy(bsinstancepath), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), objwbemservices.param().abi(), core::mem::transmute_copy(bsinstancepath), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddEnum(&self, objwbemservices: P0, bsclassname: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result where @@ -3456,20 +3441,20 @@ impl ISWbemRefresher { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddEnum)(windows_core::Interface::as_raw(self), objwbemservices.param().abi(), core::mem::transmute_copy(bsclassname), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddEnum)(windows_core::Interface::as_raw(self), objwbemservices.param().abi(), core::mem::transmute_copy(bsclassname), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, iindex: i32, iflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(iflags)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), iindex, iflags).ok() } pub unsafe fn Refresh(&self, iflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), core::mem::transmute(iflags)).ok() + (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), iflags).ok() } pub unsafe fn AutoReconnect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoReconnect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoReconnect(&self, bcount: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoReconnect)(windows_core::Interface::as_raw(self), core::mem::transmute(bcount)).ok() + (windows_core::Interface::vtable(self).SetAutoReconnect)(windows_core::Interface::as_raw(self), bcount).ok() } pub unsafe fn DeleteAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAll)(windows_core::Interface::as_raw(self)).ok() @@ -3620,14 +3605,14 @@ impl ISWbemSecurity { (windows_core::Interface::vtable(self).ImpersonationLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImpersonationLevel(&self, iimpersonationlevel: WbemImpersonationLevelEnum) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImpersonationLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(iimpersonationlevel)).ok() + (windows_core::Interface::vtable(self).SetImpersonationLevel)(windows_core::Interface::as_raw(self), iimpersonationlevel).ok() } pub unsafe fn AuthenticationLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AuthenticationLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAuthenticationLevel(&self, iauthenticationlevel: WbemAuthenticationLevelEnum) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAuthenticationLevel)(windows_core::Interface::as_raw(self), core::mem::transmute(iauthenticationlevel)).ok() + (windows_core::Interface::vtable(self).SetAuthenticationLevel)(windows_core::Interface::as_raw(self), iauthenticationlevel).ok() } pub unsafe fn Privileges(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3726,7 +3711,7 @@ impl ISWbemServices { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAsync(&self, objwbemsink: P0, strobjectpath: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where @@ -3734,13 +3719,13 @@ impl ISWbemServices { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).GetAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Delete(&self, strobjectpath: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.param().abi()).ok() } pub unsafe fn DeleteAsync(&self, objwbemsink: P0, strobjectpath: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where @@ -3748,14 +3733,14 @@ impl ISWbemServices { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn InstancesOf(&self, strclass: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InstancesOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strclass), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InstancesOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strclass), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InstancesOfAsync(&self, objwbemsink: P0, strclass: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where @@ -3763,14 +3748,14 @@ impl ISWbemServices { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strclass), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).InstancesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strclass), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn SubclassesOf(&self, strsuperclass: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SubclassesOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strsuperclass), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SubclassesOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strsuperclass), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SubclassesOfAsync(&self, objwbemsink: P0, strsuperclass: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where @@ -3778,14 +3763,14 @@ impl ISWbemServices { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SubclassesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strsuperclass), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).SubclassesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strsuperclass), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn ExecQuery(&self, strquery: &windows_core::BSTR, strquerylanguage: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecQueryAsync(&self, objwbemsink: P0, strquery: &windows_core::BSTR, strquerylanguage: &windows_core::BSTR, lflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> windows_core::Result<()> where @@ -3793,29 +3778,14 @@ impl ISWbemServices { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), core::mem::transmute(lflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), lflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn AssociatorsOf(&self, strobjectpath: &windows_core::BSTR, strassocclass: &windows_core::BSTR, strresultclass: &windows_core::BSTR, strresultrole: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: &windows_core::BSTR, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P10) -> windows_core::Result where P10: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociatorsOf)( - windows_core::Interface::as_raw(self), - core::mem::transmute_copy(strobjectpath), - core::mem::transmute_copy(strassocclass), - core::mem::transmute_copy(strresultclass), - core::mem::transmute_copy(strresultrole), - core::mem::transmute_copy(strrole), - core::mem::transmute(bclassesonly), - core::mem::transmute(bschemaonly), - core::mem::transmute_copy(strrequiredassocqualifier), - core::mem::transmute_copy(strrequiredqualifier), - core::mem::transmute(iflags), - objwbemnamedvalueset.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AssociatorsOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strassocclass), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strresultrole), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredassocqualifier), core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AssociatorsOfAsync(&self, objwbemsink: P0, strobjectpath: &windows_core::BSTR, strassocclass: &windows_core::BSTR, strresultclass: &windows_core::BSTR, strresultrole: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: &windows_core::BSTR, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P11, objwbemasynccontext: P12) -> windows_core::Result<()> where @@ -3823,30 +3793,14 @@ impl ISWbemServices { P11: windows_core::Param, P12: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociatorsOfAsync)( - windows_core::Interface::as_raw(self), - objwbemsink.param().abi(), - core::mem::transmute_copy(strobjectpath), - core::mem::transmute_copy(strassocclass), - core::mem::transmute_copy(strresultclass), - core::mem::transmute_copy(strresultrole), - core::mem::transmute_copy(strrole), - core::mem::transmute(bclassesonly), - core::mem::transmute(bschemaonly), - core::mem::transmute_copy(strrequiredassocqualifier), - core::mem::transmute_copy(strrequiredqualifier), - core::mem::transmute(iflags), - objwbemnamedvalueset.param().abi(), - objwbemasynccontext.param().abi(), - ) - .ok() + (windows_core::Interface::vtable(self).AssociatorsOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strassocclass), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strresultrole), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredassocqualifier), core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn ReferencesTo(&self, strobjectpath: &windows_core::BSTR, strresultclass: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P7) -> windows_core::Result where P7: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReferencesTo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), core::mem::transmute(bclassesonly), core::mem::transmute(bschemaonly), core::mem::transmute_copy(strrequiredqualifier), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReferencesTo)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReferencesToAsync(&self, objwbemsink: P0, strobjectpath: &windows_core::BSTR, strresultclass: &windows_core::BSTR, strrole: &windows_core::BSTR, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P8, objwbemasynccontext: P9) -> windows_core::Result<()> where @@ -3854,14 +3808,14 @@ impl ISWbemServices { P8: windows_core::Param, P9: windows_core::Param, { - (windows_core::Interface::vtable(self).ReferencesToAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), core::mem::transmute(bclassesonly), core::mem::transmute(bschemaonly), core::mem::transmute_copy(strrequiredqualifier), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ReferencesToAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strresultclass), core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn ExecNotificationQuery(&self, strquery: &windows_core::BSTR, strquerylanguage: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecNotificationQueryAsync(&self, objwbemsink: P0, strquery: &windows_core::BSTR, strquerylanguage: &windows_core::BSTR, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> windows_core::Result<()> where @@ -3869,7 +3823,7 @@ impl ISWbemServices { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strquery), core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn ExecMethod(&self, strobjectpath: &windows_core::BSTR, strmethodname: &windows_core::BSTR, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P4) -> windows_core::Result where @@ -3877,7 +3831,7 @@ impl ISWbemServices { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecMethodAsync(&self, objwbemsink: P0, strobjectpath: &windows_core::BSTR, strmethodname: &windows_core::BSTR, objwbeminparameters: P3, iflags: i32, objwbemnamedvalueset: P5, objwbemasynccontext: P6) -> windows_core::Result<()> where @@ -3886,7 +3840,7 @@ impl ISWbemServices { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } pub unsafe fn Security_(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4136,7 +4090,7 @@ impl ISWbemServicesEx { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), objwbemobject.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), objwbemobject.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutAsync(&self, objwbemsink: P0, objwbemobject: P1, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where @@ -4145,7 +4099,7 @@ impl ISWbemServicesEx { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), objwbemobject.param().abi(), core::mem::transmute(iflags), objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() + (windows_core::Interface::vtable(self).PutAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), objwbemobject.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4418,13 +4372,13 @@ impl IWbemBackupRestore { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), strbackuptofile.param().abi(), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), strbackuptofile.param().abi(), lflags).ok() } pub unsafe fn Restore(&self, strrestorefromfile: P0, lflags: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), strrestorefromfile.param().abi(), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), strrestorefromfile.param().abi(), lflags).ok() } } #[repr(C)] @@ -4502,19 +4456,19 @@ windows_core::imp::interface_hierarchy!(IWbemCallResult, windows_core::IUnknown) impl IWbemCallResult { pub unsafe fn GetResultObject(&self, ltimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResultObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResultObject)(windows_core::Interface::as_raw(self), ltimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetResultString(&self, ltimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResultString)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetResultString)(windows_core::Interface::as_raw(self), ltimeout, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetResultServices(&self, ltimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResultServices)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResultServices)(windows_core::Interface::as_raw(self), ltimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCallStatus(&self, ltimeout: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCallStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(ltimeout), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCallStatus)(windows_core::Interface::as_raw(self), ltimeout, &mut result__).map(|| result__) } } #[repr(C)] @@ -4598,14 +4552,14 @@ impl IWbemClassObject { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), core::mem::transmute(pval), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(plflavor.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(pval), core::mem::transmute(ptype.unwrap_or(core::mem::zeroed())), core::mem::transmute(plflavor.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Put(&self, wszname: P0, lflags: i32, pval: *const super::Variant::VARIANT, r#type: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), core::mem::transmute(pval), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(pval), r#type).ok() } pub unsafe fn Delete(&self, wszname: P0) -> windows_core::Result<()> where @@ -4619,14 +4573,14 @@ impl IWbemClassObject { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), wszqualifiername.param().abi(), core::mem::transmute(lflags), core::mem::transmute(pqualifierval), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), wszqualifiername.param().abi(), lflags, core::mem::transmute(pqualifierval), &mut result__).map(|| result__) } pub unsafe fn BeginEnumeration(&self, lenumflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(lenumflags)).ok() + (windows_core::Interface::vtable(self).BeginEnumeration)(windows_core::Interface::as_raw(self), lenumflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Next(&self, lflags: i32, strname: *mut windows_core::BSTR, pval: *mut super::Variant::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(strname), core::mem::transmute(pval), core::mem::transmute(ptype), core::mem::transmute(plflavor)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute(strname), core::mem::transmute(pval), core::mem::transmute(ptype), core::mem::transmute(plflavor)).ok() } pub unsafe fn EndEnumeration(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndEnumeration)(windows_core::Interface::as_raw(self)).ok() @@ -4644,21 +4598,21 @@ impl IWbemClassObject { } pub unsafe fn GetObjectText(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectText)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetObjectText)(windows_core::Interface::as_raw(self), lflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SpawnDerivedClass(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpawnDerivedClass)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SpawnDerivedClass)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SpawnInstance(&self, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SpawnInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SpawnInstance)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CompareTo(&self, lflags: WBEM_COMPARISON_FLAG, pcompareto: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareTo)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pcompareto.param().abi()).ok() + (windows_core::Interface::vtable(self).CompareTo)(windows_core::Interface::as_raw(self), lflags, pcompareto.param().abi()).ok() } pub unsafe fn GetPropertyOrigin(&self, wszname: P0) -> windows_core::Result where @@ -4677,7 +4631,7 @@ impl IWbemClassObject { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMethod)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), core::mem::transmute(ppinsignature), core::mem::transmute(ppoutsignature)).ok() + (windows_core::Interface::vtable(self).GetMethod)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(ppinsignature), core::mem::transmute(ppoutsignature)).ok() } pub unsafe fn PutMethod(&self, wszname: P0, lflags: i32, pinsignature: P2, poutsignature: P3) -> windows_core::Result<()> where @@ -4685,7 +4639,7 @@ impl IWbemClassObject { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PutMethod)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), pinsignature.param().abi(), poutsignature.param().abi()).ok() + (windows_core::Interface::vtable(self).PutMethod)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, pinsignature.param().abi(), poutsignature.param().abi()).ok() } pub unsafe fn DeleteMethod(&self, wszname: P0) -> windows_core::Result<()> where @@ -4694,10 +4648,10 @@ impl IWbemClassObject { (windows_core::Interface::vtable(self).DeleteMethod)(windows_core::Interface::as_raw(self), wszname.param().abi()).ok() } pub unsafe fn BeginMethodEnumeration(&self, lenumflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginMethodEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(lenumflags)).ok() + (windows_core::Interface::vtable(self).BeginMethodEnumeration)(windows_core::Interface::as_raw(self), lenumflags).ok() } pub unsafe fn NextMethod(&self, lflags: i32, pstrname: *mut windows_core::BSTR, ppinsignature: *mut Option, ppoutsignature: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NextMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pstrname), core::mem::transmute(ppinsignature), core::mem::transmute(ppoutsignature)).ok() + (windows_core::Interface::vtable(self).NextMethod)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute(pstrname), core::mem::transmute(ppinsignature), core::mem::transmute(ppoutsignature)).ok() } pub unsafe fn EndMethodEnumeration(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndMethodEnumeration)(windows_core::Interface::as_raw(self)).ok() @@ -4986,20 +4940,20 @@ impl IWbemClientConnectionTransport { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(straddresstype), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), core::mem::transmute_copy(strobject), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), core::mem::transmute(lflags), pctx.param().abi(), &T::IID, &mut result__, core::mem::transmute(pcallres)).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(straddresstype), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), core::mem::transmute_copy(strobject), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), lflags, pctx.param().abi(), &T::IID, &mut result__, core::mem::transmute(pcallres)).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenAsync(&self, straddresstype: &windows_core::BSTR, abbinaryaddress: &[u8], strobject: &windows_core::BSTR, struser: &windows_core::BSTR, strpassword: &windows_core::BSTR, strlocale: &windows_core::BSTR, lflags: i32, pctx: P8, riid: *const windows_core::GUID, presponsehandler: P10) -> windows_core::Result<()> where P8: windows_core::Param, P10: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(straddresstype), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), core::mem::transmute_copy(strobject), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(riid), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).OpenAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(straddresstype), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), core::mem::transmute_copy(strobject), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), lflags, pctx.param().abi(), riid, presponsehandler.param().abi()).ok() } pub unsafe fn Cancel(&self, lflags: i32, phandler: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), phandler.param().abi()).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), lflags, phandler.param().abi()).ok() } } #[repr(C)] @@ -5048,7 +5002,7 @@ impl IWbemClientTransport { P9: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(straddresstype), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), core::mem::transmute_copy(strnetworkresource), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), core::mem::transmute(lsecurityflags), core::mem::transmute_copy(strauthority), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(straddresstype), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), core::mem::transmute_copy(strnetworkresource), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), lsecurityflags, core::mem::transmute_copy(strauthority), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5087,7 +5041,7 @@ impl IWbemConfigureRefresher { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddObjectByPath)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszpath.param().abi(), core::mem::transmute(lflags), pcontext.param().abi(), core::mem::transmute(pprefreshable), core::mem::transmute(plid)).ok() + (windows_core::Interface::vtable(self).AddObjectByPath)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszpath.param().abi(), lflags, pcontext.param().abi(), core::mem::transmute(pprefreshable), core::mem::transmute(plid)).ok() } pub unsafe fn AddObjectByTemplate(&self, pnamespace: P0, ptemplate: P1, lflags: i32, pcontext: P3, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()> where @@ -5095,16 +5049,16 @@ impl IWbemConfigureRefresher { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddObjectByTemplate)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), ptemplate.param().abi(), core::mem::transmute(lflags), pcontext.param().abi(), core::mem::transmute(pprefreshable), core::mem::transmute(plid)).ok() + (windows_core::Interface::vtable(self).AddObjectByTemplate)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), ptemplate.param().abi(), lflags, pcontext.param().abi(), core::mem::transmute(pprefreshable), core::mem::transmute(plid)).ok() } pub unsafe fn AddRefresher(&self, prefresher: P0, lflags: i32, plid: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRefresher)(windows_core::Interface::as_raw(self), prefresher.param().abi(), core::mem::transmute(lflags), core::mem::transmute(plid)).ok() + (windows_core::Interface::vtable(self).AddRefresher)(windows_core::Interface::as_raw(self), prefresher.param().abi(), lflags, core::mem::transmute(plid)).ok() } pub unsafe fn Remove(&self, lid: i32, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(lid), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lid, lflags).ok() } pub unsafe fn AddEnum(&self, pnamespace: P0, wszclassname: P1, lflags: i32, pcontext: P3, ppenum: *mut Option, plid: *mut i32) -> windows_core::Result<()> where @@ -5112,7 +5066,7 @@ impl IWbemConfigureRefresher { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEnum)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszclassname.param().abi(), core::mem::transmute(lflags), pcontext.param().abi(), core::mem::transmute(ppenum), core::mem::transmute(plid)).ok() + (windows_core::Interface::vtable(self).AddEnum)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszclassname.param().abi(), lflags, pcontext.param().abi(), core::mem::transmute(ppenum), core::mem::transmute(plid)).ok() } } #[repr(C)] @@ -5178,7 +5132,7 @@ impl IWbemConnectorLogin { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ConnectorLogin)(windows_core::Interface::as_raw(self), wsznetworkresource.param().abi(), wszpreferredlocale.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectorLogin)(windows_core::Interface::as_raw(self), wsznetworkresource.param().abi(), wszpreferredlocale.param().abi(), lflags, pctx.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5206,19 +5160,19 @@ windows_core::imp::define_interface!(IWbemConstructClassObject, IWbemConstructCl windows_core::imp::interface_hierarchy!(IWbemConstructClassObject, windows_core::IUnknown); impl IWbemConstructClassObject { pub unsafe fn SetInheritanceChain(&self, lnumantecedents: i32, awszantecedents: *const windows_core::PCWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInheritanceChain)(windows_core::Interface::as_raw(self), core::mem::transmute(lnumantecedents), core::mem::transmute(awszantecedents)).ok() + (windows_core::Interface::vtable(self).SetInheritanceChain)(windows_core::Interface::as_raw(self), lnumantecedents, awszantecedents).ok() } pub unsafe fn SetPropertyOrigin(&self, wszpropertyname: P0, loriginindex: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyOrigin)(windows_core::Interface::as_raw(self), wszpropertyname.param().abi(), core::mem::transmute(loriginindex)).ok() + (windows_core::Interface::vtable(self).SetPropertyOrigin)(windows_core::Interface::as_raw(self), wszpropertyname.param().abi(), loriginindex).ok() } pub unsafe fn SetMethodOrigin(&self, wszmethodname: P0, loriginindex: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.param().abi(), core::mem::transmute(loriginindex)).ok() + (windows_core::Interface::vtable(self).SetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.param().abi(), loriginindex).ok() } pub unsafe fn SetServerNamespace(&self, wszserver: P0, wsznamespace: P1) -> windows_core::Result<()> where @@ -5283,14 +5237,14 @@ impl IWbemContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNames(&self, lflags: i32) -> windows_core::Result<*mut super::Com::SAFEARRAY> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), lflags, &mut result__).map(|| result__) } pub unsafe fn BeginEnumeration(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).BeginEnumeration)(windows_core::Interface::as_raw(self), lflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Next(&self, lflags: i32, pstrname: *mut windows_core::BSTR, pvalue: *mut super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pstrname), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute(pstrname), core::mem::transmute(pvalue)).ok() } pub unsafe fn EndEnumeration(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndEnumeration)(windows_core::Interface::as_raw(self)).ok() @@ -5300,7 +5254,7 @@ impl IWbemContext { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(pvalue)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, wszname: P0, lflags: i32) -> windows_core::Result @@ -5308,13 +5262,13 @@ impl IWbemContext { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn DeleteValue(&self, wszname: P0, lflags: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags).ok() } pub unsafe fn DeleteAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAll)(windows_core::Interface::as_raw(self)).ok() @@ -5447,14 +5401,14 @@ impl IWbemDecoupledBasicEventProvider { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), core::mem::transmute(a_flags), a_context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), a_flags, a_context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetService(&self, a_flags: i32, a_context: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), core::mem::transmute(a_flags), a_context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), a_flags, a_context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5512,7 +5466,7 @@ impl IWbemDecoupledRegistrar { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), core::mem::transmute(a_flags), a_context.param().abi(), a_user.param().abi(), a_locale.param().abi(), a_scope.param().abi(), a_registration.param().abi(), piunknown.param().abi()).ok() + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), a_flags, a_context.param().abi(), a_user.param().abi(), a_locale.param().abi(), a_scope.param().abi(), a_registration.param().abi(), piunknown.param().abi()).ok() } pub unsafe fn UnRegister(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnRegister)(windows_core::Interface::as_raw(self)).ok() @@ -5594,7 +5548,7 @@ impl IWbemEventProvider { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProvideEvents)(windows_core::Interface::as_raw(self), psink.param().abi(), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).ProvideEvents)(windows_core::Interface::as_raw(self), psink.param().abi(), lflags).ok() } } #[repr(C)] @@ -5622,10 +5576,10 @@ windows_core::imp::define_interface!(IWbemEventProviderQuerySink, IWbemEventProv windows_core::imp::interface_hierarchy!(IWbemEventProviderQuerySink, windows_core::IUnknown); impl IWbemEventProviderQuerySink { pub unsafe fn NewQuery(&self, dwid: u32, wszquerylanguage: *const u16, wszquery: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NewQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid), core::mem::transmute(wszquerylanguage), core::mem::transmute(wszquery)).ok() + (windows_core::Interface::vtable(self).NewQuery)(windows_core::Interface::as_raw(self), dwid, wszquerylanguage, wszquery).ok() } pub unsafe fn CancelQuery(&self, dwid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CancelQuery)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid)).ok() + (windows_core::Interface::vtable(self).CancelQuery)(windows_core::Interface::as_raw(self), dwid).ok() } } #[repr(C)] @@ -5663,7 +5617,7 @@ windows_core::imp::define_interface!(IWbemEventProviderSecurity, IWbemEventProvi windows_core::imp::interface_hierarchy!(IWbemEventProviderSecurity, windows_core::IUnknown); impl IWbemEventProviderSecurity { pub unsafe fn AccessCheck(&self, wszquerylanguage: *const u16, wszquery: *const u16, psid: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AccessCheck)(windows_core::Interface::as_raw(self), core::mem::transmute(wszquerylanguage), core::mem::transmute(wszquery), psid.len().try_into().unwrap(), core::mem::transmute(psid.as_ptr())).ok() + (windows_core::Interface::vtable(self).AccessCheck)(windows_core::Interface::as_raw(self), wszquerylanguage, wszquery, psid.len().try_into().unwrap(), core::mem::transmute(psid.as_ptr())).ok() } } #[repr(C)] @@ -5710,7 +5664,7 @@ impl IWbemEventSink { (windows_core::Interface::vtable(self).GetRestrictedSink)(windows_core::Interface::as_raw(self), awszqueries.len().try_into().unwrap(), core::mem::transmute(awszqueries.as_ptr()), pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBatchingParameters(&self, lflags: i32, dwmaxbuffersize: u32, dwmaxsendlatency: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBatchingParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(dwmaxbuffersize), core::mem::transmute(dwmaxsendlatency)).ok() + (windows_core::Interface::vtable(self).SetBatchingParameters)(windows_core::Interface::as_raw(self), lflags, dwmaxbuffersize, dwmaxsendlatency).ok() } } #[repr(C)] @@ -5768,16 +5722,16 @@ windows_core::imp::define_interface!(IWbemHiPerfEnum, IWbemHiPerfEnum_Vtbl, 0x27 windows_core::imp::interface_hierarchy!(IWbemHiPerfEnum, windows_core::IUnknown); impl IWbemHiPerfEnum { pub unsafe fn AddObjects(&self, lflags: i32, unumobjects: u32, apids: *const i32, apobj: *const Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(unumobjects), core::mem::transmute(apids), core::mem::transmute(apobj)).ok() + (windows_core::Interface::vtable(self).AddObjects)(windows_core::Interface::as_raw(self), lflags, unumobjects, apids, core::mem::transmute(apobj)).ok() } pub unsafe fn RemoveObjects(&self, lflags: i32, apids: &[i32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), apids.len().try_into().unwrap(), core::mem::transmute(apids.as_ptr())).ok() + (windows_core::Interface::vtable(self).RemoveObjects)(windows_core::Interface::as_raw(self), lflags, apids.len().try_into().unwrap(), core::mem::transmute(apids.as_ptr())).ok() } pub unsafe fn GetObjects(&self, lflags: i32, apobj: &mut [Option], pureturned: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), apobj.len().try_into().unwrap(), core::mem::transmute(apobj.as_ptr()), core::mem::transmute(pureturned)).ok() + (windows_core::Interface::vtable(self).GetObjects)(windows_core::Interface::as_raw(self), lflags, apobj.len().try_into().unwrap(), core::mem::transmute(apobj.as_ptr()), core::mem::transmute(pureturned)).ok() } pub unsafe fn RemoveAll(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self), lflags).ok() } } #[repr(C)] @@ -5835,14 +5789,14 @@ impl IWbemHiPerfProvider { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInstances)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszclass.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), psink.param().abi()).ok() + (windows_core::Interface::vtable(self).QueryInstances)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszclass.param().abi(), lflags, pctx.param().abi(), psink.param().abi()).ok() } pub unsafe fn CreateRefresher(&self, pnamespace: P0, lflags: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRefresher)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRefresher)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateRefreshableObject(&self, pnamespace: P0, ptemplate: P1, prefresher: P2, lflags: i32, pcontext: P4, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()> where @@ -5851,13 +5805,13 @@ impl IWbemHiPerfProvider { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRefreshableObject)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), ptemplate.param().abi(), prefresher.param().abi(), core::mem::transmute(lflags), pcontext.param().abi(), core::mem::transmute(pprefreshable), core::mem::transmute(plid)).ok() + (windows_core::Interface::vtable(self).CreateRefreshableObject)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), ptemplate.param().abi(), prefresher.param().abi(), lflags, pcontext.param().abi(), core::mem::transmute(pprefreshable), core::mem::transmute(plid)).ok() } pub unsafe fn StopRefreshing(&self, prefresher: P0, lid: i32, lflags: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopRefreshing)(windows_core::Interface::as_raw(self), prefresher.param().abi(), core::mem::transmute(lid), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).StopRefreshing)(windows_core::Interface::as_raw(self), prefresher.param().abi(), lid, lflags).ok() } pub unsafe fn CreateRefreshableEnum(&self, pnamespace: P0, wszclass: P1, prefresher: P2, lflags: i32, pcontext: P4, phiperfenum: P5) -> windows_core::Result where @@ -5868,14 +5822,14 @@ impl IWbemHiPerfProvider { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRefreshableEnum)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszclass.param().abi(), prefresher.param().abi(), core::mem::transmute(lflags), pcontext.param().abi(), phiperfenum.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateRefreshableEnum)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), wszclass.param().abi(), prefresher.param().abi(), lflags, pcontext.param().abi(), phiperfenum.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetObjects(&self, pnamespace: P0, apobj: &mut [Option], lflags: i32, pcontext: P4) -> windows_core::Result<()> where P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjects)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), apobj.len().try_into().unwrap(), core::mem::transmute(apobj.as_ptr()), core::mem::transmute(lflags), pcontext.param().abi()).ok() + (windows_core::Interface::vtable(self).GetObjects)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), apobj.len().try_into().unwrap(), core::mem::transmute(apobj.as_ptr()), lflags, pcontext.param().abi()).ok() } } #[repr(C)] @@ -5957,7 +5911,7 @@ impl IWbemLevel1Login { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EstablishPosition)(windows_core::Interface::as_raw(self), wszlocalelist.param().abi(), core::mem::transmute(dwnumlocales), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EstablishPosition)(windows_core::Interface::as_raw(self), wszlocalelist.param().abi(), dwnumlocales, &mut result__).map(|| result__) } pub unsafe fn RequestChallenge(&self, wsznetworkresource: P0, wszuser: P1) -> windows_core::Result where @@ -5973,7 +5927,7 @@ impl IWbemLevel1Login { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WBEMLogin)(windows_core::Interface::as_raw(self), wszpreferredlocale.param().abi(), core::mem::transmute(accesstoken), core::mem::transmute(lflags), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).WBEMLogin)(windows_core::Interface::as_raw(self), wszpreferredlocale.param().abi(), accesstoken, lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NTLMLogin(&self, wsznetworkresource: P0, wszpreferredlocale: P1, lflags: i32, pctx: P3) -> windows_core::Result where @@ -5982,7 +5936,7 @@ impl IWbemLevel1Login { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NTLMLogin)(windows_core::Interface::as_raw(self), wsznetworkresource.param().abi(), wszpreferredlocale.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NTLMLogin)(windows_core::Interface::as_raw(self), wsznetworkresource.param().abi(), wszpreferredlocale.param().abi(), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6062,7 +6016,7 @@ impl IWbemLocator { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strnetworkresource), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), core::mem::transmute(lsecurityflags), core::mem::transmute_copy(strauthority), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strnetworkresource), core::mem::transmute_copy(struser), core::mem::transmute_copy(strpassword), core::mem::transmute_copy(strlocale), lsecurityflags, core::mem::transmute_copy(strauthority), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6108,33 +6062,33 @@ impl IWbemObjectAccess { (windows_core::Interface::vtable(self).GetPropertyHandle)(windows_core::Interface::as_raw(self), wszpropertyname.param().abi(), core::mem::transmute(ptype), core::mem::transmute(plhandle)).ok() } pub unsafe fn WritePropertyValue(&self, lhandle: i32, adata: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WritePropertyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), adata.len().try_into().unwrap(), core::mem::transmute(adata.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePropertyValue)(windows_core::Interface::as_raw(self), lhandle, adata.len().try_into().unwrap(), core::mem::transmute(adata.as_ptr())).ok() } pub unsafe fn ReadPropertyValue(&self, lhandle: i32, plnumbytes: *mut i32, adata: &mut [u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadPropertyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), adata.len().try_into().unwrap(), core::mem::transmute(plnumbytes), core::mem::transmute(adata.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReadPropertyValue)(windows_core::Interface::as_raw(self), lhandle, adata.len().try_into().unwrap(), core::mem::transmute(plnumbytes), core::mem::transmute(adata.as_ptr())).ok() } pub unsafe fn ReadDWORD(&self, lhandle: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadDWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadDWORD)(windows_core::Interface::as_raw(self), lhandle, &mut result__).map(|| result__) } pub unsafe fn WriteDWORD(&self, lhandle: i32, dw: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteDWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), core::mem::transmute(dw)).ok() + (windows_core::Interface::vtable(self).WriteDWORD)(windows_core::Interface::as_raw(self), lhandle, dw).ok() } pub unsafe fn ReadQWORD(&self, lhandle: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadQWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReadQWORD)(windows_core::Interface::as_raw(self), lhandle, &mut result__).map(|| result__) } pub unsafe fn WriteQWORD(&self, lhandle: i32, pw: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteQWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), core::mem::transmute(pw)).ok() + (windows_core::Interface::vtable(self).WriteQWORD)(windows_core::Interface::as_raw(self), lhandle, pw).ok() } pub unsafe fn GetPropertyInfoByHandle(&self, lhandle: i32, pstrname: *mut windows_core::BSTR, ptype: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyInfoByHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(lhandle), core::mem::transmute(pstrname), core::mem::transmute(ptype)).ok() + (windows_core::Interface::vtable(self).GetPropertyInfoByHandle)(windows_core::Interface::as_raw(self), lhandle, core::mem::transmute(pstrname), core::mem::transmute(ptype)).ok() } pub unsafe fn Lock(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn Unlock(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), lflags).ok() } } #[repr(C)] @@ -6249,7 +6203,7 @@ impl IWbemObjectSink { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(hresult), core::mem::transmute_copy(strparam), pobjparam.param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, core::mem::transmute_copy(strparam), pobjparam.param().abi()).ok() } } #[repr(C)] @@ -6289,7 +6243,7 @@ impl core::ops::Deref for IWbemObjectSinkEx { windows_core::imp::interface_hierarchy!(IWbemObjectSinkEx, windows_core::IUnknown, IWbemObjectSink); impl IWbemObjectSinkEx { pub unsafe fn WriteMessage(&self, uchannel: u32, strmessage: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(uchannel), core::mem::transmute_copy(strmessage)).ok() + (windows_core::Interface::vtable(self).WriteMessage)(windows_core::Interface::as_raw(self), uchannel, core::mem::transmute_copy(strmessage)).ok() } pub unsafe fn WriteError(&self, pobjerror: P0) -> windows_core::Result where @@ -6300,14 +6254,14 @@ impl IWbemObjectSinkEx { } pub unsafe fn PromptUser(&self, strmessage: &windows_core::BSTR, uprompttype: u8) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PromptUser)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strmessage), core::mem::transmute(uprompttype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PromptUser)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strmessage), uprompttype, &mut result__).map(|| result__) } pub unsafe fn WriteProgress(&self, stractivity: &windows_core::BSTR, strcurrentoperation: &windows_core::BSTR, strstatusdescription: &windows_core::BSTR, upercentcomplete: u32, usecondsremaining: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteProgress)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(stractivity), core::mem::transmute_copy(strcurrentoperation), core::mem::transmute_copy(strstatusdescription), core::mem::transmute(upercentcomplete), core::mem::transmute(usecondsremaining)).ok() + (windows_core::Interface::vtable(self).WriteProgress)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(stractivity), core::mem::transmute_copy(strcurrentoperation), core::mem::transmute_copy(strstatusdescription), upercentcomplete, usecondsremaining).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn WriteStreamParameter(&self, strname: &windows_core::BSTR, vtvalue: *const super::Variant::VARIANT, ultype: u32, ulflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteStreamParameter)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(vtvalue), core::mem::transmute(ultype), core::mem::transmute(ulflags)).ok() + (windows_core::Interface::vtable(self).WriteStreamParameter)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strname), core::mem::transmute(vtvalue), ultype, ulflags).ok() } } #[repr(C)] @@ -6389,14 +6343,14 @@ impl IWbemObjectTextSrc { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pobj.param().abi(), core::mem::transmute(uobjtextformat), pctx.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), lflags, pobj.param().abi(), uobjtextformat, pctx.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn CreateFromText(&self, lflags: i32, strtext: &windows_core::BSTR, uobjtextformat: u32, pctx: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFromText)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(strtext), core::mem::transmute(uobjtextformat), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromText)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(strtext), uobjtextformat, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6449,14 +6403,14 @@ impl IWbemPath { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(umode), pszpath.param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), umode, pszpath.param().abi()).ok() } pub unsafe fn GetText(&self, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pubufflength), core::mem::transmute(psztext)).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute(pubufflength), core::mem::transmute(psztext)).ok() } pub unsafe fn GetInfo(&self, urequestedinfo: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(urequestedinfo), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), urequestedinfo, &mut result__).map(|| result__) } pub unsafe fn SetServer(&self, name: P0) -> windows_core::Result<()> where @@ -6475,13 +6429,13 @@ impl IWbemPath { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamespaceAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), pszname.param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamespaceAt)(windows_core::Interface::as_raw(self), uindex, pszname.param().abi()).ok() } pub unsafe fn GetNamespaceAt(&self, uindex: u32, punamebuflength: *mut u32, pname: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetNamespaceAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), core::mem::transmute(punamebuflength), core::mem::transmute(pname)).ok() + (windows_core::Interface::vtable(self).GetNamespaceAt)(windows_core::Interface::as_raw(self), uindex, core::mem::transmute(punamebuflength), core::mem::transmute(pname)).ok() } pub unsafe fn RemoveNamespaceAt(&self, uindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveNamespaceAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex)).ok() + (windows_core::Interface::vtable(self).RemoveNamespaceAt)(windows_core::Interface::as_raw(self), uindex).ok() } pub unsafe fn RemoveAllNamespaces(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllNamespaces)(windows_core::Interface::as_raw(self)).ok() @@ -6494,22 +6448,22 @@ impl IWbemPath { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), pszclass.param().abi()).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), uindex, pszclass.param().abi()).ok() } pub unsafe fn SetScopeFromText(&self, uindex: u32, psztext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScopeFromText)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), psztext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetScopeFromText)(windows_core::Interface::as_raw(self), uindex, psztext.param().abi()).ok() } pub unsafe fn GetScope(&self, uindex: u32, puclassnamebufsize: *mut u32, pszclass: windows_core::PWSTR, pkeylist: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), core::mem::transmute(puclassnamebufsize), core::mem::transmute(pszclass), core::mem::transmute(pkeylist)).ok() + (windows_core::Interface::vtable(self).GetScope)(windows_core::Interface::as_raw(self), uindex, core::mem::transmute(puclassnamebufsize), core::mem::transmute(pszclass), core::mem::transmute(pkeylist)).ok() } pub unsafe fn GetScopeAsText(&self, uindex: u32, putextbufsize: *mut u32, psztext: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScopeAsText)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), core::mem::transmute(putextbufsize), core::mem::transmute(psztext)).ok() + (windows_core::Interface::vtable(self).GetScopeAsText)(windows_core::Interface::as_raw(self), uindex, core::mem::transmute(putextbufsize), core::mem::transmute(psztext)).ok() } pub unsafe fn RemoveScope(&self, uindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveScope)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex)).ok() + (windows_core::Interface::vtable(self).RemoveScope)(windows_core::Interface::as_raw(self), uindex).ok() } pub unsafe fn RemoveAllScopes(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllScopes)(windows_core::Interface::as_raw(self)).ok() @@ -6531,10 +6485,10 @@ impl IWbemPath { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClassPart)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), name.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClassPart)(windows_core::Interface::as_raw(self), lflags, name.param().abi()).ok() } pub unsafe fn DeleteClassPart(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteClassPart)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).DeleteClassPart)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn IsRelative(&self, wszmachine: P0, wsznamespace: P1) -> super::super::Foundation::BOOL where @@ -6548,7 +6502,7 @@ impl IWbemPath { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRelativeOrChild)(windows_core::Interface::as_raw(self), wszmachine.param().abi(), wsznamespace.param().abi(), core::mem::transmute(lflags)) + (windows_core::Interface::vtable(self).IsRelativeOrChild)(windows_core::Interface::as_raw(self), wszmachine.param().abi(), wsznamespace.param().abi(), lflags) } pub unsafe fn IsLocal(&self, wszmachine: P0) -> super::super::Foundation::BOOL where @@ -6797,40 +6751,40 @@ impl IWbemPathKeyList { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(uflags), core::mem::transmute(ucimtype), core::mem::transmute(pkeyval)).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), wszname.param().abi(), uflags, ucimtype, pkeyval).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetKey2(&self, wszname: P0, uflags: u32, ucimtype: u32, pkeyval: *const super::Variant::VARIANT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey2)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(uflags), core::mem::transmute(ucimtype), core::mem::transmute(pkeyval)).ok() + (windows_core::Interface::vtable(self).SetKey2)(windows_core::Interface::as_raw(self), wszname.param().abi(), uflags, ucimtype, core::mem::transmute(pkeyval)).ok() } pub unsafe fn GetKey(&self, ukeyix: u32, uflags: u32, punamebufsize: *mut u32, pszkeyname: Option, pukeyvalbufsize: *mut u32, pkeyval: *mut core::ffi::c_void, puapparentcimtype: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), core::mem::transmute(ukeyix), core::mem::transmute(uflags), core::mem::transmute(punamebufsize), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pukeyvalbufsize), core::mem::transmute(pkeyval), core::mem::transmute(puapparentcimtype)).ok() + (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), ukeyix, uflags, core::mem::transmute(punamebufsize), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pukeyvalbufsize), core::mem::transmute(pkeyval), core::mem::transmute(puapparentcimtype)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetKey2(&self, ukeyix: u32, uflags: u32, punamebufsize: *mut u32, pszkeyname: Option, pkeyvalue: *mut super::Variant::VARIANT, puapparentcimtype: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetKey2)(windows_core::Interface::as_raw(self), core::mem::transmute(ukeyix), core::mem::transmute(uflags), core::mem::transmute(punamebufsize), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pkeyvalue), core::mem::transmute(puapparentcimtype)).ok() + (windows_core::Interface::vtable(self).GetKey2)(windows_core::Interface::as_raw(self), ukeyix, uflags, core::mem::transmute(punamebufsize), core::mem::transmute(pszkeyname.unwrap_or(core::mem::zeroed())), core::mem::transmute(pkeyvalue), core::mem::transmute(puapparentcimtype)).ok() } pub unsafe fn RemoveKey(&self, wszname: P0, uflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveKey)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).RemoveKey)(windows_core::Interface::as_raw(self), wszname.param().abi(), uflags).ok() } pub unsafe fn RemoveAllKeys(&self, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAllKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).RemoveAllKeys)(windows_core::Interface::as_raw(self), uflags).ok() } pub unsafe fn MakeSingleton(&self, bset: u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MakeSingleton)(windows_core::Interface::as_raw(self), core::mem::transmute(bset)).ok() + (windows_core::Interface::vtable(self).MakeSingleton)(windows_core::Interface::as_raw(self), bset).ok() } pub unsafe fn GetInfo(&self, urequestedinfo: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(urequestedinfo), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), urequestedinfo, &mut result__).map(|| result__) } pub unsafe fn GetText(&self, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pubufflength), core::mem::transmute(psztext)).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute(pubufflength), core::mem::transmute(psztext)).ok() } } #[repr(C)] @@ -6947,11 +6901,11 @@ impl IWbemPropertyProvider { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, lflags: i32, strlocale: &windows_core::BSTR, strclassmapping: &windows_core::BSTR, strinstmapping: &windows_core::BSTR, strpropmapping: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(strlocale), core::mem::transmute_copy(strclassmapping), core::mem::transmute_copy(strinstmapping), core::mem::transmute_copy(strpropmapping), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(strlocale), core::mem::transmute_copy(strclassmapping), core::mem::transmute_copy(strinstmapping), core::mem::transmute_copy(strpropmapping), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PutProperty(&self, lflags: i32, strlocale: &windows_core::BSTR, strclassmapping: &windows_core::BSTR, strinstmapping: &windows_core::BSTR, strpropmapping: &windows_core::BSTR, pvvalue: *const super::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute_copy(strlocale), core::mem::transmute_copy(strclassmapping), core::mem::transmute_copy(strinstmapping), core::mem::transmute_copy(strpropmapping), core::mem::transmute(pvvalue)).ok() + (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(strlocale), core::mem::transmute_copy(strclassmapping), core::mem::transmute_copy(strinstmapping), core::mem::transmute_copy(strpropmapping), core::mem::transmute(pvvalue)).ok() } } #[repr(C)] @@ -7007,7 +6961,7 @@ impl IWbemProviderIdentity { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRegistrationObject)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), pprovreg.param().abi()).ok() + (windows_core::Interface::vtable(self).SetRegistrationObject)(windows_core::Interface::as_raw(self), lflags, pprovreg.param().abi()).ok() } } #[repr(C)] @@ -7043,7 +6997,7 @@ impl IWbemProviderInit { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), wszuser.param().abi(), core::mem::transmute(lflags), wsznamespace.param().abi(), wszlocale.param().abi(), pnamespace.param().abi(), pctx.param().abi(), pinitsink.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), wszuser.param().abi(), lflags, wsznamespace.param().abi(), wszlocale.param().abi(), pnamespace.param().abi(), pctx.param().abi(), pinitsink.param().abi()).ok() } } #[repr(C)] @@ -7071,7 +7025,7 @@ windows_core::imp::define_interface!(IWbemProviderInitSink, IWbemProviderInitSin windows_core::imp::interface_hierarchy!(IWbemProviderInitSink, windows_core::IUnknown); impl IWbemProviderInitSink { pub unsafe fn SetStatus(&self, lstatus: i32, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(lstatus), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), lstatus, lflags).ok() } } #[repr(C)] @@ -7103,14 +7057,14 @@ impl IWbemQualifierSet { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(lflags), core::mem::transmute(pval), core::mem::transmute(plflavor)).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(pval), core::mem::transmute(plflavor)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Put(&self, wszname: P0, pval: *const super::Variant::VARIANT, lflavor: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(pval), core::mem::transmute(lflavor)).ok() + (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(pval), lflavor).ok() } pub unsafe fn Delete(&self, wszname: P0) -> windows_core::Result<()> where @@ -7121,14 +7075,14 @@ impl IWbemQualifierSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNames(&self, lflags: i32) -> windows_core::Result<*mut super::Com::SAFEARRAY> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), lflags, &mut result__).map(|| result__) } pub unsafe fn BeginEnumeration(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginEnumeration)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).BeginEnumeration)(windows_core::Interface::as_raw(self), lflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Next(&self, lflags: i32, pstrname: *mut windows_core::BSTR, pval: *mut super::Variant::VARIANT, plflavor: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), core::mem::transmute(pstrname), core::mem::transmute(pval), core::mem::transmute(plflavor)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute(pstrname), core::mem::transmute(pval), core::mem::transmute(plflavor)).ok() } pub unsafe fn EndEnumeration(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndEnumeration)(windows_core::Interface::as_raw(self)).ok() @@ -7228,26 +7182,26 @@ impl IWbemQuery { (windows_core::Interface::vtable(self).Empty)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetLanguageFeatures(&self, uflags: u32, uarraysize: u32, pufeatures: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLanguageFeatures)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags), core::mem::transmute(uarraysize), core::mem::transmute(pufeatures)).ok() + (windows_core::Interface::vtable(self).SetLanguageFeatures)(windows_core::Interface::as_raw(self), uflags, uarraysize, pufeatures).ok() } pub unsafe fn TestLanguageFeatures(&self, uflags: u32, uarraysize: *mut u32, pufeatures: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TestLanguageFeatures)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags), core::mem::transmute(uarraysize), core::mem::transmute(pufeatures)).ok() + (windows_core::Interface::vtable(self).TestLanguageFeatures)(windows_core::Interface::as_raw(self), uflags, core::mem::transmute(uarraysize), core::mem::transmute(pufeatures)).ok() } pub unsafe fn Parse(&self, pszlang: P0, pszquery: P1, uflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Parse)(windows_core::Interface::as_raw(self), pszlang.param().abi(), pszquery.param().abi(), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).Parse)(windows_core::Interface::as_raw(self), pszlang.param().abi(), pszquery.param().abi(), uflags).ok() } pub unsafe fn GetAnalysis(&self, uanalysistype: u32, uflags: u32, panalysis: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAnalysis)(windows_core::Interface::as_raw(self), core::mem::transmute(uanalysistype), core::mem::transmute(uflags), core::mem::transmute(panalysis)).ok() + (windows_core::Interface::vtable(self).GetAnalysis)(windows_core::Interface::as_raw(self), uanalysistype, uflags, core::mem::transmute(panalysis)).ok() } pub unsafe fn FreeMemory(&self, pmem: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FreeMemory)(windows_core::Interface::as_raw(self), core::mem::transmute(pmem)).ok() + (windows_core::Interface::vtable(self).FreeMemory)(windows_core::Interface::as_raw(self), pmem).ok() } pub unsafe fn GetQueryInfo(&self, uanalysistype: u32, uinfoid: u32, ubufsize: u32, pdestbuf: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetQueryInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(uanalysistype), core::mem::transmute(uinfoid), core::mem::transmute(ubufsize), core::mem::transmute(pdestbuf)).ok() + (windows_core::Interface::vtable(self).GetQueryInfo)(windows_core::Interface::as_raw(self), uanalysistype, uinfoid, ubufsize, core::mem::transmute(pdestbuf)).ok() } } #[repr(C)] @@ -7320,7 +7274,7 @@ windows_core::imp::define_interface!(IWbemRefresher, IWbemRefresher_Vtbl, 0x4935 windows_core::imp::interface_hierarchy!(IWbemRefresher, windows_core::IUnknown); impl IWbemRefresher { pub unsafe fn Refresh(&self, lflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags)).ok() + (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), lflags).ok() } } #[repr(C)] @@ -7351,7 +7305,7 @@ impl IWbemServices { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenNamespace)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strnamespace), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(ppworkingnamespace.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OpenNamespace)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strnamespace), lflags, pctx.param().abi(), core::mem::transmute(ppworkingnamespace.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn CancelAsyncCall(&self, psink: P0) -> windows_core::Result<()> where @@ -7361,27 +7315,27 @@ impl IWbemServices { } pub unsafe fn QueryObjectSink(&self, lflags: WBEM_GENERIC_FLAG_TYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryObjectSink)(windows_core::Interface::as_raw(self), core::mem::transmute(lflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryObjectSink)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetObject(&self, strobjectpath: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, ppobject: Option<*mut Option>, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(ppobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), lflags, pctx.param().abi(), core::mem::transmute(ppobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetObjectAsync(&self, strobjectpath: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjectAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).GetObjectAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn PutClass(&self, pobject: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutClass)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).PutClass)(windows_core::Interface::as_raw(self), pobject.param().abi(), lflags, pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn PutClassAsync(&self, pobject: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where @@ -7389,41 +7343,41 @@ impl IWbemServices { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PutClassAsync)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).PutClassAsync)(windows_core::Interface::as_raw(self), pobject.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn DeleteClass(&self, strclass: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteClass)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strclass), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DeleteClass)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strclass), lflags, pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DeleteClassAsync(&self, strclass: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteClassAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strclass), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteClassAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strclass), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn CreateClassEnum(&self, strsuperclass: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateClassEnum)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strsuperclass), core::mem::transmute(lflags), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateClassEnum)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strsuperclass), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateClassEnumAsync(&self, strsuperclass: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClassEnumAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strsuperclass), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClassEnumAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strsuperclass), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn PutInstance(&self, pinst: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutInstance)(windows_core::Interface::as_raw(self), pinst.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).PutInstance)(windows_core::Interface::as_raw(self), pinst.param().abi(), lflags, pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn PutInstanceAsync(&self, pinst: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where @@ -7431,69 +7385,69 @@ impl IWbemServices { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PutInstanceAsync)(windows_core::Interface::as_raw(self), pinst.param().abi(), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).PutInstanceAsync)(windows_core::Interface::as_raw(self), pinst.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn DeleteInstance(&self, strobjectpath: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteInstance)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(lflags), pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).DeleteInstance)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), lflags, pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DeleteInstanceAsync(&self, strobjectpath: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteInstanceAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteInstanceAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn CreateInstanceEnum(&self, strfilter: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2) -> windows_core::Result where P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceEnum)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfilter), core::mem::transmute(lflags), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceEnum)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfilter), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstanceEnumAsync(&self, strfilter: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstanceEnumAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfilter), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).CreateInstanceEnumAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strfilter), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn ExecQuery(&self, strquerylanguage: &windows_core::BSTR, strquery: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), core::mem::transmute(lflags), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecQueryAsync(&self, strquerylanguage: &windows_core::BSTR, strquery: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P3, presponsehandler: P4) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn ExecNotificationQuery(&self, strquerylanguage: &windows_core::BSTR, strquery: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P3) -> windows_core::Result where P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), core::mem::transmute(lflags), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecNotificationQueryAsync(&self, strquerylanguage: &windows_core::BSTR, strquery: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P3, presponsehandler: P4) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), core::mem::transmute(lflags), pctx.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strquerylanguage), core::mem::transmute_copy(strquery), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn ExecMethod(&self, strobjectpath: &windows_core::BSTR, strmethodname: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P3, pinparams: P4, ppoutparams: Option<*mut Option>, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), core::mem::transmute(lflags), pctx.param().abi(), pinparams.param().abi(), core::mem::transmute(ppoutparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), lflags, pctx.param().abi(), pinparams.param().abi(), core::mem::transmute(ppoutparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppcallresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn ExecMethodAsync(&self, strobjectpath: &windows_core::BSTR, strmethodname: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P3, pinparams: P4, presponsehandler: P5) -> windows_core::Result<()> where @@ -7501,7 +7455,7 @@ impl IWbemServices { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), core::mem::transmute(lflags), pctx.param().abi(), pinparams.param().abi(), presponsehandler.param().abi()).ok() + (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(strobjectpath), core::mem::transmute_copy(strmethodname), lflags, pctx.param().abi(), pinparams.param().abi(), presponsehandler.param().abi()).ok() } } #[repr(C)] @@ -7719,7 +7673,7 @@ impl IWbemShutdown { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), core::mem::transmute(ureason), core::mem::transmute(umaxmilliseconds), pctx.param().abi()).ok() + (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), ureason, umaxmilliseconds, pctx.param().abi()).ok() } } #[repr(C)] @@ -7748,11 +7702,11 @@ windows_core::imp::interface_hierarchy!(IWbemStatusCodeText, windows_core::IUnkn impl IWbemStatusCodeText { pub unsafe fn GetErrorCodeText(&self, hres: windows_core::HRESULT, localeid: u32, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetErrorCodeText)(windows_core::Interface::as_raw(self), core::mem::transmute(hres), core::mem::transmute(localeid), core::mem::transmute(lflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetErrorCodeText)(windows_core::Interface::as_raw(self), hres, localeid, lflags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetFacilityCodeText(&self, hres: windows_core::HRESULT, localeid: u32, lflags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFacilityCodeText)(windows_core::Interface::as_raw(self), core::mem::transmute(hres), core::mem::transmute(localeid), core::mem::transmute(lflags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFacilityCodeText)(windows_core::Interface::as_raw(self), hres, localeid, lflags, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -7872,7 +7826,7 @@ impl IWbemUnsecuredApartment { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSinkStub)(windows_core::Interface::as_raw(self), psink.param().abi(), core::mem::transmute(dwflags), wszreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSinkStub)(windows_core::Interface::as_raw(self), psink.param().abi(), dwflags, wszreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs index 74a54089d1..6185dc3d0e 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn AccNotifyTouchInteraction(hwndapp: super::super::Foundation::HWND, hwndtarget: super::super::Foundation::HWND, pttarget: super::super::Foundation::POINT) -> windows_core::Result<()> { windows_targets::link!("oleacc.dll" "system" fn AccNotifyTouchInteraction(hwndapp : super::super::Foundation:: HWND, hwndtarget : super::super::Foundation:: HWND, pttarget : super::super::Foundation:: POINT) -> windows_core::HRESULT); - AccNotifyTouchInteraction(core::mem::transmute(hwndapp), core::mem::transmute(hwndtarget), core::mem::transmute(pttarget)).ok() + AccNotifyTouchInteraction(hwndapp, hwndtarget, core::mem::transmute(pttarget)).ok() } #[inline] pub unsafe fn AccSetRunningUtilityState(hwndapp: super::super::Foundation::HWND, dwutilitystatemask: u32, dwutilitystate: ACC_UTILITY_STATE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("oleacc.dll" "system" fn AccSetRunningUtilityState(hwndapp : super::super::Foundation:: HWND, dwutilitystatemask : u32, dwutilitystate : ACC_UTILITY_STATE_FLAGS) -> windows_core::HRESULT); - AccSetRunningUtilityState(core::mem::transmute(hwndapp), core::mem::transmute(dwutilitystatemask), core::mem::transmute(dwutilitystate)).ok() + AccSetRunningUtilityState(hwndapp, dwutilitystatemask, dwutilitystate).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -15,13 +15,13 @@ where P0: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn AccessibleChildren(pacccontainer : * mut core::ffi::c_void, ichildstart : i32, cchildren : i32, rgvarchildren : *mut super::super::System::Variant:: VARIANT, pcobtained : *mut i32) -> windows_core::HRESULT); - AccessibleChildren(pacccontainer.param().abi(), core::mem::transmute(ichildstart), rgvarchildren.len().try_into().unwrap(), core::mem::transmute(rgvarchildren.as_ptr()), core::mem::transmute(pcobtained)).ok() + AccessibleChildren(pacccontainer.param().abi(), ichildstart, rgvarchildren.len().try_into().unwrap(), core::mem::transmute(rgvarchildren.as_ptr()), core::mem::transmute(pcobtained)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn AccessibleObjectFromEvent(hwnd: super::super::Foundation::HWND, dwid: u32, dwchildid: u32, ppacc: *mut Option, pvarchild: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { windows_targets::link!("oleacc.dll" "system" fn AccessibleObjectFromEvent(hwnd : super::super::Foundation:: HWND, dwid : u32, dwchildid : u32, ppacc : *mut * mut core::ffi::c_void, pvarchild : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - AccessibleObjectFromEvent(core::mem::transmute(hwnd), core::mem::transmute(dwid), core::mem::transmute(dwchildid), core::mem::transmute(ppacc), core::mem::transmute(pvarchild)).ok() + AccessibleObjectFromEvent(hwnd, dwid, dwchildid, core::mem::transmute(ppacc), core::mem::transmute(pvarchild)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -32,12 +32,12 @@ pub unsafe fn AccessibleObjectFromPoint(ptscreen: super::super::Foundation::POIN #[inline] pub unsafe fn AccessibleObjectFromWindow(hwnd: super::super::Foundation::HWND, dwid: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleacc.dll" "system" fn AccessibleObjectFromWindow(hwnd : super::super::Foundation:: HWND, dwid : u32, riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - AccessibleObjectFromWindow(core::mem::transmute(hwnd), core::mem::transmute(dwid), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + AccessibleObjectFromWindow(hwnd, dwid, riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn CreateStdAccessibleObject(hwnd: super::super::Foundation::HWND, idobject: i32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleacc.dll" "system" fn CreateStdAccessibleObject(hwnd : super::super::Foundation:: HWND, idobject : i32, riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CreateStdAccessibleObject(core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + CreateStdAccessibleObject(hwnd, idobject, riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn CreateStdAccessibleProxyA(hwnd: super::super::Foundation::HWND, pclassname: P1, idobject: i32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -45,7 +45,7 @@ where P1: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn CreateStdAccessibleProxyA(hwnd : super::super::Foundation:: HWND, pclassname : windows_core::PCSTR, idobject : i32, riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CreateStdAccessibleProxyA(core::mem::transmute(hwnd), pclassname.param().abi(), core::mem::transmute(idobject), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + CreateStdAccessibleProxyA(hwnd, pclassname.param().abi(), idobject, riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn CreateStdAccessibleProxyW(hwnd: super::super::Foundation::HWND, pclassname: P1, idobject: i32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -53,22 +53,22 @@ where P1: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn CreateStdAccessibleProxyW(hwnd : super::super::Foundation:: HWND, pclassname : windows_core::PCWSTR, idobject : i32, riid : *const windows_core::GUID, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CreateStdAccessibleProxyW(core::mem::transmute(hwnd), pclassname.param().abi(), core::mem::transmute(idobject), core::mem::transmute(riid), core::mem::transmute(ppvobject)).ok() + CreateStdAccessibleProxyW(hwnd, pclassname.param().abi(), idobject, riid, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn DockPattern_SetDockPosition(hobj: HUIAPATTERNOBJECT, dockposition: DockPosition) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn DockPattern_SetDockPosition(hobj : HUIAPATTERNOBJECT, dockposition : DockPosition) -> windows_core::HRESULT); - DockPattern_SetDockPosition(core::mem::transmute(hobj), core::mem::transmute(dockposition)).ok() + DockPattern_SetDockPosition(hobj, dockposition).ok() } #[inline] pub unsafe fn ExpandCollapsePattern_Collapse(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn ExpandCollapsePattern_Collapse(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - ExpandCollapsePattern_Collapse(core::mem::transmute(hobj)).ok() + ExpandCollapsePattern_Collapse(hobj).ok() } #[inline] pub unsafe fn ExpandCollapsePattern_Expand(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn ExpandCollapsePattern_Expand(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - ExpandCollapsePattern_Expand(core::mem::transmute(hobj)).ok() + ExpandCollapsePattern_Expand(hobj).ok() } #[inline] pub unsafe fn GetOleaccVersionInfo(pver: *mut u32, pbuild: *mut u32) { @@ -78,60 +78,60 @@ pub unsafe fn GetOleaccVersionInfo(pver: *mut u32, pbuild: *mut u32) { #[inline] pub unsafe fn GetRoleTextA(lrole: u32, lpszrole: Option<&mut [u8]>) -> u32 { windows_targets::link!("oleacc.dll" "system" fn GetRoleTextA(lrole : u32, lpszrole : windows_core::PSTR, cchrolemax : u32) -> u32); - GetRoleTextA(core::mem::transmute(lrole), core::mem::transmute(lpszrole.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszrole.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetRoleTextA(lrole, core::mem::transmute(lpszrole.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszrole.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetRoleTextW(lrole: u32, lpszrole: Option<&mut [u16]>) -> u32 { windows_targets::link!("oleacc.dll" "system" fn GetRoleTextW(lrole : u32, lpszrole : windows_core::PWSTR, cchrolemax : u32) -> u32); - GetRoleTextW(core::mem::transmute(lrole), core::mem::transmute(lpszrole.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszrole.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetRoleTextW(lrole, core::mem::transmute(lpszrole.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszrole.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetStateTextA(lstatebit: u32, lpszstate: Option<&mut [u8]>) -> u32 { windows_targets::link!("oleacc.dll" "system" fn GetStateTextA(lstatebit : u32, lpszstate : windows_core::PSTR, cchstate : u32) -> u32); - GetStateTextA(core::mem::transmute(lstatebit), core::mem::transmute(lpszstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszstate.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetStateTextA(lstatebit, core::mem::transmute(lpszstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszstate.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetStateTextW(lstatebit: u32, lpszstate: Option<&mut [u16]>) -> u32 { windows_targets::link!("oleacc.dll" "system" fn GetStateTextW(lstatebit : u32, lpszstate : windows_core::PWSTR, cchstate : u32) -> u32); - GetStateTextW(core::mem::transmute(lstatebit), core::mem::transmute(lpszstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszstate.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetStateTextW(lstatebit, core::mem::transmute(lpszstate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszstate.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GridPattern_GetItem(hobj: HUIAPATTERNOBJECT, row: i32, column: i32, presult: *mut HUIANODE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn GridPattern_GetItem(hobj : HUIAPATTERNOBJECT, row : i32, column : i32, presult : *mut HUIANODE) -> windows_core::HRESULT); - GridPattern_GetItem(core::mem::transmute(hobj), core::mem::transmute(row), core::mem::transmute(column), core::mem::transmute(presult)).ok() + GridPattern_GetItem(hobj, row, column, core::mem::transmute(presult)).ok() } #[inline] pub unsafe fn InvokePattern_Invoke(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn InvokePattern_Invoke(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - InvokePattern_Invoke(core::mem::transmute(hobj)).ok() + InvokePattern_Invoke(hobj).ok() } #[inline] pub unsafe fn IsWinEventHookInstalled(event: u32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsWinEventHookInstalled(event : u32) -> super::super::Foundation:: BOOL); - IsWinEventHookInstalled(core::mem::transmute(event)) + IsWinEventHookInstalled(event) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn ItemContainerPattern_FindItemByProperty(hobj: HUIAPATTERNOBJECT, hnodestartafter: HUIANODE, propertyid: i32, value: &super::super::System::Variant::VARIANT, pfound: *mut HUIANODE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn ItemContainerPattern_FindItemByProperty(hobj : HUIAPATTERNOBJECT, hnodestartafter : HUIANODE, propertyid : i32, value : super::super::System::Variant:: VARIANT, pfound : *mut HUIANODE) -> windows_core::HRESULT); - ItemContainerPattern_FindItemByProperty(core::mem::transmute(hobj), core::mem::transmute(hnodestartafter), core::mem::transmute(propertyid), core::mem::transmute_copy(value), core::mem::transmute(pfound)).ok() + ItemContainerPattern_FindItemByProperty(hobj, hnodestartafter, propertyid, core::mem::transmute_copy(value), core::mem::transmute(pfound)).ok() } #[inline] pub unsafe fn LegacyIAccessiblePattern_DoDefaultAction(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_DoDefaultAction(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - LegacyIAccessiblePattern_DoDefaultAction(core::mem::transmute(hobj)).ok() + LegacyIAccessiblePattern_DoDefaultAction(hobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn LegacyIAccessiblePattern_GetIAccessible(hobj: HUIAPATTERNOBJECT) -> windows_core::Result { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_GetIAccessible(hobj : HUIAPATTERNOBJECT, paccessible : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - LegacyIAccessiblePattern_GetIAccessible(core::mem::transmute(hobj), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + LegacyIAccessiblePattern_GetIAccessible(hobj, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn LegacyIAccessiblePattern_Select(hobj: HUIAPATTERNOBJECT, flagsselect: i32) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_Select(hobj : HUIAPATTERNOBJECT, flagsselect : i32) -> windows_core::HRESULT); - LegacyIAccessiblePattern_Select(core::mem::transmute(hobj), core::mem::transmute(flagsselect)).ok() + LegacyIAccessiblePattern_Select(hobj, flagsselect).ok() } #[inline] pub unsafe fn LegacyIAccessiblePattern_SetValue(hobj: HUIAPATTERNOBJECT, szvalue: P1) -> windows_core::Result<()> @@ -139,7 +139,7 @@ where P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_SetValue(hobj : HUIAPATTERNOBJECT, szvalue : windows_core::PCWSTR) -> windows_core::HRESULT); - LegacyIAccessiblePattern_SetValue(core::mem::transmute(hobj), szvalue.param().abi()).ok() + LegacyIAccessiblePattern_SetValue(hobj, szvalue.param().abi()).ok() } #[inline] pub unsafe fn LresultFromObject(riid: *const windows_core::GUID, wparam: super::super::Foundation::WPARAM, punk: P2) -> super::super::Foundation::LRESULT @@ -147,241 +147,241 @@ where P2: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn LresultFromObject(riid : *const windows_core::GUID, wparam : super::super::Foundation:: WPARAM, punk : * mut core::ffi::c_void) -> super::super::Foundation:: LRESULT); - LresultFromObject(core::mem::transmute(riid), core::mem::transmute(wparam), punk.param().abi()) + LresultFromObject(riid, wparam, punk.param().abi()) } #[inline] pub unsafe fn MultipleViewPattern_GetViewName(hobj: HUIAPATTERNOBJECT, viewid: i32, ppstr: *mut windows_core::BSTR) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn MultipleViewPattern_GetViewName(hobj : HUIAPATTERNOBJECT, viewid : i32, ppstr : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - MultipleViewPattern_GetViewName(core::mem::transmute(hobj), core::mem::transmute(viewid), core::mem::transmute(ppstr)).ok() + MultipleViewPattern_GetViewName(hobj, viewid, core::mem::transmute(ppstr)).ok() } #[inline] pub unsafe fn MultipleViewPattern_SetCurrentView(hobj: HUIAPATTERNOBJECT, viewid: i32) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn MultipleViewPattern_SetCurrentView(hobj : HUIAPATTERNOBJECT, viewid : i32) -> windows_core::HRESULT); - MultipleViewPattern_SetCurrentView(core::mem::transmute(hobj), core::mem::transmute(viewid)).ok() + MultipleViewPattern_SetCurrentView(hobj, viewid).ok() } #[inline] pub unsafe fn NotifyWinEvent(event: u32, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32) { windows_targets::link!("user32.dll" "system" fn NotifyWinEvent(event : u32, hwnd : super::super::Foundation:: HWND, idobject : i32, idchild : i32)); - NotifyWinEvent(core::mem::transmute(event), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild)) + NotifyWinEvent(event, hwnd, idobject, idchild) } #[inline] pub unsafe fn ObjectFromLresult(lresult: super::super::Foundation::LRESULT, riid: *const windows_core::GUID, wparam: super::super::Foundation::WPARAM, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("oleacc.dll" "system" fn ObjectFromLresult(lresult : super::super::Foundation:: LRESULT, riid : *const windows_core::GUID, wparam : super::super::Foundation:: WPARAM, ppvobject : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ObjectFromLresult(core::mem::transmute(lresult), core::mem::transmute(riid), core::mem::transmute(wparam), core::mem::transmute(ppvobject)).ok() + ObjectFromLresult(lresult, riid, wparam, core::mem::transmute(ppvobject)).ok() } #[inline] pub unsafe fn RangeValuePattern_SetValue(hobj: HUIAPATTERNOBJECT, val: f64) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn RangeValuePattern_SetValue(hobj : HUIAPATTERNOBJECT, val : f64) -> windows_core::HRESULT); - RangeValuePattern_SetValue(core::mem::transmute(hobj), core::mem::transmute(val)).ok() + RangeValuePattern_SetValue(hobj, val).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterPointerInputTarget(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); - RegisterPointerInputTarget(core::mem::transmute(hwnd), core::mem::transmute(pointertype)).ok() + RegisterPointerInputTarget(hwnd, pointertype).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterPointerInputTargetEx(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE, fobserve: bool) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE, fobserve : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RegisterPointerInputTargetEx(core::mem::transmute(hwnd), core::mem::transmute(pointertype), fobserve.into()) + RegisterPointerInputTargetEx(hwnd, pointertype, fobserve.into()) } #[inline] pub unsafe fn ScrollItemPattern_ScrollIntoView(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn ScrollItemPattern_ScrollIntoView(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - ScrollItemPattern_ScrollIntoView(core::mem::transmute(hobj)).ok() + ScrollItemPattern_ScrollIntoView(hobj).ok() } #[inline] pub unsafe fn ScrollPattern_Scroll(hobj: HUIAPATTERNOBJECT, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn ScrollPattern_Scroll(hobj : HUIAPATTERNOBJECT, horizontalamount : ScrollAmount, verticalamount : ScrollAmount) -> windows_core::HRESULT); - ScrollPattern_Scroll(core::mem::transmute(hobj), core::mem::transmute(horizontalamount), core::mem::transmute(verticalamount)).ok() + ScrollPattern_Scroll(hobj, horizontalamount, verticalamount).ok() } #[inline] pub unsafe fn ScrollPattern_SetScrollPercent(hobj: HUIAPATTERNOBJECT, horizontalpercent: f64, verticalpercent: f64) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn ScrollPattern_SetScrollPercent(hobj : HUIAPATTERNOBJECT, horizontalpercent : f64, verticalpercent : f64) -> windows_core::HRESULT); - ScrollPattern_SetScrollPercent(core::mem::transmute(hobj), core::mem::transmute(horizontalpercent), core::mem::transmute(verticalpercent)).ok() + ScrollPattern_SetScrollPercent(hobj, horizontalpercent, verticalpercent).ok() } #[inline] pub unsafe fn SelectionItemPattern_AddToSelection(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn SelectionItemPattern_AddToSelection(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SelectionItemPattern_AddToSelection(core::mem::transmute(hobj)).ok() + SelectionItemPattern_AddToSelection(hobj).ok() } #[inline] pub unsafe fn SelectionItemPattern_RemoveFromSelection(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn SelectionItemPattern_RemoveFromSelection(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SelectionItemPattern_RemoveFromSelection(core::mem::transmute(hobj)).ok() + SelectionItemPattern_RemoveFromSelection(hobj).ok() } #[inline] pub unsafe fn SelectionItemPattern_Select(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn SelectionItemPattern_Select(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SelectionItemPattern_Select(core::mem::transmute(hobj)).ok() + SelectionItemPattern_Select(hobj).ok() } #[inline] pub unsafe fn SetWinEventHook(eventmin: u32, eventmax: u32, hmodwineventproc: Option, pfnwineventproc: WINEVENTPROC, idprocess: u32, idthread: u32, dwflags: u32) -> HWINEVENTHOOK { windows_targets::link!("user32.dll" "system" fn SetWinEventHook(eventmin : u32, eventmax : u32, hmodwineventproc : super::super::Foundation:: HMODULE, pfnwineventproc : WINEVENTPROC, idprocess : u32, idthread : u32, dwflags : u32) -> HWINEVENTHOOK); - SetWinEventHook(core::mem::transmute(eventmin), core::mem::transmute(eventmax), core::mem::transmute(hmodwineventproc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfnwineventproc), core::mem::transmute(idprocess), core::mem::transmute(idthread), core::mem::transmute(dwflags)) + SetWinEventHook(eventmin, eventmax, core::mem::transmute(hmodwineventproc.unwrap_or(core::mem::zeroed())), pfnwineventproc, idprocess, idthread, dwflags) } #[inline] pub unsafe fn SynchronizedInputPattern_Cancel(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn SynchronizedInputPattern_Cancel(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SynchronizedInputPattern_Cancel(core::mem::transmute(hobj)).ok() + SynchronizedInputPattern_Cancel(hobj).ok() } #[inline] pub unsafe fn SynchronizedInputPattern_StartListening(hobj: HUIAPATTERNOBJECT, inputtype: SynchronizedInputType) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn SynchronizedInputPattern_StartListening(hobj : HUIAPATTERNOBJECT, inputtype : SynchronizedInputType) -> windows_core::HRESULT); - SynchronizedInputPattern_StartListening(core::mem::transmute(hobj), core::mem::transmute(inputtype)).ok() + SynchronizedInputPattern_StartListening(hobj, inputtype).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextPattern_GetSelection(hobj: HUIAPATTERNOBJECT, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_GetSelection(hobj : HUIAPATTERNOBJECT, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextPattern_GetSelection(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextPattern_GetSelection(hobj, core::mem::transmute(pretval)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextPattern_GetVisibleRanges(hobj: HUIAPATTERNOBJECT, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_GetVisibleRanges(hobj : HUIAPATTERNOBJECT, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextPattern_GetVisibleRanges(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextPattern_GetVisibleRanges(hobj, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextPattern_RangeFromChild(hobj: HUIAPATTERNOBJECT, hnodechild: HUIANODE, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_RangeFromChild(hobj : HUIAPATTERNOBJECT, hnodechild : HUIANODE, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextPattern_RangeFromChild(core::mem::transmute(hobj), core::mem::transmute(hnodechild), core::mem::transmute(pretval)).ok() + TextPattern_RangeFromChild(hobj, hnodechild, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextPattern_RangeFromPoint(hobj: HUIAPATTERNOBJECT, point: UiaPoint, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_RangeFromPoint(hobj : HUIAPATTERNOBJECT, point : UiaPoint, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextPattern_RangeFromPoint(core::mem::transmute(hobj), core::mem::transmute(point), core::mem::transmute(pretval)).ok() + TextPattern_RangeFromPoint(hobj, core::mem::transmute(point), core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextPattern_get_DocumentRange(hobj: HUIAPATTERNOBJECT, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_get_DocumentRange(hobj : HUIAPATTERNOBJECT, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextPattern_get_DocumentRange(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextPattern_get_DocumentRange(hobj, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextPattern_get_SupportedTextSelection(hobj: HUIAPATTERNOBJECT, pretval: *mut SupportedTextSelection) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_get_SupportedTextSelection(hobj : HUIAPATTERNOBJECT, pretval : *mut SupportedTextSelection) -> windows_core::HRESULT); - TextPattern_get_SupportedTextSelection(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextPattern_get_SupportedTextSelection(hobj, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_AddToSelection(hobj: HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_AddToSelection(hobj : HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_AddToSelection(core::mem::transmute(hobj)).ok() + TextRange_AddToSelection(hobj).ok() } #[inline] pub unsafe fn TextRange_Clone(hobj: HUIATEXTRANGE, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Clone(hobj : HUIATEXTRANGE, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_Clone(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextRange_Clone(hobj, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_Compare(hobj: HUIATEXTRANGE, range: HUIATEXTRANGE, pretval: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Compare(hobj : HUIATEXTRANGE, range : HUIATEXTRANGE, pretval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - TextRange_Compare(core::mem::transmute(hobj), core::mem::transmute(range), core::mem::transmute(pretval)).ok() + TextRange_Compare(hobj, range, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_CompareEndpoints(hobj: HUIATEXTRANGE, endpoint: TextPatternRangeEndpoint, targetrange: HUIATEXTRANGE, targetendpoint: TextPatternRangeEndpoint, pretval: *mut i32) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_CompareEndpoints(hobj : HUIATEXTRANGE, endpoint : TextPatternRangeEndpoint, targetrange : HUIATEXTRANGE, targetendpoint : TextPatternRangeEndpoint, pretval : *mut i32) -> windows_core::HRESULT); - TextRange_CompareEndpoints(core::mem::transmute(hobj), core::mem::transmute(endpoint), core::mem::transmute(targetrange), core::mem::transmute(targetendpoint), core::mem::transmute(pretval)).ok() + TextRange_CompareEndpoints(hobj, endpoint, targetrange, targetendpoint, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_ExpandToEnclosingUnit(hobj: HUIATEXTRANGE, unit: TextUnit) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_ExpandToEnclosingUnit(hobj : HUIATEXTRANGE, unit : TextUnit) -> windows_core::HRESULT); - TextRange_ExpandToEnclosingUnit(core::mem::transmute(hobj), core::mem::transmute(unit)).ok() + TextRange_ExpandToEnclosingUnit(hobj, unit).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn TextRange_FindAttribute(hobj: HUIATEXTRANGE, attributeid: i32, val: &super::super::System::Variant::VARIANT, backward: bool, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindAttribute(hobj : HUIATEXTRANGE, attributeid : i32, val : super::super::System::Variant:: VARIANT, backward : super::super::Foundation:: BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_FindAttribute(core::mem::transmute(hobj), core::mem::transmute(attributeid), core::mem::transmute_copy(val), backward.into(), core::mem::transmute(pretval)).ok() + TextRange_FindAttribute(hobj, attributeid, core::mem::transmute_copy(val), backward.into(), core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_FindText(hobj: HUIATEXTRANGE, text: &windows_core::BSTR, backward: bool, ignorecase: bool, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindText(hobj : HUIATEXTRANGE, text : * mut core::ffi::c_void, backward : super::super::Foundation:: BOOL, ignorecase : super::super::Foundation:: BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_FindText(core::mem::transmute(hobj), core::mem::transmute_copy(text), backward.into(), ignorecase.into(), core::mem::transmute(pretval)).ok() + TextRange_FindText(hobj, core::mem::transmute_copy(text), backward.into(), ignorecase.into(), core::mem::transmute(pretval)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn TextRange_GetAttributeValue(hobj: HUIATEXTRANGE, attributeid: i32, pretval: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetAttributeValue(hobj : HUIATEXTRANGE, attributeid : i32, pretval : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - TextRange_GetAttributeValue(core::mem::transmute(hobj), core::mem::transmute(attributeid), core::mem::transmute(pretval)).ok() + TextRange_GetAttributeValue(hobj, attributeid, core::mem::transmute(pretval)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextRange_GetBoundingRectangles(hobj: HUIATEXTRANGE, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetBoundingRectangles(hobj : HUIATEXTRANGE, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextRange_GetBoundingRectangles(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextRange_GetBoundingRectangles(hobj, core::mem::transmute(pretval)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextRange_GetChildren(hobj: HUIATEXTRANGE, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetChildren(hobj : HUIATEXTRANGE, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextRange_GetChildren(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextRange_GetChildren(hobj, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_GetEnclosingElement(hobj: HUIATEXTRANGE, pretval: *mut HUIANODE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetEnclosingElement(hobj : HUIATEXTRANGE, pretval : *mut HUIANODE) -> windows_core::HRESULT); - TextRange_GetEnclosingElement(core::mem::transmute(hobj), core::mem::transmute(pretval)).ok() + TextRange_GetEnclosingElement(hobj, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_GetText(hobj: HUIATEXTRANGE, maxlength: i32, pretval: *mut windows_core::BSTR) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetText(hobj : HUIATEXTRANGE, maxlength : i32, pretval : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - TextRange_GetText(core::mem::transmute(hobj), core::mem::transmute(maxlength), core::mem::transmute(pretval)).ok() + TextRange_GetText(hobj, maxlength, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_Move(hobj: HUIATEXTRANGE, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Move(hobj : HUIATEXTRANGE, unit : TextUnit, count : i32, pretval : *mut i32) -> windows_core::HRESULT); - TextRange_Move(core::mem::transmute(hobj), core::mem::transmute(unit), core::mem::transmute(count), core::mem::transmute(pretval)).ok() + TextRange_Move(hobj, unit, count, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_MoveEndpointByRange(hobj: HUIATEXTRANGE, endpoint: TextPatternRangeEndpoint, targetrange: HUIATEXTRANGE, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_MoveEndpointByRange(hobj : HUIATEXTRANGE, endpoint : TextPatternRangeEndpoint, targetrange : HUIATEXTRANGE, targetendpoint : TextPatternRangeEndpoint) -> windows_core::HRESULT); - TextRange_MoveEndpointByRange(core::mem::transmute(hobj), core::mem::transmute(endpoint), core::mem::transmute(targetrange), core::mem::transmute(targetendpoint)).ok() + TextRange_MoveEndpointByRange(hobj, endpoint, targetrange, targetendpoint).ok() } #[inline] pub unsafe fn TextRange_MoveEndpointByUnit(hobj: HUIATEXTRANGE, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_MoveEndpointByUnit(hobj : HUIATEXTRANGE, endpoint : TextPatternRangeEndpoint, unit : TextUnit, count : i32, pretval : *mut i32) -> windows_core::HRESULT); - TextRange_MoveEndpointByUnit(core::mem::transmute(hobj), core::mem::transmute(endpoint), core::mem::transmute(unit), core::mem::transmute(count), core::mem::transmute(pretval)).ok() + TextRange_MoveEndpointByUnit(hobj, endpoint, unit, count, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_RemoveFromSelection(hobj: HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_RemoveFromSelection(hobj : HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_RemoveFromSelection(core::mem::transmute(hobj)).ok() + TextRange_RemoveFromSelection(hobj).ok() } #[inline] pub unsafe fn TextRange_ScrollIntoView(hobj: HUIATEXTRANGE, aligntotop: bool) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_ScrollIntoView(hobj : HUIATEXTRANGE, aligntotop : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - TextRange_ScrollIntoView(core::mem::transmute(hobj), aligntotop.into()).ok() + TextRange_ScrollIntoView(hobj, aligntotop.into()).ok() } #[inline] pub unsafe fn TextRange_Select(hobj: HUIATEXTRANGE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Select(hobj : HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_Select(core::mem::transmute(hobj)).ok() + TextRange_Select(hobj).ok() } #[inline] pub unsafe fn TogglePattern_Toggle(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TogglePattern_Toggle(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - TogglePattern_Toggle(core::mem::transmute(hobj)).ok() + TogglePattern_Toggle(hobj).ok() } #[inline] pub unsafe fn TransformPattern_Move(hobj: HUIAPATTERNOBJECT, x: f64, y: f64) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TransformPattern_Move(hobj : HUIAPATTERNOBJECT, x : f64, y : f64) -> windows_core::HRESULT); - TransformPattern_Move(core::mem::transmute(hobj), core::mem::transmute(x), core::mem::transmute(y)).ok() + TransformPattern_Move(hobj, x, y).ok() } #[inline] pub unsafe fn TransformPattern_Resize(hobj: HUIAPATTERNOBJECT, width: f64, height: f64) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TransformPattern_Resize(hobj : HUIAPATTERNOBJECT, width : f64, height : f64) -> windows_core::HRESULT); - TransformPattern_Resize(core::mem::transmute(hobj), core::mem::transmute(width), core::mem::transmute(height)).ok() + TransformPattern_Resize(hobj, width, height).ok() } #[inline] pub unsafe fn TransformPattern_Rotate(hobj: HUIAPATTERNOBJECT, degrees: f64) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn TransformPattern_Rotate(hobj : HUIAPATTERNOBJECT, degrees : f64) -> windows_core::HRESULT); - TransformPattern_Rotate(core::mem::transmute(hobj), core::mem::transmute(degrees)).ok() + TransformPattern_Rotate(hobj, degrees).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaAddEvent(hnode: HUIANODE, eventid: i32, pcallback: *mut UiaEventCallback, scope: TreeScope, pproperties: *mut i32, cproperties: i32, prequest: *mut UiaCacheRequest, phevent: *mut HUIAEVENT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaAddEvent(hnode : HUIANODE, eventid : i32, pcallback : *mut UiaEventCallback, scope : TreeScope, pproperties : *mut i32, cproperties : i32, prequest : *mut UiaCacheRequest, phevent : *mut HUIAEVENT) -> windows_core::HRESULT); - UiaAddEvent(core::mem::transmute(hnode), core::mem::transmute(eventid), core::mem::transmute(pcallback), core::mem::transmute(scope), core::mem::transmute(pproperties), core::mem::transmute(cproperties), core::mem::transmute(prequest), core::mem::transmute(phevent)).ok() + UiaAddEvent(hnode, eventid, core::mem::transmute(pcallback), scope, core::mem::transmute(pproperties), cproperties, core::mem::transmute(prequest), core::mem::transmute(phevent)).ok() } #[inline] pub unsafe fn UiaClientsAreListening() -> super::super::Foundation::BOOL { @@ -404,18 +404,18 @@ where #[inline] pub unsafe fn UiaEventAddWindow(hevent: HUIAEVENT, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaEventAddWindow(hevent : HUIAEVENT, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - UiaEventAddWindow(core::mem::transmute(hevent), core::mem::transmute(hwnd)).ok() + UiaEventAddWindow(hevent, hwnd).ok() } #[inline] pub unsafe fn UiaEventRemoveWindow(hevent: HUIAEVENT, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaEventRemoveWindow(hevent : HUIAEVENT, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - UiaEventRemoveWindow(core::mem::transmute(hevent), core::mem::transmute(hwnd)).ok() + UiaEventRemoveWindow(hevent, hwnd).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaFind(hnode: HUIANODE, pparams: *mut UiaFindParams, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, ppoffsets: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructures: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaFind(hnode : HUIANODE, pparams : *mut UiaFindParams, prequest : *mut UiaCacheRequest, pprequesteddata : *mut *mut super::super::System::Com:: SAFEARRAY, ppoffsets : *mut *mut super::super::System::Com:: SAFEARRAY, pptreestructures : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - UiaFind(core::mem::transmute(hnode), core::mem::transmute(pparams), core::mem::transmute(prequest), core::mem::transmute(pprequesteddata), core::mem::transmute(ppoffsets), core::mem::transmute(pptreestructures)).ok() + UiaFind(hnode, core::mem::transmute(pparams), core::mem::transmute(prequest), core::mem::transmute(pprequesteddata), core::mem::transmute(ppoffsets), core::mem::transmute(pptreestructures)).ok() } #[inline] pub unsafe fn UiaGetErrorDescription(pdescription: *mut windows_core::BSTR) -> super::super::Foundation::BOOL { @@ -425,13 +425,13 @@ pub unsafe fn UiaGetErrorDescription(pdescription: *mut windows_core::BSTR) -> s #[inline] pub unsafe fn UiaGetPatternProvider(hnode: HUIANODE, patternid: i32, phobj: *mut HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetPatternProvider(hnode : HUIANODE, patternid : i32, phobj : *mut HUIAPATTERNOBJECT) -> windows_core::HRESULT); - UiaGetPatternProvider(core::mem::transmute(hnode), core::mem::transmute(patternid), core::mem::transmute(phobj)).ok() + UiaGetPatternProvider(hnode, patternid, core::mem::transmute(phobj)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn UiaGetPropertyValue(hnode: HUIANODE, propertyid: i32, pvalue: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetPropertyValue(hnode : HUIANODE, propertyid : i32, pvalue : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - UiaGetPropertyValue(core::mem::transmute(hnode), core::mem::transmute(propertyid), core::mem::transmute(pvalue)).ok() + UiaGetPropertyValue(hnode, propertyid, core::mem::transmute(pvalue)).ok() } #[inline] pub unsafe fn UiaGetReservedMixedAttributeValue() -> windows_core::Result { @@ -454,13 +454,13 @@ pub unsafe fn UiaGetRootNode(phnode: *mut HUIANODE) -> windows_core::Result<()> #[inline] pub unsafe fn UiaGetRuntimeId(hnode: HUIANODE, pruntimeid: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetRuntimeId(hnode : HUIANODE, pruntimeid : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - UiaGetRuntimeId(core::mem::transmute(hnode), core::mem::transmute(pruntimeid)).ok() + UiaGetRuntimeId(hnode, core::mem::transmute(pruntimeid)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaGetUpdatedCache(hnode: HUIANODE, prequest: *mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: *mut UiaCondition, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut windows_core::BSTR) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetUpdatedCache(hnode : HUIANODE, prequest : *mut UiaCacheRequest, normalizestate : NormalizeState, pnormalizecondition : *mut UiaCondition, pprequesteddata : *mut *mut super::super::System::Com:: SAFEARRAY, pptreestructure : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - UiaGetUpdatedCache(core::mem::transmute(hnode), core::mem::transmute(prequest), core::mem::transmute(normalizestate), core::mem::transmute(pnormalizecondition), core::mem::transmute(pprequesteddata), core::mem::transmute(pptreestructure)).ok() + UiaGetUpdatedCache(hnode, core::mem::transmute(prequest), normalizestate, core::mem::transmute(pnormalizecondition), core::mem::transmute(pprequesteddata), core::mem::transmute(pptreestructure)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -483,13 +483,13 @@ pub unsafe fn UiaHUiaNodeFromVariant(pvar: *mut super::super::System::Variant::V #[inline] pub unsafe fn UiaHasServerSideProvider(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("uiautomationcore.dll" "system" fn UiaHasServerSideProvider(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - UiaHasServerSideProvider(core::mem::transmute(hwnd)) + UiaHasServerSideProvider(hwnd) } #[inline] pub unsafe fn UiaHostProviderFromHwnd(hwnd: super::super::Foundation::HWND) -> windows_core::Result { windows_targets::link!("uiautomationcore.dll" "system" fn UiaHostProviderFromHwnd(hwnd : super::super::Foundation:: HWND, ppprovider : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - UiaHostProviderFromHwnd(core::mem::transmute(hwnd), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + UiaHostProviderFromHwnd(hwnd, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -498,18 +498,18 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaIAccessibleFromProvider(pprovider : * mut core::ffi::c_void, dwflags : u32, ppaccessible : *mut * mut core::ffi::c_void, pvarchild : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - UiaIAccessibleFromProvider(pprovider.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(ppaccessible), core::mem::transmute(pvarchild)).ok() + UiaIAccessibleFromProvider(pprovider.param().abi(), dwflags, core::mem::transmute(ppaccessible), core::mem::transmute(pvarchild)).ok() } #[inline] pub unsafe fn UiaLookupId(r#type: AutomationIdentifierType, pguid: *const windows_core::GUID) -> i32 { windows_targets::link!("uiautomationcore.dll" "system" fn UiaLookupId(r#type : AutomationIdentifierType, pguid : *const windows_core::GUID) -> i32); - UiaLookupId(core::mem::transmute(r#type), core::mem::transmute(pguid)) + UiaLookupId(r#type, pguid) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaNavigate(hnode: HUIANODE, direction: NavigateDirection, pcondition: *mut UiaCondition, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut windows_core::BSTR) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNavigate(hnode : HUIANODE, direction : NavigateDirection, pcondition : *mut UiaCondition, prequest : *mut UiaCacheRequest, pprequesteddata : *mut *mut super::super::System::Com:: SAFEARRAY, pptreestructure : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - UiaNavigate(core::mem::transmute(hnode), core::mem::transmute(direction), core::mem::transmute(pcondition), core::mem::transmute(prequest), core::mem::transmute(pprequesteddata), core::mem::transmute(pptreestructure)).ok() + UiaNavigate(hnode, direction, core::mem::transmute(pcondition), core::mem::transmute(prequest), core::mem::transmute(pprequesteddata), core::mem::transmute(pptreestructure)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -520,13 +520,13 @@ pub unsafe fn UiaNodeFromFocus(prequest: *mut UiaCacheRequest, pprequesteddata: #[inline] pub unsafe fn UiaNodeFromHandle(hwnd: super::super::Foundation::HWND, phnode: *mut HUIANODE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeFromHandle(hwnd : super::super::Foundation:: HWND, phnode : *mut HUIANODE) -> windows_core::HRESULT); - UiaNodeFromHandle(core::mem::transmute(hwnd), core::mem::transmute(phnode)).ok() + UiaNodeFromHandle(hwnd, core::mem::transmute(phnode)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaNodeFromPoint(x: f64, y: f64, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut windows_core::BSTR) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeFromPoint(x : f64, y : f64, prequest : *mut UiaCacheRequest, pprequesteddata : *mut *mut super::super::System::Com:: SAFEARRAY, pptreestructure : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - UiaNodeFromPoint(core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(prequest), core::mem::transmute(pprequesteddata), core::mem::transmute(pptreestructure)).ok() + UiaNodeFromPoint(x, y, core::mem::transmute(prequest), core::mem::transmute(pprequesteddata), core::mem::transmute(pptreestructure)).ok() } #[inline] pub unsafe fn UiaNodeFromProvider(pprovider: P0, phnode: *mut HUIANODE) -> windows_core::Result<()> @@ -539,18 +539,18 @@ where #[inline] pub unsafe fn UiaNodeRelease(hnode: HUIANODE) -> super::super::Foundation::BOOL { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeRelease(hnode : HUIANODE) -> super::super::Foundation:: BOOL); - UiaNodeRelease(core::mem::transmute(hnode)) + UiaNodeRelease(hnode) } #[inline] pub unsafe fn UiaPatternRelease(hobj: HUIAPATTERNOBJECT) -> super::super::Foundation::BOOL { windows_targets::link!("uiautomationcore.dll" "system" fn UiaPatternRelease(hobj : HUIAPATTERNOBJECT) -> super::super::Foundation:: BOOL); - UiaPatternRelease(core::mem::transmute(hobj)) + UiaPatternRelease(hobj) } #[inline] pub unsafe fn UiaProviderForNonClient(hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32) -> windows_core::Result { windows_targets::link!("uiautomationcore.dll" "system" fn UiaProviderForNonClient(hwnd : super::super::Foundation:: HWND, idobject : i32, idchild : i32, ppprovider : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - UiaProviderForNonClient(core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + UiaProviderForNonClient(hwnd, idobject, idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -560,7 +560,7 @@ where { windows_targets::link!("uiautomationcore.dll" "system" fn UiaProviderFromIAccessible(paccessible : * mut core::ffi::c_void, idchild : i32, dwflags : u32, ppprovider : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - UiaProviderFromIAccessible(paccessible.param().abi(), core::mem::transmute(idchild), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + UiaProviderFromIAccessible(paccessible.param().abi(), idchild, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn UiaRaiseActiveTextPositionChangedEvent(provider: P0, textrange: P1) -> windows_core::Result<()> @@ -577,7 +577,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseAsyncContentLoadedEvent(pprovider : * mut core::ffi::c_void, asynccontentloadedstate : AsyncContentLoadedState, percentcomplete : f64) -> windows_core::HRESULT); - UiaRaiseAsyncContentLoadedEvent(pprovider.param().abi(), core::mem::transmute(asynccontentloadedstate), core::mem::transmute(percentcomplete)).ok() + UiaRaiseAsyncContentLoadedEvent(pprovider.param().abi(), asynccontentloadedstate, percentcomplete).ok() } #[inline] pub unsafe fn UiaRaiseAutomationEvent(pprovider: P0, id: UIA_EVENT_ID) -> windows_core::Result<()> @@ -585,7 +585,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseAutomationEvent(pprovider : * mut core::ffi::c_void, id : UIA_EVENT_ID) -> windows_core::HRESULT); - UiaRaiseAutomationEvent(pprovider.param().abi(), core::mem::transmute(id)).ok() + UiaRaiseAutomationEvent(pprovider.param().abi(), id).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -594,7 +594,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseAutomationPropertyChangedEvent(pprovider : * mut core::ffi::c_void, id : UIA_PROPERTY_ID, oldvalue : super::super::System::Variant:: VARIANT, newvalue : super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); - UiaRaiseAutomationPropertyChangedEvent(pprovider.param().abi(), core::mem::transmute(id), core::mem::transmute_copy(oldvalue), core::mem::transmute_copy(newvalue)).ok() + UiaRaiseAutomationPropertyChangedEvent(pprovider.param().abi(), id, core::mem::transmute_copy(oldvalue), core::mem::transmute_copy(newvalue)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] @@ -603,7 +603,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseChangesEvent(pprovider : * mut core::ffi::c_void, eventidcount : i32, puiachanges : *mut UiaChangeInfo) -> windows_core::HRESULT); - UiaRaiseChangesEvent(pprovider.param().abi(), core::mem::transmute(eventidcount), core::mem::transmute(puiachanges)).ok() + UiaRaiseChangesEvent(pprovider.param().abi(), eventidcount, core::mem::transmute(puiachanges)).ok() } #[inline] pub unsafe fn UiaRaiseNotificationEvent(provider: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: &windows_core::BSTR, activityid: &windows_core::BSTR) -> windows_core::Result<()> @@ -611,7 +611,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseNotificationEvent(provider : * mut core::ffi::c_void, notificationkind : NotificationKind, notificationprocessing : NotificationProcessing, displaystring : * mut core::ffi::c_void, activityid : * mut core::ffi::c_void) -> windows_core::HRESULT); - UiaRaiseNotificationEvent(provider.param().abi(), core::mem::transmute(notificationkind), core::mem::transmute(notificationprocessing), core::mem::transmute_copy(displaystring), core::mem::transmute_copy(activityid)).ok() + UiaRaiseNotificationEvent(provider.param().abi(), notificationkind, notificationprocessing, core::mem::transmute_copy(displaystring), core::mem::transmute_copy(activityid)).ok() } #[inline] pub unsafe fn UiaRaiseStructureChangedEvent(pprovider: P0, structurechangetype: StructureChangeType, pruntimeid: *mut i32, cruntimeidlen: i32) -> windows_core::Result<()> @@ -619,7 +619,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseStructureChangedEvent(pprovider : * mut core::ffi::c_void, structurechangetype : StructureChangeType, pruntimeid : *mut i32, cruntimeidlen : i32) -> windows_core::HRESULT); - UiaRaiseStructureChangedEvent(pprovider.param().abi(), core::mem::transmute(structurechangetype), core::mem::transmute(pruntimeid), core::mem::transmute(cruntimeidlen)).ok() + UiaRaiseStructureChangedEvent(pprovider.param().abi(), structurechangetype, core::mem::transmute(pruntimeid), cruntimeidlen).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -628,7 +628,7 @@ where P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseTextEditTextChangedEvent(pprovider : * mut core::ffi::c_void, texteditchangetype : TextEditChangeType, pchangeddata : *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - UiaRaiseTextEditTextChangedEvent(pprovider.param().abi(), core::mem::transmute(texteditchangetype), core::mem::transmute(pchangeddata)).ok() + UiaRaiseTextEditTextChangedEvent(pprovider.param().abi(), texteditchangetype, core::mem::transmute(pchangeddata)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -639,7 +639,7 @@ pub unsafe fn UiaRegisterProviderCallback(pcallback: *mut UiaProviderCallback) { #[inline] pub unsafe fn UiaRemoveEvent(hevent: HUIAEVENT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRemoveEvent(hevent : HUIAEVENT) -> windows_core::HRESULT); - UiaRemoveEvent(core::mem::transmute(hevent)).ok() + UiaRemoveEvent(hevent).ok() } #[inline] pub unsafe fn UiaReturnRawElementProvider(hwnd: super::super::Foundation::HWND, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, el: P3) -> super::super::Foundation::LRESULT @@ -647,34 +647,34 @@ where P3: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaReturnRawElementProvider(hwnd : super::super::Foundation:: HWND, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, el : * mut core::ffi::c_void) -> super::super::Foundation:: LRESULT); - UiaReturnRawElementProvider(core::mem::transmute(hwnd), core::mem::transmute(wparam), core::mem::transmute(lparam), el.param().abi()) + UiaReturnRawElementProvider(hwnd, wparam, lparam, el.param().abi()) } #[inline] pub unsafe fn UiaSetFocus(hnode: HUIANODE) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn UiaSetFocus(hnode : HUIANODE) -> windows_core::HRESULT); - UiaSetFocus(core::mem::transmute(hnode)).ok() + UiaSetFocus(hnode).ok() } #[inline] pub unsafe fn UiaTextRangeRelease(hobj: HUIATEXTRANGE) -> super::super::Foundation::BOOL { windows_targets::link!("uiautomationcore.dll" "system" fn UiaTextRangeRelease(hobj : HUIATEXTRANGE) -> super::super::Foundation:: BOOL); - UiaTextRangeRelease(core::mem::transmute(hobj)) + UiaTextRangeRelease(hobj) } #[inline] pub unsafe fn UnhookWinEvent(hwineventhook: HWINEVENTHOOK) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UnhookWinEvent(hwineventhook : HWINEVENTHOOK) -> super::super::Foundation:: BOOL); - UnhookWinEvent(core::mem::transmute(hwineventhook)) + UnhookWinEvent(hwineventhook) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn UnregisterPointerInputTarget(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); - UnregisterPointerInputTarget(core::mem::transmute(hwnd), core::mem::transmute(pointertype)).ok() + UnregisterPointerInputTarget(hwnd, pointertype).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn UnregisterPointerInputTargetEx(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); - UnregisterPointerInputTargetEx(core::mem::transmute(hwnd), core::mem::transmute(pointertype)) + UnregisterPointerInputTargetEx(hwnd, pointertype) } #[inline] pub unsafe fn ValuePattern_SetValue(hobj: HUIAPATTERNOBJECT, pval: P1) -> windows_core::Result<()> @@ -682,12 +682,12 @@ where P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ValuePattern_SetValue(hobj : HUIAPATTERNOBJECT, pval : windows_core::PCWSTR) -> windows_core::HRESULT); - ValuePattern_SetValue(core::mem::transmute(hobj), pval.param().abi()).ok() + ValuePattern_SetValue(hobj, pval.param().abi()).ok() } #[inline] pub unsafe fn VirtualizedItemPattern_Realize(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn VirtualizedItemPattern_Realize(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - VirtualizedItemPattern_Realize(core::mem::transmute(hobj)).ok() + VirtualizedItemPattern_Realize(hobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -701,17 +701,17 @@ where #[inline] pub unsafe fn WindowPattern_Close(hobj: HUIAPATTERNOBJECT) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_Close(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - WindowPattern_Close(core::mem::transmute(hobj)).ok() + WindowPattern_Close(hobj).ok() } #[inline] pub unsafe fn WindowPattern_SetWindowVisualState(hobj: HUIAPATTERNOBJECT, state: WindowVisualState) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_SetWindowVisualState(hobj : HUIAPATTERNOBJECT, state : WindowVisualState) -> windows_core::HRESULT); - WindowPattern_SetWindowVisualState(core::mem::transmute(hobj), core::mem::transmute(state)).ok() + WindowPattern_SetWindowVisualState(hobj, state).ok() } #[inline] pub unsafe fn WindowPattern_WaitForInputIdle(hobj: HUIAPATTERNOBJECT, milliseconds: i32, presult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_WaitForInputIdle(hobj : HUIAPATTERNOBJECT, milliseconds : i32, presult : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - WindowPattern_WaitForInputIdle(core::mem::transmute(hobj), core::mem::transmute(milliseconds), core::mem::transmute(presult)).ok() + WindowPattern_WaitForInputIdle(hobj, milliseconds, core::mem::transmute(presult)).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -1285,7 +1285,7 @@ windows_core::imp::define_interface!(IAccIdentity, IAccIdentity_Vtbl, 0x7852b78d windows_core::imp::interface_hierarchy!(IAccIdentity, windows_core::IUnknown); impl IAccIdentity { pub unsafe fn GetIdentityString(&self, dwidchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIdentityString)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidchild), core::mem::transmute(ppidstring), core::mem::transmute(pdwidstringlen)).ok() + (windows_core::Interface::vtable(self).GetIdentityString)(windows_core::Interface::as_raw(self), dwidchild, core::mem::transmute(ppidstring), core::mem::transmute(pdwidstringlen)).ok() } } #[repr(C)] @@ -1355,61 +1355,61 @@ impl IAccPropServices { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropServer)(windows_core::Interface::as_raw(self), core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), core::mem::transmute(annoscope)).ok() + (windows_core::Interface::vtable(self).SetPropServer)(windows_core::Interface::as_raw(self), core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), annoscope).ok() } pub unsafe fn ClearProps(&self, pidstring: &[u8], paprops: &[windows_core::GUID]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearProps)(windows_core::Interface::as_raw(self), core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetHwndProp(&self, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, idprop: windows_core::GUID, var: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHwndProp)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), core::mem::transmute(idprop), core::mem::transmute_copy(var)).ok() + (windows_core::Interface::vtable(self).SetHwndProp)(windows_core::Interface::as_raw(self), hwnd, idobject, idchild, core::mem::transmute(idprop), core::mem::transmute_copy(var)).ok() } pub unsafe fn SetHwndPropStr(&self, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, idprop: windows_core::GUID, str: P4) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHwndPropStr)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), core::mem::transmute(idprop), str.param().abi()).ok() + (windows_core::Interface::vtable(self).SetHwndPropStr)(windows_core::Interface::as_raw(self), hwnd, idobject, idchild, core::mem::transmute(idprop), str.param().abi()).ok() } pub unsafe fn SetHwndPropServer(&self, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, paprops: &[windows_core::GUID], pserver: P5, annoscope: AnnoScope) -> windows_core::Result<()> where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHwndPropServer)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), core::mem::transmute(annoscope)).ok() + (windows_core::Interface::vtable(self).SetHwndPropServer)(windows_core::Interface::as_raw(self), hwnd, idobject, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), annoscope).ok() } pub unsafe fn ClearHwndProps(&self, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, paprops: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearHwndProps)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).ClearHwndProps)(windows_core::Interface::as_raw(self), hwnd, idobject, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() } pub unsafe fn ComposeHwndIdentityString(&self, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ComposeHwndIdentityString)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), core::mem::transmute(ppidstring), core::mem::transmute(pdwidstringlen)).ok() + (windows_core::Interface::vtable(self).ComposeHwndIdentityString)(windows_core::Interface::as_raw(self), hwnd, idobject, idchild, core::mem::transmute(ppidstring), core::mem::transmute(pdwidstringlen)).ok() } pub unsafe fn DecomposeHwndIdentityString(&self, pidstring: &[u8], phwnd: *mut super::super::Foundation::HWND, pidobject: *mut u32, pidchild: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DecomposeHwndIdentityString)(windows_core::Interface::as_raw(self), core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), core::mem::transmute(phwnd), core::mem::transmute(pidobject), core::mem::transmute(pidchild)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetHmenuProp(&self, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, idprop: windows_core::GUID, var: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHmenuProp)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu), core::mem::transmute(idchild), core::mem::transmute(idprop), core::mem::transmute_copy(var)).ok() + (windows_core::Interface::vtable(self).SetHmenuProp)(windows_core::Interface::as_raw(self), hmenu, idchild, core::mem::transmute(idprop), core::mem::transmute_copy(var)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetHmenuPropStr(&self, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, idprop: windows_core::GUID, str: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHmenuPropStr)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu), core::mem::transmute(idchild), core::mem::transmute(idprop), str.param().abi()).ok() + (windows_core::Interface::vtable(self).SetHmenuPropStr)(windows_core::Interface::as_raw(self), hmenu, idchild, core::mem::transmute(idprop), str.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetHmenuPropServer(&self, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, paprops: &[windows_core::GUID], pserver: P4, annoscope: AnnoScope) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHmenuPropServer)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu), core::mem::transmute(idchild), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), core::mem::transmute(annoscope)).ok() + (windows_core::Interface::vtable(self).SetHmenuPropServer)(windows_core::Interface::as_raw(self), hmenu, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), annoscope).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ClearHmenuProps(&self, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, paprops: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearHmenuProps)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu), core::mem::transmute(idchild), core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).ClearHmenuProps)(windows_core::Interface::as_raw(self), hmenu, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ComposeHmenuIdentityString(&self, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ComposeHmenuIdentityString)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu), core::mem::transmute(idchild), core::mem::transmute(ppidstring), core::mem::transmute(pdwidstringlen)).ok() + (windows_core::Interface::vtable(self).ComposeHmenuIdentityString)(windows_core::Interface::as_raw(self), hmenu, idchild, core::mem::transmute(ppidstring), core::mem::transmute(pdwidstringlen)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn DecomposeHmenuIdentityString(&self, pidstring: &[u8], phmenu: *mut super::WindowsAndMessaging::HMENU, pidchild: *mut u32) -> windows_core::Result<()> { @@ -1648,7 +1648,7 @@ impl IAccessible { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn accSelect(&self, flagsselect: i32, varchild: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).accSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(flagsselect), core::mem::transmute_copy(varchild)).ok() + (windows_core::Interface::vtable(self).accSelect)(windows_core::Interface::as_raw(self), flagsselect, core::mem::transmute_copy(varchild)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn accLocation(&self, pxleft: *mut i32, pytop: *mut i32, pcxwidth: *mut i32, pcyheight: *mut i32, varchild: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -1657,12 +1657,12 @@ impl IAccessible { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn accNavigate(&self, navdir: i32, varstart: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).accNavigate)(windows_core::Interface::as_raw(self), core::mem::transmute(navdir), core::mem::transmute_copy(varstart), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).accNavigate)(windows_core::Interface::as_raw(self), navdir, core::mem::transmute_copy(varstart), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn accHitTest(&self, xleft: i32, ytop: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).accHitTest)(windows_core::Interface::as_raw(self), core::mem::transmute(xleft), core::mem::transmute(ytop), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).accHitTest)(windows_core::Interface::as_raw(self), xleft, ytop, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn accDoDefaultAction(&self, varchild: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -2003,7 +2003,7 @@ windows_core::imp::interface_hierarchy!(IAccessibleEx, windows_core::IUnknown); impl IAccessibleEx { pub unsafe fn GetObjectForChild(&self, idchild: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectForChild)(windows_core::Interface::as_raw(self), core::mem::transmute(idchild), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObjectForChild)(windows_core::Interface::as_raw(self), idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetIAccessiblePair(&self, ppacc: *mut Option, pidchild: *mut i32) -> windows_core::Result<()> { @@ -2100,7 +2100,7 @@ impl IAccessibleHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AccessibleObjectFromID(&self, hwnd: i32, lobjectid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AccessibleObjectFromID)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(lobjectid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AccessibleObjectFromID)(windows_core::Interface::as_raw(self), hwnd, lobjectid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2209,13 +2209,13 @@ impl IAccessibleWindowlessSite { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AcquireObjectIdRange)(windows_core::Interface::as_raw(self), core::mem::transmute(rangesize), prangeowner.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AcquireObjectIdRange)(windows_core::Interface::as_raw(self), rangesize, prangeowner.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReleaseObjectIdRange(&self, rangebase: i32, prangeowner: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseObjectIdRange)(windows_core::Interface::as_raw(self), core::mem::transmute(rangebase), prangeowner.param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseObjectIdRange)(windows_core::Interface::as_raw(self), rangebase, prangeowner.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryObjectIdRanges(&self, prangesowner: P0) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> @@ -2414,7 +2414,7 @@ windows_core::imp::interface_hierarchy!(ICustomNavigationProvider, windows_core: impl ICustomNavigationProvider { pub unsafe fn Navigate(&self, direction: NavigateDirection) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2448,7 +2448,7 @@ windows_core::imp::define_interface!(IDockProvider, IDockProvider_Vtbl, 0x159bc7 windows_core::imp::interface_hierarchy!(IDockProvider, windows_core::IUnknown); impl IDockProvider { pub unsafe fn SetDockPosition(&self, dockposition: DockPosition) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDockPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dockposition)).ok() + (windows_core::Interface::vtable(self).SetDockPosition)(windows_core::Interface::as_raw(self), dockposition).ok() } pub unsafe fn DockPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2823,7 +2823,7 @@ windows_core::imp::interface_hierarchy!(IGridProvider, windows_core::IUnknown); impl IGridProvider { pub unsafe fn GetItem(&self, row: i32, column: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), row, column, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RowCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2929,7 +2929,7 @@ impl IItemContainerProvider { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByProperty)(windows_core::Interface::as_raw(self), pstartafter.param().abi(), core::mem::transmute(propertyid), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByProperty)(windows_core::Interface::as_raw(self), pstartafter.param().abi(), propertyid, core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2969,7 +2969,7 @@ windows_core::imp::define_interface!(ILegacyIAccessibleProvider, ILegacyIAccessi windows_core::imp::interface_hierarchy!(ILegacyIAccessibleProvider, windows_core::IUnknown); impl ILegacyIAccessibleProvider { pub unsafe fn Select(&self, flagsselect: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), core::mem::transmute(flagsselect)).ok() + (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), flagsselect).ok() } pub unsafe fn DoDefaultAction(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DoDefaultAction)(windows_core::Interface::as_raw(self)).ok() @@ -3222,10 +3222,10 @@ windows_core::imp::interface_hierarchy!(IMultipleViewProvider, windows_core::IUn impl IMultipleViewProvider { pub unsafe fn GetViewName(&self, viewid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetViewName)(windows_core::Interface::as_raw(self), core::mem::transmute(viewid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetViewName)(windows_core::Interface::as_raw(self), viewid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetCurrentView(&self, viewid: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentView)(windows_core::Interface::as_raw(self), core::mem::transmute(viewid)).ok() + (windows_core::Interface::vtable(self).SetCurrentView)(windows_core::Interface::as_raw(self), viewid).ok() } pub unsafe fn CurrentView(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3348,7 +3348,7 @@ impl IProxyProviderWinEventHandler { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).RespondToWinEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(idwinevent), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), psink.param().abi()).ok() + (windows_core::Interface::vtable(self).RespondToWinEvent)(windows_core::Interface::as_raw(self), idwinevent, hwnd, idobject, idchild, psink.param().abi()).ok() } } #[repr(C)] @@ -3380,20 +3380,20 @@ impl IProxyProviderWinEventSink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationPropertyChangedEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), core::mem::transmute(id), core::mem::transmute_copy(newvalue)).ok() + (windows_core::Interface::vtable(self).AddAutomationPropertyChangedEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), id, core::mem::transmute_copy(newvalue)).ok() } pub unsafe fn AddAutomationEvent(&self, pprovider: P0, id: UIA_EVENT_ID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).AddAutomationEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), id).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddStructureChangedEvent(&self, pprovider: P0, structurechangetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructureChangedEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), core::mem::transmute(structurechangetype), core::mem::transmute(runtimeid)).ok() + (windows_core::Interface::vtable(self).AddStructureChangedEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), structurechangetype, runtimeid).ok() } } #[repr(C)] @@ -3447,7 +3447,7 @@ windows_core::imp::define_interface!(IRangeValueProvider, IRangeValueProvider_Vt windows_core::imp::interface_hierarchy!(IRangeValueProvider, windows_core::IUnknown); impl IRangeValueProvider { pub unsafe fn SetValue(&self, val: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(val)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3581,11 +3581,11 @@ windows_core::imp::interface_hierarchy!(IRawElementProviderAdviseEvents, windows impl IRawElementProviderAdviseEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdviseEventAdded(&self, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AdviseEventAdded)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(propertyids)).ok() + (windows_core::Interface::vtable(self).AdviseEventAdded)(windows_core::Interface::as_raw(self), eventid, propertyids).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdviseEventRemoved(&self, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AdviseEventRemoved)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(propertyids)).ok() + (windows_core::Interface::vtable(self).AdviseEventRemoved)(windows_core::Interface::as_raw(self), eventid, propertyids).ok() } } #[repr(C)] @@ -3633,7 +3633,7 @@ windows_core::imp::interface_hierarchy!(IRawElementProviderFragment, windows_cor impl IRawElementProviderFragment { pub unsafe fn Navigate(&self, direction: NavigateDirection) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRuntimeId(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -3760,7 +3760,7 @@ windows_core::imp::interface_hierarchy!(IRawElementProviderFragmentRoot, windows impl IRawElementProviderFragmentRoot { pub unsafe fn ElementProviderFromPoint(&self, x: f64, y: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementProviderFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementProviderFromPoint)(windows_core::Interface::as_raw(self), x, y, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3857,7 +3857,7 @@ windows_core::imp::interface_hierarchy!(IRawElementProviderHwndOverride, windows impl IRawElementProviderHwndOverride { pub unsafe fn GetOverrideProviderForHwnd(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOverrideProviderForHwnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOverrideProviderForHwnd)(windows_core::Interface::as_raw(self), hwnd, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3896,12 +3896,12 @@ impl IRawElementProviderSimple { } pub unsafe fn GetPatternProvider(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPatternProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(patternid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPatternProvider)(windows_core::Interface::as_raw(self), patternid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPropertyValue)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn HostRawElementProvider(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4032,7 +4032,7 @@ impl IRawElementProviderSimple3 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetMetadataValue(&self, targetid: i32, metadataid: UIA_METADATA_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMetadataValue)(windows_core::Interface::as_raw(self), core::mem::transmute(targetid), core::mem::transmute(metadataid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMetadataValue)(windows_core::Interface::as_raw(self), targetid, metadataid, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -4073,7 +4073,7 @@ windows_core::imp::interface_hierarchy!(IRawElementProviderWindowlessSite, windo impl IRawElementProviderWindowlessSite { pub unsafe fn GetAdjacentFragment(&self, direction: NavigateDirection) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAdjacentFragment)(windows_core::Interface::as_raw(self), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAdjacentFragment)(windows_core::Interface::as_raw(self), direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRuntimeIdPrefix(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -4241,10 +4241,10 @@ windows_core::imp::define_interface!(IScrollProvider, IScrollProvider_Vtbl, 0xb3 windows_core::imp::interface_hierarchy!(IScrollProvider, windows_core::IUnknown); impl IScrollProvider { pub unsafe fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalamount), core::mem::transmute(verticalamount)).ok() + (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), horizontalamount, verticalamount).ok() } pub unsafe fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScrollPercent)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalpercent), core::mem::transmute(verticalpercent)).ok() + (windows_core::Interface::vtable(self).SetScrollPercent)(windows_core::Interface::as_raw(self), horizontalpercent, verticalpercent).ok() } pub unsafe fn HorizontalScrollPercent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4907,7 +4907,7 @@ windows_core::imp::define_interface!(ISynchronizedInputProvider, ISynchronizedIn windows_core::imp::interface_hierarchy!(ISynchronizedInputProvider, windows_core::IUnknown); impl ISynchronizedInputProvider { pub unsafe fn StartListening(&self, inputtype: SynchronizedInputType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartListening)(windows_core::Interface::as_raw(self), core::mem::transmute(inputtype)).ok() + (windows_core::Interface::vtable(self).StartListening)(windows_core::Interface::as_raw(self), inputtype).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -5435,15 +5435,15 @@ impl ITextRangeProvider { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEndpoints)(windows_core::Interface::as_raw(self), core::mem::transmute(endpoint), targetrange.param().abi(), core::mem::transmute(targetendpoint), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareEndpoints)(windows_core::Interface::as_raw(self), endpoint, targetrange.param().abi(), targetendpoint, &mut result__).map(|| result__) } pub unsafe fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(unit)).ok() + (windows_core::Interface::vtable(self).ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), unit).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn FindAttribute(&self, attributeid: UIA_TEXTATTRIBUTE_ID, val: &super::super::System::Variant::VARIANT, backward: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attributeid), core::mem::transmute_copy(val), backward.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), attributeid, core::mem::transmute_copy(val), backward.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: &windows_core::BSTR, backward: bool, ignorecase: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5452,7 +5452,7 @@ impl ITextRangeProvider { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAttributeValue(&self, attributeid: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeValue)(windows_core::Interface::as_raw(self), core::mem::transmute(attributeid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAttributeValue)(windows_core::Interface::as_raw(self), attributeid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBoundingRectangles(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -5465,21 +5465,21 @@ impl ITextRangeProvider { } pub unsafe fn GetText(&self, maxlength: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(maxlength), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), maxlength, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), unit, count, &mut result__).map(|| result__) } pub unsafe fn MoveEndpointByUnit(&self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveEndpointByUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(endpoint), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveEndpointByUnit)(windows_core::Interface::as_raw(self), endpoint, unit, count, &mut result__).map(|| result__) } pub unsafe fn MoveEndpointByRange(&self, endpoint: TextPatternRangeEndpoint, targetrange: P1, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveEndpointByRange)(windows_core::Interface::as_raw(self), core::mem::transmute(endpoint), targetrange.param().abi(), core::mem::transmute(targetendpoint)).ok() + (windows_core::Interface::vtable(self).MoveEndpointByRange)(windows_core::Interface::as_raw(self), endpoint, targetrange.param().abi(), targetendpoint).ok() } pub unsafe fn Select(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self)).ok() @@ -5814,13 +5814,13 @@ windows_core::imp::define_interface!(ITransformProvider, ITransformProvider_Vtbl windows_core::imp::interface_hierarchy!(ITransformProvider, windows_core::IUnknown); impl ITransformProvider { pub unsafe fn Move(&self, x: f64, y: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), x, y).ok() } pub unsafe fn Resize(&self, width: f64, height: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn Rotate(&self, degrees: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(degrees)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees).ok() } pub unsafe fn CanMove(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5922,7 +5922,7 @@ impl core::ops::Deref for ITransformProvider2 { windows_core::imp::interface_hierarchy!(ITransformProvider2, windows_core::IUnknown, ITransformProvider); impl ITransformProvider2 { pub unsafe fn Zoom(&self, zoom: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Zoom)(windows_core::Interface::as_raw(self), core::mem::transmute(zoom)).ok() + (windows_core::Interface::vtable(self).Zoom)(windows_core::Interface::as_raw(self), zoom).ok() } pub unsafe fn CanZoom(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5941,7 +5941,7 @@ impl ITransformProvider2 { (windows_core::Interface::vtable(self).ZoomMaximum)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ZoomByUnit(&self, zoomunit: ZoomUnit) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ZoomByUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(zoomunit)).ok() + (windows_core::Interface::vtable(self).ZoomByUnit)(windows_core::Interface::as_raw(self), zoomunit).ok() } } #[repr(C)] @@ -6041,7 +6041,7 @@ impl IUIAutomation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareRuntimeIds(&self, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareRuntimeIds)(windows_core::Interface::as_raw(self), core::mem::transmute(runtimeid1), core::mem::transmute(runtimeid2), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareRuntimeIds)(windows_core::Interface::as_raw(self), runtimeid1, runtimeid2, &mut result__).map(|| result__) } pub unsafe fn GetRootElement(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6049,7 +6049,7 @@ impl IUIAutomation { } pub unsafe fn ElementFromHandle(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPoint(&self, pt: super::super::Foundation::POINT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6071,7 +6071,7 @@ impl IUIAutomation { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P1) -> windows_core::Result where @@ -6133,12 +6133,12 @@ impl IUIAutomation { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyCondition)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: &super::super::System::Variant::VARIANT, flags: PropertyConditionFlags) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute_copy(value), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute_copy(value), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where @@ -6151,7 +6151,7 @@ impl IUIAutomation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAndConditionFromArray)(windows_core::Interface::as_raw(self), core::mem::transmute(conditions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAndConditionFromArray)(windows_core::Interface::as_raw(self), conditions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndConditionFromNativeArray(&self, conditions: &[Option]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6168,7 +6168,7 @@ impl IUIAutomation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOrConditionFromArray)(windows_core::Interface::as_raw(self), core::mem::transmute(conditions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateOrConditionFromArray)(windows_core::Interface::as_raw(self), conditions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOrConditionFromNativeArray(&self, conditions: &[Option]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6187,14 +6187,14 @@ impl IUIAutomation { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), element.param().abi(), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.param().abi(), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P1, handler: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), element.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddPropertyChangedEventHandlerNativeArray(&self, element: P0, scope: TreeScope, cacherequest: P2, handler: P3, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where @@ -6202,7 +6202,7 @@ impl IUIAutomation { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.param().abi(), scope, cacherequest.param().abi(), handler.param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPropertyChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P2, handler: P3, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> @@ -6211,7 +6211,7 @@ impl IUIAutomation { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi(), core::mem::transmute(propertyarray)).ok() + (windows_core::Interface::vtable(self).AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), scope, cacherequest.param().abi(), handler.param().abi(), propertyarray).ok() } pub unsafe fn RemovePropertyChangedEventHandler(&self, element: P0, handler: P1) -> windows_core::Result<()> where @@ -6226,7 +6226,7 @@ impl IUIAutomation { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveStructureChangedEventHandler(&self, element: P0, handler: P1) -> windows_core::Result<()> where @@ -6259,7 +6259,7 @@ impl IUIAutomation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IntSafeArrayToNativeArray(&self, intarray: *const super::super::System::Com::SAFEARRAY, array: *mut *mut i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IntSafeArrayToNativeArray)(windows_core::Interface::as_raw(self), core::mem::transmute(intarray), core::mem::transmute(array), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IntSafeArrayToNativeArray)(windows_core::Interface::as_raw(self), intarray, core::mem::transmute(array), &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RectToVariant(&self, rc: super::super::Foundation::RECT) -> windows_core::Result { @@ -6274,7 +6274,7 @@ impl IUIAutomation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SafeArrayToRectNativeArray(&self, rects: *const super::super::System::Com::SAFEARRAY, rectarray: *mut *mut super::super::Foundation::RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SafeArrayToRectNativeArray)(windows_core::Interface::as_raw(self), core::mem::transmute(rects), core::mem::transmute(rectarray), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SafeArrayToRectNativeArray)(windows_core::Interface::as_raw(self), rects, core::mem::transmute(rectarray), &mut result__).map(|| result__) } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where @@ -6289,11 +6289,11 @@ impl IUIAutomation { } pub unsafe fn GetPropertyProgrammaticName(&self, property: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyProgrammaticName)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPropertyProgrammaticName)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetPatternProgrammaticName(&self, pattern: UIA_PATTERN_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPatternProgrammaticName)(windows_core::Interface::as_raw(self), core::mem::transmute(pattern), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPatternProgrammaticName)(windows_core::Interface::as_raw(self), pattern, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedPatterns(&self, pelement: P0, patternids: *mut *mut super::super::System::Com::SAFEARRAY, patternnames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> @@ -6328,7 +6328,7 @@ impl IUIAutomation { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.param().abi(), core::mem::transmute(childid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessibleBuildCache(&self, accessible: P0, childid: i32, cacherequest: P2) -> windows_core::Result @@ -6337,7 +6337,7 @@ impl IUIAutomation { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), core::mem::transmute(childid), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7072,14 +7072,14 @@ impl IUIAutomation2 { (windows_core::Interface::vtable(self).ConnectionTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConnectionTimeout(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectionTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).SetConnectionTimeout)(windows_core::Interface::as_raw(self), timeout).ok() } pub unsafe fn TransactionTimeout(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TransactionTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTransactionTimeout(&self, timeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransactionTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(timeout)).ok() + (windows_core::Interface::vtable(self).SetTransactionTimeout)(windows_core::Interface::as_raw(self), timeout).ok() } } #[repr(C)] @@ -7177,7 +7177,7 @@ impl IUIAutomation3 { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), core::mem::transmute(texteditchangetype), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), scope, texteditchangetype, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveTextEditTextChangedEventHandler(&self, element: P0, handler: P1) -> windows_core::Result<()> where @@ -7236,7 +7236,7 @@ impl IUIAutomation4 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddChangesEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), pcacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddChangesEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), scope, core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), pcacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveChangesEventHandler(&self, element: P0, handler: P1) -> windows_core::Result<()> where @@ -7295,7 +7295,7 @@ impl IUIAutomation5 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNotificationEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddNotificationEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveNotificationEventHandler(&self, element: P0, handler: P1) -> windows_core::Result<()> where @@ -7371,14 +7371,14 @@ impl IUIAutomation6 { (windows_core::Interface::vtable(self).ConnectionRecoveryBehavior)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetConnectionRecoveryBehavior(&self, connectionrecoverybehavioroptions: ConnectionRecoveryBehaviorOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConnectionRecoveryBehavior)(windows_core::Interface::as_raw(self), core::mem::transmute(connectionrecoverybehavioroptions)).ok() + (windows_core::Interface::vtable(self).SetConnectionRecoveryBehavior)(windows_core::Interface::as_raw(self), connectionrecoverybehavioroptions).ok() } pub unsafe fn CoalesceEvents(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CoalesceEvents)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCoalesceEvents(&self, coalesceeventsoptions: CoalesceEventsOptions) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCoalesceEvents)(windows_core::Interface::as_raw(self), core::mem::transmute(coalesceeventsoptions)).ok() + (windows_core::Interface::vtable(self).SetCoalesceEvents)(windows_core::Interface::as_raw(self), coalesceeventsoptions).ok() } pub unsafe fn AddActiveTextPositionChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P2, handler: P3) -> windows_core::Result<()> where @@ -7386,7 +7386,7 @@ impl IUIAutomation6 { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveActiveTextPositionChangedEventHandler(&self, element: P0, handler: P1) -> windows_core::Result<()> where @@ -7846,10 +7846,10 @@ windows_core::imp::define_interface!(IUIAutomationCacheRequest, IUIAutomationCac windows_core::imp::interface_hierarchy!(IUIAutomationCacheRequest, windows_core::IUnknown); impl IUIAutomationCacheRequest { pub unsafe fn AddProperty(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid)).ok() + (windows_core::Interface::vtable(self).AddProperty)(windows_core::Interface::as_raw(self), propertyid).ok() } pub unsafe fn AddPattern(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPattern)(windows_core::Interface::as_raw(self), core::mem::transmute(patternid)).ok() + (windows_core::Interface::vtable(self).AddPattern)(windows_core::Interface::as_raw(self), patternid).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7860,7 +7860,7 @@ impl IUIAutomationCacheRequest { (windows_core::Interface::vtable(self).TreeScope)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTreeScope(&self, scope: TreeScope) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTreeScope)(windows_core::Interface::as_raw(self), core::mem::transmute(scope)).ok() + (windows_core::Interface::vtable(self).SetTreeScope)(windows_core::Interface::as_raw(self), scope).ok() } pub unsafe fn TreeFilter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7877,7 +7877,7 @@ impl IUIAutomationCacheRequest { (windows_core::Interface::vtable(self).AutomationElementMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutomationElementMode(&self, mode: AutomationElementMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutomationElementMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetAutomationElementMode)(windows_core::Interface::as_raw(self), mode).ok() } } #[repr(C)] @@ -8043,7 +8043,7 @@ windows_core::imp::interface_hierarchy!(IUIAutomationCustomNavigationPattern, wi impl IUIAutomationCustomNavigationPattern { pub unsafe fn Navigate(&self, direction: NavigateDirection) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), core::mem::transmute(direction), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8077,7 +8077,7 @@ windows_core::imp::define_interface!(IUIAutomationDockPattern, IUIAutomationDock windows_core::imp::interface_hierarchy!(IUIAutomationDockPattern, windows_core::IUnknown); impl IUIAutomationDockPattern { pub unsafe fn SetDockPosition(&self, dockpos: DockPosition) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDockPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(dockpos)).ok() + (windows_core::Interface::vtable(self).SetDockPosition)(windows_core::Interface::as_raw(self), dockpos).ok() } pub unsafe fn CurrentDockPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8422,14 +8422,14 @@ impl IUIAutomationElement { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirst)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirst)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindAll(&self, scope: TreeScope, condition: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAll)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAll)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFirstBuildCache(&self, scope: TreeScope, condition: P1, cacherequest: P2) -> windows_core::Result where @@ -8437,7 +8437,7 @@ impl IUIAutomationElement { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindAllBuildCache(&self, scope: TreeScope, condition: P1, cacherequest: P2) -> windows_core::Result where @@ -8445,7 +8445,7 @@ impl IUIAutomationElement { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAllBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BuildUpdatedCache(&self, cacherequest: P0) -> windows_core::Result where @@ -8457,44 +8457,44 @@ impl IUIAutomationElement { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentPropertyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCurrentPropertyValue)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), ignoredefaultvalue.into(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into(), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCachedPropertyValue)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCachedPropertyValue)(windows_core::Interface::as_raw(self), propertyid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), ignoredefaultvalue.into(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into(), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetCurrentPatternAs)(windows_core::Interface::as_raw(self), core::mem::transmute(patternid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCurrentPatternAs)(windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetCachedPatternAs)(windows_core::Interface::as_raw(self), core::mem::transmute(patternid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCachedPatternAs)(windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPattern(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentPattern)(windows_core::Interface::as_raw(self), core::mem::transmute(patternid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCurrentPattern)(windows_core::Interface::as_raw(self), patternid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPattern(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCachedPattern)(windows_core::Interface::as_raw(self), core::mem::transmute(patternid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCachedPattern)(windows_core::Interface::as_raw(self), patternid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedParent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10439,7 +10439,7 @@ impl IUIAutomationElement7 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstWithOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), core::mem::transmute(traversaloptions), root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstWithOptions)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), traversaloptions, root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindAllWithOptions(&self, scope: TreeScope, condition: P1, traversaloptions: TreeTraversalOptions, root: P3) -> windows_core::Result where @@ -10447,7 +10447,7 @@ impl IUIAutomationElement7 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAllWithOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), core::mem::transmute(traversaloptions), root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAllWithOptions)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), traversaloptions, root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFirstWithOptionsBuildCache(&self, scope: TreeScope, condition: P1, cacherequest: P2, traversaloptions: TreeTraversalOptions, root: P4) -> windows_core::Result where @@ -10456,7 +10456,7 @@ impl IUIAutomationElement7 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstWithOptionsBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), cacherequest.param().abi(), core::mem::transmute(traversaloptions), root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), cacherequest.param().abi(), traversaloptions, root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindAllWithOptionsBuildCache(&self, scope: TreeScope, condition: P1, cacherequest: P2, traversaloptions: TreeTraversalOptions, root: P4) -> windows_core::Result where @@ -10465,12 +10465,12 @@ impl IUIAutomationElement7 { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAllWithOptionsBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), condition.param().abi(), cacherequest.param().abi(), core::mem::transmute(traversaloptions), root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAllWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.param().abi(), cacherequest.param().abi(), traversaloptions, root.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetCurrentMetadataValue(&self, targetid: i32, metadataid: UIA_METADATA_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentMetadataValue)(windows_core::Interface::as_raw(self), core::mem::transmute(targetid), core::mem::transmute(metadataid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetCurrentMetadataValue)(windows_core::Interface::as_raw(self), targetid, metadataid, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -10698,7 +10698,7 @@ impl IUIAutomationElementArray { } pub unsafe fn GetElement(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10747,7 +10747,7 @@ impl IUIAutomationEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleAutomationEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(eventid)).ok() + (windows_core::Interface::vtable(self).HandleAutomationEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), eventid).ok() } } #[repr(C)] @@ -10779,49 +10779,49 @@ impl IUIAutomationEventHandlerGroup { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, scope: TreeScope, cacherequest: P2, handler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddChangesEventHandler(&self, scope: TreeScope, changetypes: &[i32], cacherequest: P3, handler: P4) -> windows_core::Result<()> where P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddChangesEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddChangesEventHandler)(windows_core::Interface::as_raw(self), scope, core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddNotificationEventHandler(&self, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNotificationEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddNotificationEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddPropertyChangedEventHandler(&self, scope: TreeScope, cacherequest: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.param().abi(), handler.param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddTextEditTextChangedEventHandler(&self, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: P2, handler: P3) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(scope), core::mem::transmute(texteditchangetype), cacherequest.param().abi(), handler.param().abi()).ok() + (windows_core::Interface::vtable(self).AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), scope, texteditchangetype, cacherequest.param().abi(), handler.param().abi()).ok() } } #[repr(C)] @@ -11192,7 +11192,7 @@ windows_core::imp::interface_hierarchy!(IUIAutomationGridPattern, windows_core:: impl IUIAutomationGridPattern { pub unsafe fn GetItem(&self, row: i32, column: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(row), core::mem::transmute(column), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), row, column, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CurrentRowCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11330,7 +11330,7 @@ impl IUIAutomationItemContainerPattern { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByProperty)(windows_core::Interface::as_raw(self), pstartafter.param().abi(), core::mem::transmute(propertyid), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByProperty)(windows_core::Interface::as_raw(self), pstartafter.param().abi(), propertyid, core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11370,7 +11370,7 @@ windows_core::imp::define_interface!(IUIAutomationLegacyIAccessiblePattern, IUIA windows_core::imp::interface_hierarchy!(IUIAutomationLegacyIAccessiblePattern, windows_core::IUnknown); impl IUIAutomationLegacyIAccessiblePattern { pub unsafe fn Select(&self, flagsselect: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), core::mem::transmute(flagsselect)).ok() + (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), flagsselect).ok() } pub unsafe fn DoDefaultAction(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DoDefaultAction)(windows_core::Interface::as_raw(self)).ok() @@ -11789,10 +11789,10 @@ windows_core::imp::interface_hierarchy!(IUIAutomationMultipleViewPattern, window impl IUIAutomationMultipleViewPattern { pub unsafe fn GetViewName(&self, view: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetViewName)(windows_core::Interface::as_raw(self), core::mem::transmute(view), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetViewName)(windows_core::Interface::as_raw(self), view, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetCurrentView(&self, view: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentView)(windows_core::Interface::as_raw(self), core::mem::transmute(view)).ok() + (windows_core::Interface::vtable(self).SetCurrentView)(windows_core::Interface::as_raw(self), view).ok() } pub unsafe fn CurrentCurrentView(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11959,7 +11959,7 @@ impl IUIAutomationNotificationEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleNotificationEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(notificationkind), core::mem::transmute(notificationprocessing), core::mem::transmute_copy(displaystring), core::mem::transmute_copy(activityid)).ok() + (windows_core::Interface::vtable(self).HandleNotificationEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), notificationkind, notificationprocessing, core::mem::transmute_copy(displaystring), core::mem::transmute_copy(activityid)).ok() } } #[repr(C)] @@ -12110,7 +12110,7 @@ impl IUIAutomationPatternHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), ptarget.param().abi(), core::mem::transmute(index), core::mem::transmute(pparams), core::mem::transmute(cparams)).ok() + (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), ptarget.param().abi(), index, pparams, cparams).ok() } } #[repr(C)] @@ -12154,10 +12154,10 @@ windows_core::imp::define_interface!(IUIAutomationPatternInstance, IUIAutomation windows_core::imp::interface_hierarchy!(IUIAutomationPatternInstance, windows_core::IUnknown); impl IUIAutomationPatternInstance { pub unsafe fn GetProperty(&self, index: u32, cached: bool, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(index), cached.into(), core::mem::transmute(r#type), core::mem::transmute(pptr)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), index, cached.into(), r#type, core::mem::transmute(pptr)).ok() } pub unsafe fn CallMethod(&self, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallMethod)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pparams), core::mem::transmute(cparams)).ok() + (windows_core::Interface::vtable(self).CallMethod)(windows_core::Interface::as_raw(self), index, pparams, cparams).ok() } } #[repr(C)] @@ -12199,7 +12199,7 @@ impl IUIAutomationPropertyChangedEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandlePropertyChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(propertyid), core::mem::transmute_copy(newvalue)).ok() + (windows_core::Interface::vtable(self).HandlePropertyChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), propertyid, core::mem::transmute_copy(newvalue)).ok() } } #[repr(C)] @@ -12319,7 +12319,7 @@ windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactory, windows_core: impl IUIAutomationProxyFactory { pub unsafe fn CreateProvider(&self, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(idchild), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), hwnd, idobject, idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryId(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12419,12 +12419,12 @@ impl IUIAutomationProxyFactoryEntry { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWinEventsForAutomationEvent(&self, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID, winevents: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWinEventsForAutomationEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(propertyid), core::mem::transmute(winevents)).ok() + (windows_core::Interface::vtable(self).SetWinEventsForAutomationEvent)(windows_core::Interface::as_raw(self), eventid, propertyid, winevents).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWinEventsForAutomationEvent(&self, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWinEventsForAutomationEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(propertyid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWinEventsForAutomationEvent)(windows_core::Interface::as_raw(self), eventid, propertyid, &mut result__).map(|| result__) } } #[repr(C)] @@ -12600,24 +12600,24 @@ impl IUIAutomationProxyFactoryMapping { } pub unsafe fn GetEntry(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEntry)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTable(&self, factorylist: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTable)(windows_core::Interface::as_raw(self), core::mem::transmute(factorylist)).ok() + (windows_core::Interface::vtable(self).SetTable)(windows_core::Interface::as_raw(self), factorylist).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEntries(&self, before: u32, factorylist: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(before), core::mem::transmute(factorylist)).ok() + (windows_core::Interface::vtable(self).InsertEntries)(windows_core::Interface::as_raw(self), before, factorylist).ok() } pub unsafe fn InsertEntry(&self, before: u32, factory: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(before), factory.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertEntry)(windows_core::Interface::as_raw(self), before, factory.param().abi()).ok() } pub unsafe fn RemoveEntry(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveEntry)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn ClearTable(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearTable)(windows_core::Interface::as_raw(self)).ok() @@ -12740,7 +12740,7 @@ windows_core::imp::define_interface!(IUIAutomationRangeValuePattern, IUIAutomati windows_core::imp::interface_hierarchy!(IUIAutomationRangeValuePattern, windows_core::IUnknown); impl IUIAutomationRangeValuePattern { pub unsafe fn SetValue(&self, val: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(val)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val).ok() } pub unsafe fn CurrentValue(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12976,11 +12976,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomationRegistrar, windows_core::IU impl IUIAutomationRegistrar { pub unsafe fn RegisterProperty(&self, property: *const UIAutomationPropertyInfo) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(property), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterProperty)(windows_core::Interface::as_raw(self), property, &mut result__).map(|| result__) } pub unsafe fn RegisterEvent(&self, event: *const UIAutomationEventInfo) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(event), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterEvent)(windows_core::Interface::as_raw(self), event, &mut result__).map(|| result__) } pub unsafe fn RegisterPattern(&self, pattern: *const UIAutomationPatternInfo, ppatternid: *mut i32, ppatternavailablepropertyid: *mut i32, ppropertyids: &mut [i32], peventids: &mut [i32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegisterPattern)(windows_core::Interface::as_raw(self), core::mem::transmute(pattern), core::mem::transmute(ppatternid), core::mem::transmute(ppatternavailablepropertyid), ppropertyids.len().try_into().unwrap(), core::mem::transmute(ppropertyids.as_ptr()), peventids.len().try_into().unwrap(), core::mem::transmute(peventids.as_ptr())).ok() @@ -13068,10 +13068,10 @@ windows_core::imp::define_interface!(IUIAutomationScrollPattern, IUIAutomationSc windows_core::imp::interface_hierarchy!(IUIAutomationScrollPattern, windows_core::IUnknown); impl IUIAutomationScrollPattern { pub unsafe fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalamount), core::mem::transmute(verticalamount)).ok() + (windows_core::Interface::vtable(self).Scroll)(windows_core::Interface::as_raw(self), horizontalamount, verticalamount).ok() } pub unsafe fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScrollPercent)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalpercent), core::mem::transmute(verticalpercent)).ok() + (windows_core::Interface::vtable(self).SetScrollPercent)(windows_core::Interface::as_raw(self), horizontalpercent, verticalpercent).ok() } pub unsafe fn CurrentHorizontalScrollPercent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13891,7 +13891,7 @@ impl IUIAutomationStructureChangedEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleStructureChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(changetype), core::mem::transmute(runtimeid)).ok() + (windows_core::Interface::vtable(self).HandleStructureChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), changetype, runtimeid).ok() } } #[repr(C)] @@ -14204,7 +14204,7 @@ windows_core::imp::define_interface!(IUIAutomationSynchronizedInputPattern, IUIA windows_core::imp::interface_hierarchy!(IUIAutomationSynchronizedInputPattern, windows_core::IUnknown); impl IUIAutomationSynchronizedInputPattern { pub unsafe fn StartListening(&self, inputtype: SynchronizedInputType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartListening)(windows_core::Interface::as_raw(self), core::mem::transmute(inputtype)).ok() + (windows_core::Interface::vtable(self).StartListening)(windows_core::Interface::as_raw(self), inputtype).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -14577,7 +14577,7 @@ impl IUIAutomationTextEditTextChangedEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleTextEditTextChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(texteditchangetype), core::mem::transmute(eventstrings)).ok() + (windows_core::Interface::vtable(self).HandleTextEditTextChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), texteditchangetype, eventstrings).ok() } } #[repr(C)] @@ -14819,15 +14819,15 @@ impl IUIAutomationTextRange { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEndpoints)(windows_core::Interface::as_raw(self), core::mem::transmute(srcendpoint), range.param().abi(), core::mem::transmute(targetendpoint), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareEndpoints)(windows_core::Interface::as_raw(self), srcendpoint, range.param().abi(), targetendpoint, &mut result__).map(|| result__) } pub unsafe fn ExpandToEnclosingUnit(&self, textunit: TextUnit) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(textunit)).ok() + (windows_core::Interface::vtable(self).ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), textunit).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn FindAttribute(&self, attr: UIA_TEXTATTRIBUTE_ID, val: &super::super::System::Variant::VARIANT, backward: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(attr), core::mem::transmute_copy(val), backward.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), attr, core::mem::transmute_copy(val), backward.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: &windows_core::BSTR, backward: bool, ignorecase: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14836,7 +14836,7 @@ impl IUIAutomationTextRange { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeValue)(windows_core::Interface::as_raw(self), core::mem::transmute(attr), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAttributeValue)(windows_core::Interface::as_raw(self), attr, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBoundingRectangles(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -14849,21 +14849,21 @@ impl IUIAutomationTextRange { } pub unsafe fn GetText(&self, maxlength: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(maxlength), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), maxlength, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), unit, count, &mut result__).map(|| result__) } pub unsafe fn MoveEndpointByUnit(&self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveEndpointByUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(endpoint), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveEndpointByUnit)(windows_core::Interface::as_raw(self), endpoint, unit, count, &mut result__).map(|| result__) } pub unsafe fn MoveEndpointByRange(&self, srcendpoint: TextPatternRangeEndpoint, range: P1, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveEndpointByRange)(windows_core::Interface::as_raw(self), core::mem::transmute(srcendpoint), range.param().abi(), core::mem::transmute(targetendpoint)).ok() + (windows_core::Interface::vtable(self).MoveEndpointByRange)(windows_core::Interface::as_raw(self), srcendpoint, range.param().abi(), targetendpoint).ok() } pub unsafe fn Select(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self)).ok() @@ -15246,7 +15246,7 @@ impl IUIAutomationTextRangeArray { } pub unsafe fn GetElement(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetElement)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15357,13 +15357,13 @@ windows_core::imp::define_interface!(IUIAutomationTransformPattern, IUIAutomatio windows_core::imp::interface_hierarchy!(IUIAutomationTransformPattern, windows_core::IUnknown); impl IUIAutomationTransformPattern { pub unsafe fn Move(&self, x: f64, y: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), x, y).ok() } pub unsafe fn Resize(&self, width: f64, height: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn Rotate(&self, degrees: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(degrees)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees).ok() } pub unsafe fn CurrentCanMove(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15516,10 +15516,10 @@ impl core::ops::Deref for IUIAutomationTransformPattern2 { windows_core::imp::interface_hierarchy!(IUIAutomationTransformPattern2, windows_core::IUnknown, IUIAutomationTransformPattern); impl IUIAutomationTransformPattern2 { pub unsafe fn Zoom(&self, zoomvalue: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Zoom)(windows_core::Interface::as_raw(self), core::mem::transmute(zoomvalue)).ok() + (windows_core::Interface::vtable(self).Zoom)(windows_core::Interface::as_raw(self), zoomvalue).ok() } pub unsafe fn ZoomByUnit(&self, zoomunit: ZoomUnit) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ZoomByUnit)(windows_core::Interface::as_raw(self), core::mem::transmute(zoomunit)).ok() + (windows_core::Interface::vtable(self).ZoomByUnit)(windows_core::Interface::as_raw(self), zoomunit).ok() } pub unsafe fn CurrentCanZoom(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16108,10 +16108,10 @@ impl IUIAutomationWindowPattern { } pub unsafe fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForInputIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(milliseconds), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForInputIdle)(windows_core::Interface::as_raw(self), milliseconds, &mut result__).map(|| result__) } pub unsafe fn SetWindowVisualState(&self, state: WindowVisualState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowVisualState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetWindowVisualState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn CurrentCanMaximize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16462,14 +16462,14 @@ windows_core::imp::define_interface!(IWindowProvider, IWindowProvider_Vtbl, 0x98 windows_core::imp::interface_hierarchy!(IWindowProvider, windows_core::IUnknown); impl IWindowProvider { pub unsafe fn SetVisualState(&self, state: WindowVisualState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisualState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetVisualState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForInputIdle)(windows_core::Interface::as_raw(self), core::mem::transmute(milliseconds), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForInputIdle)(windows_core::Interface::as_raw(self), milliseconds, &mut result__).map(|| result__) } pub unsafe fn CanMaximize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs index 6842947eba..a84234d716 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs @@ -2,10 +2,10 @@ windows_core::imp::define_interface!(IUIAnimationInterpolator, IUIAnimationInter windows_core::imp::interface_hierarchy!(IUIAnimationInterpolator, windows_core::IUnknown); impl IUIAnimationInterpolator { pub unsafe fn SetInitialValueAndVelocity(&self, initialvalue: f64, initialvelocity: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialValueAndVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvalue), core::mem::transmute(initialvelocity)).ok() + (windows_core::Interface::vtable(self).SetInitialValueAndVelocity)(windows_core::Interface::as_raw(self), initialvalue, initialvelocity).ok() } pub unsafe fn SetDuration(&self, duration: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), duration).ok() } pub unsafe fn GetDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17,11 +17,11 @@ impl IUIAnimationInterpolator { } pub unsafe fn InterpolateValue(&self, offset: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InterpolateValue)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InterpolateValue)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn InterpolateVelocity(&self, offset: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InterpolateVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InterpolateVelocity)(windows_core::Interface::as_raw(self), offset, &mut result__).map(|| result__) } pub unsafe fn GetDependencies(&self, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDependencies)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvaluedependencies), core::mem::transmute(initialvelocitydependencies), core::mem::transmute(durationdependencies)).ok() @@ -125,10 +125,10 @@ impl IUIAnimationInterpolator2 { (windows_core::Interface::vtable(self).GetDimension)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialValueAndVelocity(&self, initialvalue: *const f64, initialvelocity: *const f64, cdimension: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialValueAndVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvalue), core::mem::transmute(initialvelocity), core::mem::transmute(cdimension)).ok() + (windows_core::Interface::vtable(self).SetInitialValueAndVelocity)(windows_core::Interface::as_raw(self), initialvalue, initialvelocity, cdimension).ok() } pub unsafe fn SetDuration(&self, duration: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(duration)).ok() + (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), duration).ok() } pub unsafe fn GetDuration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -138,16 +138,16 @@ impl IUIAnimationInterpolator2 { (windows_core::Interface::vtable(self).GetFinalValue)(windows_core::Interface::as_raw(self), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } pub unsafe fn InterpolateValue(&self, offset: f64, value: &mut [f64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InterpolateValue)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).InterpolateValue)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } pub unsafe fn InterpolateVelocity(&self, offset: f64, velocity: &mut [f64]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InterpolateVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(offset), core::mem::transmute(velocity.as_ptr()), velocity.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).InterpolateVelocity)(windows_core::Interface::as_raw(self), offset, core::mem::transmute(velocity.as_ptr()), velocity.len().try_into().unwrap()).ok() } pub unsafe fn GetPrimitiveInterpolation(&self, interpolation: P0, cdimension: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPrimitiveInterpolation)(windows_core::Interface::as_raw(self), interpolation.param().abi(), core::mem::transmute(cdimension)).ok() + (windows_core::Interface::vtable(self).GetPrimitiveInterpolation)(windows_core::Interface::as_raw(self), interpolation.param().abi(), cdimension).ok() } pub unsafe fn GetDependencies(&self, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDependencies)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvaluedependencies), core::mem::transmute(initialvelocitydependencies), core::mem::transmute(durationdependencies)).ok() @@ -252,7 +252,7 @@ impl IUIAnimationLoopIterationChangeHandler2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLoopIterationChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), core::mem::transmute(id), core::mem::transmute(newiterationcount), core::mem::transmute(olditerationcount)).ok() + (windows_core::Interface::vtable(self).OnLoopIterationChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), id, newiterationcount, olditerationcount).ok() } } #[repr(C)] @@ -281,48 +281,48 @@ windows_core::imp::interface_hierarchy!(IUIAnimationManager, windows_core::IUnkn impl IUIAnimationManager { pub unsafe fn CreateAnimationVariable(&self, initialvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAnimationVariable)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAnimationVariable)(windows_core::Interface::as_raw(self), initialvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ScheduleTransition(&self, variable: P0, transition: P1, timenow: f64) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScheduleTransition)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), core::mem::transmute(timenow)).ok() + (windows_core::Interface::vtable(self).ScheduleTransition)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), timenow).ok() } pub unsafe fn CreateStoryboard(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CreateStoryboard)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FinishAllStoryboards(&self, completiondeadline: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishAllStoryboards)(windows_core::Interface::as_raw(self), core::mem::transmute(completiondeadline)).ok() + (windows_core::Interface::vtable(self).FinishAllStoryboards)(windows_core::Interface::as_raw(self), completiondeadline).ok() } pub unsafe fn AbandonAllStoryboards(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AbandonAllStoryboards)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Update(&self, timenow: f64, updateresult: Option<*mut UI_ANIMATION_UPDATE_RESULT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(timenow), core::mem::transmute(updateresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), timenow, core::mem::transmute(updateresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetVariableFromTag(&self, object: P0, id: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVariableFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVariableFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStoryboardFromTag(&self, object: P0, id: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStoryboardFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStoryboardFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAnimationMode(&self, mode: UI_ANIMATION_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAnimationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetAnimationMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -361,7 +361,7 @@ impl IUIAnimationManager { (windows_core::Interface::vtable(self).SetConcludePriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetDefaultLongestAcceptableDelay(&self, delay: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultLongestAcceptableDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(delay)).ok() + (windows_core::Interface::vtable(self).SetDefaultLongestAcceptableDelay)(windows_core::Interface::as_raw(self), delay).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -556,41 +556,41 @@ impl IUIAnimationManager2 { } pub unsafe fn CreateAnimationVariable(&self, initialvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAnimationVariable)(windows_core::Interface::as_raw(self), core::mem::transmute(initialvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAnimationVariable)(windows_core::Interface::as_raw(self), initialvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ScheduleTransition(&self, variable: P0, transition: P1, timenow: f64) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScheduleTransition)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), core::mem::transmute(timenow)).ok() + (windows_core::Interface::vtable(self).ScheduleTransition)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), timenow).ok() } pub unsafe fn CreateStoryboard(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CreateStoryboard)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FinishAllStoryboards(&self, completiondeadline: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishAllStoryboards)(windows_core::Interface::as_raw(self), core::mem::transmute(completiondeadline)).ok() + (windows_core::Interface::vtable(self).FinishAllStoryboards)(windows_core::Interface::as_raw(self), completiondeadline).ok() } pub unsafe fn AbandonAllStoryboards(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AbandonAllStoryboards)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Update(&self, timenow: f64, updateresult: Option<*mut UI_ANIMATION_UPDATE_RESULT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(timenow), core::mem::transmute(updateresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), timenow, core::mem::transmute(updateresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetVariableFromTag(&self, object: P0, id: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVariableFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVariableFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStoryboardFromTag(&self, object: P0, id: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStoryboardFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStoryboardFromTag)(windows_core::Interface::as_raw(self), object.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EstimateNextEventTime(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -601,7 +601,7 @@ impl IUIAnimationManager2 { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAnimationMode(&self, mode: UI_ANIMATION_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAnimationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetAnimationMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -640,7 +640,7 @@ impl IUIAnimationManager2 { (windows_core::Interface::vtable(self).SetConcludePriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetDefaultLongestAcceptableDelay(&self, delay: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultLongestAcceptableDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(delay)).ok() + (windows_core::Interface::vtable(self).SetDefaultLongestAcceptableDelay)(windows_core::Interface::as_raw(self), delay).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -856,7 +856,7 @@ windows_core::imp::define_interface!(IUIAnimationManagerEventHandler, IUIAnimati windows_core::imp::interface_hierarchy!(IUIAnimationManagerEventHandler, windows_core::IUnknown); impl IUIAnimationManagerEventHandler { pub unsafe fn OnManagerStatusChanged(&self, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnManagerStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newstatus), core::mem::transmute(previousstatus)).ok() + (windows_core::Interface::vtable(self).OnManagerStatusChanged)(windows_core::Interface::as_raw(self), newstatus, previousstatus).ok() } } #[repr(C)] @@ -884,7 +884,7 @@ windows_core::imp::define_interface!(IUIAnimationManagerEventHandler2, IUIAnimat windows_core::imp::interface_hierarchy!(IUIAnimationManagerEventHandler2, windows_core::IUnknown); impl IUIAnimationManagerEventHandler2 { pub unsafe fn OnManagerStatusChanged(&self, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnManagerStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newstatus), core::mem::transmute(previousstatus)).ok() + (windows_core::Interface::vtable(self).OnManagerStatusChanged)(windows_core::Interface::as_raw(self), newstatus, previousstatus).ok() } } #[repr(C)] @@ -912,10 +912,10 @@ windows_core::imp::define_interface!(IUIAnimationPrimitiveInterpolation, IUIAnim windows_core::imp::interface_hierarchy!(IUIAnimationPrimitiveInterpolation, windows_core::IUnknown); impl IUIAnimationPrimitiveInterpolation { pub unsafe fn AddCubic(&self, dimension: u32, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddCubic)(windows_core::Interface::as_raw(self), core::mem::transmute(dimension), core::mem::transmute(beginoffset), core::mem::transmute(constantcoefficient), core::mem::transmute(linearcoefficient), core::mem::transmute(quadraticcoefficient), core::mem::transmute(cubiccoefficient)).ok() + (windows_core::Interface::vtable(self).AddCubic)(windows_core::Interface::as_raw(self), dimension, beginoffset, constantcoefficient, linearcoefficient, quadraticcoefficient, cubiccoefficient).ok() } pub unsafe fn AddSinusoidal(&self, dimension: u32, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSinusoidal)(windows_core::Interface::as_raw(self), core::mem::transmute(dimension), core::mem::transmute(beginoffset), core::mem::transmute(bias), core::mem::transmute(amplitude), core::mem::transmute(frequency), core::mem::transmute(phase)).ok() + (windows_core::Interface::vtable(self).AddSinusoidal)(windows_core::Interface::as_raw(self), dimension, beginoffset, bias, amplitude, frequency, phase).ok() } } #[repr(C)] @@ -957,7 +957,7 @@ impl IUIAnimationPriorityComparison { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.param().abi(), newstoryboard.param().abi(), core::mem::transmute(priorityeffect)).ok() + (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.param().abi(), newstoryboard.param().abi(), priorityeffect).ok() } } #[repr(C)] @@ -989,7 +989,7 @@ impl IUIAnimationPriorityComparison2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.param().abi(), newstoryboard.param().abi(), core::mem::transmute(priorityeffect)).ok() + (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.param().abi(), newstoryboard.param().abi(), priorityeffect).ok() } } #[repr(C)] @@ -1025,7 +1025,7 @@ impl IUIAnimationStoryboard { } pub unsafe fn AddKeyframeAtOffset(&self, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(existingkeyframe), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), existingkeyframe, offset, &mut result__).map(|| result__) } pub unsafe fn AddKeyframeAfterTransition(&self, transition: P0) -> windows_core::Result where @@ -1039,17 +1039,17 @@ impl IUIAnimationStoryboard { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), core::mem::transmute(startkeyframe)).ok() + (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe).ok() } pub unsafe fn AddTransitionBetweenKeyframes(&self, variable: P0, transition: P1, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), core::mem::transmute(startkeyframe), core::mem::transmute(endkeyframe)).ok() + (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe, endkeyframe).ok() } pub unsafe fn RepeatBetweenKeyframes(&self, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, repetitioncount: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), core::mem::transmute(startkeyframe), core::mem::transmute(endkeyframe), core::mem::transmute(repetitioncount)).ok() + (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), startkeyframe, endkeyframe, repetitioncount).ok() } pub unsafe fn HoldVariable(&self, variable: P0) -> windows_core::Result<()> where @@ -1058,16 +1058,16 @@ impl IUIAnimationStoryboard { (windows_core::Interface::vtable(self).HoldVariable)(windows_core::Interface::as_raw(self), variable.param().abi()).ok() } pub unsafe fn SetLongestAcceptableDelay(&self, delay: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLongestAcceptableDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(delay)).ok() + (windows_core::Interface::vtable(self).SetLongestAcceptableDelay)(windows_core::Interface::as_raw(self), delay).ok() } pub unsafe fn Schedule(&self, timenow: f64, schedulingresult: Option<*mut UI_ANIMATION_SCHEDULING_RESULT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Schedule)(windows_core::Interface::as_raw(self), core::mem::transmute(timenow), core::mem::transmute(schedulingresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Schedule)(windows_core::Interface::as_raw(self), timenow, core::mem::transmute(schedulingresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Conclude(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Conclude)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Finish(&self, completiondeadline: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), core::mem::transmute(completiondeadline)).ok() + (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), completiondeadline).ok() } pub unsafe fn Abandon(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abandon)(windows_core::Interface::as_raw(self)).ok() @@ -1076,7 +1076,7 @@ impl IUIAnimationStoryboard { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetTag(&self, object: Option<*mut Option>, id: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTag)(windows_core::Interface::as_raw(self), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() @@ -1268,7 +1268,7 @@ impl IUIAnimationStoryboard2 { } pub unsafe fn AddKeyframeAtOffset(&self, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(existingkeyframe), core::mem::transmute(offset), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), existingkeyframe, offset, &mut result__).map(|| result__) } pub unsafe fn AddKeyframeAfterTransition(&self, transition: P0) -> windows_core::Result where @@ -1282,20 +1282,20 @@ impl IUIAnimationStoryboard2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), core::mem::transmute(startkeyframe)).ok() + (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe).ok() } pub unsafe fn AddTransitionBetweenKeyframes(&self, variable: P0, transition: P1, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), core::mem::transmute(startkeyframe), core::mem::transmute(endkeyframe)).ok() + (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe, endkeyframe).ok() } pub unsafe fn RepeatBetweenKeyframes(&self, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: P4, id: usize, fregisterfornextanimationevent: bool) -> windows_core::Result<()> where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), core::mem::transmute(startkeyframe), core::mem::transmute(endkeyframe), core::mem::transmute(crepetition), core::mem::transmute(repeatmode), piterationchangehandler.param().abi(), core::mem::transmute(id), fregisterfornextanimationevent.into()).ok() + (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), startkeyframe, endkeyframe, crepetition, repeatmode, piterationchangehandler.param().abi(), id, fregisterfornextanimationevent.into()).ok() } pub unsafe fn HoldVariable(&self, variable: P0) -> windows_core::Result<()> where @@ -1304,19 +1304,19 @@ impl IUIAnimationStoryboard2 { (windows_core::Interface::vtable(self).HoldVariable)(windows_core::Interface::as_raw(self), variable.param().abi()).ok() } pub unsafe fn SetLongestAcceptableDelay(&self, delay: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLongestAcceptableDelay)(windows_core::Interface::as_raw(self), core::mem::transmute(delay)).ok() + (windows_core::Interface::vtable(self).SetLongestAcceptableDelay)(windows_core::Interface::as_raw(self), delay).ok() } pub unsafe fn SetSkipDuration(&self, secondsduration: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSkipDuration)(windows_core::Interface::as_raw(self), core::mem::transmute(secondsduration)).ok() + (windows_core::Interface::vtable(self).SetSkipDuration)(windows_core::Interface::as_raw(self), secondsduration).ok() } pub unsafe fn Schedule(&self, timenow: f64, schedulingresult: Option<*mut UI_ANIMATION_SCHEDULING_RESULT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Schedule)(windows_core::Interface::as_raw(self), core::mem::transmute(timenow), core::mem::transmute(schedulingresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Schedule)(windows_core::Interface::as_raw(self), timenow, core::mem::transmute(schedulingresult.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Conclude(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Conclude)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Finish(&self, completiondeadline: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), core::mem::transmute(completiondeadline)).ok() + (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), completiondeadline).ok() } pub unsafe fn Abandon(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abandon)(windows_core::Interface::as_raw(self)).ok() @@ -1325,7 +1325,7 @@ impl IUIAnimationStoryboard2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetTag(&self, object: Option<*mut Option>, id: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTag)(windows_core::Interface::as_raw(self), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() @@ -1519,7 +1519,7 @@ impl IUIAnimationStoryboardEventHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStoryboardStatusChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), core::mem::transmute(newstatus), core::mem::transmute(previousstatus)).ok() + (windows_core::Interface::vtable(self).OnStoryboardStatusChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), newstatus, previousstatus).ok() } pub unsafe fn OnStoryboardUpdated(&self, storyboard: P0) -> windows_core::Result<()> where @@ -1566,7 +1566,7 @@ impl IUIAnimationStoryboardEventHandler2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStoryboardStatusChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), core::mem::transmute(newstatus), core::mem::transmute(previousstatus)).ok() + (windows_core::Interface::vtable(self).OnStoryboardStatusChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), newstatus, previousstatus).ok() } pub unsafe fn OnStoryboardUpdated(&self, storyboard: P0) -> windows_core::Result<()> where @@ -1613,7 +1613,7 @@ impl IUIAnimationTimer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTimerUpdateHandler)(windows_core::Interface::as_raw(self), updatehandler.param().abi(), core::mem::transmute(idlebehavior)).ok() + (windows_core::Interface::vtable(self).SetTimerUpdateHandler)(windows_core::Interface::as_raw(self), updatehandler.param().abi(), idlebehavior).ok() } pub unsafe fn SetTimerEventHandler(&self, handler: P0) -> windows_core::Result<()> where @@ -1635,7 +1635,7 @@ impl IUIAnimationTimer { (windows_core::Interface::vtable(self).GetTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFrameRateThreshold(&self, framespersecond: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameRateThreshold)(windows_core::Interface::as_raw(self), core::mem::transmute(framespersecond)).ok() + (windows_core::Interface::vtable(self).SetFrameRateThreshold)(windows_core::Interface::as_raw(self), framespersecond).ok() } } #[repr(C)] @@ -1714,7 +1714,7 @@ windows_core::imp::define_interface!(IUIAnimationTimerClientEventHandler, IUIAni windows_core::imp::interface_hierarchy!(IUIAnimationTimerClientEventHandler, windows_core::IUnknown); impl IUIAnimationTimerClientEventHandler { pub unsafe fn OnTimerClientStatusChanged(&self, newstatus: UI_ANIMATION_TIMER_CLIENT_STATUS, previousstatus: UI_ANIMATION_TIMER_CLIENT_STATUS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTimerClientStatusChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(newstatus), core::mem::transmute(previousstatus)).ok() + (windows_core::Interface::vtable(self).OnTimerClientStatusChanged)(windows_core::Interface::as_raw(self), newstatus, previousstatus).ok() } } #[repr(C)] @@ -1748,7 +1748,7 @@ impl IUIAnimationTimerEventHandler { (windows_core::Interface::vtable(self).OnPostUpdate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnRenderingTooSlow(&self, framespersecond: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnRenderingTooSlow)(windows_core::Interface::as_raw(self), core::mem::transmute(framespersecond)).ok() + (windows_core::Interface::vtable(self).OnRenderingTooSlow)(windows_core::Interface::as_raw(self), framespersecond).ok() } } #[repr(C)] @@ -1794,7 +1794,7 @@ windows_core::imp::interface_hierarchy!(IUIAnimationTimerUpdateHandler, windows_ impl IUIAnimationTimerUpdateHandler { pub unsafe fn OnUpdate(&self, timenow: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(timenow), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), timenow, &mut result__).map(|| result__) } pub unsafe fn SetTimerClientEventHandler(&self, handler: P0) -> windows_core::Result<()> where @@ -1854,10 +1854,10 @@ windows_core::imp::define_interface!(IUIAnimationTransition, IUIAnimationTransit windows_core::imp::interface_hierarchy!(IUIAnimationTransition, windows_core::IUnknown); impl IUIAnimationTransition { pub unsafe fn SetInitialValue(&self, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialValue)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetInitialValue)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetInitialVelocity(&self, velocity: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(velocity)).ok() + (windows_core::Interface::vtable(self).SetInitialVelocity)(windows_core::Interface::as_raw(self), velocity).ok() } pub unsafe fn IsDurationKnown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsDurationKnown)(windows_core::Interface::as_raw(self)).ok() @@ -1926,13 +1926,13 @@ impl IUIAnimationTransition2 { (windows_core::Interface::vtable(self).GetDimension)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialValue(&self, value: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialValue)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetInitialValue)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetInitialVectorValue(&self, value: &[f64]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInitialVectorValue)(windows_core::Interface::as_raw(self), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } pub unsafe fn SetInitialVelocity(&self, velocity: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(velocity)).ok() + (windows_core::Interface::vtable(self).SetInitialVelocity)(windows_core::Interface::as_raw(self), velocity).ok() } pub unsafe fn SetInitialVectorVelocity(&self, velocity: &[f64]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInitialVectorVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(velocity.as_ptr()), velocity.len().try_into().unwrap()).ok() @@ -2104,51 +2104,51 @@ windows_core::imp::interface_hierarchy!(IUIAnimationTransitionLibrary, windows_c impl IUIAnimationTransitionLibrary { pub unsafe fn CreateInstantaneousTransition(&self, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstantaneousTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstantaneousTransition)(windows_core::Interface::as_raw(self), finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateConstantTransition(&self, duration: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateConstantTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateConstantTransition)(windows_core::Interface::as_raw(self), duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDiscreteTransition(&self, delay: f64, finalvalue: f64, hold: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDiscreteTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(delay), core::mem::transmute(finalvalue), core::mem::transmute(hold), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDiscreteTransition)(windows_core::Interface::as_raw(self), delay, finalvalue, hold, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearTransition(&self, duration: f64, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearTransitionFromSpeed(&self, speed: f64, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearTransitionFromSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(speed), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearTransitionFromSpeed)(windows_core::Interface::as_raw(self), speed, finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSinusoidalTransitionFromVelocity(&self, duration: f64, period: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(period), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromVelocity)(windows_core::Interface::as_raw(self), duration, period, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSinusoidalTransitionFromRange(&self, duration: f64, minimumvalue: f64, maximumvalue: f64, period: f64, slope: UI_ANIMATION_SLOPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromRange)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(minimumvalue), core::mem::transmute(maximumvalue), core::mem::transmute(period), core::mem::transmute(slope), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromRange)(windows_core::Interface::as_raw(self), duration, minimumvalue, maximumvalue, period, slope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAccelerateDecelerateTransition(&self, duration: f64, finalvalue: f64, accelerationratio: f64, decelerationratio: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAccelerateDecelerateTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), core::mem::transmute(accelerationratio), core::mem::transmute(decelerationratio), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAccelerateDecelerateTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, accelerationratio, decelerationratio, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateReversalTransition(&self, duration: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReversalTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateReversalTransition)(windows_core::Interface::as_raw(self), duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCubicTransition(&self, duration: f64, finalvalue: f64, finalvelocity: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCubicTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), core::mem::transmute(finalvelocity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCubicTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, finalvelocity, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSmoothStopTransition(&self, maximumduration: f64, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSmoothStopTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(maximumduration), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSmoothStopTransition)(windows_core::Interface::as_raw(self), maximumduration, finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateParabolicTransitionFromAcceleration(&self, finalvalue: f64, finalvelocity: f64, acceleration: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateParabolicTransitionFromAcceleration)(windows_core::Interface::as_raw(self), core::mem::transmute(finalvalue), core::mem::transmute(finalvelocity), core::mem::transmute(acceleration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateParabolicTransitionFromAcceleration)(windows_core::Interface::as_raw(self), finalvalue, finalvelocity, acceleration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2329,7 +2329,7 @@ windows_core::imp::interface_hierarchy!(IUIAnimationTransitionLibrary2, windows_ impl IUIAnimationTransitionLibrary2 { pub unsafe fn CreateInstantaneousTransition(&self, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstantaneousTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstantaneousTransition)(windows_core::Interface::as_raw(self), finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstantaneousVectorTransition(&self, finalvalue: &[f64]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2337,71 +2337,71 @@ impl IUIAnimationTransitionLibrary2 { } pub unsafe fn CreateConstantTransition(&self, duration: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateConstantTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateConstantTransition)(windows_core::Interface::as_raw(self), duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDiscreteTransition(&self, delay: f64, finalvalue: f64, hold: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDiscreteTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(delay), core::mem::transmute(finalvalue), core::mem::transmute(hold), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDiscreteTransition)(windows_core::Interface::as_raw(self), delay, finalvalue, hold, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDiscreteVectorTransition(&self, delay: f64, finalvalue: &[f64], hold: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDiscreteVectorTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(delay), core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), core::mem::transmute(hold), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDiscreteVectorTransition)(windows_core::Interface::as_raw(self), delay, core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), hold, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearTransition(&self, duration: f64, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearVectorTransition(&self, duration: f64, finalvalue: &[f64]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearVectorTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearVectorTransition)(windows_core::Interface::as_raw(self), duration, core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearTransitionFromSpeed(&self, speed: f64, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearTransitionFromSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(speed), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearTransitionFromSpeed)(windows_core::Interface::as_raw(self), speed, finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLinearVectorTransitionFromSpeed(&self, speed: f64, finalvalue: &[f64]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearVectorTransitionFromSpeed)(windows_core::Interface::as_raw(self), core::mem::transmute(speed), core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLinearVectorTransitionFromSpeed)(windows_core::Interface::as_raw(self), speed, core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSinusoidalTransitionFromVelocity(&self, duration: f64, period: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(period), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromVelocity)(windows_core::Interface::as_raw(self), duration, period, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSinusoidalTransitionFromRange(&self, duration: f64, minimumvalue: f64, maximumvalue: f64, period: f64, slope: UI_ANIMATION_SLOPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromRange)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(minimumvalue), core::mem::transmute(maximumvalue), core::mem::transmute(period), core::mem::transmute(slope), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSinusoidalTransitionFromRange)(windows_core::Interface::as_raw(self), duration, minimumvalue, maximumvalue, period, slope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAccelerateDecelerateTransition(&self, duration: f64, finalvalue: f64, accelerationratio: f64, decelerationratio: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAccelerateDecelerateTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), core::mem::transmute(accelerationratio), core::mem::transmute(decelerationratio), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAccelerateDecelerateTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, accelerationratio, decelerationratio, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateReversalTransition(&self, duration: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReversalTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateReversalTransition)(windows_core::Interface::as_raw(self), duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCubicTransition(&self, duration: f64, finalvalue: f64, finalvelocity: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCubicTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), core::mem::transmute(finalvelocity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCubicTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, finalvelocity, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCubicVectorTransition(&self, duration: f64, finalvalue: *const f64, finalvelocity: *const f64, cdimension: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCubicVectorTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), core::mem::transmute(finalvelocity), core::mem::transmute(cdimension), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCubicVectorTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, finalvelocity, cdimension, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSmoothStopTransition(&self, maximumduration: f64, finalvalue: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSmoothStopTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(maximumduration), core::mem::transmute(finalvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSmoothStopTransition)(windows_core::Interface::as_raw(self), maximumduration, finalvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateParabolicTransitionFromAcceleration(&self, finalvalue: f64, finalvelocity: f64, acceleration: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateParabolicTransitionFromAcceleration)(windows_core::Interface::as_raw(self), core::mem::transmute(finalvalue), core::mem::transmute(finalvelocity), core::mem::transmute(acceleration), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateParabolicTransitionFromAcceleration)(windows_core::Interface::as_raw(self), finalvalue, finalvelocity, acceleration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCubicBezierLinearTransition(&self, duration: f64, finalvalue: f64, x1: f64, y1: f64, x2: f64, y2: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCubicBezierLinearTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCubicBezierLinearTransition)(windows_core::Interface::as_raw(self), duration, finalvalue, x1, y1, x2, y2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCubicBezierLinearVectorTransition(&self, duration: f64, finalvalue: &[f64], x1: f64, y1: f64, x2: f64, y2: f64) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCubicBezierLinearVectorTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(duration), core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), core::mem::transmute(x1), core::mem::transmute(y1), core::mem::transmute(x2), core::mem::transmute(y2), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCubicBezierLinearVectorTransition)(windows_core::Interface::as_raw(self), duration, core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), x1, y1, x2, y2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2700,19 +2700,19 @@ impl IUIAnimationVariable { (windows_core::Interface::vtable(self).GetCurrentStoryboard)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetLowerBound(&self, bound: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowerBound)(windows_core::Interface::as_raw(self), core::mem::transmute(bound)).ok() + (windows_core::Interface::vtable(self).SetLowerBound)(windows_core::Interface::as_raw(self), bound).ok() } pub unsafe fn SetUpperBound(&self, bound: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpperBound)(windows_core::Interface::as_raw(self), core::mem::transmute(bound)).ok() + (windows_core::Interface::vtable(self).SetUpperBound)(windows_core::Interface::as_raw(self), bound).ok() } pub unsafe fn SetRoundingMode(&self, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRoundingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetRoundingMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetTag(&self, object: Option<*mut Option>, id: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTag)(windows_core::Interface::as_raw(self), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() @@ -2952,25 +2952,25 @@ impl IUIAnimationVariable2 { (windows_core::Interface::vtable(self).GetCurrentStoryboard)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetLowerBound(&self, bound: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLowerBound)(windows_core::Interface::as_raw(self), core::mem::transmute(bound)).ok() + (windows_core::Interface::vtable(self).SetLowerBound)(windows_core::Interface::as_raw(self), bound).ok() } pub unsafe fn SetLowerBoundVector(&self, bound: &[f64]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLowerBoundVector)(windows_core::Interface::as_raw(self), core::mem::transmute(bound.as_ptr()), bound.len().try_into().unwrap()).ok() } pub unsafe fn SetUpperBound(&self, bound: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUpperBound)(windows_core::Interface::as_raw(self), core::mem::transmute(bound)).ok() + (windows_core::Interface::vtable(self).SetUpperBound)(windows_core::Interface::as_raw(self), bound).ok() } pub unsafe fn SetUpperBoundVector(&self, bound: &[f64]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetUpperBoundVector)(windows_core::Interface::as_raw(self), core::mem::transmute(bound.as_ptr()), bound.len().try_into().unwrap()).ok() } pub unsafe fn SetRoundingMode(&self, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRoundingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetRoundingMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), core::mem::transmute(id)).ok() + (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetTag(&self, object: Option<*mut Option>, id: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTag)(windows_core::Interface::as_raw(self), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(id.unwrap_or(core::mem::zeroed()))).ok() @@ -3258,7 +3258,7 @@ impl IUIAnimationVariableChangeHandler { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), core::mem::transmute(newvalue), core::mem::transmute(previousvalue)).ok() + (windows_core::Interface::vtable(self).OnValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), newvalue, previousvalue).ok() } } #[repr(C)] @@ -3290,7 +3290,7 @@ impl IUIAnimationVariableChangeHandler2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), core::mem::transmute(newvalue), core::mem::transmute(previousvalue), core::mem::transmute(cdimension)).ok() + (windows_core::Interface::vtable(self).OnValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), newvalue, previousvalue, cdimension).ok() } } #[repr(C)] @@ -3353,7 +3353,7 @@ impl IUIAnimationVariableIntegerChangeHandler { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIntegerValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), core::mem::transmute(newvalue), core::mem::transmute(previousvalue)).ok() + (windows_core::Interface::vtable(self).OnIntegerValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), newvalue, previousvalue).ok() } } #[repr(C)] @@ -3385,7 +3385,7 @@ impl IUIAnimationVariableIntegerChangeHandler2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIntegerValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), core::mem::transmute(newvalue), core::mem::transmute(previousvalue), core::mem::transmute(cdimension)).ok() + (windows_core::Interface::vtable(self).OnIntegerValueChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), variable.param().abi(), newvalue, previousvalue, cdimension).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs index 88933c2c4c..0c3c30e222 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -21,38 +21,38 @@ where #[inline] pub unsafe fn CMCheckColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lparesult: *mut u8) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMCheckColors(hcmtransform : isize, lpainputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, lparesult : *mut u8) -> super::super::Foundation:: BOOL); - CMCheckColors(core::mem::transmute(hcmtransform), core::mem::transmute(lpainputcolors), core::mem::transmute(ncolors), core::mem::transmute(ctinput), core::mem::transmute(lparesult)) + CMCheckColors(hcmtransform, lpainputcolors, ncolors, ctinput, core::mem::transmute(lparesult)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CMCheckColorsInGamut(hcmtransform: isize, lpargbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, lparesult: *mut u8, ncount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMCheckColorsInGamut(hcmtransform : isize, lpargbtriple : *const super::super::Graphics::Gdi:: RGBTRIPLE, lparesult : *mut u8, ncount : u32) -> super::super::Foundation:: BOOL); - CMCheckColorsInGamut(core::mem::transmute(hcmtransform), core::mem::transmute(lpargbtriple), core::mem::transmute(lparesult), core::mem::transmute(ncount)) + CMCheckColorsInGamut(hcmtransform, lpargbtriple, core::mem::transmute(lparesult), ncount) } #[inline] pub unsafe fn CMCheckRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, lparesult: *mut u8, pfncallback: LPBMCALLBACKFN, ulcallbackdata: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMCheckRGBs(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, lparesult : *mut u8, pfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - CMCheckRGBs(core::mem::transmute(hcmtransform), core::mem::transmute(lpsrcbits), core::mem::transmute(bminput), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwstride), core::mem::transmute(lparesult), core::mem::transmute(pfncallback), core::mem::transmute(ulcallbackdata)) + CMCheckRGBs(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwstride, core::mem::transmute(lparesult), pfncallback, ulcallbackdata) } #[inline] pub unsafe fn CMConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMConvertColorNameToIndex(hprofile : isize, pacolorname : *const *const i8, paindex : *mut u32, dwcount : u32) -> super::super::Foundation:: BOOL); - CMConvertColorNameToIndex(core::mem::transmute(hprofile), core::mem::transmute(pacolorname), core::mem::transmute(paindex), core::mem::transmute(dwcount)) + CMConvertColorNameToIndex(hprofile, pacolorname, core::mem::transmute(paindex), dwcount) } #[inline] pub unsafe fn CMConvertIndexToColorName(hprofile: isize, paindex: *const u32, pacolorname: *mut *mut i8, dwcount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMConvertIndexToColorName(hprofile : isize, paindex : *const u32, pacolorname : *mut *mut i8, dwcount : u32) -> super::super::Foundation:: BOOL); - CMConvertIndexToColorName(core::mem::transmute(hprofile), core::mem::transmute(paindex), core::mem::transmute(pacolorname), core::mem::transmute(dwcount)) + CMConvertIndexToColorName(hprofile, paindex, core::mem::transmute(pacolorname), dwcount) } #[inline] pub unsafe fn CMCreateDeviceLinkProfile(pahprofiles: &[isize], padwintents: &[u32], dwflags: u32, lpprofiledata: *mut *mut u8) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMCreateDeviceLinkProfile(pahprofiles : *const isize, nprofiles : u32, padwintents : *const u32, nintents : u32, dwflags : u32, lpprofiledata : *mut *mut u8) -> super::super::Foundation:: BOOL); - CMCreateDeviceLinkProfile(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintents.as_ptr()), padwintents.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(lpprofiledata)) + CMCreateDeviceLinkProfile(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintents.as_ptr()), padwintents.len().try_into().unwrap(), dwflags, core::mem::transmute(lpprofiledata)) } #[inline] pub unsafe fn CMCreateMultiProfileTransform(pahprofiles: &[isize], padwintents: &[u32], dwflags: u32) -> isize { windows_targets::link!("icm32.dll" "system" fn CMCreateMultiProfileTransform(pahprofiles : *const isize, nprofiles : u32, padwintents : *const u32, nintents : u32, dwflags : u32) -> isize); - CMCreateMultiProfileTransform(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintents.as_ptr()), padwintents.len().try_into().unwrap(), core::mem::transmute(dwflags)) + CMCreateMultiProfileTransform(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintents.as_ptr()), padwintents.len().try_into().unwrap(), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -70,81 +70,81 @@ pub unsafe fn CMCreateProfileW(lpcolorspace: *mut LOGCOLORSPACEW, lpprofiledata: #[inline] pub unsafe fn CMCreateTransform(lpcolorspace: *const LOGCOLORSPACEA, lpdevcharacter: *const core::ffi::c_void, lptargetdevcharacter: *const core::ffi::c_void) -> isize { windows_targets::link!("icm32.dll" "system" fn CMCreateTransform(lpcolorspace : *const LOGCOLORSPACEA, lpdevcharacter : *const core::ffi::c_void, lptargetdevcharacter : *const core::ffi::c_void) -> isize); - CMCreateTransform(core::mem::transmute(lpcolorspace), core::mem::transmute(lpdevcharacter), core::mem::transmute(lptargetdevcharacter)) + CMCreateTransform(lpcolorspace, lpdevcharacter, lptargetdevcharacter) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CMCreateTransformExt(lpcolorspace: *const LOGCOLORSPACEA, lpdevcharacter: *const core::ffi::c_void, lptargetdevcharacter: *const core::ffi::c_void, dwflags: u32) -> isize { windows_targets::link!("icm32.dll" "system" fn CMCreateTransformExt(lpcolorspace : *const LOGCOLORSPACEA, lpdevcharacter : *const core::ffi::c_void, lptargetdevcharacter : *const core::ffi::c_void, dwflags : u32) -> isize); - CMCreateTransformExt(core::mem::transmute(lpcolorspace), core::mem::transmute(lpdevcharacter), core::mem::transmute(lptargetdevcharacter), core::mem::transmute(dwflags)) + CMCreateTransformExt(lpcolorspace, lpdevcharacter, lptargetdevcharacter, dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CMCreateTransformExtW(lpcolorspace: *const LOGCOLORSPACEW, lpdevcharacter: *const core::ffi::c_void, lptargetdevcharacter: *const core::ffi::c_void, dwflags: u32) -> isize { windows_targets::link!("icm32.dll" "system" fn CMCreateTransformExtW(lpcolorspace : *const LOGCOLORSPACEW, lpdevcharacter : *const core::ffi::c_void, lptargetdevcharacter : *const core::ffi::c_void, dwflags : u32) -> isize); - CMCreateTransformExtW(core::mem::transmute(lpcolorspace), core::mem::transmute(lpdevcharacter), core::mem::transmute(lptargetdevcharacter), core::mem::transmute(dwflags)) + CMCreateTransformExtW(lpcolorspace, lpdevcharacter, lptargetdevcharacter, dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CMCreateTransformW(lpcolorspace: *const LOGCOLORSPACEW, lpdevcharacter: *const core::ffi::c_void, lptargetdevcharacter: *const core::ffi::c_void) -> isize { windows_targets::link!("icm32.dll" "system" fn CMCreateTransformW(lpcolorspace : *const LOGCOLORSPACEW, lpdevcharacter : *const core::ffi::c_void, lptargetdevcharacter : *const core::ffi::c_void) -> isize); - CMCreateTransformW(core::mem::transmute(lpcolorspace), core::mem::transmute(lpdevcharacter), core::mem::transmute(lptargetdevcharacter)) + CMCreateTransformW(lpcolorspace, lpdevcharacter, lptargetdevcharacter) } #[inline] pub unsafe fn CMDeleteTransform(hcmtransform: isize) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMDeleteTransform(hcmtransform : isize) -> super::super::Foundation:: BOOL); - CMDeleteTransform(core::mem::transmute(hcmtransform)) + CMDeleteTransform(hcmtransform) } #[inline] pub unsafe fn CMGetInfo(dwinfo: u32) -> u32 { windows_targets::link!("icm32.dll" "system" fn CMGetInfo(dwinfo : u32) -> u32); - CMGetInfo(core::mem::transmute(dwinfo)) + CMGetInfo(dwinfo) } #[inline] pub unsafe fn CMGetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMGetNamedProfileInfo(hprofile : isize, pnamedprofileinfo : *mut NAMED_PROFILE_INFO) -> super::super::Foundation:: BOOL); - CMGetNamedProfileInfo(core::mem::transmute(hprofile), core::mem::transmute(pnamedprofileinfo)) + CMGetNamedProfileInfo(hprofile, core::mem::transmute(pnamedprofileinfo)) } #[inline] pub unsafe fn CMIsProfileValid(hprofile: isize, lpbvalid: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMIsProfileValid(hprofile : isize, lpbvalid : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CMIsProfileValid(core::mem::transmute(hprofile), core::mem::transmute(lpbvalid)) + CMIsProfileValid(hprofile, core::mem::transmute(lpbvalid)) } #[inline] pub unsafe fn CMTranslateColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lpaoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMTranslateColors(hcmtransform : isize, lpainputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, lpaoutputcolors : *mut COLOR, ctoutput : COLORTYPE) -> super::super::Foundation:: BOOL); - CMTranslateColors(core::mem::transmute(hcmtransform), core::mem::transmute(lpainputcolors), core::mem::transmute(ncolors), core::mem::transmute(ctinput), core::mem::transmute(lpaoutputcolors), core::mem::transmute(ctoutput)) + CMTranslateColors(hcmtransform, lpainputcolors, ncolors, ctinput, core::mem::transmute(lpaoutputcolors), ctoutput) } #[inline] pub unsafe fn CMTranslateRGB(hcmtransform: isize, colorref: super::super::Foundation::COLORREF, lpcolorref: *mut u32, dwflags: u32) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMTranslateRGB(hcmtransform : isize, colorref : super::super::Foundation:: COLORREF, lpcolorref : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); - CMTranslateRGB(core::mem::transmute(hcmtransform), core::mem::transmute(colorref), core::mem::transmute(lpcolorref), core::mem::transmute(dwflags)) + CMTranslateRGB(hcmtransform, colorref, core::mem::transmute(lpcolorref), dwflags) } #[inline] pub unsafe fn CMTranslateRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, lpdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwtranslatedirection: u32) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMTranslateRGBs(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, lpdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwtranslatedirection : u32) -> super::super::Foundation:: BOOL); - CMTranslateRGBs(core::mem::transmute(hcmtransform), core::mem::transmute(lpsrcbits), core::mem::transmute(bminput), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwstride), core::mem::transmute(lpdestbits), core::mem::transmute(bmoutput), core::mem::transmute(dwtranslatedirection)) + CMTranslateRGBs(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwstride, core::mem::transmute(lpdestbits), bmoutput, dwtranslatedirection) } #[inline] pub unsafe fn CMTranslateRGBsExt(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwinputstride: u32, lpdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwoutputstride: u32, lpfncallback: LPBMCALLBACKFN, ulcallbackdata: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("icm32.dll" "system" fn CMTranslateRGBsExt(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwinputstride : u32, lpdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwoutputstride : u32, lpfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - CMTranslateRGBsExt(core::mem::transmute(hcmtransform), core::mem::transmute(lpsrcbits), core::mem::transmute(bminput), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwinputstride), core::mem::transmute(lpdestbits), core::mem::transmute(bmoutput), core::mem::transmute(dwoutputstride), core::mem::transmute(lpfncallback), core::mem::transmute(ulcallbackdata)) + CMTranslateRGBsExt(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwinputstride, core::mem::transmute(lpdestbits), bmoutput, dwoutputstride, lpfncallback, ulcallbackdata) } #[inline] pub unsafe fn CheckBitmapBits(hcolortransform: isize, psrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, paresult: *mut u8, pfncallback: Option, lpcallbackdata: Option) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn CheckBitmapBits(hcolortransform : isize, psrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, paresult : *mut u8, pfncallback : LPBMCALLBACKFN, lpcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - CheckBitmapBits(core::mem::transmute(hcolortransform), core::mem::transmute(psrcbits), core::mem::transmute(bminput), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwstride), core::mem::transmute(paresult), core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcallbackdata.unwrap_or(core::mem::zeroed()))) + CheckBitmapBits(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwstride, core::mem::transmute(paresult), core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcallbackdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn CheckColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paresult: *mut u8) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn CheckColors(hcolortransform : isize, painputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, paresult : *mut u8) -> super::super::Foundation:: BOOL); - CheckColors(core::mem::transmute(hcolortransform), core::mem::transmute(painputcolors), core::mem::transmute(ncolors), core::mem::transmute(ctinput), core::mem::transmute(paresult)) + CheckColors(hcolortransform, painputcolors, ncolors, ctinput, core::mem::transmute(paresult)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CheckColorsInGamut(hdc: super::super::Graphics::Gdi::HDC, lprgbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, dlpbuffer: *mut core::ffi::c_void, ncount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn CheckColorsInGamut(hdc : super::super::Graphics::Gdi:: HDC, lprgbtriple : *const super::super::Graphics::Gdi:: RGBTRIPLE, dlpbuffer : *mut core::ffi::c_void, ncount : u32) -> super::super::Foundation:: BOOL); - CheckColorsInGamut(core::mem::transmute(hdc), core::mem::transmute(lprgbtriple), core::mem::transmute(dlpbuffer), core::mem::transmute(ncount)) + CheckColorsInGamut(hdc, lprgbtriple, core::mem::transmute(dlpbuffer), ncount) } #[inline] pub unsafe fn CloseColorProfile(hprofile: Option) -> super::super::Foundation::BOOL { @@ -155,13 +155,13 @@ pub unsafe fn CloseColorProfile(hprofile: Option) -> super::super::Founda #[inline] pub unsafe fn ColorCorrectPalette(hdc: super::super::Graphics::Gdi::HDC, hpal: super::super::Graphics::Gdi::HPALETTE, defirst: u32, num: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ColorCorrectPalette(hdc : super::super::Graphics::Gdi:: HDC, hpal : super::super::Graphics::Gdi:: HPALETTE, defirst : u32, num : u32) -> super::super::Foundation:: BOOL); - ColorCorrectPalette(core::mem::transmute(hdc), core::mem::transmute(hpal), core::mem::transmute(defirst), core::mem::transmute(num)) + ColorCorrectPalette(hdc, hpal, defirst, num) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ColorMatchToTarget(hdc: super::super::Graphics::Gdi::HDC, hdctarget: super::super::Graphics::Gdi::HDC, action: COLOR_MATCH_TO_TARGET_ACTION) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn ColorMatchToTarget(hdc : super::super::Graphics::Gdi:: HDC, hdctarget : super::super::Graphics::Gdi:: HDC, action : COLOR_MATCH_TO_TARGET_ACTION) -> super::super::Foundation:: BOOL); - ColorMatchToTarget(core::mem::transmute(hdc), core::mem::transmute(hdctarget), core::mem::transmute(action)) + ColorMatchToTarget(hdc, hdctarget, action) } #[inline] pub unsafe fn ColorProfileAddDisplayAssociation(scope: WCS_PROFILE_MANAGEMENT_SCOPE, profilename: P1, targetadapterid: super::super::Foundation::LUID, sourceid: u32, setasdefault: bool, associateasadvancedcolor: bool) -> windows_core::Result<()> @@ -169,24 +169,24 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn ColorProfileAddDisplayAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, setasdefault : super::super::Foundation:: BOOL, associateasadvancedcolor : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - ColorProfileAddDisplayAssociation(core::mem::transmute(scope), profilename.param().abi(), core::mem::transmute(targetadapterid), core::mem::transmute(sourceid), setasdefault.into(), associateasadvancedcolor.into()).ok() + ColorProfileAddDisplayAssociation(scope, profilename.param().abi(), core::mem::transmute(targetadapterid), sourceid, setasdefault.into(), associateasadvancedcolor.into()).ok() } #[inline] pub unsafe fn ColorProfileGetDisplayDefault(scope: WCS_PROFILE_MANAGEMENT_SCOPE, targetadapterid: super::super::Foundation::LUID, sourceid: u32, profiletype: COLORPROFILETYPE, profilesubtype: COLORPROFILESUBTYPE) -> windows_core::Result { windows_targets::link!("mscms.dll" "system" fn ColorProfileGetDisplayDefault(scope : WCS_PROFILE_MANAGEMENT_SCOPE, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, profiletype : COLORPROFILETYPE, profilesubtype : COLORPROFILESUBTYPE, profilename : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ColorProfileGetDisplayDefault(core::mem::transmute(scope), core::mem::transmute(targetadapterid), core::mem::transmute(sourceid), core::mem::transmute(profiletype), core::mem::transmute(profilesubtype), &mut result__).map(|| core::mem::transmute(result__)) + ColorProfileGetDisplayDefault(scope, core::mem::transmute(targetadapterid), sourceid, profiletype, profilesubtype, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ColorProfileGetDisplayList(scope: WCS_PROFILE_MANAGEMENT_SCOPE, targetadapterid: super::super::Foundation::LUID, sourceid: u32, profilelist: *mut *mut windows_core::PWSTR, profilecount: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mscms.dll" "system" fn ColorProfileGetDisplayList(scope : WCS_PROFILE_MANAGEMENT_SCOPE, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, profilelist : *mut *mut windows_core::PWSTR, profilecount : *mut u32) -> windows_core::HRESULT); - ColorProfileGetDisplayList(core::mem::transmute(scope), core::mem::transmute(targetadapterid), core::mem::transmute(sourceid), core::mem::transmute(profilelist), core::mem::transmute(profilecount)).ok() + ColorProfileGetDisplayList(scope, core::mem::transmute(targetadapterid), sourceid, core::mem::transmute(profilelist), core::mem::transmute(profilecount)).ok() } #[inline] pub unsafe fn ColorProfileGetDisplayUserScope(targetadapterid: super::super::Foundation::LUID, sourceid: u32) -> windows_core::Result { windows_targets::link!("mscms.dll" "system" fn ColorProfileGetDisplayUserScope(targetadapterid : super::super::Foundation:: LUID, sourceid : u32, scope : *mut WCS_PROFILE_MANAGEMENT_SCOPE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - ColorProfileGetDisplayUserScope(core::mem::transmute(targetadapterid), core::mem::transmute(sourceid), &mut result__).map(|| core::mem::transmute(result__)) + ColorProfileGetDisplayUserScope(core::mem::transmute(targetadapterid), sourceid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ColorProfileRemoveDisplayAssociation(scope: WCS_PROFILE_MANAGEMENT_SCOPE, profilename: P1, targetadapterid: super::super::Foundation::LUID, sourceid: u32, dissociateadvancedcolor: bool) -> windows_core::Result<()> @@ -194,7 +194,7 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn ColorProfileRemoveDisplayAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, dissociateadvancedcolor : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - ColorProfileRemoveDisplayAssociation(core::mem::transmute(scope), profilename.param().abi(), core::mem::transmute(targetadapterid), core::mem::transmute(sourceid), dissociateadvancedcolor.into()).ok() + ColorProfileRemoveDisplayAssociation(scope, profilename.param().abi(), core::mem::transmute(targetadapterid), sourceid, dissociateadvancedcolor.into()).ok() } #[inline] pub unsafe fn ColorProfileSetDisplayDefaultAssociation(scope: WCS_PROFILE_MANAGEMENT_SCOPE, profilename: P1, profiletype: COLORPROFILETYPE, profilesubtype: COLORPROFILESUBTYPE, targetadapterid: super::super::Foundation::LUID, sourceid: u32) -> windows_core::Result<()> @@ -202,73 +202,73 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn ColorProfileSetDisplayDefaultAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, profiletype : COLORPROFILETYPE, profilesubtype : COLORPROFILESUBTYPE, targetadapterid : super::super::Foundation:: LUID, sourceid : u32) -> windows_core::HRESULT); - ColorProfileSetDisplayDefaultAssociation(core::mem::transmute(scope), profilename.param().abi(), core::mem::transmute(profiletype), core::mem::transmute(profilesubtype), core::mem::transmute(targetadapterid), core::mem::transmute(sourceid)).ok() + ColorProfileSetDisplayDefaultAssociation(scope, profilename.param().abi(), profiletype, profilesubtype, core::mem::transmute(targetadapterid), sourceid).ok() } #[inline] pub unsafe fn ConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn ConvertColorNameToIndex(hprofile : isize, pacolorname : *const *const i8, paindex : *mut u32, dwcount : u32) -> super::super::Foundation:: BOOL); - ConvertColorNameToIndex(core::mem::transmute(hprofile), core::mem::transmute(pacolorname), core::mem::transmute(paindex), core::mem::transmute(dwcount)) + ConvertColorNameToIndex(hprofile, pacolorname, core::mem::transmute(paindex), dwcount) } #[inline] pub unsafe fn ConvertIndexToColorName(hprofile: isize, paindex: *const u32, pacolorname: *mut *mut i8, dwcount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn ConvertIndexToColorName(hprofile : isize, paindex : *const u32, pacolorname : *mut *mut i8, dwcount : u32) -> super::super::Foundation:: BOOL); - ConvertIndexToColorName(core::mem::transmute(hprofile), core::mem::transmute(paindex), core::mem::transmute(pacolorname), core::mem::transmute(dwcount)) + ConvertIndexToColorName(hprofile, paindex, core::mem::transmute(pacolorname), dwcount) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateColorSpaceA(lplcs: *const LOGCOLORSPACEA) -> HCOLORSPACE { windows_targets::link!("gdi32.dll" "system" fn CreateColorSpaceA(lplcs : *const LOGCOLORSPACEA) -> HCOLORSPACE); - CreateColorSpaceA(core::mem::transmute(lplcs)) + CreateColorSpaceA(lplcs) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateColorSpaceW(lplcs: *const LOGCOLORSPACEW) -> HCOLORSPACE { windows_targets::link!("gdi32.dll" "system" fn CreateColorSpaceW(lplcs : *const LOGCOLORSPACEW) -> HCOLORSPACE); - CreateColorSpaceW(core::mem::transmute(lplcs)) + CreateColorSpaceW(lplcs) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateColorTransformA(plogcolorspace: *const LOGCOLORSPACEA, hdestprofile: isize, htargetprofile: isize, dwflags: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn CreateColorTransformA(plogcolorspace : *const LOGCOLORSPACEA, hdestprofile : isize, htargetprofile : isize, dwflags : u32) -> isize); - CreateColorTransformA(core::mem::transmute(plogcolorspace), core::mem::transmute(hdestprofile), core::mem::transmute(htargetprofile), core::mem::transmute(dwflags)) + CreateColorTransformA(plogcolorspace, hdestprofile, htargetprofile, dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateColorTransformW(plogcolorspace: *const LOGCOLORSPACEW, hdestprofile: isize, htargetprofile: isize, dwflags: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn CreateColorTransformW(plogcolorspace : *const LOGCOLORSPACEW, hdestprofile : isize, htargetprofile : isize, dwflags : u32) -> isize); - CreateColorTransformW(core::mem::transmute(plogcolorspace), core::mem::transmute(hdestprofile), core::mem::transmute(htargetprofile), core::mem::transmute(dwflags)) + CreateColorTransformW(plogcolorspace, hdestprofile, htargetprofile, dwflags) } #[inline] pub unsafe fn CreateDeviceLinkProfile(hprofile: &[isize], padwintent: &[u32], dwflags: u32, pprofiledata: *mut *mut u8, indexpreferredcmm: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn CreateDeviceLinkProfile(hprofile : *const isize, nprofiles : u32, padwintent : *const u32, nintents : u32, dwflags : u32, pprofiledata : *mut *mut u8, indexpreferredcmm : u32) -> super::super::Foundation:: BOOL); - CreateDeviceLinkProfile(core::mem::transmute(hprofile.as_ptr()), hprofile.len().try_into().unwrap(), core::mem::transmute(padwintent.as_ptr()), padwintent.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(pprofiledata), core::mem::transmute(indexpreferredcmm)) + CreateDeviceLinkProfile(core::mem::transmute(hprofile.as_ptr()), hprofile.len().try_into().unwrap(), core::mem::transmute(padwintent.as_ptr()), padwintent.len().try_into().unwrap(), dwflags, core::mem::transmute(pprofiledata), indexpreferredcmm) } #[inline] pub unsafe fn CreateMultiProfileTransform(pahprofiles: &[isize], padwintent: &[u32], dwflags: u32, indexpreferredcmm: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn CreateMultiProfileTransform(pahprofiles : *const isize, nprofiles : u32, padwintent : *const u32, nintents : u32, dwflags : u32, indexpreferredcmm : u32) -> isize); - CreateMultiProfileTransform(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintent.as_ptr()), padwintent.len().try_into().unwrap(), core::mem::transmute(dwflags), core::mem::transmute(indexpreferredcmm)) + CreateMultiProfileTransform(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintent.as_ptr()), padwintent.len().try_into().unwrap(), dwflags, indexpreferredcmm) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateProfileFromLogColorSpaceA(plogcolorspace: *const LOGCOLORSPACEA, pprofile: *mut *mut u8) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn CreateProfileFromLogColorSpaceA(plogcolorspace : *const LOGCOLORSPACEA, pprofile : *mut *mut u8) -> super::super::Foundation:: BOOL); - CreateProfileFromLogColorSpaceA(core::mem::transmute(plogcolorspace), core::mem::transmute(pprofile)) + CreateProfileFromLogColorSpaceA(plogcolorspace, core::mem::transmute(pprofile)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateProfileFromLogColorSpaceW(plogcolorspace: *const LOGCOLORSPACEW, pprofile: *mut *mut u8) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn CreateProfileFromLogColorSpaceW(plogcolorspace : *const LOGCOLORSPACEW, pprofile : *mut *mut u8) -> super::super::Foundation:: BOOL); - CreateProfileFromLogColorSpaceW(core::mem::transmute(plogcolorspace), core::mem::transmute(pprofile)) + CreateProfileFromLogColorSpaceW(plogcolorspace, core::mem::transmute(pprofile)) } #[inline] pub unsafe fn DeleteColorSpace(hcs: HCOLORSPACE) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn DeleteColorSpace(hcs : HCOLORSPACE) -> super::super::Foundation:: BOOL); - DeleteColorSpace(core::mem::transmute(hcs)) + DeleteColorSpace(hcs) } #[inline] pub unsafe fn DeleteColorTransform(hxform: isize) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn DeleteColorTransform(hxform : isize) -> super::super::Foundation:: BOOL); - DeleteColorTransform(core::mem::transmute(hxform)) + DeleteColorTransform(hxform) } #[inline] pub unsafe fn DisassociateColorProfileFromDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL @@ -296,7 +296,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn EnumColorProfilesA(pmachinename : windows_core::PCSTR, penumrecord : *const ENUMTYPEA, penumerationbuffer : *mut u8, pdwsizeofenumerationbuffer : *mut u32, pnprofiles : *mut u32) -> super::super::Foundation:: BOOL); - EnumColorProfilesA(pmachinename.param().abi(), core::mem::transmute(penumrecord), core::mem::transmute(penumerationbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsizeofenumerationbuffer), core::mem::transmute(pnprofiles.unwrap_or(core::mem::zeroed()))) + EnumColorProfilesA(pmachinename.param().abi(), penumrecord, core::mem::transmute(penumerationbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsizeofenumerationbuffer), core::mem::transmute(pnprofiles.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn EnumColorProfilesW(pmachinename: P0, penumrecord: *const ENUMTYPEW, penumerationbuffer: Option<*mut u8>, pdwsizeofenumerationbuffer: *mut u32, pnprofiles: Option<*mut u32>) -> super::super::Foundation::BOOL @@ -304,24 +304,24 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn EnumColorProfilesW(pmachinename : windows_core::PCWSTR, penumrecord : *const ENUMTYPEW, penumerationbuffer : *mut u8, pdwsizeofenumerationbuffer : *mut u32, pnprofiles : *mut u32) -> super::super::Foundation:: BOOL); - EnumColorProfilesW(pmachinename.param().abi(), core::mem::transmute(penumrecord), core::mem::transmute(penumerationbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsizeofenumerationbuffer), core::mem::transmute(pnprofiles.unwrap_or(core::mem::zeroed()))) + EnumColorProfilesW(pmachinename.param().abi(), penumrecord, core::mem::transmute(penumerationbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwsizeofenumerationbuffer), core::mem::transmute(pnprofiles.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EnumICMProfilesA(hdc: super::super::Graphics::Gdi::HDC, proc: ICMENUMPROCA, param2: Option) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EnumICMProfilesA(hdc : super::super::Graphics::Gdi:: HDC, proc : ICMENUMPROCA, param2 : super::super::Foundation:: LPARAM) -> i32); - EnumICMProfilesA(core::mem::transmute(hdc), core::mem::transmute(proc), core::mem::transmute(param2.unwrap_or(core::mem::zeroed()))) + EnumICMProfilesA(hdc, proc, core::mem::transmute(param2.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EnumICMProfilesW(hdc: super::super::Graphics::Gdi::HDC, proc: ICMENUMPROCW, param2: Option) -> i32 { windows_targets::link!("gdi32.dll" "system" fn EnumICMProfilesW(hdc : super::super::Graphics::Gdi:: HDC, proc : ICMENUMPROCW, param2 : super::super::Foundation:: LPARAM) -> i32); - EnumICMProfilesW(core::mem::transmute(hdc), core::mem::transmute(proc), core::mem::transmute(param2.unwrap_or(core::mem::zeroed()))) + EnumICMProfilesW(hdc, proc, core::mem::transmute(param2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetCMMInfo(hcolortransform: isize, param1: u32) -> u32 { windows_targets::link!("mscms.dll" "system" fn GetCMMInfo(hcolortransform : isize, param1 : u32) -> u32); - GetCMMInfo(core::mem::transmute(hcolortransform), core::mem::transmute(param1)) + GetCMMInfo(hcolortransform, param1) } #[inline] pub unsafe fn GetColorDirectoryA(pmachinename: P0, pbuffer: Option, pdwsize: *mut u32) -> super::super::Foundation::BOOL @@ -342,84 +342,84 @@ where #[inline] pub unsafe fn GetColorProfileElement(hprofile: isize, tag: u32, dwoffset: u32, pcbelement: *mut u32, pelement: Option<*mut core::ffi::c_void>, pbreference: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetColorProfileElement(hprofile : isize, tag : u32, dwoffset : u32, pcbelement : *mut u32, pelement : *mut core::ffi::c_void, pbreference : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetColorProfileElement(core::mem::transmute(hprofile), core::mem::transmute(tag), core::mem::transmute(dwoffset), core::mem::transmute(pcbelement), core::mem::transmute(pelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbreference)) + GetColorProfileElement(hprofile, tag, dwoffset, core::mem::transmute(pcbelement), core::mem::transmute(pelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbreference)) } #[inline] pub unsafe fn GetColorProfileElementTag(hprofile: isize, dwindex: u32, ptag: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetColorProfileElementTag(hprofile : isize, dwindex : u32, ptag : *mut u32) -> super::super::Foundation:: BOOL); - GetColorProfileElementTag(core::mem::transmute(hprofile), core::mem::transmute(dwindex), core::mem::transmute(ptag)) + GetColorProfileElementTag(hprofile, dwindex, core::mem::transmute(ptag)) } #[inline] pub unsafe fn GetColorProfileFromHandle(hprofile: isize, pprofile: Option<*mut u8>, pcbprofile: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetColorProfileFromHandle(hprofile : isize, pprofile : *mut u8, pcbprofile : *mut u32) -> super::super::Foundation:: BOOL); - GetColorProfileFromHandle(core::mem::transmute(hprofile), core::mem::transmute(pprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprofile)) + GetColorProfileFromHandle(hprofile, core::mem::transmute(pprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbprofile)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetColorProfileHeader(hprofile: isize, pheader: *mut PROFILEHEADER) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetColorProfileHeader(hprofile : isize, pheader : *mut PROFILEHEADER) -> super::super::Foundation:: BOOL); - GetColorProfileHeader(core::mem::transmute(hprofile), core::mem::transmute(pheader)) + GetColorProfileHeader(hprofile, core::mem::transmute(pheader)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetColorSpace(hdc: super::super::Graphics::Gdi::HDC) -> HCOLORSPACE { windows_targets::link!("gdi32.dll" "system" fn GetColorSpace(hdc : super::super::Graphics::Gdi:: HDC) -> HCOLORSPACE); - GetColorSpace(core::mem::transmute(hdc)) + GetColorSpace(hdc) } #[inline] pub unsafe fn GetCountColorProfileElements(hprofile: isize, pnelementcount: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetCountColorProfileElements(hprofile : isize, pnelementcount : *mut u32) -> super::super::Foundation:: BOOL); - GetCountColorProfileElements(core::mem::transmute(hprofile), core::mem::transmute(pnelementcount)) + GetCountColorProfileElements(hprofile, core::mem::transmute(pnelementcount)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetDeviceGammaRamp(hdc: super::super::Graphics::Gdi::HDC, lpramp: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetDeviceGammaRamp(hdc : super::super::Graphics::Gdi:: HDC, lpramp : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetDeviceGammaRamp(core::mem::transmute(hdc), core::mem::transmute(lpramp)) + GetDeviceGammaRamp(hdc, core::mem::transmute(lpramp)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetICMProfileA(hdc: super::super::Graphics::Gdi::HDC, pbufsize: *mut u32, pszfilename: Option) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetICMProfileA(hdc : super::super::Graphics::Gdi:: HDC, pbufsize : *mut u32, pszfilename : windows_core::PSTR) -> super::super::Foundation:: BOOL); - GetICMProfileA(core::mem::transmute(hdc), core::mem::transmute(pbufsize), core::mem::transmute(pszfilename.unwrap_or(core::mem::zeroed()))) + GetICMProfileA(hdc, core::mem::transmute(pbufsize), core::mem::transmute(pszfilename.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetICMProfileW(hdc: super::super::Graphics::Gdi::HDC, pbufsize: *mut u32, pszfilename: Option) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetICMProfileW(hdc : super::super::Graphics::Gdi:: HDC, pbufsize : *mut u32, pszfilename : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - GetICMProfileW(core::mem::transmute(hdc), core::mem::transmute(pbufsize), core::mem::transmute(pszfilename.unwrap_or(core::mem::zeroed()))) + GetICMProfileW(hdc, core::mem::transmute(pbufsize), core::mem::transmute(pszfilename.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetLogColorSpaceA(hcolorspace: HCOLORSPACE, lpbuffer: *mut LOGCOLORSPACEA, nsize: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceA(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEA, nsize : u32) -> super::super::Foundation:: BOOL); - GetLogColorSpaceA(core::mem::transmute(hcolorspace), core::mem::transmute(lpbuffer), core::mem::transmute(nsize)) + GetLogColorSpaceA(hcolorspace, core::mem::transmute(lpbuffer), nsize) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetLogColorSpaceW(hcolorspace: HCOLORSPACE, lpbuffer: *mut LOGCOLORSPACEW, nsize: u32) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceW(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEW, nsize : u32) -> super::super::Foundation:: BOOL); - GetLogColorSpaceW(core::mem::transmute(hcolorspace), core::mem::transmute(lpbuffer), core::mem::transmute(nsize)) + GetLogColorSpaceW(hcolorspace, core::mem::transmute(lpbuffer), nsize) } #[inline] pub unsafe fn GetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetNamedProfileInfo(hprofile : isize, pnamedprofileinfo : *mut NAMED_PROFILE_INFO) -> super::super::Foundation:: BOOL); - GetNamedProfileInfo(core::mem::transmute(hprofile), core::mem::transmute(pnamedprofileinfo)) + GetNamedProfileInfo(hprofile, core::mem::transmute(pnamedprofileinfo)) } #[inline] pub unsafe fn GetPS2ColorRenderingDictionary(hprofile: isize, dwintent: u32, pps2colorrenderingdictionary: Option<*mut u8>, pcbps2colorrenderingdictionary: *mut u32, pbbinary: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetPS2ColorRenderingDictionary(hprofile : isize, dwintent : u32, pps2colorrenderingdictionary : *mut u8, pcbps2colorrenderingdictionary : *mut u32, pbbinary : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetPS2ColorRenderingDictionary(core::mem::transmute(hprofile), core::mem::transmute(dwintent), core::mem::transmute(pps2colorrenderingdictionary.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbps2colorrenderingdictionary), core::mem::transmute(pbbinary)) + GetPS2ColorRenderingDictionary(hprofile, dwintent, core::mem::transmute(pps2colorrenderingdictionary.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbps2colorrenderingdictionary), core::mem::transmute(pbbinary)) } #[inline] pub unsafe fn GetPS2ColorRenderingIntent(hprofile: isize, dwintent: u32, pbuffer: Option<*mut u8>, pcbps2colorrenderingintent: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetPS2ColorRenderingIntent(hprofile : isize, dwintent : u32, pbuffer : *mut u8, pcbps2colorrenderingintent : *mut u32) -> super::super::Foundation:: BOOL); - GetPS2ColorRenderingIntent(core::mem::transmute(hprofile), core::mem::transmute(dwintent), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbps2colorrenderingintent)) + GetPS2ColorRenderingIntent(hprofile, dwintent, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbps2colorrenderingintent)) } #[inline] pub unsafe fn GetPS2ColorSpaceArray(hprofile: isize, dwintent: u32, dwcsatype: u32, pps2colorspacearray: Option<*mut u8>, pcbps2colorspacearray: *mut u32, pbbinary: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn GetPS2ColorSpaceArray(hprofile : isize, dwintent : u32, dwcsatype : u32, pps2colorspacearray : *mut u8, pcbps2colorspacearray : *mut u32, pbbinary : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetPS2ColorSpaceArray(core::mem::transmute(hprofile), core::mem::transmute(dwintent), core::mem::transmute(dwcsatype), core::mem::transmute(pps2colorspacearray.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbps2colorspacearray), core::mem::transmute(pbbinary)) + GetPS2ColorSpaceArray(hprofile, dwintent, dwcsatype, core::mem::transmute(pps2colorspacearray.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbps2colorspacearray), core::mem::transmute(pbbinary)) } #[inline] pub unsafe fn GetStandardColorSpaceProfileA(pmachinename: P0, dwscs: u32, pbuffer: Option, pcbsize: *mut u32) -> super::super::Foundation::BOOL @@ -427,7 +427,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn GetStandardColorSpaceProfileA(pmachinename : windows_core::PCSTR, dwscs : u32, pbuffer : windows_core::PSTR, pcbsize : *mut u32) -> super::super::Foundation:: BOOL); - GetStandardColorSpaceProfileA(pmachinename.param().abi(), core::mem::transmute(dwscs), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) + GetStandardColorSpaceProfileA(pmachinename.param().abi(), dwscs, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) } #[inline] pub unsafe fn GetStandardColorSpaceProfileW(pmachinename: P0, dwscs: u32, pbuffer: Option, pcbsize: *mut u32) -> super::super::Foundation::BOOL @@ -435,7 +435,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn GetStandardColorSpaceProfileW(pmachinename : windows_core::PCWSTR, dwscs : u32, pbuffer : windows_core::PWSTR, pcbsize : *mut u32) -> super::super::Foundation:: BOOL); - GetStandardColorSpaceProfileW(pmachinename.param().abi(), core::mem::transmute(dwscs), core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) + GetStandardColorSpaceProfileW(pmachinename.param().abi(), dwscs, core::mem::transmute(pbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) } #[inline] pub unsafe fn InstallColorProfileA(pmachinename: P0, pprofilename: P1) -> super::super::Foundation::BOOL @@ -458,22 +458,22 @@ where #[inline] pub unsafe fn IsColorProfileTagPresent(hprofile: isize, tag: u32, pbpresent: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn IsColorProfileTagPresent(hprofile : isize, tag : u32, pbpresent : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsColorProfileTagPresent(core::mem::transmute(hprofile), core::mem::transmute(tag), core::mem::transmute(pbpresent)) + IsColorProfileTagPresent(hprofile, tag, core::mem::transmute(pbpresent)) } #[inline] pub unsafe fn IsColorProfileValid(hprofile: isize, pbvalid: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn IsColorProfileValid(hprofile : isize, pbvalid : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsColorProfileValid(core::mem::transmute(hprofile), core::mem::transmute(pbvalid)) + IsColorProfileValid(hprofile, core::mem::transmute(pbvalid)) } #[inline] pub unsafe fn OpenColorProfileA(pprofile: *const PROFILE, dwdesiredaccess: u32, dwsharemode: u32, dwcreationmode: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn OpenColorProfileA(pprofile : *const PROFILE, dwdesiredaccess : u32, dwsharemode : u32, dwcreationmode : u32) -> isize); - OpenColorProfileA(core::mem::transmute(pprofile), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwcreationmode)) + OpenColorProfileA(pprofile, dwdesiredaccess, dwsharemode, dwcreationmode) } #[inline] pub unsafe fn OpenColorProfileW(pprofile: *const PROFILE, dwdesiredaccess: u32, dwsharemode: u32, dwcreationmode: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn OpenColorProfileW(pprofile : *const PROFILE, dwdesiredaccess : u32, dwsharemode : u32, dwcreationmode : u32) -> isize); - OpenColorProfileW(core::mem::transmute(pprofile), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwcreationmode)) + OpenColorProfileW(pprofile, dwdesiredaccess, dwsharemode, dwcreationmode) } #[inline] pub unsafe fn RegisterCMMA(pmachinename: P0, cmmid: u32, pcmmdll: P2) -> super::super::Foundation::BOOL @@ -482,7 +482,7 @@ where P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn RegisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32, pcmmdll : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - RegisterCMMA(pmachinename.param().abi(), core::mem::transmute(cmmid), pcmmdll.param().abi()) + RegisterCMMA(pmachinename.param().abi(), cmmid, pcmmdll.param().abi()) } #[inline] pub unsafe fn RegisterCMMW(pmachinename: P0, cmmid: u32, pcmmdll: P2) -> super::super::Foundation::BOOL @@ -491,51 +491,51 @@ where P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn RegisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32, pcmmdll : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - RegisterCMMW(pmachinename.param().abi(), core::mem::transmute(cmmid), pcmmdll.param().abi()) + RegisterCMMW(pmachinename.param().abi(), cmmid, pcmmdll.param().abi()) } #[inline] pub unsafe fn SelectCMM(dwcmmtype: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn SelectCMM(dwcmmtype : u32) -> super::super::Foundation:: BOOL); - SelectCMM(core::mem::transmute(dwcmmtype)) + SelectCMM(dwcmmtype) } #[inline] pub unsafe fn SetColorProfileElement(hprofile: isize, tag: u32, dwoffset: u32, pcbelement: *const u32, pelement: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn SetColorProfileElement(hprofile : isize, tag : u32, dwoffset : u32, pcbelement : *const u32, pelement : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetColorProfileElement(core::mem::transmute(hprofile), core::mem::transmute(tag), core::mem::transmute(dwoffset), core::mem::transmute(pcbelement), core::mem::transmute(pelement)) + SetColorProfileElement(hprofile, tag, dwoffset, pcbelement, pelement) } #[inline] pub unsafe fn SetColorProfileElementReference(hprofile: isize, newtag: u32, reftag: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn SetColorProfileElementReference(hprofile : isize, newtag : u32, reftag : u32) -> super::super::Foundation:: BOOL); - SetColorProfileElementReference(core::mem::transmute(hprofile), core::mem::transmute(newtag), core::mem::transmute(reftag)) + SetColorProfileElementReference(hprofile, newtag, reftag) } #[inline] pub unsafe fn SetColorProfileElementSize(hprofile: isize, tagtype: u32, pcbelement: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn SetColorProfileElementSize(hprofile : isize, tagtype : u32, pcbelement : u32) -> super::super::Foundation:: BOOL); - SetColorProfileElementSize(core::mem::transmute(hprofile), core::mem::transmute(tagtype), core::mem::transmute(pcbelement)) + SetColorProfileElementSize(hprofile, tagtype, pcbelement) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetColorProfileHeader(hprofile: isize, pheader: *const PROFILEHEADER) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn SetColorProfileHeader(hprofile : isize, pheader : *const PROFILEHEADER) -> super::super::Foundation:: BOOL); - SetColorProfileHeader(core::mem::transmute(hprofile), core::mem::transmute(pheader)) + SetColorProfileHeader(hprofile, pheader) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetColorSpace(hdc: super::super::Graphics::Gdi::HDC, hcs: HCOLORSPACE) -> HCOLORSPACE { windows_targets::link!("gdi32.dll" "system" fn SetColorSpace(hdc : super::super::Graphics::Gdi:: HDC, hcs : HCOLORSPACE) -> HCOLORSPACE); - SetColorSpace(core::mem::transmute(hdc), core::mem::transmute(hcs)) + SetColorSpace(hdc, hcs) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetDeviceGammaRamp(hdc: super::super::Graphics::Gdi::HDC, lpramp: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("gdi32.dll" "system" fn SetDeviceGammaRamp(hdc : super::super::Graphics::Gdi:: HDC, lpramp : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetDeviceGammaRamp(core::mem::transmute(hdc), core::mem::transmute(lpramp)) + SetDeviceGammaRamp(hdc, lpramp) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetICMMode(hdc: super::super::Graphics::Gdi::HDC, mode: ICM_MODE) -> i32 { windows_targets::link!("gdi32.dll" "system" fn SetICMMode(hdc : super::super::Graphics::Gdi:: HDC, mode : ICM_MODE) -> i32); - SetICMMode(core::mem::transmute(hdc), core::mem::transmute(mode)) + SetICMMode(hdc, mode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -544,7 +544,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetICMProfileA(hdc : super::super::Graphics::Gdi:: HDC, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetICMProfileA(core::mem::transmute(hdc), lpfilename.param().abi()) + SetICMProfileA(hdc, lpfilename.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -553,7 +553,7 @@ where P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetICMProfileW(hdc : super::super::Graphics::Gdi:: HDC, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetICMProfileW(core::mem::transmute(hdc), lpfilename.param().abi()) + SetICMProfileW(hdc, lpfilename.param().abi()) } #[inline] pub unsafe fn SetStandardColorSpaceProfileA(pmachinename: P0, dwprofileid: u32, pprofilename: P2) -> super::super::Foundation::BOOL @@ -562,7 +562,7 @@ where P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn SetStandardColorSpaceProfileA(pmachinename : windows_core::PCSTR, dwprofileid : u32, pprofilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetStandardColorSpaceProfileA(pmachinename.param().abi(), core::mem::transmute(dwprofileid), pprofilename.param().abi()) + SetStandardColorSpaceProfileA(pmachinename.param().abi(), dwprofileid, pprofilename.param().abi()) } #[inline] pub unsafe fn SetStandardColorSpaceProfileW(pmachinename: P0, dwprofileid: u32, pprofilename: P2) -> super::super::Foundation::BOOL @@ -571,7 +571,7 @@ where P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn SetStandardColorSpaceProfileW(pmachinename : windows_core::PCWSTR, dwprofileid : u32, pprofilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetStandardColorSpaceProfileW(pmachinename.param().abi(), core::mem::transmute(dwprofileid), pprofilename.param().abi()) + SetStandardColorSpaceProfileW(pmachinename.param().abi(), dwprofileid, pprofilename.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -588,12 +588,12 @@ pub unsafe fn SetupColorMatchingW(pcms: *mut COLORMATCHSETUPW) -> super::super:: #[inline] pub unsafe fn TranslateBitmapBits(hcolortransform: isize, psrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwinputstride: u32, pdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwoutputstride: u32, pfncallback: Option, ulcallbackdata: Option) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn TranslateBitmapBits(hcolortransform : isize, psrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwinputstride : u32, pdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwoutputstride : u32, pfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - TranslateBitmapBits(core::mem::transmute(hcolortransform), core::mem::transmute(psrcbits), core::mem::transmute(bminput), core::mem::transmute(dwwidth), core::mem::transmute(dwheight), core::mem::transmute(dwinputstride), core::mem::transmute(pdestbits), core::mem::transmute(bmoutput), core::mem::transmute(dwoutputstride), core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcallbackdata.unwrap_or(core::mem::zeroed()))) + TranslateBitmapBits(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwinputstride, core::mem::transmute(pdestbits), bmoutput, dwoutputstride, core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulcallbackdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TranslateColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn TranslateColors(hcolortransform : isize, painputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, paoutputcolors : *mut COLOR, ctoutput : COLORTYPE) -> super::super::Foundation:: BOOL); - TranslateColors(core::mem::transmute(hcolortransform), core::mem::transmute(painputcolors), core::mem::transmute(ncolors), core::mem::transmute(ctinput), core::mem::transmute(paoutputcolors), core::mem::transmute(ctoutput)) + TranslateColors(hcolortransform, painputcolors, ncolors, ctinput, core::mem::transmute(paoutputcolors), ctoutput) } #[inline] pub unsafe fn UninstallColorProfileA(pmachinename: P0, pprofilename: P1, bdelete: bool) -> super::super::Foundation::BOOL @@ -619,7 +619,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn UnregisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32) -> super::super::Foundation:: BOOL); - UnregisterCMMA(pmachinename.param().abi(), core::mem::transmute(cmmid)) + UnregisterCMMA(pmachinename.param().abi(), cmmid) } #[inline] pub unsafe fn UnregisterCMMW(pmachinename: P0, cmmid: u32) -> super::super::Foundation::BOOL @@ -627,7 +627,7 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn UnregisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32) -> super::super::Foundation:: BOOL); - UnregisterCMMW(pmachinename.param().abi(), core::mem::transmute(cmmid)) + UnregisterCMMW(pmachinename.param().abi(), cmmid) } #[inline] pub unsafe fn UpdateICMRegKeyA(reserved: Option, lpszcmid: P1, lpszfilename: P2, command: ICM_COMMAND) -> super::super::Foundation::BOOL @@ -636,7 +636,7 @@ where P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn UpdateICMRegKeyA(reserved : u32, lpszcmid : windows_core::PCSTR, lpszfilename : windows_core::PCSTR, command : ICM_COMMAND) -> super::super::Foundation:: BOOL); - UpdateICMRegKeyA(core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpszcmid.param().abi(), lpszfilename.param().abi(), core::mem::transmute(command)) + UpdateICMRegKeyA(core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpszcmid.param().abi(), lpszfilename.param().abi(), command) } #[inline] pub unsafe fn UpdateICMRegKeyW(reserved: Option, lpszcmid: P1, lpszfilename: P2, command: ICM_COMMAND) -> super::super::Foundation::BOOL @@ -645,7 +645,7 @@ where P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn UpdateICMRegKeyW(reserved : u32, lpszcmid : windows_core::PCWSTR, lpszfilename : windows_core::PCWSTR, command : ICM_COMMAND) -> super::super::Foundation:: BOOL); - UpdateICMRegKeyW(core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpszcmid.param().abi(), lpszfilename.param().abi(), core::mem::transmute(command)) + UpdateICMRegKeyW(core::mem::transmute(reserved.unwrap_or(core::mem::zeroed())), lpszcmid.param().abi(), lpszfilename.param().abi(), command) } #[inline] pub unsafe fn WcsAssociateColorProfileWithDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL @@ -654,17 +654,17 @@ where P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsAssociateColorProfileWithDevice(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WcsAssociateColorProfileWithDevice(core::mem::transmute(scope), pprofilename.param().abi(), pdevicename.param().abi()) + WcsAssociateColorProfileWithDevice(scope, pprofilename.param().abi(), pdevicename.param().abi()) } #[inline] pub unsafe fn WcsCheckColors(hcolortransform: isize, ninputchannels: u32, cdtinput: COLORDATATYPE, cbinput: u32, pinputdata: *const core::ffi::c_void, paresult: &mut [u8]) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn WcsCheckColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const core::ffi::c_void, paresult : *mut u8) -> super::super::Foundation:: BOOL); - WcsCheckColors(core::mem::transmute(hcolortransform), paresult.len().try_into().unwrap(), core::mem::transmute(ninputchannels), core::mem::transmute(cdtinput), core::mem::transmute(cbinput), core::mem::transmute(pinputdata), core::mem::transmute(paresult.as_ptr())) + WcsCheckColors(hcolortransform, paresult.len().try_into().unwrap(), ninputchannels, cdtinput, cbinput, pinputdata, core::mem::transmute(paresult.as_ptr())) } #[inline] pub unsafe fn WcsCreateIccProfile(hwcsprofile: isize, dwoptions: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn WcsCreateIccProfile(hwcsprofile : isize, dwoptions : u32) -> isize); - WcsCreateIccProfile(core::mem::transmute(hwcsprofile), core::mem::transmute(dwoptions)) + WcsCreateIccProfile(hwcsprofile, dwoptions) } #[inline] pub unsafe fn WcsDisassociateColorProfileFromDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL @@ -673,17 +673,17 @@ where P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsDisassociateColorProfileFromDevice(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WcsDisassociateColorProfileFromDevice(core::mem::transmute(scope), pprofilename.param().abi(), pdevicename.param().abi()) + WcsDisassociateColorProfileFromDevice(scope, pprofilename.param().abi(), pdevicename.param().abi()) } #[inline] pub unsafe fn WcsEnumColorProfiles(scope: WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord: *const ENUMTYPEW, pbuffer: &mut [u8], pnprofiles: Option<*mut u32>) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn WcsEnumColorProfiles(scope : WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord : *const ENUMTYPEW, pbuffer : *mut u8, dwsize : u32, pnprofiles : *mut u32) -> super::super::Foundation:: BOOL); - WcsEnumColorProfiles(core::mem::transmute(scope), core::mem::transmute(penumrecord), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pnprofiles.unwrap_or(core::mem::zeroed()))) + WcsEnumColorProfiles(scope, penumrecord, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), core::mem::transmute(pnprofiles.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn WcsEnumColorProfilesSize(scope: WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord: *const ENUMTYPEW, pdwsize: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn WcsEnumColorProfilesSize(scope : WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord : *const ENUMTYPEW, pdwsize : *mut u32) -> super::super::Foundation:: BOOL); - WcsEnumColorProfilesSize(core::mem::transmute(scope), core::mem::transmute(penumrecord), core::mem::transmute(pdwsize)) + WcsEnumColorProfilesSize(scope, penumrecord, core::mem::transmute(pdwsize)) } #[inline] pub unsafe fn WcsGetCalibrationManagementState(pbisenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { @@ -696,7 +696,7 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultColorProfile(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, cbprofilename : u32, pprofilename : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - WcsGetDefaultColorProfile(core::mem::transmute(scope), pdevicename.param().abi(), core::mem::transmute(cptcolorprofiletype), core::mem::transmute(cpstcolorprofilesubtype), core::mem::transmute(dwprofileid), core::mem::transmute(cbprofilename), core::mem::transmute(pprofilename)) + WcsGetDefaultColorProfile(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, cbprofilename, core::mem::transmute(pprofilename)) } #[inline] pub unsafe fn WcsGetDefaultColorProfileSize(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pcbprofilename: *mut u32) -> super::super::Foundation::BOOL @@ -704,12 +704,12 @@ where P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultColorProfileSize(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, pcbprofilename : *mut u32) -> super::super::Foundation:: BOOL); - WcsGetDefaultColorProfileSize(core::mem::transmute(scope), pdevicename.param().abi(), core::mem::transmute(cptcolorprofiletype), core::mem::transmute(cpstcolorprofilesubtype), core::mem::transmute(dwprofileid), core::mem::transmute(pcbprofilename)) + WcsGetDefaultColorProfileSize(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, core::mem::transmute(pcbprofilename)) } #[inline] pub unsafe fn WcsGetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent: *mut u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultRenderingIntent(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent : *mut u32) -> super::super::Foundation:: BOOL); - WcsGetDefaultRenderingIntent(core::mem::transmute(scope), core::mem::transmute(pdwrenderingintent)) + WcsGetDefaultRenderingIntent(scope, core::mem::transmute(pdwrenderingintent)) } #[inline] pub unsafe fn WcsGetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, puseperuserprofiles: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL @@ -717,17 +717,17 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsGetUsePerUserProfiles(pdevicename : windows_core::PCWSTR, dwdeviceclass : u32, puseperuserprofiles : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WcsGetUsePerUserProfiles(pdevicename.param().abi(), core::mem::transmute(dwdeviceclass), core::mem::transmute(puseperuserprofiles)) + WcsGetUsePerUserProfiles(pdevicename.param().abi(), dwdeviceclass, core::mem::transmute(puseperuserprofiles)) } #[inline] pub unsafe fn WcsOpenColorProfileA(pcdmpprofile: *const PROFILE, pcampprofile: Option<*const PROFILE>, pgmmpprofile: Option<*const PROFILE>, dwdesireaccess: u32, dwsharemode: u32, dwcreationmode: u32, dwflags: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn WcsOpenColorProfileA(pcdmpprofile : *const PROFILE, pcampprofile : *const PROFILE, pgmmpprofile : *const PROFILE, dwdesireaccess : u32, dwsharemode : u32, dwcreationmode : u32, dwflags : u32) -> isize); - WcsOpenColorProfileA(core::mem::transmute(pcdmpprofile), core::mem::transmute(pcampprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgmmpprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdesireaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwcreationmode), core::mem::transmute(dwflags)) + WcsOpenColorProfileA(pcdmpprofile, core::mem::transmute(pcampprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgmmpprofile.unwrap_or(core::mem::zeroed())), dwdesireaccess, dwsharemode, dwcreationmode, dwflags) } #[inline] pub unsafe fn WcsOpenColorProfileW(pcdmpprofile: *const PROFILE, pcampprofile: Option<*const PROFILE>, pgmmpprofile: Option<*const PROFILE>, dwdesireaccess: u32, dwsharemode: u32, dwcreationmode: u32, dwflags: u32) -> isize { windows_targets::link!("mscms.dll" "system" fn WcsOpenColorProfileW(pcdmpprofile : *const PROFILE, pcampprofile : *const PROFILE, pgmmpprofile : *const PROFILE, dwdesireaccess : u32, dwsharemode : u32, dwcreationmode : u32, dwflags : u32) -> isize); - WcsOpenColorProfileW(core::mem::transmute(pcdmpprofile), core::mem::transmute(pcampprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgmmpprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdesireaccess), core::mem::transmute(dwsharemode), core::mem::transmute(dwcreationmode), core::mem::transmute(dwflags)) + WcsOpenColorProfileW(pcdmpprofile, core::mem::transmute(pcampprofile.unwrap_or(core::mem::zeroed())), core::mem::transmute(pgmmpprofile.unwrap_or(core::mem::zeroed())), dwdesireaccess, dwsharemode, dwcreationmode, dwflags) } #[inline] pub unsafe fn WcsSetCalibrationManagementState(bisenabled: bool) -> super::super::Foundation::BOOL { @@ -741,12 +741,12 @@ where P5: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsSetDefaultColorProfile(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, pprofilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WcsSetDefaultColorProfile(core::mem::transmute(scope), pdevicename.param().abi(), core::mem::transmute(cptcolorprofiletype), core::mem::transmute(cpstcolorprofilesubtype), core::mem::transmute(dwprofileid), pprofilename.param().abi()) + WcsSetDefaultColorProfile(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, pprofilename.param().abi()) } #[inline] pub unsafe fn WcsSetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, dwrenderingintent: u32) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn WcsSetDefaultRenderingIntent(scope : WCS_PROFILE_MANAGEMENT_SCOPE, dwrenderingintent : u32) -> super::super::Foundation:: BOOL); - WcsSetDefaultRenderingIntent(core::mem::transmute(scope), core::mem::transmute(dwrenderingintent)) + WcsSetDefaultRenderingIntent(scope, dwrenderingintent) } #[inline] pub unsafe fn WcsSetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, useperuserprofiles: bool) -> super::super::Foundation::BOOL @@ -754,12 +754,12 @@ where P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsSetUsePerUserProfiles(pdevicename : windows_core::PCWSTR, dwdeviceclass : u32, useperuserprofiles : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WcsSetUsePerUserProfiles(pdevicename.param().abi(), core::mem::transmute(dwdeviceclass), useperuserprofiles.into()) + WcsSetUsePerUserProfiles(pdevicename.param().abi(), dwdeviceclass, useperuserprofiles.into()) } #[inline] pub unsafe fn WcsTranslateColors(hcolortransform: isize, ncolors: u32, ninputchannels: u32, cdtinput: COLORDATATYPE, cbinput: u32, pinputdata: *const core::ffi::c_void, noutputchannels: u32, cdtoutput: COLORDATATYPE, cboutput: u32, poutputdata: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("mscms.dll" "system" fn WcsTranslateColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const core::ffi::c_void, noutputchannels : u32, cdtoutput : COLORDATATYPE, cboutput : u32, poutputdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - WcsTranslateColors(core::mem::transmute(hcolortransform), core::mem::transmute(ncolors), core::mem::transmute(ninputchannels), core::mem::transmute(cdtinput), core::mem::transmute(cbinput), core::mem::transmute(pinputdata), core::mem::transmute(noutputchannels), core::mem::transmute(cdtoutput), core::mem::transmute(cboutput), core::mem::transmute(poutputdata)) + WcsTranslateColors(hcolortransform, ncolors, ninputchannels, cdtinput, cbinput, pinputdata, noutputchannels, cdtoutput, cboutput, core::mem::transmute(poutputdata)) } pub const ATTRIB_MATTE: u32 = 2u32; pub const ATTRIB_TRANSPARENCY: u32 = 1u32; @@ -1239,28 +1239,28 @@ windows_core::imp::define_interface!(IDeviceModelPlugIn, IDeviceModelPlugIn_Vtbl windows_core::imp::interface_hierarchy!(IDeviceModelPlugIn, windows_core::IUnknown); impl IDeviceModelPlugIn { pub unsafe fn Initialize(&self, bstrxml: &windows_core::BSTR, cnummodels: u32, imodelposition: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxml), core::mem::transmute(cnummodels), core::mem::transmute(imodelposition)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxml), cnummodels, imodelposition).ok() } pub unsafe fn GetNumChannels(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNumChannels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DeviceToColorimetricColors(&self, cchannels: u32, pdevicevalues: *const f32, pxyzcolors: &mut [XYZColorF]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeviceToColorimetricColors)(windows_core::Interface::as_raw(self), pxyzcolors.len().try_into().unwrap(), core::mem::transmute(cchannels), core::mem::transmute(pdevicevalues), core::mem::transmute(pxyzcolors.as_ptr())).ok() + (windows_core::Interface::vtable(self).DeviceToColorimetricColors)(windows_core::Interface::as_raw(self), pxyzcolors.len().try_into().unwrap(), cchannels, pdevicevalues, core::mem::transmute(pxyzcolors.as_ptr())).ok() } pub unsafe fn ColorimetricToDeviceColors(&self, cchannels: u32, pxyzcolors: &[XYZColorF]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ColorimetricToDeviceColors)(windows_core::Interface::as_raw(self), pxyzcolors.len().try_into().unwrap(), core::mem::transmute(cchannels), core::mem::transmute(pxyzcolors.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ColorimetricToDeviceColors)(windows_core::Interface::as_raw(self), pxyzcolors.len().try_into().unwrap(), cchannels, core::mem::transmute(pxyzcolors.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn ColorimetricToDeviceColorsWithBlack(&self, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF, pblackinformation: *const BlackInformation) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ColorimetricToDeviceColorsWithBlack)(windows_core::Interface::as_raw(self), core::mem::transmute(ccolors), core::mem::transmute(cchannels), core::mem::transmute(pxyzcolors), core::mem::transmute(pblackinformation), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ColorimetricToDeviceColorsWithBlack)(windows_core::Interface::as_raw(self), ccolors, cchannels, pxyzcolors, pblackinformation, &mut result__).map(|| result__) } pub unsafe fn SetTransformDeviceModelInfo(&self, imodelposition: u32, pidevicemodelother: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformDeviceModelInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(imodelposition), pidevicemodelother.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformDeviceModelInfo)(windows_core::Interface::as_raw(self), imodelposition, pidevicemodelother.param().abi()).ok() } pub unsafe fn GetPrimarySamples(&self, pprimarycolor: *mut PrimaryXYZColors) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPrimarySamples)(windows_core::Interface::as_raw(self), core::mem::transmute(pprimarycolor)).ok() @@ -1269,7 +1269,7 @@ impl IDeviceModelPlugIn { (windows_core::Interface::vtable(self).GetGamutBoundaryMeshSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pnumvertices), core::mem::transmute(pnumtriangles)).ok() } pub unsafe fn GetGamutBoundaryMesh(&self, cchannels: u32, cvertices: u32, pvertices: *mut f32, ptriangles: &mut [GamutShellTriangle]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGamutBoundaryMesh)(windows_core::Interface::as_raw(self), core::mem::transmute(cchannels), core::mem::transmute(cvertices), ptriangles.len().try_into().unwrap(), core::mem::transmute(pvertices), core::mem::transmute(ptriangles.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetGamutBoundaryMesh)(windows_core::Interface::as_raw(self), cchannels, cvertices, ptriangles.len().try_into().unwrap(), core::mem::transmute(pvertices), core::mem::transmute(ptriangles.as_ptr())).ok() } pub unsafe fn GetNeutralAxisSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1405,11 +1405,11 @@ impl IGamutMapModelPlugIn { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxml), psrcplugin.param().abi(), pdestplugin.param().abi(), core::mem::transmute(psrcgbd), core::mem::transmute(pdestgbd)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrxml), psrcplugin.param().abi(), pdestplugin.param().abi(), psrcgbd, pdestgbd).ok() } pub unsafe fn SourceToDestinationAppearanceColors(&self, ccolors: u32, pinputcolors: *const JChColorF) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SourceToDestinationAppearanceColors)(windows_core::Interface::as_raw(self), core::mem::transmute(ccolors), core::mem::transmute(pinputcolors), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SourceToDestinationAppearanceColors)(windows_core::Interface::as_raw(self), ccolors, pinputcolors, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/mod.rs index bc3f4bafd5..6440523def 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/mod.rs @@ -742,7 +742,7 @@ impl IPrintDialogCallback { (windows_core::Interface::vtable(self).SelectionChange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).HandleMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(hdlg), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(presult)).ok() + (windows_core::Interface::vtable(self).HandleMessage)(windows_core::Interface::as_raw(self), hdlg, umsg, wparam, lparam, core::mem::transmute(presult)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs index 7f2432c132..3b5fba6732 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs @@ -1246,7 +1246,7 @@ impl IRichEditOle { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole"))] pub unsafe fn GetObject(&self, iob: i32, lpreobject: *mut REOBJECT, dwflags: RICH_EDIT_GET_OBJECT_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(iob), core::mem::transmute(lpreobject), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), iob, core::mem::transmute(lpreobject), dwflags).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole"))] pub unsafe fn InsertObject(&self, lpreobject: *mut REOBJECT) -> windows_core::Result<()> { @@ -1256,10 +1256,10 @@ impl IRichEditOle { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), core::mem::transmute(iob), core::mem::transmute(rclsidnew), lpstrusertypenew.param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), iob, rclsidnew, lpstrusertypenew.param().abi()).ok() } pub unsafe fn ActivateAs(&self, rclsid: *const windows_core::GUID, rclsidas: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateAs)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rclsidas)).ok() + (windows_core::Interface::vtable(self).ActivateAs)(windows_core::Interface::as_raw(self), rclsid, rclsidas).ok() } pub unsafe fn SetHostNames(&self, lpstrcontainerapp: P0, lpstrcontainerobj: P1) -> windows_core::Result<()> where @@ -1269,20 +1269,20 @@ impl IRichEditOle { (windows_core::Interface::vtable(self).SetHostNames)(windows_core::Interface::as_raw(self), lpstrcontainerapp.param().abi(), lpstrcontainerobj.param().abi()).ok() } pub unsafe fn SetLinkAvailable(&self, iob: i32, favailable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLinkAvailable)(windows_core::Interface::as_raw(self), core::mem::transmute(iob), favailable.into()).ok() + (windows_core::Interface::vtable(self).SetLinkAvailable)(windows_core::Interface::as_raw(self), iob, favailable.into()).ok() } pub unsafe fn SetDvaspect(&self, iob: i32, dvaspect: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDvaspect)(windows_core::Interface::as_raw(self), core::mem::transmute(iob), core::mem::transmute(dvaspect)).ok() + (windows_core::Interface::vtable(self).SetDvaspect)(windows_core::Interface::as_raw(self), iob, dvaspect).ok() } pub unsafe fn HandsOffStorage(&self, iob: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandsOffStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(iob)).ok() + (windows_core::Interface::vtable(self).HandsOffStorage)(windows_core::Interface::as_raw(self), iob).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SaveCompleted(&self, iob: i32, lpstg: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(iob), lpstg.param().abi()).ok() + (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), iob, lpstg.param().abi()).ok() } pub unsafe fn InPlaceDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InPlaceDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -1292,14 +1292,14 @@ impl IRichEditOle { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClipboardData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpchrg), core::mem::transmute(reco), core::mem::transmute(lplpdataobj)).ok() + (windows_core::Interface::vtable(self).GetClipboardData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpchrg), reco, core::mem::transmute(lplpdataobj)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportDataObject(&self, lpdataobj: P0, cf: u16, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportDataObject)(windows_core::Interface::as_raw(self), lpdataobj.param().abi(), core::mem::transmute(cf), core::mem::transmute(hmetapict)).ok() + (windows_core::Interface::vtable(self).ImportDataObject)(windows_core::Interface::as_raw(self), lpdataobj.param().abi(), cf, hmetapict).ok() } } #[repr(C)] @@ -1478,7 +1478,7 @@ impl IRichEditOleCallback { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInsertObject)(windows_core::Interface::as_raw(self), core::mem::transmute(lpclsid), lpstg.param().abi(), core::mem::transmute(cp)).ok() + (windows_core::Interface::vtable(self).QueryInsertObject)(windows_core::Interface::as_raw(self), core::mem::transmute(lpclsid), lpstg.param().abi(), cp).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn DeleteObject(&self, lpoleobj: P0) -> windows_core::Result<()> @@ -1492,25 +1492,25 @@ impl IRichEditOleCallback { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryAcceptData)(windows_core::Interface::as_raw(self), lpdataobj.param().abi(), core::mem::transmute(lpcfformat), core::mem::transmute(reco), freally.into(), core::mem::transmute(hmetapict)).ok() + (windows_core::Interface::vtable(self).QueryAcceptData)(windows_core::Interface::as_raw(self), lpdataobj.param().abi(), core::mem::transmute(lpcfformat), reco, freally.into(), hmetapict).ok() } pub unsafe fn ContextSensitiveHelp(&self, fentermode: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClipboardData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpchrg), core::mem::transmute(reco), core::mem::transmute(lplpdataobj)).ok() + (windows_core::Interface::vtable(self).GetClipboardData)(windows_core::Interface::as_raw(self), core::mem::transmute(lpchrg), reco, core::mem::transmute(lplpdataobj)).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_SystemServices"))] pub unsafe fn GetDragDropEffect(&self, fdrag: bool, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDragDropEffect)(windows_core::Interface::as_raw(self), fdrag.into(), core::mem::transmute(grfkeystate), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).GetDragDropEffect)(windows_core::Interface::as_raw(self), fdrag.into(), grfkeystate, core::mem::transmute(pdweffect)).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetContextMenu(&self, seltype: RICH_EDIT_GET_CONTEXT_MENU_SEL_TYPE, lpoleobj: P1, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(seltype), lpoleobj.param().abi(), core::mem::transmute(lpchrg), core::mem::transmute(lphmenu)).ok() + (windows_core::Interface::vtable(self).GetContextMenu)(windows_core::Interface::as_raw(self), seltype, lpoleobj.param().abi(), core::mem::transmute(lpchrg), core::mem::transmute(lphmenu)).ok() } } #[repr(C)] @@ -1638,7 +1638,7 @@ windows_core::imp::interface_hierarchy!(IRicheditUiaOverrides, windows_core::IUn impl IRicheditUiaOverrides { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPropertyOverrideValue(&self, propertyid: i32, pretvalue: *mut super::super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyOverrideValue)(windows_core::Interface::as_raw(self), core::mem::transmute(propertyid), core::mem::transmute(pretvalue)).ok() + (windows_core::Interface::vtable(self).GetPropertyOverrideValue)(windows_core::Interface::as_raw(self), propertyid, core::mem::transmute(pretvalue)).ok() } } #[repr(C)] @@ -1731,25 +1731,25 @@ impl ITextDocument { (windows_core::Interface::vtable(self).GetSaved)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSaved(&self, value: tomConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSaved)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSaved)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetDefaultTabStop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDefaultTabStop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultTabStop(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultTabStop)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDefaultTabStop)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn New(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).New)(windows_core::Interface::as_raw(self)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Open(&self, pvar: *const super::super::super::System::Variant::VARIANT, flags: tomConstants, codepage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), core::mem::transmute(flags), core::mem::transmute(codepage)).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), flags, codepage).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Save(&self, pvar: *const super::super::super::System::Variant::VARIANT, flags: tomConstants, codepage: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), core::mem::transmute(flags), core::mem::transmute(codepage)).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), flags, codepage).ok() } pub unsafe fn Freeze(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1767,19 +1767,19 @@ impl ITextDocument { } pub unsafe fn Undo(&self, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Undo)(windows_core::Interface::as_raw(self), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Undo)(windows_core::Interface::as_raw(self), count, &mut result__).map(|| result__) } pub unsafe fn Redo(&self, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Redo)(windows_core::Interface::as_raw(self), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Redo)(windows_core::Interface::as_raw(self), count, &mut result__).map(|| result__) } pub unsafe fn Range(&self, cpactive: i32, cpanchor: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Range)(windows_core::Interface::as_raw(self), core::mem::transmute(cpactive), core::mem::transmute(cpanchor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Range)(windows_core::Interface::as_raw(self), cpactive, cpanchor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RangeFromPoint(&self, x: i32, y: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RangeFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RangeFromPoint)(windows_core::Interface::as_raw(self), x, y, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2032,7 +2032,7 @@ impl ITextDocument2 { (windows_core::Interface::vtable(self).GetCaretType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCaretType(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCaretType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCaretType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetDisplays(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2067,14 +2067,14 @@ impl ITextDocument2 { (windows_core::Interface::vtable(self).GetGenerator)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetIMEInProgress(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIMEInProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIMEInProgress)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetNotificationMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotificationMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotificationMode(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotificationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNotificationMode)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSelection2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2103,44 +2103,44 @@ impl ITextDocument2 { (windows_core::Interface::vtable(self).AttachMsgFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn CheckTextLimit(&self, cch: i32, pcch: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckTextLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(cch), core::mem::transmute(pcch)).ok() + (windows_core::Interface::vtable(self).CheckTextLimit)(windows_core::Interface::as_raw(self), cch, pcch).ok() } pub unsafe fn GetCallManager(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCallManager)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetClientRect(&self, r#type: tomConstants, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClientRect)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom)).ok() + (windows_core::Interface::vtable(self).GetClientRect)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom)).ok() } pub unsafe fn GetEffectColor(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEffectColor)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEffectColor)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetImmContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetImmContext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPreferredFont(&self, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut windows_core::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPreferredFont)(windows_core::Interface::as_raw(self), core::mem::transmute(cp), core::mem::transmute(charrep), core::mem::transmute(options), core::mem::transmute(curcharrep), core::mem::transmute(curfontsize), core::mem::transmute(pbstr), core::mem::transmute(ppitchandfamily), core::mem::transmute(pnewfontsize)).ok() + (windows_core::Interface::vtable(self).GetPreferredFont)(windows_core::Interface::as_raw(self), cp, charrep, options, curcharrep, curfontsize, core::mem::transmute(pbstr), core::mem::transmute(ppitchandfamily), core::mem::transmute(pnewfontsize)).ok() } pub unsafe fn GetProperty(&self, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn GetStrings(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrings)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Notify(&self, notify: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(notify)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), notify).ok() } pub unsafe fn Range2(&self, cpactive: i32, cpanchor: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Range2)(windows_core::Interface::as_raw(self), core::mem::transmute(cpactive), core::mem::transmute(cpanchor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Range2)(windows_core::Interface::as_raw(self), cpactive, cpanchor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RangeFromPoint2(&self, x: i32, y: i32, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RangeFromPoint2)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(r#type), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RangeFromPoint2)(windows_core::Interface::as_raw(self), x, y, r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReleaseCallManager(&self, pvoid: P0) -> windows_core::Result<()> where @@ -2149,22 +2149,22 @@ impl ITextDocument2 { (windows_core::Interface::vtable(self).ReleaseCallManager)(windows_core::Interface::as_raw(self), pvoid.param().abi()).ok() } pub unsafe fn ReleaseImmContext(&self, context: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseImmContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).ReleaseImmContext)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn SetEffectColor(&self, index: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectColor)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEffectColor)(windows_core::Interface::as_raw(self), index, value).ok() } pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), r#type, value).ok() } pub unsafe fn SetTypographyOptions(&self, options: i32, mask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTypographyOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetTypographyOptions)(windows_core::Interface::as_raw(self), options, mask).ok() } pub unsafe fn SysBeep(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SysBeep)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Update(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn UpdateWindow(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateWindow)(windows_core::Interface::as_raw(self)).ok() @@ -2174,7 +2174,7 @@ impl ITextDocument2 { (windows_core::Interface::vtable(self).GetMathProperties)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMathProperties(&self, options: i32, mask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMathProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetMathProperties)(windows_core::Interface::as_raw(self), options, mask).ok() } pub unsafe fn GetActiveStory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2196,7 +2196,7 @@ impl ITextDocument2 { } pub unsafe fn GetStory(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStory)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStory)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2692,38 +2692,38 @@ impl ITextDocument2Old { (windows_core::Interface::vtable(self).AttachMsgFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn SetEffectColor(&self, index: i32, cr: super::super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffectColor)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(cr)).ok() + (windows_core::Interface::vtable(self).SetEffectColor)(windows_core::Interface::as_raw(self), index, cr).ok() } pub unsafe fn GetEffectColor(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEffectColor)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEffectColor)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } pub unsafe fn GetCaretType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCaretType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCaretType(&self, carettype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCaretType)(windows_core::Interface::as_raw(self), core::mem::transmute(carettype)).ok() + (windows_core::Interface::vtable(self).SetCaretType)(windows_core::Interface::as_raw(self), carettype).ok() } pub unsafe fn GetImmContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetImmContext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ReleaseImmContext(&self, context: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseImmContext)(windows_core::Interface::as_raw(self), core::mem::transmute(context)).ok() + (windows_core::Interface::vtable(self).ReleaseImmContext)(windows_core::Interface::as_raw(self), context).ok() } pub unsafe fn GetPreferredFont(&self, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut windows_core::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPreferredFont)(windows_core::Interface::as_raw(self), core::mem::transmute(cp), core::mem::transmute(charrep), core::mem::transmute(option), core::mem::transmute(charrepcur), core::mem::transmute(curfontsize), core::mem::transmute(pbstr), core::mem::transmute(ppitchandfamily), core::mem::transmute(pnewfontsize)).ok() + (windows_core::Interface::vtable(self).GetPreferredFont)(windows_core::Interface::as_raw(self), cp, charrep, option, charrepcur, curfontsize, core::mem::transmute(pbstr), core::mem::transmute(ppitchandfamily), core::mem::transmute(pnewfontsize)).ok() } pub unsafe fn GetNotificationMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNotificationMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNotificationMode(&self, mode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNotificationMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetNotificationMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn GetClientRect(&self, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetClientRect)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom)).ok() + (windows_core::Interface::vtable(self).GetClientRect)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom)).ok() } pub unsafe fn GetSelection2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2741,19 +2741,19 @@ impl ITextDocument2Old { (windows_core::Interface::vtable(self).UpdateWindow)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CheckTextLimit(&self, cch: i32, pcch: *const i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CheckTextLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(cch), core::mem::transmute(pcch)).ok() + (windows_core::Interface::vtable(self).CheckTextLimit)(windows_core::Interface::as_raw(self), cch, pcch).ok() } pub unsafe fn IMEInProgress(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IMEInProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).IMEInProgress)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SysBeep(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SysBeep)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Update(&self, mode: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Notify(&self, notify: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(notify)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), notify).ok() } pub unsafe fn GetDocumentFont(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3058,91 +3058,91 @@ impl ITextFont { (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pfont.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Reset(&self, value: tomConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStyle(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStyle)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetAllCaps(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAllCaps)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAllCaps(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAllCaps)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetAnimation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAnimation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAnimation(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetBackColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBackColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColor(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetBold(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBold)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBold(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBold)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetBold)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetEmboss(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEmboss)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEmboss(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEmboss)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEmboss)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetForeColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetForeColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetForeColor(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetForeColor)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetForeColor)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetHidden(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHidden)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHidden(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetEngrave(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEngrave)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEngrave(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEngrave)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetEngrave)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetItalic(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetItalic)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetItalic(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItalic)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetItalic)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetKerning(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetKerning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKerning(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKerning)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKerning)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetLanguageID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetLanguageID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLanguageID(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLanguageID)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetLanguageID)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3156,84 +3156,84 @@ impl ITextFont { (windows_core::Interface::vtable(self).GetOutline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOutline(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutline)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOutline)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPosition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPosition(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetProtected(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetProtected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetProtected(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProtected)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProtected)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetShadow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetShadow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShadow(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShadow)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetShadow)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSize(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSmallCaps(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSmallCaps)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSmallCaps(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSmallCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSmallCaps)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSpacing(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSpacing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpacing(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSpacing)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetStrikeThrough(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStrikeThrough)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStrikeThrough(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStrikeThrough)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStrikeThrough)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSubscript(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSubscript)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSubscript(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSubscript)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSubscript)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSuperscript(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSuperscript)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSuperscript(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSuperscript)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSuperscript)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetUnderline(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetUnderline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUnderline(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetWeight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetWeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWeight(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWeight)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetWeight)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3832,56 +3832,56 @@ impl ITextFont2 { (windows_core::Interface::vtable(self).GetAutoLigatures)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoLigatures(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoLigatures)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAutoLigatures)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetAutospaceAlpha(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAutospaceAlpha)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutospaceAlpha(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutospaceAlpha)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAutospaceAlpha)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetAutospaceNumeric(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAutospaceNumeric)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutospaceNumeric(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutospaceNumeric)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAutospaceNumeric)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetAutospaceParens(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAutospaceParens)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutospaceParens(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutospaceParens)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAutospaceParens)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCharRep(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCharRep)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCharRep(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCharRep)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCharRep)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCompressionMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCompressionMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCompressionMode(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCookie(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCookie)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCookie(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCookie)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCookie)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetDoubleStrike(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDoubleStrike)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDoubleStrike(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDoubleStrike)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetDoubleStrike)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetDuplicate2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3902,63 +3902,63 @@ impl ITextFont2 { (windows_core::Interface::vtable(self).GetMathZone)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMathZone(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMathZone)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMathZone)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetModWidthPairs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetModWidthPairs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetModWidthPairs(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModWidthPairs)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetModWidthPairs)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetModWidthSpace(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetModWidthSpace)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetModWidthSpace(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModWidthSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetModWidthSpace)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetOldNumbers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOldNumbers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOldNumbers(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOldNumbers)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOldNumbers)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetOverlapping(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOverlapping)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOverlapping(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlapping)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetOverlapping)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetPositionSubSuper(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPositionSubSuper)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPositionSubSuper(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPositionSubSuper)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetPositionSubSuper)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetScaling(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetScaling)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScaling(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaling)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetScaling)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSpaceExtension(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSpaceExtension)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpaceExtension(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpaceExtension)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSpaceExtension)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetUnderlinePositionMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetUnderlinePositionMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUnderlinePositionMode(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUnderlinePositionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetUnderlinePositionMode)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetEffects(&self, pvalue: *mut i32, pmask: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pmask)).ok() @@ -3968,10 +3968,10 @@ impl ITextFont2 { } pub unsafe fn GetProperty(&self, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn GetPropertyInfo(&self, index: i32, ptype: *mut i32, pvalue: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(ptype), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).GetPropertyInfo)(windows_core::Interface::as_raw(self), index, core::mem::transmute(ptype), core::mem::transmute(pvalue)).ok() } pub unsafe fn IsEqual2(&self, pfont: P0) -> windows_core::Result where @@ -3981,13 +3981,13 @@ impl ITextFont2 { (windows_core::Interface::vtable(self).IsEqual2)(windows_core::Interface::as_raw(self), pfont.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetEffects(&self, value: i32, mask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetEffects)(windows_core::Interface::as_raw(self), value, mask).ok() } pub unsafe fn SetEffects2(&self, value: i32, mask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffects2)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetEffects2)(windows_core::Interface::as_raw(self), value, mask).ok() } pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), r#type, value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4474,20 +4474,20 @@ impl ITextHost { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxReleaseDC(&self, hdc: super::super::super::Graphics::Gdi::HDC) -> i32 { - (windows_core::Interface::vtable(self).TxReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc)) + (windows_core::Interface::vtable(self).TxReleaseDC)(windows_core::Interface::as_raw(self), hdc) } pub unsafe fn TxShowScrollBar(&self, fnbar: i32, fshow: bool) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxShowScrollBar)(windows_core::Interface::as_raw(self), core::mem::transmute(fnbar), fshow.into()) + (windows_core::Interface::vtable(self).TxShowScrollBar)(windows_core::Interface::as_raw(self), fnbar, fshow.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxEnableScrollBar)(windows_core::Interface::as_raw(self), core::mem::transmute(fusbflags), core::mem::transmute(fuarrowflags)) + (windows_core::Interface::vtable(self).TxEnableScrollBar)(windows_core::Interface::as_raw(self), fusbflags, fuarrowflags) } pub unsafe fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: bool) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxSetScrollRange)(windows_core::Interface::as_raw(self), core::mem::transmute(fnbar), core::mem::transmute(nminpos), core::mem::transmute(nmaxpos), fredraw.into()) + (windows_core::Interface::vtable(self).TxSetScrollRange)(windows_core::Interface::as_raw(self), fnbar, nminpos, nmaxpos, fredraw.into()) } pub unsafe fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: bool) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxSetScrollPos)(windows_core::Interface::as_raw(self), core::mem::transmute(fnbar), core::mem::transmute(npos), fredraw.into()) + (windows_core::Interface::vtable(self).TxSetScrollPos)(windows_core::Interface::as_raw(self), fnbar, npos, fredraw.into()) } pub unsafe fn TxInvalidateRect(&self, prc: *mut super::super::super::Foundation::RECT, fmode: bool) { (windows_core::Interface::vtable(self).TxInvalidateRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prc), fmode.into()) @@ -4497,23 +4497,23 @@ impl ITextHost { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxCreateCaret(&self, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxCreateCaret)(windows_core::Interface::as_raw(self), core::mem::transmute(hbmp), core::mem::transmute(xwidth), core::mem::transmute(yheight)) + (windows_core::Interface::vtable(self).TxCreateCaret)(windows_core::Interface::as_raw(self), hbmp, xwidth, yheight) } pub unsafe fn TxShowCaret(&self, fshow: bool) -> super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).TxShowCaret)(windows_core::Interface::as_raw(self), fshow.into()) } pub unsafe fn TxSetCaretPos(&self, x: i32, y: i32) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxSetCaretPos)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)) + (windows_core::Interface::vtable(self).TxSetCaretPos)(windows_core::Interface::as_raw(self), x, y) } pub unsafe fn TxSetTimer(&self, idtimer: u32, utimeout: u32) -> super::super::super::Foundation::BOOL { - (windows_core::Interface::vtable(self).TxSetTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(idtimer), core::mem::transmute(utimeout)) + (windows_core::Interface::vtable(self).TxSetTimer)(windows_core::Interface::as_raw(self), idtimer, utimeout) } pub unsafe fn TxKillTimer(&self, idtimer: u32) { - (windows_core::Interface::vtable(self).TxKillTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(idtimer)) + (windows_core::Interface::vtable(self).TxKillTimer)(windows_core::Interface::as_raw(self), idtimer) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TxScrollWindowEx(&self, 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) { - (windows_core::Interface::vtable(self).TxScrollWindowEx)(windows_core::Interface::as_raw(self), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(lprcscroll), core::mem::transmute(lprcclip), core::mem::transmute(hrgnupdate), core::mem::transmute(lprcupdate), core::mem::transmute(fuscroll)) + (windows_core::Interface::vtable(self).TxScrollWindowEx)(windows_core::Interface::as_raw(self), dx, dy, core::mem::transmute(lprcscroll), core::mem::transmute(lprcclip), hrgnupdate, core::mem::transmute(lprcupdate), fuscroll) } pub unsafe fn TxSetCapture(&self, fcapture: bool) { (windows_core::Interface::vtable(self).TxSetCapture)(windows_core::Interface::as_raw(self), fcapture.into()) @@ -4523,7 +4523,7 @@ impl ITextHost { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxSetCursor(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: bool) { - (windows_core::Interface::vtable(self).TxSetCursor)(windows_core::Interface::as_raw(self), core::mem::transmute(hcur), ftext.into()) + (windows_core::Interface::vtable(self).TxSetCursor)(windows_core::Interface::as_raw(self), hcur, ftext.into()) } pub unsafe fn TxScreenToClient(&self, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).TxScreenToClient)(windows_core::Interface::as_raw(self), core::mem::transmute(lppt)) @@ -4535,7 +4535,7 @@ impl ITextHost { (windows_core::Interface::vtable(self).TxActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(ploldstate)).ok() } pub unsafe fn TxDeactivate(&self, lnewstate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxDeactivate)(windows_core::Interface::as_raw(self), core::mem::transmute(lnewstate)).ok() + (windows_core::Interface::vtable(self).TxDeactivate)(windows_core::Interface::as_raw(self), lnewstate).ok() } pub unsafe fn TxGetClientRect(&self, prc: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetClientRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prc)).ok() @@ -4545,14 +4545,14 @@ impl ITextHost { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxGetCharFormat(&self, ppcf: *const *const CHARFORMATW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxGetCharFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(ppcf)).ok() + (windows_core::Interface::vtable(self).TxGetCharFormat)(windows_core::Interface::as_raw(self), ppcf).ok() } pub unsafe fn TxGetParaFormat(&self, pppf: *const *const PARAFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxGetParaFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pppf)).ok() + (windows_core::Interface::vtable(self).TxGetParaFormat)(windows_core::Interface::as_raw(self), pppf).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxGetSysColor(&self, nindex: super::super::super::Graphics::Gdi::SYS_COLOR_INDEX) -> super::super::super::Foundation::COLORREF { - (windows_core::Interface::vtable(self).TxGetSysColor)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)) + (windows_core::Interface::vtable(self).TxGetSysColor)(windows_core::Interface::as_raw(self), nindex) } pub unsafe fn TxGetBackStyle(&self, pstyle: *mut TXTBACKSTYLE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetBackStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(pstyle)).ok() @@ -4575,16 +4575,16 @@ impl ITextHost { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn OnTxCharFormatChange(&self, pcf: *const CHARFORMATW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTxCharFormatChange)(windows_core::Interface::as_raw(self), core::mem::transmute(pcf)).ok() + (windows_core::Interface::vtable(self).OnTxCharFormatChange)(windows_core::Interface::as_raw(self), pcf).ok() } pub unsafe fn OnTxParaFormatChange(&self, ppf: *const PARAFORMAT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTxParaFormatChange)(windows_core::Interface::as_raw(self), core::mem::transmute(ppf)).ok() + (windows_core::Interface::vtable(self).OnTxParaFormatChange)(windows_core::Interface::as_raw(self), ppf).ok() } pub unsafe fn TxGetPropertyBits(&self, dwmask: u32, pdwbits: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxGetPropertyBits)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmask), core::mem::transmute(pdwbits)).ok() + (windows_core::Interface::vtable(self).TxGetPropertyBits)(windows_core::Interface::as_raw(self), dwmask, core::mem::transmute(pdwbits)).ok() } pub unsafe fn TxNotify(&self, inotify: u32, pv: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(inotify), core::mem::transmute(pv)).ok() + (windows_core::Interface::vtable(self).TxNotify)(windows_core::Interface::as_raw(self), inotify, core::mem::transmute(pv)).ok() } #[cfg(feature = "Win32_UI_Input_Ime")] pub unsafe fn TxImmGetContext(&self) -> super::super::Input::Ime::HIMC { @@ -4592,7 +4592,7 @@ impl ITextHost { } #[cfg(feature = "Win32_UI_Input_Ime")] pub unsafe fn TxImmReleaseContext(&self, himc: super::super::Input::Ime::HIMC) { - (windows_core::Interface::vtable(self).TxImmReleaseContext)(windows_core::Interface::as_raw(self), core::mem::transmute(himc)) + (windows_core::Interface::vtable(self).TxImmReleaseContext)(windows_core::Interface::as_raw(self), himc) } pub unsafe fn TxGetSelectionBarWidth(&self, lselbarwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetSelectionBarWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(lselbarwidth)).ok() @@ -4957,20 +4957,20 @@ impl ITextHost2 { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxSetCursor2(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: bool) -> super::super::WindowsAndMessaging::HCURSOR { - (windows_core::Interface::vtable(self).TxSetCursor2)(windows_core::Interface::as_raw(self), core::mem::transmute(hcur), btext.into()) + (windows_core::Interface::vtable(self).TxSetCursor2)(windows_core::Interface::as_raw(self), hcur, btext.into()) } pub unsafe fn TxFreeTextServicesNotification(&self) { (windows_core::Interface::vtable(self).TxFreeTextServicesNotification)(windows_core::Interface::as_raw(self)) } pub unsafe fn TxGetEditStyle(&self, dwitem: u32, pdwdata: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxGetEditStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(dwitem), core::mem::transmute(pdwdata)).ok() + (windows_core::Interface::vtable(self).TxGetEditStyle)(windows_core::Interface::as_raw(self), dwitem, core::mem::transmute(pdwdata)).ok() } pub unsafe fn TxGetWindowStyles(&self, pdwstyle: *mut u32, pdwexstyle: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetWindowStyles)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwstyle), core::mem::transmute(pdwexstyle)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxShowDropCaret(&self, fshow: bool, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxShowDropCaret)(windows_core::Interface::as_raw(self), fshow.into(), core::mem::transmute(hdc), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).TxShowDropCaret)(windows_core::Interface::as_raw(self), fshow.into(), hdc, core::mem::transmute(prc)).ok() } pub unsafe fn TxDestroyCaret(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxDestroyCaret)(windows_core::Interface::as_raw(self)).ok() @@ -5127,28 +5127,28 @@ impl ITextPara { (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), ppara.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Reset(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStyle(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStyle)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetAlignment(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAlignment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlignment(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAlignment)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetHyphenation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHyphenation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHyphenation(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHyphenation)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetHyphenation)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetFirstLineIndent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5159,14 +5159,14 @@ impl ITextPara { (windows_core::Interface::vtable(self).GetKeepTogether)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeepTogether(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeepTogether)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeepTogether)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetKeepWithNext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetKeepWithNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeepWithNext(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeepWithNext)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeepWithNext)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetLeftIndent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5185,99 +5185,99 @@ impl ITextPara { (windows_core::Interface::vtable(self).GetListAlignment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetListAlignment(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetListAlignment)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetListLevelIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetListLevelIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetListLevelIndex(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListLevelIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetListLevelIndex)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetListStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetListStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetListStart(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListStart)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetListStart)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetListTab(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetListTab)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetListTab(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListTab)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetListTab)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetListType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetListType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetListType(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetListType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetListType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetNoLineNumber(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNoLineNumber)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetNoLineNumber(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNoLineNumber)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetNoLineNumber)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetPageBreakBefore(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPageBreakBefore)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPageBreakBefore(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPageBreakBefore)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetPageBreakBefore)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetRightIndent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRightIndent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRightIndent(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRightIndent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetRightIndent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetIndents(&self, first: f32, left: f32, right: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndents)(windows_core::Interface::as_raw(self), core::mem::transmute(first), core::mem::transmute(left), core::mem::transmute(right)).ok() + (windows_core::Interface::vtable(self).SetIndents)(windows_core::Interface::as_raw(self), first, left, right).ok() } pub unsafe fn SetLineSpacing(&self, rule: i32, spacing: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(rule), core::mem::transmute(spacing)).ok() + (windows_core::Interface::vtable(self).SetLineSpacing)(windows_core::Interface::as_raw(self), rule, spacing).ok() } pub unsafe fn GetSpaceAfter(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSpaceAfter)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpaceAfter(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpaceAfter)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSpaceAfter)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSpaceBefore(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSpaceBefore)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSpaceBefore(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSpaceBefore)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSpaceBefore)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetWidowControl(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetWidowControl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidowControl(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidowControl)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetWidowControl)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetTabCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTabCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn AddTab(&self, tbpos: f32, tbalign: i32, tbleader: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTab)(windows_core::Interface::as_raw(self), core::mem::transmute(tbpos), core::mem::transmute(tbalign), core::mem::transmute(tbleader)).ok() + (windows_core::Interface::vtable(self).AddTab)(windows_core::Interface::as_raw(self), tbpos, tbalign, tbleader).ok() } pub unsafe fn ClearAllTabs(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearAllTabs)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DeleteTab(&self, tbpos: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteTab)(windows_core::Interface::as_raw(self), core::mem::transmute(tbpos)).ok() + (windows_core::Interface::vtable(self).DeleteTab)(windows_core::Interface::as_raw(self), tbpos).ok() } pub unsafe fn GetTab(&self, itab: i32, ptbpos: *mut f32, ptbalign: *mut i32, ptbleader: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTab)(windows_core::Interface::as_raw(self), core::mem::transmute(itab), core::mem::transmute(ptbpos), core::mem::transmute(ptbalign), core::mem::transmute(ptbleader)).ok() + (windows_core::Interface::vtable(self).GetTab)(windows_core::Interface::as_raw(self), itab, core::mem::transmute(ptbpos), core::mem::transmute(ptbalign), core::mem::transmute(ptbleader)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5813,35 +5813,35 @@ impl ITextPara2 { (windows_core::Interface::vtable(self).GetFontAlignment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFontAlignment(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFontAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetFontAlignment)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetHangingPunctuation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHangingPunctuation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHangingPunctuation(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHangingPunctuation)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetHangingPunctuation)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetSnapToGrid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSnapToGrid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSnapToGrid(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSnapToGrid)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetSnapToGrid)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetTrimPunctuationAtStart(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTrimPunctuationAtStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTrimPunctuationAtStart(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTrimPunctuationAtStart)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTrimPunctuationAtStart)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetEffects(&self, pvalue: *mut i32, pmask: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue), core::mem::transmute(pmask)).ok() } pub unsafe fn GetProperty(&self, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn IsEqual2(&self, ppara: P0) -> windows_core::Result where @@ -5851,10 +5851,10 @@ impl ITextPara2 { (windows_core::Interface::vtable(self).IsEqual2)(windows_core::Interface::as_raw(self), ppara.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetEffects(&self, value: i32, mask: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEffects)(windows_core::Interface::as_raw(self), core::mem::transmute(value), core::mem::transmute(mask)).ok() + (windows_core::Interface::vtable(self).SetEffects)(windows_core::Interface::as_raw(self), value, mask).ok() } pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), r#type, value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6063,7 +6063,7 @@ impl ITextRange { (windows_core::Interface::vtable(self).GetChar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetChar(&self, char: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChar)(windows_core::Interface::as_raw(self), core::mem::transmute(char)).ok() + (windows_core::Interface::vtable(self).SetChar)(windows_core::Interface::as_raw(self), char).ok() } pub unsafe fn GetDuplicate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6084,14 +6084,14 @@ impl ITextRange { (windows_core::Interface::vtable(self).GetStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStart(&self, cpfirst: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStart)(windows_core::Interface::as_raw(self), core::mem::transmute(cpfirst)).ok() + (windows_core::Interface::vtable(self).SetStart)(windows_core::Interface::as_raw(self), cpfirst).ok() } pub unsafe fn GetEnd(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnd(&self, cplim: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(cplim)).ok() + (windows_core::Interface::vtable(self).SetEnd)(windows_core::Interface::as_raw(self), cplim).ok() } pub unsafe fn GetFont(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6122,21 +6122,21 @@ impl ITextRange { (windows_core::Interface::vtable(self).GetStoryType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Collapse(&self, bstart: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Collapse)(windows_core::Interface::as_raw(self), core::mem::transmute(bstart)).ok() + (windows_core::Interface::vtable(self).Collapse)(windows_core::Interface::as_raw(self), bstart).ok() } pub unsafe fn Expand(&self, unit: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), unit, &mut result__).map(|| result__) } pub unsafe fn GetIndex(&self, unit: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), unit, &mut result__).map(|| result__) } pub unsafe fn SetIndex(&self, unit: i32, index: i32, extend: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(index), core::mem::transmute(extend)).ok() + (windows_core::Interface::vtable(self).SetIndex)(windows_core::Interface::as_raw(self), unit, index, extend).ok() } pub unsafe fn SetRange(&self, cpanchor: i32, cpactive: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(cpanchor), core::mem::transmute(cpactive)).ok() + (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), cpanchor, cpactive).ok() } pub unsafe fn InRange(&self, prange: P0) -> windows_core::Result where @@ -6164,69 +6164,69 @@ impl ITextRange { } pub unsafe fn StartOf(&self, unit: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StartOf)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StartOf)(windows_core::Interface::as_raw(self), unit, extend, &mut result__).map(|| result__) } pub unsafe fn EndOf(&self, unit: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOf)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndOf)(windows_core::Interface::as_raw(self), unit, extend, &mut result__).map(|| result__) } pub unsafe fn Move(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), unit, count, &mut result__).map(|| result__) } pub unsafe fn MoveStart(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveStart)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveStart)(windows_core::Interface::as_raw(self), unit, count, &mut result__).map(|| result__) } pub unsafe fn MoveEnd(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveEnd)(windows_core::Interface::as_raw(self), unit, count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MoveWhile(&self, cset: *const super::super::super::System::Variant::VARIANT, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveWhile)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveWhile)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MoveStartWhile(&self, cset: *const super::super::super::System::Variant::VARIANT, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveStartWhile)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveStartWhile)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MoveEndWhile(&self, cset: *const super::super::super::System::Variant::VARIANT, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveEndWhile)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveEndWhile)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MoveUntil(&self, cset: *const super::super::super::System::Variant::VARIANT, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MoveStartUntil(&self, cset: *const super::super::super::System::Variant::VARIANT, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveStartUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveStartUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn MoveEndUntil(&self, cset: *const super::super::super::System::Variant::VARIANT, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveEndUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveEndUntil)(windows_core::Interface::as_raw(self), core::mem::transmute(cset), count, &mut result__).map(|| result__) } pub unsafe fn FindText(&self, bstr: &windows_core::BSTR, count: i32, flags: tomConstants) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr), core::mem::transmute(count), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextStart(&self, bstr: &windows_core::BSTR, count: i32, flags: tomConstants) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTextStart)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr), core::mem::transmute(count), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindTextStart)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextEnd(&self, bstr: &windows_core::BSTR, count: i32, flags: tomConstants) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTextEnd)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr), core::mem::transmute(count), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindTextEnd)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr), count, flags, &mut result__).map(|| result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), unit, count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Cut(&self) -> windows_core::Result { @@ -6240,28 +6240,28 @@ impl ITextRange { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Paste(&self, pvar: *const super::super::super::System::Variant::VARIANT, format: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), format).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CanPaste(&self, pvar: *const super::super::super::System::Variant::VARIANT, format: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CanPaste)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), core::mem::transmute(format), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanPaste)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), format, &mut result__).map(|| result__) } pub unsafe fn CanEdit(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanEdit)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ChangeCase(&self, r#type: tomConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeCase)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).ChangeCase)(windows_core::Interface::as_raw(self), r#type).ok() } pub unsafe fn GetPoint(&self, r#type: tomConstants, px: *mut i32, py: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(px), core::mem::transmute(py)).ok() + (windows_core::Interface::vtable(self).GetPoint)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(px), core::mem::transmute(py)).ok() } pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: tomConstants, extend: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(r#type), core::mem::transmute(extend)).ok() + (windows_core::Interface::vtable(self).SetPoint)(windows_core::Interface::as_raw(self), x, y, r#type, extend).ok() } pub unsafe fn ScrollIntoView(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScrollIntoView)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).ScrollIntoView)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetEmbeddedObject(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6944,7 +6944,7 @@ impl ITextRange2 { (windows_core::Interface::vtable(self).GetGravity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetGravity(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGravity)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetGravity)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetPara2(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6976,23 +6976,23 @@ impl ITextRange2 { (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr)).ok() } pub unsafe fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSubrange)(windows_core::Interface::as_raw(self), core::mem::transmute(cp1), core::mem::transmute(cp2), core::mem::transmute(activate)).ok() + (windows_core::Interface::vtable(self).AddSubrange)(windows_core::Interface::as_raw(self), cp1, cp2, activate).ok() } pub unsafe fn BuildUpMath(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BuildUpMath)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).BuildUpMath)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn DeleteSubrange(&self, cpfirst: i32, cplim: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteSubrange)(windows_core::Interface::as_raw(self), core::mem::transmute(cpfirst), core::mem::transmute(cplim)).ok() + (windows_core::Interface::vtable(self).DeleteSubrange)(windows_core::Interface::as_raw(self), cpfirst, cplim).ok() } pub unsafe fn Find(&self, prange: P0, count: i32, flags: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(count), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), prange.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn GetChar2(&self, pchar: *mut i32, offset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetChar2)(windows_core::Interface::as_raw(self), core::mem::transmute(pchar), core::mem::transmute(offset)).ok() + (windows_core::Interface::vtable(self).GetChar2)(windows_core::Interface::as_raw(self), core::mem::transmute(pchar), offset).ok() } pub unsafe fn GetDropCap(&self, pcline: *mut i32, pposition: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDropCap)(windows_core::Interface::as_raw(self), core::mem::transmute(pcline), core::mem::transmute(pposition)).ok() @@ -7002,44 +7002,44 @@ impl ITextRange2 { } pub unsafe fn GetProperty(&self, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn GetRect(&self, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32, phit: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRect)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom), core::mem::transmute(phit)).ok() + (windows_core::Interface::vtable(self).GetRect)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pleft), core::mem::transmute(ptop), core::mem::transmute(pright), core::mem::transmute(pbottom), core::mem::transmute(phit)).ok() } pub unsafe fn GetSubrange(&self, isubrange: i32, pcpfirst: *mut i32, pcplim: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSubrange)(windows_core::Interface::as_raw(self), core::mem::transmute(isubrange), core::mem::transmute(pcpfirst), core::mem::transmute(pcplim)).ok() + (windows_core::Interface::vtable(self).GetSubrange)(windows_core::Interface::as_raw(self), isubrange, core::mem::transmute(pcpfirst), core::mem::transmute(pcplim)).ok() } pub unsafe fn GetText2(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText2)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn HexToUnicode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HexToUnicode)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InsertTable(&self, ccol: i32, crow: i32, autofit: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ccol), core::mem::transmute(crow), core::mem::transmute(autofit)).ok() + (windows_core::Interface::vtable(self).InsertTable)(windows_core::Interface::as_raw(self), ccol, crow, autofit).ok() } pub unsafe fn Linearize(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Linearize)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Linearize)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetActiveSubrange(&self, cpanchor: i32, cpactive: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActiveSubrange)(windows_core::Interface::as_raw(self), core::mem::transmute(cpanchor), core::mem::transmute(cpactive)).ok() + (windows_core::Interface::vtable(self).SetActiveSubrange)(windows_core::Interface::as_raw(self), cpanchor, cpactive).ok() } pub unsafe fn SetDropCap(&self, cline: i32, position: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDropCap)(windows_core::Interface::as_raw(self), core::mem::transmute(cline), core::mem::transmute(position)).ok() + (windows_core::Interface::vtable(self).SetDropCap)(windows_core::Interface::as_raw(self), cline, position).ok() } pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), r#type, value).ok() } pub unsafe fn SetText2(&self, flags: i32, bstr: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetText2)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(bstr)).ok() + (windows_core::Interface::vtable(self).SetText2)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(bstr)).ok() } pub unsafe fn UnicodeToHex(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnicodeToHex)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetInlineObject(&self, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(align), core::mem::transmute(char), core::mem::transmute(char1), core::mem::transmute(char2), core::mem::transmute(count), core::mem::transmute(texstyle), core::mem::transmute(ccol)).ok() + (windows_core::Interface::vtable(self).SetInlineObject)(windows_core::Interface::as_raw(self), r#type, align, char, char1, char2, count, texstyle, ccol).ok() } pub unsafe fn GetMathFunctionType(&self, bstr: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7050,7 +7050,7 @@ impl ITextRange2 { where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertImage)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height), core::mem::transmute(ascent), core::mem::transmute(r#type), core::mem::transmute_copy(bstralttext), pstream.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertImage)(windows_core::Interface::as_raw(self), width, height, ascent, r#type, core::mem::transmute_copy(bstralttext), pstream.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7477,63 +7477,63 @@ impl ITextRow { (windows_core::Interface::vtable(self).GetAlignment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAlignment(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAlignment)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellCount(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellCount)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellCount)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellCountCache(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellCountCache)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellCountCache(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellCountCache)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellCountCache)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellIndex(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellIndex)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellMargin(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellMargin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellMargin(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellMargin)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellMargin)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetHeight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHeight(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetIndent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIndent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIndent(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIndent)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetIndent)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetKeepTogether(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetKeepTogether)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeepTogether(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeepTogether)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeepTogether)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetKeepWithNext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetKeepWithNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetKeepWithNext(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeepWithNext)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetKeepWithNext)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetNestLevel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7544,56 +7544,56 @@ impl ITextRow { (windows_core::Interface::vtable(self).GetRTL)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRTL(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRTL)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetRTL)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellAlignment(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellAlignment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellAlignment(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellAlignment)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellAlignment)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellColorBack(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellColorBack)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellColorBack(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellColorBack)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellColorBack)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellColorFore(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellColorFore)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellColorFore(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellColorFore)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellColorFore)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellMergeFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellMergeFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellMergeFlags(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellMergeFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellMergeFlags)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellShading(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellShading)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellShading(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellShading)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellShading)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellVerticalText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellVerticalText)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellVerticalText(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellVerticalText)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellVerticalText)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCellWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCellWidth(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetCellWidth)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetCellBorderColors(&self, pcrleft: *mut i32, pcrtop: *mut i32, pcrright: *mut i32, pcrbottom: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCellBorderColors)(windows_core::Interface::as_raw(self), core::mem::transmute(pcrleft), core::mem::transmute(pcrtop), core::mem::transmute(pcrright), core::mem::transmute(pcrbottom)).ok() @@ -7602,13 +7602,13 @@ impl ITextRow { (windows_core::Interface::vtable(self).GetCellBorderWidths)(windows_core::Interface::as_raw(self), core::mem::transmute(pduleft), core::mem::transmute(pdutop), core::mem::transmute(pduright), core::mem::transmute(pdubottom)).ok() } pub unsafe fn SetCellBorderColors(&self, crleft: i32, crtop: i32, crright: i32, crbottom: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellBorderColors)(windows_core::Interface::as_raw(self), core::mem::transmute(crleft), core::mem::transmute(crtop), core::mem::transmute(crright), core::mem::transmute(crbottom)).ok() + (windows_core::Interface::vtable(self).SetCellBorderColors)(windows_core::Interface::as_raw(self), crleft, crtop, crright, crbottom).ok() } pub unsafe fn SetCellBorderWidths(&self, duleft: i32, dutop: i32, duright: i32, dubottom: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCellBorderWidths)(windows_core::Interface::as_raw(self), core::mem::transmute(duleft), core::mem::transmute(dutop), core::mem::transmute(duright), core::mem::transmute(dubottom)).ok() + (windows_core::Interface::vtable(self).SetCellBorderWidths)(windows_core::Interface::as_raw(self), duleft, dutop, duright, dubottom).ok() } pub unsafe fn Apply(&self, crow: i32, flags: tomConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Apply)(windows_core::Interface::as_raw(self), core::mem::transmute(crow), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Apply)(windows_core::Interface::as_raw(self), crow, flags).ok() } pub unsafe fn CanChange(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -7616,10 +7616,10 @@ impl ITextRow { } pub unsafe fn GetProperty(&self, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn Insert(&self, crow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(crow)).ok() + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), crow).ok() } pub unsafe fn IsEqual(&self, prow: P0) -> windows_core::Result where @@ -7629,10 +7629,10 @@ impl ITextRow { (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), prow.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Reset(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), r#type, value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8122,7 +8122,7 @@ impl ITextSelection { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn GetType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8130,27 +8130,27 @@ impl ITextSelection { } pub unsafe fn MoveLeft(&self, unit: i32, count: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveLeft)(windows_core::Interface::as_raw(self), unit, count, extend, &mut result__).map(|| result__) } pub unsafe fn MoveRight(&self, unit: i32, count: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveRight)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveRight)(windows_core::Interface::as_raw(self), unit, count, extend, &mut result__).map(|| result__) } pub unsafe fn MoveUp(&self, unit: i32, count: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveUp)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveUp)(windows_core::Interface::as_raw(self), unit, count, extend, &mut result__).map(|| result__) } pub unsafe fn MoveDown(&self, unit: i32, count: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveDown)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(count), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MoveDown)(windows_core::Interface::as_raw(self), unit, count, extend, &mut result__).map(|| result__) } pub unsafe fn HomeKey(&self, unit: tomConstants, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HomeKey)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HomeKey)(windows_core::Interface::as_raw(self), unit, extend, &mut result__).map(|| result__) } pub unsafe fn EndKey(&self, unit: i32, extend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndKey)(windows_core::Interface::as_raw(self), core::mem::transmute(unit), core::mem::transmute(extend), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndKey)(windows_core::Interface::as_raw(self), unit, extend, &mut result__).map(|| result__) } pub unsafe fn TypeText(&self, bstr: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TypeText)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr)).ok() @@ -8328,11 +8328,11 @@ windows_core::imp::define_interface!(ITextServices, ITextServices_Vtbl, 0); windows_core::imp::interface_hierarchy!(ITextServices, windows_core::IUnknown); impl ITextServices { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).TxSendMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(plresult)).ok() + (windows_core::Interface::vtable(self).TxSendMessage)(windows_core::Interface::as_raw(self), msg, wparam, lparam, core::mem::transmute(plresult)).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).TxDraw)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(lindex), core::mem::transmute(pvaspect), core::mem::transmute(ptd), core::mem::transmute(hdcdraw), core::mem::transmute(hictargetdev), core::mem::transmute(lprcbounds), core::mem::transmute(lprcwbounds), core::mem::transmute(lprcupdate), core::mem::transmute(pfncontinue), core::mem::transmute(dwcontinue), core::mem::transmute(lviewid)).ok() + (windows_core::Interface::vtable(self).TxDraw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, core::mem::transmute(pvaspect), core::mem::transmute(ptd), hdcdraw, hictargetdev, core::mem::transmute(lprcbounds), core::mem::transmute(lprcwbounds), core::mem::transmute(lprcupdate), pfncontinue, dwcontinue, lviewid).ok() } pub unsafe 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<()> { (windows_core::Interface::vtable(self).TxGetHScroll)(windows_core::Interface::as_raw(self), core::mem::transmute(plmin), core::mem::transmute(plmax), core::mem::transmute(plpos), core::mem::transmute(plpage), core::mem::transmute(pfenabled)).ok() @@ -8342,11 +8342,11 @@ impl ITextServices { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn OnTxSetCursor(&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, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTxSetCursor)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(lindex), core::mem::transmute(pvaspect), core::mem::transmute(ptd), core::mem::transmute(hdcdraw), core::mem::transmute(hictargetdev), core::mem::transmute(lprcclient), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).OnTxSetCursor)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, core::mem::transmute(pvaspect), core::mem::transmute(ptd), hdcdraw, hictargetdev, core::mem::transmute(lprcclient), x, y).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn TxQueryHitPoint(&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, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32, phitresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TxQueryHitPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(dwdrawaspect), core::mem::transmute(lindex), core::mem::transmute(pvaspect), core::mem::transmute(ptd), core::mem::transmute(hdcdraw), core::mem::transmute(hictargetdev), core::mem::transmute(lprcclient), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(phitresult)).ok() + (windows_core::Interface::vtable(self).TxQueryHitPoint)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, core::mem::transmute(pvaspect), core::mem::transmute(ptd), hdcdraw, hictargetdev, core::mem::transmute(lprcclient), x, y, core::mem::transmute(phitresult)).ok() } pub unsafe fn OnTxInPlaceActivate(&self, prcclient: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnTxInPlaceActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(prcclient)).ok() @@ -8377,7 +8377,7 @@ impl ITextServices { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn TxGetNaturalSize(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).TxGetNaturalSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(hdcdraw), core::mem::transmute(hictargetdev), core::mem::transmute(ptd), core::mem::transmute(dwmode), core::mem::transmute(psizelextent), core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() + (windows_core::Interface::vtable(self).TxGetNaturalSize)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw, hictargetdev, core::mem::transmute(ptd), dwmode, psizelextent, core::mem::transmute(pwidth), core::mem::transmute(pheight)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn TxGetDropTarget(&self) -> windows_core::Result { @@ -8385,7 +8385,7 @@ impl ITextServices { (windows_core::Interface::vtable(self).TxGetDropTarget)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnTxPropertyBitsChange(&self, dwmask: u32, dwbits: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTxPropertyBitsChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmask), core::mem::transmute(dwbits)).ok() + (windows_core::Interface::vtable(self).OnTxPropertyBitsChange)(windows_core::Interface::as_raw(self), dwmask, dwbits).ok() } pub unsafe fn TxGetCachedSize(&self, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetCachedSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwwidth), core::mem::transmute(pdwheight)).ok() @@ -8569,14 +8569,14 @@ windows_core::imp::interface_hierarchy!(ITextServices2, windows_core::IUnknown, impl ITextServices2 { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn TxGetNaturalSize2(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).TxGetNaturalSize2)(windows_core::Interface::as_raw(self), core::mem::transmute(dwaspect), core::mem::transmute(hdcdraw), core::mem::transmute(hictargetdev), core::mem::transmute(ptd), core::mem::transmute(dwmode), core::mem::transmute(psizelextent), core::mem::transmute(pwidth), core::mem::transmute(pheight), core::mem::transmute(pascent)).ok() + (windows_core::Interface::vtable(self).TxGetNaturalSize2)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw, hictargetdev, core::mem::transmute(ptd), dwmode, psizelextent, core::mem::transmute(pwidth), core::mem::transmute(pheight), core::mem::transmute(pascent)).ok() } #[cfg(feature = "Win32_Graphics_Direct2D")] pub unsafe fn TxDrawD2D(&self, prendertarget: P0, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, lviewid: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxDrawD2D)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), core::mem::transmute(lprcbounds), core::mem::transmute(lprcupdate), core::mem::transmute(lviewid)).ok() + (windows_core::Interface::vtable(self).TxDrawD2D)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), core::mem::transmute(lprcbounds), core::mem::transmute(lprcupdate), lviewid).ok() } } #[repr(C)] @@ -8627,7 +8627,7 @@ impl ITextStory { (windows_core::Interface::vtable(self).GetActive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetActive(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActive)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetActive)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetDisplay(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8642,20 +8642,20 @@ impl ITextStory { (windows_core::Interface::vtable(self).GetType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetType(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn GetProperty(&self, r#type: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRange(&self, cpactive: i32, cpanchor: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), core::mem::transmute(cpactive), core::mem::transmute(cpanchor), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRange)(windows_core::Interface::as_raw(self), cpactive, cpanchor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetText(&self, flags: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetFormattedText(&self, punk: P0) -> windows_core::Result<()> where @@ -8664,10 +8664,10 @@ impl ITextStory { (windows_core::Interface::vtable(self).SetFormattedText)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), r#type, value).ok() } pub unsafe fn SetText(&self, flags: i32, bstr: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute_copy(bstr)).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), flags, core::mem::transmute_copy(bstr)).ok() } } #[repr(C)] @@ -8838,7 +8838,7 @@ impl ITextStoryRanges { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8920,7 +8920,7 @@ windows_core::imp::interface_hierarchy!(ITextStoryRanges2, windows_core::IUnknow impl ITextStoryRanges2 { pub unsafe fn Item2(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item2)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item2)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8969,7 +8969,7 @@ windows_core::imp::interface_hierarchy!(ITextStrings, windows_core::IUnknown, su impl ITextStrings { pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8982,10 +8982,10 @@ impl ITextStrings { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(istring)).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), prange.param().abi(), istring).ok() } pub unsafe fn Cat2(&self, istring: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Cat2)(windows_core::Interface::as_raw(self), core::mem::transmute(istring)).ok() + (windows_core::Interface::vtable(self).Cat2)(windows_core::Interface::as_raw(self), istring).ok() } pub unsafe fn CatTop2(&self, bstr: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CatTop2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr)).ok() @@ -9000,23 +9000,23 @@ impl ITextStrings { where P8: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), core::mem::transmute(align), core::mem::transmute(char), core::mem::transmute(char1), core::mem::transmute(char2), core::mem::transmute(count), core::mem::transmute(texstyle), core::mem::transmute(ccol), prange.param().abi()).ok() + (windows_core::Interface::vtable(self).EncodeFunction)(windows_core::Interface::as_raw(self), r#type, align, char, char1, char2, count, texstyle, ccol, prange.param().abi()).ok() } pub unsafe fn GetCch(&self, istring: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCch)(windows_core::Interface::as_raw(self), core::mem::transmute(istring), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCch)(windows_core::Interface::as_raw(self), istring, &mut result__).map(|| result__) } pub unsafe fn InsertNullStr(&self, istring: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertNullStr)(windows_core::Interface::as_raw(self), core::mem::transmute(istring)).ok() + (windows_core::Interface::vtable(self).InsertNullStr)(windows_core::Interface::as_raw(self), istring).ok() } pub unsafe fn MoveBoundary(&self, istring: i32, cch: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(istring), core::mem::transmute(cch)).ok() + (windows_core::Interface::vtable(self).MoveBoundary)(windows_core::Interface::as_raw(self), istring, cch).ok() } pub unsafe fn PrefixTop(&self, bstr: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PrefixTop)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstr)).ok() } pub unsafe fn Remove(&self, istring: i32, cstring: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(istring), core::mem::transmute(cstring)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), istring, cstring).ok() } pub unsafe fn SetFormattedText(&self, pranged: P0, pranges: P1) -> windows_core::Result<()> where @@ -9026,7 +9026,7 @@ impl ITextStrings { (windows_core::Interface::vtable(self).SetFormattedText)(windows_core::Interface::as_raw(self), pranged.param().abi(), pranges.param().abi()).ok() } pub unsafe fn SetOpCp(&self, istring: i32, cp: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpCp)(windows_core::Interface::as_raw(self), core::mem::transmute(istring), core::mem::transmute(cp)).ok() + (windows_core::Interface::vtable(self).SetOpCp)(windows_core::Interface::as_raw(self), istring, cp).ok() } pub unsafe fn SuffixTop(&self, bstr: &windows_core::BSTR, prange: P1) -> windows_core::Result<()> where diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs index 136aca6b10..7c222f9ae6 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -6,23 +6,23 @@ pub mod RichEdit; #[inline] pub unsafe fn BeginBufferedAnimation(hwnd: super::super::Foundation::HWND, hdctarget: super::super::Graphics::Gdi::HDC, prctarget: *const super::super::Foundation::RECT, dwformat: BP_BUFFERFORMAT, ppaintparams: Option<*const BP_PAINTPARAMS>, panimationparams: *const BP_ANIMATIONPARAMS, phdcfrom: *mut super::super::Graphics::Gdi::HDC, phdcto: *mut super::super::Graphics::Gdi::HDC) -> isize { windows_targets::link!("uxtheme.dll" "system" fn BeginBufferedAnimation(hwnd : super::super::Foundation:: HWND, hdctarget : super::super::Graphics::Gdi:: HDC, prctarget : *const super::super::Foundation:: RECT, dwformat : BP_BUFFERFORMAT, ppaintparams : *const BP_PAINTPARAMS, panimationparams : *const BP_ANIMATIONPARAMS, phdcfrom : *mut super::super::Graphics::Gdi:: HDC, phdcto : *mut super::super::Graphics::Gdi:: HDC) -> isize); - BeginBufferedAnimation(core::mem::transmute(hwnd), core::mem::transmute(hdctarget), core::mem::transmute(prctarget), core::mem::transmute(dwformat), core::mem::transmute(ppaintparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(panimationparams), core::mem::transmute(phdcfrom), core::mem::transmute(phdcto)) + BeginBufferedAnimation(hwnd, hdctarget, prctarget, dwformat, core::mem::transmute(ppaintparams.unwrap_or(core::mem::zeroed())), panimationparams, core::mem::transmute(phdcfrom), core::mem::transmute(phdcto)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn BeginBufferedPaint(hdctarget: super::super::Graphics::Gdi::HDC, prctarget: *const super::super::Foundation::RECT, dwformat: BP_BUFFERFORMAT, ppaintparams: Option<*const BP_PAINTPARAMS>, phdc: *mut super::super::Graphics::Gdi::HDC) -> isize { windows_targets::link!("uxtheme.dll" "system" fn BeginBufferedPaint(hdctarget : super::super::Graphics::Gdi:: HDC, prctarget : *const super::super::Foundation:: RECT, dwformat : BP_BUFFERFORMAT, ppaintparams : *const BP_PAINTPARAMS, phdc : *mut super::super::Graphics::Gdi:: HDC) -> isize); - BeginBufferedPaint(core::mem::transmute(hdctarget), core::mem::transmute(prctarget), core::mem::transmute(dwformat), core::mem::transmute(ppaintparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(phdc)) + BeginBufferedPaint(hdctarget, prctarget, dwformat, core::mem::transmute(ppaintparams.unwrap_or(core::mem::zeroed())), core::mem::transmute(phdc)) } #[inline] pub unsafe fn BeginPanningFeedback(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn BeginPanningFeedback(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - BeginPanningFeedback(core::mem::transmute(hwnd)) + BeginPanningFeedback(hwnd) } #[inline] pub unsafe fn BufferedPaintClear(hbufferedpaint: isize, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintClear(hbufferedpaint : isize, prc : *const super::super::Foundation:: RECT) -> windows_core::HRESULT); - BufferedPaintClear(core::mem::transmute(hbufferedpaint), core::mem::transmute(prc.unwrap_or(core::mem::zeroed()))).ok() + BufferedPaintClear(hbufferedpaint, core::mem::transmute(prc.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn BufferedPaintInit() -> windows_core::Result<()> { @@ -33,17 +33,17 @@ pub unsafe fn BufferedPaintInit() -> windows_core::Result<()> { #[inline] pub unsafe fn BufferedPaintRenderAnimation(hwnd: super::super::Foundation::HWND, hdctarget: super::super::Graphics::Gdi::HDC) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintRenderAnimation(hwnd : super::super::Foundation:: HWND, hdctarget : super::super::Graphics::Gdi:: HDC) -> super::super::Foundation:: BOOL); - BufferedPaintRenderAnimation(core::mem::transmute(hwnd), core::mem::transmute(hdctarget)) + BufferedPaintRenderAnimation(hwnd, hdctarget) } #[inline] pub unsafe fn BufferedPaintSetAlpha(hbufferedpaint: isize, prc: Option<*const super::super::Foundation::RECT>, alpha: u8) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintSetAlpha(hbufferedpaint : isize, prc : *const super::super::Foundation:: RECT, alpha : u8) -> windows_core::HRESULT); - BufferedPaintSetAlpha(core::mem::transmute(hbufferedpaint), core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), core::mem::transmute(alpha)).ok() + BufferedPaintSetAlpha(hbufferedpaint, core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), alpha).ok() } #[inline] pub unsafe fn BufferedPaintStopAllAnimations(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintStopAllAnimations(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - BufferedPaintStopAllAnimations(core::mem::transmute(hwnd)).ok() + BufferedPaintStopAllAnimations(hwnd).ok() } #[inline] pub unsafe fn BufferedPaintUnInit() -> windows_core::Result<()> { @@ -53,23 +53,23 @@ pub unsafe fn BufferedPaintUnInit() -> windows_core::Result<()> { #[inline] pub unsafe fn CheckDlgButton(hdlg: super::super::Foundation::HWND, nidbutton: i32, ucheck: DLG_BUTTON_CHECK_STATE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CheckDlgButton(hdlg : super::super::Foundation:: HWND, nidbutton : i32, ucheck : DLG_BUTTON_CHECK_STATE) -> super::super::Foundation:: BOOL); - CheckDlgButton(core::mem::transmute(hdlg), core::mem::transmute(nidbutton), core::mem::transmute(ucheck)).ok() + CheckDlgButton(hdlg, nidbutton, ucheck).ok() } #[inline] pub unsafe fn CheckRadioButton(hdlg: super::super::Foundation::HWND, nidfirstbutton: i32, nidlastbutton: i32, nidcheckbutton: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CheckRadioButton(hdlg : super::super::Foundation:: HWND, nidfirstbutton : i32, nidlastbutton : i32, nidcheckbutton : i32) -> super::super::Foundation:: BOOL); - CheckRadioButton(core::mem::transmute(hdlg), core::mem::transmute(nidfirstbutton), core::mem::transmute(nidlastbutton), core::mem::transmute(nidcheckbutton)).ok() + CheckRadioButton(hdlg, nidfirstbutton, nidlastbutton, nidcheckbutton).ok() } #[inline] pub unsafe fn CloseThemeData(htheme: HTHEME) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn CloseThemeData(htheme : HTHEME) -> windows_core::HRESULT); - CloseThemeData(core::mem::transmute(htheme)).ok() + CloseThemeData(htheme).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateMappedBitmap(hinstance: super::super::Foundation::HINSTANCE, idbitmap: isize, wflags: u32, lpcolormap: Option<*const COLORMAP>, inummaps: i32) -> windows_core::Result { windows_targets::link!("comctl32.dll" "system" fn CreateMappedBitmap(hinstance : super::super::Foundation:: HINSTANCE, idbitmap : isize, wflags : u32, lpcolormap : *const COLORMAP, inummaps : i32) -> super::super::Graphics::Gdi:: HBITMAP); - let result__ = CreateMappedBitmap(core::mem::transmute(hinstance), core::mem::transmute(idbitmap), core::mem::transmute(wflags), core::mem::transmute(lpcolormap.unwrap_or(core::mem::zeroed())), core::mem::transmute(inummaps)); + let result__ = CreateMappedBitmap(hinstance, idbitmap, wflags, core::mem::transmute(lpcolormap.unwrap_or(core::mem::zeroed())), inummaps); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] @@ -90,7 +90,7 @@ where P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn CreateStatusWindowA(style : i32, lpsztext : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, wid : u32) -> super::super::Foundation:: HWND); - let result__ = CreateStatusWindowA(core::mem::transmute(style), lpsztext.param().abi(), core::mem::transmute(hwndparent), core::mem::transmute(wid)); + let result__ = CreateStatusWindowA(style, lpsztext.param().abi(), hwndparent, wid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -99,51 +99,51 @@ where P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn CreateStatusWindowW(style : i32, lpsztext : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, wid : u32) -> super::super::Foundation:: HWND); - let result__ = CreateStatusWindowW(core::mem::transmute(style), lpsztext.param().abi(), core::mem::transmute(hwndparent), core::mem::transmute(wid)); + let result__ = CreateStatusWindowW(style, lpsztext.param().abi(), hwndparent, wid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn CreateSyntheticPointerDevice(pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE, maxcount: u32, mode: POINTER_FEEDBACK_MODE) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateSyntheticPointerDevice(pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE, maxcount : u32, mode : POINTER_FEEDBACK_MODE) -> HSYNTHETICPOINTERDEVICE); - let result__ = CreateSyntheticPointerDevice(core::mem::transmute(pointertype), core::mem::transmute(maxcount), core::mem::transmute(mode)); + let result__ = CreateSyntheticPointerDevice(pointertype, maxcount, mode); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateToolbarEx(hwnd: super::super::Foundation::HWND, ws: u32, wid: u32, nbitmaps: i32, hbminst: super::super::Foundation::HINSTANCE, wbmid: usize, lpbuttons: *mut TBBUTTON, inumbuttons: i32, dxbutton: i32, dybutton: i32, dxbitmap: i32, dybitmap: i32, ustructsize: u32) -> windows_core::Result { windows_targets::link!("comctl32.dll" "system" fn CreateToolbarEx(hwnd : super::super::Foundation:: HWND, ws : u32, wid : u32, nbitmaps : i32, hbminst : super::super::Foundation:: HINSTANCE, wbmid : usize, lpbuttons : *mut TBBUTTON, inumbuttons : i32, dxbutton : i32, dybutton : i32, dxbitmap : i32, dybitmap : i32, ustructsize : u32) -> super::super::Foundation:: HWND); - let result__ = CreateToolbarEx(core::mem::transmute(hwnd), core::mem::transmute(ws), core::mem::transmute(wid), core::mem::transmute(nbitmaps), core::mem::transmute(hbminst), core::mem::transmute(wbmid), core::mem::transmute(lpbuttons), core::mem::transmute(inumbuttons), core::mem::transmute(dxbutton), core::mem::transmute(dybutton), core::mem::transmute(dxbitmap), core::mem::transmute(dybitmap), core::mem::transmute(ustructsize)); + let result__ = CreateToolbarEx(hwnd, ws, wid, nbitmaps, hbminst, wbmid, core::mem::transmute(lpbuttons), inumbuttons, dxbutton, dybutton, dxbitmap, dybitmap, ustructsize); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateUpDownControl(dwstyle: u32, x: i32, y: i32, cx: i32, cy: i32, hparent: super::super::Foundation::HWND, nid: i32, hinst: super::super::Foundation::HINSTANCE, hbuddy: super::super::Foundation::HWND, nupper: i32, nlower: i32, npos: i32) -> super::super::Foundation::HWND { windows_targets::link!("comctl32.dll" "system" fn CreateUpDownControl(dwstyle : u32, x : i32, y : i32, cx : i32, cy : i32, hparent : super::super::Foundation:: HWND, nid : i32, hinst : super::super::Foundation:: HINSTANCE, hbuddy : super::super::Foundation:: HWND, nupper : i32, nlower : i32, npos : i32) -> super::super::Foundation:: HWND); - CreateUpDownControl(core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(hparent), core::mem::transmute(nid), core::mem::transmute(hinst), core::mem::transmute(hbuddy), core::mem::transmute(nupper), core::mem::transmute(nlower), core::mem::transmute(npos)) + CreateUpDownControl(dwstyle, x, y, cx, cy, hparent, nid, hinst, hbuddy, nupper, nlower, npos) } #[inline] pub unsafe fn DPA_Clone(hdpa: HDPA, hdpanew: Option) -> HDPA { windows_targets::link!("comctl32.dll" "system" fn DPA_Clone(hdpa : HDPA, hdpanew : HDPA) -> HDPA); - DPA_Clone(core::mem::transmute(hdpa), core::mem::transmute(hdpanew.unwrap_or(core::mem::zeroed()))) + DPA_Clone(hdpa, core::mem::transmute(hdpanew.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DPA_Create(citemgrow: i32) -> HDPA { windows_targets::link!("comctl32.dll" "system" fn DPA_Create(citemgrow : i32) -> HDPA); - DPA_Create(core::mem::transmute(citemgrow)) + DPA_Create(citemgrow) } #[inline] pub unsafe fn DPA_CreateEx(cpgrow: i32, hheap: Option) -> HDPA { windows_targets::link!("comctl32.dll" "system" fn DPA_CreateEx(cpgrow : i32, hheap : super::super::Foundation:: HANDLE) -> HDPA); - DPA_CreateEx(core::mem::transmute(cpgrow), core::mem::transmute(hheap.unwrap_or(core::mem::zeroed()))) + DPA_CreateEx(cpgrow, core::mem::transmute(hheap.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DPA_DeleteAllPtrs(hdpa: HDPA) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DPA_DeleteAllPtrs(hdpa : HDPA) -> super::super::Foundation:: BOOL); - DPA_DeleteAllPtrs(core::mem::transmute(hdpa)) + DPA_DeleteAllPtrs(hdpa) } #[inline] pub unsafe fn DPA_DeletePtr(hdpa: HDPA, i: i32) -> *mut core::ffi::c_void { windows_targets::link!("comctl32.dll" "system" fn DPA_DeletePtr(hdpa : HDPA, i : i32) -> *mut core::ffi::c_void); - DPA_DeletePtr(core::mem::transmute(hdpa), core::mem::transmute(i)) + DPA_DeletePtr(hdpa, i) } #[inline] pub unsafe fn DPA_Destroy(hdpa: Option) -> super::super::Foundation::BOOL { @@ -153,7 +153,7 @@ pub unsafe fn DPA_Destroy(hdpa: Option) -> super::super::Foundation::BOOL #[inline] pub unsafe fn DPA_DestroyCallback(hdpa: Option, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) { windows_targets::link!("comctl32.dll" "system" fn DPA_DestroyCallback(hdpa : HDPA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DPA_DestroyCallback(core::mem::transmute(hdpa.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfncb), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))) + DPA_DestroyCallback(core::mem::transmute(hdpa.unwrap_or(core::mem::zeroed())), pfncb, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DPA_EnumCallback(hdpa: Option, pfncb: Option, pdata: Option<*const core::ffi::c_void>) { @@ -163,12 +163,12 @@ pub unsafe fn DPA_EnumCallback(hdpa: Option, pfncb: Option *mut core::ffi::c_void { windows_targets::link!("comctl32.dll" "system" fn DPA_GetPtr(hdpa : HDPA, i : isize) -> *mut core::ffi::c_void); - DPA_GetPtr(core::mem::transmute(hdpa), core::mem::transmute(i)) + DPA_GetPtr(hdpa, i) } #[inline] pub unsafe fn DPA_GetPtrIndex(hdpa: HDPA, p: Option<*const core::ffi::c_void>) -> i32 { windows_targets::link!("comctl32.dll" "system" fn DPA_GetPtrIndex(hdpa : HDPA, p : *const core::ffi::c_void) -> i32); - DPA_GetPtrIndex(core::mem::transmute(hdpa), core::mem::transmute(p.unwrap_or(core::mem::zeroed()))) + DPA_GetPtrIndex(hdpa, core::mem::transmute(p.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DPA_GetSize(hdpa: Option) -> u64 { @@ -178,12 +178,12 @@ pub unsafe fn DPA_GetSize(hdpa: Option) -> u64 { #[inline] pub unsafe fn DPA_Grow(pdpa: HDPA, cp: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DPA_Grow(pdpa : HDPA, cp : i32) -> super::super::Foundation:: BOOL); - DPA_Grow(core::mem::transmute(pdpa), core::mem::transmute(cp)) + DPA_Grow(pdpa, cp) } #[inline] pub unsafe fn DPA_InsertPtr(hdpa: HDPA, i: i32, p: Option<*const core::ffi::c_void>) -> i32 { windows_targets::link!("comctl32.dll" "system" fn DPA_InsertPtr(hdpa : HDPA, i : i32, p : *const core::ffi::c_void) -> i32); - DPA_InsertPtr(core::mem::transmute(hdpa), core::mem::transmute(i), core::mem::transmute(p.unwrap_or(core::mem::zeroed()))) + DPA_InsertPtr(hdpa, i, core::mem::transmute(p.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -192,12 +192,12 @@ where P2: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_LoadStream(phdpa : *mut HDPA, pfn : PFNDPASTREAM, pstream : * mut core::ffi::c_void, pvinstdata : *const core::ffi::c_void) -> windows_core::HRESULT); - DPA_LoadStream(core::mem::transmute(phdpa), core::mem::transmute(pfn), pstream.param().abi(), core::mem::transmute(pvinstdata.unwrap_or(core::mem::zeroed()))).ok() + DPA_LoadStream(core::mem::transmute(phdpa), pfn, pstream.param().abi(), core::mem::transmute(pvinstdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DPA_Merge(hdpadest: HDPA, hdpasrc: HDPA, dwflags: u32, pfncompare: PFNDACOMPARE, pfnmerge: PFNDPAMERGE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DPA_Merge(hdpadest : HDPA, hdpasrc : HDPA, dwflags : u32, pfncompare : PFNDACOMPARE, pfnmerge : PFNDPAMERGE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - DPA_Merge(core::mem::transmute(hdpadest), core::mem::transmute(hdpasrc), core::mem::transmute(dwflags), core::mem::transmute(pfncompare), core::mem::transmute(pfnmerge), core::mem::transmute(lparam)) + DPA_Merge(hdpadest, hdpasrc, dwflags, pfncompare, pfnmerge, lparam) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -206,42 +206,42 @@ where P2: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_SaveStream(hdpa : HDPA, pfn : PFNDPASTREAM, pstream : * mut core::ffi::c_void, pvinstdata : *const core::ffi::c_void) -> windows_core::HRESULT); - DPA_SaveStream(core::mem::transmute(hdpa), core::mem::transmute(pfn), pstream.param().abi(), core::mem::transmute(pvinstdata.unwrap_or(core::mem::zeroed()))).ok() + DPA_SaveStream(hdpa, pfn, pstream.param().abi(), core::mem::transmute(pvinstdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn DPA_Search(hdpa: HDPA, pfind: Option<*const core::ffi::c_void>, istart: i32, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM, options: u32) -> i32 { windows_targets::link!("comctl32.dll" "system" fn DPA_Search(hdpa : HDPA, pfind : *const core::ffi::c_void, istart : i32, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM, options : u32) -> i32); - DPA_Search(core::mem::transmute(hdpa), core::mem::transmute(pfind.unwrap_or(core::mem::zeroed())), core::mem::transmute(istart), core::mem::transmute(pfncompare), core::mem::transmute(lparam), core::mem::transmute(options)) + DPA_Search(hdpa, core::mem::transmute(pfind.unwrap_or(core::mem::zeroed())), istart, pfncompare, lparam, options) } #[inline] pub unsafe fn DPA_SetPtr(hdpa: HDPA, i: i32, p: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DPA_SetPtr(hdpa : HDPA, i : i32, p : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DPA_SetPtr(core::mem::transmute(hdpa), core::mem::transmute(i), core::mem::transmute(p.unwrap_or(core::mem::zeroed()))) + DPA_SetPtr(hdpa, i, core::mem::transmute(p.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DPA_Sort(hdpa: HDPA, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DPA_Sort(hdpa : HDPA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - DPA_Sort(core::mem::transmute(hdpa), core::mem::transmute(pfncompare), core::mem::transmute(lparam)) + DPA_Sort(hdpa, pfncompare, lparam) } #[inline] pub unsafe fn DSA_Clone(hdsa: HDSA) -> HDSA { windows_targets::link!("comctl32.dll" "system" fn DSA_Clone(hdsa : HDSA) -> HDSA); - DSA_Clone(core::mem::transmute(hdsa)) + DSA_Clone(hdsa) } #[inline] pub unsafe fn DSA_Create(cbitem: i32, citemgrow: i32) -> HDSA { windows_targets::link!("comctl32.dll" "system" fn DSA_Create(cbitem : i32, citemgrow : i32) -> HDSA); - DSA_Create(core::mem::transmute(cbitem), core::mem::transmute(citemgrow)) + DSA_Create(cbitem, citemgrow) } #[inline] pub unsafe fn DSA_DeleteAllItems(hdsa: HDSA) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteAllItems(hdsa : HDSA) -> super::super::Foundation:: BOOL); - DSA_DeleteAllItems(core::mem::transmute(hdsa)) + DSA_DeleteAllItems(hdsa) } #[inline] pub unsafe fn DSA_DeleteItem(hdsa: HDSA, i: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteItem(hdsa : HDSA, i : i32) -> super::super::Foundation:: BOOL); - DSA_DeleteItem(core::mem::transmute(hdsa), core::mem::transmute(i)) + DSA_DeleteItem(hdsa, i) } #[inline] pub unsafe fn DSA_Destroy(hdsa: Option) -> super::super::Foundation::BOOL { @@ -251,22 +251,22 @@ pub unsafe fn DSA_Destroy(hdsa: Option) -> super::super::Foundation::BOOL #[inline] pub unsafe fn DSA_DestroyCallback(hdsa: Option, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) { windows_targets::link!("comctl32.dll" "system" fn DSA_DestroyCallback(hdsa : HDSA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DSA_DestroyCallback(core::mem::transmute(hdsa.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfncb), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))) + DSA_DestroyCallback(core::mem::transmute(hdsa.unwrap_or(core::mem::zeroed())), pfncb, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DSA_EnumCallback(hdsa: HDSA, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) { windows_targets::link!("comctl32.dll" "system" fn DSA_EnumCallback(hdsa : HDSA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DSA_EnumCallback(core::mem::transmute(hdsa), core::mem::transmute(pfncb), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))) + DSA_EnumCallback(hdsa, pfncb, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn DSA_GetItem(hdsa: HDSA, i: i32, pitem: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DSA_GetItem(hdsa : HDSA, i : i32, pitem : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - DSA_GetItem(core::mem::transmute(hdsa), core::mem::transmute(i), core::mem::transmute(pitem)) + DSA_GetItem(hdsa, i, core::mem::transmute(pitem)) } #[inline] pub unsafe fn DSA_GetItemPtr(hdsa: HDSA, i: i32) -> *mut core::ffi::c_void { windows_targets::link!("comctl32.dll" "system" fn DSA_GetItemPtr(hdsa : HDSA, i : i32) -> *mut core::ffi::c_void); - DSA_GetItemPtr(core::mem::transmute(hdsa), core::mem::transmute(i)) + DSA_GetItemPtr(hdsa, i) } #[inline] pub unsafe fn DSA_GetSize(hdsa: Option) -> u64 { @@ -276,78 +276,78 @@ pub unsafe fn DSA_GetSize(hdsa: Option) -> u64 { #[inline] pub unsafe fn DSA_InsertItem(hdsa: HDSA, i: i32, pitem: *const core::ffi::c_void) -> i32 { windows_targets::link!("comctl32.dll" "system" fn DSA_InsertItem(hdsa : HDSA, i : i32, pitem : *const core::ffi::c_void) -> i32); - DSA_InsertItem(core::mem::transmute(hdsa), core::mem::transmute(i), core::mem::transmute(pitem)) + DSA_InsertItem(hdsa, i, pitem) } #[inline] pub unsafe fn DSA_SetItem(hdsa: HDSA, i: i32, pitem: *const core::ffi::c_void) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DSA_SetItem(hdsa : HDSA, i : i32, pitem : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - DSA_SetItem(core::mem::transmute(hdsa), core::mem::transmute(i), core::mem::transmute(pitem)) + DSA_SetItem(hdsa, i, pitem) } #[inline] pub unsafe fn DSA_Sort(pdsa: HDSA, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DSA_Sort(pdsa : HDSA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - DSA_Sort(core::mem::transmute(pdsa), core::mem::transmute(pfncompare), core::mem::transmute(lparam)) + DSA_Sort(pdsa, pfncompare, lparam) } #[inline] pub unsafe fn DestroyPropertySheetPage(param0: HPROPSHEETPAGE) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn DestroyPropertySheetPage(param0 : HPROPSHEETPAGE) -> super::super::Foundation:: BOOL); - DestroyPropertySheetPage(core::mem::transmute(param0)) + DestroyPropertySheetPage(param0) } #[inline] pub unsafe fn DestroySyntheticPointerDevice(device: HSYNTHETICPOINTERDEVICE) { windows_targets::link!("user32.dll" "system" fn DestroySyntheticPointerDevice(device : HSYNTHETICPOINTERDEVICE)); - DestroySyntheticPointerDevice(core::mem::transmute(device)) + DestroySyntheticPointerDevice(device) } #[inline] pub unsafe fn DlgDirListA(hdlg: super::super::Foundation::HWND, lppathspec: windows_core::PSTR, nidlistbox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 { windows_targets::link!("user32.dll" "system" fn DlgDirListA(hdlg : super::super::Foundation:: HWND, lppathspec : windows_core::PSTR, nidlistbox : i32, nidstaticpath : i32, ufiletype : DLG_DIR_LIST_FILE_TYPE) -> i32); - DlgDirListA(core::mem::transmute(hdlg), core::mem::transmute(lppathspec), core::mem::transmute(nidlistbox), core::mem::transmute(nidstaticpath), core::mem::transmute(ufiletype)) + DlgDirListA(hdlg, core::mem::transmute(lppathspec), nidlistbox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirListComboBoxA(hdlg: super::super::Foundation::HWND, lppathspec: windows_core::PSTR, nidcombobox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 { windows_targets::link!("user32.dll" "system" fn DlgDirListComboBoxA(hdlg : super::super::Foundation:: HWND, lppathspec : windows_core::PSTR, nidcombobox : i32, nidstaticpath : i32, ufiletype : DLG_DIR_LIST_FILE_TYPE) -> i32); - DlgDirListComboBoxA(core::mem::transmute(hdlg), core::mem::transmute(lppathspec), core::mem::transmute(nidcombobox), core::mem::transmute(nidstaticpath), core::mem::transmute(ufiletype)) + DlgDirListComboBoxA(hdlg, core::mem::transmute(lppathspec), nidcombobox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirListComboBoxW(hdlg: super::super::Foundation::HWND, lppathspec: windows_core::PWSTR, nidcombobox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 { windows_targets::link!("user32.dll" "system" fn DlgDirListComboBoxW(hdlg : super::super::Foundation:: HWND, lppathspec : windows_core::PWSTR, nidcombobox : i32, nidstaticpath : i32, ufiletype : DLG_DIR_LIST_FILE_TYPE) -> i32); - DlgDirListComboBoxW(core::mem::transmute(hdlg), core::mem::transmute(lppathspec), core::mem::transmute(nidcombobox), core::mem::transmute(nidstaticpath), core::mem::transmute(ufiletype)) + DlgDirListComboBoxW(hdlg, core::mem::transmute(lppathspec), nidcombobox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirListW(hdlg: super::super::Foundation::HWND, lppathspec: windows_core::PWSTR, nidlistbox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 { windows_targets::link!("user32.dll" "system" fn DlgDirListW(hdlg : super::super::Foundation:: HWND, lppathspec : windows_core::PWSTR, nidlistbox : i32, nidstaticpath : i32, ufiletype : DLG_DIR_LIST_FILE_TYPE) -> i32); - DlgDirListW(core::mem::transmute(hdlg), core::mem::transmute(lppathspec), core::mem::transmute(nidlistbox), core::mem::transmute(nidstaticpath), core::mem::transmute(ufiletype)) + DlgDirListW(hdlg, core::mem::transmute(lppathspec), nidlistbox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirSelectComboBoxExA(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u8], idcombobox: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DlgDirSelectComboBoxExA(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, cchout : i32, idcombobox : i32) -> super::super::Foundation:: BOOL); - DlgDirSelectComboBoxExA(core::mem::transmute(hwnddlg), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(idcombobox)).ok() + DlgDirSelectComboBoxExA(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() } #[inline] pub unsafe fn DlgDirSelectComboBoxExW(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u16], idcombobox: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DlgDirSelectComboBoxExW(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, cchout : i32, idcombobox : i32) -> super::super::Foundation:: BOOL); - DlgDirSelectComboBoxExW(core::mem::transmute(hwnddlg), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(idcombobox)).ok() + DlgDirSelectComboBoxExW(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() } #[inline] pub unsafe fn DlgDirSelectExA(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u8], idlistbox: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DlgDirSelectExA(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, chcount : i32, idlistbox : i32) -> super::super::Foundation:: BOOL); - DlgDirSelectExA(core::mem::transmute(hwnddlg), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(idlistbox)).ok() + DlgDirSelectExA(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() } #[inline] pub unsafe fn DlgDirSelectExW(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u16], idlistbox: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DlgDirSelectExW(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, chcount : i32, idlistbox : i32) -> super::super::Foundation:: BOOL); - DlgDirSelectExW(core::mem::transmute(hwnddlg), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), core::mem::transmute(idlistbox)).ok() + DlgDirSelectExW(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() } #[inline] pub unsafe fn DrawInsert(handparent: super::super::Foundation::HWND, hlb: super::super::Foundation::HWND, nitem: i32) { windows_targets::link!("comctl32.dll" "system" fn DrawInsert(handparent : super::super::Foundation:: HWND, hlb : super::super::Foundation:: HWND, nitem : i32)); - DrawInsert(core::mem::transmute(handparent), core::mem::transmute(hlb), core::mem::transmute(nitem)) + DrawInsert(handparent, hlb, nitem) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawShadowText(hdc: super::super::Graphics::Gdi::HDC, psztext: &[u16], prc: *const super::super::Foundation::RECT, dwflags: u32, crtext: super::super::Foundation::COLORREF, crshadow: super::super::Foundation::COLORREF, ixoffset: i32, iyoffset: i32) -> i32 { windows_targets::link!("comctl32.dll" "system" fn DrawShadowText(hdc : super::super::Graphics::Gdi:: HDC, psztext : windows_core::PCWSTR, cch : u32, prc : *const super::super::Foundation:: RECT, dwflags : u32, crtext : super::super::Foundation:: COLORREF, crshadow : super::super::Foundation:: COLORREF, ixoffset : i32, iyoffset : i32) -> i32); - DrawShadowText(core::mem::transmute(hdc), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), core::mem::transmute(prc), core::mem::transmute(dwflags), core::mem::transmute(crtext), core::mem::transmute(crshadow), core::mem::transmute(ixoffset), core::mem::transmute(iyoffset)) + DrawShadowText(hdc, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), prc, dwflags, crtext, crshadow, ixoffset, iyoffset) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -356,7 +356,7 @@ where P2: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DrawStatusTextA(hdc : super::super::Graphics::Gdi:: HDC, lprc : *mut super::super::Foundation:: RECT, psztext : windows_core::PCSTR, uflags : u32)); - DrawStatusTextA(core::mem::transmute(hdc), core::mem::transmute(lprc), psztext.param().abi(), core::mem::transmute(uflags)) + DrawStatusTextA(hdc, core::mem::transmute(lprc), psztext.param().abi(), uflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -365,65 +365,65 @@ where P2: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DrawStatusTextW(hdc : super::super::Graphics::Gdi:: HDC, lprc : *mut super::super::Foundation:: RECT, psztext : windows_core::PCWSTR, uflags : u32)); - DrawStatusTextW(core::mem::transmute(hdc), core::mem::transmute(lprc), psztext.param().abi(), core::mem::transmute(uflags)) + DrawStatusTextW(hdc, core::mem::transmute(lprc), psztext.param().abi(), uflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeBackground(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT, pcliprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeBackground(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, prect : *const super::super::Foundation:: RECT, pcliprect : *const super::super::Foundation:: RECT) -> windows_core::HRESULT); - DrawThemeBackground(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(prect), core::mem::transmute(pcliprect.unwrap_or(core::mem::zeroed()))).ok() + DrawThemeBackground(htheme, hdc, ipartid, istateid, prect, core::mem::transmute(pcliprect.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeBackgroundEx(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT, poptions: Option<*const DTBGOPTS>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeBackgroundEx(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, prect : *const super::super::Foundation:: RECT, poptions : *const DTBGOPTS) -> windows_core::HRESULT); - DrawThemeBackgroundEx(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(prect), core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))).ok() + DrawThemeBackgroundEx(htheme, hdc, ipartid, istateid, prect, core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeEdge(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, pdestrect: *const super::super::Foundation::RECT, uedge: super::super::Graphics::Gdi::DRAWEDGE_FLAGS, uflags: super::super::Graphics::Gdi::DRAW_EDGE_FLAGS, pcontentrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeEdge(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, pdestrect : *const super::super::Foundation:: RECT, uedge : super::super::Graphics::Gdi:: DRAWEDGE_FLAGS, uflags : super::super::Graphics::Gdi:: DRAW_EDGE_FLAGS, pcontentrect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); - DrawThemeEdge(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(pdestrect), core::mem::transmute(uedge), core::mem::transmute(uflags), core::mem::transmute(pcontentrect.unwrap_or(core::mem::zeroed()))).ok() + DrawThemeEdge(htheme, hdc, ipartid, istateid, pdestrect, uedge, uflags, core::mem::transmute(pcontentrect.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeIcon(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT, himl: HIMAGELIST, iimageindex: i32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeIcon(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, prect : *const super::super::Foundation:: RECT, himl : HIMAGELIST, iimageindex : i32) -> windows_core::HRESULT); - DrawThemeIcon(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(prect), core::mem::transmute(himl), core::mem::transmute(iimageindex)).ok() + DrawThemeIcon(htheme, hdc, ipartid, istateid, prect, himl, iimageindex).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeParentBackground(hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeParentBackground(hwnd : super::super::Foundation:: HWND, hdc : super::super::Graphics::Gdi:: HDC, prc : *const super::super::Foundation:: RECT) -> windows_core::HRESULT); - DrawThemeParentBackground(core::mem::transmute(hwnd), core::mem::transmute(hdc), core::mem::transmute(prc.unwrap_or(core::mem::zeroed()))).ok() + DrawThemeParentBackground(hwnd, hdc, core::mem::transmute(prc.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeParentBackgroundEx(hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC, dwflags: DRAW_THEME_PARENT_BACKGROUND_FLAGS, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeParentBackgroundEx(hwnd : super::super::Foundation:: HWND, hdc : super::super::Graphics::Gdi:: HDC, dwflags : DRAW_THEME_PARENT_BACKGROUND_FLAGS, prc : *const super::super::Foundation:: RECT) -> windows_core::HRESULT); - DrawThemeParentBackgroundEx(core::mem::transmute(hwnd), core::mem::transmute(hdc), core::mem::transmute(dwflags), core::mem::transmute(prc.unwrap_or(core::mem::zeroed()))).ok() + DrawThemeParentBackgroundEx(hwnd, hdc, dwflags, core::mem::transmute(prc.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeText(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, psztext: &[u16], dwtextflags: super::super::Graphics::Gdi::DRAW_TEXT_FORMAT, dwtextflags2: u32, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeText(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, psztext : windows_core::PCWSTR, cchtext : i32, dwtextflags : super::super::Graphics::Gdi:: DRAW_TEXT_FORMAT, dwtextflags2 : u32, prect : *const super::super::Foundation:: RECT) -> windows_core::HRESULT); - DrawThemeText(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), core::mem::transmute(dwtextflags), core::mem::transmute(dwtextflags2), core::mem::transmute(prect)).ok() + DrawThemeText(htheme, hdc, ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, dwtextflags2, prect).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeTextEx(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, psztext: &[u16], dwtextflags: super::super::Graphics::Gdi::DRAW_TEXT_FORMAT, prect: *mut super::super::Foundation::RECT, poptions: Option<*const DTTOPTS>) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn DrawThemeTextEx(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, psztext : windows_core::PCWSTR, cchtext : i32, dwtextflags : super::super::Graphics::Gdi:: DRAW_TEXT_FORMAT, prect : *mut super::super::Foundation:: RECT, poptions : *const DTTOPTS) -> windows_core::HRESULT); - DrawThemeTextEx(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), core::mem::transmute(dwtextflags), core::mem::transmute(prect), core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))).ok() + DrawThemeTextEx(htheme, hdc, ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, core::mem::transmute(prect), core::mem::transmute(poptions.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn EnableScrollBar(hwnd: super::super::Foundation::HWND, wsbflags: u32, warrows: ENABLE_SCROLL_BAR_ARROWS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnableScrollBar(hwnd : super::super::Foundation:: HWND, wsbflags : u32, warrows : ENABLE_SCROLL_BAR_ARROWS) -> super::super::Foundation:: BOOL); - EnableScrollBar(core::mem::transmute(hwnd), core::mem::transmute(wsbflags), core::mem::transmute(warrows)).ok() + EnableScrollBar(hwnd, wsbflags, warrows).ok() } #[inline] pub unsafe fn EnableThemeDialogTexture(hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn EnableThemeDialogTexture(hwnd : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::HRESULT); - EnableThemeDialogTexture(core::mem::transmute(hwnd), core::mem::transmute(dwflags)).ok() + EnableThemeDialogTexture(hwnd, dwflags).ok() } #[inline] pub unsafe fn EnableTheming(fenable: bool) -> windows_core::Result<()> { @@ -433,113 +433,113 @@ pub unsafe fn EnableTheming(fenable: bool) -> windows_core::Result<()> { #[inline] pub unsafe fn EndBufferedAnimation(hbpanimation: isize, fupdatetarget: bool) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn EndBufferedAnimation(hbpanimation : isize, fupdatetarget : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - EndBufferedAnimation(core::mem::transmute(hbpanimation), fupdatetarget.into()).ok() + EndBufferedAnimation(hbpanimation, fupdatetarget.into()).ok() } #[inline] pub unsafe fn EndBufferedPaint(hbufferedpaint: isize, fupdatetarget: bool) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn EndBufferedPaint(hbufferedpaint : isize, fupdatetarget : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - EndBufferedPaint(core::mem::transmute(hbufferedpaint), fupdatetarget.into()).ok() + EndBufferedPaint(hbufferedpaint, fupdatetarget.into()).ok() } #[inline] pub unsafe fn EndPanningFeedback(hwnd: super::super::Foundation::HWND, fanimateback: bool) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn EndPanningFeedback(hwnd : super::super::Foundation:: HWND, fanimateback : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EndPanningFeedback(core::mem::transmute(hwnd), fanimateback.into()) + EndPanningFeedback(hwnd, fanimateback.into()) } #[inline] pub unsafe fn EvaluateProximityToPolygon(controlpolygon: &[super::super::Foundation::POINT], phittestinginput: *const TOUCH_HIT_TESTING_INPUT, pproximityeval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EvaluateProximityToPolygon(numvertices : u32, controlpolygon : *const super::super::Foundation:: POINT, phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> super::super::Foundation:: BOOL); - EvaluateProximityToPolygon(controlpolygon.len().try_into().unwrap(), core::mem::transmute(controlpolygon.as_ptr()), core::mem::transmute(phittestinginput), core::mem::transmute(pproximityeval)).ok() + EvaluateProximityToPolygon(controlpolygon.len().try_into().unwrap(), core::mem::transmute(controlpolygon.as_ptr()), phittestinginput, core::mem::transmute(pproximityeval)).ok() } #[inline] pub unsafe fn EvaluateProximityToRect(controlboundingbox: *const super::super::Foundation::RECT, phittestinginput: *const TOUCH_HIT_TESTING_INPUT, pproximityeval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EvaluateProximityToRect(controlboundingbox : *const super::super::Foundation:: RECT, phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> super::super::Foundation:: BOOL); - EvaluateProximityToRect(core::mem::transmute(controlboundingbox), core::mem::transmute(phittestinginput), core::mem::transmute(pproximityeval)).ok() + EvaluateProximityToRect(controlboundingbox, phittestinginput, core::mem::transmute(pproximityeval)).ok() } #[inline] pub unsafe fn FlatSB_EnableScrollBar(param0: super::super::Foundation::HWND, param1: i32, param2: u32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn FlatSB_EnableScrollBar(param0 : super::super::Foundation:: HWND, param1 : i32, param2 : u32) -> super::super::Foundation:: BOOL); - FlatSB_EnableScrollBar(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + FlatSB_EnableScrollBar(param0, param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_GetScrollInfo(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut super::WindowsAndMessaging::SCROLLINFO) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollInfo(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : *mut super::WindowsAndMessaging:: SCROLLINFO) -> super::super::Foundation:: BOOL); - FlatSB_GetScrollInfo(core::mem::transmute(param0), core::mem::transmute(code), core::mem::transmute(param2)) + FlatSB_GetScrollInfo(param0, code, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_GetScrollPos(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS) -> i32 { windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollPos(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS) -> i32); - FlatSB_GetScrollPos(core::mem::transmute(param0), core::mem::transmute(code)) + FlatSB_GetScrollPos(param0, code) } #[inline] pub unsafe fn FlatSB_GetScrollProp(param0: super::super::Foundation::HWND, propindex: WSB_PROP, param2: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollProp(param0 : super::super::Foundation:: HWND, propindex : WSB_PROP, param2 : *mut i32) -> super::super::Foundation:: BOOL); - FlatSB_GetScrollProp(core::mem::transmute(param0), core::mem::transmute(propindex), core::mem::transmute(param2)) + FlatSB_GetScrollProp(param0, propindex, core::mem::transmute(param2)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_GetScrollRange(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut i32, param3: *mut i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollRange(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : *mut i32, param3 : *mut i32) -> super::super::Foundation:: BOOL); - FlatSB_GetScrollRange(core::mem::transmute(param0), core::mem::transmute(code), core::mem::transmute(param2), core::mem::transmute(param3)) + FlatSB_GetScrollRange(param0, code, core::mem::transmute(param2), core::mem::transmute(param3)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollInfo(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, psi: *mut super::WindowsAndMessaging::SCROLLINFO, fredraw: bool) -> i32 { windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollInfo(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, psi : *mut super::WindowsAndMessaging:: SCROLLINFO, fredraw : super::super::Foundation:: BOOL) -> i32); - FlatSB_SetScrollInfo(core::mem::transmute(param0), core::mem::transmute(code), core::mem::transmute(psi), fredraw.into()) + FlatSB_SetScrollInfo(param0, code, core::mem::transmute(psi), fredraw.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollPos(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, pos: i32, fredraw: bool) -> i32 { windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollPos(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, pos : i32, fredraw : super::super::Foundation:: BOOL) -> i32); - FlatSB_SetScrollPos(core::mem::transmute(param0), core::mem::transmute(code), core::mem::transmute(pos), fredraw.into()) + FlatSB_SetScrollPos(param0, code, pos, fredraw.into()) } #[inline] pub unsafe fn FlatSB_SetScrollProp(param0: super::super::Foundation::HWND, index: WSB_PROP, newvalue: isize, param3: bool) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollProp(param0 : super::super::Foundation:: HWND, index : u32, newvalue : isize, param3 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - FlatSB_SetScrollProp(core::mem::transmute(param0), index.0 as _, core::mem::transmute(newvalue), param3.into()) + FlatSB_SetScrollProp(param0, index.0 as _, newvalue, param3.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollRange(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, min: i32, max: i32, fredraw: bool) -> i32 { windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollRange(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, min : i32, max : i32, fredraw : super::super::Foundation:: BOOL) -> i32); - FlatSB_SetScrollRange(core::mem::transmute(param0), core::mem::transmute(code), core::mem::transmute(min), core::mem::transmute(max), fredraw.into()) + FlatSB_SetScrollRange(param0, code, min, max, fredraw.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_ShowScrollBar(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: bool) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn FlatSB_ShowScrollBar(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - FlatSB_ShowScrollBar(core::mem::transmute(param0), core::mem::transmute(code), param2.into()) + FlatSB_ShowScrollBar(param0, code, param2.into()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetBufferedPaintBits(hbufferedpaint: isize, ppbbuffer: *mut *mut super::super::Graphics::Gdi::RGBQUAD, pcxrow: *mut i32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetBufferedPaintBits(hbufferedpaint : isize, ppbbuffer : *mut *mut super::super::Graphics::Gdi:: RGBQUAD, pcxrow : *mut i32) -> windows_core::HRESULT); - GetBufferedPaintBits(core::mem::transmute(hbufferedpaint), core::mem::transmute(ppbbuffer), core::mem::transmute(pcxrow)).ok() + GetBufferedPaintBits(hbufferedpaint, core::mem::transmute(ppbbuffer), core::mem::transmute(pcxrow)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetBufferedPaintDC(hbufferedpaint: isize) -> super::super::Graphics::Gdi::HDC { windows_targets::link!("uxtheme.dll" "system" fn GetBufferedPaintDC(hbufferedpaint : isize) -> super::super::Graphics::Gdi:: HDC); - GetBufferedPaintDC(core::mem::transmute(hbufferedpaint)) + GetBufferedPaintDC(hbufferedpaint) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetBufferedPaintTargetDC(hbufferedpaint: isize) -> super::super::Graphics::Gdi::HDC { windows_targets::link!("uxtheme.dll" "system" fn GetBufferedPaintTargetDC(hbufferedpaint : isize) -> super::super::Graphics::Gdi:: HDC); - GetBufferedPaintTargetDC(core::mem::transmute(hbufferedpaint)) + GetBufferedPaintTargetDC(hbufferedpaint) } #[inline] pub unsafe fn GetBufferedPaintTargetRect(hbufferedpaint: isize) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetBufferedPaintTargetRect(hbufferedpaint : isize, prc : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetBufferedPaintTargetRect(core::mem::transmute(hbufferedpaint), &mut result__).map(|| core::mem::transmute(result__)) + GetBufferedPaintTargetRect(hbufferedpaint, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetComboBoxInfo(hwndcombo: super::super::Foundation::HWND, pcbi: *mut COMBOBOXINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetComboBoxInfo(hwndcombo : super::super::Foundation:: HWND, pcbi : *mut COMBOBOXINFO) -> super::super::Foundation:: BOOL); - GetComboBoxInfo(core::mem::transmute(hwndcombo), core::mem::transmute(pcbi)).ok() + GetComboBoxInfo(hwndcombo, core::mem::transmute(pcbi)).ok() } #[inline] pub unsafe fn GetCurrentThemeName(pszthemefilename: &mut [u16], pszcolorbuff: Option<&mut [u16]>, pszsizebuff: Option<&mut [u16]>) -> windows_core::Result<()> { @@ -549,12 +549,12 @@ pub unsafe fn GetCurrentThemeName(pszthemefilename: &mut [u16], pszcolorbuff: Op #[inline] pub unsafe fn GetEffectiveClientRect(hwnd: super::super::Foundation::HWND, lprc: *mut super::super::Foundation::RECT, lpinfo: *const i32) { windows_targets::link!("comctl32.dll" "system" fn GetEffectiveClientRect(hwnd : super::super::Foundation:: HWND, lprc : *mut super::super::Foundation:: RECT, lpinfo : *const i32)); - GetEffectiveClientRect(core::mem::transmute(hwnd), core::mem::transmute(lprc), core::mem::transmute(lpinfo)) + GetEffectiveClientRect(hwnd, core::mem::transmute(lprc), lpinfo) } #[inline] pub unsafe fn GetListBoxInfo(hwnd: super::super::Foundation::HWND) -> u32 { windows_targets::link!("user32.dll" "system" fn GetListBoxInfo(hwnd : super::super::Foundation:: HWND) -> u32); - GetListBoxInfo(core::mem::transmute(hwnd)) + GetListBoxInfo(hwnd) } #[inline] pub unsafe fn GetMUILanguage() -> u16 { @@ -564,12 +564,12 @@ pub unsafe fn GetMUILanguage() -> u16 { #[inline] pub unsafe fn GetThemeAnimationProperty(htheme: HTHEME, istoryboardid: i32, itargetid: i32, eproperty: TA_PROPERTY, pvproperty: Option<*mut core::ffi::c_void>, cbsize: u32, pcbsizeout: *mut u32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeAnimationProperty(htheme : HTHEME, istoryboardid : i32, itargetid : i32, eproperty : TA_PROPERTY, pvproperty : *mut core::ffi::c_void, cbsize : u32, pcbsizeout : *mut u32) -> windows_core::HRESULT); - GetThemeAnimationProperty(core::mem::transmute(htheme), core::mem::transmute(istoryboardid), core::mem::transmute(itargetid), core::mem::transmute(eproperty), core::mem::transmute(pvproperty.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), core::mem::transmute(pcbsizeout)).ok() + GetThemeAnimationProperty(htheme, istoryboardid, itargetid, eproperty, core::mem::transmute(pvproperty.unwrap_or(core::mem::zeroed())), cbsize, core::mem::transmute(pcbsizeout)).ok() } #[inline] pub unsafe fn GetThemeAnimationTransform(htheme: HTHEME, istoryboardid: i32, itargetid: i32, dwtransformindex: u32, ptransform: Option<*mut TA_TRANSFORM>, cbsize: u32, pcbsizeout: *mut u32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeAnimationTransform(htheme : HTHEME, istoryboardid : i32, itargetid : i32, dwtransformindex : u32, ptransform : *mut TA_TRANSFORM, cbsize : u32, pcbsizeout : *mut u32) -> windows_core::HRESULT); - GetThemeAnimationTransform(core::mem::transmute(htheme), core::mem::transmute(istoryboardid), core::mem::transmute(itargetid), core::mem::transmute(dwtransformindex), core::mem::transmute(ptransform.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), core::mem::transmute(pcbsizeout)).ok() + GetThemeAnimationTransform(htheme, istoryboardid, itargetid, dwtransformindex, core::mem::transmute(ptransform.unwrap_or(core::mem::zeroed())), cbsize, core::mem::transmute(pcbsizeout)).ok() } #[inline] pub unsafe fn GetThemeAppProperties() -> SET_THEME_APP_PROPERTIES_FLAGS { @@ -581,40 +581,40 @@ pub unsafe fn GetThemeAppProperties() -> SET_THEME_APP_PROPERTIES_FLAGS { pub unsafe fn GetThemeBackgroundContentRect(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, pboundingrect: *const super::super::Foundation::RECT) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeBackgroundContentRect(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, pboundingrect : *const super::super::Foundation:: RECT, pcontentrect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeBackgroundContentRect(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(pboundingrect), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBackgroundContentRect(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, pboundingrect, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeBackgroundExtent(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, pcontentrect: *const super::super::Foundation::RECT) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeBackgroundExtent(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, pcontentrect : *const super::super::Foundation:: RECT, pextentrect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeBackgroundExtent(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(pcontentrect), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBackgroundExtent(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, pcontentrect, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeBackgroundRegion(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeBackgroundRegion(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, prect : *const super::super::Foundation:: RECT, pregion : *mut super::super::Graphics::Gdi:: HRGN) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeBackgroundRegion(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(prect), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBackgroundRegion(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, prect, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeBitmap(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, dwflags: GET_THEME_BITMAP_FLAGS) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeBitmap(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, dwflags : GET_THEME_BITMAP_FLAGS, phbitmap : *mut super::super::Graphics::Gdi:: HBITMAP) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeBitmap(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBitmap(htheme, ipartid, istateid, ipropid.0 as _, dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeBool(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeBool(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pfval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeBool(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBool(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeColor(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeColor(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pcolor : *mut super::super::Foundation:: COLORREF) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeColor(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeColor(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeDocumentationProperty(pszthemename: P0, pszpropertyname: P1, pszvaluebuff: &mut [u16]) -> windows_core::Result<()> @@ -629,78 +629,78 @@ where pub unsafe fn GetThemeEnumValue(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeEnumValue(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pival : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeEnumValue(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeEnumValue(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeFilename(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, pszthemefilename: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeFilename(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pszthemefilename : windows_core::PWSTR, cchmaxbuffchars : i32) -> windows_core::HRESULT); - GetThemeFilename(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, core::mem::transmute(pszthemefilename.as_ptr()), pszthemefilename.len().try_into().unwrap()).ok() + GetThemeFilename(htheme, ipartid, istateid, ipropid.0 as _, core::mem::transmute(pszthemefilename.as_ptr()), pszthemefilename.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeFont(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, ipropid: i32, pfont: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeFont(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, ipropid : i32, pfont : *mut super::super::Graphics::Gdi:: LOGFONTW) -> windows_core::HRESULT); - GetThemeFont(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(ipropid), core::mem::transmute(pfont)).ok() + GetThemeFont(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, ipropid, core::mem::transmute(pfont)).ok() } #[inline] pub unsafe fn GetThemeInt(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeInt(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pival : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeInt(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeInt(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeIntList(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, pintlist: *mut INTLIST) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeIntList(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pintlist : *mut INTLIST) -> windows_core::HRESULT); - GetThemeIntList(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, core::mem::transmute(pintlist)).ok() + GetThemeIntList(htheme, ipartid, istateid, ipropid.0 as _, core::mem::transmute(pintlist)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeMargins(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeMargins(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, ipropid : i32, prc : *const super::super::Foundation:: RECT, pmargins : *mut MARGINS) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeMargins(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeMargins(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, ipropid.0 as _, core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeMetric(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeMetric(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, ipropid : i32, pival : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeMetric(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeMetric(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemePartSize(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, prc: Option<*const super::super::Foundation::RECT>, esize: THEMESIZE) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemePartSize(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, prc : *const super::super::Foundation:: RECT, esize : THEMESIZE, psz : *mut super::super::Foundation:: SIZE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemePartSize(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), core::mem::transmute(esize), &mut result__).map(|| core::mem::transmute(result__)) + GetThemePartSize(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, core::mem::transmute(prc.unwrap_or(core::mem::zeroed())), esize, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemePosition(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemePosition(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, ppoint : *mut super::super::Foundation:: POINT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemePosition(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemePosition(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemePropertyOrigin(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: i32) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemePropertyOrigin(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, porigin : *mut PROPERTYORIGIN) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemePropertyOrigin(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(ipropid), &mut result__).map(|| core::mem::transmute(result__)) + GetThemePropertyOrigin(htheme, ipartid, istateid, ipropid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeRect(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: i32) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeRect(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, prect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeRect(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(ipropid), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeRect(htheme, ipartid, istateid, ipropid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeStream(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: i32, ppvstream: *mut *mut core::ffi::c_void, pcbstream: Option<*mut u32>, hinst: Option) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeStream(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, ppvstream : *mut *mut core::ffi::c_void, pcbstream : *mut u32, hinst : super::super::Foundation:: HINSTANCE) -> windows_core::HRESULT); - GetThemeStream(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(ipropid), core::mem::transmute(ppvstream), core::mem::transmute(pcbstream.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinst.unwrap_or(core::mem::zeroed()))).ok() + GetThemeStream(htheme, ipartid, istateid, ipropid, core::mem::transmute(ppvstream), core::mem::transmute(pcbstream.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinst.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetThemeString(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: i32, pszbuff: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeString(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pszbuff : windows_core::PWSTR, cchmaxbuffchars : i32) -> windows_core::HRESULT); - GetThemeString(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(ipropid), core::mem::transmute(pszbuff.as_ptr()), pszbuff.len().try_into().unwrap()).ok() + GetThemeString(htheme, ipartid, istateid, ipropid, core::mem::transmute(pszbuff.as_ptr()), pszbuff.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetThemeSysBool(htheme: Option, iboolid: THEME_PROPERTY_SYMBOL_ID) -> super::super::Foundation::BOOL { @@ -710,7 +710,7 @@ pub unsafe fn GetThemeSysBool(htheme: Option, iboolid: THEME_PROPERTY_SY #[inline] pub unsafe fn GetThemeSysColor(htheme: Option, icolorid: i32) -> super::super::Foundation::COLORREF { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysColor(htheme : HTHEME, icolorid : i32) -> super::super::Foundation:: COLORREF); - GetThemeSysColor(core::mem::transmute(htheme.unwrap_or(core::mem::zeroed())), core::mem::transmute(icolorid)) + GetThemeSysColor(core::mem::transmute(htheme.unwrap_or(core::mem::zeroed())), icolorid) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -728,80 +728,80 @@ pub unsafe fn GetThemeSysFont(htheme: Option, ifontid: THEME_PROPERTY_SY pub unsafe fn GetThemeSysInt(htheme: HTHEME, iintid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysInt(htheme : HTHEME, iintid : i32, pivalue : *mut i32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeSysInt(core::mem::transmute(htheme), iintid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeSysInt(htheme, iintid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetThemeSysSize(htheme: Option, isizeid: i32) -> i32 { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysSize(htheme : HTHEME, isizeid : i32) -> i32); - GetThemeSysSize(core::mem::transmute(htheme.unwrap_or(core::mem::zeroed())), core::mem::transmute(isizeid)) + GetThemeSysSize(core::mem::transmute(htheme.unwrap_or(core::mem::zeroed())), isizeid) } #[inline] pub unsafe fn GetThemeSysString(htheme: HTHEME, istringid: THEME_PROPERTY_SYMBOL_ID, pszstringbuff: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysString(htheme : HTHEME, istringid : i32, pszstringbuff : windows_core::PWSTR, cchmaxstringchars : i32) -> windows_core::HRESULT); - GetThemeSysString(core::mem::transmute(htheme), istringid.0 as _, core::mem::transmute(pszstringbuff.as_ptr()), pszstringbuff.len().try_into().unwrap()).ok() + GetThemeSysString(htheme, istringid.0 as _, core::mem::transmute(pszstringbuff.as_ptr()), pszstringbuff.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeTextExtent(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, psztext: &[u16], dwtextflags: super::super::Graphics::Gdi::DRAW_TEXT_FORMAT, pboundingrect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeTextExtent(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, psztext : windows_core::PCWSTR, cchcharcount : i32, dwtextflags : super::super::Graphics::Gdi:: DRAW_TEXT_FORMAT, pboundingrect : *const super::super::Foundation:: RECT, pextentrect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeTextExtent(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), core::mem::transmute(dwtextflags), core::mem::transmute(pboundingrect.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeTextExtent(htheme, hdc, ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, core::mem::transmute(pboundingrect.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeTextMetrics(htheme: HTHEME, hdc: super::super::Graphics::Gdi::HDC, ipartid: i32, istateid: i32, ptm: *mut super::super::Graphics::Gdi::TEXTMETRICW) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeTextMetrics(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, ptm : *mut super::super::Graphics::Gdi:: TEXTMETRICW) -> windows_core::HRESULT); - GetThemeTextMetrics(core::mem::transmute(htheme), core::mem::transmute(hdc), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(ptm)).ok() + GetThemeTextMetrics(htheme, hdc, ipartid, istateid, core::mem::transmute(ptm)).ok() } #[inline] pub unsafe fn GetThemeTimingFunction(htheme: HTHEME, itimingfunctionid: i32, ptimingfunction: Option<*mut TA_TIMINGFUNCTION>, cbsize: u32, pcbsizeout: *mut u32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn GetThemeTimingFunction(htheme : HTHEME, itimingfunctionid : i32, ptimingfunction : *mut TA_TIMINGFUNCTION, cbsize : u32, pcbsizeout : *mut u32) -> windows_core::HRESULT); - GetThemeTimingFunction(core::mem::transmute(htheme), core::mem::transmute(itimingfunctionid), core::mem::transmute(ptimingfunction.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbsize), core::mem::transmute(pcbsizeout)).ok() + GetThemeTimingFunction(htheme, itimingfunctionid, core::mem::transmute(ptimingfunction.unwrap_or(core::mem::zeroed())), cbsize, core::mem::transmute(pcbsizeout)).ok() } #[inline] pub unsafe fn GetThemeTransitionDuration(htheme: HTHEME, ipartid: i32, istateidfrom: i32, istateidto: i32, ipropid: i32) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn GetThemeTransitionDuration(htheme : HTHEME, ipartid : i32, istateidfrom : i32, istateidto : i32, ipropid : i32, pdwduration : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetThemeTransitionDuration(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateidfrom), core::mem::transmute(istateidto), core::mem::transmute(ipropid), &mut result__).map(|| core::mem::transmute(result__)) + GetThemeTransitionDuration(htheme, ipartid, istateidfrom, istateidto, ipropid, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetWindowFeedbackSetting(hwnd: super::super::Foundation::HWND, feedback: FEEDBACK_TYPE, dwflags: u32, psize: *mut u32, config: Option<*mut core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetWindowFeedbackSetting(hwnd : super::super::Foundation:: HWND, feedback : FEEDBACK_TYPE, dwflags : u32, psize : *mut u32, config : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - GetWindowFeedbackSetting(core::mem::transmute(hwnd), core::mem::transmute(feedback), core::mem::transmute(dwflags), core::mem::transmute(psize), core::mem::transmute(config.unwrap_or(core::mem::zeroed()))) + GetWindowFeedbackSetting(hwnd, feedback, dwflags, core::mem::transmute(psize), core::mem::transmute(config.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetWindowTheme(hwnd: super::super::Foundation::HWND) -> HTHEME { windows_targets::link!("uxtheme.dll" "system" fn GetWindowTheme(hwnd : super::super::Foundation:: HWND) -> HTHEME); - GetWindowTheme(core::mem::transmute(hwnd)) + GetWindowTheme(hwnd) } #[inline] pub unsafe fn HIMAGELIST_QueryInterface(himl: HIMAGELIST, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("comctl32.dll" "system" fn HIMAGELIST_QueryInterface(himl : HIMAGELIST, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HIMAGELIST_QueryInterface(core::mem::transmute(himl), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + HIMAGELIST_QueryInterface(himl, riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HitTestThemeBackground(htheme: HTHEME, hdc: Option, ipartid: i32, istateid: i32, dwoptions: HIT_TEST_BACKGROUND_OPTIONS, prect: *const super::super::Foundation::RECT, hrgn: Option, pttest: super::super::Foundation::POINT) -> windows_core::Result { windows_targets::link!("uxtheme.dll" "system" fn HitTestThemeBackground(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, dwoptions : HIT_TEST_BACKGROUND_OPTIONS, prect : *const super::super::Foundation:: RECT, hrgn : super::super::Graphics::Gdi:: HRGN, pttest : super::super::Foundation:: POINT, pwhittestcode : *mut u16) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HitTestThemeBackground(core::mem::transmute(htheme), core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(ipartid), core::mem::transmute(istateid), core::mem::transmute(dwoptions), core::mem::transmute(prect), core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pttest), &mut result__).map(|| core::mem::transmute(result__)) + HitTestThemeBackground(htheme, core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), ipartid, istateid, dwoptions, prect, core::mem::transmute(hrgn.unwrap_or(core::mem::zeroed())), core::mem::transmute(pttest), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_Add(himl: HIMAGELIST, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option) -> i32 { windows_targets::link!("comctl32.dll" "system" fn ImageList_Add(himl : HIMAGELIST, hbmimage : super::super::Graphics::Gdi:: HBITMAP, hbmmask : super::super::Graphics::Gdi:: HBITMAP) -> i32); - ImageList_Add(core::mem::transmute(himl), core::mem::transmute(hbmimage), core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed()))) + ImageList_Add(himl, hbmimage, core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_AddMasked(himl: HIMAGELIST, hbmimage: super::super::Graphics::Gdi::HBITMAP, crmask: super::super::Foundation::COLORREF) -> i32 { windows_targets::link!("comctl32.dll" "system" fn ImageList_AddMasked(himl : HIMAGELIST, hbmimage : super::super::Graphics::Gdi:: HBITMAP, crmask : super::super::Foundation:: COLORREF) -> i32); - ImageList_AddMasked(core::mem::transmute(himl), core::mem::transmute(hbmimage), core::mem::transmute(crmask)) + ImageList_AddMasked(himl, hbmimage, crmask) } #[inline] pub unsafe fn ImageList_BeginDrag(himltrack: HIMAGELIST, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_BeginDrag(himltrack : HIMAGELIST, itrack : i32, dxhotspot : i32, dyhotspot : i32) -> super::super::Foundation:: BOOL); - ImageList_BeginDrag(core::mem::transmute(himltrack), core::mem::transmute(itrack), core::mem::transmute(dxhotspot), core::mem::transmute(dyhotspot)) + ImageList_BeginDrag(himltrack, itrack, dxhotspot, dyhotspot) } #[inline] pub unsafe fn ImageList_CoCreateInstance(rclsid: *const windows_core::GUID, punkouter: P1) -> windows_core::Result @@ -811,17 +811,17 @@ where { windows_targets::link!("comctl32.dll" "system" fn ImageList_CoCreateInstance(rclsid : *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 mut result__ = core::ptr::null_mut(); - ImageList_CoCreateInstance(core::mem::transmute(rclsid), punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + ImageList_CoCreateInstance(rclsid, punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn ImageList_Copy(himldst: HIMAGELIST, idst: i32, himlsrc: HIMAGELIST, isrc: i32, uflags: IMAGE_LIST_COPY_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_Copy(himldst : HIMAGELIST, idst : i32, himlsrc : HIMAGELIST, isrc : i32, uflags : IMAGE_LIST_COPY_FLAGS) -> super::super::Foundation:: BOOL); - ImageList_Copy(core::mem::transmute(himldst), core::mem::transmute(idst), core::mem::transmute(himlsrc), core::mem::transmute(isrc), core::mem::transmute(uflags)) + ImageList_Copy(himldst, idst, himlsrc, isrc, uflags) } #[inline] pub unsafe fn ImageList_Create(cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS, cinitial: i32, cgrow: i32) -> HIMAGELIST { windows_targets::link!("comctl32.dll" "system" fn ImageList_Create(cx : i32, cy : i32, flags : IMAGELIST_CREATION_FLAGS, cinitial : i32, cgrow : i32) -> HIMAGELIST); - ImageList_Create(core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(flags), core::mem::transmute(cinitial), core::mem::transmute(cgrow)) + ImageList_Create(cx, cy, flags, cinitial, cgrow) } #[inline] pub unsafe fn ImageList_Destroy(himl: Option) -> super::super::Foundation::BOOL { @@ -831,17 +831,17 @@ pub unsafe fn ImageList_Destroy(himl: Option) -> super::super::Found #[inline] pub unsafe fn ImageList_DragEnter(hwndlock: super::super::Foundation::HWND, x: i32, y: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_DragEnter(hwndlock : super::super::Foundation:: HWND, x : i32, y : i32) -> super::super::Foundation:: BOOL); - ImageList_DragEnter(core::mem::transmute(hwndlock), core::mem::transmute(x), core::mem::transmute(y)) + ImageList_DragEnter(hwndlock, x, y) } #[inline] pub unsafe fn ImageList_DragLeave(hwndlock: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_DragLeave(hwndlock : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ImageList_DragLeave(core::mem::transmute(hwndlock)) + ImageList_DragLeave(hwndlock) } #[inline] pub unsafe fn ImageList_DragMove(x: i32, y: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_DragMove(x : i32, y : i32) -> super::super::Foundation:: BOOL); - ImageList_DragMove(core::mem::transmute(x), core::mem::transmute(y)) + ImageList_DragMove(x, y) } #[inline] pub unsafe fn ImageList_DragShowNolock(fshow: bool) -> super::super::Foundation::BOOL { @@ -852,24 +852,24 @@ pub unsafe fn ImageList_DragShowNolock(fshow: bool) -> super::super::Foundation: #[inline] pub unsafe fn ImageList_Draw(himl: HIMAGELIST, i: i32, hdcdst: super::super::Graphics::Gdi::HDC, x: i32, y: i32, fstyle: IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_Draw(himl : HIMAGELIST, i : i32, hdcdst : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, fstyle : IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation:: BOOL); - ImageList_Draw(core::mem::transmute(himl), core::mem::transmute(i), core::mem::transmute(hdcdst), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(fstyle)) + ImageList_Draw(himl, i, hdcdst, x, y, fstyle) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_DrawEx(himl: HIMAGELIST, i: i32, hdcdst: super::super::Graphics::Gdi::HDC, x: i32, y: i32, dx: i32, dy: i32, rgbbk: super::super::Foundation::COLORREF, rgbfg: super::super::Foundation::COLORREF, fstyle: IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_DrawEx(himl : HIMAGELIST, i : i32, hdcdst : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, dx : i32, dy : i32, rgbbk : super::super::Foundation:: COLORREF, rgbfg : super::super::Foundation:: COLORREF, fstyle : IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation:: BOOL); - ImageList_DrawEx(core::mem::transmute(himl), core::mem::transmute(i), core::mem::transmute(hdcdst), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(rgbbk), core::mem::transmute(rgbfg), core::mem::transmute(fstyle)) + ImageList_DrawEx(himl, i, hdcdst, x, y, dx, dy, rgbbk, rgbfg, fstyle) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_DrawIndirect(pimldp: *const IMAGELISTDRAWPARAMS) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_DrawIndirect(pimldp : *const IMAGELISTDRAWPARAMS) -> super::super::Foundation:: BOOL); - ImageList_DrawIndirect(core::mem::transmute(pimldp)) + ImageList_DrawIndirect(pimldp) } #[inline] pub unsafe fn ImageList_Duplicate(himl: HIMAGELIST) -> HIMAGELIST { windows_targets::link!("comctl32.dll" "system" fn ImageList_Duplicate(himl : HIMAGELIST) -> HIMAGELIST); - ImageList_Duplicate(core::mem::transmute(himl)) + ImageList_Duplicate(himl) } #[inline] pub unsafe fn ImageList_EndDrag() { @@ -879,7 +879,7 @@ pub unsafe fn ImageList_EndDrag() { #[inline] pub unsafe fn ImageList_GetBkColor(himl: HIMAGELIST) -> super::super::Foundation::COLORREF { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetBkColor(himl : HIMAGELIST) -> super::super::Foundation:: COLORREF); - ImageList_GetBkColor(core::mem::transmute(himl)) + ImageList_GetBkColor(himl) } #[inline] pub unsafe fn ImageList_GetDragImage(ppt: Option<*mut super::super::Foundation::POINT>, ppthotspot: Option<*mut super::super::Foundation::POINT>) -> HIMAGELIST { @@ -890,23 +890,23 @@ pub unsafe fn ImageList_GetDragImage(ppt: Option<*mut super::super::Foundation:: #[inline] pub unsafe fn ImageList_GetIcon(himl: HIMAGELIST, i: i32, flags: IMAGE_LIST_DRAW_STYLE) -> super::WindowsAndMessaging::HICON { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetIcon(himl : HIMAGELIST, i : i32, flags : IMAGE_LIST_DRAW_STYLE) -> super::WindowsAndMessaging:: HICON); - ImageList_GetIcon(core::mem::transmute(himl), core::mem::transmute(i), core::mem::transmute(flags)) + ImageList_GetIcon(himl, i, flags) } #[inline] pub unsafe fn ImageList_GetIconSize(himl: HIMAGELIST, cx: Option<*mut i32>, cy: Option<*mut i32>) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetIconSize(himl : HIMAGELIST, cx : *mut i32, cy : *mut i32) -> super::super::Foundation:: BOOL); - ImageList_GetIconSize(core::mem::transmute(himl), core::mem::transmute(cx.unwrap_or(core::mem::zeroed())), core::mem::transmute(cy.unwrap_or(core::mem::zeroed()))) + ImageList_GetIconSize(himl, core::mem::transmute(cx.unwrap_or(core::mem::zeroed())), core::mem::transmute(cy.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ImageList_GetImageCount(himl: HIMAGELIST) -> i32 { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetImageCount(himl : HIMAGELIST) -> i32); - ImageList_GetImageCount(core::mem::transmute(himl)) + ImageList_GetImageCount(himl) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_GetImageInfo(himl: HIMAGELIST, i: i32, pimageinfo: *mut IMAGEINFO) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetImageInfo(himl : HIMAGELIST, i : i32, pimageinfo : *mut IMAGEINFO) -> super::super::Foundation:: BOOL); - ImageList_GetImageInfo(core::mem::transmute(himl), core::mem::transmute(i), core::mem::transmute(pimageinfo)) + ImageList_GetImageInfo(himl, i, core::mem::transmute(pimageinfo)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -915,7 +915,7 @@ where P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_LoadImageA(hi : super::super::Foundation:: HINSTANCE, lpbmp : windows_core::PCSTR, cx : i32, cgrow : i32, crmask : super::super::Foundation:: COLORREF, utype : u32, uflags : super::WindowsAndMessaging:: IMAGE_FLAGS) -> HIMAGELIST); - ImageList_LoadImageA(core::mem::transmute(hi), lpbmp.param().abi(), core::mem::transmute(cx), core::mem::transmute(cgrow), core::mem::transmute(crmask), core::mem::transmute(utype), core::mem::transmute(uflags)) + ImageList_LoadImageA(hi, lpbmp.param().abi(), cx, cgrow, crmask, utype, uflags) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -924,12 +924,12 @@ where P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_LoadImageW(hi : super::super::Foundation:: HINSTANCE, lpbmp : windows_core::PCWSTR, cx : i32, cgrow : i32, crmask : super::super::Foundation:: COLORREF, utype : u32, uflags : super::WindowsAndMessaging:: IMAGE_FLAGS) -> HIMAGELIST); - ImageList_LoadImageW(core::mem::transmute(hi), lpbmp.param().abi(), core::mem::transmute(cx), core::mem::transmute(cgrow), core::mem::transmute(crmask), core::mem::transmute(utype), core::mem::transmute(uflags)) + ImageList_LoadImageW(hi, lpbmp.param().abi(), cx, cgrow, crmask, utype, uflags) } #[inline] pub unsafe fn ImageList_Merge(himl1: HIMAGELIST, i1: i32, himl2: HIMAGELIST, i2: i32, dx: i32, dy: i32) -> HIMAGELIST { windows_targets::link!("comctl32.dll" "system" fn ImageList_Merge(himl1 : HIMAGELIST, i1 : i32, himl2 : HIMAGELIST, i2 : i32, dx : i32, dy : i32) -> HIMAGELIST); - ImageList_Merge(core::mem::transmute(himl1), core::mem::transmute(i1), core::mem::transmute(himl2), core::mem::transmute(i2), core::mem::transmute(dx), core::mem::transmute(dy)) + ImageList_Merge(himl1, i1, himl2, i2, dx, dy) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -947,49 +947,49 @@ where P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_ReadEx(dwflags : u32, pstm : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - ImageList_ReadEx(core::mem::transmute(dwflags), pstm.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + ImageList_ReadEx(dwflags, pstm.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn ImageList_Remove(himl: HIMAGELIST, i: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_Remove(himl : HIMAGELIST, i : i32) -> super::super::Foundation:: BOOL); - ImageList_Remove(core::mem::transmute(himl), core::mem::transmute(i)) + ImageList_Remove(himl, i) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_Replace(himl: HIMAGELIST, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_Replace(himl : HIMAGELIST, i : i32, hbmimage : super::super::Graphics::Gdi:: HBITMAP, hbmmask : super::super::Graphics::Gdi:: HBITMAP) -> super::super::Foundation:: BOOL); - ImageList_Replace(core::mem::transmute(himl), core::mem::transmute(i), core::mem::transmute(hbmimage), core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed()))) + ImageList_Replace(himl, i, hbmimage, core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ImageList_ReplaceIcon(himl: HIMAGELIST, i: i32, hicon: super::WindowsAndMessaging::HICON) -> i32 { windows_targets::link!("comctl32.dll" "system" fn ImageList_ReplaceIcon(himl : HIMAGELIST, i : i32, hicon : super::WindowsAndMessaging:: HICON) -> i32); - ImageList_ReplaceIcon(core::mem::transmute(himl), core::mem::transmute(i), core::mem::transmute(hicon)) + ImageList_ReplaceIcon(himl, i, hicon) } #[inline] pub unsafe fn ImageList_SetBkColor(himl: HIMAGELIST, clrbk: super::super::Foundation::COLORREF) -> super::super::Foundation::COLORREF { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetBkColor(himl : HIMAGELIST, clrbk : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - ImageList_SetBkColor(core::mem::transmute(himl), core::mem::transmute(clrbk)) + ImageList_SetBkColor(himl, clrbk) } #[inline] pub unsafe fn ImageList_SetDragCursorImage(himldrag: HIMAGELIST, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetDragCursorImage(himldrag : HIMAGELIST, idrag : i32, dxhotspot : i32, dyhotspot : i32) -> super::super::Foundation:: BOOL); - ImageList_SetDragCursorImage(core::mem::transmute(himldrag), core::mem::transmute(idrag), core::mem::transmute(dxhotspot), core::mem::transmute(dyhotspot)) + ImageList_SetDragCursorImage(himldrag, idrag, dxhotspot, dyhotspot) } #[inline] pub unsafe fn ImageList_SetIconSize(himl: HIMAGELIST, cx: i32, cy: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetIconSize(himl : HIMAGELIST, cx : i32, cy : i32) -> super::super::Foundation:: BOOL); - ImageList_SetIconSize(core::mem::transmute(himl), core::mem::transmute(cx), core::mem::transmute(cy)) + ImageList_SetIconSize(himl, cx, cy) } #[inline] pub unsafe fn ImageList_SetImageCount(himl: HIMAGELIST, unewcount: u32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetImageCount(himl : HIMAGELIST, unewcount : u32) -> super::super::Foundation:: BOOL); - ImageList_SetImageCount(core::mem::transmute(himl), core::mem::transmute(unewcount)) + ImageList_SetImageCount(himl, unewcount) } #[inline] pub unsafe fn ImageList_SetOverlayImage(himl: HIMAGELIST, iimage: i32, ioverlay: i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetOverlayImage(himl : HIMAGELIST, iimage : i32, ioverlay : i32) -> super::super::Foundation:: BOOL); - ImageList_SetOverlayImage(core::mem::transmute(himl), core::mem::transmute(iimage), core::mem::transmute(ioverlay)) + ImageList_SetOverlayImage(himl, iimage, ioverlay) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -998,7 +998,7 @@ where P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_Write(himl : HIMAGELIST, pstm : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ImageList_Write(core::mem::transmute(himl), pstm.param().abi()) + ImageList_Write(himl, pstm.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1007,7 +1007,7 @@ where P2: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_WriteEx(himl : HIMAGELIST, dwflags : IMAGE_LIST_WRITE_STREAM_FLAGS, pstm : * mut core::ffi::c_void) -> windows_core::HRESULT); - ImageList_WriteEx(core::mem::transmute(himl), core::mem::transmute(dwflags), pstm.param().abi()).ok() + ImageList_WriteEx(himl, dwflags, pstm.param().abi()).ok() } #[inline] pub unsafe fn InitCommonControls() { @@ -1017,17 +1017,17 @@ pub unsafe fn InitCommonControls() { #[inline] pub unsafe fn InitCommonControlsEx(picce: *const INITCOMMONCONTROLSEX) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn InitCommonControlsEx(picce : *const INITCOMMONCONTROLSEX) -> super::super::Foundation:: BOOL); - InitCommonControlsEx(core::mem::transmute(picce)) + InitCommonControlsEx(picce) } #[inline] pub unsafe fn InitMUILanguage(uilang: u16) { windows_targets::link!("comctl32.dll" "system" fn InitMUILanguage(uilang : u16)); - InitMUILanguage(core::mem::transmute(uilang)) + InitMUILanguage(uilang) } #[inline] pub unsafe fn InitializeFlatSB(param0: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn InitializeFlatSB(param0 : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InitializeFlatSB(core::mem::transmute(param0)) + InitializeFlatSB(param0) } #[inline] pub unsafe fn IsAppThemed() -> super::super::Foundation::BOOL { @@ -1037,7 +1037,7 @@ pub unsafe fn IsAppThemed() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsCharLowerW(ch: u16) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharLowerW(ch : u16) -> super::super::Foundation:: BOOL); - IsCharLowerW(core::mem::transmute(ch)).ok() + IsCharLowerW(ch).ok() } #[inline] pub unsafe fn IsCompositionActive() -> super::super::Foundation::BOOL { @@ -1047,7 +1047,7 @@ pub unsafe fn IsCompositionActive() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsDlgButtonChecked(hdlg: super::super::Foundation::HWND, nidbutton: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn IsDlgButtonChecked(hdlg : super::super::Foundation:: HWND, nidbutton : i32) -> u32); - IsDlgButtonChecked(core::mem::transmute(hdlg), core::mem::transmute(nidbutton)) + IsDlgButtonChecked(hdlg, nidbutton) } #[inline] pub unsafe fn IsThemeActive() -> super::super::Foundation::BOOL { @@ -1057,22 +1057,22 @@ pub unsafe fn IsThemeActive() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsThemeBackgroundPartiallyTransparent(htheme: HTHEME, ipartid: i32, istateid: i32) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn IsThemeBackgroundPartiallyTransparent(htheme : HTHEME, ipartid : i32, istateid : i32) -> super::super::Foundation:: BOOL); - IsThemeBackgroundPartiallyTransparent(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid)) + IsThemeBackgroundPartiallyTransparent(htheme, ipartid, istateid) } #[inline] pub unsafe fn IsThemeDialogTextureEnabled(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn IsThemeDialogTextureEnabled(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsThemeDialogTextureEnabled(core::mem::transmute(hwnd)) + IsThemeDialogTextureEnabled(hwnd) } #[inline] pub unsafe fn IsThemePartDefined(htheme: HTHEME, ipartid: i32, istateid: i32) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn IsThemePartDefined(htheme : HTHEME, ipartid : i32, istateid : i32) -> super::super::Foundation:: BOOL); - IsThemePartDefined(core::mem::transmute(htheme), core::mem::transmute(ipartid), core::mem::transmute(istateid)) + IsThemePartDefined(htheme, ipartid, istateid) } #[inline] pub unsafe fn LBItemFromPt(hlb: super::super::Foundation::HWND, pt: super::super::Foundation::POINT, bautoscroll: bool) -> i32 { windows_targets::link!("comctl32.dll" "system" fn LBItemFromPt(hlb : super::super::Foundation:: HWND, pt : super::super::Foundation:: POINT, bautoscroll : super::super::Foundation:: BOOL) -> i32); - LBItemFromPt(core::mem::transmute(hlb), core::mem::transmute(pt), bautoscroll.into()) + LBItemFromPt(hlb, core::mem::transmute(pt), bautoscroll.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -1082,7 +1082,7 @@ where { windows_targets::link!("comctl32.dll" "system" fn LoadIconMetric(hinst : super::super::Foundation:: HINSTANCE, pszname : windows_core::PCWSTR, lims : _LI_METRIC, phico : *mut super::WindowsAndMessaging:: HICON) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - LoadIconMetric(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszname.param().abi(), core::mem::transmute(lims), &mut result__).map(|| core::mem::transmute(result__)) + LoadIconMetric(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszname.param().abi(), lims, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -1092,18 +1092,18 @@ where { windows_targets::link!("comctl32.dll" "system" fn LoadIconWithScaleDown(hinst : super::super::Foundation:: HINSTANCE, pszname : windows_core::PCWSTR, cx : i32, cy : i32, phico : *mut super::WindowsAndMessaging:: HICON) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - LoadIconWithScaleDown(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszname.param().abi(), core::mem::transmute(cx), core::mem::transmute(cy), &mut result__).map(|| core::mem::transmute(result__)) + LoadIconWithScaleDown(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszname.param().abi(), cx, cy, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn MakeDragList(hlb: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn MakeDragList(hlb : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - MakeDragList(core::mem::transmute(hlb)) + MakeDragList(hlb) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn MenuHelp(umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, hmainmenu: super::WindowsAndMessaging::HMENU, hinst: super::super::Foundation::HINSTANCE, hwndstatus: super::super::Foundation::HWND, lpwids: *const u32) { windows_targets::link!("comctl32.dll" "system" fn MenuHelp(umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, hmainmenu : super::WindowsAndMessaging:: HMENU, hinst : super::super::Foundation:: HINSTANCE, hwndstatus : super::super::Foundation:: HWND, lpwids : *const u32)); - MenuHelp(core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(hmainmenu), core::mem::transmute(hinst), core::mem::transmute(hwndstatus), core::mem::transmute(lpwids)) + MenuHelp(umsg, wparam, lparam, hmainmenu, hinst, hwndstatus, lpwids) } #[inline] pub unsafe fn OpenThemeData(hwnd: Option, pszclasslist: P1) -> HTHEME @@ -1119,12 +1119,12 @@ where P1: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn OpenThemeDataEx(hwnd : super::super::Foundation:: HWND, pszclasslist : windows_core::PCWSTR, dwflags : OPEN_THEME_DATA_FLAGS) -> HTHEME); - OpenThemeDataEx(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszclasslist.param().abi(), core::mem::transmute(dwflags)) + OpenThemeDataEx(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszclasslist.param().abi(), dwflags) } #[inline] pub unsafe fn PackTouchHitTestingProximityEvaluation(phittestinginput: *const TOUCH_HIT_TESTING_INPUT, pproximityeval: *const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn PackTouchHitTestingProximityEvaluation(phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> super::super::Foundation:: LRESULT); - PackTouchHitTestingProximityEvaluation(core::mem::transmute(phittestinginput), core::mem::transmute(pproximityeval)) + PackTouchHitTestingProximityEvaluation(phittestinginput, pproximityeval) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] @@ -1141,40 +1141,40 @@ pub unsafe fn PropertySheetW(param0: *mut PROPSHEETHEADERW_V2) -> isize { #[inline] pub unsafe fn RegisterPointerDeviceNotifications(window: super::super::Foundation::HWND, notifyrange: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RegisterPointerDeviceNotifications(window : super::super::Foundation:: HWND, notifyrange : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RegisterPointerDeviceNotifications(core::mem::transmute(window), notifyrange.into()).ok() + RegisterPointerDeviceNotifications(window, notifyrange.into()).ok() } #[inline] pub unsafe fn RegisterTouchHitTestingWindow(hwnd: super::super::Foundation::HWND, value: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RegisterTouchHitTestingWindow(hwnd : super::super::Foundation:: HWND, value : u32) -> super::super::Foundation:: BOOL); - RegisterTouchHitTestingWindow(core::mem::transmute(hwnd), core::mem::transmute(value)).ok() + RegisterTouchHitTestingWindow(hwnd, value).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollInfo(hwnd: super::super::Foundation::HWND, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, lpsi: *const super::WindowsAndMessaging::SCROLLINFO, redraw: bool) -> i32 { windows_targets::link!("user32.dll" "system" fn SetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, lpsi : *const super::WindowsAndMessaging:: SCROLLINFO, redraw : super::super::Foundation:: BOOL) -> i32); - SetScrollInfo(core::mem::transmute(hwnd), core::mem::transmute(nbar), core::mem::transmute(lpsi), redraw.into()) + SetScrollInfo(hwnd, nbar, lpsi, redraw.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollPos(hwnd: super::super::Foundation::HWND, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, npos: i32, bredraw: bool) -> i32 { windows_targets::link!("user32.dll" "system" fn SetScrollPos(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, npos : i32, bredraw : super::super::Foundation:: BOOL) -> i32); - SetScrollPos(core::mem::transmute(hwnd), core::mem::transmute(nbar), core::mem::transmute(npos), bredraw.into()) + SetScrollPos(hwnd, nbar, npos, bredraw.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollRange(hwnd: super::super::Foundation::HWND, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, nminpos: i32, nmaxpos: i32, bredraw: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetScrollRange(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, nminpos : i32, nmaxpos : i32, bredraw : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetScrollRange(core::mem::transmute(hwnd), core::mem::transmute(nbar), core::mem::transmute(nminpos), core::mem::transmute(nmaxpos), bredraw.into()).ok() + SetScrollRange(hwnd, nbar, nminpos, nmaxpos, bredraw.into()).ok() } #[inline] pub unsafe fn SetThemeAppProperties(dwflags: SET_THEME_APP_PROPERTIES_FLAGS) { windows_targets::link!("uxtheme.dll" "system" fn SetThemeAppProperties(dwflags : SET_THEME_APP_PROPERTIES_FLAGS)); - SetThemeAppProperties(core::mem::transmute(dwflags)) + SetThemeAppProperties(dwflags) } #[inline] pub unsafe fn SetWindowFeedbackSetting(hwnd: super::super::Foundation::HWND, feedback: FEEDBACK_TYPE, dwflags: u32, size: u32, configuration: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SetWindowFeedbackSetting(hwnd : super::super::Foundation:: HWND, feedback : FEEDBACK_TYPE, dwflags : u32, size : u32, configuration : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetWindowFeedbackSetting(core::mem::transmute(hwnd), core::mem::transmute(feedback), core::mem::transmute(dwflags), core::mem::transmute(size), core::mem::transmute(configuration.unwrap_or(core::mem::zeroed()))) + SetWindowFeedbackSetting(hwnd, feedback, dwflags, size, core::mem::transmute(configuration.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetWindowTheme(hwnd: super::super::Foundation::HWND, pszsubappname: P1, pszsubidlist: P2) -> windows_core::Result<()> @@ -1183,23 +1183,23 @@ where P2: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn SetWindowTheme(hwnd : super::super::Foundation:: HWND, pszsubappname : windows_core::PCWSTR, pszsubidlist : windows_core::PCWSTR) -> windows_core::HRESULT); - SetWindowTheme(core::mem::transmute(hwnd), pszsubappname.param().abi(), pszsubidlist.param().abi()).ok() + SetWindowTheme(hwnd, pszsubappname.param().abi(), pszsubidlist.param().abi()).ok() } #[inline] pub unsafe fn SetWindowThemeAttribute(hwnd: super::super::Foundation::HWND, eattribute: WINDOWTHEMEATTRIBUTETYPE, pvattribute: *const core::ffi::c_void, cbattribute: u32) -> windows_core::Result<()> { windows_targets::link!("uxtheme.dll" "system" fn SetWindowThemeAttribute(hwnd : super::super::Foundation:: HWND, eattribute : WINDOWTHEMEATTRIBUTETYPE, pvattribute : *const core::ffi::c_void, cbattribute : u32) -> windows_core::HRESULT); - SetWindowThemeAttribute(core::mem::transmute(hwnd), core::mem::transmute(eattribute), core::mem::transmute(pvattribute), core::mem::transmute(cbattribute)).ok() + SetWindowThemeAttribute(hwnd, eattribute, pvattribute, cbattribute).ok() } #[inline] pub unsafe fn ShowHideMenuCtl(hwnd: super::super::Foundation::HWND, uflags: usize, lpinfo: *const i32) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn ShowHideMenuCtl(hwnd : super::super::Foundation:: HWND, uflags : usize, lpinfo : *const i32) -> super::super::Foundation:: BOOL); - ShowHideMenuCtl(core::mem::transmute(hwnd), core::mem::transmute(uflags), core::mem::transmute(lpinfo)) + ShowHideMenuCtl(hwnd, uflags, lpinfo) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShowScrollBar(hwnd: super::super::Foundation::HWND, wbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, bshow: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ShowScrollBar(hwnd : super::super::Foundation:: HWND, wbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, bshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ShowScrollBar(core::mem::transmute(hwnd), core::mem::transmute(wbar), bshow.into()).ok() + ShowScrollBar(hwnd, wbar, bshow.into()).ok() } #[inline] pub unsafe fn Str_SetPtrW(ppsz: *mut windows_core::PWSTR, psz: P1) -> super::super::Foundation::BOOL @@ -1218,23 +1218,23 @@ where P6: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn TaskDialog(hwndowner : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, pszwindowtitle : windows_core::PCWSTR, pszmaininstruction : windows_core::PCWSTR, pszcontent : windows_core::PCWSTR, dwcommonbuttons : TASKDIALOG_COMMON_BUTTON_FLAGS, pszicon : windows_core::PCWSTR, pnbutton : *mut i32) -> windows_core::HRESULT); - TaskDialog(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), pszwindowtitle.param().abi(), pszmaininstruction.param().abi(), pszcontent.param().abi(), core::mem::transmute(dwcommonbuttons), pszicon.param().abi(), core::mem::transmute(pnbutton.unwrap_or(core::mem::zeroed()))).ok() + TaskDialog(core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), pszwindowtitle.param().abi(), pszmaininstruction.param().abi(), pszcontent.param().abi(), dwcommonbuttons, pszicon.param().abi(), core::mem::transmute(pnbutton.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn TaskDialogIndirect(ptaskconfig: *const TASKDIALOGCONFIG, pnbutton: Option<*mut i32>, pnradiobutton: Option<*mut i32>, pfverificationflagchecked: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { windows_targets::link!("comctl32.dll" "system" fn TaskDialogIndirect(ptaskconfig : *const TASKDIALOGCONFIG, pnbutton : *mut i32, pnradiobutton : *mut i32, pfverificationflagchecked : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - TaskDialogIndirect(core::mem::transmute(ptaskconfig), core::mem::transmute(pnbutton.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnradiobutton.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfverificationflagchecked.unwrap_or(core::mem::zeroed()))).ok() + TaskDialogIndirect(ptaskconfig, core::mem::transmute(pnbutton.unwrap_or(core::mem::zeroed())), core::mem::transmute(pnradiobutton.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfverificationflagchecked.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn UninitializeFlatSB(param0: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("comctl32.dll" "system" fn UninitializeFlatSB(param0 : super::super::Foundation:: HWND) -> windows_core::HRESULT); - UninitializeFlatSB(core::mem::transmute(param0)).ok() + UninitializeFlatSB(param0).ok() } #[inline] pub unsafe fn UpdatePanningFeedback(hwnd: super::super::Foundation::HWND, ltotaloverpanoffsetx: i32, ltotaloverpanoffsety: i32, fininertia: bool) -> super::super::Foundation::BOOL { windows_targets::link!("uxtheme.dll" "system" fn UpdatePanningFeedback(hwnd : super::super::Foundation:: HWND, ltotaloverpanoffsetx : i32, ltotaloverpanoffsety : i32, fininertia : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - UpdatePanningFeedback(core::mem::transmute(hwnd), core::mem::transmute(ltotaloverpanoffsetx), core::mem::transmute(ltotaloverpanoffsety), fininertia.into()) + UpdatePanningFeedback(hwnd, ltotaloverpanoffsetx, ltotaloverpanoffsety, fininertia.into()) } pub const ABS_DOWNDISABLED: ARROWBTNSTATES = ARROWBTNSTATES(8i32); pub const ABS_DOWNHOT: ARROWBTNSTATES = ARROWBTNSTATES(6i32); @@ -3469,115 +3469,115 @@ impl IImageList { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Add(&self, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(hbmimage), core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), hbmimage, core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed())), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ReplaceIcon(&self, i: i32, hicon: super::WindowsAndMessaging::HICON) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReplaceIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(hicon), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReplaceIcon)(windows_core::Interface::as_raw(self), i, hicon, &mut result__).map(|| result__) } pub unsafe fn SetOverlayImage(&self, iimage: i32, ioverlay: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOverlayImage)(windows_core::Interface::as_raw(self), core::mem::transmute(iimage), core::mem::transmute(ioverlay)).ok() + (windows_core::Interface::vtable(self).SetOverlayImage)(windows_core::Interface::as_raw(self), iimage, ioverlay).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Replace(&self, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(hbmimage), core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), i, hbmimage, core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddMasked(&self, hbmimage: super::super::Graphics::Gdi::HBITMAP, crmask: super::super::Foundation::COLORREF) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMasked)(windows_core::Interface::as_raw(self), core::mem::transmute(hbmimage), core::mem::transmute(crmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddMasked)(windows_core::Interface::as_raw(self), hbmimage, crmask, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Draw(&self, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(pimldp)).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pimldp).ok() } pub unsafe fn Remove(&self, i: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(i)).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), i).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetIcon(&self, i: i32, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), i, flags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetImageInfo(&self, i: i32, pimageinfo: *mut IMAGEINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImageInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(pimageinfo)).ok() + (windows_core::Interface::vtable(self).GetImageInfo)(windows_core::Interface::as_raw(self), i, core::mem::transmute(pimageinfo)).ok() } pub unsafe fn Copy(&self, idst: i32, punksrc: P1, isrc: i32, uflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), core::mem::transmute(idst), punksrc.param().abi(), core::mem::transmute(isrc), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), idst, punksrc.param().abi(), isrc, uflags).ok() } pub unsafe fn Merge(&self, i1: i32, punk2: P1, i2: i32, dx: i32, dy: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), core::mem::transmute(i1), punk2.param().abi(), core::mem::transmute(i2), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), i1, punk2.param().abi(), i2, dx, dy, riid, core::mem::transmute(ppv)).ok() } pub unsafe fn Clone(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn GetImageRect(&self, i: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImageRect)(windows_core::Interface::as_raw(self), core::mem::transmute(i), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetImageRect)(windows_core::Interface::as_raw(self), i, &mut result__).map(|| result__) } pub unsafe fn GetIconSize(&self, cx: *mut i32, cy: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(cx), core::mem::transmute(cy)).ok() } pub unsafe fn SetIconSize(&self, cx: i32, cy: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(cx), core::mem::transmute(cy)).ok() + (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), cx, cy).ok() } pub unsafe fn GetImageCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetImageCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetImageCount(&self, unewcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetImageCount)(windows_core::Interface::as_raw(self), core::mem::transmute(unewcount)).ok() + (windows_core::Interface::vtable(self).SetImageCount)(windows_core::Interface::as_raw(self), unewcount).ok() } pub unsafe fn SetBkColor(&self, clrbk: super::super::Foundation::COLORREF) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetBkColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clrbk), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetBkColor)(windows_core::Interface::as_raw(self), clrbk, &mut result__).map(|| result__) } pub unsafe fn GetBkColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBkColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn BeginDrag(&self, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginDrag)(windows_core::Interface::as_raw(self), core::mem::transmute(itrack), core::mem::transmute(dxhotspot), core::mem::transmute(dyhotspot)).ok() + (windows_core::Interface::vtable(self).BeginDrag)(windows_core::Interface::as_raw(self), itrack, dxhotspot, dyhotspot).ok() } pub unsafe fn EndDrag(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndDrag)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DragEnter(&self, hwndlock: Option, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndlock.unwrap_or(core::mem::zeroed())), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndlock.unwrap_or(core::mem::zeroed())), x, y).ok() } pub unsafe fn DragLeave(&self, hwndlock: Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DragLeave)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndlock.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn DragMove(&self, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DragMove)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).DragMove)(windows_core::Interface::as_raw(self), x, y).ok() } pub unsafe fn SetDragCursorImage(&self, punk: P0, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDragCursorImage)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(idrag), core::mem::transmute(dxhotspot), core::mem::transmute(dyhotspot)).ok() + (windows_core::Interface::vtable(self).SetDragCursorImage)(windows_core::Interface::as_raw(self), punk.param().abi(), idrag, dxhotspot, dyhotspot).ok() } pub unsafe fn DragShowNolock(&self, fshow: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DragShowNolock)(windows_core::Interface::as_raw(self), fshow.into()).ok() } pub unsafe fn GetDragImage(&self, ppt: Option<*mut super::super::Foundation::POINT>, ppthotspot: Option<*mut super::super::Foundation::POINT>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDragImage)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppthotspot.unwrap_or(core::mem::zeroed())), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetDragImage)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppthotspot.unwrap_or(core::mem::zeroed())), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn GetItemFlags(&self, i: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(i), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemFlags)(windows_core::Interface::as_raw(self), i, &mut result__).map(|| result__) } pub unsafe fn GetOverlayImage(&self, ioverlay: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOverlayImage)(windows_core::Interface::as_raw(self), core::mem::transmute(ioverlay), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOverlayImage)(windows_core::Interface::as_raw(self), ioverlay, &mut result__).map(|| result__) } } #[repr(C)] @@ -3894,13 +3894,13 @@ impl core::ops::Deref for IImageList2 { windows_core::imp::interface_hierarchy!(IImageList2, windows_core::IUnknown, IImageList); impl IImageList2 { pub unsafe fn Resize(&self, cxnewiconsize: i32, cynewiconsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), core::mem::transmute(cxnewiconsize), core::mem::transmute(cynewiconsize)).ok() + (windows_core::Interface::vtable(self).Resize)(windows_core::Interface::as_raw(self), cxnewiconsize, cynewiconsize).ok() } pub unsafe fn GetOriginalSize(&self, iimage: i32, dwflags: u32, pcx: *mut i32, pcy: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOriginalSize)(windows_core::Interface::as_raw(self), core::mem::transmute(iimage), core::mem::transmute(dwflags), core::mem::transmute(pcx), core::mem::transmute(pcy)).ok() + (windows_core::Interface::vtable(self).GetOriginalSize)(windows_core::Interface::as_raw(self), iimage, dwflags, core::mem::transmute(pcx), core::mem::transmute(pcy)).ok() } pub unsafe fn SetOriginalSize(&self, iimage: i32, cx: i32, cy: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOriginalSize)(windows_core::Interface::as_raw(self), core::mem::transmute(iimage), core::mem::transmute(cx), core::mem::transmute(cy)).ok() + (windows_core::Interface::vtable(self).SetOriginalSize)(windows_core::Interface::as_raw(self), iimage, cx, cy).ok() } pub unsafe fn SetCallback(&self, punk: P0) -> windows_core::Result<()> where @@ -3909,37 +3909,37 @@ impl IImageList2 { (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn GetCallback(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetCallback)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn ForceImagePresent(&self, iimage: i32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ForceImagePresent)(windows_core::Interface::as_raw(self), core::mem::transmute(iimage), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ForceImagePresent)(windows_core::Interface::as_raw(self), iimage, dwflags).ok() } pub unsafe fn DiscardImages(&self, ifirstimage: i32, ilastimage: i32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DiscardImages)(windows_core::Interface::as_raw(self), core::mem::transmute(ifirstimage), core::mem::transmute(ilastimage), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DiscardImages)(windows_core::Interface::as_raw(self), ifirstimage, ilastimage, dwflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn PreloadImages(&self, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PreloadImages)(windows_core::Interface::as_raw(self), core::mem::transmute(pimldp)).ok() + (windows_core::Interface::vtable(self).PreloadImages)(windows_core::Interface::as_raw(self), pimldp).ok() } pub unsafe fn GetStatistics(&self, pils: *mut IMAGELISTSTATS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatistics)(windows_core::Interface::as_raw(self), core::mem::transmute(pils)).ok() } pub unsafe fn Initialize(&self, cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS, cinitial: i32, cgrow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(flags), core::mem::transmute(cinitial), core::mem::transmute(cgrow)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), cx, cy, flags, cinitial, cgrow).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Replace2(&self, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option, punk: P3, dwflags: u32) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Replace2)(windows_core::Interface::as_raw(self), core::mem::transmute(i), core::mem::transmute(hbmimage), core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed())), punk.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Replace2)(windows_core::Interface::as_raw(self), i, hbmimage, core::mem::transmute(hbmmask.unwrap_or(core::mem::zeroed())), punk.param().abi(), dwflags).ok() } pub unsafe fn ReplaceFromImageList(&self, i: i32, pil: P1, isrc: i32, punk: P3, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ReplaceFromImageList)(windows_core::Interface::as_raw(self), core::mem::transmute(i), pil.param().abi(), core::mem::transmute(isrc), punk.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ReplaceFromImageList)(windows_core::Interface::as_raw(self), i, pil.param().abi(), isrc, punk.param().abi(), dwflags).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs index 89330d71ec..209ace427d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs @@ -2,43 +2,43 @@ #[inline] pub unsafe fn AdjustWindowRectExForDpi(lprect: *mut super::super::Foundation::RECT, dwstyle: super::WindowsAndMessaging::WINDOW_STYLE, bmenu: bool, dwexstyle: super::WindowsAndMessaging::WINDOW_EX_STYLE, dpi: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn AdjustWindowRectExForDpi(lprect : *mut super::super::Foundation:: RECT, dwstyle : super::WindowsAndMessaging:: WINDOW_STYLE, bmenu : super::super::Foundation:: BOOL, dwexstyle : super::WindowsAndMessaging:: WINDOW_EX_STYLE, dpi : u32) -> super::super::Foundation:: BOOL); - AdjustWindowRectExForDpi(core::mem::transmute(lprect), core::mem::transmute(dwstyle), bmenu.into(), core::mem::transmute(dwexstyle), core::mem::transmute(dpi)).ok() + AdjustWindowRectExForDpi(core::mem::transmute(lprect), dwstyle, bmenu.into(), dwexstyle, dpi).ok() } #[inline] pub unsafe fn AreDpiAwarenessContextsEqual(dpicontexta: DPI_AWARENESS_CONTEXT, dpicontextb: DPI_AWARENESS_CONTEXT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn AreDpiAwarenessContextsEqual(dpicontexta : DPI_AWARENESS_CONTEXT, dpicontextb : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); - AreDpiAwarenessContextsEqual(core::mem::transmute(dpicontexta), core::mem::transmute(dpicontextb)) + AreDpiAwarenessContextsEqual(dpicontexta, dpicontextb) } #[inline] pub unsafe fn EnableNonClientDpiScaling(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnableNonClientDpiScaling(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - EnableNonClientDpiScaling(core::mem::transmute(hwnd)).ok() + EnableNonClientDpiScaling(hwnd).ok() } #[inline] pub unsafe fn GetAwarenessFromDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS { windows_targets::link!("user32.dll" "system" fn GetAwarenessFromDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS); - GetAwarenessFromDpiAwarenessContext(core::mem::transmute(value)) + GetAwarenessFromDpiAwarenessContext(value) } #[inline] pub unsafe fn GetDialogControlDpiChangeBehavior(hwnd: super::super::Foundation::HWND) -> DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS { windows_targets::link!("user32.dll" "system" fn GetDialogControlDpiChangeBehavior(hwnd : super::super::Foundation:: HWND) -> DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS); - GetDialogControlDpiChangeBehavior(core::mem::transmute(hwnd)) + GetDialogControlDpiChangeBehavior(hwnd) } #[inline] pub unsafe fn GetDialogDpiChangeBehavior(hdlg: super::super::Foundation::HWND) -> DIALOG_DPI_CHANGE_BEHAVIORS { windows_targets::link!("user32.dll" "system" fn GetDialogDpiChangeBehavior(hdlg : super::super::Foundation:: HWND) -> DIALOG_DPI_CHANGE_BEHAVIORS); - GetDialogDpiChangeBehavior(core::mem::transmute(hdlg)) + GetDialogDpiChangeBehavior(hdlg) } #[inline] pub unsafe fn GetDpiAwarenessContextForProcess(hprocess: super::super::Foundation::HANDLE) -> DPI_AWARENESS_CONTEXT { windows_targets::link!("user32.dll" "system" fn GetDpiAwarenessContextForProcess(hprocess : super::super::Foundation:: HANDLE) -> DPI_AWARENESS_CONTEXT); - GetDpiAwarenessContextForProcess(core::mem::transmute(hprocess)) + GetDpiAwarenessContextForProcess(hprocess) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetDpiForMonitor(hmonitor: super::super::Graphics::Gdi::HMONITOR, dpitype: MONITOR_DPI_TYPE, dpix: *mut u32, dpiy: *mut u32) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn GetDpiForMonitor(hmonitor : super::super::Graphics::Gdi:: HMONITOR, dpitype : MONITOR_DPI_TYPE, dpix : *mut u32, dpiy : *mut u32) -> windows_core::HRESULT); - GetDpiForMonitor(core::mem::transmute(hmonitor), core::mem::transmute(dpitype), core::mem::transmute(dpix), core::mem::transmute(dpiy)).ok() + GetDpiForMonitor(hmonitor, dpitype, core::mem::transmute(dpix), core::mem::transmute(dpiy)).ok() } #[inline] pub unsafe fn GetDpiForSystem() -> u32 { @@ -48,12 +48,12 @@ pub unsafe fn GetDpiForSystem() -> u32 { #[inline] pub unsafe fn GetDpiForWindow(hwnd: super::super::Foundation::HWND) -> u32 { windows_targets::link!("user32.dll" "system" fn GetDpiForWindow(hwnd : super::super::Foundation:: HWND) -> u32); - GetDpiForWindow(core::mem::transmute(hwnd)) + GetDpiForWindow(hwnd) } #[inline] pub unsafe fn GetDpiFromDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> u32 { windows_targets::link!("user32.dll" "system" fn GetDpiFromDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> u32); - GetDpiFromDpiAwarenessContext(core::mem::transmute(value)) + GetDpiFromDpiAwarenessContext(value) } #[inline] pub unsafe fn GetProcessDpiAwareness(hprocess: Option) -> windows_core::Result { @@ -64,13 +64,13 @@ pub unsafe fn GetProcessDpiAwareness(hprocess: Option u32 { windows_targets::link!("user32.dll" "system" fn GetSystemDpiForProcess(hprocess : super::super::Foundation:: HANDLE) -> u32); - GetSystemDpiForProcess(core::mem::transmute(hprocess)) + GetSystemDpiForProcess(hprocess) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetSystemMetricsForDpi(nindex: super::WindowsAndMessaging::SYSTEM_METRICS_INDEX, dpi: u32) -> i32 { windows_targets::link!("user32.dll" "system" fn GetSystemMetricsForDpi(nindex : super::WindowsAndMessaging:: SYSTEM_METRICS_INDEX, dpi : u32) -> i32); - GetSystemMetricsForDpi(core::mem::transmute(nindex), core::mem::transmute(dpi)) + GetSystemMetricsForDpi(nindex, dpi) } #[inline] pub unsafe fn GetThreadDpiAwarenessContext() -> DPI_AWARENESS_CONTEXT { @@ -85,17 +85,17 @@ pub unsafe fn GetThreadDpiHostingBehavior() -> DPI_HOSTING_BEHAVIOR { #[inline] pub unsafe fn GetWindowDpiAwarenessContext(hwnd: super::super::Foundation::HWND) -> DPI_AWARENESS_CONTEXT { windows_targets::link!("user32.dll" "system" fn GetWindowDpiAwarenessContext(hwnd : super::super::Foundation:: HWND) -> DPI_AWARENESS_CONTEXT); - GetWindowDpiAwarenessContext(core::mem::transmute(hwnd)) + GetWindowDpiAwarenessContext(hwnd) } #[inline] pub unsafe fn GetWindowDpiHostingBehavior(hwnd: super::super::Foundation::HWND) -> DPI_HOSTING_BEHAVIOR { windows_targets::link!("user32.dll" "system" fn GetWindowDpiHostingBehavior(hwnd : super::super::Foundation:: HWND) -> DPI_HOSTING_BEHAVIOR); - GetWindowDpiHostingBehavior(core::mem::transmute(hwnd)) + GetWindowDpiHostingBehavior(hwnd) } #[inline] pub unsafe fn IsValidDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsValidDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); - IsValidDpiAwarenessContext(core::mem::transmute(value)) + IsValidDpiAwarenessContext(value) } #[inline] pub unsafe fn LogicalToPhysicalPointForPerMonitorDPI(hwnd: Option, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { @@ -109,7 +109,7 @@ where P1: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn OpenThemeDataForDpi(hwnd : super::super::Foundation:: HWND, pszclasslist : windows_core::PCWSTR, dpi : u32) -> super::Controls:: HTHEME); - OpenThemeDataForDpi(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszclasslist.param().abi(), core::mem::transmute(dpi)) + OpenThemeDataForDpi(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszclasslist.param().abi(), dpi) } #[inline] pub unsafe fn PhysicalToLogicalPointForPerMonitorDPI(hwnd: Option, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { @@ -119,37 +119,37 @@ pub unsafe fn PhysicalToLogicalPointForPerMonitorDPI(hwnd: Option windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetDialogControlDpiChangeBehavior(hwnd : super::super::Foundation:: HWND, mask : DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, values : DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS) -> super::super::Foundation:: BOOL); - SetDialogControlDpiChangeBehavior(core::mem::transmute(hwnd), core::mem::transmute(mask), core::mem::transmute(values)).ok() + SetDialogControlDpiChangeBehavior(hwnd, mask, values).ok() } #[inline] pub unsafe fn SetDialogDpiChangeBehavior(hdlg: super::super::Foundation::HWND, mask: DIALOG_DPI_CHANGE_BEHAVIORS, values: DIALOG_DPI_CHANGE_BEHAVIORS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetDialogDpiChangeBehavior(hdlg : super::super::Foundation:: HWND, mask : DIALOG_DPI_CHANGE_BEHAVIORS, values : DIALOG_DPI_CHANGE_BEHAVIORS) -> super::super::Foundation:: BOOL); - SetDialogDpiChangeBehavior(core::mem::transmute(hdlg), core::mem::transmute(mask), core::mem::transmute(values)).ok() + SetDialogDpiChangeBehavior(hdlg, mask, values).ok() } #[inline] pub unsafe fn SetProcessDpiAwareness(value: PROCESS_DPI_AWARENESS) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn SetProcessDpiAwareness(value : PROCESS_DPI_AWARENESS) -> windows_core::HRESULT); - SetProcessDpiAwareness(core::mem::transmute(value)).ok() + SetProcessDpiAwareness(value).ok() } #[inline] pub unsafe fn SetProcessDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetProcessDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); - SetProcessDpiAwarenessContext(core::mem::transmute(value)).ok() + SetProcessDpiAwarenessContext(value).ok() } #[inline] pub unsafe fn SetThreadDpiAwarenessContext(dpicontext: DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS_CONTEXT { windows_targets::link!("user32.dll" "system" fn SetThreadDpiAwarenessContext(dpicontext : DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS_CONTEXT); - SetThreadDpiAwarenessContext(core::mem::transmute(dpicontext)) + SetThreadDpiAwarenessContext(dpicontext) } #[inline] pub unsafe fn SetThreadDpiHostingBehavior(value: DPI_HOSTING_BEHAVIOR) -> DPI_HOSTING_BEHAVIOR { windows_targets::link!("user32.dll" "system" fn SetThreadDpiHostingBehavior(value : DPI_HOSTING_BEHAVIOR) -> DPI_HOSTING_BEHAVIOR); - SetThreadDpiHostingBehavior(core::mem::transmute(value)) + SetThreadDpiHostingBehavior(value) } #[inline] pub unsafe fn SystemParametersInfoForDpi(uiaction: u32, uiparam: u32, pvparam: Option<*mut core::ffi::c_void>, fwinini: u32, dpi: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SystemParametersInfoForDpi(uiaction : u32, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : u32, dpi : u32) -> super::super::Foundation:: BOOL); - SystemParametersInfoForDpi(core::mem::transmute(uiaction), core::mem::transmute(uiparam), core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(fwinini), core::mem::transmute(dpi)).ok() + SystemParametersInfoForDpi(uiaction, uiparam, core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), fwinini, dpi).ok() } pub const DCDC_DEFAULT: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS(0i32); pub const DCDC_DISABLE_FONT_UPDATE: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS(1i32); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs index 6c995ff0cf..c3b5cb80db 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs @@ -1,24 +1,24 @@ #[inline] pub unsafe fn ImmAssociateContext(param0: super::super::super::Foundation::HWND, param1: HIMC) -> HIMC { windows_targets::link!("imm32.dll" "system" fn ImmAssociateContext(param0 : super::super::super::Foundation:: HWND, param1 : HIMC) -> HIMC); - ImmAssociateContext(core::mem::transmute(param0), core::mem::transmute(param1)) + ImmAssociateContext(param0, param1) } #[inline] pub unsafe fn ImmAssociateContextEx(param0: super::super::super::Foundation::HWND, param1: HIMC, param2: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmAssociateContextEx(param0 : super::super::super::Foundation:: HWND, param1 : HIMC, param2 : u32) -> super::super::super::Foundation:: BOOL); - ImmAssociateContextEx(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + ImmAssociateContextEx(param0, param1, param2) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmConfigureIMEA(param0: super::KeyboardAndMouse::HKL, param1: super::super::super::Foundation::HWND, param2: u32, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEA(param0 : super::KeyboardAndMouse:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - ImmConfigureIMEA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmConfigureIMEA(param0, param1, param2, core::mem::transmute(param3)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmConfigureIMEW(param0: super::KeyboardAndMouse::HKL, param1: super::super::super::Foundation::HWND, param2: u32, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEW(param0 : super::KeyboardAndMouse:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - ImmConfigureIMEW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmConfigureIMEW(param0, param1, param2, core::mem::transmute(param3)) } #[inline] pub unsafe fn ImmCreateContext() -> HIMC { @@ -28,32 +28,32 @@ pub unsafe fn ImmCreateContext() -> HIMC { #[inline] pub unsafe fn ImmCreateIMCC(param0: u32) -> HIMCC { windows_targets::link!("imm32.dll" "system" fn ImmCreateIMCC(param0 : u32) -> HIMCC); - ImmCreateIMCC(core::mem::transmute(param0)) + ImmCreateIMCC(param0) } #[inline] pub unsafe fn ImmCreateSoftKeyboard(param0: u32, param1: super::super::super::Foundation::HWND, param2: i32, param3: i32) -> super::super::super::Foundation::HWND { windows_targets::link!("imm32.dll" "system" fn ImmCreateSoftKeyboard(param0 : u32, param1 : super::super::super::Foundation:: HWND, param2 : i32, param3 : i32) -> super::super::super::Foundation:: HWND); - ImmCreateSoftKeyboard(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmCreateSoftKeyboard(param0, param1, param2, param3) } #[inline] pub unsafe fn ImmDestroyContext(param0: HIMC) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmDestroyContext(param0 : HIMC) -> super::super::super::Foundation:: BOOL); - ImmDestroyContext(core::mem::transmute(param0)) + ImmDestroyContext(param0) } #[inline] pub unsafe fn ImmDestroyIMCC(param0: HIMCC) -> HIMCC { windows_targets::link!("imm32.dll" "system" fn ImmDestroyIMCC(param0 : HIMCC) -> HIMCC); - ImmDestroyIMCC(core::mem::transmute(param0)) + ImmDestroyIMCC(param0) } #[inline] pub unsafe fn ImmDestroySoftKeyboard(param0: super::super::super::Foundation::HWND) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmDestroySoftKeyboard(param0 : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - ImmDestroySoftKeyboard(core::mem::transmute(param0)) + ImmDestroySoftKeyboard(param0) } #[inline] pub unsafe fn ImmDisableIME(param0: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmDisableIME(param0 : u32) -> super::super::super::Foundation:: BOOL); - ImmDisableIME(core::mem::transmute(param0)) + ImmDisableIME(param0) } #[inline] pub unsafe fn ImmDisableLegacyIME() -> super::super::super::Foundation::BOOL { @@ -63,12 +63,12 @@ pub unsafe fn ImmDisableLegacyIME() -> super::super::super::Foundation::BOOL { #[inline] pub unsafe fn ImmDisableTextFrameService(idthread: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmDisableTextFrameService(idthread : u32) -> super::super::super::Foundation:: BOOL); - ImmDisableTextFrameService(core::mem::transmute(idthread)) + ImmDisableTextFrameService(idthread) } #[inline] pub unsafe fn ImmEnumInputContext(idthread: u32, lpfn: IMCENUMPROC, lparam: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmEnumInputContext(idthread : u32, lpfn : IMCENUMPROC, lparam : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); - ImmEnumInputContext(core::mem::transmute(idthread), core::mem::transmute(lpfn), core::mem::transmute(lparam)) + ImmEnumInputContext(idthread, lpfn, lparam) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -78,7 +78,7 @@ where P4: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEnumRegisterWordA(param0 : super::KeyboardAndMouse:: HKL, param1 : REGISTERWORDENUMPROCA, lpszreading : windows_core::PCSTR, param3 : u32, lpszregister : windows_core::PCSTR, param5 : *mut core::ffi::c_void) -> u32); - ImmEnumRegisterWordA(core::mem::transmute(param0), core::mem::transmute(param1), lpszreading.param().abi(), core::mem::transmute(param3), lpszregister.param().abi(), core::mem::transmute(param5)) + ImmEnumRegisterWordA(param0, param1, lpszreading.param().abi(), param3, lpszregister.param().abi(), core::mem::transmute(param5)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -88,81 +88,81 @@ where P4: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEnumRegisterWordW(param0 : super::KeyboardAndMouse:: HKL, param1 : REGISTERWORDENUMPROCW, lpszreading : windows_core::PCWSTR, param3 : u32, lpszregister : windows_core::PCWSTR, param5 : *mut core::ffi::c_void) -> u32); - ImmEnumRegisterWordW(core::mem::transmute(param0), core::mem::transmute(param1), lpszreading.param().abi(), core::mem::transmute(param3), lpszregister.param().abi(), core::mem::transmute(param5)) + ImmEnumRegisterWordW(param0, param1, lpszreading.param().abi(), param3, lpszregister.param().abi(), core::mem::transmute(param5)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmEscapeA(param0: super::KeyboardAndMouse::HKL, param1: HIMC, param2: IME_ESCAPE, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::LRESULT { windows_targets::link!("imm32.dll" "system" fn ImmEscapeA(param0 : super::KeyboardAndMouse:: HKL, param1 : HIMC, param2 : IME_ESCAPE, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: LRESULT); - ImmEscapeA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmEscapeA(param0, param1, param2, core::mem::transmute(param3)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmEscapeW(param0: super::KeyboardAndMouse::HKL, param1: HIMC, param2: IME_ESCAPE, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::LRESULT { windows_targets::link!("imm32.dll" "system" fn ImmEscapeW(param0 : super::KeyboardAndMouse:: HKL, param1 : HIMC, param2 : IME_ESCAPE, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: LRESULT); - ImmEscapeW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmEscapeW(param0, param1, param2, core::mem::transmute(param3)) } #[inline] pub unsafe fn ImmGenerateMessage(param0: HIMC) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGenerateMessage(param0 : HIMC) -> super::super::super::Foundation:: BOOL); - ImmGenerateMessage(core::mem::transmute(param0)) + ImmGenerateMessage(param0) } #[inline] pub unsafe fn ImmGetCandidateListA(param0: HIMC, deindex: u32, lpcandlist: Option<*mut CANDIDATELIST>, dwbuflen: u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListA(param0 : HIMC, deindex : u32, lpcandlist : *mut CANDIDATELIST, dwbuflen : u32) -> u32); - ImmGetCandidateListA(core::mem::transmute(param0), core::mem::transmute(deindex), core::mem::transmute(lpcandlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbuflen)) + ImmGetCandidateListA(param0, deindex, core::mem::transmute(lpcandlist.unwrap_or(core::mem::zeroed())), dwbuflen) } #[inline] pub unsafe fn ImmGetCandidateListCountA(param0: HIMC, lpdwlistcount: *mut u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListCountA(param0 : HIMC, lpdwlistcount : *mut u32) -> u32); - ImmGetCandidateListCountA(core::mem::transmute(param0), core::mem::transmute(lpdwlistcount)) + ImmGetCandidateListCountA(param0, core::mem::transmute(lpdwlistcount)) } #[inline] pub unsafe fn ImmGetCandidateListCountW(param0: HIMC, lpdwlistcount: *mut u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListCountW(param0 : HIMC, lpdwlistcount : *mut u32) -> u32); - ImmGetCandidateListCountW(core::mem::transmute(param0), core::mem::transmute(lpdwlistcount)) + ImmGetCandidateListCountW(param0, core::mem::transmute(lpdwlistcount)) } #[inline] pub unsafe fn ImmGetCandidateListW(param0: HIMC, deindex: u32, lpcandlist: Option<*mut CANDIDATELIST>, dwbuflen: u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListW(param0 : HIMC, deindex : u32, lpcandlist : *mut CANDIDATELIST, dwbuflen : u32) -> u32); - ImmGetCandidateListW(core::mem::transmute(param0), core::mem::transmute(deindex), core::mem::transmute(lpcandlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbuflen)) + ImmGetCandidateListW(param0, deindex, core::mem::transmute(lpcandlist.unwrap_or(core::mem::zeroed())), dwbuflen) } #[inline] pub unsafe fn ImmGetCandidateWindow(param0: HIMC, param1: u32, lpcandidate: *mut CANDIDATEFORM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateWindow(param0 : HIMC, param1 : u32, lpcandidate : *mut CANDIDATEFORM) -> super::super::super::Foundation:: BOOL); - ImmGetCandidateWindow(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(lpcandidate)) + ImmGetCandidateWindow(param0, param1, core::mem::transmute(lpcandidate)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmGetCompositionFontA(param0: HIMC, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontA(param0 : HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTA) -> super::super::super::Foundation:: BOOL); - ImmGetCompositionFontA(core::mem::transmute(param0), core::mem::transmute(lplf)) + ImmGetCompositionFontA(param0, core::mem::transmute(lplf)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmGetCompositionFontW(param0: HIMC, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontW(param0 : HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTW) -> super::super::super::Foundation:: BOOL); - ImmGetCompositionFontW(core::mem::transmute(param0), core::mem::transmute(lplf)) + ImmGetCompositionFontW(param0, core::mem::transmute(lplf)) } #[inline] pub unsafe fn ImmGetCompositionStringA(param0: HIMC, param1: IME_COMPOSITION_STRING, lpbuf: Option<*mut core::ffi::c_void>, dwbuflen: u32) -> i32 { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionStringA(param0 : HIMC, param1 : IME_COMPOSITION_STRING, lpbuf : *mut core::ffi::c_void, dwbuflen : u32) -> i32); - ImmGetCompositionStringA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(lpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbuflen)) + ImmGetCompositionStringA(param0, param1, core::mem::transmute(lpbuf.unwrap_or(core::mem::zeroed())), dwbuflen) } #[inline] pub unsafe fn ImmGetCompositionStringW(param0: HIMC, param1: IME_COMPOSITION_STRING, lpbuf: Option<*mut core::ffi::c_void>, dwbuflen: u32) -> i32 { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionStringW(param0 : HIMC, param1 : IME_COMPOSITION_STRING, lpbuf : *mut core::ffi::c_void, dwbuflen : u32) -> i32); - ImmGetCompositionStringW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(lpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbuflen)) + ImmGetCompositionStringW(param0, param1, core::mem::transmute(lpbuf.unwrap_or(core::mem::zeroed())), dwbuflen) } #[inline] pub unsafe fn ImmGetCompositionWindow(param0: HIMC, lpcompform: *mut COMPOSITIONFORM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionWindow(param0 : HIMC, lpcompform : *mut COMPOSITIONFORM) -> super::super::super::Foundation:: BOOL); - ImmGetCompositionWindow(core::mem::transmute(param0), core::mem::transmute(lpcompform)) + ImmGetCompositionWindow(param0, core::mem::transmute(lpcompform)) } #[inline] pub unsafe fn ImmGetContext(param0: super::super::super::Foundation::HWND) -> HIMC { windows_targets::link!("imm32.dll" "system" fn ImmGetContext(param0 : super::super::super::Foundation:: HWND) -> HIMC); - ImmGetContext(core::mem::transmute(param0)) + ImmGetContext(param0) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -171,7 +171,7 @@ where P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetConversionListA(param0 : super::KeyboardAndMouse:: HKL, param1 : HIMC, lpsrc : windows_core::PCSTR, lpdst : *mut CANDIDATELIST, dwbuflen : u32, uflag : GET_CONVERSION_LIST_FLAG) -> u32); - ImmGetConversionListA(core::mem::transmute(param0), core::mem::transmute(param1), lpsrc.param().abi(), core::mem::transmute(lpdst), core::mem::transmute(dwbuflen), core::mem::transmute(uflag)) + ImmGetConversionListA(param0, param1, lpsrc.param().abi(), core::mem::transmute(lpdst), dwbuflen, uflag) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -180,117 +180,117 @@ where P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetConversionListW(param0 : super::KeyboardAndMouse:: HKL, param1 : HIMC, lpsrc : windows_core::PCWSTR, lpdst : *mut CANDIDATELIST, dwbuflen : u32, uflag : GET_CONVERSION_LIST_FLAG) -> u32); - ImmGetConversionListW(core::mem::transmute(param0), core::mem::transmute(param1), lpsrc.param().abi(), core::mem::transmute(lpdst), core::mem::transmute(dwbuflen), core::mem::transmute(uflag)) + ImmGetConversionListW(param0, param1, lpsrc.param().abi(), core::mem::transmute(lpdst), dwbuflen, uflag) } #[inline] pub unsafe fn ImmGetConversionStatus(param0: HIMC, lpfdwconversion: Option<*mut IME_CONVERSION_MODE>, lpfdwsentence: Option<*mut IME_SENTENCE_MODE>) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetConversionStatus(param0 : HIMC, lpfdwconversion : *mut IME_CONVERSION_MODE, lpfdwsentence : *mut IME_SENTENCE_MODE) -> super::super::super::Foundation:: BOOL); - ImmGetConversionStatus(core::mem::transmute(param0), core::mem::transmute(lpfdwconversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfdwsentence.unwrap_or(core::mem::zeroed()))) + ImmGetConversionStatus(param0, core::mem::transmute(lpfdwconversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpfdwsentence.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ImmGetDefaultIMEWnd(param0: super::super::super::Foundation::HWND) -> super::super::super::Foundation::HWND { windows_targets::link!("imm32.dll" "system" fn ImmGetDefaultIMEWnd(param0 : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - ImmGetDefaultIMEWnd(core::mem::transmute(param0)) + ImmGetDefaultIMEWnd(param0) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetDescriptionA(param0: super::KeyboardAndMouse::HKL, lpszdescription: Option<&mut [u8]>) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetDescriptionA(param0 : super::KeyboardAndMouse:: HKL, lpszdescription : windows_core::PSTR, ubuflen : u32) -> u32); - ImmGetDescriptionA(core::mem::transmute(param0), core::mem::transmute(lpszdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ImmGetDescriptionA(param0, core::mem::transmute(lpszdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetDescriptionW(param0: super::KeyboardAndMouse::HKL, lpszdescription: Option<&mut [u16]>) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetDescriptionW(param0 : super::KeyboardAndMouse:: HKL, lpszdescription : windows_core::PWSTR, ubuflen : u32) -> u32); - ImmGetDescriptionW(core::mem::transmute(param0), core::mem::transmute(lpszdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ImmGetDescriptionW(param0, core::mem::transmute(lpszdescription.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn ImmGetGuideLineA(param0: HIMC, dwindex: GET_GUIDE_LINE_TYPE, lpbuf: Option<&mut [u8]>) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetGuideLineA(param0 : HIMC, dwindex : GET_GUIDE_LINE_TYPE, lpbuf : windows_core::PSTR, dwbuflen : u32) -> u32); - ImmGetGuideLineA(core::mem::transmute(param0), core::mem::transmute(dwindex), core::mem::transmute(lpbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ImmGetGuideLineA(param0, dwindex, core::mem::transmute(lpbuf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn ImmGetGuideLineW(param0: HIMC, dwindex: GET_GUIDE_LINE_TYPE, lpbuf: Option, dwbuflen: u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetGuideLineW(param0 : HIMC, dwindex : GET_GUIDE_LINE_TYPE, lpbuf : windows_core::PWSTR, dwbuflen : u32) -> u32); - ImmGetGuideLineW(core::mem::transmute(param0), core::mem::transmute(dwindex), core::mem::transmute(lpbuf.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwbuflen)) + ImmGetGuideLineW(param0, dwindex, core::mem::transmute(lpbuf.unwrap_or(core::mem::zeroed())), dwbuflen) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetHotKey(param0: u32, lpumodifiers: *mut u32, lpuvkey: *mut u32, phkl: *mut super::KeyboardAndMouse::HKL) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetHotKey(param0 : u32, lpumodifiers : *mut u32, lpuvkey : *mut u32, phkl : *mut super::KeyboardAndMouse:: HKL) -> super::super::super::Foundation:: BOOL); - ImmGetHotKey(core::mem::transmute(param0), core::mem::transmute(lpumodifiers), core::mem::transmute(lpuvkey), core::mem::transmute(phkl)) + ImmGetHotKey(param0, core::mem::transmute(lpumodifiers), core::mem::transmute(lpuvkey), core::mem::transmute(phkl)) } #[inline] pub unsafe fn ImmGetIMCCLockCount(param0: HIMCC) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetIMCCLockCount(param0 : HIMCC) -> u32); - ImmGetIMCCLockCount(core::mem::transmute(param0)) + ImmGetIMCCLockCount(param0) } #[inline] pub unsafe fn ImmGetIMCCSize(param0: HIMCC) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetIMCCSize(param0 : HIMCC) -> u32); - ImmGetIMCCSize(core::mem::transmute(param0)) + ImmGetIMCCSize(param0) } #[inline] pub unsafe fn ImmGetIMCLockCount(param0: HIMC) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetIMCLockCount(param0 : HIMC) -> u32); - ImmGetIMCLockCount(core::mem::transmute(param0)) + ImmGetIMCLockCount(param0) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetIMEFileNameA(param0: super::KeyboardAndMouse::HKL, lpszfilename: Option<&mut [u8]>) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetIMEFileNameA(param0 : super::KeyboardAndMouse:: HKL, lpszfilename : windows_core::PSTR, ubuflen : u32) -> u32); - ImmGetIMEFileNameA(core::mem::transmute(param0), core::mem::transmute(lpszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ImmGetIMEFileNameA(param0, core::mem::transmute(lpszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetIMEFileNameW(param0: super::KeyboardAndMouse::HKL, lpszfilename: Option<&mut [u16]>) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetIMEFileNameW(param0 : super::KeyboardAndMouse:: HKL, lpszfilename : windows_core::PWSTR, ubuflen : u32) -> u32); - ImmGetIMEFileNameW(core::mem::transmute(param0), core::mem::transmute(lpszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ImmGetIMEFileNameW(param0, core::mem::transmute(lpszfilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmGetImeMenuItemsA(param0: HIMC, param1: u32, param2: u32, lpimeparentmenu: Option<*mut IMEMENUITEMINFOA>, lpimemenu: Option<*mut IMEMENUITEMINFOA>, dwsize: u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetImeMenuItemsA(param0 : HIMC, param1 : u32, param2 : u32, lpimeparentmenu : *mut IMEMENUITEMINFOA, lpimemenu : *mut IMEMENUITEMINFOA, dwsize : u32) -> u32); - ImmGetImeMenuItemsA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(lpimeparentmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpimemenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize)) + ImmGetImeMenuItemsA(param0, param1, param2, core::mem::transmute(lpimeparentmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpimemenu.unwrap_or(core::mem::zeroed())), dwsize) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmGetImeMenuItemsW(param0: HIMC, param1: u32, param2: u32, lpimeparentmenu: Option<*mut IMEMENUITEMINFOW>, lpimemenu: Option<*mut IMEMENUITEMINFOW>, dwsize: u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetImeMenuItemsW(param0 : HIMC, param1 : u32, param2 : u32, lpimeparentmenu : *mut IMEMENUITEMINFOW, lpimemenu : *mut IMEMENUITEMINFOW, dwsize : u32) -> u32); - ImmGetImeMenuItemsW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(lpimeparentmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpimemenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize)) + ImmGetImeMenuItemsW(param0, param1, param2, core::mem::transmute(lpimeparentmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpimemenu.unwrap_or(core::mem::zeroed())), dwsize) } #[inline] pub unsafe fn ImmGetOpenStatus(param0: HIMC) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetOpenStatus(param0 : HIMC) -> super::super::super::Foundation:: BOOL); - ImmGetOpenStatus(core::mem::transmute(param0)) + ImmGetOpenStatus(param0) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetProperty(param0: super::KeyboardAndMouse::HKL, param1: u32) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetProperty(param0 : super::KeyboardAndMouse:: HKL, param1 : u32) -> u32); - ImmGetProperty(core::mem::transmute(param0), core::mem::transmute(param1)) + ImmGetProperty(param0, param1) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetRegisterWordStyleA(param0: super::KeyboardAndMouse::HKL, lpstylebuf: &mut [STYLEBUFA]) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetRegisterWordStyleA(param0 : super::KeyboardAndMouse:: HKL, nitem : u32, lpstylebuf : *mut STYLEBUFA) -> u32); - ImmGetRegisterWordStyleA(core::mem::transmute(param0), lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) + ImmGetRegisterWordStyleA(param0, lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmGetRegisterWordStyleW(param0: super::KeyboardAndMouse::HKL, lpstylebuf: &mut [STYLEBUFW]) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetRegisterWordStyleW(param0 : super::KeyboardAndMouse:: HKL, nitem : u32, lpstylebuf : *mut STYLEBUFW) -> u32); - ImmGetRegisterWordStyleW(core::mem::transmute(param0), lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) + ImmGetRegisterWordStyleW(param0, lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) } #[inline] pub unsafe fn ImmGetStatusWindowPos(param0: HIMC, lpptpos: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmGetStatusWindowPos(param0 : HIMC, lpptpos : *mut super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); - ImmGetStatusWindowPos(core::mem::transmute(param0), core::mem::transmute(lpptpos)) + ImmGetStatusWindowPos(param0, core::mem::transmute(lpptpos)) } #[inline] pub unsafe fn ImmGetVirtualKey(param0: super::super::super::Foundation::HWND) -> u32 { windows_targets::link!("imm32.dll" "system" fn ImmGetVirtualKey(param0 : super::super::super::Foundation:: HWND) -> u32); - ImmGetVirtualKey(core::mem::transmute(param0)) + ImmGetVirtualKey(param0) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -316,38 +316,38 @@ where #[inline] pub unsafe fn ImmIsIME(param0: super::KeyboardAndMouse::HKL) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmIsIME(param0 : super::KeyboardAndMouse:: HKL) -> super::super::super::Foundation:: BOOL); - ImmIsIME(core::mem::transmute(param0)) + ImmIsIME(param0) } #[inline] pub unsafe fn ImmIsUIMessageA(param0: super::super::super::Foundation::HWND, param1: u32, param2: super::super::super::Foundation::WPARAM, param3: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmIsUIMessageA(param0 : super::super::super::Foundation:: HWND, param1 : u32, param2 : super::super::super::Foundation:: WPARAM, param3 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); - ImmIsUIMessageA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmIsUIMessageA(param0, param1, param2, param3) } #[inline] pub unsafe fn ImmIsUIMessageW(param0: super::super::super::Foundation::HWND, param1: u32, param2: super::super::super::Foundation::WPARAM, param3: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmIsUIMessageW(param0 : super::super::super::Foundation:: HWND, param1 : u32, param2 : super::super::super::Foundation:: WPARAM, param3 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); - ImmIsUIMessageW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmIsUIMessageW(param0, param1, param2, param3) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmLockIMC(param0: HIMC) -> *mut INPUTCONTEXT { windows_targets::link!("imm32.dll" "system" fn ImmLockIMC(param0 : HIMC) -> *mut INPUTCONTEXT); - ImmLockIMC(core::mem::transmute(param0)) + ImmLockIMC(param0) } #[inline] pub unsafe fn ImmLockIMCC(param0: HIMCC) -> *mut core::ffi::c_void { windows_targets::link!("imm32.dll" "system" fn ImmLockIMCC(param0 : HIMCC) -> *mut core::ffi::c_void); - ImmLockIMCC(core::mem::transmute(param0)) + ImmLockIMCC(param0) } #[inline] pub unsafe fn ImmNotifyIME(param0: HIMC, dwaction: NOTIFY_IME_ACTION, dwindex: NOTIFY_IME_INDEX, dwvalue: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmNotifyIME(param0 : HIMC, dwaction : NOTIFY_IME_ACTION, dwindex : NOTIFY_IME_INDEX, dwvalue : u32) -> super::super::super::Foundation:: BOOL); - ImmNotifyIME(core::mem::transmute(param0), core::mem::transmute(dwaction), core::mem::transmute(dwindex), core::mem::transmute(dwvalue)) + ImmNotifyIME(param0, dwaction, dwindex, dwvalue) } #[inline] pub unsafe fn ImmReSizeIMCC(param0: HIMCC, param1: u32) -> HIMCC { windows_targets::link!("imm32.dll" "system" fn ImmReSizeIMCC(param0 : HIMCC, param1 : u32) -> HIMCC); - ImmReSizeIMCC(core::mem::transmute(param0), core::mem::transmute(param1)) + ImmReSizeIMCC(param0, param1) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -357,7 +357,7 @@ where P3: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordA(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszregister : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - ImmRegisterWordA(core::mem::transmute(param0), lpszreading.param().abi(), core::mem::transmute(param2), lpszregister.param().abi()) + ImmRegisterWordA(param0, lpszreading.param().abi(), param2, lpszregister.param().abi()) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -367,95 +367,95 @@ where P3: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordW(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszregister : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - ImmRegisterWordW(core::mem::transmute(param0), lpszreading.param().abi(), core::mem::transmute(param2), lpszregister.param().abi()) + ImmRegisterWordW(param0, lpszreading.param().abi(), param2, lpszregister.param().abi()) } #[inline] pub unsafe fn ImmReleaseContext(param0: super::super::super::Foundation::HWND, param1: HIMC) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmReleaseContext(param0 : super::super::super::Foundation:: HWND, param1 : HIMC) -> super::super::super::Foundation:: BOOL); - ImmReleaseContext(core::mem::transmute(param0), core::mem::transmute(param1)) + ImmReleaseContext(param0, param1) } #[inline] pub unsafe fn ImmRequestMessageA(param0: HIMC, param1: super::super::super::Foundation::WPARAM, param2: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::LRESULT { windows_targets::link!("imm32.dll" "system" fn ImmRequestMessageA(param0 : HIMC, param1 : super::super::super::Foundation:: WPARAM, param2 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: LRESULT); - ImmRequestMessageA(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + ImmRequestMessageA(param0, param1, param2) } #[inline] pub unsafe fn ImmRequestMessageW(param0: HIMC, param1: super::super::super::Foundation::WPARAM, param2: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::LRESULT { windows_targets::link!("imm32.dll" "system" fn ImmRequestMessageW(param0 : HIMC, param1 : super::super::super::Foundation:: WPARAM, param2 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: LRESULT); - ImmRequestMessageW(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + ImmRequestMessageW(param0, param1, param2) } #[inline] pub unsafe fn ImmSetCandidateWindow(param0: HIMC, lpcandidate: *const CANDIDATEFORM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetCandidateWindow(param0 : HIMC, lpcandidate : *const CANDIDATEFORM) -> super::super::super::Foundation:: BOOL); - ImmSetCandidateWindow(core::mem::transmute(param0), core::mem::transmute(lpcandidate)) + ImmSetCandidateWindow(param0, lpcandidate) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmSetCompositionFontA(param0: HIMC, lplf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontA(param0 : HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTA) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionFontA(core::mem::transmute(param0), core::mem::transmute(lplf)) + ImmSetCompositionFontA(param0, lplf) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImmSetCompositionFontW(param0: HIMC, lplf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontW(param0 : HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTW) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionFontW(core::mem::transmute(param0), core::mem::transmute(lplf)) + ImmSetCompositionFontW(param0, lplf) } #[inline] pub unsafe fn ImmSetCompositionStringA(param0: HIMC, dwindex: SET_COMPOSITION_STRING_TYPE, lpcomp: Option<*const core::ffi::c_void>, dwcomplen: u32, lpread: Option<*const core::ffi::c_void>, dwreadlen: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringA(param0 : HIMC, dwindex : SET_COMPOSITION_STRING_TYPE, lpcomp : *const core::ffi::c_void, dwcomplen : u32, lpread : *const core::ffi::c_void, dwreadlen : u32) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionStringA(core::mem::transmute(param0), core::mem::transmute(dwindex), core::mem::transmute(lpcomp.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcomplen), core::mem::transmute(lpread.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreadlen)) + ImmSetCompositionStringA(param0, dwindex, core::mem::transmute(lpcomp.unwrap_or(core::mem::zeroed())), dwcomplen, core::mem::transmute(lpread.unwrap_or(core::mem::zeroed())), dwreadlen) } #[inline] pub unsafe fn ImmSetCompositionStringW(param0: HIMC, dwindex: SET_COMPOSITION_STRING_TYPE, lpcomp: Option<*const core::ffi::c_void>, dwcomplen: u32, lpread: Option<*const core::ffi::c_void>, dwreadlen: u32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringW(param0 : HIMC, dwindex : SET_COMPOSITION_STRING_TYPE, lpcomp : *const core::ffi::c_void, dwcomplen : u32, lpread : *const core::ffi::c_void, dwreadlen : u32) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionStringW(core::mem::transmute(param0), core::mem::transmute(dwindex), core::mem::transmute(lpcomp.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwcomplen), core::mem::transmute(lpread.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwreadlen)) + ImmSetCompositionStringW(param0, dwindex, core::mem::transmute(lpcomp.unwrap_or(core::mem::zeroed())), dwcomplen, core::mem::transmute(lpread.unwrap_or(core::mem::zeroed())), dwreadlen) } #[inline] pub unsafe fn ImmSetCompositionWindow(param0: HIMC, lpcompform: *const COMPOSITIONFORM) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionWindow(param0 : HIMC, lpcompform : *const COMPOSITIONFORM) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionWindow(core::mem::transmute(param0), core::mem::transmute(lpcompform)) + ImmSetCompositionWindow(param0, lpcompform) } #[inline] pub unsafe fn ImmSetConversionStatus(param0: HIMC, param1: IME_CONVERSION_MODE, param2: IME_SENTENCE_MODE) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetConversionStatus(param0 : HIMC, param1 : IME_CONVERSION_MODE, param2 : IME_SENTENCE_MODE) -> super::super::super::Foundation:: BOOL); - ImmSetConversionStatus(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + ImmSetConversionStatus(param0, param1, param2) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] pub unsafe fn ImmSetHotKey(param0: u32, param1: u32, param2: u32, param3: super::KeyboardAndMouse::HKL) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetHotKey(param0 : u32, param1 : u32, param2 : u32, param3 : super::KeyboardAndMouse:: HKL) -> super::super::super::Foundation:: BOOL); - ImmSetHotKey(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2), core::mem::transmute(param3)) + ImmSetHotKey(param0, param1, param2, param3) } #[inline] pub unsafe fn ImmSetOpenStatus(param0: HIMC, param1: bool) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetOpenStatus(param0 : HIMC, param1 : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - ImmSetOpenStatus(core::mem::transmute(param0), param1.into()) + ImmSetOpenStatus(param0, param1.into()) } #[inline] pub unsafe fn ImmSetStatusWindowPos(param0: HIMC, lpptpos: *const super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSetStatusWindowPos(param0 : HIMC, lpptpos : *const super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); - ImmSetStatusWindowPos(core::mem::transmute(param0), core::mem::transmute(lpptpos)) + ImmSetStatusWindowPos(param0, lpptpos) } #[inline] pub unsafe fn ImmShowSoftKeyboard(param0: super::super::super::Foundation::HWND, param1: i32) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmShowSoftKeyboard(param0 : super::super::super::Foundation:: HWND, param1 : i32) -> super::super::super::Foundation:: BOOL); - ImmShowSoftKeyboard(core::mem::transmute(param0), core::mem::transmute(param1)) + ImmShowSoftKeyboard(param0, param1) } #[inline] pub unsafe fn ImmSimulateHotKey(param0: super::super::super::Foundation::HWND, param1: IME_HOTKEY_IDENTIFIER) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmSimulateHotKey(param0 : super::super::super::Foundation:: HWND, param1 : IME_HOTKEY_IDENTIFIER) -> super::super::super::Foundation:: BOOL); - ImmSimulateHotKey(core::mem::transmute(param0), core::mem::transmute(param1)) + ImmSimulateHotKey(param0, param1) } #[inline] pub unsafe fn ImmUnlockIMC(param0: HIMC) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMC(param0 : HIMC) -> super::super::super::Foundation:: BOOL); - ImmUnlockIMC(core::mem::transmute(param0)) + ImmUnlockIMC(param0) } #[inline] pub unsafe fn ImmUnlockIMCC(param0: HIMCC) -> super::super::super::Foundation::BOOL { windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMCC(param0 : HIMCC) -> super::super::super::Foundation:: BOOL); - ImmUnlockIMCC(core::mem::transmute(param0)) + ImmUnlockIMCC(param0) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -465,7 +465,7 @@ where P3: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordA(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszunregister : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - ImmUnregisterWordA(core::mem::transmute(param0), lpszreading.param().abi(), core::mem::transmute(param2), lpszunregister.param().abi()) + ImmUnregisterWordA(param0, lpszreading.param().abi(), param2, lpszunregister.param().abi()) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] @@ -475,7 +475,7 @@ where P3: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordW(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszunregister : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - ImmUnregisterWordW(core::mem::transmute(param0), lpszreading.param().abi(), core::mem::transmute(param2), lpszunregister.param().abi()) + ImmUnregisterWordW(param0, lpszreading.param().abi(), param2, lpszunregister.param().abi()) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -786,58 +786,58 @@ windows_core::imp::define_interface!(IActiveIME, IActiveIME_Vtbl, 0x6fe20962_d07 windows_core::imp::interface_hierarchy!(IActiveIME, windows_core::IUnknown); impl IActiveIME { pub unsafe fn Inquire(&self, dwsysteminfoflags: u32, pimeinfo: *mut IMEINFO, szwndclass: windows_core::PWSTR, pdwprivate: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Inquire)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsysteminfoflags), core::mem::transmute(pimeinfo), core::mem::transmute(szwndclass), core::mem::transmute(pdwprivate)).ok() + (windows_core::Interface::vtable(self).Inquire)(windows_core::Interface::as_raw(self), dwsysteminfoflags, core::mem::transmute(pimeinfo), core::mem::transmute(szwndclass), core::mem::transmute(pdwprivate)).ok() } pub unsafe fn ConversionList(&self, himc: HIMC, szsource: P1, uflag: u32, ubuflen: u32, pdest: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConversionList)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), szsource.param().abi(), core::mem::transmute(uflag), core::mem::transmute(ubuflen), core::mem::transmute(pdest), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).ConversionList)(windows_core::Interface::as_raw(self), himc, szsource.param().abi(), uflag, ubuflen, core::mem::transmute(pdest), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn Configure(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(hwnd), core::mem::transmute(dwmode), core::mem::transmute(pregisterword)).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), hkl, hwnd, dwmode, pregisterword).ok() } pub unsafe fn Destroy(&self, ureserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self), core::mem::transmute(ureserved)).ok() + (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self), ureserved).ok() } pub unsafe fn Escape(&self, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(uescape), core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() + (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), himc, uescape, core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() } pub unsafe fn SetActiveContext(&self, himc: HIMC, fflag: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActiveContext)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), fflag.into()).ok() + (windows_core::Interface::vtable(self).SetActiveContext)(windows_core::Interface::as_raw(self), himc, fflag.into()).ok() } pub unsafe fn ProcessKey(&self, himc: HIMC, uvirkey: u32, lparam: u32, pbkeystate: *const u8) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessKey)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(uvirkey), core::mem::transmute(lparam), core::mem::transmute(pbkeystate)).ok() + (windows_core::Interface::vtable(self).ProcessKey)(windows_core::Interface::as_raw(self), himc, uvirkey, lparam, pbkeystate).ok() } pub unsafe fn Notify(&self, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwaction), core::mem::transmute(dwindex), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), himc, dwaction, dwindex, dwvalue).ok() } pub unsafe fn Select(&self, himc: HIMC, fselect: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), fselect.into()).ok() + (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), himc, fselect.into()).ok() } pub unsafe fn SetCompositionString(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionString)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcomp), core::mem::transmute(dwcomplen), core::mem::transmute(pread), core::mem::transmute(dwreadlen)).ok() + (windows_core::Interface::vtable(self).SetCompositionString)(windows_core::Interface::as_raw(self), himc, dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } pub unsafe fn ToAsciiEx(&self, uvirkey: u32, uscancode: u32, pbkeystate: *const u8, fustate: u32, himc: HIMC, pdwtransbuf: *mut u32, pusize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ToAsciiEx)(windows_core::Interface::as_raw(self), core::mem::transmute(uvirkey), core::mem::transmute(uscancode), core::mem::transmute(pbkeystate), core::mem::transmute(fustate), core::mem::transmute(himc), core::mem::transmute(pdwtransbuf), core::mem::transmute(pusize)).ok() + (windows_core::Interface::vtable(self).ToAsciiEx)(windows_core::Interface::as_raw(self), uvirkey, uscancode, pbkeystate, fustate, himc, core::mem::transmute(pdwtransbuf), core::mem::transmute(pusize)).ok() } pub unsafe fn RegisterWord(&self, szreading: P0, dwstyle: u32, szstring: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWord)(windows_core::Interface::as_raw(self), szreading.param().abi(), core::mem::transmute(dwstyle), szstring.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWord)(windows_core::Interface::as_raw(self), szreading.param().abi(), dwstyle, szstring.param().abi()).ok() } pub unsafe fn UnregisterWord(&self, szreading: P0, dwstyle: u32, szstring: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWord)(windows_core::Interface::as_raw(self), szreading.param().abi(), core::mem::transmute(dwstyle), szstring.param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWord)(windows_core::Interface::as_raw(self), szreading.param().abi(), dwstyle, szstring.param().abi()).ok() } pub unsafe fn GetRegisterWordStyle(&self, nitem: u32, pstylebuf: *mut STYLEBUFW, pubufsize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegisterWordStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(nitem), core::mem::transmute(pstylebuf), core::mem::transmute(pubufsize)).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyle)(windows_core::Interface::as_raw(self), nitem, core::mem::transmute(pstylebuf), core::mem::transmute(pubufsize)).ok() } pub unsafe fn EnumRegisterWord(&self, szreading: P0, dwstyle: u32, szregister: P2, pdata: *const core::ffi::c_void) -> windows_core::Result where @@ -845,7 +845,7 @@ impl IActiveIME { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWord)(windows_core::Interface::as_raw(self), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi(), core::mem::transmute(pdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWord)(windows_core::Interface::as_raw(self), szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCodePageA(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1067,22 +1067,22 @@ windows_core::imp::interface_hierarchy!(IActiveIMMApp, windows_core::IUnknown); impl IActiveIMMApp { pub unsafe fn AssociateContext(&self, hwnd: super::super::super::Foundation::HWND, hime: HIMC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hime), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), hwnd, hime, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn ConfigureIMEA(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(hwnd), core::mem::transmute(dwmode), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), hkl, hwnd, dwmode, pdata).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn ConfigureIMEW(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(hwnd), core::mem::transmute(dwmode), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), hkl, hwnd, dwmode, pdata).ok() } pub unsafe fn CreateContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DestroyContext(&self, hime: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hime)).ok() + (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), hime).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EnumRegisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3, pdata: *const core::ffi::c_void) -> windows_core::Result @@ -1091,7 +1091,7 @@ impl IActiveIMMApp { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi(), core::mem::transmute(pdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EnumRegisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3, pdata: *const core::ffi::c_void) -> windows_core::Result @@ -1100,118 +1100,118 @@ impl IActiveIMMApp { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi(), core::mem::transmute(pdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EscapeA(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), core::mem::transmute(uescape), core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() + (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), hkl, himc, uescape, core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EscapeW(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), core::mem::transmute(uescape), core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() + (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), hkl, himc, uescape, core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() } pub unsafe fn GetCandidateListA(&self, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(ubuflen), core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), himc, dwindex, ubuflen, core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetCandidateListW(&self, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(ubuflen), core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), himc, dwindex, ubuflen, core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetCandidateListCountA(&self, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() } pub unsafe fn GetCandidateListCountW(&self, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() } pub unsafe fn GetCandidateWindow(&self, himc: HIMC, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcandidate)).ok() + (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), himc, dwindex, core::mem::transmute(pcandidate)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetCompositionFontA(&self, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(plf)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetCompositionFontW(&self, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(plf)).ok() } pub unsafe fn GetCompositionStringA(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() + (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() } pub unsafe fn GetCompositionStringW(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() + (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() } pub unsafe fn GetCompositionWindow(&self, himc: HIMC, pcompform: *mut COMPOSITIONFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pcompform)).ok() + (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pcompform)).ok() } pub unsafe fn GetContext(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), hwnd, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetConversionListA(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), psrc.param().abi(), core::mem::transmute(ubuflen), core::mem::transmute(uflag), core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), hkl, himc, psrc.param().abi(), ubuflen, uflag, core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetConversionListW(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), psrc.param().abi(), core::mem::transmute(ubuflen), core::mem::transmute(uflag), core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), hkl, himc, psrc.param().abi(), ubuflen, uflag, core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetConversionStatus(&self, himc: HIMC, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pfdwconversion), core::mem::transmute(pfdwsentence)).ok() + (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pfdwconversion), core::mem::transmute(pfdwsentence)).ok() } pub unsafe fn GetDefaultIMEWnd(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), hwnd, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetDescriptionA(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetDescriptionW(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetGuideLineA(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() } pub unsafe fn GetGuideLineW(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetIMEFileNameA(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetIMEFileNameW(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetOpenStatus(&self, himc: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc)).ok() + (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), himc).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetProperty(&self, hkl: super::KeyboardAndMouse::HKL, fdwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(fdwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), hkl, fdwindex, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetRegisterWordStyleA(&self, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(nitem), core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), hkl, nitem, core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetRegisterWordStyleW(&self, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(nitem), core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), hkl, nitem, core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetStatusWindowPos(&self, himc: HIMC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), himc, &mut result__).map(|| result__) } pub unsafe fn GetVirtualKey(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), hwnd, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn InstallIMEA(&self, szimefilename: P0, szlayouttext: P1) -> windows_core::Result @@ -1233,16 +1233,16 @@ impl IActiveIMMApp { } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn IsIME(&self, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl)).ok() + (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), hkl).ok() } pub unsafe fn IsUIMessageA(&self, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndime), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), hwndime, msg, wparam, lparam).ok() } pub unsafe fn IsUIMessageW(&self, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndime), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), hwndime, msg, wparam, lparam).ok() } pub unsafe fn NotifyIME(&self, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwaction), core::mem::transmute(dwindex), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), himc, dwaction, dwindex, dwvalue).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn RegisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3) -> windows_core::Result<()> @@ -1250,7 +1250,7 @@ impl IActiveIMMApp { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn RegisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3) -> windows_core::Result<()> @@ -1258,42 +1258,42 @@ impl IActiveIMMApp { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } pub unsafe fn ReleaseContext(&self, hwnd: super::super::super::Foundation::HWND, himc: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(himc)).ok() + (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), hwnd, himc).ok() } pub unsafe fn SetCandidateWindow(&self, himc: HIMC, pcandidate: *const CANDIDATEFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pcandidate)).ok() + (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), himc, pcandidate).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetCompositionFontA(&self, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), himc, plf).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetCompositionFontW(&self, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), himc, plf).ok() } pub unsafe fn SetCompositionStringA(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcomp), core::mem::transmute(dwcomplen), core::mem::transmute(pread), core::mem::transmute(dwreadlen)).ok() + (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), himc, dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } pub unsafe fn SetCompositionStringW(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcomp), core::mem::transmute(dwcomplen), core::mem::transmute(pread), core::mem::transmute(dwreadlen)).ok() + (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), himc, dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } pub unsafe fn SetCompositionWindow(&self, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pcompform)).ok() + (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), himc, pcompform).ok() } pub unsafe fn SetConversionStatus(&self, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(fdwconversion), core::mem::transmute(fdwsentence)).ok() + (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), himc, fdwconversion, fdwsentence).ok() } pub unsafe fn SetOpenStatus(&self, himc: HIMC, fopen: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), fopen.into()).ok() + (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), himc, fopen.into()).ok() } pub unsafe fn SetStatusWindowPos(&self, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pptpos)).ok() + (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), himc, pptpos).ok() } pub unsafe fn SimulateHotKey(&self, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(dwhotkeyid)).ok() + (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), hwnd, dwhotkeyid).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn UnregisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szunregister: P3) -> windows_core::Result<()> @@ -1301,7 +1301,7 @@ impl IActiveIMMApp { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szunregister.param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn UnregisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szunregister: P3) -> windows_core::Result<()> @@ -1309,7 +1309,7 @@ impl IActiveIMMApp { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szunregister.param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } pub unsafe fn Activate(&self, frestorelayout: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), frestorelayout.into()).ok() @@ -1319,38 +1319,38 @@ impl IActiveIMMApp { } pub unsafe fn OnDefWindowProc(&self, hwnd: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnDefWindowProc)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnDefWindowProc)(windows_core::Interface::as_raw(self), hwnd, msg, wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn FilterClientWindows(&self, aaclasslist: *const u16, usize: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FilterClientWindows)(windows_core::Interface::as_raw(self), core::mem::transmute(aaclasslist), core::mem::transmute(usize)).ok() + (windows_core::Interface::vtable(self).FilterClientWindows)(windows_core::Interface::as_raw(self), aaclasslist, usize).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetCodePageA(&self, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), hkl, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetLangId(&self, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), hkl, &mut result__).map(|| result__) } pub unsafe fn AssociateContextEx(&self, hwnd: super::super::super::Foundation::HWND, himc: HIMC, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(himc), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), hwnd, himc, dwflags).ok() } pub unsafe fn DisableIME(&self, idthread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisableIME)(windows_core::Interface::as_raw(self), core::mem::transmute(idthread)).ok() + (windows_core::Interface::vtable(self).DisableIME)(windows_core::Interface::as_raw(self), idthread).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetImeMenuItemsA(&self, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwflags), core::mem::transmute(dwtype), core::mem::transmute(pimeparentmenu), core::mem::transmute(pimemenu), core::mem::transmute(dwsize), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), himc, dwflags, dwtype, pimeparentmenu, core::mem::transmute(pimemenu), dwsize, core::mem::transmute(pdwresult)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetImeMenuItemsW(&self, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwflags), core::mem::transmute(dwtype), core::mem::transmute(pimeparentmenu), core::mem::transmute(pimemenu), core::mem::transmute(dwsize), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), himc, dwflags, dwtype, pimeparentmenu, core::mem::transmute(pimemenu), dwsize, core::mem::transmute(pdwresult)).ok() } pub unsafe fn EnumInputContext(&self, idthread: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumInputContext)(windows_core::Interface::as_raw(self), core::mem::transmute(idthread), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumInputContext)(windows_core::Interface::as_raw(self), idthread, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2034,22 +2034,22 @@ windows_core::imp::interface_hierarchy!(IActiveIMMIME, windows_core::IUnknown); impl IActiveIMMIME { pub unsafe fn AssociateContext(&self, hwnd: super::super::super::Foundation::HWND, hime: HIMC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hime), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), hwnd, hime, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn ConfigureIMEA(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(hwnd), core::mem::transmute(dwmode), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), hkl, hwnd, dwmode, pdata).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn ConfigureIMEW(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(hwnd), core::mem::transmute(dwmode), core::mem::transmute(pdata)).ok() + (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), hkl, hwnd, dwmode, pdata).ok() } pub unsafe fn CreateContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn DestroyContext(&self, hime: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hime)).ok() + (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), hime).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EnumRegisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3, pdata: *const core::ffi::c_void) -> windows_core::Result @@ -2058,7 +2058,7 @@ impl IActiveIMMIME { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi(), core::mem::transmute(pdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EnumRegisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3, pdata: *const core::ffi::c_void) -> windows_core::Result @@ -2067,118 +2067,118 @@ impl IActiveIMMIME { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi(), core::mem::transmute(pdata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EscapeA(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), core::mem::transmute(uescape), core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() + (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), hkl, himc, uescape, core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn EscapeW(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), core::mem::transmute(uescape), core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() + (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), hkl, himc, uescape, core::mem::transmute(pdata), core::mem::transmute(plresult)).ok() } pub unsafe fn GetCandidateListA(&self, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(ubuflen), core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), himc, dwindex, ubuflen, core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetCandidateListW(&self, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(ubuflen), core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), himc, dwindex, ubuflen, core::mem::transmute(pcandlist), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetCandidateListCountA(&self, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() } pub unsafe fn GetCandidateListCountW(&self, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pdwlistsize), core::mem::transmute(pdwbuflen)).ok() } pub unsafe fn GetCandidateWindow(&self, himc: HIMC, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcandidate)).ok() + (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), himc, dwindex, core::mem::transmute(pcandidate)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetCompositionFontA(&self, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(plf)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetCompositionFontW(&self, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(plf)).ok() } pub unsafe fn GetCompositionStringA(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() + (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() } pub unsafe fn GetCompositionStringW(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() + (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(plcopied), core::mem::transmute(pbuf)).ok() } pub unsafe fn GetCompositionWindow(&self, himc: HIMC, pcompform: *mut COMPOSITIONFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pcompform)).ok() + (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pcompform)).ok() } pub unsafe fn GetContext(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), hwnd, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetConversionListA(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), psrc.param().abi(), core::mem::transmute(ubuflen), core::mem::transmute(uflag), core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), hkl, himc, psrc.param().abi(), ubuflen, uflag, core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetConversionListW(&self, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(himc), psrc.param().abi(), core::mem::transmute(ubuflen), core::mem::transmute(uflag), core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), hkl, himc, psrc.param().abi(), ubuflen, uflag, core::mem::transmute(pdst), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetConversionStatus(&self, himc: HIMC, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pfdwconversion), core::mem::transmute(pfdwsentence)).ok() + (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), himc, core::mem::transmute(pfdwconversion), core::mem::transmute(pfdwsentence)).ok() } pub unsafe fn GetDefaultIMEWnd(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), hwnd, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetDescriptionA(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetDescriptionW(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szdescription), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetGuideLineA(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() } pub unsafe fn GetGuideLineW(&self, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(dwbuflen), core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), himc, dwindex, dwbuflen, core::mem::transmute(pbuf), core::mem::transmute(pdwresult)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetIMEFileNameA(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetIMEFileNameW(&self, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(ubuflen), core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), hkl, ubuflen, core::mem::transmute(szfilename), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetOpenStatus(&self, himc: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc)).ok() + (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), himc).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetProperty(&self, hkl: super::KeyboardAndMouse::HKL, fdwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(fdwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), hkl, fdwindex, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetRegisterWordStyleA(&self, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(nitem), core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), hkl, nitem, core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetRegisterWordStyleW(&self, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), core::mem::transmute(nitem), core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), hkl, nitem, core::mem::transmute(pstylebuf), core::mem::transmute(pucopied)).ok() } pub unsafe fn GetStatusWindowPos(&self, himc: HIMC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), himc, &mut result__).map(|| result__) } pub unsafe fn GetVirtualKey(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), hwnd, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn InstallIMEA(&self, szimefilename: P0, szlayouttext: P1) -> windows_core::Result @@ -2200,16 +2200,16 @@ impl IActiveIMMIME { } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn IsIME(&self, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl)).ok() + (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), hkl).ok() } pub unsafe fn IsUIMessageA(&self, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndime), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), hwndime, msg, wparam, lparam).ok() } pub unsafe fn IsUIMessageW(&self, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndime), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), hwndime, msg, wparam, lparam).ok() } pub unsafe fn NotifyIME(&self, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwaction), core::mem::transmute(dwindex), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), himc, dwaction, dwindex, dwvalue).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn RegisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3) -> windows_core::Result<()> @@ -2217,7 +2217,7 @@ impl IActiveIMMIME { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn RegisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szregister: P3) -> windows_core::Result<()> @@ -2225,42 +2225,42 @@ impl IActiveIMMIME { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szregister.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } pub unsafe fn ReleaseContext(&self, hwnd: super::super::super::Foundation::HWND, himc: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(himc)).ok() + (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), hwnd, himc).ok() } pub unsafe fn SetCandidateWindow(&self, himc: HIMC, pcandidate: *const CANDIDATEFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pcandidate)).ok() + (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), himc, pcandidate).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetCompositionFontA(&self, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), himc, plf).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetCompositionFontW(&self, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), himc, plf).ok() } pub unsafe fn SetCompositionStringA(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcomp), core::mem::transmute(dwcomplen), core::mem::transmute(pread), core::mem::transmute(dwreadlen)).ok() + (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), himc, dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } pub unsafe fn SetCompositionStringW(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwindex), core::mem::transmute(pcomp), core::mem::transmute(dwcomplen), core::mem::transmute(pread), core::mem::transmute(dwreadlen)).ok() + (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), himc, dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } pub unsafe fn SetCompositionWindow(&self, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pcompform)).ok() + (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), himc, pcompform).ok() } pub unsafe fn SetConversionStatus(&self, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(fdwconversion), core::mem::transmute(fdwsentence)).ok() + (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), himc, fdwconversion, fdwsentence).ok() } pub unsafe fn SetOpenStatus(&self, himc: HIMC, fopen: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), fopen.into()).ok() + (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), himc, fopen.into()).ok() } pub unsafe fn SetStatusWindowPos(&self, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(pptpos)).ok() + (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), himc, pptpos).ok() } pub unsafe fn SimulateHotKey(&self, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(dwhotkeyid)).ok() + (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), hwnd, dwhotkeyid).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn UnregisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szunregister: P3) -> windows_core::Result<()> @@ -2268,7 +2268,7 @@ impl IActiveIMMIME { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szunregister.param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn UnregisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: P1, dwstyle: u32, szunregister: P3) -> windows_core::Result<()> @@ -2276,78 +2276,78 @@ impl IActiveIMMIME { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), szreading.param().abi(), core::mem::transmute(dwstyle), szunregister.param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), hkl, szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } pub unsafe fn GenerateMessage(&self, himc: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GenerateMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(himc)).ok() + (windows_core::Interface::vtable(self).GenerateMessage)(windows_core::Interface::as_raw(self), himc).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn LockIMC(&self, himc: HIMC) -> windows_core::Result<*mut INPUTCONTEXT> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LockIMC)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LockIMC)(windows_core::Interface::as_raw(self), himc, &mut result__).map(|| result__) } pub unsafe fn UnlockIMC(&self, himc: HIMC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockIMC)(windows_core::Interface::as_raw(self), core::mem::transmute(himc)).ok() + (windows_core::Interface::vtable(self).UnlockIMC)(windows_core::Interface::as_raw(self), himc).ok() } pub unsafe fn GetIMCLockCount(&self, himc: HIMC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIMCLockCount)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIMCLockCount)(windows_core::Interface::as_raw(self), himc, &mut result__).map(|| result__) } pub unsafe fn CreateIMCC(&self, dwsize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateIMCC)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateIMCC)(windows_core::Interface::as_raw(self), dwsize, &mut result__).map(|| result__) } pub unsafe fn DestroyIMCC(&self, himcc: HIMCC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyIMCC)(windows_core::Interface::as_raw(self), core::mem::transmute(himcc)).ok() + (windows_core::Interface::vtable(self).DestroyIMCC)(windows_core::Interface::as_raw(self), himcc).ok() } pub unsafe fn LockIMCC(&self, himcc: HIMCC, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LockIMCC)(windows_core::Interface::as_raw(self), core::mem::transmute(himcc), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).LockIMCC)(windows_core::Interface::as_raw(self), himcc, core::mem::transmute(ppv)).ok() } pub unsafe fn UnlockIMCC(&self, himcc: HIMCC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnlockIMCC)(windows_core::Interface::as_raw(self), core::mem::transmute(himcc)).ok() + (windows_core::Interface::vtable(self).UnlockIMCC)(windows_core::Interface::as_raw(self), himcc).ok() } pub unsafe fn ReSizeIMCC(&self, himcc: HIMCC, dwsize: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReSizeIMCC)(windows_core::Interface::as_raw(self), core::mem::transmute(himcc), core::mem::transmute(dwsize), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReSizeIMCC)(windows_core::Interface::as_raw(self), himcc, dwsize, &mut result__).map(|| result__) } pub unsafe fn GetIMCCSize(&self, himcc: HIMCC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIMCCSize)(windows_core::Interface::as_raw(self), core::mem::transmute(himcc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIMCCSize)(windows_core::Interface::as_raw(self), himcc, &mut result__).map(|| result__) } pub unsafe fn GetIMCCLockCount(&self, himcc: HIMCC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIMCCLockCount)(windows_core::Interface::as_raw(self), core::mem::transmute(himcc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIMCCLockCount)(windows_core::Interface::as_raw(self), himcc, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetHotKey(&self, dwhotkeyid: u32, pumodifiers: *mut u32, puvkey: *mut u32, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHotKey)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhotkeyid), core::mem::transmute(pumodifiers), core::mem::transmute(puvkey), core::mem::transmute(phkl)).ok() + (windows_core::Interface::vtable(self).GetHotKey)(windows_core::Interface::as_raw(self), dwhotkeyid, core::mem::transmute(pumodifiers), core::mem::transmute(puvkey), core::mem::transmute(phkl)).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn SetHotKey(&self, dwhotkeyid: u32, umodifiers: u32, uvkey: u32, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHotKey)(windows_core::Interface::as_raw(self), core::mem::transmute(dwhotkeyid), core::mem::transmute(umodifiers), core::mem::transmute(uvkey), core::mem::transmute(hkl)).ok() + (windows_core::Interface::vtable(self).SetHotKey)(windows_core::Interface::as_raw(self), dwhotkeyid, umodifiers, uvkey, hkl).ok() } pub unsafe fn CreateSoftKeyboard(&self, utype: u32, howner: super::super::super::Foundation::HWND, x: i32, y: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSoftKeyboard)(windows_core::Interface::as_raw(self), core::mem::transmute(utype), core::mem::transmute(howner), core::mem::transmute(x), core::mem::transmute(y), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSoftKeyboard)(windows_core::Interface::as_raw(self), utype, howner, x, y, &mut result__).map(|| result__) } pub unsafe fn DestroySoftKeyboard(&self, hsoftkbdwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroySoftKeyboard)(windows_core::Interface::as_raw(self), core::mem::transmute(hsoftkbdwnd)).ok() + (windows_core::Interface::vtable(self).DestroySoftKeyboard)(windows_core::Interface::as_raw(self), hsoftkbdwnd).ok() } pub unsafe fn ShowSoftKeyboard(&self, hsoftkbdwnd: super::super::super::Foundation::HWND, ncmdshow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowSoftKeyboard)(windows_core::Interface::as_raw(self), core::mem::transmute(hsoftkbdwnd), core::mem::transmute(ncmdshow)).ok() + (windows_core::Interface::vtable(self).ShowSoftKeyboard)(windows_core::Interface::as_raw(self), hsoftkbdwnd, ncmdshow).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetCodePageA(&self, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), hkl, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetLangId(&self, hkl: super::KeyboardAndMouse::HKL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), core::mem::transmute(hkl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), hkl, &mut result__).map(|| result__) } pub unsafe fn KeybdEvent(&self, lgidime: u16, bvk: u8, bscan: u8, dwflags: u32, dwextrainfo: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).KeybdEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(lgidime), core::mem::transmute(bvk), core::mem::transmute(bscan), core::mem::transmute(dwflags), core::mem::transmute(dwextrainfo)).ok() + (windows_core::Interface::vtable(self).KeybdEvent)(windows_core::Interface::as_raw(self), lgidime, bvk, bscan, dwflags, dwextrainfo).ok() } pub unsafe fn LockModal(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LockModal)(windows_core::Interface::as_raw(self)).ok() @@ -2356,38 +2356,38 @@ impl IActiveIMMIME { (windows_core::Interface::vtable(self).UnlockModal)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AssociateContextEx(&self, hwnd: super::super::super::Foundation::HWND, himc: HIMC, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(himc), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), hwnd, himc, dwflags).ok() } pub unsafe fn DisableIME(&self, idthread: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisableIME)(windows_core::Interface::as_raw(self), core::mem::transmute(idthread)).ok() + (windows_core::Interface::vtable(self).DisableIME)(windows_core::Interface::as_raw(self), idthread).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetImeMenuItemsA(&self, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwflags), core::mem::transmute(dwtype), core::mem::transmute(pimeparentmenu), core::mem::transmute(pimemenu), core::mem::transmute(dwsize), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), himc, dwflags, dwtype, pimeparentmenu, core::mem::transmute(pimemenu), dwsize, core::mem::transmute(pdwresult)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetImeMenuItemsW(&self, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(dwflags), core::mem::transmute(dwtype), core::mem::transmute(pimeparentmenu), core::mem::transmute(pimemenu), core::mem::transmute(dwsize), core::mem::transmute(pdwresult)).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), himc, dwflags, dwtype, pimeparentmenu, core::mem::transmute(pimemenu), dwsize, core::mem::transmute(pdwresult)).ok() } pub unsafe fn EnumInputContext(&self, idthread: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumInputContext)(windows_core::Interface::as_raw(self), core::mem::transmute(idthread), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumInputContext)(windows_core::Interface::as_raw(self), idthread, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestMessageA(&self, himc: HIMC, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestMessageA)(windows_core::Interface::as_raw(self), himc, wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn RequestMessageW(&self, himc: HIMC, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(himc), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestMessageW)(windows_core::Interface::as_raw(self), himc, wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn SendIMCA(&self, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SendIMCA)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SendIMCA)(windows_core::Interface::as_raw(self), hwnd, umsg, wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn SendIMCW(&self, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SendIMCW)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SendIMCW)(windows_core::Interface::as_raw(self), hwnd, umsg, wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn IsSleeping(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsSleeping)(windows_core::Interface::as_raw(self)).ok() @@ -3289,14 +3289,14 @@ impl IActiveIMMMessagePumpOwner { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnTranslateMessage(&self, pmsg: *const super::super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTranslateMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).OnTranslateMessage)(windows_core::Interface::as_raw(self), pmsg).ok() } pub unsafe fn Pause(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Resume(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -3371,10 +3371,10 @@ impl IActiveIMMRegistrar { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterIME)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(lgid), psziconfile.param().abi(), pszdesc.param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterIME)(windows_core::Interface::as_raw(self), rclsid, lgid, psziconfile.param().abi(), pszdesc.param().abi()).ok() } pub unsafe fn UnregisterIME(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterIME)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid)).ok() + (windows_core::Interface::vtable(self).UnregisterIME)(windows_core::Interface::as_raw(self), rclsid).ok() } } #[repr(C)] @@ -3416,13 +3416,13 @@ impl IEnumInputContext { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Next(&self, ulcount: u32, rginputcontext: *mut HIMC, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(rginputcontext), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(rginputcontext), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -3484,13 +3484,13 @@ impl IEnumRegisterWordA { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Next(&self, ulcount: u32, rgregisterword: *mut REGISTERWORDA, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(rgregisterword), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(rgregisterword), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -3552,13 +3552,13 @@ impl IEnumRegisterWordW { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Next(&self, ulcount: u32, rgregisterword: *mut REGISTERWORDW, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(rgregisterword), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(rgregisterword), core::mem::transmute(pcfetched)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -3832,7 +3832,7 @@ impl IFEDictionary { (windows_core::Interface::vtable(self).GetHeader)(windows_core::Interface::as_raw(self), core::mem::transmute(pchdictpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pshf), core::mem::transmute(pjfmt), core::mem::transmute(pultype)).ok() } pub unsafe fn DisplayProperty(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DisplayProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).DisplayProperty)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn GetPosTable(&self, prgpostbl: *mut *mut POSTBL, pcpostbl: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPosTable)(windows_core::Interface::as_raw(self), core::mem::transmute(prgpostbl), core::mem::transmute(pcpostbl)).ok() @@ -3843,10 +3843,10 @@ impl IFEDictionary { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), pwchfirst.param().abi(), pwchlast.param().abi(), pwchdisplay.param().abi(), core::mem::transmute(ulpos), core::mem::transmute(ulselect), core::mem::transmute(ulwordsrc), core::mem::transmute(pchbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcwrd)).ok() + (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), pwchfirst.param().abi(), pwchlast.param().abi(), pwchdisplay.param().abi(), ulpos, ulselect, ulwordsrc, core::mem::transmute(pchbuffer), cbbuffer, core::mem::transmute(pcwrd)).ok() } pub unsafe fn NextWords(&self, pchbuffer: *mut u8, cbbuffer: u32, pcwrd: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NextWords)(windows_core::Interface::as_raw(self), core::mem::transmute(pchbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcwrd)).ok() + (windows_core::Interface::vtable(self).NextWords)(windows_core::Interface::as_raw(self), core::mem::transmute(pchbuffer), cbbuffer, core::mem::transmute(pcwrd)).ok() } pub unsafe fn Create(&self, pchdictpath: P0, pshf: *mut IMESHF) -> windows_core::Result<()> where @@ -3864,10 +3864,10 @@ impl IFEDictionary { (windows_core::Interface::vtable(self).ExistDependency)(windows_core::Interface::as_raw(self), core::mem::transmute(pdp)).ok() } pub unsafe fn RegisterWord(&self, reg: IMEREG, pwrd: *mut IMEWRD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterWord)(windows_core::Interface::as_raw(self), core::mem::transmute(reg), core::mem::transmute(pwrd)).ok() + (windows_core::Interface::vtable(self).RegisterWord)(windows_core::Interface::as_raw(self), reg, core::mem::transmute(pwrd)).ok() } pub unsafe fn RegisterDependency(&self, reg: IMEREG, pdp: *mut IMEDP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterDependency)(windows_core::Interface::as_raw(self), core::mem::transmute(reg), core::mem::transmute(pdp)).ok() + (windows_core::Interface::vtable(self).RegisterDependency)(windows_core::Interface::as_raw(self), reg, core::mem::transmute(pdp)).ok() } pub unsafe fn GetDependencies(&self, pwchkakarireading: P0, pwchkakaridisplay: P1, ulkakaripos: u32, pwchukereading: P3, pwchukedisplay: P4, ulukepos: u32, jrel: IMEREL, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::Result<()> where @@ -3876,16 +3876,16 @@ impl IFEDictionary { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDependencies)(windows_core::Interface::as_raw(self), pwchkakarireading.param().abi(), pwchkakaridisplay.param().abi(), core::mem::transmute(ulkakaripos), pwchukereading.param().abi(), pwchukedisplay.param().abi(), core::mem::transmute(ulukepos), core::mem::transmute(jrel), core::mem::transmute(ulwordsrc), core::mem::transmute(pchbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcdp)).ok() + (windows_core::Interface::vtable(self).GetDependencies)(windows_core::Interface::as_raw(self), pwchkakarireading.param().abi(), pwchkakaridisplay.param().abi(), ulkakaripos, pwchukereading.param().abi(), pwchukedisplay.param().abi(), ulukepos, jrel, ulwordsrc, core::mem::transmute(pchbuffer), cbbuffer, core::mem::transmute(pcdp)).ok() } pub unsafe fn NextDependencies(&self, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NextDependencies)(windows_core::Interface::as_raw(self), core::mem::transmute(pchbuffer), core::mem::transmute(cbbuffer), core::mem::transmute(pcdp)).ok() + (windows_core::Interface::vtable(self).NextDependencies)(windows_core::Interface::as_raw(self), core::mem::transmute(pchbuffer), cbbuffer, core::mem::transmute(pcdp)).ok() } pub unsafe fn ConvertFromOldMSIME(&self, pchdic: P0, pfnlog: PFNLOG, reg: IMEREG) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertFromOldMSIME)(windows_core::Interface::as_raw(self), pchdic.param().abi(), core::mem::transmute(pfnlog), core::mem::transmute(reg)).ok() + (windows_core::Interface::vtable(self).ConvertFromOldMSIME)(windows_core::Interface::as_raw(self), pchdic.param().abi(), pfnlog, reg).ok() } pub unsafe fn ConvertFromUserToSys(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertFromUserToSys)(windows_core::Interface::as_raw(self)).ok() @@ -4040,16 +4040,16 @@ impl IFELanguage { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetJMorphResult)(windows_core::Interface::as_raw(self), core::mem::transmute(dwrequest), core::mem::transmute(dwcmode), core::mem::transmute(cwchinput), pwchinput.param().abi(), core::mem::transmute(pfcinfo), core::mem::transmute(ppresult)).ok() + (windows_core::Interface::vtable(self).GetJMorphResult)(windows_core::Interface::as_raw(self), dwrequest, dwcmode, cwchinput, pwchinput.param().abi(), core::mem::transmute(pfcinfo), core::mem::transmute(ppresult)).ok() } pub unsafe fn GetConversionModeCaps(&self, pdwcaps: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetConversionModeCaps)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcaps)).ok() } pub unsafe fn GetPhonetic(&self, string: &windows_core::BSTR, start: i32, length: i32, phonetic: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPhonetic)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(string), core::mem::transmute(start), core::mem::transmute(length), core::mem::transmute(phonetic)).ok() + (windows_core::Interface::vtable(self).GetPhonetic)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(string), start, length, core::mem::transmute(phonetic)).ok() } pub unsafe fn GetConversion(&self, string: &windows_core::BSTR, start: i32, length: i32, result: *mut windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetConversion)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(string), core::mem::transmute(start), core::mem::transmute(length), core::mem::transmute(result)).ok() + (windows_core::Interface::vtable(self).GetConversion)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(string), start, length, core::mem::transmute(result)).ok() } } #[repr(C)] @@ -4126,7 +4126,7 @@ impl IImePad { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), piimepadapplet.param().abi(), reqid.0 as _, core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), piimepadapplet.param().abi(), reqid.0 as _, wparam, lparam).ok() } } #[repr(C)] @@ -4167,13 +4167,13 @@ impl IImePadApplet { (windows_core::Interface::vtable(self).GetAppletConfig)(windows_core::Interface::as_raw(self), core::mem::transmute(lpappletcfg)).ok() } pub unsafe fn CreateUI(&self, hwndparent: super::super::super::Foundation::HWND, lpimeappletui: *mut IMEAPPLETUI) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(lpimeappletui)).ok() + (windows_core::Interface::vtable(self).CreateUI)(windows_core::Interface::as_raw(self), hwndparent, core::mem::transmute(lpimeappletui)).ok() } pub unsafe fn Notify(&self, lpimepad: P0, notify: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpimepad.param().abi(), core::mem::transmute(notify), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpimepad.param().abi(), notify, wparam, lparam).ok() } } #[repr(C)] @@ -4286,7 +4286,7 @@ windows_core::imp::define_interface!(IImeSpecifyApplets, IImeSpecifyApplets_Vtbl windows_core::imp::interface_hierarchy!(IImeSpecifyApplets, windows_core::IUnknown); impl IImeSpecifyApplets { pub unsafe fn GetAppletIIDList(&self, refiid: *const windows_core::GUID, lpiidlist: *mut APPLETIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAppletIIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(refiid), core::mem::transmute(lpiidlist)).ok() + (windows_core::Interface::vtable(self).GetAppletIIDList)(windows_core::Interface::as_raw(self), refiid, core::mem::transmute(lpiidlist)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/mod.rs index 56820226c8..bd9ba03c7b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/mod.rs @@ -66,7 +66,7 @@ impl IInkD2DRenderer2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pd2d1devicecontext.param().abi(), pinkstrokeiterable.param().abi(), core::mem::transmute(highcontrastadjustment)).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pd2d1devicecontext.param().abi(), pinkstrokeiterable.param().abi(), highcontrastadjustment).ok() } } #[repr(C)] @@ -112,7 +112,7 @@ impl IInkDesktopHost { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateAndInitializeInkPresenter)(windows_core::Interface::as_raw(self), rootvisual.param().abi(), core::mem::transmute(width), core::mem::transmute(height), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAndInitializeInkPresenter)(windows_core::Interface::as_raw(self), rootvisual.param().abi(), width, height, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -201,7 +201,7 @@ impl IInkPresenterDesktop { (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() } pub unsafe fn SetSize(&self, width: f32, height: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(width), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), width, height).ok() } pub unsafe fn OnHighContrastChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnHighContrastChanged)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs index 4fe2e418d4..32ffd51ff5 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn ActivateKeyboardLayout(hkl: HKL, flags: ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn ActivateKeyboardLayout(hkl : HKL, flags : ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> HKL); - let result__ = ActivateKeyboardLayout(core::mem::transmute(hkl), core::mem::transmute(flags)); + let result__ = ActivateKeyboardLayout(hkl, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -12,12 +12,12 @@ pub unsafe fn BlockInput(fblockit: bool) -> windows_core::Result<()> { #[inline] pub unsafe fn DragDetect(hwnd: super::super::super::Foundation::HWND, pt: super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DragDetect(hwnd : super::super::super::Foundation:: HWND, pt : super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); - DragDetect(core::mem::transmute(hwnd), core::mem::transmute(pt)) + DragDetect(hwnd, core::mem::transmute(pt)) } #[inline] pub unsafe fn EnableWindow(hwnd: super::super::super::Foundation::HWND, benable: bool) -> super::super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EnableWindow(hwnd : super::super::super::Foundation:: HWND, benable : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - EnableWindow(core::mem::transmute(hwnd), benable.into()) + EnableWindow(hwnd, benable.into()) } #[inline] pub unsafe fn GetActiveWindow() -> super::super::super::Foundation::HWND { @@ -27,7 +27,7 @@ pub unsafe fn GetActiveWindow() -> super::super::super::Foundation::HWND { #[inline] pub unsafe fn GetAsyncKeyState(vkey: i32) -> i16 { windows_targets::link!("user32.dll" "system" fn GetAsyncKeyState(vkey : i32) -> i16); - GetAsyncKeyState(core::mem::transmute(vkey)) + GetAsyncKeyState(vkey) } #[inline] pub unsafe fn GetCapture() -> super::super::super::Foundation::HWND { @@ -52,22 +52,22 @@ pub unsafe fn GetKBCodePage() -> u32 { #[inline] pub unsafe fn GetKeyNameTextA(lparam: i32, lpstring: &mut [u8]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetKeyNameTextA(lparam : i32, lpstring : windows_core::PSTR, cchsize : i32) -> i32); - GetKeyNameTextA(core::mem::transmute(lparam), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetKeyNameTextA(lparam, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetKeyNameTextW(lparam: i32, lpstring: &mut [u16]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetKeyNameTextW(lparam : i32, lpstring : windows_core::PWSTR, cchsize : i32) -> i32); - GetKeyNameTextW(core::mem::transmute(lparam), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetKeyNameTextW(lparam, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetKeyState(nvirtkey: i32) -> i16 { windows_targets::link!("user32.dll" "system" fn GetKeyState(nvirtkey : i32) -> i16); - GetKeyState(core::mem::transmute(nvirtkey)) + GetKeyState(nvirtkey) } #[inline] pub unsafe fn GetKeyboardLayout(idthread: u32) -> HKL { windows_targets::link!("user32.dll" "system" fn GetKeyboardLayout(idthread : u32) -> HKL); - GetKeyboardLayout(core::mem::transmute(idthread)) + GetKeyboardLayout(idthread) } #[inline] pub unsafe fn GetKeyboardLayoutList(lplist: Option<&mut [HKL]>) -> i32 { @@ -92,7 +92,7 @@ pub unsafe fn GetKeyboardState(lpkeystate: &mut [u8; 256]) -> windows_core::Resu #[inline] pub unsafe fn GetKeyboardType(ntypeflag: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn GetKeyboardType(ntypeflag : i32) -> i32); - GetKeyboardType(core::mem::transmute(ntypeflag)) + GetKeyboardType(ntypeflag) } #[inline] pub unsafe fn GetLastInputInfo(plii: *mut LASTINPUTINFO) -> super::super::super::Foundation::BOOL { @@ -102,12 +102,12 @@ pub unsafe fn GetLastInputInfo(plii: *mut LASTINPUTINFO) -> super::super::super: #[inline] pub unsafe fn GetMouseMovePointsEx(cbsize: u32, lppt: *const MOUSEMOVEPOINT, lpptbuf: &mut [MOUSEMOVEPOINT], resolution: GET_MOUSE_MOVE_POINTS_EX_RESOLUTION) -> i32 { windows_targets::link!("user32.dll" "system" fn GetMouseMovePointsEx(cbsize : u32, lppt : *const MOUSEMOVEPOINT, lpptbuf : *mut MOUSEMOVEPOINT, nbufpoints : i32, resolution : GET_MOUSE_MOVE_POINTS_EX_RESOLUTION) -> i32); - GetMouseMovePointsEx(core::mem::transmute(cbsize), core::mem::transmute(lppt), core::mem::transmute(lpptbuf.as_ptr()), lpptbuf.len().try_into().unwrap(), core::mem::transmute(resolution)) + GetMouseMovePointsEx(cbsize, lppt, core::mem::transmute(lpptbuf.as_ptr()), lpptbuf.len().try_into().unwrap(), resolution) } #[inline] pub unsafe fn IsWindowEnabled(hwnd: super::super::super::Foundation::HWND) -> super::super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsWindowEnabled(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - IsWindowEnabled(core::mem::transmute(hwnd)) + IsWindowEnabled(hwnd) } #[inline] pub unsafe fn LoadKeyboardLayoutA(pwszklid: P0, flags: ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> windows_core::Result @@ -115,7 +115,7 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadKeyboardLayoutA(pwszklid : windows_core::PCSTR, flags : ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> HKL); - let result__ = LoadKeyboardLayoutA(pwszklid.param().abi(), core::mem::transmute(flags)); + let result__ = LoadKeyboardLayoutA(pwszklid.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -124,38 +124,38 @@ where P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadKeyboardLayoutW(pwszklid : windows_core::PCWSTR, flags : ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> HKL); - let result__ = LoadKeyboardLayoutW(pwszklid.param().abi(), core::mem::transmute(flags)); + let result__ = LoadKeyboardLayoutW(pwszklid.param().abi(), flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn MapVirtualKeyA(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE) -> u32 { windows_targets::link!("user32.dll" "system" fn MapVirtualKeyA(ucode : u32, umaptype : MAP_VIRTUAL_KEY_TYPE) -> u32); - MapVirtualKeyA(core::mem::transmute(ucode), core::mem::transmute(umaptype)) + MapVirtualKeyA(ucode, umaptype) } #[inline] pub unsafe fn MapVirtualKeyExA(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE, dwhkl: Option) -> u32 { windows_targets::link!("user32.dll" "system" fn MapVirtualKeyExA(ucode : u32, umaptype : MAP_VIRTUAL_KEY_TYPE, dwhkl : HKL) -> u32); - MapVirtualKeyExA(core::mem::transmute(ucode), core::mem::transmute(umaptype), core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) + MapVirtualKeyExA(ucode, umaptype, core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MapVirtualKeyExW(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE, dwhkl: Option) -> u32 { windows_targets::link!("user32.dll" "system" fn MapVirtualKeyExW(ucode : u32, umaptype : MAP_VIRTUAL_KEY_TYPE, dwhkl : HKL) -> u32); - MapVirtualKeyExW(core::mem::transmute(ucode), core::mem::transmute(umaptype), core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) + MapVirtualKeyExW(ucode, umaptype, core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn MapVirtualKeyW(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE) -> u32 { windows_targets::link!("user32.dll" "system" fn MapVirtualKeyW(ucode : u32, umaptype : MAP_VIRTUAL_KEY_TYPE) -> u32); - MapVirtualKeyW(core::mem::transmute(ucode), core::mem::transmute(umaptype)) + MapVirtualKeyW(ucode, umaptype) } #[inline] pub unsafe fn OemKeyScan(woemchar: u16) -> u32 { windows_targets::link!("user32.dll" "system" fn OemKeyScan(woemchar : u16) -> u32); - OemKeyScan(core::mem::transmute(woemchar)) + OemKeyScan(woemchar) } #[inline] pub unsafe fn RegisterHotKey(hwnd: Option, id: i32, fsmodifiers: HOT_KEY_MODIFIERS, vk: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RegisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32, fsmodifiers : HOT_KEY_MODIFIERS, vk : u32) -> super::super::super::Foundation:: BOOL); - RegisterHotKey(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id), core::mem::transmute(fsmodifiers), core::mem::transmute(vk)).ok() + RegisterHotKey(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), id, fsmodifiers, vk).ok() } #[inline] pub unsafe fn ReleaseCapture() -> windows_core::Result<()> { @@ -165,23 +165,23 @@ pub unsafe fn ReleaseCapture() -> windows_core::Result<()> { #[inline] pub unsafe fn SendInput(pinputs: &[INPUT], cbsize: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn SendInput(cinputs : u32, pinputs : *const INPUT, cbsize : i32) -> u32); - SendInput(pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), core::mem::transmute(cbsize)) + SendInput(pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), cbsize) } #[inline] pub unsafe fn SetActiveWindow(hwnd: super::super::super::Foundation::HWND) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn SetActiveWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - let result__ = SetActiveWindow(core::mem::transmute(hwnd)); + let result__ = SetActiveWindow(hwnd); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetCapture(hwnd: super::super::super::Foundation::HWND) -> super::super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn SetCapture(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - SetCapture(core::mem::transmute(hwnd)) + SetCapture(hwnd) } #[inline] pub unsafe fn SetDoubleClickTime(param0: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetDoubleClickTime(param0 : u32) -> super::super::super::Foundation:: BOOL); - SetDoubleClickTime(core::mem::transmute(param0)).ok() + SetDoubleClickTime(param0).ok() } #[inline] pub unsafe fn SetFocus(hwnd: Option) -> windows_core::Result { @@ -202,22 +202,22 @@ pub unsafe fn SwapMouseButton(fswap: bool) -> super::super::super::Foundation::B #[inline] pub unsafe fn ToAscii(uvirtkey: u32, uscancode: u32, lpkeystate: Option<&[u8; 256]>, lpchar: *mut u16, uflags: u32) -> i32 { windows_targets::link!("user32.dll" "system" fn ToAscii(uvirtkey : u32, uscancode : u32, lpkeystate : *const u8, lpchar : *mut u16, uflags : u32) -> i32); - ToAscii(core::mem::transmute(uvirtkey), core::mem::transmute(uscancode), core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpchar), core::mem::transmute(uflags)) + ToAscii(uvirtkey, uscancode, core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpchar), uflags) } #[inline] pub unsafe fn ToAsciiEx(uvirtkey: u32, uscancode: u32, lpkeystate: Option<&[u8; 256]>, lpchar: *mut u16, uflags: u32, dwhkl: Option) -> i32 { windows_targets::link!("user32.dll" "system" fn ToAsciiEx(uvirtkey : u32, uscancode : u32, lpkeystate : *const u8, lpchar : *mut u16, uflags : u32, dwhkl : HKL) -> i32); - ToAsciiEx(core::mem::transmute(uvirtkey), core::mem::transmute(uscancode), core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpchar), core::mem::transmute(uflags), core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) + ToAsciiEx(uvirtkey, uscancode, core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(lpchar), uflags, core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ToUnicode(wvirtkey: u32, wscancode: u32, lpkeystate: Option<&[u8; 256]>, pwszbuff: &mut [u16], wflags: u32) -> i32 { windows_targets::link!("user32.dll" "system" fn ToUnicode(wvirtkey : u32, wscancode : u32, lpkeystate : *const u8, pwszbuff : windows_core::PWSTR, cchbuff : i32, wflags : u32) -> i32); - ToUnicode(core::mem::transmute(wvirtkey), core::mem::transmute(wscancode), core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pwszbuff.as_ptr()), pwszbuff.len().try_into().unwrap(), core::mem::transmute(wflags)) + ToUnicode(wvirtkey, wscancode, core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(pwszbuff.as_ptr()), pwszbuff.len().try_into().unwrap(), wflags) } #[inline] pub unsafe fn ToUnicodeEx(wvirtkey: u32, wscancode: u32, lpkeystate: &[u8; 256], pwszbuff: &mut [u16], wflags: u32, dwhkl: Option) -> i32 { windows_targets::link!("user32.dll" "system" fn ToUnicodeEx(wvirtkey : u32, wscancode : u32, lpkeystate : *const u8, pwszbuff : windows_core::PWSTR, cchbuff : i32, wflags : u32, dwhkl : HKL) -> i32); - ToUnicodeEx(core::mem::transmute(wvirtkey), core::mem::transmute(wscancode), core::mem::transmute(lpkeystate.as_ptr()), core::mem::transmute(pwszbuff.as_ptr()), pwszbuff.len().try_into().unwrap(), core::mem::transmute(wflags), core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) + ToUnicodeEx(wvirtkey, wscancode, core::mem::transmute(lpkeystate.as_ptr()), core::mem::transmute(pwszbuff.as_ptr()), pwszbuff.len().try_into().unwrap(), wflags, core::mem::transmute(dwhkl.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> windows_core::Result<()> { @@ -227,32 +227,32 @@ pub unsafe fn TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> windows_cor #[inline] pub unsafe fn UnloadKeyboardLayout(hkl: HKL) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnloadKeyboardLayout(hkl : HKL) -> super::super::super::Foundation:: BOOL); - UnloadKeyboardLayout(core::mem::transmute(hkl)).ok() + UnloadKeyboardLayout(hkl).ok() } #[inline] pub unsafe fn UnregisterHotKey(hwnd: Option, id: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnregisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32) -> super::super::super::Foundation:: BOOL); - UnregisterHotKey(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(id)).ok() + UnregisterHotKey(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), id).ok() } #[inline] pub unsafe fn VkKeyScanA(ch: i8) -> i16 { windows_targets::link!("user32.dll" "system" fn VkKeyScanA(ch : i8) -> i16); - VkKeyScanA(core::mem::transmute(ch)) + VkKeyScanA(ch) } #[inline] pub unsafe fn VkKeyScanExA(ch: i8, dwhkl: HKL) -> i16 { windows_targets::link!("user32.dll" "system" fn VkKeyScanExA(ch : i8, dwhkl : HKL) -> i16); - VkKeyScanExA(core::mem::transmute(ch), core::mem::transmute(dwhkl)) + VkKeyScanExA(ch, dwhkl) } #[inline] pub unsafe fn VkKeyScanExW(ch: u16, dwhkl: HKL) -> i16 { windows_targets::link!("user32.dll" "system" fn VkKeyScanExW(ch : u16, dwhkl : HKL) -> i16); - VkKeyScanExW(core::mem::transmute(ch), core::mem::transmute(dwhkl)) + VkKeyScanExW(ch, dwhkl) } #[inline] pub unsafe fn VkKeyScanW(ch: u16) -> i16 { windows_targets::link!("user32.dll" "system" fn VkKeyScanW(ch : u16) -> i16); - VkKeyScanW(core::mem::transmute(ch)) + VkKeyScanW(ch) } #[inline] pub unsafe fn _TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> super::super::super::Foundation::BOOL { @@ -262,12 +262,12 @@ pub unsafe fn _TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> super::sup #[inline] pub unsafe fn keybd_event(bvk: u8, bscan: u8, dwflags: KEYBD_EVENT_FLAGS, dwextrainfo: usize) { windows_targets::link!("user32.dll" "system" fn keybd_event(bvk : u8, bscan : u8, dwflags : KEYBD_EVENT_FLAGS, dwextrainfo : usize)); - keybd_event(core::mem::transmute(bvk), core::mem::transmute(bscan), core::mem::transmute(dwflags), core::mem::transmute(dwextrainfo)) + keybd_event(bvk, bscan, dwflags, dwextrainfo) } #[inline] pub unsafe fn mouse_event(dwflags: MOUSE_EVENT_FLAGS, dx: i32, dy: i32, dwdata: i32, dwextrainfo: usize) { windows_targets::link!("user32.dll" "system" fn mouse_event(dwflags : MOUSE_EVENT_FLAGS, dx : i32, dy : i32, dwdata : i32, dwextrainfo : usize)); - mouse_event(core::mem::transmute(dwflags), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(dwdata), core::mem::transmute(dwextrainfo)) + mouse_event(dwflags, dx, dy, dwdata, dwextrainfo) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs index 4e5b072a24..cb90f69265 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs @@ -6,30 +6,30 @@ pub unsafe fn EnableMouseInPointer(fenable: bool) -> windows_core::Result<()> { #[inline] pub unsafe fn GetPointerCursorId(pointerid: u32, cursorid: *mut u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerCursorId(pointerid : u32, cursorid : *mut u32) -> super::super::super::Foundation:: BOOL); - GetPointerCursorId(core::mem::transmute(pointerid), core::mem::transmute(cursorid)).ok() + GetPointerCursorId(pointerid, core::mem::transmute(cursorid)).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn GetPointerDevice(device: super::super::super::Foundation::HANDLE, pointerdevice: *mut super::super::Controls::POINTER_DEVICE_INFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerDevice(device : super::super::super::Foundation:: HANDLE, pointerdevice : *mut super::super::Controls:: POINTER_DEVICE_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerDevice(core::mem::transmute(device), core::mem::transmute(pointerdevice)).ok() + GetPointerDevice(device, core::mem::transmute(pointerdevice)).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetPointerDeviceCursors(device: super::super::super::Foundation::HANDLE, cursorcount: *mut u32, devicecursors: Option<*mut super::super::Controls::POINTER_DEVICE_CURSOR_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerDeviceCursors(device : super::super::super::Foundation:: HANDLE, cursorcount : *mut u32, devicecursors : *mut super::super::Controls:: POINTER_DEVICE_CURSOR_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerDeviceCursors(core::mem::transmute(device), core::mem::transmute(cursorcount), core::mem::transmute(devicecursors.unwrap_or(core::mem::zeroed()))).ok() + GetPointerDeviceCursors(device, core::mem::transmute(cursorcount), core::mem::transmute(devicecursors.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetPointerDeviceProperties(device: super::super::super::Foundation::HANDLE, propertycount: *mut u32, pointerproperties: Option<*mut super::super::Controls::POINTER_DEVICE_PROPERTY>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerDeviceProperties(device : super::super::super::Foundation:: HANDLE, propertycount : *mut u32, pointerproperties : *mut super::super::Controls:: POINTER_DEVICE_PROPERTY) -> super::super::super::Foundation:: BOOL); - GetPointerDeviceProperties(core::mem::transmute(device), core::mem::transmute(propertycount), core::mem::transmute(pointerproperties.unwrap_or(core::mem::zeroed()))).ok() + GetPointerDeviceProperties(device, core::mem::transmute(propertycount), core::mem::transmute(pointerproperties.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetPointerDeviceRects(device: super::super::super::Foundation::HANDLE, pointerdevicerect: *mut super::super::super::Foundation::RECT, displayrect: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerDeviceRects(device : super::super::super::Foundation:: HANDLE, pointerdevicerect : *mut super::super::super::Foundation:: RECT, displayrect : *mut super::super::super::Foundation:: RECT) -> super::super::super::Foundation:: BOOL); - GetPointerDeviceRects(core::mem::transmute(device), core::mem::transmute(pointerdevicerect), core::mem::transmute(displayrect)).ok() + GetPointerDeviceRects(device, core::mem::transmute(pointerdevicerect), core::mem::transmute(displayrect)).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] #[inline] @@ -41,90 +41,90 @@ pub unsafe fn GetPointerDevices(devicecount: *mut u32, pointerdevices: Option<*m #[inline] pub unsafe fn GetPointerFrameInfo(pointerid: u32, pointercount: *mut u32, pointerinfo: Option<*mut POINTER_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerFrameInfo(pointerid : u32, pointercount : *mut u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerFrameInfo(core::mem::transmute(pointerid), core::mem::transmute(pointercount), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerFrameInfo(pointerid, core::mem::transmute(pointercount), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameInfoHistory(pointerid: u32, entriescount: *mut u32, pointercount: *mut u32, pointerinfo: Option<*mut POINTER_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerFrameInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerFrameInfoHistory(core::mem::transmute(pointerid), core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerFrameInfoHistory(pointerid, core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFramePenInfo(pointerid: u32, pointercount: *mut u32, peninfo: Option<*mut POINTER_PEN_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerFramePenInfo(pointerid : u32, pointercount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerFramePenInfo(core::mem::transmute(pointerid), core::mem::transmute(pointercount), core::mem::transmute(peninfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerFramePenInfo(pointerid, core::mem::transmute(pointercount), core::mem::transmute(peninfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFramePenInfoHistory(pointerid: u32, entriescount: *mut u32, pointercount: *mut u32, peninfo: Option<*mut POINTER_PEN_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerFramePenInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerFramePenInfoHistory(core::mem::transmute(pointerid), core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(peninfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerFramePenInfoHistory(pointerid, core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(peninfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameTouchInfo(pointerid: u32, pointercount: *mut u32, touchinfo: Option<*mut POINTER_TOUCH_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerFrameTouchInfo(pointerid : u32, pointercount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerFrameTouchInfo(core::mem::transmute(pointerid), core::mem::transmute(pointercount), core::mem::transmute(touchinfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerFrameTouchInfo(pointerid, core::mem::transmute(pointercount), core::mem::transmute(touchinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameTouchInfoHistory(pointerid: u32, entriescount: *mut u32, pointercount: *mut u32, touchinfo: Option<*mut POINTER_TOUCH_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerFrameTouchInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerFrameTouchInfoHistory(core::mem::transmute(pointerid), core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(touchinfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerFrameTouchInfoHistory(pointerid, core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(touchinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerInfo(pointerid: u32, pointerinfo: *mut POINTER_INFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerInfo(pointerid : u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerInfo(core::mem::transmute(pointerid), core::mem::transmute(pointerinfo)).ok() + GetPointerInfo(pointerid, core::mem::transmute(pointerinfo)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerInfoHistory(pointerid: u32, entriescount: *mut u32, pointerinfo: Option<*mut POINTER_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerInfoHistory(pointerid : u32, entriescount : *mut u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerInfoHistory(core::mem::transmute(pointerid), core::mem::transmute(entriescount), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerInfoHistory(pointerid, core::mem::transmute(entriescount), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetPointerInputTransform(pointerid: u32, inputtransform: &mut [INPUT_TRANSFORM]) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerInputTransform(pointerid : u32, historycount : u32, inputtransform : *mut INPUT_TRANSFORM) -> super::super::super::Foundation:: BOOL); - GetPointerInputTransform(core::mem::transmute(pointerid), inputtransform.len().try_into().unwrap(), core::mem::transmute(inputtransform.as_ptr())).ok() + GetPointerInputTransform(pointerid, inputtransform.len().try_into().unwrap(), core::mem::transmute(inputtransform.as_ptr())).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerPenInfo(pointerid: u32, peninfo: *mut POINTER_PEN_INFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerPenInfo(pointerid : u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerPenInfo(core::mem::transmute(pointerid), core::mem::transmute(peninfo)).ok() + GetPointerPenInfo(pointerid, core::mem::transmute(peninfo)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerPenInfoHistory(pointerid: u32, entriescount: *mut u32, peninfo: Option<*mut POINTER_PEN_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerPenInfoHistory(pointerid : u32, entriescount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerPenInfoHistory(core::mem::transmute(pointerid), core::mem::transmute(entriescount), core::mem::transmute(peninfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerPenInfoHistory(pointerid, core::mem::transmute(entriescount), core::mem::transmute(peninfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerTouchInfo(pointerid: u32, touchinfo: *mut POINTER_TOUCH_INFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerTouchInfo(pointerid : u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerTouchInfo(core::mem::transmute(pointerid), core::mem::transmute(touchinfo)).ok() + GetPointerTouchInfo(pointerid, core::mem::transmute(touchinfo)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerTouchInfoHistory(pointerid: u32, entriescount: *mut u32, touchinfo: Option<*mut POINTER_TOUCH_INFO>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerTouchInfoHistory(pointerid : u32, entriescount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); - GetPointerTouchInfoHistory(core::mem::transmute(pointerid), core::mem::transmute(entriescount), core::mem::transmute(touchinfo.unwrap_or(core::mem::zeroed()))).ok() + GetPointerTouchInfoHistory(pointerid, core::mem::transmute(entriescount), core::mem::transmute(touchinfo.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerType(pointerid: u32, pointertype: *mut super::super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetPointerType(pointerid : u32, pointertype : *mut super::super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::super::Foundation:: BOOL); - GetPointerType(core::mem::transmute(pointerid), core::mem::transmute(pointertype)).ok() + GetPointerType(pointerid, core::mem::transmute(pointertype)).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetRawPointerDeviceData(pointerid: u32, historycount: u32, pproperties: &[super::super::Controls::POINTER_DEVICE_PROPERTY], pvalues: *mut i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetRawPointerDeviceData(pointerid : u32, historycount : u32, propertiescount : u32, pproperties : *const super::super::Controls:: POINTER_DEVICE_PROPERTY, pvalues : *mut i32) -> super::super::super::Foundation:: BOOL); - GetRawPointerDeviceData(core::mem::transmute(pointerid), core::mem::transmute(historycount), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr()), core::mem::transmute(pvalues)).ok() + GetRawPointerDeviceData(pointerid, historycount, pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr()), core::mem::transmute(pvalues)).ok() } #[inline] pub unsafe fn GetUnpredictedMessagePos() -> u32 { @@ -134,13 +134,13 @@ pub unsafe fn GetUnpredictedMessagePos() -> u32 { #[inline] pub unsafe fn InitializeTouchInjection(maxcount: u32, dwmode: TOUCH_FEEDBACK_MODE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn InitializeTouchInjection(maxcount : u32, dwmode : TOUCH_FEEDBACK_MODE) -> super::super::super::Foundation:: BOOL); - InitializeTouchInjection(core::mem::transmute(maxcount), core::mem::transmute(dwmode)).ok() + InitializeTouchInjection(maxcount, dwmode).ok() } #[cfg(all(feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn InjectSyntheticPointerInput(device: super::super::Controls::HSYNTHETICPOINTERDEVICE, pointerinfo: &[super::super::Controls::POINTER_TYPE_INFO]) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn InjectSyntheticPointerInput(device : super::super::Controls:: HSYNTHETICPOINTERDEVICE, pointerinfo : *const super::super::Controls:: POINTER_TYPE_INFO, count : u32) -> super::super::super::Foundation:: BOOL); - InjectSyntheticPointerInput(core::mem::transmute(device), core::mem::transmute(pointerinfo.as_ptr()), pointerinfo.len().try_into().unwrap()).ok() + InjectSyntheticPointerInput(device, core::mem::transmute(pointerinfo.as_ptr()), pointerinfo.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -156,7 +156,7 @@ pub unsafe fn IsMouseInPointerEnabled() -> super::super::super::Foundation::BOOL #[inline] pub unsafe fn SkipPointerFrameMessages(pointerid: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SkipPointerFrameMessages(pointerid : u32) -> super::super::super::Foundation:: BOOL); - SkipPointerFrameMessages(core::mem::transmute(pointerid)).ok() + SkipPointerFrameMessages(pointerid).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/mod.rs index 61ace66b8f..e4f746a690 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/mod.rs @@ -6,7 +6,7 @@ impl IRadialControllerConfigurationInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -41,7 +41,7 @@ impl IRadialControllerIndependentInputSourceInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), hwnd, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -76,7 +76,7 @@ impl IRadialControllerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), hwnd, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs index b82e47e497..b581bb458b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs @@ -1,52 +1,52 @@ #[inline] pub unsafe fn CloseGestureInfoHandle(hgestureinfo: HGESTUREINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CloseGestureInfoHandle(hgestureinfo : HGESTUREINFO) -> super::super::super::Foundation:: BOOL); - CloseGestureInfoHandle(core::mem::transmute(hgestureinfo)).ok() + CloseGestureInfoHandle(hgestureinfo).ok() } #[inline] pub unsafe fn CloseTouchInputHandle(htouchinput: HTOUCHINPUT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CloseTouchInputHandle(htouchinput : HTOUCHINPUT) -> super::super::super::Foundation:: BOOL); - CloseTouchInputHandle(core::mem::transmute(htouchinput)).ok() + CloseTouchInputHandle(htouchinput).ok() } #[inline] pub unsafe fn GetGestureConfig(hwnd: super::super::super::Foundation::HWND, dwreserved: u32, dwflags: u32, pcids: *const u32, pgestureconfig: *mut GESTURECONFIG, cbsize: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetGestureConfig(hwnd : super::super::super::Foundation:: HWND, dwreserved : u32, dwflags : u32, pcids : *const u32, pgestureconfig : *mut GESTURECONFIG, cbsize : u32) -> super::super::super::Foundation:: BOOL); - GetGestureConfig(core::mem::transmute(hwnd), core::mem::transmute(dwreserved), core::mem::transmute(dwflags), core::mem::transmute(pcids), core::mem::transmute(pgestureconfig), core::mem::transmute(cbsize)).ok() + GetGestureConfig(hwnd, dwreserved, dwflags, pcids, core::mem::transmute(pgestureconfig), cbsize).ok() } #[inline] pub unsafe fn GetGestureExtraArgs(hgestureinfo: HGESTUREINFO, pextraargs: &mut [u8]) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetGestureExtraArgs(hgestureinfo : HGESTUREINFO, cbextraargs : u32, pextraargs : *mut u8) -> super::super::super::Foundation:: BOOL); - GetGestureExtraArgs(core::mem::transmute(hgestureinfo), pextraargs.len().try_into().unwrap(), core::mem::transmute(pextraargs.as_ptr())).ok() + GetGestureExtraArgs(hgestureinfo, pextraargs.len().try_into().unwrap(), core::mem::transmute(pextraargs.as_ptr())).ok() } #[inline] pub unsafe fn GetGestureInfo(hgestureinfo: HGESTUREINFO, pgestureinfo: *mut GESTUREINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetGestureInfo(hgestureinfo : HGESTUREINFO, pgestureinfo : *mut GESTUREINFO) -> super::super::super::Foundation:: BOOL); - GetGestureInfo(core::mem::transmute(hgestureinfo), core::mem::transmute(pgestureinfo)).ok() + GetGestureInfo(hgestureinfo, core::mem::transmute(pgestureinfo)).ok() } #[inline] pub unsafe fn GetTouchInputInfo(htouchinput: HTOUCHINPUT, pinputs: &mut [TOUCHINPUT], cbsize: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetTouchInputInfo(htouchinput : HTOUCHINPUT, cinputs : u32, pinputs : *mut TOUCHINPUT, cbsize : i32) -> super::super::super::Foundation:: BOOL); - GetTouchInputInfo(core::mem::transmute(htouchinput), pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), core::mem::transmute(cbsize)).ok() + GetTouchInputInfo(htouchinput, pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), cbsize).ok() } #[inline] pub unsafe fn IsTouchWindow(hwnd: super::super::super::Foundation::HWND, pulflags: Option<*mut u32>) -> super::super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsTouchWindow(hwnd : super::super::super::Foundation:: HWND, pulflags : *mut u32) -> super::super::super::Foundation:: BOOL); - IsTouchWindow(core::mem::transmute(hwnd), core::mem::transmute(pulflags.unwrap_or(core::mem::zeroed()))) + IsTouchWindow(hwnd, core::mem::transmute(pulflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn RegisterTouchWindow(hwnd: super::super::super::Foundation::HWND, ulflags: REGISTER_TOUCH_WINDOW_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RegisterTouchWindow(hwnd : super::super::super::Foundation:: HWND, ulflags : REGISTER_TOUCH_WINDOW_FLAGS) -> super::super::super::Foundation:: BOOL); - RegisterTouchWindow(core::mem::transmute(hwnd), core::mem::transmute(ulflags)).ok() + RegisterTouchWindow(hwnd, ulflags).ok() } #[inline] pub unsafe fn SetGestureConfig(hwnd: super::super::super::Foundation::HWND, dwreserved: u32, pgestureconfig: &[GESTURECONFIG], cbsize: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetGestureConfig(hwnd : super::super::super::Foundation:: HWND, dwreserved : u32, cids : u32, pgestureconfig : *const GESTURECONFIG, cbsize : u32) -> super::super::super::Foundation:: BOOL); - SetGestureConfig(core::mem::transmute(hwnd), core::mem::transmute(dwreserved), pgestureconfig.len().try_into().unwrap(), core::mem::transmute(pgestureconfig.as_ptr()), core::mem::transmute(cbsize)).ok() + SetGestureConfig(hwnd, dwreserved, pgestureconfig.len().try_into().unwrap(), core::mem::transmute(pgestureconfig.as_ptr()), cbsize).ok() } #[inline] pub unsafe fn UnregisterTouchWindow(hwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnregisterTouchWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - UnregisterTouchWindow(core::mem::transmute(hwnd)).ok() + UnregisterTouchWindow(hwnd).ok() } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -188,154 +188,154 @@ impl IInertiaProcessor { (windows_core::Interface::vtable(self).InitialOriginX)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialOriginX(&self, x: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialOriginX)(windows_core::Interface::as_raw(self), core::mem::transmute(x)).ok() + (windows_core::Interface::vtable(self).SetInitialOriginX)(windows_core::Interface::as_raw(self), x).ok() } pub unsafe fn InitialOriginY(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialOriginY)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialOriginY(&self, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialOriginY)(windows_core::Interface::as_raw(self), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).SetInitialOriginY)(windows_core::Interface::as_raw(self), y).ok() } pub unsafe fn InitialVelocityX(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialVelocityX)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialVelocityX(&self, x: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialVelocityX)(windows_core::Interface::as_raw(self), core::mem::transmute(x)).ok() + (windows_core::Interface::vtable(self).SetInitialVelocityX)(windows_core::Interface::as_raw(self), x).ok() } pub unsafe fn InitialVelocityY(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialVelocityY)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialVelocityY(&self, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialVelocityY)(windows_core::Interface::as_raw(self), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).SetInitialVelocityY)(windows_core::Interface::as_raw(self), y).ok() } pub unsafe fn InitialAngularVelocity(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialAngularVelocity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialAngularVelocity(&self, velocity: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialAngularVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(velocity)).ok() + (windows_core::Interface::vtable(self).SetInitialAngularVelocity)(windows_core::Interface::as_raw(self), velocity).ok() } pub unsafe fn InitialExpansionVelocity(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialExpansionVelocity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialExpansionVelocity(&self, velocity: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialExpansionVelocity)(windows_core::Interface::as_raw(self), core::mem::transmute(velocity)).ok() + (windows_core::Interface::vtable(self).SetInitialExpansionVelocity)(windows_core::Interface::as_raw(self), velocity).ok() } pub unsafe fn InitialRadius(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialRadius)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialRadius(&self, radius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialRadius)(windows_core::Interface::as_raw(self), core::mem::transmute(radius)).ok() + (windows_core::Interface::vtable(self).SetInitialRadius)(windows_core::Interface::as_raw(self), radius).ok() } pub unsafe fn BoundaryLeft(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BoundaryLeft)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBoundaryLeft(&self, left: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoundaryLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(left)).ok() + (windows_core::Interface::vtable(self).SetBoundaryLeft)(windows_core::Interface::as_raw(self), left).ok() } pub unsafe fn BoundaryTop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BoundaryTop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBoundaryTop(&self, top: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoundaryTop)(windows_core::Interface::as_raw(self), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).SetBoundaryTop)(windows_core::Interface::as_raw(self), top).ok() } pub unsafe fn BoundaryRight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BoundaryRight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBoundaryRight(&self, right: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoundaryRight)(windows_core::Interface::as_raw(self), core::mem::transmute(right)).ok() + (windows_core::Interface::vtable(self).SetBoundaryRight)(windows_core::Interface::as_raw(self), right).ok() } pub unsafe fn BoundaryBottom(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BoundaryBottom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBoundaryBottom(&self, bottom: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBoundaryBottom)(windows_core::Interface::as_raw(self), core::mem::transmute(bottom)).ok() + (windows_core::Interface::vtable(self).SetBoundaryBottom)(windows_core::Interface::as_raw(self), bottom).ok() } pub unsafe fn ElasticMarginLeft(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ElasticMarginLeft)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetElasticMarginLeft(&self, left: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetElasticMarginLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(left)).ok() + (windows_core::Interface::vtable(self).SetElasticMarginLeft)(windows_core::Interface::as_raw(self), left).ok() } pub unsafe fn ElasticMarginTop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ElasticMarginTop)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetElasticMarginTop(&self, top: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetElasticMarginTop)(windows_core::Interface::as_raw(self), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).SetElasticMarginTop)(windows_core::Interface::as_raw(self), top).ok() } pub unsafe fn ElasticMarginRight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ElasticMarginRight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetElasticMarginRight(&self, right: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetElasticMarginRight)(windows_core::Interface::as_raw(self), core::mem::transmute(right)).ok() + (windows_core::Interface::vtable(self).SetElasticMarginRight)(windows_core::Interface::as_raw(self), right).ok() } pub unsafe fn ElasticMarginBottom(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ElasticMarginBottom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetElasticMarginBottom(&self, bottom: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetElasticMarginBottom)(windows_core::Interface::as_raw(self), core::mem::transmute(bottom)).ok() + (windows_core::Interface::vtable(self).SetElasticMarginBottom)(windows_core::Interface::as_raw(self), bottom).ok() } pub unsafe fn DesiredDisplacement(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredDisplacement)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredDisplacement(&self, displacement: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredDisplacement)(windows_core::Interface::as_raw(self), core::mem::transmute(displacement)).ok() + (windows_core::Interface::vtable(self).SetDesiredDisplacement)(windows_core::Interface::as_raw(self), displacement).ok() } pub unsafe fn DesiredRotation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredRotation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredRotation(&self, rotation: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(rotation)).ok() + (windows_core::Interface::vtable(self).SetDesiredRotation)(windows_core::Interface::as_raw(self), rotation).ok() } pub unsafe fn DesiredExpansion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredExpansion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredExpansion(&self, expansion: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredExpansion)(windows_core::Interface::as_raw(self), core::mem::transmute(expansion)).ok() + (windows_core::Interface::vtable(self).SetDesiredExpansion)(windows_core::Interface::as_raw(self), expansion).ok() } pub unsafe fn DesiredDeceleration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredDeceleration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredDeceleration(&self, deceleration: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredDeceleration)(windows_core::Interface::as_raw(self), core::mem::transmute(deceleration)).ok() + (windows_core::Interface::vtable(self).SetDesiredDeceleration)(windows_core::Interface::as_raw(self), deceleration).ok() } pub unsafe fn DesiredAngularDeceleration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredAngularDeceleration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredAngularDeceleration(&self, deceleration: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredAngularDeceleration)(windows_core::Interface::as_raw(self), core::mem::transmute(deceleration)).ok() + (windows_core::Interface::vtable(self).SetDesiredAngularDeceleration)(windows_core::Interface::as_raw(self), deceleration).ok() } pub unsafe fn DesiredExpansionDeceleration(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DesiredExpansionDeceleration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDesiredExpansionDeceleration(&self, deceleration: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDesiredExpansionDeceleration)(windows_core::Interface::as_raw(self), core::mem::transmute(deceleration)).ok() + (windows_core::Interface::vtable(self).SetDesiredExpansionDeceleration)(windows_core::Interface::as_raw(self), deceleration).ok() } pub unsafe fn InitialTimestamp(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InitialTimestamp)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInitialTimestamp(&self, timestamp: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialTimestamp)(windows_core::Interface::as_raw(self), core::mem::transmute(timestamp)).ok() + (windows_core::Interface::vtable(self).SetInitialTimestamp)(windows_core::Interface::as_raw(self), timestamp).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -346,13 +346,13 @@ impl IInertiaProcessor { } pub unsafe fn ProcessTime(&self, timestamp: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProcessTime)(windows_core::Interface::as_raw(self), core::mem::transmute(timestamp), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProcessTime)(windows_core::Interface::as_raw(self), timestamp, &mut result__).map(|| result__) } pub unsafe fn Complete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Complete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CompleteTime(&self, timestamp: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompleteTime)(windows_core::Interface::as_raw(self), core::mem::transmute(timestamp)).ok() + (windows_core::Interface::vtable(self).CompleteTime)(windows_core::Interface::as_raw(self), timestamp).ok() } } #[repr(C)] @@ -867,49 +867,49 @@ impl IManipulationProcessor { (windows_core::Interface::vtable(self).SupportedManipulations)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSupportedManipulations(&self, manipulations: MANIPULATION_PROCESSOR_MANIPULATIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportedManipulations)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulations)).ok() + (windows_core::Interface::vtable(self).SetSupportedManipulations)(windows_core::Interface::as_raw(self), manipulations).ok() } pub unsafe fn PivotPointX(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PivotPointX)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPivotPointX(&self, pivotpointx: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPivotPointX)(windows_core::Interface::as_raw(self), core::mem::transmute(pivotpointx)).ok() + (windows_core::Interface::vtable(self).SetPivotPointX)(windows_core::Interface::as_raw(self), pivotpointx).ok() } pub unsafe fn PivotPointY(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PivotPointY)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPivotPointY(&self, pivotpointy: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPivotPointY)(windows_core::Interface::as_raw(self), core::mem::transmute(pivotpointy)).ok() + (windows_core::Interface::vtable(self).SetPivotPointY)(windows_core::Interface::as_raw(self), pivotpointy).ok() } pub unsafe fn PivotRadius(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PivotRadius)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPivotRadius(&self, pivotradius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPivotRadius)(windows_core::Interface::as_raw(self), core::mem::transmute(pivotradius)).ok() + (windows_core::Interface::vtable(self).SetPivotRadius)(windows_core::Interface::as_raw(self), pivotradius).ok() } pub unsafe fn CompleteManipulation(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CompleteManipulation)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ProcessDown(&self, manipulatorid: u32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessDown)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulatorid), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).ProcessDown)(windows_core::Interface::as_raw(self), manipulatorid, x, y).ok() } pub unsafe fn ProcessMove(&self, manipulatorid: u32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessMove)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulatorid), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).ProcessMove)(windows_core::Interface::as_raw(self), manipulatorid, x, y).ok() } pub unsafe fn ProcessUp(&self, manipulatorid: u32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessUp)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulatorid), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).ProcessUp)(windows_core::Interface::as_raw(self), manipulatorid, x, y).ok() } pub unsafe fn ProcessDownWithTime(&self, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessDownWithTime)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulatorid), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(timestamp)).ok() + (windows_core::Interface::vtable(self).ProcessDownWithTime)(windows_core::Interface::as_raw(self), manipulatorid, x, y, timestamp).ok() } pub unsafe fn ProcessMoveWithTime(&self, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessMoveWithTime)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulatorid), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(timestamp)).ok() + (windows_core::Interface::vtable(self).ProcessMoveWithTime)(windows_core::Interface::as_raw(self), manipulatorid, x, y, timestamp).ok() } pub unsafe fn ProcessUpWithTime(&self, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessUpWithTime)(windows_core::Interface::as_raw(self), core::mem::transmute(manipulatorid), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(timestamp)).ok() + (windows_core::Interface::vtable(self).ProcessUpWithTime)(windows_core::Interface::as_raw(self), manipulatorid, x, y, timestamp).ok() } pub unsafe fn GetVelocityX(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -932,7 +932,7 @@ impl IManipulationProcessor { (windows_core::Interface::vtable(self).MinimumScaleRotateRadius)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMinimumScaleRotateRadius(&self, minradius: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMinimumScaleRotateRadius)(windows_core::Interface::as_raw(self), core::mem::transmute(minradius)).ok() + (windows_core::Interface::vtable(self).SetMinimumScaleRotateRadius)(windows_core::Interface::as_raw(self), minradius).ok() } } #[repr(C)] @@ -1308,28 +1308,13 @@ windows_core::imp::define_interface!(_IManipulationEvents, _IManipulationEvents_ windows_core::imp::interface_hierarchy!(_IManipulationEvents, windows_core::IUnknown); impl _IManipulationEvents { pub unsafe fn ManipulationStarted(&self, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ManipulationStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).ManipulationStarted)(windows_core::Interface::as_raw(self), x, y).ok() } pub unsafe 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<()> { - (windows_core::Interface::vtable(self).ManipulationDelta)( - windows_core::Interface::as_raw(self), - core::mem::transmute(x), - core::mem::transmute(y), - core::mem::transmute(translationdeltax), - core::mem::transmute(translationdeltay), - core::mem::transmute(scaledelta), - core::mem::transmute(expansiondelta), - core::mem::transmute(rotationdelta), - core::mem::transmute(cumulativetranslationx), - core::mem::transmute(cumulativetranslationy), - core::mem::transmute(cumulativescale), - core::mem::transmute(cumulativeexpansion), - core::mem::transmute(cumulativerotation), - ) - .ok() + (windows_core::Interface::vtable(self).ManipulationDelta)(windows_core::Interface::as_raw(self), x, y, translationdeltax, translationdeltay, scaledelta, expansiondelta, rotationdelta, cumulativetranslationx, cumulativetranslationy, cumulativescale, cumulativeexpansion, cumulativerotation).ok() } pub unsafe fn ManipulationCompleted(&self, x: f32, y: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ManipulationCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cumulativetranslationx), core::mem::transmute(cumulativetranslationy), core::mem::transmute(cumulativescale), core::mem::transmute(cumulativeexpansion), core::mem::transmute(cumulativerotation)).ok() + (windows_core::Interface::vtable(self).ManipulationCompleted)(windows_core::Interface::as_raw(self), x, y, cumulativetranslationx, cumulativetranslationy, cumulativescale, cumulativeexpansion, cumulativerotation).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs index 5f80e01c4f..22814c894d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs @@ -6,32 +6,32 @@ pub unsafe fn XInputEnable(enable: bool) { #[inline] pub unsafe fn XInputGetAudioDeviceIds(dwuserindex: u32, prenderdeviceid: Option, prendercount: Option<*mut u32>, pcapturedeviceid: Option, pcapturecount: Option<*mut u32>) -> u32 { windows_targets::link!("xinput1_4.dll" "system" fn XInputGetAudioDeviceIds(dwuserindex : u32, prenderdeviceid : windows_core::PWSTR, prendercount : *mut u32, pcapturedeviceid : windows_core::PWSTR, pcapturecount : *mut u32) -> u32); - XInputGetAudioDeviceIds(core::mem::transmute(dwuserindex), core::mem::transmute(prenderdeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(prendercount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcapturedeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcapturecount.unwrap_or(core::mem::zeroed()))) + XInputGetAudioDeviceIds(dwuserindex, core::mem::transmute(prenderdeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(prendercount.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcapturedeviceid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcapturecount.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn XInputGetBatteryInformation(dwuserindex: u32, devtype: BATTERY_DEVTYPE, pbatteryinformation: *mut XINPUT_BATTERY_INFORMATION) -> u32 { windows_targets::link!("xinput1_4.dll" "system" fn XInputGetBatteryInformation(dwuserindex : u32, devtype : BATTERY_DEVTYPE, pbatteryinformation : *mut XINPUT_BATTERY_INFORMATION) -> u32); - XInputGetBatteryInformation(core::mem::transmute(dwuserindex), core::mem::transmute(devtype), core::mem::transmute(pbatteryinformation)) + XInputGetBatteryInformation(dwuserindex, devtype, core::mem::transmute(pbatteryinformation)) } #[inline] pub unsafe fn XInputGetCapabilities(dwuserindex: u32, dwflags: XINPUT_FLAG, pcapabilities: *mut XINPUT_CAPABILITIES) -> u32 { windows_targets::link!("xinput1_4.dll" "system" fn XInputGetCapabilities(dwuserindex : u32, dwflags : XINPUT_FLAG, pcapabilities : *mut XINPUT_CAPABILITIES) -> u32); - XInputGetCapabilities(core::mem::transmute(dwuserindex), core::mem::transmute(dwflags), core::mem::transmute(pcapabilities)) + XInputGetCapabilities(dwuserindex, dwflags, core::mem::transmute(pcapabilities)) } #[inline] pub unsafe fn XInputGetKeystroke(dwuserindex: u32, dwreserved: Option, pkeystroke: *mut XINPUT_KEYSTROKE) -> u32 { windows_targets::link!("xinput1_4.dll" "system" fn XInputGetKeystroke(dwuserindex : u32, dwreserved : u32, pkeystroke : *mut XINPUT_KEYSTROKE) -> u32); - XInputGetKeystroke(core::mem::transmute(dwuserindex), core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pkeystroke)) + XInputGetKeystroke(dwuserindex, core::mem::transmute(dwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pkeystroke)) } #[inline] pub unsafe fn XInputGetState(dwuserindex: u32, pstate: *mut XINPUT_STATE) -> u32 { windows_targets::link!("xinput1_4.dll" "system" fn XInputGetState(dwuserindex : u32, pstate : *mut XINPUT_STATE) -> u32); - XInputGetState(core::mem::transmute(dwuserindex), core::mem::transmute(pstate)) + XInputGetState(dwuserindex, core::mem::transmute(pstate)) } #[inline] pub unsafe fn XInputSetState(dwuserindex: u32, pvibration: *const XINPUT_VIBRATION) -> u32 { windows_targets::link!("xinput1_4.dll" "system" fn XInputSetState(dwuserindex : u32, pvibration : *const XINPUT_VIBRATION) -> u32); - XInputSetState(core::mem::transmute(dwuserindex), core::mem::transmute(pvibration)) + XInputSetState(dwuserindex, pvibration) } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs index 0eba1dc32c..336a7fb508 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs @@ -15,7 +15,7 @@ pub mod XboxController; #[inline] pub unsafe fn DefRawInputProc(parawinput: &[*const RAWINPUT], cbsizeheader: u32) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefRawInputProc(parawinput : *const *const RAWINPUT, ninput : i32, cbsizeheader : u32) -> super::super::Foundation:: LRESULT); - DefRawInputProc(core::mem::transmute(parawinput.as_ptr()), parawinput.len().try_into().unwrap(), core::mem::transmute(cbsizeheader)) + DefRawInputProc(core::mem::transmute(parawinput.as_ptr()), parawinput.len().try_into().unwrap(), cbsizeheader) } #[inline] pub unsafe fn GetCIMSSM(inputmessagesource: *mut INPUT_MESSAGE_SOURCE) -> super::super::Foundation::BOOL { @@ -30,37 +30,37 @@ pub unsafe fn GetCurrentInputMessageSource(inputmessagesource: *mut INPUT_MESSAG #[inline] pub unsafe fn GetRawInputBuffer(pdata: Option<*mut RAWINPUT>, pcbsize: *mut u32, cbsizeheader: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetRawInputBuffer(pdata : *mut RAWINPUT, pcbsize : *mut u32, cbsizeheader : u32) -> u32); - GetRawInputBuffer(core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize), core::mem::transmute(cbsizeheader)) + GetRawInputBuffer(core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize), cbsizeheader) } #[inline] pub unsafe fn GetRawInputData(hrawinput: HRAWINPUT, uicommand: RAW_INPUT_DATA_COMMAND_FLAGS, pdata: Option<*mut core::ffi::c_void>, pcbsize: *mut u32, cbsizeheader: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetRawInputData(hrawinput : HRAWINPUT, uicommand : RAW_INPUT_DATA_COMMAND_FLAGS, pdata : *mut core::ffi::c_void, pcbsize : *mut u32, cbsizeheader : u32) -> u32); - GetRawInputData(core::mem::transmute(hrawinput), core::mem::transmute(uicommand), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize), core::mem::transmute(cbsizeheader)) + GetRawInputData(hrawinput, uicommand, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize), cbsizeheader) } #[inline] pub unsafe fn GetRawInputDeviceInfoA(hdevice: Option, uicommand: RAW_INPUT_DEVICE_INFO_COMMAND, pdata: Option<*mut core::ffi::c_void>, pcbsize: *mut u32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetRawInputDeviceInfoA(hdevice : super::super::Foundation:: HANDLE, uicommand : RAW_INPUT_DEVICE_INFO_COMMAND, pdata : *mut core::ffi::c_void, pcbsize : *mut u32) -> u32); - GetRawInputDeviceInfoA(core::mem::transmute(hdevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(uicommand), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) + GetRawInputDeviceInfoA(core::mem::transmute(hdevice.unwrap_or(core::mem::zeroed())), uicommand, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) } #[inline] pub unsafe fn GetRawInputDeviceInfoW(hdevice: Option, uicommand: RAW_INPUT_DEVICE_INFO_COMMAND, pdata: Option<*mut core::ffi::c_void>, pcbsize: *mut u32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetRawInputDeviceInfoW(hdevice : super::super::Foundation:: HANDLE, uicommand : RAW_INPUT_DEVICE_INFO_COMMAND, pdata : *mut core::ffi::c_void, pcbsize : *mut u32) -> u32); - GetRawInputDeviceInfoW(core::mem::transmute(hdevice.unwrap_or(core::mem::zeroed())), core::mem::transmute(uicommand), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) + GetRawInputDeviceInfoW(core::mem::transmute(hdevice.unwrap_or(core::mem::zeroed())), uicommand, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbsize)) } #[inline] pub unsafe fn GetRawInputDeviceList(prawinputdevicelist: Option<*mut RAWINPUTDEVICELIST>, puinumdevices: *mut u32, cbsize: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetRawInputDeviceList(prawinputdevicelist : *mut RAWINPUTDEVICELIST, puinumdevices : *mut u32, cbsize : u32) -> u32); - GetRawInputDeviceList(core::mem::transmute(prawinputdevicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(puinumdevices), core::mem::transmute(cbsize)) + GetRawInputDeviceList(core::mem::transmute(prawinputdevicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(puinumdevices), cbsize) } #[inline] pub unsafe fn GetRegisteredRawInputDevices(prawinputdevices: Option<*mut RAWINPUTDEVICE>, puinumdevices: *mut u32, cbsize: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetRegisteredRawInputDevices(prawinputdevices : *mut RAWINPUTDEVICE, puinumdevices : *mut u32, cbsize : u32) -> u32); - GetRegisteredRawInputDevices(core::mem::transmute(prawinputdevices.unwrap_or(core::mem::zeroed())), core::mem::transmute(puinumdevices), core::mem::transmute(cbsize)) + GetRegisteredRawInputDevices(core::mem::transmute(prawinputdevices.unwrap_or(core::mem::zeroed())), core::mem::transmute(puinumdevices), cbsize) } #[inline] pub unsafe fn RegisterRawInputDevices(prawinputdevices: &[RAWINPUTDEVICE], cbsize: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RegisterRawInputDevices(prawinputdevices : *const RAWINPUTDEVICE, uinumdevices : u32, cbsize : u32) -> super::super::Foundation:: BOOL); - RegisterRawInputDevices(core::mem::transmute(prawinputdevices.as_ptr()), prawinputdevices.len().try_into().unwrap(), core::mem::transmute(cbsize)).ok() + RegisterRawInputDevices(core::mem::transmute(prawinputdevices.as_ptr()), prawinputdevices.len().try_into().unwrap(), cbsize).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs index 235678aa8b..747eba949f 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs @@ -1,13 +1,13 @@ #[inline] pub unsafe fn AddPointerInteractionContext(interactioncontext: HINTERACTIONCONTEXT, pointerid: u32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn AddPointerInteractionContext(interactioncontext : HINTERACTIONCONTEXT, pointerid : u32) -> windows_core::HRESULT); - AddPointerInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(pointerid)).ok() + AddPointerInteractionContext(interactioncontext, pointerid).ok() } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn BufferPointerPacketsInteractionContext(interactioncontext: HINTERACTIONCONTEXT, pointerinfo: &[super::Input::Pointer::POINTER_INFO]) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn BufferPointerPacketsInteractionContext(interactioncontext : HINTERACTIONCONTEXT, entriescount : u32, pointerinfo : *const super::Input::Pointer:: POINTER_INFO) -> windows_core::HRESULT); - BufferPointerPacketsInteractionContext(core::mem::transmute(interactioncontext), pointerinfo.len().try_into().unwrap(), core::mem::transmute(pointerinfo.as_ptr())).ok() + BufferPointerPacketsInteractionContext(interactioncontext, pointerinfo.len().try_into().unwrap(), core::mem::transmute(pointerinfo.as_ptr())).ok() } #[inline] pub unsafe fn CreateInteractionContext() -> windows_core::Result { @@ -18,149 +18,149 @@ pub unsafe fn CreateInteractionContext() -> windows_core::Result windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn DestroyInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - DestroyInteractionContext(core::mem::transmute(interactioncontext)).ok() + DestroyInteractionContext(interactioncontext).ok() } #[inline] pub unsafe fn GetCrossSlideParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, threshold: CROSS_SLIDE_THRESHOLD) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetCrossSlideParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, threshold : CROSS_SLIDE_THRESHOLD, distance : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetCrossSlideParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(threshold), &mut result__).map(|| core::mem::transmute(result__)) + GetCrossSlideParameterInteractionContext(interactioncontext, threshold, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetHoldParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: HOLD_PARAMETER) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetHoldParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : HOLD_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetHoldParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), &mut result__).map(|| core::mem::transmute(result__)) + GetHoldParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetInertiaParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, inertiaparameter: INERTIA_PARAMETER) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetInertiaParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, inertiaparameter : INERTIA_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetInertiaParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(inertiaparameter), &mut result__).map(|| core::mem::transmute(result__)) + GetInertiaParameterInteractionContext(interactioncontext, inertiaparameter, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetInteractionConfigurationInteractionContext(interactioncontext: HINTERACTIONCONTEXT, configuration: &mut [INTERACTION_CONTEXT_CONFIGURATION]) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn GetInteractionConfigurationInteractionContext(interactioncontext : HINTERACTIONCONTEXT, configurationcount : u32, configuration : *mut INTERACTION_CONTEXT_CONFIGURATION) -> windows_core::HRESULT); - GetInteractionConfigurationInteractionContext(core::mem::transmute(interactioncontext), configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() + GetInteractionConfigurationInteractionContext(interactioncontext, configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() } #[inline] pub unsafe fn GetMouseWheelParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: MOUSE_WHEEL_PARAMETER) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetMouseWheelParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : MOUSE_WHEEL_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetMouseWheelParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), &mut result__).map(|| core::mem::transmute(result__)) + GetMouseWheelParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetPropertyInteractionContext(interactioncontext: HINTERACTIONCONTEXT, contextproperty: INTERACTION_CONTEXT_PROPERTY) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetPropertyInteractionContext(interactioncontext : HINTERACTIONCONTEXT, contextproperty : INTERACTION_CONTEXT_PROPERTY, value : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetPropertyInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(contextproperty), &mut result__).map(|| core::mem::transmute(result__)) + GetPropertyInteractionContext(interactioncontext, contextproperty, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn GetStateInteractionContext(interactioncontext: HINTERACTIONCONTEXT, pointerinfo: Option<*const super::Input::Pointer::POINTER_INFO>) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetStateInteractionContext(interactioncontext : HINTERACTIONCONTEXT, pointerinfo : *const super::Input::Pointer:: POINTER_INFO, state : *mut INTERACTION_STATE) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetStateInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + GetStateInteractionContext(interactioncontext, core::mem::transmute(pointerinfo.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetTapParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: TAP_PARAMETER) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetTapParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TAP_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetTapParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), &mut result__).map(|| core::mem::transmute(result__)) + GetTapParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetTranslationParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: TRANSLATION_PARAMETER) -> windows_core::Result { windows_targets::link!("ninput.dll" "system" fn GetTranslationParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TRANSLATION_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetTranslationParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), &mut result__).map(|| core::mem::transmute(result__)) + GetTranslationParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn ProcessBufferedPacketsInteractionContext(interactioncontext: HINTERACTIONCONTEXT) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn ProcessBufferedPacketsInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - ProcessBufferedPacketsInteractionContext(core::mem::transmute(interactioncontext)).ok() + ProcessBufferedPacketsInteractionContext(interactioncontext).ok() } #[inline] pub unsafe fn ProcessInertiaInteractionContext(interactioncontext: HINTERACTIONCONTEXT) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn ProcessInertiaInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - ProcessInertiaInteractionContext(core::mem::transmute(interactioncontext)).ok() + ProcessInertiaInteractionContext(interactioncontext).ok() } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ProcessPointerFramesInteractionContext(interactioncontext: HINTERACTIONCONTEXT, entriescount: u32, pointercount: u32, pointerinfo: *const super::Input::Pointer::POINTER_INFO) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn ProcessPointerFramesInteractionContext(interactioncontext : HINTERACTIONCONTEXT, entriescount : u32, pointercount : u32, pointerinfo : *const super::Input::Pointer:: POINTER_INFO) -> windows_core::HRESULT); - ProcessPointerFramesInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(entriescount), core::mem::transmute(pointercount), core::mem::transmute(pointerinfo)).ok() + ProcessPointerFramesInteractionContext(interactioncontext, entriescount, pointercount, pointerinfo).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterOutputCallbackInteractionContext(interactioncontext: HINTERACTIONCONTEXT, outputcallback: INTERACTION_CONTEXT_OUTPUT_CALLBACK, clientdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn RegisterOutputCallbackInteractionContext(interactioncontext : HINTERACTIONCONTEXT, outputcallback : INTERACTION_CONTEXT_OUTPUT_CALLBACK, clientdata : *const core::ffi::c_void) -> windows_core::HRESULT); - RegisterOutputCallbackInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(outputcallback), core::mem::transmute(clientdata.unwrap_or(core::mem::zeroed()))).ok() + RegisterOutputCallbackInteractionContext(interactioncontext, outputcallback, core::mem::transmute(clientdata.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterOutputCallbackInteractionContext2(interactioncontext: HINTERACTIONCONTEXT, outputcallback: INTERACTION_CONTEXT_OUTPUT_CALLBACK2, clientdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn RegisterOutputCallbackInteractionContext2(interactioncontext : HINTERACTIONCONTEXT, outputcallback : INTERACTION_CONTEXT_OUTPUT_CALLBACK2, clientdata : *const core::ffi::c_void) -> windows_core::HRESULT); - RegisterOutputCallbackInteractionContext2(core::mem::transmute(interactioncontext), core::mem::transmute(outputcallback), core::mem::transmute(clientdata.unwrap_or(core::mem::zeroed()))).ok() + RegisterOutputCallbackInteractionContext2(interactioncontext, outputcallback, core::mem::transmute(clientdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RemovePointerInteractionContext(interactioncontext: HINTERACTIONCONTEXT, pointerid: u32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn RemovePointerInteractionContext(interactioncontext : HINTERACTIONCONTEXT, pointerid : u32) -> windows_core::HRESULT); - RemovePointerInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(pointerid)).ok() + RemovePointerInteractionContext(interactioncontext, pointerid).ok() } #[inline] pub unsafe fn ResetInteractionContext(interactioncontext: HINTERACTIONCONTEXT) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn ResetInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - ResetInteractionContext(core::mem::transmute(interactioncontext)).ok() + ResetInteractionContext(interactioncontext).ok() } #[inline] pub unsafe fn SetCrossSlideParametersInteractionContext(interactioncontext: HINTERACTIONCONTEXT, crossslideparameters: &[CROSS_SLIDE_PARAMETER]) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetCrossSlideParametersInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parametercount : u32, crossslideparameters : *const CROSS_SLIDE_PARAMETER) -> windows_core::HRESULT); - SetCrossSlideParametersInteractionContext(core::mem::transmute(interactioncontext), crossslideparameters.len().try_into().unwrap(), core::mem::transmute(crossslideparameters.as_ptr())).ok() + SetCrossSlideParametersInteractionContext(interactioncontext, crossslideparameters.len().try_into().unwrap(), core::mem::transmute(crossslideparameters.as_ptr())).ok() } #[inline] pub unsafe fn SetHoldParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: HOLD_PARAMETER, value: f32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetHoldParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : HOLD_PARAMETER, value : f32) -> windows_core::HRESULT); - SetHoldParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), core::mem::transmute(value)).ok() + SetHoldParameterInteractionContext(interactioncontext, parameter, value).ok() } #[inline] pub unsafe fn SetInertiaParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, inertiaparameter: INERTIA_PARAMETER, value: f32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetInertiaParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, inertiaparameter : INERTIA_PARAMETER, value : f32) -> windows_core::HRESULT); - SetInertiaParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(inertiaparameter), core::mem::transmute(value)).ok() + SetInertiaParameterInteractionContext(interactioncontext, inertiaparameter, value).ok() } #[inline] pub unsafe fn SetInteractionConfigurationInteractionContext(interactioncontext: HINTERACTIONCONTEXT, configuration: &[INTERACTION_CONTEXT_CONFIGURATION]) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetInteractionConfigurationInteractionContext(interactioncontext : HINTERACTIONCONTEXT, configurationcount : u32, configuration : *const INTERACTION_CONTEXT_CONFIGURATION) -> windows_core::HRESULT); - SetInteractionConfigurationInteractionContext(core::mem::transmute(interactioncontext), configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() + SetInteractionConfigurationInteractionContext(interactioncontext, configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() } #[inline] pub unsafe fn SetMouseWheelParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: MOUSE_WHEEL_PARAMETER, value: f32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetMouseWheelParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : MOUSE_WHEEL_PARAMETER, value : f32) -> windows_core::HRESULT); - SetMouseWheelParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), core::mem::transmute(value)).ok() + SetMouseWheelParameterInteractionContext(interactioncontext, parameter, value).ok() } #[inline] pub unsafe fn SetPivotInteractionContext(interactioncontext: HINTERACTIONCONTEXT, x: f32, y: f32, radius: f32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetPivotInteractionContext(interactioncontext : HINTERACTIONCONTEXT, x : f32, y : f32, radius : f32) -> windows_core::HRESULT); - SetPivotInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(radius)).ok() + SetPivotInteractionContext(interactioncontext, x, y, radius).ok() } #[inline] pub unsafe fn SetPropertyInteractionContext(interactioncontext: HINTERACTIONCONTEXT, contextproperty: INTERACTION_CONTEXT_PROPERTY, value: u32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetPropertyInteractionContext(interactioncontext : HINTERACTIONCONTEXT, contextproperty : INTERACTION_CONTEXT_PROPERTY, value : u32) -> windows_core::HRESULT); - SetPropertyInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(contextproperty), core::mem::transmute(value)).ok() + SetPropertyInteractionContext(interactioncontext, contextproperty, value).ok() } #[inline] pub unsafe fn SetTapParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: TAP_PARAMETER, value: f32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetTapParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TAP_PARAMETER, value : f32) -> windows_core::HRESULT); - SetTapParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), core::mem::transmute(value)).ok() + SetTapParameterInteractionContext(interactioncontext, parameter, value).ok() } #[inline] pub unsafe fn SetTranslationParameterInteractionContext(interactioncontext: HINTERACTIONCONTEXT, parameter: TRANSLATION_PARAMETER, value: f32) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn SetTranslationParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TRANSLATION_PARAMETER, value : f32) -> windows_core::HRESULT); - SetTranslationParameterInteractionContext(core::mem::transmute(interactioncontext), core::mem::transmute(parameter), core::mem::transmute(value)).ok() + SetTranslationParameterInteractionContext(interactioncontext, parameter, value).ok() } #[inline] pub unsafe fn StopInteractionContext(interactioncontext: HINTERACTIONCONTEXT) -> windows_core::Result<()> { windows_targets::link!("ninput.dll" "system" fn StopInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - StopInteractionContext(core::mem::transmute(interactioncontext)).ok() + StopInteractionContext(interactioncontext).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs index 273fa0797e..64ad385531 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs @@ -19,7 +19,7 @@ impl IADesktopP2 { (windows_core::Interface::vtable(self).ReReadWallpaper)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetADObjectFlags(&self, pdwflags: *mut u32, dwmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetADObjectFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).GetADObjectFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags), dwmask).ok() } pub unsafe fn UpdateAllDesktopSubscriptions(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateAllDesktopSubscriptions)(windows_core::Interface::as_raw(self)).ok() @@ -87,7 +87,7 @@ windows_core::imp::define_interface!(IActiveDesktopP, IActiveDesktopP_Vtbl, 0x52 windows_core::imp::interface_hierarchy!(IActiveDesktopP, windows_core::IUnknown); impl IActiveDesktopP { pub unsafe fn SetSafeMode(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSafeMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetSafeMode)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn EnsureUpdateHTML(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnsureUpdateHTML)(windows_core::Interface::as_raw(self)).ok() @@ -96,10 +96,10 @@ impl IActiveDesktopP { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScheme)(windows_core::Interface::as_raw(self), pwszschemename.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetScheme)(windows_core::Interface::as_raw(self), pwszschemename.param().abi(), dwflags).ok() } pub unsafe fn GetScheme(&self, pwszschemename: windows_core::PWSTR, pdwcchbuffer: *mut u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetScheme)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszschemename), core::mem::transmute(pdwcchbuffer), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetScheme)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszschemename), core::mem::transmute(pdwcchbuffer), dwflags).ok() } } #[repr(C)] @@ -193,7 +193,7 @@ impl IEmptyVolumeCache { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hkregkey), pcwszvolume.param().abi(), core::mem::transmute(ppwszdisplayname), core::mem::transmute(ppwszdescription), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hkregkey, pcwszvolume.param().abi(), core::mem::transmute(ppwszdisplayname), core::mem::transmute(ppwszdescription), core::mem::transmute(pdwflags)).ok() } pub unsafe fn GetSpaceUsed(&self, pdwlspaceused: *mut u64, picb: P1) -> windows_core::Result<()> where @@ -205,10 +205,10 @@ impl IEmptyVolumeCache { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Purge)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlspacetofree), picb.param().abi()).ok() + (windows_core::Interface::vtable(self).Purge)(windows_core::Interface::as_raw(self), dwlspacetofree, picb.param().abi()).ok() } pub unsafe fn ShowProperties(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -294,7 +294,7 @@ impl IEmptyVolumeCache2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(hkregkey), pcwszvolume.param().abi(), pcwszkeyname.param().abi(), core::mem::transmute(ppwszdisplayname), core::mem::transmute(ppwszdescription), core::mem::transmute(ppwszbtntext), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), hkregkey, pcwszvolume.param().abi(), pcwszkeyname.param().abi(), core::mem::transmute(ppwszdisplayname), core::mem::transmute(ppwszdescription), core::mem::transmute(ppwszbtntext), core::mem::transmute(pdwflags)).ok() } } #[repr(C)] @@ -331,13 +331,13 @@ impl IEmptyVolumeCacheCallBack { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ScanProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlspaceused), core::mem::transmute(dwflags), pcwszstatus.param().abi()).ok() + (windows_core::Interface::vtable(self).ScanProgress)(windows_core::Interface::as_raw(self), dwlspaceused, dwflags, pcwszstatus.param().abi()).ok() } pub unsafe fn PurgeProgress(&self, dwlspacefreed: u64, dwlspacetofree: u64, dwflags: u32, pcwszstatus: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PurgeProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlspacefreed), core::mem::transmute(dwlspacetofree), core::mem::transmute(dwflags), pcwszstatus.param().abi()).ok() + (windows_core::Interface::vtable(self).PurgeProgress)(windows_core::Interface::as_raw(self), dwlspacefreed, dwlspacetofree, dwflags, pcwszstatus.param().abi()).ok() } } #[repr(C)] @@ -380,7 +380,7 @@ impl IReconcilableObject { P0: windows_core::Param, P7: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconcile)(windows_core::Interface::as_raw(self), pinitiator.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(hwndowner), core::mem::transmute(hwndprogressfeedback), rgpmkotherinput.len().try_into().unwrap(), core::mem::transmute(rgpmkotherinput.as_ptr()), core::mem::transmute(ploutindex), pstgnewresidues.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Reconcile)(windows_core::Interface::as_raw(self), pinitiator.param().abi(), dwflags, hwndowner, hwndprogressfeedback, rgpmkotherinput.len().try_into().unwrap(), core::mem::transmute(rgpmkotherinput.as_ptr()), core::mem::transmute(ploutindex), pstgnewresidues.param().abi(), core::mem::transmute(pvreserved.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetProgressFeedbackMaxEstimate(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -440,7 +440,7 @@ impl IReconcileInitiator { (windows_core::Interface::vtable(self).SetAbortCallback)(windows_core::Interface::as_raw(self), punkforabort.param().abi()).ok() } pub unsafe fn SetProgressFeedback(&self, ulprogress: u32, ulprogressmax: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgressFeedback)(windows_core::Interface::as_raw(self), core::mem::transmute(ulprogress), core::mem::transmute(ulprogressmax)).ok() + (windows_core::Interface::vtable(self).SetProgressFeedback)(windows_core::Interface::as_raw(self), ulprogress, ulprogressmax).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs index a1bc2dcb84..f9c52728b1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn MagGetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagGetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); - MagGetColorEffect(core::mem::transmute(hwnd), core::mem::transmute(peffect)) + MagGetColorEffect(hwnd, core::mem::transmute(peffect)) } #[inline] pub unsafe fn MagGetFullscreenColorEffect(peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { @@ -17,7 +17,7 @@ pub unsafe fn MagGetFullscreenTransform(pmaglevel: *mut f32, pxoffset: *mut i32, #[inline] pub unsafe fn MagGetImageScalingCallback(hwnd: super::super::Foundation::HWND) -> MagImageScalingCallback { windows_targets::link!("magnification.dll" "system" fn MagGetImageScalingCallback(hwnd : super::super::Foundation:: HWND) -> MagImageScalingCallback); - MagGetImageScalingCallback(core::mem::transmute(hwnd)) + MagGetImageScalingCallback(hwnd) } #[inline] pub unsafe fn MagGetInputTransform(pfenabled: *mut super::super::Foundation::BOOL, prectsource: *mut super::super::Foundation::RECT, prectdest: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { @@ -27,17 +27,17 @@ pub unsafe fn MagGetInputTransform(pfenabled: *mut super::super::Foundation::BOO #[inline] pub unsafe fn MagGetWindowFilterList(hwnd: super::super::Foundation::HWND, pdwfiltermode: *mut MW_FILTERMODE, count: i32, phwnd: *mut super::super::Foundation::HWND) -> i32 { windows_targets::link!("magnification.dll" "system" fn MagGetWindowFilterList(hwnd : super::super::Foundation:: HWND, pdwfiltermode : *mut MW_FILTERMODE, count : i32, phwnd : *mut super::super::Foundation:: HWND) -> i32); - MagGetWindowFilterList(core::mem::transmute(hwnd), core::mem::transmute(pdwfiltermode), core::mem::transmute(count), core::mem::transmute(phwnd)) + MagGetWindowFilterList(hwnd, core::mem::transmute(pdwfiltermode), count, core::mem::transmute(phwnd)) } #[inline] pub unsafe fn MagGetWindowSource(hwnd: super::super::Foundation::HWND, prect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagGetWindowSource(hwnd : super::super::Foundation:: HWND, prect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MagGetWindowSource(core::mem::transmute(hwnd), core::mem::transmute(prect)) + MagGetWindowSource(hwnd, core::mem::transmute(prect)) } #[inline] pub unsafe fn MagGetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagGetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL); - MagGetWindowTransform(core::mem::transmute(hwnd), core::mem::transmute(ptransform)) + MagGetWindowTransform(hwnd, core::mem::transmute(ptransform)) } #[inline] pub unsafe fn MagInitialize() -> super::super::Foundation::BOOL { @@ -47,43 +47,43 @@ pub unsafe fn MagInitialize() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn MagSetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); - MagSetColorEffect(core::mem::transmute(hwnd), core::mem::transmute(peffect)) + MagSetColorEffect(hwnd, core::mem::transmute(peffect)) } #[inline] pub unsafe fn MagSetFullscreenColorEffect(peffect: *const MAGCOLOREFFECT) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetFullscreenColorEffect(peffect : *const MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); - MagSetFullscreenColorEffect(core::mem::transmute(peffect)) + MagSetFullscreenColorEffect(peffect) } #[inline] pub unsafe fn MagSetFullscreenTransform(maglevel: f32, xoffset: i32, yoffset: i32) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetFullscreenTransform(maglevel : f32, xoffset : i32, yoffset : i32) -> super::super::Foundation:: BOOL); - MagSetFullscreenTransform(core::mem::transmute(maglevel), core::mem::transmute(xoffset), core::mem::transmute(yoffset)) + MagSetFullscreenTransform(maglevel, xoffset, yoffset) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MagSetImageScalingCallback(hwnd: super::super::Foundation::HWND, callback: MagImageScalingCallback) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetImageScalingCallback(hwnd : super::super::Foundation:: HWND, callback : MagImageScalingCallback) -> super::super::Foundation:: BOOL); - MagSetImageScalingCallback(core::mem::transmute(hwnd), core::mem::transmute(callback)) + MagSetImageScalingCallback(hwnd, callback) } #[inline] pub unsafe fn MagSetInputTransform(fenabled: bool, prectsource: *const super::super::Foundation::RECT, prectdest: *const super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("magnification.dll" "system" fn MagSetInputTransform(fenabled : super::super::Foundation:: BOOL, prectsource : *const super::super::Foundation:: RECT, prectdest : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MagSetInputTransform(fenabled.into(), core::mem::transmute(prectsource), core::mem::transmute(prectdest)).ok() + MagSetInputTransform(fenabled.into(), prectsource, prectdest).ok() } #[inline] pub unsafe fn MagSetWindowFilterList(hwnd: super::super::Foundation::HWND, dwfiltermode: MW_FILTERMODE, count: i32, phwnd: *mut super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetWindowFilterList(hwnd : super::super::Foundation:: HWND, dwfiltermode : MW_FILTERMODE, count : i32, phwnd : *mut super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - MagSetWindowFilterList(core::mem::transmute(hwnd), core::mem::transmute(dwfiltermode), core::mem::transmute(count), core::mem::transmute(phwnd)) + MagSetWindowFilterList(hwnd, dwfiltermode, count, core::mem::transmute(phwnd)) } #[inline] pub unsafe fn MagSetWindowSource(hwnd: super::super::Foundation::HWND, rect: super::super::Foundation::RECT) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetWindowSource(hwnd : super::super::Foundation:: HWND, rect : super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MagSetWindowSource(core::mem::transmute(hwnd), core::mem::transmute(rect)) + MagSetWindowSource(hwnd, core::mem::transmute(rect)) } #[inline] pub unsafe fn MagSetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL { windows_targets::link!("magnification.dll" "system" fn MagSetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL); - MagSetWindowTransform(core::mem::transmute(hwnd), core::mem::transmute(ptransform)) + MagSetWindowTransform(hwnd, core::mem::transmute(ptransform)) } #[inline] pub unsafe fn MagShowSystemCursor(fshowcursor: bool) -> super::super::Foundation::BOOL { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs index 371f484112..833fb73fad 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs @@ -5,17 +5,17 @@ impl IUIApplication { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(viewid), core::mem::transmute(typeid), view.param().abi(), core::mem::transmute(verb), core::mem::transmute(ureasoncode)).ok() + (windows_core::Interface::vtable(self).OnViewChanged)(windows_core::Interface::as_raw(self), viewid, typeid, view.param().abi(), verb, ureasoncode).ok() } pub unsafe fn OnCreateUICommand(&self, commandid: u32, typeid: UI_COMMANDTYPE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnCreateUICommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(typeid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OnCreateUICommand)(windows_core::Interface::as_raw(self), commandid, typeid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnDestroyUICommand(&self, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDestroyUICommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(typeid), commandhandler.param().abi()).ok() + (windows_core::Interface::vtable(self).OnDestroyUICommand)(windows_core::Interface::as_raw(self), commandid, typeid, commandhandler.param().abi()).ok() } } #[repr(C)] @@ -71,7 +71,7 @@ impl IUICollection { } pub unsafe fn GetItem(&self, index: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where @@ -83,16 +83,16 @@ impl IUICollection { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), core::mem::transmute(index), item.param().abi()).ok() + (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), index, item.param().abi()).ok() } pub unsafe fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn Replace(&self, indexreplaced: u32, itemreplacewith: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), core::mem::transmute(indexreplaced), itemreplacewith.param().abi()).ok() + (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), indexreplaced, itemreplacewith.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -184,7 +184,7 @@ impl IUICollectionChangedEvent { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(action), core::mem::transmute(oldindex), olditem.param().abi(), core::mem::transmute(newindex), newitem.param().abi()).ok() + (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), action, oldindex, olditem.param().abi(), newindex, newitem.param().abi()).ok() } } #[repr(C)] @@ -216,12 +216,12 @@ impl IUICommandHandler { where P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(verb), core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(currentvalue.unwrap_or(core::mem::zeroed())), commandexecutionproperties.param().abi()).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), commandid, verb, core::mem::transmute(key.unwrap_or(core::mem::zeroed())), core::mem::transmute(currentvalue.unwrap_or(core::mem::zeroed())), commandexecutionproperties.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn UpdateProperty(&self, commandid: u32, key: *const super::super::Foundation::PROPERTYKEY, currentvalue: Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).UpdateProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(key), core::mem::transmute(currentvalue.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).UpdateProperty)(windows_core::Interface::as_raw(self), commandid, key, core::mem::transmute(currentvalue.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -274,7 +274,7 @@ windows_core::imp::define_interface!(IUIContextualUI, IUIContextualUI_Vtbl, 0xee windows_core::imp::interface_hierarchy!(IUIContextualUI, windows_core::IUnknown); impl IUIContextualUI { pub unsafe fn ShowAtLocation(&self, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowAtLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).ShowAtLocation)(windows_core::Interface::as_raw(self), x, y).ok() } } #[repr(C)] @@ -302,7 +302,7 @@ windows_core::imp::define_interface!(IUIEventLogger, IUIEventLogger_Vtbl, 0xec3e windows_core::imp::interface_hierarchy!(IUIEventLogger, windows_core::IUnknown); impl IUIEventLogger { pub unsafe fn OnUIEvent(&self, peventparams: *const UI_EVENTPARAMS) { - (windows_core::Interface::vtable(self).OnUIEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(peventparams)) + (windows_core::Interface::vtable(self).OnUIEvent)(windows_core::Interface::as_raw(self), peventparams) } } #[repr(C)] @@ -364,7 +364,7 @@ impl IUIFramework { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(framewnd), application.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), framewnd, application.param().abi()).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -373,28 +373,28 @@ impl IUIFramework { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadUI)(windows_core::Interface::as_raw(self), core::mem::transmute(instance), resourcename.param().abi()).ok() + (windows_core::Interface::vtable(self).LoadUI)(windows_core::Interface::as_raw(self), instance, resourcename.param().abi()).ok() } pub unsafe fn GetView(&self, viewid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), core::mem::transmute(viewid), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), viewid, riid, core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetUICommandProperty(&self, commandid: u32, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUICommandProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetUICommandProperty)(windows_core::Interface::as_raw(self), commandid, key, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetUICommandProperty(&self, commandid: u32, key: *const super::super::Foundation::PROPERTYKEY, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUICommandProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(key), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetUICommandProperty)(windows_core::Interface::as_raw(self), commandid, key, core::mem::transmute(value)).ok() } pub unsafe fn InvalidateUICommand(&self, commandid: u32, flags: UI_INVALIDATIONS, key: Option<*const super::super::Foundation::PROPERTYKEY>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvalidateUICommand)(windows_core::Interface::as_raw(self), core::mem::transmute(commandid), core::mem::transmute(flags), core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).InvalidateUICommand)(windows_core::Interface::as_raw(self), commandid, flags, core::mem::transmute(key.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn FlushPendingInvalidations(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushPendingInvalidations)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetModes(&self, imodes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModes)(windows_core::Interface::as_raw(self), core::mem::transmute(imodes)).ok() + (windows_core::Interface::vtable(self).SetModes)(windows_core::Interface::as_raw(self), imodes).ok() } } #[repr(C)] @@ -540,7 +540,7 @@ impl IUIImageFromBitmap { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateImage(&self, bitmap: super::super::Graphics::Gdi::HBITMAP, options: UI_OWNERSHIP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImage)(windows_core::Interface::as_raw(self), core::mem::transmute(bitmap), core::mem::transmute(options), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImage)(windows_core::Interface::as_raw(self), bitmap, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -657,7 +657,7 @@ impl IUISimplePropertySet { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs index d672f5da29..8d052da0a2 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs @@ -25,7 +25,7 @@ impl IObjectArray { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), uiindex, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -83,7 +83,7 @@ impl IObjectCollection { (windows_core::Interface::vtable(self).AddFromArray)(windows_core::Interface::as_raw(self), poasource.param().abi()).ok() } pub unsafe fn RemoveObjectAt(&self, uiindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveObjectAt)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex)).ok() + (windows_core::Interface::vtable(self).RemoveObjectAt)(windows_core::Interface::as_raw(self), uiindex).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs index 040739a741..a1fff52fe5 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs @@ -2,7 +2,7 @@ #[inline] pub unsafe fn PSCoerceToCanonicalValue(key: *const super::super::super::Foundation::PROPERTYKEY, ppropvar: *mut super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSCoerceToCanonicalValue(key : *const super::super::super::Foundation:: PROPERTYKEY, ppropvar : *mut super::super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); - PSCoerceToCanonicalValue(core::mem::transmute(key), core::mem::transmute(ppropvar)).ok() + PSCoerceToCanonicalValue(key, core::mem::transmute(ppropvar)).ok() } #[inline] pub unsafe fn PSCreateAdapterFromPropertyStore(pps: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -10,7 +10,7 @@ where P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSCreateAdapterFromPropertyStore(pps : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreateAdapterFromPropertyStore(pps.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreateAdapterFromPropertyStore(pps.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSCreateDelayedMultiplexPropertyStore(flags: GETPROPERTYSTOREFLAGS, pdpsf: P1, rgstoreids: &[u32], riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -18,23 +18,23 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSCreateDelayedMultiplexPropertyStore(flags : GETPROPERTYSTOREFLAGS, pdpsf : * mut core::ffi::c_void, rgstoreids : *const u32, cstores : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreateDelayedMultiplexPropertyStore(core::mem::transmute(flags), pdpsf.param().abi(), core::mem::transmute(rgstoreids.as_ptr()), rgstoreids.len().try_into().unwrap(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreateDelayedMultiplexPropertyStore(flags, pdpsf.param().abi(), core::mem::transmute(rgstoreids.as_ptr()), rgstoreids.len().try_into().unwrap(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSCreateMemoryPropertyStore(riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSCreateMemoryPropertyStore(riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreateMemoryPropertyStore(core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreateMemoryPropertyStore(riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSCreateMultiplexPropertyStore(prgpunkstores: &[Option], riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSCreateMultiplexPropertyStore(prgpunkstores : *const * mut core::ffi::c_void, cstores : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreateMultiplexPropertyStore(core::mem::transmute(prgpunkstores.as_ptr()), prgpunkstores.len().try_into().unwrap(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreateMultiplexPropertyStore(core::mem::transmute(prgpunkstores.as_ptr()), prgpunkstores.len().try_into().unwrap(), riid, core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PSCreatePropertyChangeArray(rgpropkey: Option<*const super::super::super::Foundation::PROPERTYKEY>, rgflags: Option<*const PKA_FLAGS>, rgpropvar: Option<*const super::super::super::System::Com::StructuredStorage::PROPVARIANT>, cchanges: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSCreatePropertyChangeArray(rgpropkey : *const super::super::super::Foundation:: PROPERTYKEY, rgflags : *const PKA_FLAGS, rgpropvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, cchanges : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreatePropertyChangeArray(core::mem::transmute(rgpropkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpropvar.unwrap_or(core::mem::zeroed())), core::mem::transmute(cchanges), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreatePropertyChangeArray(core::mem::transmute(rgpropkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(rgpropvar.unwrap_or(core::mem::zeroed())), cchanges, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSCreatePropertyStoreFromObject(punk: P0, grfmode: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -42,7 +42,7 @@ where P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSCreatePropertyStoreFromObject(punk : * mut core::ffi::c_void, grfmode : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreatePropertyStoreFromObject(punk.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreatePropertyStoreFromObject(punk.param().abi(), grfmode, riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -51,31 +51,31 @@ where P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSCreatePropertyStoreFromPropertySetStorage(ppss : * mut core::ffi::c_void, grfmode : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreatePropertyStoreFromPropertySetStorage(ppss.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreatePropertyStoreFromPropertySetStorage(ppss.param().abi(), grfmode, riid, core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PSCreateSimplePropertyChange(flags: PKA_FLAGS, key: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSCreateSimplePropertyChange(flags : PKA_FLAGS, key : *const super::super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSCreateSimplePropertyChange(core::mem::transmute(flags), core::mem::transmute(key), core::mem::transmute(propvar), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSCreateSimplePropertyChange(flags, key, core::mem::transmute(propvar), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSEnumeratePropertyDescriptions(filteron: PROPDESC_ENUMFILTER, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSEnumeratePropertyDescriptions(filteron : PROPDESC_ENUMFILTER, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSEnumeratePropertyDescriptions(core::mem::transmute(filteron), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSEnumeratePropertyDescriptions(filteron, riid, core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PSFormatForDisplay(propkey: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pdfflags: PROPDESC_FORMAT_FLAGS, pwsztext: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSFormatForDisplay(propkey : *const super::super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, pdfflags : PROPDESC_FORMAT_FLAGS, pwsztext : windows_core::PWSTR, cchtext : u32) -> windows_core::HRESULT); - PSFormatForDisplay(core::mem::transmute(propkey), core::mem::transmute(propvar), core::mem::transmute(pdfflags), core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() + PSFormatForDisplay(propkey, core::mem::transmute(propvar), pdfflags, core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PSFormatForDisplayAlloc(key: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pdff: PROPDESC_FORMAT_FLAGS) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PSFormatForDisplayAlloc(key : *const super::super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, pdff : PROPDESC_FORMAT_FLAGS, ppszdisplay : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PSFormatForDisplayAlloc(core::mem::transmute(key), core::mem::transmute(propvar), core::mem::transmute(pdff), &mut result__).map(|| core::mem::transmute(result__)) + PSFormatForDisplayAlloc(key, core::mem::transmute(propvar), pdff, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PSFormatPropertyValue(pps: P0, ppd: P1, pdff: PROPDESC_FORMAT_FLAGS) -> windows_core::Result @@ -85,14 +85,14 @@ where { windows_targets::link!("propsys.dll" "system" fn PSFormatPropertyValue(pps : * mut core::ffi::c_void, ppd : * mut core::ffi::c_void, pdff : PROPDESC_FORMAT_FLAGS, ppszdisplay : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PSFormatPropertyValue(pps.param().abi(), ppd.param().abi(), core::mem::transmute(pdff), &mut result__).map(|| core::mem::transmute(result__)) + PSFormatPropertyValue(pps.param().abi(), ppd.param().abi(), pdff, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PSGetImageReferenceForValue(propkey: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PSGetImageReferenceForValue(propkey : *const super::super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, ppszimageres : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PSGetImageReferenceForValue(core::mem::transmute(propkey), core::mem::transmute(propvar), &mut result__).map(|| core::mem::transmute(result__)) + PSGetImageReferenceForValue(propkey, core::mem::transmute(propvar), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PSGetItemPropertyHandler(punkitem: P0, freadwrite: bool, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -100,7 +100,7 @@ where P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetItemPropertyHandler(punkitem : * mut core::ffi::c_void, freadwrite : super::super::super::Foundation:: BOOL, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSGetItemPropertyHandler(punkitem.param().abi(), freadwrite.into(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSGetItemPropertyHandler(punkitem.param().abi(), freadwrite.into(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSGetItemPropertyHandlerWithCreateObject(punkitem: P0, freadwrite: bool, punkcreateobject: P2, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -109,13 +109,13 @@ where P2: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetItemPropertyHandlerWithCreateObject(punkitem : * mut core::ffi::c_void, freadwrite : super::super::super::Foundation:: BOOL, punkcreateobject : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSGetItemPropertyHandlerWithCreateObject(punkitem.param().abi(), freadwrite.into(), punkcreateobject.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSGetItemPropertyHandlerWithCreateObject(punkitem.param().abi(), freadwrite.into(), punkcreateobject.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSGetNameFromPropertyKey(propkey: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PSGetNameFromPropertyKey(propkey : *const super::super::super::Foundation:: PROPERTYKEY, ppszcanonicalname : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PSGetNameFromPropertyKey(core::mem::transmute(propkey), &mut result__).map(|| core::mem::transmute(result__)) + PSGetNameFromPropertyKey(propkey, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -125,12 +125,12 @@ where { windows_targets::link!("propsys.dll" "system" fn PSGetNamedPropertyFromPropertyStorage(psps : PCUSERIALIZEDPROPSTORAGE, cb : u32, pszname : windows_core::PCWSTR, ppropvar : *mut super::super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PSGetNamedPropertyFromPropertyStorage(core::mem::transmute(psps), core::mem::transmute(cb), pszname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSGetNamedPropertyFromPropertyStorage(psps, cb, pszname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PSGetPropertyDescription(propkey: *const super::super::super::Foundation::PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyDescription(propkey : *const super::super::super::Foundation:: PROPERTYKEY, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSGetPropertyDescription(core::mem::transmute(propkey), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSGetPropertyDescription(propkey, riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSGetPropertyDescriptionByName(pszcanonicalname: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -138,7 +138,7 @@ where P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyDescriptionByName(pszcanonicalname : windows_core::PCWSTR, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSGetPropertyDescriptionByName(pszcanonicalname.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSGetPropertyDescriptionByName(pszcanonicalname.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[inline] pub unsafe fn PSGetPropertyDescriptionListFromString(pszproplist: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -146,14 +146,14 @@ where P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyDescriptionListFromString(pszproplist : windows_core::PCWSTR, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSGetPropertyDescriptionListFromString(pszproplist.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSGetPropertyDescriptionListFromString(pszproplist.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PSGetPropertyFromPropertyStorage(psps: PCUSERIALIZEDPROPSTORAGE, cb: u32, rpkey: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyFromPropertyStorage(psps : PCUSERIALIZEDPROPSTORAGE, cb : u32, rpkey : *const super::super::super::Foundation:: PROPERTYKEY, ppropvar : *mut super::super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PSGetPropertyFromPropertyStorage(core::mem::transmute(psps), core::mem::transmute(cb), core::mem::transmute(rpkey), &mut result__).map(|| core::mem::transmute(result__)) + PSGetPropertyFromPropertyStorage(psps, cb, rpkey, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PSGetPropertyKeyFromName(pszname: P0, ppropkey: *mut super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> @@ -166,7 +166,7 @@ where #[inline] pub unsafe fn PSGetPropertySystem(riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSGetPropertySystem(riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSGetPropertySystem(core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSGetPropertySystem(riid, core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -358,7 +358,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadType(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, var : *mut super::super::super::System::Variant:: VARIANT, r#type : super::super::super::System::Variant:: VARENUM) -> windows_core::HRESULT); - PSPropertyBag_ReadType(propbag.param().abi(), propname.param().abi(), core::mem::transmute(var), core::mem::transmute(r#type)).ok() + PSPropertyBag_ReadType(propbag.param().abi(), propname.param().abi(), core::mem::transmute(var), r#type).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -379,7 +379,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadUnknown(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PSPropertyBag_ReadUnknown(propbag.param().abi(), propname.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + PSPropertyBag_ReadUnknown(propbag.param().abi(), propname.param().abi(), riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -409,7 +409,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteDWORD(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : u32) -> windows_core::HRESULT); - PSPropertyBag_WriteDWORD(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteDWORD(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -419,7 +419,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteGUID(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *const windows_core::GUID) -> windows_core::HRESULT); - PSPropertyBag_WriteGUID(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteGUID(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -429,7 +429,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteInt(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : i32) -> windows_core::HRESULT); - PSPropertyBag_WriteInt(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteInt(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -439,7 +439,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteLONG(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : i32) -> windows_core::HRESULT); - PSPropertyBag_WriteLONG(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteLONG(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -449,7 +449,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WritePOINTL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *const super::super::super::Foundation:: POINTL) -> windows_core::HRESULT); - PSPropertyBag_WritePOINTL(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WritePOINTL(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -459,7 +459,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WritePOINTS(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *const super::super::super::Foundation:: POINTS) -> windows_core::HRESULT); - PSPropertyBag_WritePOINTS(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WritePOINTS(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -469,7 +469,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WritePropertyKey(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *const super::super::super::Foundation:: PROPERTYKEY) -> windows_core::HRESULT); - PSPropertyBag_WritePropertyKey(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WritePropertyKey(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -479,7 +479,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteRECTL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *const super::super::super::Foundation:: RECTL) -> windows_core::HRESULT); - PSPropertyBag_WriteRECTL(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteRECTL(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -489,7 +489,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteSHORT(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : i16) -> windows_core::HRESULT); - PSPropertyBag_WriteSHORT(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteSHORT(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -521,7 +521,7 @@ where P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteULONGLONG(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : u64) -> windows_core::HRESULT); - PSPropertyBag_WriteULONGLONG(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value)).ok() + PSPropertyBag_WriteULONGLONG(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -568,7 +568,7 @@ where #[inline] pub unsafe fn PSStringFromPropertyKey(pkey: *const super::super::super::Foundation::PROPERTYKEY, psz: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("propsys.dll" "system" fn PSStringFromPropertyKey(pkey : *const super::super::super::Foundation:: PROPERTYKEY, psz : windows_core::PWSTR, cch : u32) -> windows_core::HRESULT); - PSStringFromPropertyKey(core::mem::transmute(pkey), core::mem::transmute(psz.as_ptr()), psz.len().try_into().unwrap()).ok() + PSStringFromPropertyKey(pkey, core::mem::transmute(psz.as_ptr()), psz.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn PSUnregisterPropertySchema(pszpath: P0) -> windows_core::Result<()> @@ -581,7 +581,7 @@ where #[inline] pub unsafe fn PifMgr_CloseProperties(hprops: Option, flopt: u32) -> super::super::super::Foundation::HANDLE { windows_targets::link!("shell32.dll" "system" fn PifMgr_CloseProperties(hprops : super::super::super::Foundation:: HANDLE, flopt : u32) -> super::super::super::Foundation:: HANDLE); - PifMgr_CloseProperties(core::mem::transmute(hprops.unwrap_or(core::mem::zeroed())), core::mem::transmute(flopt)) + PifMgr_CloseProperties(core::mem::transmute(hprops.unwrap_or(core::mem::zeroed())), flopt) } #[inline] pub unsafe fn PifMgr_GetProperties(hprops: Option, pszgroup: P1, lpprops: Option<*mut core::ffi::c_void>, cbprops: i32, flopt: u32) -> i32 @@ -589,7 +589,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PifMgr_GetProperties(hprops : super::super::super::Foundation:: HANDLE, pszgroup : windows_core::PCSTR, lpprops : *mut core::ffi::c_void, cbprops : i32, flopt : u32) -> i32); - PifMgr_GetProperties(core::mem::transmute(hprops.unwrap_or(core::mem::zeroed())), pszgroup.param().abi(), core::mem::transmute(lpprops.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbprops), core::mem::transmute(flopt)) + PifMgr_GetProperties(core::mem::transmute(hprops.unwrap_or(core::mem::zeroed())), pszgroup.param().abi(), core::mem::transmute(lpprops.unwrap_or(core::mem::zeroed())), cbprops, flopt) } #[inline] pub unsafe fn PifMgr_OpenProperties(pszapp: P0, pszpif: P1, hinf: u32, flopt: u32) -> super::super::super::Foundation::HANDLE @@ -598,7 +598,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PifMgr_OpenProperties(pszapp : windows_core::PCWSTR, pszpif : windows_core::PCWSTR, hinf : u32, flopt : u32) -> super::super::super::Foundation:: HANDLE); - PifMgr_OpenProperties(pszapp.param().abi(), pszpif.param().abi(), core::mem::transmute(hinf), core::mem::transmute(flopt)) + PifMgr_OpenProperties(pszapp.param().abi(), pszpif.param().abi(), hinf, flopt) } #[inline] pub unsafe fn PifMgr_SetProperties(hprops: Option, pszgroup: P1, lpprops: *const core::ffi::c_void, cbprops: i32, flopt: u32) -> i32 @@ -606,7 +606,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PifMgr_SetProperties(hprops : super::super::super::Foundation:: HANDLE, pszgroup : windows_core::PCSTR, lpprops : *const core::ffi::c_void, cbprops : i32, flopt : u32) -> i32); - PifMgr_SetProperties(core::mem::transmute(hprops.unwrap_or(core::mem::zeroed())), pszgroup.param().abi(), core::mem::transmute(lpprops), core::mem::transmute(cbprops), core::mem::transmute(flopt)) + PifMgr_SetProperties(core::mem::transmute(hprops.unwrap_or(core::mem::zeroed())), pszgroup.param().abi(), lpprops, cbprops, flopt) } #[inline] pub unsafe fn SHAddDefaultPropertiesByExt(pszext: P0, ppropstore: P1) -> windows_core::Result<()> @@ -624,13 +624,13 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetPropertyStoreForWindow(hwnd : super::super::super::Foundation:: HWND, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHGetPropertyStoreForWindow(core::mem::transmute(hwnd), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetPropertyStoreForWindow(hwnd, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetPropertyStoreFromIDList(pidl: *const super::Common::ITEMIDLIST, flags: GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHGetPropertyStoreFromIDList(pidl : *const super::Common:: ITEMIDLIST, flags : GETPROPERTYSTOREFLAGS, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SHGetPropertyStoreFromIDList(core::mem::transmute(pidl), core::mem::transmute(flags), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + SHGetPropertyStoreFromIDList(pidl, flags, riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -642,7 +642,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetPropertyStoreFromParsingName(pszpath : windows_core::PCWSTR, pbc : * mut core::ffi::c_void, flags : GETPROPERTYSTOREFLAGS, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHGetPropertyStoreFromParsingName(pszpath.param().abi(), pbc.param().abi(), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetPropertyStoreFromParsingName(pszpath.param().abi(), pbc.param().abi(), flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -651,7 +651,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHPropStgCreate(psstg : * mut core::ffi::c_void, fmtid : *const windows_core::GUID, pclsid : *const windows_core::GUID, grfflags : u32, grfmode : u32, dwdisposition : u32, ppstg : *mut * mut core::ffi::c_void, pucodepage : *mut u32) -> windows_core::HRESULT); - SHPropStgCreate(psstg.param().abi(), core::mem::transmute(fmtid), core::mem::transmute(pclsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(grfflags), core::mem::transmute(grfmode), core::mem::transmute(dwdisposition), core::mem::transmute(ppstg), core::mem::transmute(pucodepage.unwrap_or(core::mem::zeroed()))).ok() + SHPropStgCreate(psstg.param().abi(), fmtid, core::mem::transmute(pclsid.unwrap_or(core::mem::zeroed())), grfflags, grfmode, dwdisposition, core::mem::transmute(ppstg), core::mem::transmute(pucodepage.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -661,7 +661,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHPropStgReadMultiple(pps : * mut core::ffi::c_void, ucodepage : u32, cpspec : u32, rgpspec : *const super::super::super::System::Com::StructuredStorage:: PROPSPEC, rgvar : *mut super::super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHPropStgReadMultiple(pps.param().abi(), core::mem::transmute(ucodepage), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), &mut result__).map(|| core::mem::transmute(result__)) + SHPropStgReadMultiple(pps.param().abi(), ucodepage, cpspec, rgpspec, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -670,7 +670,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHPropStgWriteMultiple(pps : * mut core::ffi::c_void, pucodepage : *mut u32, cpspec : u32, rgpspec : *const super::super::super::System::Com::StructuredStorage:: PROPSPEC, rgvar : *mut super::super::super::System::Com::StructuredStorage:: PROPVARIANT, propidnamefirst : u32) -> windows_core::HRESULT); - SHPropStgWriteMultiple(pps.param().abi(), core::mem::transmute(pucodepage.unwrap_or(core::mem::zeroed())), core::mem::transmute(cpspec), core::mem::transmute(rgpspec), core::mem::transmute(rgvar), core::mem::transmute(propidnamefirst)).ok() + SHPropStgWriteMultiple(pps.param().abi(), core::mem::transmute(pucodepage.unwrap_or(core::mem::zeroed())), cpspec, rgpspec, core::mem::transmute(rgvar), propidnamefirst).ok() } pub const FPSPS_DEFAULT: _PERSIST_SPROPSTORE_FLAGS = _PERSIST_SPROPSTORE_FLAGS(0i32); pub const FPSPS_READONLY: _PERSIST_SPROPSTORE_FLAGS = _PERSIST_SPROPSTORE_FLAGS(1i32); @@ -735,7 +735,7 @@ impl ICreateObject { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), clsid, punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -773,7 +773,7 @@ impl IDelayedPropertyStoreFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetDelayedPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(dwstoreid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDelayedPropertyStore)(windows_core::Interface::as_raw(self), flags, dwstoreid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -804,7 +804,7 @@ impl IInitializeWithFile { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszfilepath.param().abi(), core::mem::transmute(grfmode)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszfilepath.param().abi(), grfmode).ok() } } #[repr(C)] @@ -836,7 +836,7 @@ impl IInitializeWithStream { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(grfmode)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), grfmode).ok() } } #[repr(C)] @@ -890,7 +890,7 @@ impl INamedPropertyStore { } pub unsafe fn GetNameAt(&self, iprop: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNameAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iprop), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetNameAt)(windows_core::Interface::as_raw(self), iprop, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -969,7 +969,7 @@ windows_core::imp::define_interface!(IObjectWithPropertyKey, IObjectWithProperty windows_core::imp::interface_hierarchy!(IObjectWithPropertyKey, windows_core::IUnknown); impl IObjectWithPropertyKey { pub unsafe fn SetPropertyKey(&self, key: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertyKey)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).SetPropertyKey)(windows_core::Interface::as_raw(self), key).ok() } pub unsafe fn GetPropertyKey(&self, pkey: *mut super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPropertyKey)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey)).ok() @@ -1010,10 +1010,10 @@ windows_core::imp::define_interface!(IPersistSerializedPropStorage, IPersistSeri windows_core::imp::interface_hierarchy!(IPersistSerializedPropStorage, windows_core::IUnknown); impl IPersistSerializedPropStorage { pub unsafe fn SetFlags(&self, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), flags).ok() } pub unsafe fn SetPropertyStorage(&self, psps: PCUSERIALIZEDPROPSTORAGE, cb: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPropertyStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(psps), core::mem::transmute(cb)).ok() + (windows_core::Interface::vtable(self).SetPropertyStorage)(windows_core::Interface::as_raw(self), psps, cb).ok() } pub unsafe fn GetPropertyStorage(&self, ppsps: *mut *mut SERIALIZEDPROPSTORAGE, pcb: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPropertyStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsps), core::mem::transmute(pcb)).ok() @@ -1071,7 +1071,7 @@ impl IPersistSerializedPropStorage2 { (windows_core::Interface::vtable(self).GetPropertyStorageSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetPropertyStorageBuffer(&self, psps: *mut SERIALIZEDPROPSTORAGE, cb: u32, pcbwritten: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyStorageBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(psps), core::mem::transmute(cb), core::mem::transmute(pcbwritten)).ok() + (windows_core::Interface::vtable(self).GetPropertyStorageBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(psps), cb, core::mem::transmute(pcbwritten)).ok() } } #[repr(C)] @@ -1171,13 +1171,13 @@ impl IPropertyChangeArray { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), iindex, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertAt(&self, iindex: u32, ppropchange: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), ppropchange.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), iindex, ppropchange.param().abi()).ok() } pub unsafe fn Append(&self, ppropchange: P0) -> windows_core::Result<()> where @@ -1192,10 +1192,10 @@ impl IPropertyChangeArray { (windows_core::Interface::vtable(self).AppendOrReplace)(windows_core::Interface::as_raw(self), ppropchange.param().abi()).ok() } pub unsafe fn RemoveAt(&self, iindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex)).ok() + (windows_core::Interface::vtable(self).RemoveAt)(windows_core::Interface::as_raw(self), iindex).ok() } pub unsafe fn IsKeyInArray(&self, key: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsKeyInArray)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).IsKeyInArray)(windows_core::Interface::as_raw(self), key).ok() } } #[repr(C)] @@ -1294,7 +1294,7 @@ impl IPropertyDescription { } pub unsafe fn GetTypeFlags(&self, mask: PROPDESC_TYPE_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(mask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTypeFlags)(windows_core::Interface::as_raw(self), mask, &mut result__).map(|| result__) } pub unsafe fn GetViewFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1354,7 +1354,7 @@ impl IPropertyDescription { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn FormatForDisplay(&self, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pdfflags: PROPDESC_FORMAT_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatForDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(propvar), core::mem::transmute(pdfflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FormatForDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(propvar), pdfflags, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn IsValueCanonical(&self, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { @@ -1751,7 +1751,7 @@ impl IPropertyDescriptionList { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ielem), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), ielem, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2104,14 +2104,14 @@ impl IPropertyEnumTypeList { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(itype), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), itype, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetConditionAt(&self, nindex: u32) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetConditionAt)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConditionAt)(windows_core::Interface::as_raw(self), nindex, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn FindMatchingIndex(&self, propvarcmp: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result { @@ -2190,16 +2190,16 @@ impl IPropertyStore { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetAt(&self, iprop: u32, pkey: *mut super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(iprop), core::mem::transmute(pkey)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), iprop, core::mem::transmute(pkey)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, key: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, key: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(propvar)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), key, core::mem::transmute(propvar)).ok() } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -2289,18 +2289,18 @@ windows_core::imp::interface_hierarchy!(IPropertyStoreCache, windows_core::IUnkn impl IPropertyStoreCache { pub unsafe fn GetState(&self, key: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValueAndState(&self, key: *const super::super::super::Foundation::PROPERTYKEY, ppropvar: *mut super::super::super::System::Com::StructuredStorage::PROPVARIANT, pstate: *mut PSC_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetValueAndState)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(ppropvar), core::mem::transmute(pstate)).ok() + (windows_core::Interface::vtable(self).GetValueAndState)(windows_core::Interface::as_raw(self), key, core::mem::transmute(ppropvar), core::mem::transmute(pstate)).ok() } pub unsafe fn SetState(&self, key: *const super::super::super::Foundation::PROPERTYKEY, state: PSC_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), key, state).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn SetValueAndState(&self, key: *const super::super::super::Foundation::PROPERTYKEY, ppropvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, state: PSC_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValueAndState)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(ppropvar), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetValueAndState)(windows_core::Interface::as_raw(self), key, core::mem::transmute(ppropvar), state).ok() } } #[repr(C)] @@ -2367,7 +2367,7 @@ windows_core::imp::define_interface!(IPropertyStoreCapabilities, IPropertyStoreC windows_core::imp::interface_hierarchy!(IPropertyStoreCapabilities, windows_core::IUnknown); impl IPropertyStoreCapabilities { pub unsafe fn IsPropertyWritable(&self, key: *const super::super::super::Foundation::PROPERTYKEY) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).IsPropertyWritable)(windows_core::Interface::as_raw(self), core::mem::transmute(key)) + (windows_core::Interface::vtable(self).IsPropertyWritable)(windows_core::Interface::as_raw(self), key) } } #[repr(C)] @@ -2400,14 +2400,14 @@ impl IPropertyStoreFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), punkfactory.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), flags, punkfactory.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyStoreForKeys(&self, rgkeys: *const super::super::super::Foundation::PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStoreForKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(rgkeys), core::mem::transmute(ckeys), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyStoreForKeys)(windows_core::Interface::as_raw(self), rgkeys, ckeys, flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2449,7 +2449,7 @@ impl IPropertySystem { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyDescription)(windows_core::Interface::as_raw(self), propkey, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyDescriptionByName(&self, pszcanonicalname: P0) -> windows_core::Result where @@ -2472,16 +2472,16 @@ impl IPropertySystem { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).EnumeratePropertyDescriptions)(windows_core::Interface::as_raw(self), core::mem::transmute(filteron), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumeratePropertyDescriptions)(windows_core::Interface::as_raw(self), filteron, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn FormatForDisplay(&self, key: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pdff: PROPDESC_FORMAT_FLAGS, psztext: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FormatForDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(propvar), core::mem::transmute(pdff), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).FormatForDisplay)(windows_core::Interface::as_raw(self), key, core::mem::transmute(propvar), pdff, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn FormatForDisplayAlloc(&self, key: *const super::super::super::Foundation::PROPERTYKEY, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pdff: PROPDESC_FORMAT_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatForDisplayAlloc)(windows_core::Interface::as_raw(self), core::mem::transmute(key), core::mem::transmute(propvar), core::mem::transmute(pdff), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FormatForDisplayAlloc)(windows_core::Interface::as_raw(self), key, core::mem::transmute(propvar), pdff, &mut result__).map(|| result__) } pub unsafe fn RegisterPropertySchema(&self, pszpath: P0) -> windows_core::Result<()> where @@ -2632,28 +2632,28 @@ impl IPropertyUI { (windows_core::Interface::vtable(self).ParsePropertyName)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pfmtid), core::mem::transmute(ppid), core::mem::transmute(pcheaten)).ok() } pub unsafe fn GetCannonicalName(&self, fmtid: *const windows_core::GUID, pid: u32, pwsztext: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCannonicalName)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetCannonicalName)(windows_core::Interface::as_raw(self), fmtid, pid, core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() } pub unsafe fn GetDisplayName(&self, fmtid: *const windows_core::GUID, pid: u32, flags: PROPERTYUI_NAME_FLAGS, pwsztext: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), core::mem::transmute(flags), core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), fmtid, pid, flags, core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() } pub unsafe fn GetPropertyDescription(&self, fmtid: *const windows_core::GUID, pid: u32, pwsztext: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPropertyDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetPropertyDescription)(windows_core::Interface::as_raw(self), fmtid, pid, core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() } pub unsafe fn GetDefaultWidth(&self, fmtid: *const windows_core::GUID, pid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultWidth)(windows_core::Interface::as_raw(self), fmtid, pid, &mut result__).map(|| result__) } pub unsafe fn GetFlags(&self, fmtid: *const windows_core::GUID, pid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), fmtid, pid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn FormatForDisplay(&self, fmtid: *const windows_core::GUID, pid: u32, ppropvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, puiff: PROPERTYUI_FORMAT_FLAGS, pwsztext: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FormatForDisplay)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), core::mem::transmute(ppropvar), core::mem::transmute(puiff), core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).FormatForDisplay)(windows_core::Interface::as_raw(self), fmtid, pid, core::mem::transmute(ppropvar), puiff, core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() } pub unsafe fn GetHelpInfo(&self, fmtid: *const windows_core::GUID, pid: u32, pwszhelpfile: &mut [u16], puhelpid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHelpInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(fmtid), core::mem::transmute(pid), core::mem::transmute(pwszhelpfile.as_ptr()), pwszhelpfile.len().try_into().unwrap(), core::mem::transmute(puhelpid)).ok() + (windows_core::Interface::vtable(self).GetHelpInfo)(windows_core::Interface::as_raw(self), fmtid, pid, core::mem::transmute(pwszhelpfile.as_ptr()), pwszhelpfile.len().try_into().unwrap(), core::mem::transmute(puhelpid)).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs index 85a94ff221..78be975b79 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -28,7 +28,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn AssocGetDetailsOfPropKey(psf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pv : *mut super::super::System::Variant:: VARIANT, pffoundpropkey : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - AssocGetDetailsOfPropKey(psf.param().abi(), core::mem::transmute(pidl), core::mem::transmute(pkey), core::mem::transmute(pv), core::mem::transmute(pffoundpropkey.unwrap_or(core::mem::zeroed()))).ok() + AssocGetDetailsOfPropKey(psf.param().abi(), pidl, pkey, core::mem::transmute(pv), core::mem::transmute(pffoundpropkey.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -56,7 +56,7 @@ where { windows_targets::link!("shlwapi.dll" "system" fn AssocQueryKeyA(flags : ASSOCF, key : ASSOCKEY, pszassoc : windows_core::PCSTR, pszextra : windows_core::PCSTR, phkeyout : *mut super::super::System::Registry:: HKEY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AssocQueryKeyA(core::mem::transmute(flags), core::mem::transmute(key), pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AssocQueryKeyA(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -67,7 +67,7 @@ where { windows_targets::link!("shlwapi.dll" "system" fn AssocQueryKeyW(flags : ASSOCF, key : ASSOCKEY, pszassoc : windows_core::PCWSTR, pszextra : windows_core::PCWSTR, phkeyout : *mut super::super::System::Registry:: HKEY) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - AssocQueryKeyW(core::mem::transmute(flags), core::mem::transmute(key), pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AssocQueryKeyW(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn AssocQueryStringA(flags: ASSOCF, str: ASSOCSTR, pszassoc: P2, pszextra: P3, pszout: Option, pcchout: *mut u32) -> windows_core::HRESULT @@ -76,7 +76,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn AssocQueryStringA(flags : ASSOCF, str : ASSOCSTR, pszassoc : windows_core::PCSTR, pszextra : windows_core::PCSTR, pszout : windows_core::PSTR, pcchout : *mut u32) -> windows_core::HRESULT); - AssocQueryStringA(core::mem::transmute(flags), core::mem::transmute(str), pszassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) + AssocQueryStringA(flags, str, pszassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -85,7 +85,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn AssocQueryStringByKeyA(flags : ASSOCF, str : ASSOCSTR, hkassoc : super::super::System::Registry:: HKEY, pszextra : windows_core::PCSTR, pszout : windows_core::PSTR, pcchout : *mut u32) -> windows_core::HRESULT); - AssocQueryStringByKeyA(core::mem::transmute(flags), core::mem::transmute(str), core::mem::transmute(hkassoc), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) + AssocQueryStringByKeyA(flags, str, hkassoc, pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -94,7 +94,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn AssocQueryStringByKeyW(flags : ASSOCF, str : ASSOCSTR, hkassoc : super::super::System::Registry:: HKEY, pszextra : windows_core::PCWSTR, pszout : windows_core::PWSTR, pcchout : *mut u32) -> windows_core::HRESULT); - AssocQueryStringByKeyW(core::mem::transmute(flags), core::mem::transmute(str), core::mem::transmute(hkassoc), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) + AssocQueryStringByKeyW(flags, str, hkassoc, pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) } #[inline] pub unsafe fn AssocQueryStringW(flags: ASSOCF, str: ASSOCSTR, pszassoc: P2, pszextra: P3, pszout: Option, pcchout: *mut u32) -> windows_core::HRESULT @@ -103,7 +103,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn AssocQueryStringW(flags : ASSOCF, str : ASSOCSTR, pszassoc : windows_core::PCWSTR, pszextra : windows_core::PCWSTR, pszout : windows_core::PWSTR, pcchout : *mut u32) -> windows_core::HRESULT); - AssocQueryStringW(core::mem::transmute(flags), core::mem::transmute(str), pszassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) + AssocQueryStringW(flags, str, pszassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -131,32 +131,32 @@ where pub unsafe fn CIDLData_CreateFromIDArray(pidlfolder: *const Common::ITEMIDLIST, apidl: Option<&[*const Common::ITEMIDLIST]>) -> windows_core::Result { windows_targets::link!("shell32.dll" "system" fn CIDLData_CreateFromIDArray(pidlfolder : *const Common:: ITEMIDLIST, cidl : u32, apidl : *const *const Common:: ITEMIDLIST, ppdtobj : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CIDLData_CreateFromIDArray(core::mem::transmute(pidlfolder), apidl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(apidl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CIDLData_CreateFromIDArray(pidlfolder, apidl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(apidl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn ChrCmpIA(w1: u16, w2: u16) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn ChrCmpIA(w1 : u16, w2 : u16) -> super::super::Foundation:: BOOL); - ChrCmpIA(core::mem::transmute(w1), core::mem::transmute(w2)) + ChrCmpIA(w1, w2) } #[inline] pub unsafe fn ChrCmpIW(w1: u16, w2: u16) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn ChrCmpIW(w1 : u16, w2 : u16) -> super::super::Foundation:: BOOL); - ChrCmpIW(core::mem::transmute(w1), core::mem::transmute(w2)) + ChrCmpIW(w1, w2) } #[inline] pub unsafe fn ColorAdjustLuma(clrrgb: super::super::Foundation::COLORREF, n: i32, fscale: bool) -> super::super::Foundation::COLORREF { windows_targets::link!("shlwapi.dll" "system" fn ColorAdjustLuma(clrrgb : super::super::Foundation:: COLORREF, n : i32, fscale : super::super::Foundation:: BOOL) -> super::super::Foundation:: COLORREF); - ColorAdjustLuma(core::mem::transmute(clrrgb), core::mem::transmute(n), fscale.into()) + ColorAdjustLuma(clrrgb, n, fscale.into()) } #[inline] pub unsafe fn ColorHLSToRGB(whue: u16, wluminance: u16, wsaturation: u16) -> super::super::Foundation::COLORREF { windows_targets::link!("shlwapi.dll" "system" fn ColorHLSToRGB(whue : u16, wluminance : u16, wsaturation : u16) -> super::super::Foundation:: COLORREF); - ColorHLSToRGB(core::mem::transmute(whue), core::mem::transmute(wluminance), core::mem::transmute(wsaturation)) + ColorHLSToRGB(whue, wluminance, wsaturation) } #[inline] pub unsafe fn ColorRGBToHLS(clrrgb: super::super::Foundation::COLORREF, pwhue: *mut u16, pwluminance: *mut u16, pwsaturation: *mut u16) { windows_targets::link!("shlwapi.dll" "system" fn ColorRGBToHLS(clrrgb : super::super::Foundation:: COLORREF, pwhue : *mut u16, pwluminance : *mut u16, pwsaturation : *mut u16)); - ColorRGBToHLS(core::mem::transmute(clrrgb), core::mem::transmute(pwhue), core::mem::transmute(pwluminance), core::mem::transmute(pwsaturation)) + ColorRGBToHLS(clrrgb, core::mem::transmute(pwhue), core::mem::transmute(pwluminance), core::mem::transmute(pwsaturation)) } #[inline] pub unsafe fn CommandLineToArgvW(lpcmdline: P0, pnumargs: *mut i32) -> *mut windows_core::PWSTR @@ -174,7 +174,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn ConnectToConnectionPoint(punk : * mut core::ffi::c_void, riidevent : *const windows_core::GUID, fconnect : super::super::Foundation:: BOOL, punktarget : * mut core::ffi::c_void, pdwcookie : *mut u32, ppcpout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - ConnectToConnectionPoint(punk.param().abi(), core::mem::transmute(riidevent), fconnect.into(), punktarget.param().abi(), core::mem::transmute(pdwcookie), core::mem::transmute(ppcpout.unwrap_or(core::mem::zeroed()))).ok() + ConnectToConnectionPoint(punk.param().abi(), riidevent, fconnect.into(), punktarget.param().abi(), core::mem::transmute(pdwcookie), core::mem::transmute(ppcpout.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CreateProfile(pszusersid: P0, pszusername: P1, pszprofilepath: &mut [u16]) -> windows_core::Result<()> @@ -188,12 +188,12 @@ where #[inline] pub unsafe fn DAD_AutoScroll(hwnd: super::super::Foundation::HWND, pad: *mut AUTO_SCROLL_DATA, pptnow: *const super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn DAD_AutoScroll(hwnd : super::super::Foundation:: HWND, pad : *mut AUTO_SCROLL_DATA, pptnow : *const super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - DAD_AutoScroll(core::mem::transmute(hwnd), core::mem::transmute(pad), core::mem::transmute(pptnow)) + DAD_AutoScroll(hwnd, core::mem::transmute(pad), pptnow) } #[inline] pub unsafe fn DAD_DragEnterEx(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn DAD_DragEnterEx(hwndtarget : super::super::Foundation:: HWND, ptstart : super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - DAD_DragEnterEx(core::mem::transmute(hwndtarget), core::mem::transmute(ptstart)) + DAD_DragEnterEx(hwndtarget, core::mem::transmute(ptstart)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -202,7 +202,7 @@ where P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DAD_DragEnterEx2(hwndtarget : super::super::Foundation:: HWND, ptstart : super::super::Foundation:: POINT, pdtobject : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - DAD_DragEnterEx2(core::mem::transmute(hwndtarget), core::mem::transmute(ptstart), pdtobject.param().abi()) + DAD_DragEnterEx2(hwndtarget, core::mem::transmute(ptstart), pdtobject.param().abi()) } #[inline] pub unsafe fn DAD_DragLeave() -> super::super::Foundation::BOOL { @@ -218,7 +218,7 @@ pub unsafe fn DAD_DragMove(pt: super::super::Foundation::POINT) -> super::super: #[inline] pub unsafe fn DAD_SetDragImage(him: super::Controls::HIMAGELIST, pptoffset: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn DAD_SetDragImage(him : super::Controls:: HIMAGELIST, pptoffset : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - DAD_SetDragImage(core::mem::transmute(him), core::mem::transmute(pptoffset)) + DAD_SetDragImage(him, core::mem::transmute(pptoffset)) } #[inline] pub unsafe fn DAD_ShowDragImage(fshow: bool) -> super::super::Foundation::BOOL { @@ -228,7 +228,7 @@ pub unsafe fn DAD_ShowDragImage(fshow: bool) -> super::super::Foundation::BOOL { #[inline] pub unsafe fn DefSubclassProc(hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("comctl32.dll" "system" fn DefSubclassProc(hwnd : super::super::Foundation:: HWND, umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefSubclassProc(core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefSubclassProc(hwnd, umsg, wparam, lparam) } #[inline] pub unsafe fn DeleteProfileA(lpsidstring: P0, lpprofilepath: P1, lpcomputername: P2) -> windows_core::Result<()> @@ -263,38 +263,38 @@ pub unsafe fn DoEnvironmentSubstW(pszsrc: &mut [u16]) -> u32 { #[inline] pub unsafe fn DragAcceptFiles(hwnd: super::super::Foundation::HWND, faccept: bool) { windows_targets::link!("shell32.dll" "system" fn DragAcceptFiles(hwnd : super::super::Foundation:: HWND, faccept : super::super::Foundation:: BOOL)); - DragAcceptFiles(core::mem::transmute(hwnd), faccept.into()) + DragAcceptFiles(hwnd, faccept.into()) } #[inline] pub unsafe fn DragFinish(hdrop: HDROP) { windows_targets::link!("shell32.dll" "system" fn DragFinish(hdrop : HDROP)); - DragFinish(core::mem::transmute(hdrop)) + DragFinish(hdrop) } #[inline] pub unsafe fn DragQueryFileA(hdrop: HDROP, ifile: u32, lpszfile: Option<&mut [u8]>) -> u32 { windows_targets::link!("shell32.dll" "system" fn DragQueryFileA(hdrop : HDROP, ifile : u32, lpszfile : windows_core::PSTR, cch : u32) -> u32); - DragQueryFileA(core::mem::transmute(hdrop), core::mem::transmute(ifile), core::mem::transmute(lpszfile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + DragQueryFileA(hdrop, ifile, core::mem::transmute(lpszfile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn DragQueryFileW(hdrop: HDROP, ifile: u32, lpszfile: Option<&mut [u16]>) -> u32 { windows_targets::link!("shell32.dll" "system" fn DragQueryFileW(hdrop : HDROP, ifile : u32, lpszfile : windows_core::PWSTR, cch : u32) -> u32); - DragQueryFileW(core::mem::transmute(hdrop), core::mem::transmute(ifile), core::mem::transmute(lpszfile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + DragQueryFileW(hdrop, ifile, core::mem::transmute(lpszfile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn DragQueryPoint(hdrop: HDROP, ppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn DragQueryPoint(hdrop : HDROP, ppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - DragQueryPoint(core::mem::transmute(hdrop), core::mem::transmute(ppt)) + DragQueryPoint(hdrop, core::mem::transmute(ppt)) } #[inline] pub unsafe fn DriveType(idrive: i32) -> i32 { windows_targets::link!("shell32.dll" "system" fn DriveType(idrive : i32) -> i32); - DriveType(core::mem::transmute(idrive)) + DriveType(idrive) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn DuplicateIcon(hinst: Option, hicon: super::WindowsAndMessaging::HICON) -> super::WindowsAndMessaging::HICON { windows_targets::link!("shell32.dll" "system" fn DuplicateIcon(hinst : super::super::Foundation:: HINSTANCE, hicon : super::WindowsAndMessaging:: HICON) -> super::WindowsAndMessaging:: HICON); - DuplicateIcon(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hicon)) + DuplicateIcon(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), hicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -327,7 +327,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractIconA(hinst : super::super::Foundation:: HINSTANCE, pszexefilename : windows_core::PCSTR, niconindex : u32) -> super::WindowsAndMessaging:: HICON); - ExtractIconA(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszexefilename.param().abi(), core::mem::transmute(niconindex)) + ExtractIconA(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszexefilename.param().abi(), niconindex) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -336,7 +336,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractIconExA(lpszfile : windows_core::PCSTR, niconindex : i32, phiconlarge : *mut super::WindowsAndMessaging:: HICON, phiconsmall : *mut super::WindowsAndMessaging:: HICON, nicons : u32) -> u32); - ExtractIconExA(lpszfile.param().abi(), core::mem::transmute(niconindex), core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), core::mem::transmute(nicons)) + ExtractIconExA(lpszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), nicons) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -345,7 +345,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractIconExW(lpszfile : windows_core::PCWSTR, niconindex : i32, phiconlarge : *mut super::WindowsAndMessaging:: HICON, phiconsmall : *mut super::WindowsAndMessaging:: HICON, nicons : u32) -> u32); - ExtractIconExW(lpszfile.param().abi(), core::mem::transmute(niconindex), core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), core::mem::transmute(nicons)) + ExtractIconExW(lpszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), nicons) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -354,7 +354,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractIconW(hinst : super::super::Foundation:: HINSTANCE, pszexefilename : windows_core::PCWSTR, niconindex : u32) -> super::WindowsAndMessaging:: HICON); - ExtractIconW(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszexefilename.param().abi(), core::mem::transmute(niconindex)) + ExtractIconW(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), pszexefilename.param().abi(), niconindex) } #[inline] pub unsafe fn FindExecutableA(lpfile: P0, lpdirectory: P1, lpresult: &mut [u8; 260]) -> super::super::Foundation::HINSTANCE @@ -413,7 +413,7 @@ pub unsafe fn GetDefaultUserProfileDirectoryW(lpprofiledir: Option u32 { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-2.dll" "system" fn GetDpiForShellUIComponent(param0 : SHELL_UI_COMPONENT) -> u32); - GetDpiForShellUIComponent(core::mem::transmute(param0)) + GetDpiForShellUIComponent(param0) } #[inline] pub unsafe fn GetFileNameFromBrowse(hwnd: Option, pszfilepath: &mut [u16], pszworkingdir: P3, pszdefext: P4, pszfilters: P5, psztitle: P6) -> super::super::Foundation::BOOL @@ -430,13 +430,13 @@ where #[inline] pub unsafe fn GetMenuContextHelpId(param0: super::WindowsAndMessaging::HMENU) -> u32 { windows_targets::link!("user32.dll" "system" fn GetMenuContextHelpId(param0 : super::WindowsAndMessaging:: HMENU) -> u32); - GetMenuContextHelpId(core::mem::transmute(param0)) + GetMenuContextHelpId(param0) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetMenuPosFromID(hmenu: super::WindowsAndMessaging::HMENU, id: u32) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn GetMenuPosFromID(hmenu : super::WindowsAndMessaging:: HMENU, id : u32) -> i32); - GetMenuPosFromID(core::mem::transmute(hmenu), core::mem::transmute(id)) + GetMenuPosFromID(hmenu, id) } #[inline] pub unsafe fn GetProfileType(dwflags: *mut u32) -> windows_core::Result<()> { @@ -457,82 +457,82 @@ pub unsafe fn GetProfilesDirectoryW(lpprofiledir: Option, l #[inline] pub unsafe fn GetScaleFactorForDevice(devicetype: DISPLAY_DEVICE_TYPE) -> Common::DEVICE_SCALE_FACTOR { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-0.dll" "system" fn GetScaleFactorForDevice(devicetype : DISPLAY_DEVICE_TYPE) -> Common:: DEVICE_SCALE_FACTOR); - GetScaleFactorForDevice(core::mem::transmute(devicetype)) + GetScaleFactorForDevice(devicetype) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn GetScaleFactorForMonitor(hmon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn GetScaleFactorForMonitor(hmon : super::super::Graphics::Gdi:: HMONITOR, pscale : *mut Common:: DEVICE_SCALE_FACTOR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - GetScaleFactorForMonitor(core::mem::transmute(hmon), &mut result__).map(|| core::mem::transmute(result__)) + GetScaleFactorForMonitor(hmon, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn GetUserProfileDirectoryA(htoken: super::super::Foundation::HANDLE, lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn GetUserProfileDirectoryA(htoken : super::super::Foundation:: HANDLE, lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); - GetUserProfileDirectoryA(core::mem::transmute(htoken), core::mem::transmute(lpprofiledir.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchsize)).ok() + GetUserProfileDirectoryA(htoken, core::mem::transmute(lpprofiledir.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchsize)).ok() } #[inline] pub unsafe fn GetUserProfileDirectoryW(htoken: super::super::Foundation::HANDLE, lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn GetUserProfileDirectoryW(htoken : super::super::Foundation:: HANDLE, lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); - GetUserProfileDirectoryW(core::mem::transmute(htoken), core::mem::transmute(lpprofiledir.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchsize)).ok() + GetUserProfileDirectoryW(htoken, core::mem::transmute(lpprofiledir.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcchsize)).ok() } #[inline] pub unsafe fn GetWindowContextHelpId(param0: super::super::Foundation::HWND) -> u32 { windows_targets::link!("user32.dll" "system" fn GetWindowContextHelpId(param0 : super::super::Foundation:: HWND) -> u32); - GetWindowContextHelpId(core::mem::transmute(param0)) + GetWindowContextHelpId(param0) } #[inline] pub unsafe fn GetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, pdwrefdata: Option<*mut usize>) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn GetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, pdwrefdata : *mut usize) -> super::super::Foundation:: BOOL); - GetWindowSubclass(core::mem::transmute(hwnd), core::mem::transmute(pfnsubclass), core::mem::transmute(uidsubclass), core::mem::transmute(pdwrefdata.unwrap_or(core::mem::zeroed()))) + GetWindowSubclass(hwnd, pfnsubclass, uidsubclass, core::mem::transmute(pdwrefdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserFree(param0: *const u32, param1: *const super::super::Graphics::Gdi::HMONITOR) { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserFree(param0 : *const u32, param1 : *const super::super::Graphics::Gdi:: HMONITOR)); - HMONITOR_UserFree(core::mem::transmute(param0), core::mem::transmute(param1)) + HMONITOR_UserFree(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserFree64(param0: *const u32, param1: *const super::super::Graphics::Gdi::HMONITOR) { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserFree64(param0 : *const u32, param1 : *const super::super::Graphics::Gdi:: HMONITOR)); - HMONITOR_UserFree64(core::mem::transmute(param0), core::mem::transmute(param1)) + HMONITOR_UserFree64(param0, param1) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserMarshal(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::Graphics::Gdi:: HMONITOR) -> *mut u8); - HMONITOR_UserMarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMONITOR_UserMarshal(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserMarshal64(param0 : *const u32, param1 : *mut u8, param2 : *const super::super::Graphics::Gdi:: HMONITOR) -> *mut u8); - HMONITOR_UserMarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMONITOR_UserMarshal64(param0, core::mem::transmute(param1), param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserSize(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HMONITOR) -> u32 { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserSize(param0 : *const u32, param1 : u32, param2 : *const super::super::Graphics::Gdi:: HMONITOR) -> u32); - HMONITOR_UserSize(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMONITOR_UserSize(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HMONITOR) -> u32 { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserSize64(param0 : *const u32, param1 : u32, param2 : *const super::super::Graphics::Gdi:: HMONITOR) -> u32); - HMONITOR_UserSize64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMONITOR_UserSize64(param0, param1, param2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserUnmarshal(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::Graphics::Gdi:: HMONITOR) -> *mut u8); - HMONITOR_UserUnmarshal(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMONITOR_UserUnmarshal(param0, param1, core::mem::transmute(param2)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { windows_targets::link!("ole32.dll" "system" fn HMONITOR_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super::super::Graphics::Gdi:: HMONITOR) -> *mut u8); - HMONITOR_UserUnmarshal64(core::mem::transmute(param0), core::mem::transmute(param1), core::mem::transmute(param2)) + HMONITOR_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } #[inline] pub unsafe fn HashData(pbdata: &[u8], pbhash: &mut [u8]) -> windows_core::Result<()> { @@ -548,7 +548,7 @@ where { windows_targets::link!("hlink.dll" "system" fn HlinkClone(pihl : * mut core::ffi::c_void, riid : *const windows_core::GUID, pihlsiteforclone : * mut core::ffi::c_void, dwsitedata : u32, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - HlinkClone(pihl.param().abi(), &T::IID, pihlsiteforclone.param().abi(), core::mem::transmute(dwsitedata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkClone(pihl.param().abi(), &T::IID, pihlsiteforclone.param().abi(), dwsitedata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn HlinkCreateBrowseContext(piunkouter: P0) -> windows_core::Result @@ -571,7 +571,7 @@ where { windows_targets::link!("hlink.dll" "system" fn HlinkCreateExtensionServices(pwzadditionalheaders : windows_core::PCWSTR, phwnd : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, piunkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - HlinkCreateExtensionServices(pwzadditionalheaders.param().abi(), core::mem::transmute(phwnd), pszusername.param().abi(), pszpassword.param().abi(), piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkCreateExtensionServices(pwzadditionalheaders.param().abi(), phwnd, pszusername.param().abi(), pszpassword.param().abi(), piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -584,7 +584,7 @@ where { windows_targets::link!("hlink.dll" "system" fn HlinkCreateFromData(pidataobj : * mut core::ffi::c_void, pihlsite : * mut core::ffi::c_void, dwsitedata : u32, piunkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - HlinkCreateFromData(pidataobj.param().abi(), pihlsite.param().abi(), core::mem::transmute(dwsitedata), piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkCreateFromData(pidataobj.param().abi(), pihlsite.param().abi(), dwsitedata, piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -599,7 +599,7 @@ where { windows_targets::link!("hlink.dll" "system" fn HlinkCreateFromMoniker(pimktrgt : * mut core::ffi::c_void, pwzlocation : windows_core::PCWSTR, pwzfriendlyname : windows_core::PCWSTR, pihlsite : * mut core::ffi::c_void, dwsitedata : u32, piunkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - HlinkCreateFromMoniker(pimktrgt.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), pihlsite.param().abi(), core::mem::transmute(dwsitedata), piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkCreateFromMoniker(pimktrgt.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), pihlsite.param().abi(), dwsitedata, piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn HlinkCreateFromString(pwztarget: P0, pwzlocation: P1, pwzfriendlyname: P2, pihlsite: P3, dwsitedata: u32, piunkouter: P5) -> windows_core::Result @@ -613,7 +613,7 @@ where { windows_targets::link!("hlink.dll" "system" fn HlinkCreateFromString(pwztarget : windows_core::PCWSTR, pwzlocation : windows_core::PCWSTR, pwzfriendlyname : windows_core::PCWSTR, pihlsite : * mut core::ffi::c_void, dwsitedata : u32, piunkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - HlinkCreateFromString(pwztarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), pihlsite.param().abi(), core::mem::transmute(dwsitedata), piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkCreateFromString(pwztarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), pihlsite.param().abi(), dwsitedata, piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn HlinkCreateShortcut(grfhlshortcutf: u32, pihl: P1, pwzdir: P2, pwzfilename: P3, ppwzshortcutfile: *mut windows_core::PWSTR, dwreserved: u32) -> windows_core::Result<()> @@ -623,7 +623,7 @@ where P3: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkCreateShortcut(grfhlshortcutf : u32, pihl : * mut core::ffi::c_void, pwzdir : windows_core::PCWSTR, pwzfilename : windows_core::PCWSTR, ppwzshortcutfile : *mut windows_core::PWSTR, dwreserved : u32) -> windows_core::HRESULT); - HlinkCreateShortcut(core::mem::transmute(grfhlshortcutf), pihl.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), core::mem::transmute(ppwzshortcutfile), core::mem::transmute(dwreserved)).ok() + HlinkCreateShortcut(grfhlshortcutf, pihl.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), core::mem::transmute(ppwzshortcutfile), dwreserved).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -635,7 +635,7 @@ where P4: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkCreateShortcutFromMoniker(grfhlshortcutf : u32, pimktarget : * mut core::ffi::c_void, pwzlocation : windows_core::PCWSTR, pwzdir : windows_core::PCWSTR, pwzfilename : windows_core::PCWSTR, ppwzshortcutfile : *mut windows_core::PWSTR, dwreserved : u32) -> windows_core::HRESULT); - HlinkCreateShortcutFromMoniker(core::mem::transmute(grfhlshortcutf), pimktarget.param().abi(), pwzlocation.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), core::mem::transmute(ppwzshortcutfile), core::mem::transmute(dwreserved)).ok() + HlinkCreateShortcutFromMoniker(grfhlshortcutf, pimktarget.param().abi(), pwzlocation.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), core::mem::transmute(ppwzshortcutfile), dwreserved).ok() } #[inline] pub unsafe fn HlinkCreateShortcutFromString(grfhlshortcutf: u32, pwztarget: P1, pwzlocation: P2, pwzdir: P3, pwzfilename: P4, ppwzshortcutfile: *mut windows_core::PWSTR, dwreserved: u32) -> windows_core::Result<()> @@ -646,13 +646,13 @@ where P4: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkCreateShortcutFromString(grfhlshortcutf : u32, pwztarget : windows_core::PCWSTR, pwzlocation : windows_core::PCWSTR, pwzdir : windows_core::PCWSTR, pwzfilename : windows_core::PCWSTR, ppwzshortcutfile : *mut windows_core::PWSTR, dwreserved : u32) -> windows_core::HRESULT); - HlinkCreateShortcutFromString(core::mem::transmute(grfhlshortcutf), pwztarget.param().abi(), pwzlocation.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), core::mem::transmute(ppwzshortcutfile), core::mem::transmute(dwreserved)).ok() + HlinkCreateShortcutFromString(grfhlshortcutf, pwztarget.param().abi(), pwzlocation.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), core::mem::transmute(ppwzshortcutfile), dwreserved).ok() } #[inline] pub unsafe fn HlinkGetSpecialReference(ureference: u32) -> windows_core::Result { windows_targets::link!("hlink.dll" "system" fn HlinkGetSpecialReference(ureference : u32, ppwzreference : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HlinkGetSpecialReference(core::mem::transmute(ureference), &mut result__).map(|| core::mem::transmute(result__)) + HlinkGetSpecialReference(ureference, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn HlinkGetValueFromParams(pwzparams: P0, pwzname: P1) -> windows_core::Result @@ -683,7 +683,7 @@ where P5: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkNavigate(pihl : * mut core::ffi::c_void, pihlframe : * mut core::ffi::c_void, grfhlnf : u32, pbc : * mut core::ffi::c_void, pibsc : * mut core::ffi::c_void, pihlbc : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkNavigate(pihl.param().abi(), pihlframe.param().abi(), core::mem::transmute(grfhlnf), pbc.param().abi(), pibsc.param().abi(), pihlbc.param().abi()).ok() + HlinkNavigate(pihl.param().abi(), pihlframe.param().abi(), grfhlnf, pbc.param().abi(), pibsc.param().abi(), pihlbc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -698,7 +698,7 @@ where P8: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkNavigateToStringReference(pwztarget : windows_core::PCWSTR, pwzlocation : windows_core::PCWSTR, pihlsite : * mut core::ffi::c_void, dwsitedata : u32, pihlframe : * 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); - HlinkNavigateToStringReference(pwztarget.param().abi(), pwzlocation.param().abi(), pihlsite.param().abi(), core::mem::transmute(dwsitedata), pihlframe.param().abi(), core::mem::transmute(grfhlnf), pibc.param().abi(), pibsc.param().abi(), pihlbc.param().abi()).ok() + HlinkNavigateToStringReference(pwztarget.param().abi(), pwzlocation.param().abi(), pihlsite.param().abi(), dwsitedata, pihlframe.param().abi(), grfhlnf, pibc.param().abi(), pibsc.param().abi(), pihlbc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -711,7 +711,7 @@ where P5: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkOnNavigate(pihlframe : * mut core::ffi::c_void, pihlbc : * 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); - HlinkOnNavigate(pihlframe.param().abi(), pihlbc.param().abi(), core::mem::transmute(grfhlnf), pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), core::mem::transmute(puhlid)).ok() + HlinkOnNavigate(pihlframe.param().abi(), pihlbc.param().abi(), grfhlnf, pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), core::mem::transmute(puhlid)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -722,7 +722,7 @@ where P3: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkOnRenameDocument(dwreserved : u32, pihlbc : * mut core::ffi::c_void, pimkold : * mut core::ffi::c_void, pimknew : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkOnRenameDocument(core::mem::transmute(dwreserved), pihlbc.param().abi(), pimkold.param().abi(), pimknew.param().abi()).ok() + HlinkOnRenameDocument(dwreserved, pihlbc.param().abi(), pimkold.param().abi(), pimknew.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -764,7 +764,7 @@ where P6: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkResolveMonikerForData(pimkreference : * mut core::ffi::c_void, reserved : u32, pibc : * mut core::ffi::c_void, cfmtetc : u32, rgfmtetc : *mut super::super::System::Com:: FORMATETC, pibsc : * mut core::ffi::c_void, pimkbase : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkResolveMonikerForData(pimkreference.param().abi(), core::mem::transmute(reserved), pibc.param().abi(), core::mem::transmute(cfmtetc), core::mem::transmute(rgfmtetc), pibsc.param().abi(), pimkbase.param().abi()).ok() + HlinkResolveMonikerForData(pimkreference.param().abi(), reserved, pibc.param().abi(), cfmtetc, core::mem::transmute(rgfmtetc), pibsc.param().abi(), pimkbase.param().abi()).ok() } #[inline] pub unsafe fn HlinkResolveShortcut(pwzshortcutfilename: P0, pihlsite: P1, dwsitedata: u32, piunkouter: P3, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> @@ -774,7 +774,7 @@ where P3: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkResolveShortcut(pwzshortcutfilename : windows_core::PCWSTR, pihlsite : * mut core::ffi::c_void, dwsitedata : u32, piunkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkResolveShortcut(pwzshortcutfilename.param().abi(), pihlsite.param().abi(), core::mem::transmute(dwsitedata), piunkouter.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvobj)).ok() + HlinkResolveShortcut(pwzshortcutfilename.param().abi(), pihlsite.param().abi(), dwsitedata, piunkouter.param().abi(), riid, core::mem::transmute(ppvobj)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -803,7 +803,7 @@ where P6: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkResolveStringForData(pwzreference : windows_core::PCWSTR, reserved : u32, pibc : * mut core::ffi::c_void, cfmtetc : u32, rgfmtetc : *mut super::super::System::Com:: FORMATETC, pibsc : * mut core::ffi::c_void, pimkbase : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkResolveStringForData(pwzreference.param().abi(), core::mem::transmute(reserved), pibc.param().abi(), core::mem::transmute(cfmtetc), core::mem::transmute(rgfmtetc), pibsc.param().abi(), pimkbase.param().abi()).ok() + HlinkResolveStringForData(pwzreference.param().abi(), reserved, pibc.param().abi(), cfmtetc, core::mem::transmute(rgfmtetc), pibsc.param().abi(), pimkbase.param().abi()).ok() } #[inline] pub unsafe fn HlinkSetSpecialReference(ureference: u32, pwzreference: P1) -> windows_core::Result<()> @@ -811,7 +811,7 @@ where P1: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkSetSpecialReference(ureference : u32, pwzreference : windows_core::PCWSTR) -> windows_core::HRESULT); - HlinkSetSpecialReference(core::mem::transmute(ureference), pwzreference.param().abi()).ok() + HlinkSetSpecialReference(ureference, pwzreference.param().abi()).ok() } #[inline] pub unsafe fn HlinkTranslateURL(pwzurl: P0, grfflags: u32) -> windows_core::Result @@ -820,7 +820,7 @@ where { windows_targets::link!("hlink.dll" "system" fn HlinkTranslateURL(pwzurl : windows_core::PCWSTR, grfflags : u32, ppwztranslatedurl : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - HlinkTranslateURL(pwzurl.param().abi(), core::mem::transmute(grfflags), &mut result__).map(|| core::mem::transmute(result__)) + HlinkTranslateURL(pwzurl.param().abi(), grfflags, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -833,25 +833,25 @@ where P5: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkUpdateStackItem(pihlframe : * mut core::ffi::c_void, pihlbc : * mut core::ffi::c_void, uhlid : u32, pimktrgt : * mut core::ffi::c_void, pwzlocation : windows_core::PCWSTR, pwzfriendlyname : windows_core::PCWSTR) -> windows_core::HRESULT); - HlinkUpdateStackItem(pihlframe.param().abi(), pihlbc.param().abi(), core::mem::transmute(uhlid), pimktrgt.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() + HlinkUpdateStackItem(pihlframe.param().abi(), pihlbc.param().abi(), uhlid, pimktrgt.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILAppendID(pidl: Option<*const Common::ITEMIDLIST>, pmkid: *const Common::SHITEMID, fappend: bool) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn ILAppendID(pidl : *const Common:: ITEMIDLIST, pmkid : *const Common:: SHITEMID, fappend : super::super::Foundation:: BOOL) -> *mut Common:: ITEMIDLIST); - ILAppendID(core::mem::transmute(pidl.unwrap_or(core::mem::zeroed())), core::mem::transmute(pmkid), fappend.into()) + ILAppendID(core::mem::transmute(pidl.unwrap_or(core::mem::zeroed())), pmkid, fappend.into()) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILClone(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn ILClone(pidl : *const Common:: ITEMIDLIST) -> *mut Common:: ITEMIDLIST); - ILClone(core::mem::transmute(pidl)) + ILClone(pidl) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILCloneFirst(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn ILCloneFirst(pidl : *const Common:: ITEMIDLIST) -> *mut Common:: ITEMIDLIST); - ILCloneFirst(core::mem::transmute(pidl)) + ILCloneFirst(pidl) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -881,13 +881,13 @@ where #[inline] pub unsafe fn ILFindChild(pidlparent: *const Common::ITEMIDLIST, pidlchild: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn ILFindChild(pidlparent : *const Common:: ITEMIDLIST, pidlchild : *const Common:: ITEMIDLIST) -> *mut Common:: ITEMIDLIST); - ILFindChild(core::mem::transmute(pidlparent), core::mem::transmute(pidlchild)) + ILFindChild(pidlparent, pidlchild) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILFindLastID(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn ILFindLastID(pidl : *const Common:: ITEMIDLIST) -> *mut Common:: ITEMIDLIST); - ILFindLastID(core::mem::transmute(pidl)) + ILFindLastID(pidl) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -911,13 +911,13 @@ pub unsafe fn ILGetSize(pidl: Option<*const Common::ITEMIDLIST>) -> u32 { #[inline] pub unsafe fn ILIsEqual(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn ILIsEqual(pidl1 : *const Common:: ITEMIDLIST, pidl2 : *const Common:: ITEMIDLIST) -> super::super::Foundation:: BOOL); - ILIsEqual(core::mem::transmute(pidl1), core::mem::transmute(pidl2)) + ILIsEqual(pidl1, pidl2) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILIsParent(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST, fimmediate: bool) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn ILIsParent(pidl1 : *const Common:: ITEMIDLIST, pidl2 : *const Common:: ITEMIDLIST, fimmediate : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ILIsParent(core::mem::transmute(pidl1), core::mem::transmute(pidl2), fimmediate.into()) + ILIsParent(pidl1, pidl2, fimmediate.into()) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -942,7 +942,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ILSaveToStream(pstm : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST) -> windows_core::HRESULT); - ILSaveToStream(pstm.param().abi(), core::mem::transmute(pidl)).ok() + ILSaveToStream(pstm.param().abi(), pidl).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -952,7 +952,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_Copy(pstmfrom : * mut core::ffi::c_void, pstmto : * mut core::ffi::c_void, cb : u32) -> windows_core::HRESULT); - IStream_Copy(pstmfrom.param().abi(), pstmto.param().abi(), core::mem::transmute(cb)).ok() + IStream_Copy(pstmfrom.param().abi(), pstmto.param().abi(), cb).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -961,7 +961,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_Read(pstm : * mut core::ffi::c_void, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::HRESULT); - IStream_Read(pstm.param().abi(), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + IStream_Read(pstm.param().abi(), core::mem::transmute(pv), cb).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -1009,7 +1009,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_Write(pstm : * mut core::ffi::c_void, pv : *const core::ffi::c_void, cb : u32) -> windows_core::HRESULT); - IStream_Write(pstm.param().abi(), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + IStream_Write(pstm.param().abi(), pv, cb).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -1018,7 +1018,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_WritePidl(pstm : * mut core::ffi::c_void, pidlwrite : *const Common:: ITEMIDLIST) -> windows_core::HRESULT); - IStream_WritePidl(pstm.param().abi(), core::mem::transmute(pidlwrite)).ok() + IStream_WritePidl(pstm.param().abi(), pidlwrite).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1062,7 +1062,7 @@ where { windows_targets::link!("shlwapi.dll" "system" fn IUnknown_QueryService(punk : * mut core::ffi::c_void, guidservice : *const windows_core::GUID, riid : *const windows_core::GUID, ppvout : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - IUnknown_QueryService(punk.param().abi(), core::mem::transmute(guidservice), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + IUnknown_QueryService(punk.param().abi(), guidservice, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn IUnknown_Set(ppunk: *mut Option, punk: P1) @@ -1105,7 +1105,7 @@ pub unsafe fn InitPropVariantFromStrRet(pstrret: *mut Common::STRRET, pidl: Opti pub unsafe fn InitVariantFromStrRet(pstrret: *const Common::STRRET, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { windows_targets::link!("propsys.dll" "system" fn InitVariantFromStrRet(pstrret : *const Common:: STRRET, pidl : *const Common:: ITEMIDLIST, pvar : *mut super::super::System::Variant:: VARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - InitVariantFromStrRet(core::mem::transmute(pstrret), core::mem::transmute(pidl), &mut result__).map(|| core::mem::transmute(result__)) + InitVariantFromStrRet(pstrret, pidl, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn IntlStrEqWorkerA(fcasesens: bool, lpstring1: P1, lpstring2: P2, nchar: i32) -> super::super::Foundation::BOOL @@ -1114,7 +1114,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IntlStrEqWorkerA(fcasesens : super::super::Foundation:: BOOL, lpstring1 : windows_core::PCSTR, lpstring2 : windows_core::PCSTR, nchar : i32) -> super::super::Foundation:: BOOL); - IntlStrEqWorkerA(fcasesens.into(), lpstring1.param().abi(), lpstring2.param().abi(), core::mem::transmute(nchar)) + IntlStrEqWorkerA(fcasesens.into(), lpstring1.param().abi(), lpstring2.param().abi(), nchar) } #[inline] pub unsafe fn IntlStrEqWorkerW(fcasesens: bool, lpstring1: P1, lpstring2: P2, nchar: i32) -> super::super::Foundation::BOOL @@ -1123,17 +1123,17 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IntlStrEqWorkerW(fcasesens : super::super::Foundation:: BOOL, lpstring1 : windows_core::PCWSTR, lpstring2 : windows_core::PCWSTR, nchar : i32) -> super::super::Foundation:: BOOL); - IntlStrEqWorkerW(fcasesens.into(), lpstring1.param().abi(), lpstring2.param().abi(), core::mem::transmute(nchar)) + IntlStrEqWorkerW(fcasesens.into(), lpstring1.param().abi(), lpstring2.param().abi(), nchar) } #[inline] pub unsafe fn IsCharSpaceA(wch: i8) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn IsCharSpaceA(wch : i8) -> super::super::Foundation:: BOOL); - IsCharSpaceA(core::mem::transmute(wch)) + IsCharSpaceA(wch) } #[inline] pub unsafe fn IsCharSpaceW(wch: u16) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn IsCharSpaceW(wch : u16) -> super::super::Foundation:: BOOL); - IsCharSpaceW(core::mem::transmute(wch)) + IsCharSpaceW(wch) } #[inline] pub unsafe fn IsInternetESCEnabled() -> super::super::Foundation::BOOL { @@ -1159,12 +1159,12 @@ where #[inline] pub unsafe fn IsNetDrive(idrive: i32) -> i32 { windows_targets::link!("shell32.dll" "system" fn IsNetDrive(idrive : i32) -> i32); - IsNetDrive(core::mem::transmute(idrive)) + IsNetDrive(idrive) } #[inline] pub unsafe fn IsOS(dwos: OS) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn IsOS(dwos : OS) -> super::super::Foundation:: BOOL); - IsOS(core::mem::transmute(dwos)) + IsOS(dwos) } #[inline] pub unsafe fn IsUserAnAdmin() -> super::super::Foundation::BOOL { @@ -1174,12 +1174,12 @@ pub unsafe fn IsUserAnAdmin() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn LoadUserProfileA(htoken: super::super::Foundation::HANDLE, lpprofileinfo: *mut PROFILEINFOA) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn LoadUserProfileA(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOA) -> super::super::Foundation:: BOOL); - LoadUserProfileA(core::mem::transmute(htoken), core::mem::transmute(lpprofileinfo)).ok() + LoadUserProfileA(htoken, core::mem::transmute(lpprofileinfo)).ok() } #[inline] pub unsafe fn LoadUserProfileW(htoken: super::super::Foundation::HANDLE, lpprofileinfo: *mut PROFILEINFOW) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn LoadUserProfileW(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOW) -> super::super::Foundation:: BOOL); - LoadUserProfileW(core::mem::transmute(htoken), core::mem::transmute(lpprofileinfo)).ok() + LoadUserProfileW(htoken, core::mem::transmute(lpprofileinfo)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1199,7 +1199,7 @@ where P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn OpenRegStream(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, grfmode : u32) -> Option < super::super::System::Com:: IStream >); - OpenRegStream(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(grfmode)) + OpenRegStream(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[inline] pub unsafe fn ParseURLA(pcszurl: P0, ppu: *mut PARSEDURLA) -> windows_core::Result<()> @@ -1250,7 +1250,7 @@ where { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathAllocCanonicalize(pszpathin : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS, ppszpathout : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PathAllocCanonicalize(pszpathin.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + PathAllocCanonicalize(pszpathin.param().abi(), dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PathAllocCombine(pszpathin: P0, pszmore: P1, dwflags: PATHCCH_OPTIONS) -> windows_core::Result @@ -1260,7 +1260,7 @@ where { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathAllocCombine(pszpathin : windows_core::PCWSTR, pszmore : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS, ppszpathout : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PathAllocCombine(pszpathin.param().abi(), pszmore.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + PathAllocCombine(pszpathin.param().abi(), pszmore.param().abi(), dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PathAppendA(pszpath: &mut [u8; 260], pszmore: P1) -> super::super::Foundation::BOOL @@ -1281,12 +1281,12 @@ where #[inline] pub unsafe fn PathBuildRootA(pszroot: &mut [u8; 4], idrive: i32) -> windows_core::PSTR { windows_targets::link!("shlwapi.dll" "system" fn PathBuildRootA(pszroot : windows_core::PSTR, idrive : i32) -> windows_core::PSTR); - PathBuildRootA(core::mem::transmute(pszroot.as_ptr()), core::mem::transmute(idrive)) + PathBuildRootA(core::mem::transmute(pszroot.as_ptr()), idrive) } #[inline] pub unsafe fn PathBuildRootW(pszroot: &mut [u16; 4], idrive: i32) -> windows_core::PWSTR { windows_targets::link!("shlwapi.dll" "system" fn PathBuildRootW(pszroot : windows_core::PWSTR, idrive : i32) -> windows_core::PWSTR); - PathBuildRootW(core::mem::transmute(pszroot.as_ptr()), core::mem::transmute(idrive)) + PathBuildRootW(core::mem::transmute(pszroot.as_ptr()), idrive) } #[inline] pub unsafe fn PathCanonicalizeA(pszbuf: &mut [u8; 260], pszpath: P1) -> windows_core::Result<()> @@ -1336,7 +1336,7 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchAppendEx(pszpath : windows_core::PWSTR, cchpath : usize, pszmore : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS) -> windows_core::HRESULT); - PathCchAppendEx(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszmore.param().abi(), core::mem::transmute(dwflags)).ok() + PathCchAppendEx(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszmore.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PathCchCanonicalize(pszpathout: &mut [u16], pszpathin: P2) -> windows_core::Result<()> @@ -1352,7 +1352,7 @@ where P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchCanonicalizeEx(pszpathout : windows_core::PWSTR, cchpathout : usize, pszpathin : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS) -> windows_core::HRESULT); - PathCchCanonicalizeEx(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.param().abi(), core::mem::transmute(dwflags)).ok() + PathCchCanonicalizeEx(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PathCchCombine(pszpathout: &mut [u16], pszpathin: P2, pszmore: P3) -> windows_core::Result<()> @@ -1370,7 +1370,7 @@ where P3: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchCombineEx(pszpathout : windows_core::PWSTR, cchpathout : usize, pszpathin : windows_core::PCWSTR, pszmore : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS) -> windows_core::HRESULT); - PathCchCombineEx(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.param().abi(), pszmore.param().abi(), core::mem::transmute(dwflags)).ok() + PathCchCombineEx(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.param().abi(), pszmore.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PathCchFindExtension(pszpath: P0, cchpath: usize) -> windows_core::Result @@ -1379,7 +1379,7 @@ where { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchFindExtension(pszpath : windows_core::PCWSTR, cchpath : usize, ppszext : *mut windows_core::PCWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - PathCchFindExtension(pszpath.param().abi(), core::mem::transmute(cchpath), &mut result__).map(|| core::mem::transmute(result__)) + PathCchFindExtension(pszpath.param().abi(), cchpath, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn PathCchIsRoot(pszpath: P0) -> super::super::Foundation::BOOL @@ -1397,17 +1397,17 @@ pub unsafe fn PathCchRemoveBackslash(pszpath: &mut [u16]) -> windows_core::HRESU #[inline] pub unsafe fn PathCchRemoveBackslashEx(pszpath: windows_core::PWSTR, cchpath: usize, ppszend: Option<*mut windows_core::PWSTR>, pcchremaining: Option<*mut usize>) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchRemoveBackslashEx(pszpath : windows_core::PWSTR, cchpath : usize, ppszend : *mut windows_core::PWSTR, pcchremaining : *mut usize) -> windows_core::HRESULT); - PathCchRemoveBackslashEx(core::mem::transmute(pszpath), core::mem::transmute(cchpath), core::mem::transmute(ppszend.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchremaining.unwrap_or(core::mem::zeroed()))).ok() + PathCchRemoveBackslashEx(core::mem::transmute(pszpath), cchpath, core::mem::transmute(ppszend.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchremaining.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn PathCchRemoveExtension(pszpath: windows_core::PWSTR, cchpath: usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchRemoveExtension(pszpath : windows_core::PWSTR, cchpath : usize) -> windows_core::HRESULT); - PathCchRemoveExtension(core::mem::transmute(pszpath), core::mem::transmute(cchpath)).ok() + PathCchRemoveExtension(core::mem::transmute(pszpath), cchpath).ok() } #[inline] pub unsafe fn PathCchRemoveFileSpec(pszpath: windows_core::PWSTR, cchpath: usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchRemoveFileSpec(pszpath : windows_core::PWSTR, cchpath : usize) -> windows_core::HRESULT); - PathCchRemoveFileSpec(core::mem::transmute(pszpath), core::mem::transmute(cchpath)).ok() + PathCchRemoveFileSpec(core::mem::transmute(pszpath), cchpath).ok() } #[inline] pub unsafe fn PathCchRenameExtension(pszpath: &mut [u16], pszext: P2) -> windows_core::Result<()> @@ -1434,7 +1434,7 @@ pub unsafe fn PathCchStripPrefix(pszpath: &mut [u16]) -> windows_core::HRESULT { #[inline] pub unsafe fn PathCchStripToRoot(pszpath: windows_core::PWSTR, cchpath: usize) -> windows_core::HRESULT { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchStripToRoot(pszpath : windows_core::PWSTR, cchpath : usize) -> windows_core::HRESULT); - PathCchStripToRoot(core::mem::transmute(pszpath), core::mem::transmute(cchpath)) + PathCchStripToRoot(core::mem::transmute(pszpath), cchpath) } #[inline] pub unsafe fn PathCleanupSpec(pszdir: P0, pszspec: windows_core::PWSTR) -> i32 @@ -1484,7 +1484,7 @@ where #[inline] pub unsafe fn PathCompactPathA(hdc: Option, pszpath: &mut [u8; 260], dx: u32) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathA(hdc : super::super::Graphics::Gdi:: HDC, pszpath : windows_core::PSTR, dx : u32) -> super::super::Foundation:: BOOL); - PathCompactPathA(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), core::mem::transmute(dx)) + PathCompactPathA(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), dx) } #[inline] pub unsafe fn PathCompactPathExA(pszout: &mut [u8], pszsrc: P1, dwflags: u32) -> super::super::Foundation::BOOL @@ -1492,7 +1492,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathExA(pszout : windows_core::PSTR, pszsrc : windows_core::PCSTR, cchmax : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - PathCompactPathExA(core::mem::transmute(pszout.as_ptr()), pszsrc.param().abi(), pszout.len().try_into().unwrap(), core::mem::transmute(dwflags)) + PathCompactPathExA(core::mem::transmute(pszout.as_ptr()), pszsrc.param().abi(), pszout.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn PathCompactPathExW(pszout: &mut [u16], pszsrc: P1, dwflags: u32) -> super::super::Foundation::BOOL @@ -1500,13 +1500,13 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathExW(pszout : windows_core::PWSTR, pszsrc : windows_core::PCWSTR, cchmax : u32, dwflags : u32) -> super::super::Foundation:: BOOL); - PathCompactPathExW(core::mem::transmute(pszout.as_ptr()), pszsrc.param().abi(), pszout.len().try_into().unwrap(), core::mem::transmute(dwflags)) + PathCompactPathExW(core::mem::transmute(pszout.as_ptr()), pszsrc.param().abi(), pszout.len().try_into().unwrap(), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn PathCompactPathW(hdc: Option, pszpath: &mut [u16; 260], dx: u32) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathW(hdc : super::super::Graphics::Gdi:: HDC, pszpath : windows_core::PWSTR, dx : u32) -> super::super::Foundation:: BOOL); - PathCompactPathW(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), core::mem::transmute(dx)) + PathCompactPathW(core::mem::transmute(hdc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), dx) } #[inline] pub unsafe fn PathCreateFromUrlA(pszurl: P0, pszpath: windows_core::PSTR, pcchpath: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -1514,7 +1514,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCreateFromUrlA(pszurl : windows_core::PCSTR, pszpath : windows_core::PSTR, pcchpath : *mut u32, dwflags : u32) -> windows_core::HRESULT); - PathCreateFromUrlA(pszurl.param().abi(), core::mem::transmute(pszpath), core::mem::transmute(pcchpath), core::mem::transmute(dwflags)).ok() + PathCreateFromUrlA(pszurl.param().abi(), core::mem::transmute(pszpath), core::mem::transmute(pcchpath), dwflags).ok() } #[inline] pub unsafe fn PathCreateFromUrlAlloc(pszin: P0, ppszout: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::Result<()> @@ -1522,7 +1522,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCreateFromUrlAlloc(pszin : windows_core::PCWSTR, ppszout : *mut windows_core::PWSTR, dwflags : u32) -> windows_core::HRESULT); - PathCreateFromUrlAlloc(pszin.param().abi(), core::mem::transmute(ppszout), core::mem::transmute(dwflags)).ok() + PathCreateFromUrlAlloc(pszin.param().abi(), core::mem::transmute(ppszout), dwflags).ok() } #[inline] pub unsafe fn PathCreateFromUrlW(pszurl: P0, pszpath: windows_core::PWSTR, pcchpath: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -1530,7 +1530,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCreateFromUrlW(pszurl : windows_core::PCWSTR, pszpath : windows_core::PWSTR, pcchpath : *mut u32, dwflags : u32) -> windows_core::HRESULT); - PathCreateFromUrlW(pszurl.param().abi(), core::mem::transmute(pszpath), core::mem::transmute(pcchpath), core::mem::transmute(dwflags)).ok() + PathCreateFromUrlW(pszurl.param().abi(), core::mem::transmute(pszpath), core::mem::transmute(pcchpath), dwflags).ok() } #[inline] pub unsafe fn PathFileExistsA(pszpath: P0) -> windows_core::Result<()> @@ -1641,12 +1641,12 @@ where #[inline] pub unsafe fn PathGetCharTypeA(ch: u8) -> u32 { windows_targets::link!("shlwapi.dll" "system" fn PathGetCharTypeA(ch : u8) -> u32); - PathGetCharTypeA(core::mem::transmute(ch)) + PathGetCharTypeA(ch) } #[inline] pub unsafe fn PathGetCharTypeW(ch: u16) -> u32 { windows_targets::link!("shlwapi.dll" "system" fn PathGetCharTypeW(ch : u16) -> u32); - PathGetCharTypeW(core::mem::transmute(ch)) + PathGetCharTypeW(ch) } #[inline] pub unsafe fn PathGetDriveNumberA(pszpath: P0) -> i32 @@ -1849,7 +1849,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathIsSlowA(pszfile : windows_core::PCSTR, dwattr : u32) -> super::super::Foundation:: BOOL); - PathIsSlowA(pszfile.param().abi(), core::mem::transmute(dwattr)) + PathIsSlowA(pszfile.param().abi(), dwattr) } #[inline] pub unsafe fn PathIsSlowW(pszfile: P0, dwattr: u32) -> super::super::Foundation::BOOL @@ -1857,7 +1857,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathIsSlowW(pszfile : windows_core::PCWSTR, dwattr : u32) -> super::super::Foundation:: BOOL); - PathIsSlowW(pszfile.param().abi(), core::mem::transmute(dwattr)) + PathIsSlowW(pszfile.param().abi(), dwattr) } #[inline] pub unsafe fn PathIsSystemFolderA(pszpath: P0, dwattrb: u32) -> super::super::Foundation::BOOL @@ -1865,7 +1865,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderA(pszpath : windows_core::PCSTR, dwattrb : u32) -> super::super::Foundation:: BOOL); - PathIsSystemFolderA(pszpath.param().abi(), core::mem::transmute(dwattrb)) + PathIsSystemFolderA(pszpath.param().abi(), dwattrb) } #[inline] pub unsafe fn PathIsSystemFolderW(pszpath: P0, dwattrb: u32) -> super::super::Foundation::BOOL @@ -1873,7 +1873,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderW(pszpath : windows_core::PCWSTR, dwattrb : u32) -> super::super::Foundation:: BOOL); - PathIsSystemFolderW(pszpath.param().abi(), core::mem::transmute(dwattrb)) + PathIsSystemFolderW(pszpath.param().abi(), dwattrb) } #[inline] pub unsafe fn PathIsUNCA(pszpath: P0) -> super::super::Foundation::BOOL @@ -1999,7 +1999,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecExA(pszfile : windows_core::PCSTR, pszspec : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - PathMatchSpecExA(pszfile.param().abi(), pszspec.param().abi(), core::mem::transmute(dwflags)).ok() + PathMatchSpecExA(pszfile.param().abi(), pszspec.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PathMatchSpecExW(pszfile: P0, pszspec: P1, dwflags: u32) -> windows_core::Result<()> @@ -2008,7 +2008,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecExW(pszfile : windows_core::PCWSTR, pszspec : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - PathMatchSpecExW(pszfile.param().abi(), pszspec.param().abi(), core::mem::transmute(dwflags)).ok() + PathMatchSpecExW(pszfile.param().abi(), pszspec.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PathMatchSpecW(pszfile: P0, pszspec: P1) -> super::super::Foundation::BOOL @@ -2051,7 +2051,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathRelativePathToA(pszpath : windows_core::PSTR, pszfrom : windows_core::PCSTR, dwattrfrom : u32, pszto : windows_core::PCSTR, dwattrto : u32) -> super::super::Foundation:: BOOL); - PathRelativePathToA(core::mem::transmute(pszpath.as_ptr()), pszfrom.param().abi(), core::mem::transmute(dwattrfrom), pszto.param().abi(), core::mem::transmute(dwattrto)) + PathRelativePathToA(core::mem::transmute(pszpath.as_ptr()), pszfrom.param().abi(), dwattrfrom, pszto.param().abi(), dwattrto) } #[inline] pub unsafe fn PathRelativePathToW(pszpath: &mut [u16; 260], pszfrom: P1, dwattrfrom: u32, pszto: P3, dwattrto: u32) -> super::super::Foundation::BOOL @@ -2060,7 +2060,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathRelativePathToW(pszpath : windows_core::PWSTR, pszfrom : windows_core::PCWSTR, dwattrfrom : u32, pszto : windows_core::PCWSTR, dwattrto : u32) -> super::super::Foundation:: BOOL); - PathRelativePathToW(core::mem::transmute(pszpath.as_ptr()), pszfrom.param().abi(), core::mem::transmute(dwattrfrom), pszto.param().abi(), core::mem::transmute(dwattrto)) + PathRelativePathToW(core::mem::transmute(pszpath.as_ptr()), pszfrom.param().abi(), dwattrfrom, pszto.param().abi(), dwattrto) } #[inline] pub unsafe fn PathRemoveArgsA(pszpath: windows_core::PSTR) { @@ -2155,7 +2155,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSetDlgItemPathA(hdlg : super::super::Foundation:: HWND, id : i32, pszpath : windows_core::PCSTR)); - PathSetDlgItemPathA(core::mem::transmute(hdlg), core::mem::transmute(id), pszpath.param().abi()) + PathSetDlgItemPathA(hdlg, id, pszpath.param().abi()) } #[inline] pub unsafe fn PathSetDlgItemPathW(hdlg: super::super::Foundation::HWND, id: i32, pszpath: P2) @@ -2163,7 +2163,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSetDlgItemPathW(hdlg : super::super::Foundation:: HWND, id : i32, pszpath : windows_core::PCWSTR)); - PathSetDlgItemPathW(core::mem::transmute(hdlg), core::mem::transmute(id), pszpath.param().abi()) + PathSetDlgItemPathW(hdlg, id, pszpath.param().abi()) } #[inline] pub unsafe fn PathSkipRootA(pszpath: P0) -> windows_core::PSTR @@ -2281,44 +2281,44 @@ where { windows_targets::link!("shlwapi.dll" "system" fn QISearch(that : *mut core::ffi::c_void, pqit : *const QITAB, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - QISearch(core::mem::transmute(that), core::mem::transmute(pqit), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + QISearch(core::mem::transmute(that), pqit, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn ReadCabinetState(pcs: *mut CABINETSTATE, clength: i32) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn ReadCabinetState(pcs : *mut CABINETSTATE, clength : i32) -> super::super::Foundation:: BOOL); - ReadCabinetState(core::mem::transmute(pcs), core::mem::transmute(clength)) + ReadCabinetState(core::mem::transmute(pcs), clength) } #[inline] pub unsafe fn RealDriveType(idrive: i32, foktohitnet: bool) -> i32 { windows_targets::link!("shell32.dll" "system" fn RealDriveType(idrive : i32, foktohitnet : super::super::Foundation:: BOOL) -> i32); - RealDriveType(core::mem::transmute(idrive), foktohitnet.into()) + RealDriveType(idrive, foktohitnet.into()) } #[inline] pub unsafe fn RegisterAppConstrainedChangeNotification(routine: PAPPCONSTRAIN_CHANGE_ROUTINE, context: Option<*const core::ffi::c_void>, registration: *mut PAPPCONSTRAIN_REGISTRATION) -> u32 { windows_targets::link!("api-ms-win-core-psm-appnotify-l1-1-1.dll" "system" fn RegisterAppConstrainedChangeNotification(routine : PAPPCONSTRAIN_CHANGE_ROUTINE, context : *const core::ffi::c_void, registration : *mut PAPPCONSTRAIN_REGISTRATION) -> u32); - RegisterAppConstrainedChangeNotification(core::mem::transmute(routine), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registration)) + RegisterAppConstrainedChangeNotification(routine, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registration)) } #[inline] pub unsafe fn RegisterAppStateChangeNotification(routine: PAPPSTATE_CHANGE_ROUTINE, context: Option<*const core::ffi::c_void>, registration: *mut PAPPSTATE_REGISTRATION) -> u32 { windows_targets::link!("api-ms-win-core-psm-appnotify-l1-1-0.dll" "system" fn RegisterAppStateChangeNotification(routine : PAPPSTATE_CHANGE_ROUTINE, context : *const core::ffi::c_void, registration : *mut PAPPSTATE_REGISTRATION) -> u32); - RegisterAppStateChangeNotification(core::mem::transmute(routine), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registration)) + RegisterAppStateChangeNotification(routine, core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(registration)) } #[inline] pub unsafe fn RegisterScaleChangeEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn RegisterScaleChangeEvent(hevent : super::super::Foundation:: HANDLE, pdwcookie : *mut usize) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RegisterScaleChangeEvent(core::mem::transmute(hevent), &mut result__).map(|| core::mem::transmute(result__)) + RegisterScaleChangeEvent(hevent, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RegisterScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, hwndnotify: super::super::Foundation::HWND, umsgnotify: u32) -> windows_core::Result { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-0.dll" "system" fn RegisterScaleChangeNotifications(displaydevice : DISPLAY_DEVICE_TYPE, hwndnotify : super::super::Foundation:: HWND, umsgnotify : u32, pdwcookie : *mut u32) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - RegisterScaleChangeNotifications(core::mem::transmute(displaydevice), core::mem::transmute(hwndnotify), core::mem::transmute(umsgnotify), &mut result__).map(|| core::mem::transmute(result__)) + RegisterScaleChangeNotifications(displaydevice, hwndnotify, umsgnotify, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn RemoveWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn RemoveWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize) -> super::super::Foundation:: BOOL); - RemoveWindowSubclass(core::mem::transmute(hwnd), core::mem::transmute(pfnsubclass), core::mem::transmute(uidsubclass)) + RemoveWindowSubclass(hwnd, pfnsubclass, uidsubclass) } #[inline] pub unsafe fn RestartDialog(hwnd: Option, pszprompt: P1, dwreturn: u32) -> i32 @@ -2326,7 +2326,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn RestartDialog(hwnd : super::super::Foundation:: HWND, pszprompt : windows_core::PCWSTR, dwreturn : u32) -> i32); - RestartDialog(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszprompt.param().abi(), core::mem::transmute(dwreturn)) + RestartDialog(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszprompt.param().abi(), dwreturn) } #[inline] pub unsafe fn RestartDialogEx(hwnd: Option, pszprompt: P1, dwreturn: u32, dwreasoncode: u32) -> i32 @@ -2334,33 +2334,33 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn RestartDialogEx(hwnd : super::super::Foundation:: HWND, pszprompt : windows_core::PCWSTR, dwreturn : u32, dwreasoncode : u32) -> i32); - RestartDialogEx(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszprompt.param().abi(), core::mem::transmute(dwreturn), core::mem::transmute(dwreasoncode)) + RestartDialogEx(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszprompt.param().abi(), dwreturn, dwreasoncode) } #[inline] pub unsafe fn RevokeScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, dwcookie: u32) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-0.dll" "system" fn RevokeScaleChangeNotifications(displaydevice : DISPLAY_DEVICE_TYPE, dwcookie : u32) -> windows_core::HRESULT); - RevokeScaleChangeNotifications(core::mem::transmute(displaydevice), core::mem::transmute(dwcookie)).ok() + RevokeScaleChangeNotifications(displaydevice, dwcookie).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SHAddFromPropSheetExtArray(hpsxa: HPSXA, lpfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> u32 { windows_targets::link!("shell32.dll" "system" fn SHAddFromPropSheetExtArray(hpsxa : HPSXA, lpfnaddpage : super::Controls:: LPFNSVADDPROPSHEETPAGE, lparam : super::super::Foundation:: LPARAM) -> u32); - SHAddFromPropSheetExtArray(core::mem::transmute(hpsxa), core::mem::transmute(lpfnaddpage), core::mem::transmute(lparam)) + SHAddFromPropSheetExtArray(hpsxa, lpfnaddpage, lparam) } #[inline] pub unsafe fn SHAddToRecentDocs(uflags: u32, pv: Option<*const core::ffi::c_void>) { windows_targets::link!("shell32.dll" "system" fn SHAddToRecentDocs(uflags : u32, pv : *const core::ffi::c_void)); - SHAddToRecentDocs(core::mem::transmute(uflags), core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) + SHAddToRecentDocs(uflags, core::mem::transmute(pv.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHAlloc(cb: usize) -> *mut core::ffi::c_void { windows_targets::link!("shell32.dll" "system" fn SHAlloc(cb : usize) -> *mut core::ffi::c_void); - SHAlloc(core::mem::transmute(cb)) + SHAlloc(cb) } #[inline] pub unsafe fn SHAllocShared(pvdata: Option<*const core::ffi::c_void>, dwsize: u32, dwprocessid: u32) -> super::super::Foundation::HANDLE { windows_targets::link!("shlwapi.dll" "system" fn SHAllocShared(pvdata : *const core::ffi::c_void, dwsize : u32, dwprocessid : u32) -> super::super::Foundation:: HANDLE); - SHAllocShared(core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwsize), core::mem::transmute(dwprocessid)) + SHAllocShared(core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), dwsize, dwprocessid) } #[inline] pub unsafe fn SHAnsiToAnsi(pszsrc: P0, pszdst: &mut [u8]) -> i32 @@ -2381,7 +2381,7 @@ where #[inline] pub unsafe fn SHAppBarMessage(dwmessage: u32, pdata: *mut APPBARDATA) -> usize { windows_targets::link!("shell32.dll" "system" fn SHAppBarMessage(dwmessage : u32, pdata : *mut APPBARDATA) -> usize); - SHAppBarMessage(core::mem::transmute(dwmessage), core::mem::transmute(pdata)) + SHAppBarMessage(dwmessage, core::mem::transmute(pdata)) } #[inline] pub unsafe fn SHAssocEnumHandlers(pszextra: P0, affilter: ASSOC_FILTER) -> windows_core::Result @@ -2390,7 +2390,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHAssocEnumHandlers(pszextra : windows_core::PCWSTR, affilter : ASSOC_FILTER, ppenumhandler : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHAssocEnumHandlers(pszextra.param().abi(), core::mem::transmute(affilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHAssocEnumHandlers(pszextra.param().abi(), affilter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHAssocEnumHandlersForProtocolByApplication(protocol: P0) -> windows_core::Result @@ -2405,7 +2405,7 @@ where #[inline] pub unsafe fn SHAutoComplete(hwndedit: super::super::Foundation::HWND, dwflags: SHELL_AUTOCOMPLETE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn SHAutoComplete(hwndedit : super::super::Foundation:: HWND, dwflags : SHELL_AUTOCOMPLETE_FLAGS) -> windows_core::HRESULT); - SHAutoComplete(core::mem::transmute(hwndedit), core::mem::transmute(dwflags)).ok() + SHAutoComplete(hwndedit, dwflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2416,7 +2416,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHBindToFolderIDListParent(psfroot : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void, ppidllast : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHBindToFolderIDListParent(psfroot.param().abi(), core::mem::transmute(pidl), &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(core::mem::zeroed()))).and_then(|| windows_core::Type::from_abi(result__)) + SHBindToFolderIDListParent(psfroot.param().abi(), pidl, &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(core::mem::zeroed()))).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -2428,7 +2428,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHBindToFolderIDListParentEx(psfroot : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, ppbc : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void, ppidllast : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHBindToFolderIDListParentEx(psfroot.param().abi(), core::mem::transmute(pidl), ppbc.param().abi(), &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(core::mem::zeroed()))).and_then(|| windows_core::Type::from_abi(result__)) + SHBindToFolderIDListParentEx(psfroot.param().abi(), pidl, ppbc.param().abi(), &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(core::mem::zeroed()))).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -2440,7 +2440,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHBindToObject(psf : * 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 mut result__ = core::ptr::null_mut(); - SHBindToObject(psf.param().abi(), core::mem::transmute(pidl), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHBindToObject(psf.param().abi(), pidl, pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2450,19 +2450,19 @@ where { windows_targets::link!("shell32.dll" "system" fn SHBindToParent(pidl : *const Common:: ITEMIDLIST, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void, ppidllast : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHBindToParent(core::mem::transmute(pidl), &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(core::mem::zeroed()))).and_then(|| windows_core::Type::from_abi(result__)) + SHBindToParent(pidl, &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(core::mem::zeroed()))).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHBrowseForFolderA(lpbi: *const BROWSEINFOA) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn SHBrowseForFolderA(lpbi : *const BROWSEINFOA) -> *mut Common:: ITEMIDLIST); - SHBrowseForFolderA(core::mem::transmute(lpbi)) + SHBrowseForFolderA(lpbi) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHBrowseForFolderW(lpbi: *const BROWSEINFOW) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn SHBrowseForFolderW(lpbi : *const BROWSEINFOW) -> *mut Common:: ITEMIDLIST); - SHBrowseForFolderW(core::mem::transmute(lpbi)) + SHBrowseForFolderW(lpbi) } #[inline] pub unsafe fn SHCLSIDFromString(psz: P0) -> windows_core::Result @@ -2477,39 +2477,39 @@ where #[inline] pub unsafe fn SHChangeNotification_Lock(hchange: super::super::Foundation::HANDLE, dwprocid: u32, pppidl: Option<*mut *mut *mut Common::ITEMIDLIST>, plevent: Option<*mut i32>) -> super::super::Foundation::HANDLE { windows_targets::link!("shell32.dll" "system" fn SHChangeNotification_Lock(hchange : super::super::Foundation:: HANDLE, dwprocid : u32, pppidl : *mut *mut *mut Common:: ITEMIDLIST, plevent : *mut i32) -> super::super::Foundation:: HANDLE); - SHChangeNotification_Lock(core::mem::transmute(hchange), core::mem::transmute(dwprocid), core::mem::transmute(pppidl.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevent.unwrap_or(core::mem::zeroed()))) + SHChangeNotification_Lock(hchange, dwprocid, core::mem::transmute(pppidl.unwrap_or(core::mem::zeroed())), core::mem::transmute(plevent.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHChangeNotification_Unlock(hlock: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHChangeNotification_Unlock(hlock : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SHChangeNotification_Unlock(core::mem::transmute(hlock)) + SHChangeNotification_Unlock(hlock) } #[inline] pub unsafe fn SHChangeNotify(weventid: SHCNE_ID, uflags: SHCNF_FLAGS, dwitem1: Option<*const core::ffi::c_void>, dwitem2: Option<*const core::ffi::c_void>) { windows_targets::link!("shell32.dll" "system" fn SHChangeNotify(weventid : i32, uflags : SHCNF_FLAGS, dwitem1 : *const core::ffi::c_void, dwitem2 : *const core::ffi::c_void)); - SHChangeNotify(weventid.0 as _, core::mem::transmute(uflags), core::mem::transmute(dwitem1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwitem2.unwrap_or(core::mem::zeroed()))) + SHChangeNotify(weventid.0 as _, uflags, core::mem::transmute(dwitem1.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwitem2.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHChangeNotifyDeregister(ulid: u32) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHChangeNotifyDeregister(ulid : u32) -> super::super::Foundation:: BOOL); - SHChangeNotifyDeregister(core::mem::transmute(ulid)) + SHChangeNotifyDeregister(ulid) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHChangeNotifyRegister(hwnd: super::super::Foundation::HWND, fsources: SHCNRF_SOURCE, fevents: i32, wmsg: u32, centries: i32, pshcne: *const SHChangeNotifyEntry) -> u32 { windows_targets::link!("shell32.dll" "system" fn SHChangeNotifyRegister(hwnd : super::super::Foundation:: HWND, fsources : SHCNRF_SOURCE, fevents : i32, wmsg : u32, centries : i32, pshcne : *const SHChangeNotifyEntry) -> u32); - SHChangeNotifyRegister(core::mem::transmute(hwnd), core::mem::transmute(fsources), core::mem::transmute(fevents), core::mem::transmute(wmsg), core::mem::transmute(centries), core::mem::transmute(pshcne)) + SHChangeNotifyRegister(hwnd, fsources, fevents, wmsg, centries, pshcne) } #[inline] pub unsafe fn SHChangeNotifyRegisterThread(status: SCNRT_STATUS) { windows_targets::link!("shell32.dll" "system" fn SHChangeNotifyRegisterThread(status : SCNRT_STATUS)); - SHChangeNotifyRegisterThread(core::mem::transmute(status)) + SHChangeNotifyRegisterThread(status) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCloneSpecialIDList(hwnd: Option, csidl: i32, fcreate: bool) -> *mut Common::ITEMIDLIST { windows_targets::link!("shell32.dll" "system" fn SHCloneSpecialIDList(hwnd : super::super::Foundation:: HWND, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> *mut Common:: ITEMIDLIST); - SHCloneSpecialIDList(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), fcreate.into()) + SHCloneSpecialIDList(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, fcreate.into()) } #[inline] pub unsafe fn SHCoCreateInstance(pszclsid: P0, pclsid: Option<*const windows_core::GUID>, punkouter: P2) -> windows_core::Result @@ -2529,7 +2529,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHCopyKeyA(hkeysrc : super::super::System::Registry:: HKEY, pszsrcsubkey : windows_core::PCSTR, hkeydest : super::super::System::Registry:: HKEY, freserved : u32) -> super::super::Foundation:: WIN32_ERROR); - SHCopyKeyA(core::mem::transmute(hkeysrc), pszsrcsubkey.param().abi(), core::mem::transmute(hkeydest), core::mem::transmute(freserved.unwrap_or(core::mem::zeroed()))) + SHCopyKeyA(hkeysrc, pszsrcsubkey.param().abi(), hkeydest, core::mem::transmute(freserved.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2538,7 +2538,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHCopyKeyW(hkeysrc : super::super::System::Registry:: HKEY, pszsrcsubkey : windows_core::PCWSTR, hkeydest : super::super::System::Registry:: HKEY, freserved : u32) -> super::super::Foundation:: WIN32_ERROR); - SHCopyKeyW(core::mem::transmute(hkeysrc), pszsrcsubkey.param().abi(), core::mem::transmute(hkeydest), core::mem::transmute(freserved.unwrap_or(core::mem::zeroed()))) + SHCopyKeyW(hkeysrc, pszsrcsubkey.param().abi(), hkeydest, core::mem::transmute(freserved.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHCreateAssociationRegistration() -> windows_core::Result @@ -2622,7 +2622,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHCreateFileExtractIconW(pszfile : windows_core::PCWSTR, dwfileattributes : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHCreateFileExtractIconW(pszfile.param().abi(), core::mem::transmute(dwfileattributes), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateFileExtractIconW(pszfile.param().abi(), dwfileattributes, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2632,7 +2632,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHCreateItemFromIDList(pidl : *const Common:: ITEMIDLIST, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHCreateItemFromIDList(core::mem::transmute(pidl), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateItemFromIDList(pidl, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2667,7 +2667,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHCreateItemInKnownFolder(kfid : *const windows_core::GUID, dwkfflags : u32, pszitem : windows_core::PCWSTR, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHCreateItemInKnownFolder(core::mem::transmute(kfid), dwkfflags.0 as _, pszitem.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateItemInKnownFolder(kfid, dwkfflags.0 as _, pszitem.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2678,7 +2678,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHCreateItemWithParent(pidlparent : *const Common:: ITEMIDLIST, psfparent : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, riid : *const windows_core::GUID, ppvitem : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHCreateItemWithParent(core::mem::transmute(pidlparent.unwrap_or(core::mem::zeroed())), psfparent.param().abi(), core::mem::transmute(pidl), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateItemWithParent(core::mem::transmute(pidlparent.unwrap_or(core::mem::zeroed())), psfparent.param().abi(), pidl, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2699,7 +2699,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCreatePropSheetExtArray(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, max_iface : u32) -> HPSXA); - SHCreatePropSheetExtArray(core::mem::transmute(hkey), pszsubkey.param().abi(), core::mem::transmute(max_iface)) + SHCreatePropSheetExtArray(hkey, pszsubkey.param().abi(), max_iface) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2730,7 +2730,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHCreateShellItem(pidlparent : *const Common:: ITEMIDLIST, psfparent : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, ppsi : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHCreateShellItem(core::mem::transmute(pidlparent.unwrap_or(core::mem::zeroed())), psfparent.param().abi(), core::mem::transmute(pidl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateShellItem(core::mem::transmute(pidlparent.unwrap_or(core::mem::zeroed())), psfparent.param().abi(), pidl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2791,7 +2791,7 @@ where { windows_targets::link!("shlwapi.dll" "system" fn SHCreateStreamOnFileA(pszfile : windows_core::PCSTR, grfmode : u32, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHCreateStreamOnFileA(pszfile.param().abi(), core::mem::transmute(grfmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateStreamOnFileA(pszfile.param().abi(), grfmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2802,7 +2802,7 @@ where { windows_targets::link!("shlwapi.dll" "system" fn SHCreateStreamOnFileEx(pszfile : windows_core::PCWSTR, grfmode : u32, dwattributes : u32, fcreate : super::super::Foundation:: BOOL, pstmtemplate : * mut core::ffi::c_void, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHCreateStreamOnFileEx(pszfile.param().abi(), core::mem::transmute(grfmode), core::mem::transmute(dwattributes), fcreate.into(), pstmtemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateStreamOnFileEx(pszfile.param().abi(), grfmode, dwattributes, fcreate.into(), pstmtemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2812,13 +2812,13 @@ where { windows_targets::link!("shlwapi.dll" "system" fn SHCreateStreamOnFileW(pszfile : windows_core::PCWSTR, grfmode : u32, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHCreateStreamOnFileW(pszfile.param().abi(), core::mem::transmute(grfmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateStreamOnFileW(pszfile.param().abi(), grfmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn SHCreateThread(pfnthreadproc: super::super::System::Threading::LPTHREAD_START_ROUTINE, pdata: Option<*const core::ffi::c_void>, flags: u32, pfncallback: Option) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn SHCreateThread(pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pdata : *const core::ffi::c_void, flags : u32, pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE) -> super::super::Foundation:: BOOL); - SHCreateThread(core::mem::transmute(pfnthreadproc), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed()))).ok() + SHCreateThread(pfnthreadproc, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SHCreateThreadRef(pcref: *mut i32, ppunk: *mut Option) -> windows_core::Result<()> { @@ -2829,7 +2829,7 @@ pub unsafe fn SHCreateThreadRef(pcref: *mut i32, ppunk: *mut Option, flags: u32, pfncallback: Option, phandle: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn SHCreateThreadWithHandle(pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pdata : *const core::ffi::c_void, flags : u32, pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE, phandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SHCreateThreadWithHandle(core::mem::transmute(pfnthreadproc), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(phandle.unwrap_or(core::mem::zeroed()))).ok() + SHCreateThreadWithHandle(pfnthreadproc, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), flags, core::mem::transmute(pfncallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(phandle.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -2838,7 +2838,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHDefExtractIconA(psziconfile : windows_core::PCSTR, iindex : i32, uflags : u32, phiconlarge : *mut super::WindowsAndMessaging:: HICON, phiconsmall : *mut super::WindowsAndMessaging:: HICON, niconsize : u32) -> windows_core::HRESULT); - SHDefExtractIconA(psziconfile.param().abi(), core::mem::transmute(iindex), core::mem::transmute(uflags), core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), core::mem::transmute(niconsize)) + SHDefExtractIconA(psziconfile.param().abi(), iindex, uflags, core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), niconsize) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -2847,7 +2847,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHDefExtractIconW(psziconfile : windows_core::PCWSTR, iindex : i32, uflags : u32, phiconlarge : *mut super::WindowsAndMessaging:: HICON, phiconsmall : *mut super::WindowsAndMessaging:: HICON, niconsize : u32) -> windows_core::HRESULT); - SHDefExtractIconW(psziconfile.param().abi(), core::mem::transmute(iindex), core::mem::transmute(uflags), core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), core::mem::transmute(niconsize)) + SHDefExtractIconW(psziconfile.param().abi(), iindex, uflags, core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), niconsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2856,7 +2856,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHDeleteEmptyKeyA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - SHDeleteEmptyKeyA(core::mem::transmute(hkey), pszsubkey.param().abi()) + SHDeleteEmptyKeyA(hkey, pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2865,7 +2865,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHDeleteEmptyKeyW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - SHDeleteEmptyKeyW(core::mem::transmute(hkey), pszsubkey.param().abi()) + SHDeleteEmptyKeyW(hkey, pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2874,7 +2874,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHDeleteKeyA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - SHDeleteKeyA(core::mem::transmute(hkey), pszsubkey.param().abi()) + SHDeleteKeyA(hkey, pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2883,7 +2883,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHDeleteKeyW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - SHDeleteKeyW(core::mem::transmute(hkey), pszsubkey.param().abi()) + SHDeleteKeyW(hkey, pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2893,7 +2893,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHDeleteValueA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - SHDeleteValueA(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi()) + SHDeleteValueA(hkey, pszsubkey.param().abi(), pszvalue.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2903,12 +2903,12 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHDeleteValueW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - SHDeleteValueW(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi()) + SHDeleteValueW(hkey, pszsubkey.param().abi(), pszvalue.param().abi()) } #[inline] pub unsafe fn SHDestroyPropSheetExtArray(hpsxa: HPSXA) { windows_targets::link!("shell32.dll" "system" fn SHDestroyPropSheetExtArray(hpsxa : HPSXA)); - SHDestroyPropSheetExtArray(core::mem::transmute(hpsxa)) + SHDestroyPropSheetExtArray(hpsxa) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] @@ -2919,7 +2919,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHDoDragDrop(hwnd : super::super::Foundation:: HWND, pdata : * mut core::ffi::c_void, pdsrc : * mut core::ffi::c_void, dweffect : super::super::System::Ole:: DROPEFFECT, pdweffect : *mut super::super::System::Ole:: DROPEFFECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHDoDragDrop(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pdata.param().abi(), pdsrc.param().abi(), core::mem::transmute(dweffect), &mut result__).map(|| core::mem::transmute(result__)) + SHDoDragDrop(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pdata.param().abi(), pdsrc.param().abi(), dweffect, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHEmptyRecycleBinA(hwnd: Option, pszrootpath: P1, dwflags: u32) -> windows_core::Result<()> @@ -2927,7 +2927,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHEmptyRecycleBinA(hwnd : super::super::Foundation:: HWND, pszrootpath : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - SHEmptyRecycleBinA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszrootpath.param().abi(), core::mem::transmute(dwflags)).ok() + SHEmptyRecycleBinA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszrootpath.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SHEmptyRecycleBinW(hwnd: Option, pszrootpath: P1, dwflags: u32) -> windows_core::Result<()> @@ -2935,37 +2935,37 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHEmptyRecycleBinW(hwnd : super::super::Foundation:: HWND, pszrootpath : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - SHEmptyRecycleBinW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszrootpath.param().abi(), core::mem::transmute(dwflags)).ok() + SHEmptyRecycleBinW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszrootpath.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumKeyExA(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszname: windows_core::PSTR, pcchname: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHEnumKeyExA(hkey : super::super::System::Registry:: HKEY, dwindex : u32, pszname : windows_core::PSTR, pcchname : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHEnumKeyExA(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(pszname), core::mem::transmute(pcchname)) + SHEnumKeyExA(hkey, dwindex, core::mem::transmute(pszname), core::mem::transmute(pcchname)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumKeyExW(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszname: windows_core::PWSTR, pcchname: *mut u32) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHEnumKeyExW(hkey : super::super::System::Registry:: HKEY, dwindex : u32, pszname : windows_core::PWSTR, pcchname : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHEnumKeyExW(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(pszname), core::mem::transmute(pcchname)) + SHEnumKeyExW(hkey, dwindex, core::mem::transmute(pszname), core::mem::transmute(pcchname)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumValueA(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszvaluename: Option, pcchvaluename: Option<*mut u32>, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHEnumValueA(hkey : super::super::System::Registry:: HKEY, dwindex : u32, pszvaluename : windows_core::PSTR, pcchvaluename : *mut u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHEnumValueA(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(pszvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHEnumValueA(hkey, dwindex, core::mem::transmute(pszvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumValueW(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszvaluename: Option, pcchvaluename: Option<*mut u32>, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHEnumValueW(hkey : super::super::System::Registry:: HKEY, dwindex : u32, pszvaluename : windows_core::PWSTR, pcchvaluename : *mut u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHEnumValueW(core::mem::transmute(hkey), core::mem::transmute(dwindex), core::mem::transmute(pszvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHEnumValueW(hkey, dwindex, core::mem::transmute(pszvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchvaluename.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumerateUnreadMailAccountsW(hkeyuser: Option, dwindex: u32, pszmailaddress: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHEnumerateUnreadMailAccountsW(hkeyuser : super::super::System::Registry:: HKEY, dwindex : u32, pszmailaddress : windows_core::PWSTR, cchmailaddress : i32) -> windows_core::HRESULT); - SHEnumerateUnreadMailAccountsW(core::mem::transmute(hkeyuser.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwindex), core::mem::transmute(pszmailaddress.as_ptr()), pszmailaddress.len().try_into().unwrap()).ok() + SHEnumerateUnreadMailAccountsW(core::mem::transmute(hkeyuser.unwrap_or(core::mem::zeroed())), dwindex, core::mem::transmute(pszmailaddress.as_ptr()), pszmailaddress.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SHEvaluateSystemCommandTemplate(pszcmdtemplate: P0, ppszapplication: *mut windows_core::PWSTR, ppszcommandline: Option<*mut windows_core::PWSTR>, ppszparameters: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> @@ -2995,7 +2995,7 @@ pub unsafe fn SHFindFiles(pidlfolder: Option<*const Common::ITEMIDLIST>, pidlsav #[inline] pub unsafe fn SHFind_InitMenuPopup(hmenu: super::WindowsAndMessaging::HMENU, hwndowner: Option, idcmdfirst: u32, idcmdlast: u32) -> Option { windows_targets::link!("shell32.dll" "system" fn SHFind_InitMenuPopup(hmenu : super::WindowsAndMessaging:: HMENU, hwndowner : super::super::Foundation:: HWND, idcmdfirst : u32, idcmdlast : u32) -> Option < IContextMenu >); - SHFind_InitMenuPopup(core::mem::transmute(hmenu), core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), core::mem::transmute(idcmdfirst), core::mem::transmute(idcmdlast)) + SHFind_InitMenuPopup(hmenu, core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), idcmdfirst, idcmdlast) } #[inline] pub unsafe fn SHFlushSFCache() { @@ -3005,17 +3005,17 @@ pub unsafe fn SHFlushSFCache() { #[inline] pub unsafe fn SHFormatDateTimeA(pft: *const super::super::Foundation::FILETIME, pdwflags: Option<*mut u32>, pszbuf: &mut [u8]) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn SHFormatDateTimeA(pft : *const super::super::Foundation:: FILETIME, pdwflags : *mut u32, pszbuf : windows_core::PSTR, cchbuf : u32) -> i32); - SHFormatDateTimeA(core::mem::transmute(pft), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + SHFormatDateTimeA(pft, core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn SHFormatDateTimeW(pft: *const super::super::Foundation::FILETIME, pdwflags: Option<*mut u32>, pszbuf: &mut [u16]) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn SHFormatDateTimeW(pft : *const super::super::Foundation:: FILETIME, pdwflags : *mut u32, pszbuf : windows_core::PWSTR, cchbuf : u32) -> i32); - SHFormatDateTimeW(core::mem::transmute(pft), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + SHFormatDateTimeW(pft, core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn SHFormatDrive(hwnd: super::super::Foundation::HWND, drive: u32, fmtid: SHFMT_ID, options: SHFMT_OPT) -> u32 { windows_targets::link!("shell32.dll" "system" fn SHFormatDrive(hwnd : super::super::Foundation:: HWND, drive : u32, fmtid : SHFMT_ID, options : u32) -> u32); - SHFormatDrive(core::mem::transmute(hwnd), core::mem::transmute(drive), core::mem::transmute(fmtid), options.0 as _) + SHFormatDrive(hwnd, drive, fmtid, options.0 as _) } #[inline] pub unsafe fn SHFree(pv: Option<*const core::ffi::c_void>) { @@ -3030,7 +3030,7 @@ pub unsafe fn SHFreeNameMappings(hnamemappings: Option windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn SHFreeShared(hdata : super::super::Foundation:: HANDLE, dwprocessid : u32) -> super::super::Foundation:: BOOL); - SHFreeShared(core::mem::transmute(hdata), core::mem::transmute(dwprocessid)).ok() + SHFreeShared(hdata, dwprocessid).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -3039,7 +3039,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetAttributesFromDataObject(pdo : * mut core::ffi::c_void, dwattributemask : u32, pdwattributes : *mut u32, pcitems : *mut u32) -> windows_core::HRESULT); - SHGetAttributesFromDataObject(pdo.param().abi(), core::mem::transmute(dwattributemask), core::mem::transmute(pdwattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcitems.unwrap_or(core::mem::zeroed()))) + SHGetAttributesFromDataObject(pdo.param().abi(), dwattributemask, core::mem::transmute(pdwattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcitems.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3048,7 +3048,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetDataFromIDListA(psf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, nformat : SHGDFIL_FORMAT, pv : *mut core::ffi::c_void, cb : i32) -> windows_core::HRESULT); - SHGetDataFromIDListA(psf.param().abi(), core::mem::transmute(pidl), core::mem::transmute(nformat), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + SHGetDataFromIDListA(psf.param().abi(), pidl, nformat, core::mem::transmute(pv), cb).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3057,7 +3057,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetDataFromIDListW(psf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, nformat : SHGDFIL_FORMAT, pv : *mut core::ffi::c_void, cb : i32) -> windows_core::HRESULT); - SHGetDataFromIDListW(psf.param().abi(), core::mem::transmute(pidl), core::mem::transmute(nformat), core::mem::transmute(pv), core::mem::transmute(cb)).ok() + SHGetDataFromIDListW(psf.param().abi(), pidl, nformat, core::mem::transmute(pv), cb).ok() } #[inline] pub unsafe fn SHGetDesktopFolder() -> windows_core::Result { @@ -3097,7 +3097,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetFileInfoA(pszpath : windows_core::PCSTR, dwfileattributes : super::super::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, psfi : *mut SHFILEINFOA, cbfileinfo : u32, uflags : SHGFI_FLAGS) -> usize); - SHGetFileInfoA(pszpath.param().abi(), core::mem::transmute(dwfileattributes), core::mem::transmute(psfi.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbfileinfo), core::mem::transmute(uflags)) + SHGetFileInfoA(pszpath.param().abi(), dwfileattributes, core::mem::transmute(psfi.unwrap_or(core::mem::zeroed())), cbfileinfo, uflags) } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] @@ -3106,19 +3106,19 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetFileInfoW(pszpath : windows_core::PCWSTR, dwfileattributes : super::super::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, psfi : *mut SHFILEINFOW, cbfileinfo : u32, uflags : SHGFI_FLAGS) -> usize); - SHGetFileInfoW(pszpath.param().abi(), core::mem::transmute(dwfileattributes), core::mem::transmute(psfi.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbfileinfo), core::mem::transmute(uflags)) + SHGetFileInfoW(pszpath.param().abi(), dwfileattributes, core::mem::transmute(psfi.unwrap_or(core::mem::zeroed())), cbfileinfo, uflags) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetFolderLocation(hwnd: Option, csidl: i32, htoken: Option, dwflags: u32) -> windows_core::Result<*mut Common::ITEMIDLIST> { windows_targets::link!("shell32.dll" "system" fn SHGetFolderLocation(hwnd : super::super::Foundation:: HWND, csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetFolderLocation(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), &mut result__).map(|| core::mem::transmute(result__)) + SHGetFolderLocation(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetFolderPathA(hwnd: Option, csidl: i32, htoken: Option, dwflags: u32, pszpath: &mut [u8; 260]) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHGetFolderPathA(hwnd : super::super::Foundation:: HWND, csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, pszpath : windows_core::PSTR) -> windows_core::HRESULT); - SHGetFolderPathA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pszpath.as_ptr())).ok() } #[inline] pub unsafe fn SHGetFolderPathAndSubDirA(hwnd: Option, csidl: i32, htoken: Option, dwflags: u32, pszsubdir: P4, pszpath: &mut [u8; 260]) -> windows_core::Result<()> @@ -3126,7 +3126,7 @@ where P4: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetFolderPathAndSubDirA(hwnd : super::super::Foundation:: HWND, csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, pszsubdir : windows_core::PCSTR, pszpath : windows_core::PSTR) -> windows_core::HRESULT); - SHGetFolderPathAndSubDirA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), pszsubdir.param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathAndSubDirA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, pszsubdir.param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() } #[inline] pub unsafe fn SHGetFolderPathAndSubDirW(hwnd: Option, csidl: i32, htoken: Option, dwflags: u32, pszsubdir: P4, pszpath: &mut [u16; 260]) -> windows_core::Result<()> @@ -3134,12 +3134,12 @@ where P4: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetFolderPathAndSubDirW(hwnd : super::super::Foundation:: HWND, csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, pszsubdir : windows_core::PCWSTR, pszpath : windows_core::PWSTR) -> windows_core::HRESULT); - SHGetFolderPathAndSubDirW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), pszsubdir.param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathAndSubDirW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, pszsubdir.param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() } #[inline] pub unsafe fn SHGetFolderPathW(hwnd: Option, csidl: i32, htoken: Option, dwflags: u32, pszpath: &mut [u16; 260]) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHGetFolderPathW(hwnd : super::super::Foundation:: HWND, csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, pszpath : windows_core::PWSTR) -> windows_core::HRESULT); - SHGetFolderPathW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, core::mem::transmute(pszpath.as_ptr())).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3157,7 +3157,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetIconOverlayIndexA(psziconpath : windows_core::PCSTR, iiconindex : i32) -> i32); - SHGetIconOverlayIndexA(psziconpath.param().abi(), core::mem::transmute(iiconindex)) + SHGetIconOverlayIndexA(psziconpath.param().abi(), iiconindex) } #[inline] pub unsafe fn SHGetIconOverlayIndexW(psziconpath: P0, iiconindex: i32) -> i32 @@ -3165,7 +3165,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetIconOverlayIndexW(psziconpath : windows_core::PCWSTR, iiconindex : i32) -> i32); - SHGetIconOverlayIndexW(psziconpath.param().abi(), core::mem::transmute(iiconindex)) + SHGetIconOverlayIndexW(psziconpath.param().abi(), iiconindex) } #[inline] pub unsafe fn SHGetImageList(iimagelist: i32) -> windows_core::Result @@ -3174,7 +3174,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetImageList(iimagelist : i32, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHGetImageList(core::mem::transmute(iimagelist), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetImageList(iimagelist, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHGetInstanceExplorer() -> windows_core::Result { @@ -3196,7 +3196,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetItemFromDataObject(pdtobj : * mut core::ffi::c_void, dwflags : DATAOBJ_GET_ITEM_FLAGS, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHGetItemFromDataObject(pdtobj.param().abi(), core::mem::transmute(dwflags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetItemFromDataObject(pdtobj.param().abi(), dwflags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHGetItemFromObject(punk: P0) -> windows_core::Result @@ -3213,7 +3213,7 @@ where pub unsafe fn SHGetKnownFolderIDList(rfid: *const windows_core::GUID, dwflags: u32, htoken: Option) -> windows_core::Result<*mut Common::ITEMIDLIST> { windows_targets::link!("shell32.dll" "system" fn SHGetKnownFolderIDList(rfid : *const windows_core::GUID, dwflags : u32, htoken : super::super::Foundation:: HANDLE, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetKnownFolderIDList(core::mem::transmute(rfid), core::mem::transmute(dwflags), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + SHGetKnownFolderIDList(rfid, dwflags, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetKnownFolderItem(rfid: *const windows_core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: Option) -> windows_core::Result @@ -3222,13 +3222,13 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetKnownFolderItem(rfid : *const windows_core::GUID, flags : KNOWN_FOLDER_FLAG, htoken : super::super::Foundation:: HANDLE, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHGetKnownFolderItem(core::mem::transmute(rfid), core::mem::transmute(flags), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetKnownFolderItem(rfid, flags, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHGetKnownFolderPath(rfid: *const windows_core::GUID, dwflags: KNOWN_FOLDER_FLAG, htoken: Option) -> windows_core::Result { windows_targets::link!("shell32.dll" "system" fn SHGetKnownFolderPath(rfid : *const windows_core::GUID, dwflags : u32, htoken : super::super::Foundation:: HANDLE, ppszpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetKnownFolderPath(core::mem::transmute(rfid), dwflags.0 as _, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) + SHGetKnownFolderPath(rfid, dwflags.0 as _, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetLocalizedName(pszpath: P0, pszresmodule: &mut [u16], pidsres: *mut i32) -> windows_core::Result<()> @@ -3250,7 +3250,7 @@ pub unsafe fn SHGetMalloc() -> windows_core::Result windows_core::Result { windows_targets::link!("shell32.dll" "system" fn SHGetNameFromIDList(pidl : *const Common:: ITEMIDLIST, sigdnname : SIGDN, ppszname : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetNameFromIDList(core::mem::transmute(pidl), core::mem::transmute(sigdnname), &mut result__).map(|| core::mem::transmute(result__)) + SHGetNameFromIDList(pidl, sigdnname, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetNewLinkInfoA(pszlinkto: P0, pszdir: P1, pszname: &mut [u8; 260], pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL @@ -3259,7 +3259,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetNewLinkInfoA(pszlinkto : windows_core::PCSTR, pszdir : windows_core::PCSTR, pszname : windows_core::PSTR, pfmustcopy : *mut super::super::Foundation:: BOOL, uflags : u32) -> super::super::Foundation:: BOOL); - SHGetNewLinkInfoA(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), core::mem::transmute(pfmustcopy), core::mem::transmute(uflags)) + SHGetNewLinkInfoA(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), core::mem::transmute(pfmustcopy), uflags) } #[inline] pub unsafe fn SHGetNewLinkInfoW(pszlinkto: P0, pszdir: P1, pszname: &mut [u16; 260], pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL @@ -3268,25 +3268,25 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetNewLinkInfoW(pszlinkto : windows_core::PCWSTR, pszdir : windows_core::PCWSTR, pszname : windows_core::PWSTR, pfmustcopy : *mut super::super::Foundation:: BOOL, uflags : u32) -> super::super::Foundation:: BOOL); - SHGetNewLinkInfoW(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), core::mem::transmute(pfmustcopy), core::mem::transmute(uflags)) + SHGetNewLinkInfoW(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), core::mem::transmute(pfmustcopy), uflags) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetPathFromIDListA(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u8; 260]) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListA(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PSTR) -> super::super::Foundation:: BOOL); - SHGetPathFromIDListA(core::mem::transmute(pidl), core::mem::transmute(pszpath.as_ptr())) + SHGetPathFromIDListA(pidl, core::mem::transmute(pszpath.as_ptr())) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetPathFromIDListEx(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u16], uopts: GPFIDL_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListEx(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PWSTR, cchpath : u32, uopts : GPFIDL_FLAGS) -> super::super::Foundation:: BOOL); - SHGetPathFromIDListEx(core::mem::transmute(pidl), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), core::mem::transmute(uopts)) + SHGetPathFromIDListEx(pidl, core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), uopts) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetPathFromIDListW(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u16; 260]) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListW(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - SHGetPathFromIDListW(core::mem::transmute(pidl), core::mem::transmute(pszpath.as_ptr())) + SHGetPathFromIDListW(pidl, core::mem::transmute(pszpath.as_ptr())) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3296,7 +3296,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetRealIDL(psf : * mut core::ffi::c_void, pidlsimple : *const Common:: ITEMIDLIST, ppidlreal : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetRealIDL(psf.param().abi(), core::mem::transmute(pidlsimple), &mut result__).map(|| core::mem::transmute(result__)) + SHGetRealIDL(psf.param().abi(), pidlsimple, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetSetFolderCustomSettings(pfcs: *mut SHFOLDERCUSTOMSETTINGS, pszpath: P1, dwreadwrite: u32) -> windows_core::Result<()> @@ -3304,40 +3304,40 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetSetFolderCustomSettings(pfcs : *mut SHFOLDERCUSTOMSETTINGS, pszpath : windows_core::PCWSTR, dwreadwrite : u32) -> windows_core::HRESULT); - SHGetSetFolderCustomSettings(core::mem::transmute(pfcs), pszpath.param().abi(), core::mem::transmute(dwreadwrite)).ok() + SHGetSetFolderCustomSettings(core::mem::transmute(pfcs), pszpath.param().abi(), dwreadwrite).ok() } #[inline] pub unsafe fn SHGetSetSettings(lpss: Option<*mut SHELLSTATEA>, dwmask: SSF_MASK, bset: bool) { windows_targets::link!("shell32.dll" "system" fn SHGetSetSettings(lpss : *mut SHELLSTATEA, dwmask : SSF_MASK, bset : super::super::Foundation:: BOOL)); - SHGetSetSettings(core::mem::transmute(lpss.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwmask), bset.into()) + SHGetSetSettings(core::mem::transmute(lpss.unwrap_or(core::mem::zeroed())), dwmask, bset.into()) } #[inline] pub unsafe fn SHGetSettings(psfs: *mut SHELLFLAGSTATE, dwmask: u32) { windows_targets::link!("shell32.dll" "system" fn SHGetSettings(psfs : *mut SHELLFLAGSTATE, dwmask : u32)); - SHGetSettings(core::mem::transmute(psfs), core::mem::transmute(dwmask)) + SHGetSettings(core::mem::transmute(psfs), dwmask) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetSpecialFolderLocation(hwnd: Option, csidl: i32) -> windows_core::Result<*mut Common::ITEMIDLIST> { windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderLocation(hwnd : super::super::Foundation:: HWND, csidl : i32, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetSpecialFolderLocation(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(csidl), &mut result__).map(|| core::mem::transmute(result__)) + SHGetSpecialFolderLocation(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), csidl, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetSpecialFolderPathA(hwnd: Option, pszpath: &mut [u8; 260], csidl: i32, fcreate: bool) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderPathA(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PSTR, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SHGetSpecialFolderPathA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), core::mem::transmute(csidl), fcreate.into()) + SHGetSpecialFolderPathA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.into()) } #[inline] pub unsafe fn SHGetSpecialFolderPathW(hwnd: Option, pszpath: &mut [u16; 260], csidl: i32, fcreate: bool) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderPathW(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PWSTR, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SHGetSpecialFolderPathW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), core::mem::transmute(csidl), fcreate.into()) + SHGetSpecialFolderPathW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.into()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SHGetStockIconInfo(siid: SHSTOCKICONID, uflags: SHGSI_FLAGS, psii: *mut SHSTOCKICONINFO) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHGetStockIconInfo(siid : SHSTOCKICONID, uflags : SHGSI_FLAGS, psii : *mut SHSTOCKICONINFO) -> windows_core::HRESULT); - SHGetStockIconInfo(core::mem::transmute(siid), core::mem::transmute(uflags), core::mem::transmute(psii)).ok() + SHGetStockIconInfo(siid, uflags, core::mem::transmute(psii)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -3347,7 +3347,7 @@ where { windows_targets::link!("shell32.dll" "system" fn SHGetTemporaryPropertyForItem(psi : * mut core::ffi::c_void, propkey : *const super::super::Foundation:: PROPERTYKEY, ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - SHGetTemporaryPropertyForItem(psi.param().abi(), core::mem::transmute(propkey), &mut result__).map(|| core::mem::transmute(result__)) + SHGetTemporaryPropertyForItem(psi.param().abi(), propkey, &mut result__).map(|| core::mem::transmute(result__)) } #[inline] pub unsafe fn SHGetThreadRef() -> windows_core::Result { @@ -3372,7 +3372,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHGetValueA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHGetValueA(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHGetValueA(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3382,7 +3382,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHGetValueW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHGetValueW(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHGetValueW(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3393,28 +3393,28 @@ where { windows_targets::link!("shlwapi.dll" "system" fn SHGetViewStatePropertyBag(pidl : *const Common:: ITEMIDLIST, pszbagname : windows_core::PCWSTR, dwflags : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - SHGetViewStatePropertyBag(core::mem::transmute(pidl.unwrap_or(core::mem::zeroed())), pszbagname.param().abi(), core::mem::transmute(dwflags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetViewStatePropertyBag(core::mem::transmute(pidl.unwrap_or(core::mem::zeroed())), pszbagname.param().abi(), dwflags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHGlobalCounterDecrement(id: SHGLOBALCOUNTER) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn SHGlobalCounterDecrement(id : SHGLOBALCOUNTER) -> i32); - SHGlobalCounterDecrement(core::mem::transmute(id)) + SHGlobalCounterDecrement(id) } #[inline] pub unsafe fn SHGlobalCounterGetValue(id: SHGLOBALCOUNTER) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn SHGlobalCounterGetValue(id : SHGLOBALCOUNTER) -> i32); - SHGlobalCounterGetValue(core::mem::transmute(id)) + SHGlobalCounterGetValue(id) } #[inline] pub unsafe fn SHGlobalCounterIncrement(id: SHGLOBALCOUNTER) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn SHGlobalCounterIncrement(id : SHGLOBALCOUNTER) -> i32); - SHGlobalCounterIncrement(core::mem::transmute(id)) + SHGlobalCounterIncrement(id) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHHandleUpdateImage(pidlextra: *const Common::ITEMIDLIST) -> i32 { windows_targets::link!("shell32.dll" "system" fn SHHandleUpdateImage(pidlextra : *const Common:: ITEMIDLIST) -> i32); - SHHandleUpdateImage(core::mem::transmute(pidlextra)) + SHHandleUpdateImage(pidlextra) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3432,7 +3432,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHInvokePrinterCommandA(hwnd : super::super::Foundation:: HWND, uaction : u32, lpbuf1 : windows_core::PCSTR, lpbuf2 : windows_core::PCSTR, fmodal : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SHInvokePrinterCommandA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(uaction), lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.into()) + SHInvokePrinterCommandA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), uaction, lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.into()) } #[inline] pub unsafe fn SHInvokePrinterCommandW(hwnd: Option, uaction: u32, lpbuf1: P2, lpbuf2: P3, fmodal: bool) -> super::super::Foundation::BOOL @@ -3441,7 +3441,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHInvokePrinterCommandW(hwnd : super::super::Foundation:: HWND, uaction : u32, lpbuf1 : windows_core::PCWSTR, lpbuf2 : windows_core::PCWSTR, fmodal : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SHInvokePrinterCommandW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(uaction), lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.into()) + SHInvokePrinterCommandW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), uaction, lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.into()) } #[inline] pub unsafe fn SHIsFileAvailableOffline(pwszpath: P0, pdwstatus: Option<*mut u32>) -> windows_core::Result<()> @@ -3454,7 +3454,7 @@ where #[inline] pub unsafe fn SHIsLowMemoryMachine(dwtype: u32) -> super::super::Foundation::BOOL { windows_targets::link!("shlwapi.dll" "system" fn SHIsLowMemoryMachine(dwtype : u32) -> super::super::Foundation:: BOOL); - SHIsLowMemoryMachine(core::mem::transmute(dwtype)) + SHIsLowMemoryMachine(dwtype) } #[inline] pub unsafe fn SHLimitInputEdit(hwndedit: super::super::Foundation::HWND, psf: P1) -> windows_core::Result<()> @@ -3462,12 +3462,12 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHLimitInputEdit(hwndedit : super::super::Foundation:: HWND, psf : * mut core::ffi::c_void) -> windows_core::HRESULT); - SHLimitInputEdit(core::mem::transmute(hwndedit), psf.param().abi()).ok() + SHLimitInputEdit(hwndedit, psf.param().abi()).ok() } #[inline] pub unsafe fn SHLoadInProc(rclsid: *const windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHLoadInProc(rclsid : *const windows_core::GUID) -> windows_core::HRESULT); - SHLoadInProc(core::mem::transmute(rclsid)).ok() + SHLoadInProc(rclsid).ok() } #[inline] pub unsafe fn SHLoadIndirectString(pszsource: P0, pszoutbuf: &mut [u16], ppvreserved: Option<*const *const core::ffi::c_void>) -> windows_core::Result<()> @@ -3485,7 +3485,7 @@ pub unsafe fn SHLoadNonloadedIconOverlayIdentifiers() -> windows_core::Result<() #[inline] pub unsafe fn SHLockShared(hdata: super::super::Foundation::HANDLE, dwprocessid: u32) -> *mut core::ffi::c_void { windows_targets::link!("shlwapi.dll" "system" fn SHLockShared(hdata : super::super::Foundation:: HANDLE, dwprocessid : u32) -> *mut core::ffi::c_void); - SHLockShared(core::mem::transmute(hdata), core::mem::transmute(dwprocessid)) + SHLockShared(hdata, dwprocessid) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3494,7 +3494,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHMapPIDLToSystemImageListIndex(pshf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, piindexsel : *mut i32) -> i32); - SHMapPIDLToSystemImageListIndex(pshf.param().abi(), core::mem::transmute(pidl), core::mem::transmute(piindexsel.unwrap_or(core::mem::zeroed()))) + SHMapPIDLToSystemImageListIndex(pshf.param().abi(), pidl, core::mem::transmute(piindexsel.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHMessageBoxCheckA(hwnd: Option, psztext: P1, pszcaption: P2, utype: u32, idefault: i32, pszregval: P5) -> i32 @@ -3504,7 +3504,7 @@ where P5: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHMessageBoxCheckA(hwnd : super::super::Foundation:: HWND, psztext : windows_core::PCSTR, pszcaption : windows_core::PCSTR, utype : u32, idefault : i32, pszregval : windows_core::PCSTR) -> i32); - SHMessageBoxCheckA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztext.param().abi(), pszcaption.param().abi(), core::mem::transmute(utype), core::mem::transmute(idefault), pszregval.param().abi()) + SHMessageBoxCheckA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztext.param().abi(), pszcaption.param().abi(), utype, idefault, pszregval.param().abi()) } #[inline] pub unsafe fn SHMessageBoxCheckW(hwnd: Option, psztext: P1, pszcaption: P2, utype: u32, idefault: i32, pszregval: P5) -> i32 @@ -3514,7 +3514,7 @@ where P5: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHMessageBoxCheckW(hwnd : super::super::Foundation:: HWND, psztext : windows_core::PCWSTR, pszcaption : windows_core::PCWSTR, utype : u32, idefault : i32, pszregval : windows_core::PCWSTR) -> i32); - SHMessageBoxCheckW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztext.param().abi(), pszcaption.param().abi(), core::mem::transmute(utype), core::mem::transmute(idefault), pszregval.param().abi()) + SHMessageBoxCheckW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psztext.param().abi(), pszcaption.param().abi(), utype, idefault, pszregval.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -3523,7 +3523,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHMultiFileProperties(pdtobj : * mut core::ffi::c_void, dwflags : u32) -> windows_core::HRESULT); - SHMultiFileProperties(pdtobj.param().abi(), core::mem::transmute(dwflags)).ok() + SHMultiFileProperties(pdtobj.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SHObjectProperties(hwnd: Option, shopobjecttype: SHOP_TYPE, pszobjectname: P2, pszpropertypage: P3) -> super::super::Foundation::BOOL @@ -3538,7 +3538,7 @@ where #[inline] pub unsafe fn SHOpenFolderAndSelectItems(pidlfolder: *const Common::ITEMIDLIST, apidl: Option<&[*const Common::ITEMIDLIST]>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHOpenFolderAndSelectItems(pidlfolder : *const Common:: ITEMIDLIST, cidl : u32, apidl : *const *const Common:: ITEMIDLIST, dwflags : u32) -> windows_core::HRESULT); - SHOpenFolderAndSelectItems(core::mem::transmute(pidlfolder), apidl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(apidl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwflags)).ok() + SHOpenFolderAndSelectItems(pidlfolder, apidl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(apidl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Registry"))] #[inline] @@ -3560,7 +3560,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHOpenRegStream2A(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, grfmode : u32) -> Option < super::super::System::Com:: IStream >); - SHOpenRegStream2A(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(grfmode)) + SHOpenRegStream2A(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] @@ -3570,7 +3570,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHOpenRegStream2W(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, grfmode : u32) -> Option < super::super::System::Com:: IStream >); - SHOpenRegStream2W(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(grfmode)) + SHOpenRegStream2W(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] @@ -3580,7 +3580,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHOpenRegStreamA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, grfmode : u32) -> Option < super::super::System::Com:: IStream >); - SHOpenRegStreamA(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(grfmode)) + SHOpenRegStreamA(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] @@ -3590,12 +3590,12 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHOpenRegStreamW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, grfmode : u32) -> Option < super::super::System::Com:: IStream >); - SHOpenRegStreamW(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(grfmode)) + SHOpenRegStreamW(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[inline] pub unsafe fn SHOpenWithDialog(hwndparent: Option, poainfo: *const OPENASINFO) -> windows_core::Result<()> { windows_targets::link!("shell32.dll" "system" fn SHOpenWithDialog(hwndparent : super::super::Foundation:: HWND, poainfo : *const OPENASINFO) -> windows_core::HRESULT); - SHOpenWithDialog(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(poainfo)).ok() + SHOpenWithDialog(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), poainfo).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -3605,7 +3605,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHParseDisplayName(pszname : windows_core::PCWSTR, pbc : * mut core::ffi::c_void, ppidl : *mut *mut Common:: ITEMIDLIST, sfgaoin : u32, psfgaoout : *mut u32) -> windows_core::HRESULT); - SHParseDisplayName(pszname.param().abi(), pbc.param().abi(), core::mem::transmute(ppidl), core::mem::transmute(sfgaoin), core::mem::transmute(psfgaoout.unwrap_or(core::mem::zeroed()))).ok() + SHParseDisplayName(pszname.param().abi(), pbc.param().abi(), core::mem::transmute(ppidl), sfgaoin, core::mem::transmute(psfgaoout.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SHPathPrepareForWriteA(hwnd: Option, punkenablemodless: P1, pszpath: P2, dwflags: u32) -> windows_core::Result<()> @@ -3614,7 +3614,7 @@ where P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHPathPrepareForWriteA(hwnd : super::super::Foundation:: HWND, punkenablemodless : * mut core::ffi::c_void, pszpath : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - SHPathPrepareForWriteA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), punkenablemodless.param().abi(), pszpath.param().abi(), core::mem::transmute(dwflags)).ok() + SHPathPrepareForWriteA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), punkenablemodless.param().abi(), pszpath.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SHPathPrepareForWriteW(hwnd: Option, punkenablemodless: P1, pszpath: P2, dwflags: u32) -> windows_core::Result<()> @@ -3623,19 +3623,19 @@ where P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHPathPrepareForWriteW(hwnd : super::super::Foundation:: HWND, punkenablemodless : * mut core::ffi::c_void, pszpath : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - SHPathPrepareForWriteW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), punkenablemodless.param().abi(), pszpath.param().abi(), core::mem::transmute(dwflags)).ok() + SHPathPrepareForWriteW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), punkenablemodless.param().abi(), pszpath.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHQueryInfoKeyA(hkey: super::super::System::Registry::HKEY, pcsubkeys: Option<*mut u32>, pcchmaxsubkeylen: Option<*mut u32>, pcvalues: Option<*mut u32>, pcchmaxvaluenamelen: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHQueryInfoKeyA(hkey : super::super::System::Registry:: HKEY, pcsubkeys : *mut u32, pcchmaxsubkeylen : *mut u32, pcvalues : *mut u32, pcchmaxvaluenamelen : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHQueryInfoKeyA(core::mem::transmute(hkey), core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed()))) + SHQueryInfoKeyA(hkey, core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHQueryInfoKeyW(hkey: super::super::System::Registry::HKEY, pcsubkeys: Option<*mut u32>, pcchmaxsubkeylen: Option<*mut u32>, pcvalues: Option<*mut u32>, pcchmaxvaluenamelen: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHQueryInfoKeyW(hkey : super::super::System::Registry:: HKEY, pcsubkeys : *mut u32, pcchmaxsubkeylen : *mut u32, pcvalues : *mut u32, pcchmaxvaluenamelen : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHQueryInfoKeyW(core::mem::transmute(hkey), core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed()))) + SHQueryInfoKeyW(hkey, core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHQueryRecycleBinA(pszrootpath: P0, pshqueryrbinfo: *mut SHQUERYRBINFO) -> windows_core::Result<()> @@ -3666,7 +3666,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHQueryValueExA(hkey : super::super::System::Registry:: HKEY, pszvalue : windows_core::PCSTR, pdwreserved : *const u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHQueryValueExA(core::mem::transmute(hkey), pszvalue.param().abi(), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHQueryValueExA(hkey, pszvalue.param().abi(), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3675,12 +3675,12 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHQueryValueExW(hkey : super::super::System::Registry:: HKEY, pszvalue : windows_core::PCWSTR, pdwreserved : *const u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHQueryValueExW(core::mem::transmute(hkey), pszvalue.param().abi(), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHQueryValueExW(hkey, pszvalue.param().abi(), core::mem::transmute(pdwreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHRegCloseUSKey(huskey: isize) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegCloseUSKey(huskey : isize) -> super::super::Foundation:: WIN32_ERROR); - SHRegCloseUSKey(core::mem::transmute(huskey)) + SHRegCloseUSKey(huskey) } #[inline] pub unsafe fn SHRegCreateUSKeyA(pszpath: P0, samdesired: u32, hrelativeuskey: Option, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::WIN32_ERROR @@ -3688,7 +3688,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegCreateUSKeyA(pszpath : windows_core::PCSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegCreateUSKeyA(pszpath.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), core::mem::transmute(dwflags)) + SHRegCreateUSKeyA(pszpath.param().abi(), samdesired, core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), dwflags) } #[inline] pub unsafe fn SHRegCreateUSKeyW(pwzpath: P0, samdesired: u32, hrelativeuskey: Option, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::WIN32_ERROR @@ -3696,7 +3696,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegCreateUSKeyW(pwzpath : windows_core::PCWSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegCreateUSKeyW(pwzpath.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), core::mem::transmute(dwflags)) + SHRegCreateUSKeyW(pwzpath.param().abi(), samdesired, core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), dwflags) } #[inline] pub unsafe fn SHRegDeleteEmptyUSKeyA(huskey: isize, pszsubkey: P1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -3704,7 +3704,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegDeleteEmptyUSKeyA(huskey : isize, pszsubkey : windows_core::PCSTR, delregflags : SHREGDEL_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegDeleteEmptyUSKeyA(core::mem::transmute(huskey), pszsubkey.param().abi(), core::mem::transmute(delregflags)) + SHRegDeleteEmptyUSKeyA(huskey, pszsubkey.param().abi(), delregflags) } #[inline] pub unsafe fn SHRegDeleteEmptyUSKeyW(huskey: isize, pwzsubkey: P1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -3712,7 +3712,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegDeleteEmptyUSKeyW(huskey : isize, pwzsubkey : windows_core::PCWSTR, delregflags : SHREGDEL_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegDeleteEmptyUSKeyW(core::mem::transmute(huskey), pwzsubkey.param().abi(), core::mem::transmute(delregflags)) + SHRegDeleteEmptyUSKeyW(huskey, pwzsubkey.param().abi(), delregflags) } #[inline] pub unsafe fn SHRegDeleteUSValueA(huskey: isize, pszvalue: P1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -3720,7 +3720,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegDeleteUSValueA(huskey : isize, pszvalue : windows_core::PCSTR, delregflags : SHREGDEL_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegDeleteUSValueA(core::mem::transmute(huskey), pszvalue.param().abi(), core::mem::transmute(delregflags)) + SHRegDeleteUSValueA(huskey, pszvalue.param().abi(), delregflags) } #[inline] pub unsafe fn SHRegDeleteUSValueW(huskey: isize, pwzvalue: P1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR @@ -3728,33 +3728,33 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegDeleteUSValueW(huskey : isize, pwzvalue : windows_core::PCWSTR, delregflags : SHREGDEL_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegDeleteUSValueW(core::mem::transmute(huskey), pwzvalue.param().abi(), core::mem::transmute(delregflags)) + SHRegDeleteUSValueW(huskey, pwzvalue.param().abi(), delregflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegDuplicateHKey(hkey: super::super::System::Registry::HKEY) -> super::super::System::Registry::HKEY { windows_targets::link!("shlwapi.dll" "system" fn SHRegDuplicateHKey(hkey : super::super::System::Registry:: HKEY) -> super::super::System::Registry:: HKEY); - SHRegDuplicateHKey(core::mem::transmute(hkey)) + SHRegDuplicateHKey(hkey) } #[inline] pub unsafe fn SHRegEnumUSKeyA(huskey: isize, dwindex: u32, pszname: windows_core::PSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegEnumUSKeyA(huskey : isize, dwindex : u32, pszname : windows_core::PSTR, pcchname : *mut u32, enumregflags : SHREGENUM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegEnumUSKeyA(core::mem::transmute(huskey), core::mem::transmute(dwindex), core::mem::transmute(pszname), core::mem::transmute(pcchname), core::mem::transmute(enumregflags)) + SHRegEnumUSKeyA(huskey, dwindex, core::mem::transmute(pszname), core::mem::transmute(pcchname), enumregflags) } #[inline] pub unsafe fn SHRegEnumUSKeyW(huskey: isize, dwindex: u32, pwzname: windows_core::PWSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegEnumUSKeyW(huskey : isize, dwindex : u32, pwzname : windows_core::PWSTR, pcchname : *mut u32, enumregflags : SHREGENUM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegEnumUSKeyW(core::mem::transmute(huskey), core::mem::transmute(dwindex), core::mem::transmute(pwzname), core::mem::transmute(pcchname), core::mem::transmute(enumregflags)) + SHRegEnumUSKeyW(huskey, dwindex, core::mem::transmute(pwzname), core::mem::transmute(pcchname), enumregflags) } #[inline] pub unsafe fn SHRegEnumUSValueA(huskey: isize, dwindex: u32, pszvaluename: windows_core::PSTR, pcchvaluename: *mut u32, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegEnumUSValueA(huskey : isize, dwindex : u32, pszvaluename : windows_core::PSTR, pcchvaluename : *mut u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, enumregflags : SHREGENUM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegEnumUSValueA(core::mem::transmute(huskey), core::mem::transmute(dwindex), core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumregflags)) + SHRegEnumUSValueA(huskey, dwindex, core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), enumregflags) } #[inline] pub unsafe fn SHRegEnumUSValueW(huskey: isize, dwindex: u32, pszvaluename: windows_core::PWSTR, pcchvaluename: *mut u32, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegEnumUSValueW(huskey : isize, dwindex : u32, pszvaluename : windows_core::PWSTR, pcchvaluename : *mut u32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, enumregflags : SHREGENUM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegEnumUSValueW(core::mem::transmute(huskey), core::mem::transmute(dwindex), core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumregflags)) + SHRegEnumUSValueW(huskey, dwindex, core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), enumregflags) } #[inline] pub unsafe fn SHRegGetBoolUSValueA(pszsubkey: P0, pszvalue: P1, fignorehkcu: bool, fdefault: bool) -> super::super::Foundation::BOOL @@ -3781,7 +3781,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetIntW(hk : super::super::System::Registry:: HKEY, pwzkey : windows_core::PCWSTR, idefault : i32) -> i32); - SHRegGetIntW(core::mem::transmute(hk), pwzkey.param().abi(), core::mem::transmute(idefault)) + SHRegGetIntW(hk, pwzkey.param().abi(), idefault) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3791,7 +3791,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetPathA(hkey : super::super::System::Registry:: HKEY, pcszsubkey : windows_core::PCSTR, pcszvalue : windows_core::PCSTR, pszpath : windows_core::PSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetPathA(core::mem::transmute(hkey), pcszsubkey.param().abi(), pcszvalue.param().abi(), core::mem::transmute(pszpath.as_ptr()), core::mem::transmute(dwflags)) + SHRegGetPathA(hkey, pcszsubkey.param().abi(), pcszvalue.param().abi(), core::mem::transmute(pszpath.as_ptr()), dwflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3801,7 +3801,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetPathW(hkey : super::super::System::Registry:: HKEY, pcszsubkey : windows_core::PCWSTR, pcszvalue : windows_core::PCWSTR, pszpath : windows_core::PWSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetPathW(core::mem::transmute(hkey), pcszsubkey.param().abi(), pcszvalue.param().abi(), core::mem::transmute(pszpath.as_ptr()), core::mem::transmute(dwflags)) + SHRegGetPathW(hkey, pcszsubkey.param().abi(), pcszvalue.param().abi(), core::mem::transmute(pszpath.as_ptr()), dwflags) } #[inline] pub unsafe fn SHRegGetUSValueA(pszsubkey: P0, pszvalue: P1, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, fignorehkcu: bool, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: u32) -> super::super::Foundation::WIN32_ERROR @@ -3810,7 +3810,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdefaultdatasize)) + SHRegGetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), dwdefaultdatasize) } #[inline] pub unsafe fn SHRegGetUSValueW(pszsubkey: P0, pszvalue: P1, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, fignorehkcu: bool, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: u32) -> super::super::Foundation::WIN32_ERROR @@ -3819,7 +3819,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetUSValueW(pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetUSValueW(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdefaultdatasize)) + SHRegGetUSValueW(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), dwdefaultdatasize) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3829,7 +3829,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetValueA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, srrfflags : i32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetValueA(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(srrfflags), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHRegGetValueA(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHRegGetValueFromHKCUHKLM(pwszkey: P0, pwszvalue: P1, srrfflags: i32, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR @@ -3838,7 +3838,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetValueFromHKCUHKLM(pwszkey : windows_core::PCWSTR, pwszvalue : windows_core::PCWSTR, srrfflags : i32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetValueFromHKCUHKLM(pwszkey.param().abi(), pwszvalue.param().abi(), core::mem::transmute(srrfflags), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHRegGetValueFromHKCUHKLM(pwszkey.param().abi(), pwszvalue.param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3848,7 +3848,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetValueW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, srrfflags : i32, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegGetValueW(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(srrfflags), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) + SHRegGetValueW(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHRegOpenUSKeyA(pszpath: P0, samdesired: u32, hrelativeuskey: Option, phnewuskey: *mut isize, fignorehkcu: bool) -> super::super::Foundation::WIN32_ERROR @@ -3856,7 +3856,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegOpenUSKeyA(pszpath : windows_core::PCSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, fignorehkcu : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - SHRegOpenUSKeyA(pszpath.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), fignorehkcu.into()) + SHRegOpenUSKeyA(pszpath.param().abi(), samdesired, core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), fignorehkcu.into()) } #[inline] pub unsafe fn SHRegOpenUSKeyW(pwzpath: P0, samdesired: u32, hrelativeuskey: Option, phnewuskey: *mut isize, fignorehkcu: bool) -> super::super::Foundation::WIN32_ERROR @@ -3864,17 +3864,17 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegOpenUSKeyW(pwzpath : windows_core::PCWSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, fignorehkcu : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - SHRegOpenUSKeyW(pwzpath.param().abi(), core::mem::transmute(samdesired), core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), fignorehkcu.into()) + SHRegOpenUSKeyW(pwzpath.param().abi(), samdesired, core::mem::transmute(hrelativeuskey.unwrap_or(core::mem::zeroed())), core::mem::transmute(phnewuskey), fignorehkcu.into()) } #[inline] pub unsafe fn SHRegQueryInfoUSKeyA(huskey: isize, pcsubkeys: Option<*mut u32>, pcchmaxsubkeylen: Option<*mut u32>, pcvalues: Option<*mut u32>, pcchmaxvaluenamelen: Option<*mut u32>, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryInfoUSKeyA(huskey : isize, pcsubkeys : *mut u32, pcchmaxsubkeylen : *mut u32, pcvalues : *mut u32, pcchmaxvaluenamelen : *mut u32, enumregflags : SHREGENUM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegQueryInfoUSKeyA(core::mem::transmute(huskey), core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumregflags)) + SHRegQueryInfoUSKeyA(huskey, core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed())), enumregflags) } #[inline] pub unsafe fn SHRegQueryInfoUSKeyW(huskey: isize, pcsubkeys: Option<*mut u32>, pcchmaxsubkeylen: Option<*mut u32>, pcvalues: Option<*mut u32>, pcchmaxvaluenamelen: Option<*mut u32>, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryInfoUSKeyW(huskey : isize, pcsubkeys : *mut u32, pcchmaxsubkeylen : *mut u32, pcvalues : *mut u32, pcchmaxvaluenamelen : *mut u32, enumregflags : SHREGENUM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); - SHRegQueryInfoUSKeyW(core::mem::transmute(huskey), core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed())), core::mem::transmute(enumregflags)) + SHRegQueryInfoUSKeyW(huskey, core::mem::transmute(pcsubkeys.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcvalues.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(core::mem::zeroed())), enumregflags) } #[inline] pub unsafe fn SHRegQueryUSValueA(huskey: isize, pszvalue: P1, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, fignorehkcu: bool, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: Option) -> super::super::Foundation::WIN32_ERROR @@ -3882,7 +3882,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryUSValueA(huskey : isize, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegQueryUSValueA(core::mem::transmute(huskey), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdefaultdatasize.unwrap_or(core::mem::zeroed()))) + SHRegQueryUSValueA(huskey, pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdefaultdatasize.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHRegQueryUSValueW(huskey: isize, pszvalue: P1, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, fignorehkcu: bool, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: Option) -> super::super::Foundation::WIN32_ERROR @@ -3890,7 +3890,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryUSValueW(huskey : isize, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegQueryUSValueW(core::mem::transmute(huskey), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdefaultdatasize.unwrap_or(core::mem::zeroed()))) + SHRegQueryUSValueW(huskey, pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbdata.unwrap_or(core::mem::zeroed())), fignorehkcu.into(), core::mem::transmute(pvdefaultdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwdefaultdatasize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3901,7 +3901,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegSetPathA(hkey : super::super::System::Registry:: HKEY, pcszsubkey : windows_core::PCSTR, pcszvalue : windows_core::PCSTR, pcszpath : windows_core::PCSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegSetPathA(core::mem::transmute(hkey), pcszsubkey.param().abi(), pcszvalue.param().abi(), pcszpath.param().abi(), core::mem::transmute(dwflags)) + SHRegSetPathA(hkey, pcszsubkey.param().abi(), pcszvalue.param().abi(), pcszpath.param().abi(), dwflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -3912,7 +3912,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegSetPathW(hkey : super::super::System::Registry:: HKEY, pcszsubkey : windows_core::PCWSTR, pcszvalue : windows_core::PCWSTR, pcszpath : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegSetPathW(core::mem::transmute(hkey), pcszsubkey.param().abi(), pcszvalue.param().abi(), pcszpath.param().abi(), core::mem::transmute(dwflags)) + SHRegSetPathW(hkey, pcszsubkey.param().abi(), pcszvalue.param().abi(), pcszpath.param().abi(), dwflags) } #[inline] pub unsafe fn SHRegSetUSValueA(pszsubkey: P0, pszvalue: P1, dwtype: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: Option, dwflags: Option) -> super::super::Foundation::WIN32_ERROR @@ -3921,7 +3921,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegSetUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, dwtype : u32, pvdata : *const core::ffi::c_void, cbdata : u32, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegSetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))) + SHRegSetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHRegSetUSValueW(pwzsubkey: P0, pwzvalue: P1, dwtype: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: Option, dwflags: Option) -> super::super::Foundation::WIN32_ERROR @@ -3930,7 +3930,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegSetUSValueW(pwzsubkey : windows_core::PCWSTR, pwzvalue : windows_core::PCWSTR, dwtype : u32, pvdata : *const core::ffi::c_void, cbdata : u32, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegSetUSValueW(pwzsubkey.param().abi(), pwzvalue.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))) + SHRegSetUSValueW(pwzsubkey.param().abi(), pwzvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SHRegWriteUSValueA(huskey: isize, pszvalue: P1, dwtype: u32, pvdata: *const core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::WIN32_ERROR @@ -3938,7 +3938,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegWriteUSValueA(huskey : isize, pszvalue : windows_core::PCSTR, dwtype : u32, pvdata : *const core::ffi::c_void, cbdata : u32, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegWriteUSValueA(core::mem::transmute(huskey), pszvalue.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvdata), core::mem::transmute(cbdata), core::mem::transmute(dwflags)) + SHRegWriteUSValueA(huskey, pszvalue.param().abi(), dwtype, pvdata, cbdata, dwflags) } #[inline] pub unsafe fn SHRegWriteUSValueW(huskey: isize, pwzvalue: P1, dwtype: u32, pvdata: *const core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::WIN32_ERROR @@ -3946,7 +3946,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegWriteUSValueW(huskey : isize, pwzvalue : windows_core::PCWSTR, dwtype : u32, pvdata : *const core::ffi::c_void, cbdata : u32, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - SHRegWriteUSValueW(core::mem::transmute(huskey), pwzvalue.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvdata), core::mem::transmute(cbdata), core::mem::transmute(dwflags)) + SHRegWriteUSValueW(huskey, pwzvalue.param().abi(), dwtype, pvdata, cbdata, dwflags) } #[inline] pub unsafe fn SHReleaseThreadRef() -> windows_core::Result<()> { @@ -3965,7 +3965,7 @@ where #[inline] pub unsafe fn SHReplaceFromPropSheetExtArray(hpsxa: HPSXA, upageid: u32, lpfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> u32 { windows_targets::link!("shell32.dll" "system" fn SHReplaceFromPropSheetExtArray(hpsxa : HPSXA, upageid : u32, lpfnreplacewith : super::Controls:: LPFNSVADDPROPSHEETPAGE, lparam : super::super::Foundation:: LPARAM) -> u32); - SHReplaceFromPropSheetExtArray(core::mem::transmute(hpsxa), core::mem::transmute(upageid), core::mem::transmute(lpfnreplacewith), core::mem::transmute(lparam)) + SHReplaceFromPropSheetExtArray(hpsxa, upageid, lpfnreplacewith, lparam) } #[inline] pub unsafe fn SHResolveLibrary(psilibrary: P0) -> windows_core::Result<()> @@ -3978,17 +3978,17 @@ where #[inline] pub unsafe fn SHRestricted(rest: RESTRICTIONS) -> u32 { windows_targets::link!("shell32.dll" "system" fn SHRestricted(rest : RESTRICTIONS) -> u32); - SHRestricted(core::mem::transmute(rest)) + SHRestricted(rest) } #[inline] pub unsafe fn SHSendMessageBroadcastA(umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("shlwapi.dll" "system" fn SHSendMessageBroadcastA(umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SHSendMessageBroadcastA(core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + SHSendMessageBroadcastA(umsg, wparam, lparam) } #[inline] pub unsafe fn SHSendMessageBroadcastW(umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("shlwapi.dll" "system" fn SHSendMessageBroadcastW(umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SHSendMessageBroadcastW(core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + SHSendMessageBroadcastW(umsg, wparam, lparam) } #[inline] pub unsafe fn SHSetDefaultProperties(hwnd: Option, psi: P1, dwfileopflags: u32, pfops: P3) -> windows_core::Result<()> @@ -3997,7 +3997,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetDefaultProperties(hwnd : super::super::Foundation:: HWND, psi : * mut core::ffi::c_void, dwfileopflags : u32, pfops : * mut core::ffi::c_void) -> windows_core::HRESULT); - SHSetDefaultProperties(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psi.param().abi(), core::mem::transmute(dwfileopflags), pfops.param().abi()).ok() + SHSetDefaultProperties(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), psi.param().abi(), dwfileopflags, pfops.param().abi()).ok() } #[inline] pub unsafe fn SHSetFolderPathA(csidl: i32, htoken: Option, dwflags: u32, pszpath: P3) -> windows_core::Result<()> @@ -4005,7 +4005,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetFolderPathA(csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, pszpath : windows_core::PCSTR) -> windows_core::HRESULT); - SHSetFolderPathA(core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), pszpath.param().abi()).ok() + SHSetFolderPathA(csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, pszpath.param().abi()).ok() } #[inline] pub unsafe fn SHSetFolderPathW(csidl: i32, htoken: Option, dwflags: u32, pszpath: P3) -> windows_core::Result<()> @@ -4013,7 +4013,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetFolderPathW(csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, pszpath : windows_core::PCWSTR) -> windows_core::HRESULT); - SHSetFolderPathW(core::mem::transmute(csidl), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags), pszpath.param().abi()).ok() + SHSetFolderPathW(csidl, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), dwflags, pszpath.param().abi()).ok() } #[inline] pub unsafe fn SHSetInstanceExplorer(punk: P0) @@ -4029,7 +4029,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetKnownFolderPath(rfid : *const windows_core::GUID, dwflags : u32, htoken : super::super::Foundation:: HANDLE, pszpath : windows_core::PCWSTR) -> windows_core::HRESULT); - SHSetKnownFolderPath(core::mem::transmute(rfid), core::mem::transmute(dwflags), core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), pszpath.param().abi()).ok() + SHSetKnownFolderPath(rfid, dwflags, core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), pszpath.param().abi()).ok() } #[inline] pub unsafe fn SHSetLocalizedName(pszpath: P0, pszresmodule: P1, idsres: i32) -> windows_core::Result<()> @@ -4038,7 +4038,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetLocalizedName(pszpath : windows_core::PCWSTR, pszresmodule : windows_core::PCWSTR, idsres : i32) -> windows_core::HRESULT); - SHSetLocalizedName(pszpath.param().abi(), pszresmodule.param().abi(), core::mem::transmute(idsres)).ok() + SHSetLocalizedName(pszpath.param().abi(), pszresmodule.param().abi(), idsres).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -4047,7 +4047,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetTemporaryPropertyForItem(psi : * mut core::ffi::c_void, propkey : *const super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_core::HRESULT); - SHSetTemporaryPropertyForItem(psi.param().abi(), core::mem::transmute(propkey), core::mem::transmute(propvar)).ok() + SHSetTemporaryPropertyForItem(psi.param().abi(), propkey, core::mem::transmute(propvar)).ok() } #[inline] pub unsafe fn SHSetThreadRef(punk: P0) -> windows_core::Result<()> @@ -4064,7 +4064,7 @@ where P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetUnreadMailCountW(pszmailaddress : windows_core::PCWSTR, dwcount : u32, pszshellexecutecommand : windows_core::PCWSTR) -> windows_core::HRESULT); - SHSetUnreadMailCountW(pszmailaddress.param().abi(), core::mem::transmute(dwcount), pszshellexecutecommand.param().abi()).ok() + SHSetUnreadMailCountW(pszmailaddress.param().abi(), dwcount, pszshellexecutecommand.param().abi()).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -4074,7 +4074,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHSetValueA(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, dwtype : u32, pvdata : *const core::ffi::c_void, cbdata : u32) -> i32); - SHSetValueA(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata)) + SHSetValueA(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), cbdata) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -4084,12 +4084,12 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHSetValueW(hkey : super::super::System::Registry:: HKEY, pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, dwtype : u32, pvdata : *const core::ffi::c_void, cbdata : u32) -> i32); - SHSetValueW(core::mem::transmute(hkey), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), core::mem::transmute(cbdata)) + SHSetValueW(hkey, pszsubkey.param().abi(), pszvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(core::mem::zeroed())), cbdata) } #[inline] pub unsafe fn SHShellFolderView_Message(hwndmain: super::super::Foundation::HWND, umsg: u32, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("shell32.dll" "system" fn SHShellFolderView_Message(hwndmain : super::super::Foundation:: HWND, umsg : u32, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SHShellFolderView_Message(core::mem::transmute(hwndmain), core::mem::transmute(umsg), core::mem::transmute(lparam)) + SHShellFolderView_Message(hwndmain, umsg, lparam) } #[inline] pub unsafe fn SHShowManageLibraryUI(psilibrary: P0, hwndowner: super::super::Foundation::HWND, psztitle: P2, pszinstruction: P3, lmdoptions: LIBRARYMANAGEDIALOGOPTIONS) -> windows_core::Result<()> @@ -4099,7 +4099,7 @@ where P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHShowManageLibraryUI(psilibrary : * mut core::ffi::c_void, hwndowner : super::super::Foundation:: HWND, psztitle : windows_core::PCWSTR, pszinstruction : windows_core::PCWSTR, lmdoptions : LIBRARYMANAGEDIALOGOPTIONS) -> windows_core::HRESULT); - SHShowManageLibraryUI(psilibrary.param().abi(), core::mem::transmute(hwndowner), psztitle.param().abi(), pszinstruction.param().abi(), core::mem::transmute(lmdoptions)).ok() + SHShowManageLibraryUI(psilibrary.param().abi(), hwndowner, psztitle.param().abi(), pszinstruction.param().abi(), lmdoptions).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -4117,7 +4117,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHSkipJunction(pbc : * mut core::ffi::c_void, pclsid : *const windows_core::GUID) -> super::super::Foundation:: BOOL); - SHSkipJunction(pbc.param().abi(), core::mem::transmute(pclsid)) + SHSkipJunction(pbc.param().abi(), pclsid) } #[inline] pub unsafe fn SHStartNetConnectionDialogW(hwnd: Option, pszremotename: P1, dwtype: u32) -> windows_core::Result<()> @@ -4125,7 +4125,7 @@ where P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHStartNetConnectionDialogW(hwnd : super::super::Foundation:: HWND, pszremotename : windows_core::PCWSTR, dwtype : u32) -> windows_core::HRESULT); - SHStartNetConnectionDialogW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszremotename.param().abi(), core::mem::transmute(dwtype)).ok() + SHStartNetConnectionDialogW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszremotename.param().abi(), dwtype).ok() } #[inline] pub unsafe fn SHStrDupA(psz: P0) -> windows_core::Result @@ -4158,7 +4158,7 @@ pub unsafe fn SHStripMneumonicW(pszmenu: windows_core::PWSTR) -> u16 { #[inline] pub unsafe fn SHTestTokenMembership(htoken: Option, ulrid: u32) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SHTestTokenMembership(htoken : super::super::Foundation:: HANDLE, ulrid : u32) -> super::super::Foundation:: BOOL); - SHTestTokenMembership(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(ulrid)) + SHTestTokenMembership(core::mem::transmute(htoken.unwrap_or(core::mem::zeroed())), ulrid) } #[inline] pub unsafe fn SHUnicodeToAnsi(pwszsrc: P0, pszdst: &mut [u8]) -> i32 @@ -4179,7 +4179,7 @@ where #[inline] pub unsafe fn SHUnlockShared(pvdata: *const core::ffi::c_void) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn SHUnlockShared(pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SHUnlockShared(core::mem::transmute(pvdata)).ok() + SHUnlockShared(pvdata).ok() } #[inline] pub unsafe fn SHUpdateImageA(pszhashitem: P0, iindex: i32, uflags: u32, iimageindex: i32) @@ -4187,7 +4187,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHUpdateImageA(pszhashitem : windows_core::PCSTR, iindex : i32, uflags : u32, iimageindex : i32)); - SHUpdateImageA(pszhashitem.param().abi(), core::mem::transmute(iindex), core::mem::transmute(uflags), core::mem::transmute(iimageindex)) + SHUpdateImageA(pszhashitem.param().abi(), iindex, uflags, iimageindex) } #[inline] pub unsafe fn SHUpdateImageW(pszhashitem: P0, iindex: i32, uflags: u32, iimageindex: i32) @@ -4195,7 +4195,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHUpdateImageW(pszhashitem : windows_core::PCWSTR, iindex : i32, uflags : u32, iimageindex : i32)); - SHUpdateImageW(pszhashitem.param().abi(), core::mem::transmute(iindex), core::mem::transmute(uflags), core::mem::transmute(iimageindex)) + SHUpdateImageW(pszhashitem.param().abi(), iindex, uflags, iimageindex) } #[inline] pub unsafe fn SHValidateUNC(hwndowner: Option, pszfile: windows_core::PWSTR, fconnect: VALIDATEUNC_OPTION) -> super::super::Foundation::BOOL { @@ -4214,17 +4214,17 @@ where #[inline] pub unsafe fn SetMenuContextHelpId(param0: super::WindowsAndMessaging::HMENU, param1: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenuContextHelpId(param0 : super::WindowsAndMessaging:: HMENU, param1 : u32) -> super::super::Foundation:: BOOL); - SetMenuContextHelpId(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + SetMenuContextHelpId(param0, param1).ok() } #[inline] pub unsafe fn SetWindowContextHelpId(param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetWindowContextHelpId(param0 : super::super::Foundation:: HWND, param1 : u32) -> super::super::Foundation:: BOOL); - SetWindowContextHelpId(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + SetWindowContextHelpId(param0, param1).ok() } #[inline] pub unsafe fn SetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, dwrefdata: usize) -> super::super::Foundation::BOOL { windows_targets::link!("comctl32.dll" "system" fn SetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, dwrefdata : usize) -> super::super::Foundation:: BOOL); - SetWindowSubclass(core::mem::transmute(hwnd), core::mem::transmute(pfnsubclass), core::mem::transmute(uidsubclass), core::mem::transmute(dwrefdata)) + SetWindowSubclass(hwnd, pfnsubclass, uidsubclass, dwrefdata) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -4256,7 +4256,7 @@ where P4: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ShellExecuteA(hwnd : super::super::Foundation:: HWND, lpoperation : windows_core::PCSTR, lpfile : windows_core::PCSTR, lpparameters : windows_core::PCSTR, lpdirectory : windows_core::PCSTR, nshowcmd : super::WindowsAndMessaging:: SHOW_WINDOW_CMD) -> super::super::Foundation:: HINSTANCE); - ShellExecuteA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpoperation.param().abi(), lpfile.param().abi(), lpparameters.param().abi(), lpdirectory.param().abi(), core::mem::transmute(nshowcmd)) + ShellExecuteA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpoperation.param().abi(), lpfile.param().abi(), lpparameters.param().abi(), lpdirectory.param().abi(), nshowcmd) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -4280,7 +4280,7 @@ where P4: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ShellExecuteW(hwnd : super::super::Foundation:: HWND, lpoperation : windows_core::PCWSTR, lpfile : windows_core::PCWSTR, lpparameters : windows_core::PCWSTR, lpdirectory : windows_core::PCWSTR, nshowcmd : super::WindowsAndMessaging:: SHOW_WINDOW_CMD) -> super::super::Foundation:: HINSTANCE); - ShellExecuteW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpoperation.param().abi(), lpfile.param().abi(), lpparameters.param().abi(), lpdirectory.param().abi(), core::mem::transmute(nshowcmd)) + ShellExecuteW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpoperation.param().abi(), lpfile.param().abi(), lpparameters.param().abi(), lpdirectory.param().abi(), nshowcmd) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -4290,7 +4290,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "cdecl" fn ShellMessageBoxA(happinst : super::super::Foundation:: HINSTANCE, hwnd : super::super::Foundation:: HWND, lpctext : windows_core::PCSTR, lpctitle : windows_core::PCSTR, fustyle : super::WindowsAndMessaging:: MESSAGEBOX_STYLE) -> i32); - ShellMessageBoxA(core::mem::transmute(happinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpctext.param().abi(), lpctitle.param().abi(), core::mem::transmute(fustyle)) + ShellMessageBoxA(core::mem::transmute(happinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpctext.param().abi(), lpctitle.param().abi(), fustyle) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -4300,7 +4300,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "cdecl" fn ShellMessageBoxW(happinst : super::super::Foundation:: HINSTANCE, hwnd : super::super::Foundation:: HWND, lpctext : windows_core::PCWSTR, lpctitle : windows_core::PCWSTR, fustyle : super::WindowsAndMessaging:: MESSAGEBOX_STYLE) -> i32); - ShellMessageBoxW(core::mem::transmute(happinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpctext.param().abi(), lpctitle.param().abi(), core::mem::transmute(fustyle)) + ShellMessageBoxW(core::mem::transmute(happinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lpctext.param().abi(), lpctitle.param().abi(), fustyle) } #[inline] pub unsafe fn Shell_GetCachedImageIndex(pwsziconpath: P0, iiconindex: i32, uiconflags: u32) -> i32 @@ -4308,7 +4308,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn Shell_GetCachedImageIndex(pwsziconpath : windows_core::PCWSTR, iiconindex : i32, uiconflags : u32) -> i32); - Shell_GetCachedImageIndex(pwsziconpath.param().abi(), core::mem::transmute(iiconindex), core::mem::transmute(uiconflags)) + Shell_GetCachedImageIndex(pwsziconpath.param().abi(), iiconindex, uiconflags) } #[inline] pub unsafe fn Shell_GetCachedImageIndexA(psziconpath: P0, iiconindex: i32, uiconflags: u32) -> i32 @@ -4316,7 +4316,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn Shell_GetCachedImageIndexA(psziconpath : windows_core::PCSTR, iiconindex : i32, uiconflags : u32) -> i32); - Shell_GetCachedImageIndexA(psziconpath.param().abi(), core::mem::transmute(iiconindex), core::mem::transmute(uiconflags)) + Shell_GetCachedImageIndexA(psziconpath.param().abi(), iiconindex, uiconflags) } #[inline] pub unsafe fn Shell_GetCachedImageIndexW(psziconpath: P0, iiconindex: i32, uiconflags: u32) -> i32 @@ -4324,7 +4324,7 @@ where P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn Shell_GetCachedImageIndexW(psziconpath : windows_core::PCWSTR, iiconindex : i32, uiconflags : u32) -> i32); - Shell_GetCachedImageIndexW(psziconpath.param().abi(), core::mem::transmute(iiconindex), core::mem::transmute(uiconflags)) + Shell_GetCachedImageIndexW(psziconpath.param().abi(), iiconindex, uiconflags) } #[cfg(feature = "Win32_UI_Controls")] #[inline] @@ -4336,31 +4336,31 @@ pub unsafe fn Shell_GetImageLists(phiml: Option<*mut super::Controls::HIMAGELIST #[inline] pub unsafe fn Shell_MergeMenus(hmdst: super::WindowsAndMessaging::HMENU, hmsrc: super::WindowsAndMessaging::HMENU, uinsert: u32, uidadjust: u32, uidadjustmax: u32, uflags: MM_FLAGS) -> u32 { windows_targets::link!("shell32.dll" "system" fn Shell_MergeMenus(hmdst : super::WindowsAndMessaging:: HMENU, hmsrc : super::WindowsAndMessaging:: HMENU, uinsert : u32, uidadjust : u32, uidadjustmax : u32, uflags : MM_FLAGS) -> u32); - Shell_MergeMenus(core::mem::transmute(hmdst), core::mem::transmute(hmsrc), core::mem::transmute(uinsert), core::mem::transmute(uidadjust), core::mem::transmute(uidadjustmax), core::mem::transmute(uflags)) + Shell_MergeMenus(hmdst, hmsrc, uinsert, uidadjust, uidadjustmax, uflags) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn Shell_NotifyIconA(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAA) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconA(dwmessage : NOTIFY_ICON_MESSAGE, lpdata : *const NOTIFYICONDATAA) -> super::super::Foundation:: BOOL); - Shell_NotifyIconA(core::mem::transmute(dwmessage), core::mem::transmute(lpdata)) + Shell_NotifyIconA(dwmessage, lpdata) } #[inline] pub unsafe fn Shell_NotifyIconGetRect(identifier: *const NOTIFYICONIDENTIFIER) -> windows_core::Result { windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconGetRect(identifier : *const NOTIFYICONIDENTIFIER, iconlocation : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - Shell_NotifyIconGetRect(core::mem::transmute(identifier), &mut result__).map(|| core::mem::transmute(result__)) + Shell_NotifyIconGetRect(identifier, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn Shell_NotifyIconW(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAW) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconW(dwmessage : NOTIFY_ICON_MESSAGE, lpdata : *const NOTIFYICONDATAW) -> super::super::Foundation:: BOOL); - Shell_NotifyIconW(core::mem::transmute(dwmessage), core::mem::transmute(lpdata)) + Shell_NotifyIconW(dwmessage, lpdata) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SignalFileOpen(pidl: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn SignalFileOpen(pidl : *const Common:: ITEMIDLIST) -> super::super::Foundation:: BOOL); - SignalFileOpen(core::mem::transmute(pidl)) + SignalFileOpen(pidl) } #[cfg(feature = "Win32_System_Com_Urlmon")] #[inline] @@ -4369,7 +4369,7 @@ where P1: windows_core::Param, { windows_targets::link!("shdocvw.dll" "system" fn SoftwareUpdateMessageBox(hwnd : super::super::Foundation:: HWND, pszdistunit : windows_core::PCWSTR, dwflags : u32, psdi : *mut super::super::System::Com::Urlmon:: SOFTDISTINFO) -> u32); - SoftwareUpdateMessageBox(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszdistunit.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(psdi.unwrap_or(core::mem::zeroed()))) + SoftwareUpdateMessageBox(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pszdistunit.param().abi(), dwflags, core::mem::transmute(psdi.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] @@ -4381,7 +4381,7 @@ where { windows_targets::link!("shell32.dll" "system" fn StgMakeUniqueName(pstgparent : * mut core::ffi::c_void, pszfilespec : windows_core::PCWSTR, grfmode : u32, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); - StgMakeUniqueName(pstgparent.param().abi(), pszfilespec.param().abi(), core::mem::transmute(grfmode), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgMakeUniqueName(pstgparent.param().abi(), pszfilespec.param().abi(), grfmode, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StrCSpnA(pszstr: P0, pszset: P1) -> i32 @@ -4441,7 +4441,7 @@ where P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCatChainW(pszdst : windows_core::PWSTR, cchdst : u32, ichat : u32, pszsrc : windows_core::PCWSTR) -> u32); - StrCatChainW(core::mem::transmute(pszdst.as_ptr()), pszdst.len().try_into().unwrap(), core::mem::transmute(ichat), pszsrc.param().abi()) + StrCatChainW(core::mem::transmute(pszdst.as_ptr()), pszdst.len().try_into().unwrap(), ichat, pszsrc.param().abi()) } #[inline] pub unsafe fn StrCatW(psz1: windows_core::PWSTR, psz2: P1) -> windows_core::PWSTR @@ -4457,7 +4457,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrA(pszstart : windows_core::PCSTR, wmatch : u16) -> windows_core::PSTR); - StrChrA(pszstart.param().abi(), core::mem::transmute(wmatch)) + StrChrA(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrChrIA(pszstart: P0, wmatch: u16) -> windows_core::PSTR @@ -4465,7 +4465,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrIA(pszstart : windows_core::PCSTR, wmatch : u16) -> windows_core::PSTR); - StrChrIA(pszstart.param().abi(), core::mem::transmute(wmatch)) + StrChrIA(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrChrIW(pszstart: P0, wmatch: u16) -> windows_core::PWSTR @@ -4473,7 +4473,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrIW(pszstart : windows_core::PCWSTR, wmatch : u16) -> windows_core::PWSTR); - StrChrIW(pszstart.param().abi(), core::mem::transmute(wmatch)) + StrChrIW(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrChrNIW(pszstart: P0, wmatch: u16, cchmax: u32) -> windows_core::PWSTR @@ -4481,7 +4481,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrNIW(pszstart : windows_core::PCWSTR, wmatch : u16, cchmax : u32) -> windows_core::PWSTR); - StrChrNIW(pszstart.param().abi(), core::mem::transmute(wmatch), core::mem::transmute(cchmax)) + StrChrNIW(pszstart.param().abi(), wmatch, cchmax) } #[inline] pub unsafe fn StrChrNW(pszstart: P0, wmatch: u16, cchmax: u32) -> windows_core::PWSTR @@ -4489,7 +4489,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrNW(pszstart : windows_core::PCWSTR, wmatch : u16, cchmax : u32) -> windows_core::PWSTR); - StrChrNW(pszstart.param().abi(), core::mem::transmute(wmatch), core::mem::transmute(cchmax)) + StrChrNW(pszstart.param().abi(), wmatch, cchmax) } #[inline] pub unsafe fn StrChrW(pszstart: P0, wmatch: u16) -> windows_core::PWSTR @@ -4497,7 +4497,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrW(pszstart : windows_core::PCWSTR, wmatch : u16) -> windows_core::PWSTR); - StrChrW(pszstart.param().abi(), core::mem::transmute(wmatch)) + StrChrW(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrCmpCA(pszstr1: P0, pszstr2: P1) -> i32 @@ -4560,7 +4560,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNA(psz1 : windows_core::PCSTR, psz2 : windows_core::PCSTR, nchar : i32) -> i32); - StrCmpNA(psz1.param().abi(), psz2.param().abi(), core::mem::transmute(nchar)) + StrCmpNA(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNCA(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 @@ -4569,7 +4569,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNCA(pszstr1 : windows_core::PCSTR, pszstr2 : windows_core::PCSTR, nchar : i32) -> i32); - StrCmpNCA(pszstr1.param().abi(), pszstr2.param().abi(), core::mem::transmute(nchar)) + StrCmpNCA(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNCW(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 @@ -4578,7 +4578,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNCW(pszstr1 : windows_core::PCWSTR, pszstr2 : windows_core::PCWSTR, nchar : i32) -> i32); - StrCmpNCW(pszstr1.param().abi(), pszstr2.param().abi(), core::mem::transmute(nchar)) + StrCmpNCW(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNIA(psz1: P0, psz2: P1, nchar: i32) -> i32 @@ -4587,7 +4587,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNIA(psz1 : windows_core::PCSTR, psz2 : windows_core::PCSTR, nchar : i32) -> i32); - StrCmpNIA(psz1.param().abi(), psz2.param().abi(), core::mem::transmute(nchar)) + StrCmpNIA(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNICA(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 @@ -4596,7 +4596,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNICA(pszstr1 : windows_core::PCSTR, pszstr2 : windows_core::PCSTR, nchar : i32) -> i32); - StrCmpNICA(pszstr1.param().abi(), pszstr2.param().abi(), core::mem::transmute(nchar)) + StrCmpNICA(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNICW(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 @@ -4605,7 +4605,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNICW(pszstr1 : windows_core::PCWSTR, pszstr2 : windows_core::PCWSTR, nchar : i32) -> i32); - StrCmpNICW(pszstr1.param().abi(), pszstr2.param().abi(), core::mem::transmute(nchar)) + StrCmpNICW(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNIW(psz1: P0, psz2: P1, nchar: i32) -> i32 @@ -4614,7 +4614,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNIW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR, nchar : i32) -> i32); - StrCmpNIW(psz1.param().abi(), psz2.param().abi(), core::mem::transmute(nchar)) + StrCmpNIW(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNW(psz1: P0, psz2: P1, nchar: i32) -> i32 @@ -4623,7 +4623,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpNW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR, nchar : i32) -> i32); - StrCmpNW(psz1.param().abi(), psz2.param().abi(), core::mem::transmute(nchar)) + StrCmpNW(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpW(psz1: P0, psz2: P1) -> i32 @@ -4669,42 +4669,42 @@ where #[inline] pub unsafe fn StrFormatByteSize64A(qdw: i64, pszbuf: &mut [u8]) -> windows_core::PSTR { windows_targets::link!("shlwapi.dll" "system" fn StrFormatByteSize64A(qdw : i64, pszbuf : windows_core::PSTR, cchbuf : u32) -> windows_core::PSTR); - StrFormatByteSize64A(core::mem::transmute(qdw), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + StrFormatByteSize64A(qdw, core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn StrFormatByteSizeA(dw: u32, pszbuf: &mut [u8]) -> windows_core::PSTR { windows_targets::link!("shlwapi.dll" "system" fn StrFormatByteSizeA(dw : u32, pszbuf : windows_core::PSTR, cchbuf : u32) -> windows_core::PSTR); - StrFormatByteSizeA(core::mem::transmute(dw), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + StrFormatByteSizeA(dw, core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn StrFormatByteSizeEx(ull: u64, flags: SFBS_FLAGS, pszbuf: &mut [u16]) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn StrFormatByteSizeEx(ull : u64, flags : SFBS_FLAGS, pszbuf : windows_core::PWSTR, cchbuf : u32) -> windows_core::HRESULT); - StrFormatByteSizeEx(core::mem::transmute(ull), core::mem::transmute(flags), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()).ok() + StrFormatByteSizeEx(ull, flags, core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn StrFormatByteSizeW(qdw: i64, pszbuf: &mut [u16]) -> windows_core::PWSTR { windows_targets::link!("shlwapi.dll" "system" fn StrFormatByteSizeW(qdw : i64, pszbuf : windows_core::PWSTR, cchbuf : u32) -> windows_core::PWSTR); - StrFormatByteSizeW(core::mem::transmute(qdw), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + StrFormatByteSizeW(qdw, core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn StrFormatKBSizeA(qdw: i64, pszbuf: &mut [u8]) -> windows_core::PSTR { windows_targets::link!("shlwapi.dll" "system" fn StrFormatKBSizeA(qdw : i64, pszbuf : windows_core::PSTR, cchbuf : u32) -> windows_core::PSTR); - StrFormatKBSizeA(core::mem::transmute(qdw), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + StrFormatKBSizeA(qdw, core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn StrFormatKBSizeW(qdw: i64, pszbuf: &mut [u16]) -> windows_core::PWSTR { windows_targets::link!("shlwapi.dll" "system" fn StrFormatKBSizeW(qdw : i64, pszbuf : windows_core::PWSTR, cchbuf : u32) -> windows_core::PWSTR); - StrFormatKBSizeW(core::mem::transmute(qdw), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + StrFormatKBSizeW(qdw, core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn StrFromTimeIntervalA(pszout: &mut [u8], dwtimems: u32, digits: i32) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn StrFromTimeIntervalA(pszout : windows_core::PSTR, cchmax : u32, dwtimems : u32, digits : i32) -> i32); - StrFromTimeIntervalA(core::mem::transmute(pszout.as_ptr()), pszout.len().try_into().unwrap(), core::mem::transmute(dwtimems), core::mem::transmute(digits)) + StrFromTimeIntervalA(core::mem::transmute(pszout.as_ptr()), pszout.len().try_into().unwrap(), dwtimems, digits) } #[inline] pub unsafe fn StrFromTimeIntervalW(pszout: &mut [u16], dwtimems: u32, digits: i32) -> i32 { windows_targets::link!("shlwapi.dll" "system" fn StrFromTimeIntervalW(pszout : windows_core::PWSTR, cchmax : u32, dwtimems : u32, digits : i32) -> i32); - StrFromTimeIntervalW(core::mem::transmute(pszout.as_ptr()), pszout.len().try_into().unwrap(), core::mem::transmute(dwtimems), core::mem::transmute(digits)) + StrFromTimeIntervalW(core::mem::transmute(pszout.as_ptr()), pszout.len().try_into().unwrap(), dwtimems, digits) } #[inline] pub unsafe fn StrIsIntlEqualA(fcasesens: bool, pszstring1: P1, pszstring2: P2, nchar: i32) -> super::super::Foundation::BOOL @@ -4713,7 +4713,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrIsIntlEqualA(fcasesens : super::super::Foundation:: BOOL, pszstring1 : windows_core::PCSTR, pszstring2 : windows_core::PCSTR, nchar : i32) -> super::super::Foundation:: BOOL); - StrIsIntlEqualA(fcasesens.into(), pszstring1.param().abi(), pszstring2.param().abi(), core::mem::transmute(nchar)) + StrIsIntlEqualA(fcasesens.into(), pszstring1.param().abi(), pszstring2.param().abi(), nchar) } #[inline] pub unsafe fn StrIsIntlEqualW(fcasesens: bool, pszstring1: P1, pszstring2: P2, nchar: i32) -> super::super::Foundation::BOOL @@ -4722,7 +4722,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrIsIntlEqualW(fcasesens : super::super::Foundation:: BOOL, pszstring1 : windows_core::PCWSTR, pszstring2 : windows_core::PCWSTR, nchar : i32) -> super::super::Foundation:: BOOL); - StrIsIntlEqualW(fcasesens.into(), pszstring1.param().abi(), pszstring2.param().abi(), core::mem::transmute(nchar)) + StrIsIntlEqualW(fcasesens.into(), pszstring1.param().abi(), pszstring2.param().abi(), nchar) } #[inline] pub unsafe fn StrNCatA(psz1: &mut [u8], psz2: P1) -> windows_core::PSTR @@ -4765,7 +4765,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrRChrA(pszstart : windows_core::PCSTR, pszend : windows_core::PCSTR, wmatch : u16) -> windows_core::PSTR); - StrRChrA(pszstart.param().abi(), pszend.param().abi(), core::mem::transmute(wmatch)) + StrRChrA(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRChrIA(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PSTR @@ -4774,7 +4774,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrRChrIA(pszstart : windows_core::PCSTR, pszend : windows_core::PCSTR, wmatch : u16) -> windows_core::PSTR); - StrRChrIA(pszstart.param().abi(), pszend.param().abi(), core::mem::transmute(wmatch)) + StrRChrIA(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRChrIW(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PWSTR @@ -4783,7 +4783,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrRChrIW(pszstart : windows_core::PCWSTR, pszend : windows_core::PCWSTR, wmatch : u16) -> windows_core::PWSTR); - StrRChrIW(pszstart.param().abi(), pszend.param().abi(), core::mem::transmute(wmatch)) + StrRChrIW(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRChrW(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PWSTR @@ -4792,7 +4792,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrRChrW(pszstart : windows_core::PCWSTR, pszend : windows_core::PCWSTR, wmatch : u16) -> windows_core::PWSTR); - StrRChrW(pszstart.param().abi(), pszend.param().abi(), core::mem::transmute(wmatch)) + StrRChrW(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRStrIA(pszsource: P0, pszlast: P1, pszsrch: P2) -> windows_core::PSTR @@ -4896,7 +4896,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrStrNIW(pszfirst : windows_core::PCWSTR, pszsrch : windows_core::PCWSTR, cchmax : u32) -> windows_core::PWSTR); - StrStrNIW(pszfirst.param().abi(), pszsrch.param().abi(), core::mem::transmute(cchmax)) + StrStrNIW(pszfirst.param().abi(), pszsrch.param().abi(), cchmax) } #[inline] pub unsafe fn StrStrNW(pszfirst: P0, pszsrch: P1, cchmax: u32) -> windows_core::PWSTR @@ -4905,7 +4905,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrStrNW(pszfirst : windows_core::PCWSTR, pszsrch : windows_core::PCWSTR, cchmax : u32) -> windows_core::PWSTR); - StrStrNW(pszfirst.param().abi(), pszsrch.param().abi(), core::mem::transmute(cchmax)) + StrStrNW(pszfirst.param().abi(), pszsrch.param().abi(), cchmax) } #[inline] pub unsafe fn StrStrW(pszfirst: P0, pszsrch: P1) -> windows_core::PWSTR @@ -4922,7 +4922,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrToInt64ExA(pszstring : windows_core::PCSTR, dwflags : i32, pllret : *mut i64) -> super::super::Foundation:: BOOL); - StrToInt64ExA(pszstring.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pllret)) + StrToInt64ExA(pszstring.param().abi(), dwflags, core::mem::transmute(pllret)) } #[inline] pub unsafe fn StrToInt64ExW(pszstring: P0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL @@ -4930,7 +4930,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrToInt64ExW(pszstring : windows_core::PCWSTR, dwflags : i32, pllret : *mut i64) -> super::super::Foundation:: BOOL); - StrToInt64ExW(pszstring.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pllret)) + StrToInt64ExW(pszstring.param().abi(), dwflags, core::mem::transmute(pllret)) } #[inline] pub unsafe fn StrToIntA(pszsrc: P0) -> i32 @@ -4946,7 +4946,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrToIntExA(pszstring : windows_core::PCSTR, dwflags : i32, piret : *mut i32) -> super::super::Foundation:: BOOL); - StrToIntExA(pszstring.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(piret)) + StrToIntExA(pszstring.param().abi(), dwflags, core::mem::transmute(piret)) } #[inline] pub unsafe fn StrToIntExW(pszstring: P0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL @@ -4954,7 +4954,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrToIntExW(pszstring : windows_core::PCWSTR, dwflags : i32, piret : *mut i32) -> super::super::Foundation:: BOOL); - StrToIntExW(pszstring.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(piret)) + StrToIntExW(pszstring.param().abi(), dwflags, core::mem::transmute(piret)) } #[inline] pub unsafe fn StrToIntW(pszsrc: P0) -> i32 @@ -4983,22 +4983,22 @@ where #[inline] pub unsafe fn UnloadUserProfile(htoken: super::super::Foundation::HANDLE, hprofile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("userenv.dll" "system" fn UnloadUserProfile(htoken : super::super::Foundation:: HANDLE, hprofile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnloadUserProfile(core::mem::transmute(htoken), core::mem::transmute(hprofile)).ok() + UnloadUserProfile(htoken, hprofile).ok() } #[inline] pub unsafe fn UnregisterAppConstrainedChangeNotification(registration: PAPPCONSTRAIN_REGISTRATION) { windows_targets::link!("api-ms-win-core-psm-appnotify-l1-1-1.dll" "system" fn UnregisterAppConstrainedChangeNotification(registration : PAPPCONSTRAIN_REGISTRATION)); - UnregisterAppConstrainedChangeNotification(core::mem::transmute(registration)) + UnregisterAppConstrainedChangeNotification(registration) } #[inline] pub unsafe fn UnregisterAppStateChangeNotification(registration: PAPPSTATE_REGISTRATION) { windows_targets::link!("api-ms-win-core-psm-appnotify-l1-1-0.dll" "system" fn UnregisterAppStateChangeNotification(registration : PAPPSTATE_REGISTRATION)); - UnregisterAppStateChangeNotification(core::mem::transmute(registration)) + UnregisterAppStateChangeNotification(registration) } #[inline] pub unsafe fn UnregisterScaleChangeEvent(dwcookie: usize) -> windows_core::Result<()> { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn UnregisterScaleChangeEvent(dwcookie : usize) -> windows_core::HRESULT); - UnregisterScaleChangeEvent(core::mem::transmute(dwcookie)).ok() + UnregisterScaleChangeEvent(dwcookie).ok() } #[inline] pub unsafe fn UrlApplySchemeA(pszin: P0, pszout: windows_core::PSTR, pcchout: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5006,7 +5006,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlApplySchemeA(pszin : windows_core::PCSTR, pszout : windows_core::PSTR, pcchout : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlApplySchemeA(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), core::mem::transmute(dwflags)).ok() + UrlApplySchemeA(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), dwflags).ok() } #[inline] pub unsafe fn UrlApplySchemeW(pszin: P0, pszout: windows_core::PWSTR, pcchout: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5014,7 +5014,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlApplySchemeW(pszin : windows_core::PCWSTR, pszout : windows_core::PWSTR, pcchout : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlApplySchemeW(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), core::mem::transmute(dwflags)).ok() + UrlApplySchemeW(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), dwflags).ok() } #[inline] pub unsafe fn UrlCanonicalizeA(pszurl: P0, pszcanonicalized: windows_core::PSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5022,7 +5022,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCanonicalizeA(pszurl : windows_core::PCSTR, pszcanonicalized : windows_core::PSTR, pcchcanonicalized : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlCanonicalizeA(pszurl.param().abi(), core::mem::transmute(pszcanonicalized), core::mem::transmute(pcchcanonicalized), core::mem::transmute(dwflags)).ok() + UrlCanonicalizeA(pszurl.param().abi(), core::mem::transmute(pszcanonicalized), core::mem::transmute(pcchcanonicalized), dwflags).ok() } #[inline] pub unsafe fn UrlCanonicalizeW(pszurl: P0, pszcanonicalized: windows_core::PWSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5030,7 +5030,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCanonicalizeW(pszurl : windows_core::PCWSTR, pszcanonicalized : windows_core::PWSTR, pcchcanonicalized : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlCanonicalizeW(pszurl.param().abi(), core::mem::transmute(pszcanonicalized), core::mem::transmute(pcchcanonicalized), core::mem::transmute(dwflags)).ok() + UrlCanonicalizeW(pszurl.param().abi(), core::mem::transmute(pszcanonicalized), core::mem::transmute(pcchcanonicalized), dwflags).ok() } #[inline] pub unsafe fn UrlCombineA(pszbase: P0, pszrelative: P1, pszcombined: Option, pcchcombined: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5039,7 +5039,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCombineA(pszbase : windows_core::PCSTR, pszrelative : windows_core::PCSTR, pszcombined : windows_core::PSTR, pcchcombined : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlCombineA(pszbase.param().abi(), pszrelative.param().abi(), core::mem::transmute(pszcombined.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcombined), core::mem::transmute(dwflags)).ok() + UrlCombineA(pszbase.param().abi(), pszrelative.param().abi(), core::mem::transmute(pszcombined.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcombined), dwflags).ok() } #[inline] pub unsafe fn UrlCombineW(pszbase: P0, pszrelative: P1, pszcombined: Option, pcchcombined: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5048,7 +5048,7 @@ where P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCombineW(pszbase : windows_core::PCWSTR, pszrelative : windows_core::PCWSTR, pszcombined : windows_core::PWSTR, pcchcombined : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlCombineW(pszbase.param().abi(), pszrelative.param().abi(), core::mem::transmute(pszcombined.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcombined), core::mem::transmute(dwflags)).ok() + UrlCombineW(pszbase.param().abi(), pszrelative.param().abi(), core::mem::transmute(pszcombined.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchcombined), dwflags).ok() } #[inline] pub unsafe fn UrlCompareA(psz1: P0, psz2: P1, fignoreslash: bool) -> i32 @@ -5074,7 +5074,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCreateFromPathA(pszpath : windows_core::PCSTR, pszurl : windows_core::PSTR, pcchurl : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlCreateFromPathA(pszpath.param().abi(), core::mem::transmute(pszurl), core::mem::transmute(pcchurl), core::mem::transmute(dwflags)).ok() + UrlCreateFromPathA(pszpath.param().abi(), core::mem::transmute(pszurl), core::mem::transmute(pcchurl), dwflags).ok() } #[inline] pub unsafe fn UrlCreateFromPathW(pszpath: P0, pszurl: windows_core::PWSTR, pcchurl: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5082,7 +5082,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCreateFromPathW(pszpath : windows_core::PCWSTR, pszurl : windows_core::PWSTR, pcchurl : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlCreateFromPathW(pszpath.param().abi(), core::mem::transmute(pszurl), core::mem::transmute(pcchurl), core::mem::transmute(dwflags)).ok() + UrlCreateFromPathW(pszpath.param().abi(), core::mem::transmute(pszurl), core::mem::transmute(pcchurl), dwflags).ok() } #[inline] pub unsafe fn UrlEscapeA(pszurl: P0, pszescaped: windows_core::PSTR, pcchescaped: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5090,7 +5090,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlEscapeA(pszurl : windows_core::PCSTR, pszescaped : windows_core::PSTR, pcchescaped : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlEscapeA(pszurl.param().abi(), core::mem::transmute(pszescaped), core::mem::transmute(pcchescaped), core::mem::transmute(dwflags)).ok() + UrlEscapeA(pszurl.param().abi(), core::mem::transmute(pszescaped), core::mem::transmute(pcchescaped), dwflags).ok() } #[inline] pub unsafe fn UrlEscapeW(pszurl: P0, pszescaped: windows_core::PWSTR, pcchescaped: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -5098,7 +5098,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlEscapeW(pszurl : windows_core::PCWSTR, pszescaped : windows_core::PWSTR, pcchescaped : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlEscapeW(pszurl.param().abi(), core::mem::transmute(pszescaped), core::mem::transmute(pcchescaped), core::mem::transmute(dwflags)).ok() + UrlEscapeW(pszurl.param().abi(), core::mem::transmute(pszescaped), core::mem::transmute(pcchescaped), dwflags).ok() } #[inline] pub unsafe fn UrlFixupW(pcszurl: P0, psztranslatedurl: &mut [u16]) -> windows_core::Result<()> @@ -5130,7 +5130,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlGetPartA(pszin : windows_core::PCSTR, pszout : windows_core::PSTR, pcchout : *mut u32, dwpart : u32, dwflags : u32) -> windows_core::HRESULT); - UrlGetPartA(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), core::mem::transmute(dwpart), core::mem::transmute(dwflags)).ok() + UrlGetPartA(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), dwpart, dwflags).ok() } #[inline] pub unsafe fn UrlGetPartW(pszin: P0, pszout: windows_core::PWSTR, pcchout: *mut u32, dwpart: u32, dwflags: u32) -> windows_core::Result<()> @@ -5138,7 +5138,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlGetPartW(pszin : windows_core::PCWSTR, pszout : windows_core::PWSTR, pcchout : *mut u32, dwpart : u32, dwflags : u32) -> windows_core::HRESULT); - UrlGetPartW(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), core::mem::transmute(dwpart), core::mem::transmute(dwflags)).ok() + UrlGetPartW(pszin.param().abi(), core::mem::transmute(pszout), core::mem::transmute(pcchout), dwpart, dwflags).ok() } #[inline] pub unsafe fn UrlHashA(pszurl: P0, pbhash: &mut [u8]) -> windows_core::Result<()> @@ -5162,7 +5162,7 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsA(pszurl : windows_core::PCSTR, urlis : URLIS) -> super::super::Foundation:: BOOL); - UrlIsA(pszurl.param().abi(), core::mem::transmute(urlis)) + UrlIsA(pszurl.param().abi(), urlis) } #[inline] pub unsafe fn UrlIsNoHistoryA(pszurl: P0) -> super::super::Foundation::BOOL @@ -5202,17 +5202,17 @@ where P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsW(pszurl : windows_core::PCWSTR, urlis : URLIS) -> super::super::Foundation:: BOOL); - UrlIsW(pszurl.param().abi(), core::mem::transmute(urlis)) + UrlIsW(pszurl.param().abi(), urlis) } #[inline] pub unsafe fn UrlUnescapeA(pszurl: windows_core::PSTR, pszunescaped: Option, pcchunescaped: Option<*mut u32>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn UrlUnescapeA(pszurl : windows_core::PSTR, pszunescaped : windows_core::PSTR, pcchunescaped : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlUnescapeA(core::mem::transmute(pszurl), core::mem::transmute(pszunescaped.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchunescaped.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + UrlUnescapeA(core::mem::transmute(pszurl), core::mem::transmute(pszunescaped.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchunescaped.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[inline] pub unsafe fn UrlUnescapeW(pszurl: windows_core::PWSTR, pszunescaped: Option, pcchunescaped: Option<*mut u32>, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("shlwapi.dll" "system" fn UrlUnescapeW(pszurl : windows_core::PWSTR, pszunescaped : windows_core::PWSTR, pcchunescaped : *mut u32, dwflags : u32) -> windows_core::HRESULT); - UrlUnescapeW(core::mem::transmute(pszurl), core::mem::transmute(pszunescaped.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchunescaped.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + UrlUnescapeW(core::mem::transmute(pszurl), core::mem::transmute(pszunescaped.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchunescaped.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -5239,7 +5239,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WinHelpA(hwndmain : super::super::Foundation:: HWND, lpszhelp : windows_core::PCSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: BOOL); - WinHelpA(core::mem::transmute(hwndmain.unwrap_or(core::mem::zeroed())), lpszhelp.param().abi(), core::mem::transmute(ucommand), core::mem::transmute(dwdata)).ok() + WinHelpA(core::mem::transmute(hwndmain.unwrap_or(core::mem::zeroed())), lpszhelp.param().abi(), ucommand, dwdata).ok() } #[inline] pub unsafe fn WinHelpW(hwndmain: Option, lpszhelp: P1, ucommand: u32, dwdata: usize) -> windows_core::Result<()> @@ -5247,12 +5247,12 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WinHelpW(hwndmain : super::super::Foundation:: HWND, lpszhelp : windows_core::PCWSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: BOOL); - WinHelpW(core::mem::transmute(hwndmain.unwrap_or(core::mem::zeroed())), lpszhelp.param().abi(), core::mem::transmute(ucommand), core::mem::transmute(dwdata)).ok() + WinHelpW(core::mem::transmute(hwndmain.unwrap_or(core::mem::zeroed())), lpszhelp.param().abi(), ucommand, dwdata).ok() } #[inline] pub unsafe fn WriteCabinetState(pcs: *const CABINETSTATE) -> super::super::Foundation::BOOL { windows_targets::link!("shell32.dll" "system" fn WriteCabinetState(pcs : *const CABINETSTATE) -> super::super::Foundation:: BOOL); - WriteCabinetState(core::mem::transmute(pcs)) + WriteCabinetState(pcs) } #[inline] pub unsafe fn wnsprintfA(pszdest: &mut [u8], pszfmt: P2) -> i32 @@ -5276,7 +5276,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn wvnsprintfA(pszdest : windows_core::PSTR, cchdest : i32, pszfmt : windows_core::PCSTR, arglist : *const i8) -> i32); - wvnsprintfA(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi(), core::mem::transmute(arglist)) + wvnsprintfA(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi(), arglist) } #[inline] pub unsafe fn wvnsprintfW(pszdest: &mut [u16], pszfmt: P2, arglist: *const i8) -> i32 @@ -5284,7 +5284,7 @@ where P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn wvnsprintfW(pszdest : windows_core::PWSTR, cchdest : i32, pszfmt : windows_core::PCWSTR, arglist : *const i8) -> i32); - wvnsprintfW(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi(), core::mem::transmute(arglist)) + wvnsprintfW(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi(), arglist) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -6461,11 +6461,11 @@ windows_core::imp::interface_hierarchy!(CIE4ConnectionPoint, windows_core::IUnkn impl CIE4ConnectionPoint { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DoInvokeIE4(&self, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoInvokeIE4)(windows_core::Interface::as_raw(self), core::mem::transmute(pf), core::mem::transmute(ppv), core::mem::transmute(dispid), core::mem::transmute(pdispparams)).ok() + (windows_core::Interface::vtable(self).DoInvokeIE4)(windows_core::Interface::as_raw(self), core::mem::transmute(pf), core::mem::transmute(ppv), dispid, core::mem::transmute(pdispparams)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn DoInvokePIDLIE4(&self, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoInvokePIDLIE4)(windows_core::Interface::as_raw(self), core::mem::transmute(dispid), core::mem::transmute(pidl), fcancancel.into()).ok() + (windows_core::Interface::vtable(self).DoInvokePIDLIE4)(windows_core::Interface::as_raw(self), dispid, core::mem::transmute(pidl), fcancancel.into()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9099,7 +9099,7 @@ impl Folder { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetDetailsOf(&self, vitem: &super::super::System::Variant::VARIANT, icolumn: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vitem), core::mem::transmute(icolumn), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vitem), icolumn, &mut result__).map(|| core::mem::transmute(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -9371,7 +9371,7 @@ impl Folder3 { (windows_core::Interface::vtable(self).ShowWebViewBarricade)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowWebViewBarricade(&self, bshowwebviewbarricade: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowWebViewBarricade)(windows_core::Interface::as_raw(self), core::mem::transmute(bshowwebviewbarricade)).ok() + (windows_core::Interface::vtable(self).SetShowWebViewBarricade)(windows_core::Interface::as_raw(self), bshowwebviewbarricade).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9476,7 +9476,7 @@ impl FolderItem { (windows_core::Interface::vtable(self).ModifyDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetModifyDate(&self, dt: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModifyDate)(windows_core::Interface::as_raw(self), core::mem::transmute(dt)).ok() + (windows_core::Interface::vtable(self).SetModifyDate)(windows_core::Interface::as_raw(self), dt).ok() } pub unsafe fn Size(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10196,7 +10196,7 @@ windows_core::imp::interface_hierarchy!(FolderItems3, windows_core::IUnknown, su #[cfg(feature = "Win32_System_Com")] impl FolderItems3 { pub unsafe fn Filter(&self, grfflags: i32, bstrfilespec: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), core::mem::transmute(grfflags), core::mem::transmute_copy(bstrfilespec)).ok() + (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), grfflags, core::mem::transmute_copy(bstrfilespec)).ok() } pub unsafe fn Verbs(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10745,7 +10745,7 @@ impl core::ops::Deref for IACList2 { windows_core::imp::interface_hierarchy!(IACList2, windows_core::IUnknown, IACList); impl IACList2 { pub unsafe fn SetOptions(&self, dwflag: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflag)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), dwflag).ok() } pub unsafe fn GetOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10790,17 +10790,17 @@ windows_core::imp::interface_hierarchy!(IAccessibilityDockingService, windows_co impl IAccessibilityDockingService { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAvailableSize(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR, pcxfixed: *mut u32, pcymax: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAvailableSize)(windows_core::Interface::as_raw(self), core::mem::transmute(hmonitor), core::mem::transmute(pcxfixed), core::mem::transmute(pcymax)).ok() + (windows_core::Interface::vtable(self).GetAvailableSize)(windows_core::Interface::as_raw(self), hmonitor, core::mem::transmute(pcxfixed), core::mem::transmute(pcymax)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DockWindow(&self, hwnd: super::super::Foundation::HWND, hmonitor: super::super::Graphics::Gdi::HMONITOR, cyrequested: u32, pcallback: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DockWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hmonitor), core::mem::transmute(cyrequested), pcallback.param().abi()).ok() + (windows_core::Interface::vtable(self).DockWindow)(windows_core::Interface::as_raw(self), hwnd, hmonitor, cyrequested, pcallback.param().abi()).ok() } pub unsafe fn UndockWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UndockWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).UndockWindow)(windows_core::Interface::as_raw(self), hwnd).ok() } } #[repr(C)] @@ -10854,7 +10854,7 @@ windows_core::imp::define_interface!(IAccessibilityDockingServiceCallback, IAcce windows_core::imp::interface_hierarchy!(IAccessibilityDockingServiceCallback, windows_core::IUnknown); impl IAccessibilityDockingServiceCallback { pub unsafe fn Undocked(&self, undockreason: UNDOCK_REASON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Undocked)(windows_core::Interface::as_raw(self), core::mem::transmute(undockreason)).ok() + (windows_core::Interface::vtable(self).Undocked)(windows_core::Interface::as_raw(self), undockreason).ok() } } #[repr(C)] @@ -10913,16 +10913,16 @@ windows_core::imp::define_interface!(IActionProgress, IActionProgress_Vtbl, 0x49 windows_core::imp::interface_hierarchy!(IActionProgress, windows_core::IUnknown); impl IActionProgress { pub unsafe fn Begin(&self, action: SPACTION, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), core::mem::transmute(action), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), action, flags).ok() } pub unsafe fn UpdateProgress(&self, ulcompleted: u64, ultotal: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcompleted), core::mem::transmute(ultotal)).ok() + (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), ulcompleted, ultotal).ok() } pub unsafe fn UpdateText(&self, sptext: SPTEXT, psztext: P1, fmaycompact: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateText)(windows_core::Interface::as_raw(self), core::mem::transmute(sptext), psztext.param().abi(), fmaycompact.into()).ok() + (windows_core::Interface::vtable(self).UpdateText)(windows_core::Interface::as_raw(self), sptext, psztext.param().abi(), fmaycompact.into()).ok() } pub unsafe fn QueryCancel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11008,7 +11008,7 @@ impl IActionProgressDialog { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), psztitle.param().abi(), pszcancel.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), flags, psztitle.param().abi(), pszcancel.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -11171,7 +11171,7 @@ impl IAppPublisher { } pub unsafe fn EnumApps(&self, pappcategoryid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumApps)(windows_core::Interface::as_raw(self), core::mem::transmute(pappcategoryid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumApps)(windows_core::Interface::as_raw(self), pappcategoryid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11249,7 +11249,7 @@ impl IAppVisibility { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAppVisibilityOnMonitor(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAppVisibilityOnMonitor)(windows_core::Interface::as_raw(self), core::mem::transmute(hmonitor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAppVisibilityOnMonitor)(windows_core::Interface::as_raw(self), hmonitor, &mut result__).map(|| result__) } pub unsafe fn IsLauncherVisible(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11263,7 +11263,7 @@ impl IAppVisibility { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -11340,7 +11340,7 @@ windows_core::imp::interface_hierarchy!(IAppVisibilityEvents, windows_core::IUnk impl IAppVisibilityEvents { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AppVisibilityOnMonitorChanged(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppVisibilityOnMonitorChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(hmonitor), core::mem::transmute(previousmode), core::mem::transmute(currentmode)).ok() + (windows_core::Interface::vtable(self).AppVisibilityOnMonitorChanged)(windows_core::Interface::as_raw(self), hmonitor, previousmode, currentmode).ok() } pub unsafe fn LauncherVisibilityChange(&self, currentvisiblestate: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LauncherVisibilityChange)(windows_core::Interface::as_raw(self), currentvisiblestate.into()).ok() @@ -11392,7 +11392,7 @@ impl IApplicationActivationManager { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateApplication)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), arguments.param().abi(), core::mem::transmute(options), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ActivateApplication)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), arguments.param().abi(), options, &mut result__).map(|| result__) } pub unsafe fn ActivateForFile(&self, appusermodelid: P0, itemarray: P1, verb: P2) -> windows_core::Result where @@ -11476,7 +11476,7 @@ impl IApplicationAssociationRegistration { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryCurrentDefault)(windows_core::Interface::as_raw(self), pszquery.param().abi(), core::mem::transmute(atquerytype), core::mem::transmute(alquerylevel), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryCurrentDefault)(windows_core::Interface::as_raw(self), pszquery.param().abi(), atquerytype, alquerylevel, &mut result__).map(|| result__) } pub unsafe fn QueryAppIsDefault(&self, pszquery: P0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: P3) -> windows_core::Result where @@ -11484,21 +11484,21 @@ impl IApplicationAssociationRegistration { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryAppIsDefault)(windows_core::Interface::as_raw(self), pszquery.param().abi(), core::mem::transmute(atquerytype), core::mem::transmute(alquerylevel), pszappregistryname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryAppIsDefault)(windows_core::Interface::as_raw(self), pszquery.param().abi(), atquerytype, alquerylevel, pszappregistryname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn QueryAppIsDefaultAll(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryAppIsDefaultAll)(windows_core::Interface::as_raw(self), core::mem::transmute(alquerylevel), pszappregistryname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryAppIsDefaultAll)(windows_core::Interface::as_raw(self), alquerylevel, pszappregistryname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetAppAsDefault(&self, pszappregistryname: P0, pszset: P1, atsettype: ASSOCIATIONTYPE) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppAsDefault)(windows_core::Interface::as_raw(self), pszappregistryname.param().abi(), pszset.param().abi(), core::mem::transmute(atsettype)).ok() + (windows_core::Interface::vtable(self).SetAppAsDefault)(windows_core::Interface::as_raw(self), pszappregistryname.param().abi(), pszset.param().abi(), atsettype).ok() } pub unsafe fn SetAppAsDefaultAll(&self, pszappregistryname: P0) -> windows_core::Result<()> where @@ -11626,10 +11626,10 @@ impl IApplicationDesignModeSettings { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetScaleFactor(&self, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScaleFactor)(windows_core::Interface::as_raw(self), core::mem::transmute(scalefactor)).ok() + (windows_core::Interface::vtable(self).SetScaleFactor)(windows_core::Interface::as_raw(self), scalefactor).ok() } pub unsafe fn SetApplicationViewState(&self, viewstate: APPLICATION_VIEW_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetApplicationViewState)(windows_core::Interface::as_raw(self), core::mem::transmute(viewstate)).ok() + (windows_core::Interface::vtable(self).SetApplicationViewState)(windows_core::Interface::as_raw(self), viewstate).ok() } pub unsafe fn ComputeApplicationSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11638,10 +11638,10 @@ impl IApplicationDesignModeSettings { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IsApplicationViewStateSupported(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsApplicationViewStateSupported)(windows_core::Interface::as_raw(self), core::mem::transmute(viewstate), core::mem::transmute(nativedisplaysizepixels), core::mem::transmute(scalefactor), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsApplicationViewStateSupported)(windows_core::Interface::as_raw(self), viewstate, core::mem::transmute(nativedisplaysizepixels), scalefactor, &mut result__).map(|| result__) } pub unsafe fn TriggerEdgeGesture(&self, edgegesturekind: EDGE_GESTURE_KIND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TriggerEdgeGesture)(windows_core::Interface::as_raw(self), core::mem::transmute(edgegesturekind)).ok() + (windows_core::Interface::vtable(self).TriggerEdgeGesture)(windows_core::Interface::as_raw(self), edgegesturekind).ok() } } #[repr(C)] @@ -11734,19 +11734,19 @@ impl core::ops::Deref for IApplicationDesignModeSettings2 { windows_core::imp::interface_hierarchy!(IApplicationDesignModeSettings2, windows_core::IUnknown, IApplicationDesignModeSettings); impl IApplicationDesignModeSettings2 { pub unsafe fn SetNativeDisplayOrientation(&self, nativedisplayorientation: NATIVE_DISPLAY_ORIENTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNativeDisplayOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(nativedisplayorientation)).ok() + (windows_core::Interface::vtable(self).SetNativeDisplayOrientation)(windows_core::Interface::as_raw(self), nativedisplayorientation).ok() } pub unsafe fn SetApplicationViewOrientation(&self, vieworientation: APPLICATION_VIEW_ORIENTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetApplicationViewOrientation)(windows_core::Interface::as_raw(self), core::mem::transmute(vieworientation)).ok() + (windows_core::Interface::vtable(self).SetApplicationViewOrientation)(windows_core::Interface::as_raw(self), vieworientation).ok() } pub unsafe fn SetAdjacentDisplayEdges(&self, adjacentdisplayedges: ADJACENT_DISPLAY_EDGES) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAdjacentDisplayEdges)(windows_core::Interface::as_raw(self), core::mem::transmute(adjacentdisplayedges)).ok() + (windows_core::Interface::vtable(self).SetAdjacentDisplayEdges)(windows_core::Interface::as_raw(self), adjacentdisplayedges).ok() } pub unsafe fn SetIsOnLockScreen(&self, isonlockscreen: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetIsOnLockScreen)(windows_core::Interface::as_raw(self), isonlockscreen.into()).ok() } pub unsafe fn SetApplicationViewMinWidth(&self, viewminwidth: APPLICATION_VIEW_MIN_WIDTH) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetApplicationViewMinWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(viewminwidth)).ok() + (windows_core::Interface::vtable(self).SetApplicationViewMinWidth)(windows_core::Interface::as_raw(self), viewminwidth).ok() } pub unsafe fn GetApplicationSizeBounds(&self, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetApplicationSizeBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(minapplicationsizepixels), core::mem::transmute(maxapplicationsizepixels)).ok() @@ -11902,7 +11902,7 @@ impl IApplicationDocumentLists { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetList)(windows_core::Interface::as_raw(self), core::mem::transmute(listtype), core::mem::transmute(citemsdesired), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetList)(windows_core::Interface::as_raw(self), listtype, citemsdesired, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12115,7 +12115,7 @@ impl IAttachmentExecute { (windows_core::Interface::vtable(self).SetClientTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetClientGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid)).ok() + (windows_core::Interface::vtable(self).SetClientGuid)(windows_core::Interface::as_raw(self), guid).ok() } pub unsafe fn SetLocalPath(&self, pszlocalpath: P0) -> windows_core::Result<()> where @@ -12146,7 +12146,7 @@ impl IAttachmentExecute { } pub unsafe fn Prompt(&self, hwnd: super::super::Foundation::HWND, prompt: ATTACHMENT_PROMPT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Prompt)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(prompt), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Prompt)(windows_core::Interface::as_raw(self), hwnd, prompt, &mut result__).map(|| result__) } pub unsafe fn Save(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self)).ok() @@ -12155,10 +12155,10 @@ impl IAttachmentExecute { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pszverb.param().abi(), core::mem::transmute(phprocess.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), hwnd, pszverb.param().abi(), core::mem::transmute(phprocess.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SaveWithUI(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SaveWithUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SaveWithUI)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn ClearClientState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearClientState)(windows_core::Interface::as_raw(self)).ok() @@ -12280,7 +12280,7 @@ impl IAutoComplete { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndedit), punkacl.param().abi(), pwszregkeypath.param().abi(), pwszquickcomplete.param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), hwndedit, punkacl.param().abi(), pwszregkeypath.param().abi(), pwszquickcomplete.param().abi()).ok() } pub unsafe fn Enable(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into()).ok() @@ -12323,7 +12323,7 @@ impl core::ops::Deref for IAutoComplete2 { windows_core::imp::interface_hierarchy!(IAutoComplete2, windows_core::IUnknown, IAutoComplete); impl IAutoComplete2 { pub unsafe fn SetOptions(&self, dwflag: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflag)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), dwflag).ok() } pub unsafe fn GetOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12412,13 +12412,13 @@ impl IBandHost { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateBand)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsidband), favailable.into(), fvisible.into(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBand)(windows_core::Interface::as_raw(self), rclsidband, favailable.into(), fvisible.into(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBandAvailability(&self, rclsidband: *const windows_core::GUID, favailable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBandAvailability)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsidband), favailable.into()).ok() + (windows_core::Interface::vtable(self).SetBandAvailability)(windows_core::Interface::as_raw(self), rclsidband, favailable.into()).ok() } pub unsafe fn DestroyBand(&self, rclsidband: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DestroyBand)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsidband)).ok() + (windows_core::Interface::vtable(self).DestroyBand)(windows_core::Interface::as_raw(self), rclsidband).ok() } } #[repr(C)] @@ -12470,27 +12470,27 @@ impl IBandSite { } pub unsafe fn EnumBands(&self, uband: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumBands)(windows_core::Interface::as_raw(self), core::mem::transmute(uband), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnumBands)(windows_core::Interface::as_raw(self), uband, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn QueryBand(&self, dwbandid: u32, ppstb: Option<*mut Option>, pdwstate: Option<*mut u32>, pszname: Option<&mut [u16]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryBand)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbandid), core::mem::transmute(ppstb.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + (windows_core::Interface::vtable(self).QueryBand)(windows_core::Interface::as_raw(self), dwbandid, core::mem::transmute(ppstb.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn SetBandState(&self, dwbandid: u32, dwmask: u32, dwstate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBandState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbandid), core::mem::transmute(dwmask), core::mem::transmute(dwstate)).ok() + (windows_core::Interface::vtable(self).SetBandState)(windows_core::Interface::as_raw(self), dwbandid, dwmask, dwstate).ok() } pub unsafe fn RemoveBand(&self, dwbandid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveBand)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbandid)).ok() + (windows_core::Interface::vtable(self).RemoveBand)(windows_core::Interface::as_raw(self), dwbandid).ok() } pub unsafe fn GetBandObject(&self, dwbandid: u32) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetBandObject)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbandid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBandObject)(windows_core::Interface::as_raw(self), dwbandid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBandSiteInfo(&self, pbsinfo: *const BANDSITEINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBandSiteInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsinfo)).ok() + (windows_core::Interface::vtable(self).SetBandSiteInfo)(windows_core::Interface::as_raw(self), pbsinfo).ok() } pub unsafe fn GetBandSiteInfo(&self, pbsinfo: *mut BANDSITEINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBandSiteInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pbsinfo)).ok() @@ -12585,7 +12585,7 @@ windows_core::imp::define_interface!(IBannerNotificationHandler, IBannerNotifica windows_core::imp::interface_hierarchy!(IBannerNotificationHandler, windows_core::IUnknown); impl IBannerNotificationHandler { pub unsafe fn OnBannerEvent(&self, notification: *const BANNER_NOTIFICATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnBannerEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(notification)).ok() + (windows_core::Interface::vtable(self).OnBannerEvent)(windows_core::Interface::as_raw(self), notification).ok() } } #[repr(C)] @@ -12613,7 +12613,7 @@ windows_core::imp::define_interface!(IBanneredBar, IBanneredBar_Vtbl, 0x596a9a94 windows_core::imp::interface_hierarchy!(IBanneredBar, windows_core::IUnknown); impl IBanneredBar { pub unsafe fn SetIconSize(&self, iicon: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), iicon).ok() } pub unsafe fn GetIconSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12621,7 +12621,7 @@ impl IBanneredBar { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetBitmap(&self, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(hbitmap)).ok() + (windows_core::Interface::vtable(self).SetBitmap)(windows_core::Interface::as_raw(self), hbitmap).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmap(&self) -> windows_core::Result { @@ -12700,7 +12700,7 @@ windows_core::imp::interface_hierarchy!(IBrowserFrameOptions, windows_core::IUnk impl IBrowserFrameOptions { pub unsafe fn GetFrameOptions(&self, dwmask: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFrameOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFrameOptions)(windows_core::Interface::as_raw(self), dwmask, &mut result__).map(|| result__) } } #[repr(C)] @@ -12763,15 +12763,15 @@ impl IBrowserService { (windows_core::Interface::vtable(self).GetTravelLog)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowControlWindow(&self, id: u32, fshow: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowControlWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(id), fshow.into()).ok() + (windows_core::Interface::vtable(self).ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.into()).ok() } pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsControlWindowShown)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsControlWindowShown)(windows_core::Interface::as_raw(self), id, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEGetDisplayName(&self, pidl: *const Common::ITEMIDLIST, pwszname: windows_core::PWSTR, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IEGetDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(pwszname), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).IEGetDisplayName)(windows_core::Interface::as_raw(self), pidl, core::mem::transmute(pwszname), uflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayName(&self, uicp: u32, pwszpath: P1) -> windows_core::Result<*mut Common::ITEMIDLIST> @@ -12779,20 +12779,20 @@ impl IBrowserService { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IEParseDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(uicp), pwszpath.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IEParseDisplayName)(windows_core::Interface::as_raw(self), uicp, pwszpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisplayParseError(&self, hres: windows_core::HRESULT, pwszpath: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayParseError)(windows_core::Interface::as_raw(self), core::mem::transmute(hres), pwszpath.param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayParseError)(windows_core::Interface::as_raw(self), hres, pwszpath.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn NavigateToPidl(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NavigateToPidl)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(grfhlnf)).ok() + (windows_core::Interface::vtable(self).NavigateToPidl)(windows_core::Interface::as_raw(self), pidl, grfhlnf).ok() } pub unsafe fn SetNavigateState(&self, bnstate: BNSTATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNavigateState)(windows_core::Interface::as_raw(self), core::mem::transmute(bnstate)).ok() + (windows_core::Interface::vtable(self).SetNavigateState)(windows_core::Interface::as_raw(self), bnstate).ok() } pub unsafe fn GetNavigateState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12804,7 +12804,7 @@ impl IBrowserService { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).NotifyRedirect)(windows_core::Interface::as_raw(self), psv.param().abi(), core::mem::transmute(pidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).NotifyRedirect)(windows_core::Interface::as_raw(self), psv.param().abi(), pidl, &mut result__).map(|| result__) } pub unsafe fn UpdateWindowList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateWindowList)(windows_core::Interface::as_raw(self)).ok() @@ -12813,7 +12813,7 @@ impl IBrowserService { (windows_core::Interface::vtable(self).UpdateBackForwardState)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetFlags(&self, dwflags: u32, dwflagmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dwflagmask)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags, dwflagmask).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12829,14 +12829,14 @@ impl IBrowserService { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetReferrer(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetReferrer)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).SetReferrer)(windows_core::Interface::as_raw(self), pidl).ok() } pub unsafe fn GetBrowserIndex(&self) -> u32 { (windows_core::Interface::vtable(self).GetBrowserIndex)(windows_core::Interface::as_raw(self)) } pub unsafe fn GetBrowserByIndex(&self, dwid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBrowserByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBrowserByIndex)(windows_core::Interface::as_raw(self), dwid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetHistoryObject(&self, ppole: *mut Option, pstm: *mut Option, ppbc: *mut Option) -> windows_core::Result<()> { @@ -12875,7 +12875,7 @@ impl IBrowserService { (windows_core::Interface::vtable(self).GetPalette)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn RegisterWindow(&self, fforceregister: bool, swc: ShellWindowTypeConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.into(), core::mem::transmute(swc)).ok() + (windows_core::Interface::vtable(self).RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.into(), swc).ok() } } #[repr(C)] @@ -13244,7 +13244,7 @@ impl core::ops::Deref for IBrowserService2 { windows_core::imp::interface_hierarchy!(IBrowserService2, windows_core::IUnknown, IBrowserService); impl IBrowserService2 { pub unsafe fn WndProcBS(&self, hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { - (windows_core::Interface::vtable(self).WndProcBS)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + (windows_core::Interface::vtable(self).WndProcBS)(windows_core::Interface::as_raw(self), hwnd, umsg, wparam, lparam) } pub unsafe fn SetAsDefFolderSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAsDefFolderSettings)(windows_core::Interface::as_raw(self)).ok() @@ -13254,21 +13254,21 @@ impl IBrowserService2 { (windows_core::Interface::vtable(self).GetViewRect)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn OnSize(&self, wparam: super::super::Foundation::WPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSize)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam)).ok() + (windows_core::Interface::vtable(self).OnSize)(windows_core::Interface::as_raw(self), wparam).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnCreate)(windows_core::Interface::as_raw(self), core::mem::transmute(pcs)).ok() + (windows_core::Interface::vtable(self).OnCreate)(windows_core::Interface::as_raw(self), pcs).ok() } pub unsafe fn OnCommand(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { - (windows_core::Interface::vtable(self).OnCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam)) + (windows_core::Interface::vtable(self).OnCommand)(windows_core::Interface::as_raw(self), wparam, lparam) } pub unsafe fn OnDestroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnDestroy)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn OnNotify(&self, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT { - (windows_core::Interface::vtable(self).OnNotify)(windows_core::Interface::as_raw(self), core::mem::transmute(pnm)) + (windows_core::Interface::vtable(self).OnNotify)(windows_core::Interface::as_raw(self), pnm) } pub unsafe fn OnSetFocus(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self)).ok() @@ -13289,10 +13289,10 @@ impl IBrowserService2 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateViewWindow)(windows_core::Interface::as_raw(self), psvnew.param().abi(), psvold.param().abi(), core::mem::transmute(prcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateViewWindow)(windows_core::Interface::as_raw(self), psvnew.param().abi(), psvold.param().abi(), prcview, &mut result__).map(|| result__) } pub unsafe fn CreateBrowserPropSheetExt(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateBrowserPropSheetExt)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).CreateBrowserPropSheetExt)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn GetViewWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -13311,22 +13311,22 @@ impl IBrowserService2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeTravelLog)(windows_core::Interface::as_raw(self), ptl.param().abi(), core::mem::transmute(dw)).ok() + (windows_core::Interface::vtable(self).InitializeTravelLog)(windows_core::Interface::as_raw(self), ptl.param().abi(), dw).ok() } pub unsafe fn SetTopBrowser(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetTopBrowser)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Offline(&self, icmd: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), core::mem::transmute(icmd)).ok() + (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), icmd).ok() } pub unsafe fn AllowViewResize(&self, f: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AllowViewResize)(windows_core::Interface::as_raw(self), f.into()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActivateState)(windows_core::Interface::as_raw(self), core::mem::transmute(u)).ok() + (windows_core::Interface::vtable(self).SetActivateState)(windows_core::Interface::as_raw(self), u).ok() } pub unsafe fn UpdateSecureLockIcon(&self, esecurelock: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateSecureLockIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(esecurelock)).ok() + (windows_core::Interface::vtable(self).UpdateSecureLockIcon)(windows_core::Interface::as_raw(self), esecurelock).ok() } pub unsafe fn InitializeDownloadManager(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeDownloadManager)(windows_core::Interface::as_raw(self)).ok() @@ -13338,7 +13338,7 @@ impl IBrowserService2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self)._Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pauto.param().abi()).ok() + (windows_core::Interface::vtable(self)._Initialize)(windows_core::Interface::as_raw(self), hwnd, pauto.param().abi()).ok() } pub unsafe fn _CancelPendingNavigationAsync(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self)._CancelPendingNavigationAsync)(windows_core::Interface::as_raw(self)).ok() @@ -13357,14 +13357,14 @@ impl IBrowserService2 { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _NavigateToPidl2(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._NavigateToPidl2)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(grfhlnf), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self)._NavigateToPidl2)(windows_core::Interface::as_raw(self), pidl, grfhlnf, dwflags).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn _TryShell2Rename(&self, psv: P0, pidlnew: *const Common::ITEMIDLIST) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._TryShell2Rename)(windows_core::Interface::as_raw(self), psv.param().abi(), core::mem::transmute(pidlnew)).ok() + (windows_core::Interface::vtable(self)._TryShell2Rename)(windows_core::Interface::as_raw(self), psv.param().abi(), pidlnew).ok() } pub unsafe fn _SwitchActivationNow(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self)._SwitchActivationNow)(windows_core::Interface::as_raw(self)).ok() @@ -13374,16 +13374,16 @@ impl IBrowserService2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.param().abi(), fbroadcast.into(), core::mem::transmute(pguidcmdgroup.unwrap_or(core::mem::zeroed())), core::mem::transmute(ncmdid), core::mem::transmute(ncmdexecopt), core::mem::transmute(pvarargin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvarargout.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self)._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.param().abi(), fbroadcast.into(), core::mem::transmute(pguidcmdgroup.unwrap_or(core::mem::zeroed())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvarargout.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn _SendChildren(&self, hwndbar: super::super::Foundation::HWND, fbroadcast: bool, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._SendChildren)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndbar), fbroadcast.into(), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self)._SendChildren)(windows_core::Interface::as_raw(self), hwndbar, fbroadcast.into(), umsg, wparam, lparam).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFolderSetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pfsd)).ok() } pub unsafe fn _OnFocusChange(&self, itb: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._OnFocusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(itb)).ok() + (windows_core::Interface::vtable(self)._OnFocusChange)(windows_core::Interface::as_raw(self), itb).ok() } pub unsafe fn v_ShowHideChildWindows(&self, fchildonly: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.into()).ok() @@ -13392,10 +13392,10 @@ impl IBrowserService2 { (windows_core::Interface::vtable(self)._get_itbLastFocus)(windows_core::Interface::as_raw(self)) } pub unsafe fn _put_itbLastFocus(&self, itblastfocus: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._put_itbLastFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(itblastfocus)).ok() + (windows_core::Interface::vtable(self)._put_itbLastFocus)(windows_core::Interface::as_raw(self), itblastfocus).ok() } pub unsafe fn _UIActivateView(&self, ustate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._UIActivateView)(windows_core::Interface::as_raw(self), core::mem::transmute(ustate)).ok() + (windows_core::Interface::vtable(self)._UIActivateView)(windows_core::Interface::as_raw(self), ustate).ok() } pub unsafe fn _GetViewBorderRect(&self, prc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self)._GetViewBorderRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prc)).ok() @@ -13404,35 +13404,35 @@ impl IBrowserService2 { (windows_core::Interface::vtable(self)._UpdateViewRectSize)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn _ResizeNextBorder(&self, itb: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._ResizeNextBorder)(windows_core::Interface::as_raw(self), core::mem::transmute(itb)).ok() + (windows_core::Interface::vtable(self)._ResizeNextBorder)(windows_core::Interface::as_raw(self), itb).ok() } pub unsafe fn _ResizeView(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self)._ResizeView)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn _GetEffectiveClientArea(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), core::mem::transmute(lprectborder), core::mem::transmute(hmon)).ok() + (windows_core::Interface::vtable(self)._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), core::mem::transmute(lprectborder), hmon).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn v_GetViewStream(&self, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: P2) -> Option where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).v_GetViewStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(grfmode), pwszname.param().abi()) + (windows_core::Interface::vtable(self).v_GetViewStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), grfmode, pwszname.param().abi()) } pub unsafe fn ForwardViewMsg(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { - (windows_core::Interface::vtable(self).ForwardViewMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + (windows_core::Interface::vtable(self).ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam, lparam) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu(&self, hacc: super::WindowsAndMessaging::HACCEL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAcceleratorMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(hacc)).ok() + (windows_core::Interface::vtable(self).SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { (windows_core::Interface::vtable(self)._GetToolbarCount)(windows_core::Interface::as_raw(self)) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole"))] pub unsafe fn _GetToolbarItem(&self, itb: i32) -> *mut TOOLBARITEM { - (windows_core::Interface::vtable(self)._GetToolbarItem)(windows_core::Interface::as_raw(self), core::mem::transmute(itb)) + (windows_core::Interface::vtable(self)._GetToolbarItem)(windows_core::Interface::as_raw(self), itb) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars(&self, pstm: P0) -> windows_core::Result<()> @@ -13453,10 +13453,10 @@ impl IBrowserService2 { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayGetNextToolbarFocus(&self, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).v_MayGetNextToolbarFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(lpmsg), core::mem::transmute(itbnext), core::mem::transmute(citb), core::mem::transmute(pptbi), core::mem::transmute(phwnd)).ok() + (windows_core::Interface::vtable(self).v_MayGetNextToolbarFocus)(windows_core::Interface::as_raw(self), lpmsg, itbnext, citb, core::mem::transmute(pptbi), core::mem::transmute(phwnd)).ok() } pub unsafe fn _ResizeNextBorderHelper(&self, itb: u32, busehmonitor: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), core::mem::transmute(itb), busehmonitor.into()).ok() + (windows_core::Interface::vtable(self)._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.into()).ok() } pub unsafe fn _FindTBar(&self, punksrc: P0) -> u32 where @@ -13466,7 +13466,7 @@ impl IBrowserService2 { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus(&self, ptbi: *const TOOLBARITEM, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._SetFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(ptbi), core::mem::transmute(hwnd), core::mem::transmute(lpmsg)).ok() + (windows_core::Interface::vtable(self)._SetFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(ptbi), hwnd, lpmsg).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -13480,7 +13480,7 @@ impl IBrowserService2 { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).v_CheckZoneCrossing)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).v_CheckZoneCrossing)(windows_core::Interface::as_raw(self), pidl).ok() } } #[repr(C)] @@ -14025,7 +14025,7 @@ impl core::ops::Deref for IBrowserService3 { windows_core::imp::interface_hierarchy!(IBrowserService3, windows_core::IUnknown, IBrowserService, IBrowserService2); impl IBrowserService3 { pub unsafe fn _PositionViewWindow(&self, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self)._PositionViewWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self)._PositionViewWindow)(windows_core::Interface::as_raw(self), hwnd, prc).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayNameEx(&self, uicp: u32, pwszpath: P1, dwflags: u32) -> windows_core::Result<*mut Common::ITEMIDLIST> @@ -14033,7 +14033,7 @@ impl IBrowserService3 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IEParseDisplayNameEx)(windows_core::Interface::as_raw(self), core::mem::transmute(uicp), pwszpath.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IEParseDisplayNameEx)(windows_core::Interface::as_raw(self), uicp, pwszpath.param().abi(), dwflags, &mut result__).map(|| result__) } } #[repr(C)] @@ -14146,7 +14146,7 @@ impl ICDBurn { (windows_core::Interface::vtable(self).GetRecorderDriveLetter)(windows_core::Interface::as_raw(self), core::mem::transmute(pszdrive.as_ptr()), pszdrive.len().try_into().unwrap()).ok() } pub unsafe fn Burn(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Burn)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).Burn)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn HasRecordableDrive(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -14241,13 +14241,13 @@ impl ICategorizer { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetCategory(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(cidl), core::mem::transmute(apidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCategory)(windows_core::Interface::as_raw(self), cidl, apidl, &mut result__).map(|| result__) } pub unsafe fn GetCategoryInfo(&self, dwcategoryid: u32, pci: *mut CATEGORY_INFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCategoryInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcategoryid), core::mem::transmute(pci)).ok() + (windows_core::Interface::vtable(self).GetCategoryInfo)(windows_core::Interface::as_raw(self), dwcategoryid, core::mem::transmute(pci)).ok() } pub unsafe fn CompareCategory(&self, csfflags: CATSORT_FLAGS, dwcategoryid1: u32, dwcategoryid2: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CompareCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(csfflags), core::mem::transmute(dwcategoryid1), core::mem::transmute(dwcategoryid2)).ok() + (windows_core::Interface::vtable(self).CompareCategory)(windows_core::Interface::as_raw(self), csfflags, dwcategoryid1, dwcategoryid2).ok() } } #[repr(C)] @@ -14311,14 +14311,14 @@ windows_core::imp::define_interface!(ICategoryProvider, ICategoryProvider_Vtbl, windows_core::imp::interface_hierarchy!(ICategoryProvider, windows_core::IUnknown); impl ICategoryProvider { pub unsafe fn CanCategorizeOnSCID(&self, pscid: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CanCategorizeOnSCID)(windows_core::Interface::as_raw(self), core::mem::transmute(pscid)).ok() + (windows_core::Interface::vtable(self).CanCategorizeOnSCID)(windows_core::Interface::as_raw(self), pscid).ok() } pub unsafe fn GetDefaultCategory(&self, pguid: *mut windows_core::GUID, pscid: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(pscid)).ok() } pub unsafe fn GetCategoryForSCID(&self, pscid: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCategoryForSCID)(windows_core::Interface::as_raw(self), core::mem::transmute(pscid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCategoryForSCID)(windows_core::Interface::as_raw(self), pscid, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCategories(&self) -> windows_core::Result { @@ -14326,14 +14326,14 @@ impl ICategoryProvider { (windows_core::Interface::vtable(self).EnumCategories)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCategoryName(&self, pguid: *const windows_core::GUID, pszname: &mut [u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCategoryName)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetCategoryName)(windows_core::Interface::as_raw(self), pguid, core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() } pub unsafe fn CreateCategory(&self, pguid: *const windows_core::GUID) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(pguid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCategory)(windows_core::Interface::as_raw(self), pguid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -14417,17 +14417,17 @@ windows_core::imp::define_interface!(IColumnManager, IColumnManager_Vtbl, 0xd8ec windows_core::imp::interface_hierarchy!(IColumnManager, windows_core::IUnknown); impl IColumnManager { pub unsafe fn SetColumnInfo(&self, propkey: *const super::super::Foundation::PROPERTYKEY, pcmci: *const CM_COLUMNINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumnInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), core::mem::transmute(pcmci)).ok() + (windows_core::Interface::vtable(self).SetColumnInfo)(windows_core::Interface::as_raw(self), propkey, pcmci).ok() } pub unsafe fn GetColumnInfo(&self, propkey: *const super::super::Foundation::PROPERTYKEY, pcmci: *mut CM_COLUMNINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), core::mem::transmute(pcmci)).ok() + (windows_core::Interface::vtable(self).GetColumnInfo)(windows_core::Interface::as_raw(self), propkey, core::mem::transmute(pcmci)).ok() } pub unsafe fn GetColumnCount(&self, dwflags: CM_ENUM_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetColumnCount)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn GetColumns(&self, dwflags: CM_ENUM_FLAGS, rgkeyorder: &mut [super::super::Foundation::PROPERTYKEY]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(rgkeyorder.as_ptr()), rgkeyorder.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetColumns)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(rgkeyorder.as_ptr()), rgkeyorder.len().try_into().unwrap()).ok() } pub unsafe fn SetColumns(&self, rgkeyorder: &[super::super::Foundation::PROPERTYKEY]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(rgkeyorder.as_ptr()), rgkeyorder.len().try_into().unwrap()).ok() @@ -14495,16 +14495,16 @@ windows_core::imp::define_interface!(IColumnProvider, IColumnProvider_Vtbl, 0xe8 windows_core::imp::interface_hierarchy!(IColumnProvider, windows_core::IUnknown); impl IColumnProvider { pub unsafe fn Initialize(&self, psci: *const SHCOLUMNINIT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(psci)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psci).ok() } #[cfg(feature = "Win32_System_Variant")] pub unsafe fn GetColumnInfo(&self, dwindex: u32, psci: *mut SHCOLUMNINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetColumnInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), core::mem::transmute(psci)).ok() + (windows_core::Interface::vtable(self).GetColumnInfo)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(psci)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetItemData(&self, pscid: *const super::super::Foundation::PROPERTYKEY, pscd: *const SHCOLUMNDATA) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemData)(windows_core::Interface::as_raw(self), core::mem::transmute(pscid), core::mem::transmute(pscd), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetItemData)(windows_core::Interface::as_raw(self), pscid, pscd, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -14575,14 +14575,14 @@ impl ICommDlgBrowser { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChange)(windows_core::Interface::as_raw(self), ppshv.param().abi(), core::mem::transmute(uchange)).ok() + (windows_core::Interface::vtable(self).OnStateChange)(windows_core::Interface::as_raw(self), ppshv.param().abi(), uchange).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IncludeObject(&self, ppshv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IncludeObject)(windows_core::Interface::as_raw(self), ppshv.param().abi(), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).IncludeObject)(windows_core::Interface::as_raw(self), ppshv.param().abi(), pidl).ok() } } #[repr(C)] @@ -14649,7 +14649,7 @@ impl ICommDlgBrowser2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), ppshv.param().abi(), core::mem::transmute(dwnotifytype)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), ppshv.param().abi(), dwnotifytype).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetDefaultMenuText(&self, ppshv: P0, psztext: &mut [u16]) -> windows_core::Result<()> @@ -14730,7 +14730,7 @@ impl ICommDlgBrowser3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnColumnClicked)(windows_core::Interface::as_raw(self), ppshv.param().abi(), core::mem::transmute(icolumn)).ok() + (windows_core::Interface::vtable(self).OnColumnClicked)(windows_core::Interface::as_raw(self), ppshv.param().abi(), icolumn).ok() } pub unsafe fn GetCurrentFilter(&self, pszfilespec: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCurrentFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfilespec.as_ptr()), pszfilespec.len().try_into().unwrap()).ok() @@ -14878,7 +14878,7 @@ impl IContactManagerInterop { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowContactCardForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), contact.param().abi(), core::mem::transmute(selection), core::mem::transmute(preferredplacement)).ok() + (windows_core::Interface::vtable(self).ShowContactCardForWindow)(windows_core::Interface::as_raw(self), appwindow, contact.param().abi(), selection, preferredplacement).ok() } } #[repr(C)] @@ -14907,13 +14907,13 @@ windows_core::imp::interface_hierarchy!(IContextMenu, windows_core::IUnknown); impl IContextMenu { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu(&self, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).QueryContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu), core::mem::transmute(indexmenu), core::mem::transmute(idcmdfirst), core::mem::transmute(idcmdlast), core::mem::transmute(uflags)) + (windows_core::Interface::vtable(self).QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu, indexmenu, idcmdfirst, idcmdlast, uflags) } pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pici)).ok() + (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), pici).ok() } pub unsafe fn GetCommandString(&self, idcmd: usize, utype: u32, preserved: Option<*const u32>, pszname: windows_core::PSTR, cchmax: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCommandString)(windows_core::Interface::as_raw(self), core::mem::transmute(idcmd), core::mem::transmute(utype), core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszname), core::mem::transmute(cchmax)).ok() + (windows_core::Interface::vtable(self).GetCommandString)(windows_core::Interface::as_raw(self), idcmd, utype, core::mem::transmute(preserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pszname), cchmax).ok() } } #[repr(C)] @@ -14970,7 +14970,7 @@ impl core::ops::Deref for IContextMenu2 { windows_core::imp::interface_hierarchy!(IContextMenu2, windows_core::IUnknown, IContextMenu); impl IContextMenu2 { pub unsafe fn HandleMenuMsg(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleMenuMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).HandleMenuMsg)(windows_core::Interface::as_raw(self), umsg, wparam, lparam).ok() } } #[repr(C)] @@ -15007,7 +15007,7 @@ impl core::ops::Deref for IContextMenu3 { windows_core::imp::interface_hierarchy!(IContextMenu3, windows_core::IUnknown, IContextMenu, IContextMenu2); impl IContextMenu3 { pub unsafe fn HandleMenuMsg2(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: Option<*mut super::super::Foundation::LRESULT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleMenuMsg2)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(plresult.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).HandleMenuMsg2)(windows_core::Interface::as_raw(self), umsg, wparam, lparam, core::mem::transmute(plresult.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -15043,7 +15043,7 @@ impl IContextMenuCB { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CallBack)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), pdtobj.param().abi(), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).CallBack)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(hwndowner.unwrap_or(core::mem::zeroed())), pdtobj.param().abi(), umsg, wparam, lparam).ok() } } #[repr(C)] @@ -15080,7 +15080,7 @@ impl IContextMenuSite { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoContextMenuPopup)(windows_core::Interface::as_raw(self), punkcontextmenu.param().abi(), core::mem::transmute(fflags), core::mem::transmute(pt)).ok() + (windows_core::Interface::vtable(self).DoContextMenuPopup)(windows_core::Interface::as_raw(self), punkcontextmenu.param().abi(), fflags, core::mem::transmute(pt)).ok() } } #[repr(C)] @@ -15112,7 +15112,7 @@ impl ICopyHookA { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(wfunc), core::mem::transmute(wflags), pszsrcfile.param().abi(), core::mem::transmute(dwsrcattribs), pszdestfile.param().abi(), core::mem::transmute(dwdestattribs)) + (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), wfunc, wflags, pszsrcfile.param().abi(), dwsrcattribs, pszdestfile.param().abi(), dwdestattribs) } } #[repr(C)] @@ -15144,7 +15144,7 @@ impl ICopyHookW { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(wfunc), core::mem::transmute(wflags), pszsrcfile.param().abi(), core::mem::transmute(dwsrcattribs), pszdestfile.param().abi(), core::mem::transmute(dwdestattribs)) + (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), wfunc, wflags, pszsrcfile.param().abi(), dwsrcattribs, pszdestfile.param().abi(), dwdestattribs) } } #[repr(C)] @@ -15176,16 +15176,16 @@ impl ICreateProcessInputs { (windows_core::Interface::vtable(self).GetCreateFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCreateFlags(&self, dwcreationflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCreateFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcreationflags)).ok() + (windows_core::Interface::vtable(self).SetCreateFlags)(windows_core::Interface::as_raw(self), dwcreationflags).ok() } pub unsafe fn AddCreateFlags(&self, dwcreationflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddCreateFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcreationflags)).ok() + (windows_core::Interface::vtable(self).AddCreateFlags)(windows_core::Interface::as_raw(self), dwcreationflags).ok() } pub unsafe fn SetHotKey(&self, whotkey: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHotKey)(windows_core::Interface::as_raw(self), core::mem::transmute(whotkey)).ok() + (windows_core::Interface::vtable(self).SetHotKey)(windows_core::Interface::as_raw(self), whotkey).ok() } pub unsafe fn AddStartupFlags(&self, dwstartupinfoflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddStartupFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstartupinfoflags)).ok() + (windows_core::Interface::vtable(self).AddStartupFlags)(windows_core::Interface::as_raw(self), dwstartupinfoflags).ok() } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where @@ -15308,16 +15308,16 @@ windows_core::imp::define_interface!(ICredentialProvider, ICredentialProvider_Vt windows_core::imp::interface_hierarchy!(ICredentialProvider, windows_core::IUnknown); impl ICredentialProvider { pub unsafe fn SetUsageScenario(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUsageScenario)(windows_core::Interface::as_raw(self), core::mem::transmute(cpus), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetUsageScenario)(windows_core::Interface::as_raw(self), cpus, dwflags).ok() } pub unsafe fn SetSerialization(&self, pcpcs: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSerialization)(windows_core::Interface::as_raw(self), core::mem::transmute(pcpcs)).ok() + (windows_core::Interface::vtable(self).SetSerialization)(windows_core::Interface::as_raw(self), pcpcs).ok() } pub unsafe fn Advise(&self, pcpe: P0, upadvisecontext: usize) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcpe.param().abi(), core::mem::transmute(upadvisecontext)).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcpe.param().abi(), upadvisecontext).ok() } pub unsafe fn UnAdvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self)).ok() @@ -15328,14 +15328,14 @@ impl ICredentialProvider { } pub unsafe fn GetFieldDescriptorAt(&self, dwindex: u32) -> windows_core::Result<*mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldDescriptorAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldDescriptorAt)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } pub unsafe fn GetCredentialCount(&self, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCredentialCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwcount), core::mem::transmute(pdwdefault), core::mem::transmute(pbautologonwithdefault)).ok() } pub unsafe fn GetCredentialAt(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCredentialAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCredentialAt)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15449,51 +15449,51 @@ impl ICredentialProviderCredential { (windows_core::Interface::vtable(self).SetDeselected)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetFieldState(&self, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFieldState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), core::mem::transmute(pcpfs), core::mem::transmute(pcpfis)).ok() + (windows_core::Interface::vtable(self).GetFieldState)(windows_core::Interface::as_raw(self), dwfieldid, core::mem::transmute(pcpfs), core::mem::transmute(pcpfis)).ok() } pub unsafe fn GetStringValue(&self, dwfieldid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmapValue(&self, dwfieldid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBitmapValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBitmapValue)(windows_core::Interface::as_raw(self), dwfieldid, &mut result__).map(|| result__) } pub unsafe fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCheckboxValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), core::mem::transmute(pbchecked), core::mem::transmute(ppszlabel)).ok() + (windows_core::Interface::vtable(self).GetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, core::mem::transmute(pbchecked), core::mem::transmute(ppszlabel)).ok() } pub unsafe fn GetSubmitButtonValue(&self, dwfieldid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubmitButtonValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubmitButtonValue)(windows_core::Interface::as_raw(self), dwfieldid, &mut result__).map(|| result__) } pub unsafe fn GetComboBoxValueCount(&self, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetComboBoxValueCount)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), core::mem::transmute(pcitems), core::mem::transmute(pdwselecteditem)).ok() + (windows_core::Interface::vtable(self).GetComboBoxValueCount)(windows_core::Interface::as_raw(self), dwfieldid, core::mem::transmute(pcitems), core::mem::transmute(pdwselecteditem)).ok() } pub unsafe fn GetComboBoxValueAt(&self, dwfieldid: u32, dwitem: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetComboBoxValueAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), core::mem::transmute(dwitem), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetComboBoxValueAt)(windows_core::Interface::as_raw(self), dwfieldid, dwitem, &mut result__).map(|| result__) } pub unsafe fn SetStringValue(&self, dwfieldid: u32, psz: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), psz.param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, psz.param().abi()).ok() } pub unsafe fn SetCheckboxValue(&self, dwfieldid: u32, bchecked: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCheckboxValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), bchecked.into()).ok() + (windows_core::Interface::vtable(self).SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.into()).ok() } pub unsafe fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetComboBoxSelectedValue)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid), core::mem::transmute(dwselecteditem)).ok() + (windows_core::Interface::vtable(self).SetComboBoxSelectedValue)(windows_core::Interface::as_raw(self), dwfieldid, dwselecteditem).ok() } pub unsafe fn CommandLinkClicked(&self, dwfieldid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CommandLinkClicked)(windows_core::Interface::as_raw(self), core::mem::transmute(dwfieldid)).ok() + (windows_core::Interface::vtable(self).CommandLinkClicked)(windows_core::Interface::as_raw(self), dwfieldid).ok() } pub unsafe fn GetSerialization(&self, 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::Result<()> { (windows_core::Interface::vtable(self).GetSerialization)(windows_core::Interface::as_raw(self), core::mem::transmute(pcpgsr), core::mem::transmute(pcpcs), core::mem::transmute(ppszoptionalstatustext), core::mem::transmute(pcpsioptionalstatusicon)).ok() } pub unsafe fn ReportResult(&self, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), core::mem::transmute(ntsstatus), core::mem::transmute(ntssubstatus), core::mem::transmute(ppszoptionalstatustext), core::mem::transmute(pcpsioptionalstatusicon)).ok() + (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), ntsstatus, ntssubstatus, core::mem::transmute(ppszoptionalstatustext), core::mem::transmute(pcpsioptionalstatusicon)).ok() } } #[repr(C)] @@ -15719,59 +15719,59 @@ impl ICredentialProviderCredentialEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldState)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), core::mem::transmute(cpfs)).ok() + (windows_core::Interface::vtable(self).SetFieldState)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, cpfs).ok() } pub unsafe fn SetFieldInteractiveState(&self, pcpc: P0, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldInteractiveState)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), core::mem::transmute(cpfis)).ok() + (windows_core::Interface::vtable(self).SetFieldInteractiveState)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, cpfis).ok() } pub unsafe fn SetFieldString(&self, pcpc: P0, dwfieldid: u32, psz: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldString)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), psz.param().abi()).ok() + (windows_core::Interface::vtable(self).SetFieldString)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, psz.param().abi()).ok() } pub unsafe fn SetFieldCheckbox(&self, pcpc: P0, dwfieldid: u32, bchecked: bool, pszlabel: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldCheckbox)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), bchecked.into(), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).SetFieldCheckbox)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, bchecked.into(), pszlabel.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFieldBitmap(&self, pcpc: P0, dwfieldid: u32, hbmp: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldBitmap)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), core::mem::transmute(hbmp)).ok() + (windows_core::Interface::vtable(self).SetFieldBitmap)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, hbmp).ok() } pub unsafe fn SetFieldComboBoxSelectedItem(&self, pcpc: P0, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldComboBoxSelectedItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), core::mem::transmute(dwselecteditem)).ok() + (windows_core::Interface::vtable(self).SetFieldComboBoxSelectedItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, dwselecteditem).ok() } pub unsafe fn DeleteFieldComboBoxItem(&self, pcpc: P0, dwfieldid: u32, dwitem: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), core::mem::transmute(dwitem)).ok() + (windows_core::Interface::vtable(self).DeleteFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, dwitem).ok() } pub unsafe fn AppendFieldComboBoxItem(&self, pcpc: P0, dwfieldid: u32, pszitem: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), pszitem.param().abi()).ok() + (windows_core::Interface::vtable(self).AppendFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, pszitem.param().abi()).ok() } pub unsafe fn SetFieldSubmitButton(&self, pcpc: P0, dwfieldid: u32, dwadjacentto: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldSubmitButton)(windows_core::Interface::as_raw(self), pcpc.param().abi(), core::mem::transmute(dwfieldid), core::mem::transmute(dwadjacentto)).ok() + (windows_core::Interface::vtable(self).SetFieldSubmitButton)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, dwadjacentto).ok() } pub unsafe fn OnCreatingWindow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -15896,7 +15896,7 @@ impl ICredentialProviderCredentialEvents2 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldOptions)(windows_core::Interface::as_raw(self), credential.param().abi(), core::mem::transmute(fieldid), core::mem::transmute(options)).ok() + (windows_core::Interface::vtable(self).SetFieldOptions)(windows_core::Interface::as_raw(self), credential.param().abi(), fieldid, options).ok() } } #[repr(C)] @@ -15945,7 +15945,7 @@ windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialWithFieldOp impl ICredentialProviderCredentialWithFieldOptions { pub unsafe fn GetFieldOptions(&self, fieldid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(fieldid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFieldOptions)(windows_core::Interface::as_raw(self), fieldid, &mut result__).map(|| result__) } } #[repr(C)] @@ -15979,7 +15979,7 @@ windows_core::imp::define_interface!(ICredentialProviderEvents, ICredentialProvi windows_core::imp::interface_hierarchy!(ICredentialProviderEvents, windows_core::IUnknown); impl ICredentialProviderEvents { pub unsafe fn CredentialsChanged(&self, upadvisecontext: usize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CredentialsChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(upadvisecontext)).ok() + (windows_core::Interface::vtable(self).CredentialsChanged)(windows_core::Interface::as_raw(self), upadvisecontext).ok() } } #[repr(C)] @@ -16007,10 +16007,10 @@ windows_core::imp::define_interface!(ICredentialProviderFilter, ICredentialProvi windows_core::imp::interface_hierarchy!(ICredentialProviderFilter, windows_core::IUnknown); impl ICredentialProviderFilter { pub unsafe 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<()> { - (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), core::mem::transmute(cpus), core::mem::transmute(dwflags), core::mem::transmute(rgclsidproviders), core::mem::transmute(rgballow), core::mem::transmute(cproviders)).ok() + (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), cpus, dwflags, rgclsidproviders, core::mem::transmute(rgballow), cproviders).ok() } pub unsafe fn UpdateRemoteCredential(&self, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateRemoteCredential)(windows_core::Interface::as_raw(self), core::mem::transmute(pcpcsin), core::mem::transmute(pcpcsout)).ok() + (windows_core::Interface::vtable(self).UpdateRemoteCredential)(windows_core::Interface::as_raw(self), pcpcsin, core::mem::transmute(pcpcsout)).ok() } } #[repr(C)] @@ -16088,12 +16088,12 @@ impl ICredentialProviderUser { } pub unsafe fn GetStringValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -16175,7 +16175,7 @@ windows_core::imp::define_interface!(ICredentialProviderUserArray, ICredentialPr windows_core::imp::interface_hierarchy!(ICredentialProviderUserArray, windows_core::IUnknown); impl ICredentialProviderUserArray { pub unsafe fn SetProviderFilter(&self, guidprovidertofilterto: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProviderFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprovidertofilterto)).ok() + (windows_core::Interface::vtable(self).SetProviderFilter)(windows_core::Interface::as_raw(self), guidprovidertofilterto).ok() } pub unsafe fn GetAccountOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -16187,7 +16187,7 @@ impl ICredentialProviderUserArray { } pub unsafe fn GetAt(&self, userindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(userindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), userindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16347,7 +16347,7 @@ impl ICustomDestinationList { (windows_core::Interface::vtable(self).AppendCategory)(windows_core::Interface::as_raw(self), pszcategory.param().abi(), poa.param().abi()).ok() } pub unsafe fn AppendKnownCategory(&self, category: KNOWNDESTCATEGORY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppendKnownCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(category)).ok() + (windows_core::Interface::vtable(self).AppendKnownCategory)(windows_core::Interface::as_raw(self), category).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddUserTasks(&self, poa: P0) -> windows_core::Result<()> @@ -16502,7 +16502,7 @@ impl IDataObjectAsyncCapability { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EndOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(hresult), pbcreserved.param().abi(), core::mem::transmute(dweffects)).ok() + (windows_core::Interface::vtable(self).EndOperation)(windows_core::Interface::as_raw(self), hresult, pbcreserved.param().abi(), dweffects).ok() } } #[repr(C)] @@ -16648,10 +16648,10 @@ impl IDataTransferManagerInterop { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowShareUIForWindow(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowShareUIForWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(appwindow)).ok() + (windows_core::Interface::vtable(self).ShowShareUIForWindow)(windows_core::Interface::as_raw(self), appwindow).ok() } } #[repr(C)] @@ -16689,35 +16689,35 @@ windows_core::imp::define_interface!(IDefaultExtractIconInit, IDefaultExtractIco windows_core::imp::interface_hierarchy!(IDefaultExtractIconInit, windows_core::IUnknown); impl IDefaultExtractIconInit { pub unsafe fn SetFlags(&self, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), uflags).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetKey(&self, hkey: super::super::System::Registry::HKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), core::mem::transmute(hkey)).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), hkey).ok() } pub unsafe fn SetNormalIcon(&self, pszfile: P0, iicon: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNormalIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetNormalIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), iicon).ok() } pub unsafe fn SetOpenIcon(&self, pszfile: P0, iicon: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpenIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetOpenIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), iicon).ok() } pub unsafe fn SetShortcutIcon(&self, pszfile: P0, iicon: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShortcutIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetShortcutIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), iicon).ok() } pub unsafe fn SetDefaultIcon(&self, pszfile: P0, iicon: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetDefaultIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), iicon).ok() } } #[repr(C)] @@ -16795,17 +16795,17 @@ impl IDefaultFolderMenuInitialize { P3: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pcmcb.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(core::mem::zeroed())), psf.param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), punkassociation.param().abi(), core::mem::transmute(ckeys), core::mem::transmute(akeys.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwnd, pcmcb.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(core::mem::zeroed())), psf.param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), punkassociation.param().abi(), ckeys, core::mem::transmute(akeys.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetMenuRestrictions(&self, dfmrvalues: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMenuRestrictions)(windows_core::Interface::as_raw(self), core::mem::transmute(dfmrvalues)).ok() + (windows_core::Interface::vtable(self).SetMenuRestrictions)(windows_core::Interface::as_raw(self), dfmrvalues).ok() } pub unsafe fn GetMenuRestrictions(&self, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMenuRestrictions)(windows_core::Interface::as_raw(self), core::mem::transmute(dfmrmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMenuRestrictions)(windows_core::Interface::as_raw(self), dfmrmask, &mut result__).map(|| result__) } pub unsafe fn SetHandlerClsid(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHandlerClsid)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid)).ok() + (windows_core::Interface::vtable(self).SetHandlerClsid)(windows_core::Interface::as_raw(self), rclsid).ok() } } #[repr(C)] @@ -16942,7 +16942,7 @@ windows_core::imp::interface_hierarchy!(IDeskBand, windows_core::IUnknown, super #[cfg(feature = "Win32_System_Ole")] impl IDeskBand { pub unsafe fn GetBandInfo(&self, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBandInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbandid), core::mem::transmute(dwviewmode), core::mem::transmute(pdbi)).ok() + (windows_core::Interface::vtable(self).GetBandInfo)(windows_core::Interface::as_raw(self), dwbandid, dwviewmode, core::mem::transmute(pdbi)).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -17054,7 +17054,7 @@ windows_core::imp::interface_hierarchy!(IDeskBandInfo, windows_core::IUnknown); impl IDeskBandInfo { pub unsafe fn GetDefaultBandWidth(&self, dwbandid: u32, dwviewmode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultBandWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(dwbandid), core::mem::transmute(dwviewmode), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultBandWidth)(windows_core::Interface::as_raw(self), dwbandid, dwviewmode, &mut result__).map(|| result__) } } #[repr(C)] @@ -17108,7 +17108,7 @@ impl IDeskBar { (windows_core::Interface::vtable(self).GetClient)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnPosRectChangeDB(&self, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnPosRectChangeDB)(windows_core::Interface::as_raw(self), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).OnPosRectChangeDB)(windows_core::Interface::as_raw(self), prc).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -17179,14 +17179,14 @@ impl IDeskBarClient { (windows_core::Interface::vtable(self).SetDeskBarSite)(windows_core::Interface::as_raw(self), punksite.param().abi()).ok() } pub unsafe fn SetModeDBC(&self, dwmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetModeDBC)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).SetModeDBC)(windows_core::Interface::as_raw(self), dwmode).ok() } pub unsafe fn UIActivateDBC(&self, dwstate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UIActivateDBC)(windows_core::Interface::as_raw(self), core::mem::transmute(dwstate)).ok() + (windows_core::Interface::vtable(self).UIActivateDBC)(windows_core::Interface::as_raw(self), dwstate).ok() } pub unsafe fn GetSize(&self, dwwhich: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwhich), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), dwwhich, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Ole")] @@ -17294,7 +17294,7 @@ impl IDesktopWallpaper { } pub unsafe fn GetMonitorDevicePathAt(&self, monitorindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMonitorDevicePathAt)(windows_core::Interface::as_raw(self), core::mem::transmute(monitorindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMonitorDevicePathAt)(windows_core::Interface::as_raw(self), monitorindex, &mut result__).map(|| result__) } pub unsafe fn GetMonitorDevicePathCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17308,14 +17308,14 @@ impl IDesktopWallpaper { (windows_core::Interface::vtable(self).GetMonitorRECT)(windows_core::Interface::as_raw(self), monitorid.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetBackgroundColor(&self, color: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), color).ok() } pub unsafe fn GetBackgroundColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBackgroundColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPosition(&self, position: DESKTOP_WALLPAPER_POSITION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(position)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), position).ok() } pub unsafe fn GetPosition(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17332,7 +17332,7 @@ impl IDesktopWallpaper { (windows_core::Interface::vtable(self).GetSlideshow)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSlideshowOptions(&self, options: DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSlideshowOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(slideshowtick)).ok() + (windows_core::Interface::vtable(self).SetSlideshowOptions)(windows_core::Interface::as_raw(self), options, slideshowtick).ok() } pub unsafe fn GetSlideshowOptions(&self, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSlideshowOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(options), core::mem::transmute(slideshowtick)).ok() @@ -17341,7 +17341,7 @@ impl IDesktopWallpaper { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdvanceSlideshow)(windows_core::Interface::as_raw(self), monitorid.param().abi(), core::mem::transmute(direction)).ok() + (windows_core::Interface::vtable(self).AdvanceSlideshow)(windows_core::Interface::as_raw(self), monitorid.param().abi(), direction).ok() } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -17647,13 +17647,13 @@ impl IDockingWindow { (windows_core::Interface::vtable(self).ShowDW)(windows_core::Interface::as_raw(self), fshow.into()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CloseDW)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).CloseDW)(windows_core::Interface::as_raw(self), dwreserved).ok() } pub unsafe fn ResizeBorderDW(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: P1, freserved: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeBorderDW)(windows_core::Interface::as_raw(self), core::mem::transmute(prcborder), punktoolbarsite.param().abi(), freserved.into()).ok() + (windows_core::Interface::vtable(self).ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.param().abi(), freserved.into()).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -17716,19 +17716,19 @@ impl IDockingWindowFrame { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToolbar)(windows_core::Interface::as_raw(self), punksrc.param().abi(), pwszitem.param().abi(), core::mem::transmute(dwaddflags)).ok() + (windows_core::Interface::vtable(self).AddToolbar)(windows_core::Interface::as_raw(self), punksrc.param().abi(), pwszitem.param().abi(), dwaddflags).ok() } pub unsafe fn RemoveToolbar(&self, punksrc: P0, dwremoveflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveToolbar)(windows_core::Interface::as_raw(self), punksrc.param().abi(), core::mem::transmute(dwremoveflags)).ok() + (windows_core::Interface::vtable(self).RemoveToolbar)(windows_core::Interface::as_raw(self), punksrc.param().abi(), dwremoveflags).ok() } pub unsafe fn FindToolbar(&self, pwszitem: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindToolbar)(windows_core::Interface::as_raw(self), pwszitem.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).FindToolbar)(windows_core::Interface::as_raw(self), pwszitem.param().abi(), riid, core::mem::transmute(ppv)).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -17797,13 +17797,13 @@ impl IDockingWindowSite { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.param().abi(), core::mem::transmute(pbw)).ok() + (windows_core::Interface::vtable(self).RequestBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.param().abi(), pbw).ok() } pub unsafe fn SetBorderSpaceDW(&self, punkobj: P0, pbw: *const super::super::Foundation::RECT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.param().abi(), core::mem::transmute(pbw)).ok() + (windows_core::Interface::vtable(self).SetBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.param().abi(), pbw).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -17862,7 +17862,7 @@ impl IDragSourceHelper { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(pshdi), pdataobject.param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), pshdi, pdataobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromWindow(&self, hwnd: Option, ppt: Option<*const super::super::Foundation::POINT>, pdataobject: P2) -> windows_core::Result<()> @@ -17922,7 +17922,7 @@ impl core::ops::Deref for IDragSourceHelper2 { windows_core::imp::interface_hierarchy!(IDragSourceHelper2, windows_core::IUnknown, IDragSourceHelper); impl IDragSourceHelper2 { pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -17957,21 +17957,21 @@ impl IDropTargetHelper { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtarget), pdataobject.param().abi(), core::mem::transmute(ppt), core::mem::transmute(dweffect)).ok() + (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), hwndtarget, pdataobject.param().abi(), ppt, dweffect).ok() } pub unsafe fn DragLeave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DragLeave)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn DragOver(&self, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DragOver)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt), core::mem::transmute(dweffect)).ok() + (windows_core::Interface::vtable(self).DragOver)(windows_core::Interface::as_raw(self), ppt, dweffect).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Drop(&self, pdataobject: P0, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), core::mem::transmute(ppt), core::mem::transmute(dweffect)).ok() + (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), ppt, dweffect).ok() } pub unsafe fn Show(&self, fshow: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.into()).ok() @@ -18049,7 +18049,7 @@ impl IDynamicHWHandler { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDynamicInfo)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), core::mem::transmute(dwcontenttype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDynamicInfo)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), dwcontenttype, &mut result__).map(|| result__) } } #[repr(C)] @@ -18122,7 +18122,7 @@ impl IEnumACString { (windows_core::Interface::vtable(self).NextItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pszurl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszurl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pulsortindex)).ok() } pub unsafe fn SetEnumOptions(&self, dwoptions: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnumOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoptions)).ok() + (windows_core::Interface::vtable(self).SetEnumOptions)(windows_core::Interface::as_raw(self), dwoptions).ok() } pub unsafe fn GetEnumOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -18212,7 +18212,7 @@ impl IEnumExplorerCommand { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), puicommand.len().try_into().unwrap(), core::mem::transmute(puicommand.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18280,7 +18280,7 @@ impl IEnumExtraSearch { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18349,7 +18349,7 @@ impl IEnumFullIDList { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18420,10 +18420,10 @@ windows_core::imp::define_interface!(IEnumHLITEM, IEnumHLITEM_Vtbl, 0x79eac9c6_b windows_core::imp::interface_hierarchy!(IEnumHLITEM, windows_core::IUnknown); impl IEnumHLITEM { pub unsafe fn Next(&self, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18492,7 +18492,7 @@ impl IEnumIDList { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt) } pub unsafe fn Reset(&self) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)) @@ -18556,10 +18556,10 @@ windows_core::imp::define_interface!(IEnumObjects, IEnumObjects_Vtbl, 0x2c1c7e2e windows_core::imp::interface_hierarchy!(IEnumObjects, windows_core::IUnknown); impl IEnumObjects { pub unsafe fn Next(&self, riid: *const windows_core::GUID, rgelt: &mut [*mut core::ffi::c_void], pceltfetched: Option<*mut u32>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(riid), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), riid, core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18699,7 +18699,7 @@ impl IEnumResources { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), psir.len().try_into().unwrap(), core::mem::transmute(psir.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18767,7 +18767,7 @@ impl IEnumShellItems { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18835,7 +18835,7 @@ impl IEnumSyncMgrConflict { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18903,7 +18903,7 @@ impl IEnumSyncMgrEvents { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -18971,7 +18971,7 @@ impl IEnumSyncMgrSyncItems { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -19039,7 +19039,7 @@ impl IEnumTravelLogEntry { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -19112,7 +19112,7 @@ impl IEnumerableView { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn CreateEnumIDListFromContents(&self, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEnumIDListFromContents)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlfolder), core::mem::transmute(dwenumflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEnumIDListFromContents)(windows_core::Interface::as_raw(self), pidlfolder, dwenumflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -19162,7 +19162,7 @@ windows_core::imp::define_interface!(IExecuteCommand, IExecuteCommand_Vtbl, 0x7f windows_core::imp::interface_hierarchy!(IExecuteCommand, windows_core::IUnknown); impl IExecuteCommand { pub unsafe fn SetKeyState(&self, grfkeystate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeyState)(windows_core::Interface::as_raw(self), core::mem::transmute(grfkeystate)).ok() + (windows_core::Interface::vtable(self).SetKeyState)(windows_core::Interface::as_raw(self), grfkeystate).ok() } pub unsafe fn SetParameters(&self, pszparameters: P0) -> windows_core::Result<()> where @@ -19174,7 +19174,7 @@ impl IExecuteCommand { (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pt)).ok() } pub unsafe fn SetShowWindow(&self, nshow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(nshow)).ok() + (windows_core::Interface::vtable(self).SetShowWindow)(windows_core::Interface::as_raw(self), nshow).ok() } pub unsafe fn SetNoShowUI(&self, fnoshowui: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetNoShowUI)(windows_core::Interface::as_raw(self), fnoshowui.into()).ok() @@ -19331,15 +19331,15 @@ impl IExpDispSupport { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindConnectionPoint(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindConnectionPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindConnectionPoint)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnTranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(grfmodifiers)).ok() + (windows_core::Interface::vtable(self).OnTranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg, grfmodifiers).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn OnInvoke(&self, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Variant::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInvoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dispidmember), core::mem::transmute(iid), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).OnInvoke)(windows_core::Interface::as_raw(self), dispidmember, iid, lcid, wflags, pdispparams, core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() } } #[repr(C)] @@ -19404,15 +19404,15 @@ impl IExpDispSupportXP { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindCIE4ConnectionPoint(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindCIE4ConnectionPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindCIE4ConnectionPoint)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnTranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(grfmodifiers)).ok() + (windows_core::Interface::vtable(self).OnTranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg, grfmodifiers).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn OnInvoke(&self, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Variant::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnInvoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dispidmember), core::mem::transmute(iid), core::mem::transmute(lcid), core::mem::transmute(wflags), core::mem::transmute(pdispparams), core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() + (windows_core::Interface::vtable(self).OnInvoke)(windows_core::Interface::as_raw(self), dispidmember, iid, lcid, wflags, pdispparams, core::mem::transmute(pvarresult), core::mem::transmute(pexcepinfo), core::mem::transmute(puargerr)).ok() } } #[repr(C)] @@ -19475,7 +19475,7 @@ windows_core::imp::define_interface!(IExplorerBrowser, IExplorerBrowser_Vtbl, 0x windows_core::imp::interface_hierarchy!(IExplorerBrowser, windows_core::IUnknown); impl IExplorerBrowser { pub unsafe fn Initialize(&self, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, pfs: Option<*const FOLDERSETTINGS>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(prc), core::mem::transmute(pfs.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent, prc, core::mem::transmute(pfs.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -19497,7 +19497,7 @@ impl IExplorerBrowser { (windows_core::Interface::vtable(self).SetEmptyText)(windows_core::Interface::as_raw(self), pszemptytext.param().abi()).ok() } pub unsafe fn SetFolderSettings(&self, pfs: *const FOLDERSETTINGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFolderSettings)(windows_core::Interface::as_raw(self), core::mem::transmute(pfs)).ok() + (windows_core::Interface::vtable(self).SetFolderSettings)(windows_core::Interface::as_raw(self), pfs).ok() } pub unsafe fn Advise(&self, psbe: P0) -> windows_core::Result where @@ -19507,10 +19507,10 @@ impl IExplorerBrowser { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psbe.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn SetOptions(&self, dwflag: EXPLORER_BROWSER_OPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflag)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), dwflag).ok() } pub unsafe fn GetOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -19518,19 +19518,19 @@ impl IExplorerBrowser { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn BrowseToIDList(&self, pidl: *const Common::ITEMIDLIST, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BrowseToIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).BrowseToIDList)(windows_core::Interface::as_raw(self), pidl, uflags).ok() } pub unsafe fn BrowseToObject(&self, punk: P0, uflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BrowseToObject)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).BrowseToObject)(windows_core::Interface::as_raw(self), punk.param().abi(), uflags).ok() } pub unsafe fn FillFromObject(&self, punk: P0, dwflags: EXPLORER_BROWSER_FILL_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FillFromObject)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).FillFromObject)(windows_core::Interface::as_raw(self), punk.param().abi(), dwflags).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self)).ok() @@ -19691,7 +19691,7 @@ windows_core::imp::interface_hierarchy!(IExplorerBrowserEvents, windows_core::IU impl IExplorerBrowserEvents { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationPending(&self, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNavigationPending)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlfolder)).ok() + (windows_core::Interface::vtable(self).OnNavigationPending)(windows_core::Interface::as_raw(self), pidlfolder).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnViewCreated(&self, psv: P0) -> windows_core::Result<()> @@ -19702,11 +19702,11 @@ impl IExplorerBrowserEvents { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationComplete(&self, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNavigationComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlfolder)).ok() + (windows_core::Interface::vtable(self).OnNavigationComplete)(windows_core::Interface::as_raw(self), pidlfolder).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationFailed(&self, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNavigationFailed)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlfolder)).ok() + (windows_core::Interface::vtable(self).OnNavigationFailed)(windows_core::Interface::as_raw(self), pidlfolder).ok() } } #[repr(C)] @@ -19958,7 +19958,7 @@ impl IExplorerCommandProvider { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidcommandid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), rguidcommandid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -20035,7 +20035,7 @@ windows_core::imp::interface_hierarchy!(IExplorerPaneVisibility, windows_core::I impl IExplorerPaneVisibility { pub unsafe fn GetPaneState(&self, ep: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPaneState)(windows_core::Interface::as_raw(self), core::mem::transmute(ep), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPaneState)(windows_core::Interface::as_raw(self), ep, &mut result__).map(|| result__) } } #[repr(C)] @@ -20079,7 +20079,7 @@ impl IExtensionServices { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthenticateData)(windows_core::Interface::as_raw(self), core::mem::transmute(phwnd), pwzusername.param().abi(), pwzpassword.param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthenticateData)(windows_core::Interface::as_raw(self), phwnd, pwzusername.param().abi(), pwzpassword.param().abi()).ok() } } #[repr(C)] @@ -20117,14 +20117,14 @@ windows_core::imp::define_interface!(IExtractIconA, IExtractIconA_Vtbl, 0x000214 windows_core::imp::interface_hierarchy!(IExtractIconA, windows_core::IUnknown); impl IExtractIconA { pub unsafe fn GetIconLocation(&self, uflags: u32, psziconfile: &mut [u8], piindex: *mut i32, pwflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags), core::mem::transmute(psziconfile.as_ptr()), psziconfile.len().try_into().unwrap(), core::mem::transmute(piindex), core::mem::transmute(pwflags)).ok() + (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), uflags, core::mem::transmute(psziconfile.as_ptr()), psziconfile.len().try_into().unwrap(), core::mem::transmute(piindex), core::mem::transmute(pwflags)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn Extract(&self, pszfile: P0, niconindex: u32, phiconlarge: Option<*mut super::WindowsAndMessaging::HICON>, phiconsmall: Option<*mut super::WindowsAndMessaging::HICON>, niconsize: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(niconindex), core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), core::mem::transmute(niconsize)).ok() + (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), niconsize).ok() } } #[repr(C)] @@ -20168,14 +20168,14 @@ windows_core::imp::define_interface!(IExtractIconW, IExtractIconW_Vtbl, 0x000214 windows_core::imp::interface_hierarchy!(IExtractIconW, windows_core::IUnknown); impl IExtractIconW { pub unsafe fn GetIconLocation(&self, uflags: u32, psziconfile: &mut [u16], piindex: *mut i32, pwflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(uflags), core::mem::transmute(psziconfile.as_ptr()), psziconfile.len().try_into().unwrap(), core::mem::transmute(piindex), core::mem::transmute(pwflags)).ok() + (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), uflags, core::mem::transmute(psziconfile.as_ptr()), psziconfile.len().try_into().unwrap(), core::mem::transmute(piindex), core::mem::transmute(pwflags)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn Extract(&self, pszfile: P0, niconindex: u32, phiconlarge: Option<*mut super::WindowsAndMessaging::HICON>, phiconsmall: Option<*mut super::WindowsAndMessaging::HICON>, niconsize: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.param().abi(), core::mem::transmute(niconindex), core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), core::mem::transmute(niconsize)).ok() + (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(core::mem::zeroed())), core::mem::transmute(phiconsmall.unwrap_or(core::mem::zeroed())), niconsize).ok() } } #[repr(C)] @@ -20219,7 +20219,7 @@ windows_core::imp::define_interface!(IExtractImage, IExtractImage_Vtbl, 0xbb2e61 windows_core::imp::interface_hierarchy!(IExtractImage, windows_core::IUnknown); impl IExtractImage { pub unsafe fn GetLocation(&self, pszpathbuffer: &mut [u16], pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(pszpathbuffer.as_ptr()), pszpathbuffer.len().try_into().unwrap(), core::mem::transmute(pdwpriority), core::mem::transmute(prgsize), core::mem::transmute(dwrecclrdepth), core::mem::transmute(pdwflags)).ok() + (windows_core::Interface::vtable(self).GetLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(pszpathbuffer.as_ptr()), pszpathbuffer.len().try_into().unwrap(), core::mem::transmute(pdwpriority), prgsize, dwrecclrdepth, core::mem::transmute(pdwflags)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Extract(&self) -> windows_core::Result { @@ -20328,7 +20328,7 @@ impl IFileDialog { (windows_core::Interface::vtable(self).SetFileTypes)(windows_core::Interface::as_raw(self), rgfilterspec.len().try_into().unwrap(), core::mem::transmute(rgfilterspec.as_ptr())).ok() } pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileTypeIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(ifiletype)).ok() + (windows_core::Interface::vtable(self).SetFileTypeIndex)(windows_core::Interface::as_raw(self), ifiletype).ok() } pub unsafe fn GetFileTypeIndex(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20342,10 +20342,10 @@ impl IFileDialog { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pfde.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn SetOptions(&self, fos: FILEOPENDIALOGOPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(fos)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), fos).ok() } pub unsafe fn GetOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -20407,7 +20407,7 @@ impl IFileDialog { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPlace)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(fdap)).ok() + (windows_core::Interface::vtable(self).AddPlace)(windows_core::Interface::as_raw(self), psi.param().abi(), fdap).ok() } pub unsafe fn SetDefaultExtension(&self, pszdefaultextension: P0) -> windows_core::Result<()> where @@ -20416,10 +20416,10 @@ impl IFileDialog { (windows_core::Interface::vtable(self).SetDefaultExtension)(windows_core::Interface::as_raw(self), pszdefaultextension.param().abi()).ok() } pub unsafe fn Close(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn SetClientGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClientGuid)(windows_core::Interface::as_raw(self), core::mem::transmute(guid)).ok() + (windows_core::Interface::vtable(self).SetClientGuid)(windows_core::Interface::as_raw(self), guid).ok() } pub unsafe fn ClearClientData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearClientData)(windows_core::Interface::as_raw(self)).ok() @@ -20720,25 +20720,25 @@ impl IFileDialogControlEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemSelected)(windows_core::Interface::as_raw(self), pfdc.param().abi(), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem)).ok() + (windows_core::Interface::vtable(self).OnItemSelected)(windows_core::Interface::as_raw(self), pfdc.param().abi(), dwidctl, dwiditem).ok() } pub unsafe fn OnButtonClicked(&self, pfdc: P0, dwidctl: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnButtonClicked)(windows_core::Interface::as_raw(self), pfdc.param().abi(), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).OnButtonClicked)(windows_core::Interface::as_raw(self), pfdc.param().abi(), dwidctl).ok() } pub unsafe fn OnCheckButtonToggled(&self, pfdc: P0, dwidctl: u32, bchecked: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCheckButtonToggled)(windows_core::Interface::as_raw(self), pfdc.param().abi(), core::mem::transmute(dwidctl), bchecked.into()).ok() + (windows_core::Interface::vtable(self).OnCheckButtonToggled)(windows_core::Interface::as_raw(self), pfdc.param().abi(), dwidctl, bchecked.into()).ok() } pub unsafe fn OnControlActivating(&self, pfdc: P0, dwidctl: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnControlActivating)(windows_core::Interface::as_raw(self), pfdc.param().abi(), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).OnControlActivating)(windows_core::Interface::as_raw(self), pfdc.param().abi(), dwidctl).ok() } } #[repr(C)] @@ -20790,120 +20790,120 @@ windows_core::imp::define_interface!(IFileDialogCustomize, IFileDialogCustomize_ windows_core::imp::interface_hierarchy!(IFileDialogCustomize, windows_core::IUnknown); impl IFileDialogCustomize { pub unsafe fn EnableOpenDropDown(&self, dwidctl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableOpenDropDown)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).EnableOpenDropDown)(windows_core::Interface::as_raw(self), dwidctl).ok() } pub unsafe fn AddMenu(&self, dwidctl: u32, pszlabel: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).AddMenu)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.param().abi()).ok() } pub unsafe fn AddPushButton(&self, dwidctl: u32, pszlabel: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPushButton)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).AddPushButton)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.param().abi()).ok() } pub unsafe fn AddComboBox(&self, dwidctl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddComboBox)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).AddComboBox)(windows_core::Interface::as_raw(self), dwidctl).ok() } pub unsafe fn AddRadioButtonList(&self, dwidctl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddRadioButtonList)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).AddRadioButtonList)(windows_core::Interface::as_raw(self), dwidctl).ok() } pub unsafe fn AddCheckButton(&self, dwidctl: u32, pszlabel: P1, bchecked: bool) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCheckButton)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), pszlabel.param().abi(), bchecked.into()).ok() + (windows_core::Interface::vtable(self).AddCheckButton)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.param().abi(), bchecked.into()).ok() } pub unsafe fn AddEditBox(&self, dwidctl: u32, psztext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEditBox)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), psztext.param().abi()).ok() + (windows_core::Interface::vtable(self).AddEditBox)(windows_core::Interface::as_raw(self), dwidctl, psztext.param().abi()).ok() } pub unsafe fn AddSeparator(&self, dwidctl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddSeparator)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).AddSeparator)(windows_core::Interface::as_raw(self), dwidctl).ok() } pub unsafe fn AddText(&self, dwidctl: u32, psztext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), psztext.param().abi()).ok() + (windows_core::Interface::vtable(self).AddText)(windows_core::Interface::as_raw(self), dwidctl, psztext.param().abi()).ok() } pub unsafe fn SetControlLabel(&self, dwidctl: u32, pszlabel: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetControlLabel)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).SetControlLabel)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.param().abi()).ok() } pub unsafe fn GetControlState(&self, dwidctl: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControlState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetControlState)(windows_core::Interface::as_raw(self), dwidctl, &mut result__).map(|| result__) } pub unsafe fn SetControlState(&self, dwidctl: u32, dwstate: CDCONTROLSTATEF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwstate)).ok() + (windows_core::Interface::vtable(self).SetControlState)(windows_core::Interface::as_raw(self), dwidctl, dwstate).ok() } pub unsafe fn GetEditBoxText(&self, dwidctl: u32) -> windows_core::Result<*mut u16> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEditBoxText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEditBoxText)(windows_core::Interface::as_raw(self), dwidctl, &mut result__).map(|| result__) } pub unsafe fn SetEditBoxText(&self, dwidctl: u32, psztext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEditBoxText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), psztext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetEditBoxText)(windows_core::Interface::as_raw(self), dwidctl, psztext.param().abi()).ok() } pub unsafe fn GetCheckButtonState(&self, dwidctl: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCheckButtonState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCheckButtonState)(windows_core::Interface::as_raw(self), dwidctl, &mut result__).map(|| result__) } pub unsafe fn SetCheckButtonState(&self, dwidctl: u32, bchecked: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCheckButtonState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), bchecked.into()).ok() + (windows_core::Interface::vtable(self).SetCheckButtonState)(windows_core::Interface::as_raw(self), dwidctl, bchecked.into()).ok() } pub unsafe fn AddControlItem(&self, dwidctl: u32, dwiditem: u32, pszlabel: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddControlItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).AddControlItem)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, pszlabel.param().abi()).ok() } pub unsafe fn RemoveControlItem(&self, dwidctl: u32, dwiditem: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveControlItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem)).ok() + (windows_core::Interface::vtable(self).RemoveControlItem)(windows_core::Interface::as_raw(self), dwidctl, dwiditem).ok() } pub unsafe fn RemoveAllControlItems(&self, dwidctl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveAllControlItems)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).RemoveAllControlItems)(windows_core::Interface::as_raw(self), dwidctl).ok() } pub unsafe fn GetControlItemState(&self, dwidctl: u32, dwiditem: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControlItemState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetControlItemState)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, &mut result__).map(|| result__) } pub unsafe fn SetControlItemState(&self, dwidctl: u32, dwiditem: u32, dwstate: CDCONTROLSTATEF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlItemState)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem), core::mem::transmute(dwstate)).ok() + (windows_core::Interface::vtable(self).SetControlItemState)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, dwstate).ok() } pub unsafe fn GetSelectedControlItem(&self, dwidctl: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSelectedControlItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSelectedControlItem)(windows_core::Interface::as_raw(self), dwidctl, &mut result__).map(|| result__) } pub unsafe fn SetSelectedControlItem(&self, dwidctl: u32, dwiditem: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelectedControlItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem)).ok() + (windows_core::Interface::vtable(self).SetSelectedControlItem)(windows_core::Interface::as_raw(self), dwidctl, dwiditem).ok() } pub unsafe fn StartVisualGroup(&self, dwidctl: u32, pszlabel: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartVisualGroup)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).StartVisualGroup)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.param().abi()).ok() } pub unsafe fn EndVisualGroup(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndVisualGroup)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn MakeProminent(&self, dwidctl: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MakeProminent)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl)).ok() + (windows_core::Interface::vtable(self).MakeProminent)(windows_core::Interface::as_raw(self), dwidctl).ok() } pub unsafe fn SetControlItemText(&self, dwidctl: u32, dwiditem: u32, pszlabel: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetControlItemText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwidctl), core::mem::transmute(dwiditem), pszlabel.param().abi()).ok() + (windows_core::Interface::vtable(self).SetControlItemText)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, pszlabel.param().abi()).ok() } } #[repr(C)] @@ -21445,10 +21445,10 @@ impl IFileOperation { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pfops.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn SetOperationFlags(&self, dwoperationflags: FILEOPERATION_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperationFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwoperationflags)).ok() + (windows_core::Interface::vtable(self).SetOperationFlags)(windows_core::Interface::as_raw(self), dwoperationflags).ok() } pub unsafe fn SetProgressMessage(&self, pszmessage: P0) -> windows_core::Result<()> where @@ -21470,7 +21470,7 @@ impl IFileOperation { (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproparray.param().abi()).ok() } pub unsafe fn SetOwnerWindow(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner)).ok() + (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), hwndowner).ok() } pub unsafe fn ApplyPropertiesToItem(&self, psiitem: P0) -> windows_core::Result<()> where @@ -21551,7 +21551,7 @@ impl IFileOperation { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).NewItem)(windows_core::Interface::as_raw(self), psidestinationfolder.param().abi(), core::mem::transmute(dwfileattributes), pszname.param().abi(), psztemplatename.param().abi(), pfopsitem.param().abi()).ok() + (windows_core::Interface::vtable(self).NewItem)(windows_core::Interface::as_raw(self), psidestinationfolder.param().abi(), dwfileattributes, pszname.param().abi(), psztemplatename.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn PerformOperations(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PerformOperations)(windows_core::Interface::as_raw(self)).ok() @@ -21746,7 +21746,7 @@ impl core::ops::Deref for IFileOperation2 { windows_core::imp::interface_hierarchy!(IFileOperation2, windows_core::IUnknown, IFileOperation); impl IFileOperation2 { pub unsafe fn SetOperationFlags2(&self, operationflags2: FILE_OPERATION_FLAGS2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperationFlags2)(windows_core::Interface::as_raw(self), core::mem::transmute(operationflags2)).ok() + (windows_core::Interface::vtable(self).SetOperationFlags2)(windows_core::Interface::as_raw(self), operationflags2).ok() } } #[repr(C)] @@ -21780,14 +21780,14 @@ impl IFileOperationProgressSink { (windows_core::Interface::vtable(self).StartOperations)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn FinishOperations(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FinishOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(hrresult)).ok() + (windows_core::Interface::vtable(self).FinishOperations)(windows_core::Interface::as_raw(self), hrresult).ok() } pub unsafe fn PreRenameItem(&self, dwflags: u32, psiitem: P1, psznewname: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreRenameItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), psznewname.param().abi()).ok() + (windows_core::Interface::vtable(self).PreRenameItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), psznewname.param().abi()).ok() } pub unsafe fn PostRenameItem(&self, dwflags: u32, psiitem: P1, psznewname: P2, hrrename: windows_core::HRESULT, psinewlycreated: P4) -> windows_core::Result<()> where @@ -21795,7 +21795,7 @@ impl IFileOperationProgressSink { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).PostRenameItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), psznewname.param().abi(), core::mem::transmute(hrrename), psinewlycreated.param().abi()).ok() + (windows_core::Interface::vtable(self).PostRenameItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), psznewname.param().abi(), hrrename, psinewlycreated.param().abi()).ok() } pub unsafe fn PreMoveItem(&self, dwflags: u32, psiitem: P1, psidestinationfolder: P2, psznewname: P3) -> windows_core::Result<()> where @@ -21803,7 +21803,7 @@ impl IFileOperationProgressSink { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PreMoveItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi()).ok() + (windows_core::Interface::vtable(self).PreMoveItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi()).ok() } pub unsafe fn PostMoveItem(&self, dwflags: u32, psiitem: P1, psidestinationfolder: P2, psznewname: P3, hrmove: windows_core::HRESULT, psinewlycreated: P5) -> windows_core::Result<()> where @@ -21812,7 +21812,7 @@ impl IFileOperationProgressSink { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).PostMoveItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi(), core::mem::transmute(hrmove), psinewlycreated.param().abi()).ok() + (windows_core::Interface::vtable(self).PostMoveItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi(), hrmove, psinewlycreated.param().abi()).ok() } pub unsafe fn PreCopyItem(&self, dwflags: u32, psiitem: P1, psidestinationfolder: P2, psznewname: P3) -> windows_core::Result<()> where @@ -21820,7 +21820,7 @@ impl IFileOperationProgressSink { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PreCopyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi()).ok() + (windows_core::Interface::vtable(self).PreCopyItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi()).ok() } pub unsafe fn PostCopyItem(&self, dwflags: u32, psiitem: P1, psidestinationfolder: P2, psznewname: P3, hrcopy: windows_core::HRESULT, psinewlycreated: P5) -> windows_core::Result<()> where @@ -21829,27 +21829,27 @@ impl IFileOperationProgressSink { P3: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).PostCopyItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi(), core::mem::transmute(hrcopy), psinewlycreated.param().abi()).ok() + (windows_core::Interface::vtable(self).PostCopyItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi(), hrcopy, psinewlycreated.param().abi()).ok() } pub unsafe fn PreDeleteItem(&self, dwflags: u32, psiitem: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PreDeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi()).ok() + (windows_core::Interface::vtable(self).PreDeleteItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi()).ok() } pub unsafe fn PostDeleteItem(&self, dwflags: u32, psiitem: P1, hrdelete: windows_core::HRESULT, psinewlycreated: P3) -> windows_core::Result<()> where P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PostDeleteItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psiitem.param().abi(), core::mem::transmute(hrdelete), psinewlycreated.param().abi()).ok() + (windows_core::Interface::vtable(self).PostDeleteItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.param().abi(), hrdelete, psinewlycreated.param().abi()).ok() } pub unsafe fn PreNewItem(&self, dwflags: u32, psidestinationfolder: P1, psznewname: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreNewItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psidestinationfolder.param().abi(), psznewname.param().abi()).ok() + (windows_core::Interface::vtable(self).PreNewItem)(windows_core::Interface::as_raw(self), dwflags, psidestinationfolder.param().abi(), psznewname.param().abi()).ok() } pub unsafe fn PostNewItem(&self, dwflags: u32, psidestinationfolder: P1, psznewname: P2, psztemplatename: P3, dwfileattributes: u32, hrnew: windows_core::HRESULT, psinewitem: P6) -> windows_core::Result<()> where @@ -21858,10 +21858,10 @@ impl IFileOperationProgressSink { P3: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).PostNewItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), psidestinationfolder.param().abi(), psznewname.param().abi(), psztemplatename.param().abi(), core::mem::transmute(dwfileattributes), core::mem::transmute(hrnew), psinewitem.param().abi()).ok() + (windows_core::Interface::vtable(self).PostNewItem)(windows_core::Interface::as_raw(self), dwflags, psidestinationfolder.param().abi(), psznewname.param().abi(), psztemplatename.param().abi(), dwfileattributes, hrnew, psinewitem.param().abi()).ok() } pub unsafe fn UpdateProgress(&self, iworktotal: u32, iworksofar: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(iworktotal), core::mem::transmute(iworksofar)).ok() + (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), iworktotal, iworksofar).ok() } pub unsafe fn ResetTimer(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetTimer)(windows_core::Interface::as_raw(self)).ok() @@ -22043,7 +22043,7 @@ impl IFileSaveDialog { P1: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self), psi.param().abi(), pstore.param().abi(), core::mem::transmute(hwnd), psink.param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self), psi.param().abi(), pstore.param().abi(), hwnd, psink.param().abi()).ok() } } #[repr(C)] @@ -22137,7 +22137,7 @@ impl IFileSearchBand { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetSearchParameters(&self, pbstrsearchid: *const windows_core::BSTR, bnavtoresults: super::super::Foundation::VARIANT_BOOL, pvarscope: *const super::super::System::Variant::VARIANT, pvarqueryfile: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSearchParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsearchid), core::mem::transmute(bnavtoresults), core::mem::transmute(pvarscope), core::mem::transmute(pvarqueryfile)).ok() + (windows_core::Interface::vtable(self).SetSearchParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsearchid), bnavtoresults, core::mem::transmute(pvarscope), core::mem::transmute(pvarqueryfile)).ok() } pub unsafe fn SearchID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22253,7 +22253,7 @@ impl IFileSyncMergeHandler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowResolveConflictUIAsync)(windows_core::Interface::as_raw(self), localfilepath.param().abi(), core::mem::transmute(monitortodisplayon)).ok() + (windows_core::Interface::vtable(self).ShowResolveConflictUIAsync)(windows_core::Interface::as_raw(self), localfilepath.param().abi(), monitortodisplayon).ok() } } #[repr(C)] @@ -22304,7 +22304,7 @@ windows_core::imp::interface_hierarchy!(IFileSystemBindData, windows_core::IUnkn impl IFileSystemBindData { #[cfg(feature = "Win32_Storage_FileSystem")] pub unsafe fn SetFindData(&self, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFindData)(windows_core::Interface::as_raw(self), core::mem::transmute(pfd)).ok() + (windows_core::Interface::vtable(self).SetFindData)(windows_core::Interface::as_raw(self), pfd).ok() } #[cfg(feature = "Win32_Storage_FileSystem")] pub unsafe fn GetFindData(&self, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::Result<()> { @@ -22361,14 +22361,14 @@ impl core::ops::Deref for IFileSystemBindData2 { windows_core::imp::interface_hierarchy!(IFileSystemBindData2, windows_core::IUnknown, IFileSystemBindData); impl IFileSystemBindData2 { pub unsafe fn SetFileID(&self, lifileid: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFileID)(windows_core::Interface::as_raw(self), core::mem::transmute(lifileid)).ok() + (windows_core::Interface::vtable(self).SetFileID)(windows_core::Interface::as_raw(self), lifileid).ok() } pub unsafe fn GetFileID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFileID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetJunctionCLSID(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetJunctionCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).SetJunctionCLSID)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn GetJunctionCLSID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22504,14 +22504,14 @@ impl IFolderFilter { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShouldShow)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidlfolder), core::mem::transmute(pidlitem)).ok() + (windows_core::Interface::vtable(self).ShouldShow)(windows_core::Interface::as_raw(self), psf.param().abi(), pidlfolder, pidlitem).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetEnumFlags(&self, psf: P0, pidlfolder: *const Common::ITEMIDLIST, phwnd: *mut super::super::Foundation::HWND, pgrfflags: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEnumFlags)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidlfolder), core::mem::transmute(phwnd), core::mem::transmute(pgrfflags)).ok() + (windows_core::Interface::vtable(self).GetEnumFlags)(windows_core::Interface::as_raw(self), psf.param().abi(), pidlfolder, core::mem::transmute(phwnd), core::mem::transmute(pgrfflags)).ok() } } #[repr(C)] @@ -22593,7 +22593,7 @@ impl IFolderView { (windows_core::Interface::vtable(self).GetCurrentViewMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentViewMode(&self, viewmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentViewMode)(windows_core::Interface::as_raw(self), core::mem::transmute(viewmode)).ok() + (windows_core::Interface::vtable(self).SetCurrentViewMode)(windows_core::Interface::as_raw(self), viewmode).ok() } pub unsafe fn GetFolder(&self) -> windows_core::Result where @@ -22605,7 +22605,7 @@ impl IFolderView { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Item(&self, iitemindex: i32) -> windows_core::Result<*mut Common::ITEMIDLIST> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(iitemindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), iitemindex, &mut result__).map(|| result__) } pub unsafe fn ItemCount(&self, uflags: _SVGIO) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22629,7 +22629,7 @@ impl IFolderView { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemPosition(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemPosition)(windows_core::Interface::as_raw(self), pidl, &mut result__).map(|| result__) } pub unsafe fn GetSpacing(&self, ppt: *mut super::super::Foundation::POINT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSpacing)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt)).ok() @@ -22642,11 +22642,11 @@ impl IFolderView { (windows_core::Interface::vtable(self).GetAutoArrange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SelectItem(&self, iitem: i32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectItem)(windows_core::Interface::as_raw(self), core::mem::transmute(iitem), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SelectItem)(windows_core::Interface::as_raw(self), iitem, dwflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectAndPositionItems(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: Option<*const super::super::Foundation::POINT>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAndPositionItems)(windows_core::Interface::as_raw(self), core::mem::transmute(cidl), core::mem::transmute(apidl), core::mem::transmute(apt.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SelectAndPositionItems)(windows_core::Interface::as_raw(self), cidl, apidl, core::mem::transmute(apt.unwrap_or(core::mem::zeroed())), dwflags).ok() } } #[repr(C)] @@ -22828,42 +22828,42 @@ impl core::ops::Deref for IFolderView2 { windows_core::imp::interface_hierarchy!(IFolderView2, windows_core::IUnknown, IFolderView); impl IFolderView2 { pub unsafe fn SetGroupBy(&self, key: *const super::super::Foundation::PROPERTYKEY, fascending: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), core::mem::transmute(key), fascending.into()).ok() + (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), key, fascending.into()).ok() } pub unsafe fn GetGroupBy(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGroupBy)(windows_core::Interface::as_raw(self), core::mem::transmute(pkey), core::mem::transmute(pfascending.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetViewProperty(&self, pidl: *const Common::ITEMIDLIST, propkey: *const super::super::Foundation::PROPERTYKEY, propvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(propkey), core::mem::transmute(propvar)).ok() + (windows_core::Interface::vtable(self).SetViewProperty)(windows_core::Interface::as_raw(self), pidl, propkey, core::mem::transmute(propvar)).ok() } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetViewProperty(&self, pidl: *const Common::ITEMIDLIST, propkey: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetViewProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(propkey), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetViewProperty)(windows_core::Interface::as_raw(self), pidl, propkey, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetTileViewProperties(&self, pidl: *const Common::ITEMIDLIST, pszproplist: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTileViewProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), pszproplist.param().abi()).ok() + (windows_core::Interface::vtable(self).SetTileViewProperties)(windows_core::Interface::as_raw(self), pidl, pszproplist.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetExtendedTileViewProperties(&self, pidl: *const Common::ITEMIDLIST, pszproplist: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtendedTileViewProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), pszproplist.param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtendedTileViewProperties)(windows_core::Interface::as_raw(self), pidl, pszproplist.param().abi()).ok() } pub unsafe fn SetText(&self, itype: FVTEXTTYPE, pwsztext: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(itype), pwsztext.param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), itype, pwsztext.param().abi()).ok() } pub unsafe fn SetCurrentFolderFlags(&self, dwmask: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentFolderFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmask), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetCurrentFolderFlags)(windows_core::Interface::as_raw(self), dwmask, dwflags).ok() } pub unsafe fn GetCurrentFolderFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22884,15 +22884,15 @@ impl IFolderView2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(iitem), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), iitem, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetVisibleItem(&self, istart: i32, fprevious: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVisibleItem)(windows_core::Interface::as_raw(self), core::mem::transmute(istart), fprevious.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVisibleItem)(windows_core::Interface::as_raw(self), istart, fprevious.into(), &mut result__).map(|| result__) } pub unsafe fn GetSelectedItem(&self, istart: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSelectedItem)(windows_core::Interface::as_raw(self), core::mem::transmute(istart), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSelectedItem)(windows_core::Interface::as_raw(self), istart, &mut result__).map(|| result__) } pub unsafe fn GetSelection(&self, fnoneimpliesfolder: bool) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -22901,7 +22901,7 @@ impl IFolderView2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetSelectionState(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSelectionState)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSelectionState)(windows_core::Interface::as_raw(self), pidl, &mut result__).map(|| result__) } pub unsafe fn InvokeVerbOnSelection(&self, pszverb: P0) -> windows_core::Result<()> where @@ -22910,13 +22910,13 @@ impl IFolderView2 { (windows_core::Interface::vtable(self).InvokeVerbOnSelection)(windows_core::Interface::as_raw(self), pszverb.param().abi()).ok() } pub unsafe fn SetViewModeAndIconSize(&self, uviewmode: FOLDERVIEWMODE, iimagesize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewModeAndIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(uviewmode), core::mem::transmute(iimagesize)).ok() + (windows_core::Interface::vtable(self).SetViewModeAndIconSize)(windows_core::Interface::as_raw(self), uviewmode, iimagesize).ok() } pub unsafe fn GetViewModeAndIconSize(&self, puviewmode: *mut FOLDERVIEWMODE, piimagesize: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetViewModeAndIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(puviewmode), core::mem::transmute(piimagesize)).ok() } pub unsafe fn SetGroupSubsetCount(&self, cvisiblerows: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupSubsetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(cvisiblerows)).ok() + (windows_core::Interface::vtable(self).SetGroupSubsetCount)(windows_core::Interface::as_raw(self), cvisiblerows).ok() } pub unsafe fn GetGroupSubsetCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23198,7 +23198,7 @@ impl IFolderViewHost { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), pdo.param().abi(), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent, pdo.param().abi(), prc).ok() } } #[repr(C)] @@ -23277,7 +23277,7 @@ windows_core::imp::define_interface!(IFolderViewOptions, IFolderViewOptions_Vtbl windows_core::imp::interface_hierarchy!(IFolderViewOptions, windows_core::IUnknown); impl IFolderViewOptions { pub unsafe fn SetFolderViewOptions(&self, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFolderViewOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(fvomask), core::mem::transmute(fvoflags)).ok() + (windows_core::Interface::vtable(self).SetFolderViewOptions)(windows_core::Interface::as_raw(self), fvomask, fvoflags).ok() } pub unsafe fn GetFolderViewOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23453,10 +23453,10 @@ impl IFrameworkInputPane { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseWithHWND)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), phandler.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdviseWithHWND)(windows_core::Interface::as_raw(self), hwnd, phandler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn Location(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -23530,7 +23530,7 @@ windows_core::imp::define_interface!(IFrameworkInputPaneHandler, IFrameworkInput windows_core::imp::interface_hierarchy!(IFrameworkInputPaneHandler, windows_core::IUnknown); impl IFrameworkInputPaneHandler { pub unsafe fn Showing(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Showing)(windows_core::Interface::as_raw(self), core::mem::transmute(prcinputpanescreenlocation), fensurefocusedelementinview.into()).ok() + (windows_core::Interface::vtable(self).Showing)(windows_core::Interface::as_raw(self), prcinputpanescreenlocation, fensurefocusedelementinview.into()).ok() } pub unsafe fn Hiding(&self, fensurefocusedelementinview: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Hiding)(windows_core::Interface::as_raw(self), fensurefocusedelementinview.into()).ok() @@ -23679,7 +23679,7 @@ impl IHWEventHandler2 { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleEventWithHWND)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi(), core::mem::transmute(hwndowner)).ok() + (windows_core::Interface::vtable(self).HandleEventWithHWND)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi(), hwndowner).ok() } } #[repr(C)] @@ -23714,7 +23714,7 @@ impl IHandlerActivationHost { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeforeCoCreateInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidhandler), itemsbeingactivated.param().abi(), handlerinfo.param().abi()).ok() + (windows_core::Interface::vtable(self).BeforeCoCreateInstance)(windows_core::Interface::as_raw(self), clsidhandler, itemsbeingactivated.param().abi(), handlerinfo.param().abi()).ok() } pub unsafe fn BeforeCreateProcess(&self, applicationpath: P0, commandline: P1, handlerinfo: P2) -> windows_core::Result<()> where @@ -23876,7 +23876,7 @@ impl IHlink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHlinkSite)(windows_core::Interface::as_raw(self), pihlsite.param().abi(), core::mem::transmute(dwsitedata)).ok() + (windows_core::Interface::vtable(self).SetHlinkSite)(windows_core::Interface::as_raw(self), pihlsite.param().abi(), dwsitedata).ok() } pub unsafe fn GetHlinkSite(&self, ppihlsite: *mut Option, pdwsitedata: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetHlinkSite)(windows_core::Interface::as_raw(self), core::mem::transmute(ppihlsite), core::mem::transmute(pdwsitedata)).ok() @@ -23887,21 +23887,21 @@ impl IHlink { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMonikerReference)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlsetf), pimktarget.param().abi(), pwzlocation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetMonikerReference)(windows_core::Interface::as_raw(self), grfhlsetf, pimktarget.param().abi(), pwzlocation.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMonikerReference(&self, dwwhichref: u32, ppimktarget: Option<*mut Option>, ppwzlocation: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMonikerReference)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwhichref), core::mem::transmute(ppimktarget.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwzlocation.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetMonikerReference)(windows_core::Interface::as_raw(self), dwwhichref, core::mem::transmute(ppimktarget.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwzlocation.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetStringReference(&self, grfhlsetf: u32, pwztarget: P1, pwzlocation: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringReference)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlsetf), pwztarget.param().abi(), pwzlocation.param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringReference)(windows_core::Interface::as_raw(self), grfhlsetf, pwztarget.param().abi(), pwzlocation.param().abi()).ok() } pub unsafe fn GetStringReference(&self, dwwhichref: u32, ppwztarget: Option<*mut windows_core::PWSTR>, ppwzlocation: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetStringReference)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwhichref), core::mem::transmute(ppwztarget.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwzlocation.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetStringReference)(windows_core::Interface::as_raw(self), dwwhichref, core::mem::transmute(ppwztarget.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppwzlocation.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetFriendlyName(&self, pwzfriendlyname: P0) -> windows_core::Result<()> where @@ -23911,7 +23911,7 @@ impl IHlink { } pub unsafe fn GetFriendlyName(&self, grfhlfnamef: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFriendlyName)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlfnamef), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFriendlyName)(windows_core::Interface::as_raw(self), grfhlfnamef, &mut result__).map(|| result__) } pub unsafe fn SetTargetFrameName(&self, pwztargetframename: P0) -> windows_core::Result<()> where @@ -23934,7 +23934,7 @@ impl IHlink { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pibc.param().abi(), pibsc.param().abi(), pihlbc.param().abi()).ok() + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), grfhlnf, pibc.param().abi(), pibsc.param().abi(), pihlbc.param().abi()).ok() } pub unsafe fn SetAdditionalParams(&self, pwzadditionalparams: P0) -> windows_core::Result<()> where @@ -24108,7 +24108,7 @@ impl IHlinkBrowseContext { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved), piunk.param().abi(), pimk.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), reserved, piunk.param().abi(), pimk.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetObject(&self, pimk: P0, fbindifrootregistered: bool) -> windows_core::Result @@ -24119,10 +24119,10 @@ impl IHlinkBrowseContext { (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pimk.param().abi(), fbindifrootregistered.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Revoke(&self, dwregister: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), core::mem::transmute(dwregister)).ok() + (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), dwregister).ok() } pub unsafe fn SetBrowseWindowInfo(&self, phlbwi: *const HLBWINFO) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBrowseWindowInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(phlbwi)).ok() + (windows_core::Interface::vtable(self).SetBrowseWindowInfo)(windows_core::Interface::as_raw(self), phlbwi).ok() } pub unsafe fn GetBrowseWindowInfo(&self, phlbwi: *mut HLBWINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBrowseWindowInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(phlbwi)).ok() @@ -24144,7 +24144,7 @@ impl IHlinkBrowseContext { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnNavigateHlink)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnNavigateHlink)(windows_core::Interface::as_raw(self), grfhlnf, pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateHlink(&self, uhlid: u32, pimktarget: P1, pwzlocation: P2, pwzfriendlyname: P3) -> windows_core::Result<()> @@ -24153,31 +24153,31 @@ impl IHlinkBrowseContext { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateHlink)(windows_core::Interface::as_raw(self), core::mem::transmute(uhlid), pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateHlink)(windows_core::Interface::as_raw(self), uhlid, pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() } pub unsafe fn EnumNavigationStack(&self, dwreserved: u32, grfhlfnamef: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumNavigationStack)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), core::mem::transmute(grfhlfnamef), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumNavigationStack)(windows_core::Interface::as_raw(self), dwreserved, grfhlfnamef, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryHlink(&self, grfhlqf: u32, uhlid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryHlink)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlqf), core::mem::transmute(uhlid)).ok() + (windows_core::Interface::vtable(self).QueryHlink)(windows_core::Interface::as_raw(self), grfhlqf, uhlid).ok() } pub unsafe fn GetHlink(&self, uhlid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHlink)(windows_core::Interface::as_raw(self), core::mem::transmute(uhlid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetHlink)(windows_core::Interface::as_raw(self), uhlid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCurrentHlink(&self, uhlid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentHlink)(windows_core::Interface::as_raw(self), core::mem::transmute(uhlid)).ok() + (windows_core::Interface::vtable(self).SetCurrentHlink)(windows_core::Interface::as_raw(self), uhlid).ok() } pub unsafe fn Clone(&self, piunkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), piunkouter.param().abi(), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), piunkouter.param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Close(&self, reserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved)).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), reserved).ok() } } #[repr(C)] @@ -24369,7 +24369,7 @@ impl IHlinkFrame { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pbc.param().abi(), pibsc.param().abi(), pihlnavigate.param().abi()).ok() + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), grfhlnf, pbc.param().abi(), pibsc.param().abi(), pihlnavigate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnNavigate(&self, grfhlnf: u32, pimktarget: P1, pwzlocation: P2, pwzfriendlyname: P3, dwreserved: u32) -> windows_core::Result<()> @@ -24378,7 +24378,7 @@ impl IHlinkFrame { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNavigate)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).OnNavigate)(windows_core::Interface::as_raw(self), grfhlnf, pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), dwreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateHlink(&self, uhlid: u32, pimktarget: P1, pwzlocation: P2, pwzfriendlyname: P3) -> windows_core::Result<()> @@ -24387,7 +24387,7 @@ impl IHlinkFrame { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateHlink)(windows_core::Interface::as_raw(self), core::mem::transmute(uhlid), pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateHlink)(windows_core::Interface::as_raw(self), uhlid, pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() } } #[repr(C)] @@ -24465,21 +24465,21 @@ windows_core::imp::interface_hierarchy!(IHlinkSite, windows_core::IUnknown); impl IHlinkSite { pub unsafe fn QueryService(&self, dwsitedata: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryService)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsitedata), core::mem::transmute(guidservice), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryService)(windows_core::Interface::as_raw(self), dwsitedata, guidservice, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMoniker(&self, dwsitedata: u32, dwassign: u32, dwwhich: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMoniker)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsitedata), core::mem::transmute(dwassign), core::mem::transmute(dwwhich), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMoniker)(windows_core::Interface::as_raw(self), dwsitedata, dwassign, dwwhich, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReadyToNavigate(&self, dwsitedata: u32, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadyToNavigate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsitedata), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).ReadyToNavigate)(windows_core::Interface::as_raw(self), dwsitedata, dwreserved).ok() } pub unsafe fn OnNavigationComplete(&self, dwsitedata: u32, dwreserved: u32, hrerror: windows_core::HRESULT, pwzerror: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNavigationComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsitedata), core::mem::transmute(dwreserved), core::mem::transmute(hrerror), pwzerror.param().abi()).ok() + (windows_core::Interface::vtable(self).OnNavigationComplete)(windows_core::Interface::as_raw(self), dwsitedata, dwreserved, hrerror, pwzerror.param().abi()).ok() } } #[repr(C)] @@ -24562,7 +24562,7 @@ impl IHlinkTarget { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pwzjumplocation.param().abi()).ok() + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), grfhlnf, pwzjumplocation.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMoniker(&self, pwzlocation: P0, dwassign: u32) -> windows_core::Result @@ -24570,7 +24570,7 @@ impl IHlinkTarget { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMoniker)(windows_core::Interface::as_raw(self), pwzlocation.param().abi(), core::mem::transmute(dwassign), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMoniker)(windows_core::Interface::as_raw(self), pwzlocation.param().abi(), dwassign, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFriendlyName(&self, pwzlocation: P0) -> windows_core::Result where @@ -24665,7 +24665,7 @@ impl IHomeGroup { } pub unsafe fn ShowSharingWizard(&self, owner: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowSharingWizard)(windows_core::Interface::as_raw(self), core::mem::transmute(owner), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShowSharingWizard)(windows_core::Interface::as_raw(self), owner, &mut result__).map(|| result__) } } #[repr(C)] @@ -24715,7 +24715,7 @@ windows_core::imp::define_interface!(IIOCancelInformation, IIOCancelInformation_ windows_core::imp::interface_hierarchy!(IIOCancelInformation, windows_core::IUnknown); impl IIOCancelInformation { pub unsafe fn SetCancelInformation(&self, dwthreadid: u32, umsgcancel: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCancelInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(umsgcancel)).ok() + (windows_core::Interface::vtable(self).SetCancelInformation)(windows_core::Interface::as_raw(self), dwthreadid, umsgcancel).ok() } pub unsafe fn GetCancelInformation(&self, pdwthreadid: Option<*mut u32>, pumsgcancel: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCancelInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwthreadid.unwrap_or(core::mem::zeroed())), core::mem::transmute(pumsgcancel.unwrap_or(core::mem::zeroed()))).ok() @@ -24787,7 +24787,7 @@ impl IImageRecompress { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RecompressImage)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(iquality), pstg.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RecompressImage)(windows_core::Interface::as_raw(self), psi.param().abi(), cx, cy, iquality, pstg.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -24871,7 +24871,7 @@ impl IInitializeNetworkFolder { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(pidltarget), core::mem::transmute(udisplaytype), pszresname.param().abi(), pszprovider.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pidl, pidltarget, udisplaytype, pszresname.param().abi(), pszprovider.param().abi()).ok() } } #[repr(C)] @@ -24974,7 +24974,7 @@ impl IInitializeWithItem { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(grfmode)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psi.param().abi(), grfmode).ok() } } #[repr(C)] @@ -25040,7 +25040,7 @@ windows_core::imp::define_interface!(IInitializeWithWindow, IInitializeWithWindo windows_core::imp::interface_hierarchy!(IInitializeWithWindow, windows_core::IUnknown); impl IInitializeWithWindow { pub unsafe fn Initialize(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwnd).ok() } } #[repr(C)] @@ -25069,14 +25069,14 @@ windows_core::imp::interface_hierarchy!(IInputObject, windows_core::IUnknown); impl IInputObject { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn UIActivateIO(&self, factivate: bool, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UIActivateIO)(windows_core::Interface::as_raw(self), factivate.into(), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).UIActivateIO)(windows_core::Interface::as_raw(self), factivate.into(), pmsg).ok() } pub unsafe fn HasFocusIO(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HasFocusIO)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAcceleratorIO(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAcceleratorIO)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).TranslateAcceleratorIO)(windows_core::Interface::as_raw(self), pmsg).ok() } } #[repr(C)] @@ -25137,7 +25137,7 @@ windows_core::imp::interface_hierarchy!(IInputObject2, windows_core::IUnknown, I impl IInputObject2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAcceleratorGlobal(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAcceleratorGlobal)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).TranslateAcceleratorGlobal)(windows_core::Interface::as_raw(self), pmsg).ok() } } #[repr(C)] @@ -25298,7 +25298,7 @@ windows_core::imp::interface_hierarchy!(IInsertItem, windows_core::IUnknown); impl IInsertItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn InsertItem(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), pidl).ok() } } #[repr(C)] @@ -25395,22 +25395,22 @@ impl IKnownFolder { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetShellItem)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetShellItem)(windows_core::Interface::as_raw(self), dwflags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPath(&self, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn SetPath(&self, dwflags: u32, pszpath: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pszpath.param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), dwflags, pszpath.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self, dwflags: u32) -> windows_core::Result<*mut Common::ITEMIDLIST> { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIDList)(windows_core::Interface::as_raw(self), dwflags, &mut result__).map(|| result__) } pub unsafe fn GetFolderType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -25551,18 +25551,18 @@ windows_core::imp::interface_hierarchy!(IKnownFolderManager, windows_core::IUnkn impl IKnownFolderManager { pub unsafe fn FolderIdFromCsidl(&self, ncsidl: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FolderIdFromCsidl)(windows_core::Interface::as_raw(self), core::mem::transmute(ncsidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FolderIdFromCsidl)(windows_core::Interface::as_raw(self), ncsidl, &mut result__).map(|| result__) } pub unsafe fn FolderIdToCsidl(&self, rfid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FolderIdToCsidl)(windows_core::Interface::as_raw(self), core::mem::transmute(rfid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FolderIdToCsidl)(windows_core::Interface::as_raw(self), rfid, &mut result__).map(|| result__) } pub unsafe fn GetFolderIds(&self, ppkfid: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFolderIds)(windows_core::Interface::as_raw(self), core::mem::transmute(ppkfid), core::mem::transmute(pcount)).ok() } pub unsafe fn GetFolder(&self, rfid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(rfid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), rfid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFolderByName(&self, pszcanonicalname: P0) -> windows_core::Result where @@ -25572,28 +25572,28 @@ impl IKnownFolderManager { (windows_core::Interface::vtable(self).GetFolderByName)(windows_core::Interface::as_raw(self), pszcanonicalname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterFolder(&self, rfid: *const windows_core::GUID, pkfd: *const KNOWNFOLDER_DEFINITION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(rfid), core::mem::transmute(pkfd)).ok() + (windows_core::Interface::vtable(self).RegisterFolder)(windows_core::Interface::as_raw(self), rfid, pkfd).ok() } pub unsafe fn UnregisterFolder(&self, rfid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(rfid)).ok() + (windows_core::Interface::vtable(self).UnregisterFolder)(windows_core::Interface::as_raw(self), rfid).ok() } pub unsafe fn FindFolderFromPath(&self, pszpath: P0, mode: FFFP_MODE) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFolderFromPath)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(mode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFolderFromPath)(windows_core::Interface::as_raw(self), pszpath.param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FindFolderFromIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFolderFromIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFolderFromIDList)(windows_core::Interface::as_raw(self), pidl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Redirect(&self, rfid: *const windows_core::GUID, hwnd: Option, flags: u32, psztargetpath: P3, pexclusion: Option<&[windows_core::GUID]>, ppszerror: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), core::mem::transmute(rfid), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), psztargetpath.param().abi(), pexclusion.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pexclusion.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppszerror.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), rfid, core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), flags, psztargetpath.param().abi(), pexclusion.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pexclusion.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ppszerror.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -25897,10 +25897,10 @@ windows_core::imp::define_interface!(ILaunchUIContext, ILaunchUIContext_Vtbl, 0x windows_core::imp::interface_hierarchy!(ILaunchUIContext, windows_core::IUnknown); impl ILaunchUIContext { pub unsafe fn SetAssociatedWindow(&self, value: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAssociatedWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAssociatedWindow)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn SetTabGroupingPreference(&self, value: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTabGroupingPreference)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetTabGroupingPreference)(windows_core::Interface::as_raw(self), value).ok() } } #[repr(C)] @@ -25973,7 +25973,7 @@ windows_core::imp::interface_hierarchy!(IMenuBand, windows_core::IUnknown); impl IMenuBand { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn IsMenuMessage(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsMenuMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).IsMenuMessage)(windows_core::Interface::as_raw(self), pmsg).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateMenuMessage(&self, pmsg: *mut super::WindowsAndMessaging::MSG, plret: *mut super::super::Foundation::LRESULT) -> windows_core::Result<()> { @@ -26034,10 +26034,10 @@ windows_core::imp::interface_hierarchy!(IMenuPopup, windows_core::IUnknown, supe #[cfg(feature = "Win32_System_Ole")] impl IMenuPopup { pub unsafe fn Popup(&self, ppt: *const super::super::Foundation::POINTL, prcexclude: Option<*const super::super::Foundation::RECTL>, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Popup)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt), core::mem::transmute(prcexclude.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Popup)(windows_core::Interface::as_raw(self), ppt, core::mem::transmute(prcexclude.unwrap_or(core::mem::zeroed())), dwflags).ok() } pub unsafe fn OnSelect(&self, dwselecttype: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwselecttype)).ok() + (windows_core::Interface::vtable(self).OnSelect)(windows_core::Interface::as_raw(self), dwselecttype).ok() } pub unsafe fn SetSubMenu(&self, pmp: P0, fset: bool) -> windows_core::Result<()> where @@ -26203,7 +26203,7 @@ windows_core::imp::define_interface!(INameSpaceTreeControl, INameSpaceTreeContro windows_core::imp::interface_hierarchy!(INameSpaceTreeControl, windows_core::IUnknown); impl INameSpaceTreeControl { pub unsafe fn Initialize(&self, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(prc), core::mem::transmute(nsctsflags)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent, prc, nsctsflags).ok() } pub unsafe fn TreeAdvise(&self, punk: P0) -> windows_core::Result where @@ -26213,21 +26213,21 @@ impl INameSpaceTreeControl { (windows_core::Interface::vtable(self).TreeAdvise)(windows_core::Interface::as_raw(self), punk.param().abi(), &mut result__).map(|| result__) } pub unsafe fn TreeUnadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TreeUnadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).TreeUnadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn AppendRoot(&self, psiroot: P0, grfenumflags: u32, grfrootstyle: u32, pif: P3) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendRoot)(windows_core::Interface::as_raw(self), psiroot.param().abi(), core::mem::transmute(grfenumflags), core::mem::transmute(grfrootstyle), pif.param().abi()).ok() + (windows_core::Interface::vtable(self).AppendRoot)(windows_core::Interface::as_raw(self), psiroot.param().abi(), grfenumflags, grfrootstyle, pif.param().abi()).ok() } pub unsafe fn InsertRoot(&self, iindex: i32, psiroot: P1, grfenumflags: u32, grfrootstyle: u32, pif: P4) -> windows_core::Result<()> where P1: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertRoot)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), psiroot.param().abi(), core::mem::transmute(grfenumflags), core::mem::transmute(grfrootstyle), pif.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertRoot)(windows_core::Interface::as_raw(self), iindex, psiroot.param().abi(), grfenumflags, grfrootstyle, pif.param().abi()).ok() } pub unsafe fn RemoveRoot(&self, psiroot: P0) -> windows_core::Result<()> where @@ -26246,14 +26246,14 @@ impl INameSpaceTreeControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItemState)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(nstcismask), core::mem::transmute(nstcisflags)).ok() + (windows_core::Interface::vtable(self).SetItemState)(windows_core::Interface::as_raw(self), psi.param().abi(), nstcismask, nstcisflags).ok() } pub unsafe fn GetItemState(&self, psi: P0, nstcismask: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemState)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(nstcismask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemState)(windows_core::Interface::as_raw(self), psi.param().abi(), nstcismask, &mut result__).map(|| result__) } pub unsafe fn GetSelectedItems(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -26270,7 +26270,7 @@ impl INameSpaceTreeControl { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItemCustomState)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(istatenumber)).ok() + (windows_core::Interface::vtable(self).SetItemCustomState)(windows_core::Interface::as_raw(self), psi.param().abi(), istatenumber).ok() } pub unsafe fn EnsureItemVisible(&self, psi: P0) -> windows_core::Result<()> where @@ -26289,11 +26289,11 @@ impl INameSpaceTreeControl { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextItem)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(nstcgi), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextItem)(windows_core::Interface::as_raw(self), psi.param().abi(), nstcgi, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn HitTest(&self, ppt: *const super::super::Foundation::POINT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTest)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).HitTest)(windows_core::Interface::as_raw(self), ppt, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetItemRect(&self, psi: P0) -> windows_core::Result where @@ -26514,18 +26514,18 @@ impl core::ops::Deref for INameSpaceTreeControl2 { windows_core::imp::interface_hierarchy!(INameSpaceTreeControl2, windows_core::IUnknown, INameSpaceTreeControl); impl INameSpaceTreeControl2 { pub unsafe fn SetControlStyle(&self, nstcsmask: u32, nstcsstyle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(nstcsmask), core::mem::transmute(nstcsstyle)).ok() + (windows_core::Interface::vtable(self).SetControlStyle)(windows_core::Interface::as_raw(self), nstcsmask, nstcsstyle).ok() } pub unsafe fn GetControlStyle(&self, nstcsmask: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControlStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(nstcsmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetControlStyle)(windows_core::Interface::as_raw(self), nstcsmask, &mut result__).map(|| result__) } pub unsafe fn SetControlStyle2(&self, nstcsmask: NSTCSTYLE2, nstcsstyle: NSTCSTYLE2) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetControlStyle2)(windows_core::Interface::as_raw(self), core::mem::transmute(nstcsmask), core::mem::transmute(nstcsstyle)).ok() + (windows_core::Interface::vtable(self).SetControlStyle2)(windows_core::Interface::as_raw(self), nstcsmask, nstcsstyle).ok() } pub unsafe fn GetControlStyle2(&self, nstcsmask: NSTCSTYLE2) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControlStyle2)(windows_core::Interface::as_raw(self), core::mem::transmute(nstcsmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetControlStyle2)(windows_core::Interface::as_raw(self), nstcsmask, &mut result__).map(|| result__) } } #[repr(C)] @@ -26591,19 +26591,19 @@ impl INameSpaceTreeControlCustomDraw { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn PrePaint(&self, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).PrePaint)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(prc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PrePaint)(windows_core::Interface::as_raw(self), hdc, prc, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn PostPaint(&self, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PostPaint)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).PostPaint)(windows_core::Interface::as_raw(self), hdc, prc).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).ItemPrePaint)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(prc), core::mem::transmute(pnstccditem), core::mem::transmute(pclrtext), core::mem::transmute(pclrtextbk), core::mem::transmute(plres)).ok() + (windows_core::Interface::vtable(self).ItemPrePaint)(windows_core::Interface::as_raw(self), hdc, prc, core::mem::transmute(pnstccditem), core::mem::transmute(pclrtext), core::mem::transmute(pclrtextbk), core::mem::transmute(plres)).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe fn ItemPostPaint(&self, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ItemPostPaint)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(prc), core::mem::transmute(pnstccditem)).ok() + (windows_core::Interface::vtable(self).ItemPostPaint)(windows_core::Interface::as_raw(self), hdc, prc, core::mem::transmute(pnstccditem)).ok() } } #[repr(C)] @@ -26680,35 +26680,35 @@ impl INameSpaceTreeControlDropHandler { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragEnter)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), foutsidesource.into(), core::mem::transmute(grfkeystate), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).OnDragEnter)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), foutsidesource.into(), grfkeystate, core::mem::transmute(pdweffect)).ok() } pub unsafe fn OnDragOver(&self, psiover: P0, psiadata: P1, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragOver)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), core::mem::transmute(grfkeystate), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).OnDragOver)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), grfkeystate, core::mem::transmute(pdweffect)).ok() } pub unsafe fn OnDragPosition(&self, psiover: P0, psiadata: P1, inewposition: i32, ioldposition: i32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragPosition)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), core::mem::transmute(inewposition), core::mem::transmute(ioldposition)).ok() + (windows_core::Interface::vtable(self).OnDragPosition)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), inewposition, ioldposition).ok() } pub unsafe fn OnDrop(&self, psiover: P0, psiadata: P1, iposition: i32, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDrop)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), core::mem::transmute(iposition), core::mem::transmute(grfkeystate), core::mem::transmute(pdweffect)).ok() + (windows_core::Interface::vtable(self).OnDrop)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), iposition, grfkeystate, core::mem::transmute(pdweffect)).ok() } pub unsafe fn OnDropPosition(&self, psiover: P0, psiadata: P1, inewposition: i32, ioldposition: i32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDropPosition)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), core::mem::transmute(inewposition), core::mem::transmute(ioldposition)).ok() + (windows_core::Interface::vtable(self).OnDropPosition)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), inewposition, ioldposition).ok() } pub unsafe fn OnDragLeave(&self, psiover: P0) -> windows_core::Result<()> where @@ -26783,7 +26783,7 @@ impl INameSpaceTreeControlEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemClick)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(nstcehittest), core::mem::transmute(nstceclicktype)).ok() + (windows_core::Interface::vtable(self).OnItemClick)(windows_core::Interface::as_raw(self), psi.param().abi(), nstcehittest, nstceclicktype).ok() } pub unsafe fn OnPropertyItemCommit(&self, psi: P0) -> windows_core::Result<()> where @@ -26795,13 +26795,13 @@ impl INameSpaceTreeControlEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemStateChanging)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(nstcismask), core::mem::transmute(nstcisstate)).ok() + (windows_core::Interface::vtable(self).OnItemStateChanging)(windows_core::Interface::as_raw(self), psi.param().abi(), nstcismask, nstcisstate).ok() } pub unsafe fn OnItemStateChanged(&self, psi: P0, nstcismask: u32, nstcisstate: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemStateChanged)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(nstcismask), core::mem::transmute(nstcisstate)).ok() + (windows_core::Interface::vtable(self).OnItemStateChanged)(windows_core::Interface::as_raw(self), psi.param().abi(), nstcismask, nstcisstate).ok() } pub unsafe fn OnSelectionChanged(&self, psiaselection: P0) -> windows_core::Result<()> where @@ -26810,7 +26810,7 @@ impl INameSpaceTreeControlEvents { (windows_core::Interface::vtable(self).OnSelectionChanged)(windows_core::Interface::as_raw(self), psiaselection.param().abi()).ok() } pub unsafe fn OnKeyboardInput(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnKeyboardInput)(windows_core::Interface::as_raw(self), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).OnKeyboardInput)(windows_core::Interface::as_raw(self), umsg, wparam, lparam).ok() } pub unsafe fn OnBeforeExpand(&self, psi: P0) -> windows_core::Result<()> where @@ -26864,14 +26864,14 @@ impl INameSpaceTreeControlEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeforeContextMenu)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).OnBeforeContextMenu)(windows_core::Interface::as_raw(self), psi.param().abi(), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn OnAfterContextMenu(&self, psi: P0, pcmin: P1, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAfterContextMenu)(windows_core::Interface::as_raw(self), psi.param().abi(), pcmin.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).OnAfterContextMenu)(windows_core::Interface::as_raw(self), psi.param().abi(), pcmin.param().abi(), riid, core::mem::transmute(ppv)).ok() } pub unsafe fn OnBeforeStateImageChange(&self, psi: P0) -> windows_core::Result<()> where @@ -27034,7 +27034,7 @@ windows_core::imp::interface_hierarchy!(INameSpaceTreeControlFolderCapabilities, impl INameSpaceTreeControlFolderCapabilities { pub unsafe fn GetFolderCapabilities(&self, nfcmask: NSTCFOLDERCAPABILITIES) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolderCapabilities)(windows_core::Interface::as_raw(self), core::mem::transmute(nfcmask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFolderCapabilities)(windows_core::Interface::as_raw(self), nfcmask, &mut result__).map(|| result__) } } #[repr(C)] @@ -27146,7 +27146,7 @@ impl INamespaceWalk { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Walk)(windows_core::Interface::as_raw(self), punktowalk.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(cdepth), pnswcb.param().abi()).ok() + (windows_core::Interface::vtable(self).Walk)(windows_core::Interface::as_raw(self), punktowalk.param().abi(), dwflags, cdepth, pnswcb.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDArrayResult(&self, pcitems: *mut u32, prgpidl: *mut *mut *mut Common::ITEMIDLIST) -> windows_core::Result<()> { @@ -27198,21 +27198,21 @@ impl INamespaceWalkCB { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FoundItem)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).FoundItem)(windows_core::Interface::as_raw(self), psf.param().abi(), pidl).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn EnterFolder(&self, psf: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnterFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).EnterFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), pidl).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn LeaveFolder(&self, psf: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LeaveFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).LeaveFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), pidl).ok() } pub unsafe fn InitializeProgressDialog(&self, ppsztitle: *mut windows_core::PWSTR, ppszcancel: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeProgressDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsztitle), core::mem::transmute(ppszcancel)).ok() @@ -27285,7 +27285,7 @@ impl core::ops::Deref for INamespaceWalkCB2 { windows_core::imp::interface_hierarchy!(INamespaceWalkCB2, windows_core::IUnknown, INamespaceWalkCB); impl INamespaceWalkCB2 { pub unsafe fn WalkComplete(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WalkComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).WalkComplete)(windows_core::Interface::as_raw(self), hr).ok() } } #[repr(C)] @@ -27397,7 +27397,7 @@ impl INewMenuClient { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectAndEditItem(&self, pidlitem: *const Common::ITEMIDLIST, flags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAndEditItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlitem), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).SelectAndEditItem)(windows_core::Interface::as_raw(self), pidlitem, flags).ok() } } #[repr(C)] @@ -27676,7 +27676,7 @@ impl INewWindowManager { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateNewWindow)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pszname.param().abi(), pszurlcontext.param().abi(), pszfeatures.param().abi(), freplace.into(), core::mem::transmute(dwflags), core::mem::transmute(dwuseractiontime)).ok() + (windows_core::Interface::vtable(self).EvaluateNewWindow)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pszname.param().abi(), pszurlcontext.param().abi(), pszfeatures.param().abi(), freplace.into(), dwflags, dwuseractiontime).ok() } } #[repr(C)] @@ -27786,7 +27786,7 @@ impl IObjectProvider { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).QueryObject)(windows_core::Interface::as_raw(self), core::mem::transmute(guidobject), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryObject)(windows_core::Interface::as_raw(self), guidobject, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -27924,7 +27924,7 @@ windows_core::imp::define_interface!(IObjectWithFolderEnumMode, IObjectWithFolde windows_core::imp::interface_hierarchy!(IObjectWithFolderEnumMode, windows_core::IUnknown); impl IObjectWithFolderEnumMode { pub unsafe fn SetMode(&self, femode: FOLDER_ENUM_MODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(femode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), femode).ok() } pub unsafe fn GetMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -28138,7 +28138,7 @@ impl IOpenSearchSource { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetResults)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pszquery.param().abi(), core::mem::transmute(dwstartindex), core::mem::transmute(dwcount), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResults)(windows_core::Interface::as_raw(self), hwnd, pszquery.param().abi(), dwstartindex, dwcount, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -28166,19 +28166,19 @@ windows_core::imp::define_interface!(IOperationsProgressDialog, IOperationsProgr windows_core::imp::interface_hierarchy!(IOperationsProgressDialog, windows_core::IUnknown); impl IOperationsProgressDialog { pub unsafe fn StartProgressDialog(&self, hwndowner: super::super::Foundation::HWND, flags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), hwndowner, flags).ok() } pub unsafe fn StopProgressDialog(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopProgressDialog)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetOperation(&self, action: SPACTION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(action)).ok() + (windows_core::Interface::vtable(self).SetOperation)(windows_core::Interface::as_raw(self), action).ok() } pub unsafe fn SetMode(&self, mode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn UpdateProgress(&self, ullpointscurrent: u64, ullpointstotal: u64, ullsizecurrent: u64, ullsizetotal: u64, ullitemscurrent: u64, ullitemstotal: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ullpointscurrent), core::mem::transmute(ullpointstotal), core::mem::transmute(ullsizecurrent), core::mem::transmute(ullsizetotal), core::mem::transmute(ullitemscurrent), core::mem::transmute(ullitemstotal)).ok() + (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), ullpointscurrent, ullpointstotal, ullsizecurrent, ullsizetotal, ullitemscurrent, ullitemstotal).ok() } pub unsafe fn UpdateLocations(&self, psisource: P0, psitarget: P1, psiitem: P2) -> windows_core::Result<()> where @@ -28348,7 +28348,7 @@ impl IPackageDebugSettings { (windows_core::Interface::vtable(self).TerminateAllProcesses)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn SetTargetSessionId(&self, sessionid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTargetSessionId)(windows_core::Interface::as_raw(self), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).SetTargetSessionId)(windows_core::Interface::as_raw(self), sessionid).ok() } pub unsafe fn EnumerateBackgroundTasks(&self, packagefullname: P0, taskcount: *mut u32, taskids: *mut *mut windows_core::GUID, tasknames: *mut *mut windows_core::PCWSTR) -> windows_core::Result<()> where @@ -28357,7 +28357,7 @@ impl IPackageDebugSettings { (windows_core::Interface::vtable(self).EnumerateBackgroundTasks)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), core::mem::transmute(taskcount), core::mem::transmute(taskids), core::mem::transmute(tasknames)).ok() } pub unsafe fn ActivateBackgroundTask(&self, taskid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateBackgroundTask)(windows_core::Interface::as_raw(self), core::mem::transmute(taskid)).ok() + (windows_core::Interface::vtable(self).ActivateBackgroundTask)(windows_core::Interface::as_raw(self), taskid).ok() } pub unsafe fn StartServicing(&self, packagefullname: P0) -> windows_core::Result<()> where @@ -28375,7 +28375,7 @@ impl IPackageDebugSettings { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), core::mem::transmute(sessionid)).ok() + (windows_core::Interface::vtable(self).StartSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), sessionid).ok() } pub unsafe fn StopSessionRedirection(&self, packagefullname: P0) -> windows_core::Result<()> where @@ -28399,7 +28399,7 @@ impl IPackageDebugSettings { (windows_core::Interface::vtable(self).RegisterForPackageStateChanges)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), ppackageexecutionstatechangenotification.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterForPackageStateChanges(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterForPackageStateChanges)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnregisterForPackageStateChanges)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -28580,7 +28580,7 @@ impl IPackageExecutionStateChangeNotification { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), pszpackagefullname.param().abi(), core::mem::transmute(pesnewstate)).ok() + (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), pszpackagefullname.param().abi(), pesnewstate).ok() } } #[repr(C)] @@ -28612,7 +28612,7 @@ impl IParentAndItem { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParentAndItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlparent), psf.param().abi(), core::mem::transmute(pidlchild)).ok() + (windows_core::Interface::vtable(self).SetParentAndItem)(windows_core::Interface::as_raw(self), pidlparent, psf.param().abi(), pidlchild).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetParentAndItem(&self, ppidlparent: Option<*mut *mut Common::ITEMIDLIST>, ppsf: Option<*mut Option>, ppidlchild: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result<()> { @@ -28718,7 +28718,7 @@ windows_core::imp::interface_hierarchy!(IPersistFolder, windows_core::IUnknown, impl IPersistFolder { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Initialize(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pidl).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -28820,7 +28820,7 @@ impl IPersistFolder3 { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), pbc.param().abi(), core::mem::transmute(pidlroot), core::mem::transmute(ppfti)).ok() + (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), pbc.param().abi(), pidlroot, ppfti).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetFolderTargetInfo(&self, ppfti: *mut PERSIST_FOLDER_TARGET_INFO) -> windows_core::Result<()> { @@ -28883,7 +28883,7 @@ windows_core::imp::interface_hierarchy!(IPersistIDList, windows_core::IUnknown, impl IPersistIDList { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).SetIDList)(windows_core::Interface::as_raw(self), pidl).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST> { @@ -28942,10 +28942,10 @@ windows_core::imp::define_interface!(IPreviewHandler, IPreviewHandler_Vtbl, 0x88 windows_core::imp::interface_hierarchy!(IPreviewHandler, windows_core::IUnknown); impl IPreviewHandler { pub unsafe fn SetWindow(&self, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).SetWindow)(windows_core::Interface::as_raw(self), hwnd, prc).ok() } pub unsafe fn SetRect(&self, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), core::mem::transmute(prc)).ok() + (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), prc).ok() } pub unsafe fn DoPreview(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DoPreview)(windows_core::Interface::as_raw(self)).ok() @@ -28962,7 +28962,7 @@ impl IPreviewHandler { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg).ok() } } #[repr(C)] @@ -29053,7 +29053,7 @@ impl IPreviewHandlerFrame { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)).ok() + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg).ok() } } #[repr(C)] @@ -29106,14 +29106,14 @@ windows_core::imp::define_interface!(IPreviewHandlerVisuals, IPreviewHandlerVisu windows_core::imp::interface_hierarchy!(IPreviewHandlerVisuals, windows_core::IUnknown); impl IPreviewHandlerVisuals { pub unsafe fn SetBackgroundColor(&self, color: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), color).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), core::mem::transmute(plf)).ok() + (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), plf).ok() } pub unsafe fn SetTextColor(&self, color: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTextColor)(windows_core::Interface::as_raw(self), core::mem::transmute(color)).ok() + (windows_core::Interface::vtable(self).SetTextColor)(windows_core::Interface::as_raw(self), color).ok() } } #[repr(C)] @@ -29232,10 +29232,10 @@ impl IProfferService { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ProfferService)(windows_core::Interface::as_raw(self), core::mem::transmute(serviceid), serviceprovider.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProfferService)(windows_core::Interface::as_raw(self), serviceid, serviceprovider.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RevokeService(&self, cookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RevokeService)(windows_core::Interface::as_raw(self), core::mem::transmute(cookie)).ok() + (windows_core::Interface::vtable(self).RevokeService)(windows_core::Interface::as_raw(self), cookie).ok() } } #[repr(C)] @@ -29288,7 +29288,7 @@ impl IProgressDialog { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), punkenablemodless.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), punkenablemodless.param().abi(), dwflags, core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn StopProgressDialog(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopProgressDialog)(windows_core::Interface::as_raw(self)).ok() @@ -29300,22 +29300,22 @@ impl IProgressDialog { (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), pwztitle.param().abi()).ok() } pub unsafe fn SetAnimation(&self, hinstanimation: Option, idanimation: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), core::mem::transmute(hinstanimation.unwrap_or(core::mem::zeroed())), core::mem::transmute(idanimation)).ok() + (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), core::mem::transmute(hinstanimation.unwrap_or(core::mem::zeroed())), idanimation).ok() } pub unsafe fn HasUserCancelled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).HasUserCancelled)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetProgress(&self, dwcompleted: u32, dwtotal: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcompleted), core::mem::transmute(dwtotal)).ok() + (windows_core::Interface::vtable(self).SetProgress)(windows_core::Interface::as_raw(self), dwcompleted, dwtotal).ok() } pub unsafe fn SetProgress64(&self, ullcompleted: u64, ulltotal: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgress64)(windows_core::Interface::as_raw(self), core::mem::transmute(ullcompleted), core::mem::transmute(ulltotal)).ok() + (windows_core::Interface::vtable(self).SetProgress64)(windows_core::Interface::as_raw(self), ullcompleted, ulltotal).ok() } pub unsafe fn SetLine(&self, dwlinenum: u32, pwzstring: P1, fcompactpath: bool, pvresevered: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLine)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlinenum), pwzstring.param().abi(), fcompactpath.into(), core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetLine)(windows_core::Interface::as_raw(self), dwlinenum, pwzstring.param().abi(), fcompactpath.into(), core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn SetCancelMsg(&self, pwzcancelmsg: P0, pvresevered: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where @@ -29324,7 +29324,7 @@ impl IProgressDialog { (windows_core::Interface::vtable(self).SetCancelMsg)(windows_core::Interface::as_raw(self), pwzcancelmsg.param().abi(), core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn Timer(&self, dwtimeraction: u32, pvresevered: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Timer)(windows_core::Interface::as_raw(self), core::mem::transmute(dwtimeraction), core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Timer)(windows_core::Interface::as_raw(self), dwtimeraction, core::mem::transmute(pvresevered.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -29422,19 +29422,19 @@ impl IPropertyKeyStore { (windows_core::Interface::vtable(self).GetKeyCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetKeyAt(&self, index: i32, pkey: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetKeyAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(pkey)).ok() + (windows_core::Interface::vtable(self).GetKeyAt)(windows_core::Interface::as_raw(self), index, core::mem::transmute(pkey)).ok() } pub unsafe fn AppendKey(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppendKey)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).AppendKey)(windows_core::Interface::as_raw(self), key).ok() } pub unsafe fn DeleteKey(&self, index: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), core::mem::transmute(index)).ok() + (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), index).ok() } pub unsafe fn IsKeyInStore(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsKeyInStore)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).IsKeyInStore)(windows_core::Interface::as_raw(self), key).ok() } pub unsafe fn RemoveKey(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveKey)(windows_core::Interface::as_raw(self), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).RemoveKey)(windows_core::Interface::as_raw(self), key).ok() } } #[repr(C)] @@ -29512,7 +29512,7 @@ impl core::ops::Deref for IPublishedApp { windows_core::imp::interface_hierarchy!(IPublishedApp, windows_core::IUnknown, IShellApp); impl IPublishedApp { pub unsafe fn Install(&self, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self), core::mem::transmute(pstinstall)).ok() + (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self), pstinstall).ok() } pub unsafe fn GetPublishedAppInfo(&self, ppai: *mut PUBAPPINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPublishedAppInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ppai)).ok() @@ -29569,7 +29569,7 @@ impl core::ops::Deref for IPublishedApp2 { windows_core::imp::interface_hierarchy!(IPublishedApp2, windows_core::IUnknown, IShellApp, IPublishedApp); impl IPublishedApp2 { pub unsafe fn Install2(&self, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Install2)(windows_core::Interface::as_raw(self), core::mem::transmute(pstinstall), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).Install2)(windows_core::Interface::as_raw(self), pstinstall, hwndparent).ok() } } #[repr(C)] @@ -29608,7 +29608,7 @@ impl IPublishingWizard { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdo.param().abi(), core::mem::transmute(dwoptions), pszservicescope.param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdo.param().abi(), dwoptions, pszservicescope.param().abi()).ok() } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn GetTransferManifest(&self, phrfromtransfer: Option<*mut windows_core::HRESULT>, pdocmanifest: Option<*mut Option>) -> windows_core::Result<()> { @@ -29663,13 +29663,13 @@ impl IQueryAssociations { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pszassoc.param().abi(), core::mem::transmute(hkprogid.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), flags, pszassoc.param().abi(), core::mem::transmute(hkprogid.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetString(&self, flags: ASSOCF, str: ASSOCSTR, pszextra: P2, pszout: Option, pcchout: *mut u32) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(str), pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), flags, str, pszextra.param().abi(), core::mem::transmute(pszout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcchout)).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn GetKey(&self, flags: ASSOCF, key: ASSOCKEY, pszextra: P2) -> windows_core::Result @@ -29677,19 +29677,19 @@ impl IQueryAssociations { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(key), pszextra.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), flags, key, pszextra.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetData(&self, flags: ASSOCF, data: ASSOCDATA, pszextra: P2, pvout: Option<*mut core::ffi::c_void>, pcbout: Option<*mut u32>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(data), pszextra.param().abi(), core::mem::transmute(pvout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbout.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), flags, data, pszextra.param().abi(), core::mem::transmute(pvout.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcbout.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetEnum(&self, flags: ASSOCF, assocenum: ASSOCENUM, pszextra: P2, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEnum)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(assocenum), pszextra.param().abi(), core::mem::transmute(riid), core::mem::transmute(ppvout)).ok() + (windows_core::Interface::vtable(self).GetEnum)(windows_core::Interface::as_raw(self), flags, assocenum, pszextra.param().abi(), riid, core::mem::transmute(ppvout)).ok() } } #[repr(C)] @@ -29767,7 +29767,7 @@ impl IQueryCancelAutoPlay { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AllowAutoPlay)(windows_core::Interface::as_raw(self), pszpath.param().abi(), core::mem::transmute(dwcontenttype), pszlabel.param().abi(), core::mem::transmute(dwserialnumber)).ok() + (windows_core::Interface::vtable(self).AllowAutoPlay)(windows_core::Interface::as_raw(self), pszpath.param().abi(), dwcontenttype, pszlabel.param().abi(), dwserialnumber).ok() } } #[repr(C)] @@ -29799,7 +29799,7 @@ impl IQueryCodePage { (windows_core::Interface::vtable(self).GetCodePage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCodePage(&self, uicodepage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCodePage)(windows_core::Interface::as_raw(self), core::mem::transmute(uicodepage)).ok() + (windows_core::Interface::vtable(self).SetCodePage)(windows_core::Interface::as_raw(self), uicodepage).ok() } } #[repr(C)] @@ -30112,7 +30112,7 @@ impl IResolveShellLink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveShellLink)(windows_core::Interface::as_raw(self), punklink.param().abi(), core::mem::transmute(hwnd), core::mem::transmute(fflags)).ok() + (windows_core::Interface::vtable(self).ResolveShellLink)(windows_core::Interface::as_raw(self), punklink.param().abi(), hwnd, fflags).ok() } } #[repr(C)] @@ -30147,7 +30147,7 @@ impl IResultsFolder { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddIDList(&self, pidl: *const Common::ITEMIDLIST, ppidladded: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(ppidladded.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).AddIDList)(windows_core::Interface::as_raw(self), pidl, core::mem::transmute(ppidladded.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn RemoveItem(&self, psi: P0) -> windows_core::Result<()> where @@ -30157,7 +30157,7 @@ impl IResultsFolder { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RemoveIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).RemoveIDList)(windows_core::Interface::as_raw(self), pidl).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self)).ok() @@ -30705,10 +30705,10 @@ impl ISearchFolderItemFactory { (windows_core::Interface::vtable(self).SetFolderTypeID)(windows_core::Interface::as_raw(self), core::mem::transmute(ftid)).ok() } pub unsafe fn SetFolderLogicalViewMode(&self, flvm: FOLDERLOGICALVIEWMODE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFolderLogicalViewMode)(windows_core::Interface::as_raw(self), core::mem::transmute(flvm)).ok() + (windows_core::Interface::vtable(self).SetFolderLogicalViewMode)(windows_core::Interface::as_raw(self), flvm).ok() } pub unsafe fn SetIconSize(&self, iiconsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(iiconsize)).ok() + (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), iiconsize).ok() } pub unsafe fn SetVisibleColumns(&self, rgkey: &[super::super::Foundation::PROPERTYKEY]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetVisibleColumns)(windows_core::Interface::as_raw(self), rgkey.len().try_into().unwrap(), core::mem::transmute(rgkey.as_ptr())).ok() @@ -30717,7 +30717,7 @@ impl ISearchFolderItemFactory { (windows_core::Interface::vtable(self).SetSortColumns)(windows_core::Interface::as_raw(self), rgsortcolumns.len().try_into().unwrap(), core::mem::transmute(rgsortcolumns.as_ptr())).ok() } pub unsafe fn SetGroupColumn(&self, keygroup: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGroupColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(keygroup)).ok() + (windows_core::Interface::vtable(self).SetGroupColumn)(windows_core::Interface::as_raw(self), keygroup).ok() } pub unsafe fn SetStacks(&self, rgstackkeys: &[super::super::Foundation::PROPERTYKEY]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetStacks)(windows_core::Interface::as_raw(self), rgstackkeys.len().try_into().unwrap(), core::mem::transmute(rgstackkeys.as_ptr())).ok() @@ -30882,7 +30882,7 @@ impl ISharedBitmap { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn InitializeBitmap(&self, hbm: super::super::Graphics::Gdi::HBITMAP, wtsat: WTS_ALPHATYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InitializeBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(hbm), core::mem::transmute(wtsat)).ok() + (windows_core::Interface::vtable(self).InitializeBitmap)(windows_core::Interface::as_raw(self), hbm, wtsat).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Detach(&self) -> windows_core::Result { @@ -30982,17 +30982,17 @@ windows_core::imp::define_interface!(ISharingConfigurationManager, ISharingConfi windows_core::imp::interface_hierarchy!(ISharingConfigurationManager, windows_core::IUnknown); impl ISharingConfigurationManager { pub unsafe fn CreateShare(&self, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateShare)(windows_core::Interface::as_raw(self), core::mem::transmute(dsid), core::mem::transmute(role)).ok() + (windows_core::Interface::vtable(self).CreateShare)(windows_core::Interface::as_raw(self), dsid, role).ok() } pub unsafe fn DeleteShare(&self, dsid: DEF_SHARE_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteShare)(windows_core::Interface::as_raw(self), core::mem::transmute(dsid)).ok() + (windows_core::Interface::vtable(self).DeleteShare)(windows_core::Interface::as_raw(self), dsid).ok() } pub unsafe fn ShareExists(&self, dsid: DEF_SHARE_ID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShareExists)(windows_core::Interface::as_raw(self), core::mem::transmute(dsid)).ok() + (windows_core::Interface::vtable(self).ShareExists)(windows_core::Interface::as_raw(self), dsid).ok() } pub unsafe fn GetSharePermissions(&self, dsid: DEF_SHARE_ID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSharePermissions)(windows_core::Interface::as_raw(self), core::mem::transmute(dsid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSharePermissions)(windows_core::Interface::as_raw(self), dsid, &mut result__).map(|| result__) } pub unsafe fn SharePrinters(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SharePrinters)(windows_core::Interface::as_raw(self)).ok() @@ -31169,15 +31169,15 @@ windows_core::imp::interface_hierarchy!(IShellBrowser, windows_core::IUnknown, s impl IShellBrowser { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn InsertMenusSB(&self, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertMenusSB)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenushared), core::mem::transmute(lpmenuwidths)).ok() + (windows_core::Interface::vtable(self).InsertMenusSB)(windows_core::Interface::as_raw(self), hmenushared, core::mem::transmute(lpmenuwidths)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenuSB(&self, hmenushared: super::WindowsAndMessaging::HMENU, holemenures: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMenuSB)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenushared), core::mem::transmute(holemenures), core::mem::transmute(hwndactiveobject)).ok() + (windows_core::Interface::vtable(self).SetMenuSB)(windows_core::Interface::as_raw(self), hmenushared, holemenures, hwndactiveobject).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn RemoveMenusSB(&self, hmenushared: super::WindowsAndMessaging::HMENU) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveMenusSB)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenushared)).ok() + (windows_core::Interface::vtable(self).RemoveMenusSB)(windows_core::Interface::as_raw(self), hmenushared).ok() } pub unsafe fn SetStatusTextSB(&self, pszstatustext: P0) -> windows_core::Result<()> where @@ -31190,23 +31190,23 @@ impl IShellBrowser { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAcceleratorSB(&self, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TranslateAcceleratorSB)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(wid)).ok() + (windows_core::Interface::vtable(self).TranslateAcceleratorSB)(windows_core::Interface::as_raw(self), pmsg, wid).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn BrowseObject(&self, pidl: *const Common::ITEMIDLIST, wflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BrowseObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(wflags)).ok() + (windows_core::Interface::vtable(self).BrowseObject)(windows_core::Interface::as_raw(self), pidl, wflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetViewStateStream(&self, grfmode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetViewStateStream)(windows_core::Interface::as_raw(self), core::mem::transmute(grfmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetViewStateStream)(windows_core::Interface::as_raw(self), grfmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetControlWindow(&self, id: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetControlWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(id), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetControlWindow)(windows_core::Interface::as_raw(self), id, &mut result__).map(|| result__) } pub unsafe fn SendControlMsg(&self, id: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pret: Option<*mut super::super::Foundation::LRESULT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SendControlMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(id), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(pret.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SendControlMsg)(windows_core::Interface::as_raw(self), id, umsg, wparam, lparam, core::mem::transmute(pret.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn QueryActiveShellView(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -31220,7 +31220,7 @@ impl IShellBrowser { } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn SetToolbarItems(&self, lpbuttons: Option<&[super::Controls::TBBUTTON]>, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetToolbarItems)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuttons.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuttons.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).SetToolbarItems)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuttons.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuttons.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), uflags).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -31379,7 +31379,7 @@ windows_core::imp::interface_hierarchy!(IShellChangeNotify, windows_core::IUnkno impl IShellChangeNotify { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnChange(&self, levent: i32, pidl1: Option<*const Common::ITEMIDLIST>, pidl2: Option<*const Common::ITEMIDLIST>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), core::mem::transmute(levent), core::mem::transmute(pidl1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pidl2.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), levent, core::mem::transmute(pidl1.unwrap_or(core::mem::zeroed())), core::mem::transmute(pidl2.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -31414,10 +31414,10 @@ windows_core::imp::interface_hierarchy!(IShellDetails, windows_core::IUnknown); impl IShellDetails { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetDetailsOf(&self, pidl: Option<*const Common::ITEMIDLIST>, icolumn: u32, pdetails: *mut Common::SHELLDETAILS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl.unwrap_or(core::mem::zeroed())), core::mem::transmute(icolumn), core::mem::transmute(pdetails)).ok() + (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl.unwrap_or(core::mem::zeroed())), icolumn, core::mem::transmute(pdetails)).ok() } pub unsafe fn ColumnClick(&self, icolumn: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ColumnClick)(windows_core::Interface::as_raw(self), core::mem::transmute(icolumn)).ok() + (windows_core::Interface::vtable(self).ColumnClick)(windows_core::Interface::as_raw(self), icolumn).ok() } } #[repr(C)] @@ -31486,7 +31486,7 @@ impl IShellDispatch { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: &windows_core::BSTR, options: i32, rootfolder: &super::super::System::Variant::VARIANT) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BrowseForFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute_copy(title), core::mem::transmute(options), core::mem::transmute_copy(rootfolder), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, core::mem::transmute_copy(title), options, core::mem::transmute_copy(rootfolder), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Windows(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32047,7 +32047,7 @@ impl IShellDispatch4 { } pub unsafe fn GetSetting(&self, lsetting: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSetting)(windows_core::Interface::as_raw(self), core::mem::transmute(lsetting), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSetting)(windows_core::Interface::as_raw(self), lsetting, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -32431,10 +32431,10 @@ impl IShellFolder { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pbc.param().abi(), pszdisplayname.param().abi(), core::mem::transmute(pcheaten.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppidl), core::mem::transmute(pdwattributes)).ok() + (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), hwnd, pbc.param().abi(), pszdisplayname.param().abi(), core::mem::transmute(pcheaten.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppidl), core::mem::transmute(pdwattributes)).ok() } pub unsafe fn EnumObjects(&self, hwnd: super::super::Foundation::HWND, grfflags: u32, ppenumidlist: *mut Option) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(grfflags), core::mem::transmute(ppenumidlist)) + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), hwnd, grfflags, core::mem::transmute(ppenumidlist)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn BindToObject(&self, pidl: *const Common::ITEMIDLIST, pbc: P1) -> windows_core::Result @@ -32443,7 +32443,7 @@ impl IShellFolder { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), pidl, pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn BindToStorage(&self, pidl: *const Common::ITEMIDLIST, pbc: P1) -> windows_core::Result @@ -32452,18 +32452,18 @@ impl IShellFolder { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToStorage)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BindToStorage)(windows_core::Interface::as_raw(self), pidl, pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn CompareIDs(&self, lparam: super::super::Foundation::LPARAM, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).CompareIDs)(windows_core::Interface::as_raw(self), core::mem::transmute(lparam), core::mem::transmute(pidl1), core::mem::transmute(pidl2)) + (windows_core::Interface::vtable(self).CompareIDs)(windows_core::Interface::as_raw(self), lparam, pidl1, pidl2) } pub unsafe fn CreateViewObject(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateViewObject)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateViewObject)(windows_core::Interface::as_raw(self), hwndowner, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetAttributesOf(&self, apidl: &[*const Common::ITEMIDLIST], rgfinout: *mut u32) -> windows_core::Result<()> { @@ -32475,18 +32475,18 @@ impl IShellFolder { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetUIObjectOf)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), &T::IID, core::mem::transmute(rgfreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUIObjectOf)(windows_core::Interface::as_raw(self), hwndowner, apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), &T::IID, core::mem::transmute(rgfreserved.unwrap_or(core::mem::zeroed())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetDisplayNameOf(&self, pidl: *const Common::ITEMIDLIST, uflags: SHGDNF, pname: *mut Common::STRRET) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayNameOf)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(uflags), core::mem::transmute(pname)).ok() + (windows_core::Interface::vtable(self).GetDisplayNameOf)(windows_core::Interface::as_raw(self), pidl, uflags, core::mem::transmute(pname)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetNameOf(&self, hwnd: Option, pidl: *const Common::ITEMIDLIST, pszname: P2, uflags: SHGDNF, ppidlout: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNameOf)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(pidl), pszname.param().abi(), core::mem::transmute(uflags), core::mem::transmute(ppidlout.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).SetNameOf)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), pidl, pszname.param().abi(), uflags, core::mem::transmute(ppidlout.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -32621,24 +32621,24 @@ impl IShellFolder2 { (windows_core::Interface::vtable(self).EnumSearches)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultColumn(&self, dwres: u32, psort: *mut u32, pdisplay: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDefaultColumn)(windows_core::Interface::as_raw(self), core::mem::transmute(dwres), core::mem::transmute(psort), core::mem::transmute(pdisplay)).ok() + (windows_core::Interface::vtable(self).GetDefaultColumn)(windows_core::Interface::as_raw(self), dwres, core::mem::transmute(psort), core::mem::transmute(pdisplay)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetDefaultColumnState(&self, icolumn: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultColumnState)(windows_core::Interface::as_raw(self), core::mem::transmute(icolumn), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultColumnState)(windows_core::Interface::as_raw(self), icolumn, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetDetailsEx(&self, pidl: *const Common::ITEMIDLIST, pscid: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDetailsEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(pscid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetDetailsEx)(windows_core::Interface::as_raw(self), pidl, pscid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetDetailsOf(&self, pidl: *const Common::ITEMIDLIST, icolumn: u32, psd: *mut Common::SHELLDETAILS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(icolumn), core::mem::transmute(psd)).ok() + (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), pidl, icolumn, core::mem::transmute(psd)).ok() } pub unsafe fn MapColumnToSCID(&self, icolumn: u32, pscid: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MapColumnToSCID)(windows_core::Interface::as_raw(self), core::mem::transmute(icolumn), core::mem::transmute(pscid)).ok() + (windows_core::Interface::vtable(self).MapColumnToSCID)(windows_core::Interface::as_raw(self), icolumn, core::mem::transmute(pscid)).ok() } } #[repr(C)] @@ -32816,7 +32816,7 @@ windows_core::imp::define_interface!(IShellFolderView, IShellFolderView_Vtbl, 0x windows_core::imp::interface_hierarchy!(IShellFolderView, windows_core::IUnknown); impl IShellFolderView { pub unsafe fn Rearrange(&self, lparamsort: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rearrange)(windows_core::Interface::as_raw(self), core::mem::transmute(lparamsort)).ok() + (windows_core::Interface::vtable(self).Rearrange)(windows_core::Interface::as_raw(self), lparamsort).ok() } pub unsafe fn GetArrangeParam(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -32834,11 +32834,11 @@ impl IShellFolderView { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddObject(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AddObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddObject)(windows_core::Interface::as_raw(self), pidl, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetObject(&self, ppidl: *mut *mut Common::ITEMIDLIST, uitem: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ppidl), core::mem::transmute(uitem)).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ppidl), uitem).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RemoveObject(&self, pidl: Option<*const Common::ITEMIDLIST>) -> windows_core::Result { @@ -32850,17 +32850,17 @@ impl IShellFolderView { (windows_core::Interface::vtable(self).GetObjectCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetObjectCount(&self, ucount: u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetObjectCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ucount), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetObjectCount)(windows_core::Interface::as_raw(self), ucount, dwflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn UpdateObject(&self, pidlold: *const Common::ITEMIDLIST, pidlnew: *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).UpdateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlold), core::mem::transmute(pidlnew), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).UpdateObject)(windows_core::Interface::as_raw(self), pidlold, pidlnew, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RefreshObject(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RefreshObject)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RefreshObject)(windows_core::Interface::as_raw(self), pidl, &mut result__).map(|| result__) } pub unsafe fn SetRedraw(&self, bredraw: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetRedraw)(windows_core::Interface::as_raw(self), bredraw.into()).ok() @@ -32897,7 +32897,7 @@ impl IShellFolderView { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetItemPos(&self, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItemPos)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(ppt)).ok() + (windows_core::Interface::vtable(self).SetItemPos)(windows_core::Interface::as_raw(self), pidl, ppt).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn IsBkDropTarget(&self, pdroptarget: P0) -> windows_core::Result<()> @@ -33263,7 +33263,7 @@ windows_core::imp::define_interface!(IShellFolderViewCB, IShellFolderViewCB_Vtbl windows_core::imp::interface_hierarchy!(IShellFolderViewCB, windows_core::IUnknown); impl IShellFolderViewCB { pub unsafe fn MessageSFVCB(&self, umsg: SFVM_MESSAGE_ID, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MessageSFVCB)(windows_core::Interface::as_raw(self), umsg.0 as _, core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).MessageSFVCB)(windows_core::Interface::as_raw(self), umsg.0 as _, wparam, lparam).ok() } } #[repr(C)] @@ -33322,7 +33322,7 @@ impl IShellFolderViewDual { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SelectItem(&self, pvfi: *const super::super::System::Variant::VARIANT, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pvfi), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SelectItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pvfi), dwflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PopupItemMenu(&self, pfi: P0, vx: &super::super::System::Variant::VARIANT, vy: &super::super::System::Variant::VARIANT) -> windows_core::Result @@ -33497,10 +33497,10 @@ impl IShellFolderViewDual2 { (windows_core::Interface::vtable(self).CurrentViewMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentViewMode(&self, viewmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentViewMode)(windows_core::Interface::as_raw(self), core::mem::transmute(viewmode)).ok() + (windows_core::Interface::vtable(self).SetCurrentViewMode)(windows_core::Interface::as_raw(self), viewmode).ok() } pub unsafe fn SelectItemRelative(&self, irelative: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectItemRelative)(windows_core::Interface::as_raw(self), core::mem::transmute(irelative)).ok() + (windows_core::Interface::vtable(self).SelectItemRelative)(windows_core::Interface::as_raw(self), irelative).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -33576,7 +33576,7 @@ impl IShellFolderViewDual3 { (windows_core::Interface::vtable(self).FolderFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFolderFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFolderFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFolderFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn SortColumns(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33586,7 +33586,7 @@ impl IShellFolderViewDual3 { (windows_core::Interface::vtable(self).SetSortColumns)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsortcolumns)).ok() } pub unsafe fn SetIconSize(&self, iiconsize: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), core::mem::transmute(iiconsize)).ok() + (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), iiconsize).ok() } pub unsafe fn IconSize(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -33710,7 +33710,7 @@ impl IShellIcon { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIconOf(&self, pidl: *const Common::ITEMIDLIST, flags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIconOf)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIconOf)(windows_core::Interface::as_raw(self), pidl, flags, &mut result__).map(|| result__) } } #[repr(C)] @@ -33751,11 +33751,11 @@ windows_core::imp::interface_hierarchy!(IShellIconOverlay, windows_core::IUnknow impl IShellIconOverlay { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetOverlayIndex(&self, pidl: *const Common::ITEMIDLIST, pindex: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOverlayIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(pindex)).ok() + (windows_core::Interface::vtable(self).GetOverlayIndex)(windows_core::Interface::as_raw(self), pidl, core::mem::transmute(pindex)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetOverlayIconIndex(&self, pidl: *const Common::ITEMIDLIST, piconindex: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetOverlayIconIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl), core::mem::transmute(piconindex)).ok() + (windows_core::Interface::vtable(self).GetOverlayIconIndex)(windows_core::Interface::as_raw(self), pidl, core::mem::transmute(piconindex)).ok() } } #[repr(C)] @@ -33805,7 +33805,7 @@ impl IShellIconOverlayIdentifier { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsMemberOf)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), core::mem::transmute(dwattrib)).ok() + (windows_core::Interface::vtable(self).IsMemberOf)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), dwattrib).ok() } pub unsafe fn GetOverlayInfo(&self, pwsziconfile: &mut [u16], pindex: *mut i32, pdwflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOverlayInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pwsziconfile.as_ptr()), pwsziconfile.len().try_into().unwrap(), core::mem::transmute(pindex), core::mem::transmute(pdwflags)).ok() @@ -33866,22 +33866,22 @@ impl IShellIconOverlayManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFileOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), core::mem::transmute(dwattrib), core::mem::transmute(pindex), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetFileOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), dwattrib, core::mem::transmute(pindex), dwflags).ok() } pub unsafe fn GetReservedOverlayInfo(&self, pwszpath: P0, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetReservedOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), core::mem::transmute(dwattrib), core::mem::transmute(pindex), core::mem::transmute(dwflags), core::mem::transmute(ireservedid)).ok() + (windows_core::Interface::vtable(self).GetReservedOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), dwattrib, core::mem::transmute(pindex), dwflags, ireservedid).ok() } pub unsafe fn RefreshOverlayImages(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RefreshOverlayImages)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RefreshOverlayImages)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn LoadNonloadedOverlayIdentifiers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LoadNonloadedOverlayIdentifiers)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OverlayIndexFromImageIndex(&self, iimage: i32, piindex: *mut i32, fadd: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OverlayIndexFromImageIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(iimage), core::mem::transmute(piindex), fadd.into()).ok() + (windows_core::Interface::vtable(self).OverlayIndexFromImageIndex)(windows_core::Interface::as_raw(self), iimage, core::mem::transmute(piindex), fadd.into()).ok() } } #[repr(C)] @@ -33940,11 +33940,11 @@ windows_core::imp::define_interface!(IShellImageData, IShellImageData_Vtbl, 0xbf windows_core::imp::interface_hierarchy!(IShellImageData, windows_core::IUnknown); impl IShellImageData { pub unsafe fn Decode(&self, dwflags: u32, cxdesired: u32, cydesired: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(cxdesired), core::mem::transmute(cydesired)).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), dwflags, cxdesired, cydesired).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Draw(&self, hdc: super::super::Graphics::Gdi::HDC, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(prcdest), core::mem::transmute(prcsrc)).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc, core::mem::transmute(prcdest), core::mem::transmute(prcsrc)).ok() } pub unsafe fn NextFrame(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NextFrame)(windows_core::Interface::as_raw(self)).ok() @@ -33983,7 +33983,7 @@ impl IShellImageData { (windows_core::Interface::vtable(self).GetPageCount)(windows_core::Interface::as_raw(self), core::mem::transmute(pcpages)).ok() } pub unsafe fn SelectPage(&self, ipage: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectPage)(windows_core::Interface::as_raw(self), core::mem::transmute(ipage)).ok() + (windows_core::Interface::vtable(self).SelectPage)(windows_core::Interface::as_raw(self), ipage).ok() } pub unsafe fn GetSize(&self, psize: *mut super::super::Foundation::SIZE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(psize)).ok() @@ -34000,14 +34000,14 @@ impl IShellImageData { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn GetProperties(&self, dwmode: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), dwmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Rotate(&self, dwangle: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwangle)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), dwangle).ok() } #[cfg(feature = "Win32_Graphics_GdiPlus")] pub unsafe fn Scale(&self, cx: u32, cy: u32, hints: super::super::Graphics::GdiPlus::InterpolationMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Scale)(windows_core::Interface::as_raw(self), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(hints)).ok() + (windows_core::Interface::vtable(self).Scale)(windows_core::Interface::as_raw(self), cx, cy, hints).ok() } pub unsafe fn DiscardEdit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DiscardEdit)(windows_core::Interface::as_raw(self)).ok() @@ -34023,7 +34023,7 @@ impl IShellImageData { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayName)(windows_core::Interface::as_raw(self), wszname.param().abi(), core::mem::transmute(cch)).ok() + (windows_core::Interface::vtable(self).DisplayName)(windows_core::Interface::as_raw(self), wszname.param().abi(), cch).ok() } pub unsafe fn GetResolution(&self, puresolutionx: *mut u32, puresolutiony: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetResolution)(windows_core::Interface::as_raw(self), core::mem::transmute(puresolutionx), core::mem::transmute(puresolutiony)).ok() @@ -34442,7 +34442,7 @@ impl IShellItem { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pbc.param().abi(), core::mem::transmute(bhid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pbc.param().abi(), bhid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -34450,19 +34450,19 @@ impl IShellItem { } pub unsafe fn GetDisplayName(&self, sigdnname: SIGDN) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(sigdnname), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), sigdnname, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_SystemServices")] pub unsafe fn GetAttributes(&self, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(sfgaomask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), sfgaomask, &mut result__).map(|| result__) } pub unsafe fn Compare(&self, psi: P0, hint: u32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(hint), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), psi.param().abi(), hint, &mut result__).map(|| result__) } } #[repr(C)] @@ -34565,7 +34565,7 @@ impl IShellItem2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStoreWithCreateObject(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: P1) -> windows_core::Result @@ -34574,7 +34574,7 @@ impl IShellItem2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStoreWithCreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), punkcreateobject.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyStoreWithCreateObject)(windows_core::Interface::as_raw(self), flags, punkcreateobject.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStoreForKeys(&self, rgkeys: &[super::super::Foundation::PROPERTYKEY], flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> windows_core::Result @@ -34582,14 +34582,14 @@ impl IShellItem2 { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStoreForKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(rgkeys.as_ptr()), rgkeys.len().try_into().unwrap(), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyStoreForKeys)(windows_core::Interface::as_raw(self), core::mem::transmute(rgkeys.as_ptr()), rgkeys.len().try_into().unwrap(), flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyDescriptionList(&self, keytype: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyDescriptionList)(windows_core::Interface::as_raw(self), core::mem::transmute(keytype), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyDescriptionList)(windows_core::Interface::as_raw(self), keytype, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, pbc: P0) -> windows_core::Result<()> @@ -34601,35 +34601,35 @@ impl IShellItem2 { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCLSID(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCLSID)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetFileTime(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileTime)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFileTime)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetInt32(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetString(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetUInt32(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUInt32)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUInt32)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetUInt64(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUInt64)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUInt64)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } pub unsafe fn GetBool(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), core::mem::transmute(key), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } } #[repr(C)] @@ -34816,7 +34816,7 @@ impl IShellItemArray { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pbc.param().abi(), core::mem::transmute(bhid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pbc.param().abi(), bhid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> windows_core::Result @@ -34824,19 +34824,19 @@ impl IShellItemArray { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), flags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyDescriptionList(&self, keytype: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyDescriptionList)(windows_core::Interface::as_raw(self), core::mem::transmute(keytype), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyDescriptionList)(windows_core::Interface::as_raw(self), keytype, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_SystemServices")] pub unsafe fn GetAttributes(&self, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), core::mem::transmute(attribflags), core::mem::transmute(sfgaomask), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributes)(windows_core::Interface::as_raw(self), attribflags, sfgaomask, &mut result__).map(|| result__) } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -34844,7 +34844,7 @@ impl IShellItemArray { } pub unsafe fn GetItemAt(&self, dwindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemAt)(windows_core::Interface::as_raw(self), core::mem::transmute(dwindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemAt)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumItems(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -35013,7 +35013,7 @@ impl IShellItemImageFactory { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetImage(&self, size: super::super::Foundation::SIZE, flags: SIIGBF) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImage)(windows_core::Interface::as_raw(self), core::mem::transmute(size), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetImage)(windows_core::Interface::as_raw(self), core::mem::transmute(size), flags, &mut result__).map(|| result__) } } #[repr(C)] @@ -35064,32 +35064,32 @@ impl IShellItemResources { (windows_core::Interface::vtable(self).GetTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pftcreation), core::mem::transmute(pftwrite), core::mem::transmute(pftaccess)).ok() } pub unsafe fn SetTimes(&self, pftcreation: *const super::super::Foundation::FILETIME, pftwrite: *const super::super::Foundation::FILETIME, pftaccess: *const super::super::Foundation::FILETIME) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTimes)(windows_core::Interface::as_raw(self), core::mem::transmute(pftcreation), core::mem::transmute(pftwrite), core::mem::transmute(pftaccess)).ok() + (windows_core::Interface::vtable(self).SetTimes)(windows_core::Interface::as_raw(self), pftcreation, pftwrite, pftaccess).ok() } pub unsafe fn GetResourceDescription(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pcsir), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetResourceDescription)(windows_core::Interface::as_raw(self), pcsir, &mut result__).map(|| result__) } pub unsafe fn EnumResources(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnumResources)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportsResource(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SupportsResource)(windows_core::Interface::as_raw(self), core::mem::transmute(pcsir)).ok() + (windows_core::Interface::vtable(self).SupportsResource)(windows_core::Interface::as_raw(self), pcsir).ok() } pub unsafe fn OpenResource(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenResource)(windows_core::Interface::as_raw(self), core::mem::transmute(pcsir), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenResource)(windows_core::Interface::as_raw(self), pcsir, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateResource(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateResource)(windows_core::Interface::as_raw(self), core::mem::transmute(pcsir), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateResource)(windows_core::Interface::as_raw(self), pcsir, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MarkForDelete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MarkForDelete)(windows_core::Interface::as_raw(self)).ok() @@ -35213,10 +35213,10 @@ impl IShellLibrary { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadLibraryFromItem)(windows_core::Interface::as_raw(self), psilibrary.param().abi(), core::mem::transmute(grfmode)).ok() + (windows_core::Interface::vtable(self).LoadLibraryFromItem)(windows_core::Interface::as_raw(self), psilibrary.param().abi(), grfmode).ok() } pub unsafe fn LoadLibraryFromKnownFolder(&self, kfidlibrary: *const windows_core::GUID, grfmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LoadLibraryFromKnownFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(kfidlibrary), core::mem::transmute(grfmode)).ok() + (windows_core::Interface::vtable(self).LoadLibraryFromKnownFolder)(windows_core::Interface::as_raw(self), kfidlibrary, grfmode).ok() } pub unsafe fn AddFolder(&self, psilocation: P0) -> windows_core::Result<()> where @@ -35235,7 +35235,7 @@ impl IShellLibrary { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetFolders)(windows_core::Interface::as_raw(self), core::mem::transmute(lff), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolders)(windows_core::Interface::as_raw(self), lff, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ResolveFolder(&self, psifoldertoresolve: P0, dwtimeout: u32) -> windows_core::Result where @@ -35243,34 +35243,34 @@ impl IShellLibrary { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).ResolveFolder)(windows_core::Interface::as_raw(self), psifoldertoresolve.param().abi(), core::mem::transmute(dwtimeout), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ResolveFolder)(windows_core::Interface::as_raw(self), psifoldertoresolve.param().abi(), dwtimeout, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultSaveFolder(&self, dsft: DEFAULTSAVEFOLDERTYPE) -> windows_core::Result where T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetDefaultSaveFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(dsft), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultSaveFolder)(windows_core::Interface::as_raw(self), dsft, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultSaveFolder(&self, dsft: DEFAULTSAVEFOLDERTYPE, psi: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultSaveFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(dsft), psi.param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultSaveFolder)(windows_core::Interface::as_raw(self), dsft, psi.param().abi()).ok() } pub unsafe fn GetOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOptions(&self, lofmask: LIBRARYOPTIONFLAGS, lofoptions: LIBRARYOPTIONFLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(lofmask), core::mem::transmute(lofoptions)).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), lofmask, lofoptions).ok() } pub unsafe fn GetFolderType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFolderType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFolderType(&self, ftid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFolderType)(windows_core::Interface::as_raw(self), core::mem::transmute(ftid)).ok() + (windows_core::Interface::vtable(self).SetFolderType)(windows_core::Interface::as_raw(self), ftid).ok() } pub unsafe fn GetIcon(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -35291,14 +35291,14 @@ impl IShellLibrary { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), psifoldertosavein.param().abi(), pszlibraryname.param().abi(), core::mem::transmute(lsf), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), psifoldertosavein.param().abi(), pszlibraryname.param().abi(), lsf, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SaveInKnownFolder(&self, kfidtosavein: *const windows_core::GUID, pszlibraryname: P1, lsf: LIBRARYSAVEFLAGS) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SaveInKnownFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(kfidtosavein), pszlibraryname.param().abi(), core::mem::transmute(lsf), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SaveInKnownFolder)(windows_core::Interface::as_raw(self), kfidtosavein, pszlibraryname.param().abi(), lsf, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -35472,7 +35472,7 @@ windows_core::imp::interface_hierarchy!(IShellLinkA, windows_core::IUnknown); impl IShellLinkA { #[cfg(feature = "Win32_Storage_FileSystem")] pub unsafe fn GetPath(&self, pszfile: &mut [u8], pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAA, fflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfile.as_ptr()), pszfile.len().try_into().unwrap(), core::mem::transmute(pfd), core::mem::transmute(fflags)).ok() + (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfile.as_ptr()), pszfile.len().try_into().unwrap(), core::mem::transmute(pfd), fflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST> { @@ -35481,7 +35481,7 @@ impl IShellLinkA { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).SetIDList)(windows_core::Interface::as_raw(self), pidl).ok() } pub unsafe fn GetDescription(&self, pszname: &mut [u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() @@ -35515,7 +35515,7 @@ impl IShellLinkA { (windows_core::Interface::vtable(self).GetHotkey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHotkey(&self, whotkey: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHotkey)(windows_core::Interface::as_raw(self), core::mem::transmute(whotkey)).ok() + (windows_core::Interface::vtable(self).SetHotkey)(windows_core::Interface::as_raw(self), whotkey).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetShowCmd(&self) -> windows_core::Result { @@ -35524,7 +35524,7 @@ impl IShellLinkA { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetShowCmd(&self, ishowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowCmd)(windows_core::Interface::as_raw(self), core::mem::transmute(ishowcmd)).ok() + (windows_core::Interface::vtable(self).SetShowCmd)(windows_core::Interface::as_raw(self), ishowcmd).ok() } pub unsafe fn GetIconLocation(&self, psziconpath: &mut [u8], piicon: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(psziconpath.as_ptr()), psziconpath.len().try_into().unwrap(), core::mem::transmute(piicon)).ok() @@ -35533,16 +35533,16 @@ impl IShellLinkA { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), psziconpath.param().abi(), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), psziconpath.param().abi(), iicon).ok() } pub unsafe fn SetRelativePath(&self, pszpathrel: P0, dwreserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRelativePath)(windows_core::Interface::as_raw(self), pszpathrel.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetRelativePath)(windows_core::Interface::as_raw(self), pszpathrel.param().abi(), dwreserved).ok() } pub unsafe fn Resolve(&self, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(fflags)).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), hwnd, fflags).ok() } pub unsafe fn SetPath(&self, pszfile: P0) -> windows_core::Result<()> where @@ -35734,20 +35734,20 @@ windows_core::imp::define_interface!(IShellLinkDataList, IShellLinkDataList_Vtbl windows_core::imp::interface_hierarchy!(IShellLinkDataList, windows_core::IUnknown); impl IShellLinkDataList { pub unsafe fn AddDataBlock(&self, pdatablock: *const core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddDataBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(pdatablock)).ok() + (windows_core::Interface::vtable(self).AddDataBlock)(windows_core::Interface::as_raw(self), pdatablock).ok() } pub unsafe fn CopyDataBlock(&self, dwsig: u32, ppdatablock: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CopyDataBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsig), core::mem::transmute(ppdatablock)).ok() + (windows_core::Interface::vtable(self).CopyDataBlock)(windows_core::Interface::as_raw(self), dwsig, core::mem::transmute(ppdatablock)).ok() } pub unsafe fn RemoveDataBlock(&self, dwsig: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveDataBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwsig)).ok() + (windows_core::Interface::vtable(self).RemoveDataBlock)(windows_core::Interface::as_raw(self), dwsig).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -35854,24 +35854,24 @@ impl IShellLinkDual { (windows_core::Interface::vtable(self).Hotkey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHotkey(&self, ihk: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHotkey)(windows_core::Interface::as_raw(self), core::mem::transmute(ihk)).ok() + (windows_core::Interface::vtable(self).SetHotkey)(windows_core::Interface::as_raw(self), ihk).ok() } pub unsafe fn ShowCommand(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowCommand)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetShowCommand(&self, ishowcommand: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(ishowcommand)).ok() + (windows_core::Interface::vtable(self).SetShowCommand)(windows_core::Interface::as_raw(self), ishowcommand).ok() } pub unsafe fn Resolve(&self, fflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), core::mem::transmute(fflags)).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), fflags).ok() } pub unsafe fn GetIconLocation(&self, pbs: *mut windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(pbs), &mut result__).map(|| result__) } pub unsafe fn SetIconLocation(&self, bs: &windows_core::BSTR, iicon: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bs), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bs), iicon).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Save(&self, vwhere: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -36110,7 +36110,7 @@ windows_core::imp::interface_hierarchy!(IShellLinkW, windows_core::IUnknown); impl IShellLinkW { #[cfg(feature = "Win32_Storage_FileSystem")] pub unsafe fn GetPath(&self, pszfile: &mut [u16], pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW, fflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfile.as_ptr()), pszfile.len().try_into().unwrap(), core::mem::transmute(pfd), core::mem::transmute(fflags)).ok() + (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfile.as_ptr()), pszfile.len().try_into().unwrap(), core::mem::transmute(pfd), fflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST> { @@ -36119,7 +36119,7 @@ impl IShellLinkW { } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIDList)(windows_core::Interface::as_raw(self), core::mem::transmute(pidl)).ok() + (windows_core::Interface::vtable(self).SetIDList)(windows_core::Interface::as_raw(self), pidl).ok() } pub unsafe fn GetDescription(&self, pszname: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() @@ -36153,7 +36153,7 @@ impl IShellLinkW { (windows_core::Interface::vtable(self).GetHotkey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHotkey(&self, whotkey: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHotkey)(windows_core::Interface::as_raw(self), core::mem::transmute(whotkey)).ok() + (windows_core::Interface::vtable(self).SetHotkey)(windows_core::Interface::as_raw(self), whotkey).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetShowCmd(&self) -> windows_core::Result { @@ -36162,7 +36162,7 @@ impl IShellLinkW { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetShowCmd(&self, ishowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetShowCmd)(windows_core::Interface::as_raw(self), core::mem::transmute(ishowcmd)).ok() + (windows_core::Interface::vtable(self).SetShowCmd)(windows_core::Interface::as_raw(self), ishowcmd).ok() } pub unsafe fn GetIconLocation(&self, psziconpath: &mut [u16], piicon: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), core::mem::transmute(psziconpath.as_ptr()), psziconpath.len().try_into().unwrap(), core::mem::transmute(piicon)).ok() @@ -36171,16 +36171,16 @@ impl IShellLinkW { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), psziconpath.param().abi(), core::mem::transmute(iicon)).ok() + (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), psziconpath.param().abi(), iicon).ok() } pub unsafe fn SetRelativePath(&self, pszpathrel: P0, dwreserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRelativePath)(windows_core::Interface::as_raw(self), pszpathrel.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetRelativePath)(windows_core::Interface::as_raw(self), pszpathrel.param().abi(), dwreserved).ok() } pub unsafe fn Resolve(&self, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(fflags)).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), hwnd, fflags).ok() } pub unsafe fn SetPath(&self, pszfile: P0) -> windows_core::Result<()> where @@ -36375,7 +36375,7 @@ impl IShellMenu { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psmc.param().abi(), core::mem::transmute(uid), core::mem::transmute(uidancestor), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psmc.param().abi(), uid, uidancestor, dwflags).ok() } pub unsafe fn GetMenuInfo(&self, ppsmc: Option<*mut Option>, puid: Option<*mut u32>, puidancestor: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMenuInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsmc.unwrap_or(core::mem::zeroed())), core::mem::transmute(puid.unwrap_or(core::mem::zeroed())), core::mem::transmute(puidancestor.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() @@ -36385,15 +36385,15 @@ impl IShellMenu { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShellFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(core::mem::zeroed())), core::mem::transmute(hkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetShellFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(core::mem::zeroed())), core::mem::transmute(hkey.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetShellFolder(&self, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetShellFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags), core::mem::transmute(ppidl), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).GetShellFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwflags), core::mem::transmute(ppidl), riid, core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenu(&self, hmenu: Option, hwnd: Option, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetMenu(&self, phmenu: Option<*mut super::WindowsAndMessaging::HMENU>, phwnd: Option<*mut super::super::Foundation::HWND>, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { @@ -36401,7 +36401,7 @@ impl IShellMenu { } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn InvalidateItem(&self, psmd: Option<*const SMDATA>, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvalidateItem)(windows_core::Interface::as_raw(self), core::mem::transmute(psmd.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).InvalidateItem)(windows_core::Interface::as_raw(self), core::mem::transmute(psmd.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetState(&self, psmd: *mut SMDATA) -> windows_core::Result<()> { @@ -36411,7 +36411,7 @@ impl IShellMenu { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMenuToolbar)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetMenuToolbar)(windows_core::Interface::as_raw(self), punk.param().abi(), dwflags).ok() } } #[repr(C)] @@ -36520,7 +36520,7 @@ windows_core::imp::interface_hierarchy!(IShellMenuCallback, windows_core::IUnkno impl IShellMenuCallback { #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn CallbackSM(&self, psmd: *mut SMDATA, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CallbackSM)(windows_core::Interface::as_raw(self), core::mem::transmute(psmd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).CallbackSM)(windows_core::Interface::as_raw(self), core::mem::transmute(psmd), umsg, wparam, lparam).ok() } } #[repr(C)] @@ -36568,7 +36568,7 @@ impl IShellNameSpace { (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnumOptions(&self, lval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnumOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(lval)).ok() + (windows_core::Interface::vtable(self).SetEnumOptions)(windows_core::Interface::as_raw(self), lval).ok() } pub unsafe fn SelectedItem(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36594,24 +36594,24 @@ impl IShellNameSpace { (windows_core::Interface::vtable(self).Depth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDepth(&self, idepth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDepth)(windows_core::Interface::as_raw(self), core::mem::transmute(idepth)).ok() + (windows_core::Interface::vtable(self).SetDepth)(windows_core::Interface::as_raw(self), idepth).ok() } pub unsafe fn Mode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Mode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMode(&self, umode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(umode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), umode).ok() } pub unsafe fn Flags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Flags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn SetTVFlags(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTVFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetTVFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn TVFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36629,7 +36629,7 @@ impl IShellNameSpace { (windows_core::Interface::vtable(self).CountViewTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetViewType(&self, itype: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetViewType)(windows_core::Interface::as_raw(self), core::mem::transmute(itype)).ok() + (windows_core::Interface::vtable(self).SetViewType)(windows_core::Interface::as_raw(self), itype).ok() } pub unsafe fn SelectedItems(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -36637,7 +36637,7 @@ impl IShellNameSpace { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Expand(&self, var: &super::super::System::Variant::VARIANT, idepth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(var), core::mem::transmute(idepth)).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(var), idepth).ok() } pub unsafe fn UnselectAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnselectAll)(windows_core::Interface::as_raw(self)).ok() @@ -36885,11 +36885,11 @@ windows_core::imp::interface_hierarchy!(IShellPropSheetExt, windows_core::IUnkno impl IShellPropSheetExt { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, pfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), core::mem::transmute(pfnaddpage), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), pfnaddpage, lparam).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn ReplacePage(&self, upageid: u32, pfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReplacePage)(windows_core::Interface::as_raw(self), core::mem::transmute(upageid), core::mem::transmute(pfnreplacewith), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).ReplacePage)(windows_core::Interface::as_raw(self), upageid, pfnreplacewith, lparam).ok() } } #[repr(C)] @@ -37001,16 +37001,16 @@ impl IShellTaskScheduler { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), prt.param().abi(), core::mem::transmute(rtoid), core::mem::transmute(lparam), core::mem::transmute(dwpriority)).ok() + (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), prt.param().abi(), rtoid, lparam, dwpriority).ok() } pub unsafe fn RemoveTasks(&self, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveTasks)(windows_core::Interface::as_raw(self), core::mem::transmute(rtoid), core::mem::transmute(lparam), bwaitifrunning.into()).ok() + (windows_core::Interface::vtable(self).RemoveTasks)(windows_core::Interface::as_raw(self), rtoid, lparam, bwaitifrunning.into()).ok() } pub unsafe fn CountTasks(&self, rtoid: *const windows_core::GUID) -> u32 { - (windows_core::Interface::vtable(self).CountTasks)(windows_core::Interface::as_raw(self), core::mem::transmute(rtoid)) + (windows_core::Interface::vtable(self).CountTasks)(windows_core::Interface::as_raw(self), rtoid) } pub unsafe fn Status(&self, dwreleasestatus: u32, dwthreadtimeout: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreleasestatus), core::mem::transmute(dwthreadtimeout)).ok() + (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), dwreleasestatus, dwthreadtimeout).ok() } } #[repr(C)] @@ -37100,7 +37100,7 @@ impl IShellUIHelper { (windows_core::Interface::vtable(self).NavigateAndFind)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(url), core::mem::transmute_copy(strquery), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: super::super::Foundation::VARIANT_BOOL, strimpexppath: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ImportExportFavorites)(windows_core::Interface::as_raw(self), core::mem::transmute(fimport), core::mem::transmute_copy(strimpexppath)).ok() + (windows_core::Interface::vtable(self).ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport, core::mem::transmute_copy(strimpexppath)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const super::super::System::Variant::VARIANT>) -> windows_core::Result<()> { @@ -37288,7 +37288,7 @@ impl IShellUIHelper2 { (windows_core::Interface::vtable(self).SkipRunOnce)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CustomizeSettings(&self, fsqm: super::super::Foundation::VARIANT_BOOL, fphishing: super::super::Foundation::VARIANT_BOOL, bstrlocale: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CustomizeSettings)(windows_core::Interface::as_raw(self), core::mem::transmute(fsqm), core::mem::transmute(fphishing), core::mem::transmute_copy(bstrlocale)).ok() + (windows_core::Interface::vtable(self).CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm, fphishing, core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -37309,7 +37309,7 @@ impl IShellUIHelper2 { (windows_core::Interface::vtable(self).DiagnoseConnection)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CustomizeClearType)(windows_core::Interface::as_raw(self), core::mem::transmute(fset)).ok() + (windows_core::Interface::vtable(self).CustomizeClearType)(windows_core::Interface::as_raw(self), fset).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -37324,7 +37324,7 @@ impl IShellUIHelper2 { (windows_core::Interface::vtable(self).DefaultSearchProvider)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(fcomplete)).ok() + (windows_core::Interface::vtable(self).RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -37548,10 +37548,10 @@ impl IShellUIHelper3 { (windows_core::Interface::vtable(self).BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(fvisible)).ok() + (windows_core::Interface::vtable(self).SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActivitiesVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(fvisible)).ok() + (windows_core::Interface::vtable(self).SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -37561,7 +37561,7 @@ impl IShellUIHelper3 { (windows_core::Interface::vtable(self).IsSuggestedSitesEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableSuggestedSites)(windows_core::Interface::as_raw(self), core::mem::transmute(fenable)).ok() + (windows_core::Interface::vtable(self).EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrelativeurl)).ok() @@ -37733,7 +37733,7 @@ impl IShellUIHelper4 { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: &super::super::System::Variant::VARIANT, fenabled: super::super::Foundation::VARIANT_BOOL, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(buttonid), core::mem::transmute(fenabled), core::mem::transmute(fvisible)).ok() + (windows_core::Interface::vtable(self).msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(buttonid), fenabled, fvisible).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &windows_core::BSTR, pvardescription: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -37773,7 +37773,7 @@ impl IShellUIHelper4 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), core::mem::transmute(fpreservestate), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: &windows_core::BSTR, bstrfiltername: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(url), core::mem::transmute_copy(bstrfiltername)).ok() @@ -38025,7 +38025,7 @@ impl IShellUIHelper5 { (windows_core::Interface::vtable(self).msLaunchNetworkClientHelp)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msChangeDefaultBrowser(&self, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), core::mem::transmute(fchange)).ok() + (windows_core::Interface::vtable(self).msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -38135,7 +38135,7 @@ impl IShellUIHelper6 { (windows_core::Interface::vtable(self).msClearTile)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(fchange)).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn msPinnedSiteState(&self) -> windows_core::Result { @@ -38143,13 +38143,13 @@ impl IShellUIHelper6 { (windows_core::Interface::vtable(self).msPinnedSiteState)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), core::mem::transmute(fchange)).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), core::mem::transmute(fchange)).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), core::mem::transmute(fchange)).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn msScheduledTileNotification(&self, bstrnotificationxml: &windows_core::BSTR, bstrnotificationid: &windows_core::BSTR, bstrnotificationtag: &windows_core::BSTR, starttime: &super::super::System::Variant::VARIANT, expirationtime: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -38323,14 +38323,14 @@ windows_core::imp::interface_hierarchy!(IShellUIHelper7, windows_core::IUnknown, #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper7 { pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: &windows_core::BSTR, vfflag: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExperimentalFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrflagstring), core::mem::transmute(vfflag)).ok() + (windows_core::Interface::vtable(self).SetExperimentalFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrflagstring), vfflag).ok() } pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetExperimentalFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrflagstring), &mut result__).map(|| result__) } pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: &windows_core::BSTR, dwvalue: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExperimentalValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrvaluestring), core::mem::transmute(dwvalue)).ok() + (windows_core::Interface::vtable(self).SetExperimentalValue)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrvaluestring), dwvalue).ok() } pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -38344,14 +38344,14 @@ impl IShellUIHelper7 { (windows_core::Interface::vtable(self).GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), &mut result__).map(|| result__) } pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: &windows_core::BSTR, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), core::mem::transmute(flag)).ok() + (windows_core::Interface::vtable(self).SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), flag).ok() } pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), &mut result__).map(|| result__) } pub unsafe fn LaunchIE(&self, bstrurl: &windows_core::BSTR, automated: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).LaunchIE)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), core::mem::transmute(automated)).ok() + (windows_core::Interface::vtable(self).LaunchIE)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), automated).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -38659,13 +38659,13 @@ windows_core::imp::interface_hierarchy!(IShellView, windows_core::IUnknown, supe impl IShellView { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg)) + (windows_core::Interface::vtable(self).TranslateAccelerator)(windows_core::Interface::as_raw(self), pmsg) } pub unsafe fn EnableModeless(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UIActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(ustate)).ok() + (windows_core::Interface::vtable(self).UIActivate)(windows_core::Interface::as_raw(self), ustate).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -38676,7 +38676,7 @@ impl IShellView { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateViewWindow)(windows_core::Interface::as_raw(self), psvprevious.param().abi(), core::mem::transmute(pfs), psb.param().abi(), core::mem::transmute(prcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateViewWindow)(windows_core::Interface::as_raw(self), psvprevious.param().abi(), pfs, psb.param().abi(), prcview, &mut result__).map(|| result__) } pub unsafe fn DestroyViewWindow(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DestroyViewWindow)(windows_core::Interface::as_raw(self)).ok() @@ -38687,14 +38687,14 @@ impl IShellView { } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPropertySheetPages(&self, dwreserved: u32, pfn: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddPropertySheetPages)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), core::mem::transmute(pfn), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam).ok() } pub unsafe fn SaveViewState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveViewState)(windows_core::Interface::as_raw(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlitem), core::mem::transmute(uflags)).ok() + (windows_core::Interface::vtable(self).SelectItem)(windows_core::Interface::as_raw(self), pidlitem, uflags).ok() } pub unsafe fn GetItemObject(&self, uitem: _SVGIO) -> windows_core::Result where @@ -38837,18 +38837,18 @@ windows_core::imp::interface_hierarchy!(IShellView2, windows_core::IUnknown, sup #[cfg(feature = "Win32_System_Ole")] impl IShellView2 { pub unsafe fn GetView(&self, pvid: *mut windows_core::GUID, uview: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), core::mem::transmute(pvid), core::mem::transmute(uview)).ok() + (windows_core::Interface::vtable(self).GetView)(windows_core::Interface::as_raw(self), core::mem::transmute(pvid), uview).ok() } pub unsafe fn CreateViewWindow2(&self, lpparams: *const SV2CVW2_PARAMS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreateViewWindow2)(windows_core::Interface::as_raw(self), core::mem::transmute(lpparams)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn HandleRename(&self, pidlnew: *const Common::ITEMIDLIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HandleRename)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlnew)).ok() + (windows_core::Interface::vtable(self).HandleRename)(windows_core::Interface::as_raw(self), pidlnew).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectAndPositionItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SelectAndPositionItem)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlitem), core::mem::transmute(uflags), core::mem::transmute(ppt)).ok() + (windows_core::Interface::vtable(self).SelectAndPositionItem)(windows_core::Interface::as_raw(self), pidlitem, uflags, ppt).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -38925,7 +38925,7 @@ impl IShellView3 { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateViewWindow3)(windows_core::Interface::as_raw(self), psbowner.param().abi(), psvprev.param().abi(), core::mem::transmute(dwviewflags), core::mem::transmute(dwmask), core::mem::transmute(dwflags), core::mem::transmute(fvmode), core::mem::transmute(pvid), core::mem::transmute(prcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateViewWindow3)(windows_core::Interface::as_raw(self), psbowner.param().abi(), psvprev.param().abi(), dwviewflags, dwmask, dwflags, fvmode, pvid, prcview, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Ole")] @@ -38990,36 +38990,36 @@ impl IShellWindows { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), pid.param().abi(), core::mem::transmute(hwnd), core::mem::transmute(swclass), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), pid.param().abi(), hwnd, swclass, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RegisterPending(&self, lthreadid: i32, pvarloc: *const super::super::System::Variant::VARIANT, pvarlocroot: *const super::super::System::Variant::VARIANT, swclass: ShellWindowTypeConstants) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterPending)(windows_core::Interface::as_raw(self), core::mem::transmute(lthreadid), core::mem::transmute(pvarloc), core::mem::transmute(pvarlocroot), core::mem::transmute(swclass), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterPending)(windows_core::Interface::as_raw(self), lthreadid, core::mem::transmute(pvarloc), core::mem::transmute(pvarlocroot), swclass, &mut result__).map(|| result__) } pub unsafe fn Revoke(&self, lcookie: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), core::mem::transmute(lcookie)).ok() + (windows_core::Interface::vtable(self).Revoke)(windows_core::Interface::as_raw(self), lcookie).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn OnNavigate(&self, lcookie: i32, pvarloc: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnNavigate)(windows_core::Interface::as_raw(self), core::mem::transmute(lcookie), core::mem::transmute(pvarloc)).ok() + (windows_core::Interface::vtable(self).OnNavigate)(windows_core::Interface::as_raw(self), lcookie, core::mem::transmute(pvarloc)).ok() } pub unsafe fn OnActivated(&self, lcookie: i32, factive: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), core::mem::transmute(lcookie), core::mem::transmute(factive)).ok() + (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), lcookie, factive).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn FindWindowSW(&self, pvarloc: *const super::super::System::Variant::VARIANT, pvarlocroot: *const super::super::System::Variant::VARIANT, swclass: ShellWindowTypeConstants, phwnd: *mut i32, swfwoptions: ShellWindowFindWindowOptions) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindWindowSW)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarloc), core::mem::transmute(pvarlocroot), core::mem::transmute(swclass), core::mem::transmute(phwnd), core::mem::transmute(swfwoptions), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindWindowSW)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarloc), core::mem::transmute(pvarlocroot), swclass, core::mem::transmute(phwnd), swfwoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnCreated(&self, lcookie: i32, punk: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreated)(windows_core::Interface::as_raw(self), core::mem::transmute(lcookie), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).OnCreated)(windows_core::Interface::as_raw(self), lcookie, punk.param().abi()).ok() } pub unsafe fn ProcessAttachDetach(&self, fattach: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessAttachDetach)(windows_core::Interface::as_raw(self), core::mem::transmute(fattach)).ok() + (windows_core::Interface::vtable(self).ProcessAttachDetach)(windows_core::Interface::as_raw(self), fattach).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -39176,7 +39176,7 @@ impl ISortColumnArray { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetAt(&self, index: u32, sortcolumn: *mut SORTCOLUMN) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(sortcolumn)).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), index, core::mem::transmute(sortcolumn)).ok() } pub unsafe fn GetSortType(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -39357,7 +39357,7 @@ impl IStorageProviderCopyHook { P5: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(operation), core::mem::transmute(flags), srcfile.param().abi(), core::mem::transmute(srcattribs), destfile.param().abi(), core::mem::transmute(destattribs), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd, operation, flags, srcfile.param().abi(), srcattribs, destfile.param().abi(), destattribs, &mut result__).map(|| result__) } } #[repr(C)] @@ -39545,15 +39545,15 @@ windows_core::imp::interface_hierarchy!(IStreamAsync, windows_core::IUnknown, su impl IStreamAsync { #[cfg(feature = "Win32_System_IO")] pub unsafe fn ReadAsync(&self, pv: *mut core::ffi::c_void, cb: u32, pcbread: Option<*mut u32>, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReadAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), core::mem::transmute(cb), core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)).ok() + (windows_core::Interface::vtable(self).ReadAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(pv), cb, core::mem::transmute(pcbread.unwrap_or(core::mem::zeroed())), lpoverlapped).ok() } #[cfg(feature = "Win32_System_IO")] pub unsafe fn WriteAsync(&self, lpbuffer: *const core::ffi::c_void, cb: u32, pcbwritten: Option<*mut u32>, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WriteAsync)(windows_core::Interface::as_raw(self), core::mem::transmute(lpbuffer), core::mem::transmute(cb), core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpoverlapped)).ok() + (windows_core::Interface::vtable(self).WriteAsync)(windows_core::Interface::as_raw(self), lpbuffer, cb, core::mem::transmute(pcbwritten.unwrap_or(core::mem::zeroed())), lpoverlapped).ok() } #[cfg(feature = "Win32_System_IO")] pub unsafe fn OverlappedResult(&self, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OverlappedResult)(windows_core::Interface::as_raw(self), core::mem::transmute(lpoverlapped), core::mem::transmute(lpnumberofbytestransferred), bwait.into()).ok() + (windows_core::Interface::vtable(self).OverlappedResult)(windows_core::Interface::as_raw(self), lpoverlapped, core::mem::transmute(lpnumberofbytestransferred), bwait.into()).ok() } pub unsafe fn CancelIo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelIo)(windows_core::Interface::as_raw(self)).ok() @@ -39656,13 +39656,13 @@ windows_core::imp::define_interface!(ISuspensionDependencyManager, ISuspensionDe windows_core::imp::interface_hierarchy!(ISuspensionDependencyManager, windows_core::IUnknown); impl ISuspensionDependencyManager { pub unsafe fn RegisterAsChild(&self, processhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterAsChild)(windows_core::Interface::as_raw(self), core::mem::transmute(processhandle)).ok() + (windows_core::Interface::vtable(self).RegisterAsChild)(windows_core::Interface::as_raw(self), processhandle).ok() } pub unsafe fn GroupChildWithParent(&self, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GroupChildWithParent)(windows_core::Interface::as_raw(self), core::mem::transmute(childprocesshandle)).ok() + (windows_core::Interface::vtable(self).GroupChildWithParent)(windows_core::Interface::as_raw(self), childprocesshandle).ok() } pub unsafe fn UngroupChildFromParent(&self, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UngroupChildFromParent)(windows_core::Interface::as_raw(self), core::mem::transmute(childprocesshandle)).ok() + (windows_core::Interface::vtable(self).UngroupChildFromParent)(windows_core::Interface::as_raw(self), childprocesshandle).ok() } } #[repr(C)] @@ -39709,7 +39709,7 @@ impl ISyncMgrConflict { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn GetProperty(&self, propkey: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(propkey), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), propkey, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetConflictIdInfo(&self) -> windows_core::Result { @@ -39866,7 +39866,7 @@ impl ISyncMgrConflictItems { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetItem(&self, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_ITEM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(piteminfo)).ok() + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), iindex, core::mem::transmute(piteminfo)).ok() } } #[repr(C)] @@ -39943,7 +39943,7 @@ impl ISyncMgrConflictResolutionItems { } pub unsafe fn GetItem(&self, iindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), iindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -40004,16 +40004,16 @@ impl ISyncMgrConflictResolveInfo { } pub unsafe fn GetItemChoice(&self, ichoice: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemChoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ichoice), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemChoice)(windows_core::Interface::as_raw(self), ichoice, &mut result__).map(|| result__) } pub unsafe fn SetPresenterNextStep(&self, npresenternextstep: SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPresenterNextStep)(windows_core::Interface::as_raw(self), core::mem::transmute(npresenternextstep)).ok() + (windows_core::Interface::vtable(self).SetPresenterNextStep)(windows_core::Interface::as_raw(self), npresenternextstep).ok() } pub unsafe fn SetPresenterChoice(&self, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPresenterChoice)(windows_core::Interface::as_raw(self), core::mem::transmute(npresenterchoice), fapplytoall.into()).ok() + (windows_core::Interface::vtable(self).SetPresenterChoice)(windows_core::Interface::as_raw(self), npresenterchoice, fapplytoall.into()).ok() } pub unsafe fn SetItemChoices(&self, prgiconflictitemindexes: *mut u32, cchoices: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItemChoices)(windows_core::Interface::as_raw(self), core::mem::transmute(prgiconflictitemindexes), core::mem::transmute(cchoices)).ok() + (windows_core::Interface::vtable(self).SetItemChoices)(windows_core::Interface::as_raw(self), core::mem::transmute(prgiconflictitemindexes), cchoices).ok() } } #[repr(C)] @@ -40124,7 +40124,7 @@ impl ISyncMgrConflictStore { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToConflict)(windows_core::Interface::as_raw(self), core::mem::transmute(pconflictidinfo), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BindToConflict)(windows_core::Interface::as_raw(self), pconflictidinfo, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveConflicts(&self, rgconflictidinfo: &[SYNCMGR_CONFLICT_ID_INFO]) -> windows_core::Result<()> { @@ -40214,7 +40214,7 @@ impl ISyncMgrControl { P2: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).StartHandlerSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), core::mem::transmute(hwndowner), punk.param().abi(), core::mem::transmute(nsynccontrolflags), presult.param().abi()).ok() + (windows_core::Interface::vtable(self).StartHandlerSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), hwndowner, punk.param().abi(), nsynccontrolflags, presult.param().abi()).ok() } pub unsafe fn StartItemSync(&self, pszhandlerid: P0, ppszitemids: &[windows_core::PCWSTR], hwndowner: super::super::Foundation::HWND, punk: P4, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: P6) -> windows_core::Result<()> where @@ -40222,10 +40222,10 @@ impl ISyncMgrControl { P4: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).StartItemSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), core::mem::transmute(hwndowner), punk.param().abi(), core::mem::transmute(nsynccontrolflags), presult.param().abi()).ok() + (windows_core::Interface::vtable(self).StartItemSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), hwndowner, punk.param().abi(), nsynccontrolflags, presult.param().abi()).ok() } pub unsafe fn StartSyncAll(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).StartSyncAll)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner)).ok() + (windows_core::Interface::vtable(self).StartSyncAll)(windows_core::Interface::as_raw(self), hwndowner).ok() } pub unsafe fn StopHandlerSync(&self, pszhandlerid: P0) -> windows_core::Result<()> where @@ -40243,27 +40243,27 @@ impl ISyncMgrControl { (windows_core::Interface::vtable(self).StopSyncAll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn UpdateHandlerCollection(&self, rclsidcollectionid: *const windows_core::GUID, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateHandlerCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsidcollectionid), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).UpdateHandlerCollection)(windows_core::Interface::as_raw(self), rclsidcollectionid, ncontrolflags).ok() } pub unsafe fn UpdateHandler(&self, pszhandlerid: P0, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateHandler)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).UpdateHandler)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), ncontrolflags).ok() } pub unsafe fn UpdateItem(&self, pszhandlerid: P0, pszitemid: P1, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateItem)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).UpdateItem)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), ncontrolflags).ok() } pub unsafe fn UpdateEvents(&self, pszhandlerid: P0, pszitemid: P1, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateEvents)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).UpdateEvents)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), ncontrolflags).ok() } pub unsafe fn UpdateConflict(&self, pszhandlerid: P0, pszitemid: P1, pconflict: P2, nreason: SYNCMGR_UPDATE_REASON) -> windows_core::Result<()> where @@ -40271,33 +40271,33 @@ impl ISyncMgrControl { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateConflict)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), pconflict.param().abi(), core::mem::transmute(nreason)).ok() + (windows_core::Interface::vtable(self).UpdateConflict)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), pconflict.param().abi(), nreason).ok() } pub unsafe fn UpdateConflicts(&self, pszhandlerid: P0, pszitemid: P1, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateConflicts)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).UpdateConflicts)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), ncontrolflags).ok() } pub unsafe fn ActivateHandler(&self, factivate: bool, pszhandlerid: P1, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateHandler)(windows_core::Interface::as_raw(self), factivate.into(), pszhandlerid.param().abi(), core::mem::transmute(hwndowner), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).ActivateHandler)(windows_core::Interface::as_raw(self), factivate.into(), pszhandlerid.param().abi(), hwndowner, ncontrolflags).ok() } pub unsafe fn EnableHandler(&self, fenable: bool, pszhandlerid: P1, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableHandler)(windows_core::Interface::as_raw(self), fenable.into(), pszhandlerid.param().abi(), core::mem::transmute(hwndowner), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).EnableHandler)(windows_core::Interface::as_raw(self), fenable.into(), pszhandlerid.param().abi(), hwndowner, ncontrolflags).ok() } pub unsafe fn EnableItem(&self, fenable: bool, pszhandlerid: P1, pszitemid: P2, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableItem)(windows_core::Interface::as_raw(self), fenable.into(), pszhandlerid.param().abi(), pszitemid.param().abi(), core::mem::transmute(hwndowner), core::mem::transmute(ncontrolflags)).ok() + (windows_core::Interface::vtable(self).EnableItem)(windows_core::Interface::as_raw(self), fenable.into(), pszhandlerid.param().abi(), pszitemid.param().abi(), hwndowner, ncontrolflags).ok() } } #[repr(C)] @@ -40430,7 +40430,7 @@ impl ISyncMgrEnumItems { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -40718,7 +40718,7 @@ impl ISyncMgrEventLinkUIOperation { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), core::mem::transmute(rguideventid), pevent.param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), rguideventid, pevent.param().abi()).ok() } } #[repr(C)] @@ -40755,7 +40755,7 @@ impl ISyncMgrEventStore { } pub unsafe fn GetEvent(&self, rguideventid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(rguideventid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), rguideventid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveEvent(&self, pguideventids: &[windows_core::GUID]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(pguideventids.as_ptr()), pguideventids.len().try_into().unwrap()).ok() @@ -40840,7 +40840,7 @@ impl ISyncMgrHandler { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidobjectid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), rguidobjectid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCapabilities(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -40861,7 +40861,7 @@ impl ISyncMgrHandler { P3: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), core::mem::transmute(hwndowner), psessioncreator.param().abi(), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), hwndowner, psessioncreator.param().abi(), punk.param().abi()).ok() } } #[repr(C)] @@ -41147,13 +41147,13 @@ impl ISyncMgrRegister { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterSyncMgrHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidhandler), pwszdescription.param().abi(), core::mem::transmute(dwsyncmgrregisterflags)).ok() + (windows_core::Interface::vtable(self).RegisterSyncMgrHandler)(windows_core::Interface::as_raw(self), clsidhandler, pwszdescription.param().abi(), dwsyncmgrregisterflags).ok() } pub unsafe fn UnregisterSyncMgrHandler(&self, clsidhandler: *const windows_core::GUID, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterSyncMgrHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidhandler), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).UnregisterSyncMgrHandler)(windows_core::Interface::as_raw(self), clsidhandler, dwreserved).ok() } pub unsafe fn GetHandlerRegistrationInfo(&self, clsidhandler: *const windows_core::GUID, pdwsyncmgrregisterflags: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetHandlerRegistrationInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(clsidhandler), core::mem::transmute(pdwsyncmgrregisterflags)).ok() + (windows_core::Interface::vtable(self).GetHandlerRegistrationInfo)(windows_core::Interface::as_raw(self), clsidhandler, core::mem::transmute(pdwsyncmgrregisterflags)).ok() } } #[repr(C)] @@ -41389,7 +41389,7 @@ impl ISyncMgrSyncCallback { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), pszitemid.param().abi(), pszprogresstext.param().abi(), core::mem::transmute(nstatus), core::mem::transmute(ucurrentstep), core::mem::transmute(umaxstep), core::mem::transmute(pncancelrequest)).ok() + (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), pszitemid.param().abi(), pszprogresstext.param().abi(), nstatus, ucurrentstep, umaxstep, core::mem::transmute(pncancelrequest)).ok() } pub unsafe fn SetHandlerProgressText(&self, pszprogresstext: P0, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::Result<()> where @@ -41407,7 +41407,7 @@ impl ISyncMgrSyncCallback { P7: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ReportEvent)(windows_core::Interface::as_raw(self), pszitemid.param().abi(), core::mem::transmute(nlevel), core::mem::transmute(nflags), pszname.param().abi(), pszdescription.param().abi(), pszlinktext.param().abi(), pszlinkreference.param().abi(), pszcontext.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReportEvent)(windows_core::Interface::as_raw(self), pszitemid.param().abi(), nlevel, nflags, pszname.param().abi(), pszdescription.param().abi(), pszlinktext.param().abi(), pszlinkreference.param().abi(), pszcontext.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CanContinue(&self, pszitemid: P0) -> windows_core::Result<()> where @@ -41566,7 +41566,7 @@ impl ISyncMgrSyncItem { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidobjectid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), rguidobjectid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCapabilities(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -41857,7 +41857,7 @@ windows_core::imp::define_interface!(ISyncMgrSyncResult, ISyncMgrSyncResult_Vtbl windows_core::imp::interface_hierarchy!(ISyncMgrSyncResult, windows_core::IUnknown); impl ISyncMgrSyncResult { pub unsafe fn Result(&self, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Result)(windows_core::Interface::as_raw(self), core::mem::transmute(nstatus), core::mem::transmute(cerror), core::mem::transmute(cconflicts)).ok() + (windows_core::Interface::vtable(self).Result)(windows_core::Interface::as_raw(self), nstatus, cerror, cconflicts).ok() } } #[repr(C)] @@ -41885,7 +41885,7 @@ windows_core::imp::define_interface!(ISyncMgrSynchronize, ISyncMgrSynchronize_Vt windows_core::imp::interface_hierarchy!(ISyncMgrSynchronize, windows_core::IUnknown); impl ISyncMgrSynchronize { pub unsafe fn Initialize(&self, dwreserved: u32, dwsyncmgrflags: u32, lpcookie: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(dwreserved), core::mem::transmute(dwsyncmgrflags), lpcookie.len().try_into().unwrap(), core::mem::transmute(lpcookie.as_ptr())).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), dwreserved, dwsyncmgrflags, lpcookie.len().try_into().unwrap(), core::mem::transmute(lpcookie.as_ptr())).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetHandlerInfo(&self) -> windows_core::Result<*mut SYNCMGRHANDLERINFO> { @@ -41901,10 +41901,10 @@ impl ISyncMgrSynchronize { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetItemObject)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemObject)(windows_core::Interface::as_raw(self), itemid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowProperties(&self, hwndparent: super::super::Foundation::HWND, itemid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(itemid)).ok() + (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), hwndparent, itemid).ok() } pub unsafe fn SetProgressCallback(&self, lpcallback: P0) -> windows_core::Result<()> where @@ -41913,16 +41913,16 @@ impl ISyncMgrSynchronize { (windows_core::Interface::vtable(self).SetProgressCallback)(windows_core::Interface::as_raw(self), lpcallback.param().abi()).ok() } pub unsafe fn PrepareForSync(&self, pitemids: &[windows_core::GUID], hwndparent: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrepareForSync)(windows_core::Interface::as_raw(self), pitemids.len().try_into().unwrap(), core::mem::transmute(pitemids.as_ptr()), core::mem::transmute(hwndparent), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).PrepareForSync)(windows_core::Interface::as_raw(self), pitemids.len().try_into().unwrap(), core::mem::transmute(pitemids.as_ptr()), hwndparent, dwreserved).ok() } pub unsafe fn Synchronize(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), hwndparent).ok() } pub unsafe fn SetItemStatus(&self, pitemid: *const windows_core::GUID, dwsyncmgrstatus: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItemStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(pitemid), core::mem::transmute(dwsyncmgrstatus)).ok() + (windows_core::Interface::vtable(self).SetItemStatus)(windows_core::Interface::as_raw(self), pitemid, dwsyncmgrstatus).ok() } pub unsafe fn ShowError(&self, hwndparent: super::super::Foundation::HWND, errorid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowError)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(errorid)).ok() + (windows_core::Interface::vtable(self).ShowError)(windows_core::Interface::as_raw(self), hwndparent, errorid).ok() } } #[repr(C)] @@ -42034,37 +42034,37 @@ windows_core::imp::define_interface!(ISyncMgrSynchronizeCallback, ISyncMgrSynchr windows_core::imp::interface_hierarchy!(ISyncMgrSynchronizeCallback, windows_core::IUnknown); impl ISyncMgrSynchronizeCallback { pub unsafe fn ShowPropertiesCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowPropertiesCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).ShowPropertiesCompleted)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn PrepareForSyncCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PrepareForSyncCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).PrepareForSyncCompleted)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn SynchronizeCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SynchronizeCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(hr)).ok() + (windows_core::Interface::vtable(self).SynchronizeCompleted)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn ShowErrorCompleted(&self, hr: windows_core::HRESULT, pitemids: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowErrorCompleted)(windows_core::Interface::as_raw(self), core::mem::transmute(hr), pitemids.len().try_into().unwrap(), core::mem::transmute(pitemids.as_ptr())).ok() + (windows_core::Interface::vtable(self).ShowErrorCompleted)(windows_core::Interface::as_raw(self), hr, pitemids.len().try_into().unwrap(), core::mem::transmute(pitemids.as_ptr())).ok() } pub unsafe fn EnableModeless(&self, fenable: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into()).ok() } pub unsafe fn Progress(&self, itemid: *const windows_core::GUID, psyncprogressitem: *const SYNCMGRPROGRESSITEM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), core::mem::transmute(itemid), core::mem::transmute(psyncprogressitem)).ok() + (windows_core::Interface::vtable(self).Progress)(windows_core::Interface::as_raw(self), itemid, psyncprogressitem).ok() } pub unsafe fn LogError(&self, dwerrorlevel: u32, pszerrortext: P1, psynclogerror: *const SYNCMGRLOGERRORINFO) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LogError)(windows_core::Interface::as_raw(self), core::mem::transmute(dwerrorlevel), pszerrortext.param().abi(), core::mem::transmute(psynclogerror)).ok() + (windows_core::Interface::vtable(self).LogError)(windows_core::Interface::as_raw(self), dwerrorlevel, pszerrortext.param().abi(), psynclogerror).ok() } pub unsafe fn DeleteLogError(&self, errorid: *const windows_core::GUID, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteLogError)(windows_core::Interface::as_raw(self), core::mem::transmute(errorid), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).DeleteLogError)(windows_core::Interface::as_raw(self), errorid, dwreserved).ok() } pub unsafe fn EstablishConnection(&self, pwszconnection: P0, dwreserved: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EstablishConnection)(windows_core::Interface::as_raw(self), pwszconnection.param().abi(), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).EstablishConnection)(windows_core::Interface::as_raw(self), pwszconnection.param().abi(), dwreserved).ok() } } #[repr(C)] @@ -42151,7 +42151,7 @@ windows_core::imp::define_interface!(ISyncMgrSynchronizeInvoke, ISyncMgrSynchron windows_core::imp::interface_hierarchy!(ISyncMgrSynchronizeInvoke, windows_core::IUnknown); impl ISyncMgrSynchronizeInvoke { pub unsafe fn UpdateItems(&self, dwinvokeflags: u32, clsid: *const windows_core::GUID, pcookie: &[u8]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateItems)(windows_core::Interface::as_raw(self), core::mem::transmute(dwinvokeflags), core::mem::transmute(clsid), pcookie.len().try_into().unwrap(), core::mem::transmute(pcookie.as_ptr())).ok() + (windows_core::Interface::vtable(self).UpdateItems)(windows_core::Interface::as_raw(self), dwinvokeflags, clsid, pcookie.len().try_into().unwrap(), core::mem::transmute(pcookie.as_ptr())).ok() } pub unsafe fn UpdateAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateAll)(windows_core::Interface::as_raw(self)).ok() @@ -42192,7 +42192,7 @@ windows_core::imp::define_interface!(ISyncMgrUIOperation, ISyncMgrUIOperation_Vt windows_core::imp::interface_hierarchy!(ISyncMgrUIOperation, windows_core::IUnknown); impl ISyncMgrUIOperation { pub unsafe fn Run(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndowner)) + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), hwndowner) } } #[repr(C)] @@ -42243,16 +42243,16 @@ impl ITaskbarList { (windows_core::Interface::vtable(self).HrInit)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddTab(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddTab)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).AddTab)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn DeleteTab(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DeleteTab)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).DeleteTab)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn ActivateTab(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateTab)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).ActivateTab)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn SetActiveAlt(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetActiveAlt)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd).ok() } } #[repr(C)] @@ -42317,7 +42317,7 @@ impl core::ops::Deref for ITaskbarList2 { windows_core::imp::interface_hierarchy!(ITaskbarList2, windows_core::IUnknown, ITaskbarList); impl ITaskbarList2 { pub unsafe fn MarkFullscreenWindow(&self, hwnd: super::super::Foundation::HWND, ffullscreen: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MarkFullscreenWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), ffullscreen.into()).ok() + (windows_core::Interface::vtable(self).MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd, ffullscreen.into()).ok() } } #[repr(C)] @@ -42351,50 +42351,50 @@ impl core::ops::Deref for ITaskbarList3 { windows_core::imp::interface_hierarchy!(ITaskbarList3, windows_core::IUnknown, ITaskbarList, ITaskbarList2); impl ITaskbarList3 { pub unsafe fn SetProgressValue(&self, hwnd: super::super::Foundation::HWND, ullcompleted: u64, ulltotal: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgressValue)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(ullcompleted), core::mem::transmute(ulltotal)).ok() + (windows_core::Interface::vtable(self).SetProgressValue)(windows_core::Interface::as_raw(self), hwnd, ullcompleted, ulltotal).ok() } pub unsafe fn SetProgressState(&self, hwnd: super::super::Foundation::HWND, tbpflags: TBPFLAG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetProgressState)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(tbpflags)).ok() + (windows_core::Interface::vtable(self).SetProgressState)(windows_core::Interface::as_raw(self), hwnd, tbpflags).ok() } pub unsafe fn RegisterTab(&self, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterTab)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtab), core::mem::transmute(hwndmdi)).ok() + (windows_core::Interface::vtable(self).RegisterTab)(windows_core::Interface::as_raw(self), hwndtab, hwndmdi).ok() } pub unsafe fn UnregisterTab(&self, hwndtab: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterTab)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtab)).ok() + (windows_core::Interface::vtable(self).UnregisterTab)(windows_core::Interface::as_raw(self), hwndtab).ok() } pub unsafe fn SetTabOrder(&self, hwndtab: super::super::Foundation::HWND, hwndinsertbefore: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTabOrder)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtab), core::mem::transmute(hwndinsertbefore)).ok() + (windows_core::Interface::vtable(self).SetTabOrder)(windows_core::Interface::as_raw(self), hwndtab, hwndinsertbefore).ok() } pub unsafe fn SetTabActive(&self, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTabActive)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtab), core::mem::transmute(hwndmdi), core::mem::transmute(dwreserved)).ok() + (windows_core::Interface::vtable(self).SetTabActive)(windows_core::Interface::as_raw(self), hwndtab, hwndmdi, dwreserved).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ThumbBarAddButtons(&self, hwnd: super::super::Foundation::HWND, pbutton: &[THUMBBUTTON]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThumbBarAddButtons)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() + (windows_core::Interface::vtable(self).ThumbBarAddButtons)(windows_core::Interface::as_raw(self), hwnd, pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ThumbBarUpdateButtons(&self, hwnd: super::super::Foundation::HWND, pbutton: &[THUMBBUTTON]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThumbBarUpdateButtons)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() + (windows_core::Interface::vtable(self).ThumbBarUpdateButtons)(windows_core::Interface::as_raw(self), hwnd, pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn ThumbBarSetImageList(&self, hwnd: super::super::Foundation::HWND, himl: super::Controls::HIMAGELIST) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ThumbBarSetImageList)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(himl)).ok() + (windows_core::Interface::vtable(self).ThumbBarSetImageList)(windows_core::Interface::as_raw(self), hwnd, himl).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetOverlayIcon(&self, hwnd: super::super::Foundation::HWND, hicon: super::WindowsAndMessaging::HICON, pszdescription: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOverlayIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(hicon), pszdescription.param().abi()).ok() + (windows_core::Interface::vtable(self).SetOverlayIcon)(windows_core::Interface::as_raw(self), hwnd, hicon, pszdescription.param().abi()).ok() } pub unsafe fn SetThumbnailTooltip(&self, hwnd: super::super::Foundation::HWND, psztip: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailTooltip)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), psztip.param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnailTooltip)(windows_core::Interface::as_raw(self), hwnd, psztip.param().abi()).ok() } pub unsafe fn SetThumbnailClip(&self, hwnd: super::super::Foundation::HWND, prcclip: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetThumbnailClip)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(prcclip)).ok() + (windows_core::Interface::vtable(self).SetThumbnailClip)(windows_core::Interface::as_raw(self), hwnd, prcclip).ok() } } #[repr(C)] @@ -42523,7 +42523,7 @@ impl core::ops::Deref for ITaskbarList4 { windows_core::imp::interface_hierarchy!(ITaskbarList4, windows_core::IUnknown, ITaskbarList, ITaskbarList2, ITaskbarList3); impl ITaskbarList4 { pub unsafe fn SetTabProperties(&self, hwndtab: super::super::Foundation::HWND, stpflags: STPFLAG) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTabProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtab), core::mem::transmute(stpflags)).ok() + (windows_core::Interface::vtable(self).SetTabProperties)(windows_core::Interface::as_raw(self), hwndtab, stpflags).ok() } } #[repr(C)] @@ -42557,10 +42557,10 @@ impl IThumbnailCache { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetThumbnail)(windows_core::Interface::as_raw(self), pshellitem.param().abi(), core::mem::transmute(cxyrequestedthumbsize), core::mem::transmute(flags), core::mem::transmute(ppvthumb.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pthumbnailid.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetThumbnail)(windows_core::Interface::as_raw(self), pshellitem.param().abi(), cxyrequestedthumbsize, flags, core::mem::transmute(ppvthumb.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(pthumbnailid.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn GetThumbnailByID(&self, thumbnailid: WTS_THUMBNAILID, cxyrequestedthumbsize: u32, ppvthumb: Option<*mut Option>, poutflags: Option<*mut WTS_CACHEFLAGS>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThumbnailByID)(windows_core::Interface::as_raw(self), core::mem::transmute(thumbnailid), core::mem::transmute(cxyrequestedthumbsize), core::mem::transmute(ppvthumb.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutflags.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetThumbnailByID)(windows_core::Interface::as_raw(self), core::mem::transmute(thumbnailid), cxyrequestedthumbsize, core::mem::transmute(ppvthumb.unwrap_or(core::mem::zeroed())), core::mem::transmute(poutflags.unwrap_or(core::mem::zeroed()))).ok() } } #[repr(C)] @@ -42601,7 +42601,7 @@ impl IThumbnailCachePrimer { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PageInThumbnail)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(wtsflags), core::mem::transmute(cxyrequestedthumbsize)).ok() + (windows_core::Interface::vtable(self).PageInThumbnail)(windows_core::Interface::as_raw(self), psi.param().abi(), wtsflags, cxyrequestedthumbsize).ok() } } #[repr(C)] @@ -42634,7 +42634,7 @@ impl IThumbnailCapture { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CaptureThumbnail)(windows_core::Interface::as_raw(self), core::mem::transmute(pmaxsize), phtmldoc2.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CaptureThumbnail)(windows_core::Interface::as_raw(self), pmaxsize, phtmldoc2.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -42680,7 +42680,7 @@ impl IThumbnailHandlerFactory { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetThumbnailHandler)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlchild), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetThumbnailHandler)(windows_core::Interface::as_raw(self), pidlchild, pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -42715,7 +42715,7 @@ windows_core::imp::interface_hierarchy!(IThumbnailProvider, windows_core::IUnkno impl IThumbnailProvider { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetThumbnail(&self, cx: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, pdwalpha: *mut WTS_ALPHATYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThumbnail)(windows_core::Interface::as_raw(self), core::mem::transmute(cx), core::mem::transmute(phbmp), core::mem::transmute(pdwalpha)).ok() + (windows_core::Interface::vtable(self).GetThumbnail)(windows_core::Interface::as_raw(self), cx, core::mem::transmute(phbmp), core::mem::transmute(pdwalpha)).ok() } } #[repr(C)] @@ -42749,7 +42749,7 @@ windows_core::imp::define_interface!(IThumbnailSettings, IThumbnailSettings_Vtbl windows_core::imp::interface_hierarchy!(IThumbnailSettings, windows_core::IUnknown); impl IThumbnailSettings { pub unsafe fn SetContext(&self, dwcontext: WTS_CONTEXTFLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcontext)).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), dwcontext).ok() } } #[repr(C)] @@ -42781,7 +42781,7 @@ impl IThumbnailStreamCache { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetThumbnailStream)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(cacheid), core::mem::transmute(options), core::mem::transmute(requestedthumbnailsize), core::mem::transmute(thumbnailsize), core::mem::transmute(thumbnailstream)).ok() + (windows_core::Interface::vtable(self).GetThumbnailStream)(windows_core::Interface::as_raw(self), path.param().abi(), cacheid, options, requestedthumbnailsize, core::mem::transmute(thumbnailsize), core::mem::transmute(thumbnailstream)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetThumbnailStream(&self, path: P0, cacheid: u64, thumbnailsize: super::super::Foundation::SIZE, thumbnailstream: P3) -> windows_core::Result<()> @@ -42789,7 +42789,7 @@ impl IThumbnailStreamCache { P0: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailStream)(windows_core::Interface::as_raw(self), path.param().abi(), core::mem::transmute(cacheid), core::mem::transmute(thumbnailsize), thumbnailstream.param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnailStream)(windows_core::Interface::as_raw(self), path.param().abi(), cacheid, core::mem::transmute(thumbnailsize), thumbnailstream.param().abi()).ok() } } #[repr(C)] @@ -42845,10 +42845,10 @@ impl ITrackShellMenu { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObscured)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndtb), punkband.param().abi(), core::mem::transmute(dwsmsetflags)).ok() + (windows_core::Interface::vtable(self).SetObscured)(windows_core::Interface::as_raw(self), hwndtb, punkband.param().abi(), dwsmsetflags).ok() } pub unsafe fn Popup(&self, hwnd: super::super::Foundation::HWND, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Popup)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(ppt), core::mem::transmute(prcexclude), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Popup)(windows_core::Interface::as_raw(self), hwnd, core::mem::transmute(ppt), core::mem::transmute(prcexclude), dwflags).ok() } } #[repr(C)] @@ -42890,7 +42890,7 @@ impl ITranscodeImage { P0: windows_core::Param, P4: windows_core::Param, { - (windows_core::Interface::vtable(self).TranscodeImage)(windows_core::Interface::as_raw(self), pshellitem.param().abi(), core::mem::transmute(uimaxwidth), core::mem::transmute(uimaxheight), core::mem::transmute(flags), pvimage.param().abi(), core::mem::transmute(puiwidth), core::mem::transmute(puiheight)).ok() + (windows_core::Interface::vtable(self).TranscodeImage)(windows_core::Interface::as_raw(self), pshellitem.param().abi(), uimaxwidth, uimaxheight, flags, pvimage.param().abi(), core::mem::transmute(puiwidth), core::mem::transmute(puiheight)).ok() } } #[repr(C)] @@ -42924,10 +42924,10 @@ windows_core::imp::define_interface!(ITransferAdviseSink, ITransferAdviseSink_Vt windows_core::imp::interface_hierarchy!(ITransferAdviseSink, windows_core::IUnknown); impl ITransferAdviseSink { pub unsafe fn UpdateProgress(&self, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(ullsizecurrent), core::mem::transmute(ullsizetotal), core::mem::transmute(nfilescurrent), core::mem::transmute(nfilestotal), core::mem::transmute(nfolderscurrent), core::mem::transmute(nfolderstotal)).ok() + (windows_core::Interface::vtable(self).UpdateProgress)(windows_core::Interface::as_raw(self), ullsizecurrent, ullsizetotal, nfilescurrent, nfilestotal, nfolderscurrent, nfolderstotal).ok() } pub unsafe fn UpdateTransferState(&self, ts: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateTransferState)(windows_core::Interface::as_raw(self), core::mem::transmute(ts)).ok() + (windows_core::Interface::vtable(self).UpdateTransferState)(windows_core::Interface::as_raw(self), ts).ok() } pub unsafe fn ConfirmOverwrite(&self, psisource: P0, psidestparent: P1, pszname: P2) -> windows_core::Result<()> where @@ -42948,20 +42948,20 @@ impl ITransferAdviseSink { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FileFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pszitem.param().abi(), core::mem::transmute(hrerror), core::mem::transmute(pszrename.as_ptr()), pszrename.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).FileFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pszitem.param().abi(), hrerror, core::mem::transmute(pszrename.as_ptr()), pszrename.len().try_into().unwrap()).ok() } pub unsafe fn SubStreamFailure(&self, psi: P0, pszstreamname: P1, hrerror: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SubStreamFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pszstreamname.param().abi(), core::mem::transmute(hrerror)).ok() + (windows_core::Interface::vtable(self).SubStreamFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pszstreamname.param().abi(), hrerror).ok() } pub unsafe fn PropertyFailure(&self, psi: P0, pkey: *const super::super::Foundation::PROPERTYKEY, hrerror: windows_core::HRESULT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PropertyFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(pkey), core::mem::transmute(hrerror)).ok() + (windows_core::Interface::vtable(self).PropertyFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pkey, hrerror).ok() } } #[repr(C)] @@ -43041,13 +43041,13 @@ impl ITransferDestination { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn CreateItem(&self, pszname: P0, 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<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(dwattributes), core::mem::transmute(ullsize), core::mem::transmute(flags), core::mem::transmute(riiditem), core::mem::transmute(ppvitem), core::mem::transmute(riidresources), core::mem::transmute(ppvresources)).ok() + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), pszname.param().abi(), dwattributes, ullsize, flags, riiditem, core::mem::transmute(ppvitem), riidresources, core::mem::transmute(ppvresources)).ok() } } #[repr(C)] @@ -43130,7 +43130,7 @@ impl ITransferSource { (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties(&self, pproparray: P0) -> windows_core::Result<()> @@ -43143,7 +43143,7 @@ impl ITransferSource { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenItem)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(flags), core::mem::transmute(riid), core::mem::transmute(ppv)).ok() + (windows_core::Interface::vtable(self).OpenItem)(windows_core::Interface::as_raw(self), psi.param().abi(), flags, riid, core::mem::transmute(ppv)).ok() } pub unsafe fn MoveItem(&self, psi: P0, psiparentdst: P1, psznamedst: P2, flags: u32) -> windows_core::Result where @@ -43152,7 +43152,7 @@ impl ITransferSource { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveItem)(windows_core::Interface::as_raw(self), psi.param().abi(), psiparentdst.param().abi(), psznamedst.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MoveItem)(windows_core::Interface::as_raw(self), psi.param().abi(), psiparentdst.param().abi(), psznamedst.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RecycleItem(&self, psisource: P0, psiparentdest: P1, flags: u32) -> windows_core::Result where @@ -43160,13 +43160,13 @@ impl ITransferSource { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RecycleItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), psiparentdest.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RecycleItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), psiparentdest.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveItem(&self, psisource: P0, flags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), core::mem::transmute(flags)).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), flags).ok() } pub unsafe fn RenameItem(&self, psisource: P0, psznewname: P1, flags: u32) -> windows_core::Result where @@ -43174,7 +43174,7 @@ impl ITransferSource { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), psznewname.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), psznewname.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LinkItem(&self, psisource: P0, psiparentdest: P1, psznewname: P2, flags: u32) -> windows_core::Result where @@ -43183,7 +43183,7 @@ impl ITransferSource { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LinkItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), psiparentdest.param().abi(), psznewname.param().abi(), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LinkItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), psiparentdest.param().abi(), psznewname.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ApplyPropertiesToItem(&self, psisource: P0) -> windows_core::Result where @@ -43466,13 +43466,13 @@ impl ITravelLog { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Travel)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(ioffset)).ok() + (windows_core::Interface::vtable(self).Travel)(windows_core::Interface::as_raw(self), punk.param().abi(), ioffset).ok() } pub unsafe fn GetTravelEntry(&self, punk: P0, ioffset: i32, ppte: Option<*mut Option>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTravelEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(ioffset), core::mem::transmute(ppte.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).GetTravelEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), ioffset, core::mem::transmute(ppte.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FindTravelEntry(&self, punk: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result @@ -43480,20 +43480,20 @@ impl ITravelLog { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTravelEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(pidl), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindTravelEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), pidl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetToolTipText(&self, punk: P0, ioffset: i32, idstemplate: i32, pwztext: &mut [u16]) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetToolTipText)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(ioffset), core::mem::transmute(idstemplate), core::mem::transmute(pwztext.as_ptr()), pwztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetToolTipText)(windows_core::Interface::as_raw(self), punk.param().abi(), ioffset, idstemplate, core::mem::transmute(pwztext.as_ptr()), pwztext.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn InsertMenuEntries(&self, punk: P0, hmenu: super::WindowsAndMessaging::HMENU, npos: i32, idfirst: i32, idlast: i32, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertMenuEntries)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(hmenu), core::mem::transmute(npos), core::mem::transmute(idfirst), core::mem::transmute(idlast), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).InsertMenuEntries)(windows_core::Interface::as_raw(self), punk.param().abi(), hmenu, npos, idfirst, idlast, dwflags).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -43629,7 +43629,7 @@ windows_core::imp::interface_hierarchy!(ITravelLogClient, windows_core::IUnknown impl ITravelLogClient { pub unsafe fn FindWindowByIndex(&self, dwid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindWindowByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindWindowByIndex)(windows_core::Interface::as_raw(self), dwid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetWindowData(&self, pstream: P0, pwindata: *mut WINDOWDATA) -> windows_core::Result<()> @@ -43642,7 +43642,7 @@ impl ITravelLogClient { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadHistoryPosition)(windows_core::Interface::as_raw(self), pszurllocation.param().abi(), core::mem::transmute(dwposition)).ok() + (windows_core::Interface::vtable(self).LoadHistoryPosition)(windows_core::Interface::as_raw(self), pszurllocation.param().abi(), dwposition).ok() } } #[repr(C)] @@ -43766,18 +43766,18 @@ impl ITravelLogStg { } pub unsafe fn EnumEntries(&self, flags: TLENUMF) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumEntries)(windows_core::Interface::as_raw(self), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindEntries(&self, flags: TLENUMF, pszurl: P1) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindEntries)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), pszurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindEntries)(windows_core::Interface::as_raw(self), flags, pszurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCount(&self, flags: TLENUMF) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), flags, &mut result__).map(|| result__) } pub unsafe fn RemoveEntry(&self, ptle: P0) -> windows_core::Result<()> where @@ -43787,7 +43787,7 @@ impl ITravelLogStg { } pub unsafe fn GetRelativeEntry(&self, ioffset: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRelativeEntry)(windows_core::Interface::as_raw(self), core::mem::transmute(ioffset), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRelativeEntry)(windows_core::Interface::as_raw(self), ioffset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -43890,13 +43890,13 @@ windows_core::imp::define_interface!(ITrayDeskBand, ITrayDeskBand_Vtbl, 0x6d67e8 windows_core::imp::interface_hierarchy!(ITrayDeskBand, windows_core::IUnknown); impl ITrayDeskBand { pub unsafe fn ShowDeskBand(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowDeskBand)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).ShowDeskBand)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn HideDeskBand(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HideDeskBand)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).HideDeskBand)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn IsDeskBandShown(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).IsDeskBandShown)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).IsDeskBandShown)(windows_core::Interface::as_raw(self), clsid).ok() } pub unsafe fn DeskBandRegistrationChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeskBandRegistrationChanged)(windows_core::Interface::as_raw(self)).ok() @@ -44032,7 +44032,7 @@ impl IUniformResourceLocatorA { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), pcszurl.param().abi(), core::mem::transmute(dwinflags)).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), pcszurl.param().abi(), dwinflags).ok() } pub unsafe fn GetURL(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -44093,7 +44093,7 @@ impl IUniformResourceLocatorW { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), pcszurl.param().abi(), core::mem::transmute(dwinflags)).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), pcszurl.param().abi(), dwinflags).ok() } pub unsafe fn GetURL(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -44156,7 +44156,7 @@ impl IUpdateIDList { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.param().abi(), core::mem::transmute(pidlin), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.param().abi(), pidlin, &mut result__).map(|| result__) } } #[repr(C)] @@ -44256,23 +44256,23 @@ impl IUserNotification { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBalloonInfo)(windows_core::Interface::as_raw(self), psztitle.param().abi(), psztext.param().abi(), core::mem::transmute(dwinfoflags)).ok() + (windows_core::Interface::vtable(self).SetBalloonInfo)(windows_core::Interface::as_raw(self), psztitle.param().abi(), psztext.param().abi(), dwinfoflags).ok() } pub unsafe fn SetBalloonRetry(&self, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalloonRetry)(windows_core::Interface::as_raw(self), core::mem::transmute(dwshowtime), core::mem::transmute(dwinterval), core::mem::transmute(cretrycount)).ok() + (windows_core::Interface::vtable(self).SetBalloonRetry)(windows_core::Interface::as_raw(self), dwshowtime, dwinterval, cretrycount).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetIconInfo(&self, hicon: super::WindowsAndMessaging::HICON, psztooltip: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hicon), psztooltip.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), hicon, psztooltip.param().abi()).ok() } pub unsafe fn Show(&self, pqc: P0, dwcontinuepollinterval: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pqc.param().abi(), core::mem::transmute(dwcontinuepollinterval)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pqc.param().abi(), dwcontinuepollinterval).ok() } pub unsafe fn PlaySound(&self, pszsoundname: P0) -> windows_core::Result<()> where @@ -44347,24 +44347,24 @@ impl IUserNotification2 { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBalloonInfo)(windows_core::Interface::as_raw(self), psztitle.param().abi(), psztext.param().abi(), core::mem::transmute(dwinfoflags)).ok() + (windows_core::Interface::vtable(self).SetBalloonInfo)(windows_core::Interface::as_raw(self), psztitle.param().abi(), psztext.param().abi(), dwinfoflags).ok() } pub unsafe fn SetBalloonRetry(&self, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBalloonRetry)(windows_core::Interface::as_raw(self), core::mem::transmute(dwshowtime), core::mem::transmute(dwinterval), core::mem::transmute(cretrycount)).ok() + (windows_core::Interface::vtable(self).SetBalloonRetry)(windows_core::Interface::as_raw(self), dwshowtime, dwinterval, cretrycount).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetIconInfo(&self, hicon: super::WindowsAndMessaging::HICON, psztooltip: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(hicon), psztooltip.param().abi()).ok() + (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), hicon, psztooltip.param().abi()).ok() } pub unsafe fn Show(&self, pqc: P0, dwcontinuepollinterval: u32, psink: P2) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pqc.param().abi(), core::mem::transmute(dwcontinuepollinterval), psink.param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pqc.param().abi(), dwcontinuepollinterval, psink.param().abi()).ok() } pub unsafe fn PlaySound(&self, pszsoundname: P0) -> windows_core::Result<()> where @@ -44435,13 +44435,13 @@ windows_core::imp::define_interface!(IUserNotificationCallback, IUserNotificatio windows_core::imp::interface_hierarchy!(IUserNotificationCallback, windows_core::IUnknown); impl IUserNotificationCallback { pub unsafe fn OnBalloonUserClick(&self, pt: *const super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnBalloonUserClick)(windows_core::Interface::as_raw(self), core::mem::transmute(pt)).ok() + (windows_core::Interface::vtable(self).OnBalloonUserClick)(windows_core::Interface::as_raw(self), pt).ok() } pub unsafe fn OnLeftClick(&self, pt: *const super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLeftClick)(windows_core::Interface::as_raw(self), core::mem::transmute(pt)).ok() + (windows_core::Interface::vtable(self).OnLeftClick)(windows_core::Interface::as_raw(self), pt).ok() } pub unsafe fn OnContextMenu(&self, pt: *const super::super::Foundation::POINT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnContextMenu)(windows_core::Interface::as_raw(self), core::mem::transmute(pt)).ok() + (windows_core::Interface::vtable(self).OnContextMenu)(windows_core::Interface::as_raw(self), pt).ok() } } #[repr(C)] @@ -44512,14 +44512,14 @@ windows_core::imp::interface_hierarchy!(IVirtualDesktopManager, windows_core::IU impl IVirtualDesktopManager { pub unsafe fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsWindowOnCurrentVirtualDesktop)(windows_core::Interface::as_raw(self), core::mem::transmute(toplevelwindow), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsWindowOnCurrentVirtualDesktop)(windows_core::Interface::as_raw(self), toplevelwindow, &mut result__).map(|| result__) } pub unsafe fn GetWindowDesktopId(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWindowDesktopId)(windows_core::Interface::as_raw(self), core::mem::transmute(toplevelwindow), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWindowDesktopId)(windows_core::Interface::as_raw(self), toplevelwindow, &mut result__).map(|| result__) } pub unsafe fn MoveWindowToDesktop(&self, toplevelwindow: super::super::Foundation::HWND, desktopid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveWindowToDesktop)(windows_core::Interface::as_raw(self), core::mem::transmute(toplevelwindow), core::mem::transmute(desktopid)).ok() + (windows_core::Interface::vtable(self).MoveWindowToDesktop)(windows_core::Interface::as_raw(self), toplevelwindow, desktopid).ok() } } #[repr(C)] @@ -44577,17 +44577,17 @@ windows_core::imp::interface_hierarchy!(IVisualProperties, windows_core::IUnknow impl IVisualProperties { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetWatermark(&self, hbmp: super::super::Graphics::Gdi::HBITMAP, vpwf: VPWATERMARKFLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWatermark)(windows_core::Interface::as_raw(self), core::mem::transmute(hbmp), core::mem::transmute(vpwf)).ok() + (windows_core::Interface::vtable(self).SetWatermark)(windows_core::Interface::as_raw(self), hbmp, vpwf).ok() } pub unsafe fn SetColor(&self, vpcf: VPCOLORFLAGS, cr: super::super::Foundation::COLORREF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(vpcf), core::mem::transmute(cr)).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), vpcf, cr).ok() } pub unsafe fn GetColor(&self, vpcf: VPCOLORFLAGS) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(vpcf), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetColor)(windows_core::Interface::as_raw(self), vpcf, &mut result__).map(|| result__) } pub unsafe fn SetItemHeight(&self, cyiteminpixels: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetItemHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(cyiteminpixels)).ok() + (windows_core::Interface::vtable(self).SetItemHeight)(windows_core::Interface::as_raw(self), cyiteminpixels).ok() } pub unsafe fn GetItemHeight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -44595,7 +44595,7 @@ impl IVisualProperties { } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), core::mem::transmute(plf), bredraw.into()).ok() + (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), plf, bredraw.into()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFont(&self, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { @@ -44774,28 +44774,28 @@ impl IWebBrowser { (windows_core::Interface::vtable(self).Left)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeft(&self, left: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(left)).ok() + (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), left).ok() } pub unsafe fn Top(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Top)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTop(&self, top: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), top).ok() } pub unsafe fn Width(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, width: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(width)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), width).ok() } pub unsafe fn Height(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Height)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHeight(&self, height: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), height).ok() } pub unsafe fn LocationName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -45110,11 +45110,11 @@ impl IWebBrowser2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn QueryStatusWB(&self, cmdid: super::super::System::Ole::OLECMDID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryStatusWB)(windows_core::Interface::as_raw(self), core::mem::transmute(cmdid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryStatusWB)(windows_core::Interface::as_raw(self), cmdid, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ExecWB(&self, cmdid: super::super::System::Ole::OLECMDID, cmdexecopt: super::super::System::Ole::OLECMDEXECOPT, pvain: Option<*const super::super::System::Variant::VARIANT>, pvaout: Option<*mut super::super::System::Variant::VARIANT>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ExecWB)(windows_core::Interface::as_raw(self), core::mem::transmute(cmdid), core::mem::transmute(cmdexecopt), core::mem::transmute(pvain.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvaout.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).ExecWB)(windows_core::Interface::as_raw(self), cmdid, cmdexecopt, core::mem::transmute(pvain.unwrap_or(core::mem::zeroed())), core::mem::transmute(pvaout.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ShowBrowserBar(&self, pvaclsid: *const super::super::System::Variant::VARIANT, pvarshow: Option<*const super::super::System::Variant::VARIANT>, pvarsize: Option<*const super::super::System::Variant::VARIANT>) -> windows_core::Result<()> { @@ -45130,49 +45130,49 @@ impl IWebBrowser2 { (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetOffline(&self, boffline: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOffline)(windows_core::Interface::as_raw(self), core::mem::transmute(boffline)).ok() + (windows_core::Interface::vtable(self).SetOffline)(windows_core::Interface::as_raw(self), boffline).ok() } pub unsafe fn Silent(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Silent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSilent(&self, bsilent: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), core::mem::transmute(bsilent)).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), bsilent).ok() } pub unsafe fn RegisterAsBrowser(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RegisterAsBrowser)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRegisterAsBrowser(&self, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRegisterAsBrowser)(windows_core::Interface::as_raw(self), core::mem::transmute(bregister)).ok() + (windows_core::Interface::vtable(self).SetRegisterAsBrowser)(windows_core::Interface::as_raw(self), bregister).ok() } pub unsafe fn RegisterAsDropTarget(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RegisterAsDropTarget)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRegisterAsDropTarget(&self, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRegisterAsDropTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(bregister)).ok() + (windows_core::Interface::vtable(self).SetRegisterAsDropTarget)(windows_core::Interface::as_raw(self), bregister).ok() } pub unsafe fn TheaterMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TheaterMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTheaterMode(&self, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTheaterMode)(windows_core::Interface::as_raw(self), core::mem::transmute(bregister)).ok() + (windows_core::Interface::vtable(self).SetTheaterMode)(windows_core::Interface::as_raw(self), bregister).ok() } pub unsafe fn AddressBar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AddressBar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAddressBar(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAddressBar)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetAddressBar)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn Resizable(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Resizable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetResizable(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResizable)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetResizable)(windows_core::Interface::as_raw(self), value).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -45447,14 +45447,14 @@ impl IWebBrowserApp { (windows_core::Interface::vtable(self).Visible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVisible(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn StatusBar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).StatusBar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetStatusBar(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatusBar)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetStatusBar)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn StatusText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -45468,21 +45468,21 @@ impl IWebBrowserApp { (windows_core::Interface::vtable(self).ToolBar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetToolBar(&self, value: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetToolBar)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetToolBar)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn MenuBar(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MenuBar)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMenuBar(&self, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMenuBar)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SetMenuBar)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn FullScreen(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FullScreen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFullScreen(&self, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), core::mem::transmute(bfullscreen)).ok() + (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), bfullscreen).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -45813,7 +45813,7 @@ impl IWebWizardHost { (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpropertyname), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SetWizardButtons(&self, vfenableback: super::super::Foundation::VARIANT_BOOL, vfenablenext: super::super::Foundation::VARIANT_BOOL, vflastpage: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWizardButtons)(windows_core::Interface::as_raw(self), core::mem::transmute(vfenableback), core::mem::transmute(vfenablenext), core::mem::transmute(vflastpage)).ok() + (windows_core::Interface::vtable(self).SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback, vfenablenext, vflastpage).ok() } pub unsafe fn SetHeaderText(&self, bstrheadertitle: &windows_core::BSTR, bstrheadersubtitle: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetHeaderText)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrheadertitle), core::mem::transmute_copy(bstrheadersubtitle)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs index 0d46376fcb..8ea42f2a57 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -2,7 +2,7 @@ #[inline] pub unsafe fn AddStroke(hrc: HRECOCONTEXT, ppacketdesc: *const PACKET_DESCRIPTION, cbpacket: u32, ppacket: *const u8, pxform: *const super::super::Graphics::Gdi::XFORM) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn AddStroke(hrc : HRECOCONTEXT, ppacketdesc : *const PACKET_DESCRIPTION, cbpacket : u32, ppacket : *const u8, pxform : *const super::super::Graphics::Gdi:: XFORM) -> windows_core::HRESULT); - AddStroke(core::mem::transmute(hrc), core::mem::transmute(ppacketdesc), core::mem::transmute(cbpacket), core::mem::transmute(ppacket), core::mem::transmute(pxform)).ok() + AddStroke(hrc, ppacketdesc, cbpacket, ppacket, pxform).ok() } #[inline] pub unsafe fn AddWordsToWordList(hwl: HRECOWORDLIST, pwcwords: P1) -> windows_core::Result<()> @@ -10,17 +10,17 @@ where P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn AddWordsToWordList(hwl : HRECOWORDLIST, pwcwords : windows_core::PCWSTR) -> windows_core::HRESULT); - AddWordsToWordList(core::mem::transmute(hwl), pwcwords.param().abi()).ok() + AddWordsToWordList(hwl, pwcwords.param().abi()).ok() } #[inline] pub unsafe fn AdviseInkChange(hrc: HRECOCONTEXT, bnewstroke: bool) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn AdviseInkChange(hrc : HRECOCONTEXT, bnewstroke : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - AdviseInkChange(core::mem::transmute(hrc), bnewstroke.into()).ok() + AdviseInkChange(hrc, bnewstroke.into()).ok() } #[inline] pub unsafe fn CreateContext(hrec: HRECOGNIZER, phrc: *mut HRECOCONTEXT) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn CreateContext(hrec : HRECOGNIZER, phrc : *mut HRECOCONTEXT) -> windows_core::HRESULT); - CreateContext(core::mem::transmute(hrec), core::mem::transmute(phrc)).ok() + CreateContext(hrec, core::mem::transmute(phrc)).ok() } #[inline] pub unsafe fn CreateRecognizer(pclsid: *mut windows_core::GUID, phrec: *mut HRECOGNIZER) -> windows_core::Result<()> { @@ -30,22 +30,22 @@ pub unsafe fn CreateRecognizer(pclsid: *mut windows_core::GUID, phrec: *mut HREC #[inline] pub unsafe fn DestroyContext(hrc: HRECOCONTEXT) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn DestroyContext(hrc : HRECOCONTEXT) -> windows_core::HRESULT); - DestroyContext(core::mem::transmute(hrc)).ok() + DestroyContext(hrc).ok() } #[inline] pub unsafe fn DestroyRecognizer(hrec: HRECOGNIZER) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn DestroyRecognizer(hrec : HRECOGNIZER) -> windows_core::HRESULT); - DestroyRecognizer(core::mem::transmute(hrec)).ok() + DestroyRecognizer(hrec).ok() } #[inline] pub unsafe fn DestroyWordList(hwl: HRECOWORDLIST) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn DestroyWordList(hwl : HRECOWORDLIST) -> windows_core::HRESULT); - DestroyWordList(core::mem::transmute(hwl)).ok() + DestroyWordList(hwl).ok() } #[inline] pub unsafe fn EndInkInput(hrc: HRECOCONTEXT) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn EndInkInput(hrc : HRECOCONTEXT) -> windows_core::HRESULT); - EndInkInput(core::mem::transmute(hrc)).ok() + EndInkInput(hrc).ok() } #[inline] pub unsafe fn GetAllRecognizers(recognizerclsids: *mut *mut windows_core::GUID, count: *mut u32) -> windows_core::Result<()> { @@ -55,37 +55,37 @@ pub unsafe fn GetAllRecognizers(recognizerclsids: *mut *mut windows_core::GUID, #[inline] pub unsafe fn GetBestResultString(hrc: HRECOCONTEXT, pcsize: *mut u32, pwcbestresult: Option) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetBestResultString(hrc : HRECOCONTEXT, pcsize : *mut u32, pwcbestresult : windows_core::PWSTR) -> windows_core::HRESULT); - GetBestResultString(core::mem::transmute(hrc), core::mem::transmute(pcsize), core::mem::transmute(pwcbestresult.unwrap_or(core::mem::zeroed()))).ok() + GetBestResultString(hrc, core::mem::transmute(pcsize), core::mem::transmute(pwcbestresult.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetLatticePtr(hrc: HRECOCONTEXT, pplattice: *mut *mut RECO_LATTICE) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetLatticePtr(hrc : HRECOCONTEXT, pplattice : *mut *mut RECO_LATTICE) -> windows_core::HRESULT); - GetLatticePtr(core::mem::transmute(hrc), core::mem::transmute(pplattice)).ok() + GetLatticePtr(hrc, core::mem::transmute(pplattice)).ok() } #[inline] pub unsafe fn GetLeftSeparator(hrc: HRECOCONTEXT, pcsize: *mut u32, pwcleftseparator: windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetLeftSeparator(hrc : HRECOCONTEXT, pcsize : *mut u32, pwcleftseparator : windows_core::PWSTR) -> windows_core::HRESULT); - GetLeftSeparator(core::mem::transmute(hrc), core::mem::transmute(pcsize), core::mem::transmute(pwcleftseparator)).ok() + GetLeftSeparator(hrc, core::mem::transmute(pcsize), core::mem::transmute(pwcleftseparator)).ok() } #[inline] pub unsafe fn GetRecoAttributes(hrec: HRECOGNIZER, precoattrs: *mut RECO_ATTRS) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetRecoAttributes(hrec : HRECOGNIZER, precoattrs : *mut RECO_ATTRS) -> windows_core::HRESULT); - GetRecoAttributes(core::mem::transmute(hrec), core::mem::transmute(precoattrs)).ok() + GetRecoAttributes(hrec, core::mem::transmute(precoattrs)).ok() } #[inline] pub unsafe fn GetResultPropertyList(hrec: HRECOGNIZER, ppropertycount: *mut u32, ppropertyguid: *mut windows_core::GUID) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetResultPropertyList(hrec : HRECOGNIZER, ppropertycount : *mut u32, ppropertyguid : *mut windows_core::GUID) -> windows_core::HRESULT); - GetResultPropertyList(core::mem::transmute(hrec), core::mem::transmute(ppropertycount), core::mem::transmute(ppropertyguid)).ok() + GetResultPropertyList(hrec, core::mem::transmute(ppropertycount), core::mem::transmute(ppropertyguid)).ok() } #[inline] pub unsafe fn GetRightSeparator(hrc: HRECOCONTEXT, pcsize: *mut u32, pwcrightseparator: windows_core::PWSTR) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetRightSeparator(hrc : HRECOCONTEXT, pcsize : *mut u32, pwcrightseparator : windows_core::PWSTR) -> windows_core::HRESULT); - GetRightSeparator(core::mem::transmute(hrc), core::mem::transmute(pcsize), core::mem::transmute(pwcrightseparator)).ok() + GetRightSeparator(hrc, core::mem::transmute(pcsize), core::mem::transmute(pwcrightseparator)).ok() } #[inline] pub unsafe fn GetUnicodeRanges(hrec: HRECOGNIZER, pcranges: *mut u32, pcr: *mut CHARACTER_RANGE) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn GetUnicodeRanges(hrec : HRECOGNIZER, pcranges : *mut u32, pcr : *mut CHARACTER_RANGE) -> windows_core::HRESULT); - GetUnicodeRanges(core::mem::transmute(hrec), core::mem::transmute(pcranges), core::mem::transmute(pcr)).ok() + GetUnicodeRanges(hrec, core::mem::transmute(pcranges), core::mem::transmute(pcr)).ok() } #[inline] pub unsafe fn IsStringSupported(hrc: HRECOCONTEXT, wcstring: u32, pwcstring: P2) -> windows_core::Result<()> @@ -93,7 +93,7 @@ where P2: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn IsStringSupported(hrc : HRECOCONTEXT, wcstring : u32, pwcstring : windows_core::PCWSTR) -> windows_core::HRESULT); - IsStringSupported(core::mem::transmute(hrc), core::mem::transmute(wcstring), pwcstring.param().abi()).ok() + IsStringSupported(hrc, wcstring, pwcstring.param().abi()).ok() } #[inline] pub unsafe fn LoadCachedAttributes(clsid: windows_core::GUID, precoattributes: *mut RECO_ATTRS) -> windows_core::Result<()> { @@ -106,17 +106,17 @@ where P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn MakeWordList(hrec : HRECOGNIZER, pbuffer : windows_core::PCWSTR, phwl : *mut HRECOWORDLIST) -> windows_core::HRESULT); - MakeWordList(core::mem::transmute(hrec), pbuffer.param().abi(), core::mem::transmute(phwl)).ok() + MakeWordList(hrec, pbuffer.param().abi(), core::mem::transmute(phwl)).ok() } #[inline] pub unsafe fn Process(hrc: HRECOCONTEXT, pbpartialprocessing: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn Process(hrc : HRECOCONTEXT, pbpartialprocessing : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - Process(core::mem::transmute(hrc), core::mem::transmute(pbpartialprocessing)).ok() + Process(hrc, core::mem::transmute(pbpartialprocessing)).ok() } #[inline] pub unsafe fn SetEnabledUnicodeRanges(hrc: HRECOCONTEXT, cranges: u32, pcr: *mut CHARACTER_RANGE) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn SetEnabledUnicodeRanges(hrc : HRECOCONTEXT, cranges : u32, pcr : *mut CHARACTER_RANGE) -> windows_core::HRESULT); - SetEnabledUnicodeRanges(core::mem::transmute(hrc), core::mem::transmute(cranges), core::mem::transmute(pcr)).ok() + SetEnabledUnicodeRanges(hrc, cranges, core::mem::transmute(pcr)).ok() } #[inline] pub unsafe fn SetFactoid(hrc: HRECOCONTEXT, cwcfactoid: u32, pwcfactoid: P2) -> windows_core::Result<()> @@ -124,27 +124,27 @@ where P2: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn SetFactoid(hrc : HRECOCONTEXT, cwcfactoid : u32, pwcfactoid : windows_core::PCWSTR) -> windows_core::HRESULT); - SetFactoid(core::mem::transmute(hrc), core::mem::transmute(cwcfactoid), pwcfactoid.param().abi()).ok() + SetFactoid(hrc, cwcfactoid, pwcfactoid.param().abi()).ok() } #[inline] pub unsafe fn SetFlags(hrc: HRECOCONTEXT, dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn SetFlags(hrc : HRECOCONTEXT, dwflags : u32) -> windows_core::HRESULT); - SetFlags(core::mem::transmute(hrc), core::mem::transmute(dwflags)).ok() + SetFlags(hrc, dwflags).ok() } #[inline] pub unsafe fn SetGuide(hrc: HRECOCONTEXT, pguide: *const RECO_GUIDE, iindex: u32) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn SetGuide(hrc : HRECOCONTEXT, pguide : *const RECO_GUIDE, iindex : u32) -> windows_core::HRESULT); - SetGuide(core::mem::transmute(hrc), core::mem::transmute(pguide), core::mem::transmute(iindex)).ok() + SetGuide(hrc, pguide, iindex).ok() } #[inline] pub unsafe fn SetTextContext(hrc: HRECOCONTEXT, pwcbefore: &[u16], pwcafter: &[u16]) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn SetTextContext(hrc : HRECOCONTEXT, cwcbefore : u32, pwcbefore : windows_core::PCWSTR, cwcafter : u32, pwcafter : windows_core::PCWSTR) -> windows_core::HRESULT); - SetTextContext(core::mem::transmute(hrc), pwcbefore.len().try_into().unwrap(), core::mem::transmute(pwcbefore.as_ptr()), pwcafter.len().try_into().unwrap(), core::mem::transmute(pwcafter.as_ptr())).ok() + SetTextContext(hrc, pwcbefore.len().try_into().unwrap(), core::mem::transmute(pwcbefore.as_ptr()), pwcafter.len().try_into().unwrap(), core::mem::transmute(pwcafter.as_ptr())).ok() } #[inline] pub unsafe fn SetWordList(hrc: HRECOCONTEXT, hwl: HRECOWORDLIST) -> windows_core::Result<()> { windows_targets::link!("inkobjcore.dll" "system" fn SetWordList(hrc : HRECOCONTEXT, hwl : HRECOWORDLIST) -> windows_core::HRESULT); - SetWordList(core::mem::transmute(hrc), core::mem::transmute(hwl)).ok() + SetWordList(hrc, hwl).ok() } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -1269,21 +1269,21 @@ impl IDynamicRenderer { (windows_core::Interface::vtable(self).HWND)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHWND(&self, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn ClipRectangle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ClipRectangle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClipRectangle(&self, prccliprect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(prccliprect)).ok() + (windows_core::Interface::vtable(self).SetClipRectangle)(windows_core::Interface::as_raw(self), prccliprect).ok() } pub unsafe fn ClipRegion(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ClipRegion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetClipRegion(&self, hcliprgn: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetClipRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(hcliprgn)).ok() + (windows_core::Interface::vtable(self).SetClipRegion)(windows_core::Interface::as_raw(self), hcliprgn).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DrawingAttributes(&self) -> windows_core::Result { @@ -1305,13 +1305,13 @@ impl IDynamicRenderer { (windows_core::Interface::vtable(self).SetDataCacheEnabled)(windows_core::Interface::as_raw(self), fcachedata.into()).ok() } pub unsafe fn ReleaseCachedData(&self, strokeid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseCachedData)(windows_core::Interface::as_raw(self), core::mem::transmute(strokeid)).ok() + (windows_core::Interface::vtable(self).ReleaseCachedData)(windows_core::Interface::as_raw(self), strokeid).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Draw(&self, hdc: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc)).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc).ok() } } #[repr(C)] @@ -1559,7 +1559,7 @@ impl IGestureRecognizer { (windows_core::Interface::vtable(self).MaxStrokeCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxStrokeCount(&self, cstrokes: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxStrokeCount)(windows_core::Interface::as_raw(self), core::mem::transmute(cstrokes)).ok() + (windows_core::Interface::vtable(self).SetMaxStrokeCount)(windows_core::Interface::as_raw(self), cstrokes).ok() } pub unsafe fn EnableGestures(&self, pgestures: &[i32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableGestures)(windows_core::Interface::as_raw(self), pgestures.len().try_into().unwrap(), core::mem::transmute(pgestures.as_ptr())).ok() @@ -1644,14 +1644,14 @@ windows_core::imp::interface_hierarchy!(IHandwrittenTextInsertion, windows_core: impl IHandwrittenTextInsertion { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertRecognitionResultsArray(&self, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertRecognitionResultsArray)(windows_core::Interface::as_raw(self), core::mem::transmute(psaalternates), core::mem::transmute(locale), falternatecontainsautospacinginformation.into()).ok() + (windows_core::Interface::vtable(self).InsertRecognitionResultsArray)(windows_core::Interface::as_raw(self), psaalternates, locale, falternatecontainsautospacinginformation.into()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertInkRecognitionResult(&self, piinkrecoresult: P0, locale: u32, falternatecontainsautospacinginformation: bool) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertInkRecognitionResult)(windows_core::Interface::as_raw(self), piinkrecoresult.param().abi(), core::mem::transmute(locale), falternatecontainsautospacinginformation.into()).ok() + (windows_core::Interface::vtable(self).InsertInkRecognitionResult)(windows_core::Interface::as_raw(self), piinkrecoresult.param().abi(), locale, falternatecontainsautospacinginformation.into()).ok() } } #[repr(C)] @@ -1741,14 +1741,14 @@ impl IInkCollector { (windows_core::Interface::vtable(self).hWnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SethWnd(&self, newwindow: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(newwindow)).ok() + (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), newwindow).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(collecting)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), collecting).ok() } pub unsafe fn DefaultDrawingAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1785,7 +1785,7 @@ impl IInkCollector { (windows_core::Interface::vtable(self).AutoRedraw)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoRedraw(&self, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), core::mem::transmute(autoredraw)).ok() + (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw).ok() } pub unsafe fn CollectingInk(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1796,14 +1796,14 @@ impl IInkCollector { (windows_core::Interface::vtable(self).CollectionMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCollectionMode(&self, mode: InkCollectionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCollectionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetCollectionMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn DynamicRendering(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DynamicRendering)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDynamicRendering(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DesiredPacketDescription(&self) -> windows_core::Result { @@ -1838,7 +1838,7 @@ impl IInkCollector { (windows_core::Interface::vtable(self).MousePointer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMousePointer(&self, mousepointer: InkMousePointer) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), core::mem::transmute(mousepointer)).ok() + (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), mousepointer).ok() } pub unsafe fn Cursors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1849,14 +1849,14 @@ impl IInkCollector { (windows_core::Interface::vtable(self).MarginX)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMarginX(&self, marginx: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMarginX)(windows_core::Interface::as_raw(self), core::mem::transmute(marginx)).ok() + (windows_core::Interface::vtable(self).SetMarginX)(windows_core::Interface::as_raw(self), marginx).ok() } pub unsafe fn MarginY(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MarginY)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMarginY(&self, marginy: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMarginY)(windows_core::Interface::as_raw(self), core::mem::transmute(marginy)).ok() + (windows_core::Interface::vtable(self).SetMarginY)(windows_core::Interface::as_raw(self), marginy).ok() } pub unsafe fn Tablet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -1867,14 +1867,14 @@ impl IInkCollector { (windows_core::Interface::vtable(self).SupportHighContrastInk)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSupportHighContrastInk(&self, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), core::mem::transmute(support)).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support).ok() } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), gesture, &mut result__).map(|| result__) } pub unsafe fn GetWindowInputRectangle(&self, windowinputrectangle: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWindowInputRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(windowinputrectangle)).ok() @@ -1886,7 +1886,7 @@ impl IInkCollector { (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.param().abi()).ok() } pub unsafe fn SetAllTabletsMode(&self, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), core::mem::transmute(usemouseforinput)).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput).ok() } pub unsafe fn SetSingleTabletIntegratedMode(&self, tablet: P0) -> windows_core::Result<()> where @@ -1896,10 +1896,10 @@ impl IInkCollector { } pub unsafe fn GetEventInterest(&self, eventid: InkCollectorEventInterest) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), eventid, &mut result__).map(|| result__) } pub unsafe fn SetEventInterest(&self, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2681,7 +2681,7 @@ impl IInkCursors { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2897,7 +2897,7 @@ impl IInkDisp { (windows_core::Interface::vtable(self).Dirty)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDirty(&self, dirty: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDirty)(windows_core::Interface::as_raw(self), core::mem::transmute(dirty)).ok() + (windows_core::Interface::vtable(self).SetDirty)(windows_core::Interface::as_raw(self), dirty).ok() } pub unsafe fn CustomStrokes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2905,7 +2905,7 @@ impl IInkDisp { } pub unsafe fn GetBoundingBox(&self, boundingboxmode: InkBoundingBoxMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBoundingBox)(windows_core::Interface::as_raw(self), core::mem::transmute(boundingboxmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBoundingBox)(windows_core::Interface::as_raw(self), boundingboxmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteStrokes(&self, strokes: P0) -> windows_core::Result<()> where @@ -2924,14 +2924,14 @@ impl IInkDisp { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExtractStrokes)(windows_core::Interface::as_raw(self), strokes.param().abi(), core::mem::transmute(extractflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExtractStrokes)(windows_core::Interface::as_raw(self), strokes.param().abi(), extractflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExtractWithRectangle(&self, rectangle: P0, extractflags: InkExtractFlags) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ExtractWithRectangle)(windows_core::Interface::as_raw(self), rectangle.param().abi(), core::mem::transmute(extractflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExtractWithRectangle)(windows_core::Interface::as_raw(self), rectangle.param().abi(), extractflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clip(&self, rectangle: P0) -> windows_core::Result<()> where @@ -2945,21 +2945,21 @@ impl IInkDisp { } pub unsafe fn HitTestCircle(&self, x: i32, y: i32, radius: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTestCircle)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(radius), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).HitTestCircle)(windows_core::Interface::as_raw(self), x, y, radius, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn HitTestWithRectangle(&self, selectionrectangle: P0, intersectpercent: f32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTestWithRectangle)(windows_core::Interface::as_raw(self), selectionrectangle.param().abi(), core::mem::transmute(intersectpercent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).HitTestWithRectangle)(windows_core::Interface::as_raw(self), selectionrectangle.param().abi(), intersectpercent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn HitTestWithLasso(&self, points: &super::super::System::Variant::VARIANT, intersectpercent: f32, lassopoints: Option<*mut super::super::System::Variant::VARIANT>, strokes: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).HitTestWithLasso)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(points), core::mem::transmute(intersectpercent), core::mem::transmute(lassopoints.unwrap_or(core::mem::zeroed())), core::mem::transmute(strokes)).ok() + (windows_core::Interface::vtable(self).HitTestWithLasso)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(points), intersectpercent, core::mem::transmute(lassopoints.unwrap_or(core::mem::zeroed())), core::mem::transmute(strokes)).ok() } pub unsafe fn NearestPoint(&self, x: i32, y: i32, pointonstroke: *mut f32, distancefrompacket: *mut f32, stroke: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NearestPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(pointonstroke), core::mem::transmute(distancefrompacket), core::mem::transmute(stroke)).ok() + (windows_core::Interface::vtable(self).NearestPoint)(windows_core::Interface::as_raw(self), x, y, core::mem::transmute(pointonstroke), core::mem::transmute(distancefrompacket), core::mem::transmute(stroke)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn CreateStrokes(&self, strokeids: &super::super::System::Variant::VARIANT) -> windows_core::Result { @@ -2976,7 +2976,7 @@ impl IInkDisp { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Save(&self, persistenceformat: InkPersistenceFormat, compressionmode: InkPersistenceCompressionMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute(persistenceformat), core::mem::transmute(compressionmode), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), persistenceformat, compressionmode, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Load(&self, data: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { @@ -2993,7 +2993,7 @@ impl IInkDisp { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ClipboardCopyWithRectangle)(windows_core::Interface::as_raw(self), rectangle.param().abi(), core::mem::transmute(clipboardformats), core::mem::transmute(clipboardmodes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ClipboardCopyWithRectangle)(windows_core::Interface::as_raw(self), rectangle.param().abi(), clipboardformats, clipboardmodes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ClipboardCopy(&self, strokes: P0, clipboardformats: InkClipboardFormats, clipboardmodes: InkClipboardModes) -> windows_core::Result @@ -3001,7 +3001,7 @@ impl IInkDisp { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ClipboardCopy)(windows_core::Interface::as_raw(self), strokes.param().abi(), core::mem::transmute(clipboardformats), core::mem::transmute(clipboardmodes), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ClipboardCopy)(windows_core::Interface::as_raw(self), strokes.param().abi(), clipboardformats, clipboardmodes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CanPaste(&self, dataobject: P0) -> windows_core::Result @@ -3017,7 +3017,7 @@ impl IInkDisp { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ClipboardPaste)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), dataobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ClipboardPaste)(windows_core::Interface::as_raw(self), x, y, dataobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3383,7 +3383,7 @@ impl IInkDivider { (windows_core::Interface::vtable(self).LineHeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLineHeight(&self, lineheight: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLineHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(lineheight)).ok() + (windows_core::Interface::vtable(self).SetLineHeight)(windows_core::Interface::as_raw(self), lineheight).ok() } pub unsafe fn Divide(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3503,7 +3503,7 @@ impl IInkDivisionResult { } pub unsafe fn ResultByType(&self, divisiontype: InkDivisionType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResultByType)(windows_core::Interface::as_raw(self), core::mem::transmute(divisiontype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ResultByType)(windows_core::Interface::as_raw(self), divisiontype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3679,7 +3679,7 @@ impl IInkDivisionUnits { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3760,63 +3760,63 @@ impl IInkDrawingAttributes { (windows_core::Interface::vtable(self).Color)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColor(&self, newcolor: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), core::mem::transmute(newcolor)).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), newcolor).ok() } pub unsafe fn Width(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Width)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWidth(&self, newwidth: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(newwidth)).ok() + (windows_core::Interface::vtable(self).SetWidth)(windows_core::Interface::as_raw(self), newwidth).ok() } pub unsafe fn Height(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Height)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHeight(&self, newheight: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(newheight)).ok() + (windows_core::Interface::vtable(self).SetHeight)(windows_core::Interface::as_raw(self), newheight).ok() } pub unsafe fn FitToCurve(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FitToCurve)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFitToCurve(&self, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFitToCurve)(windows_core::Interface::as_raw(self), core::mem::transmute(flag)).ok() + (windows_core::Interface::vtable(self).SetFitToCurve)(windows_core::Interface::as_raw(self), flag).ok() } pub unsafe fn IgnorePressure(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IgnorePressure)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetIgnorePressure(&self, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIgnorePressure)(windows_core::Interface::as_raw(self), core::mem::transmute(flag)).ok() + (windows_core::Interface::vtable(self).SetIgnorePressure)(windows_core::Interface::as_raw(self), flag).ok() } pub unsafe fn AntiAliased(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AntiAliased)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAntiAliased(&self, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAntiAliased)(windows_core::Interface::as_raw(self), core::mem::transmute(flag)).ok() + (windows_core::Interface::vtable(self).SetAntiAliased)(windows_core::Interface::as_raw(self), flag).ok() } pub unsafe fn Transparency(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Transparency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTransparency(&self, newtransparency: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransparency)(windows_core::Interface::as_raw(self), core::mem::transmute(newtransparency)).ok() + (windows_core::Interface::vtable(self).SetTransparency)(windows_core::Interface::as_raw(self), newtransparency).ok() } pub unsafe fn RasterOperation(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RasterOperation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRasterOperation(&self, newrasteroperation: InkRasterOperation) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRasterOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(newrasteroperation)).ok() + (windows_core::Interface::vtable(self).SetRasterOperation)(windows_core::Interface::as_raw(self), newrasteroperation).ok() } pub unsafe fn PenTip(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PenTip)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPenTip(&self, newpentip: InkPenTip) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPenTip)(windows_core::Interface::as_raw(self), core::mem::transmute(newpentip)).ok() + (windows_core::Interface::vtable(self).SetPenTip)(windows_core::Interface::as_raw(self), newpentip).ok() } pub unsafe fn ExtendedProperties(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4076,21 +4076,21 @@ impl IInkEdit { (windows_core::Interface::vtable(self).UseMouseForInput)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseMouseForInput(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseMouseForInput)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetUseMouseForInput)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn InkMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InkMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInkMode(&self, newval: InkMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInkMode)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetInkMode)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn InkInsertMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InkInsertMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInkInsertMode(&self, newval: InkInsertMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInkInsertMode)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetInkInsertMode)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn DrawingAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4107,7 +4107,7 @@ impl IInkEdit { (windows_core::Interface::vtable(self).RecognitionTimeout)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRecognitionTimeout(&self, newval: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRecognitionTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetRecognitionTimeout)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Recognizer(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4140,20 +4140,20 @@ impl IInkEdit { (windows_core::Interface::vtable(self).SelInksDisplayMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelInksDisplayMode(&self, inkdisplaymode: InkDisplayMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelInksDisplayMode)(windows_core::Interface::as_raw(self), core::mem::transmute(inkdisplaymode)).ok() + (windows_core::Interface::vtable(self).SetSelInksDisplayMode)(windows_core::Interface::as_raw(self), inkdisplaymode).ok() } pub unsafe fn Recognize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Recognize)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), gesture, &mut result__).map(|| result__) } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen).ok() } pub unsafe fn SetBackColor(&self, clr: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), core::mem::transmute(clr)).ok() + (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), clr).ok() } pub unsafe fn BackColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4164,14 +4164,14 @@ impl IInkEdit { (windows_core::Interface::vtable(self).Appearance)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAppearance(&self, pappearance: AppearanceConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAppearance)(windows_core::Interface::as_raw(self), core::mem::transmute(pappearance)).ok() + (windows_core::Interface::vtable(self).SetAppearance)(windows_core::Interface::as_raw(self), pappearance).ok() } pub unsafe fn BorderStyle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BorderStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBorderStyle(&self, pborderstyle: BorderStyleConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBorderStyle)(windows_core::Interface::as_raw(self), core::mem::transmute(pborderstyle)).ok() + (windows_core::Interface::vtable(self).SetBorderStyle)(windows_core::Interface::as_raw(self), pborderstyle).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn Hwnd(&self) -> windows_core::Result { @@ -4221,49 +4221,49 @@ impl IInkEdit { (windows_core::Interface::vtable(self).MousePointer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMousePointer(&self, mousepointer: InkMousePointer) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), core::mem::transmute(mousepointer)).ok() + (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), mousepointer).ok() } pub unsafe fn Locked(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Locked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLocked(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLocked)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetLocked)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn MaxLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaxLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMaxLength(&self, lmaxlength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMaxLength)(windows_core::Interface::as_raw(self), core::mem::transmute(lmaxlength)).ok() + (windows_core::Interface::vtable(self).SetMaxLength)(windows_core::Interface::as_raw(self), lmaxlength).ok() } pub unsafe fn MultiLine(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MultiLine)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMultiLine(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMultiLine)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetMultiLine)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn ScrollBars(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ScrollBars)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetScrollBars(&self, newval: ScrollBarsConstants) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetScrollBars)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetScrollBars)(windows_core::Interface::as_raw(self), newval).ok() } pub unsafe fn DisableNoScroll(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DisableNoScroll)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDisableNoScroll(&self, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDisableNoScroll)(windows_core::Interface::as_raw(self), core::mem::transmute(newval)).ok() + (windows_core::Interface::vtable(self).SetDisableNoScroll)(windows_core::Interface::as_raw(self), newval).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SelAlignment(&self) -> windows_core::Result { @@ -4349,14 +4349,14 @@ impl IInkEdit { (windows_core::Interface::vtable(self).SelStart)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelStart(&self, plselstart: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelStart)(windows_core::Interface::as_raw(self), core::mem::transmute(plselstart)).ok() + (windows_core::Interface::vtable(self).SetSelStart)(windows_core::Interface::as_raw(self), plselstart).ok() } pub unsafe fn SelLength(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SelLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSelLength(&self, plsellength: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelLength)(windows_core::Interface::as_raw(self), core::mem::transmute(plsellength)).ok() + (windows_core::Interface::vtable(self).SetSelLength)(windows_core::Interface::as_raw(self), plsellength).ok() } pub unsafe fn SelText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5558,25 +5558,25 @@ windows_core::imp::define_interface!(IInkLineInfo, IInkLineInfo_Vtbl, 0x9c1c5ad6 windows_core::imp::interface_hierarchy!(IInkLineInfo, windows_core::IUnknown); impl IInkLineInfo { pub unsafe fn SetFormat(&self, pim: *const INKMETRIC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pim)).ok() + (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), pim).ok() } pub unsafe fn GetFormat(&self, pim: *const INKMETRIC) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(pim)).ok() + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), pim).ok() } pub unsafe fn GetInkExtent(&self, pim: *const INKMETRIC, pnwidth: *const u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInkExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(pim), core::mem::transmute(pnwidth)).ok() + (windows_core::Interface::vtable(self).GetInkExtent)(windows_core::Interface::as_raw(self), pim, pnwidth).ok() } pub unsafe fn GetCandidate(&self, ncandidatenum: u32, pwcrecogword: P1, pcwcrecogword: *const u32, dwflags: u32) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidate)(windows_core::Interface::as_raw(self), core::mem::transmute(ncandidatenum), pwcrecogword.param().abi(), core::mem::transmute(pcwcrecogword), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).GetCandidate)(windows_core::Interface::as_raw(self), ncandidatenum, pwcrecogword.param().abi(), pcwcrecogword, dwflags).ok() } pub unsafe fn SetCandidate(&self, ncandidatenum: u32, strrecogword: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCandidate)(windows_core::Interface::as_raw(self), core::mem::transmute(ncandidatenum), strrecogword.param().abi()).ok() + (windows_core::Interface::vtable(self).SetCandidate)(windows_core::Interface::as_raw(self), ncandidatenum, strrecogword.param().abi()).ok() } pub unsafe fn Recognize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Recognize)(windows_core::Interface::as_raw(self)).ok() @@ -5659,14 +5659,14 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).hWnd)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SethWnd(&self, newwindow: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(newwindow)).ok() + (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), newwindow).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(collecting)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), collecting).ok() } pub unsafe fn DefaultDrawingAttributes(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5703,7 +5703,7 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).AutoRedraw)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoRedraw(&self, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), core::mem::transmute(autoredraw)).ok() + (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw).ok() } pub unsafe fn CollectingInk(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5714,14 +5714,14 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).CollectionMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCollectionMode(&self, mode: InkCollectionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCollectionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetCollectionMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn DynamicRendering(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DynamicRendering)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDynamicRendering(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DesiredPacketDescription(&self) -> windows_core::Result { @@ -5756,14 +5756,14 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).MousePointer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMousePointer(&self, mousepointer: InkMousePointer) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), core::mem::transmute(mousepointer)).ok() + (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), mousepointer).ok() } pub unsafe fn EditingMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EditingMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEditingMode(&self, editingmode: InkOverlayEditingMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEditingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(editingmode)).ok() + (windows_core::Interface::vtable(self).SetEditingMode)(windows_core::Interface::as_raw(self), editingmode).ok() } pub unsafe fn Selection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5780,21 +5780,21 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).EraserMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEraserMode(&self, erasermode: InkOverlayEraserMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEraserMode)(windows_core::Interface::as_raw(self), core::mem::transmute(erasermode)).ok() + (windows_core::Interface::vtable(self).SetEraserMode)(windows_core::Interface::as_raw(self), erasermode).ok() } pub unsafe fn EraserWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EraserWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEraserWidth(&self, neweraserwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEraserWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(neweraserwidth)).ok() + (windows_core::Interface::vtable(self).SetEraserWidth)(windows_core::Interface::as_raw(self), neweraserwidth).ok() } pub unsafe fn AttachMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AttachMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachMode(&self, attachmode: InkOverlayAttachMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachMode)(windows_core::Interface::as_raw(self), core::mem::transmute(attachmode)).ok() + (windows_core::Interface::vtable(self).SetAttachMode)(windows_core::Interface::as_raw(self), attachmode).ok() } pub unsafe fn Cursors(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5805,14 +5805,14 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).MarginX)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMarginX(&self, marginx: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMarginX)(windows_core::Interface::as_raw(self), core::mem::transmute(marginx)).ok() + (windows_core::Interface::vtable(self).SetMarginX)(windows_core::Interface::as_raw(self), marginx).ok() } pub unsafe fn MarginY(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MarginY)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMarginY(&self, marginy: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMarginY)(windows_core::Interface::as_raw(self), core::mem::transmute(marginy)).ok() + (windows_core::Interface::vtable(self).SetMarginY)(windows_core::Interface::as_raw(self), marginy).ok() } pub unsafe fn Tablet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5823,18 +5823,18 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).SupportHighContrastInk)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSupportHighContrastInk(&self, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), core::mem::transmute(support)).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support).ok() } pub unsafe fn SupportHighContrastSelectionUI(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSupportHighContrastSelectionUI(&self, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), core::mem::transmute(support)).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), support).ok() } pub unsafe fn HitTestSelection(&self, x: i32, y: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTestSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HitTestSelection)(windows_core::Interface::as_raw(self), x, y, &mut result__).map(|| result__) } pub unsafe fn Draw(&self, rect: P0) -> windows_core::Result<()> where @@ -5843,11 +5843,11 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), rect.param().abi()).ok() } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), gesture, &mut result__).map(|| result__) } pub unsafe fn GetWindowInputRectangle(&self, windowinputrectangle: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWindowInputRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(windowinputrectangle)).ok() @@ -5859,7 +5859,7 @@ impl IInkOverlay { (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.param().abi()).ok() } pub unsafe fn SetAllTabletsMode(&self, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), core::mem::transmute(usemouseforinput)).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput).ok() } pub unsafe fn SetSingleTabletIntegratedMode(&self, tablet: P0) -> windows_core::Result<()> where @@ -5869,10 +5869,10 @@ impl IInkOverlay { } pub unsafe fn GetEventInterest(&self, eventid: InkCollectorEventInterest) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), eventid, &mut result__).map(|| result__) } pub unsafe fn SetEventInterest(&self, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6497,7 +6497,7 @@ impl IInkPicture { (windows_core::Interface::vtable(self).AutoRedraw)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoRedraw(&self, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), core::mem::transmute(autoredraw)).ok() + (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw).ok() } pub unsafe fn CollectingInk(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6508,14 +6508,14 @@ impl IInkPicture { (windows_core::Interface::vtable(self).CollectionMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCollectionMode(&self, mode: InkCollectionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCollectionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetCollectionMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn DynamicRendering(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DynamicRendering)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDynamicRendering(&self, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), core::mem::transmute(enabled)).ok() + (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn DesiredPacketDescription(&self) -> windows_core::Result { @@ -6550,14 +6550,14 @@ impl IInkPicture { (windows_core::Interface::vtable(self).MousePointer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMousePointer(&self, mousepointer: InkMousePointer) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), core::mem::transmute(mousepointer)).ok() + (windows_core::Interface::vtable(self).SetMousePointer)(windows_core::Interface::as_raw(self), mousepointer).ok() } pub unsafe fn EditingMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EditingMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEditingMode(&self, editingmode: InkOverlayEditingMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEditingMode)(windows_core::Interface::as_raw(self), core::mem::transmute(editingmode)).ok() + (windows_core::Interface::vtable(self).SetEditingMode)(windows_core::Interface::as_raw(self), editingmode).ok() } pub unsafe fn Selection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6574,14 +6574,14 @@ impl IInkPicture { (windows_core::Interface::vtable(self).EraserMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEraserMode(&self, erasermode: InkOverlayEraserMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEraserMode)(windows_core::Interface::as_raw(self), core::mem::transmute(erasermode)).ok() + (windows_core::Interface::vtable(self).SetEraserMode)(windows_core::Interface::as_raw(self), erasermode).ok() } pub unsafe fn EraserWidth(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EraserWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEraserWidth(&self, neweraserwidth: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEraserWidth)(windows_core::Interface::as_raw(self), core::mem::transmute(neweraserwidth)).ok() + (windows_core::Interface::vtable(self).SetEraserWidth)(windows_core::Interface::as_raw(self), neweraserwidth).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn putref_Picture(&self, ppicture: P0) -> windows_core::Result<()> @@ -6603,14 +6603,14 @@ impl IInkPicture { (windows_core::Interface::vtable(self).Picture)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSizeMode(&self, smnewsizemode: InkPictureSizeMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSizeMode)(windows_core::Interface::as_raw(self), core::mem::transmute(smnewsizemode)).ok() + (windows_core::Interface::vtable(self).SetSizeMode)(windows_core::Interface::as_raw(self), smnewsizemode).ok() } pub unsafe fn SizeMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SizeMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBackColor(&self, newcolor: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), core::mem::transmute(newcolor)).ok() + (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), newcolor).ok() } pub unsafe fn BackColor(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6625,14 +6625,14 @@ impl IInkPicture { (windows_core::Interface::vtable(self).MarginX)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMarginX(&self, marginx: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMarginX)(windows_core::Interface::as_raw(self), core::mem::transmute(marginx)).ok() + (windows_core::Interface::vtable(self).SetMarginX)(windows_core::Interface::as_raw(self), marginx).ok() } pub unsafe fn MarginY(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MarginY)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMarginY(&self, marginy: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMarginY)(windows_core::Interface::as_raw(self), core::mem::transmute(marginy)).ok() + (windows_core::Interface::vtable(self).SetMarginY)(windows_core::Interface::as_raw(self), marginy).ok() } pub unsafe fn Tablet(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6643,25 +6643,25 @@ impl IInkPicture { (windows_core::Interface::vtable(self).SupportHighContrastInk)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSupportHighContrastInk(&self, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), core::mem::transmute(support)).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support).ok() } pub unsafe fn SupportHighContrastSelectionUI(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetSupportHighContrastSelectionUI(&self, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), core::mem::transmute(support)).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), support).ok() } pub unsafe fn HitTestSelection(&self, x: i32, y: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTestSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HitTestSelection)(windows_core::Interface::as_raw(self), x, y, &mut result__).map(|| result__) } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(gesture), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGestureStatus)(windows_core::Interface::as_raw(self), gesture, &mut result__).map(|| result__) } pub unsafe fn GetWindowInputRectangle(&self, windowinputrectangle: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWindowInputRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(windowinputrectangle)).ok() @@ -6673,7 +6673,7 @@ impl IInkPicture { (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.param().abi()).ok() } pub unsafe fn SetAllTabletsMode(&self, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), core::mem::transmute(usemouseforinput)).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput).ok() } pub unsafe fn SetSingleTabletIntegratedMode(&self, tablet: P0) -> windows_core::Result<()> where @@ -6683,24 +6683,24 @@ impl IInkPicture { } pub unsafe fn GetEventInterest(&self, eventid: InkCollectorEventInterest) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEventInterest)(windows_core::Interface::as_raw(self), eventid, &mut result__).map(|| result__) } pub unsafe fn SetEventInterest(&self, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(eventid), core::mem::transmute(listen)).ok() + (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen).ok() } pub unsafe fn InkEnabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InkEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetInkEnabled(&self, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInkEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(collecting)).ok() + (windows_core::Interface::vtable(self).SetInkEnabled)(windows_core::Interface::as_raw(self), collecting).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetEnabled(&self, vbool: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), core::mem::transmute(vbool)).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), vbool).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7664,7 +7664,7 @@ impl IInkRecognitionAlternates { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7771,7 +7771,7 @@ impl IInkRecognitionResult { } pub unsafe fn AlternatesFromSelection(&self, selectionstart: i32, selectionlength: i32, maximumalternates: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AlternatesFromSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(selectionstart), core::mem::transmute(selectionlength), core::mem::transmute(maximumalternates), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AlternatesFromSelection)(windows_core::Interface::as_raw(self), selectionstart, selectionlength, maximumalternates, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ModifyTopAlternate(&self, alternate: P0) -> windows_core::Result<()> where @@ -8150,7 +8150,7 @@ impl IInkRecognizerContext { (windows_core::Interface::vtable(self).CharacterAutoCompletionMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCharacterAutoCompletionMode(&self, mode: InkRecognizerCharacterAutoCompletionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCharacterAutoCompletionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(mode)).ok() + (windows_core::Interface::vtable(self).SetCharacterAutoCompletionMode)(windows_core::Interface::as_raw(self), mode).ok() } pub unsafe fn Factoid(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8188,7 +8188,7 @@ impl IInkRecognizerContext { (windows_core::Interface::vtable(self).RecognitionFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRecognitionFlags(&self, modes: InkRecognitionModes) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRecognitionFlags)(windows_core::Interface::as_raw(self), core::mem::transmute(modes)).ok() + (windows_core::Interface::vtable(self).SetRecognitionFlags)(windows_core::Interface::as_raw(self), modes).ok() } pub unsafe fn WordList(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8599,21 +8599,21 @@ impl IInkRecognizerGuide { (windows_core::Interface::vtable(self).Rows)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRows(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRows)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetRows)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn Columns(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Columns)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetColumns(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn Midline(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Midline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetMidline(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMidline)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetMidline)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn GuideData(&self, precoguide: *mut InkRecoGuide) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GuideData)(windows_core::Interface::as_raw(self), core::mem::transmute(precoguide)).ok() @@ -8780,11 +8780,11 @@ impl IInkRecognizers { } pub unsafe fn GetDefaultRecognizer(&self, lcid: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultRecognizer)(windows_core::Interface::as_raw(self), core::mem::transmute(lcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultRecognizer)(windows_core::Interface::as_raw(self), lcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8878,28 +8878,28 @@ impl IInkRectangle { (windows_core::Interface::vtable(self).Top)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetTop(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn Left(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Left)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetLeft(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn Bottom(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Bottom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetBottom(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetBottom)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetBottom)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn Right(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Right)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetRight(&self, units: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRight)(windows_core::Interface::as_raw(self), core::mem::transmute(units)).ok() + (windows_core::Interface::vtable(self).SetRight)(windows_core::Interface::as_raw(self), units).ok() } pub unsafe fn Data(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8912,7 +8912,7 @@ impl IInkRectangle { (windows_core::Interface::vtable(self).GetRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(top), core::mem::transmute(left), core::mem::transmute(bottom), core::mem::transmute(right)).ok() } pub unsafe fn SetRectangle(&self, top: i32, left: i32, bottom: i32, right: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(top), core::mem::transmute(left), core::mem::transmute(bottom), core::mem::transmute(right)).ok() + (windows_core::Interface::vtable(self).SetRectangle)(windows_core::Interface::as_raw(self), top, left, bottom, right).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9091,28 +9091,28 @@ impl IInkRenderer { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), strokes.param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc, strokes.param().abi()).ok() } pub unsafe fn DrawStroke(&self, hdc: isize, stroke: P1, drawingattributes: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawStroke)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), stroke.param().abi(), drawingattributes.param().abi()).ok() + (windows_core::Interface::vtable(self).DrawStroke)(windows_core::Interface::as_raw(self), hdc, stroke.param().abi(), drawingattributes.param().abi()).ok() } pub unsafe fn PixelToInkSpace(&self, hdc: isize, x: *mut i32, y: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PixelToInkSpace)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).PixelToInkSpace)(windows_core::Interface::as_raw(self), hdc, core::mem::transmute(x), core::mem::transmute(y)).ok() } pub unsafe fn InkSpaceToPixel(&self, hdcdisplay: isize, x: *mut i32, y: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InkSpaceToPixel)(windows_core::Interface::as_raw(self), core::mem::transmute(hdcdisplay), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).InkSpaceToPixel)(windows_core::Interface::as_raw(self), hdcdisplay, core::mem::transmute(x), core::mem::transmute(y)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn PixelToInkSpaceFromPoints(&self, hdc: isize, points: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PixelToInkSpaceFromPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(points)).ok() + (windows_core::Interface::vtable(self).PixelToInkSpaceFromPoints)(windows_core::Interface::as_raw(self), hdc, core::mem::transmute(points)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn InkSpaceToPixelFromPoints(&self, hdc: isize, points: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InkSpaceToPixelFromPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(hdc), core::mem::transmute(points)).ok() + (windows_core::Interface::vtable(self).InkSpaceToPixelFromPoints)(windows_core::Interface::as_raw(self), hdc, core::mem::transmute(points)).ok() } pub unsafe fn Measure(&self, strokes: P0) -> windows_core::Result where @@ -9130,13 +9130,13 @@ impl IInkRenderer { (windows_core::Interface::vtable(self).MeasureStroke)(windows_core::Interface::as_raw(self), stroke.param().abi(), drawingattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Move(&self, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalcomponent), core::mem::transmute(verticalcomponent)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), horizontalcomponent, verticalcomponent).ok() } pub unsafe fn Rotate(&self, degrees: f32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(degrees), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees, x, y).ok() } pub unsafe fn ScaleTransform(&self, horizontalmultiplier: f32, verticalmultiplier: f32, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalmultiplier), core::mem::transmute(verticalmultiplier), core::mem::transmute(applyonpenwidth)).ok() + (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier, applyonpenwidth).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9357,7 +9357,7 @@ impl IInkStrokeDisp { } pub unsafe fn GetBoundingBox(&self, boundingboxmode: InkBoundingBoxMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBoundingBox)(windows_core::Interface::as_raw(self), core::mem::transmute(boundingboxmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBoundingBox)(windows_core::Interface::as_raw(self), boundingboxmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn FindIntersections(&self, strokes: P0) -> windows_core::Result @@ -9383,14 +9383,14 @@ impl IInkStrokeDisp { } pub unsafe fn HitTestCircle(&self, x: i32, y: i32, radius: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTestCircle)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(radius), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HitTestCircle)(windows_core::Interface::as_raw(self), x, y, radius, &mut result__).map(|| result__) } pub unsafe fn NearestPoint(&self, x: i32, y: i32, distance: *mut f32, point: *mut f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).NearestPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(distance), core::mem::transmute(point)).ok() + (windows_core::Interface::vtable(self).NearestPoint)(windows_core::Interface::as_raw(self), x, y, core::mem::transmute(distance), core::mem::transmute(point)).ok() } pub unsafe fn Split(&self, splitat: f32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Split)(windows_core::Interface::as_raw(self), core::mem::transmute(splitat), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Split)(windows_core::Interface::as_raw(self), splitat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPacketDescriptionPropertyMetrics(&self, propertyname: &windows_core::BSTR, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPacketDescriptionPropertyMetrics)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(propertyname), core::mem::transmute(minimum), core::mem::transmute(maximum), core::mem::transmute(units), core::mem::transmute(resolution)).ok() @@ -9398,38 +9398,38 @@ impl IInkStrokeDisp { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPoints(&self, index: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(count), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPoints)(windows_core::Interface::as_raw(self), index, count, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetPoints(&self, points: &super::super::System::Variant::VARIANT, index: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPoints)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(points), core::mem::transmute(index), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPoints)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(points), index, count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPacketData(&self, index: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPacketData)(windows_core::Interface::as_raw(self), core::mem::transmute(index), core::mem::transmute(count), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPacketData)(windows_core::Interface::as_raw(self), index, count, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetPacketValuesByProperty(&self, propertyname: &windows_core::BSTR, index: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPacketValuesByProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(propertyname), core::mem::transmute(index), core::mem::transmute(count), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPacketValuesByProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(propertyname), index, count, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetPacketValuesByProperty(&self, bstrpropertyname: &windows_core::BSTR, packetvalues: &super::super::System::Variant::VARIANT, index: i32, count: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPacketValuesByProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpropertyname), core::mem::transmute_copy(packetvalues), core::mem::transmute(index), core::mem::transmute(count), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPacketValuesByProperty)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpropertyname), core::mem::transmute_copy(packetvalues), index, count, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetFlattenedBezierPoints(&self, fittingerror: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFlattenedBezierPoints)(windows_core::Interface::as_raw(self), core::mem::transmute(fittingerror), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetFlattenedBezierPoints)(windows_core::Interface::as_raw(self), fittingerror, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Transform(&self, transform: P0, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.param().abi(), core::mem::transmute(applyonpenwidth)).ok() + (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.param().abi(), applyonpenwidth).ok() } pub unsafe fn ScaleToRectangle(&self, rectangle: P0) -> windows_core::Result<()> where @@ -9438,16 +9438,16 @@ impl IInkStrokeDisp { (windows_core::Interface::vtable(self).ScaleToRectangle)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } pub unsafe fn Move(&self, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalcomponent), core::mem::transmute(verticalcomponent)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), horizontalcomponent, verticalcomponent).ok() } pub unsafe fn Rotate(&self, degrees: f32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(degrees), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees, x, y).ok() } pub unsafe fn Shear(&self, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Shear)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalmultiplier), core::mem::transmute(verticalmultiplier)).ok() + (windows_core::Interface::vtable(self).Shear)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier).ok() } pub unsafe fn ScaleTransform(&self, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalmultiplier), core::mem::transmute(verticalmultiplier)).ok() + (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9914,7 +9914,7 @@ impl IInkStrokes { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Add(&self, inkstroke: P0) -> windows_core::Result<()> where @@ -9948,13 +9948,13 @@ impl IInkStrokes { } pub unsafe fn GetBoundingBox(&self, boundingboxmode: InkBoundingBoxMode) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBoundingBox)(windows_core::Interface::as_raw(self), core::mem::transmute(boundingboxmode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBoundingBox)(windows_core::Interface::as_raw(self), boundingboxmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Transform(&self, transform: P0, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.param().abi(), core::mem::transmute(applyonpenwidth)).ok() + (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.param().abi(), applyonpenwidth).ok() } pub unsafe fn ScaleToRectangle(&self, rectangle: P0) -> windows_core::Result<()> where @@ -9963,16 +9963,16 @@ impl IInkStrokes { (windows_core::Interface::vtable(self).ScaleToRectangle)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } pub unsafe fn Move(&self, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalcomponent), core::mem::transmute(verticalcomponent)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), horizontalcomponent, verticalcomponent).ok() } pub unsafe fn Rotate(&self, degrees: f32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(degrees), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees, x, y).ok() } pub unsafe fn Shear(&self, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Shear)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalmultiplier), core::mem::transmute(verticalmultiplier)).ok() + (windows_core::Interface::vtable(self).Shear)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier).ok() } pub unsafe fn ScaleTransform(&self, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalmultiplier), core::mem::transmute(verticalmultiplier)).ok() + (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier).ok() } pub unsafe fn Clip(&self, rectangle: P0) -> windows_core::Result<()> where @@ -10462,7 +10462,7 @@ impl IInkTablets { } pub unsafe fn Item(&self, index: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(index), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsPacketPropertySupported(&self, packetpropertyname: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10572,67 +10572,67 @@ impl IInkTransform { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Translate(&self, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Translate)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalcomponent), core::mem::transmute(verticalcomponent)).ok() + (windows_core::Interface::vtable(self).Translate)(windows_core::Interface::as_raw(self), horizontalcomponent, verticalcomponent).ok() } pub unsafe fn Rotate(&self, degrees: f32, x: f32, y: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), core::mem::transmute(degrees), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees, x, y).ok() } pub unsafe fn Reflect(&self, horizontally: super::super::Foundation::VARIANT_BOOL, vertically: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Reflect)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontally), core::mem::transmute(vertically)).ok() + (windows_core::Interface::vtable(self).Reflect)(windows_core::Interface::as_raw(self), horizontally, vertically).ok() } pub unsafe fn Shear(&self, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Shear)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalcomponent), core::mem::transmute(verticalcomponent)).ok() + (windows_core::Interface::vtable(self).Shear)(windows_core::Interface::as_raw(self), horizontalcomponent, verticalcomponent).ok() } pub unsafe fn ScaleTransform(&self, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontalmultiplier), core::mem::transmute(verticalmultiplier)).ok() + (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier).ok() } pub unsafe fn GetTransform(&self, em11: *mut f32, em12: *mut f32, em21: *mut f32, em22: *mut f32, edx: *mut f32, edy: *mut f32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(em11), core::mem::transmute(em12), core::mem::transmute(em21), core::mem::transmute(em22), core::mem::transmute(edx), core::mem::transmute(edy)).ok() } pub unsafe fn SetTransform(&self, em11: f32, em12: f32, em21: f32, em22: f32, edx: f32, edy: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(em11), core::mem::transmute(em12), core::mem::transmute(em21), core::mem::transmute(em22), core::mem::transmute(edx), core::mem::transmute(edy)).ok() + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), em11, em12, em21, em22, edx, edy).ok() } pub unsafe fn eM11(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).eM11)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SeteM11(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeteM11)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SeteM11)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn eM12(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).eM12)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SeteM12(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeteM12)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SeteM12)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn eM21(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).eM21)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SeteM21(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeteM21)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SeteM21)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn eM22(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).eM22)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SeteM22(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeteM22)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SeteM22)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn eDx(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).eDx)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SeteDx(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeteDx)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SeteDx)(windows_core::Interface::as_raw(self), value).ok() } pub unsafe fn eDy(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).eDy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SeteDy(&self, value: f32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SeteDy)(windows_core::Interface::as_raw(self), core::mem::transmute(value)).ok() + (windows_core::Interface::vtable(self).SeteDy)(windows_core::Interface::as_raw(self), value).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Data(&self, xform: *mut super::super::Graphics::Gdi::XFORM) -> windows_core::Result<()> { @@ -10978,14 +10978,14 @@ impl IInputPanelWindowHandle { (windows_core::Interface::vtable(self).AttachedEditWindow32)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachedEditWindow32(&self, attachededitwindow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachedEditWindow32)(windows_core::Interface::as_raw(self), core::mem::transmute(attachededitwindow)).ok() + (windows_core::Interface::vtable(self).SetAttachedEditWindow32)(windows_core::Interface::as_raw(self), attachededitwindow).ok() } pub unsafe fn AttachedEditWindow64(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AttachedEditWindow64)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachedEditWindow64(&self, attachededitwindow: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachedEditWindow64)(windows_core::Interface::as_raw(self), core::mem::transmute(attachededitwindow)).ok() + (windows_core::Interface::vtable(self).SetAttachedEditWindow64)(windows_core::Interface::as_raw(self), attachededitwindow).ok() } } #[repr(C)] @@ -11097,13 +11097,13 @@ impl IMathInputControl { (windows_core::Interface::vtable(self).GetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)).ok() } pub unsafe fn SetPosition(&self, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top), core::mem::transmute(right), core::mem::transmute(bottom)).ok() + (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), left, top, right, bottom).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetCustomPaint(&self, element: i32, paint: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCustomPaint)(windows_core::Interface::as_raw(self), core::mem::transmute(element), core::mem::transmute(paint)).ok() + (windows_core::Interface::vtable(self).SetCustomPaint)(windows_core::Interface::as_raw(self), element, paint).ok() } pub unsafe fn SetCaptionText(&self, captiontext: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetCaptionText)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(captiontext)).ok() @@ -11115,20 +11115,20 @@ impl IMathInputControl { (windows_core::Interface::vtable(self).LoadInk)(windows_core::Interface::as_raw(self), ink.param().abi()).ok() } pub unsafe fn SetOwnerWindow(&self, ownerwindow: isize) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(ownerwindow)).ok() + (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), ownerwindow).ok() } pub unsafe fn EnableExtendedButtons(&self, extended: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableExtendedButtons)(windows_core::Interface::as_raw(self), core::mem::transmute(extended)).ok() + (windows_core::Interface::vtable(self).EnableExtendedButtons)(windows_core::Interface::as_raw(self), extended).ok() } pub unsafe fn GetPreviewHeight(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetPreviewHeight)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPreviewHeight(&self, height: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreviewHeight)(windows_core::Interface::as_raw(self), core::mem::transmute(height)).ok() + (windows_core::Interface::vtable(self).SetPreviewHeight)(windows_core::Interface::as_raw(self), height).ok() } pub unsafe fn EnableAutoGrow(&self, autogrow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableAutoGrow)(windows_core::Interface::as_raw(self), core::mem::transmute(autogrow)).ok() + (windows_core::Interface::vtable(self).EnableAutoGrow)(windows_core::Interface::as_raw(self), autogrow).ok() } pub unsafe fn AddFunctionName(&self, functionname: &windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddFunctionName)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(functionname)).ok() @@ -11383,28 +11383,28 @@ impl IPenInputPanel { (windows_core::Interface::vtable(self).AttachedEditWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachedEditWindow(&self, attachededitwindow: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachedEditWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(attachededitwindow)).ok() + (windows_core::Interface::vtable(self).SetAttachedEditWindow)(windows_core::Interface::as_raw(self), attachededitwindow).ok() } pub unsafe fn CurrentPanel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentPanel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetCurrentPanel(&self, currentpanel: PanelType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCurrentPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(currentpanel)).ok() + (windows_core::Interface::vtable(self).SetCurrentPanel)(windows_core::Interface::as_raw(self), currentpanel).ok() } pub unsafe fn DefaultPanel(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DefaultPanel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultPanel(&self, defaultpanel: PanelType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultPanel)(windows_core::Interface::as_raw(self), core::mem::transmute(defaultpanel)).ok() + (windows_core::Interface::vtable(self).SetDefaultPanel)(windows_core::Interface::as_raw(self), defaultpanel).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Visible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVisible(&self, visible: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), core::mem::transmute(visible)).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible).ok() } pub unsafe fn Top(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11427,24 +11427,24 @@ impl IPenInputPanel { (windows_core::Interface::vtable(self).VerticalOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetVerticalOffset(&self, verticaloffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetVerticalOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(verticaloffset)).ok() + (windows_core::Interface::vtable(self).SetVerticalOffset)(windows_core::Interface::as_raw(self), verticaloffset).ok() } pub unsafe fn HorizontalOffset(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HorizontalOffset)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHorizontalOffset(&self, horizontaloffset: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHorizontalOffset)(windows_core::Interface::as_raw(self), core::mem::transmute(horizontaloffset)).ok() + (windows_core::Interface::vtable(self).SetHorizontalOffset)(windows_core::Interface::as_raw(self), horizontaloffset).ok() } pub unsafe fn AutoShow(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoShow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAutoShow(&self, autoshow: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAutoShow)(windows_core::Interface::as_raw(self), core::mem::transmute(autoshow)).ok() + (windows_core::Interface::vtable(self).SetAutoShow)(windows_core::Interface::as_raw(self), autoshow).ok() } pub unsafe fn MoveTo(&self, left: i32, top: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveTo)(windows_core::Interface::as_raw(self), core::mem::transmute(left), core::mem::transmute(top)).ok() + (windows_core::Interface::vtable(self).MoveTo)(windows_core::Interface::as_raw(self), left, top).ok() } pub unsafe fn CommitPendingInput(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CommitPendingInput)(windows_core::Interface::as_raw(self)).ok() @@ -11453,7 +11453,7 @@ impl IPenInputPanel { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn EnableTsf(&self, enable: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableTsf)(windows_core::Interface::as_raw(self), core::mem::transmute(enable)).ok() + (windows_core::Interface::vtable(self).EnableTsf)(windows_core::Interface::as_raw(self), enable).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11812,30 +11812,30 @@ impl IRealTimeStylus { (windows_core::Interface::vtable(self).HWND)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetHWND(&self, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), hwnd).ok() } pub unsafe fn WindowInputRectangle(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WindowInputRectangle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetWindowInputRectangle(&self, prcwndinputrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), core::mem::transmute(prcwndinputrect)).ok() + (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), prcwndinputrect).ok() } pub unsafe fn AddStylusSyncPlugin(&self, iindex: u32, piplugin: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStylusSyncPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), piplugin.param().abi()).ok() + (windows_core::Interface::vtable(self).AddStylusSyncPlugin)(windows_core::Interface::as_raw(self), iindex, piplugin.param().abi()).ok() } pub unsafe fn RemoveStylusSyncPlugin(&self, iindex: u32, ppiplugin: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStylusSyncPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(ppiplugin)).ok() + (windows_core::Interface::vtable(self).RemoveStylusSyncPlugin)(windows_core::Interface::as_raw(self), iindex, core::mem::transmute(ppiplugin)).ok() } pub unsafe fn RemoveAllStylusSyncPlugins(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllStylusSyncPlugins)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetStylusSyncPlugin(&self, iindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStylusSyncPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStylusSyncPlugin)(windows_core::Interface::as_raw(self), iindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStylusSyncPluginCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11845,17 +11845,17 @@ impl IRealTimeStylus { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStylusAsyncPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), piplugin.param().abi()).ok() + (windows_core::Interface::vtable(self).AddStylusAsyncPlugin)(windows_core::Interface::as_raw(self), iindex, piplugin.param().abi()).ok() } pub unsafe fn RemoveStylusAsyncPlugin(&self, iindex: u32, ppiplugin: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveStylusAsyncPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), core::mem::transmute(ppiplugin)).ok() + (windows_core::Interface::vtable(self).RemoveStylusAsyncPlugin)(windows_core::Interface::as_raw(self), iindex, core::mem::transmute(ppiplugin)).ok() } pub unsafe fn RemoveAllStylusAsyncPlugins(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllStylusAsyncPlugins)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetStylusAsyncPlugin(&self, iindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStylusAsyncPlugin)(windows_core::Interface::as_raw(self), core::mem::transmute(iindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStylusAsyncPlugin)(windows_core::Interface::as_raw(self), iindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetStylusAsyncPluginCount(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11872,7 +11872,7 @@ impl IRealTimeStylus { (windows_core::Interface::vtable(self).putref_ChildRealTimeStylusPlugin)(windows_core::Interface::as_raw(self), pirts.param().abi()).ok() } pub unsafe fn AddCustomStylusDataToQueue(&self, sq: StylusQueue, pguidid: *const windows_core::GUID, pbdata: Option<&[u8]>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddCustomStylusDataToQueue)(windows_core::Interface::as_raw(self), core::mem::transmute(sq), core::mem::transmute(pguidid), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + (windows_core::Interface::vtable(self).AddCustomStylusDataToQueue)(windows_core::Interface::as_raw(self), sq, pguidid, pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn ClearStylusQueues(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearStylusQueues)(windows_core::Interface::as_raw(self)).ok() @@ -11903,7 +11903,7 @@ impl IRealTimeStylus { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTabletFromTabletContextId(&self, tcid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTabletFromTabletContextId)(windows_core::Interface::as_raw(self), core::mem::transmute(tcid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTabletFromTabletContextId)(windows_core::Interface::as_raw(self), tcid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAllTabletContextIds(&self, pctcidcount: *mut u32, pptcids: *mut *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAllTabletContextIds)(windows_core::Interface::as_raw(self), core::mem::transmute(pctcidcount), core::mem::transmute(pptcids)).ok() @@ -11916,7 +11916,7 @@ impl IRealTimeStylus { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStylusForId(&self, sid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStylusForId)(windows_core::Interface::as_raw(self), core::mem::transmute(sid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStylusForId)(windows_core::Interface::as_raw(self), sid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDesiredPacketDescription(&self, ppropertyguids: &[windows_core::GUID]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), ppropertyguids.len().try_into().unwrap(), core::mem::transmute(ppropertyguids.as_ptr())).ok() @@ -11925,7 +11925,7 @@ impl IRealTimeStylus { (windows_core::Interface::vtable(self).GetDesiredPacketDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pcproperties), core::mem::transmute(pppropertyguids)).ok() } pub unsafe fn GetPacketDescriptionData(&self, tcid: u32, pfinktodevicescalex: Option<*mut f32>, pfinktodevicescaley: Option<*mut f32>, pcpacketproperties: *mut u32, pppacketproperties: *mut *mut PACKET_PROPERTY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetPacketDescriptionData)(windows_core::Interface::as_raw(self), core::mem::transmute(tcid), core::mem::transmute(pfinktodevicescalex.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfinktodevicescaley.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpacketproperties), core::mem::transmute(pppacketproperties)).ok() + (windows_core::Interface::vtable(self).GetPacketDescriptionData)(windows_core::Interface::as_raw(self), tcid, core::mem::transmute(pfinktodevicescalex.unwrap_or(core::mem::zeroed())), core::mem::transmute(pfinktodevicescaley.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcpacketproperties), core::mem::transmute(pppacketproperties)).ok() } } #[repr(C)] @@ -12361,10 +12361,10 @@ windows_core::imp::define_interface!(IRealTimeStylusSynchronization, IRealTimeSt windows_core::imp::interface_hierarchy!(IRealTimeStylusSynchronization, windows_core::IUnknown); impl IRealTimeStylusSynchronization { pub unsafe fn AcquireLock(&self, lock: RealTimeStylusLockType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AcquireLock)(windows_core::Interface::as_raw(self), core::mem::transmute(lock)).ok() + (windows_core::Interface::vtable(self).AcquireLock)(windows_core::Interface::as_raw(self), lock).ok() } pub unsafe fn ReleaseLock(&self, lock: RealTimeStylusLockType) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseLock)(windows_core::Interface::as_raw(self), core::mem::transmute(lock)).ok() + (windows_core::Interface::vtable(self).ReleaseLock)(windows_core::Interface::as_raw(self), lock).ok() } } #[repr(C)] @@ -12444,18 +12444,18 @@ windows_core::imp::interface_hierarchy!(IStrokeBuilder, windows_core::IUnknown); impl IStrokeBuilder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStroke(&self, ppackets: &[i32], ppacketproperties: &[PACKET_PROPERTY], finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CreateStroke)(windows_core::Interface::as_raw(self), ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), ppacketproperties.len().try_into().unwrap(), core::mem::transmute(ppacketproperties.as_ptr()), core::mem::transmute(finktodevicescalex), core::mem::transmute(finktodevicescaley), core::mem::transmute(ppiinkstroke)).ok() + (windows_core::Interface::vtable(self).CreateStroke)(windows_core::Interface::as_raw(self), ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), ppacketproperties.len().try_into().unwrap(), core::mem::transmute(ppacketproperties.as_ptr()), finktodevicescalex, finktodevicescaley, core::mem::transmute(ppiinkstroke)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginStroke(&self, tcid: u32, sid: u32, ppacket: *const i32, ppacketproperties: &[PACKET_PROPERTY], finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: Option<*mut Option>) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginStroke)(windows_core::Interface::as_raw(self), core::mem::transmute(tcid), core::mem::transmute(sid), core::mem::transmute(ppacket), ppacketproperties.len().try_into().unwrap(), core::mem::transmute(ppacketproperties.as_ptr()), core::mem::transmute(finktodevicescalex), core::mem::transmute(finktodevicescaley), core::mem::transmute(ppiinkstroke.unwrap_or(core::mem::zeroed()))).ok() + (windows_core::Interface::vtable(self).BeginStroke)(windows_core::Interface::as_raw(self), tcid, sid, ppacket, ppacketproperties.len().try_into().unwrap(), core::mem::transmute(ppacketproperties.as_ptr()), finktodevicescalex, finktodevicescaley, core::mem::transmute(ppiinkstroke.unwrap_or(core::mem::zeroed()))).ok() } pub unsafe fn AppendPackets(&self, tcid: u32, sid: u32, ppackets: &[i32]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AppendPackets)(windows_core::Interface::as_raw(self), core::mem::transmute(tcid), core::mem::transmute(sid), ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr())).ok() + (windows_core::Interface::vtable(self).AppendPackets)(windows_core::Interface::as_raw(self), tcid, sid, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr())).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndStroke(&self, tcid: u32, sid: u32, ppiinkstroke: *mut Option, pdirtyrect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndStroke)(windows_core::Interface::as_raw(self), core::mem::transmute(tcid), core::mem::transmute(sid), core::mem::transmute(ppiinkstroke), core::mem::transmute(pdirtyrect)).ok() + (windows_core::Interface::vtable(self).EndStroke)(windows_core::Interface::as_raw(self), tcid, sid, core::mem::transmute(ppiinkstroke), core::mem::transmute(pdirtyrect)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Ink(&self) -> windows_core::Result { @@ -12597,61 +12597,61 @@ impl IStylusPlugin { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusInRange)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(tcid), core::mem::transmute(sid)).ok() + (windows_core::Interface::vtable(self).StylusInRange)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), tcid, sid).ok() } pub unsafe fn StylusOutOfRange(&self, pirtssrc: P0, tcid: u32, sid: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusOutOfRange)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(tcid), core::mem::transmute(sid)).ok() + (windows_core::Interface::vtable(self).StylusOutOfRange)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), tcid, sid).ok() } pub unsafe fn StylusDown(&self, pirtssrc: P0, pstylusinfo: *const StylusInfo, ppacket: &[i32], ppinoutpkt: *mut *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(pstylusinfo), ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), core::mem::transmute(ppinoutpkt)).ok() + (windows_core::Interface::vtable(self).StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), core::mem::transmute(ppinoutpkt)).ok() } pub unsafe fn StylusUp(&self, pirtssrc: P0, pstylusinfo: *const StylusInfo, ppacket: &[i32], ppinoutpkt: *mut *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(pstylusinfo), ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), core::mem::transmute(ppinoutpkt)).ok() + (windows_core::Interface::vtable(self).StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), core::mem::transmute(ppinoutpkt)).ok() } pub unsafe fn StylusButtonDown(&self, pirtssrc: P0, sid: u32, pguidstylusbutton: *const windows_core::GUID, pstyluspos: *mut super::super::Foundation::POINT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(sid), core::mem::transmute(pguidstylusbutton), core::mem::transmute(pstyluspos)).ok() + (windows_core::Interface::vtable(self).StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, core::mem::transmute(pstyluspos)).ok() } pub unsafe fn StylusButtonUp(&self, pirtssrc: P0, sid: u32, pguidstylusbutton: *const windows_core::GUID, pstyluspos: *mut super::super::Foundation::POINT) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(sid), core::mem::transmute(pguidstylusbutton), core::mem::transmute(pstyluspos)).ok() + (windows_core::Interface::vtable(self).StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, core::mem::transmute(pstyluspos)).ok() } pub unsafe fn InAirPackets(&self, pirtssrc: P0, pstylusinfo: *const StylusInfo, cpktcount: u32, ppackets: &[i32], pcinoutpkts: *mut u32, ppinoutpkts: *mut *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(pstylusinfo), core::mem::transmute(cpktcount), ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), core::mem::transmute(pcinoutpkts), core::mem::transmute(ppinoutpkts)).ok() + (windows_core::Interface::vtable(self).InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), core::mem::transmute(pcinoutpkts), core::mem::transmute(ppinoutpkts)).ok() } pub unsafe fn Packets(&self, pirtssrc: P0, pstylusinfo: *const StylusInfo, cpktcount: u32, ppackets: &[i32], pcinoutpkts: *mut u32, ppinoutpkts: *mut *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Packets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(pstylusinfo), core::mem::transmute(cpktcount), ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), core::mem::transmute(pcinoutpkts), core::mem::transmute(ppinoutpkts)).ok() + (windows_core::Interface::vtable(self).Packets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), core::mem::transmute(pcinoutpkts), core::mem::transmute(ppinoutpkts)).ok() } pub unsafe fn CustomStylusDataAdded(&self, pirtssrc: P0, pguidid: *const windows_core::GUID, pbdata: Option<&[u8]>) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CustomStylusDataAdded)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(pguidid), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() + (windows_core::Interface::vtable(self).CustomStylusDataAdded)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pguidid, pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } pub unsafe fn SystemEvent(&self, pirtssrc: P0, tcid: u32, sid: u32, event: u16, eventdata: SYSTEM_EVENT_DATA) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SystemEvent)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(tcid), core::mem::transmute(sid), core::mem::transmute(event), core::mem::transmute(eventdata)).ok() + (windows_core::Interface::vtable(self).SystemEvent)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), tcid, sid, event, core::mem::transmute(eventdata)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TabletAdded(&self, pirtssrc: P0, pitablet: P1) -> windows_core::Result<()> @@ -12665,14 +12665,14 @@ impl IStylusPlugin { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TabletRemoved)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), core::mem::transmute(itabletindex)).ok() + (windows_core::Interface::vtable(self).TabletRemoved)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), itabletindex).ok() } pub unsafe fn Error(&self, pirtssrc: P0, piplugin: P1, datainterest: RealTimeStylusDataInterest, hrerrorcode: windows_core::HRESULT, lptrkey: *mut isize) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), piplugin.param().abi(), core::mem::transmute(datainterest), core::mem::transmute(hrerrorcode), core::mem::transmute(lptrkey)).ok() + (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), piplugin.param().abi(), datainterest, hrerrorcode, core::mem::transmute(lptrkey)).ok() } pub unsafe fn UpdateMapping(&self, pirtssrc: P0) -> windows_core::Result<()> where @@ -12866,7 +12866,7 @@ impl ITextInputPanel { (windows_core::Interface::vtable(self).AttachedEditWindow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetAttachedEditWindow(&self, attachededitwindow: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttachedEditWindow)(windows_core::Interface::as_raw(self), core::mem::transmute(attachededitwindow)).ok() + (windows_core::Interface::vtable(self).SetAttachedEditWindow)(windows_core::Interface::as_raw(self), attachededitwindow).ok() } pub unsafe fn CurrentInteractionMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12877,7 +12877,7 @@ impl ITextInputPanel { (windows_core::Interface::vtable(self).DefaultInPlaceState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultInPlaceState(&self, state: InPlaceState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultInPlaceState)(windows_core::Interface::as_raw(self), core::mem::transmute(state)).ok() + (windows_core::Interface::vtable(self).SetDefaultInPlaceState)(windows_core::Interface::as_raw(self), state).ok() } pub unsafe fn CurrentInPlaceState(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12888,7 +12888,7 @@ impl ITextInputPanel { (windows_core::Interface::vtable(self).DefaultInputArea)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefaultInputArea(&self, area: PanelInputArea) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultInputArea)(windows_core::Interface::as_raw(self), core::mem::transmute(area)).ok() + (windows_core::Interface::vtable(self).SetDefaultInputArea)(windows_core::Interface::as_raw(self), area).ok() } pub unsafe fn CurrentInputArea(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12903,7 +12903,7 @@ impl ITextInputPanel { (windows_core::Interface::vtable(self).PreferredInPlaceDirection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetPreferredInPlaceDirection(&self, direction: InPlaceDirection) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreferredInPlaceDirection)(windows_core::Interface::as_raw(self), core::mem::transmute(direction)).ok() + (windows_core::Interface::vtable(self).SetPreferredInPlaceDirection)(windows_core::Interface::as_raw(self), direction).ok() } pub unsafe fn ExpandPostInsertionCorrection(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12938,16 +12938,16 @@ impl ITextInputPanel { (windows_core::Interface::vtable(self).SetInPlaceVisibility)(windows_core::Interface::as_raw(self), visible.into()).ok() } pub unsafe fn SetInPlacePosition(&self, xposition: i32, yposition: i32, position: CorrectionPosition) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInPlacePosition)(windows_core::Interface::as_raw(self), core::mem::transmute(xposition), core::mem::transmute(yposition), core::mem::transmute(position)).ok() + (windows_core::Interface::vtable(self).SetInPlacePosition)(windows_core::Interface::as_raw(self), xposition, yposition, position).ok() } pub unsafe fn SetInPlaceHoverTargetPosition(&self, xposition: i32, yposition: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInPlaceHoverTargetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(xposition), core::mem::transmute(yposition)).ok() + (windows_core::Interface::vtable(self).SetInPlaceHoverTargetPosition)(windows_core::Interface::as_raw(self), xposition, yposition).ok() } pub unsafe fn Advise(&self, eventsink: P0, eventmask: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), eventsink.param().abi(), core::mem::transmute(eventmask)).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), eventsink.param().abi(), eventmask).ok() } pub unsafe fn Unadvise(&self, eventsink: P0) -> windows_core::Result<()> where @@ -13230,10 +13230,10 @@ windows_core::imp::define_interface!(ITextInputPanelEventSink, ITextInputPanelEv windows_core::imp::interface_hierarchy!(ITextInputPanelEventSink, windows_core::IUnknown); impl ITextInputPanelEventSink { pub unsafe fn InPlaceStateChanging(&self, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InPlaceStateChanging)(windows_core::Interface::as_raw(self), core::mem::transmute(oldinplacestate), core::mem::transmute(newinplacestate)).ok() + (windows_core::Interface::vtable(self).InPlaceStateChanging)(windows_core::Interface::as_raw(self), oldinplacestate, newinplacestate).ok() } pub unsafe fn InPlaceStateChanged(&self, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InPlaceStateChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(oldinplacestate), core::mem::transmute(newinplacestate)).ok() + (windows_core::Interface::vtable(self).InPlaceStateChanged)(windows_core::Interface::as_raw(self), oldinplacestate, newinplacestate).ok() } pub unsafe fn InPlaceSizeChanging(&self, oldboundingrectangle: super::super::Foundation::RECT, newboundingrectangle: super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InPlaceSizeChanging)(windows_core::Interface::as_raw(self), core::mem::transmute(oldboundingrectangle), core::mem::transmute(newboundingrectangle)).ok() @@ -13242,16 +13242,16 @@ impl ITextInputPanelEventSink { (windows_core::Interface::vtable(self).InPlaceSizeChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(oldboundingrectangle), core::mem::transmute(newboundingrectangle)).ok() } pub unsafe fn InputAreaChanging(&self, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InputAreaChanging)(windows_core::Interface::as_raw(self), core::mem::transmute(oldinputarea), core::mem::transmute(newinputarea)).ok() + (windows_core::Interface::vtable(self).InputAreaChanging)(windows_core::Interface::as_raw(self), oldinputarea, newinputarea).ok() } pub unsafe fn InputAreaChanged(&self, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InputAreaChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(oldinputarea), core::mem::transmute(newinputarea)).ok() + (windows_core::Interface::vtable(self).InputAreaChanged)(windows_core::Interface::as_raw(self), oldinputarea, newinputarea).ok() } pub unsafe fn CorrectionModeChanging(&self, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CorrectionModeChanging)(windows_core::Interface::as_raw(self), core::mem::transmute(oldcorrectionmode), core::mem::transmute(newcorrectionmode)).ok() + (windows_core::Interface::vtable(self).CorrectionModeChanging)(windows_core::Interface::as_raw(self), oldcorrectionmode, newcorrectionmode).ok() } pub unsafe fn CorrectionModeChanged(&self, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).CorrectionModeChanged)(windows_core::Interface::as_raw(self), core::mem::transmute(oldcorrectionmode), core::mem::transmute(newcorrectionmode)).ok() + (windows_core::Interface::vtable(self).CorrectionModeChanged)(windows_core::Interface::as_raw(self), oldcorrectionmode, newcorrectionmode).ok() } pub unsafe fn InPlaceVisibilityChanging(&self, oldvisible: bool, newvisible: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InPlaceVisibilityChanging)(windows_core::Interface::as_raw(self), oldvisible.into(), newvisible.into()).ok() @@ -13261,11 +13261,11 @@ impl ITextInputPanelEventSink { } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TextInserting(&self, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TextInserting)(windows_core::Interface::as_raw(self), core::mem::transmute(ink)).ok() + (windows_core::Interface::vtable(self).TextInserting)(windows_core::Interface::as_raw(self), ink).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TextInserted(&self, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).TextInserted)(windows_core::Interface::as_raw(self), core::mem::transmute(ink)).ok() + (windows_core::Interface::vtable(self).TextInserted)(windows_core::Interface::as_raw(self), ink).ok() } } #[repr(C)] @@ -13420,23 +13420,23 @@ impl ITipAutoCompleteClient { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndfield), piprovider.param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseProvider)(windows_core::Interface::as_raw(self), hwndfield, piprovider.param().abi()).ok() } pub unsafe fn UnadviseProvider(&self, hwndfield: super::super::Foundation::HWND, piprovider: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnadviseProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndfield), piprovider.param().abi()).ok() + (windows_core::Interface::vtable(self).UnadviseProvider)(windows_core::Interface::as_raw(self), hwndfield, piprovider.param().abi()).ok() } pub unsafe fn UserSelection(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UserSelection)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PreferredRects(&self, 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::Result<()> { - (windows_core::Interface::vtable(self).PreferredRects)(windows_core::Interface::as_raw(self), core::mem::transmute(prcaclist), core::mem::transmute(prcfield), core::mem::transmute(prcmodifiedaclist), core::mem::transmute(pfshownabovetip)).ok() + (windows_core::Interface::vtable(self).PreferredRects)(windows_core::Interface::as_raw(self), prcaclist, prcfield, core::mem::transmute(prcmodifiedaclist), core::mem::transmute(pfshownabovetip)).ok() } pub unsafe fn RequestShowUI(&self, hwndlist: super::super::Foundation::HWND) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestShowUI)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndlist), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestShowUI)(windows_core::Interface::as_raw(self), hwndlist, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs index c6b60fbfba..1600e7cef4 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn DoMsCtfMonitor(dwflags: u32, heventforservicestop: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { windows_targets::link!("msctfmonitor.dll" "system" fn DoMsCtfMonitor(dwflags : u32, heventforservicestop : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DoMsCtfMonitor(core::mem::transmute(dwflags), core::mem::transmute(heventforservicestop)) + DoMsCtfMonitor(dwflags, heventforservicestop) } #[inline] pub unsafe fn InitLocalMsCtfMonitor(dwflags: u32) -> windows_core::Result<()> { windows_targets::link!("msctfmonitor.dll" "system" fn InitLocalMsCtfMonitor(dwflags : u32) -> windows_core::HRESULT); - InitLocalMsCtfMonitor(core::mem::transmute(dwflags)).ok() + InitLocalMsCtfMonitor(dwflags).ok() } #[inline] pub unsafe fn UninitLocalMsCtfMonitor() -> windows_core::Result<()> { @@ -194,15 +194,15 @@ impl IAccClientDocMgr { } pub unsafe fn LookupByHWND(&self, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), hwnd, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LookupByPoint(&self, pt: super::super::Foundation::POINT, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupByPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupByPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocused(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFocused)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFocused)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -284,15 +284,15 @@ windows_core::imp::define_interface!(IAccDictionary, IAccDictionary_Vtbl, 0x1dc4 windows_core::imp::interface_hierarchy!(IAccDictionary, windows_core::IUnknown); impl IAccDictionary { pub unsafe fn GetLocalizedString(&self, term: *const windows_core::GUID, lcid: u32, presult: *mut windows_core::BSTR, plcid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLocalizedString)(windows_core::Interface::as_raw(self), core::mem::transmute(term), core::mem::transmute(lcid), core::mem::transmute(presult), core::mem::transmute(plcid)).ok() + (windows_core::Interface::vtable(self).GetLocalizedString)(windows_core::Interface::as_raw(self), term, lcid, core::mem::transmute(presult), core::mem::transmute(plcid)).ok() } pub unsafe fn GetParentTerm(&self, term: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParentTerm)(windows_core::Interface::as_raw(self), core::mem::transmute(term), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParentTerm)(windows_core::Interface::as_raw(self), term, &mut result__).map(|| result__) } pub unsafe fn GetMnemonicString(&self, term: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMnemonicString)(windows_core::Interface::as_raw(self), core::mem::transmute(term), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetMnemonicString)(windows_core::Interface::as_raw(self), term, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn LookupMnemonicTerm(&self, bstrmnemonic: &windows_core::BSTR) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -300,7 +300,7 @@ impl IAccDictionary { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn ConvertValueToString(&self, term: *const windows_core::GUID, lcid: u32, varvalue: &super::super::System::Variant::VARIANT, pbstrresult: *mut windows_core::BSTR, plcid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ConvertValueToString)(windows_core::Interface::as_raw(self), core::mem::transmute(term), core::mem::transmute(lcid), core::mem::transmute_copy(varvalue), core::mem::transmute(pbstrresult), core::mem::transmute(plcid)).ok() + (windows_core::Interface::vtable(self).ConvertValueToString)(windows_core::Interface::as_raw(self), term, lcid, core::mem::transmute_copy(varvalue), core::mem::transmute(pbstrresult), core::mem::transmute(plcid)).ok() } } #[repr(C)] @@ -386,7 +386,7 @@ impl IAccServerDocMgr { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NewDocument)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).NewDocument)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } pub unsafe fn RevokeDocument(&self, punk: P0) -> windows_core::Result<()> where @@ -446,7 +446,7 @@ impl IAccStore { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } pub unsafe fn Unregister(&self, punk: P0) -> windows_core::Result<()> where @@ -461,11 +461,11 @@ impl IAccStore { } pub unsafe fn LookupByHWND(&self, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), hwnd, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LookupByPoint(&self, pt: super::super::Foundation::POINT, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupByPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupByPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnDocumentFocus(&self, punk: P0) -> windows_core::Result<()> where @@ -475,7 +475,7 @@ impl IAccStore { } pub unsafe fn GetFocused(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFocused)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFocused)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -578,7 +578,7 @@ windows_core::imp::define_interface!(IAnchor, IAnchor_Vtbl, 0x0feb7e34_5a60_4356 windows_core::imp::interface_hierarchy!(IAnchor, windows_core::IUnknown); impl IAnchor { pub unsafe fn SetGravity(&self, gravity: TsGravity) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGravity)(windows_core::Interface::as_raw(self), core::mem::transmute(gravity)).ok() + (windows_core::Interface::vtable(self).SetGravity)(windows_core::Interface::as_raw(self), gravity).ok() } pub unsafe fn GetGravity(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -602,7 +602,7 @@ impl IAnchor { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Shift)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(cchreq), core::mem::transmute(pcch), pahaltanchor.param().abi()).ok() + (windows_core::Interface::vtable(self).Shift)(windows_core::Interface::as_raw(self), dwflags, cchreq, core::mem::transmute(pcch), pahaltanchor.param().abi()).ok() } pub unsafe fn ShiftTo(&self, pasite: P0) -> windows_core::Result<()> where @@ -612,10 +612,10 @@ impl IAnchor { } pub unsafe fn ShiftRegion(&self, dwflags: u32, dir: TsShiftDir) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShiftRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(dir), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShiftRegion)(windows_core::Interface::as_raw(self), dwflags, dir, &mut result__).map(|| result__) } pub unsafe fn SetChangeHistoryMask(&self, dwmask: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetChangeHistoryMask)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).SetChangeHistoryMask)(windows_core::Interface::as_raw(self), dwmask).ok() } pub unsafe fn GetChangeHistory(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -799,7 +799,7 @@ impl ICoCreateLocally { where P5: windows_core::Param, { - (windows_core::Interface::vtable(self).CoCreateLocally)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(dwclscontext), core::mem::transmute(riid), core::mem::transmute(punk), core::mem::transmute(riidparam), punkparam.param().abi(), core::mem::transmute_copy(varparam)).ok() + (windows_core::Interface::vtable(self).CoCreateLocally)(windows_core::Interface::as_raw(self), rclsid, dwclscontext, riid, core::mem::transmute(punk), riidparam, punkparam.param().abi(), core::mem::transmute_copy(varparam)).ok() } } #[repr(C)] @@ -838,7 +838,7 @@ impl ICoCreatedLocally { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LocalInit)(windows_core::Interface::as_raw(self), punklocalobject.param().abi(), core::mem::transmute(riidparam), punkparam.param().abi(), core::mem::transmute_copy(varparam)).ok() + (windows_core::Interface::vtable(self).LocalInit)(windows_core::Interface::as_raw(self), punklocalobject.param().abi(), riidparam, punkparam.param().abi(), core::mem::transmute_copy(varparam)).ok() } } #[repr(C)] @@ -875,11 +875,11 @@ impl IDocWrap { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDoc)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).SetDoc)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } pub unsafe fn GetWrappedDoc(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWrappedDoc)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWrappedDoc)(windows_core::Interface::as_raw(self), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -933,7 +933,7 @@ impl IEnumITfCompositionView { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1001,7 +1001,7 @@ impl IEnumSpeechCommands { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1069,7 +1069,7 @@ impl IEnumTfCandidates { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1137,7 +1137,7 @@ impl IEnumTfContextViews { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1205,7 +1205,7 @@ impl IEnumTfContexts { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1273,7 +1273,7 @@ impl IEnumTfDisplayAttributeInfo { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1341,7 +1341,7 @@ impl IEnumTfDocumentMgrs { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1409,7 +1409,7 @@ impl IEnumTfFunctionProviders { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1478,7 +1478,7 @@ impl IEnumTfInputProcessorProfiles { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1552,7 +1552,7 @@ impl IEnumTfLangBarItems { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1620,7 +1620,7 @@ impl IEnumTfLanguageProfiles { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1688,7 +1688,7 @@ impl IEnumTfLatticeElements { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1756,7 +1756,7 @@ impl IEnumTfProperties { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1825,7 +1825,7 @@ impl IEnumTfPropertyValue { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1899,7 +1899,7 @@ impl IEnumTfRanges { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -1967,7 +1967,7 @@ impl IEnumTfUIElements { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Skip(&self, ulcount: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), ulcount).ok() } } #[repr(C)] @@ -2133,10 +2133,10 @@ windows_core::imp::interface_hierarchy!(ISpeechCommandProvider, windows_core::IU impl ISpeechCommandProvider { pub unsafe fn EnumSpeechCommands(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumSpeechCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumSpeechCommands)(windows_core::Interface::as_raw(self), langid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProcessCommand(&self, pszcommand: &[u16], langid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ProcessCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pszcommand.as_ptr()), pszcommand.len().try_into().unwrap(), core::mem::transmute(langid)).ok() + (windows_core::Interface::vtable(self).ProcessCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pszcommand.as_ptr()), pszcommand.len().try_into().unwrap(), langid).ok() } } #[repr(C)] @@ -2183,7 +2183,7 @@ impl ITextStoreACP { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi(), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.param().abi(), dwmask).ok() } pub unsafe fn UnadviseSink(&self, punk: P0) -> windows_core::Result<()> where @@ -2193,41 +2193,41 @@ impl ITextStoreACP { } pub unsafe fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestLock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlockflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestLock)(windows_core::Interface::as_raw(self), dwlockflags, &mut result__).map(|| result__) } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn QueryInsert(&self, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), core::mem::transmute(acpteststart), core::mem::transmute(acptestend), core::mem::transmute(cch), core::mem::transmute(pacpresultstart), core::mem::transmute(pacpresultend)).ok() + (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), acpteststart, acptestend, cch, core::mem::transmute(pacpresultstart), core::mem::transmute(pacpresultend)).ok() } pub unsafe fn GetSelection(&self, ulindex: u32, pselection: &mut [TS_SELECTION_ACP], pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), ulindex, pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn SetSelection(&self, pselection: &[TS_SELECTION_ACP]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr())).ok() } pub unsafe fn GetText(&self, acpstart: i32, acpend: i32, pchplain: &mut [u16], pcchplainret: *mut u32, prgruninfo: &mut [TS_RUNINFO], pcruninforet: *mut u32, pacpnext: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(pchplain.as_ptr()), pchplain.len().try_into().unwrap(), core::mem::transmute(pcchplainret), core::mem::transmute(prgruninfo.as_ptr()), prgruninfo.len().try_into().unwrap(), core::mem::transmute(pcruninforet), core::mem::transmute(pacpnext)).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), acpstart, acpend, core::mem::transmute(pchplain.as_ptr()), pchplain.len().try_into().unwrap(), core::mem::transmute(pcchplainret), core::mem::transmute(prgruninfo.as_ptr()), prgruninfo.len().try_into().unwrap(), core::mem::transmute(pcruninforet), core::mem::transmute(pacpnext)).ok() } pub unsafe fn SetText(&self, dwflags: u32, acpstart: i32, acpend: i32, pchtext: &[u16]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), dwflags, acpstart, acpend, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFormattedText(&self, acpstart: i32, acpend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), acpstart, acpend, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEmbedded(&self, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(acppos), core::mem::transmute(rguidservice), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), acppos, rguidservice, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidservice), core::mem::transmute(pformatetc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: P3) -> windows_core::Result @@ -2235,29 +2235,29 @@ impl ITextStoreACP { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(acpstart), core::mem::transmute(acpend), pdataobject.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), dwflags, acpstart, acpend, pdataobject.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InsertTextAtSelection(&self, dwflags: u32, pchtext: &[u16], pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() + (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: P1, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pdataobject.param().abi(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() + (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.param().abi(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() } pub unsafe fn RequestSupportedAttrs(&self, dwflags: u32, pafilterattrs: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestSupportedAttrs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).RequestSupportedAttrs)(windows_core::Interface::as_raw(self), dwflags, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() } pub unsafe fn RequestAttrsAtPosition(&self, acppos: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(acppos), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), acppos, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } pub unsafe fn RequestAttrsTransitioningAtPosition(&self, acppos: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(acppos), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), acppos, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } pub unsafe fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acphalt), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags), core::mem::transmute(pacpnext), core::mem::transmute(pffound), core::mem::transmute(plfoundoffset)).ok() + (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), acpstart, acphalt, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags, core::mem::transmute(pacpnext), core::mem::transmute(pffound), core::mem::transmute(plfoundoffset)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RetrieveRequestedAttrs(&self, paattrvals: &mut [TS_ATTRVAL], pcfetched: *mut u32) -> windows_core::Result<()> { @@ -2273,18 +2273,18 @@ impl ITextStoreACP { } pub unsafe fn GetACPFromPoint(&self, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), core::mem::transmute(ptscreen), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), vcview, ptscreen, dwflags, &mut result__).map(|| result__) } pub unsafe fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, acpstart, acpend, core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() } pub unsafe fn GetScreenExt(&self, vcview: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScreenExt)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetScreenExt)(windows_core::Interface::as_raw(self), vcview, &mut result__).map(|| result__) } pub unsafe fn GetWnd(&self, vcview: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWnd)(windows_core::Interface::as_raw(self), vcview, &mut result__).map(|| result__) } } #[repr(C)] @@ -2583,7 +2583,7 @@ impl ITextStoreACP2 { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi(), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.param().abi(), dwmask).ok() } pub unsafe fn UnadviseSink(&self, punk: P0) -> windows_core::Result<()> where @@ -2593,41 +2593,41 @@ impl ITextStoreACP2 { } pub unsafe fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestLock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlockflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestLock)(windows_core::Interface::as_raw(self), dwlockflags, &mut result__).map(|| result__) } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn QueryInsert(&self, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), core::mem::transmute(acpteststart), core::mem::transmute(acptestend), core::mem::transmute(cch), core::mem::transmute(pacpresultstart), core::mem::transmute(pacpresultend)).ok() + (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), acpteststart, acptestend, cch, core::mem::transmute(pacpresultstart), core::mem::transmute(pacpresultend)).ok() } pub unsafe fn GetSelection(&self, ulindex: u32, pselection: &mut [TS_SELECTION_ACP], pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), ulindex, pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn SetSelection(&self, pselection: &[TS_SELECTION_ACP]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr())).ok() } pub unsafe fn GetText(&self, acpstart: i32, acpend: i32, pchplain: &mut [u16], pcchplainret: *mut u32, prgruninfo: &mut [TS_RUNINFO], pcruninforet: *mut u32, pacpnext: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(pchplain.as_ptr()), pchplain.len().try_into().unwrap(), core::mem::transmute(pcchplainret), core::mem::transmute(prgruninfo.as_ptr()), prgruninfo.len().try_into().unwrap(), core::mem::transmute(pcruninforet), core::mem::transmute(pacpnext)).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), acpstart, acpend, core::mem::transmute(pchplain.as_ptr()), pchplain.len().try_into().unwrap(), core::mem::transmute(pcchplainret), core::mem::transmute(prgruninfo.as_ptr()), prgruninfo.len().try_into().unwrap(), core::mem::transmute(pcruninforet), core::mem::transmute(pacpnext)).ok() } pub unsafe fn SetText(&self, dwflags: u32, acpstart: i32, acpend: i32, pchtext: &[u16]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), dwflags, acpstart, acpend, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFormattedText(&self, acpstart: i32, acpend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), acpstart, acpend, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEmbedded(&self, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(acppos), core::mem::transmute(rguidservice), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), acppos, rguidservice, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidservice), core::mem::transmute(pformatetc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: P3) -> windows_core::Result @@ -2635,29 +2635,29 @@ impl ITextStoreACP2 { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(acpstart), core::mem::transmute(acpend), pdataobject.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), dwflags, acpstart, acpend, pdataobject.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InsertTextAtSelection(&self, dwflags: u32, pchtext: &[u16], pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() + (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: P1, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pdataobject.param().abi(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() + (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.param().abi(), core::mem::transmute(pacpstart), core::mem::transmute(pacpend), core::mem::transmute(pchange)).ok() } pub unsafe fn RequestSupportedAttrs(&self, dwflags: u32, pafilterattrs: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestSupportedAttrs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).RequestSupportedAttrs)(windows_core::Interface::as_raw(self), dwflags, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() } pub unsafe fn RequestAttrsAtPosition(&self, acppos: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(acppos), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), acppos, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } pub unsafe fn RequestAttrsTransitioningAtPosition(&self, acppos: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(acppos), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), acppos, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } pub unsafe fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acphalt), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags), core::mem::transmute(pacpnext), core::mem::transmute(pffound), core::mem::transmute(plfoundoffset)).ok() + (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), acpstart, acphalt, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags, core::mem::transmute(pacpnext), core::mem::transmute(pffound), core::mem::transmute(plfoundoffset)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RetrieveRequestedAttrs(&self, paattrvals: &mut [TS_ATTRVAL], pcfetched: *mut u32) -> windows_core::Result<()> { @@ -2673,14 +2673,14 @@ impl ITextStoreACP2 { } pub unsafe fn GetACPFromPoint(&self, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), core::mem::transmute(ptscreen), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), vcview, ptscreen, dwflags, &mut result__).map(|| result__) } pub unsafe fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, acpstart, acpend, core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() } pub unsafe fn GetScreenExt(&self, vcview: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScreenExt)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetScreenExt)(windows_core::Interface::as_raw(self), vcview, &mut result__).map(|| result__) } } #[repr(C)] @@ -2963,7 +2963,7 @@ windows_core::imp::define_interface!(ITextStoreACPEx, ITextStoreACPEx_Vtbl, 0xa2 windows_core::imp::interface_hierarchy!(ITextStoreACPEx, windows_core::IUnknown); impl ITextStoreACPEx { pub unsafe fn ScrollToRect(&self, acpstart: i32, acpend: i32, rc: super::super::Foundation::RECT, dwposition: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ScrollToRect)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(rc), core::mem::transmute(dwposition)).ok() + (windows_core::Interface::vtable(self).ScrollToRect)(windows_core::Interface::as_raw(self), acpstart, acpend, core::mem::transmute(rc), dwposition).ok() } } #[repr(C)] @@ -3006,7 +3006,7 @@ impl ITextStoreACPServices { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Unserialize)(windows_core::Interface::as_raw(self), pprop.param().abi(), core::mem::transmute(phdr), pstream.param().abi(), ploader.param().abi()).ok() + (windows_core::Interface::vtable(self).Unserialize)(windows_core::Interface::as_raw(self), pprop.param().abi(), phdr, pstream.param().abi(), ploader.param().abi()).ok() } pub unsafe fn ForceLoadProperty(&self, pprop: P0) -> windows_core::Result<()> where @@ -3016,7 +3016,7 @@ impl ITextStoreACPServices { } pub unsafe fn CreateRange(&self, acpstart: i32, acpend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRange)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRange)(windows_core::Interface::as_raw(self), acpstart, acpend, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3083,22 +3083,22 @@ windows_core::imp::define_interface!(ITextStoreACPSink, ITextStoreACPSink_Vtbl, windows_core::imp::interface_hierarchy!(ITextStoreACPSink, windows_core::IUnknown); impl ITextStoreACPSink { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_TEXT_CHANGE_FLAGS, pchange: *const TS_TEXTCHANGE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnTextChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pchange)).ok() + (windows_core::Interface::vtable(self).OnTextChange)(windows_core::Interface::as_raw(self), dwflags, pchange).ok() } pub unsafe fn OnSelectionChange(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnSelectionChange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnLayoutChange(&self, lcode: TsLayoutCode, vcview: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), core::mem::transmute(lcode), core::mem::transmute(vcview)).ok() + (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), lcode, vcview).ok() } pub unsafe fn OnStatusChange(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn OnAttrsChange(&self, acpstart: i32, acpend: i32, paattrs: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAttrsChange)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), paattrs.len().try_into().unwrap(), core::mem::transmute(paattrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).OnAttrsChange)(windows_core::Interface::as_raw(self), acpstart, acpend, paattrs.len().try_into().unwrap(), core::mem::transmute(paattrs.as_ptr())).ok() } pub unsafe fn OnLockGranted(&self, dwlockflags: TEXT_STORE_LOCK_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLockGranted)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlockflags)).ok() + (windows_core::Interface::vtable(self).OnLockGranted)(windows_core::Interface::as_raw(self), dwlockflags).ok() } pub unsafe fn OnStartEditTransaction(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnStartEditTransaction)(windows_core::Interface::as_raw(self)).ok() @@ -3221,7 +3221,7 @@ impl ITextStoreAnchor { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi(), core::mem::transmute(dwmask)).ok() + (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.param().abi(), dwmask).ok() } pub unsafe fn UnadviseSink(&self, punk: P0) -> windows_core::Result<()> where @@ -3231,7 +3231,7 @@ impl ITextStoreAnchor { } pub unsafe fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestLock)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlockflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestLock)(windows_core::Interface::as_raw(self), dwlockflags, &mut result__).map(|| result__) } pub unsafe fn GetStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3242,10 +3242,10 @@ impl ITextStoreAnchor { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), pateststart.param().abi(), patestend.param().abi(), core::mem::transmute(cch), core::mem::transmute(pparesultstart), core::mem::transmute(pparesultend)).ok() + (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), pateststart.param().abi(), patestend.param().abi(), cch, core::mem::transmute(pparesultstart), core::mem::transmute(pparesultend)).ok() } pub unsafe fn GetSelection(&self, ulindex: u32, pselection: &mut [TS_SELECTION_ANCHOR], pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), ulindex, pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn SetSelection(&self, pselection: &[TS_SELECTION_ANCHOR]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr())).ok() @@ -3255,14 +3255,14 @@ impl ITextStoreAnchor { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pastart.param().abi(), paend.param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pcch), fupdateanchor.into()).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), dwflags, pastart.param().abi(), paend.param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pcch), fupdateanchor.into()).ok() } pub unsafe fn SetText(&self, dwflags: u32, pastart: P1, paend: P2, pchtext: &[u16]) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pastart.param().abi(), paend.param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), dwflags, pastart.param().abi(), paend.param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFormattedText(&self, pastart: P0, paend: P1) -> windows_core::Result @@ -3278,7 +3278,7 @@ impl ITextStoreAnchor { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), papos.param().abi(), core::mem::transmute(rguidservice), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), dwflags, papos.param().abi(), rguidservice, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, dwflags: u32, pastart: P1, paend: P2, pdataobject: P3) -> windows_core::Result<()> @@ -3287,29 +3287,29 @@ impl ITextStoreAnchor { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pastart.param().abi(), paend.param().abi(), pdataobject.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), dwflags, pastart.param().abi(), paend.param().abi(), pdataobject.param().abi()).ok() } pub unsafe fn RequestSupportedAttrs(&self, dwflags: u32, pafilterattrs: &[windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RequestSupportedAttrs)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).RequestSupportedAttrs)(windows_core::Interface::as_raw(self), dwflags, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() } pub unsafe fn RequestAttrsAtPosition(&self, papos: P0, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), papos.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), papos.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } pub unsafe fn RequestAttrsTransitioningAtPosition(&self, papos: P0, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), papos.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), papos.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } pub unsafe fn FindNextAttrTransition(&self, pastart: P0, pahalt: P1, pafilterattrs: &[windows_core::GUID], dwflags: u32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), pastart.param().abi(), pahalt.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), core::mem::transmute(dwflags), core::mem::transmute(pffound), core::mem::transmute(plfoundoffset)).ok() + (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), pastart.param().abi(), pahalt.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags, core::mem::transmute(pffound), core::mem::transmute(plfoundoffset)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn RetrieveRequestedAttrs(&self, paattrvals: &mut [TS_ATTRVAL], pcfetched: *mut u32) -> windows_core::Result<()> { @@ -3329,37 +3329,37 @@ impl ITextStoreAnchor { } pub unsafe fn GetAnchorFromPoint(&self, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAnchorFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), core::mem::transmute(ptscreen), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAnchorFromPoint)(windows_core::Interface::as_raw(self), vcview, ptscreen, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTextExt(&self, vcview: u32, pastart: P1, paend: P2, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), pastart.param().abi(), paend.param().abi(), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, pastart.param().abi(), paend.param().abi(), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() } pub unsafe fn GetScreenExt(&self, vcview: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScreenExt)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetScreenExt)(windows_core::Interface::as_raw(self), vcview, &mut result__).map(|| result__) } pub unsafe fn GetWnd(&self, vcview: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWnd)(windows_core::Interface::as_raw(self), core::mem::transmute(vcview), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWnd)(windows_core::Interface::as_raw(self), vcview, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidservice), core::mem::transmute(pformatetc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) } pub unsafe fn InsertTextAtSelection(&self, dwflags: u32, pchtext: &[u16], ppastart: *mut Option, ppaend: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(ppastart), core::mem::transmute(ppaend)).ok() + (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(ppastart), core::mem::transmute(ppaend)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: P1, ppastart: *mut Option, ppaend: *mut Option) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pdataobject.param().abi(), core::mem::transmute(ppastart), core::mem::transmute(ppaend)).ok() + (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.param().abi(), core::mem::transmute(ppastart), core::mem::transmute(ppaend)).ok() } } #[repr(C)] @@ -3660,7 +3660,7 @@ impl ITextStoreAnchorEx { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScrollToRect)(windows_core::Interface::as_raw(self), pstart.param().abi(), pend.param().abi(), core::mem::transmute(rc), core::mem::transmute(dwposition)).ok() + (windows_core::Interface::vtable(self).ScrollToRect)(windows_core::Interface::as_raw(self), pstart.param().abi(), pend.param().abi(), core::mem::transmute(rc), dwposition).ok() } } #[repr(C)] @@ -3692,16 +3692,16 @@ impl ITextStoreAnchorSink { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTextChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), pastart.param().abi(), paend.param().abi()).ok() + (windows_core::Interface::vtable(self).OnTextChange)(windows_core::Interface::as_raw(self), dwflags, pastart.param().abi(), paend.param().abi()).ok() } pub unsafe fn OnSelectionChange(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnSelectionChange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnLayoutChange(&self, lcode: TsLayoutCode, vcview: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), core::mem::transmute(lcode), core::mem::transmute(vcview)).ok() + (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), lcode, vcview).ok() } pub unsafe fn OnStatusChange(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn OnAttrsChange(&self, pastart: P0, paend: P1, paattrs: &[windows_core::GUID]) -> windows_core::Result<()> where @@ -3711,7 +3711,7 @@ impl ITextStoreAnchorSink { (windows_core::Interface::vtable(self).OnAttrsChange)(windows_core::Interface::as_raw(self), pastart.param().abi(), paend.param().abi(), paattrs.len().try_into().unwrap(), core::mem::transmute(paattrs.as_ptr())).ok() } pub unsafe fn OnLockGranted(&self, dwlockflags: TEXT_STORE_LOCK_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnLockGranted)(windows_core::Interface::as_raw(self), core::mem::transmute(dwlockflags)).ok() + (windows_core::Interface::vtable(self).OnLockGranted)(windows_core::Interface::as_raw(self), dwlockflags).ok() } pub unsafe fn OnStartEditTransaction(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnStartEditTransaction)(windows_core::Interface::as_raw(self)).ok() @@ -3831,7 +3831,7 @@ windows_core::imp::define_interface!(ITfActiveLanguageProfileNotifySink, ITfActi windows_core::imp::interface_hierarchy!(ITfActiveLanguageProfileNotifySink, windows_core::IUnknown); impl ITfActiveLanguageProfileNotifySink { pub unsafe fn OnActivated(&self, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), core::mem::transmute(guidprofile), factivated.into()).ok() + (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), clsid, guidprofile, factivated.into()).ok() } } #[repr(C)] @@ -3864,14 +3864,14 @@ impl ITfCandidateList { } pub unsafe fn GetCandidate(&self, nindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCandidate)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCandidate)(windows_core::Interface::as_raw(self), nindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCandidateNum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCandidateNum)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetResult(&self, nindex: u32, imcr: TfCandidateResult) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetResult)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex), core::mem::transmute(imcr)).ok() + (windows_core::Interface::vtable(self).SetResult)(windows_core::Interface::as_raw(self), nindex, imcr).ok() } } #[repr(C)] @@ -3964,7 +3964,7 @@ impl ITfCandidateListUIElement { } pub unsafe fn GetString(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), uindex, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetPageIndex(&self, pindex: &mut [u32], pupagecnt: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPageIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(pindex.as_ptr()), pindex.len().try_into().unwrap(), core::mem::transmute(pupagecnt)).ok() @@ -4096,7 +4096,7 @@ impl core::ops::Deref for ITfCandidateListUIElementBehavior { windows_core::imp::interface_hierarchy!(ITfCandidateListUIElementBehavior, windows_core::IUnknown, ITfUIElement, ITfCandidateListUIElement); impl ITfCandidateListUIElementBehavior { pub unsafe fn SetSelection(&self, nindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(nindex)).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), nindex).ok() } pub unsafe fn Finalize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finalize)(windows_core::Interface::as_raw(self)).ok() @@ -4198,55 +4198,55 @@ windows_core::imp::define_interface!(ITfCategoryMgr, ITfCategoryMgr_Vtbl, 0xc3ac windows_core::imp::interface_hierarchy!(ITfCategoryMgr, windows_core::IUnknown); impl ITfCategoryMgr { pub unsafe fn RegisterCategory(&self, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rcatid), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).RegisterCategory)(windows_core::Interface::as_raw(self), rclsid, rcatid, rguid).ok() } pub unsafe fn UnregisterCategory(&self, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rcatid), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).UnregisterCategory)(windows_core::Interface::as_raw(self), rclsid, rcatid, rguid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCategoriesInItem(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumCategoriesInItem)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumCategoriesInItem)(windows_core::Interface::as_raw(self), rguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumItemsInCategory(&self, rcatid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumItemsInCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(rcatid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumItemsInCategory)(windows_core::Interface::as_raw(self), rcatid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindClosestCategory(&self, rguid: *const windows_core::GUID, pcatid: *mut windows_core::GUID, ppcatidlist: &[*const windows_core::GUID]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).FindClosestCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), core::mem::transmute(pcatid), core::mem::transmute(ppcatidlist.as_ptr()), ppcatidlist.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).FindClosestCategory)(windows_core::Interface::as_raw(self), rguid, core::mem::transmute(pcatid), core::mem::transmute(ppcatidlist.as_ptr()), ppcatidlist.len().try_into().unwrap()).ok() } pub unsafe fn RegisterGUIDDescription(&self, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID, pchdesc: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterGUIDDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rguid), core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).RegisterGUIDDescription)(windows_core::Interface::as_raw(self), rclsid, rguid, core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap()).ok() } pub unsafe fn UnregisterGUIDDescription(&self, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterGUIDDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).UnregisterGUIDDescription)(windows_core::Interface::as_raw(self), rclsid, rguid).ok() } pub unsafe fn GetGUIDDescription(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGUIDDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetGUIDDescription)(windows_core::Interface::as_raw(self), rguid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn RegisterGUIDDWORD(&self, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID, dw: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterGUIDDWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rguid), core::mem::transmute(dw)).ok() + (windows_core::Interface::vtable(self).RegisterGUIDDWORD)(windows_core::Interface::as_raw(self), rclsid, rguid, dw).ok() } pub unsafe fn UnregisterGUIDDWORD(&self, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterGUIDDWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).UnregisterGUIDDWORD)(windows_core::Interface::as_raw(self), rclsid, rguid).ok() } pub unsafe fn GetGUIDDWORD(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGUIDDWORD)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGUIDDWORD)(windows_core::Interface::as_raw(self), rguid, &mut result__).map(|| result__) } pub unsafe fn RegisterGUID(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterGUID)(windows_core::Interface::as_raw(self), rguid, &mut result__).map(|| result__) } pub unsafe fn GetGUID(&self, guidatom: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), core::mem::transmute(guidatom), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), guidatom, &mut result__).map(|| result__) } pub unsafe fn IsEqualTfGuidAtom(&self, guidatom: u32, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualTfGuidAtom)(windows_core::Interface::as_raw(self), core::mem::transmute(guidatom), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqualTfGuidAtom)(windows_core::Interface::as_raw(self), guidatom, rguid, &mut result__).map(|| result__) } } #[repr(C)] @@ -4463,7 +4463,7 @@ impl ITfCleanupContextSink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCleanupContext)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite), pic.param().abi()).ok() + (windows_core::Interface::vtable(self).OnCleanupContext)(windows_core::Interface::as_raw(self), ecwrite, pic.param().abi()).ok() } } #[repr(C)] @@ -4492,7 +4492,7 @@ windows_core::imp::interface_hierarchy!(ITfClientId, windows_core::IUnknown); impl ITfClientId { pub unsafe fn GetClientId(&self, rclsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClientId)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetClientId)(windows_core::Interface::as_raw(self), rclsid, &mut result__).map(|| result__) } } #[repr(C)] @@ -4527,7 +4527,7 @@ windows_core::imp::interface_hierarchy!(ITfCompartment, windows_core::IUnknown); impl ITfCompartment { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, tid: u32, pvarvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), tid, core::mem::transmute(pvarvalue)).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self) -> windows_core::Result { @@ -4581,7 +4581,7 @@ windows_core::imp::define_interface!(ITfCompartmentEventSink, ITfCompartmentEven windows_core::imp::interface_hierarchy!(ITfCompartmentEventSink, windows_core::IUnknown); impl ITfCompartmentEventSink { pub unsafe fn OnChange(&self, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), rguid).ok() } } #[repr(C)] @@ -4610,10 +4610,10 @@ windows_core::imp::interface_hierarchy!(ITfCompartmentMgr, windows_core::IUnknow impl ITfCompartmentMgr { pub unsafe fn GetCompartment(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCompartment)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCompartment)(windows_core::Interface::as_raw(self), rguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ClearCompartment(&self, tid: u32, rguid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ClearCompartment)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), core::mem::transmute(rguid)).ok() + (windows_core::Interface::vtable(self).ClearCompartment)(windows_core::Interface::as_raw(self), tid, rguid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCompartments(&self) -> windows_core::Result { @@ -4688,16 +4688,16 @@ impl ITfComposition { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftStart)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite), pnewstart.param().abi()).ok() + (windows_core::Interface::vtable(self).ShiftStart)(windows_core::Interface::as_raw(self), ecwrite, pnewstart.param().abi()).ok() } pub unsafe fn ShiftEnd(&self, ecwrite: u32, pnewend: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite), pnewend.param().abi()).ok() + (windows_core::Interface::vtable(self).ShiftEnd)(windows_core::Interface::as_raw(self), ecwrite, pnewend.param().abi()).ok() } pub unsafe fn EndComposition(&self, ecwrite: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndComposition)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite)).ok() + (windows_core::Interface::vtable(self).EndComposition)(windows_core::Interface::as_raw(self), ecwrite).ok() } } #[repr(C)] @@ -4758,7 +4758,7 @@ impl ITfCompositionSink { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCompositionTerminated)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite), pcomposition.param().abi()).ok() + (windows_core::Interface::vtable(self).OnCompositionTerminated)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.param().abi()).ok() } } #[repr(C)] @@ -4886,25 +4886,25 @@ impl ITfContext { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestEditSession)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), pes.param().abi(), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestEditSession)(windows_core::Interface::as_raw(self), tid, pes.param().abi(), dwflags, &mut result__).map(|| result__) } pub unsafe fn InWriteSession(&self, tid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InWriteSession)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InWriteSession)(windows_core::Interface::as_raw(self), tid, &mut result__).map(|| result__) } pub unsafe fn GetSelection(&self, ec: u32, ulindex: u32, pselection: &mut [TF_SELECTION], pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(ulindex), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), ec, ulindex, pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), core::mem::transmute(pcfetched)).ok() } pub unsafe fn SetSelection(&self, ec: u32, pselection: &[TF_SELECTION]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), ec, pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr())).ok() } pub unsafe fn GetStart(&self, ec: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStart)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStart)(windows_core::Interface::as_raw(self), ec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEnd(&self, ec: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEnd)(windows_core::Interface::as_raw(self), ec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetActiveView(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4920,11 +4920,11 @@ impl ITfContext { } pub unsafe fn GetProperty(&self, guidprop: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprop), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), guidprop, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAppProperty(&self, guidprop: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAppProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprop), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAppProperty)(windows_core::Interface::as_raw(self), guidprop, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TrackProperties(&self, prgprop: &[*const windows_core::GUID], prgappprop: &[*const windows_core::GUID]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4943,7 +4943,7 @@ impl ITfContext { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRangeBackup)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRangeBackup)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5155,7 +5155,7 @@ impl ITfContextComposition { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StartComposition)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite), pcompositionrange.param().abi(), psink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).StartComposition)(windows_core::Interface::as_raw(self), ecwrite, pcompositionrange.param().abi(), psink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumCompositions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5166,7 +5166,7 @@ impl ITfContextComposition { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindComposition)(windows_core::Interface::as_raw(self), core::mem::transmute(ecread), ptestrange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindComposition)(windows_core::Interface::as_raw(self), ecread, ptestrange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TakeOwnership(&self, ecwrite: u32, pcomposition: P1, psink: P2) -> windows_core::Result where @@ -5174,7 +5174,7 @@ impl ITfContextComposition { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TakeOwnership)(windows_core::Interface::as_raw(self), core::mem::transmute(ecwrite), pcomposition.param().abi(), psink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TakeOwnership)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.param().abi(), psink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5251,19 +5251,19 @@ windows_core::imp::interface_hierarchy!(ITfContextKeyEventSink, windows_core::IU impl ITfContextKeyEventSink { pub unsafe fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnTestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnTestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } #[repr(C)] @@ -5340,10 +5340,10 @@ windows_core::imp::interface_hierarchy!(ITfContextOwner, windows_core::IUnknown) impl ITfContextOwner { pub unsafe fn GetACPFromPoint(&self, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(ptscreen), core::mem::transmute(dwflags), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), ptscreen, dwflags, &mut result__).map(|| result__) } pub unsafe fn GetTextExt(&self, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), acpstart, acpend, core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() } pub unsafe fn GetScreenExt(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5360,7 +5360,7 @@ impl ITfContextOwner { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetAttribute(&self, rguidattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidattribute), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), rguidattribute, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -5570,10 +5570,10 @@ impl ITfContextOwnerServices { (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnStatusChange(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn OnAttributeChange(&self, rguidattribute: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnAttributeChange)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidattribute)).ok() + (windows_core::Interface::vtable(self).OnAttributeChange)(windows_core::Interface::as_raw(self), rguidattribute).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, pprop: P0, prange: P1, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: P3) -> windows_core::Result<()> @@ -5591,7 +5591,7 @@ impl ITfContextOwnerServices { P2: windows_core::Param, P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Unserialize)(windows_core::Interface::as_raw(self), pprop.param().abi(), core::mem::transmute(phdr), pstream.param().abi(), ploader.param().abi()).ok() + (windows_core::Interface::vtable(self).Unserialize)(windows_core::Interface::as_raw(self), pprop.param().abi(), phdr, pstream.param().abi(), ploader.param().abi()).ok() } pub unsafe fn ForceLoadProperty(&self, pprop: P0) -> windows_core::Result<()> where @@ -5601,7 +5601,7 @@ impl ITfContextOwnerServices { } pub unsafe fn CreateRange(&self, acpstart: i32, acpend: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRange)(windows_core::Interface::as_raw(self), core::mem::transmute(acpstart), core::mem::transmute(acpend), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRange)(windows_core::Interface::as_raw(self), acpstart, acpend, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5690,13 +5690,13 @@ windows_core::imp::interface_hierarchy!(ITfContextView, windows_core::IUnknown); impl ITfContextView { pub unsafe fn GetRangeFromPoint(&self, ec: u32, ppt: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRangeFromPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(ppt), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRangeFromPoint)(windows_core::Interface::as_raw(self), ec, ppt, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTextExt(&self, ec: u32, prange: P1, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), core::mem::transmute(prc), core::mem::transmute(pfclipped)).ok() } pub unsafe fn GetScreenExt(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -5779,7 +5779,7 @@ impl ITfCreatePropertyStore { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsStoreSerializable)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprop), prange.param().abi(), ppropstore.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsStoreSerializable)(windows_core::Interface::as_raw(self), guidprop, prange.param().abi(), ppropstore.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePropertyStore(&self, guidprop: *const windows_core::GUID, prange: P1, cb: u32, pstream: P3) -> windows_core::Result @@ -5788,7 +5788,7 @@ impl ITfCreatePropertyStore { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyStore)(windows_core::Interface::as_raw(self), core::mem::transmute(guidprop), prange.param().abi(), core::mem::transmute(cb), pstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyStore)(windows_core::Interface::as_raw(self), guidprop, prange.param().abi(), cb, pstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5855,7 +5855,7 @@ impl ITfDisplayAttributeInfo { (windows_core::Interface::vtable(self).GetAttributeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pda)).ok() } pub unsafe fn SetAttributeInfo(&self, pda: *const TF_DISPLAYATTRIBUTE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetAttributeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pda)).ok() + (windows_core::Interface::vtable(self).SetAttributeInfo)(windows_core::Interface::as_raw(self), pda).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -5936,7 +5936,7 @@ impl ITfDisplayAttributeMgr { (windows_core::Interface::vtable(self).EnumDisplayAttributeInfo)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDisplayAttributeInfo(&self, guid: *const windows_core::GUID, ppinfo: *mut Option, pclsidowner: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDisplayAttributeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), core::mem::transmute(ppinfo), core::mem::transmute(pclsidowner)).ok() + (windows_core::Interface::vtable(self).GetDisplayAttributeInfo)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(ppinfo), core::mem::transmute(pclsidowner)).ok() } } #[repr(C)] @@ -6020,7 +6020,7 @@ impl ITfDisplayAttributeProvider { } pub unsafe fn GetDisplayAttributeInfo(&self, guid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayAttributeInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(guid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDisplayAttributeInfo)(windows_core::Interface::as_raw(self), guid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6073,7 +6073,7 @@ impl ITfDocumentMgr { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), core::mem::transmute(tidowner), core::mem::transmute(dwflags), punk.param().abi(), core::mem::transmute(ppic), core::mem::transmute(pectextstore)).ok() + (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), tidowner, dwflags, punk.param().abi(), core::mem::transmute(ppic), core::mem::transmute(pectextstore)).ok() } pub unsafe fn Push(&self, pic: P0) -> windows_core::Result<()> where @@ -6082,7 +6082,7 @@ impl ITfDocumentMgr { (windows_core::Interface::vtable(self).Push)(windows_core::Interface::as_raw(self), pic.param().abi()).ok() } pub unsafe fn Pop(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Pop)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).Pop)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetTop(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -6183,7 +6183,7 @@ impl ITfEditRecord { } pub unsafe fn GetTextAndPropertyUpdates(&self, dwflags: GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, prgproperties: &[*const windows_core::GUID]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTextAndPropertyUpdates)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), core::mem::transmute(prgproperties.as_ptr()), prgproperties.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTextAndPropertyUpdates)(windows_core::Interface::as_raw(self), dwflags, core::mem::transmute(prgproperties.as_ptr()), prgproperties.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6233,7 +6233,7 @@ windows_core::imp::define_interface!(ITfEditSession, ITfEditSession_Vtbl, 0xaa80 windows_core::imp::interface_hierarchy!(ITfEditSession, windows_core::IUnknown); impl ITfEditSession { pub unsafe fn DoEditSession(&self, ec: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DoEditSession)(windows_core::Interface::as_raw(self), core::mem::transmute(ec)).ok() + (windows_core::Interface::vtable(self).DoEditSession)(windows_core::Interface::as_raw(self), ec).ok() } } #[repr(C)] @@ -6362,7 +6362,7 @@ windows_core::imp::define_interface!(ITfFnBalloon, ITfFnBalloon_Vtbl, 0x3bab89e4 windows_core::imp::interface_hierarchy!(ITfFnBalloon, windows_core::IUnknown); impl ITfFnBalloon { pub unsafe fn UpdateBalloon(&self, style: TfLBBalloonStyle, pch: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateBalloon)(windows_core::Interface::as_raw(self), core::mem::transmute(style), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).UpdateBalloon)(windows_core::Interface::as_raw(self), style, core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -6396,7 +6396,7 @@ impl core::ops::Deref for ITfFnConfigure { windows_core::imp::interface_hierarchy!(ITfFnConfigure, windows_core::IUnknown, ITfFunction); impl ITfFnConfigure { pub unsafe fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(langid), core::mem::transmute(rguidprofile)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent, langid, rguidprofile).ok() } } #[repr(C)] @@ -6430,7 +6430,7 @@ impl core::ops::Deref for ITfFnConfigureRegisterEudc { windows_core::imp::interface_hierarchy!(ITfFnConfigureRegisterEudc, windows_core::IUnknown, ITfFunction); impl ITfFnConfigureRegisterEudc { pub unsafe fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(langid), core::mem::transmute(rguidprofile), core::mem::transmute_copy(bstrregistered)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent, langid, rguidprofile, core::mem::transmute_copy(bstrregistered)).ok() } } #[repr(C)] @@ -6464,7 +6464,7 @@ impl core::ops::Deref for ITfFnConfigureRegisterWord { windows_core::imp::interface_hierarchy!(ITfFnConfigureRegisterWord, windows_core::IUnknown, ITfFunction); impl ITfFnConfigureRegisterWord { pub unsafe fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: &windows_core::BSTR) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent), core::mem::transmute(langid), core::mem::transmute(rguidprofile), core::mem::transmute_copy(bstrregistered)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent, langid, rguidprofile, core::mem::transmute_copy(bstrregistered)).ok() } } #[repr(C)] @@ -6579,7 +6579,7 @@ impl core::ops::Deref for ITfFnGetPreferredTouchKeyboardLayout { windows_core::imp::interface_hierarchy!(ITfFnGetPreferredTouchKeyboardLayout, windows_core::IUnknown, ITfFunction); impl ITfFnGetPreferredTouchKeyboardLayout { pub unsafe fn GetLayout(&self, ptkblayouttype: *mut TKBLayoutType, pwpreferredlayoutid: *const u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(ptkblayouttype), core::mem::transmute(pwpreferredlayoutid)).ok() + (windows_core::Interface::vtable(self).GetLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(ptkblayouttype), pwpreferredlayoutid).ok() } } #[repr(C)] @@ -6614,7 +6614,7 @@ windows_core::imp::interface_hierarchy!(ITfFnGetSAPIObject, windows_core::IUnkno impl ITfFnGetSAPIObject { pub unsafe fn Get(&self, sobj: TfSapiObject) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), core::mem::transmute(sobj), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), sobj, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6698,7 +6698,7 @@ impl ITfFnLMProcessor { } pub unsafe fn QueryLangID(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryLangID)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryLangID)(windows_core::Interface::as_raw(self), langid, &mut result__).map(|| result__) } pub unsafe fn GetReconversion(&self, prange: P0) -> windows_core::Result where @@ -6715,16 +6715,16 @@ impl ITfFnLMProcessor { } pub unsafe fn QueryKey(&self, fup: bool, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryKey)(windows_core::Interface::as_raw(self), fup.into(), core::mem::transmute(vkey), core::mem::transmute(lparamkeydata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryKey)(windows_core::Interface::as_raw(self), fup.into(), vkey, lparamkeydata, &mut result__).map(|| result__) } pub unsafe fn InvokeKey(&self, fup: bool, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).InvokeKey)(windows_core::Interface::as_raw(self), fup.into(), core::mem::transmute(vkey), core::mem::transmute(lparamkeydata)).ok() + (windows_core::Interface::vtable(self).InvokeKey)(windows_core::Interface::as_raw(self), fup.into(), vkey, lparamkeydata).ok() } pub unsafe fn InvokeFunc(&self, pic: P0, refguidfunc: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeFunc)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(refguidfunc)).ok() + (windows_core::Interface::vtable(self).InvokeFunc)(windows_core::Interface::as_raw(self), pic.param().abi(), refguidfunc).ok() } } #[repr(C)] @@ -6825,7 +6825,7 @@ impl ITfFnLangProfileUtil { } pub unsafe fn IsProfileAvailableForLang(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsProfileAvailableForLang)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsProfileAvailableForLang)(windows_core::Interface::as_raw(self), langid, &mut result__).map(|| result__) } } #[repr(C)] @@ -6925,10 +6925,10 @@ windows_core::imp::interface_hierarchy!(ITfFnPropertyUIStatus, windows_core::IUn impl ITfFnPropertyUIStatus { pub unsafe fn GetStatus(&self, refguidprop: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(refguidprop), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), refguidprop, &mut result__).map(|| result__) } pub unsafe fn SetStatus(&self, refguidprop: *const windows_core::GUID, dw: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(refguidprop), core::mem::transmute(dw)).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), refguidprop, dw).ok() } } #[repr(C)] @@ -7101,7 +7101,7 @@ impl core::ops::Deref for ITfFnShowHelp { windows_core::imp::interface_hierarchy!(ITfFnShowHelp, windows_core::IUnknown, ITfFunction); impl ITfFnShowHelp { pub unsafe fn Show(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), core::mem::transmute(hwndparent)).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent).ok() } } #[repr(C)] @@ -7173,7 +7173,7 @@ impl ITfFunctionProvider { } pub unsafe fn GetFunction(&self, rguid: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunction)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFunction)(windows_core::Interface::as_raw(self), rguid, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7237,7 +7237,7 @@ windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileActivationSink, impl ITfInputProcessorProfileActivationSink { #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofiletype), core::mem::transmute(langid), core::mem::transmute(clsid), core::mem::transmute(catid), core::mem::transmute(guidprofile), core::mem::transmute(hkl), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, catid, guidprofile, hkl, dwflags).ok() } } #[repr(C)] @@ -7272,33 +7272,33 @@ windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileMgr, windows_cor impl ITfInputProcessorProfileMgr { #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).ActivateProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofiletype), core::mem::transmute(langid), core::mem::transmute(clsid), core::mem::transmute(guidprofile), core::mem::transmute(hkl), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ActivateProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl, dwflags).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).DeactivateProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofiletype), core::mem::transmute(langid), core::mem::transmute(clsid), core::mem::transmute(guidprofile), core::mem::transmute(hkl), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DeactivateProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl, dwflags).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(dwprofiletype), core::mem::transmute(langid), core::mem::transmute(clsid), core::mem::transmute(guidprofile), core::mem::transmute(hkl), core::mem::transmute(pprofile)).ok() + (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl, core::mem::transmute(pprofile)).ok() } pub unsafe fn EnumProfiles(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumProfiles)(windows_core::Interface::as_raw(self), langid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReleaseInputProcessor(&self, rclsid: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReleaseInputProcessor)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ReleaseInputProcessor)(windows_core::Interface::as_raw(self), rclsid, dwflags).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn RegisterProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: &[u16], pchiconfile: &[u16], uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: bool, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RegisterProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap(), core::mem::transmute(pchiconfile.as_ptr()), pchiconfile.len().try_into().unwrap(), core::mem::transmute(uiconindex), core::mem::transmute(hklsubstitute), core::mem::transmute(dwpreferredlayout), benabledbydefault.into(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).RegisterProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap(), core::mem::transmute(pchiconfile.as_ptr()), pchiconfile.len().try_into().unwrap(), uiconindex, hklsubstitute, dwpreferredlayout, benabledbydefault.into(), dwflags).ok() } pub unsafe fn UnregisterProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).UnregisterProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, dwflags).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetActiveProfile(&self, catid: *const windows_core::GUID, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetActiveProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(catid), core::mem::transmute(pprofile)).ok() + (windows_core::Interface::vtable(self).GetActiveProfile)(windows_core::Interface::as_raw(self), catid, core::mem::transmute(pprofile)).ok() } } #[repr(C)] @@ -7404,7 +7404,7 @@ impl ITfInputProcessorProfileSubstituteLayout { #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn GetSubstituteKeyboardLayout(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, &mut result__).map(|| result__) } } #[repr(C)] @@ -7444,16 +7444,16 @@ windows_core::imp::define_interface!(ITfInputProcessorProfiles, ITfInputProcesso windows_core::imp::interface_hierarchy!(ITfInputProcessorProfiles, windows_core::IUnknown); impl ITfInputProcessorProfiles { pub unsafe fn Register(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid)).ok() + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), rclsid).ok() } pub unsafe fn Unregister(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unregister)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid)).ok() + (windows_core::Interface::vtable(self).Unregister)(windows_core::Interface::as_raw(self), rclsid).ok() } pub unsafe fn AddLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: &[u16], pchiconfile: &[u16], uiconindex: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap(), core::mem::transmute(pchiconfile.as_ptr()), pchiconfile.len().try_into().unwrap(), core::mem::transmute(uiconindex)).ok() + (windows_core::Interface::vtable(self).AddLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap(), core::mem::transmute(pchiconfile.as_ptr()), pchiconfile.len().try_into().unwrap(), uiconindex).ok() } pub unsafe fn RemoveLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile)).ok() + (windows_core::Interface::vtable(self).RemoveLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumInputProcessorInfo(&self) -> windows_core::Result { @@ -7461,48 +7461,48 @@ impl ITfInputProcessorProfiles { (windows_core::Interface::vtable(self).EnumInputProcessorInfo)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultLanguageProfile(&self, langid: u16, catid: *const windows_core::GUID, pclsid: *mut windows_core::GUID, pguidprofile: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetDefaultLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), core::mem::transmute(catid), core::mem::transmute(pclsid), core::mem::transmute(pguidprofile)).ok() + (windows_core::Interface::vtable(self).GetDefaultLanguageProfile)(windows_core::Interface::as_raw(self), langid, catid, core::mem::transmute(pclsid), core::mem::transmute(pguidprofile)).ok() } pub unsafe fn SetDefaultLanguageProfile(&self, langid: u16, rclsid: *const windows_core::GUID, guidprofiles: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefaultLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), core::mem::transmute(rclsid), core::mem::transmute(guidprofiles)).ok() + (windows_core::Interface::vtable(self).SetDefaultLanguageProfile)(windows_core::Interface::as_raw(self), langid, rclsid, guidprofiles).ok() } pub unsafe fn ActivateLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofiles: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofiles)).ok() + (windows_core::Interface::vtable(self).ActivateLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofiles).ok() } pub unsafe fn GetActiveLanguageProfile(&self, rclsid: *const windows_core::GUID, plangid: *mut u16, pguidprofile: *mut windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetActiveLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(plangid), core::mem::transmute(pguidprofile)).ok() + (windows_core::Interface::vtable(self).GetActiveLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, core::mem::transmute(plangid), core::mem::transmute(pguidprofile)).ok() } pub unsafe fn GetLanguageProfileDescription(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLanguageProfileDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetLanguageProfileDescription)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetCurrentLanguage(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCurrentLanguage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn ChangeCurrentLanguage(&self, langid: u16) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ChangeCurrentLanguage)(windows_core::Interface::as_raw(self), core::mem::transmute(langid)).ok() + (windows_core::Interface::vtable(self).ChangeCurrentLanguage)(windows_core::Interface::as_raw(self), langid).ok() } pub unsafe fn GetLanguageList(&self, pplangid: *mut *mut u16, pulcount: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLanguageList)(windows_core::Interface::as_raw(self), core::mem::transmute(pplangid), core::mem::transmute(pulcount)).ok() } pub unsafe fn EnumLanguageProfiles(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumLanguageProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumLanguageProfiles)(windows_core::Interface::as_raw(self), langid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), fenable.into()).ok() + (windows_core::Interface::vtable(self).EnableLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into()).ok() } pub unsafe fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEnabledLanguageProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEnabledLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, &mut result__).map(|| result__) } pub unsafe fn EnableLanguageProfileByDefault(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EnableLanguageProfileByDefault)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), fenable.into()).ok() + (windows_core::Interface::vtable(self).EnableLanguageProfileByDefault)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into()).ok() } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub unsafe fn SubstituteKeyboardLayout(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), core::mem::transmute(hkl)).ok() + (windows_core::Interface::vtable(self).SubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, hkl).ok() } } #[repr(C)] @@ -7697,7 +7697,7 @@ impl core::ops::Deref for ITfInputProcessorProfilesEx { windows_core::imp::interface_hierarchy!(ITfInputProcessorProfilesEx, windows_core::IUnknown, ITfInputProcessorProfiles); impl ITfInputProcessorProfilesEx { pub unsafe fn SetLanguageProfileDisplayName(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchfile: &[u16], uresid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetLanguageProfileDisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(rclsid), core::mem::transmute(langid), core::mem::transmute(guidprofile), core::mem::transmute(pchfile.as_ptr()), pchfile.len().try_into().unwrap(), core::mem::transmute(uresid)).ok() + (windows_core::Interface::vtable(self).SetLanguageProfileDisplayName)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, core::mem::transmute(pchfile.as_ptr()), pchfile.len().try_into().unwrap(), uresid).ok() } } #[repr(C)] @@ -7872,7 +7872,7 @@ windows_core::imp::interface_hierarchy!(ITfInsertAtSelection, windows_core::IUnk impl ITfInsertAtSelection { pub unsafe fn InsertTextAtSelection(&self, ec: u32, dwflags: INSERT_TEXT_AT_SELECTION_FLAGS, pchtext: &[u16]) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dwflags), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InsertTextAtSelection)(windows_core::Interface::as_raw(self), ec, dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, ec: u32, dwflags: u32, pdataobject: P2) -> windows_core::Result @@ -7880,7 +7880,7 @@ impl ITfInsertAtSelection { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dwflags), pdataobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), ec, dwflags, pdataobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7944,7 +7944,7 @@ impl ITfIntegratableCandidateListUIElement { } pub unsafe fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn ShowCandidateNumbers(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8035,35 +8035,35 @@ impl ITfKeyEventSink { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnTestKeyUp(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnKeyDown(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnKeyUp(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn OnPreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnPreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), rguid, &mut result__).map(|| result__) } } #[repr(C)] @@ -8159,10 +8159,10 @@ windows_core::imp::define_interface!(ITfKeyTraceEventSink, ITfKeyTraceEventSink_ windows_core::imp::interface_hierarchy!(ITfKeyTraceEventSink, windows_core::IUnknown); impl ITfKeyTraceEventSink { pub unsafe fn OnKeyTraceDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnKeyTraceDown)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).OnKeyTraceDown)(windows_core::Interface::as_raw(self), wparam, lparam).ok() } pub unsafe fn OnKeyTraceUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnKeyTraceUp)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).OnKeyTraceUp)(windows_core::Interface::as_raw(self), wparam, lparam).ok() } } #[repr(C)] @@ -8203,10 +8203,10 @@ impl ITfKeystrokeMgr { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseKeyEventSink)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), psink.param().abi(), fforeground.into()).ok() + (windows_core::Interface::vtable(self).AdviseKeyEventSink)(windows_core::Interface::as_raw(self), tid, psink.param().abi(), fforeground.into()).ok() } pub unsafe fn UnadviseKeyEventSink(&self, tid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseKeyEventSink)(windows_core::Interface::as_raw(self), core::mem::transmute(tid)).ok() + (windows_core::Interface::vtable(self).UnadviseKeyEventSink)(windows_core::Interface::as_raw(self), tid).ok() } pub unsafe fn GetForeground(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8214,50 +8214,50 @@ impl ITfKeystrokeMgr { } pub unsafe fn TestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TestKeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TestKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn TestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TestKeyUp)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TestKeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn KeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn KeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } pub unsafe fn GetPreservedKey(&self, pic: P0, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(pprekey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), pprekey, &mut result__).map(|| result__) } pub unsafe fn IsPreservedKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPreservedKey)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), core::mem::transmute(pprekey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPreservedKey)(windows_core::Interface::as_raw(self), rguid, pprekey, &mut result__).map(|| result__) } pub unsafe fn PreserveKey(&self, tid: u32, rguid: *const windows_core::GUID, prekey: *const TF_PRESERVEDKEY, pchdesc: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).PreserveKey)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), core::mem::transmute(rguid), core::mem::transmute(prekey), core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).PreserveKey)(windows_core::Interface::as_raw(self), tid, rguid, prekey, core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap()).ok() } pub unsafe fn UnpreserveKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnpreserveKey)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), core::mem::transmute(pprekey)).ok() + (windows_core::Interface::vtable(self).UnpreserveKey)(windows_core::Interface::as_raw(self), rguid, pprekey).ok() } pub unsafe fn SetPreservedKeyDescription(&self, rguid: *const windows_core::GUID, pchdesc: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPreservedKeyDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetPreservedKeyDescription)(windows_core::Interface::as_raw(self), rguid, core::mem::transmute(pchdesc.as_ptr()), pchdesc.len().try_into().unwrap()).ok() } pub unsafe fn GetPreservedKeyDescription(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreservedKeyDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetPreservedKeyDescription)(windows_core::Interface::as_raw(self), rguid, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SimulatePreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).SimulatePreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SimulatePreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), rguid, &mut result__).map(|| result__) } } #[repr(C)] @@ -8434,11 +8434,11 @@ windows_core::imp::interface_hierarchy!(ITfLMLattice, windows_core::IUnknown); impl ITfLMLattice { pub unsafe fn QueryType(&self, rguidtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryType)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidtype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryType)(windows_core::Interface::as_raw(self), rguidtype, &mut result__).map(|| result__) } pub unsafe fn EnumLatticeElements(&self, dwframestart: u32, rguidtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumLatticeElements)(windows_core::Interface::as_raw(self), core::mem::transmute(dwframestart), core::mem::transmute(rguidtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumLatticeElements)(windows_core::Interface::as_raw(self), dwframestart, rguidtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8488,23 +8488,23 @@ windows_core::imp::define_interface!(ITfLangBarEventSink, ITfLangBarEventSink_Vt windows_core::imp::interface_hierarchy!(ITfLangBarEventSink, windows_core::IUnknown); impl ITfLangBarEventSink { pub unsafe fn OnSetFocus(&self, dwthreadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid)).ok() + (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), dwthreadid).ok() } pub unsafe fn OnThreadTerminate(&self, dwthreadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadTerminate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid)).ok() + (windows_core::Interface::vtable(self).OnThreadTerminate)(windows_core::Interface::as_raw(self), dwthreadid).ok() } pub unsafe fn OnThreadItemChange(&self, dwthreadid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnThreadItemChange)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid)).ok() + (windows_core::Interface::vtable(self).OnThreadItemChange)(windows_core::Interface::as_raw(self), dwthreadid).ok() } pub unsafe fn OnModalInput(&self, dwthreadid: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnModalInput)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + (windows_core::Interface::vtable(self).OnModalInput)(windows_core::Interface::as_raw(self), dwthreadid, umsg, wparam, lparam).ok() } pub unsafe fn ShowFloating(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowFloating)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ShowFloating)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetItemFloatingRect(&self, dwthreadid: u32, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemFloatingRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemFloatingRect)(windows_core::Interface::as_raw(self), dwthreadid, rguid, &mut result__).map(|| result__) } } #[repr(C)] @@ -8657,11 +8657,11 @@ impl core::ops::Deref for ITfLangBarItemBalloon { windows_core::imp::interface_hierarchy!(ITfLangBarItemBalloon, windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemBalloon { pub unsafe fn OnClick(&self, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), core::mem::transmute(click), core::mem::transmute(pt), core::mem::transmute(prcarea)).ok() + (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), click, core::mem::transmute(pt), prcarea).ok() } pub unsafe fn GetPreferredSize(&self, pszdefault: *const super::super::Foundation::SIZE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreferredSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszdefault), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPreferredSize)(windows_core::Interface::as_raw(self), pszdefault, &mut result__).map(|| result__) } pub unsafe fn GetBalloonInfo(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8728,15 +8728,15 @@ impl core::ops::Deref for ITfLangBarItemBitmap { windows_core::imp::interface_hierarchy!(ITfLangBarItemBitmap, windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemBitmap { pub unsafe fn OnClick(&self, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), core::mem::transmute(click), core::mem::transmute(pt), core::mem::transmute(prcarea)).ok() + (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), click, core::mem::transmute(pt), prcarea).ok() } pub unsafe fn GetPreferredSize(&self, pszdefault: *const super::super::Foundation::SIZE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreferredSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszdefault), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPreferredSize)(windows_core::Interface::as_raw(self), pszdefault, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DrawBitmap(&self, bmwidth: i32, bmheight: i32, dwflags: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, phbmpmask: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(bmwidth), core::mem::transmute(bmheight), core::mem::transmute(dwflags), core::mem::transmute(phbmp), core::mem::transmute(phbmpmask)).ok() + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bmwidth, bmheight, dwflags, core::mem::transmute(phbmp), core::mem::transmute(phbmpmask)).ok() } } #[repr(C)] @@ -8799,7 +8799,7 @@ impl core::ops::Deref for ITfLangBarItemBitmapButton { windows_core::imp::interface_hierarchy!(ITfLangBarItemBitmapButton, windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemBitmapButton { pub unsafe fn OnClick(&self, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), core::mem::transmute(click), core::mem::transmute(pt), core::mem::transmute(prcarea)).ok() + (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), click, core::mem::transmute(pt), prcarea).ok() } pub unsafe fn InitMenu(&self, pmenu: P0) -> windows_core::Result<()> where @@ -8808,15 +8808,15 @@ impl ITfLangBarItemBitmapButton { (windows_core::Interface::vtable(self).InitMenu)(windows_core::Interface::as_raw(self), pmenu.param().abi()).ok() } pub unsafe fn OnMenuSelect(&self, wid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMenuSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(wid)).ok() + (windows_core::Interface::vtable(self).OnMenuSelect)(windows_core::Interface::as_raw(self), wid).ok() } pub unsafe fn GetPreferredSize(&self, pszdefault: *const super::super::Foundation::SIZE) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreferredSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszdefault), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPreferredSize)(windows_core::Interface::as_raw(self), pszdefault, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DrawBitmap(&self, bmwidth: i32, bmheight: i32, dwflags: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, phbmpmask: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(bmwidth), core::mem::transmute(bmheight), core::mem::transmute(dwflags), core::mem::transmute(phbmp), core::mem::transmute(phbmpmask)).ok() + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bmwidth, bmheight, dwflags, core::mem::transmute(phbmp), core::mem::transmute(phbmpmask)).ok() } pub unsafe fn GetText(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -8910,7 +8910,7 @@ impl core::ops::Deref for ITfLangBarItemButton { windows_core::imp::interface_hierarchy!(ITfLangBarItemButton, windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemButton { pub unsafe fn OnClick(&self, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), core::mem::transmute(click), core::mem::transmute(pt), core::mem::transmute(prcarea)).ok() + (windows_core::Interface::vtable(self).OnClick)(windows_core::Interface::as_raw(self), click, core::mem::transmute(pt), prcarea).ok() } pub unsafe fn InitMenu(&self, pmenu: P0) -> windows_core::Result<()> where @@ -8919,7 +8919,7 @@ impl ITfLangBarItemButton { (windows_core::Interface::vtable(self).InitMenu)(windows_core::Interface::as_raw(self), pmenu.param().abi()).ok() } pub unsafe fn OnMenuSelect(&self, wid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMenuSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(wid)).ok() + (windows_core::Interface::vtable(self).OnMenuSelect)(windows_core::Interface::as_raw(self), wid).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetIcon(&self) -> windows_core::Result { @@ -9010,7 +9010,7 @@ impl ITfLangBarItemMgr { } pub unsafe fn GetItem(&self, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), core::mem::transmute(rguid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItem)(windows_core::Interface::as_raw(self), rguid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddItem(&self, punk: P0) -> windows_core::Result<()> where @@ -9028,29 +9028,29 @@ impl ITfLangBarItemMgr { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseItemSink)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(pdwcookie), core::mem::transmute(rguiditem)).ok() + (windows_core::Interface::vtable(self).AdviseItemSink)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(pdwcookie), rguiditem).ok() } pub unsafe fn UnadviseItemSink(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseItemSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnadviseItemSink)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn GetItemFloatingRect(&self, dwthreadid: u32, rguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemFloatingRect)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(rguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemFloatingRect)(windows_core::Interface::as_raw(self), dwthreadid, rguid, &mut result__).map(|| result__) } pub unsafe fn GetItemsStatus(&self, ulcount: u32, prgguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemsStatus)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(prgguid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemsStatus)(windows_core::Interface::as_raw(self), ulcount, prgguid, &mut result__).map(|| result__) } pub unsafe fn GetItemNum(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetItemNum)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn GetItems(&self, ulcount: u32, ppitem: *mut Option, pinfo: *mut TF_LANGBARITEMINFO, pdwstatus: *mut u32, pcfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetItems)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(ppitem), core::mem::transmute(pinfo), core::mem::transmute(pdwstatus), core::mem::transmute(pcfetched)).ok() + (windows_core::Interface::vtable(self).GetItems)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(ppitem), core::mem::transmute(pinfo), core::mem::transmute(pdwstatus), core::mem::transmute(pcfetched)).ok() } pub unsafe fn AdviseItemsSink(&self, ulcount: u32, ppunk: *const Option, pguiditem: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseItemsSink)(windows_core::Interface::as_raw(self), core::mem::transmute(ulcount), core::mem::transmute(ppunk), core::mem::transmute(pguiditem), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdviseItemsSink)(windows_core::Interface::as_raw(self), ulcount, core::mem::transmute(ppunk), pguiditem, &mut result__).map(|| result__) } pub unsafe fn UnadviseItemsSink(&self, pdwcookie: &[u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnadviseItemsSink)(windows_core::Interface::as_raw(self), pdwcookie.len().try_into().unwrap(), core::mem::transmute(pdwcookie.as_ptr())).ok() @@ -9197,7 +9197,7 @@ windows_core::imp::define_interface!(ITfLangBarItemSink, ITfLangBarItemSink_Vtbl windows_core::imp::interface_hierarchy!(ITfLangBarItemSink, windows_core::IUnknown); impl ITfLangBarItemSink { pub unsafe fn OnUpdate(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), dwflags).ok() } } #[repr(C)] @@ -9228,20 +9228,20 @@ impl ITfLangBarMgr { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseEventSink)(windows_core::Interface::as_raw(self), psink.param().abi(), core::mem::transmute(hwnd), core::mem::transmute(dwflags), core::mem::transmute(pdwcookie)).ok() + (windows_core::Interface::vtable(self).AdviseEventSink)(windows_core::Interface::as_raw(self), psink.param().abi(), hwnd, dwflags, pdwcookie).ok() } pub unsafe fn UnadviseEventSink(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseEventSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnadviseEventSink)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn GetThreadMarshalInterface(&self, dwthreadid: u32, dwtype: u32, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetThreadMarshalInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(dwtype), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetThreadMarshalInterface)(windows_core::Interface::as_raw(self), dwthreadid, dwtype, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetThreadLangBarItemMgr(&self, dwthreadid: u32, pplbi: *mut Option, pdwthreadid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetThreadLangBarItemMgr)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(pplbi), core::mem::transmute(pdwthreadid)).ok() + (windows_core::Interface::vtable(self).GetThreadLangBarItemMgr)(windows_core::Interface::as_raw(self), dwthreadid, core::mem::transmute(pplbi), core::mem::transmute(pdwthreadid)).ok() } pub unsafe fn GetInputProcessorProfiles(&self, dwthreadid: u32, ppaip: *mut Option, pdwthreadid: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputProcessorProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(dwthreadid), core::mem::transmute(ppaip), core::mem::transmute(pdwthreadid)).ok() + (windows_core::Interface::vtable(self).GetInputProcessorProfiles)(windows_core::Interface::as_raw(self), dwthreadid, core::mem::transmute(ppaip), core::mem::transmute(pdwthreadid)).ok() } pub unsafe fn RestoreLastFocus(&self, pdwthreadid: *mut u32, fprev: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestoreLastFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwthreadid), fprev.into()).ok() @@ -9250,10 +9250,10 @@ impl ITfLangBarMgr { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModalInput)(windows_core::Interface::as_raw(self), psink.param().abi(), core::mem::transmute(dwthreadid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetModalInput)(windows_core::Interface::as_raw(self), psink.param().abi(), dwthreadid, dwflags).ok() } pub unsafe fn ShowFloating(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShowFloating)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ShowFloating)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetShowFloatingStatus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -9357,7 +9357,7 @@ windows_core::imp::interface_hierarchy!(ITfLanguageProfileNotifySink, windows_co impl ITfLanguageProfileNotifySink { pub unsafe fn OnLanguageChange(&self, langid: u16) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnLanguageChange)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnLanguageChange)(windows_core::Interface::as_raw(self), langid, &mut result__).map(|| result__) } pub unsafe fn OnLanguageChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnLanguageChanged)(windows_core::Interface::as_raw(self)).ok() @@ -9446,7 +9446,7 @@ windows_core::imp::interface_hierarchy!(ITfMenu, windows_core::IUnknown); impl ITfMenu { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddMenuItem(&self, uid: u32, dwflags: u32, hbmp: super::super::Graphics::Gdi::HBITMAP, hbmpmask: super::super::Graphics::Gdi::HBITMAP, pch: &[u16], ppmenu: *mut Option) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AddMenuItem)(windows_core::Interface::as_raw(self), core::mem::transmute(uid), core::mem::transmute(dwflags), core::mem::transmute(hbmp), core::mem::transmute(hbmpmask), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap(), core::mem::transmute(ppmenu)).ok() + (windows_core::Interface::vtable(self).AddMenuItem)(windows_core::Interface::as_raw(self), uid, dwflags, hbmp, hbmpmask, core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap(), core::mem::transmute(ppmenu)).ok() } } #[repr(C)] @@ -9481,19 +9481,19 @@ windows_core::imp::interface_hierarchy!(ITfMessagePump, windows_core::IUnknown); impl ITfMessagePump { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).PeekMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(hwnd), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax), core::mem::transmute(wremovemsg), core::mem::transmute(pfresult)).ok() + (windows_core::Interface::vtable(self).PeekMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), hwnd, wmsgfiltermin, wmsgfiltermax, wremovemsg, core::mem::transmute(pfresult)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).GetMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(hwnd), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax), core::mem::transmute(pfresult)).ok() + (windows_core::Interface::vtable(self).GetMessageA)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), hwnd, wmsgfiltermin, wmsgfiltermax, core::mem::transmute(pfresult)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe 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<()> { - (windows_core::Interface::vtable(self).PeekMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(hwnd), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax), core::mem::transmute(wremovemsg), core::mem::transmute(pfresult)).ok() + (windows_core::Interface::vtable(self).PeekMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), hwnd, wmsgfiltermin, wmsgfiltermax, wremovemsg, core::mem::transmute(pfresult)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), core::mem::transmute(hwnd), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax), core::mem::transmute(pfresult)).ok() + (windows_core::Interface::vtable(self).GetMessageW)(windows_core::Interface::as_raw(self), core::mem::transmute(pmsg), hwnd, wmsgfiltermin, wmsgfiltermax, core::mem::transmute(pfresult)).ok() } } #[repr(C)] @@ -9561,7 +9561,7 @@ windows_core::imp::interface_hierarchy!(ITfMouseSink, windows_core::IUnknown); impl ITfMouseSink { pub unsafe fn OnMouseEvent(&self, uedge: u32, uquadrant: u32, dwbtnstatus: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnMouseEvent)(windows_core::Interface::as_raw(self), core::mem::transmute(uedge), core::mem::transmute(uquadrant), core::mem::transmute(dwbtnstatus), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnMouseEvent)(windows_core::Interface::as_raw(self), uedge, uquadrant, dwbtnstatus, &mut result__).map(|| result__) } } #[repr(C)] @@ -9603,7 +9603,7 @@ impl ITfMouseTracker { (windows_core::Interface::vtable(self).AdviseMouseSink)(windows_core::Interface::as_raw(self), range.param().abi(), psink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnadviseMouseSink(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseMouseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnadviseMouseSink)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -9655,7 +9655,7 @@ impl ITfMouseTrackerACP { (windows_core::Interface::vtable(self).AdviseMouseSink)(windows_core::Interface::as_raw(self), range.param().abi(), psink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnadviseMouseSink(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseMouseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnadviseMouseSink)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -9701,7 +9701,7 @@ impl ITfPersistentPropertyLoaderACP { #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadProperty(&self, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(phdr), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadProperty)(windows_core::Interface::as_raw(self), phdr, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9741,7 +9741,7 @@ windows_core::imp::define_interface!(ITfPreservedKeyNotifySink, ITfPreservedKeyN windows_core::imp::interface_hierarchy!(ITfPreservedKeyNotifySink, windows_core::IUnknown); impl ITfPreservedKeyNotifySink { pub unsafe fn OnUpdated(&self, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(pprekey)).ok() + (windows_core::Interface::vtable(self).OnUpdated)(windows_core::Interface::as_raw(self), pprekey).ok() } } #[repr(C)] @@ -9778,27 +9778,27 @@ impl ITfProperty { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindRange)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), core::mem::transmute(pprange), core::mem::transmute(apos)).ok() + (windows_core::Interface::vtable(self).FindRange)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), core::mem::transmute(pprange), apos).ok() } pub unsafe fn SetValueStore(&self, ec: u32, prange: P1, ppropstore: P2) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueStore)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), ppropstore.param().abi()).ok() + (windows_core::Interface::vtable(self).SetValueStore)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), ppropstore.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn SetValue(&self, ec: u32, prange: P1, pvarvalue: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), core::mem::transmute(pvarvalue)).ok() } pub unsafe fn Clear(&self, ec: u32, prange: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi()).ok() + (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), ec, prange.param().abi()).ok() } } #[repr(C)] @@ -9873,7 +9873,7 @@ impl ITfPropertyStore { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTextUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags), prangenew.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTextUpdated)(windows_core::Interface::as_raw(self), dwflags, prangenew.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Shrink(&self, prangenew: P0) -> windows_core::Result where @@ -10056,7 +10056,7 @@ impl ITfQueryEmbedded { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(pguidservice), core::mem::transmute(pformatetc), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) } } #[repr(C)] @@ -10096,97 +10096,97 @@ windows_core::imp::define_interface!(ITfRange, ITfRange_Vtbl, 0xaa80e7ff_2021_11 windows_core::imp::interface_hierarchy!(ITfRange, windows_core::IUnknown); impl ITfRange { pub unsafe fn GetText(&self, ec: u32, dwflags: u32, pchtext: &mut [u16], pcch: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dwflags), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pcch)).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), ec, dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), core::mem::transmute(pcch)).ok() } pub unsafe fn SetText(&self, ec: u32, dwflags: u32, pchtext: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dwflags), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), ec, dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFormattedText(&self, ec: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), ec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEmbedded(&self, ec: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(rguidservice), core::mem::transmute(riid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), ec, rguidservice, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, ec: u32, dwflags: u32, pdataobject: P2) -> windows_core::Result<()> where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dwflags), pdataobject.param().abi()).ok() + (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), ec, dwflags, pdataobject.param().abi()).ok() } pub unsafe fn ShiftStart(&self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShiftStart)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(cchreq), core::mem::transmute(pcch), core::mem::transmute(phalt)).ok() + (windows_core::Interface::vtable(self).ShiftStart)(windows_core::Interface::as_raw(self), ec, cchreq, core::mem::transmute(pcch), core::mem::transmute(phalt)).ok() } pub unsafe fn ShiftEnd(&self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ShiftEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(cchreq), core::mem::transmute(pcch), core::mem::transmute(phalt)).ok() + (windows_core::Interface::vtable(self).ShiftEnd)(windows_core::Interface::as_raw(self), ec, cchreq, core::mem::transmute(pcch), core::mem::transmute(phalt)).ok() } pub unsafe fn ShiftStartToRange(&self, ec: u32, prange: P1, apos: TfAnchor) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftStartToRange)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), core::mem::transmute(apos)).ok() + (windows_core::Interface::vtable(self).ShiftStartToRange)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), apos).ok() } pub unsafe fn ShiftEndToRange(&self, ec: u32, prange: P1, apos: TfAnchor) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftEndToRange)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), core::mem::transmute(apos)).ok() + (windows_core::Interface::vtable(self).ShiftEndToRange)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), apos).ok() } pub unsafe fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShiftStartRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dir), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShiftStartRegion)(windows_core::Interface::as_raw(self), ec, dir, &mut result__).map(|| result__) } pub unsafe fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShiftEndRegion)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(dir), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShiftEndRegion)(windows_core::Interface::as_raw(self), ec, dir, &mut result__).map(|| result__) } pub unsafe fn IsEmpty(&self, ec: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEmpty)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEmpty)(windows_core::Interface::as_raw(self), ec, &mut result__).map(|| result__) } pub unsafe fn Collapse(&self, ec: u32, apos: TfAnchor) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Collapse)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(apos)).ok() + (windows_core::Interface::vtable(self).Collapse)(windows_core::Interface::as_raw(self), ec, apos).ok() } pub unsafe fn IsEqualStart(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualStart)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), pwith.param().abi(), core::mem::transmute(apos), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqualStart)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn IsEqualEnd(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), pwith.param().abi(), core::mem::transmute(apos), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqualEnd)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn CompareStart(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareStart)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), pwith.param().abi(), core::mem::transmute(apos), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareStart)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn CompareEnd(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result where P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEnd)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), pwith.param().abi(), core::mem::transmute(apos), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareEnd)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AdjustForInsert)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(cchinsert), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdjustForInsert)(windows_core::Interface::as_raw(self), ec, cchinsert, &mut result__).map(|| result__) } pub unsafe fn GetGravity(&self, pgstart: *mut TfGravity, pgend: *mut TfGravity) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGravity)(windows_core::Interface::as_raw(self), core::mem::transmute(pgstart), core::mem::transmute(pgend)).ok() } pub unsafe fn SetGravity(&self, ec: u32, gstart: TfGravity, gend: TfGravity) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetGravity)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(gstart), core::mem::transmute(gend)).ok() + (windows_core::Interface::vtable(self).SetGravity)(windows_core::Interface::as_raw(self), ec, gstart, gend).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10462,7 +10462,7 @@ impl ITfRangeACP { (windows_core::Interface::vtable(self).GetExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(pacpanchor), core::mem::transmute(pcch)).ok() } pub unsafe fn SetExtent(&self, acpanchor: i32, cch: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetExtent)(windows_core::Interface::as_raw(self), core::mem::transmute(acpanchor), core::mem::transmute(cch)).ok() + (windows_core::Interface::vtable(self).SetExtent)(windows_core::Interface::as_raw(self), acpanchor, cch).ok() } } #[repr(C)] @@ -10502,7 +10502,7 @@ impl ITfRangeBackup { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi()).ok() + (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), ec, prange.param().abi()).ok() } } #[repr(C)] @@ -10537,7 +10537,7 @@ impl ITfReadOnlyProperty { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumRanges)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), core::mem::transmute(ppenum), ptargetrange.param().abi()).ok() + (windows_core::Interface::vtable(self).EnumRanges)(windows_core::Interface::as_raw(self), ec, core::mem::transmute(ppenum), ptargetrange.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn GetValue(&self, ec: u32, prange: P1) -> windows_core::Result @@ -10545,7 +10545,7 @@ impl ITfReadOnlyProperty { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(ec), prange.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -10797,7 +10797,7 @@ impl ITfReverseConversionList { } pub unsafe fn GetString(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), uindex, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] @@ -10848,7 +10848,7 @@ windows_core::imp::interface_hierarchy!(ITfReverseConversionMgr, windows_core::I impl ITfReverseConversionMgr { pub unsafe fn GetReverseConversion(&self, langid: u16, guidprofile: *const windows_core::GUID, dwflag: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReverseConversion)(windows_core::Interface::as_raw(self), core::mem::transmute(langid), core::mem::transmute(guidprofile), core::mem::transmute(dwflag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReverseConversion)(windows_core::Interface::as_raw(self), langid, guidprofile, dwflag, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10886,10 +10886,10 @@ impl ITfSource { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), punk.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnadviseSink(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), dwcookie).ok() } } #[repr(C)] @@ -10936,10 +10936,10 @@ impl ITfSourceSingle { where P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSingleSink)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), core::mem::transmute(riid), punk.param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseSingleSink)(windows_core::Interface::as_raw(self), tid, riid, punk.param().abi()).ok() } pub unsafe fn UnadviseSingleSink(&self, tid: u32, riid: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnadviseSingleSink)(windows_core::Interface::as_raw(self), core::mem::transmute(tid), core::mem::transmute(riid)).ok() + (windows_core::Interface::vtable(self).UnadviseSingleSink)(windows_core::Interface::as_raw(self), tid, riid).ok() } } #[repr(C)] @@ -10983,7 +10983,7 @@ impl ITfSpeechUIServer { (windows_core::Interface::vtable(self).ShowUI)(windows_core::Interface::as_raw(self), fshow.into()).ok() } pub unsafe fn UpdateBalloon(&self, style: TfLBBalloonStyle, pch: &[u16]) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateBalloon)(windows_core::Interface::as_raw(self), core::mem::transmute(style), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).UpdateBalloon)(windows_core::Interface::as_raw(self), style, core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -11031,7 +11031,7 @@ impl ITfStatusSink { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), pic.param().abi(), dwflags).ok() } } #[repr(C)] @@ -11059,7 +11059,7 @@ windows_core::imp::define_interface!(ITfSystemDeviceTypeLangBarItem, ITfSystemDe windows_core::imp::interface_hierarchy!(ITfSystemDeviceTypeLangBarItem, windows_core::IUnknown); impl ITfSystemDeviceTypeLangBarItem { pub unsafe fn SetIconMode(&self, dwflags: LANG_BAR_ITEM_ICON_MODE_FLAGS) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIconMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetIconMode)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetIconMode(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11108,7 +11108,7 @@ windows_core::imp::interface_hierarchy!(ITfSystemLangBarItem, windows_core::IUnk impl ITfSystemLangBarItem { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetIcon(&self, hicon: super::WindowsAndMessaging::HICON) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), core::mem::transmute(hicon)).ok() + (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), hicon).ok() } pub unsafe fn SetTooltipString(&self, pchtooltip: &[u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetTooltipString)(windows_core::Interface::as_raw(self), core::mem::transmute(pchtooltip.as_ptr()), pchtooltip.len().try_into().unwrap()).ok() @@ -11161,7 +11161,7 @@ impl ITfSystemLangBarItemSink { (windows_core::Interface::vtable(self).InitMenu)(windows_core::Interface::as_raw(self), pmenu.param().abi()).ok() } pub unsafe fn OnMenuSelect(&self, wid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMenuSelect)(windows_core::Interface::as_raw(self), core::mem::transmute(wid)).ok() + (windows_core::Interface::vtable(self).OnMenuSelect)(windows_core::Interface::as_raw(self), wid).ok() } } #[repr(C)] @@ -11251,7 +11251,7 @@ impl ITfTextEditSink { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEndEdit)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(ecreadonly), peditrecord.param().abi()).ok() + (windows_core::Interface::vtable(self).OnEndEdit)(windows_core::Interface::as_raw(self), pic.param().abi(), ecreadonly, peditrecord.param().abi()).ok() } } #[repr(C)] @@ -11282,7 +11282,7 @@ impl ITfTextInputProcessor { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), ptim.param().abi(), core::mem::transmute(tid)).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), ptim.param().abi(), tid).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self)).ok() @@ -11332,7 +11332,7 @@ impl ITfTextInputProcessorEx { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), ptim.param().abi(), core::mem::transmute(tid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), ptim.param().abi(), tid, dwflags).ok() } } #[repr(C)] @@ -11364,7 +11364,7 @@ impl ITfTextLayoutSink { P0: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(lcode), pview.param().abi()).ok() + (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), pic.param().abi(), lcode, pview.param().abi()).ok() } } #[repr(C)] @@ -11462,7 +11462,7 @@ impl ITfThreadMgr { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateFocus)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), pdimnew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AssociateFocus)(windows_core::Interface::as_raw(self), hwnd, pdimnew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11470,7 +11470,7 @@ impl ITfThreadMgr { } pub unsafe fn GetFunctionProvider(&self, clsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFunctionProvider)(windows_core::Interface::as_raw(self), clsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumFunctionProviders(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11663,7 +11663,7 @@ impl ITfThreadMgr2 { } pub unsafe fn GetFunctionProvider(&self, clsid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFunctionProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFunctionProvider)(windows_core::Interface::as_raw(self), clsid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumFunctionProviders(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11674,7 +11674,7 @@ impl ITfThreadMgr2 { (windows_core::Interface::vtable(self).GetGlobalCompartment)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ActivateEx(&self, ptid: *mut u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ptid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ptid), dwflags).ok() } pub unsafe fn GetActiveFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -11953,7 +11953,7 @@ impl core::ops::Deref for ITfThreadMgrEx { windows_core::imp::interface_hierarchy!(ITfThreadMgrEx, windows_core::IUnknown, ITfThreadMgr); impl ITfThreadMgrEx { pub unsafe fn ActivateEx(&self, ptid: *mut u32, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ptid), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), core::mem::transmute(ptid), dwflags).ok() } pub unsafe fn GetActiveFlags(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12048,7 +12048,7 @@ impl ITfTransitoryExtensionSink { P3: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTransitoryExtensionUpdated)(windows_core::Interface::as_raw(self), pic.param().abi(), core::mem::transmute(ecreadonly), presultrange.param().abi(), pcompositionrange.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTransitoryExtensionUpdated)(windows_core::Interface::as_raw(self), pic.param().abi(), ecreadonly, presultrange.param().abi(), pcompositionrange.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -12211,14 +12211,14 @@ impl ITfUIElementMgr { (windows_core::Interface::vtable(self).BeginUIElement)(windows_core::Interface::as_raw(self), pelement.param().abi(), core::mem::transmute(pbshow), core::mem::transmute(pdwuielementid)).ok() } pub unsafe fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateUIElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuielementid)).ok() + (windows_core::Interface::vtable(self).UpdateUIElement)(windows_core::Interface::as_raw(self), dwuielementid).ok() } pub unsafe fn EndUIElement(&self, dwuielementid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndUIElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuielementid)).ok() + (windows_core::Interface::vtable(self).EndUIElement)(windows_core::Interface::as_raw(self), dwuielementid).ok() } pub unsafe fn GetUIElement(&self, dwuielementid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUIElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuielementid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUIElement)(windows_core::Interface::as_raw(self), dwuielementid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumUIElements(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -12293,13 +12293,13 @@ windows_core::imp::define_interface!(ITfUIElementSink, ITfUIElementSink_Vtbl, 0x windows_core::imp::interface_hierarchy!(ITfUIElementSink, windows_core::IUnknown); impl ITfUIElementSink { pub unsafe fn BeginUIElement(&self, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginUIElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuielementid), core::mem::transmute(pbshow)).ok() + (windows_core::Interface::vtable(self).BeginUIElement)(windows_core::Interface::as_raw(self), dwuielementid, core::mem::transmute(pbshow)).ok() } pub unsafe fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateUIElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuielementid)).ok() + (windows_core::Interface::vtable(self).UpdateUIElement)(windows_core::Interface::as_raw(self), dwuielementid).ok() } pub unsafe fn EndUIElement(&self, dwuielementid: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).EndUIElement)(windows_core::Interface::as_raw(self), core::mem::transmute(dwuielementid)).ok() + (windows_core::Interface::vtable(self).EndUIElement)(windows_core::Interface::as_raw(self), dwuielementid).ok() } } #[repr(C)] @@ -12344,16 +12344,16 @@ windows_core::imp::define_interface!(IUIManagerEventSink, IUIManagerEventSink_Vt windows_core::imp::interface_hierarchy!(IUIManagerEventSink, windows_core::IUnknown); impl IUIManagerEventSink { pub unsafe fn OnWindowOpening(&self, prcbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnWindowOpening)(windows_core::Interface::as_raw(self), core::mem::transmute(prcbounds)).ok() + (windows_core::Interface::vtable(self).OnWindowOpening)(windows_core::Interface::as_raw(self), prcbounds).ok() } pub unsafe fn OnWindowOpened(&self, prcbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnWindowOpened)(windows_core::Interface::as_raw(self), core::mem::transmute(prcbounds)).ok() + (windows_core::Interface::vtable(self).OnWindowOpened)(windows_core::Interface::as_raw(self), prcbounds).ok() } pub unsafe fn OnWindowUpdating(&self, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnWindowUpdating)(windows_core::Interface::as_raw(self), core::mem::transmute(prcupdatedbounds)).ok() + (windows_core::Interface::vtable(self).OnWindowUpdating)(windows_core::Interface::as_raw(self), prcupdatedbounds).ok() } pub unsafe fn OnWindowUpdated(&self, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnWindowUpdated)(windows_core::Interface::as_raw(self), core::mem::transmute(prcupdatedbounds)).ok() + (windows_core::Interface::vtable(self).OnWindowUpdated)(windows_core::Interface::as_raw(self), prcupdatedbounds).ok() } pub unsafe fn OnWindowClosing(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnWindowClosing)(windows_core::Interface::as_raw(self)).ok() @@ -12426,22 +12426,22 @@ windows_core::imp::interface_hierarchy!(IVersionInfo, windows_core::IUnknown); impl IVersionInfo { pub unsafe fn GetSubcomponentCount(&self, ulsub: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubcomponentCount)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsub), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSubcomponentCount)(windows_core::Interface::as_raw(self), ulsub, &mut result__).map(|| result__) } pub unsafe fn GetImplementationID(&self, ulsub: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImplementationID)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsub), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetImplementationID)(windows_core::Interface::as_raw(self), ulsub, &mut result__).map(|| result__) } pub unsafe fn GetBuildVersion(&self, ulsub: u32, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBuildVersion)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsub), core::mem::transmute(pdwmajor), core::mem::transmute(pdwminor)).ok() + (windows_core::Interface::vtable(self).GetBuildVersion)(windows_core::Interface::as_raw(self), ulsub, core::mem::transmute(pdwmajor), core::mem::transmute(pdwminor)).ok() } pub unsafe fn GetComponentDescription(&self, ulsub: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetComponentDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsub), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetComponentDescription)(windows_core::Interface::as_raw(self), ulsub, &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn GetInstanceDescription(&self, ulsub: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInstanceDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(ulsub), &mut result__).map(|| core::mem::transmute(result__)) + (windows_core::Interface::vtable(self).GetInstanceDescription)(windows_core::Interface::as_raw(self), ulsub, &mut result__).map(|| core::mem::transmute(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs index 0c67c81217..f5c18f83fe 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn AdjustWindowRect(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn AdjustWindowRect(lprect : *mut super::super::Foundation:: RECT, dwstyle : WINDOW_STYLE, bmenu : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AdjustWindowRect(core::mem::transmute(lprect), core::mem::transmute(dwstyle), bmenu.into()).ok() + AdjustWindowRect(core::mem::transmute(lprect), dwstyle, bmenu.into()).ok() } #[inline] pub unsafe fn AdjustWindowRectEx(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: bool, dwexstyle: WINDOW_EX_STYLE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn AdjustWindowRectEx(lprect : *mut super::super::Foundation:: RECT, dwstyle : WINDOW_STYLE, bmenu : super::super::Foundation:: BOOL, dwexstyle : WINDOW_EX_STYLE) -> super::super::Foundation:: BOOL); - AdjustWindowRectEx(core::mem::transmute(lprect), core::mem::transmute(dwstyle), bmenu.into(), core::mem::transmute(dwexstyle)).ok() + AdjustWindowRectEx(core::mem::transmute(lprect), dwstyle, bmenu.into(), dwexstyle).ok() } #[inline] pub unsafe fn AllowSetForegroundWindow(dwprocessid: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn AllowSetForegroundWindow(dwprocessid : u32) -> super::super::Foundation:: BOOL); - AllowSetForegroundWindow(core::mem::transmute(dwprocessid)).ok() + AllowSetForegroundWindow(dwprocessid).ok() } #[inline] pub unsafe fn AnimateWindow(hwnd: super::super::Foundation::HWND, dwtime: u32, dwflags: ANIMATE_WINDOW_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn AnimateWindow(hwnd : super::super::Foundation:: HWND, dwtime : u32, dwflags : ANIMATE_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); - AnimateWindow(core::mem::transmute(hwnd), core::mem::transmute(dwtime), core::mem::transmute(dwflags)).ok() + AnimateWindow(hwnd, dwtime, dwflags).ok() } #[inline] pub unsafe fn AnyPopup() -> super::super::Foundation::BOOL { @@ -29,7 +29,7 @@ where P3: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn AppendMenuA(hmenu : HMENU, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AppendMenuA(core::mem::transmute(hmenu), core::mem::transmute(uflags), core::mem::transmute(uidnewitem), lpnewitem.param().abi()).ok() + AppendMenuA(hmenu, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn AppendMenuW(hmenu: HMENU, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P3) -> windows_core::Result<()> @@ -37,53 +37,53 @@ where P3: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn AppendMenuW(hmenu : HMENU, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AppendMenuW(core::mem::transmute(hmenu), core::mem::transmute(uflags), core::mem::transmute(uidnewitem), lpnewitem.param().abi()).ok() + AppendMenuW(hmenu, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn ArrangeIconicWindows(hwnd: super::super::Foundation::HWND) -> u32 { windows_targets::link!("user32.dll" "system" fn ArrangeIconicWindows(hwnd : super::super::Foundation:: HWND) -> u32); - ArrangeIconicWindows(core::mem::transmute(hwnd)) + ArrangeIconicWindows(hwnd) } #[inline] pub unsafe fn BeginDeferWindowPos(nnumwindows: i32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn BeginDeferWindowPos(nnumwindows : i32) -> HDWP); - let result__ = BeginDeferWindowPos(core::mem::transmute(nnumwindows)); + let result__ = BeginDeferWindowPos(nnumwindows); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn BringWindowToTop(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn BringWindowToTop(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - BringWindowToTop(core::mem::transmute(hwnd)).ok() + BringWindowToTop(hwnd).ok() } #[inline] pub unsafe fn CalculatePopupWindowPosition(anchorpoint: *const super::super::Foundation::POINT, windowsize: *const super::super::Foundation::SIZE, flags: u32, excluderect: Option<*const super::super::Foundation::RECT>, popupwindowposition: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CalculatePopupWindowPosition(anchorpoint : *const super::super::Foundation:: POINT, windowsize : *const super::super::Foundation:: SIZE, flags : u32, excluderect : *const super::super::Foundation:: RECT, popupwindowposition : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - CalculatePopupWindowPosition(core::mem::transmute(anchorpoint), core::mem::transmute(windowsize), core::mem::transmute(flags), core::mem::transmute(excluderect.unwrap_or(core::mem::zeroed())), core::mem::transmute(popupwindowposition)).ok() + CalculatePopupWindowPosition(anchorpoint, windowsize, flags, core::mem::transmute(excluderect.unwrap_or(core::mem::zeroed())), core::mem::transmute(popupwindowposition)).ok() } #[inline] pub unsafe fn CallMsgFilterA(lpmsg: *const MSG, ncode: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn CallMsgFilterA(lpmsg : *const MSG, ncode : i32) -> super::super::Foundation:: BOOL); - CallMsgFilterA(core::mem::transmute(lpmsg), core::mem::transmute(ncode)) + CallMsgFilterA(lpmsg, ncode) } #[inline] pub unsafe fn CallMsgFilterW(lpmsg: *const MSG, ncode: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn CallMsgFilterW(lpmsg : *const MSG, ncode : i32) -> super::super::Foundation:: BOOL); - CallMsgFilterW(core::mem::transmute(lpmsg), core::mem::transmute(ncode)) + CallMsgFilterW(lpmsg, ncode) } #[inline] pub unsafe fn CallNextHookEx(hhk: Option, ncode: i32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn CallNextHookEx(hhk : HHOOK, ncode : i32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - CallNextHookEx(core::mem::transmute(hhk.unwrap_or(core::mem::zeroed())), core::mem::transmute(ncode), core::mem::transmute(wparam), core::mem::transmute(lparam)) + CallNextHookEx(core::mem::transmute(hhk.unwrap_or(core::mem::zeroed())), ncode, wparam, lparam) } #[inline] pub unsafe fn CallWindowProcA(lpprevwndfunc: WNDPROC, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn CallWindowProcA(lpprevwndfunc : WNDPROC, hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - CallWindowProcA(core::mem::transmute(lpprevwndfunc), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + CallWindowProcA(lpprevwndfunc, hwnd, msg, wparam, lparam) } #[inline] pub unsafe fn CallWindowProcW(lpprevwndfunc: WNDPROC, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn CallWindowProcW(lpprevwndfunc : WNDPROC, hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - CallWindowProcW(core::mem::transmute(lpprevwndfunc), core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + CallWindowProcW(lpprevwndfunc, hwnd, msg, wparam, lparam) } #[inline] pub unsafe fn CancelShutdown() -> super::super::Foundation::BOOL { @@ -93,7 +93,7 @@ pub unsafe fn CancelShutdown() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn CascadeWindows(hwndparent: Option, whow: CASCADE_WINDOWS_HOW, lprect: Option<*const super::super::Foundation::RECT>, lpkids: Option<&[super::super::Foundation::HWND]>) -> u16 { windows_targets::link!("user32.dll" "system" fn CascadeWindows(hwndparent : super::super::Foundation:: HWND, whow : CASCADE_WINDOWS_HOW, lprect : *const super::super::Foundation:: RECT, ckids : u32, lpkids : *const super::super::Foundation:: HWND) -> u16); - CascadeWindows(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(whow), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpkids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + CascadeWindows(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), whow, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpkids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn ChangeMenuA(hmenu: HMENU, cmd: u32, lpsznewitem: P2, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL @@ -101,7 +101,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ChangeMenuA(hmenu : HMENU, cmd : u32, lpsznewitem : windows_core::PCSTR, cmdinsert : u32, flags : u32) -> super::super::Foundation:: BOOL); - ChangeMenuA(core::mem::transmute(hmenu), core::mem::transmute(cmd), lpsznewitem.param().abi(), core::mem::transmute(cmdinsert), core::mem::transmute(flags)) + ChangeMenuA(hmenu, cmd, lpsznewitem.param().abi(), cmdinsert, flags) } #[inline] pub unsafe fn ChangeMenuW(hmenu: HMENU, cmd: u32, lpsznewitem: P2, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL @@ -109,17 +109,17 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ChangeMenuW(hmenu : HMENU, cmd : u32, lpsznewitem : windows_core::PCWSTR, cmdinsert : u32, flags : u32) -> super::super::Foundation:: BOOL); - ChangeMenuW(core::mem::transmute(hmenu), core::mem::transmute(cmd), lpsznewitem.param().abi(), core::mem::transmute(cmdinsert), core::mem::transmute(flags)) + ChangeMenuW(hmenu, cmd, lpsznewitem.param().abi(), cmdinsert, flags) } #[inline] pub unsafe fn ChangeWindowMessageFilter(message: u32, dwflag: CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ChangeWindowMessageFilter(message : u32, dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> super::super::Foundation:: BOOL); - ChangeWindowMessageFilter(core::mem::transmute(message), core::mem::transmute(dwflag)).ok() + ChangeWindowMessageFilter(message, dwflag).ok() } #[inline] pub unsafe fn ChangeWindowMessageFilterEx(hwnd: super::super::Foundation::HWND, message: u32, action: WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct: Option<*mut CHANGEFILTERSTRUCT>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ChangeWindowMessageFilterEx(hwnd : super::super::Foundation:: HWND, message : u32, action : WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct : *mut CHANGEFILTERSTRUCT) -> super::super::Foundation:: BOOL); - ChangeWindowMessageFilterEx(core::mem::transmute(hwnd), core::mem::transmute(message), core::mem::transmute(action), core::mem::transmute(pchangefilterstruct.unwrap_or(core::mem::zeroed()))).ok() + ChangeWindowMessageFilterEx(hwnd, message, action, core::mem::transmute(pchangefilterstruct.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn CharLowerA(lpsz: windows_core::PSTR) -> windows_core::PSTR { @@ -155,7 +155,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharNextExA(codepage : u16, lpcurrentchar : windows_core::PCSTR, dwflags : u32) -> windows_core::PSTR); - CharNextExA(core::mem::transmute(codepage), lpcurrentchar.param().abi(), core::mem::transmute(dwflags)) + CharNextExA(codepage, lpcurrentchar.param().abi(), dwflags) } #[inline] pub unsafe fn CharNextW(lpsz: P0) -> windows_core::PWSTR @@ -181,7 +181,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharPrevExA(codepage : u16, lpstart : windows_core::PCSTR, lpcurrentchar : windows_core::PCSTR, dwflags : u32) -> windows_core::PSTR); - CharPrevExA(core::mem::transmute(codepage), lpstart.param().abi(), lpcurrentchar.param().abi(), core::mem::transmute(dwflags)) + CharPrevExA(codepage, lpstart.param().abi(), lpcurrentchar.param().abi(), dwflags) } #[inline] pub unsafe fn CharPrevW(lpszstart: P0, lpszcurrent: P1) -> windows_core::PWSTR @@ -247,22 +247,22 @@ pub unsafe fn CharUpperW(lpsz: windows_core::PWSTR) -> windows_core::PWSTR { #[inline] pub unsafe fn CheckMenuItem(hmenu: HMENU, uidcheckitem: u32, ucheck: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn CheckMenuItem(hmenu : HMENU, uidcheckitem : u32, ucheck : u32) -> u32); - CheckMenuItem(core::mem::transmute(hmenu), core::mem::transmute(uidcheckitem), core::mem::transmute(ucheck)) + CheckMenuItem(hmenu, uidcheckitem, ucheck) } #[inline] pub unsafe fn CheckMenuRadioItem(hmenu: HMENU, first: u32, last: u32, check: u32, flags: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CheckMenuRadioItem(hmenu : HMENU, first : u32, last : u32, check : u32, flags : u32) -> super::super::Foundation:: BOOL); - CheckMenuRadioItem(core::mem::transmute(hmenu), core::mem::transmute(first), core::mem::transmute(last), core::mem::transmute(check), core::mem::transmute(flags)).ok() + CheckMenuRadioItem(hmenu, first, last, check, flags).ok() } #[inline] pub unsafe fn ChildWindowFromPoint(hwndparent: super::super::Foundation::HWND, point: super::super::Foundation::POINT) -> super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn ChildWindowFromPoint(hwndparent : super::super::Foundation:: HWND, point : super::super::Foundation:: POINT) -> super::super::Foundation:: HWND); - ChildWindowFromPoint(core::mem::transmute(hwndparent), core::mem::transmute(point)) + ChildWindowFromPoint(hwndparent, core::mem::transmute(point)) } #[inline] pub unsafe fn ChildWindowFromPointEx(hwnd: super::super::Foundation::HWND, pt: super::super::Foundation::POINT, flags: CWP_FLAGS) -> super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn ChildWindowFromPointEx(hwnd : super::super::Foundation:: HWND, pt : super::super::Foundation:: POINT, flags : CWP_FLAGS) -> super::super::Foundation:: HWND); - ChildWindowFromPointEx(core::mem::transmute(hwnd), core::mem::transmute(pt), core::mem::transmute(flags)) + ChildWindowFromPointEx(hwnd, core::mem::transmute(pt), flags) } #[inline] pub unsafe fn ClipCursor(lprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { @@ -272,28 +272,28 @@ pub unsafe fn ClipCursor(lprect: Option<*const super::super::Foundation::RECT>) #[inline] pub unsafe fn CloseWindow(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CloseWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - CloseWindow(core::mem::transmute(hwnd)).ok() + CloseWindow(hwnd).ok() } #[inline] pub unsafe fn CopyAcceleratorTableA(haccelsrc: HACCEL, lpacceldst: Option<&mut [ACCEL]>) -> i32 { windows_targets::link!("user32.dll" "system" fn CopyAcceleratorTableA(haccelsrc : HACCEL, lpacceldst : *mut ACCEL, caccelentries : i32) -> i32); - CopyAcceleratorTableA(core::mem::transmute(haccelsrc), core::mem::transmute(lpacceldst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpacceldst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CopyAcceleratorTableA(haccelsrc, core::mem::transmute(lpacceldst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpacceldst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CopyAcceleratorTableW(haccelsrc: HACCEL, lpacceldst: Option<&mut [ACCEL]>) -> i32 { windows_targets::link!("user32.dll" "system" fn CopyAcceleratorTableW(haccelsrc : HACCEL, lpacceldst : *mut ACCEL, caccelentries : i32) -> i32); - CopyAcceleratorTableW(core::mem::transmute(haccelsrc), core::mem::transmute(lpacceldst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpacceldst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + CopyAcceleratorTableW(haccelsrc, core::mem::transmute(lpacceldst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpacceldst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn CopyIcon(hicon: HICON) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CopyIcon(hicon : HICON) -> HICON); - let result__ = CopyIcon(core::mem::transmute(hicon)); + let result__ = CopyIcon(hicon); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CopyImage(h: super::super::Foundation::HANDLE, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, flags: IMAGE_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CopyImage(h : super::super::Foundation:: HANDLE, r#type : GDI_IMAGE_TYPE, cx : i32, cy : i32, flags : IMAGE_FLAGS) -> super::super::Foundation:: HANDLE); - let result__ = CopyImage(core::mem::transmute(h), core::mem::transmute(r#type), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(flags)); + let result__ = CopyImage(h, r#type, cx, cy, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -312,24 +312,24 @@ pub unsafe fn CreateAcceleratorTableW(paccel: &[ACCEL]) -> windows_core::Result< #[inline] pub unsafe fn CreateCaret(hwnd: super::super::Foundation::HWND, hbitmap: Option, nwidth: i32, nheight: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn CreateCaret(hwnd : super::super::Foundation:: HWND, hbitmap : super::super::Graphics::Gdi:: HBITMAP, nwidth : i32, nheight : i32) -> super::super::Foundation:: BOOL); - CreateCaret(core::mem::transmute(hwnd), core::mem::transmute(hbitmap.unwrap_or(core::mem::zeroed())), core::mem::transmute(nwidth), core::mem::transmute(nheight)).ok() + CreateCaret(hwnd, core::mem::transmute(hbitmap.unwrap_or(core::mem::zeroed())), nwidth, nheight).ok() } #[inline] pub unsafe fn CreateCursor(hinst: Option, xhotspot: i32, yhotspot: i32, nwidth: i32, nheight: i32, pvandplane: *const core::ffi::c_void, pvxorplane: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateCursor(hinst : super::super::Foundation:: HINSTANCE, xhotspot : i32, yhotspot : i32, nwidth : i32, nheight : i32, pvandplane : *const core::ffi::c_void, pvxorplane : *const core::ffi::c_void) -> HCURSOR); - let result__ = CreateCursor(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), core::mem::transmute(xhotspot), core::mem::transmute(yhotspot), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(pvandplane), core::mem::transmute(pvxorplane)); + let result__ = CreateCursor(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), xhotspot, yhotspot, nwidth, nheight, pvandplane, pvxorplane); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateDialogIndirectParamA(hinstance: Option, lptemplate: *const DLGTEMPLATE, hwndparent: Option, lpdialogfunc: Option, dwinitparam: super::super::Foundation::LPARAM) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateDialogIndirectParamA(hinstance : super::super::Foundation:: HINSTANCE, lptemplate : *const DLGTEMPLATE, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: HWND); - let result__ = CreateDialogIndirectParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptemplate), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)); + let result__ = CreateDialogIndirectParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplate, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateDialogIndirectParamW(hinstance: Option, lptemplate: *const DLGTEMPLATE, hwndparent: Option, lpdialogfunc: Option, dwinitparam: super::super::Foundation::LPARAM) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateDialogIndirectParamW(hinstance : super::super::Foundation:: HINSTANCE, lptemplate : *const DLGTEMPLATE, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: HWND); - let result__ = CreateDialogIndirectParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lptemplate), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)); + let result__ = CreateDialogIndirectParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplate, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -338,7 +338,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateDialogParamA(hinstance : super::super::Foundation:: HINSTANCE, lptemplatename : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: HWND); - let result__ = CreateDialogParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)); + let result__ = CreateDialogParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -347,32 +347,32 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateDialogParamW(hinstance : super::super::Foundation:: HINSTANCE, lptemplatename : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: HWND); - let result__ = CreateDialogParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)); + let result__ = CreateDialogParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateIcon(hinstance: Option, nwidth: i32, nheight: i32, cplanes: u8, cbitspixel: u8, lpbandbits: *const u8, lpbxorbits: *const u8) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateIcon(hinstance : super::super::Foundation:: HINSTANCE, nwidth : i32, nheight : i32, cplanes : u8, cbitspixel : u8, lpbandbits : *const u8, lpbxorbits : *const u8) -> HICON); - let result__ = CreateIcon(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(cplanes), core::mem::transmute(cbitspixel), core::mem::transmute(lpbandbits), core::mem::transmute(lpbxorbits)); + let result__ = CreateIcon(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), nwidth, nheight, cplanes, cbitspixel, lpbandbits, lpbxorbits); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateIconFromResource(presbits: &[u8], ficon: bool, dwver: u32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateIconFromResource(presbits : *const u8, dwressize : u32, ficon : super::super::Foundation:: BOOL, dwver : u32) -> HICON); - let result__ = CreateIconFromResource(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.into(), core::mem::transmute(dwver)); + let result__ = CreateIconFromResource(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.into(), dwver); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateIconFromResourceEx(presbits: &[u8], ficon: bool, dwver: u32, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateIconFromResourceEx(presbits : *const u8, dwressize : u32, ficon : super::super::Foundation:: BOOL, dwver : u32, cxdesired : i32, cydesired : i32, flags : IMAGE_FLAGS) -> HICON); - let result__ = CreateIconFromResourceEx(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.into(), core::mem::transmute(dwver), core::mem::transmute(cxdesired), core::mem::transmute(cydesired), core::mem::transmute(flags)); + let result__ = CreateIconFromResourceEx(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.into(), dwver, cxdesired, cydesired, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateIconIndirect(piconinfo: *const ICONINFO) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn CreateIconIndirect(piconinfo : *const ICONINFO) -> HICON); - let result__ = CreateIconIndirect(core::mem::transmute(piconinfo)); + let result__ = CreateIconIndirect(piconinfo); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -382,7 +382,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateMDIWindowA(lpclassname : windows_core::PCSTR, lpwindowname : windows_core::PCSTR, dwstyle : WINDOW_STYLE, x : i32, y : i32, nwidth : i32, nheight : i32, hwndparent : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: HWND); - let result__ = CreateMDIWindowA(lpclassname.param().abi(), lpwindowname.param().abi(), core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam)); + let result__ = CreateMDIWindowA(lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lparam); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -392,7 +392,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateMDIWindowW(lpclassname : windows_core::PCWSTR, lpwindowname : windows_core::PCWSTR, dwstyle : WINDOW_STYLE, x : i32, y : i32, nwidth : i32, nheight : i32, hwndparent : super::super::Foundation:: HWND, hinstance : super::super::Foundation:: HINSTANCE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: HWND); - let result__ = CreateMDIWindowW(lpclassname.param().abi(), lpwindowname.param().abi(), core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam)); + let result__ = CreateMDIWindowW(lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lparam); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -423,7 +423,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateWindowExA(dwexstyle : WINDOW_EX_STYLE, lpclassname : windows_core::PCSTR, lpwindowname : windows_core::PCSTR, dwstyle : WINDOW_STYLE, x : i32, y : i32, nwidth : i32, nheight : i32, hwndparent : super::super::Foundation:: HWND, hmenu : HMENU, hinstance : super::super::Foundation:: HINSTANCE, lpparam : *const core::ffi::c_void) -> super::super::Foundation:: HWND); - let result__ = CreateWindowExA(core::mem::transmute(dwexstyle), lpclassname.param().abi(), lpwindowname.param().abi(), core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpparam.unwrap_or(core::mem::zeroed()))); + let result__ = CreateWindowExA(dwexstyle, lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpparam.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -433,69 +433,69 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CreateWindowExW(dwexstyle : WINDOW_EX_STYLE, lpclassname : windows_core::PCWSTR, lpwindowname : windows_core::PCWSTR, dwstyle : WINDOW_STYLE, x : i32, y : i32, nwidth : i32, nheight : i32, hwndparent : super::super::Foundation:: HWND, hmenu : HMENU, hinstance : super::super::Foundation:: HINSTANCE, lpparam : *const core::ffi::c_void) -> super::super::Foundation:: HWND); - let result__ = CreateWindowExW(core::mem::transmute(dwexstyle), lpclassname.param().abi(), lpwindowname.param().abi(), core::mem::transmute(dwstyle), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpparam.unwrap_or(core::mem::zeroed()))); + let result__ = CreateWindowExW(dwexstyle, lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed())), core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpparam.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DefDlgProcA(hdlg: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefDlgProcA(hdlg : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefDlgProcA(core::mem::transmute(hdlg), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefDlgProcA(hdlg, msg, wparam, lparam) } #[inline] pub unsafe fn DefDlgProcW(hdlg: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefDlgProcW(hdlg : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefDlgProcW(core::mem::transmute(hdlg), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefDlgProcW(hdlg, msg, wparam, lparam) } #[inline] pub unsafe fn DefFrameProcA(hwnd: super::super::Foundation::HWND, hwndmdiclient: Option, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefFrameProcA(hwnd : super::super::Foundation:: HWND, hwndmdiclient : super::super::Foundation:: HWND, umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefFrameProcA(core::mem::transmute(hwnd), core::mem::transmute(hwndmdiclient.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefFrameProcA(hwnd, core::mem::transmute(hwndmdiclient.unwrap_or(core::mem::zeroed())), umsg, wparam, lparam) } #[inline] pub unsafe fn DefFrameProcW(hwnd: super::super::Foundation::HWND, hwndmdiclient: Option, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefFrameProcW(hwnd : super::super::Foundation:: HWND, hwndmdiclient : super::super::Foundation:: HWND, umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefFrameProcW(core::mem::transmute(hwnd), core::mem::transmute(hwndmdiclient.unwrap_or(core::mem::zeroed())), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefFrameProcW(hwnd, core::mem::transmute(hwndmdiclient.unwrap_or(core::mem::zeroed())), umsg, wparam, lparam) } #[inline] pub unsafe fn DefMDIChildProcA(hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefMDIChildProcA(hwnd : super::super::Foundation:: HWND, umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefMDIChildProcA(core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefMDIChildProcA(hwnd, umsg, wparam, lparam) } #[inline] pub unsafe fn DefMDIChildProcW(hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefMDIChildProcW(hwnd : super::super::Foundation:: HWND, umsg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefMDIChildProcW(core::mem::transmute(hwnd), core::mem::transmute(umsg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefMDIChildProcW(hwnd, umsg, wparam, lparam) } #[inline] pub unsafe fn DefWindowProcA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefWindowProcA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefWindowProcA(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefWindowProcA(hwnd, msg, wparam, lparam) } #[inline] pub unsafe fn DefWindowProcW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DefWindowProcW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - DefWindowProcW(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + DefWindowProcW(hwnd, msg, wparam, lparam) } #[inline] pub unsafe fn DeferWindowPos(hwinposinfo: HDWP, hwnd: super::super::Foundation::HWND, hwndinsertafter: Option, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn DeferWindowPos(hwinposinfo : HDWP, hwnd : super::super::Foundation:: HWND, hwndinsertafter : super::super::Foundation:: HWND, x : i32, y : i32, cx : i32, cy : i32, uflags : SET_WINDOW_POS_FLAGS) -> HDWP); - let result__ = DeferWindowPos(core::mem::transmute(hwinposinfo), core::mem::transmute(hwnd), core::mem::transmute(hwndinsertafter.unwrap_or(core::mem::zeroed())), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(uflags)); + let result__ = DeferWindowPos(hwinposinfo, hwnd, core::mem::transmute(hwndinsertafter.unwrap_or(core::mem::zeroed())), x, y, cx, cy, uflags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DeleteMenu(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DeleteMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); - DeleteMenu(core::mem::transmute(hmenu), core::mem::transmute(uposition), core::mem::transmute(uflags)).ok() + DeleteMenu(hmenu, uposition, uflags).ok() } #[inline] pub unsafe fn DeregisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DeregisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - DeregisterShellHookWindow(core::mem::transmute(hwnd)) + DeregisterShellHookWindow(hwnd) } #[inline] pub unsafe fn DestroyAcceleratorTable(haccel: HACCEL) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn DestroyAcceleratorTable(haccel : HACCEL) -> super::super::Foundation:: BOOL); - DestroyAcceleratorTable(core::mem::transmute(haccel)) + DestroyAcceleratorTable(haccel) } #[inline] pub unsafe fn DestroyCaret() -> windows_core::Result<()> { @@ -505,12 +505,12 @@ pub unsafe fn DestroyCaret() -> windows_core::Result<()> { #[inline] pub unsafe fn DestroyCursor(hcursor: HCURSOR) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DestroyCursor(hcursor : HCURSOR) -> super::super::Foundation:: BOOL); - DestroyCursor(core::mem::transmute(hcursor)).ok() + DestroyCursor(hcursor).ok() } #[inline] pub unsafe fn DestroyIcon(hicon: HICON) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DestroyIcon(hicon : HICON) -> super::super::Foundation:: BOOL); - DestroyIcon(core::mem::transmute(hicon)).ok() + DestroyIcon(hicon).ok() } #[inline] pub unsafe fn DestroyIndexedResults(resourceuri: P0, qualifiers: Option<&[IndexedResourceQualifier]>) @@ -523,7 +523,7 @@ where #[inline] pub unsafe fn DestroyMenu(hmenu: HMENU) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DestroyMenu(hmenu : HMENU) -> super::super::Foundation:: BOOL); - DestroyMenu(core::mem::transmute(hmenu)).ok() + DestroyMenu(hmenu).ok() } #[inline] pub unsafe fn DestroyResourceIndexer(resourceindexer: Option<*const core::ffi::c_void>) { @@ -533,17 +533,17 @@ pub unsafe fn DestroyResourceIndexer(resourceindexer: Option<*const core::ffi::c #[inline] pub unsafe fn DestroyWindow(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DestroyWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - DestroyWindow(core::mem::transmute(hwnd)).ok() + DestroyWindow(hwnd).ok() } #[inline] pub unsafe fn DialogBoxIndirectParamA(hinstance: Option, hdialogtemplate: *const DLGTEMPLATE, hwndparent: Option, lpdialogfunc: Option, dwinitparam: super::super::Foundation::LPARAM) -> isize { windows_targets::link!("user32.dll" "system" fn DialogBoxIndirectParamA(hinstance : super::super::Foundation:: HINSTANCE, hdialogtemplate : *const DLGTEMPLATE, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> isize); - DialogBoxIndirectParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdialogtemplate), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)) + DialogBoxIndirectParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), hdialogtemplate, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam) } #[inline] pub unsafe fn DialogBoxIndirectParamW(hinstance: Option, hdialogtemplate: *const DLGTEMPLATE, hwndparent: Option, lpdialogfunc: Option, dwinitparam: super::super::Foundation::LPARAM) -> isize { windows_targets::link!("user32.dll" "system" fn DialogBoxIndirectParamW(hinstance : super::super::Foundation:: HINSTANCE, hdialogtemplate : *const DLGTEMPLATE, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> isize); - DialogBoxIndirectParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdialogtemplate), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)) + DialogBoxIndirectParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), hdialogtemplate, core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam) } #[inline] pub unsafe fn DialogBoxParamA(hinstance: Option, lptemplatename: P1, hwndparent: Option, lpdialogfunc: Option, dwinitparam: super::super::Foundation::LPARAM) -> isize @@ -551,7 +551,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DialogBoxParamA(hinstance : super::super::Foundation:: HINSTANCE, lptemplatename : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> isize); - DialogBoxParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)) + DialogBoxParamA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam) } #[inline] pub unsafe fn DialogBoxParamW(hinstance: Option, lptemplatename: P1, hwndparent: Option, lpdialogfunc: Option, dwinitparam: super::super::Foundation::LPARAM) -> isize @@ -559,7 +559,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DialogBoxParamW(hinstance : super::super::Foundation:: HINSTANCE, lptemplatename : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, lpdialogfunc : DLGPROC, dwinitparam : super::super::Foundation:: LPARAM) -> isize); - DialogBoxParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwinitparam)) + DialogBoxParamW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), lptemplatename.param().abi(), core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpdialogfunc.unwrap_or(core::mem::zeroed())), dwinitparam) } #[inline] pub unsafe fn DisableProcessWindowsGhosting() { @@ -569,49 +569,49 @@ pub unsafe fn DisableProcessWindowsGhosting() { #[inline] pub unsafe fn DispatchMessageA(lpmsg: *const MSG) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DispatchMessageA(lpmsg : *const MSG) -> super::super::Foundation:: LRESULT); - DispatchMessageA(core::mem::transmute(lpmsg)) + DispatchMessageA(lpmsg) } #[inline] pub unsafe fn DispatchMessageW(lpmsg: *const MSG) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn DispatchMessageW(lpmsg : *const MSG) -> super::super::Foundation:: LRESULT); - DispatchMessageW(core::mem::transmute(lpmsg)) + DispatchMessageW(lpmsg) } #[inline] pub unsafe fn DragObject(hwndparent: super::super::Foundation::HWND, hwndfrom: super::super::Foundation::HWND, fmt: u32, data: usize, hcur: Option) -> u32 { windows_targets::link!("user32.dll" "system" fn DragObject(hwndparent : super::super::Foundation:: HWND, hwndfrom : super::super::Foundation:: HWND, fmt : u32, data : usize, hcur : HCURSOR) -> u32); - DragObject(core::mem::transmute(hwndparent), core::mem::transmute(hwndfrom), core::mem::transmute(fmt), core::mem::transmute(data), core::mem::transmute(hcur.unwrap_or(core::mem::zeroed()))) + DragObject(hwndparent, hwndfrom, fmt, data, core::mem::transmute(hcur.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawIcon(hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, hicon: HICON) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DrawIcon(hdc : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, hicon : HICON) -> super::super::Foundation:: BOOL); - DrawIcon(core::mem::transmute(hdc), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(hicon)).ok() + DrawIcon(hdc, x, y, hicon).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawIconEx(hdc: super::super::Graphics::Gdi::HDC, xleft: i32, ytop: i32, hicon: HICON, cxwidth: i32, cywidth: i32, istepifanicur: u32, hbrflickerfreedraw: Option, diflags: DI_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DrawIconEx(hdc : super::super::Graphics::Gdi:: HDC, xleft : i32, ytop : i32, hicon : HICON, cxwidth : i32, cywidth : i32, istepifanicur : u32, hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH, diflags : DI_FLAGS) -> super::super::Foundation:: BOOL); - DrawIconEx(core::mem::transmute(hdc), core::mem::transmute(xleft), core::mem::transmute(ytop), core::mem::transmute(hicon), core::mem::transmute(cxwidth), core::mem::transmute(cywidth), core::mem::transmute(istepifanicur), core::mem::transmute(hbrflickerfreedraw.unwrap_or(core::mem::zeroed())), core::mem::transmute(diflags)).ok() + DrawIconEx(hdc, xleft, ytop, hicon, cxwidth, cywidth, istepifanicur, core::mem::transmute(hbrflickerfreedraw.unwrap_or(core::mem::zeroed())), diflags).ok() } #[inline] pub unsafe fn DrawMenuBar(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn DrawMenuBar(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - DrawMenuBar(core::mem::transmute(hwnd)).ok() + DrawMenuBar(hwnd).ok() } #[inline] pub unsafe fn EnableMenuItem(hmenu: HMENU, uidenableitem: u32, uenable: MENU_ITEM_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EnableMenuItem(hmenu : HMENU, uidenableitem : u32, uenable : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); - EnableMenuItem(core::mem::transmute(hmenu), core::mem::transmute(uidenableitem), core::mem::transmute(uenable)) + EnableMenuItem(hmenu, uidenableitem, uenable) } #[inline] pub unsafe fn EndDeferWindowPos(hwinposinfo: HDWP) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EndDeferWindowPos(hwinposinfo : HDWP) -> super::super::Foundation:: BOOL); - EndDeferWindowPos(core::mem::transmute(hwinposinfo)).ok() + EndDeferWindowPos(hwinposinfo).ok() } #[inline] pub unsafe fn EndDialog(hdlg: super::super::Foundation::HWND, nresult: isize) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EndDialog(hdlg : super::super::Foundation:: HWND, nresult : isize) -> super::super::Foundation:: BOOL); - EndDialog(core::mem::transmute(hdlg), core::mem::transmute(nresult)).ok() + EndDialog(hdlg, nresult).ok() } #[inline] pub unsafe fn EndMenu() -> windows_core::Result<()> { @@ -621,37 +621,37 @@ pub unsafe fn EndMenu() -> windows_core::Result<()> { #[inline] pub unsafe fn EnumChildWindows(hwndparent: Option, lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EnumChildWindows(hwndparent : super::super::Foundation:: HWND, lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumChildWindows(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)) + EnumChildWindows(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), lpenumfunc, lparam) } #[inline] pub unsafe fn EnumPropsA(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCA) -> i32 { windows_targets::link!("user32.dll" "system" fn EnumPropsA(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCA) -> i32); - EnumPropsA(core::mem::transmute(hwnd), core::mem::transmute(lpenumfunc)) + EnumPropsA(hwnd, lpenumfunc) } #[inline] pub unsafe fn EnumPropsExA(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCEXA, lparam: super::super::Foundation::LPARAM) -> i32 { windows_targets::link!("user32.dll" "system" fn EnumPropsExA(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCEXA, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumPropsExA(core::mem::transmute(hwnd), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)) + EnumPropsExA(hwnd, lpenumfunc, lparam) } #[inline] pub unsafe fn EnumPropsExW(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCEXW, lparam: super::super::Foundation::LPARAM) -> i32 { windows_targets::link!("user32.dll" "system" fn EnumPropsExW(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCEXW, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumPropsExW(core::mem::transmute(hwnd), core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)) + EnumPropsExW(hwnd, lpenumfunc, lparam) } #[inline] pub unsafe fn EnumPropsW(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCW) -> i32 { windows_targets::link!("user32.dll" "system" fn EnumPropsW(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCW) -> i32); - EnumPropsW(core::mem::transmute(hwnd), core::mem::transmute(lpenumfunc)) + EnumPropsW(hwnd, lpenumfunc) } #[inline] pub unsafe fn EnumThreadWindows(dwthreadid: u32, lpfn: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn EnumThreadWindows(dwthreadid : u32, lpfn : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumThreadWindows(core::mem::transmute(dwthreadid), core::mem::transmute(lpfn), core::mem::transmute(lparam)) + EnumThreadWindows(dwthreadid, lpfn, lparam) } #[inline] pub unsafe fn EnumWindows(lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn EnumWindows(lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumWindows(core::mem::transmute(lpenumfunc), core::mem::transmute(lparam)).ok() + EnumWindows(lpenumfunc, lparam).ok() } #[inline] pub unsafe fn FindWindowA(lpclassname: P0, lpwindowname: P1) -> windows_core::Result @@ -696,27 +696,27 @@ where #[inline] pub unsafe fn FlashWindow(hwnd: super::super::Foundation::HWND, binvert: bool) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn FlashWindow(hwnd : super::super::Foundation:: HWND, binvert : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - FlashWindow(core::mem::transmute(hwnd), binvert.into()) + FlashWindow(hwnd, binvert.into()) } #[inline] pub unsafe fn FlashWindowEx(pfwi: *const FLASHWINFO) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn FlashWindowEx(pfwi : *const FLASHWINFO) -> super::super::Foundation:: BOOL); - FlashWindowEx(core::mem::transmute(pfwi)) + FlashWindowEx(pfwi) } #[inline] pub unsafe fn GetAltTabInfoA(hwnd: Option, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: Option<&mut [u8]>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetAltTabInfoA(hwnd : super::super::Foundation:: HWND, iitem : i32, pati : *mut ALTTABINFO, pszitemtext : windows_core::PSTR, cchitemtext : u32) -> super::super::Foundation:: BOOL); - GetAltTabInfoA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(iitem), core::mem::transmute(pati), core::mem::transmute(pszitemtext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszitemtext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + GetAltTabInfoA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), iitem, core::mem::transmute(pati), core::mem::transmute(pszitemtext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszitemtext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn GetAltTabInfoW(hwnd: Option, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: Option<&mut [u16]>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetAltTabInfoW(hwnd : super::super::Foundation:: HWND, iitem : i32, pati : *mut ALTTABINFO, pszitemtext : windows_core::PWSTR, cchitemtext : u32) -> super::super::Foundation:: BOOL); - GetAltTabInfoW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(iitem), core::mem::transmute(pati), core::mem::transmute(pszitemtext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszitemtext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + GetAltTabInfoW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), iitem, core::mem::transmute(pati), core::mem::transmute(pszitemtext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszitemtext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn GetAncestor(hwnd: super::super::Foundation::HWND, gaflags: GET_ANCESTOR_FLAGS) -> super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn GetAncestor(hwnd : super::super::Foundation:: HWND, gaflags : GET_ANCESTOR_FLAGS) -> super::super::Foundation:: HWND); - GetAncestor(core::mem::transmute(hwnd), core::mem::transmute(gaflags)) + GetAncestor(hwnd, gaflags) } #[inline] pub unsafe fn GetCaretBlinkTime() -> u32 { @@ -767,44 +767,44 @@ where #[inline] pub unsafe fn GetClassLongA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> u32 { windows_targets::link!("user32.dll" "system" fn GetClassLongA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> u32); - GetClassLongA(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetClassLongA(hwnd, nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn GetClassLongPtrA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> usize { windows_targets::link!("user32.dll" "system" fn GetClassLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> usize); - GetClassLongPtrA(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetClassLongPtrA(hwnd, nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn GetClassLongPtrW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> usize { windows_targets::link!("user32.dll" "system" fn GetClassLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> usize); - GetClassLongPtrW(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetClassLongPtrW(hwnd, nindex) } #[inline] pub unsafe fn GetClassLongW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> u32 { windows_targets::link!("user32.dll" "system" fn GetClassLongW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> u32); - GetClassLongW(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetClassLongW(hwnd, nindex) } #[inline] pub unsafe fn GetClassNameA(hwnd: super::super::Foundation::HWND, lpclassname: &mut [u8]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetClassNameA(hwnd : super::super::Foundation:: HWND, lpclassname : windows_core::PSTR, nmaxcount : i32) -> i32); - GetClassNameA(core::mem::transmute(hwnd), core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) + GetClassNameA(hwnd, core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClassNameW(hwnd: super::super::Foundation::HWND, lpclassname: &mut [u16]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetClassNameW(hwnd : super::super::Foundation:: HWND, lpclassname : windows_core::PWSTR, nmaxcount : i32) -> i32); - GetClassNameW(core::mem::transmute(hwnd), core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) + GetClassNameW(hwnd, core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClassWord(hwnd: super::super::Foundation::HWND, nindex: i32) -> u16 { windows_targets::link!("user32.dll" "system" fn GetClassWord(hwnd : super::super::Foundation:: HWND, nindex : i32) -> u16); - GetClassWord(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetClassWord(hwnd, nindex) } #[inline] pub unsafe fn GetClientRect(hwnd: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetClientRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - GetClientRect(core::mem::transmute(hwnd), core::mem::transmute(lprect)).ok() + GetClientRect(hwnd, core::mem::transmute(lprect)).ok() } #[inline] pub unsafe fn GetClipCursor(lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { @@ -839,28 +839,28 @@ pub unsafe fn GetDialogBaseUnits() -> i32 { #[inline] pub unsafe fn GetDlgCtrlID(hwnd: super::super::Foundation::HWND) -> i32 { windows_targets::link!("user32.dll" "system" fn GetDlgCtrlID(hwnd : super::super::Foundation:: HWND) -> i32); - GetDlgCtrlID(core::mem::transmute(hwnd)) + GetDlgCtrlID(hwnd) } #[inline] pub unsafe fn GetDlgItem(hdlg: Option, niddlgitem: i32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetDlgItem(hdlg : super::super::Foundation:: HWND, niddlgitem : i32) -> super::super::Foundation:: HWND); - let result__ = GetDlgItem(core::mem::transmute(hdlg.unwrap_or(core::mem::zeroed())), core::mem::transmute(niddlgitem)); + let result__ = GetDlgItem(core::mem::transmute(hdlg.unwrap_or(core::mem::zeroed())), niddlgitem); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lptranslated: Option<*mut super::super::Foundation::BOOL>, bsigned: bool) -> u32 { windows_targets::link!("user32.dll" "system" fn GetDlgItemInt(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lptranslated : *mut super::super::Foundation:: BOOL, bsigned : super::super::Foundation:: BOOL) -> u32); - GetDlgItemInt(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), core::mem::transmute(lptranslated.unwrap_or(core::mem::zeroed())), bsigned.into()) + GetDlgItemInt(hdlg, niddlgitem, core::mem::transmute(lptranslated.unwrap_or(core::mem::zeroed())), bsigned.into()) } #[inline] pub unsafe fn GetDlgItemTextA(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: &mut [u8]) -> u32 { windows_targets::link!("user32.dll" "system" fn GetDlgItemTextA(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PSTR, cchmax : i32) -> u32); - GetDlgItemTextA(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetDlgItemTextA(hdlg, niddlgitem, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetDlgItemTextW(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: &mut [u16]) -> u32 { windows_targets::link!("user32.dll" "system" fn GetDlgItemTextW(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PWSTR, cchmax : i32) -> u32); - GetDlgItemTextW(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetDlgItemTextW(hdlg, niddlgitem, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetForegroundWindow() -> super::super::Foundation::HWND { @@ -870,25 +870,25 @@ pub unsafe fn GetForegroundWindow() -> super::super::Foundation::HWND { #[inline] pub unsafe fn GetGUIThreadInfo(idthread: u32, pgui: *mut GUITHREADINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetGUIThreadInfo(idthread : u32, pgui : *mut GUITHREADINFO) -> super::super::Foundation:: BOOL); - GetGUIThreadInfo(core::mem::transmute(idthread), core::mem::transmute(pgui)).ok() + GetGUIThreadInfo(idthread, core::mem::transmute(pgui)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetIconInfo(hicon: HICON, piconinfo: *mut ICONINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetIconInfo(hicon : HICON, piconinfo : *mut ICONINFO) -> super::super::Foundation:: BOOL); - GetIconInfo(core::mem::transmute(hicon), core::mem::transmute(piconinfo)).ok() + GetIconInfo(hicon, core::mem::transmute(piconinfo)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetIconInfoExA(hicon: HICON, piconinfo: *mut ICONINFOEXA) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetIconInfoExA(hicon : HICON, piconinfo : *mut ICONINFOEXA) -> super::super::Foundation:: BOOL); - GetIconInfoExA(core::mem::transmute(hicon), core::mem::transmute(piconinfo)) + GetIconInfoExA(hicon, core::mem::transmute(piconinfo)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetIconInfoExW(hicon: HICON, piconinfo: *mut ICONINFOEXW) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetIconInfoExW(hicon : HICON, piconinfo : *mut ICONINFOEXW) -> super::super::Foundation:: BOOL); - GetIconInfoExW(core::mem::transmute(hicon), core::mem::transmute(piconinfo)) + GetIconInfoExW(hicon, core::mem::transmute(piconinfo)) } #[inline] pub unsafe fn GetInputState() -> super::super::Foundation::BOOL { @@ -898,22 +898,22 @@ pub unsafe fn GetInputState() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn GetLastActivePopup(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn GetLastActivePopup(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - GetLastActivePopup(core::mem::transmute(hwnd)) + GetLastActivePopup(hwnd) } #[inline] pub unsafe fn GetLayeredWindowAttributes(hwnd: super::super::Foundation::HWND, pcrkey: Option<*mut super::super::Foundation::COLORREF>, pbalpha: Option<*mut u8>, pdwflags: Option<*mut LAYERED_WINDOW_ATTRIBUTES_FLAGS>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetLayeredWindowAttributes(hwnd : super::super::Foundation:: HWND, pcrkey : *mut super::super::Foundation:: COLORREF, pbalpha : *mut u8, pdwflags : *mut LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> super::super::Foundation:: BOOL); - GetLayeredWindowAttributes(core::mem::transmute(hwnd), core::mem::transmute(pcrkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbalpha.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() + GetLayeredWindowAttributes(hwnd, core::mem::transmute(pcrkey.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbalpha.unwrap_or(core::mem::zeroed())), core::mem::transmute(pdwflags.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn GetMenu(hwnd: super::super::Foundation::HWND) -> HMENU { windows_targets::link!("user32.dll" "system" fn GetMenu(hwnd : super::super::Foundation:: HWND) -> HMENU); - GetMenu(core::mem::transmute(hwnd)) + GetMenu(hwnd) } #[inline] pub unsafe fn GetMenuBarInfo(hwnd: super::super::Foundation::HWND, idobject: OBJECT_IDENTIFIER, iditem: i32, pmbi: *mut MENUBARINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetMenuBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, iditem : i32, pmbi : *mut MENUBARINFO) -> super::super::Foundation:: BOOL); - GetMenuBarInfo(core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(iditem), core::mem::transmute(pmbi)).ok() + GetMenuBarInfo(hwnd, idobject, iditem, core::mem::transmute(pmbi)).ok() } #[inline] pub unsafe fn GetMenuCheckMarkDimensions() -> i32 { @@ -923,13 +923,13 @@ pub unsafe fn GetMenuCheckMarkDimensions() -> i32 { #[inline] pub unsafe fn GetMenuDefaultItem(hmenu: HMENU, fbypos: u32, gmdiflags: GET_MENU_DEFAULT_ITEM_FLAGS) -> u32 { windows_targets::link!("user32.dll" "system" fn GetMenuDefaultItem(hmenu : HMENU, fbypos : u32, gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS) -> u32); - GetMenuDefaultItem(core::mem::transmute(hmenu), core::mem::transmute(fbypos), core::mem::transmute(gmdiflags)) + GetMenuDefaultItem(hmenu, fbypos, gmdiflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuInfo(param0: HMENU, param1: *mut MENUINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetMenuInfo(param0 : HMENU, param1 : *mut MENUINFO) -> super::super::Foundation:: BOOL); - GetMenuInfo(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + GetMenuInfo(param0, core::mem::transmute(param1)).ok() } #[inline] pub unsafe fn GetMenuItemCount(hmenu: Option) -> i32 { @@ -939,44 +939,44 @@ pub unsafe fn GetMenuItemCount(hmenu: Option) -> i32 { #[inline] pub unsafe fn GetMenuItemID(hmenu: HMENU, npos: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn GetMenuItemID(hmenu : HMENU, npos : i32) -> u32); - GetMenuItemID(core::mem::transmute(hmenu), core::mem::transmute(npos)) + GetMenuItemID(hmenu, npos) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuItemInfoA(hmenu: HMENU, item: u32, fbyposition: bool, lpmii: *mut MENUITEMINFOA) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetMenuItemInfoA(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmii : *mut MENUITEMINFOA) -> super::super::Foundation:: BOOL); - GetMenuItemInfoA(core::mem::transmute(hmenu), core::mem::transmute(item), fbyposition.into(), core::mem::transmute(lpmii)).ok() + GetMenuItemInfoA(hmenu, item, fbyposition.into(), core::mem::transmute(lpmii)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuItemInfoW(hmenu: HMENU, item: u32, fbyposition: bool, lpmii: *mut MENUITEMINFOW) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetMenuItemInfoW(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmii : *mut MENUITEMINFOW) -> super::super::Foundation:: BOOL); - GetMenuItemInfoW(core::mem::transmute(hmenu), core::mem::transmute(item), fbyposition.into(), core::mem::transmute(lpmii)).ok() + GetMenuItemInfoW(hmenu, item, fbyposition.into(), core::mem::transmute(lpmii)).ok() } #[inline] pub unsafe fn GetMenuItemRect(hwnd: Option, hmenu: HMENU, uitem: u32, lprcitem: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetMenuItemRect(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uitem : u32, lprcitem : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - GetMenuItemRect(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmenu), core::mem::transmute(uitem), core::mem::transmute(lprcitem)).ok() + GetMenuItemRect(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), hmenu, uitem, core::mem::transmute(lprcitem)).ok() } #[inline] pub unsafe fn GetMenuState(hmenu: HMENU, uid: u32, uflags: MENU_ITEM_FLAGS) -> u32 { windows_targets::link!("user32.dll" "system" fn GetMenuState(hmenu : HMENU, uid : u32, uflags : MENU_ITEM_FLAGS) -> u32); - GetMenuState(core::mem::transmute(hmenu), core::mem::transmute(uid), core::mem::transmute(uflags)) + GetMenuState(hmenu, uid, uflags) } #[inline] pub unsafe fn GetMenuStringA(hmenu: HMENU, uiditem: u32, lpstring: Option<&mut [u8]>, flags: MENU_ITEM_FLAGS) -> i32 { windows_targets::link!("user32.dll" "system" fn GetMenuStringA(hmenu : HMENU, uiditem : u32, lpstring : windows_core::PSTR, cchmax : i32, flags : MENU_ITEM_FLAGS) -> i32); - GetMenuStringA(core::mem::transmute(hmenu), core::mem::transmute(uiditem), core::mem::transmute(lpstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + GetMenuStringA(hmenu, uiditem, core::mem::transmute(lpstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn GetMenuStringW(hmenu: HMENU, uiditem: u32, lpstring: Option<&mut [u16]>, flags: MENU_ITEM_FLAGS) -> i32 { windows_targets::link!("user32.dll" "system" fn GetMenuStringW(hmenu : HMENU, uiditem : u32, lpstring : windows_core::PWSTR, cchmax : i32, flags : MENU_ITEM_FLAGS) -> i32); - GetMenuStringW(core::mem::transmute(hmenu), core::mem::transmute(uiditem), core::mem::transmute(lpstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + GetMenuStringW(hmenu, uiditem, core::mem::transmute(lpstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn GetMessageA(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetMessageA(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32) -> super::super::Foundation:: BOOL); - GetMessageA(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax)) + GetMessageA(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), wmsgfiltermin, wmsgfiltermax) } #[inline] pub unsafe fn GetMessageExtraInfo() -> super::super::Foundation::LPARAM { @@ -996,24 +996,24 @@ pub unsafe fn GetMessageTime() -> i32 { #[inline] pub unsafe fn GetMessageW(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn GetMessageW(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32) -> super::super::Foundation:: BOOL); - GetMessageW(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax)) + GetMessageW(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), wmsgfiltermin, wmsgfiltermax) } #[inline] pub unsafe fn GetNextDlgGroupItem(hdlg: super::super::Foundation::HWND, hctl: Option, bprevious: bool) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetNextDlgGroupItem(hdlg : super::super::Foundation:: HWND, hctl : super::super::Foundation:: HWND, bprevious : super::super::Foundation:: BOOL) -> super::super::Foundation:: HWND); - let result__ = GetNextDlgGroupItem(core::mem::transmute(hdlg), core::mem::transmute(hctl.unwrap_or(core::mem::zeroed())), bprevious.into()); + let result__ = GetNextDlgGroupItem(hdlg, core::mem::transmute(hctl.unwrap_or(core::mem::zeroed())), bprevious.into()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetNextDlgTabItem(hdlg: super::super::Foundation::HWND, hctl: Option, bprevious: bool) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetNextDlgTabItem(hdlg : super::super::Foundation:: HWND, hctl : super::super::Foundation:: HWND, bprevious : super::super::Foundation:: BOOL) -> super::super::Foundation:: HWND); - let result__ = GetNextDlgTabItem(core::mem::transmute(hdlg), core::mem::transmute(hctl.unwrap_or(core::mem::zeroed())), bprevious.into()); + let result__ = GetNextDlgTabItem(hdlg, core::mem::transmute(hctl.unwrap_or(core::mem::zeroed())), bprevious.into()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetParent(hwnd: super::super::Foundation::HWND) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetParent(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - let result__ = GetParent(core::mem::transmute(hwnd)); + let result__ = GetParent(hwnd); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1032,7 +1032,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetPropA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - GetPropA(core::mem::transmute(hwnd), lpstring.param().abi()) + GetPropA(hwnd, lpstring.param().abi()) } #[inline] pub unsafe fn GetPropW(hwnd: super::super::Foundation::HWND, lpstring: P1) -> super::super::Foundation::HANDLE @@ -1040,32 +1040,32 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetPropW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - GetPropW(core::mem::transmute(hwnd), lpstring.param().abi()) + GetPropW(hwnd, lpstring.param().abi()) } #[inline] pub unsafe fn GetQueueStatus(flags: QUEUE_STATUS_FLAGS) -> u32 { windows_targets::link!("user32.dll" "system" fn GetQueueStatus(flags : QUEUE_STATUS_FLAGS) -> u32); - GetQueueStatus(core::mem::transmute(flags)) + GetQueueStatus(flags) } #[inline] pub unsafe fn GetScrollBarInfo(hwnd: super::super::Foundation::HWND, idobject: OBJECT_IDENTIFIER, psbi: *mut SCROLLBARINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetScrollBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, psbi : *mut SCROLLBARINFO) -> super::super::Foundation:: BOOL); - GetScrollBarInfo(core::mem::transmute(hwnd), core::mem::transmute(idobject), core::mem::transmute(psbi)).ok() + GetScrollBarInfo(hwnd, idobject, core::mem::transmute(psbi)).ok() } #[inline] pub unsafe fn GetScrollInfo(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS, lpsi: *mut SCROLLINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpsi : *mut SCROLLINFO) -> super::super::Foundation:: BOOL); - GetScrollInfo(core::mem::transmute(hwnd), core::mem::transmute(nbar), core::mem::transmute(lpsi)).ok() + GetScrollInfo(hwnd, nbar, core::mem::transmute(lpsi)).ok() } #[inline] pub unsafe fn GetScrollPos(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS) -> i32 { windows_targets::link!("user32.dll" "system" fn GetScrollPos(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS) -> i32); - GetScrollPos(core::mem::transmute(hwnd), core::mem::transmute(nbar)) + GetScrollPos(hwnd, nbar) } #[inline] pub unsafe fn GetScrollRange(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS, lpminpos: *mut i32, lpmaxpos: *mut i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetScrollRange(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpminpos : *mut i32, lpmaxpos : *mut i32) -> super::super::Foundation:: BOOL); - GetScrollRange(core::mem::transmute(hwnd), core::mem::transmute(nbar), core::mem::transmute(lpminpos), core::mem::transmute(lpmaxpos)).ok() + GetScrollRange(hwnd, nbar, core::mem::transmute(lpminpos), core::mem::transmute(lpmaxpos)).ok() } #[inline] pub unsafe fn GetShellWindow() -> super::super::Foundation::HWND { @@ -1075,22 +1075,22 @@ pub unsafe fn GetShellWindow() -> super::super::Foundation::HWND { #[inline] pub unsafe fn GetSubMenu(hmenu: HMENU, npos: i32) -> HMENU { windows_targets::link!("user32.dll" "system" fn GetSubMenu(hmenu : HMENU, npos : i32) -> HMENU); - GetSubMenu(core::mem::transmute(hmenu), core::mem::transmute(npos)) + GetSubMenu(hmenu, npos) } #[inline] pub unsafe fn GetSystemMenu(hwnd: super::super::Foundation::HWND, brevert: bool) -> HMENU { windows_targets::link!("user32.dll" "system" fn GetSystemMenu(hwnd : super::super::Foundation:: HWND, brevert : super::super::Foundation:: BOOL) -> HMENU); - GetSystemMenu(core::mem::transmute(hwnd), brevert.into()) + GetSystemMenu(hwnd, brevert.into()) } #[inline] pub unsafe fn GetSystemMetrics(nindex: SYSTEM_METRICS_INDEX) -> i32 { windows_targets::link!("user32.dll" "system" fn GetSystemMetrics(nindex : SYSTEM_METRICS_INDEX) -> i32); - GetSystemMetrics(core::mem::transmute(nindex)) + GetSystemMetrics(nindex) } #[inline] pub unsafe fn GetTitleBarInfo(hwnd: super::super::Foundation::HWND, pti: *mut TITLEBARINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetTitleBarInfo(hwnd : super::super::Foundation:: HWND, pti : *mut TITLEBARINFO) -> super::super::Foundation:: BOOL); - GetTitleBarInfo(core::mem::transmute(hwnd), core::mem::transmute(pti)).ok() + GetTitleBarInfo(hwnd, core::mem::transmute(pti)).ok() } #[inline] pub unsafe fn GetTopWindow(hwnd: Option) -> windows_core::Result { @@ -1101,29 +1101,29 @@ pub unsafe fn GetTopWindow(hwnd: Option) -> wind #[inline] pub unsafe fn GetWindow(hwnd: super::super::Foundation::HWND, ucmd: GET_WINDOW_CMD) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn GetWindow(hwnd : super::super::Foundation:: HWND, ucmd : GET_WINDOW_CMD) -> super::super::Foundation:: HWND); - let result__ = GetWindow(core::mem::transmute(hwnd), core::mem::transmute(ucmd)); + let result__ = GetWindow(hwnd, ucmd); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetWindowDisplayAffinity(hwnd: super::super::Foundation::HWND, pdwaffinity: *mut u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, pdwaffinity : *mut u32) -> super::super::Foundation:: BOOL); - GetWindowDisplayAffinity(core::mem::transmute(hwnd), core::mem::transmute(pdwaffinity)).ok() + GetWindowDisplayAffinity(hwnd, core::mem::transmute(pdwaffinity)).ok() } #[inline] pub unsafe fn GetWindowInfo(hwnd: super::super::Foundation::HWND, pwi: *mut WINDOWINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetWindowInfo(hwnd : super::super::Foundation:: HWND, pwi : *mut WINDOWINFO) -> super::super::Foundation:: BOOL); - GetWindowInfo(core::mem::transmute(hwnd), core::mem::transmute(pwi)).ok() + GetWindowInfo(hwnd, core::mem::transmute(pwi)).ok() } #[inline] pub unsafe fn GetWindowLongA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowLongA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); - GetWindowLongA(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongA(hwnd, nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn GetWindowLongPtrA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> isize { windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); - GetWindowLongPtrA(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongPtrA(hwnd, nindex) } #[cfg(target_pointer_width = "32")] pub use GetWindowLongA as GetWindowLongPtrA; @@ -1131,64 +1131,64 @@ pub use GetWindowLongA as GetWindowLongPtrA; #[inline] pub unsafe fn GetWindowLongPtrW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> isize { windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); - GetWindowLongPtrW(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongPtrW(hwnd, nindex) } #[cfg(target_pointer_width = "32")] pub use GetWindowLongW as GetWindowLongPtrW; #[inline] pub unsafe fn GetWindowLongW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowLongW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); - GetWindowLongW(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongW(hwnd, nindex) } #[inline] pub unsafe fn GetWindowModuleFileNameA(hwnd: super::super::Foundation::HWND, pszfilename: &mut [u8]) -> u32 { windows_targets::link!("user32.dll" "system" fn GetWindowModuleFileNameA(hwnd : super::super::Foundation:: HWND, pszfilename : windows_core::PSTR, cchfilenamemax : u32) -> u32); - GetWindowModuleFileNameA(core::mem::transmute(hwnd), core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) + GetWindowModuleFileNameA(hwnd, core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowModuleFileNameW(hwnd: super::super::Foundation::HWND, pszfilename: &mut [u16]) -> u32 { windows_targets::link!("user32.dll" "system" fn GetWindowModuleFileNameW(hwnd : super::super::Foundation:: HWND, pszfilename : windows_core::PWSTR, cchfilenamemax : u32) -> u32); - GetWindowModuleFileNameW(core::mem::transmute(hwnd), core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) + GetWindowModuleFileNameW(hwnd, core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowPlacement(hwnd: super::super::Foundation::HWND, lpwndpl: *mut WINDOWPLACEMENT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *mut WINDOWPLACEMENT) -> super::super::Foundation:: BOOL); - GetWindowPlacement(core::mem::transmute(hwnd), core::mem::transmute(lpwndpl)).ok() + GetWindowPlacement(hwnd, core::mem::transmute(lpwndpl)).ok() } #[inline] pub unsafe fn GetWindowRect(hwnd: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn GetWindowRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - GetWindowRect(core::mem::transmute(hwnd), core::mem::transmute(lprect)).ok() + GetWindowRect(hwnd, core::mem::transmute(lprect)).ok() } #[inline] pub unsafe fn GetWindowTextA(hwnd: super::super::Foundation::HWND, lpstring: &mut [u8]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowTextA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, nmaxcount : i32) -> i32); - GetWindowTextA(core::mem::transmute(hwnd), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetWindowTextA(hwnd, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowTextLengthA(hwnd: super::super::Foundation::HWND) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowTextLengthA(hwnd : super::super::Foundation:: HWND) -> i32); - GetWindowTextLengthA(core::mem::transmute(hwnd)) + GetWindowTextLengthA(hwnd) } #[inline] pub unsafe fn GetWindowTextLengthW(hwnd: super::super::Foundation::HWND) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowTextLengthW(hwnd : super::super::Foundation:: HWND) -> i32); - GetWindowTextLengthW(core::mem::transmute(hwnd)) + GetWindowTextLengthW(hwnd) } #[inline] pub unsafe fn GetWindowTextW(hwnd: super::super::Foundation::HWND, lpstring: &mut [u16]) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowTextW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, nmaxcount : i32) -> i32); - GetWindowTextW(core::mem::transmute(hwnd), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetWindowTextW(hwnd, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowThreadProcessId(hwnd: super::super::Foundation::HWND, lpdwprocessid: Option<*mut u32>) -> u32 { windows_targets::link!("user32.dll" "system" fn GetWindowThreadProcessId(hwnd : super::super::Foundation:: HWND, lpdwprocessid : *mut u32) -> u32); - GetWindowThreadProcessId(core::mem::transmute(hwnd), core::mem::transmute(lpdwprocessid.unwrap_or(core::mem::zeroed()))) + GetWindowThreadProcessId(hwnd, core::mem::transmute(lpdwprocessid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn GetWindowWord(hwnd: super::super::Foundation::HWND, nindex: i32) -> u16 { windows_targets::link!("user32.dll" "system" fn GetWindowWord(hwnd : super::super::Foundation:: HWND, nindex : i32) -> u16); - GetWindowWord(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowWord(hwnd, nindex) } #[inline] pub unsafe fn HideCaret(hwnd: Option) -> windows_core::Result<()> { @@ -1198,7 +1198,7 @@ pub unsafe fn HideCaret(hwnd: Option) -> windows #[inline] pub unsafe fn HiliteMenuItem(hwnd: super::super::Foundation::HWND, hmenu: HMENU, uidhiliteitem: u32, uhilite: u32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn HiliteMenuItem(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uidhiliteitem : u32, uhilite : u32) -> super::super::Foundation:: BOOL); - HiliteMenuItem(core::mem::transmute(hwnd), core::mem::transmute(hmenu), core::mem::transmute(uidhiliteitem), core::mem::transmute(uhilite)) + HiliteMenuItem(hwnd, hmenu, uidhiliteitem, uhilite) } #[inline] pub unsafe fn InSendMessage() -> super::super::Foundation::BOOL { @@ -1216,12 +1216,12 @@ where P1: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn IndexFilePath(resourceindexer : *const core::ffi::c_void, filepath : windows_core::PCWSTR, ppresourceuri : *mut windows_core::PWSTR, pqualifiercount : *mut u32, ppqualifiers : *mut *mut IndexedResourceQualifier) -> windows_core::HRESULT); - IndexFilePath(core::mem::transmute(resourceindexer), filepath.param().abi(), core::mem::transmute(ppresourceuri), core::mem::transmute(pqualifiercount), core::mem::transmute(ppqualifiers)).ok() + IndexFilePath(resourceindexer, filepath.param().abi(), core::mem::transmute(ppresourceuri), core::mem::transmute(pqualifiercount), core::mem::transmute(ppqualifiers)).ok() } #[inline] pub unsafe fn InheritWindowMonitor(hwnd: super::super::Foundation::HWND, hwndinherit: Option) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn InheritWindowMonitor(hwnd : super::super::Foundation:: HWND, hwndinherit : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InheritWindowMonitor(core::mem::transmute(hwnd), core::mem::transmute(hwndinherit.unwrap_or(core::mem::zeroed()))) + InheritWindowMonitor(hwnd, core::mem::transmute(hwndinherit.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn InsertMenuA(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P4) -> windows_core::Result<()> @@ -1229,19 +1229,19 @@ where P4: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn InsertMenuA(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - InsertMenuA(core::mem::transmute(hmenu), core::mem::transmute(uposition), core::mem::transmute(uflags), core::mem::transmute(uidnewitem), lpnewitem.param().abi()).ok() + InsertMenuA(hmenu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn InsertMenuItemA(hmenu: HMENU, item: u32, fbyposition: bool, lpmi: *const MENUITEMINFOA) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn InsertMenuItemA(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmi : *const MENUITEMINFOA) -> super::super::Foundation:: BOOL); - InsertMenuItemA(core::mem::transmute(hmenu), core::mem::transmute(item), fbyposition.into(), core::mem::transmute(lpmi)).ok() + InsertMenuItemA(hmenu, item, fbyposition.into(), lpmi).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn InsertMenuItemW(hmenu: HMENU, item: u32, fbyposition: bool, lpmi: *const MENUITEMINFOW) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn InsertMenuItemW(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmi : *const MENUITEMINFOW) -> super::super::Foundation:: BOOL); - InsertMenuItemW(core::mem::transmute(hmenu), core::mem::transmute(item), fbyposition.into(), core::mem::transmute(lpmi)).ok() + InsertMenuItemW(hmenu, item, fbyposition.into(), lpmi).ok() } #[inline] pub unsafe fn InsertMenuW(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P4) -> windows_core::Result<()> @@ -1249,62 +1249,62 @@ where P4: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn InsertMenuW(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - InsertMenuW(core::mem::transmute(hmenu), core::mem::transmute(uposition), core::mem::transmute(uflags), core::mem::transmute(uidnewitem), lpnewitem.param().abi()).ok() + InsertMenuW(hmenu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn InternalGetWindowText(hwnd: super::super::Foundation::HWND, pstring: &mut [u16]) -> i32 { windows_targets::link!("user32.dll" "system" fn InternalGetWindowText(hwnd : super::super::Foundation:: HWND, pstring : windows_core::PWSTR, cchmaxcount : i32) -> i32); - InternalGetWindowText(core::mem::transmute(hwnd), core::mem::transmute(pstring.as_ptr()), pstring.len().try_into().unwrap()) + InternalGetWindowText(hwnd, core::mem::transmute(pstring.as_ptr()), pstring.len().try_into().unwrap()) } #[inline] pub unsafe fn IsCharAlphaA(ch: i8) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharAlphaA(ch : i8) -> super::super::Foundation:: BOOL); - IsCharAlphaA(core::mem::transmute(ch)).ok() + IsCharAlphaA(ch).ok() } #[inline] pub unsafe fn IsCharAlphaNumericA(ch: i8) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharAlphaNumericA(ch : i8) -> super::super::Foundation:: BOOL); - IsCharAlphaNumericA(core::mem::transmute(ch)).ok() + IsCharAlphaNumericA(ch).ok() } #[inline] pub unsafe fn IsCharAlphaNumericW(ch: u16) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharAlphaNumericW(ch : u16) -> super::super::Foundation:: BOOL); - IsCharAlphaNumericW(core::mem::transmute(ch)).ok() + IsCharAlphaNumericW(ch).ok() } #[inline] pub unsafe fn IsCharAlphaW(ch: u16) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharAlphaW(ch : u16) -> super::super::Foundation:: BOOL); - IsCharAlphaW(core::mem::transmute(ch)).ok() + IsCharAlphaW(ch).ok() } #[inline] pub unsafe fn IsCharLowerA(ch: i8) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharLowerA(ch : i8) -> super::super::Foundation:: BOOL); - IsCharLowerA(core::mem::transmute(ch)).ok() + IsCharLowerA(ch).ok() } #[inline] pub unsafe fn IsCharUpperA(ch: i8) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharUpperA(ch : i8) -> super::super::Foundation:: BOOL); - IsCharUpperA(core::mem::transmute(ch)).ok() + IsCharUpperA(ch).ok() } #[inline] pub unsafe fn IsCharUpperW(ch: u16) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn IsCharUpperW(ch : u16) -> super::super::Foundation:: BOOL); - IsCharUpperW(core::mem::transmute(ch)).ok() + IsCharUpperW(ch).ok() } #[inline] pub unsafe fn IsChild(hwndparent: super::super::Foundation::HWND, hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsChild(hwndparent : super::super::Foundation:: HWND, hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsChild(core::mem::transmute(hwndparent), core::mem::transmute(hwnd)) + IsChild(hwndparent, hwnd) } #[inline] pub unsafe fn IsDialogMessageA(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsDialogMessageA(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - IsDialogMessageA(core::mem::transmute(hdlg), core::mem::transmute(lpmsg)) + IsDialogMessageA(hdlg, lpmsg) } #[inline] pub unsafe fn IsDialogMessageW(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsDialogMessageW(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - IsDialogMessageW(core::mem::transmute(hdlg), core::mem::transmute(lpmsg)) + IsDialogMessageW(hdlg, lpmsg) } #[inline] pub unsafe fn IsGUIThread(bconvert: bool) -> super::super::Foundation::BOOL { @@ -1314,17 +1314,17 @@ pub unsafe fn IsGUIThread(bconvert: bool) -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsHungAppWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsHungAppWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsHungAppWindow(core::mem::transmute(hwnd)) + IsHungAppWindow(hwnd) } #[inline] pub unsafe fn IsIconic(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsIconic(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsIconic(core::mem::transmute(hwnd)) + IsIconic(hwnd) } #[inline] pub unsafe fn IsMenu(hmenu: HMENU) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsMenu(hmenu : HMENU) -> super::super::Foundation:: BOOL); - IsMenu(core::mem::transmute(hmenu)) + IsMenu(hmenu) } #[inline] pub unsafe fn IsProcessDPIAware() -> super::super::Foundation::BOOL { @@ -1339,17 +1339,17 @@ pub unsafe fn IsWindow(hwnd: Option) -> super::s #[inline] pub unsafe fn IsWindowArranged(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsWindowArranged(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindowArranged(core::mem::transmute(hwnd)) + IsWindowArranged(hwnd) } #[inline] pub unsafe fn IsWindowUnicode(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsWindowUnicode(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindowUnicode(core::mem::transmute(hwnd)) + IsWindowUnicode(hwnd) } #[inline] pub unsafe fn IsWindowVisible(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsWindowVisible(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindowVisible(core::mem::transmute(hwnd)) + IsWindowVisible(hwnd) } #[inline] pub unsafe fn IsWow64Message() -> super::super::Foundation::BOOL { @@ -1359,12 +1359,12 @@ pub unsafe fn IsWow64Message() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsZoomed(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn IsZoomed(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsZoomed(core::mem::transmute(hwnd)) + IsZoomed(hwnd) } #[inline] pub unsafe fn KillTimer(hwnd: Option, uidevent: usize) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn KillTimer(hwnd : super::super::Foundation:: HWND, uidevent : usize) -> super::super::Foundation:: BOOL); - KillTimer(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(uidevent)).ok() + KillTimer(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), uidevent).ok() } #[inline] pub unsafe fn LoadAcceleratorsA(hinstance: Option, lptablename: P1) -> windows_core::Result @@ -1444,7 +1444,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadImageA(hinst : super::super::Foundation:: HINSTANCE, name : windows_core::PCSTR, r#type : GDI_IMAGE_TYPE, cx : i32, cy : i32, fuload : IMAGE_FLAGS) -> super::super::Foundation:: HANDLE); - let result__ = LoadImageA(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(fuload)); + let result__ = LoadImageA(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), name.param().abi(), r#type, cx, cy, fuload); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1453,7 +1453,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadImageW(hinst : super::super::Foundation:: HINSTANCE, name : windows_core::PCWSTR, r#type : GDI_IMAGE_TYPE, cx : i32, cy : i32, fuload : IMAGE_FLAGS) -> super::super::Foundation:: HANDLE); - let result__ = LoadImageW(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), name.param().abi(), core::mem::transmute(r#type), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(fuload)); + let result__ = LoadImageW(core::mem::transmute(hinst.unwrap_or(core::mem::zeroed())), name.param().abi(), r#type, cx, cy, fuload); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1468,13 +1468,13 @@ where #[inline] pub unsafe fn LoadMenuIndirectA(lpmenutemplate: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn LoadMenuIndirectA(lpmenutemplate : *const core::ffi::c_void) -> HMENU); - let result__ = LoadMenuIndirectA(core::mem::transmute(lpmenutemplate)); + let result__ = LoadMenuIndirectA(lpmenutemplate); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadMenuIndirectW(lpmenutemplate: *const core::ffi::c_void) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn LoadMenuIndirectW(lpmenutemplate : *const core::ffi::c_void) -> HMENU); - let result__ = LoadMenuIndirectW(core::mem::transmute(lpmenutemplate)); + let result__ = LoadMenuIndirectW(lpmenutemplate); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1489,42 +1489,42 @@ where #[inline] pub unsafe fn LoadStringA(hinstance: Option, uid: u32, lpbuffer: windows_core::PSTR, cchbuffermax: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn LoadStringA(hinstance : super::super::Foundation:: HINSTANCE, uid : u32, lpbuffer : windows_core::PSTR, cchbuffermax : i32) -> i32); - LoadStringA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(uid), core::mem::transmute(lpbuffer), core::mem::transmute(cchbuffermax)) + LoadStringA(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), uid, core::mem::transmute(lpbuffer), cchbuffermax) } #[inline] pub unsafe fn LoadStringW(hinstance: Option, uid: u32, lpbuffer: windows_core::PWSTR, cchbuffermax: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn LoadStringW(hinstance : super::super::Foundation:: HINSTANCE, uid : u32, lpbuffer : windows_core::PWSTR, cchbuffermax : i32) -> i32); - LoadStringW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), core::mem::transmute(uid), core::mem::transmute(lpbuffer), core::mem::transmute(cchbuffermax)) + LoadStringW(core::mem::transmute(hinstance.unwrap_or(core::mem::zeroed())), uid, core::mem::transmute(lpbuffer), cchbuffermax) } #[inline] pub unsafe fn LockSetForegroundWindow(ulockcode: FOREGROUND_WINDOW_LOCK_CODE) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn LockSetForegroundWindow(ulockcode : FOREGROUND_WINDOW_LOCK_CODE) -> super::super::Foundation:: BOOL); - LockSetForegroundWindow(core::mem::transmute(ulockcode)).ok() + LockSetForegroundWindow(ulockcode).ok() } #[inline] pub unsafe fn LogicalToPhysicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - LogicalToPhysicalPoint(core::mem::transmute(hwnd), core::mem::transmute(lppoint)) + LogicalToPhysicalPoint(hwnd, core::mem::transmute(lppoint)) } #[inline] pub unsafe fn LookupIconIdFromDirectory(presbits: *const u8, ficon: bool) -> i32 { windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectory(presbits : *const u8, ficon : super::super::Foundation:: BOOL) -> i32); - LookupIconIdFromDirectory(core::mem::transmute(presbits), ficon.into()) + LookupIconIdFromDirectory(presbits, ficon.into()) } #[inline] pub unsafe fn LookupIconIdFromDirectoryEx(presbits: *const u8, ficon: bool, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> i32 { windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectoryEx(presbits : *const u8, ficon : super::super::Foundation:: BOOL, cxdesired : i32, cydesired : i32, flags : IMAGE_FLAGS) -> i32); - LookupIconIdFromDirectoryEx(core::mem::transmute(presbits), ficon.into(), core::mem::transmute(cxdesired), core::mem::transmute(cydesired), core::mem::transmute(flags)) + LookupIconIdFromDirectoryEx(presbits, ficon.into(), cxdesired, cydesired, flags) } #[inline] pub unsafe fn MapDialogRect(hdlg: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn MapDialogRect(hdlg : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MapDialogRect(core::mem::transmute(hdlg), core::mem::transmute(lprect)).ok() + MapDialogRect(hdlg, core::mem::transmute(lprect)).ok() } #[inline] pub unsafe fn MenuItemFromPoint(hwnd: Option, hmenu: HMENU, ptscreen: super::super::Foundation::POINT) -> i32 { windows_targets::link!("user32.dll" "system" fn MenuItemFromPoint(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, ptscreen : super::super::Foundation:: POINT) -> i32); - MenuItemFromPoint(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(hmenu), core::mem::transmute(ptscreen)) + MenuItemFromPoint(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), hmenu, core::mem::transmute(ptscreen)) } #[inline] pub unsafe fn MessageBoxA(hwnd: Option, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT @@ -1533,7 +1533,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MessageBoxA(hwnd : super::super::Foundation:: HWND, lptext : windows_core::PCSTR, lpcaption : windows_core::PCSTR, utype : MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT); - MessageBoxA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), core::mem::transmute(utype)) + MessageBoxA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), utype) } #[inline] pub unsafe fn MessageBoxExA(hwnd: Option, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE, wlanguageid: u16) -> MESSAGEBOX_RESULT @@ -1542,7 +1542,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MessageBoxExA(hwnd : super::super::Foundation:: HWND, lptext : windows_core::PCSTR, lpcaption : windows_core::PCSTR, utype : MESSAGEBOX_STYLE, wlanguageid : u16) -> MESSAGEBOX_RESULT); - MessageBoxExA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), core::mem::transmute(utype), core::mem::transmute(wlanguageid)) + MessageBoxExA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), utype, wlanguageid) } #[inline] pub unsafe fn MessageBoxExW(hwnd: Option, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE, wlanguageid: u16) -> MESSAGEBOX_RESULT @@ -1551,19 +1551,19 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MessageBoxExW(hwnd : super::super::Foundation:: HWND, lptext : windows_core::PCWSTR, lpcaption : windows_core::PCWSTR, utype : MESSAGEBOX_STYLE, wlanguageid : u16) -> MESSAGEBOX_RESULT); - MessageBoxExW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), core::mem::transmute(utype), core::mem::transmute(wlanguageid)) + MessageBoxExW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), utype, wlanguageid) } #[cfg(feature = "Win32_UI_Shell")] #[inline] pub unsafe fn MessageBoxIndirectA(lpmbp: *const MSGBOXPARAMSA) -> MESSAGEBOX_RESULT { windows_targets::link!("user32.dll" "system" fn MessageBoxIndirectA(lpmbp : *const MSGBOXPARAMSA) -> MESSAGEBOX_RESULT); - MessageBoxIndirectA(core::mem::transmute(lpmbp)) + MessageBoxIndirectA(lpmbp) } #[cfg(feature = "Win32_UI_Shell")] #[inline] pub unsafe fn MessageBoxIndirectW(lpmbp: *const MSGBOXPARAMSW) -> MESSAGEBOX_RESULT { windows_targets::link!("user32.dll" "system" fn MessageBoxIndirectW(lpmbp : *const MSGBOXPARAMSW) -> MESSAGEBOX_RESULT); - MessageBoxIndirectW(core::mem::transmute(lpmbp)) + MessageBoxIndirectW(lpmbp) } #[inline] pub unsafe fn MessageBoxW(hwnd: Option, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT @@ -1572,7 +1572,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MessageBoxW(hwnd : super::super::Foundation:: HWND, lptext : windows_core::PCWSTR, lpcaption : windows_core::PCWSTR, utype : MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT); - MessageBoxW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), core::mem::transmute(utype)) + MessageBoxW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), lptext.param().abi(), lpcaption.param().abi(), utype) } #[inline] pub unsafe fn ModifyMenuA(hmnu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P4) -> windows_core::Result<()> @@ -1580,7 +1580,7 @@ where P4: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ModifyMenuA(hmnu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ModifyMenuA(core::mem::transmute(hmnu), core::mem::transmute(uposition), core::mem::transmute(uflags), core::mem::transmute(uidnewitem), lpnewitem.param().abi()).ok() + ModifyMenuA(hmnu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn ModifyMenuW(hmnu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P4) -> windows_core::Result<()> @@ -1588,12 +1588,12 @@ where P4: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ModifyMenuW(hmnu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ModifyMenuW(core::mem::transmute(hmnu), core::mem::transmute(uposition), core::mem::transmute(uflags), core::mem::transmute(uidnewitem), lpnewitem.param().abi()).ok() + ModifyMenuW(hmnu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn MoveWindow(hwnd: super::super::Foundation::HWND, x: i32, y: i32, nwidth: i32, nheight: i32, brepaint: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn MoveWindow(hwnd : super::super::Foundation:: HWND, x : i32, y : i32, nwidth : i32, nheight : i32, brepaint : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - MoveWindow(core::mem::transmute(hwnd), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nwidth), core::mem::transmute(nheight), brepaint.into()).ok() + MoveWindow(hwnd, x, y, nwidth, nheight, brepaint.into()).ok() } #[inline] pub unsafe fn MrmCreateConfig(platformversion: MrmPlatformVersion, defaultqualifiers: P1, outputxmlfile: P2) -> windows_core::Result<()> @@ -1602,7 +1602,7 @@ where P2: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateConfig(platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, outputxmlfile : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmCreateConfig(core::mem::transmute(platformversion), defaultqualifiers.param().abi(), outputxmlfile.param().abi()).ok() + MrmCreateConfig(platformversion, defaultqualifiers.param().abi(), outputxmlfile.param().abi()).ok() } #[inline] pub unsafe fn MrmCreateConfigInMemory(platformversion: MrmPlatformVersion, defaultqualifiers: P1, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> windows_core::Result<()> @@ -1610,7 +1610,7 @@ where P1: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateConfigInMemory(platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, outputxmldata : *mut *mut u8, outputxmlsize : *mut u32) -> windows_core::HRESULT); - MrmCreateConfigInMemory(core::mem::transmute(platformversion), defaultqualifiers.param().abi(), core::mem::transmute(outputxmldata), core::mem::transmute(outputxmlsize)).ok() + MrmCreateConfigInMemory(platformversion, defaultqualifiers.param().abi(), core::mem::transmute(outputxmldata), core::mem::transmute(outputxmlsize)).ok() } #[inline] pub unsafe fn MrmCreateResourceFile(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, outputdirectory: P3) -> windows_core::Result<()> @@ -1618,12 +1618,12 @@ where P3: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceFile(indexer : MrmResourceIndexerHandle, packagingmode : MrmPackagingMode, packagingoptions : MrmPackagingOptions, outputdirectory : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmCreateResourceFile(core::mem::transmute(indexer), core::mem::transmute(packagingmode), core::mem::transmute(packagingoptions), outputdirectory.param().abi()).ok() + MrmCreateResourceFile(core::mem::transmute(indexer), packagingmode, packagingoptions, outputdirectory.param().abi()).ok() } #[inline] pub unsafe fn MrmCreateResourceFileInMemory(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, outputpridata: *mut *mut u8, outputprisize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceFileInMemory(indexer : MrmResourceIndexerHandle, packagingmode : MrmPackagingMode, packagingoptions : MrmPackagingOptions, outputpridata : *mut *mut u8, outputprisize : *mut u32) -> windows_core::HRESULT); - MrmCreateResourceFileInMemory(core::mem::transmute(indexer), core::mem::transmute(packagingmode), core::mem::transmute(packagingoptions), core::mem::transmute(outputpridata), core::mem::transmute(outputprisize)).ok() + MrmCreateResourceFileInMemory(core::mem::transmute(indexer), packagingmode, packagingoptions, core::mem::transmute(outputpridata), core::mem::transmute(outputprisize)).ok() } #[inline] pub unsafe fn MrmCreateResourceFileWithChecksum(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, checksum: u32, outputdirectory: P4) -> windows_core::Result<()> @@ -1631,7 +1631,7 @@ where P4: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceFileWithChecksum(indexer : MrmResourceIndexerHandle, packagingmode : MrmPackagingMode, packagingoptions : MrmPackagingOptions, checksum : u32, outputdirectory : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmCreateResourceFileWithChecksum(core::mem::transmute(indexer), core::mem::transmute(packagingmode), core::mem::transmute(packagingoptions), core::mem::transmute(checksum), outputdirectory.param().abi()).ok() + MrmCreateResourceFileWithChecksum(core::mem::transmute(indexer), packagingmode, packagingoptions, checksum, outputdirectory.param().abi()).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexer(packagefamilyname: P0, projectroot: P1, platformversion: MrmPlatformVersion, defaultqualifiers: P3, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> @@ -1641,7 +1641,7 @@ where P3: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceIndexer(packagefamilyname : windows_core::PCWSTR, projectroot : windows_core::PCWSTR, platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, indexer : *mut MrmResourceIndexerHandle) -> windows_core::HRESULT); - MrmCreateResourceIndexer(packagefamilyname.param().abi(), projectroot.param().abi(), core::mem::transmute(platformversion), defaultqualifiers.param().abi(), core::mem::transmute(indexer)).ok() + MrmCreateResourceIndexer(packagefamilyname.param().abi(), projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), core::mem::transmute(indexer)).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousPriData(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P2, pridata: &[u8], indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> @@ -1650,7 +1650,7 @@ where P2: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceIndexerFromPreviousPriData(projectroot : windows_core::PCWSTR, platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, pridata : *const u8, prisize : u32, indexer : *mut MrmResourceIndexerHandle) -> windows_core::HRESULT); - MrmCreateResourceIndexerFromPreviousPriData(projectroot.param().abi(), core::mem::transmute(platformversion), defaultqualifiers.param().abi(), core::mem::transmute(pridata.as_ptr()), pridata.len().try_into().unwrap(), core::mem::transmute(indexer)).ok() + MrmCreateResourceIndexerFromPreviousPriData(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), core::mem::transmute(pridata.as_ptr()), pridata.len().try_into().unwrap(), core::mem::transmute(indexer)).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousPriFile(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P2, prifile: P3, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> @@ -1660,7 +1660,7 @@ where P3: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceIndexerFromPreviousPriFile(projectroot : windows_core::PCWSTR, platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, prifile : windows_core::PCWSTR, indexer : *mut MrmResourceIndexerHandle) -> windows_core::HRESULT); - MrmCreateResourceIndexerFromPreviousPriFile(projectroot.param().abi(), core::mem::transmute(platformversion), defaultqualifiers.param().abi(), prifile.param().abi(), core::mem::transmute(indexer)).ok() + MrmCreateResourceIndexerFromPreviousPriFile(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), prifile.param().abi(), core::mem::transmute(indexer)).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaData(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P2, schemaxmldata: &[u8], indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> @@ -1669,7 +1669,7 @@ where P2: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceIndexerFromPreviousSchemaData(projectroot : windows_core::PCWSTR, platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, schemaxmldata : *const u8, schemaxmlsize : u32, indexer : *mut MrmResourceIndexerHandle) -> windows_core::HRESULT); - MrmCreateResourceIndexerFromPreviousSchemaData(projectroot.param().abi(), core::mem::transmute(platformversion), defaultqualifiers.param().abi(), core::mem::transmute(schemaxmldata.as_ptr()), schemaxmldata.len().try_into().unwrap(), core::mem::transmute(indexer)).ok() + MrmCreateResourceIndexerFromPreviousSchemaData(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), core::mem::transmute(schemaxmldata.as_ptr()), schemaxmldata.len().try_into().unwrap(), core::mem::transmute(indexer)).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P2, schemafile: P3, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> @@ -1679,7 +1679,7 @@ where P3: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot : windows_core::PCWSTR, platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, schemafile : windows_core::PCWSTR, indexer : *mut MrmResourceIndexerHandle) -> windows_core::HRESULT); - MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot.param().abi(), core::mem::transmute(platformversion), defaultqualifiers.param().abi(), schemafile.param().abi(), core::mem::transmute(indexer)).ok() + MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), schemafile.param().abi(), core::mem::transmute(indexer)).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerWithFlags(packagefamilyname: P0, projectroot: P1, platformversion: MrmPlatformVersion, defaultqualifiers: P3, flags: MrmIndexerFlags, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> @@ -1689,7 +1689,7 @@ where P3: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmCreateResourceIndexerWithFlags(packagefamilyname : windows_core::PCWSTR, projectroot : windows_core::PCWSTR, platformversion : MrmPlatformVersion, defaultqualifiers : windows_core::PCWSTR, flags : MrmIndexerFlags, indexer : *mut MrmResourceIndexerHandle) -> windows_core::HRESULT); - MrmCreateResourceIndexerWithFlags(packagefamilyname.param().abi(), projectroot.param().abi(), core::mem::transmute(platformversion), defaultqualifiers.param().abi(), core::mem::transmute(flags), core::mem::transmute(indexer)).ok() + MrmCreateResourceIndexerWithFlags(packagefamilyname.param().abi(), projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), flags, core::mem::transmute(indexer)).ok() } #[inline] pub unsafe fn MrmDestroyIndexerAndMessages(indexer: MrmResourceIndexerHandle) -> windows_core::Result<()> { @@ -1699,7 +1699,7 @@ pub unsafe fn MrmDestroyIndexerAndMessages(indexer: MrmResourceIndexerHandle) -> #[inline] pub unsafe fn MrmDumpPriDataInMemory(inputpridata: &[u8], schemapridata: Option<&[u8]>, dumptype: MrmDumpType, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> windows_core::Result<()> { windows_targets::link!("mrmsupport.dll" "system" fn MrmDumpPriDataInMemory(inputpridata : *const u8, inputprisize : u32, schemapridata : *const u8, schemaprisize : u32, dumptype : MrmDumpType, outputxmldata : *mut *mut u8, outputxmlsize : *mut u32) -> windows_core::HRESULT); - MrmDumpPriDataInMemory(core::mem::transmute(inputpridata.as_ptr()), inputpridata.len().try_into().unwrap(), core::mem::transmute(schemapridata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), schemapridata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(dumptype), core::mem::transmute(outputxmldata), core::mem::transmute(outputxmlsize)).ok() + MrmDumpPriDataInMemory(core::mem::transmute(inputpridata.as_ptr()), inputpridata.len().try_into().unwrap(), core::mem::transmute(schemapridata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), schemapridata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dumptype, core::mem::transmute(outputxmldata), core::mem::transmute(outputxmlsize)).ok() } #[inline] pub unsafe fn MrmDumpPriFile(indexfilename: P0, schemaprifile: P1, dumptype: MrmDumpType, outputxmlfile: P3) -> windows_core::Result<()> @@ -1709,7 +1709,7 @@ where P3: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmDumpPriFile(indexfilename : windows_core::PCWSTR, schemaprifile : windows_core::PCWSTR, dumptype : MrmDumpType, outputxmlfile : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmDumpPriFile(indexfilename.param().abi(), schemaprifile.param().abi(), core::mem::transmute(dumptype), outputxmlfile.param().abi()).ok() + MrmDumpPriFile(indexfilename.param().abi(), schemaprifile.param().abi(), dumptype, outputxmlfile.param().abi()).ok() } #[inline] pub unsafe fn MrmDumpPriFileInMemory(indexfilename: P0, schemaprifile: P1, dumptype: MrmDumpType, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> windows_core::Result<()> @@ -1718,12 +1718,12 @@ where P1: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmDumpPriFileInMemory(indexfilename : windows_core::PCWSTR, schemaprifile : windows_core::PCWSTR, dumptype : MrmDumpType, outputxmldata : *mut *mut u8, outputxmlsize : *mut u32) -> windows_core::HRESULT); - MrmDumpPriFileInMemory(indexfilename.param().abi(), schemaprifile.param().abi(), core::mem::transmute(dumptype), core::mem::transmute(outputxmldata), core::mem::transmute(outputxmlsize)).ok() + MrmDumpPriFileInMemory(indexfilename.param().abi(), schemaprifile.param().abi(), dumptype, core::mem::transmute(outputxmldata), core::mem::transmute(outputxmlsize)).ok() } #[inline] pub unsafe fn MrmFreeMemory(data: *const u8) -> windows_core::Result<()> { windows_targets::link!("mrmsupport.dll" "system" fn MrmFreeMemory(data : *const u8) -> windows_core::HRESULT); - MrmFreeMemory(core::mem::transmute(data)).ok() + MrmFreeMemory(data).ok() } #[inline] pub unsafe fn MrmGetPriFileContentChecksum(prifile: P0) -> windows_core::Result @@ -1787,12 +1787,12 @@ pub unsafe fn MrmPeekResourceIndexerMessages(handle: MrmResourceIndexerHandle, m #[inline] pub unsafe fn MsgWaitForMultipleObjects(phandles: Option<&[super::super::Foundation::HANDLE]>, fwaitall: bool, dwmilliseconds: u32, dwwakemask: QUEUE_STATUS_FLAGS) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("user32.dll" "system" fn MsgWaitForMultipleObjects(ncount : u32, phandles : *const super::super::Foundation:: HANDLE, fwaitall : super::super::Foundation:: BOOL, dwmilliseconds : u32, dwwakemask : QUEUE_STATUS_FLAGS) -> super::super::Foundation:: WAIT_EVENT); - MsgWaitForMultipleObjects(phandles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phandles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fwaitall.into(), core::mem::transmute(dwmilliseconds), core::mem::transmute(dwwakemask)) + MsgWaitForMultipleObjects(phandles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phandles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fwaitall.into(), dwmilliseconds, dwwakemask) } #[inline] pub unsafe fn MsgWaitForMultipleObjectsEx(phandles: Option<&[super::super::Foundation::HANDLE]>, dwmilliseconds: u32, dwwakemask: QUEUE_STATUS_FLAGS, dwflags: MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS) -> super::super::Foundation::WAIT_EVENT { windows_targets::link!("user32.dll" "system" fn MsgWaitForMultipleObjectsEx(ncount : u32, phandles : *const super::super::Foundation:: HANDLE, dwmilliseconds : u32, dwwakemask : QUEUE_STATUS_FLAGS, dwflags : MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS) -> super::super::Foundation:: WAIT_EVENT); - MsgWaitForMultipleObjectsEx(phandles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phandles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(dwmilliseconds), core::mem::transmute(dwwakemask), core::mem::transmute(dwflags)) + MsgWaitForMultipleObjectsEx(phandles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phandles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwmilliseconds, dwwakemask, dwflags) } #[inline] pub unsafe fn OemToCharA(psrc: P0, pdst: windows_core::PSTR) -> windows_core::Result<()> @@ -1829,118 +1829,118 @@ where #[inline] pub unsafe fn OpenIcon(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn OpenIcon(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - OpenIcon(core::mem::transmute(hwnd)).ok() + OpenIcon(hwnd).ok() } #[inline] pub unsafe fn PeekMessageA(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn PeekMessageA(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32, wremovemsg : PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation:: BOOL); - PeekMessageA(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax), core::mem::transmute(wremovemsg)) + PeekMessageA(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), wmsgfiltermin, wmsgfiltermax, wremovemsg) } #[inline] pub unsafe fn PeekMessageW(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn PeekMessageW(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32, wremovemsg : PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation:: BOOL); - PeekMessageW(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(wmsgfiltermin), core::mem::transmute(wmsgfiltermax), core::mem::transmute(wremovemsg)) + PeekMessageW(core::mem::transmute(lpmsg), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), wmsgfiltermin, wmsgfiltermax, wremovemsg) } #[inline] pub unsafe fn PhysicalToLogicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - PhysicalToLogicalPoint(core::mem::transmute(hwnd), core::mem::transmute(lppoint)) + PhysicalToLogicalPoint(hwnd, core::mem::transmute(lppoint)) } #[inline] pub unsafe fn PostMessageA(hwnd: Option, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn PostMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - PostMessageA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + PostMessageA(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), msg, wparam, lparam).ok() } #[inline] pub unsafe fn PostMessageW(hwnd: Option, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn PostMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - PostMessageW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + PostMessageW(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), msg, wparam, lparam).ok() } #[inline] pub unsafe fn PostQuitMessage(nexitcode: i32) { windows_targets::link!("user32.dll" "system" fn PostQuitMessage(nexitcode : i32)); - PostQuitMessage(core::mem::transmute(nexitcode)) + PostQuitMessage(nexitcode) } #[inline] pub unsafe fn PostThreadMessageA(idthread: u32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn PostThreadMessageA(idthread : u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - PostThreadMessageA(core::mem::transmute(idthread), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + PostThreadMessageA(idthread, msg, wparam, lparam).ok() } #[inline] pub unsafe fn PostThreadMessageW(idthread: u32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn PostThreadMessageW(idthread : u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - PostThreadMessageW(core::mem::transmute(idthread), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + PostThreadMessageW(idthread, msg, wparam, lparam).ok() } #[inline] pub unsafe fn PrivateExtractIconsA(szfilename: &[u8; 260], niconindex: i32, cxicon: i32, cyicon: i32, phicon: Option<&mut [HICON]>, piconid: Option<*mut u32>, flags: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn PrivateExtractIconsA(szfilename : windows_core::PCSTR, niconindex : i32, cxicon : i32, cyicon : i32, phicon : *mut HICON, piconid : *mut u32, nicons : u32, flags : u32) -> u32); - PrivateExtractIconsA(core::mem::transmute(szfilename.as_ptr()), core::mem::transmute(niconindex), core::mem::transmute(cxicon), core::mem::transmute(cyicon), core::mem::transmute(phicon.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(piconid.unwrap_or(core::mem::zeroed())), phicon.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + PrivateExtractIconsA(core::mem::transmute(szfilename.as_ptr()), niconindex, cxicon, cyicon, core::mem::transmute(phicon.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(piconid.unwrap_or(core::mem::zeroed())), phicon.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn PrivateExtractIconsW(szfilename: &[u16; 260], niconindex: i32, cxicon: i32, cyicon: i32, phicon: Option<&mut [HICON]>, piconid: Option<*mut u32>, flags: u32) -> u32 { windows_targets::link!("user32.dll" "system" fn PrivateExtractIconsW(szfilename : windows_core::PCWSTR, niconindex : i32, cxicon : i32, cyicon : i32, phicon : *mut HICON, piconid : *mut u32, nicons : u32, flags : u32) -> u32); - PrivateExtractIconsW(core::mem::transmute(szfilename.as_ptr()), core::mem::transmute(niconindex), core::mem::transmute(cxicon), core::mem::transmute(cyicon), core::mem::transmute(phicon.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(piconid.unwrap_or(core::mem::zeroed())), phicon.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(flags)) + PrivateExtractIconsW(core::mem::transmute(szfilename.as_ptr()), niconindex, cxicon, cyicon, core::mem::transmute(phicon.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(piconid.unwrap_or(core::mem::zeroed())), phicon.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } #[inline] pub unsafe fn RealChildWindowFromPoint(hwndparent: super::super::Foundation::HWND, ptparentclientcoords: super::super::Foundation::POINT) -> super::super::Foundation::HWND { windows_targets::link!("user32.dll" "system" fn RealChildWindowFromPoint(hwndparent : super::super::Foundation:: HWND, ptparentclientcoords : super::super::Foundation:: POINT) -> super::super::Foundation:: HWND); - RealChildWindowFromPoint(core::mem::transmute(hwndparent), core::mem::transmute(ptparentclientcoords)) + RealChildWindowFromPoint(hwndparent, core::mem::transmute(ptparentclientcoords)) } #[inline] pub unsafe fn RealGetWindowClassA(hwnd: super::super::Foundation::HWND, ptszclassname: &mut [u8]) -> u32 { windows_targets::link!("user32.dll" "system" fn RealGetWindowClassA(hwnd : super::super::Foundation:: HWND, ptszclassname : windows_core::PSTR, cchclassnamemax : u32) -> u32); - RealGetWindowClassA(core::mem::transmute(hwnd), core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) + RealGetWindowClassA(hwnd, core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) } #[inline] pub unsafe fn RealGetWindowClassW(hwnd: super::super::Foundation::HWND, ptszclassname: &mut [u16]) -> u32 { windows_targets::link!("user32.dll" "system" fn RealGetWindowClassW(hwnd : super::super::Foundation:: HWND, ptszclassname : windows_core::PWSTR, cchclassnamemax : u32) -> u32); - RealGetWindowClassW(core::mem::transmute(hwnd), core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) + RealGetWindowClassW(hwnd, core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn RegisterClassA(lpwndclass: *const WNDCLASSA) -> u16 { windows_targets::link!("user32.dll" "system" fn RegisterClassA(lpwndclass : *const WNDCLASSA) -> u16); - RegisterClassA(core::mem::transmute(lpwndclass)) + RegisterClassA(lpwndclass) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn RegisterClassExA(param0: *const WNDCLASSEXA) -> u16 { windows_targets::link!("user32.dll" "system" fn RegisterClassExA(param0 : *const WNDCLASSEXA) -> u16); - RegisterClassExA(core::mem::transmute(param0)) + RegisterClassExA(param0) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn RegisterClassExW(param0: *const WNDCLASSEXW) -> u16 { windows_targets::link!("user32.dll" "system" fn RegisterClassExW(param0 : *const WNDCLASSEXW) -> u16); - RegisterClassExW(core::mem::transmute(param0)) + RegisterClassExW(param0) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn RegisterClassW(lpwndclass: *const WNDCLASSW) -> u16 { windows_targets::link!("user32.dll" "system" fn RegisterClassW(lpwndclass : *const WNDCLASSW) -> u16); - RegisterClassW(core::mem::transmute(lpwndclass)) + RegisterClassW(lpwndclass) } #[inline] pub unsafe fn RegisterDeviceNotificationA(hrecipient: super::super::Foundation::HANDLE, notificationfilter: *const core::ffi::c_void, flags: REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn RegisterDeviceNotificationA(hrecipient : super::super::Foundation:: HANDLE, notificationfilter : *const core::ffi::c_void, flags : REGISTER_NOTIFICATION_FLAGS) -> HDEVNOTIFY); - let result__ = RegisterDeviceNotificationA(core::mem::transmute(hrecipient), core::mem::transmute(notificationfilter), core::mem::transmute(flags)); + let result__ = RegisterDeviceNotificationA(hrecipient, notificationfilter, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterDeviceNotificationW(hrecipient: super::super::Foundation::HANDLE, notificationfilter: *const core::ffi::c_void, flags: REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn RegisterDeviceNotificationW(hrecipient : super::super::Foundation:: HANDLE, notificationfilter : *const core::ffi::c_void, flags : REGISTER_NOTIFICATION_FLAGS) -> HDEVNOTIFY); - let result__ = RegisterDeviceNotificationW(core::mem::transmute(hrecipient), core::mem::transmute(notificationfilter), core::mem::transmute(flags)); + let result__ = RegisterDeviceNotificationW(hrecipient, notificationfilter, flags); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterForTooltipDismissNotification(hwnd: super::super::Foundation::HWND, tdflags: TOOLTIP_DISMISS_FLAGS) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn RegisterForTooltipDismissNotification(hwnd : super::super::Foundation:: HWND, tdflags : TOOLTIP_DISMISS_FLAGS) -> super::super::Foundation:: BOOL); - RegisterForTooltipDismissNotification(core::mem::transmute(hwnd), core::mem::transmute(tdflags)) + RegisterForTooltipDismissNotification(hwnd, tdflags) } #[inline] pub unsafe fn RegisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn RegisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - RegisterShellHookWindow(core::mem::transmute(hwnd)) + RegisterShellHookWindow(hwnd) } #[inline] pub unsafe fn RegisterWindowMessageA(lpstring: P0) -> u32 @@ -1961,7 +1961,7 @@ where #[inline] pub unsafe fn RemoveMenu(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn RemoveMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); - RemoveMenu(core::mem::transmute(hmenu), core::mem::transmute(uposition), core::mem::transmute(uflags)).ok() + RemoveMenu(hmenu, uposition, uflags).ok() } #[inline] pub unsafe fn RemovePropA(hwnd: super::super::Foundation::HWND, lpstring: P1) -> windows_core::Result @@ -1969,7 +1969,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RemovePropA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = RemovePropA(core::mem::transmute(hwnd), lpstring.param().abi()); + let result__ = RemovePropA(hwnd, lpstring.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1978,127 +1978,127 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RemovePropW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = RemovePropW(core::mem::transmute(hwnd), lpstring.param().abi()); + let result__ = RemovePropW(hwnd, lpstring.param().abi()); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn ReplyMessage(lresult: super::super::Foundation::LRESULT) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ReplyMessage(lresult : super::super::Foundation:: LRESULT) -> super::super::Foundation:: BOOL); - ReplyMessage(core::mem::transmute(lresult)) + ReplyMessage(lresult) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScrollDC(hdc: super::super::Graphics::Gdi::HDC, dx: i32, dy: i32, lprcscroll: Option<*const super::super::Foundation::RECT>, lprcclip: Option<*const super::super::Foundation::RECT>, hrgnupdate: Option, lprcupdate: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ScrollDC(hdc : super::super::Graphics::Gdi:: HDC, dx : i32, dy : i32, lprcscroll : *const super::super::Foundation:: RECT, lprcclip : *const super::super::Foundation:: RECT, hrgnupdate : super::super::Graphics::Gdi:: HRGN, lprcupdate : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - ScrollDC(core::mem::transmute(hdc), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(lprcscroll.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcclip.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcupdate.unwrap_or(core::mem::zeroed()))).ok() + ScrollDC(hdc, dx, dy, core::mem::transmute(lprcscroll.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcclip.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(lprcupdate.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn ScrollWindow(hwnd: super::super::Foundation::HWND, xamount: i32, yamount: i32, lprect: Option<*const super::super::Foundation::RECT>, lpcliprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ScrollWindow(hwnd : super::super::Foundation:: HWND, xamount : i32, yamount : i32, lprect : *const super::super::Foundation:: RECT, lpcliprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - ScrollWindow(core::mem::transmute(hwnd), core::mem::transmute(xamount), core::mem::transmute(yamount), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcliprect.unwrap_or(core::mem::zeroed()))).ok() + ScrollWindow(hwnd, xamount, yamount, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), core::mem::transmute(lpcliprect.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScrollWindowEx(hwnd: super::super::Foundation::HWND, dx: i32, dy: i32, prcscroll: Option<*const super::super::Foundation::RECT>, prcclip: Option<*const super::super::Foundation::RECT>, hrgnupdate: Option, prcupdate: Option<*mut super::super::Foundation::RECT>, flags: SCROLL_WINDOW_FLAGS) -> i32 { windows_targets::link!("user32.dll" "system" fn ScrollWindowEx(hwnd : super::super::Foundation:: HWND, dx : i32, dy : i32, prcscroll : *const super::super::Foundation:: RECT, prcclip : *const super::super::Foundation:: RECT, hrgnupdate : super::super::Graphics::Gdi:: HRGN, prcupdate : *mut super::super::Foundation:: RECT, flags : SCROLL_WINDOW_FLAGS) -> i32); - ScrollWindowEx(core::mem::transmute(hwnd), core::mem::transmute(dx), core::mem::transmute(dy), core::mem::transmute(prcscroll.unwrap_or(core::mem::zeroed())), core::mem::transmute(prcclip.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(prcupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags)) + ScrollWindowEx(hwnd, dx, dy, core::mem::transmute(prcscroll.unwrap_or(core::mem::zeroed())), core::mem::transmute(prcclip.unwrap_or(core::mem::zeroed())), core::mem::transmute(hrgnupdate.unwrap_or(core::mem::zeroed())), core::mem::transmute(prcupdate.unwrap_or(core::mem::zeroed())), flags) } #[inline] pub unsafe fn SendDlgItemMessageA(hdlg: super::super::Foundation::HWND, niddlgitem: i32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendDlgItemMessageA(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendDlgItemMessageA(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + SendDlgItemMessageA(hdlg, niddlgitem, msg, wparam, lparam) } #[inline] pub unsafe fn SendDlgItemMessageW(hdlg: super::super::Foundation::HWND, niddlgitem: i32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendDlgItemMessageW(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendDlgItemMessageW(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + SendDlgItemMessageW(hdlg, niddlgitem, msg, wparam, lparam) } #[inline] pub unsafe fn SendMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendMessageA(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)) + SendMessageA(hwnd, msg, wparam, lparam) } #[inline] pub unsafe fn SendMessageCallbackA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SendMessageCallbackA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, lpresultcallback : SENDASYNCPROC, dwdata : usize) -> super::super::Foundation:: BOOL); - SendMessageCallbackA(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(lpresultcallback), core::mem::transmute(dwdata)).ok() + SendMessageCallbackA(hwnd, msg, wparam, lparam, lpresultcallback, dwdata).ok() } #[inline] pub unsafe fn SendMessageCallbackW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SendMessageCallbackW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, lpresultcallback : SENDASYNCPROC, dwdata : usize) -> super::super::Foundation:: BOOL); - SendMessageCallbackW(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(lpresultcallback), core::mem::transmute(dwdata)).ok() + SendMessageCallbackW(hwnd, msg, wparam, lparam, lpresultcallback, dwdata).ok() } #[inline] pub unsafe fn SendMessageTimeoutA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, fuflags: SEND_MESSAGE_TIMEOUT_FLAGS, utimeout: u32, lpdwresult: Option<*mut usize>) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendMessageTimeoutA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, fuflags : SEND_MESSAGE_TIMEOUT_FLAGS, utimeout : u32, lpdwresult : *mut usize) -> super::super::Foundation:: LRESULT); - SendMessageTimeoutA(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(fuflags), core::mem::transmute(utimeout), core::mem::transmute(lpdwresult.unwrap_or(core::mem::zeroed()))) + SendMessageTimeoutA(hwnd, msg, wparam, lparam, fuflags, utimeout, core::mem::transmute(lpdwresult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SendMessageTimeoutW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, fuflags: SEND_MESSAGE_TIMEOUT_FLAGS, utimeout: u32, lpdwresult: Option<*mut usize>) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendMessageTimeoutW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, fuflags : SEND_MESSAGE_TIMEOUT_FLAGS, utimeout : u32, lpdwresult : *mut usize) -> super::super::Foundation:: LRESULT); - SendMessageTimeoutW(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), core::mem::transmute(fuflags), core::mem::transmute(utimeout), core::mem::transmute(lpdwresult.unwrap_or(core::mem::zeroed()))) + SendMessageTimeoutW(hwnd, msg, wparam, lparam, fuflags, utimeout, core::mem::transmute(lpdwresult.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SendMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: Option, lparam: Option) -> super::super::Foundation::LRESULT { windows_targets::link!("user32.dll" "system" fn SendMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendMessageW(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) + SendMessageW(hwnd, msg, core::mem::transmute(wparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(lparam.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SendNotifyMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SendNotifyMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - SendNotifyMessageA(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + SendNotifyMessageA(hwnd, msg, wparam, lparam).ok() } #[inline] pub unsafe fn SendNotifyMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SendNotifyMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - SendNotifyMessageW(core::mem::transmute(hwnd), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam)).ok() + SendNotifyMessageW(hwnd, msg, wparam, lparam).ok() } #[inline] pub unsafe fn SetAdditionalForegroundBoostProcesses(toplevelwindow: super::super::Foundation::HWND, processhandlearray: &[super::super::Foundation::HANDLE]) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SetAdditionalForegroundBoostProcesses(toplevelwindow : super::super::Foundation:: HWND, processhandlecount : u32, processhandlearray : *const super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetAdditionalForegroundBoostProcesses(core::mem::transmute(toplevelwindow), processhandlearray.len().try_into().unwrap(), core::mem::transmute(processhandlearray.as_ptr())) + SetAdditionalForegroundBoostProcesses(toplevelwindow, processhandlearray.len().try_into().unwrap(), core::mem::transmute(processhandlearray.as_ptr())) } #[inline] pub unsafe fn SetCaretBlinkTime(umseconds: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetCaretBlinkTime(umseconds : u32) -> super::super::Foundation:: BOOL); - SetCaretBlinkTime(core::mem::transmute(umseconds)).ok() + SetCaretBlinkTime(umseconds).ok() } #[inline] pub unsafe fn SetCaretPos(x: i32, y: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetCaretPos(x : i32, y : i32) -> super::super::Foundation:: BOOL); - SetCaretPos(core::mem::transmute(x), core::mem::transmute(y)).ok() + SetCaretPos(x, y).ok() } #[inline] pub unsafe fn SetClassLongA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn SetClassLongA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : i32) -> u32); - SetClassLongA(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetClassLongA(hwnd, nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SetClassLongPtrA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: isize) -> usize { windows_targets::link!("user32.dll" "system" fn SetClassLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : isize) -> usize); - SetClassLongPtrA(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetClassLongPtrA(hwnd, nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SetClassLongPtrW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: isize) -> usize { windows_targets::link!("user32.dll" "system" fn SetClassLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : isize) -> usize); - SetClassLongPtrW(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetClassLongPtrW(hwnd, nindex, dwnewlong) } #[inline] pub unsafe fn SetClassLongW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: i32) -> u32 { windows_targets::link!("user32.dll" "system" fn SetClassLongW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : i32) -> u32); - SetClassLongW(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetClassLongW(hwnd, nindex, dwnewlong) } #[inline] pub unsafe fn SetClassWord(hwnd: super::super::Foundation::HWND, nindex: i32, wnewword: u16) -> u16 { windows_targets::link!("user32.dll" "system" fn SetClassWord(hwnd : super::super::Foundation:: HWND, nindex : i32, wnewword : u16) -> u16); - SetClassWord(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(wnewword)) + SetClassWord(hwnd, nindex, wnewword) } #[inline] pub unsafe fn SetCoalescableTimer(hwnd: Option, nidevent: usize, uelapse: u32, lptimerfunc: Option, utolerancedelay: u32) -> usize { windows_targets::link!("user32.dll" "system" fn SetCoalescableTimer(hwnd : super::super::Foundation:: HWND, nidevent : usize, uelapse : u32, lptimerfunc : TIMERPROC, utolerancedelay : u32) -> usize); - SetCoalescableTimer(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(nidevent), core::mem::transmute(uelapse), core::mem::transmute(lptimerfunc.unwrap_or(core::mem::zeroed())), core::mem::transmute(utolerancedelay)) + SetCoalescableTimer(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), nidevent, uelapse, core::mem::transmute(lptimerfunc.unwrap_or(core::mem::zeroed())), utolerancedelay) } #[inline] pub unsafe fn SetCursor(hcursor: Option) -> HCURSOR { @@ -2108,17 +2108,17 @@ pub unsafe fn SetCursor(hcursor: Option) -> HCURSOR { #[inline] pub unsafe fn SetCursorPos(x: i32, y: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetCursorPos(x : i32, y : i32) -> super::super::Foundation:: BOOL); - SetCursorPos(core::mem::transmute(x), core::mem::transmute(y)).ok() + SetCursorPos(x, y).ok() } #[inline] pub unsafe fn SetDebugErrorLevel(dwlevel: u32) { windows_targets::link!("user32.dll" "system" fn SetDebugErrorLevel(dwlevel : u32)); - SetDebugErrorLevel(core::mem::transmute(dwlevel)) + SetDebugErrorLevel(dwlevel) } #[inline] pub unsafe fn SetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, uvalue: u32, bsigned: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetDlgItemInt(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, uvalue : u32, bsigned : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetDlgItemInt(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), core::mem::transmute(uvalue), bsigned.into()).ok() + SetDlgItemInt(hdlg, niddlgitem, uvalue, bsigned.into()).ok() } #[inline] pub unsafe fn SetDlgItemTextA(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: P2) -> windows_core::Result<()> @@ -2126,7 +2126,7 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetDlgItemTextA(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetDlgItemTextA(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), lpstring.param().abi()).ok() + SetDlgItemTextA(hdlg, niddlgitem, lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetDlgItemTextW(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: P2) -> windows_core::Result<()> @@ -2134,72 +2134,72 @@ where P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetDlgItemTextW(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetDlgItemTextW(core::mem::transmute(hdlg), core::mem::transmute(niddlgitem), lpstring.param().abi()).ok() + SetDlgItemTextW(hdlg, niddlgitem, lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetForegroundWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SetForegroundWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - SetForegroundWindow(core::mem::transmute(hwnd)) + SetForegroundWindow(hwnd) } #[inline] pub unsafe fn SetLayeredWindowAttributes(hwnd: super::super::Foundation::HWND, crkey: super::super::Foundation::COLORREF, balpha: u8, dwflags: LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetLayeredWindowAttributes(hwnd : super::super::Foundation:: HWND, crkey : super::super::Foundation:: COLORREF, balpha : u8, dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> super::super::Foundation:: BOOL); - SetLayeredWindowAttributes(core::mem::transmute(hwnd), core::mem::transmute(crkey), core::mem::transmute(balpha), core::mem::transmute(dwflags)).ok() + SetLayeredWindowAttributes(hwnd, crkey, balpha, dwflags).ok() } #[inline] pub unsafe fn SetMenu(hwnd: super::super::Foundation::HWND, hmenu: Option) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenu(hwnd : super::super::Foundation:: HWND, hmenu : HMENU) -> super::super::Foundation:: BOOL); - SetMenu(core::mem::transmute(hwnd), core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed()))).ok() + SetMenu(hwnd, core::mem::transmute(hmenu.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetMenuDefaultItem(hmenu: HMENU, uitem: u32, fbypos: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenuDefaultItem(hmenu : HMENU, uitem : u32, fbypos : u32) -> super::super::Foundation:: BOOL); - SetMenuDefaultItem(core::mem::transmute(hmenu), core::mem::transmute(uitem), core::mem::transmute(fbypos)).ok() + SetMenuDefaultItem(hmenu, uitem, fbypos).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuInfo(param0: HMENU, param1: *const MENUINFO) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenuInfo(param0 : HMENU, param1 : *const MENUINFO) -> super::super::Foundation:: BOOL); - SetMenuInfo(core::mem::transmute(param0), core::mem::transmute(param1)).ok() + SetMenuInfo(param0, param1).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemBitmaps(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, hbitmapunchecked: Option, hbitmapchecked: Option) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenuItemBitmaps(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP, hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP) -> super::super::Foundation:: BOOL); - SetMenuItemBitmaps(core::mem::transmute(hmenu), core::mem::transmute(uposition), core::mem::transmute(uflags), core::mem::transmute(hbitmapunchecked.unwrap_or(core::mem::zeroed())), core::mem::transmute(hbitmapchecked.unwrap_or(core::mem::zeroed()))).ok() + SetMenuItemBitmaps(hmenu, uposition, uflags, core::mem::transmute(hbitmapunchecked.unwrap_or(core::mem::zeroed())), core::mem::transmute(hbitmapchecked.unwrap_or(core::mem::zeroed()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemInfoA(hmenu: HMENU, item: u32, fbypositon: bool, lpmii: *const MENUITEMINFOA) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenuItemInfoA(hmenu : HMENU, item : u32, fbypositon : super::super::Foundation:: BOOL, lpmii : *const MENUITEMINFOA) -> super::super::Foundation:: BOOL); - SetMenuItemInfoA(core::mem::transmute(hmenu), core::mem::transmute(item), fbypositon.into(), core::mem::transmute(lpmii)).ok() + SetMenuItemInfoA(hmenu, item, fbypositon.into(), lpmii).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemInfoW(hmenu: HMENU, item: u32, fbypositon: bool, lpmii: *const MENUITEMINFOW) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetMenuItemInfoW(hmenu : HMENU, item : u32, fbypositon : super::super::Foundation:: BOOL, lpmii : *const MENUITEMINFOW) -> super::super::Foundation:: BOOL); - SetMenuItemInfoW(core::mem::transmute(hmenu), core::mem::transmute(item), fbypositon.into(), core::mem::transmute(lpmii)).ok() + SetMenuItemInfoW(hmenu, item, fbypositon.into(), lpmii).ok() } #[inline] pub unsafe fn SetMessageExtraInfo(lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LPARAM { windows_targets::link!("user32.dll" "system" fn SetMessageExtraInfo(lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LPARAM); - SetMessageExtraInfo(core::mem::transmute(lparam)) + SetMessageExtraInfo(lparam) } #[inline] pub unsafe fn SetMessageQueue(cmessagesmax: i32) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn SetMessageQueue(cmessagesmax : i32) -> super::super::Foundation:: BOOL); - SetMessageQueue(core::mem::transmute(cmessagesmax)) + SetMessageQueue(cmessagesmax) } #[inline] pub unsafe fn SetParent(hwndchild: super::super::Foundation::HWND, hwndnewparent: Option) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn SetParent(hwndchild : super::super::Foundation:: HWND, hwndnewparent : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - let result__ = SetParent(core::mem::transmute(hwndchild), core::mem::transmute(hwndnewparent.unwrap_or(core::mem::zeroed()))); + let result__ = SetParent(hwndchild, core::mem::transmute(hwndnewparent.unwrap_or(core::mem::zeroed()))); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetPhysicalCursorPos(x: i32, y: i32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetPhysicalCursorPos(x : i32, y : i32) -> super::super::Foundation:: BOOL); - SetPhysicalCursorPos(core::mem::transmute(x), core::mem::transmute(y)).ok() + SetPhysicalCursorPos(x, y).ok() } #[inline] pub unsafe fn SetProcessDPIAware() -> super::super::Foundation::BOOL { @@ -2209,7 +2209,7 @@ pub unsafe fn SetProcessDPIAware() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn SetProcessDefaultLayout(dwdefaultlayout: u32) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetProcessDefaultLayout(dwdefaultlayout : u32) -> super::super::Foundation:: BOOL); - SetProcessDefaultLayout(core::mem::transmute(dwdefaultlayout)).ok() + SetProcessDefaultLayout(dwdefaultlayout).ok() } #[inline] pub unsafe fn SetPropA(hwnd: super::super::Foundation::HWND, lpstring: P1, hdata: Option) -> windows_core::Result<()> @@ -2217,7 +2217,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetPropA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR, hdata : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetPropA(core::mem::transmute(hwnd), lpstring.param().abi(), core::mem::transmute(hdata.unwrap_or(core::mem::zeroed()))).ok() + SetPropA(hwnd, lpstring.param().abi(), core::mem::transmute(hdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetPropW(hwnd: super::super::Foundation::HWND, lpstring: P1, hdata: Option) -> windows_core::Result<()> @@ -2225,33 +2225,33 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetPropW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR, hdata : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetPropW(core::mem::transmute(hwnd), lpstring.param().abi(), core::mem::transmute(hdata.unwrap_or(core::mem::zeroed()))).ok() + SetPropW(hwnd, lpstring.param().abi(), core::mem::transmute(hdata.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn SetSystemCursor(hcur: HCURSOR, id: SYSTEM_CURSOR_ID) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetSystemCursor(hcur : HCURSOR, id : SYSTEM_CURSOR_ID) -> super::super::Foundation:: BOOL); - SetSystemCursor(core::mem::transmute(hcur), core::mem::transmute(id)).ok() + SetSystemCursor(hcur, id).ok() } #[inline] pub unsafe fn SetTimer(hwnd: Option, nidevent: usize, uelapse: u32, lptimerfunc: Option) -> usize { windows_targets::link!("user32.dll" "system" fn SetTimer(hwnd : super::super::Foundation:: HWND, nidevent : usize, uelapse : u32, lptimerfunc : TIMERPROC) -> usize); - SetTimer(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), core::mem::transmute(nidevent), core::mem::transmute(uelapse), core::mem::transmute(lptimerfunc.unwrap_or(core::mem::zeroed()))) + SetTimer(core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), nidevent, uelapse, core::mem::transmute(lptimerfunc.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SetWindowDisplayAffinity(hwnd: super::super::Foundation::HWND, dwaffinity: WINDOW_DISPLAY_AFFINITY) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, dwaffinity : WINDOW_DISPLAY_AFFINITY) -> super::super::Foundation:: BOOL); - SetWindowDisplayAffinity(core::mem::transmute(hwnd), core::mem::transmute(dwaffinity)).ok() + SetWindowDisplayAffinity(hwnd, dwaffinity).ok() } #[inline] pub unsafe fn SetWindowLongA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn SetWindowLongA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : i32) -> i32); - SetWindowLongA(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetWindowLongA(hwnd, nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn SetWindowLongPtrA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: isize) -> isize { windows_targets::link!("user32.dll" "system" fn SetWindowLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : isize) -> isize); - SetWindowLongPtrA(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetWindowLongPtrA(hwnd, nindex, dwnewlong) } #[cfg(target_pointer_width = "32")] pub use SetWindowLongA as SetWindowLongPtrA; @@ -2259,24 +2259,24 @@ pub use SetWindowLongA as SetWindowLongPtrA; #[inline] pub unsafe fn SetWindowLongPtrW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: isize) -> isize { windows_targets::link!("user32.dll" "system" fn SetWindowLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : isize) -> isize); - SetWindowLongPtrW(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetWindowLongPtrW(hwnd, nindex, dwnewlong) } #[cfg(target_pointer_width = "32")] pub use SetWindowLongW as SetWindowLongPtrW; #[inline] pub unsafe fn SetWindowLongW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn SetWindowLongW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : i32) -> i32); - SetWindowLongW(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(dwnewlong)) + SetWindowLongW(hwnd, nindex, dwnewlong) } #[inline] pub unsafe fn SetWindowPlacement(hwnd: super::super::Foundation::HWND, lpwndpl: *const WINDOWPLACEMENT) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *const WINDOWPLACEMENT) -> super::super::Foundation:: BOOL); - SetWindowPlacement(core::mem::transmute(hwnd), core::mem::transmute(lpwndpl)).ok() + SetWindowPlacement(hwnd, lpwndpl).ok() } #[inline] pub unsafe fn SetWindowPos(hwnd: super::super::Foundation::HWND, hwndinsertafter: Option, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SetWindowPos(hwnd : super::super::Foundation:: HWND, hwndinsertafter : super::super::Foundation:: HWND, x : i32, y : i32, cx : i32, cy : i32, uflags : SET_WINDOW_POS_FLAGS) -> super::super::Foundation:: BOOL); - SetWindowPos(core::mem::transmute(hwnd), core::mem::transmute(hwndinsertafter.unwrap_or(core::mem::zeroed())), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(uflags)).ok() + SetWindowPos(hwnd, core::mem::transmute(hwndinsertafter.unwrap_or(core::mem::zeroed())), x, y, cx, cy, uflags).ok() } #[inline] pub unsafe fn SetWindowTextA(hwnd: super::super::Foundation::HWND, lpstring: P1) -> windows_core::Result<()> @@ -2284,7 +2284,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowTextA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetWindowTextA(core::mem::transmute(hwnd), lpstring.param().abi()).ok() + SetWindowTextA(hwnd, lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetWindowTextW(hwnd: super::super::Foundation::HWND, lpstring: P1) -> windows_core::Result<()> @@ -2292,34 +2292,34 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowTextW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetWindowTextW(core::mem::transmute(hwnd), lpstring.param().abi()).ok() + SetWindowTextW(hwnd, lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetWindowWord(hwnd: super::super::Foundation::HWND, nindex: i32, wnewword: u16) -> u16 { windows_targets::link!("user32.dll" "system" fn SetWindowWord(hwnd : super::super::Foundation:: HWND, nindex : i32, wnewword : u16) -> u16); - SetWindowWord(core::mem::transmute(hwnd), core::mem::transmute(nindex), core::mem::transmute(wnewword)) + SetWindowWord(hwnd, nindex, wnewword) } #[inline] pub unsafe fn SetWindowsHookA(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOOK { windows_targets::link!("user32.dll" "system" fn SetWindowsHookA(nfiltertype : i32, pfnfilterproc : HOOKPROC) -> HHOOK); - SetWindowsHookA(core::mem::transmute(nfiltertype), core::mem::transmute(pfnfilterproc)) + SetWindowsHookA(nfiltertype, pfnfilterproc) } #[inline] pub unsafe fn SetWindowsHookExA(idhook: WINDOWS_HOOK_ID, lpfn: HOOKPROC, hmod: Option, dwthreadid: u32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn SetWindowsHookExA(idhook : WINDOWS_HOOK_ID, lpfn : HOOKPROC, hmod : super::super::Foundation:: HINSTANCE, dwthreadid : u32) -> HHOOK); - let result__ = SetWindowsHookExA(core::mem::transmute(idhook), core::mem::transmute(lpfn), core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwthreadid)); + let result__ = SetWindowsHookExA(idhook, lpfn, core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), dwthreadid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetWindowsHookExW(idhook: WINDOWS_HOOK_ID, lpfn: HOOKPROC, hmod: Option, dwthreadid: u32) -> windows_core::Result { windows_targets::link!("user32.dll" "system" fn SetWindowsHookExW(idhook : WINDOWS_HOOK_ID, lpfn : HOOKPROC, hmod : super::super::Foundation:: HINSTANCE, dwthreadid : u32) -> HHOOK); - let result__ = SetWindowsHookExW(core::mem::transmute(idhook), core::mem::transmute(lpfn), core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwthreadid)); + let result__ = SetWindowsHookExW(idhook, lpfn, core::mem::transmute(hmod.unwrap_or(core::mem::zeroed())), dwthreadid); (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetWindowsHookW(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOOK { windows_targets::link!("user32.dll" "system" fn SetWindowsHookW(nfiltertype : i32, pfnfilterproc : HOOKPROC) -> HHOOK); - SetWindowsHookW(core::mem::transmute(nfiltertype), core::mem::transmute(pfnfilterproc)) + SetWindowsHookW(nfiltertype, pfnfilterproc) } #[inline] pub unsafe fn ShowCaret(hwnd: Option) -> windows_core::Result<()> { @@ -2334,17 +2334,17 @@ pub unsafe fn ShowCursor(bshow: bool) -> i32 { #[inline] pub unsafe fn ShowOwnedPopups(hwnd: super::super::Foundation::HWND, fshow: bool) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn ShowOwnedPopups(hwnd : super::super::Foundation:: HWND, fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ShowOwnedPopups(core::mem::transmute(hwnd), fshow.into()).ok() + ShowOwnedPopups(hwnd, fshow.into()).ok() } #[inline] pub unsafe fn ShowWindow(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ShowWindow(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> super::super::Foundation:: BOOL); - ShowWindow(core::mem::transmute(hwnd), core::mem::transmute(ncmdshow)) + ShowWindow(hwnd, ncmdshow) } #[inline] pub unsafe fn ShowWindowAsync(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn ShowWindowAsync(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> super::super::Foundation:: BOOL); - ShowWindowAsync(core::mem::transmute(hwnd), core::mem::transmute(ncmdshow)) + ShowWindowAsync(hwnd, ncmdshow) } #[inline] pub unsafe fn SoundSentry() -> super::super::Foundation::BOOL { @@ -2354,62 +2354,62 @@ pub unsafe fn SoundSentry() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn SwitchToThisWindow(hwnd: super::super::Foundation::HWND, funknown: bool) { windows_targets::link!("user32.dll" "system" fn SwitchToThisWindow(hwnd : super::super::Foundation:: HWND, funknown : super::super::Foundation:: BOOL)); - SwitchToThisWindow(core::mem::transmute(hwnd), funknown.into()) + SwitchToThisWindow(hwnd, funknown.into()) } #[inline] pub unsafe fn SystemParametersInfoA(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uiparam: u32, pvparam: Option<*mut core::ffi::c_void>, fwinini: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SystemParametersInfoA(uiaction : SYSTEM_PARAMETERS_INFO_ACTION, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); - SystemParametersInfoA(core::mem::transmute(uiaction), core::mem::transmute(uiparam), core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(fwinini)).ok() + SystemParametersInfoA(uiaction, uiparam, core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), fwinini).ok() } #[inline] pub unsafe fn SystemParametersInfoW(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uiparam: u32, pvparam: Option<*mut core::ffi::c_void>, fwinini: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn SystemParametersInfoW(uiaction : SYSTEM_PARAMETERS_INFO_ACTION, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); - SystemParametersInfoW(core::mem::transmute(uiaction), core::mem::transmute(uiparam), core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), core::mem::transmute(fwinini)).ok() + SystemParametersInfoW(uiaction, uiparam, core::mem::transmute(pvparam.unwrap_or(core::mem::zeroed())), fwinini).ok() } #[inline] pub unsafe fn TileWindows(hwndparent: Option, whow: TILE_WINDOWS_HOW, lprect: Option<*const super::super::Foundation::RECT>, lpkids: Option<&[super::super::Foundation::HWND]>) -> u16 { windows_targets::link!("user32.dll" "system" fn TileWindows(hwndparent : super::super::Foundation:: HWND, whow : TILE_WINDOWS_HOW, lprect : *const super::super::Foundation:: RECT, ckids : u32, lpkids : *const super::super::Foundation:: HWND) -> u16); - TileWindows(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), core::mem::transmute(whow), core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpkids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + TileWindows(core::mem::transmute(hwndparent.unwrap_or(core::mem::zeroed())), whow, core::mem::transmute(lprect.unwrap_or(core::mem::zeroed())), lpkids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn TrackPopupMenu(hmenu: HMENU, uflags: TRACK_POPUP_MENU_FLAGS, x: i32, y: i32, nreserved: Option, hwnd: super::super::Foundation::HWND, prcrect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn TrackPopupMenu(hmenu : HMENU, uflags : TRACK_POPUP_MENU_FLAGS, x : i32, y : i32, nreserved : i32, hwnd : super::super::Foundation:: HWND, prcrect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - TrackPopupMenu(core::mem::transmute(hmenu), core::mem::transmute(uflags), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(nreserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(hwnd), core::mem::transmute(prcrect.unwrap_or(core::mem::zeroed()))) + TrackPopupMenu(hmenu, uflags, x, y, core::mem::transmute(nreserved.unwrap_or(core::mem::zeroed())), hwnd, core::mem::transmute(prcrect.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TrackPopupMenuEx(hmenu: HMENU, uflags: u32, x: i32, y: i32, hwnd: super::super::Foundation::HWND, lptpm: Option<*const TPMPARAMS>) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn TrackPopupMenuEx(hmenu : HMENU, uflags : u32, x : i32, y : i32, hwnd : super::super::Foundation:: HWND, lptpm : *const TPMPARAMS) -> super::super::Foundation:: BOOL); - TrackPopupMenuEx(core::mem::transmute(hmenu), core::mem::transmute(uflags), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(hwnd), core::mem::transmute(lptpm.unwrap_or(core::mem::zeroed()))) + TrackPopupMenuEx(hmenu, uflags, x, y, hwnd, core::mem::transmute(lptpm.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn TranslateAcceleratorA(hwnd: super::super::Foundation::HWND, hacctable: HACCEL, lpmsg: *const MSG) -> i32 { windows_targets::link!("user32.dll" "system" fn TranslateAcceleratorA(hwnd : super::super::Foundation:: HWND, hacctable : HACCEL, lpmsg : *const MSG) -> i32); - TranslateAcceleratorA(core::mem::transmute(hwnd), core::mem::transmute(hacctable), core::mem::transmute(lpmsg)) + TranslateAcceleratorA(hwnd, hacctable, lpmsg) } #[inline] pub unsafe fn TranslateAcceleratorW(hwnd: super::super::Foundation::HWND, hacctable: HACCEL, lpmsg: *const MSG) -> i32 { windows_targets::link!("user32.dll" "system" fn TranslateAcceleratorW(hwnd : super::super::Foundation:: HWND, hacctable : HACCEL, lpmsg : *const MSG) -> i32); - TranslateAcceleratorW(core::mem::transmute(hwnd), core::mem::transmute(hacctable), core::mem::transmute(lpmsg)) + TranslateAcceleratorW(hwnd, hacctable, lpmsg) } #[inline] pub unsafe fn TranslateMDISysAccel(hwndclient: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn TranslateMDISysAccel(hwndclient : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - TranslateMDISysAccel(core::mem::transmute(hwndclient), core::mem::transmute(lpmsg)) + TranslateMDISysAccel(hwndclient, lpmsg) } #[inline] pub unsafe fn TranslateMessage(lpmsg: *const MSG) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn TranslateMessage(lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - TranslateMessage(core::mem::transmute(lpmsg)) + TranslateMessage(lpmsg) } #[inline] pub unsafe fn UnhookWindowsHook(ncode: i32, pfnfilterproc: HOOKPROC) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UnhookWindowsHook(ncode : i32, pfnfilterproc : HOOKPROC) -> super::super::Foundation:: BOOL); - UnhookWindowsHook(core::mem::transmute(ncode), core::mem::transmute(pfnfilterproc)) + UnhookWindowsHook(ncode, pfnfilterproc) } #[inline] pub unsafe fn UnhookWindowsHookEx(hhk: HHOOK) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnhookWindowsHookEx(hhk : HHOOK) -> super::super::Foundation:: BOOL); - UnhookWindowsHookEx(core::mem::transmute(hhk)).ok() + UnhookWindowsHookEx(hhk).ok() } #[inline] pub unsafe fn UnregisterClassA(lpclassname: P0, hinstance: Option) -> windows_core::Result<()> @@ -2430,19 +2430,19 @@ where #[inline] pub unsafe fn UnregisterDeviceNotification(handle: HDEVNOTIFY) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UnregisterDeviceNotification(handle : HDEVNOTIFY) -> super::super::Foundation:: BOOL); - UnregisterDeviceNotification(core::mem::transmute(handle)).ok() + UnregisterDeviceNotification(handle).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn UpdateLayeredWindow(hwnd: super::super::Foundation::HWND, hdcdst: Option, pptdst: Option<*const super::super::Foundation::POINT>, psize: Option<*const super::super::Foundation::SIZE>, hdcsrc: Option, pptsrc: Option<*const super::super::Foundation::POINT>, crkey: super::super::Foundation::COLORREF, pblend: Option<*const super::super::Graphics::Gdi::BLENDFUNCTION>, dwflags: UPDATE_LAYERED_WINDOW_FLAGS) -> windows_core::Result<()> { windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindow(hwnd : super::super::Foundation:: HWND, hdcdst : super::super::Graphics::Gdi:: HDC, pptdst : *const super::super::Foundation:: POINT, psize : *const super::super::Foundation:: SIZE, hdcsrc : super::super::Graphics::Gdi:: HDC, pptsrc : *const super::super::Foundation:: POINT, crkey : super::super::Foundation:: COLORREF, pblend : *const super::super::Graphics::Gdi:: BLENDFUNCTION, dwflags : UPDATE_LAYERED_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); - UpdateLayeredWindow(core::mem::transmute(hwnd), core::mem::transmute(hdcdst.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptdst.unwrap_or(core::mem::zeroed())), core::mem::transmute(psize.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdcsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(crkey), core::mem::transmute(pblend.unwrap_or(core::mem::zeroed())), core::mem::transmute(dwflags)).ok() + UpdateLayeredWindow(hwnd, core::mem::transmute(hdcdst.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptdst.unwrap_or(core::mem::zeroed())), core::mem::transmute(psize.unwrap_or(core::mem::zeroed())), core::mem::transmute(hdcsrc.unwrap_or(core::mem::zeroed())), core::mem::transmute(pptsrc.unwrap_or(core::mem::zeroed())), crkey, core::mem::transmute(pblend.unwrap_or(core::mem::zeroed())), dwflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn UpdateLayeredWindowIndirect(hwnd: super::super::Foundation::HWND, pulwinfo: *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation::BOOL { windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindowIndirect(hwnd : super::super::Foundation:: HWND, pulwinfo : *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation:: BOOL); - UpdateLayeredWindowIndirect(core::mem::transmute(hwnd), core::mem::transmute(pulwinfo)) + UpdateLayeredWindowIndirect(hwnd, pulwinfo) } #[inline] pub unsafe fn WaitMessage() -> windows_core::Result<()> { @@ -2481,7 +2481,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn wvsprintfA(param0 : windows_core::PSTR, param1 : windows_core::PCSTR, arglist : *const i8) -> i32); - wvsprintfA(core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(arglist)) + wvsprintfA(core::mem::transmute(param0), param1.param().abi(), arglist) } #[inline] pub unsafe fn wvsprintfW(param0: windows_core::PWSTR, param1: P1, arglist: *const i8) -> i32 @@ -2489,7 +2489,7 @@ where P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn wvsprintfW(param0 : windows_core::PWSTR, param1 : windows_core::PCWSTR, arglist : *const i8) -> i32); - wvsprintfW(core::mem::transmute(param0), param1.param().abi(), core::mem::transmute(arglist)) + wvsprintfW(core::mem::transmute(param0), param1.param().abi(), arglist) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs index cb6e6a3d7c..e68b363be1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs @@ -13,7 +13,7 @@ impl IMILBitmapEffect { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), uiindex, pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParentEffect(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -24,7 +24,7 @@ impl IMILBitmapEffect { where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputSource)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), pbitmapsource.param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputSource)(windows_core::Interface::as_raw(self), uiindex, pbitmapsource.param().abi()).ok() } } #[repr(C)] @@ -91,11 +91,11 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnections, windows_cor impl IMILBitmapEffectConnections { pub unsafe fn GetInputConnector(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputConnector)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputConnector)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputConnector(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputConnector)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputConnector)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -154,11 +154,11 @@ impl IMILBitmapEffectConnectionsInfo { } pub unsafe fn GetInputConnectorInfo(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputConnectorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputConnectorInfo)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputConnectorInfo(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputConnectorInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputConnectorInfo)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -308,7 +308,7 @@ impl IMILBitmapEffectConnectorInfo { } pub unsafe fn GetFormat(&self, ulindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(ulindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), ulindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -393,7 +393,7 @@ impl IMILBitmapEffectEvents { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DirtyRegion)(windows_core::Interface::as_raw(self), peffect.param().abi(), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).DirtyRegion)(windows_core::Interface::as_raw(self), peffect.param().abi(), prect).ok() } } #[repr(C)] @@ -432,7 +432,7 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectFactory, windows_core::I impl IMILBitmapEffectFactory { pub unsafe fn CreateEffect(&self, pguideffect: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), core::mem::transmute(pguideffect), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), pguideffect, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateContext(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -504,11 +504,11 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectGroup, windows_core::IUn impl IMILBitmapEffectGroup { pub unsafe fn GetInteriorInputConnector(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInteriorInputConnector)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInteriorInputConnector)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInteriorOutputConnector(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInteriorOutputConnector)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInteriorOutputConnector)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Add(&self, peffect: P0) -> windows_core::Result<()> where @@ -654,10 +654,10 @@ impl IMILBitmapEffectImpl { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetInputSource(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputSource)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputSource)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInputSourceBounds(&self, uiindex: u32, prect: *mut MilRectD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetInputSourceBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).GetInputSourceBounds)(windows_core::Interface::as_raw(self), uiindex, core::mem::transmute(prect)).ok() } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetInputBitmapSource(&self, uiindex: u32, prendercontext: P1, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result @@ -665,7 +665,7 @@ impl IMILBitmapEffectImpl { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputBitmapSource)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), prendercontext.param().abi(), core::mem::transmute(pfmodifyinplace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInputBitmapSource)(windows_core::Interface::as_raw(self), uiindex, prendercontext.param().abi(), core::mem::transmute(pfmodifyinplace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetOutputBitmapSource(&self, uiindex: u32, prendercontext: P1, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result @@ -673,7 +673,7 @@ impl IMILBitmapEffectImpl { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputBitmapSource)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), prendercontext.param().abi(), core::mem::transmute(pfmodifyinplace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutputBitmapSource)(windows_core::Interface::as_raw(self), uiindex, prendercontext.param().abi(), core::mem::transmute(pfmodifyinplace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Initialize(&self, pinner: P0) -> windows_core::Result<()> where @@ -926,7 +926,7 @@ impl IMILBitmapEffectOutputConnector { } pub unsafe fn GetConnection(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConnection)(windows_core::Interface::as_raw(self), uiindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1028,31 +1028,31 @@ impl IMILBitmapEffectPrimitive { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), pcontext.param().abi(), core::mem::transmute(pfmodifyinplace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), uiindex, pcontext.param().abi(), core::mem::transmute(pfmodifyinplace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TransformPoint(&self, uiindex: u32, p: *mut MilPoint2D, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: P3, pfpointtransformed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).TransformPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), core::mem::transmute(p), core::mem::transmute(fforwardtransform), pcontext.param().abi(), core::mem::transmute(pfpointtransformed)).ok() + (windows_core::Interface::vtable(self).TransformPoint)(windows_core::Interface::as_raw(self), uiindex, core::mem::transmute(p), fforwardtransform, pcontext.param().abi(), core::mem::transmute(pfpointtransformed)).ok() } pub unsafe fn TransformRect(&self, uiindex: u32, p: *mut MilRectD, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: P3) -> windows_core::Result<()> where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).TransformRect)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), core::mem::transmute(p), core::mem::transmute(fforwardtransform), pcontext.param().abi()).ok() + (windows_core::Interface::vtable(self).TransformRect)(windows_core::Interface::as_raw(self), uiindex, core::mem::transmute(p), fforwardtransform, pcontext.param().abi()).ok() } pub unsafe fn HasAffineTransform(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HasAffineTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasAffineTransform)(windows_core::Interface::as_raw(self), uiindex, &mut result__).map(|| result__) } pub unsafe fn HasInverseTransform(&self, uiindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).HasInverseTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasInverseTransform)(windows_core::Interface::as_raw(self), uiindex, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dwm")] pub unsafe fn GetAffineMatrix(&self, uiindex: u32, pmatrix: *mut super::super::Graphics::Dwm::MilMatrix3x2D) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetAffineMatrix)(windows_core::Interface::as_raw(self), core::mem::transmute(uiindex), core::mem::transmute(pmatrix)).ok() + (windows_core::Interface::vtable(self).GetAffineMatrix)(windows_core::Interface::as_raw(self), uiindex, core::mem::transmute(pmatrix)).ok() } } #[repr(C)] @@ -1145,11 +1145,11 @@ windows_core::imp::define_interface!(IMILBitmapEffectPrimitiveImpl, IMILBitmapEf windows_core::imp::interface_hierarchy!(IMILBitmapEffectPrimitiveImpl, windows_core::IUnknown); impl IMILBitmapEffectPrimitiveImpl { pub unsafe fn IsDirty(&self, uioutputindex: u32, pfdirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { - (windows_core::Interface::vtable(self).IsDirty)(windows_core::Interface::as_raw(self), core::mem::transmute(uioutputindex), core::mem::transmute(pfdirty)) + (windows_core::Interface::vtable(self).IsDirty)(windows_core::Interface::as_raw(self), uioutputindex, core::mem::transmute(pfdirty)) } pub unsafe fn IsVolatile(&self, uioutputindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).IsVolatile)(windows_core::Interface::as_raw(self), core::mem::transmute(uioutputindex), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsVolatile)(windows_core::Interface::as_raw(self), uioutputindex, &mut result__).map(|| result__) } } #[repr(C)] @@ -1189,29 +1189,29 @@ windows_core::imp::define_interface!(IMILBitmapEffectRenderContext, IMILBitmapEf windows_core::imp::interface_hierarchy!(IMILBitmapEffectRenderContext, windows_core::IUnknown); impl IMILBitmapEffectRenderContext { pub unsafe fn SetOutputPixelFormat(&self, format: *const windows_core::GUID) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputPixelFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(format)).ok() + (windows_core::Interface::vtable(self).SetOutputPixelFormat)(windows_core::Interface::as_raw(self), format).ok() } pub unsafe fn GetOutputPixelFormat(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputPixelFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetUseSoftwareRenderer(&self, fsoftware: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetUseSoftwareRenderer)(windows_core::Interface::as_raw(self), core::mem::transmute(fsoftware)).ok() + (windows_core::Interface::vtable(self).SetUseSoftwareRenderer)(windows_core::Interface::as_raw(self), fsoftware).ok() } pub unsafe fn SetInitialTransform(&self, pmatrix: *const MILMatrixF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetInitialTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(pmatrix)).ok() + (windows_core::Interface::vtable(self).SetInitialTransform)(windows_core::Interface::as_raw(self), pmatrix).ok() } pub unsafe fn GetFinalTransform(&self, pmatrix: *mut MILMatrixF) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFinalTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(pmatrix)).ok() } pub unsafe fn SetOutputDPI(&self, dbldpix: f64, dbldpiy: f64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetOutputDPI)(windows_core::Interface::as_raw(self), core::mem::transmute(dbldpix), core::mem::transmute(dbldpiy)).ok() + (windows_core::Interface::vtable(self).SetOutputDPI)(windows_core::Interface::as_raw(self), dbldpix, dbldpiy).ok() } pub unsafe fn GetOutputDPI(&self, pdbldpix: *mut f64, pdbldpiy: *mut f64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputDPI)(windows_core::Interface::as_raw(self), core::mem::transmute(pdbldpix), core::mem::transmute(pdbldpiy)).ok() } pub unsafe fn SetRegionOfInterest(&self, prect: *const MilRectD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRegionOfInterest)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).SetRegionOfInterest)(windows_core::Interface::as_raw(self), prect).ok() } } #[repr(C)] @@ -1304,13 +1304,13 @@ impl IMILBitmapEffectRenderContextImpl { (windows_core::Interface::vtable(self).GetTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(pmatrix)).ok() } pub unsafe fn UpdateTransform(&self, pmatrix: *const MILMatrixF) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(pmatrix)).ok() + (windows_core::Interface::vtable(self).UpdateTransform)(windows_core::Interface::as_raw(self), pmatrix).ok() } pub unsafe fn GetOutputBounds(&self, prect: *mut MilRectD) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() } pub unsafe fn UpdateOutputBounds(&self, prect: *const MilRectD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateOutputBounds)(windows_core::Interface::as_raw(self), core::mem::transmute(prect)).ok() + (windows_core::Interface::vtable(self).UpdateOutputBounds)(windows_core::Interface::as_raw(self), prect).ok() } } #[repr(C)] @@ -1384,7 +1384,7 @@ impl IMILBitmapEffects { } pub unsafe fn Item(&self, uindex: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), core::mem::transmute(uindex), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), uindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs index f18edd929e..bf19b44d1d 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs @@ -2,14 +2,14 @@ #[inline] pub unsafe fn ComputeInvCMAP(prgbcolors: *const super::super::Graphics::Gdi::RGBQUAD, ncolors: u32, pinvtable: *mut u8, cbtable: u32) -> windows_core::Result<()> { windows_targets::link!("imgutil.dll" "system" fn ComputeInvCMAP(prgbcolors : *const super::super::Graphics::Gdi:: RGBQUAD, ncolors : u32, pinvtable : *mut u8, cbtable : u32) -> windows_core::HRESULT); - ComputeInvCMAP(core::mem::transmute(prgbcolors), core::mem::transmute(ncolors), core::mem::transmute(pinvtable), core::mem::transmute(cbtable)).ok() + ComputeInvCMAP(prgbcolors, ncolors, core::mem::transmute(pinvtable), cbtable).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn CreateDDrawSurfaceOnDIB(hbmdib: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result { windows_targets::link!("imgutil.dll" "system" fn CreateDDrawSurfaceOnDIB(hbmdib : super::super::Graphics::Gdi:: HBITMAP, ppsurface : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - CreateDDrawSurfaceOnDIB(core::mem::transmute(hbmdib), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDDrawSurfaceOnDIB(hbmdib, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateMIMEMap() -> windows_core::Result { @@ -44,7 +44,7 @@ where #[inline] pub unsafe fn DitherTo8(pdestbits: *mut u8, ndestpitch: i32, psrcbits: *mut u8, nsrcpitch: i32, bfidsrc: *const windows_core::GUID, prgbdestcolors: *mut super::super::Graphics::Gdi::RGBQUAD, prgbsrccolors: *mut super::super::Graphics::Gdi::RGBQUAD, pbdestinvmap: *mut u8, x: i32, y: i32, cx: i32, cy: i32, ldesttrans: i32, lsrctrans: i32) -> windows_core::Result<()> { windows_targets::link!("imgutil.dll" "system" fn DitherTo8(pdestbits : *mut u8, ndestpitch : i32, psrcbits : *mut u8, nsrcpitch : i32, bfidsrc : *const windows_core::GUID, prgbdestcolors : *mut super::super::Graphics::Gdi:: RGBQUAD, prgbsrccolors : *mut super::super::Graphics::Gdi:: RGBQUAD, pbdestinvmap : *mut u8, x : i32, y : i32, cx : i32, cy : i32, ldesttrans : i32, lsrctrans : i32) -> windows_core::HRESULT); - DitherTo8(core::mem::transmute(pdestbits), core::mem::transmute(ndestpitch), core::mem::transmute(psrcbits), core::mem::transmute(nsrcpitch), core::mem::transmute(bfidsrc), core::mem::transmute(prgbdestcolors), core::mem::transmute(prgbsrccolors), core::mem::transmute(pbdestinvmap), core::mem::transmute(x), core::mem::transmute(y), core::mem::transmute(cx), core::mem::transmute(cy), core::mem::transmute(ldesttrans), core::mem::transmute(lsrctrans)).ok() + DitherTo8(core::mem::transmute(pdestbits), ndestpitch, core::mem::transmute(psrcbits), nsrcpitch, bfidsrc, core::mem::transmute(prgbdestcolors), core::mem::transmute(prgbsrccolors), core::mem::transmute(pbdestinvmap), x, y, cx, cy, ldesttrans, lsrctrans).ok() } #[inline] pub unsafe fn GetMaxMIMEIDBytes(pnmaxbytes: *mut u32) -> windows_core::Result<()> { @@ -54,12 +54,12 @@ pub unsafe fn GetMaxMIMEIDBytes(pnmaxbytes: *mut u32) -> windows_core::Result<() #[inline] pub unsafe fn IEAssociateThreadWithTab(dwtabthreadid: u32, dwassociatedthreadid: u32) -> windows_core::Result<()> { windows_targets::link!("ieframe.dll" "system" fn IEAssociateThreadWithTab(dwtabthreadid : u32, dwassociatedthreadid : u32) -> windows_core::HRESULT); - IEAssociateThreadWithTab(core::mem::transmute(dwtabthreadid), core::mem::transmute(dwassociatedthreadid)).ok() + IEAssociateThreadWithTab(dwtabthreadid, dwassociatedthreadid).ok() } #[inline] pub unsafe fn IECancelSaveFile(hstate: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("ieframe.dll" "system" fn IECancelSaveFile(hstate : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - IECancelSaveFile(core::mem::transmute(hstate)).ok() + IECancelSaveFile(hstate).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -68,7 +68,7 @@ where P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IECreateDirectory(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - IECreateDirectory(lppathname.param().abi(), core::mem::transmute(lpsecurityattributes)) + IECreateDirectory(lppathname.param().abi(), lpsecurityattributes) } #[cfg(feature = "Win32_Security")] #[inline] @@ -77,7 +77,7 @@ where P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IECreateFile(lpfilename : windows_core::PCWSTR, dwdesiredaccess : u32, dwsharemode : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, dwcreationdisposition : u32, dwflagsandattributes : u32, htemplatefile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - IECreateFile(lpfilename.param().abi(), core::mem::transmute(dwdesiredaccess), core::mem::transmute(dwsharemode), core::mem::transmute(lpsecurityattributes), core::mem::transmute(dwcreationdisposition), core::mem::transmute(dwflagsandattributes), core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))) + IECreateFile(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, lpsecurityattributes, dwcreationdisposition, dwflagsandattributes, core::mem::transmute(htemplatefile.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn IEDeleteFile(lpfilename: P0) -> super::super::Foundation::BOOL @@ -90,7 +90,7 @@ where #[inline] pub unsafe fn IEDisassociateThreadWithTab(dwtabthreadid: u32, dwassociatedthreadid: u32) -> windows_core::Result<()> { windows_targets::link!("ieframe.dll" "system" fn IEDisassociateThreadWithTab(dwtabthreadid : u32, dwassociatedthreadid : u32) -> windows_core::HRESULT); - IEDisassociateThreadWithTab(core::mem::transmute(dwtabthreadid), core::mem::transmute(dwassociatedthreadid)).ok() + IEDisassociateThreadWithTab(dwtabthreadid, dwassociatedthreadid).ok() } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -99,7 +99,7 @@ where P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEFindFirstFile(lpfilename : windows_core::PCWSTR, lpfindfiledata : *const super::super::Storage::FileSystem:: WIN32_FIND_DATAA) -> super::super::Foundation:: HANDLE); - IEFindFirstFile(lpfilename.param().abi(), core::mem::transmute(lpfindfiledata)) + IEFindFirstFile(lpfilename.param().abi(), lpfindfiledata) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -108,7 +108,7 @@ where P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEGetFileAttributesEx(lpfilename : windows_core::PCWSTR, finfolevelid : super::super::Storage::FileSystem:: GET_FILEEX_INFO_LEVELS, lpfileinformation : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - IEGetFileAttributesEx(lpfilename.param().abi(), core::mem::transmute(finfolevelid), core::mem::transmute(lpfileinformation)) + IEGetFileAttributesEx(lpfilename.param().abi(), finfolevelid, lpfileinformation) } #[inline] pub unsafe fn IEGetProtectedModeCookie(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: windows_core::PWSTR, pcchcookiedata: *mut u32, dwflags: u32) -> windows_core::Result<()> @@ -117,13 +117,13 @@ where P1: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEGetProtectedModeCookie(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PWSTR, pcchcookiedata : *mut u32, dwflags : u32) -> windows_core::HRESULT); - IEGetProtectedModeCookie(lpszurl.param().abi(), lpszcookiename.param().abi(), core::mem::transmute(lpszcookiedata), core::mem::transmute(pcchcookiedata), core::mem::transmute(dwflags)).ok() + IEGetProtectedModeCookie(lpszurl.param().abi(), lpszcookiename.param().abi(), core::mem::transmute(lpszcookiedata), core::mem::transmute(pcchcookiedata), dwflags).ok() } #[inline] pub unsafe fn IEGetWriteableFolderPath(clsidfolderid: *const windows_core::GUID) -> windows_core::Result { windows_targets::link!("ieframe.dll" "system" fn IEGetWriteableFolderPath(clsidfolderid : *const windows_core::GUID, lppwstrpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = core::mem::zeroed(); - IEGetWriteableFolderPath(core::mem::transmute(clsidfolderid), &mut result__).map(|| core::mem::transmute(result__)) + IEGetWriteableFolderPath(clsidfolderid, &mut result__).map(|| core::mem::transmute(result__)) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -172,7 +172,7 @@ where P1: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEMoveFileEx(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); - IEMoveFileEx(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), core::mem::transmute(dwflags)) + IEMoveFileEx(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags) } #[inline] pub unsafe fn IERefreshElevationPolicy() -> windows_core::Result<()> { @@ -187,7 +187,7 @@ where P2: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IERegCreateKeyEx(lpsubkey : windows_core::PCWSTR, reserved : u32, lpclass : windows_core::PCWSTR, dwoptions : u32, samdesired : u32, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, phkresult : *mut super::super::System::Registry:: HKEY, lpdwdisposition : *mut u32) -> windows_core::HRESULT); - IERegCreateKeyEx(lpsubkey.param().abi(), core::mem::transmute(reserved), lpclass.param().abi(), core::mem::transmute(dwoptions), core::mem::transmute(samdesired), core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition)).ok() + IERegCreateKeyEx(lpsubkey.param().abi(), reserved, lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(phkresult), core::mem::transmute(lpdwdisposition)).ok() } #[inline] pub unsafe fn IERegSetValueEx(lpsubkey: P0, lpvaluename: P1, reserved: u32, dwtype: u32, lpdata: &[u8]) -> windows_core::Result<()> @@ -196,7 +196,7 @@ where P1: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IERegSetValueEx(lpsubkey : windows_core::PCWSTR, lpvaluename : windows_core::PCWSTR, reserved : u32, dwtype : u32, lpdata : *const u8, cbdata : u32) -> windows_core::HRESULT); - IERegSetValueEx(lpsubkey.param().abi(), lpvaluename.param().abi(), core::mem::transmute(reserved), core::mem::transmute(dwtype), core::mem::transmute(lpdata.as_ptr()), lpdata.len().try_into().unwrap()).ok() + IERegSetValueEx(lpsubkey.param().abi(), lpvaluename.param().abi(), reserved, dwtype, core::mem::transmute(lpdata.as_ptr()), lpdata.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn IERegisterWritableRegistryKey(guid: windows_core::GUID, lpsubkey: P1, fsubkeyallowed: bool) -> windows_core::Result<()> @@ -213,7 +213,7 @@ where P2: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IERegisterWritableRegistryValue(guid : windows_core::GUID, lppath : windows_core::PCWSTR, lpvaluename : windows_core::PCWSTR, dwtype : u32, lpdata : *const u8, cbmaxdata : u32) -> windows_core::HRESULT); - IERegisterWritableRegistryValue(core::mem::transmute(guid), lppath.param().abi(), lpvaluename.param().abi(), core::mem::transmute(dwtype), core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + IERegisterWritableRegistryValue(core::mem::transmute(guid), lppath.param().abi(), lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[inline] pub unsafe fn IERemoveDirectory(lppathname: P0) -> super::super::Foundation::BOOL @@ -229,7 +229,7 @@ where P1: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IESaveFile(hstate : super::super::Foundation:: HANDLE, lpwstrsourcefile : windows_core::PCWSTR) -> windows_core::HRESULT); - IESaveFile(core::mem::transmute(hstate), lpwstrsourcefile.param().abi()).ok() + IESaveFile(hstate, lpwstrsourcefile.param().abi()).ok() } #[inline] pub unsafe fn IESetProtectedModeCookie(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, dwflags: u32) -> windows_core::Result<()> @@ -239,7 +239,7 @@ where P2: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IESetProtectedModeCookie(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - IESetProtectedModeCookie(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), core::mem::transmute(dwflags)).ok() + IESetProtectedModeCookie(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), dwflags).ok() } #[inline] pub unsafe fn IEShowOpenFileDialog(hwnd: super::super::Foundation::HWND, lpwstrfilename: &mut [u16], lpwstrinitialdir: P3, lpwstrfilter: P4, lpwstrdefext: P5, dwfilterindex: u32, dwflags: u32, phfile: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -249,7 +249,7 @@ where P5: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEShowOpenFileDialog(hwnd : super::super::Foundation:: HWND, lpwstrfilename : windows_core::PWSTR, cchmaxfilename : u32, lpwstrinitialdir : windows_core::PCWSTR, lpwstrfilter : windows_core::PCWSTR, lpwstrdefext : windows_core::PCWSTR, dwfilterindex : u32, dwflags : u32, phfile : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - IEShowOpenFileDialog(core::mem::transmute(hwnd), core::mem::transmute(lpwstrfilename.as_ptr()), lpwstrfilename.len().try_into().unwrap(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), core::mem::transmute(dwfilterindex), core::mem::transmute(dwflags), core::mem::transmute(phfile)).ok() + IEShowOpenFileDialog(hwnd, core::mem::transmute(lpwstrfilename.as_ptr()), lpwstrfilename.len().try_into().unwrap(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), dwfilterindex, dwflags, core::mem::transmute(phfile)).ok() } #[inline] pub unsafe fn IEShowSaveFileDialog(hwnd: super::super::Foundation::HWND, lpwstrinitialfilename: P1, lpwstrinitialdir: P2, lpwstrfilter: P3, lpwstrdefext: P4, dwfilterindex: u32, dwflags: u32, lppwstrdestinationfilepath: *mut windows_core::PWSTR, phstate: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> @@ -260,7 +260,7 @@ where P4: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEShowSaveFileDialog(hwnd : super::super::Foundation:: HWND, lpwstrinitialfilename : windows_core::PCWSTR, lpwstrinitialdir : windows_core::PCWSTR, lpwstrfilter : windows_core::PCWSTR, lpwstrdefext : windows_core::PCWSTR, dwfilterindex : u32, dwflags : u32, lppwstrdestinationfilepath : *mut windows_core::PWSTR, phstate : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - IEShowSaveFileDialog(core::mem::transmute(hwnd), lpwstrinitialfilename.param().abi(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), core::mem::transmute(dwfilterindex), core::mem::transmute(dwflags), core::mem::transmute(lppwstrdestinationfilepath), core::mem::transmute(phstate)).ok() + IEShowSaveFileDialog(hwnd, lpwstrinitialfilename.param().abi(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), dwfilterindex, dwflags, core::mem::transmute(lppwstrdestinationfilepath), core::mem::transmute(phstate)).ok() } #[inline] pub unsafe fn IETrackingProtectionEnabled() -> super::super::Foundation::BOOL { @@ -275,7 +275,7 @@ pub unsafe fn IEUnregisterWritableRegistry(guid: windows_core::GUID) -> windows_ #[inline] pub unsafe fn IdentifyMIMEType(pbbytes: *const u8, nbytes: u32, pnformat: *mut u32) -> windows_core::Result<()> { windows_targets::link!("imgutil.dll" "system" fn IdentifyMIMEType(pbbytes : *const u8, nbytes : u32, pnformat : *mut u32) -> windows_core::HRESULT); - IdentifyMIMEType(core::mem::transmute(pbbytes), core::mem::transmute(nbytes), core::mem::transmute(pnformat)).ok() + IdentifyMIMEType(pbbytes, nbytes, core::mem::transmute(pnformat)).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialog(hdlg: super::super::Foundation::HWND, pszusername: P1, pszcontentdescription: P2, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -284,7 +284,7 @@ where P2: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingAccessDeniedDialog(hdlg : super::super::Foundation:: HWND, pszusername : windows_core::PCSTR, pszcontentdescription : windows_core::PCSTR, pratingdetails : *mut core::ffi::c_void) -> windows_core::HRESULT); - RatingAccessDeniedDialog(core::mem::transmute(hdlg), pszusername.param().abi(), pszcontentdescription.param().abi(), core::mem::transmute(pratingdetails)).ok() + RatingAccessDeniedDialog(hdlg, pszusername.param().abi(), pszcontentdescription.param().abi(), core::mem::transmute(pratingdetails)).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialog2(hdlg: super::super::Foundation::HWND, pszusername: P1, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -292,7 +292,7 @@ where P1: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingAccessDeniedDialog2(hdlg : super::super::Foundation:: HWND, pszusername : windows_core::PCSTR, pratingdetails : *mut core::ffi::c_void) -> windows_core::HRESULT); - RatingAccessDeniedDialog2(core::mem::transmute(hdlg), pszusername.param().abi(), core::mem::transmute(pratingdetails)).ok() + RatingAccessDeniedDialog2(hdlg, pszusername.param().abi(), core::mem::transmute(pratingdetails)).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialog2W(hdlg: super::super::Foundation::HWND, pszusername: P1, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -300,7 +300,7 @@ where P1: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingAccessDeniedDialog2W(hdlg : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR, pratingdetails : *mut core::ffi::c_void) -> windows_core::HRESULT); - RatingAccessDeniedDialog2W(core::mem::transmute(hdlg), pszusername.param().abi(), core::mem::transmute(pratingdetails)).ok() + RatingAccessDeniedDialog2W(hdlg, pszusername.param().abi(), core::mem::transmute(pratingdetails)).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialogW(hdlg: super::super::Foundation::HWND, pszusername: P1, pszcontentdescription: P2, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> @@ -309,7 +309,7 @@ where P2: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingAccessDeniedDialogW(hdlg : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR, pszcontentdescription : windows_core::PCWSTR, pratingdetails : *mut core::ffi::c_void) -> windows_core::HRESULT); - RatingAccessDeniedDialogW(core::mem::transmute(hdlg), pszusername.param().abi(), pszcontentdescription.param().abi(), core::mem::transmute(pratingdetails)).ok() + RatingAccessDeniedDialogW(hdlg, pszusername.param().abi(), pszcontentdescription.param().abi(), core::mem::transmute(pratingdetails)).ok() } #[inline] pub unsafe fn RatingAddToApprovedSites(hdlg: super::super::Foundation::HWND, pbpasswordblob: &mut [u8], lpszurl: P3, falwaysnever: bool, fsitepage: bool, fapprovedsitesenforced: bool) -> windows_core::Result<()> @@ -317,7 +317,7 @@ where P3: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingAddToApprovedSites(hdlg : super::super::Foundation:: HWND, cbpasswordblob : u32, pbpasswordblob : *mut u8, lpszurl : windows_core::PCWSTR, falwaysnever : super::super::Foundation:: BOOL, fsitepage : super::super::Foundation:: BOOL, fapprovedsitesenforced : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RatingAddToApprovedSites(core::mem::transmute(hdlg), pbpasswordblob.len().try_into().unwrap(), core::mem::transmute(pbpasswordblob.as_ptr()), lpszurl.param().abi(), falwaysnever.into(), fsitepage.into(), fapprovedsitesenforced.into()).ok() + RatingAddToApprovedSites(hdlg, pbpasswordblob.len().try_into().unwrap(), core::mem::transmute(pbpasswordblob.as_ptr()), lpszurl.param().abi(), falwaysnever.into(), fsitepage.into(), fapprovedsitesenforced.into()).ok() } #[inline] pub unsafe fn RatingCheckUserAccess(pszusername: P0, pszurl: P1, pszratinginfo: P2, pdata: Option<&[u8]>, ppratingdetails: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> @@ -345,7 +345,7 @@ where P2: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingClickedOnPRFInternal(hwndowner : super::super::Foundation:: HWND, param1 : super::super::Foundation:: HINSTANCE, lpszfilename : windows_core::PCSTR, nshow : i32) -> windows_core::HRESULT); - RatingClickedOnPRFInternal(core::mem::transmute(hwndowner), core::mem::transmute(param1), lpszfilename.param().abi(), core::mem::transmute(nshow)).ok() + RatingClickedOnPRFInternal(hwndowner, param1, lpszfilename.param().abi(), nshow).ok() } #[inline] pub unsafe fn RatingClickedOnRATInternal(hwndowner: super::super::Foundation::HWND, param1: super::super::Foundation::HINSTANCE, lpszfilename: P2, nshow: i32) -> windows_core::Result<()> @@ -353,7 +353,7 @@ where P2: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingClickedOnRATInternal(hwndowner : super::super::Foundation:: HWND, param1 : super::super::Foundation:: HINSTANCE, lpszfilename : windows_core::PCSTR, nshow : i32) -> windows_core::HRESULT); - RatingClickedOnRATInternal(core::mem::transmute(hwndowner), core::mem::transmute(param1), lpszfilename.param().abi(), core::mem::transmute(nshow)).ok() + RatingClickedOnRATInternal(hwndowner, param1, lpszfilename.param().abi(), nshow).ok() } #[inline] pub unsafe fn RatingEnable(hwndparent: super::super::Foundation::HWND, pszusername: P1, fenable: bool) -> windows_core::Result<()> @@ -361,7 +361,7 @@ where P1: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingEnable(hwndparent : super::super::Foundation:: HWND, pszusername : windows_core::PCSTR, fenable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RatingEnable(core::mem::transmute(hwndparent), pszusername.param().abi(), fenable.into()).ok() + RatingEnable(hwndparent, pszusername.param().abi(), fenable.into()).ok() } #[inline] pub unsafe fn RatingEnableW(hwndparent: super::super::Foundation::HWND, pszusername: P1, fenable: bool) -> windows_core::Result<()> @@ -369,7 +369,7 @@ where P1: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingEnableW(hwndparent : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR, fenable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RatingEnableW(core::mem::transmute(hwndparent), pszusername.param().abi(), fenable.into()).ok() + RatingEnableW(hwndparent, pszusername.param().abi(), fenable.into()).ok() } #[inline] pub unsafe fn RatingEnabledQuery() -> windows_core::Result<()> { @@ -389,7 +389,7 @@ pub unsafe fn RatingInit() -> windows_core::Result<()> { #[inline] pub unsafe fn RatingObtainCancel(hratingobtainquery: super::super::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("msrating.dll" "system" fn RatingObtainCancel(hratingobtainquery : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RatingObtainCancel(core::mem::transmute(hratingobtainquery)).ok() + RatingObtainCancel(hratingobtainquery).ok() } #[inline] pub unsafe fn RatingObtainQuery(psztargeturl: P0, dwuserdata: u32, fcallback: isize, phratingobtainquery: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> @@ -397,7 +397,7 @@ where P0: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingObtainQuery(psztargeturl : windows_core::PCSTR, dwuserdata : u32, fcallback : isize, phratingobtainquery : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RatingObtainQuery(psztargeturl.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(fcallback), core::mem::transmute(phratingobtainquery.unwrap_or(core::mem::zeroed()))).ok() + RatingObtainQuery(psztargeturl.param().abi(), dwuserdata, fcallback, core::mem::transmute(phratingobtainquery.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RatingObtainQueryW(psztargeturl: P0, dwuserdata: u32, fcallback: isize, phratingobtainquery: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> @@ -405,7 +405,7 @@ where P0: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingObtainQueryW(psztargeturl : windows_core::PCWSTR, dwuserdata : u32, fcallback : isize, phratingobtainquery : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RatingObtainQueryW(psztargeturl.param().abi(), core::mem::transmute(dwuserdata), core::mem::transmute(fcallback), core::mem::transmute(phratingobtainquery.unwrap_or(core::mem::zeroed()))).ok() + RatingObtainQueryW(psztargeturl.param().abi(), dwuserdata, fcallback, core::mem::transmute(phratingobtainquery.unwrap_or(core::mem::zeroed()))).ok() } #[inline] pub unsafe fn RatingSetupUI(hdlg: super::super::Foundation::HWND, pszusername: P1) -> windows_core::Result<()> @@ -413,7 +413,7 @@ where P1: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingSetupUI(hdlg : super::super::Foundation:: HWND, pszusername : windows_core::PCSTR) -> windows_core::HRESULT); - RatingSetupUI(core::mem::transmute(hdlg), pszusername.param().abi()).ok() + RatingSetupUI(hdlg, pszusername.param().abi()).ok() } #[inline] pub unsafe fn RatingSetupUIW(hdlg: super::super::Foundation::HWND, pszusername: P1) -> windows_core::Result<()> @@ -421,7 +421,7 @@ where P1: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingSetupUIW(hdlg : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR) -> windows_core::HRESULT); - RatingSetupUIW(core::mem::transmute(hdlg), pszusername.param().abi()).ok() + RatingSetupUIW(hdlg, pszusername.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -769,7 +769,7 @@ impl IActiveXUIHandlerSite2 { (windows_core::Interface::vtable(self).AddSuspensionExemption)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn RemoveSuspensionExemption(&self, ullcookie: u64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveSuspensionExemption)(windows_core::Interface::as_raw(self), core::mem::transmute(ullcookie)).ok() + (windows_core::Interface::vtable(self).RemoveSuspensionExemption)(windows_core::Interface::as_raw(self), ullcookie).ok() } } #[repr(C)] @@ -818,7 +818,7 @@ impl IActiveXUIHandlerSite3 { P2: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).MessageBoxW)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), text.param().abi(), caption.param().abi(), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MessageBoxW)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd.unwrap_or(core::mem::zeroed())), text.param().abi(), caption.param().abi(), r#type, &mut result__).map(|| result__) } } #[repr(C)] @@ -1016,7 +1016,7 @@ windows_core::imp::interface_hierarchy!(IDithererImpl, windows_core::IUnknown); impl IDithererImpl { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetDestColorTable(&self, ncolors: u32, prgbcolors: *const super::super::Graphics::Gdi::RGBQUAD) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDestColorTable)(windows_core::Interface::as_raw(self), core::mem::transmute(ncolors), core::mem::transmute(prgbcolors)).ok() + (windows_core::Interface::vtable(self).SetDestColorTable)(windows_core::Interface::as_raw(self), ncolors, prgbcolors).ok() } pub unsafe fn SetEventSink(&self, peventsink: P0) -> windows_core::Result<()> where @@ -1074,7 +1074,7 @@ impl IDocObjectService { P6: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FireBeforeNavigate2)(windows_core::Interface::as_raw(self), pdispatch.param().abi(), lpszurl.param().abi(), core::mem::transmute(dwflags), lpszframename.param().abi(), core::mem::transmute(ppostdata), core::mem::transmute(cbpostdata), lpszheaders.param().abi(), fplaynavsound.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FireBeforeNavigate2)(windows_core::Interface::as_raw(self), pdispatch.param().abi(), lpszurl.param().abi(), dwflags, lpszframename.param().abi(), ppostdata, cbpostdata, lpszheaders.param().abi(), fplaynavsound.into(), &mut result__).map(|| result__) } pub unsafe fn FireDownloadBegin(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FireDownloadBegin)(windows_core::Interface::as_raw(self)).ok() @@ -1251,7 +1251,7 @@ impl IDownloadManager { P5: windows_core::Param, P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), core::mem::transmute(dwbindverb), core::mem::transmute(grfbindf), core::mem::transmute(pbindinfo), pszheaders.param().abi(), pszredir.param().abi(), core::mem::transmute(uicp)).ok() + (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), dwbindverb, grfbindf, core::mem::transmute(pbindinfo), pszheaders.param().abi(), pszredir.param().abi(), uicp).ok() } } #[repr(C)] @@ -1333,7 +1333,7 @@ impl IEnumManagerFrames { (windows_core::Interface::vtable(self).Count)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1414,7 +1414,7 @@ impl IEnumOpenServiceActivity { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1482,7 +1482,7 @@ impl IEnumOpenServiceActivityCategory { (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), core::mem::transmute(rgelt.as_ptr()), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1547,10 +1547,10 @@ windows_core::imp::define_interface!(IEnumSTATURL, IEnumSTATURL_Vtbl, 0x3c374a42 windows_core::imp::interface_hierarchy!(IEnumSTATURL, windows_core::IUnknown); impl IEnumSTATURL { pub unsafe fn Next(&self, celt: u32, rgelt: *mut STATURL, pceltfetched: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), core::mem::transmute(celt), core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() + (windows_core::Interface::vtable(self).Next)(windows_core::Interface::as_raw(self), celt, core::mem::transmute(rgelt), core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), core::mem::transmute(celt)).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), celt).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1563,7 +1563,7 @@ impl IEnumSTATURL { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), poszfilter.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), poszfilter.param().abi(), dwflags).ok() } } #[repr(C)] @@ -1668,18 +1668,18 @@ impl IHTMLPersistData { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(ltype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), punk.param().abi(), ltype, &mut result__).map(|| result__) } pub unsafe fn load(&self, punk: P0, ltype: i32) -> windows_core::Result where P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), punk.param().abi(), core::mem::transmute(ltype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), punk.param().abi(), ltype, &mut result__).map(|| result__) } pub unsafe fn queryType(&self, ltype: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).queryType)(windows_core::Interface::as_raw(self), core::mem::transmute(ltype), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).queryType)(windows_core::Interface::as_raw(self), ltype, &mut result__).map(|| result__) } } #[repr(C)] @@ -2015,14 +2015,14 @@ impl IHeaderFooter { (windows_core::Interface::vtable(self).textFoot)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn Setpage(&self, v: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setpage)(windows_core::Interface::as_raw(self), core::mem::transmute(v)).ok() + (windows_core::Interface::vtable(self).Setpage)(windows_core::Interface::as_raw(self), v).ok() } pub unsafe fn page(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).page)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetpageTotal(&self, v: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetpageTotal)(windows_core::Interface::as_raw(self), core::mem::transmute(v)).ok() + (windows_core::Interface::vtable(self).SetpageTotal)(windows_core::Interface::as_raw(self), v).ok() } pub unsafe fn pageTotal(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2456,7 +2456,7 @@ impl IHomePageSetting { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), core::mem::transmute(hwnd), homepageuri.param().abi(), brandingmessage.param().abi()).ok() + (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), hwnd, homepageuri.param().abi(), brandingmessage.param().abi()).ok() } pub unsafe fn IsHomePage(&self, uri: P0) -> windows_core::Result where @@ -2579,7 +2579,7 @@ windows_core::imp::interface_hierarchy!(IIEWebDriverSite, windows_core::IUnknown #[cfg(feature = "Win32_System_Com")] impl IIEWebDriverSite { pub unsafe fn WindowOperation(&self, operationcode: u32, hwnd: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).WindowOperation)(windows_core::Interface::as_raw(self), core::mem::transmute(operationcode), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).WindowOperation)(windows_core::Interface::as_raw(self), operationcode, hwnd).ok() } pub unsafe fn DetachWebdriver(&self, punkwd: P0) -> windows_core::Result<()> where @@ -2653,7 +2653,7 @@ windows_core::imp::interface_hierarchy!(IImageDecodeEventSink, windows_core::IUn impl IImageDecodeEventSink { pub unsafe fn GetSurface(&self, nwidth: i32, nheight: i32, bfid: *const windows_core::GUID, npasses: u32, dwhints: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(nwidth), core::mem::transmute(nheight), core::mem::transmute(bfid), core::mem::transmute(npasses), core::mem::transmute(dwhints), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurface)(windows_core::Interface::as_raw(self), nwidth, nheight, bfid, npasses, dwhints, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnBeginDecode(&self, pdwevents: *mut u32, pnformats: *mut u32, ppformats: *mut *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnBeginDecode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwevents), core::mem::transmute(pnformats), core::mem::transmute(ppformats)).ok() @@ -2662,13 +2662,13 @@ impl IImageDecodeEventSink { (windows_core::Interface::vtable(self).OnBitsComplete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnDecodeComplete(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnDecodeComplete)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).OnDecodeComplete)(windows_core::Interface::as_raw(self), hrstatus).ok() } pub unsafe fn OnPalette(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnPalette)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnProgress(&self, pbounds: *const super::super::Foundation::RECT, bcomplete: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), core::mem::transmute(pbounds), bcomplete.into()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), pbounds, bcomplete.into()).ok() } } #[repr(C)] @@ -2794,7 +2794,7 @@ impl IImageDecodeFilter { (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } pub unsafe fn Terminate(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), core::mem::transmute(hrstatus)).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), hrstatus).ok() } } #[repr(C)] @@ -2859,7 +2859,7 @@ impl IIntelliForms { (windows_core::Interface::vtable(self).enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn Setenabled(&self, bval: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), core::mem::transmute(bval)).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), bval).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2912,7 +2912,7 @@ impl IInternetExplorerManager { T: windows_core::Interface, { let mut result__ = core::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), core::mem::transmute(dwconfig), pszurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), dwconfig, pszurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3001,14 +3001,14 @@ impl ILayoutRect { (windows_core::Interface::vtable(self).contentSrc)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } pub unsafe fn SethonorPageBreaks(&self, v: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SethonorPageBreaks)(windows_core::Interface::as_raw(self), core::mem::transmute(v)).ok() + (windows_core::Interface::vtable(self).SethonorPageBreaks)(windows_core::Interface::as_raw(self), v).ok() } pub unsafe fn honorPageBreaks(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).honorPageBreaks)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SethonorPageRules(&self, v: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SethonorPageRules)(windows_core::Interface::as_raw(self), core::mem::transmute(v)).ok() + (windows_core::Interface::vtable(self).SethonorPageRules)(windows_core::Interface::as_raw(self), v).ok() } pub unsafe fn honorPageRules(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3187,13 +3187,13 @@ impl IMapMIMEToCLSID { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapMIMEToCLSID)(windows_core::Interface::as_raw(self), pszmimetype.param().abi(), core::mem::transmute(pclsid)).ok() + (windows_core::Interface::vtable(self).MapMIMEToCLSID)(windows_core::Interface::as_raw(self), pszmimetype.param().abi(), pclsid).ok() } pub unsafe fn SetMapping(&self, pszmimetype: P0, dwmapmode: u32, clsid: *const windows_core::GUID) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMapping)(windows_core::Interface::as_raw(self), pszmimetype.param().abi(), core::mem::transmute(dwmapmode), core::mem::transmute(clsid)).ok() + (windows_core::Interface::vtable(self).SetMapping)(windows_core::Interface::as_raw(self), pszmimetype.param().abi(), dwmapmode, clsid).ok() } } #[repr(C)] @@ -3238,10 +3238,10 @@ windows_core::imp::define_interface!(IMediaActivityNotifySite, IMediaActivityNot windows_core::imp::interface_hierarchy!(IMediaActivityNotifySite, windows_core::IUnknown); impl IMediaActivityNotifySite { pub unsafe fn OnMediaActivityStarted(&self, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMediaActivityStarted)(windows_core::Interface::as_raw(self), core::mem::transmute(mediaactivitytype)).ok() + (windows_core::Interface::vtable(self).OnMediaActivityStarted)(windows_core::Interface::as_raw(self), mediaactivitytype).ok() } pub unsafe fn OnMediaActivityStopped(&self, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).OnMediaActivityStopped)(windows_core::Interface::as_raw(self), core::mem::transmute(mediaactivitytype)).ok() + (windows_core::Interface::vtable(self).OnMediaActivityStopped)(windows_core::Interface::as_raw(self), mediaactivitytype).ok() } } #[repr(C)] @@ -3289,7 +3289,7 @@ impl IOpenService { (windows_core::Interface::vtable(self).IsDefault)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetDefault(&self, fdefault: bool, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), fdefault.into(), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), fdefault.into(), hwnd).ok() } pub unsafe fn GetID(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3372,7 +3372,7 @@ impl IOpenServiceActivity { } pub unsafe fn CanExecuteType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CanExecuteType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanExecuteType)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn Preview(&self, pinput: P0, poutput: P1) -> windows_core::Result<()> where @@ -3391,7 +3391,7 @@ impl IOpenServiceActivity { } pub unsafe fn CanPreviewType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CanPreviewType)(windows_core::Interface::as_raw(self), core::mem::transmute(r#type), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanPreviewType)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) } pub unsafe fn GetStatusText(&self, pinput: P0) -> windows_core::Result where @@ -3699,7 +3699,7 @@ impl IOpenServiceActivityCategory { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultActivity)(windows_core::Interface::as_raw(self), pactivity.param().abi(), core::mem::transmute(hwnd)).ok() + (windows_core::Interface::vtable(self).SetDefaultActivity)(windows_core::Interface::as_raw(self), pactivity.param().abi(), hwnd).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -3875,7 +3875,7 @@ windows_core::imp::interface_hierarchy!(IOpenServiceActivityManager, windows_cor impl IOpenServiceActivityManager { pub unsafe fn GetCategoryEnumerator(&self, etype: OpenServiceActivityContentType) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCategoryEnumerator)(windows_core::Interface::as_raw(self), core::mem::transmute(etype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCategoryEnumerator)(windows_core::Interface::as_raw(self), etype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetActivityByID(&self, pwzactivityid: P0) -> windows_core::Result where @@ -4156,7 +4156,7 @@ impl IPersistHistory { (windows_core::Interface::vtable(self).SaveHistory)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } pub unsafe fn SetPositionCookie(&self, dwpositioncookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPositionCookie)(windows_core::Interface::as_raw(self), core::mem::transmute(dwpositioncookie)).ok() + (windows_core::Interface::vtable(self).SetPositionCookie)(windows_core::Interface::as_raw(self), dwpositioncookie).ok() } pub unsafe fn GetPositionCookie(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4293,11 +4293,11 @@ impl IScrollableContextMenu { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), itemtext.param().abi(), core::mem::transmute(cmdid)).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), itemtext.param().abi(), cmdid).ok() } pub unsafe fn ShowModal(&self, x: i32, y: i32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowModal)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShowModal)(windows_core::Interface::as_raw(self), x, y, &mut result__).map(|| result__) } } #[repr(C)] @@ -4346,7 +4346,7 @@ impl IScrollableContextMenu2 { (windows_core::Interface::vtable(self).AddSeparator)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetPlacement(&self, scmp: SCROLLABLECONTEXTMENU_PLACEMENT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetPlacement)(windows_core::Interface::as_raw(self), core::mem::transmute(scmp)).ok() + (windows_core::Interface::vtable(self).SetPlacement)(windows_core::Interface::as_raw(self), scmp).ok() } } #[repr(C)] @@ -4391,7 +4391,7 @@ impl ISniffStream { (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } pub unsafe fn Peek(&self, pbuffer: *mut core::ffi::c_void, nbytes: u32, pnbytesread: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Peek)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer), core::mem::transmute(nbytes), core::mem::transmute(pnbytesread)).ok() + (windows_core::Interface::vtable(self).Peek)(windows_core::Interface::as_raw(self), core::mem::transmute(pbuffer), nbytes, core::mem::transmute(pnbytesread)).ok() } } #[repr(C)] @@ -4434,7 +4434,7 @@ impl ISurfacePresenterFlip { (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetBuffer(&self, backbufferindex: u32, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), core::mem::transmute(backbufferindex), core::mem::transmute(riid), core::mem::transmute(ppbuffer)).ok() + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), backbufferindex, riid, core::mem::transmute(ppbuffer)).ok() } } #[repr(C)] @@ -4469,7 +4469,7 @@ windows_core::imp::interface_hierarchy!(ISurfacePresenterFlip2, windows_core::IU impl ISurfacePresenterFlip2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetRotation(&self, dxgirotation: super::super::Graphics::Dxgi::Common::DXGI_MODE_ROTATION) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), core::mem::transmute(dxgirotation)).ok() + (windows_core::Interface::vtable(self).SetRotation)(windows_core::Interface::as_raw(self), dxgirotation).ok() } } #[repr(C)] @@ -4503,7 +4503,7 @@ windows_core::imp::define_interface!(ISurfacePresenterFlipBuffer, ISurfacePresen windows_core::imp::interface_hierarchy!(ISurfacePresenterFlipBuffer, windows_core::IUnknown); impl ISurfacePresenterFlipBuffer { pub unsafe fn BeginDraw(&self, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).BeginDraw)(windows_core::Interface::as_raw(self), core::mem::transmute(riid), core::mem::transmute(ppbuffer)).ok() + (windows_core::Interface::vtable(self).BeginDraw)(windows_core::Interface::as_raw(self), riid, core::mem::transmute(ppbuffer)).ok() } pub unsafe fn EndDraw(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndDraw)(windows_core::Interface::as_raw(self)).ok() @@ -4656,7 +4656,7 @@ impl ITargetFrame { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrame)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), ppunkcontextframe.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFrame)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), ppunkcontextframe.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFrameSrc(&self, pszframesrc: P0) -> windows_core::Result<()> where @@ -4674,14 +4674,14 @@ impl ITargetFrame { (windows_core::Interface::vtable(self).GetFramesContainer)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFrameOptions(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFrameOptions)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetFrameOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFrameOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFrameMargins(&self, dwwidth: u32, dwheight: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameMargins)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwidth), core::mem::transmute(dwheight)).ok() + (windows_core::Interface::vtable(self).SetFrameMargins)(windows_core::Interface::as_raw(self), dwwidth, dwheight).ok() } pub unsafe fn GetFrameMargins(&self, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFrameMargins)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwwidth), core::mem::transmute(pdwheight)).ok() @@ -4892,14 +4892,14 @@ impl ITargetFrame2 { (windows_core::Interface::vtable(self).GetFramesContainer)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFrameOptions(&self, dwflags: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameOptions)(windows_core::Interface::as_raw(self), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).SetFrameOptions)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn GetFrameOptions(&self) -> windows_core::Result { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFrameOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } pub unsafe fn SetFrameMargins(&self, dwwidth: u32, dwheight: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetFrameMargins)(windows_core::Interface::as_raw(self), core::mem::transmute(dwwidth), core::mem::transmute(dwheight)).ok() + (windows_core::Interface::vtable(self).SetFrameMargins)(windows_core::Interface::as_raw(self), dwwidth, dwheight).ok() } pub unsafe fn GetFrameMargins(&self, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFrameMargins)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwwidth), core::mem::transmute(pdwheight)).ok() @@ -4909,7 +4909,7 @@ impl ITargetFrame2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrame)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFrame)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTargetAlias(&self, psztargetname: P0) -> windows_core::Result where @@ -5076,7 +5076,7 @@ impl ITargetFramePriv { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrameDownwards)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFrameDownwards)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFrameInContext(&self, psztargetname: P0, punkcontextframe: P1, dwflags: u32) -> windows_core::Result where @@ -5084,7 +5084,7 @@ impl ITargetFramePriv { P1: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrameInContext)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), punkcontextframe.param().abi(), core::mem::transmute(dwflags), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFrameInContext)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), punkcontextframe.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnChildFrameActivate(&self, punkchildframe: P0) -> windows_core::Result<()> where @@ -5107,11 +5107,11 @@ impl ITargetFramePriv { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).NavigateHack)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pbc.param().abi(), pibsc.param().abi(), psztargetname.param().abi(), pszurl.param().abi(), pszlocation.param().abi()).ok() + (windows_core::Interface::vtable(self).NavigateHack)(windows_core::Interface::as_raw(self), grfhlnf, pbc.param().abi(), pibsc.param().abi(), psztargetname.param().abi(), pszurl.param().abi(), pszlocation.param().abi()).ok() } pub unsafe fn FindBrowserByIndex(&self, dwid: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).FindBrowserByIndex)(windows_core::Interface::as_raw(self), core::mem::transmute(dwid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindBrowserByIndex)(windows_core::Interface::as_raw(self), dwid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5215,7 +5215,7 @@ impl ITargetFramePriv2 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AggregatedNavigation2)(windows_core::Interface::as_raw(self), core::mem::transmute(grfhlnf), pbc.param().abi(), pibsc.param().abi(), psztargetname.param().abi(), puri.param().abi(), pszlocation.param().abi()).ok() + (windows_core::Interface::vtable(self).AggregatedNavigation2)(windows_core::Interface::as_raw(self), grfhlnf, pbc.param().abi(), pibsc.param().abi(), psztargetname.param().abi(), puri.param().abi(), pszlocation.param().abi()).ok() } } #[repr(C)] @@ -5252,7 +5252,7 @@ impl ITargetNotify { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreate)(windows_core::Interface::as_raw(self), punkdestination.param().abi(), core::mem::transmute(cbcookie)).ok() + (windows_core::Interface::vtable(self).OnCreate)(windows_core::Interface::as_raw(self), punkdestination.param().abi(), cbcookie).ok() } pub unsafe fn OnReuse(&self, punkdestination: P0) -> windows_core::Result<()> where @@ -5331,10 +5331,10 @@ impl ITimer { P4: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vtimemin), core::mem::transmute_copy(vtimemax), core::mem::transmute_copy(vtimeinterval), core::mem::transmute(dwflags), ptimersink.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(vtimemin), core::mem::transmute_copy(vtimemax), core::mem::transmute_copy(vtimeinterval), dwflags, ptimersink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), core::mem::transmute(dwcookie)).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn Freeze(&self, ffreeze: bool) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Freeze)(windows_core::Interface::as_raw(self), ffreeze.into()).ok() @@ -5421,7 +5421,7 @@ impl core::ops::Deref for ITimerEx { windows_core::imp::interface_hierarchy!(ITimerEx, windows_core::IUnknown, ITimer); impl ITimerEx { pub unsafe fn SetMode(&self, dwmode: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), core::mem::transmute(dwmode)).ok() + (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), dwmode).ok() } } #[repr(C)] @@ -5460,13 +5460,13 @@ impl ITimerService { } pub unsafe fn GetNamedTimer(&self, rguidname: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNamedTimer)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNamedTimer)(windows_core::Interface::as_raw(self), rguidname, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetNamedTimerReference(&self, rguidname: *const windows_core::GUID, preferencetimer: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamedTimerReference)(windows_core::Interface::as_raw(self), core::mem::transmute(rguidname), preferencetimer.param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamedTimerReference)(windows_core::Interface::as_raw(self), rguidname, preferencetimer.param().abi()).ok() } } #[repr(C)] @@ -5559,7 +5559,7 @@ windows_core::imp::interface_hierarchy!(ITridentTouchInput, windows_core::IUnkno impl ITridentTouchInput { pub unsafe fn OnPointerMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPointerMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(msg), core::mem::transmute(wparam), core::mem::transmute(lparam), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnPointerMessage)(windows_core::Interface::as_raw(self), msg, wparam, lparam, &mut result__).map(|| result__) } } #[repr(C)] @@ -5593,7 +5593,7 @@ windows_core::imp::define_interface!(ITridentTouchInputSite, ITridentTouchInputS windows_core::imp::interface_hierarchy!(ITridentTouchInputSite, windows_core::IUnknown); impl ITridentTouchInputSite { pub unsafe fn ZoomToPoint(&self, x: i32, y: i32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ZoomToPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(x), core::mem::transmute(y)).ok() + (windows_core::Interface::vtable(self).ZoomToPoint)(windows_core::Interface::as_raw(self), x, y).ok() } } #[repr(C)] @@ -5655,19 +5655,19 @@ impl IUrlHistoryStg { P0: windows_core::Param, P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), pocstitle.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).AddUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), pocstitle.param().abi(), dwflags).ok() } pub unsafe fn DeleteUrl(&self, pocsurl: P0, dwflags: u32) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), core::mem::transmute(dwflags)).ok() + (windows_core::Interface::vtable(self).DeleteUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), dwflags).ok() } pub unsafe fn QueryUrl(&self, pocsurl: P0, dwflags: u32, lpstaturl: *mut STATURL) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(lpstaturl)).ok() + (windows_core::Interface::vtable(self).QueryUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), dwflags, core::mem::transmute(lpstaturl)).ok() } pub unsafe fn BindToObject(&self, pocsurl: P0) -> windows_core::Result where @@ -5757,7 +5757,7 @@ impl IUrlHistoryStg2 { P4: windows_core::Param, P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUrlAndNotify)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), pocstitle.param().abi(), core::mem::transmute(dwflags), fwritehistory.into(), poctnotify.param().abi(), punkisfolder.param().abi()).ok() + (windows_core::Interface::vtable(self).AddUrlAndNotify)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), pocstitle.param().abi(), dwflags, fwritehistory.into(), poctnotify.param().abi(), punkisfolder.param().abi()).ok() } pub unsafe fn ClearHistory(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearHistory)(windows_core::Interface::as_raw(self)).ok() @@ -6188,7 +6188,7 @@ impl Iwfolders { where P3: windows_core::Param, { - (windows_core::Interface::vtable(self).navigateNoSite)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), core::mem::transmute_copy(bstrtargetframe), core::mem::transmute(dwhwnd), pwb.param().abi()).ok() + (windows_core::Interface::vtable(self).navigateNoSite)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrurl), core::mem::transmute_copy(bstrtargetframe), dwhwnd, pwb.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/tests/bindgen/src/bool_event.rs b/crates/tests/bindgen/src/bool_event.rs index 24241a725d..65a5288525 100644 --- a/crates/tests/bindgen/src/bool_event.rs +++ b/crates/tests/bindgen/src/bool_event.rs @@ -34,16 +34,12 @@ pub unsafe fn NtWaitForSingleObject( timeout: *mut i64, ) -> windows::Win32::Foundation::NTSTATUS { windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : windows::Win32::Foundation:: HANDLE, alertable : bool, timeout : *mut i64) -> windows::Win32::Foundation:: NTSTATUS); - NtWaitForSingleObject( - core::mem::transmute(handle), - core::mem::transmute(alertable), - core::mem::transmute(timeout), - ) + NtWaitForSingleObject(handle, alertable, core::mem::transmute(timeout)) } #[inline] pub unsafe fn SetEvent(hevent: windows::Win32::Foundation::HANDLE) -> windows_core::Result<()> { windows_targets::link!("kernel32.dll" "system" fn SetEvent(hevent : windows::Win32::Foundation:: HANDLE) -> windows::Win32::Foundation:: BOOL); - SetEvent(core::mem::transmute(hevent)).ok() + SetEvent(hevent).ok() } #[inline] pub unsafe fn WaitForSingleObjectEx( @@ -52,9 +48,5 @@ pub unsafe fn WaitForSingleObjectEx( balertable: bool, ) -> windows::Win32::Foundation::WAIT_EVENT { windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObjectEx(hhandle : windows::Win32::Foundation:: HANDLE, dwmilliseconds : u32, balertable : windows::Win32::Foundation:: BOOL) -> windows::Win32::Foundation:: WAIT_EVENT); - WaitForSingleObjectEx( - core::mem::transmute(hhandle), - core::mem::transmute(dwmilliseconds), - balertable.into(), - ) + WaitForSingleObjectEx(hhandle, dwmilliseconds, balertable.into()) } diff --git a/crates/tests/bindgen/src/fn_no_return_win.rs b/crates/tests/bindgen/src/fn_no_return_win.rs index a204a85a82..b6dba5f086 100644 --- a/crates/tests/bindgen/src/fn_no_return_win.rs +++ b/crates/tests/bindgen/src/fn_no_return_win.rs @@ -9,5 +9,5 @@ #[inline] pub unsafe fn FatalExit(exitcode: i32) -> ! { windows_targets::link!("kernel32.dll" "system" fn FatalExit(exitcode : i32) -> !); - FatalExit(core::mem::transmute(exitcode)) + FatalExit(exitcode) } diff --git a/crates/tests/bindgen/src/struct_with_cpp_interface.rs b/crates/tests/bindgen/src/struct_with_cpp_interface.rs index 066ed05f7a..abd128100e 100644 --- a/crates/tests/bindgen/src/struct_with_cpp_interface.rs +++ b/crates/tests/bindgen/src/struct_with_cpp_interface.rs @@ -103,7 +103,7 @@ impl ID3D12Object { ) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPrivateData)( windows_core::Interface::as_raw(self), - core::mem::transmute(guid), + guid, core::mem::transmute(pdatasize), core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), ) @@ -117,8 +117,8 @@ impl ID3D12Object { ) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPrivateData)( windows_core::Interface::as_raw(self), - core::mem::transmute(guid), - core::mem::transmute(datasize), + guid, + datasize, core::mem::transmute(pdata.unwrap_or(core::mem::zeroed())), ) .ok() @@ -133,7 +133,7 @@ impl ID3D12Object { { (windows_core::Interface::vtable(self).SetPrivateDataInterface)( windows_core::Interface::as_raw(self), - core::mem::transmute(guid), + guid, pdata.param().abi(), ) .ok() diff --git a/crates/tests/bindgen/src/window_long_get_a.rs b/crates/tests/bindgen/src/window_long_get_a.rs index 407a532f6a..06a233f00b 100644 --- a/crates/tests/bindgen/src/window_long_get_a.rs +++ b/crates/tests/bindgen/src/window_long_get_a.rs @@ -9,7 +9,7 @@ #[inline] pub unsafe fn GetWindowLongA(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowLongA(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); - GetWindowLongA(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongA(hwnd, nindex) } #[cfg(any( target_arch = "aarch64", @@ -19,7 +19,7 @@ pub unsafe fn GetWindowLongA(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32 { #[inline] pub unsafe fn GetWindowLongPtrA(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX) -> isize { windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrA(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); - GetWindowLongPtrA(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongPtrA(hwnd, nindex) } #[cfg(target_pointer_width = "32")] pub use GetWindowLongA as GetWindowLongPtrA; diff --git a/crates/tests/bindgen/src/window_long_get_w.rs b/crates/tests/bindgen/src/window_long_get_w.rs index eccbae8d5a..cdacf19b66 100644 --- a/crates/tests/bindgen/src/window_long_get_w.rs +++ b/crates/tests/bindgen/src/window_long_get_w.rs @@ -14,14 +14,14 @@ #[inline] pub unsafe fn GetWindowLongPtrW(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX) -> isize { windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); - GetWindowLongPtrW(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongPtrW(hwnd, nindex) } #[cfg(target_pointer_width = "32")] pub use GetWindowLongW as GetWindowLongPtrW; #[inline] pub unsafe fn GetWindowLongW(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32 { windows_targets::link!("user32.dll" "system" fn GetWindowLongW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); - GetWindowLongW(core::mem::transmute(hwnd), core::mem::transmute(nindex)) + GetWindowLongW(hwnd, nindex) } #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/tests/bindgen/src/window_long_set_a.rs b/crates/tests/bindgen/src/window_long_set_a.rs index 048f98bb3a..6926f243e5 100644 --- a/crates/tests/bindgen/src/window_long_set_a.rs +++ b/crates/tests/bindgen/src/window_long_set_a.rs @@ -9,11 +9,7 @@ #[inline] pub unsafe fn SetWindowLongA(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn SetWindowLongA(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : i32) -> i32); - SetWindowLongA( - core::mem::transmute(hwnd), - core::mem::transmute(nindex), - core::mem::transmute(dwnewlong), - ) + SetWindowLongA(hwnd, nindex, dwnewlong) } #[cfg(any( target_arch = "aarch64", @@ -27,11 +23,7 @@ pub unsafe fn SetWindowLongPtrA( dwnewlong: isize, ) -> isize { windows_targets::link!("user32.dll" "system" fn SetWindowLongPtrA(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : isize) -> isize); - SetWindowLongPtrA( - core::mem::transmute(hwnd), - core::mem::transmute(nindex), - core::mem::transmute(dwnewlong), - ) + SetWindowLongPtrA(hwnd, nindex, dwnewlong) } #[cfg(target_pointer_width = "32")] pub use SetWindowLongA as SetWindowLongPtrA; diff --git a/crates/tests/bindgen/src/window_long_set_w.rs b/crates/tests/bindgen/src/window_long_set_w.rs index f44729070a..c765343c42 100644 --- a/crates/tests/bindgen/src/window_long_set_w.rs +++ b/crates/tests/bindgen/src/window_long_set_w.rs @@ -18,22 +18,14 @@ pub unsafe fn SetWindowLongPtrW( dwnewlong: isize, ) -> isize { windows_targets::link!("user32.dll" "system" fn SetWindowLongPtrW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : isize) -> isize); - SetWindowLongPtrW( - core::mem::transmute(hwnd), - core::mem::transmute(nindex), - core::mem::transmute(dwnewlong), - ) + SetWindowLongPtrW(hwnd, nindex, dwnewlong) } #[cfg(target_pointer_width = "32")] pub use SetWindowLongW as SetWindowLongPtrW; #[inline] pub unsafe fn SetWindowLongW(hwnd: HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32 { windows_targets::link!("user32.dll" "system" fn SetWindowLongW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : i32) -> i32); - SetWindowLongW( - core::mem::transmute(hwnd), - core::mem::transmute(nindex), - core::mem::transmute(dwnewlong), - ) + SetWindowLongW(hwnd, nindex, dwnewlong) } #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq)]